chiplet 0.6.0 → 0.7.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/README.md +33 -3
- package/dist/component/button/Button.d.ts +13 -0
- package/dist/component/button/Button.d.ts.map +1 -0
- package/dist/component/button/Button.js +72 -28
- package/dist/component/button/Button.js.map +1 -1
- package/dist/component/button/IconButton.d.ts +5 -0
- package/dist/component/button/IconButton.d.ts.map +1 -0
- package/dist/component/button/IconButton.js +29 -13
- package/dist/component/button/IconButton.js.map +1 -1
- package/dist/component/button/Interactive.d.ts +11 -0
- package/dist/component/button/Interactive.d.ts.map +1 -0
- package/dist/component/button/Interactive.js +37 -14
- package/dist/component/button/Interactive.js.map +1 -1
- package/dist/component/button/LinkButton.d.ts +11 -0
- package/dist/component/button/LinkButton.d.ts.map +1 -0
- package/dist/component/button/LinkButton.js +79 -32
- package/dist/component/button/LinkButton.js.map +1 -1
- package/dist/component/button/index.d.ts +5 -0
- package/dist/component/button/index.d.ts.map +1 -0
- package/dist/component/button/index.js +0 -1
- package/dist/component/button/index.js.map +1 -1
- package/dist/component/button/style/index.css.d.ts +89 -0
- package/dist/component/button/style/index.css.d.ts.map +1 -0
- package/dist/component/button/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/button/style/index.css.vanilla.js.map +1 -0
- package/dist/component/checkbox/Checkbox.d.ts +14 -0
- package/dist/component/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/component/checkbox/Checkbox.js +119 -44
- package/dist/component/checkbox/Checkbox.js.map +1 -1
- package/dist/component/checkbox/CheckboxGroup.d.ts +11 -0
- package/dist/component/checkbox/CheckboxGroup.d.ts.map +1 -0
- package/dist/component/checkbox/CheckboxGroup.js +33 -16
- package/dist/component/checkbox/CheckboxGroup.js.map +1 -1
- package/dist/component/checkbox/Radio.d.ts +13 -0
- package/dist/component/checkbox/Radio.d.ts.map +1 -0
- package/dist/component/checkbox/Radio.js +94 -35
- package/dist/component/checkbox/Radio.js.map +1 -1
- package/dist/component/checkbox/RadioGroup.d.ts +11 -0
- package/dist/component/checkbox/RadioGroup.d.ts.map +1 -0
- package/dist/component/checkbox/RadioGroup.js +33 -17
- package/dist/component/checkbox/RadioGroup.js.map +1 -1
- package/dist/component/checkbox/Switch.d.ts +15 -0
- package/dist/component/checkbox/Switch.d.ts.map +1 -0
- package/dist/component/checkbox/Switch.js +93 -34
- package/dist/component/checkbox/Switch.js.map +1 -1
- package/dist/component/checkbox/icon/index.d.ts +6 -0
- package/dist/component/checkbox/icon/index.d.ts.map +1 -0
- package/dist/component/checkbox/icon/index.js +0 -1
- package/dist/component/checkbox/icon/index.js.map +1 -1
- package/dist/component/checkbox/index.d.ts +6 -0
- package/dist/component/checkbox/index.d.ts.map +1 -0
- package/dist/component/checkbox/index.js +0 -1
- package/dist/component/checkbox/index.js.map +1 -1
- package/dist/component/checkbox/style/index.css.d.ts +65 -0
- package/dist/component/checkbox/style/index.css.d.ts.map +1 -0
- package/dist/component/checkbox/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/checkbox/style/index.css.vanilla.js.map +1 -0
- package/dist/component/header/Header.d.ts +10 -0
- package/dist/component/header/Header.d.ts.map +1 -0
- package/dist/component/header/Header.js +73 -16
- package/dist/component/header/Header.js.map +1 -1
- package/dist/component/header/index.d.ts +2 -0
- package/dist/component/header/index.d.ts.map +1 -0
- package/dist/component/header/index.js +0 -1
- package/dist/component/header/index.js.map +1 -1
- package/dist/component/header/style/index.css.d.ts +3 -0
- package/dist/component/header/style/index.css.d.ts.map +1 -0
- package/dist/component/header/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/header/style/index.css.vanilla.js.map +1 -0
- package/dist/component/icon/Icon.d.ts +6 -0
- package/dist/component/icon/Icon.d.ts.map +1 -0
- package/dist/component/icon/Icon.js +0 -1
- package/dist/component/icon/Icon.js.map +1 -1
- package/dist/component/icon/index.d.ts +10 -0
- package/dist/component/icon/index.d.ts.map +1 -0
- package/dist/component/icon/index.js +0 -1
- package/dist/component/icon/index.js.map +1 -1
- package/dist/component/index.d.ts +12 -0
- package/dist/component/index.d.ts.map +1 -0
- package/dist/component/index.js +1 -2
- package/dist/component/index.js.map +1 -1
- package/dist/component/input/Input.d.ts +19 -0
- package/dist/component/input/Input.d.ts.map +1 -0
- package/dist/component/input/Input.js +113 -40
- package/dist/component/input/Input.js.map +1 -1
- package/dist/component/input/SearchInput.d.ts +7 -0
- package/dist/component/input/SearchInput.d.ts.map +1 -0
- package/dist/component/input/SearchInput.js +13 -18
- package/dist/component/input/SearchInput.js.map +1 -1
- package/dist/component/input/index.d.ts +3 -0
- package/dist/component/input/index.d.ts.map +1 -0
- package/dist/component/input/index.js +0 -1
- package/dist/component/input/index.js.map +1 -1
- package/dist/component/input/style/index.css.d.ts +89 -0
- package/dist/component/input/style/index.css.d.ts.map +1 -0
- package/dist/component/input/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/input/style/index.css.vanilla.js.map +1 -0
- package/dist/component/menu/Menu.d.ts +3 -0
- package/dist/component/menu/Menu.d.ts.map +1 -0
- package/dist/component/menu/Menu.js +22 -11
- package/dist/component/menu/Menu.js.map +1 -1
- package/dist/component/menu/MenuButton.d.ts +3 -0
- package/dist/component/menu/MenuButton.d.ts.map +1 -0
- package/dist/component/menu/MenuButton.js +21 -5
- package/dist/component/menu/MenuButton.js.map +1 -1
- package/dist/component/menu/MenuItem.d.ts +4 -0
- package/dist/component/menu/MenuItem.d.ts.map +1 -0
- package/dist/component/menu/MenuItem.js +14 -5
- package/dist/component/menu/MenuItem.js.map +1 -1
- package/dist/component/menu/MenuItemCheckbox.d.ts +11 -0
- package/dist/component/menu/MenuItemCheckbox.d.ts.map +1 -0
- package/dist/component/menu/MenuItemCheckbox.js +35 -19
- package/dist/component/menu/MenuItemCheckbox.js.map +1 -1
- package/dist/component/menu/MenuItemRadio.d.ts +11 -0
- package/dist/component/menu/MenuItemRadio.d.ts.map +1 -0
- package/dist/component/menu/MenuItemRadio.js +35 -19
- package/dist/component/menu/MenuItemRadio.js.map +1 -1
- package/dist/component/menu/index.d.ts +6 -0
- package/dist/component/menu/index.d.ts.map +1 -0
- package/dist/component/menu/index.js +0 -1
- package/dist/component/menu/index.js.map +1 -1
- package/dist/component/menu/renderMenuItem.d.ts +15 -0
- package/dist/component/menu/renderMenuItem.d.ts.map +1 -0
- package/dist/component/menu/renderMenuItem.js +16 -41
- package/dist/component/menu/renderMenuItem.js.map +1 -1
- package/dist/component/popover/Dialog.d.ts +11 -0
- package/dist/component/popover/Dialog.d.ts.map +1 -0
- package/dist/component/popover/Dialog.js +57 -17
- package/dist/component/popover/Dialog.js.map +1 -1
- package/dist/component/popover/DismissButton.d.ts +3 -0
- package/dist/component/popover/DismissButton.d.ts.map +1 -0
- package/dist/component/popover/DismissButton.js +22 -3
- package/dist/component/popover/DismissButton.js.map +1 -1
- package/dist/component/popover/Popover.d.ts +12 -0
- package/dist/component/popover/Popover.d.ts.map +1 -0
- package/dist/component/popover/Popover.js +59 -21
- package/dist/component/popover/Popover.js.map +1 -1
- package/dist/component/popover/Portal.d.ts +5 -0
- package/dist/component/popover/Portal.d.ts.map +1 -0
- package/dist/component/popover/Portal.js +26 -6
- package/dist/component/popover/Portal.js.map +1 -1
- package/dist/component/popover/ShadowRoot.d.ts +5 -0
- package/dist/component/popover/ShadowRoot.d.ts.map +1 -0
- package/dist/component/popover/ShadowRoot.js +73 -20
- package/dist/component/popover/ShadowRoot.js.map +1 -1
- package/dist/component/popover/Tooltip.d.ts +10 -0
- package/dist/component/popover/Tooltip.d.ts.map +1 -0
- package/dist/component/popover/Tooltip.js +103 -29
- package/dist/component/popover/Tooltip.js.map +1 -1
- package/dist/component/popover/index.d.ts +7 -0
- package/dist/component/popover/index.d.ts.map +1 -0
- package/dist/component/popover/index.js +0 -1
- package/dist/component/popover/index.js.map +1 -1
- package/dist/component/popover/renderTooltip.d.ts +4 -0
- package/dist/component/popover/renderTooltip.d.ts.map +1 -0
- package/dist/component/popover/renderTooltip.js +0 -1
- package/dist/component/popover/renderTooltip.js.map +1 -1
- package/dist/component/popover/style/index.css.d.ts +110 -0
- package/dist/component/popover/style/index.css.d.ts.map +1 -0
- package/dist/component/popover/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/popover/style/index.css.vanilla.js.map +1 -0
- package/dist/component/progress/Spinner.d.ts +6 -0
- package/dist/component/progress/Spinner.d.ts.map +1 -0
- package/dist/component/progress/Spinner.js +38 -11
- package/dist/component/progress/Spinner.js.map +1 -1
- package/dist/component/progress/index.d.ts +2 -0
- package/dist/component/progress/index.d.ts.map +1 -0
- package/dist/component/progress/index.js +0 -1
- package/dist/component/progress/index.js.map +1 -1
- package/dist/component/progress/style/index.css.d.ts +26 -0
- package/dist/component/progress/style/index.css.d.ts.map +1 -0
- package/dist/component/progress/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/progress/style/index.css.vanilla.js.map +1 -0
- package/dist/component/select/AutoComplete.d.ts +18 -0
- package/dist/component/select/AutoComplete.d.ts.map +1 -0
- package/dist/component/select/AutoComplete.js +89 -32
- package/dist/component/select/AutoComplete.js.map +1 -1
- package/dist/component/select/Group.d.ts +14 -0
- package/dist/component/select/Group.d.ts.map +1 -0
- package/dist/component/select/Group.js +13 -42
- package/dist/component/select/Group.js.map +1 -1
- package/dist/component/select/Option.d.ts +22 -0
- package/dist/component/select/Option.d.ts.map +1 -0
- package/dist/component/select/Option.js +91 -38
- package/dist/component/select/Option.js.map +1 -1
- package/dist/component/select/Select.d.ts +18 -0
- package/dist/component/select/Select.d.ts.map +1 -0
- package/dist/component/select/Select.js +72 -29
- package/dist/component/select/Select.js.map +1 -1
- package/dist/component/select/Separator.d.ts +4 -0
- package/dist/component/select/Separator.d.ts.map +1 -0
- package/dist/component/select/Separator.js +21 -10
- package/dist/component/select/Separator.js.map +1 -1
- package/dist/component/select/index.d.ts +6 -0
- package/dist/component/select/index.d.ts.map +1 -0
- package/dist/component/select/index.js +0 -1
- package/dist/component/select/index.js.map +1 -1
- package/dist/component/select/style/index.css.d.ts +22 -0
- package/dist/component/select/style/index.css.d.ts.map +1 -0
- package/dist/component/select/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/select/style/index.css.vanilla.js.map +1 -0
- package/dist/component/style/article.css.d.ts +2 -0
- package/dist/component/style/article.css.d.ts.map +1 -0
- package/dist/component/style/{article.css.js → article.css.vanilla.js} +1 -1
- package/dist/component/style/article.css.vanilla.js.map +1 -0
- package/dist/component/style/index.d.ts +2 -0
- package/dist/component/style/index.d.ts.map +1 -0
- package/dist/component/style/index.js +1 -2
- package/dist/component/style/index.js.map +1 -1
- package/dist/component/typography/Body1.d.ts +2 -0
- package/dist/component/typography/Body1.d.ts.map +1 -0
- package/dist/component/typography/Body1.js +21 -3
- package/dist/component/typography/Body1.js.map +1 -1
- package/dist/component/typography/Body2.d.ts +2 -0
- package/dist/component/typography/Body2.d.ts.map +1 -0
- package/dist/component/typography/Body2.js +21 -3
- package/dist/component/typography/Body2.js.map +1 -1
- package/dist/component/typography/Body3.d.ts +2 -0
- package/dist/component/typography/Body3.d.ts.map +1 -0
- package/dist/component/typography/Body3.js +21 -3
- package/dist/component/typography/Body3.js.map +1 -1
- package/dist/component/typography/Caption1.d.ts +2 -0
- package/dist/component/typography/Caption1.d.ts.map +1 -0
- package/dist/component/typography/Caption1.js +21 -3
- package/dist/component/typography/Caption1.js.map +1 -1
- package/dist/component/typography/Caption2.d.ts +2 -0
- package/dist/component/typography/Caption2.d.ts.map +1 -0
- package/dist/component/typography/Caption2.js +21 -3
- package/dist/component/typography/Caption2.js.map +1 -1
- package/dist/component/typography/Heading1.d.ts +2 -0
- package/dist/component/typography/Heading1.d.ts.map +1 -0
- package/dist/component/typography/Heading1.js +21 -11
- package/dist/component/typography/Heading1.js.map +1 -1
- package/dist/component/typography/Heading2.d.ts +2 -0
- package/dist/component/typography/Heading2.d.ts.map +1 -0
- package/dist/component/typography/Heading2.js +21 -11
- package/dist/component/typography/Heading2.js.map +1 -1
- package/dist/component/typography/Heading3.d.ts +2 -0
- package/dist/component/typography/Heading3.d.ts.map +1 -0
- package/dist/component/typography/Heading3.js +21 -11
- package/dist/component/typography/Heading3.js.map +1 -1
- package/dist/component/typography/Heading4.d.ts +2 -0
- package/dist/component/typography/Heading4.d.ts.map +1 -0
- package/dist/component/typography/Heading4.js +21 -11
- package/dist/component/typography/Heading4.js.map +1 -1
- package/dist/component/typography/index.d.ts +10 -0
- package/dist/component/typography/index.d.ts.map +1 -0
- package/dist/component/typography/index.js +0 -1
- package/dist/component/typography/index.js.map +1 -1
- package/dist/component/typography/style/index.css.d.ts +17 -0
- package/dist/component/typography/style/index.css.d.ts.map +1 -0
- package/dist/component/typography/style/{index.css.js → index.css.vanilla.js} +1 -1
- package/dist/component/typography/style/index.css.vanilla.js.map +1 -0
- package/dist/hook/accessibility/index.d.ts +2 -0
- package/dist/hook/accessibility/index.d.ts.map +1 -0
- package/dist/hook/accessibility/index.js +0 -1
- package/dist/hook/accessibility/index.js.map +1 -1
- package/dist/hook/accessibility/keyboard/Keyboard.d.ts +28 -0
- package/dist/hook/accessibility/keyboard/Keyboard.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/Keyboard.js +107 -38
- package/dist/hook/accessibility/keyboard/Keyboard.js.map +1 -1
- package/dist/hook/accessibility/keyboard/Roving.d.ts +7 -0
- package/dist/hook/accessibility/keyboard/Roving.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/Roving.js +28 -3
- package/dist/hook/accessibility/keyboard/Roving.js.map +1 -1
- package/dist/hook/accessibility/keyboard/context/index.d.ts +10 -0
- package/dist/hook/accessibility/keyboard/context/index.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/context/index.js +0 -1
- package/dist/hook/accessibility/keyboard/context/index.js.map +1 -1
- package/dist/hook/accessibility/keyboard/hook/index.d.ts +5 -0
- package/dist/hook/accessibility/keyboard/hook/index.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/hook/index.js +0 -1
- package/dist/hook/accessibility/keyboard/hook/index.js.map +1 -1
- package/dist/hook/accessibility/keyboard/hook/useLastFocused.d.ts +4 -0
- package/dist/hook/accessibility/keyboard/hook/useLastFocused.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/hook/useLastFocused.js +13 -14
- package/dist/hook/accessibility/keyboard/hook/useLastFocused.js.map +1 -1
- package/dist/hook/accessibility/keyboard/hook/useMoveFocus.d.ts +4 -0
- package/dist/hook/accessibility/keyboard/hook/useMoveFocus.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/hook/useMoveFocus.js +89 -38
- package/dist/hook/accessibility/keyboard/hook/useMoveFocus.js.map +1 -1
- package/dist/hook/accessibility/keyboard/hook/useNavigate.d.ts +8 -0
- package/dist/hook/accessibility/keyboard/hook/useNavigate.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/hook/useNavigate.js +84 -37
- package/dist/hook/accessibility/keyboard/hook/useNavigate.js.map +1 -1
- package/dist/hook/accessibility/keyboard/hook/usePool.d.ts +11 -0
- package/dist/hook/accessibility/keyboard/hook/usePool.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/hook/usePool.js +44 -18
- package/dist/hook/accessibility/keyboard/hook/usePool.js.map +1 -1
- package/dist/hook/accessibility/keyboard/index.d.ts +5 -0
- package/dist/hook/accessibility/keyboard/index.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/index.js +0 -1
- package/dist/hook/accessibility/keyboard/index.js.map +1 -1
- package/dist/hook/accessibility/keyboard/resolve.d.ts +26 -0
- package/dist/hook/accessibility/keyboard/resolve.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/resolve.js +36 -12
- package/dist/hook/accessibility/keyboard/resolve.js.map +1 -1
- package/dist/hook/accessibility/keyboard/sort.d.ts +3 -0
- package/dist/hook/accessibility/keyboard/sort.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/sort.js +5 -2
- package/dist/hook/accessibility/keyboard/sort.js.map +1 -1
- package/dist/hook/accessibility/keyboard/tree.d.ts +20 -0
- package/dist/hook/accessibility/keyboard/tree.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/tree.js +8 -18
- package/dist/hook/accessibility/keyboard/tree.js.map +1 -1
- package/dist/hook/accessibility/keyboard/useController.d.ts +11 -0
- package/dist/hook/accessibility/keyboard/useController.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/useController.js +158 -90
- package/dist/hook/accessibility/keyboard/useController.js.map +1 -1
- package/dist/hook/accessibility/keyboard/useKeyboard.d.ts +10 -0
- package/dist/hook/accessibility/keyboard/useKeyboard.d.ts.map +1 -0
- package/dist/hook/accessibility/keyboard/useKeyboard.js +79 -28
- package/dist/hook/accessibility/keyboard/useKeyboard.js.map +1 -1
- package/dist/hook/document/index.d.ts +2 -0
- package/dist/hook/document/index.d.ts.map +1 -0
- package/dist/hook/document/index.js +0 -1
- package/dist/hook/document/index.js.map +1 -1
- package/dist/hook/document/useHighlight.d.ts +3 -0
- package/dist/hook/document/useHighlight.d.ts.map +1 -0
- package/dist/hook/document/useHighlight.js +55 -31
- package/dist/hook/document/useHighlight.js.map +1 -1
- package/dist/hook/form/context/index.d.ts +11 -0
- package/dist/hook/form/context/index.d.ts.map +1 -0
- package/dist/hook/form/context/index.js +0 -1
- package/dist/hook/form/context/index.js.map +1 -1
- package/dist/hook/form/index.d.ts +14 -0
- package/dist/hook/form/index.d.ts.map +1 -0
- package/dist/hook/form/index.js +0 -1
- package/dist/hook/form/index.js.map +1 -1
- package/dist/hook/form/useAutoComplete.d.ts +66 -0
- package/dist/hook/form/useAutoComplete.d.ts.map +1 -0
- package/dist/hook/form/useAutoComplete.js +102 -99
- package/dist/hook/form/useAutoComplete.js.map +1 -1
- package/dist/hook/form/useChange.d.ts +9 -0
- package/dist/hook/form/useChange.d.ts.map +1 -0
- package/dist/hook/form/useChange.js +33 -12
- package/dist/hook/form/useChange.js.map +1 -1
- package/dist/hook/form/useCheckbox.d.ts +13 -0
- package/dist/hook/form/useCheckbox.d.ts.map +1 -0
- package/dist/hook/form/useCheckbox.js +29 -10
- package/dist/hook/form/useCheckbox.js.map +1 -1
- package/dist/hook/form/useChecked.d.ts +15 -0
- package/dist/hook/form/useChecked.d.ts.map +1 -0
- package/dist/hook/form/useChecked.js +151 -50
- package/dist/hook/form/useChecked.js.map +1 -1
- package/dist/hook/form/useDefault.d.ts +49 -0
- package/dist/hook/form/useDefault.d.ts.map +1 -0
- package/dist/hook/form/useDefault.js +102 -45
- package/dist/hook/form/useDefault.js.map +1 -1
- package/dist/hook/form/useForm.d.ts +10 -0
- package/dist/hook/form/useForm.d.ts.map +1 -0
- package/dist/hook/form/useForm.js +66 -16
- package/dist/hook/form/useForm.js.map +1 -1
- package/dist/hook/form/useGroup.d.ts +22 -0
- package/dist/hook/form/useGroup.d.ts.map +1 -0
- package/dist/hook/form/useGroup.js +63 -58
- package/dist/hook/form/useGroup.js.map +1 -1
- package/dist/hook/form/useName.d.ts +19 -0
- package/dist/hook/form/useName.d.ts.map +1 -0
- package/dist/hook/form/useName.js +46 -19
- package/dist/hook/form/useName.js.map +1 -1
- package/dist/hook/form/useOption.d.ts +17 -0
- package/dist/hook/form/useOption.d.ts.map +1 -0
- package/dist/hook/form/useOption.js +33 -14
- package/dist/hook/form/useOption.js.map +1 -1
- package/dist/hook/form/useRadio.d.ts +13 -0
- package/dist/hook/form/useRadio.d.ts.map +1 -0
- package/dist/hook/form/useRadio.js +29 -10
- package/dist/hook/form/useRadio.js.map +1 -1
- package/dist/hook/form/useSelect.d.ts +55 -0
- package/dist/hook/form/useSelect.d.ts.map +1 -0
- package/dist/hook/form/useSelect.js +114 -40
- package/dist/hook/form/useSelect.js.map +1 -1
- package/dist/hook/form/useValue.d.ts +12 -0
- package/dist/hook/form/useValue.d.ts.map +1 -0
- package/dist/hook/form/useValue.js +62 -19
- package/dist/hook/form/useValue.js.map +1 -1
- package/dist/hook/index.d.ts +7 -0
- package/dist/hook/index.d.ts.map +1 -0
- package/dist/hook/index.js +1 -2
- package/dist/hook/index.js.map +1 -1
- package/dist/hook/observable/index.d.ts +2 -0
- package/dist/hook/observable/index.d.ts.map +1 -0
- package/dist/hook/observable/index.js +0 -1
- package/dist/hook/observable/index.js.map +1 -1
- package/dist/hook/observable/useObservable.d.ts +5 -0
- package/dist/hook/observable/useObservable.d.ts.map +1 -0
- package/dist/hook/observable/useObservable.js +41 -20
- package/dist/hook/observable/useObservable.js.map +1 -1
- package/dist/hook/popover/context/index.d.ts +3 -0
- package/dist/hook/popover/context/index.d.ts.map +1 -0
- package/dist/hook/popover/context/index.js +0 -1
- package/dist/hook/popover/context/index.js.map +1 -1
- package/dist/hook/popover/index.d.ts +11 -0
- package/dist/hook/popover/index.d.ts.map +1 -0
- package/dist/hook/popover/index.js +1 -2
- package/dist/hook/popover/index.js.map +1 -1
- package/dist/hook/popover/style/positioning.css.d.ts +17 -0
- package/dist/hook/popover/style/positioning.css.d.ts.map +1 -0
- package/dist/hook/popover/style/{positioning.css.js → positioning.css.vanilla.js} +1 -1
- package/dist/hook/popover/style/positioning.css.vanilla.js.map +1 -0
- package/dist/hook/popover/useAnchor.d.ts +3 -0
- package/dist/hook/popover/useAnchor.d.ts.map +1 -0
- package/dist/hook/popover/useAnchor.js +46 -18
- package/dist/hook/popover/useAnchor.js.map +1 -1
- package/dist/hook/popover/useAnchorPositioning.d.ts +30 -0
- package/dist/hook/popover/useAnchorPositioning.d.ts.map +1 -0
- package/dist/hook/popover/useAnchorPositioning.js +158 -53
- package/dist/hook/popover/useAnchorPositioning.js.map +1 -1
- package/dist/hook/popover/useClickOutside.d.ts +2 -0
- package/dist/hook/popover/useClickOutside.d.ts.map +1 -0
- package/dist/hook/popover/useClickOutside.js +37 -14
- package/dist/hook/popover/useClickOutside.js.map +1 -1
- package/dist/hook/popover/useClose.d.ts +7 -0
- package/dist/hook/popover/useClose.d.ts.map +1 -0
- package/dist/hook/popover/useClose.js +9 -11
- package/dist/hook/popover/useClose.js.map +1 -1
- package/dist/hook/popover/useDialog.d.ts +16 -0
- package/dist/hook/popover/useDialog.d.ts.map +1 -0
- package/dist/hook/popover/useDialog.js +29 -20
- package/dist/hook/popover/useDialog.js.map +1 -1
- package/dist/hook/popover/useLightDismiss.d.ts +3 -0
- package/dist/hook/popover/useLightDismiss.d.ts.map +1 -0
- package/dist/hook/popover/useLightDismiss.js +159 -72
- package/dist/hook/popover/useLightDismiss.js.map +1 -1
- package/dist/hook/popover/useOverlay.d.ts +29 -0
- package/dist/hook/popover/useOverlay.d.ts.map +1 -0
- package/dist/hook/popover/useOverlay.js +25 -29
- package/dist/hook/popover/useOverlay.js.map +1 -1
- package/dist/hook/popover/usePopover.d.ts +26 -0
- package/dist/hook/popover/usePopover.d.ts.map +1 -0
- package/dist/hook/popover/usePopover.js +36 -32
- package/dist/hook/popover/usePopover.js.map +1 -1
- package/dist/hook/popover/usePositioning.d.ts +32 -0
- package/dist/hook/popover/usePositioning.d.ts.map +1 -0
- package/dist/hook/popover/usePositioning.js +87 -85
- package/dist/hook/popover/usePositioning.js.map +1 -1
- package/dist/hook/popover/useReturnFocus.d.ts +3 -0
- package/dist/hook/popover/useReturnFocus.d.ts.map +1 -0
- package/dist/hook/popover/useReturnFocus.js +11 -8
- package/dist/hook/popover/useReturnFocus.js.map +1 -1
- package/dist/hook/popover/useTooltip.d.ts +27 -0
- package/dist/hook/popover/useTooltip.d.ts.map +1 -0
- package/dist/hook/popover/useTooltip.js +89 -98
- package/dist/hook/popover/useTooltip.js.map +1 -1
- package/dist/hook/promise/index.d.ts +2 -0
- package/dist/hook/promise/index.d.ts.map +1 -0
- package/dist/hook/promise/index.js +0 -1
- package/dist/hook/promise/index.js.map +1 -1
- package/dist/hook/promise/usePromise.d.ts +3 -0
- package/dist/hook/promise/usePromise.d.ts.map +1 -0
- package/dist/hook/promise/usePromise.js +56 -23
- package/dist/hook/promise/usePromise.js.map +1 -1
- package/dist/hook/react/element.d.ts +20 -0
- package/dist/hook/react/element.d.ts.map +1 -0
- package/dist/hook/react/element.js +2 -0
- package/dist/hook/react/element.js.map +1 -0
- package/dist/hook/react/index.d.ts +10 -0
- package/dist/hook/react/index.d.ts.map +1 -0
- package/dist/hook/react/index.js +0 -1
- package/dist/hook/react/index.js.map +1 -1
- package/dist/hook/react/refValue.d.ts +4 -0
- package/dist/hook/react/refValue.d.ts.map +1 -0
- package/dist/hook/react/refValue.js +0 -1
- package/dist/hook/react/refValue.js.map +1 -1
- package/dist/hook/react/useActivate.d.ts +8 -0
- package/dist/hook/react/useActivate.d.ts.map +1 -0
- package/dist/hook/react/useActivate.js +110 -57
- package/dist/hook/react/useActivate.js.map +1 -1
- package/dist/hook/react/useConst.d.ts +2 -0
- package/dist/hook/react/useConst.d.ts.map +1 -0
- package/dist/hook/react/useConst.js +0 -1
- package/dist/hook/react/useConst.js.map +1 -1
- package/dist/hook/react/useInteractive.d.ts +4 -0
- package/dist/hook/react/useInteractive.d.ts.map +1 -0
- package/dist/hook/react/useInteractive.js +73 -34
- package/dist/hook/react/useInteractive.js.map +1 -1
- package/dist/hook/react/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/hook/react/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/hook/react/useIsomorphicLayoutEffect.js +0 -1
- package/dist/hook/react/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/hook/react/useRefCallback.d.ts +3 -0
- package/dist/hook/react/useRefCallback.d.ts.map +1 -0
- package/dist/hook/react/useRefCallback.js +17 -21
- package/dist/hook/react/useRefCallback.js.map +1 -1
- package/dist/hook/react/useRefObject.d.ts +4 -0
- package/dist/hook/react/useRefObject.d.ts.map +1 -0
- package/dist/hook/react/useRefObject.js +0 -1
- package/dist/hook/react/useRefObject.js.map +1 -1
- package/dist/hook/react/useRegExp.d.ts +3 -0
- package/dist/hook/react/useRegExp.d.ts.map +1 -0
- package/dist/hook/react/useRegExp.js +27 -10
- package/dist/hook/react/useRegExp.js.map +1 -1
- package/dist/hook/react/useUniqueId.d.ts +2 -0
- package/dist/hook/react/useUniqueId.d.ts.map +1 -0
- package/dist/hook/react/useUniqueId.js +12 -4
- package/dist/hook/react/useUniqueId.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/infra/index.d.ts +2 -0
- package/dist/infra/index.d.ts.map +1 -0
- package/dist/infra/index.js +0 -1
- package/dist/infra/index.js.map +1 -1
- package/dist/infra/logging/index.d.ts +2 -0
- package/dist/infra/logging/index.d.ts.map +1 -0
- package/dist/infra/logging/index.js +0 -1
- package/dist/infra/logging/index.js.map +1 -1
- package/dist/infra/logging/logger.d.ts +50 -0
- package/dist/infra/logging/logger.d.ts.map +1 -0
- package/dist/infra/logging/logger.js +48 -68
- package/dist/infra/logging/logger.js.map +1 -1
- package/dist/theme/ColorScheme.d.ts +10 -0
- package/dist/theme/ColorScheme.d.ts.map +1 -0
- package/dist/theme/ColorScheme.js +49 -7
- package/dist/theme/ColorScheme.js.map +1 -1
- package/dist/theme/ThemeContext.d.ts +11 -0
- package/dist/theme/ThemeContext.d.ts.map +1 -0
- package/dist/theme/ThemeContext.js +0 -1
- package/dist/theme/ThemeContext.js.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +6 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.js +42 -10
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/defineTheme.d.ts +15 -0
- package/dist/theme/defineTheme.d.ts.map +1 -0
- package/dist/theme/defineTheme.js +3 -2
- package/dist/theme/defineTheme.js.map +1 -1
- package/dist/theme/global.css.d.ts +14 -0
- package/dist/theme/global.css.d.ts.map +1 -0
- package/dist/theme/{global.css.js → global.css.vanilla.js} +1 -1
- package/dist/theme/global.css.vanilla.js.map +1 -0
- package/dist/theme/index.d.ts +11 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +3 -4
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/palette.d.ts +126 -0
- package/dist/theme/palette.d.ts.map +1 -0
- package/dist/theme/palette.js +1 -19
- package/dist/theme/palette.js.map +1 -1
- package/dist/theme/theme.css.d.ts +321 -0
- package/dist/theme/theme.css.d.ts.map +1 -0
- package/dist/theme/{theme.css.js → theme.css.vanilla.js} +1 -1
- package/dist/theme/theme.css.vanilla.js.map +1 -0
- package/dist/theme/token.css.d.ts +287 -0
- package/dist/theme/token.css.d.ts.map +1 -0
- package/dist/theme/{token.css.js → token.css.vanilla.js} +1 -1
- package/dist/theme/token.css.vanilla.js.map +1 -0
- package/dist/theme/typography.d.ts +136 -0
- package/dist/theme/typography.d.ts.map +1 -0
- package/dist/theme/typography.js +0 -1
- package/dist/theme/typography.js.map +1 -1
- package/dist/theme/useSystemColorScheme.d.ts +2 -0
- package/dist/theme/useSystemColorScheme.d.ts.map +1 -0
- package/dist/theme/useSystemColorScheme.js +0 -1
- package/dist/theme/useSystemColorScheme.js.map +1 -1
- package/dist/types/svg.d.ts +5 -0
- package/dist/util/array/compact.d.ts +3 -0
- package/dist/util/array/compact.d.ts.map +1 -0
- package/dist/util/array/compact.js +6 -0
- package/dist/util/array/compact.js.map +1 -0
- package/dist/util/array/index.d.ts +5 -0
- package/dist/util/array/index.d.ts.map +1 -0
- package/dist/util/array/index.js +3 -1
- package/dist/util/array/index.js.map +1 -1
- package/dist/util/array/toggle.d.ts +2 -0
- package/dist/util/array/toggle.d.ts.map +1 -0
- package/dist/util/array/toggle.js +0 -1
- package/dist/util/array/toggle.js.map +1 -1
- package/dist/util/array/uniq.d.ts +2 -0
- package/dist/util/array/uniq.d.ts.map +1 -0
- package/dist/util/array/uniq.js +6 -0
- package/dist/util/array/uniq.js.map +1 -0
- package/dist/util/array/without.d.ts +2 -0
- package/dist/util/array/without.d.ts.map +1 -0
- package/dist/util/array/without.js +6 -0
- package/dist/util/array/without.js.map +1 -0
- package/dist/util/document/accessibility.css.d.ts +7 -0
- package/dist/util/document/accessibility.css.d.ts.map +1 -0
- package/dist/util/document/{accessibility.css.js → accessibility.css.vanilla.js} +1 -1
- package/dist/util/document/accessibility.css.vanilla.js.map +1 -0
- package/dist/util/document/accessibility.d.ts +10 -0
- package/dist/util/document/accessibility.d.ts.map +1 -0
- package/dist/util/document/accessibility.js +0 -1
- package/dist/util/document/accessibility.js.map +1 -1
- package/dist/util/document/class.d.ts +4 -0
- package/dist/util/document/class.d.ts.map +1 -0
- package/dist/util/document/class.js +0 -1
- package/dist/util/document/class.js.map +1 -1
- package/dist/util/document/error.d.ts +21 -0
- package/dist/util/document/error.d.ts.map +1 -0
- package/dist/util/document/error.js +0 -1
- package/dist/util/document/error.js.map +1 -1
- package/dist/util/document/event.d.ts +15 -0
- package/dist/util/document/event.d.ts.map +1 -0
- package/dist/util/document/event.js +0 -1
- package/dist/util/document/event.js.map +1 -1
- package/dist/util/document/index.d.ts +5 -0
- package/dist/util/document/index.d.ts.map +1 -0
- package/dist/util/document/index.js +1 -2
- package/dist/util/document/index.js.map +1 -1
- package/dist/util/file/index.d.ts +2 -0
- package/dist/util/file/index.d.ts.map +1 -0
- package/dist/util/file/index.js +0 -1
- package/dist/util/file/index.js.map +1 -1
- package/dist/util/file/readAsDataURL.d.ts +5 -0
- package/dist/util/file/readAsDataURL.d.ts.map +1 -0
- package/dist/util/file/readAsDataURL.js +3 -2
- package/dist/util/file/readAsDataURL.js.map +1 -1
- package/dist/util/filter/index.d.ts +7 -0
- package/dist/util/filter/index.d.ts.map +1 -0
- package/dist/util/filter/index.js +0 -1
- package/dist/util/filter/index.js.map +1 -1
- package/dist/util/filter/isArray.d.ts +2 -0
- package/dist/util/filter/isArray.d.ts.map +1 -0
- package/dist/util/filter/isArray.js +0 -1
- package/dist/util/filter/isArray.js.map +1 -1
- package/dist/util/filter/isNil.d.ts +2 -0
- package/dist/util/filter/isNil.d.ts.map +1 -0
- package/dist/util/filter/isNil.js +0 -1
- package/dist/util/filter/isNil.js.map +1 -1
- package/dist/util/filter/isObject.d.ts +2 -0
- package/dist/util/filter/isObject.d.ts.map +1 -0
- package/dist/util/filter/isObject.js +0 -1
- package/dist/util/filter/isObject.js.map +1 -1
- package/dist/util/filter/isString.d.ts +2 -0
- package/dist/util/filter/isString.d.ts.map +1 -0
- package/dist/util/filter/isString.js +0 -1
- package/dist/util/filter/isString.js.map +1 -1
- package/dist/util/filter/isSymbol.d.ts +2 -0
- package/dist/util/filter/isSymbol.d.ts.map +1 -0
- package/dist/util/filter/isSymbol.js +0 -1
- package/dist/util/filter/isSymbol.js.map +1 -1
- package/dist/util/filter/negate.d.ts +3 -0
- package/dist/util/filter/negate.d.ts.map +1 -0
- package/dist/util/filter/negate.js +0 -1
- package/dist/util/filter/negate.js.map +1 -1
- package/dist/util/index.d.ts +14 -0
- package/dist/util/index.d.ts.map +1 -0
- package/dist/util/index.js +5 -2
- package/dist/util/index.js.map +1 -1
- package/dist/util/linked-list/buildLinkedList.d.ts +3 -0
- package/dist/util/linked-list/buildLinkedList.d.ts.map +1 -0
- package/dist/util/linked-list/buildLinkedList.js +0 -1
- package/dist/util/linked-list/buildLinkedList.js.map +1 -1
- package/dist/util/linked-list/index.d.ts +3 -0
- package/dist/util/linked-list/index.d.ts.map +1 -0
- package/dist/util/linked-list/index.js +0 -1
- package/dist/util/linked-list/index.js.map +1 -1
- package/dist/util/linked-list/node.d.ts +7 -0
- package/dist/util/linked-list/node.d.ts.map +1 -0
- package/dist/util/linked-list/node.js +0 -1
- package/dist/util/linked-list/node.js.map +1 -1
- package/dist/util/lock/index.d.ts +2 -0
- package/dist/util/lock/index.d.ts.map +1 -0
- package/dist/util/lock/index.js +0 -1
- package/dist/util/lock/index.js.map +1 -1
- package/dist/util/lock/lock.d.ts +36 -0
- package/dist/util/lock/lock.d.ts.map +1 -0
- package/dist/util/lock/lock.js +9 -9
- package/dist/util/lock/lock.js.map +1 -1
- package/dist/util/number/index.d.ts +3 -0
- package/dist/util/number/index.d.ts.map +1 -0
- package/dist/util/number/index.js +1 -1
- package/dist/util/number/isNumber.d.ts +2 -0
- package/dist/util/number/isNumber.d.ts.map +1 -0
- package/dist/util/number/isNumber.js +0 -1
- package/dist/util/number/isNumber.js.map +1 -1
- package/dist/util/number/range.d.ts +19 -0
- package/dist/util/number/range.d.ts.map +1 -0
- package/dist/util/number/range.js +8 -0
- package/dist/util/number/range.js.map +1 -0
- package/dist/util/object/entries.d.ts +6 -0
- package/dist/util/object/entries.d.ts.map +1 -0
- package/dist/util/object/entries.js +0 -1
- package/dist/util/object/entries.js.map +1 -1
- package/dist/util/object/fromEntries.d.ts +2 -0
- package/dist/util/object/fromEntries.d.ts.map +1 -0
- package/dist/util/object/fromEntries.js +0 -1
- package/dist/util/object/fromEntries.js.map +1 -1
- package/dist/util/object/index.d.ts +4 -0
- package/dist/util/object/index.d.ts.map +1 -0
- package/dist/util/object/index.js +0 -1
- package/dist/util/object/index.js.map +1 -1
- package/dist/util/object/keys.d.ts +3 -0
- package/dist/util/object/keys.d.ts.map +1 -0
- package/dist/util/object/keys.js +0 -1
- package/dist/util/object/keys.js.map +1 -1
- package/dist/util/promise/deferred.d.ts +12 -0
- package/dist/util/promise/deferred.d.ts.map +1 -0
- package/dist/util/promise/deferred.js +0 -1
- package/dist/util/promise/deferred.js.map +1 -1
- package/dist/util/promise/index.d.ts +6 -0
- package/dist/util/promise/index.d.ts.map +1 -0
- package/dist/util/promise/index.js +0 -1
- package/dist/util/promise/index.js.map +1 -1
- package/dist/util/promise/isPromise.d.ts +2 -0
- package/dist/util/promise/isPromise.d.ts.map +1 -0
- package/dist/util/promise/isPromise.js +0 -1
- package/dist/util/promise/isPromise.js.map +1 -1
- package/dist/util/promise/promiseReduce.d.ts +10 -0
- package/dist/util/promise/promiseReduce.d.ts.map +1 -0
- package/dist/util/promise/promiseReduce.js +0 -1
- package/dist/util/promise/promiseReduce.js.map +1 -1
- package/dist/util/promise/waitFor.d.ts +2 -0
- package/dist/util/promise/waitFor.d.ts.map +1 -0
- package/dist/util/promise/waitFor.js +3 -2
- package/dist/util/promise/waitFor.js.map +1 -1
- package/dist/util/promise/waitUntil.d.ts +2 -0
- package/dist/util/promise/waitUntil.d.ts.map +1 -0
- package/dist/util/promise/waitUntil.js +3 -2
- package/dist/util/promise/waitUntil.js.map +1 -1
- package/dist/util/random/UUID.d.ts +3 -0
- package/dist/util/random/UUID.d.ts.map +1 -0
- package/dist/util/random/UUID.js +0 -1
- package/dist/util/random/UUID.js.map +1 -1
- package/dist/util/random/generateDeterministicId.d.ts +2 -0
- package/dist/util/random/generateDeterministicId.d.ts.map +1 -0
- package/dist/util/random/generateDeterministicId.js +0 -1
- package/dist/util/random/generateDeterministicId.js.map +1 -1
- package/dist/util/random/generateDigest.d.ts +2 -0
- package/dist/util/random/generateDigest.d.ts.map +1 -0
- package/dist/util/random/generateDigest.js +0 -1
- package/dist/util/random/generateDigest.js.map +1 -1
- package/dist/util/random/generateUniqueId.d.ts +2 -0
- package/dist/util/random/generateUniqueId.d.ts.map +1 -0
- package/dist/util/random/generateUniqueId.js +0 -1
- package/dist/util/random/generateUniqueId.js.map +1 -1
- package/dist/util/random/index.d.ts +5 -0
- package/dist/util/random/index.d.ts.map +1 -0
- package/dist/util/random/index.js +0 -1
- package/dist/util/random/index.js.map +1 -1
- package/dist/util/random/randomKaomoji.d.ts +2 -0
- package/dist/util/random/randomKaomoji.d.ts.map +1 -0
- package/dist/util/random/randomKaomoji.js +0 -1
- package/dist/util/random/randomKaomoji.js.map +1 -1
- package/dist/util/random/toHex.d.ts +2 -0
- package/dist/util/random/toHex.d.ts.map +1 -0
- package/dist/util/random/toHex.js +1 -5
- package/dist/util/random/toHex.js.map +1 -1
- package/dist/util/sort/index.d.ts +3 -0
- package/dist/util/sort/index.d.ts.map +1 -0
- package/dist/util/sort/index.js +0 -1
- package/dist/util/sort/index.js.map +1 -1
- package/dist/util/sort/mergeSort.d.ts +6 -0
- package/dist/util/sort/mergeSort.d.ts.map +1 -0
- package/dist/util/sort/mergeSort.js +0 -1
- package/dist/util/sort/mergeSort.js.map +1 -1
- package/dist/util/sort/quickSort.d.ts +6 -0
- package/dist/util/sort/quickSort.d.ts.map +1 -0
- package/dist/util/sort/quickSort.js +0 -1
- package/dist/util/sort/quickSort.js.map +1 -1
- package/dist/util/string/index.d.ts +3 -0
- package/dist/util/string/index.d.ts.map +1 -0
- package/dist/util/string/index.js +0 -1
- package/dist/util/string/index.js.map +1 -1
- package/dist/util/string/kebabCase.d.ts +8 -0
- package/dist/util/string/kebabCase.d.ts.map +1 -0
- package/dist/util/string/kebabCase.js +0 -1
- package/dist/util/string/kebabCase.js.map +1 -1
- package/dist/util/string/split.d.ts +2 -0
- package/dist/util/string/split.d.ts.map +1 -0
- package/dist/util/string/split.js +0 -1
- package/dist/util/string/split.js.map +1 -1
- package/dist/util/tree/addTreeNode.d.ts +3 -0
- package/dist/util/tree/addTreeNode.d.ts.map +1 -0
- package/dist/util/tree/addTreeNode.js +0 -1
- package/dist/util/tree/addTreeNode.js.map +1 -1
- package/dist/util/tree/attachChild.d.ts +3 -0
- package/dist/util/tree/attachChild.d.ts.map +1 -0
- package/dist/util/tree/attachChild.js +0 -1
- package/dist/util/tree/attachChild.js.map +1 -1
- package/dist/util/tree/breadthFirstSearch.d.ts +2 -0
- package/dist/util/tree/breadthFirstSearch.d.ts.map +1 -0
- package/dist/util/tree/breadthFirstSearch.js +0 -1
- package/dist/util/tree/breadthFirstSearch.js.map +1 -1
- package/dist/util/tree/buildTree.d.ts +3 -0
- package/dist/util/tree/buildTree.d.ts.map +1 -0
- package/dist/util/tree/buildTree.js +0 -1
- package/dist/util/tree/buildTree.js.map +1 -1
- package/dist/util/tree/depthFirstSearch.d.ts +2 -0
- package/dist/util/tree/depthFirstSearch.d.ts.map +1 -0
- package/dist/util/tree/depthFirstSearch.js +0 -1
- package/dist/util/tree/depthFirstSearch.js.map +1 -1
- package/dist/util/tree/detachChild.d.ts +3 -0
- package/dist/util/tree/detachChild.d.ts.map +1 -0
- package/dist/util/tree/detachChild.js +0 -1
- package/dist/util/tree/detachChild.js.map +1 -1
- package/dist/util/tree/index.d.ts +9 -0
- package/dist/util/tree/index.d.ts.map +1 -0
- package/dist/util/tree/index.js +0 -1
- package/dist/util/tree/index.js.map +1 -1
- package/dist/util/tree/iterateChildren.d.ts +3 -0
- package/dist/util/tree/iterateChildren.d.ts.map +1 -0
- package/dist/util/tree/iterateChildren.js +0 -1
- package/dist/util/tree/iterateChildren.js.map +1 -1
- package/dist/util/tree/iterateTree.d.ts +3 -0
- package/dist/util/tree/iterateTree.d.ts.map +1 -0
- package/dist/util/tree/iterateTree.js +0 -1
- package/dist/util/tree/iterateTree.js.map +1 -1
- package/dist/util/tree/node.d.ts +10 -0
- package/dist/util/tree/node.d.ts.map +1 -0
- package/dist/util/tree/node.js +0 -1
- package/dist/util/tree/node.js.map +1 -1
- package/dist/util/tree/removeTreeNode.d.ts +3 -0
- package/dist/util/tree/removeTreeNode.d.ts.map +1 -0
- package/dist/util/tree/removeTreeNode.js +3 -2
- package/dist/util/tree/removeTreeNode.js.map +1 -1
- package/dist/util/type/index.d.ts +2 -0
- package/dist/util/type/index.d.ts.map +1 -0
- package/dist/util/type/index.js +2 -0
- package/dist/util/type/index.js.map +1 -0
- package/dist/util/type/prettify.d.ts +4 -0
- package/dist/util/type/prettify.d.ts.map +1 -0
- package/dist/util/type/prettify.js +2 -0
- package/dist/util/type/prettify.js.map +1 -0
- package/package.json +14 -28
- package/src/component/checkbox/Switch.tsx +1 -1
- package/src/component/checkbox/icon/index.ts +2 -0
- package/src/component/icon/index.ts +2 -0
- package/src/component/popover/Popover.tsx +1 -1
- package/src/hook/accessibility/keyboard/hook/useMoveFocus.ts +1 -1
- package/src/hook/accessibility/keyboard/hook/useNavigate.ts +1 -1
- package/src/hook/accessibility/keyboard/resolve.ts +3 -6
- package/src/hook/accessibility/keyboard/useController.ts +1 -1
- package/src/hook/accessibility/keyboard/useKeyboard.ts +1 -1
- package/src/hook/form/useAutoComplete.ts +2 -2
- package/src/hook/form/useChecked.ts +2 -2
- package/src/hook/popover/style/positioning.css.ts +2 -3
- package/src/hook/popover/useOverlay.ts +1 -1
- package/src/hook/popover/usePopover.ts +1 -1
- package/src/hook/popover/usePositioning.ts +14 -3
- package/src/hook/popover/useReturnFocus.ts +1 -1
- package/src/hook/promise/usePromise.ts +12 -6
- package/src/hook/react/useActivate.ts +1 -1
- package/src/hook/react/useRegExp.ts +1 -2
- package/src/infra/logging/logger.ts +4 -4
- package/src/theme/defineTheme.ts +19 -13
- package/src/theme/global.css.ts +2 -10
- package/src/theme/typography.ts +2 -2
- package/src/types/svg.d.ts +5 -0
- package/src/util/array/compact.ts +5 -0
- package/src/util/array/index.ts +3 -0
- package/src/util/array/uniq.ts +3 -0
- package/src/util/array/without.ts +3 -0
- package/src/util/index.ts +1 -0
- package/src/util/number/index.ts +1 -2
- package/src/util/number/{range.d.ts → range.ts} +7 -0
- package/src/util/string/kebabCase.ts +27 -1
- package/src/util/type/index.ts +1 -0
- package/src/util/type/prettify.ts +1 -0
- package/src/vite-env.d.ts +1 -0
- package/dist/component/button/style/index.css.js.map +0 -1
- package/dist/component/checkbox/style/index.css.js.map +0 -1
- package/dist/component/header/style/index.css.js.map +0 -1
- package/dist/component/input/style/index.css.js.map +0 -1
- package/dist/component/popover/style/index.css.js.map +0 -1
- package/dist/component/progress/style/index.css.js.map +0 -1
- package/dist/component/select/style/index.css.js.map +0 -1
- package/dist/component/style/article.css.js.map +0 -1
- package/dist/component/typography/style/index.css.js.map +0 -1
- package/dist/hook/popover/style/positioning.css.js.map +0 -1
- package/dist/theme/global.css.js.map +0 -1
- package/dist/theme/theme.css.js.map +0 -1
- package/dist/theme/token.css.js.map +0 -1
- package/dist/util/document/accessibility.css.js.map +0 -1
- /package/src/hook/react/{element.d.ts → element.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detachChild.js","sources":["../../../src/util/tree/detachChild.ts"],"sourcesContent":["import type { TreeNode } from './node'\n\nexport function detachChild<T extends TreeNode<unknown>>(parent: T, child: T) {\n if (parent.firstChild === child) {\n parent.firstChild = child.nextSibling ?? null\n }\n\n if (parent.lastChild === child) {\n parent.lastChild = child.previousSibling ?? null\n }\n\n if (child.previousSibling) {\n child.previousSibling.nextSibling = child.nextSibling ?? null\n }\n\n if (child.nextSibling) {\n child.nextSibling.previousSibling = child.previousSibling ?? null\n }\n\n // Detach the child's own links so it cannot reach back into the tree it\n // was removed from.\n child.parent = null\n child.previousSibling = null\n child.nextSibling = null\n\n return parent\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"detachChild.js","sources":["../../../src/util/tree/detachChild.ts"],"sourcesContent":["import type { TreeNode } from './node'\n\nexport function detachChild<T extends TreeNode<unknown>>(parent: T, child: T) {\n if (parent.firstChild === child) {\n parent.firstChild = child.nextSibling ?? null\n }\n\n if (parent.lastChild === child) {\n parent.lastChild = child.previousSibling ?? null\n }\n\n if (child.previousSibling) {\n child.previousSibling.nextSibling = child.nextSibling ?? null\n }\n\n if (child.nextSibling) {\n child.nextSibling.previousSibling = child.previousSibling ?? null\n }\n\n // Detach the child's own links so it cannot reach back into the tree it\n // was removed from.\n child.parent = null\n child.previousSibling = null\n child.nextSibling = null\n\n return parent\n}\n"],"names":["detachChild","parent","child","firstChild","nextSibling","lastChild","previousSibling"],"mappings":"AAEO,SAASA,WAAAA,CAAyCC,QAAWC,KAAAA,EAAU;AAC5E,EAAA,IAAID,MAAAA,CAAOE,eAAeD,KAAAA,EAAO;AAC/BD,IAAAA,MAAAA,CAAOE,UAAAA,GAAaD,MAAME,WAAAA,IAAe,IAAA;AAAA,EAC3C;AAEA,EAAA,IAAIH,MAAAA,CAAOI,cAAcH,KAAAA,EAAO;AAC9BD,IAAAA,MAAAA,CAAOI,SAAAA,GAAYH,MAAMI,eAAAA,IAAmB,IAAA;AAAA,EAC9C;AAEA,EAAA,IAAIJ,MAAMI,eAAAA,EAAiB;AACzBJ,IAAAA,KAAAA,CAAMI,eAAAA,CAAgBF,WAAAA,GAAcF,KAAAA,CAAME,WAAAA,IAAe,IAAA;AAAA,EAC3D;AAEA,EAAA,IAAIF,MAAME,WAAAA,EAAa;AACrBF,IAAAA,KAAAA,CAAME,WAAAA,CAAYE,eAAAA,GAAkBJ,KAAAA,CAAMI,eAAAA,IAAmB,IAAA;AAAA,EAC/D;AAIAJ,EAAAA,KAAAA,CAAMD,MAAAA,GAAS,IAAA;AACfC,EAAAA,KAAAA,CAAMI,eAAAA,GAAkB,IAAA;AACxBJ,EAAAA,KAAAA,CAAME,WAAAA,GAAc,IAAA;AAEpB,EAAA,OAAOH,MAAAA;AACT;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './addTreeNode';
|
|
2
|
+
export * from './breadthFirstSearch';
|
|
3
|
+
export * from './buildTree';
|
|
4
|
+
export * from './depthFirstSearch';
|
|
5
|
+
export * from './iterateChildren';
|
|
6
|
+
export * from './iterateTree';
|
|
7
|
+
export * from './node';
|
|
8
|
+
export * from './removeTreeNode';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/tree/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,kBAAkB,CAAA"}
|
package/dist/util/tree/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iterateChildren.d.ts","sourceRoot":"","sources":["../../../src/util/tree/iterateChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEtC,wBAAiB,eAAe,CAAC,CAAC,SAAS,QAAQ,CAAC,OAAO,CAAC,EAC1D,MAAM,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,+BAQ7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateChildren.js","sources":["../../../src/util/tree/iterateChildren.ts"],"sourcesContent":["import type { TreeNode } from './node'\n\nexport function* iterateChildren<T extends TreeNode<unknown>>(\n parent: T | null | undefined\n) {\n let child = parent?.firstChild\n\n while (child) {\n yield child\n child = child.nextSibling\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iterateChildren.js","sources":["../../../src/util/tree/iterateChildren.ts"],"sourcesContent":["import type { TreeNode } from './node'\n\nexport function* iterateChildren<T extends TreeNode<unknown>>(\n parent: T | null | undefined\n) {\n let child = parent?.firstChild\n\n while (child) {\n yield child\n child = child.nextSibling\n }\n}\n"],"names":["iterateChildren","parent","child","firstChild","nextSibling"],"mappings":"AAEO,UAAUA,gBACfC,MAAAA,EACA;AACA,EAAA,IAAIC,QAAQD,MAAAA,EAAQE,UAAAA;AAEpB,EAAA,OAAOD,KAAAA,EAAO;AACZ,IAAA,MAAMA,KAAAA;AACNA,IAAAA,KAAAA,GAAQA,KAAAA,CAAME,WAAAA;AAAAA,EAChB;AACF;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iterateTree.d.ts","sourceRoot":"","sources":["../../../src/util/tree/iterateTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEtC,wBAAiB,WAAW,CAAC,CAAC,SAAS,QAAQ,CAAC,OAAO,CAAC,EACtD,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,+BAgB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateTree.js","sources":["../../../src/util/tree/iterateTree.ts"],"sourcesContent":["import type { TreeNode } from './node'\n\nexport function* iterateTree<T extends TreeNode<unknown>>(\n root: T | null | undefined\n) {\n const queue = [root]\n let current: T | null | undefined\n\n while ((current = queue.pop())) {\n yield current\n\n if (current.nextSibling) {\n queue.push(current.nextSibling)\n }\n\n if (current.firstChild) {\n queue.push(current.firstChild)\n }\n }\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"iterateTree.js","sources":["../../../src/util/tree/iterateTree.ts"],"sourcesContent":["import type { TreeNode } from './node'\n\nexport function* iterateTree<T extends TreeNode<unknown>>(\n root: T | null | undefined\n) {\n const queue = [root]\n let current: T | null | undefined\n\n while ((current = queue.pop())) {\n yield current\n\n if (current.nextSibling) {\n queue.push(current.nextSibling)\n }\n\n if (current.firstChild) {\n queue.push(current.firstChild)\n }\n }\n}\n"],"names":["iterateTree","root","queue","current","pop","nextSibling","push","firstChild"],"mappings":"AAEO,UAAUA,YACfC,IAAAA,EACA;AACA,EAAA,MAAMC,KAAAA,GAAQ,CAACD,IAAI,CAAA;AACnB,EAAA,IAAIE,OAAAA;AAEJ,EAAA,OAAQA,OAAAA,GAAUD,KAAAA,CAAME,GAAAA,EAAI,EAAI;AAC9B,IAAA,MAAMD,OAAAA;AAEN,IAAA,IAAIA,QAAQE,WAAAA,EAAa;AACvBH,MAAAA,KAAAA,CAAMI,IAAAA,CAAKH,QAAQE,WAAW,CAAA;AAAA,IAChC;AAEA,IAAA,IAAIF,QAAQI,UAAAA,EAAY;AACtBL,MAAAA,KAAAA,CAAMI,IAAAA,CAAKH,QAAQI,UAAU,CAAA;AAAA,IAC/B;AAAA,EACF;AACF;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface TreeNode<T> {
|
|
2
|
+
value: T;
|
|
3
|
+
parent?: this | null;
|
|
4
|
+
previousSibling?: this | null;
|
|
5
|
+
nextSibling?: this | null;
|
|
6
|
+
firstChild?: this | null;
|
|
7
|
+
lastChild?: this | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function TreeNode<T>(value: T): TreeNode<T>;
|
|
10
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/util/tree/node.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,KAAK,EAAE,CAAC,CAAA;IACR,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACpB,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAC7B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,eAuBnC"}
|
package/dist/util/tree/node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sources":["../../../src/util/tree/node.ts"],"sourcesContent":["export interface TreeNode<T> {\n value: T\n parent?: this | null\n previousSibling?: this | null\n nextSibling?: this | null\n firstChild?: this | null\n lastChild?: this | null\n}\n\nexport function TreeNode<T>(value: T) {\n const node: TreeNode<T> = {\n value,\n parent: null,\n previousSibling: null,\n nextSibling: null,\n firstChild: null,\n lastChild: null,\n }\n\n Object.defineProperty(node, 'toJSON', {\n configurable: true,\n writable: true,\n value(): TreeNode<T> {\n return {\n value: this.value,\n nextSibling: this.nextSibling,\n firstChild: this.firstChild,\n }\n },\n })\n\n return node\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"node.js","sources":["../../../src/util/tree/node.ts"],"sourcesContent":["export interface TreeNode<T> {\n value: T\n parent?: this | null\n previousSibling?: this | null\n nextSibling?: this | null\n firstChild?: this | null\n lastChild?: this | null\n}\n\nexport function TreeNode<T>(value: T) {\n const node: TreeNode<T> = {\n value,\n parent: null,\n previousSibling: null,\n nextSibling: null,\n firstChild: null,\n lastChild: null,\n }\n\n Object.defineProperty(node, 'toJSON', {\n configurable: true,\n writable: true,\n value(): TreeNode<T> {\n return {\n value: this.value,\n nextSibling: this.nextSibling,\n firstChild: this.firstChild,\n }\n },\n })\n\n return node\n}\n"],"names":["TreeNode","value","node","parent","previousSibling","nextSibling","firstChild","lastChild","Object","defineProperty","configurable","writable"],"mappings":"AASO,SAASA,SAAYC,KAAAA,EAAU;AACpC,EAAA,MAAMC,IAAAA,GAAoB;AAAA,IACxBD,KAAAA;AAAAA,IACAE,MAAAA,EAAQ,IAAA;AAAA,IACRC,eAAAA,EAAiB,IAAA;AAAA,IACjBC,WAAAA,EAAa,IAAA;AAAA,IACbC,UAAAA,EAAY,IAAA;AAAA,IACZC,SAAAA,EAAW;AAAA,GACb;AAEAC,EAAAA,MAAAA,CAAOC,cAAAA,CAAeP,MAAM,QAAA,EAAU;AAAA,IACpCQ,YAAAA,EAAc,IAAA;AAAA,IACdC,QAAAA,EAAU,IAAA;AAAA,IACVV,KAAAA,GAAqB;AACnB,MAAA,OAAO;AAAA,QACLA,OAAO,IAAA,CAAKA,KAAAA;AAAAA,QACZI,aAAa,IAAA,CAAKA,WAAAA;AAAAA,QAClBC,YAAY,IAAA,CAAKA;AAAAA,OACnB;AAAA,IACF;AAAA,GACD,CAAA;AAED,EAAA,OAAOJ,IAAAA;AACT;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeTreeNode.d.ts","sourceRoot":"","sources":["../../../src/util/tree/removeTreeNode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEtC,wBAAgB,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAC,OAAO,CAAC,EACxD,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC1B,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,YAyBtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeTreeNode.js","sources":["../../../src/util/tree/removeTreeNode.ts"],"sourcesContent":["import { detachChild } from './detachChild'\nimport { iterateChildren } from './iterateChildren'\nimport type { TreeNode } from './node'\n\nexport function removeTreeNode<T extends TreeNode<unknown>>(\n root: T | null | undefined,\n { value }: NoInfer<T>\n) {\n if (root == null) {\n return null\n }\n\n if (root.value === value) {\n return null\n }\n\n const queue = [root]\n let parent: T | null | undefined\n\n while ((parent = queue.shift())) {\n for (const child of iterateChildren(parent)) {\n queue.push(child)\n\n if (child.value === value) {\n detachChild(parent, child)\n return root\n }\n }\n }\n\n return root\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"removeTreeNode.js","sources":["../../../src/util/tree/removeTreeNode.ts"],"sourcesContent":["import { detachChild } from './detachChild'\nimport { iterateChildren } from './iterateChildren'\nimport type { TreeNode } from './node'\n\nexport function removeTreeNode<T extends TreeNode<unknown>>(\n root: T | null | undefined,\n { value }: NoInfer<T>\n) {\n if (root == null) {\n return null\n }\n\n if (root.value === value) {\n return null\n }\n\n const queue = [root]\n let parent: T | null | undefined\n\n while ((parent = queue.shift())) {\n for (const child of iterateChildren(parent)) {\n queue.push(child)\n\n if (child.value === value) {\n detachChild(parent, child)\n return root\n }\n }\n }\n\n return root\n}\n"],"names":["removeTreeNode","root","value","queue","parent","shift","child","iterateChildren","push","detachChild"],"mappings":";;;AAIO,SAASA,eACdC,IAAAA,EACA;AAAA,EAAEC;AAAkB,CAAA,EACpB;AACA,EAAA,IAAID,QAAQ,IAAA,EAAM;AAChB,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,IAAIA,IAAAA,CAAKC,UAAUA,KAAAA,EAAO;AACxB,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAMC,KAAAA,GAAQ,CAACF,IAAI,CAAA;AACnB,EAAA,IAAIG,MAAAA;AAEJ,EAAA,OAAQA,MAAAA,GAASD,KAAAA,CAAME,KAAAA,EAAM,EAAI;AAC/B,IAAA,KAAA,MAAWC,KAAAA,IAASC,eAAAA,CAAgBH,MAAM,CAAA,EAAG;AAC3CD,MAAAA,KAAAA,CAAMK,KAAKF,KAAK,CAAA;AAEhB,MAAA,IAAIA,KAAAA,CAAMJ,UAAUA,KAAAA,EAAO;AACzBO,QAAAA,WAAAA,CAAYL,QAAQE,KAAK,CAAA;AACzB,QAAA,OAAOL,IAAAA;AAAAA,MACT;AAAA,IACF;AAAA,EACF;AAEA,EAAA,OAAOA,IAAAA;AACT;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/type/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prettify.d.ts","sourceRoot":"","sources":["../../../src/util/type/prettify.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prettify.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chiplet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "React component, hook, and utility library.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,15 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json",
|
|
32
32
|
".": {
|
|
33
33
|
"types": "./src/index.ts",
|
|
34
|
-
"
|
|
35
|
-
"storybook": "./src/index.ts",
|
|
36
|
-
"import": "./dist/index.js"
|
|
34
|
+
"default": "./dist/index.js"
|
|
37
35
|
},
|
|
38
36
|
"./*": {
|
|
39
37
|
"types": "./src/*/index.ts",
|
|
40
|
-
"
|
|
41
|
-
"storybook": "./src/*/index.ts",
|
|
42
|
-
"import": "./dist/*/index.js"
|
|
38
|
+
"default": "./dist/*/index.js"
|
|
43
39
|
}
|
|
44
40
|
},
|
|
45
41
|
"files": [
|
|
@@ -66,15 +62,16 @@
|
|
|
66
62
|
"@opentelemetry/semantic-conventions": "^1.45.0",
|
|
67
63
|
"@vanilla-extract/recipes": "^0.5.7",
|
|
68
64
|
"clsx": "^2.1.1",
|
|
69
|
-
"
|
|
65
|
+
"fast-deep-equal": "^3.1.3",
|
|
70
66
|
"rxjs": "^7.8.2",
|
|
71
67
|
"symbol-observable": "^4.0.0",
|
|
72
68
|
"tiny-invariant": "^1.3.3"
|
|
73
69
|
},
|
|
74
70
|
"devDependencies": {
|
|
71
|
+
"@babel/plugin-syntax-jsx": "^7.29.7",
|
|
72
|
+
"@babel/plugin-syntax-typescript": "^7.29.7",
|
|
75
73
|
"@commitlint/cli": "^21.2.4",
|
|
76
74
|
"@commitlint/config-conventional": "^21.2.4",
|
|
77
|
-
"@commitlint/types": "^21.2.3",
|
|
78
75
|
"@csstools/postcss-light-dark-function": "^3.0.9",
|
|
79
76
|
"@csstools/postcss-relative-color-syntax": "^4.0.17",
|
|
80
77
|
"@eslint/js": "^10.0.1",
|
|
@@ -88,25 +85,20 @@
|
|
|
88
85
|
"@storybook/addon-vitest": "^10.6.7",
|
|
89
86
|
"@storybook/react-vite": "^10.6.7",
|
|
90
87
|
"@svgr/rollup": "^8.1.0",
|
|
91
|
-
"@tailwindcss/postcss": "^4.3.5",
|
|
92
88
|
"@testing-library/jest-dom": "^8.0.0",
|
|
93
89
|
"@testing-library/react": "^16.3.3",
|
|
94
90
|
"@testing-library/user-event": "^14.6.13",
|
|
95
|
-
"@types/lodash-es": "^4.17.12",
|
|
96
91
|
"@types/node": "^24.12.2",
|
|
97
92
|
"@types/react": "^19.3.0",
|
|
98
93
|
"@types/react-dom": "^19.3.0",
|
|
99
94
|
"@vanilla-extract/css": "^1.21.3",
|
|
100
95
|
"@vanilla-extract/rollup-plugin": "^1.5.4",
|
|
101
96
|
"@vanilla-extract/vite-plugin": "^5.2.6",
|
|
102
|
-
"@vitejs/plugin-legacy": "^8.2.4",
|
|
103
97
|
"@vitejs/plugin-react": "^6.3.0",
|
|
104
98
|
"@vitest/browser-playwright": "^5.1.1",
|
|
105
99
|
"@vitest/coverage-istanbul": "^5.1.1",
|
|
106
100
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
107
|
-
"clsx": "^2.1.1",
|
|
108
101
|
"colorjs.io": "^0.7.1",
|
|
109
|
-
"csstype": "^3.2.4",
|
|
110
102
|
"eslint": "^10.15.0",
|
|
111
103
|
"eslint-plugin-import-x": "^4.18.1",
|
|
112
104
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -118,13 +110,11 @@
|
|
|
118
110
|
"husky": "^9.1.7",
|
|
119
111
|
"jsdom": "^31.0.1",
|
|
120
112
|
"lint-staged": "^17.6.1",
|
|
113
|
+
"oxc-transform-react": "^0.156.0",
|
|
121
114
|
"playwright": "^1.65.1",
|
|
122
115
|
"postcss": "^8.5.33",
|
|
123
|
-
"postcss-html": "^2.0.1",
|
|
124
|
-
"postcss-scss": "^4.0.9",
|
|
125
116
|
"postcss-styled-syntax": "^0.7.4",
|
|
126
117
|
"prettier": "^3.10.1",
|
|
127
|
-
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
128
118
|
"react": "^19.3.1",
|
|
129
119
|
"react-dom": "^19.3.1",
|
|
130
120
|
"reelout": "^0.6.1",
|
|
@@ -133,7 +123,6 @@
|
|
|
133
123
|
"rollup": "^4.68.7",
|
|
134
124
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
135
125
|
"rollup-plugin-node-externals": "^9.0.1",
|
|
136
|
-
"rollup-plugin-visualizer": "^7.1.3",
|
|
137
126
|
"rollup-preserve-directives": "^1.1.3",
|
|
138
127
|
"sort-package-json": "^4.1.0",
|
|
139
128
|
"storybook": "^10.6.7",
|
|
@@ -141,10 +130,6 @@
|
|
|
141
130
|
"stylelint-config-recess-order": "^7.10.1",
|
|
142
131
|
"stylelint-config-standard": "^41.0.0",
|
|
143
132
|
"stylelint-plugin-logical-css": "^2.1.1",
|
|
144
|
-
"tailwindcss": "^4.3.5",
|
|
145
|
-
"ts-node": "^10.9.2",
|
|
146
|
-
"tslib": "^2.9.1",
|
|
147
|
-
"type-fest": "^6.0.3",
|
|
148
133
|
"typescript": "^6.0.3",
|
|
149
134
|
"typescript-eslint": "^8.73.0",
|
|
150
135
|
"vite": "^8.3.8",
|
|
@@ -153,20 +138,21 @@
|
|
|
153
138
|
"peerDependencies": {
|
|
154
139
|
"@vanilla-extract/css": "^1.21.3",
|
|
155
140
|
"react": "^19.3.1",
|
|
156
|
-
"react-dom": "^19.3.1"
|
|
157
|
-
"tslib": "^2.9.1"
|
|
141
|
+
"react-dom": "^19.3.1"
|
|
158
142
|
},
|
|
159
143
|
"engines": {
|
|
160
144
|
"node": ">=24.15"
|
|
161
145
|
},
|
|
162
146
|
"scripts": {
|
|
163
|
-
"build": "rimraf dist && rollup -c && storybook build",
|
|
147
|
+
"build": "rimraf dist && rollup -c && node scripts/emit-dts.mjs && storybook build",
|
|
164
148
|
"clean": "rimraf -g \"**/{dist,storybook-static,coverage,test-results,__screenshots__,.vitest,*.tsbuildinfo}\"",
|
|
165
149
|
"dev": "storybook dev -p 6006",
|
|
166
|
-
"
|
|
167
|
-
"
|
|
150
|
+
"dts": "node scripts/emit-dts.mjs",
|
|
151
|
+
"format": "stylelint --fix \"**/*.{css,js,jsx,ts,tsx}\" && eslint --fix . && prettier --write .",
|
|
152
|
+
"lint": "stylelint \"**/*.{css,js,jsx,ts,tsx}\" && eslint . && prettier --check .",
|
|
168
153
|
"pretest": "playwright install --with-deps",
|
|
169
154
|
"test": "vitest",
|
|
170
|
-
"
|
|
155
|
+
"typecheck": "tsc --noEmit",
|
|
156
|
+
"validate": "pnpm i && pnpm clean && pnpm lint && pnpm typecheck && pnpm build && pnpm test run --coverage"
|
|
171
157
|
}
|
|
172
158
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
2
|
+
/// <reference path="../../../types/svg.d.ts" />
|
|
1
3
|
import { fromSVG } from '../../icon/Icon'
|
|
2
4
|
import { ReactComponent as CheckboxCheckedSVG } from './CheckboxChecked.svg'
|
|
3
5
|
import { ReactComponent as CheckboxIndeterminateSVG } from './CheckboxIndeterminate.svg'
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
2
|
+
/// <reference path="../../types/svg.d.ts" />
|
|
1
3
|
import { fromSVG } from './Icon'
|
|
2
4
|
import { ReactComponent as Checkmark24FilledSVG } from './set/Checkmark24Filled.svg'
|
|
3
5
|
import { ReactComponent as Checkmark24RegularSVG } from './set/Checkmark24Regular.svg'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Overlay, PopoverOptions } from '#hook'
|
|
2
2
|
import { usePopover } from '#hook'
|
|
3
|
-
import type { HTMLElementRef } from '#hook/react/element
|
|
3
|
+
import type { HTMLElementRef } from '#hook/react/element'
|
|
4
4
|
import clsx from 'clsx'
|
|
5
5
|
import type { HTMLAttributes, JSX } from 'react'
|
|
6
6
|
import { Portal } from './Portal'
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
isHomeKey,
|
|
8
8
|
isPageDownKey,
|
|
9
9
|
isPageUpKey,
|
|
10
|
+
type Prettify,
|
|
10
11
|
} from '#util'
|
|
11
12
|
import type { Pool } from './hook/usePool'
|
|
12
13
|
import { Tree } from './tree'
|
|
@@ -18,7 +19,7 @@ export type Resolve = typeof resolve
|
|
|
18
19
|
|
|
19
20
|
export function resolve(
|
|
20
21
|
type: NavigationType,
|
|
21
|
-
|
|
22
|
+
_direction: NavigationDirection,
|
|
22
23
|
tree: Tree,
|
|
23
24
|
current: Element | null | undefined,
|
|
24
25
|
target: Target | null | undefined
|
|
@@ -249,16 +250,12 @@ type Modifier = {
|
|
|
249
250
|
altKey?: boolean
|
|
250
251
|
}
|
|
251
252
|
|
|
252
|
-
type Target =
|
|
253
|
+
type Target = Prettify<
|
|
253
254
|
| { [K in Key]: K }[Key]
|
|
254
255
|
| { [K in Key]: { key: K } & Modifier }[Key]
|
|
255
256
|
| ({ key: 'Find'; detail: string } & Modifier)
|
|
256
257
|
>
|
|
257
258
|
|
|
258
|
-
type Pretty<T> = {
|
|
259
|
-
[K in keyof T]: T[K]
|
|
260
|
-
} & {}
|
|
261
|
-
|
|
262
259
|
function normalize(target: Target): Exclude<Target, string> {
|
|
263
260
|
if (typeof target === 'string') {
|
|
264
261
|
return { key: target }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VirtualActive, VirtualFocus } from '#util'
|
|
2
2
|
import { use, useCallback } from 'react'
|
|
3
|
-
import type { GlobalAttributes } from '../../react/element
|
|
3
|
+
import type { GlobalAttributes } from '../../react/element'
|
|
4
4
|
import { useRefCallback } from '../../react/useRefCallback'
|
|
5
5
|
import { useUniqueId } from '../../react/useUniqueId'
|
|
6
6
|
import { KeyboardContext } from './context'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { uniq } from '
|
|
2
|
+
import { uniq } from '#util'
|
|
3
3
|
import {
|
|
4
4
|
useCallback,
|
|
5
5
|
useImperativeHandle,
|
|
@@ -17,7 +17,7 @@ import { useHighlight } from '../document/useHighlight'
|
|
|
17
17
|
import type { Overlay, ToggleCallback } from '../popover/useOverlay'
|
|
18
18
|
import type { PopoverOptions } from '../popover/usePopover'
|
|
19
19
|
import type { PositioningOptions } from '../popover/usePositioning'
|
|
20
|
-
import type { GlobalAttributes } from '../react/element
|
|
20
|
+
import type { GlobalAttributes } from '../react/element'
|
|
21
21
|
import { useRefObject } from '../react/useRefObject'
|
|
22
22
|
import { useRegExp } from '../react/useRegExp'
|
|
23
23
|
import type { ChangeCallback, OptionalChangeCallback } from './useDefault'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { uniq, without } from '
|
|
2
|
+
import { uniq, without } from '#util'
|
|
3
3
|
import { useCallback, useLayoutEffect, useRef } from 'react'
|
|
4
4
|
import invariant from 'tiny-invariant'
|
|
5
5
|
import { useConst } from '../react/useConst'
|
|
@@ -99,7 +99,7 @@ export function useChecked<P extends Props<unknown>>(props: P) {
|
|
|
99
99
|
|
|
100
100
|
let _value = normalizeValue(multiple, ref.current.value)
|
|
101
101
|
|
|
102
|
-
_value = checked ? uniq(_value
|
|
102
|
+
_value = checked ? uniq([..._value, value]) : without(_value, value)
|
|
103
103
|
|
|
104
104
|
setValue(ev, _value)
|
|
105
105
|
},
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { entries, fromEntries, keys } from '#util'
|
|
1
|
+
import { entries, fromEntries, keys, type Prettify } from '#util'
|
|
2
2
|
import type { Alignment, Placement } from '@floating-ui/utils'
|
|
3
3
|
import { globalStyle } from '@vanilla-extract/css'
|
|
4
|
-
import type { Simplify } from 'type-fest'
|
|
5
4
|
import { generateDeterministicId } from '../../../util/random/generateDeterministicId'
|
|
6
5
|
|
|
7
6
|
export type Side = 'above' | 'below' | 'before' | 'after'
|
|
8
7
|
export type Axis = 'block' | 'inline'
|
|
9
|
-
export type Position =
|
|
8
|
+
export type Position = Prettify<Side | `${Side}-${Alignment}`>
|
|
10
9
|
|
|
11
10
|
export const Position = [
|
|
12
11
|
'above',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { useCallback, useLayoutEffect, useMemo, useRef } from 'react'
|
|
3
3
|
import { useDefault } from '../form/useDefault'
|
|
4
|
-
import type { GlobalAttributes } from '../react/element
|
|
4
|
+
import type { GlobalAttributes } from '../react/element'
|
|
5
5
|
|
|
6
6
|
export interface OverlayAnchorProps
|
|
7
7
|
extends GlobalAttributes, React.AriaAttributes, React.RefAttributes<Element> {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
type NavigationDirection,
|
|
14
14
|
} from '../accessibility/keyboard/Keyboard'
|
|
15
15
|
import { useController } from '../accessibility/keyboard/useController'
|
|
16
|
-
import type { HTMLElementRef } from '../react/element
|
|
16
|
+
import type { HTMLElementRef } from '../react/element'
|
|
17
17
|
import { useRefCallback } from '../react/useRefCallback'
|
|
18
18
|
import { useRefObject } from '../react/useRefObject'
|
|
19
19
|
import { useUniqueId } from '../react/useUniqueId'
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
size,
|
|
13
13
|
} from '@floating-ui/dom'
|
|
14
14
|
import { getOppositePlacement, getSide } from '@floating-ui/utils'
|
|
15
|
-
import
|
|
15
|
+
import equal from 'fast-deep-equal'
|
|
16
16
|
import { useLayoutEffect, useRef, useState } from 'react'
|
|
17
17
|
import { flushSync } from 'react-dom'
|
|
18
18
|
import { refValue, type RefValue } from '../react/refValue'
|
|
@@ -68,7 +68,18 @@ export function usePositioning(
|
|
|
68
68
|
): Positioning {
|
|
69
69
|
const [stableOptions, setStableOptions] = useState(_options)
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
// 'fast-deep-equal' reports two distinct DOM elements as equal (no own
|
|
72
|
+
// enumerable keys), so compare the ref values by identity before the deep
|
|
73
|
+
// check. Comparing the referenced elements rather than the ref containers
|
|
74
|
+
// keeps a fresh ref-like object wrapping the same element from
|
|
75
|
+
// re-triggering the update on every render.
|
|
76
|
+
if (
|
|
77
|
+
refValue(_options.anchorRef) !== refValue(stableOptions.anchorRef) ||
|
|
78
|
+
refValue(_options.positionedRef) !==
|
|
79
|
+
refValue(stableOptions.positionedRef) ||
|
|
80
|
+
refValue(_options.arrowRef) !== refValue(stableOptions.arrowRef) ||
|
|
81
|
+
!equal(_options, stableOptions)
|
|
82
|
+
) {
|
|
72
83
|
setStableOptions(_options)
|
|
73
84
|
}
|
|
74
85
|
|
|
@@ -195,7 +206,7 @@ export function usePositioning(
|
|
|
195
206
|
}
|
|
196
207
|
}
|
|
197
208
|
|
|
198
|
-
if (!
|
|
209
|
+
if (!equal(ref.current.state, state)) {
|
|
199
210
|
ref.current.state = state
|
|
200
211
|
flushSync(() => setState(ref.current.state))
|
|
201
212
|
}
|
|
@@ -21,7 +21,16 @@ export function usePromise<T>(
|
|
|
21
21
|
const [error, setError] = useState<unknown>()
|
|
22
22
|
|
|
23
23
|
useEffect(() => {
|
|
24
|
-
|
|
24
|
+
// Both the deps array and the compiler's memo key track the signal
|
|
25
|
+
// instance, not its 'aborted' state: the deps re-run the effect when
|
|
26
|
+
// the signal is swapped between renders, and copying the signal to a
|
|
27
|
+
// local keeps the memo key identity-based — reading 'signal?.aborted'
|
|
28
|
+
// directly would narrow the key to that boolean, so a swapped-in,
|
|
29
|
+
// un-aborted signal would re-run the effect with a stale callback
|
|
30
|
+
// closing over the old signal.
|
|
31
|
+
const _signal = signal
|
|
32
|
+
|
|
33
|
+
if (_signal?.aborted) {
|
|
25
34
|
return
|
|
26
35
|
}
|
|
27
36
|
|
|
@@ -29,13 +38,13 @@ export function usePromise<T>(
|
|
|
29
38
|
|
|
30
39
|
promise
|
|
31
40
|
.then((value) => {
|
|
32
|
-
if (!destroyed && !
|
|
41
|
+
if (!destroyed && !_signal?.aborted) {
|
|
33
42
|
setValue(() => value)
|
|
34
43
|
setError(() => undefined)
|
|
35
44
|
}
|
|
36
45
|
})
|
|
37
46
|
.catch((error) => {
|
|
38
|
-
if (!destroyed && !
|
|
47
|
+
if (!destroyed && !_signal?.aborted) {
|
|
39
48
|
setError(() => error)
|
|
40
49
|
}
|
|
41
50
|
})
|
|
@@ -43,9 +52,6 @@ export function usePromise<T>(
|
|
|
43
52
|
return () => {
|
|
44
53
|
destroyed = true
|
|
45
54
|
}
|
|
46
|
-
// Depend on the signal instance, not its 'aborted' state, so the effect
|
|
47
|
-
// re-runs and the callbacks close over the latest signal when it is
|
|
48
|
-
// swapped between renders.
|
|
49
55
|
}, [promise, signal])
|
|
50
56
|
|
|
51
57
|
useEffect(() => {
|