@elaraai/east-ui 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/buttons/button/index.d.ts +3 -2
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +2 -2
- package/dist/src/buttons/button/types.d.ts +1 -0
- package/dist/src/buttons/button/types.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.d.ts +4 -2
- package/dist/src/buttons/copy-button/index.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.js +2 -2
- package/dist/src/buttons/copy-button/types.d.ts +2 -0
- package/dist/src/buttons/copy-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +5 -1
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +1 -1
- package/dist/src/buttons/icon-button/types.d.ts +4 -0
- package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
- package/dist/src/charts/sparkline/index.d.ts +3 -3
- package/dist/src/charts/sparkline/index.js +3 -3
- package/dist/src/charts/spec/index.d.ts +1 -1
- package/dist/src/charts/spec/index.js +1 -1
- package/dist/src/collections/table/types.d.ts +1 -0
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.d.ts +8 -2
- package/dist/src/collections/tree-view/index.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.js +4 -4
- package/dist/src/component.d.ts +80 -0
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +31 -0
- package/dist/src/component.js.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts +1 -1
- package/dist/src/disclosure/carousel/index.js +1 -1
- package/dist/src/disclosure/segment-group/index.d.ts +1 -0
- package/dist/src/disclosure/segment-group/index.d.ts.map +1 -1
- package/dist/src/disclosure/segment-group/types.d.ts +1 -0
- package/dist/src/disclosure/segment-group/types.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +1 -0
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/types.d.ts +1 -0
- package/dist/src/disclosure/tabs/types.d.ts.map +1 -1
- package/dist/src/display/avatar/index.d.ts +2 -0
- package/dist/src/display/avatar/index.d.ts.map +1 -1
- package/dist/src/display/avatar/types.d.ts +2 -0
- package/dist/src/display/avatar/types.d.ts.map +1 -1
- package/dist/src/display/avatar-group/types.d.ts +1 -0
- package/dist/src/display/avatar-group/types.d.ts.map +1 -1
- package/dist/src/display/badge/index.d.ts +2 -0
- package/dist/src/display/badge/index.d.ts.map +1 -1
- package/dist/src/display/badge/types.d.ts +2 -0
- package/dist/src/display/badge/types.d.ts.map +1 -1
- package/dist/src/display/icon/index.d.ts +3 -1
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +1 -1
- package/dist/src/display/icon/types.d.ts +2 -0
- package/dist/src/display/icon/types.d.ts.map +1 -1
- package/dist/src/display/kbd/types.d.ts +2 -0
- package/dist/src/display/kbd/types.d.ts.map +1 -1
- package/dist/src/display/segmented-meter/index.js +1 -1
- package/dist/src/display/stat/types.d.ts +1 -0
- package/dist/src/display/stat/types.d.ts.map +1 -1
- package/dist/src/display/tag/index.d.ts +2 -0
- package/dist/src/display/tag/index.d.ts.map +1 -1
- package/dist/src/display/tag/types.d.ts +2 -0
- package/dist/src/display/tag/types.d.ts.map +1 -1
- package/dist/src/forms/checkbox/types.d.ts +2 -0
- package/dist/src/forms/checkbox/types.d.ts.map +1 -1
- package/dist/src/forms/field/index.d.ts +4 -0
- package/dist/src/forms/field/index.d.ts.map +1 -1
- package/dist/src/forms/field/types.d.ts +8 -0
- package/dist/src/forms/field/types.d.ts.map +1 -1
- package/dist/src/forms/radio-card-group/types.d.ts +2 -0
- package/dist/src/forms/radio-card-group/types.d.ts.map +1 -1
- package/dist/src/forms/radio-group/types.d.ts +2 -0
- package/dist/src/forms/radio-group/types.d.ts.map +1 -1
- package/dist/src/forms/slider/index.d.ts +2 -0
- package/dist/src/forms/slider/index.d.ts.map +1 -1
- package/dist/src/forms/slider/types.d.ts +2 -0
- package/dist/src/forms/slider/types.d.ts.map +1 -1
- package/dist/src/forms/switch/types.d.ts +2 -0
- package/dist/src/forms/switch/types.d.ts.map +1 -1
- package/dist/src/forms/tags-input/types.d.ts +2 -0
- package/dist/src/forms/tags-input/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +1 -1
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +1 -1
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +2 -2
- package/dist/src/layout/box/index.js +2 -2
- package/dist/src/layout/configurator/index.d.ts +207 -0
- package/dist/src/layout/configurator/index.d.ts.map +1 -0
- package/dist/src/layout/configurator/index.js +177 -0
- package/dist/src/layout/configurator/index.js.map +1 -0
- package/dist/src/layout/configurator/types.d.ts +57 -0
- package/dist/src/layout/configurator/types.d.ts.map +1 -0
- package/dist/src/layout/configurator/types.js +38 -0
- package/dist/src/layout/configurator/types.js.map +1 -0
- package/dist/src/layout/index.d.ts +1 -0
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +1 -0
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/navigation/nav-list/types.d.ts +3 -0
- package/dist/src/navigation/nav-list/types.d.ts.map +1 -1
- package/dist/src/overlays/command-palette/types.d.ts +2 -0
- package/dist/src/overlays/command-palette/types.d.ts.map +1 -1
- package/dist/src/runtime/charts/sparkline.d.ts +1 -1
- package/dist/src/runtime/charts/sparkline.js +1 -1
- package/dist/src/runtime/disclosure/carousel.d.ts +3 -3
- package/dist/src/runtime/disclosure/carousel.js +3 -3
- package/dist/src/runtime/disclosure/collapsible.d.ts +1 -1
- package/dist/src/runtime/disclosure/collapsible.js +1 -1
- package/dist/src/runtime/layout/box.d.ts +1 -1
- package/dist/src/runtime/layout/box.js +1 -1
- package/dist/src/runtime/layout/configurator.d.ts +56 -0
- package/dist/src/runtime/layout/configurator.d.ts.map +1 -0
- package/dist/src/runtime/layout/configurator.js +53 -0
- package/dist/src/runtime/layout/configurator.js.map +1 -0
- package/dist/src/runtime/layout/grid.d.ts +4 -4
- package/dist/src/runtime/layout/grid.js +4 -4
- package/dist/src/runtime/layout/index.d.ts +1 -0
- package/dist/src/runtime/layout/index.d.ts.map +1 -1
- package/dist/src/runtime/layout/index.js +1 -0
- package/dist/src/runtime/layout/index.js.map +1 -1
- package/dist/src/runtime/layout/splitter.d.ts +2 -2
- package/dist/src/runtime/layout/splitter.js +2 -2
- package/dist/src/runtime/layout/stack.d.ts +1 -1
- package/dist/src/runtime/layout/stack.js +1 -1
- package/dist/src/runtime/layout/sticky.d.ts +2 -2
- package/dist/src/runtime/layout/sticky.js +2 -2
- package/dist/src/runtime/overlays/hover-card.d.ts +1 -1
- package/dist/src/runtime/overlays/hover-card.js +1 -1
- package/dist/src/runtime/typography/heading.d.ts +1 -1
- package/dist/src/runtime/typography/heading.js +1 -1
- package/dist/src/runtime/typography/highlight.d.ts +1 -1
- package/dist/src/runtime/typography/highlight.js +1 -1
- package/dist/src/runtime/typography/text.d.ts +1 -1
- package/dist/src/runtime/typography/text.js +1 -1
- package/dist/src/style/namespace.d.ts +1 -0
- package/dist/src/style/namespace.d.ts.map +1 -1
- package/dist/src/style/scheme.d.ts +6 -1
- package/dist/src/style/scheme.d.ts.map +1 -1
- package/dist/src/style/scheme.js +5 -0
- package/dist/src/style/scheme.js.map +1 -1
- package/dist/src/typography/heading/index.d.ts +1 -1
- package/dist/src/typography/heading/index.js +1 -1
- package/dist/src/typography/highlight/index.d.ts +1 -1
- package/dist/src/typography/highlight/index.js +1 -1
- package/dist/src/typography/list/index.d.ts +2 -0
- package/dist/src/typography/list/index.d.ts.map +1 -1
- package/dist/src/typography/list/types.d.ts +2 -0
- package/dist/src/typography/list/types.d.ts.map +1 -1
- package/dist/src/typography/text/index.d.ts +1 -1
- package/dist/src/typography/text/index.js +1 -1
- package/dist/test/buttons/button-group.examples.d.ts +1 -2
- package/dist/test/buttons/button-group.examples.d.ts.map +1 -1
- package/dist/test/buttons/button-group.examples.js +36 -17
- package/dist/test/buttons/button-group.examples.js.map +1 -1
- package/dist/test/buttons/button.examples.d.ts +3 -9
- package/dist/test/buttons/button.examples.d.ts.map +1 -1
- package/dist/test/buttons/button.examples.js +77 -81
- package/dist/test/buttons/button.examples.js.map +1 -1
- package/dist/test/buttons/close-button.examples.d.ts +3 -3
- package/dist/test/buttons/close-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/close-button.examples.js +41 -23
- package/dist/test/buttons/close-button.examples.js.map +1 -1
- package/dist/test/buttons/copy-button.examples.d.ts +3 -2
- package/dist/test/buttons/copy-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/copy-button.examples.js +28 -15
- package/dist/test/buttons/copy-button.examples.js.map +1 -1
- package/dist/test/buttons/icon-button.examples.d.ts +1 -4
- package/dist/test/buttons/icon-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/icon-button.examples.js +118 -36
- package/dist/test/buttons/icon-button.examples.js.map +1 -1
- package/dist/test/buttons/toggle.examples.d.ts +1 -2
- package/dist/test/buttons/toggle.examples.d.ts.map +1 -1
- package/dist/test/buttons/toggle.examples.js +35 -22
- package/dist/test/buttons/toggle.examples.js.map +1 -1
- package/dist/test/charts/chart.examples.d.ts +17 -43
- package/dist/test/charts/chart.examples.d.ts.map +1 -1
- package/dist/test/charts/chart.examples.js +169 -432
- package/dist/test/charts/chart.examples.js.map +1 -1
- package/dist/test/charts/sparkline.examples.d.ts +2 -9
- package/dist/test/charts/sparkline.examples.d.ts.map +1 -1
- package/dist/test/charts/sparkline.examples.js +79 -70
- package/dist/test/charts/sparkline.examples.js.map +1 -1
- package/dist/test/collections/blend.examples.d.ts +13 -7
- package/dist/test/collections/blend.examples.d.ts.map +1 -1
- package/dist/test/collections/blend.examples.js +66 -65
- package/dist/test/collections/blend.examples.js.map +1 -1
- package/dist/test/collections/board.examples.d.ts +13 -11
- package/dist/test/collections/board.examples.d.ts.map +1 -1
- package/dist/test/collections/board.examples.js +228 -205
- package/dist/test/collections/board.examples.js.map +1 -1
- package/dist/test/collections/calendar.examples.d.ts +2 -6
- package/dist/test/collections/calendar.examples.d.ts.map +1 -1
- package/dist/test/collections/calendar.examples.js +91 -124
- package/dist/test/collections/calendar.examples.js.map +1 -1
- package/dist/test/collections/data-list.examples.d.ts +1 -7
- package/dist/test/collections/data-list.examples.d.ts.map +1 -1
- package/dist/test/collections/data-list.examples.js +93 -89
- package/dist/test/collections/data-list.examples.js.map +1 -1
- package/dist/test/collections/deck.examples.d.ts +8 -4
- package/dist/test/collections/deck.examples.d.ts.map +1 -1
- package/dist/test/collections/deck.examples.js +171 -106
- package/dist/test/collections/deck.examples.js.map +1 -1
- package/dist/test/collections/flowchart.examples.d.ts +13 -3
- package/dist/test/collections/flowchart.examples.d.ts.map +1 -1
- package/dist/test/collections/flowchart.examples.js +41 -81
- package/dist/test/collections/flowchart.examples.js.map +1 -1
- package/dist/test/collections/gantt.examples.d.ts +12 -23
- package/dist/test/collections/gantt.examples.d.ts.map +1 -1
- package/dist/test/collections/gantt.examples.js +246 -382
- package/dist/test/collections/gantt.examples.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts +9 -6
- package/dist/test/collections/library.examples.d.ts.map +1 -1
- package/dist/test/collections/library.examples.js +63 -156
- package/dist/test/collections/library.examples.js.map +1 -1
- package/dist/test/collections/map.examples.d.ts +10 -5
- package/dist/test/collections/map.examples.d.ts.map +1 -1
- package/dist/test/collections/map.examples.js +76 -106
- package/dist/test/collections/map.examples.js.map +1 -1
- package/dist/test/collections/matrix.examples.d.ts +14 -38
- package/dist/test/collections/matrix.examples.d.ts.map +1 -1
- package/dist/test/collections/matrix.examples.js +103 -169
- package/dist/test/collections/matrix.examples.js.map +1 -1
- package/dist/test/collections/pagination.examples.d.ts +3 -3
- package/dist/test/collections/pagination.examples.d.ts.map +1 -1
- package/dist/test/collections/pagination.examples.js +49 -31
- package/dist/test/collections/pagination.examples.js.map +1 -1
- package/dist/test/collections/planner.examples.d.ts +15 -108
- package/dist/test/collections/planner.examples.d.ts.map +1 -1
- package/dist/test/collections/planner.examples.js +335 -401
- package/dist/test/collections/planner.examples.js.map +1 -1
- package/dist/test/collections/roster.examples.d.ts +19 -16
- package/dist/test/collections/roster.examples.d.ts.map +1 -1
- package/dist/test/collections/roster.examples.js +166 -168
- package/dist/test/collections/roster.examples.js.map +1 -1
- package/dist/test/collections/schematic.examples.d.ts +18 -13
- package/dist/test/collections/schematic.examples.d.ts.map +1 -1
- package/dist/test/collections/schematic.examples.js +417 -418
- package/dist/test/collections/schematic.examples.js.map +1 -1
- package/dist/test/collections/table.examples.d.ts +33 -38
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +293 -399
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/collections/tree-view.examples.d.ts +2 -10
- package/dist/test/collections/tree-view.examples.d.ts.map +1 -1
- package/dist/test/collections/tree-view.examples.js +133 -178
- package/dist/test/collections/tree-view.examples.js.map +1 -1
- package/dist/test/collections/value-tree.examples.d.ts +23 -9
- package/dist/test/collections/value-tree.examples.d.ts.map +1 -1
- package/dist/test/collections/value-tree.examples.js +181 -227
- package/dist/test/collections/value-tree.examples.js.map +1 -1
- package/dist/test/container/card.examples.d.ts +7 -14
- package/dist/test/container/card.examples.d.ts.map +1 -1
- package/dist/test/container/card.examples.js +109 -117
- package/dist/test/container/card.examples.js.map +1 -1
- package/dist/test/disclosure/accordion.examples.d.ts +1 -6
- package/dist/test/disclosure/accordion.examples.d.ts.map +1 -1
- package/dist/test/disclosure/accordion.examples.js +73 -78
- package/dist/test/disclosure/accordion.examples.js.map +1 -1
- package/dist/test/disclosure/carousel.examples.d.ts +1 -7
- package/dist/test/disclosure/carousel.examples.d.ts.map +1 -1
- package/dist/test/disclosure/carousel.examples.js +87 -60
- package/dist/test/disclosure/carousel.examples.js.map +1 -1
- package/dist/test/disclosure/collapsible.examples.d.ts +3 -3
- package/dist/test/disclosure/collapsible.examples.d.ts.map +1 -1
- package/dist/test/disclosure/collapsible.examples.js +27 -23
- package/dist/test/disclosure/collapsible.examples.js.map +1 -1
- package/dist/test/disclosure/option-list.examples.js +3 -3
- package/dist/test/disclosure/option-list.examples.js.map +1 -1
- package/dist/test/disclosure/segment-group.examples.d.ts +3 -3
- package/dist/test/disclosure/segment-group.examples.d.ts.map +1 -1
- package/dist/test/disclosure/segment-group.examples.js +46 -36
- package/dist/test/disclosure/segment-group.examples.js.map +1 -1
- package/dist/test/disclosure/show-more.examples.d.ts +1 -2
- package/dist/test/disclosure/show-more.examples.d.ts.map +1 -1
- package/dist/test/disclosure/show-more.examples.js +24 -17
- package/dist/test/disclosure/show-more.examples.js.map +1 -1
- package/dist/test/disclosure/story.examples.d.ts +8 -8
- package/dist/test/disclosure/story.examples.d.ts.map +1 -1
- package/dist/test/disclosure/story.examples.js +109 -93
- package/dist/test/disclosure/story.examples.js.map +1 -1
- package/dist/test/disclosure/tabs.examples.d.ts +1 -8
- package/dist/test/disclosure/tabs.examples.d.ts.map +1 -1
- package/dist/test/disclosure/tabs.examples.js +94 -107
- package/dist/test/disclosure/tabs.examples.js.map +1 -1
- package/dist/test/display/avatar-group.examples.d.ts +1 -3
- package/dist/test/display/avatar-group.examples.d.ts.map +1 -1
- package/dist/test/display/avatar-group.examples.js +34 -29
- package/dist/test/display/avatar-group.examples.js.map +1 -1
- package/dist/test/display/avatar.examples.d.ts +1 -4
- package/dist/test/display/avatar.examples.d.ts.map +1 -1
- package/dist/test/display/avatar.examples.js +88 -40
- package/dist/test/display/avatar.examples.js.map +1 -1
- package/dist/test/display/badge.examples.d.ts +1 -9
- package/dist/test/display/badge.examples.d.ts.map +1 -1
- package/dist/test/display/badge.examples.js +93 -79
- package/dist/test/display/badge.examples.js.map +1 -1
- package/dist/test/display/bar-strip.examples.d.ts +1 -3
- package/dist/test/display/bar-strip.examples.d.ts.map +1 -1
- package/dist/test/display/bar-strip.examples.js +42 -48
- package/dist/test/display/bar-strip.examples.js.map +1 -1
- package/dist/test/display/chip-rail.examples.d.ts +1 -4
- package/dist/test/display/chip-rail.examples.d.ts.map +1 -1
- package/dist/test/display/chip-rail.examples.js +86 -36
- package/dist/test/display/chip-rail.examples.js.map +1 -1
- package/dist/test/display/combine.examples.d.ts.map +1 -1
- package/dist/test/display/combine.examples.js +102 -162
- package/dist/test/display/combine.examples.js.map +1 -1
- package/dist/test/display/editable-chip.examples.d.ts +1 -5
- package/dist/test/display/editable-chip.examples.d.ts.map +1 -1
- package/dist/test/display/editable-chip.examples.js +77 -51
- package/dist/test/display/editable-chip.examples.js.map +1 -1
- package/dist/test/display/icon.examples.d.ts +0 -1
- package/dist/test/display/icon.examples.d.ts.map +1 -1
- package/dist/test/display/icon.examples.js +101 -21
- package/dist/test/display/icon.examples.js.map +1 -1
- package/dist/test/display/image.examples.d.ts +1 -3
- package/dist/test/display/image.examples.d.ts.map +1 -1
- package/dist/test/display/image.examples.js +50 -25
- package/dist/test/display/image.examples.js.map +1 -1
- package/dist/test/display/kbd.examples.d.ts +1 -3
- package/dist/test/display/kbd.examples.d.ts.map +1 -1
- package/dist/test/display/kbd.examples.js +34 -29
- package/dist/test/display/kbd.examples.js.map +1 -1
- package/dist/test/display/meter.examples.d.ts +1 -4
- package/dist/test/display/meter.examples.d.ts.map +1 -1
- package/dist/test/display/meter.examples.js +107 -35
- package/dist/test/display/meter.examples.js.map +1 -1
- package/dist/test/display/metric-chip.examples.d.ts +4 -5
- package/dist/test/display/metric-chip.examples.d.ts.map +1 -1
- package/dist/test/display/metric-chip.examples.js +99 -35
- package/dist/test/display/metric-chip.examples.js.map +1 -1
- package/dist/test/display/segmented-meter.examples.d.ts +2 -2
- package/dist/test/display/segmented-meter.examples.d.ts.map +1 -1
- package/dist/test/display/segmented-meter.examples.js +43 -44
- package/dist/test/display/segmented-meter.examples.js.map +1 -1
- package/dist/test/display/stat.examples.d.ts +1 -5
- package/dist/test/display/stat.examples.d.ts.map +1 -1
- package/dist/test/display/stat.examples.js +83 -48
- package/dist/test/display/stat.examples.js.map +1 -1
- package/dist/test/display/tag.examples.d.ts +1 -8
- package/dist/test/display/tag.examples.d.ts.map +1 -1
- package/dist/test/display/tag.examples.js +109 -71
- package/dist/test/display/tag.examples.js.map +1 -1
- package/dist/test/display/trace.examples.d.ts +1 -4
- package/dist/test/display/trace.examples.d.ts.map +1 -1
- package/dist/test/display/trace.examples.js +113 -57
- package/dist/test/display/trace.examples.js.map +1 -1
- package/dist/test/extension.examples.js +1 -1
- package/dist/test/extension.examples.js.map +1 -1
- package/dist/test/feedback/banner.examples.d.ts +1 -12
- package/dist/test/feedback/banner.examples.d.ts.map +1 -1
- package/dist/test/feedback/banner.examples.js +53 -63
- package/dist/test/feedback/banner.examples.js.map +1 -1
- package/dist/test/feedback/progress.examples.d.ts +3 -7
- package/dist/test/feedback/progress.examples.d.ts.map +1 -1
- package/dist/test/feedback/progress.examples.js +84 -51
- package/dist/test/feedback/progress.examples.js.map +1 -1
- package/dist/test/feedback/status.examples.d.ts +1 -3
- package/dist/test/feedback/status.examples.d.ts.map +1 -1
- package/dist/test/feedback/status.examples.js +35 -24
- package/dist/test/feedback/status.examples.js.map +1 -1
- package/dist/test/forms/checkbox.examples.d.ts +1 -2
- package/dist/test/forms/checkbox.examples.d.ts.map +1 -1
- package/dist/test/forms/checkbox.examples.js +27 -17
- package/dist/test/forms/checkbox.examples.js.map +1 -1
- package/dist/test/forms/combobox.examples.d.ts +2 -9
- package/dist/test/forms/combobox.examples.d.ts.map +1 -1
- package/dist/test/forms/combobox.examples.js +100 -126
- package/dist/test/forms/combobox.examples.js.map +1 -1
- package/dist/test/forms/date-range-input.examples.d.ts +3 -6
- package/dist/test/forms/date-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/date-range-input.examples.js +82 -76
- package/dist/test/forms/date-range-input.examples.js.map +1 -1
- package/dist/test/forms/field.examples.d.ts +1 -1
- package/dist/test/forms/field.examples.d.ts.map +1 -1
- package/dist/test/forms/field.examples.js +24 -11
- package/dist/test/forms/field.examples.js.map +1 -1
- package/dist/test/forms/file-upload.examples.d.ts +1 -3
- package/dist/test/forms/file-upload.examples.d.ts.map +1 -1
- package/dist/test/forms/file-upload.examples.js +30 -33
- package/dist/test/forms/file-upload.examples.js.map +1 -1
- package/dist/test/forms/input.examples.d.ts +1 -11
- package/dist/test/forms/input.examples.d.ts.map +1 -1
- package/dist/test/forms/input.examples.js +106 -118
- package/dist/test/forms/input.examples.js.map +1 -1
- package/dist/test/forms/radio-card-group.examples.d.ts +3 -4
- package/dist/test/forms/radio-card-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-card-group.examples.js +66 -47
- package/dist/test/forms/radio-card-group.examples.js.map +1 -1
- package/dist/test/forms/radio-group.examples.d.ts +3 -4
- package/dist/test/forms/radio-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-group.examples.js +65 -48
- package/dist/test/forms/radio-group.examples.js.map +1 -1
- package/dist/test/forms/select.examples.d.ts +1 -3
- package/dist/test/forms/select.examples.d.ts.map +1 -1
- package/dist/test/forms/select.examples.js +34 -49
- package/dist/test/forms/select.examples.js.map +1 -1
- package/dist/test/forms/slider.examples.d.ts +1 -2
- package/dist/test/forms/slider.examples.d.ts.map +1 -1
- package/dist/test/forms/slider.examples.js +26 -24
- package/dist/test/forms/slider.examples.js.map +1 -1
- package/dist/test/forms/switch.examples.d.ts +1 -2
- package/dist/test/forms/switch.examples.d.ts.map +1 -1
- package/dist/test/forms/switch.examples.js +26 -19
- package/dist/test/forms/switch.examples.js.map +1 -1
- package/dist/test/forms/tags-input.examples.d.ts +0 -3
- package/dist/test/forms/tags-input.examples.d.ts.map +1 -1
- package/dist/test/forms/tags-input.examples.js +14 -32
- package/dist/test/forms/tags-input.examples.js.map +1 -1
- package/dist/test/forms/textarea.examples.d.ts +1 -3
- package/dist/test/forms/textarea.examples.d.ts.map +1 -1
- package/dist/test/forms/textarea.examples.js +28 -28
- package/dist/test/forms/textarea.examples.js.map +1 -1
- package/dist/test/forms/time-range-input.examples.d.ts +3 -5
- package/dist/test/forms/time-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/time-range-input.examples.js +73 -64
- package/dist/test/forms/time-range-input.examples.js.map +1 -1
- package/dist/test/layout/aligned-stack.examples.d.ts +13 -95
- package/dist/test/layout/aligned-stack.examples.d.ts.map +1 -1
- package/dist/test/layout/aligned-stack.examples.js +225 -368
- package/dist/test/layout/aligned-stack.examples.js.map +1 -1
- package/dist/test/layout/box.examples.d.ts +1 -12
- package/dist/test/layout/box.examples.d.ts.map +1 -1
- package/dist/test/layout/box.examples.js +135 -103
- package/dist/test/layout/box.examples.js.map +1 -1
- package/dist/test/layout/dock.examples.d.ts +9 -17
- package/dist/test/layout/dock.examples.d.ts.map +1 -1
- package/dist/test/layout/dock.examples.js +49 -33
- package/dist/test/layout/dock.examples.js.map +1 -1
- package/dist/test/layout/flex.examples.d.ts +1 -8
- package/dist/test/layout/flex.examples.d.ts.map +1 -1
- package/dist/test/layout/flex.examples.js +104 -72
- package/dist/test/layout/flex.examples.js.map +1 -1
- package/dist/test/layout/grid.examples.d.ts +2 -10
- package/dist/test/layout/grid.examples.d.ts.map +1 -1
- package/dist/test/layout/grid.examples.js +126 -127
- package/dist/test/layout/grid.examples.js.map +1 -1
- package/dist/test/layout/scroll-area.examples.js +2 -2
- package/dist/test/layout/scroll-area.examples.js.map +1 -1
- package/dist/test/layout/separator.examples.d.ts +3 -10
- package/dist/test/layout/separator.examples.d.ts.map +1 -1
- package/dist/test/layout/separator.examples.js +71 -84
- package/dist/test/layout/separator.examples.js.map +1 -1
- package/dist/test/layout/splitter.examples.d.ts +2 -8
- package/dist/test/layout/splitter.examples.d.ts.map +1 -1
- package/dist/test/layout/splitter.examples.js +100 -104
- package/dist/test/layout/splitter.examples.js.map +1 -1
- package/dist/test/layout/stack.examples.d.ts +2 -10
- package/dist/test/layout/stack.examples.d.ts.map +1 -1
- package/dist/test/layout/stack.examples.js +116 -83
- package/dist/test/layout/stack.examples.js.map +1 -1
- package/dist/test/layout/sticky.examples.js +2 -2
- package/dist/test/layout/sticky.examples.js.map +1 -1
- package/dist/test/navigation/app.examples.d.ts +5 -11
- package/dist/test/navigation/app.examples.d.ts.map +1 -1
- package/dist/test/navigation/app.examples.js +27 -42
- package/dist/test/navigation/app.examples.js.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.d.ts +1 -3
- package/dist/test/navigation/breadcrumb.examples.d.ts.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.js +13 -43
- package/dist/test/navigation/breadcrumb.examples.js.map +1 -1
- package/dist/test/navigation/nav-list.examples.d.ts +1 -4
- package/dist/test/navigation/nav-list.examples.d.ts.map +1 -1
- package/dist/test/navigation/nav-list.examples.js +141 -84
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/overlays/command-palette.examples.d.ts +1 -4
- package/dist/test/overlays/command-palette.examples.d.ts.map +1 -1
- package/dist/test/overlays/command-palette.examples.js +75 -52
- package/dist/test/overlays/command-palette.examples.js.map +1 -1
- package/dist/test/overlays/dialog.examples.d.ts +1 -2
- package/dist/test/overlays/dialog.examples.d.ts.map +1 -1
- package/dist/test/overlays/dialog.examples.js +18 -19
- package/dist/test/overlays/dialog.examples.js.map +1 -1
- package/dist/test/overlays/drawer.examples.d.ts +2 -4
- package/dist/test/overlays/drawer.examples.d.ts.map +1 -1
- package/dist/test/overlays/drawer.examples.js +55 -32
- package/dist/test/overlays/drawer.examples.js.map +1 -1
- package/dist/test/overlays/hover-card.examples.d.ts +1 -2
- package/dist/test/overlays/hover-card.examples.d.ts.map +1 -1
- package/dist/test/overlays/hover-card.examples.js +17 -19
- package/dist/test/overlays/hover-card.examples.js.map +1 -1
- package/dist/test/overlays/menu.examples.d.ts +1 -2
- package/dist/test/overlays/menu.examples.d.ts.map +1 -1
- package/dist/test/overlays/menu.examples.js +18 -25
- package/dist/test/overlays/menu.examples.js.map +1 -1
- package/dist/test/overlays/popover.examples.d.ts +1 -2
- package/dist/test/overlays/popover.examples.d.ts.map +1 -1
- package/dist/test/overlays/popover.examples.js +20 -22
- package/dist/test/overlays/popover.examples.js.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.d.ts +1 -2
- package/dist/test/overlays/toggle-tip.examples.d.ts.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.js +15 -18
- package/dist/test/overlays/toggle-tip.examples.js.map +1 -1
- package/dist/test/platform/slice.examples.d.ts +2 -9
- package/dist/test/platform/slice.examples.d.ts.map +1 -1
- package/dist/test/platform/slice.examples.js +197 -289
- package/dist/test/platform/slice.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +0 -4
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +168 -218
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/dist/test/style.examples.js +4 -4
- package/dist/test/style.examples.js.map +1 -1
- package/dist/test/typography/code-block.examples.d.ts +1 -9
- package/dist/test/typography/code-block.examples.d.ts.map +1 -1
- package/dist/test/typography/code-block.examples.js +82 -88
- package/dist/test/typography/code-block.examples.js.map +1 -1
- package/dist/test/typography/code.examples.d.ts +1 -7
- package/dist/test/typography/code.examples.d.ts.map +1 -1
- package/dist/test/typography/code.examples.js +54 -60
- package/dist/test/typography/code.examples.js.map +1 -1
- package/dist/test/typography/heading.examples.d.ts +1 -8
- package/dist/test/typography/heading.examples.d.ts.map +1 -1
- package/dist/test/typography/heading.examples.js +82 -68
- package/dist/test/typography/heading.examples.js.map +1 -1
- package/dist/test/typography/highlight.examples.d.ts +4 -8
- package/dist/test/typography/highlight.examples.d.ts.map +1 -1
- package/dist/test/typography/highlight.examples.js +49 -59
- package/dist/test/typography/highlight.examples.js.map +1 -1
- package/dist/test/typography/link.examples.d.ts +1 -7
- package/dist/test/typography/link.examples.d.ts.map +1 -1
- package/dist/test/typography/link.examples.js +57 -60
- package/dist/test/typography/link.examples.js.map +1 -1
- package/dist/test/typography/list.examples.d.ts +3 -11
- package/dist/test/typography/list.examples.d.ts.map +1 -1
- package/dist/test/typography/list.examples.js +117 -107
- package/dist/test/typography/list.examples.js.map +1 -1
- package/dist/test/typography/mark.examples.d.ts +1 -8
- package/dist/test/typography/mark.examples.d.ts.map +1 -1
- package/dist/test/typography/mark.examples.js +49 -68
- package/dist/test/typography/mark.examples.js.map +1 -1
- package/dist/test/typography/note.examples.d.ts +1 -3
- package/dist/test/typography/note.examples.d.ts.map +1 -1
- package/dist/test/typography/note.examples.js +24 -25
- package/dist/test/typography/note.examples.js.map +1 -1
- package/dist/test/typography/numeric.examples.d.ts +1 -5
- package/dist/test/typography/numeric.examples.d.ts.map +1 -1
- package/dist/test/typography/numeric.examples.js +60 -40
- package/dist/test/typography/numeric.examples.js.map +1 -1
- package/dist/test/typography/text.examples.d.ts +1 -18
- package/dist/test/typography/text.examples.d.ts.map +1 -1
- package/dist/test/typography/text.examples.js +146 -149
- package/dist/test/typography/text.examples.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,9 +4,9 @@ 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, NullType, StringType, example } from "@elaraai/east";
|
|
7
|
+
import { East, ArrayType, BooleanType, NullType, StringType, StructType, example } from "@elaraai/east";
|
|
8
8
|
import { State, UIComponentType } from "@elaraai/east-ui";
|
|
9
|
-
import { Accordion, Box, Text, VStack, Reactive } from "@elaraai/east-ui";
|
|
9
|
+
import { Accordion, Box, Configurator, HStack, SegmentGroup, Switch, Text, VStack, Reactive } from "@elaraai/east-ui";
|
|
10
10
|
export const accordionBasic = example({
|
|
11
11
|
keywords: ["Accordion", "Root", "Item", "basic", "collapsible"],
|
|
12
12
|
description: "Simple collapsible sections",
|
|
@@ -19,84 +19,79 @@ export const accordionBasic = example({
|
|
|
19
19
|
}),
|
|
20
20
|
inputs: [],
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
// ============================================================================
|
|
23
|
+
// Accordion — live configurator over the content + behaviour axes
|
|
24
|
+
// ============================================================================
|
|
25
|
+
export const accordionVariants = example({
|
|
26
|
+
keywords: ["Accordion", "Root", "Item", "multiple", "collapsible", "faq", "settings", "title", "meta", "count", "SegmentGroup", "Switch", "Configurator", "getTag", "configurator", "Reactive", "State", "onValueChange", "interactive", "controlled"],
|
|
27
|
+
description: "Accordion configurator — a content-preset axis plus multiple and collapsible switches driving one live accordion; the aside is a controlled multi-open accordion with live counts",
|
|
25
28
|
fn: East.function([], UIComponentType, (_$) => {
|
|
26
|
-
return (_jsx(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
29
|
+
return (_jsx(Reactive, { children: $ => {
|
|
30
|
+
// Only the content needs a struct — a preset is its items PLUS
|
|
31
|
+
// the label the segment control names it by, so there is no
|
|
32
|
+
// single value to key it on.
|
|
33
|
+
const presets = $.const([
|
|
34
|
+
{
|
|
35
|
+
label: "basic",
|
|
36
|
+
items: [
|
|
37
|
+
Accordion.Item("section-1", "Section 1", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Content for the first section. This panel can stay open while others are opened." }) })]),
|
|
38
|
+
Accordion.Item("section-2", "Section 2", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Content for the second section. Multiple panels can be expanded simultaneously." }) })]),
|
|
39
|
+
Accordion.Item("section-3", "Section 3", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Content for the third section." }) })]),
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "faq",
|
|
44
|
+
items: [
|
|
45
|
+
Accordion.Item("profile", "Profile Settings", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Manage your profile information and preferences." }) })]),
|
|
46
|
+
Accordion.Item("security", "Security", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Configure password, two-factor authentication, and security options." }) })]),
|
|
47
|
+
Accordion.Item("notifications", "Notifications", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Control email and push notification preferences." }) })]),
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "grid",
|
|
52
|
+
items: [
|
|
53
|
+
Accordion.Item("block-a", "Block A", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Detail panel \u2014 per-block schedule, assumptions, guardrails." }) })], { meta: "3,200 kg · 17–23 Mar" }),
|
|
54
|
+
Accordion.Item("block-b", "Block B", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Block B detail panel." }) })], { meta: "1,800 kg · 17–23 Mar" }),
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
], ArrayType(StructType({ label: StringType, items: ArrayType(Accordion.Types.Item) })));
|
|
58
|
+
const contentBind = $.let(State.bind([StringType], "accordion_content", "basic"));
|
|
59
|
+
const multipleBind = $.let(State.bind([BooleanType], "accordion_multiple", false));
|
|
60
|
+
const collapsibleBind = $.let(State.bind([BooleanType], "accordion_collapsible", true));
|
|
61
|
+
// The aside is the reactive row — a controlled multi-open
|
|
62
|
+
// accordion whose value round-trips through State (the old
|
|
63
|
+
// reactive panel's key).
|
|
64
|
+
const expandedBind = $.let(State.bind([ArrayType(StringType)], "accordion_reactive_multi", []));
|
|
65
|
+
const cKey = $.let(contentBind.read());
|
|
66
|
+
const multiple = $.let(multipleBind.read());
|
|
67
|
+
const collapsible = $.let(collapsibleBind.read());
|
|
68
|
+
const expanded = $.let(expandedBind.read(), ArrayType(StringType));
|
|
69
|
+
const onContent = $.const(East.function([StringType], NullType, ($, next) => { $(contentBind.write(next)); }));
|
|
70
|
+
const onMultiple = $.const(East.function([BooleanType], NullType, ($, next) => { $(multipleBind.write(next)); }));
|
|
71
|
+
const onCollapsible = $.const(East.function([BooleanType], NullType, ($, next) => { $(collapsibleBind.write(next)); }));
|
|
72
|
+
const onValueChange = $.const(East.function([ArrayType(StringType)], NullType, ($, next) => { $(expandedBind.write(next)); }));
|
|
73
|
+
// Each selection is a lookup into the same array the control renders.
|
|
74
|
+
const preset = $.let(presets.filter((_$, o) => o.label.equal(cKey)).get(0n));
|
|
75
|
+
return (_jsx(Configurator, { controls: [
|
|
76
|
+
Configurator.Control("Content", cKey, _jsx(SegmentGroup, { value: cKey, onChange: onContent, size: "sm", items: presets.map((_$, o) => SegmentGroup.Item(o.label, _jsx(Text, { children: o.label.upperCase() }))) })),
|
|
77
|
+
// A Slot, not a Control: the two switches report as the
|
|
78
|
+
// Multiple / Collapsible spec rows below rather than as
|
|
79
|
+
// one value.
|
|
80
|
+
Configurator.Slot("Behaviour", _jsxs(HStack, { gap: "5", align: "center", wrap: "wrap", children: [_jsx(Switch, { checked: multiple, label: "Multiple", onChange: onMultiple }), _jsx(Switch, { checked: collapsible, label: "Collapsible", onChange: onCollapsible })] })),
|
|
81
|
+
], preview: _jsx(Box, { width: "100%", children: _jsx(Accordion, { items: preset.items, multiple: multiple, collapsible: collapsible }) }), aside: {
|
|
82
|
+
label: "Controlled · Reactive",
|
|
83
|
+
body: (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsx(Accordion, { items: [
|
|
84
|
+
Accordion.Item("recipe", "Recipe", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Recipe detail" }) })], { meta: "12 inputs" }),
|
|
85
|
+
Accordion.Item("schedule", "Schedule", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Schedule detail" }) })], { meta: "3 conflicts" }),
|
|
86
|
+
Accordion.Item("cost", "Cost", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Cost detail" }) })], { meta: East.str `${East.print(expanded.size())} open` }),
|
|
87
|
+
], multiple: true, collapsible: true, value: expanded, onValueChange: onValueChange }), _jsx(Text.Eyebrow, { children: East.str `EXPANDED · ${expanded.size()}` })] })),
|
|
88
|
+
}, spec: [
|
|
89
|
+
Configurator.Spec("Sections", East.print(preset.items.size())),
|
|
90
|
+
Configurator.Spec("Multiple", multiple.ifElse(_$ => "on", _$ => "off")),
|
|
91
|
+
Configurator.Spec("Collapsible", collapsible.ifElse(_$ => "on", _$ => "off")),
|
|
92
|
+
] }));
|
|
93
|
+
} }));
|
|
82
94
|
}),
|
|
83
95
|
inputs: [],
|
|
84
96
|
});
|
|
85
|
-
export const accordionReactiveMulti = example({
|
|
86
|
-
keywords: ["Accordion", "Root", "Reactive", "State", "multiple", "controlled", "count"],
|
|
87
|
-
description: "Reactive multi-open accordion with mono-numeral counts on each trigger",
|
|
88
|
-
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
89
|
-
const bind = $.let(State.bind([ArrayType(StringType)], "accordion_reactive_multi", []));
|
|
90
|
-
const expanded = $.let(bind.read(), ArrayType(StringType));
|
|
91
|
-
const onValueChange = $.const(East.function([ArrayType(StringType)], NullType, ($, next) => {
|
|
92
|
-
$(bind.write(next));
|
|
93
|
-
}));
|
|
94
|
-
return (_jsx(Accordion, { items: [
|
|
95
|
-
Accordion.Item("recipe", "Recipe", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Recipe detail" }) })], { meta: "12 inputs" }),
|
|
96
|
-
Accordion.Item("schedule", "Schedule", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Schedule detail" }) })], { meta: "3 conflicts" }),
|
|
97
|
-
Accordion.Item("cost", "Cost", [_jsx(Box, { padding: "4", children: _jsx(Text, { children: "Cost detail" }) })], { meta: East.str `${East.print(expanded.size())} open` }),
|
|
98
|
-
], multiple: true, collapsible: true, value: expanded, onValueChange: onValueChange }));
|
|
99
|
-
} }))),
|
|
100
|
-
inputs: [],
|
|
101
|
-
});
|
|
102
97
|
//# sourceMappingURL=accordion.examples.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.examples.js","sourceRoot":"","sources":["../../../test/disclosure/accordion.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion.examples.js","sourceRoot":"","sources":["../../../test/disclosure/accordion.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,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,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;wBAC9D,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;wBACvE,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;qBAChF,GACH,CACL,CAAC;YACN,CAAC,GAAY,CAChB,CAAC;IACN,CAAC,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
export declare const carouselBasic: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const carouselMultiSlide: import("@elaraai/east").ExampleDef<[], any>;
|
|
4
|
-
export declare const carouselNoControls: import("@elaraai/east").ExampleDef<[], any>;
|
|
5
|
-
export declare const carouselDraggable: import("@elaraai/east").ExampleDef<[], any>;
|
|
6
|
-
export declare const carouselMinimal: import("@elaraai/east").ExampleDef<[], any>;
|
|
7
|
-
export declare const carouselColourSlots: import("@elaraai/east").ExampleDef<[], any>;
|
|
8
|
-
export declare const carouselInteractive: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
+
export declare const carouselVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
9
3
|
//# sourceMappingURL=carousel.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.examples.d.ts","sourceRoot":"","sources":["../../../test/disclosure/carousel.examples.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,6CAexB,CAAC;
|
|
1
|
+
{"version":3,"file":"carousel.examples.d.ts","sourceRoot":"","sources":["../../../test/disclosure/carousel.examples.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,6CAexB,CAAC;AAMH,eAAO,MAAM,gBAAgB,6CAgI3B,CAAC"}
|
|
@@ -4,76 +4,103 @@ import { jsx as _jsx, jsxs as _jsxs } from "@elaraai/east-ui/jsx-runtime";
|
|
|
4
4
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
5
5
|
*/
|
|
6
6
|
/** @jsxImportSource @elaraai/east-ui */
|
|
7
|
-
import { East, IntegerType, NullType, example } from "@elaraai/east";
|
|
7
|
+
import { East, ArrayType, BooleanType, IntegerType, NullType, StringType, StructType, example } from "@elaraai/east";
|
|
8
8
|
import { State, UIComponentType } from "@elaraai/east-ui";
|
|
9
|
-
import { Box, Carousel,
|
|
9
|
+
import { Box, Carousel, Configurator, HStack, SegmentGroup, Select, Switch, Text, Reactive } from "@elaraai/east-ui";
|
|
10
10
|
export const carouselBasic = example({
|
|
11
11
|
keywords: ["Carousel", "Root", "showControls", "showIndicators", "basic"],
|
|
12
12
|
description: "Simple slideshow with controls",
|
|
13
13
|
fn: East.function([], UIComponentType, (_$) => {
|
|
14
|
-
return (_jsx(Box, { width: "100%", children: _jsxs(Carousel, { showControls: true, showIndicators: true, children: [_jsx(Box, { padding: "8", background: "
|
|
14
|
+
return (_jsx(Box, { width: "100%", children: _jsxs(Carousel, { showControls: true, showIndicators: true, children: [_jsx(Box, { padding: "8", background: "bg.brand.subtle", borderRadius: "md", children: _jsx(Text, { children: "Slide 1" }) }), _jsx(Box, { padding: "8", background: "bg.brand.subtle", borderRadius: "md", children: _jsx(Text, { children: "Slide 2" }) }), _jsx(Box, { padding: "8", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Slide 3" }) })] }) }));
|
|
15
15
|
}),
|
|
16
16
|
inputs: [],
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
// ============================================================================
|
|
19
|
+
// Carousel — live configurator over every slideshow axis
|
|
20
|
+
// ============================================================================
|
|
21
|
+
export const carouselVariants = example({
|
|
22
|
+
keywords: ["Carousel", "Root", "loop", "infinite", "slidesPerView", "spacing", "multiple", "showControls", "showIndicators", "allowMouseDrag", "drag", "swipe", "minimal", "style", "colour", "indicatorColor", "controlColor", "branded", "Reactive", "State", "onIndexChange", "interactive", "SegmentGroup", "Switch", "Configurator", "getTag", "configurator"],
|
|
23
|
+
description: "Carousel configurator — slide, chrome and colour axes plus loop and draggable switches driving one live carousel; the aside reads the reactive slide index back",
|
|
21
24
|
fn: East.function([], UIComponentType, (_$) => {
|
|
22
|
-
return (_jsx(
|
|
25
|
+
return (_jsx(Reactive, { children: $ => {
|
|
26
|
+
// A slide set is its slides PLUS the per-view count and spacing
|
|
27
|
+
// that make them legible, so the axis is a struct.
|
|
28
|
+
const sets = $.const([
|
|
29
|
+
{
|
|
30
|
+
label: "single", perView: 1n, spacing: "0",
|
|
31
|
+
slides: [
|
|
32
|
+
_jsx(Box, { padding: "8", background: "bg.success.subtle", borderRadius: "md", children: _jsx(Text, { children: "First" }) }),
|
|
33
|
+
_jsx(Box, { padding: "8", background: "bg.warning.subtle", borderRadius: "md", children: _jsx(Text, { children: "Second" }) }),
|
|
34
|
+
_jsx(Box, { padding: "8", background: "bg.subtle", borderRadius: "md", children: _jsx(Text, { children: "Third" }) }),
|
|
35
|
+
_jsx(Box, { padding: "8", background: "bg.brand.subtle", borderRadius: "md", children: _jsx(Text, { children: "Fourth" }) }),
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "multi", perView: 3n, spacing: "4",
|
|
40
|
+
slides: [
|
|
41
|
+
_jsx(Box, { padding: "4", background: "bg.danger.subtle", borderRadius: "md", children: _jsx(Text, { children: "1" }) }),
|
|
42
|
+
_jsx(Box, { padding: "4", background: "bg.warning.subtle", borderRadius: "md", children: _jsx(Text, { children: "2" }) }),
|
|
43
|
+
_jsx(Box, { padding: "4", background: "bg.warning.subtle", borderRadius: "md", children: _jsx(Text, { children: "3" }) }),
|
|
44
|
+
_jsx(Box, { padding: "4", background: "bg.success.subtle", borderRadius: "md", children: _jsx(Text, { children: "4" }) }),
|
|
45
|
+
_jsx(Box, { padding: "4", background: "bg.brand.subtle", borderRadius: "md", children: _jsx(Text, { children: "5" }) }),
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
], ArrayType(StructType({ label: StringType, perView: IntegerType, spacing: StringType, slides: ArrayType(UIComponentType) })));
|
|
49
|
+
// Chrome is the controls / indicators pair, so the axis is a
|
|
50
|
+
// struct of the two booleans.
|
|
51
|
+
const chromes = $.const([
|
|
52
|
+
{ label: "full", controls: true, indicators: true },
|
|
53
|
+
{ label: "controls", controls: true, indicators: false },
|
|
54
|
+
{ label: "indicators", controls: false, indicators: true },
|
|
55
|
+
{ label: "none", controls: false, indicators: false },
|
|
56
|
+
], ArrayType(StructType({ label: StringType, controls: BooleanType, indicators: BooleanType })));
|
|
57
|
+
// Colour slots come as a set — the recipe row mirrors the slot
|
|
58
|
+
// recipe's defaults, branded shows the escape hatches.
|
|
59
|
+
const colors = $.const([
|
|
60
|
+
{ label: "recipe", indicator: "border.strong", active: "{colors.brand.700}", control: "fg.default", controlBg: "bg.surface" },
|
|
61
|
+
{ label: "branded", indicator: "fg.subtle", active: "link", control: "fg.inverse", controlBg: "bg.inverse" },
|
|
62
|
+
], ArrayType(StructType({ label: StringType, indicator: StringType, active: StringType, control: StringType, controlBg: StringType })));
|
|
63
|
+
const slidesBind = $.let(State.bind([StringType], "carousel_slides", "single"));
|
|
64
|
+
const chromeBind = $.let(State.bind([StringType], "carousel_chrome", "full"));
|
|
65
|
+
const colorBind = $.let(State.bind([StringType], "carousel_color", "recipe"));
|
|
66
|
+
const loopBind = $.let(State.bind([BooleanType], "carousel_loop", false));
|
|
67
|
+
const dragBind = $.let(State.bind([BooleanType], "carousel_drag", false));
|
|
68
|
+
const indexBind = $.let(State.bind([IntegerType], "carousel_index", 0n));
|
|
69
|
+
const sKey = $.let(slidesBind.read());
|
|
70
|
+
const chKey = $.let(chromeBind.read());
|
|
71
|
+
const cKey = $.let(colorBind.read());
|
|
72
|
+
const loop = $.let(loopBind.read());
|
|
73
|
+
const drag = $.let(dragBind.read());
|
|
74
|
+
const currentIndex = $.let(indexBind.read());
|
|
75
|
+
const onSlides = $.const(East.function([StringType], NullType, ($, next) => { $(slidesBind.write(next)); }));
|
|
76
|
+
const onChrome = $.const(East.function([StringType], NullType, ($, next) => { $(chromeBind.write(next)); }));
|
|
77
|
+
const onColor = $.const(East.function([StringType], NullType, ($, next) => { $(colorBind.write(next)); }));
|
|
78
|
+
const onLoop = $.const(East.function([BooleanType], NullType, ($, next) => { $(loopBind.write(next)); }));
|
|
79
|
+
const onDrag = $.const(East.function([BooleanType], NullType, ($, next) => { $(dragBind.write(next)); }));
|
|
80
|
+
const onIndexChange = $.const(East.function([IntegerType], NullType, ($, newIndex) => {
|
|
81
|
+
$(indexBind.write(newIndex));
|
|
82
|
+
}));
|
|
83
|
+
// Each selection is a lookup into the same array the control renders.
|
|
84
|
+
const slideSet = $.let(sets.filter((_$, o) => o.label.equal(sKey)).get(0n));
|
|
85
|
+
const chrome = $.let(chromes.filter((_$, o) => o.label.equal(chKey)).get(0n));
|
|
86
|
+
const color = $.let(colors.filter((_$, o) => o.label.equal(cKey)).get(0n));
|
|
87
|
+
return (_jsx(Configurator, { controls: [
|
|
88
|
+
Configurator.Control("Slides", sKey, _jsx(SegmentGroup, { value: sKey, onChange: onSlides, size: "sm", items: sets.map((_$, o) => SegmentGroup.Item(o.label, _jsx(Text, { children: o.label.upperCase() }))) })),
|
|
89
|
+
Configurator.Control("Chrome", chKey, _jsx(Select, { value: chKey, onChange: onChrome, size: "sm", items: chromes.map((_$, o) => Select.Item(o.label, o.label)) })),
|
|
90
|
+
Configurator.Control("Colour", cKey, _jsx(SegmentGroup, { value: cKey, onChange: onColor, size: "sm", items: colors.map((_$, o) => SegmentGroup.Item(o.label, _jsx(Text, { children: o.label.upperCase() }))) })),
|
|
91
|
+
// A Slot, not a Control: the two switches report as the
|
|
92
|
+
// Loop / Drag spec rows below rather than as one value.
|
|
93
|
+
Configurator.Slot("Motion", _jsxs(HStack, { gap: "5", align: "center", wrap: "wrap", children: [_jsx(Switch, { checked: loop, label: "Loop", onChange: onLoop }), _jsx(Switch, { checked: drag, label: "Draggable", onChange: onDrag })] })),
|
|
94
|
+
], preview: _jsx(Box, { width: "100%", children: _jsx(Carousel, { slidesPerView: slideSet.perView, spacing: slideSet.spacing, showControls: chrome.controls, showIndicators: chrome.indicators, loop: loop, allowMouseDrag: drag, indicatorColor: color.indicator, activeIndicatorColor: color.active, controlColor: color.control, controlBackground: color.controlBg, onIndexChange: onIndexChange, children: slideSet.slides }) }), aside: {
|
|
95
|
+
label: "Index · Reactive",
|
|
96
|
+
body: (_jsx(Text.Eyebrow, { children: East.str `CURRENT · ${currentIndex.add(1n)} OF ${East.print(slideSet.slides.size())}` })),
|
|
97
|
+
}, spec: [
|
|
98
|
+
Configurator.Spec("Per view", East.print(slideSet.perView)),
|
|
99
|
+
Configurator.Spec("Loop", loop.ifElse(_$ => "on", _$ => "off")),
|
|
100
|
+
Configurator.Spec("Drag", drag.ifElse(_$ => "on", _$ => "off")),
|
|
101
|
+
] }));
|
|
102
|
+
} }));
|
|
23
103
|
}),
|
|
24
104
|
inputs: [],
|
|
25
105
|
});
|
|
26
|
-
export const carouselMultiSlide = example({
|
|
27
|
-
keywords: ["Carousel", "Root", "slidesPerView", "spacing", "multiple"],
|
|
28
|
-
description: "Show multiple slides at once",
|
|
29
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
30
|
-
return (_jsx(Box, { width: "100%", background: "gray.50", padding: "4", borderRadius: "md", children: _jsxs(Carousel, { slidesPerView: 3n, spacing: "4", showControls: true, showIndicators: true, children: [_jsx(Box, { padding: "4", background: "red.100", borderRadius: "md", children: _jsx(Text, { children: "1" }) }), _jsx(Box, { padding: "4", background: "orange.100", borderRadius: "md", children: _jsx(Text, { children: "2" }) }), _jsx(Box, { padding: "4", background: "yellow.100", borderRadius: "md", children: _jsx(Text, { children: "3" }) }), _jsx(Box, { padding: "4", background: "green.100", borderRadius: "md", children: _jsx(Text, { children: "4" }) }), _jsx(Box, { padding: "4", background: "blue.100", borderRadius: "md", children: _jsx(Text, { children: "5" }) })] }) }));
|
|
31
|
-
}),
|
|
32
|
-
inputs: [],
|
|
33
|
-
});
|
|
34
|
-
export const carouselNoControls = example({
|
|
35
|
-
keywords: ["Carousel", "Root", "showControls", "showIndicators"],
|
|
36
|
-
description: "Hide navigation controls",
|
|
37
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
38
|
-
return (_jsx(Box, { width: "100%", children: _jsxs(Carousel, { showControls: false, showIndicators: true, children: [_jsx(Box, { padding: "8", background: "gray.100", borderRadius: "md", children: _jsx(Text, { children: "Panel A" }) }), _jsx(Box, { padding: "8", background: "gray.200", borderRadius: "md", children: _jsx(Text, { children: "Panel B" }) }), _jsx(Box, { padding: "8", background: "gray.300", borderRadius: "md", children: _jsx(Text, { children: "Panel C" }) })] }) }));
|
|
39
|
-
}),
|
|
40
|
-
inputs: [],
|
|
41
|
-
});
|
|
42
|
-
export const carouselDraggable = example({
|
|
43
|
-
keywords: ["Carousel", "Root", "allowMouseDrag", "drag", "swipe"],
|
|
44
|
-
description: "Drag to navigate slides",
|
|
45
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
46
|
-
return (_jsx(Box, { width: "100%", children: _jsxs(Carousel, { allowMouseDrag: true, showControls: true, showIndicators: true, children: [_jsx(Box, { padding: "8", background: "teal.200", borderRadius: "md", children: _jsx(Text, { children: "Drag me!" }) }), _jsx(Box, { padding: "8", background: "teal.300", borderRadius: "md", children: _jsx(Text, { children: "Swipe left" }) }), _jsx(Box, { padding: "8", background: "teal.400", borderRadius: "md", children: _jsx(Text, { children: "Or right" }) })] }) }));
|
|
47
|
-
}),
|
|
48
|
-
inputs: [],
|
|
49
|
-
});
|
|
50
|
-
export const carouselMinimal = example({
|
|
51
|
-
keywords: ["Carousel", "Root", "minimal", "showControls"],
|
|
52
|
-
description: "Controls only, no indicators",
|
|
53
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
54
|
-
return (_jsx(Box, { width: "100%", children: _jsxs(Carousel, { showControls: true, showIndicators: false, children: [_jsx(Box, { padding: "8", background: "purple.100", borderRadius: "md", children: _jsx(Text, { children: "Image 1" }) }), _jsx(Box, { padding: "8", background: "purple.200", borderRadius: "md", children: _jsx(Text, { children: "Image 2" }) }), _jsx(Box, { padding: "8", background: "purple.300", borderRadius: "md", children: _jsx(Text, { children: "Image 3" }) })] }) }));
|
|
55
|
-
}),
|
|
56
|
-
inputs: [],
|
|
57
|
-
});
|
|
58
|
-
export const carouselColourSlots = example({
|
|
59
|
-
keywords: ["Carousel", "Root", "style", "colour", "indicatorColor", "controlColor", "branded"],
|
|
60
|
-
description: "Carousel with branded indicator + control colour escape hatches",
|
|
61
|
-
fn: East.function([], UIComponentType, (_$) => {
|
|
62
|
-
return (_jsx(Box, { width: "100%", children: _jsxs(Carousel, { showControls: true, showIndicators: true, spacing: "3", indicatorColor: "#cbd5e1", activeIndicatorColor: "#3d5cff", controlColor: "#ffffff", controlBackground: "#1a2234", children: [_jsx(Box, { padding: "8", background: "blue.100", borderRadius: "md", children: _jsx(Text, { children: "Branded 1" }) }), _jsx(Box, { padding: "8", background: "blue.200", borderRadius: "md", children: _jsx(Text, { children: "Branded 2" }) }), _jsx(Box, { padding: "8", background: "blue.300", borderRadius: "md", children: _jsx(Text, { children: "Branded 3" }) })] }) }));
|
|
63
|
-
}),
|
|
64
|
-
inputs: [],
|
|
65
|
-
});
|
|
66
|
-
export const carouselInteractive = example({
|
|
67
|
-
keywords: ["Carousel", "Root", "Reactive", "State", "onIndexChange", "interactive"],
|
|
68
|
-
description: "Navigate to see onIndexChange callback",
|
|
69
|
-
fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
|
|
70
|
-
const indexBind = $.let(State.bind([IntegerType], "carousel_index", 0n));
|
|
71
|
-
const currentIndex = $.let(indexBind.read());
|
|
72
|
-
const onIndexChange = $.const(East.function([IntegerType], NullType, ($, newIndex) => {
|
|
73
|
-
$(indexBind.write(newIndex));
|
|
74
|
-
}));
|
|
75
|
-
return (_jsxs(VStack, { gap: "3", align: "stretch", children: [_jsx(Box, { width: "100%", children: _jsxs(Carousel, { showControls: true, showIndicators: true, onIndexChange: onIndexChange, children: [_jsx(Box, { padding: "8", background: "blue.100", borderRadius: "md", children: _jsx(Text, { children: "Welcome!" }) }), _jsx(Box, { padding: "8", background: "green.100", borderRadius: "md", children: _jsx(Text, { children: "Features" }) }), _jsx(Box, { padding: "8", background: "purple.100", borderRadius: "md", children: _jsx(Text, { children: "Pricing" }) }), _jsx(Box, { padding: "8", background: "orange.100", borderRadius: "md", children: _jsx(Text, { children: "Contact" }) })] }) }), _jsx(Text.Eyebrow, { children: East.str `CURRENT · ${currentIndex.add(1n)} OF 4` })] }));
|
|
76
|
-
} }))),
|
|
77
|
-
inputs: [],
|
|
78
|
-
});
|
|
79
106
|
//# sourceMappingURL=carousel.examples.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.examples.js","sourceRoot":"","sources":["../../../test/disclosure/carousel.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":"carousel.examples.js","sourceRoot":"","sources":["../../../test/disclosure/carousel.examples.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,wCAAwC;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACrH,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB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,CAAC,OAAO,cAAE,IAAI,CAAC,GAAG,CAAA,aAAa,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,GAAgB,CACtH;qBACJ,EACD,IAAI,EAAE;wBACF,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;wBAC3D,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;wBAC/D,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;qBAClE,GACH,CACL,CAAC;YACN,CAAC,GAAY,CAChB,CAAC;IACN,CAAC,CAAC;IACF,MAAM,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const collapsibleWhy: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
2
|
+
export declare const collapsibleVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
3
|
+
/** Raw colour overrides on a static collapsible. */
|
|
4
|
+
export declare const collapsibleCustomColours: import("@elaraai/east").ExampleDef<[], any>;
|
|
5
5
|
//# sourceMappingURL=collapsible.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.examples.d.ts","sourceRoot":"","sources":["../../../test/disclosure/collapsible.examples.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,6CAazB,CAAC;AAEH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"collapsible.examples.d.ts","sourceRoot":"","sources":["../../../test/disclosure/collapsible.examples.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,6CAazB,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CA2C9B,CAAC;AAEH,oDAAoD;AACpD,eAAO,MAAM,wBAAwB,6CAgBnC,CAAC"}
|