@sanity/ui 3.0.0-static.1 → 3.0.0-static.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/bin/ui.js +0 -1
- package/dist/_chunks-cjs/_visual-editing.js +3059 -0
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -0
- package/dist/_chunks-cjs/buildCommand.js +14 -3524
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js +27 -0
- package/dist/_chunks-cjs/refractor.js.map +1 -0
- package/dist/_chunks-cjs/v3_v2.js +251 -0
- package/dist/_chunks-cjs/v3_v2.js.map +1 -0
- package/dist/_chunks-es/_visual-editing.mjs +3066 -0
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -0
- package/dist/_chunks-es/refractor.mjs +26 -0
- package/dist/_chunks-es/refractor.mjs.map +1 -0
- package/dist/_chunks-es/v3_v2.mjs +252 -0
- package/dist/_chunks-es/v3_v2.mjs.map +1 -0
- package/dist/_visual-editing.d.mts +806 -0
- package/dist/_visual-editing.d.ts +806 -0
- package/dist/_visual-editing.js +31 -0
- package/dist/_visual-editing.js.map +1 -0
- package/dist/_visual-editing.mjs +31 -0
- package/dist/_visual-editing.mjs.map +1 -0
- package/dist/cli.js +337 -5
- package/dist/cli.js.map +1 -1
- package/dist/css.d.mts +1446 -373
- package/dist/css.d.ts +1446 -373
- package/dist/css.js +2665 -1747
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +2651 -1732
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +418 -520
- package/dist/index.d.ts +418 -520
- package/dist/index.js +737 -4617
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +633 -4522
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +9 -0
- package/dist/sanity-theme.css +1 -25
- package/dist/system.css +596 -404
- package/dist/theme.d.mts +431 -110
- package/dist/theme.d.ts +431 -110
- package/dist/theme.js +1216 -2430
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1238 -2450
- package/dist/theme.mjs.map +1 -1
- package/exports/_visual-editing.ts +31 -0
- package/package.json +92 -81
- package/src/{css/cli → cli}/buildCommand.ts +21 -9
- package/src/{css/cli → cli}/index.ts +1 -1
- package/src/core/StyleTags.tsx +24 -0
- package/src/core/_compat/index.ts +8 -1
- package/src/core/_compat/styles/_responsive.ts +19 -0
- package/src/core/_compat/styles/index.ts +1 -5
- package/src/core/{theme → _compat/theme}/theme.test.tsx +2 -2
- package/src/core/{theme → _compat/theme}/themeColorProvider.tsx +4 -2
- package/src/core/{theme → _compat/theme}/themeContext.ts +1 -1
- package/src/core/{theme → _compat/theme}/themeProvider.tsx +10 -11
- package/src/core/{theme → _compat/theme}/useRootTheme.ts +1 -0
- package/src/core/{theme → _compat/theme}/useTheme.ts +2 -2
- package/src/core/_compat/types.ts +11 -11
- package/src/core/components/autocomplete/__mocks__/apiStore.ts +1 -1
- package/src/core/components/autocomplete/__workshop__/async.tsx +1 -0
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +4 -2
- package/src/core/components/autocomplete/__workshop__/custom.tsx +3 -2
- package/src/core/components/autocomplete/__workshop__/example.tsx +3 -2
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +1 -0
- package/src/core/components/autocomplete/autocomplete.tsx +54 -61
- package/src/core/components/autocomplete/autocompleteOption.tsx +5 -4
- package/src/core/components/autocomplete/types.ts +2 -2
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +7 -0
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +32 -16
- package/src/core/components/dialog/__workshop__/activate.tsx +2 -1
- package/src/core/components/dialog/__workshop__/nested.tsx +3 -3
- package/src/core/components/dialog/__workshop__/onScroll.tsx +2 -2
- package/src/core/components/dialog/__workshop__/panes.tsx +1 -0
- package/src/core/components/dialog/__workshop__/position.tsx +2 -1
- package/src/core/components/dialog/__workshop__/props.tsx +2 -1
- package/src/core/components/dialog/__workshop__/wrapped.tsx +1 -3
- package/src/core/components/dialog/dialog.tsx +50 -27
- package/src/core/components/dialog/dialogProvider.tsx +4 -3
- package/src/core/components/dialog/useDialog.ts +1 -0
- package/src/core/components/hotkeys/hotkeys.tsx +20 -14
- package/src/core/components/menu/__workshop__/asComponent.tsx +2 -1
- package/src/core/components/menu/__workshop__/avatarMenu.tsx +1 -0
- package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +1 -0
- package/src/core/components/menu/__workshop__/customSelectedState.tsx +1 -0
- package/src/core/components/menu/__workshop__/menuButton.tsx +2 -1
- package/src/core/components/menu/__workshop__/shouldFocus.tsx +1 -0
- package/src/core/components/menu/__workshop__/tones.tsx +7 -7
- package/src/core/components/menu/menu.test.tsx +4 -5
- package/src/core/components/menu/menu.tsx +49 -22
- package/src/core/components/menu/menuButton.tsx +47 -61
- package/src/core/components/menu/menuContext.ts +6 -4
- package/src/core/components/menu/menuDivider.tsx +9 -3
- package/src/core/components/menu/menuGroup.tsx +50 -26
- package/src/core/components/menu/menuItem.tsx +31 -38
- package/src/core/components/menu/useMenu.ts +1 -0
- package/src/core/components/menu/useMenuController.ts +18 -7
- package/src/core/components/skeleton/__workshop__/delay.tsx +2 -1
- package/src/core/components/skeleton/__workshop__/skeleton.tsx +2 -1
- package/src/core/components/skeleton/skeleton.tsx +4 -3
- package/src/core/components/skeleton/textSkeleton.tsx +11 -25
- package/src/core/components/tab/tab.tsx +21 -14
- package/src/core/components/tab/tabList.tsx +24 -11
- package/src/core/components/tab/tabPanel.tsx +5 -4
- package/src/core/components/toast/__workshop__/hook.tsx +1 -1
- package/src/core/components/toast/__workshop__/toast.tsx +2 -1
- package/src/core/components/toast/toast.test.tsx +0 -1
- package/src/core/components/toast/toast.tsx +130 -40
- package/src/core/components/toast/toastLayer.tsx +38 -0
- package/src/core/components/toast/toastProvider.tsx +60 -140
- package/src/core/components/toast/toastState.ts +6 -0
- package/src/core/components/toast/types.ts +10 -2
- package/src/core/components/toast/useToast.ts +1 -0
- package/src/core/components/tree/__workshop__/basic.tsx +1 -0
- package/src/core/components/tree/__workshop__/tabFromElement.tsx +2 -1
- package/src/core/components/tree/tree.tsx +16 -13
- package/src/core/components/tree/treeGroup.tsx +5 -7
- package/src/core/components/tree/treeItem.tsx +41 -34
- package/src/core/components/tree/useTree.ts +1 -0
- package/src/core/constants.ts +45 -23
- package/src/core/helpers/focus.ts +3 -3
- package/src/core/helpers/index.ts +1 -0
- package/src/core/helpers/props.ts +10 -0
- package/src/core/hooks/useArrayProp.ts +19 -15
- package/src/core/hooks/useClickOutside.test.tsx +3 -4
- package/src/core/hooks/useClickOutside.ts +1 -0
- package/src/core/hooks/useClickOutsideEvent.test.tsx +0 -1
- package/src/core/hooks/useClickOutsideEvent.ts +2 -1
- package/src/core/hooks/useDelayed.test.ts +2 -1
- package/src/core/hooks/useDelayedState.ts +2 -3
- package/src/core/hooks/useElementRect/__workshop__/example.tsx +3 -2
- package/src/core/hooks/useElementSize.ts +2 -1
- package/src/core/hooks/useForwardedRef.ts +2 -2
- package/src/core/hooks/useGlobalKeyDown.ts +9 -4
- package/src/core/hooks/useMatchMedia.ts +1 -1
- package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +3 -2
- package/src/core/hooks/useMediaIndex/useMediaIndex.ts +2 -1
- package/src/core/hooks/usePrefersDark.hydration.test.tsx +0 -1
- package/src/core/hooks/usePrefersDark.test.tsx +2 -1
- package/src/core/hooks/usePrefersDark.ts +1 -1
- package/src/core/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -1
- package/src/core/hooks/usePrefersReducedMotion.test.tsx +2 -1
- package/src/core/hooks/usePrefersReducedMotion.ts +1 -1
- package/src/core/index.ts +2 -3
- package/src/core/lib/createGlobalScopedContext.ts +2 -1
- package/src/core/lib/globalScope.ts +0 -1
- package/src/core/primitives/_selectable/selectable.tsx +9 -5
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +2 -1
- package/src/core/primitives/avatar/__workshop__/stack.tsx +2 -1
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +4 -3
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +26 -23
- package/src/core/primitives/avatar/avatar.tsx +42 -80
- package/src/core/primitives/avatar/avatarCounter.tsx +26 -57
- package/src/core/primitives/avatar/avatarStack.tsx +37 -55
- package/src/core/primitives/avatar/types.ts +1 -0
- package/src/core/primitives/badge/__workshop__/props.tsx +2 -1
- package/src/core/primitives/badge/__workshop__/tones.tsx +2 -1
- package/src/core/primitives/badge/badge.test.tsx +1 -0
- package/src/core/primitives/badge/badge.tsx +10 -5
- package/src/core/primitives/box/__workshop__/props.tsx +2 -1
- package/src/core/primitives/box/box.tsx +45 -12
- package/src/core/primitives/button/__workshop__/custom.tsx +7 -4
- package/src/core/primitives/button/__workshop__/disabled.tsx +1 -0
- package/src/core/primitives/button/__workshop__/props.tsx +7 -2
- package/src/core/primitives/button/__workshop__/stacked.tsx +2 -1
- package/src/core/primitives/button/button.test.tsx +1 -0
- package/src/core/primitives/button/button.tsx +137 -113
- package/src/core/primitives/card/__workshop__/allTones.tsx +21 -21
- package/src/core/primitives/card/__workshop__/asButton.tsx +44 -25
- package/src/core/primitives/card/__workshop__/asComponent.tsx +2 -2
- package/src/core/primitives/card/__workshop__/checkered.tsx +17 -7
- package/src/core/primitives/card/__workshop__/interactive.tsx +10 -3
- package/src/core/primitives/card/__workshop__/listNavigation.tsx +6 -3
- package/src/core/primitives/card/__workshop__/props.tsx +13 -7
- package/src/core/primitives/card/__workshop__/selected.tsx +11 -9
- package/src/core/primitives/card/card.tsx +47 -55
- package/src/core/primitives/card/types.ts +1 -0
- package/src/core/primitives/checkbox/__workshop__/tones.tsx +6 -0
- package/src/core/primitives/checkbox/checkbox.tsx +9 -5
- package/src/core/primitives/code/__workshop__/props.tsx +3 -2
- package/src/core/primitives/code/code.tsx +11 -11
- package/src/core/primitives/code/refractor.tsx +20 -0
- package/src/core/primitives/container/__workshop__/example.tsx +3 -2
- package/src/core/primitives/container/container.tsx +7 -4
- package/src/core/primitives/flex/__workshop__/example.tsx +5 -4
- package/src/core/primitives/flex/__workshop__/gap.tsx +6 -6
- package/src/core/primitives/flex/flex.tsx +9 -12
- package/src/core/primitives/grid/__workshop__/responsive.tsx +12 -12
- package/src/core/primitives/grid/grid.tsx +7 -11
- package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +13 -25
- package/src/core/primitives/heading/__workshop__/plain.tsx +3 -2
- package/src/core/primitives/heading/heading.tsx +19 -39
- package/src/core/primitives/inline/__workshop__/plain.tsx +5 -4
- package/src/core/primitives/inline/inline.tsx +10 -7
- package/src/core/primitives/kbd/kbd.tsx +8 -6
- package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +13 -7
- package/src/core/primitives/label/__workshop__/plain.tsx +22 -8
- package/src/core/primitives/label/label.tsx +26 -50
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +3 -2
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +5 -4
- package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +3 -2
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +5 -2
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +5 -4
- package/src/core/primitives/popover/floating-ui/size.ts +2 -1
- package/src/core/primitives/popover/helpers.ts +4 -3
- package/src/core/primitives/popover/popover.tsx +51 -44
- package/src/core/primitives/popover/popoverCard.tsx +22 -27
- package/src/core/primitives/radio/__workshop__/plain.tsx +2 -2
- package/src/core/primitives/radio/radio.tsx +10 -11
- package/src/core/primitives/select/__workshop__/plain.tsx +5 -2
- package/src/core/primitives/select/__workshop__/readOnly.tsx +1 -1
- package/src/core/primitives/select/select.tsx +40 -41
- package/src/core/primitives/spinner/__workshop__/Props.tsx +2 -1
- package/src/core/primitives/spinner/spinner.tsx +5 -3
- package/src/core/primitives/stack/__workshop__/plain.tsx +2 -1
- package/src/core/primitives/stack/stack.tsx +10 -11
- package/src/core/primitives/switch/switch.tsx +22 -13
- package/src/core/primitives/text/__workshop__/colored.tsx +8 -14
- package/src/core/primitives/text/__workshop__/example.tsx +8 -7
- package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +11 -21
- package/src/core/primitives/text/text.tsx +20 -38
- package/src/core/primitives/textArea/__workshop__/plain.tsx +4 -3
- package/src/core/primitives/textArea/textArea.tsx +28 -75
- package/src/core/primitives/textInput/__workshop__/index.ts +0 -5
- package/src/core/primitives/textInput/__workshop__/plain.tsx +8 -3
- package/src/core/primitives/textInput/__workshop__/readOnly.tsx +6 -2
- package/src/core/primitives/textInput/__workshop__/tones.tsx +38 -0
- package/src/core/primitives/textInput/__workshop__/typed.tsx +2 -1
- package/src/core/primitives/textInput/textInput.tsx +133 -220
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +2 -1
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +2 -1
- package/src/core/primitives/tooltip/__workshop__/props.tsx +8 -3
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +2 -1
- package/src/core/primitives/tooltip/tooltip.test.tsx +4 -2
- package/src/core/primitives/tooltip/tooltip.tsx +64 -61
- package/src/core/primitives/tooltip/tooltipCard.tsx +31 -26
- package/src/core/primitives/tooltip/tooltipDelayGroup/index.ts +1 -1
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +4 -6
- package/src/core/primitives/tooltip/tooltipDelayGroup/types.ts +0 -1
- package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +1 -0
- package/src/core/primitives/types.ts +5 -5
- package/src/core/types/box.ts +0 -3
- package/src/core/types/button.ts +2 -0
- package/src/core/types/flex.ts +0 -4
- package/src/core/types/grid.ts +5 -7
- package/src/core/types/gridItem.ts +4 -9
- package/src/core/types/index.ts +1 -0
- package/src/core/types/props.ts +18 -0
- package/src/core/types/selectable.ts +1 -0
- package/src/core/utils/arrow/arrow.tsx +34 -97
- package/src/core/utils/boundaryElement/boundaryElement.test.tsx +0 -1
- package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +4 -3
- package/src/core/utils/boundaryElement/index.ts +1 -1
- package/src/core/utils/boundaryElement/useBoundaryElement.ts +1 -0
- package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +5 -3
- package/src/core/utils/elementQuery/elementQuery.tsx +21 -21
- package/src/core/utils/errorBoundary.tsx +5 -4
- package/src/core/utils/getElementRef.ts +26 -0
- package/src/core/utils/layer/__workshop__/multipleRoots.tsx +1 -0
- package/src/core/utils/layer/__workshop__/nested.tsx +1 -0
- package/src/core/utils/layer/__workshop__/responsiveZOffset.tsx +1 -0
- package/src/core/utils/layer/index.ts +1 -1
- package/src/core/utils/layer/layer.test.tsx +0 -1
- package/src/core/utils/layer/layer.tsx +15 -11
- package/src/core/utils/layer/layerProvider.tsx +6 -5
- package/src/core/utils/layer/useLayer.ts +1 -0
- package/src/core/utils/portal/portal.test.tsx +0 -1
- package/src/core/utils/portal/portal.ts +4 -2
- package/src/core/utils/portal/portalProvider.tsx +4 -3
- package/src/core/utils/portal/usePortal.ts +1 -0
- package/src/core/utils/spanWithTextOverflow.tsx +10 -0
- package/src/core/utils/srOnly/srOnly.tsx +17 -18
- package/src/core/utils/virtualList/virtualList.tsx +55 -37
- package/src/css/_resp.ts +4 -1
- package/src/css/compile/compilePalette.ts +60 -0
- package/src/css/compile/compileRule.ts +45 -13
- package/src/css/compile/compileRules.test.ts +35 -0
- package/src/css/compile/compileRules.ts +14 -30
- package/src/css/compile/compileTheme.ts +8 -505
- package/src/css/compile/compileTheme_v3.ts +410 -0
- package/src/css/compile/types.ts +6 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +1 -1
- package/src/css/components/dialog/{classes.ts → dialog.ts} +7 -7
- package/src/css/components/dialog/index.ts +1 -1
- package/src/css/components/dialog/rules.ts +2 -1
- package/src/css/components/menu/menu.ts +5 -1
- package/src/css/components/menu/rules.ts +6 -1
- package/src/css/components/skeleton/rules.ts +28 -22
- package/src/css/components/skeleton/skeleton.ts +5 -5
- package/src/css/components/skeleton/types.ts +2 -0
- package/src/css/components/toast/index.ts +1 -0
- package/src/css/components/toast/rules.ts +17 -68
- package/src/css/components/toast/toast.ts +21 -0
- package/src/css/components/tree/rules.ts +3 -2
- package/src/css/components/tree/tree.ts +1 -1
- package/src/css/composeClassNames.ts +12 -2
- package/src/css/index.ts +12 -23
- package/src/css/primitives/_arrow/_arrow.ts +14 -0
- package/src/css/primitives/_arrow/index.ts +1 -0
- package/src/css/primitives/_arrow/rules.ts +71 -0
- package/src/css/primitives/_input/index.ts +2 -0
- package/src/css/primitives/_input/input.ts +25 -0
- package/src/css/primitives/_input/rules.ts +163 -0
- package/src/css/primitives/_input/types.ts +12 -0
- package/src/css/primitives/{selectable → _selectable}/__style.ts +1 -1
- package/src/css/primitives/_selectable/_contants.ts +11 -0
- package/src/css/primitives/_selectable/rules.ts +129 -0
- package/src/css/primitives/_selectable/selectable.ts +9 -0
- package/src/css/primitives/_selectable/types.ts +8 -0
- package/src/css/primitives/avatar/avatar.ts +10 -15
- package/src/css/primitives/avatar/rules.ts +85 -99
- package/src/css/primitives/avatar/types.ts +1 -2
- package/src/css/primitives/badge/badge.ts +2 -2
- package/src/css/primitives/badge/rules.ts +13 -16
- package/src/css/primitives/badge/types.ts +2 -2
- package/src/css/primitives/box/box.ts +24 -14
- package/src/css/primitives/box/rules.ts +5 -2
- package/src/css/primitives/box/types.ts +24 -19
- package/src/css/primitives/button/_constants.ts +17 -0
- package/src/css/primitives/button/button.ts +27 -12
- package/src/css/primitives/button/rules.ts +275 -40
- package/src/css/primitives/card/_constants.ts +13 -0
- package/src/css/primitives/card/card.ts +8 -13
- package/src/css/primitives/card/index.ts +1 -0
- package/src/css/primitives/card/rules.ts +353 -123
- package/src/css/primitives/card/types.ts +11 -0
- package/src/css/primitives/checkbox/checkbox.ts +2 -2
- package/src/css/primitives/checkbox/rules.ts +31 -15
- package/src/css/primitives/code/code.ts +2 -2
- package/src/css/primitives/code/rules.ts +27 -2
- package/src/css/primitives/code/types.ts +1 -1
- package/src/css/primitives/container/container.ts +2 -2
- package/src/css/primitives/container/types.ts +1 -0
- package/src/css/primitives/heading/heading.ts +3 -2
- package/src/css/primitives/heading/rules.ts +77 -6
- package/src/css/primitives/heading/types.ts +2 -2
- package/src/css/primitives/kbd/kbd.ts +2 -2
- package/src/css/primitives/kbd/rules.ts +5 -5
- package/src/css/primitives/kbd/types.ts +3 -1
- package/src/css/primitives/label/label.ts +2 -2
- package/src/css/primitives/label/rules.ts +54 -2
- package/src/css/primitives/label/types.ts +1 -1
- package/src/css/primitives/popover/popover.ts +1 -1
- package/src/css/primitives/radio/radio.ts +1 -1
- package/src/css/primitives/radio/rules.ts +117 -1
- package/src/css/primitives/select/index.ts +1 -0
- package/src/css/primitives/select/rules.ts +18 -1
- package/src/css/primitives/select/select.ts +8 -2
- package/src/css/primitives/select/types.ts +5 -0
- package/src/css/primitives/spinner/spinner.ts +2 -2
- package/src/css/primitives/switch/rules.ts +264 -56
- package/src/css/primitives/switch/switch.ts +17 -1
- package/src/css/primitives/text/rules.ts +93 -4
- package/src/css/primitives/text/text.ts +3 -2
- package/src/css/primitives/text/types.ts +2 -2
- package/src/css/primitives/textArea/index.ts +1 -0
- package/src/css/primitives/textArea/rules.ts +3 -1
- package/src/css/primitives/textArea/textArea.ts +4 -2
- package/src/css/primitives/textArea/types.ts +5 -0
- package/src/css/primitives/textInput/rules.ts +33 -130
- package/src/css/primitives/textInput/textInput.ts +4 -11
- package/src/css/primitives/textInput/types.ts +8 -5
- package/src/css/primitives/token/rules.ts +37 -37
- package/src/css/primitives/tooltip/rules.ts +2 -0
- package/src/css/primitives/tooltip/tooltip.ts +2 -2
- package/src/css/rules.ts +16 -2
- package/src/css/styles/border/border.ts +1 -1
- package/src/css/styles/display/display.ts +7 -0
- package/src/css/styles/display/index.ts +2 -0
- package/src/css/styles/display/rules.ts +2 -2
- package/src/css/styles/display/types.ts +17 -0
- package/src/css/styles/flex/flex.ts +1 -1
- package/src/css/styles/flexItem/flexItem.ts +1 -1
- package/src/css/styles/flexItem/rules.ts +1 -0
- package/src/css/styles/font/font.ts +1 -1
- package/src/css/styles/font/rules.ts +4 -4
- package/src/css/styles/gap/gap.ts +1 -1
- package/src/css/styles/gap/rules.ts +1 -0
- package/src/css/styles/gap/types.ts +1 -0
- package/src/css/styles/grid/grid.ts +1 -1
- package/src/css/styles/gridItem/gridItem.ts +1 -1
- package/src/css/styles/index.ts +19 -0
- package/src/css/styles/inset/index.ts +2 -0
- package/src/css/styles/inset/inset.ts +13 -0
- package/src/css/styles/inset/rules.ts +16 -0
- package/src/css/styles/inset/types.ts +13 -0
- package/src/css/styles/margin/margin.ts +1 -1
- package/src/css/styles/margin/rules.ts +1 -0
- package/src/css/styles/maxWidth/rules.ts +8 -31
- package/src/css/styles/maxWidth/types.ts +2 -1
- package/src/css/styles/overflow/overflow.ts +1 -1
- package/src/css/styles/padding/padding.ts +1 -1
- package/src/css/styles/padding/rules.ts +1 -0
- package/src/css/styles/padding/types.ts +9 -7
- package/src/css/styles/pointerEvents/pointerEvents.ts +1 -1
- package/src/css/styles/position/position.ts +2 -2
- package/src/css/styles/position/rules.ts +0 -7
- package/src/css/styles/position/types.ts +0 -4
- package/src/css/styles/radius/radius.ts +1 -1
- package/src/css/styles/radius/rules.ts +1 -1
- package/src/css/styles/radius/types.ts +1 -0
- package/src/css/styles/shadow/index.ts +2 -0
- package/src/css/styles/shadow/rules.ts +5 -5
- package/src/css/styles/shadow/shadow.ts +7 -0
- package/src/css/styles/shadow/types.ts +8 -0
- package/src/css/styles/textOverflow/index.ts +2 -0
- package/src/css/styles/textOverflow/rules.ts +17 -0
- package/src/css/styles/textOverflow/textOverflow.ts +6 -0
- package/src/css/styles/textOverflow/types.ts +8 -0
- package/src/css/styles/width/index.ts +1 -1
- package/src/css/styles/width/types.ts +3 -2
- package/src/css/types.ts +457 -289
- package/src/css/util.ts +27 -0
- package/src/css/utils/srOnly/index.ts +1 -0
- package/src/css/utils/srOnly/rules.ts +11 -0
- package/src/css/utils/srOnly/srOnly.ts +5 -0
- package/src/css/varNames.ts +352 -260
- package/src/css/vars.ts +330 -286
- package/src/theme/{system/_constants.ts → _constants.ts} +5 -4
- package/src/theme/{system/_types.ts → _types.ts} +1 -1
- package/src/theme/build/_deprecated/color/_selectable/createSelectableTones.ts +1 -1
- package/src/theme/build/_deprecated/color/_solid/createSolidTones.ts +1 -1
- package/src/theme/build/_deprecated/color/button/createButtonModes.ts +1 -6
- package/src/theme/build/_deprecated/color/button/createButtonTones.ts +2 -2
- package/src/theme/build/_deprecated/color/card/createCardStates.ts +2 -2
- package/src/theme/build/_deprecated/color/factory.ts +8 -9
- package/src/theme/build/_deprecated/color/input/createInputModes.ts +1 -1
- package/src/theme/build/_deprecated/color/muted/createMuted.ts +2 -2
- package/src/theme/build/_deprecated/color/spot/createSpot.ts +1 -1
- package/src/theme/build/buildColorTheme.ts +62 -52
- package/src/theme/build/buildTheme.ts +8 -32
- package/src/theme/build/colorToken/colorToken.ts +1 -1
- package/src/theme/build/lib/color-fns/rgba.ts +4 -0
- package/src/theme/build/merge.ts +0 -2
- package/src/theme/build/mixThemeColor.ts +1 -1
- package/src/theme/build/renderColorTheme.ts +34 -37
- package/src/theme/build/renderColorValue.ts +4 -3
- package/src/theme/build/resolveColorTokens.ts +57 -120
- package/src/theme/config/helpers.ts +2 -2
- package/src/theme/config/system.ts +3 -2
- package/src/theme/config/tokens/color/types.ts +5 -18
- package/src/theme/config/tokens/parseTokenKey.ts +1 -1
- package/src/theme/config/tokens/parseTokenValue.ts +1 -1
- package/src/theme/config/tokens/types.ts +3 -2
- package/src/theme/config/types.ts +4 -4
- package/src/theme/defaults/colorTokens.ts +6 -4
- package/src/theme/defaults/config.ts +2 -2
- package/src/theme/defaults/fonts.ts +18 -17
- package/src/theme/getScopedTheme.ts +10 -4
- package/src/theme/index.ts +7 -1
- package/src/theme/palette/constants.ts +15 -0
- package/src/theme/palette/index.ts +2 -0
- package/src/theme/palette/types.ts +16 -0
- package/src/theme/types.ts +32 -0
- package/src/theme/{system/v0 → v0}/color/_generic.ts +1 -1
- package/src/theme/v0/color/_system.ts +17 -0
- package/src/theme/{system/v0 → v0}/color/color.ts +3 -2
- package/src/theme/{system/v0 → v0}/color/input.ts +1 -1
- package/src/theme/{system/v0 → v0}/color/spot.ts +1 -1
- package/src/theme/{system → v0}/css.ts +1 -2
- package/src/theme/{system → v0}/font.ts +1 -0
- package/src/theme/{system → v0}/index.ts +0 -4
- package/src/theme/v0/theme.ts +72 -0
- package/src/theme/{system → v2}/avatar.ts +1 -1
- package/src/theme/{system → v2}/color/_constants.ts +6 -2
- package/src/theme/{system → v2}/color/_helpers.ts +1 -0
- package/src/theme/v2/color/badge.ts +16 -0
- package/src/theme/{system → v2}/color/color.ts +1 -1
- package/src/theme/{system/v0 → v2}/index.ts +2 -1
- package/src/theme/{system → v2}/input.ts +1 -1
- package/src/theme/v2/theme.ts +49 -0
- package/src/theme/v3/buildTheme_v3.test.ts +40 -0
- package/src/theme/v3/buildTheme_v3.ts +30 -0
- package/src/theme/v3/color/buildColor_v3.ts +193 -0
- package/src/theme/v3/color/card.ts +116 -0
- package/src/theme/v3/color/color.ts +94 -0
- package/src/theme/v3/color/element.ts +19 -0
- package/src/theme/v3/color/index.ts +7 -0
- package/src/theme/v3/color/parseColor.test.ts +79 -0
- package/src/theme/v3/color/parseColor.ts +167 -0
- package/src/theme/v3/color/renderColor.test.ts +19 -0
- package/src/theme/v3/color/renderColor.ts +33 -0
- package/src/theme/v3/color/token.ts +17 -0
- package/src/theme/v3/color/tokens.ts +5 -0
- package/src/theme/v3/defaults.ts +205 -0
- package/src/theme/v3/index.ts +6 -0
- package/src/theme/v3/merge.ts +22 -0
- package/src/theme/v3/resolveTokens.ts +199 -0
- package/src/theme/v3/tokens.ts +16 -0
- package/src/theme/v3/types.ts +48 -0
- package/src/theme/versioning/getTheme_v2.ts +2 -1
- package/src/theme/versioning/index.ts +0 -4
- package/src/theme/versioning/is_v0.ts +2 -1
- package/src/theme/versioning/is_v2.ts +2 -1
- package/src/theme/versioning/themeColor_v0_v2.ts +33 -5
- package/src/theme/versioning/themeColor_v2_v2_9.ts +49 -0
- package/src/theme/versioning/themeColor_v3_v2.ts +206 -0
- package/src/theme/versioning/v0_v2.ts +6 -1
- package/src/theme/versioning/v2_v0.ts +6 -6
- package/src/theme/versioning/v3_v2.ts +108 -0
- package/dist/css.esm.js +0 -3794
- package/dist/css.esm.js.map +0 -1
- package/dist/index.esm.js +0 -5431
- package/dist/index.esm.js.map +0 -1
- package/dist/theme.esm.js +0 -4201
- package/dist/theme.esm.js.map +0 -1
- package/src/core/__workshop__/constants.ts +0 -305
- package/src/core/__workshop__/fontsPlugin.tsx +0 -76
- package/src/core/_compat/styles/border/borderStyle.ts +0 -61
- package/src/core/_compat/styles/border/index.ts +0 -2
- package/src/core/_compat/styles/border/types.ts +0 -11
- package/src/core/_compat/styles/box/boxStyle.ts +0 -74
- package/src/core/_compat/styles/box/index.ts +0 -2
- package/src/core/_compat/styles/box/types.ts +0 -11
- package/src/core/_compat/styles/card/_cardColorStyle.ts +0 -101
- package/src/core/_compat/styles/card/index.ts +0 -1
- package/src/core/_compat/styles/flex/flexItemStyle.ts +0 -26
- package/src/core/_compat/styles/flex/flexStyle.ts +0 -69
- package/src/core/_compat/styles/flex/index.ts +0 -3
- package/src/core/_compat/styles/flex/types.ts +0 -24
- package/src/core/_compat/styles/focusRing/index.ts +0 -25
- package/src/core/_compat/styles/font/codeFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/headingFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/index.ts +0 -6
- package/src/core/_compat/styles/font/labelFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/responsiveFont.ts +0 -101
- package/src/core/_compat/styles/font/textAlignStyle.ts +0 -18
- package/src/core/_compat/styles/font/textFontStyle.ts +0 -12
- package/src/core/_compat/styles/font/types.ts +0 -34
- package/src/core/_compat/styles/grid/gridItemStyle.ts +0 -81
- package/src/core/_compat/styles/grid/gridStyle.ts +0 -97
- package/src/core/_compat/styles/grid/index.ts +0 -3
- package/src/core/_compat/styles/grid/types.ts +0 -37
- package/src/core/_compat/styles/helpers.ts +0 -81
- package/src/core/_compat/styles/input/index.ts +0 -2
- package/src/core/_compat/styles/input/responsiveInputPaddingStyle.ts +0 -77
- package/src/core/_compat/styles/input/textInputStyle.ts +0 -263
- package/src/core/_compat/styles/internal.ts +0 -12
- package/src/core/_compat/styles/margin/index.ts +0 -2
- package/src/core/_compat/styles/margin/marginStyle.ts +0 -20
- package/src/core/_compat/styles/margin/marginsStyle.test.ts +0 -32
- package/src/core/_compat/styles/margin/types.ts +0 -9
- package/src/core/_compat/styles/padding/index.ts +0 -2
- package/src/core/_compat/styles/padding/paddingStyle.test.ts +0 -32
- package/src/core/_compat/styles/padding/paddingStyle.ts +0 -20
- package/src/core/_compat/styles/padding/types.ts +0 -12
- package/src/core/_compat/styles/radius/index.ts +0 -2
- package/src/core/_compat/styles/radius/radiusStyle.ts +0 -22
- package/src/core/_compat/styles/radius/types.ts +0 -8
- package/src/core/_compat/styles/shadow/index.ts +0 -2
- package/src/core/_compat/styles/shadow/shadowStyle.ts +0 -29
- package/src/core/_compat/styles/shadow/types.ts +0 -6
- package/src/core/_compat/styles/types.ts +0 -8
- package/src/core/components/autocomplete/__workshop__/.eslintrc +0 -5
- package/src/core/components/breadcrumbs/__workshop__/.eslintrc +0 -5
- package/src/core/components/dialog/__workshop__/.eslintrc +0 -5
- package/src/core/components/hotkeys/__workshop__/.eslintrc +0 -5
- package/src/core/components/menu/__workshop__/.eslintrc +0 -5
- package/src/core/components/skeleton/__workshop__/.eslintrc +0 -5
- package/src/core/components/tab/__workshop__/.eslintrc +0 -5
- package/src/core/components/toast/__workshop__/.eslintrc +0 -5
- package/src/core/components/tree/__workshop__/.eslintrc +0 -5
- package/src/core/hooks/useElementRect/__workshop__/.eslintrc +0 -5
- package/src/core/hooks/useMediaIndex/__workshop__/.eslintrc +0 -5
- package/src/core/lib/styled/elements.ts +0 -135
- package/src/core/lib/styled/index.ts +0 -2
- package/src/core/lib/styled/members.ts +0 -15
- package/src/core/lib/styled/styled.ts +0 -79
- package/src/core/primitives/avatar/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/avatar/styles.ts +0 -166
- package/src/core/primitives/badge/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/badge/styles.ts +0 -19
- package/src/core/primitives/box/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/button/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/button/styles.ts +0 -116
- package/src/core/primitives/card/RootCardContext.ts +0 -3
- package/src/core/primitives/card/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/checkbox/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/code/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/code/styles.ts +0 -77
- package/src/core/primitives/container/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/container/styles.ts +0 -22
- package/src/core/primitives/flex/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/grid/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/heading/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/heading/styles.ts +0 -63
- package/src/core/primitives/heading/types.ts +0 -7
- package/src/core/primitives/inline/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/inline/styles.ts +0 -31
- package/src/core/primitives/kbd/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/label/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/label/styles.ts +0 -44
- package/src/core/primitives/popover/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/radio/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/radio/styles.ts +0 -116
- package/src/core/primitives/select/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/select/styles.ts +0 -166
- package/src/core/primitives/spinner/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/stack/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/stack/styles.ts +0 -31
- package/src/core/primitives/switch/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/switch/styles.ts +0 -172
- package/src/core/primitives/text/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/text/styles.ts +0 -73
- package/src/core/primitives/textArea/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/textInput/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/textInput/__workshop__/multipleTones.tsx +0 -20
- package/src/core/primitives/tooltip/__workshop__/.eslintrc +0 -5
- package/src/core/theme/__workshop__/.eslintrc +0 -5
- package/src/core/theme/__workshop__/build/Root.tsx +0 -367
- package/src/core/theme/__workshop__/build/helpers.ts +0 -46
- package/src/core/theme/__workshop__/build/story.tsx +0 -457
- package/src/core/theme/__workshop__/canvas.tsx +0 -350
- package/src/core/theme/__workshop__/color.tsx +0 -62
- package/src/core/theme/__workshop__/debug/story.tsx +0 -401
- package/src/core/theme/__workshop__/index.ts +0 -39
- package/src/core/theme/__workshop__/layer.tsx +0 -78
- package/src/core/theme/__workshop__/nestedProvider.tsx +0 -15
- package/src/core/utils/boundaryElement/__workshop__/.eslintrc +0 -5
- package/src/core/utils/elementQuery/__workshop__/.eslintrc +0 -5
- package/src/core/utils/layer/__workshop__/.eslintrc +0 -5
- package/src/core/utils/portal/__workshop__/.eslintrc +0 -5
- package/src/core/utils/virtualList/__workshop__/.eslintrc +0 -5
- package/src/css/primitives/selectable/rules.ts +0 -27
- package/src/css/primitives/selectable/selectable.ts +0 -9
- package/src/css/primitives/selectable/types.ts +0 -6
- package/src/theme/system/color/badge.ts +0 -20
- package/src/theme/system/theme.ts +0 -138
- package/src/theme/system/v0/color/_system.ts +0 -13
- package/theme.js +0 -2
- package/src/core/{theme → _compat/theme}/index.ts +1 -1
- package/src/core/{theme → _compat/theme}/types.ts +0 -0
- package/src/core/components/autocomplete/{__fixtures__ → __mocks__}/countries.ts +0 -0
- package/src/core/primitives/kbd/{index.tsx → index.ts} +0 -0
- package/src/css/primitives/{selectable → _selectable}/index.ts +0 -0
- package/src/theme/{system/v0 → v0}/avatar.ts +0 -0
- package/src/theme/{system/v0 → v0}/color/base.ts +0 -0
- package/src/theme/{system/v0 → v0}/color/button.ts +0 -0
- package/src/theme/{system/v0 → v0}/color/card.ts +0 -0
- package/src/theme/{system/v0 → v0}/color/index.ts +1 -1
- package/src/theme/{system/v0 → v0}/color/muted.ts +0 -0
- package/src/theme/{system/v0 → v0}/color/selectable.ts +0 -0
- package/src/theme/{system/v0 → v0}/color/solid.ts +0 -0
- package/src/theme/{system → v0}/focusRing.ts +0 -0
- package/src/theme/{system/v0 → v0}/input.ts +0 -0
- package/src/theme/{system → v0}/layer.ts +0 -0
- package/src/theme/{system → v0}/shadow.ts +0 -0
- package/src/theme/{system → v0}/styles.ts +0 -0
- package/src/theme/{system → v2}/color/_system.ts +1 -1
- /package/src/theme/{system → v2}/color/avatar.ts +0 -0
- /package/src/theme/{system → v2}/color/button.ts +0 -0
- /package/src/theme/{system → v2}/color/index.ts +0 -0
- /package/src/theme/{system → v2}/color/input.ts +0 -0
- /package/src/theme/{system → v2}/color/kbd.ts +0 -0
- /package/src/theme/{system → v2}/color/selectable.ts +0 -0
- /package/src/theme/{system → v2}/color/shadow.ts +0 -0
- /package/src/theme/{system → v2}/color/state.ts +0 -0
- /package/src/theme/{system → v2}/color/syntax.ts +0 -0
package/dist/css.d.mts
CHANGED
|
@@ -1,60 +1,70 @@
|
|
|
1
|
-
import {AvatarPosition} from '@sanity/ui'
|
|
2
1
|
import {AvatarSize} from '@sanity/ui/theme'
|
|
3
|
-
import {
|
|
4
|
-
import {ButtonTone} from '@sanity/ui'
|
|
2
|
+
import {ColorHueKey} from '@sanity/color'
|
|
5
3
|
import {ContainerWidth} from '@sanity/ui/theme'
|
|
6
|
-
import
|
|
4
|
+
import {default as CSS_2} from 'csstype'
|
|
7
5
|
import {FontCodeSize} from '@sanity/ui/theme'
|
|
8
6
|
import {FontHeadingSize} from '@sanity/ui/theme'
|
|
9
7
|
import {FontLabelSize} from '@sanity/ui/theme'
|
|
10
|
-
import {FontStyleProps as FontStyleProps_2} from '@sanity/ui/css'
|
|
11
8
|
import {FontTextSize} from '@sanity/ui/theme'
|
|
12
9
|
import {FontWeight} from '@sanity/ui/theme'
|
|
13
|
-
import {
|
|
10
|
+
import {Hue as Hue_2} from '@sanity/ui/theme'
|
|
11
|
+
import {PaletteConfig as PaletteConfig_2} from '@sanity/ui/theme'
|
|
14
12
|
import {Radius} from '@sanity/ui/theme'
|
|
15
|
-
import {
|
|
16
|
-
import {RootTheme_v2} from '@sanity/ui/theme'
|
|
17
|
-
import {SelectableTone} from '@sanity/ui'
|
|
13
|
+
import {RootTheme} from '@sanity/ui/theme'
|
|
18
14
|
import {Shadow} from '@sanity/ui/theme'
|
|
19
15
|
import {Space} from '@sanity/ui/theme'
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {WidthStyleProps as WidthStyleProps_2} from '@sanity/ui/css'
|
|
16
|
+
import type {StyledObject} from 'styled-components'
|
|
17
|
+
import {ThemeBoxShadow as ThemeBoxShadow_2} from '@sanity/ui/theme'
|
|
18
|
+
import {ThemeColorAvatarColorKey as ThemeColorAvatarColorKey_2} from '@sanity/ui/theme'
|
|
19
|
+
import {ThemeColorButtonModeKey as ThemeColorButtonModeKey_2} from '@sanity/ui/theme'
|
|
20
|
+
import {ThemeColorCardToneKey as ThemeColorCardToneKey_2} from '@sanity/ui/theme'
|
|
21
|
+
import {ThemeColorSchemeKey as ThemeColorSchemeKey_2} from '@sanity/ui/theme'
|
|
22
|
+
import {ThemeColorStateToneKey as ThemeColorStateToneKey_2} from '@sanity/ui/theme'
|
|
23
|
+
import {Tint as Tint_2} from '@sanity/ui/theme'
|
|
29
24
|
|
|
30
|
-
export declare function animatedSpinnerIcon(): string
|
|
25
|
+
export declare function animatedSpinnerIcon(): string | undefined
|
|
31
26
|
|
|
32
|
-
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare function _arrow(): string | undefined
|
|
33
29
|
|
|
34
|
-
export declare function
|
|
30
|
+
export declare function _arrowShape(): string
|
|
35
31
|
|
|
36
|
-
export declare function
|
|
32
|
+
export declare function _arrowStroke(): string
|
|
37
33
|
|
|
38
|
-
export declare function
|
|
34
|
+
export declare function avatar(props: AvatarStyleProps): string | undefined
|
|
39
35
|
|
|
40
|
-
export declare function
|
|
36
|
+
export declare function avatarArrow(): string | undefined
|
|
41
37
|
|
|
42
|
-
export declare function
|
|
38
|
+
export declare function avatarCounter(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
39
|
+
|
|
40
|
+
export declare function avatarImage(): string | undefined
|
|
41
|
+
|
|
42
|
+
export declare function avatarInitials(): string | undefined
|
|
43
|
+
|
|
44
|
+
export declare type AvatarScopedVarName =
|
|
45
|
+
| `--avatar-bg-color`
|
|
46
|
+
| `--avatar-fg-color`
|
|
47
|
+
| `--avatar-distance`
|
|
48
|
+
| `--avatar-size`
|
|
49
|
+
|
|
50
|
+
export declare function avatarStack(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
43
51
|
|
|
44
52
|
export declare interface AvatarStyleProps {
|
|
45
|
-
color:
|
|
53
|
+
color: ThemeColorAvatarColorKey_2
|
|
46
54
|
size: ResponsiveProp<AvatarSize>
|
|
47
|
-
arrowPosition?: AvatarPosition
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
/** @public */
|
|
51
|
-
export declare function badge(props: BadgeStyleProps): string
|
|
58
|
+
export declare function badge(props: BadgeStyleProps): string | undefined
|
|
52
59
|
|
|
53
60
|
/** @public */
|
|
54
|
-
export declare interface BadgeStyleProps extends
|
|
55
|
-
tone:
|
|
61
|
+
export declare interface BadgeStyleProps extends RadiusStyleProps {
|
|
62
|
+
tone: ThemeColorStateToneKey_2
|
|
56
63
|
}
|
|
57
64
|
|
|
65
|
+
/** @public */
|
|
66
|
+
export declare function border(props: BorderStyleProps): string | undefined
|
|
67
|
+
|
|
58
68
|
/** @public */
|
|
59
69
|
export declare interface BorderStyleProps {
|
|
60
70
|
border?: ResponsiveProp<boolean>
|
|
@@ -65,7 +75,7 @@ export declare interface BorderStyleProps {
|
|
|
65
75
|
}
|
|
66
76
|
|
|
67
77
|
/** @public */
|
|
68
|
-
export declare function box(props: BoxStyleProps): string
|
|
78
|
+
export declare function box(props: BoxStyleProps): string | undefined
|
|
69
79
|
|
|
70
80
|
/**
|
|
71
81
|
* @public
|
|
@@ -82,65 +92,130 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
82
92
|
|
|
83
93
|
/** @public */
|
|
84
94
|
export declare interface BoxStyleProps
|
|
85
|
-
extends
|
|
95
|
+
extends BorderStyleProps,
|
|
96
|
+
DisplayStyleProps,
|
|
97
|
+
FlexStyleProps,
|
|
86
98
|
FlexItemStyleProps,
|
|
87
99
|
GapStyleProps,
|
|
88
|
-
|
|
100
|
+
GridStyleProps,
|
|
89
101
|
GridItemStyleProps,
|
|
102
|
+
InsetStyleProps,
|
|
90
103
|
MarginStyleProps,
|
|
91
104
|
MaxWidthStyleProps,
|
|
92
105
|
OverflowStyleProps,
|
|
93
106
|
PaddingStyleProps,
|
|
94
107
|
PointerEventsStyleProps,
|
|
95
108
|
PositionStyleProps,
|
|
109
|
+
RadiusStyleProps,
|
|
96
110
|
WidthStyleProps {
|
|
97
|
-
display?: ResponsiveProp<Display>
|
|
98
111
|
height?: ResponsiveProp<BoxHeight>
|
|
112
|
+
muted?: boolean
|
|
99
113
|
outline?: 'none'
|
|
100
114
|
sizing?: ResponsiveProp<BoxSizing>
|
|
101
115
|
}
|
|
102
116
|
|
|
103
|
-
export declare function breadcrumbs(): string
|
|
117
|
+
export declare function breadcrumbs(): string | undefined
|
|
104
118
|
|
|
105
|
-
export declare function button(props: ButtonStyleProps): string
|
|
119
|
+
export declare function button(props: ButtonStyleProps): string | undefined
|
|
106
120
|
|
|
107
|
-
export declare function buttonLoadingBox(): string
|
|
121
|
+
export declare function buttonLoadingBox(): string | undefined
|
|
108
122
|
|
|
109
|
-
export declare interface ButtonStyleProps
|
|
110
|
-
|
|
111
|
-
|
|
123
|
+
export declare interface ButtonStyleProps
|
|
124
|
+
extends DisplayStyleProps,
|
|
125
|
+
FlexItemStyleProps,
|
|
126
|
+
RadiusStyleProps,
|
|
127
|
+
WidthStyleProps {
|
|
128
|
+
mode?: ThemeColorButtonModeKey_2
|
|
129
|
+
tone?: ThemeColorStateToneKey_2
|
|
112
130
|
}
|
|
113
131
|
|
|
114
|
-
export declare function card(props: CardStyleProps): string
|
|
132
|
+
export declare function card(props: CardStyleProps): string | undefined
|
|
133
|
+
|
|
134
|
+
/** @public */
|
|
135
|
+
declare interface CardColorTokens {
|
|
136
|
+
_hue: Hue
|
|
137
|
+
avatar: Record<
|
|
138
|
+
Hue,
|
|
139
|
+
{
|
|
140
|
+
_hue: Hue
|
|
141
|
+
bg: [ColorToken, ColorToken]
|
|
142
|
+
fg: [ColorToken, ColorToken]
|
|
143
|
+
}
|
|
144
|
+
>
|
|
145
|
+
backdrop: [ColorToken, ColorToken]
|
|
146
|
+
focusRing: [ColorToken, ColorToken]
|
|
147
|
+
link: {
|
|
148
|
+
fg: [ColorToken, ColorToken]
|
|
149
|
+
}
|
|
150
|
+
shadow: {
|
|
151
|
+
outline: [ColorToken, ColorToken]
|
|
152
|
+
umbra: [ColorToken, ColorToken]
|
|
153
|
+
penumbra: [ColorToken, ColorToken]
|
|
154
|
+
ambient: [ColorToken, ColorToken]
|
|
155
|
+
}
|
|
156
|
+
skeleton: {
|
|
157
|
+
from: [ColorToken, ColorToken]
|
|
158
|
+
to: [ColorToken, ColorToken]
|
|
159
|
+
}
|
|
160
|
+
token: {
|
|
161
|
+
atrule: [ColorToken, ColorToken]
|
|
162
|
+
attrName: [ColorToken, ColorToken]
|
|
163
|
+
attrValue: [ColorToken, ColorToken]
|
|
164
|
+
attribute: [ColorToken, ColorToken]
|
|
165
|
+
boolean: [ColorToken, ColorToken]
|
|
166
|
+
builtin: [ColorToken, ColorToken]
|
|
167
|
+
cdata: [ColorToken, ColorToken]
|
|
168
|
+
char: [ColorToken, ColorToken]
|
|
169
|
+
class: [ColorToken, ColorToken]
|
|
170
|
+
className: [ColorToken, ColorToken]
|
|
171
|
+
comment: [ColorToken, ColorToken]
|
|
172
|
+
constant: [ColorToken, ColorToken]
|
|
173
|
+
deleted: [ColorToken, ColorToken]
|
|
174
|
+
doctype: [ColorToken, ColorToken]
|
|
175
|
+
entity: [ColorToken, ColorToken]
|
|
176
|
+
function: [ColorToken, ColorToken]
|
|
177
|
+
hexcode: [ColorToken, ColorToken]
|
|
178
|
+
id: [ColorToken, ColorToken]
|
|
179
|
+
important: [ColorToken, ColorToken]
|
|
180
|
+
inserted: [ColorToken, ColorToken]
|
|
181
|
+
keyword: [ColorToken, ColorToken]
|
|
182
|
+
number: [ColorToken, ColorToken]
|
|
183
|
+
operator: [ColorToken, ColorToken]
|
|
184
|
+
prolog: [ColorToken, ColorToken]
|
|
185
|
+
property: [ColorToken, ColorToken]
|
|
186
|
+
pseudoClass: [ColorToken, ColorToken]
|
|
187
|
+
pseudoElement: [ColorToken, ColorToken]
|
|
188
|
+
punctuation: [ColorToken, ColorToken]
|
|
189
|
+
regex: [ColorToken, ColorToken]
|
|
190
|
+
selector: [ColorToken, ColorToken]
|
|
191
|
+
string: [ColorToken, ColorToken]
|
|
192
|
+
symbol: [ColorToken, ColorToken]
|
|
193
|
+
tag: [ColorToken, ColorToken]
|
|
194
|
+
unit: [ColorToken, ColorToken]
|
|
195
|
+
url: [ColorToken, ColorToken]
|
|
196
|
+
variable: [ColorToken, ColorToken]
|
|
197
|
+
}
|
|
198
|
+
variant: {
|
|
199
|
+
solid: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
|
|
200
|
+
tinted: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
|
|
201
|
+
}
|
|
202
|
+
}
|
|
115
203
|
|
|
204
|
+
/** @public */
|
|
116
205
|
export declare type CardScopedVarName =
|
|
117
206
|
| `--color-accent-fg`
|
|
118
|
-
| `--color-avatar
|
|
119
|
-
| `--color-avatar
|
|
207
|
+
| `--color-avatar-bg`
|
|
208
|
+
| `--color-avatar-fg`
|
|
209
|
+
| `--color-avatar-${ThemeColorAvatarColorKey_2}-bg`
|
|
210
|
+
| `--color-avatar-${ThemeColorAvatarColorKey_2}-fg`
|
|
120
211
|
| `--color-backdrop`
|
|
121
|
-
| `--color
|
|
122
|
-
| `--color-badge-dot`
|
|
123
|
-
| `--color-badge-fg`
|
|
124
|
-
| `--color-badge-icon`
|
|
125
|
-
| `--color-badge-${ThemeColorStateToneKey}-bg`
|
|
126
|
-
| `--color-badge-${ThemeColorStateToneKey}-dot`
|
|
127
|
-
| `--color-badge-${ThemeColorStateToneKey}-fg`
|
|
128
|
-
| `--color-badge-${ThemeColorStateToneKey}-icon`
|
|
212
|
+
| `--color-${ElementColorVariant}-${ThemeColorStateToneKey_2}-${ElementColorVariantKey}`
|
|
129
213
|
| `--color-bg`
|
|
130
214
|
| `--color-border`
|
|
131
215
|
| `--color-code-bg`
|
|
132
216
|
| `--color-code-fg`
|
|
133
217
|
| `--color-fg`
|
|
134
218
|
| `--color-focus-ring`
|
|
135
|
-
| `--color-icon`
|
|
136
|
-
| `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-bg`
|
|
137
|
-
| `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-border`
|
|
138
|
-
| `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-fg`
|
|
139
|
-
| `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-muted-bg`
|
|
140
|
-
| `--color-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-placeholder`
|
|
141
|
-
| `--color-kbd-bg`
|
|
142
|
-
| `--color-kbd-border`
|
|
143
|
-
| `--color-kbd-fg`
|
|
144
219
|
| `--color-link-fg`
|
|
145
220
|
| `--color-muted-bg`
|
|
146
221
|
| `--color-muted-fg`
|
|
@@ -150,83 +225,49 @@ export declare type CardScopedVarName =
|
|
|
150
225
|
| `--color-shadow-ambient`
|
|
151
226
|
| `--color-skeleton-from`
|
|
152
227
|
| `--color-skeleton-to`
|
|
153
|
-
| `--color-
|
|
154
|
-
| `--color-
|
|
155
|
-
| `--color-
|
|
156
|
-
| `--color-
|
|
157
|
-
| `--color-
|
|
158
|
-
| `--color-
|
|
159
|
-
| `--color-
|
|
160
|
-
| `--color-
|
|
161
|
-
| `--color-
|
|
162
|
-
| `--color-
|
|
163
|
-
| `--color-
|
|
164
|
-
| `--color-
|
|
165
|
-
| `--color-
|
|
166
|
-
| `--color-
|
|
167
|
-
| `--color-
|
|
168
|
-
| `--color-
|
|
169
|
-
| `--color-
|
|
170
|
-
| `--color-
|
|
171
|
-
| `--color-
|
|
172
|
-
| `--color-
|
|
173
|
-
| `--color-
|
|
174
|
-
| `--color-
|
|
175
|
-
| `--color-
|
|
176
|
-
| `--color-
|
|
177
|
-
| `--color-
|
|
178
|
-
| `--color-
|
|
179
|
-
| `--color-
|
|
180
|
-
| `--color-
|
|
181
|
-
| `--color-
|
|
182
|
-
| `--color-
|
|
183
|
-
| `--color-
|
|
184
|
-
| `--color-
|
|
185
|
-
| `--color-
|
|
186
|
-
| `--color-
|
|
187
|
-
| `--color-
|
|
188
|
-
| `--color-
|
|
189
|
-
| `--card-accent-fg-color`
|
|
190
|
-
| `--card-avatar-${ThemeColorAvatarColorKey}-bg-color`
|
|
191
|
-
| `--card-avatar-${ThemeColorAvatarColorKey}-fg-color`
|
|
192
|
-
| `--card-backdrop-color`
|
|
193
|
-
| `--card-badge-${ThemeColorStateToneKey}-bg-color`
|
|
194
|
-
| `--card-badge-${ThemeColorStateToneKey}-dot-color`
|
|
195
|
-
| `--card-badge-${ThemeColorStateToneKey}-fg-color`
|
|
196
|
-
| `--card-badge-${ThemeColorStateToneKey}-icon-color`
|
|
197
|
-
| `--card-bg-color`
|
|
198
|
-
| `--card-bg-image`
|
|
199
|
-
| `--card-bg2-color`
|
|
200
|
-
| `--card-border-color`
|
|
201
|
-
| `--card-code-bg-color`
|
|
202
|
-
| `--card-code-fg-color`
|
|
203
|
-
| `--card-fg-color`
|
|
204
|
-
| `--card-focus-ring-color`
|
|
205
|
-
| `--card-hairline-soft-color`
|
|
206
|
-
| `--card-hairline-hard-color`
|
|
207
|
-
| `--card-icon-color`
|
|
208
|
-
| `--card-kbd-bg-color`
|
|
209
|
-
| `--card-kbd-border-color`
|
|
210
|
-
| `--card-kbd-fg-color`
|
|
211
|
-
| `--card-link-color`
|
|
212
|
-
| `--card-link-fg-color`
|
|
213
|
-
| `--card-muted-bg-color`
|
|
214
|
-
| `--card-muted-fg-color`
|
|
215
|
-
| `--card-shadow-outline-color`
|
|
216
|
-
| `--card-shadow-umbra-color`
|
|
217
|
-
| `--card-shadow-penumbra-color`
|
|
218
|
-
| `--card-shadow-ambient-color`
|
|
219
|
-
| `--card-skeleton-from-color`
|
|
220
|
-
| `--card-skeleton-to-color`
|
|
221
|
-
| `--avatar-bg-color`
|
|
222
|
-
| `--avatar-fg-color`
|
|
228
|
+
| `--color-token-atrule`
|
|
229
|
+
| `--color-token-attr-name`
|
|
230
|
+
| `--color-token-attr-value`
|
|
231
|
+
| `--color-token-attribute`
|
|
232
|
+
| `--color-token-boolean`
|
|
233
|
+
| `--color-token-builtin`
|
|
234
|
+
| `--color-token-cdata`
|
|
235
|
+
| `--color-token-char`
|
|
236
|
+
| `--color-token-class`
|
|
237
|
+
| `--color-token-class-name`
|
|
238
|
+
| `--color-token-comment`
|
|
239
|
+
| `--color-token-constant`
|
|
240
|
+
| `--color-token-deleted`
|
|
241
|
+
| `--color-token-doctype`
|
|
242
|
+
| `--color-token-entity`
|
|
243
|
+
| `--color-token-function`
|
|
244
|
+
| `--color-token-hexcode`
|
|
245
|
+
| `--color-token-id`
|
|
246
|
+
| `--color-token-important`
|
|
247
|
+
| `--color-token-inserted`
|
|
248
|
+
| `--color-token-keyword`
|
|
249
|
+
| `--color-token-number`
|
|
250
|
+
| `--color-token-operator`
|
|
251
|
+
| `--color-token-prolog`
|
|
252
|
+
| `--color-token-property`
|
|
253
|
+
| `--color-token-pseudo-class`
|
|
254
|
+
| `--color-token-pseudo-element`
|
|
255
|
+
| `--color-token-punctuation`
|
|
256
|
+
| `--color-token-regex`
|
|
257
|
+
| `--color-token-selector`
|
|
258
|
+
| `--color-token-string`
|
|
259
|
+
| `--color-token-symbol`
|
|
260
|
+
| `--color-token-tag`
|
|
261
|
+
| `--color-token-unit`
|
|
262
|
+
| `--color-token-url`
|
|
263
|
+
| `--color-token-variable`
|
|
223
264
|
| `--color-checkbox-bg`
|
|
224
265
|
| `--color-checkbox-fg`
|
|
225
266
|
| `--color-checkbox-border`
|
|
226
267
|
| `--font-ascender-height`
|
|
227
|
-
| `--font-cap-height`
|
|
228
268
|
| `--font-descender-height`
|
|
229
269
|
| `--font-family`
|
|
270
|
+
| `--font-feature-settings`
|
|
230
271
|
| `--font-icon-offset`
|
|
231
272
|
| `--font-icon-size`
|
|
232
273
|
| `--font-letter-spacing`
|
|
@@ -241,59 +282,55 @@ export declare type CardScopedVarName =
|
|
|
241
282
|
| `--font-weight-bold`
|
|
242
283
|
| `--font-weight`
|
|
243
284
|
| `--fg-color`
|
|
244
|
-
| `--input-bg-color`
|
|
245
|
-
| `--input-border-color`
|
|
246
|
-
| `--input-fg-color`
|
|
247
285
|
| `--padding-top`
|
|
248
286
|
| `--padding-right`
|
|
249
287
|
| `--padding-bottom`
|
|
250
288
|
| `--padding-left`
|
|
251
289
|
|
|
252
|
-
export declare interface CardStyleProps extends BoxStyleProps,
|
|
290
|
+
export declare interface CardStyleProps extends BoxStyleProps, ShadowStyleProps {
|
|
253
291
|
checkered?: boolean
|
|
254
|
-
|
|
292
|
+
selectable?: boolean
|
|
293
|
+
scheme?: ThemeColorSchemeKey_2
|
|
294
|
+
tone?: ThemeColorCardToneKey_2 | 'inherit'
|
|
255
295
|
}
|
|
256
296
|
|
|
257
|
-
export declare function checkbox(): string
|
|
297
|
+
export declare function checkbox(): string | undefined
|
|
258
298
|
|
|
259
|
-
export declare function checkboxInput(): string
|
|
299
|
+
export declare function checkboxInput(): string | undefined
|
|
260
300
|
|
|
261
301
|
/** @public */
|
|
262
|
-
export declare function code(props: CodeStyleProps): string
|
|
302
|
+
export declare function code(props: CodeStyleProps): string | undefined
|
|
263
303
|
|
|
264
304
|
/** @public */
|
|
265
305
|
export declare type CodeSize = number
|
|
266
306
|
|
|
267
|
-
export declare function codeSkeleton(props: CodeSkeletonStyleProps): string
|
|
307
|
+
export declare function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined
|
|
268
308
|
|
|
269
309
|
export declare interface CodeSkeletonStyleProps {
|
|
270
310
|
size?: ResponsiveProp<FontCodeSize>
|
|
271
311
|
}
|
|
272
312
|
|
|
273
313
|
/** @public */
|
|
274
|
-
export declare interface CodeStyleProps extends
|
|
314
|
+
export declare interface CodeStyleProps extends FontStyleProps {
|
|
275
315
|
size?: ResponsiveProp<CodeSize>
|
|
276
316
|
}
|
|
277
317
|
|
|
318
|
+
/** @public */
|
|
278
319
|
export declare interface ColorAvatarColorVarNames {
|
|
279
320
|
bg: CSSVarName
|
|
280
321
|
fg: CSSVarName
|
|
281
322
|
}
|
|
282
323
|
|
|
324
|
+
/** @public */
|
|
283
325
|
export declare interface ColorAvatarColorVars {
|
|
284
326
|
bg: CSSVar
|
|
285
327
|
fg: CSSVar
|
|
286
328
|
}
|
|
287
329
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
export declare interface ColorBadgeToneVarNames {
|
|
291
|
-
bg: CSSVarName
|
|
292
|
-
dot: CSSVarName
|
|
293
|
-
fg: CSSVarName
|
|
294
|
-
icon: CSSVarName
|
|
295
|
-
}
|
|
330
|
+
/** @public */
|
|
331
|
+
export declare type ColorAvatarVars = Record<ThemeColorAvatarColorKey_2, ColorAvatarColorVars>
|
|
296
332
|
|
|
333
|
+
/** @public */
|
|
297
334
|
export declare interface ColorBadgeToneVars {
|
|
298
335
|
bg: CSSVar
|
|
299
336
|
dot: CSSVar
|
|
@@ -301,77 +338,123 @@ export declare interface ColorBadgeToneVars {
|
|
|
301
338
|
icon: CSSVar
|
|
302
339
|
}
|
|
303
340
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
341
|
+
/** @public */
|
|
342
|
+
export declare type ColorBadgeVars = Record<ThemeColorStateToneKey_2, ColorBadgeToneVars>
|
|
343
|
+
|
|
344
|
+
export declare type ColorCardToneScopedVarName =
|
|
345
|
+
| `--color-${ThemeColorCardToneKey_2}-accent-fg`
|
|
346
|
+
| `--color-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-bg`
|
|
347
|
+
| `--color-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-fg`
|
|
348
|
+
| `--color-${ThemeColorCardToneKey_2}-backdrop`
|
|
349
|
+
| `--color-${ThemeColorCardToneKey_2}-focus-ring`
|
|
350
|
+
| `--color-${ThemeColorCardToneKey_2}-link-fg`
|
|
351
|
+
| `--color-${ThemeColorCardToneKey_2}-muted-bg`
|
|
352
|
+
| `--color-${ThemeColorCardToneKey_2}-muted-fg`
|
|
353
|
+
| `--color-${ThemeColorCardToneKey_2}-${ElementColorVariant}-${ThemeColorStateToneKey_2}-${ElementColorVariantKey}`
|
|
354
|
+
| `--color-${ThemeColorCardToneKey_2}-shadow-outline`
|
|
355
|
+
| `--color-${ThemeColorCardToneKey_2}-shadow-umbra`
|
|
356
|
+
| `--color-${ThemeColorCardToneKey_2}-shadow-penumbra`
|
|
357
|
+
| `--color-${ThemeColorCardToneKey_2}-shadow-ambient`
|
|
358
|
+
| `--color-${ThemeColorCardToneKey_2}-skeleton-from`
|
|
359
|
+
| `--color-${ThemeColorCardToneKey_2}-skeleton-to`
|
|
360
|
+
| `--color-${ThemeColorCardToneKey_2}-token-atrule`
|
|
361
|
+
| `--color-${ThemeColorCardToneKey_2}-token-attr-name`
|
|
362
|
+
| `--color-${ThemeColorCardToneKey_2}-token-attr-value`
|
|
363
|
+
| `--color-${ThemeColorCardToneKey_2}-token-attribute`
|
|
364
|
+
| `--color-${ThemeColorCardToneKey_2}-token-boolean`
|
|
365
|
+
| `--color-${ThemeColorCardToneKey_2}-token-builtin`
|
|
366
|
+
| `--color-${ThemeColorCardToneKey_2}-token-cdata`
|
|
367
|
+
| `--color-${ThemeColorCardToneKey_2}-token-char`
|
|
368
|
+
| `--color-${ThemeColorCardToneKey_2}-token-class`
|
|
369
|
+
| `--color-${ThemeColorCardToneKey_2}-token-class-name`
|
|
370
|
+
| `--color-${ThemeColorCardToneKey_2}-token-comment`
|
|
371
|
+
| `--color-${ThemeColorCardToneKey_2}-token-constant`
|
|
372
|
+
| `--color-${ThemeColorCardToneKey_2}-token-deleted`
|
|
373
|
+
| `--color-${ThemeColorCardToneKey_2}-token-doctype`
|
|
374
|
+
| `--color-${ThemeColorCardToneKey_2}-token-entity`
|
|
375
|
+
| `--color-${ThemeColorCardToneKey_2}-token-function`
|
|
376
|
+
| `--color-${ThemeColorCardToneKey_2}-token-hexcode`
|
|
377
|
+
| `--color-${ThemeColorCardToneKey_2}-token-id`
|
|
378
|
+
| `--color-${ThemeColorCardToneKey_2}-token-important`
|
|
379
|
+
| `--color-${ThemeColorCardToneKey_2}-token-inserted`
|
|
380
|
+
| `--color-${ThemeColorCardToneKey_2}-token-keyword`
|
|
381
|
+
| `--color-${ThemeColorCardToneKey_2}-token-number`
|
|
382
|
+
| `--color-${ThemeColorCardToneKey_2}-token-operator`
|
|
383
|
+
| `--color-${ThemeColorCardToneKey_2}-token-prolog`
|
|
384
|
+
| `--color-${ThemeColorCardToneKey_2}-token-property`
|
|
385
|
+
| `--color-${ThemeColorCardToneKey_2}-token-pseudo-class`
|
|
386
|
+
| `--color-${ThemeColorCardToneKey_2}-token-pseudo-element`
|
|
387
|
+
| `--color-${ThemeColorCardToneKey_2}-token-punctuation`
|
|
388
|
+
| `--color-${ThemeColorCardToneKey_2}-token-regex`
|
|
389
|
+
| `--color-${ThemeColorCardToneKey_2}-token-selector`
|
|
390
|
+
| `--color-${ThemeColorCardToneKey_2}-token-string`
|
|
391
|
+
| `--color-${ThemeColorCardToneKey_2}-token-symbol`
|
|
392
|
+
| `--color-${ThemeColorCardToneKey_2}-token-tag`
|
|
393
|
+
| `--color-${ThemeColorCardToneKey_2}-token-unit`
|
|
394
|
+
| `--color-${ThemeColorCardToneKey_2}-token-url`
|
|
395
|
+
| `--color-${ThemeColorCardToneKey_2}-token-variable`
|
|
396
|
+
|
|
397
|
+
export declare type ColorCardVarName =
|
|
398
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-accent-fg`
|
|
399
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-bg`
|
|
400
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-avatar-${ThemeColorAvatarColorKey_2}-fg`
|
|
401
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-backdrop`
|
|
402
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-focus-ring`
|
|
403
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-link-fg`
|
|
404
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-muted-bg`
|
|
405
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-muted-fg`
|
|
406
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-${ElementColorVariant}-${ThemeColorStateToneKey_2}-${ElementColorVariantKey}`
|
|
407
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-outline`
|
|
408
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-umbra`
|
|
409
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-penumbra`
|
|
410
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-shadow-ambient`
|
|
411
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-skeleton-from`
|
|
412
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-skeleton-to`
|
|
413
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-atrule`
|
|
414
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-attr-name`
|
|
415
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-attr-value`
|
|
416
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-attribute`
|
|
417
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-boolean`
|
|
418
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-builtin`
|
|
419
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-cdata`
|
|
420
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-char`
|
|
421
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-class`
|
|
422
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-class-name`
|
|
423
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-comment`
|
|
424
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-constant`
|
|
425
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-deleted`
|
|
426
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-doctype`
|
|
427
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-entity`
|
|
428
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-function`
|
|
429
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-hexcode`
|
|
430
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-id`
|
|
431
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-important`
|
|
432
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-inserted`
|
|
433
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-keyword`
|
|
434
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-number`
|
|
435
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-operator`
|
|
436
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-prolog`
|
|
437
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-property`
|
|
438
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-pseudo-class`
|
|
439
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-pseudo-element`
|
|
440
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-punctuation`
|
|
441
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-regex`
|
|
442
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-selector`
|
|
443
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-string`
|
|
444
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-symbol`
|
|
445
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-tag`
|
|
446
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-unit`
|
|
447
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-url`
|
|
448
|
+
| `--color-${ThemeColorSchemeKey_2}-${ThemeColorCardToneKey_2}-token-variable`
|
|
355
449
|
|
|
356
|
-
|
|
450
|
+
/** @public */
|
|
451
|
+
export declare interface ColorCardVarNames {
|
|
357
452
|
accent: {
|
|
358
453
|
fg: CSSVarName
|
|
359
454
|
}
|
|
360
|
-
avatar: Record<
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
border: CSSVarName
|
|
364
|
-
code: {
|
|
365
|
-
bg: CSSVarName
|
|
366
|
-
fg: CSSVarName
|
|
367
|
-
}
|
|
368
|
-
fg: CSSVarName
|
|
369
|
-
icon: CSSVarName
|
|
370
|
-
kbd: {
|
|
371
|
-
bg: CSSVarName
|
|
372
|
-
border: CSSVarName
|
|
373
|
-
fg: CSSVarName
|
|
374
|
-
}
|
|
455
|
+
avatar: Record<ThemeColorAvatarColorKey_2, ColorAvatarColorVarNames>
|
|
456
|
+
backdrop: CSSVarName
|
|
457
|
+
focusRing: CSSVarName
|
|
375
458
|
link: {
|
|
376
459
|
fg: CSSVarName
|
|
377
460
|
}
|
|
@@ -389,7 +472,7 @@ export declare interface ColorStateVarNames {
|
|
|
389
472
|
from: CSSVarName
|
|
390
473
|
to: CSSVarName
|
|
391
474
|
}
|
|
392
|
-
|
|
475
|
+
token: {
|
|
393
476
|
atrule: CSSVarName
|
|
394
477
|
attrName: CSSVarName
|
|
395
478
|
attrValue: CSSVarName
|
|
@@ -427,28 +510,18 @@ export declare interface ColorStateVarNames {
|
|
|
427
510
|
url: CSSVarName
|
|
428
511
|
variable: CSSVarName
|
|
429
512
|
}
|
|
513
|
+
solid: ColorVariantVarNames
|
|
514
|
+
tinted: ColorVariantVarNames
|
|
430
515
|
}
|
|
431
516
|
|
|
432
|
-
|
|
517
|
+
/** @public */
|
|
518
|
+
export declare interface ColorCardVars {
|
|
433
519
|
accent: {
|
|
434
520
|
fg: CSSVar
|
|
435
521
|
}
|
|
436
522
|
avatar: ColorAvatarVars
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
border: CSSVar
|
|
440
|
-
code: {
|
|
441
|
-
bg: CSSVar
|
|
442
|
-
fg: CSSVar
|
|
443
|
-
}
|
|
444
|
-
fg: CSSVar
|
|
445
|
-
icon: CSSVar
|
|
446
|
-
input: ColorInputVars
|
|
447
|
-
kbd: {
|
|
448
|
-
bg: CSSVar
|
|
449
|
-
border: CSSVar
|
|
450
|
-
fg: CSSVar
|
|
451
|
-
}
|
|
523
|
+
backdrop: CSSVar
|
|
524
|
+
focusRing: CSSVar
|
|
452
525
|
link: {
|
|
453
526
|
fg: CSSVar
|
|
454
527
|
}
|
|
@@ -466,7 +539,7 @@ export declare interface ColorStateVars {
|
|
|
466
539
|
from: CSSVar
|
|
467
540
|
to: CSSVar
|
|
468
541
|
}
|
|
469
|
-
|
|
542
|
+
token: {
|
|
470
543
|
atrule: CSSVar
|
|
471
544
|
attrName: CSSVar
|
|
472
545
|
attrValue: CSSVar
|
|
@@ -504,51 +577,226 @@ export declare interface ColorStateVars {
|
|
|
504
577
|
url: CSSVar
|
|
505
578
|
variable: CSSVar
|
|
506
579
|
}
|
|
580
|
+
solid: ColorVariantVars
|
|
581
|
+
tinted: ColorVariantVars
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
/** @public */
|
|
585
|
+
export declare interface ColorElementVarNames {
|
|
586
|
+
bg: {
|
|
587
|
+
0: CSSVarName
|
|
588
|
+
1: CSSVarName
|
|
589
|
+
2: CSSVarName
|
|
590
|
+
3: CSSVarName
|
|
591
|
+
4: CSSVarName
|
|
592
|
+
}
|
|
593
|
+
border: {
|
|
594
|
+
0: CSSVarName
|
|
595
|
+
1: CSSVarName
|
|
596
|
+
2: CSSVarName
|
|
597
|
+
3: CSSVarName
|
|
598
|
+
4: CSSVarName
|
|
599
|
+
}
|
|
600
|
+
fg: {
|
|
601
|
+
0: CSSVarName
|
|
602
|
+
1: CSSVarName
|
|
603
|
+
2: CSSVarName
|
|
604
|
+
3: CSSVarName
|
|
605
|
+
4: CSSVarName
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/** @public */
|
|
610
|
+
export declare interface ColorElementVars {
|
|
611
|
+
bg: {
|
|
612
|
+
0: CSSVar
|
|
613
|
+
1: CSSVar
|
|
614
|
+
2: CSSVar
|
|
615
|
+
3: CSSVar
|
|
616
|
+
4: CSSVar
|
|
617
|
+
}
|
|
618
|
+
border: {
|
|
619
|
+
0: CSSVar
|
|
620
|
+
1: CSSVar
|
|
621
|
+
2: CSSVar
|
|
622
|
+
3: CSSVar
|
|
623
|
+
4: CSSVar
|
|
624
|
+
}
|
|
625
|
+
fg: {
|
|
626
|
+
0: CSSVar
|
|
627
|
+
1: CSSVar
|
|
628
|
+
2: CSSVar
|
|
629
|
+
3: CSSVar
|
|
630
|
+
4: CSSVar
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/** @public */
|
|
635
|
+
export declare interface ColorInputStateVars {
|
|
636
|
+
bg: CSSVar
|
|
637
|
+
border: CSSVar
|
|
638
|
+
fg: CSSVar
|
|
639
|
+
muted: {
|
|
640
|
+
bg: CSSVar
|
|
641
|
+
}
|
|
642
|
+
placeholder: CSSVar
|
|
507
643
|
}
|
|
508
644
|
|
|
645
|
+
/** @public */
|
|
646
|
+
export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey_2, ColorCardVarNames>
|
|
647
|
+
|
|
648
|
+
/** @public */
|
|
649
|
+
export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey_2, ColorCardVars> {}
|
|
650
|
+
|
|
651
|
+
/** @public */
|
|
652
|
+
declare type ColorToken =
|
|
653
|
+
| `black`
|
|
654
|
+
| `black/${ColorTokenOpacityValue}`
|
|
655
|
+
| `white`
|
|
656
|
+
| `white/${ColorTokenOpacityValue}`
|
|
657
|
+
| `${Hue}/${Tint}`
|
|
658
|
+
| `${Hue}/${Tint}/${ColorTokenOpacityValue}`
|
|
659
|
+
| `${Hue}/${Tint} ${number}%`
|
|
660
|
+
| `${Tint}`
|
|
661
|
+
| `${Tint}/${ColorTokenOpacityValue}`
|
|
662
|
+
| `${Tint} ${number}%`
|
|
663
|
+
|
|
664
|
+
/** @public */
|
|
665
|
+
declare type ColorTokenOpacityValue = `0` | `0.${number}` | `1`
|
|
666
|
+
|
|
667
|
+
/** @public */
|
|
668
|
+
declare type ColorTokens = Record<'*' | ThemeColorCardToneKey, CardColorTokens>
|
|
669
|
+
|
|
670
|
+
export declare interface ColorVariantVarNames
|
|
671
|
+
extends ColorElementVarNames,
|
|
672
|
+
Record<ThemeColorStateToneKey_2, ColorElementVarNames> {}
|
|
673
|
+
|
|
674
|
+
/** @public */
|
|
675
|
+
export declare interface ColorVariantVars
|
|
676
|
+
extends Record<ThemeColorStateToneKey_2, ColorElementVars>,
|
|
677
|
+
ColorElementVars {}
|
|
678
|
+
|
|
509
679
|
export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
|
|
510
680
|
|
|
681
|
+
export declare function compilePalette(config: PaletteConfig_2): string
|
|
682
|
+
|
|
511
683
|
/** @public */
|
|
512
684
|
export declare function compileSystem(): string
|
|
513
685
|
|
|
514
|
-
|
|
515
|
-
export declare function compileTheme(theme: RootTheme_v2): string
|
|
686
|
+
export declare function compileTheme(theme: RootTheme): string
|
|
516
687
|
|
|
517
|
-
export declare function composeClassNames(
|
|
688
|
+
export declare function composeClassNames(
|
|
689
|
+
...classNames: Array<string | false | undefined>
|
|
690
|
+
): string | undefined
|
|
518
691
|
|
|
519
|
-
export declare function container(props: ContainerStyleProps): string
|
|
692
|
+
export declare function container(props: ContainerStyleProps): string | undefined
|
|
520
693
|
|
|
521
694
|
export declare interface ContainerStyleProps {
|
|
522
695
|
width?: ResponsiveProp<ContainerWidth>
|
|
523
696
|
}
|
|
524
697
|
|
|
698
|
+
/**
|
|
699
|
+
* Work around types that are missing in `styled-components@6`
|
|
700
|
+
* https://github.com/styled-components/styled-components/issues/4062
|
|
701
|
+
* @internal
|
|
702
|
+
*/
|
|
703
|
+
declare type CSSObject = StyledObject<any>
|
|
704
|
+
|
|
525
705
|
/** @public */
|
|
526
706
|
export declare type CSSVar = `var(${CSSVarName})`
|
|
527
707
|
|
|
528
708
|
/** @public */
|
|
529
|
-
export declare type CSSVarName =
|
|
709
|
+
export declare type CSSVarName =
|
|
710
|
+
| AvatarScopedVarName
|
|
711
|
+
| LegacyCardScopedVarName
|
|
712
|
+
| PaletteVarName
|
|
713
|
+
| ThemeVarName
|
|
714
|
+
| ColorCardVarName
|
|
715
|
+
| ColorCardToneScopedVarName
|
|
716
|
+
| CardScopedVarName
|
|
717
|
+
| ElementColorVariantScopedVarName
|
|
718
|
+
| InputScopedVarName
|
|
719
|
+
| SwitchScopedVarName
|
|
530
720
|
|
|
531
721
|
/** @public */
|
|
532
722
|
export declare interface CustomCSSProperties extends Record<CSSVarName, string> {}
|
|
533
723
|
|
|
534
|
-
export declare function dialog(): string
|
|
724
|
+
export declare function dialog(): string | undefined
|
|
535
725
|
|
|
536
|
-
export declare function dialogCardRoot(): string
|
|
726
|
+
export declare function dialogCardRoot(): string | undefined
|
|
537
727
|
|
|
538
|
-
export declare function dialogContainer(): string
|
|
728
|
+
export declare function dialogContainer(): string | undefined
|
|
539
729
|
|
|
540
|
-
export declare function dialogContent(): string
|
|
730
|
+
export declare function dialogContent(): string | undefined
|
|
541
731
|
|
|
542
|
-
export declare function dialogFooter(): string
|
|
732
|
+
export declare function dialogFooter(): string | undefined
|
|
543
733
|
|
|
544
|
-
export declare function dialogHeader(): string
|
|
734
|
+
export declare function dialogHeader(): string | undefined
|
|
545
735
|
|
|
546
|
-
export declare function dialogLayout(): string
|
|
736
|
+
export declare function dialogLayout(): string | undefined
|
|
547
737
|
|
|
548
738
|
/**
|
|
549
739
|
* @public
|
|
550
740
|
*/
|
|
551
|
-
export declare type Display =
|
|
741
|
+
export declare type Display =
|
|
742
|
+
| 'block'
|
|
743
|
+
| 'inline-block'
|
|
744
|
+
| 'flex'
|
|
745
|
+
| 'inline-flex'
|
|
746
|
+
| 'grid'
|
|
747
|
+
| 'inline-grid'
|
|
748
|
+
| 'none'
|
|
749
|
+
|
|
750
|
+
export declare function display(props: DisplayStyleProps): string | undefined
|
|
751
|
+
|
|
752
|
+
export declare interface DisplayStyleProps {
|
|
753
|
+
display?: ResponsiveProp<Display>
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/** @public */
|
|
757
|
+
declare interface ElementColorTokens {
|
|
758
|
+
_hue: Hue
|
|
759
|
+
bg: {
|
|
760
|
+
0: [ColorToken, ColorToken]
|
|
761
|
+
4: [ColorToken, ColorToken]
|
|
762
|
+
}
|
|
763
|
+
border: {
|
|
764
|
+
0: [ColorToken, ColorToken]
|
|
765
|
+
4: [ColorToken, ColorToken]
|
|
766
|
+
}
|
|
767
|
+
fg: {
|
|
768
|
+
0: [ColorToken, ColorToken]
|
|
769
|
+
4: [ColorToken, ColorToken]
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/** @public */
|
|
774
|
+
export declare type ElementColorVariant = 'solid' | 'tinted'
|
|
775
|
+
|
|
776
|
+
/** @public */
|
|
777
|
+
export declare type ElementColorVariantKey =
|
|
778
|
+
| 'bg-0'
|
|
779
|
+
| 'bg-1'
|
|
780
|
+
| 'bg-2'
|
|
781
|
+
| 'bg-3'
|
|
782
|
+
| 'bg-4'
|
|
783
|
+
| 'border-0'
|
|
784
|
+
| 'border-1'
|
|
785
|
+
| 'border-2'
|
|
786
|
+
| 'border-3'
|
|
787
|
+
| 'border-4'
|
|
788
|
+
| 'fg-0'
|
|
789
|
+
| 'fg-1'
|
|
790
|
+
| 'fg-2'
|
|
791
|
+
| 'fg-3'
|
|
792
|
+
| 'fg-4'
|
|
793
|
+
|
|
794
|
+
/** @public */
|
|
795
|
+
export declare type ElementColorVariantScopedVarName =
|
|
796
|
+
`--color-${ElementColorVariant}-${ElementColorVariantKey}`
|
|
797
|
+
|
|
798
|
+
/** @public */
|
|
799
|
+
export declare function flex(props: FlexStyleProps): string | undefined
|
|
552
800
|
|
|
553
801
|
/**
|
|
554
802
|
* @public
|
|
@@ -560,6 +808,9 @@ export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline
|
|
|
560
808
|
*/
|
|
561
809
|
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
|
|
562
810
|
|
|
811
|
+
/** @public */
|
|
812
|
+
export declare function flexItem(props: FlexItemStyleProps): string | undefined
|
|
813
|
+
|
|
563
814
|
/** @public */
|
|
564
815
|
export declare interface FlexItemStyleProps {
|
|
565
816
|
flex?: ResponsiveProp<FlexValue>
|
|
@@ -594,6 +845,20 @@ export declare type FlexValue = number | 'none' | 'auto' | 'initial'
|
|
|
594
845
|
*/
|
|
595
846
|
export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
|
|
596
847
|
|
|
848
|
+
/** @public */
|
|
849
|
+
export declare function font(props: FontStyleProps): string | undefined
|
|
850
|
+
|
|
851
|
+
/** @public */
|
|
852
|
+
export declare interface FontSizeVarNames {
|
|
853
|
+
ascenderHeight: CSSVarName
|
|
854
|
+
descenderHeight: CSSVarName
|
|
855
|
+
fontSize: CSSVarName
|
|
856
|
+
lineHeight: CSSVarName
|
|
857
|
+
letterSpacing: CSSVarName
|
|
858
|
+
iconSize: CSSVarName
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/** @public */
|
|
597
862
|
export declare interface FontSizeVars {
|
|
598
863
|
ascenderHeight: CSSVar
|
|
599
864
|
descenderHeight: CSSVar
|
|
@@ -609,11 +874,20 @@ export declare interface FontStyleProps {
|
|
|
609
874
|
weight?: FontWeight
|
|
610
875
|
}
|
|
611
876
|
|
|
877
|
+
export declare interface FontVarNames<Size extends number> {
|
|
878
|
+
family: CSSVarName
|
|
879
|
+
sizes: Record<Size, FontSizeVarNames>
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/** @public */
|
|
612
883
|
export declare interface FontVars<Size extends number> {
|
|
613
884
|
family: CSSVar
|
|
614
885
|
sizes: Record<Size, FontSizeVars>
|
|
615
886
|
}
|
|
616
887
|
|
|
888
|
+
/** @public */
|
|
889
|
+
export declare function gap(props: GapStyleProps): string | undefined
|
|
890
|
+
|
|
617
891
|
/** @public */
|
|
618
892
|
export declare interface GapStyleProps {
|
|
619
893
|
gap?: ResponsiveProp<Space>
|
|
@@ -621,6 +895,8 @@ export declare interface GapStyleProps {
|
|
|
621
895
|
gapY?: ResponsiveProp<Space>
|
|
622
896
|
}
|
|
623
897
|
|
|
898
|
+
export declare function grid(props: GridStyleProps): string | undefined
|
|
899
|
+
|
|
624
900
|
/**
|
|
625
901
|
* @public
|
|
626
902
|
*/
|
|
@@ -636,6 +912,9 @@ export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dens
|
|
|
636
912
|
*/
|
|
637
913
|
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
638
914
|
|
|
915
|
+
/** @public */
|
|
916
|
+
export declare function gridItem(props: GridItemStyleProps): string | undefined
|
|
917
|
+
|
|
639
918
|
/**
|
|
640
919
|
* @public
|
|
641
920
|
*/
|
|
@@ -685,50 +964,145 @@ export declare interface GridStyleProps {
|
|
|
685
964
|
}
|
|
686
965
|
|
|
687
966
|
/** @public */
|
|
688
|
-
export declare function heading(props: HeadingStyleProps): string
|
|
967
|
+
export declare function heading(props: HeadingStyleProps): string | undefined
|
|
689
968
|
|
|
690
969
|
/** @public */
|
|
691
970
|
export declare type HeadingSize = number
|
|
692
971
|
|
|
693
|
-
export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string
|
|
972
|
+
export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined
|
|
694
973
|
|
|
695
974
|
export declare interface HeadingSkeletonStyleProps {
|
|
696
975
|
size?: ResponsiveProp<FontHeadingSize>
|
|
697
976
|
}
|
|
698
977
|
|
|
699
978
|
/** @public */
|
|
700
|
-
export declare interface HeadingStyleProps extends
|
|
979
|
+
export declare interface HeadingStyleProps extends FontStyleProps, FlexItemStyleProps {
|
|
701
980
|
accent?: boolean
|
|
702
981
|
muted?: boolean
|
|
703
982
|
size?: ResponsiveProp<HeadingSize>
|
|
704
983
|
}
|
|
705
984
|
|
|
985
|
+
declare type Hue = (typeof HUES)[number]
|
|
986
|
+
|
|
987
|
+
declare const HUES: readonly [
|
|
988
|
+
'gray',
|
|
989
|
+
'blue',
|
|
990
|
+
'purple',
|
|
991
|
+
'magenta',
|
|
992
|
+
'red',
|
|
993
|
+
'orange',
|
|
994
|
+
'yellow',
|
|
995
|
+
'green',
|
|
996
|
+
'cyan',
|
|
997
|
+
]
|
|
998
|
+
|
|
999
|
+
/** @internal */
|
|
1000
|
+
export declare function _input(props: InputStyleProps): string | undefined
|
|
1001
|
+
|
|
1002
|
+
export declare function _inputElement(): string
|
|
1003
|
+
|
|
1004
|
+
export declare function _inputPresentation(): string
|
|
1005
|
+
|
|
1006
|
+
/** @public */
|
|
1007
|
+
export declare type InputScopedVarName =
|
|
1008
|
+
| `--color-input-bg`
|
|
1009
|
+
| `--color-input-border`
|
|
1010
|
+
| `--color-input-fg`
|
|
1011
|
+
| `--color-input-placeholder`
|
|
1012
|
+
| `--input-ascender-height`
|
|
1013
|
+
| `--input-descender-height`
|
|
1014
|
+
| `--input-font-size`
|
|
1015
|
+
| `--input-gap`
|
|
1016
|
+
| `--input-letter-spacing`
|
|
1017
|
+
| `--input-line-height`
|
|
1018
|
+
| `--input-padding`
|
|
1019
|
+
|
|
1020
|
+
/** @public */
|
|
1021
|
+
export declare interface InputStyleProps extends RadiusStyleProps, WidthStyleProps {
|
|
1022
|
+
border?: boolean
|
|
1023
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
1024
|
+
gap?: ResponsiveProp<Space>
|
|
1025
|
+
padding?: ResponsiveProp<Space>
|
|
1026
|
+
}
|
|
1027
|
+
|
|
706
1028
|
/** @public */
|
|
707
1029
|
export declare type Inset = 0
|
|
708
1030
|
|
|
709
|
-
export declare function
|
|
1031
|
+
export declare function inset(props: InsetStyleProps): string | undefined
|
|
1032
|
+
|
|
1033
|
+
/** @public */
|
|
1034
|
+
export declare interface InsetStyleProps {
|
|
1035
|
+
inset?: ResponsiveProp<Inset>
|
|
1036
|
+
insetTop?: ResponsiveProp<Inset>
|
|
1037
|
+
insetRight?: ResponsiveProp<Inset>
|
|
1038
|
+
insetBottom?: ResponsiveProp<Inset>
|
|
1039
|
+
insetLeft?: ResponsiveProp<Inset>
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export declare function isArray(value: unknown): value is unknown[]
|
|
710
1043
|
|
|
1044
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>
|
|
1045
|
+
|
|
1046
|
+
export declare function kbd(props: KBDStyleProps): string | undefined
|
|
1047
|
+
|
|
1048
|
+
/** @public */
|
|
711
1049
|
export declare interface KBDStyleProps extends RadiusStyleProps {}
|
|
712
1050
|
|
|
713
1051
|
/** @public */
|
|
714
|
-
export declare function label(props: LabelStyleProps): string
|
|
1052
|
+
export declare function label(props: LabelStyleProps): string | undefined
|
|
715
1053
|
|
|
716
1054
|
/** @public */
|
|
717
1055
|
export declare type LabelSize = number
|
|
718
1056
|
|
|
719
|
-
export declare function labelSkeleton(props: LabelSkeletonStyleProps): string
|
|
1057
|
+
export declare function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined
|
|
720
1058
|
|
|
721
1059
|
export declare interface LabelSkeletonStyleProps {
|
|
722
1060
|
size?: ResponsiveProp<FontLabelSize>
|
|
723
1061
|
}
|
|
724
1062
|
|
|
725
1063
|
/** @public */
|
|
726
|
-
export declare interface LabelStyleProps extends
|
|
1064
|
+
export declare interface LabelStyleProps extends FontStyleProps {
|
|
727
1065
|
accent?: boolean
|
|
728
1066
|
muted?: boolean
|
|
729
1067
|
size?: ResponsiveProp<LabelSize>
|
|
730
1068
|
}
|
|
731
1069
|
|
|
1070
|
+
export declare type LegacyCardScopedVarName =
|
|
1071
|
+
| `--card-accent-fg-color`
|
|
1072
|
+
| `--card-avatar-${ThemeColorAvatarColorKey_2}-bg-color`
|
|
1073
|
+
| `--card-avatar-${ThemeColorAvatarColorKey_2}-fg-color`
|
|
1074
|
+
| `--card-backdrop-color`
|
|
1075
|
+
| `--card-badge-${ThemeColorStateToneKey_2}-bg-color`
|
|
1076
|
+
| `--card-badge-${ThemeColorStateToneKey_2}-dot-color`
|
|
1077
|
+
| `--card-badge-${ThemeColorStateToneKey_2}-fg-color`
|
|
1078
|
+
| `--card-badge-${ThemeColorStateToneKey_2}-icon-color`
|
|
1079
|
+
| `--card-bg-color`
|
|
1080
|
+
| `--card-bg-image`
|
|
1081
|
+
| `--card-bg2-color`
|
|
1082
|
+
| `--card-border-color`
|
|
1083
|
+
| `--card-code-bg-color`
|
|
1084
|
+
| `--card-code-fg-color`
|
|
1085
|
+
| `--card-fg-color`
|
|
1086
|
+
| `--card-focus-ring-color`
|
|
1087
|
+
| `--card-hairline-soft-color`
|
|
1088
|
+
| `--card-hairline-hard-color`
|
|
1089
|
+
| `--card-icon-color`
|
|
1090
|
+
| `--card-kbd-bg-color`
|
|
1091
|
+
| `--card-kbd-border-color`
|
|
1092
|
+
| `--card-kbd-fg-color`
|
|
1093
|
+
| `--card-link-color`
|
|
1094
|
+
| `--card-link-fg-color`
|
|
1095
|
+
| `--card-muted-bg-color`
|
|
1096
|
+
| `--card-muted-fg-color`
|
|
1097
|
+
| `--card-shadow-outline-color`
|
|
1098
|
+
| `--card-shadow-umbra-color`
|
|
1099
|
+
| `--card-shadow-penumbra-color`
|
|
1100
|
+
| `--card-shadow-ambient-color`
|
|
1101
|
+
| `--card-skeleton-from-color`
|
|
1102
|
+
| `--card-skeleton-to-color`
|
|
1103
|
+
|
|
1104
|
+
export declare function margin(props: MarginStyleProps): string | undefined
|
|
1105
|
+
|
|
732
1106
|
export declare interface MarginStyleProps {
|
|
733
1107
|
margin?: ResponsiveProp<number>
|
|
734
1108
|
marginTop?: ResponsiveProp<number>
|
|
@@ -739,11 +1113,17 @@ export declare interface MarginStyleProps {
|
|
|
739
1113
|
marginY?: ResponsiveProp<number>
|
|
740
1114
|
}
|
|
741
1115
|
|
|
1116
|
+
export declare function maxWidth(props: MaxWidthStyleProps): string
|
|
1117
|
+
|
|
742
1118
|
export declare interface MaxWidthStyleProps {
|
|
743
|
-
maxWidth?: ResponsiveProp<ContainerWidth
|
|
1119
|
+
maxWidth?: ResponsiveProp<ContainerWidth>
|
|
744
1120
|
}
|
|
745
1121
|
|
|
746
|
-
export declare function
|
|
1122
|
+
export declare function menu(): string | undefined
|
|
1123
|
+
|
|
1124
|
+
export declare function menuDivider(): string | undefined
|
|
1125
|
+
|
|
1126
|
+
export declare function overflow(props: OverflowStyleProps): string | undefined
|
|
747
1127
|
|
|
748
1128
|
/** @public */
|
|
749
1129
|
export declare interface OverflowStyleProps {
|
|
@@ -752,33 +1132,59 @@ export declare interface OverflowStyleProps {
|
|
|
752
1132
|
overflowY?: ResponsiveProp<BoxOverflow>
|
|
753
1133
|
}
|
|
754
1134
|
|
|
1135
|
+
export declare function padding(props: PaddingStyleProps): string | undefined
|
|
1136
|
+
|
|
755
1137
|
/** @public */
|
|
756
1138
|
export declare interface PaddingStyleProps {
|
|
757
|
-
padding?: ResponsiveProp<
|
|
758
|
-
paddingTop?: ResponsiveProp<
|
|
759
|
-
paddingRight?: ResponsiveProp<
|
|
760
|
-
paddingBottom?: ResponsiveProp<
|
|
761
|
-
paddingLeft?: ResponsiveProp<
|
|
762
|
-
paddingX?: ResponsiveProp<
|
|
763
|
-
paddingY?: ResponsiveProp<
|
|
1139
|
+
padding?: ResponsiveProp<Space>
|
|
1140
|
+
paddingTop?: ResponsiveProp<Space>
|
|
1141
|
+
paddingRight?: ResponsiveProp<Space>
|
|
1142
|
+
paddingBottom?: ResponsiveProp<Space>
|
|
1143
|
+
paddingLeft?: ResponsiveProp<Space>
|
|
1144
|
+
paddingX?: ResponsiveProp<Space>
|
|
1145
|
+
paddingY?: ResponsiveProp<Space>
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
declare type PaletteConfig = {
|
|
1149
|
+
chroma: {
|
|
1150
|
+
min: number
|
|
1151
|
+
max: number
|
|
1152
|
+
}
|
|
1153
|
+
luminosity: {
|
|
1154
|
+
min: number
|
|
1155
|
+
max: number
|
|
1156
|
+
}
|
|
1157
|
+
hues: Record<
|
|
1158
|
+
Hue,
|
|
1159
|
+
{
|
|
1160
|
+
h: number
|
|
1161
|
+
c: number
|
|
1162
|
+
}
|
|
1163
|
+
>
|
|
764
1164
|
}
|
|
765
1165
|
|
|
1166
|
+
/** @public */
|
|
1167
|
+
export declare type PaletteVarName = `--black` | `--white` | `--${Hue_2}-${Tint_2}`
|
|
1168
|
+
|
|
766
1169
|
/** @public */
|
|
767
1170
|
export declare type PointerEvents = 'auto' | 'none'
|
|
768
1171
|
|
|
1172
|
+
export declare function pointerEvents(props: PointerEventsStyleProps): string | undefined
|
|
1173
|
+
|
|
769
1174
|
/** @public */
|
|
770
1175
|
export declare interface PointerEventsStyleProps {
|
|
771
1176
|
pointerEvents?: PointerEvents
|
|
772
1177
|
}
|
|
773
1178
|
|
|
774
|
-
export declare function popover(): string
|
|
1179
|
+
export declare function popover(): string | undefined
|
|
775
1180
|
|
|
776
1181
|
/** @public */
|
|
777
1182
|
export declare type Position = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'
|
|
778
1183
|
|
|
1184
|
+
export declare function position(props: PositionStyleProps): string | undefined
|
|
1185
|
+
|
|
779
1186
|
/** @public */
|
|
780
1187
|
export declare interface PositionStyleProps {
|
|
781
|
-
inset?: ResponsiveProp<Inset>
|
|
782
1188
|
position?: ResponsiveProp<Position>
|
|
783
1189
|
}
|
|
784
1190
|
|
|
@@ -789,15 +1195,58 @@ export declare interface Properties extends CSS_2.PropertiesFallback, Partial<Cu
|
|
|
789
1195
|
'@nest'?: Record<string, Properties>
|
|
790
1196
|
}
|
|
791
1197
|
|
|
792
|
-
export declare function
|
|
1198
|
+
export declare function px(value: number): string
|
|
1199
|
+
|
|
1200
|
+
export declare function radio(): string | undefined
|
|
1201
|
+
|
|
1202
|
+
/** @public */
|
|
1203
|
+
export declare function radius(props: RadiusStyleProps): string | undefined
|
|
793
1204
|
|
|
794
1205
|
/** @public */
|
|
795
1206
|
export declare interface RadiusStyleProps {
|
|
796
1207
|
radius?: ResponsiveProp<Radius>
|
|
797
1208
|
}
|
|
798
1209
|
|
|
1210
|
+
export declare function rem(value: number): string
|
|
1211
|
+
|
|
1212
|
+
/** @public */
|
|
799
1213
|
export declare type ResponsiveProp<T> = T | Array<T | null | undefined>
|
|
800
1214
|
|
|
1215
|
+
/**
|
|
1216
|
+
* @public
|
|
1217
|
+
*/
|
|
1218
|
+
declare interface RootTheme_v2 {
|
|
1219
|
+
_version: 2
|
|
1220
|
+
avatar: ThemeAvatar_v2
|
|
1221
|
+
button: {
|
|
1222
|
+
border: {
|
|
1223
|
+
width: number
|
|
1224
|
+
}
|
|
1225
|
+
focusRing: ThemeFocusRing
|
|
1226
|
+
textWeight: ThemeFontWeightKey
|
|
1227
|
+
}
|
|
1228
|
+
card: {
|
|
1229
|
+
border: {
|
|
1230
|
+
width: number
|
|
1231
|
+
}
|
|
1232
|
+
focusRing: ThemeFocusRing
|
|
1233
|
+
shadow: {
|
|
1234
|
+
outline: number
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
color: ThemeColorSchemes_v2
|
|
1238
|
+
container: number[]
|
|
1239
|
+
font: ThemeFonts
|
|
1240
|
+
input: ThemeInput_v2
|
|
1241
|
+
layer: ThemeLayer
|
|
1242
|
+
media: number[]
|
|
1243
|
+
radius: number[]
|
|
1244
|
+
shadow: Array<ThemeShadow | null>
|
|
1245
|
+
space: number[]
|
|
1246
|
+
/** @internal */
|
|
1247
|
+
style?: ThemeStyles
|
|
1248
|
+
}
|
|
1249
|
+
|
|
801
1250
|
export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
|
|
802
1251
|
|
|
803
1252
|
/** @public */
|
|
@@ -805,67 +1254,665 @@ export declare interface Rules {
|
|
|
805
1254
|
[className: string]: Properties
|
|
806
1255
|
}
|
|
807
1256
|
|
|
808
|
-
export declare interface ScopedColorVarNames extends Omit<
|
|
809
|
-
|
|
1257
|
+
export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'avatar'> {
|
|
1258
|
+
accent: {
|
|
1259
|
+
fg: CSSVarName
|
|
1260
|
+
}
|
|
1261
|
+
avatar: Record<ThemeColorAvatarColorKey_2, ColorAvatarColorVarNames> & ColorAvatarColorVarNames
|
|
1262
|
+
bg: CSSVarName
|
|
1263
|
+
border: CSSVarName
|
|
1264
|
+
fg: CSSVarName
|
|
1265
|
+
input: {
|
|
1266
|
+
bg: CSSVarName
|
|
1267
|
+
border: CSSVarName
|
|
1268
|
+
fg: CSSVarName
|
|
1269
|
+
placeholder: CSSVarName
|
|
1270
|
+
}
|
|
810
1271
|
}
|
|
811
1272
|
|
|
812
|
-
export declare interface ScopedColorVars extends Omit<
|
|
813
|
-
|
|
1273
|
+
export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
|
|
1274
|
+
avatar: ColorAvatarVars & ColorAvatarColorVars
|
|
1275
|
+
bg: CSSVar
|
|
1276
|
+
border: CSSVar
|
|
1277
|
+
fg: CSSVar
|
|
1278
|
+
input: {
|
|
1279
|
+
bg: CSSVar
|
|
1280
|
+
border: CSSVar
|
|
1281
|
+
fg: CSSVar
|
|
1282
|
+
placeholder: CSSVar
|
|
1283
|
+
}
|
|
814
1284
|
}
|
|
815
1285
|
|
|
816
|
-
export declare function select(): string
|
|
1286
|
+
export declare function select(props: SelectStyleProps): string | undefined
|
|
817
1287
|
|
|
818
|
-
|
|
1288
|
+
/** @internal */
|
|
1289
|
+
export declare function _selectable(props: SelectableStyleProps): string | undefined
|
|
819
1290
|
|
|
1291
|
+
/** @internal */
|
|
820
1292
|
export declare interface SelectableStyleProps extends RadiusStyleProps {
|
|
821
|
-
tone?:
|
|
1293
|
+
tone?: ThemeColorStateToneKey_2
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export declare function selectPresentation(): string | undefined
|
|
1297
|
+
|
|
1298
|
+
/** @public */
|
|
1299
|
+
export declare interface SelectStyleProps extends InputStyleProps {}
|
|
1300
|
+
|
|
1301
|
+
export declare function shadow(props: ShadowStyleProps): string | undefined
|
|
1302
|
+
|
|
1303
|
+
/** @public */
|
|
1304
|
+
export declare interface ShadowStyleProps {
|
|
1305
|
+
shadow?: ResponsiveProp<Shadow>
|
|
822
1306
|
}
|
|
823
1307
|
|
|
824
1308
|
/** @beta */
|
|
825
|
-
export declare function skeleton(props: SkeletonStyleProps): string
|
|
1309
|
+
export declare function skeleton(props: SkeletonStyleProps): string | undefined
|
|
826
1310
|
|
|
827
1311
|
/** @beta */
|
|
828
1312
|
export declare interface SkeletonStyleProps extends RadiusStyleProps {}
|
|
829
1313
|
|
|
830
|
-
export declare function spinner(): string
|
|
1314
|
+
export declare function spinner(): string | undefined
|
|
1315
|
+
|
|
1316
|
+
export declare function srOnly(): string | undefined
|
|
1317
|
+
|
|
1318
|
+
export declare function _switch(): string | undefined
|
|
831
1319
|
|
|
832
|
-
export declare function
|
|
1320
|
+
export declare function _switchElement(): string | undefined
|
|
1321
|
+
|
|
1322
|
+
export declare function _switchPresentation(): string | undefined
|
|
833
1323
|
|
|
834
1324
|
/** @public */
|
|
835
|
-
export declare
|
|
1325
|
+
export declare type SwitchScopedVarName =
|
|
1326
|
+
| `--switch-bg-color`
|
|
1327
|
+
| `--switch-fg-color`
|
|
1328
|
+
| '--switch-thumb-offset'
|
|
1329
|
+
| '--switch-thumb-size'
|
|
1330
|
+
|
|
1331
|
+
export declare function _switchThumb(): string | undefined
|
|
1332
|
+
|
|
1333
|
+
export declare function _switchTrack(): string | undefined
|
|
1334
|
+
|
|
1335
|
+
/** @public */
|
|
1336
|
+
export declare function text(props: TextStyleProps): string | undefined
|
|
836
1337
|
|
|
837
1338
|
/**
|
|
838
1339
|
* @public
|
|
839
1340
|
*/
|
|
840
1341
|
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
841
1342
|
|
|
842
|
-
export declare function textArea(): string
|
|
1343
|
+
export declare function textArea(props: TextAreaStyleProps): string | undefined
|
|
843
1344
|
|
|
844
|
-
|
|
1345
|
+
/** @public */
|
|
1346
|
+
export declare interface TextAreaStyleProps extends InputStyleProps {}
|
|
845
1347
|
|
|
846
|
-
export declare function
|
|
1348
|
+
export declare function textInput(props: TextInputStyleProps): string | undefined
|
|
847
1349
|
|
|
848
1350
|
/** @public */
|
|
849
|
-
export declare interface TextInputStyleProps {
|
|
850
|
-
|
|
851
|
-
|
|
1351
|
+
export declare interface TextInputStyleProps extends InputStyleProps {}
|
|
1352
|
+
|
|
1353
|
+
export declare function textOverflow(props: TextOverflowStyleProps): string | undefined
|
|
1354
|
+
|
|
1355
|
+
export declare interface TextOverflowStyleProps {
|
|
1356
|
+
/**
|
|
1357
|
+
* Controls how overflowing text is treated.
|
|
1358
|
+
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1359
|
+
* @beta
|
|
1360
|
+
*/
|
|
1361
|
+
textOverflow?: 'ellipsis' | 'clip'
|
|
852
1362
|
}
|
|
853
1363
|
|
|
854
1364
|
export declare type TextSize = number
|
|
855
1365
|
|
|
856
|
-
export declare function textSkeleton(props: TextSkeletonStyleProps): string
|
|
1366
|
+
export declare function textSkeleton(props: TextSkeletonStyleProps): string | undefined
|
|
857
1367
|
|
|
858
1368
|
export declare interface TextSkeletonStyleProps {
|
|
859
1369
|
size?: ResponsiveProp<FontTextSize>
|
|
860
1370
|
}
|
|
861
1371
|
|
|
862
1372
|
/** @public */
|
|
863
|
-
export declare interface TextStyleProps extends
|
|
1373
|
+
export declare interface TextStyleProps extends FlexItemStyleProps, FontStyleProps {
|
|
864
1374
|
accent?: boolean
|
|
865
1375
|
muted?: boolean
|
|
866
1376
|
size?: ResponsiveProp<TextSize>
|
|
867
1377
|
}
|
|
868
1378
|
|
|
1379
|
+
/** @public */
|
|
1380
|
+
declare const THEME_COLOR_AVATAR_COLORS: ColorHueKey[]
|
|
1381
|
+
|
|
1382
|
+
/** @public */
|
|
1383
|
+
declare const THEME_COLOR_BLEND_MODES: readonly ['multiply', 'screen']
|
|
1384
|
+
|
|
1385
|
+
/** @public */
|
|
1386
|
+
declare const THEME_COLOR_BUTTON_MODES: readonly ['default', 'ghost', 'bleed']
|
|
1387
|
+
|
|
1388
|
+
/** @public */
|
|
1389
|
+
declare const THEME_COLOR_CARD_TONES: readonly [
|
|
1390
|
+
'transparent',
|
|
1391
|
+
'default',
|
|
1392
|
+
'neutral',
|
|
1393
|
+
'primary',
|
|
1394
|
+
'suggest',
|
|
1395
|
+
'positive',
|
|
1396
|
+
'caution',
|
|
1397
|
+
'critical',
|
|
1398
|
+
]
|
|
1399
|
+
|
|
1400
|
+
/** @public */
|
|
1401
|
+
declare const THEME_COLOR_INPUT_MODES: readonly ['default', 'invalid']
|
|
1402
|
+
|
|
1403
|
+
/** @public */
|
|
1404
|
+
declare const THEME_COLOR_INPUT_STATES: readonly ['enabled', 'hovered', 'readOnly', 'disabled']
|
|
1405
|
+
|
|
1406
|
+
/** @public */
|
|
1407
|
+
declare const THEME_COLOR_SCHEMES: readonly ['light', 'dark']
|
|
1408
|
+
|
|
1409
|
+
/** @public */
|
|
1410
|
+
declare const THEME_COLOR_STATE_TONES: readonly [
|
|
1411
|
+
'default',
|
|
1412
|
+
'neutral',
|
|
1413
|
+
'primary',
|
|
1414
|
+
'suggest',
|
|
1415
|
+
'positive',
|
|
1416
|
+
'caution',
|
|
1417
|
+
'critical',
|
|
1418
|
+
]
|
|
1419
|
+
|
|
1420
|
+
/** @public */
|
|
1421
|
+
declare const THEME_COLOR_STATES: readonly ['enabled', 'hovered', 'pressed', 'selected', 'disabled']
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Supersedes `RootTheme` and `RootTheme_v2`.
|
|
1425
|
+
*
|
|
1426
|
+
* @public
|
|
1427
|
+
*/
|
|
1428
|
+
declare interface Theme_v3 {
|
|
1429
|
+
_version: 3
|
|
1430
|
+
_palette: PaletteConfig
|
|
1431
|
+
_tokens: Tokens
|
|
1432
|
+
avatar: ThemeAvatar_v2
|
|
1433
|
+
button: {
|
|
1434
|
+
border: {
|
|
1435
|
+
width: number
|
|
1436
|
+
}
|
|
1437
|
+
focusRing: ThemeFocusRing
|
|
1438
|
+
textWeight: ThemeFontWeightKey
|
|
1439
|
+
}
|
|
1440
|
+
card: {
|
|
1441
|
+
border: {
|
|
1442
|
+
width: number
|
|
1443
|
+
}
|
|
1444
|
+
focusRing: ThemeFocusRing
|
|
1445
|
+
shadow: {
|
|
1446
|
+
outline: number
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
color: ThemeColor_v3
|
|
1450
|
+
container: number[]
|
|
1451
|
+
font: ThemeFonts
|
|
1452
|
+
input: ThemeInput_v2
|
|
1453
|
+
layer: ThemeLayer
|
|
1454
|
+
media: number[]
|
|
1455
|
+
radius: number[]
|
|
1456
|
+
shadow: Array<ThemeShadow | null>
|
|
1457
|
+
space: number[]
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* @public
|
|
1462
|
+
*/
|
|
1463
|
+
declare interface ThemeAvatar_v2 {
|
|
1464
|
+
sizes: {
|
|
1465
|
+
/** Spacing between avatars in an <AvatarStack> component (px) */
|
|
1466
|
+
distance: number
|
|
1467
|
+
/** Diameter of the avatar (px) */
|
|
1468
|
+
size: number
|
|
1469
|
+
}[]
|
|
1470
|
+
focusRing: ThemeFocusRing
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* @public
|
|
1475
|
+
*/
|
|
1476
|
+
declare type ThemeBoxShadow = [number, number, number, number]
|
|
1477
|
+
|
|
1478
|
+
declare type ThemeColor_v3 = Record<ThemeColorSchemeKey, ThemeColorScheme_v3>
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* @public
|
|
1482
|
+
*/
|
|
1483
|
+
declare type ThemeColorAvatar_v2 = Record<ThemeColorAvatarColorKey, ThemeColorAvatarHue_v2>
|
|
1484
|
+
|
|
1485
|
+
/** @public */
|
|
1486
|
+
declare type ThemeColorAvatarColorKey = (typeof THEME_COLOR_AVATAR_COLORS)[number]
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* @public
|
|
1490
|
+
*/
|
|
1491
|
+
declare interface ThemeColorAvatarHue_v2 {
|
|
1492
|
+
_blend?: ThemeColorBlendModeKey
|
|
1493
|
+
bg: string
|
|
1494
|
+
fg: string
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* @public
|
|
1499
|
+
*/
|
|
1500
|
+
declare type ThemeColorBadge_v2 = Record<ThemeColorStateToneKey, ThemeColorBadgeTone_v2>
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* @public
|
|
1504
|
+
*/
|
|
1505
|
+
declare interface ThemeColorBadgeTone_v2 {
|
|
1506
|
+
bg: string
|
|
1507
|
+
fg: string
|
|
1508
|
+
dot: string
|
|
1509
|
+
icon: string
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/** @public */
|
|
1513
|
+
declare type ThemeColorBlendModeKey = (typeof THEME_COLOR_BLEND_MODES)[number]
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* @public
|
|
1517
|
+
*/
|
|
1518
|
+
declare type ThemeColorButton_v2 = Record<ThemeColorButtonModeKey, ThemeColorButtonMode_v2>
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* @public
|
|
1522
|
+
*/
|
|
1523
|
+
declare type ThemeColorButtonMode_v2 = Record<ThemeColorStateToneKey, ThemeColorButtonTone_v2>
|
|
1524
|
+
|
|
1525
|
+
/** @public */
|
|
1526
|
+
declare type ThemeColorButtonModeKey = (typeof THEME_COLOR_BUTTON_MODES)[number]
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* @public
|
|
1530
|
+
*/
|
|
1531
|
+
declare type ThemeColorButtonTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* @public
|
|
1535
|
+
*/
|
|
1536
|
+
declare interface ThemeColorCard_v2 extends ThemeColorState_v2 {
|
|
1537
|
+
/** @internal */
|
|
1538
|
+
_blend: ThemeColorBlendModeKey
|
|
1539
|
+
_dark: boolean
|
|
1540
|
+
backdrop: string
|
|
1541
|
+
button: ThemeColorButton_v2
|
|
1542
|
+
focusRing: string
|
|
1543
|
+
input: ThemeColorInput_v2
|
|
1544
|
+
selectable: ThemeColorSelectable_v2
|
|
1545
|
+
shadow: ThemeColorShadow
|
|
1546
|
+
syntax: ThemeColorSyntax
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
declare interface ThemeColorCard_v3 {
|
|
1550
|
+
_hue: Hue
|
|
1551
|
+
avatar: ThemeColorAvatar_v2
|
|
1552
|
+
backdrop: string
|
|
1553
|
+
focusRing: string
|
|
1554
|
+
shadow: {
|
|
1555
|
+
outline: string
|
|
1556
|
+
umbra: string
|
|
1557
|
+
penumbra: string
|
|
1558
|
+
ambient: string
|
|
1559
|
+
}
|
|
1560
|
+
token: {
|
|
1561
|
+
atrule: string
|
|
1562
|
+
attrName: string
|
|
1563
|
+
attrValue: string
|
|
1564
|
+
attribute: string
|
|
1565
|
+
boolean: string
|
|
1566
|
+
builtin: string
|
|
1567
|
+
cdata: string
|
|
1568
|
+
char: string
|
|
1569
|
+
class: string
|
|
1570
|
+
className: string
|
|
1571
|
+
comment: string
|
|
1572
|
+
constant: string
|
|
1573
|
+
deleted: string
|
|
1574
|
+
doctype: string
|
|
1575
|
+
entity: string
|
|
1576
|
+
function: string
|
|
1577
|
+
hexcode: string
|
|
1578
|
+
id: string
|
|
1579
|
+
important: string
|
|
1580
|
+
inserted: string
|
|
1581
|
+
keyword: string
|
|
1582
|
+
number: string
|
|
1583
|
+
operator: string
|
|
1584
|
+
prolog: string
|
|
1585
|
+
property: string
|
|
1586
|
+
pseudoClass: string
|
|
1587
|
+
pseudoElement: string
|
|
1588
|
+
punctuation: string
|
|
1589
|
+
regex: string
|
|
1590
|
+
selector: string
|
|
1591
|
+
string: string
|
|
1592
|
+
symbol: string
|
|
1593
|
+
tag: string
|
|
1594
|
+
unit: string
|
|
1595
|
+
url: string
|
|
1596
|
+
variable: string
|
|
1597
|
+
}
|
|
1598
|
+
skeleton: {
|
|
1599
|
+
from: string
|
|
1600
|
+
to: string
|
|
1601
|
+
}
|
|
1602
|
+
variant: Record<ThemeColorVariantKey, ThemeColorVariant>
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
/** @public */
|
|
1606
|
+
declare type ThemeColorCardToneKey = (typeof THEME_COLOR_CARD_TONES)[number]
|
|
1607
|
+
|
|
1608
|
+
declare interface ThemeColorElement {
|
|
1609
|
+
_hue: Hue
|
|
1610
|
+
bg: {
|
|
1611
|
+
0: string
|
|
1612
|
+
4: string
|
|
1613
|
+
}
|
|
1614
|
+
border: {
|
|
1615
|
+
0: string
|
|
1616
|
+
4: string
|
|
1617
|
+
}
|
|
1618
|
+
fg: {
|
|
1619
|
+
0: string
|
|
1620
|
+
4: string
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
* @public
|
|
1626
|
+
*/
|
|
1627
|
+
declare type ThemeColorInput_v2 = Record<ThemeColorInputModeKey, ThemeColorInputMode_v2>
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* @public
|
|
1631
|
+
*/
|
|
1632
|
+
declare type ThemeColorInputMode_v2 = Record<ThemeColorInputStateKey, ThemeColorInputState_v2>
|
|
1633
|
+
|
|
1634
|
+
/** @public */
|
|
1635
|
+
declare type ThemeColorInputModeKey = (typeof THEME_COLOR_INPUT_MODES)[number]
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* @public
|
|
1639
|
+
*/
|
|
1640
|
+
declare interface ThemeColorInputState_v2 {
|
|
1641
|
+
_blend?: ThemeColorBlendModeKey
|
|
1642
|
+
bg: string
|
|
1643
|
+
border: string
|
|
1644
|
+
fg: string
|
|
1645
|
+
muted: {
|
|
1646
|
+
bg: string
|
|
1647
|
+
}
|
|
1648
|
+
placeholder: string
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
/** @public */
|
|
1652
|
+
declare type ThemeColorInputStateKey = (typeof THEME_COLOR_INPUT_STATES)[number]
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* @public
|
|
1656
|
+
*/
|
|
1657
|
+
declare interface ThemeColorKBD {
|
|
1658
|
+
bg: string
|
|
1659
|
+
fg: string
|
|
1660
|
+
border: string
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* @public
|
|
1665
|
+
*/
|
|
1666
|
+
declare type ThemeColorScheme_v2 = Record<ThemeColorCardToneKey, ThemeColorCard_v2>
|
|
1667
|
+
|
|
1668
|
+
declare interface ThemeColorScheme_v3 {
|
|
1669
|
+
card: Record<ThemeColorCardToneKey, ThemeColorCard_v3>
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* @public
|
|
1674
|
+
*/
|
|
1675
|
+
declare type ThemeColorSchemeKey = (typeof THEME_COLOR_SCHEMES)[number]
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* @public
|
|
1679
|
+
*/
|
|
1680
|
+
declare type ThemeColorSchemes_v2 = Record<ThemeColorSchemeKey, ThemeColorScheme_v2>
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* @public
|
|
1684
|
+
*/
|
|
1685
|
+
declare type ThemeColorSelectable_v2 = Record<ThemeColorStateToneKey, ThemeColorSelectableTone_v2>
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* @public
|
|
1689
|
+
*/
|
|
1690
|
+
declare type ThemeColorSelectableTone_v2 = Record<ThemeColorStateKey, ThemeColorState_v2>
|
|
1691
|
+
|
|
1692
|
+
/** @public */
|
|
1693
|
+
declare interface ThemeColorShadow {
|
|
1694
|
+
outline: string
|
|
1695
|
+
umbra: string
|
|
1696
|
+
penumbra: string
|
|
1697
|
+
ambient: string
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* @public
|
|
1702
|
+
*/
|
|
1703
|
+
declare interface ThemeColorState_v2 {
|
|
1704
|
+
/** @internal */
|
|
1705
|
+
_blend?: ThemeColorBlendModeKey
|
|
1706
|
+
accent: {
|
|
1707
|
+
fg: string
|
|
1708
|
+
}
|
|
1709
|
+
/**
|
|
1710
|
+
* @internal This may be removed in a future release
|
|
1711
|
+
* */
|
|
1712
|
+
avatar: ThemeColorAvatar_v2
|
|
1713
|
+
/**
|
|
1714
|
+
* @internal This may be removed in a future release
|
|
1715
|
+
* */
|
|
1716
|
+
badge: ThemeColorBadge_v2
|
|
1717
|
+
bg: string
|
|
1718
|
+
border: string
|
|
1719
|
+
code: {
|
|
1720
|
+
bg: string
|
|
1721
|
+
fg: string
|
|
1722
|
+
}
|
|
1723
|
+
fg: string
|
|
1724
|
+
icon: string
|
|
1725
|
+
kbd: ThemeColorKBD
|
|
1726
|
+
link: {
|
|
1727
|
+
fg: string
|
|
1728
|
+
}
|
|
1729
|
+
muted: {
|
|
1730
|
+
bg: string
|
|
1731
|
+
fg: string
|
|
1732
|
+
}
|
|
1733
|
+
skeleton: {
|
|
1734
|
+
from: string
|
|
1735
|
+
to: string
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
/** @public */
|
|
1740
|
+
declare type ThemeColorStateKey = (typeof THEME_COLOR_STATES)[number]
|
|
1741
|
+
|
|
1742
|
+
/** @public */
|
|
1743
|
+
declare type ThemeColorStateToneKey = (typeof THEME_COLOR_STATE_TONES)[number]
|
|
1744
|
+
|
|
1745
|
+
/**
|
|
1746
|
+
* @public
|
|
1747
|
+
*/
|
|
1748
|
+
declare interface ThemeColorSyntax {
|
|
1749
|
+
atrule: string
|
|
1750
|
+
attrName: string
|
|
1751
|
+
attrValue: string
|
|
1752
|
+
attribute: string
|
|
1753
|
+
boolean: string
|
|
1754
|
+
builtin: string
|
|
1755
|
+
cdata: string
|
|
1756
|
+
char: string
|
|
1757
|
+
class: string
|
|
1758
|
+
className: string
|
|
1759
|
+
comment: string
|
|
1760
|
+
constant: string
|
|
1761
|
+
deleted: string
|
|
1762
|
+
doctype: string
|
|
1763
|
+
entity: string
|
|
1764
|
+
function: string
|
|
1765
|
+
hexcode: string
|
|
1766
|
+
id: string
|
|
1767
|
+
important: string
|
|
1768
|
+
inserted: string
|
|
1769
|
+
keyword: string
|
|
1770
|
+
number: string
|
|
1771
|
+
operator: string
|
|
1772
|
+
prolog: string
|
|
1773
|
+
property: string
|
|
1774
|
+
pseudoClass: string
|
|
1775
|
+
pseudoElement: string
|
|
1776
|
+
punctuation: string
|
|
1777
|
+
regex: string
|
|
1778
|
+
selector: string
|
|
1779
|
+
string: string
|
|
1780
|
+
symbol: string
|
|
1781
|
+
tag: string
|
|
1782
|
+
unit: string
|
|
1783
|
+
url: string
|
|
1784
|
+
variable: string
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
declare type ThemeColorVariant = Record<ThemeColorStateToneKey, ThemeColorElement>
|
|
1788
|
+
|
|
1789
|
+
declare type ThemeColorVariantKey = 'tinted' | 'solid'
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* @public
|
|
1793
|
+
*/
|
|
1794
|
+
declare interface ThemeFocusRing {
|
|
1795
|
+
offset: number
|
|
1796
|
+
width: number
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* @public
|
|
1801
|
+
*/
|
|
1802
|
+
declare interface ThemeFont {
|
|
1803
|
+
family: string
|
|
1804
|
+
featureSettings?: string
|
|
1805
|
+
weights: ThemeFontWeight
|
|
1806
|
+
sizes: ThemeFontSize[]
|
|
1807
|
+
/** @deprecated No longer supported. */
|
|
1808
|
+
horizontalOffset?: number
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* @public
|
|
1813
|
+
*/
|
|
1814
|
+
declare interface ThemeFonts {
|
|
1815
|
+
code: ThemeFont
|
|
1816
|
+
heading: ThemeFont
|
|
1817
|
+
label: ThemeFont
|
|
1818
|
+
text: ThemeFont
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* @public
|
|
1823
|
+
*/
|
|
1824
|
+
declare interface ThemeFontSize {
|
|
1825
|
+
ascenderHeight: number
|
|
1826
|
+
descenderHeight: number
|
|
1827
|
+
fontSize: number
|
|
1828
|
+
iconSize: number
|
|
1829
|
+
letterSpacing: number
|
|
1830
|
+
lineHeight: number
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* @public
|
|
1835
|
+
*/
|
|
1836
|
+
declare interface ThemeFontWeight {
|
|
1837
|
+
regular: number
|
|
1838
|
+
medium: number
|
|
1839
|
+
semibold: number
|
|
1840
|
+
bold: number
|
|
1841
|
+
}
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* @public
|
|
1845
|
+
*/
|
|
1846
|
+
declare type ThemeFontWeightKey = 'regular' | 'medium' | 'semibold' | 'bold'
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* @public
|
|
1850
|
+
*/
|
|
1851
|
+
declare interface ThemeInput_v2 {
|
|
1852
|
+
checkbox: {
|
|
1853
|
+
size: number
|
|
1854
|
+
focusRing: ThemeFocusRing
|
|
1855
|
+
}
|
|
1856
|
+
radio: {
|
|
1857
|
+
size: number
|
|
1858
|
+
markSize: number
|
|
1859
|
+
focusRing: ThemeFocusRing
|
|
1860
|
+
}
|
|
1861
|
+
switch: {
|
|
1862
|
+
width: number
|
|
1863
|
+
height: number
|
|
1864
|
+
padding: number
|
|
1865
|
+
transitionDurationMs: number
|
|
1866
|
+
transitionTimingFunction: string
|
|
1867
|
+
focusRing: ThemeFocusRing
|
|
1868
|
+
}
|
|
1869
|
+
border: {
|
|
1870
|
+
width: number
|
|
1871
|
+
}
|
|
1872
|
+
select: {
|
|
1873
|
+
focusRing: ThemeFocusRing
|
|
1874
|
+
}
|
|
1875
|
+
text: {
|
|
1876
|
+
focusRing: ThemeFocusRing
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* @public
|
|
1882
|
+
*/
|
|
1883
|
+
declare interface ThemeLayer {
|
|
1884
|
+
dialog: {
|
|
1885
|
+
zOffset: number
|
|
1886
|
+
}
|
|
1887
|
+
popover: {
|
|
1888
|
+
zOffset: number
|
|
1889
|
+
}
|
|
1890
|
+
tooltip: {
|
|
1891
|
+
zOffset: number
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* @public
|
|
1897
|
+
*/
|
|
1898
|
+
declare interface ThemeShadow {
|
|
1899
|
+
umbra: ThemeBoxShadow
|
|
1900
|
+
penumbra: ThemeBoxShadow
|
|
1901
|
+
ambient: ThemeBoxShadow
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* @internal
|
|
1906
|
+
*/
|
|
1907
|
+
declare interface ThemeStyles {
|
|
1908
|
+
button?: {
|
|
1909
|
+
root?: CSSObject
|
|
1910
|
+
}
|
|
1911
|
+
card?: {
|
|
1912
|
+
root?: CSSObject
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
|
|
869
1916
|
/** @public */
|
|
870
1917
|
export declare type ThemeVarName =
|
|
871
1918
|
| `--avatar-focus-ring-offset`
|
|
@@ -879,89 +1926,10 @@ export declare type ThemeVarName =
|
|
|
879
1926
|
| `--card-border-width`
|
|
880
1927
|
| `--card-focus-ring-offset`
|
|
881
1928
|
| `--card-focus-ring-width`
|
|
882
|
-
| `--
|
|
883
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-accent-fg`
|
|
884
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
885
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
886
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-backdrop`
|
|
887
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-bg`
|
|
888
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-dot`
|
|
889
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-fg`
|
|
890
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-badge-${ThemeColorStateToneKey}-icon`
|
|
891
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-bg`
|
|
892
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-border`
|
|
893
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-accent-fg`
|
|
894
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-bg`
|
|
895
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-border`
|
|
896
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-code-bg`
|
|
897
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-code-fg`
|
|
898
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-fg`
|
|
899
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-icon`
|
|
900
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-link-fg`
|
|
901
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-muted-bg`
|
|
902
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-muted-fg`
|
|
903
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-skeleton-from`
|
|
904
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-button-${ThemeColorButtonModeKey}-${ThemeColorStateToneKey}-${ThemeColorStateKey}-skeleton-to`
|
|
905
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-bg`
|
|
906
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-fg`
|
|
907
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-focus-ring`
|
|
908
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-icon`
|
|
909
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-kbd-bg`
|
|
910
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-kbd-border`
|
|
911
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-kbd-fg`
|
|
912
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-link-fg`
|
|
913
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-bg`
|
|
914
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-fg`
|
|
915
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-from`
|
|
916
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-to`
|
|
917
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-bg`
|
|
918
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-border`
|
|
919
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-fg`
|
|
920
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-muted-bg`
|
|
921
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-input-${ThemeColorInputModeKey}-${ThemeColorInputStateKey}-placeholder`
|
|
922
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-outline`
|
|
923
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-umbra`
|
|
924
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-penumbra`
|
|
925
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-ambient`
|
|
926
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-atrule`
|
|
927
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-attrName`
|
|
928
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-attrValue`
|
|
929
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-attribute`
|
|
930
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-boolean`
|
|
931
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-builtin`
|
|
932
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-cdata`
|
|
933
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-char`
|
|
934
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-class`
|
|
935
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-className`
|
|
936
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-comment`
|
|
937
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-constant`
|
|
938
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-deleted`
|
|
939
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-doctype`
|
|
940
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-entity`
|
|
941
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-function`
|
|
942
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-hexcode`
|
|
943
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-id`
|
|
944
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-important`
|
|
945
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-inserted`
|
|
946
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-keyword`
|
|
947
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-number`
|
|
948
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-operator`
|
|
949
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-prolog`
|
|
950
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-property`
|
|
951
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-pseudoClass`
|
|
952
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-pseudoElement`
|
|
953
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-punctuation`
|
|
954
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-regex`
|
|
955
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-selector`
|
|
956
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-string`
|
|
957
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-symbol`
|
|
958
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-tag`
|
|
959
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-unit`
|
|
960
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-url`
|
|
961
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-syntax-variable`
|
|
962
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-fg`
|
|
1929
|
+
| `--shadow-outline`
|
|
963
1930
|
| `--container-${ContainerWidth}`
|
|
964
1931
|
| `--font-code-family`
|
|
1932
|
+
| `--font-code-feature-settings`
|
|
965
1933
|
| `--font-code-weight-${FontWeight}`
|
|
966
1934
|
| `--font-code-${FontCodeSize}-ascender-height`
|
|
967
1935
|
| `--font-code-${FontCodeSize}-descender-height`
|
|
@@ -970,6 +1938,7 @@ export declare type ThemeVarName =
|
|
|
970
1938
|
| `--font-code-${FontCodeSize}-letter-spacing`
|
|
971
1939
|
| `--font-code-${FontCodeSize}-icon-size`
|
|
972
1940
|
| `--font-heading-family`
|
|
1941
|
+
| `--font-heading-feature-settings`
|
|
973
1942
|
| `--font-heading-weight-${FontWeight}`
|
|
974
1943
|
| `--font-heading-${FontHeadingSize}-ascender-height`
|
|
975
1944
|
| `--font-heading-${FontHeadingSize}-descender-height`
|
|
@@ -978,6 +1947,7 @@ export declare type ThemeVarName =
|
|
|
978
1947
|
| `--font-heading-${FontHeadingSize}-letter-spacing`
|
|
979
1948
|
| `--font-heading-${FontHeadingSize}-icon-size`
|
|
980
1949
|
| `--font-label-family`
|
|
1950
|
+
| `--font-label-feature-settings`
|
|
981
1951
|
| `--font-label-weight-${FontWeight}`
|
|
982
1952
|
| `--font-label-${FontLabelSize}-ascender-height`
|
|
983
1953
|
| `--font-label-${FontLabelSize}-descender-height`
|
|
@@ -986,6 +1956,7 @@ export declare type ThemeVarName =
|
|
|
986
1956
|
| `--font-label-${FontLabelSize}-letter-spacing`
|
|
987
1957
|
| `--font-label-${FontLabelSize}-icon-size`
|
|
988
1958
|
| `--font-text-family`
|
|
1959
|
+
| `--font-text-feature-settings`
|
|
989
1960
|
| `--font-text-weight-${FontWeight}`
|
|
990
1961
|
| `--font-text-${FontTextSize}-ascender-height`
|
|
991
1962
|
| `--font-text-${FontTextSize}-descender-height`
|
|
@@ -1020,43 +1991,145 @@ export declare type ThemeVarName =
|
|
|
1020
1991
|
| `--shadow-${Shadow}-penumbra`
|
|
1021
1992
|
| `--shadow-${Shadow}-ambient`
|
|
1022
1993
|
|
|
1023
|
-
|
|
1994
|
+
declare type Tint = (typeof TINTS)[number]
|
|
1995
|
+
|
|
1996
|
+
declare const TINTS: readonly [
|
|
1997
|
+
50,
|
|
1998
|
+
100,
|
|
1999
|
+
150,
|
|
2000
|
+
200,
|
|
2001
|
+
250,
|
|
2002
|
+
300,
|
|
2003
|
+
350,
|
|
2004
|
+
400,
|
|
2005
|
+
450,
|
|
2006
|
+
500,
|
|
2007
|
+
550,
|
|
2008
|
+
600,
|
|
2009
|
+
650,
|
|
2010
|
+
700,
|
|
2011
|
+
750,
|
|
2012
|
+
800,
|
|
2013
|
+
850,
|
|
2014
|
+
900,
|
|
2015
|
+
950,
|
|
2016
|
+
]
|
|
2017
|
+
|
|
2018
|
+
export declare function toast(): string | undefined
|
|
2019
|
+
|
|
2020
|
+
export declare function toastLayer(): string | undefined
|
|
2021
|
+
|
|
2022
|
+
export declare function toastLoadingBar(): string | undefined
|
|
1024
2023
|
|
|
1025
|
-
export declare function
|
|
2024
|
+
export declare function toastLoadingBarMask(): string | undefined
|
|
1026
2025
|
|
|
1027
|
-
export declare function
|
|
2026
|
+
export declare function toastLoadingBarProgress(): string | undefined
|
|
2027
|
+
|
|
2028
|
+
export declare function toBoxShadow(value: ThemeBoxShadow_2 | undefined): string
|
|
2029
|
+
|
|
2030
|
+
/** @public */
|
|
2031
|
+
declare interface Tokens {
|
|
2032
|
+
color: ColorTokens
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
export declare function tooltip(): string | undefined
|
|
2036
|
+
|
|
2037
|
+
export declare function tooltipCard(): string | undefined
|
|
2038
|
+
|
|
2039
|
+
export declare function treeItem(): string | undefined
|
|
2040
|
+
|
|
2041
|
+
export declare function v3_v2(theme_v3: Theme_v3): RootTheme_v2
|
|
1028
2042
|
|
|
1029
2043
|
/** @public */
|
|
1030
2044
|
export declare interface VarNames {
|
|
1031
|
-
color: Record<
|
|
2045
|
+
color: Record<ThemeColorSchemeKey_2, ColorSchemeVarNames> &
|
|
2046
|
+
ScopedColorVarNames &
|
|
2047
|
+
Record<ThemeColorCardToneKey_2, ColorCardVarNames>
|
|
1032
2048
|
avatar: {
|
|
2049
|
+
distance: CSSVarName
|
|
1033
2050
|
focusRing: {
|
|
1034
2051
|
offset: CSSVarName
|
|
1035
2052
|
width: CSSVarName
|
|
1036
2053
|
}
|
|
2054
|
+
size: CSSVarName
|
|
2055
|
+
sizes: Record<
|
|
2056
|
+
AvatarSize,
|
|
2057
|
+
{
|
|
2058
|
+
distance: CSSVarName
|
|
2059
|
+
size: CSSVarName
|
|
2060
|
+
}
|
|
2061
|
+
>
|
|
2062
|
+
}
|
|
2063
|
+
font: {
|
|
2064
|
+
code: FontVarNames<FontCodeSize>
|
|
2065
|
+
heading: FontVarNames<FontHeadingSize>
|
|
2066
|
+
label: FontVarNames<FontLabelSize>
|
|
2067
|
+
text: FontVarNames<FontTextSize>
|
|
2068
|
+
}
|
|
2069
|
+
input: {
|
|
2070
|
+
fontSize: CSSVarName
|
|
2071
|
+
lineHeight: CSSVarName
|
|
2072
|
+
letterSpacing: CSSVarName
|
|
2073
|
+
ascenderHeight: CSSVarName
|
|
2074
|
+
descenderHeight: CSSVarName
|
|
2075
|
+
gap: CSSVarName
|
|
2076
|
+
padding: CSSVarName
|
|
1037
2077
|
}
|
|
1038
2078
|
space: Record<Space, CSSVarName>
|
|
1039
2079
|
}
|
|
1040
2080
|
|
|
2081
|
+
export declare const varNames: VarNames
|
|
2082
|
+
|
|
1041
2083
|
/** @public */
|
|
1042
2084
|
export declare interface Vars {
|
|
2085
|
+
avatar: {
|
|
2086
|
+
distance: CSSVar
|
|
2087
|
+
size: CSSVar
|
|
2088
|
+
sizes: Record<
|
|
2089
|
+
AvatarSize,
|
|
2090
|
+
{
|
|
2091
|
+
distance: CSSVar
|
|
2092
|
+
size: CSSVar
|
|
2093
|
+
}
|
|
2094
|
+
>
|
|
2095
|
+
}
|
|
1043
2096
|
color: {
|
|
1044
2097
|
dark: ColorSchemeVars
|
|
1045
2098
|
light: ColorSchemeVars
|
|
1046
|
-
} & ScopedColorVars
|
|
2099
|
+
} & ScopedColorVars &
|
|
2100
|
+
Record<ThemeColorCardToneKey_2, ColorCardVars>
|
|
1047
2101
|
font: {
|
|
1048
2102
|
code: FontVars<FontCodeSize>
|
|
1049
2103
|
heading: FontVars<FontHeadingSize>
|
|
1050
2104
|
label: FontVars<FontLabelSize>
|
|
1051
2105
|
text: FontVars<FontTextSize>
|
|
1052
2106
|
}
|
|
2107
|
+
input: {
|
|
2108
|
+
fontSize: CSSVar
|
|
2109
|
+
lineHeight: CSSVar
|
|
2110
|
+
letterSpacing: CSSVar
|
|
2111
|
+
ascenderHeight: CSSVar
|
|
2112
|
+
descenderHeight: CSSVar
|
|
2113
|
+
gap: CSSVar
|
|
2114
|
+
padding: CSSVar
|
|
2115
|
+
text: {
|
|
2116
|
+
focusRing: {
|
|
2117
|
+
offset: CSSVar
|
|
2118
|
+
width: CSSVar
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
1053
2122
|
space: Record<Space, CSSVar>
|
|
1054
2123
|
}
|
|
1055
2124
|
|
|
1056
|
-
export declare
|
|
2125
|
+
export declare const vars: Vars
|
|
2126
|
+
|
|
2127
|
+
export declare type Width = ContainerWidth
|
|
2128
|
+
|
|
2129
|
+
export declare function width(props: WidthStyleProps): string
|
|
1057
2130
|
|
|
1058
2131
|
export declare interface WidthStyleProps {
|
|
1059
|
-
width?: ResponsiveProp<
|
|
2132
|
+
width?: ResponsiveProp<Width>
|
|
1060
2133
|
}
|
|
1061
2134
|
|
|
1062
2135
|
export {}
|