@elaraai/east-ui 1.0.4 → 1.0.5
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/README.md +3 -2
- package/dist/src/buttons/button/index.d.ts +20 -20
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +25 -21
- package/dist/src/buttons/button/index.js.map +1 -1
- package/dist/src/buttons/button-group/index.d.ts.map +1 -1
- package/dist/src/buttons/button-group/index.js +3 -1
- package/dist/src/buttons/button-group/index.js.map +1 -1
- package/dist/src/buttons/button-group/types.d.ts +3 -7
- package/dist/src/buttons/button-group/types.d.ts.map +1 -1
- package/dist/src/buttons/close-button/index.d.ts +2 -5
- package/dist/src/buttons/close-button/index.d.ts.map +1 -1
- package/dist/src/buttons/close-button/index.js +10 -9
- package/dist/src/buttons/close-button/index.js.map +1 -1
- package/dist/src/buttons/close-button/types.d.ts +1 -3
- package/dist/src/buttons/close-button/types.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.d.ts +3 -7
- package/dist/src/buttons/copy-button/index.d.ts.map +1 -1
- package/dist/src/buttons/copy-button/index.js +11 -11
- package/dist/src/buttons/copy-button/index.js.map +1 -1
- package/dist/src/buttons/copy-button/types.d.ts +1 -3
- package/dist/src/buttons/copy-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +23 -29
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +31 -33
- package/dist/src/buttons/icon-button/index.js.map +1 -1
- package/dist/src/buttons/icon-button/types.d.ts +16 -7
- package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/types.js.map +1 -1
- package/dist/src/buttons/toggle/index.d.ts +13 -14
- package/dist/src/buttons/toggle/index.d.ts.map +1 -1
- package/dist/src/buttons/toggle/index.js +22 -20
- package/dist/src/buttons/toggle/index.js.map +1 -1
- package/dist/src/buttons/toggle/types.d.ts +3 -3
- package/dist/src/buttons/toggle/types.d.ts.map +1 -1
- package/dist/src/charts/chart/index.d.ts +1615 -0
- package/dist/src/charts/chart/index.d.ts.map +1 -0
- package/dist/src/charts/chart/index.js +354 -0
- package/dist/src/charts/chart/index.js.map +1 -0
- package/dist/src/charts/index.d.ts +7 -6724
- package/dist/src/charts/index.d.ts.map +1 -1
- package/dist/src/charts/index.js +7 -1035
- package/dist/src/charts/index.js.map +1 -1
- package/dist/src/charts/spec/index.d.ts +2568 -146
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.js +762 -59
- package/dist/src/charts/spec/index.js.map +1 -1
- package/dist/src/charts/spec/types.d.ts +494 -17
- package/dist/src/charts/spec/types.d.ts.map +1 -1
- package/dist/src/charts/spec/types.js +298 -8
- package/dist/src/charts/spec/types.js.map +1 -1
- package/dist/src/collections/blend/index.d.ts +525 -0
- package/dist/src/collections/blend/index.d.ts.map +1 -0
- package/dist/src/collections/blend/index.js +283 -0
- package/dist/src/collections/blend/index.js.map +1 -0
- package/dist/src/collections/blend/types.d.ts +373 -0
- package/dist/src/collections/blend/types.d.ts.map +1 -0
- package/dist/src/collections/blend/types.js +168 -0
- package/dist/src/collections/blend/types.js.map +1 -0
- package/dist/src/collections/calendar/index.d.ts +211 -0
- package/dist/src/collections/calendar/index.d.ts.map +1 -0
- package/dist/src/collections/calendar/index.js +153 -0
- package/dist/src/collections/calendar/index.js.map +1 -0
- package/dist/src/collections/calendar/types.d.ts +116 -0
- package/dist/src/collections/calendar/types.d.ts.map +1 -0
- package/dist/src/collections/calendar/types.js +81 -0
- package/dist/src/collections/calendar/types.js.map +1 -0
- package/dist/src/collections/data-list/index.d.ts +2 -31666
- package/dist/src/collections/data-list/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.d.ts +34 -93
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.js +120 -121
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/gantt/types.d.ts +149 -58
- package/dist/src/collections/gantt/types.d.ts.map +1 -1
- package/dist/src/collections/gantt/types.js +92 -20
- package/dist/src/collections/gantt/types.js.map +1 -1
- package/dist/src/collections/index.d.ts +5 -0
- package/dist/src/collections/index.d.ts.map +1 -1
- package/dist/src/collections/index.js +5 -0
- package/dist/src/collections/index.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +436 -0
- package/dist/src/collections/library/index.d.ts.map +1 -0
- package/dist/src/collections/library/index.js +284 -0
- package/dist/src/collections/library/index.js.map +1 -0
- package/dist/src/collections/library/types.d.ts +329 -0
- package/dist/src/collections/library/types.d.ts.map +1 -0
- package/dist/src/collections/library/types.js +204 -0
- package/dist/src/collections/library/types.js.map +1 -0
- package/dist/src/collections/matrix/index.d.ts +244 -31884
- package/dist/src/collections/matrix/index.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.js +573 -327
- package/dist/src/collections/matrix/index.js.map +1 -1
- package/dist/src/collections/matrix/types.d.ts +206 -195
- package/dist/src/collections/matrix/types.d.ts.map +1 -1
- package/dist/src/collections/matrix/types.js +113 -135
- package/dist/src/collections/matrix/types.js.map +1 -1
- package/dist/src/collections/pagination/index.d.ts +8 -35
- package/dist/src/collections/pagination/index.d.ts.map +1 -1
- package/dist/src/collections/pagination/index.js +12 -42
- package/dist/src/collections/pagination/index.js.map +1 -1
- package/dist/src/collections/pagination/types.d.ts +34 -1
- package/dist/src/collections/pagination/types.d.ts.map +1 -1
- package/dist/src/collections/pagination/types.js +27 -1
- package/dist/src/collections/pagination/types.js.map +1 -1
- package/dist/src/collections/planner/index.d.ts +428 -257
- package/dist/src/collections/planner/index.d.ts.map +1 -1
- package/dist/src/collections/planner/index.js +557 -717
- package/dist/src/collections/planner/index.js.map +1 -1
- package/dist/src/collections/planner/types.d.ts +346 -339
- package/dist/src/collections/planner/types.d.ts.map +1 -1
- package/dist/src/collections/planner/types.js +238 -185
- package/dist/src/collections/planner/types.js.map +1 -1
- package/dist/src/collections/roster/index.d.ts +396 -0
- package/dist/src/collections/roster/index.d.ts.map +1 -0
- package/dist/src/collections/roster/index.js +227 -0
- package/dist/src/collections/roster/index.js.map +1 -0
- package/dist/src/collections/roster/types.d.ts +240 -0
- package/dist/src/collections/roster/types.d.ts.map +1 -0
- package/dist/src/collections/roster/types.js +113 -0
- package/dist/src/collections/roster/types.js.map +1 -0
- package/dist/src/collections/schematic/index.d.ts +681 -0
- package/dist/src/collections/schematic/index.d.ts.map +1 -0
- package/dist/src/collections/schematic/index.js +365 -0
- package/dist/src/collections/schematic/index.js.map +1 -0
- package/dist/src/collections/schematic/types.d.ts +590 -0
- package/dist/src/collections/schematic/types.d.ts.map +1 -0
- package/dist/src/collections/schematic/types.js +247 -0
- package/dist/src/collections/schematic/types.js.map +1 -0
- package/dist/src/collections/table/index.d.ts +18 -31669
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +13 -0
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/component.d.ts +3959 -22701
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +85 -130
- package/dist/src/component.js.map +1 -1
- package/dist/src/container/card/index.d.ts +48 -35
- package/dist/src/container/card/index.d.ts.map +1 -1
- package/dist/src/container/card/index.js +49 -61
- package/dist/src/container/card/index.js.map +1 -1
- package/dist/src/contracts/drag.d.ts +223 -0
- package/dist/src/contracts/drag.d.ts.map +1 -0
- package/dist/src/contracts/drag.js +138 -0
- package/dist/src/contracts/drag.js.map +1 -0
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/index.js +1 -0
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/slice-affordances.d.ts +9 -4
- package/dist/src/contracts/slice-affordances.d.ts.map +1 -1
- package/dist/src/contracts/slice-affordances.js +8 -3
- package/dist/src/contracts/slice-affordances.js.map +1 -1
- package/dist/src/disclosure/accordion/index.d.ts +8 -8
- package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
- package/dist/src/disclosure/accordion/index.js +16 -14
- package/dist/src/disclosure/accordion/index.js.map +1 -1
- package/dist/src/disclosure/accordion/types.d.ts +10 -6
- package/dist/src/disclosure/accordion/types.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.js +16 -12
- package/dist/src/disclosure/carousel/index.js.map +1 -1
- package/dist/src/disclosure/carousel/types.d.ts +1 -3
- package/dist/src/disclosure/carousel/types.d.ts.map +1 -1
- package/dist/src/disclosure/collapsible/index.d.ts +27 -11
- package/dist/src/disclosure/collapsible/index.d.ts.map +1 -1
- package/dist/src/disclosure/collapsible/index.js +15 -16
- package/dist/src/disclosure/collapsible/index.js.map +1 -1
- package/dist/src/disclosure/collapsible/types.d.ts +1 -16
- package/dist/src/disclosure/collapsible/types.d.ts.map +1 -1
- package/dist/src/disclosure/collapsible/types.js +1 -1
- package/dist/src/disclosure/collapsible/types.js.map +1 -1
- package/dist/src/disclosure/option-list/index.d.ts +6 -4
- package/dist/src/disclosure/option-list/index.d.ts.map +1 -1
- package/dist/src/disclosure/option-list/index.js +5 -3
- package/dist/src/disclosure/option-list/index.js.map +1 -1
- package/dist/src/disclosure/segment-group/index.d.ts +27 -19
- package/dist/src/disclosure/segment-group/index.d.ts.map +1 -1
- package/dist/src/disclosure/segment-group/index.js +16 -17
- package/dist/src/disclosure/segment-group/index.js.map +1 -1
- package/dist/src/disclosure/show-more/index.js +3 -3
- package/dist/src/disclosure/show-more/index.js.map +1 -1
- package/dist/src/disclosure/show-more/types.d.ts +1 -3
- package/dist/src/disclosure/show-more/types.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +9 -10
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.js +15 -14
- package/dist/src/disclosure/tabs/index.js.map +1 -1
- package/dist/src/disclosure/tabs/types.d.ts +4 -6
- package/dist/src/disclosure/tabs/types.d.ts.map +1 -1
- package/dist/src/display/avatar/index.d.ts +6 -0
- package/dist/src/display/avatar/index.d.ts.map +1 -1
- package/dist/src/display/avatar/index.js +8 -1
- package/dist/src/display/avatar/index.js.map +1 -1
- package/dist/src/display/avatar/types.d.ts +15 -2
- package/dist/src/display/avatar/types.d.ts.map +1 -1
- package/dist/src/display/avatar/types.js +3 -1
- package/dist/src/display/avatar/types.js.map +1 -1
- package/dist/src/display/avatar-group/index.d.ts.map +1 -1
- package/dist/src/display/avatar-group/index.js +14 -1
- package/dist/src/display/avatar-group/index.js.map +1 -1
- package/dist/src/display/avatar-group/types.d.ts +21 -2
- package/dist/src/display/avatar-group/types.d.ts.map +1 -1
- package/dist/src/display/avatar-group/types.js +3 -1
- package/dist/src/display/avatar-group/types.js.map +1 -1
- package/dist/src/display/badge/index.d.ts +6 -0
- package/dist/src/display/badge/index.d.ts.map +1 -1
- package/dist/src/display/badge/index.js +8 -1
- package/dist/src/display/badge/index.js.map +1 -1
- package/dist/src/display/badge/types.d.ts +15 -2
- package/dist/src/display/badge/types.d.ts.map +1 -1
- package/dist/src/display/badge/types.js +3 -1
- package/dist/src/display/badge/types.js.map +1 -1
- package/dist/src/display/bar-strip/index.d.ts +3 -1
- package/dist/src/display/bar-strip/index.d.ts.map +1 -1
- package/dist/src/display/bar-strip/index.js +10 -1
- package/dist/src/display/bar-strip/index.js.map +1 -1
- package/dist/src/display/bar-strip/types.d.ts +10 -2
- package/dist/src/display/bar-strip/types.d.ts.map +1 -1
- package/dist/src/display/bar-strip/types.js +1 -1
- package/dist/src/display/bar-strip/types.js.map +1 -1
- package/dist/src/display/chip-rail/index.d.ts +109 -0
- package/dist/src/display/chip-rail/index.d.ts.map +1 -0
- package/dist/src/{layout → display}/chip-rail/index.js +19 -17
- package/dist/src/display/chip-rail/index.js.map +1 -0
- package/dist/src/{layout → display}/chip-rail/types.d.ts +10 -4
- package/dist/src/display/chip-rail/types.d.ts.map +1 -0
- package/dist/src/{layout → display}/chip-rail/types.js +1 -1
- package/dist/src/display/chip-rail/types.js.map +1 -0
- package/dist/src/display/editable-chip/index.d.ts +3 -0
- package/dist/src/display/editable-chip/index.d.ts.map +1 -1
- package/dist/src/display/editable-chip/index.js +10 -1
- package/dist/src/display/editable-chip/index.js.map +1 -1
- package/dist/src/display/editable-chip/types.d.ts +10 -2
- package/dist/src/display/editable-chip/types.d.ts.map +1 -1
- package/dist/src/display/editable-chip/types.js +1 -1
- package/dist/src/display/editable-chip/types.js.map +1 -1
- package/dist/src/display/icon/index.d.ts +5 -8
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +8 -9
- package/dist/src/display/icon/index.js.map +1 -1
- package/dist/src/display/icon/types.d.ts +5 -0
- package/dist/src/display/icon/types.d.ts.map +1 -1
- package/dist/src/display/icon/types.js.map +1 -1
- package/dist/src/display/index.d.ts +2 -0
- package/dist/src/display/index.d.ts.map +1 -1
- package/dist/src/display/index.js +2 -0
- package/dist/src/display/index.js.map +1 -1
- package/dist/src/display/kbd/index.d.ts.map +1 -1
- package/dist/src/display/kbd/index.js +8 -1
- package/dist/src/display/kbd/index.js.map +1 -1
- package/dist/src/display/kbd/types.d.ts +16 -2
- package/dist/src/display/kbd/types.d.ts.map +1 -1
- package/dist/src/display/kbd/types.js +3 -1
- package/dist/src/display/kbd/types.js.map +1 -1
- package/dist/src/display/meter/index.d.ts +3 -0
- package/dist/src/display/meter/index.d.ts.map +1 -1
- package/dist/src/display/meter/index.js +10 -0
- package/dist/src/display/meter/index.js.map +1 -1
- package/dist/src/display/meter/types.d.ts +10 -0
- package/dist/src/display/meter/types.d.ts.map +1 -1
- package/dist/src/display/meter/types.js +1 -0
- package/dist/src/display/meter/types.js.map +1 -1
- package/dist/src/display/metric-chip/index.d.ts +12 -8
- package/dist/src/display/metric-chip/index.d.ts.map +1 -1
- package/dist/src/display/metric-chip/index.js +27 -18
- package/dist/src/display/metric-chip/index.js.map +1 -1
- package/dist/src/display/metric-chip/types.d.ts +16 -5
- package/dist/src/display/metric-chip/types.d.ts.map +1 -1
- package/dist/src/display/metric-chip/types.js +1 -1
- package/dist/src/display/metric-chip/types.js.map +1 -1
- package/dist/src/display/segmented-meter/index.d.ts +3 -0
- package/dist/src/display/segmented-meter/index.d.ts.map +1 -1
- package/dist/src/display/segmented-meter/index.js +10 -0
- package/dist/src/display/segmented-meter/index.js.map +1 -1
- package/dist/src/display/segmented-meter/types.d.ts +10 -0
- package/dist/src/display/segmented-meter/types.d.ts.map +1 -1
- package/dist/src/display/segmented-meter/types.js +1 -0
- package/dist/src/display/segmented-meter/types.js.map +1 -1
- package/dist/src/display/stat/index.d.ts +13 -11
- package/dist/src/display/stat/index.d.ts.map +1 -1
- package/dist/src/display/stat/index.js +34 -23
- package/dist/src/display/stat/index.js.map +1 -1
- package/dist/src/display/stat/types.d.ts +23 -5
- package/dist/src/display/stat/types.d.ts.map +1 -1
- package/dist/src/display/stat/types.js +7 -7
- package/dist/src/display/stat/types.js.map +1 -1
- package/dist/src/display/tag/index.d.ts +5 -0
- package/dist/src/display/tag/index.d.ts.map +1 -1
- package/dist/src/display/tag/index.js +7 -1
- package/dist/src/display/tag/index.js.map +1 -1
- package/dist/src/display/tag/types.d.ts +15 -2
- package/dist/src/display/tag/types.d.ts.map +1 -1
- package/dist/src/display/tag/types.js +3 -1
- package/dist/src/display/tag/types.js.map +1 -1
- package/dist/src/display/trace/index.d.ts +104 -0
- package/dist/src/display/trace/index.d.ts.map +1 -0
- package/dist/src/display/trace/index.js +106 -0
- package/dist/src/display/trace/index.js.map +1 -0
- package/dist/src/display/trace/types.d.ts +140 -0
- package/dist/src/display/trace/types.d.ts.map +1 -0
- package/dist/src/display/trace/types.js +75 -0
- package/dist/src/display/trace/types.js.map +1 -0
- package/dist/src/feedback/banner/index.d.ts +25 -13
- package/dist/src/feedback/banner/index.d.ts.map +1 -1
- package/dist/src/feedback/banner/index.js +26 -22
- package/dist/src/feedback/banner/index.js.map +1 -1
- package/dist/src/feedback/empty-state/index.d.ts +20 -12
- package/dist/src/feedback/empty-state/index.d.ts.map +1 -1
- package/dist/src/feedback/empty-state/index.js +26 -22
- package/dist/src/feedback/empty-state/index.js.map +1 -1
- package/dist/src/feedback/progress/index.d.ts +13 -10
- package/dist/src/feedback/progress/index.d.ts.map +1 -1
- package/dist/src/feedback/progress/index.js +15 -15
- package/dist/src/feedback/progress/index.js.map +1 -1
- package/dist/src/feedback/skeleton/index.d.ts +16 -11
- package/dist/src/feedback/skeleton/index.d.ts.map +1 -1
- package/dist/src/feedback/skeleton/index.js +12 -10
- package/dist/src/feedback/skeleton/index.js.map +1 -1
- package/dist/src/feedback/status/index.d.ts +16 -11
- package/dist/src/feedback/status/index.d.ts.map +1 -1
- package/dist/src/feedback/status/index.js +23 -21
- package/dist/src/feedback/status/index.js.map +1 -1
- package/dist/src/format/index.d.ts +1 -1
- package/dist/src/format/index.d.ts.map +1 -1
- package/dist/src/format/index.js +1 -1
- package/dist/src/format/index.js.map +1 -1
- package/dist/src/format/types.d.ts +736 -0
- package/dist/src/format/types.d.ts.map +1 -0
- package/dist/src/format/types.js +473 -0
- package/dist/src/format/types.js.map +1 -0
- package/dist/src/forms/combobox/index.d.ts +9 -13
- package/dist/src/forms/combobox/index.d.ts.map +1 -1
- package/dist/src/forms/combobox/index.js +9 -12
- package/dist/src/forms/combobox/index.js.map +1 -1
- package/dist/src/forms/combobox/types.d.ts +13 -0
- package/dist/src/forms/combobox/types.d.ts.map +1 -1
- package/dist/src/forms/date-range-input/index.d.ts +6 -7
- package/dist/src/forms/date-range-input/index.d.ts.map +1 -1
- package/dist/src/forms/date-range-input/index.js +34 -34
- package/dist/src/forms/date-range-input/index.js.map +1 -1
- package/dist/src/forms/date-range-input/types.d.ts +4 -0
- package/dist/src/forms/date-range-input/types.d.ts.map +1 -1
- package/dist/src/forms/date-range-input/types.js.map +1 -1
- package/dist/src/forms/field/index.d.ts +8 -0
- package/dist/src/forms/field/index.d.ts.map +1 -1
- package/dist/src/forms/field/types.d.ts +16 -0
- package/dist/src/forms/field/types.d.ts.map +1 -1
- package/dist/src/forms/file-upload/index.d.ts +5 -1
- package/dist/src/forms/file-upload/index.d.ts.map +1 -1
- package/dist/src/forms/file-upload/index.js +9 -2
- package/dist/src/forms/file-upload/index.js.map +1 -1
- package/dist/src/forms/file-upload/types.d.ts +34 -0
- package/dist/src/forms/file-upload/types.d.ts.map +1 -1
- package/dist/src/forms/file-upload/types.js +22 -0
- package/dist/src/forms/file-upload/types.js.map +1 -1
- package/dist/src/forms/index.d.ts +0 -1
- package/dist/src/forms/index.d.ts.map +1 -1
- package/dist/src/forms/index.js +0 -1
- package/dist/src/forms/index.js.map +1 -1
- package/dist/src/forms/input/index.d.ts +5 -0
- package/dist/src/forms/input/index.d.ts.map +1 -1
- package/dist/src/forms/input/index.js +3 -1
- package/dist/src/forms/input/index.js.map +1 -1
- package/dist/src/forms/input/types.d.ts +8 -0
- package/dist/src/forms/input/types.d.ts.map +1 -1
- package/dist/src/forms/input/types.js +2 -0
- package/dist/src/forms/input/types.js.map +1 -1
- package/dist/src/forms/radio-card-group/index.d.ts +12 -12
- package/dist/src/forms/radio-card-group/index.d.ts.map +1 -1
- package/dist/src/forms/radio-card-group/index.js +39 -38
- package/dist/src/forms/radio-card-group/index.js.map +1 -1
- package/dist/src/forms/radio-card-group/types.d.ts +4 -0
- package/dist/src/forms/radio-card-group/types.d.ts.map +1 -1
- package/dist/src/forms/radio-card-group/types.js.map +1 -1
- package/dist/src/forms/radio-group/index.d.ts +12 -12
- package/dist/src/forms/radio-group/index.d.ts.map +1 -1
- package/dist/src/forms/radio-group/index.js +42 -39
- package/dist/src/forms/radio-group/index.js.map +1 -1
- package/dist/src/forms/radio-group/types.d.ts +10 -1
- package/dist/src/forms/radio-group/types.d.ts.map +1 -1
- package/dist/src/forms/radio-group/types.js.map +1 -1
- package/dist/src/forms/select/index.d.ts +9 -13
- package/dist/src/forms/select/index.d.ts.map +1 -1
- package/dist/src/forms/select/index.js +9 -12
- package/dist/src/forms/select/index.js.map +1 -1
- package/dist/src/forms/select/types.d.ts +13 -0
- package/dist/src/forms/select/types.d.ts.map +1 -1
- package/dist/src/forms/time-range-input/index.d.ts +6 -7
- package/dist/src/forms/time-range-input/index.d.ts.map +1 -1
- package/dist/src/forms/time-range-input/index.js +31 -31
- package/dist/src/forms/time-range-input/index.js.map +1 -1
- package/dist/src/forms/time-range-input/types.d.ts +4 -0
- package/dist/src/forms/time-range-input/types.d.ts.map +1 -1
- package/dist/src/forms/time-range-input/types.js.map +1 -1
- package/dist/src/index.d.ts +41 -25
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +38 -24
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +40 -22
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +44 -34
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +4 -0
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js +9 -1
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/box/types.d.ts +10 -2
- package/dist/src/layout/box/types.d.ts.map +1 -1
- package/dist/src/layout/box/types.js +1 -1
- package/dist/src/layout/box/types.js.map +1 -1
- package/dist/src/layout/flex/index.d.ts +4 -0
- package/dist/src/layout/flex/index.d.ts.map +1 -1
- package/dist/src/layout/flex/index.js +9 -1
- package/dist/src/layout/flex/index.js.map +1 -1
- package/dist/src/layout/flex/types.d.ts +10 -2
- package/dist/src/layout/flex/types.d.ts.map +1 -1
- package/dist/src/layout/flex/types.js +1 -1
- package/dist/src/layout/flex/types.js.map +1 -1
- package/dist/src/layout/grid/index.d.ts +3 -0
- package/dist/src/layout/grid/index.d.ts.map +1 -1
- package/dist/src/layout/grid/index.js +8 -1
- package/dist/src/layout/grid/index.js.map +1 -1
- package/dist/src/layout/grid/types.d.ts +10 -2
- package/dist/src/layout/grid/types.d.ts.map +1 -1
- package/dist/src/layout/grid/types.js +1 -1
- package/dist/src/layout/grid/types.js.map +1 -1
- package/dist/src/layout/index.d.ts +0 -1
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +0 -1
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/layout/scroll-area/index.d.ts +2 -31666
- package/dist/src/layout/scroll-area/index.d.ts.map +1 -1
- package/dist/src/layout/scroll-area/index.js +11 -11
- package/dist/src/layout/scroll-area/index.js.map +1 -1
- package/dist/src/layout/scroll-area/types.d.ts +1 -3
- package/dist/src/layout/scroll-area/types.d.ts.map +1 -1
- package/dist/src/layout/separator/index.d.ts +2 -31666
- package/dist/src/layout/separator/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.d.ts +32 -18
- package/dist/src/layout/splitter/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.js +33 -47
- package/dist/src/layout/splitter/index.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts +4 -0
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js +9 -1
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/layout/stack/types.d.ts +10 -2
- package/dist/src/layout/stack/types.d.ts.map +1 -1
- package/dist/src/layout/stack/types.js +1 -1
- package/dist/src/layout/stack/types.js.map +1 -1
- package/dist/src/layout/sticky/index.d.ts +2 -31666
- package/dist/src/layout/sticky/index.d.ts.map +1 -1
- package/dist/src/layout/sticky/index.js +4 -4
- package/dist/src/layout/sticky/index.js.map +1 -1
- package/dist/src/layout/sticky/types.d.ts +1 -3
- package/dist/src/layout/sticky/types.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.d.ts +18 -16
- package/dist/src/overlays/dialog/index.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.js +31 -60
- package/dist/src/overlays/dialog/index.js.map +1 -1
- package/dist/src/overlays/drawer/index.d.ts +26 -16
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js +28 -52
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/drawer/types.d.ts +3 -0
- package/dist/src/overlays/drawer/types.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.d.ts +33 -27
- package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.js +33 -61
- package/dist/src/overlays/hover-card/index.js.map +1 -1
- package/dist/src/overlays/menu/index.d.ts +114 -42
- package/dist/src/overlays/menu/index.d.ts.map +1 -1
- package/dist/src/overlays/menu/index.js +101 -60
- package/dist/src/overlays/menu/index.js.map +1 -1
- package/dist/src/overlays/menu/types.d.ts +37 -3
- package/dist/src/overlays/menu/types.d.ts.map +1 -1
- package/dist/src/overlays/menu/types.js +18 -4
- package/dist/src/overlays/menu/types.js.map +1 -1
- package/dist/src/overlays/popover/index.d.ts +16 -16
- package/dist/src/overlays/popover/index.d.ts.map +1 -1
- package/dist/src/overlays/popover/index.js +22 -52
- package/dist/src/overlays/popover/index.js.map +1 -1
- package/dist/src/overlays/toggle-tip/index.d.ts +14 -14
- package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/index.js +18 -47
- package/dist/src/overlays/toggle-tip/index.js.map +1 -1
- package/dist/src/overlays/tooltip/index.d.ts +20 -15
- package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
- package/dist/src/overlays/tooltip/index.js +19 -28
- package/dist/src/overlays/tooltip/index.js.map +1 -1
- package/dist/src/platform/hotkey/index.d.ts +3 -30
- package/dist/src/platform/hotkey/index.d.ts.map +1 -1
- package/dist/src/platform/hotkey/index.js +3 -28
- package/dist/src/platform/hotkey/index.js.map +1 -1
- package/dist/src/platform/hotkey/types.d.ts +37 -0
- package/dist/src/platform/hotkey/types.d.ts.map +1 -0
- package/dist/src/platform/hotkey/types.js +36 -0
- package/dist/src/platform/hotkey/types.js.map +1 -0
- package/dist/src/platform/slice/impl.d.ts +3 -2
- package/dist/src/platform/slice/impl.d.ts.map +1 -1
- package/dist/src/platform/slice/impl.js +23 -6
- package/dist/src/platform/slice/impl.js.map +1 -1
- package/dist/src/platform/slice/index.d.ts +1390 -135
- package/dist/src/platform/slice/index.d.ts.map +1 -1
- package/dist/src/platform/slice/index.js +52 -9
- package/dist/src/platform/slice/index.js.map +1 -1
- package/dist/src/runtime/buttons/button-group.d.ts +41 -0
- package/dist/src/runtime/buttons/button-group.d.ts.map +1 -0
- package/dist/src/runtime/buttons/button-group.js +36 -0
- package/dist/src/runtime/buttons/button-group.js.map +1 -0
- package/dist/src/runtime/buttons/button.d.ts +36 -0
- package/dist/src/runtime/buttons/button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/button.js +32 -0
- package/dist/src/runtime/buttons/button.js.map +1 -0
- package/dist/src/runtime/buttons/close-button.d.ts +36 -0
- package/dist/src/runtime/buttons/close-button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/close-button.js +34 -0
- package/dist/src/runtime/buttons/close-button.js.map +1 -0
- package/dist/src/runtime/buttons/copy-button.d.ts +37 -0
- package/dist/src/runtime/buttons/copy-button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/copy-button.js +33 -0
- package/dist/src/runtime/buttons/copy-button.js.map +1 -0
- package/dist/src/runtime/buttons/icon-button.d.ts +40 -0
- package/dist/src/runtime/buttons/icon-button.d.ts.map +1 -0
- package/dist/src/runtime/buttons/icon-button.js +38 -0
- package/dist/src/runtime/buttons/icon-button.js.map +1 -0
- package/dist/src/runtime/buttons/index.d.ts +12 -0
- package/dist/src/runtime/buttons/index.d.ts.map +1 -0
- package/dist/src/runtime/buttons/index.js +12 -0
- package/dist/src/runtime/buttons/index.js.map +1 -0
- package/dist/src/runtime/buttons/toggle.d.ts +45 -0
- package/dist/src/runtime/buttons/toggle.d.ts.map +1 -0
- package/dist/src/runtime/buttons/toggle.js +41 -0
- package/dist/src/runtime/buttons/toggle.js.map +1 -0
- package/dist/src/runtime/charts/chart.d.ts +69 -0
- package/dist/src/runtime/charts/chart.d.ts.map +1 -0
- package/dist/src/runtime/charts/chart.js +66 -0
- package/dist/src/runtime/charts/chart.js.map +1 -0
- package/dist/src/runtime/charts/index.d.ts +8 -0
- package/dist/src/runtime/charts/index.d.ts.map +1 -0
- package/dist/src/runtime/charts/index.js +8 -0
- package/dist/src/runtime/charts/index.js.map +1 -0
- package/dist/src/runtime/charts/sparkline.d.ts +42 -0
- package/dist/src/runtime/charts/sparkline.d.ts.map +1 -0
- package/dist/src/runtime/charts/sparkline.js +40 -0
- package/dist/src/runtime/charts/sparkline.js.map +1 -0
- package/dist/src/runtime/children.d.ts +46 -0
- package/dist/src/runtime/children.d.ts.map +1 -0
- package/dist/src/runtime/children.js +73 -0
- package/dist/src/runtime/children.js.map +1 -0
- package/dist/src/runtime/collections/blend.d.ts +58 -0
- package/dist/src/runtime/collections/blend.d.ts.map +1 -0
- package/dist/src/runtime/collections/blend.js +58 -0
- package/dist/src/runtime/collections/blend.js.map +1 -0
- package/dist/src/runtime/collections/calendar.d.ts +49 -0
- package/dist/src/runtime/collections/calendar.d.ts.map +1 -0
- package/dist/src/runtime/collections/calendar.js +49 -0
- package/dist/src/runtime/collections/calendar.js.map +1 -0
- package/dist/src/runtime/collections/data-list.d.ts +41 -0
- package/dist/src/runtime/collections/data-list.d.ts.map +1 -0
- package/dist/src/runtime/collections/data-list.js +39 -0
- package/dist/src/runtime/collections/data-list.js.map +1 -0
- package/dist/src/runtime/collections/gantt.d.ts +67 -0
- package/dist/src/runtime/collections/gantt.d.ts.map +1 -0
- package/dist/src/runtime/collections/gantt.js +58 -0
- package/dist/src/runtime/collections/gantt.js.map +1 -0
- package/dist/src/runtime/collections/index.d.ts +18 -0
- package/dist/src/runtime/collections/index.d.ts.map +1 -0
- package/dist/src/runtime/collections/index.js +18 -0
- package/dist/src/runtime/collections/index.js.map +1 -0
- package/dist/src/runtime/collections/library.d.ts +56 -0
- package/dist/src/runtime/collections/library.d.ts.map +1 -0
- package/dist/src/runtime/collections/library.js +56 -0
- package/dist/src/runtime/collections/library.js.map +1 -0
- package/dist/src/runtime/collections/matrix.d.ts +71 -0
- package/dist/src/runtime/collections/matrix.d.ts.map +1 -0
- package/dist/src/runtime/collections/matrix.js +66 -0
- package/dist/src/runtime/collections/matrix.js.map +1 -0
- package/dist/src/runtime/collections/pagination.d.ts +44 -0
- package/dist/src/runtime/collections/pagination.d.ts.map +1 -0
- package/dist/src/runtime/collections/pagination.js +42 -0
- package/dist/src/runtime/collections/pagination.js.map +1 -0
- package/dist/src/runtime/collections/planner.d.ts +80 -0
- package/dist/src/runtime/collections/planner.d.ts.map +1 -0
- package/dist/src/runtime/collections/planner.js +76 -0
- package/dist/src/runtime/collections/planner.js.map +1 -0
- package/dist/src/runtime/collections/roster.d.ts +60 -0
- package/dist/src/runtime/collections/roster.d.ts.map +1 -0
- package/dist/src/runtime/collections/roster.js +59 -0
- package/dist/src/runtime/collections/roster.js.map +1 -0
- package/dist/src/runtime/collections/schematic.d.ts +62 -0
- package/dist/src/runtime/collections/schematic.d.ts.map +1 -0
- package/dist/src/runtime/collections/schematic.js +59 -0
- package/dist/src/runtime/collections/schematic.js.map +1 -0
- package/dist/src/runtime/collections/table.d.ts +70 -0
- package/dist/src/runtime/collections/table.d.ts.map +1 -0
- package/dist/src/runtime/collections/table.js +63 -0
- package/dist/src/runtime/collections/table.js.map +1 -0
- package/dist/src/runtime/collections/tree-view.d.ts +49 -0
- package/dist/src/runtime/collections/tree-view.d.ts.map +1 -0
- package/dist/src/runtime/collections/tree-view.js +46 -0
- package/dist/src/runtime/collections/tree-view.js.map +1 -0
- package/dist/src/runtime/combinators.d.ts +111 -0
- package/dist/src/runtime/combinators.d.ts.map +1 -0
- package/dist/src/runtime/combinators.js +106 -0
- package/dist/src/runtime/combinators.js.map +1 -0
- package/dist/src/runtime/container/card.d.ts +54 -0
- package/dist/src/runtime/container/card.d.ts.map +1 -0
- package/dist/src/runtime/container/card.js +51 -0
- package/dist/src/runtime/container/card.js.map +1 -0
- package/dist/src/runtime/container/index.d.ts +7 -0
- package/dist/src/runtime/container/index.d.ts.map +1 -0
- package/dist/src/runtime/container/index.js +7 -0
- package/dist/src/runtime/container/index.js.map +1 -0
- package/dist/src/runtime/disclosure/accordion.d.ts +54 -0
- package/dist/src/runtime/disclosure/accordion.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/accordion.js +51 -0
- package/dist/src/runtime/disclosure/accordion.js.map +1 -0
- package/dist/src/runtime/disclosure/carousel.d.ts +46 -0
- package/dist/src/runtime/disclosure/carousel.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/carousel.js +41 -0
- package/dist/src/runtime/disclosure/carousel.js.map +1 -0
- package/dist/src/runtime/disclosure/collapsible.d.ts +41 -0
- package/dist/src/runtime/disclosure/collapsible.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/collapsible.js +39 -0
- package/dist/src/runtime/disclosure/collapsible.js.map +1 -0
- package/dist/src/runtime/disclosure/index.d.ts +13 -0
- package/dist/src/runtime/disclosure/index.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/index.js +13 -0
- package/dist/src/runtime/disclosure/index.js.map +1 -0
- package/dist/src/runtime/disclosure/option-list.d.ts +58 -0
- package/dist/src/runtime/disclosure/option-list.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/option-list.js +55 -0
- package/dist/src/runtime/disclosure/option-list.js.map +1 -0
- package/dist/src/runtime/disclosure/segment-group.d.ts +52 -0
- package/dist/src/runtime/disclosure/segment-group.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/segment-group.js +49 -0
- package/dist/src/runtime/disclosure/segment-group.js.map +1 -0
- package/dist/src/runtime/disclosure/show-more.d.ts +38 -0
- package/dist/src/runtime/disclosure/show-more.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/show-more.js +36 -0
- package/dist/src/runtime/disclosure/show-more.js.map +1 -0
- package/dist/src/runtime/disclosure/tabs.d.ts +55 -0
- package/dist/src/runtime/disclosure/tabs.d.ts.map +1 -0
- package/dist/src/runtime/disclosure/tabs.js +52 -0
- package/dist/src/runtime/disclosure/tabs.js.map +1 -0
- package/dist/src/runtime/display/avatar-group.d.ts +41 -0
- package/dist/src/runtime/display/avatar-group.d.ts.map +1 -0
- package/dist/src/runtime/display/avatar-group.js +37 -0
- package/dist/src/runtime/display/avatar-group.js.map +1 -0
- package/dist/src/runtime/display/avatar.d.ts +37 -0
- package/dist/src/runtime/display/avatar.d.ts.map +1 -0
- package/dist/src/runtime/display/avatar.js +35 -0
- package/dist/src/runtime/display/avatar.js.map +1 -0
- package/dist/src/runtime/display/badge.d.ts +40 -0
- package/dist/src/runtime/display/badge.d.ts.map +1 -0
- package/dist/src/runtime/display/badge.js +38 -0
- package/dist/src/runtime/display/badge.js.map +1 -0
- package/dist/src/runtime/display/bar-strip.d.ts +46 -0
- package/dist/src/runtime/display/bar-strip.d.ts.map +1 -0
- package/dist/src/runtime/display/bar-strip.js +42 -0
- package/dist/src/runtime/display/bar-strip.js.map +1 -0
- package/dist/src/runtime/display/chip-rail.d.ts +48 -0
- package/dist/src/runtime/display/chip-rail.d.ts.map +1 -0
- package/dist/src/runtime/display/chip-rail.js +43 -0
- package/dist/src/runtime/display/chip-rail.js.map +1 -0
- package/dist/src/runtime/display/editable-chip.d.ts +36 -0
- package/dist/src/runtime/display/editable-chip.d.ts.map +1 -0
- package/dist/src/runtime/display/editable-chip.js +34 -0
- package/dist/src/runtime/display/editable-chip.js.map +1 -0
- package/dist/src/runtime/display/icon.d.ts +36 -0
- package/dist/src/runtime/display/icon.d.ts.map +1 -0
- package/dist/src/runtime/display/icon.js +34 -0
- package/dist/src/runtime/display/icon.js.map +1 -0
- package/dist/src/runtime/display/index.d.ts +20 -0
- package/dist/src/runtime/display/index.d.ts.map +1 -0
- package/dist/src/runtime/display/index.js +20 -0
- package/dist/src/runtime/display/index.js.map +1 -0
- package/dist/src/runtime/display/kbd.d.ts +34 -0
- package/dist/src/runtime/display/kbd.d.ts.map +1 -0
- package/dist/src/runtime/display/kbd.js +32 -0
- package/dist/src/runtime/display/kbd.js.map +1 -0
- package/dist/src/runtime/display/meter.d.ts +36 -0
- package/dist/src/runtime/display/meter.d.ts.map +1 -0
- package/dist/src/runtime/display/meter.js +34 -0
- package/dist/src/runtime/display/meter.js.map +1 -0
- package/dist/src/runtime/display/metric-chip.d.ts +36 -0
- package/dist/src/runtime/display/metric-chip.d.ts.map +1 -0
- package/dist/src/runtime/display/metric-chip.js +34 -0
- package/dist/src/runtime/display/metric-chip.js.map +1 -0
- package/dist/src/runtime/display/segmented-meter.d.ts +43 -0
- package/dist/src/runtime/display/segmented-meter.d.ts.map +1 -0
- package/dist/src/runtime/display/segmented-meter.js +39 -0
- package/dist/src/runtime/display/segmented-meter.js.map +1 -0
- package/dist/src/runtime/display/stat.d.ts +38 -0
- package/dist/src/runtime/display/stat.d.ts.map +1 -0
- package/dist/src/runtime/display/stat.js +36 -0
- package/dist/src/runtime/display/stat.js.map +1 -0
- package/dist/src/runtime/display/tag.d.ts +39 -0
- package/dist/src/runtime/display/tag.d.ts.map +1 -0
- package/dist/src/runtime/display/tag.js +37 -0
- package/dist/src/runtime/display/tag.js.map +1 -0
- package/dist/src/runtime/display/trace.d.ts +50 -0
- package/dist/src/runtime/display/trace.d.ts.map +1 -0
- package/dist/src/runtime/display/trace.js +46 -0
- package/dist/src/runtime/display/trace.js.map +1 -0
- package/dist/src/runtime/feedback/banner.d.ts +44 -0
- package/dist/src/runtime/feedback/banner.d.ts.map +1 -0
- package/dist/src/runtime/feedback/banner.js +42 -0
- package/dist/src/runtime/feedback/banner.js.map +1 -0
- package/dist/src/runtime/feedback/empty-state.d.ts +43 -0
- package/dist/src/runtime/feedback/empty-state.d.ts.map +1 -0
- package/dist/src/runtime/feedback/empty-state.js +41 -0
- package/dist/src/runtime/feedback/empty-state.js.map +1 -0
- package/dist/src/runtime/feedback/index.d.ts +11 -0
- package/dist/src/runtime/feedback/index.d.ts.map +1 -0
- package/dist/src/runtime/feedback/index.js +11 -0
- package/dist/src/runtime/feedback/index.js.map +1 -0
- package/dist/src/runtime/feedback/progress.d.ts +37 -0
- package/dist/src/runtime/feedback/progress.d.ts.map +1 -0
- package/dist/src/runtime/feedback/progress.js +35 -0
- package/dist/src/runtime/feedback/progress.js.map +1 -0
- package/dist/src/runtime/feedback/skeleton.d.ts +39 -0
- package/dist/src/runtime/feedback/skeleton.d.ts.map +1 -0
- package/dist/src/runtime/feedback/skeleton.js +37 -0
- package/dist/src/runtime/feedback/skeleton.js.map +1 -0
- package/dist/src/runtime/feedback/status.d.ts +41 -0
- package/dist/src/runtime/feedback/status.d.ts.map +1 -0
- package/dist/src/runtime/feedback/status.js +39 -0
- package/dist/src/runtime/feedback/status.js.map +1 -0
- package/dist/src/runtime/forms/checkbox.d.ts +34 -0
- package/dist/src/runtime/forms/checkbox.d.ts.map +1 -0
- package/dist/src/runtime/forms/checkbox.js +32 -0
- package/dist/src/runtime/forms/checkbox.js.map +1 -0
- package/dist/src/runtime/forms/combobox.d.ts +50 -0
- package/dist/src/runtime/forms/combobox.d.ts.map +1 -0
- package/dist/src/runtime/forms/combobox.js +47 -0
- package/dist/src/runtime/forms/combobox.js.map +1 -0
- package/dist/src/runtime/forms/date-range-input.d.ts +38 -0
- package/dist/src/runtime/forms/date-range-input.d.ts.map +1 -0
- package/dist/src/runtime/forms/date-range-input.js +36 -0
- package/dist/src/runtime/forms/date-range-input.js.map +1 -0
- package/dist/src/runtime/forms/field.d.ts +77 -0
- package/dist/src/runtime/forms/field.d.ts.map +1 -0
- package/dist/src/runtime/forms/field.js +62 -0
- package/dist/src/runtime/forms/field.js.map +1 -0
- package/dist/src/runtime/forms/file-upload.d.ts +35 -0
- package/dist/src/runtime/forms/file-upload.d.ts.map +1 -0
- package/dist/src/runtime/forms/file-upload.js +33 -0
- package/dist/src/runtime/forms/file-upload.js.map +1 -0
- package/dist/src/runtime/forms/index.d.ts +20 -0
- package/dist/src/runtime/forms/index.d.ts.map +1 -0
- package/dist/src/runtime/forms/index.js +20 -0
- package/dist/src/runtime/forms/index.js.map +1 -0
- package/dist/src/runtime/forms/input.d.ts +57 -0
- package/dist/src/runtime/forms/input.d.ts.map +1 -0
- package/dist/src/runtime/forms/input.js +57 -0
- package/dist/src/runtime/forms/input.js.map +1 -0
- package/dist/src/runtime/forms/radio-card-group.d.ts +44 -0
- package/dist/src/runtime/forms/radio-card-group.d.ts.map +1 -0
- package/dist/src/runtime/forms/radio-card-group.js +42 -0
- package/dist/src/runtime/forms/radio-card-group.js.map +1 -0
- package/dist/src/runtime/forms/radio-group.d.ts +44 -0
- package/dist/src/runtime/forms/radio-group.d.ts.map +1 -0
- package/dist/src/runtime/forms/radio-group.js +42 -0
- package/dist/src/runtime/forms/radio-group.js.map +1 -0
- package/dist/src/runtime/forms/select.d.ts +49 -0
- package/dist/src/runtime/forms/select.d.ts.map +1 -0
- package/dist/src/runtime/forms/select.js +46 -0
- package/dist/src/runtime/forms/select.js.map +1 -0
- package/dist/src/runtime/forms/slider.d.ts +36 -0
- package/dist/src/runtime/forms/slider.d.ts.map +1 -0
- package/dist/src/runtime/forms/slider.js +34 -0
- package/dist/src/runtime/forms/slider.js.map +1 -0
- package/dist/src/runtime/forms/switch.d.ts +34 -0
- package/dist/src/runtime/forms/switch.d.ts.map +1 -0
- package/dist/src/runtime/forms/switch.js +32 -0
- package/dist/src/runtime/forms/switch.js.map +1 -0
- package/dist/src/runtime/forms/tags-input.d.ts +37 -0
- package/dist/src/runtime/forms/tags-input.d.ts.map +1 -0
- package/dist/src/runtime/forms/tags-input.js +35 -0
- package/dist/src/runtime/forms/tags-input.js.map +1 -0
- package/dist/src/runtime/forms/textarea.d.ts +36 -0
- package/dist/src/runtime/forms/textarea.d.ts.map +1 -0
- package/dist/src/runtime/forms/textarea.js +34 -0
- package/dist/src/runtime/forms/textarea.js.map +1 -0
- package/dist/src/runtime/forms/time-range-input.d.ts +38 -0
- package/dist/src/runtime/forms/time-range-input.d.ts.map +1 -0
- package/dist/src/runtime/forms/time-range-input.js +36 -0
- package/dist/src/runtime/forms/time-range-input.js.map +1 -0
- package/dist/src/runtime/index.d.ts +42 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +41 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/layout/box.d.ts +38 -0
- package/dist/src/runtime/layout/box.d.ts.map +1 -0
- package/dist/src/runtime/layout/box.js +36 -0
- package/dist/src/runtime/layout/box.js.map +1 -0
- package/dist/src/runtime/layout/flex.d.ts +41 -0
- package/dist/src/runtime/layout/flex.d.ts.map +1 -0
- package/dist/src/runtime/layout/flex.js +39 -0
- package/dist/src/runtime/layout/flex.js.map +1 -0
- package/dist/src/runtime/layout/grid.d.ts +52 -0
- package/dist/src/runtime/layout/grid.d.ts.map +1 -0
- package/dist/src/runtime/layout/grid.js +49 -0
- package/dist/src/runtime/layout/grid.js.map +1 -0
- package/dist/src/runtime/layout/index.d.ts +14 -0
- package/dist/src/runtime/layout/index.d.ts.map +1 -0
- package/dist/src/runtime/layout/index.js +14 -0
- package/dist/src/runtime/layout/index.js.map +1 -0
- package/dist/src/runtime/layout/scroll-area.d.ts +44 -0
- package/dist/src/runtime/layout/scroll-area.d.ts.map +1 -0
- package/dist/src/runtime/layout/scroll-area.js +42 -0
- package/dist/src/runtime/layout/scroll-area.js.map +1 -0
- package/dist/src/runtime/layout/separator.d.ts +39 -0
- package/dist/src/runtime/layout/separator.d.ts.map +1 -0
- package/dist/src/runtime/layout/separator.js +37 -0
- package/dist/src/runtime/layout/separator.js.map +1 -0
- package/dist/src/runtime/layout/splitter.d.ts +53 -0
- package/dist/src/runtime/layout/splitter.d.ts.map +1 -0
- package/dist/src/runtime/layout/splitter.js +50 -0
- package/dist/src/runtime/layout/splitter.js.map +1 -0
- package/dist/src/runtime/layout/stack.d.ts +99 -0
- package/dist/src/runtime/layout/stack.d.ts.map +1 -0
- package/dist/src/runtime/layout/stack.js +93 -0
- package/dist/src/runtime/layout/stack.js.map +1 -0
- package/dist/src/runtime/layout/sticky.d.ts +44 -0
- package/dist/src/runtime/layout/sticky.d.ts.map +1 -0
- package/dist/src/runtime/layout/sticky.js +42 -0
- package/dist/src/runtime/layout/sticky.js.map +1 -0
- package/dist/src/runtime/navigation/breadcrumb.d.ts +41 -0
- package/dist/src/runtime/navigation/breadcrumb.d.ts.map +1 -0
- package/dist/src/runtime/navigation/breadcrumb.js +39 -0
- package/dist/src/runtime/navigation/breadcrumb.js.map +1 -0
- package/dist/src/runtime/navigation/index.d.ts +8 -0
- package/dist/src/runtime/navigation/index.d.ts.map +1 -0
- package/dist/src/runtime/navigation/index.js +8 -0
- package/dist/src/runtime/navigation/index.js.map +1 -0
- package/dist/src/runtime/navigation/nav-list.d.ts +54 -0
- package/dist/src/runtime/navigation/nav-list.d.ts.map +1 -0
- package/dist/src/runtime/navigation/nav-list.js +52 -0
- package/dist/src/runtime/navigation/nav-list.js.map +1 -0
- package/dist/src/runtime/overlays/action-bar.d.ts +45 -0
- package/dist/src/runtime/overlays/action-bar.d.ts.map +1 -0
- package/dist/src/runtime/overlays/action-bar.js +43 -0
- package/dist/src/runtime/overlays/action-bar.js.map +1 -0
- package/dist/src/runtime/overlays/command-palette.d.ts +45 -0
- package/dist/src/runtime/overlays/command-palette.d.ts.map +1 -0
- package/dist/src/runtime/overlays/command-palette.js +43 -0
- package/dist/src/runtime/overlays/command-palette.js.map +1 -0
- package/dist/src/runtime/overlays/dialog.d.ts +47 -0
- package/dist/src/runtime/overlays/dialog.d.ts.map +1 -0
- package/dist/src/runtime/overlays/dialog.js +44 -0
- package/dist/src/runtime/overlays/dialog.js.map +1 -0
- package/dist/src/runtime/overlays/drawer.d.ts +46 -0
- package/dist/src/runtime/overlays/drawer.d.ts.map +1 -0
- package/dist/src/runtime/overlays/drawer.js +43 -0
- package/dist/src/runtime/overlays/drawer.js.map +1 -0
- package/dist/src/runtime/overlays/hover-card.d.ts +43 -0
- package/dist/src/runtime/overlays/hover-card.d.ts.map +1 -0
- package/dist/src/runtime/overlays/hover-card.js +41 -0
- package/dist/src/runtime/overlays/hover-card.js.map +1 -0
- package/dist/src/runtime/overlays/index.d.ts +15 -0
- package/dist/src/runtime/overlays/index.d.ts.map +1 -0
- package/dist/src/runtime/overlays/index.js +15 -0
- package/dist/src/runtime/overlays/index.js.map +1 -0
- package/dist/src/runtime/overlays/menu.d.ts +49 -0
- package/dist/src/runtime/overlays/menu.d.ts.map +1 -0
- package/dist/src/runtime/overlays/menu.js +46 -0
- package/dist/src/runtime/overlays/menu.js.map +1 -0
- package/dist/src/runtime/overlays/popover.d.ts +37 -0
- package/dist/src/runtime/overlays/popover.d.ts.map +1 -0
- package/dist/src/runtime/overlays/popover.js +35 -0
- package/dist/src/runtime/overlays/popover.js.map +1 -0
- package/dist/src/runtime/overlays/toggle-tip.d.ts +44 -0
- package/dist/src/runtime/overlays/toggle-tip.d.ts.map +1 -0
- package/dist/src/runtime/overlays/toggle-tip.js +42 -0
- package/dist/src/runtime/overlays/toggle-tip.js.map +1 -0
- package/dist/src/runtime/overlays/tooltip.d.ts +37 -0
- package/dist/src/runtime/overlays/tooltip.d.ts.map +1 -0
- package/dist/src/runtime/overlays/tooltip.js +35 -0
- package/dist/src/runtime/overlays/tooltip.js.map +1 -0
- package/dist/src/runtime/platform-hotkey.d.ts +41 -0
- package/dist/src/runtime/platform-hotkey.d.ts.map +1 -0
- package/dist/src/runtime/platform-hotkey.js +39 -0
- package/dist/src/runtime/platform-hotkey.js.map +1 -0
- package/dist/src/runtime/reactive/index.d.ts +8 -0
- package/dist/src/runtime/reactive/index.d.ts.map +1 -0
- package/dist/src/runtime/reactive/index.js +7 -0
- package/dist/src/runtime/reactive/index.js.map +1 -0
- package/dist/src/runtime/reactive/reactive.d.ts +59 -0
- package/dist/src/runtime/reactive/reactive.d.ts.map +1 -0
- package/dist/src/runtime/reactive/reactive.js +53 -0
- package/dist/src/runtime/reactive/reactive.js.map +1 -0
- package/dist/src/runtime/runtime.d.ts +92 -0
- package/dist/src/runtime/runtime.d.ts.map +1 -0
- package/dist/src/runtime/runtime.js +47 -0
- package/dist/src/runtime/runtime.js.map +1 -0
- package/dist/src/runtime/slice.d.ts +84 -0
- package/dist/src/runtime/slice.d.ts.map +1 -0
- package/dist/src/runtime/slice.js +379 -0
- package/dist/src/runtime/slice.js.map +1 -0
- package/dist/src/runtime/typography/code-block.d.ts +38 -0
- package/dist/src/runtime/typography/code-block.d.ts.map +1 -0
- package/dist/src/runtime/typography/code-block.js +36 -0
- package/dist/src/runtime/typography/code-block.js.map +1 -0
- package/dist/src/runtime/typography/code.d.ts +36 -0
- package/dist/src/runtime/typography/code.d.ts.map +1 -0
- package/dist/src/runtime/typography/code.js +34 -0
- package/dist/src/runtime/typography/code.js.map +1 -0
- package/dist/src/runtime/typography/heading.d.ts +39 -0
- package/dist/src/runtime/typography/heading.d.ts.map +1 -0
- package/dist/src/runtime/typography/heading.js +37 -0
- package/dist/src/runtime/typography/heading.js.map +1 -0
- package/dist/src/runtime/typography/highlight.d.ts +37 -0
- package/dist/src/runtime/typography/highlight.d.ts.map +1 -0
- package/dist/src/runtime/typography/highlight.js +35 -0
- package/dist/src/runtime/typography/highlight.js.map +1 -0
- package/dist/src/runtime/typography/index.d.ts +16 -0
- package/dist/src/runtime/typography/index.d.ts.map +1 -0
- package/dist/src/runtime/typography/index.js +16 -0
- package/dist/src/runtime/typography/index.js.map +1 -0
- package/dist/src/runtime/typography/link.d.ts +37 -0
- package/dist/src/runtime/typography/link.d.ts.map +1 -0
- package/dist/src/runtime/typography/link.js +35 -0
- package/dist/src/runtime/typography/link.js.map +1 -0
- package/dist/src/runtime/typography/list.d.ts +42 -0
- package/dist/src/runtime/typography/list.d.ts.map +1 -0
- package/dist/src/runtime/typography/list.js +40 -0
- package/dist/src/runtime/typography/list.js.map +1 -0
- package/dist/src/runtime/typography/mark.d.ts +35 -0
- package/dist/src/runtime/typography/mark.d.ts.map +1 -0
- package/dist/src/runtime/typography/mark.js +33 -0
- package/dist/src/runtime/typography/mark.js.map +1 -0
- package/dist/src/runtime/typography/note.d.ts +38 -0
- package/dist/src/runtime/typography/note.d.ts.map +1 -0
- package/dist/src/runtime/typography/note.js +36 -0
- package/dist/src/runtime/typography/note.js.map +1 -0
- package/dist/src/runtime/typography/numeric.d.ts +43 -0
- package/dist/src/runtime/typography/numeric.d.ts.map +1 -0
- package/dist/src/runtime/typography/numeric.js +41 -0
- package/dist/src/runtime/typography/numeric.js.map +1 -0
- package/dist/src/runtime/typography/text.d.ts +94 -0
- package/dist/src/runtime/typography/text.d.ts.map +1 -0
- package/dist/src/runtime/typography/text.js +208 -0
- package/dist/src/runtime/typography/text.js.map +1 -0
- package/dist/src/slice/breakdown/index.d.ts +11 -4
- package/dist/src/slice/breakdown/index.d.ts.map +1 -1
- package/dist/src/slice/breakdown/index.js +4 -4
- package/dist/src/slice/breakdown/index.js.map +1 -1
- package/dist/src/slice/breakdown/types.d.ts +6 -1
- package/dist/src/slice/breakdown/types.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.d.ts +12 -5
- package/dist/src/slice/cohort/index.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.js +9 -9
- package/dist/src/slice/cohort/index.js.map +1 -1
- package/dist/src/slice/cohort/types.d.ts +6 -1
- package/dist/src/slice/cohort/types.d.ts.map +1 -1
- package/dist/src/slice/filter/index.d.ts +11 -5
- package/dist/src/slice/filter/index.d.ts.map +1 -1
- package/dist/src/slice/filter/index.js +6 -7
- package/dist/src/slice/filter/index.js.map +1 -1
- package/dist/src/slice/filter/types.d.ts +6 -1
- package/dist/src/slice/filter/types.d.ts.map +1 -1
- package/dist/src/slice/index.d.ts +687 -267
- package/dist/src/slice/index.d.ts.map +1 -1
- package/dist/src/slice/index.js +3 -6
- package/dist/src/slice/index.js.map +1 -1
- package/dist/src/slice/legend/index.d.ts +18 -4
- package/dist/src/slice/legend/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.js +4 -4
- package/dist/src/slice/legend/index.js.map +1 -1
- package/dist/src/slice/legend/types.d.ts +6 -1
- package/dist/src/slice/legend/types.d.ts.map +1 -1
- package/dist/src/slice/rail/index.d.ts +49 -0
- package/dist/src/slice/rail/index.d.ts.map +1 -0
- package/dist/src/slice/rail/index.js +39 -0
- package/dist/src/slice/rail/index.js.map +1 -0
- package/dist/src/slice/range/index.d.ts +10 -3
- package/dist/src/slice/range/index.d.ts.map +1 -1
- package/dist/src/slice/range/index.js +4 -4
- package/dist/src/slice/range/index.js.map +1 -1
- package/dist/src/slice/range/types.d.ts +6 -1
- package/dist/src/slice/range/types.d.ts.map +1 -1
- package/dist/src/slice/search/index.d.ts +11 -4
- package/dist/src/slice/search/index.d.ts.map +1 -1
- package/dist/src/slice/search/index.js +6 -6
- package/dist/src/slice/search/index.js.map +1 -1
- package/dist/src/slice/search/types.d.ts +6 -1
- package/dist/src/slice/search/types.d.ts.map +1 -1
- package/dist/src/slice/summary/index.d.ts +18 -4
- package/dist/src/slice/summary/index.d.ts.map +1 -1
- package/dist/src/slice/summary/index.js +4 -4
- package/dist/src/slice/summary/index.js.map +1 -1
- package/dist/src/slice/summary/types.d.ts +6 -1
- package/dist/src/slice/summary/types.d.ts.map +1 -1
- package/dist/src/typography/highlight/index.d.ts +13 -13
- package/dist/src/typography/highlight/index.d.ts.map +1 -1
- package/dist/src/typography/highlight/index.js +17 -20
- package/dist/src/typography/highlight/index.js.map +1 -1
- package/dist/src/typography/highlight/types.d.ts +5 -2
- package/dist/src/typography/highlight/types.d.ts.map +1 -1
- package/dist/src/typography/link/index.d.ts +9 -8
- package/dist/src/typography/link/index.d.ts.map +1 -1
- package/dist/src/typography/link/index.js +14 -12
- package/dist/src/typography/link/index.js.map +1 -1
- package/dist/src/typography/link/types.d.ts +4 -2
- package/dist/src/typography/link/types.d.ts.map +1 -1
- package/dist/src/typography/numeric/index.d.ts +1 -1
- package/dist/src/typography/numeric/index.d.ts.map +1 -1
- package/dist/src/typography/numeric/index.js +1 -1
- package/dist/src/typography/numeric/index.js.map +1 -1
- package/dist/src/typography/numeric/types.d.ts +1 -1
- package/dist/src/typography/numeric/types.js +1 -1
- package/dist/test/buttons/button-group.examples.d.ts.map +1 -1
- package/dist/test/buttons/button-group.examples.js +9 -20
- package/dist/test/buttons/button-group.examples.js.map +1 -1
- package/dist/test/buttons/button.examples.d.ts.map +1 -1
- package/dist/test/buttons/button.examples.js +16 -53
- package/dist/test/buttons/button.examples.js.map +1 -1
- package/dist/test/buttons/close-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/close-button.examples.js +10 -24
- package/dist/test/buttons/close-button.examples.js.map +1 -1
- package/dist/test/buttons/copy-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/copy-button.examples.js +7 -18
- package/dist/test/buttons/copy-button.examples.js.map +1 -1
- package/dist/test/buttons/icon-button.examples.d.ts.map +1 -1
- package/dist/test/buttons/icon-button.examples.js +10 -27
- package/dist/test/buttons/icon-button.examples.js.map +1 -1
- package/dist/test/buttons/index.d.ts +12 -0
- package/dist/test/buttons/index.d.ts.map +1 -0
- package/dist/test/buttons/index.js +12 -0
- package/dist/test/buttons/index.js.map +1 -0
- package/dist/test/buttons/toggle.examples.d.ts.map +1 -1
- package/dist/test/buttons/toggle.examples.js +9 -21
- package/dist/test/buttons/toggle.examples.js.map +1 -1
- package/dist/test/charts/chart.examples.d.ts +23 -0
- package/dist/test/charts/chart.examples.d.ts.map +1 -0
- package/dist/test/charts/chart.examples.js +325 -0
- package/dist/test/charts/chart.examples.js.map +1 -0
- package/dist/test/charts/index.d.ts +2 -7
- package/dist/test/charts/index.d.ts.map +1 -1
- package/dist/test/charts/index.js +2 -7
- package/dist/test/charts/index.js.map +1 -1
- package/dist/test/charts/sparkline.examples.d.ts +0 -4
- package/dist/test/charts/sparkline.examples.d.ts.map +1 -1
- package/dist/test/charts/sparkline.examples.js +15 -104
- package/dist/test/charts/sparkline.examples.js.map +1 -1
- package/dist/test/collections/blend.examples.d.ts +5 -0
- package/dist/test/collections/blend.examples.d.ts.map +1 -0
- package/dist/test/collections/blend.examples.js +105 -0
- package/dist/test/collections/blend.examples.js.map +1 -0
- package/dist/test/collections/calendar.examples.d.ts +4 -0
- package/dist/test/collections/calendar.examples.d.ts.map +1 -0
- package/dist/test/collections/calendar.examples.js +84 -0
- package/dist/test/collections/calendar.examples.js.map +1 -0
- package/dist/test/collections/data-list.examples.d.ts.map +1 -1
- package/dist/test/collections/data-list.examples.js +50 -55
- package/dist/test/collections/data-list.examples.js.map +1 -1
- package/dist/test/collections/gantt.examples.d.ts +4 -13
- package/dist/test/collections/gantt.examples.d.ts.map +1 -1
- package/dist/test/collections/gantt.examples.js +203 -465
- package/dist/test/collections/gantt.examples.js.map +1 -1
- package/dist/test/collections/index.d.ts +3 -0
- package/dist/test/collections/index.d.ts.map +1 -1
- package/dist/test/collections/index.js +3 -0
- package/dist/test/collections/index.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts +4 -0
- package/dist/test/collections/library.examples.d.ts.map +1 -0
- package/dist/test/collections/library.examples.js +79 -0
- package/dist/test/collections/library.examples.js.map +1 -0
- package/dist/test/collections/matrix.examples.d.ts +43 -12
- package/dist/test/collections/matrix.examples.d.ts.map +1 -1
- package/dist/test/collections/matrix.examples.js +172 -592
- package/dist/test/collections/matrix.examples.js.map +1 -1
- package/dist/test/collections/pagination.examples.d.ts +0 -4
- package/dist/test/collections/pagination.examples.d.ts.map +1 -1
- package/dist/test/collections/pagination.examples.js +24 -33
- package/dist/test/collections/pagination.examples.js.map +1 -1
- package/dist/test/collections/planner.examples.d.ts +43 -27
- package/dist/test/collections/planner.examples.d.ts.map +1 -1
- package/dist/test/collections/planner.examples.js +149 -596
- package/dist/test/collections/planner.examples.js.map +1 -1
- package/dist/test/collections/roster.examples.d.ts +5 -0
- package/dist/test/collections/roster.examples.d.ts.map +1 -0
- package/dist/test/collections/roster.examples.js +115 -0
- package/dist/test/collections/roster.examples.js.map +1 -0
- package/dist/test/collections/schematic.examples.d.ts +5 -0
- package/dist/test/collections/schematic.examples.d.ts.map +1 -0
- package/dist/test/collections/schematic.examples.js +144 -0
- package/dist/test/collections/schematic.examples.js.map +1 -0
- package/dist/test/collections/table.examples.d.ts +0 -11
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +170 -495
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/collections/tree-view.examples.d.ts.map +1 -1
- package/dist/test/collections/tree-view.examples.js +125 -156
- package/dist/test/collections/tree-view.examples.js.map +1 -1
- package/dist/test/container/card.examples.d.ts.map +1 -1
- package/dist/test/container/card.examples.js +26 -111
- package/dist/test/container/card.examples.js.map +1 -1
- package/dist/test/container/index.d.ts +7 -0
- package/dist/test/container/index.d.ts.map +1 -0
- package/dist/test/container/index.js +7 -0
- package/dist/test/container/index.js.map +1 -0
- package/dist/test/disclosure/accordion.examples.d.ts.map +1 -1
- package/dist/test/disclosure/accordion.examples.js +41 -106
- package/dist/test/disclosure/accordion.examples.js.map +1 -1
- package/dist/test/disclosure/carousel.examples.d.ts.map +1 -1
- package/dist/test/disclosure/carousel.examples.js +14 -104
- package/dist/test/disclosure/carousel.examples.js.map +1 -1
- package/dist/test/disclosure/collapsible.examples.d.ts.map +1 -1
- package/dist/test/disclosure/collapsible.examples.js +10 -22
- package/dist/test/disclosure/collapsible.examples.js.map +1 -1
- package/dist/test/disclosure/index.d.ts +5 -0
- package/dist/test/disclosure/index.d.ts.map +1 -1
- package/dist/test/disclosure/index.js +5 -0
- package/dist/test/disclosure/index.js.map +1 -1
- package/dist/test/disclosure/option-list.examples.d.ts.map +1 -1
- package/dist/test/disclosure/option-list.examples.js +21 -44
- package/dist/test/disclosure/option-list.examples.js.map +1 -1
- package/dist/test/disclosure/segment-group.examples.d.ts.map +1 -1
- package/dist/test/disclosure/segment-group.examples.js +29 -43
- package/dist/test/disclosure/segment-group.examples.js.map +1 -1
- package/dist/test/disclosure/show-more.examples.d.ts.map +1 -1
- package/dist/test/disclosure/show-more.examples.js +8 -8
- package/dist/test/disclosure/show-more.examples.js.map +1 -1
- package/dist/test/disclosure/tabs.examples.d.ts.map +1 -1
- package/dist/test/disclosure/tabs.examples.js +56 -146
- package/dist/test/disclosure/tabs.examples.js.map +1 -1
- package/dist/test/display/avatar-group.examples.d.ts +1 -4
- package/dist/test/display/avatar-group.examples.d.ts.map +1 -1
- package/dist/test/display/avatar-group.examples.js +18 -17
- package/dist/test/display/avatar-group.examples.js.map +1 -1
- package/dist/test/display/avatar.examples.d.ts +1 -0
- package/dist/test/display/avatar.examples.d.ts.map +1 -1
- package/dist/test/display/avatar.examples.js +21 -28
- package/dist/test/display/avatar.examples.js.map +1 -1
- package/dist/test/display/badge.examples.d.ts +1 -0
- package/dist/test/display/badge.examples.d.ts.map +1 -1
- package/dist/test/display/badge.examples.js +26 -64
- package/dist/test/display/badge.examples.js.map +1 -1
- package/dist/test/display/bar-strip.examples.d.ts +1 -4
- package/dist/test/display/bar-strip.examples.d.ts.map +1 -1
- package/dist/test/display/bar-strip.examples.js +41 -18
- package/dist/test/display/bar-strip.examples.js.map +1 -1
- package/dist/test/display/chip-rail.examples.d.ts +7 -0
- package/dist/test/display/chip-rail.examples.d.ts.map +1 -0
- package/dist/test/display/chip-rail.examples.js +59 -0
- package/dist/test/display/chip-rail.examples.js.map +1 -0
- package/dist/test/display/combine.examples.d.ts +2 -0
- package/dist/test/display/combine.examples.d.ts.map +1 -0
- package/dist/test/display/combine.examples.js +174 -0
- package/dist/test/display/combine.examples.js.map +1 -0
- package/dist/test/display/editable-chip.examples.d.ts +1 -4
- package/dist/test/display/editable-chip.examples.d.ts.map +1 -1
- package/dist/test/display/editable-chip.examples.js +22 -18
- package/dist/test/display/editable-chip.examples.js.map +1 -1
- package/dist/test/display/icon.examples.d.ts.map +1 -1
- package/dist/test/display/icon.examples.js +10 -25
- package/dist/test/display/icon.examples.js.map +1 -1
- package/dist/test/display/index.d.ts +11 -0
- package/dist/test/display/index.d.ts.map +1 -1
- package/dist/test/display/index.js +11 -0
- package/dist/test/display/index.js.map +1 -1
- package/dist/test/display/kbd.examples.d.ts +1 -4
- package/dist/test/display/kbd.examples.d.ts.map +1 -1
- package/dist/test/display/kbd.examples.js +18 -8
- 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 +19 -9
- package/dist/test/display/meter.examples.js.map +1 -1
- package/dist/test/display/metric-chip.examples.d.ts +1 -4
- package/dist/test/display/metric-chip.examples.d.ts.map +1 -1
- package/dist/test/display/metric-chip.examples.js +19 -9
- package/dist/test/display/metric-chip.examples.js.map +1 -1
- package/dist/test/display/segmented-meter.examples.d.ts +1 -4
- package/dist/test/display/segmented-meter.examples.d.ts.map +1 -1
- package/dist/test/display/segmented-meter.examples.js +40 -14
- package/dist/test/display/segmented-meter.examples.js.map +1 -1
- package/dist/test/display/stat.examples.d.ts +1 -0
- package/dist/test/display/stat.examples.d.ts.map +1 -1
- package/dist/test/display/stat.examples.js +22 -28
- package/dist/test/display/stat.examples.js.map +1 -1
- package/dist/test/display/tag.examples.d.ts +1 -0
- package/dist/test/display/tag.examples.d.ts.map +1 -1
- package/dist/test/display/tag.examples.js +25 -71
- package/dist/test/display/tag.examples.js.map +1 -1
- package/dist/test/display/trace.examples.d.ts +5 -0
- package/dist/test/display/trace.examples.d.ts.map +1 -0
- package/dist/test/display/trace.examples.js +62 -0
- package/dist/test/display/trace.examples.js.map +1 -0
- package/dist/test/extension.examples.d.ts +1 -27
- package/dist/test/extension.examples.d.ts.map +1 -1
- package/dist/test/extension.examples.js +34 -42
- package/dist/test/extension.examples.js.map +1 -1
- package/dist/test/feedback/banner.examples.d.ts.map +1 -1
- package/dist/test/feedback/banner.examples.js +13 -37
- package/dist/test/feedback/banner.examples.js.map +1 -1
- package/dist/test/feedback/empty-state.examples.d.ts.map +1 -1
- package/dist/test/feedback/empty-state.examples.js +7 -19
- package/dist/test/feedback/empty-state.examples.js.map +1 -1
- package/dist/test/feedback/index.d.ts +5 -0
- package/dist/test/feedback/index.d.ts.map +1 -1
- package/dist/test/feedback/index.js +5 -0
- package/dist/test/feedback/index.js.map +1 -1
- package/dist/test/feedback/progress.examples.d.ts +0 -1
- package/dist/test/feedback/progress.examples.d.ts.map +1 -1
- package/dist/test/feedback/progress.examples.js +13 -55
- package/dist/test/feedback/progress.examples.js.map +1 -1
- package/dist/test/feedback/skeleton.examples.d.ts.map +1 -1
- package/dist/test/feedback/skeleton.examples.js +7 -11
- package/dist/test/feedback/skeleton.examples.js.map +1 -1
- package/dist/test/feedback/status.examples.d.ts.map +1 -1
- package/dist/test/feedback/status.examples.js +8 -17
- package/dist/test/feedback/status.examples.js.map +1 -1
- package/dist/test/forms/checkbox.examples.d.ts.map +1 -1
- package/dist/test/forms/checkbox.examples.js +9 -23
- package/dist/test/forms/checkbox.examples.js.map +1 -1
- package/dist/test/forms/combobox.examples.d.ts.map +1 -1
- package/dist/test/forms/combobox.examples.js +69 -112
- package/dist/test/forms/combobox.examples.js.map +1 -1
- package/dist/test/forms/date-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/date-range-input.examples.js +16 -34
- package/dist/test/forms/date-range-input.examples.js.map +1 -1
- package/dist/test/forms/field.examples.d.ts.map +1 -1
- package/dist/test/forms/field.examples.js +8 -28
- package/dist/test/forms/field.examples.js.map +1 -1
- package/dist/test/forms/file-upload.examples.d.ts +1 -0
- package/dist/test/forms/file-upload.examples.d.ts.map +1 -1
- package/dist/test/forms/file-upload.examples.js +23 -49
- package/dist/test/forms/file-upload.examples.js.map +1 -1
- package/dist/test/forms/index.d.ts +5 -0
- package/dist/test/forms/index.d.ts.map +1 -1
- package/dist/test/forms/index.js +5 -0
- package/dist/test/forms/index.js.map +1 -1
- package/dist/test/forms/input.examples.d.ts +1 -0
- package/dist/test/forms/input.examples.d.ts.map +1 -1
- package/dist/test/forms/input.examples.js +30 -74
- package/dist/test/forms/input.examples.js.map +1 -1
- package/dist/test/forms/radio-card-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-card-group.examples.js +30 -36
- package/dist/test/forms/radio-card-group.examples.js.map +1 -1
- package/dist/test/forms/radio-group.examples.d.ts.map +1 -1
- package/dist/test/forms/radio-group.examples.js +31 -37
- package/dist/test/forms/radio-group.examples.js.map +1 -1
- package/dist/test/forms/select.examples.d.ts.map +1 -1
- package/dist/test/forms/select.examples.js +32 -44
- package/dist/test/forms/select.examples.js.map +1 -1
- package/dist/test/forms/slider.examples.d.ts.map +1 -1
- package/dist/test/forms/slider.examples.js +11 -22
- package/dist/test/forms/slider.examples.js.map +1 -1
- package/dist/test/forms/switch.examples.d.ts.map +1 -1
- package/dist/test/forms/switch.examples.js +9 -23
- package/dist/test/forms/switch.examples.js.map +1 -1
- package/dist/test/forms/tags-input.examples.d.ts.map +1 -1
- package/dist/test/forms/tags-input.examples.js +14 -42
- package/dist/test/forms/tags-input.examples.js.map +1 -1
- package/dist/test/forms/textarea.examples.d.ts.map +1 -1
- package/dist/test/forms/textarea.examples.js +14 -46
- package/dist/test/forms/textarea.examples.js.map +1 -1
- package/dist/test/forms/time-range-input.examples.d.ts.map +1 -1
- package/dist/test/forms/time-range-input.examples.js +20 -38
- package/dist/test/forms/time-range-input.examples.js.map +1 -1
- package/dist/test/layout/box.examples.d.ts.map +1 -1
- package/dist/test/layout/box.examples.js +20 -180
- package/dist/test/layout/box.examples.js.map +1 -1
- package/dist/test/layout/flex.examples.d.ts.map +1 -1
- package/dist/test/layout/flex.examples.js +15 -133
- package/dist/test/layout/flex.examples.js.map +1 -1
- package/dist/test/layout/grid.examples.d.ts.map +1 -1
- package/dist/test/layout/grid.examples.js +66 -105
- package/dist/test/layout/grid.examples.js.map +1 -1
- package/dist/test/layout/index.d.ts +3 -0
- package/dist/test/layout/index.d.ts.map +1 -1
- package/dist/test/layout/index.js +3 -0
- package/dist/test/layout/index.js.map +1 -1
- package/dist/test/layout/scroll-area.examples.d.ts.map +1 -1
- package/dist/test/layout/scroll-area.examples.js +6 -14
- package/dist/test/layout/scroll-area.examples.js.map +1 -1
- package/dist/test/layout/separator.examples.d.ts.map +1 -1
- package/dist/test/layout/separator.examples.js +17 -74
- package/dist/test/layout/separator.examples.js.map +1 -1
- package/dist/test/layout/splitter.examples.d.ts.map +1 -1
- package/dist/test/layout/splitter.examples.js +41 -70
- package/dist/test/layout/splitter.examples.js.map +1 -1
- package/dist/test/layout/stack.examples.d.ts +1 -0
- package/dist/test/layout/stack.examples.d.ts.map +1 -1
- package/dist/test/layout/stack.examples.js +24 -93
- package/dist/test/layout/stack.examples.js.map +1 -1
- package/dist/test/layout/sticky.examples.d.ts.map +1 -1
- package/dist/test/layout/sticky.examples.js +6 -33
- package/dist/test/layout/sticky.examples.js.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.d.ts.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.js +30 -26
- package/dist/test/navigation/breadcrumb.examples.js.map +1 -1
- package/dist/test/navigation/index.d.ts +8 -0
- package/dist/test/navigation/index.d.ts.map +1 -0
- package/dist/test/navigation/index.js +8 -0
- package/dist/test/navigation/index.js.map +1 -0
- package/dist/test/navigation/nav-list.examples.d.ts.map +1 -1
- package/dist/test/navigation/nav-list.examples.js +58 -60
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/overlays/command-palette.examples.d.ts.map +1 -1
- package/dist/test/overlays/command-palette.examples.js +45 -47
- package/dist/test/overlays/command-palette.examples.js.map +1 -1
- package/dist/test/overlays/dialog.examples.d.ts.map +1 -1
- package/dist/test/overlays/dialog.examples.js +13 -41
- package/dist/test/overlays/dialog.examples.js.map +1 -1
- package/dist/test/overlays/drawer.examples.d.ts.map +1 -1
- package/dist/test/overlays/drawer.examples.js +15 -39
- package/dist/test/overlays/drawer.examples.js.map +1 -1
- package/dist/test/overlays/hover-card.examples.d.ts.map +1 -1
- package/dist/test/overlays/hover-card.examples.js +13 -32
- package/dist/test/overlays/hover-card.examples.js.map +1 -1
- package/dist/test/overlays/index.d.ts +2 -0
- package/dist/test/overlays/index.d.ts.map +1 -1
- package/dist/test/overlays/index.js +2 -0
- package/dist/test/overlays/index.js.map +1 -1
- package/dist/test/overlays/menu.examples.d.ts.map +1 -1
- package/dist/test/overlays/menu.examples.js +26 -21
- package/dist/test/overlays/menu.examples.js.map +1 -1
- package/dist/test/overlays/popover.examples.d.ts.map +1 -1
- package/dist/test/overlays/popover.examples.js +17 -33
- package/dist/test/overlays/popover.examples.js.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.d.ts.map +1 -1
- package/dist/test/overlays/toggle-tip.examples.js +9 -20
- package/dist/test/overlays/toggle-tip.examples.js.map +1 -1
- package/dist/test/overlays/tooltip.examples.d.ts.map +1 -1
- package/dist/test/overlays/tooltip.examples.js +8 -5
- package/dist/test/overlays/tooltip.examples.js.map +1 -1
- package/dist/test/platform/clipboard.examples.d.ts.map +1 -1
- package/dist/test/platform/clipboard.examples.js +10 -14
- package/dist/test/platform/clipboard.examples.js.map +1 -1
- package/dist/test/platform/download.examples.d.ts.map +1 -1
- package/dist/test/platform/download.examples.js +10 -11
- package/dist/test/platform/download.examples.js.map +1 -1
- package/dist/test/platform/index.d.ts +11 -0
- package/dist/test/platform/index.d.ts.map +1 -0
- package/dist/test/platform/index.js +11 -0
- package/dist/test/platform/index.js.map +1 -0
- package/dist/test/platform/share.examples.d.ts.map +1 -1
- package/dist/test/platform/share.examples.js +7 -6
- package/dist/test/platform/share.examples.js.map +1 -1
- package/dist/test/platform/slice.examples.d.ts.map +1 -1
- package/dist/test/platform/slice.examples.js +211 -214
- package/dist/test/platform/slice.examples.js.map +1 -1
- package/dist/test/platform/state.examples.d.ts.map +1 -1
- package/dist/test/platform/state.examples.js +7 -9
- package/dist/test/platform/state.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +10 -17
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +184 -483
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/dist/test/style.examples.d.ts.map +1 -1
- package/dist/test/style.examples.js +28 -74
- package/dist/test/style.examples.js.map +1 -1
- package/dist/test/typography/code-block.examples.d.ts.map +1 -1
- package/dist/test/typography/code-block.examples.js +16 -43
- package/dist/test/typography/code-block.examples.js.map +1 -1
- package/dist/test/typography/code.examples.d.ts.map +1 -1
- package/dist/test/typography/code.examples.js +14 -30
- package/dist/test/typography/code.examples.js.map +1 -1
- package/dist/test/typography/heading.examples.d.ts.map +1 -1
- package/dist/test/typography/heading.examples.js +15 -52
- package/dist/test/typography/heading.examples.js.map +1 -1
- package/dist/test/typography/highlight.examples.d.ts.map +1 -1
- package/dist/test/typography/highlight.examples.js +14 -16
- package/dist/test/typography/highlight.examples.js.map +1 -1
- package/dist/test/typography/index.d.ts +7 -4
- package/dist/test/typography/index.d.ts.map +1 -1
- package/dist/test/typography/index.js +7 -4
- package/dist/test/typography/index.js.map +1 -1
- package/dist/test/typography/link.examples.d.ts.map +1 -1
- package/dist/test/typography/link.examples.js +14 -30
- package/dist/test/typography/link.examples.js.map +1 -1
- package/dist/test/typography/list.examples.d.ts.map +1 -1
- package/dist/test/typography/list.examples.js +35 -79
- package/dist/test/typography/list.examples.js.map +1 -1
- package/dist/test/typography/mark.examples.d.ts.map +1 -1
- package/dist/test/typography/mark.examples.js +15 -33
- package/dist/test/typography/mark.examples.js.map +1 -1
- package/dist/test/typography/note.examples.d.ts.map +1 -1
- package/dist/test/typography/note.examples.js +8 -10
- package/dist/test/typography/note.examples.js.map +1 -1
- package/dist/test/typography/numeric.examples.d.ts.map +1 -1
- package/dist/test/typography/numeric.examples.js +10 -39
- package/dist/test/typography/numeric.examples.js.map +1 -1
- package/dist/test/typography/text.examples.d.ts.map +1 -1
- package/dist/test/typography/text.examples.js +25 -138
- package/dist/test/typography/text.examples.js.map +1 -1
- package/package.json +23 -15
- package/dist/src/charts/area/index.d.ts +0 -186
- package/dist/src/charts/area/index.d.ts.map +0 -1
- package/dist/src/charts/area/index.js +0 -419
- package/dist/src/charts/area/index.js.map +0 -1
- package/dist/src/charts/area/types.d.ts +0 -1816
- package/dist/src/charts/area/types.d.ts.map +0 -1
- package/dist/src/charts/area/types.js +0 -130
- package/dist/src/charts/area/types.js.map +0 -1
- package/dist/src/charts/bar/index.d.ts +0 -97
- package/dist/src/charts/bar/index.d.ts.map +0 -1
- package/dist/src/charts/bar/index.js +0 -228
- package/dist/src/charts/bar/index.js.map +0 -1
- package/dist/src/charts/bar/types.d.ts +0 -920
- package/dist/src/charts/bar/types.d.ts.map +0 -1
- package/dist/src/charts/bar/types.js +0 -62
- package/dist/src/charts/bar/types.js.map +0 -1
- package/dist/src/charts/composed/index.d.ts +0 -99
- package/dist/src/charts/composed/index.d.ts.map +0 -1
- package/dist/src/charts/composed/index.js +0 -317
- package/dist/src/charts/composed/index.js.map +0 -1
- package/dist/src/charts/composed/types.d.ts +0 -1246
- package/dist/src/charts/composed/types.d.ts.map +0 -1
- package/dist/src/charts/composed/types.js +0 -88
- package/dist/src/charts/composed/types.js.map +0 -1
- package/dist/src/charts/line/index.d.ts +0 -97
- package/dist/src/charts/line/index.d.ts.map +0 -1
- package/dist/src/charts/line/index.js +0 -221
- package/dist/src/charts/line/index.js.map +0 -1
- package/dist/src/charts/line/types.d.ts +0 -964
- package/dist/src/charts/line/types.d.ts.map +0 -1
- package/dist/src/charts/line/types.js +0 -95
- package/dist/src/charts/line/types.js.map +0 -1
- package/dist/src/charts/pie/index.d.ts +0 -36
- package/dist/src/charts/pie/index.d.ts.map +0 -1
- package/dist/src/charts/pie/index.js +0 -58
- package/dist/src/charts/pie/index.js.map +0 -1
- package/dist/src/charts/pie/types.d.ts +0 -129
- package/dist/src/charts/pie/types.d.ts.map +0 -1
- package/dist/src/charts/pie/types.js +0 -58
- package/dist/src/charts/pie/types.js.map +0 -1
- package/dist/src/charts/radar/index.d.ts +0 -44
- package/dist/src/charts/radar/index.d.ts.map +0 -1
- package/dist/src/charts/radar/index.js +0 -85
- package/dist/src/charts/radar/index.js.map +0 -1
- package/dist/src/charts/radar/types.d.ts +0 -144
- package/dist/src/charts/radar/types.d.ts.map +0 -1
- package/dist/src/charts/radar/types.js +0 -36
- package/dist/src/charts/radar/types.js.map +0 -1
- package/dist/src/charts/scatter/index.d.ts +0 -95
- package/dist/src/charts/scatter/index.d.ts.map +0 -1
- package/dist/src/charts/scatter/index.js +0 -167
- package/dist/src/charts/scatter/index.js.map +0 -1
- package/dist/src/charts/scatter/types.d.ts +0 -868
- package/dist/src/charts/scatter/types.d.ts.map +0 -1
- package/dist/src/charts/scatter/types.js +0 -55
- package/dist/src/charts/scatter/types.js.map +0 -1
- package/dist/src/charts/types.d.ts +0 -2476
- package/dist/src/charts/types.d.ts.map +0 -1
- package/dist/src/charts/types.js +0 -1732
- package/dist/src/charts/types.js.map +0 -1
- package/dist/src/forms/time-scale-control/index.d.ts +0 -54
- package/dist/src/forms/time-scale-control/index.d.ts.map +0 -1
- package/dist/src/forms/time-scale-control/index.js +0 -135
- package/dist/src/forms/time-scale-control/index.js.map +0 -1
- package/dist/src/forms/time-scale-control/types.d.ts +0 -206
- package/dist/src/forms/time-scale-control/types.d.ts.map +0 -1
- package/dist/src/forms/time-scale-control/types.js +0 -97
- package/dist/src/forms/time-scale-control/types.js.map +0 -1
- package/dist/src/layout/chip-rail/index.d.ts +0 -31771
- package/dist/src/layout/chip-rail/index.d.ts.map +0 -1
- package/dist/src/layout/chip-rail/index.js.map +0 -1
- package/dist/src/layout/chip-rail/types.d.ts.map +0 -1
- package/dist/src/layout/chip-rail/types.js.map +0 -1
- package/dist/src/slice/chart/index.d.ts +0 -201
- package/dist/src/slice/chart/index.d.ts.map +0 -1
- package/dist/src/slice/chart/index.js +0 -67
- package/dist/src/slice/chart/index.js.map +0 -1
- package/dist/src/slice/frame/index.d.ts +0 -77
- package/dist/src/slice/frame/index.d.ts.map +0 -1
- package/dist/src/slice/frame/index.js +0 -60
- package/dist/src/slice/frame/index.js.map +0 -1
- package/dist/test/charts/area.examples.d.ts +0 -30
- package/dist/test/charts/area.examples.d.ts.map +0 -1
- package/dist/test/charts/area.examples.js +0 -695
- package/dist/test/charts/area.examples.js.map +0 -1
- package/dist/test/charts/bar.examples.d.ts +0 -26
- package/dist/test/charts/bar.examples.d.ts.map +0 -1
- package/dist/test/charts/bar.examples.js +0 -561
- package/dist/test/charts/bar.examples.js.map +0 -1
- package/dist/test/charts/composed.examples.d.ts +0 -25
- package/dist/test/charts/composed.examples.d.ts.map +0 -1
- package/dist/test/charts/composed.examples.js +0 -616
- package/dist/test/charts/composed.examples.js.map +0 -1
- package/dist/test/charts/line.examples.d.ts +0 -29
- package/dist/test/charts/line.examples.d.ts.map +0 -1
- package/dist/test/charts/line.examples.js +0 -657
- package/dist/test/charts/line.examples.js.map +0 -1
- package/dist/test/charts/pie.examples.d.ts +0 -12
- package/dist/test/charts/pie.examples.d.ts.map +0 -1
- package/dist/test/charts/pie.examples.js +0 -137
- package/dist/test/charts/pie.examples.js.map +0 -1
- package/dist/test/charts/radar.examples.d.ts +0 -10
- package/dist/test/charts/radar.examples.d.ts.map +0 -1
- package/dist/test/charts/radar.examples.js +0 -123
- package/dist/test/charts/radar.examples.js.map +0 -1
- package/dist/test/charts/scatter.examples.d.ts +0 -22
- package/dist/test/charts/scatter.examples.d.ts.map +0 -1
- package/dist/test/charts/scatter.examples.js +0 -461
- package/dist/test/charts/scatter.examples.js.map +0 -1
- package/dist/test/forms/time-scale-control.examples.d.ts +0 -6
- package/dist/test/forms/time-scale-control.examples.d.ts.map +0 -1
- package/dist/test/forms/time-scale-control.examples.js +0 -70
- package/dist/test/forms/time-scale-control.examples.js.map +0 -1
- package/dist/test/layout/chip-rail.examples.d.ts +0 -4
- package/dist/test/layout/chip-rail.examples.d.ts.map +0 -1
- package/dist/test/layout/chip-rail.examples.js +0 -48
- package/dist/test/layout/chip-rail.examples.js.map +0 -1
package/dist/src/charts/types.js
DELETED
|
@@ -1,1732 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Shared types for Chart components.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* These types are shared across multiple chart components (Area, Bar, Line, etc.)
|
|
10
|
-
* and provide common configuration options for series, axes, and styling.
|
|
11
|
-
*
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
|
-
import { OptionType, StructType, ArrayType, DictType, StringType, FloatType, BooleanType, VariantType, NullType, IntegerType, LiteralValueType, variant, some, none, East, Expr, } from "@elaraai/east";
|
|
15
|
-
// ============================================================================
|
|
16
|
-
// Y-Axis ID Type (for dual y-axis charts)
|
|
17
|
-
// ============================================================================
|
|
18
|
-
/**
|
|
19
|
-
* Y-axis identifier for dual y-axis charts.
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* Used to bind series to either the primary (left) or secondary (right) y-axis.
|
|
23
|
-
*
|
|
24
|
-
* @property left - Bind to primary y-axis (yAxis, left side)
|
|
25
|
-
* @property right - Bind to secondary y-axis (yAxis2, right side)
|
|
26
|
-
*/
|
|
27
|
-
export const YAxisIdType = VariantType({
|
|
28
|
-
left: NullType,
|
|
29
|
-
right: NullType,
|
|
30
|
-
});
|
|
31
|
-
// ============================================================================
|
|
32
|
-
// Chart Series Type
|
|
33
|
-
// ============================================================================
|
|
34
|
-
/**
|
|
35
|
-
* Series configuration for multi-series charts.
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* Mirrors Chakra's useChart series config. Each series represents a data
|
|
39
|
-
* dimension to be visualized (e.g., "revenue", "profit").
|
|
40
|
-
*
|
|
41
|
-
* @property name - Data key name (matches keys in data points)
|
|
42
|
-
* @property color - Chakra color token (e.g., "teal.solid", "blue.500")
|
|
43
|
-
* @property stackId - Stack group ID (same stackId = stacked together)
|
|
44
|
-
* @property label - Display label (defaults to name)
|
|
45
|
-
* @property stroke - Stroke/line color (defaults to color)
|
|
46
|
-
* @property strokeWidth - Stroke/line width in pixels
|
|
47
|
-
* @property fill - Fill color (defaults to color)
|
|
48
|
-
* @property fillOpacity - Fill opacity (0-1)
|
|
49
|
-
* @property strokeDasharray - Dash pattern for dashed lines (e.g., "5 5")
|
|
50
|
-
* @property yAxisId - Y-axis binding (left = primary yAxis, right = secondary yAxis2)
|
|
51
|
-
* @property layerIndex - Rendering order (higher = rendered on top)
|
|
52
|
-
*/
|
|
53
|
-
export const ChartSeriesType = StructType({
|
|
54
|
-
name: StringType,
|
|
55
|
-
dataKey: OptionType(StringType),
|
|
56
|
-
color: OptionType(StringType),
|
|
57
|
-
stackId: OptionType(StringType),
|
|
58
|
-
label: OptionType(StringType),
|
|
59
|
-
stroke: OptionType(StringType),
|
|
60
|
-
strokeWidth: OptionType(IntegerType),
|
|
61
|
-
fill: OptionType(StringType),
|
|
62
|
-
fillOpacity: OptionType(FloatType),
|
|
63
|
-
strokeDasharray: OptionType(StringType),
|
|
64
|
-
yAxisId: OptionType(YAxisIdType),
|
|
65
|
-
pivotColors: OptionType(DictType(StringType, StringType)),
|
|
66
|
-
layerIndex: OptionType(IntegerType),
|
|
67
|
-
});
|
|
68
|
-
export function ChartSeries(series) {
|
|
69
|
-
const yAxisIdValue = series.yAxisId !== undefined
|
|
70
|
-
? (typeof series.yAxisId === "string"
|
|
71
|
-
? some(East.value(variant(series.yAxisId, null), YAxisIdType))
|
|
72
|
-
: some(series.yAxisId))
|
|
73
|
-
: none;
|
|
74
|
-
const pivotColorsValue = series.pivotColors !== undefined
|
|
75
|
-
? some(series.pivotColors)
|
|
76
|
-
: none;
|
|
77
|
-
return East.value({
|
|
78
|
-
name: series.name,
|
|
79
|
-
dataKey: some(series.name), // dataKey defaults to series name
|
|
80
|
-
color: series.color !== undefined ? some(series.color) : none,
|
|
81
|
-
stackId: series.stackId !== undefined ? some(series.stackId) : none,
|
|
82
|
-
label: series.label !== undefined ? some(series.label) : none,
|
|
83
|
-
stroke: series.stroke !== undefined ? some(series.stroke) : none,
|
|
84
|
-
strokeWidth: series.strokeWidth !== undefined ? some(series.strokeWidth) : none,
|
|
85
|
-
fill: series.fill !== undefined ? some(series.fill) : none,
|
|
86
|
-
fillOpacity: series.fillOpacity !== undefined ? some(series.fillOpacity) : none,
|
|
87
|
-
strokeDasharray: series.strokeDasharray !== undefined ? some(series.strokeDasharray) : none,
|
|
88
|
-
yAxisId: yAxisIdValue,
|
|
89
|
-
pivotColors: pivotColorsValue,
|
|
90
|
-
layerIndex: series.layerIndex !== undefined ? some(series.layerIndex) : none,
|
|
91
|
-
}, ChartSeriesType);
|
|
92
|
-
}
|
|
93
|
-
// ============================================================================
|
|
94
|
-
// Sort Direction Type
|
|
95
|
-
// ============================================================================
|
|
96
|
-
/**
|
|
97
|
-
* Sort direction for BarList and BarSegment sorting.
|
|
98
|
-
*
|
|
99
|
-
* @property asc - Ascending order (smallest to largest)
|
|
100
|
-
* @property desc - Descending order (largest to smallest)
|
|
101
|
-
*/
|
|
102
|
-
export const ChartSortDirectionType = VariantType({
|
|
103
|
-
asc: NullType,
|
|
104
|
-
desc: NullType,
|
|
105
|
-
});
|
|
106
|
-
// ============================================================================
|
|
107
|
-
// Sort Type
|
|
108
|
-
// ============================================================================
|
|
109
|
-
/**
|
|
110
|
-
* Sort configuration for BarList and BarSegment.
|
|
111
|
-
*
|
|
112
|
-
* @property by - Data key to sort by
|
|
113
|
-
* @property direction - Sort direction (asc or desc)
|
|
114
|
-
*/
|
|
115
|
-
export const ChartSortType = StructType({
|
|
116
|
-
by: StringType,
|
|
117
|
-
direction: ChartSortDirectionType,
|
|
118
|
-
});
|
|
119
|
-
export function ChartSort(sort) {
|
|
120
|
-
return East.value({
|
|
121
|
-
by: sort.by,
|
|
122
|
-
direction: typeof sort.direction === "string"
|
|
123
|
-
? variant(sort.direction, null)
|
|
124
|
-
: sort.direction,
|
|
125
|
-
}, ChartSortType);
|
|
126
|
-
}
|
|
127
|
-
// ============================================================================
|
|
128
|
-
// Tick Format Supporting Types
|
|
129
|
-
// ============================================================================
|
|
130
|
-
/**
|
|
131
|
-
* Compact display style for number formatting.
|
|
132
|
-
*
|
|
133
|
-
* @property short - Short notation (1K, 1M, 1B)
|
|
134
|
-
* @property long - Long notation (1 thousand, 1 million)
|
|
135
|
-
*/
|
|
136
|
-
export const CompactDisplayType = VariantType({
|
|
137
|
-
short: NullType,
|
|
138
|
-
long: NullType,
|
|
139
|
-
});
|
|
140
|
-
/**
|
|
141
|
-
* Currency display style.
|
|
142
|
-
*
|
|
143
|
-
* @property code - ISO code (USD, EUR)
|
|
144
|
-
* @property symbol - Currency symbol ($, €)
|
|
145
|
-
* @property narrowSymbol - Narrow symbol variant
|
|
146
|
-
* @property name - Full name (US dollars)
|
|
147
|
-
*/
|
|
148
|
-
export const CurrencyDisplayType = VariantType({
|
|
149
|
-
code: NullType,
|
|
150
|
-
symbol: NullType,
|
|
151
|
-
narrowSymbol: NullType,
|
|
152
|
-
name: NullType,
|
|
153
|
-
});
|
|
154
|
-
/**
|
|
155
|
-
* Unit display style.
|
|
156
|
-
*
|
|
157
|
-
* @property short - Short form (16 l)
|
|
158
|
-
* @property narrow - Narrow form (16l)
|
|
159
|
-
* @property long - Long form (16 liters)
|
|
160
|
-
*/
|
|
161
|
-
export const UnitDisplayType = VariantType({
|
|
162
|
-
short: NullType,
|
|
163
|
-
narrow: NullType,
|
|
164
|
-
long: NullType,
|
|
165
|
-
});
|
|
166
|
-
/**
|
|
167
|
-
* Sign display style for numbers.
|
|
168
|
-
*
|
|
169
|
-
* @property auto - Sign for negative only (default)
|
|
170
|
-
* @property never - Never show sign
|
|
171
|
-
* @property always - Always show sign
|
|
172
|
-
* @property exceptZero - Show sign except for zero
|
|
173
|
-
*/
|
|
174
|
-
export const SignDisplayType = VariantType({
|
|
175
|
-
auto: NullType,
|
|
176
|
-
never: NullType,
|
|
177
|
-
always: NullType,
|
|
178
|
-
exceptZero: NullType,
|
|
179
|
-
});
|
|
180
|
-
/**
|
|
181
|
-
* Date/time style for Intl.DateTimeFormat.
|
|
182
|
-
*
|
|
183
|
-
* @property full - Full format (Wednesday, March 15, 2024)
|
|
184
|
-
* @property long - Long format (March 15, 2024)
|
|
185
|
-
* @property medium - Medium format (Mar 15, 2024)
|
|
186
|
-
* @property short - Short format (3/15/24)
|
|
187
|
-
*/
|
|
188
|
-
export const DateTimeStyleType = VariantType({
|
|
189
|
-
full: NullType,
|
|
190
|
-
long: NullType,
|
|
191
|
-
medium: NullType,
|
|
192
|
-
short: NullType,
|
|
193
|
-
});
|
|
194
|
-
/**
|
|
195
|
-
* ISO 4217 currency codes.
|
|
196
|
-
*
|
|
197
|
-
* @remarks
|
|
198
|
-
* Common currencies supported by Intl.NumberFormat.
|
|
199
|
-
*
|
|
200
|
-
* Major currencies:
|
|
201
|
-
* @property USD - US Dollar
|
|
202
|
-
* @property EUR - Euro
|
|
203
|
-
* @property GBP - British Pound
|
|
204
|
-
* @property JPY - Japanese Yen
|
|
205
|
-
* @property CHF - Swiss Franc
|
|
206
|
-
* @property CAD - Canadian Dollar
|
|
207
|
-
* @property AUD - Australian Dollar
|
|
208
|
-
* @property NZD - New Zealand Dollar
|
|
209
|
-
*
|
|
210
|
-
* Asian currencies:
|
|
211
|
-
* @property CNY - Chinese Yuan
|
|
212
|
-
* @property HKD - Hong Kong Dollar
|
|
213
|
-
* @property SGD - Singapore Dollar
|
|
214
|
-
* @property KRW - South Korean Won
|
|
215
|
-
* @property INR - Indian Rupee
|
|
216
|
-
* @property TWD - Taiwan Dollar
|
|
217
|
-
* @property THB - Thai Baht
|
|
218
|
-
* @property MYR - Malaysian Ringgit
|
|
219
|
-
* @property IDR - Indonesian Rupiah
|
|
220
|
-
* @property PHP - Philippine Peso
|
|
221
|
-
* @property VND - Vietnamese Dong
|
|
222
|
-
*
|
|
223
|
-
* European currencies:
|
|
224
|
-
* @property SEK - Swedish Krona
|
|
225
|
-
* @property NOK - Norwegian Krone
|
|
226
|
-
* @property DKK - Danish Krone
|
|
227
|
-
* @property PLN - Polish Zloty
|
|
228
|
-
* @property CZK - Czech Koruna
|
|
229
|
-
* @property HUF - Hungarian Forint
|
|
230
|
-
* @property RUB - Russian Ruble
|
|
231
|
-
* @property UAH - Ukrainian Hryvnia
|
|
232
|
-
* @property RON - Romanian Leu
|
|
233
|
-
*
|
|
234
|
-
* Americas currencies:
|
|
235
|
-
* @property MXN - Mexican Peso
|
|
236
|
-
* @property BRL - Brazilian Real
|
|
237
|
-
* @property ARS - Argentine Peso
|
|
238
|
-
* @property CLP - Chilean Peso
|
|
239
|
-
* @property COP - Colombian Peso
|
|
240
|
-
* @property PEN - Peruvian Sol
|
|
241
|
-
*
|
|
242
|
-
* Middle East/Africa currencies:
|
|
243
|
-
* @property AED - UAE Dirham
|
|
244
|
-
* @property SAR - Saudi Riyal
|
|
245
|
-
* @property ILS - Israeli Shekel
|
|
246
|
-
* @property ZAR - South African Rand
|
|
247
|
-
* @property TRY - Turkish Lira
|
|
248
|
-
* @property EGP - Egyptian Pound
|
|
249
|
-
* @property NGN - Nigerian Naira
|
|
250
|
-
* @property KES - Kenyan Shilling
|
|
251
|
-
*/
|
|
252
|
-
export const CurrencyCodeType = VariantType({
|
|
253
|
-
// Major
|
|
254
|
-
USD: NullType,
|
|
255
|
-
EUR: NullType,
|
|
256
|
-
GBP: NullType,
|
|
257
|
-
JPY: NullType,
|
|
258
|
-
CHF: NullType,
|
|
259
|
-
CAD: NullType,
|
|
260
|
-
AUD: NullType,
|
|
261
|
-
NZD: NullType,
|
|
262
|
-
// Asia
|
|
263
|
-
CNY: NullType,
|
|
264
|
-
HKD: NullType,
|
|
265
|
-
SGD: NullType,
|
|
266
|
-
KRW: NullType,
|
|
267
|
-
INR: NullType,
|
|
268
|
-
TWD: NullType,
|
|
269
|
-
THB: NullType,
|
|
270
|
-
MYR: NullType,
|
|
271
|
-
IDR: NullType,
|
|
272
|
-
PHP: NullType,
|
|
273
|
-
VND: NullType,
|
|
274
|
-
// Europe
|
|
275
|
-
SEK: NullType,
|
|
276
|
-
NOK: NullType,
|
|
277
|
-
DKK: NullType,
|
|
278
|
-
PLN: NullType,
|
|
279
|
-
CZK: NullType,
|
|
280
|
-
HUF: NullType,
|
|
281
|
-
RUB: NullType,
|
|
282
|
-
UAH: NullType,
|
|
283
|
-
RON: NullType,
|
|
284
|
-
// Americas
|
|
285
|
-
MXN: NullType,
|
|
286
|
-
BRL: NullType,
|
|
287
|
-
ARS: NullType,
|
|
288
|
-
CLP: NullType,
|
|
289
|
-
COP: NullType,
|
|
290
|
-
PEN: NullType,
|
|
291
|
-
// Middle East/Africa
|
|
292
|
-
AED: NullType,
|
|
293
|
-
SAR: NullType,
|
|
294
|
-
ILS: NullType,
|
|
295
|
-
ZAR: NullType,
|
|
296
|
-
TRY: NullType,
|
|
297
|
-
EGP: NullType,
|
|
298
|
-
NGN: NullType,
|
|
299
|
-
KES: NullType,
|
|
300
|
-
});
|
|
301
|
-
/**
|
|
302
|
-
* Unit types supported by Intl.NumberFormat.
|
|
303
|
-
*
|
|
304
|
-
* @remarks
|
|
305
|
-
* Standard units from the CLDR specification.
|
|
306
|
-
*
|
|
307
|
-
* Digital/Data:
|
|
308
|
-
* @property bit - Bits
|
|
309
|
-
* @property byte - Bytes
|
|
310
|
-
* @property kilobit - Kilobits
|
|
311
|
-
* @property kilobyte - Kilobytes
|
|
312
|
-
* @property megabit - Megabits
|
|
313
|
-
* @property megabyte - Megabytes
|
|
314
|
-
* @property gigabit - Gigabits
|
|
315
|
-
* @property gigabyte - Gigabytes
|
|
316
|
-
* @property terabit - Terabits
|
|
317
|
-
* @property terabyte - Terabytes
|
|
318
|
-
* @property petabyte - Petabytes
|
|
319
|
-
*
|
|
320
|
-
* Duration:
|
|
321
|
-
* @property nanosecond - Nanoseconds
|
|
322
|
-
* @property microsecond - Microseconds
|
|
323
|
-
* @property millisecond - Milliseconds
|
|
324
|
-
* @property second - Seconds
|
|
325
|
-
* @property minute - Minutes
|
|
326
|
-
* @property hour - Hours
|
|
327
|
-
* @property day - Days
|
|
328
|
-
* @property week - Weeks
|
|
329
|
-
* @property month - Months
|
|
330
|
-
* @property year - Years
|
|
331
|
-
*
|
|
332
|
-
* Length:
|
|
333
|
-
* @property millimeter - Millimeters
|
|
334
|
-
* @property centimeter - Centimeters
|
|
335
|
-
* @property meter - Meters
|
|
336
|
-
* @property kilometer - Kilometers
|
|
337
|
-
* @property inch - Inches
|
|
338
|
-
* @property foot - Feet
|
|
339
|
-
* @property yard - Yards
|
|
340
|
-
* @property mile - Miles
|
|
341
|
-
*
|
|
342
|
-
* Mass:
|
|
343
|
-
* @property gram - Grams
|
|
344
|
-
* @property kilogram - Kilograms
|
|
345
|
-
* @property milligram - Milligrams
|
|
346
|
-
* @property ounce - Ounces
|
|
347
|
-
* @property pound - Pounds
|
|
348
|
-
* @property stone - Stones
|
|
349
|
-
*
|
|
350
|
-
* Temperature:
|
|
351
|
-
* @property celsius - Celsius
|
|
352
|
-
* @property fahrenheit - Fahrenheit
|
|
353
|
-
*
|
|
354
|
-
* Volume:
|
|
355
|
-
* @property milliliter - Milliliters
|
|
356
|
-
* @property liter - Liters
|
|
357
|
-
* @property gallon - Gallons
|
|
358
|
-
* @property fluidOunce - Fluid ounces
|
|
359
|
-
*
|
|
360
|
-
* Area:
|
|
361
|
-
* @property acre - Acres
|
|
362
|
-
* @property hectare - Hectares
|
|
363
|
-
*
|
|
364
|
-
* Speed:
|
|
365
|
-
* @property meterPerSecond - Meters per second
|
|
366
|
-
* @property kilometerPerHour - Kilometers per hour
|
|
367
|
-
* @property milePerHour - Miles per hour
|
|
368
|
-
*
|
|
369
|
-
* Other:
|
|
370
|
-
* @property percent - Percentage
|
|
371
|
-
* @property degree - Degrees (angle)
|
|
372
|
-
*/
|
|
373
|
-
export const UnitType = VariantType({
|
|
374
|
-
// Digital
|
|
375
|
-
bit: NullType,
|
|
376
|
-
byte: NullType,
|
|
377
|
-
kilobit: NullType,
|
|
378
|
-
kilobyte: NullType,
|
|
379
|
-
megabit: NullType,
|
|
380
|
-
megabyte: NullType,
|
|
381
|
-
gigabit: NullType,
|
|
382
|
-
gigabyte: NullType,
|
|
383
|
-
terabit: NullType,
|
|
384
|
-
terabyte: NullType,
|
|
385
|
-
petabyte: NullType,
|
|
386
|
-
// Duration
|
|
387
|
-
nanosecond: NullType,
|
|
388
|
-
microsecond: NullType,
|
|
389
|
-
millisecond: NullType,
|
|
390
|
-
second: NullType,
|
|
391
|
-
minute: NullType,
|
|
392
|
-
hour: NullType,
|
|
393
|
-
day: NullType,
|
|
394
|
-
week: NullType,
|
|
395
|
-
month: NullType,
|
|
396
|
-
year: NullType,
|
|
397
|
-
// Length
|
|
398
|
-
millimeter: NullType,
|
|
399
|
-
centimeter: NullType,
|
|
400
|
-
meter: NullType,
|
|
401
|
-
kilometer: NullType,
|
|
402
|
-
inch: NullType,
|
|
403
|
-
foot: NullType,
|
|
404
|
-
yard: NullType,
|
|
405
|
-
mile: NullType,
|
|
406
|
-
// Mass
|
|
407
|
-
gram: NullType,
|
|
408
|
-
kilogram: NullType,
|
|
409
|
-
milligram: NullType,
|
|
410
|
-
ounce: NullType,
|
|
411
|
-
pound: NullType,
|
|
412
|
-
stone: NullType,
|
|
413
|
-
// Temperature
|
|
414
|
-
celsius: NullType,
|
|
415
|
-
fahrenheit: NullType,
|
|
416
|
-
// Volume
|
|
417
|
-
milliliter: NullType,
|
|
418
|
-
liter: NullType,
|
|
419
|
-
gallon: NullType,
|
|
420
|
-
fluidOunce: NullType,
|
|
421
|
-
// Area
|
|
422
|
-
acre: NullType,
|
|
423
|
-
hectare: NullType,
|
|
424
|
-
// Speed
|
|
425
|
-
meterPerSecond: NullType,
|
|
426
|
-
kilometerPerHour: NullType,
|
|
427
|
-
milePerHour: NullType,
|
|
428
|
-
// Other
|
|
429
|
-
percent: NullType,
|
|
430
|
-
degree: NullType,
|
|
431
|
-
});
|
|
432
|
-
// ============================================================================
|
|
433
|
-
// Tick Format Type
|
|
434
|
-
// ============================================================================
|
|
435
|
-
/**
|
|
436
|
-
* Number format configuration.
|
|
437
|
-
*
|
|
438
|
-
* @property minimumFractionDigits - Minimum decimal places
|
|
439
|
-
* @property maximumFractionDigits - Maximum decimal places
|
|
440
|
-
* @property signDisplay - How to display sign
|
|
441
|
-
*/
|
|
442
|
-
export const NumberFormatType = StructType({
|
|
443
|
-
minimumFractionDigits: OptionType(IntegerType),
|
|
444
|
-
maximumFractionDigits: OptionType(IntegerType),
|
|
445
|
-
signDisplay: OptionType(SignDisplayType),
|
|
446
|
-
});
|
|
447
|
-
/**
|
|
448
|
-
* Currency format configuration.
|
|
449
|
-
*
|
|
450
|
-
* @property currency - ISO 4217 currency code
|
|
451
|
-
* @property display - How to display the currency
|
|
452
|
-
* @property compact - Use compact notation (e.g., $1K instead of $1,000)
|
|
453
|
-
* @property minimumFractionDigits - Minimum decimal places
|
|
454
|
-
* @property maximumFractionDigits - Maximum decimal places
|
|
455
|
-
*/
|
|
456
|
-
export const CurrencyFormatType = StructType({
|
|
457
|
-
currency: CurrencyCodeType,
|
|
458
|
-
display: OptionType(CurrencyDisplayType),
|
|
459
|
-
compact: OptionType(CompactDisplayType),
|
|
460
|
-
minimumFractionDigits: OptionType(IntegerType),
|
|
461
|
-
maximumFractionDigits: OptionType(IntegerType),
|
|
462
|
-
});
|
|
463
|
-
/**
|
|
464
|
-
* Percent format configuration.
|
|
465
|
-
*
|
|
466
|
-
* @property minimumFractionDigits - Minimum decimal places
|
|
467
|
-
* @property maximumFractionDigits - Maximum decimal places
|
|
468
|
-
* @property signDisplay - How to display sign
|
|
469
|
-
*/
|
|
470
|
-
export const PercentFormatType = StructType({
|
|
471
|
-
minimumFractionDigits: OptionType(IntegerType),
|
|
472
|
-
maximumFractionDigits: OptionType(IntegerType),
|
|
473
|
-
signDisplay: OptionType(SignDisplayType),
|
|
474
|
-
});
|
|
475
|
-
/**
|
|
476
|
-
* Compact notation format configuration.
|
|
477
|
-
*
|
|
478
|
-
* @property display - Short (1K) or long (1 thousand)
|
|
479
|
-
*/
|
|
480
|
-
export const CompactFormatType = StructType({
|
|
481
|
-
display: OptionType(CompactDisplayType),
|
|
482
|
-
});
|
|
483
|
-
/**
|
|
484
|
-
* Unit format configuration.
|
|
485
|
-
*
|
|
486
|
-
* @property unit - The unit to format
|
|
487
|
-
* @property display - How to display the unit
|
|
488
|
-
*/
|
|
489
|
-
export const UnitFormatType = StructType({
|
|
490
|
-
unit: UnitType,
|
|
491
|
-
display: OptionType(UnitDisplayType),
|
|
492
|
-
});
|
|
493
|
-
/**
|
|
494
|
-
* Date format configuration using East format strings.
|
|
495
|
-
*
|
|
496
|
-
* @property format - East datetime format string (e.g., "YYYY-MM-DD", "MMM D, YYYY")
|
|
497
|
-
*
|
|
498
|
-
* @remarks
|
|
499
|
-
* Format codes:
|
|
500
|
-
* - YYYY: 4-digit year
|
|
501
|
-
* - YY: 2-digit year
|
|
502
|
-
* - MMMM: Full month name (January)
|
|
503
|
-
* - MMM: Short month name (Jan)
|
|
504
|
-
* - MM: 2-digit month (01-12)
|
|
505
|
-
* - M: Month (1-12)
|
|
506
|
-
* - DD: 2-digit day (01-31)
|
|
507
|
-
* - D: Day (1-31)
|
|
508
|
-
* - dddd: Full weekday (Sunday)
|
|
509
|
-
* - ddd: Short weekday (Sun)
|
|
510
|
-
* - dd: Min weekday (Su)
|
|
511
|
-
*/
|
|
512
|
-
export const DateFormatType = StructType({
|
|
513
|
-
format: StringType,
|
|
514
|
-
});
|
|
515
|
-
/**
|
|
516
|
-
* Time format configuration using East format strings.
|
|
517
|
-
*
|
|
518
|
-
* @property format - East datetime format string (e.g., "HH:mm:ss", "h:mm A")
|
|
519
|
-
*
|
|
520
|
-
* @remarks
|
|
521
|
-
* Format codes:
|
|
522
|
-
* - HH: 24-hour with zero-pad (00-23)
|
|
523
|
-
* - H: 24-hour (0-23)
|
|
524
|
-
* - hh: 12-hour with zero-pad (01-12)
|
|
525
|
-
* - h: 12-hour (1-12)
|
|
526
|
-
* - mm: Minutes with zero-pad (00-59)
|
|
527
|
-
* - m: Minutes (0-59)
|
|
528
|
-
* - ss: Seconds with zero-pad (00-59)
|
|
529
|
-
* - s: Seconds (0-59)
|
|
530
|
-
* - SSS: Milliseconds (000-999)
|
|
531
|
-
* - A: AM/PM uppercase
|
|
532
|
-
* - a: am/pm lowercase
|
|
533
|
-
*/
|
|
534
|
-
export const TimeFormatType = StructType({
|
|
535
|
-
format: StringType,
|
|
536
|
-
});
|
|
537
|
-
/**
|
|
538
|
-
* DateTime format configuration using East format strings.
|
|
539
|
-
*
|
|
540
|
-
* @property format - East datetime format string (e.g., "YYYY-MM-DD HH:mm:ss")
|
|
541
|
-
*
|
|
542
|
-
* @remarks
|
|
543
|
-
* Combines date and time format codes. See DateFormatType and TimeFormatType for available codes.
|
|
544
|
-
*/
|
|
545
|
-
export const DateTimeFormatType = StructType({
|
|
546
|
-
format: StringType,
|
|
547
|
-
});
|
|
548
|
-
/**
|
|
549
|
-
* Tick format for axis values.
|
|
550
|
-
*
|
|
551
|
-
* @remarks
|
|
552
|
-
* Comprehensive formatting options based on Intl.NumberFormat and Intl.DateTimeFormat.
|
|
553
|
-
* Each variant contains configuration specific to that format type.
|
|
554
|
-
*
|
|
555
|
-
* Number formats:
|
|
556
|
-
* @property number - Plain number with optional decimal/sign configuration
|
|
557
|
-
* @property currency - Currency format with code and display options
|
|
558
|
-
* @property percent - Percentage with decimal configuration
|
|
559
|
-
* @property compact - Compact notation (1K, 1M) with short/long display
|
|
560
|
-
* @property unit - Unit formatting (bytes, meters, etc.)
|
|
561
|
-
* @property scientific - Scientific notation (1.23e+4)
|
|
562
|
-
* @property engineering - Engineering notation (12.3e+3)
|
|
563
|
-
*
|
|
564
|
-
* Date/Time formats:
|
|
565
|
-
* @property date - Date formatting with style
|
|
566
|
-
* @property time - Time formatting with style and 12/24 hour
|
|
567
|
-
* @property datetime - Combined date and time
|
|
568
|
-
*/
|
|
569
|
-
export const TickFormatType = VariantType({
|
|
570
|
-
// Number formats
|
|
571
|
-
number: NumberFormatType,
|
|
572
|
-
currency: CurrencyFormatType,
|
|
573
|
-
percent: PercentFormatType,
|
|
574
|
-
compact: CompactFormatType,
|
|
575
|
-
unit: UnitFormatType,
|
|
576
|
-
scientific: NullType,
|
|
577
|
-
engineering: NullType,
|
|
578
|
-
// Date/Time formats
|
|
579
|
-
date: DateFormatType,
|
|
580
|
-
time: TimeFormatType,
|
|
581
|
-
datetime: DateTimeFormatType,
|
|
582
|
-
});
|
|
583
|
-
// ============================================================================
|
|
584
|
-
// Tick Format Helper Functions
|
|
585
|
-
// ============================================================================
|
|
586
|
-
/**
|
|
587
|
-
* Creates a number tick format for axis values.
|
|
588
|
-
*
|
|
589
|
-
* @param format - Optional configuration for number formatting
|
|
590
|
-
* @param format.minimumFractionDigits - Minimum number of decimal places to display
|
|
591
|
-
* @param format.maximumFractionDigits - Maximum number of decimal places to display
|
|
592
|
-
* @param format.signDisplay - How to display the sign: "auto" (negative only), "never", "always", or "exceptZero"
|
|
593
|
-
* @returns An East expression representing the number tick format
|
|
594
|
-
*
|
|
595
|
-
* @remarks
|
|
596
|
-
* Uses Intl.NumberFormat under the hood. When called without arguments,
|
|
597
|
-
* uses default number formatting.
|
|
598
|
-
*
|
|
599
|
-
* @example
|
|
600
|
-
* ```ts
|
|
601
|
-
* // Default number format
|
|
602
|
-
* Chart.Axis({ tickFormat: TickFormat.Number() })
|
|
603
|
-
*
|
|
604
|
-
* // Fixed 2 decimal places
|
|
605
|
-
* Chart.Axis({ tickFormat: TickFormat.Number({ minimumFractionDigits: 2n, maximumFractionDigits: 2n }) })
|
|
606
|
-
*
|
|
607
|
-
* // Always show sign (+/-)
|
|
608
|
-
* Chart.Axis({ tickFormat: TickFormat.Number({ signDisplay: "always" }) })
|
|
609
|
-
* ```
|
|
610
|
-
*/
|
|
611
|
-
export function NumberTickFormat(format) {
|
|
612
|
-
return East.value(variant("number", {
|
|
613
|
-
minimumFractionDigits: format?.minimumFractionDigits !== undefined
|
|
614
|
-
? some(format.minimumFractionDigits) : none,
|
|
615
|
-
maximumFractionDigits: format?.maximumFractionDigits !== undefined
|
|
616
|
-
? some(format.maximumFractionDigits) : none,
|
|
617
|
-
signDisplay: format?.signDisplay !== undefined
|
|
618
|
-
? some(typeof format.signDisplay === "string" ? variant(format.signDisplay, null) : format.signDisplay)
|
|
619
|
-
: none,
|
|
620
|
-
}), TickFormatType);
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* Creates a currency tick format for axis values.
|
|
624
|
-
*
|
|
625
|
-
* @param format - Configuration for currency formatting (required)
|
|
626
|
-
* @param format.currency - ISO 4217 currency code (e.g., "USD", "EUR", "GBP", "JPY")
|
|
627
|
-
* @param format.display - How to display the currency: "symbol" ($), "narrowSymbol", "code" (USD), or "name" (US Dollar)
|
|
628
|
-
* @param format.minimumFractionDigits - Minimum decimal places (default varies by currency)
|
|
629
|
-
* @param format.maximumFractionDigits - Maximum decimal places
|
|
630
|
-
* @returns An East expression representing the currency tick format
|
|
631
|
-
*
|
|
632
|
-
* @remarks
|
|
633
|
-
* Uses Intl.NumberFormat with style "currency". The currency parameter is required
|
|
634
|
-
* as there is no sensible default. Supports 40+ common ISO 4217 currency codes.
|
|
635
|
-
*
|
|
636
|
-
* @example
|
|
637
|
-
* ```ts
|
|
638
|
-
* // US Dollars with symbol ($1,234.56)
|
|
639
|
-
* Chart.Axis({ tickFormat: TickFormat.Currency({ currency: "USD" }) })
|
|
640
|
-
*
|
|
641
|
-
* // Euros with currency code (EUR 1.234,56)
|
|
642
|
-
* Chart.Axis({ tickFormat: TickFormat.Currency({ currency: "EUR", display: "code" }) })
|
|
643
|
-
*
|
|
644
|
-
* // Japanese Yen with no decimals (¥1,235)
|
|
645
|
-
* Chart.Axis({ tickFormat: TickFormat.Currency({ currency: "JPY", maximumFractionDigits: 0n }) })
|
|
646
|
-
* ```
|
|
647
|
-
*/
|
|
648
|
-
export function CurrencyTickFormat(format) {
|
|
649
|
-
const currencyValue = typeof format.currency === "string"
|
|
650
|
-
? East.value(variant(format.currency, null), CurrencyCodeType)
|
|
651
|
-
: format.currency;
|
|
652
|
-
const displayValue = format.display !== undefined
|
|
653
|
-
? (typeof format.display === "string"
|
|
654
|
-
? East.value(variant(format.display, null), CurrencyDisplayType)
|
|
655
|
-
: format.display)
|
|
656
|
-
: undefined;
|
|
657
|
-
const compactValue = format.compact !== undefined
|
|
658
|
-
? (typeof format.compact === "string"
|
|
659
|
-
? East.value(variant(format.compact, null), CompactDisplayType)
|
|
660
|
-
: format.compact)
|
|
661
|
-
: undefined;
|
|
662
|
-
return East.value(variant("currency", {
|
|
663
|
-
currency: currencyValue,
|
|
664
|
-
display: displayValue ? some(displayValue) : none,
|
|
665
|
-
compact: compactValue ? some(compactValue) : none,
|
|
666
|
-
minimumFractionDigits: format.minimumFractionDigits !== undefined
|
|
667
|
-
? some(format.minimumFractionDigits) : none,
|
|
668
|
-
maximumFractionDigits: format.maximumFractionDigits !== undefined
|
|
669
|
-
? some(format.maximumFractionDigits) : none,
|
|
670
|
-
}), TickFormatType);
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* Creates a percent tick format for axis values.
|
|
674
|
-
*
|
|
675
|
-
* @param format - Optional configuration for percent formatting
|
|
676
|
-
* @param format.minimumFractionDigits - Minimum decimal places after the percent
|
|
677
|
-
* @param format.maximumFractionDigits - Maximum decimal places after the percent
|
|
678
|
-
* @param format.signDisplay - How to display the sign: "auto", "never", "always", or "exceptZero"
|
|
679
|
-
* @returns An East expression representing the percent tick format
|
|
680
|
-
*
|
|
681
|
-
* @remarks
|
|
682
|
-
* Uses Intl.NumberFormat with style "percent". Input values should be decimals
|
|
683
|
-
* (e.g., 0.5 for 50%). The formatter multiplies by 100 and adds the % symbol.
|
|
684
|
-
*
|
|
685
|
-
* @example
|
|
686
|
-
* ```ts
|
|
687
|
-
* // Default percent format (50%)
|
|
688
|
-
* Chart.Axis({ tickFormat: TickFormat.Percent() })
|
|
689
|
-
*
|
|
690
|
-
* // Percent with 1 decimal place (50.0%)
|
|
691
|
-
* Chart.Axis({ tickFormat: TickFormat.Percent({ minimumFractionDigits: 1n }) })
|
|
692
|
-
*
|
|
693
|
-
* // Always show sign (+50%, -25%)
|
|
694
|
-
* Chart.Axis({ tickFormat: TickFormat.Percent({ signDisplay: "always" }) })
|
|
695
|
-
* ```
|
|
696
|
-
*/
|
|
697
|
-
export function PercentTickFormat(format) {
|
|
698
|
-
return East.value(variant("percent", {
|
|
699
|
-
minimumFractionDigits: format?.minimumFractionDigits !== undefined
|
|
700
|
-
? some(format.minimumFractionDigits) : none,
|
|
701
|
-
maximumFractionDigits: format?.maximumFractionDigits !== undefined
|
|
702
|
-
? some(format.maximumFractionDigits) : none,
|
|
703
|
-
signDisplay: format?.signDisplay !== undefined
|
|
704
|
-
? some(typeof format.signDisplay === "string" ? variant(format.signDisplay, null) : format.signDisplay)
|
|
705
|
-
: none,
|
|
706
|
-
}), TickFormatType);
|
|
707
|
-
}
|
|
708
|
-
/**
|
|
709
|
-
* Creates a compact notation tick format for axis values.
|
|
710
|
-
*
|
|
711
|
-
* @param format - Optional configuration for compact formatting
|
|
712
|
-
* @param format.display - Display style: "short" (1K, 1M, 1B) or "long" (1 thousand, 1 million)
|
|
713
|
-
* @returns An East expression representing the compact tick format
|
|
714
|
-
*
|
|
715
|
-
* @remarks
|
|
716
|
-
* Uses Intl.NumberFormat with notation "compact". Ideal for large numbers
|
|
717
|
-
* where full precision isn't needed. Automatically abbreviates thousands (K),
|
|
718
|
-
* millions (M), billions (B), etc.
|
|
719
|
-
*
|
|
720
|
-
* @example
|
|
721
|
-
* ```ts
|
|
722
|
-
* // Default compact format (1K, 1M, 1B)
|
|
723
|
-
* Chart.Axis({ tickFormat: TickFormat.Compact() })
|
|
724
|
-
*
|
|
725
|
-
* // Short display (1K, 1M)
|
|
726
|
-
* Chart.Axis({ tickFormat: TickFormat.Compact({ display: "short" }) })
|
|
727
|
-
*
|
|
728
|
-
* // Long display (1 thousand, 1 million)
|
|
729
|
-
* Chart.Axis({ tickFormat: TickFormat.Compact({ display: "long" }) })
|
|
730
|
-
* ```
|
|
731
|
-
*/
|
|
732
|
-
export function CompactTickFormat(format) {
|
|
733
|
-
return East.value(variant("compact", {
|
|
734
|
-
display: format?.display !== undefined
|
|
735
|
-
? some(typeof format.display === "string" ? variant(format.display, null) : format.display)
|
|
736
|
-
: none,
|
|
737
|
-
}), TickFormatType);
|
|
738
|
-
}
|
|
739
|
-
/**
|
|
740
|
-
* Creates a unit tick format for axis values.
|
|
741
|
-
*
|
|
742
|
-
* @param format - Configuration for unit formatting (required)
|
|
743
|
-
* @param format.unit - The unit to format. Supports digital (byte, kilobyte, gigabyte),
|
|
744
|
-
* duration (second, minute, hour, day), length (meter, kilometer, mile),
|
|
745
|
-
* mass (gram, kilogram, pound), temperature (celsius, fahrenheit),
|
|
746
|
-
* volume (liter, gallon), speed (meterPerSecond, kilometerPerHour), and more
|
|
747
|
-
* @param format.display - How to display the unit: "short" (10 km), "narrow" (10km), or "long" (10 kilometers)
|
|
748
|
-
* @returns An East expression representing the unit tick format
|
|
749
|
-
*
|
|
750
|
-
* @remarks
|
|
751
|
-
* Uses Intl.NumberFormat with style "unit". The unit parameter is required.
|
|
752
|
-
* Supports all CLDR unit identifiers available in modern browsers.
|
|
753
|
-
*
|
|
754
|
-
* @example
|
|
755
|
-
* ```ts
|
|
756
|
-
* // File sizes in gigabytes (10 GB)
|
|
757
|
-
* Chart.Axis({ tickFormat: TickFormat.Unit({ unit: "gigabyte" }) })
|
|
758
|
-
*
|
|
759
|
-
* // Distance in kilometers, narrow display (10km)
|
|
760
|
-
* Chart.Axis({ tickFormat: TickFormat.Unit({ unit: "kilometer", display: "narrow" }) })
|
|
761
|
-
*
|
|
762
|
-
* // Temperature in Celsius, long display (25 degrees Celsius)
|
|
763
|
-
* Chart.Axis({ tickFormat: TickFormat.Unit({ unit: "celsius", display: "long" }) })
|
|
764
|
-
*
|
|
765
|
-
* // Speed in km/h
|
|
766
|
-
* Chart.Axis({ tickFormat: TickFormat.Unit({ unit: "kilometerPerHour", display: "short" }) })
|
|
767
|
-
* ```
|
|
768
|
-
*/
|
|
769
|
-
export function UnitTickFormat(format) {
|
|
770
|
-
const unitValue = typeof format.unit === "string"
|
|
771
|
-
? East.value(variant(format.unit, null), UnitType)
|
|
772
|
-
: format.unit;
|
|
773
|
-
const displayValue = format.display !== undefined
|
|
774
|
-
? (typeof format.display === "string"
|
|
775
|
-
? East.value(variant(format.display, null), UnitDisplayType)
|
|
776
|
-
: format.display)
|
|
777
|
-
: undefined;
|
|
778
|
-
return East.value(variant("unit", {
|
|
779
|
-
unit: unitValue,
|
|
780
|
-
display: displayValue ? some(displayValue) : none,
|
|
781
|
-
}), TickFormatType);
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
* Creates a scientific notation tick format for axis values.
|
|
785
|
-
*
|
|
786
|
-
* @returns An East expression representing the scientific notation tick format
|
|
787
|
-
*
|
|
788
|
-
* @remarks
|
|
789
|
-
* Uses Intl.NumberFormat with notation "scientific". Displays numbers in
|
|
790
|
-
* scientific notation (e.g., 1.23E4 for 12300). Useful for very large or
|
|
791
|
-
* very small numbers in scientific contexts.
|
|
792
|
-
*
|
|
793
|
-
* @example
|
|
794
|
-
* ```ts
|
|
795
|
-
* // Scientific notation (1.23E4, 5.67E-3)
|
|
796
|
-
* Chart.Axis({ tickFormat: TickFormat.Scientific() })
|
|
797
|
-
* // Or using string literal:
|
|
798
|
-
* Chart.Axis({ tickFormat: "scientific" })
|
|
799
|
-
* ```
|
|
800
|
-
*/
|
|
801
|
-
export function ScientificTickFormat() {
|
|
802
|
-
return East.value(variant("scientific", null), TickFormatType);
|
|
803
|
-
}
|
|
804
|
-
/**
|
|
805
|
-
* Creates an engineering notation tick format for axis values.
|
|
806
|
-
*
|
|
807
|
-
* @returns An East expression representing the engineering notation tick format
|
|
808
|
-
*
|
|
809
|
-
* @remarks
|
|
810
|
-
* Uses Intl.NumberFormat with notation "engineering". Similar to scientific
|
|
811
|
-
* notation but exponents are always multiples of 3 (e.g., 12.3E3 for 12300).
|
|
812
|
-
* Common in engineering contexts where SI prefixes (kilo, mega, etc.) apply.
|
|
813
|
-
*
|
|
814
|
-
* @example
|
|
815
|
-
* ```ts
|
|
816
|
-
* // Engineering notation (12.3E3, 456E-6)
|
|
817
|
-
* Chart.Axis({ tickFormat: TickFormat.Engineering() })
|
|
818
|
-
* // Or using string literal:
|
|
819
|
-
* Chart.Axis({ tickFormat: "engineering" })
|
|
820
|
-
* ```
|
|
821
|
-
*/
|
|
822
|
-
export function EngineeringTickFormat() {
|
|
823
|
-
return East.value(variant("engineering", null), TickFormatType);
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* Creates a date tick format for axis values using East format strings.
|
|
827
|
-
*
|
|
828
|
-
* @param format - Configuration for date formatting
|
|
829
|
-
* @param format.format - East datetime format string
|
|
830
|
-
* @returns An East expression representing the date tick format
|
|
831
|
-
*
|
|
832
|
-
* @remarks
|
|
833
|
-
* Uses East's datetime formatting for consistent behavior across backends.
|
|
834
|
-
*
|
|
835
|
-
* Format codes:
|
|
836
|
-
* - YYYY: 4-digit year (2024)
|
|
837
|
-
* - YY: 2-digit year (24)
|
|
838
|
-
* - MMMM: Full month name (January)
|
|
839
|
-
* - MMM: Short month name (Jan)
|
|
840
|
-
* - MM: 2-digit month (01-12)
|
|
841
|
-
* - M: Month (1-12)
|
|
842
|
-
* - DD: 2-digit day (01-31)
|
|
843
|
-
* - D: Day (1-31)
|
|
844
|
-
* - dddd: Full weekday (Sunday)
|
|
845
|
-
* - ddd: Short weekday (Sun)
|
|
846
|
-
* - dd: Min weekday (Su)
|
|
847
|
-
*
|
|
848
|
-
* @example
|
|
849
|
-
* ```ts
|
|
850
|
-
* // ISO date format (2024-01-15)
|
|
851
|
-
* Chart.Axis({ tickFormat: TickFormat.Date({ format: "YYYY-MM-DD" }) })
|
|
852
|
-
*
|
|
853
|
-
* // US date format (1/15/24)
|
|
854
|
-
* Chart.Axis({ tickFormat: TickFormat.Date({ format: "M/D/YY" }) })
|
|
855
|
-
*
|
|
856
|
-
* // Long date format (Jan 15, 2024)
|
|
857
|
-
* Chart.Axis({ tickFormat: TickFormat.Date({ format: "MMM D, YYYY" }) })
|
|
858
|
-
* ```
|
|
859
|
-
*/
|
|
860
|
-
export function DateTickFormat(format) {
|
|
861
|
-
return East.value(variant("date", {
|
|
862
|
-
format: format.format,
|
|
863
|
-
}), TickFormatType);
|
|
864
|
-
}
|
|
865
|
-
/**
|
|
866
|
-
* Creates a time tick format for axis values using East format strings.
|
|
867
|
-
*
|
|
868
|
-
* @param format - Configuration for time formatting
|
|
869
|
-
* @param format.format - East datetime format string
|
|
870
|
-
* @returns An East expression representing the time tick format
|
|
871
|
-
*
|
|
872
|
-
* @remarks
|
|
873
|
-
* Uses East's datetime formatting for consistent behavior across backends.
|
|
874
|
-
*
|
|
875
|
-
* Format codes:
|
|
876
|
-
* - HH: 24-hour with zero-pad (00-23)
|
|
877
|
-
* - H: 24-hour (0-23)
|
|
878
|
-
* - hh: 12-hour with zero-pad (01-12)
|
|
879
|
-
* - h: 12-hour (1-12)
|
|
880
|
-
* - mm: Minutes with zero-pad (00-59)
|
|
881
|
-
* - m: Minutes (0-59)
|
|
882
|
-
* - ss: Seconds with zero-pad (00-59)
|
|
883
|
-
* - s: Seconds (0-59)
|
|
884
|
-
* - SSS: Milliseconds (000-999)
|
|
885
|
-
* - A: AM/PM uppercase
|
|
886
|
-
* - a: am/pm lowercase
|
|
887
|
-
*
|
|
888
|
-
* @example
|
|
889
|
-
* ```ts
|
|
890
|
-
* // 24-hour time (14:30)
|
|
891
|
-
* Chart.Axis({ tickFormat: TickFormat.Time({ format: "HH:mm" }) })
|
|
892
|
-
*
|
|
893
|
-
* // 12-hour time with AM/PM (2:30 PM)
|
|
894
|
-
* Chart.Axis({ tickFormat: TickFormat.Time({ format: "h:mm A" }) })
|
|
895
|
-
*
|
|
896
|
-
* // Full time with seconds (14:30:45)
|
|
897
|
-
* Chart.Axis({ tickFormat: TickFormat.Time({ format: "HH:mm:ss" }) })
|
|
898
|
-
* ```
|
|
899
|
-
*/
|
|
900
|
-
export function TimeTickFormat(format) {
|
|
901
|
-
return East.value(variant("time", {
|
|
902
|
-
format: format.format,
|
|
903
|
-
}), TickFormatType);
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* Creates a combined date and time tick format for axis values using East format strings.
|
|
907
|
-
*
|
|
908
|
-
* @param format - Configuration for datetime formatting
|
|
909
|
-
* @param format.format - East datetime format string
|
|
910
|
-
* @returns An East expression representing the datetime tick format
|
|
911
|
-
*
|
|
912
|
-
* @remarks
|
|
913
|
-
* Uses East's datetime formatting for consistent behavior across backends.
|
|
914
|
-
* Combines date and time format codes in a single string.
|
|
915
|
-
*
|
|
916
|
-
* @example
|
|
917
|
-
* ```ts
|
|
918
|
-
* // ISO datetime (2024-01-15 14:30:00)
|
|
919
|
-
* Chart.Axis({ tickFormat: TickFormat.DateTime({ format: "YYYY-MM-DD HH:mm:ss" }) })
|
|
920
|
-
*
|
|
921
|
-
* // US datetime (1/15/24 2:30 PM)
|
|
922
|
-
* Chart.Axis({ tickFormat: TickFormat.DateTime({ format: "M/D/YY h:mm A" }) })
|
|
923
|
-
*
|
|
924
|
-
* // Long datetime (Jan 15, 2024 at 2:30 PM)
|
|
925
|
-
* Chart.Axis({ tickFormat: TickFormat.DateTime({ format: "MMM D, YYYY [at] h:mm A" }) })
|
|
926
|
-
* ```
|
|
927
|
-
*/
|
|
928
|
-
export function DateTimeTickFormat(format) {
|
|
929
|
-
return East.value(variant("datetime", {
|
|
930
|
-
format: format.format,
|
|
931
|
-
}), TickFormatType);
|
|
932
|
-
}
|
|
933
|
-
/**
|
|
934
|
-
* Converts a simple tick format literal string to a TickFormatType expression.
|
|
935
|
-
*
|
|
936
|
-
* @param format - A simple format literal: "number", "percent", "compact",
|
|
937
|
-
* "scientific", "engineering", "date", "time", or "datetime"
|
|
938
|
-
* @returns An East expression representing the tick format with default options
|
|
939
|
-
*
|
|
940
|
-
* @remarks
|
|
941
|
-
* This is used internally to convert string literals to tick format expressions.
|
|
942
|
-
* For formats requiring configuration (currency, unit), use the specific helper
|
|
943
|
-
* functions like {@link CurrencyTickFormat} or {@link UnitTickFormat}.
|
|
944
|
-
*
|
|
945
|
-
* @example
|
|
946
|
-
* ```ts
|
|
947
|
-
* // These are equivalent:
|
|
948
|
-
* Chart.Axis({ tickFormat: "compact" })
|
|
949
|
-
* Chart.Axis({ tickFormat: simpleTickFormatToExpr("compact") })
|
|
950
|
-
* Chart.Axis({ tickFormat: TickFormat.Compact() })
|
|
951
|
-
* ```
|
|
952
|
-
*/
|
|
953
|
-
export function simpleTickFormatToExpr(format) {
|
|
954
|
-
switch (format) {
|
|
955
|
-
case "number":
|
|
956
|
-
return NumberTickFormat();
|
|
957
|
-
case "percent":
|
|
958
|
-
return PercentTickFormat();
|
|
959
|
-
case "compact":
|
|
960
|
-
return CompactTickFormat();
|
|
961
|
-
case "scientific":
|
|
962
|
-
return ScientificTickFormat();
|
|
963
|
-
case "engineering":
|
|
964
|
-
return EngineeringTickFormat();
|
|
965
|
-
case "date":
|
|
966
|
-
return DateTickFormat({ format: "DD/MM/YYYY" });
|
|
967
|
-
case "time":
|
|
968
|
-
return TimeTickFormat({ format: "HH:mm:ss" });
|
|
969
|
-
case "datetime":
|
|
970
|
-
return DateTimeTickFormat({ format: "DD/MM/YYYY HH:mm" });
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
/**
|
|
974
|
-
* Namespace for tick format helper functions.
|
|
975
|
-
*
|
|
976
|
-
* @example
|
|
977
|
-
* ```ts
|
|
978
|
-
* // Simple formats (can also use string literals "number", "percent", etc.)
|
|
979
|
-
* TickFormat.Number()
|
|
980
|
-
* TickFormat.Percent()
|
|
981
|
-
* TickFormat.Compact({ display: "short" })
|
|
982
|
-
*
|
|
983
|
-
* // Currency with options
|
|
984
|
-
* TickFormat.Currency({ currency: "USD", display: "symbol" })
|
|
985
|
-
* TickFormat.Currency({ currency: "EUR", display: "code" })
|
|
986
|
-
*
|
|
987
|
-
* // Units
|
|
988
|
-
* TickFormat.Unit({ unit: "gigabyte", display: "short" })
|
|
989
|
-
* TickFormat.Unit({ unit: "kilometer", display: "long" })
|
|
990
|
-
*
|
|
991
|
-
* // Date/Time
|
|
992
|
-
* TickFormat.Date({ style: "short" })
|
|
993
|
-
* TickFormat.Time({ style: "medium", hour12: true })
|
|
994
|
-
* TickFormat.DateTime({ dateStyle: "short", timeStyle: "short" })
|
|
995
|
-
* ```
|
|
996
|
-
*/
|
|
997
|
-
export const TickFormat = {
|
|
998
|
-
Number: NumberTickFormat,
|
|
999
|
-
Currency: CurrencyTickFormat,
|
|
1000
|
-
Percent: PercentTickFormat,
|
|
1001
|
-
Compact: CompactTickFormat,
|
|
1002
|
-
Unit: UnitTickFormat,
|
|
1003
|
-
Scientific: ScientificTickFormat,
|
|
1004
|
-
Engineering: EngineeringTickFormat,
|
|
1005
|
-
Date: DateTickFormat,
|
|
1006
|
-
Time: TimeTickFormat,
|
|
1007
|
-
DateTime: DateTimeTickFormat,
|
|
1008
|
-
};
|
|
1009
|
-
// ============================================================================
|
|
1010
|
-
// Curve Type
|
|
1011
|
-
// ============================================================================
|
|
1012
|
-
/**
|
|
1013
|
-
* Line/Area curve type.
|
|
1014
|
-
*
|
|
1015
|
-
* @remarks
|
|
1016
|
-
* Maps to Recharts curve types for controlling line smoothness.
|
|
1017
|
-
*
|
|
1018
|
-
* @property linear - Straight lines between points
|
|
1019
|
-
* @property natural - Natural cubic spline
|
|
1020
|
-
* @property monotone - Monotone cubic spline
|
|
1021
|
-
* @property step - Step function
|
|
1022
|
-
* @property stepBefore - Step function before point
|
|
1023
|
-
* @property stepAfter - Step function after point
|
|
1024
|
-
*/
|
|
1025
|
-
export const CurveType = VariantType({
|
|
1026
|
-
linear: NullType,
|
|
1027
|
-
natural: NullType,
|
|
1028
|
-
monotone: NullType,
|
|
1029
|
-
step: NullType,
|
|
1030
|
-
stepBefore: NullType,
|
|
1031
|
-
stepAfter: NullType,
|
|
1032
|
-
});
|
|
1033
|
-
export function Curve(curve) {
|
|
1034
|
-
return East.value(variant(curve, null), CurveType);
|
|
1035
|
-
}
|
|
1036
|
-
// ============================================================================
|
|
1037
|
-
// Stack Offset Type
|
|
1038
|
-
// ============================================================================
|
|
1039
|
-
/**
|
|
1040
|
-
* Stack offset mode for stacked charts.
|
|
1041
|
-
*
|
|
1042
|
-
* @remarks
|
|
1043
|
-
* Controls how stacked areas/bars are positioned.
|
|
1044
|
-
*
|
|
1045
|
-
* @property none - Regular stacking (default)
|
|
1046
|
-
* @property expand - Normalize to 100%
|
|
1047
|
-
* @property wiggle - Streamgraph style
|
|
1048
|
-
* @property silhouette - Centered streamgraph
|
|
1049
|
-
*/
|
|
1050
|
-
export const StackOffsetType = VariantType({
|
|
1051
|
-
none: NullType,
|
|
1052
|
-
expand: NullType,
|
|
1053
|
-
wiggle: NullType,
|
|
1054
|
-
silhouette: NullType,
|
|
1055
|
-
});
|
|
1056
|
-
export function StackOffset(offset) {
|
|
1057
|
-
return East.value(variant(offset, null), StackOffsetType);
|
|
1058
|
-
}
|
|
1059
|
-
// ============================================================================
|
|
1060
|
-
// Bar Layout Type
|
|
1061
|
-
// ============================================================================
|
|
1062
|
-
/**
|
|
1063
|
-
* Bar chart layout direction.
|
|
1064
|
-
*
|
|
1065
|
-
* @remarks
|
|
1066
|
-
* Note: In Recharts, "horizontal" layout = vertical bars,
|
|
1067
|
-
* "vertical" layout = horizontal bars.
|
|
1068
|
-
*
|
|
1069
|
-
* @property horizontal - Vertical bars (default)
|
|
1070
|
-
* @property vertical - Horizontal bars
|
|
1071
|
-
*/
|
|
1072
|
-
export const BarLayoutType = VariantType({
|
|
1073
|
-
horizontal: NullType,
|
|
1074
|
-
vertical: NullType,
|
|
1075
|
-
});
|
|
1076
|
-
export function BarLayout(layout) {
|
|
1077
|
-
return East.value(variant(layout, null), BarLayoutType);
|
|
1078
|
-
}
|
|
1079
|
-
// ============================================================================
|
|
1080
|
-
// Chart Grid Type
|
|
1081
|
-
// ============================================================================
|
|
1082
|
-
/**
|
|
1083
|
-
* Grid configuration for chart background lines.
|
|
1084
|
-
*
|
|
1085
|
-
* @remarks
|
|
1086
|
-
* Maps to Recharts CartesianGrid component properties.
|
|
1087
|
-
*
|
|
1088
|
-
* @property show - Enable/disable entire grid (defaults to true if grid is specified)
|
|
1089
|
-
* @property vertical - Show vertical grid lines
|
|
1090
|
-
* @property horizontal - Show horizontal grid lines
|
|
1091
|
-
* @property strokeColor - Grid line color (Chakra color token)
|
|
1092
|
-
* @property strokeDasharray - Dash pattern (e.g., "3 3" for dashed lines)
|
|
1093
|
-
*/
|
|
1094
|
-
export const ChartGridType = StructType({
|
|
1095
|
-
show: OptionType(BooleanType),
|
|
1096
|
-
vertical: OptionType(BooleanType),
|
|
1097
|
-
horizontal: OptionType(BooleanType),
|
|
1098
|
-
strokeColor: OptionType(StringType),
|
|
1099
|
-
strokeDasharray: OptionType(StringType),
|
|
1100
|
-
});
|
|
1101
|
-
export function ChartGrid(grid) {
|
|
1102
|
-
return East.value({
|
|
1103
|
-
show: grid.show ? some(grid.show) : none,
|
|
1104
|
-
vertical: grid.vertical ? some(grid.vertical) : none,
|
|
1105
|
-
horizontal: grid.horizontal ? some(grid.horizontal) : none,
|
|
1106
|
-
strokeColor: grid.strokeColor ? some(grid.strokeColor) : none,
|
|
1107
|
-
strokeDasharray: grid.strokeDasharray ? some(grid.strokeDasharray) : none,
|
|
1108
|
-
}, ChartGridType);
|
|
1109
|
-
}
|
|
1110
|
-
// ============================================================================
|
|
1111
|
-
// Chart Legend Type
|
|
1112
|
-
// ============================================================================
|
|
1113
|
-
/**
|
|
1114
|
-
* Legend layout direction.
|
|
1115
|
-
*
|
|
1116
|
-
* @property horizontal - Items arranged horizontally
|
|
1117
|
-
* @property vertical - Items arranged vertically
|
|
1118
|
-
*/
|
|
1119
|
-
export const LegendLayoutType = VariantType({
|
|
1120
|
-
horizontal: NullType,
|
|
1121
|
-
vertical: NullType,
|
|
1122
|
-
});
|
|
1123
|
-
export function LegendLayout(layout) {
|
|
1124
|
-
return East.value(variant(layout, null), LegendLayoutType);
|
|
1125
|
-
}
|
|
1126
|
-
/**
|
|
1127
|
-
* Legend horizontal alignment.
|
|
1128
|
-
*
|
|
1129
|
-
* @property left - Align to left
|
|
1130
|
-
* @property center - Center alignment
|
|
1131
|
-
* @property right - Align to right
|
|
1132
|
-
*/
|
|
1133
|
-
export const LegendAlignType = VariantType({
|
|
1134
|
-
left: NullType,
|
|
1135
|
-
center: NullType,
|
|
1136
|
-
right: NullType,
|
|
1137
|
-
});
|
|
1138
|
-
export function LegendAlign(align) {
|
|
1139
|
-
return East.value(variant(align, null), LegendAlignType);
|
|
1140
|
-
}
|
|
1141
|
-
/**
|
|
1142
|
-
* Legend vertical alignment.
|
|
1143
|
-
*
|
|
1144
|
-
* @property top - Align to top
|
|
1145
|
-
* @property middle - Center vertically
|
|
1146
|
-
* @property bottom - Align to bottom
|
|
1147
|
-
*/
|
|
1148
|
-
export const LegendVerticalAlignType = VariantType({
|
|
1149
|
-
top: NullType,
|
|
1150
|
-
middle: NullType,
|
|
1151
|
-
bottom: NullType,
|
|
1152
|
-
});
|
|
1153
|
-
export function LegendVerticalAlign(verticalAlign) {
|
|
1154
|
-
return East.value(variant(verticalAlign, null), LegendVerticalAlignType);
|
|
1155
|
-
}
|
|
1156
|
-
/**
|
|
1157
|
-
* Legend configuration for charts.
|
|
1158
|
-
*
|
|
1159
|
-
* @remarks
|
|
1160
|
-
* Maps to Recharts Legend component properties.
|
|
1161
|
-
*
|
|
1162
|
-
* @property show - Enable/disable legend
|
|
1163
|
-
* @property layout - Horizontal or vertical arrangement
|
|
1164
|
-
* @property align - Horizontal alignment (left, center, right)
|
|
1165
|
-
* @property verticalAlign - Vertical alignment (top, middle, bottom)
|
|
1166
|
-
*/
|
|
1167
|
-
export const ChartLegendType = StructType({
|
|
1168
|
-
show: OptionType(BooleanType),
|
|
1169
|
-
layout: OptionType(LegendLayoutType),
|
|
1170
|
-
align: OptionType(LegendAlignType),
|
|
1171
|
-
verticalAlign: OptionType(LegendVerticalAlignType),
|
|
1172
|
-
});
|
|
1173
|
-
export function ChartLegend(legend) {
|
|
1174
|
-
return East.value({
|
|
1175
|
-
show: legend.show ? some(legend.show) : none,
|
|
1176
|
-
layout: legend.layout
|
|
1177
|
-
? some(typeof legend.layout === "string" ? variant(legend.layout, null) : legend.layout)
|
|
1178
|
-
: none,
|
|
1179
|
-
align: legend.align
|
|
1180
|
-
? some(typeof legend.align === "string" ? variant(legend.align, null) : legend.align)
|
|
1181
|
-
: none,
|
|
1182
|
-
verticalAlign: legend.verticalAlign
|
|
1183
|
-
? some(typeof legend.verticalAlign === "string" ? variant(legend.verticalAlign, null) : legend.verticalAlign)
|
|
1184
|
-
: none,
|
|
1185
|
-
}, ChartLegendType);
|
|
1186
|
-
}
|
|
1187
|
-
// ============================================================================
|
|
1188
|
-
// Chart Tooltip Type
|
|
1189
|
-
// ============================================================================
|
|
1190
|
-
/**
|
|
1191
|
-
* Tooltip cursor style variant.
|
|
1192
|
-
*
|
|
1193
|
-
* @property none - No cursor shown
|
|
1194
|
-
* @property crosshair - Dashed crosshair lines
|
|
1195
|
-
* @property fill - Filled area cursor
|
|
1196
|
-
*/
|
|
1197
|
-
export const TooltipCursorType = VariantType({
|
|
1198
|
-
none: NullType,
|
|
1199
|
-
crosshair: StringType,
|
|
1200
|
-
fill: StringType
|
|
1201
|
-
});
|
|
1202
|
-
/**
|
|
1203
|
-
* Tooltip configuration for charts.
|
|
1204
|
-
*
|
|
1205
|
-
* @remarks
|
|
1206
|
-
* Maps to Recharts Tooltip component properties.
|
|
1207
|
-
*
|
|
1208
|
-
* @property show - Enable/disable tooltip
|
|
1209
|
-
* @property cursor - Cursor style (none, crosshair, or fill)
|
|
1210
|
-
* @property animationDuration - Animation duration in milliseconds
|
|
1211
|
-
*/
|
|
1212
|
-
export const ChartTooltipType = StructType({
|
|
1213
|
-
show: OptionType(BooleanType),
|
|
1214
|
-
cursor: OptionType(TooltipCursorType),
|
|
1215
|
-
animationDuration: OptionType(IntegerType),
|
|
1216
|
-
});
|
|
1217
|
-
export function ChartTooltip(tooltip) {
|
|
1218
|
-
return East.value({
|
|
1219
|
-
show: tooltip.show ? some(tooltip.show) : none,
|
|
1220
|
-
cursor: tooltip.cursor
|
|
1221
|
-
? some(typeof tooltip.cursor === "string" ? variant(tooltip.cursor, null) : tooltip.cursor)
|
|
1222
|
-
: none,
|
|
1223
|
-
animationDuration: tooltip.animationDuration ? some(tooltip.animationDuration) : none,
|
|
1224
|
-
}, ChartTooltipType);
|
|
1225
|
-
}
|
|
1226
|
-
// ============================================================================
|
|
1227
|
-
// Axis Orientation Type
|
|
1228
|
-
// ============================================================================
|
|
1229
|
-
/**
|
|
1230
|
-
* Axis orientation/position.
|
|
1231
|
-
*
|
|
1232
|
-
* @property top - Position at top (for X axis)
|
|
1233
|
-
* @property bottom - Position at bottom (for X axis)
|
|
1234
|
-
* @property left - Position at left (for Y axis)
|
|
1235
|
-
* @property right - Position at right (for Y axis)
|
|
1236
|
-
*/
|
|
1237
|
-
export const AxisOrientationType = VariantType({
|
|
1238
|
-
top: NullType,
|
|
1239
|
-
bottom: NullType,
|
|
1240
|
-
left: NullType,
|
|
1241
|
-
right: NullType,
|
|
1242
|
-
});
|
|
1243
|
-
// ============================================================================
|
|
1244
|
-
// Chart Axis Type
|
|
1245
|
-
// ============================================================================
|
|
1246
|
-
/**
|
|
1247
|
-
* Axis configuration type.
|
|
1248
|
-
*
|
|
1249
|
-
* @remarks
|
|
1250
|
-
* Configuration for X or Y axis including data binding, labels, formatting,
|
|
1251
|
-
* and visual styling.
|
|
1252
|
-
*
|
|
1253
|
-
* @property dataKey - Data key for axis values
|
|
1254
|
-
* @property label - Axis label text
|
|
1255
|
-
* @property tickFormat - Format for tick values
|
|
1256
|
-
* @property domain - Value range [min, max]
|
|
1257
|
-
* @property hide - Hide the axis entirely
|
|
1258
|
-
* @property axisLine - Show/hide axis line
|
|
1259
|
-
* @property tickLine - Show/hide tick lines
|
|
1260
|
-
* @property tickMargin - Margin between tick and label
|
|
1261
|
-
* @property strokeColor - Axis color (Chakra color token)
|
|
1262
|
-
* @property orientation - Axis position (top/bottom for X, left/right for Y)
|
|
1263
|
-
* @property axisId - Identifier for biaxial charts (e.g., "left", "right")
|
|
1264
|
-
*/
|
|
1265
|
-
export const ChartAxisType = StructType({
|
|
1266
|
-
dataKey: OptionType(StringType),
|
|
1267
|
-
label: OptionType(StringType),
|
|
1268
|
-
tickFormat: OptionType(TickFormatType),
|
|
1269
|
-
domain: OptionType(ArrayType(FloatType)),
|
|
1270
|
-
hide: OptionType(BooleanType),
|
|
1271
|
-
axisLine: OptionType(BooleanType),
|
|
1272
|
-
tickLine: OptionType(BooleanType),
|
|
1273
|
-
tickMargin: OptionType(IntegerType),
|
|
1274
|
-
strokeColor: OptionType(StringType),
|
|
1275
|
-
orientation: OptionType(AxisOrientationType),
|
|
1276
|
-
axisId: OptionType(StringType),
|
|
1277
|
-
});
|
|
1278
|
-
export function ChartAxis(axis) {
|
|
1279
|
-
return East.value({
|
|
1280
|
-
dataKey: axis.dataKey !== undefined ? some(axis.dataKey) : none,
|
|
1281
|
-
label: axis.label !== undefined ? some(axis.label) : none,
|
|
1282
|
-
tickFormat: axis.tickFormat
|
|
1283
|
-
? (typeof axis.tickFormat === "string"
|
|
1284
|
-
? some(simpleTickFormatToExpr(axis.tickFormat))
|
|
1285
|
-
: some(axis.tickFormat))
|
|
1286
|
-
: none,
|
|
1287
|
-
domain: axis.domain !== undefined ? some(axis.domain) : none,
|
|
1288
|
-
hide: axis.hide !== undefined ? some(axis.hide) : none,
|
|
1289
|
-
axisLine: axis.axisLine !== undefined ? some(axis.axisLine) : none,
|
|
1290
|
-
tickLine: axis.tickLine !== undefined ? some(axis.tickLine) : none,
|
|
1291
|
-
tickMargin: axis.tickMargin !== undefined ? some(axis.tickMargin) : none,
|
|
1292
|
-
strokeColor: axis.strokeColor !== undefined ? some(axis.strokeColor) : none,
|
|
1293
|
-
orientation: axis.orientation
|
|
1294
|
-
? some(typeof axis.orientation === "string" ? variant(axis.orientation, null) : axis.orientation)
|
|
1295
|
-
: none,
|
|
1296
|
-
axisId: axis.axisId !== undefined ? some(axis.axisId) : none,
|
|
1297
|
-
}, ChartAxisType);
|
|
1298
|
-
}
|
|
1299
|
-
// ============================================================================
|
|
1300
|
-
// Common Chart Style Properties
|
|
1301
|
-
// ============================================================================
|
|
1302
|
-
/**
|
|
1303
|
-
* Base chart dimensions and display options.
|
|
1304
|
-
*/
|
|
1305
|
-
/**
|
|
1306
|
-
* Chart margin configuration.
|
|
1307
|
-
*
|
|
1308
|
-
* @property top - Top margin in pixels
|
|
1309
|
-
* @property right - Right margin in pixels
|
|
1310
|
-
* @property bottom - Bottom margin in pixels
|
|
1311
|
-
* @property left - Left margin in pixels
|
|
1312
|
-
*/
|
|
1313
|
-
export const ChartMarginType = StructType({
|
|
1314
|
-
top: OptionType(IntegerType),
|
|
1315
|
-
right: OptionType(IntegerType),
|
|
1316
|
-
bottom: OptionType(IntegerType),
|
|
1317
|
-
left: OptionType(IntegerType),
|
|
1318
|
-
});
|
|
1319
|
-
/**
|
|
1320
|
-
* Creates a chart margin configuration.
|
|
1321
|
-
*/
|
|
1322
|
-
export function ChartMargin(margin) {
|
|
1323
|
-
return East.value({
|
|
1324
|
-
top: margin.top !== undefined ? some(margin.top) : none,
|
|
1325
|
-
right: margin.right !== undefined ? some(margin.right) : none,
|
|
1326
|
-
bottom: margin.bottom !== undefined ? some(margin.bottom) : none,
|
|
1327
|
-
left: margin.left !== undefined ? some(margin.left) : none,
|
|
1328
|
-
}, ChartMarginType);
|
|
1329
|
-
}
|
|
1330
|
-
/**
|
|
1331
|
-
* Base chart style type for serialization.
|
|
1332
|
-
*/
|
|
1333
|
-
export const BaseChartStyleType = StructType({
|
|
1334
|
-
grid: OptionType(ChartGridType),
|
|
1335
|
-
tooltip: OptionType(ChartTooltipType),
|
|
1336
|
-
legend: OptionType(ChartLegendType),
|
|
1337
|
-
margin: OptionType(ChartMarginType),
|
|
1338
|
-
});
|
|
1339
|
-
// ============================================================================
|
|
1340
|
-
// Chart Brush Type
|
|
1341
|
-
// ============================================================================
|
|
1342
|
-
/**
|
|
1343
|
-
* Brush configuration for chart data range selection.
|
|
1344
|
-
*
|
|
1345
|
-
* @remarks
|
|
1346
|
-
* The Brush component allows users to select a range of data to display.
|
|
1347
|
-
* It renders a small preview chart with draggable handles for range selection.
|
|
1348
|
-
* Maps to Recharts Brush component.
|
|
1349
|
-
*
|
|
1350
|
-
* @property dataKey - Data key for brush labels (defaults to xAxis dataKey)
|
|
1351
|
-
* @property height - Brush height in pixels (default: 40)
|
|
1352
|
-
* @property travellerWidth - Width of slider handles in pixels (default: 5)
|
|
1353
|
-
* @property startIndex - Initial start index of selection
|
|
1354
|
-
* @property endIndex - Initial end index of selection
|
|
1355
|
-
* @property stroke - Stroke color for brush area
|
|
1356
|
-
* @property fill - Fill color for brush area
|
|
1357
|
-
*/
|
|
1358
|
-
export const ChartBrushType = StructType({
|
|
1359
|
-
dataKey: OptionType(StringType),
|
|
1360
|
-
height: OptionType(IntegerType),
|
|
1361
|
-
travellerWidth: OptionType(IntegerType),
|
|
1362
|
-
startIndex: OptionType(IntegerType),
|
|
1363
|
-
endIndex: OptionType(IntegerType),
|
|
1364
|
-
stroke: OptionType(StringType),
|
|
1365
|
-
fill: OptionType(StringType),
|
|
1366
|
-
});
|
|
1367
|
-
/**
|
|
1368
|
-
* Creates a chart brush configuration.
|
|
1369
|
-
*
|
|
1370
|
-
* @param brush - Brush configuration options
|
|
1371
|
-
* @returns An East expression representing the brush configuration
|
|
1372
|
-
*/
|
|
1373
|
-
export function ChartBrush(brush) {
|
|
1374
|
-
return East.value({
|
|
1375
|
-
dataKey: brush.dataKey !== undefined ? some(brush.dataKey) : none,
|
|
1376
|
-
height: brush.height !== undefined ? some(brush.height) : none,
|
|
1377
|
-
travellerWidth: brush.travellerWidth !== undefined ? some(brush.travellerWidth) : none,
|
|
1378
|
-
startIndex: brush.startIndex !== undefined ? some(brush.startIndex) : none,
|
|
1379
|
-
endIndex: brush.endIndex !== undefined ? some(brush.endIndex) : none,
|
|
1380
|
-
stroke: brush.stroke !== undefined ? some(brush.stroke) : none,
|
|
1381
|
-
fill: brush.fill !== undefined ? some(brush.fill) : none,
|
|
1382
|
-
}, ChartBrushType);
|
|
1383
|
-
}
|
|
1384
|
-
// ============================================================================
|
|
1385
|
-
// Multi-Series Data Type
|
|
1386
|
-
// ============================================================================
|
|
1387
|
-
/**
|
|
1388
|
-
* Type for multi-series data storage.
|
|
1389
|
-
*
|
|
1390
|
-
* @remarks
|
|
1391
|
-
* Used when data is passed as a record of arrays (for sparse data).
|
|
1392
|
-
* Each key is a series name, value is an array of data points.
|
|
1393
|
-
* This avoids the need for null values when series have different data points.
|
|
1394
|
-
*/
|
|
1395
|
-
export const MultiSeriesDataType = DictType(StringType, ArrayType(DictType(StringType, LiteralValueType)));
|
|
1396
|
-
// ============================================================================
|
|
1397
|
-
// Reference Annotation Types
|
|
1398
|
-
// ============================================================================
|
|
1399
|
-
/**
|
|
1400
|
-
* Overflow behavior when reference annotation extends beyond chart bounds.
|
|
1401
|
-
*
|
|
1402
|
-
* @property discard - Don't render if outside bounds
|
|
1403
|
-
* @property hidden - Clip at chart boundary
|
|
1404
|
-
* @property visible - Render completely (may overflow)
|
|
1405
|
-
* @property extendDomain - Extend axis domain to include the reference
|
|
1406
|
-
*/
|
|
1407
|
-
export const ReferenceOverflowType = VariantType({
|
|
1408
|
-
discard: NullType,
|
|
1409
|
-
hidden: NullType,
|
|
1410
|
-
visible: NullType,
|
|
1411
|
-
extendDomain: NullType,
|
|
1412
|
-
});
|
|
1413
|
-
/**
|
|
1414
|
-
* Label position options for reference annotations.
|
|
1415
|
-
*
|
|
1416
|
-
* @property top - Above the reference point
|
|
1417
|
-
* @property bottom - Below the reference point
|
|
1418
|
-
* @property left - To the left of the reference point
|
|
1419
|
-
* @property right - To the right of the reference point
|
|
1420
|
-
* @property center - Centered on the reference point
|
|
1421
|
-
* @property insideTop - Inside, at the top
|
|
1422
|
-
* @property insideBottom - Inside, at the bottom
|
|
1423
|
-
* @property insideLeft - Inside, at the left
|
|
1424
|
-
* @property insideRight - Inside, at the right
|
|
1425
|
-
*/
|
|
1426
|
-
export const LabelPositionType = VariantType({
|
|
1427
|
-
top: NullType,
|
|
1428
|
-
bottom: NullType,
|
|
1429
|
-
left: NullType,
|
|
1430
|
-
right: NullType,
|
|
1431
|
-
center: NullType,
|
|
1432
|
-
insideTop: NullType,
|
|
1433
|
-
insideBottom: NullType,
|
|
1434
|
-
insideLeft: NullType,
|
|
1435
|
-
insideRight: NullType,
|
|
1436
|
-
insideTopLeft: NullType,
|
|
1437
|
-
insideTopRight: NullType,
|
|
1438
|
-
insideBottomLeft: NullType,
|
|
1439
|
-
insideBottomRight: NullType,
|
|
1440
|
-
});
|
|
1441
|
-
/**
|
|
1442
|
-
* Reference line configuration for charts.
|
|
1443
|
-
*
|
|
1444
|
-
* @remarks
|
|
1445
|
-
* Draws horizontal or vertical lines at specific values to mark
|
|
1446
|
-
* thresholds, targets, or other reference points.
|
|
1447
|
-
* Set `x` for a vertical line, `y` for a horizontal line.
|
|
1448
|
-
*
|
|
1449
|
-
* @property x - X value for vertical line (number or category string)
|
|
1450
|
-
* @property y - Y value for horizontal line (number or category string)
|
|
1451
|
-
* @property stroke - Line color (Chakra color token)
|
|
1452
|
-
* @property strokeWidth - Line width in pixels
|
|
1453
|
-
* @property strokeDasharray - Dash pattern (e.g., "5 5" for dashed)
|
|
1454
|
-
* @property label - Label text for the line
|
|
1455
|
-
* @property ifOverflow - Behavior when line extends beyond bounds
|
|
1456
|
-
*/
|
|
1457
|
-
export const ReferenceLineType = StructType({
|
|
1458
|
-
x: OptionType(LiteralValueType),
|
|
1459
|
-
y: OptionType(LiteralValueType),
|
|
1460
|
-
stroke: OptionType(StringType),
|
|
1461
|
-
strokeWidth: OptionType(IntegerType),
|
|
1462
|
-
strokeDasharray: OptionType(StringType),
|
|
1463
|
-
label: OptionType(StringType),
|
|
1464
|
-
labelPosition: OptionType(LabelPositionType),
|
|
1465
|
-
labelOffset: OptionType(IntegerType),
|
|
1466
|
-
ifOverflow: OptionType(ReferenceOverflowType),
|
|
1467
|
-
});
|
|
1468
|
-
/**
|
|
1469
|
-
* Reference dot configuration for charts.
|
|
1470
|
-
*
|
|
1471
|
-
* @remarks
|
|
1472
|
-
* Marks a specific point on the chart with a dot.
|
|
1473
|
-
* Both x and y are required to position the dot.
|
|
1474
|
-
*
|
|
1475
|
-
* @property x - X coordinate (number or category string)
|
|
1476
|
-
* @property y - Y coordinate (number or category string)
|
|
1477
|
-
* @property r - Radius of the dot in pixels
|
|
1478
|
-
* @property fill - Fill color (Chakra color token)
|
|
1479
|
-
* @property stroke - Stroke color (Chakra color token)
|
|
1480
|
-
* @property strokeWidth - Stroke width in pixels
|
|
1481
|
-
* @property label - Label text for the dot
|
|
1482
|
-
* @property ifOverflow - Behavior when dot extends beyond bounds
|
|
1483
|
-
*/
|
|
1484
|
-
export const ReferenceDotType = StructType({
|
|
1485
|
-
x: LiteralValueType,
|
|
1486
|
-
y: LiteralValueType,
|
|
1487
|
-
r: OptionType(IntegerType),
|
|
1488
|
-
fill: OptionType(StringType),
|
|
1489
|
-
stroke: OptionType(StringType),
|
|
1490
|
-
strokeWidth: OptionType(IntegerType),
|
|
1491
|
-
label: OptionType(StringType),
|
|
1492
|
-
labelPosition: OptionType(LabelPositionType),
|
|
1493
|
-
labelOffset: OptionType(IntegerType),
|
|
1494
|
-
ifOverflow: OptionType(ReferenceOverflowType),
|
|
1495
|
-
});
|
|
1496
|
-
/**
|
|
1497
|
-
* Reference area configuration for charts.
|
|
1498
|
-
*
|
|
1499
|
-
* @remarks
|
|
1500
|
-
* Highlights a rectangular region on the chart to mark zones,
|
|
1501
|
-
* ranges, or bands. Omitting a bound means it extends to the axis edge.
|
|
1502
|
-
*
|
|
1503
|
-
* @property x1 - Left bound (omit = start of x-axis)
|
|
1504
|
-
* @property x2 - Right bound (omit = end of x-axis)
|
|
1505
|
-
* @property y1 - Bottom bound (omit = start of y-axis)
|
|
1506
|
-
* @property y2 - Top bound (omit = end of y-axis)
|
|
1507
|
-
* @property fill - Fill color (Chakra color token)
|
|
1508
|
-
* @property fillOpacity - Fill opacity (0-1)
|
|
1509
|
-
* @property stroke - Stroke color (Chakra color token)
|
|
1510
|
-
* @property label - Label text for the area
|
|
1511
|
-
* @property ifOverflow - Behavior when area extends beyond bounds
|
|
1512
|
-
*/
|
|
1513
|
-
export const ReferenceAreaType = StructType({
|
|
1514
|
-
x1: OptionType(LiteralValueType),
|
|
1515
|
-
x2: OptionType(LiteralValueType),
|
|
1516
|
-
y1: OptionType(LiteralValueType),
|
|
1517
|
-
y2: OptionType(LiteralValueType),
|
|
1518
|
-
fill: OptionType(StringType),
|
|
1519
|
-
fillOpacity: OptionType(FloatType),
|
|
1520
|
-
stroke: OptionType(StringType),
|
|
1521
|
-
label: OptionType(StringType),
|
|
1522
|
-
labelPosition: OptionType(LabelPositionType),
|
|
1523
|
-
labelOffset: OptionType(IntegerType),
|
|
1524
|
-
ifOverflow: OptionType(ReferenceOverflowType),
|
|
1525
|
-
});
|
|
1526
|
-
// ============================================================================
|
|
1527
|
-
// Style to Type Conversion Helpers
|
|
1528
|
-
// ============================================================================
|
|
1529
|
-
/**
|
|
1530
|
-
* Converts a ChartAxisStyle plain object to a ChartAxisType expression.
|
|
1531
|
-
*
|
|
1532
|
-
* @param axis - The axis style configuration
|
|
1533
|
-
* @returns An expression representing the axis configuration, or undefined if axis is undefined
|
|
1534
|
-
*
|
|
1535
|
-
* @internal
|
|
1536
|
-
*/
|
|
1537
|
-
export function axisStyleToType(axis) {
|
|
1538
|
-
if (axis === undefined)
|
|
1539
|
-
return undefined;
|
|
1540
|
-
return East.value({
|
|
1541
|
-
dataKey: axis.dataKey !== undefined ? some(axis.dataKey) : none,
|
|
1542
|
-
label: axis.label !== undefined ? some(axis.label) : none,
|
|
1543
|
-
tickFormat: axis.tickFormat
|
|
1544
|
-
? (typeof axis.tickFormat === "string"
|
|
1545
|
-
? some(simpleTickFormatToExpr(axis.tickFormat))
|
|
1546
|
-
: some(axis.tickFormat))
|
|
1547
|
-
: none,
|
|
1548
|
-
domain: axis.domain !== undefined ? some(axis.domain) : none,
|
|
1549
|
-
hide: axis.hide !== undefined ? some(axis.hide) : none,
|
|
1550
|
-
axisLine: axis.axisLine !== undefined ? some(axis.axisLine) : none,
|
|
1551
|
-
tickLine: axis.tickLine !== undefined ? some(axis.tickLine) : none,
|
|
1552
|
-
tickMargin: axis.tickMargin !== undefined ? some(axis.tickMargin) : none,
|
|
1553
|
-
strokeColor: none, // strokeColor not in ChartAxisStyle, only in ChartAxis
|
|
1554
|
-
orientation: axis.orientation
|
|
1555
|
-
? some(typeof axis.orientation === "string" ? variant(axis.orientation, null) : axis.orientation)
|
|
1556
|
-
: none,
|
|
1557
|
-
axisId: axis.axisId !== undefined ? some(axis.axisId) : none,
|
|
1558
|
-
}, ChartAxisType);
|
|
1559
|
-
}
|
|
1560
|
-
/**
|
|
1561
|
-
* Converts a ChartGridStyle plain object to a ChartGridType expression.
|
|
1562
|
-
*
|
|
1563
|
-
* @param grid - The grid style configuration
|
|
1564
|
-
* @returns An expression representing the grid configuration, or undefined if grid is undefined
|
|
1565
|
-
*
|
|
1566
|
-
* @internal
|
|
1567
|
-
*/
|
|
1568
|
-
export function gridStyleToType(grid) {
|
|
1569
|
-
if (grid === undefined)
|
|
1570
|
-
return undefined;
|
|
1571
|
-
return East.value({
|
|
1572
|
-
show: grid.show !== undefined ? some(grid.show) : none,
|
|
1573
|
-
vertical: grid.vertical !== undefined ? some(grid.vertical) : none,
|
|
1574
|
-
horizontal: grid.horizontal !== undefined ? some(grid.horizontal) : none,
|
|
1575
|
-
strokeColor: grid.strokeColor !== undefined ? some(grid.strokeColor) : none,
|
|
1576
|
-
strokeDasharray: grid.strokeDasharray !== undefined ? some(grid.strokeDasharray) : none,
|
|
1577
|
-
}, ChartGridType);
|
|
1578
|
-
}
|
|
1579
|
-
/**
|
|
1580
|
-
* Converts a ChartTooltipStyle plain object to a ChartTooltipType expression.
|
|
1581
|
-
*
|
|
1582
|
-
* @param tooltip - The tooltip style configuration
|
|
1583
|
-
* @returns An expression representing the tooltip configuration, or undefined if tooltip is undefined
|
|
1584
|
-
*
|
|
1585
|
-
* @internal
|
|
1586
|
-
*/
|
|
1587
|
-
export function tooltipStyleToType(tooltip) {
|
|
1588
|
-
if (tooltip === undefined)
|
|
1589
|
-
return undefined;
|
|
1590
|
-
return East.value({
|
|
1591
|
-
show: tooltip.show !== undefined ? some(tooltip.show) : none,
|
|
1592
|
-
cursor: tooltip.cursor !== undefined ? some(tooltip.cursor) : none,
|
|
1593
|
-
animationDuration: tooltip.animationDuration !== undefined ? some(tooltip.animationDuration) : none,
|
|
1594
|
-
}, ChartTooltipType);
|
|
1595
|
-
}
|
|
1596
|
-
/**
|
|
1597
|
-
* Converts a ChartLegendStyle plain object to a ChartLegendType expression.
|
|
1598
|
-
*
|
|
1599
|
-
* @param legend - The legend style configuration
|
|
1600
|
-
* @returns An expression representing the legend configuration, or undefined if legend is undefined
|
|
1601
|
-
*
|
|
1602
|
-
* @internal
|
|
1603
|
-
*/
|
|
1604
|
-
export function legendStyleToType(legend) {
|
|
1605
|
-
if (legend === undefined)
|
|
1606
|
-
return undefined;
|
|
1607
|
-
return East.value({
|
|
1608
|
-
show: legend.show !== undefined ? some(legend.show) : none,
|
|
1609
|
-
layout: legend.layout
|
|
1610
|
-
? some(typeof legend.layout === "string" ? variant(legend.layout, null) : legend.layout)
|
|
1611
|
-
: none,
|
|
1612
|
-
align: legend.align
|
|
1613
|
-
? some(typeof legend.align === "string" ? variant(legend.align, null) : legend.align)
|
|
1614
|
-
: none,
|
|
1615
|
-
verticalAlign: legend.verticalAlign
|
|
1616
|
-
? some(typeof legend.verticalAlign === "string" ? variant(legend.verticalAlign, null) : legend.verticalAlign)
|
|
1617
|
-
: none,
|
|
1618
|
-
}, ChartLegendType);
|
|
1619
|
-
}
|
|
1620
|
-
/**
|
|
1621
|
-
* Converts a ChartMarginStyle plain object to a ChartMarginType expression.
|
|
1622
|
-
*
|
|
1623
|
-
* @param margin - The margin style configuration
|
|
1624
|
-
* @returns An expression representing the margin configuration, or undefined if margin is undefined
|
|
1625
|
-
*
|
|
1626
|
-
* @internal
|
|
1627
|
-
*/
|
|
1628
|
-
export function marginStyleToType(margin) {
|
|
1629
|
-
if (margin === undefined)
|
|
1630
|
-
return undefined;
|
|
1631
|
-
return East.value({
|
|
1632
|
-
top: margin.top !== undefined ? some(margin.top) : none,
|
|
1633
|
-
right: margin.right !== undefined ? some(margin.right) : none,
|
|
1634
|
-
bottom: margin.bottom !== undefined ? some(margin.bottom) : none,
|
|
1635
|
-
left: margin.left !== undefined ? some(margin.left) : none,
|
|
1636
|
-
}, ChartMarginType);
|
|
1637
|
-
}
|
|
1638
|
-
/**
|
|
1639
|
-
* Converts a ReferenceLineStyle to a ReferenceLineType expression.
|
|
1640
|
-
*
|
|
1641
|
-
* @param line - The reference line style
|
|
1642
|
-
* @returns An expression representing the reference line
|
|
1643
|
-
*
|
|
1644
|
-
* @internal
|
|
1645
|
-
*/
|
|
1646
|
-
export function referenceLineStyleToType(line) {
|
|
1647
|
-
const x_expr = line.x ? East.value(line.x) : undefined;
|
|
1648
|
-
const y_expr = line.y ? East.value(line.y) : undefined;
|
|
1649
|
-
const x_type = x_expr ? Expr.type(x_expr) : undefined;
|
|
1650
|
-
const y_type = y_expr ? Expr.type(y_expr) : undefined;
|
|
1651
|
-
return East.value({
|
|
1652
|
-
x: x_expr !== undefined ? variant("some", variant(x_type.type, x_expr)) : none,
|
|
1653
|
-
y: y_expr !== undefined ? variant("some", variant(y_type.type, y_expr)) : none,
|
|
1654
|
-
stroke: line.stroke !== undefined ? some(line.stroke) : none,
|
|
1655
|
-
strokeWidth: line.strokeWidth !== undefined ? some(line.strokeWidth) : none,
|
|
1656
|
-
strokeDasharray: line.strokeDasharray !== undefined ? some(line.strokeDasharray) : none,
|
|
1657
|
-
label: line.label !== undefined ? some(line.label) : none,
|
|
1658
|
-
labelPosition: line.labelPosition !== undefined
|
|
1659
|
-
? some(typeof line.labelPosition === "string" ? variant(line.labelPosition, null) : line.labelPosition)
|
|
1660
|
-
: none,
|
|
1661
|
-
labelOffset: line.labelOffset !== undefined ? some(line.labelOffset) : none,
|
|
1662
|
-
ifOverflow: line.ifOverflow !== undefined
|
|
1663
|
-
? some(typeof line.ifOverflow === "string" ? variant(line.ifOverflow, null) : line.ifOverflow)
|
|
1664
|
-
: none,
|
|
1665
|
-
}, ReferenceLineType);
|
|
1666
|
-
}
|
|
1667
|
-
/**
|
|
1668
|
-
* Converts a ReferenceDotStyle to a ReferenceDotType expression.
|
|
1669
|
-
*
|
|
1670
|
-
* @param dot - The reference dot style
|
|
1671
|
-
* @returns An expression representing the reference dot
|
|
1672
|
-
*
|
|
1673
|
-
* @internal
|
|
1674
|
-
*/
|
|
1675
|
-
export function referenceDotStyleToType(dot) {
|
|
1676
|
-
const x_expr = East.value(dot.x);
|
|
1677
|
-
const y_expr = East.value(dot.y);
|
|
1678
|
-
const x_type = Expr.type(x_expr);
|
|
1679
|
-
const y_type = Expr.type(y_expr);
|
|
1680
|
-
return East.value({
|
|
1681
|
-
x: East.value(variant(x_type.type, x_expr)),
|
|
1682
|
-
y: East.value(variant(y_type.type, y_expr)),
|
|
1683
|
-
r: dot.r !== undefined ? some(dot.r) : none,
|
|
1684
|
-
fill: dot.fill !== undefined ? some(dot.fill) : none,
|
|
1685
|
-
stroke: dot.stroke !== undefined ? some(dot.stroke) : none,
|
|
1686
|
-
strokeWidth: dot.strokeWidth !== undefined ? some(dot.strokeWidth) : none,
|
|
1687
|
-
label: dot.label !== undefined ? some(dot.label) : none,
|
|
1688
|
-
labelPosition: dot.labelPosition !== undefined
|
|
1689
|
-
? some(typeof dot.labelPosition === "string" ? variant(dot.labelPosition, null) : dot.labelPosition)
|
|
1690
|
-
: none,
|
|
1691
|
-
labelOffset: dot.labelOffset !== undefined ? some(dot.labelOffset) : none,
|
|
1692
|
-
ifOverflow: dot.ifOverflow !== undefined
|
|
1693
|
-
? some(typeof dot.ifOverflow === "string" ? variant(dot.ifOverflow, null) : dot.ifOverflow)
|
|
1694
|
-
: none,
|
|
1695
|
-
}, ReferenceDotType);
|
|
1696
|
-
}
|
|
1697
|
-
/**
|
|
1698
|
-
* Converts a ReferenceAreaStyle to a ReferenceAreaType expression.
|
|
1699
|
-
*
|
|
1700
|
-
* @param area - The reference area style
|
|
1701
|
-
* @returns An expression representing the reference area
|
|
1702
|
-
*
|
|
1703
|
-
* @internal
|
|
1704
|
-
*/
|
|
1705
|
-
export function referenceAreaStyleToType(area) {
|
|
1706
|
-
const x_expr = area.x1 ? East.value(area.x1) : undefined;
|
|
1707
|
-
const x2_expr = area.x2 ? East.value(area.x2) : undefined;
|
|
1708
|
-
const y_expr = area.y1 ? East.value(area.y1) : undefined;
|
|
1709
|
-
const y2_expr = area.y2 ? East.value(area.y2) : undefined;
|
|
1710
|
-
const x_type = x_expr ? Expr.type(x_expr) : null;
|
|
1711
|
-
const y_type = y_expr ? Expr.type(y_expr) : null;
|
|
1712
|
-
const x2_type = x2_expr ? Expr.type(x2_expr) : null;
|
|
1713
|
-
const y2_type = y2_expr ? Expr.type(y2_expr) : null;
|
|
1714
|
-
return East.value({
|
|
1715
|
-
x1: x_expr !== undefined ? variant("some", variant(x_type.type, x_expr)) : none,
|
|
1716
|
-
x2: x2_expr !== undefined ? variant("some", variant(x2_type.type, x2_expr)) : none,
|
|
1717
|
-
y1: y_expr !== undefined ? variant("some", variant(y_type.type, y_expr)) : none,
|
|
1718
|
-
y2: y2_expr !== undefined ? variant("some", variant(y2_type.type, y2_expr)) : none,
|
|
1719
|
-
fill: area.fill !== undefined ? some(area.fill) : none,
|
|
1720
|
-
fillOpacity: area.fillOpacity !== undefined ? some(area.fillOpacity) : none,
|
|
1721
|
-
stroke: area.stroke !== undefined ? some(area.stroke) : none,
|
|
1722
|
-
label: area.label !== undefined ? some(area.label) : none,
|
|
1723
|
-
labelPosition: area.labelPosition !== undefined
|
|
1724
|
-
? some(typeof area.labelPosition === "string" ? variant(area.labelPosition, null) : area.labelPosition)
|
|
1725
|
-
: none,
|
|
1726
|
-
labelOffset: area.labelOffset !== undefined ? some(area.labelOffset) : none,
|
|
1727
|
-
ifOverflow: area.ifOverflow !== undefined
|
|
1728
|
-
? some(typeof area.ifOverflow === "string" ? variant(area.ifOverflow, null) : area.ifOverflow)
|
|
1729
|
-
: none,
|
|
1730
|
-
}, ReferenceAreaType);
|
|
1731
|
-
}
|
|
1732
|
-
//# sourceMappingURL=types.js.map
|