diff --git a/docs/adr/0008-typed-api-ergonomics-and-safety-hardening.md b/docs/adr/0008-typed-api-ergonomics-and-safety-hardening.md index 20338df4a..65fad31c6 100644 --- a/docs/adr/0008-typed-api-ergonomics-and-safety-hardening.md +++ b/docs/adr/0008-typed-api-ergonomics-and-safety-hardening.md @@ -1,6 +1,6 @@ # ADR 0008: Typed API ergonomics, compile-time completeness, and runtime hardening -Status: proposed +Status: implemented Date: 2026-11-21 diff --git a/docs/api-migrations.md b/docs/api-migrations.md index 6363e6887..422c7504c 100644 --- a/docs/api-migrations.md +++ b/docs/api-migrations.md @@ -3913,3 +3913,150 @@ Applications can keep `column ~min_height:60 children`: the 60-point empty surface remains, and taller content determines the surface height. Use an explicit height or maximum height when a bounded surface is intended. No API, schema, event or imperative-scroll behavior changes are required. + +## ADR 0008: capability-indexed Slot_style + +`Slot_style.t` is now phantom-capability indexed. Builders are split by admitted +property families, and constructors take the matching capability bucket: + +| Builder | Capability | Properties | +| --- | --- | --- | +| `Slot_style.make` | `base` | overflow, hover/focus/shadow/cursor/opacity/viewport | +| `Slot_style.typography` | `[> \`typography]` | font_*, line_height, letter_spacing, text_decoration, user_select | +| `Slot_style.text_flow` | `[> \`text_flow]` | white_space, text_overflow | +| `Slot_style.collision` | `[> \`collision]` | collision_padding | + +Combine with `Slot_style.merge`. Constructor `?style` parameters are exact: + +- `text` / `button` / `menu_item` / … → `Slot_style.text_caps` +- `checkbox` / `text_field` / `select` / … → `Slot_style.typography_caps` +- `switch_` / `radio_group` / `button_group` / … → `Slot_style.base` +- `dropdown_menu` / `popover` / `menu` / `submenu` → `Slot_style.surface_caps` + +Passing a rejected property is now a compile-time type error (for example +`button ~style:(Slot_style.collision ~collision_padding:5. ()) []`). + +```ocaml +(* Before *) +let style = Slot_style.make ~font_size:"14px" ~collision_padding:8. () in +dropdown_menu ~style [dropdown_menu_item ~style []] + +(* After *) +let surface = + Slot_style.merge + (Slot_style.make ~shadow:"0 4px 6px black" ()) + (Slot_style.merge + (Slot_style.typography ~font_size:"14px" ()) + (Slot_style.collision ~collision_padding:8. ())) +in +let item = + Slot_style.merge + (Slot_style.make ()) + (Slot_style.merge + (Slot_style.typography ~font_size:"14px" ()) + (Slot_style.text_flow ~white_space:`nowrap ())) +in +dropdown_menu ~style:surface [dropdown_menu_item ~style:item []] +``` + +`text` / `heading` / `paragraph` / `label` apply `Slot_style` before +`~truncate` recipes, so `~truncate:true` cannot be overridden by +`~style:(Slot_style.text_flow ~white_space:\`normal ())`. + +## ADR 0008: polymorphic `'kind el` and uniform dynamic combinators + +Restricted slot types are now transparent aliases of a covariant phantom +`'kind el`. Base constructors return polymorphic upper bounds such as +`[< \`general | \`toolbar_item ] el`. Uniform `if_`, `keyed`, `scoped`, and +`dyn`/`reactive` work inside restricted parents without per-slot adapters: + +```ocaml +(* Before *) +toolbar ~label:"Actions" + [ toolbar_button ~text:"A" [] + ; if_toolbar ~test:flag (toolbar_button ~text:"B" []) + ; keyed_toolbar ~source:items ~key:Fun.id ~cmp:compare + ~mount:(fun s -> toolbar_button ~text:(reactive s) []) ] + +(* After *) +toolbar ~label:"Actions" + [ button ~text:"A" [] + ; if_ ~test:flag (button ~text:"B" []) + ; keyed ~source:items ~key:Fun.id ~cmp:compare + ~mount:(fun s -> button ~text:(reactive s) []) ] +``` + +Legacy `toolbar_*` / `dropdown_menu_*` / `if_*` / `keyed_*` / `reactive_*` / +`scoped_*` aliases remain available. `menu_trigger` still rejects `if_` / +`keyed` because its single child is mandatory. Use `Lui_elements.custom` and +`Lui_elements.mount` for host-owned element functions — `el` is abstract. + +## ADR 0008: dropdown_menu target grouping + +`dropdown_menu` no longer takes flat `?at` / `?anchor` / `?anchor_alignment` / +`?anchor_offset`. Use `?target` / `?target_signal` with `dropdown_target`: + +```ocaml +(* Before *) +dropdown_menu ~at:(48., 96.) entries +dropdown_menu ~anchor:`below ~anchor_alignment:`start entries + +(* After *) +dropdown_menu ~target:(Menu_at (48., 96.)) entries +dropdown_menu + ~target:(Menu_anchor { side = `below; align = `start; offset = 0. }) + entries +``` + +`popover` already used `popover_target`; both surfaces now emit only the wire +properties of the active mode and remove only stale mode properties on +transitions. Same-mode updates emit zero `RemoveProp`. + +## ADR 0008: Lui.Ui Tier-1 contract + +`Lui.Ui` no longer includes `Lui_ui`. Raw `int`-returning builders live under +`Lui.Raw` / `Lui_ui`. `Ui.form_section` and `Ui.data_list` accept +`list_section_item_el list`; wrap general views with `Ui.form_row` / +`Ui.data_row` (or pass `list_item` / `if_` / `keyed` / `reactive` directly): + +```ocaml +(* Before *) +Ui.form_section ~title:"Identity" + [ Ui.form_field ~label:"Name" (text_field []) + ; toggle ~text:"Enabled" [] ] + +(* After *) +Ui.form_section ~title:"Identity" + [ Ui.form_row (Ui.form_field ~label:"Name" (text_field [])) + ; Ui.form_row (toggle ~text:"Enabled" []) + ; if_ ~test:flag (Ui.form_row (text_field [])) ] + +(* Before *) +Ui.form_sheet ~title:"Edit" ~confirm_disabled:(Signal.value disabled) content + +(* After — static bool and signal twins *) +Ui.form_sheet ~title:"Edit" ~confirm_disabled:true content +Ui.form_sheet ~title:"Edit" ~confirm_disabled_signal:(Signal.value disabled) content +``` + +`Ui.hstack` / `Ui.vstack` / `Ui.page` / `Ui.section` accept typed token +parameters (`?background:color`, `?gap:space`, `?padding:space`, …) and resolve +`Tokens.space` with `Tokens.space_value_for (Lui_ui.platform context)` +(desktop/web denser than iOS/Android touch metrics). + +## ADR 0008: protocol numeric normalization and JSON enum decoding + +`Lui_protocol.normalize_property_value` clamps `CollisionPadding`, +`FirstPaneWidth`, `AvailableHeight`, `GrowValue`, and `ShrinkValue` to +`>= 0` (non-finite floats fall back to `0.` with a diagnostic), and clamps +`TreeLevel` to `>= 1`. Web retained-property tests that previously expected +throws for invalid `collision-padding` must assert clamping to `0.` instead. + +`Lui_json_view` enum decoders return `None` with a structured diagnostic for +unknown values; they no longer raise `Invalid_argument`. + +## ADR 0008: split sizing_signal default + +Mounting `split ~sizing_signal` no longer emits a spurious default +`ProgressValue 0.5` before the signal's first value. Mode transitions remove +only properties belonging to the previous sizing mode. diff --git a/examples/data/data_view.ml b/examples/data/data_view.ml index 3ab30ce28..dd40abaf2 100644 --- a/examples/data/data_view.ml +++ b/examples/data/data_view.ml @@ -860,29 +860,29 @@ let rec mount ~dispatch source node context parent = children; id | When (condition, child) -> - Lui_elements.dynamic - (fun context parent -> - let test = - derive context - (fun environment -> boolean (evaluate environment condition)) - source - in - Lui_dynamic.conditional context parent test (fun context -> - mount ~dispatch source child context None)) - context parent + Lui_elements.mount context ?parent + (Lui_elements.dynamic + (fun context parent -> + let test = + derive context + (fun environment -> boolean (evaluate environment condition)) + source + in + Lui_dynamic.conditional context parent test (fun context -> + mount ~dispatch source child context None))) | Each (expression, alias, key, child) -> - Lui_elements.dynamic - (fun context parent -> - let rows = - derive context - (fun environment -> items environment expression alias key) - source - in - Lui_dynamic.keyed context parent rows fst String.compare - (fun context row -> - let source = derive context snd row in - mount ~dispatch source child context None)) - context parent + Lui_elements.mount context ?parent + (Lui_elements.dynamic + (fun context parent -> + let rows = + derive context + (fun environment -> items environment expression alias key) + source + in + Lui_dynamic.keyed context parent rows fst String.compare + (fun context row -> + let source = derive context snd row in + mount ~dispatch source child context None))) | Component (props, child) -> let source = derive context @@ -891,29 +891,30 @@ let rec mount ~dispatch source node context parent = in mount ~dispatch source child context parent | Choice (condition, yes, no) -> - Lui_elements.dynamic - (fun context parent -> - let test = derive context (fun environment -> boolean (evaluate environment condition)) source in - Lui_dynamic.switch context parent test Bool.equal (fun context enabled -> - mount ~dispatch source (if enabled then yes else no) context None)) - context parent + Lui_elements.mount context ?parent + (Lui_elements.dynamic + (fun context parent -> + let test = derive context (fun environment -> boolean (evaluate environment condition)) source in + Lui_dynamic.switch context parent test Bool.equal (fun context enabled -> + mount ~dispatch source (if enabled then yes else no) context None))) | Platform branches -> mount ~dispatch source (platform_branch context.U.ui_profile branches) context parent | Slot (Some child) -> mount ~dispatch (derive context caller source) child context parent | Slot None -> fail "unresolved component slot" -let render document ~model ~project ~dispatch context parent = - if not (List.exists (fun host -> host.Contract.profile = context.U.ui_profile) document.contract.Contract.hosts) then - fail "view was not compiled for the current backend profile"; - let source = - derive context - (fun model -> - let data = project model in - Contract.check_value "model" document.contract.Contract.model data; - let environment = {values = [ ("model", data) ]; caller = None} in - validate context.U.ui_profile environment document.root; - environment) - model - in - mount ~dispatch source document.root context parent +let render document ~model ~project ~dispatch = + Lui_elements.custom (fun context parent -> + if not (List.exists (fun host -> host.Contract.profile = context.U.ui_profile) document.contract.Contract.hosts) then + fail "view was not compiled for the current backend profile"; + let source = + derive context + (fun model -> + let data = project model in + Contract.check_value "model" document.contract.Contract.model data; + let environment = {values = [ ("model", data) ]; caller = None} in + validate context.U.ui_profile environment document.root; + environment) + model + in + mount ~dispatch source document.root context parent) diff --git a/examples/gallery/extension_schemas.ml b/examples/gallery/extension_schemas.ml index 372766a76..f32358a5a 100644 --- a/examples/gallery/extension_schemas.ml +++ b/examples/gallery/extension_schemas.ml @@ -373,9 +373,9 @@ let registry () = registry let apple_map ?key ~latitude ~longitude ~latitude_delta ~longitude_delta ?latitude_signal ?longitude_signal ?latitude_delta_signal ?longitude_delta_signal (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "apple-map" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "apple-map" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "latitude" @@ -417,16 +417,14 @@ let apple_map ?key ~latitude ~longitude ~latitude_delta ~longitude_delta ?latitu (Signal.map (fun value -> FloatValue value) signal)) longitude_delta_signal; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let apple_map_marker ?key ~title ~latitude ~longitude ?title_signal ?latitude_signal ?longitude_signal () : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "apple-map-marker" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "apple-map-marker" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "title" @@ -458,16 +456,14 @@ let apple_map_marker ?key ~title ~latitude ~longitude ?title_signal ?latitude_si (Signal.map (fun value -> FloatValue value) signal)) longitude_signal; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; - node + node) let simulator_map ?key ~label ~latitude ~longitude ~latitude_delta ~longitude_delta ?label_signal ?latitude_signal ?longitude_signal ?latitude_delta_signal ?longitude_delta_signal ?on_region_change (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "simulator-map" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "simulator-map" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "label" @@ -525,16 +521,14 @@ let simulator_map ?key ~label ~latitude ~longitude ~latitude_delta ~longitude_de | Some event -> handler event | None -> ())) on_region_change; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let simulator_map_marker ?key ~title ~latitude ~longitude ?title_signal ?latitude_signal ?longitude_signal () : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "simulator-map-marker" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "simulator-map-marker" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "title" @@ -566,16 +560,14 @@ let simulator_map_marker ?key ~title ~latitude ~longitude ?title_signal ?latitud (Signal.map (fun value -> FloatValue value) signal)) longitude_signal; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; - node + node) let simulator_camera ?key ~label ~facing ?label_signal ?facing_signal ?on_state_change () : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "simulator-camera" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "simulator-camera" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "label" @@ -603,16 +595,14 @@ let simulator_camera ?key ~label ~facing ?label_signal ?facing_signal ?on_state_ | Some event -> handler event | None -> ())) on_state_change; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; - node + node) let native_card ?key ~title ?title_signal () : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "native-card" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "native-card" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "title" @@ -624,16 +614,14 @@ let native_card ?key ~title ?title_signal () : Lui_elements.t = (Signal.map (fun value -> StringValue value) signal)) title_signal; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; - node + node) let split_view ?key ?divider_thickness ?animation ?accessibility_identifier ?divider_thickness_signal ?animation_signal ?accessibility_identifier_signal (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "split-view" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "split-view" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "divider-thickness" @@ -665,16 +653,14 @@ let split_view ?key ?divider_thickness ?animation ?accessibility_identifier ?div (Signal.map (fun value -> StringValue value) signal)) accessibility_identifier_signal; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let split_branch ?key ~orientation ~ratio ?orientation_signal ?ratio_signal ?on_ratio_changed (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "split-branch" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "split-branch" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "orientation" @@ -702,16 +688,14 @@ let split_branch ?key ~orientation ~ratio ?orientation_signal ?ratio_signal ?on_ | Some event -> handler event | None -> ())) on_ratio_changed; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let split_pane ?key ~pane_id ?selected ?focused ?accessibility_identifier ?pane_id_signal ?selected_signal ?focused_signal ?accessibility_identifier_signal ?on_tab_selected ?on_tab_closed ?on_tab_moved ?on_pane_focused ?on_navigate ?on_split_requested ?on_split_drop ?on_pane_closed (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "split-pane" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "split-pane" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "pane-id" @@ -808,16 +792,14 @@ let split_pane ?key ~pane_id ?selected ?focused ?accessibility_identifier ?pane_ | Some event -> handler event | None -> ())) on_pane_closed; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let split_tab ?key ~tab_id ~title ?icon ?dirty ?closable ?accessibility_identifier ?tab_id_signal ?title_signal ?icon_signal ?dirty_signal ?closable_signal ?accessibility_identifier_signal (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "split-tab" in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "split-tab" in + Option.iter (Lui_ui.key context node) key; Option.iter (fun value -> Lui_ui.extension_property context node "tab-id" @@ -879,8 +861,6 @@ let split_tab ?key ~tab_id ~title ?icon ?dirty ?closable ?accessibility_identifi (Signal.map (fun value -> StringValue value) signal)) accessibility_identifier_signal; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) diff --git a/examples/gallery/view.ml b/examples/gallery/view.ml index 993be5d21..ad6459e43 100644 --- a/examples/gallery/view.ml +++ b/examples/gallery/view.ml @@ -480,12 +480,14 @@ let card_section model_source : t = ] ; list ~style:`inset_grouped [ Lui.Ui.form_section ~title:"Semantic form" - [ Lui.Ui.form_field ~label:"Name" ~help:"Your display name" - (text_field ~placeholder:"Name" []) - ; Lui.Ui.hstack - [ text ~role:`caption ~truncate:true ~value:"Single-line caption" [] - ; button ~text:"Save" ~on_press:noop [] - ] + [ Lui.Ui.form_row + (Lui.Ui.form_field ~label:"Name" ~help:"Your display name" + (text_field ~placeholder:"Name" [])) + ; Lui.Ui.form_row + (Lui.Ui.hstack + [ text ~role:`caption ~truncate:true ~value:"Single-line caption" [] + ; button ~text:"Save" ~on_press:noop [] + ]) ] ] ] @@ -759,8 +761,10 @@ let menu_item_section model_source send : t = [ button ~text:"Document actions" ~on_press:(press send (Model.OpenPicker "menuitem")) [] ; if_ ~test:open_ - (dropdown_menu_view (dropdown_menu ~anchor:`below ~anchor_alignment:`start - ~anchor_offset:6.0 ~min_width:200 ~on_dismiss:dismiss + (dropdown_menu_view + (dropdown_menu + ~target:(Menu_anchor { side = `below; align = `start; offset = 6.0 }) + ~min_width:200 ~on_dismiss:dismiss [ dropdown_menu_item ~text:"Rename" ~icon:`edit ~on_press:(press send (Model.PerformContextAction "Rename")) [] @@ -1085,8 +1089,10 @@ let environment_menu model_source send : t = let dismiss = press send Model.ClosePicker in let production_selected = model_source >|= Model.production_selected in let staging_selected = model_source >|= Model.staging_selected in - dropdown_menu_view (dropdown_menu ~anchor:`below ~anchor_alignment:`stretch - ~anchor_offset:6.0 ~min_width:200 ~on_dismiss:dismiss + dropdown_menu_view + (dropdown_menu + ~target:(Menu_anchor { side = `below; align = `stretch; offset = 6.0 }) + ~min_width:200 ~on_dismiss:dismiss [ dropdown_menu_item ~text:"Production" ~selected:(reactive production_selected) ~disabled:(reactive disabled) ~on_press:(press send (Model.SelectEnvironment "Production")) [] @@ -1133,8 +1139,10 @@ let combobox_section model_source send : t = ~on_press:(press send (Model.OpenPicker "combobox")) ~on_dismiss:dismiss [] ; if_ ~test:open_ - (dropdown_menu_view (dropdown_menu ~anchor:`below ~anchor_alignment:`stretch - ~anchor_offset:6.0 ~min_width:200 ~on_dismiss:dismiss + (dropdown_menu_view + (dropdown_menu + ~target:(Menu_anchor { side = `below; align = `stretch; offset = 6.0 }) + ~min_width:200 ~on_dismiss:dismiss [ if_dropdown_menu_item ~test:(reactive Model.production_visible model_source) (dropdown_menu_item ~text:"Production" ~icon:`check ~disabled:(reactive Model.disabled model_source) @@ -1454,44 +1462,44 @@ let youtube_section : t = section stays a plain gallery page on every other platform. *) let native_extension_section : t = - fun context parent -> - let page = - column ~gap:16 ~padding:32 - [ heading ~level:`h2 ~value:"NativeExtension" [] - ; paragraph - ~value:"apple-map renders a real MapKit map; its marker children stay retained." - [] - ] - in - let page_id = page context parent in - (match Lui_ui.host context with - | Lui_protocol.WebHost -> - ignore - (column ~gap:16 - [ label ~value:"Map" [] - ; Extension_schemas.simulator_map ~label:"Map of San Francisco" - ~latitude:37.7793 ~longitude:(-122.4193) ~latitude_delta:0.08 - ~longitude_delta:0.08 ~on_region_change:(fun _ -> ()) - [ - Extension_schemas.simulator_map_marker ~title:"San Francisco" - ~latitude:37.7793 ~longitude:(-122.4193) (); - ] - ; label ~value:"Camera" [] - ; Extension_schemas.simulator_camera ~label:"Back camera preview" - ~facing:"environment" ~on_state_change:(fun _ -> ()) - (); - ] - context (Some page_id)) - | _ -> - ignore - (Extension_schemas.apple_map ~latitude:37.3349 ~longitude:(-122.0090) - ~latitude_delta:0.02 ~longitude_delta:0.02 - [ - Extension_schemas.apple_map_marker ~title:"Apple Park" - ~latitude:37.3349 ~longitude:(-122.0090) (); - ] - context (Some page_id))); - page_id + custom (fun context parent -> + let page = + column ~gap:16 ~padding:32 + [ heading ~level:`h2 ~value:"NativeExtension" [] + ; paragraph + ~value:"apple-map renders a real MapKit map; its marker children stay retained." + [] + ] + in + let page_id = mount context ?parent page in + (match Lui_ui.host context with + | Lui_protocol.WebHost -> + ignore + (mount context ~parent:page_id + (column ~gap:16 + [ label ~value:"Map" [] + ; Extension_schemas.simulator_map ~label:"Map of San Francisco" + ~latitude:37.7793 ~longitude:(-122.4193) ~latitude_delta:0.08 + ~longitude_delta:0.08 ~on_region_change:(fun _ -> ()) + [ + Extension_schemas.simulator_map_marker ~title:"San Francisco" + ~latitude:37.7793 ~longitude:(-122.4193) (); + ] + ; label ~value:"Camera" [] + ; Extension_schemas.simulator_camera ~label:"Back camera preview" + ~facing:"environment" ~on_state_change:(fun _ -> ()) + (); + ])) + | _ -> + ignore + (mount context ~parent:page_id + (Extension_schemas.apple_map ~latitude:37.3349 ~longitude:(-122.0090) + ~latitude_delta:0.02 ~longitude_delta:0.02 + [ + Extension_schemas.apple_map_marker ~title:"Apple Park" + ~latitude:37.3349 ~longitude:(-122.0090) (); + ]))); + page_id) let split_panes_section model_source send : t = let pane_body (tab : Lui_split.Model.tab) = @@ -1519,14 +1527,15 @@ let split_panes_section model_source send : t = ] let tweak_paragraph : t = - fun context parent -> - let node = Lui_ui.platform_tweak context "gallery-accent" in - ignore - (paragraph - ~value:"A registered platform tweak wraps exactly one retained child." - [] context (Some node)); - Lui_elements.attach context parent node; - node + custom (fun context parent -> + let node = Lui_ui.platform_tweak context "gallery-accent" in + ignore + (mount context ~parent:node + (paragraph + ~value:"A registered platform tweak wraps exactly one retained child." + [])); + Lui_elements.attach context parent node; + node) let tweak_section : t = section "Tweaks" [ tweak_paragraph ] @@ -1932,13 +1941,13 @@ let event_payload = function let event_payloads_section model_source send : t = let record event = ignore (send (Model.RecordEvent (event_payload event))) in let watch identifier properties build : t = - fun context parent -> - let node = build context parent in + custom (fun context parent -> + let node = mount context ?parent build in Lui_ui.string_property context node AccessibilityIdentifier identifier; List.iter (fun property -> Lui_ui.bool_property context node property true) properties; Lui_ui.on_event context node record; - node + node) in section "Event payloads" [ text ~accessibility_identifier:"events-status" diff --git a/examples/markdown/extension_schemas.ml b/examples/markdown/extension_schemas.ml index b2dcb5526..c32623cd2 100644 --- a/examples/markdown/extension_schemas.ml +++ b/examples/markdown/extension_schemas.ml @@ -46,29 +46,27 @@ let registry () = let markdown_editor ?key ?text ?text_signal ?placeholder ?readonly ~on_event () : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context "markdown-editor" in - Option.iter (Lui_ui.key context node) key; - Option.iter - (fun value -> - Lui_ui.extension_property context node "text" (StringValue value)) - text; - Option.iter - (fun signal -> - Lui_ui.extension_property_signal context node "text" - (Signal.map (fun value -> StringValue value) signal)) - text_signal; - Option.iter - (fun value -> - Lui_ui.extension_property context node "placeholder" - (StringValue value)) - placeholder; - Option.iter - (fun value -> - Lui_ui.extension_property context node "readonly" (BoolValue value)) - readonly; - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); - Lui_ui.on_event context node on_event; - node + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "markdown-editor" in + Option.iter (Lui_ui.key context node) key; + Option.iter + (fun value -> + Lui_ui.extension_property context node "text" (StringValue value)) + text; + Option.iter + (fun signal -> + Lui_ui.extension_property_signal context node "text" + (Signal.map (fun value -> StringValue value) signal)) + text_signal; + Option.iter + (fun value -> + Lui_ui.extension_property context node "placeholder" + (StringValue value)) + placeholder; + Option.iter + (fun value -> + Lui_ui.extension_property context node "readonly" (BoolValue value)) + readonly; + Lui_elements.attach context parent node; + Lui_ui.on_event context node on_event; + node) diff --git a/examples/navigation/native/navigation_bridge.ml b/examples/navigation/native/navigation_bridge.ml index a1fd5176e..d1296ff6e 100644 --- a/examples/navigation/native/navigation_bridge.ml +++ b/examples/navigation/native/navigation_bridge.ml @@ -12,105 +12,105 @@ let detail_slot = Signal.state_slot "detail-counter" let view _context path_signal send = let open Lui_elements in - let root context parent = - incr root_mounts; - Printf.eprintf "NAV root mount=%d\n%!" !root_mounts; - Signal.on_dispose context.Lui_ui.ui_scope (fun () -> - Printf.eprintf "NAV root disposed\n%!"); - let count = - Signal.state_at context.Lui_ui.ui_scheduler context.Lui_ui.ui_state_scope - counter_slot 0 - in - root_counter := Some count; - rows := - Array.init 300 (fun index -> - Signal.state context.Lui_ui.ui_scheduler - (Printf.sprintf "Row %03d" index)); - column ~grow:1. - [ - text ~value:"Navigation retention demo" []; - text ~accessibility_identifier:"root-counter" - ~value_signal: - (Signal.map - (fun n -> - Printf.sprintf "Root local counter: %d / mounts: %d" n - !root_mounts) - (Signal.value count)) - []; - button ~text:"Increment root" - ~on_press:(fun _ -> Signal.update count succ) - []; - list ~grow:1. ~style:`plain - (Array.to_list - (Array.mapi - (fun index state -> - list_item ~key:(string_of_int index) - ~accessibility_identifier:("row-" ^ string_of_int index) - ~text_signal:(Signal.value state) - ~on_press:(fun _ -> - ignore - (send - (Lui_navigation.Path.push (Detail index) - (Signal.sample path_signal)))) - []) - !rows)); - ] - context parent - in - Lui_navigation.navigation_stack ~key:"retention-demo" ~path_signal - ~on_path_change:(fun path -> - Printf.eprintf "NAV native committed length=%d\n%!" - (List.length (Lui_navigation.Path.entries path)); - ignore (send path)) - ~root - ~destination:(fun entry context parent -> - incr detail_mounts; - let (Detail row) = entry.Lui_navigation.route in - Printf.eprintf "NAV detail mount=%d id=%s row=%d\n%!" !detail_mounts - entry.id row; + let root = + scoped (fun context -> + incr root_mounts; + Printf.eprintf "NAV root mount=%d\n%!" !root_mounts; Signal.on_dispose context.Lui_ui.ui_scope (fun () -> - Printf.eprintf "NAV detail disposed id=%s\n%!" entry.id); + Printf.eprintf "NAV root disposed\n%!"); let count = - Signal.state_at context.Lui_ui.ui_scheduler - context.Lui_ui.ui_state_scope detail_slot 0 + Signal.state_at context.Lui_ui.ui_scheduler context.Lui_ui.ui_state_scope + counter_slot 0 in - column ~gap:16 ~padding:20 + root_counter := Some count; + rows := + Array.init 300 (fun index -> + Signal.state context.Lui_ui.ui_scheduler + (Printf.sprintf "Row %03d" index)); + column ~grow:1. [ - text ~value:(Printf.sprintf "Detail row %03d (%s)" row entry.id) []; - text ~accessibility_identifier:"detail-counter" + text ~value:"Navigation retention demo" []; + text ~accessibility_identifier:"root-counter" ~value_signal: (Signal.map - (fun n -> "Detail local counter: " ^ string_of_int n) + (fun n -> + Printf.sprintf "Root local counter: %d / mounts: %d" n + !root_mounts) (Signal.value count)) []; - button ~text:"Increment detail" + button ~text:"Increment root" ~on_press:(fun _ -> Signal.update count succ) []; - button ~text:"Edit covered root counter" - ~on_press:(fun _ -> - Option.iter (fun state -> Signal.update state succ) !root_counter) - []; - button ~text:"Edit covered row" - ~on_press:(fun _ -> - Signal.set !rows.(row) (Printf.sprintf "Row %03d edited" row)) - []; - button ~text:"Push same row" - ~on_press:(fun _ -> - ignore - (send - (Lui_navigation.Path.push entry.route - (Signal.sample path_signal)))) - []; - button ~text:"Programmatic pop" - ~on_press:(fun _ -> - ignore - (send (Lui_navigation.Path.pop (Signal.sample path_signal)))) - []; - button ~text:"Pop to root" - ~on_press:(fun _ -> ignore (send Lui_navigation.Path.empty)) - []; - ] - context parent) + list ~grow:1. ~style:`plain + (Array.to_list + (Array.mapi + (fun index state -> + list_item ~key:(string_of_int index) + ~accessibility_identifier:("row-" ^ string_of_int index) + ~text_signal:(Signal.value state) + ~on_press:(fun _ -> + ignore + (send + (Lui_navigation.Path.push (Detail index) + (Signal.sample path_signal)))) + []) + !rows)); + ]) + in + Lui_navigation.navigation_stack ~key:"retention-demo" ~path_signal + ~on_path_change:(fun path -> + Printf.eprintf "NAV native committed length=%d\n%!" + (List.length (Lui_navigation.Path.entries path)); + ignore (send path)) + ~root + ~destination:(fun entry -> + scoped (fun context -> + incr detail_mounts; + let (Detail row) = entry.Lui_navigation.route in + Printf.eprintf "NAV detail mount=%d id=%s row=%d\n%!" !detail_mounts + entry.id row; + Signal.on_dispose context.Lui_ui.ui_scope (fun () -> + Printf.eprintf "NAV detail disposed id=%s\n%!" entry.id); + let count = + Signal.state_at context.Lui_ui.ui_scheduler + context.Lui_ui.ui_state_scope detail_slot 0 + in + column ~gap:16 ~padding:20 + [ + text ~value:(Printf.sprintf "Detail row %03d (%s)" row entry.id) []; + text ~accessibility_identifier:"detail-counter" + ~value_signal: + (Signal.map + (fun n -> "Detail local counter: " ^ string_of_int n) + (Signal.value count)) + []; + button ~text:"Increment detail" + ~on_press:(fun _ -> Signal.update count succ) + []; + button ~text:"Edit covered root counter" + ~on_press:(fun _ -> + Option.iter (fun state -> Signal.update state succ) !root_counter) + []; + button ~text:"Edit covered row" + ~on_press:(fun _ -> + Signal.set !rows.(row) (Printf.sprintf "Row %03d edited" row)) + []; + button ~text:"Push same row" + ~on_press:(fun _ -> + ignore + (send + (Lui_navigation.Path.push entry.route + (Signal.sample path_signal)))) + []; + button ~text:"Programmatic pop" + ~on_press:(fun _ -> + ignore + (send (Lui_navigation.Path.pop (Signal.sample path_signal)))) + []; + button ~text:"Pop to root" + ~on_press:(fun _ -> ignore (send Lui_navigation.Path.empty)) + []; + ])) () let initialize _platform host_code = diff --git a/platform/web/test/retained-popup-anchor.test.mjs b/platform/web/test/retained-popup-anchor.test.mjs index 140a1e6eb..934e387c0 100644 --- a/platform/web/test/retained-popup-anchor.test.mjs +++ b/platform/web/test/retained-popup-anchor.test.mjs @@ -220,8 +220,13 @@ test('configured popup clearance follows resize, property updates and removal', apply([Protocol.remove_prop_op(2, prop('collision-padding'))]) check(220, 188, 8, 'right', 204) for (const value of [-1, NaN, Infinity, -Infinity]) { - assert.throws(() => apply([set('collision-padding', {TAG: 3, _0: value})])) + apply([set('collision-padding', {TAG: 3, _0: value})]) + assert.deepEqual(Store.property(store, 2, prop('collision-padding')), {TAG: 3, _0: 0}) + check(220, 188, 0, 'right', 220) } + apply([set('collision-padding', {TAG: 3, _0: 6})]) + assert.deepEqual(Store.property(store, 2, prop('collision-padding')), {TAG: 3, _0: 6}) + check(220, 188, 6, 'right', 208) }) diff --git a/ppx/lui_nesting.ml b/ppx/lui_nesting.ml index 53971d81b..2e2f78e8e 100644 --- a/ppx/lui_nesting.ml +++ b/ppx/lui_nesting.ml @@ -2,10 +2,11 @@ open Ppxlib module Schema = Lui_nesting_schema module Names = Map.Make (String) -type module_kind = Elements | Lists | Standard | Ui | Other +type module_kind = Lui | Elements | Lists | Standard | Ui | Composites | Other type scope = { opened : bool; + opened_ui : bool; values : value Names.t; modules : module_kind Names.t; budget : int ref; @@ -23,6 +24,7 @@ and value = let initial_scope () = { opened = false; + opened_ui = false; values = Names.empty; modules = Names.empty; budget = ref 0; @@ -105,12 +107,17 @@ let rec module_kind scope = function (Names.find_opt name scope.modules) ~default: (match name with + | "Lui" -> Lui | "Lui_elements" -> Elements | "List" -> Lists | "Stdlib" -> Standard | "Lui_ui" -> Ui + | "Lui_ui_composites" -> Composites | _ -> Other) | Ldot (parent, "List") when module_kind scope parent = Standard -> Lists + | Ldot (parent, "Elements") when module_kind scope parent = Lui -> Elements + | Ldot (parent, "Raw") when module_kind scope parent = Lui -> Ui + | Ldot (parent, "Ui") when module_kind scope parent = Lui -> Composites | _ -> Other let module_expression scope expression = @@ -123,25 +130,65 @@ let bind_module scope name kind = | Some name -> { scope with modules = Names.add name kind scope.modules } | None -> scope +let lui_other_submodules = + [ + "Navigation"; + "Tokens"; + "App"; + "Protocol"; + "Dynamic"; + "Runtime"; + "Wire"; + "Wire_schema"; + "Json"; + "Json_view"; + "Extension"; + "Extension_check"; + "Migration"; + "Subscriptions"; + "Resources"; + "Restart"; + "Hot_reload"; + "Devtools"; + ] + let open_module scope expression = - let opened = module_expression scope expression = Elements in - let values = - if opened then - Names.filter (fun name _ -> not (Schema.exports name)) scope.values - else Names.empty - in - let symbols = - if opened then - Names.filter (fun name _ -> not (Schema.exports name)) scope.symbols - else Names.empty - in - { - scope with - opened; - values; - symbols; - namespace = (if opened then scope.namespace else fresh scope); - } + match module_expression scope expression with + | Lui -> + let modules = + List.fold_left + (fun modules name -> Names.add name Other modules) + scope.modules lui_other_submodules + |> Names.add "Elements" Elements + |> Names.add "Raw" Ui + |> Names.add "Ui" Composites + in + { scope with modules } + | Elements -> + let values = + Names.filter (fun name _ -> not (Schema.exports name)) scope.values + in + let symbols = + Names.filter (fun name _ -> not (Schema.exports name)) scope.symbols + in + { scope with opened = true; values; symbols } + | Composites -> + let values = + Names.filter (fun name _ -> Schema.ui_constructor name = None) scope.values + in + let symbols = + Names.filter (fun name _ -> Schema.ui_constructor name = None) scope.symbols + in + { scope with opened_ui = true; values; symbols } + | _ -> + { + scope with + opened = false; + opened_ui = false; + values = Names.empty; + symbols = Names.empty; + namespace = fresh scope; + } let symbol scope name = match Names.find_opt name scope.symbols with @@ -241,6 +288,21 @@ let dsl_name scope expression = Some name | _ -> None +let ui_name scope expression = + match expression.pexp_desc with + | Pexp_ident { txt = Ldot (parent, name); _ } + when module_kind scope parent = Composites -> + Some name + | Pexp_ident { txt = Lident name; _ } + when scope.opened_ui && not (Names.mem name scope.values) -> + Some name + | _ -> None + +let lookup_constructor scope fn = + match Option.bind (dsl_name scope fn) Schema.constructor with + | Some _ as result -> result + | None -> Option.bind (ui_name scope fn) Schema.ui_constructor + let positional args = List.filter_map (function Nolabel, value -> Some value | _ -> None) args @@ -442,6 +504,10 @@ and apply_roots ?(detached = false) fuel scope fn args = (bind_value scope case.pc_lhs (Bound (scope, value))) case.pc_rhs args)) cases + | Pexp_letmodule (name, definition, body) -> + apply_roots ~detached fuel + (bind_module scope name (module_expression scope definition)) + body args | Pexp_open (declaration, body) -> apply_roots ~detached fuel (open_module scope declaration.popen_expr) @@ -449,7 +515,7 @@ and apply_roots ?(detached = false) fuel scope fn args = | Pexp_constraint (body, _) | Pexp_coerce (body, _, _) -> apply_roots ~detached fuel scope body args | _ -> ( - match Option.bind (dsl_name scope fn) Schema.constructor with + match lookup_constructor scope fn with | Some (kind, parent, children) -> let values = positional args in (match (children, values) with @@ -594,6 +660,11 @@ and list_variants fuel = function cases | Pexp_let (recursive, bindings, body) -> variants (Bound (definitions scope recursive bindings, body)) + | Pexp_letmodule (name, definition, body) -> + variants + (Bound + ( bind_module scope name (module_expression scope definition), + body )) | Pexp_open (declaration, body) -> variants (Bound (open_module scope declaration.popen_expr, body)) | Pexp_constraint (body, _) @@ -662,9 +733,8 @@ class checker = scope <- bind_module scope binding.pmb_name (module_expression scope binding.pmb_expr) - | Pstr_include _ -> - scope <- - { scope with opened = false; values = Names.empty } + | Pstr_include declaration -> + scope <- open_module scope declaration.pincl_mod | _ -> ())) items) @@ -672,12 +742,14 @@ class checker = self#within (bind scope case.pc_lhs) (fun () -> super#case case) method! class_structure structure = - self#within { scope with opened = false; values = Names.empty } (fun () -> - super#class_structure structure) + self#within + { scope with opened = false; opened_ui = false; values = Names.empty } + (fun () -> super#class_structure structure) method! class_expr expression = - self#within { scope with opened = false; values = Names.empty } (fun () -> - super#class_expr expression) + self#within + { scope with opened = false; opened_ui = false; values = Names.empty } + (fun () -> super#class_expr expression) method! module_expr expression = match expression.pmod_desc with diff --git a/ppx/lui_nesting_schema.ml b/ppx/lui_nesting_schema.ml index c3b3a2e58..b615c1691 100644 --- a/ppx/lui_nesting_schema.ml +++ b/ppx/lui_nesting_schema.ml @@ -494,7 +494,6 @@ let scoped_adapter = function | "table_cell" -> "scoped_table_cell" | "radio" -> "scoped_radio" | "input_group_actions" -> "scoped_input_group_actions" - | "dropdown_menu" -> "scoped_dropdown_menu" | "swipe_action" -> "scoped_swipe_action" | "step" -> "scoped_step" | "timeline_item" -> "scoped_timeline_item" @@ -588,5 +587,17 @@ let dynamic_adapter = function | _ -> false let exports = function - | "mount" | "scoped" | "reactive" | "map" | "sample" | "get" | "get_state" | "attach" | "error_boundary" | "enable" | "mount_children" | "dynamic" | "default_subtree_equal" | "dyn" | "if_" | "keyed" | "virtual_rows" | "keyed_step" | "keyed_timeline_item" | "keyed_bottom_tab" | "keyed_table_row" | "keyed_table_cell" | "keyed_radio" | "keyed_swipe_action" | "press" | "on_input" | "on_event" | "is_press" | "is_long_press" | "is_double_press" | "is_change" | "is_input" | "is_navigate" | "is_submit" | "is_toggle" | "is_dismiss" | "is_appear" | "is_resize" | "register_press" | "register_long_press" | "register_double_press" | "register_change" | "register_input" | "register_submit" | "register_navigate" | "register_toggle" | "register_dismiss" | "appear_handler" | "register_resize" | "row" | "column" | "grid" | "stack" | "edge_inset" | "overlay" | "align" | "view_that_fits" | "panel" | "card" | "alert" | "bubble" | "box" | "scroll" | "list" | "virtual_list" | "tabs" | "bottom_tabs" | "bottom_tab" | "button_group" | "toggle_group" | "breadcrumb" | "pagination" | "table" | "table_row" | "table_cell" | "tree" | "resizable" | "split" | "drawer" | "status_bar" | "spacer" | "spinner" | "icon" | "text" | "heading" | "paragraph" | "label" | "kbd" | "button" | "icon_button" | "toggle_button" | "checkbox" | "switch_" | "toggle" | "radio_group" | "radio" | "slider" | "number_stepper" | "progress" | "divider" | "separator" | "text_field" | "secure_field" | "input" | "search_field" | "textarea" | "input_group" | "input_group_actions" | "select" | "combobox" | "dropdown_menu" | "context_menu" | "menu_trigger" | "menu" | "submenu" | "dialog" | "sheet" | "tooltip" | "toast" | "file_picker" | "popover" | "toolbar" | "accordion" | "menu_item" | "list_item" | "list_section" | "swipe_actions" | "swipe_action" | "avatar" | "image" | "media_surface" | "link" | "file_image" | "file_preview" | "stepper" | "step" | "timeline" | "timeline_item" | "themed" | "toolbar_button" | "toolbar_icon_button" | "toolbar_toggle_button" | "toolbar_button_group" | "toolbar_toggle_group" | "toolbar_checkbox" | "toolbar_switch" | "toolbar_toggle" | "toolbar_radio_group" | "toolbar_select" | "toolbar_combobox" | "toolbar_text_field" | "toolbar_secure_field" | "toolbar_input" | "toolbar_search_field" | "toolbar_menu_item" | "toolbar_menu_trigger" | "toolbar_spacer" | "toolbar_divider" | "toolbar_text" | "toolbar_menu" | "toolbar_separator" | "dropdown_menu_item" | "dropdown_menu_trigger" | "dropdown_menu_submenu" | "dropdown_menu_separator" | "dropdown_menu_divider" | "list_section_item" | "tree_row" | "tree_column" | "tree_panel" | "tree_card" | "tree_box" | "tree_list_item" | "tree_virtual_list" | "context_menu_item" | "context_menu_separator" | "dropdown_menu_view" | "if_step" | "reactive_step" | "if_timeline_item" | "reactive_timeline_item" | "if_bottom_tab" | "reactive_bottom_tab" | "if_table_row" | "reactive_table_row" | "if_table_cell" | "reactive_table_cell" | "if_radio" | "reactive_radio" | "if_swipe_action" | "reactive_swipe_action" | "if_input_group_actions" | "reactive_input_group_actions" | "keyed_dropdown_menu_item" | "if_dropdown_menu_item" | "reactive_dropdown_menu_item" | "keyed_context_menu_item" | "if_context_menu_item" | "reactive_context_menu_item" | "keyed_toolbar" | "if_toolbar" | "reactive_toolbar" | "keyed_list_section_item" | "if_list_section_item" | "reactive_list_section_item" | "keyed_tree" | "if_tree" | "reactive_tree" | "reactive_dropdown_menu" | "scoped_step" | "scoped_timeline_item" | "scoped_bottom_tab" | "scoped_table_row" | "scoped_table_cell" | "scoped_radio" | "scoped_input_group_actions" | "scoped_swipe_action" | "scoped_dropdown_menu_item" | "scoped_context_menu_item" | "scoped_toolbar" | "scoped_list_section_item" | "scoped_tree" | "scoped_dropdown_menu" -> true + | "mount" | "custom" | "scoped" | "reactive" | "map" | "sample" | "get" | "get_state" | "attach" | "error_boundary" | "enable" | "mount_children" | "dynamic" | "default_subtree_equal" | "dyn" | "if_" | "keyed" | "virtual_rows" | "keyed_step" | "keyed_timeline_item" | "keyed_bottom_tab" | "keyed_table_row" | "keyed_table_cell" | "keyed_radio" | "keyed_swipe_action" | "press" | "on_input" | "on_event" | "is_press" | "is_long_press" | "is_double_press" | "is_change" | "is_input" | "is_navigate" | "is_submit" | "is_toggle" | "is_dismiss" | "is_appear" | "is_resize" | "register_press" | "register_long_press" | "register_double_press" | "register_change" | "register_input" | "register_submit" | "register_navigate" | "register_toggle" | "register_dismiss" | "appear_handler" | "register_resize" | "row" | "column" | "grid" | "stack" | "edge_inset" | "overlay" | "align" | "view_that_fits" | "panel" | "card" | "alert" | "bubble" | "box" | "scroll" | "list" | "virtual_list" | "tabs" | "bottom_tabs" | "bottom_tab" | "button_group" | "toggle_group" | "breadcrumb" | "pagination" | "table" | "table_row" | "table_cell" | "tree" | "resizable" | "split" | "drawer" | "status_bar" | "spacer" | "spinner" | "icon" | "text" | "heading" | "paragraph" | "label" | "kbd" | "button" | "icon_button" | "toggle_button" | "checkbox" | "switch_" | "toggle" | "radio_group" | "radio" | "slider" | "number_stepper" | "progress" | "divider" | "separator" | "text_field" | "secure_field" | "input" | "search_field" | "textarea" | "input_group" | "input_group_actions" | "select" | "combobox" | "dropdown_menu" | "context_menu" | "menu_trigger" | "menu" | "submenu" | "dialog" | "sheet" | "tooltip" | "toast" | "file_picker" | "popover" | "toolbar" | "accordion" | "menu_item" | "list_item" | "list_section" | "swipe_actions" | "swipe_action" | "avatar" | "image" | "media_surface" | "link" | "file_image" | "file_preview" | "stepper" | "step" | "timeline" | "timeline_item" | "themed" | "toolbar_button" | "toolbar_icon_button" | "toolbar_toggle_button" | "toolbar_button_group" | "toolbar_toggle_group" | "toolbar_checkbox" | "toolbar_switch" | "toolbar_toggle" | "toolbar_radio_group" | "toolbar_select" | "toolbar_combobox" | "toolbar_text_field" | "toolbar_secure_field" | "toolbar_input" | "toolbar_search_field" | "toolbar_menu_item" | "toolbar_menu_trigger" | "toolbar_spacer" | "toolbar_divider" | "toolbar_text" | "toolbar_menu" | "toolbar_separator" | "dropdown_menu_item" | "dropdown_menu_trigger" | "dropdown_menu_submenu" | "dropdown_menu_separator" | "dropdown_menu_divider" | "list_section_item" | "tree_row" | "tree_column" | "tree_panel" | "tree_card" | "tree_box" | "tree_list_item" | "tree_virtual_list" | "context_menu_item" | "context_menu_separator" | "dropdown_menu_view" | "if_step" | "reactive_step" | "if_timeline_item" | "reactive_timeline_item" | "if_bottom_tab" | "reactive_bottom_tab" | "if_table_row" | "reactive_table_row" | "if_table_cell" | "reactive_table_cell" | "if_radio" | "reactive_radio" | "if_swipe_action" | "reactive_swipe_action" | "if_input_group_actions" | "reactive_input_group_actions" | "keyed_dropdown_menu_item" | "if_dropdown_menu_item" | "reactive_dropdown_menu_item" | "keyed_context_menu_item" | "if_context_menu_item" | "reactive_context_menu_item" | "keyed_toolbar" | "if_toolbar" | "reactive_toolbar" | "keyed_list_section_item" | "if_list_section_item" | "reactive_list_section_item" | "keyed_tree" | "if_tree" | "reactive_tree" | "reactive_dropdown_menu" | "scoped_step" | "scoped_timeline_item" | "scoped_bottom_tab" | "scoped_table_row" | "scoped_table_cell" | "scoped_radio" | "scoped_input_group_actions" | "scoped_swipe_action" | "scoped_dropdown_menu_item" | "scoped_context_menu_item" | "scoped_toolbar" | "scoped_list_section_item" | "scoped_tree" | "scoped_dropdown_menu" -> true | _ -> false + +let ui_constructor = function + | "form_section" -> Some (ListSection, ListSection, Children_list) + | "form_sheet" -> Some (Sheet, ListContainer, Children_list) + | "form_row" -> Some (ListItem, Column, Child_arguments 1) + | "data_row" -> Some (ListItem, Column, Child_arguments 1) + | "data_list" -> Some (ListContainer, ListSection, Children_list) + | "hstack" -> Some (Row, Row, Children_list) + | "vstack" -> Some (Column, Column, Children_list) + | "page" -> Some (Column, Column, Children_list) + | "section" -> Some (Column, Column, Children_list) + | _ -> None diff --git a/ppx/lui_ppx.ml b/ppx/lui_ppx.ml index f3ce2b82f..0ab915c8b 100644 --- a/ppx/lui_ppx.ml +++ b/ppx/lui_ppx.ml @@ -18,6 +18,89 @@ open Ppxlib module B = Ast_builder.Default +module Names = Map.Make (String) + +type module_kind = Lui | Elements | Slot_style | Other + +let rec resolve_module modules = function + | Lident name -> + Option.value (Names.find_opt name modules) + ~default: + (match name with + | "Lui" -> Lui + | "Lui_elements" | "Elements" -> Elements + | "Slot_style" -> Slot_style + | _ -> Other) + | Ldot (parent, "Elements") when resolve_module modules parent = Lui -> + Elements + | Ldot (parent, "Slot_style") when resolve_module modules parent = Elements -> + Slot_style + | _ -> Other + +let bind_module modules name kind = + match name.txt with + | Some name -> Names.add name kind modules + | None -> modules + +let bind_pattern modules pattern = + let modules = ref modules in + let visitor = + object + inherit Ast_traverse.iter as super + + method! pattern pat = + (match pat.ppat_desc with + | Ppat_unpack { txt = Some name; _ } -> + modules := Names.add name Other !modules + | _ -> ()); + super#pattern pat + end + in + visitor#pattern pattern; + !modules + +let rec module_expr_kind modules expr = + match expr.pmod_desc with + | Pmod_ident { txt; _ } -> resolve_module modules txt + | Pmod_constraint (inner, _) -> module_expr_kind modules inner + | Pmod_structure items -> + snd + (List.fold_left + (fun (modules, acc) item -> + match item.pstr_desc with + | Pstr_module binding -> + ( bind_module modules binding.pmb_name + (module_expr_kind modules binding.pmb_expr), + acc ) + | Pstr_open decl -> (open_module modules decl.popen_expr, acc) + | Pstr_include { pincl_mod; _ } -> ( + match module_expr_kind modules pincl_mod with + | Other -> (modules, acc) + | kind -> (modules, kind)) + | _ -> (modules, acc)) + (modules, Other) items) + | _ -> Other + +and open_module modules expr = + match module_expr_kind modules expr with + | Lui -> + modules + |> Names.add "Elements" Elements + |> Names.add "Raw" Other + |> Names.add "Ui" Other + | Elements -> Names.add "Slot_style" Slot_style modules + | _ -> modules + +let rec fn_ident modules expr = + match expr.pexp_desc with + | Pexp_ident { txt; _ } -> Some (modules, txt) + | Pexp_open (decl, body) -> + fn_ident (open_module modules decl.popen_expr) body + | Pexp_letmodule (name, def, body) -> + fn_ident (bind_module modules name (module_expr_kind modules def)) body + | Pexp_constraint (body, _) | Pexp_coerce (body, _, _) -> + fn_ident modules body + | _ -> None let signal_map loc = B.pexp_ident ~loc { txt = Ldot (Lident "Signal", "map"); loc } @@ -182,23 +265,182 @@ let scoped_expression ?(adapter = "scoped") ?property ~loc build = let scoped = B.pexp_ident ~loc { txt = path; loc } in apply ~loc scoped (Option.to_list property @ [lam ~loc [pvar ~loc context] (build own_generated)]) -let structural_constructor expression = match expression.pexp_desc with - | Pexp_ident { txt = Lident name | Ldot (Lident "Lui_elements", name); _ } -> - name = "if_" || name = "keyed" || name = "virtual_rows" - || Lui_nesting_schema.dynamic_adapter name +let is_structural_name name = + name = "if_" || name = "keyed" || name = "virtual_rows" + || Lui_nesting_schema.dynamic_adapter name + +let structural_constructor modules expression = + match fn_ident modules expression with + | Some (_, Lident name) -> is_structural_name name + | Some (modules, Ldot (parent, name)) -> + resolve_module modules parent = Elements && is_structural_name name + | Some (_, Lapply _) | None -> false + +let is_slot_style_constructor modules expression = + match fn_ident modules expression with + | Some + ( modules, + Ldot (parent, ("make" | "typography" | "text_flow" | "collision")) ) -> + resolve_module modules parent = Slot_style + | _ -> false + +let is_reactive_arg = function + | ( Labelled _, + { + pexp_desc = + Pexp_apply + ( { pexp_desc = Pexp_ident { txt = Lident "reactive"; _ }; _ }, + (Nolabel, _) :: rest ); + _; + } ) -> + List.for_all (fun ((l : arg_label), _) -> l = Nolabel) rest | _ -> false let rec constructor_name expression = match expression.pexp_desc with | Pexp_ident { txt = Lident name | Ldot (_, name); _ } -> name - | Pexp_apply (fn, _) -> constructor_name fn + | Pexp_apply (fn, _) + | Pexp_open (_, fn) + | Pexp_letmodule (_, _, fn) + | Pexp_constraint (fn, _) + | Pexp_coerce (fn, _, _) -> constructor_name fn | _ -> "" class mapper = - object + object (self) inherit Ast_traverse.map as super + val mutable modules = Names.empty + + method private within : 'a. module_kind Names.t -> (unit -> 'a) -> 'a = + fun next visit -> + let previous = modules in + modules <- next; + Fun.protect visit ~finally:(fun () -> modules <- previous) + + method! structure items = + self#within modules (fun () -> + List.map + (fun item -> + match item.pstr_desc with + | Pstr_recmodule bindings -> + modules <- + List.fold_left + (fun modules binding -> + bind_module modules binding.pmb_name Other) + modules bindings; + super#structure_item item + | Pstr_open declaration -> + let item = super#structure_item item in + modules <- open_module modules declaration.popen_expr; + item + | Pstr_module binding -> + let kind = module_expr_kind modules binding.pmb_expr in + let item = super#structure_item item in + modules <- bind_module modules binding.pmb_name kind; + item + | Pstr_include declaration -> + let item = super#structure_item item in + modules <- open_module modules declaration.pincl_mod; + item + | Pstr_value (recursive, bindings) -> + let next = + List.fold_left + (fun modules binding -> + bind_pattern modules binding.pvb_pat) + modules bindings + in + let item = + self#within + (if recursive = Recursive then next else modules) + (fun () -> super#structure_item item) + in + modules <- next; + item + | _ -> super#structure_item item) + items) + + method! case case = + self#within (bind_pattern modules case.pc_lhs) (fun () -> super#case case) + + method! module_expr expr = + match expr.pmod_desc with + | Pmod_functor (Named (name, argument), body) -> + let argument = self#module_type argument in + let body = + self#within (bind_module modules name Other) (fun () -> + self#module_expr body) + in + { + expr with + pmod_desc = Pmod_functor (Named (name, argument), body); + pmod_attributes = self#attributes expr.pmod_attributes; + } + | _ -> super#module_expr expr method! expression expr = match expr.pexp_desc with + | Pexp_open (declaration, body) -> + let kind_modules = open_module modules declaration.popen_expr in + let declaration = self#open_declaration declaration in + let body = + self#within kind_modules (fun () -> self#expression body) + in + { + expr with + pexp_desc = Pexp_open (declaration, body); + pexp_attributes = self#attributes expr.pexp_attributes; + } + | Pexp_letmodule (name, definition, body) -> + let kind = module_expr_kind modules definition in + let definition = self#module_expr definition in + let body = + self#within (bind_module modules name kind) (fun () -> + self#expression body) + in + { + expr with + pexp_desc = Pexp_letmodule (name, definition, body); + pexp_attributes = self#attributes expr.pexp_attributes; + } + | Pexp_let (recursive, bindings, body) -> + let next = + List.fold_left + (fun modules binding -> bind_pattern modules binding.pvb_pat) + modules bindings + in + let bindings = + self#within (if recursive = Recursive then next else modules) + (fun () -> List.map self#value_binding bindings) + in + let body = self#within next (fun () -> self#expression body) in + { + expr with + pexp_desc = Pexp_let (recursive, bindings, body); + pexp_attributes = self#attributes expr.pexp_attributes; + } + | Pexp_function (parameters, constraint_, body) -> + self#within modules (fun () -> + let parameters = + List.map + (fun parameter -> + match parameter.pparam_desc with + | Pparam_val (label, default, pattern) -> + let default = Option.map self#expression default in + let pattern = self#pattern pattern in + modules <- bind_pattern modules pattern; + { + parameter with + pparam_desc = Pparam_val (label, default, pattern); + } + | Pparam_newtype _ -> parameter) + parameters + in + let constraint_ = Option.map self#type_constraint constraint_ in + let body = self#function_body body in + { + expr with + pexp_desc = Pexp_function (parameters, constraint_, body); + pexp_attributes = self#attributes expr.pexp_attributes; + }) | Pexp_apply (fn, args) when is_reactive_ident fn && dyn_supported args -> (* bare `reactive` at expression position: dyn over the signal *) @@ -212,6 +454,7 @@ class mapper = inner `reactive` is consumed here rather than revisited as a bare dyn expansion when super descends *) let needs_scope = ref false in + let is_structural = structural_constructor modules fn in (* A constructor may already be applied to its mount context and parent. Scope the view builder, then preserve that application; wrapping the final node id would change the expression's type. *) @@ -220,7 +463,7 @@ class mapper = match List.rev args with | (Nolabel, parent) :: (Nolabel, context) :: reversed when List.length positional >= 3 - || (structural_constructor fn && List.length positional = 2) -> + || (is_structural && List.length positional = 2) -> List.rev reversed, [Nolabel, context; Nolabel, parent] | _ -> args, [] in let transform arguments owner = @@ -246,7 +489,7 @@ class mapper = in let own expression = if not (List.mem name signal_only_labels) - || structural_constructor fn then begin + || is_structural then begin needs_scope := true; owner#expression expression end else expression in @@ -283,16 +526,12 @@ class mapper = super#expression result in let plain = transform args (new Ast_traverse.map) in if !needs_scope then - let adapter = match fn.pexp_desc with - | Pexp_ident {txt = Ldot (Lident "Slot_style", "make"); _} - | Pexp_ident {txt = Ldot (Ldot (Lident "Lui_elements", "Slot_style"), "make"); _} -> "slot_style" - | _ -> Lui_nesting_schema.scoped_adapter (constructor_name fn) in + let adapter = + if is_slot_style_constructor modules fn then "slot_style" + else Lui_nesting_schema.scoped_adapter (constructor_name fn) + in if adapter = "slot_style" then begin - let is_reactive = function - | Labelled _, {pexp_desc = Pexp_apply - ({pexp_desc = Pexp_ident {txt = Lident "reactive"; _}; _}, _); _} -> true - | _ -> false in - let static, reactive = List.partition (fun arg -> not (is_reactive arg)) args in + let static, reactive = List.partition (fun arg -> not (is_reactive_arg arg)) args in List.fold_left (fun base ((label, _) as argument) -> let name = match label with Labelled name -> name | _ -> assert false in let name = if ends_with name "_signal" then String.sub name 0 (String.length name - 7) else name in diff --git a/schema/apple-property-admission.json b/schema/apple-property-admission.json index a8a1fc71f..2ddbb56ac 100644 --- a/schema/apple-property-admission.json +++ b/schema/apple-property-admission.json @@ -1 +1 @@ -{"events":{"Appear":["row","column","grid","stack","edge-inset","overlay","view-that-fits","panel","card","alert","bubble","box","text","heading","paragraph","label","button","toggle-button","toggle","radio-group","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","progress","divider","scroll","list","virtual-list","tabs","bottom-tabs","bottom-tab","button-group","toggle-group","spacer","spinner","icon","select","combobox","dropdown-menu","context-menu","menu-item","menu-trigger","list-item","avatar","image","media-surface","stepper","step","timeline","timeline-item","input-group","input-group-actions","breadcrumb","pagination","accordion","table","table-row","table-cell","tree","resizable","split","dialog","drawer","sheet","tooltip","toast","toolbar","status-bar","list-section","list-section-header","list-section-footer","swipe-actions","swipe-action","file-picker","kbd","link","file-image","file-preview","popover"],"Change":["radio"],"ContextMenuPress":["text","button","toggle-button","toggle","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","select","combobox","menu-item","list-item","accordion","table-cell"],"Dismiss":["select","combobox","dropdown-menu","context-menu","dialog","drawer","sheet","toast","file-picker","file-preview","popover"],"DoublePress":["list-item"],"FocusWithinChanged":["row","column","box"],"Load":["image"],"LongPress":["button","toggle-button","list-item"],"NavigateNext":["text-field","secure-field","input","search-field","textarea"],"NavigatePrevious":["text-field","secure-field","input","search-field","textarea"],"NavigationKey":["row","box","button"],"Picked":["file-picker"],"PointerCancel":["row","box"],"PointerDown":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","file-image"],"PointerEnter":["row","column","grid","stack","edge-inset","overlay","view-that-fits","panel","card","alert","bubble","box","text","heading","paragraph","label","button","toggle-button","toggle","radio-group","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","progress","divider","scroll","list","virtual-list","tabs","bottom-tabs","bottom-tab","button-group","toggle-group","spacer","spinner","icon","select","combobox","dropdown-menu","context-menu","menu-item","menu-trigger","list-item","avatar","image","media-surface","stepper","step","timeline","timeline-item","input-group","input-group-actions","breadcrumb","pagination","accordion","table","table-row","table-cell","tree","resizable","split","dialog","drawer","sheet","tooltip","toast","toolbar","status-bar","list-section","list-section-header","list-section-footer","swipe-actions","swipe-action","file-picker","kbd","link","file-image","file-preview","popover"],"PointerLeave":["row","column","grid","stack","edge-inset","overlay","view-that-fits","panel","card","alert","bubble","box","text","heading","paragraph","label","button","toggle-button","toggle","radio-group","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","progress","divider","scroll","list","virtual-list","tabs","bottom-tabs","bottom-tab","button-group","toggle-group","spacer","spinner","icon","select","combobox","dropdown-menu","context-menu","menu-item","menu-trigger","list-item","avatar","image","media-surface","stepper","step","timeline","timeline-item","input-group","input-group-actions","breadcrumb","pagination","accordion","table","table-row","table-cell","tree","resizable","split","dialog","drawer","sheet","tooltip","toast","toolbar","status-bar","list-section","list-section-header","list-section-footer","swipe-actions","swipe-action","file-picker","kbd","link","file-image","file-preview","popover"],"PointerMove":["row","box"],"PointerUp":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","file-image"],"Press":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","link","file-image"],"PressDetail":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","file-image"],"PressModifiers":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","link","file-image"],"ScrollCompleted":["list","virtual-list"],"ScrollEdges":["list","virtual-list"],"Submit":["text-field","secure-field","input","search-field","textarea","combobox","list-item"],"TextChanged":["text-field","secure-field","input","search-field","textarea","combobox"],"ToggleChanged":["toggle-button","toggle","radio","checkbox","switch","list-item","accordion","drawer"],"ToggleChangedDetail":["checkbox"],"ValueChanged":["slider","number-stepper","split"],"VirtualRetention":["scroll"],"VirtualWindow":["virtual-list"],"VisibleRange":["list","virtual-list"]},"kindValues":{"accordion":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"alert":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"avatar":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"bottom-tab":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"bottom-tabs":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"box":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"breadcrumb":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"bubble":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"button":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"button-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"card":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"checkbox":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"column":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"combobox":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"context-menu":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"dialog":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"divider":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"drawer":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"dropdown-menu":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"edge-inset":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"file-image":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"file-picker":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"file-preview":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"grid":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"heading":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"icon":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"image":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"input":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"input-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"input-group-actions":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"kbd":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"label":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"link":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-item":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-section":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-section-footer":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-section-header":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"media-surface":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"menu-item":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"menu-trigger":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"number-stepper":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"overlay":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"pagination":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"panel":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"paragraph":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000001000000000100000000000000000000000001000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"popover":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"progress":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"radio":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"radio-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"resizable":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"root":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"row":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"scroll":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"search-field":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"secure-field":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"select":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"sheet":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"slider":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"spacer":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"spinner":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"split":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"stack":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"status-bar":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"step":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"stepper":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"swipe-action":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"swipe-actions":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"switch":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"table":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"table-cell":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000001000000000000000000000000000000100001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"table-row":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"tabs":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"text":{"as":"000000000000000000000000000000000010000000000000000001000000000001000000000000100000000000000000000000000010000000010000000000100000000000000000000000000000000100000000000100000000000101000000001010100000000000001000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"text-field":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"textarea":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"timeline":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"timeline-item":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toast":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toggle":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toggle-button":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toggle-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toolbar":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"tooltip":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"tree":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"view-that-fits":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"virtual-list":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"}},"kinds":{"accordion":["text","height","accessibility-identifier","style-class","selected","toggle-enabled","alignment","pointer-enabled"],"alert":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","variant","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"avatar":["text","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","image","source-x","source-y","source-width","source-height","alignment","pointer-enabled","data-attrs","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"bottom-tab":["enabled","accessibility-identifier","icon","selected","press-enabled","title","alignment","pointer-enabled"],"bottom-tabs":["grow","width","height","min-width","max-width","min-height","max-height","accessibility-label","accessibility-identifier","style-class","alignment","pointer-enabled","data-attrs"],"box":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","flex-wrap","hover-foreground","hover-border","transition","inert","navigate-enabled","grid-column-span","pointer-capture","focus-within-enabled","shrink"],"breadcrumb":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"bubble":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","variant","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"button":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","size","variant","icon","icon-placement","selected","autofocus","long-press-enabled","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","tooltip","tooltip-keys","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span"],"button-group":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"card":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"checkbox":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","label-opacity","indicator-border-color","checked-indicator-border-color","indeterminate","toggle-detail-enabled"],"column":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","flex-wrap","hover-foreground","hover-border","transition","grid-column-span","focus-within-enabled","shrink"],"combobox":["text","enabled","gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-identifier","style-class","change-enabled","press-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","read-only"],"context-menu":["accessibility-identifier","alignment"],"dialog":["text","gap","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","accessibility-identifier","style-class","appear-enabled","description","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","overflow","cursor","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","transition"],"divider":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","orientation","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"drawer":["text","enabled","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","width","height","accessibility-label","accessibility-identifier","style-class","selected","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","overflow","cursor","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","transition"],"dropdown-menu":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","anchor","anchor-alignment","anchor-offset","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","x","y","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","collision-padding"],"edge-inset":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","edge","visible","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"file-image":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","press-enabled","appear-enabled","path","max-pixel-size","image-fit","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"file-picker":["enabled","accessibility-identifier","appear-enabled","request","types","multiple","source","completion","alignment","pointer-enabled","accept","directory"],"file-preview":["accessibility-identifier","path","alignment","pointer-enabled"],"grid":["gap","main","cross","grow","columns","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"heading":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","heading-level","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"icon":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","size","name","appear-enabled","alignment","pointer-enabled","data-attrs","opacity","tooltip","tooltip-keys","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"image":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","image","source-x","source-y","source-width","source-height","url","image-fit","alignment","pointer-enabled","data-attrs","alt","loading","referrer-policy","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"input":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","input-type","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"input-group":["grow","width","height","min-width","accessibility-label","accessibility-identifier","alignment","pointer-enabled"],"input-group-actions":["gap","accessibility-identifier","alignment","pointer-enabled"],"kbd":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","accessibility-identifier","style-class","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","white-space","text-overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","font-family","text-decoration","transition"],"label":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"link":["text","enabled","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","icon","icon-placement","press-enabled","appear-enabled","theme","theme-mode","url","alignment","pointer-enabled","data-attrs","target","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"list":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","style","scroll-target","scroll-anchor","scroll-token","scroll-animated","track-visible-range","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","list-style","hover-foreground","hover-border","transition","grid-column-span"],"list-item":["text","enabled","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","icon","icon-placement","selected","long-press-enabled","change-enabled","toggle-enabled","press-enabled","submit-enabled","double-press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","key","separator","alignment","pointer-enabled","data-attrs","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","list-style","hover-foreground","hover-border","transition","grid-column-span"],"list-section":["accessibility-identifier","key","separator","alignment","pointer-enabled"],"list-section-footer":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"list-section-header":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"media-surface":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","surface","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"menu-item":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","size","variant","icon","selection-placement","selected","press-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","tooltip","tooltip-keys","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"menu-trigger":["text","enabled","foreground","accessibility-label","accessibility-identifier","style-class","icon","text-alignment","alignment","pointer-enabled","data-attrs"],"number-stepper":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","value","change-enabled","appear-enabled","theme","theme-mode","min","max","step","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"overlay":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"pagination":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"panel":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"paragraph":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"popover":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","anchor","anchor-target","anchor-alignment","anchor-offset","role","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","x","y","available-height","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","anchor-alignment-offset","anchor-rect","collision-padding"],"progress":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","value","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"radio":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","change-enabled","toggle-enabled","press-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","label-opacity"],"radio-group":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"resizable":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"root":["accessibility-identifier","theme","theme-mode"],"row":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","orientation","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","flex-wrap","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","pointer-capture","focus-within-enabled","shrink"],"scroll":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","orientation","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","virtual-viewport-epoch","virtual-retentions","virtual-retention-releases"],"search-field":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"secure-field":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"select":["text","enabled","gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","press-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"sheet":["text","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","width","height","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","detents","sizing","alignment","pointer-enabled","data-attrs","opacity","overflow","cursor","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","transition"],"slider":["enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","value","change-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"spacer":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"spinner":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","size","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"split":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","value","change-enabled","appear-enabled","resize-duration","resize-easing","resize-origin","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","first-pane-width","grid-column-span","resize-handle-width","resize-handle-offset"],"stack":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"status-bar":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","text-alignment","alignment","pointer-enabled","data-attrs","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"step":["text","accessibility-identifier","alignment","pointer-enabled"],"stepper":["accessibility-label","accessibility-identifier","active","alignment","pointer-enabled"],"swipe-action":["text","enabled","background","accessibility-identifier","variant","icon","press-enabled","edge","alignment","pointer-enabled"],"swipe-actions":["accessibility-identifier","alignment"],"switch":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"table":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"table-cell":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","size","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"table-row":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","selected","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"tabs":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","orientation","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"text":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"text-field":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"textarea":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","submit-on-enter","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"timeline":["gap","grow","accessibility-label","accessibility-identifier","alignment","pointer-enabled"],"timeline-item":["accessibility-identifier","variant","icon","selected","press-enabled","title","description","meta","indicator","connector","alignment","pointer-enabled"],"toast":["padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","accessibility-label","accessibility-identifier","style-class","duration","alignment","pointer-enabled","data-attrs"],"toggle":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"toggle-button":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","size","variant","icon","icon-placement","selected","autofocus","long-press-enabled","toggle-enabled","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"toggle-group":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"toolbar":["gap","padding","background","border-width","corner-radius","height","accessibility-label","accessibility-identifier","style-class","orientation","placement","alignment","pointer-enabled","data-attrs"],"tooltip":["text","container-relative-frame","container-relative-frame-inset","accessibility-identifier","appear-enabled","anchor","anchor-alignment","anchor-offset","tooltip-delay","alignment","pointer-enabled","cursor","collision-padding"],"tree":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"view-that-fits":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","orientation","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"virtual-list":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","selected","appear-enabled","theme","theme-mode","style","scroll-target","scroll-anchor","scroll-token","scroll-animated","track-visible-range","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","list-style","hover-foreground","hover-border","transition","grid-column-span","overscan","item-extent","virtual-total-count","virtual-generation","virtual-indices","virtual-scroll-index","virtual-owner-node","virtual-owner-epoch","virtual-row-keys"]},"modalKinds":["dialog","drawer","sheet"],"properties":{"accept":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","accessibility-identifier":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","accessibility-label":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","active":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","alignment":"000000000000000000000000000000000000001110010000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000100111000000000000000000000000000000000","alt":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","anchor":"000000000000000000000010000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000","anchor-alignment":"000000000000000000000000000000000000000000010000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000100000000000000000000000000000000000000000000000000","anchor-alignment-offset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","anchor-offset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","anchor-rect":"000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","anchor-target":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","appear-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","as":"000000000000000000000000000000000010000000000000000001000000000001000000100000100000000000000000111111000010000000011000001000100000000000000001000001000000000100000000000100000000000101000000001010100000000000001100000000000000000000000000000","autofocus":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","available-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","background":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","border-color":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","border-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","change-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","checked":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","checked-indicator-border-color":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","collision-padding":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","columns":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","completion":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100111111111110000000","connector":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","container-relative-frame":"000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000111000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000","container-relative-frame-inset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","corner-radius":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","cross":"000000000000000000000000000000000000000000010000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000100000000000000000000000000000000000000000000000000","cursor":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000010000000000000000000000000000000000000000","data-attrs":"100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","description":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","detents":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","directory":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","disabled-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","display":"000000000000000000000000000000000000100000000000000000001000000000000000000000000000000000000000000000000000011100000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","double-press-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","duration":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111100000000","edge":"000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000100001000000000000000000000000000000000","enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","expanded":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","first-pane-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","flex-wrap":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000","focus-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","focus-within-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","focus-within-border":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","focus-within-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","font-family":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","font-size":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","font-style":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000001010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","font-weight":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111110000000000","foreground":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","gap":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","grid-column-span":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","grow":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","heading-level":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110000000000000","height":"000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","height-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","hover-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","hover-border":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","hover-foreground":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","hover-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","hover-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","icon":"000000000000000000000000101101110000000000001111111010000100000000000000010011000111000001100111000000000000100000000000000000011000101000000000000000011100110000000010100001100111110000000000000001000100000000100000001011100000000000000000000","icon-placement":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000100001000000000000000000000000000000000","image":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","image-fit":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","indeterminate":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","indicator":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","indicator-border-color":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","inert":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","input-type":"000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000","inset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-bottom":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-left":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-right":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-top":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","item-extent":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111","key":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","label-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","letter-spacing":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","line-clamp":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","line-height":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","list-style":"000000000000000000000000000000000000000000000000000000000000000100000010000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","loading":"000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","long-press-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","main":"000000000000000000000000000000000000000000010000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001000000000000000000000000000000000000000000000000000000","margin":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-bottom":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-horizontal":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-left":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-right":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-top":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-vertical":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","max":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","max-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","max-height-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","max-pixel-size":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","max-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","max-width-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","meta":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","min":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","min-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","min-height-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","min-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","min-width-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","multiple":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","name":"000000000000000000000000101101110000000000001111111010000100000000000000010011000111000001100111000000000000100000000000000000011000101000000000000000011100110000000010100001100111110000000000000001000100000000100000001011100000000000000000000","navigate-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","orientation":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000","overflow":"000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000","overscan":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","padding-bottom":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-horizontal":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-left":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-right":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-top":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-vertical":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","path":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","placeholder":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","placement":"000000000000000000000000000000000100001000100000000000010000000000010000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000001100000000001000000000000010000000000000011000000000000000000000000000000000000","pointer-capture":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","pointer-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","position":"000000000000000000000001000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000101000000000000000000000000000000000000000000000000000","press-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","pressed-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","pressed-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","pressed-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","read-only":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","referrer-policy":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000000000000000000000000000000010000000000000000000001000000000000000000000000000","request":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100111111111110000000","resize-duration":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","resize-easing":"000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000","resize-handle-offset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","resize-handle-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","resize-origin":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","scroll-anchor":"000000000000000000000000000000000000001000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000","scroll-animated":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","scroll-target":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","scroll-token":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","selected":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","selected-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","selected-hover-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","selected-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","selection-placement":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000100001000000000000000000000000000000000","separator":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000","shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","shrink":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","size":"000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000","sizing":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100010000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","source":"000000000000000000000000000000000000000001000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","source-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","source-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","source-x":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","source-y":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","step":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111","style":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","style-class":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","submit-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","submit-on-blur":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","submit-on-enter":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","surface":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","target":"000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","text":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","text-alignment":"000000000000000000000000000000000000000000010000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000","text-decoration":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000010000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000","text-overflow":"000000000000000000000000000000000000000000000000000100000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","theme":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","theme-mode":"000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000","title":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","toggle-detail-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","toggle-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","tooltip":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","tooltip-delay":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111100000000","tooltip-keys":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","track-visible-range":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","transition":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","tree-level":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","types":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","url":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","user-select":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000","value":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","variant":"000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000001000000000000000000000000000000000000000000000000000000100000000000000010000000000010000000000000000000000000000000000000000000000000000000000000000000","virtual-generation":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","virtual-indices":"000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","virtual-owner-epoch":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","virtual-owner-node":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","virtual-retention-releases":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","virtual-retentions":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","virtual-row-keys":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","virtual-scroll-index":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","virtual-total-count":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","virtual-viewport-epoch":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","visible":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","white-space":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000011000000000000000000000000000000000000000000000000000000000000000000000000000000000","width":"000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","width-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","x":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","y":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","z-index":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000"},"sourceHashes":{"schema/components.json":"45f999773a0d8c0c33ddd965cd9dcf576b08af49491456562b3e85bc9d27b39c","src/lui_protocol.ml":"eb42888e202d01738b73eb90d6213e1b0ac0fb5da40e8d459faa42381f14de55","tooling/export_apple_admission.ml":"6b8e004438dee4b7fbfc37b5b07736788233ab65a6e34dacb2e7c3d7eee2ca64"},"values":[{"type":"string","value":""},{"type":"string","value":"\u001e"},{"type":"string","value":"\u001f"},{"type":"string","value":" "},{"type":"string","value":","},{"type":"string","value":"0 0 1 1"},{"type":"string","value":"ArrowDown"},{"type":"string","value":"ArrowLeft"},{"type":"string","value":"ArrowRight"},{"type":"string","value":"ArrowUp"},{"type":"string","value":"End"},{"type":"string","value":"Enter"},{"type":"string","value":"Escape"},{"type":"string","value":"Home"},{"type":"string","value":"LUI numeric normalization: property=%s reason=non-finite fallback=1\n%!"},{"type":"string","value":"PageDown"},{"type":"string","value":"PageUp"},{"type":"string","value":"["},{"type":"string","value":"[]"},{"type":"string","value":"]"},{"type":"string","value":"_blank"},{"type":"string","value":"_self"},{"type":"string","value":"above"},{"type":"string","value":"absolute"},{"type":"string","value":"alert"},{"type":"string","value":"app:"},{"type":"string","value":"app:sample"},{"type":"string","value":"archive"},{"type":"string","value":"aria-"},{"type":"string","value":"arrow-down"},{"type":"string","value":"arrow-right"},{"type":"string","value":"arrow-up"},{"type":"string","value":"auto"},{"type":"string","value":"automatic"},{"type":"string","value":"b"},{"type":"string","value":"below"},{"type":"string","value":"block"},{"type":"string","value":"both"},{"type":"string","value":"bottom"},{"type":"string","value":"bottom-leading"},{"type":"string","value":"bottom-trailing"},{"type":"string","value":"camera"},{"type":"string","value":"cancellation-action"},{"type":"string","value":"center"},{"type":"string","value":"check"},{"type":"string","value":"check-circle"},{"type":"string","value":"chevron-down"},{"type":"string","value":"chevron-left"},{"type":"string","value":"chevron-right"},{"type":"string","value":"chevron-up"},{"type":"string","value":"circle-dot"},{"type":"string","value":"clip"},{"type":"string","value":"clock"},{"type":"string","value":"code"},{"type":"string","value":"color"},{"type":"string","value":"confirmation-action"},{"type":"string","value":"contents"},{"type":"string","value":"copy"},{"type":"string","value":"dark"},{"type":"string","value":"data-"},{"type":"string","value":"data-attrs: control character in name or value"},{"type":"string","value":"data-attrs: malformed payload"},{"type":"string","value":"data-attrs: unsupported attribute name: "},{"type":"string","value":"decimal"},{"type":"string","value":"default"},{"type":"string","value":"del"},{"type":"string","value":"destructive"},{"type":"string","value":"destructive-action"},{"type":"string","value":"dialog"},{"type":"string","value":"disabled-opacity"},{"type":"string","value":"disc"},{"type":"string","value":"display"},{"type":"string","value":"div"},{"type":"string","value":"download"},{"type":"string","value":"draggable"},{"type":"string","value":"eager"},{"type":"string","value":"edit"},{"type":"string","value":"ellipsis"},{"type":"string","value":"em"},{"type":"string","value":"emphasized"},{"type":"string","value":"end"},{"type":"string","value":"external-link"},{"type":"string","value":"eye"},{"type":"string","value":"file-text"},{"type":"string","value":"files"},{"type":"string","value":"fill"},{"type":"string","value":"fit"},{"type":"string","value":"fitted"},{"type":"string","value":"fixed"},{"type":"string","value":"folder"},{"type":"string","value":"folder-open"},{"type":"string","value":"form"},{"type":"string","value":"ghost"},{"type":"string","value":"git-branch"},{"type":"string","value":"git-merge"},{"type":"string","value":"git-pull-request"},{"type":"string","value":"h1"},{"type":"string","value":"h2"},{"type":"string","value":"h3"},{"type":"string","value":"h4"},{"type":"string","value":"h5"},{"type":"string","value":"h6"},{"type":"string","value":"heading"},{"type":"string","value":"hidden"},{"type":"string","value":"horizontal"},{"type":"string","value":"hover-opacity"},{"type":"string","value":"i"},{"type":"string","value":"icon"},{"type":"string","value":"info"},{"type":"string","value":"inline"},{"type":"string","value":"inline-block"},{"type":"string","value":"inline-flex"},{"type":"string","value":"inset"},{"type":"string","value":"inset-grouped"},{"type":"string","value":"italic"},{"type":"string","value":"kbd"},{"type":"string","value":"label"},{"type":"string","value":"label-opacity"},{"type":"string","value":"lazy"},{"type":"string","value":"leading"},{"type":"string","value":"left"},{"type":"string","value":"lg"},{"type":"string","value":"li"},{"type":"string","value":"light"},{"type":"string","value":"line-through"},{"type":"string","value":"linear"},{"type":"string","value":"mark"},{"type":"string","value":"menu"},{"type":"string","value":"mic"},{"type":"string","value":"min-both"},{"type":"string","value":"min-horizontal"},{"type":"string","value":"min-vertical"},{"type":"string","value":"moon"},{"type":"string","value":"ms"},{"type":"string","value":"music"},{"type":"string","value":"navigation"},{"type":"string","value":"navigation-heading"},{"type":"string","value":"nearest"},{"type":"string","value":"no-referrer"},{"type":"string","value":"none"},{"type":"string","value":"normal"},{"type":"string","value":"nowrap"},{"type":"string","value":"oblique"},{"type":"string","value":"ol"},{"type":"string","value":"opacity"},{"type":"string","value":"opacity 1s"},{"type":"string","value":"origin"},{"type":"string","value":"outline"},{"type":"string","value":"overline"},{"type":"string","value":"p"},{"type":"string","value":"page"},{"type":"string","value":"panel-left"},{"type":"string","value":"panel-right"},{"type":"string","value":"pause"},{"type":"string","value":"photos"},{"type":"string","value":"plain"},{"type":"string","value":"play"},{"type":"string","value":"plus"},{"type":"string","value":"pointer"},{"type":"string","value":"pre"},{"type":"string","value":"pre-line"},{"type":"string","value":"pre-wrap"},{"type":"string","value":"pressed-opacity"},{"type":"string","value":"primary"},{"type":"string","value":"primary-action"},{"type":"string","value":"principal"},{"type":"string","value":"refresh-cw"},{"type":"string","value":"relative"},{"type":"string","value":"repeat"},{"type":"string","value":"right"},{"type":"string","value":"role"},{"type":"string","value":"s"},{"type":"string","value":"sample"},{"type":"string","value":"save"},{"type":"string","value":"search"},{"type":"string","value":"secondary"},{"type":"string","value":"secondary-action"},{"type":"string","value":"send"},{"type":"string","value":"settings"},{"type":"string","value":"shuffle"},{"type":"string","value":"skip-back"},{"type":"string","value":"skip-forward"},{"type":"string","value":"sm"},{"type":"string","value":"small"},{"type":"string","value":"space_between"},{"type":"string","value":"span"},{"type":"string","value":"spring"},{"type":"string","value":"standard"},{"type":"string","value":"start"},{"type":"string","value":"static"},{"type":"string","value":"status"},{"type":"string","value":"sticky"},{"type":"string","value":"stretch"},{"type":"string","value":"strict-origin-when-cross-origin"},{"type":"string","value":"strong"},{"type":"string","value":"style"},{"type":"string","value":"sub"},{"type":"string","value":"sun"},{"type":"string","value":"sup"},{"type":"string","value":"system"},{"type":"string","value":"tabindex"},{"type":"string","value":"terminal"},{"type":"string","value":"text"},{"type":"string","value":"time"},{"type":"string","value":"top"},{"type":"string","value":"top-bar-leading"},{"type":"string","value":"top-bar-trailing"},{"type":"string","value":"top-leading"},{"type":"string","value":"top-trailing"},{"type":"string","value":"trailing"},{"type":"string","value":"trash"},{"type":"string","value":"treeitem"},{"type":"string","value":"u"},{"type":"string","value":"ul"},{"type":"string","value":"underline"},{"type":"string","value":"unsafe-url"},{"type":"string","value":"vertical"},{"type":"string","value":"visible"},{"type":"string","value":"volume"},{"type":"string","value":"wrap"},{"type":"string","value":"wrench"},{"type":"string","value":"x"},{"type":"string","value":"x-circle"},{"type":"bool","value":false},{"type":"bool","value":true},{"type":"int","value":-1},{"type":"int","value":0},{"type":"int","value":1},{"type":"int","value":4},{"type":"int","value":6},{"type":"int","value":7},{"type":"int","value":246},{"type":"int","value":1000},{"type":"int","value":1001},{"type":"int","value":2147483647},{"type":"int","value":2147483648},{"type":"float","value":-1.0},{"type":"float","value":0.0},{"type":"float","value":0.4},{"type":"float","value":0.7},{"type":"float","value":1.0},{"type":"float","value":246.0},{"type":"float","value":1000.0}]} +{"events":{"Appear":["row","column","grid","stack","edge-inset","overlay","view-that-fits","panel","card","alert","bubble","box","text","heading","paragraph","label","button","toggle-button","toggle","radio-group","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","progress","divider","scroll","list","virtual-list","tabs","bottom-tabs","bottom-tab","button-group","toggle-group","spacer","spinner","icon","select","combobox","dropdown-menu","context-menu","menu-item","menu-trigger","list-item","avatar","image","media-surface","stepper","step","timeline","timeline-item","input-group","input-group-actions","breadcrumb","pagination","accordion","table","table-row","table-cell","tree","resizable","split","dialog","drawer","sheet","tooltip","toast","toolbar","status-bar","list-section","list-section-header","list-section-footer","swipe-actions","swipe-action","file-picker","kbd","link","file-image","file-preview","popover"],"Change":["radio"],"ContextMenuPress":["text","button","toggle-button","toggle","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","select","combobox","menu-item","list-item","accordion","table-cell"],"Dismiss":["select","combobox","dropdown-menu","context-menu","dialog","drawer","sheet","toast","file-picker","file-preview","popover"],"DoublePress":["list-item"],"FocusWithinChanged":["row","column","box"],"Load":["image"],"LongPress":["button","toggle-button","list-item"],"NavigateNext":["text-field","secure-field","input","search-field","textarea"],"NavigatePrevious":["text-field","secure-field","input","search-field","textarea"],"NavigationKey":["row","box","button"],"Picked":["file-picker"],"PointerCancel":["row","box"],"PointerDown":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","file-image"],"PointerEnter":["row","column","grid","stack","edge-inset","overlay","view-that-fits","panel","card","alert","bubble","box","text","heading","paragraph","label","button","toggle-button","toggle","radio-group","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","progress","divider","scroll","list","virtual-list","tabs","bottom-tabs","bottom-tab","button-group","toggle-group","spacer","spinner","icon","select","combobox","dropdown-menu","context-menu","menu-item","menu-trigger","list-item","avatar","image","media-surface","stepper","step","timeline","timeline-item","input-group","input-group-actions","breadcrumb","pagination","accordion","table","table-row","table-cell","tree","resizable","split","dialog","drawer","sheet","tooltip","toast","toolbar","status-bar","list-section","list-section-header","list-section-footer","swipe-actions","swipe-action","file-picker","kbd","link","file-image","file-preview","popover"],"PointerLeave":["row","column","grid","stack","edge-inset","overlay","view-that-fits","panel","card","alert","bubble","box","text","heading","paragraph","label","button","toggle-button","toggle","radio-group","radio","slider","number-stepper","text-field","secure-field","input","search-field","textarea","checkbox","switch","progress","divider","scroll","list","virtual-list","tabs","bottom-tabs","bottom-tab","button-group","toggle-group","spacer","spinner","icon","select","combobox","dropdown-menu","context-menu","menu-item","menu-trigger","list-item","avatar","image","media-surface","stepper","step","timeline","timeline-item","input-group","input-group-actions","breadcrumb","pagination","accordion","table","table-row","table-cell","tree","resizable","split","dialog","drawer","sheet","tooltip","toast","toolbar","status-bar","list-section","list-section-header","list-section-footer","swipe-actions","swipe-action","file-picker","kbd","link","file-image","file-preview","popover"],"PointerMove":["row","box"],"PointerUp":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","file-image"],"Press":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","link","file-image"],"PressDetail":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","file-image"],"PressModifiers":["row","column","box","text","button","radio","bottom-tab","select","combobox","menu-item","list-item","timeline-item","table-cell","swipe-action","link","file-image"],"ScrollCompleted":["list","virtual-list"],"ScrollEdges":["list","virtual-list"],"Submit":["text-field","secure-field","input","search-field","textarea","combobox","list-item"],"TextChanged":["text-field","secure-field","input","search-field","textarea","combobox"],"ToggleChanged":["toggle-button","toggle","radio","checkbox","switch","list-item","accordion","drawer"],"ToggleChangedDetail":["checkbox"],"ValueChanged":["slider","number-stepper","split"],"VirtualRetention":["scroll"],"VirtualWindow":["virtual-list"],"VisibleRange":["list","virtual-list"]},"kindValues":{"accordion":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"alert":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"avatar":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"bottom-tab":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"bottom-tabs":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"box":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"breadcrumb":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"bubble":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"button":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"button-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"card":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"checkbox":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"column":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"combobox":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"context-menu":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"dialog":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"divider":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"drawer":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"dropdown-menu":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"edge-inset":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"file-image":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"file-picker":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"file-preview":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"grid":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"heading":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"icon":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"image":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"input":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"input-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"input-group-actions":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"kbd":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"label":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"link":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-item":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-section":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-section-footer":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"list-section-header":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"media-surface":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"menu-item":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"menu-trigger":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"number-stepper":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"overlay":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"pagination":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"panel":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"paragraph":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000010000000001000000000000000000000000001000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"popover":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"progress":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"radio":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"radio-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"resizable":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"root":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"row":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"scroll":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"search-field":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"secure-field":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"select":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"sheet":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"slider":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"spacer":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"spinner":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"split":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"stack":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"status-bar":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"step":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"stepper":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"swipe-action":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"swipe-actions":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"switch":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"table":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"table-cell":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000001000000000000000000000000000000001000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"table-row":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"tabs":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"text":{"as":"000000000000000000000000000000000000100000000000000000010000000000001000000000000100000000000000000000000000000100000000100000000001000000000000000000000000000000001000000000001000000000000101000000001010100000000000001000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"text-field":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"textarea":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"timeline":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"timeline-item":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toast":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toggle":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toggle-button":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toggle-group":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"toolbar":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"tooltip":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"tree":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"view-that-fits":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"},"virtual-list":{"as":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000"}},"kinds":{"accordion":["text","height","accessibility-identifier","style-class","selected","toggle-enabled","alignment","pointer-enabled"],"alert":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","variant","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"avatar":["text","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","image","source-x","source-y","source-width","source-height","alignment","pointer-enabled","data-attrs","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"bottom-tab":["enabled","accessibility-identifier","icon","selected","press-enabled","title","alignment","pointer-enabled"],"bottom-tabs":["grow","width","height","min-width","max-width","min-height","max-height","accessibility-label","accessibility-identifier","style-class","alignment","pointer-enabled","data-attrs"],"box":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","flex-wrap","hover-foreground","hover-border","transition","inert","navigate-enabled","grid-column-span","pointer-capture","focus-within-enabled","shrink"],"breadcrumb":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"bubble":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","variant","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"button":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","size","variant","icon","icon-placement","selected","autofocus","long-press-enabled","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","tooltip","tooltip-keys","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span"],"button-group":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"card":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"checkbox":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","label-opacity","indicator-border-color","checked-indicator-border-color","indeterminate","toggle-detail-enabled"],"column":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","flex-wrap","hover-foreground","hover-border","transition","grid-column-span","focus-within-enabled","shrink"],"combobox":["text","enabled","gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-identifier","style-class","change-enabled","press-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","read-only"],"context-menu":["accessibility-identifier","alignment"],"dialog":["text","gap","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","accessibility-identifier","style-class","appear-enabled","description","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","overflow","cursor","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","transition"],"divider":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","orientation","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"drawer":["text","enabled","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","width","height","accessibility-label","accessibility-identifier","style-class","selected","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","overflow","cursor","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","transition"],"dropdown-menu":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","anchor","anchor-alignment","anchor-offset","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","x","y","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","collision-padding"],"edge-inset":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","edge","visible","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"file-image":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","press-enabled","appear-enabled","path","max-pixel-size","image-fit","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"file-picker":["enabled","accessibility-identifier","appear-enabled","request","types","multiple","source","completion","alignment","pointer-enabled","accept","directory"],"file-preview":["accessibility-identifier","path","alignment","pointer-enabled"],"grid":["gap","main","cross","grow","columns","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"heading":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","heading-level","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"icon":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","size","name","appear-enabled","alignment","pointer-enabled","data-attrs","opacity","tooltip","tooltip-keys","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"image":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","image","source-x","source-y","source-width","source-height","url","image-fit","alignment","pointer-enabled","data-attrs","alt","loading","referrer-policy","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"input":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","input-type","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"input-group":["grow","width","height","min-width","accessibility-label","accessibility-identifier","alignment","pointer-enabled"],"input-group-actions":["gap","accessibility-identifier","alignment","pointer-enabled"],"kbd":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","accessibility-identifier","style-class","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","white-space","text-overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","font-family","text-decoration","transition"],"label":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"link":["text","enabled","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","icon","icon-placement","press-enabled","appear-enabled","theme","theme-mode","url","alignment","pointer-enabled","data-attrs","target","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"list":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","style","scroll-target","scroll-anchor","scroll-token","scroll-animated","track-visible-range","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","list-style","hover-foreground","hover-border","transition","grid-column-span"],"list-item":["text","enabled","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","icon","icon-placement","selected","long-press-enabled","change-enabled","toggle-enabled","press-enabled","submit-enabled","double-press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","key","separator","alignment","pointer-enabled","data-attrs","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","list-style","hover-foreground","hover-border","transition","grid-column-span"],"list-section":["accessibility-identifier","key","separator","alignment","pointer-enabled"],"list-section-footer":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"list-section-header":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"media-surface":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","surface","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"menu-item":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","size","variant","icon","selection-placement","selected","press-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","tooltip","tooltip-keys","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"menu-trigger":["text","enabled","foreground","accessibility-label","accessibility-identifier","style-class","icon","text-alignment","alignment","pointer-enabled","data-attrs"],"number-stepper":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","value","change-enabled","appear-enabled","theme","theme-mode","min","max","step","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"overlay":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"pagination":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"panel":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"paragraph":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"popover":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","anchor","anchor-target","anchor-alignment","anchor-offset","role","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","x","y","available-height","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","anchor-alignment-offset","anchor-rect","collision-padding"],"progress":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","value","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"radio":["text","enabled","gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","change-enabled","toggle-enabled","press-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","label-opacity"],"radio-group":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"resizable":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"root":["accessibility-identifier","theme","theme-mode"],"row":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","orientation","selected","change-enabled","toggle-enabled","press-enabled","appear-enabled","role","tree-level","expanded","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","flex-wrap","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","pointer-capture","focus-within-enabled","shrink"],"scroll":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","orientation","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","virtual-viewport-epoch","virtual-retentions","virtual-retention-releases"],"search-field":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"secure-field":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"select":["text","enabled","gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","press-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"sheet":["text","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","width","height","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","detents","sizing","alignment","pointer-enabled","data-attrs","opacity","overflow","cursor","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","transition"],"slider":["enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","value","change-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"spacer":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"spinner":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","size","appear-enabled","alignment","pointer-enabled","data-attrs","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"split":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","value","change-enabled","appear-enabled","resize-duration","resize-easing","resize-origin","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","first-pane-width","grid-column-span","resize-handle-width","resize-handle-offset"],"stack":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"status-bar":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","text-alignment","alignment","pointer-enabled","data-attrs","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"step":["text","accessibility-identifier","alignment","pointer-enabled"],"stepper":["accessibility-label","accessibility-identifier","active","alignment","pointer-enabled"],"swipe-action":["text","enabled","background","accessibility-identifier","variant","icon","press-enabled","edge","alignment","pointer-enabled"],"swipe-actions":["accessibility-identifier","alignment"],"switch":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"table":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"table-cell":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","size","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"table-row":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","selected","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"tabs":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","orientation","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"text":["text","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","as","opacity","display","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span","line-clamp"],"text-field":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"textarea":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","placeholder","accessibility-label","accessibility-identifier","style-class","autofocus","submit-on-enter","change-enabled","submit-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","navigate-enabled","grid-column-span","submit-on-blur","read-only"],"timeline":["gap","grow","accessibility-label","accessibility-identifier","alignment","pointer-enabled"],"timeline-item":["accessibility-identifier","variant","icon","selected","press-enabled","title","description","meta","indicator","connector","alignment","pointer-enabled"],"toast":["padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","accessibility-label","accessibility-identifier","style-class","duration","alignment","pointer-enabled","data-attrs"],"toggle":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","checked","toggle-enabled","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"toggle-button":["text","enabled","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","size","variant","icon","icon-placement","selected","autofocus","long-press-enabled","toggle-enabled","press-enabled","appear-enabled","text-alignment","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","white-space","text-overflow","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"toggle-group":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"toolbar":["gap","padding","background","border-width","corner-radius","height","accessibility-label","accessibility-identifier","style-class","orientation","placement","alignment","pointer-enabled","data-attrs"],"tooltip":["text","container-relative-frame","container-relative-frame-inset","accessibility-identifier","appear-enabled","anchor","anchor-alignment","anchor-offset","tooltip-delay","alignment","pointer-enabled","cursor","collision-padding"],"tree":["gap","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-label","accessibility-identifier","style-class","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","hover-foreground","hover-border","transition","grid-column-span"],"view-that-fits":["grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","foreground","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","orientation","appear-enabled","theme","theme-mode","alignment","pointer-enabled","data-attrs","opacity","font-size","font-weight","font-style","line-height","letter-spacing","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","overflow","user-select","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","font-family","text-decoration","hover-foreground","hover-border","transition","grid-column-span"],"virtual-list":["gap","main","cross","grow","padding","padding-horizontal","padding-vertical","padding-top","padding-right","padding-bottom","padding-left","margin","margin-horizontal","margin-vertical","margin-top","margin-right","margin-bottom","margin-left","background","border-color","border-width","corner-radius","width","height","min-width","max-width","min-height","max-height","container-relative-frame","container-relative-frame-inset","accessibility-identifier","style-class","selected","appear-enabled","theme","theme-mode","style","scroll-target","scroll-anchor","scroll-token","scroll-animated","track-visible-range","alignment","pointer-enabled","data-attrs","opacity","position","inset","inset-top","inset-right","inset-bottom","inset-left","z-index","cursor","shadow","hover-background","hover-opacity","hover-shadow","pressed-background","pressed-opacity","pressed-shadow","focus-shadow","focus-within-background","focus-within-border","selected-background","selected-shadow","selected-hover-shadow","disabled-opacity","width-viewport","height-viewport","min-width-viewport","max-width-viewport","min-height-viewport","max-height-viewport","list-style","hover-foreground","hover-border","transition","grid-column-span","overscan","item-extent","virtual-total-count","virtual-generation","virtual-indices","virtual-scroll-index","virtual-owner-node","virtual-owner-epoch","virtual-row-keys"]},"modalKinds":["dialog","drawer","sheet"],"properties":{"accept":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","accessibility-identifier":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","accessibility-label":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","active":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","alignment":"000000000000000000000000000000000000000011100100000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000100111000000000000000000000000000000000","alt":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","anchor":"000000000000000000000001000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000","anchor-alignment":"000000000000000000000000000000000000000000000100000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000100000000000000000000000000000000000000000000000000","anchor-alignment-offset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","anchor-offset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","anchor-rect":"000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","anchor-target":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","appear-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","as":"000000000000000000000000000000000000100000000000000000010000000000001000000100000100000000000000000001111110000100000000110000010001000000000000000010000010000000001000000000001000000000000101000000001010100000000000001100000000000000000000000000000","autofocus":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","available-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","background":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","border-color":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","border-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","change-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","checked":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","checked-indicator-border-color":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","collision-padding":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","columns":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","completion":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100111111111110000000","connector":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","container-relative-frame":"000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000","container-relative-frame-inset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","corner-radius":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","cross":"000000000000000000000000000000000000000000000100000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000100000000000000000000000000000000000000000000000000","cursor":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000000000000000000000000000000","data-attrs":"100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","description":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","detents":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","directory":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","disabled-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","display":"000000000000000000000000000000000000001000000000000000000001000000000000000000000000000000000000000000000000000000111000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","double-press-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","duration":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111100000000","edge":"000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000100001000000000000000000000000000000000","enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","expanded":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","first-pane-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","flex-wrap":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000","focus-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","focus-within-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","focus-within-border":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","focus-within-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","font-family":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","font-size":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","font-style":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","font-weight":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111110000000000","foreground":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","gap":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","grid-column-span":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","grow":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","heading-level":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110000000000000","height":"000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","height-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","hover-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","hover-border":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","hover-foreground":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","hover-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","hover-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","icon":"000000000000000000000000010110111000000000000011111110100000100000000000000010011000111000000110011100000000000001000000000000000000110001010000000000000000111001100000000101000011001101110000000000000001000100000000100000001011100000000000000000000","icon-placement":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000100001000000000000000000000000000000000","image":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","image-fit":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","indeterminate":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","indicator":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","indicator-border-color":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","inert":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","input-type":"000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000000000000000000000000","inset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-bottom":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-left":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-right":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","inset-top":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","item-extent":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111","key":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","label-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","letter-spacing":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","line-clamp":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","line-height":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","list-style":"000000000000000000000000000000000000000000000000000000000000000000100000010000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","loading":"000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","long-press-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","main":"000000000000000000000000000000000000000000000100000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001000000000000000000000000000000000000000000000000000000","margin":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-bottom":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-horizontal":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-left":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-right":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-top":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","margin-vertical":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","max":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","max-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","max-height-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","max-pixel-size":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","max-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","max-width-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","meta":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","min":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","min-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","min-height-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","min-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","min-width-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","multiple":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","name":"000000000000000000000000010110111000000000000011111110100000100000000000000010011000111000000110011100000000000001000000000000000000110001010000000000000000111001100000000101000011001101110000000000000001000100000000100000001011100000000000000000000","navigate-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","orientation":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000","overflow":"000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000","overscan":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","padding-bottom":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-horizontal":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-left":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-right":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-top":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","padding-vertical":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","path":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","placeholder":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","placement":"000000000000000000000000000000000010000010001000000000000010000000000010000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000011000000000010000000000000010000000000000011000000000000000000000000000000000000","pointer-capture":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","pointer-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","position":"000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000101000000000000000000000000000000000000000000000000000","press-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","pressed-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","pressed-opacity":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111100","pressed-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","read-only":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","referrer-policy":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000010000000000000000000000000000000000000000000000010000000000000000000001000000000000000000000000000","request":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100111111111110000000","resize-duration":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","resize-easing":"000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000","resize-handle-offset":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","resize-handle-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","resize-origin":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","role":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000","scroll-anchor":"000000000000000000000000000000000000000010000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000","scroll-animated":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","scroll-target":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","scroll-token":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","selected":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","selected-background":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","selected-hover-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","selected-shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","selection-placement":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000100001000000000000000000000000000000000","separator":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000","shadow":"011011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","shrink":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111","size":"000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000010000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000","sizing":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","source":"000000000000000000000000000000000000000000010000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","source-height":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","source-width":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","source-x":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","source-y":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","step":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111","style":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","style-class":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","submit-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","submit-on-blur":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","submit-on-enter":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","surface":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","target":"000000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","text":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","text-alignment":"000000000000000000000000000000000000000000000100000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000","text-decoration":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000100000000100000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000","text-overflow":"000000000000000000000000000000000000000000000000000001000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","theme":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","theme-mode":"000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000","title":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","toggle-detail-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","toggle-enabled":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","tooltip":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","tooltip-delay":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111100000000","tooltip-keys":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","track-visible-range":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","transition":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","tree-level":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","types":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","url":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","user-select":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000","value":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","variant":"000000000000000000000000000000000000000000000000000000000000000000010100000000000000000000000000100000000000000000000000000000000000000000000000000000001000000000000000100000000000100000000000000000000000000000000000000000000000000000000000000000000","virtual-generation":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","virtual-indices":"000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","virtual-owner-epoch":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","virtual-owner-node":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","virtual-retention-releases":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","virtual-retentions":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","virtual-row-keys":"111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111100000000000000000000","virtual-scroll-index":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000","virtual-total-count":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","virtual-viewport-epoch":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111110000000","visible":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000","white-space":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000000000","width":"000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011111111110000000","width-viewport":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011100","x":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","y":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111","z-index":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000111111111110000000"},"sourceHashes":{"schema/components.json":"45f999773a0d8c0c33ddd965cd9dcf576b08af49491456562b3e85bc9d27b39c","src/lui_protocol.ml":"55828d4f7dc5537075e157ac015766907f0f7825457939aa7ff4bf5d2a43462f","tooling/export_apple_admission.ml":"6b8e004438dee4b7fbfc37b5b07736788233ab65a6e34dacb2e7c3d7eee2ca64"},"values":[{"type":"string","value":""},{"type":"string","value":"\u001e"},{"type":"string","value":"\u001f"},{"type":"string","value":" "},{"type":"string","value":","},{"type":"string","value":"0 0 1 1"},{"type":"string","value":"ArrowDown"},{"type":"string","value":"ArrowLeft"},{"type":"string","value":"ArrowRight"},{"type":"string","value":"ArrowUp"},{"type":"string","value":"End"},{"type":"string","value":"Enter"},{"type":"string","value":"Escape"},{"type":"string","value":"Home"},{"type":"string","value":"LUI numeric normalization: property=%s reason=non-finite fallback=0\n%!"},{"type":"string","value":"LUI numeric normalization: property=%s reason=non-finite fallback=1\n%!"},{"type":"string","value":"PageDown"},{"type":"string","value":"PageUp"},{"type":"string","value":"["},{"type":"string","value":"[]"},{"type":"string","value":"]"},{"type":"string","value":"_blank"},{"type":"string","value":"_self"},{"type":"string","value":"above"},{"type":"string","value":"absolute"},{"type":"string","value":"alert"},{"type":"string","value":"app:"},{"type":"string","value":"app:sample"},{"type":"string","value":"archive"},{"type":"string","value":"aria-"},{"type":"string","value":"arrow-down"},{"type":"string","value":"arrow-right"},{"type":"string","value":"arrow-up"},{"type":"string","value":"auto"},{"type":"string","value":"automatic"},{"type":"string","value":"available-height"},{"type":"string","value":"b"},{"type":"string","value":"below"},{"type":"string","value":"block"},{"type":"string","value":"both"},{"type":"string","value":"bottom"},{"type":"string","value":"bottom-leading"},{"type":"string","value":"bottom-trailing"},{"type":"string","value":"camera"},{"type":"string","value":"cancellation-action"},{"type":"string","value":"center"},{"type":"string","value":"check"},{"type":"string","value":"check-circle"},{"type":"string","value":"chevron-down"},{"type":"string","value":"chevron-left"},{"type":"string","value":"chevron-right"},{"type":"string","value":"chevron-up"},{"type":"string","value":"circle-dot"},{"type":"string","value":"clip"},{"type":"string","value":"clock"},{"type":"string","value":"code"},{"type":"string","value":"collision-padding"},{"type":"string","value":"color"},{"type":"string","value":"confirmation-action"},{"type":"string","value":"contents"},{"type":"string","value":"copy"},{"type":"string","value":"dark"},{"type":"string","value":"data-"},{"type":"string","value":"data-attrs: control character in name or value"},{"type":"string","value":"data-attrs: malformed payload"},{"type":"string","value":"data-attrs: unsupported attribute name: "},{"type":"string","value":"decimal"},{"type":"string","value":"default"},{"type":"string","value":"del"},{"type":"string","value":"destructive"},{"type":"string","value":"destructive-action"},{"type":"string","value":"dialog"},{"type":"string","value":"disabled-opacity"},{"type":"string","value":"disc"},{"type":"string","value":"display"},{"type":"string","value":"div"},{"type":"string","value":"download"},{"type":"string","value":"draggable"},{"type":"string","value":"eager"},{"type":"string","value":"edit"},{"type":"string","value":"ellipsis"},{"type":"string","value":"em"},{"type":"string","value":"emphasized"},{"type":"string","value":"end"},{"type":"string","value":"external-link"},{"type":"string","value":"eye"},{"type":"string","value":"file-text"},{"type":"string","value":"files"},{"type":"string","value":"fill"},{"type":"string","value":"first-pane-width"},{"type":"string","value":"fit"},{"type":"string","value":"fitted"},{"type":"string","value":"fixed"},{"type":"string","value":"folder"},{"type":"string","value":"folder-open"},{"type":"string","value":"form"},{"type":"string","value":"ghost"},{"type":"string","value":"git-branch"},{"type":"string","value":"git-merge"},{"type":"string","value":"git-pull-request"},{"type":"string","value":"grow"},{"type":"string","value":"h1"},{"type":"string","value":"h2"},{"type":"string","value":"h3"},{"type":"string","value":"h4"},{"type":"string","value":"h5"},{"type":"string","value":"h6"},{"type":"string","value":"heading"},{"type":"string","value":"hidden"},{"type":"string","value":"horizontal"},{"type":"string","value":"hover-opacity"},{"type":"string","value":"i"},{"type":"string","value":"icon"},{"type":"string","value":"info"},{"type":"string","value":"inline"},{"type":"string","value":"inline-block"},{"type":"string","value":"inline-flex"},{"type":"string","value":"inset"},{"type":"string","value":"inset-grouped"},{"type":"string","value":"italic"},{"type":"string","value":"kbd"},{"type":"string","value":"label"},{"type":"string","value":"label-opacity"},{"type":"string","value":"lazy"},{"type":"string","value":"leading"},{"type":"string","value":"left"},{"type":"string","value":"lg"},{"type":"string","value":"li"},{"type":"string","value":"light"},{"type":"string","value":"line-through"},{"type":"string","value":"linear"},{"type":"string","value":"mark"},{"type":"string","value":"menu"},{"type":"string","value":"mic"},{"type":"string","value":"min-both"},{"type":"string","value":"min-horizontal"},{"type":"string","value":"min-vertical"},{"type":"string","value":"moon"},{"type":"string","value":"ms"},{"type":"string","value":"music"},{"type":"string","value":"navigation"},{"type":"string","value":"navigation-heading"},{"type":"string","value":"nearest"},{"type":"string","value":"no-referrer"},{"type":"string","value":"none"},{"type":"string","value":"normal"},{"type":"string","value":"nowrap"},{"type":"string","value":"oblique"},{"type":"string","value":"ol"},{"type":"string","value":"opacity"},{"type":"string","value":"opacity 1s"},{"type":"string","value":"origin"},{"type":"string","value":"outline"},{"type":"string","value":"overline"},{"type":"string","value":"p"},{"type":"string","value":"page"},{"type":"string","value":"panel-left"},{"type":"string","value":"panel-right"},{"type":"string","value":"pause"},{"type":"string","value":"photos"},{"type":"string","value":"plain"},{"type":"string","value":"play"},{"type":"string","value":"plus"},{"type":"string","value":"pointer"},{"type":"string","value":"pre"},{"type":"string","value":"pre-line"},{"type":"string","value":"pre-wrap"},{"type":"string","value":"pressed-opacity"},{"type":"string","value":"primary"},{"type":"string","value":"primary-action"},{"type":"string","value":"principal"},{"type":"string","value":"refresh-cw"},{"type":"string","value":"relative"},{"type":"string","value":"repeat"},{"type":"string","value":"right"},{"type":"string","value":"role"},{"type":"string","value":"s"},{"type":"string","value":"sample"},{"type":"string","value":"save"},{"type":"string","value":"search"},{"type":"string","value":"secondary"},{"type":"string","value":"secondary-action"},{"type":"string","value":"send"},{"type":"string","value":"settings"},{"type":"string","value":"shrink"},{"type":"string","value":"shuffle"},{"type":"string","value":"skip-back"},{"type":"string","value":"skip-forward"},{"type":"string","value":"sm"},{"type":"string","value":"small"},{"type":"string","value":"space_between"},{"type":"string","value":"span"},{"type":"string","value":"spring"},{"type":"string","value":"standard"},{"type":"string","value":"start"},{"type":"string","value":"static"},{"type":"string","value":"status"},{"type":"string","value":"sticky"},{"type":"string","value":"stretch"},{"type":"string","value":"strict-origin-when-cross-origin"},{"type":"string","value":"strong"},{"type":"string","value":"style"},{"type":"string","value":"sub"},{"type":"string","value":"sun"},{"type":"string","value":"sup"},{"type":"string","value":"system"},{"type":"string","value":"tabindex"},{"type":"string","value":"terminal"},{"type":"string","value":"text"},{"type":"string","value":"time"},{"type":"string","value":"top"},{"type":"string","value":"top-bar-leading"},{"type":"string","value":"top-bar-trailing"},{"type":"string","value":"top-leading"},{"type":"string","value":"top-trailing"},{"type":"string","value":"trailing"},{"type":"string","value":"trash"},{"type":"string","value":"treeitem"},{"type":"string","value":"u"},{"type":"string","value":"ul"},{"type":"string","value":"underline"},{"type":"string","value":"unsafe-url"},{"type":"string","value":"vertical"},{"type":"string","value":"visible"},{"type":"string","value":"volume"},{"type":"string","value":"wrap"},{"type":"string","value":"wrench"},{"type":"string","value":"x"},{"type":"string","value":"x-circle"},{"type":"bool","value":false},{"type":"bool","value":true},{"type":"int","value":-1},{"type":"int","value":0},{"type":"int","value":1},{"type":"int","value":4},{"type":"int","value":6},{"type":"int","value":7},{"type":"int","value":246},{"type":"int","value":1000},{"type":"int","value":1001},{"type":"int","value":2147483647},{"type":"int","value":2147483648},{"type":"float","value":-1.0},{"type":"float","value":0.0},{"type":"float","value":0.4},{"type":"float","value":0.7},{"type":"float","value":1.0},{"type":"float","value":246.0},{"type":"float","value":1000.0}]} diff --git a/src/lui_app.ml b/src/lui_app.ml index 55473e31a..34b63b713 100644 --- a/src/lui_app.ml +++ b/src/lui_app.ml @@ -81,7 +81,8 @@ let create_with_extensions ?virtual_rows ?virtual_capabilities backend registry else false in let root = - (view context (Signal.value model_state) send_action) context None + Lui_elements.mount context + (view context (Signal.value model_state) send_action) in { app_scheduler = scheduler; @@ -125,7 +126,8 @@ let create_reloadable_with_extensions ?virtual_rows ?virtual_capabilities backen in let root = Lui_runtime.create_node application Lui_protocol.Root in let view_node = - (view context (Signal.value model_state) send_action) context None + Lui_elements.mount context + (view context (Signal.value model_state) send_action) in let session = Lui_hot_reload.create source_hash contract_hash view in let app = @@ -272,8 +274,8 @@ let reload_view app request source_hash contract_hash view elapsed_ms = candidate_active_state_paths in let node = - (view context state.reload_model_source app.app_send_action) - context None + Lui_elements.mount context + (view context state.reload_model_source app.app_send_action) in candidate_node := Some diff --git a/src/lui_dynamic.ml b/src/lui_dynamic.ml index a50e29de8..19e8ae0a9 100644 --- a/src/lui_dynamic.ml +++ b/src/lui_dynamic.ml @@ -758,18 +758,21 @@ let retire_range ?(drop = true) application segment = if !(segment.Lui_runtime.dynamic_segment_active) then begin let parent = Lui_runtime.canonical_node application segment.Lui_runtime.dynamic_segment_parent in let nodes = if drop then range_nodes application segment else [] in - Lui_runtime.resize_dynamic_segment application segment - (- !(segment.Lui_runtime.dynamic_segment_size)); + if !(segment.Lui_runtime.dynamic_segment_size) <> 0 then + Lui_runtime.resize_dynamic_segment application segment + (- !(segment.Lui_runtime.dynamic_segment_size)); let current = Option.value (Hashtbl.find_opt application.Lui_runtime.dynamic_segments parent) ~default:[] in let remaining = List.filter (fun child -> if range_contains segment child then begin - child.Lui_runtime.dynamic_segment_active := false; + Lui_runtime.journal_ref application Lui_runtime.Segment_active + child.Lui_runtime.dynamic_segment_id child.Lui_runtime.dynamic_segment_active false; decr application.Lui_runtime.runtime_dynamic_segment_count; false end else true) current in - if remaining = [] then Hashtbl.remove application.Lui_runtime.dynamic_segments parent - else Hashtbl.replace application.Lui_runtime.dynamic_segments parent remaining; + Lui_runtime.journal_list application Lui_runtime.Segment_member + application.Lui_runtime.dynamic_segments parent + (fun child -> child.Lui_runtime.dynamic_segment_id) remaining; List.iter (drop_branch_node application parent) nodes end @@ -784,20 +787,77 @@ let range_segment context parent = Lui_runtime.register_dynamic_segment ?owner:(range_owner context parent) context.Lui_ui.ui_application parent -let mount_range ?name ?(persistent = true) context parent owner mount = +let register_range_at application parent owner position = + let parent = Lui_runtime.canonical_node application parent in + let segment = Lui_runtime.register_dynamic_segment ~owner application parent in + match position with + | `End -> segment + | `Start -> + let current = Hashtbl.find application.Lui_runtime.dynamic_segments parent in + let rec at_start = function + | s :: next :: _ when s == segment -> next == owner + | _ :: rest -> at_start rest + | [] -> false in + if at_start current then segment + else begin + let rec place acc = function + | [] -> invalid_arg "dynamic range owner is not registered" + | s :: rest when s == segment -> place acc rest + | s :: rest when s == owner -> List.rev_append acc (segment :: s :: rest) + | s :: rest -> place (s :: acc) rest in + let reordered = place [] current in + Lui_runtime.journal_ref application Lui_runtime.Segment_base + segment.Lui_runtime.dynamic_segment_id segment.Lui_runtime.dynamic_segment_base + !(owner.Lui_runtime.dynamic_segment_base); + Lui_runtime.journal_list application Lui_runtime.Segment_member + application.Lui_runtime.dynamic_segments parent + (fun s -> s.Lui_runtime.dynamic_segment_id) reordered; + segment + end + | `After prev -> + let current = Hashtbl.find application.Lui_runtime.dynamic_segments parent in + let rec already_after = function + | s :: next :: _ when s == segment -> range_contains prev next + | _ :: rest -> already_after rest + | [] -> false in + if already_after current then segment + else begin + let rec place acc = function + | [] -> invalid_arg "previous dynamic range is not registered" + | s :: rest when s == segment -> place acc rest + | (s :: _ as all) when range_contains prev s -> List.rev_append acc (segment :: all) + | s :: rest -> place (s :: acc) rest in + let reordered = place [] current in + let target_base = + !(prev.Lui_runtime.dynamic_segment_base) + !(prev.Lui_runtime.dynamic_segment_size) in + Lui_runtime.journal_ref application Lui_runtime.Segment_base + segment.Lui_runtime.dynamic_segment_id segment.Lui_runtime.dynamic_segment_base + target_base; + Lui_runtime.journal_list application Lui_runtime.Segment_member + application.Lui_runtime.dynamic_segments parent + (fun s -> s.Lui_runtime.dynamic_segment_id) reordered; + segment + end + +let create_range ?name ?(persistent = true) ?(position = `End) context parent owner = let name = match name with Some name -> name | None -> Lui_ui.owner_name context "dynamic-range" in let context = if persistent then Lui_ui.child_context context name else { (Lui_ui.context context.Lui_ui.ui_application (Signal.child_scope name context.Lui_ui.ui_scope)) with Lui_ui.ui_protect = context.Lui_ui.ui_protect } in - let segment = Lui_runtime.register_dynamic_segment ~owner context.Lui_ui.ui_application parent in + let segment = register_range_at context.Lui_ui.ui_application parent owner position in let context = { context with Lui_ui.ui_dynamic_owner = Some segment } in Signal.on_unmount context.Lui_ui.ui_scope (fun () -> retire_range context.Lui_ui.ui_application segment); + { range_segment = segment; range_context = context } + +let mount_range ?name ?persistent context parent owner mount = + let range = create_range ?name ?persistent context parent owner in + let context = range.range_context and segment = range.range_segment in (try mount context with failure -> (try Signal.dispose_scope context.Lui_ui.ui_scope with _ -> ()); retire_range context.Lui_ui.ui_application segment; raise failure); - { range_segment = segment; range_context = context } + range let dispose_range range = Signal.dispose_scope range.range_context.Lui_ui.ui_scope @@ -857,43 +917,154 @@ type 'a range_entry = { entry_state : 'a Signal.state; } +let weighted_lis ~max_rank ranks weights = + let n = Array.length ranks in + let in_lis = Array.make n false in + if n > 0 && max_rank > 0 then begin + let bit_val = Array.make (max_rank + 1) 0 in + let bit_idx = Array.make (max_rank + 1) (-1) in + let prev = Array.make n (-1) in + let best_total = ref 0 and best_end = ref (-1) in + for i = 0 to n - 1 do + let w = weights.(i) in + if w > 0 then begin + let r = ranks.(i) in + let best_w = ref 0 and best_i = ref (-1) and idx = ref r in + while !idx > 0 do + if bit_val.(!idx) > !best_w then begin + best_w := bit_val.(!idx); + best_i := bit_idx.(!idx) + end; + idx := !idx - (!idx land (- !idx)) + done; + let total = !best_w + w in + prev.(i) <- !best_i; + let idx = ref (r + 1) in + while !idx <= max_rank do + if total > bit_val.(!idx) then begin + bit_val.(!idx) <- total; + bit_idx.(!idx) <- i + end; + idx := !idx + (!idx land (- !idx)) + done; + if total > !best_total then begin + best_total := total; + best_end := i + end + end + done; + let cur = ref !best_end in + while !cur <> -1 do + in_lis.(!cur) <- true; + cur := prev.(!cur) + done + end; + in_lis + let reorder_ranges application owner ranges = let parent = Lui_runtime.canonical_node application owner.Lui_runtime.dynamic_segment_parent in - let blocks = List.map (fun range -> range, range_nodes application range) ranges in - let positions = Lui_indexed_sequence.of_list (Lui_runtime.children application parent) in - let cursor = ref !(owner.Lui_runtime.dynamic_segment_base) in - List.iter (fun (_, nodes) -> List.iter (fun node -> - let current = Option.get (Lui_indexed_sequence.index positions node) in - if current <> !cursor then begin - Lui_runtime.move_child_at application parent node current !cursor; - Lui_indexed_sequence.move positions node !cursor - end; - incr cursor) nodes) blocks; - let groups = Hashtbl.create (List.length ranges) in + let m = Array.length ranges in + let groups = Hashtbl.create (max 1 m) in + let old_ranks = Hashtbl.create (max 1 m) in let rec child_of_owner segment = match segment.Lui_runtime.dynamic_segment_owner with | Some parent when parent == owner -> Some segment | Some parent -> child_of_owner parent | None -> None in let registered = List.rev (Hashtbl.find application.Lui_runtime.dynamic_segments parent) in + let non_empty = ref [] in + let next_rank = ref 0 in List.iter (fun segment -> Option.iter (fun root -> let id = root.Lui_runtime.dynamic_segment_id in + if segment == root then begin + Hashtbl.replace old_ranks id !next_rank; + incr next_rank; + if !(root.Lui_runtime.dynamic_segment_size) > 0 then + non_empty := root :: !non_empty + end; let previous = Option.value (Hashtbl.find_opt groups id) ~default:[] in Hashtbl.replace groups id (segment :: previous)) (child_of_owner segment)) registered; + let ranks = Array.init m (fun i -> + Hashtbl.find old_ranks ranges.(i).Lui_runtime.dynamic_segment_id) in + let sizes = Array.init m (fun i -> !(ranges.(i).Lui_runtime.dynamic_segment_size)) in + let in_lis = weighted_lis ~max_rank:!next_rank ranks sizes in + let needs_move = ref false in + for i = 0 to m - 1 do + if sizes.(i) > 0 && not in_lis.(i) then needs_move := true + done; + if !needs_move then begin + let positions = Lui_indexed_sequence.of_list [] in + List.iteri (fun idx seg -> + let id = seg.Lui_runtime.dynamic_segment_id in + Lui_indexed_sequence.insert positions idx id; + Lui_indexed_sequence.set_weight positions id !(seg.Lui_runtime.dynamic_segment_size)) + (List.rev !non_empty); + let owner_base = !(owner.Lui_runtime.dynamic_segment_base) in + let owner_size = !(owner.Lui_runtime.dynamic_segment_size) in + let anchor = ref None in + for i = m - 1 downto 0 do + let w = sizes.(i) in + if w > 0 then begin + let seg = ranges.(i) in + let id = seg.Lui_runtime.dynamic_segment_id in + if not in_lis.(i) then begin + let src_slot = Option.get (Lui_indexed_sequence.index positions id) in + let cur_0 = owner_base + Lui_indexed_sequence.prefix_weight positions src_slot in + let anchor_slot, anchor_pos = match !anchor with + | None -> Lui_indexed_sequence.length positions, owner_base + owner_size + | Some anchor_id -> + let slot = Option.get (Lui_indexed_sequence.index positions anchor_id) in + slot, owner_base + Lui_indexed_sequence.prefix_weight positions slot in + if cur_0 + w <> anchor_pos then begin + if cur_0 < anchor_pos then begin + let target = anchor_pos - 1 in + for _ = 0 to w - 1 do + let children = Hashtbl.find application.Lui_runtime.runtime_children parent in + let node = Lui_sequence.get children cur_0 in + Lui_runtime.move_child_at application parent node cur_0 target + done; + Lui_indexed_sequence.move positions id (anchor_slot - 1); + Lui_indexed_sequence.set_weight positions id w + end else begin + for offset = 0 to w - 1 do + let children = Hashtbl.find application.Lui_runtime.runtime_children parent in + let from_index = cur_0 + offset in + let node = Lui_sequence.get children from_index in + Lui_runtime.move_child_at application parent node from_index (anchor_pos + offset) + done; + Lui_indexed_sequence.move positions id anchor_slot; + Lui_indexed_sequence.set_weight positions id w + end + end + end; + anchor := Some id + end + done + end; + let rec split_at_owner prefix = function + | [] -> prefix, [] + | current :: rest when current == owner -> current :: prefix, rest + | current :: rest -> split_at_owner (current :: prefix) rest in + let prefix_with_owner_rev, after_owner = split_at_owner [] registered in let cursor = ref !(owner.Lui_runtime.dynamic_segment_base) in - let ordered = List.concat_map (fun (range, nodes) -> + let acc = ref prefix_with_owner_rev in + for i = 0 to m - 1 do + let range = ranges.(i) in let shift = !cursor - !(range.Lui_runtime.dynamic_segment_base) in - cursor := !cursor + List.length nodes; + cursor := !cursor + sizes.(i); let group = List.rev (Hashtbl.find groups range.Lui_runtime.dynamic_segment_id) in - List.iter (fun segment -> segment.Lui_runtime.dynamic_segment_base := - !(segment.Lui_runtime.dynamic_segment_base) + shift) group; - group) blocks in - let rec replace = function - | [] -> [] - | current :: rest when current == owner -> current :: List.rev_append - (List.rev ordered) (List.filter (fun segment -> not (range_contains owner segment)) rest) - | current :: rest -> current :: replace rest in - Hashtbl.replace application.Lui_runtime.dynamic_segments parent (List.rev (replace registered)) + List.iter (fun segment -> + if shift <> 0 then + Lui_runtime.journal_ref application Lui_runtime.Segment_base + segment.Lui_runtime.dynamic_segment_id segment.Lui_runtime.dynamic_segment_base + (!(segment.Lui_runtime.dynamic_segment_base) + shift); + acc := segment :: !acc) group + done; + List.iter (fun segment -> + if not (range_contains owner segment) then acc := segment :: !acc) after_owner; + Lui_runtime.journal_list application Lui_runtime.Segment_member + application.Lui_runtime.dynamic_segments parent + (fun s -> s.Lui_runtime.dynamic_segment_id) !acc let keyed_range (type key) context parent source key compare mount = let module Keys = Map.Make (struct @@ -904,57 +1075,212 @@ let keyed_range (type key) context parent source key compare mount = let application = context.Lui_ui.ui_application in let owner = range_segment context parent in let entries = ref Keys.empty in + let ordered = ref [||] in Signal.on_unmount context.Lui_ui.ui_scope (fun () -> retire_range application owner); let dispose entry = Fun.protect (fun () -> dispose_range entry.entry_range) ~finally:(fun () -> Signal.dispose_signal (Signal.value entry.entry_state)) in + let dispose_all entries = + let failure = ref None in + List.iter (fun entry -> try dispose entry with error -> + if !failure = None then failure := Some error) entries; + match !failure with None -> () | Some error -> raise error in + let deliver_updates_and_dispose updates removed = + (try + List.iter (fun (entry, item) -> Signal.set entry.entry_state item) (List.rev updates) + with error -> + List.iter (fun entry -> try dispose entry with _ -> ()) removed; + raise error); + dispose_all removed in let reconcile items = - if !(owner.Lui_runtime.dynamic_segment_active) then begin + if !(owner.Lui_runtime.dynamic_segment_active) && Lui_runtime.node_live application parent then begin let items = Array.of_list items in let identities = occurrence_keys parent key compare items in - let saved = Lui_runtime.checkpoint_subtree application parent parent in - let fresh = ref [] in - let updates = ref [] in - let next = ref Keys.empty in - let committed = ref false in - try - let ordered = Array.mapi (fun index item -> + let old = !ordered in + let n = Array.length items in + let old_len = Array.length old in + let same_order = ref (n = old_len) in + let idx = ref 0 in + while !same_order && !idx < n do + let (prev_key, prev_occ), _ = old.(!idx) in + let next_key, next_occ = identities.(!idx) in + if compare prev_key next_key <> 0 || prev_occ <> next_occ then + same_order := false; + incr idx + done; + if !same_order then begin + for index = 0 to n - 1 do + let _, entry = old.(index) in + let item = items.(index) in + if item != Signal.get_state entry.entry_state then + Signal.set entry.entry_state item + done + end else begin + let old_positions = ref Keys.empty in + Array.iteri (fun index (identity, _) -> + old_positions := Keys.add identity index !old_positions) old; + let desired_set = ref Keys.empty in + let fresh_count = ref 0 in + let updates = ref [] in + let retained_rev = ref [] in + let last_old_pos = ref (-1) in + let retained_in_order = ref true in + for index = 0 to n - 1 do let identity = identities.(index) in - let entry = match Keys.find_opt identity !entries with - | Some entry -> - if item != Signal.get_state entry.entry_state then updates := (entry, item) :: !updates; - entry - | None -> - let state = Signal.state context.Lui_ui.ui_scheduler item in - let range = try mount_range ~persistent:false context parent owner (fun context -> - ignore (mount context (Signal.value state))) with failure -> - Signal.dispose_signal (Signal.value state); raise failure in - let entry = {entry_range = range; entry_state = state} in - fresh := entry :: !fresh; - Signal.mount range.range_context.Lui_ui.ui_scope; - entry in - next := Keys.add identity entry !next; - entry) items in - let removed = Keys.fold (fun identity entry removed -> - if Keys.mem identity !next then removed else entry :: removed) !entries [] in - List.iter (fun entry -> retire_range application entry.entry_range.range_segment) removed; - reorder_ranges application owner - (Array.to_list (Array.map (fun entry -> entry.entry_range.range_segment) ordered)); - entries := !next; - committed := true; - List.iter (fun (entry, item) -> Signal.set entry.entry_state item) (List.rev !updates); - List.iter dispose removed - with failure -> - if not !committed then begin - List.iter (fun entry -> retire_range ~drop:false application entry.entry_range.range_segment) !fresh; - Lui_runtime.restore application saved; - List.iter (fun entry -> try dispose entry with _ -> ()) !fresh - end; - raise failure + desired_set := Keys.add identity index !desired_set; + match Keys.find_opt identity !entries with + | Some entry -> + let item = items.(index) in + if item != Signal.get_state entry.entry_state then + updates := (entry, item) :: !updates; + let pos = Keys.find identity !old_positions in + if pos < !last_old_pos then retained_in_order := false; + last_old_pos := pos; + retained_rev := (pos, entry) :: !retained_rev + | None -> + incr fresh_count + done; + let removed_rev = ref [] in + for index = 0 to old_len - 1 do + let identity, entry = old.(index) in + if not (Keys.mem identity !desired_set) then + removed_rev := (index, entry) :: !removed_rev + done; + let removed_with_pos = List.rev !removed_rev in + let removed = List.map snd removed_with_pos in + if !fresh_count = 0 then begin + List.iter (fun entry -> retire_range application entry.entry_range.range_segment) removed; + let retained = Array.of_list (List.rev !retained_rev) in + let next_entries = ref Keys.empty in + let next_ordered = Array.init n (fun index -> + let identity = identities.(index) in + let _, entry = retained.(index) in + next_entries := Keys.add identity entry !next_entries; + identity, entry) in + if not !retained_in_order then + reorder_ranges application owner + (Array.map (fun (_, entry) -> entry.entry_range.range_segment) next_ordered); + entries := !next_entries; + ordered := next_ordered; + deliver_updates_and_dispose !updates removed + end else begin + let canonical_parent = Lui_runtime.canonical_node application parent in + let saved = Lui_runtime.checkpoint ~nodes:[canonical_parent] application in + let finish_replacements = + if removed <> [] && + (Hashtbl.length application.Lui_runtime.runtime_virtual_sources > 0 + || Hashtbl.length application.Lui_runtime.runtime_virtual_owners > 0) then + let retiring = List.concat_map (fun entry -> + List.concat_map + (Lui_runtime.collect_subtree_nodes application.Lui_runtime.runtime_children) + (range_nodes application entry.entry_range.range_segment)) removed in + replacing_virtual_nodes application retiring + else fun () -> () in + let fresh = ref [] in + let next = ref Keys.empty in + let committed = ref false in + (try + if old_len > 0 && not !retained_in_order then begin + let retained = Array.of_list (List.rev !retained_rev) in + if removed_with_pos = [] then + reorder_ranges application owner + (Array.map (fun (_, entry) -> entry.entry_range.range_segment) retained) + else begin + (* Interleave removed entries before the first LIS-kept retained entry + with a larger old index so removed segments stay stationary and + untouched until after every fresh entry mounts. *) + let r_len = Array.length retained in + let r_ranks = Array.init r_len (fun i -> fst retained.(i)) in + let r_sizes = Array.init r_len (fun i -> + !((snd retained.(i)).entry_range.range_segment.Lui_runtime.dynamic_segment_size)) in + let r_in_lis = weighted_lis ~max_rank:old_len r_ranks r_sizes in + let rem_arr = Array.of_list removed_with_pos in + let rem_len = Array.length rem_arr in + let rem_idx = ref 0 in + let augmented_rev = ref [] in + for i = 0 to r_len - 1 do + let pos, entry = retained.(i) in + if r_in_lis.(i) then + while !rem_idx < rem_len && fst rem_arr.(!rem_idx) < pos do + augmented_rev := (snd rem_arr.(!rem_idx)).entry_range.range_segment :: !augmented_rev; + incr rem_idx + done; + augmented_rev := entry.entry_range.range_segment :: !augmented_rev + done; + while !rem_idx < rem_len do + augmented_rev := (snd rem_arr.(!rem_idx)).entry_range.range_segment :: !augmented_rev; + incr rem_idx + done; + reorder_ranges application owner (Array.of_list (List.rev !augmented_rev)) + end + end; + let prev_seg = ref None in + let next_ordered_rev = ref [] in + for index = 0 to n - 1 do + let identity = identities.(index) in + let entry = match Keys.find_opt identity !entries with + | Some entry -> + prev_seg := Some entry.entry_range.range_segment; + entry + | None -> + let state = Signal.state context.Lui_ui.ui_scheduler items.(index) in + let position = match !prev_seg with + | None -> `Start + | Some prev -> `After prev in + let range = try create_range ~persistent:false ~position context parent owner + with failure -> + Signal.dispose_signal (Signal.value state); + raise failure in + let entry = { entry_range = range; entry_state = state } in + fresh := entry :: !fresh; + ignore (mount range.range_context (Signal.value state)); + Signal.mount range.range_context.Lui_ui.ui_scope; + prev_seg := Some range.range_segment; + entry in + next := Keys.add identity entry !next; + next_ordered_rev := (identity, entry) :: !next_ordered_rev + done; + finish_replacements (); + List.iter (fun entry -> retire_range application entry.entry_range.range_segment) removed; + entries := !next; + ordered := Array.of_list (List.rev !next_ordered_rev); + committed := true + with failure -> + finish_replacements (); + if not !committed then begin + (match Hashtbl.find_opt application.Lui_runtime.dynamic_segments canonical_parent with + | Some segments -> + List.iter (fun segment -> + if segment.Lui_runtime.dynamic_segment_id > + saved.Lui_runtime.checkpoint_next_dynamic_segment_id then + segment.Lui_runtime.dynamic_segment_active := false) segments + | None -> ()); + for id = !(application.Lui_runtime.next_node_id) + downto saved.Lui_runtime.checkpoint_next_node_id + 1 do + if Lui_runtime.node_live application id then + Lui_runtime.drop_subtree application id + done; + Lui_runtime.restore application saved; + List.iter (fun entry -> try dispose entry with _ -> ()) !fresh + end; + raise failure); + deliver_updates_and_dispose !updates removed + end + end end in reconcile (Signal.sample source); let subscription = Signal.subscribe ~emit_initial:false source (fun items -> context.Lui_ui.ui_protect (fun () -> reconcile items)) in Signal.on_dispose context.Lui_ui.ui_scope (fun () -> Signal.dispose_subscription subscription; - Fun.protect (fun () -> Keys.iter (fun _ entry -> dispose entry) !entries) + let previous = !ordered in + ordered := [||]; + entries := Keys.empty; + Fun.protect (fun () -> + let failure = ref None in + for index = Array.length previous - 1 downto 0 do + let _, entry = previous.(index) in + try dispose entry with error -> + if !failure = None then failure := Some error + done; + match !failure with None -> () | Some error -> raise error) ~finally:(fun () -> retire_range application owner)) diff --git a/src/lui_element_combine.ml b/src/lui_element_combine.ml index 1de8a7288..32794c8ed 100644 --- a/src/lui_element_combine.ml +++ b/src/lui_element_combine.ml @@ -38,7 +38,7 @@ let action_text = function | _ -> None) ;; -let glass_press_button ?background ?corner_radius ~label ~icon ~text ~on_press = +let glass_press_button ?background ?corner_radius ~label ~icon ~text ~on_press () : t = let icon_only = Option.is_none text in let make = match text with | Some text -> button ~text ?text_signal:None ~icon ~label ~size:`default @@ -60,7 +60,7 @@ let glass_press_button ?background ?corner_radius ~label ~icon ~text ~on_press = menu triggers carry no surface properties. The ["capsule"] style class asks the host to give the trigger label the cell's full frame and hit shape. *) -let menu_action_cell ?background ?corner_radius ~label ~icon ~text ~menu:entries ~on_dismiss = +let menu_action_cell ?background ?corner_radius ~label ~icon ~text ~menu:entries ~on_dismiss () : t = box ~height:44 ?background @@ -77,13 +77,13 @@ let menu_action_cell ?background ?corner_radius ~label ~icon ~text ~menu:entries ] ;; -let glass_action ?background ?corner_radius action = +let glass_action ?background ?corner_radius action : t = let text = action_text action in match action with | Press { label; icon; text = _; on_press } -> - glass_press_button ?background ?corner_radius ~label ~icon ~text ~on_press + glass_press_button ?background ?corner_radius ~label ~icon ~text ~on_press () | Menu { label; icon; text = _; menu; on_dismiss } -> - menu_action_cell ?background ?corner_radius ~label ~icon ~text ~menu ~on_dismiss + menu_action_cell ?background ?corner_radius ~label ~icon ~text ~menu ~on_dismiss () ;; let buttons ~actions = @@ -99,7 +99,7 @@ let buttons ~actions = ~height:44 ~background:"glass" ~corner_radius:999 - [ menu_action_cell ~label ~icon ~text ~menu ~on_dismiss ] + [ menu_action_cell ~label ~icon ~text ~menu ~on_dismiss () ] | _ :: _ :: _ -> button_group ~gap:0 @@ -121,18 +121,18 @@ let rec intersperse separator_ = function (* ------------------------------------------------------------------ *) let with_press handler (elem : t) : t = - fun context parent -> - let node = elem context parent in + custom (fun context parent -> + let node = mount context ?parent elem in enable context node Lui_protocol.PressEnabled; register_press context node handler; - node + node) ;; let with_bool_prop_signal prop signal_ (elem : t) : t = - fun context parent -> - let node = elem context parent in + custom (fun context parent -> + let node = mount context ?parent elem in Lui_ui.bool_property_signal context node prop signal_; - node + node) ;; let composer_send_button context ?send_icon ?(send_label = "Send") @@ -181,7 +181,7 @@ let composer () : t = - fun context parent -> + custom (fun context parent -> let attachment_strip = match attachments with | None -> [] @@ -267,16 +267,16 @@ let composer @ Option.to_list feedback @ controls) in - (match on_press with - | None -> capsule - | Some handler -> with_press handler capsule) - context parent + mount context ?parent + (match on_press with + | None -> capsule + | Some handler -> with_press handler capsule)) ;; let composer_attachment_preview_slot = Signal.state_slot "composer-attachment-preview" let composer_attachment ?(disabled = false) ?status ~key ~path ~title ~file_type ~on_remove () : t = - fun context parent -> + custom (fun context parent -> let context = Lui_ui.child_context context ("composer-attachment:" ^ key) in let preview = Signal.state_at context.ui_scheduler context.ui_state_scope composer_attachment_preview_slot false in @@ -326,7 +326,7 @@ let composer_attachment ?(disabled = false) ?status ~key ~path ~title ~file_type else [])) ; if_ ~test:(Signal.value preview) (file_preview ~path ~on_dismiss:(fun _ -> Signal.set preview false) []) - ] context parent + ] |> mount context ?parent) ;; @@ -339,13 +339,11 @@ let composer_collapsed () : t = - fun context parent -> - (button - ?key ?accessibility_identifier ~variant:`ghost ~grow:1.0 ~height:58 - ~padding_horizontal:30 ~background:"glass" - ~foreground:"muted-foreground" ~corner_radius:999 ?icon ~text:label - ~on_press []) - context parent + button + ?key ?accessibility_identifier ~variant:`ghost ~grow:1.0 ~height:58 + ~padding_horizontal:30 ~background:"glass" + ~foreground:"muted-foreground" ~corner_radius:999 ?icon ~text:label + ~on_press [] ;; (* ------------------------------------------------------------------ *) @@ -828,7 +826,7 @@ let menu_button ?accessibility_identifier [ trigger ; if_ ~test:open_ - (dropdown_menu_view (dropdown_menu ~anchor ~anchor_alignment:`start ?on_dismiss menu)) + (dropdown_menu ~target:(Menu_anchor { side = anchor; align = `start; offset = 0. }) ?on_dismiss menu) ] ;; diff --git a/src/lui_elements.ml b/src/lui_elements.ml index 84162ab65..0f70b01dd 100644 --- a/src/lui_elements.ml +++ b/src/lui_elements.ml @@ -7,7 +7,14 @@ module Tokens = Lui_tokens type text_role = [ `display | `title | `headline | `subheadline | `body | `caption | `footnote | `code ] -type t = Lui_ui.ui_context -> int option -> int +type +'kind el = Lui_ui.ui_context -> int option -> int +type general = [ `general ] +type t = general el +type list_slot = + [ `general | `step | `timeline_item | `bottom_tab | `table_row | `table_cell + | `radio | `swipe_action | `dropdown_menu_item | `context_menu_item + | `toolbar_item | `list_section_item | `tree_item ] +type optional_slot = [ list_slot | `input_group_actions ] type pointer_detail = Lui_protocol.pointer_detail type toggle_detail = Lui_event_payloads.toggle_detail = { checked : bool; modifiers : int } @@ -123,6 +130,15 @@ type popover_target = align_offset : float; } +type dropdown_target = + | Menu_default + | Menu_at of float * float + | Menu_anchor of { + side : anchor; + align : anchor_alignment; + offset : float; + } + type split_sizing = Fraction of float | First_width of float type split_motion = { @@ -151,20 +167,20 @@ type icon = [table_row], [radio_group] and [input_group] can require them and illegal nesting fails at compile time. *) -type step_el = t -type timeline_item_el = t -type bottom_tab_el = t -type table_row_el = t -type table_cell_el = t -type radio_el = t -type input_group_actions_el = t -type swipe_action_el = t -type dropdown_menu_item_el = t -type context_menu_item_el = t -type toolbar_el = t -type list_section_item_el = t -type tree_el = t -type dropdown_menu_el = t +type step_el = [ `step ] el +type timeline_item_el = [ `timeline_item ] el +type bottom_tab_el = [ `bottom_tab ] el +type table_row_el = [ `table_row ] el +type table_cell_el = [ `table_cell ] el +type radio_el = [ `radio ] el +type input_group_actions_el = [ `input_group_actions ] el +type swipe_action_el = [ `swipe_action ] el +type dropdown_menu_item_el = [ `dropdown_menu_item ] el +type context_menu_item_el = [ `context_menu_item ] el +type toolbar_el = [ `toolbar_item ] el +type list_section_item_el = [ `list_section_item ] el +type tree_el = [ `tree_item ] el +type dropdown_menu_el = [ `dropdown_menu ] el (* Children slot of leaf elements: the only inhabitant is [[]], so any real child fails [dune build] instead of being rejected by the schema at emit. *) @@ -491,7 +507,9 @@ let icon_value : icon -> string = function let mount context ?parent element = element context parent -let scoped build : t = fun context parent -> build context context parent +let custom build : t = build + +let scoped build : 'kind el = fun context parent -> build context context parent (* Signal conveniences for view code: `map f src`, `sample src`, `src >|= f`, `const` — short spellings for the reactive props. *) @@ -624,7 +642,7 @@ let dynamic mount : t = let default_subtree_equal left right = left == right || (try left = right with Invalid_argument _ -> false) -let dyn ?(equal = default_subtree_equal) f (source : 'a Signal.signal) : t = +let dyn ?(equal = default_subtree_equal) f (source : 'a Signal.signal) : 'kind el = fun context parent -> dynamic (fun context node -> @@ -632,7 +650,7 @@ let dyn ?(equal = default_subtree_equal) f (source : 'a Signal.signal) : t = (fun branch_context value -> f value branch_context (Some node))) context parent -let if_ ~test (children : t) : t = +let if_ ~test (children : 'kind el) : 'kind el = fun context parent -> dynamic (fun context node -> @@ -641,7 +659,7 @@ let if_ ~test (children : t) : t = children branch_context (Some node))) context parent -let keyed ~source ~key ~cmp ~mount : t = +let keyed ~source ~key ~cmp ~mount : 'kind el = fun context parent -> dynamic (fun context node -> @@ -900,46 +918,16 @@ let user_select_value : user_select -> string = function | `none -> "none" | `text -> "text" module Slot_style = struct - type t = (Lui_protocol.property * (Lui_ui.ui_context -> int -> unit)) list + type +'caps t = (Lui_protocol.property * (Lui_ui.ui_context -> int -> unit)) list + type base = [ `base ] + type typography_caps = [ `base | `typography ] + type text_caps = [ `base | `typography | `text_flow ] + type surface_caps = [ `base | `typography | `collision ] + + let empty : 'caps t = [] - let make ?font_size ?font_size_signal ?font_weight ?font_weight_signal ?font_family ?font_family_signal ?font_style ?font_style_signal ?line_height ?line_height_signal ?letter_spacing ?letter_spacing_signal ?text_decoration ?text_decoration_signal ?white_space ?white_space_signal ?text_overflow ?text_overflow_signal ?overflow ?overflow_signal ?hover_background ?hover_background_signal ?hover_foreground ?hover_foreground_signal ?focus_within_background ?focus_within_background_signal ?focus_within_border ?focus_within_border_signal ?focus_shadow ?focus_shadow_signal ?shadow ?shadow_signal ?collision_padding ?collision_padding_signal ?cursor ?cursor_signal ?user_select ?user_select_signal ?disabled_opacity ?disabled_opacity_signal ?pressed_opacity ?pressed_opacity_signal ?hover_opacity ?hover_opacity_signal ?max_height_viewport ?max_height_viewport_signal () : t = + let make ?overflow ?overflow_signal ?hover_background ?hover_background_signal ?hover_foreground ?hover_foreground_signal ?focus_within_background ?focus_within_background_signal ?focus_within_border ?focus_within_border_signal ?focus_shadow ?focus_shadow_signal ?shadow ?shadow_signal ?cursor ?cursor_signal ?disabled_opacity ?disabled_opacity_signal ?pressed_opacity ?pressed_opacity_signal ?hover_opacity ?hover_opacity_signal ?max_height_viewport ?max_height_viewport_signal () : 'caps t = List.filter_map Fun.id [ - (if Option.is_none font_size && Option.is_none font_size_signal then None - else Some (FontSize, fun context node -> - Option.iter (Lui_ui.string_property context node FontSize) font_size; - Option.iter (fun source -> Lui_ui.string_property_signal context node FontSize source) font_size_signal)); - (if Option.is_none font_weight && Option.is_none font_weight_signal then None - else Some (FontWeight, fun context node -> - Option.iter (Lui_ui.int_property context node FontWeight) font_weight; - Option.iter (fun source -> Lui_ui.int_property_signal context node FontWeight source) font_weight_signal)); - (if Option.is_none font_family && Option.is_none font_family_signal then None - else Some (FontFamily, fun context node -> - Option.iter (Lui_ui.string_property context node FontFamily) font_family; - Option.iter (fun source -> Lui_ui.string_property_signal context node FontFamily source) font_family_signal)); - (if Option.is_none font_style && Option.is_none font_style_signal then None - else Some (FontStyle, fun context node -> - Option.iter (Lui_ui.string_property context node FontStyle) (Option.map font_style_value font_style); - Option.iter (fun source -> Lui_ui.string_property_signal context node FontStyle (owned_map context font_style_value source)) font_style_signal)); - (if Option.is_none line_height && Option.is_none line_height_signal then None - else Some (LineHeight, fun context node -> - Option.iter (Lui_ui.string_property context node LineHeight) line_height; - Option.iter (fun source -> Lui_ui.string_property_signal context node LineHeight source) line_height_signal)); - (if Option.is_none letter_spacing && Option.is_none letter_spacing_signal then None - else Some (LetterSpacing, fun context node -> - Option.iter (Lui_ui.float_property context node LetterSpacing) letter_spacing; - Option.iter (fun source -> Lui_ui.float_property_signal context node LetterSpacing source) letter_spacing_signal)); - (if Option.is_none text_decoration && Option.is_none text_decoration_signal then None - else Some (TextDecoration, fun context node -> - Option.iter (Lui_ui.string_property context node TextDecoration) text_decoration; - Option.iter (fun source -> Lui_ui.string_property_signal context node TextDecoration source) text_decoration_signal)); - (if Option.is_none white_space && Option.is_none white_space_signal then None - else Some (WhiteSpace, fun context node -> - Option.iter (Lui_ui.string_property context node WhiteSpace) (Option.map white_space_value white_space); - Option.iter (fun source -> Lui_ui.string_property_signal context node WhiteSpace (owned_map context white_space_value source)) white_space_signal)); - (if Option.is_none text_overflow && Option.is_none text_overflow_signal then None - else Some (TextOverflow, fun context node -> - Option.iter (Lui_ui.string_property context node TextOverflow) (Option.map text_overflow_value text_overflow); - Option.iter (fun source -> Lui_ui.string_property_signal context node TextOverflow (owned_map context text_overflow_value source)) text_overflow_signal)); (if Option.is_none overflow && Option.is_none overflow_signal then None else Some (Overflow, fun context node -> Option.iter (Lui_ui.string_property context node Overflow) (Option.map overflow_value overflow); @@ -968,18 +956,10 @@ module Slot_style = struct else Some (Shadow, fun context node -> Option.iter (Lui_ui.string_property context node Shadow) shadow; Option.iter (fun source -> Lui_ui.string_property_signal context node Shadow source) shadow_signal)); - (if Option.is_none collision_padding && Option.is_none collision_padding_signal then None - else Some (CollisionPadding, fun context node -> - Option.iter (Lui_ui.float_property context node CollisionPadding) collision_padding; - Option.iter (fun source -> Lui_ui.float_property_signal context node CollisionPadding source) collision_padding_signal)); (if Option.is_none cursor && Option.is_none cursor_signal then None else Some (Cursor, fun context node -> Option.iter (Lui_ui.string_property context node Cursor) (Option.map cursor_value cursor); Option.iter (fun source -> Lui_ui.string_property_signal context node Cursor (owned_map context cursor_value source)) cursor_signal)); - (if Option.is_none user_select && Option.is_none user_select_signal then None - else Some (UserSelect, fun context node -> - Option.iter (Lui_ui.string_property context node UserSelect) (Option.map user_select_value user_select); - Option.iter (fun source -> Lui_ui.string_property_signal context node UserSelect (owned_map context user_select_value source)) user_select_signal)); (if Option.is_none disabled_opacity && Option.is_none disabled_opacity_signal then None else Some (DisabledOpacity, fun context node -> Option.iter (Lui_ui.float_property context node DisabledOpacity) disabled_opacity; @@ -998,6 +978,62 @@ module Slot_style = struct Option.iter (fun source -> Lui_ui.float_property_signal context node MaxHeightViewport source) max_height_viewport_signal)) ] + let typography ?font_size ?font_size_signal ?font_weight ?font_weight_signal ?font_family ?font_family_signal ?font_style ?font_style_signal ?line_height ?line_height_signal ?letter_spacing ?letter_spacing_signal ?text_decoration ?text_decoration_signal ?user_select ?user_select_signal () : [> `typography ] t = + List.filter_map Fun.id [ + (if Option.is_none font_size && Option.is_none font_size_signal then None + else Some (FontSize, fun context node -> + Option.iter (Lui_ui.string_property context node FontSize) font_size; + Option.iter (fun source -> Lui_ui.string_property_signal context node FontSize source) font_size_signal)); + (if Option.is_none font_weight && Option.is_none font_weight_signal then None + else Some (FontWeight, fun context node -> + Option.iter (Lui_ui.int_property context node FontWeight) font_weight; + Option.iter (fun source -> Lui_ui.int_property_signal context node FontWeight source) font_weight_signal)); + (if Option.is_none font_family && Option.is_none font_family_signal then None + else Some (FontFamily, fun context node -> + Option.iter (Lui_ui.string_property context node FontFamily) font_family; + Option.iter (fun source -> Lui_ui.string_property_signal context node FontFamily source) font_family_signal)); + (if Option.is_none font_style && Option.is_none font_style_signal then None + else Some (FontStyle, fun context node -> + Option.iter (Lui_ui.string_property context node FontStyle) (Option.map font_style_value font_style); + Option.iter (fun source -> Lui_ui.string_property_signal context node FontStyle (owned_map context font_style_value source)) font_style_signal)); + (if Option.is_none line_height && Option.is_none line_height_signal then None + else Some (LineHeight, fun context node -> + Option.iter (Lui_ui.string_property context node LineHeight) line_height; + Option.iter (fun source -> Lui_ui.string_property_signal context node LineHeight source) line_height_signal)); + (if Option.is_none letter_spacing && Option.is_none letter_spacing_signal then None + else Some (LetterSpacing, fun context node -> + Option.iter (Lui_ui.float_property context node LetterSpacing) letter_spacing; + Option.iter (fun source -> Lui_ui.float_property_signal context node LetterSpacing source) letter_spacing_signal)); + (if Option.is_none text_decoration && Option.is_none text_decoration_signal then None + else Some (TextDecoration, fun context node -> + Option.iter (Lui_ui.string_property context node TextDecoration) text_decoration; + Option.iter (fun source -> Lui_ui.string_property_signal context node TextDecoration source) text_decoration_signal)); + (if Option.is_none user_select && Option.is_none user_select_signal then None + else Some (UserSelect, fun context node -> + Option.iter (Lui_ui.string_property context node UserSelect) (Option.map user_select_value user_select); + Option.iter (fun source -> Lui_ui.string_property_signal context node UserSelect (owned_map context user_select_value source)) user_select_signal)) + ] + + let text_flow ?white_space ?white_space_signal ?text_overflow ?text_overflow_signal () : [> `text_flow ] t = + List.filter_map Fun.id [ + (if Option.is_none white_space && Option.is_none white_space_signal then None + else Some (WhiteSpace, fun context node -> + Option.iter (Lui_ui.string_property context node WhiteSpace) (Option.map white_space_value white_space); + Option.iter (fun source -> Lui_ui.string_property_signal context node WhiteSpace (owned_map context white_space_value source)) white_space_signal)); + (if Option.is_none text_overflow && Option.is_none text_overflow_signal then None + else Some (TextOverflow, fun context node -> + Option.iter (Lui_ui.string_property context node TextOverflow) (Option.map text_overflow_value text_overflow); + Option.iter (fun source -> Lui_ui.string_property_signal context node TextOverflow (owned_map context text_overflow_value source)) text_overflow_signal)) + ] + + let collision ?collision_padding ?collision_padding_signal () : [> `collision ] t = + List.filter_map Fun.id [ + (if Option.is_none collision_padding && Option.is_none collision_padding_signal then None + else Some (CollisionPadding, fun context node -> + Option.iter (Lui_ui.float_property context node CollisionPadding) collision_padding; + Option.iter (fun source -> Lui_ui.float_property_signal context node CollisionPadding source) collision_padding_signal)) + ] + let scoped property make = [property, fun context node -> match make context with @@ -1070,7 +1106,7 @@ let apply_universal ?shrink ?key ?gap ?main ?cross ?grow ?columns ?padding ?padd Option.iter (register_pointer_leave context node) on_pointer_leave; Option.iter (Lui_ui.string_property context node Transition) transition -let row ?as_ ?key ?gap ?main ?cross ?grow ?shrink ?orientation ?orientation_signal ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_focus_within ?on_appear ?on_pointer_enter ?on_pointer_leave ?pointer_capture ?on_pointer_down ?on_pointer_move ?on_pointer_up ?on_pointer_cancel ?on_navigation_key ?opacity ?opacity_signal ?display ?flex_wrap ?transition (children : t list) : t = +let row ?as_ ?key ?gap ?main ?cross ?grow ?shrink ?orientation ?orientation_signal ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_focus_within ?on_appear ?on_pointer_enter ?on_pointer_leave ?pointer_capture ?on_pointer_down ?on_pointer_move ?on_pointer_up ?on_pointer_cancel ?on_navigation_key ?opacity ?opacity_signal ?display ?flex_wrap ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.row context in Option.iter (fun tag -> Lui_ui.string_property context node As (row_tag_value tag)) as_; @@ -1092,7 +1128,7 @@ let row ?as_ ?key ?gap ?main ?cross ?grow ?shrink ?orientation ?orientation_sign mount_children context node children; node -let column ?as_ ?key ?gap ?main ?cross ?grow ?shrink ?grow_signal ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?min_width_signal ?max_width ?max_width_signal ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_focus_within ?on_appear ?on_pointer_enter ?on_pointer_leave ?on_press_detail ?on_pointer_down ?on_pointer_up ?opacity ?opacity_signal ?display ?display_signal ?flex_wrap ?transition (children : t list) : t = +let column ?as_ ?key ?gap ?main ?cross ?grow ?shrink ?grow_signal ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?min_width_signal ?max_width ?max_width_signal ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_focus_within ?on_appear ?on_pointer_enter ?on_pointer_leave ?on_press_detail ?on_pointer_down ?on_pointer_up ?opacity ?opacity_signal ?display ?display_signal ?flex_wrap ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.column context in Option.iter (fun tag -> Lui_ui.string_property context node As (list_container_tag_value tag)) as_; @@ -1174,7 +1210,7 @@ let align alignment (child : t) : t = Lui_ui.string_property context node AlignmentValue (alignment_value alignment); node -let panel ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?opacity ?opacity_signal ?transition (children : t list) : t = +let panel ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?opacity ?opacity_signal ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.panel context in apply_universal ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1184,7 +1220,7 @@ let panel ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_ver mount_children context node children; node -let card ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?opacity ?opacity_signal ?transition (children : t list) : t = +let card ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?opacity ?opacity_signal ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.card context in apply_universal ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1222,7 +1258,7 @@ let bubble ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?ma mount_children context node children; node -let box ?key ?gap ?main ?cross ?grow ?shrink ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_focus_within ?on_appear ?on_pointer_enter ?on_pointer_leave ?pointer_capture ?on_pointer_down ?on_pointer_move ?on_pointer_up ?on_pointer_cancel ?on_navigation_key ?opacity ?opacity_signal ?display ?flex_wrap ?inert ?inert_signal ?transition (children : t list) : t = +let box ?key ?gap ?main ?cross ?grow ?shrink ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_focus_within ?on_appear ?on_pointer_enter ?on_pointer_leave ?pointer_capture ?on_pointer_down ?on_pointer_move ?on_pointer_up ?on_pointer_cancel ?on_navigation_key ?opacity ?opacity_signal ?display ?flex_wrap ?inert ?inert_signal ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.box context in apply_universal ?shrink ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1313,7 +1349,7 @@ let list ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vert mount_children context node children; node -let virtual_list ?viewport ?key ?overscan ?item_extent ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?scroll_target ?scroll_anchor ?scroll_token ?scroll_target_signal ?scroll_token_signal ?scroll_animated ?track_visible_range ?on_scroll_completed ?on_visible_range ?opacity ?opacity_signal ?list_marker ?transition (children : t list) : t = +let virtual_list ?viewport ?key ?overscan ?item_extent ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?scroll_target ?scroll_anchor ?scroll_token ?scroll_target_signal ?scroll_token_signal ?scroll_animated ?track_visible_range ?on_scroll_completed ?on_visible_range ?opacity ?opacity_signal ?list_marker ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.virtual_list context in Option.iter (fun source -> @@ -1407,7 +1443,7 @@ let bottom_tab ?key ?accessibility_identifier ?accessibility_identifier_signal ? mount_children context node children; node -let button_group ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?label ?transition (children : t list) : t = +let button_group ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?label ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.button_group context in apply_universal ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1417,7 +1453,7 @@ let button_group ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizonta mount_children context node children; node -let toggle_group ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?label ?transition (children : t list) : t = +let toggle_group ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?label ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.toggle_group context in apply_universal ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1512,42 +1548,86 @@ let bind_properties context node apply source = let remove_properties context node properties = List.iter (Lui_runtime.remove_prop context.Lui_ui.ui_application node) properties -let apply_split_sizing context node sizing = - match sizing with - | Fraction value -> - remove_properties context node [FirstPaneWidth]; - Lui_ui.float_property context node ProgressValue value - | First_width value -> - remove_properties context node [ProgressValue]; - Lui_ui.float_property context node FirstPaneWidth value - -let apply_popover_target context node target = - remove_properties context node - [PopupX; PopupY; AnchorValue; AnchorTarget; AnchorRect; - AnchorAlignmentValue; AnchorOffset; AnchorAlignmentOffset]; - match target with - | Cover -> () - | At (x, y) -> - Lui_ui.float_property context node PopupX x; - Lui_ui.float_property context node PopupY y - | Anchor {side; source; align; offset; align_offset} -> - Lui_ui.string_property context node AnchorValue (anchor_value side); - (match source with - | Parent -> () - | Target value -> Lui_ui.string_property context node AnchorTarget value - | Rect {x; y; width; height} -> - Lui_ui.string_property context node AnchorRect - (String.concat " " (List.map string_of_float [x; y; width; height]))); - Lui_ui.string_property context node AnchorAlignmentValue (anchor_alignment_value align); - Lui_ui.float_property context node AnchorOffset offset; - Lui_ui.float_property context node AnchorAlignmentOffset align_offset - -let split ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?(sizing = Fraction 0.5) ?sizing_signal ?resize_handle_width ?resize_handle_width_signal ?resize_handle_offset ?resize_handle_offset_signal ?motion ?label ?on_resize ?transition (first : t) (second : t) : t = +let make_split_sizing_applier context node = + let previous = ref None in + fun sizing -> + (match !previous, sizing with + | Some (First_width _), Fraction _ -> + remove_properties context node [FirstPaneWidth] + | Some (Fraction _), First_width _ -> + remove_properties context node [ProgressValue] + | _ -> ()); + (match sizing with + | Fraction value -> + Lui_ui.float_property context node ProgressValue value + | First_width value -> + Lui_ui.float_property context node FirstPaneWidth value); + previous := Some sizing + +let make_popover_target_applier context node = + let previous = ref None in + fun target -> + (match !previous, target with + | Some (At _), (Cover | Anchor _) -> + remove_properties context node [PopupX; PopupY] + | Some (Anchor {source; _}), (Cover | At _) -> + remove_properties context node + ([AnchorValue; AnchorAlignmentValue; AnchorOffset; AnchorAlignmentOffset] + @ match source with + | Parent -> [] + | Target _ -> [AnchorTarget] + | Rect _ -> [AnchorRect]) + | Some (Anchor {source = Target _; _}), Anchor {source = (Parent | Rect _); _} -> + remove_properties context node [AnchorTarget] + | Some (Anchor {source = Rect _; _}), Anchor {source = (Parent | Target _); _} -> + remove_properties context node [AnchorRect] + | _ -> ()); + (match target with + | Cover -> () + | At (x, y) -> + Lui_ui.float_property context node PopupX x; + Lui_ui.float_property context node PopupY y + | Anchor {side; source; align; offset; align_offset} -> + Lui_ui.string_property context node AnchorValue (anchor_value side); + (match source with + | Parent -> () + | Target value -> Lui_ui.string_property context node AnchorTarget value + | Rect {x; y; width; height} -> + Lui_ui.string_property context node AnchorRect + (String.concat " " (List.map string_of_float [x; y; width; height]))); + Lui_ui.string_property context node AnchorAlignmentValue (anchor_alignment_value align); + Lui_ui.float_property context node AnchorOffset offset; + Lui_ui.float_property context node AnchorAlignmentOffset align_offset); + previous := Some target + +let make_dropdown_target_applier context node = + let previous = ref None in + fun target -> + (match !previous, target with + | Some (Menu_at _), (Menu_default | Menu_anchor _) -> + remove_properties context node [PopupX; PopupY] + | Some (Menu_anchor _), (Menu_default | Menu_at _) -> + remove_properties context node [AnchorValue; AnchorAlignmentValue; AnchorOffset] + | _ -> ()); + (match target with + | Menu_default -> () + | Menu_at (x, y) -> + Lui_ui.float_property context node PopupX x; + Lui_ui.float_property context node PopupY y + | Menu_anchor {side; align; offset} -> + Lui_ui.string_property context node AnchorValue (anchor_value side); + Lui_ui.string_property context node AnchorAlignmentValue (anchor_alignment_value align); + Lui_ui.float_property context node AnchorOffset offset); + previous := Some target + +let split ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?sizing ?sizing_signal ?resize_handle_width ?resize_handle_width_signal ?resize_handle_offset ?resize_handle_offset_signal ?motion ?label ?on_resize ?transition (first : t) (second : t) : t = fun context parent -> let node = Lui_ui.create context Split in apply_universal ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; - apply_split_sizing context node sizing; - Option.iter (bind_properties context node (apply_split_sizing context node)) sizing_signal; + let apply_sizing = make_split_sizing_applier context node in + (match sizing_signal with + | Some source -> bind_properties context node apply_sizing source + | None -> apply_sizing (Option.value ~default:(Fraction 0.5) sizing)); Option.iter (Lui_ui.int_property context node ResizeHandleWidth) resize_handle_width; Option.iter (Lui_ui.int_property_signal context node ResizeHandleWidth) resize_handle_width_signal; Option.iter (Lui_ui.float_property context node ResizeHandleOffset) resize_handle_offset; @@ -1597,7 +1677,7 @@ let status_bar ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin node -let spacer ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition (_children : nothing list) : t = +let spacer ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition (_children : nothing list) : _ el = fun context parent -> let node = Lui_ui.spacer context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1662,7 +1742,7 @@ let apply_text_style context node ~font_size ~font_weight ~font_style Option.iter (fun value -> Lui_ui.text_overflow context node (text_overflow_value value)) text_overflow; Option.iter (fun value -> Lui_ui.overflow context node (overflow_value value)) overflow -let text ?role ?(truncate = false) ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?as_ ?on_appear ?on_pointer_enter ?on_pointer_leave ?value ?value_signal ?text_alignment ?font_size ?font_weight ?line_height ?letter_spacing ?font_family ?font_style ?text_decoration ?white_space ?line_clamp ?text_overflow ?overflow ?on_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?transition (children : t list) : t = +let text ?role ?(truncate = false) ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?as_ ?on_appear ?on_pointer_enter ?on_pointer_leave ?value ?value_signal ?text_alignment ?font_size ?font_weight ?line_height ?letter_spacing ?font_family ?font_style ?text_decoration ?white_space ?line_clamp ?text_overflow ?overflow ?on_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.create context Text in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1670,6 +1750,7 @@ let text ?role ?(truncate = false) ?style ?key ?grow ?padding ?padding_horizonta ~line_height ~letter_spacing ~font_family ~text_decoration ~white_space ~text_overflow ~overflow; Option.iter (Lui_ui.line_clamp context node) line_clamp; + Option.iter (Slot_style.apply context node) style; apply_text_recipe context node role truncate style_class; Option.iter (fun tag -> Lui_ui.string_property context node As (phrasing_tag_value tag)) @@ -1683,7 +1764,6 @@ let text ?role ?(truncate = false) ?style ?key ?grow ?padding ?padding_horizonta register_press context node handler | None -> ()); apply_pointer_events context node ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu (); - Option.iter (Slot_style.apply context node) style; attach context parent node; mount_children context node children; node @@ -1794,13 +1874,13 @@ let button_impl ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal mount_children context node children; node -let button ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ~text ?text_signal ?variant ?size ?icon ?icon_signal ?icon_placement ?label ?text_alignment ?selected ?selected_signal ?autofocus ?disabled ?disabled_signal ?on_navigate ?on_press ?on_long_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition (children : t list) : t = +let button ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ~text ?text_signal ?variant ?size ?icon ?icon_signal ?icon_placement ?label ?text_alignment ?selected ?selected_signal ?autofocus ?disabled ?disabled_signal ?on_navigate ?on_press ?on_long_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition (children : t list) : _ el = button_impl ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ~text ?text_signal ?variant ?size:(Option.map (fun (size : button_size) -> (size :> control_size)) size) ?icon ?icon_signal ?icon_placement ?label ?text_alignment ?selected ?selected_signal ?autofocus ?disabled ?disabled_signal ?on_navigate ?on_press ?on_long_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition children -let icon_button ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?variant ?size ~icon ?icon_signal ?icon_placement ~label ?text_alignment ?selected ?selected_signal ?autofocus ?disabled ?disabled_signal ?on_navigate ?on_press ?on_long_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition (children : t list) : t = +let icon_button ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?variant ?size ~icon ?icon_signal ?icon_placement ~label ?text_alignment ?selected ?selected_signal ?autofocus ?disabled ?disabled_signal ?on_navigate ?on_press ?on_long_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition (children : t list) : _ el = button_impl ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?variant ?size ~icon ?icon_signal ?icon_placement ~label ?text_alignment ?selected ?selected_signal ?autofocus ?disabled ?disabled_signal ?on_navigate ?on_press ?on_long_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition children -let toggle_button ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?variant ?size ?icon ?icon_signal ?icon_placement ?label ?text_alignment ?selected ?checked ?checked_signal ?autofocus ?disabled ?disabled_signal ?on_toggle ?on_long_press ?on_context_menu ?transition (children : t list) : t = +let toggle_button ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?variant ?size ?icon ?icon_signal ?icon_placement ?label ?text_alignment ?selected ?checked ?checked_signal ?autofocus ?disabled ?disabled_signal ?on_toggle ?on_long_press ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.toggle_button context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1835,7 +1915,7 @@ let toggle_button ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertic mount_children context node children; node -let checkbox ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?checked ?checked_signal ?indeterminate ?indeterminate_signal ?label ?disabled ?disabled_signal ?on_toggle ?on_toggle_detail ?on_context_menu ?transition (children : t list) : t = +let checkbox ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?checked ?checked_signal ?indeterminate ?indeterminate_signal ?label ?disabled ?disabled_signal ?on_toggle ?on_toggle_detail ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.checkbox context in apply_universal ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1860,7 +1940,7 @@ let checkbox ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?p mount_children context node children; node -let switch_ ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?checked ?checked_signal ?label ?disabled ?disabled_signal ?on_toggle ?on_context_menu ?transition (children : t list) : t = +let switch_ ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?checked ?checked_signal ?label ?disabled ?disabled_signal ?on_toggle ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.switch_control context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1882,7 +1962,7 @@ let switch_ ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?ma mount_children context node children; node -let toggle ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?checked ?checked_signal ?label ?disabled ?disabled_signal ?on_toggle ?on_context_menu ?transition (children : t list) : t = +let toggle ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?checked ?checked_signal ?label ?disabled ?disabled_signal ?on_toggle ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.toggle context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -1904,7 +1984,7 @@ let toggle ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?mar mount_children context node children; node -let radio_group ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ~label ?transition (children : radio_el list) : t = +let radio_group ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ~label ?transition (children : radio_el list) : _ el = fun context parent -> let node = Lui_ui.radio_group context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2000,7 +2080,7 @@ let progress ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ? node -let divider ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?orientation ?transition (_children : nothing list) : t = +let divider ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?orientation ?transition (_children : nothing list) : _ el = fun context parent -> let node = Lui_ui.create context Divider in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2009,7 +2089,7 @@ let divider ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?m node -let separator ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?orientation ?transition (_children : nothing list) : t = +let separator ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?orientation ?transition (_children : nothing list) : _ el = fun context parent -> let node = Lui_ui.create context Divider in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2018,7 +2098,7 @@ let separator ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin node -let text_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?transition (children : t list) : t = +let text_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.text_field context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2050,7 +2130,7 @@ let text_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical mount_children context node children; node -let secure_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?transition (children : t list) : t = +let secure_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.secure_field context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2082,7 +2162,7 @@ let secure_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertica mount_children context node children; node -let input ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?kind ?transition (children : t list) : t = +let input ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?kind ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.input context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2115,7 +2195,7 @@ let input ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?marg mount_children context node children; node -let search_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?transition (children : t list) : t = +let search_field ?style ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?label ?autofocus ?submit_on_blur ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_input ?on_submit ?on_navigate ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.search_field context in apply_universal ?key ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2197,7 +2277,7 @@ let input_group_actions ?key ?gap ?accessibility_identifier ?accessibility_ident mount_children context node children; node -let select ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?label ?text ?text_signal ?placeholder ?placeholder_signal ?disabled ?disabled_signal ?on_press ?on_dismiss ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?transition (children : t list) : t = +let select ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?label ?text ?text_signal ?placeholder ?placeholder_signal ?disabled ?disabled_signal ?on_press ?on_dismiss ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.select context in apply_universal ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2222,7 +2302,7 @@ let select ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical mount_children context node children; node -let combobox ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_press ?on_input ?on_submit ?on_dismiss ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?transition (children : t list) : t = +let combobox ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?placeholder ?placeholder_signal ?read_only ?read_only_signal ?disabled ?disabled_signal ?on_press ?on_input ?on_submit ?on_dismiss ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.combobox context in apply_universal ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2258,25 +2338,14 @@ let combobox ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertic mount_children context node children; node -let dropdown_menu ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?at ?at_signal ?anchor ?anchor_alignment ?anchor_offset ?on_dismiss ?transition (children : dropdown_menu_item_el list) : dropdown_menu_el = +let dropdown_menu ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?target ?target_signal ?on_dismiss ?transition (children : dropdown_menu_item_el list) : _ el = fun context parent -> let node = Lui_ui.dropdown_menu context in apply_universal ?key ?gap ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; - Option.iter - (fun (x, y) -> - Lui_ui.float_property context node PopupX x; - Lui_ui.float_property context node PopupY y) - at; - Option.iter - (fun signal_ -> - Lui_ui.float_property_signal context node PopupX - (owned_map context fst signal_); - Lui_ui.float_property_signal context node PopupY - (owned_map context snd signal_)) - at_signal; - Option.iter (Lui_ui.string_property context node AnchorValue) (Option.map anchor_value anchor); - Option.iter (Lui_ui.string_property context node AnchorAlignmentValue) (Option.map anchor_alignment_value anchor_alignment); - Option.iter (Lui_ui.float_property context node AnchorOffset) anchor_offset; + let apply_target = make_dropdown_target_applier context node in + (match target_signal with + | Some source -> bind_properties context node apply_target source + | None -> Option.iter apply_target target); (match on_dismiss with | Some handler -> register_dismiss context node handler | None -> ()); @@ -2285,21 +2354,24 @@ let dropdown_menu ?style ?key ?gap ?grow ?padding ?padding_horizontal ?padding_v mount_children context node children; node -let popover ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?max_width_signal ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?opacity ?opacity_signal ?(target = Cover) ?target_signal ?available_height ?available_height_signal ?role ?on_dismiss ?transition (children : t list) : t = +let popover ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?max_width_signal ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?opacity ?opacity_signal ?(target = Cover) ?target_signal ?available_height ?available_height_signal ?role ?on_dismiss ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.popover context in apply_universal ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; Option.iter (Lui_ui.int_property_signal context node MaxWidth) max_width_signal; Option.iter (Lui_ui.float_property context node Opacity) opacity; Option.iter (Lui_ui.float_property_signal context node Opacity) opacity_signal; - apply_popover_target context node target; - Option.iter (bind_properties context node (apply_popover_target context node)) target_signal; + let apply_target = make_popover_target_applier context node in + (match target_signal with + | Some source -> bind_properties context node apply_target source + | None -> apply_target target); Option.iter (Lui_ui.float_property context node AvailableHeight) available_height; Option.iter (Lui_ui.float_property_signal context node AvailableHeight) available_height_signal; Option.iter (Lui_ui.string_property context node RoleValue) (Option.map popover_role_value role); (match on_dismiss with | Some handler -> register_dismiss context node handler | None -> ()); + Option.iter (Slot_style.apply context node) style; attach context parent node; mount_children context node children; node @@ -2452,7 +2524,7 @@ let accordion ?key ?height ?accessibility_identifier ?accessibility_identifier_s mount_children context node children; node -let menu_item ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?icon ?icon_signal ?selection_placement ?variant ?size ?selected ?checked ?selected_signal ?checked_signal ?disabled ?disabled_signal ?on_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition (children : t list) : t = +let menu_item ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?icon ?icon_signal ?selection_placement ?variant ?size ?selected ?checked ?selected_signal ?checked_signal ?disabled ?disabled_signal ?on_press ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?tooltip ?tooltip_signal ?shortcut_hint ?shortcut_hint_signal ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.menu_item context in apply_universal ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2489,7 +2561,7 @@ let menu_item ?style ?key ?gap ?main ?cross ?grow ?padding ?padding_horizontal ? mount_children context node children; node -let menu_trigger ?key ?accessibility_identifier ?accessibility_identifier_signal ?foreground ?foreground_signal ?style_class ?data_attrs ?data_attrs_signal ?text ?text_signal ?icon ?icon_signal ?label ?disabled ?disabled_signal (child : dropdown_menu_el) : t = +let menu_trigger ?key ?accessibility_identifier ?accessibility_identifier_signal ?foreground ?foreground_signal ?style_class ?data_attrs ?data_attrs_signal ?text ?text_signal ?icon ?icon_signal ?label ?disabled ?disabled_signal (child : dropdown_menu_el) : _ el = fun context parent -> let node = Lui_ui.menu_trigger context in Option.iter (Lui_ui.key context node) key; @@ -2519,18 +2591,18 @@ let menu_trigger ?key ?accessibility_identifier ?accessibility_identifier_signal ignore (child context (Some node)); node -let menu ?key ?accessibility_identifier ?foreground ?style_class ?data_attrs ?data_attrs_signal ?text +let menu ?style ?key ?accessibility_identifier ?foreground ?style_class ?data_attrs ?data_attrs_signal ?text ?text_signal ?icon ?icon_signal ?label ?disabled ?disabled_signal - ?on_dismiss entries : t = + ?on_dismiss entries : _ el = fun context parent -> menu_trigger ?key ?accessibility_identifier ?foreground ?style_class ?data_attrs ?data_attrs_signal ?text ?text_signal ?icon ?icon_signal ?label ?disabled - ?disabled_signal (dropdown_menu ?on_dismiss entries) context parent + ?disabled_signal (dropdown_menu ?style ?on_dismiss entries) context parent -let submenu ?key ?text ?icon ?label ?disabled ?disabled_signal ?on_dismiss entries : t = - menu ?key ?text ?icon ?label ?disabled ?disabled_signal ?on_dismiss entries +let submenu ?style ?key ?text ?icon ?label ?disabled ?disabled_signal ?on_dismiss entries : _ el = + menu ?style ?key ?text ?icon ?label ?disabled ?disabled_signal ?on_dismiss entries -let list_item ?key ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?icon ?icon_signal ?icon_placement ?role ?tree_level ?expanded ?expanded_signal ?selected ?selected_signal ?disabled ?disabled_signal ?on_press ?on_long_press ?on_double_press ?on_submit ?on_toggle ?separator ?swipe_actions ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?list_marker ?transition (children : t list) : t = +let list_item ?key ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?text ?text_signal ?icon ?icon_signal ?icon_placement ?role ?tree_level ?expanded ?expanded_signal ?selected ?selected_signal ?disabled ?disabled_signal ?on_press ?on_long_press ?on_double_press ?on_submit ?on_toggle ?separator ?swipe_actions ?on_press_detail ?on_pointer_down ?on_pointer_up ?on_context_menu ?list_marker ?transition (children : t list) : _ el = fun context parent -> let node = Lui_ui.list_item context in apply_universal ?key ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vertical ?margin ?margin_horizontal ?margin_vertical ?margin_top ?margin_right ?margin_bottom ?margin_left ?background ?foreground ?border_color ?border_width ?corner_radius ?width ?height ?min_width ?max_width ?min_height ?max_height ?container_relative_frame ?container_relative_frame_inset ?accessibility_identifier ?accessibility_identifier_signal ?foreground_signal ?background_signal ?style_class ?data_attrs ?data_attrs_signal ?on_appear ?on_pointer_enter ?on_pointer_leave ?transition context node; @@ -2589,7 +2661,7 @@ let list_item ?key ?main ?cross ?grow ?padding ?padding_horizontal ?padding_vert node let list_section ?key ?accessibility_identifier ?separator ?header ?footer - (children : t list) : t = + (children : t list) : _ el = fun context parent -> let node = Lui_ui.list_section context in Option.iter (Lui_ui.key context node) key; @@ -2616,7 +2688,7 @@ let list_section ?key ?accessibility_identifier ?separator ?header ?footer node let swipe_actions ?key ?accessibility_identifier - (children : swipe_action_el list) : t = + (children : swipe_action_el list) : _ el = fun context parent -> let node = Lui_ui.swipe_actions context in Option.iter (Lui_ui.key context node) key; diff --git a/src/lui_elements.mli b/src/lui_elements.mli index 88dacb4ea..f580c8a8f 100644 --- a/src/lui_elements.mli +++ b/src/lui_elements.mli @@ -10,7 +10,14 @@ module Tokens = Lui_tokens type text_role = [ `display | `title | `headline | `subheadline | `body | `caption | `footnote | `code ] -type t = Lui_ui.ui_context -> int option -> int +type +'kind el +type general = [ `general ] +type t = general el +type list_slot = + [ `general | `step | `timeline_item | `bottom_tab | `table_row | `table_cell + | `radio | `swipe_action | `dropdown_menu_item | `context_menu_item + | `toolbar_item | `list_section_item | `tree_item ] +type optional_slot = [ list_slot | `input_group_actions ] type pointer_detail = Lui_protocol.pointer_detail type toggle_detail = Lui_event_payloads.toggle_detail = { checked : bool; modifiers : int } @@ -139,6 +146,15 @@ type popover_target = align_offset : float; } +type dropdown_target = + | Menu_default + | Menu_at of float * float + | Menu_anchor of { + side : anchor; + align : anchor_alignment; + offset : float; + } + type split_sizing = Fraction of float | First_width of float type split_motion = { @@ -171,45 +187,33 @@ type icon = [table_row], [radio_el] inside [radio_group], and [input_group_actions_el] as the optional [~actions] of [input_group]. *) -type step_el -type timeline_item_el -type bottom_tab_el -type table_row_el -type table_cell_el -type radio_el -type input_group_actions_el -type swipe_action_el -type dropdown_menu_item_el -type context_menu_item_el -type toolbar_el -type list_section_item_el -type tree_el -type dropdown_menu_el +type step_el = [ `step ] el +type timeline_item_el = [ `timeline_item ] el +type bottom_tab_el = [ `bottom_tab ] el +type table_row_el = [ `table_row ] el +type table_cell_el = [ `table_cell ] el +type radio_el = [ `radio ] el +type input_group_actions_el = [ `input_group_actions ] el +type swipe_action_el = [ `swipe_action ] el +type dropdown_menu_item_el = [ `dropdown_menu_item ] el +type context_menu_item_el = [ `context_menu_item ] el +type toolbar_el = [ `toolbar_item ] el +type list_section_item_el = [ `list_section_item ] el +type tree_el = [ `tree_item ] el +type dropdown_menu_el = [ `dropdown_menu ] el (** Empty type: [leaf] constructors take a [nothing list] children slot, so [] compiles and any real child is a type error. *) type nothing = | module Slot_style : sig - type t + type +'caps t + type base = [ `base ] + type typography_caps = [ `base | `typography ] + type text_caps = [ `base | `typography | `text_flow ] + type surface_caps = [ `base | `typography | `collision ] + + val empty : 'caps t val make : - ?font_size:string -> - ?font_size_signal:string Signal.signal -> - ?font_weight:int -> - ?font_weight_signal:int Signal.signal -> - ?font_family:string -> - ?font_family_signal:string Signal.signal -> - ?font_style:font_style -> - ?font_style_signal:font_style Signal.signal -> - ?line_height:string -> - ?line_height_signal:string Signal.signal -> - ?letter_spacing:float -> - ?letter_spacing_signal:float Signal.signal -> - ?text_decoration:string -> - ?text_decoration_signal:string Signal.signal -> - ?white_space:white_space -> - ?white_space_signal:white_space Signal.signal -> - ?text_overflow:text_overflow -> - ?text_overflow_signal:text_overflow Signal.signal -> ?overflow:overflow -> ?overflow_signal:overflow Signal.signal -> ?hover_background:string -> @@ -224,12 +228,8 @@ module Slot_style : sig ?focus_shadow_signal:string Signal.signal -> ?shadow:string -> ?shadow_signal:string Signal.signal -> - ?collision_padding:float -> - ?collision_padding_signal:float Signal.signal -> ?cursor:cursor -> ?cursor_signal:cursor Signal.signal -> - ?user_select:user_select -> - ?user_select_signal:user_select Signal.signal -> ?disabled_opacity:float -> ?disabled_opacity_signal:float Signal.signal -> ?pressed_opacity:float -> @@ -238,13 +238,42 @@ module Slot_style : sig ?hover_opacity_signal:float Signal.signal -> ?max_height_viewport:float -> ?max_height_viewport_signal:float Signal.signal -> - unit -> t - val merge : t -> t -> t - val scoped : Lui_protocol.property -> (Lui_ui.ui_context -> t) -> t + unit -> 'caps t + val typography : + ?font_size:string -> + ?font_size_signal:string Signal.signal -> + ?font_weight:int -> + ?font_weight_signal:int Signal.signal -> + ?font_family:string -> + ?font_family_signal:string Signal.signal -> + ?font_style:font_style -> + ?font_style_signal:font_style Signal.signal -> + ?line_height:string -> + ?line_height_signal:string Signal.signal -> + ?letter_spacing:float -> + ?letter_spacing_signal:float Signal.signal -> + ?text_decoration:string -> + ?text_decoration_signal:string Signal.signal -> + ?user_select:user_select -> + ?user_select_signal:user_select Signal.signal -> + unit -> [> `typography ] t + val text_flow : + ?white_space:white_space -> + ?white_space_signal:white_space Signal.signal -> + ?text_overflow:text_overflow -> + ?text_overflow_signal:text_overflow Signal.signal -> + unit -> [> `text_flow ] t + val collision : + ?collision_padding:float -> + ?collision_padding_signal:float Signal.signal -> + unit -> [> `collision ] t + val merge : 'caps t -> 'caps t -> 'caps t + val scoped : Lui_protocol.property -> (Lui_ui.ui_context -> 'caps t) -> 'caps t end -val mount : 'a -> ?parent:'b -> ('a -> 'b option -> 'c) -> 'c -val scoped : (Lui_ui.ui_context -> t) -> t +val mount : Lui_ui.ui_context -> ?parent:int -> 'kind el -> int +val custom : (Lui_ui.ui_context -> int option -> int) -> t +val scoped : (Lui_ui.ui_context -> 'kind el) -> 'kind el val reactive : ('a -> 'b) -> 'a Signal.signal -> 'b Signal.signal val map : ('a -> 'b) -> 'a Signal.signal -> 'b Signal.signal val sample : 'a Signal.signal -> 'a @@ -276,7 +305,7 @@ type error_diagnostic = { val error_boundary : fallback:(error_diagnostic -> t) -> t -> t val enable : Lui_ui.ui_context -> int -> Lui_protocol.Property_map.key -> unit -val mount_children : 'a -> 'b -> ('a -> 'b option -> 'c) list -> unit +val mount_children : Lui_ui.ui_context -> int -> 'kind el list -> unit val dynamic : (Lui_ui.ui_context -> int -> 'a) -> t (** Physical equality followed by structural equality, treating incomparable @@ -295,11 +324,11 @@ val default_subtree_equal : 'a -> 'a -> bool [reactive f s] into this call — write [reactive f s ~equal:eq] instead of calling [dyn] directly. *) val dyn : - ?equal:('a -> 'a -> bool) -> ('a -> t) -> 'a Signal.signal -> t + ?equal:('a -> 'a -> bool) -> ('a -> 'kind el) -> 'a Signal.signal -> 'kind el (** [if_ ~test child] mounts [child] under the parent while [test] publishes [true] and removes it on [false]. *) -val if_ : test:bool Signal.signal -> t -> t +val if_ : test:bool Signal.signal -> ([< optional_slot ] as 'kind) el -> 'kind el (** [keyed ~source ~key ~cmp ~mount] renders one mounted child per item of [source], keyed by [key item] and diffed with @@ -309,7 +338,7 @@ val keyed : source:'a list Signal.signal -> key:('a -> 'b) -> cmp:('b -> 'b -> int) -> - mount:('a Signal.signal -> t) -> t + mount:('a Signal.signal -> ([< list_slot ] as 'kind) el) -> 'kind el (** A viewport-managed keyed source. Use as the sole child of {!virtual_list}. Business data remains in [source]; only the requested @@ -483,7 +512,7 @@ val row : ?opacity_signal:float Signal.signal -> ?display:display -> ?flex_wrap:flex_wrap -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `tree_item ] el val column : ?as_:list_container_tag -> ?key:string -> @@ -537,7 +566,7 @@ val column : ?display:display -> ?display_signal:display Signal.signal -> ?flex_wrap:flex_wrap -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `tree_item ] el val grid : ?key:string -> ?gap:int -> @@ -805,7 +834,7 @@ val panel : ?on_pointer_leave:(unit -> unit) -> ?opacity:float -> ?opacity_signal:float Signal.signal -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `tree_item ] el val card : ?key:string -> ?gap:int -> @@ -847,7 +876,7 @@ val card : ?on_pointer_leave:(unit -> unit) -> ?opacity:float -> ?opacity_signal:float Signal.signal -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `tree_item ] el val alert : ?key:string -> ?grow:float -> @@ -988,7 +1017,7 @@ val box : ?flex_wrap:flex_wrap -> ?inert:bool -> ?inert_signal:bool Signal.signal -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `tree_item ] el val scroll : ?virtual_owner:Lui_virtual.owner -> ?key:string -> @@ -1153,7 +1182,7 @@ val virtual_list : ?opacity:float -> ?opacity_signal:float Signal.signal -> ?list_marker:list_marker -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `tree_item ] el val tabs : ?key:string -> ?gap:int -> @@ -1230,7 +1259,7 @@ val bottom_tab : ?on_pointer_down:(pointer_detail -> unit) -> ?on_pointer_up:(pointer_detail -> unit) -> t list -> bottom_tab_el val button_group : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -1267,9 +1296,9 @@ val button_group : ?on_appear:(unit -> unit) -> ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> ?label:string -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val toggle_group : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -1306,7 +1335,7 @@ val toggle_group : ?on_appear:(unit -> unit) -> ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> ?label:string -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val breadcrumb : ?key:string -> ?gap:int -> @@ -1739,7 +1768,7 @@ val spacer : ?on_appear:(unit -> unit) -> ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> - ?transition:string -> nothing list -> t + ?transition:string -> nothing list -> [< `general | `toolbar_item ] el val spinner : ?key:string -> ?grow:float -> @@ -1824,7 +1853,7 @@ val icon : val text : ?role:text_role -> ?truncate:bool -> - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -1879,7 +1908,7 @@ val text : ?on_pointer_down:(pointer_detail -> unit) -> ?on_pointer_up:(pointer_detail -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val heading : ?role:text_role -> ?truncate:bool -> @@ -2069,7 +2098,7 @@ val kbd : (** A text button. [text] is the initial value; [text_signal], when supplied, wins. Children remain supported. Use [icon_button] for icon-only content. *) val button : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -2133,12 +2162,12 @@ val button : ?tooltip_signal:string Signal.signal -> ?shortcut_hint:string -> ?shortcut_hint_signal:string Signal.signal -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el (** An icon-only button with a mandatory accessible [label]. Uses the same wire kind, defaults, events and children slot as [button]. *) val icon_button : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -2200,9 +2229,9 @@ val icon_button : ?tooltip_signal:string Signal.signal -> ?shortcut_hint:string -> ?shortcut_hint_signal:string Signal.signal -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val toggle_button : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2256,9 +2285,9 @@ val toggle_button : ?on_toggle:(bool -> unit) -> ?on_long_press:(unit -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val checkbox : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -2309,9 +2338,9 @@ val checkbox : ?on_toggle:(bool -> unit) -> ?on_toggle_detail:(toggle_detail -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val switch_ : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2356,9 +2385,9 @@ val switch_ : ?disabled_signal:bool Signal.signal -> ?on_toggle:(bool -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val toggle : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2403,9 +2432,9 @@ val toggle : ?disabled_signal:bool Signal.signal -> ?on_toggle:(bool -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val radio_group : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2439,7 +2468,7 @@ val radio_group : ?on_appear:(unit -> unit) -> ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> label:string -> - ?transition:string -> radio_el list -> t + ?transition:string -> radio_el list -> [< `general | `toolbar_item ] el val radio : ?key:string -> ?gap:int -> @@ -2659,7 +2688,7 @@ val divider : ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> ?orientation:orientation -> - ?transition:string -> nothing list -> t + ?transition:string -> nothing list -> [< `general | `toolbar_item | `dropdown_menu_item ] el val separator : ?key:string -> ?grow:float -> @@ -2695,12 +2724,12 @@ val separator : ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> ?orientation:orientation -> - ?transition:string -> nothing list -> t + ?transition:string -> nothing list -> [< `general | `toolbar_item | `dropdown_menu_item ] el (* Text-entry constructors can opt into Submit on focus loss with [submit_on_blur]. Unfinished composition never submits on blur. *) val text_field : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2751,9 +2780,9 @@ val text_field : ?on_submit:(unit -> unit) -> ?on_navigate:(navigation -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val secure_field : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2804,9 +2833,9 @@ val secure_field : ?on_submit:(unit -> unit) -> ?on_navigate:(navigation -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val input : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2858,9 +2887,9 @@ val input : ?on_navigate:(navigation -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> ?kind:input_kind -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val search_field : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -2911,7 +2940,7 @@ val search_field : ?on_submit:(unit -> unit) -> ?on_navigate:(navigation -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val textarea : ?key:string -> ?grow:float -> @@ -2985,7 +3014,7 @@ val input_group_actions : ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> t list -> input_group_actions_el val select : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?gap:int -> ?grow:float -> @@ -3035,9 +3064,9 @@ val select : ?on_pointer_down:(pointer_detail -> unit) -> ?on_pointer_up:(pointer_detail -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el val combobox : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?gap:int -> ?grow:float -> @@ -3090,7 +3119,7 @@ val combobox : ?on_pointer_down:(pointer_detail -> unit) -> ?on_pointer_up:(pointer_detail -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item ] el (** Menu surface mounted in the popup portal. Anchoring is either implicit — the element under the menu's retained parent ([~anchor], @@ -3099,7 +3128,7 @@ val combobox : like {!Lui_elements.popover}, with no DOM anchor required. [~at] and [~anchor] are mutually exclusive (rejected at validation). *) val dropdown_menu : - ?style:Slot_style.t -> + ?style:Slot_style.surface_caps Slot_style.t -> ?key:string -> ?gap:int -> ?grow:float -> @@ -3136,13 +3165,10 @@ val dropdown_menu : ?on_appear:(unit -> unit) -> ?on_pointer_enter:(unit -> unit) -> ?on_pointer_leave:(unit -> unit) -> - ?at:float * float -> - ?at_signal:(float * float) Signal.signal -> - ?anchor:anchor -> - ?anchor_alignment:anchor_alignment -> - ?anchor_offset:float -> + ?target:dropdown_target -> + ?target_signal:dropdown_target Signal.signal -> ?on_dismiss:(unit -> unit) -> - ?transition:string -> dropdown_menu_item_el list -> dropdown_menu_el + ?transition:string -> dropdown_menu_item_el list -> [< `general | `dropdown_menu ] el val context_menu : ?key:string -> ?accessibility_identifier:string -> @@ -3166,8 +3192,9 @@ val menu_trigger : ?icon_signal:icon Signal.signal -> ?label:string -> ?disabled:bool -> - ?disabled_signal:bool Signal.signal -> dropdown_menu_el -> t + ?disabled_signal:bool Signal.signal -> dropdown_menu_el -> [< `general | `toolbar_item | `dropdown_menu_item ] el val menu : + ?style:Slot_style.surface_caps Slot_style.t -> ?key:string -> ?accessibility_identifier:string -> ?foreground:string -> @@ -3181,15 +3208,16 @@ val menu : ?label:string -> ?disabled:bool -> ?disabled_signal:bool Signal.signal -> - ?on_dismiss:(unit -> unit) -> dropdown_menu_item_el list -> t + ?on_dismiss:(unit -> unit) -> dropdown_menu_item_el list -> [< `general | `toolbar_item ] el val submenu : + ?style:Slot_style.surface_caps Slot_style.t -> ?key:string -> ?text:string -> ?icon:icon -> ?label:string -> ?disabled:bool -> ?disabled_signal:bool Signal.signal -> - ?on_dismiss:(unit -> unit) -> dropdown_menu_item_el list -> t + ?on_dismiss:(unit -> unit) -> dropdown_menu_item_el list -> [< `general | `dropdown_menu_item ] el val dialog : ?key:string -> ?gap:int -> @@ -3368,6 +3396,7 @@ val file_picker : covers data-keep-selection). [~on_dismiss] fires on outside-press or Escape while open. *) val popover : + ?style:Slot_style.surface_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -3452,7 +3481,7 @@ val accordion : ?on_toggle:(bool -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> t list -> t val menu_item : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -3513,7 +3542,7 @@ val menu_item : ?tooltip_signal:string Signal.signal -> ?shortcut_hint:string -> ?shortcut_hint_signal:string Signal.signal -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `toolbar_item | `dropdown_menu_item ] el val list_item : ?key:string -> ?main:main_alignment -> @@ -3577,7 +3606,7 @@ val list_item : ?on_pointer_up:(pointer_detail -> unit) -> ?on_context_menu:(pointer_detail -> unit) -> ?list_marker:list_marker -> - ?transition:string -> t list -> t + ?transition:string -> t list -> [< `general | `list_section_item | `tree_item ] el (** A named group of rows inside a {!list}: [~header]/[~footer] take any element and mount it in a dedicated slot node, [~key] sets both the @@ -3888,7 +3917,7 @@ val themed : ?mode_signal:Lui_ui.theme_mode Signal.signal -> t -> t val toolbar_button : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -3957,7 +3986,7 @@ val toolbar_button : (** An icon-only button with a mandatory accessible [label]. Uses the same wire kind, defaults, events and children slot as [button]. *) val toolbar_icon_button : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -4021,7 +4050,7 @@ val toolbar_icon_button : ?shortcut_hint_signal:string Signal.signal -> ?transition:string -> t list -> toolbar_el val toolbar_toggle_button : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4077,7 +4106,7 @@ val toolbar_toggle_button : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_button_group : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -4116,7 +4145,7 @@ val toolbar_button_group : ?on_pointer_leave:(unit -> unit) -> ?label:string -> ?transition:string -> t list -> toolbar_el val toolbar_toggle_group : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -4155,7 +4184,7 @@ val toolbar_toggle_group : ?on_pointer_leave:(unit -> unit) -> ?label:string -> ?transition:string -> t list -> toolbar_el val toolbar_checkbox : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -4208,7 +4237,7 @@ val toolbar_checkbox : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_switch : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4255,7 +4284,7 @@ val toolbar_switch : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_toggle : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4302,7 +4331,7 @@ val toolbar_toggle : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_radio_group : - ?style:Slot_style.t -> + ?style:Slot_style.base Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4338,7 +4367,7 @@ val toolbar_radio_group : ?on_pointer_leave:(unit -> unit) -> label:string -> ?transition:string -> radio_el list -> toolbar_el val toolbar_select : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?gap:int -> ?grow:float -> @@ -4390,7 +4419,7 @@ val toolbar_select : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_combobox : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?gap:int -> ?grow:float -> @@ -4452,7 +4481,7 @@ val toolbar_combobox : like {!Lui_elements.popover}, with no DOM anchor required. [~at] and [~anchor] are mutually exclusive (rejected at validation). *) val toolbar_text_field : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4505,7 +4534,7 @@ val toolbar_text_field : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_secure_field : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4558,7 +4587,7 @@ val toolbar_secure_field : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_input : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4612,7 +4641,7 @@ val toolbar_input : ?kind:input_kind -> ?transition:string -> t list -> toolbar_el val toolbar_search_field : - ?style:Slot_style.t -> + ?style:Slot_style.typography_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4665,7 +4694,7 @@ val toolbar_search_field : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_menu_item : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -4817,7 +4846,7 @@ val toolbar_divider : val toolbar_text : ?role:text_role -> ?truncate:bool -> - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?grow:float -> ?padding:int -> @@ -4874,6 +4903,7 @@ val toolbar_text : ?on_context_menu:(pointer_detail -> unit) -> ?transition:string -> t list -> toolbar_el val toolbar_menu : + ?style:Slot_style.surface_caps Slot_style.t -> ?key:string -> ?accessibility_identifier:string -> ?foreground:string -> @@ -4928,7 +4958,7 @@ val toolbar_separator : (* Text-entry constructors can opt into Submit on focus loss with [submit_on_blur]. Unfinished composition never submits on blur. *) val dropdown_menu_item : - ?style:Slot_style.t -> + ?style:Slot_style.text_caps Slot_style.t -> ?key:string -> ?gap:int -> ?main:main_alignment -> @@ -5007,6 +5037,7 @@ val dropdown_menu_trigger : ?disabled:bool -> ?disabled_signal:bool Signal.signal -> dropdown_menu_el -> dropdown_menu_item_el val dropdown_menu_submenu : + ?style:Slot_style.surface_caps Slot_style.t -> ?key:string -> ?text:string -> ?icon:icon -> @@ -5469,9 +5500,7 @@ val tree_list_item : ?list_marker:list_marker -> ?transition:string -> t list -> tree_el -(** A named group of rows inside a {!list}: [~header]/[~footer] take any - element and mount it in a dedicated slot node, [~key] sets both the - reload key and the wire [key] identity used by scroll targeting. *) +(** Virtualized tree container alias for {!virtual_list}. *) val tree_virtual_list : ?viewport:Lui_virtual.source -> ?key:string -> diff --git a/src/lui_json_view.ml b/src/lui_json_view.ml index 2fd0064b9..9ccb86a1a 100644 --- a/src/lui_json_view.ml +++ b/src/lui_json_view.ml @@ -53,14 +53,22 @@ let props_of fields = (* ---------- enum decoders (unknown -> None, never raise) ---------- *) +let diagnostic message = Printf.eprintf "LUI JSON view: %s\n%!" message + +let unknown_enum property value = + diagnostic + (Printf.sprintf "property=%s reason=unknown-enum value=%S fallback=none" + property value); + None + let cursor_opt = function | Some "default" -> Some `default | Some "pointer" -> Some `pointer | Some "text" -> Some `text | None -> None - | Some _ -> invalid_arg "Invalid cursor" + | Some value -> unknown_enum "cursor" value let user_select_opt = function | Some "none" -> Some `none | Some "text" -> Some `text | None -> None - | Some _ -> invalid_arg "Invalid user_select" + | Some value -> unknown_enum "user-select" value let variant_opt = function | Some "primary" -> Some `primary @@ -69,20 +77,23 @@ let variant_opt = function | Some "ghost" -> Some `ghost | Some "destructive" -> Some `destructive | Some "default" -> Some `default - | _ -> None + | None -> None + | Some value -> unknown_enum "variant" value let button_size_opt = function | Some "sm" -> Some `sm | Some "lg" -> Some `lg | Some "default" -> Some `default - | _ -> None + | None -> None + | Some value -> unknown_enum "size" value let control_size_opt = function | Some "sm" -> Some `sm | Some "lg" -> Some `lg | Some "icon" -> Some `icon | Some "default" -> Some `default - | _ -> None + | None -> None + | Some value -> unknown_enum "size" value let cell_size_opt = function | Some "heading" -> Some `heading @@ -94,45 +105,52 @@ let main_opt = function | Some ("end" | "end_") -> Some `end_ | Some ("space-between" | "space_between") -> Some `space_between | Some "start" -> Some `start - | _ -> None + | None -> None + | Some value -> unknown_enum "main" value let cross_opt = function | Some "stretch" -> Some `stretch | Some "start" -> Some `start | Some "center" -> Some `center | Some ("end" | "end_") -> Some `end_ - | _ -> None + | None -> None + | Some value -> unknown_enum "cross" value let text_align_opt = function | Some "center" -> Some `center | Some ("end" | "end_") -> Some `end_ | Some "start" -> Some `start - | _ -> None + | None -> None + | Some value -> unknown_enum "text-alignment" value let orientation_opt = function | Some "vertical" -> Some `vertical | Some "horizontal" -> Some `horizontal - | _ -> None + | None -> None + | Some value -> unknown_enum "orientation" value let icon_placement_opt = function | Some "trailing" -> Some `trailing | Some "top" -> Some `top | Some "leading" -> Some `leading - | _ -> None + | None -> None + | Some value -> unknown_enum "icon-placement" value let anchor_opt = function | Some "above" -> Some `above | Some "below" -> Some `below | Some "left" -> Some `left | Some "right" -> Some `right - | _ -> None + | None -> None + | Some value -> unknown_enum "anchor" value let anchor_align_opt = function | Some "start" -> Some `start | Some "center" -> Some `center | Some ("end" | "end_") -> Some `end_ | Some "stretch" -> Some `stretch - | _ -> None + | None -> None + | Some value -> unknown_enum "anchor-alignment" value let frame_axes_opt = function | Some "horizontal" -> Some `horizontal @@ -141,27 +159,31 @@ let frame_axes_opt = function | Some "min-horizontal" -> Some `min_horizontal | Some "min-vertical" -> Some `min_vertical | Some "min-both" -> Some `min_both - | _ -> None + | None -> None + | Some value -> unknown_enum "container-relative-frame" value let resize_easing_opt = function | Some "linear" -> Some `linear | Some "standard" -> Some `standard | Some "emphasized" -> Some `emphasized | Some "spring" -> Some `spring - | _ -> None + | None -> None + | Some value -> unknown_enum "resize-easing" value let role_opt = function | Some "treeitem" -> Some `treeitem | Some "navigation" -> Some `navigation | Some "navigation-heading" -> Some `navigation_heading - | _ -> None + | None -> None + | Some value -> unknown_enum "role" value let edge_opt = function | Some "top" -> Some `top | Some "bottom" -> Some `bottom | Some "leading" -> Some `leading | Some "trailing" -> Some `trailing - | _ -> None + | None -> None + | Some value -> unknown_enum "edge" value let alignment_opt = function | Some "top-leading" -> Some `top_leading @@ -173,7 +195,8 @@ let alignment_opt = function | Some "bottom-leading" -> Some `bottom_leading | Some "bottom" -> Some `bottom | Some "bottom-trailing" -> Some `bottom_trailing - | _ -> None + | None -> None + | Some value -> unknown_enum "alignment" value (* schema icon names; unknown -> `app (host-registered icon) *) let icon_of_string = function @@ -336,7 +359,7 @@ let font_style_opt = function | Some "italic" -> Some `italic | Some "oblique" -> Some `oblique | None -> None - | Some _ -> invalid_arg "Invalid font_style" + | Some value -> unknown_enum "font-style" value let white_space_opt = function | Some "normal" -> Some `normal @@ -344,27 +367,27 @@ let white_space_opt = function | Some "pre-wrap" -> Some `pre_wrap | Some "pre-line" -> Some `pre_line | None -> None - | Some _ -> invalid_arg "Invalid white_space" + | Some value -> unknown_enum "white-space" value let text_overflow_opt = function | Some "clip" -> Some `clip | Some "ellipsis" -> Some `ellipsis | None -> None - | Some _ -> invalid_arg "Invalid text_overflow" + | Some value -> unknown_enum "text-overflow" value let overflow_opt = function | Some "visible" -> Some `visible | Some "hidden" -> Some `hidden | Some "auto" -> Some `auto | None -> None - | Some _ -> invalid_arg "Invalid overflow" + | Some value -> unknown_enum "overflow" value let sheet_sizing_opt = function | Some "form" -> Some `form | Some "fitted" -> Some `fitted | Some "page" -> Some `page | None -> None - | Some _ -> invalid_arg "Invalid sheet_sizing" + | Some value -> unknown_enum "sizing" value let toolbar_placement_opt = function | Some "automatic" -> Some `automatic @@ -380,14 +403,13 @@ let toolbar_placement_opt = function | Some "top-bar-leading" -> Some `top_bar_leading | Some "top-bar-trailing" -> Some `top_bar_trailing | None -> None - | Some _ -> invalid_arg "Invalid toolbar_placement" + | Some value -> unknown_enum "placement" value let heading_level_opt = function | Some 1 -> Some `h1 | Some 2 -> Some `h2 | Some 3 -> Some `h3 | Some 4 -> Some `h4 | Some 5 -> Some `h5 | Some 6 -> Some `h6 - | None -> None | Some _ -> invalid_arg "Invalid heading level" - -let diagnostic message = Printf.eprintf "LUI JSON view: %s\n%!" message + | None -> None + | Some value -> unknown_enum "level" (string_of_int value) let popover_target_prop props = let target = v_str props "anchor-target" in @@ -415,6 +437,21 @@ let popover_target_prop props = | None, None -> E.Cover | _ -> diagnostic "incomplete point positioning falls back to Cover"; E.Cover +let dropdown_target_prop props = + let x = v_float props "x" and y = v_float props "y" in + match anchor_opt (v_str props "anchor") with + | Some side -> + if x <> None || y <> None then diagnostic "anchor wins over point positioning"; + Some (E.Menu_anchor { + side; + align = Option.value (anchor_align_opt (v_str props "anchor-alignment")) ~default:`start; + offset = Option.value (v_float props "anchor-offset") ~default:0. }) + | None -> + match x, y with + | Some x, Some y -> Some (E.Menu_at (x, y)) + | None, None -> None + | _ -> diagnostic "incomplete point positioning falls back to Menu_default"; None + let split_sizing_prop props = match v_float props "first-width", v_float props "value" with | Some width, value -> @@ -438,33 +475,51 @@ let required name = function | None -> invalid_arg ("Lui_json_view: missing " ^ name) (* ---------- element dispatch ---------- *) -let slot_style kind props = +let slot_style_base props : E.Slot_style.base E.Slot_style.t = E.Slot_style.make - ?font_size:(if P.property_supported kind P.FontSize then (v_str props "font-size") else None) - ?font_weight:(if P.property_supported kind P.FontWeight then (v_int props "font-weight") else None) - ?font_family:(if P.property_supported kind P.FontFamily then (v_str props "font-family") else None) - ?font_style:(if P.property_supported kind P.FontStyle then (font_style_opt (v_str props "font-style")) else None) - ?line_height:(if P.property_supported kind P.LineHeight then (v_str props "line-height") else None) - ?letter_spacing:(if P.property_supported kind P.LetterSpacing then (v_float props "letter-spacing") else None) - ?text_decoration:(if P.property_supported kind P.TextDecoration then (v_str props "text-decoration") else None) - ?white_space:(if P.property_supported kind P.WhiteSpace then (white_space_opt (v_str props "white-space")) else None) - ?text_overflow:(if P.property_supported kind P.TextOverflow then (text_overflow_opt (v_str props "text-overflow")) else None) - ?overflow:(if P.property_supported kind P.Overflow then (overflow_opt (v_str props "overflow")) else None) - ?hover_background:(if P.property_supported kind P.HoverBackground then (v_str props "hover-background") else None) - ?hover_foreground:(if P.property_supported kind P.HoverForeground then (v_str props "hover-foreground") else None) - ?focus_within_background:(if P.property_supported kind P.FocusWithinBackground then (v_str props "focus-within-background") else None) - ?focus_within_border:(if P.property_supported kind P.FocusWithinBorder then (v_str props "focus-within-border") else None) - ?focus_shadow:(if P.property_supported kind P.FocusShadow then (v_str props "focus-shadow") else None) - ?shadow:(if P.property_supported kind P.Shadow then (v_str props "shadow") else None) - ?collision_padding:(if P.property_supported kind P.CollisionPadding then (v_float props "collision-padding") else None) - ?cursor:(if P.property_supported kind P.Cursor then (cursor_opt (v_str props "cursor")) else None) - ?user_select:(if P.property_supported kind P.UserSelect then (user_select_opt (v_str props "user-select")) else None) - ?disabled_opacity:(if P.property_supported kind P.DisabledOpacity then (v_float props "disabled-opacity") else None) - ?pressed_opacity:(if P.property_supported kind P.PressedOpacity then (v_float props "pressed-opacity") else None) - ?hover_opacity:(if P.property_supported kind P.HoverOpacity then (v_float props "hover-opacity") else None) - ?max_height_viewport:(if P.property_supported kind P.MaxHeightViewport then (v_float props "max-height-viewport") else None) + ?overflow:(overflow_opt (v_str props "overflow")) + ?hover_background:(v_str props "hover-background") + ?hover_foreground:(v_str props "hover-foreground") + ?focus_within_background:(v_str props "focus-within-background") + ?focus_within_border:(v_str props "focus-within-border") + ?focus_shadow:(v_str props "focus-shadow") + ?shadow:(v_str props "shadow") + ?cursor:(cursor_opt (v_str props "cursor")) + ?disabled_opacity:(v_float props "disabled-opacity") + ?pressed_opacity:(v_float props "pressed-opacity") + ?hover_opacity:(v_float props "hover-opacity") + ?max_height_viewport:(v_float props "max-height-viewport") () +let slot_style_typography props : E.Slot_style.typography_caps E.Slot_style.t = + E.Slot_style.merge + (slot_style_base props :> E.Slot_style.typography_caps E.Slot_style.t) + (E.Slot_style.typography + ?font_size:(v_str props "font-size") + ?font_weight:(v_int props "font-weight") + ?font_family:(v_str props "font-family") + ?font_style:(font_style_opt (v_str props "font-style")) + ?line_height:(v_str props "line-height") + ?letter_spacing:(v_float props "letter-spacing") + ?text_decoration:(v_str props "text-decoration") + ?user_select:(user_select_opt (v_str props "user-select")) + ()) + +let slot_style_text props : E.Slot_style.text_caps E.Slot_style.t = + E.Slot_style.merge + (slot_style_typography props :> E.Slot_style.text_caps E.Slot_style.t) + (E.Slot_style.text_flow + ?white_space:(white_space_opt (v_str props "white-space")) + ?text_overflow:(text_overflow_opt (v_str props "text-overflow")) + ()) + +let slot_style_surface props : E.Slot_style.surface_caps E.Slot_style.t = + E.Slot_style.merge + (slot_style_typography props :> E.Slot_style.surface_caps E.Slot_style.t) + (E.Slot_style.collision + ?collision_padding:(v_float props "collision-padding") + ()) + let rec element ~emit (node : value) : E.t = match node with | Obj fields -> ( @@ -529,10 +584,10 @@ let rec element ~emit (node : value) : E.t = ?key:s.s_key ?grow:s.s_grow ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~label:(required "bottom_tabs.label" (v_str props "label")) (list_bottom_tab_el ~emit child_nodes) | "button-group" -> E.button_group - ~style:(slot_style P.ButtonGroup props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "toggle-group" -> E.toggle_group - ~style:(slot_style P.ToggleGroup props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "breadcrumb" -> E.breadcrumb ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) @@ -568,7 +623,7 @@ let rec element ~emit (node : value) : E.t = ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~name:(required "icon.name" (icon_prop props "name")) ?size:(control_size_opt (v_str props "size")) ?point_size:(v_int props "point-size") ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") [] | "text" -> E.text - ~style:(slot_style P.Text props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?value:(v_str props "value") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?line_clamp:(v_int props "line-clamp") ?on_press:(ev "press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_text props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?value:(v_str props "value") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?line_clamp:(v_int props "line-clamp") ?on_press:(ev "press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "heading" -> E.heading ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?level:(heading_level_opt (v_int props "level")) ?value:(v_str props "value") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?font_size:(v_str props "font-size") ?font_weight:(v_int props "font-weight") ?line_height:(v_str props "line-height") ?letter_spacing:(v_float props "letter-spacing") ?font_family:(v_str props "font-family") ?font_style:(font_style_opt (v_str props "font-style")) ?text_decoration:(v_str props "text-decoration") ?white_space:(white_space_opt (v_str props "white-space")) ?line_clamp:(v_int props "line-clamp") ?text_overflow:(text_overflow_opt (v_str props "text-overflow")) ?overflow:(overflow_opt (v_str props "overflow")) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) @@ -591,23 +646,23 @@ let rec element ~emit (node : value) : E.t = E.icon_button ~icon:(required "icon_button.icon" (icon_prop props "icon")) ~label:(required "icon_button.label" (v_str props "label")) ?size:(control_size_opt (v_str props "size")) in - make ~style:(slot_style P.Button props) + make ~style:(slot_style_text props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?variant:(variant_opt (v_str props "variant")) ?icon_placement:(icon_placement_opt (v_str props "icon-placement")) ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?selected:(v_bool props "selected") ?autofocus:(v_bool props "autofocus") ?disabled:(v_bool props "disabled") ?on_navigate:(ev_navigate "navigate" emit props) ?on_press:(ev "press" emit props) ?on_long_press:(ev "long-press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "toggle-button" -> E.toggle_button - ~style:(slot_style P.ToggleButton props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?icon:(icon_prop props "icon") ?icon_placement:(icon_placement_opt (v_str props "icon-placement")) ?label:(v_str props "label") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?autofocus:(v_bool props "autofocus") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?on_long_press:(ev "long-press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_text props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?icon:(icon_prop props "icon") ?icon_placement:(icon_placement_opt (v_str props "icon-placement")) ?label:(v_str props "label") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?autofocus:(v_bool props "autofocus") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?on_long_press:(ev "long-press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "checkbox" -> E.checkbox - ~style:(slot_style P.Checkbox props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "switch" -> E.switch_ - ~style:(slot_style P.SwitchControl props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "toggle" -> E.toggle - ~style:(slot_style P.Toggle props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "radio-group" -> E.radio_group - ~style:(slot_style P.RadioGroup props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~label:(required "radio_group.label" (v_str props "label")) ?transition:(v_str props "transition") (list_radio_el ~emit child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~label:(required "radio_group.label" (v_str props "label")) ?transition:(v_str props "transition") (list_radio_el ~emit child_nodes) | "slider" -> E.slider ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~value:(required "slider.value" (v_float props "value")) ~label:(required "slider.label" (v_str props "label")) ?disabled:(v_bool props "disabled") ?on_change:(ev_value "change" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) @@ -625,16 +680,16 @@ let rec element ~emit (node : value) : E.t = ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?orientation:(orientation_opt (v_str props "orientation")) ?transition:(v_str props "transition") [] | "text-field" -> E.text_field - ~style:(slot_style P.TextField props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "secure-field" -> E.secure_field - ~style:(slot_style P.SecureField props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "input" -> E.input - ~style:(slot_style P.Input props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "search-field" -> E.search_field - ~style:(slot_style P.SearchField props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "textarea" -> E.textarea ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_enter:(v_bool props "submit-on-enter") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) @@ -643,10 +698,10 @@ let rec element ~emit (node : value) : E.t = ?key:s.s_key ?grow:s.s_grow ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?accessibility_identifier:(v_str props "accessibility-identifier") ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?actions:(actions_of ~emit child_nodes) (body_child ~emit child_nodes) | "select" -> E.select - ~style:(slot_style P.Select props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "combobox" -> E.combobox - ~style:(slot_style P.Combobox props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "dropdown-menu" -> E.dropdown_menu_view (build_dropdown_menu ~emit props child_nodes) | "context-menu" -> @@ -657,10 +712,10 @@ let rec element ~emit (node : value) : E.t = ?key:s.s_key ?accessibility_identifier:(v_str props "accessibility-identifier") ?foreground:s.s_fg ?style_class:s.s_class ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") (single_dropdown_menu ~emit child_nodes) | "menu" -> E.menu - ?key:s.s_key ?accessibility_identifier:(v_str props "accessibility-identifier") ?foreground:s.s_fg ?style_class:s.s_class ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) + ~style:(slot_style_surface props) ?key:s.s_key ?accessibility_identifier:(v_str props "accessibility-identifier") ?foreground:s.s_fg ?style_class:s.s_class ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) | "submenu" -> E.submenu - ?key:s.s_key ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) + ~style:(slot_style_surface props) ?key:s.s_key ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) | "dialog" -> E.dialog ?key:s.s_key ?gap:s.s_gap ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?description:(v_str props "description") ?on_dismiss:(ev "dismiss" emit props) (List.map (element ~emit) child_nodes) @@ -678,7 +733,7 @@ let rec element ~emit (node : value) : E.t = ?key:s.s_key ?accessibility_identifier:(v_str props "accessibility-identifier") ?on_appear:(ev "appear" emit props) ?types:(v_str props "types") ?multiple:(v_bool props "multiple") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) ?accept:(v_str props "accept") ?directory:(v_bool props "directory") (List.map (element ~emit) child_nodes) | "popover" -> E.popover - ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?opacity:(v_float props "opacity") ~target:(popover_target_prop props) ?available_height:(v_float props "available-height") ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_surface props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?opacity:(v_float props "opacity") ~target:(popover_target_prop props) ?available_height:(v_float props "available-height") ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "toolbar" -> E.toolbar ?key:s.s_key ?gap:s.s_gap ?padding:s.s_pad ?background:s.s_bg ?border_width:s.s_border_width ?corner_radius:s.s_radius ?height:s.s_height ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?orientation:(orientation_opt (v_str props "orientation")) ~label:(required "toolbar.label" (v_str props "label")) ?toolbar_gap:(v_int props "toolbar-gap") ?toolbar_class:(v_str props "toolbar-class") ?placement:(toolbar_placement_opt (v_str props "placement")) (list_toolbar_el ~emit child_nodes) @@ -687,7 +742,7 @@ let rec element ~emit (node : value) : E.t = ?key:s.s_key ?height:s.s_height ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~title:(required "accordion.title" (v_str props "text")) ?selected:(v_bool props "selected") ?accordion_height:(v_int props "accordion-height") ?on_toggle:(ev_toggle "toggle" emit props) (List.map (element ~emit) child_nodes) | "menu-item" -> E.menu_item - ~style:(slot_style P.MenuItem props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?selection_placement:(icon_placement_opt (v_str props "selection-placement")) ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_text props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?selection_placement:(icon_placement_opt (v_str props "selection-placement")) ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) | "list-item" -> E.list_item ?key:s.s_key ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?icon_placement:(icon_placement_opt (v_str props "icon-placement")) ?role:(role_opt (v_str props "role")) ?tree_level:(v_int props "tree-level") ?expanded:(v_bool props "expanded") ?selected:(v_bool props "selected") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_long_press:(ev "long-press" emit props) ?on_double_press:(ev "double-press" emit props) ?on_submit:(ev "submit" emit props) ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) @@ -916,7 +971,7 @@ and build_timeline_item ~emit props _child_nodes : E.timeline_item_el = and build_dropdown_menu ~emit props child_nodes : E.dropdown_menu_el = let s = sty_of props in E.dropdown_menu - ~style:(slot_style P.DropdownMenu props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?anchor:(anchor_opt (v_str props "anchor")) ?anchor_alignment:(anchor_align_opt (v_str props "anchor-alignment")) ?anchor_offset:(v_float props "anchor-offset") ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (list_dropdown_menu_item_el ~emit child_nodes) + ~style:(slot_style_surface props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?target:(dropdown_target_prop props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (list_dropdown_menu_item_el ~emit child_nodes) and build_toolbar_button ~emit props child_nodes : E.toolbar_el = let s = sty_of props in @@ -929,78 +984,78 @@ let make = match v_str props "text" with E.toolbar_icon_button ~icon:(required "icon_button.icon" (icon_prop props "icon")) ~label:(required "icon_button.label" (v_str props "label")) ?size:(control_size_opt (v_str props "size")) in - make ~style:(slot_style P.Button props) + make ~style:(slot_style_text props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?variant:(variant_opt (v_str props "variant")) ?icon_placement:(icon_placement_opt (v_str props "icon-placement")) ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?selected:(v_bool props "selected") ?autofocus:(v_bool props "autofocus") ?disabled:(v_bool props "disabled") ?on_navigate:(ev_navigate "navigate" emit props) ?on_press:(ev "press" emit props) ?on_long_press:(ev "long-press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_toggle_button ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_toggle_button - ~style:(slot_style P.ToggleButton props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?icon:(icon_prop props "icon") ?icon_placement:(icon_placement_opt (v_str props "icon-placement")) ?label:(v_str props "label") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?autofocus:(v_bool props "autofocus") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?on_long_press:(ev "long-press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_text props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?icon:(icon_prop props "icon") ?icon_placement:(icon_placement_opt (v_str props "icon-placement")) ?label:(v_str props "label") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?autofocus:(v_bool props "autofocus") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?on_long_press:(ev "long-press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_button_group ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_button_group - ~style:(slot_style P.ButtonGroup props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_toggle_group ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_toggle_group - ~style:(slot_style P.ToggleGroup props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_checkbox ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_checkbox - ~style:(slot_style P.Checkbox props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_switch ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_switch - ~style:(slot_style P.SwitchControl props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_toggle ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_toggle - ~style:(slot_style P.Toggle props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?checked:(v_bool props "checked") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_toggle:(ev_toggle "toggle" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_radio_group ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_radio_group - ~style:(slot_style P.RadioGroup props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~label:(required "radio_group.label" (v_str props "label")) ?transition:(v_str props "transition") (list_radio_el ~emit child_nodes) + ~style:(slot_style_base props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ~label:(required "radio_group.label" (v_str props "label")) ?transition:(v_str props "transition") (list_radio_el ~emit child_nodes) and build_toolbar_select ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_select - ~style:(slot_style P.Select props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?label:(v_str props "label") ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_combobox ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_combobox - ~style:(slot_style P.Combobox props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?gap:s.s_gap ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_dismiss:(ev "dismiss" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_text_field ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_text_field - ~style:(slot_style P.TextField props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_secure_field ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_secure_field - ~style:(slot_style P.SecureField props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_input ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_input - ~style:(slot_style P.Input props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_search_field ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_search_field - ~style:(slot_style P.SearchField props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_typography props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?placeholder:(v_str props "placeholder") ?label:(v_str props "label") ?autofocus:(v_bool props "autofocus") ?submit_on_blur:(v_bool props "submit-on-blur") ?read_only:(v_bool props "read-only") ?disabled:(v_bool props "disabled") ?on_input:(ev_input "input" emit props) ?on_submit:(ev "submit" emit props) ?on_navigate:(ev_navigate "navigate" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_menu_item ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_menu_item - ~style:(slot_style P.MenuItem props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?selection_placement:(icon_placement_opt (v_str props "selection-placement")) ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_text props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?selection_placement:(icon_placement_opt (v_str props "selection-placement")) ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_menu_trigger ~emit props child_nodes : E.toolbar_el = let s = sty_of props in @@ -1020,12 +1075,12 @@ E.toolbar_divider and build_toolbar_text ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_text - ~style:(slot_style P.Text props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?value:(v_str props "value") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?line_clamp:(v_int props "line-clamp") ?on_press:(ev "press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_text props) ?key:s.s_key ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?value:(v_str props "value") ?text_alignment:(text_align_opt (v_str props "text-alignment")) ?line_clamp:(v_int props "line-clamp") ?on_press:(ev "press" emit props) ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_toolbar_menu ~emit props child_nodes : E.toolbar_el = let s = sty_of props in E.toolbar_menu - ?key:s.s_key ?accessibility_identifier:(v_str props "accessibility-identifier") ?foreground:s.s_fg ?style_class:s.s_class ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) + ~style:(slot_style_surface props) ?key:s.s_key ?accessibility_identifier:(v_str props "accessibility-identifier") ?foreground:s.s_fg ?style_class:s.s_class ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) and build_toolbar_separator ~emit props _child_nodes : E.toolbar_el = let s = sty_of props in @@ -1035,7 +1090,7 @@ E.toolbar_separator and build_dropdown_menu_item ~emit props child_nodes : E.dropdown_menu_item_el = let s = sty_of props in E.dropdown_menu_item - ~style:(slot_style P.MenuItem props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?selection_placement:(icon_placement_opt (v_str props "selection-placement")) ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) + ~style:(slot_style_text props) ?key:s.s_key ?gap:s.s_gap ?main:s.s_main ?cross:s.s_cross ?grow:s.s_grow ?padding:s.s_pad ?padding_horizontal:s.s_pad_h ?padding_vertical:s.s_pad_v ?margin:s.s_margin ?margin_horizontal:s.s_margin_h ?margin_vertical:s.s_margin_v ?margin_top:s.s_margin_top ?margin_right:s.s_margin_right ?margin_bottom:s.s_margin_bottom ?margin_left:s.s_margin_left ?background:s.s_bg ?foreground:s.s_fg ?border_color:s.s_border_color ?border_width:s.s_border_width ?corner_radius:s.s_radius ?width:s.s_width ?height:s.s_height ?min_width:s.s_min_width ?max_width:s.s_max_width ?min_height:s.s_min_height ?max_height:s.s_max_height ?container_relative_frame:(frame_axes_opt (v_str props "container-relative-frame")) ?container_relative_frame_inset:(v_int props "container-relative-frame-inset") ?accessibility_identifier:(v_str props "accessibility-identifier") ?style_class:s.s_class ?on_appear:(ev "appear" emit props) ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?selection_placement:(icon_placement_opt (v_str props "selection-placement")) ?variant:(variant_opt (v_str props "variant")) ?size:(control_size_opt (v_str props "size")) ?selected:(v_bool props "selected") ?checked:(v_bool props "checked") ?disabled:(v_bool props "disabled") ?on_press:(ev "press" emit props) ?tooltip:(v_str props "tooltip") ?shortcut_hint:(v_str props "shortcut-hint") ?transition:(v_str props "transition") (List.map (element ~emit) child_nodes) and build_dropdown_menu_trigger ~emit props child_nodes : E.dropdown_menu_item_el = let s = sty_of props in @@ -1045,7 +1100,7 @@ E.dropdown_menu_trigger and build_dropdown_menu_submenu ~emit props child_nodes : E.dropdown_menu_item_el = let s = sty_of props in E.dropdown_menu_submenu - ?key:s.s_key ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) + ~style:(slot_style_surface props) ?key:s.s_key ?text:(v_str props "text") ?icon:(icon_prop props "icon") ?label:(v_str props "label") ?disabled:(v_bool props "disabled") ?on_dismiss:(ev "dismiss" emit props) (list_dropdown_menu_item_el ~emit child_nodes) and build_dropdown_menu_separator ~emit props _child_nodes : E.dropdown_menu_item_el = let s = sty_of props in diff --git a/src/lui_multi_window.ml b/src/lui_multi_window.ml index f835b4916..d5b802e4b 100644 --- a/src/lui_multi_window.ml +++ b/src/lui_multi_window.ml @@ -104,8 +104,8 @@ let open_window ?view t backend = replaceable, matching the reloadable-app layout. *) let root = Lui_runtime.create_node runtime Lui_protocol.Root in let view_node = - (view surface context (Signal.value t.app_model) send_action) - context None + Lui_elements.mount context + (view surface context (Signal.value t.app_model) send_action) in Lui_runtime.insert_child runtime root view_node 0; surface.surface_root <- root; diff --git a/src/lui_navigation.ml b/src/lui_navigation.ml index 77e9d35c3..a47b3a86d 100644 --- a/src/lui_navigation.ml +++ b/src/lui_navigation.ml @@ -66,7 +66,7 @@ type retained_page = { node : int; context : Lui_ui.ui_context } let navigation_stack ?key ~path_signal ~on_path_change ~destination ~root () : Lui_elements.t = - fun outer parent -> + Lui_elements.custom (fun outer parent -> let apple = Lui_ui.host outer = SwiftUIHost in let node = if apple then Lui_ui.extension outer "navigation-stack" @@ -106,7 +106,7 @@ let navigation_stack ?key ~path_signal ~on_path_change ~destination ~root () : if apple then Lui_ui.extension_property page_context page "entry-id" (StringValue id); (* A real wrapper gives even empty roots/destinations a stable child slot. *) - ignore (Lui_elements.box ~grow:1. [ content ] page_context (Some page)); + ignore (Lui_elements.mount page_context ~parent:page (Lui_elements.box ~grow:1. [ content ])); if apple then Lui_ui.append context node page; let value = { node = page; context = page_context } in Signal.mount page_context.Lui_ui.ui_scope; @@ -207,7 +207,7 @@ let navigation_stack ?key ~path_signal ~on_path_change ~destination ~root () : [] in (* Put the affordance outside the changing content slot. *) - let back_node = back context None in + let back_node = Lui_elements.mount context back in Lui_runtime.insert_child application node back_node 0 end; render ~force:true !current; @@ -237,4 +237,4 @@ let navigation_stack ?key ~path_signal ~on_path_change ~destination ~root () : Hashtbl.clear retained; release root_page; Lui_runtime.unregister_dynamic_segment application segment); - node + node) diff --git a/src/lui_protocol.ml b/src/lui_protocol.ml index 941a03b81..6a8840b44 100644 --- a/src/lui_protocol.ml +++ b/src/lui_protocol.ml @@ -1632,6 +1632,8 @@ let normalize_property_value property value = | PaddingRight | PaddingBottom | PaddingLeft | BorderWidth | CornerRadius | TooltipDelay | DurationValue | ResizeDuration), IntValue number -> IntValue (max 0 number) + | TreeLevel, IntValue number -> + IntValue (max 1 number) | (Opacity | LabelOpacity | HoverOpacity | PressedOpacity | DisabledOpacity), FloatValue number -> let number = if is_finite number then number else begin let name = match property with @@ -1642,6 +1644,18 @@ let normalize_property_value property value = 1. end in FloatValue (max 0. (min 1. number)) + | (CollisionPadding | FirstPaneWidth | AvailableHeight | GrowValue | ShrinkValue), FloatValue number -> + let number = if is_finite number then number else begin + let name = match property with + | CollisionPadding -> "collision-padding" + | FirstPaneWidth -> "first-pane-width" + | AvailableHeight -> "available-height" + | GrowValue -> "grow" + | _ -> "shrink" in + Printf.eprintf "LUI numeric normalization: property=%s reason=non-finite fallback=0\n%!" name; + 0. + end in + FloatValue (max 0. number) | _ -> value let size_properties = [WidthValue; HeightValue; MinWidth; MaxWidth; MinHeight; MaxHeight] diff --git a/src/lui_split.ml b/src/lui_split.ml index b2b589cec..b688a949d 100644 --- a/src/lui_split.ml +++ b/src/lui_split.ml @@ -261,7 +261,7 @@ let split_view ?key ?divider_thickness ?divider_thickness_signal ?animation ?animation_signal ?accessibility_identifier ?accessibility_identifier_signal (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> + Lui_elements.custom (fun context parent -> let node = Lui_ui.extension context "split-view" in Option.iter (Lui_ui.key context node) key; Option.iter @@ -295,11 +295,11 @@ let split_view ?key ?divider_thickness ?divider_thickness_signal ?animation accessibility_identifier_signal; Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let split_branch ?key ~orientation ~ratio ?ratio_signal ?on_ratio_changed (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> + Lui_elements.custom (fun context parent -> let node = Lui_ui.extension context "split-branch" in Option.iter (Lui_ui.key context node) key; Lui_ui.extension_property context node "orientation" @@ -318,14 +318,14 @@ let split_branch ?key ~orientation ~ratio ?ratio_signal ?on_ratio_changed on_ratio_changed; Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let split_pane ?key ~pane_id ?selected ?selected_signal ?focused ?focused_signal ?accessibility_identifier ?on_tab_selected ?on_tab_closed ?on_tab_moved ?on_pane_focused ?on_navigate ?on_split_requested ?on_split_drop ?on_pane_closed (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> + Lui_elements.custom (fun context parent -> let node = Lui_ui.extension context "split-pane" in Option.iter (Lui_ui.key context node) key; Lui_ui.extension_property context node "pane-id" (StringValue pane_id); @@ -376,12 +376,12 @@ let split_pane ?key ~pane_id ?selected ?selected_signal ?focused on_pane_closed; Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) let split_tab ?key ~tab_id ~title ?title_signal ?icon ?icon_signal ?dirty ?dirty_signal ?closable ?accessibility_identifier (children : Lui_elements.t list) : Lui_elements.t = - fun context parent -> + Lui_elements.custom (fun context parent -> let node = Lui_ui.extension context "split-tab" in Option.iter (Lui_ui.key context node) key; Lui_ui.extension_property context node "tab-id" (StringValue tab_id); @@ -420,7 +420,7 @@ let split_tab ?key ~tab_id ~title ?title_signal ?icon ?icon_signal ?dirty accessibility_identifier; Lui_elements.attach context parent node; Lui_elements.mount_children context node children; - node + node) (* The shared controller: owns the split tree as data, applies pointer/keyboard events to it, and renders it back into extension nodes. Platform backends @@ -951,10 +951,11 @@ module Model = struct through [update]. *) let render ?key ?divider_thickness ?animation ~build ~dispatch state : Lui_elements.t = - let with_handler element handle context parent = - let node = element context parent in - Lui_ui.on_event context node handle; - node + let with_handler element handle = + Lui_elements.custom (fun context parent -> + let node = Lui_elements.mount context ?parent element in + Lui_ui.on_event context node handle; + node) in let render_node node = let rec go = function diff --git a/src/lui_tokens.ml b/src/lui_tokens.ml index 1fe7c32b8..5b234fcba 100644 --- a/src/lui_tokens.ml +++ b/src/lui_tokens.ml @@ -19,10 +19,19 @@ let color_value : color -> string = function Printf.sprintf (if value <= 0xffffff then "#%06x" else "#%08x") value | `token value -> if String.trim value = "" then "transparent" else value -let space_value : space -> int = function - | `none -> 0 | `xs -> 4 | `sm -> 8 | `md -> 12 | `lg | `page -> 16 | `xl -> 24 +let space_value_for (os : Lui_protocol.operating_system) : space -> int = + let touch = match os with IOS | AndroidOS -> true | _ -> false in + function + | `none -> 0 + | `xs -> 4 + | `sm -> if touch then 10 else 8 + | `md -> if touch then 16 else 12 + | `lg | `page -> if touch then 20 else 16 + | `xl -> if touch then 28 else 24 | `px value -> max 0 value +let space_value : space -> int = space_value_for GenericOS + let radius_value : radius -> int = function | `none -> 0 | `sm -> 4 | `md -> 6 | `lg -> 8 | `xl -> 12 | `full -> 9999 | `px value -> max 0 value diff --git a/src/lui_tokens.mli b/src/lui_tokens.mli index 7c0e54d7b..8ab533ad1 100644 --- a/src/lui_tokens.mli +++ b/src/lui_tokens.mli @@ -11,5 +11,6 @@ type text_role = [ `display | `title | `headline | `subheadline | `body | `capti val color_value : color -> string val space_value : space -> int +val space_value_for : Lui_protocol.operating_system -> space -> int val radius_value : radius -> int val text_role_value : text_role -> string diff --git a/src/lui_ui_composites.ml b/src/lui_ui_composites.ml index 1c03886c5..dc1c2dd50 100644 --- a/src/lui_ui_composites.ml +++ b/src/lui_ui_composites.ml @@ -1,4 +1,3 @@ -include Lui_ui include Lui_element_combine module Tokens = Lui_tokens @@ -7,41 +6,70 @@ type space = Tokens.space type radius = Tokens.radius type text_role = Tokens.text_role -let hstack ?key ?accessibility_identifier ?(gap = `sm) ?(padding = `none) - ?(cross = `center) ?(main = `start) children = - Lui_elements.row ?key ?accessibility_identifier ~gap:(Tokens.space_value gap) - ~padding:(Tokens.space_value padding) ~cross ~main ~min_width:0 - ~style_class:"hstack" children +let hstack ?key ?accessibility_identifier ?background ?foreground ?border_color + ?corner_radius ?(gap = `sm) ?(padding = `none) ?(cross = `center) + ?(main = `start) children = + Lui_elements.scoped (fun context -> + let os = Lui_ui.platform context in + Lui_elements.row ?key ?accessibility_identifier + ?background:(Option.map Tokens.color_value background) + ?foreground:(Option.map Tokens.color_value foreground) + ?border_color:(Option.map Tokens.color_value border_color) + ?corner_radius:(Option.map Tokens.radius_value corner_radius) + ~gap:(Tokens.space_value_for os gap) + ~padding:(Tokens.space_value_for os padding) + ~cross ~main ~min_width:0 ~style_class:"hstack" children) -let vstack ?key ?accessibility_identifier ?(gap = `md) ?(padding = `none) - ?(cross = `stretch) ?(main = `start) children = - Lui_elements.column ?key ?accessibility_identifier ~gap:(Tokens.space_value gap) - ~padding:(Tokens.space_value padding) ~cross ~main ~min_height:0 - ~style_class:"vstack" children +let vstack ?key ?accessibility_identifier ?background ?foreground ?border_color + ?corner_radius ?(gap = `md) ?(padding = `none) ?(cross = `stretch) + ?(main = `start) children = + Lui_elements.scoped (fun context -> + let os = Lui_ui.platform context in + Lui_elements.column ?key ?accessibility_identifier + ?background:(Option.map Tokens.color_value background) + ?foreground:(Option.map Tokens.color_value foreground) + ?border_color:(Option.map Tokens.color_value border_color) + ?corner_radius:(Option.map Tokens.radius_value corner_radius) + ~gap:(Tokens.space_value_for os gap) + ~padding:(Tokens.space_value_for os padding) + ~cross ~main ~min_height:0 ~style_class:"vstack" children) let nav_bar ?key ~title ?(leading = []) ?(trailing = []) () = Lui_elements.toolbar ?key ~label:title ~placement:`navigation - (leading @ [Lui_elements.toolbar_text ~role:`headline ~value:title []] @ trailing) + (leading @ [Lui_elements.text ~role:`headline ~value:title []] @ trailing) -let page ?key ~title ?navigation ?(actions = []) children = - vstack ?key ~padding:`page - ((match navigation with Some navigation -> [navigation] +let page ?key ?background ?foreground ?(gap = `md) ?(padding = `page) ~title + ?navigation ?(actions = []) children = + vstack ?key ?background ?foreground ~gap ~padding + ((match navigation with + | Some navigation -> [navigation] | None -> [Lui_elements.heading ~role:`title ~value:title []]) @ children @ actions) -let section ?key ?title ?footer children = - vstack ?key - ((match title with None -> [] | Some title -> [Lui_elements.heading ~role:`headline ~value:title []]) - @ children - @ (match footer with None -> [] | Some footer -> - [Lui_elements.paragraph ~role:`footnote ~foreground:(Tokens.color_value `muted_foreground) - ~value:footer []])) +let section ?key ?background ?foreground ?border_color ?corner_radius + ?(gap = `md) ?(padding = `none) ?title ?footer children = + vstack ?key ?background ?foreground ?border_color ?corner_radius ~gap ~padding + ((match title with + | None -> [] + | Some title -> [Lui_elements.heading ~role:`headline ~value:title []]) + @ children + @ (match footer with + | None -> [] + | Some footer -> + [Lui_elements.paragraph ~role:`footnote + ~foreground:(Tokens.color_value `muted_foreground) + ~value:footer []])) + +let form_row ?key child = + Lui_elements.list_section_item ?key [Lui_elements.column [child]] + +let data_row = form_row let form_section ?key ?title ?footer children = Lui_elements.list_section ?key ?header:(Option.map (fun title -> Lui_elements.text ~role:`headline ~value:title []) title) ?footer:(Option.map (fun footer -> Lui_elements.text ~role:`footnote ~value:footer []) footer) - (List.map (fun child -> Lui_elements.list_section_item [Lui_elements.column [child]]) children) + children let form_field ?key ~label ?help ?help_signal ?error ?error_signal control = Lui_elements.scoped (fun context -> @@ -79,20 +107,33 @@ let form_field ?key ~label ?help ?help_signal ?error ?error_signal control = in vstack ?key ~gap:`xs ([Lui_elements.label ~role:`subheadline ~value:label []; control] @ messages)) + let data_list ?key ~label ?empty children = let content = match children, empty with [], Some empty -> [empty] | _ -> children in Lui_elements.list ?key ~style:`inset_grouped [Lui_elements.list_section ~header:(Lui_elements.text ~role:`headline ~value:label []) - (List.map (fun child -> Lui_elements.list_section_item [Lui_elements.column [child]]) content)] + content] let form_sheet ?key ?accessibility_identifier ~title ?on_dismiss ?cancel ?confirm ?confirm_disabled ?confirm_disabled_signal content = - let confirm_disabled = match confirm_disabled_signal with - | Some _ -> confirm_disabled_signal | None -> confirm_disabled - in - Lui_element_combine.form_sheet ?key ?accessibility_identifier ~title ?on_dismiss - ?cancel ?confirm ?confirm_disabled - ~content:[Lui_elements.list ~style:`inset_grouped content] () + match confirm_disabled_signal, confirm_disabled with + | Some signal, _ -> + Lui_element_combine.form_sheet ?key ?accessibility_identifier ~title ?on_dismiss + ?cancel ?confirm ~confirm_disabled:signal + ~content:[Lui_elements.list ~style:`inset_grouped content] () + | None, Some disabled -> + Lui_elements.scoped (fun context -> + let signal = + Signal.own_signal context.Lui_ui.ui_scope + (Signal.constant context.Lui_ui.ui_scheduler disabled) + in + Lui_element_combine.form_sheet ?key ?accessibility_identifier ~title ?on_dismiss + ?cancel ?confirm ~confirm_disabled:signal + ~content:[Lui_elements.list ~style:`inset_grouped content] ()) + | None, None -> + Lui_element_combine.form_sheet ?key ?accessibility_identifier ~title ?on_dismiss + ?cancel ?confirm + ~content:[Lui_elements.list ~style:`inset_grouped content] () let confirmation = confirm_dialog diff --git a/src/lui_ui_composites.mli b/src/lui_ui_composites.mli new file mode 100644 index 000000000..7a6a4d4f4 --- /dev/null +++ b/src/lui_ui_composites.mli @@ -0,0 +1,371 @@ +(** Tier-1 semantic UI composites built from {!Lui_elements} and {!Lui_tokens}. + + Every constructor here returns a declarative {!Lui_elements.el} value — + low-level imperative [int]-returning builders remain under {!Lui_ui} + (aliased as {!Lui.Raw}). *) + +module Tokens = Lui_tokens +type color = Tokens.color +type space = Tokens.space +type radius = Tokens.radius +type text_role = Tokens.text_role + +type action = Lui_element_combine.action = + | Press of + { label : string + ; icon : Lui_elements.icon + ; text : string option + ; on_press : unit -> unit + } + | Menu of + { label : string + ; icon : Lui_elements.icon + ; text : string option + ; menu : Lui_elements.dropdown_menu_item_el list + ; on_dismiss : (unit -> unit) option + } + +val buttons : actions:action list -> Lui_elements.t + +val composer : + ?key:string -> + ?accessibility_identifier:string -> + ?attachments:Lui_elements.t -> + ?attachments_visible_signal:bool Signal.signal -> + ?attachments_height:int -> + ?feedback:Lui_elements.t -> + ?actions:Lui_elements.t list -> + placeholder:string -> + ?label:string -> + ?text:string -> + ?text_signal:string Signal.signal -> + ?autofocus:bool -> + ?autofocus_signal:bool Signal.signal -> + ?submit_on_enter:bool -> + ?send_icon:Lui_elements.icon -> + ?send_label:string -> + ?send_disabled_signal:bool Signal.signal -> + ?disabled:bool -> + ?disabled_signal:bool Signal.signal -> + ?on_input:(string -> unit) -> + ?on_submit:(unit -> unit) -> + ?on_send:(unit -> unit) -> + ?on_press:(unit -> unit) -> + unit -> + Lui_elements.t + +val composer_attachment : + ?disabled:bool -> + ?status:string -> + key:string -> + path:string -> + title:string -> + file_type:string -> + on_remove:(unit -> unit) -> + unit -> + Lui_elements.t + +val composer_collapsed : + ?key:string -> + ?accessibility_identifier:string -> + label:string -> + ?icon:Lui_elements.icon -> + on_press:(unit -> unit) -> + unit -> + Lui_elements.t + +val confirm_dialog : + ?key:string -> + ?accessibility_identifier:string -> + title:string -> + ?message:string -> + ?cancel_label:string -> + ?confirm_label:string -> + ?destructive:bool -> + ?on_dismiss:(unit -> unit) -> + ?on_cancel:(unit -> unit) -> + on_confirm:(unit -> unit) -> + unit -> + Lui_elements.t + +val settings_row : + ?key:string -> + ?accessibility_identifier:string -> + label:string -> + ?icon:Lui_elements.icon -> + ?on_press:(unit -> unit) -> + unit -> + Lui_elements.t + +val labeled_row : + ?key:string -> + ?accessibility_identifier:string -> + label:string -> + ?value:string -> + ?value_signal:string Signal.signal -> + unit -> + Lui_elements.t + +val toggle_row : + ?key:string -> + ?accessibility_identifier:string -> + label:string -> + ?checked:bool -> + ?checked_signal:bool Signal.signal -> + ?disabled:bool -> + ?disabled_signal:bool Signal.signal -> + on_toggle:(bool -> unit) -> + unit -> + Lui_elements.t + +val settings_section : + ?key:string -> + ?accessibility_identifier:string -> + ?title:string -> + rows:Lui_elements.t list -> + unit -> + Lui_elements.t + +val feedback_banner : + ?key:string -> + ?accessibility_identifier:string -> + ?kind:[ `error | `info ] -> + ?message:string -> + ?message_signal:string Signal.signal -> + unit -> + Lui_elements.t + +val loading : + ?key:string -> + ?accessibility_identifier:string -> + message:string -> + ?centered:bool -> + unit -> + Lui_elements.t + +val empty_state : + ?key:string -> + ?accessibility_identifier:string -> + ?icon:Lui_elements.icon -> + title:string -> + ?description:string -> + ?actions:Lui_elements.t list -> + unit -> + Lui_elements.t + +val section_heading : + ?key:string -> + ?accessibility_identifier:string -> + ?icon:Lui_elements.icon -> + title:string -> + unit -> + Lui_elements.t + +type toolbar_item = Lui_element_combine.toolbar_item + +val toolbar_item : + label:string -> + ?icon:Lui_elements.icon -> + ?disabled:bool Signal.signal -> + ?selected:bool -> + on_press:(unit -> unit) -> + unit -> + toolbar_item + +val action_toolbar : + ?key:string -> + ?accessibility_identifier:string -> + items:toolbar_item list -> + unit -> + Lui_elements.t + +val suggestion_list : + ?key:string -> + ?accessibility_identifier:string -> + source:'a list Signal.signal -> + item_key:('a -> string) -> + label:('a -> string) -> + ?icon:('a -> Lui_elements.icon) -> + on_select:('a -> unit -> unit) -> + unit -> + Lui_elements.t + +val breadcrumb_trail : + ?key:string -> + ?accessibility_identifier:string -> + items:(string * (unit -> unit)) list -> + unit -> + Lui_elements.t + +val nav_item : + ?key:string -> + ?accessibility_identifier:string -> + ?accessibility_identifier_signal:string Signal.signal -> + label:string -> + ?label_signal:string Signal.signal -> + ?icon:Lui_elements.icon -> + ?selected:bool -> + ?selected_signal:bool Signal.signal -> + on_press:(unit -> unit) -> + unit -> + Lui_elements.t + +val check_menu_item : + ?key:string -> + ?accessibility_identifier:string -> + label:string -> + ?icon:Lui_elements.icon -> + ?checked:bool -> + ?checked_signal:bool Signal.signal -> + ?disabled:bool -> + ?disabled_signal:bool Signal.signal -> + on_press:(unit -> unit) -> + unit -> + Lui_elements.dropdown_menu_item_el + +val menu_button : + ?key:string -> + ?accessibility_identifier:string -> + label:string -> + ?icon:Lui_elements.icon -> + ?anchor:Lui_elements.anchor -> + open_:bool Signal.signal -> + menu:Lui_elements.dropdown_menu_item_el list -> + ?on_dismiss:(unit -> unit) -> + ?on_press:(unit -> unit) -> + unit -> + Lui_elements.t + +type sidebar_section = Lui_element_combine.sidebar_section + +val sidebar_section : + title:string -> items:Lui_elements.t list -> unit -> sidebar_section + +val sidebar : + ?key:string -> + ?accessibility_identifier:string -> + ?header:Lui_elements.t -> + ?items:Lui_elements.t list -> + ?sections:sidebar_section list -> + unit -> + Lui_elements.t + +val hstack : + ?key:string -> + ?accessibility_identifier:string -> + ?background:color -> + ?foreground:color -> + ?border_color:color -> + ?corner_radius:radius -> + ?gap:space -> + ?padding:space -> + ?cross:Lui_elements.cross_alignment -> + ?main:Lui_elements.main_alignment -> + Lui_elements.t list -> + Lui_elements.t + +val vstack : + ?key:string -> + ?accessibility_identifier:string -> + ?background:color -> + ?foreground:color -> + ?border_color:color -> + ?corner_radius:radius -> + ?gap:space -> + ?padding:space -> + ?cross:Lui_elements.cross_alignment -> + ?main:Lui_elements.main_alignment -> + Lui_elements.t list -> + Lui_elements.t + +val nav_bar : + ?key:string -> + title:string -> + ?leading:Lui_elements.toolbar_el list -> + ?trailing:Lui_elements.toolbar_el list -> + unit -> + Lui_elements.t + +val page : + ?key:string -> + ?background:color -> + ?foreground:color -> + ?gap:space -> + ?padding:space -> + title:string -> + ?navigation:Lui_elements.t -> + ?actions:Lui_elements.t list -> + Lui_elements.t list -> + Lui_elements.t + +val section : + ?key:string -> + ?background:color -> + ?foreground:color -> + ?border_color:color -> + ?corner_radius:radius -> + ?gap:space -> + ?padding:space -> + ?title:string -> + ?footer:string -> + Lui_elements.t list -> + Lui_elements.t + +(** Wrap an arbitrary view as a native list-section row for {!form_section} + and {!data_list}. Dynamic combinators ({!Lui_elements.if_}, + {!Lui_elements.keyed}, [reactive]) can wrap {!form_row} or + {!Lui_elements.list_item} directly so removed rows unmount without leaving + empty wrapper shells. *) +val form_row : ?key:string -> Lui_elements.t -> Lui_elements.list_section_item_el + +val data_row : ?key:string -> Lui_elements.t -> Lui_elements.list_section_item_el + +val form_section : + ?key:string -> + ?title:string -> + ?footer:string -> + Lui_elements.list_section_item_el list -> + Lui_elements.t + +val form_field : + ?key:string -> + label:string -> + ?help:string -> + ?help_signal:string option Signal.signal -> + ?error:string -> + ?error_signal:string option Signal.signal -> + Lui_elements.t -> + Lui_elements.t + +val data_list : + ?key:string -> + label:string -> + ?empty:Lui_elements.list_section_item_el -> + Lui_elements.list_section_item_el list -> + Lui_elements.t + +val form_sheet : + ?key:string -> + ?accessibility_identifier:string -> + title:string -> + ?on_dismiss:(unit -> unit) -> + ?cancel:string * (unit -> unit) -> + ?confirm:string * (unit -> unit) -> + ?confirm_disabled:bool -> + ?confirm_disabled_signal:bool Signal.signal -> + Lui_elements.t list -> + Lui_elements.t + +val confirmation : + ?key:string -> + ?accessibility_identifier:string -> + title:string -> + ?message:string -> + ?cancel_label:string -> + ?confirm_label:string -> + ?destructive:bool -> + ?on_dismiss:(unit -> unit) -> + ?on_cancel:(unit -> unit) -> + on_confirm:(unit -> unit) -> + unit -> + Lui_elements.t diff --git a/src/lui_wire_schema.ml b/src/lui_wire_schema.ml index 42cb2a5b2..434e7d86e 100644 --- a/src/lui_wire_schema.ml +++ b/src/lui_wire_schema.ml @@ -474,12 +474,12 @@ let view_alignment = ViewEnum ["top-leading"; "top"; "top-trailing"; "leading"; let view_list_container_tag = ViewEnum ["div"; "ul"; "ol"] let view_edge = ViewEnum ["top"; "bottom"; "leading"; "trailing"] let view_variant = ViewEnum ["default"; "primary"; "secondary"; "outline"; "ghost"; "destructive"] -let view_font_style = ViewEnum ["normal"; "italic"; "oblique"] -let view_white_space = ViewEnum ["normal"; "nowrap"; "pre-wrap"; "pre-line"] -let view_text_overflow = ViewEnum ["clip"; "ellipsis"] let view_overflow = ViewEnum ["visible"; "hidden"; "auto"] let view_cursor = ViewEnum ["default"; "pointer"; "text"] +let view_font_style = ViewEnum ["normal"; "italic"; "oblique"] let view_user_select = ViewEnum ["none"; "text"] +let view_white_space = ViewEnum ["normal"; "nowrap"; "pre-wrap"; "pre-line"] +let view_text_overflow = ViewEnum ["clip"; "ellipsis"] let view_phrasing_tag = ViewEnum ["span"; "em"; "strong"; "b"; "i"; "u"; "s"; "del"; "mark"; "small"; "code"; "kbd"; "sub"; "sup"; "pre"] let view_text_alignment = ViewEnum ["start"; "center"; "end"] let view_heading_tag = ViewEnum ["h1"; "h2"; "h3"; "h4"; "h5"; "h6"] @@ -597,7 +597,7 @@ let view_contract = function | Text -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (As, view_phrasing_tag, false); (TextValue, ViewString, false); (TextAlignment, view_text_alignment, false); (LineClamp, ViewInt, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (As, view_phrasing_tag, false); (TextValue, ViewString, false); (TextAlignment, view_text_alignment, false); (LineClamp, ViewInt, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "press"; "press-modifiers"; "press-detail"; "pointer-down"; "pointer-up"; "context-menu"]; view_slots = []; } @@ -625,21 +625,21 @@ let view_contract = function | Button -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (VariantValue, view_variant, false); (SizeValue, view_control_size, false); (InlineIconName, view_icon, false); (IconPlacementValue, view_icon_placement, false); (AccessibilityLabel, ViewString, false); (TextAlignment, view_text_alignment, false); (Selected, ViewBool, false); (Autofocus, ViewBool, false); (Enabled, ViewBool, false); (TooltipText, ViewString, false); (TooltipKeys, ViewString, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (VariantValue, view_variant, false); (SizeValue, view_control_size, false); (InlineIconName, view_icon, false); (IconPlacementValue, view_icon_placement, false); (AccessibilityLabel, ViewString, false); (TextAlignment, view_text_alignment, false); (Selected, ViewBool, false); (Autofocus, ViewBool, false); (Enabled, ViewBool, false); (TooltipText, ViewString, false); (TooltipKeys, ViewString, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "navigate-previous"; "navigate-next"; "navigation-key"; "press"; "press-modifiers"; "long-press"; "press-detail"; "pointer-down"; "pointer-up"; "context-menu"]; view_slots = []; } | ToggleButton -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (VariantValue, view_variant, false); (SizeValue, view_control_size, false); (InlineIconName, view_icon, false); (IconPlacementValue, view_icon_placement, false); (AccessibilityLabel, ViewString, false); (TextAlignment, view_text_alignment, false); (Selected, ViewBool, false); (Checked, ViewBool, false); (Autofocus, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (VariantValue, view_variant, false); (SizeValue, view_control_size, false); (InlineIconName, view_icon, false); (IconPlacementValue, view_icon_placement, false); (AccessibilityLabel, ViewString, false); (TextAlignment, view_text_alignment, false); (Selected, ViewBool, false); (Checked, ViewBool, false); (Autofocus, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "toggle"; "long-press"; "context-menu"]; view_slots = []; } | Toggle -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (Checked, ViewBool, false); (AccessibilityLabel, ViewString, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (Checked, ViewBool, false); (AccessibilityLabel, ViewString, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "toggle"; "context-menu"]; view_slots = []; } @@ -674,28 +674,28 @@ let view_contract = function | TextField -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "input"; "submit"; "navigate-previous"; "navigate-next"; "navigation-key"; "context-menu"]; view_slots = []; } | SecureField -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "input"; "submit"; "navigate-previous"; "navigate-next"; "navigation-key"; "context-menu"]; view_slots = []; } | Input -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (InputType, view_input_kind, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (InputType, view_input_kind, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "input"; "submit"; "navigate-previous"; "navigate-next"; "navigation-key"; "context-menu"]; view_slots = []; } | SearchField -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (AccessibilityLabel, ViewString, false); (Autofocus, ViewBool, false); (SubmitOnBlur, ViewBool, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "input"; "submit"; "navigate-previous"; "navigate-next"; "navigation-key"; "context-menu"]; view_slots = []; } @@ -709,7 +709,7 @@ let view_contract = function | Checkbox -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (Checked, ViewBool, false); (Indeterminate, ViewBool, false); (AccessibilityLabel, ViewString, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (Checked, ViewBool, false); (Indeterminate, ViewBool, false); (AccessibilityLabel, ViewString, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "toggle"; "toggle-detail"; "context-menu"]; view_slots = []; } @@ -814,21 +814,21 @@ let view_contract = function | Select -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (AccessibilityLabel, ViewString, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (AccessibilityLabel, ViewString, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "press"; "press-modifiers"; "dismiss"; "press-detail"; "pointer-down"; "pointer-up"; "context-menu"]; view_slots = []; } | Combobox -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (PlaceholderValue, ViewString, false); (ReadOnly, ViewBool, false); (Enabled, ViewBool, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "press"; "press-modifiers"; "input"; "submit"; "dismiss"; "press-detail"; "pointer-down"; "pointer-up"; "context-menu"]; view_slots = []; } | DropdownMenu -> Some { - view_result = "dropdown_menu_el"; + view_result = "t"; view_children = ViewList "dropdown_menu_item_el"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (CollisionPadding, ViewFloat, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (PopupX, ViewFloat, false); (PopupY, ViewFloat, false); (AnchorValue, view_anchor, false); (AnchorAlignmentValue, view_anchor_alignment, false); (AnchorOffset, ViewFloat, false); (Transition, ViewString, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (CollisionPadding, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (PopupX, ViewFloat, false); (PopupY, ViewFloat, false); (AnchorValue, view_anchor, false); (AnchorAlignmentValue, view_anchor_alignment, false); (AnchorOffset, ViewFloat, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "dismiss"]; view_slots = []; } @@ -842,7 +842,7 @@ let view_contract = function | MenuItem -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (UserSelect, view_user_select, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (InlineIconName, view_icon, false); (SelectionPlacementValue, view_icon_placement, false); (VariantValue, view_variant, false); (SizeValue, view_control_size, false); (Selected, ViewBool, false); (Checked, ViewBool, false); (Enabled, ViewBool, false); (TooltipText, ViewString, false); (TooltipKeys, ViewString, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (WhiteSpace, view_white_space, false); (TextOverflow, view_text_overflow, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (TextValue, ViewString, false); (InlineIconName, view_icon, false); (SelectionPlacementValue, view_icon_placement, false); (VariantValue, view_variant, false); (SizeValue, view_control_size, false); (Selected, ViewBool, false); (Checked, ViewBool, false); (Enabled, ViewBool, false); (TooltipText, ViewString, false); (TooltipKeys, ViewString, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "press"; "press-modifiers"; "press-detail"; "pointer-down"; "pointer-up"; "context-menu"]; view_slots = []; } @@ -1096,18 +1096,18 @@ let view_contract = function | Popover -> Some { view_result = "t"; view_children = ViewList "t"; - view_properties = [(KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (Opacity, ViewFloat, false); (PopupX, ViewFloat, false); (PopupY, ViewFloat, false); (AnchorValue, view_anchor, false); (AnchorTarget, ViewString, false); (AnchorRect, (ViewFloatTuple 4), false); (AnchorAlignmentValue, view_anchor_alignment, false); (AnchorOffset, ViewFloat, false); (AnchorAlignmentOffset, ViewFloat, false); (AvailableHeight, ViewFloat, false); (RoleValue, view_popover_role, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; + view_properties = [(Overflow, view_overflow, false); (HoverBackground, ViewString, false); (HoverForeground, ViewString, false); (FocusWithinBackground, ViewString, false); (FocusWithinBorder, ViewString, false); (FocusShadow, ViewString, false); (Shadow, ViewString, false); (Cursor, view_cursor, false); (DisabledOpacity, ViewFloat, false); (PressedOpacity, ViewFloat, false); (HoverOpacity, ViewFloat, false); (MaxHeightViewport, ViewFloat, false); (FontSize, ViewString, false); (FontWeight, ViewInt, false); (FontFamily, ViewString, false); (FontStyle, view_font_style, false); (LineHeight, ViewString, false); (LetterSpacing, ViewFloat, false); (TextDecoration, ViewString, false); (UserSelect, view_user_select, false); (CollisionPadding, ViewFloat, false); (KeyValue, ViewString, false); (Gap, ViewInt, false); (MainAlignment, view_main_alignment, false); (CrossAlignment, view_cross_alignment, false); (GrowValue, ViewFloat, false); (PaddingValue, ViewInt, false); (PaddingHorizontal, ViewInt, false); (PaddingVertical, ViewInt, false); (MarginValue, ViewInt, false); (MarginHorizontal, ViewInt, false); (MarginVertical, ViewInt, false); (MarginTop, ViewInt, false); (MarginRight, ViewInt, false); (MarginBottom, ViewInt, false); (MarginLeft, ViewInt, false); (BackgroundValue, ViewString, false); (ForegroundValue, ViewString, false); (BorderColorValue, ViewString, false); (BorderWidth, ViewInt, false); (CornerRadius, ViewInt, false); (WidthValue, ViewInt, false); (HeightValue, ViewInt, false); (MinWidth, ViewInt, false); (MaxWidth, ViewInt, false); (MinHeight, ViewInt, false); (MaxHeight, ViewInt, false); (ContainerRelativeFrameValue, view_frame_axes, false); (ContainerRelativeFrameInset, ViewInt, false); (AccessibilityIdentifier, ViewString, false); (StyleClass, ViewString, false); (DataAttrs, ViewAttributes, false); (Opacity, ViewFloat, false); (PopupX, ViewFloat, false); (PopupY, ViewFloat, false); (AnchorValue, view_anchor, false); (AnchorTarget, ViewString, false); (AnchorRect, (ViewFloatTuple 4), false); (AnchorAlignmentValue, view_anchor_alignment, false); (AnchorOffset, ViewFloat, false); (AnchorAlignmentOffset, ViewFloat, false); (AvailableHeight, ViewFloat, false); (RoleValue, view_popover_role, false); (Transition, ViewString, false); (AlignmentValue, view_alignment, false)]; view_events = ["appear"; "pointer-enter"; "pointer-leave"; "dismiss"]; view_slots = []; } let view_slot_accepts slot kind = match slot, kind with - | "t", DropdownMenu -> true - | "toolbar_el", (Button | ToggleButton | ButtonGroup | ToggleGroup | Checkbox | SwitchControl | Toggle | RadioGroup | Select | Combobox | TextField | SecureField | Input | SearchField | MenuItem | MenuTrigger | Spacer | Divider | Text) -> true - | "dropdown_menu_item_el", (MenuItem | MenuTrigger | Divider) -> true + | "tree_el", (Row | Column | Panel | Card | Box | VirtualList | ListItem) -> true + | "toolbar_el", (Text | Button | ToggleButton | Toggle | RadioGroup | TextField | SecureField | Input | SearchField | Checkbox | SwitchControl | Divider | ButtonGroup | ToggleGroup | Spacer | Select | Combobox | MenuItem | MenuTrigger) -> true + | "dropdown_menu_item_el", (Divider | MenuItem | MenuTrigger) -> true + | "dropdown_menu_el", (DropdownMenu) -> true | "list_section_item_el", (ListItem) -> true - | "tree_el", (Row | Column | Panel | Card | Box | ListItem | VirtualList) -> true | "context_menu_item_el", (MenuItem | Divider) -> true | _ -> false diff --git a/test/test_audit.ml b/test/test_audit.ml index bde4ac9f3..8405eb586 100644 --- a/test/test_audit.ml +++ b/test/test_audit.ml @@ -20,17 +20,19 @@ let text_values app = | Some (StringValue value) -> value :: values | _ -> values) app.Lui_runtime.runtime_properties [] -let partial_view context parent = - ignore (Lui_elements.text ~value:"partial" [] context parent); - failwith "view failed" +let partial_view : Lui_elements.t = + Lui_elements.custom (fun context parent -> + ignore (Lui_elements.mount context ?parent (Lui_elements.text ~value:"partial" [])); + failwith "view failed") let boundary_initial_mount () = let app, scope, context, emitted = boundary_fixture () in let sibling = Lui_ui.text context "sibling" in let diagnostic = ref None in - ignore (Lui_elements.error_boundary ~fallback:(fun error -> - diagnostic := Some error; - Lui_elements.text ~value:"fallback" []) partial_view context None); + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun error -> + diagnostic := Some error; + Lui_elements.text ~value:"fallback" []) partial_view)); ignore (Lui_runtime.flush app); Alcotest.(check bool) "failed mount reports its exception and phase" true (match !diagnostic with @@ -49,16 +51,18 @@ let boundary_shared_publication_work () = let measure count = let app, scope, context, _ = boundary_fixture () in let source = Signal.state context.ui_scheduler "before" in - let child context parent = - let container = Lui_ui.column context in - Lui_elements.attach context parent container; - for _ = 1 to count do - let node = Lui_ui.text_signal context (Signal.value source) in - Lui_elements.attach context (Some container) node - done; - container in - ignore (Lui_elements.error_boundary - ~fallback:(fun _ -> Lui_elements.text ~value:"unexpected" []) child context None); + let child = + Lui_elements.custom (fun context parent -> + let container = Lui_ui.column context in + Lui_elements.attach context parent container; + for _ = 1 to count do + let node = Lui_ui.text_signal context (Signal.value source) in + Lui_elements.attach context (Some container) node + done; + container) in + ignore (Lui_elements.mount context + (Lui_elements.error_boundary + ~fallback:(fun _ -> Lui_elements.text ~value:"unexpected" []) child)); Signal.mount scope; ignore (Lui_runtime.flush app); Gc.full_major (); @@ -83,27 +87,29 @@ let boundary_publication_rollback () = let outside = Lui_ui.text context "outside" in let source = Signal.state context.ui_scheduler "before" in let inner_errors = ref 0 and outer_errors = ref 0 in - let child context parent = - let first = Lui_ui.map context (fun value -> - if value = "bad" then begin - Lui_ui.string_property context outside TextValue "partial"; - "partial" - end else value) (Signal.value source) in - let node = Lui_ui.text_signal context first in - Lui_elements.attach context parent node; - let second = Lui_ui.map context (fun value -> - if value = "bad" then failwith "late publication failure" else value) - (Signal.value source) in - let node = Lui_ui.text_signal context second in - Lui_elements.attach context parent node; - node in + let child = + Lui_elements.custom (fun context parent -> + let first = Lui_ui.map context (fun value -> + if value = "bad" then begin + Lui_ui.string_property context outside TextValue "partial"; + "partial" + end else value) (Signal.value source) in + let node = Lui_ui.text_signal context first in + Lui_elements.attach context parent node; + let second = Lui_ui.map context (fun value -> + if value = "bad" then failwith "late publication failure" else value) + (Signal.value source) in + let node = Lui_ui.text_signal context second in + Lui_elements.attach context parent node; + node) in let inner = Lui_elements.error_boundary ~fallback:(fun _ -> incr inner_errors; if broken_fallback then partial_view else Lui_elements.text ~value:"inner" []) child in - ignore (Lui_elements.error_boundary ~fallback:(fun _ -> - incr outer_errors; - Lui_elements.text ~value:"outer" []) - (Lui_elements.column [Lui_elements.text ~value:"stable" []; inner]) context None); + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun _ -> + incr outer_errors; + Lui_elements.text ~value:"outer" []) + (Lui_elements.column [Lui_elements.text ~value:"stable" []; inner]))); Signal.mount scope; ignore (Lui_runtime.flush app); Signal.set source "successful"; @@ -134,15 +140,17 @@ let boundary_interleaved_fallbacks () = Lui_elements.attach context parent node; node in let fail value = if value = "bad" then failwith "interleaved failure" else value in - ignore (Lui_elements.error_boundary ~fallback:(fun _ -> - incr second_errors; Lui_elements.text ~value:"second fallback" []) - (fun context parent -> - let node = bind context parent Fun.id in - deferred := (fun () -> ignore (bind context parent fail)); - node) context None); - ignore (Lui_elements.error_boundary ~fallback:(fun _ -> - incr first_errors; Lui_elements.text ~value:"first fallback" []) - (fun context parent -> bind context parent fail) context None); + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun _ -> + incr second_errors; Lui_elements.text ~value:"second fallback" []) + (Lui_elements.custom (fun context parent -> + let node = bind context parent Fun.id in + deferred := (fun () -> ignore (bind context parent fail)); + node)))); + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun _ -> + incr first_errors; Lui_elements.text ~value:"first fallback" []) + (Lui_elements.custom (fun context parent -> bind context parent fail)))); !deferred (); Signal.mount scope; ignore (Lui_runtime.flush app); @@ -164,9 +172,10 @@ let boundary_sibling_mount_work () = Gc.full_major (); let allocated = Gc.allocated_bytes () and started = Sys.time () in for _ = 1 to count do - ignore (Lui_elements.error_boundary - ~fallback:(fun _ -> Lui_elements.text ~value:"unexpected" []) - (Lui_elements.text ~value:"child" []) context None) + ignore (Lui_elements.mount context + (Lui_elements.error_boundary + ~fallback:(fun _ -> Lui_elements.text ~value:"unexpected" []) + (Lui_elements.text ~value:"child" []))) done; Signal.mount scope; ignore (Lui_runtime.flush app); @@ -192,18 +201,20 @@ let boundary_committed_outer_recovery () = Lui_elements.attach context parent node; node in let fail value = if value = "bad" then failwith "outer publication" else value in - let inner = Lui_elements.error_boundary ~fallback:(fun _ context parent -> - Lui_ui.string_property context outside ForegroundValue "#334455"; - Lui_elements.text ~value:"inner fallback" [] context parent) - (fun context parent -> bind context parent fail) in - ignore (Lui_elements.error_boundary ~fallback:(fun _ -> - Lui_elements.text ~value:"outer fallback" []) - (fun context parent -> - ignore (bind context parent (fun value -> - if value = "bad" then Lui_ui.string_property context outside TextValue "partial"; - value)); - ignore (inner context parent); - bind context parent fail) context None); + let inner = Lui_elements.error_boundary ~fallback:(fun _ -> + Lui_elements.custom (fun context parent -> + Lui_ui.string_property context outside ForegroundValue "#334455"; + Lui_elements.mount context ?parent (Lui_elements.text ~value:"inner fallback" []))) + (Lui_elements.custom (fun context parent -> bind context parent fail)) in + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun _ -> + Lui_elements.text ~value:"outer fallback" []) + (Lui_elements.custom (fun context parent -> + ignore (bind context parent (fun value -> + if value = "bad" then Lui_ui.string_property context outside TextValue "partial"; + value)); + ignore (Lui_elements.mount context ?parent inner); + bind context parent fail)))); Signal.mount scope; ignore (Lui_runtime.flush app); Signal.set source "bad"; @@ -261,12 +272,13 @@ let boundary_nested_mount_rollback () = let app, scope, context, emitted = boundary_fixture () in let inner = Lui_elements.error_boundary ~fallback:(fun _ -> Lui_elements.text ~value:"inner fallback" []) - (fun _ _ -> failwith "inner mount") in - ignore (Lui_elements.error_boundary ~fallback:(fun _ -> - Lui_elements.text ~value:"outer fallback" []) - (fun context parent -> - ignore (inner context parent); - failwith "outer mount") context None); + (Lui_elements.custom (fun _ _ -> failwith "inner mount")) in + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun _ -> + Lui_elements.text ~value:"outer fallback" []) + (Lui_elements.custom (fun context parent -> + ignore (Lui_elements.mount context ?parent inner); + failwith "outer mount")))); Signal.mount scope; ignore (Lui_runtime.flush app); Alcotest.(check (list string)) "only enclosing fallback remains" @@ -423,11 +435,12 @@ let anchorless_host_tweak_order () = List.iter (fun shape -> List.iter (fun initially_visible -> let app, scope, context, verify = rollback_host_fixture () in let visible = Signal.state context.ui_scheduler initially_visible in - let wrap child context parent = - let tweak = Lui_ui.platform_tweak context "boundary-tweak" in - ignore (child context (Some tweak)); - Lui_elements.attach context parent tweak; - tweak in + let wrap child = + Lui_elements.custom (fun context parent -> + let tweak = Lui_ui.platform_tweak context "boundary-tweak" in + ignore (Lui_elements.mount context ~parent:tweak child); + Lui_elements.attach context parent tweak; + tweak) in let content = match shape with | `Main -> wrap (Lui_elements.column [ wrap (Lui_elements.text ~value:"content" [])]) @@ -445,7 +458,7 @@ let anchorless_host_tweak_order () = let parent = Lui_ui.column context in let language = Signal.state context.ui_scheduler 0 in ignore (Lui_dynamic.switch_range context parent (Signal.value language) Int.equal - (fun context _ -> wrap view context (Some parent))); + (fun context _ -> ignore (Lui_elements.mount context ~parent (wrap view)))); Signal.mount scope; ignore (Lui_runtime.flush app); verify (); @@ -518,22 +531,24 @@ let boundary_reactive_update () = let app, scope, context, emitted = boundary_fixture () in let source = Signal.state context.ui_scheduler 0 in let mounts = ref 0 and failures = ref 0 in - let child context parent = - let parent = Option.get parent in - ignore (Lui_dynamic.switch context parent (Signal.value source) Int.equal - (fun context value -> - incr mounts; - if value = 1 then partial_view context None - else begin - let node = Lui_ui.text context (string_of_int value) in - Lui_ui.on_event context node (fun _ -> ()); - node - end)); - parent in - ignore (Lui_elements.error_boundary ~fallback:(fun error -> - incr failures; - Alcotest.(check bool) "update diagnostic" true (error.phase = `Update); - Lui_elements.text ~value:"fallback" []) child context None); + let child = + Lui_elements.custom (fun context parent -> + let parent = Option.get parent in + ignore (Lui_dynamic.switch context parent (Signal.value source) Int.equal + (fun context value -> + incr mounts; + if value = 1 then Lui_elements.mount context partial_view + else begin + let node = Lui_ui.text context (string_of_int value) in + Lui_ui.on_event context node (fun _ -> ()); + node + end)); + parent) in + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun error -> + incr failures; + Alcotest.(check bool) "update diagnostic" true (error.phase = `Update); + Lui_elements.text ~value:"fallback" []) child)); Signal.mount scope; ignore (Lui_runtime.flush app); Alcotest.(check (list string)) "successful initial view" ["0"] (text_values app); @@ -562,9 +577,10 @@ let boundary_nested () = incr inner_errors; if broken_fallback then partial_view else Lui_elements.text ~value:"inner" []) partial_view in - ignore (Lui_elements.error_boundary ~fallback:(fun _ -> - incr outer_errors; - Lui_elements.text ~value:"outer" []) inner context None); + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun _ -> + incr outer_errors; + Lui_elements.text ~value:"outer" []) inner)); ignore (Lui_runtime.flush app); Alcotest.(check int) "nearest boundary handles the child" 1 !inner_errors; Alcotest.(check int) "fallback failure reaches enclosing boundary" @@ -576,14 +592,16 @@ let boundary_nested () = let boundary_property_projection () = let app, scope, context, _ = boundary_fixture () in let source = Signal.state context.ui_scheduler "ok" in - let child context parent = - let projected = Lui_ui.map context (fun value -> - if value = "bad" then failwith "projection failed" else value) (Signal.value source) in - let node = Lui_ui.text_signal context projected in - Lui_elements.attach context parent node; - node in - ignore (Lui_elements.error_boundary - ~fallback:(fun _ -> Lui_elements.text ~value:"fallback" []) child context None); + let child = + Lui_elements.custom (fun context parent -> + let projected = Lui_ui.map context (fun value -> + if value = "bad" then failwith "projection failed" else value) (Signal.value source) in + let node = Lui_ui.text_signal context projected in + Lui_elements.attach context parent node; + node) in + ignore (Lui_elements.mount context + (Lui_elements.error_boundary + ~fallback:(fun _ -> Lui_elements.text ~value:"fallback" []) child)); Signal.mount scope; ignore (Lui_runtime.flush app); Signal.set source "bad"; @@ -597,10 +615,11 @@ let boundary_reactive_attributes () = let failures = ref 0 in let child = Lui_elements.row ~data_attrs_signal:(Signal.value attributes) [Lui_elements.text ~value:"child" []] in - ignore (Lui_elements.error_boundary ~fallback:(fun error -> - incr failures; - Alcotest.(check bool) "attribute update diagnostic" true (error.phase = `Update); - Lui_elements.text ~value:"fallback" []) child context None); + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun error -> + incr failures; + Alcotest.(check bool) "attribute update diagnostic" true (error.phase = `Update); + Lui_elements.text ~value:"fallback" []) child)); Signal.mount scope; ignore (Lui_runtime.flush app); Alcotest.(check (list string)) "empty attributes mount" ["child"] (text_values app); @@ -625,20 +644,22 @@ let boundary_retained_rows () = let app, scope, context, _ = boundary_fixture () in let source = Signal.state context.ui_scheduler [1, "ok"] in let failures = ref 0 in - let mount item_source context parent = - let projected = Lui_ui.map context (fun (_, value) -> - if value = "bad" then failwith "row projection failed" else value) item_source in - let node = Lui_ui.text_signal context projected in - Lui_elements.attach context parent node; - node in + let mount item_source = + Lui_elements.custom (fun context parent -> + let projected = Lui_ui.map context (fun (_, value) -> + if value = "bad" then failwith "row projection failed" else value) item_source in + let node = Lui_ui.text_signal context projected in + Lui_elements.attach context parent node; + node) in let source = Signal.value source, source in let rows = if virtualized then Lui_elements.virtual_list [Lui_elements.virtual_rows ~source:(fst source) ~key:fst ~cmp:Int.compare ~mount ()] else Lui_elements.column [Lui_elements.keyed ~source:(fst source) ~key:fst ~cmp:Int.compare ~mount] in - ignore (Lui_elements.error_boundary ~fallback:(fun _ -> - incr failures; Lui_elements.text ~value:"fallback" []) rows context None); + ignore (Lui_elements.mount context + (Lui_elements.error_boundary ~fallback:(fun _ -> + incr failures; Lui_elements.text ~value:"fallback" []) rows)); Signal.mount scope; ignore (Lui_runtime.flush app); Alcotest.(check (list string)) "initial row" ["ok"] (text_values app); @@ -855,9 +876,10 @@ let subscription_failure () = Lui_subscriptions.dispose coordinator; Alcotest.(check int) "started subscription cancelled" 1 !cancelled -let view ?(mount_failure=false) label _context _model _send context _parent = - if mount_failure then Signal.on_mount context.Lui_ui.ui_scope (fun () -> failwith "mount failed"); - Lui_ui.text context label +let view ?(mount_failure=false) label _context _model _send = + Lui_elements.custom (fun context _parent -> + if mount_failure then Signal.on_mount context.Lui_ui.ui_scope (fun () -> failwith "mount failed"); + Lui_ui.text context label) let check_resync mirror application = let restored = Drive.Model.create () in @@ -1076,7 +1098,7 @@ let anchorless_restricted_ranges () = let parts = Signal.state context.ui_scheduler ["a"; "b"] in let visible = Signal.state context.ui_scheduler true in let open Lui_elements in - let parent = toolbar ~label:"Actions" + let parent = mount context (toolbar ~label:"Actions" [ toolbar_text ~value:"before" []; keyed_toolbar ~source:(Signal.value items) ~key:Fun.id ~cmp:Int.compare ~mount:(fun item -> @@ -1085,7 +1107,7 @@ let anchorless_restricted_ranges () = ~mount:(fun part -> toolbar_button ~text:(string_of_int (Signal.sample item) ^ Signal.sample part) ~on_press:(fun () -> ()) []))); - toolbar_text ~value:"after" [] ] context None in + toolbar_text ~value:"after" [] ]) in Signal.mount scope; let flush expected = ignore (Lui_runtime.flush app); @@ -1141,10 +1163,10 @@ let anchorless_boundary_rollback () = ~mount:(fun item -> toolbar_button ~text:(if value = 2 then "partial" else string_of_int (value + Signal.sample item)) ~on_press:(fun () -> ()) [])))) (Signal.value source)] in - ignore (error_boundary ~fallback:(fun diagnostic -> + ignore (mount context (error_boundary ~fallback:(fun diagnostic -> incr failures; Alcotest.(check bool) "update failure" true (diagnostic.phase = `Update); - text ~value:"recovered" []) child context None); + text ~value:"recovered" []) child)); Signal.mount scope; ignore (Lui_runtime.flush app); Signal.set source 1; @@ -1184,7 +1206,7 @@ let anchorless_static_sibling () = let parent = Lui_ui.column context in let visible = Signal.state context.ui_scheduler true in let revision = Signal.state context.ui_scheduler 0 in - let text context value = ignore (Lui_elements.text ~value [] context (Some parent)) in + let text context value = ignore (Lui_elements.mount context ~parent (Lui_elements.text ~value [])) in text context "prefix"; Lui_dynamic.switch_range context parent (Signal.value revision) Int.equal (fun branch _ -> @@ -1227,10 +1249,9 @@ let anchorless_virtual_replacement () = (fun branch value -> if value = 2 then Signal.on_mount branch.Lui_ui.ui_scope (fun () -> failwith "reject virtual range"); let open Lui_elements in - ignore (scroll ~virtual_owner:owner + ignore (mount branch ~parent (scroll ~virtual_owner:owner [virtual_list ~viewport:source [virtual_rows ~source:items ~key:Fun.id ~cmp:String.compare - ~scroll_key:Fun.id ~mount:(fun item -> text ~value:(Signal.sample item) []) ()]] - branch (Some parent))); + ~scroll_key:Fun.id ~mount:(fun item -> text ~value:(Signal.sample item) []) ()]]))); Signal.mount scope; ignore (Lui_runtime.flush app); let binding () = Option.get (Signal.sample (Lui_virtual.binding source)) in @@ -1738,7 +1759,7 @@ let phase4_rows_are_not_disclosures () = List.iter (fun build -> List.iter (fun row -> let app, scope, context, _ = boundary_fixture () in - let root = build row context None in + let root = Lui_elements.mount context (build row) in let rec check node = let children = Lui_runtime.children app node in if Lui_runtime.require_standard_node_kind app node = ListItem then @@ -1749,19 +1770,19 @@ let phase4_rows_are_not_disclosures () = in check root; Signal.dispose_scope scope) - [Lui_element_combine.settings_row ~label:"Setting" (); - Lui_elements.list_item ~text:"Item" []]) + [Lui.Ui.form_row (Lui_element_combine.settings_row ~label:"Setting" ()); + Lui_elements.list_item ~text:"Item" []; + Lui.Ui.form_row (Lui_elements.list_item ~text:"Wrapped item" [])]) [(fun row -> Lui.Ui.form_section [row]); (fun row -> Lui.Ui.data_list ~label:"Rows" [row])] let phase4_form_sheet_sections () = let app, scope, context, _ = boundary_fixture () in - let sheet = Lui.Ui.form_sheet ~title:"Edit" + let sheet = Lui_elements.mount context (Lui.Ui.form_sheet ~title:"Edit" [Lui.Ui.form_section ~title:"Identity" ~footer:"Required" - [Lui.Ui.form_field ~label:"Name" (Lui_elements.text_field []); - Lui_elements.toggle ~text:"Enabled" []]; - Lui.Ui.form_section ~title:"Other" [Lui_elements.text_field []]] - context None in + [Lui.Ui.form_row (Lui.Ui.form_field ~label:"Name" (Lui_elements.text_field [])); + Lui.Ui.form_row (Lui_elements.toggle ~text:"Enabled" [])]; + Lui.Ui.form_section ~title:"Other" [Lui.Ui.form_row (Lui_elements.text_field [])]]) in let form = List.hd (Lui_runtime.children app sheet) in let list = List.hd (Lui_runtime.children app form) in Alcotest.(check bool) "explicit sections have an admitted list parent" true @@ -1784,13 +1805,12 @@ let phase4_form_sheet_sections () = let phase4_authoring_contract () = let app, scope, context, _ = boundary_fixture () in - let module Compatible : module type of struct include Lui_ui end = Lui.Ui in - let raw = Compatible.text context "raw compatibility" in + let raw = Lui.Raw.text context "raw compatibility" in Lui.Raw.padding context raw 3; Alcotest.(check bool) "raw aliases share context and nodes" true (property_value app raw PaddingValue = IntValue 3); - let text = Lui_elements.text ~role:`caption ~truncate:true - ~style_class:"application" ~value:"long" [] context None in + let text = Lui_elements.mount context (Lui_elements.text ~role:`caption ~truncate:true + ~style_class:"application" ~value:"long" []) in List.iter (fun (property, expected) -> Alcotest.(check bool) "truncation and role emit admitted properties" true (property_value app text property = expected)) @@ -1798,42 +1818,42 @@ let phase4_authoring_contract () = Overflow, StringValue "hidden"; LineClamp, IntValue 1; MinWidth, IntValue 0; StyleClass, StringValue "caption single-line application"]; List.iter (fun view -> - let node = view context None in + let node = Lui_elements.mount context view in Alcotest.(check bool) "every text family supports roles and truncation" true (property_value app node StyleClass = StringValue "body single-line" && property_value app node LineClamp = IntValue 1)) [Lui_elements.heading ~role:`body ~truncate:true ~value:"Heading" []; Lui_elements.paragraph ~role:`body ~truncate:true ~value:"Paragraph" []; Lui_elements.label ~role:`body ~truncate:true ~value:"Label" []]; - let plain = Lui_elements.text ~truncate:false ~value:"" [] context None in + let plain = Lui_elements.mount context (Lui_elements.text ~truncate:false ~value:"" []) in Alcotest.(check bool) "empty untruncated text retains existing overflow" false (Property_map.mem WhiteSpace (Hashtbl.find app.Lui_runtime.runtime_properties plain)); - let row = Lui.Ui.hstack [] context None in - let column = Lui.Ui.vstack ~gap:`none [] context None in + let row = Lui_elements.mount context (Lui.Ui.hstack []) in + let column = Lui_elements.mount context (Lui.Ui.vstack ~gap:`none []) in Alcotest.(check bool) "stack defaults and explicit overrides" true (property_value app row Gap = IntValue 8 && property_value app row CrossAlignment = StringValue "center" && property_value app row MinWidth = IntValue 0 && property_value app column Gap = IntValue 0 && property_value app column MinHeight = IntValue 0); - List.iter (fun view -> ignore (view context None)) + List.iter (fun view -> ignore (Lui_elements.mount context view)) [Lui.Ui.page ~title:"Page" []; Lui.Ui.form_sheet ~title:"Form" []; Lui.Ui.form_section ~title:"Section" []; Lui.Ui.form_field ~label:"Name" (Lui_elements.text_field []); Lui.Ui.form_field ~label:"Invalid" ~help:"hidden help" ~error:"validation error" (Lui_elements.text_field []); Lui.Ui.data_list ~label:"Rows" []; - Lui.Ui.data_list ~label:"Rows" ~empty:(Lui_elements.text ~value:"empty rows" []) []; + Lui.Ui.data_list ~label:"Rows" ~empty:(Lui.Ui.data_row (Lui_elements.text ~value:"empty rows" [])) []; Lui.Ui.nav_bar ~title:"Navigation" ()]; Alcotest.(check bool) "validation error takes precedence over help" true (List.mem "validation error" (text_values app) && not (List.mem "hidden help" (text_values app))); let errors = Signal.state context.ui_scheduler None in let control = ref None in - ignore (Lui.Ui.form_field ~label:"Reactive name" ~help:"live help" + ignore (Lui_elements.mount context (Lui.Ui.form_field ~label:"Reactive name" ~help:"live help" ~error_signal:(Signal.value errors) - (fun context parent -> - let node = Lui_elements.text_field ~text:"editing" [] context parent in - control := Some node; node) context None); + (Lui_elements.custom (fun context parent -> + let node = Lui_elements.mount context ?parent (Lui_elements.text_field ~text:"editing" []) in + control := Some node; node)))); let mounted_control = !control in ignore (Lui_runtime.flush app); Signal.set errors (Some "live error"); @@ -1856,6 +1876,764 @@ let phase4_authoring_contract () = (List.map Lui_tokens.radius_value [`none;`sm;`md;`lg;`xl;`full;`px (-1)]); Signal.dispose_scope scope +let adr0008_popover_target_diff () = + let app, scope, context, emitted = boundary_fixture () in + let open Lui_elements in + let target = + Signal.state context.Lui_ui.ui_scheduler + (Anchor + { + side = `below; + source = Target "trigger-a"; + align = `start; + offset = 4.; + align_offset = 0.; + }) + in + let node = mount context (popover ~target_signal:(Signal.value target) []) in + Signal.mount scope; + let removed_props ops = + List.filter_map + (function RemoveProp (id, prop) when id = node -> Some prop | _ -> None) + ops + in + let set_props ops = + List.filter_map + (function SetProp (id, prop, value) when id = node -> Some (prop, value) | _ -> None) + ops + in + ignore (Lui_runtime.flush app); + Alcotest.(check int) "initial mount emits zero RemoveProp" 0 + (List.length (removed_props !emitted)); + Alcotest.(check bool) "initial Anchor sets AnchorTarget" true + (property_value app node AnchorTarget = StringValue "trigger-a"); + (* Anchor -> Anchor with same source kind emits zero RemoveProp *) + emitted := []; + Signal.set target + (Anchor + { + side = `above; + source = Target "trigger-b"; + align = `end_; + offset = 8.; + align_offset = 2.; + }); + ignore (Lui_runtime.flush app); + Alcotest.(check int) "Anchor -> Anchor (same source) emits zero RemoveProp" 0 + (List.length (removed_props !emitted)); + Alcotest.(check bool) "Anchor updates AnchorValue and AnchorTarget" true + (property_value app node AnchorValue = StringValue "above" + && property_value app node AnchorTarget = StringValue "trigger-b"); + (* Anchor Target -> Anchor Rect removes only AnchorTarget *) + emitted := []; + Signal.set target + (Anchor + { + side = `below; + source = Rect { x = 10.; y = 20.; width = 30.; height = 40. }; + align = `center; + offset = 6.; + align_offset = 0.; + }); + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "Anchor Target -> Rect removes only AnchorTarget" true + (removed_props !emitted = [ AnchorTarget ]); + (* Anchor Rect -> At removes only stale anchor props and sets PopupX/PopupY *) + emitted := []; + Signal.set target (At (120., 240.)); + ignore (Lui_runtime.flush app); + let removed = removed_props !emitted in + List.iter + (fun prop -> + Alcotest.(check bool) "Anchor -> At removes stale anchor prop" true + (List.mem prop removed)) + [ AnchorValue; AnchorAlignmentValue; AnchorOffset; AnchorAlignmentOffset; AnchorRect ]; + Alcotest.(check int) "Anchor -> At removes only the 5 stale anchor props" 5 + (List.length removed); + let sets = set_props !emitted in + Alcotest.(check bool) "Anchor -> At sets PopupX and PopupY" true + (List.mem (PopupX, FloatValue 120.) sets && List.mem (PopupY, FloatValue 240.) sets); + (* At -> Cover removes only PopupX and PopupY *) + emitted := []; + Signal.set target Cover; + ignore (Lui_runtime.flush app); + let removed_cover = removed_props !emitted in + Alcotest.(check int) "At -> Cover removes only PopupX and PopupY" 2 + (List.length removed_cover); + Alcotest.(check bool) "At -> Cover removes PopupX and PopupY" true + (List.mem PopupX removed_cover && List.mem PopupY removed_cover); + Signal.dispose_scope scope + +let adr0008_dropdown_menu_target_diff () = + let app, scope, context, emitted = boundary_fixture () in + let open Lui_elements in + let target = + Signal.state context.Lui_ui.ui_scheduler + (Menu_anchor { side = `below; align = `start; offset = 4. }) + in + let node = + mount context + (dropdown_menu ~target_signal:(Signal.value target) + [ menu_item ~text:"One" [] ]) + in + Signal.mount scope; + let removed_props ops = + List.filter_map + (function RemoveProp (id, prop) when id = node -> Some prop | _ -> None) + ops + in + let set_props ops = + List.filter_map + (function SetProp (id, prop, value) when id = node -> Some (prop, value) | _ -> None) + ops + in + ignore (Lui_runtime.flush app); + Alcotest.(check int) "initial Menu_anchor emits zero RemoveProp" 0 + (List.length (removed_props !emitted)); + (* Menu_anchor -> Menu_anchor emits zero RemoveProp *) + emitted := []; + Signal.set target (Menu_anchor { side = `above; align = `stretch; offset = 10. }); + ignore (Lui_runtime.flush app); + Alcotest.(check int) "Menu_anchor -> Menu_anchor emits zero RemoveProp" 0 + (List.length (removed_props !emitted)); + Alcotest.(check bool) "Menu_anchor updates properties in place" true + (property_value app node AnchorValue = StringValue "above" + && property_value app node AnchorAlignmentValue = StringValue "stretch" + && property_value app node AnchorOffset = FloatValue 10.); + (* Menu_anchor -> Menu_at removes only AnchorValue/AnchorAlignmentValue/AnchorOffset *) + emitted := []; + Signal.set target (Menu_at (32., 64.)); + ignore (Lui_runtime.flush app); + let removed = removed_props !emitted in + Alcotest.(check int) "Menu_anchor -> Menu_at removes 3 anchor props" 3 + (List.length removed); + List.iter + (fun prop -> + Alcotest.(check bool) "Menu_anchor -> Menu_at removes stale anchor prop" true + (List.mem prop removed)) + [ AnchorValue; AnchorAlignmentValue; AnchorOffset ]; + let sets = set_props !emitted in + Alcotest.(check bool) "Menu_anchor -> Menu_at sets PopupX/PopupY" true + (List.mem (PopupX, FloatValue 32.) sets && List.mem (PopupY, FloatValue 64.) sets); + (* Menu_at -> Menu_default removes only PopupX/PopupY *) + emitted := []; + Signal.set target Menu_default; + ignore (Lui_runtime.flush app); + let removed_default = removed_props !emitted in + Alcotest.(check int) "Menu_at -> Menu_default removes 2 props" 2 + (List.length removed_default); + Alcotest.(check bool) "Menu_at -> Menu_default removes PopupX/PopupY" true + (List.mem PopupX removed_default && List.mem PopupY removed_default); + Signal.dispose_scope scope + +let adr0008_split_sizing_diff () = + let app, scope, context, emitted = boundary_fixture () in + let open Lui_elements in + let sizing = Signal.state context.Lui_ui.ui_scheduler (First_width 240.) in + let node = + mount context + (split ~sizing_signal:(Signal.value sizing) (column []) (column [])) + in + Signal.mount scope; + let removed_props ops = + List.filter_map + (function RemoveProp (id, prop) when id = node -> Some prop | _ -> None) + ops + in + let set_props ops = + List.filter_map + (function SetProp (id, prop, value) when id = node -> Some (prop, value) | _ -> None) + ops + in + ignore (Lui_runtime.flush app); + let initial_sets = set_props !emitted in + Alcotest.(check int) "initial split sizing_signal emits zero RemoveProp" 0 + (List.length (removed_props !emitted)); + Alcotest.(check bool) "initial First_width emits FirstPaneWidth" true + (List.mem (FirstPaneWidth, FloatValue 240.) initial_sets); + Alcotest.(check bool) "initial First_width never emits spurious ProgressValue" false + (List.exists (fun (prop, _) -> prop = ProgressValue) initial_sets); + (* First_width -> First_width emits zero RemoveProp *) + emitted := []; + Signal.set sizing (First_width 320.); + ignore (Lui_runtime.flush app); + Alcotest.(check int) "First_width -> First_width emits zero RemoveProp" 0 + (List.length (removed_props !emitted)); + Alcotest.(check bool) "First_width updates in place" true + (property_value app node FirstPaneWidth = FloatValue 320.); + (* First_width -> Fraction removes FirstPaneWidth and sets ProgressValue *) + emitted := []; + Signal.set sizing (Fraction 0.35); + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "First_width -> Fraction removes only FirstPaneWidth" true + (removed_props !emitted = [ FirstPaneWidth ]); + Alcotest.(check bool) "First_width -> Fraction sets ProgressValue" true + (List.mem (ProgressValue, FloatValue 0.35) (set_props !emitted)); + (* Fraction -> First_width removes ProgressValue and sets FirstPaneWidth *) + emitted := []; + Signal.set sizing (First_width 180.); + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "Fraction -> First_width removes only ProgressValue" true + (removed_props !emitted = [ ProgressValue ]); + Alcotest.(check bool) "Fraction -> First_width sets FirstPaneWidth" true + (List.mem (FirstPaneWidth, FloatValue 180.) (set_props !emitted)); + Signal.dispose_scope scope + +let adr0008_text_truncate_style_precedence () = + let app, scope, context, _ = boundary_fixture () in + let open Lui_elements in + let check_truncated label node = + List.iter + (fun (prop, expected) -> + Alcotest.(check bool) + (Printf.sprintf "%s truncate precedence" label) + true + (property_value app node prop = expected)) + [ + WhiteSpace, StringValue "nowrap"; + TextOverflow, StringValue "ellipsis"; + Overflow, StringValue "hidden"; + LineClamp, IntValue 1; + MinWidth, IntValue 0; + ] + in + let conflicting_style = + Slot_style.merge + (Slot_style.make ~overflow:`visible ()) + (Slot_style.text_flow ~white_space:`normal ~text_overflow:`clip ()) + in + let t_node = + mount context + (text ~truncate:true ~style:conflicting_style ~min_width:40 ~line_clamp:3 + ~value:"long" []) + in + check_truncated "text" t_node; + let h_node = + mount context + (heading ~truncate:true ~white_space:`normal ~text_overflow:`clip + ~overflow:`visible ~min_width:40 ~line_clamp:3 ~value:"long heading" []) + in + check_truncated "heading" h_node; + let p_node = + mount context + (paragraph ~truncate:true ~white_space:`normal ~text_overflow:`clip + ~overflow:`visible ~min_width:40 ~line_clamp:3 ~value:"long paragraph" []) + in + check_truncated "paragraph" p_node; + let l_node = + mount context + (label ~truncate:true ~white_space:`normal ~text_overflow:`clip + ~overflow:`visible ~min_width:40 ~line_clamp:3 ~value:"long label" []) + in + check_truncated "label" l_node; + Alcotest.(check bool) "all truncated text nodes flush cleanly" true + (Lui_runtime.flush app); + Signal.dispose_scope scope + +let adr0008_protocol_numeric_and_json_enums () = + List.iter + (fun prop -> + List.iter + (fun (input, expected) -> + Alcotest.(check bool) "float property normalized" true + (normalize_property_value prop (FloatValue input) = FloatValue expected)) + [ -5.0, 0.; nan, 0.; infinity, 0.; neg_infinity, 0.; 0., 0.; 12.5, 12.5 ]) + [ CollisionPadding; FirstPaneWidth; AvailableHeight; GrowValue; ShrinkValue ]; + List.iter + (fun (input, expected) -> + Alcotest.(check bool) "TreeLevel normalized" true + (normalize_property_value TreeLevel (IntValue input) = IntValue expected)) + [ -3, 1; 0, 1; 1, 1; 4, 4 ]; + let app, scope, context, _ = boundary_fixture () in + let open Lui_json_view in + let on_event ~id:_ ~kind:_ ~fields:_ = () in + let json_tree = + Obj + [ + "kind", Str "column"; + "cursor", Str "bogus"; + "overflow", Str "bogus"; + "children", + Arr + [ + Obj + [ + "kind", Str "text"; + "value", Str "hello"; + "white-space", Str "bogus"; + "text-overflow", Str "bogus"; + "overflow", Str "bogus"; + "font-style", Str "bogus"; + ]; + Obj + [ + "kind", Str "heading"; + "value", Str "title"; + "level", Num 99.; + ]; + Obj + [ + "kind", Str "toolbar"; + "label", Str "Tools"; + "placement", Str "bogus"; + "children", Arr []; + ]; + Obj + [ + "kind", Str "sheet"; + "text", Str "Details"; + "sizing", Str "bogus"; + "children", Arr []; + ]; + ]; + ] + in + let rendered = render ~on_event json_tree in + let root = Lui_elements.mount context rendered in + Alcotest.(check bool) "unknown JSON enums render and flush cleanly" true + (Lui_runtime.node_live app root && Lui_runtime.flush app); + Alcotest.(check int) "all JSON children mounted despite unknown enums" 4 + (List.length (Lui_runtime.children app root)); + (* Nested JSON menu surfaces forward Slot_style onto the inner dropdown_menu. *) + let surface_collision root = + match Lui_runtime.children app root with + | [ trigger ] -> ( + match Lui_runtime.children app trigger with + | [ surface ] -> property_value app surface CollisionPadding + | _ -> Alcotest.fail "expected nested dropdown-menu surface") + | _ -> Alcotest.fail "expected one menu trigger child" + in + let surface_menu = + render ~on_event + (Obj + [ + "kind", Str "dropdown-menu"; + "children", + Arr + [ + Obj + [ + "kind", Str "submenu"; + "text", Str "More"; + "collision-padding", Num 9.; + "children", Arr []; + ]; + ]; + ]) + in + let menu_root = Lui_elements.mount context surface_menu in + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "JSON dropdown_menu_submenu applies collision-padding" true + (surface_collision menu_root = FloatValue 9.); + let toolbar_surface = + render ~on_event + (Obj + [ + "kind", Str "toolbar"; + "label", Str "Actions"; + "children", + Arr + [ + Obj + [ + "kind", Str "menu"; + "text", Str "File"; + "collision-padding", Num 11.; + "children", Arr []; + ]; + ]; + ]) + in + let toolbar_root = Lui_elements.mount context toolbar_surface in + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "JSON toolbar_menu applies collision-padding" true + (surface_collision toolbar_root = FloatValue 11.); + Signal.dispose_scope scope + +let adr0008_keyed_range_optimizations () = + let app, scope, context, emitted = boundary_fixture () in + let parent = Lui_ui.column context in + let items = Signal.state context.Lui_ui.ui_scheduler [ (1, "a"); (2, "b"); (3, "c") ] in + Lui_dynamic.keyed_range context parent (Signal.value items) fst Int.compare + (fun row item -> + let label = Lui_ui.map row snd item in + let node = Lui_ui.text_signal row label in + Lui_ui.append row parent node); + Signal.mount scope; + ignore (Lui_runtime.flush app); + let count_ops pred ops = List.length (List.filter pred ops) in + let is_insert = function InsertChild (p, _, _) -> p = parent | _ -> false in + let is_move = function MoveChild (p, _, _) -> p = parent | _ -> false in + (* 1. Unchanged-order update emits zero InsertChild and zero MoveChild *) + emitted := []; + Signal.set items [ (1, "a2"); (2, "b2"); (3, "c2") ]; + ignore (Lui_runtime.flush app); + Alcotest.(check int) "unchanged order emits zero InsertChild" 0 + (count_ops is_insert !emitted); + Alcotest.(check int) "unchanged order emits zero MoveChild" 0 + (count_ops is_move !emitted); + (* 2. Pure insertion (prepend, middle, append) emits InsertChild with zero MoveChild *) + emitted := []; + Signal.set items + [ (0, "pre"); (1, "a2"); (15, "mid"); (2, "b2"); (3, "c2"); (4, "app") ]; + ignore (Lui_runtime.flush app); + Alcotest.(check int) "pure insertion emits 3 InsertChild" 3 + (count_ops is_insert !emitted); + Alcotest.(check int) "pure insertion emits zero MoveChild" 0 + (count_ops is_move !emitted); + let texts () = + List.map + (fun id -> + match property_value app id TextValue with StringValue s -> s | _ -> "") + (Lui_runtime.children app parent) + in + Alcotest.(check (list string)) "pure insertion lands at final positions" + [ "pre"; "a2"; "mid"; "b2"; "c2"; "app" ] + (texts ()); + (* 3. Single-item move in a 10-item list emits <= 1 MoveChild *) + let ten = List.init 10 (fun i -> (i, Printf.sprintf "i%d" i)) in + Signal.set items ten; + ignore (Lui_runtime.flush app); + let ids_before = Lui_runtime.children app parent in + emitted := []; + (* Move item 9 to the front: [9; 0; 1; 2; 3; 4; 5; 6; 7; 8] *) + let moved = + (9, "i9") :: List.init 9 (fun i -> (i, Printf.sprintf "i%d" i)) + in + Signal.set items moved; + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "moving 1 of 10 items emits <= 1 MoveChild" true + (count_ops is_move !emitted <= 1); + Alcotest.(check (list int)) "moving 1 of 10 preserves ids in new order" + (List.nth ids_before 9 :: List.filteri (fun i _ -> i < 9) ids_before) + (Lui_runtime.children app parent); + Signal.dispose_scope scope; + (* 4. Multi-node segment reorder emits minimal MoveChild ops (<= moved nodes) *) + let app2, scope2, ctx2, emitted2 = boundary_fixture () in + let parent2 = Lui_ui.column ctx2 in + let seg_items = Signal.state ctx2.Lui_ui.ui_scheduler [ 0; 1; 2; 3; 4 ] in + Lui_dynamic.keyed_range ctx2 parent2 (Signal.value seg_items) Fun.id Int.compare + (fun row item -> + let key = Signal.sample item in + Lui_ui.append row parent2 (Lui_ui.text row (Printf.sprintf "%da" key)); + Lui_ui.append row parent2 (Lui_ui.text row (Printf.sprintf "%db" key))); + Signal.mount scope2; + ignore (Lui_runtime.flush app2); + let seg_ids_before = Lui_runtime.children app2 parent2 in + emitted2 := []; + (* Move 2-node segment 4 to index 0 *) + Signal.set seg_items [ 4; 0; 1; 2; 3 ]; + ignore (Lui_runtime.flush app2); + let seg_moves = + List.length + (List.filter (function MoveChild (p, _, _) -> p = parent2 | _ -> false) !emitted2) + in + Alcotest.(check bool) "moving 2-node segment in 5-item list emits <= 2 MoveChild" true + (seg_moves <= 2); + let seg_texts = + List.map + (fun id -> + match property_value app2 id TextValue with StringValue s -> s | _ -> "") + (Lui_runtime.children app2 parent2) + in + Alcotest.(check (list string)) "multi-node segment lands in order" + [ "4a"; "4b"; "0a"; "0b"; "1a"; "1b"; "2a"; "2b"; "3a"; "3b" ] + seg_texts; + Alcotest.(check (list int)) "multi-node segment preserves all node ids" + (List.sort Int.compare seg_ids_before) + (List.sort Int.compare (Lui_runtime.children app2 parent2)); + Signal.dispose_scope scope2; + (* 5. Scoped rollback preserves unrelated sibling subtrees and existing keyed items *) + let app3, scope3, ctx3, _ = boundary_fixture () in + let parent3 = Lui_ui.column ctx3 in + let prefix_box = Lui_ui.column ctx3 in + let prefix_leaf = Lui_ui.text ctx3 "prefix-leaf" in + Lui_ui.append ctx3 prefix_box prefix_leaf; + Lui_ui.append ctx3 parent3 prefix_box; + let roll_items = Signal.state ctx3.Lui_ui.ui_scheduler [ 1; 2 ] in + Lui_dynamic.keyed_range ctx3 parent3 (Signal.value roll_items) Fun.id Int.compare + (fun row item -> + let key = Signal.sample item in + let node = Lui_ui.text row (Printf.sprintf "item-%d" key) in + Lui_ui.append row parent3 node; + if key = 99 then failwith "fresh item mount failed"); + let suffix_box = Lui_ui.column ctx3 in + let suffix_leaf = Lui_ui.text ctx3 "suffix-leaf" in + Lui_ui.append ctx3 suffix_box suffix_leaf; + Lui_ui.append ctx3 parent3 suffix_box; + Signal.mount scope3; + ignore (Lui_runtime.flush app3); + let before_children = Lui_runtime.children app3 parent3 in + Signal.set roll_items [ 1; 3; 99; 2 ]; + check_failure "failing fresh item aborts update" + (attempt (fun () -> ignore (Lui_runtime.flush app3))); + Alcotest.(check (list int)) "rollback restores parent child list" + before_children (Lui_runtime.children app3 parent3); + Alcotest.(check bool) "prefix sibling subtree stays live" true + (Lui_runtime.node_live app3 prefix_box + && Lui_runtime.node_live app3 prefix_leaf + && Lui_runtime.children app3 prefix_box = [ prefix_leaf ]); + Alcotest.(check bool) "suffix sibling subtree stays live" true + (Lui_runtime.node_live app3 suffix_box + && Lui_runtime.node_live app3 suffix_leaf + && Lui_runtime.children app3 suffix_box = [ suffix_leaf ]); + (* Subsequent valid update still succeeds *) + Signal.set roll_items [ 1; 2; 4 ]; + ignore (Lui_runtime.flush app3); + Alcotest.(check int) "valid update after rollback succeeds" 5 + (List.length (Lui_runtime.children app3 parent3)); + Signal.dispose_scope scope3 + +let adr0008_polymorphic_el_and_collision_style () = + let app, scope, context, _ = boundary_fixture () in + let open Lui_elements in + let show = Signal.state context.Lui_ui.ui_scheduler true in + let items = Signal.state context.Lui_ui.ui_scheduler [ "K1"; "K2" ] in + let dyn_label = Signal.state context.Lui_ui.ui_scheduler "D1" in + let tb = + mount context + (toolbar ~label:"T" + [ + button ~text:"A" []; + if_ ~test:(Signal.value show) (button ~text:"B" []); + keyed_toolbar ~source:(Signal.value items) ~key:Fun.id + ~cmp:String.compare + ~mount:(fun s -> button ~text:(Signal.sample s) []); + reactive_toolbar (fun s -> button ~text:s []) (Signal.value dyn_label); + ]) + in + let dm_show = Signal.state context.Lui_ui.ui_scheduler true in + let dm_items = Signal.state context.Lui_ui.ui_scheduler [ "M1"; "M2" ] in + (* dropdown_menu mounts directly as general t without dropdown_menu_view *) + let dm_view : t = + dropdown_menu + [ + menu_item ~text:"A" []; + if_ ~test:(Signal.value dm_show) (divider []); + keyed_dropdown_menu_item ~source:(Signal.value dm_items) ~key:Fun.id + ~cmp:String.compare + ~mount:(fun s -> menu_item ~text:(Signal.sample s) []); + ] + in + let dm = mount context dm_view in + Signal.mount scope; + ignore (Lui_runtime.flush app); + let child_texts parent = + List.map + (fun id -> + match Property_map.find_opt TextValue (Hashtbl.find app.runtime_properties id) with + | Some (StringValue s) -> s + | _ -> "") + (Lui_runtime.children app parent) + in + Alcotest.(check (list string)) "toolbar initial children" + [ "A"; "B"; "K1"; "K2"; "D1" ] (child_texts tb); + Signal.set show false; + Signal.set items [ "K2"; "K3" ]; + Signal.set dyn_label "D2"; + ignore (Lui_runtime.flush app); + Alcotest.(check (list string)) "toolbar updated children" + [ "A"; "K2"; "K3"; "D2" ] (child_texts tb); + Alcotest.(check (list string)) "dropdown_menu initial children" + [ "A"; ""; "M1"; "M2" ] (child_texts dm); + Signal.set dm_show false; + Signal.set dm_items [ "M2" ]; + ignore (Lui_runtime.flush app); + Alcotest.(check (list string)) "dropdown_menu updated children" + [ "A"; "M2" ] (child_texts dm); + (* CollisionPadding via Slot_style.collision on popover, menu, and submenu *) + let pop = + mount context + (popover ~target:Cover + ~style:(Slot_style.collision ~collision_padding:12. ()) []) + in + let m = + mount context + (menu ~text:"File" + ~style:(Slot_style.collision ~collision_padding:10. ()) []) + in + let sub = + mount context + (submenu ~text:"More" + ~style:(Slot_style.collision ~collision_padding:6. ()) []) + in + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "popover emits CollisionPadding 12." true + (property_value app pop CollisionPadding = FloatValue 12.); + let menu_dropdown = List.hd (Lui_runtime.children app m) in + Alcotest.(check bool) "menu dropdown emits CollisionPadding 10." true + (property_value app menu_dropdown CollisionPadding = FloatValue 10.); + let sub_dropdown = List.hd (Lui_runtime.children app sub) in + Alcotest.(check bool) "submenu dropdown emits CollisionPadding 6." true + (property_value app sub_dropdown CollisionPadding = FloatValue 6.); + Signal.dispose_scope scope + +let adr0008_ui_composites_and_tokens () = + let app, scope, context, _ = boundary_fixture () in + let find_button_by_text root label = + let rec walk node = + if + Lui_runtime.require_standard_node_kind app node = Button + && Property_map.find_opt TextValue (Hashtbl.find app.runtime_properties node) + = Some (StringValue label) + then Some node + else List.find_map walk (Lui_runtime.children app node) + in + match walk root with + | Some id -> id + | None -> Alcotest.failf "button %S not found" label + in + (* 1. Ui.form_sheet ~confirm_disabled and ~confirm_disabled_signal *) + let static_sheet = + Lui_elements.mount context + (Lui.Ui.form_sheet ~title:"Edit" ~confirm:("SaveStatic", ignore) + ~confirm_disabled:true []) + in + let save_static = find_button_by_text static_sheet "SaveStatic" in + let disabled_sig = Signal.state context.Lui_ui.ui_scheduler true in + let reactive_sheet = + Lui_elements.mount context + (Lui.Ui.form_sheet ~title:"Edit" ~confirm:("SaveReactive", ignore) + ~confirm_disabled_signal:(Signal.value disabled_sig) []) + in + let save_reactive = find_button_by_text reactive_sheet "SaveReactive" in + Signal.mount scope; + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "static confirm_disabled sets Enabled=false" true + (property_value app save_static Enabled = BoolValue false); + Alcotest.(check bool) "reactive confirm_disabled starts Enabled=false" true + (property_value app save_reactive Enabled = BoolValue false); + Signal.set disabled_sig false; + ignore (Lui_runtime.flush app); + Alcotest.(check bool) "reactive confirm_disabled updates to Enabled=true" true + (property_value app save_reactive Enabled = BoolValue true); + (* 2. Dynamic if_ and keyed_list_section_item inside form_section & data_list *) + let show_row = Signal.state context.Lui_ui.ui_scheduler true in + let dyn_rows = Signal.state context.Lui_ui.ui_scheduler [ "r1"; "r2" ] in + let count_list_items root = + let rec walk node = + let self = + if Lui_runtime.require_standard_node_kind app node = ListItem then 1 else 0 + in + self + List.fold_left (fun acc c -> acc + walk c) 0 (Lui_runtime.children app node) + in + walk root + in + let fsec = + Lui_elements.mount context + (Lui.Ui.form_section ~title:"Dynamic" + [ + Lui_elements.if_ ~test:(Signal.value show_row) + (Lui.Ui.form_row (Lui_elements.text ~value:"conditional" [])); + Lui_elements.keyed_list_section_item ~source:(Signal.value dyn_rows) + ~key:Fun.id ~cmp:String.compare + ~mount:(fun s -> + Lui.Ui.form_row (Lui_elements.text ~value:(Signal.sample s) [])); + ]) + in + let dlist = + Lui_elements.mount context + (Lui.Ui.data_list ~label:"Items" + [ + Lui_elements.if_ ~test:(Signal.value show_row) + (Lui.Ui.data_row (Lui_elements.text ~value:"conditional" [])); + Lui_elements.keyed_list_section_item ~source:(Signal.value dyn_rows) + ~key:Fun.id ~cmp:String.compare + ~mount:(fun s -> + Lui.Ui.data_row (Lui_elements.text ~value:(Signal.sample s) [])); + ]) + in + ignore (Lui_runtime.flush app); + Alcotest.(check int) "form_section starts with 3 ListItem rows" 3 (count_list_items fsec); + Alcotest.(check int) "data_list starts with 3 ListItem rows" 3 (count_list_items dlist); + Signal.set show_row false; + ignore (Lui_runtime.flush app); + Alcotest.(check int) "form_section drops conditional row with zero empty shells" 2 + (count_list_items fsec); + Alcotest.(check int) "data_list drops conditional row with zero empty shells" 2 + (count_list_items dlist); + Signal.set dyn_rows []; + ignore (Lui_runtime.flush app); + Alcotest.(check int) "form_section empties with zero ListItem shells" 0 + (count_list_items fsec); + Alcotest.(check int) "data_list empties with zero ListItem shells" 0 + (count_list_items dlist); + (* 3. Typed token parameters on hstack, vstack, page, section *) + let hs = + Lui_elements.mount context + (Lui.Ui.hstack ~background:`card ~foreground:`foreground + ~border_color:`border ~corner_radius:`md ~gap:`lg ~padding:`sm []) + in + let vs = + Lui_elements.mount context + (Lui.Ui.vstack ~background:`surface ~foreground:`primary + ~border_color:`ring ~corner_radius:`xl ~gap:`xs ~padding:`lg []) + in + let pg = + Lui_elements.mount context + (Lui.Ui.page ~background:`background ~foreground:`foreground ~gap:`xl + ~padding:`page ~title:"P" []) + in + let sec = + Lui_elements.mount context + (Lui.Ui.section ~background:`surface_raised ~foreground:`muted_foreground + ~border_color:`input ~corner_radius:`lg ~gap:`sm ~padding:`md ~title:"S" []) + in + ignore (Lui_runtime.flush app); + List.iter + (fun (label, node, prop, expected) -> + Alcotest.(check bool) label true (property_value app node prop = expected)) + [ + "hstack background", hs, BackgroundValue, StringValue "card"; + "hstack foreground", hs, ForegroundValue, StringValue "foreground"; + "hstack border", hs, BorderColorValue, StringValue "border"; + "hstack radius", hs, CornerRadius, IntValue 6; + "hstack gap", hs, Gap, IntValue 16; + "hstack padding", hs, PaddingValue, IntValue 8; + "vstack background", vs, BackgroundValue, StringValue "surface"; + "vstack foreground", vs, ForegroundValue, StringValue "primary"; + "vstack border", vs, BorderColorValue, StringValue "ring"; + "vstack radius", vs, CornerRadius, IntValue 12; + "vstack gap", vs, Gap, IntValue 4; + "vstack padding", vs, PaddingValue, IntValue 16; + "page background", pg, BackgroundValue, StringValue "background"; + "page foreground", pg, ForegroundValue, StringValue "foreground"; + "page gap", pg, Gap, IntValue 24; + "page padding", pg, PaddingValue, IntValue 16; + "section background", sec, BackgroundValue, StringValue "surface-raised"; + "section foreground", sec, ForegroundValue, StringValue "muted-foreground"; + "section border", sec, BorderColorValue, StringValue "input"; + "section radius", sec, CornerRadius, IntValue 8; + "section gap", sec, Gap, IntValue 8; + "section padding", sec, PaddingValue, IntValue 12; + ]; + (* 4. Platform-adaptive spacing *) + let scale = [ `none; `xs; `sm; `md; `lg; `xl; `page ] in + Alcotest.(check (list int)) "MacOS spacing scale" [ 0; 4; 8; 12; 16; 24; 16 ] + (List.map (Lui.Tokens.space_value_for MacOS) scale); + Alcotest.(check (list int)) "IOS spacing scale" [ 0; 4; 10; 16; 20; 28; 20 ] + (List.map (Lui.Tokens.space_value_for IOS) scale); + Alcotest.(check (list int)) "AndroidOS spacing scale" [ 0; 4; 10; 16; 20; 28; 20 ] + (List.map (Lui.Tokens.space_value_for AndroidOS) scale); + let check_hstack_gap os host expected_gap = + let os_app = + Lui_runtime.create (Signal.scheduler ()) + { backend_profile = profile os host; apply_batch = (fun _ -> true) } + in + let os_scope = Signal.scope "os-gap" in + let os_ctx = Lui_ui.context os_app os_scope in + let row = Lui_elements.mount os_ctx (Lui.Ui.hstack []) in + ignore (Lui_runtime.flush os_app); + Alcotest.(check bool) "platform-adaptive hstack gap" true + (property_value os_app row Gap = IntValue expected_gap); + Signal.dispose_scope os_scope + in + check_hstack_gap IOS SwiftUIHost 10; + check_hstack_gap AndroidOS KotlinHost 10; + check_hstack_gap MacOS SwiftUIHost 8; + check_hstack_gap GenericOS GenericHost 8; + Signal.dispose_scope scope + let tests = existing_tests @ List.map (fun (name, test) -> Alcotest.test_case name `Quick test) ["review wide child reorder", review_wide_reorder; "review sibling owner identity", review_sibling_state; @@ -1877,4 +2655,12 @@ let tests = existing_tests @ List.map (fun (name, test) -> Alcotest.test_case na "property binding diamond", property_binding_diamond; "Phase 4 row visibility", phase4_rows_are_not_disclosures; "Phase 4 native form sections", phase4_form_sheet_sections; - "Phase 4 authoring contract", phase4_authoring_contract] + "Phase 4 authoring contract", phase4_authoring_contract; + "ADR 0008 popover target diff", adr0008_popover_target_diff; + "ADR 0008 dropdown_menu target diff", adr0008_dropdown_menu_target_diff; + "ADR 0008 split sizing diff", adr0008_split_sizing_diff; + "ADR 0008 text truncate style precedence", adr0008_text_truncate_style_precedence; + "ADR 0008 protocol numeric and JSON enums", adr0008_protocol_numeric_and_json_enums; + "ADR 0008 keyed_range optimizations", adr0008_keyed_range_optimizations; + "ADR 0008 polymorphic el and collision style", adr0008_polymorphic_el_and_collision_style; + "ADR 0008 Ui composites and tokens", adr0008_ui_composites_and_tokens] diff --git a/test/test_clock.ml b/test/test_clock.ml index a987af032..f88a641f5 100644 --- a/test/test_clock.ml +++ b/test/test_clock.ml @@ -143,13 +143,13 @@ let toast_view _context model send = [ Lui_elements.button ~text:"Show" ~on_press:(Lui_elements.press send `Show) []; Lui_elements.dyn ~equal:( = ) (fun shown -> - if shown then fun context parent -> - ignore (Lui_ui.after context 4_000. (fun () -> ignore (send `Hide))); - Lui_elements.row - [ Lui_elements.text ~value:"Saved" []; - Lui_elements.button ~text:"Close" - ~on_press:(Lui_elements.press send `Hide) [] ] - context parent + if shown then + Lui_elements.scoped (fun context -> + ignore (Lui_ui.after context 4_000. (fun () -> ignore (send `Hide))); + Lui_elements.row + [ Lui_elements.text ~value:"Saved" []; + Lui_elements.button ~text:"Close" + ~on_press:(Lui_elements.press send `Hide) [] ]) else Lui_elements.column []) model ] diff --git a/test/test_lui.ml b/test/test_lui.ml index 8ed21cb12..2188f4138 100644 --- a/test/test_lui.ml +++ b/test/test_lui.ml @@ -788,7 +788,7 @@ let ext_dyn_view _context model_source _send = Lui_elements.column [ Lui_elements.text ~value:"before" []; - (fun context parent -> + Lui_elements.custom (fun context parent -> let node = Lui_ui.extension context "web-view" in Lui_ui.extension_property context node "url" (Lui_protocol.StringValue m.ex_url); @@ -859,7 +859,7 @@ let drawer_view _context model_source _send = | Some url -> Lui_elements.column [ - (fun context parent -> + Lui_elements.custom (fun context parent -> let node = Lui_ui.extension context "web-view" in @@ -1088,10 +1088,10 @@ let test_dyn_remount_swaps_incompatible_kind () = ignore (Lui_app.dispose app) let capture_node cell element : Lui_elements.t = - fun context parent -> - let node = element context parent in - cell := node; - node + Lui_elements.custom (fun context parent -> + let node = Lui_elements.mount context ?parent element in + cell := node; + node) (* Drive-backed sessions mount the app against a replayed node tree, so behavior tests dispatch semantic events and assert on the tree a host @@ -1129,19 +1129,20 @@ let drive_press s sel = Drive.Session.press s (drive_node s sel).Drive.Model.id let test_dynamic_root_key ?(keyed_child = false) old_key next_key retain () = - let view _context source _send context parent = - let host = Lui_ui.column context in - Option.iter (fun parent -> Lui_ui.append context parent host) parent; - ignore (Lui_dynamic.switch context host source ( = ) - (fun branch (key, value) -> - let root = Lui_ui.scroll branch in - Option.iter (Lui_ui.key branch root) key; - let child = Lui_ui.create branch Lui_protocol.Text in - if keyed_child then Lui_ui.key branch child "stable-content"; - Lui_ui.string_property branch child Lui_protocol.TextValue value; - Lui_ui.append branch root child; - root)); - host + let view _context source _send = + Lui_elements.custom (fun context parent -> + let host = Lui_ui.column context in + Option.iter (fun parent -> Lui_ui.append context parent host) parent; + ignore (Lui_dynamic.switch context host source ( = ) + (fun branch (key, value) -> + let root = Lui_ui.scroll branch in + Option.iter (Lui_ui.key branch root) key; + let child = Lui_ui.create branch Lui_protocol.Text in + if keyed_child then Lui_ui.key branch child "stable-content"; + Lui_ui.string_property branch child Lui_protocol.TextValue value; + Lui_ui.append branch root child; + root)); + host) in let session = drive_mount ~initial:(old_key, "first") ~reducer:(fun _ next -> next) ~view () in @@ -1893,10 +1894,11 @@ let test_shrink_contract () = let backend = { (recording_backend ()) with backend_profile = profile GenericOS host } in Lui_app.create backend () (fun model () -> model) - (fun _ _ _ context parent -> - let node = Lui_elements.row ?shrink [] context parent in - configure context node; - node) + (fun _ _ _ -> + Lui_elements.custom (fun context parent -> + let node = Lui_elements.mount context ?parent (Lui_elements.row ?shrink []) in + configure context node; + node)) in List.iter (fun host -> let set = ref (fun () -> ()) and remove = ref (fun () -> ()) in @@ -2891,9 +2893,10 @@ let test_vocab_batch2 () = (fun _context _model_source _send -> Lui_elements.column [ capture_node menu_node - (Lui_elements.dropdown_menu_view (Lui_elements.dropdown_menu ~at:(48.0, 96.0) - ~on_dismiss:(fun _event -> ()) - [ Lui_elements.dropdown_menu_item ~text:"Item" [] ])) ]) + (Lui_elements.dropdown_menu_view + (Lui_elements.dropdown_menu ~target:(Lui_elements.Menu_at (48.0, 96.0)) + ~on_dismiss:(fun _event -> ()) + [ Lui_elements.dropdown_menu_item ~text:"Item" [] ])) ]) in ignore (Lui_app.start menu_app); flush_app menu_app; @@ -3155,8 +3158,8 @@ let test_visual_appearance_props () = ~line_height:"1.4" ~letter_spacing:(-0.5) ~white_space:`nowrap ~text_overflow:`ellipsis ~overflow:`hidden []); - capture_node row_node (fun context parent -> - let node = Lui_elements.row ~grow:1.0 [] context parent in + capture_node row_node (Lui_elements.custom (fun context parent -> + let node = Lui_elements.mount context ?parent (Lui_elements.row ~grow:1.0 []) in Lui_ui.string_property context node Position "absolute"; Lui_ui.float_property context node Inset 0.0; Lui_ui.int_property context node ZIndex 40; @@ -3172,7 +3175,7 @@ let test_visual_appearance_props () = "inset 0 0 0 1px var(--color-primary)"; Lui_ui.float_property context node DisabledOpacity 0.5; Lui_ui.float_property context node MaxHeightViewport 0.65; - node) ]) + node)) ]) in ignore (Lui_app.start app); flush_app app; @@ -4247,23 +4250,25 @@ let navigation_fixture ?host_profile ?(apple=true) ?(accept=true) ?(reenter=fals in let label_slot = Signal.state_slot "navigation-root-label" in let view _context source send = - let root context parent = - let label = Signal.state_at context.Lui_ui.ui_scheduler - context.Lui_ui.ui_state_scope label_slot "before" in - edit := Some (fun value -> Signal.set label value); - incr root_mounts; - Signal.on_dispose context.Lui_ui.ui_scope (fun () -> incr root_disposes); - Lui_elements.list [Lui_elements.list_item - [Lui_elements.text ~value_signal:(Signal.value label) []]] context parent + let root = + Lui_elements.scoped (fun context -> + let label = Signal.state_at context.Lui_ui.ui_scheduler + context.Lui_ui.ui_state_scope label_slot "before" in + edit := Some (fun value -> Signal.set label value); + incr root_mounts; + Signal.on_dispose context.Lui_ui.ui_scope (fun () -> incr root_disposes); + Lui_elements.list [Lui_elements.list_item + [Lui_elements.text ~value_signal:(Signal.value label) []]]) in Lui_navigation.navigation_stack ~path_signal:source ~on_path_change:(fun path -> incr callback_count; if accept then ignore (send (if reenter then Lui_navigation.Path.push "replacement" path else path))) - ~destination:(fun entry context parent -> - incr destination_mounts; - Signal.on_dispose context.Lui_ui.ui_scope (fun () -> incr destination_disposes); - Lui_elements.text ~value:entry.Lui_navigation.route [] context parent) + ~destination:(fun entry -> + Lui_elements.scoped (fun context -> + incr destination_mounts; + Signal.on_dispose context.Lui_ui.ui_scope (fun () -> incr destination_disposes); + Lui_elements.text ~value:entry.Lui_navigation.route [])) ~root () in let s = @@ -4411,10 +4416,11 @@ let test_navigation_entry_state () = ~view:(fun _ source send -> navigation_stack ~path_signal:source ~on_path_change:(fun path -> ignore (send path)) ~root:(Lui_elements.box []) - ~destination:(fun entry context parent -> - let local = Signal.state_at context.Lui_ui.ui_scheduler context.Lui_ui.ui_state_scope slot 0 in - Hashtbl.add states entry.id (local, context.Lui_ui.ui_state_scope); - Lui_elements.text ~value_signal:(Signal.map string_of_int (Signal.value local)) [] context parent) ()) () + ~destination:(fun entry -> + Lui_elements.scoped (fun context -> + let local = Signal.state_at context.Lui_ui.ui_scheduler context.Lui_ui.ui_state_scope slot 0 in + Hashtbl.add states entry.id (local, context.Lui_ui.ui_state_scope); + Lui_elements.text ~value_signal:(Signal.map string_of_int (Signal.value local)) [])) ()) () in let a = Path.push (fun () -> "same") Path.empty in let b = Path.push (fun () -> "same") a in @@ -4569,9 +4575,10 @@ let test_choice_label_opacity () = let backend={backend_profile=profile MacOS GenericHost; apply_batch=(fun batch -> batches:=batch::!batches;true)} in let app=Lui_app.create backend () (fun model () -> model) - (fun _ _ _ ctx parent -> - let node=Lui_elements.checkbox ~text:"Caption café 中文 😀" [] ctx parent in - Lui_ui.float_property ctx node property 0.7;node) in + (fun _ _ _ -> + Lui_elements.custom (fun ctx parent -> + let node=Lui_elements.mount ctx ?parent (Lui_elements.checkbox ~text:"Caption café 中文 😀" []) in + Lui_ui.float_property ctx node property 0.7;node)) in Fun.protect ~finally:(fun () -> ignore (Lui_app.dispose app)) (fun () -> ignore (Lui_app.start app); ignore (Lui_app.flush app); @@ -4730,16 +4737,17 @@ let fixture ?(host = WebHost) ?(count = 100_000) ?height ?scroll_key:(if resolver then Some (fun row -> string_of_int row.identity) else None) ~source ~key:(fun row -> row.identity) ~cmp:Int.compare - ~mount:(fun item_source -> fun context parent -> - let row = Signal.sample item_source in - if !fail_row = Some row.identity then failwith "row constructor failed"; - incr mounts; - Signal.on_dispose context.Lui_ui.ui_scope (fun () -> incr disposals); - let text = Signal.own_signal context.Lui_ui.ui_scope - (Signal.map (fun row -> row.text) item_source) in - Lui_elements.text_field ~text_signal:text - ~on_input:(fun text -> - ignore (send (Edit (row.identity, text)))) [] context parent) + ~mount:(fun item_source -> + Lui_elements.scoped (fun context -> + let row = Signal.sample item_source in + if !fail_row = Some row.identity then failwith "row constructor failed"; + incr mounts; + Signal.on_dispose context.Lui_ui.ui_scope (fun () -> incr disposals); + let text = Signal.own_signal context.Lui_ui.ui_scope + (Signal.map (fun row -> row.text) item_source) in + Lui_elements.text_field ~text_signal:text + ~on_input:(fun text -> + ignore (send (Edit (row.identity, text)))) [])) ()] in let app = Lui_app.create backend (rows count) reducer view in ignore (Lui_app.start app); @@ -5173,7 +5181,7 @@ let test_shared_retention_handoff () = (fun () -> failwith "shared candidate rejected"); Signal.on_dispose context.Lui_ui.ui_scope (fun () -> if value = 0 && !reject_retirement then failwith "shared retirement failed"); - make value context None)) in + Lui_elements.mount context (make value))) in column [if mode = `Source_only then capture_node mounted_owner (scroll ~virtual_owner:owner_a [ branch (fun value -> lists value source_a)]) @@ -5433,10 +5441,11 @@ let test_extension_roots_need_no_wrapper_or_foreign_properties () = let view _context source _send = Lui_elements.virtual_list ~height:100 ~item_extent:20. ~overscan:2 [Lui_elements.virtual_rows ~source ~key:(fun row -> row.identity) - ~cmp:Int.compare ~mount:(fun _source -> fun context parent -> - let node = Lui_ui.extension context "virtual-test-row" in - Option.iter (fun parent -> Lui_ui.append context parent node) parent; - node) ()] in + ~cmp:Int.compare ~mount:(fun _source -> + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "virtual-test-row" in + Option.iter (fun parent -> Lui_ui.append context parent node) parent; + node)) ()] in let app = Lui_app.create_with_extensions backend registry (rows 100_000) reducer view in Fun.protect (fun () -> ignore (Lui_app.start app); ignore (Lui_app.flush app); @@ -5555,16 +5564,15 @@ let test_final_sparse_metadata_matches_committed_children () = let backend = { backend_profile = profile WebOS WebHost; apply_batch = (fun batch -> batches := batch :: !batches; true) } in let view _context _source _send = - fun context parent -> - let node = Lui_elements.virtual_list - [Lui_elements.text ~value:"first" []; Lui_elements.text ~value:"second" []] - context parent in + Lui_elements.custom (fun context parent -> + let node = Lui_elements.mount context ?parent (Lui_elements.virtual_list + [Lui_elements.text ~value:"first" []; Lui_elements.text ~value:"second" []]) in list := node; List.iter (fun (property,value) -> Lui_runtime.set_prop context.Lui_ui.ui_application node property value) [VirtualTotalCount, IntValue 100; VirtualGeneration, IntValue 1; VirtualIndices, StringValue "[0,99]"; VirtualScrollIndex, IntValue (-1)]; - node in + node) in let app = Lui_app.create backend () (fun model _ -> model) view in Fun.protect (fun () -> ignore (Lui_app.start app); ignore (Lui_app.flush app); @@ -5763,20 +5771,21 @@ type startup_constructor = Startup_plain | Startup_extensions | Startup_reloadable | Startup_reloadable_extensions let startup_view ~with_extension ~observed_profile ~probe _context source _send = - fun context parent -> + Lui_elements.scoped (fun context -> observed_profile := Some context.Lui_ui.ui_profile; - let extension context parent = - let node = Lui_ui.extension context "startup-host-probe" in - probe := Some node; - Option.iter (fun parent -> Lui_ui.append context parent node) parent; - node in + let extension = + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context "startup-host-probe" in + probe := Some node; + Option.iter (fun parent -> Lui_ui.append context parent node) parent; + node) in Lui_elements.column (Lui_elements.virtual_list ~height:100 ~item_extent:20. ~overscan:2 [Lui_elements.virtual_rows ~source ~key:(fun row -> row.identity) ~cmp:Int.compare ~mount:(fun source -> let row = Signal.sample source in Lui_elements.text_field ~key:(string_of_int row.identity) ~text:row.text []) ()] - :: if with_extension then [extension] else []) context parent + :: if with_extension then [extension] else [])) let startup_application ?virtual_rows ~backend ~count constructor = let observed_profile = ref None and probe = ref None in @@ -5977,8 +5986,9 @@ let test_runtime_constructor_capability_is_immutable_and_owned () = let context = Lui_ui.context runtime scope in let source = Signal.state scheduler (rows count) in let observed_profile = ref None and probe = ref None in - let root = (startup_view ~with_extension ~observed_profile ~probe context - (Signal.value source) (fun _ -> false)) context None in + let root = Lui_elements.mount context + (startup_view ~with_extension ~observed_profile ~probe context + (Signal.value source) (fun _ -> false)) in Fun.protect (fun () -> Signal.mount scope; ignore (Lui_runtime.flush runtime); let list = startup_list runtime in diff --git a/tooling/generate_component_schema.mjs b/tooling/generate_component_schema.mjs index 41bbf18dc..c6b487640 100644 --- a/tooling/generate_component_schema.mjs +++ b/tooling/generate_component_schema.mjs @@ -2,7 +2,15 @@ import { readFileSync, writeFileSync } from 'node:fs'; import { createHash } from 'node:crypto'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { typedViewFunctions, typedViewSchema, typedViewSignature } from './typed_view_schema.mjs'; +import { + parseElementTypes, + parseSlotStyle, + parseSlotStyleBucket, + resolveElementResult, + typedViewFunctions, + typedViewSchema, + typedViewSignature, +} from './typed_view_schema.mjs'; import { renderEventPayloads, validateCallbackEvents } from './event_payload_schema.mjs'; const repository = resolve(dirname(fileURLToPath(import.meta.url)), '..'); @@ -484,6 +492,105 @@ ${extraEntries} `; } +const uiConstructors = [ + ['form_section', 'ListSection', 'ListSection', 'Children_list'], + ['form_sheet', 'Sheet', 'ListContainer', 'Children_list'], + ['form_row', 'ListItem', 'Column', 'Child_arguments 1'], + ['data_row', 'ListItem', 'Column', 'Child_arguments 1'], + ['data_list', 'ListContainer', 'ListSection', 'Children_list'], + ['hstack', 'Row', 'Row', 'Children_list'], + ['vstack', 'Column', 'Column', 'Children_list'], + ['page', 'Column', 'Column', 'Children_list'], + ['section', 'Column', 'Column', 'Children_list'], +]; + +function validateElementsCompleteness(schema) { + const elementsMli = readFileSync(resolve(repository, 'src/lui_elements.mli'), 'utf8'); + const uiMli = readFileSync(resolve(repository, 'src/lui_ui_composites.mli'), 'utf8'); + const admission = JSON.parse(readFileSync(resolve(repository, 'schema/apple-property-admission.json'), 'utf8')); + const functions = typedViewFunctions(elementsMli); + const slotStyle = parseSlotStyle(elementsMli); + if (!slotStyle) fail('missing Slot_style module signature in src/lui_elements.mli'); + const elementTypes = parseElementTypes(elementsMli); + + for (const [name, args] of functions) { + for (const arg of args.slice(0, -1)) { + const match = /^\??style:(.*)$/.exec(arg); + if (!match) continue; + const type = match[1]; + if (name === 'list' && type === 'list_style') continue; + const bucket = parseSlotStyleBucket(type); + if (!bucket || !slotStyle.bucketProperties.has(bucket)) { + fail(`constructor ${name} exposes unsupported ?style type: ${type}`); + } + const canonical = schema.slotConstructors?.[name]?.constructor ?? name; + const aliased = schema.constructorAliases?.[canonical] ?? canonical; + const wire = { separator: 'divider', menu: 'dropdown-menu', submenu: 'dropdown-menu' }[aliased] + ?? (aliased === 'switch_' ? 'switch' : aliased.replaceAll('_', '-')); + const admitted = admission.kinds[wire]; + if (!admitted) fail(`missing admission entry for styled constructor ${name} (${wire})`); + for (const property of slotStyle.bucketProperties.get(bucket)) { + if (!admitted.includes(property)) { + fail(`${name}.style (Slot_style.${bucket}) admits ${property}, unsupported on ${wire}`); + } + } + const expectedCaps = [...slotStyle.builders.entries()] + .filter(([, { properties }]) => properties.every((prop) => admitted.includes(prop))) + .map(([cap]) => cap); + const actualCaps = slotStyle.buckets.get(bucket); + if (expectedCaps.length !== actualCaps.length || expectedCaps.some((cap) => !actualCaps.includes(cap))) { + fail(`${name}.style bucket Slot_style.${bucket} (${actualCaps.join(', ')}) does not match admitted capabilities for ${wire} (${expectedCaps.join(', ')})`); + } + } + } + + const expectedSlots = new Map(); + for (const { constructor, result } of Object.values(schema.slotConstructors ?? {})) { + if (result === 'context_menu_item_el') continue; + if (!expectedSlots.has(constructor)) expectedSlots.set(constructor, new Set()); + expectedSlots.get(constructor).add(result); + } + if (schema.dynamicAdapters?.dropdown_menu) { + expectedSlots.set('dropdown_menu', new Set(['dropdown_menu_el'])); + } + + const actualSlots = new Map(); + for (const [name, args] of functions) { + const result = args.at(-1); + if (!result.startsWith('[<')) continue; + const resolved = resolveElementResult(result, elementTypes); + if (!resolved) fail(`cannot resolve polymorphic result type on ${name}: ${result}`); + if (resolved.primary !== 't') { + fail(`polymorphic constructor ${name} must include \`general capability: ${result}`); + } + actualSlots.set(name, new Set(resolved.slots)); + } + + for (const [constructor, expected] of expectedSlots) { + const actual = actualSlots.get(constructor); + if (!actual) { + fail(`missing polymorphic slot capabilities on ${constructor}; expected ${[...expected].sort().join(', ')}`); + } + const expectedList = [...expected].sort().join(', '); + const actualList = [...actual].sort().join(', '); + if (expectedList !== actualList) { + fail(`polymorphic slot capabilities on ${constructor} (${actualList}) do not match schema/components.json (${expectedList})`); + } + } + for (const [constructor, actual] of actualSlots) { + if (!expectedSlots.has(constructor)) { + fail(`unexpected polymorphic constructor ${constructor} (${[...actual].sort().join(', ')}) not declared in schema/components.json`); + } + } + + const uiFunctions = typedViewFunctions(uiMli); + for (const [name] of uiConstructors) { + if (!uiFunctions.has(name)) { + fail(`Lui_nesting_schema ui_constructor ${name} missing from src/lui_ui_composites.mli`); + } + } +} + function renderNestingSchema(schema) { const protocol = readFileSync(resolve(repository, 'src/lui_protocol.ml'), 'utf8'); const functions = typedViewFunctions(readFileSync(resolve(repository, 'src/lui_elements.mli'), 'utf8')); @@ -544,7 +651,7 @@ ${Object.entries({...schema.mandatoryParameters, | _ -> [] let scoped_adapter = function -${[...functions].filter(([, args]) => args.at(-1).endsWith('_el')).map(([name, args]) => ` | ${JSON.stringify(name)} -> "scoped_${args.at(-1).slice(0, -3)}"`).join('\n')} +${[...functions].filter(([, args]) => /^\w+_el$/.test(args.at(-1))).map(([name, args]) => ` | ${JSON.stringify(name)} -> "scoped_${args.at(-1).slice(0, -3)}"`).join('\n')} | _ -> "scoped" let dynamic_adapter = function @@ -555,6 +662,10 @@ let dynamic_adapter = function let exports = function | ${[...functions.keys()].map(JSON.stringify).join(' | ')} -> true | _ -> false + +let ui_constructor = function +${uiConstructors.map(([name, root, parent, shape]) => ` | ${JSON.stringify(name)} -> Some (${root}, ${parent}, ${shape})`).join('\n')} + | _ -> None `; } @@ -581,7 +692,10 @@ try { } validate(schema); -if (process.argv.includes('--validate')) process.exit(0); +if (process.argv.includes('--validate')) { + if (!argumentValue('--manifest')) validateElementsCompleteness(schema); + process.exit(0); +} if (process.argv.includes('--summary')) { const byStatus = (status) => schema.publicElements @@ -597,6 +711,7 @@ if (process.argv.includes('--summary')) { process.exit(0); } +validateElementsCompleteness(schema); const generated = artifacts(schema); if (process.argv.includes('--check')) { const stale = []; diff --git a/tooling/generate_extension_api.mjs b/tooling/generate_extension_api.mjs index e4cbefd1e..f47063ea9 100644 --- a/tooling/generate_extension_api.mjs +++ b/tooling/generate_extension_api.mjs @@ -258,16 +258,14 @@ function mountImpl(spec, comp) { return { impl: `let ${name} ${args.join(' ')} ${childrenArg} : Lui_elements.t = - fun context parent -> - let node = Lui_ui.extension context ${JSON.stringify(comp.identifier)} in - Option.iter (Lui_ui.key context node) key; + Lui_elements.custom (fun context parent -> + let node = Lui_ui.extension context ${JSON.stringify(comp.identifier)} in + Option.iter (Lui_ui.key context node) key; ${setters.join('\n')} ${handlers.join('\n')} - (match parent with - | Some parent -> Lui_ui.append context parent node - | None -> ()); + Lui_elements.attach context parent node; ${childrenMount} - node`, + node)`, decl: `val ${name} : ${params.join(' -> ')} -> ${childrenDecl} -> Lui_elements.t`, }; } diff --git a/tooling/test/component_schema_test.mjs b/tooling/test/component_schema_test.mjs index 720b77ec7..73af6d817 100644 --- a/tooling/test/component_schema_test.mjs +++ b/tooling/test/component_schema_test.mjs @@ -5,7 +5,12 @@ import { dirname, join, resolve } from 'node:path'; import { spawnSync } from 'node:child_process'; import test from 'node:test'; import { fileURLToPath } from 'node:url'; -import { typedViewFunctions, typedViewSchema } from '../typed_view_schema.mjs'; +import { + parseSlotStyle, + parseSlotStyleBucket, + typedViewFunctions, + typedViewSchema, +} from '../typed_view_schema.mjs'; import { callbackContract, renderEventPayloads } from '../event_payload_schema.mjs'; const repository = resolve(dirname(fileURLToPath(import.meta.url)), '../..'); @@ -14,9 +19,16 @@ const generator = join(repository, 'tooling/generate_component_schema.mjs'); test('element constructors expose only admitted properties and events', () => { const schema = JSON.parse(readFileSync(join(repository, 'schema/components.json'), 'utf8')); const admission = JSON.parse(readFileSync(join(repository, 'schema/apple-property-admission.json'), 'utf8')); - const functions = typedViewFunctions(readFileSync(join(repository, 'src/lui_elements.mli'), 'utf8')); + const signature = readFileSync(join(repository, 'src/lui_elements.mli'), 'utf8'); + const functions = typedViewFunctions(signature); + const slotStyle = parseSlotStyle(signature); + assert.ok(slotStyle, 'missing Slot_style module signature'); + assert.equal(slotStyle.bucketProperties.get('base')?.length, 12); + assert.equal(slotStyle.bucketProperties.get('typography_caps')?.length, 20); + assert.equal(slotStyle.bucketProperties.get('text_caps')?.length, 22); + assert.equal(slotStyle.bucketProperties.get('surface_caps')?.length, 21); const nesting = readFileSync(join(repository, 'ppx/lui_nesting_schema.ml'), 'utf8'); - const mapping = nesting.match(/let constructor = function([\s\S]*?)\nlet exports/)[1]; + const mapping = nesting.match(/let constructor = function([\s\S]*?)\nlet mandatory_labels/)[1]; const kinds = new Map(schema.nodeKinds.map(({ lg, wire }) => [lg, wire])); const constructors = [...mapping.matchAll(/^\s*\| (.+?) -> Some \((\w+), (\w+),/gm)] .flatMap(([, names, root, children]) => [...names.matchAll(/"(\w+)"/g)] @@ -59,7 +71,20 @@ test('element constructors expose only admitted properties and events', () => { if (!match) continue; const [, parameter, type] = match; const base = parameter.replace(/_signal$/, ''); - if (base === 'style' && type === 'Slot_style.t') continue; + if (base === 'style' && type.startsWith('Slot_style.')) { + const bucket = parseSlotStyleBucket(type); + assert.ok(bucket && slotStyle.bucketProperties.has(bucket), + `un-indexed or unknown Slot_style capability on ${constructor}.${parameter}: ${type}`); + const styleKind = ['menu', 'submenu'].includes(original) ? childKind : kind; + for (const property of slotStyle.bucketProperties.get(bucket)) { + assert.ok(schema.properties.some(({ wire }) => wire === property), + `unknown Slot_style property ${constructor}.${parameter}: ${property}`); + if (!admission.kinds[styleKind].includes(property)) { + violations.push(`${constructor}.${parameter} (Slot_style.${bucket}): ${property} unsupported on ${styleKind}`); + } + } + continue; + } if (base === 'key' || /^(t|\w+_el)( list)?$/.test(type)) continue; if (constructor === 'scroll' && base === 'virtual_owner' && type === 'Lui_virtual.owner') continue; if (original === 'virtual_list' && base === 'viewport' && type === 'Lui_virtual.source') continue; @@ -85,6 +110,11 @@ test('element constructors expose only admitted properties and events', () => { : aliases[base] ?? [base.replaceAll('_', '-')]; if (constructor === 'popover' && base === 'target') properties = ['x', 'y', 'anchor', 'anchor-target', 'anchor-rect', 'anchor-alignment', 'anchor-offset', 'anchor-alignment-offset']; + if (constructor === 'dropdown_menu' && base === 'target') { + assert.ok(type === 'dropdown_target' || type === 'dropdown_target Signal.signal', + `unexpected dropdown_menu.${parameter} type: ${type}`); + properties = ['x', 'y', 'anchor', 'anchor-alignment', 'anchor-offset']; + } if (constructor === 'split' && base === 'sizing') properties = ['value', 'first-pane-width']; if (constructor === 'split' && base === 'motion') properties = ['resize-duration', 'resize-easing', 'resize-origin']; if (['text', 'heading', 'paragraph', 'label'].includes(original) && base === 'role') properties = ['style-class']; @@ -116,6 +146,32 @@ test('raw constructor callbacks and schema payload drift are rejected', () => { const changed = structuredClone(schema); changed.events.find(event => event.lg === 'ValueChanged').fields[1] = ':int'; assert.throws(() => renderEventPayloads(changed), /incompatible callback scalar on_resize/); + const unindexedStyle = signature.replace('?style:Slot_style.base Slot_style.t', '?style:Slot_style.t'); + assert.notEqual(unindexedStyle, signature); + assert.throws(() => typedViewSchema(schema, unindexedStyle, implementation, {admission}), + /unknown Slot_style capability bucket/); + const overbroadStyle = signature.replace( + /val switch_ :\n\s*\?style:Slot_style\.base Slot_style\.t/, + 'val switch_ :\n ?style:Slot_style.text_caps Slot_style.t', + ); + assert.notEqual(overbroadStyle, signature); + assert.throws(() => typedViewSchema(schema, overbroadStyle, implementation, {admission}), + /Slot_style\.text_caps property .* unsupported on switch/); +}); + +test('nesting schema registers Ui.form_section and polymorphic scoped adapters', () => { + const nesting = readFileSync(join(repository, 'ppx/lui_nesting_schema.ml'), 'utf8'); + const scopedSection = nesting.match(/let scoped_adapter = function([\s\S]*?)\nlet dynamic_adapter/)[1]; + for (const polymorphic of ['button', 'row', 'dropdown_menu', 'menu_item', 'divider', 'list_item']) { + assert.equal(scopedSection.includes(`"${polymorphic}"`), false, + `${polymorphic} should fall through to polymorphic "scoped" adapter`); + } + assert.ok(scopedSection.includes('"scoped_dropdown_menu" -> "scoped_dropdown_menu"')); + assert.ok(scopedSection.includes('"scoped_toolbar" -> "scoped_toolbar"')); + assert.ok(scopedSection.includes('| _ -> "scoped"')); + const uiSection = nesting.match(/let ui_constructor = function([\s\S]*?)$/)[1]; + assert.ok(uiSection.includes('| "form_section" -> Some (ListSection, ListSection, Children_list)')); + assert.ok(uiSection.includes('| "form_sheet" -> Some (Sheet, ListContainer, Children_list)')); }); test('validation and rendering reject unknown callback events', () => { diff --git a/tooling/test/menu-item-style.test.mjs b/tooling/test/menu-item-style.test.mjs index 7eab5711f..cb353443c 100644 --- a/tooling/test/menu-item-style.test.mjs +++ b/tooling/test/menu-item-style.test.mjs @@ -16,28 +16,43 @@ test('menu-item styling preserves slot capabilities and reactive properties', () assert.equal(result.status, 0, result.stdout + result.stderr); }; const props = [ - ['font_size', 'FontSize', '"14px"', 'StringValue "14px"'], - ['font_weight', 'FontWeight', '500', 'IntValue 500'], - ['font_family', 'FontFamily', '"sans-serif"', 'StringValue "sans-serif"'], - ['font_style', 'FontStyle', '`italic', 'StringValue "italic"'], - ['line_height', 'LineHeight', '"20px"', 'StringValue "20px"'], - ['letter_spacing', 'LetterSpacing', '0.5', 'FloatValue 0.5'], - ['text_decoration', 'TextDecoration', '"underline"', 'StringValue "underline"'], - ['white_space', 'WhiteSpace', '`nowrap', 'StringValue "nowrap"'], - ['text_overflow', 'TextOverflow', '`ellipsis', 'StringValue "ellipsis"'], - ['overflow', 'Overflow', '`hidden', 'StringValue "hidden"'], - ['hover_background', 'HoverBackground', '"red"', 'StringValue "red"'], - ['hover_foreground', 'HoverForeground', '"blue"', 'StringValue "blue"'], - ['focus_within_background', 'FocusWithinBackground', '"green"', 'StringValue "green"'], - ['focus_within_border', 'FocusWithinBorder', '"black"', 'StringValue "black"'], - ['focus_shadow', 'FocusShadow', '"inset 0 0 0 2px blue"', 'StringValue "inset 0 0 0 2px blue"'], + ['font_size', 'FontSize', '"14px"', 'StringValue "14px"', 'typography'], + ['font_weight', 'FontWeight', '500', 'IntValue 500', 'typography'], + ['font_family', 'FontFamily', '"sans-serif"', 'StringValue "sans-serif"', 'typography'], + ['font_style', 'FontStyle', '`italic', 'StringValue "italic"', 'typography'], + ['line_height', 'LineHeight', '"20px"', 'StringValue "20px"', 'typography'], + ['letter_spacing', 'LetterSpacing', '0.5', 'FloatValue 0.5', 'typography'], + ['text_decoration', 'TextDecoration', '"underline"', 'StringValue "underline"', 'typography'], + ['white_space', 'WhiteSpace', '`nowrap', 'StringValue "nowrap"', 'text_flow'], + ['text_overflow', 'TextOverflow', '`ellipsis', 'StringValue "ellipsis"', 'text_flow'], + ['overflow', 'Overflow', '`hidden', 'StringValue "hidden"', 'make'], + ['hover_background', 'HoverBackground', '"red"', 'StringValue "red"', 'make'], + ['hover_foreground', 'HoverForeground', '"blue"', 'StringValue "blue"', 'make'], + ['focus_within_background', 'FocusWithinBackground', '"green"', 'StringValue "green"', 'make'], + ['focus_within_border', 'FocusWithinBorder', '"black"', 'StringValue "black"', 'make'], + ['focus_shadow', 'FocusShadow', '"inset 0 0 0 2px blue"', 'StringValue "inset 0 0 0 2px blue"', 'make'], ]; + const buildStyle = (entries, formatArg, extraByCtor = {}) => { + const groups = new Map(); + for (const [ctor, args] of Object.entries(extraByCtor)) { + groups.set(ctor, [...args]); + } + for (const entry of entries) { + const ctor = entry[4]; + if (!groups.has(ctor)) groups.set(ctor, []); + groups.get(ctor).push(formatArg(entry)); + } + const parts = [...groups.entries()].map( + ([ctor, args]) => `(Slot_style.${ctor} ${args.join(' ')} ())` + ); + return `~style:${parts.reduce((acc, part) => `(Slot_style.merge ${acc} ${part})`)}`; + }; try { success(['dune', 'build', 'ppx/lui_ppx.cmxa', 'src/lui.cmxa']); writeFileSync(join(dir, 'driver.ml'), 'let () = Ppxlib.Driver.standalone ()\n'); success(['ocamlfind', 'ocamlopt', '-package', 'ppxlib', '-linkpkg', '-linkall', '_build/default/ppx/lui_ppx.cmxa', join(dir, 'driver.ml'), '-o', join(dir, 'driver')]); - const staticProps = '~style:(Slot_style.make ' + props.map(([name, , value]) => `~${name}:(${value})`).join(' ') + ' ())'; + const staticProps = buildStyle(props, ([name, , value]) => `~${name}:(${value})`); const initial = { font_size: ['"12px"', 'StringValue "12px"'], font_weight: ['400', 'IntValue 400'], @@ -55,8 +70,12 @@ test('menu-item styling preserves slot capabilities and reactive properties', () focus_within_border: ['"gray"', 'StringValue "gray"'], focus_shadow: ['"none"', 'StringValue "none"'], }; - const reactiveProps = '~style:(Slot_style.make ~font_size:"999px" ' + props.map(([name, , value]) => - `~${name}:(reactive (fun active -> if active then ${value} else ${initial[name][0]}) source)`).join(' ') + ' ())'; + const reactiveProps = buildStyle( + props, + ([name, , value]) => + `~${name}:(reactive (fun active -> if active then ${value} else ${initial[name][0]}) source)`, + { typography: ['~font_size:"999px"'] } + ); const checks = props.map(([name, wire, , value]) => `check label (property node ${wire} = Some (if reactive && not active then ${initial[name][1]} else ${value}));`).join('\n'); const jsonProps = props.map(([name, , , wire]) => { @@ -129,9 +148,13 @@ let () = assert.equal(executed.status, 0, executed.stdout + executed.stderr); for (const expression of [ 'dropdown_menu_item ~font_weight:500 []', - 'dropdown_menu_item ~style:(Slot_style.make ~font_weight:"bold" ()) []', + 'dropdown_menu_item ~style:(Slot_style.typography ~font_weight:"bold" ()) []', + 'dropdown_menu_item ~style:(Slot_style.make ~font_weight:500 ()) []', + 'dropdown_menu_item ~style:(Slot_style.typography ~font_style:`invalid ()) []', 'dropdown_menu_item ~font_style:`invalid []', 'dropdown_menu [menu_item ~font_size:"14px" []]', + 'dropdown_menu_item ~style:(Slot_style.collision ~collision_padding:5. ()) []', + 'menu_item ~style:(Slot_style.collision ~collision_padding:5. ()) []', ]) { writeFileSync(join(dir, 'invalid.ml'), `open Lui_elements\nlet _ = ${expression}\n`); const result = run([...compile, '-c', join(dir, 'invalid.ml')]); diff --git a/tooling/test/ppx-hygiene.test.mjs b/tooling/test/ppx-hygiene.test.mjs index 8d6913b8e..666f7becd 100644 --- a/tooling/test/ppx-hygiene.test.mjs +++ b/tooling/test/ppx-hygiene.test.mjs @@ -56,7 +56,13 @@ test("PPX nesting diagnostics reject static illegal edges without guessing opaqu ["context_menu [reactive_context_menu_item (fun _ -> context_menu_item ~on_press:(fun () -> ()) ()) source]"], ['list [list_section ~header:(text ~value:"Title" []) [list_section_item []]]'], ['Lui.Ui.form_field ~label:"Name" ~error:(reactive (fun invalid -> if invalid then Some "Required" else None) source) (text_field [])'], - ['Lui.Ui.form_sheet ~title:"Edit" ~confirm_disabled:(reactive source) [Lui.Ui.form_section ~title:"Identity" [text_field []]]'], + ['Lui.Ui.form_sheet ~title:"Edit" ~confirm_disabled:true [Lui.Ui.form_section ~title:"Identity" [Lui.Ui.form_row (text_field [])]]'], + ['Lui.Ui.form_sheet ~title:"Edit" ~confirm_disabled:(reactive source) [Lui.Ui.form_section ~title:"Identity" [Lui_elements.list_item [text_field []]]]'], + ["Lui.Elements.context_menu [Lui.Elements.button ~text:{|Action|} []]", "context-menu", "button"], + ["Lui.Elements.(context_menu [button ~text:{|Action|} []])", "context-menu", "button"], + ["Lui.(Elements.context_menu [Elements.button ~text:{|Action|} []])", "context-menu", "button"], + ["let module E = Lui.Elements in E.context_menu [E.button ~text:{|Action|} []]", "context-menu", "button"], + ["let module E = Lui.Elements in E.context_menu [E.context_menu_item ~on_press:(fun () -> ()) ()]"], ["let button _ = context_menu_item ~on_press:(fun () -> ()) () in context_menu [button []]"], ["(fun button -> context_menu [button []]) (fun _ -> context_menu_item ~on_press:(fun () -> ()) ())"], ["let module Other = struct let button _ = context_menu_item ~on_press:(fun () -> ()) () end in context_menu [Other.button []]"], @@ -262,6 +268,9 @@ let () = String.concat ";" (List.init 200 (fun _ -> "menu_item []")) ^ ";button ~text:{|Action|} []]"); check false "open Lui_elements let _ = let child = button ~text:{|Action|} [] in Lui_elements.(context_menu [child])"; check false "module E = Lui_elements let _ = E.context_menu [E.button ~text:{|Action|} []]"; + check false "let _ = Lui.Elements.context_menu [Lui.Elements.button ~text:{|Action|} []]"; + check false "open Lui let _ = Elements.context_menu [Elements.button ~text:{|Action|} []]"; + check false "let _ = let module E = Lui.Elements in E.context_menu [E.button ~text:{|Action|} []]"; check false "open Lui_elements let wrap child = context_menu [child] let _ = wrap (button ~text:{|Action|} [])"; check false "open Lui_elements let make = context_menu ~disabled:false let _ = make [button ~text:{|Action|} []]"; check true "open Lui_elements module List = struct let map _ _ = [menu_item []] end let _ = context_menu (List.map (fun _ -> button ~text:{|Action|} []) [1])"; @@ -278,6 +287,11 @@ let () = check true "open Lui_elements let _ = column [if_ ~test:source (if_ ~test:source (menu_item []))]"; check true "open Lui_elements let f flag = let child = if flag then dropdown_menu [] else context_menu [] in if flag then menu_trigger [child] else button ~text:{|Action|} [child]"; check true "open Lui_elements let f context = let child = if Lui_ui.host context = KotlinHost then dropdown_menu [] else context_menu [] in if Lui_ui.host context = KotlinHost then menu_trigger [child] else button ~text:{|Action|} [child]"; + check true "open Lui let f context = let child = if Raw.host context = KotlinHost then Elements.dropdown_menu [] else Elements.context_menu [] in if Raw.host context = KotlinHost then Elements.menu_trigger [child] else Elements.button ~text:{|Action|} [child]"; + check false "open Lui let f context = let child = if Raw.host context = KotlinHost then Elements.context_menu [] else Elements.dropdown_menu [] in if Raw.host context = KotlinHost then Elements.menu_trigger [child] else Elements.button ~text:{|Action|} [child]"; + check true "let f context = let child = if Lui.Raw.host context = KotlinHost then Lui.Elements.dropdown_menu [] else Lui.Elements.context_menu [] in if Lui.Raw.host context = KotlinHost then Lui.Elements.menu_trigger [child] else Lui.Elements.button ~text:{|Action|} [child]"; + check true "let f context = let module R = Lui.Raw in let module E = Lui.Elements in let child = if R.host context = KotlinHost then E.dropdown_menu [] else E.context_menu [] in if R.host context = KotlinHost then E.menu_trigger [child] else E.button ~text:{|Action|} [child]"; + check false "let f context = let module R = Lui.Raw in let module E = Lui.Elements in let child = if R.host context = KotlinHost then E.context_menu [] else E.dropdown_menu [] in if R.host context = KotlinHost then E.menu_trigger [child] else E.button ~text:{|Action|} [child]"; check true "open Lui_elements let f flag = let child = if flag then dropdown_menu [] else context_menu [] in let same = flag in if not same then button ~text:{|Action|} [child] else menu_trigger [child]"; check true "open Lui_elements let f flag = let child = if flag then dropdown_menu [] else context_menu [] in match flag with true -> menu_trigger [child] | false -> button ~text:{|Action|} [child]"; check false "open Lui_elements let f flag other = let child = if flag then dropdown_menu [] else context_menu [] in let flag = other in if flag then menu_trigger [child] else button ~text:{|Action|} [child]"; @@ -342,8 +356,9 @@ let () = let view _context model_source _send = observed := Some model_source; Lui_elements.column [ - (fun context parent -> - Lui_elements.text ~value:(reactive render_value model_source) [] context parent); + Lui_elements.custom (fun context parent -> + Lui_elements.mount context ?parent + (Lui_elements.text ~value:(reactive render_value model_source) [])); reactive (fun _ -> Lui_elements.text ~value:(reactive render_value model_source) []) model_source ] in @@ -668,14 +683,15 @@ let () = borrowed := Some rows; let child = if fully_applied then - (fun context parent -> - Lui_elements.virtual_rows ~source:(reactive project (Signal.value rows)) - ~key:(fun row -> row) ~cmp:String.compare - ~mount:(fun source -> text ~value_signal:source []) () context parent) + Lui_elements.custom (fun context parent -> + Lui_elements.mount context ?parent + (Lui_elements.virtual_rows ~source:(reactive project (Signal.value rows)) + ~key:(fun row -> row) ~cmp:String.compare + ~mount:(fun source -> text ~value:(reactive source) []) ())) else virtual_rows ~source:(reactive project (Signal.value rows)) ~key:(fun row -> row) ~cmp:String.compare - ~mount:(fun source -> text ~value_signal:source []) () in + ~mount:(fun source -> text ~value:(reactive source) []) () in column [if_ ~test:shown (virtual_list ~height:100 ~item_extent:20. [child])] in let app = Lui_app.create backend true (fun _ shown -> shown) view in ignore (Lui_app.start app); ignore (Lui_app.flush app); @@ -710,3 +726,158 @@ let () = assert.equal(run([join(dir, "virtual_source")]).trim(), "owned") } finally { rmSync(dir, {recursive: true, force: true}) } }) + +test("public Lui.* facade preserves PPX reactive rewriting and Slot_style scoping", () => { + const dir = mkdtempSync(join(tmpdir(), "lui-facade-ppx-")) + const run = args => { + const result = spawnSync("opam", ["exec", "--", ...args], {cwd: root, encoding: "utf8"}) + assert.equal(result.status, 0, result.stdout + result.stderr) + return result.stdout + } + try { + run(["dune", "build", "ppx/lui_ppx.cmxa", "src/lui.cmxa"]) + writeFileSync(join(dir, "driver.ml"), "let () = Ppxlib.Driver.standalone ()\n") + run(["ocamlfind", "ocamlopt", "-package", "ppxlib", "-linkpkg", "-linkall", + "_build/default/ppx/lui_ppx.cmxa", join(dir, "driver.ml"), "-o", join(dir, "driver")]) + writeFileSync(join(dir, "facade.ml"), ` +module Opened = struct + open Lui + let view source = + Elements.text ~accessibility_identifier:"opened-text" + ~value:(reactive (fun active -> if active then "open-on" else "open-off") source) [] +end + +module Aliased = struct + module E = Lui.Elements + let view source = + E.text ~accessibility_identifier:"aliased-text" + ~value:(reactive (fun active -> if active then "alias-on" else "alias-off") source) [] +end + +let () = + let batches = ref [] in + let backend = { Lui.Protocol.backend_profile = Lui.Protocol.generic_profile (); + apply_batch = (fun batch -> batches := batch :: !batches; true) } in + let ops () = List.concat_map (fun (batch : Lui.Protocol.patch_batch) -> batch.ops) (List.rev !batches) in + let node label = List.fold_left (fun result -> function + | Lui.Protocol.SetProp (id, Lui.Protocol.AccessibilityIdentifier, Lui.Protocol.StringValue value) + when value = label -> id + | _ -> result) (-1) (ops ()) in + let property id prop = List.fold_left (fun result -> function + | Lui.Protocol.SetProp (target, key, value) when target = id && key = prop -> Some value + | _ -> result) None (ops ()) in + let view _context source _send = + Lui.Elements.column [ + Lui.Elements.text ~accessibility_identifier:"qualified-text" + ~value:(reactive (fun active -> if active then "qual-on" else "qual-off") source) []; + Opened.view source; + Aliased.view source; + Lui.Elements.button ~accessibility_identifier:"styled-btn" ~text:"Action" + ~style:(Lui.Elements.Slot_style.merge + (Lui.Elements.Slot_style.merge + (Lui.Elements.Slot_style.make + ~shadow:(reactive (fun active -> if active then "0 2px 4px black" else "none") source) ()) + (Lui.Elements.Slot_style.typography + ~font_size:(reactive (fun active -> if active then "16px" else "12px") source) ())) + (Lui.Elements.Slot_style.text_flow + ~white_space:(reactive (fun active -> if active then \`nowrap else \`normal) source) ())) []; + Lui.Elements.popover ~accessibility_identifier:"styled-popover" + ~target:Lui.Elements.Cover + ~style:(Lui.Elements.Slot_style.collision + ~collision_padding:(reactive (fun active -> if active then 12. else 4.) source) ()) []; + Lui.Ui.form_sheet ~title:"Edit" ~confirm_disabled:true + [Lui.Ui.form_section ~title:"Identity" + [Lui.Ui.form_row (Lui.Elements.text_field [])]]; + Lui.Ui.form_sheet ~title:"Edit" ~confirm_disabled:(reactive source) + [Lui.Ui.form_section ~title:"Identity" + [Lui.Elements.list_item [Lui.Elements.text_field []]]]; + ] in + let app = Lui.App.create backend false (fun _ next -> next) view in + assert (Lui.App.start app); + ignore (Lui.App.flush app); + let verify active = + assert (property (node "qualified-text") Lui.Protocol.TextValue = + Some (Lui.Protocol.StringValue (if active then "qual-on" else "qual-off"))); + assert (property (node "opened-text") Lui.Protocol.TextValue = + Some (Lui.Protocol.StringValue (if active then "open-on" else "open-off"))); + assert (property (node "aliased-text") Lui.Protocol.TextValue = + Some (Lui.Protocol.StringValue (if active then "alias-on" else "alias-off"))); + let btn = node "styled-btn" in + assert (property btn Lui.Protocol.Shadow = + Some (Lui.Protocol.StringValue (if active then "0 2px 4px black" else "none"))); + assert (property btn Lui.Protocol.FontSize = + Some (Lui.Protocol.StringValue (if active then "16px" else "12px"))); + assert (property btn Lui.Protocol.WhiteSpace = + Some (Lui.Protocol.StringValue (if active then "nowrap" else "normal"))); + assert (property (node "styled-popover") Lui.Protocol.CollisionPadding = + Some (Lui.Protocol.FloatValue (if active then 12. else 4.))) + in + verify false; + assert (Lui.App.send app true); + ignore (Lui.App.flush app); + verify true; + assert (Lui.App.dispose app); + print_endline "facade" +`) + run(["ocamlfind", "ocamlopt", "-package", "ocaml-signal", "-linkpkg", "-ppx", + `${join(dir, "driver")} --as-ppx`, "-I", "_build/default/src/.lui.objs/byte", + "-I", "_build/default/src/.lui.objs/native", "_build/default/src/lui.cmxa", + join(dir, "facade.ml"), "-o", join(dir, "facade")]) + assert.equal(run([join(dir, "facade")]).trim(), "facade") + } finally { rmSync(dir, {recursive: true, force: true}) } +}) + +test("polymorphic el uniform dynamic combinators accept matching slots and reject mismatches", () => { + const dir = mkdtempSync(join(tmpdir(), "lui-polymorphic-el-")) + const run = args => spawnSync("opam", ["exec", "--", ...args], {cwd: root, encoding: "utf8"}) + const success = args => { + const result = run(args) + assert.equal(result.status, 0, result.stdout + result.stderr) + } + try { + success(["dune", "build", "ppx/lui_ppx.cmxa", "src/lui.cmxa"]) + writeFileSync(join(dir, "driver.ml"), "let () = Ppxlib.Driver.standalone ()\n") + success(["ocamlfind", "ocamlopt", "-package", "ppxlib", "-linkpkg", "-linkall", + "_build/default/ppx/lui_ppx.cmxa", join(dir, "driver.ml"), "-o", join(dir, "driver")]) + const compileWithPpx = ["ocamlfind", "ocamlc", "-package", "ocaml-signal", "-c", + "-ppx", `${join(dir, "driver")} --as-ppx`, + "-I", "_build/default/src/.lui.objs/byte"] + const compileRaw = ["ocamlfind", "ocamlc", "-package", "ocaml-signal", "-c", + "-I", "_build/default/src/.lui.objs/byte"] + + writeFileSync(join(dir, "valid.ml"), `open Lui_elements +let probe (flag : bool Signal.signal) + (items : string list Signal.signal) + (label_sig : string Signal.signal) = + let _ = toolbar ~label:"Actions" [ + button ~text:"A" []; + if_ ~test:flag (button ~text:"B" []); + keyed ~source:items ~key:Fun.id ~cmp:String.compare + ~mount:(fun s -> button ~text:(reactive s) []); + reactive (fun s -> button ~text:s []) label_sig; + ] in + let _ = dropdown_menu [ + menu_item ~text:"Open" []; + if_ ~test:flag (divider []); + keyed ~source:items ~key:Fun.id ~cmp:String.compare + ~mount:(fun s -> menu_item ~text:(reactive s) []); + ] in + () +`) + success([...compileWithPpx, join(dir, "valid.ml")]) + + for (const expression of [ + 'toolbar ~label:"Bad" [column []]', + 'menu_trigger (if_ ~test:flag (dropdown_menu []))', + ]) { + writeFileSync(join(dir, "invalid.ml"), `open Lui_elements +let bad (flag : bool Signal.signal) = ${expression} +`) + for (const cmd of [compileRaw, compileWithPpx]) { + const result = run([...cmd, join(dir, "invalid.ml")]) + assert.notEqual(result.status, 0, expression) + assert.match(result.stderr, /Error:/) + } + } + } finally { rmSync(dir, {recursive: true, force: true}) } +}) diff --git a/tooling/test/surface-toolbar-style.test.mjs b/tooling/test/surface-toolbar-style.test.mjs index 3c25f234c..4773050e8 100644 --- a/tooling/test/surface-toolbar-style.test.mjs +++ b/tooling/test/surface-toolbar-style.test.mjs @@ -16,35 +16,50 @@ test('surface and toolbar styling preserves capabilities, defaults and reactive assert.equal(result.status, 0, result.stdout + result.stderr); }; const props = [ - ['font_size', 'FontSize', '"14px"', 'StringValue "14px"'], - ['font_weight', 'FontWeight', '500', 'IntValue 500'], - ['font_family', 'FontFamily', '"sans-serif"', 'StringValue "sans-serif"'], - ['font_style', 'FontStyle', '`italic', 'StringValue "italic"'], - ['line_height', 'LineHeight', '"20px"', 'StringValue "20px"'], - ['letter_spacing', 'LetterSpacing', '0.5', 'FloatValue 0.5'], - ['text_decoration', 'TextDecoration', '"underline"', 'StringValue "underline"'], - ['white_space', 'WhiteSpace', '`nowrap', 'StringValue "nowrap"'], - ['text_overflow', 'TextOverflow', '`ellipsis', 'StringValue "ellipsis"'], - ['overflow', 'Overflow', '`hidden', 'StringValue "hidden"'], - ['hover_background', 'HoverBackground', '"red"', 'StringValue "red"'], - ['hover_foreground', 'HoverForeground', '"blue"', 'StringValue "blue"'], - ['focus_within_background', 'FocusWithinBackground', '"green"', 'StringValue "green"'], - ['focus_within_border', 'FocusWithinBorder', '"black"', 'StringValue "black"'], - ['focus_shadow', 'FocusShadow', '"inset 0 0 0 2px blue"', 'StringValue "inset 0 0 0 2px blue"'], - ['shadow', 'Shadow', '"0 2px 4px black"', 'StringValue "0 2px 4px black"'], - ['cursor', 'Cursor', '`pointer', 'StringValue "pointer"'], - ['user_select', 'UserSelect', '`none', 'StringValue "none"'], - ['disabled_opacity', 'DisabledOpacity', '0.5', 'FloatValue 0.5'], - ['pressed_opacity', 'PressedOpacity', '0.7', 'FloatValue 0.7'], - ['hover_opacity', 'HoverOpacity', '0.9', 'FloatValue 0.9'], - ['max_height_viewport', 'MaxHeightViewport', '0.75', 'FloatValue 0.75'], + ['font_size', 'FontSize', '"14px"', 'StringValue "14px"', 'typography'], + ['font_weight', 'FontWeight', '500', 'IntValue 500', 'typography'], + ['font_family', 'FontFamily', '"sans-serif"', 'StringValue "sans-serif"', 'typography'], + ['font_style', 'FontStyle', '`italic', 'StringValue "italic"', 'typography'], + ['line_height', 'LineHeight', '"20px"', 'StringValue "20px"', 'typography'], + ['letter_spacing', 'LetterSpacing', '0.5', 'FloatValue 0.5', 'typography'], + ['text_decoration', 'TextDecoration', '"underline"', 'StringValue "underline"', 'typography'], + ['white_space', 'WhiteSpace', '`nowrap', 'StringValue "nowrap"', 'text_flow'], + ['text_overflow', 'TextOverflow', '`ellipsis', 'StringValue "ellipsis"', 'text_flow'], + ['overflow', 'Overflow', '`hidden', 'StringValue "hidden"', 'make'], + ['hover_background', 'HoverBackground', '"red"', 'StringValue "red"', 'make'], + ['hover_foreground', 'HoverForeground', '"blue"', 'StringValue "blue"', 'make'], + ['focus_within_background', 'FocusWithinBackground', '"green"', 'StringValue "green"', 'make'], + ['focus_within_border', 'FocusWithinBorder', '"black"', 'StringValue "black"', 'make'], + ['focus_shadow', 'FocusShadow', '"inset 0 0 0 2px blue"', 'StringValue "inset 0 0 0 2px blue"', 'make'], + ['shadow', 'Shadow', '"0 2px 4px black"', 'StringValue "0 2px 4px black"', 'make'], + ['cursor', 'Cursor', '`pointer', 'StringValue "pointer"', 'make'], + ['user_select', 'UserSelect', '`none', 'StringValue "none"', 'typography'], + ['disabled_opacity', 'DisabledOpacity', '0.5', 'FloatValue 0.5', 'make'], + ['pressed_opacity', 'PressedOpacity', '0.7', 'FloatValue 0.7', 'make'], + ['hover_opacity', 'HoverOpacity', '0.9', 'FloatValue 0.9', 'make'], + ['max_height_viewport', 'MaxHeightViewport', '0.75', 'FloatValue 0.75', 'make'], ]; + const buildStyle = (entries, formatArg, extraByCtor = {}) => { + const groups = new Map(); + for (const [ctor, args] of Object.entries(extraByCtor)) { + groups.set(ctor, [...args]); + } + for (const entry of entries) { + const ctor = entry[4]; + if (!groups.has(ctor)) groups.set(ctor, []); + groups.get(ctor).push(formatArg(entry)); + } + const parts = [...groups.entries()].map( + ([ctor, args]) => `(Slot_style.${ctor} ${args.join(' ')} ())` + ); + return `~style:${parts.reduce((acc, part) => `(Slot_style.merge ${acc} ${part})`)}`; + }; try { success(['dune', 'build', 'ppx/lui_ppx.cmxa', 'src/lui.cmxa']); writeFileSync(join(dir, 'driver.ml'), 'let () = Ppxlib.Driver.standalone ()\n'); success(['ocamlfind', 'ocamlopt', '-package', 'ppxlib', '-linkpkg', '-linkall', '_build/default/ppx/lui_ppx.cmxa', join(dir, 'driver.ml'), '-o', join(dir, 'driver')]); - const staticProps = '~style:(Slot_style.make ' + props.map(([name, , value]) => `~${name}:(${value})`).join(' ') + ' ())'; + const staticProps = buildStyle(props, ([name, , value]) => `~${name}:(${value})`); const initial = { font_size: ['"12px"', 'StringValue "12px"'], font_weight: ['400', 'IntValue 400'], @@ -69,12 +84,25 @@ test('surface and toolbar styling preserves capabilities, defaults and reactive hover_opacity: ['0.8', 'FloatValue 0.8'], max_height_viewport: ['0.5', 'FloatValue 0.5'], }; - const reactiveProps = '~style:(Slot_style.make ~font_size:"999px" ' + props.map(([name, , value]) => - `~${name}:(reactive (fun active -> if active then ${value} else ${initial[name][0]}) source)`).join(' ') + ' ())'; + const reactiveProps = buildStyle( + props, + ([name, , value]) => + `~${name}:(reactive (fun active -> if active then ${value} else ${initial[name][0]}) source)`, + { typography: ['~font_size:"999px"'] } + ); const surfaceProps = props.filter(([name]) => !['white_space', 'text_overflow'].includes(name)); - const surfaceStaticProps = '~style:(Slot_style.make ' + surfaceProps.map(([name, , value]) => `~${name}:(${value})`).join(' ') + ' ())'; - const surfaceReactiveProps = '~style:(Slot_style.make ' + surfaceProps.map(([name, , value]) => - `~${name}:(reactive (fun active -> if active then ${value} else ${initial[name][0]}) source)`).join(' ') + ' ~collision_padding:99. ~collision_padding:(reactive (fun active -> if active then 5. else 2.) source) ())'; + const surfaceStaticProps = buildStyle(surfaceProps, ([name, , value]) => `~${name}:(${value})`); + const surfaceReactiveProps = buildStyle( + surfaceProps, + ([name, , value]) => + `~${name}:(reactive (fun active -> if active then ${value} else ${initial[name][0]}) source)`, + { + collision: [ + '~collision_padding:99.', + '~collision_padding:(reactive (fun active -> if active then 5. else 2.) source)', + ], + } + ); const checks = props.map(([name, wire, , value]) => `${['white_space', 'text_overflow'].includes(name) ? 'if not (List.mem label ["surface"; "surface-adapter"; "json-surface"]) then ' : ''}check label (property node ${wire} = Some (if reactive && not active then ${initial[name][1]} else ${value}));`).join('\n'); const jsonProps = props.map(([name, , , wire]) => { @@ -112,15 +140,16 @@ let json = Lui_json_view.Obj ["kind", Lui_json_view.Str "column"; let view _ source _ = column [ button ~text:"lazy-merge" ~style:(Slot_style.merge - (Slot_style.make + (Slot_style.typography ~font_size:(reactive (fun active -> if active then "14px" else "12px") source) ~font_weight:(reactive (fun _ -> failwith "overridden projection evaluated") source) ()) - (Slot_style.make ~font_weight:600 ())) []; + (Slot_style.typography ~font_weight:600 ())) []; button ~text:"merged" ~style:(Slot_style.merge - (Slot_style.make ~font_size:(reactive (fun active -> if active then "12px" else "10px") source) - ~hover_foreground:"red" ()) - (Slot_style.make ~font_size:"20px" ())) []; + (Slot_style.merge + (Slot_style.typography ~font_size:(reactive (fun active -> if active then "12px" else "10px") source) ()) + (Slot_style.make ~hover_foreground:"red" ())) + (Slot_style.typography ~font_size:"20px" ())) []; button ~text:"static" ${staticProps} []; button ~text:"ordinary" ${reactiveProps} []; toolbar ~label:"Actions" [toolbar_button ~text:"toolbar" ${reactiveProps} []]; @@ -182,28 +211,33 @@ let () = success([...compile, join(dir, 'probe.ml'), '-o', join(dir, 'probe')]); const executed = spawnSync(join(dir, 'probe'), [], { cwd: root, encoding: 'utf8' }); assert.equal(executed.status, 0, executed.stdout + executed.stderr); - writeFileSync(join(dir, 'unsupported.ml'), `open Lui_elements -open Lui_protocol -let backend = {backend_profile = generic_profile (); apply_batch = (fun _ -> true)} -let () = - let rejected = try - let app = Lui_app.create backend () (fun value _ -> value) (fun _ _ _ -> - button ~text:"Invalid" ~style:(Slot_style.make ~collision_padding:5. ()) []) in - ignore (Lui_app.start app); - ignore (Lui_app.dispose app); - false - with Invalid_argument message -> message = "Slot_style: property is unsupported on this kind" in - if not rejected then failwith "unsupported style was not rejected" -`); - success([...compile, join(dir, 'unsupported.ml'), '-o', join(dir, 'unsupported')]); - const unsupported = spawnSync(join(dir, 'unsupported'), [], { cwd: root, encoding: 'utf8' }); - assert.equal(unsupported.status, 0, unsupported.stdout + unsupported.stderr); + for (const expression of [ + 'popover ~style:(Slot_style.collision ~collision_padding:8. ()) ~target:Cover []', + 'menu ~style:(Slot_style.collision ~collision_padding:8. ()) []', + 'submenu ~style:(Slot_style.collision ~collision_padding:8. ()) []', + 'switch_ ~style:(Slot_style.make ~cursor:`pointer ()) []', + 'checkbox ~style:(Slot_style.typography ~font_size:"14px" ()) []', + ]) { + writeFileSync(join(dir, 'accepted.ml'), `open Lui_elements\nlet _ = ${expression}\n`); + const result = run([...compile, '-c', join(dir, 'accepted.ml')]); + assert.equal(result.status, 0, `${expression}\n${result.stdout}${result.stderr}`); + } for (const expression of [ 'toolbar_button ~text:"Copy" ~font_weight:"bold" []', 'dropdown_menu ~shadow:1 []', - 'toolbar ~label:"Actions" [button ~text:"Copy" []]', + 'toolbar ~label:"Actions" [column []]', 'dropdown_menu_item ~font_style:`invalid []', 'dropdown_menu [menu_item ~font_size:"14px" []]', + 'button ~text:"x" ~style:(Slot_style.collision ~collision_padding:5. ()) []', + 'switch_ ~style:(Slot_style.typography ~font_size:"14px" ()) []', + 'switch_ ~style:(Slot_style.text_flow ~white_space:`nowrap ()) []', + 'switch_ ~style:(Slot_style.collision ~collision_padding:5. ()) []', + 'checkbox ~style:(Slot_style.text_flow ~white_space:`nowrap ()) []', + 'checkbox ~style:(Slot_style.collision ~collision_padding:5. ()) []', + 'popover ~target:Cover ~style:(Slot_style.text_flow ~white_space:`nowrap ()) []', + 'dropdown_menu ~style:(Slot_style.text_flow ~white_space:`nowrap ()) []', + 'menu ~style:(Slot_style.text_flow ~white_space:`nowrap ()) []', + 'submenu ~style:(Slot_style.text_flow ~white_space:`nowrap ()) []', ]) { writeFileSync(join(dir, 'invalid.ml'), `open Lui_elements\nlet _ = ${expression}\n`); const result = run([...compile, '-c', join(dir, 'invalid.ml')]); diff --git a/tooling/typed_view_schema.mjs b/tooling/typed_view_schema.mjs index 5b6766d90..487b7ec0e 100644 --- a/tooling/typed_view_schema.mjs +++ b/tooling/typed_view_schema.mjs @@ -68,24 +68,132 @@ export function typedViewFunctions(signature) { return new Map(declarations.map(([, name, body]) => [name, split(body, '->')])); } +export function parseSlotStyleBucket(type) { + const match = /^Slot_style\.(\w+)\s+Slot_style\.t$/.exec(type); + return match ? match[1] : null; +} + +export function parseSlotStyle(signature) { + const source = uncomment(signature); + const block = source.match(/^module Slot_style : sig\b([\s\S]*?)^end\b/m); + if (!block) return null; + const body = block[1]; + const buckets = new Map(); + for (const [, name, members] of body.matchAll(/^\s*type (\w+)\s*=\s*\[([^\]]+)\]/gm)) { + const tags = split(members, '|').map((member) => { + const tag = /^`(\w+)$/.exec(member); + if (!tag) throw new Error(`unknown Slot_style capability tag in ${name}: ${member}`); + return tag[1]; + }); + buckets.set(name, tags); + } + const builders = new Map(); + for (const [, name, decl] of body.matchAll(/^\s*val (\w+)\s*:\s*([\s\S]*?)(?=^\s*(?:val|type|module|end)\b|$(?![\s\S]))/gm)) { + const parts = split(decl, '->'); + const args = parts.filter((arg) => arg.startsWith('?')); + if (!args.length) continue; + const result = parts.at(-1); + let tag; + if (name === 'make' && result === "'caps t") { + tag = 'base'; + } else { + const cap = /^\[>\s*`(\w+)\s*\]\s*t$/.exec(result); + if (!cap) throw new Error(`unknown Slot_style builder return type ${name}: ${result}`); + tag = cap[1]; + } + const properties = []; + const seen = new Set(); + for (const arg of args) { + const match = /^\?(\w+):(.*)$/.exec(arg); + if (!match) throw new Error(`invalid Slot_style argument ${name}: ${arg}`); + const prop = match[1].replace(/_signal$/, '').replaceAll('_', '-'); + if (!seen.has(prop)) { + seen.add(prop); + properties.push(prop); + } + } + builders.set(tag, { name, args, properties }); + } + const bucketArgs = new Map(); + const bucketProperties = new Map(); + for (const [bucket, tags] of buckets) { + const args = []; + const properties = []; + for (const tag of tags) { + const builder = builders.get(tag); + if (!builder) throw new Error(`missing Slot_style builder for capability ${tag} in ${bucket}`); + args.push(...builder.args); + properties.push(...builder.properties); + } + bucketArgs.set(bucket, args); + bucketProperties.set(bucket, properties); + } + return { buckets, builders, bucketArgs, bucketProperties }; +} + +export function parseElementTypes(signature) { + const source = uncomment(signature).replace(/Lui_elements\.t\b/g, 't'); + const results = new Set(['t']); + const tagToAlias = new Map([['general', 't']]); + for (const [, alias, tag] of source.matchAll(/^type (\w+_el)\s*=\s*\[\s*`(\w+)\s*\]\s*el\s*$/gm)) { + results.add(alias); + tagToAlias.set(tag, alias); + } + for (const [, alias] of source.matchAll(/^type (\w+_el)\s*$/gm)) { + results.add(alias); + } + return { results, tagToAlias }; +} + +export function resolveElementResult(result, elementTypes) { + if (elementTypes.results.has(result)) { + return { primary: result, slots: [], polymorphic: false }; + } + const match = /^\[<\s*([^\]]+)\]\s*el$/.exec(result); + if (!match) return null; + const tags = split(match[1], '|').map((member) => { + const tag = /^`(\w+)$/.exec(member); + if (!tag) throw new Error(`unknown polymorphic element tag: ${member}`); + return tag[1]; + }); + const aliases = tags.map((tag) => { + const alias = elementTypes.tagToAlias.get(tag); + if (!alias) throw new Error(`unknown element slot tag: \`${tag}`); + return alias; + }); + const primary = tags.includes('general') ? 't' : aliases[0]; + const slots = aliases.filter((alias) => alias !== primary); + return { primary, slots, polymorphic: true }; +} + export function typedViewSchema(schema, signature, implementation, {extension = false, admission} = {}) { const source = uncomment(signature).replace(/Lui_elements\.t\b/g, 't'); const functions = typedViewFunctions(signature); + const elementTypes = parseElementTypes(signature); + const slotStyle = parseSlotStyle(signature); + if (!extension && !slotStyle) throw new Error('missing Slot_style module signature'); const types = new Map([...source.matchAll(/^type (\w+)\s*=\s*(\[[\s\S]*?\])/gm)] .map(([, name, body]) => [name, split(body.slice(1, -1), '|')])); const converters = new Map([...uncomment(implementation).matchAll(/\blet \w+\s*:\s*(\w+)\s*->\s*string\s*=\s*function\b([\s\S]*?)(?=^let\b|$(?![\s\S]))/gm)] .map(([, type, body]) => [type, new Map([...body.matchAll(/\|\s*`(\w+)\s*->\s*"([^"\\]*)"/g)].map(([, tag, value]) => [tag, value]))])); const domains = new Map(); - const styleSignature = source.match(/module Slot_style : sig[\s\S]*?val make :([\s\S]*?)\n\s*val merge/); - const styleArguments = styleSignature ? split(styleSignature[1], '->').filter(arg => arg.startsWith('?')) : []; function expandStyle(args, wire) { return args.flatMap(arg => { - if (arg !== '?style:Slot_style.t') return [arg]; - if (!admission?.kinds[wire]) throw new Error(`missing style admission for ${wire}`); - return styleArguments.filter(argument => { - const name = /^\?(\w+):/.exec(argument)?.[1].replace(/_signal$/, '').replaceAll('_', '-'); - return admission.kinds[wire].includes(name); - }); + if (!arg.startsWith('?style:Slot_style.')) return [arg]; + const bucket = parseSlotStyleBucket(arg.slice(7)); + if (!bucket || !slotStyle?.bucketArgs.has(bucket)) { + throw new Error(`unknown Slot_style capability bucket for ${wire}: ${arg}`); + } + if (admission) { + const admitted = admission.kinds[wire]; + if (!admitted) throw new Error(`missing style admission for ${wire}`); + for (const prop of slotStyle.bucketProperties.get(bucket)) { + if (!admitted.includes(prop)) { + throw new Error(`Slot_style.${bucket} property ${prop} unsupported on ${wire}`); + } + } + } + return slotStyle.bucketArgs.get(bucket); }); } function enumValues(type, stack = []) { @@ -159,7 +267,12 @@ export function typedViewSchema(schema, signature, implementation, {extension = }).concat(children); } const properties = new Map(schema.properties.map(({wire, lg}) => [wire, lg])); - const results = new Set(['t', ...[...source.matchAll(/^type (\w+_el)\s*$/gm)].map(([, name]) => name)]); + const { results } = elementTypes; + const capabilities = new Map(); + const addCapability = (slot, kind) => { + if (!capabilities.has(slot)) capabilities.set(slot, new Set()); + capabilities.get(slot).add(kind); + }; const contracts = []; for (const {wire, lg} of schema.nodeKinds) { if (!extension && ['root', 'list-section-header', 'list-section-footer'].includes(wire)) { @@ -169,8 +282,10 @@ export function typedViewSchema(schema, signature, implementation, {extension = const name = wire === 'switch' ? 'switch_' : wire.replace(/-/g, '_'); const args = constructorArguments(name, wire); if (!args) throw new Error(`no typed constructor for ${wire}`); - const result = args.at(-1); - if (!results.has(result)) throw new Error(`unknown result type ${wire}: ${result}`); + const resolved = resolveElementResult(args.at(-1), elementTypes); + if (!resolved) throw new Error(`unknown result type ${wire}: ${args.at(-1)}`); + const result = resolved.primary; + for (const slot of resolved.slots) addCapability(slot, lg); const props = new Map(), events = new Set(), slots = [], children = []; for (const argument of args.slice(0, -1)) { const match = /^(\??)(\w+):(.*)$/.exec(argument); @@ -234,6 +349,8 @@ export function typedViewSchema(schema, signature, implementation, {extension = ['anchor-target', 'ViewString'], ['anchor-rect', '(ViewFloatTuple 4)'], ['anchor-alignment', domain('anchor_alignment')], ['anchor-offset', 'ViewFloat'], ['anchor-alignment-offset', 'ViewFloat']], + dropdown_target: () => [['x', 'ViewFloat'], ['y', 'ViewFloat'], ['anchor', domain('anchor')], + ['anchor-alignment', domain('anchor_alignment')], ['anchor-offset', 'ViewFloat']], split_sizing: () => [['value', 'ViewFloat'], ['first-pane-width', 'ViewFloat']], split_motion: () => [['resize-duration', 'ViewInt'], ['resize-easing', domain('resize_easing')], ['resize-origin', 'ViewFloat']], @@ -275,15 +392,13 @@ export function typedViewSchema(schema, signature, implementation, {extension = view_slots = ${list(slots)}; }`); } - const capabilities = new Map(); for (const {constructor, result} of Object.values(schema.slotConstructors ?? {})) { const canonical = schema.constructorAliases?.[constructor] ?? constructor; const wire = {separator: 'divider', menu: 'menu-trigger', submenu: 'menu-trigger'}[canonical] ?? canonical.replace(/_$/, '').replaceAll('_', '-'); const kind = schema.nodeKinds.find(kind => kind.wire === wire)?.lg; if (!kind) throw new Error(`unknown capability constructor ${constructor}`); - if (!capabilities.has(result)) capabilities.set(result, new Set()); - capabilities.get(result).add(kind); + addCapability(result, kind); } return `${extension ? '' : typedViewSignature} ${[...domains].map(([name, value]) => `let view_${name} = ${value}`).join('\n')} @@ -293,7 +408,6 @@ ${contracts.join('\n')} ${extension ? ' | _ -> None\n' : ''} ${extension ? '' : ` let view_slot_accepts slot kind = match slot, kind with - | "t", DropdownMenu -> true ${[...capabilities].map(([slot, kinds]) => ` | ${quote(slot)}, (${[...kinds].join(' | ')}) -> true`).join('\n')} | _ -> false `} diff --git a/tools/gen_json_view.py b/tools/gen_json_view.py index 420f9daaa..d2893a7ed 100644 --- a/tools/gen_json_view.py +++ b/tools/gen_json_view.py @@ -152,12 +152,16 @@ def extra_arg(name, typ, element=None): if element and name in DEAD_EVENTS.get(element, ()): return None j = name.replace('_', '-') - if typ == 'Slot_style.t': - schema = json.load(open('schema/components.json')) - constructor = schema.get('slotConstructors', {}).get(element, {}).get('constructor', element) - wire = schema.get('constructorAliases', {}).get(constructor, kind_of(constructor)) - kind = next(entry['lg'] for entry in schema['nodeKinds'] if entry['wire'] == wire) - return f'~style:(slot_style P.{kind} props)' + if typ == 'Slot_style.base Slot_style.t': + return '~style:(slot_style_base props)' + if typ == 'Slot_style.typography_caps Slot_style.t': + return '~style:(slot_style_typography props)' + if typ == 'Slot_style.text_caps Slot_style.t': + return '~style:(slot_style_text props)' + if typ == 'Slot_style.surface_caps Slot_style.t': + return '~style:(slot_style_surface props)' + if typ == 'dropdown_target': + return '?target:(dropdown_target_prop props)' if 'Signal.signal' in typ: return None if name in SKIP_ARGS or typ in SKIP_ARG_TYPES: @@ -423,16 +427,26 @@ def kids_expr(name, ret, parents): (* ---------- enum decoders (unknown -> None, never raise) ---------- *) +let diagnostic message = Printf.eprintf "LUI JSON view: %s\n%!" message + +let unknown_enum property value = + diagnostic + (Printf.sprintf "property=%s reason=unknown-enum value=%S fallback=none" + property value); + None + let cursor_opt = function | Some "default" -> Some `default | Some "pointer" -> Some `pointer | Some "text" -> Some `text - | None -> None | Some _ -> invalid_arg "Invalid cursor" + | None -> None + | Some value -> unknown_enum "cursor" value let user_select_opt = function | Some "none" -> Some `none | Some "text" -> Some `text - | None -> None | Some _ -> invalid_arg "Invalid user_select" + | None -> None + | Some value -> unknown_enum "user-select" value let variant_opt = function | Some "primary" -> Some `primary @@ -441,14 +455,16 @@ def kids_expr(name, ret, parents): | Some "ghost" -> Some `ghost | Some "destructive" -> Some `destructive | Some "default" -> Some `default - | _ -> None + | None -> None + | Some value -> unknown_enum "variant" value let control_size_opt = function | Some "sm" -> Some `sm | Some "lg" -> Some `lg | Some "icon" -> Some `icon | Some "default" -> Some `default - | _ -> None + | None -> None + | Some value -> unknown_enum "size" value let cell_size_opt = function | Some "heading" -> Some `heading @@ -460,45 +476,52 @@ def kids_expr(name, ret, parents): | Some ("end" | "end_") -> Some `end_ | Some ("space-between" | "space_between") -> Some `space_between | Some "start" -> Some `start - | _ -> None + | None -> None + | Some value -> unknown_enum "main" value let cross_opt = function | Some "stretch" -> Some `stretch | Some "start" -> Some `start | Some "center" -> Some `center | Some ("end" | "end_") -> Some `end_ - | _ -> None + | None -> None + | Some value -> unknown_enum "cross" value let text_align_opt = function | Some "center" -> Some `center | Some ("end" | "end_") -> Some `end_ | Some "start" -> Some `start - | _ -> None + | None -> None + | Some value -> unknown_enum "text-alignment" value let orientation_opt = function | Some "vertical" -> Some `vertical | Some "horizontal" -> Some `horizontal - | _ -> None + | None -> None + | Some value -> unknown_enum "orientation" value let icon_placement_opt = function | Some "trailing" -> Some `trailing | Some "top" -> Some `top | Some "leading" -> Some `leading - | _ -> None + | None -> None + | Some value -> unknown_enum "icon-placement" value let anchor_opt = function | Some "above" -> Some `above | Some "below" -> Some `below | Some "left" -> Some `left | Some "right" -> Some `right - | _ -> None + | None -> None + | Some value -> unknown_enum "anchor" value let anchor_align_opt = function | Some "start" -> Some `start | Some "center" -> Some `center | Some ("end" | "end_") -> Some `end_ | Some "stretch" -> Some `stretch - | _ -> None + | None -> None + | Some value -> unknown_enum "anchor-alignment" value let frame_axes_opt = function | Some "horizontal" -> Some `horizontal @@ -507,27 +530,31 @@ def kids_expr(name, ret, parents): | Some "min-horizontal" -> Some `min_horizontal | Some "min-vertical" -> Some `min_vertical | Some "min-both" -> Some `min_both - | _ -> None + | None -> None + | Some value -> unknown_enum "container-relative-frame" value let resize_easing_opt = function | Some "linear" -> Some `linear | Some "standard" -> Some `standard | Some "emphasized" -> Some `emphasized | Some "spring" -> Some `spring - | _ -> None + | None -> None + | Some value -> unknown_enum "resize-easing" value let role_opt = function | Some "treeitem" -> Some `treeitem | Some "navigation" -> Some `navigation | Some "navigation-heading" -> Some `navigation_heading - | _ -> None + | None -> None + | Some value -> unknown_enum "role" value let edge_opt = function | Some "top" -> Some `top | Some "bottom" -> Some `bottom | Some "leading" -> Some `leading | Some "trailing" -> Some `trailing - | _ -> None + | None -> None + | Some value -> unknown_enum "edge" value let alignment_opt = function | Some "top-leading" -> Some `top_leading @@ -539,7 +566,36 @@ def kids_expr(name, ret, parents): | Some "bottom-leading" -> Some `bottom_leading | Some "bottom" -> Some `bottom | Some "bottom-trailing" -> Some `bottom_trailing - | _ -> None + | None -> None + | Some value -> unknown_enum "alignment" value + +let font_style_opt = function + | Some "normal" -> Some `normal + | Some "italic" -> Some `italic + | Some "oblique" -> Some `oblique + | None -> None + | Some value -> unknown_enum "font-style" value + +let white_space_opt = function + | Some "normal" -> Some `normal + | Some "nowrap" -> Some `nowrap + | Some "pre-wrap" -> Some `pre_wrap + | Some "pre-line" -> Some `pre_line + | None -> None + | Some value -> unknown_enum "white-space" value + +let text_overflow_opt = function + | Some "clip" -> Some `clip + | Some "ellipsis" -> Some `ellipsis + | None -> None + | Some value -> unknown_enum "text-overflow" value + +let overflow_opt = function + | Some "visible" -> Some `visible + | Some "hidden" -> Some `hidden + | Some "auto" -> Some `auto + | None -> None + | Some value -> unknown_enum "overflow" value (* schema icon names; unknown -> `app (host-registered icon) *) let icon_of_string = function @@ -708,33 +764,51 @@ def kids_expr(name, ret, parents): ''' -STYLE = r'''let slot_style kind props = +STYLE = r'''let slot_style_base props : E.Slot_style.base E.Slot_style.t = E.Slot_style.make - ?font_size:(if P.property_supported kind P.FontSize then (v_str props "font-size") else None) - ?font_weight:(if P.property_supported kind P.FontWeight then (v_int props "font-weight") else None) - ?font_family:(if P.property_supported kind P.FontFamily then (v_str props "font-family") else None) - ?font_style:(if P.property_supported kind P.FontStyle then (font_style_opt (v_str props "font-style")) else None) - ?line_height:(if P.property_supported kind P.LineHeight then (v_str props "line-height") else None) - ?letter_spacing:(if P.property_supported kind P.LetterSpacing then (v_float props "letter-spacing") else None) - ?text_decoration:(if P.property_supported kind P.TextDecoration then (v_str props "text-decoration") else None) - ?white_space:(if P.property_supported kind P.WhiteSpace then (white_space_opt (v_str props "white-space")) else None) - ?text_overflow:(if P.property_supported kind P.TextOverflow then (text_overflow_opt (v_str props "text-overflow")) else None) - ?overflow:(if P.property_supported kind P.Overflow then (overflow_opt (v_str props "overflow")) else None) - ?hover_background:(if P.property_supported kind P.HoverBackground then (v_str props "hover-background") else None) - ?hover_foreground:(if P.property_supported kind P.HoverForeground then (v_str props "hover-foreground") else None) - ?focus_within_background:(if P.property_supported kind P.FocusWithinBackground then (v_str props "focus-within-background") else None) - ?focus_within_border:(if P.property_supported kind P.FocusWithinBorder then (v_str props "focus-within-border") else None) - ?focus_shadow:(if P.property_supported kind P.FocusShadow then (v_str props "focus-shadow") else None) - ?shadow:(if P.property_supported kind P.Shadow then (v_str props "shadow") else None) - ?collision_padding:(if P.property_supported kind P.CollisionPadding then (v_float props "collision-padding") else None) - ?cursor:(if P.property_supported kind P.Cursor then (cursor_opt (v_str props "cursor")) else None) - ?user_select:(if P.property_supported kind P.UserSelect then (user_select_opt (v_str props "user-select")) else None) - ?disabled_opacity:(if P.property_supported kind P.DisabledOpacity then (v_float props "disabled-opacity") else None) - ?pressed_opacity:(if P.property_supported kind P.PressedOpacity then (v_float props "pressed-opacity") else None) - ?hover_opacity:(if P.property_supported kind P.HoverOpacity then (v_float props "hover-opacity") else None) - ?max_height_viewport:(if P.property_supported kind P.MaxHeightViewport then (v_float props "max-height-viewport") else None) + ?overflow:(overflow_opt (v_str props "overflow")) + ?hover_background:(v_str props "hover-background") + ?hover_foreground:(v_str props "hover-foreground") + ?focus_within_background:(v_str props "focus-within-background") + ?focus_within_border:(v_str props "focus-within-border") + ?focus_shadow:(v_str props "focus-shadow") + ?shadow:(v_str props "shadow") + ?cursor:(cursor_opt (v_str props "cursor")) + ?disabled_opacity:(v_float props "disabled-opacity") + ?pressed_opacity:(v_float props "pressed-opacity") + ?hover_opacity:(v_float props "hover-opacity") + ?max_height_viewport:(v_float props "max-height-viewport") () +let slot_style_typography props : E.Slot_style.typography_caps E.Slot_style.t = + E.Slot_style.merge + (slot_style_base props :> E.Slot_style.typography_caps E.Slot_style.t) + (E.Slot_style.typography + ?font_size:(v_str props "font-size") + ?font_weight:(v_int props "font-weight") + ?font_family:(v_str props "font-family") + ?font_style:(font_style_opt (v_str props "font-style")) + ?line_height:(v_str props "line-height") + ?letter_spacing:(v_float props "letter-spacing") + ?text_decoration:(v_str props "text-decoration") + ?user_select:(user_select_opt (v_str props "user-select")) + ()) + +let slot_style_text props : E.Slot_style.text_caps E.Slot_style.t = + E.Slot_style.merge + (slot_style_typography props :> E.Slot_style.text_caps E.Slot_style.t) + (E.Slot_style.text_flow + ?white_space:(white_space_opt (v_str props "white-space")) + ?text_overflow:(text_overflow_opt (v_str props "text-overflow")) + ()) + +let slot_style_surface props : E.Slot_style.surface_caps E.Slot_style.t = + E.Slot_style.merge + (slot_style_typography props :> E.Slot_style.surface_caps E.Slot_style.t) + (E.Slot_style.collision + ?collision_padding:(v_float props "collision-padding") + ()) + ''' if __name__ == '__main__':