@accelint/design-system 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4CPMP3H7.js +418 -0
- package/dist/chunk-4CPMP3H7.js.map +1 -0
- package/dist/{styles.css → index.css} +885 -779
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +871 -8
- package/dist/index.js +5278 -66
- package/dist/index.js.map +1 -1
- package/dist/vanilla-DUNpoS8t.d.ts +2514 -0
- package/dist/vanilla.d.ts +9 -30
- package/dist/vanilla.js +3 -27
- package/dist/vanilla.js.map +1 -0
- package/package.json +13 -19
- package/dist/assets/components/button/button.css +0 -55
- package/dist/assets/components/checkbox/checkbox.css +0 -73
- package/dist/assets/components/chip/chip.css +0 -62
- package/dist/assets/components/combo-box/combo-box.css +0 -66
- package/dist/assets/components/dialog/dialog.css +0 -51
- package/dist/assets/components/drawer/drawer.css +0 -135
- package/dist/assets/components/group/group.css +0 -33
- package/dist/assets/components/icon/icon.css +0 -19
- package/dist/assets/components/input/input.css +0 -29
- package/dist/assets/components/menu/menu.css +0 -85
- package/dist/assets/components/options/options.css +0 -82
- package/dist/assets/components/picker/picker.css +0 -47
- package/dist/assets/components/popover/popover.css +0 -26
- package/dist/assets/components/query-builder/query-builder.css +0 -129
- package/dist/assets/components/radio/radio.css +0 -67
- package/dist/assets/components/search-field/search-field.css +0 -62
- package/dist/assets/components/select/select.css +0 -33
- package/dist/assets/components/switch/switch.css +0 -62
- package/dist/assets/components/tabs/tabs.css +0 -144
- package/dist/assets/components/textarea/textarea.css +0 -32
- package/dist/assets/components/tooltip/tooltip.css +0 -54
- package/dist/assets/components/tree/tree.css +0 -157
- package/dist/assets/hooks/use-theme/use-theme.css +0 -6
- package/dist/assets/src/components/button/button.css.ts.vanilla-9uttMYGm.css +0 -55
- package/dist/assets/src/components/checkbox/checkbox.css.ts.vanilla-Bewmypyn.css +0 -73
- package/dist/assets/src/components/chip/chip.css.ts.vanilla-CsGhxrlu.css +0 -62
- package/dist/assets/src/components/combo-box/combo-box.css.ts.vanilla-BNEPKjPm.css +0 -66
- package/dist/assets/src/components/dialog/dialog.css.ts.vanilla-CG0m-NJD.css +0 -51
- package/dist/assets/src/components/drawer/drawer.css.ts.vanilla-DEfHnoNS.css +0 -135
- package/dist/assets/src/components/group/group.css.ts.vanilla-DR69xgQy.css +0 -33
- package/dist/assets/src/components/icon/icon.css.ts.vanilla-CoUAfp2F.css +0 -19
- package/dist/assets/src/components/input/input.css.ts.vanilla-DoK5h9SX.css +0 -29
- package/dist/assets/src/components/menu/menu.css.ts.vanilla-LoWLg-jE.css +0 -85
- package/dist/assets/src/components/options/options.css.ts.vanilla-CWWFBTou.css +0 -82
- package/dist/assets/src/components/picker/picker.css.ts.vanilla-Fe0YXv-c.css +0 -47
- package/dist/assets/src/components/popover/popover.css.ts.vanilla-C5YGwwVD.css +0 -26
- package/dist/assets/src/components/query-builder/query-builder.css.ts.vanilla-B3P9cbCv.css +0 -129
- package/dist/assets/src/components/radio/radio.css.ts.vanilla-gi-KedQc.css +0 -67
- package/dist/assets/src/components/search-field/search-field.css.ts.vanilla-B_JL53f8.css +0 -62
- package/dist/assets/src/components/select/select.css.ts.vanilla-C94A60jf.css +0 -33
- package/dist/assets/src/components/switch/switch.css.ts.vanilla-DkQwtRa6.css +0 -62
- package/dist/assets/src/components/tabs/tabs.css.ts.vanilla-BygIflpl.css +0 -144
- package/dist/assets/src/components/textarea/textarea.css.ts.vanilla-Ba6E5HFc.css +0 -32
- package/dist/assets/src/components/tooltip/tooltip.css.ts.vanilla-BntxAlwN.css +0 -54
- package/dist/assets/src/components/tree/tree.css.ts.vanilla-SLmhk0zZ.css +0 -157
- package/dist/assets/src/hooks/use-theme/use-theme.css.ts.vanilla-zkVHnGkP.css +0 -6
- package/dist/assets/src/styles/layers.css.ts.vanilla-B2GUgnOF.css +0 -21
- package/dist/assets/src/styles/reset.css.ts.vanilla-C8PShXm0.css +0 -31
- package/dist/assets/src/styles/space.css.ts.vanilla-Md6Whc4G.css +0 -18
- package/dist/assets/src/styles/surfaces.css.ts.vanilla-Ckztx7VT.css +0 -24
- package/dist/assets/src/styles/theme.css.ts.vanilla-aDPSIzBK.css +0 -208
- package/dist/assets/src/styles/typography.css.ts.vanilla-DRT9H7rd.css +0 -150
- package/dist/assets/styles/layers.css +0 -21
- package/dist/assets/styles/reset.css +0 -31
- package/dist/assets/styles/space.css +0 -18
- package/dist/assets/styles/surfaces.css +0 -24
- package/dist/assets/styles/theme.css +0 -208
- package/dist/assets/styles/typography.css +0 -150
- package/dist/components/aria/aria.d.ts +0 -19
- package/dist/components/aria/aria.js +0 -36
- package/dist/components/aria/aria.js.map +0 -1
- package/dist/components/aria/index.d.ts +0 -1
- package/dist/components/button/button.css.d.ts +0 -33
- package/dist/components/button/button.d.ts +0 -39
- package/dist/components/button/button.js +0 -71
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/button.vanilla.js +0 -8
- package/dist/components/button/button.vanilla.js.map +0 -1
- package/dist/components/button/index.d.ts +0 -3
- package/dist/components/button/types.d.ts +0 -28
- package/dist/components/checkbox/checkbox.css.d.ts +0 -35
- package/dist/components/checkbox/checkbox.d.ts +0 -21
- package/dist/components/checkbox/checkbox.js +0 -68
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/checkbox/checkbox.vanilla.js +0 -9
- package/dist/components/checkbox/checkbox.vanilla.js.map +0 -1
- package/dist/components/checkbox/index.d.ts +0 -3
- package/dist/components/checkbox/types.d.ts +0 -38
- package/dist/components/chip/chip.css.d.ts +0 -31
- package/dist/components/chip/chip.d.ts +0 -30
- package/dist/components/chip/chip.js +0 -106
- package/dist/components/chip/chip.js.map +0 -1
- package/dist/components/chip/chip.vanilla.js +0 -8
- package/dist/components/chip/chip.vanilla.js.map +0 -1
- package/dist/components/chip/index.d.ts +0 -3
- package/dist/components/chip/types.d.ts +0 -31
- package/dist/components/collection/collection.d.ts +0 -13
- package/dist/components/collection/collection.js +0 -15
- package/dist/components/collection/collection.js.map +0 -1
- package/dist/components/collection/index.d.ts +0 -1
- package/dist/components/combo-box/combo-box.css.d.ts +0 -22
- package/dist/components/combo-box/combo-box.d.ts +0 -8
- package/dist/components/combo-box/combo-box.js +0 -87
- package/dist/components/combo-box/combo-box.js.map +0 -1
- package/dist/components/combo-box/combo-box.vanilla.js +0 -8
- package/dist/components/combo-box/combo-box.vanilla.js.map +0 -1
- package/dist/components/combo-box/index.d.ts +0 -3
- package/dist/components/combo-box/types.d.ts +0 -32
- package/dist/components/dialog/dialog.css.d.ts +0 -34
- package/dist/components/dialog/dialog.d.ts +0 -18
- package/dist/components/dialog/dialog.js +0 -146
- package/dist/components/dialog/dialog.js.map +0 -1
- package/dist/components/dialog/dialog.vanilla.js +0 -8
- package/dist/components/dialog/dialog.vanilla.js.map +0 -1
- package/dist/components/dialog/index.d.ts +0 -3
- package/dist/components/dialog/types.d.ts +0 -48
- package/dist/components/drawer/drawer.css.d.ts +0 -33
- package/dist/components/drawer/drawer.d.ts +0 -13
- package/dist/components/drawer/drawer.js +0 -199
- package/dist/components/drawer/drawer.js.map +0 -1
- package/dist/components/drawer/drawer.vanilla.js +0 -10
- package/dist/components/drawer/drawer.vanilla.js.map +0 -1
- package/dist/components/drawer/index.d.ts +0 -3
- package/dist/components/drawer/types.d.ts +0 -71
- package/dist/components/element/element.d.ts +0 -11
- package/dist/components/element/element.js +0 -21
- package/dist/components/element/element.js.map +0 -1
- package/dist/components/element/index.d.ts +0 -2
- package/dist/components/element/types.d.ts +0 -21
- package/dist/components/group/group.css.d.ts +0 -14
- package/dist/components/group/group.d.ts +0 -10
- package/dist/components/group/group.js +0 -44
- package/dist/components/group/group.js.map +0 -1
- package/dist/components/group/group.vanilla.js +0 -7
- package/dist/components/group/group.vanilla.js.map +0 -1
- package/dist/components/group/index.d.ts +0 -3
- package/dist/components/group/types.d.ts +0 -35
- package/dist/components/icon/icon.css.d.ts +0 -18
- package/dist/components/icon/icon.d.ts +0 -12
- package/dist/components/icon/icon.js +0 -26
- package/dist/components/icon/icon.js.map +0 -1
- package/dist/components/icon/icon.vanilla.js +0 -8
- package/dist/components/icon/icon.vanilla.js.map +0 -1
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/components/icon/types.d.ts +0 -13
- package/dist/components/index.d.ts +0 -26
- package/dist/components/input/index.d.ts +0 -3
- package/dist/components/input/input.css.d.ts +0 -29
- package/dist/components/input/input.d.ts +0 -8
- package/dist/components/input/input.js +0 -93
- package/dist/components/input/input.js.map +0 -1
- package/dist/components/input/input.vanilla.js +0 -8
- package/dist/components/input/input.vanilla.js.map +0 -1
- package/dist/components/input/types.d.ts +0 -44
- package/dist/components/menu/index.d.ts +0 -3
- package/dist/components/menu/menu.css.d.ts +0 -75
- package/dist/components/menu/menu.d.ts +0 -24
- package/dist/components/menu/menu.js +0 -155
- package/dist/components/menu/menu.js.map +0 -1
- package/dist/components/menu/menu.vanilla.js +0 -8
- package/dist/components/menu/menu.vanilla.js.map +0 -1
- package/dist/components/menu/types.d.ts +0 -48
- package/dist/components/merge-provider/index.d.ts +0 -2
- package/dist/components/merge-provider/merge-provider.d.ts +0 -14
- package/dist/components/merge-provider/merge-provider.js +0 -40
- package/dist/components/merge-provider/merge-provider.js.map +0 -1
- package/dist/components/merge-provider/types.d.ts +0 -5
- package/dist/components/options/index.d.ts +0 -3
- package/dist/components/options/options.css.d.ts +0 -79
- package/dist/components/options/options.d.ts +0 -20
- package/dist/components/options/options.js +0 -152
- package/dist/components/options/options.js.map +0 -1
- package/dist/components/options/options.vanilla.js +0 -10
- package/dist/components/options/options.vanilla.js.map +0 -1
- package/dist/components/options/types.d.ts +0 -49
- package/dist/components/picker/index.d.ts +0 -3
- package/dist/components/picker/picker.css.d.ts +0 -32
- package/dist/components/picker/picker.d.ts +0 -18
- package/dist/components/picker/picker.js +0 -46
- package/dist/components/picker/picker.js.map +0 -1
- package/dist/components/picker/picker.stories.css.d.ts +0 -3
- package/dist/components/picker/picker.vanilla.js +0 -9
- package/dist/components/picker/picker.vanilla.js.map +0 -1
- package/dist/components/picker/types.d.ts +0 -28
- package/dist/components/popover/index.d.ts +0 -3
- package/dist/components/popover/popover.css.d.ts +0 -31
- package/dist/components/popover/popover.d.ts +0 -8
- package/dist/components/popover/popover.js +0 -110
- package/dist/components/popover/popover.js.map +0 -1
- package/dist/components/popover/popover.vanilla.js +0 -7
- package/dist/components/popover/popover.vanilla.js.map +0 -1
- package/dist/components/popover/types.d.ts +0 -32
- package/dist/components/query-builder/action-element.d.ts +0 -2
- package/dist/components/query-builder/action-element.js +0 -12
- package/dist/components/query-builder/action-element.js.map +0 -1
- package/dist/components/query-builder/constants.d.ts +0 -4
- package/dist/components/query-builder/constants.js +0 -20
- package/dist/components/query-builder/constants.js.map +0 -1
- package/dist/components/query-builder/dataset-sample.d.ts +0 -91
- package/dist/components/query-builder/group.d.ts +0 -5
- package/dist/components/query-builder/group.js +0 -87
- package/dist/components/query-builder/group.js.map +0 -1
- package/dist/components/query-builder/index.d.ts +0 -5
- package/dist/components/query-builder/query-builder.css.d.ts +0 -91
- package/dist/components/query-builder/query-builder.d.ts +0 -2
- package/dist/components/query-builder/query-builder.js +0 -129
- package/dist/components/query-builder/query-builder.js.map +0 -1
- package/dist/components/query-builder/query-builder.vanilla.js +0 -10
- package/dist/components/query-builder/query-builder.vanilla.js.map +0 -1
- package/dist/components/query-builder/rule.d.ts +0 -3
- package/dist/components/query-builder/rule.js +0 -112
- package/dist/components/query-builder/rule.js.map +0 -1
- package/dist/components/query-builder/types.d.ts +0 -128
- package/dist/components/query-builder/utils.d.ts +0 -29
- package/dist/components/query-builder/utils.js +0 -22
- package/dist/components/query-builder/utils.js.map +0 -1
- package/dist/components/query-builder/value-editor.d.ts +0 -4
- package/dist/components/query-builder/value-editor.js +0 -74
- package/dist/components/query-builder/value-editor.js.map +0 -1
- package/dist/components/query-builder/value-selector.d.ts +0 -2
- package/dist/components/query-builder/value-selector.js +0 -28
- package/dist/components/query-builder/value-selector.js.map +0 -1
- package/dist/components/radio/index.d.ts +0 -3
- package/dist/components/radio/radio.css.d.ts +0 -34
- package/dist/components/radio/radio.d.ts +0 -16
- package/dist/components/radio/radio.js +0 -63
- package/dist/components/radio/radio.js.map +0 -1
- package/dist/components/radio/radio.vanilla.js +0 -8
- package/dist/components/radio/radio.vanilla.js.map +0 -1
- package/dist/components/radio/types.d.ts +0 -29
- package/dist/components/search-field/index.d.ts +0 -3
- package/dist/components/search-field/search-field.css.d.ts +0 -16
- package/dist/components/search-field/search-field.d.ts +0 -9
- package/dist/components/search-field/search-field.js +0 -60
- package/dist/components/search-field/search-field.js.map +0 -1
- package/dist/components/search-field/search-field.vanilla.js +0 -7
- package/dist/components/search-field/search-field.vanilla.js.map +0 -1
- package/dist/components/search-field/types.d.ts +0 -29
- package/dist/components/select/index.d.ts +0 -3
- package/dist/components/select/select.css.d.ts +0 -25
- package/dist/components/select/select.d.ts +0 -8
- package/dist/components/select/select.js +0 -80
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/select/select.vanilla.js +0 -8
- package/dist/components/select/select.vanilla.js.map +0 -1
- package/dist/components/select/types.d.ts +0 -30
- package/dist/components/switch/index.d.ts +0 -3
- package/dist/components/switch/switch.css.d.ts +0 -25
- package/dist/components/switch/switch.d.ts +0 -4
- package/dist/components/switch/switch.js +0 -34
- package/dist/components/switch/switch.js.map +0 -1
- package/dist/components/switch/switch.vanilla.js +0 -8
- package/dist/components/switch/switch.vanilla.js.map +0 -1
- package/dist/components/switch/types.d.ts +0 -17
- package/dist/components/tabs/index.d.ts +0 -3
- package/dist/components/tabs/tabs.css.d.ts +0 -49
- package/dist/components/tabs/tabs.d.ts +0 -68
- package/dist/components/tabs/tabs.js +0 -108
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/tabs/tabs.vanilla.js +0 -11
- package/dist/components/tabs/tabs.vanilla.js.map +0 -1
- package/dist/components/tabs/types.d.ts +0 -82
- package/dist/components/textarea/index.d.ts +0 -3
- package/dist/components/textarea/textarea.css.d.ts +0 -31
- package/dist/components/textarea/textarea.d.ts +0 -14
- package/dist/components/textarea/textarea.js +0 -86
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textarea.vanilla.js +0 -8
- package/dist/components/textarea/textarea.vanilla.js.map +0 -1
- package/dist/components/textarea/types.d.ts +0 -39
- package/dist/components/tooltip/index.d.ts +0 -3
- package/dist/components/tooltip/tooltip.css.d.ts +0 -23
- package/dist/components/tooltip/tooltip.d.ts +0 -23
- package/dist/components/tooltip/tooltip.js +0 -69
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltip.vanilla.js +0 -8
- package/dist/components/tooltip/tooltip.vanilla.js.map +0 -1
- package/dist/components/tooltip/types.d.ts +0 -39
- package/dist/components/tree/index.d.ts +0 -3
- package/dist/components/tree/tree.css.d.ts +0 -73
- package/dist/components/tree/tree.d.ts +0 -5
- package/dist/components/tree/tree.js +0 -337
- package/dist/components/tree/tree.js.map +0 -1
- package/dist/components/tree/tree.vanilla.js +0 -11
- package/dist/components/tree/tree.vanilla.js.map +0 -1
- package/dist/components/tree/types.d.ts +0 -114
- package/dist/components/tree/utils.d.ts +0 -8
- package/dist/components/tree/utils.js +0 -75
- package/dist/components/tree/utils.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -8
- package/dist/hooks/use-collection-render/index.d.ts +0 -1
- package/dist/hooks/use-collection-render/use-collection-render.d.ts +0 -9
- package/dist/hooks/use-collection-render/use-collection-render.js +0 -20
- package/dist/hooks/use-collection-render/use-collection-render.js.map +0 -1
- package/dist/hooks/use-context-props/index.d.ts +0 -1
- package/dist/hooks/use-context-props/use-context-props.d.ts +0 -7
- package/dist/hooks/use-context-props/use-context-props.js +0 -15
- package/dist/hooks/use-context-props/use-context-props.js.map +0 -1
- package/dist/hooks/use-defaults/index.d.ts +0 -2
- package/dist/hooks/use-defaults/types.d.ts +0 -67
- package/dist/hooks/use-defaults/use-defaults.d.ts +0 -56
- package/dist/hooks/use-defaults/use-defaults.js +0 -21
- package/dist/hooks/use-defaults/use-defaults.js.map +0 -1
- package/dist/hooks/use-propagating-press/index.d.ts +0 -1
- package/dist/hooks/use-propagating-press/use-propagating-press.d.ts +0 -9
- package/dist/hooks/use-propagating-press/use-propagating-press.js +0 -14
- package/dist/hooks/use-propagating-press/use-propagating-press.js.map +0 -1
- package/dist/hooks/use-slot/index.d.ts +0 -1
- package/dist/hooks/use-slot/use-slot.d.ts +0 -13
- package/dist/hooks/use-slot/use-slot.js +0 -18
- package/dist/hooks/use-slot/use-slot.js.map +0 -1
- package/dist/hooks/use-theme/index.d.ts +0 -2
- package/dist/hooks/use-theme/types.d.ts +0 -86
- package/dist/hooks/use-theme/use-theme.css.d.ts +0 -1
- package/dist/hooks/use-theme/use-theme.d.ts +0 -13
- package/dist/hooks/use-theme/use-theme.js +0 -64
- package/dist/hooks/use-theme/use-theme.js.map +0 -1
- package/dist/hooks/use-theme/use-theme.vanilla.js +0 -4
- package/dist/hooks/use-theme/use-theme.vanilla.js.map +0 -1
- package/dist/hooks/use-tree/index.d.ts +0 -1
- package/dist/hooks/use-tree/use-tree.d.ts +0 -2
- package/dist/hooks/use-tree/use-tree.js +0 -217
- package/dist/hooks/use-tree/use-tree.js.map +0 -1
- package/dist/hooks/use-tree/utils.d.ts +0 -6
- package/dist/hooks/use-tree/utils.js +0 -77
- package/dist/hooks/use-tree/utils.js.map +0 -1
- package/dist/hooks/use-update-effect/index.d.ts +0 -1
- package/dist/hooks/use-update-effect/use-update-effect.d.ts +0 -1
- package/dist/hooks/use-update-effect/use-update-effect.js +0 -20
- package/dist/hooks/use-update-effect/use-update-effect.js.map +0 -1
- package/dist/ladle/actions.d.ts +0 -1
- package/dist/ladle/index.d.ts +0 -1
- package/dist/styles/index.d.ts +0 -6
- package/dist/styles/layers.css.d.ts +0 -16
- package/dist/styles/layers.vanilla.js +0 -4
- package/dist/styles/layers.vanilla.js.map +0 -1
- package/dist/styles/reset.css.d.ts +0 -1
- package/dist/styles/space.css.d.ts +0 -1
- package/dist/styles/surfaces.css.d.ts +0 -4
- package/dist/styles/surfaces.vanilla.js +0 -4
- package/dist/styles/surfaces.vanilla.js.map +0 -1
- package/dist/styles/theme.css.d.ts +0 -334
- package/dist/styles/theme.vanilla.js +0 -31
- package/dist/styles/theme.vanilla.js.map +0 -1
- package/dist/styles/typography.css.d.ts +0 -17
- package/dist/styles/typography.vanilla.js +0 -8
- package/dist/styles/typography.vanilla.js.map +0 -1
- package/dist/test/setup.d.ts +0 -1
- package/dist/types/deckgl.d.ts +0 -1
- package/dist/types/generic.d.ts +0 -3
- package/dist/types/index.d.ts +0 -6
- package/dist/types/props.d.ts +0 -4
- package/dist/types/react-aria.d.ts +0 -91
- package/dist/types/use-tree.d.ts +0 -52
- package/dist/types/vanilla-extract.d.ts +0 -15
- package/dist/utils/css.d.ts +0 -139
- package/dist/utils/css.js +0 -145
- package/dist/utils/css.js.map +0 -1
- package/dist/utils/events.d.ts +0 -10
- package/dist/utils/events.js +0 -5
- package/dist/utils/events.js.map +0 -1
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/props.d.ts +0 -29
- package/dist/utils/props.js +0 -108
- package/dist/utils/props.js.map +0 -1
- package/dist/utils/validators.d.ts +0 -49
- package/dist/utils/validators.js +0 -37
- package/dist/utils/validators.js.map +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ItemDropTarget } from '@react-types/shared';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import type { Collection, Node } from 'react-stately';
|
|
4
|
-
/**
|
|
5
|
-
* Copied from RAC, unexported hook: https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/Collection.tsx#L148
|
|
6
|
-
*
|
|
7
|
-
* Hook serves as the basis of the root and branch renderers for Collections: https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/Collection.tsx#L139
|
|
8
|
-
*/
|
|
9
|
-
export declare function useCollectionRender(collection: Collection<Node<unknown>>, parent: Node<unknown> | null, renderDropIndicator?: (target: ItemDropTarget) => ReactNode): ReactNode;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useCachedChildren } from '@react-aria/collections';
|
|
3
|
-
|
|
4
|
-
function useCollectionRender(collection, parent, renderDropIndicator) {
|
|
5
|
-
return useCachedChildren({
|
|
6
|
-
items: parent ? collection.getChildren(parent.key) : collection,
|
|
7
|
-
dependencies: [renderDropIndicator],
|
|
8
|
-
children(node) {
|
|
9
|
-
const rendered = node.render(node);
|
|
10
|
-
if (!renderDropIndicator || node.type !== "item") {
|
|
11
|
-
return rendered;
|
|
12
|
-
}
|
|
13
|
-
const { key } = node;
|
|
14
|
-
const keyAfter = collection.getKeyAfter(key);
|
|
15
|
-
return jsxs(Fragment, { children: [renderDropIndicator({ type: "item", key, dropPosition: "before" }), rendered, (keyAfter == null || collection.getItem(keyAfter)?.type !== "item") && renderDropIndicator({ type: "item", key, dropPosition: "after" })] });
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { useCollectionRender };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-collection-render.js","sources":["../../../src/hooks/use-collection-render/use-collection-render.tsx"],"sourcesContent":["import { useCachedChildren } from '@react-aria/collections';\nimport type { ItemDropTarget } from '@react-types/shared';\nimport type { ReactNode } from 'react';\nimport type { Collection, Node } from 'react-stately';\n\n/**\n * Copied from RAC, unexported hook: https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/Collection.tsx#L148\n *\n * Hook serves as the basis of the root and branch renderers for Collections: https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/Collection.tsx#L139\n */\nexport function useCollectionRender(\n collection: Collection<Node<unknown>>,\n parent: Node<unknown> | null,\n renderDropIndicator?: (target: ItemDropTarget) => ReactNode,\n) {\n return useCachedChildren({\n items: parent ? collection.getChildren!(parent.key) : collection,\n dependencies: [renderDropIndicator],\n children(node) {\n const rendered = node.render!(node);\n\n if (!renderDropIndicator || node.type !== 'item') {\n return rendered;\n }\n\n const { key } = node;\n const keyAfter = collection.getKeyAfter(key);\n\n return (\n <>\n {renderDropIndicator({ type: 'item', key, dropPosition: 'before' })}\n {rendered}\n {(keyAfter == null ||\n collection.getItem(keyAfter)?.type !== 'item') &&\n renderDropIndicator({ type: 'item', key, dropPosition: 'after' })}\n </>\n );\n },\n });\n}\n"],"names":[],"mappings":";;;;AAUgB,SAAA,mBAAA,CACd,UACA,EAAA,MAAA,EACA,mBACA,EAAA;AACA,EAAA,OAAO,iBAAkB,CAAA;AAAA,IACvB,OAAO,MAAS,GAAA,UAAA,CAAW,WAAa,CAAA,MAAA,CAAO,GAAG,CAAI,GAAA,UAAA;AAAA,IACtD,YAAA,EAAc,CAAC,mBAAmB,CAAA;AAAA,IAClC,SAAS,IAAM,EAAA;AACb,MAAM,MAAA,QAAA,GAAW,IAAK,CAAA,MAAA,CAAQ,IAAI,CAAA,CAAA;AAElC,MAAA,IAAI,CAAC,mBAAA,IAAuB,IAAK,CAAA,IAAA,KAAS,MAAQ,EAAA;AAChD,QAAO,OAAA,QAAA,CAAA;AAAA,OACT;AAEA,MAAM,MAAA,EAAE,KAAQ,GAAA,IAAA,CAAA;AAChB,MAAM,MAAA,QAAA,GAAW,UAAW,CAAA,WAAA,CAAY,GAAG,CAAA,CAAA;AAE3C,MAAA,uBAEK,IAAA,CAAA,QAAA,EAAA,EAAA,QAAA,EAAA;AAAA,QAAA,mBAAA,CAAoB,EAAE,IAAM,EAAA,MAAA,EAAQ,GAAK,EAAA,YAAA,EAAc,UAAU,CAAA;AAAA,QACjE,QAAA;AAAA,QAAA,CACC,QAAY,IAAA,IAAA,IACZ,UAAW,CAAA,OAAA,CAAQ,QAAQ,CAAG,EAAA,IAAA,KAAS,MACvC,KAAA,mBAAA,CAAoB,EAAE,IAAM,EAAA,MAAA,EAAQ,GAAK,EAAA,YAAA,EAAc,SAAS,CAAA;AAAA,OACpE,EAAA,CAAA,CAAA;AAAA,KAEJ;AAAA,GACD,CAAA,CAAA;AACH;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useContextProps } from './use-context-props';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Context, type ForwardedRef, type RefObject } from 'react';
|
|
2
|
-
import { type ContextValue, type SlotProps } from 'react-aria-components';
|
|
3
|
-
/**
|
|
4
|
-
* Reimplementation of React Aria's useContextProps, to utilize our own
|
|
5
|
-
* mergeProps which handles renderProps and classNames
|
|
6
|
-
*/
|
|
7
|
-
export declare function useContextProps<T, U extends SlotProps, E extends Element>(props: T & SlotProps, ref: ForwardedRef<E>, context: Context<ContextValue<U, E>>): [T, RefObject<E | null>];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useObjectRef, mergeRefs } from '@react-aria/utils';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
|
-
import { useSlottedContext } from 'react-aria-components';
|
|
4
|
-
import { mergeProps } from '../../utils/props.js';
|
|
5
|
-
|
|
6
|
-
function useContextProps(props, ref, context) {
|
|
7
|
-
const value = useSlottedContext(context, props.slot) ?? {};
|
|
8
|
-
const { ref: contextRef, ...contextProps } = value;
|
|
9
|
-
return [
|
|
10
|
-
mergeProps(contextProps, props),
|
|
11
|
-
useObjectRef(useMemo(() => mergeRefs(ref, contextRef), [ref, contextRef]))
|
|
12
|
-
];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { useContextProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-context-props.js","sources":["../../../src/hooks/use-context-props/use-context-props.ts"],"sourcesContent":["import { mergeRefs, useObjectRef } from '@react-aria/utils';\nimport {\n type Context,\n type ForwardedRef,\n type RefObject,\n useMemo,\n} from 'react';\nimport {\n type ContextValue,\n type SlotProps,\n useSlottedContext,\n} from 'react-aria-components';\nimport { mergeProps } from '../../utils';\n\n/**\n * Reimplementation of React Aria's useContextProps, to utilize our own\n * mergeProps which handles renderProps and classNames\n */\nexport function useContextProps<T, U extends SlotProps, E extends Element>(\n props: T & SlotProps,\n ref: ForwardedRef<E>,\n context: Context<ContextValue<U, E>>,\n): [T, RefObject<E | null>] {\n const value = (useSlottedContext(context, props.slot) ?? {}) as Partial<T> & {\n ref?: ForwardedRef<E>;\n };\n\n const { ref: contextRef, ...contextProps } = value;\n\n return [\n mergeProps(contextProps as Partial<T>, props) as T,\n useObjectRef(useMemo(() => mergeRefs(ref, contextRef), [ref, contextRef])),\n ];\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAkBgB,SAAA,eAAA,CACd,KACA,EAAA,GAAA,EACA,OAC0B,EAAA;AAC1B,EAAA,MAAM,QAAS,iBAAkB,CAAA,OAAA,EAAS,KAAM,CAAA,IAAI,KAAK,EAAC,CAAA;AAI1D,EAAA,MAAM,EAAE,GAAA,EAAK,UAAY,EAAA,GAAG,cAAiB,GAAA,KAAA,CAAA;AAE7C,EAAO,OAAA;AAAA,IACL,UAAA,CAAW,cAA4B,KAAK,CAAA;AAAA,IAC5C,YAAA,CAAa,OAAQ,CAAA,MAAM,SAAU,CAAA,GAAA,EAAK,UAAU,CAAA,EAAG,CAAC,GAAA,EAAK,UAAU,CAAC,CAAC,CAAA;AAAA,GAC3E,CAAA;AACF;;;;"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import type { ButtonProps, LinkButtonProps, ToggleButtonProps } from '../../components/button/types';
|
|
3
|
-
import type { CheckboxGroupProps, CheckboxProps } from '../../components/checkbox/types';
|
|
4
|
-
import type { ChipGroupProps, ChipProps } from '../../components/chip/types';
|
|
5
|
-
import type { ComboBoxProps } from '../../components/combo-box/types';
|
|
6
|
-
import type { DialogProps } from '../../components/dialog/types';
|
|
7
|
-
import type { DrawerProps, DrawerTabListProps, DrawerTabProps } from '../../components/drawer/types';
|
|
8
|
-
import type { IconProps } from '../../components/icon/types';
|
|
9
|
-
import type { InputProps } from '../../components/input/types';
|
|
10
|
-
import type { MenuItemProps, MenuListProps, MenuProps } from '../../components/menu/types';
|
|
11
|
-
import type { OptionsItemProps, OptionsListProps, OptionsProps } from '../../components/options/types';
|
|
12
|
-
import type { PickerProps } from '../../components/picker/types';
|
|
13
|
-
import type { PopoverProps } from '../../components/popover/types';
|
|
14
|
-
import type { RadioGroupProps, RadioProps } from '../../components/radio/types';
|
|
15
|
-
import type { SearchFieldProps } from '../../components/search-field/types';
|
|
16
|
-
import type { SelectProps } from '../../components/select/types';
|
|
17
|
-
import type { SwitchProps } from '../../components/switch/types';
|
|
18
|
-
import type { TabListProps, TabPanelProps, TabPanelsProps, TabProps, TabsProps } from '../../components/tabs/types';
|
|
19
|
-
import type { TextAreaProps } from '../../components/textarea/types';
|
|
20
|
-
import type { TooltipProps, TooltipTargetProps } from '../../components/tooltip/types';
|
|
21
|
-
import type { TreeProps } from '../../components/tree/types';
|
|
22
|
-
import type { OmitProtectedProps } from '../../types';
|
|
23
|
-
type DefaultsOf<T extends Record<string, object>> = {
|
|
24
|
-
[K in keyof T]?: OmitProtectedProps<T[K]>;
|
|
25
|
-
};
|
|
26
|
-
export type DefaultsContext = DefaultsOf<{
|
|
27
|
-
Button: ButtonProps;
|
|
28
|
-
Checkbox: CheckboxProps;
|
|
29
|
-
CheckboxGroup: CheckboxGroupProps;
|
|
30
|
-
Chip: ChipProps;
|
|
31
|
-
ChipGroup: ChipGroupProps;
|
|
32
|
-
ComboBox: ComboBoxProps<object>;
|
|
33
|
-
Dialog: DialogProps;
|
|
34
|
-
Drawer: DrawerProps;
|
|
35
|
-
DrawerTab: DrawerTabProps;
|
|
36
|
-
DrawerTabList: DrawerTabListProps<unknown>;
|
|
37
|
-
Icon: IconProps;
|
|
38
|
-
Input: InputProps;
|
|
39
|
-
LinkButton: LinkButtonProps;
|
|
40
|
-
Options: OptionsProps;
|
|
41
|
-
OptionsList: OptionsListProps<object>;
|
|
42
|
-
OptionsItem: OptionsItemProps<object>;
|
|
43
|
-
Menu: MenuProps;
|
|
44
|
-
MenuList: MenuListProps<unknown>;
|
|
45
|
-
MenuItem: MenuItemProps<unknown>;
|
|
46
|
-
Picker: PickerProps<unknown>;
|
|
47
|
-
Popover: PopoverProps;
|
|
48
|
-
Radio: RadioProps;
|
|
49
|
-
RadioGroup: RadioGroupProps;
|
|
50
|
-
SearchField: SearchFieldProps;
|
|
51
|
-
Select: SelectProps<object>;
|
|
52
|
-
Switch: SwitchProps;
|
|
53
|
-
Tab: TabProps;
|
|
54
|
-
TabList: TabListProps<unknown>;
|
|
55
|
-
TabPanel: TabPanelProps;
|
|
56
|
-
TabPanels: TabPanelsProps;
|
|
57
|
-
Tabs: TabsProps;
|
|
58
|
-
TextArea: TextAreaProps;
|
|
59
|
-
ToggleButton: ToggleButtonProps;
|
|
60
|
-
Tooltip: TooltipProps;
|
|
61
|
-
TooltipTarget: TooltipTargetProps;
|
|
62
|
-
Tree: TreeProps<unknown>;
|
|
63
|
-
}>;
|
|
64
|
-
export type DefaultsProviderProps = PropsWithChildren<{
|
|
65
|
-
defaults: DefaultsContext;
|
|
66
|
-
}>;
|
|
67
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { DefaultsContext, DefaultsProviderProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Access globally established component prop defaults
|
|
4
|
-
*/
|
|
5
|
-
export declare function useDefaults(): {
|
|
6
|
-
Button?: import("../..").OmitProtectedProps<import("../..").ButtonProps> | undefined;
|
|
7
|
-
Checkbox?: import("../..").OmitProtectedProps<import("../..").CheckboxProps> | undefined;
|
|
8
|
-
CheckboxGroup?: import("../..").OmitProtectedProps<import("../..").CheckboxGroupProps> | undefined;
|
|
9
|
-
Chip?: import("../..").OmitProtectedProps<import("../..").ChipProps> | undefined;
|
|
10
|
-
ChipGroup?: import("../..").OmitProtectedProps<import("../..").ChipGroupProps> | undefined;
|
|
11
|
-
ComboBox?: import("../..").OmitProtectedProps<import("../..").ComboBoxProps<object>> | undefined;
|
|
12
|
-
Dialog?: import("../..").OmitProtectedProps<import("../..").DialogProps> | undefined;
|
|
13
|
-
Drawer?: import("../..").OmitProtectedProps<import("../..").DrawerProps> | undefined;
|
|
14
|
-
DrawerTab?: import("../..").OmitProtectedProps<import("../..").DrawerTabProps> | undefined;
|
|
15
|
-
DrawerTabList?: import("../..").OmitProtectedProps<import("../..").DrawerTabListProps<unknown>> | undefined;
|
|
16
|
-
Icon?: import("../..").OmitProtectedProps<import("../..").IconProps> | undefined;
|
|
17
|
-
Input?: import("../..").OmitProtectedProps<import("../..").InputProps> | undefined;
|
|
18
|
-
LinkButton?: import("../..").OmitProtectedProps<import("../..").LinkButtonProps> | undefined;
|
|
19
|
-
Options?: import("../..").OmitProtectedProps<import("../..").OptionsProps> | undefined;
|
|
20
|
-
OptionsList?: import("../..").OmitProtectedProps<import("../..").OptionsListProps<object>> | undefined;
|
|
21
|
-
OptionsItem?: import("../..").OmitProtectedProps<import("../..").OptionsItemProps<object>> | undefined;
|
|
22
|
-
Menu?: import("../..").OmitProtectedProps<import("../..").MenuProps> | undefined;
|
|
23
|
-
MenuList?: import("../..").OmitProtectedProps<import("../..").MenuListProps<unknown>> | undefined;
|
|
24
|
-
MenuItem?: import("../..").OmitProtectedProps<import("../..").MenuItemProps<unknown>> | undefined;
|
|
25
|
-
Picker?: import("../..").OmitProtectedProps<import("../..").PickerProps<unknown>> | undefined;
|
|
26
|
-
Popover?: import("../..").OmitProtectedProps<import("../..").PopoverProps> | undefined;
|
|
27
|
-
Radio?: import("../..").OmitProtectedProps<import("../..").RadioProps> | undefined;
|
|
28
|
-
RadioGroup?: import("../..").OmitProtectedProps<import("../..").RadioGroupProps> | undefined;
|
|
29
|
-
SearchField?: import("../..").OmitProtectedProps<import("../..").SearchFieldProps> | undefined;
|
|
30
|
-
Select?: import("../..").OmitProtectedProps<import("../..").SelectProps<object>> | undefined;
|
|
31
|
-
Switch?: import("../..").OmitProtectedProps<import("../..").SwitchProps> | undefined;
|
|
32
|
-
Tab?: import("../..").OmitProtectedProps<import("../..").TabProps> | undefined;
|
|
33
|
-
TabList?: import("../..").OmitProtectedProps<import("../..").TabListProps<unknown>> | undefined;
|
|
34
|
-
TabPanel?: import("../..").OmitProtectedProps<import("../..").TabPanelProps> | undefined;
|
|
35
|
-
TabPanels?: import("../..").OmitProtectedProps<import("../..").TabPanelsProps> | undefined;
|
|
36
|
-
Tabs?: import("../..").OmitProtectedProps<import("../..").TabsProps> | undefined;
|
|
37
|
-
TextArea?: import("../..").OmitProtectedProps<import("../..").TextAreaProps> | undefined;
|
|
38
|
-
ToggleButton?: import("../..").OmitProtectedProps<import("../..").ToggleButtonProps> | undefined;
|
|
39
|
-
Tooltip?: import("../..").OmitProtectedProps<import("../..").TooltipProps> | undefined;
|
|
40
|
-
TooltipTarget?: import("../..").OmitProtectedProps<import("../..").TooltipTargetProps> | undefined;
|
|
41
|
-
Tree?: import("../..").OmitProtectedProps<import("../..").TreeProps<unknown>> | undefined;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Select default props from context and merge with provided props
|
|
45
|
-
* with provided props taking precedence
|
|
46
|
-
*/
|
|
47
|
-
export declare function useDefaultProps<K extends keyof DefaultsContext, P extends DefaultsContext[K]>(props: P, key: K): P;
|
|
48
|
-
/**
|
|
49
|
-
* Set default props for any component, to be merged in with props at point
|
|
50
|
-
* of implementation. Global defaults take lower priority than props from
|
|
51
|
-
* composition context or props attached to instance
|
|
52
|
-
*
|
|
53
|
-
* Nested instances of this provider will shallow merge defaults from parent
|
|
54
|
-
* context, with the defaults prop taking precedence
|
|
55
|
-
*/
|
|
56
|
-
export declare function DefaultsProvider({ children, defaults: defaultsProp, }: DefaultsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { createContext, useContext, useMemo } from 'react';
|
|
3
|
-
import { mergeProps } from '../../utils/props.js';
|
|
4
|
-
|
|
5
|
-
const defaultsContext = createContext({});
|
|
6
|
-
function useDefaults() {
|
|
7
|
-
return useContext(defaultsContext);
|
|
8
|
-
}
|
|
9
|
-
function useDefaultProps(props, key) {
|
|
10
|
-
const defaults = useDefaults();
|
|
11
|
-
const defaultProps = useMemo(() => defaults[key] ?? {}, [defaults, key]);
|
|
12
|
-
return useMemo(() => mergeProps(defaultProps, props), [defaultProps, props]);
|
|
13
|
-
}
|
|
14
|
-
function DefaultsProvider({ children, defaults: defaultsProp }) {
|
|
15
|
-
const defaults = useDefaults();
|
|
16
|
-
const context = useMemo(() => ({ ...defaults, ...defaultsProp }), [defaults, defaultsProp]);
|
|
17
|
-
const { Provider } = defaultsContext;
|
|
18
|
-
return jsx(Provider, { value: context, children });
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { DefaultsProvider, useDefaultProps, useDefaults };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-defaults.js","sources":["../../../src/hooks/use-defaults/use-defaults.tsx"],"sourcesContent":["import { createContext, useContext, useMemo } from 'react';\nimport { mergeProps } from '../../utils';\nimport type { DefaultsContext, DefaultsProviderProps } from './types';\n\nconst defaultsContext = createContext<DefaultsContext>({});\n\n/**\n * Access globally established component prop defaults\n */\nexport function useDefaults() {\n return useContext(defaultsContext);\n}\n\n/**\n * Select default props from context and merge with provided props\n * with provided props taking precedence\n */\nexport function useDefaultProps<\n K extends keyof DefaultsContext,\n P extends DefaultsContext[K],\n>(props: P, key: K): P {\n const defaults = useDefaults();\n\n const defaultProps = useMemo(\n () => (defaults[key] ?? {}) as Partial<P>,\n [defaults, key],\n );\n\n return useMemo(\n () => mergeProps(defaultProps, props) as P,\n [defaultProps, props],\n );\n}\n\n/**\n * Set default props for any component, to be merged in with props at point\n * of implementation. Global defaults take lower priority than props from\n * composition context or props attached to instance\n *\n * Nested instances of this provider will shallow merge defaults from parent\n * context, with the defaults prop taking precedence\n */\nexport function DefaultsProvider({\n children,\n defaults: defaultsProp,\n}: DefaultsProviderProps) {\n const defaults = useDefaults();\n\n const context = useMemo(\n () => ({ ...defaults, ...defaultsProp }),\n [defaults, defaultsProp],\n );\n\n const { Provider } = defaultsContext;\n\n return <Provider value={context}>{children}</Provider>;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,eAAA,GAAkB,aAA+B,CAAA,EAAE,CAAA,CAAA;AAKlD,SAAS,WAAc,GAAA;AAC5B,EAAA,OAAO,WAAW,eAAe,CAAA,CAAA;AACnC,CAAA;AAMgB,SAAA,eAAA,CAGd,OAAU,GAAW,EAAA;AACrB,EAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAE7B,EAAA,MAAM,YAAe,GAAA,OAAA;AAAA,IACnB,MAAO,QAAA,CAAS,GAAG,CAAA,IAAK,EAAC;AAAA,IACzB,CAAC,UAAU,GAAG,CAAA;AAAA,GAChB,CAAA;AAEA,EAAO,OAAA,OAAA;AAAA,IACL,MAAM,UAAW,CAAA,YAAA,EAAc,KAAK,CAAA;AAAA,IACpC,CAAC,cAAc,KAAK,CAAA;AAAA,GACtB,CAAA;AACF,CAAA;AAUO,SAAS,gBAAiB,CAAA;AAAA,EAC/B,QAAA;AAAA,EACA,QAAU,EAAA,YAAA;AACZ,CAA0B,EAAA;AACxB,EAAA,MAAM,WAAW,WAAY,EAAA,CAAA;AAE7B,EAAA,MAAM,OAAU,GAAA,OAAA;AAAA,IACd,OAAO,EAAE,GAAG,QAAA,EAAU,GAAG,YAAa,EAAA,CAAA;AAAA,IACtC,CAAC,UAAU,YAAY,CAAA;AAAA,GACzB,CAAA;AAEA,EAAM,MAAA,EAAE,UAAa,GAAA,eAAA,CAAA;AAErB,EAAA,uBAAQ,GAAA,CAAA,QAAA,EAAA,EAAS,KAAO,EAAA,OAAA,EAAU,QAAS,EAAA,CAAA,CAAA;AAC7C;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { usePropagatingPress } from './use-propagating-press';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type PressHookProps } from 'react-aria';
|
|
2
|
-
/**
|
|
3
|
-
* The default behavior of usePress is to stop all propagation of press events
|
|
4
|
-
*
|
|
5
|
-
* To allow the more typical behavior of event propagation by default, this hook
|
|
6
|
-
* continues propagation of press events. This allows for nested press event
|
|
7
|
-
* listeners to not block press event listeners higher in the heirarchy
|
|
8
|
-
*/
|
|
9
|
-
export declare function usePropagatingPress(props: PressHookProps): import("react-aria").PressResult;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { usePress } from 'react-aria';
|
|
2
|
-
import { continuePropagation } from '../../utils/events.js';
|
|
3
|
-
import { mergeProps } from '../../utils/props.js';
|
|
4
|
-
|
|
5
|
-
function usePropagatingPress(props) {
|
|
6
|
-
return usePress(mergeProps({
|
|
7
|
-
onPress: continuePropagation,
|
|
8
|
-
onPressEnd: continuePropagation,
|
|
9
|
-
onPressStart: continuePropagation,
|
|
10
|
-
onPressUp: continuePropagation
|
|
11
|
-
}, props));
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { usePropagatingPress };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-propagating-press.js","sources":["../../../src/hooks/use-propagating-press/use-propagating-press.ts"],"sourcesContent":["import { type PressHookProps, usePress } from 'react-aria';\nimport { continuePropagation, mergeProps } from '../../utils';\n\n/**\n * The default behavior of usePress is to stop all propagation of press events\n *\n * To allow the more typical behavior of event propagation by default, this hook\n * continues propagation of press events. This allows for nested press event\n * listeners to not block press event listeners higher in the heirarchy\n */\nexport function usePropagatingPress(props: PressHookProps) {\n return usePress(\n mergeProps(\n {\n onPress: continuePropagation,\n onPressEnd: continuePropagation,\n onPressStart: continuePropagation,\n onPressUp: continuePropagation,\n },\n props,\n ),\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAUO,SAAS,oBAAoB,KAAuB,EAAA;AACzD,EAAO,OAAA,QAAA;AAAA,IACL,UAAA;AAAA,MACE;AAAA,QACE,OAAS,EAAA,mBAAA;AAAA,QACT,UAAY,EAAA,mBAAA;AAAA,QACZ,YAAc,EAAA,mBAAA;AAAA,QACd,SAAW,EAAA,mBAAA;AAAA,OACb;AAAA,MACA,KAAA;AAAA,KACF;AAAA,GACF,CAAA;AACF;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useSlot } from './use-slot';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type RefCallback } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Detects whether a slot has been utilized
|
|
4
|
-
*
|
|
5
|
-
* Example:
|
|
6
|
-
* Parent component implements RAC Provider, with a slotted context
|
|
7
|
-
* Child component implements slot prop matching provided slot in context
|
|
8
|
-
* Parent is able to see that the slot has been fulfilled
|
|
9
|
-
*
|
|
10
|
-
* Copied from RAC: https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/utils.tsx#L213
|
|
11
|
-
* Due to not being exported, but quite handy
|
|
12
|
-
*/
|
|
13
|
-
export declare function useSlot(): [RefCallback<Element>, boolean];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useState, useRef, useCallback, useLayoutEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
function useSlot() {
|
|
4
|
-
let [hasSlot, setHasSlot] = useState(true);
|
|
5
|
-
let hasRun = useRef(false);
|
|
6
|
-
let ref = useCallback((el) => {
|
|
7
|
-
hasRun.current = true;
|
|
8
|
-
setHasSlot(!!el);
|
|
9
|
-
}, []);
|
|
10
|
-
useLayoutEffect(() => {
|
|
11
|
-
if (!hasRun.current) {
|
|
12
|
-
setHasSlot(false);
|
|
13
|
-
}
|
|
14
|
-
}, []);
|
|
15
|
-
return [ref, hasSlot];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { useSlot };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-slot.js","sources":["../../../src/hooks/use-slot/use-slot.ts"],"sourcesContent":["import {\n type RefCallback,\n useCallback,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\n/**\n * Detects whether a slot has been utilized\n *\n * Example:\n * Parent component implements RAC Provider, with a slotted context\n * Child component implements slot prop matching provided slot in context\n * Parent is able to see that the slot has been fulfilled\n *\n * Copied from RAC: https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/utils.tsx#L213\n * Due to not being exported, but quite handy\n */\nexport function useSlot(): [RefCallback<Element>, boolean] {\n // Assume we do have the slot in the initial render.\n let [hasSlot, setHasSlot] = useState(true);\n let hasRun = useRef(false);\n\n // A callback ref which will run when the slotted element mounts.\n // This should happen before the useLayoutEffect below.\n let ref = useCallback((el: HTMLElement | null) => {\n hasRun.current = true;\n setHasSlot(!!el);\n }, []);\n\n // If the callback hasn't been called, then reset to false.\n useLayoutEffect(() => {\n if (!hasRun.current) {\n setHasSlot(false);\n }\n }, []);\n\n return [ref, hasSlot];\n}\n"],"names":[],"mappings":";;;AAmBO,SAAS,OAA2C,GAAA;AAEzD,EAAA,IAAI,CAAC,OAAA,EAAS,UAAU,CAAA,GAAI,SAAS,IAAI,CAAA,CAAA;AACzC,EAAI,IAAA,MAAA,GAAS,OAAO,KAAK,CAAA,CAAA;AAIzB,EAAI,IAAA,GAAA,GAAM,WAAY,CAAA,CAAC,EAA2B,KAAA;AAChD,IAAA,MAAA,CAAO,OAAU,GAAA,IAAA,CAAA;AACjB,IAAW,UAAA,CAAA,CAAC,CAAC,EAAE,CAAA,CAAA;AAAA,GACjB,EAAG,EAAE,CAAA,CAAA;AAGL,EAAA,eAAA,CAAgB,MAAM;AACpB,IAAI,IAAA,CAAC,OAAO,OAAS,EAAA;AACnB,MAAA,UAAA,CAAW,KAAK,CAAA,CAAA;AAAA,KAClB;AAAA,GACF,EAAG,EAAE,CAAA,CAAA;AAEL,EAAO,OAAA,CAAC,KAAK,OAAO,CAAA,CAAA;AACtB;;;;"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
import type { ButtonClassNames } from '../../components/button/types';
|
|
3
|
-
import type { CheckboxClassNames } from '../../components/checkbox/types';
|
|
4
|
-
import type { ChipClassNames } from '../../components/chip/types';
|
|
5
|
-
import type { ComboBoxClassNames } from '../../components/combo-box/types';
|
|
6
|
-
import type { DialogClassNames } from '../../components/dialog/types';
|
|
7
|
-
import type { DrawerClassNames } from '../../components/drawer/types';
|
|
8
|
-
import type { GroupClassNames } from '../../components/group/types';
|
|
9
|
-
import type { IconClassNames } from '../../components/icon/types';
|
|
10
|
-
import type { InputClassNames } from '../../components/input/types';
|
|
11
|
-
import type { MenuClassNames } from '../../components/menu/types';
|
|
12
|
-
import type { OptionsClassNames } from '../../components/options/types';
|
|
13
|
-
import type { PickerClassNames } from '../../components/picker/types';
|
|
14
|
-
import type { PopoverClassNames } from '../../components/popover/types';
|
|
15
|
-
import type { QueryBuilderClassNames } from '../../components/query-builder/types';
|
|
16
|
-
import type { RadioClassNames } from '../../components/radio/types';
|
|
17
|
-
import type { SearchFieldClassNames } from '../../components/search-field/types';
|
|
18
|
-
import type { SelectClassNames } from '../../components/select/types';
|
|
19
|
-
import type { SwitchClassNames } from '../../components/switch/types';
|
|
20
|
-
import type { TabsClassNames } from '../../components/tabs/types';
|
|
21
|
-
import type { TextAreaClassNames } from '../../components/textarea/types';
|
|
22
|
-
import type { TooltipClassNames } from '../../components/tooltip/types';
|
|
23
|
-
import type { TreeClassNames } from '../../components/tree/types';
|
|
24
|
-
export type ThemeContext = {
|
|
25
|
-
/**
|
|
26
|
-
* Intended as a way to pass classNames down to nested themes or global portals
|
|
27
|
-
*/
|
|
28
|
-
className?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Intended as a way to pass inline CSS variables down to nested themes or global portals
|
|
31
|
-
*/
|
|
32
|
-
style?: CSSProperties;
|
|
33
|
-
/**
|
|
34
|
-
* Component specific classNames theme entrypoints
|
|
35
|
-
*/
|
|
36
|
-
Button?: ButtonClassNames;
|
|
37
|
-
Checkbox?: CheckboxClassNames;
|
|
38
|
-
Chip?: ChipClassNames;
|
|
39
|
-
ComboBox?: ComboBoxClassNames;
|
|
40
|
-
Dialog?: DialogClassNames;
|
|
41
|
-
Drawer?: DrawerClassNames;
|
|
42
|
-
Group?: GroupClassNames;
|
|
43
|
-
Icon?: IconClassNames;
|
|
44
|
-
Input?: InputClassNames;
|
|
45
|
-
Options?: OptionsClassNames;
|
|
46
|
-
Menu?: MenuClassNames;
|
|
47
|
-
Picker?: PickerClassNames;
|
|
48
|
-
Popover?: PopoverClassNames;
|
|
49
|
-
QueryBuilder?: QueryBuilderClassNames;
|
|
50
|
-
Radio?: RadioClassNames;
|
|
51
|
-
SearchField?: SearchFieldClassNames;
|
|
52
|
-
Select?: SelectClassNames;
|
|
53
|
-
Switch?: SwitchClassNames;
|
|
54
|
-
Tabs?: TabsClassNames;
|
|
55
|
-
TextArea?: TextAreaClassNames;
|
|
56
|
-
Tooltip?: TooltipClassNames;
|
|
57
|
-
Tree?: TreeClassNames;
|
|
58
|
-
};
|
|
59
|
-
export type ThemeVars = {
|
|
60
|
-
colors?: {
|
|
61
|
-
generic?: string;
|
|
62
|
-
semantic?: string;
|
|
63
|
-
};
|
|
64
|
-
elevation?: string;
|
|
65
|
-
focus?: string;
|
|
66
|
-
radius?: string;
|
|
67
|
-
sizes?: string;
|
|
68
|
-
space?: string;
|
|
69
|
-
typography?: string;
|
|
70
|
-
zIndex?: string;
|
|
71
|
-
};
|
|
72
|
-
export type ThemeProviderProps = PropsWithChildren<{
|
|
73
|
-
className?: string;
|
|
74
|
-
/**
|
|
75
|
-
* Set to true to skip defaults and inherit classNames, styles, theme & vars from parent
|
|
76
|
-
* All other props will be merged on top of inherited theme
|
|
77
|
-
*/
|
|
78
|
-
inherit?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Use to set runtime CSS variables, not intended for other styles. Will be passed to
|
|
81
|
-
* nested themes and global portals
|
|
82
|
-
*/
|
|
83
|
-
style?: CSSProperties;
|
|
84
|
-
theme?: ThemeContext;
|
|
85
|
-
vars?: ThemeVars;
|
|
86
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const root: string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Contract } from '../../types';
|
|
2
|
-
import { computeContract } from '../../utils';
|
|
3
|
-
import type { ThemeContext, ThemeProviderProps } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Computes CSS values into DeckGL compatible formats using the optionally provided contract
|
|
6
|
-
*
|
|
7
|
-
* This function allows for the reuse of CSS contract tokens within React context for non-CSS
|
|
8
|
-
* use cases. This ensures synchronized theming across the entire rendering stack
|
|
9
|
-
*/
|
|
10
|
-
export declare function useTheme<T extends Contract>(contract?: T): ThemeContext & {
|
|
11
|
-
contract?: ReturnType<typeof computeContract<T>>;
|
|
12
|
-
};
|
|
13
|
-
export declare function ThemeProvider({ children, className: classNameProp, inherit, style: styleProp, theme: themeProp, vars, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useLayoutEffect } from '@react-aria/utils';
|
|
3
|
-
import { clsx } from 'clsx';
|
|
4
|
-
import { createContext, useContext, useMemo, useRef, useState } from 'react';
|
|
5
|
-
import { defaultGenericColors, defaultSemanticColors, defaultElevations, defaultFocus, defaultRadius, defaultSizes, defaultSpace, defaultTypography, defaultZIndex } from '../../styles/theme.vanilla.js';
|
|
6
|
-
import { computeContract } from '../../utils/css.js';
|
|
7
|
-
import { root } from './use-theme.vanilla.js';
|
|
8
|
-
|
|
9
|
-
const defaultTheme = {};
|
|
10
|
-
const themeContext = createContext(defaultTheme);
|
|
11
|
-
const themeCssContext = createContext(null);
|
|
12
|
-
function useTheme(contract) {
|
|
13
|
-
const theme = useContext(themeContext);
|
|
14
|
-
const css = useContext(themeCssContext);
|
|
15
|
-
return useMemo(() => ({
|
|
16
|
-
...theme,
|
|
17
|
-
...!!contract && !!css ? {
|
|
18
|
-
contract: computeContract(contract, css)
|
|
19
|
-
} : {}
|
|
20
|
-
}), [theme, contract, css]);
|
|
21
|
-
}
|
|
22
|
-
function localInheritOrDefault(localClass, inherit, defaultClass) {
|
|
23
|
-
return localClass ?? (!inherit && defaultClass);
|
|
24
|
-
}
|
|
25
|
-
function ThemeProvider({ children, className: classNameProp, inherit, style: styleProp, theme: themeProp = defaultTheme, vars }) {
|
|
26
|
-
const ref = useRef(null);
|
|
27
|
-
const [css, setCss] = useState(null);
|
|
28
|
-
const parent = useTheme();
|
|
29
|
-
const className = useMemo(() => clsx(root, classNameProp, inherit && parent.className, themeProp.className, localInheritOrDefault(vars?.colors?.generic, inherit, defaultGenericColors), localInheritOrDefault(vars?.colors?.semantic, inherit, defaultSemanticColors), localInheritOrDefault(vars?.elevation, inherit, defaultElevations), localInheritOrDefault(vars?.focus, inherit, defaultFocus), localInheritOrDefault(vars?.radius, inherit, defaultRadius), localInheritOrDefault(vars?.sizes, inherit, defaultSizes), localInheritOrDefault(vars?.space, inherit, defaultSpace), localInheritOrDefault(vars?.typography, inherit, defaultTypography), localInheritOrDefault(vars?.zIndex, inherit, defaultZIndex)), [
|
|
30
|
-
classNameProp,
|
|
31
|
-
inherit,
|
|
32
|
-
parent.className,
|
|
33
|
-
themeProp.className,
|
|
34
|
-
vars?.colors?.generic,
|
|
35
|
-
vars?.colors?.semantic,
|
|
36
|
-
vars?.elevation,
|
|
37
|
-
vars?.focus,
|
|
38
|
-
vars?.radius,
|
|
39
|
-
vars?.sizes,
|
|
40
|
-
vars?.space,
|
|
41
|
-
vars?.typography,
|
|
42
|
-
vars?.zIndex
|
|
43
|
-
]);
|
|
44
|
-
const style = useMemo(() => ({
|
|
45
|
-
...inherit ? parent.style : {},
|
|
46
|
-
...themeProp.style,
|
|
47
|
-
...styleProp
|
|
48
|
-
}), [inherit, parent.style, themeProp.style, styleProp]);
|
|
49
|
-
const theme = useMemo(() => ({
|
|
50
|
-
...inherit ? parent : themeProp,
|
|
51
|
-
className,
|
|
52
|
-
style
|
|
53
|
-
}), [inherit, parent, themeProp, className, style]);
|
|
54
|
-
useLayoutEffect(() => {
|
|
55
|
-
if (ref.current) {
|
|
56
|
-
setCss(window.getComputedStyle(ref.current));
|
|
57
|
-
}
|
|
58
|
-
}, [className, style]);
|
|
59
|
-
const { Provider: ClassesProvider } = themeContext;
|
|
60
|
-
const { Provider: CssProvider } = themeCssContext;
|
|
61
|
-
return jsx("div", { ref, className, style, children: jsx(ClassesProvider, { value: theme, children: jsx(CssProvider, { value: css, children }) }) });
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { ThemeProvider, useTheme };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-theme.js","sources":["../../../src/hooks/use-theme/use-theme.tsx"],"sourcesContent":["import { useLayoutEffect } from '@react-aria/utils';\nimport { clsx } from 'clsx';\nimport { createContext, useContext, useMemo, useRef, useState } from 'react';\nimport {\n defaultGenericColors,\n defaultElevations,\n defaultFocus,\n defaultRadius,\n defaultSemanticColors,\n defaultSizes,\n defaultSpace,\n defaultTypography,\n defaultZIndex,\n} from '../../styles';\nimport type { Contract } from '../../types';\nimport { computeContract } from '../../utils';\nimport type { ThemeContext, ThemeProviderProps } from './types';\nimport { root } from './use-theme.css';\n\nconst defaultTheme: ThemeContext = {};\nconst themeContext = createContext<ThemeContext>(defaultTheme);\nconst themeCssContext = createContext<CSSStyleDeclaration | null>(null);\n\n/**\n * Computes CSS values into DeckGL compatible formats using the optionally provided contract\n *\n * This function allows for the reuse of CSS contract tokens within React context for non-CSS\n * use cases. This ensures synchronized theming across the entire rendering stack\n */\nexport function useTheme<T extends Contract>(\n contract?: T,\n): ThemeContext & {\n contract?: ReturnType<typeof computeContract<T>>;\n} {\n const theme = useContext(themeContext);\n const css = useContext(themeCssContext);\n\n return useMemo(\n () => ({\n ...theme,\n ...(!!contract && !!css\n ? {\n contract: computeContract(contract, css),\n }\n : {}),\n }),\n [theme, contract, css],\n );\n}\n\nfunction localInheritOrDefault(\n localClass?: string,\n inherit?: boolean,\n defaultClass?: string,\n) {\n return localClass ?? (!inherit && defaultClass);\n}\n\nexport function ThemeProvider({\n children,\n className: classNameProp,\n inherit,\n style: styleProp,\n theme: themeProp = defaultTheme,\n vars,\n}: ThemeProviderProps) {\n const ref = useRef<HTMLDivElement>(null);\n const [css, setCss] = useState<CSSStyleDeclaration | null>(null);\n const parent = useTheme();\n\n const className = useMemo(\n () =>\n clsx(\n root,\n classNameProp,\n inherit && parent.className,\n themeProp.className,\n localInheritOrDefault(\n vars?.colors?.generic,\n inherit,\n defaultGenericColors,\n ),\n localInheritOrDefault(\n vars?.colors?.semantic,\n inherit,\n defaultSemanticColors,\n ),\n localInheritOrDefault(vars?.elevation, inherit, defaultElevations),\n localInheritOrDefault(vars?.focus, inherit, defaultFocus),\n localInheritOrDefault(vars?.radius, inherit, defaultRadius),\n localInheritOrDefault(vars?.sizes, inherit, defaultSizes),\n localInheritOrDefault(vars?.space, inherit, defaultSpace),\n localInheritOrDefault(vars?.typography, inherit, defaultTypography),\n localInheritOrDefault(vars?.zIndex, inherit, defaultZIndex),\n ),\n [\n classNameProp,\n inherit,\n parent.className,\n themeProp.className,\n vars?.colors?.generic,\n vars?.colors?.semantic,\n vars?.elevation,\n vars?.focus,\n vars?.radius,\n vars?.sizes,\n vars?.space,\n vars?.typography,\n vars?.zIndex,\n ],\n );\n\n const style = useMemo(\n () => ({\n ...(inherit ? parent.style : {}),\n ...themeProp.style,\n ...styleProp,\n }),\n [inherit, parent.style, themeProp.style, styleProp],\n );\n\n const theme = useMemo(\n () => ({\n ...(inherit ? parent : themeProp),\n className,\n style,\n }),\n [inherit, parent, themeProp, className, style],\n );\n\n useLayoutEffect(() => {\n if (ref.current) {\n setCss(window.getComputedStyle(ref.current));\n }\n }, [className, style]);\n\n const { Provider: ClassesProvider } = themeContext;\n const { Provider: CssProvider } = themeCssContext;\n\n return (\n <div ref={ref} className={className} style={style}>\n <ClassesProvider value={theme}>\n <CssProvider value={css}>{children}</CssProvider>\n </ClassesProvider>\n </div>\n );\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-theme.vanilla.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useTree } from './use-tree';
|