@elaraai/east-ui 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/buttons/button/index.d.ts +3 -2
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +2 -2
- package/dist/src/buttons/button/types.d.ts +1 -0
- package/dist/src/buttons/button/types.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.d.ts +4 -2
- package/dist/src/buttons/copy-button/index.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.js +2 -2
- package/dist/src/buttons/copy-button/types.d.ts +2 -0
- package/dist/src/buttons/copy-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +5 -1
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +1 -1
- package/dist/src/buttons/icon-button/types.d.ts +4 -0
- package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
- package/dist/src/charts/sparkline/index.d.ts +3 -3
- package/dist/src/charts/sparkline/index.js +3 -3
- package/dist/src/charts/spec/index.d.ts +1 -1
- package/dist/src/charts/spec/index.js +1 -1
- package/dist/src/collections/table/types.d.ts +1 -0
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.d.ts +8 -2
- package/dist/src/collections/tree-view/index.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.js +4 -4
- package/dist/src/component.d.ts +80 -0
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +31 -0
- package/dist/src/component.js.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts +1 -1
- package/dist/src/disclosure/carousel/index.js +1 -1
- package/dist/src/disclosure/segment-group/index.d.ts +1 -0
- package/dist/src/disclosure/segment-group/index.d.ts.map +1 -1
- package/dist/src/disclosure/segment-group/types.d.ts +1 -0
- package/dist/src/disclosure/segment-group/types.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +1 -0
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/types.d.ts +1 -0
- package/dist/src/disclosure/tabs/types.d.ts.map +1 -1
- package/dist/src/display/avatar/index.d.ts +2 -0
- package/dist/src/display/avatar/index.d.ts.map +1 -1
- package/dist/src/display/avatar/types.d.ts +2 -0
- package/dist/src/display/avatar/types.d.ts.map +1 -1
- package/dist/src/display/avatar-group/types.d.ts +1 -0
- package/dist/src/display/avatar-group/types.d.ts.map +1 -1
- package/dist/src/display/badge/index.d.ts +2 -0
- package/dist/src/display/badge/index.d.ts.map +1 -1
- package/dist/src/display/badge/types.d.ts +2 -0
- package/dist/src/display/badge/types.d.ts.map +1 -1
- package/dist/src/display/icon/index.d.ts +3 -1
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +1 -1
- package/dist/src/display/icon/types.d.ts +2 -0
- package/dist/src/display/icon/types.d.ts.map +1 -1
- package/dist/src/display/kbd/types.d.ts +2 -0
- package/dist/src/display/kbd/types.d.ts.map +1 -1
- package/dist/src/display/segmented-meter/index.js +1 -1
- package/dist/src/display/stat/types.d.ts +1 -0
- package/dist/src/display/stat/types.d.ts.map +1 -1
- package/dist/src/display/tag/index.d.ts +2 -0
- package/dist/src/display/tag/index.d.ts.map +1 -1
- package/dist/src/display/tag/types.d.ts +2 -0
- package/dist/src/display/tag/types.d.ts.map +1 -1
- package/dist/src/forms/checkbox/types.d.ts +2 -0
- package/dist/src/forms/checkbox/types.d.ts.map +1 -1
- package/dist/src/forms/field/index.d.ts +4 -0
- package/dist/src/forms/field/index.d.ts.map +1 -1
- package/dist/src/forms/field/types.d.ts +8 -0
- package/dist/src/forms/field/types.d.ts.map +1 -1
- package/dist/src/forms/radio-card-group/types.d.ts +2 -0
- package/dist/src/forms/radio-card-group/types.d.ts.map +1 -1
- package/dist/src/forms/radio-group/types.d.ts +2 -0
- package/dist/src/forms/radio-group/types.d.ts.map +1 -1
- package/dist/src/forms/slider/index.d.ts +2 -0
- package/dist/src/forms/slider/index.d.ts.map +1 -1
- package/dist/src/forms/slider/types.d.ts +2 -0
- package/dist/src/forms/slider/types.d.ts.map +1 -1
- package/dist/src/forms/switch/types.d.ts +2 -0
- package/dist/src/forms/switch/types.d.ts.map +1 -1
- package/dist/src/forms/tags-input/types.d.ts +2 -0
- package/dist/src/forms/tags-input/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +1 -1
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +1 -1
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +2 -2
- package/dist/src/layout/box/index.js +2 -2
- package/dist/src/layout/configurator/index.d.ts +207 -0
- package/dist/src/layout/configurator/index.d.ts.map +1 -0
- package/dist/src/layout/configurator/index.js +177 -0
- package/dist/src/layout/configurator/index.js.map +1 -0
- package/dist/src/layout/configurator/types.d.ts +57 -0
- package/dist/src/layout/configurator/types.d.ts.map +1 -0
- package/dist/src/layout/configurator/types.js +38 -0
- package/dist/src/layout/configurator/types.js.map +1 -0
- package/dist/src/layout/index.d.ts +1 -0
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +1 -0
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/navigation/nav-list/types.d.ts +3 -0
- package/dist/src/navigation/nav-list/types.d.ts.map +1 -1
- package/dist/src/overlays/command-palette/types.d.ts +2 -0
- package/dist/src/overlays/command-palette/types.d.ts.map +1 -1
- package/dist/src/runtime/charts/sparkline.d.ts +1 -1
- package/dist/src/runtime/charts/sparkline.js +1 -1
- package/dist/src/runtime/disclosure/carousel.d.ts +3 -3
- package/dist/src/runtime/disclosure/carousel.js +3 -3
- package/dist/src/runtime/disclosure/collapsible.d.ts +1 -1
- package/dist/src/runtime/disclosure/collapsible.js +1 -1
- package/dist/src/runtime/layout/box.d.ts +1 -1
- package/dist/src/runtime/layout/box.js +1 -1
- package/dist/src/runtime/layout/configurator.d.ts +56 -0
- package/dist/src/runtime/layout/configurator.d.ts.map +1 -0
- package/dist/src/runtime/layout/configurator.js +53 -0
- package/dist/src/runtime/layout/configurator.js.map +1 -0
- package/dist/src/runtime/layout/grid.d.ts +4 -4
- package/dist/src/runtime/layout/grid.js +4 -4
- package/dist/src/runtime/layout/index.d.ts +1 -0
- package/dist/src/runtime/layout/index.d.ts.map +1 -1
- package/dist/src/runtime/layout/index.js +1 -0
- package/dist/src/runtime/layout/index.js.map +1 -1
- package/dist/src/runtime/layout/splitter.d.ts +2 -2
- package/dist/src/runtime/layout/splitter.js +2 -2
- package/dist/src/runtime/layout/stack.d.ts +1 -1
- package/dist/src/runtime/layout/stack.js +1 -1
- package/dist/src/runtime/layout/sticky.d.ts +2 -2
- package/dist/src/runtime/layout/sticky.js +2 -2
- package/dist/src/runtime/overlays/hover-card.d.ts +1 -1
- package/dist/src/runtime/overlays/hover-card.js +1 -1
- package/dist/src/runtime/typography/heading.d.ts +1 -1
- package/dist/src/runtime/typography/heading.js +1 -1
- package/dist/src/runtime/typography/highlight.d.ts +1 -1
- package/dist/src/runtime/typography/highlight.js +1 -1
- package/dist/src/runtime/typography/text.d.ts +1 -1
- package/dist/src/runtime/typography/text.js +1 -1
- package/dist/src/style/namespace.d.ts +1 -0
- package/dist/src/style/namespace.d.ts.map +1 -1
- package/dist/src/style/scheme.d.ts +6 -1
- package/dist/src/style/scheme.d.ts.map +1 -1
- package/dist/src/style/scheme.js +5 -0
- package/dist/src/style/scheme.js.map +1 -1
- package/dist/src/typography/heading/index.d.ts +1 -1
- package/dist/src/typography/heading/index.js +1 -1
- package/dist/src/typography/highlight/index.d.ts +1 -1
- package/dist/src/typography/highlight/index.js +1 -1
- package/dist/src/typography/list/index.d.ts +2 -0
- package/dist/src/typography/list/index.d.ts.map +1 -1
- package/dist/src/typography/list/types.d.ts +2 -0
- package/dist/src/typography/list/types.d.ts.map +1 -1
- package/dist/src/typography/text/index.d.ts +1 -1
- package/dist/src/typography/text/index.js +1 -1
- package/dist/test/buttons/button-group.examples.d.ts +1 -2
- package/dist/test/buttons/button-group.examples.d.ts.map +1 -1
- package/dist/test/buttons/button-group.examples.js +36 -17
- package/dist/test/buttons/button-group.examples.js.map +1 -1
- package/dist/test/buttons/button.examples.d.ts +3 -9
- package/dist/test/buttons/button.examples.d.ts.map +1 -1
- package/dist/test/buttons/button.examples.js +77 -81
- package/dist/test/buttons/button.examples.js.map +1 -1
- package/dist/test/buttons/close-button.examples.d.ts +3 -3
- package/dist/test/buttons/close-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/close-button.examples.js +41 -23
- package/dist/test/buttons/close-button.examples.js.map +1 -1
- package/dist/test/buttons/copy-button.examples.d.ts +3 -2
- package/dist/test/buttons/copy-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/copy-button.examples.js +28 -15
- package/dist/test/buttons/copy-button.examples.js.map +1 -1
- package/dist/test/buttons/icon-button.examples.d.ts +1 -4
- package/dist/test/buttons/icon-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/icon-button.examples.js +118 -36
- package/dist/test/buttons/icon-button.examples.js.map +1 -1
- package/dist/test/buttons/toggle.examples.d.ts +1 -2
- package/dist/test/buttons/toggle.examples.d.ts.map +1 -1
- package/dist/test/buttons/toggle.examples.js +35 -22
- package/dist/test/buttons/toggle.examples.js.map +1 -1
- package/dist/test/charts/chart.examples.d.ts +17 -43
- package/dist/test/charts/chart.examples.d.ts.map +1 -1
- package/dist/test/charts/chart.examples.js +169 -432
- package/dist/test/charts/chart.examples.js.map +1 -1
- package/dist/test/charts/sparkline.examples.d.ts +2 -9
- package/dist/test/charts/sparkline.examples.d.ts.map +1 -1
- package/dist/test/charts/sparkline.examples.js +79 -70
- package/dist/test/charts/sparkline.examples.js.map +1 -1
- package/dist/test/collections/blend.examples.d.ts +13 -7
- package/dist/test/collections/blend.examples.d.ts.map +1 -1
- package/dist/test/collections/blend.examples.js +66 -65
- package/dist/test/collections/blend.examples.js.map +1 -1
- package/dist/test/collections/board.examples.d.ts +13 -11
- package/dist/test/collections/board.examples.d.ts.map +1 -1
- package/dist/test/collections/board.examples.js +228 -205
- package/dist/test/collections/board.examples.js.map +1 -1
- package/dist/test/collections/calendar.examples.d.ts +2 -6
- package/dist/test/collections/calendar.examples.d.ts.map +1 -1
- package/dist/test/collections/calendar.examples.js +91 -124
- package/dist/test/collections/calendar.examples.js.map +1 -1
- package/dist/test/collections/data-list.examples.d.ts +1 -7
- package/dist/test/collections/data-list.examples.d.ts.map +1 -1
- package/dist/test/collections/data-list.examples.js +93 -89
- package/dist/test/collections/data-list.examples.js.map +1 -1
- package/dist/test/collections/deck.examples.d.ts +8 -4
- package/dist/test/collections/deck.examples.d.ts.map +1 -1
- package/dist/test/collections/deck.examples.js +171 -106
- package/dist/test/collections/deck.examples.js.map +1 -1
- package/dist/test/collections/flowchart.examples.d.ts +13 -3
- package/dist/test/collections/flowchart.examples.d.ts.map +1 -1
- package/dist/test/collections/flowchart.examples.js +41 -81
- package/dist/test/collections/flowchart.examples.js.map +1 -1
- package/dist/test/collections/gantt.examples.d.ts +12 -23
- package/dist/test/collections/gantt.examples.d.ts.map +1 -1
- package/dist/test/collections/gantt.examples.js +246 -382
- package/dist/test/collections/gantt.examples.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts +9 -6
- package/dist/test/collections/library.examples.d.ts.map +1 -1
- package/dist/test/collections/library.examples.js +63 -156
- package/dist/test/collections/library.examples.js.map +1 -1
- package/dist/test/collections/map.examples.d.ts +10 -5
- package/dist/test/collections/map.examples.d.ts.map +1 -1
- package/dist/test/collections/map.examples.js +76 -106
- package/dist/test/collections/map.examples.js.map +1 -1
- package/dist/test/collections/matrix.examples.d.ts +14 -38
- package/dist/test/collections/matrix.examples.d.ts.map +1 -1
- package/dist/test/collections/matrix.examples.js +103 -169
- package/dist/test/collections/matrix.examples.js.map +1 -1
- package/dist/test/collections/pagination.examples.d.ts +3 -3
- package/dist/test/collections/pagination.examples.d.ts.map +1 -1
- package/dist/test/collections/pagination.examples.js +49 -31
- package/dist/test/collections/pagination.examples.js.map +1 -1
- package/dist/test/collections/planner.examples.d.ts +15 -108
- package/dist/test/collections/planner.examples.d.ts.map +1 -1
- package/dist/test/collections/planner.examples.js +335 -401
- package/dist/test/collections/planner.examples.js.map +1 -1
- package/dist/test/collections/roster.examples.d.ts +19 -16
- package/dist/test/collections/roster.examples.d.ts.map +1 -1
- package/dist/test/collections/roster.examples.js +166 -168
- package/dist/test/collections/roster.examples.js.map +1 -1
- package/dist/test/collections/schematic.examples.d.ts +18 -13
- package/dist/test/collections/schematic.examples.d.ts.map +1 -1
- package/dist/test/collections/schematic.examples.js +417 -418
- package/dist/test/collections/schematic.examples.js.map +1 -1
- package/dist/test/collections/table.examples.d.ts +33 -38
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +293 -399
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/collections/tree-view.examples.d.ts +2 -10
- package/dist/test/collections/tree-view.examples.d.ts.map +1 -1
- package/dist/test/collections/tree-view.examples.js +133 -178
- package/dist/test/collections/tree-view.examples.js.map +1 -1
- package/dist/test/collections/value-tree.examples.d.ts +23 -9
- package/dist/test/collections/value-tree.examples.d.ts.map +1 -1
- package/dist/test/collections/value-tree.examples.js +181 -227
- package/dist/test/collections/value-tree.examples.js.map +1 -1
- package/dist/test/container/card.examples.d.ts +7 -14
- package/dist/test/container/card.examples.d.ts.map +1 -1
- package/dist/test/container/card.examples.js +109 -117
- package/dist/test/container/card.examples.js.map +1 -1
- package/dist/test/disclosure/accordion.examples.d.ts +1 -6
- package/dist/test/disclosure/accordion.examples.d.ts.map +1 -1
- package/dist/test/disclosure/accordion.examples.js +73 -78
- package/dist/test/disclosure/accordion.examples.js.map +1 -1
- package/dist/test/disclosure/carousel.examples.d.ts +1 -7
- package/dist/test/disclosure/carousel.examples.d.ts.map +1 -1
- package/dist/test/disclosure/carousel.examples.js +87 -60
- package/dist/test/disclosure/carousel.examples.js.map +1 -1
- package/dist/test/disclosure/collapsible.examples.d.ts +3 -3
- package/dist/test/disclosure/collapsible.examples.d.ts.map +1 -1
- package/dist/test/disclosure/collapsible.examples.js +27 -23
- package/dist/test/disclosure/collapsible.examples.js.map +1 -1
- package/dist/test/disclosure/option-list.examples.js +3 -3
- package/dist/test/disclosure/option-list.examples.js.map +1 -1
- package/dist/test/disclosure/segment-group.examples.d.ts +3 -3
- package/dist/test/disclosure/segment-group.examples.d.ts.map +1 -1
- package/dist/test/disclosure/segment-group.examples.js +46 -36
- package/dist/test/disclosure/segment-group.examples.js.map +1 -1
- package/dist/test/disclosure/show-more.examples.d.ts +1 -2
- package/dist/test/disclosure/show-more.examples.d.ts.map +1 -1
- package/dist/test/disclosure/show-more.examples.js +24 -17
- package/dist/test/disclosure/show-more.examples.js.map +1 -1
- package/dist/test/disclosure/story.examples.d.ts +8 -8
- package/dist/test/disclosure/story.examples.d.ts.map +1 -1
- package/dist/test/disclosure/story.examples.js +109 -93
- package/dist/test/disclosure/story.examples.js.map +1 -1
- package/dist/test/disclosure/tabs.examples.d.ts +1 -8
- package/dist/test/disclosure/tabs.examples.d.ts.map +1 -1
- package/dist/test/disclosure/tabs.examples.js +94 -107
- package/dist/test/disclosure/tabs.examples.js.map +1 -1
- package/dist/test/display/avatar-group.examples.d.ts +1 -3
- package/dist/test/display/avatar-group.examples.d.ts.map +1 -1
- package/dist/test/display/avatar-group.examples.js +34 -29
- package/dist/test/display/avatar-group.examples.js.map +1 -1
- package/dist/test/display/avatar.examples.d.ts +1 -4
- package/dist/test/display/avatar.examples.d.ts.map +1 -1
- package/dist/test/display/avatar.examples.js +88 -40
- package/dist/test/display/avatar.examples.js.map +1 -1
- package/dist/test/display/badge.examples.d.ts +1 -9
- package/dist/test/display/badge.examples.d.ts.map +1 -1
- package/dist/test/display/badge.examples.js +93 -79
- package/dist/test/display/badge.examples.js.map +1 -1
- package/dist/test/display/bar-strip.examples.d.ts +1 -3
- package/dist/test/display/bar-strip.examples.d.ts.map +1 -1
- package/dist/test/display/bar-strip.examples.js +42 -48
- package/dist/test/display/bar-strip.examples.js.map +1 -1
- package/dist/test/display/chip-rail.examples.d.ts +1 -4
- package/dist/test/display/chip-rail.examples.d.ts.map +1 -1
- package/dist/test/display/chip-rail.examples.js +86 -36
- package/dist/test/display/chip-rail.examples.js.map +1 -1
- package/dist/test/display/combine.examples.d.ts.map +1 -1
- package/dist/test/display/combine.examples.js +102 -162
- package/dist/test/display/combine.examples.js.map +1 -1
- package/dist/test/display/editable-chip.examples.d.ts +1 -5
- package/dist/test/display/editable-chip.examples.d.ts.map +1 -1
- package/dist/test/display/editable-chip.examples.js +77 -51
- package/dist/test/display/editable-chip.examples.js.map +1 -1
- package/dist/test/display/icon.examples.d.ts +0 -1
- package/dist/test/display/icon.examples.d.ts.map +1 -1
- package/dist/test/display/icon.examples.js +101 -21
- package/dist/test/display/icon.examples.js.map +1 -1
- package/dist/test/display/image.examples.d.ts +1 -3
- package/dist/test/display/image.examples.d.ts.map +1 -1
- package/dist/test/display/image.examples.js +50 -25
- package/dist/test/display/image.examples.js.map +1 -1
- package/dist/test/display/kbd.examples.d.ts +1 -3
- package/dist/test/display/kbd.examples.d.ts.map +1 -1
- package/dist/test/display/kbd.examples.js +34 -29
- package/dist/test/display/kbd.examples.js.map +1 -1
- package/dist/test/display/meter.examples.d.ts +1 -4
- package/dist/test/display/meter.examples.d.ts.map +1 -1
- package/dist/test/display/meter.examples.js +107 -35
- package/dist/test/display/meter.examples.js.map +1 -1
- package/dist/test/display/metric-chip.examples.d.ts +4 -5
- package/dist/test/display/metric-chip.examples.d.ts.map +1 -1
- package/dist/test/display/metric-chip.examples.js +99 -35
- package/dist/test/display/metric-chip.examples.js.map +1 -1
- package/dist/test/display/segmented-meter.examples.d.ts +2 -2
- package/dist/test/display/segmented-meter.examples.d.ts.map +1 -1
- package/dist/test/display/segmented-meter.examples.js +43 -44
- package/dist/test/display/segmented-meter.examples.js.map +1 -1
- package/dist/test/display/stat.examples.d.ts +1 -5
- package/dist/test/display/stat.examples.d.ts.map +1 -1
- package/dist/test/display/stat.examples.js +83 -48
- package/dist/test/display/stat.examples.js.map +1 -1
- package/dist/test/display/tag.examples.d.ts +1 -8
- package/dist/test/display/tag.examples.d.ts.map +1 -1
- package/dist/test/display/tag.examples.js +109 -71
- package/dist/test/display/tag.examples.js.map +1 -1
- package/dist/test/display/trace.examples.d.ts +1 -4
- package/dist/test/display/trace.examples.d.ts.map +1 -1
- package/dist/test/display/trace.examples.js +113 -57
- package/dist/test/display/trace.examples.js.map +1 -1
- package/dist/test/extension.examples.js +1 -1
- package/dist/test/extension.examples.js.map +1 -1
- package/dist/test/feedback/banner.examples.d.ts +1 -12
- package/dist/test/feedback/banner.examples.d.ts.map +1 -1
- package/dist/test/feedback/banner.examples.js +53 -63
- package/dist/test/feedback/banner.examples.js.map +1 -1
- package/dist/test/feedback/progress.examples.d.ts +3 -7
- package/dist/test/feedback/progress.examples.d.ts.map +1 -1
- package/dist/test/feedback/progress.examples.js +84 -51
- package/dist/test/feedback/progress.examples.js.map +1 -1
- package/dist/test/feedback/status.examples.d.ts +1 -3
- package/dist/test/feedback/status.examples.d.ts.map +1 -1
- package/dist/test/feedback/status.examples.js +35 -24
- package/dist/test/feedback/status.examples.js.map +1 -1
- package/dist/test/forms/checkbox.examples.d.ts +1 -2
- package/dist/test/forms/checkbox.examples.d.ts.map +1 -1
- package/dist/test/forms/checkbox.examples.js +27 -17
- package/dist/test/forms/checkbox.examples.js.map +1 -1
- package/dist/test/forms/combobox.examples.d.ts +2 -9
- package/dist/test/forms/combobox.examples.d.ts.map +1 -1
- package/dist/test/forms/combobox.examples.js +100 -126
- package/dist/test/forms/combobox.examples.js.map +1 -1
- package/dist/test/forms/date-range-input.examples.d.ts +3 -6
- package/dist/test/forms/date-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/date-range-input.examples.js +82 -76
- package/dist/test/forms/date-range-input.examples.js.map +1 -1
- package/dist/test/forms/field.examples.d.ts +1 -1
- package/dist/test/forms/field.examples.d.ts.map +1 -1
- package/dist/test/forms/field.examples.js +24 -11
- package/dist/test/forms/field.examples.js.map +1 -1
- package/dist/test/forms/file-upload.examples.d.ts +1 -3
- package/dist/test/forms/file-upload.examples.d.ts.map +1 -1
- package/dist/test/forms/file-upload.examples.js +30 -33
- package/dist/test/forms/file-upload.examples.js.map +1 -1
- package/dist/test/forms/input.examples.d.ts +1 -11
- package/dist/test/forms/input.examples.d.ts.map +1 -1
- package/dist/test/forms/input.examples.js +106 -118
- package/dist/test/forms/input.examples.js.map +1 -1
- package/dist/test/forms/radio-card-group.examples.d.ts +3 -4
- package/dist/test/forms/radio-card-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-card-group.examples.js +66 -47
- package/dist/test/forms/radio-card-group.examples.js.map +1 -1
- package/dist/test/forms/radio-group.examples.d.ts +3 -4
- package/dist/test/forms/radio-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-group.examples.js +65 -48
- package/dist/test/forms/radio-group.examples.js.map +1 -1
- package/dist/test/forms/select.examples.d.ts +1 -3
- package/dist/test/forms/select.examples.d.ts.map +1 -1
- package/dist/test/forms/select.examples.js +34 -49
- package/dist/test/forms/select.examples.js.map +1 -1
- package/dist/test/forms/slider.examples.d.ts +1 -2
- package/dist/test/forms/slider.examples.d.ts.map +1 -1
- package/dist/test/forms/slider.examples.js +26 -24
- package/dist/test/forms/slider.examples.js.map +1 -1
- package/dist/test/forms/switch.examples.d.ts +1 -2
- package/dist/test/forms/switch.examples.d.ts.map +1 -1
- package/dist/test/forms/switch.examples.js +26 -19
- package/dist/test/forms/switch.examples.js.map +1 -1
- package/dist/test/forms/tags-input.examples.d.ts +0 -3
- package/dist/test/forms/tags-input.examples.d.ts.map +1 -1
- package/dist/test/forms/tags-input.examples.js +14 -32
- package/dist/test/forms/tags-input.examples.js.map +1 -1
- package/dist/test/forms/textarea.examples.d.ts +1 -3
- package/dist/test/forms/textarea.examples.d.ts.map +1 -1
- package/dist/test/forms/textarea.examples.js +28 -28
- package/dist/test/forms/textarea.examples.js.map +1 -1
- package/dist/test/forms/time-range-input.examples.d.ts +3 -5
- package/dist/test/forms/time-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/time-range-input.examples.js +73 -64
- package/dist/test/forms/time-range-input.examples.js.map +1 -1
- package/dist/test/layout/aligned-stack.examples.d.ts +13 -95
- package/dist/test/layout/aligned-stack.examples.d.ts.map +1 -1
- package/dist/test/layout/aligned-stack.examples.js +225 -368
- package/dist/test/layout/aligned-stack.examples.js.map +1 -1
- package/dist/test/layout/box.examples.d.ts +1 -12
- package/dist/test/layout/box.examples.d.ts.map +1 -1
- package/dist/test/layout/box.examples.js +135 -103
- package/dist/test/layout/box.examples.js.map +1 -1
- package/dist/test/layout/dock.examples.d.ts +9 -17
- package/dist/test/layout/dock.examples.d.ts.map +1 -1
- package/dist/test/layout/dock.examples.js +49 -33
- package/dist/test/layout/dock.examples.js.map +1 -1
- package/dist/test/layout/flex.examples.d.ts +1 -8
- package/dist/test/layout/flex.examples.d.ts.map +1 -1
- package/dist/test/layout/flex.examples.js +104 -72
- package/dist/test/layout/flex.examples.js.map +1 -1
- package/dist/test/layout/grid.examples.d.ts +2 -10
- package/dist/test/layout/grid.examples.d.ts.map +1 -1
- package/dist/test/layout/grid.examples.js +126 -127
- package/dist/test/layout/grid.examples.js.map +1 -1
- package/dist/test/layout/scroll-area.examples.js +2 -2
- package/dist/test/layout/scroll-area.examples.js.map +1 -1
- package/dist/test/layout/separator.examples.d.ts +3 -10
- package/dist/test/layout/separator.examples.d.ts.map +1 -1
- package/dist/test/layout/separator.examples.js +71 -84
- package/dist/test/layout/separator.examples.js.map +1 -1
- package/dist/test/layout/splitter.examples.d.ts +2 -8
- package/dist/test/layout/splitter.examples.d.ts.map +1 -1
- package/dist/test/layout/splitter.examples.js +100 -104
- package/dist/test/layout/splitter.examples.js.map +1 -1
- package/dist/test/layout/stack.examples.d.ts +2 -10
- package/dist/test/layout/stack.examples.d.ts.map +1 -1
- package/dist/test/layout/stack.examples.js +116 -83
- package/dist/test/layout/stack.examples.js.map +1 -1
- package/dist/test/layout/sticky.examples.js +2 -2
- package/dist/test/layout/sticky.examples.js.map +1 -1
- package/dist/test/navigation/app.examples.d.ts +5 -11
- package/dist/test/navigation/app.examples.d.ts.map +1 -1
- package/dist/test/navigation/app.examples.js +27 -42
- package/dist/test/navigation/app.examples.js.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.d.ts +1 -3
- package/dist/test/navigation/breadcrumb.examples.d.ts.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.js +13 -43
- package/dist/test/navigation/breadcrumb.examples.js.map +1 -1
- package/dist/test/navigation/nav-list.examples.d.ts +1 -4
- package/dist/test/navigation/nav-list.examples.d.ts.map +1 -1
- package/dist/test/navigation/nav-list.examples.js +141 -84
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/overlays/command-palette.examples.d.ts +1 -4
- package/dist/test/overlays/command-palette.examples.d.ts.map +1 -1
- package/dist/test/overlays/command-palette.examples.js +75 -52
- package/dist/test/overlays/command-palette.examples.js.map +1 -1
- package/dist/test/overlays/dialog.examples.d.ts +1 -2
- package/dist/test/overlays/dialog.examples.d.ts.map +1 -1
- package/dist/test/overlays/dialog.examples.js +18 -19
- package/dist/test/overlays/dialog.examples.js.map +1 -1
- package/dist/test/overlays/drawer.examples.d.ts +2 -4
- package/dist/test/overlays/drawer.examples.d.ts.map +1 -1
- package/dist/test/overlays/drawer.examples.js +55 -32
- package/dist/test/overlays/drawer.examples.js.map +1 -1
- package/dist/test/overlays/hover-card.examples.d.ts +1 -2
- package/dist/test/overlays/hover-card.examples.d.ts.map +1 -1
- package/dist/test/overlays/hover-card.examples.js +17 -19
- package/dist/test/overlays/hover-card.examples.js.map +1 -1
- package/dist/test/overlays/menu.examples.d.ts +1 -2
- package/dist/test/overlays/menu.examples.d.ts.map +1 -1
- package/dist/test/overlays/menu.examples.js +18 -25
- package/dist/test/overlays/menu.examples.js.map +1 -1
- package/dist/test/overlays/popover.examples.d.ts +1 -2
- package/dist/test/overlays/popover.examples.d.ts.map +1 -1
- package/dist/test/overlays/popover.examples.js +20 -22
- package/dist/test/overlays/popover.examples.js.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.d.ts +1 -2
- package/dist/test/overlays/toggle-tip.examples.d.ts.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.js +15 -18
- package/dist/test/overlays/toggle-tip.examples.js.map +1 -1
- package/dist/test/platform/slice.examples.d.ts +2 -9
- package/dist/test/platform/slice.examples.d.ts.map +1 -1
- package/dist/test/platform/slice.examples.js +197 -289
- package/dist/test/platform/slice.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +0 -4
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +168 -218
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/dist/test/style.examples.js +4 -4
- package/dist/test/style.examples.js.map +1 -1
- package/dist/test/typography/code-block.examples.d.ts +1 -9
- package/dist/test/typography/code-block.examples.d.ts.map +1 -1
- package/dist/test/typography/code-block.examples.js +82 -88
- package/dist/test/typography/code-block.examples.js.map +1 -1
- package/dist/test/typography/code.examples.d.ts +1 -7
- package/dist/test/typography/code.examples.d.ts.map +1 -1
- package/dist/test/typography/code.examples.js +54 -60
- package/dist/test/typography/code.examples.js.map +1 -1
- package/dist/test/typography/heading.examples.d.ts +1 -8
- package/dist/test/typography/heading.examples.d.ts.map +1 -1
- package/dist/test/typography/heading.examples.js +82 -68
- package/dist/test/typography/heading.examples.js.map +1 -1
- package/dist/test/typography/highlight.examples.d.ts +4 -8
- package/dist/test/typography/highlight.examples.d.ts.map +1 -1
- package/dist/test/typography/highlight.examples.js +49 -59
- package/dist/test/typography/highlight.examples.js.map +1 -1
- package/dist/test/typography/link.examples.d.ts +1 -7
- package/dist/test/typography/link.examples.d.ts.map +1 -1
- package/dist/test/typography/link.examples.js +57 -60
- package/dist/test/typography/link.examples.js.map +1 -1
- package/dist/test/typography/list.examples.d.ts +3 -11
- package/dist/test/typography/list.examples.d.ts.map +1 -1
- package/dist/test/typography/list.examples.js +117 -107
- package/dist/test/typography/list.examples.js.map +1 -1
- package/dist/test/typography/mark.examples.d.ts +1 -8
- package/dist/test/typography/mark.examples.d.ts.map +1 -1
- package/dist/test/typography/mark.examples.js +49 -68
- package/dist/test/typography/mark.examples.js.map +1 -1
- package/dist/test/typography/note.examples.d.ts +1 -3
- package/dist/test/typography/note.examples.d.ts.map +1 -1
- package/dist/test/typography/note.examples.js +24 -25
- package/dist/test/typography/note.examples.js.map +1 -1
- package/dist/test/typography/numeric.examples.d.ts +1 -5
- package/dist/test/typography/numeric.examples.d.ts.map +1 -1
- package/dist/test/typography/numeric.examples.js +60 -40
- package/dist/test/typography/numeric.examples.js.map +1 -1
- package/dist/test/typography/text.examples.d.ts +1 -18
- package/dist/test/typography/text.examples.d.ts.map +1 -1
- package/dist/test/typography/text.examples.js +146 -149
- package/dist/test/typography/text.examples.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,142 +4,141 @@ import { jsx as _jsx, jsxs as _jsxs } from "@elaraai/east-ui/jsx-runtime";
|
|
|
4
4
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
5
5
|
*/
|
|
6
6
|
/** @jsxImportSource @elaraai/east-ui */
|
|
7
|
-
import { East, IntegerType, NullType, example } from "@elaraai/east";
|
|
7
|
+
import { East, ArrayType, BooleanType, IntegerType, NullType, StringType, StructType, example, variant } from "@elaraai/east";
|
|
8
8
|
import { State, UIComponentType } from "@elaraai/east-ui";
|
|
9
|
-
import { Box, Button, Grid, Text, VStack, Reactive } from "@elaraai/east-ui";
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { Box, Button, Configurator, Grid, HStack, SegmentGroup, Select, Switch, Text, VStack, Reactive } from "@elaraai/east-ui";
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// Basic — the search-index front door
|
|
12
|
+
// ============================================================================
|
|
13
|
+
export const gridBasic = example({
|
|
14
|
+
keywords: ["Grid", "Root", "Item", "templateColumns", "repeat", "basic"],
|
|
12
15
|
description: "Equal-width columns with gap",
|
|
13
16
|
fn: East.function([], UIComponentType, (_$) => {
|
|
14
17
|
return (_jsx(Grid, { items: [
|
|
15
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "
|
|
16
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "
|
|
17
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "
|
|
18
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "
|
|
19
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "
|
|
20
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "
|
|
18
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "1" }) })),
|
|
19
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "2" }) })),
|
|
20
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "3" }) })),
|
|
21
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "4" }) })),
|
|
22
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "5" }) })),
|
|
23
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "6" }) })),
|
|
21
24
|
], templateColumns: "repeat(3, 1fr)", gap: "3" }));
|
|
22
25
|
}),
|
|
23
26
|
inputs: [],
|
|
24
27
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
// ============================================================================
|
|
29
|
+
// Grid — live configurator over template, gaps, spans and alignment
|
|
30
|
+
// ============================================================================
|
|
31
|
+
export const gridVariants = example({
|
|
32
|
+
keywords: ["Grid", "Root", "Item", "colSpan", "span", "columnGap", "rowGap", "gap", "templateColumns", "fixed", "px", "templateRows", "justifyItems", "alignItems", "centered", "auto-fit", "minmax", "responsive", "autoFlow", "dense", "packing", "header", "area", "templateAreas", "named-areas", "layout", "Reactive", "State", "interactive", "counter", "SegmentGroup", "Switch", "Configurator", "getTag", "configurator"],
|
|
33
|
+
description: "Grid configurator — template preset and gap axes plus span and centered switches driving one live grid; the aside bumps cell labels from a reactive counter",
|
|
28
34
|
fn: East.function([], UIComponentType, (_$) => {
|
|
29
|
-
return (_jsx(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
description: "Grid with templateAreas + per-item area names — classic Head/Nav/Main layout",
|
|
137
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
138
|
-
return (_jsx(Grid, { items: [
|
|
139
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "blue.100", borderRadius: "sm", children: _jsx(Text, { children: "Head" }) }), { area: "head" }),
|
|
140
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "green.100", borderRadius: "sm", children: _jsx(Text, { children: "Nav" }) }), { area: "nav" }),
|
|
141
|
-
Grid.Item(_jsx(Box, { padding: "2", background: "purple.100", borderRadius: "sm", children: _jsx(Text, { children: "Main" }) }), { area: "main" }),
|
|
142
|
-
], templateAreas: '"head head" "nav main"', templateColumns: "120px 1fr", templateRows: "auto 1fr", gap: "3" }));
|
|
35
|
+
return (_jsx(Reactive, { children: $ => {
|
|
36
|
+
// Template is a preset axis (the stat precedent): each entry
|
|
37
|
+
// swaps the whole grid — template strings, the items that make
|
|
38
|
+
// them legible, and the colSpan a full-width header needs there.
|
|
39
|
+
// `dense` carries a 2-col item so dense auto-flow has a gap to
|
|
40
|
+
// back-fill; `areas` names its cells against templateAreas.
|
|
41
|
+
const templates = $.const([
|
|
42
|
+
{
|
|
43
|
+
label: "3-col", cols: "repeat(3, 1fr)", rows: "auto", areas: "none", span: "3",
|
|
44
|
+
items: [
|
|
45
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.success.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Spans 2 columns" }) }), { colSpan: "2" }),
|
|
46
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.success.subtle", borderRadius: "sm", children: _jsx(Text, { children: "One" }) })),
|
|
47
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.success.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Two" }) })),
|
|
48
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.success.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Three" }) })),
|
|
49
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.success.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Four" }) })),
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "fixed", cols: "100px 200px 100px", rows: "auto", areas: "none", span: "3",
|
|
54
|
+
items: [
|
|
55
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.warning.subtle", borderRadius: "sm", children: _jsx(Text, { children: "100px" }) })),
|
|
56
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.warning.subtle", borderRadius: "sm", children: _jsx(Text, { children: "200px" }) })),
|
|
57
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.warning.subtle", borderRadius: "sm", children: _jsx(Text, { children: "100px" }) })),
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "auto-fit", cols: "repeat(auto-fit, minmax(80px, 1fr))", rows: "auto", areas: "none", span: "2",
|
|
62
|
+
items: [
|
|
63
|
+
Grid.Item(_jsx(Box, { padding: "3", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Item 1" }) })),
|
|
64
|
+
Grid.Item(_jsx(Box, { padding: "3", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Item 2" }) })),
|
|
65
|
+
Grid.Item(_jsx(Box, { padding: "3", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Item 3" }) })),
|
|
66
|
+
Grid.Item(_jsx(Box, { padding: "3", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Item 4" }) })),
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "dense", cols: "repeat(3, 1fr)", rows: "auto", areas: "none", span: "3",
|
|
71
|
+
items: [
|
|
72
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Wide" }) }), { colSpan: "2" }),
|
|
73
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "sm", children: _jsx(Text, { children: "A" }) })),
|
|
74
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "sm", children: _jsx(Text, { children: "B" }) })),
|
|
75
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "sm", children: _jsx(Text, { children: "C" }) })),
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: "areas", cols: "120px 1fr", rows: "auto 1fr", areas: '"head head" "nav main"', span: "2",
|
|
80
|
+
items: [
|
|
81
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Head" }) }), { area: "head" }),
|
|
82
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.success.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Nav" }) }), { area: "nav" }),
|
|
83
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Main" }) }), { area: "main" }),
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
], ArrayType(StructType({ label: StringType, cols: StringType, rows: StringType, areas: StringType, span: StringType, items: ArrayType(Grid.Types.Item) })));
|
|
87
|
+
// Only the gap pair needs a struct — a columnGap is only legible
|
|
88
|
+
// against the rowGap it contrasts with.
|
|
89
|
+
const gaps = $.const([
|
|
90
|
+
{ label: "even", col: "3", row: "3" },
|
|
91
|
+
{ label: "split", col: "8", row: "2" },
|
|
92
|
+
{ label: "airy", col: "6", row: "6" },
|
|
93
|
+
], ArrayType(StructType({ label: StringType, col: StringType, row: StringType })));
|
|
94
|
+
const templateBind = $.let(State.bind([StringType], "grid_template", "3-col"));
|
|
95
|
+
const gapsBind = $.let(State.bind([StringType], "grid_gaps", "even"));
|
|
96
|
+
const spanBind = $.let(State.bind([BooleanType], "grid_span", false));
|
|
97
|
+
const centeredBind = $.let(State.bind([BooleanType], "grid_centered", false));
|
|
98
|
+
const counter = $.let(State.bind([IntegerType], "grid_counter", 0n));
|
|
99
|
+
const tKey = $.let(templateBind.read());
|
|
100
|
+
const gKey = $.let(gapsBind.read());
|
|
101
|
+
const spanOn = $.let(spanBind.read());
|
|
102
|
+
const centered = $.let(centeredBind.read());
|
|
103
|
+
const count = $.let(counter.read());
|
|
104
|
+
const onTemplate = $.const(East.function([StringType], NullType, ($, next) => { $(templateBind.write(next)); }));
|
|
105
|
+
const onGaps = $.const(East.function([StringType], NullType, ($, next) => { $(gapsBind.write(next)); }));
|
|
106
|
+
const onSpan = $.const(East.function([BooleanType], NullType, ($, next) => { $(spanBind.write(next)); }));
|
|
107
|
+
const onCentered = $.const(East.function([BooleanType], NullType, ($, next) => { $(centeredBind.write(next)); }));
|
|
108
|
+
const inc = $.const(East.function([], NullType, $ => {
|
|
109
|
+
const cur = $.let(counter.read());
|
|
110
|
+
$(counter.write(cur.add(1n)));
|
|
111
|
+
}));
|
|
112
|
+
// Each selection is a lookup into the same array the control renders.
|
|
113
|
+
const template = $.let(templates.filter((_$, o) => o.label.equal(tKey)).get(0n));
|
|
114
|
+
const gap = $.let(gaps.filter((_$, o) => o.label.equal(gKey)).get(0n));
|
|
115
|
+
// The span switch prepends a header item spanning the preset's
|
|
116
|
+
// full column count (the old full-width header row).
|
|
117
|
+
const headed = $.const([
|
|
118
|
+
Grid.Item(_jsx(Box, { padding: "3", background: "bg.subtle", borderRadius: "sm", children: _jsx(Text, { children: "Full width header" }) }), { colSpan: template.span }),
|
|
119
|
+
], ArrayType(Grid.Types.Item));
|
|
120
|
+
const items = $.let(spanOn.ifElse(_$ => headed.concat(template.items), _$ => template.items));
|
|
121
|
+
const flow = $.let(tKey.equal("dense").ifElse(_$ => variant("row dense", null), _$ => variant("row", null)));
|
|
122
|
+
return (_jsx(Configurator, { controls: [
|
|
123
|
+
Configurator.Control("Template", tKey, _jsx(Select, { value: tKey, onChange: onTemplate, size: "sm", items: templates.map((_$, o) => Select.Item(o.label, o.label)) })),
|
|
124
|
+
Configurator.Control("Gaps", gKey, _jsx(SegmentGroup, { value: gKey, onChange: onGaps, size: "sm", items: gaps.map((_$, o) => SegmentGroup.Item(o.label, _jsx(Text, { children: o.label.upperCase() }))) })),
|
|
125
|
+
// A Slot, not a Control: the two switches report as
|
|
126
|
+
// the Span / Cells spec rows below rather than as one
|
|
127
|
+
// value.
|
|
128
|
+
Configurator.Slot("Items", _jsxs(HStack, { gap: "5", align: "center", wrap: "wrap", children: [_jsx(Switch, { checked: spanOn, label: "Span", onChange: onSpan }), _jsx(Switch, { checked: centered, label: "Centered", onChange: onCentered })] })),
|
|
129
|
+
], preview: _jsx(Grid, { items: items, templateColumns: template.cols, templateRows: template.rows, templateAreas: template.areas, autoFlow: flow, columnGap: gap.col, rowGap: gap.row, justifyItems: centered.ifElse(_$ => variant("center", null), _$ => variant("flex-start", null)), alignItems: centered.ifElse(_$ => variant("center", null), _$ => variant("stretch", null)) }), aside: {
|
|
130
|
+
label: "Cells · Reactive",
|
|
131
|
+
body: (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsx(Grid, { items: [
|
|
132
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.brand.subtle", borderRadius: "sm", children: _jsx(Text, { children: East.str `Cell A — ${East.print(count)}` }) })),
|
|
133
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.success.subtle", borderRadius: "sm", children: _jsx(Text, { children: East.str `Cell B — ${East.print(count)}` }) })),
|
|
134
|
+
Grid.Item(_jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "sm", children: _jsx(Text, { children: East.str `Cell C — ${East.print(count)}` }) })),
|
|
135
|
+
], templateColumns: "repeat(3, 1fr)", gap: "3" }), _jsx(Button, { size: "xs", onClick: inc, children: "Bump" })] })),
|
|
136
|
+
}, spec: [
|
|
137
|
+
Configurator.Spec("Flow", tKey.equal("dense").ifElse(_$ => "row dense", _$ => "row")),
|
|
138
|
+
Configurator.Spec("Span", spanOn.ifElse(_$ => East.str `header spans ${template.span}`, _$ => "natural")),
|
|
139
|
+
Configurator.Spec("Cells", East.print(items.size())),
|
|
140
|
+
] }));
|
|
141
|
+
} }));
|
|
143
142
|
}),
|
|
144
143
|
inputs: [],
|
|
145
144
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.examples.js","sourceRoot":"","sources":["../../../test/layout/grid.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE7E,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC;IACjC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,QAAQ,CAAC;IAC/D,WAAW,EA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CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;wBACxG,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;qBACvD,GACH,CACL,CAAC;YACN,CAAC,GAAY,CAChB,CAAC;IACN,CAAC,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ export const scrollAreaDriverList = example({
|
|
|
11
11
|
keywords: ["ScrollArea", "Root", "vertical", "driver-list", "radix", "scroll"],
|
|
12
12
|
description: "Vertical ScrollArea wrapping a 40-item list — consistent scrollbar across browsers",
|
|
13
13
|
fn: East.function([], UIComponentType, (_$) => {
|
|
14
|
-
return (_jsx(ScrollArea, { scrollbarStyle: "overlay", orientation: "vertical", children: _jsx(VStack, { gap: "1", children: Array.from({ length: 40 }, (_, i) => (_jsx(Box, { padding: "2", borderColor: "
|
|
14
|
+
return (_jsx(ScrollArea, { scrollbarStyle: "overlay", orientation: "vertical", children: _jsx(VStack, { gap: "1", children: Array.from({ length: 40 }, (_, i) => (_jsx(Box, { padding: "2", borderColor: "border.subtle", borderWidth: "thin", children: _jsx(Text, { children: `Driver ${i + 1}` }) }))) }) }));
|
|
15
15
|
}),
|
|
16
16
|
inputs: [],
|
|
17
17
|
});
|
|
@@ -19,7 +19,7 @@ export const scrollAreaTableInDrawer = example({
|
|
|
19
19
|
keywords: ["ScrollArea", "Root", "both", "horizontal", "reserved", "wide-content"],
|
|
20
20
|
description: "ScrollArea with both-axis scroll and reserved gutter (no layout shift)",
|
|
21
21
|
fn: East.function([], UIComponentType, (_$) => {
|
|
22
|
-
return (_jsx(Box, { width: "400px", height: "200px", borderColor: "
|
|
22
|
+
return (_jsx(Box, { width: "400px", height: "200px", borderColor: "border.subtle", borderWidth: "thin", children: _jsx(ScrollArea, { scrollbarStyle: "reserved", orientation: "both", background: "bg.subtle", children: _jsx(Box, { padding: "3", width: "1200px", background: "bg.surface", children: _jsx(Text, { children: "A wide block — ".repeat(20) }) }) }) }));
|
|
23
23
|
}),
|
|
24
24
|
inputs: [],
|
|
25
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.examples.js","sourceRoot":"","sources":["../../../test/layout/scroll-area.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEjE,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC;IACxC,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC;IAC9E,WAAW,EAAE,oFAAoF;IACjG,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,eAAe,EAAE,CAAC,EAAE,EAAE,EAAE;QAC1C,OAAO,CACH,KAAC,UAAU,IAAC,cAAc,EAAC,SAAS,EAAC,WAAW,EAAC,UAAU,YACvD,KAAC,MAAM,IAAC,GAAG,EAAC,GAAG,YACV,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClC,KAAC,GAAG,IAAC,OAAO,EAAC,GAAG,EAAC,WAAW,EAAC,
|
|
1
|
+
{"version":3,"file":"scroll-area.examples.js","sourceRoot":"","sources":["../../../test/layout/scroll-area.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,eAAe,E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WAAW,EAAC,MAAM,YAC5E,KAAC,UAAU,IAAC,cAAc,EAAC,UAAU,EAAC,WAAW,EAAC,MAAM,EAAC,UAAU,EAAC,WAAW,YAC3E,KAAC,GAAG,IAAC,OAAO,EAAC,GAAG,EAAC,KAAK,EAAC,QAAQ,EAAC,UAAU,EAAC,YAAY,YACnD,KAAC,IAAI,cAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAQ,GACzC,GACG,GACX,CACT,CAAC;IACN,CAAC,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const separatorBasic: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
+
export declare const separatorVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
3
|
+
/** Vertical divider — divides a 40px row between inline siblings. */
|
|
2
4
|
export declare const separatorVertical: import("@elaraai/east").ExampleDef<[], any>;
|
|
3
|
-
export declare const separatorSubtle: import("@elaraai/east").ExampleDef<[], any>;
|
|
4
|
-
export declare const separatorStrong: import("@elaraai/east").ExampleDef<[], any>;
|
|
5
|
-
export declare const separatorDashed: import("@elaraai/east").ExampleDef<[], any>;
|
|
6
|
-
export declare const separatorBrand: import("@elaraai/east").ExampleDef<[], any>;
|
|
7
|
-
export declare const separatorLabeled: import("@elaraai/east").ExampleDef<[], any>;
|
|
8
|
-
export declare const separatorFormDivider: import("@elaraai/east").ExampleDef<[], any>;
|
|
9
|
-
export declare const separatorInteractive: import("@elaraai/east").ExampleDef<[], any>;
|
|
10
|
-
export declare const separatorWithEyebrow: import("@elaraai/east").ExampleDef<[], any>;
|
|
11
|
-
export declare const separatorAlignedStart: import("@elaraai/east").ExampleDef<[], any>;
|
|
12
5
|
//# sourceMappingURL=separator.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/separator.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"separator.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/separator.examples.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,cAAc,6CAazB,CAAC;AAMH,eAAO,MAAM,iBAAiB,6CA+F5B,CAAC;AAEH,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,6CAa5B,CAAC"}
|
|
@@ -4,101 +4,88 @@ import { jsx as _jsx, jsxs as _jsxs } from "@elaraai/east-ui/jsx-runtime";
|
|
|
4
4
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
5
5
|
*/
|
|
6
6
|
/** @jsxImportSource @elaraai/east-ui */
|
|
7
|
-
import { East, IntegerType, NullType, example } from "@elaraai/east";
|
|
7
|
+
import { East, ArrayType, IntegerType, NullType, StringType, StructType, example, variant } from "@elaraai/east";
|
|
8
8
|
import { State, UIComponentType } from "@elaraai/east-ui";
|
|
9
|
-
import { Box, Button, Separator, Text, VStack,
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { Box, Button, Configurator, HStack, SegmentGroup, Select, Separator, Text, VStack, Reactive } from "@elaraai/east-ui";
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// Basic — the search-index front door
|
|
12
|
+
// ============================================================================
|
|
13
|
+
export const separatorBasic = example({
|
|
14
|
+
keywords: ["Separator", "Root", "orientation", "horizontal", "basic"],
|
|
12
15
|
description: "Default horizontal divider",
|
|
13
16
|
fn: East.function([], UIComponentType, (_$) => {
|
|
14
17
|
return (_jsxs(VStack, { gap: "3", width: "100%", children: [_jsx(Text, { children: "Content above" }), _jsx(Separator, { orientation: "horizontal" }), _jsx(Text, { children: "Content below" })] }));
|
|
15
18
|
}),
|
|
16
19
|
inputs: [],
|
|
17
20
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
inputs: [],
|
|
25
|
-
});
|
|
26
|
-
export const separatorSubtle = example({
|
|
27
|
-
keywords: ["Separator", "Root", "variant", "subtle"],
|
|
28
|
-
description: "Default subtle hairline (rule)",
|
|
29
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
30
|
-
return (_jsxs(VStack, { gap: "3", width: "100%", children: [_jsx(Text, { children: "Above" }), _jsx(Separator, { variant: "subtle" }), _jsx(Text, { children: "Below" })] }));
|
|
31
|
-
}),
|
|
32
|
-
inputs: [],
|
|
33
|
-
});
|
|
34
|
-
export const separatorStrong = example({
|
|
35
|
-
keywords: ["Separator", "Root", "variant", "strong"],
|
|
36
|
-
description: "Strong hairline (rule-strong)",
|
|
37
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
38
|
-
return (_jsxs(VStack, { gap: "3", width: "100%", children: [_jsx(Text, { children: "Above" }), _jsx(Separator, { variant: "strong" }), _jsx(Text, { children: "Below" })] }));
|
|
39
|
-
}),
|
|
40
|
-
inputs: [],
|
|
41
|
-
});
|
|
42
|
-
export const separatorDashed = example({
|
|
43
|
-
keywords: ["Separator", "Root", "variant", "dashed"],
|
|
44
|
-
description: "Dashed hairline (rule-strong)",
|
|
45
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
46
|
-
return (_jsxs(VStack, { gap: "3", width: "100%", children: [_jsx(Text, { children: "Above" }), _jsx(Separator, { variant: "dashed" }), _jsx(Text, { children: "Below" })] }));
|
|
47
|
-
}),
|
|
48
|
-
inputs: [],
|
|
49
|
-
});
|
|
50
|
-
export const separatorBrand = example({
|
|
51
|
-
keywords: ["Separator", "Root", "variant", "brand"],
|
|
52
|
-
description: "Brand hairline",
|
|
21
|
+
// ============================================================================
|
|
22
|
+
// Separator — live configurator over orientation, hairline and label axes
|
|
23
|
+
// ============================================================================
|
|
24
|
+
export const separatorVariants = example({
|
|
25
|
+
keywords: ["Separator", "Root", "orientation", "vertical", "variant", "subtle", "strong", "dashed", "brand", "label", "form", "align", "eyebrow", "chain-divider", "start", "Reactive", "State", "interactive", "SegmentGroup", "Switch", "Configurator", "getTag", "configurator"],
|
|
26
|
+
description: "Separator configurator — orientation, variant, label and align axes driving one live divider; the aside steps a reactive counter label",
|
|
53
27
|
fn: East.function([], UIComponentType, (_$) => {
|
|
54
|
-
return (
|
|
28
|
+
return (_jsx(Reactive, { children: $ => {
|
|
29
|
+
// Enumerated axes are just their variants — `getTag()` gives the
|
|
30
|
+
// segment key AND its label, so there is no parallel table to
|
|
31
|
+
// keep in step.
|
|
32
|
+
const hairlines = $.const([
|
|
33
|
+
variant("subtle", null), variant("strong", null),
|
|
34
|
+
variant("dashed", null), variant("brand", null),
|
|
35
|
+
], ArrayType(Separator.Types.Variant));
|
|
36
|
+
const aligns = $.const([
|
|
37
|
+
variant("start", null), variant("center", null), variant("end", null),
|
|
38
|
+
], ArrayType(Separator.Types.Align));
|
|
39
|
+
// Only the label needs a struct — each entry pairs the segment
|
|
40
|
+
// key with the text it renders: a short OR, a form-section
|
|
41
|
+
// heading, and the uppercase eyebrow phrase.
|
|
42
|
+
const labels = $.const([
|
|
43
|
+
{ label: "or", text: "OR" },
|
|
44
|
+
{ label: "section", text: "Contact Details" },
|
|
45
|
+
{ label: "eyebrow", text: "Cross-phase decisions" },
|
|
46
|
+
], ArrayType(StructType({ label: StringType, text: StringType })));
|
|
47
|
+
const variantBind = $.let(State.bind([StringType], "separator_variant", "subtle"));
|
|
48
|
+
const labelBind = $.let(State.bind([StringType], "separator_label", "or"));
|
|
49
|
+
const alignBind = $.let(State.bind([StringType], "separator_align", "center"));
|
|
50
|
+
const counter = $.let(State.bind([IntegerType], "separator_counter", 0n));
|
|
51
|
+
const vKey = $.let(variantBind.read());
|
|
52
|
+
const lKey = $.let(labelBind.read());
|
|
53
|
+
const aKey = $.let(alignBind.read());
|
|
54
|
+
const count = $.let(counter.read());
|
|
55
|
+
const onVariant = $.const(East.function([StringType], NullType, ($, next) => { $(variantBind.write(next)); }));
|
|
56
|
+
const onLabel = $.const(East.function([StringType], NullType, ($, next) => { $(labelBind.write(next)); }));
|
|
57
|
+
const onAlign = $.const(East.function([StringType], NullType, ($, next) => { $(alignBind.write(next)); }));
|
|
58
|
+
const inc = $.const(East.function([], NullType, $ => {
|
|
59
|
+
const cur = $.let(counter.read());
|
|
60
|
+
$(counter.write(cur.add(1n)));
|
|
61
|
+
}));
|
|
62
|
+
// Each selection is a lookup into the same array the control renders.
|
|
63
|
+
const hairline = $.let(hairlines.filter((_$, v) => v.getTag().equal(vKey)).get(0n));
|
|
64
|
+
const align = $.let(aligns.filter((_$, v) => v.getTag().equal(aKey)).get(0n));
|
|
65
|
+
const entry = $.let(labels.filter((_$, o) => o.label.equal(lKey)).get(0n));
|
|
66
|
+
// ONE labeled divider — the label slot composes on (its text is
|
|
67
|
+
// a value from the axis); the vertical scaffold is its own
|
|
68
|
+
// example.
|
|
69
|
+
const divider = $.const(_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsx(Text, { children: "Above" }), _jsx(Separator, { variant: hairline, align: align, label: _jsx(Text, { children: entry.text }) }), _jsx(Text, { children: "Below" })] }));
|
|
70
|
+
return (_jsx(Configurator, { controls: [
|
|
71
|
+
Configurator.Control("Variant", vKey, _jsx(Select, { value: vKey, onChange: onVariant, size: "sm", items: hairlines.map((_$, v) => Select.Item(v.getTag(), v.getTag())) })),
|
|
72
|
+
Configurator.Control("Label", lKey, _jsx(Select, { value: lKey, onChange: onLabel, size: "sm", items: labels.map((_$, o) => Select.Item(o.label, o.label)) })),
|
|
73
|
+
Configurator.Control("Align", aKey, _jsx(SegmentGroup, { value: aKey, onChange: onAlign, size: "sm", items: aligns.map((_$, v) => SegmentGroup.Item(v.getTag(), _jsx(Text, { children: v.getTag().upperCase() }))) })),
|
|
74
|
+
], preview: divider, aside: {
|
|
75
|
+
label: "Steps · Reactive",
|
|
76
|
+
body: (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsx(Text, { children: "Above" }), _jsx(Separator, { label: _jsx(Text, { children: East.str `STEP ${East.print(count)}` }) }), _jsx(Text, { children: "Below" }), _jsx(Button, { size: "xs", onClick: inc, children: "Next step" })] })),
|
|
77
|
+
}, spec: [
|
|
78
|
+
Configurator.Spec("Label text", entry.text),
|
|
79
|
+
] }));
|
|
80
|
+
} }));
|
|
55
81
|
}),
|
|
56
82
|
inputs: [],
|
|
57
83
|
});
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
inputs: [],
|
|
65
|
-
});
|
|
66
|
-
export const separatorFormDivider = example({
|
|
67
|
-
keywords: ["Separator", "Root", "label", "form"],
|
|
68
|
-
description: "Labeled divider for form sections",
|
|
69
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
70
|
-
return (_jsxs(VStack, { gap: "3", width: "100%", children: [_jsx(Text, { children: "Personal Information" }), _jsx(Separator, { label: "Contact Details" }), _jsx(Text, { children: "Email and Phone fields..." })] }));
|
|
71
|
-
}),
|
|
72
|
-
inputs: [],
|
|
73
|
-
});
|
|
74
|
-
export const separatorInteractive = example({
|
|
75
|
-
keywords: ["Separator", "Reactive", "State", "interactive", "label"],
|
|
76
|
-
description: "Separator whose label updates from a reactive counter",
|
|
77
|
-
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
78
|
-
const counter = $.let(State.bind([IntegerType], "separator_counter", 0n));
|
|
79
|
-
const value = $.let(counter.read());
|
|
80
|
-
const inc = $.const(East.function([], NullType, $ => {
|
|
81
|
-
const cur = $.let(counter.read());
|
|
82
|
-
$(counter.write(cur.add(1n)));
|
|
83
|
-
}));
|
|
84
|
-
return (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsx(Text, { children: "Above" }), _jsx(Separator, { label: _jsx(Text, { children: East.str `STEP ${East.print(value)}` }) }), _jsx(Text, { children: "Below" }), _jsx(Button, { onClick: inc, children: "Next step" })] }));
|
|
85
|
-
} }))),
|
|
86
|
-
inputs: [],
|
|
87
|
-
});
|
|
88
|
-
export const separatorWithEyebrow = example({
|
|
89
|
-
keywords: ["Separator", "Root", "label", "align", "eyebrow", "chain-divider"],
|
|
90
|
-
description: "Horizontal separator with an uppercase muted caption label centred between hairlines",
|
|
91
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
92
|
-
return (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsx(Text, { children: "Phase 1 \u2014 Triage" }), _jsx(Separator, { label: "Cross-phase decisions", align: "center", variant: "subtle" }), _jsx(Text, { children: "Phase 2 \u2014 Deliver" })] }));
|
|
93
|
-
}),
|
|
94
|
-
inputs: [],
|
|
95
|
-
});
|
|
96
|
-
export const separatorAlignedStart = example({
|
|
97
|
-
keywords: ["Separator", "Root", "label", "align", "start"],
|
|
98
|
-
description: "Separator with the label biased toward the leading edge",
|
|
99
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
100
|
-
return _jsx(Separator, { label: "Notes", align: "start" });
|
|
101
|
-
}),
|
|
84
|
+
/** Vertical divider — divides a 40px row between inline siblings. */
|
|
85
|
+
export const separatorVertical = example({
|
|
86
|
+
keywords: ["Separator", "orientation", "vertical", "divider", "inline"],
|
|
87
|
+
description: "Vertical divider between inline siblings in a 40px row",
|
|
88
|
+
fn: East.function([], UIComponentType, (_$) => (_jsxs(HStack, { gap: "4", align: "center", children: [_jsx(Text, { children: "Left" }), _jsx(Box, { height: "40px", children: _jsx(Separator, { orientation: "vertical", variant: "subtle" }) }), _jsx(Text, { children: "Right" })] }))),
|
|
102
89
|
inputs: [],
|
|
103
90
|
});
|
|
104
91
|
//# sourceMappingURL=separator.examples.js.map
|