@sanity/ui 0.37.2 → 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 +12 -13
- package/lib/sanity-ui.js +0 -9871
- package/lib/sanity-ui.js.map +0 -1
- package/lib/sanity-ui.modern.js +0 -10910
- package/lib/sanity-ui.modern.js.map +0 -1
- package/lib/sanity-ui.module.js +0 -9751
- 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 -23
- 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 -22
- 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/menu/useMenuController.d.ts +0 -25
- package/lib/src/components/menu/useMenuController.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 -70
- package/src/components/menu/__workshop__/menuButton.tsx +0 -68
- package/src/components/menu/__workshop__/menuGroupRight.tsx +0 -59
- 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 -127
- package/src/components/menu/menu.tsx +0 -167
- package/src/components/menu/menuButton.tsx +0 -256
- package/src/components/menu/menuContext.ts +0 -31
- package/src/components/menu/menuDivider.ts +0 -12
- package/src/components/menu/menuGroup.tsx +0 -200
- package/src/components/menu/menuItem.tsx +0 -179
- package/src/components/menu/useMenu.ts +0 -20
- package/src/components/menu/useMenuController.ts +0 -239
- 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,77 +0,0 @@
|
|
|
1
|
-
import {SelectIcon} from '@sanity/icons'
|
|
2
|
-
import React, {forwardRef} from 'react'
|
|
3
|
-
import styled from 'styled-components'
|
|
4
|
-
import {useForwardedRef, useCustomValidity} from '../../hooks'
|
|
5
|
-
import {Box} from '../box'
|
|
6
|
-
import {Text} from '../text'
|
|
7
|
-
import {selectStyle} from './styles'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export interface SelectProps {
|
|
13
|
-
fontSize?: number | number[]
|
|
14
|
-
padding?: number | number[]
|
|
15
|
-
radius?: number | number[]
|
|
16
|
-
space?: number | number[]
|
|
17
|
-
customValidity?: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const Root = styled.div(selectStyle.root)
|
|
21
|
-
|
|
22
|
-
const Input = styled.select<{
|
|
23
|
-
$fontSize?: number | number[]
|
|
24
|
-
$padding?: number | number[]
|
|
25
|
-
$radius?: number | number[]
|
|
26
|
-
$space?: number | number[]
|
|
27
|
-
}>(selectStyle.input)
|
|
28
|
-
|
|
29
|
-
const IconBox = styled(Box)(selectStyle.iconBox)
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @public
|
|
33
|
-
*/
|
|
34
|
-
export const Select = forwardRef(function Select(
|
|
35
|
-
props: SelectProps & Omit<React.HTMLProps<HTMLSelectElement>, 'as'>,
|
|
36
|
-
forwardedRef: React.ForwardedRef<HTMLSelectElement>
|
|
37
|
-
) {
|
|
38
|
-
const {
|
|
39
|
-
children,
|
|
40
|
-
customValidity,
|
|
41
|
-
disabled,
|
|
42
|
-
fontSize = 2,
|
|
43
|
-
padding = 3,
|
|
44
|
-
radius = 1,
|
|
45
|
-
readOnly,
|
|
46
|
-
space = 3,
|
|
47
|
-
...restProps
|
|
48
|
-
} = props
|
|
49
|
-
|
|
50
|
-
const ref = useForwardedRef(forwardedRef)
|
|
51
|
-
|
|
52
|
-
useCustomValidity(ref, customValidity)
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<Root data-ui="Select">
|
|
56
|
-
<Input
|
|
57
|
-
data-read-only={!disabled && readOnly ? '' : undefined}
|
|
58
|
-
data-ui="Select"
|
|
59
|
-
{...restProps}
|
|
60
|
-
$fontSize={fontSize}
|
|
61
|
-
$padding={padding}
|
|
62
|
-
$radius={radius}
|
|
63
|
-
$space={space}
|
|
64
|
-
disabled={disabled || readOnly}
|
|
65
|
-
ref={ref}
|
|
66
|
-
>
|
|
67
|
-
{children}
|
|
68
|
-
</Input>
|
|
69
|
-
|
|
70
|
-
<IconBox padding={padding}>
|
|
71
|
-
<Text size={fontSize}>
|
|
72
|
-
<SelectIcon />
|
|
73
|
-
</Text>
|
|
74
|
-
</IconBox>
|
|
75
|
-
</Root>
|
|
76
|
-
)
|
|
77
|
-
})
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import {css, CSSObject, FlattenSimpleInterpolation} from 'styled-components'
|
|
2
|
-
import {getResponsiveProp, rem, responsive, ThemeProps} from '../../styles'
|
|
3
|
-
import {
|
|
4
|
-
focusRingBorderStyle,
|
|
5
|
-
focusRingStyle,
|
|
6
|
-
responsiveInputPaddingIconRightStyle,
|
|
7
|
-
responsiveRadiusStyle,
|
|
8
|
-
ResponsiveRadiusStyleProps,
|
|
9
|
-
} from '../../styles/internal'
|
|
10
|
-
import {ThemeFontSize} from '../../theme'
|
|
11
|
-
|
|
12
|
-
function rootStyle(): FlattenSimpleInterpolation {
|
|
13
|
-
return css`
|
|
14
|
-
position: relative;
|
|
15
|
-
width: stretch;
|
|
16
|
-
|
|
17
|
-
&:not([hidden]) {
|
|
18
|
-
display: inline-block;
|
|
19
|
-
}
|
|
20
|
-
`
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function inputBaseStyle(props: ThemeProps): FlattenSimpleInterpolation {
|
|
24
|
-
const {theme} = props
|
|
25
|
-
const font = theme.sanity.fonts.text
|
|
26
|
-
|
|
27
|
-
return css`
|
|
28
|
-
-webkit-font-smoothing: antialiased;
|
|
29
|
-
appearance: none;
|
|
30
|
-
border: 0;
|
|
31
|
-
font-family: ${font.family};
|
|
32
|
-
color: inherit;
|
|
33
|
-
width: 100%;
|
|
34
|
-
outline: none;
|
|
35
|
-
margin: 0;
|
|
36
|
-
|
|
37
|
-
&:disabled {
|
|
38
|
-
opacity: 1;
|
|
39
|
-
}
|
|
40
|
-
`
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function inputColorStyle(props: ThemeProps) {
|
|
44
|
-
const {theme} = props
|
|
45
|
-
const {focusRing, input} = theme.sanity
|
|
46
|
-
const color = theme.sanity.color.input
|
|
47
|
-
|
|
48
|
-
return css`
|
|
49
|
-
/* enabled */
|
|
50
|
-
background-color: ${color.default.enabled.bg};
|
|
51
|
-
color: ${color.default.enabled.fg};
|
|
52
|
-
box-shadow: ${focusRingBorderStyle({
|
|
53
|
-
color: color.default.enabled.border,
|
|
54
|
-
width: input.border.width,
|
|
55
|
-
})};
|
|
56
|
-
|
|
57
|
-
/* hovered */
|
|
58
|
-
@media (hover: hover) {
|
|
59
|
-
&:not(:disabled):hover {
|
|
60
|
-
background-color: ${color.default.hovered.bg};
|
|
61
|
-
color: ${color.default.hovered.fg};
|
|
62
|
-
box-shadow: ${focusRingBorderStyle({
|
|
63
|
-
color: color.default.hovered.border,
|
|
64
|
-
width: input.border.width,
|
|
65
|
-
})};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* focused */
|
|
70
|
-
&:not(:disabled):focus {
|
|
71
|
-
box-shadow: ${focusRingStyle({
|
|
72
|
-
border: {width: input.border.width, color: color.default.enabled.border},
|
|
73
|
-
focusRing,
|
|
74
|
-
})};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* read-only */
|
|
78
|
-
&[data-read-only] {
|
|
79
|
-
background-color: ${color.default.readOnly.bg};
|
|
80
|
-
color: ${color.default.readOnly.fg};
|
|
81
|
-
box-shadow: ${focusRingBorderStyle({
|
|
82
|
-
color: color.default.readOnly.border,
|
|
83
|
-
width: input.border.width,
|
|
84
|
-
})};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* disabled */
|
|
88
|
-
&:not([data-read-only]):disabled {
|
|
89
|
-
background-color: ${color.default.disabled.bg};
|
|
90
|
-
color: ${color.default.disabled.fg};
|
|
91
|
-
box-shadow: ${focusRingBorderStyle({
|
|
92
|
-
color: color.default.disabled.border,
|
|
93
|
-
width: input.border.width,
|
|
94
|
-
})};
|
|
95
|
-
}
|
|
96
|
-
`
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function textSize(size: ThemeFontSize) {
|
|
100
|
-
return {fontSize: rem(size.fontSize), lineHeight: rem(size.lineHeight)}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function inputTextSizeStyle(props: {$fontSize?: number | number[]} & ThemeProps) {
|
|
104
|
-
const {theme, $fontSize} = props
|
|
105
|
-
const {sizes} = theme.sanity.fonts.text
|
|
106
|
-
|
|
107
|
-
return responsive(theme.sanity.media, getResponsiveProp($fontSize), (sizeIndex) =>
|
|
108
|
-
textSize(sizes[sizeIndex] || sizes[2])
|
|
109
|
-
)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function inputStyle(): Array<
|
|
113
|
-
| ((props: ResponsiveRadiusStyleProps & ThemeProps) => CSSObject[])
|
|
114
|
-
| ((props: ThemeProps) => FlattenSimpleInterpolation)
|
|
115
|
-
> {
|
|
116
|
-
return [
|
|
117
|
-
responsiveRadiusStyle,
|
|
118
|
-
inputBaseStyle,
|
|
119
|
-
inputColorStyle,
|
|
120
|
-
inputTextSizeStyle,
|
|
121
|
-
responsiveInputPaddingIconRightStyle,
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
function iconBoxStyle(props: ThemeProps): FlattenSimpleInterpolation {
|
|
126
|
-
const {theme} = props
|
|
127
|
-
const color = theme.sanity.color.input
|
|
128
|
-
|
|
129
|
-
return css`
|
|
130
|
-
pointer-events: none;
|
|
131
|
-
position: absolute;
|
|
132
|
-
top: 0;
|
|
133
|
-
right: 0;
|
|
134
|
-
|
|
135
|
-
/* enabled */
|
|
136
|
-
--card-fg-color: ${color.default.enabled.fg};
|
|
137
|
-
|
|
138
|
-
/* hover */
|
|
139
|
-
@media (hover: hover) {
|
|
140
|
-
select:not(disabled):not(:read-only):hover + && {
|
|
141
|
-
--card-fg-color: ${color.default.hovered.fg};
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/* disabled */
|
|
146
|
-
select:disabled + && {
|
|
147
|
-
--card-fg-color: ${color.default.disabled.fg};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* read-only */
|
|
151
|
-
select[data-read-only] + && {
|
|
152
|
-
--card-fg-color: ${color.default.readOnly.fg};
|
|
153
|
-
}
|
|
154
|
-
`
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export const selectStyle = {
|
|
158
|
-
root: rootStyle,
|
|
159
|
-
input: inputStyle,
|
|
160
|
-
iconBox: iconBoxStyle,
|
|
161
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {Flex, Spinner} from '@sanity/ui'
|
|
2
|
-
import {useBoolean, useSelect} from '@sanity/ui-workshop'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import {WORKSHOP_TEXT_SIZE_OPTIONS} from '../../../__workshop__/constants'
|
|
5
|
-
|
|
6
|
-
export default function Props() {
|
|
7
|
-
const muted = useBoolean('Muted', false, 'Props')
|
|
8
|
-
const size = useSelect('Size', WORKSHOP_TEXT_SIZE_OPTIONS, 2, 'Props')
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<Flex align="center" height="fill" justify="center">
|
|
12
|
-
<Spinner muted={muted} size={size} />
|
|
13
|
-
</Flex>
|
|
14
|
-
)
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './spinner'
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import {SpinnerIcon} from '@sanity/icons'
|
|
2
|
-
import React, {forwardRef} from 'react'
|
|
3
|
-
import styled, {keyframes} from 'styled-components'
|
|
4
|
-
import {Text} from '../text'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export interface SpinnerProps {
|
|
10
|
-
muted?: boolean
|
|
11
|
-
size?: number | number[]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const rotate = keyframes`
|
|
15
|
-
from {
|
|
16
|
-
transform: rotate(0deg);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
to {
|
|
20
|
-
transform: rotate(360deg);
|
|
21
|
-
}
|
|
22
|
-
`
|
|
23
|
-
|
|
24
|
-
const Root = styled(Text)`
|
|
25
|
-
& > span > svg {
|
|
26
|
-
animation: ${rotate} 500ms linear infinite;
|
|
27
|
-
}
|
|
28
|
-
`
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export const Spinner = forwardRef(function Spinner(
|
|
34
|
-
props: SpinnerProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'size'>,
|
|
35
|
-
ref: React.ForwardedRef<HTMLDivElement>
|
|
36
|
-
) {
|
|
37
|
-
return (
|
|
38
|
-
<Root data-ui="Spinner" {...props} ref={ref}>
|
|
39
|
-
<SpinnerIcon />
|
|
40
|
-
</Root>
|
|
41
|
-
)
|
|
42
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {Card, Container, Flex, Stack, Text} from '@sanity/ui'
|
|
2
|
-
import {useSelect} from '@sanity/ui-workshop'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import {WORKSHOP_SPACE_OPTIONS} from '../../../__workshop__/constants'
|
|
5
|
-
|
|
6
|
-
export default function PlainStory() {
|
|
7
|
-
return (
|
|
8
|
-
<Flex align="center" height="fill" justify="center" padding={[4, 5, 6]} sizing="border">
|
|
9
|
-
<Container width={0}>
|
|
10
|
-
<Stack space={useSelect('Space', WORKSHOP_SPACE_OPTIONS, 0, 'Props')}>
|
|
11
|
-
<Card padding={[2, 3, 4]} shadow={1}>
|
|
12
|
-
<Text align="center" muted>
|
|
13
|
-
Stack item
|
|
14
|
-
</Text>
|
|
15
|
-
</Card>
|
|
16
|
-
|
|
17
|
-
<Card padding={[2, 3, 4]} shadow={1}>
|
|
18
|
-
<Text align="center" muted>
|
|
19
|
-
Stack item
|
|
20
|
-
</Text>
|
|
21
|
-
</Card>
|
|
22
|
-
|
|
23
|
-
<Card padding={[2, 3, 4]} shadow={1}>
|
|
24
|
-
<Text align="center" muted>
|
|
25
|
-
Stack item
|
|
26
|
-
</Text>
|
|
27
|
-
</Card>
|
|
28
|
-
</Stack>
|
|
29
|
-
</Container>
|
|
30
|
-
</Flex>
|
|
31
|
-
)
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './stack'
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, {forwardRef} from 'react'
|
|
2
|
-
import styled from 'styled-components'
|
|
3
|
-
import {Box, BoxProps} from '../box'
|
|
4
|
-
import {stackBaseStyle, responsiveStackSpaceStyle, ResponsiveStackSpaceStyleProps} from './styles'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export interface StackProps extends BoxProps {
|
|
10
|
-
as?: React.ElementType | keyof JSX.IntrinsicElements
|
|
11
|
-
space?: number | number[]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const Root = styled(Box)<ResponsiveStackSpaceStyleProps>(stackBaseStyle, responsiveStackSpaceStyle)
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
|
-
export const Stack = forwardRef(function Stack(
|
|
20
|
-
props: StackProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'ref'>,
|
|
21
|
-
ref: React.ForwardedRef<HTMLDivElement>
|
|
22
|
-
) {
|
|
23
|
-
const {as, space, ...restProps} = props
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Root
|
|
27
|
-
data-as={typeof as === 'string' ? as : undefined}
|
|
28
|
-
data-ui="Stack"
|
|
29
|
-
{...restProps}
|
|
30
|
-
$space={space}
|
|
31
|
-
forwardedAs={as}
|
|
32
|
-
ref={ref}
|
|
33
|
-
/>
|
|
34
|
-
)
|
|
35
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {CSSObject} from 'styled-components'
|
|
2
|
-
import {getResponsiveProp, rem, responsive, ThemeProps} from '../../styles'
|
|
3
|
-
|
|
4
|
-
export interface ResponsiveStackSpaceStyleProps {
|
|
5
|
-
$space?: number | number[]
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const BASE_STYLE: CSSObject = {
|
|
9
|
-
'&&:not([hidden])': {
|
|
10
|
-
display: 'grid',
|
|
11
|
-
},
|
|
12
|
-
'&[data-as="ul"],&[data-as="ol"]': {
|
|
13
|
-
listStyle: 'none',
|
|
14
|
-
},
|
|
15
|
-
gridTemplateColumns: 'minmax(0, 1fr)',
|
|
16
|
-
gridAutoRows: 'min-content',
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function stackBaseStyle(): CSSObject {
|
|
20
|
-
return BASE_STYLE
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function responsiveStackSpaceStyle(
|
|
24
|
-
props: ResponsiveStackSpaceStyleProps & ThemeProps
|
|
25
|
-
): CSSObject[] {
|
|
26
|
-
const {theme} = props
|
|
27
|
-
const {media, space} = theme.sanity
|
|
28
|
-
|
|
29
|
-
return responsive(media, getResponsiveProp(props.$space), (spaceIndex) => ({
|
|
30
|
-
gridGap: rem(space[spaceIndex]),
|
|
31
|
-
}))
|
|
32
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {Box, Flex, Switch, Text} from '@sanity/ui'
|
|
2
|
-
import React, {useCallback, useState} from 'react'
|
|
3
|
-
|
|
4
|
-
export default function ExampleStory() {
|
|
5
|
-
const [checked, setChecked] = useState<boolean | undefined>(undefined)
|
|
6
|
-
const indeterminate = checked === undefined
|
|
7
|
-
const handleChange = useCallback((event: React.FormEvent<HTMLInputElement>) => {
|
|
8
|
-
setChecked(event.currentTarget.checked)
|
|
9
|
-
}, [])
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<Flex align="center" height="fill" justify="center" padding={[4, 5, 6]} sizing="border">
|
|
13
|
-
<Flex align="center" as="label">
|
|
14
|
-
<Switch checked={checked || false} indeterminate={indeterminate} onChange={handleChange} />
|
|
15
|
-
<Box marginLeft={3}>
|
|
16
|
-
<Text size={1} weight="semibold">
|
|
17
|
-
Label
|
|
18
|
-
</Text>
|
|
19
|
-
</Box>
|
|
20
|
-
</Flex>
|
|
21
|
-
</Flex>
|
|
22
|
-
)
|
|
23
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import {defineScope} from '@sanity/ui-workshop'
|
|
2
|
-
import {lazy} from 'react'
|
|
3
|
-
|
|
4
|
-
export default defineScope('primitives/switch', 'Switch', [
|
|
5
|
-
{name: 'props', title: 'Props', component: lazy(() => import('./props'))},
|
|
6
|
-
{name: 'example', title: 'Example', component: lazy(() => import('./example'))},
|
|
7
|
-
])
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {Flex, Switch, useTheme} from '@sanity/ui'
|
|
2
|
-
import {useBoolean, useNumber} from '@sanity/ui-workshop'
|
|
3
|
-
import React, {useCallback, useMemo} from 'react'
|
|
4
|
-
import {ThemeProvider} from 'styled-components'
|
|
5
|
-
|
|
6
|
-
export default function PropsStory() {
|
|
7
|
-
const checked = useBoolean('Checked', false)
|
|
8
|
-
const indeterminate = useBoolean('Indeterminate', false)
|
|
9
|
-
const readOnly = useBoolean('Read only', false)
|
|
10
|
-
const theme = useTheme()
|
|
11
|
-
const focusRingOffset = useNumber('Focus ring offset', theme.sanity.focusRing.offset)
|
|
12
|
-
const focusRingWidth = useNumber('Focus ring width', theme.sanity.focusRing.width)
|
|
13
|
-
const handleChange = useCallback(() => undefined, [])
|
|
14
|
-
|
|
15
|
-
const customTheme = useMemo(
|
|
16
|
-
() => ({
|
|
17
|
-
...theme,
|
|
18
|
-
sanity: {
|
|
19
|
-
...theme.sanity,
|
|
20
|
-
focusRing: {
|
|
21
|
-
offset: focusRingOffset || theme.sanity.focusRing.offset,
|
|
22
|
-
width: focusRingWidth || theme.sanity.focusRing.width,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
}),
|
|
26
|
-
[focusRingOffset, focusRingWidth, theme]
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<ThemeProvider theme={customTheme}>
|
|
31
|
-
<Flex align="center" height="fill" justify="center" padding={[4, 5, 6]} sizing="border">
|
|
32
|
-
<Switch
|
|
33
|
-
checked={checked}
|
|
34
|
-
indeterminate={indeterminate}
|
|
35
|
-
onChange={handleChange}
|
|
36
|
-
readOnly={readOnly}
|
|
37
|
-
/>
|
|
38
|
-
</Flex>
|
|
39
|
-
</ThemeProvider>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './switch'
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import {css, FlattenSimpleInterpolation} from 'styled-components'
|
|
2
|
-
import {rem, ThemeProps} from '../../styles'
|
|
3
|
-
import {focusRingStyle} from '../../styles/internal'
|
|
4
|
-
|
|
5
|
-
/* Root */
|
|
6
|
-
export function switchBaseStyles(): FlattenSimpleInterpolation {
|
|
7
|
-
return css`
|
|
8
|
-
position: relative;
|
|
9
|
-
&:not([hidden]) {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
}
|
|
12
|
-
`
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Input */
|
|
16
|
-
export function switchInputStyles(): FlattenSimpleInterpolation {
|
|
17
|
-
// Visually hide the input element while keeping it interactive
|
|
18
|
-
return css`
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
right: 0;
|
|
22
|
-
bottom: 0;
|
|
23
|
-
left: 0;
|
|
24
|
-
opacity: 0;
|
|
25
|
-
height: 100%;
|
|
26
|
-
width: 100%;
|
|
27
|
-
outline: none;
|
|
28
|
-
padding: 0;
|
|
29
|
-
margin: 0;
|
|
30
|
-
|
|
31
|
-
/* Place the input element above the representation element */
|
|
32
|
-
z-index: 1;
|
|
33
|
-
`
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Representation */
|
|
37
|
-
export function switchRepresentationStyles(props: ThemeProps): FlattenSimpleInterpolation {
|
|
38
|
-
const {theme} = props
|
|
39
|
-
const {focusRing, input} = theme.sanity
|
|
40
|
-
const color = theme.sanity.color.button.default
|
|
41
|
-
|
|
42
|
-
return css`
|
|
43
|
-
--switch-bg-color: ${color.default.enabled.bg};
|
|
44
|
-
--switch-fg-color: ${color.default.enabled.fg};
|
|
45
|
-
--switch-box-shadow: none;
|
|
46
|
-
|
|
47
|
-
&:not([hidden]) {
|
|
48
|
-
display: block;
|
|
49
|
-
}
|
|
50
|
-
position: relative;
|
|
51
|
-
width: ${rem(input.switch.width)};
|
|
52
|
-
height: ${rem(input.switch.height)};
|
|
53
|
-
border-radius: ${rem(input.switch.height / 2)};
|
|
54
|
-
|
|
55
|
-
/* Make sure it’s not possible to interact with the wrapper element */
|
|
56
|
-
pointer-events: none;
|
|
57
|
-
|
|
58
|
-
&:after {
|
|
59
|
-
content: '';
|
|
60
|
-
display: block;
|
|
61
|
-
position: absolute;
|
|
62
|
-
top: 0;
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
bottom: 0;
|
|
66
|
-
z-index: 1;
|
|
67
|
-
box-shadow: var(--switch-box-shadow);
|
|
68
|
-
border-radius: inherit;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Focus styles */
|
|
72
|
-
input:focus + && {
|
|
73
|
-
--switch-box-shadow: ${focusRingStyle({focusRing})};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
input:focus:not(:focus-visible) + && {
|
|
77
|
-
--switch-box-shadow: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
input:checked + && {
|
|
81
|
-
--switch-bg-color: ${color.positive.enabled.bg};
|
|
82
|
-
--switch-fg-color: ${color.positive.enabled.fg};
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@media (hover: hover) {
|
|
86
|
-
input:not(:disabled):hover + && {
|
|
87
|
-
--switch-bg-color: ${color.default.hovered.bg};
|
|
88
|
-
--switch-fg-color: ${color.default.hovered.fg};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
input:not(:disabled):checked:hover + && {
|
|
92
|
-
--switch-bg-color: ${color.positive.hovered.bg};
|
|
93
|
-
--switch-fg-color: ${color.positive.hovered.fg};
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
input:not([data-read-only]):disabled + && {
|
|
98
|
-
--switch-bg-color: ${color.default.disabled.bg};
|
|
99
|
-
--switch-fg-color: ${color.default.disabled.fg};
|
|
100
|
-
}
|
|
101
|
-
`
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/* Track */
|
|
105
|
-
export function switchTrackStyles(props: ThemeProps): FlattenSimpleInterpolation {
|
|
106
|
-
const {theme} = props
|
|
107
|
-
const {input} = theme.sanity
|
|
108
|
-
|
|
109
|
-
return css`
|
|
110
|
-
&:not([hidden]) {
|
|
111
|
-
display: block;
|
|
112
|
-
}
|
|
113
|
-
background-color: var(--switch-bg-color);
|
|
114
|
-
position: absolute;
|
|
115
|
-
left: 0;
|
|
116
|
-
top: 0;
|
|
117
|
-
width: ${rem(input.switch.width)};
|
|
118
|
-
height: ${rem(input.switch.height)};
|
|
119
|
-
border-radius: ${rem(input.switch.height / 2)};
|
|
120
|
-
`
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/* Thumb */
|
|
124
|
-
export function switchThumbStyles(
|
|
125
|
-
props: {$checked?: boolean; $indeterminate?: boolean} & ThemeProps
|
|
126
|
-
): FlattenSimpleInterpolation {
|
|
127
|
-
const {$indeterminate, theme} = props
|
|
128
|
-
const {input} = theme.sanity
|
|
129
|
-
const trackWidth = input.switch.width
|
|
130
|
-
const trackHeight = input.switch.height
|
|
131
|
-
const trackPadding = input.switch.padding
|
|
132
|
-
const size = trackHeight - input.switch.padding * 2
|
|
133
|
-
const checkedOffset = trackWidth - trackPadding * 2 - size
|
|
134
|
-
const indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding
|
|
135
|
-
const checked = $indeterminate !== true && props.$checked === true
|
|
136
|
-
|
|
137
|
-
return css`
|
|
138
|
-
&:not([hidden]) {
|
|
139
|
-
display: block;
|
|
140
|
-
}
|
|
141
|
-
position: absolute;
|
|
142
|
-
left: ${rem(trackPadding)};
|
|
143
|
-
top: ${rem(trackPadding)};
|
|
144
|
-
height: ${rem(size)};
|
|
145
|
-
width: ${rem(size)};
|
|
146
|
-
border-radius: ${rem(size / 2)};
|
|
147
|
-
transition-property: transform;
|
|
148
|
-
transition-duration: ${input.switch.transitionDurationMs}ms;
|
|
149
|
-
transition-timing-function: ${input.switch.transitionTimingFunction};
|
|
150
|
-
background: var(--switch-fg-color);
|
|
151
|
-
transform: translate3d(0, 0, 0);
|
|
152
|
-
|
|
153
|
-
${checked &&
|
|
154
|
-
css`
|
|
155
|
-
transform: translate3d(${checkedOffset}px, 0, 0);
|
|
156
|
-
`}
|
|
157
|
-
|
|
158
|
-
${$indeterminate &&
|
|
159
|
-
css`
|
|
160
|
-
transform: translate3d(${indeterminateOffset}px, 0, 0);
|
|
161
|
-
`}
|
|
162
|
-
`
|
|
163
|
-
}
|