@sanity/ui 0.36.17 → 0.37.3
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/package.json +14 -15
- package/lib/sanity-ui.js +0 -9840
- package/lib/sanity-ui.js.map +0 -1
- package/lib/sanity-ui.modern.js +0 -10896
- package/lib/sanity-ui.modern.js.map +0 -1
- package/lib/sanity-ui.module.js +0 -9720
- package/lib/sanity-ui.module.js.map +0 -1
- package/lib/src/components/autocomplete/autocomplete.d.ts +0 -56
- package/lib/src/components/autocomplete/autocomplete.d.ts.map +0 -1
- package/lib/src/components/autocomplete/autocomplete.styles.d.ts +0 -18
- package/lib/src/components/autocomplete/autocomplete.styles.d.ts.map +0 -1
- package/lib/src/components/autocomplete/autocompleteOption.d.ts +0 -10
- package/lib/src/components/autocomplete/autocompleteOption.d.ts.map +0 -1
- package/lib/src/components/autocomplete/autocompleteReducer.d.ts +0 -6
- package/lib/src/components/autocomplete/autocompleteReducer.d.ts.map +0 -1
- package/lib/src/components/autocomplete/constants.d.ts +0 -22
- package/lib/src/components/autocomplete/constants.d.ts.map +0 -1
- package/lib/src/components/autocomplete/index.d.ts +0 -3
- package/lib/src/components/autocomplete/index.d.ts.map +0 -1
- package/lib/src/components/autocomplete/types.d.ts +0 -87
- package/lib/src/components/autocomplete/types.d.ts.map +0 -1
- package/lib/src/components/breadcrumbs/breadcrumbs.d.ts +0 -14
- package/lib/src/components/breadcrumbs/breadcrumbs.d.ts.map +0 -1
- package/lib/src/components/breadcrumbs/breadcrumbs.styles.d.ts +0 -4
- package/lib/src/components/breadcrumbs/breadcrumbs.styles.d.ts.map +0 -1
- package/lib/src/components/breadcrumbs/index.d.ts +0 -2
- package/lib/src/components/breadcrumbs/index.d.ts.map +0 -1
- package/lib/src/components/dialog/dialog.d.ts +0 -34
- package/lib/src/components/dialog/dialog.d.ts.map +0 -1
- package/lib/src/components/dialog/dialogContext.d.ts +0 -16
- package/lib/src/components/dialog/dialogContext.d.ts.map +0 -1
- package/lib/src/components/dialog/dialogProvider.d.ts +0 -17
- package/lib/src/components/dialog/dialogProvider.d.ts.map +0 -1
- package/lib/src/components/dialog/index.d.ts +0 -5
- package/lib/src/components/dialog/index.d.ts.map +0 -1
- package/lib/src/components/dialog/styles.d.ts +0 -12
- package/lib/src/components/dialog/styles.d.ts.map +0 -1
- package/lib/src/components/dialog/useDialog.d.ts +0 -7
- package/lib/src/components/dialog/useDialog.d.ts.map +0 -1
- package/lib/src/components/hotkeys/hotkeys.d.ts +0 -16
- package/lib/src/components/hotkeys/hotkeys.d.ts.map +0 -1
- package/lib/src/components/hotkeys/index.d.ts +0 -2
- package/lib/src/components/hotkeys/index.d.ts.map +0 -1
- package/lib/src/components/index.d.ts +0 -10
- package/lib/src/components/index.d.ts.map +0 -1
- package/lib/src/components/menu/helpers.d.ts +0 -13
- package/lib/src/components/menu/helpers.d.ts.map +0 -1
- package/lib/src/components/menu/index.d.ts +0 -6
- package/lib/src/components/menu/index.d.ts.map +0 -1
- package/lib/src/components/menu/menu.d.ts +0 -28
- package/lib/src/components/menu/menu.d.ts.map +0 -1
- package/lib/src/components/menu/menuButton.d.ts +0 -48
- package/lib/src/components/menu/menuButton.d.ts.map +0 -1
- package/lib/src/components/menu/menuContext.d.ts +0 -15
- package/lib/src/components/menu/menuContext.d.ts.map +0 -1
- package/lib/src/components/menu/menuDivider.d.ts +0 -7
- package/lib/src/components/menu/menuDivider.d.ts.map +0 -1
- package/lib/src/components/menu/menuGroup.d.ts +0 -20
- package/lib/src/components/menu/menuGroup.d.ts.map +0 -1
- package/lib/src/components/menu/menuItem.d.ts +0 -23
- package/lib/src/components/menu/menuItem.d.ts.map +0 -1
- package/lib/src/components/menu/useMenu.d.ts +0 -3
- package/lib/src/components/menu/useMenu.d.ts.map +0 -1
- package/lib/src/components/skeleton/index.d.ts +0 -3
- package/lib/src/components/skeleton/index.d.ts.map +0 -1
- package/lib/src/components/skeleton/skeleton.d.ts +0 -16
- package/lib/src/components/skeleton/skeleton.d.ts.map +0 -1
- package/lib/src/components/skeleton/styles.d.ts +0 -9
- package/lib/src/components/skeleton/styles.d.ts.map +0 -1
- package/lib/src/components/skeleton/textSkeleton.d.ts +0 -51
- package/lib/src/components/skeleton/textSkeleton.d.ts.map +0 -1
- package/lib/src/components/tab/index.d.ts +0 -4
- package/lib/src/components/tab/index.d.ts.map +0 -1
- package/lib/src/components/tab/tab.d.ts +0 -24
- package/lib/src/components/tab/tab.d.ts.map +0 -1
- package/lib/src/components/tab/tabList.d.ts +0 -13
- package/lib/src/components/tab/tabList.d.ts.map +0 -1
- package/lib/src/components/tab/tabPanel.d.ts +0 -17
- package/lib/src/components/tab/tabPanel.d.ts.map +0 -1
- package/lib/src/components/toast/index.d.ts +0 -5
- package/lib/src/components/toast/index.d.ts.map +0 -1
- package/lib/src/components/toast/toast.d.ts +0 -16
- package/lib/src/components/toast/toast.d.ts.map +0 -1
- package/lib/src/components/toast/toastContext.d.ts +0 -4
- package/lib/src/components/toast/toastContext.d.ts.map +0 -1
- package/lib/src/components/toast/toastProvider.d.ts +0 -16
- package/lib/src/components/toast/toastProvider.d.ts.map +0 -1
- package/lib/src/components/toast/types.d.ts +0 -21
- package/lib/src/components/toast/types.d.ts.map +0 -1
- package/lib/src/components/toast/useToast.d.ts +0 -6
- package/lib/src/components/toast/useToast.d.ts.map +0 -1
- package/lib/src/components/tree/helpers.d.ts +0 -5
- package/lib/src/components/tree/helpers.d.ts.map +0 -1
- package/lib/src/components/tree/index.d.ts +0 -5
- package/lib/src/components/tree/index.d.ts.map +0 -1
- package/lib/src/components/tree/style.d.ts +0 -9
- package/lib/src/components/tree/style.d.ts.map +0 -1
- package/lib/src/components/tree/tree.d.ts +0 -14
- package/lib/src/components/tree/tree.d.ts.map +0 -1
- package/lib/src/components/tree/treeContext.d.ts +0 -7
- package/lib/src/components/tree/treeContext.d.ts.map +0 -1
- package/lib/src/components/tree/treeGroup.d.ts +0 -6
- package/lib/src/components/tree/treeGroup.d.ts.map +0 -1
- package/lib/src/components/tree/treeItem.d.ts +0 -20
- package/lib/src/components/tree/treeItem.d.ts.map +0 -1
- package/lib/src/components/tree/types.d.ts +0 -24
- package/lib/src/components/tree/types.d.ts.map +0 -1
- package/lib/src/components/tree/useTree.d.ts +0 -6
- package/lib/src/components/tree/useTree.d.ts.map +0 -1
- package/lib/src/constants.d.ts +0 -3
- package/lib/src/constants.d.ts.map +0 -1
- package/lib/src/helpers/animation.d.ts +0 -9
- package/lib/src/helpers/animation.d.ts.map +0 -1
- package/lib/src/helpers/element.d.ts +0 -29
- package/lib/src/helpers/element.d.ts.map +0 -1
- package/lib/src/helpers/focus.d.ts +0 -21
- package/lib/src/helpers/focus.d.ts.map +0 -1
- package/lib/src/helpers/index.d.ts +0 -5
- package/lib/src/helpers/index.d.ts.map +0 -1
- package/lib/src/helpers/scroll.d.ts +0 -5
- package/lib/src/helpers/scroll.d.ts.map +0 -1
- package/lib/src/hooks/_internal/index.d.ts +0 -2
- package/lib/src/hooks/_internal/index.d.ts.map +0 -1
- package/lib/src/hooks/_internal/useUnique.d.ts +0 -8
- package/lib/src/hooks/_internal/useUnique.d.ts.map +0 -1
- package/lib/src/hooks/index.d.ts +0 -9
- package/lib/src/hooks/index.d.ts.map +0 -1
- package/lib/src/hooks/useClickOutside.d.ts +0 -9
- package/lib/src/hooks/useClickOutside.d.ts.map +0 -1
- package/lib/src/hooks/useCustomValidity.d.ts +0 -9
- package/lib/src/hooks/useCustomValidity.d.ts.map +0 -1
- package/lib/src/hooks/useElementRect/index.d.ts +0 -2
- package/lib/src/hooks/useElementRect/index.d.ts.map +0 -1
- package/lib/src/hooks/useElementRect/useElementRect.d.ts +0 -6
- package/lib/src/hooks/useElementRect/useElementRect.d.ts.map +0 -1
- package/lib/src/hooks/useForwardedRef.d.ts +0 -6
- package/lib/src/hooks/useForwardedRef.d.ts.map +0 -1
- package/lib/src/hooks/useGlobalKeyDown.d.ts +0 -5
- package/lib/src/hooks/useGlobalKeyDown.d.ts.map +0 -1
- package/lib/src/hooks/useIsomorphicEffect.d.ts +0 -6
- package/lib/src/hooks/useIsomorphicEffect.d.ts.map +0 -1
- package/lib/src/hooks/useMediaIndex/index.d.ts +0 -2
- package/lib/src/hooks/useMediaIndex/index.d.ts.map +0 -1
- package/lib/src/hooks/useMediaIndex/lib/media.d.ts +0 -12
- package/lib/src/hooks/useMediaIndex/lib/media.d.ts.map +0 -1
- package/lib/src/hooks/useMediaIndex/useMediaIndex.d.ts +0 -6
- package/lib/src/hooks/useMediaIndex/useMediaIndex.d.ts.map +0 -1
- package/lib/src/hooks/usePrefersDark.d.ts +0 -5
- package/lib/src/hooks/usePrefersDark.d.ts.map +0 -1
- package/lib/src/hooks/useResponsiveProp.d.ts +0 -6
- package/lib/src/hooks/useResponsiveProp.d.ts.map +0 -1
- package/lib/src/index.d.ts +0 -9
- package/lib/src/index.d.ts.map +0 -1
- package/lib/src/lib/globalScope.d.ts +0 -2
- package/lib/src/lib/globalScope.d.ts.map +0 -1
- package/lib/src/lib/isRecord.d.ts +0 -2
- package/lib/src/lib/isRecord.d.ts.map +0 -1
- package/lib/src/primitives/_selectable/index.d.ts +0 -2
- package/lib/src/primitives/_selectable/index.d.ts.map +0 -1
- package/lib/src/primitives/_selectable/selectable.d.ts +0 -9
- package/lib/src/primitives/_selectable/selectable.d.ts.map +0 -1
- package/lib/src/primitives/_selectable/style.d.ts +0 -12
- package/lib/src/primitives/_selectable/style.d.ts.map +0 -1
- package/lib/src/primitives/avatar/avatar.d.ts +0 -27
- package/lib/src/primitives/avatar/avatar.d.ts.map +0 -1
- package/lib/src/primitives/avatar/avatarCounter.d.ts +0 -15
- package/lib/src/primitives/avatar/avatarCounter.d.ts.map +0 -1
- package/lib/src/primitives/avatar/avatarStack.d.ts +0 -16
- package/lib/src/primitives/avatar/avatarStack.d.ts.map +0 -1
- package/lib/src/primitives/avatar/index.d.ts +0 -5
- package/lib/src/primitives/avatar/index.d.ts.map +0 -1
- package/lib/src/primitives/avatar/styles.d.ts +0 -18
- package/lib/src/primitives/avatar/styles.d.ts.map +0 -1
- package/lib/src/primitives/avatar/types.d.ts +0 -14
- package/lib/src/primitives/avatar/types.d.ts.map +0 -1
- package/lib/src/primitives/badge/badge.d.ts +0 -18
- package/lib/src/primitives/badge/badge.d.ts.map +0 -1
- package/lib/src/primitives/badge/index.d.ts +0 -2
- package/lib/src/primitives/badge/index.d.ts.map +0 -1
- package/lib/src/primitives/badge/styles.d.ts +0 -5
- package/lib/src/primitives/badge/styles.d.ts.map +0 -1
- package/lib/src/primitives/badge/types.d.ts +0 -9
- package/lib/src/primitives/badge/types.d.ts.map +0 -1
- package/lib/src/primitives/box/box.d.ts +0 -13
- package/lib/src/primitives/box/box.d.ts.map +0 -1
- package/lib/src/primitives/box/index.d.ts +0 -2
- package/lib/src/primitives/box/index.d.ts.map +0 -1
- package/lib/src/primitives/button/button.d.ts +0 -29
- package/lib/src/primitives/button/button.d.ts.map +0 -1
- package/lib/src/primitives/button/index.d.ts +0 -2
- package/lib/src/primitives/button/index.d.ts.map +0 -1
- package/lib/src/primitives/button/styles.d.ts +0 -15
- package/lib/src/primitives/button/styles.d.ts.map +0 -1
- package/lib/src/primitives/card/card.d.ts +0 -28
- package/lib/src/primitives/card/card.d.ts.map +0 -1
- package/lib/src/primitives/card/index.d.ts +0 -3
- package/lib/src/primitives/card/index.d.ts.map +0 -1
- package/lib/src/primitives/card/styles.d.ts +0 -7
- package/lib/src/primitives/card/styles.d.ts.map +0 -1
- package/lib/src/primitives/card/types.d.ts +0 -10
- package/lib/src/primitives/card/types.d.ts.map +0 -1
- package/lib/src/primitives/checkbox/checkbox.d.ts +0 -13
- package/lib/src/primitives/checkbox/checkbox.d.ts.map +0 -1
- package/lib/src/primitives/checkbox/index.d.ts +0 -2
- package/lib/src/primitives/checkbox/index.d.ts.map +0 -1
- package/lib/src/primitives/checkbox/styles.d.ts +0 -5
- package/lib/src/primitives/checkbox/styles.d.ts.map +0 -1
- package/lib/src/primitives/code/code.d.ts +0 -15
- package/lib/src/primitives/code/code.d.ts.map +0 -1
- package/lib/src/primitives/code/index.d.ts +0 -2
- package/lib/src/primitives/code/index.d.ts.map +0 -1
- package/lib/src/primitives/code/styles.d.ts +0 -4
- package/lib/src/primitives/code/styles.d.ts.map +0 -1
- package/lib/src/primitives/container/container.d.ts +0 -13
- package/lib/src/primitives/container/container.d.ts.map +0 -1
- package/lib/src/primitives/container/index.d.ts +0 -3
- package/lib/src/primitives/container/index.d.ts.map +0 -1
- package/lib/src/primitives/container/styles.d.ts +0 -6
- package/lib/src/primitives/container/styles.d.ts.map +0 -1
- package/lib/src/primitives/container/types.d.ts +0 -7
- package/lib/src/primitives/container/types.d.ts.map +0 -1
- package/lib/src/primitives/flex/flex.d.ts +0 -14
- package/lib/src/primitives/flex/flex.d.ts.map +0 -1
- package/lib/src/primitives/flex/index.d.ts +0 -2
- package/lib/src/primitives/flex/index.d.ts.map +0 -1
- package/lib/src/primitives/grid/grid.d.ts +0 -13
- package/lib/src/primitives/grid/grid.d.ts.map +0 -1
- package/lib/src/primitives/grid/index.d.ts +0 -2
- package/lib/src/primitives/grid/index.d.ts.map +0 -1
- package/lib/src/primitives/heading/heading.d.ts +0 -25
- package/lib/src/primitives/heading/heading.d.ts.map +0 -1
- package/lib/src/primitives/heading/index.d.ts +0 -2
- package/lib/src/primitives/heading/index.d.ts.map +0 -1
- package/lib/src/primitives/heading/styles.d.ts +0 -5
- package/lib/src/primitives/heading/styles.d.ts.map +0 -1
- package/lib/src/primitives/heading/types.d.ts +0 -8
- package/lib/src/primitives/heading/types.d.ts.map +0 -1
- package/lib/src/primitives/helpers.d.ts +0 -3
- package/lib/src/primitives/helpers.d.ts.map +0 -1
- package/lib/src/primitives/index.d.ts +0 -26
- package/lib/src/primitives/index.d.ts.map +0 -1
- package/lib/src/primitives/inline/index.d.ts +0 -2
- package/lib/src/primitives/inline/index.d.ts.map +0 -1
- package/lib/src/primitives/inline/inline.d.ts +0 -13
- package/lib/src/primitives/inline/inline.d.ts.map +0 -1
- package/lib/src/primitives/inline/styles.d.ts +0 -6
- package/lib/src/primitives/inline/styles.d.ts.map +0 -1
- package/lib/src/primitives/inline/types.d.ts +0 -7
- package/lib/src/primitives/inline/types.d.ts.map +0 -1
- package/lib/src/primitives/kbd/index.d.ts +0 -2
- package/lib/src/primitives/kbd/index.d.ts.map +0 -1
- package/lib/src/primitives/kbd/kbd.d.ts +0 -15
- package/lib/src/primitives/kbd/kbd.d.ts.map +0 -1
- package/lib/src/primitives/label/index.d.ts +0 -2
- package/lib/src/primitives/label/index.d.ts.map +0 -1
- package/lib/src/primitives/label/label.d.ts +0 -25
- package/lib/src/primitives/label/label.d.ts.map +0 -1
- package/lib/src/primitives/label/styles.d.ts +0 -7
- package/lib/src/primitives/label/styles.d.ts.map +0 -1
- package/lib/src/primitives/popover/arrow.d.ts +0 -3
- package/lib/src/primitives/popover/arrow.d.ts.map +0 -1
- package/lib/src/primitives/popover/index.d.ts +0 -2
- package/lib/src/primitives/popover/index.d.ts.map +0 -1
- package/lib/src/primitives/popover/modifiers/getPopoverModifiers.d.ts +0 -4
- package/lib/src/primitives/popover/modifiers/getPopoverModifiers.d.ts.map +0 -1
- package/lib/src/primitives/popover/modifiers/index.d.ts +0 -2
- package/lib/src/primitives/popover/modifiers/index.d.ts.map +0 -1
- package/lib/src/primitives/popover/modifiers/types.d.ts +0 -18
- package/lib/src/primitives/popover/modifiers/types.d.ts.map +0 -1
- package/lib/src/primitives/popover/modifiers/usePopoverModifiers.d.ts +0 -4
- package/lib/src/primitives/popover/modifiers/usePopoverModifiers.d.ts.map +0 -1
- package/lib/src/primitives/popover/popover.d.ts +0 -38
- package/lib/src/primitives/popover/popover.d.ts.map +0 -1
- package/lib/src/primitives/radio/index.d.ts +0 -2
- package/lib/src/primitives/radio/index.d.ts.map +0 -1
- package/lib/src/primitives/radio/radio.d.ts +0 -12
- package/lib/src/primitives/radio/radio.d.ts.map +0 -1
- package/lib/src/primitives/radio/styles.d.ts +0 -5
- package/lib/src/primitives/radio/styles.d.ts.map +0 -1
- package/lib/src/primitives/select/index.d.ts +0 -2
- package/lib/src/primitives/select/index.d.ts.map +0 -1
- package/lib/src/primitives/select/select.d.ts +0 -16
- package/lib/src/primitives/select/select.d.ts.map +0 -1
- package/lib/src/primitives/select/styles.d.ts +0 -13
- package/lib/src/primitives/select/styles.d.ts.map +0 -1
- package/lib/src/primitives/spinner/index.d.ts +0 -2
- package/lib/src/primitives/spinner/index.d.ts.map +0 -1
- package/lib/src/primitives/spinner/spinner.d.ts +0 -13
- package/lib/src/primitives/spinner/spinner.d.ts.map +0 -1
- package/lib/src/primitives/stack/index.d.ts +0 -2
- package/lib/src/primitives/stack/index.d.ts.map +0 -1
- package/lib/src/primitives/stack/stack.d.ts +0 -14
- package/lib/src/primitives/stack/stack.d.ts.map +0 -1
- package/lib/src/primitives/stack/styles.d.ts +0 -8
- package/lib/src/primitives/stack/styles.d.ts.map +0 -1
- package/lib/src/primitives/switch/index.d.ts +0 -2
- package/lib/src/primitives/switch/index.d.ts.map +0 -1
- package/lib/src/primitives/switch/styles.d.ts +0 -11
- package/lib/src/primitives/switch/styles.d.ts.map +0 -1
- package/lib/src/primitives/switch/switch.d.ts +0 -12
- package/lib/src/primitives/switch/switch.d.ts.map +0 -1
- package/lib/src/primitives/text/index.d.ts +0 -2
- package/lib/src/primitives/text/index.d.ts.map +0 -1
- package/lib/src/primitives/text/styles.d.ts +0 -7
- package/lib/src/primitives/text/styles.d.ts.map +0 -1
- package/lib/src/primitives/text/text.d.ts +0 -25
- package/lib/src/primitives/text/text.d.ts.map +0 -1
- package/lib/src/primitives/textArea/index.d.ts +0 -2
- package/lib/src/primitives/textArea/index.d.ts.map +0 -1
- package/lib/src/primitives/textArea/textArea.d.ts +0 -18
- package/lib/src/primitives/textArea/textArea.d.ts.map +0 -1
- package/lib/src/primitives/textInput/index.d.ts +0 -2
- package/lib/src/primitives/textInput/index.d.ts.map +0 -1
- package/lib/src/primitives/textInput/textInput.d.ts +0 -41
- package/lib/src/primitives/textInput/textInput.d.ts.map +0 -1
- package/lib/src/primitives/tooltip/index.d.ts +0 -2
- package/lib/src/primitives/tooltip/index.d.ts.map +0 -1
- package/lib/src/primitives/tooltip/tooltip.d.ts +0 -23
- package/lib/src/primitives/tooltip/tooltip.d.ts.map +0 -1
- package/lib/src/primitives/tooltip/tooltipArrow.d.ts +0 -6
- package/lib/src/primitives/tooltip/tooltipArrow.d.ts.map +0 -1
- package/lib/src/primitives/types.d.ts +0 -102
- package/lib/src/primitives/types.d.ts.map +0 -1
- package/lib/src/styles/border/borderStyle.d.ts +0 -5
- package/lib/src/styles/border/borderStyle.d.ts.map +0 -1
- package/lib/src/styles/border/index.d.ts +0 -3
- package/lib/src/styles/border/index.d.ts.map +0 -1
- package/lib/src/styles/border/types.d.ts +0 -11
- package/lib/src/styles/border/types.d.ts.map +0 -1
- package/lib/src/styles/box/boxStyle.d.ts +0 -6
- package/lib/src/styles/box/boxStyle.d.ts.map +0 -1
- package/lib/src/styles/box/index.d.ts +0 -3
- package/lib/src/styles/box/index.d.ts.map +0 -1
- package/lib/src/styles/box/types.d.ts +0 -11
- package/lib/src/styles/box/types.d.ts.map +0 -1
- package/lib/src/styles/colorVars/colorVarsStyle.d.ts +0 -7
- package/lib/src/styles/colorVars/colorVarsStyle.d.ts.map +0 -1
- package/lib/src/styles/colorVars/index.d.ts +0 -2
- package/lib/src/styles/colorVars/index.d.ts.map +0 -1
- package/lib/src/styles/flex/flexItemStyle.d.ts +0 -6
- package/lib/src/styles/flex/flexItemStyle.d.ts.map +0 -1
- package/lib/src/styles/flex/flexStyle.d.ts +0 -9
- package/lib/src/styles/flex/flexStyle.d.ts.map +0 -1
- package/lib/src/styles/flex/index.d.ts +0 -4
- package/lib/src/styles/flex/index.d.ts.map +0 -1
- package/lib/src/styles/flex/types.d.ts +0 -23
- package/lib/src/styles/flex/types.d.ts.map +0 -1
- package/lib/src/styles/focusRing/index.d.ts +0 -18
- package/lib/src/styles/focusRing/index.d.ts.map +0 -1
- package/lib/src/styles/font/codeFontStyle.d.ts +0 -9
- package/lib/src/styles/font/codeFontStyle.d.ts.map +0 -1
- package/lib/src/styles/font/headingFontStyle.d.ts +0 -9
- package/lib/src/styles/font/headingFontStyle.d.ts.map +0 -1
- package/lib/src/styles/font/index.d.ts +0 -7
- package/lib/src/styles/font/index.d.ts.map +0 -1
- package/lib/src/styles/font/labelFontStyle.d.ts +0 -9
- package/lib/src/styles/font/labelFontStyle.d.ts.map +0 -1
- package/lib/src/styles/font/responsiveFont.d.ts +0 -11
- package/lib/src/styles/font/responsiveFont.d.ts.map +0 -1
- package/lib/src/styles/font/textAlignStyle.d.ts +0 -9
- package/lib/src/styles/font/textAlignStyle.d.ts.map +0 -1
- package/lib/src/styles/font/textFontStyle.d.ts +0 -9
- package/lib/src/styles/font/textFontStyle.d.ts.map +0 -1
- package/lib/src/styles/font/types.d.ts +0 -28
- package/lib/src/styles/font/types.d.ts.map +0 -1
- package/lib/src/styles/grid/gridItemStyle.d.ts +0 -5
- package/lib/src/styles/grid/gridItemStyle.d.ts.map +0 -1
- package/lib/src/styles/grid/gridStyle.d.ts +0 -5
- package/lib/src/styles/grid/gridStyle.d.ts.map +0 -1
- package/lib/src/styles/grid/index.d.ts +0 -4
- package/lib/src/styles/grid/index.d.ts.map +0 -1
- package/lib/src/styles/grid/types.d.ts +0 -26
- package/lib/src/styles/grid/types.d.ts.map +0 -1
- package/lib/src/styles/helpers.d.ts +0 -23
- package/lib/src/styles/helpers.d.ts.map +0 -1
- package/lib/src/styles/index.d.ts +0 -4
- package/lib/src/styles/index.d.ts.map +0 -1
- package/lib/src/styles/input/index.d.ts +0 -3
- package/lib/src/styles/input/index.d.ts.map +0 -1
- package/lib/src/styles/input/responsiveInputPaddingStyle.d.ts +0 -26
- package/lib/src/styles/input/responsiveInputPaddingStyle.d.ts.map +0 -1
- package/lib/src/styles/input/textInputStyle.d.ts +0 -23
- package/lib/src/styles/input/textInputStyle.d.ts.map +0 -1
- package/lib/src/styles/internal.d.ts +0 -12
- package/lib/src/styles/internal.d.ts.map +0 -1
- package/lib/src/styles/margin/index.d.ts +0 -3
- package/lib/src/styles/margin/index.d.ts.map +0 -1
- package/lib/src/styles/margin/marginStyle.d.ts +0 -5
- package/lib/src/styles/margin/marginStyle.d.ts.map +0 -1
- package/lib/src/styles/margin/types.d.ts +0 -10
- package/lib/src/styles/margin/types.d.ts.map +0 -1
- package/lib/src/styles/padding/index.d.ts +0 -3
- package/lib/src/styles/padding/index.d.ts.map +0 -1
- package/lib/src/styles/padding/paddingStyle.d.ts +0 -5
- package/lib/src/styles/padding/paddingStyle.d.ts.map +0 -1
- package/lib/src/styles/padding/types.d.ts +0 -13
- package/lib/src/styles/padding/types.d.ts.map +0 -1
- package/lib/src/styles/radius/index.d.ts +0 -3
- package/lib/src/styles/radius/index.d.ts.map +0 -1
- package/lib/src/styles/radius/radiusStyle.d.ts +0 -5
- package/lib/src/styles/radius/radiusStyle.d.ts.map +0 -1
- package/lib/src/styles/radius/types.d.ts +0 -7
- package/lib/src/styles/radius/types.d.ts.map +0 -1
- package/lib/src/styles/shadow/index.d.ts +0 -3
- package/lib/src/styles/shadow/index.d.ts.map +0 -1
- package/lib/src/styles/shadow/shadowStyle.d.ts +0 -5
- package/lib/src/styles/shadow/shadowStyle.d.ts.map +0 -1
- package/lib/src/styles/shadow/types.d.ts +0 -7
- package/lib/src/styles/shadow/types.d.ts.map +0 -1
- package/lib/src/styles/types.d.ts +0 -8
- package/lib/src/styles/types.d.ts.map +0 -1
- package/lib/src/theme/defaults.d.ts +0 -3
- package/lib/src/theme/defaults.d.ts.map +0 -1
- package/lib/src/theme/index.d.ts +0 -9
- package/lib/src/theme/index.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/blend/index.d.ts +0 -3
- package/lib/src/theme/lib/color-fns/blend/index.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/blend/multiply.d.ts +0 -8
- package/lib/src/theme/lib/color-fns/blend/multiply.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/blend/screen.d.ts +0 -8
- package/lib/src/theme/lib/color-fns/blend/screen.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/convert.d.ts +0 -19
- package/lib/src/theme/lib/color-fns/convert.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/helpers/index.d.ts +0 -2
- package/lib/src/theme/lib/color-fns/helpers/index.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/helpers/rgba.d.ts +0 -5
- package/lib/src/theme/lib/color-fns/helpers/rgba.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/index.d.ts +0 -6
- package/lib/src/theme/lib/color-fns/index.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/parse.d.ts +0 -6
- package/lib/src/theme/lib/color-fns/parse.d.ts.map +0 -1
- package/lib/src/theme/lib/color-fns/types.d.ts +0 -17
- package/lib/src/theme/lib/color-fns/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/avatar.d.ts +0 -10
- package/lib/src/theme/lib/theme/avatar.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/_generic/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/_generic/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/_generic/types.d.ts +0 -30
- package/lib/src/theme/lib/theme/color/_generic/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/base/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/base/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/base/types.d.ts +0 -20
- package/lib/src/theme/lib/theme/color/base/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/button/createButtonModes.d.ts +0 -7
- package/lib/src/theme/lib/theme/color/button/createButtonModes.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/button/createButtonTones.d.ts +0 -7
- package/lib/src/theme/lib/theme/color/button/createButtonTones.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/button/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/button/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/button/types.d.ts +0 -40
- package/lib/src/theme/lib/theme/color/button/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/card/createCardStates.d.ts +0 -8
- package/lib/src/theme/lib/theme/color/card/createCardStates.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/card/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/card/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/card/types.d.ts +0 -17
- package/lib/src/theme/lib/theme/color/card/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/defaults.d.ts +0 -3
- package/lib/src/theme/lib/theme/color/defaults.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/factory.d.ts +0 -83
- package/lib/src/theme/lib/theme/color/factory.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/index.d.ts +0 -13
- package/lib/src/theme/lib/theme/color/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/input/createInputModes.d.ts +0 -7
- package/lib/src/theme/lib/theme/color/input/createInputModes.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/input/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/input/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/input/types.d.ts +0 -26
- package/lib/src/theme/lib/theme/color/input/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/muted/createMuted.d.ts +0 -6
- package/lib/src/theme/lib/theme/color/muted/createMuted.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/muted/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/muted/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/muted/types.d.ts +0 -23
- package/lib/src/theme/lib/theme/color/muted/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/selectable/createSelectableTones.d.ts +0 -7
- package/lib/src/theme/lib/theme/color/selectable/createSelectableTones.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/selectable/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/selectable/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/selectable/types.d.ts +0 -27
- package/lib/src/theme/lib/theme/color/selectable/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/solid/createSolidTones.d.ts +0 -6
- package/lib/src/theme/lib/theme/color/solid/createSolidTones.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/solid/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/solid/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/solid/types.d.ts +0 -23
- package/lib/src/theme/lib/theme/color/solid/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/spot/createSpot.d.ts +0 -5
- package/lib/src/theme/lib/theme/color/spot/createSpot.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/spot/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/spot/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/spot/types.d.ts +0 -19
- package/lib/src/theme/lib/theme/color/spot/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/syntax/index.d.ts +0 -2
- package/lib/src/theme/lib/theme/color/syntax/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/syntax/types.d.ts +0 -42
- package/lib/src/theme/lib/theme/color/syntax/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/color/types.d.ts +0 -55
- package/lib/src/theme/lib/theme/color/types.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/fonts.d.ts +0 -50
- package/lib/src/theme/lib/theme/fonts.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/index.d.ts +0 -8
- package/lib/src/theme/lib/theme/index.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/input.d.ts +0 -23
- package/lib/src/theme/lib/theme/input.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/layer.d.ts +0 -16
- package/lib/src/theme/lib/theme/layer.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/shadow.d.ts +0 -19
- package/lib/src/theme/lib/theme/shadow.d.ts.map +0 -1
- package/lib/src/theme/lib/theme/theme.d.ts +0 -34
- package/lib/src/theme/lib/theme/theme.d.ts.map +0 -1
- package/lib/src/theme/studioTheme/color.d.ts +0 -2
- package/lib/src/theme/studioTheme/color.d.ts.map +0 -1
- package/lib/src/theme/studioTheme/fonts.d.ts +0 -3
- package/lib/src/theme/studioTheme/fonts.d.ts.map +0 -1
- package/lib/src/theme/studioTheme/helpers.d.ts +0 -3
- package/lib/src/theme/studioTheme/helpers.d.ts.map +0 -1
- package/lib/src/theme/studioTheme/index.d.ts +0 -2
- package/lib/src/theme/studioTheme/index.d.ts.map +0 -1
- package/lib/src/theme/studioTheme/theme.d.ts +0 -6
- package/lib/src/theme/studioTheme/theme.d.ts.map +0 -1
- package/lib/src/theme/themeColorProvider.d.ts +0 -15
- package/lib/src/theme/themeColorProvider.d.ts.map +0 -1
- package/lib/src/theme/themeContext.d.ts +0 -7
- package/lib/src/theme/themeContext.d.ts.map +0 -1
- package/lib/src/theme/themeProvider.d.ts +0 -17
- package/lib/src/theme/themeProvider.d.ts.map +0 -1
- package/lib/src/theme/types.d.ts +0 -36
- package/lib/src/theme/types.d.ts.map +0 -1
- package/lib/src/theme/useRootTheme.d.ts +0 -6
- package/lib/src/theme/useRootTheme.d.ts.map +0 -1
- package/lib/src/theme/useTheme.d.ts +0 -6
- package/lib/src/theme/useTheme.d.ts.map +0 -1
- package/lib/src/types/avatar.d.ts +0 -13
- package/lib/src/types/avatar.d.ts.map +0 -1
- package/lib/src/types/badge.d.ts +0 -9
- package/lib/src/types/badge.d.ts.map +0 -1
- package/lib/src/types/box.d.ts +0 -17
- package/lib/src/types/box.d.ts.map +0 -1
- package/lib/src/types/button.d.ts +0 -13
- package/lib/src/types/button.d.ts.map +0 -1
- package/lib/src/types/card.d.ts +0 -6
- package/lib/src/types/card.d.ts.map +0 -1
- package/lib/src/types/common.d.ts +0 -11
- package/lib/src/types/common.d.ts.map +0 -1
- package/lib/src/types/dialog.d.ts +0 -5
- package/lib/src/types/dialog.d.ts.map +0 -1
- package/lib/src/types/flex.d.ts +0 -17
- package/lib/src/types/flex.d.ts.map +0 -1
- package/lib/src/types/grid.d.ts +0 -13
- package/lib/src/types/grid.d.ts.map +0 -1
- package/lib/src/types/gridItem.d.ts +0 -25
- package/lib/src/types/gridItem.d.ts.map +0 -1
- package/lib/src/types/index.d.ts +0 -13
- package/lib/src/types/index.d.ts.map +0 -1
- package/lib/src/types/popover.d.ts +0 -5
- package/lib/src/types/popover.d.ts.map +0 -1
- package/lib/src/types/selectable.d.ts +0 -5
- package/lib/src/types/selectable.d.ts.map +0 -1
- package/lib/src/utils/boundaryElement/boundaryElementContext.d.ts +0 -4
- package/lib/src/utils/boundaryElement/boundaryElementContext.d.ts.map +0 -1
- package/lib/src/utils/boundaryElement/boundaryElementProvider.d.ts +0 -13
- package/lib/src/utils/boundaryElement/boundaryElementProvider.d.ts.map +0 -1
- package/lib/src/utils/boundaryElement/index.d.ts +0 -4
- package/lib/src/utils/boundaryElement/index.d.ts.map +0 -1
- package/lib/src/utils/boundaryElement/types.d.ts +0 -8
- package/lib/src/utils/boundaryElement/types.d.ts.map +0 -1
- package/lib/src/utils/boundaryElement/useBoundaryElement.d.ts +0 -6
- package/lib/src/utils/boundaryElement/useBoundaryElement.d.ts.map +0 -1
- package/lib/src/utils/elementQuery/elementQuery.d.ts +0 -15
- package/lib/src/utils/elementQuery/elementQuery.d.ts.map +0 -1
- package/lib/src/utils/elementQuery/helpers.d.ts +0 -3
- package/lib/src/utils/elementQuery/helpers.d.ts.map +0 -1
- package/lib/src/utils/elementQuery/index.d.ts +0 -2
- package/lib/src/utils/elementQuery/index.d.ts.map +0 -1
- package/lib/src/utils/errorBoundary.d.ts +0 -29
- package/lib/src/utils/errorBoundary.d.ts.map +0 -1
- package/lib/src/utils/index.d.ts +0 -9
- package/lib/src/utils/index.d.ts.map +0 -1
- package/lib/src/utils/layer/index.d.ts +0 -5
- package/lib/src/utils/layer/index.d.ts.map +0 -1
- package/lib/src/utils/layer/layer.d.ts +0 -13
- package/lib/src/utils/layer/layer.d.ts.map +0 -1
- package/lib/src/utils/layer/layerContext.d.ts +0 -4
- package/lib/src/utils/layer/layerContext.d.ts.map +0 -1
- package/lib/src/utils/layer/layerProvider.d.ts +0 -13
- package/lib/src/utils/layer/layerProvider.d.ts.map +0 -1
- package/lib/src/utils/layer/types.d.ts +0 -11
- package/lib/src/utils/layer/types.d.ts.map +0 -1
- package/lib/src/utils/layer/useLayer.d.ts +0 -6
- package/lib/src/utils/layer/useLayer.d.ts.map +0 -1
- package/lib/src/utils/portal/index.d.ts +0 -5
- package/lib/src/utils/portal/index.d.ts.map +0 -1
- package/lib/src/utils/portal/portal.d.ts +0 -16
- package/lib/src/utils/portal/portal.d.ts.map +0 -1
- package/lib/src/utils/portal/portalContext.d.ts +0 -5
- package/lib/src/utils/portal/portalContext.d.ts.map +0 -1
- package/lib/src/utils/portal/portalProvider.d.ts +0 -21
- package/lib/src/utils/portal/portalProvider.d.ts.map +0 -1
- package/lib/src/utils/portal/types.d.ts +0 -10
- package/lib/src/utils/portal/types.d.ts.map +0 -1
- package/lib/src/utils/portal/usePortal.d.ts +0 -6
- package/lib/src/utils/portal/usePortal.d.ts.map +0 -1
- package/lib/src/utils/resizeObserver.d.ts +0 -6
- package/lib/src/utils/resizeObserver.d.ts.map +0 -1
- package/lib/src/utils/srOnly/index.d.ts +0 -2
- package/lib/src/utils/srOnly/index.d.ts.map +0 -1
- package/lib/src/utils/srOnly/srOnly.d.ts +0 -13
- package/lib/src/utils/srOnly/srOnly.d.ts.map +0 -1
- package/lib/src/utils/virtualList/index.d.ts +0 -2
- package/lib/src/utils/virtualList/index.d.ts.map +0 -1
- package/lib/src/utils/virtualList/virtualList.d.ts +0 -29
- package/lib/src/utils/virtualList/virtualList.d.ts.map +0 -1
- package/src/__workshop__/color/overview.tsx +0 -103
- package/src/__workshop__/constants.ts +0 -287
- package/src/__workshop__/index.ts +0 -10
- package/src/components/autocomplete/__fixtures__/countries.ts +0 -245
- package/src/components/autocomplete/__mocks__/apiStore.ts +0 -49
- package/src/components/autocomplete/__workshop__/.eslintrc +0 -5
- package/src/components/autocomplete/__workshop__/async.tsx +0 -152
- package/src/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -95
- package/src/components/autocomplete/__workshop__/custom.tsx +0 -77
- package/src/components/autocomplete/__workshop__/example.tsx +0 -55
- package/src/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -34
- package/src/components/autocomplete/__workshop__/fullscreen.tsx +0 -292
- package/src/components/autocomplete/__workshop__/index.ts +0 -35
- package/src/components/autocomplete/__workshop__/types.ts +0 -4
- package/src/components/autocomplete/autocomplete.styles.tsx +0 -52
- package/src/components/autocomplete/autocomplete.tsx +0 -678
- package/src/components/autocomplete/autocompleteOption.tsx +0 -44
- package/src/components/autocomplete/autocompleteReducer.ts +0 -50
- package/src/components/autocomplete/constants.ts +0 -38
- package/src/components/autocomplete/index.ts +0 -2
- package/src/components/autocomplete/types.ts +0 -108
- package/src/components/breadcrumbs/__workshop__/.eslintrc +0 -5
- package/src/components/breadcrumbs/__workshop__/example.tsx +0 -56
- package/src/components/breadcrumbs/__workshop__/index.ts +0 -10
- package/src/components/breadcrumbs/breadcrumbs.styles.ts +0 -17
- package/src/components/breadcrumbs/breadcrumbs.tsx +0 -101
- package/src/components/breadcrumbs/index.ts +0 -1
- package/src/components/dialog/__workshop__/.eslintrc +0 -5
- package/src/components/dialog/__workshop__/autoFocus.tsx +0 -30
- package/src/components/dialog/__workshop__/index.ts +0 -12
- package/src/components/dialog/__workshop__/layering.tsx +0 -38
- package/src/components/dialog/__workshop__/nested.tsx +0 -51
- package/src/components/dialog/__workshop__/onScroll.tsx +0 -39
- package/src/components/dialog/__workshop__/position.tsx +0 -30
- package/src/components/dialog/__workshop__/props.tsx +0 -74
- package/src/components/dialog/__workshop__/provider.tsx +0 -12
- package/src/components/dialog/dialog.tsx +0 -339
- package/src/components/dialog/dialogContext.ts +0 -22
- package/src/components/dialog/dialogProvider.tsx +0 -32
- package/src/components/dialog/index.ts +0 -4
- package/src/components/dialog/styles.ts +0 -38
- package/src/components/dialog/useDialog.ts +0 -10
- package/src/components/hotkeys/__workshop__/.eslintrc +0 -5
- package/src/components/hotkeys/__workshop__/index.ts +0 -6
- package/src/components/hotkeys/__workshop__/plain.tsx +0 -10
- package/src/components/hotkeys/hotkeys.tsx +0 -53
- package/src/components/hotkeys/index.ts +0 -1
- package/src/components/index.ts +0 -9
- package/src/components/menu/__workshop__/.eslintrc +0 -5
- package/src/components/menu/__workshop__/asComponent.tsx +0 -44
- package/src/components/menu/__workshop__/closableMenuButton.tsx +0 -42
- package/src/components/menu/__workshop__/constrainedInBoundary.tsx +0 -142
- package/src/components/menu/__workshop__/customMenuItem.tsx +0 -40
- package/src/components/menu/__workshop__/disableFocusOnClose.tsx +0 -36
- package/src/components/menu/__workshop__/groups.tsx +0 -144
- package/src/components/menu/__workshop__/index.ts +0 -65
- package/src/components/menu/__workshop__/menuButton.tsx +0 -68
- package/src/components/menu/__workshop__/nestedMenu.tsx +0 -23
- package/src/components/menu/__workshop__/onCloseMenuButton.tsx +0 -37
- package/src/components/menu/__workshop__/selectedItem.tsx +0 -50
- package/src/components/menu/__workshop__/tones.tsx +0 -26
- package/src/components/menu/__workshop__/withoutArrow.tsx +0 -31
- package/src/components/menu/helpers.ts +0 -82
- package/src/components/menu/index.ts +0 -5
- package/src/components/menu/menu.test.tsx +0 -108
- package/src/components/menu/menu.tsx +0 -347
- package/src/components/menu/menuButton.tsx +0 -256
- package/src/components/menu/menuContext.ts +0 -21
- package/src/components/menu/menuDivider.ts +0 -12
- package/src/components/menu/menuGroup.tsx +0 -222
- package/src/components/menu/menuItem.tsx +0 -172
- package/src/components/menu/useMenu.ts +0 -20
- package/src/components/skeleton/__workshop__/.eslintrc +0 -5
- package/src/components/skeleton/__workshop__/delay.tsx +0 -70
- package/src/components/skeleton/__workshop__/index.ts +0 -7
- package/src/components/skeleton/__workshop__/skeleton.tsx +0 -64
- package/src/components/skeleton/index.ts +0 -2
- package/src/components/skeleton/skeleton.tsx +0 -48
- package/src/components/skeleton/styles.ts +0 -50
- package/src/components/skeleton/textSkeleton.tsx +0 -114
- package/src/components/tab/__workshop__/.eslintrc +0 -5
- package/src/components/tab/__workshop__/example.tsx +0 -74
- package/src/components/tab/__workshop__/index.ts +0 -6
- package/src/components/tab/index.ts +0 -3
- package/src/components/tab/tab.tsx +0 -94
- package/src/components/tab/tabList.tsx +0 -59
- package/src/components/tab/tabPanel.tsx +0 -37
- package/src/components/toast/__workshop__/.eslintrc +0 -5
- package/src/components/toast/__workshop__/hook.tsx +0 -72
- package/src/components/toast/__workshop__/index.ts +0 -7
- package/src/components/toast/__workshop__/toast.tsx +0 -26
- package/src/components/toast/index.ts +0 -4
- package/src/components/toast/toast.test.tsx +0 -100
- package/src/components/toast/toast.tsx +0 -87
- package/src/components/toast/toastContext.ts +0 -9
- package/src/components/toast/toastProvider.tsx +0 -155
- package/src/components/toast/types.ts +0 -20
- package/src/components/toast/useToast.ts +0 -24
- package/src/components/tree/__workshop__/.eslintrc +0 -5
- package/src/components/tree/__workshop__/basic.tsx +0 -68
- package/src/components/tree/__workshop__/index.ts +0 -6
- package/src/components/tree/helpers.ts +0 -105
- package/src/components/tree/index.ts +0 -4
- package/src/components/tree/style.ts +0 -107
- package/src/components/tree/tree.tsx +0 -189
- package/src/components/tree/treeContext.ts +0 -12
- package/src/components/tree/treeGroup.tsx +0 -29
- package/src/components/tree/treeItem.tsx +0 -194
- package/src/components/tree/types.ts +0 -21
- package/src/components/tree/useTree.ts +0 -16
- package/src/constants.ts +0 -2
- package/src/helpers/animation.ts +0 -27
- package/src/helpers/element.ts +0 -48
- package/src/helpers/focus.ts +0 -100
- package/src/helpers/index.ts +0 -4
- package/src/helpers/scroll.ts +0 -15
- package/src/hooks/_internal/index.ts +0 -1
- package/src/hooks/_internal/useUnique.ts +0 -18
- package/src/hooks/index.ts +0 -8
- package/src/hooks/useClickOutside.ts +0 -99
- package/src/hooks/useCustomValidity.ts +0 -15
- package/src/hooks/useElementRect/__workshop__/.eslintrc +0 -5
- package/src/hooks/useElementRect/__workshop__/example.tsx +0 -30
- package/src/hooks/useElementRect/__workshop__/index.ts +0 -6
- package/src/hooks/useElementRect/index.ts +0 -1
- package/src/hooks/useElementRect/useElementRect.ts +0 -23
- package/src/hooks/useForwardedRef.ts +0 -21
- package/src/hooks/useGlobalKeyDown.ts +0 -12
- package/src/hooks/useIsomorphicEffect.ts +0 -6
- package/src/hooks/useMediaIndex/__workshop__/.eslintrc +0 -5
- package/src/hooks/useMediaIndex/__workshop__/index.ts +0 -6
- package/src/hooks/useMediaIndex/__workshop__/test.tsx +0 -15
- package/src/hooks/useMediaIndex/index.ts +0 -1
- package/src/hooks/useMediaIndex/lib/media.ts +0 -88
- package/src/hooks/useMediaIndex/useMediaIndex.ts +0 -18
- package/src/hooks/usePrefersDark.ts +0 -22
- package/src/hooks/useResponsiveProp.ts +0 -10
- package/src/icons/__workshop__/.eslintrc +0 -5
- package/src/icons/__workshop__/index.tsx +0 -6
- package/src/icons/__workshop__/overview.tsx +0 -76
- package/src/index.ts +0 -8
- package/src/lib/globalScope.ts +0 -19
- package/src/lib/isRecord.ts +0 -3
- package/src/primitives/_selectable/index.ts +0 -1
- package/src/primitives/_selectable/selectable.tsx +0 -12
- package/src/primitives/_selectable/style.ts +0 -111
- package/src/primitives/avatar/__workshop__/.eslintrc +0 -5
- package/src/primitives/avatar/__workshop__/asButton.tsx +0 -14
- package/src/primitives/avatar/__workshop__/index.ts +0 -15
- package/src/primitives/avatar/__workshop__/stack.tsx +0 -25
- package/src/primitives/avatar/avatar.tsx +0 -165
- package/src/primitives/avatar/avatarCounter.tsx +0 -77
- package/src/primitives/avatar/avatarStack.tsx +0 -93
- package/src/primitives/avatar/index.ts +0 -4
- package/src/primitives/avatar/styles.ts +0 -159
- package/src/primitives/avatar/types.ts +0 -15
- package/src/primitives/badge/__workshop__/.eslintrc +0 -5
- package/src/primitives/badge/__workshop__/index.ts +0 -15
- package/src/primitives/badge/__workshop__/props.tsx +0 -30
- package/src/primitives/badge/__workshop__/tones.tsx +0 -28
- package/src/primitives/badge/badge.test.tsx +0 -14
- package/src/primitives/badge/badge.tsx +0 -56
- package/src/primitives/badge/index.ts +0 -1
- package/src/primitives/badge/styles.ts +0 -20
- package/src/primitives/badge/types.ts +0 -9
- package/src/primitives/box/__workshop__/.eslintrc +0 -5
- package/src/primitives/box/__workshop__/index.ts +0 -7
- package/src/primitives/box/__workshop__/props.tsx +0 -20
- package/src/primitives/box/__workshop__/responsive.tsx +0 -21
- package/src/primitives/box/box.tsx +0 -124
- package/src/primitives/box/index.ts +0 -1
- package/src/primitives/button/__workshop__/.eslintrc +0 -5
- package/src/primitives/button/__workshop__/custom.tsx +0 -48
- package/src/primitives/button/__workshop__/customIcons.tsx +0 -31
- package/src/primitives/button/__workshop__/index.ts +0 -50
- package/src/primitives/button/__workshop__/mixedChildren.tsx +0 -13
- package/src/primitives/button/__workshop__/props.tsx +0 -51
- package/src/primitives/button/__workshop__/sanityUploadButton.tsx +0 -35
- package/src/primitives/button/__workshop__/stacked.tsx +0 -58
- package/src/primitives/button/__workshop__/styled1.tsx +0 -18
- package/src/primitives/button/__workshop__/styled2.tsx +0 -20
- package/src/primitives/button/__workshop__/uploadButton.tsx +0 -28
- package/src/primitives/button/button.test.tsx +0 -40
- package/src/primitives/button/button.tsx +0 -168
- package/src/primitives/button/index.ts +0 -1
- package/src/primitives/button/styles.ts +0 -81
- package/src/primitives/card/__workshop__/.eslintrc +0 -5
- package/src/primitives/card/__workshop__/allTones.tsx +0 -28
- package/src/primitives/card/__workshop__/asButton.tsx +0 -89
- package/src/primitives/card/__workshop__/asComponent.tsx +0 -27
- package/src/primitives/card/__workshop__/checkered.tsx +0 -17
- package/src/primitives/card/__workshop__/index.ts +0 -14
- package/src/primitives/card/__workshop__/interactive.tsx +0 -24
- package/src/primitives/card/__workshop__/listNavigation.tsx +0 -78
- package/src/primitives/card/__workshop__/props.tsx +0 -48
- package/src/primitives/card/__workshop__/selected.tsx +0 -98
- package/src/primitives/card/__workshop__/styled.tsx +0 -15
- package/src/primitives/card/card.tsx +0 -104
- package/src/primitives/card/index.ts +0 -2
- package/src/primitives/card/styles.ts +0 -148
- package/src/primitives/card/types.ts +0 -10
- package/src/primitives/checkbox/__workshop__/.eslintrc +0 -5
- package/src/primitives/checkbox/__workshop__/example.tsx +0 -23
- package/src/primitives/checkbox/__workshop__/index.ts +0 -9
- package/src/primitives/checkbox/__workshop__/props.tsx +0 -32
- package/src/primitives/checkbox/__workshop__/readOnly.tsx +0 -15
- package/src/primitives/checkbox/__workshop__/tones.tsx +0 -23
- package/src/primitives/checkbox/checkbox.tsx +0 -63
- package/src/primitives/checkbox/index.ts +0 -1
- package/src/primitives/checkbox/styles.ts +0 -97
- package/src/primitives/code/__workshop__/.eslintrc +0 -5
- package/src/primitives/code/__workshop__/index.ts +0 -15
- package/src/primitives/code/__workshop__/opticalAlignment.tsx +0 -49
- package/src/primitives/code/__workshop__/props.tsx +0 -21
- package/src/primitives/code/code.tsx +0 -36
- package/src/primitives/code/index.ts +0 -1
- package/src/primitives/code/styles.ts +0 -70
- package/src/primitives/container/__workshop__/.eslintrc +0 -5
- package/src/primitives/container/__workshop__/example.tsx +0 -20
- package/src/primitives/container/__workshop__/index.ts +0 -6
- package/src/primitives/container/container.tsx +0 -28
- package/src/primitives/container/index.ts +0 -2
- package/src/primitives/container/styles.ts +0 -23
- package/src/primitives/container/types.ts +0 -6
- package/src/primitives/flex/__workshop__/.eslintrc +0 -5
- package/src/primitives/flex/__workshop__/example.tsx +0 -34
- package/src/primitives/flex/__workshop__/gap.tsx +0 -26
- package/src/primitives/flex/__workshop__/index.ts +0 -7
- package/src/primitives/flex/flex.tsx +0 -49
- package/src/primitives/flex/index.ts +0 -1
- package/src/primitives/grid/__workshop__/.eslintrc +0 -5
- package/src/primitives/grid/__workshop__/index.ts +0 -6
- package/src/primitives/grid/__workshop__/responsive.tsx +0 -54
- package/src/primitives/grid/grid.tsx +0 -43
- package/src/primitives/grid/index.ts +0 -1
- package/src/primitives/heading/__workshop__/.eslintrc +0 -5
- package/src/primitives/heading/__workshop__/index.ts +0 -15
- package/src/primitives/heading/__workshop__/opticalAlignment.tsx +0 -55
- package/src/primitives/heading/__workshop__/plain.tsx +0 -32
- package/src/primitives/heading/heading.tsx +0 -81
- package/src/primitives/heading/index.ts +0 -1
- package/src/primitives/heading/styles.ts +0 -51
- package/src/primitives/heading/types.ts +0 -7
- package/src/primitives/helpers.ts +0 -11
- package/src/primitives/index.ts +0 -27
- package/src/primitives/inline/__workshop__/.eslintrc +0 -5
- package/src/primitives/inline/__workshop__/index.ts +0 -6
- package/src/primitives/inline/__workshop__/plain.tsx +0 -27
- package/src/primitives/inline/index.ts +0 -1
- package/src/primitives/inline/inline.tsx +0 -34
- package/src/primitives/inline/styles.ts +0 -31
- package/src/primitives/inline/types.ts +0 -6
- package/src/primitives/kbd/__workshop__/.eslintrc +0 -5
- package/src/primitives/kbd/__workshop__/index.ts +0 -6
- package/src/primitives/kbd/__workshop__/plain.tsx +0 -10
- package/src/primitives/kbd/index.tsx +0 -1
- package/src/primitives/kbd/kbd.tsx +0 -49
- package/src/primitives/label/__workshop__/.eslintrc +0 -5
- package/src/primitives/label/__workshop__/index.ts +0 -15
- package/src/primitives/label/__workshop__/opticalAlignment.tsx +0 -49
- package/src/primitives/label/__workshop__/plain.tsx +0 -24
- package/src/primitives/label/index.ts +0 -1
- package/src/primitives/label/label.tsx +0 -80
- package/src/primitives/label/styles.ts +0 -37
- package/src/primitives/popover/__workshop__/.eslintrc +0 -5
- package/src/primitives/popover/__workshop__/index.ts +0 -30
- package/src/primitives/popover/__workshop__/margins.tsx +0 -32
- package/src/primitives/popover/__workshop__/matchReferenceWidth.tsx +0 -32
- package/src/primitives/popover/__workshop__/plain.tsx +0 -69
- package/src/primitives/popover/__workshop__/recursive.tsx +0 -75
- package/src/primitives/popover/__workshop__/rightAligned.tsx +0 -57
- package/src/primitives/popover/arrow.tsx +0 -75
- package/src/primitives/popover/index.ts +0 -1
- package/src/primitives/popover/modifiers/getPopoverModifiers.ts +0 -137
- package/src/primitives/popover/modifiers/index.ts +0 -1
- package/src/primitives/popover/modifiers/types.ts +0 -18
- package/src/primitives/popover/modifiers/usePopoverModifiers.ts +0 -58
- package/src/primitives/popover/popover.tsx +0 -246
- package/src/primitives/radio/__workshop__/.eslintrc +0 -5
- package/src/primitives/radio/__workshop__/example.tsx +0 -63
- package/src/primitives/radio/__workshop__/index.ts +0 -7
- package/src/primitives/radio/__workshop__/plain.tsx +0 -29
- package/src/primitives/radio/index.ts +0 -1
- package/src/primitives/radio/radio.tsx +0 -41
- package/src/primitives/radio/styles.ts +0 -105
- package/src/primitives/select/__workshop__/.eslintrc +0 -5
- package/src/primitives/select/__workshop__/index.ts +0 -7
- package/src/primitives/select/__workshop__/plain.tsx +0 -28
- package/src/primitives/select/__workshop__/readOnly.tsx +0 -24
- package/src/primitives/select/index.ts +0 -1
- package/src/primitives/select/select.tsx +0 -77
- package/src/primitives/select/styles.ts +0 -161
- package/src/primitives/spinner/__workshop__/.eslintrc +0 -5
- package/src/primitives/spinner/__workshop__/Props.tsx +0 -15
- package/src/primitives/spinner/__workshop__/index.ts +0 -10
- package/src/primitives/spinner/index.ts +0 -1
- package/src/primitives/spinner/spinner.tsx +0 -42
- package/src/primitives/stack/__workshop__/.eslintrc +0 -5
- package/src/primitives/stack/__workshop__/index.ts +0 -10
- package/src/primitives/stack/__workshop__/plain.tsx +0 -32
- package/src/primitives/stack/index.ts +0 -1
- package/src/primitives/stack/stack.tsx +0 -35
- package/src/primitives/stack/styles.ts +0 -32
- package/src/primitives/switch/__workshop__/.eslintrc +0 -5
- package/src/primitives/switch/__workshop__/example.tsx +0 -23
- package/src/primitives/switch/__workshop__/index.ts +0 -7
- package/src/primitives/switch/__workshop__/props.tsx +0 -41
- package/src/primitives/switch/index.ts +0 -1
- package/src/primitives/switch/styles.ts +0 -163
- package/src/primitives/switch/switch.tsx +0 -58
- package/src/primitives/text/__workshop__/.eslintrc +0 -5
- package/src/primitives/text/__workshop__/colored.tsx +0 -28
- package/src/primitives/text/__workshop__/example.tsx +0 -39
- package/src/primitives/text/__workshop__/index.ts +0 -20
- package/src/primitives/text/__workshop__/opticalAlignment.tsx +0 -49
- package/src/primitives/text/index.ts +0 -1
- package/src/primitives/text/styles.ts +0 -59
- package/src/primitives/text/text.tsx +0 -81
- package/src/primitives/textArea/__workshop__/.eslintrc +0 -5
- package/src/primitives/textArea/__workshop__/index.ts +0 -10
- package/src/primitives/textArea/__workshop__/plain.tsx +0 -45
- package/src/primitives/textArea/index.ts +0 -1
- package/src/primitives/textArea/textArea.tsx +0 -86
- package/src/primitives/textInput/__workshop__/.eslintrc +0 -5
- package/src/primitives/textInput/__workshop__/clearButton.tsx +0 -24
- package/src/primitives/textInput/__workshop__/customValidity.tsx +0 -18
- package/src/primitives/textInput/__workshop__/index.ts +0 -45
- package/src/primitives/textInput/__workshop__/multipleTones.tsx +0 -21
- package/src/primitives/textInput/__workshop__/plain.tsx +0 -59
- package/src/primitives/textInput/__workshop__/readOnly.tsx +0 -6
- package/src/primitives/textInput/__workshop__/states.tsx +0 -46
- package/src/primitives/textInput/__workshop__/tones.tsx +0 -101
- package/src/primitives/textInput/__workshop__/typed.tsx +0 -16
- package/src/primitives/textInput/index.ts +0 -1
- package/src/primitives/textInput/textInput.tsx +0 -308
- package/src/primitives/tooltip/__workshop__/.eslintrc +0 -5
- package/src/primitives/tooltip/__workshop__/index.ts +0 -10
- package/src/primitives/tooltip/__workshop__/props.tsx +0 -22
- package/src/primitives/tooltip/index.ts +0 -1
- package/src/primitives/tooltip/tooltip.tsx +0 -186
- package/src/primitives/tooltip/tooltipArrow.tsx +0 -74
- package/src/primitives/types.ts +0 -130
- package/src/styles/border/borderStyle.ts +0 -57
- package/src/styles/border/index.ts +0 -2
- package/src/styles/border/types.ts +0 -10
- package/src/styles/box/boxStyle.ts +0 -72
- package/src/styles/box/index.ts +0 -2
- package/src/styles/box/types.ts +0 -11
- package/src/styles/colorVars/colorVarsStyle.ts +0 -41
- package/src/styles/colorVars/index.ts +0 -1
- package/src/styles/flex/flexItemStyle.ts +0 -24
- package/src/styles/flex/flexStyle.ts +0 -74
- package/src/styles/flex/index.ts +0 -3
- package/src/styles/flex/types.ts +0 -24
- package/src/styles/focusRing/index.ts +0 -23
- package/src/styles/font/codeFontStyle.ts +0 -12
- package/src/styles/font/headingFontStyle.ts +0 -12
- package/src/styles/font/index.ts +0 -6
- package/src/styles/font/labelFontStyle.ts +0 -12
- package/src/styles/font/responsiveFont.ts +0 -108
- package/src/styles/font/textAlignStyle.ts +0 -18
- package/src/styles/font/textFontStyle.ts +0 -12
- package/src/styles/font/types.ts +0 -33
- package/src/styles/grid/gridItemStyle.ts +0 -87
- package/src/styles/grid/gridStyle.ts +0 -115
- package/src/styles/grid/index.ts +0 -3
- package/src/styles/grid/types.ts +0 -37
- package/src/styles/helpers.ts +0 -70
- package/src/styles/index.ts +0 -5
- package/src/styles/input/index.ts +0 -2
- package/src/styles/input/responsiveInputPaddingStyle.ts +0 -80
- package/src/styles/input/textInputStyle.ts +0 -208
- package/src/styles/internal.ts +0 -12
- package/src/styles/margin/index.ts +0 -2
- package/src/styles/margin/marginStyle.ts +0 -20
- package/src/styles/margin/marginsStyle.test.ts +0 -31
- package/src/styles/margin/types.ts +0 -9
- package/src/styles/padding/index.ts +0 -2
- package/src/styles/padding/paddingStyle.test.ts +0 -31
- package/src/styles/padding/paddingStyle.ts +0 -20
- package/src/styles/padding/types.ts +0 -12
- package/src/styles/radius/index.ts +0 -2
- package/src/styles/radius/radiusStyle.ts +0 -13
- package/src/styles/radius/types.ts +0 -6
- package/src/styles/shadow/index.ts +0 -2
- package/src/styles/shadow/shadowStyle.ts +0 -31
- package/src/styles/shadow/types.ts +0 -6
- package/src/styles/types.ts +0 -8
- package/src/theme/__workshop__/.eslintrc +0 -5
- package/src/theme/__workshop__/canvas.tsx +0 -395
- package/src/theme/__workshop__/color.tsx +0 -65
- package/src/theme/__workshop__/index.ts +0 -25
- package/src/theme/__workshop__/layer.tsx +0 -78
- package/src/theme/__workshop__/nestedProvider.tsx +0 -16
- package/src/theme/defaults.ts +0 -7
- package/src/theme/index.ts +0 -8
- package/src/theme/lib/color-fns/blend/index.ts +0 -2
- package/src/theme/lib/color-fns/blend/multiply.ts +0 -22
- package/src/theme/lib/color-fns/blend/screen.ts +0 -22
- package/src/theme/lib/color-fns/color-fns.test.ts +0 -63
- package/src/theme/lib/color-fns/convert.ts +0 -127
- package/src/theme/lib/color-fns/helpers/index.ts +0 -1
- package/src/theme/lib/color-fns/helpers/rgba.ts +0 -10
- package/src/theme/lib/color-fns/index.ts +0 -5
- package/src/theme/lib/color-fns/parse.ts +0 -56
- package/src/theme/lib/color-fns/types.ts +0 -17
- package/src/theme/lib/theme/avatar.ts +0 -9
- package/src/theme/lib/theme/color/_generic/index.ts +0 -1
- package/src/theme/lib/theme/color/_generic/types.ts +0 -29
- package/src/theme/lib/theme/color/base/index.ts +0 -1
- package/src/theme/lib/theme/color/base/types.ts +0 -19
- package/src/theme/lib/theme/color/button/createButtonModes.ts +0 -20
- package/src/theme/lib/theme/color/button/createButtonTones.ts +0 -52
- package/src/theme/lib/theme/color/button/index.ts +0 -1
- package/src/theme/lib/theme/color/button/types.ts +0 -44
- package/src/theme/lib/theme/color/card/createCardStates.ts +0 -58
- package/src/theme/lib/theme/color/card/index.ts +0 -1
- package/src/theme/lib/theme/color/card/types.ts +0 -18
- package/src/theme/lib/theme/color/color.test.ts +0 -60
- package/src/theme/lib/theme/color/defaults.ts +0 -382
- package/src/theme/lib/theme/color/factory.ts +0 -138
- package/src/theme/lib/theme/color/index.ts +0 -14
- package/src/theme/lib/theme/color/input/createInputModes.ts +0 -84
- package/src/theme/lib/theme/color/input/index.ts +0 -1
- package/src/theme/lib/theme/color/input/types.ts +0 -27
- package/src/theme/lib/theme/color/muted/createMuted.ts +0 -56
- package/src/theme/lib/theme/color/muted/index.ts +0 -1
- package/src/theme/lib/theme/color/muted/types.ts +0 -24
- package/src/theme/lib/theme/color/selectable/createSelectableTones.ts +0 -73
- package/src/theme/lib/theme/color/selectable/index.ts +0 -1
- package/src/theme/lib/theme/color/selectable/types.ts +0 -29
- package/src/theme/lib/theme/color/solid/createSolidTones.ts +0 -56
- package/src/theme/lib/theme/color/solid/index.ts +0 -1
- package/src/theme/lib/theme/color/solid/types.ts +0 -24
- package/src/theme/lib/theme/color/spot/createSpot.ts +0 -21
- package/src/theme/lib/theme/color/spot/index.ts +0 -1
- package/src/theme/lib/theme/color/spot/types.ts +0 -28
- package/src/theme/lib/theme/color/syntax/index.ts +0 -1
- package/src/theme/lib/theme/color/syntax/types.ts +0 -41
- package/src/theme/lib/theme/color/types.ts +0 -72
- package/src/theme/lib/theme/fonts.ts +0 -54
- package/src/theme/lib/theme/index.ts +0 -7
- package/src/theme/lib/theme/input.ts +0 -22
- package/src/theme/lib/theme/layer.ts +0 -9
- package/src/theme/lib/theme/shadow.ts +0 -20
- package/src/theme/lib/theme/theme.ts +0 -37
- package/src/theme/studioTheme/color.ts +0 -637
- package/src/theme/studioTheme/fonts.ts +0 -223
- package/src/theme/studioTheme/helpers.ts +0 -17
- package/src/theme/studioTheme/index.ts +0 -1
- package/src/theme/studioTheme/theme.ts +0 -68
- package/src/theme/theme.test.tsx +0 -104
- package/src/theme/themeColorProvider.tsx +0 -27
- package/src/theme/themeContext.ts +0 -12
- package/src/theme/themeProvider.tsx +0 -61
- package/src/theme/types.ts +0 -39
- package/src/theme/useRootTheme.ts +0 -24
- package/src/theme/useTheme.ts +0 -10
- package/src/types/avatar.ts +0 -14
- package/src/types/badge.ts +0 -9
- package/src/types/box.ts +0 -19
- package/src/types/button.ts +0 -14
- package/src/types/card.ts +0 -6
- package/src/types/common.ts +0 -12
- package/src/types/dialog.ts +0 -4
- package/src/types/flex.ts +0 -25
- package/src/types/grid.ts +0 -14
- package/src/types/gridItem.ts +0 -29
- package/src/types/index.ts +0 -13
- package/src/types/popover.ts +0 -4
- package/src/types/selectable.ts +0 -4
- package/src/utils/boundaryElement/__workshop__/.eslintrc +0 -5
- package/src/utils/boundaryElement/__workshop__/index.ts +0 -10
- package/src/utils/boundaryElement/__workshop__/plain.tsx +0 -23
- package/src/utils/boundaryElement/boundaryElement.test.tsx +0 -99
- package/src/utils/boundaryElement/boundaryElementContext.ts +0 -10
- package/src/utils/boundaryElement/boundaryElementProvider.tsx +0 -21
- package/src/utils/boundaryElement/index.ts +0 -3
- package/src/utils/boundaryElement/types.ts +0 -7
- package/src/utils/boundaryElement/useBoundaryElement.ts +0 -25
- package/src/utils/elementQuery/__workshop__/.eslintrc +0 -5
- package/src/utils/elementQuery/__workshop__/customMedia.tsx +0 -31
- package/src/utils/elementQuery/__workshop__/index.ts +0 -10
- package/src/utils/elementQuery/elementQuery.tsx +0 -66
- package/src/utils/elementQuery/helpers.ts +0 -27
- package/src/utils/elementQuery/index.ts +0 -1
- package/src/utils/errorBoundary.tsx +0 -45
- package/src/utils/index.ts +0 -8
- package/src/utils/layer/__workshop__/.eslintrc +0 -5
- package/src/utils/layer/__workshop__/_debug.tsx +0 -12
- package/src/utils/layer/__workshop__/index.ts +0 -20
- package/src/utils/layer/__workshop__/multipleRoots.tsx +0 -48
- package/src/utils/layer/__workshop__/plain.tsx +0 -87
- package/src/utils/layer/__workshop__/responsiveZOffset.tsx +0 -13
- package/src/utils/layer/index.ts +0 -4
- package/src/utils/layer/layer.test.tsx +0 -106
- package/src/utils/layer/layer.tsx +0 -53
- package/src/utils/layer/layerContext.ts +0 -9
- package/src/utils/layer/layerProvider.tsx +0 -46
- package/src/utils/layer/types.ts +0 -10
- package/src/utils/layer/useLayer.ts +0 -24
- package/src/utils/portal/__workshop__/.eslintrc +0 -5
- package/src/utils/portal/__workshop__/index.ts +0 -10
- package/src/utils/portal/__workshop__/named.tsx +0 -61
- package/src/utils/portal/index.ts +0 -4
- package/src/utils/portal/portal.test.tsx +0 -102
- package/src/utils/portal/portal.ts +0 -30
- package/src/utils/portal/portalContext.ts +0 -33
- package/src/utils/portal/portalProvider.tsx +0 -41
- package/src/utils/portal/types.ts +0 -9
- package/src/utils/portal/usePortal.ts +0 -24
- package/src/utils/resizeObserver.ts +0 -12
- package/src/utils/srOnly/__workshop__/.eslintrc +0 -5
- package/src/utils/srOnly/index.ts +0 -1
- package/src/utils/srOnly/srOnly.tsx +0 -34
- package/src/utils/virtualList/__workshop__/.eslintrc +0 -5
- package/src/utils/virtualList/__workshop__/changingProps.tsx +0 -36
- package/src/utils/virtualList/__workshop__/elementScroll.tsx +0 -24
- package/src/utils/virtualList/__workshop__/index.ts +0 -25
- package/src/utils/virtualList/__workshop__/infiniteList.tsx +0 -48
- package/src/utils/virtualList/__workshop__/windowScrolll.tsx +0 -22
- package/src/utils/virtualList/index.ts +0 -1
- package/src/utils/virtualList/virtualList.tsx +0 -164
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {useMemo} from 'react'
|
|
2
|
-
import {Modifier} from 'react-popper'
|
|
3
|
-
|
|
4
|
-
import {getPopoverModifiers} from './getPopoverModifiers'
|
|
5
|
-
import {PopoverModifiersProps} from './types'
|
|
6
|
-
|
|
7
|
-
export function usePopoverModifiers(props: PopoverModifiersProps): Modifier<any, any>[] {
|
|
8
|
-
const {
|
|
9
|
-
allowedAutoPlacements,
|
|
10
|
-
arrow,
|
|
11
|
-
arrowElement,
|
|
12
|
-
boundaryElement,
|
|
13
|
-
constrainSize,
|
|
14
|
-
distance,
|
|
15
|
-
fallbackPlacements,
|
|
16
|
-
margins,
|
|
17
|
-
matchReferenceWidth,
|
|
18
|
-
open,
|
|
19
|
-
preventOverflow,
|
|
20
|
-
skidding,
|
|
21
|
-
tether,
|
|
22
|
-
tetherOffset,
|
|
23
|
-
} = props
|
|
24
|
-
|
|
25
|
-
return useMemo(() => {
|
|
26
|
-
return getPopoverModifiers({
|
|
27
|
-
allowedAutoPlacements,
|
|
28
|
-
arrow,
|
|
29
|
-
arrowElement,
|
|
30
|
-
boundaryElement,
|
|
31
|
-
constrainSize,
|
|
32
|
-
distance,
|
|
33
|
-
fallbackPlacements,
|
|
34
|
-
margins,
|
|
35
|
-
matchReferenceWidth,
|
|
36
|
-
open,
|
|
37
|
-
preventOverflow,
|
|
38
|
-
skidding,
|
|
39
|
-
tether,
|
|
40
|
-
tetherOffset,
|
|
41
|
-
})
|
|
42
|
-
}, [
|
|
43
|
-
allowedAutoPlacements,
|
|
44
|
-
arrow,
|
|
45
|
-
arrowElement,
|
|
46
|
-
boundaryElement,
|
|
47
|
-
constrainSize,
|
|
48
|
-
distance,
|
|
49
|
-
fallbackPlacements,
|
|
50
|
-
margins,
|
|
51
|
-
matchReferenceWidth,
|
|
52
|
-
open,
|
|
53
|
-
preventOverflow,
|
|
54
|
-
skidding,
|
|
55
|
-
tether,
|
|
56
|
-
tetherOffset,
|
|
57
|
-
])
|
|
58
|
-
}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import React, {cloneElement, forwardRef, useCallback, useEffect, useMemo, useState} from 'react'
|
|
2
|
-
import {usePopper} from 'react-popper'
|
|
3
|
-
import styled, {css} from 'styled-components'
|
|
4
|
-
import {EMPTY_RECORD} from '../../constants'
|
|
5
|
-
import {useForwardedRef} from '../../hooks'
|
|
6
|
-
import {ThemeColorSchemeKey, useTheme} from '../../theme'
|
|
7
|
-
import {CardTone, Placement, PopoverMargins} from '../../types'
|
|
8
|
-
import {Layer, LayerProps, Portal, useBoundaryElement, usePortal} from '../../utils'
|
|
9
|
-
import {Card} from '../card'
|
|
10
|
-
import {ResponsiveWidthStyleProps} from '../container'
|
|
11
|
-
import {responsiveContainerWidthStyle} from '../container/styles'
|
|
12
|
-
import {ResponsiveRadiusProps, ResponsiveShadowProps, ResponsiveWidthProps} from '../types'
|
|
13
|
-
import {PopoverArrow} from './arrow'
|
|
14
|
-
import {usePopoverModifiers} from './modifiers'
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export interface PopoverProps
|
|
20
|
-
extends Omit<LayerProps, 'as'>,
|
|
21
|
-
ResponsiveRadiusProps,
|
|
22
|
-
ResponsiveShadowProps,
|
|
23
|
-
ResponsiveWidthProps {
|
|
24
|
-
/**
|
|
25
|
-
* @beta
|
|
26
|
-
*/
|
|
27
|
-
__unstable_margins?: PopoverMargins
|
|
28
|
-
allowedAutoPlacements?: Placement[]
|
|
29
|
-
arrow?: boolean
|
|
30
|
-
boundaryElement?: HTMLElement | null
|
|
31
|
-
children?: React.ReactElement
|
|
32
|
-
constrainSize?: boolean
|
|
33
|
-
content?: React.ReactNode
|
|
34
|
-
disabled?: boolean
|
|
35
|
-
fallbackPlacements?: Placement[]
|
|
36
|
-
open?: boolean
|
|
37
|
-
padding?: number | number[]
|
|
38
|
-
placement?: Placement
|
|
39
|
-
portal?: boolean | string
|
|
40
|
-
preventOverflow?: boolean
|
|
41
|
-
referenceElement?: HTMLElement | null
|
|
42
|
-
matchReferenceWidth?: boolean
|
|
43
|
-
scheme?: ThemeColorSchemeKey
|
|
44
|
-
tether?: boolean
|
|
45
|
-
tetherOffset?: number | ((...args: any[]) => number)
|
|
46
|
-
tone?: CardTone
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const Root = styled(Layer)<{$preventOverflow?: boolean}>(
|
|
50
|
-
({$preventOverflow}) => css`
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
max-width: calc(100% - 16px);
|
|
55
|
-
|
|
56
|
-
& > * {
|
|
57
|
-
min-height: 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Hide the popover when the reference element is out of bounds */
|
|
61
|
-
${$preventOverflow &&
|
|
62
|
-
css`
|
|
63
|
-
&[data-popper-reference-hidden='true'] {
|
|
64
|
-
display: none;
|
|
65
|
-
}
|
|
66
|
-
`}
|
|
67
|
-
`
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
const PopoverCard = styled(Card)<
|
|
71
|
-
ResponsiveWidthStyleProps & {
|
|
72
|
-
$constrainSize?: boolean
|
|
73
|
-
$preventOverflow?: boolean
|
|
74
|
-
}
|
|
75
|
-
>(
|
|
76
|
-
({$constrainSize}) => css`
|
|
77
|
-
flex: 1;
|
|
78
|
-
max-height: ${$constrainSize && '100%'};
|
|
79
|
-
pointer-events: all;
|
|
80
|
-
|
|
81
|
-
&& {
|
|
82
|
-
display: flex;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
|
|
87
|
-
& > * {
|
|
88
|
-
min-height: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
${responsiveContainerWidthStyle}
|
|
92
|
-
`
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @public
|
|
97
|
-
*/
|
|
98
|
-
export const Popover = forwardRef(function Popover(
|
|
99
|
-
props: PopoverProps &
|
|
100
|
-
Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'children' | 'content' | 'width'>,
|
|
101
|
-
ref: React.ForwardedRef<HTMLDivElement>
|
|
102
|
-
) {
|
|
103
|
-
const boundaryElementContext = useBoundaryElement()
|
|
104
|
-
const theme = useTheme()
|
|
105
|
-
const {
|
|
106
|
-
__unstable_margins: margins,
|
|
107
|
-
allowedAutoPlacements,
|
|
108
|
-
arrow = true,
|
|
109
|
-
boundaryElement: boundaryElementProp = boundaryElementContext.element,
|
|
110
|
-
children: child,
|
|
111
|
-
content,
|
|
112
|
-
constrainSize,
|
|
113
|
-
disabled,
|
|
114
|
-
fallbackPlacements,
|
|
115
|
-
open = false,
|
|
116
|
-
padding,
|
|
117
|
-
placement = 'bottom',
|
|
118
|
-
portal: portalProp = false,
|
|
119
|
-
preventOverflow,
|
|
120
|
-
radius = 3,
|
|
121
|
-
referenceElement: referenceElementProp,
|
|
122
|
-
matchReferenceWidth,
|
|
123
|
-
shadow = 3,
|
|
124
|
-
scheme,
|
|
125
|
-
style = EMPTY_RECORD,
|
|
126
|
-
tether,
|
|
127
|
-
tetherOffset,
|
|
128
|
-
tone = 'inherit',
|
|
129
|
-
width = 0,
|
|
130
|
-
zOffset = theme.sanity.layer?.popover.zOffset,
|
|
131
|
-
...restProps
|
|
132
|
-
} = props
|
|
133
|
-
const forwardedRef = useForwardedRef(ref)
|
|
134
|
-
const portal = usePortal()
|
|
135
|
-
const [referenceElement, setReferenceElement] = useState<HTMLElement | null>(null)
|
|
136
|
-
const [popperElement, setPopperElement] = useState<HTMLElement | null>(null)
|
|
137
|
-
const [arrowElement, setArrowElement] = useState<HTMLElement | null>(null)
|
|
138
|
-
const popperReferenceElement = referenceElementProp || referenceElement
|
|
139
|
-
|
|
140
|
-
const modifiers = usePopoverModifiers({
|
|
141
|
-
allowedAutoPlacements,
|
|
142
|
-
arrow,
|
|
143
|
-
arrowElement,
|
|
144
|
-
boundaryElement: boundaryElementProp || portal.boundaryElement,
|
|
145
|
-
constrainSize,
|
|
146
|
-
distance: arrow ? 4 : 0,
|
|
147
|
-
fallbackPlacements,
|
|
148
|
-
margins,
|
|
149
|
-
matchReferenceWidth,
|
|
150
|
-
open,
|
|
151
|
-
preventOverflow,
|
|
152
|
-
skidding: 0,
|
|
153
|
-
tether,
|
|
154
|
-
tetherOffset,
|
|
155
|
-
})
|
|
156
|
-
|
|
157
|
-
const popper = usePopper(popperReferenceElement, popperElement, {
|
|
158
|
-
placement,
|
|
159
|
-
modifiers,
|
|
160
|
-
})
|
|
161
|
-
|
|
162
|
-
const {attributes, forceUpdate, styles} = popper
|
|
163
|
-
|
|
164
|
-
const setRef = useCallback(
|
|
165
|
-
(el: HTMLElement | null) => {
|
|
166
|
-
const childRef = (child as any).ref
|
|
167
|
-
|
|
168
|
-
setReferenceElement(el)
|
|
169
|
-
|
|
170
|
-
if (typeof childRef === 'function') {
|
|
171
|
-
childRef(el)
|
|
172
|
-
} else if (childRef) {
|
|
173
|
-
childRef.current = el
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
[child]
|
|
177
|
-
)
|
|
178
|
-
|
|
179
|
-
const setRootRef = useCallback(
|
|
180
|
-
(el: HTMLDivElement | null) => {
|
|
181
|
-
setPopperElement(el)
|
|
182
|
-
forwardedRef.current = el
|
|
183
|
-
},
|
|
184
|
-
[forwardedRef]
|
|
185
|
-
)
|
|
186
|
-
|
|
187
|
-
const popoverStyle = useMemo(() => ({...style, ...styles.popper}), [style, styles])
|
|
188
|
-
|
|
189
|
-
useEffect(() => {
|
|
190
|
-
if (forceUpdate) {
|
|
191
|
-
try {
|
|
192
|
-
forceUpdate()
|
|
193
|
-
} catch (_) {
|
|
194
|
-
// ignore caught error
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}, [content, forceUpdate, open, popperReferenceElement])
|
|
198
|
-
|
|
199
|
-
if (disabled) {
|
|
200
|
-
return child || <></>
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
const node = (
|
|
204
|
-
<Root
|
|
205
|
-
data-ui="Popover"
|
|
206
|
-
{...restProps}
|
|
207
|
-
$preventOverflow={preventOverflow}
|
|
208
|
-
ref={setRootRef}
|
|
209
|
-
style={popoverStyle}
|
|
210
|
-
zOffset={zOffset}
|
|
211
|
-
{...attributes.popper}
|
|
212
|
-
>
|
|
213
|
-
<PopoverCard
|
|
214
|
-
$constrainSize={constrainSize}
|
|
215
|
-
data-ui="PopoverCard"
|
|
216
|
-
padding={padding}
|
|
217
|
-
radius={radius}
|
|
218
|
-
scheme={scheme}
|
|
219
|
-
shadow={shadow}
|
|
220
|
-
tone={tone}
|
|
221
|
-
width={width as any}
|
|
222
|
-
>
|
|
223
|
-
{arrow && <PopoverArrow ref={setArrowElement} style={styles.arrow} />}
|
|
224
|
-
{content}
|
|
225
|
-
</PopoverCard>
|
|
226
|
-
</Root>
|
|
227
|
-
)
|
|
228
|
-
|
|
229
|
-
return (
|
|
230
|
-
<>
|
|
231
|
-
{child && !referenceElementProp ? cloneElement(child, {ref: setRef}) : child || <></>}
|
|
232
|
-
|
|
233
|
-
{open && (
|
|
234
|
-
<>
|
|
235
|
-
{portalProp && (
|
|
236
|
-
<Portal __unstable_name={typeof portalProp === 'string' ? portalProp : undefined}>
|
|
237
|
-
{node}
|
|
238
|
-
</Portal>
|
|
239
|
-
)}
|
|
240
|
-
|
|
241
|
-
{!portalProp && node}
|
|
242
|
-
</>
|
|
243
|
-
)}
|
|
244
|
-
</>
|
|
245
|
-
)
|
|
246
|
-
})
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {Box, Container, Flex, Radio, Stack, Text} from '@sanity/ui'
|
|
2
|
-
import {useBoolean} from '@sanity/ui-workshop'
|
|
3
|
-
import React, {useCallback, useState} from 'react'
|
|
4
|
-
|
|
5
|
-
export default function ExampleStory() {
|
|
6
|
-
const [value, setValue] = useState('first-option')
|
|
7
|
-
const disabled = useBoolean('Disabled', false, 'Props')
|
|
8
|
-
const readOnly = useBoolean('Read only', false, 'Props')
|
|
9
|
-
|
|
10
|
-
const handleChange = useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
|
|
11
|
-
setValue(event.target.value)
|
|
12
|
-
}, [])
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<Flex align="center" height="fill" justify="center" padding={[3, 4, 5]} sizing="border">
|
|
16
|
-
<Container width={0}>
|
|
17
|
-
<Stack space={3}>
|
|
18
|
-
<Flex align="center" as="label">
|
|
19
|
-
<Radio
|
|
20
|
-
checked={value === 'first-option'}
|
|
21
|
-
disabled={disabled}
|
|
22
|
-
name="name"
|
|
23
|
-
onChange={handleChange}
|
|
24
|
-
readOnly={readOnly}
|
|
25
|
-
value="first-option"
|
|
26
|
-
/>
|
|
27
|
-
<Box marginLeft={2}>
|
|
28
|
-
<Text>First option</Text>
|
|
29
|
-
</Box>
|
|
30
|
-
</Flex>
|
|
31
|
-
|
|
32
|
-
<Flex align="center" as="label">
|
|
33
|
-
<Radio
|
|
34
|
-
checked={value === 'second-option'}
|
|
35
|
-
disabled={disabled}
|
|
36
|
-
name="name"
|
|
37
|
-
onChange={handleChange}
|
|
38
|
-
readOnly={readOnly}
|
|
39
|
-
value="second-option"
|
|
40
|
-
/>
|
|
41
|
-
<Box marginLeft={2}>
|
|
42
|
-
<Text>Second option</Text>
|
|
43
|
-
</Box>
|
|
44
|
-
</Flex>
|
|
45
|
-
|
|
46
|
-
<Flex align="center" as="label">
|
|
47
|
-
<Radio
|
|
48
|
-
checked={value === 'third-option'}
|
|
49
|
-
disabled={disabled}
|
|
50
|
-
name="name"
|
|
51
|
-
onChange={handleChange}
|
|
52
|
-
readOnly={readOnly}
|
|
53
|
-
value="third-option"
|
|
54
|
-
/>
|
|
55
|
-
<Box marginLeft={2}>
|
|
56
|
-
<Text>Third option</Text>
|
|
57
|
-
</Box>
|
|
58
|
-
</Flex>
|
|
59
|
-
</Stack>
|
|
60
|
-
</Container>
|
|
61
|
-
</Flex>
|
|
62
|
-
)
|
|
63
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import {defineScope} from '@sanity/ui-workshop'
|
|
2
|
-
import {lazy} from 'react'
|
|
3
|
-
|
|
4
|
-
export default defineScope('primitives/radio', 'Radio', [
|
|
5
|
-
{name: 'plain', title: 'Plain', component: lazy(() => import('./plain'))},
|
|
6
|
-
{name: 'example', title: 'Example', component: lazy(() => import('./example'))},
|
|
7
|
-
])
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {Flex, Radio} from '@sanity/ui'
|
|
2
|
-
import {useAction, useBoolean} from '@sanity/ui-workshop'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
export default function PlainStory() {
|
|
6
|
-
const checked = useBoolean('Checked?', false, 'Props')
|
|
7
|
-
const disabled = useBoolean('Disabled?', false, 'Props')
|
|
8
|
-
const id = 'radioStory'
|
|
9
|
-
const name = 'radioStory'
|
|
10
|
-
const onBlur = useAction('onBlur')
|
|
11
|
-
const onChange = useAction('onChange')
|
|
12
|
-
const onFocus = useAction('onFocus')
|
|
13
|
-
const readOnly = useBoolean('Read only', false, 'Props')
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<Flex align="center" height="fill" justify="center" padding={[3, 4, 5]} sizing="border">
|
|
17
|
-
<Radio
|
|
18
|
-
checked={checked}
|
|
19
|
-
disabled={disabled}
|
|
20
|
-
id={id}
|
|
21
|
-
name={name}
|
|
22
|
-
onBlur={onBlur}
|
|
23
|
-
onChange={onChange}
|
|
24
|
-
onFocus={onFocus}
|
|
25
|
-
readOnly={readOnly}
|
|
26
|
-
/>
|
|
27
|
-
</Flex>
|
|
28
|
-
)
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './radio'
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, {forwardRef} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
import {useForwardedRef, useCustomValidity} from '../../hooks'
|
|
4
|
-
import {radioBaseStyle, inputElementStyle} from './styles'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export interface RadioProps {
|
|
10
|
-
customValidity?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const Root = styled.div(radioBaseStyle)
|
|
14
|
-
const Input = styled.input(inputElementStyle)
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export const Radio = forwardRef(function Radio(
|
|
20
|
-
props: Omit<React.HTMLProps<HTMLInputElement>, 'as' | 'type'> & RadioProps,
|
|
21
|
-
forwardedRef: React.ForwardedRef<HTMLInputElement>
|
|
22
|
-
) {
|
|
23
|
-
const {className, disabled, style, customValidity, readOnly, ...restProps} = props
|
|
24
|
-
const ref = useForwardedRef(forwardedRef)
|
|
25
|
-
|
|
26
|
-
useCustomValidity(ref, customValidity)
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<Root className={className} data-ui="Radio" style={style}>
|
|
30
|
-
<Input
|
|
31
|
-
data-read-only={!disabled && readOnly ? '' : undefined}
|
|
32
|
-
{...restProps}
|
|
33
|
-
disabled={disabled || readOnly}
|
|
34
|
-
readOnly={readOnly}
|
|
35
|
-
ref={ref}
|
|
36
|
-
type="radio"
|
|
37
|
-
/>
|
|
38
|
-
<span />
|
|
39
|
-
</Root>
|
|
40
|
-
)
|
|
41
|
-
})
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import {css, FlattenSimpleInterpolation} from 'styled-components'
|
|
2
|
-
import {rem, ThemeProps} from '../../styles'
|
|
3
|
-
import {focusRingBorderStyle, focusRingStyle} from '../../styles/internal'
|
|
4
|
-
|
|
5
|
-
export function radioBaseStyle(): FlattenSimpleInterpolation {
|
|
6
|
-
return css`
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
&:not([hidden]) {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&[data-read-only] {
|
|
14
|
-
outline: 1px solid red;
|
|
15
|
-
}
|
|
16
|
-
`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function inputElementStyle(props: ThemeProps): FlattenSimpleInterpolation {
|
|
20
|
-
const {theme} = props
|
|
21
|
-
const {focusRing, input} = theme.sanity
|
|
22
|
-
const color = theme.sanity.color.input
|
|
23
|
-
const dist = (input.radio.size - input.radio.markSize) / 2
|
|
24
|
-
|
|
25
|
-
return css`
|
|
26
|
-
appearance: none;
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: 0;
|
|
29
|
-
left: 0;
|
|
30
|
-
opacity: 0;
|
|
31
|
-
height: 100%;
|
|
32
|
-
width: 100%;
|
|
33
|
-
outline: none;
|
|
34
|
-
z-index: 1;
|
|
35
|
-
padding: 0;
|
|
36
|
-
margin: 0;
|
|
37
|
-
border-radius: ${rem(input.radio.size / 2)};
|
|
38
|
-
border: none;
|
|
39
|
-
|
|
40
|
-
/* enabled */
|
|
41
|
-
& + span {
|
|
42
|
-
display: block;
|
|
43
|
-
position: relative;
|
|
44
|
-
height: ${rem(input.radio.size)};
|
|
45
|
-
width: ${rem(input.radio.size)};
|
|
46
|
-
border-radius: ${rem(input.radio.size / 2)};
|
|
47
|
-
background: ${color.default.enabled.bg};
|
|
48
|
-
box-shadow: ${focusRingBorderStyle({
|
|
49
|
-
color: color.default.enabled.border,
|
|
50
|
-
width: input.border.width,
|
|
51
|
-
})};
|
|
52
|
-
|
|
53
|
-
&::after {
|
|
54
|
-
content: '';
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: ${rem(dist)};
|
|
57
|
-
left: ${rem(dist)};
|
|
58
|
-
height: ${rem(input.radio.markSize)};
|
|
59
|
-
width: ${rem(input.radio.markSize)};
|
|
60
|
-
border-radius: ${rem(input.radio.markSize / 2)};
|
|
61
|
-
background: ${color.default.enabled.fg};
|
|
62
|
-
opacity: 0;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* focused */
|
|
67
|
-
&:not(:disabled):focus + span {
|
|
68
|
-
box-shadow: ${focusRingStyle({
|
|
69
|
-
border: {width: input.border.width, color: color.default.enabled.border},
|
|
70
|
-
focusRing,
|
|
71
|
-
})};
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:not(:disabled):focus:not(:focus-visible) + span {
|
|
75
|
-
box-shadow: ${focusRingBorderStyle({
|
|
76
|
-
color: color.default.enabled.border,
|
|
77
|
-
width: input.border.width,
|
|
78
|
-
})};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&:checked + span::after {
|
|
82
|
-
opacity: 1;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* read only */
|
|
86
|
-
&[data-read-only] + span {
|
|
87
|
-
box-shadow: 0 0 0 1px ${color.default.readOnly.border};
|
|
88
|
-
background: ${color.default.readOnly.bg};
|
|
89
|
-
|
|
90
|
-
&::after {
|
|
91
|
-
background: ${color.default.readOnly.fg};
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* disabled */
|
|
96
|
-
&:not([data-read-only]):disabled + span {
|
|
97
|
-
box-shadow: 0 0 0 1px ${color.default.disabled.border};
|
|
98
|
-
background: ${color.default.disabled.bg};
|
|
99
|
-
|
|
100
|
-
&::after {
|
|
101
|
-
background: ${color.default.disabled.fg};
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
`
|
|
105
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import {defineScope} from '@sanity/ui-workshop'
|
|
2
|
-
import {lazy} from 'react'
|
|
3
|
-
|
|
4
|
-
export default defineScope('primitives/select', 'Select', [
|
|
5
|
-
{name: 'plain', title: 'Plain', component: lazy(() => import('./plain'))},
|
|
6
|
-
{name: 'read-only', title: 'Read-only', component: lazy(() => import('./readOnly'))},
|
|
7
|
-
])
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {Card, Container, Label, Select, Stack} from '@sanity/ui'
|
|
2
|
-
import {useBoolean} from '@sanity/ui-workshop'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
export default function PlainStory() {
|
|
6
|
-
const disabled = useBoolean('Disabled', false, 'Props')
|
|
7
|
-
const readOnly = useBoolean('Read only', false, 'Props')
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<Container width={0}>
|
|
11
|
-
<Card padding={4}>
|
|
12
|
-
<Stack space={3}>
|
|
13
|
-
<Label as="label" htmlFor="select">
|
|
14
|
-
Select
|
|
15
|
-
</Label>
|
|
16
|
-
|
|
17
|
-
<Select disabled={disabled} id="select-example" readOnly={readOnly}>
|
|
18
|
-
<option value="a">Option A</option>
|
|
19
|
-
<option value="b">Option B</option>
|
|
20
|
-
<option value="c">Option C</option>
|
|
21
|
-
<option value="d">Option D</option>
|
|
22
|
-
<option value="e">Option E</option>
|
|
23
|
-
</Select>
|
|
24
|
-
</Stack>
|
|
25
|
-
</Card>
|
|
26
|
-
</Container>
|
|
27
|
-
)
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {Card, Container, Label, Select, Stack} from '@sanity/ui'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
|
|
4
|
-
export default function ReadOnlyStory() {
|
|
5
|
-
return (
|
|
6
|
-
<Container width={0}>
|
|
7
|
-
<Card padding={4}>
|
|
8
|
-
<Stack space={3}>
|
|
9
|
-
<Label as="label" htmlFor="select">
|
|
10
|
-
Select
|
|
11
|
-
</Label>
|
|
12
|
-
|
|
13
|
-
<Select id="select-example" radius={3} readOnly>
|
|
14
|
-
<option value="a">Option A</option>
|
|
15
|
-
<option value="b">Option B</option>
|
|
16
|
-
<option value="c">Option C</option>
|
|
17
|
-
<option value="d">Option D</option>
|
|
18
|
-
<option value="e">Option E</option>
|
|
19
|
-
</Select>
|
|
20
|
-
</Stack>
|
|
21
|
-
</Card>
|
|
22
|
-
</Container>
|
|
23
|
-
)
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './select'
|