@elaraai/east-ui 1.0.60 → 1.0.62
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
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { type ExprType, type SubtypeExprOrValue, ArrayType, BooleanType, OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
+
import { UIComponentType } from "../../component.js";
|
|
7
|
+
import { ConfiguratorSpecType, ConfiguratorStyleType, type ConfiguratorStyle } from "./types.js";
|
|
8
|
+
export { ConfiguratorSpecType, ConfiguratorStyleType, type ConfiguratorStyle, } from "./types.js";
|
|
9
|
+
/**
|
|
10
|
+
* One row of the control table.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Build these with {@link Configurator.Control} rather than by hand — the
|
|
14
|
+
* `value` field is what the spec column reads, so constructing the struct
|
|
15
|
+
* directly is the easiest way to let the two drift apart.
|
|
16
|
+
*
|
|
17
|
+
* @property label - Row label, rendered in the left gutter
|
|
18
|
+
* @property value - Current value for the spec column (`none` omits the row)
|
|
19
|
+
* @property control - The control itself (a SegmentGroup, Switch row, Slider, …)
|
|
20
|
+
* @property hint - Secondary annotation rendered beside the control
|
|
21
|
+
*/
|
|
22
|
+
export declare const ConfiguratorControlType: StructType<{
|
|
23
|
+
readonly label: StringType;
|
|
24
|
+
readonly value: OptionType<StringType>;
|
|
25
|
+
readonly control: import("@elaraai/east").RecursiveType<import("../../component.js").UIComponentNode>;
|
|
26
|
+
readonly hint: OptionType<StringType>;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Type representing {@link ConfiguratorControlType} values.
|
|
30
|
+
*/
|
|
31
|
+
export type ConfiguratorControlType = typeof ConfiguratorControlType;
|
|
32
|
+
/**
|
|
33
|
+
* Standalone East type for `Configurator` data — mirrors the inline arm in
|
|
34
|
+
* `component.ts` (which spells the child slots with the recursion `node`).
|
|
35
|
+
* Used by the renderer for `ValueTypeOf` and equality.
|
|
36
|
+
*
|
|
37
|
+
* @property controls - The control rows, in display order
|
|
38
|
+
* @property preview - The component being configured
|
|
39
|
+
* @property live - Whether the preview updates live (renders the LIVE pip)
|
|
40
|
+
* @property aside - Optional secondary panel beneath the preview
|
|
41
|
+
* @property spec - Extra spec rows, appended after those derived from `controls`
|
|
42
|
+
* @property style - Optional sizing overrides
|
|
43
|
+
*/
|
|
44
|
+
export declare const ConfiguratorType: StructType<{
|
|
45
|
+
controls: ArrayType<ConfiguratorControlType>;
|
|
46
|
+
preview: UIComponentType;
|
|
47
|
+
live: BooleanType;
|
|
48
|
+
aside: OptionType<StructType<{
|
|
49
|
+
label: StringType;
|
|
50
|
+
body: UIComponentType;
|
|
51
|
+
}>>;
|
|
52
|
+
spec: ArrayType<ConfiguratorSpecType>;
|
|
53
|
+
style: OptionType<ConfiguratorStyleType>;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* Type representing the Configurator component structure.
|
|
57
|
+
*/
|
|
58
|
+
export type ConfiguratorType = typeof ConfiguratorType;
|
|
59
|
+
/**
|
|
60
|
+
* Options for {@link Configurator.Root}.
|
|
61
|
+
*/
|
|
62
|
+
export interface ConfiguratorOptions extends ConfiguratorStyle {
|
|
63
|
+
/**
|
|
64
|
+
* The control rows, in display order. The single source of truth: each row
|
|
65
|
+
* renders its control AND contributes its `value` to the spec column.
|
|
66
|
+
*/
|
|
67
|
+
controls: SubtypeExprOrValue<ArrayType<ConfiguratorControlType>>;
|
|
68
|
+
/** The component being configured. */
|
|
69
|
+
preview: SubtypeExprOrValue<UIComponentType>;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the preview updates live. Renders the `LIVE` pip in the preview
|
|
72
|
+
* header. Defaults to `true` — a Configurator whose preview does not react
|
|
73
|
+
* is almost always a mistake.
|
|
74
|
+
*/
|
|
75
|
+
live?: SubtypeExprOrValue<BooleanType>;
|
|
76
|
+
/** Optional secondary panel beneath the preview. */
|
|
77
|
+
aside?: {
|
|
78
|
+
/** Section label, e.g. `"Count · Reactive"`. */
|
|
79
|
+
label: SubtypeExprOrValue<StringType>;
|
|
80
|
+
/** Section body. */
|
|
81
|
+
body: SubtypeExprOrValue<UIComponentType>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Extra spec rows, appended after the ones derived from `controls`. Use for
|
|
85
|
+
* state with no control row of its own — a value computed from two
|
|
86
|
+
* switches, say.
|
|
87
|
+
*/
|
|
88
|
+
spec?: SubtypeExprOrValue<ArrayType<ConfiguratorSpecType>>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Builds a control row for {@link Configurator.Root}.
|
|
92
|
+
*
|
|
93
|
+
* @param label - Row label, rendered in the left gutter
|
|
94
|
+
* @param value - Current value, echoed in the spec column
|
|
95
|
+
* @param control - The control component for this row
|
|
96
|
+
* @param hint - Optional secondary annotation beside the control
|
|
97
|
+
* @returns A control row value
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* import { Configurator, SegmentGroup } from "@elaraai/east-ui";
|
|
102
|
+
*
|
|
103
|
+
* Configurator.Control("Density", "compact", SegmentGroup.Root(...));
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
declare function createConfiguratorControl(label: SubtypeExprOrValue<StringType>, value: SubtypeExprOrValue<StringType>, control: SubtypeExprOrValue<UIComponentType>, hint?: SubtypeExprOrValue<StringType>): ExprType<ConfiguratorControlType>;
|
|
107
|
+
/**
|
|
108
|
+
* Builds a control row that contributes no spec entry.
|
|
109
|
+
*
|
|
110
|
+
* @param label - Row label, rendered in the left gutter
|
|
111
|
+
* @param control - The control component for this row
|
|
112
|
+
* @param hint - Optional secondary annotation beside the control
|
|
113
|
+
* @returns A control row value with no spec contribution
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
* For rows whose state is better described by explicit `spec` entries — a
|
|
117
|
+
* `Shape` row of two switches that reports `Radius` and `Width` separately, for
|
|
118
|
+
* instance.
|
|
119
|
+
*/
|
|
120
|
+
declare function createConfiguratorSlot(label: SubtypeExprOrValue<StringType>, control: SubtypeExprOrValue<UIComponentType>, hint?: SubtypeExprOrValue<StringType>): ExprType<ConfiguratorControlType>;
|
|
121
|
+
/**
|
|
122
|
+
* Builds a spec row for the `spec` option.
|
|
123
|
+
*
|
|
124
|
+
* @param label - The row label
|
|
125
|
+
* @param value - The current value
|
|
126
|
+
* @returns A spec row value
|
|
127
|
+
*/
|
|
128
|
+
declare function createConfiguratorSpec(label: SubtypeExprOrValue<StringType>, value: SubtypeExprOrValue<StringType>): ExprType<ConfiguratorSpecType>;
|
|
129
|
+
/**
|
|
130
|
+
* Creates a Configurator — a labelled control table beside a live preview and a
|
|
131
|
+
* derived spec readout.
|
|
132
|
+
*
|
|
133
|
+
* @param options - Controls, preview, live pip, optional aside, extra spec rows, and sizing
|
|
134
|
+
* @returns An East expression representing the Configurator
|
|
135
|
+
*
|
|
136
|
+
* @remarks
|
|
137
|
+
* `controls` is the single source of truth: each row renders its control and
|
|
138
|
+
* contributes its `value` to the spec column, so a control and its readout
|
|
139
|
+
* cannot disagree. The sidebar stacks beneath the control table on narrow
|
|
140
|
+
* viewports. The rendered control column carries a collapse toggle (the Dock
|
|
141
|
+
* rail chrome) so a viewer can hand its width to the preview; collapsed state
|
|
142
|
+
* is a viewer preference persisted per instance by the renderer, never part of
|
|
143
|
+
* this value.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* import { Configurator, SegmentGroup, Badge } from "@elaraai/east-ui";
|
|
148
|
+
*
|
|
149
|
+
* Configurator.Root({
|
|
150
|
+
* controls: [Configurator.Control("Variant", "outline", SegmentGroup.Root(...))],
|
|
151
|
+
* preview: Badge.Root("Sample"),
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
declare function createConfigurator(options: ConfiguratorOptions): ExprType<UIComponentType>;
|
|
156
|
+
/**
|
|
157
|
+
* Configurator — a labelled control table beside a live preview and a derived
|
|
158
|
+
* spec readout.
|
|
159
|
+
*
|
|
160
|
+
* @remarks
|
|
161
|
+
* Use `Configurator.Root({ controls, preview, ... })`; build rows with
|
|
162
|
+
* `Configurator.Control` (contributes a spec entry) or `Configurator.Slot` (does
|
|
163
|
+
* not). Types via `.Types`.
|
|
164
|
+
*/
|
|
165
|
+
export declare const Configurator: {
|
|
166
|
+
/** Build a Configurator (see {@link createConfigurator}). */
|
|
167
|
+
readonly Root: typeof createConfigurator;
|
|
168
|
+
/** Build a control row that also reports its value in the spec column. */
|
|
169
|
+
readonly Control: typeof createConfiguratorControl;
|
|
170
|
+
/** Build a control row that contributes no spec entry. */
|
|
171
|
+
readonly Slot: typeof createConfiguratorSlot;
|
|
172
|
+
/** Build an extra spec row for the `spec` option. */
|
|
173
|
+
readonly Spec: typeof createConfiguratorSpec;
|
|
174
|
+
readonly Types: {
|
|
175
|
+
/** The Configurator data struct. */
|
|
176
|
+
readonly Configurator: StructType<{
|
|
177
|
+
controls: ArrayType<ConfiguratorControlType>;
|
|
178
|
+
preview: UIComponentType;
|
|
179
|
+
live: BooleanType;
|
|
180
|
+
aside: OptionType<StructType<{
|
|
181
|
+
label: StringType;
|
|
182
|
+
body: UIComponentType;
|
|
183
|
+
}>>;
|
|
184
|
+
spec: ArrayType<ConfiguratorSpecType>;
|
|
185
|
+
style: OptionType<ConfiguratorStyleType>;
|
|
186
|
+
}>;
|
|
187
|
+
/** The control-row struct. */
|
|
188
|
+
readonly Control: StructType<{
|
|
189
|
+
readonly label: StringType;
|
|
190
|
+
readonly value: OptionType<StringType>;
|
|
191
|
+
readonly control: import("@elaraai/east").RecursiveType<import("../../component.js").UIComponentNode>;
|
|
192
|
+
readonly hint: OptionType<StringType>;
|
|
193
|
+
}>;
|
|
194
|
+
/** The spec-row struct. */
|
|
195
|
+
readonly Spec: StructType<{
|
|
196
|
+
readonly label: StringType;
|
|
197
|
+
readonly value: StringType;
|
|
198
|
+
}>;
|
|
199
|
+
/** The style sub-struct. */
|
|
200
|
+
readonly Style: StructType<{
|
|
201
|
+
readonly labelWidth: OptionType<StringType>;
|
|
202
|
+
readonly controlsWidth: OptionType<StringType>;
|
|
203
|
+
readonly previewMinHeight: OptionType<StringType>;
|
|
204
|
+
}>;
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layout/configurator/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,SAAS,EACT,WAAW,EAEX,UAAU,EACV,UAAU,EACV,UAAU,EAIb,MAAM,eAAe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;gBAAC,IAAI,EAAE,eAAe,CAAA;aAAE,CAAC,CAAC;kBACrE,SAAS,CAAC,oBAAoB,CAAC;mBAC9B,UAAU,CAAC,qBAAqB,CAAC;;QA6LpC,8BAA8B;;;;;;;QAE9B,2BAA2B;;;;;QAE3B,4BAA4B;;;;;;;CAG1B,CAAC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { ArrayType, BooleanType, East, OptionType, StringType, StructType, none, some, variant, } from "@elaraai/east";
|
|
6
|
+
import { UIComponentType } from "../../component.js";
|
|
7
|
+
import { ConfiguratorSpecType, ConfiguratorStyleType, } from "./types.js";
|
|
8
|
+
export { ConfiguratorSpecType, ConfiguratorStyleType, } from "./types.js";
|
|
9
|
+
/**
|
|
10
|
+
* One row of the control table.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* Build these with {@link Configurator.Control} rather than by hand — the
|
|
14
|
+
* `value` field is what the spec column reads, so constructing the struct
|
|
15
|
+
* directly is the easiest way to let the two drift apart.
|
|
16
|
+
*
|
|
17
|
+
* @property label - Row label, rendered in the left gutter
|
|
18
|
+
* @property value - Current value for the spec column (`none` omits the row)
|
|
19
|
+
* @property control - The control itself (a SegmentGroup, Switch row, Slider, …)
|
|
20
|
+
* @property hint - Secondary annotation rendered beside the control
|
|
21
|
+
*/
|
|
22
|
+
export const ConfiguratorControlType = StructType({
|
|
23
|
+
label: StringType,
|
|
24
|
+
value: OptionType(StringType),
|
|
25
|
+
control: UIComponentType,
|
|
26
|
+
hint: OptionType(StringType),
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Standalone East type for `Configurator` data — mirrors the inline arm in
|
|
30
|
+
* `component.ts` (which spells the child slots with the recursion `node`).
|
|
31
|
+
* Used by the renderer for `ValueTypeOf` and equality.
|
|
32
|
+
*
|
|
33
|
+
* @property controls - The control rows, in display order
|
|
34
|
+
* @property preview - The component being configured
|
|
35
|
+
* @property live - Whether the preview updates live (renders the LIVE pip)
|
|
36
|
+
* @property aside - Optional secondary panel beneath the preview
|
|
37
|
+
* @property spec - Extra spec rows, appended after those derived from `controls`
|
|
38
|
+
* @property style - Optional sizing overrides
|
|
39
|
+
*/
|
|
40
|
+
export const ConfiguratorType = StructType({
|
|
41
|
+
controls: ArrayType(ConfiguratorControlType),
|
|
42
|
+
preview: UIComponentType,
|
|
43
|
+
live: BooleanType,
|
|
44
|
+
aside: OptionType(StructType({ label: StringType, body: UIComponentType })),
|
|
45
|
+
spec: ArrayType(ConfiguratorSpecType),
|
|
46
|
+
style: OptionType(ConfiguratorStyleType),
|
|
47
|
+
});
|
|
48
|
+
function buildStyle(style) {
|
|
49
|
+
return East.value({
|
|
50
|
+
labelWidth: style.labelWidth !== undefined ? some(style.labelWidth) : none,
|
|
51
|
+
controlsWidth: style.controlsWidth !== undefined ? some(style.controlsWidth) : none,
|
|
52
|
+
previewMinHeight: style.previewMinHeight !== undefined ? some(style.previewMinHeight) : none,
|
|
53
|
+
}, ConfiguratorStyleType);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Builds a control row for {@link Configurator.Root}.
|
|
57
|
+
*
|
|
58
|
+
* @param label - Row label, rendered in the left gutter
|
|
59
|
+
* @param value - Current value, echoed in the spec column
|
|
60
|
+
* @param control - The control component for this row
|
|
61
|
+
* @param hint - Optional secondary annotation beside the control
|
|
62
|
+
* @returns A control row value
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* import { Configurator, SegmentGroup } from "@elaraai/east-ui";
|
|
67
|
+
*
|
|
68
|
+
* Configurator.Control("Density", "compact", SegmentGroup.Root(...));
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
function createConfiguratorControl(label, value, control, hint) {
|
|
72
|
+
return East.value({
|
|
73
|
+
label,
|
|
74
|
+
value: some(value),
|
|
75
|
+
control,
|
|
76
|
+
hint: hint !== undefined ? some(hint) : none,
|
|
77
|
+
}, ConfiguratorControlType);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Builds a control row that contributes no spec entry.
|
|
81
|
+
*
|
|
82
|
+
* @param label - Row label, rendered in the left gutter
|
|
83
|
+
* @param control - The control component for this row
|
|
84
|
+
* @param hint - Optional secondary annotation beside the control
|
|
85
|
+
* @returns A control row value with no spec contribution
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* For rows whose state is better described by explicit `spec` entries — a
|
|
89
|
+
* `Shape` row of two switches that reports `Radius` and `Width` separately, for
|
|
90
|
+
* instance.
|
|
91
|
+
*/
|
|
92
|
+
function createConfiguratorSlot(label, control, hint) {
|
|
93
|
+
return East.value({
|
|
94
|
+
label,
|
|
95
|
+
value: none,
|
|
96
|
+
control,
|
|
97
|
+
hint: hint !== undefined ? some(hint) : none,
|
|
98
|
+
}, ConfiguratorControlType);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Builds a spec row for the `spec` option.
|
|
102
|
+
*
|
|
103
|
+
* @param label - The row label
|
|
104
|
+
* @param value - The current value
|
|
105
|
+
* @returns A spec row value
|
|
106
|
+
*/
|
|
107
|
+
function createConfiguratorSpec(label, value) {
|
|
108
|
+
return East.value({ label, value }, ConfiguratorSpecType);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates a Configurator — a labelled control table beside a live preview and a
|
|
112
|
+
* derived spec readout.
|
|
113
|
+
*
|
|
114
|
+
* @param options - Controls, preview, live pip, optional aside, extra spec rows, and sizing
|
|
115
|
+
* @returns An East expression representing the Configurator
|
|
116
|
+
*
|
|
117
|
+
* @remarks
|
|
118
|
+
* `controls` is the single source of truth: each row renders its control and
|
|
119
|
+
* contributes its `value` to the spec column, so a control and its readout
|
|
120
|
+
* cannot disagree. The sidebar stacks beneath the control table on narrow
|
|
121
|
+
* viewports. The rendered control column carries a collapse toggle (the Dock
|
|
122
|
+
* rail chrome) so a viewer can hand its width to the preview; collapsed state
|
|
123
|
+
* is a viewer preference persisted per instance by the renderer, never part of
|
|
124
|
+
* this value.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* import { Configurator, SegmentGroup, Badge } from "@elaraai/east-ui";
|
|
129
|
+
*
|
|
130
|
+
* Configurator.Root({
|
|
131
|
+
* controls: [Configurator.Control("Variant", "outline", SegmentGroup.Root(...))],
|
|
132
|
+
* preview: Badge.Root("Sample"),
|
|
133
|
+
* });
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
function createConfigurator(options) {
|
|
137
|
+
const { controls, preview, live, aside, spec, ...visual } = options;
|
|
138
|
+
const hasVisual = Object.values(visual).some(field => field !== undefined);
|
|
139
|
+
return East.value(variant("Configurator", {
|
|
140
|
+
controls,
|
|
141
|
+
preview,
|
|
142
|
+
live: live !== undefined ? live : true,
|
|
143
|
+
aside: aside !== undefined ? some({ label: aside.label, body: aside.body }) : none,
|
|
144
|
+
spec: spec !== undefined ? spec : [],
|
|
145
|
+
style: hasVisual ? some(buildStyle(visual)) : none,
|
|
146
|
+
}), UIComponentType);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Configurator — a labelled control table beside a live preview and a derived
|
|
150
|
+
* spec readout.
|
|
151
|
+
*
|
|
152
|
+
* @remarks
|
|
153
|
+
* Use `Configurator.Root({ controls, preview, ... })`; build rows with
|
|
154
|
+
* `Configurator.Control` (contributes a spec entry) or `Configurator.Slot` (does
|
|
155
|
+
* not). Types via `.Types`.
|
|
156
|
+
*/
|
|
157
|
+
export const Configurator = {
|
|
158
|
+
/** Build a Configurator (see {@link createConfigurator}). */
|
|
159
|
+
Root: createConfigurator,
|
|
160
|
+
/** Build a control row that also reports its value in the spec column. */
|
|
161
|
+
Control: createConfiguratorControl,
|
|
162
|
+
/** Build a control row that contributes no spec entry. */
|
|
163
|
+
Slot: createConfiguratorSlot,
|
|
164
|
+
/** Build an extra spec row for the `spec` option. */
|
|
165
|
+
Spec: createConfiguratorSpec,
|
|
166
|
+
Types: {
|
|
167
|
+
/** The Configurator data struct. */
|
|
168
|
+
Configurator: ConfiguratorType,
|
|
169
|
+
/** The control-row struct. */
|
|
170
|
+
Control: ConfiguratorControlType,
|
|
171
|
+
/** The spec-row struct. */
|
|
172
|
+
Spec: ConfiguratorSpecType,
|
|
173
|
+
/** The style sub-struct. */
|
|
174
|
+
Style: ConfiguratorStyleType,
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/layout/configurator/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGH,SAAS,EACT,WAAW,EACX,IAAI,EACJ,UAAU,EACV,UAAU,EACV,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,OAAO,GACV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACH,oBAAoB,EACpB,qBAAqB,GAExB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,oBAAoB,EACpB,qBAAqB,GAExB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAAC;IAC9C,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7B,OAAO,EAAE,eAAe;IACxB,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;CAC/B,CAAC,CAAC;AAOH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAOxB,UAAU,CAAC;IACZ,QAAQ,EAAE,SAAS,CAAC,uBAAuB,CAAC;IAC5C,OAAO,EAAE,eAAe;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;AAChC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,6DAA6D;IAC7D,IAAI,EAAE,kBAAkB;IACxB,0EAA0E;IAC1E,OAAO,EAAE,yBAAyB;IAClC,0DAA0D;IAC1D,IAAI,EAAE,sBAAsB;IAC5B,qDAAqD;IACrD,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE;QACH,oCAAoC;QACpC,YAAY,EAAE,gBAAgB;QAC9B,8BAA8B;QAC9B,OAAO,EAAE,uBAAuB;QAChC,2BAA2B;QAC3B,IAAI,EAAE,oBAAoB;QAC1B,4BAA4B;QAC5B,KAAK,EAAE,qBAAqB;KAC/B;CACK,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { type SubtypeExprOrValue, OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
+
/**
|
|
7
|
+
* Visual overrides for {@link Configurator}.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The layout itself (two columns, the label gutter, the row rules, the sidebar
|
|
11
|
+
* sections) lives in the renderer's slot recipe — these fields only widen or
|
|
12
|
+
* narrow it. Everything is optional; the recipe supplies the defaults.
|
|
13
|
+
*
|
|
14
|
+
* @property labelWidth - Width of the control-row label gutter (e.g. `"140px"`)
|
|
15
|
+
* @property controlsWidth - Cap on the control column's width (e.g. `"340px"`); the preview column always takes the remaining width
|
|
16
|
+
* @property previewMinHeight - Minimum height of the preview stage
|
|
17
|
+
*/
|
|
18
|
+
export declare const ConfiguratorStyleType: StructType<{
|
|
19
|
+
readonly labelWidth: OptionType<StringType>;
|
|
20
|
+
readonly controlsWidth: OptionType<StringType>;
|
|
21
|
+
readonly previewMinHeight: OptionType<StringType>;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Type representing {@link ConfiguratorStyleType} values.
|
|
25
|
+
*/
|
|
26
|
+
export type ConfiguratorStyleType = typeof ConfiguratorStyleType;
|
|
27
|
+
/**
|
|
28
|
+
* A single row of the spec readout — one label / value pair.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Most rows are derived automatically from the controls (see
|
|
32
|
+
* {@link ConfiguratorControlType}); this type is what an *extra* derived row
|
|
33
|
+
* looks like, for state that has no control row of its own.
|
|
34
|
+
*
|
|
35
|
+
* @property label - The row label, rendered muted in the spec column
|
|
36
|
+
* @property value - The current value, rendered as mono emphasis
|
|
37
|
+
*/
|
|
38
|
+
export declare const ConfiguratorSpecType: StructType<{
|
|
39
|
+
readonly label: StringType;
|
|
40
|
+
readonly value: StringType;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Type representing {@link ConfiguratorSpecType} values.
|
|
44
|
+
*/
|
|
45
|
+
export type ConfiguratorSpecType = typeof ConfiguratorSpecType;
|
|
46
|
+
/**
|
|
47
|
+
* Style options accepted by `Configurator.Root`.
|
|
48
|
+
*/
|
|
49
|
+
export interface ConfiguratorStyle {
|
|
50
|
+
/** Width of the control-row label gutter (e.g. `"140px"`). */
|
|
51
|
+
labelWidth?: SubtypeExprOrValue<StringType>;
|
|
52
|
+
/** Cap on the control column's width (e.g. `"340px"`); the preview column always takes the remaining width. */
|
|
53
|
+
controlsWidth?: SubtypeExprOrValue<StringType>;
|
|
54
|
+
/** Minimum height of the preview stage. */
|
|
55
|
+
previewMinHeight?: SubtypeExprOrValue<StringType>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layout/configurator/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;;;EAIhC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB;;;EAG/B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC5C,+GAA+G;IAC/G,aAAa,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC/C,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;CACrD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { OptionType, StringType, StructType, } from "@elaraai/east";
|
|
6
|
+
/**
|
|
7
|
+
* Visual overrides for {@link Configurator}.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The layout itself (two columns, the label gutter, the row rules, the sidebar
|
|
11
|
+
* sections) lives in the renderer's slot recipe — these fields only widen or
|
|
12
|
+
* narrow it. Everything is optional; the recipe supplies the defaults.
|
|
13
|
+
*
|
|
14
|
+
* @property labelWidth - Width of the control-row label gutter (e.g. `"140px"`)
|
|
15
|
+
* @property controlsWidth - Cap on the control column's width (e.g. `"340px"`); the preview column always takes the remaining width
|
|
16
|
+
* @property previewMinHeight - Minimum height of the preview stage
|
|
17
|
+
*/
|
|
18
|
+
export const ConfiguratorStyleType = StructType({
|
|
19
|
+
labelWidth: OptionType(StringType),
|
|
20
|
+
controlsWidth: OptionType(StringType),
|
|
21
|
+
previewMinHeight: OptionType(StringType),
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* A single row of the spec readout — one label / value pair.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Most rows are derived automatically from the controls (see
|
|
28
|
+
* {@link ConfiguratorControlType}); this type is what an *extra* derived row
|
|
29
|
+
* looks like, for state that has no control row of its own.
|
|
30
|
+
*
|
|
31
|
+
* @property label - The row label, rendered muted in the spec column
|
|
32
|
+
* @property value - The current value, rendered as mono emphasis
|
|
33
|
+
*/
|
|
34
|
+
export const ConfiguratorSpecType = StructType({
|
|
35
|
+
label: StringType,
|
|
36
|
+
value: StringType,
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/layout/configurator/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,UAAU,EACV,UAAU,EACV,UAAU,GACb,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;IAC5C,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAClC,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC;IACrC,gBAAgB,EAAE,UAAU,CAAC,UAAU,CAAC;CAC3C,CAAC,CAAC;AAOH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC3C,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CACpB,CAAC,CAAC"}
|
|
@@ -9,6 +9,7 @@ export { AlignedStack } from "./aligned-stack/index.js";
|
|
|
9
9
|
export { Separator } from "./separator/index.js";
|
|
10
10
|
export { Grid } from "./grid/index.js";
|
|
11
11
|
export { Splitter } from "./splitter/index.js";
|
|
12
|
+
export { Configurator } from "./configurator/index.js";
|
|
12
13
|
export { Sticky } from "./sticky/index.js";
|
|
13
14
|
export { ScrollArea } from "./scroll-area/index.js";
|
|
14
15
|
export { Expandable } from "./expandable/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/src/layout/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export { AlignedStack } from "./aligned-stack/index.js";
|
|
|
9
9
|
export { Separator } from "./separator/index.js";
|
|
10
10
|
export { Grid } from "./grid/index.js";
|
|
11
11
|
export { Splitter } from "./splitter/index.js";
|
|
12
|
+
export { Configurator } from "./configurator/index.js";
|
|
12
13
|
export { Sticky } from "./sticky/index.js";
|
|
13
14
|
export { ScrollArea } from "./scroll-area/index.js";
|
|
14
15
|
export { Expandable } from "./expandable/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -38,6 +38,7 @@ export declare const NavItemType: StructType<{
|
|
|
38
38
|
readonly color: OptionType<StringType>;
|
|
39
39
|
readonly background: OptionType<StringType>;
|
|
40
40
|
readonly colorPalette: OptionType<VariantType<{
|
|
41
|
+
readonly brand: NullType;
|
|
41
42
|
readonly gray: NullType;
|
|
42
43
|
readonly red: NullType;
|
|
43
44
|
readonly orange: NullType;
|
|
@@ -156,6 +157,7 @@ export declare const NavSectionType: StructType<{
|
|
|
156
157
|
readonly color: OptionType<StringType>;
|
|
157
158
|
readonly background: OptionType<StringType>;
|
|
158
159
|
readonly colorPalette: OptionType<VariantType<{
|
|
160
|
+
readonly brand: NullType;
|
|
159
161
|
readonly gray: NullType;
|
|
160
162
|
readonly red: NullType;
|
|
161
163
|
readonly orange: NullType;
|
|
@@ -311,6 +313,7 @@ export declare const NavListType: StructType<{
|
|
|
311
313
|
readonly color: OptionType<StringType>;
|
|
312
314
|
readonly background: OptionType<StringType>;
|
|
313
315
|
readonly colorPalette: OptionType<VariantType<{
|
|
316
|
+
readonly brand: NullType;
|
|
314
317
|
readonly gray: NullType;
|
|
315
318
|
readonly red: NullType;
|
|
316
319
|
readonly orange: NullType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/navigation/nav-list/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,WAAW,EACd,MAAM,eAAe,CAAC;AAQvB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/navigation/nav-list/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,WAAW,EACd,MAAM,eAAe,CAAC;AAQvB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IACzB,wEAAwE;IACxE,GAAG,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACpC,oBAAoB;IACpB,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACtC,0DAA0D;IAC1D,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAA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;;;;;;;;;;;;;;;;EAKtB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC"}
|
|
@@ -48,6 +48,7 @@ export declare const CommandType: StructType<{
|
|
|
48
48
|
readonly color: OptionType<StringType>;
|
|
49
49
|
readonly background: OptionType<StringType>;
|
|
50
50
|
readonly colorPalette: OptionType<import("@elaraai/east").VariantType<{
|
|
51
|
+
readonly brand: NullType;
|
|
51
52
|
readonly gray: NullType;
|
|
52
53
|
readonly red: NullType;
|
|
53
54
|
readonly orange: NullType;
|
|
@@ -248,6 +249,7 @@ export declare const CommandPaletteType: StructType<{
|
|
|
248
249
|
readonly color: OptionType<StringType>;
|
|
249
250
|
readonly background: OptionType<StringType>;
|
|
250
251
|
readonly colorPalette: OptionType<import("@elaraai/east").VariantType<{
|
|
252
|
+
readonly brand: NullType;
|
|
251
253
|
readonly gray: NullType;
|
|
252
254
|
readonly red: NullType;
|
|
253
255
|
readonly orange: NullType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/overlays/command-palette/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAMvD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/overlays/command-palette/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,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AC;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC"}
|
|
@@ -26,7 +26,7 @@ import { type ValueProps, type JsxTag } from "../combinators.js";
|
|
|
26
26
|
* <Text>Revenue</Text>
|
|
27
27
|
* <Text fontWeight="bold">$45,231</Text>
|
|
28
28
|
* </VStack>
|
|
29
|
-
* <Sparkline data={[100.0, 120.0, 115.0, 130.0, 125.0, 140.0, 155.0]} type="area" color="
|
|
29
|
+
* <Sparkline data={[100.0, 120.0, 115.0, 130.0, 125.0, 140.0, 155.0]} type="area" color="brand.600" width="100px" height="40px" />
|
|
30
30
|
* </HStack>
|
|
31
31
|
* ));
|
|
32
32
|
* ```
|
|
@@ -26,7 +26,7 @@ import { leaf } from "../combinators.js";
|
|
|
26
26
|
* <Text>Revenue</Text>
|
|
27
27
|
* <Text fontWeight="bold">$45,231</Text>
|
|
28
28
|
* </VStack>
|
|
29
|
-
* <Sparkline data={[100.0, 120.0, 115.0, 130.0, 125.0, 140.0, 155.0]} type="area" color="
|
|
29
|
+
* <Sparkline data={[100.0, 120.0, 115.0, 130.0, 125.0, 140.0, 155.0]} type="area" color="brand.600" width="100px" height="40px" />
|
|
30
30
|
* </HStack>
|
|
31
31
|
* ));
|
|
32
32
|
* ```
|
|
@@ -27,9 +27,9 @@ import type { ContainerChildrenType } from "../children.js";
|
|
|
27
27
|
*
|
|
28
28
|
* const slideshow = East.function([], UIComponentType, _$ => (
|
|
29
29
|
* <Carousel loop={true} showControls={true} showIndicators={true}>
|
|
30
|
-
* <Box padding="8" background="
|
|
31
|
-
* <Box padding="8" background="
|
|
32
|
-
* <Box padding="8" background="
|
|
30
|
+
* <Box padding="8" background="bg.success.subtle"><Text>First</Text></Box>
|
|
31
|
+
* <Box padding="8" background="bg.warning.subtle"><Text>Second</Text></Box>
|
|
32
|
+
* <Box padding="8" background="bg.subtle"><Text>Third</Text></Box>
|
|
33
33
|
* </Carousel>
|
|
34
34
|
* ));
|
|
35
35
|
* ```
|
|
@@ -26,9 +26,9 @@ import { container } from "../combinators.js";
|
|
|
26
26
|
*
|
|
27
27
|
* const slideshow = East.function([], UIComponentType, _$ => (
|
|
28
28
|
* <Carousel loop={true} showControls={true} showIndicators={true}>
|
|
29
|
-
* <Box padding="8" background="
|
|
30
|
-
* <Box padding="8" background="
|
|
31
|
-
* <Box padding="8" background="
|
|
29
|
+
* <Box padding="8" background="bg.success.subtle"><Text>First</Text></Box>
|
|
30
|
+
* <Box padding="8" background="bg.warning.subtle"><Text>Second</Text></Box>
|
|
31
|
+
* <Box padding="8" background="bg.subtle"><Text>Third</Text></Box>
|
|
32
32
|
* </Carousel>
|
|
33
33
|
* ));
|
|
34
34
|
* ```
|