@elaraai/east-ui 0.0.1-beta.5 → 0.0.1-beta.7
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 +2 -2
- package/dist/src/buttons/button/index.d.ts +7 -5
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +9 -13
- package/dist/src/buttons/button/index.js.map +1 -1
- package/dist/src/buttons/button/types.d.ts +7 -1
- package/dist/src/buttons/button/types.d.ts.map +1 -1
- package/dist/src/buttons/button/types.js +3 -1
- package/dist/src/buttons/button/types.js.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +13 -32
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +13 -33
- package/dist/src/buttons/icon-button/index.js.map +1 -1
- package/dist/src/buttons/icon-button/types.d.ts +45 -38
- package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/types.js +5 -2
- package/dist/src/buttons/icon-button/types.js.map +1 -1
- package/dist/src/charts/area/index.d.ts +16 -31
- package/dist/src/charts/area/index.d.ts.map +1 -1
- package/dist/src/charts/area/index.js +16 -31
- package/dist/src/charts/area/index.js.map +1 -1
- package/dist/src/charts/area/types.d.ts +22 -1
- package/dist/src/charts/area/types.d.ts.map +1 -1
- package/dist/src/charts/bar/index.d.ts +12 -39
- package/dist/src/charts/bar/index.d.ts.map +1 -1
- package/dist/src/charts/bar/index.js +12 -39
- package/dist/src/charts/bar/index.js.map +1 -1
- package/dist/src/charts/bar/types.d.ts +23 -1
- package/dist/src/charts/bar/types.d.ts.map +1 -1
- package/dist/src/charts/bar-list/index.d.ts +11 -14
- package/dist/src/charts/bar-list/index.d.ts.map +1 -1
- package/dist/src/charts/bar-list/index.js +11 -14
- package/dist/src/charts/bar-list/index.js.map +1 -1
- package/dist/src/charts/bar-list/types.d.ts +9 -0
- package/dist/src/charts/bar-list/types.d.ts.map +1 -1
- package/dist/src/charts/bar-segment/index.d.ts +10 -13
- package/dist/src/charts/bar-segment/index.d.ts.map +1 -1
- package/dist/src/charts/bar-segment/index.js +10 -13
- package/dist/src/charts/bar-segment/index.js.map +1 -1
- package/dist/src/charts/bar-segment/types.d.ts +7 -0
- package/dist/src/charts/bar-segment/types.d.ts.map +1 -1
- package/dist/src/charts/line/index.d.ts +18 -17
- package/dist/src/charts/line/index.d.ts.map +1 -1
- package/dist/src/charts/line/index.js +18 -17
- package/dist/src/charts/line/index.js.map +1 -1
- package/dist/src/charts/line/types.d.ts +18 -1
- package/dist/src/charts/line/types.d.ts.map +1 -1
- package/dist/src/charts/pie/index.d.ts +11 -18
- package/dist/src/charts/pie/index.d.ts.map +1 -1
- package/dist/src/charts/pie/index.js +11 -18
- package/dist/src/charts/pie/index.js.map +1 -1
- package/dist/src/charts/pie/types.d.ts +10 -0
- package/dist/src/charts/pie/types.d.ts.map +1 -1
- package/dist/src/charts/radar/index.d.ts +15 -16
- package/dist/src/charts/radar/index.d.ts.map +1 -1
- package/dist/src/charts/radar/index.js +15 -16
- package/dist/src/charts/radar/index.js.map +1 -1
- package/dist/src/charts/radar/types.d.ts +15 -1
- package/dist/src/charts/radar/types.d.ts.map +1 -1
- package/dist/src/charts/scatter/index.d.ts +12 -13
- package/dist/src/charts/scatter/index.d.ts.map +1 -1
- package/dist/src/charts/scatter/index.js +12 -13
- package/dist/src/charts/scatter/index.js.map +1 -1
- package/dist/src/charts/scatter/types.d.ts +14 -1
- package/dist/src/charts/scatter/types.d.ts.map +1 -1
- package/dist/src/collections/data-list/index.d.ts +19 -40
- package/dist/src/collections/data-list/index.d.ts.map +1 -1
- package/dist/src/collections/data-list/index.js +19 -40
- package/dist/src/collections/data-list/index.js.map +1 -1
- package/dist/src/collections/data-list/types.d.ts +10 -6
- package/dist/src/collections/data-list/types.d.ts.map +1 -1
- package/dist/src/collections/data-list/types.js +10 -6
- package/dist/src/collections/data-list/types.js.map +1 -1
- package/dist/src/collections/gantt/index.d.ts +4668 -968
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.js +133 -81
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/gantt/types.d.ts +336 -56
- package/dist/src/collections/gantt/types.d.ts.map +1 -1
- package/dist/src/collections/gantt/types.js +142 -2
- package/dist/src/collections/gantt/types.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +11350 -8517
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +64 -53
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/table/types.d.ts +155 -17
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/collections/table/types.js +78 -14
- package/dist/src/collections/table/types.js.map +1 -1
- package/dist/src/collections/tree-view/index.d.ts +42 -70
- package/dist/src/collections/tree-view/index.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.js +40 -71
- package/dist/src/collections/tree-view/index.js.map +1 -1
- package/dist/src/collections/tree-view/types.d.ts +24 -1
- package/dist/src/collections/tree-view/types.d.ts.map +1 -1
- package/dist/src/collections/tree-view/types.js +7 -1
- package/dist/src/collections/tree-view/types.js.map +1 -1
- package/dist/src/component.d.ts +688 -21
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +15 -23
- package/dist/src/component.js.map +1 -1
- package/dist/src/container/card/index.d.ts +1387 -64
- package/dist/src/container/card/index.d.ts.map +1 -1
- package/dist/src/container/card/index.js +11 -20
- package/dist/src/container/card/index.js.map +1 -1
- package/dist/src/container/card/types.d.ts +3 -4
- package/dist/src/container/card/types.d.ts.map +1 -1
- package/dist/src/container/card/types.js +3 -4
- package/dist/src/container/card/types.js.map +1 -1
- package/dist/src/disclosure/accordion/index.d.ts +2923 -277
- package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
- package/dist/src/disclosure/accordion/index.js +35 -65
- package/dist/src/disclosure/accordion/index.js.map +1 -1
- package/dist/src/disclosure/accordion/types.d.ts +6 -1
- package/dist/src/disclosure/accordion/types.d.ts.map +1 -1
- package/dist/src/disclosure/accordion/types.js +3 -1
- package/dist/src/disclosure/accordion/types.js.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts +1391 -89
- package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.js +15 -46
- package/dist/src/disclosure/carousel/index.js.map +1 -1
- package/dist/src/disclosure/carousel/types.d.ts +9 -3
- package/dist/src/disclosure/carousel/types.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/types.js +4 -1
- package/dist/src/disclosure/carousel/types.js.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +2911 -283
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.js +18 -56
- package/dist/src/disclosure/tabs/index.js.map +1 -1
- package/dist/src/disclosure/tabs/types.d.ts +6 -1
- package/dist/src/disclosure/tabs/types.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/types.js +3 -1
- package/dist/src/disclosure/tabs/types.js.map +1 -1
- package/dist/src/display/avatar/index.d.ts +8 -33
- package/dist/src/display/avatar/index.d.ts.map +1 -1
- package/dist/src/display/avatar/index.js +8 -33
- package/dist/src/display/avatar/index.js.map +1 -1
- package/dist/src/display/badge/index.d.ts +7 -22
- package/dist/src/display/badge/index.d.ts.map +1 -1
- package/dist/src/display/badge/index.js +7 -22
- package/dist/src/display/badge/index.js.map +1 -1
- package/dist/src/display/icon/index.d.ts +4 -36
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +4 -36
- package/dist/src/display/icon/index.js.map +1 -1
- package/dist/src/display/icon/types.d.ts +1 -0
- package/dist/src/display/icon/types.d.ts.map +1 -1
- package/dist/src/display/icon/types.js +1 -0
- package/dist/src/display/icon/types.js.map +1 -1
- package/dist/src/display/stat/index.d.ts +18 -40
- package/dist/src/display/stat/index.d.ts.map +1 -1
- package/dist/src/display/stat/index.js +18 -40
- package/dist/src/display/stat/index.js.map +1 -1
- package/dist/src/display/stat/types.d.ts +10 -6
- package/dist/src/display/stat/types.d.ts.map +1 -1
- package/dist/src/display/stat/types.js +10 -6
- package/dist/src/display/stat/types.js.map +1 -1
- package/dist/src/display/tag/index.d.ts +10 -30
- package/dist/src/display/tag/index.d.ts.map +1 -1
- package/dist/src/display/tag/index.js +13 -38
- package/dist/src/display/tag/index.js.map +1 -1
- package/dist/src/display/tag/types.d.ts +6 -1
- 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/feedback/alert/index.d.ts +7 -39
- package/dist/src/feedback/alert/index.d.ts.map +1 -1
- package/dist/src/feedback/alert/index.js +7 -39
- package/dist/src/feedback/alert/index.js.map +1 -1
- package/dist/src/feedback/alert/types.d.ts +24 -13
- package/dist/src/feedback/alert/types.d.ts.map +1 -1
- package/dist/src/feedback/alert/types.js +24 -13
- package/dist/src/feedback/alert/types.js.map +1 -1
- package/dist/src/feedback/progress/index.d.ts +8 -42
- package/dist/src/feedback/progress/index.d.ts.map +1 -1
- package/dist/src/feedback/progress/index.js +8 -42
- package/dist/src/feedback/progress/index.js.map +1 -1
- package/dist/src/feedback/progress/types.d.ts +10 -5
- package/dist/src/feedback/progress/types.d.ts.map +1 -1
- package/dist/src/feedback/progress/types.js +10 -5
- package/dist/src/feedback/progress/types.js.map +1 -1
- package/dist/src/forms/checkbox/index.d.ts +13 -23
- package/dist/src/forms/checkbox/index.d.ts.map +1 -1
- package/dist/src/forms/checkbox/index.js +21 -39
- package/dist/src/forms/checkbox/index.js.map +1 -1
- package/dist/src/forms/checkbox/types.d.ts +20 -15
- package/dist/src/forms/checkbox/types.d.ts.map +1 -1
- package/dist/src/forms/checkbox/types.js +3 -1
- package/dist/src/forms/checkbox/types.js.map +1 -1
- package/dist/src/forms/field/index.d.ts +688 -7140
- package/dist/src/forms/field/index.d.ts.map +1 -1
- package/dist/src/forms/field/index.js +531 -90
- package/dist/src/forms/field/index.js.map +1 -1
- package/dist/src/forms/field/types.d.ts +730 -4
- package/dist/src/forms/field/types.d.ts.map +1 -1
- package/dist/src/forms/field/types.js +83 -1
- package/dist/src/forms/field/types.js.map +1 -1
- package/dist/src/forms/file-upload/index.d.ts +22 -52
- package/dist/src/forms/file-upload/index.d.ts.map +1 -1
- package/dist/src/forms/file-upload/index.js +15 -54
- package/dist/src/forms/file-upload/index.js.map +1 -1
- package/dist/src/forms/file-upload/types.d.ts +52 -1
- package/dist/src/forms/file-upload/types.d.ts.map +1 -1
- package/dist/src/forms/file-upload/types.js +32 -1
- package/dist/src/forms/file-upload/types.js.map +1 -1
- package/dist/src/forms/index.d.ts +1 -2
- package/dist/src/forms/index.d.ts.map +1 -1
- package/dist/src/forms/index.js +1 -2
- package/dist/src/forms/index.js.map +1 -1
- package/dist/src/forms/input/index.d.ts +70 -8
- package/dist/src/forms/input/index.d.ts.map +1 -1
- package/dist/src/forms/input/index.js +94 -93
- package/dist/src/forms/input/index.js.map +1 -1
- package/dist/src/forms/input/types.d.ts +203 -99
- package/dist/src/forms/input/types.d.ts.map +1 -1
- package/dist/src/forms/input/types.js +49 -26
- package/dist/src/forms/input/types.js.map +1 -1
- package/dist/src/forms/select/index.d.ts +22 -15
- package/dist/src/forms/select/index.d.ts.map +1 -1
- package/dist/src/forms/select/index.js +33 -34
- package/dist/src/forms/select/index.js.map +1 -1
- package/dist/src/forms/select/types.d.ts +44 -5
- package/dist/src/forms/select/types.d.ts.map +1 -1
- package/dist/src/forms/select/types.js +7 -1
- package/dist/src/forms/select/types.js.map +1 -1
- package/dist/src/forms/slider/index.d.ts +15 -31
- package/dist/src/forms/slider/index.d.ts.map +1 -1
- package/dist/src/forms/slider/index.js +26 -50
- package/dist/src/forms/slider/index.js.map +1 -1
- package/dist/src/forms/slider/types.d.ts +19 -7
- package/dist/src/forms/slider/types.d.ts.map +1 -1
- package/dist/src/forms/slider/types.js +13 -7
- package/dist/src/forms/slider/types.js.map +1 -1
- package/dist/src/forms/switch/index.d.ts +26 -23
- package/dist/src/forms/switch/index.d.ts.map +1 -1
- package/dist/src/forms/switch/index.js +33 -38
- package/dist/src/forms/switch/index.js.map +1 -1
- package/dist/src/forms/switch/types.d.ts +20 -15
- package/dist/src/forms/switch/types.d.ts.map +1 -1
- package/dist/src/forms/switch/types.js +3 -1
- package/dist/src/forms/switch/types.js.map +1 -1
- package/dist/src/forms/tags-input/index.d.ts +20 -50
- package/dist/src/forms/tags-input/index.d.ts.map +1 -1
- package/dist/src/forms/tags-input/index.js +24 -52
- package/dist/src/forms/tags-input/index.js.map +1 -1
- package/dist/src/forms/tags-input/types.d.ts +19 -1
- package/dist/src/forms/tags-input/types.d.ts.map +1 -1
- package/dist/src/forms/tags-input/types.js +10 -1
- package/dist/src/forms/tags-input/types.js.map +1 -1
- package/dist/src/forms/textarea/index.d.ts +20 -47
- package/dist/src/forms/textarea/index.d.ts.map +1 -1
- package/dist/src/forms/textarea/index.js +24 -49
- package/dist/src/forms/textarea/index.js.map +1 -1
- package/dist/src/forms/textarea/types.d.ts +25 -4
- package/dist/src/forms/textarea/types.d.ts.map +1 -1
- package/dist/src/forms/textarea/types.js +13 -4
- package/dist/src/forms/textarea/types.js.map +1 -1
- package/dist/src/index.d.ts +7 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +9 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +0 -1
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +0 -1
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +1463 -71
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js +48 -32
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/box/types.d.ts +52 -2
- package/dist/src/layout/box/types.d.ts.map +1 -1
- package/dist/src/layout/box/types.js +15 -1
- package/dist/src/layout/box/types.js.map +1 -1
- package/dist/src/layout/flex/index.d.ts +8915 -0
- package/dist/src/layout/flex/index.d.ts.map +1 -0
- package/dist/src/layout/flex/index.js +291 -0
- package/dist/src/layout/flex/index.js.map +1 -0
- package/dist/src/layout/flex/types.d.ts +176 -0
- package/dist/src/layout/flex/types.d.ts.map +1 -0
- package/dist/src/layout/flex/types.js +56 -0
- package/dist/src/layout/flex/types.js.map +1 -0
- package/dist/src/layout/grid/index.d.ts +2907 -268
- package/dist/src/layout/grid/index.d.ts.map +1 -1
- package/dist/src/layout/grid/index.js +12 -37
- package/dist/src/layout/grid/index.js.map +1 -1
- package/dist/src/layout/grid/types.d.ts +11 -3
- package/dist/src/layout/grid/types.d.ts.map +1 -1
- package/dist/src/layout/grid/types.js +11 -3
- package/dist/src/layout/grid/types.js.map +1 -1
- package/dist/src/layout/index.d.ts +1 -0
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +1 -0
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/layout/separator/index.d.ts +7 -19
- package/dist/src/layout/separator/index.d.ts.map +1 -1
- package/dist/src/layout/separator/index.js +7 -19
- package/dist/src/layout/separator/index.js.map +1 -1
- package/dist/src/layout/splitter/index.d.ts +2948 -298
- package/dist/src/layout/splitter/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.js +41 -74
- package/dist/src/layout/splitter/index.js.map +1 -1
- package/dist/src/layout/splitter/types.d.ts +31 -3
- package/dist/src/layout/splitter/types.d.ts.map +1 -1
- package/dist/src/layout/splitter/types.js +15 -1
- package/dist/src/layout/splitter/types.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts +1469 -61
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js +54 -22
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/layout/stack/types.d.ts +52 -2
- package/dist/src/layout/stack/types.d.ts.map +1 -1
- package/dist/src/layout/stack/types.js +15 -1
- package/dist/src/layout/stack/types.js.map +1 -1
- package/dist/src/overlays/action-bar/index.d.ts +24 -43
- package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/index.js +19 -41
- package/dist/src/overlays/action-bar/index.js.map +1 -1
- package/dist/src/overlays/action-bar/types.d.ts +23 -2
- package/dist/src/overlays/action-bar/types.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/types.js +8 -2
- package/dist/src/overlays/action-bar/types.js.map +1 -1
- package/dist/src/overlays/dialog/index.d.ts +2769 -118
- package/dist/src/overlays/dialog/index.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.js +17 -35
- package/dist/src/overlays/dialog/index.js.map +1 -1
- package/dist/src/overlays/dialog/types.d.ts +42 -1
- package/dist/src/overlays/dialog/types.d.ts.map +1 -1
- package/dist/src/overlays/dialog/types.js +13 -1
- package/dist/src/overlays/dialog/types.js.map +1 -1
- package/dist/src/overlays/drawer/index.d.ts +2763 -117
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js +14 -34
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/drawer/types.d.ts +25 -1
- package/dist/src/overlays/drawer/types.d.ts.map +1 -1
- package/dist/src/overlays/drawer/types.js +7 -1
- package/dist/src/overlays/drawer/types.js.map +1 -1
- package/dist/src/overlays/hover-card/index.d.ts +2763 -122
- package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.js +16 -39
- package/dist/src/overlays/hover-card/index.js.map +1 -1
- package/dist/src/overlays/hover-card/types.d.ts +17 -1
- package/dist/src/overlays/hover-card/types.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/types.js +4 -1
- package/dist/src/overlays/hover-card/types.js.map +1 -1
- package/dist/src/overlays/menu/index.d.ts +1415 -86
- package/dist/src/overlays/menu/index.d.ts.map +1 -1
- package/dist/src/overlays/menu/index.js +39 -42
- package/dist/src/overlays/menu/index.js.map +1 -1
- package/dist/src/overlays/menu/types.d.ts +13 -1
- package/dist/src/overlays/menu/types.d.ts.map +1 -1
- package/dist/src/overlays/menu/types.js +7 -3
- package/dist/src/overlays/menu/types.js.map +1 -1
- package/dist/src/overlays/popover/index.d.ts +2760 -120
- package/dist/src/overlays/popover/index.d.ts.map +1 -1
- package/dist/src/overlays/popover/index.js +13 -37
- package/dist/src/overlays/popover/index.js.map +1 -1
- package/dist/src/overlays/popover/types.d.ts +22 -1
- package/dist/src/overlays/popover/types.d.ts.map +1 -1
- package/dist/src/overlays/popover/types.js +4 -1
- package/dist/src/overlays/popover/types.js.map +1 -1
- package/dist/src/overlays/toggle-tip/index.d.ts +1387 -72
- package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/index.js +11 -29
- package/dist/src/overlays/toggle-tip/index.js.map +1 -1
- package/dist/src/overlays/toggle-tip/types.d.ts +26 -13
- package/dist/src/overlays/toggle-tip/types.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/types.js +4 -1
- package/dist/src/overlays/toggle-tip/types.js.map +1 -1
- package/dist/src/overlays/tooltip/index.d.ts +1384 -78
- package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
- package/dist/src/overlays/tooltip/index.js +8 -34
- package/dist/src/overlays/tooltip/index.js.map +1 -1
- package/dist/src/overlays/tooltip/types.d.ts +12 -3
- package/dist/src/overlays/tooltip/types.d.ts.map +1 -1
- package/dist/src/overlays/tooltip/types.js +12 -3
- package/dist/src/overlays/tooltip/types.js.map +1 -1
- package/dist/src/platform/index.d.ts +217 -1
- package/dist/src/platform/index.d.ts.map +1 -1
- package/dist/src/platform/index.js +222 -1
- package/dist/src/platform/index.js.map +1 -1
- package/dist/src/platform/state.d.ts +170 -69
- package/dist/src/platform/state.d.ts.map +1 -1
- package/dist/src/platform/state.js +252 -67
- package/dist/src/platform/state.js.map +1 -1
- package/dist/src/platform/store.d.ts +172 -0
- package/dist/src/platform/store.d.ts.map +1 -0
- package/dist/src/platform/store.js +246 -0
- package/dist/src/platform/store.js.map +1 -0
- package/dist/src/reactive/index.d.ts +69 -0
- package/dist/src/reactive/index.d.ts.map +1 -0
- package/dist/src/reactive/index.js +93 -0
- package/dist/src/reactive/index.js.map +1 -0
- package/dist/src/typography/code-block/index.d.ts +2 -1
- package/dist/src/typography/code-block/index.d.ts.map +1 -1
- package/dist/src/typography/code-block/index.js +2 -1
- package/dist/src/typography/code-block/index.js.map +1 -1
- package/dist/src/typography/code-block/types.d.ts +4 -0
- package/dist/src/typography/code-block/types.d.ts.map +1 -1
- package/dist/src/typography/code-block/types.js +2 -0
- package/dist/src/typography/code-block/types.js.map +1 -1
- package/dist/src/typography/list/index.d.ts +2 -3
- package/dist/src/typography/list/index.d.ts.map +1 -1
- package/dist/src/typography/list/index.js +2 -3
- package/dist/src/typography/list/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/src/forms/fieldset/index.d.ts +0 -112
- package/dist/src/forms/fieldset/index.d.ts.map +0 -1
- package/dist/src/forms/fieldset/index.js +0 -131
- package/dist/src/forms/fieldset/index.js.map +0 -1
- package/dist/src/forms/fieldset/types.d.ts +0 -53
- package/dist/src/forms/fieldset/types.d.ts.map +0 -1
- package/dist/src/forms/fieldset/types.js +0 -22
- package/dist/src/forms/fieldset/types.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layout/flex/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EAEb,UAAU,EACV,UAAU,EACV,SAAS,EAET,KAAK,kBAAkB,EAE1B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ3D,OAAO,EAAE,OAAO,EAAe,MAAM,EAAc,MAAM,aAAa,CAAC;AAGvE,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE3D;;;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 -0,0 +1,291 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { East, OptionType, StructType, ArrayType, variant, some, } from "@elaraai/east";
|
|
6
|
+
import { UIComponentType } from "../../component.js";
|
|
7
|
+
import { FlexStyleType } from "./types.js";
|
|
8
|
+
import { FlexDirectionType, JustifyContentType, AlignItemsType, FlexWrapType, OverflowType, } from "../../style.js";
|
|
9
|
+
import { Padding, PaddingType, Margin, MarginType } from "../style.js";
|
|
10
|
+
// Re-export style types
|
|
11
|
+
export { FlexStyleType } from "./types.js";
|
|
12
|
+
/**
|
|
13
|
+
* The concrete East type for Flex component data.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* This struct type represents the serializable data structure for a Flex component.
|
|
17
|
+
* Flex is a container component with `display: flex` applied by default.
|
|
18
|
+
*
|
|
19
|
+
* @property children - Array of child UI components
|
|
20
|
+
* @property style - Optional styling configuration wrapped in OptionType
|
|
21
|
+
*/
|
|
22
|
+
export const FlexType = StructType({
|
|
23
|
+
children: ArrayType(UIComponentType),
|
|
24
|
+
style: OptionType(FlexStyleType),
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* Creates a Flex container component with children and optional styling.
|
|
28
|
+
*
|
|
29
|
+
* @param children - Array of child UI components
|
|
30
|
+
* @param style - Optional styling configuration for the flex container
|
|
31
|
+
* @returns An East expression representing the styled flex component
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Flex is a convenience component that renders a Box with `display: flex` applied.
|
|
35
|
+
* It provides easy access to flexbox layout properties like direction, wrap,
|
|
36
|
+
* justifyContent, and alignItems.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { East } from "@elaraai/east";
|
|
41
|
+
* import { Flex, Text, UIComponentType } from "@elaraai/east-ui";
|
|
42
|
+
*
|
|
43
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
44
|
+
* return Flex.Root([
|
|
45
|
+
* Text.Root("Item 1"),
|
|
46
|
+
* Text.Root("Item 2"),
|
|
47
|
+
* ], {
|
|
48
|
+
* direction: "row",
|
|
49
|
+
* gap: "4",
|
|
50
|
+
* justifyContent: "space-between",
|
|
51
|
+
* });
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
function createFlex(children, style) {
|
|
56
|
+
const directionValue = style?.direction
|
|
57
|
+
? (typeof style.direction === "string"
|
|
58
|
+
? East.value(variant(style.direction, null), FlexDirectionType)
|
|
59
|
+
: style.direction)
|
|
60
|
+
: undefined;
|
|
61
|
+
const wrapValue = style?.wrap
|
|
62
|
+
? (typeof style.wrap === "string"
|
|
63
|
+
? East.value(variant(style.wrap, null), FlexWrapType)
|
|
64
|
+
: style.wrap)
|
|
65
|
+
: undefined;
|
|
66
|
+
const justifyContentValue = style?.justifyContent
|
|
67
|
+
? (typeof style.justifyContent === "string"
|
|
68
|
+
? East.value(variant(style.justifyContent, null), JustifyContentType)
|
|
69
|
+
: style.justifyContent)
|
|
70
|
+
: undefined;
|
|
71
|
+
const alignItemsValue = style?.alignItems
|
|
72
|
+
? (typeof style.alignItems === "string"
|
|
73
|
+
? East.value(variant(style.alignItems, null), AlignItemsType)
|
|
74
|
+
: style.alignItems)
|
|
75
|
+
: undefined;
|
|
76
|
+
const paddingValue = style?.padding
|
|
77
|
+
? (typeof style.padding === "string"
|
|
78
|
+
? East.value({
|
|
79
|
+
top: some(style.padding),
|
|
80
|
+
right: some(style.padding),
|
|
81
|
+
bottom: some(style.padding),
|
|
82
|
+
left: some(style.padding)
|
|
83
|
+
}, PaddingType)
|
|
84
|
+
: style.padding)
|
|
85
|
+
: undefined;
|
|
86
|
+
const marginValue = style?.margin
|
|
87
|
+
? (typeof style.margin === "string"
|
|
88
|
+
? East.value({
|
|
89
|
+
top: some(style.margin),
|
|
90
|
+
right: some(style.margin),
|
|
91
|
+
bottom: some(style.margin),
|
|
92
|
+
left: some(style.margin)
|
|
93
|
+
}, MarginType)
|
|
94
|
+
: style.margin)
|
|
95
|
+
: undefined;
|
|
96
|
+
const overflowValue = style?.overflow
|
|
97
|
+
? (typeof style.overflow === "string"
|
|
98
|
+
? East.value(variant(style.overflow, null), OverflowType)
|
|
99
|
+
: style.overflow)
|
|
100
|
+
: undefined;
|
|
101
|
+
const overflowXValue = style?.overflowX
|
|
102
|
+
? (typeof style.overflowX === "string"
|
|
103
|
+
? East.value(variant(style.overflowX, null), OverflowType)
|
|
104
|
+
: style.overflowX)
|
|
105
|
+
: undefined;
|
|
106
|
+
const overflowYValue = style?.overflowY
|
|
107
|
+
? (typeof style.overflowY === "string"
|
|
108
|
+
? East.value(variant(style.overflowY, null), OverflowType)
|
|
109
|
+
: style.overflowY)
|
|
110
|
+
: undefined;
|
|
111
|
+
return East.value(variant("Flex", {
|
|
112
|
+
children: children,
|
|
113
|
+
style: style ? variant("some", East.value({
|
|
114
|
+
direction: directionValue ? variant("some", directionValue) : variant("none", null),
|
|
115
|
+
wrap: wrapValue ? variant("some", wrapValue) : variant("none", null),
|
|
116
|
+
justifyContent: justifyContentValue ? variant("some", justifyContentValue) : variant("none", null),
|
|
117
|
+
alignItems: alignItemsValue ? variant("some", alignItemsValue) : variant("none", null),
|
|
118
|
+
gap: style.gap ? variant("some", style.gap) : variant("none", null),
|
|
119
|
+
width: style.width ? variant("some", style.width) : variant("none", null),
|
|
120
|
+
height: style.height ? variant("some", style.height) : variant("none", null),
|
|
121
|
+
minHeight: style.minHeight ? variant("some", style.minHeight) : variant("none", null),
|
|
122
|
+
minWidth: style.minWidth ? variant("some", style.minWidth) : variant("none", null),
|
|
123
|
+
maxHeight: style.maxHeight ? variant("some", style.maxHeight) : variant("none", null),
|
|
124
|
+
maxWidth: style.maxWidth ? variant("some", style.maxWidth) : variant("none", null),
|
|
125
|
+
overflow: overflowValue ? variant("some", overflowValue) : variant("none", null),
|
|
126
|
+
overflowX: overflowXValue ? variant("some", overflowXValue) : variant("none", null),
|
|
127
|
+
overflowY: overflowYValue ? variant("some", overflowYValue) : variant("none", null),
|
|
128
|
+
padding: paddingValue ? variant("some", paddingValue) : variant("none", null),
|
|
129
|
+
margin: marginValue ? variant("some", marginValue) : variant("none", null),
|
|
130
|
+
background: style.background ? variant("some", style.background) : variant("none", null),
|
|
131
|
+
color: style.color ? variant("some", style.color) : variant("none", null),
|
|
132
|
+
borderRadius: style.borderRadius ? variant("some", style.borderRadius) : variant("none", null),
|
|
133
|
+
}, FlexStyleType)) : variant("none", null),
|
|
134
|
+
}), UIComponentType);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Flex container component for flexbox layouts.
|
|
138
|
+
*
|
|
139
|
+
* @remarks
|
|
140
|
+
* Use `Flex.Root(children, style)` to create a flex container, or access `Flex.Types.Flex` for the East type.
|
|
141
|
+
* Flex is a convenience component that renders with `display: flex` applied by default.
|
|
142
|
+
*/
|
|
143
|
+
export const Flex = {
|
|
144
|
+
/**
|
|
145
|
+
* Creates a Flex container component with children and optional styling.
|
|
146
|
+
*
|
|
147
|
+
* @param children - Array of child UI components
|
|
148
|
+
* @param style - Optional styling configuration for the flex container
|
|
149
|
+
* @returns An East expression representing the styled flex component
|
|
150
|
+
*
|
|
151
|
+
* @remarks
|
|
152
|
+
* Flex is a convenience component that renders a Box with `display: flex` applied.
|
|
153
|
+
* It provides easy access to flexbox layout properties.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```ts
|
|
157
|
+
* import { East } from "@elaraai/east";
|
|
158
|
+
* import { Flex, Text, UIComponentType } from "@elaraai/east-ui";
|
|
159
|
+
*
|
|
160
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
161
|
+
* return Flex.Root([
|
|
162
|
+
* Text.Root("Item 1"),
|
|
163
|
+
* Text.Root("Item 2"),
|
|
164
|
+
* ], {
|
|
165
|
+
* direction: "row",
|
|
166
|
+
* gap: "4",
|
|
167
|
+
* alignItems: "center",
|
|
168
|
+
* });
|
|
169
|
+
* });
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
Root: createFlex,
|
|
173
|
+
/**
|
|
174
|
+
* Creates padding configuration for layout components.
|
|
175
|
+
*
|
|
176
|
+
* @param top - Top padding (Chakra UI spacing token or CSS value)
|
|
177
|
+
* @param right - Right padding (Chakra UI spacing token or CSS value)
|
|
178
|
+
* @param bottom - Bottom padding (Chakra UI spacing token or CSS value)
|
|
179
|
+
* @param left - Left padding (Chakra UI spacing token or CSS value)
|
|
180
|
+
* @returns An East expression representing the padding configuration
|
|
181
|
+
*
|
|
182
|
+
* @remarks
|
|
183
|
+
* Use this helper to create structured padding values for Flex components.
|
|
184
|
+
* You can also pass a plain string to the padding style property for uniform padding.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* ```ts
|
|
188
|
+
* import { Flex, Padding } from "@elaraai/east-ui";
|
|
189
|
+
*
|
|
190
|
+
* // Structured padding
|
|
191
|
+
* Flex.Root([...], {
|
|
192
|
+
* padding: Padding("4", "2", "4", "2"),
|
|
193
|
+
* });
|
|
194
|
+
*
|
|
195
|
+
* // Uniform padding (shorthand)
|
|
196
|
+
* Flex.Root([...], {
|
|
197
|
+
* padding: "4",
|
|
198
|
+
* });
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
Padding,
|
|
202
|
+
/**
|
|
203
|
+
* Creates margin configuration for layout components.
|
|
204
|
+
*
|
|
205
|
+
* @param top - Top margin (Chakra UI spacing token or CSS value)
|
|
206
|
+
* @param right - Right margin (Chakra UI spacing token or CSS value)
|
|
207
|
+
* @param bottom - Bottom margin (Chakra UI spacing token or CSS value)
|
|
208
|
+
* @param left - Left margin (Chakra UI spacing token or CSS value)
|
|
209
|
+
* @returns An East expression representing the margin configuration
|
|
210
|
+
*
|
|
211
|
+
* @remarks
|
|
212
|
+
* Use this helper to create structured margin values for Flex components.
|
|
213
|
+
* You can also pass a plain string to the margin style property for uniform margin.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```ts
|
|
217
|
+
* import { Flex, Margin } from "@elaraai/east-ui";
|
|
218
|
+
*
|
|
219
|
+
* // Structured margin
|
|
220
|
+
* Flex.Root([...], {
|
|
221
|
+
* margin: Margin("4", "auto", "4", "auto"),
|
|
222
|
+
* });
|
|
223
|
+
*
|
|
224
|
+
* // Uniform margin (shorthand)
|
|
225
|
+
* Flex.Root([...], {
|
|
226
|
+
* margin: "4",
|
|
227
|
+
* });
|
|
228
|
+
* ```
|
|
229
|
+
*/
|
|
230
|
+
Margin,
|
|
231
|
+
Types: {
|
|
232
|
+
/**
|
|
233
|
+
* The concrete East type for Flex component data.
|
|
234
|
+
*
|
|
235
|
+
* @remarks
|
|
236
|
+
* This struct type represents the serializable data structure for a Flex component.
|
|
237
|
+
* Flex is a container component with `display: flex` applied by default.
|
|
238
|
+
*
|
|
239
|
+
* @property children - Array of child UI components
|
|
240
|
+
* @property style - Optional styling configuration wrapped in OptionType
|
|
241
|
+
*/
|
|
242
|
+
Flex: FlexType,
|
|
243
|
+
/**
|
|
244
|
+
* The concrete East type for Flex component style data.
|
|
245
|
+
*
|
|
246
|
+
* @remarks
|
|
247
|
+
* All properties are optional and wrapped in {@link OptionType}.
|
|
248
|
+
*
|
|
249
|
+
* @property direction - Flex direction (row, column, row-reverse, column-reverse)
|
|
250
|
+
* @property wrap - Flex wrap behavior (nowrap, wrap, wrap-reverse)
|
|
251
|
+
* @property justifyContent - Justify content for main axis alignment
|
|
252
|
+
* @property alignItems - Align items for cross axis alignment
|
|
253
|
+
* @property gap - Gap between children
|
|
254
|
+
* @property width - Width (Chakra UI size token or CSS value)
|
|
255
|
+
* @property height - Height (Chakra UI size token or CSS value)
|
|
256
|
+
* @property padding - Padding configuration
|
|
257
|
+
* @property margin - Margin configuration
|
|
258
|
+
* @property background - Background color (Chakra UI color token or CSS color)
|
|
259
|
+
* @property color - Text color (Chakra UI color token or CSS color)
|
|
260
|
+
* @property borderRadius - Border radius (Chakra UI radius token or CSS value)
|
|
261
|
+
*/
|
|
262
|
+
Style: FlexStyleType,
|
|
263
|
+
/**
|
|
264
|
+
* The concrete East type for padding configuration.
|
|
265
|
+
*
|
|
266
|
+
* @remarks
|
|
267
|
+
* This struct type defines padding for all four sides of a flex container.
|
|
268
|
+
* Each side is optional and accepts Chakra UI spacing tokens or CSS values.
|
|
269
|
+
*
|
|
270
|
+
* @property top - Top padding (Chakra UI spacing token or CSS value)
|
|
271
|
+
* @property right - Right padding (Chakra UI spacing token or CSS value)
|
|
272
|
+
* @property bottom - Bottom padding (Chakra UI spacing token or CSS value)
|
|
273
|
+
* @property left - Left padding (Chakra UI spacing token or CSS value)
|
|
274
|
+
*/
|
|
275
|
+
Padding: PaddingType,
|
|
276
|
+
/**
|
|
277
|
+
* The concrete East type for margin configuration.
|
|
278
|
+
*
|
|
279
|
+
* @remarks
|
|
280
|
+
* This struct type defines margin for all four sides of a flex container.
|
|
281
|
+
* Each side is optional and accepts Chakra UI spacing tokens or CSS values.
|
|
282
|
+
*
|
|
283
|
+
* @property top - Top margin (Chakra UI spacing token or CSS value)
|
|
284
|
+
* @property right - Right margin (Chakra UI spacing token or CSS value)
|
|
285
|
+
* @property bottom - Bottom margin (Chakra UI spacing token or CSS value)
|
|
286
|
+
* @property left - Left margin (Chakra UI spacing token or CSS value)
|
|
287
|
+
*/
|
|
288
|
+
Margin: MarginType,
|
|
289
|
+
},
|
|
290
|
+
};
|
|
291
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/layout/flex/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EAEP,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eA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M,EAAE,IAAI,CAAC;YACxF,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC;YACzE,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC;SACjG,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC;KAC7C,CAAC,EAAE,eAAe,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,IAAI,EAAE,UAAU;IAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,OAAO;IACP;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM;IACN,KAAK,EAAE;QACH;;;;;;;;;WASG;QACH,IAAI,EAAE,QAAQ;QACd;;;;;;;;;;;;;;;;;;WAkBG;QACH,KAAK,EAAE,aAAa;QACpB;;;;;;;;;;;WAWG;QACH,OAAO,EAAE,WAAW;QACpB;;;;;;;;;;;WAWG;QACH,MAAM,EAAE,UAAU;KACrB;CACK,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
import { type SubtypeExprOrValue, OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
+
import { FlexDirectionType, JustifyContentType, AlignItemsType, FlexWrapType, OverflowType } from "../../style.js";
|
|
7
|
+
import type { FlexDirectionLiteral, JustifyContentLiteral, AlignItemsLiteral, FlexWrapLiteral, OverflowLiteral } from "../../style.js";
|
|
8
|
+
import { PaddingType, MarginType } from "../style.js";
|
|
9
|
+
/**
|
|
10
|
+
* Style configuration for Flex components.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* All style properties are optional and accept either static values or East expressions
|
|
14
|
+
* for dynamic styling. Size and spacing properties accept Chakra UI tokens or CSS values.
|
|
15
|
+
* Flex is a Box with `display: flex` applied by default.
|
|
16
|
+
*
|
|
17
|
+
* @property direction - Flex direction (row, column, row-reverse, column-reverse)
|
|
18
|
+
* @property wrap - Flex wrap behavior (nowrap, wrap, wrap-reverse)
|
|
19
|
+
* @property justifyContent - Justify content for main axis alignment
|
|
20
|
+
* @property alignItems - Align items for cross axis alignment
|
|
21
|
+
* @property gap - Gap between children (Chakra UI spacing token or CSS value)
|
|
22
|
+
* @property width - Width (Chakra UI size token or CSS value)
|
|
23
|
+
* @property height - Height (Chakra UI size token or CSS value)
|
|
24
|
+
* @property minHeight - Min height (Chakra UI size token or CSS value)
|
|
25
|
+
* @property minWidth - Min width (Chakra UI size token or CSS value)
|
|
26
|
+
* @property maxHeight - Max height (Chakra UI size token or CSS value)
|
|
27
|
+
* @property maxWidth - Max width (Chakra UI size token or CSS value)
|
|
28
|
+
* @property overflow - Overflow behavior for both axes (visible, hidden, scroll, auto)
|
|
29
|
+
* @property overflowX - Horizontal overflow behavior (visible, hidden, scroll, auto)
|
|
30
|
+
* @property overflowY - Vertical overflow behavior (visible, hidden, scroll, auto)
|
|
31
|
+
* @property padding - Padding (Chakra UI spacing token or CSS value)
|
|
32
|
+
* @property margin - Margin (Chakra UI spacing token or CSS value)
|
|
33
|
+
* @property background - Background color (Chakra UI color token or CSS color)
|
|
34
|
+
* @property color - Text color (Chakra UI color token or CSS color)
|
|
35
|
+
* @property borderRadius - Border radius (Chakra UI radius token or CSS value)
|
|
36
|
+
*/
|
|
37
|
+
export type FlexStyle = {
|
|
38
|
+
/** Flex direction (row, column, row-reverse, column-reverse) */
|
|
39
|
+
direction?: SubtypeExprOrValue<FlexDirectionType> | FlexDirectionLiteral;
|
|
40
|
+
/** Flex wrap behavior (nowrap, wrap, wrap-reverse) */
|
|
41
|
+
wrap?: SubtypeExprOrValue<FlexWrapType> | FlexWrapLiteral;
|
|
42
|
+
/** Justify content for main axis alignment */
|
|
43
|
+
justifyContent?: SubtypeExprOrValue<JustifyContentType> | JustifyContentLiteral;
|
|
44
|
+
/** Align items for cross axis alignment */
|
|
45
|
+
alignItems?: SubtypeExprOrValue<AlignItemsType> | AlignItemsLiteral;
|
|
46
|
+
/** Gap between children (Chakra UI spacing token or CSS value) */
|
|
47
|
+
gap?: SubtypeExprOrValue<StringType>;
|
|
48
|
+
/** Width (Chakra UI size token or CSS value) */
|
|
49
|
+
width?: SubtypeExprOrValue<StringType>;
|
|
50
|
+
/** Height (Chakra UI size token or CSS value) */
|
|
51
|
+
height?: SubtypeExprOrValue<StringType>;
|
|
52
|
+
/** Min height (Chakra UI size token or CSS value) */
|
|
53
|
+
minHeight?: SubtypeExprOrValue<StringType>;
|
|
54
|
+
/** Min width (Chakra UI size token or CSS value) */
|
|
55
|
+
minWidth?: SubtypeExprOrValue<StringType>;
|
|
56
|
+
/** Max height (Chakra UI size token or CSS value) */
|
|
57
|
+
maxHeight?: SubtypeExprOrValue<StringType>;
|
|
58
|
+
/** Max width (Chakra UI size token or CSS value) */
|
|
59
|
+
maxWidth?: SubtypeExprOrValue<StringType>;
|
|
60
|
+
/** Overflow behavior for both axes (visible, hidden, scroll, auto) */
|
|
61
|
+
overflow?: SubtypeExprOrValue<OverflowType> | OverflowLiteral;
|
|
62
|
+
/** Horizontal overflow behavior (visible, hidden, scroll, auto) */
|
|
63
|
+
overflowX?: SubtypeExprOrValue<OverflowType> | OverflowLiteral;
|
|
64
|
+
/** Vertical overflow behavior (visible, hidden, scroll, auto) */
|
|
65
|
+
overflowY?: SubtypeExprOrValue<OverflowType> | OverflowLiteral;
|
|
66
|
+
/** Padding configuration - use Padding() helper */
|
|
67
|
+
padding?: SubtypeExprOrValue<PaddingType> | string;
|
|
68
|
+
/** Margin configuration - use Margin() helper */
|
|
69
|
+
margin?: SubtypeExprOrValue<MarginType> | string;
|
|
70
|
+
/** Background color (Chakra UI color token or CSS color) */
|
|
71
|
+
background?: SubtypeExprOrValue<StringType>;
|
|
72
|
+
/** Text color (Chakra UI color token or CSS color) */
|
|
73
|
+
color?: SubtypeExprOrValue<StringType>;
|
|
74
|
+
/** Border radius (Chakra UI radius token or CSS value) */
|
|
75
|
+
borderRadius?: SubtypeExprOrValue<StringType>;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* The concrete East type for Flex component style data.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* All properties are optional and wrapped in {@link OptionType}.
|
|
82
|
+
* Flex is a Box with `display: flex` applied by default.
|
|
83
|
+
*
|
|
84
|
+
* @property direction - Flex direction (row, column, row-reverse, column-reverse)
|
|
85
|
+
* @property wrap - Flex wrap behavior (nowrap, wrap, wrap-reverse)
|
|
86
|
+
* @property justifyContent - Justify content for main axis alignment
|
|
87
|
+
* @property alignItems - Align items for cross axis alignment
|
|
88
|
+
* @property gap - Gap between children (Chakra UI spacing token or CSS value)
|
|
89
|
+
* @property width - Width (Chakra UI size token or CSS value)
|
|
90
|
+
* @property height - Height (Chakra UI size token or CSS value)
|
|
91
|
+
* @property minHeight - Min height (Chakra UI size token or CSS value)
|
|
92
|
+
* @property minWidth - Min width (Chakra UI size token or CSS value)
|
|
93
|
+
* @property maxHeight - Max height (Chakra UI size token or CSS value)
|
|
94
|
+
* @property maxWidth - Max width (Chakra UI size token or CSS value)
|
|
95
|
+
* @property overflow - Overflow behavior for both axes (visible, hidden, scroll, auto)
|
|
96
|
+
* @property overflowX - Horizontal overflow behavior (visible, hidden, scroll, auto)
|
|
97
|
+
* @property overflowY - Vertical overflow behavior (visible, hidden, scroll, auto)
|
|
98
|
+
* @property padding - Padding configuration
|
|
99
|
+
* @property margin - Margin configuration
|
|
100
|
+
* @property background - Background color (Chakra UI color token or CSS color)
|
|
101
|
+
* @property color - Text color (Chakra UI color token or CSS color)
|
|
102
|
+
* @property borderRadius - Border radius (Chakra UI radius token or CSS value)
|
|
103
|
+
*/
|
|
104
|
+
export declare const FlexStyleType: StructType<{
|
|
105
|
+
direction: OptionType<import("@elaraai/east").VariantType<{
|
|
106
|
+
row: import("@elaraai/east").NullType;
|
|
107
|
+
column: import("@elaraai/east").NullType;
|
|
108
|
+
"row-reverse": import("@elaraai/east").NullType;
|
|
109
|
+
"column-reverse": import("@elaraai/east").NullType;
|
|
110
|
+
}>>;
|
|
111
|
+
wrap: OptionType<import("@elaraai/east").VariantType<{
|
|
112
|
+
nowrap: import("@elaraai/east").NullType;
|
|
113
|
+
wrap: import("@elaraai/east").NullType;
|
|
114
|
+
"wrap-reverse": import("@elaraai/east").NullType;
|
|
115
|
+
}>>;
|
|
116
|
+
justifyContent: OptionType<import("@elaraai/east").VariantType<{
|
|
117
|
+
"flex-start": import("@elaraai/east").NullType;
|
|
118
|
+
"flex-end": import("@elaraai/east").NullType;
|
|
119
|
+
center: import("@elaraai/east").NullType;
|
|
120
|
+
"space-between": import("@elaraai/east").NullType;
|
|
121
|
+
"space-around": import("@elaraai/east").NullType;
|
|
122
|
+
"space-evenly": import("@elaraai/east").NullType;
|
|
123
|
+
}>>;
|
|
124
|
+
alignItems: OptionType<import("@elaraai/east").VariantType<{
|
|
125
|
+
"flex-start": import("@elaraai/east").NullType;
|
|
126
|
+
"flex-end": import("@elaraai/east").NullType;
|
|
127
|
+
center: import("@elaraai/east").NullType;
|
|
128
|
+
baseline: import("@elaraai/east").NullType;
|
|
129
|
+
stretch: import("@elaraai/east").NullType;
|
|
130
|
+
}>>;
|
|
131
|
+
gap: OptionType<StringType>;
|
|
132
|
+
width: OptionType<StringType>;
|
|
133
|
+
height: OptionType<StringType>;
|
|
134
|
+
minHeight: OptionType<StringType>;
|
|
135
|
+
minWidth: OptionType<StringType>;
|
|
136
|
+
maxHeight: OptionType<StringType>;
|
|
137
|
+
maxWidth: OptionType<StringType>;
|
|
138
|
+
overflow: OptionType<import("@elaraai/east").VariantType<{
|
|
139
|
+
visible: import("@elaraai/east").NullType;
|
|
140
|
+
hidden: import("@elaraai/east").NullType;
|
|
141
|
+
scroll: import("@elaraai/east").NullType;
|
|
142
|
+
auto: import("@elaraai/east").NullType;
|
|
143
|
+
}>>;
|
|
144
|
+
overflowX: OptionType<import("@elaraai/east").VariantType<{
|
|
145
|
+
visible: import("@elaraai/east").NullType;
|
|
146
|
+
hidden: import("@elaraai/east").NullType;
|
|
147
|
+
scroll: import("@elaraai/east").NullType;
|
|
148
|
+
auto: import("@elaraai/east").NullType;
|
|
149
|
+
}>>;
|
|
150
|
+
overflowY: OptionType<import("@elaraai/east").VariantType<{
|
|
151
|
+
visible: import("@elaraai/east").NullType;
|
|
152
|
+
hidden: import("@elaraai/east").NullType;
|
|
153
|
+
scroll: import("@elaraai/east").NullType;
|
|
154
|
+
auto: import("@elaraai/east").NullType;
|
|
155
|
+
}>>;
|
|
156
|
+
padding: OptionType<StructType<{
|
|
157
|
+
top: OptionType<StringType>;
|
|
158
|
+
right: OptionType<StringType>;
|
|
159
|
+
bottom: OptionType<StringType>;
|
|
160
|
+
left: OptionType<StringType>;
|
|
161
|
+
}>>;
|
|
162
|
+
margin: OptionType<StructType<{
|
|
163
|
+
top: OptionType<StringType>;
|
|
164
|
+
right: OptionType<StringType>;
|
|
165
|
+
bottom: OptionType<StringType>;
|
|
166
|
+
left: OptionType<StringType>;
|
|
167
|
+
}>>;
|
|
168
|
+
background: OptionType<StringType>;
|
|
169
|
+
color: OptionType<StringType>;
|
|
170
|
+
borderRadius: OptionType<StringType>;
|
|
171
|
+
}>;
|
|
172
|
+
/**
|
|
173
|
+
* Type representing Flex style structure.
|
|
174
|
+
*/
|
|
175
|
+
export type FlexStyleType = typeof FlexStyleType;
|
|
176
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layout/flex/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACR,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,eAAe,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMtD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,gEAAgE;IAChE,SAAS,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,oBAAoB,CAAC;IACzE,sDAAsD;IACtD,IAAI,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,GAAG,eAAe,CAAC;IAC1D,8CAA8C;IAC9C,cAAc,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,qBAAqB,CAAC;IAChF,2CAA2C;IAC3C,UAAU,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,GAAG,iBAAiB,CAAC;IACpE,kEAAkE;IAClE,GAAG,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACrC,gDAAgD;IAChD,KAAK,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACvC,iDAAiD;IACjD,MAAM,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACxC,qDAAqD;IACrD,SAAS,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC3C,oDAAoD;IACpD,Q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
import { OptionType, StringType, StructType, } from "@elaraai/east";
|
|
6
|
+
import { FlexDirectionType, JustifyContentType, AlignItemsType, FlexWrapType, OverflowType, } from "../../style.js";
|
|
7
|
+
import { PaddingType, MarginType } from "../style.js";
|
|
8
|
+
/**
|
|
9
|
+
* The concrete East type for Flex component style data.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* All properties are optional and wrapped in {@link OptionType}.
|
|
13
|
+
* Flex is a Box with `display: flex` applied by default.
|
|
14
|
+
*
|
|
15
|
+
* @property direction - Flex direction (row, column, row-reverse, column-reverse)
|
|
16
|
+
* @property wrap - Flex wrap behavior (nowrap, wrap, wrap-reverse)
|
|
17
|
+
* @property justifyContent - Justify content for main axis alignment
|
|
18
|
+
* @property alignItems - Align items for cross axis alignment
|
|
19
|
+
* @property gap - Gap between children (Chakra UI spacing token or CSS value)
|
|
20
|
+
* @property width - Width (Chakra UI size token or CSS value)
|
|
21
|
+
* @property height - Height (Chakra UI size token or CSS value)
|
|
22
|
+
* @property minHeight - Min height (Chakra UI size token or CSS value)
|
|
23
|
+
* @property minWidth - Min width (Chakra UI size token or CSS value)
|
|
24
|
+
* @property maxHeight - Max height (Chakra UI size token or CSS value)
|
|
25
|
+
* @property maxWidth - Max width (Chakra UI size token or CSS value)
|
|
26
|
+
* @property overflow - Overflow behavior for both axes (visible, hidden, scroll, auto)
|
|
27
|
+
* @property overflowX - Horizontal overflow behavior (visible, hidden, scroll, auto)
|
|
28
|
+
* @property overflowY - Vertical overflow behavior (visible, hidden, scroll, auto)
|
|
29
|
+
* @property padding - Padding configuration
|
|
30
|
+
* @property margin - Margin configuration
|
|
31
|
+
* @property background - Background color (Chakra UI color token or CSS color)
|
|
32
|
+
* @property color - Text color (Chakra UI color token or CSS color)
|
|
33
|
+
* @property borderRadius - Border radius (Chakra UI radius token or CSS value)
|
|
34
|
+
*/
|
|
35
|
+
export const FlexStyleType = StructType({
|
|
36
|
+
direction: OptionType(FlexDirectionType),
|
|
37
|
+
wrap: OptionType(FlexWrapType),
|
|
38
|
+
justifyContent: OptionType(JustifyContentType),
|
|
39
|
+
alignItems: OptionType(AlignItemsType),
|
|
40
|
+
gap: OptionType(StringType),
|
|
41
|
+
width: OptionType(StringType),
|
|
42
|
+
height: OptionType(StringType),
|
|
43
|
+
minHeight: OptionType(StringType),
|
|
44
|
+
minWidth: OptionType(StringType),
|
|
45
|
+
maxHeight: OptionType(StringType),
|
|
46
|
+
maxWidth: OptionType(StringType),
|
|
47
|
+
overflow: OptionType(OverflowType),
|
|
48
|
+
overflowX: OptionType(OverflowType),
|
|
49
|
+
overflowY: OptionType(OverflowType),
|
|
50
|
+
padding: OptionType(PaddingType),
|
|
51
|
+
margin: OptionType(MarginType),
|
|
52
|
+
background: OptionType(StringType),
|
|
53
|
+
color: OptionType(StringType),
|
|
54
|
+
borderRadius: OptionType(StringType),
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/layout/flex/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,UAAU,EACV,UAAU,EACV,UAAU,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,GACf,MAAM,gBAAgB,CAAC;AAQxB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA2EtD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC;IACpC,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACxC,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC;IAC9B,cAAc,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAC9C,UAAU,EAAE,UAAU,CAAC,cAAc,CAAC;IACtC,GAAG,EAAE,UAAU,CAAC,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