@sanity/ui 4.0.0-beta.8 → 4.0.0-next.2
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/LICENSE +1 -1
- package/README.md +21 -7
- package/dist/_chunks/getScopedTheme.cjs +4043 -0
- package/dist/_chunks/getScopedTheme.cjs.map +1 -0
- package/dist/_chunks/getScopedTheme.js +3803 -0
- package/dist/_chunks/getScopedTheme.js.map +1 -0
- package/dist/_chunks/refractor.cjs +18 -0
- package/dist/_chunks/refractor.cjs.map +1 -0
- package/dist/_chunks/refractor.js +20 -0
- package/dist/_chunks/refractor.js.map +1 -0
- package/dist/_chunks/rgba.d.cts +929 -0
- package/dist/_chunks/rgba.d.cts.map +1 -0
- package/dist/_chunks/rgba.d.ts +929 -0
- package/dist/_chunks/rgba.d.ts.map +1 -0
- package/dist/index.cjs +6243 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2332 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +1767 -1190
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6134 -4725
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs +54 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.cts +278 -0
- package/dist/theme.d.cts.map +1 -0
- package/dist/theme.d.ts +278 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +53 -0
- package/dist/theme.js.map +1 -0
- package/package.json +55 -86
- package/dist/_chunks-es/Syntax.js +0 -23
- package/dist/_chunks-es/Syntax.js.map +0 -1
- package/dist/index.css +0 -1
- package/exports/index.css +0 -1
- package/exports/index.ts +0 -125
- package/src/components/autocomplete/Autocomplete.tsx +0 -665
- package/src/components/autocomplete/AutocompleteOption.tsx +0 -42
- package/src/components/autocomplete/__workshop__/Async.tsx +0 -162
- package/src/components/autocomplete/__workshop__/ConstrainedHeight.tsx +0 -121
- package/src/components/autocomplete/__workshop__/Custom.tsx +0 -91
- package/src/components/autocomplete/__workshop__/Example.tsx +0 -70
- package/src/components/autocomplete/__workshop__/FocusAndBlur.tsx +0 -39
- package/src/components/autocomplete/__workshop__/Fullscreen.tsx +0 -307
- package/src/components/autocomplete/__workshop__/index.ts +0 -41
- package/src/components/autocomplete/__workshop__/mock/apiStore.ts +0 -49
- package/src/components/autocomplete/__workshop__/mock/countries.ts +0 -245
- package/src/components/autocomplete/__workshop__/types.ts +0 -4
- package/src/components/autocomplete/autocompleteReducer.ts +0 -47
- package/src/components/autocomplete/constants.ts +0 -28
- package/src/components/autocomplete/types.ts +0 -103
- package/src/components/breadcrumbs/Breadcrumbs.tsx +0 -163
- package/src/components/breadcrumbs/__workshop__/Example.tsx +0 -48
- package/src/components/breadcrumbs/__workshop__/index.ts +0 -16
- package/src/components/dialog/Dialog.tsx +0 -230
- package/src/components/dialog/DialogCard.tsx +0 -233
- package/src/components/dialog/DialogContext.ts +0 -21
- package/src/components/dialog/DialogProvider.tsx +0 -34
- package/src/components/dialog/__workshop__/Activate.tsx +0 -141
- package/src/components/dialog/__workshop__/AutoFocus.tsx +0 -29
- package/src/components/dialog/__workshop__/Layering.tsx +0 -41
- package/src/components/dialog/__workshop__/Nested.tsx +0 -71
- package/src/components/dialog/__workshop__/OnScroll.tsx +0 -51
- package/src/components/dialog/__workshop__/Panes.tsx +0 -75
- package/src/components/dialog/__workshop__/Position.tsx +0 -30
- package/src/components/dialog/__workshop__/Props.tsx +0 -93
- package/src/components/dialog/__workshop__/Provider.tsx +0 -11
- package/src/components/dialog/__workshop__/Wrapped.tsx +0 -76
- package/src/components/dialog/__workshop__/index.ts +0 -21
- package/src/components/dialog/isTargetWithinScope.ts +0 -14
- package/src/components/dialog/types.ts +0 -2
- package/src/components/dialog/useDialog.ts +0 -11
- package/src/components/hotkeys/Hotkeys.tsx +0 -70
- package/src/components/hotkeys/__workshop__/Plain.tsx +0 -9
- package/src/components/hotkeys/__workshop__/index.ts +0 -16
- package/src/components/menu/Menu.test.tsx +0 -125
- package/src/components/menu/Menu.tsx +0 -174
- package/src/components/menu/MenuButton.tsx +0 -231
- package/src/components/menu/MenuContext.ts +0 -19
- package/src/components/menu/MenuDivider.tsx +0 -32
- package/src/components/menu/MenuGroup.tsx +0 -240
- package/src/components/menu/MenuItem.tsx +0 -153
- package/src/components/menu/__workshop__/AsComponent.tsx +0 -45
- package/src/components/menu/__workshop__/AvatarMenu.tsx +0 -36
- package/src/components/menu/__workshop__/ClosableMenuButton.tsx +0 -47
- package/src/components/menu/__workshop__/ConstrainedInBoundary.tsx +0 -133
- package/src/components/menu/__workshop__/CustomMenuItem.tsx +0 -47
- package/src/components/menu/__workshop__/CustomSelectedState.tsx +0 -35
- package/src/components/menu/__workshop__/DataProps.tsx +0 -27
- package/src/components/menu/__workshop__/DisableFocusOnClose.tsx +0 -40
- package/src/components/menu/__workshop__/Groups.tsx +0 -164
- package/src/components/menu/__workshop__/MenuButton.tsx +0 -79
- package/src/components/menu/__workshop__/MenuGroupRight.tsx +0 -73
- package/src/components/menu/__workshop__/NestedMenu.tsx +0 -22
- package/src/components/menu/__workshop__/OnCloseMenuButton.tsx +0 -50
- package/src/components/menu/__workshop__/SelectedItem.tsx +0 -69
- package/src/components/menu/__workshop__/ShouldFocus.tsx +0 -42
- package/src/components/menu/__workshop__/Tones.tsx +0 -19
- package/src/components/menu/__workshop__/index.ts +0 -91
- package/src/components/menu/helpers.ts +0 -82
- package/src/components/menu/useMenu.ts +0 -21
- package/src/components/menu/useMenuController.ts +0 -245
- package/src/components/tab/Tab.tsx +0 -135
- package/src/components/tab/TabList.tsx +0 -157
- package/src/components/tab/TabListContext.ts +0 -10
- package/src/components/tab/TabPanel.tsx +0 -94
- package/src/components/tab/__workshop__/Example.tsx +0 -135
- package/src/components/tab/__workshop__/index.ts +0 -16
- package/src/components/tab/types.ts +0 -11
- package/src/components/toast/Toast.test.tsx +0 -103
- package/src/components/toast/Toast.tsx +0 -191
- package/src/components/toast/ToastContext.ts +0 -7
- package/src/components/toast/ToastLayer.tsx +0 -54
- package/src/components/toast/ToastProvider.tsx +0 -127
- package/src/components/toast/__workshop__/Hook.tsx +0 -71
- package/src/components/toast/__workshop__/Toast.tsx +0 -26
- package/src/components/toast/__workshop__/index.ts +0 -21
- package/src/components/toast/toastState.ts +0 -6
- package/src/components/toast/types.ts +0 -24
- package/src/components/toast/useToast.ts +0 -23
- package/src/components/tree/Tree.tsx +0 -248
- package/src/components/tree/TreeContext.ts +0 -10
- package/src/components/tree/TreeGroup.tsx +0 -46
- package/src/components/tree/TreeItem.tsx +0 -236
- package/src/components/tree/__workshop__/Basic.tsx +0 -108
- package/src/components/tree/__workshop__/TabFromElement.tsx +0 -84
- package/src/components/tree/__workshop__/basic.perf.ts +0 -19
- package/src/components/tree/__workshop__/index.ts +0 -23
- package/src/components/tree/helpers.ts +0 -105
- package/src/components/tree/types.ts +0 -24
- package/src/components/tree/useTree.ts +0 -17
- package/src/components/virtualList/VirtualList.tsx +0 -254
- package/src/components/virtualList/__workshop__/ChangingProps.tsx +0 -41
- package/src/components/virtualList/__workshop__/ElementScroll.tsx +0 -43
- package/src/components/virtualList/__workshop__/InfiniteList.tsx +0 -40
- package/src/components/virtualList/__workshop__/WindowScrolll.tsx +0 -23
- package/src/components/virtualList/__workshop__/index.ts +0 -31
- package/src/core/_keys.ts +0 -26
- package/src/core/constants.ts +0 -67
- package/src/core/getElementRef.ts +0 -29
- package/src/core/helpers/animation.ts +0 -26
- package/src/core/helpers/element.ts +0 -55
- package/src/core/helpers/focus.ts +0 -92
- package/src/core/helpers/props.ts +0 -51
- package/src/core/helpers/scroll.ts +0 -15
- package/src/core/lib/createGlobalScopedContext.ts +0 -39
- package/src/core/lib/globalScope.ts +0 -19
- package/src/core/lib/isArray.ts +0 -3
- package/src/core/lib/isRecord.ts +0 -3
- package/src/core/types.ts +0 -57
- package/src/hooks/useClickOutsideEvent.test.tsx +0 -114
- package/src/hooks/useClickOutsideEvent.ts +0 -66
- package/src/hooks/useCustomValidity.ts +0 -13
- package/src/hooks/useElementSize.ts +0 -19
- package/src/hooks/useGlobalKeyDown.ts +0 -23
- package/src/hooks/useMatchMedia.ts +0 -28
- package/src/hooks/useMediaIndex/__workshop__/Test.tsx +0 -14
- package/src/hooks/useMediaIndex/__workshop__/index.ts +0 -16
- package/src/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -21
- package/src/hooks/useMediaIndex/useMediaIndex.ts +0 -111
- package/src/hooks/useMounted.ts +0 -15
- package/src/hooks/usePrefersDark.hydration.test.tsx +0 -56
- package/src/hooks/usePrefersDark.test.tsx +0 -20
- package/src/hooks/usePrefersDark.ts +0 -16
- package/src/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -56
- package/src/hooks/usePrefersReducedMotion.test.tsx +0 -20
- package/src/hooks/usePrefersReducedMotion.ts +0 -16
- package/src/hooks/useResponsiveProp.ts +0 -14
- package/src/hooks/useUnique.ts +0 -54
- package/src/middleware/origin.ts +0 -47
- package/src/observers/elementSize.ts +0 -114
- package/src/primitives/_syntax/LazySyntax.tsx +0 -4
- package/src/primitives/_syntax/Syntax.tsx +0 -26
- package/src/primitives/avatar/Avatar.tsx +0 -145
- package/src/primitives/avatar/AvatarCounter.tsx +0 -69
- package/src/primitives/avatar/AvatarStack.tsx +0 -77
- package/src/primitives/avatar/__workshop__/AsButton.tsx +0 -12
- package/src/primitives/avatar/__workshop__/PropsStory.tsx +0 -24
- package/src/primitives/avatar/__workshop__/Stack.tsx +0 -27
- package/src/primitives/avatar/__workshop__/WithinButton.tsx +0 -51
- package/src/primitives/avatar/__workshop__/WithinMenuItem.tsx +0 -52
- package/src/primitives/avatar/__workshop__/index.ts +0 -36
- package/src/primitives/avatar/types.ts +0 -2
- package/src/primitives/badge/Badge.test.tsx +0 -16
- package/src/primitives/badge/Badge.tsx +0 -53
- package/src/primitives/badge/__workshop__/Props.tsx +0 -27
- package/src/primitives/badge/__workshop__/Tones.tsx +0 -15
- package/src/primitives/badge/__workshop__/index.ts +0 -26
- package/src/primitives/badge/__workshop__/within-button.tsx +0 -36
- package/src/primitives/box/Box.tsx +0 -73
- package/src/primitives/box/__workshop__/Props.tsx +0 -26
- package/src/primitives/box/__workshop__/Responsive.tsx +0 -19
- package/src/primitives/box/__workshop__/index.ts +0 -21
- package/src/primitives/button/Button.test.tsx +0 -30
- package/src/primitives/button/Button.tsx +0 -148
- package/src/primitives/button/__workshop__/Custom.tsx +0 -39
- package/src/primitives/button/__workshop__/CustomIcons.tsx +0 -37
- package/src/primitives/button/__workshop__/DataProps.tsx +0 -18
- package/src/primitives/button/__workshop__/Disabled.tsx +0 -43
- package/src/primitives/button/__workshop__/MixedChildren.tsx +0 -12
- package/src/primitives/button/__workshop__/Props.tsx +0 -60
- package/src/primitives/button/__workshop__/Stacked.tsx +0 -60
- package/src/primitives/button/__workshop__/Styled1.css.ts +0 -7
- package/src/primitives/button/__workshop__/Styled1.tsx +0 -11
- package/src/primitives/button/__workshop__/TextOverflow.tsx +0 -17
- package/src/primitives/button/__workshop__/UploadButton.tsx +0 -28
- package/src/primitives/button/__workshop__/index.ts +0 -61
- package/src/primitives/button/types.ts +0 -2
- package/src/primitives/card/Card.tsx +0 -124
- package/src/primitives/card/CardContext.ts +0 -10
- package/src/primitives/card/CardInternalContext.ts +0 -10
- package/src/primitives/card/CardInternalProvider.tsx +0 -15
- package/src/primitives/card/CardProvider.tsx +0 -16
- package/src/primitives/card/__workshop__/AsButton.tsx +0 -103
- package/src/primitives/card/__workshop__/AsComponent.tsx +0 -25
- package/src/primitives/card/__workshop__/Checkered.tsx +0 -25
- package/src/primitives/card/__workshop__/DataProps.tsx +0 -25
- package/src/primitives/card/__workshop__/Interactive.tsx +0 -29
- package/src/primitives/card/__workshop__/ListNavigation.tsx +0 -78
- package/src/primitives/card/__workshop__/Props.tsx +0 -59
- package/src/primitives/card/__workshop__/Selected.tsx +0 -62
- package/src/primitives/card/__workshop__/Styled.tsx +0 -11
- package/src/primitives/card/__workshop__/Tones.tsx +0 -26
- package/src/primitives/card/__workshop__/index.ts +0 -21
- package/src/primitives/card/types.ts +0 -21
- package/src/primitives/card/useCard.ts +0 -20
- package/src/primitives/checkbox/Checkbox.tsx +0 -80
- package/src/primitives/checkbox/__workshop__/Example.tsx +0 -25
- package/src/primitives/checkbox/__workshop__/Props.tsx +0 -35
- package/src/primitives/checkbox/__workshop__/ReadOnly.tsx +0 -16
- package/src/primitives/checkbox/__workshop__/Tones.tsx +0 -26
- package/src/primitives/checkbox/__workshop__/index.ts +0 -15
- package/src/primitives/code/Code.tsx +0 -47
- package/src/primitives/code/__workshop__/OpticalAlignment.tsx +0 -25
- package/src/primitives/code/__workshop__/Props.tsx +0 -20
- package/src/primitives/code/__workshop__/index.ts +0 -21
- package/src/primitives/container/Container.tsx +0 -43
- package/src/primitives/container/__workshop__/Example.tsx +0 -16
- package/src/primitives/container/__workshop__/index.ts +0 -16
- package/src/primitives/container/types.ts +0 -6
- package/src/primitives/flex/Flex.tsx +0 -38
- package/src/primitives/flex/__workshop__/Example.tsx +0 -26
- package/src/primitives/flex/__workshop__/Gap.tsx +0 -25
- package/src/primitives/flex/__workshop__/index.ts +0 -13
- package/src/primitives/flex/__workshop__/styles.css.ts +0 -12
- package/src/primitives/grid/Grid.tsx +0 -38
- package/src/primitives/grid/__workshop__/Responsive.tsx +0 -54
- package/src/primitives/grid/__workshop__/index.ts +0 -12
- package/src/primitives/heading/Heading.tsx +0 -68
- package/src/primitives/heading/__workshop__/OpticalAlignment.tsx +0 -27
- package/src/primitives/heading/__workshop__/Plain.tsx +0 -25
- package/src/primitives/heading/__workshop__/index.ts +0 -21
- package/src/primitives/inline/Inline.tsx +0 -37
- package/src/primitives/inline/__workshop__/Plain.tsx +0 -22
- package/src/primitives/inline/__workshop__/index.ts +0 -10
- package/src/primitives/kbd/Kbd.tsx +0 -36
- package/src/primitives/kbd/__workshop__/Plain.tsx +0 -9
- package/src/primitives/kbd/__workshop__/index.ts +0 -10
- package/src/primitives/label/Label.tsx +0 -67
- package/src/primitives/label/__workshop__/OpticalAlignment.tsx +0 -27
- package/src/primitives/label/__workshop__/Plain.tsx +0 -27
- package/src/primitives/label/__workshop__/index.ts +0 -21
- package/src/primitives/layer/Layer.test.tsx +0 -110
- package/src/primitives/layer/Layer.tsx +0 -35
- package/src/primitives/layer/LayerCard.tsx +0 -90
- package/src/primitives/layer/LayerContext.ts +0 -7
- package/src/primitives/layer/LayerProvider.tsx +0 -106
- package/src/primitives/layer/__workshop__/MultipleRoots.tsx +0 -49
- package/src/primitives/layer/__workshop__/Nested.tsx +0 -107
- package/src/primitives/layer/__workshop__/ResponsiveZOffset.tsx +0 -17
- package/src/primitives/layer/__workshop__/_debug.tsx +0 -17
- package/src/primitives/layer/__workshop__/index.ts +0 -26
- package/src/primitives/layer/getLayerContext.test.ts +0 -32
- package/src/primitives/layer/getLayerContext.ts +0 -21
- package/src/primitives/layer/types.ts +0 -9
- package/src/primitives/layer/useLayer.ts +0 -24
- package/src/primitives/popover/Popover.tsx +0 -291
- package/src/primitives/popover/PopoverLayer.tsx +0 -101
- package/src/primitives/popover/__workshop__/AlignedStory.tsx +0 -75
- package/src/primitives/popover/__workshop__/MarginsStory.tsx +0 -31
- package/src/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -32
- package/src/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -11
- package/src/primitives/popover/__workshop__/PlainStory.tsx +0 -67
- package/src/primitives/popover/__workshop__/RecursiveStory.tsx +0 -71
- package/src/primitives/popover/__workshop__/SidePanelStory.tsx +0 -95
- package/src/primitives/popover/__workshop__/TestStory.tsx +0 -97
- package/src/primitives/popover/__workshop__/index.ts +0 -56
- package/src/primitives/popover/__workshop__/portal-inheritance.tsx +0 -15
- package/src/primitives/popover/constants.ts +0 -20
- package/src/primitives/popover/floating-ui/size.ts +0 -75
- package/src/primitives/popover/types.ts +0 -12
- package/src/primitives/popover/useMiddleware.ts +0 -126
- package/src/primitives/radio/Radio.tsx +0 -64
- package/src/primitives/radio/__workshop__/Example.tsx +0 -63
- package/src/primitives/radio/__workshop__/Plain.tsx +0 -28
- package/src/primitives/radio/__workshop__/index.ts +0 -13
- package/src/primitives/select/Select.tsx +0 -76
- package/src/primitives/select/__workshop__/Plain.tsx +0 -37
- package/src/primitives/select/__workshop__/ReadOnly.tsx +0 -23
- package/src/primitives/select/__workshop__/index.ts +0 -13
- package/src/primitives/selectable/Selectable.tsx +0 -48
- package/src/primitives/selectable/__workshop__/DataProps.tsx +0 -24
- package/src/primitives/selectable/__workshop__/as-link.tsx +0 -13
- package/src/primitives/selectable/__workshop__/index.ts +0 -19
- package/src/primitives/skeleton/CodeSkeleton.tsx +0 -49
- package/src/primitives/skeleton/HeadingSkeleton.tsx +0 -48
- package/src/primitives/skeleton/LabelSkeleton.tsx +0 -47
- package/src/primitives/skeleton/Skeleton.tsx +0 -70
- package/src/primitives/skeleton/TextSkeleton.tsx +0 -49
- package/src/primitives/skeleton/__workshop__/Delay.tsx +0 -69
- package/src/primitives/skeleton/__workshop__/Skeleton.tsx +0 -63
- package/src/primitives/skeleton/__workshop__/index.ts +0 -13
- package/src/primitives/spinner/Spinner.tsx +0 -45
- package/src/primitives/spinner/SpinnerAnimatedIcon.tsx +0 -14
- package/src/primitives/spinner/__workshop__/Props.tsx +0 -13
- package/src/primitives/spinner/__workshop__/index.ts +0 -16
- package/src/primitives/srOnly/SrOnly.tsx +0 -33
- package/src/primitives/stack/Stack.tsx +0 -38
- package/src/primitives/stack/__workshop__/Plain.tsx +0 -30
- package/src/primitives/stack/__workshop__/index.ts +0 -16
- package/src/primitives/switch/Switch.tsx +0 -76
- package/src/primitives/switch/__workshop__/Example.tsx +0 -25
- package/src/primitives/switch/__workshop__/Props.tsx +0 -23
- package/src/primitives/switch/__workshop__/index.ts +0 -13
- package/src/primitives/text/InlineCode.tsx +0 -25
- package/src/primitives/text/Text.tsx +0 -68
- package/src/primitives/text/__workshop__/Example.tsx +0 -26
- package/src/primitives/text/__workshop__/OpticalAlignment.tsx +0 -27
- package/src/primitives/text/__workshop__/index.ts +0 -26
- package/src/primitives/text/__workshop__/inline-code.tsx +0 -13
- package/src/primitives/textArea/TextArea.tsx +0 -97
- package/src/primitives/textArea/__workshop__/Plain.tsx +0 -46
- package/src/primitives/textArea/__workshop__/index.ts +0 -16
- package/src/primitives/textInput/TextInput.tsx +0 -279
- package/src/primitives/textInput/__workshop__/ClearButton.tsx +0 -32
- package/src/primitives/textInput/__workshop__/CustomValidity.tsx +0 -17
- package/src/primitives/textInput/__workshop__/Plain.tsx +0 -102
- package/src/primitives/textInput/__workshop__/ReadOnly.tsx +0 -14
- package/src/primitives/textInput/__workshop__/States.tsx +0 -53
- package/src/primitives/textInput/__workshop__/Tones.tsx +0 -40
- package/src/primitives/textInput/__workshop__/Typed.tsx +0 -23
- package/src/primitives/textInput/__workshop__/index.ts +0 -46
- package/src/primitives/tooltip/Tooltip.test.tsx +0 -496
- package/src/primitives/tooltip/Tooltip.tsx +0 -546
- package/src/primitives/tooltip/TooltipLayer.tsx +0 -72
- package/src/primitives/tooltip/__workshop__/CustomPortal.tsx +0 -102
- package/src/primitives/tooltip/__workshop__/OverflowingBoundary.tsx +0 -74
- package/src/primitives/tooltip/__workshop__/Props.tsx +0 -107
- package/src/primitives/tooltip/__workshop__/ResizableBoundary.tsx +0 -91
- package/src/primitives/tooltip/__workshop__/index.ts +0 -31
- package/src/primitives/tooltip/constants.ts +0 -24
- package/src/primitives/tooltip/tooltipDelayGroup/TooltipDelayGroupContext.tsx +0 -13
- package/src/primitives/tooltip/tooltipDelayGroup/TooltipDelayGroupProvider.tsx +0 -96
- package/src/primitives/tooltip/tooltipDelayGroup/types.ts +0 -7
- package/src/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -13
- package/src/root/Root.tsx +0 -93
- package/src/root/RootProvider.tsx +0 -37
- package/src/root/__workshop__/Boundary.tsx +0 -43
- package/src/root/__workshop__/index.ts +0 -24
- package/src/root/__workshop__/primitives.tsx +0 -49
- package/src/root/__workshop__/tone-inheritance.tsx +0 -65
- package/src/utils/ErrorBoundary.tsx +0 -50
- package/src/utils/boundaryElement/BoundaryElementContext.ts +0 -7
- package/src/utils/boundaryElement/BoundaryElementProvider.tsx +0 -16
- package/src/utils/boundaryElement/__workshop__/Plain.tsx +0 -49
- package/src/utils/boundaryElement/__workshop__/index.ts +0 -16
- package/src/utils/boundaryElement/types.ts +0 -2
- package/src/utils/boundaryElement/useBoundaryElement.ts +0 -12
- package/src/utils/elementQuery/ElementQuery.tsx +0 -75
- package/src/utils/elementQuery/__workshop__/CustomMedia.tsx +0 -19
- package/src/utils/elementQuery/__workshop__/index.ts +0 -16
- package/src/utils/elementQuery/__workshop__/styles.css.ts +0 -31
- package/src/utils/elementQuery/helpers.ts +0 -27
- package/src/utils/portal/Portal.test.tsx +0 -105
- package/src/utils/portal/Portal.tsx +0 -42
- package/src/utils/portal/PortalContext.ts +0 -37
- package/src/utils/portal/PortalProvider.tsx +0 -38
- package/src/utils/portal/__workshop__/Named.tsx +0 -69
- package/src/utils/portal/__workshop__/index.ts +0 -16
- package/src/utils/portal/types.ts +0 -7
- package/src/utils/portal/usePortal.ts +0 -30
|
@@ -0,0 +1,929 @@
|
|
|
1
|
+
import * as CSS from "csstype";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
interface RGB {
|
|
6
|
+
r: number;
|
|
7
|
+
g: number;
|
|
8
|
+
b: number;
|
|
9
|
+
a?: undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
interface RGBA {
|
|
15
|
+
r: number;
|
|
16
|
+
g: number;
|
|
17
|
+
b: number;
|
|
18
|
+
a: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
interface HSL {
|
|
24
|
+
h: number;
|
|
25
|
+
s: number;
|
|
26
|
+
l: number;
|
|
27
|
+
}
|
|
28
|
+
/** @public */
|
|
29
|
+
declare const THEME_COLOR_SCHEMES: readonly ['light', 'dark'];
|
|
30
|
+
/** @public */
|
|
31
|
+
declare const THEME_COLOR_BLEND_MODES: readonly ['multiply', 'screen'];
|
|
32
|
+
/** @public */
|
|
33
|
+
declare const THEME_COLOR_CARD_TONES: readonly ['transparent', 'default', 'neutral', 'primary', 'suggest', 'positive', 'caution', 'critical'];
|
|
34
|
+
/** @public */
|
|
35
|
+
declare const THEME_COLOR_STATE_TONES: readonly ['default', 'neutral', 'primary', 'suggest', 'positive', 'caution', 'critical'];
|
|
36
|
+
/** @public */
|
|
37
|
+
declare const THEME_COLOR_STATES: readonly ['enabled', 'hovered', 'pressed', 'selected', 'disabled'];
|
|
38
|
+
/** @public */
|
|
39
|
+
declare const THEME_COLOR_BUTTON_MODES: readonly ['default', 'ghost', 'bleed'];
|
|
40
|
+
/** @public */
|
|
41
|
+
declare const THEME_COLOR_INPUT_MODES: readonly ['default', 'invalid'];
|
|
42
|
+
/** @public */
|
|
43
|
+
declare const THEME_COLOR_INPUT_STATES: readonly ['enabled', 'hovered', 'readOnly', 'disabled'];
|
|
44
|
+
/** @public */
|
|
45
|
+
declare const THEME_COLOR_AVATAR_COLORS: import("@sanity/color").ColorHueKey[];
|
|
46
|
+
/**
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
type ThemeColorSchemeKey = (typeof THEME_COLOR_SCHEMES)[number];
|
|
50
|
+
/** @public */
|
|
51
|
+
type ThemeColorBlendModeKey = (typeof THEME_COLOR_BLEND_MODES)[number];
|
|
52
|
+
/** @public */
|
|
53
|
+
type ThemeColorCardToneKey = (typeof THEME_COLOR_CARD_TONES)[number];
|
|
54
|
+
/** @public */
|
|
55
|
+
type ThemeColorButtonModeKey = (typeof THEME_COLOR_BUTTON_MODES)[number];
|
|
56
|
+
/** @public */
|
|
57
|
+
type ThemeColorStateKey = (typeof THEME_COLOR_STATES)[number];
|
|
58
|
+
/** @public */
|
|
59
|
+
type ThemeColorStateToneKey = (typeof THEME_COLOR_STATE_TONES)[number];
|
|
60
|
+
/** @public */
|
|
61
|
+
type ThemeColorInputModeKey = (typeof THEME_COLOR_INPUT_MODES)[number];
|
|
62
|
+
/** @public */
|
|
63
|
+
type ThemeColorInputStateKey = (typeof THEME_COLOR_INPUT_STATES)[number];
|
|
64
|
+
/** @public */
|
|
65
|
+
type ThemeColorAvatarColorKey = (typeof THEME_COLOR_AVATAR_COLORS)[number];
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
interface ThemeColorSyntax {
|
|
70
|
+
atrule: string;
|
|
71
|
+
attrName: string;
|
|
72
|
+
attrValue: string;
|
|
73
|
+
attribute: string;
|
|
74
|
+
boolean: string;
|
|
75
|
+
builtin: string;
|
|
76
|
+
cdata: string;
|
|
77
|
+
char: string;
|
|
78
|
+
class: string;
|
|
79
|
+
className: string;
|
|
80
|
+
comment: string;
|
|
81
|
+
constant: string;
|
|
82
|
+
deleted: string;
|
|
83
|
+
doctype: string;
|
|
84
|
+
entity: string;
|
|
85
|
+
function: string;
|
|
86
|
+
hexcode: string;
|
|
87
|
+
id: string;
|
|
88
|
+
important: string;
|
|
89
|
+
inserted: string;
|
|
90
|
+
keyword: string;
|
|
91
|
+
number: string;
|
|
92
|
+
operator: string;
|
|
93
|
+
prolog: string;
|
|
94
|
+
property: string;
|
|
95
|
+
pseudoClass: string;
|
|
96
|
+
pseudoElement: string;
|
|
97
|
+
punctuation: string;
|
|
98
|
+
regex: string;
|
|
99
|
+
selector: string;
|
|
100
|
+
string: string;
|
|
101
|
+
symbol: string;
|
|
102
|
+
tag: string;
|
|
103
|
+
unit: string;
|
|
104
|
+
url: string;
|
|
105
|
+
variable: string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
type ThemeFontKey = 'code' | 'heading' | 'label' | 'text';
|
|
111
|
+
/**
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
interface ThemeFontSize {
|
|
119
|
+
ascenderHeight: number;
|
|
120
|
+
descenderHeight: number;
|
|
121
|
+
fontSize: number;
|
|
122
|
+
iconSize: number;
|
|
123
|
+
letterSpacing: number;
|
|
124
|
+
lineHeight: number;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
interface ThemeFontWeight {
|
|
130
|
+
regular: number;
|
|
131
|
+
medium: number;
|
|
132
|
+
semibold: number;
|
|
133
|
+
bold: number;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
interface ThemeFont {
|
|
139
|
+
family: string;
|
|
140
|
+
weights: ThemeFontWeight;
|
|
141
|
+
sizes: ThemeFontSize[];
|
|
142
|
+
/** @deprecated No longer supported. */
|
|
143
|
+
horizontalOffset?: number;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
interface ThemeFonts {
|
|
149
|
+
code: ThemeFont;
|
|
150
|
+
heading: ThemeFont;
|
|
151
|
+
label: ThemeFont;
|
|
152
|
+
text: ThemeFont;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
interface ThemeLayer {
|
|
158
|
+
dialog: {
|
|
159
|
+
zOffset: number;
|
|
160
|
+
};
|
|
161
|
+
popover: {
|
|
162
|
+
zOffset: number;
|
|
163
|
+
};
|
|
164
|
+
tooltip: {
|
|
165
|
+
zOffset: number;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
type ThemeBoxShadow = [number, number, number, number];
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
interface ThemeShadow {
|
|
176
|
+
umbra: ThemeBoxShadow;
|
|
177
|
+
penumbra: ThemeBoxShadow;
|
|
178
|
+
ambient: ThemeBoxShadow;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* A CSS-in-JS style object: standard CSS properties plus an index signature that allows nested
|
|
182
|
+
* selectors, at-rules and custom properties.
|
|
183
|
+
*
|
|
184
|
+
* This is a self-owned definition (based on `csstype`) so the published `.d.ts` types stay fully
|
|
185
|
+
* controlled by us and do not reference any external CSS-in-JS library types.
|
|
186
|
+
*
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
interface CSSObject extends CSS.Properties<number | (string & {})> {
|
|
190
|
+
[key: string]: CSSObject | string | number | undefined;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
interface ThemeStyles {
|
|
196
|
+
button?: {
|
|
197
|
+
root?: CSSObject;
|
|
198
|
+
};
|
|
199
|
+
card?: {
|
|
200
|
+
root?: CSSObject;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* @public
|
|
205
|
+
*/
|
|
206
|
+
interface ThemeFocusRing {
|
|
207
|
+
offset: number;
|
|
208
|
+
width: number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
interface ThemeAvatar_v2 {
|
|
214
|
+
sizes: {
|
|
215
|
+
/** Spacing between avatars in an <AvatarStack> component (px) */
|
|
216
|
+
distance: number;
|
|
217
|
+
/** Diameter of the avatar (px) */
|
|
218
|
+
size: number;
|
|
219
|
+
}[];
|
|
220
|
+
focusRing: ThemeFocusRing;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
interface ThemeColorAvatarHue_v2 {
|
|
226
|
+
_blend?: ThemeColorBlendModeKey;
|
|
227
|
+
bg: string;
|
|
228
|
+
fg: string;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
type ThemeColorAvatar_v2 = Record<ThemeColorAvatarColorKey, ThemeColorAvatarHue_v2>;
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
*/
|
|
237
|
+
interface ThemeColorBadgeTone_v2 {
|
|
238
|
+
bg: string;
|
|
239
|
+
fg: string;
|
|
240
|
+
dot: string;
|
|
241
|
+
icon: string;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
type ThemeColorBadge_v2 = Record<ThemeColorStateToneKey, ThemeColorBadgeTone_v2>;
|
|
247
|
+
/**
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
interface ThemeColorKBD {
|
|
251
|
+
bg: string;
|
|
252
|
+
fg: string;
|
|
253
|
+
border: string;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @public
|
|
257
|
+
*/
|
|
258
|
+
interface ThemeColorState_v2 {
|
|
259
|
+
/** @internal */
|
|
260
|
+
_blend?: ThemeColorBlendModeKey;
|
|
261
|
+
accent: {
|
|
262
|
+
fg: string;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* @internal This may be removed in a future release
|
|
266
|
+
* */
|
|
267
|
+
avatar: ThemeColorAvatar_v2;
|
|
268
|
+
/**
|
|
269
|
+
* @internal This may be removed in a future release
|
|
270
|
+
* */
|
|
271
|
+
badge: ThemeColorBadge_v2;
|
|
272
|
+
bg: string;
|
|
273
|
+
border: string;
|
|
274
|
+
code: {
|
|
275
|
+
bg: string;
|
|
276
|
+
fg: string;
|
|
277
|
+
};
|
|
278
|
+
fg: string;
|
|
279
|
+
icon: string;
|
|
280
|
+
kbd: ThemeColorKBD;
|
|
281
|
+
link: {
|
|
282
|
+
fg: string;
|
|
283
|
+
};
|
|
284
|
+
muted: {
|
|
285
|
+
bg: string;
|
|
286
|
+
fg: string;
|
|
287
|
+
};
|
|
288
|
+
skeleton: {
|
|
289
|
+
from: string;
|
|
290
|
+
to: string;
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
type ThemeColorButtonTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>;
|
|
297
|
+
/**
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
type ThemeColorButtonMode_v2 = Record<ThemeColorStateToneKey, ThemeColorButtonTone_v2>;
|
|
301
|
+
/**
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
type ThemeColorButton_v2 = Record<ThemeColorButtonModeKey, ThemeColorButtonMode_v2>;
|
|
305
|
+
/**
|
|
306
|
+
* @public
|
|
307
|
+
*/
|
|
308
|
+
interface ThemeColorInputState_v2 {
|
|
309
|
+
_blend?: ThemeColorBlendModeKey;
|
|
310
|
+
bg: string;
|
|
311
|
+
border: string;
|
|
312
|
+
fg: string;
|
|
313
|
+
muted: {
|
|
314
|
+
bg: string;
|
|
315
|
+
};
|
|
316
|
+
placeholder: string;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
type ThemeColorInputMode_v2 = Record<ThemeColorInputStateKey, ThemeColorInputState_v2>;
|
|
322
|
+
/**
|
|
323
|
+
* @public
|
|
324
|
+
*/
|
|
325
|
+
type ThemeColorInput_v2 = Record<ThemeColorInputModeKey, ThemeColorInputMode_v2>;
|
|
326
|
+
/**
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
type ThemeColorSelectableTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>;
|
|
330
|
+
/**
|
|
331
|
+
* @public
|
|
332
|
+
*/
|
|
333
|
+
type ThemeColorSelectable_v2 = Record<ThemeColorStateToneKey, ThemeColorSelectableTone_v2>;
|
|
334
|
+
/** @public */
|
|
335
|
+
interface ThemeColorShadow {
|
|
336
|
+
outline: string;
|
|
337
|
+
umbra: string;
|
|
338
|
+
penumbra: string;
|
|
339
|
+
ambient: string;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* @public
|
|
343
|
+
*/
|
|
344
|
+
interface ThemeColorCard_v2 extends ThemeColorState_v2 {
|
|
345
|
+
/** @internal */
|
|
346
|
+
_blend: ThemeColorBlendModeKey;
|
|
347
|
+
_dark: boolean;
|
|
348
|
+
backdrop: string;
|
|
349
|
+
button: ThemeColorButton_v2;
|
|
350
|
+
focusRing: string;
|
|
351
|
+
input: ThemeColorInput_v2;
|
|
352
|
+
selectable: ThemeColorSelectable_v2;
|
|
353
|
+
shadow: ThemeColorShadow;
|
|
354
|
+
syntax: ThemeColorSyntax;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @public
|
|
358
|
+
*/
|
|
359
|
+
type ThemeColorScheme_v2 = Record<ThemeColorCardToneKey, ThemeColorCard_v2>;
|
|
360
|
+
/**
|
|
361
|
+
* @public
|
|
362
|
+
*/
|
|
363
|
+
type ThemeColorSchemes_v2 = Record<ThemeColorSchemeKey, ThemeColorScheme_v2>;
|
|
364
|
+
/**
|
|
365
|
+
* @public
|
|
366
|
+
*/
|
|
367
|
+
interface ThemeInput_v2 {
|
|
368
|
+
checkbox: {
|
|
369
|
+
size: number;
|
|
370
|
+
focusRing: ThemeFocusRing;
|
|
371
|
+
};
|
|
372
|
+
radio: {
|
|
373
|
+
size: number;
|
|
374
|
+
markSize: number;
|
|
375
|
+
focusRing: ThemeFocusRing;
|
|
376
|
+
};
|
|
377
|
+
switch: {
|
|
378
|
+
width: number;
|
|
379
|
+
height: number;
|
|
380
|
+
padding: number;
|
|
381
|
+
transitionDurationMs: number;
|
|
382
|
+
transitionTimingFunction: string;
|
|
383
|
+
focusRing: ThemeFocusRing;
|
|
384
|
+
};
|
|
385
|
+
border: {
|
|
386
|
+
width: number;
|
|
387
|
+
};
|
|
388
|
+
select: {
|
|
389
|
+
focusRing: ThemeFocusRing;
|
|
390
|
+
};
|
|
391
|
+
text: {
|
|
392
|
+
focusRing: ThemeFocusRing;
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @public
|
|
397
|
+
* @deprecated Use `ThemeAvatar_v2` from `@sanity/ui/theme` instead.
|
|
398
|
+
*/
|
|
399
|
+
interface ThemeAvatar {
|
|
400
|
+
sizes: {
|
|
401
|
+
distance: number;
|
|
402
|
+
size: number;
|
|
403
|
+
}[];
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* @public
|
|
407
|
+
* @deprecated Use `ThemeColorState_v2` instead.
|
|
408
|
+
*/
|
|
409
|
+
interface ThemeColorGenericState {
|
|
410
|
+
/** @internal */
|
|
411
|
+
_blend?: ThemeColorBlendModeKey;
|
|
412
|
+
bg: string;
|
|
413
|
+
/**
|
|
414
|
+
* @beta
|
|
415
|
+
*/
|
|
416
|
+
bg2?: string;
|
|
417
|
+
border: string;
|
|
418
|
+
fg: string;
|
|
419
|
+
icon: string;
|
|
420
|
+
muted: {
|
|
421
|
+
fg: string;
|
|
422
|
+
};
|
|
423
|
+
accent: {
|
|
424
|
+
fg: string;
|
|
425
|
+
};
|
|
426
|
+
link: {
|
|
427
|
+
fg: string;
|
|
428
|
+
};
|
|
429
|
+
code: {
|
|
430
|
+
bg: string;
|
|
431
|
+
fg: string;
|
|
432
|
+
};
|
|
433
|
+
skeleton?: {
|
|
434
|
+
from: string;
|
|
435
|
+
to: string;
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* @public
|
|
440
|
+
* @deprecated Use `ThemeColorCardToneKey` instead.
|
|
441
|
+
*/
|
|
442
|
+
type ThemeColorName = 'transparent' | 'default' | 'primary' | 'positive' | 'caution' | 'critical';
|
|
443
|
+
/**
|
|
444
|
+
* @public
|
|
445
|
+
* @deprecated Use `ThemeColorCardToneKey` instead.
|
|
446
|
+
*/
|
|
447
|
+
type ThemeColorToneKey = ThemeColorName;
|
|
448
|
+
/**
|
|
449
|
+
* @public
|
|
450
|
+
* @deprecated Use `ThemeColorCard_v2` instead.
|
|
451
|
+
*/
|
|
452
|
+
interface ThemeColorBase {
|
|
453
|
+
bg: string;
|
|
454
|
+
fg: string;
|
|
455
|
+
border: string;
|
|
456
|
+
focusRing: string;
|
|
457
|
+
backdrop?: string;
|
|
458
|
+
shadow: {
|
|
459
|
+
outline: string;
|
|
460
|
+
umbra: string;
|
|
461
|
+
penumbra: string;
|
|
462
|
+
ambient: string;
|
|
463
|
+
};
|
|
464
|
+
skeleton?: {
|
|
465
|
+
from: string;
|
|
466
|
+
to: string;
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* @public
|
|
471
|
+
* @deprecated Use `ThemeColorState_v2` instead.
|
|
472
|
+
*/
|
|
473
|
+
type ThemeColorButtonState = ThemeColorGenericState;
|
|
474
|
+
/**
|
|
475
|
+
* @public
|
|
476
|
+
* @deprecated Use `ThemeColorButtonStates_v2` instead.
|
|
477
|
+
*/
|
|
478
|
+
interface ThemeColorButtonStates {
|
|
479
|
+
enabled: ThemeColorGenericState;
|
|
480
|
+
hovered: ThemeColorGenericState;
|
|
481
|
+
pressed: ThemeColorGenericState;
|
|
482
|
+
selected: ThemeColorGenericState;
|
|
483
|
+
disabled: ThemeColorGenericState;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* TODO: Rename to `ThemeColorButtonMode`.
|
|
487
|
+
* @public
|
|
488
|
+
* @deprecated Use `ThemeColorButtonTones_v2` instead.
|
|
489
|
+
*/
|
|
490
|
+
interface ThemeColorButtonTones {
|
|
491
|
+
default: ThemeColorButtonStates;
|
|
492
|
+
primary: ThemeColorButtonStates;
|
|
493
|
+
positive: ThemeColorButtonStates;
|
|
494
|
+
caution: ThemeColorButtonStates;
|
|
495
|
+
critical: ThemeColorButtonStates;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @public
|
|
499
|
+
* @deprecated Use `ThemeColorButton_v2` instead.
|
|
500
|
+
*/
|
|
501
|
+
interface ThemeColorButton {
|
|
502
|
+
default: ThemeColorButtonTones;
|
|
503
|
+
ghost: ThemeColorButtonTones;
|
|
504
|
+
bleed: ThemeColorButtonTones;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* @public
|
|
508
|
+
* @deprecated Use `ThemeColorState_v2` instead.
|
|
509
|
+
*/
|
|
510
|
+
type ThemeColorCardState = ThemeColorGenericState;
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
* @deprecated Use `ThemeColorSelectable_v2` instead.
|
|
514
|
+
*/
|
|
515
|
+
interface ThemeColorCard {
|
|
516
|
+
enabled: ThemeColorGenericState;
|
|
517
|
+
hovered: ThemeColorGenericState;
|
|
518
|
+
pressed: ThemeColorGenericState;
|
|
519
|
+
selected: ThemeColorGenericState;
|
|
520
|
+
disabled: ThemeColorGenericState;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @public
|
|
524
|
+
* @deprecated Use `ThemeColorInputState_v2` instead.
|
|
525
|
+
*/
|
|
526
|
+
interface ThemeColorInputState {
|
|
527
|
+
_blend?: ThemeColorBlendModeKey;
|
|
528
|
+
bg: string;
|
|
529
|
+
bg2: string;
|
|
530
|
+
border: string;
|
|
531
|
+
fg: string;
|
|
532
|
+
placeholder: string;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @public
|
|
536
|
+
* @deprecated Use `ThemeColorInputMode_v2` instead.
|
|
537
|
+
*/
|
|
538
|
+
interface ThemeColorInputStates {
|
|
539
|
+
enabled: ThemeColorInputState;
|
|
540
|
+
disabled: ThemeColorInputState;
|
|
541
|
+
hovered: ThemeColorInputState;
|
|
542
|
+
readOnly: ThemeColorInputState;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* @public
|
|
546
|
+
* @deprecated Use `ThemeColorInput_v2` instead.
|
|
547
|
+
*/
|
|
548
|
+
interface ThemeColorInput {
|
|
549
|
+
default: ThemeColorInputStates;
|
|
550
|
+
invalid: ThemeColorInputStates;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* @public
|
|
554
|
+
* @deprecated Use `ThemeColorSelectableTone_v2` instead.
|
|
555
|
+
*/
|
|
556
|
+
interface ThemeColorMutedTone {
|
|
557
|
+
enabled: ThemeColorGenericState;
|
|
558
|
+
disabled: ThemeColorGenericState;
|
|
559
|
+
hovered: ThemeColorGenericState;
|
|
560
|
+
pressed: ThemeColorGenericState;
|
|
561
|
+
selected: ThemeColorGenericState;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* @public
|
|
565
|
+
* @deprecated Use `ThemeColorSelectable_v2` instead.
|
|
566
|
+
*/
|
|
567
|
+
interface ThemeColorMuted {
|
|
568
|
+
default: ThemeColorMutedTone;
|
|
569
|
+
transparent: ThemeColorMutedTone;
|
|
570
|
+
primary: ThemeColorMutedTone;
|
|
571
|
+
positive: ThemeColorMutedTone;
|
|
572
|
+
caution: ThemeColorMutedTone;
|
|
573
|
+
critical: ThemeColorMutedTone;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @public
|
|
577
|
+
* @deprecated Use `ThemeColorState_v2` instead.
|
|
578
|
+
*/
|
|
579
|
+
type ThemeColorSelectableState = ThemeColorGenericState;
|
|
580
|
+
/**
|
|
581
|
+
* @public
|
|
582
|
+
* @deprecated Use `ThemeColorSelectableStates_v2` instead.
|
|
583
|
+
*/
|
|
584
|
+
interface ThemeColorSelectableStates {
|
|
585
|
+
enabled: ThemeColorSelectableState;
|
|
586
|
+
hovered: ThemeColorSelectableState;
|
|
587
|
+
pressed: ThemeColorSelectableState;
|
|
588
|
+
selected: ThemeColorSelectableState;
|
|
589
|
+
disabled: ThemeColorSelectableState;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* @public
|
|
593
|
+
* @deprecated Use `ThemeColorSelectable_v2` instead.
|
|
594
|
+
*/
|
|
595
|
+
interface ThemeColorSelectable {
|
|
596
|
+
default: ThemeColorSelectableStates;
|
|
597
|
+
primary: ThemeColorSelectableStates;
|
|
598
|
+
positive: ThemeColorSelectableStates;
|
|
599
|
+
caution: ThemeColorSelectableStates;
|
|
600
|
+
critical: ThemeColorSelectableStates;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* @public
|
|
604
|
+
* @deprecated Use `ThemeColorSelectableTone_v2` instead.
|
|
605
|
+
*/
|
|
606
|
+
interface ThemeColorSolidTone {
|
|
607
|
+
enabled: ThemeColorGenericState;
|
|
608
|
+
disabled: ThemeColorGenericState;
|
|
609
|
+
hovered: ThemeColorGenericState;
|
|
610
|
+
pressed: ThemeColorGenericState;
|
|
611
|
+
selected: ThemeColorGenericState;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @public
|
|
615
|
+
* @deprecated Use `ThemeColorSelectable_v2` instead.
|
|
616
|
+
*/
|
|
617
|
+
interface ThemeColorSolid {
|
|
618
|
+
default: ThemeColorSolidTone;
|
|
619
|
+
transparent: ThemeColorSolidTone;
|
|
620
|
+
primary: ThemeColorSolidTone;
|
|
621
|
+
positive: ThemeColorSolidTone;
|
|
622
|
+
caution: ThemeColorSolidTone;
|
|
623
|
+
critical: ThemeColorSolidTone;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* @public
|
|
627
|
+
* @deprecated Use `ThemeColorAvatarColorKey` instead
|
|
628
|
+
*/
|
|
629
|
+
type ThemeColorSpotKey = ThemeColorAvatarColorKey;
|
|
630
|
+
/**
|
|
631
|
+
* @public
|
|
632
|
+
* @deprecated Use `ThemeColorAvatar_v2` instead
|
|
633
|
+
*/
|
|
634
|
+
type ThemeColorSpot = Record<ThemeColorSpotKey, string>;
|
|
635
|
+
/**
|
|
636
|
+
* @public
|
|
637
|
+
* @deprecated Use `ThemeColor_v2` instead.
|
|
638
|
+
*/
|
|
639
|
+
interface ThemeColor extends Partial<Omit<ThemeColorGenericState, 'muted'>> {
|
|
640
|
+
base: ThemeColorBase;
|
|
641
|
+
button: ThemeColorButton;
|
|
642
|
+
card: ThemeColorCard;
|
|
643
|
+
dark: boolean;
|
|
644
|
+
input: ThemeColorInput;
|
|
645
|
+
muted: ThemeColorMuted;
|
|
646
|
+
selectable?: ThemeColorSelectable;
|
|
647
|
+
solid: ThemeColorSolid;
|
|
648
|
+
spot: ThemeColorSpot;
|
|
649
|
+
syntax: ThemeColorSyntax;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* @public
|
|
653
|
+
* @deprecated Use `ThemeColorScheme_v2` instead.
|
|
654
|
+
*/
|
|
655
|
+
type ThemeColorScheme = Record<ThemeColorName, ThemeColor>;
|
|
656
|
+
/**
|
|
657
|
+
* @public
|
|
658
|
+
* @deprecated Use `ThemeColorSchemes_v2` instead.
|
|
659
|
+
*/
|
|
660
|
+
type ThemeColorSchemes = Record<ThemeColorSchemeKey, ThemeColorScheme>;
|
|
661
|
+
/**
|
|
662
|
+
* @public
|
|
663
|
+
* @deprecated Use `ThemeInput_v2` instead
|
|
664
|
+
*/
|
|
665
|
+
interface ThemeInput {
|
|
666
|
+
checkbox: {
|
|
667
|
+
size: number;
|
|
668
|
+
};
|
|
669
|
+
radio: {
|
|
670
|
+
size: number;
|
|
671
|
+
markSize: number;
|
|
672
|
+
};
|
|
673
|
+
switch: {
|
|
674
|
+
width: number;
|
|
675
|
+
height: number;
|
|
676
|
+
padding: number;
|
|
677
|
+
transitionDurationMs: number;
|
|
678
|
+
transitionTimingFunction: string;
|
|
679
|
+
};
|
|
680
|
+
border: {
|
|
681
|
+
width: number;
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* @public
|
|
686
|
+
*/
|
|
687
|
+
interface RootTheme_v2 {
|
|
688
|
+
_version: 2;
|
|
689
|
+
avatar: ThemeAvatar_v2;
|
|
690
|
+
button: {
|
|
691
|
+
border: {
|
|
692
|
+
width: number;
|
|
693
|
+
};
|
|
694
|
+
focusRing: ThemeFocusRing;
|
|
695
|
+
textWeight: ThemeFontWeightKey;
|
|
696
|
+
};
|
|
697
|
+
card: {
|
|
698
|
+
border: {
|
|
699
|
+
width: number;
|
|
700
|
+
};
|
|
701
|
+
focusRing: ThemeFocusRing;
|
|
702
|
+
shadow: {
|
|
703
|
+
outline: number;
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
color: ThemeColorSchemes_v2;
|
|
707
|
+
container: number[];
|
|
708
|
+
font: ThemeFonts;
|
|
709
|
+
input: ThemeInput_v2;
|
|
710
|
+
layer: ThemeLayer;
|
|
711
|
+
media: number[];
|
|
712
|
+
radius: number[];
|
|
713
|
+
shadow: Array<ThemeShadow | null>;
|
|
714
|
+
space: number[];
|
|
715
|
+
/** @internal */
|
|
716
|
+
style?: ThemeStyles;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* @public
|
|
720
|
+
*/
|
|
721
|
+
interface BaseTheme {
|
|
722
|
+
_version?: 0;
|
|
723
|
+
/**
|
|
724
|
+
* @deprecated Use `v2.avatar` instead
|
|
725
|
+
*/
|
|
726
|
+
avatar: ThemeAvatar;
|
|
727
|
+
/**
|
|
728
|
+
* @deprecated Use `v2.button` instead
|
|
729
|
+
*/
|
|
730
|
+
button: {
|
|
731
|
+
textWeight: ThemeFontWeightKey;
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* @deprecated Use `v2.color` instead
|
|
735
|
+
*/
|
|
736
|
+
color: ThemeColorSchemes;
|
|
737
|
+
/**
|
|
738
|
+
* @deprecated Use `v2.container` instead
|
|
739
|
+
*/
|
|
740
|
+
container: number[];
|
|
741
|
+
/**
|
|
742
|
+
* @deprecated Use component-specific `v2.{button | card | input}.focusRing` values instead
|
|
743
|
+
*/
|
|
744
|
+
focusRing: {
|
|
745
|
+
offset: number;
|
|
746
|
+
width: number;
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* @deprecated Use `v2.font` instead
|
|
750
|
+
*/
|
|
751
|
+
fonts: ThemeFonts;
|
|
752
|
+
/**
|
|
753
|
+
* @deprecated Use `v2.input` instead
|
|
754
|
+
*/
|
|
755
|
+
input: ThemeInput;
|
|
756
|
+
/**
|
|
757
|
+
* THIS API MAY BE UNSTABLE. DO NOT USE IN PRODUCTION.
|
|
758
|
+
* @beta
|
|
759
|
+
* @deprecated Use `v2.layer` instead
|
|
760
|
+
*/
|
|
761
|
+
layer?: ThemeLayer;
|
|
762
|
+
/**
|
|
763
|
+
* @deprecated Use `v2.media` instead
|
|
764
|
+
*/
|
|
765
|
+
media: number[];
|
|
766
|
+
/**
|
|
767
|
+
* @deprecated Use `v2.radius` instead
|
|
768
|
+
*/
|
|
769
|
+
radius: number[];
|
|
770
|
+
/**
|
|
771
|
+
* @deprecated Use `v2.shadow` instead
|
|
772
|
+
*/
|
|
773
|
+
shadows: Array<ThemeShadow | null>;
|
|
774
|
+
/**
|
|
775
|
+
* @deprecated Use `v2.space` instead
|
|
776
|
+
*/
|
|
777
|
+
space: number[];
|
|
778
|
+
/**
|
|
779
|
+
* @internal
|
|
780
|
+
* @deprecated Use `v2.style` instead
|
|
781
|
+
*/
|
|
782
|
+
styles?: ThemeStyles;
|
|
783
|
+
v2?: RootTheme_v2;
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* @public
|
|
787
|
+
*/
|
|
788
|
+
type RootTheme = BaseTheme;
|
|
789
|
+
/**
|
|
790
|
+
* @public
|
|
791
|
+
*/
|
|
792
|
+
type Theme_v2 = Omit<RootTheme_v2, 'color'> & {
|
|
793
|
+
color: ThemeColorCard_v2;
|
|
794
|
+
/**
|
|
795
|
+
* Indicates whether the theme is resolved or raw, it's necessary to avoid issues
|
|
796
|
+
* with sanity V2 components accessing a v1 <ThemeProvider>.
|
|
797
|
+
* See https://github.com/sanity-io/ui/pull/1203 for more info.
|
|
798
|
+
*/
|
|
799
|
+
_resolved: boolean;
|
|
800
|
+
};
|
|
801
|
+
/**
|
|
802
|
+
* @public
|
|
803
|
+
*/
|
|
804
|
+
interface Theme {
|
|
805
|
+
sanity: Omit<RootTheme, 'color' | 'v2'> & {
|
|
806
|
+
/**
|
|
807
|
+
* @deprecated Use `v2.color` instead
|
|
808
|
+
*/
|
|
809
|
+
color: ThemeColor;
|
|
810
|
+
v2?: Theme_v2;
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* @public
|
|
815
|
+
* @deprecated Use `buildColorTheme` instead.
|
|
816
|
+
*/
|
|
817
|
+
interface ThemeColorBuilderOpts {
|
|
818
|
+
base: (opts: {
|
|
819
|
+
dark: boolean;
|
|
820
|
+
name: ThemeColorName;
|
|
821
|
+
}) => ThemeColorBase;
|
|
822
|
+
solid: (opts: {
|
|
823
|
+
base: ThemeColorBase;
|
|
824
|
+
dark: boolean;
|
|
825
|
+
tone: ThemeColorName;
|
|
826
|
+
name: ThemeColorName;
|
|
827
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
|
|
828
|
+
}) => ThemeColorGenericState;
|
|
829
|
+
muted: (opts: {
|
|
830
|
+
base: ThemeColorBase;
|
|
831
|
+
dark: boolean;
|
|
832
|
+
tone: ThemeColorToneKey;
|
|
833
|
+
name: ThemeColorName;
|
|
834
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
|
|
835
|
+
}) => ThemeColorGenericState;
|
|
836
|
+
card: (opts: {
|
|
837
|
+
base: ThemeColorBase;
|
|
838
|
+
dark: boolean;
|
|
839
|
+
muted: ThemeColorMuted;
|
|
840
|
+
name: ThemeColorName;
|
|
841
|
+
solid: ThemeColorSolid;
|
|
842
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
|
|
843
|
+
}) => ThemeColorGenericState;
|
|
844
|
+
button: (opts: {
|
|
845
|
+
dark: boolean;
|
|
846
|
+
mode: ThemeColorButtonModeKey;
|
|
847
|
+
base: ThemeColorBase;
|
|
848
|
+
solid: ThemeColorSolidTone;
|
|
849
|
+
muted: ThemeColorMutedTone;
|
|
850
|
+
}) => ThemeColorButtonStates;
|
|
851
|
+
input: (opts: {
|
|
852
|
+
base: ThemeColorBase;
|
|
853
|
+
solid: ThemeColorSolidTone;
|
|
854
|
+
muted: ThemeColorMutedTone;
|
|
855
|
+
dark: boolean;
|
|
856
|
+
mode: 'default' | 'invalid';
|
|
857
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'readOnly';
|
|
858
|
+
}) => ThemeColorInputState;
|
|
859
|
+
selectable: (opts: {
|
|
860
|
+
dark: boolean;
|
|
861
|
+
base: ThemeColorBase;
|
|
862
|
+
solid: ThemeColorSolid;
|
|
863
|
+
muted: ThemeColorMuted;
|
|
864
|
+
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected';
|
|
865
|
+
tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical';
|
|
866
|
+
}) => ThemeColorGenericState;
|
|
867
|
+
syntax: (opts: {
|
|
868
|
+
base: ThemeColorBase;
|
|
869
|
+
dark: boolean;
|
|
870
|
+
}) => ThemeColorSyntax;
|
|
871
|
+
spot: (opts: {
|
|
872
|
+
base: ThemeColorBase;
|
|
873
|
+
dark: boolean;
|
|
874
|
+
key: ThemeColorSpotKey;
|
|
875
|
+
}) => string;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* @public
|
|
879
|
+
* @deprecated Use `ThemeConfig` instead.
|
|
880
|
+
*/
|
|
881
|
+
type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>;
|
|
882
|
+
/**
|
|
883
|
+
* @public
|
|
884
|
+
* @deprecated Use `buildColorTheme` instead.
|
|
885
|
+
*/
|
|
886
|
+
declare function createColorTheme(partialOpts?: PartialThemeColorBuilderOpts): ThemeColorSchemes;
|
|
887
|
+
/**
|
|
888
|
+
* Apply the \`multiply\` blend mode
|
|
889
|
+
* Source: https://www.w3.org/TR/compositing-1/#blendingmultiply
|
|
890
|
+
* @internal
|
|
891
|
+
*/
|
|
892
|
+
declare function multiply(b: RGB | RGBA, s: RGB | RGBA): RGB;
|
|
893
|
+
/**
|
|
894
|
+
* Apply the \`screen\` blend mode
|
|
895
|
+
* Source: https://www.w3.org/TR/compositing-1/#blendingscreen
|
|
896
|
+
* @internal
|
|
897
|
+
*/
|
|
898
|
+
declare function screen(b: RGB | RGBA, s: RGB | RGBA): RGB;
|
|
899
|
+
/**
|
|
900
|
+
* @internal
|
|
901
|
+
*/
|
|
902
|
+
declare function hexToRgb(hex: string): RGB;
|
|
903
|
+
/**
|
|
904
|
+
* @internal
|
|
905
|
+
*/
|
|
906
|
+
declare function rgbaToRGBA(rgba: string): RGBA;
|
|
907
|
+
/**
|
|
908
|
+
* @internal
|
|
909
|
+
*/
|
|
910
|
+
declare function rgbToHex(color: RGB | RGBA): string;
|
|
911
|
+
/**
|
|
912
|
+
* @internal
|
|
913
|
+
* @see https://css-tricks.com/converting-color-spaces-in-javascript/
|
|
914
|
+
*/
|
|
915
|
+
declare function rgbToHsl({ r, g, b }: RGB): HSL;
|
|
916
|
+
/**
|
|
917
|
+
* @internal
|
|
918
|
+
*/
|
|
919
|
+
declare function hslToRgb(hsl: HSL): RGB;
|
|
920
|
+
/**
|
|
921
|
+
* @internal
|
|
922
|
+
*/
|
|
923
|
+
declare function parseColor(color: unknown): RGB | RGBA;
|
|
924
|
+
/**
|
|
925
|
+
* @internal
|
|
926
|
+
*/
|
|
927
|
+
declare function rgba(color: unknown, a: number): string;
|
|
928
|
+
export { ThemeColorInputState_v2 as $, ThemeColorMutedTone as A, ThemeColorSchemeKey as At, ThemeColorBase as B, THEME_COLOR_STATES as Bt, ThemeColorSpotKey as C, ThemeColorSyntax as Ct, ThemeColorSelectableState as D, ThemeColorCardToneKey as Dt, ThemeColorSelectable as E, ThemeColorButtonModeKey as Et, ThemeColorCardState as F, THEME_COLOR_BUTTON_MODES as Ft, ThemeInput_v2 as G, ThemeColorToneKey as H, HSL as Ht, ThemeColorButton as I, THEME_COLOR_CARD_TONES as It, ThemeColorSchemes_v2 as J, ThemeColorCard_v2 as K, ThemeColorButtonState as L, THEME_COLOR_INPUT_MODES as Lt, ThemeColorInputState as M, ThemeColorStateToneKey as Mt, ThemeColorInputStates as N, THEME_COLOR_AVATAR_COLORS as Nt, ThemeColorSelectableStates as O, ThemeColorInputModeKey as Ot, ThemeColorCard as P, THEME_COLOR_BLEND_MODES as Pt, ThemeColorInputMode_v2 as Q, ThemeColorButtonStates as R, THEME_COLOR_INPUT_STATES as Rt, ThemeColorSpot as S, ThemeFonts as St, ThemeColorSolidTone as T, ThemeColorBlendModeKey as Tt, ThemeColorGenericState as U, RGB as Ut, ThemeColorName as V, THEME_COLOR_STATE_TONES as Vt, ThemeAvatar as W, RGBA as Wt, ThemeColorSelectableTone_v2 as X, ThemeColorShadow as Y, ThemeColorSelectable_v2 as Z, Theme_v2 as _, ThemeFont as _t, rgbToHex as a, ThemeColorKBD as at, ThemeColorScheme as b, ThemeFontWeight as bt, screen as c, ThemeColorAvatarHue_v2 as ct, ThemeColorBuilderOpts as d, ThemeFocusRing as dt, ThemeColorInput_v2 as et, createColorTheme as f, ThemeStyles as ft, Theme as g, ThemeLayer as gt, RootTheme_v2 as h, ThemeShadow as ht, hslToRgb as i, ThemeColorState_v2 as it, ThemeColorInput as j, ThemeColorStateKey as jt, ThemeColorMuted as k, ThemeColorInputStateKey as kt, multiply as l, ThemeColorAvatar_v2 as lt, RootTheme as m, ThemeBoxShadow as mt, parseColor as n, ThemeColorButtonTone_v2 as nt, rgbToHsl as o, ThemeColorBadgeTone_v2 as ot, BaseTheme as p, CSSObject as pt, ThemeColorScheme_v2 as q, hexToRgb as r, ThemeColorButton_v2 as rt, rgbaToRGBA as s, ThemeColorBadge_v2 as st, rgba as t, ThemeColorButtonMode_v2 as tt, PartialThemeColorBuilderOpts as u, ThemeAvatar_v2 as ut, ThemeInput as v, ThemeFontKey as vt, ThemeColorSolid as w, ThemeColorAvatarColorKey as wt, ThemeColorSchemes as x, ThemeFontWeightKey as xt, ThemeColor as y, ThemeFontSize as yt, ThemeColorButtonTones as z, THEME_COLOR_SCHEMES as zt };
|
|
929
|
+
//# sourceMappingURL=rgba.d.cts.map
|