@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
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* The `<Dock>` chrome as one live configurator — an orientation axis (a
|
|
3
|
+
* horizontal dock collapses its WIDTH to an icon rail beside the board; a
|
|
4
|
+
* vertical dock collapses its HEIGHT to a bottom tray) plus collapsed / badge
|
|
5
|
+
* switches. `collapsed` is the controlled form: the switch and the dock's own
|
|
6
|
+
* chevron both write the same bind through `onCollapsedChange`, so either
|
|
7
|
+
* control drives the other.
|
|
6
8
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
/**
|
|
9
|
-
* The same Dock collapsed (`defaultCollapsed`) — it shrinks to the `railSize`
|
|
10
|
-
* icon rail: the `icon`, an expand chevron, and the `badge`, with `label` as
|
|
11
|
-
* the rail's tooltip. The kept-mounted body is hidden, preserving its state.
|
|
12
|
-
*/
|
|
13
|
-
export declare const dockCollapsedRail: import("@elaraai/east").ExampleDef<[], any>;
|
|
9
|
+
export declare const dockVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
14
10
|
/**
|
|
15
11
|
* The concrete driver (#325): a `<Dock>` source panel beside a `<Planner>` drop
|
|
16
12
|
* target in an `<HStack>`. The dock holds a booking list and the Planner is the
|
|
@@ -19,16 +15,12 @@ export declare const dockCollapsedRail: import("@elaraai/east").ExampleDef<[], a
|
|
|
19
15
|
* `flex="1" minWidth="0"` so it grows into the freed width.
|
|
20
16
|
*/
|
|
21
17
|
export declare const dockBesidePlanner: import("@elaraai/east").ExampleDef<[], any>;
|
|
22
|
-
/**
|
|
23
|
-
* A vertical `<Dock>` — it collapses its HEIGHT to a horizontal tray rail
|
|
24
|
-
* instead of its width. Same header / rail chrome, pinned to the `end` (bottom)
|
|
25
|
-
* edge so the chevron points down when collapsed.
|
|
26
|
-
*/
|
|
27
|
-
export declare const dockVertical: import("@elaraai/east").ExampleDef<[], any>;
|
|
28
18
|
/**
|
|
29
19
|
* Nested `<Dock>`s — a Dock inside another Dock, each with independent
|
|
30
20
|
* collapsed state (keyed by its own structural storage key). The inner dock
|
|
31
21
|
* starts collapsed to its rail.
|
|
32
22
|
*/
|
|
33
23
|
export declare const dockNested: import("@elaraai/east").ExampleDef<[], any>;
|
|
24
|
+
/** Vertical dock — a bottom KPI tray; the main board grows into the freed height. */
|
|
25
|
+
export declare const dockVertical: import("@elaraai/east").ExampleDef<[], any>;
|
|
34
26
|
//# sourceMappingURL=dock.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/dock.examples.tsx"],"names":[],"mappings":"AASA
|
|
1
|
+
{"version":3,"file":"dock.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/dock.examples.tsx"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,6CAgEvB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,6CAmC5B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,UAAU,6CAuBrB,CAAC;AAEH,qFAAqF;AACrF,eAAO,MAAM,YAAY,6CAwBvB,CAAC"}
|
|
@@ -4,30 +4,45 @@ 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, ArrayType, StringType, StructType, example } from "@elaraai/east";
|
|
8
|
-
import { UIComponentType } from "@elaraai/east-ui";
|
|
9
|
-
import { Box, Dock, HStack, Planner, Stack, Text, VStack } from "@elaraai/east-ui";
|
|
7
|
+
import { East, ArrayType, BooleanType, NullType, StringType, StructType, example } from "@elaraai/east";
|
|
8
|
+
import { State, UIComponentType } from "@elaraai/east-ui";
|
|
9
|
+
import { Box, Configurator, Dock, HStack, Planner, Reactive, Stack, Switch, Text, VStack } from "@elaraai/east-ui";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* The `<Dock>` chrome as one live configurator — an orientation axis (a
|
|
12
|
+
* horizontal dock collapses its WIDTH to an icon rail beside the board; a
|
|
13
|
+
* vertical dock collapses its HEIGHT to a bottom tray) plus collapsed / badge
|
|
14
|
+
* switches. `collapsed` is the controlled form: the switch and the dock's own
|
|
15
|
+
* chevron both write the same bind through `onCollapsedChange`, so either
|
|
16
|
+
* control drives the other.
|
|
15
17
|
*/
|
|
16
|
-
export const
|
|
17
|
-
keywords: ["Dock", "layout", "collapse", "rail", "expanded", "icon", "badge", "sidebar"],
|
|
18
|
-
description: "
|
|
19
|
-
fn: East.function([], UIComponentType, (_$) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
export const dockVariants = example({
|
|
19
|
+
keywords: ["Dock", "layout", "collapse", "rail", "expanded", "icon", "badge", "sidebar", "collapsed", "defaultCollapsed", "tooltip", "vertical", "orientation", "tray", "height", "side", "end", "controlled", "onCollapsedChange", "Reactive", "State", "Switch", "Configurator", "getTag", "configurator"],
|
|
20
|
+
description: "Dock configurator — an orientation axis plus collapsed / badge switches driving one live dock beside a reclaiming board; the chevron and the switch share one controlled bind",
|
|
21
|
+
fn: East.function([], UIComponentType, (_$) => {
|
|
22
|
+
return (_jsx(Reactive, { children: $ => {
|
|
23
|
+
// The orientation axis is just its variants — `getTag()` gives
|
|
24
|
+
// the segment key AND its label.
|
|
25
|
+
const collapsedBind = $.let(State.bind([BooleanType], "dock_collapsed", false));
|
|
26
|
+
const collapsedOn = $.let(collapsedBind.read());
|
|
27
|
+
const onCollapsedSw = $.const(East.function([BooleanType], NullType, ($, next) => { $(collapsedBind.write(next)); }));
|
|
28
|
+
// The dock's own chevron writes the same bind — the controlled
|
|
29
|
+
// `collapsed` contract, with the switch as the second surface.
|
|
30
|
+
const onCollapsed = $.const(East.function([BooleanType], NullType, ($, next) => { $(collapsedBind.write(next)); }));
|
|
31
|
+
// ONE dock — the badge slot composes on permanently and the
|
|
32
|
+
// controlled `collapsed` expression threads through; the
|
|
33
|
+
// sibling board reclaims the freed width.
|
|
34
|
+
const preview = $.const(_jsx(Box, { height: "220px", width: "320px", children: _jsxs(HStack, { gap: "3", width: "100%", height: "100%", children: [_jsx(Dock, { icon: "book", label: "Bookings", badge: "3", railSize: "44px", expandedSize: "200px", collapsed: collapsedOn, onCollapsedChange: onCollapsed, children: _jsxs(Stack, { gap: "2", padding: "3", children: [_jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Grade A \u2014 Batch 3" }) }), _jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Grade B \u2014 Batch 7" }) }), _jsx(Box, { padding: "2", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Grade C \u2014 Batch 1" }) })] }) }), _jsx(Box, { flex: "1", minWidth: "0", padding: "3", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Board reclaims the freed width" }) })] }) }));
|
|
35
|
+
return (_jsx(Configurator, { controls: [
|
|
36
|
+
// A Slot, not a Control: the two switches report as
|
|
37
|
+
// the Rail / Badge spec rows below rather than as one
|
|
38
|
+
// value.
|
|
39
|
+
Configurator.Slot("Chrome", _jsx(HStack, { gap: "5", align: "center", wrap: "wrap", children: _jsx(Switch, { checked: collapsedOn, label: "Collapsed", onChange: onCollapsedSw }) })),
|
|
40
|
+
], preview: preview, spec: [
|
|
41
|
+
Configurator.Spec("Rail", collapsedOn.ifElse(_$ => "44px icon rail", _$ => "expanded")),
|
|
42
|
+
Configurator.Spec("Badge", "3"),
|
|
43
|
+
] }));
|
|
44
|
+
} }));
|
|
45
|
+
}),
|
|
31
46
|
inputs: [],
|
|
32
47
|
});
|
|
33
48
|
/**
|
|
@@ -52,17 +67,6 @@ export const dockBesidePlanner = example({
|
|
|
52
67
|
}),
|
|
53
68
|
inputs: [],
|
|
54
69
|
});
|
|
55
|
-
/**
|
|
56
|
-
* A vertical `<Dock>` — it collapses its HEIGHT to a horizontal tray rail
|
|
57
|
-
* instead of its width. Same header / rail chrome, pinned to the `end` (bottom)
|
|
58
|
-
* edge so the chevron points down when collapsed.
|
|
59
|
-
*/
|
|
60
|
-
export const dockVertical = example({
|
|
61
|
-
keywords: ["Dock", "layout", "vertical", "orientation", "tray", "collapse", "height", "side", "end"],
|
|
62
|
-
description: "A vertical Dock — collapses its height to a horizontal tray rail, pinned to the bottom edge",
|
|
63
|
-
fn: East.function([], UIComponentType, (_$) => (_jsx(Box, { height: "240px", width: "360px", children: _jsxs(VStack, { gap: "3", width: "100%", height: "100%", children: [_jsx(Box, { flex: "1", minHeight: "0", width: "100%", padding: "3", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Main board grows into the freed height" }) }), _jsx(Dock, { icon: "chart-line", label: "Metrics", orientation: "vertical", side: "end", expandedSize: "120px", children: _jsx(Box, { padding: "3", children: _jsx(Text, { children: "KPI tray content" }) }) })] }) }))),
|
|
64
|
-
inputs: [],
|
|
65
|
-
});
|
|
66
70
|
/**
|
|
67
71
|
* Nested `<Dock>`s — a Dock inside another Dock, each with independent
|
|
68
72
|
* collapsed state (keyed by its own structural storage key). The inner dock
|
|
@@ -74,4 +78,16 @@ export const dockNested = example({
|
|
|
74
78
|
fn: East.function([], UIComponentType, (_$) => (_jsx(Box, { height: "260px", width: "360px", children: _jsx(Dock, { icon: "layer-group", label: "Outer", expandedSize: "100%", children: _jsxs(Stack, { gap: "2", padding: "3", width: "100%", children: [_jsx(Text, { children: "Outer content" }), _jsx(Box, { height: "140px", width: "100%", children: _jsxs(HStack, { gap: "3", width: "100%", height: "100%", children: [_jsx(Dock, { icon: "filter", label: "Filters", defaultCollapsed: true, children: _jsx(Box, { padding: "3", children: _jsx(Text, { children: "Inner panel" }) }) }), _jsx(Box, { flex: "1", minWidth: "0", padding: "3", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Inner board" }) })] }) })] }) }) }))),
|
|
75
79
|
inputs: [],
|
|
76
80
|
});
|
|
81
|
+
/** Vertical dock — a bottom KPI tray; the main board grows into the freed height. */
|
|
82
|
+
export const dockVertical = example({
|
|
83
|
+
keywords: ["Dock", "orientation", "vertical", "side", "end", "tray", "badge", "collapsed", "Reactive", "State"],
|
|
84
|
+
description: "Vertical dock — a bottom tray with badge; collapsing frees height for the board above",
|
|
85
|
+
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
86
|
+
const collapsedBind = $.let(State.bind([BooleanType], "dock_vertical_collapsed", false));
|
|
87
|
+
const collapsedOn = $.let(collapsedBind.read());
|
|
88
|
+
const onCollapsed = $.const(East.function([BooleanType], NullType, ($, next) => { $(collapsedBind.write(next)); }));
|
|
89
|
+
return (_jsx(Box, { height: "240px", width: "360px", children: _jsxs(VStack, { gap: "3", width: "100%", height: "100%", children: [_jsx(Box, { flex: "1", minHeight: "0", width: "100%", padding: "3", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Main board grows into the freed height" }) }), _jsx(Dock, { icon: "chart-line", label: "Metrics", badge: "3", orientation: "vertical", side: "end", expandedSize: "120px", collapsed: collapsedOn, onCollapsedChange: onCollapsed, children: _jsx(Box, { padding: "3", children: _jsx(Text, { children: "KPI tray content" }) }) })] }) }));
|
|
90
|
+
} }))),
|
|
91
|
+
inputs: [],
|
|
92
|
+
});
|
|
77
93
|
//# sourceMappingURL=dock.examples.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock.examples.js","sourceRoot":"","sources":["../../../test/layout/dock.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"dock.examples.js","sourceRoot":"","sources":["../../../test/layout/dock.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAC,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnH;;;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AAM,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,YAC7B,MAAC,MAAM,IAAC,GAAG,EAAC,GAAG,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,aACtC,KAAC,GAAG,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,GAAG,EAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAC,GAAG,EAAC,UAAU,EAAC,WAAW,EAAC,YAAY,EAAC,IAAI,YACzF,KAAC,IAAI,yDAA8C,GACjD,EACN,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAC,WAAW,EAAC,UAAU,EAAC,IAAI,EAAC,KAAK,EAAC,YAAY,EAAC,OAAO,EAClG,SAAS,EAAE,WAAW,EAAE,iBAAiB,EAAE,WAAW,YACxD,KAAC,GAAG,IAAC,OAAO,EAAC,GAAG,YAAC,KAAC,IAAI,mCAAwB,GAAM,GACjD,IACF,GACP,CACT,CAAC;QACN,CAAC,GAAY,CAChB,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
export declare const flexBasic: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const flexColumn: import("@elaraai/east").ExampleDef<[], any>;
|
|
4
|
-
export declare const flexWrap: import("@elaraai/east").ExampleDef<[], any>;
|
|
5
|
-
export declare const flexCentered: import("@elaraai/east").ExampleDef<[], any>;
|
|
6
|
-
export declare const flexNested: import("@elaraai/east").ExampleDef<[], any>;
|
|
7
|
-
export declare const flexAlignItems: import("@elaraai/east").ExampleDef<[], any>;
|
|
8
|
-
export declare const flexReverse: import("@elaraai/east").ExampleDef<[], any>;
|
|
9
|
-
export declare const flexInteractive: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
+
export declare const flexVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
10
3
|
export declare const flexFillScroll: import("@elaraai/east").ExampleDef<[], any>;
|
|
11
4
|
//# sourceMappingURL=flex.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/flex.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flex.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/flex.examples.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS,6CAapB,CAAC;AAMH,eAAO,MAAM,YAAY,6CAqJvB,CAAC;AAMH,eAAO,MAAM,cAAc,6CAczB,CAAC"}
|
|
@@ -4,9 +4,12 @@ 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";
|
|
8
|
-
import { State,
|
|
9
|
-
import { Button, Flex, Text, VStack, Reactive } from "@elaraai/east-ui";
|
|
7
|
+
import { East, ArrayType, BooleanType, IntegerType, NullType, StringType, StructType, example, variant } from "@elaraai/east";
|
|
8
|
+
import { State, UIComponentType } from "@elaraai/east-ui";
|
|
9
|
+
import { Button, Configurator, Flex, HStack, SegmentGroup, Select, Style, Switch, Text, VStack, Reactive } from "@elaraai/east-ui";
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// Basic — the search-index front door
|
|
12
|
+
// ============================================================================
|
|
10
13
|
export const flexBasic = example({
|
|
11
14
|
keywords: ["Flex", "Root", "basic", "row", "gap"],
|
|
12
15
|
description: "Simple flex container (row by default)",
|
|
@@ -15,83 +18,112 @@ export const flexBasic = example({
|
|
|
15
18
|
}),
|
|
16
19
|
inputs: [],
|
|
17
20
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
// ============================================================================
|
|
22
|
+
// Flex — live configurator over direction, alignment and content
|
|
23
|
+
// ============================================================================
|
|
24
|
+
export const flexVariants = example({
|
|
25
|
+
keywords: ["Flex", "Root", "direction", "row", "justifyContent", "space-between", "column", "alignItems", "wrap", "responsive", "center", "nested", "flex-start", "flex-end", "row-reverse", "Reactive", "State", "interactive", "toggle", "SegmentGroup", "Switch", "Configurator", "getTag", "configurator"],
|
|
26
|
+
description: "Flex configurator — direction, justify, align and content axes plus a wrap switch driving one live flex container; the aside toggles direction from a reactive counter",
|
|
21
27
|
fn: East.function([], UIComponentType, (_$) => {
|
|
22
|
-
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 directions = $.const([
|
|
33
|
+
variant("row", null), variant("column", null), variant("row-reverse", null),
|
|
34
|
+
], ArrayType(Style.Types.FlexDirection));
|
|
35
|
+
const justifies = $.const([
|
|
36
|
+
variant("flex-start", null), variant("center", null),
|
|
37
|
+
variant("space-between", null), variant("space-around", null),
|
|
38
|
+
], ArrayType(Style.Types.JustifyContent));
|
|
39
|
+
const aligns = $.const([
|
|
40
|
+
variant("flex-start", null), variant("center", null),
|
|
41
|
+
variant("flex-end", null), variant("stretch", null),
|
|
42
|
+
], ArrayType(Style.Types.AlignItems));
|
|
43
|
+
// Content is a data-set axis (the chip-rail precedent): each
|
|
44
|
+
// entry swaps the children AND the canvas height that makes it
|
|
45
|
+
// legible — `centered` brings the 100px canvas the centering
|
|
46
|
+
// demo needs, `nested` puts flex containers inside the flex.
|
|
47
|
+
const contents = $.const([
|
|
48
|
+
{
|
|
49
|
+
label: "items", height: "auto",
|
|
50
|
+
kids: [
|
|
51
|
+
_jsx(Text, { children: "Item 1" }),
|
|
52
|
+
_jsx(Text, { children: "Item 2" }),
|
|
53
|
+
_jsx(Text, { children: "Item 3" }),
|
|
54
|
+
_jsx(Text, { children: "Item 4" }),
|
|
55
|
+
_jsx(Text, { children: "Item 5" }),
|
|
56
|
+
_jsx(Text, { children: "Item 6" }),
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "centered", height: "100px",
|
|
61
|
+
kids: [_jsx(Text, { children: "Centered!" })],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "nested", height: "auto",
|
|
65
|
+
kids: [
|
|
66
|
+
_jsxs(Flex, { direction: "column", gap: "1", padding: "2", background: "bg.warning.subtle", borderRadius: "sm", children: [_jsx(Text, { children: "A" }), _jsx(Text, { children: "B" })] }),
|
|
67
|
+
_jsxs(Flex, { direction: "column", gap: "1", padding: "2", background: "bg.warning.subtle", borderRadius: "sm", children: [_jsx(Text, { children: "C" }), _jsx(Text, { children: "D" })] }),
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
], ArrayType(StructType({ label: StringType, height: StringType, kids: ArrayType(UIComponentType) })));
|
|
71
|
+
const directionBind = $.let(State.bind([StringType], "flex_direction", "row"));
|
|
72
|
+
const justifyBind = $.let(State.bind([StringType], "flex_justify", "space-between"));
|
|
73
|
+
const alignBind = $.let(State.bind([StringType], "flex_align", "center"));
|
|
74
|
+
const contentBind = $.let(State.bind([StringType], "flex_content", "items"));
|
|
75
|
+
const wrapBind = $.let(State.bind([BooleanType], "flex_wrap", false));
|
|
76
|
+
const counter = $.let(State.bind([IntegerType], "flex_counter", 0n));
|
|
77
|
+
const dKey = $.let(directionBind.read());
|
|
78
|
+
const jKey = $.let(justifyBind.read());
|
|
79
|
+
const aKey = $.let(alignBind.read());
|
|
80
|
+
const cKey = $.let(contentBind.read());
|
|
81
|
+
const wrapOn = $.let(wrapBind.read());
|
|
82
|
+
const count = $.let(counter.read());
|
|
83
|
+
const onDirection = $.const(East.function([StringType], NullType, ($, next) => { $(directionBind.write(next)); }));
|
|
84
|
+
const onJustify = $.const(East.function([StringType], NullType, ($, next) => { $(justifyBind.write(next)); }));
|
|
85
|
+
const onAlign = $.const(East.function([StringType], NullType, ($, next) => { $(alignBind.write(next)); }));
|
|
86
|
+
const onContent = $.const(East.function([StringType], NullType, ($, next) => { $(contentBind.write(next)); }));
|
|
87
|
+
const onWrap = $.const(East.function([BooleanType], NullType, ($, next) => { $(wrapBind.write(next)); }));
|
|
88
|
+
const inc = $.const(East.function([], NullType, $ => {
|
|
89
|
+
const cur = $.let(counter.read());
|
|
90
|
+
$(counter.write(cur.add(1n)));
|
|
91
|
+
}));
|
|
92
|
+
// Each selection is a lookup into the same array the control renders.
|
|
93
|
+
const direction = $.let(directions.filter((_$, v) => v.getTag().equal(dKey)).get(0n));
|
|
94
|
+
const justify = $.let(justifies.filter((_$, v) => v.getTag().equal(jKey)).get(0n));
|
|
95
|
+
const align = $.let(aligns.filter((_$, v) => v.getTag().equal(aKey)).get(0n));
|
|
96
|
+
const content = $.let(contents.filter((_$, o) => o.label.equal(cKey)).get(0n));
|
|
97
|
+
// The folded interactive: direction alternates row / column on
|
|
98
|
+
// each click of the aside button.
|
|
99
|
+
const asideDirection = $.let(count.remainder(2n).equal(0n).ifElse(_$ => variant("row", null), _$ => variant("column", null)));
|
|
100
|
+
return (_jsx(Configurator, { controls: [
|
|
101
|
+
Configurator.Control("Direction", dKey, _jsx(SegmentGroup, { value: dKey, onChange: onDirection, size: "sm", items: directions.map((_$, v) => SegmentGroup.Item(v.getTag(), _jsx(Text, { children: v.getTag().upperCase() }))) })),
|
|
102
|
+
Configurator.Control("Justify", jKey, _jsx(Select, { value: jKey, onChange: onJustify, size: "sm", items: justifies.map((_$, v) => Select.Item(v.getTag(), v.getTag())) })),
|
|
103
|
+
Configurator.Control("Align", aKey, _jsx(Select, { value: aKey, onChange: onAlign, size: "sm", items: aligns.map((_$, v) => Select.Item(v.getTag(), v.getTag())) })),
|
|
104
|
+
Configurator.Control("Content", cKey, _jsx(SegmentGroup, { value: cKey, onChange: onContent, size: "sm", items: contents.map((_$, o) => SegmentGroup.Item(o.label, _jsx(Text, { children: o.label.upperCase() }))) })),
|
|
105
|
+
// A Slot, not a Control: the switch reports as the
|
|
106
|
+
// Width spec row below rather than as one value.
|
|
107
|
+
Configurator.Slot("Wrap", _jsx(HStack, { gap: "5", align: "center", wrap: "wrap", children: _jsx(Switch, { checked: wrapOn, label: "Wrap", onChange: onWrap }) })),
|
|
108
|
+
], preview: _jsx(Flex, { direction: direction, justifyContent: justify, alignItems: align, wrap: wrapOn.ifElse(_$ => variant("wrap", null), _$ => variant("nowrap", null)), gap: "3", padding: "4", background: "bg.subtle", borderRadius: "md", width: wrapOn.ifElse(_$ => "200px", _$ => "auto"), height: content.height, children: content.kids }), aside: {
|
|
109
|
+
label: "Direction · Reactive",
|
|
110
|
+
body: (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsxs(Flex, { direction: asideDirection, gap: "4", padding: "4", background: "bg.subtle", borderRadius: "md", children: [_jsx(Text, { children: "A" }), _jsx(Text, { children: "B" }), _jsx(Text, { children: "C" })] }), _jsx(Button, { size: "xs", onClick: inc, children: "Toggle direction" })] })),
|
|
111
|
+
}, spec: [
|
|
112
|
+
Configurator.Spec("Width", wrapOn.ifElse(_$ => "200px", _$ => "auto")),
|
|
113
|
+
Configurator.Spec("Height", content.height),
|
|
114
|
+
] }));
|
|
115
|
+
} }));
|
|
23
116
|
}),
|
|
24
117
|
inputs: [],
|
|
25
118
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
30
|
-
return (_jsxs(Flex, { direction: "column", alignItems: "center", gap: "2", padding: "4", background: "purple.50", borderRadius: "md", children: [_jsx(Text, { children: "Top" }), _jsx(Text, { children: "Middle" }), _jsx(Text, { children: "Bottom" })] }));
|
|
31
|
-
}),
|
|
32
|
-
inputs: [],
|
|
33
|
-
});
|
|
34
|
-
export const flexWrap = example({
|
|
35
|
-
keywords: ["Flex", "Root", "wrap", "responsive"],
|
|
36
|
-
description: "Items wrap to next line when container is too narrow",
|
|
37
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
38
|
-
return (_jsxs(Flex, { wrap: "wrap", gap: "2", padding: "4", background: "green.50", borderRadius: "md", width: "200px", children: [_jsx(Text, { children: "Item 1" }), _jsx(Text, { children: "Item 2" }), _jsx(Text, { children: "Item 3" }), _jsx(Text, { children: "Item 4" }), _jsx(Text, { children: "Item 5" }), _jsx(Text, { children: "Item 6" })] }));
|
|
39
|
-
}),
|
|
40
|
-
inputs: [],
|
|
41
|
-
});
|
|
42
|
-
export const flexCentered = example({
|
|
43
|
-
keywords: ["Flex", "Root", "justifyContent", "alignItems", "center"],
|
|
44
|
-
description: "Both horizontally and vertically centered",
|
|
45
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
46
|
-
return (_jsx(Flex, { justifyContent: "center", alignItems: "center", height: "100px", background: "teal.100", borderRadius: "md", children: _jsx(Text, { children: "Centered!" }) }));
|
|
47
|
-
}),
|
|
48
|
-
inputs: [],
|
|
49
|
-
});
|
|
50
|
-
export const flexNested = example({
|
|
51
|
-
keywords: ["Flex", "Root", "nested"],
|
|
52
|
-
description: "Flex containers inside flex containers",
|
|
53
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
54
|
-
return (_jsxs(Flex, { direction: "row", gap: "4", padding: "4", background: "gray.100", borderRadius: "md", children: [_jsxs(Flex, { direction: "column", gap: "1", padding: "2", background: "orange.100", borderRadius: "sm", children: [_jsx(Text, { children: "A" }), _jsx(Text, { children: "B" })] }), _jsxs(Flex, { direction: "column", gap: "1", padding: "2", background: "orange.100", borderRadius: "sm", children: [_jsx(Text, { children: "C" }), _jsx(Text, { children: "D" })] })] }));
|
|
55
|
-
}),
|
|
56
|
-
inputs: [],
|
|
57
|
-
});
|
|
58
|
-
export const flexAlignItems = example({
|
|
59
|
-
keywords: ["Flex", "Root", "alignItems", "flex-start", "center", "flex-end"],
|
|
60
|
-
description: "Different alignItems values",
|
|
61
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
62
|
-
return (_jsxs(Flex, { direction: "row", gap: "2", children: [_jsx(Flex, { alignItems: "flex-start", height: "60px", padding: "2", background: "pink.100", borderRadius: "sm", children: _jsx(Text, { children: "flex-start" }) }), _jsx(Flex, { alignItems: "center", height: "60px", padding: "2", background: "pink.100", borderRadius: "sm", children: _jsx(Text, { children: "center" }) }), _jsx(Flex, { alignItems: "flex-end", height: "60px", padding: "2", background: "pink.100", borderRadius: "sm", children: _jsx(Text, { children: "flex-end" }) })] }));
|
|
63
|
-
}),
|
|
64
|
-
inputs: [],
|
|
65
|
-
});
|
|
66
|
-
export const flexReverse = example({
|
|
67
|
-
keywords: ["Flex", "Root", "direction", "row-reverse"],
|
|
68
|
-
description: "Items displayed in reverse order",
|
|
69
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
70
|
-
return (_jsxs(Flex, { direction: "row-reverse", gap: "4", padding: "4", background: "cyan.50", borderRadius: "md", children: [_jsx(Text, { children: "1" }), _jsx(Text, { children: "2" }), _jsx(Text, { children: "3" })] }));
|
|
71
|
-
}),
|
|
72
|
-
inputs: [],
|
|
73
|
-
});
|
|
74
|
-
export const flexInteractive = example({
|
|
75
|
-
keywords: ["Flex", "Reactive", "State", "interactive", "direction", "toggle"],
|
|
76
|
-
description: "Flex direction toggles between row and column on each click",
|
|
77
|
-
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
78
|
-
const counter = $.let(State.bind([IntegerType], "flex_counter", 0n));
|
|
79
|
-
const value = $.let(counter.read());
|
|
80
|
-
const isRow = $.let(value.remainder(2n).equal(0n));
|
|
81
|
-
const direction = $.let(isRow.ifElse(() => Style.FlexDirection("row"), () => Style.FlexDirection("column")));
|
|
82
|
-
const inc = $.const(East.function([], NullType, $ => {
|
|
83
|
-
const cur = $.let(counter.read());
|
|
84
|
-
$(counter.write(cur.add(1n)));
|
|
85
|
-
}));
|
|
86
|
-
return (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsxs(Flex, { direction: direction, gap: "4", padding: "4", background: "gray.100", borderRadius: "md", children: [_jsx(Text, { children: "A" }), _jsx(Text, { children: "B" }), _jsx(Text, { children: "C" })] }), _jsx(Button, { onClick: inc, children: "Toggle direction" })] }));
|
|
87
|
-
} }))),
|
|
88
|
-
inputs: [],
|
|
89
|
-
});
|
|
119
|
+
// ============================================================================
|
|
120
|
+
// Behavioral isolates — the #320 bounded-column contract
|
|
121
|
+
// ============================================================================
|
|
90
122
|
export const flexFillScroll = example({
|
|
91
123
|
keywords: ["Flex", "fill", "scroll", "scrollY", "column", "bounded", "sizing", "height"],
|
|
92
124
|
description: "A column Flex bounded to a fixed height (#320): a non-shrinking toolbar row above a `fill scrollY` body that consumes the remainder and scrolls — the `flex:1 + min-height:0 + overflow` incantation as declarative props",
|
|
93
125
|
fn: East.function([], UIComponentType, (_$) => {
|
|
94
|
-
return (_jsxs(Flex, { direction: "column", height: "220px", width: "260px", children: [_jsx(Flex, { background: "
|
|
126
|
+
return (_jsxs(Flex, { direction: "column", height: "220px", width: "260px", children: [_jsx(Flex, { background: "bg.subtle", padding: "3", children: _jsx(Text, { children: "Toolbar" }) }), _jsx(Flex, { fill: true, scrollY: true, direction: "column", gap: "2", padding: "3", children: Array.from({ length: 20 }, (_, i) => _jsx(Text, { children: `Row ${i + 1}` })) })] }));
|
|
95
127
|
}),
|
|
96
128
|
inputs: [],
|
|
97
129
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.examples.js","sourceRoot":"","sources":["../../../test/layout/flex.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"flex.examples.js","sourceRoot":"","sources":["../../../test/layout/flex.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS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G,YAAC,KAAC,IAAI,0BAAe,GAAO,EACpE,KAAC,IAAI,IAAC,IAAI,QAAC,OAAO,QAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,GAAG,EAAC,OAAO,EAAC,GAAG,YACpD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAC,IAAI,cAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAQ,CAAC,GACjE,IACJ,CACV,CAAC;IACN,CAAC,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const gridGaps: import("@elaraai/east").ExampleDef<[], any>;
|
|
4
|
-
export declare const gridFixedWidths: import("@elaraai/east").ExampleDef<[], any>;
|
|
5
|
-
export declare const gridCentered: import("@elaraai/east").ExampleDef<[], any>;
|
|
6
|
-
export declare const gridResponsive: import("@elaraai/east").ExampleDef<[], any>;
|
|
7
|
-
export declare const gridDense: import("@elaraai/east").ExampleDef<[], any>;
|
|
8
|
-
export declare const gridFullWidth: import("@elaraai/east").ExampleDef<[], any>;
|
|
9
|
-
export declare const gridInteractive: import("@elaraai/east").ExampleDef<[], any>;
|
|
10
|
-
export declare const gridNamedAreas: import("@elaraai/east").ExampleDef<[], any>;
|
|
1
|
+
export declare const gridBasic: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
+
export declare const gridVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
11
3
|
//# sourceMappingURL=grid.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/grid.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grid.examples.d.ts","sourceRoot":"","sources":["../../../test/layout/grid.examples.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS,6CAoBpB,CAAC;AAMH,eAAO,MAAM,YAAY,6CA+JvB,CAAC"}
|