@sanity/ui 3.0.0-static.1 → 3.0.0-static.10
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 +3138 -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-es/_visual-editing.mjs +3145 -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/_visual-editing.d.mts +811 -0
- package/dist/_visual-editing.d.ts +811 -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 +866 -455
- package/dist/css.d.ts +866 -455
- package/dist/css.js +4313 -3229
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +4299 -3214
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +461 -531
- package/dist/index.d.ts +461 -531
- package/dist/index.js +727 -4618
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +623 -4523
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +1 -0
- package/dist/sanity-theme.css +1 -25
- package/dist/system.css +23230 -3377
- package/dist/theme.d.mts +399 -112
- package/dist/theme.d.ts +399 -112
- package/dist/theme.js +1379 -2380
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1423 -2424
- package/dist/theme.mjs.map +1 -1
- package/exports/_visual-editing.ts +31 -0
- package/exports/index.ts +1 -1
- package/package.json +93 -82
- package/src/cli/buildCommand.ts +48 -0
- package/src/cli/index.ts +38 -0
- package/src/css/_comp.test.ts +7 -0
- package/src/css/_comp.ts +11 -0
- package/src/css/_mergeStyles.ts +31 -0
- package/src/css/_resp.ts +16 -6
- package/src/css/_responsiveRule.ts +38 -0
- package/src/css/aspects/border/border.style.ts +13 -0
- package/src/css/aspects/border/border.ts +14 -0
- package/src/css/aspects/display/display.style.ts +34 -0
- package/src/css/aspects/display/display.ts +7 -0
- package/src/css/aspects/display/index.ts +2 -0
- package/src/css/aspects/display/types.ts +17 -0
- package/src/css/aspects/flex/flex.style.ts +30 -0
- package/src/css/aspects/flex/flex.ts +13 -0
- package/src/css/aspects/flex/flexAlign.style.ts +12 -0
- package/src/css/aspects/flex/flexDirection.style.ts +11 -0
- package/src/css/aspects/flex/flexJustify.style.ts +13 -0
- package/src/css/aspects/flex/flexWrap.style.ts +10 -0
- package/src/css/aspects/flexItem/flex.style.ts +22 -0
- package/src/css/aspects/flexItem/flexItem.ts +8 -0
- package/src/css/aspects/flexItem/types.ts +27 -0
- package/src/css/aspects/font/font.style.ts +151 -0
- package/src/css/aspects/font/font.ts +12 -0
- package/src/css/aspects/gap/gap.style.ts +21 -0
- package/src/css/aspects/gap/gap.ts +8 -0
- package/src/css/aspects/gap/types.ts +10 -0
- package/src/css/aspects/grid/grid.ts +13 -0
- package/src/css/aspects/grid/gridAutoColumns.style.ts +11 -0
- package/src/css/aspects/grid/gridAutoFlow.style.ts +11 -0
- package/src/css/aspects/grid/gridAutoRows.style.ts +11 -0
- package/src/css/aspects/grid/gridColumns.style.ts +18 -0
- package/src/css/aspects/grid/gridRows.style.ts +18 -0
- package/src/css/aspects/grid/types.ts +29 -0
- package/src/css/aspects/gridItem/gridColumn.style.ts +20 -0
- package/src/css/aspects/gridItem/gridColumnEnd.style.ts +20 -0
- package/src/css/aspects/gridItem/gridColumnStart.style.ts +20 -0
- package/src/css/aspects/gridItem/gridItem.ts +15 -0
- package/src/css/aspects/gridItem/gridRow.style.ts +20 -0
- package/src/css/aspects/gridItem/gridRowEnd.style.ts +20 -0
- package/src/css/aspects/gridItem/gridRowStart.style.ts +20 -0
- package/src/css/aspects/height/height.style.ts +9 -0
- package/src/css/aspects/height/height.ts +17 -0
- package/src/css/aspects/height/index.ts +1 -0
- package/src/css/aspects/index.ts +21 -0
- package/src/css/aspects/inset/index.ts +2 -0
- package/src/css/aspects/inset/inset.style.ts +12 -0
- package/src/css/aspects/inset/inset.ts +13 -0
- package/src/css/aspects/inset/types.ts +13 -0
- package/src/css/aspects/margin/margin.style.ts +46 -0
- package/src/css/aspects/margin/margin.ts +15 -0
- package/src/css/aspects/maxWidth/maxWidth.style.ts +16 -0
- package/src/css/aspects/maxWidth/types.ts +7 -0
- package/src/css/aspects/minWidth/index.ts +2 -0
- package/src/css/aspects/minWidth/minWidth.style.ts +13 -0
- package/src/css/aspects/minWidth/minWidth.ts +6 -0
- package/src/css/aspects/minWidth/types.ts +7 -0
- package/src/css/aspects/outline/outline.style.ts +9 -0
- package/src/css/aspects/overflow/overflow.style.ts +11 -0
- package/src/css/aspects/overflow/overflow.ts +11 -0
- package/src/css/aspects/padding/padding.style.ts +46 -0
- package/src/css/aspects/padding/padding.ts +15 -0
- package/src/css/aspects/padding/types.ts +14 -0
- package/src/css/aspects/pointerEvents/pointerEvents.style.ts +13 -0
- package/src/css/aspects/pointerEvents/pointerEvents.ts +6 -0
- package/src/css/aspects/position/position.style.ts +12 -0
- package/src/css/aspects/position/position.ts +7 -0
- package/src/css/aspects/position/types.ts +9 -0
- package/src/css/aspects/radius/radius.style.ts +16 -0
- package/src/css/aspects/radius/radius.ts +8 -0
- package/src/css/aspects/radius/types.ts +8 -0
- package/src/css/aspects/shadow/index.ts +2 -0
- package/src/css/aspects/shadow/shadow.style.ts +49 -0
- package/src/css/aspects/shadow/shadow.ts +7 -0
- package/src/css/aspects/shadow/types.ts +8 -0
- package/src/css/aspects/textOverflow/index.ts +2 -0
- package/src/css/aspects/textOverflow/textOverflow.style.ts +21 -0
- package/src/css/aspects/textOverflow/textOverflow.ts +6 -0
- package/src/css/aspects/textOverflow/types.ts +8 -0
- package/src/css/aspects/width/index.ts +2 -0
- package/src/css/aspects/width/rules.ts +8 -0
- package/src/css/aspects/width/types.ts +9 -0
- package/src/css/aspects/width/width.style.ts +11 -0
- package/src/css/compile/compilePalette.ts +27 -0
- package/src/css/compile/compileRule.ts +50 -11
- package/src/css/compile/compileRules.test.ts +36 -0
- package/src/css/compile/compileRules.ts +17 -30
- package/src/css/compile/compileStyle.ts +148 -0
- package/src/css/compile/compileSystem.ts +6 -3
- package/src/css/compile/compileTheme.ts +8 -505
- package/src/css/compile/compileTheme_v3.ts +401 -0
- package/src/css/compile/types.ts +6 -0
- package/src/css/components/breadcrumbs/breadcrumbs.style.ts +9 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +3 -3
- package/src/css/components/dialog/dialog.style.ts +79 -0
- package/src/css/components/dialog/dialog.ts +30 -0
- package/src/css/components/dialog/index.ts +1 -1
- package/src/css/components/dialog/rules.ts +4 -1
- package/src/css/components/menu/menu.style.ts +17 -0
- package/src/css/components/menu/menu.ts +7 -3
- package/src/css/components/menu/rules.ts +6 -1
- package/src/css/components/skeleton/rules.ts +29 -22
- package/src/css/components/skeleton/skeleton.style.ts +96 -0
- package/src/css/components/skeleton/skeleton.ts +12 -12
- package/src/css/components/skeleton/types.ts +3 -1
- package/src/css/components/toast/index.ts +1 -0
- package/src/css/components/toast/rules.ts +18 -68
- package/src/css/components/toast/toast.style.ts +20 -0
- package/src/css/components/toast/toast.ts +21 -0
- package/src/css/components/tree/rules.ts +3 -2
- package/src/css/components/tree/tree.style.ts +55 -0
- package/src/css/components/tree/tree.ts +3 -3
- package/src/css/composeClassNames.ts +16 -2
- package/src/css/constants.ts +1 -0
- package/src/css/index.ts +13 -23
- package/src/css/primitives/_arrow/_arrow.style.ts +73 -0
- package/src/css/primitives/_arrow/_arrow.ts +14 -0
- package/src/css/primitives/_arrow/index.ts +1 -0
- package/src/css/primitives/_input/__workshop__/customInput.tsx +16 -0
- package/src/css/primitives/_input/__workshop__/index.ts +14 -0
- package/src/css/primitives/_input/_input.style.ts +162 -0
- package/src/css/primitives/_input/index.ts +2 -0
- package/src/css/primitives/_input/input.ts +25 -0
- package/src/css/primitives/_input/types.ts +12 -0
- package/src/css/primitives/_selectable/__style.ts +117 -0
- package/src/css/primitives/_selectable/_contants.ts +11 -0
- package/src/css/primitives/_selectable/_selectable.style.ts +132 -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.style.ts +175 -0
- package/src/css/primitives/avatar/avatar.ts +13 -18
- package/src/css/primitives/avatar/rules.ts +85 -99
- package/src/css/primitives/avatar/types.ts +1 -2
- package/src/css/primitives/badge/badge.style.ts +22 -0
- package/src/css/primitives/badge/badge.ts +4 -4
- package/src/css/primitives/badge/types.ts +2 -2
- package/src/css/primitives/box/box.style.ts +31 -0
- package/src/css/primitives/box/box.ts +31 -17
- package/src/css/primitives/box/types.ts +28 -25
- package/src/css/primitives/button/_constants.ts +17 -0
- package/src/css/primitives/button/button.style.ts +201 -0
- package/src/css/primitives/button/button.ts +29 -14
- package/src/css/primitives/button/rules.ts +284 -40
- package/src/css/primitives/card/_constants.ts +13 -0
- package/src/css/primitives/card/card.style.ts +270 -0
- package/src/css/primitives/card/card.ts +9 -16
- package/src/css/primitives/card/index.ts +1 -0
- package/src/css/primitives/card/types.ts +10 -0
- package/src/css/primitives/checkbox/checkbox.style.ts +154 -0
- package/src/css/primitives/checkbox/checkbox.ts +5 -5
- package/src/css/primitives/checkbox/rules.ts +31 -15
- package/src/css/primitives/code/code.style.ts +62 -0
- package/src/css/primitives/code/code.ts +4 -4
- package/src/css/primitives/code/rules.ts +27 -2
- package/src/css/primitives/code/types.ts +1 -1
- package/src/css/primitives/container/container.style.ts +10 -0
- package/src/css/primitives/container/container.ts +4 -4
- package/src/css/primitives/container/types.ts +1 -0
- package/src/css/primitives/heading/heading.style.ts +47 -0
- package/src/css/primitives/heading/heading.ts +6 -5
- package/src/css/primitives/heading/rules.ts +77 -6
- package/src/css/primitives/heading/types.ts +2 -2
- package/src/css/primitives/kbd/kbd.style.ts +22 -0
- package/src/css/primitives/kbd/kbd.ts +4 -4
- package/src/css/primitives/kbd/rules.ts +5 -5
- package/src/css/primitives/kbd/types.ts +3 -1
- package/src/css/primitives/label/label.style.ts +48 -0
- package/src/css/primitives/label/label.ts +4 -4
- package/src/css/primitives/label/rules.ts +54 -2
- package/src/css/primitives/label/types.ts +1 -1
- package/src/css/primitives/popover/popover.style.ts +5 -0
- package/src/css/primitives/popover/popover.ts +7 -3
- package/src/css/primitives/radio/radio.style.ts +123 -0
- package/src/css/primitives/radio/radio.ts +3 -3
- 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.style.ts +24 -0
- package/src/css/primitives/select/select.ts +9 -2
- package/src/css/primitives/select/types.ts +5 -0
- package/src/css/primitives/spinner/rules.ts +1 -0
- package/src/css/primitives/spinner/spinner.style.ts +22 -0
- package/src/css/primitives/spinner/spinner.ts +5 -5
- package/src/css/primitives/stack/stack.style.ts +9 -0
- package/src/css/primitives/stack/stack.ts +6 -0
- package/src/css/primitives/switch/rules.ts +264 -56
- package/src/css/primitives/switch/switch.style.ts +94 -0
- package/src/css/primitives/switch/switch.ts +19 -3
- package/src/css/primitives/text/rules.ts +93 -4
- package/src/css/primitives/text/text.style.ts +64 -0
- package/src/css/primitives/text/text.ts +5 -4
- 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.style.ts +9 -0
- package/src/css/primitives/textArea/textArea.ts +5 -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.style.ts +167 -0
- 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/token/token.style.ts +49 -0
- package/src/css/primitives/tooltip/rules.ts +2 -0
- package/src/css/primitives/tooltip/tooltip.style.ts +21 -0
- package/src/css/primitives/tooltip/tooltip.ts +5 -5
- package/src/css/scopeClassName.ts +6 -0
- package/src/css/system.style.ts +158 -0
- package/src/css/types.ts +604 -378
- package/src/css/util.ts +27 -0
- package/src/css/utils/srOnly/srOnly.style.ts +14 -0
- package/src/css/utils/srOnly/srOnly.ts +5 -0
- package/src/css/varNames.ts +395 -256
- package/src/css/vars.ts +373 -283
- package/src/theme/_constants.ts +26 -0
- package/src/theme/_types.ts +41 -0
- 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 +8 -6
- package/src/theme/defaults/config.ts +2 -2
- package/src/theme/defaults/fonts.ts +17 -16
- package/src/theme/getScopedTheme.ts +10 -4
- package/src/theme/index.ts +7 -1
- package/src/theme/palette/constants.ts +13 -0
- package/src/theme/palette/index.ts +2 -0
- package/src/theme/palette/types.ts +4 -0
- package/src/theme/types.ts +32 -0
- package/src/theme/v0/color/_generic.ts +35 -0
- package/src/theme/v0/color/_system.ts +17 -0
- package/src/theme/v0/color/color.ts +40 -0
- package/src/theme/v0/color/index.ts +11 -0
- package/src/theme/v0/color/input.ts +34 -0
- package/src/theme/v0/color/spot.ts +13 -0
- package/src/theme/v0/css.ts +8 -0
- package/src/theme/v0/font.ts +53 -0
- package/src/theme/v0/index.ts +10 -0
- package/src/theme/v0/theme.ts +72 -0
- package/src/theme/v2/avatar.ts +14 -0
- package/src/theme/v2/color/_constants.ts +45 -0
- package/src/theme/v2/color/_helpers.ts +24 -0
- package/src/theme/v2/color/_system.ts +40 -0
- package/src/theme/v2/color/badge.ts +16 -0
- package/src/theme/v2/color/color.ts +34 -0
- package/src/theme/v2/index.ts +4 -0
- package/src/theme/v2/input.ts +33 -0
- 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 +29 -0
- package/src/theme/v3/color/buildColor_v3.ts +198 -0
- package/src/theme/v3/color/card.ts +121 -0
- package/src/theme/v3/color/color.ts +98 -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 +202 -0
- package/src/theme/v3/index.ts +6 -0
- package/src/theme/v3/merge.ts +22 -0
- package/src/theme/v3/resolveTokens.ts +204 -0
- package/src/theme/v3/tokens.ts +16 -0
- package/src/theme/v3/types.ts +45 -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/src/ui/StyleTags.tsx +24 -0
- package/src/ui/_compat/index.ts +9 -0
- package/src/ui/_compat/styles/_responsive.ts +19 -0
- package/src/ui/_compat/styles/index.ts +1 -0
- package/src/ui/_compat/theme/index.ts +5 -0
- package/src/ui/_compat/theme/theme.test.tsx +73 -0
- package/src/ui/_compat/theme/themeColorProvider.tsx +30 -0
- package/src/ui/_compat/theme/themeContext.ts +10 -0
- package/src/ui/_compat/theme/themeProvider.tsx +74 -0
- package/src/ui/_compat/theme/useRootTheme.ts +17 -0
- package/src/ui/_compat/theme/useTheme.ts +16 -0
- package/src/ui/_compat/types.ts +274 -0
- package/src/ui/components/autocomplete/__mocks__/apiStore.ts +49 -0
- package/src/ui/components/autocomplete/__workshop__/async.tsx +156 -0
- package/src/ui/components/autocomplete/__workshop__/constrainedHeight.tsx +131 -0
- package/src/ui/components/autocomplete/__workshop__/custom.tsx +90 -0
- package/src/ui/components/autocomplete/__workshop__/example.tsx +80 -0
- package/src/ui/components/autocomplete/__workshop__/fullscreen.tsx +293 -0
- package/src/ui/components/autocomplete/autocomplete.tsx +722 -0
- package/src/ui/components/autocomplete/autocompleteOption.tsx +45 -0
- package/src/ui/components/autocomplete/types.ts +108 -0
- package/src/ui/components/breadcrumbs/__workshop__/example.tsx +62 -0
- package/src/ui/components/breadcrumbs/breadcrumbs.tsx +127 -0
- package/src/ui/components/dialog/__workshop__/activate.tsx +134 -0
- package/src/ui/components/dialog/__workshop__/nested.tsx +72 -0
- package/src/ui/components/dialog/__workshop__/onScroll.tsx +39 -0
- package/src/ui/components/dialog/__workshop__/panes.tsx +82 -0
- package/src/ui/components/dialog/__workshop__/position.tsx +30 -0
- package/src/ui/components/dialog/__workshop__/props.tsx +77 -0
- package/src/ui/components/dialog/__workshop__/wrapped.tsx +76 -0
- package/src/ui/components/dialog/dialog.tsx +432 -0
- package/src/ui/components/dialog/dialogProvider.tsx +35 -0
- package/src/ui/components/dialog/useDialog.ts +11 -0
- package/src/ui/components/hotkeys/hotkeys.tsx +54 -0
- package/src/ui/components/menu/__workshop__/asComponent.tsx +45 -0
- package/src/ui/components/menu/__workshop__/avatarMenu.tsx +51 -0
- package/src/ui/components/menu/__workshop__/constrainedInBoundary.tsx +134 -0
- package/src/ui/components/menu/__workshop__/customSelectedState.tsx +39 -0
- package/src/ui/components/menu/__workshop__/menuButton.tsx +80 -0
- package/src/ui/components/menu/__workshop__/shouldFocus.tsx +47 -0
- package/src/ui/components/menu/__workshop__/tones.tsx +25 -0
- package/src/ui/components/menu/menu.test.tsx +128 -0
- package/src/ui/components/menu/menu.tsx +200 -0
- package/src/ui/components/menu/menuButton.tsx +275 -0
- package/src/ui/components/menu/menuContext.ts +31 -0
- package/src/ui/components/menu/menuDivider.tsx +22 -0
- package/src/ui/components/menu/menuGroup.tsx +228 -0
- package/src/ui/components/menu/menuItem.tsx +180 -0
- package/src/ui/components/menu/useMenu.ts +21 -0
- package/src/ui/components/menu/useMenuController.ts +241 -0
- package/src/ui/components/skeleton/__workshop__/delay.tsx +70 -0
- package/src/ui/components/skeleton/__workshop__/skeleton.tsx +64 -0
- package/src/ui/components/skeleton/skeleton.tsx +53 -0
- package/src/ui/components/skeleton/textSkeleton.tsx +132 -0
- package/src/ui/components/tab/tab.tsx +105 -0
- package/src/ui/components/tab/tabList.tsx +74 -0
- package/src/ui/components/tab/tabPanel.tsx +40 -0
- package/src/ui/components/toast/__workshop__/hook.tsx +71 -0
- package/src/ui/components/toast/__workshop__/toast.tsx +26 -0
- package/src/ui/components/toast/toast.test.tsx +101 -0
- package/src/ui/components/toast/toast.tsx +211 -0
- package/src/ui/components/toast/toastLayer.tsx +38 -0
- package/src/ui/components/toast/toastProvider.tsx +113 -0
- package/src/ui/components/toast/toastState.ts +6 -0
- package/src/ui/components/toast/types.ts +28 -0
- package/src/ui/components/toast/useToast.ts +25 -0
- package/src/ui/components/tree/__workshop__/basic.tsx +105 -0
- package/src/ui/components/tree/__workshop__/tabFromElement.tsx +84 -0
- package/src/ui/components/tree/tree.tsx +244 -0
- package/src/ui/components/tree/treeGroup.tsx +30 -0
- package/src/ui/components/tree/treeItem.tsx +220 -0
- package/src/ui/components/tree/useTree.ts +17 -0
- package/src/ui/constants.ts +85 -0
- package/src/ui/helpers/focus.ts +100 -0
- package/src/ui/helpers/index.ts +5 -0
- package/src/ui/helpers/props.ts +10 -0
- package/src/ui/hooks/useArrayProp.ts +29 -0
- package/src/ui/hooks/useClickOutside.test.tsx +482 -0
- package/src/ui/hooks/useClickOutside.ts +117 -0
- package/src/ui/hooks/useClickOutsideEvent.test.tsx +115 -0
- package/src/ui/hooks/useClickOutsideEvent.ts +73 -0
- package/src/ui/hooks/useDelayed.test.ts +68 -0
- package/src/ui/hooks/useDelayedState.ts +28 -0
- package/src/ui/hooks/useElementRect/__workshop__/example.tsx +32 -0
- package/src/ui/hooks/useElementSize.ts +19 -0
- package/src/ui/hooks/useForwardedRef.ts +19 -0
- package/src/ui/hooks/useGlobalKeyDown.ts +17 -0
- package/src/ui/hooks/useMatchMedia.ts +28 -0
- package/src/ui/hooks/useMediaIndex/useMediaIndex.test.tsx +36 -0
- package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +102 -0
- package/src/ui/hooks/usePrefersDark.hydration.test.tsx +56 -0
- package/src/ui/hooks/usePrefersDark.test.tsx +19 -0
- package/src/ui/hooks/usePrefersDark.ts +16 -0
- package/src/ui/hooks/usePrefersReducedMotion.hydration.test.tsx +56 -0
- package/src/ui/hooks/usePrefersReducedMotion.test.tsx +19 -0
- package/src/ui/hooks/usePrefersReducedMotion.ts +16 -0
- package/src/ui/index.ts +9 -0
- package/src/ui/lib/createGlobalScopedContext.ts +34 -0
- package/src/ui/lib/globalScope.ts +19 -0
- package/src/ui/primitives/_selectable/selectable.tsx +31 -0
- package/src/ui/primitives/avatar/__workshop__/asButton.tsx +14 -0
- package/src/ui/primitives/avatar/__workshop__/stack.tsx +25 -0
- package/src/ui/primitives/avatar/__workshop__/withinButton.tsx +63 -0
- package/src/ui/primitives/avatar/__workshop__/withinMenuItem.tsx +72 -0
- package/src/ui/primitives/avatar/avatar.tsx +158 -0
- package/src/ui/primitives/avatar/avatarCounter.tsx +62 -0
- package/src/ui/primitives/avatar/avatarStack.tsx +82 -0
- package/src/ui/primitives/avatar/types.ts +17 -0
- package/src/ui/primitives/badge/__workshop__/props.tsx +30 -0
- package/src/ui/primitives/badge/__workshop__/tones.tsx +21 -0
- package/src/ui/primitives/badge/badge.test.tsx +16 -0
- package/src/ui/primitives/badge/badge.tsx +64 -0
- package/src/ui/primitives/box/__workshop__/props.tsx +20 -0
- package/src/ui/primitives/box/box.tsx +162 -0
- package/src/ui/primitives/button/__workshop__/custom.tsx +50 -0
- package/src/ui/primitives/button/__workshop__/disabled.tsx +74 -0
- package/src/ui/primitives/button/__workshop__/props.tsx +58 -0
- package/src/ui/primitives/button/__workshop__/stacked.tsx +59 -0
- package/src/ui/primitives/button/button.test.tsx +44 -0
- package/src/ui/primitives/button/button.tsx +207 -0
- package/src/ui/primitives/card/__workshop__/allTones.tsx +27 -0
- package/src/ui/primitives/card/__workshop__/asButton.tsx +107 -0
- package/src/ui/primitives/card/__workshop__/asComponent.tsx +27 -0
- package/src/ui/primitives/card/__workshop__/checkered.tsx +26 -0
- package/src/ui/primitives/card/__workshop__/interactive.tsx +30 -0
- package/src/ui/primitives/card/__workshop__/listNavigation.tsx +80 -0
- package/src/ui/primitives/card/__workshop__/props.tsx +55 -0
- package/src/ui/primitives/card/__workshop__/selected.tsx +93 -0
- package/src/ui/primitives/card/card.tsx +118 -0
- package/src/ui/primitives/card/cardContext.ts +10 -0
- package/src/ui/primitives/card/cardProvider.tsx +19 -0
- package/src/ui/primitives/card/index.ts +4 -0
- package/src/ui/primitives/card/types.ts +27 -0
- package/src/ui/primitives/card/useCard.ts +7 -0
- package/src/ui/primitives/checkbox/__workshop__/tones.tsx +28 -0
- package/src/ui/primitives/checkbox/checkbox.tsx +74 -0
- package/src/ui/primitives/code/__workshop__/props.tsx +21 -0
- package/src/ui/primitives/code/code.tsx +49 -0
- package/src/ui/primitives/code/refractor.tsx +20 -0
- package/src/ui/primitives/container/__workshop__/example.tsx +20 -0
- package/src/ui/primitives/container/container.tsx +35 -0
- package/src/ui/primitives/flex/__workshop__/example.tsx +34 -0
- package/src/ui/primitives/flex/__workshop__/gap.tsx +25 -0
- package/src/ui/primitives/flex/flex.tsx +29 -0
- package/src/ui/primitives/grid/__workshop__/responsive.tsx +54 -0
- package/src/ui/primitives/grid/grid.tsx +30 -0
- package/src/ui/primitives/heading/__workshop__/opticalAlignment.tsx +54 -0
- package/src/ui/primitives/heading/__workshop__/plain.tsx +32 -0
- package/src/ui/primitives/heading/heading.tsx +62 -0
- package/src/ui/primitives/inline/__workshop__/plain.tsx +27 -0
- package/src/ui/primitives/inline/inline.tsx +50 -0
- package/src/ui/primitives/kbd/kbd.tsx +55 -0
- package/src/ui/primitives/label/__workshop__/opticalAlignment.tsx +54 -0
- package/src/ui/primitives/label/__workshop__/plain.tsx +37 -0
- package/src/ui/primitives/label/label.tsx +67 -0
- package/src/ui/primitives/popover/__workshop__/AlignedStory.tsx +77 -0
- package/src/ui/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +32 -0
- package/src/ui/primitives/popover/__workshop__/OpenOnMountStory.tsx +11 -0
- package/src/ui/primitives/popover/__workshop__/PlainStory.tsx +71 -0
- package/src/ui/primitives/popover/__workshop__/SidePanelStory.tsx +93 -0
- package/src/ui/primitives/popover/__workshop__/TestStory.tsx +98 -0
- package/src/ui/primitives/popover/floating-ui/size.ts +83 -0
- package/src/ui/primitives/popover/helpers.ts +32 -0
- package/src/ui/primitives/popover/popover.tsx +422 -0
- package/src/ui/primitives/popover/popoverCard.tsx +161 -0
- package/src/ui/primitives/radio/__workshop__/plain.tsx +28 -0
- package/src/ui/primitives/radio/radio.tsx +49 -0
- package/src/ui/primitives/select/__workshop__/plain.tsx +30 -0
- package/src/ui/primitives/select/__workshop__/readOnly.tsx +23 -0
- package/src/ui/primitives/select/select.tsx +85 -0
- package/src/ui/primitives/spinner/__workshop__/Props.tsx +16 -0
- package/src/ui/primitives/spinner/spinner.tsx +33 -0
- package/src/ui/primitives/stack/__workshop__/plain.tsx +32 -0
- package/src/ui/primitives/stack/index.ts +1 -0
- package/src/ui/primitives/stack/stack.tsx +45 -0
- package/src/ui/primitives/switch/switch.tsx +75 -0
- package/src/ui/primitives/text/__workshop__/colored.tsx +23 -0
- package/src/ui/primitives/text/__workshop__/example.tsx +39 -0
- package/src/ui/primitives/text/__workshop__/opticalAlignment.tsx +48 -0
- package/src/ui/primitives/text/text.tsx +64 -0
- package/src/ui/primitives/textArea/__workshop__/plain.tsx +50 -0
- package/src/ui/primitives/textArea/textArea.tsx +71 -0
- package/src/ui/primitives/textInput/__workshop__/index.ts +44 -0
- package/src/ui/primitives/textInput/__workshop__/plain.tsx +104 -0
- package/src/ui/primitives/textInput/__workshop__/readOnly.tsx +9 -0
- package/src/ui/primitives/textInput/__workshop__/tones.tsx +277 -0
- package/src/ui/primitives/textInput/__workshop__/typed.tsx +23 -0
- package/src/ui/primitives/textInput/textInput.tsx +286 -0
- package/src/ui/primitives/tooltip/__workshop__/customPortal.tsx +102 -0
- package/src/ui/primitives/tooltip/__workshop__/overflowingBoundary.tsx +74 -0
- package/src/ui/primitives/tooltip/__workshop__/props.tsx +111 -0
- package/src/ui/primitives/tooltip/__workshop__/resizableBoundary.tsx +86 -0
- package/src/ui/primitives/tooltip/tooltip.test.tsx +453 -0
- package/src/ui/primitives/tooltip/tooltip.tsx +466 -0
- package/src/ui/primitives/tooltip/tooltipCard.tsx +115 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/index.ts +4 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +55 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/types.ts +10 -0
- package/src/ui/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +13 -0
- package/src/ui/primitives/types.ts +166 -0
- package/src/ui/types/box.ts +22 -0
- package/src/ui/types/button.ts +24 -0
- package/src/ui/types/flex.ts +27 -0
- package/src/ui/types/grid.ts +17 -0
- package/src/ui/types/gridItem.ts +32 -0
- package/src/ui/types/index.ts +15 -0
- package/src/ui/types/props.ts +18 -0
- package/src/ui/types/selectable.ts +7 -0
- package/src/ui/utils/arrow/arrow.tsx +59 -0
- package/src/ui/utils/boundaryElement/boundaryElement.test.tsx +100 -0
- package/src/ui/utils/boundaryElement/boundaryElementProvider.tsx +24 -0
- package/src/ui/utils/boundaryElement/index.ts +3 -0
- package/src/ui/utils/boundaryElement/useBoundaryElement.ts +26 -0
- package/src/ui/utils/conditionalWrapper/conditionalWrapper.tsx +23 -0
- package/src/ui/utils/elementQuery/elementQuery.tsx +53 -0
- package/src/ui/utils/errorBoundary.tsx +48 -0
- package/src/ui/utils/getElementRef.ts +26 -0
- package/src/ui/utils/layer/__workshop__/multipleRoots.tsx +49 -0
- package/src/ui/utils/layer/__workshop__/nested.tsx +98 -0
- package/src/ui/utils/layer/__workshop__/responsiveZOffset.tsx +13 -0
- package/src/ui/utils/layer/index.ts +4 -0
- package/src/ui/utils/layer/layer.test.tsx +108 -0
- package/src/ui/utils/layer/layer.tsx +112 -0
- package/src/ui/utils/layer/layerProvider.tsx +110 -0
- package/src/ui/utils/layer/useLayer.ts +26 -0
- package/src/ui/utils/portal/portal.test.tsx +103 -0
- package/src/ui/utils/portal/portal.ts +46 -0
- package/src/ui/utils/portal/portalProvider.tsx +79 -0
- package/src/ui/utils/portal/usePortal.ts +25 -0
- package/src/ui/utils/spanWithTextOverflow.tsx +10 -0
- package/src/ui/utils/srOnly/index.ts +1 -0
- package/src/ui/utils/srOnly/srOnly.tsx +35 -0
- package/src/ui/utils/virtualList/virtualList.tsx +189 -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/index.ts +0 -2
- 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/index.ts +0 -5
- 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/_compat/types.ts +0 -264
- package/src/core/components/autocomplete/__mocks__/apiStore.ts +0 -49
- package/src/core/components/autocomplete/__workshop__/.eslintrc +0 -5
- package/src/core/components/autocomplete/__workshop__/async.tsx +0 -155
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +0 -136
- package/src/core/components/autocomplete/__workshop__/custom.tsx +0 -89
- package/src/core/components/autocomplete/__workshop__/example.tsx +0 -79
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +0 -293
- package/src/core/components/autocomplete/autocomplete.tsx +0 -735
- package/src/core/components/autocomplete/autocompleteOption.tsx +0 -44
- package/src/core/components/autocomplete/types.ts +0 -108
- package/src/core/components/breadcrumbs/__workshop__/.eslintrc +0 -5
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +0 -55
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +0 -111
- package/src/core/components/dialog/__workshop__/.eslintrc +0 -5
- package/src/core/components/dialog/__workshop__/activate.tsx +0 -133
- package/src/core/components/dialog/__workshop__/nested.tsx +0 -72
- package/src/core/components/dialog/__workshop__/onScroll.tsx +0 -39
- package/src/core/components/dialog/__workshop__/panes.tsx +0 -81
- package/src/core/components/dialog/__workshop__/position.tsx +0 -29
- package/src/core/components/dialog/__workshop__/props.tsx +0 -76
- package/src/core/components/dialog/__workshop__/wrapped.tsx +0 -78
- package/src/core/components/dialog/dialog.tsx +0 -410
- package/src/core/components/dialog/dialogProvider.tsx +0 -34
- package/src/core/components/dialog/useDialog.ts +0 -10
- package/src/core/components/hotkeys/__workshop__/.eslintrc +0 -5
- package/src/core/components/hotkeys/hotkeys.tsx +0 -50
- package/src/core/components/menu/__workshop__/.eslintrc +0 -5
- package/src/core/components/menu/__workshop__/asComponent.tsx +0 -44
- package/src/core/components/menu/__workshop__/avatarMenu.tsx +0 -50
- package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +0 -133
- package/src/core/components/menu/__workshop__/customSelectedState.tsx +0 -38
- package/src/core/components/menu/__workshop__/menuButton.tsx +0 -79
- package/src/core/components/menu/__workshop__/shouldFocus.tsx +0 -46
- package/src/core/components/menu/__workshop__/tones.tsx +0 -25
- package/src/core/components/menu/menu.test.tsx +0 -129
- package/src/core/components/menu/menu.tsx +0 -173
- package/src/core/components/menu/menuButton.tsx +0 -289
- package/src/core/components/menu/menuContext.ts +0 -29
- package/src/core/components/menu/menuDivider.tsx +0 -16
- package/src/core/components/menu/menuGroup.tsx +0 -204
- package/src/core/components/menu/menuItem.tsx +0 -187
- package/src/core/components/menu/useMenu.ts +0 -20
- package/src/core/components/menu/useMenuController.ts +0 -230
- package/src/core/components/skeleton/__workshop__/.eslintrc +0 -5
- package/src/core/components/skeleton/__workshop__/delay.tsx +0 -69
- package/src/core/components/skeleton/__workshop__/skeleton.tsx +0 -63
- package/src/core/components/skeleton/skeleton.tsx +0 -52
- package/src/core/components/skeleton/textSkeleton.tsx +0 -146
- package/src/core/components/tab/__workshop__/.eslintrc +0 -5
- package/src/core/components/tab/tab.tsx +0 -98
- package/src/core/components/tab/tabList.tsx +0 -61
- package/src/core/components/tab/tabPanel.tsx +0 -39
- package/src/core/components/toast/__workshop__/.eslintrc +0 -5
- package/src/core/components/toast/__workshop__/hook.tsx +0 -71
- package/src/core/components/toast/__workshop__/toast.tsx +0 -25
- package/src/core/components/toast/toast.test.tsx +0 -102
- package/src/core/components/toast/toast.tsx +0 -122
- package/src/core/components/toast/toastProvider.tsx +0 -193
- package/src/core/components/toast/types.ts +0 -20
- package/src/core/components/toast/useToast.ts +0 -24
- package/src/core/components/tree/__workshop__/.eslintrc +0 -5
- package/src/core/components/tree/__workshop__/basic.tsx +0 -104
- package/src/core/components/tree/__workshop__/tabFromElement.tsx +0 -83
- package/src/core/components/tree/tree.tsx +0 -241
- package/src/core/components/tree/treeGroup.tsx +0 -32
- package/src/core/components/tree/treeItem.tsx +0 -213
- package/src/core/components/tree/useTree.ts +0 -16
- package/src/core/constants.ts +0 -57
- package/src/core/helpers/focus.ts +0 -100
- package/src/core/helpers/index.ts +0 -4
- package/src/core/hooks/useArrayProp.ts +0 -25
- package/src/core/hooks/useClickOutside.test.tsx +0 -483
- package/src/core/hooks/useClickOutside.ts +0 -116
- package/src/core/hooks/useClickOutsideEvent.test.tsx +0 -116
- package/src/core/hooks/useClickOutsideEvent.ts +0 -72
- package/src/core/hooks/useDelayed.test.ts +0 -67
- package/src/core/hooks/useDelayedState.ts +0 -29
- package/src/core/hooks/useElementRect/__workshop__/.eslintrc +0 -5
- package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -31
- package/src/core/hooks/useElementSize.ts +0 -18
- package/src/core/hooks/useForwardedRef.ts +0 -19
- package/src/core/hooks/useGlobalKeyDown.ts +0 -12
- package/src/core/hooks/useMatchMedia.ts +0 -46
- package/src/core/hooks/useMediaIndex/__workshop__/.eslintrc +0 -5
- package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -35
- package/src/core/hooks/useMediaIndex/useMediaIndex.ts +0 -101
- package/src/core/hooks/usePrefersDark.hydration.test.tsx +0 -57
- package/src/core/hooks/usePrefersDark.test.tsx +0 -18
- package/src/core/hooks/usePrefersDark.ts +0 -16
- package/src/core/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -57
- package/src/core/hooks/usePrefersReducedMotion.test.tsx +0 -18
- package/src/core/hooks/usePrefersReducedMotion.ts +0 -16
- package/src/core/index.ts +0 -10
- package/src/core/lib/createGlobalScopedContext.ts +0 -33
- package/src/core/lib/globalScope.ts +0 -20
- 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/_selectable/selectable.tsx +0 -27
- package/src/core/primitives/avatar/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +0 -13
- package/src/core/primitives/avatar/__workshop__/stack.tsx +0 -24
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +0 -62
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -69
- package/src/core/primitives/avatar/avatar.tsx +0 -196
- package/src/core/primitives/avatar/avatarCounter.tsx +0 -93
- package/src/core/primitives/avatar/avatarStack.tsx +0 -100
- package/src/core/primitives/avatar/styles.ts +0 -166
- package/src/core/primitives/avatar/types.ts +0 -16
- package/src/core/primitives/badge/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/badge/__workshop__/props.tsx +0 -29
- package/src/core/primitives/badge/__workshop__/tones.tsx +0 -20
- package/src/core/primitives/badge/badge.test.tsx +0 -15
- package/src/core/primitives/badge/badge.tsx +0 -59
- package/src/core/primitives/badge/styles.ts +0 -19
- package/src/core/primitives/box/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/box/__workshop__/props.tsx +0 -19
- package/src/core/primitives/box/box.tsx +0 -121
- package/src/core/primitives/button/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/button/__workshop__/custom.tsx +0 -47
- package/src/core/primitives/button/__workshop__/disabled.tsx +0 -73
- package/src/core/primitives/button/__workshop__/props.tsx +0 -53
- package/src/core/primitives/button/__workshop__/stacked.tsx +0 -58
- package/src/core/primitives/button/button.test.tsx +0 -43
- package/src/core/primitives/button/button.tsx +0 -181
- 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/card/__workshop__/allTones.tsx +0 -27
- package/src/core/primitives/card/__workshop__/asButton.tsx +0 -88
- package/src/core/primitives/card/__workshop__/asComponent.tsx +0 -27
- package/src/core/primitives/card/__workshop__/checkered.tsx +0 -16
- package/src/core/primitives/card/__workshop__/interactive.tsx +0 -23
- package/src/core/primitives/card/__workshop__/listNavigation.tsx +0 -77
- package/src/core/primitives/card/__workshop__/props.tsx +0 -49
- package/src/core/primitives/card/__workshop__/selected.tsx +0 -91
- package/src/core/primitives/card/card.tsx +0 -110
- package/src/core/primitives/card/index.ts +0 -2
- package/src/core/primitives/card/types.ts +0 -11
- package/src/core/primitives/checkbox/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/checkbox/__workshop__/tones.tsx +0 -22
- package/src/core/primitives/checkbox/checkbox.tsx +0 -70
- package/src/core/primitives/code/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/code/__workshop__/props.tsx +0 -20
- package/src/core/primitives/code/code.tsx +0 -49
- package/src/core/primitives/code/styles.ts +0 -77
- package/src/core/primitives/container/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/container/__workshop__/example.tsx +0 -19
- package/src/core/primitives/container/container.tsx +0 -32
- package/src/core/primitives/container/styles.ts +0 -22
- package/src/core/primitives/flex/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/flex/__workshop__/example.tsx +0 -33
- package/src/core/primitives/flex/__workshop__/gap.tsx +0 -25
- package/src/core/primitives/flex/flex.tsx +0 -32
- package/src/core/primitives/grid/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/grid/__workshop__/responsive.tsx +0 -54
- package/src/core/primitives/grid/grid.tsx +0 -34
- package/src/core/primitives/heading/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +0 -66
- package/src/core/primitives/heading/__workshop__/plain.tsx +0 -31
- package/src/core/primitives/heading/heading.tsx +0 -82
- 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/__workshop__/plain.tsx +0 -26
- package/src/core/primitives/inline/inline.tsx +0 -47
- package/src/core/primitives/inline/styles.ts +0 -31
- package/src/core/primitives/kbd/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/kbd/kbd.tsx +0 -53
- package/src/core/primitives/label/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +0 -48
- package/src/core/primitives/label/__workshop__/plain.tsx +0 -23
- package/src/core/primitives/label/label.tsx +0 -91
- package/src/core/primitives/label/styles.ts +0 -44
- package/src/core/primitives/popover/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +0 -76
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -31
- package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +0 -11
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +0 -70
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +0 -86
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +0 -97
- package/src/core/primitives/popover/floating-ui/size.ts +0 -82
- package/src/core/primitives/popover/helpers.ts +0 -31
- package/src/core/primitives/popover/popover.tsx +0 -476
- package/src/core/primitives/popover/popoverCard.tsx +0 -153
- package/src/core/primitives/radio/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/radio/__workshop__/plain.tsx +0 -28
- package/src/core/primitives/radio/radio.tsx +0 -50
- package/src/core/primitives/radio/styles.ts +0 -116
- package/src/core/primitives/select/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/select/__workshop__/plain.tsx +0 -27
- package/src/core/primitives/select/__workshop__/readOnly.tsx +0 -23
- package/src/core/primitives/select/select.tsx +0 -86
- package/src/core/primitives/select/styles.ts +0 -166
- package/src/core/primitives/spinner/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/spinner/__workshop__/Props.tsx +0 -15
- package/src/core/primitives/spinner/spinner.tsx +0 -31
- package/src/core/primitives/stack/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/stack/__workshop__/plain.tsx +0 -31
- package/src/core/primitives/stack/stack.tsx +0 -41
- 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/switch/switch.tsx +0 -66
- package/src/core/primitives/text/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/text/__workshop__/colored.tsx +0 -29
- package/src/core/primitives/text/__workshop__/example.tsx +0 -38
- package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +0 -58
- package/src/core/primitives/text/styles.ts +0 -73
- package/src/core/primitives/text/text.tsx +0 -82
- package/src/core/primitives/textArea/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/textArea/__workshop__/plain.tsx +0 -49
- package/src/core/primitives/textArea/textArea.tsx +0 -118
- package/src/core/primitives/textInput/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/textInput/__workshop__/index.ts +0 -49
- package/src/core/primitives/textInput/__workshop__/multipleTones.tsx +0 -20
- package/src/core/primitives/textInput/__workshop__/plain.tsx +0 -99
- package/src/core/primitives/textInput/__workshop__/readOnly.tsx +0 -5
- package/src/core/primitives/textInput/__workshop__/tones.tsx +0 -239
- package/src/core/primitives/textInput/__workshop__/typed.tsx +0 -22
- package/src/core/primitives/textInput/textInput.tsx +0 -373
- package/src/core/primitives/tooltip/__workshop__/.eslintrc +0 -5
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +0 -101
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -73
- package/src/core/primitives/tooltip/__workshop__/props.tsx +0 -106
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -85
- package/src/core/primitives/tooltip/tooltip.test.tsx +0 -451
- package/src/core/primitives/tooltip/tooltip.tsx +0 -464
- package/src/core/primitives/tooltip/tooltipCard.tsx +0 -110
- package/src/core/primitives/tooltip/tooltipDelayGroup/index.ts +0 -4
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -57
- package/src/core/primitives/tooltip/tooltipDelayGroup/types.ts +0 -11
- package/src/core/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -12
- package/src/core/primitives/types.ts +0 -166
- 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/theme/index.ts +0 -5
- package/src/core/theme/theme.test.tsx +0 -73
- package/src/core/theme/themeColorProvider.tsx +0 -28
- package/src/core/theme/themeContext.ts +0 -10
- package/src/core/theme/themeProvider.tsx +0 -63
- package/src/core/theme/useRootTheme.ts +0 -16
- package/src/core/theme/useTheme.ts +0 -16
- package/src/core/types/box.ts +0 -25
- package/src/core/types/button.ts +0 -22
- package/src/core/types/flex.ts +0 -31
- package/src/core/types/grid.ts +0 -19
- package/src/core/types/gridItem.ts +0 -37
- package/src/core/types/index.ts +0 -14
- package/src/core/types/selectable.ts +0 -6
- package/src/core/utils/arrow/arrow.tsx +0 -122
- package/src/core/utils/boundaryElement/__workshop__/.eslintrc +0 -5
- package/src/core/utils/boundaryElement/boundaryElement.test.tsx +0 -101
- package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +0 -23
- package/src/core/utils/boundaryElement/index.ts +0 -3
- package/src/core/utils/boundaryElement/useBoundaryElement.ts +0 -25
- package/src/core/utils/conditionalWrapper/conditionalWrapper.tsx +0 -21
- package/src/core/utils/elementQuery/__workshop__/.eslintrc +0 -5
- package/src/core/utils/elementQuery/elementQuery.tsx +0 -53
- package/src/core/utils/errorBoundary.tsx +0 -47
- package/src/core/utils/layer/__workshop__/.eslintrc +0 -5
- package/src/core/utils/layer/__workshop__/multipleRoots.tsx +0 -48
- package/src/core/utils/layer/__workshop__/nested.tsx +0 -97
- package/src/core/utils/layer/__workshop__/responsiveZOffset.tsx +0 -12
- package/src/core/utils/layer/index.ts +0 -4
- package/src/core/utils/layer/layer.test.tsx +0 -109
- package/src/core/utils/layer/layer.tsx +0 -108
- package/src/core/utils/layer/layerProvider.tsx +0 -109
- package/src/core/utils/layer/useLayer.ts +0 -25
- package/src/core/utils/portal/__workshop__/.eslintrc +0 -5
- package/src/core/utils/portal/portal.test.tsx +0 -104
- package/src/core/utils/portal/portal.ts +0 -31
- package/src/core/utils/portal/portalProvider.tsx +0 -78
- package/src/core/utils/portal/usePortal.ts +0 -24
- package/src/core/utils/srOnly/srOnly.tsx +0 -36
- package/src/core/utils/virtualList/__workshop__/.eslintrc +0 -5
- package/src/core/utils/virtualList/virtualList.tsx +0 -170
- package/src/css/cli/buildCommand.ts +0 -36
- package/src/css/cli/index.ts +0 -38
- package/src/css/components/dialog/classes.ts +0 -29
- package/src/css/primitives/badge/rules.ts +0 -25
- package/src/css/primitives/box/rules.ts +0 -25
- package/src/css/primitives/card/rules.ts +0 -241
- package/src/css/primitives/selectable/__style.ts +0 -117
- 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/css/rules.ts +0 -99
- package/src/css/styles/border/border.ts +0 -22
- package/src/css/styles/border/rules.ts +0 -24
- package/src/css/styles/display/rules.ts +0 -62
- package/src/css/styles/flex/flex.ts +0 -20
- package/src/css/styles/flex/rules.ts +0 -28
- package/src/css/styles/flexItem/flexItem.ts +0 -8
- package/src/css/styles/flexItem/rules.ts +0 -11
- package/src/css/styles/flexItem/types.ts +0 -11
- package/src/css/styles/font/font.ts +0 -17
- package/src/css/styles/font/rules.ts +0 -148
- package/src/css/styles/gap/gap.ts +0 -8
- package/src/css/styles/gap/rules.ts +0 -33
- package/src/css/styles/gap/types.ts +0 -9
- package/src/css/styles/grid/grid.ts +0 -13
- package/src/css/styles/grid/rules.ts +0 -146
- package/src/css/styles/grid/types.ts +0 -29
- package/src/css/styles/gridItem/gridItem.ts +0 -15
- package/src/css/styles/gridItem/rules.ts +0 -96
- package/src/css/styles/margin/margin.ts +0 -15
- package/src/css/styles/margin/rules.ts +0 -63
- package/src/css/styles/maxWidth/rules.ts +0 -36
- package/src/css/styles/maxWidth/types.ts +0 -6
- package/src/css/styles/outline/rules.ts +0 -7
- package/src/css/styles/overflow/overflow.ts +0 -11
- package/src/css/styles/overflow/rules.ts +0 -9
- package/src/css/styles/padding/padding.ts +0 -15
- package/src/css/styles/padding/rules.ts +0 -61
- package/src/css/styles/padding/types.ts +0 -12
- package/src/css/styles/pointerEvents/pointerEvents.ts +0 -6
- package/src/css/styles/pointerEvents/rules.ts +0 -11
- package/src/css/styles/position/position.ts +0 -7
- package/src/css/styles/position/rules.ts +0 -31
- package/src/css/styles/position/types.ts +0 -13
- package/src/css/styles/radius/radius.ts +0 -8
- package/src/css/styles/radius/rules.ts +0 -13
- package/src/css/styles/radius/types.ts +0 -7
- package/src/css/styles/shadow/rules.ts +0 -53
- package/src/css/styles/width/index.ts +0 -2
- package/src/css/styles/width/rules.ts +0 -7
- package/src/css/styles/width/types.ts +0 -8
- package/src/theme/system/_constants.ts +0 -25
- package/src/theme/system/_types.ts +0 -41
- package/src/theme/system/avatar.ts +0 -14
- package/src/theme/system/color/_constants.ts +0 -41
- package/src/theme/system/color/_helpers.ts +0 -23
- package/src/theme/system/color/_system.ts +0 -40
- package/src/theme/system/color/badge.ts +0 -20
- package/src/theme/system/color/color.ts +0 -34
- package/src/theme/system/css.ts +0 -9
- package/src/theme/system/font.ts +0 -52
- package/src/theme/system/index.ts +0 -14
- package/src/theme/system/input.ts +0 -33
- package/src/theme/system/theme.ts +0 -138
- package/src/theme/system/v0/color/_generic.ts +0 -35
- package/src/theme/system/v0/color/_system.ts +0 -13
- package/src/theme/system/v0/color/color.ts +0 -39
- package/src/theme/system/v0/color/index.ts +0 -11
- package/src/theme/system/v0/color/input.ts +0 -34
- package/src/theme/system/v0/color/spot.ts +0 -13
- package/src/theme/system/v0/index.ts +0 -3
- package/theme.js +0 -2
- /package/src/css/{styles → aspects}/border/index.ts +0 -0
- /package/src/css/{styles → aspects}/border/types.ts +0 -0
- /package/src/css/{styles → aspects}/flex/index.ts +0 -0
- /package/src/css/{styles → aspects}/flex/types.ts +0 -0
- /package/src/css/{styles → aspects}/flexItem/index.ts +0 -0
- /package/src/css/{styles → aspects}/font/index.ts +0 -0
- /package/src/css/{styles → aspects}/font/types.ts +0 -0
- /package/src/css/{styles → aspects}/gap/index.ts +0 -0
- /package/src/css/{styles → aspects}/grid/index.ts +0 -0
- /package/src/css/{styles → aspects}/gridItem/index.ts +0 -0
- /package/src/css/{styles → aspects}/gridItem/types.ts +0 -0
- /package/src/css/{styles → aspects}/height/rules.ts +0 -0
- /package/src/css/{styles → aspects}/margin/index.ts +0 -0
- /package/src/css/{styles → aspects}/margin/types.ts +0 -0
- /package/src/css/{styles → aspects}/maxWidth/index.ts +0 -0
- /package/src/css/{styles → aspects}/maxWidth/maxWidth.ts +0 -0
- /package/src/css/{styles → aspects}/overflow/index.ts +0 -0
- /package/src/css/{styles → aspects}/overflow/types.ts +0 -0
- /package/src/css/{styles → aspects}/padding/index.ts +0 -0
- /package/src/css/{styles → aspects}/pointerEvents/index.ts +0 -0
- /package/src/css/{styles → aspects}/pointerEvents/types.ts +0 -0
- /package/src/css/{styles → aspects}/position/index.ts +0 -0
- /package/src/css/{styles → aspects}/radius/index.ts +0 -0
- /package/src/css/{styles → aspects}/width/width.ts +0 -0
- /package/src/css/primitives/{selectable → _selectable}/index.ts +0 -0
- /package/src/{core → css}/primitives/stack/index.ts +0 -0
- /package/src/{core → css}/utils/srOnly/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/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/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/src/{core → ui/_compat}/theme/types.ts +0 -0
- /package/src/{core/components/autocomplete/__fixtures__ → ui/components/autocomplete/__mocks__}/countries.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/types.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/autocompleteReducer.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/constants.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/index.ts +0 -0
- /package/src/{core → ui}/components/breadcrumbs/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/breadcrumbs/index.ts +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/autoFocus.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/layering.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/provider.tsx +0 -0
- /package/src/{core → ui}/components/dialog/dialogContext.ts +0 -0
- /package/src/{core → ui}/components/dialog/index.ts +0 -0
- /package/src/{core → ui}/components/hotkeys/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/hotkeys/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/components/hotkeys/index.ts +0 -0
- /package/src/{core → ui}/components/index.ts +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/customMenuItem.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/groups.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/nestedMenu.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/selectedItem.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/withoutArrow.tsx +0 -0
- /package/src/{core → ui}/components/menu/helpers.ts +0 -0
- /package/src/{core → ui}/components/menu/index.ts +0 -0
- /package/src/{core → ui}/components/skeleton/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/skeleton/index.ts +0 -0
- /package/src/{core → ui}/components/tab/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/components/tab/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/tab/index.ts +0 -0
- /package/src/{core → ui}/components/toast/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/toast/index.ts +0 -0
- /package/src/{core → ui}/components/toast/toastContext.ts +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/basic.perf.ts +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/tree/helpers.ts +0 -0
- /package/src/{core → ui}/components/tree/index.ts +0 -0
- /package/src/{core → ui}/components/tree/treeContext.ts +0 -0
- /package/src/{core → ui}/components/tree/types.ts +0 -0
- /package/src/{core → ui}/global.ts +0 -0
- /package/src/{core → ui}/helpers/animation.ts +0 -0
- /package/src/{core → ui}/helpers/element.ts +0 -0
- /package/src/{core → ui}/helpers/scroll.ts +0 -0
- /package/src/{core → ui}/hooks/index.ts +0 -0
- /package/src/{core → ui}/hooks/useCustomValidity.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/index.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/useElementRect.ts +0 -0
- /package/src/{core → ui}/hooks/useIsomorphicEffect.ts +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/index.ts +0 -0
- /package/src/{core → ui}/hooks/useMounted.ts +0 -0
- /package/src/{core → ui}/lib/isRecord.ts +0 -0
- /package/src/{core → ui}/middleware/origin.ts +0 -0
- /package/src/{core → ui}/observers/elementSizeObserver.ts +0 -0
- /package/src/{core → ui}/observers/index.ts +0 -0
- /package/src/{core → ui}/observers/resizeObserver.ts +0 -0
- /package/src/{core → ui}/primitives/_selectable/index.ts +0 -0
- /package/src/{core → ui}/primitives/avatar/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/avatar/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/types.ts +0 -0
- /package/src/{core → ui}/primitives/box/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/box/__workshop__/responsive.tsx +0 -0
- /package/src/{core → ui}/primitives/box/index.ts +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/customIcons.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/styled1.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/styled2.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/uploadButton.tsx +0 -0
- /package/src/{core → ui}/primitives/button/index.ts +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/styled.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/index.ts +0 -0
- /package/src/{core → ui}/primitives/code/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{core → ui}/primitives/code/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/types.ts +0 -0
- /package/src/{core → ui}/primitives/flex/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/flex/index.ts +0 -0
- /package/src/{core → ui}/primitives/grid/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/grid/index.ts +0 -0
- /package/src/{core → ui}/primitives/heading/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/heading/index.ts +0 -0
- /package/src/{core → ui}/primitives/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/types.ts +0 -0
- /package/src/{core → ui}/primitives/kbd/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/kbd/__workshop__/plain.tsx +0 -0
- /package/src/{core/primitives/kbd/index.tsx → ui/primitives/kbd/index.ts} +0 -0
- /package/src/{core → ui}/primitives/label/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/label/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/constants.ts +0 -0
- /package/src/{core → ui}/primitives/popover/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/types.ts +0 -0
- /package/src/{core → ui}/primitives/radio/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/radio/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/radio/index.ts +0 -0
- /package/src/{core → ui}/primitives/select/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/select/index.ts +0 -0
- /package/src/{core → ui}/primitives/spinner/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
- /package/src/{core → ui}/primitives/spinner/index.ts +0 -0
- /package/src/{core → ui}/primitives/stack/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/switch/index.ts +0 -0
- /package/src/{core → ui}/primitives/text/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/text/index.ts +0 -0
- /package/src/{core → ui}/primitives/textArea/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/textArea/index.ts +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/states.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/constants.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
- /package/src/{core → ui}/types/avatar.ts +0 -0
- /package/src/{core → ui}/types/badge.ts +0 -0
- /package/src/{core → ui}/types/card.ts +0 -0
- /package/src/{core → ui}/types/dialog.ts +0 -0
- /package/src/{core → ui}/types/placement.ts +0 -0
- /package/src/{core → ui}/types/popover.ts +0 -0
- /package/src/{core → ui}/types/radius.ts +0 -0
- /package/src/{core → ui}/types/text.ts +0 -0
- /package/src/{core → ui}/utils/arrow/cmds.ts +0 -0
- /package/src/{core → ui}/utils/arrow/index.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/utils/boundaryElement/boundaryElementContext.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/types.ts +0 -0
- /package/src/{core → ui}/utils/conditionalWrapper/index.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
- /package/src/{core → ui}/utils/elementQuery/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/helpers.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/index.ts +0 -0
- /package/src/{core → ui}/utils/index.ts +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/_debug.tsx +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/layer/getLayerContext.test.ts +0 -0
- /package/src/{core → ui}/utils/layer/getLayerContext.ts +0 -0
- /package/src/{core → ui}/utils/layer/layerContext.ts +0 -0
- /package/src/{core → ui}/utils/layer/types.ts +0 -0
- /package/src/{core → ui}/utils/portal/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/portal/__workshop__/named.tsx +0 -0
- /package/src/{core → ui}/utils/portal/index.ts +0 -0
- /package/src/{core → ui}/utils/portal/portalContext.ts +0 -0
- /package/src/{core → ui}/utils/portal/types.ts +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/index.ts +0 -0
package/dist/css.d.ts
CHANGED
|
@@ -1,60 +1,67 @@
|
|
|
1
|
-
import {AvatarPosition} from '@sanity/ui'
|
|
2
1
|
import {AvatarSize} from '@sanity/ui/theme'
|
|
3
|
-
import {ButtonMode} from '@sanity/ui'
|
|
4
|
-
import {ButtonTone} from '@sanity/ui'
|
|
5
2
|
import {ContainerWidth} from '@sanity/ui/theme'
|
|
6
|
-
import
|
|
3
|
+
import {default as CSS_2} from 'csstype'
|
|
7
4
|
import {FontCodeSize} from '@sanity/ui/theme'
|
|
8
5
|
import {FontHeadingSize} from '@sanity/ui/theme'
|
|
9
6
|
import {FontLabelSize} from '@sanity/ui/theme'
|
|
10
|
-
import {FontStyleProps as FontStyleProps_2} from '@sanity/ui/css'
|
|
11
7
|
import {FontTextSize} from '@sanity/ui/theme'
|
|
12
8
|
import {FontWeight} from '@sanity/ui/theme'
|
|
13
|
-
import {
|
|
9
|
+
import {Hue} from '@sanity/ui/theme'
|
|
14
10
|
import {Radius} from '@sanity/ui/theme'
|
|
15
|
-
import {
|
|
16
|
-
import {RootTheme_v2} from '@sanity/ui/theme'
|
|
17
|
-
import {SelectableTone} from '@sanity/ui'
|
|
11
|
+
import {RootTheme} from '@sanity/ui/theme'
|
|
18
12
|
import {Shadow} from '@sanity/ui/theme'
|
|
19
13
|
import {Space} from '@sanity/ui/theme'
|
|
14
|
+
import {ThemeBoxShadow} from '@sanity/ui/theme'
|
|
20
15
|
import {ThemeColorAvatarColorKey} from '@sanity/ui/theme'
|
|
21
16
|
import {ThemeColorButtonModeKey} from '@sanity/ui/theme'
|
|
22
17
|
import {ThemeColorCardToneKey} from '@sanity/ui/theme'
|
|
23
|
-
import {ThemeColorInputModeKey} from '@sanity/ui/theme'
|
|
24
|
-
import {ThemeColorInputStateKey} from '@sanity/ui/theme'
|
|
25
18
|
import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
26
|
-
import {ThemeColorStateKey} from '@sanity/ui/theme'
|
|
27
19
|
import {ThemeColorStateToneKey} from '@sanity/ui/theme'
|
|
28
|
-
import {
|
|
20
|
+
import {Tint} from '@sanity/ui/theme'
|
|
29
21
|
|
|
30
|
-
export declare function animatedSpinnerIcon(): string
|
|
22
|
+
export declare function animatedSpinnerIcon(): string | undefined
|
|
31
23
|
|
|
32
|
-
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare function _arrow(): string | undefined
|
|
33
26
|
|
|
34
|
-
export declare function
|
|
27
|
+
export declare function _arrowShape(): string | undefined
|
|
35
28
|
|
|
36
|
-
export declare function
|
|
29
|
+
export declare function _arrowStroke(): string | undefined
|
|
37
30
|
|
|
38
|
-
export declare function
|
|
31
|
+
export declare function avatar(props: AvatarStyleProps): string | undefined
|
|
39
32
|
|
|
40
|
-
export declare function
|
|
33
|
+
export declare function avatarArrow(): string | undefined
|
|
41
34
|
|
|
42
|
-
export declare function
|
|
35
|
+
export declare function avatarCounter(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
36
|
+
|
|
37
|
+
export declare function avatarImage(): string | undefined
|
|
38
|
+
|
|
39
|
+
export declare function avatarInitials(): string | undefined
|
|
40
|
+
|
|
41
|
+
export declare type AvatarScopedVarName =
|
|
42
|
+
| `--avatar-bg-color`
|
|
43
|
+
| `--avatar-fg-color`
|
|
44
|
+
| `--avatar-distance`
|
|
45
|
+
| `--avatar-size`
|
|
46
|
+
|
|
47
|
+
export declare function avatarStack(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
43
48
|
|
|
44
49
|
export declare interface AvatarStyleProps {
|
|
45
50
|
color: ThemeColorAvatarColorKey
|
|
46
51
|
size: ResponsiveProp<AvatarSize>
|
|
47
|
-
arrowPosition?: AvatarPosition
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
/** @public */
|
|
51
|
-
export declare function badge(props: BadgeStyleProps): string
|
|
55
|
+
export declare function badge(props: BadgeStyleProps): string | undefined
|
|
52
56
|
|
|
53
57
|
/** @public */
|
|
54
|
-
export declare interface BadgeStyleProps extends
|
|
58
|
+
export declare interface BadgeStyleProps extends RadiusStyleProps {
|
|
55
59
|
tone: ThemeColorStateToneKey
|
|
56
60
|
}
|
|
57
61
|
|
|
62
|
+
/** @public */
|
|
63
|
+
export declare function border(props: BorderStyleProps): string | undefined
|
|
64
|
+
|
|
58
65
|
/** @public */
|
|
59
66
|
export declare interface BorderStyleProps {
|
|
60
67
|
border?: ResponsiveProp<boolean>
|
|
@@ -65,7 +72,7 @@ export declare interface BorderStyleProps {
|
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
/** @public */
|
|
68
|
-
export declare function box(props: BoxStyleProps): string
|
|
75
|
+
export declare function box(props: BoxStyleProps): string | undefined
|
|
69
76
|
|
|
70
77
|
/**
|
|
71
78
|
* @public
|
|
@@ -82,65 +89,99 @@ export declare type BoxSizing = 'content' | 'border'
|
|
|
82
89
|
|
|
83
90
|
/** @public */
|
|
84
91
|
export declare interface BoxStyleProps
|
|
85
|
-
extends
|
|
92
|
+
extends BorderStyleProps,
|
|
93
|
+
DisplayStyleProps,
|
|
94
|
+
FlexStyleProps,
|
|
86
95
|
FlexItemStyleProps,
|
|
87
96
|
GapStyleProps,
|
|
88
|
-
|
|
97
|
+
GridStyleProps,
|
|
89
98
|
GridItemStyleProps,
|
|
99
|
+
HeightStyleProps,
|
|
100
|
+
InsetStyleProps,
|
|
90
101
|
MarginStyleProps,
|
|
91
102
|
MaxWidthStyleProps,
|
|
103
|
+
MinWidthStyleProps,
|
|
92
104
|
OverflowStyleProps,
|
|
93
105
|
PaddingStyleProps,
|
|
94
106
|
PointerEventsStyleProps,
|
|
95
107
|
PositionStyleProps,
|
|
108
|
+
RadiusStyleProps,
|
|
96
109
|
WidthStyleProps {
|
|
97
|
-
|
|
98
|
-
height?: ResponsiveProp<BoxHeight>
|
|
110
|
+
muted?: boolean
|
|
99
111
|
outline?: 'none'
|
|
100
112
|
sizing?: ResponsiveProp<BoxSizing>
|
|
101
113
|
}
|
|
102
114
|
|
|
103
|
-
export declare function breadcrumbs(): string
|
|
115
|
+
export declare function breadcrumbs(): string | undefined
|
|
104
116
|
|
|
105
|
-
export declare function button(props: ButtonStyleProps): string
|
|
117
|
+
export declare function button(props: ButtonStyleProps): string | undefined
|
|
106
118
|
|
|
107
|
-
export declare function buttonLoadingBox(): string
|
|
119
|
+
export declare function buttonLoadingBox(): string | undefined
|
|
108
120
|
|
|
109
|
-
export declare
|
|
110
|
-
|
|
111
|
-
|
|
121
|
+
export declare type ButtonScopedVarName = '--button-box-shadow'
|
|
122
|
+
|
|
123
|
+
export declare interface ButtonStyleProps
|
|
124
|
+
extends DisplayStyleProps,
|
|
125
|
+
FlexItemStyleProps,
|
|
126
|
+
RadiusStyleProps,
|
|
127
|
+
WidthStyleProps {
|
|
128
|
+
mode?: ThemeColorButtonModeKey
|
|
129
|
+
tone?: ThemeColorStateToneKey
|
|
112
130
|
}
|
|
113
131
|
|
|
114
|
-
export declare function card(props: CardStyleProps): string
|
|
132
|
+
export declare function card(props: CardStyleProps): string | undefined
|
|
115
133
|
|
|
134
|
+
/** @public */
|
|
116
135
|
export declare type CardScopedVarName =
|
|
117
136
|
| `--color-accent-fg`
|
|
137
|
+
| `--color-avatar-bg`
|
|
138
|
+
| `--color-avatar-fg`
|
|
118
139
|
| `--color-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
119
140
|
| `--color-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
120
141
|
| `--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`
|
|
142
|
+
| `--color-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
|
|
129
143
|
| `--color-bg`
|
|
130
144
|
| `--color-border`
|
|
131
145
|
| `--color-code-bg`
|
|
132
146
|
| `--color-code-fg`
|
|
147
|
+
| `--color-code-token-atrule`
|
|
148
|
+
| `--color-code-token-attr-name`
|
|
149
|
+
| `--color-code-token-attr-value`
|
|
150
|
+
| `--color-code-token-attribute`
|
|
151
|
+
| `--color-code-token-boolean`
|
|
152
|
+
| `--color-code-token-builtin`
|
|
153
|
+
| `--color-code-token-cdata`
|
|
154
|
+
| `--color-code-token-char`
|
|
155
|
+
| `--color-code-token-class`
|
|
156
|
+
| `--color-code-token-class-name`
|
|
157
|
+
| `--color-code-token-comment`
|
|
158
|
+
| `--color-code-token-constant`
|
|
159
|
+
| `--color-code-token-deleted`
|
|
160
|
+
| `--color-code-token-doctype`
|
|
161
|
+
| `--color-code-token-entity`
|
|
162
|
+
| `--color-code-token-function`
|
|
163
|
+
| `--color-code-token-hexcode`
|
|
164
|
+
| `--color-code-token-id`
|
|
165
|
+
| `--color-code-token-important`
|
|
166
|
+
| `--color-code-token-inserted`
|
|
167
|
+
| `--color-code-token-keyword`
|
|
168
|
+
| `--color-code-token-number`
|
|
169
|
+
| `--color-code-token-operator`
|
|
170
|
+
| `--color-code-token-prolog`
|
|
171
|
+
| `--color-code-token-property`
|
|
172
|
+
| `--color-code-token-pseudo-class`
|
|
173
|
+
| `--color-code-token-pseudo-element`
|
|
174
|
+
| `--color-code-token-punctuation`
|
|
175
|
+
| `--color-code-token-regex`
|
|
176
|
+
| `--color-code-token-selector`
|
|
177
|
+
| `--color-code-token-string`
|
|
178
|
+
| `--color-code-token-symbol`
|
|
179
|
+
| `--color-code-token-tag`
|
|
180
|
+
| `--color-code-token-unit`
|
|
181
|
+
| `--color-code-token-url`
|
|
182
|
+
| `--color-code-token-variable`
|
|
133
183
|
| `--color-fg`
|
|
134
184
|
| `--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
185
|
| `--color-link-fg`
|
|
145
186
|
| `--color-muted-bg`
|
|
146
187
|
| `--color-muted-fg`
|
|
@@ -150,83 +191,13 @@ export declare type CardScopedVarName =
|
|
|
150
191
|
| `--color-shadow-ambient`
|
|
151
192
|
| `--color-skeleton-from`
|
|
152
193
|
| `--color-skeleton-to`
|
|
153
|
-
| `--color-syntax-atrule`
|
|
154
|
-
| `--color-syntax-attrName`
|
|
155
|
-
| `--color-syntax-attrValue`
|
|
156
|
-
| `--color-syntax-attribute`
|
|
157
|
-
| `--color-syntax-boolean`
|
|
158
|
-
| `--color-syntax-builtin`
|
|
159
|
-
| `--color-syntax-cdata`
|
|
160
|
-
| `--color-syntax-char`
|
|
161
|
-
| `--color-syntax-class`
|
|
162
|
-
| `--color-syntax-className`
|
|
163
|
-
| `--color-syntax-comment`
|
|
164
|
-
| `--color-syntax-constant`
|
|
165
|
-
| `--color-syntax-deleted`
|
|
166
|
-
| `--color-syntax-doctype`
|
|
167
|
-
| `--color-syntax-entity`
|
|
168
|
-
| `--color-syntax-function`
|
|
169
|
-
| `--color-syntax-hexcode`
|
|
170
|
-
| `--color-syntax-id`
|
|
171
|
-
| `--color-syntax-important`
|
|
172
|
-
| `--color-syntax-inserted`
|
|
173
|
-
| `--color-syntax-keyword`
|
|
174
|
-
| `--color-syntax-number`
|
|
175
|
-
| `--color-syntax-operator`
|
|
176
|
-
| `--color-syntax-prolog`
|
|
177
|
-
| `--color-syntax-property`
|
|
178
|
-
| `--color-syntax-pseudoClass`
|
|
179
|
-
| `--color-syntax-pseudoElement`
|
|
180
|
-
| `--color-syntax-punctuation`
|
|
181
|
-
| `--color-syntax-regex`
|
|
182
|
-
| `--color-syntax-selector`
|
|
183
|
-
| `--color-syntax-string`
|
|
184
|
-
| `--color-syntax-symbol`
|
|
185
|
-
| `--color-syntax-tag`
|
|
186
|
-
| `--color-syntax-unit`
|
|
187
|
-
| `--color-syntax-url`
|
|
188
|
-
| `--color-syntax-variable`
|
|
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`
|
|
223
194
|
| `--color-checkbox-bg`
|
|
224
195
|
| `--color-checkbox-fg`
|
|
225
196
|
| `--color-checkbox-border`
|
|
226
197
|
| `--font-ascender-height`
|
|
227
|
-
| `--font-cap-height`
|
|
228
198
|
| `--font-descender-height`
|
|
229
199
|
| `--font-family`
|
|
200
|
+
| `--font-feature-settings`
|
|
230
201
|
| `--font-icon-offset`
|
|
231
202
|
| `--font-icon-size`
|
|
232
203
|
| `--font-letter-spacing`
|
|
@@ -241,59 +212,54 @@ export declare type CardScopedVarName =
|
|
|
241
212
|
| `--font-weight-bold`
|
|
242
213
|
| `--font-weight`
|
|
243
214
|
| `--fg-color`
|
|
244
|
-
| `--input-bg-color`
|
|
245
|
-
| `--input-border-color`
|
|
246
|
-
| `--input-fg-color`
|
|
247
215
|
| `--padding-top`
|
|
248
216
|
| `--padding-right`
|
|
249
217
|
| `--padding-bottom`
|
|
250
218
|
| `--padding-left`
|
|
251
219
|
|
|
252
|
-
export declare interface CardStyleProps extends BoxStyleProps,
|
|
220
|
+
export declare interface CardStyleProps extends BoxStyleProps, ShadowStyleProps {
|
|
253
221
|
checkered?: boolean
|
|
254
|
-
|
|
222
|
+
scheme?: ThemeColorSchemeKey
|
|
223
|
+
tone?: ThemeColorCardToneKey | 'inherit'
|
|
255
224
|
}
|
|
256
225
|
|
|
257
|
-
export declare function checkbox(): string
|
|
226
|
+
export declare function checkbox(): string | undefined
|
|
258
227
|
|
|
259
|
-
export declare function checkboxInput(): string
|
|
228
|
+
export declare function checkboxInput(): string | undefined
|
|
260
229
|
|
|
261
230
|
/** @public */
|
|
262
|
-
export declare function code(props: CodeStyleProps): string
|
|
231
|
+
export declare function code(props: CodeStyleProps): string | undefined
|
|
263
232
|
|
|
264
233
|
/** @public */
|
|
265
234
|
export declare type CodeSize = number
|
|
266
235
|
|
|
267
|
-
export declare function codeSkeleton(props: CodeSkeletonStyleProps): string
|
|
236
|
+
export declare function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined
|
|
268
237
|
|
|
269
238
|
export declare interface CodeSkeletonStyleProps {
|
|
270
239
|
size?: ResponsiveProp<FontCodeSize>
|
|
271
240
|
}
|
|
272
241
|
|
|
273
242
|
/** @public */
|
|
274
|
-
export declare interface CodeStyleProps extends
|
|
243
|
+
export declare interface CodeStyleProps extends FontStyleProps {
|
|
275
244
|
size?: ResponsiveProp<CodeSize>
|
|
276
245
|
}
|
|
277
246
|
|
|
247
|
+
/** @public */
|
|
278
248
|
export declare interface ColorAvatarColorVarNames {
|
|
279
|
-
bg:
|
|
280
|
-
fg:
|
|
249
|
+
bg: VarName
|
|
250
|
+
fg: VarName
|
|
281
251
|
}
|
|
282
252
|
|
|
253
|
+
/** @public */
|
|
283
254
|
export declare interface ColorAvatarColorVars {
|
|
284
255
|
bg: CSSVar
|
|
285
256
|
fg: CSSVar
|
|
286
257
|
}
|
|
287
258
|
|
|
259
|
+
/** @public */
|
|
288
260
|
export declare type ColorAvatarVars = Record<ThemeColorAvatarColorKey, ColorAvatarColorVars>
|
|
289
261
|
|
|
290
|
-
|
|
291
|
-
bg: CSSVarName
|
|
292
|
-
dot: CSSVarName
|
|
293
|
-
fg: CSSVarName
|
|
294
|
-
icon: CSSVarName
|
|
295
|
-
}
|
|
296
|
-
|
|
262
|
+
/** @public */
|
|
297
263
|
export declare interface ColorBadgeToneVars {
|
|
298
264
|
bg: CSSVar
|
|
299
265
|
dot: CSSVar
|
|
@@ -301,154 +267,240 @@ export declare interface ColorBadgeToneVars {
|
|
|
301
267
|
icon: CSSVar
|
|
302
268
|
}
|
|
303
269
|
|
|
270
|
+
/** @public */
|
|
304
271
|
export declare type ColorBadgeVars = Record<ThemeColorStateToneKey, ColorBadgeToneVars>
|
|
305
272
|
|
|
306
|
-
export declare
|
|
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
|
-
|
|
273
|
+
export declare type ColorCardToneScopedVarName =
|
|
274
|
+
| `--color-${ThemeColorCardToneKey}-accent-fg`
|
|
275
|
+
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
276
|
+
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
277
|
+
| `--color-${ThemeColorCardToneKey}-backdrop`
|
|
278
|
+
| `--color-${ThemeColorCardToneKey}-code-bg`
|
|
279
|
+
| `--color-${ThemeColorCardToneKey}-code-fg`
|
|
280
|
+
| `--color-${ThemeColorCardToneKey}-code-token-atrule`
|
|
281
|
+
| `--color-${ThemeColorCardToneKey}-code-token-attr-name`
|
|
282
|
+
| `--color-${ThemeColorCardToneKey}-code-token-attr-value`
|
|
283
|
+
| `--color-${ThemeColorCardToneKey}-code-token-attribute`
|
|
284
|
+
| `--color-${ThemeColorCardToneKey}-code-token-boolean`
|
|
285
|
+
| `--color-${ThemeColorCardToneKey}-code-token-builtin`
|
|
286
|
+
| `--color-${ThemeColorCardToneKey}-code-token-cdata`
|
|
287
|
+
| `--color-${ThemeColorCardToneKey}-code-token-char`
|
|
288
|
+
| `--color-${ThemeColorCardToneKey}-code-token-class`
|
|
289
|
+
| `--color-${ThemeColorCardToneKey}-code-token-class-name`
|
|
290
|
+
| `--color-${ThemeColorCardToneKey}-code-token-comment`
|
|
291
|
+
| `--color-${ThemeColorCardToneKey}-code-token-constant`
|
|
292
|
+
| `--color-${ThemeColorCardToneKey}-code-token-deleted`
|
|
293
|
+
| `--color-${ThemeColorCardToneKey}-code-token-doctype`
|
|
294
|
+
| `--color-${ThemeColorCardToneKey}-code-token-entity`
|
|
295
|
+
| `--color-${ThemeColorCardToneKey}-code-token-function`
|
|
296
|
+
| `--color-${ThemeColorCardToneKey}-code-token-hexcode`
|
|
297
|
+
| `--color-${ThemeColorCardToneKey}-code-token-id`
|
|
298
|
+
| `--color-${ThemeColorCardToneKey}-code-token-important`
|
|
299
|
+
| `--color-${ThemeColorCardToneKey}-code-token-inserted`
|
|
300
|
+
| `--color-${ThemeColorCardToneKey}-code-token-keyword`
|
|
301
|
+
| `--color-${ThemeColorCardToneKey}-code-token-number`
|
|
302
|
+
| `--color-${ThemeColorCardToneKey}-code-token-operator`
|
|
303
|
+
| `--color-${ThemeColorCardToneKey}-code-token-prolog`
|
|
304
|
+
| `--color-${ThemeColorCardToneKey}-code-token-property`
|
|
305
|
+
| `--color-${ThemeColorCardToneKey}-code-token-pseudo-class`
|
|
306
|
+
| `--color-${ThemeColorCardToneKey}-code-token-pseudo-element`
|
|
307
|
+
| `--color-${ThemeColorCardToneKey}-code-token-punctuation`
|
|
308
|
+
| `--color-${ThemeColorCardToneKey}-code-token-regex`
|
|
309
|
+
| `--color-${ThemeColorCardToneKey}-code-token-selector`
|
|
310
|
+
| `--color-${ThemeColorCardToneKey}-code-token-string`
|
|
311
|
+
| `--color-${ThemeColorCardToneKey}-code-token-symbol`
|
|
312
|
+
| `--color-${ThemeColorCardToneKey}-code-token-tag`
|
|
313
|
+
| `--color-${ThemeColorCardToneKey}-code-token-unit`
|
|
314
|
+
| `--color-${ThemeColorCardToneKey}-code-token-url`
|
|
315
|
+
| `--color-${ThemeColorCardToneKey}-code-token-variable`
|
|
316
|
+
| `--color-${ThemeColorCardToneKey}-focus-ring`
|
|
317
|
+
| `--color-${ThemeColorCardToneKey}-link-fg`
|
|
318
|
+
| `--color-${ThemeColorCardToneKey}-muted-bg`
|
|
319
|
+
| `--color-${ThemeColorCardToneKey}-muted-fg`
|
|
320
|
+
| `--color-${ThemeColorCardToneKey}-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
|
|
321
|
+
| `--color-${ThemeColorCardToneKey}-shadow-outline`
|
|
322
|
+
| `--color-${ThemeColorCardToneKey}-shadow-umbra`
|
|
323
|
+
| `--color-${ThemeColorCardToneKey}-shadow-penumbra`
|
|
324
|
+
| `--color-${ThemeColorCardToneKey}-shadow-ambient`
|
|
325
|
+
| `--color-${ThemeColorCardToneKey}-skeleton-from`
|
|
326
|
+
| `--color-${ThemeColorCardToneKey}-skeleton-to`
|
|
327
|
+
|
|
328
|
+
export declare type ColorCardVarName =
|
|
329
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-accent-fg`
|
|
330
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
331
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
332
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-backdrop`
|
|
333
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-bg`
|
|
334
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-fg`
|
|
335
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-atrule`
|
|
336
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-attr-name`
|
|
337
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-attr-value`
|
|
338
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-attribute`
|
|
339
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-boolean`
|
|
340
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-builtin`
|
|
341
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-cdata`
|
|
342
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-char`
|
|
343
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-class`
|
|
344
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-class-name`
|
|
345
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-comment`
|
|
346
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-constant`
|
|
347
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-deleted`
|
|
348
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-doctype`
|
|
349
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-entity`
|
|
350
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-function`
|
|
351
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-hexcode`
|
|
352
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-id`
|
|
353
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-important`
|
|
354
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-inserted`
|
|
355
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-keyword`
|
|
356
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-number`
|
|
357
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-operator`
|
|
358
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-prolog`
|
|
359
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-property`
|
|
360
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-pseudo-class`
|
|
361
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-pseudo-element`
|
|
362
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-punctuation`
|
|
363
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-regex`
|
|
364
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-selector`
|
|
365
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-string`
|
|
366
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-symbol`
|
|
367
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-tag`
|
|
368
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-unit`
|
|
369
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-url`
|
|
370
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-code-token-variable`
|
|
371
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-focus-ring`
|
|
372
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-link-fg`
|
|
373
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-bg`
|
|
374
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-muted-fg`
|
|
375
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-${ElementColorVariant}-${ThemeColorStateToneKey}-${ElementColorVariantKey}`
|
|
376
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-outline`
|
|
377
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-umbra`
|
|
378
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-penumbra`
|
|
379
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-shadow-ambient`
|
|
380
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-from`
|
|
381
|
+
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-skeleton-to`
|
|
355
382
|
|
|
356
|
-
|
|
383
|
+
/** @public */
|
|
384
|
+
export declare interface ColorCardVarNames {
|
|
357
385
|
accent: {
|
|
358
|
-
fg:
|
|
386
|
+
fg: VarName
|
|
359
387
|
}
|
|
360
388
|
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames>
|
|
361
|
-
|
|
362
|
-
bg: CSSVarName
|
|
363
|
-
border: CSSVarName
|
|
389
|
+
backdrop: VarName
|
|
364
390
|
code: {
|
|
365
|
-
bg:
|
|
366
|
-
fg:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
391
|
+
bg: VarName
|
|
392
|
+
fg: VarName
|
|
393
|
+
token: {
|
|
394
|
+
atrule: VarName
|
|
395
|
+
attrName: VarName
|
|
396
|
+
attrValue: VarName
|
|
397
|
+
attribute: VarName
|
|
398
|
+
boolean: VarName
|
|
399
|
+
builtin: VarName
|
|
400
|
+
cdata: VarName
|
|
401
|
+
char: VarName
|
|
402
|
+
class: VarName
|
|
403
|
+
className: VarName
|
|
404
|
+
comment: VarName
|
|
405
|
+
constant: VarName
|
|
406
|
+
deleted: VarName
|
|
407
|
+
doctype: VarName
|
|
408
|
+
entity: VarName
|
|
409
|
+
function: VarName
|
|
410
|
+
hexcode: VarName
|
|
411
|
+
id: VarName
|
|
412
|
+
important: VarName
|
|
413
|
+
inserted: VarName
|
|
414
|
+
keyword: VarName
|
|
415
|
+
number: VarName
|
|
416
|
+
operator: VarName
|
|
417
|
+
prolog: VarName
|
|
418
|
+
property: VarName
|
|
419
|
+
pseudoClass: VarName
|
|
420
|
+
pseudoElement: VarName
|
|
421
|
+
punctuation: VarName
|
|
422
|
+
regex: VarName
|
|
423
|
+
selector: VarName
|
|
424
|
+
string: VarName
|
|
425
|
+
symbol: VarName
|
|
426
|
+
tag: VarName
|
|
427
|
+
unit: VarName
|
|
428
|
+
url: VarName
|
|
429
|
+
variable: VarName
|
|
430
|
+
}
|
|
374
431
|
}
|
|
432
|
+
focusRing: VarName
|
|
375
433
|
link: {
|
|
376
|
-
fg:
|
|
434
|
+
fg: VarName
|
|
377
435
|
}
|
|
378
436
|
muted: {
|
|
379
|
-
bg:
|
|
380
|
-
fg:
|
|
437
|
+
bg: VarName
|
|
438
|
+
fg: VarName
|
|
381
439
|
}
|
|
382
440
|
shadow: {
|
|
383
|
-
outline:
|
|
384
|
-
umbra:
|
|
385
|
-
penumbra:
|
|
386
|
-
ambient:
|
|
441
|
+
outline: VarName
|
|
442
|
+
umbra: VarName
|
|
443
|
+
penumbra: VarName
|
|
444
|
+
ambient: VarName
|
|
387
445
|
}
|
|
388
446
|
skeleton: {
|
|
389
|
-
from:
|
|
390
|
-
to:
|
|
391
|
-
}
|
|
392
|
-
syntax: {
|
|
393
|
-
atrule: CSSVarName
|
|
394
|
-
attrName: CSSVarName
|
|
395
|
-
attrValue: CSSVarName
|
|
396
|
-
attribute: CSSVarName
|
|
397
|
-
boolean: CSSVarName
|
|
398
|
-
builtin: CSSVarName
|
|
399
|
-
cdata: CSSVarName
|
|
400
|
-
char: CSSVarName
|
|
401
|
-
class: CSSVarName
|
|
402
|
-
className: CSSVarName
|
|
403
|
-
comment: CSSVarName
|
|
404
|
-
constant: CSSVarName
|
|
405
|
-
deleted: CSSVarName
|
|
406
|
-
doctype: CSSVarName
|
|
407
|
-
entity: CSSVarName
|
|
408
|
-
function: CSSVarName
|
|
409
|
-
hexcode: CSSVarName
|
|
410
|
-
id: CSSVarName
|
|
411
|
-
important: CSSVarName
|
|
412
|
-
inserted: CSSVarName
|
|
413
|
-
keyword: CSSVarName
|
|
414
|
-
number: CSSVarName
|
|
415
|
-
operator: CSSVarName
|
|
416
|
-
prolog: CSSVarName
|
|
417
|
-
property: CSSVarName
|
|
418
|
-
pseudoClass: CSSVarName
|
|
419
|
-
pseudoElement: CSSVarName
|
|
420
|
-
punctuation: CSSVarName
|
|
421
|
-
regex: CSSVarName
|
|
422
|
-
selector: CSSVarName
|
|
423
|
-
string: CSSVarName
|
|
424
|
-
symbol: CSSVarName
|
|
425
|
-
tag: CSSVarName
|
|
426
|
-
unit: CSSVarName
|
|
427
|
-
url: CSSVarName
|
|
428
|
-
variable: CSSVarName
|
|
447
|
+
from: VarName
|
|
448
|
+
to: VarName
|
|
429
449
|
}
|
|
450
|
+
solid: ColorVariantVarNames
|
|
451
|
+
tinted: ColorVariantVarNames
|
|
430
452
|
}
|
|
431
453
|
|
|
432
|
-
|
|
454
|
+
/** @public */
|
|
455
|
+
export declare interface ColorCardVars {
|
|
433
456
|
accent: {
|
|
434
457
|
fg: CSSVar
|
|
435
458
|
}
|
|
436
459
|
avatar: ColorAvatarVars
|
|
437
|
-
|
|
438
|
-
bg: CSSVar
|
|
439
|
-
border: CSSVar
|
|
460
|
+
backdrop: CSSVar
|
|
440
461
|
code: {
|
|
441
462
|
bg: CSSVar
|
|
442
463
|
fg: CSSVar
|
|
464
|
+
token: {
|
|
465
|
+
atrule: CSSVar
|
|
466
|
+
attrName: CSSVar
|
|
467
|
+
attrValue: CSSVar
|
|
468
|
+
attribute: CSSVar
|
|
469
|
+
boolean: CSSVar
|
|
470
|
+
builtin: CSSVar
|
|
471
|
+
cdata: CSSVar
|
|
472
|
+
char: CSSVar
|
|
473
|
+
class: CSSVar
|
|
474
|
+
className: CSSVar
|
|
475
|
+
comment: CSSVar
|
|
476
|
+
constant: CSSVar
|
|
477
|
+
deleted: CSSVar
|
|
478
|
+
doctype: CSSVar
|
|
479
|
+
entity: CSSVar
|
|
480
|
+
function: CSSVar
|
|
481
|
+
hexcode: CSSVar
|
|
482
|
+
id: CSSVar
|
|
483
|
+
important: CSSVar
|
|
484
|
+
inserted: CSSVar
|
|
485
|
+
keyword: CSSVar
|
|
486
|
+
number: CSSVar
|
|
487
|
+
operator: CSSVar
|
|
488
|
+
prolog: CSSVar
|
|
489
|
+
property: CSSVar
|
|
490
|
+
pseudoClass: CSSVar
|
|
491
|
+
pseudoElement: CSSVar
|
|
492
|
+
punctuation: CSSVar
|
|
493
|
+
regex: CSSVar
|
|
494
|
+
selector: CSSVar
|
|
495
|
+
string: CSSVar
|
|
496
|
+
symbol: CSSVar
|
|
497
|
+
tag: CSSVar
|
|
498
|
+
unit: CSSVar
|
|
499
|
+
url: CSSVar
|
|
500
|
+
variable: CSSVar
|
|
501
|
+
}
|
|
443
502
|
}
|
|
444
|
-
|
|
445
|
-
icon: CSSVar
|
|
446
|
-
input: ColorInputVars
|
|
447
|
-
kbd: {
|
|
448
|
-
bg: CSSVar
|
|
449
|
-
border: CSSVar
|
|
450
|
-
fg: CSSVar
|
|
451
|
-
}
|
|
503
|
+
focusRing: CSSVar
|
|
452
504
|
link: {
|
|
453
505
|
fg: CSSVar
|
|
454
506
|
}
|
|
@@ -466,89 +518,170 @@ export declare interface ColorStateVars {
|
|
|
466
518
|
from: CSSVar
|
|
467
519
|
to: CSSVar
|
|
468
520
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
pseudoClass: CSSVar
|
|
496
|
-
pseudoElement: CSSVar
|
|
497
|
-
punctuation: CSSVar
|
|
498
|
-
regex: CSSVar
|
|
499
|
-
selector: CSSVar
|
|
500
|
-
string: CSSVar
|
|
501
|
-
symbol: CSSVar
|
|
502
|
-
tag: CSSVar
|
|
503
|
-
unit: CSSVar
|
|
504
|
-
url: CSSVar
|
|
505
|
-
variable: CSSVar
|
|
521
|
+
solid: ColorVariantVars
|
|
522
|
+
tinted: ColorVariantVars
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/** @public */
|
|
526
|
+
export declare interface ColorElementVarNames {
|
|
527
|
+
bg: {
|
|
528
|
+
0: VarName
|
|
529
|
+
1: VarName
|
|
530
|
+
2: VarName
|
|
531
|
+
3: VarName
|
|
532
|
+
4: VarName
|
|
533
|
+
}
|
|
534
|
+
border: {
|
|
535
|
+
0: VarName
|
|
536
|
+
1: VarName
|
|
537
|
+
2: VarName
|
|
538
|
+
3: VarName
|
|
539
|
+
4: VarName
|
|
540
|
+
}
|
|
541
|
+
fg: {
|
|
542
|
+
0: VarName
|
|
543
|
+
1: VarName
|
|
544
|
+
2: VarName
|
|
545
|
+
3: VarName
|
|
546
|
+
4: VarName
|
|
506
547
|
}
|
|
507
548
|
}
|
|
508
549
|
|
|
509
|
-
|
|
550
|
+
/** @public */
|
|
551
|
+
export declare interface ColorElementVars {
|
|
552
|
+
bg: {
|
|
553
|
+
0: CSSVar
|
|
554
|
+
1: CSSVar
|
|
555
|
+
2: CSSVar
|
|
556
|
+
3: CSSVar
|
|
557
|
+
4: CSSVar
|
|
558
|
+
}
|
|
559
|
+
border: {
|
|
560
|
+
0: CSSVar
|
|
561
|
+
1: CSSVar
|
|
562
|
+
2: CSSVar
|
|
563
|
+
3: CSSVar
|
|
564
|
+
4: CSSVar
|
|
565
|
+
}
|
|
566
|
+
fg: {
|
|
567
|
+
0: CSSVar
|
|
568
|
+
1: CSSVar
|
|
569
|
+
2: CSSVar
|
|
570
|
+
3: CSSVar
|
|
571
|
+
4: CSSVar
|
|
572
|
+
}
|
|
573
|
+
}
|
|
510
574
|
|
|
511
575
|
/** @public */
|
|
512
|
-
export declare
|
|
576
|
+
export declare interface ColorInputStateVars {
|
|
577
|
+
bg: CSSVar
|
|
578
|
+
border: CSSVar
|
|
579
|
+
fg: CSSVar
|
|
580
|
+
muted: {
|
|
581
|
+
bg: CSSVar
|
|
582
|
+
}
|
|
583
|
+
placeholder: CSSVar
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/** @public */
|
|
587
|
+
export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey, ColorCardVarNames>
|
|
588
|
+
|
|
589
|
+
/** @public */
|
|
590
|
+
export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey, ColorCardVars> {}
|
|
591
|
+
|
|
592
|
+
export declare interface ColorVariantVarNames
|
|
593
|
+
extends ColorElementVarNames,
|
|
594
|
+
Record<ThemeColorStateToneKey, ColorElementVarNames> {}
|
|
595
|
+
|
|
596
|
+
/** @public */
|
|
597
|
+
export declare interface ColorVariantVars
|
|
598
|
+
extends Record<ThemeColorStateToneKey, ColorElementVars>,
|
|
599
|
+
ColorElementVars {}
|
|
600
|
+
|
|
601
|
+
export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
602
|
+
|
|
603
|
+
export declare function compilePalette(): string
|
|
513
604
|
|
|
514
605
|
/** @public */
|
|
515
|
-
export declare function
|
|
606
|
+
export declare function compileSystem(): string
|
|
607
|
+
|
|
608
|
+
export declare function compileTheme(theme: RootTheme): string
|
|
516
609
|
|
|
517
|
-
export declare function composeClassNames(
|
|
610
|
+
export declare function composeClassNames(
|
|
611
|
+
...classNames: Array<string | false | undefined>
|
|
612
|
+
): string | undefined
|
|
518
613
|
|
|
519
|
-
export declare function container(props: ContainerStyleProps): string
|
|
614
|
+
export declare function container(props: ContainerStyleProps): string | undefined
|
|
520
615
|
|
|
521
616
|
export declare interface ContainerStyleProps {
|
|
522
617
|
width?: ResponsiveProp<ContainerWidth>
|
|
523
618
|
}
|
|
524
619
|
|
|
525
620
|
/** @public */
|
|
526
|
-
export declare type CSSVar = `var(${
|
|
621
|
+
export declare type CSSVar = `var(${VarName})`
|
|
527
622
|
|
|
528
623
|
/** @public */
|
|
529
|
-
export declare
|
|
624
|
+
export declare interface CustomCSSProperties extends Record<VarName, string> {}
|
|
530
625
|
|
|
531
|
-
|
|
532
|
-
export declare interface CustomCSSProperties extends Record<CSSVarName, string> {}
|
|
626
|
+
export declare function dialog(): string | undefined
|
|
533
627
|
|
|
534
|
-
export declare function
|
|
628
|
+
export declare function dialogCardRoot(): string | undefined
|
|
535
629
|
|
|
536
|
-
export declare function
|
|
630
|
+
export declare function dialogContainer(): string | undefined
|
|
537
631
|
|
|
538
|
-
export declare function
|
|
632
|
+
export declare function dialogContent(): string | undefined
|
|
539
633
|
|
|
540
|
-
export declare function
|
|
634
|
+
export declare function dialogFooter(): string | undefined
|
|
541
635
|
|
|
542
|
-
export declare function
|
|
636
|
+
export declare function dialogHeader(): string | undefined
|
|
543
637
|
|
|
544
|
-
export declare function
|
|
545
|
-
|
|
546
|
-
export declare function dialogLayout(): string
|
|
638
|
+
export declare function dialogLayout(): string | undefined
|
|
547
639
|
|
|
548
640
|
/**
|
|
549
641
|
* @public
|
|
550
642
|
*/
|
|
551
|
-
export declare type Display =
|
|
643
|
+
export declare type Display =
|
|
644
|
+
| 'block'
|
|
645
|
+
| 'inline-block'
|
|
646
|
+
| 'flex'
|
|
647
|
+
| 'inline-flex'
|
|
648
|
+
| 'grid'
|
|
649
|
+
| 'inline-grid'
|
|
650
|
+
| 'none'
|
|
651
|
+
|
|
652
|
+
export declare function display(props: DisplayStyleProps): string | undefined
|
|
653
|
+
|
|
654
|
+
export declare interface DisplayStyleProps {
|
|
655
|
+
display?: ResponsiveProp<Display>
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/** @public */
|
|
659
|
+
export declare type ElementColorVariant = 'solid' | 'tinted'
|
|
660
|
+
|
|
661
|
+
/** @public */
|
|
662
|
+
export declare type ElementColorVariantKey =
|
|
663
|
+
| 'bg-0'
|
|
664
|
+
| 'bg-1'
|
|
665
|
+
| 'bg-2'
|
|
666
|
+
| 'bg-3'
|
|
667
|
+
| 'bg-4'
|
|
668
|
+
| 'border-0'
|
|
669
|
+
| 'border-1'
|
|
670
|
+
| 'border-2'
|
|
671
|
+
| 'border-3'
|
|
672
|
+
| 'border-4'
|
|
673
|
+
| 'fg-0'
|
|
674
|
+
| 'fg-1'
|
|
675
|
+
| 'fg-2'
|
|
676
|
+
| 'fg-3'
|
|
677
|
+
| 'fg-4'
|
|
678
|
+
|
|
679
|
+
/** @public */
|
|
680
|
+
export declare type ElementColorVariantScopedVarName =
|
|
681
|
+
`--color-${ElementColorVariant}-${ElementColorVariantKey}`
|
|
682
|
+
|
|
683
|
+
/** @public */
|
|
684
|
+
export declare function flex(props: FlexStyleProps): string | undefined
|
|
552
685
|
|
|
553
686
|
/**
|
|
554
687
|
* @public
|
|
@@ -560,6 +693,9 @@ export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline
|
|
|
560
693
|
*/
|
|
561
694
|
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
|
|
562
695
|
|
|
696
|
+
/** @public */
|
|
697
|
+
export declare function flexItem(props: FlexItemStyleProps): string | undefined
|
|
698
|
+
|
|
563
699
|
/** @public */
|
|
564
700
|
export declare interface FlexItemStyleProps {
|
|
565
701
|
flex?: ResponsiveProp<FlexValue>
|
|
@@ -587,13 +723,43 @@ export declare interface FlexStyleProps {
|
|
|
587
723
|
/**
|
|
588
724
|
* @public
|
|
589
725
|
*/
|
|
590
|
-
export declare type FlexValue =
|
|
726
|
+
export declare type FlexValue =
|
|
727
|
+
| 'none'
|
|
728
|
+
| 'auto'
|
|
729
|
+
| 'initial'
|
|
730
|
+
| 0
|
|
731
|
+
| 1
|
|
732
|
+
| 2
|
|
733
|
+
| 3
|
|
734
|
+
| 4
|
|
735
|
+
| 5
|
|
736
|
+
| 6
|
|
737
|
+
| 7
|
|
738
|
+
| 8
|
|
739
|
+
| 9
|
|
740
|
+
| 10
|
|
741
|
+
| 11
|
|
742
|
+
| 12
|
|
591
743
|
|
|
592
744
|
/**
|
|
593
745
|
* @public
|
|
594
746
|
*/
|
|
595
747
|
export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
|
|
596
748
|
|
|
749
|
+
/** @public */
|
|
750
|
+
export declare function font(props: FontStyleProps): string | undefined
|
|
751
|
+
|
|
752
|
+
/** @public */
|
|
753
|
+
export declare interface FontSizeVarNames {
|
|
754
|
+
ascenderHeight: VarName
|
|
755
|
+
descenderHeight: VarName
|
|
756
|
+
fontSize: VarName
|
|
757
|
+
lineHeight: VarName
|
|
758
|
+
letterSpacing: VarName
|
|
759
|
+
iconSize: VarName
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/** @public */
|
|
597
763
|
export declare interface FontSizeVars {
|
|
598
764
|
ascenderHeight: CSSVar
|
|
599
765
|
descenderHeight: CSSVar
|
|
@@ -609,11 +775,22 @@ export declare interface FontStyleProps {
|
|
|
609
775
|
weight?: FontWeight
|
|
610
776
|
}
|
|
611
777
|
|
|
778
|
+
export declare interface FontVarNames<Size extends number> {
|
|
779
|
+
family: VarName
|
|
780
|
+
sizes: Record<Size, FontSizeVarNames>
|
|
781
|
+
weight: Record<FontWeight, VarName>
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/** @public */
|
|
612
785
|
export declare interface FontVars<Size extends number> {
|
|
613
786
|
family: CSSVar
|
|
614
787
|
sizes: Record<Size, FontSizeVars>
|
|
788
|
+
weight: Record<FontWeight, CSSVar>
|
|
615
789
|
}
|
|
616
790
|
|
|
791
|
+
/** @public */
|
|
792
|
+
export declare function gap(props: GapStyleProps): string | undefined
|
|
793
|
+
|
|
617
794
|
/** @public */
|
|
618
795
|
export declare interface GapStyleProps {
|
|
619
796
|
gap?: ResponsiveProp<Space>
|
|
@@ -621,6 +798,10 @@ export declare interface GapStyleProps {
|
|
|
621
798
|
gapY?: ResponsiveProp<Space>
|
|
622
799
|
}
|
|
623
800
|
|
|
801
|
+
export declare function getClassNames(...classNames: Array<string | false | undefined>): string[]
|
|
802
|
+
|
|
803
|
+
export declare function grid(props: GridStyleProps): string | undefined
|
|
804
|
+
|
|
624
805
|
/**
|
|
625
806
|
* @public
|
|
626
807
|
*/
|
|
@@ -636,6 +817,9 @@ export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dens
|
|
|
636
817
|
*/
|
|
637
818
|
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
638
819
|
|
|
820
|
+
/** @public */
|
|
821
|
+
export declare function gridItem(props: GridItemStyleProps): string | undefined
|
|
822
|
+
|
|
639
823
|
/**
|
|
640
824
|
* @public
|
|
641
825
|
*/
|
|
@@ -685,50 +869,138 @@ export declare interface GridStyleProps {
|
|
|
685
869
|
}
|
|
686
870
|
|
|
687
871
|
/** @public */
|
|
688
|
-
export declare function heading(props: HeadingStyleProps): string
|
|
872
|
+
export declare function heading(props: HeadingStyleProps): string | undefined
|
|
689
873
|
|
|
690
874
|
/** @public */
|
|
691
875
|
export declare type HeadingSize = number
|
|
692
876
|
|
|
693
|
-
export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string
|
|
877
|
+
export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined
|
|
694
878
|
|
|
695
879
|
export declare interface HeadingSkeletonStyleProps {
|
|
696
880
|
size?: ResponsiveProp<FontHeadingSize>
|
|
697
881
|
}
|
|
698
882
|
|
|
699
883
|
/** @public */
|
|
700
|
-
export declare interface HeadingStyleProps extends
|
|
884
|
+
export declare interface HeadingStyleProps extends FontStyleProps, FlexItemStyleProps {
|
|
701
885
|
accent?: boolean
|
|
702
886
|
muted?: boolean
|
|
703
887
|
size?: ResponsiveProp<HeadingSize>
|
|
704
888
|
}
|
|
705
889
|
|
|
890
|
+
/** @public */
|
|
891
|
+
export declare function height(props: HeightStyleProps): string | undefined
|
|
892
|
+
|
|
893
|
+
export declare interface HeightStyleProps {
|
|
894
|
+
height?: ResponsiveProp<BoxHeight>
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/** @internal */
|
|
898
|
+
export declare function _input(props: InputStyleProps): string | undefined
|
|
899
|
+
|
|
900
|
+
export declare function _inputElement(): string | undefined
|
|
901
|
+
|
|
902
|
+
export declare function _inputPresentation(): string | undefined
|
|
903
|
+
|
|
904
|
+
/** @public */
|
|
905
|
+
export declare type InputScopedVarName =
|
|
906
|
+
| `--color-input-bg`
|
|
907
|
+
| `--color-input-border`
|
|
908
|
+
| `--color-input-fg`
|
|
909
|
+
| `--color-input-placeholder`
|
|
910
|
+
| `--input-ascender-height`
|
|
911
|
+
| `--input-descender-height`
|
|
912
|
+
| `--input-font-size`
|
|
913
|
+
| `--input-gap`
|
|
914
|
+
| `--input-letter-spacing`
|
|
915
|
+
| `--input-line-height`
|
|
916
|
+
| `--input-padding`
|
|
917
|
+
|
|
918
|
+
/** @public */
|
|
919
|
+
export declare interface InputStyleProps extends RadiusStyleProps, WidthStyleProps {
|
|
920
|
+
border?: boolean
|
|
921
|
+
fontSize?: ResponsiveProp<FontTextSize>
|
|
922
|
+
gap?: ResponsiveProp<Space>
|
|
923
|
+
padding?: ResponsiveProp<Space>
|
|
924
|
+
}
|
|
925
|
+
|
|
706
926
|
/** @public */
|
|
707
927
|
export declare type Inset = 0
|
|
708
928
|
|
|
709
|
-
export declare function
|
|
929
|
+
export declare function inset(props: InsetStyleProps): string | undefined
|
|
930
|
+
|
|
931
|
+
/** @public */
|
|
932
|
+
export declare interface InsetStyleProps {
|
|
933
|
+
inset?: ResponsiveProp<Inset>
|
|
934
|
+
insetTop?: ResponsiveProp<Inset>
|
|
935
|
+
insetRight?: ResponsiveProp<Inset>
|
|
936
|
+
insetBottom?: ResponsiveProp<Inset>
|
|
937
|
+
insetLeft?: ResponsiveProp<Inset>
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
export declare function isArray(value: unknown): value is unknown[]
|
|
941
|
+
|
|
942
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>
|
|
710
943
|
|
|
944
|
+
export declare function kbd(props: KBDStyleProps): string | undefined
|
|
945
|
+
|
|
946
|
+
/** @public */
|
|
711
947
|
export declare interface KBDStyleProps extends RadiusStyleProps {}
|
|
712
948
|
|
|
713
949
|
/** @public */
|
|
714
|
-
export declare function label(props: LabelStyleProps): string
|
|
950
|
+
export declare function label(props: LabelStyleProps): string | undefined
|
|
715
951
|
|
|
716
952
|
/** @public */
|
|
717
953
|
export declare type LabelSize = number
|
|
718
954
|
|
|
719
|
-
export declare function labelSkeleton(props: LabelSkeletonStyleProps): string
|
|
955
|
+
export declare function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined
|
|
720
956
|
|
|
721
957
|
export declare interface LabelSkeletonStyleProps {
|
|
722
958
|
size?: ResponsiveProp<FontLabelSize>
|
|
723
959
|
}
|
|
724
960
|
|
|
725
961
|
/** @public */
|
|
726
|
-
export declare interface LabelStyleProps extends
|
|
962
|
+
export declare interface LabelStyleProps extends FontStyleProps {
|
|
727
963
|
accent?: boolean
|
|
728
964
|
muted?: boolean
|
|
729
965
|
size?: ResponsiveProp<LabelSize>
|
|
730
966
|
}
|
|
731
967
|
|
|
968
|
+
export declare type LegacyCardScopedVarName =
|
|
969
|
+
| `--card-accent-fg-color`
|
|
970
|
+
| `--card-avatar-${ThemeColorAvatarColorKey}-bg-color`
|
|
971
|
+
| `--card-avatar-${ThemeColorAvatarColorKey}-fg-color`
|
|
972
|
+
| `--card-backdrop-color`
|
|
973
|
+
| `--card-badge-${ThemeColorStateToneKey}-bg-color`
|
|
974
|
+
| `--card-badge-${ThemeColorStateToneKey}-dot-color`
|
|
975
|
+
| `--card-badge-${ThemeColorStateToneKey}-fg-color`
|
|
976
|
+
| `--card-badge-${ThemeColorStateToneKey}-icon-color`
|
|
977
|
+
| `--card-bg-color`
|
|
978
|
+
| `--card-bg-image`
|
|
979
|
+
| `--card-bg2-color`
|
|
980
|
+
| `--card-border-color`
|
|
981
|
+
| `--card-code-bg-color`
|
|
982
|
+
| `--card-code-fg-color`
|
|
983
|
+
| `--card-fg-color`
|
|
984
|
+
| `--card-focus-ring-color`
|
|
985
|
+
| `--card-hairline-soft-color`
|
|
986
|
+
| `--card-hairline-hard-color`
|
|
987
|
+
| `--card-icon-color`
|
|
988
|
+
| `--card-kbd-bg-color`
|
|
989
|
+
| `--card-kbd-border-color`
|
|
990
|
+
| `--card-kbd-fg-color`
|
|
991
|
+
| `--card-link-color`
|
|
992
|
+
| `--card-link-fg-color`
|
|
993
|
+
| `--card-muted-bg-color`
|
|
994
|
+
| `--card-muted-fg-color`
|
|
995
|
+
| `--card-shadow-outline-color`
|
|
996
|
+
| `--card-shadow-umbra-color`
|
|
997
|
+
| `--card-shadow-penumbra-color`
|
|
998
|
+
| `--card-shadow-ambient-color`
|
|
999
|
+
| `--card-skeleton-from-color`
|
|
1000
|
+
| `--card-skeleton-to-color`
|
|
1001
|
+
|
|
1002
|
+
export declare function margin(props: MarginStyleProps): string | undefined
|
|
1003
|
+
|
|
732
1004
|
export declare interface MarginStyleProps {
|
|
733
1005
|
margin?: ResponsiveProp<number>
|
|
734
1006
|
marginTop?: ResponsiveProp<number>
|
|
@@ -739,11 +1011,25 @@ export declare interface MarginStyleProps {
|
|
|
739
1011
|
marginY?: ResponsiveProp<number>
|
|
740
1012
|
}
|
|
741
1013
|
|
|
1014
|
+
export declare function maxWidth(props: MaxWidthStyleProps): string
|
|
1015
|
+
|
|
742
1016
|
export declare interface MaxWidthStyleProps {
|
|
743
|
-
maxWidth?: ResponsiveProp<ContainerWidth | 'fill'>
|
|
1017
|
+
maxWidth?: ResponsiveProp<ContainerWidth | 'auto' | 'fill'>
|
|
744
1018
|
}
|
|
745
1019
|
|
|
746
|
-
export declare function
|
|
1020
|
+
export declare function menu(): string | undefined
|
|
1021
|
+
|
|
1022
|
+
export declare function menuDivider(): string | undefined
|
|
1023
|
+
|
|
1024
|
+
export declare type MinWidth = 0 | 'auto' | 'full' | 'min' | 'max' | 'fit'
|
|
1025
|
+
|
|
1026
|
+
export declare function minWidth(props: MinWidthStyleProps): string
|
|
1027
|
+
|
|
1028
|
+
export declare interface MinWidthStyleProps {
|
|
1029
|
+
minWidth?: ResponsiveProp<MinWidth>
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export declare function overflow(props: OverflowStyleProps): string | undefined
|
|
747
1033
|
|
|
748
1034
|
/** @public */
|
|
749
1035
|
export declare interface OverflowStyleProps {
|
|
@@ -752,115 +1038,227 @@ export declare interface OverflowStyleProps {
|
|
|
752
1038
|
overflowY?: ResponsiveProp<BoxOverflow>
|
|
753
1039
|
}
|
|
754
1040
|
|
|
1041
|
+
export declare function padding(props: PaddingStyleProps): string | undefined
|
|
1042
|
+
|
|
755
1043
|
/** @public */
|
|
756
1044
|
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<
|
|
1045
|
+
padding?: ResponsiveProp<Space>
|
|
1046
|
+
paddingTop?: ResponsiveProp<Space>
|
|
1047
|
+
paddingRight?: ResponsiveProp<Space>
|
|
1048
|
+
paddingBottom?: ResponsiveProp<Space>
|
|
1049
|
+
paddingLeft?: ResponsiveProp<Space>
|
|
1050
|
+
paddingX?: ResponsiveProp<Space>
|
|
1051
|
+
paddingY?: ResponsiveProp<Space>
|
|
764
1052
|
}
|
|
765
1053
|
|
|
1054
|
+
/** @public */
|
|
1055
|
+
export declare type PaletteVarName = `--black` | `--white` | `--${Hue}-${Tint}`
|
|
1056
|
+
|
|
766
1057
|
/** @public */
|
|
767
1058
|
export declare type PointerEvents = 'auto' | 'none'
|
|
768
1059
|
|
|
1060
|
+
export declare function pointerEvents(props: PointerEventsStyleProps): string | undefined
|
|
1061
|
+
|
|
769
1062
|
/** @public */
|
|
770
1063
|
export declare interface PointerEventsStyleProps {
|
|
771
1064
|
pointerEvents?: PointerEvents
|
|
772
1065
|
}
|
|
773
1066
|
|
|
774
|
-
export declare function popover(): string
|
|
1067
|
+
export declare function popover(): string | undefined
|
|
1068
|
+
|
|
1069
|
+
export declare function popoverCard(): string | undefined
|
|
775
1070
|
|
|
776
1071
|
/** @public */
|
|
777
1072
|
export declare type Position = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'
|
|
778
1073
|
|
|
1074
|
+
export declare function position(props: PositionStyleProps): string | undefined
|
|
1075
|
+
|
|
779
1076
|
/** @public */
|
|
780
1077
|
export declare interface PositionStyleProps {
|
|
781
|
-
inset?: ResponsiveProp<Inset>
|
|
782
1078
|
position?: ResponsiveProp<Position>
|
|
783
1079
|
}
|
|
784
1080
|
|
|
785
1081
|
/** @public */
|
|
786
|
-
export declare
|
|
787
|
-
'@
|
|
788
|
-
'@media'?: Record<string, Properties>
|
|
789
|
-
'@nest'?: Record<string, Properties>
|
|
1082
|
+
export declare type Properties = PropertiesWithVarsAndNested & {
|
|
1083
|
+
'@media'?: Record<string, PropertiesWithVarsAndNested>
|
|
790
1084
|
}
|
|
791
1085
|
|
|
792
|
-
|
|
1086
|
+
/** @public */
|
|
1087
|
+
export declare type PropertiesWithVars = CSS_2.Properties &
|
|
1088
|
+
Partial<Record<VarName, string>> & {
|
|
1089
|
+
_prefix?: boolean
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/** @public */
|
|
1093
|
+
export declare type PropertiesWithVarsAndNested = PropertiesWithVars & {
|
|
1094
|
+
'@nest'?: Record<string, PropertiesWithVars>
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export declare function px(value: number): string
|
|
1098
|
+
|
|
1099
|
+
export declare function radio(): string | undefined
|
|
1100
|
+
|
|
1101
|
+
/** @public */
|
|
1102
|
+
export declare function radius(props: RadiusStyleProps): string | undefined
|
|
793
1103
|
|
|
794
1104
|
/** @public */
|
|
795
1105
|
export declare interface RadiusStyleProps {
|
|
796
|
-
radius?: ResponsiveProp<Radius>
|
|
1106
|
+
radius?: ResponsiveProp<Radius | 'full'>
|
|
797
1107
|
}
|
|
798
1108
|
|
|
1109
|
+
export declare function rem(value: number): string
|
|
1110
|
+
|
|
1111
|
+
/** @public */
|
|
799
1112
|
export declare type ResponsiveProp<T> = T | Array<T | null | undefined>
|
|
800
1113
|
|
|
801
|
-
export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12
|
|
1114
|
+
export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
802
1115
|
|
|
803
1116
|
/** @public */
|
|
804
1117
|
export declare interface Rules {
|
|
805
1118
|
[className: string]: Properties
|
|
806
1119
|
}
|
|
807
1120
|
|
|
808
|
-
export declare
|
|
809
|
-
|
|
1121
|
+
export declare function scopeClassName(className: string | undefined): string | undefined
|
|
1122
|
+
|
|
1123
|
+
export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'avatar'> {
|
|
1124
|
+
accent: {
|
|
1125
|
+
fg: VarName
|
|
1126
|
+
}
|
|
1127
|
+
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames> & ColorAvatarColorVarNames
|
|
1128
|
+
bg: VarName
|
|
1129
|
+
border: VarName
|
|
1130
|
+
fg: VarName
|
|
1131
|
+
input: {
|
|
1132
|
+
bg: VarName
|
|
1133
|
+
border: VarName
|
|
1134
|
+
fg: VarName
|
|
1135
|
+
placeholder: VarName
|
|
1136
|
+
}
|
|
810
1137
|
}
|
|
811
1138
|
|
|
812
|
-
export declare interface ScopedColorVars extends Omit<
|
|
813
|
-
|
|
1139
|
+
export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
|
|
1140
|
+
avatar: ColorAvatarVars & ColorAvatarColorVars
|
|
1141
|
+
bg: CSSVar
|
|
1142
|
+
border: CSSVar
|
|
1143
|
+
fg: CSSVar
|
|
1144
|
+
input: {
|
|
1145
|
+
bg: CSSVar
|
|
1146
|
+
border: CSSVar
|
|
1147
|
+
fg: CSSVar
|
|
1148
|
+
placeholder: CSSVar
|
|
1149
|
+
}
|
|
814
1150
|
}
|
|
815
1151
|
|
|
816
|
-
export declare function select(): string
|
|
1152
|
+
export declare function select(props: SelectStyleProps): string | undefined
|
|
817
1153
|
|
|
818
|
-
|
|
1154
|
+
/** @internal */
|
|
1155
|
+
export declare function _selectable(props: SelectableStyleProps): string | undefined
|
|
819
1156
|
|
|
1157
|
+
/** @internal */
|
|
820
1158
|
export declare interface SelectableStyleProps extends RadiusStyleProps {
|
|
821
|
-
tone?:
|
|
1159
|
+
tone?: ThemeColorStateToneKey
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
export declare function selectPresentation(): string | undefined
|
|
1163
|
+
|
|
1164
|
+
/** @public */
|
|
1165
|
+
export declare interface SelectStyleProps extends InputStyleProps {}
|
|
1166
|
+
|
|
1167
|
+
export declare function shadow(props: ShadowStyleProps): string | undefined
|
|
1168
|
+
|
|
1169
|
+
/** @public */
|
|
1170
|
+
export declare interface ShadowStyleProps {
|
|
1171
|
+
shadow?: ResponsiveProp<Shadow>
|
|
822
1172
|
}
|
|
823
1173
|
|
|
824
1174
|
/** @beta */
|
|
825
|
-
export declare function skeleton(props: SkeletonStyleProps): string
|
|
1175
|
+
export declare function skeleton(props: SkeletonStyleProps): string | undefined
|
|
826
1176
|
|
|
827
1177
|
/** @beta */
|
|
828
1178
|
export declare interface SkeletonStyleProps extends RadiusStyleProps {}
|
|
829
1179
|
|
|
830
|
-
export declare function spinner(): string
|
|
1180
|
+
export declare function spinner(): string | undefined
|
|
1181
|
+
|
|
1182
|
+
export declare function srOnly(): string | undefined
|
|
1183
|
+
|
|
1184
|
+
/** @public */
|
|
1185
|
+
export declare function stack(): string | undefined
|
|
1186
|
+
|
|
1187
|
+
/** @public */
|
|
1188
|
+
export declare type Style = {
|
|
1189
|
+
keyframes?: StyleKeyframes
|
|
1190
|
+
layers?: StyleLayers
|
|
1191
|
+
rules?: StyleRules
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/** @public */
|
|
1195
|
+
export declare type StyleKeyframes = Record<string, Record<string, Properties>>
|
|
1196
|
+
|
|
1197
|
+
/** @public */
|
|
1198
|
+
export declare type StyleLayers = Record<string, StyleRules>
|
|
1199
|
+
|
|
1200
|
+
/** @public */
|
|
1201
|
+
export declare type StyleRules = Partial<Record<StyleSelector, Properties>>
|
|
1202
|
+
|
|
1203
|
+
/** @public */
|
|
1204
|
+
export declare type StyleSelector = `.${string}` | `#${string}` | `:root`
|
|
1205
|
+
|
|
1206
|
+
export declare function _switch(): string | undefined
|
|
831
1207
|
|
|
832
|
-
export declare function
|
|
1208
|
+
export declare function _switchElement(): string | undefined
|
|
1209
|
+
|
|
1210
|
+
export declare function _switchPresentation(): string | undefined
|
|
1211
|
+
|
|
1212
|
+
/** @public */
|
|
1213
|
+
export declare type SwitchScopedVarName =
|
|
1214
|
+
| `--switch-bg-color`
|
|
1215
|
+
| `--switch-fg-color`
|
|
1216
|
+
| '--switch-thumb-offset'
|
|
1217
|
+
| '--switch-thumb-size'
|
|
1218
|
+
|
|
1219
|
+
export declare function _switchThumb(): string | undefined
|
|
1220
|
+
|
|
1221
|
+
export declare function _switchTrack(): string | undefined
|
|
833
1222
|
|
|
834
1223
|
/** @public */
|
|
835
|
-
export declare function text(props: TextStyleProps): string
|
|
1224
|
+
export declare function text(props: TextStyleProps): string | undefined
|
|
836
1225
|
|
|
837
1226
|
/**
|
|
838
1227
|
* @public
|
|
839
1228
|
*/
|
|
840
1229
|
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
841
1230
|
|
|
842
|
-
export declare function textArea(): string
|
|
1231
|
+
export declare function textArea(props: TextAreaStyleProps): string | undefined
|
|
843
1232
|
|
|
844
|
-
|
|
1233
|
+
/** @public */
|
|
1234
|
+
export declare interface TextAreaStyleProps extends InputStyleProps {}
|
|
845
1235
|
|
|
846
|
-
export declare function
|
|
1236
|
+
export declare function textInput(props: TextInputStyleProps): string | undefined
|
|
847
1237
|
|
|
848
1238
|
/** @public */
|
|
849
|
-
export declare interface TextInputStyleProps {
|
|
850
|
-
|
|
851
|
-
|
|
1239
|
+
export declare interface TextInputStyleProps extends InputStyleProps {}
|
|
1240
|
+
|
|
1241
|
+
export declare function textOverflow(props: TextOverflowStyleProps): string | undefined
|
|
1242
|
+
|
|
1243
|
+
export declare interface TextOverflowStyleProps {
|
|
1244
|
+
/**
|
|
1245
|
+
* Controls how overflowing text is treated.
|
|
1246
|
+
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1247
|
+
* @beta
|
|
1248
|
+
*/
|
|
1249
|
+
textOverflow?: 'ellipsis' | 'clip'
|
|
852
1250
|
}
|
|
853
1251
|
|
|
854
1252
|
export declare type TextSize = number
|
|
855
1253
|
|
|
856
|
-
export declare function textSkeleton(props: TextSkeletonStyleProps): string
|
|
1254
|
+
export declare function textSkeleton(props: TextSkeletonStyleProps): string | undefined
|
|
857
1255
|
|
|
858
1256
|
export declare interface TextSkeletonStyleProps {
|
|
859
1257
|
size?: ResponsiveProp<FontTextSize>
|
|
860
1258
|
}
|
|
861
1259
|
|
|
862
1260
|
/** @public */
|
|
863
|
-
export declare interface TextStyleProps extends
|
|
1261
|
+
export declare interface TextStyleProps extends FlexItemStyleProps, FontStyleProps {
|
|
864
1262
|
accent?: boolean
|
|
865
1263
|
muted?: boolean
|
|
866
1264
|
size?: ResponsiveProp<TextSize>
|
|
@@ -879,89 +1277,10 @@ export declare type ThemeVarName =
|
|
|
879
1277
|
| `--card-border-width`
|
|
880
1278
|
| `--card-focus-ring-offset`
|
|
881
1279
|
| `--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`
|
|
1280
|
+
| `--shadow-outline`
|
|
963
1281
|
| `--container-${ContainerWidth}`
|
|
964
1282
|
| `--font-code-family`
|
|
1283
|
+
| `--font-code-feature-settings`
|
|
965
1284
|
| `--font-code-weight-${FontWeight}`
|
|
966
1285
|
| `--font-code-${FontCodeSize}-ascender-height`
|
|
967
1286
|
| `--font-code-${FontCodeSize}-descender-height`
|
|
@@ -970,6 +1289,7 @@ export declare type ThemeVarName =
|
|
|
970
1289
|
| `--font-code-${FontCodeSize}-letter-spacing`
|
|
971
1290
|
| `--font-code-${FontCodeSize}-icon-size`
|
|
972
1291
|
| `--font-heading-family`
|
|
1292
|
+
| `--font-heading-feature-settings`
|
|
973
1293
|
| `--font-heading-weight-${FontWeight}`
|
|
974
1294
|
| `--font-heading-${FontHeadingSize}-ascender-height`
|
|
975
1295
|
| `--font-heading-${FontHeadingSize}-descender-height`
|
|
@@ -978,6 +1298,7 @@ export declare type ThemeVarName =
|
|
|
978
1298
|
| `--font-heading-${FontHeadingSize}-letter-spacing`
|
|
979
1299
|
| `--font-heading-${FontHeadingSize}-icon-size`
|
|
980
1300
|
| `--font-label-family`
|
|
1301
|
+
| `--font-label-feature-settings`
|
|
981
1302
|
| `--font-label-weight-${FontWeight}`
|
|
982
1303
|
| `--font-label-${FontLabelSize}-ascender-height`
|
|
983
1304
|
| `--font-label-${FontLabelSize}-descender-height`
|
|
@@ -986,6 +1307,7 @@ export declare type ThemeVarName =
|
|
|
986
1307
|
| `--font-label-${FontLabelSize}-letter-spacing`
|
|
987
1308
|
| `--font-label-${FontLabelSize}-icon-size`
|
|
988
1309
|
| `--font-text-family`
|
|
1310
|
+
| `--font-text-feature-settings`
|
|
989
1311
|
| `--font-text-weight-${FontWeight}`
|
|
990
1312
|
| `--font-text-${FontTextSize}-ascender-height`
|
|
991
1313
|
| `--font-text-${FontTextSize}-descender-height`
|
|
@@ -1020,43 +1342,132 @@ export declare type ThemeVarName =
|
|
|
1020
1342
|
| `--shadow-${Shadow}-penumbra`
|
|
1021
1343
|
| `--shadow-${Shadow}-ambient`
|
|
1022
1344
|
|
|
1023
|
-
export declare function
|
|
1345
|
+
export declare function toast(): string | undefined
|
|
1346
|
+
|
|
1347
|
+
export declare function toastLayer(): string | undefined
|
|
1348
|
+
|
|
1349
|
+
export declare function toastLoadingBar(): string | undefined
|
|
1350
|
+
|
|
1351
|
+
export declare function toastLoadingBarMask(): string | undefined
|
|
1024
1352
|
|
|
1025
|
-
export declare function
|
|
1353
|
+
export declare function toastLoadingBarProgress(): string | undefined
|
|
1026
1354
|
|
|
1027
|
-
export declare function
|
|
1355
|
+
export declare function toBoxShadow(value: ThemeBoxShadow | undefined): string
|
|
1356
|
+
|
|
1357
|
+
export declare function tooltip(): string | undefined
|
|
1358
|
+
|
|
1359
|
+
export declare function tooltipCard(): string | undefined
|
|
1360
|
+
|
|
1361
|
+
export declare function treeItem(): string | undefined
|
|
1362
|
+
|
|
1363
|
+
/** @public */
|
|
1364
|
+
export declare type VarName =
|
|
1365
|
+
| AvatarScopedVarName
|
|
1366
|
+
| LegacyCardScopedVarName
|
|
1367
|
+
| PaletteVarName
|
|
1368
|
+
| ThemeVarName
|
|
1369
|
+
| ColorCardVarName
|
|
1370
|
+
| ButtonScopedVarName
|
|
1371
|
+
| ColorCardToneScopedVarName
|
|
1372
|
+
| CardScopedVarName
|
|
1373
|
+
| ElementColorVariantScopedVarName
|
|
1374
|
+
| InputScopedVarName
|
|
1375
|
+
| SwitchScopedVarName
|
|
1028
1376
|
|
|
1029
1377
|
/** @public */
|
|
1030
1378
|
export declare interface VarNames {
|
|
1031
|
-
color: Record<ThemeColorSchemeKey, ColorSchemeVarNames> &
|
|
1379
|
+
color: Record<ThemeColorSchemeKey, ColorSchemeVarNames> &
|
|
1380
|
+
ScopedColorVarNames &
|
|
1381
|
+
Record<ThemeColorCardToneKey, ColorCardVarNames>
|
|
1382
|
+
container: Record<Exclude<ContainerWidth, 'auto'>, VarName>
|
|
1032
1383
|
avatar: {
|
|
1384
|
+
distance: VarName
|
|
1033
1385
|
focusRing: {
|
|
1034
|
-
offset:
|
|
1035
|
-
width:
|
|
1386
|
+
offset: VarName
|
|
1387
|
+
width: VarName
|
|
1036
1388
|
}
|
|
1389
|
+
size: VarName
|
|
1390
|
+
sizes: Record<
|
|
1391
|
+
AvatarSize,
|
|
1392
|
+
{
|
|
1393
|
+
distance: VarName
|
|
1394
|
+
size: VarName
|
|
1395
|
+
}
|
|
1396
|
+
>
|
|
1037
1397
|
}
|
|
1038
|
-
|
|
1398
|
+
font: {
|
|
1399
|
+
code: FontVarNames<FontCodeSize>
|
|
1400
|
+
heading: FontVarNames<FontHeadingSize>
|
|
1401
|
+
label: FontVarNames<FontLabelSize>
|
|
1402
|
+
text: FontVarNames<FontTextSize>
|
|
1403
|
+
}
|
|
1404
|
+
input: {
|
|
1405
|
+
fontSize: VarName
|
|
1406
|
+
lineHeight: VarName
|
|
1407
|
+
letterSpacing: VarName
|
|
1408
|
+
ascenderHeight: VarName
|
|
1409
|
+
descenderHeight: VarName
|
|
1410
|
+
gap: VarName
|
|
1411
|
+
padding: VarName
|
|
1412
|
+
}
|
|
1413
|
+
radius: Record<Radius, VarName>
|
|
1414
|
+
space: Record<Space, VarName>
|
|
1039
1415
|
}
|
|
1040
1416
|
|
|
1417
|
+
export declare const varNames: VarNames
|
|
1418
|
+
|
|
1041
1419
|
/** @public */
|
|
1042
1420
|
export declare interface Vars {
|
|
1421
|
+
avatar: {
|
|
1422
|
+
distance: CSSVar
|
|
1423
|
+
size: CSSVar
|
|
1424
|
+
sizes: Record<
|
|
1425
|
+
AvatarSize,
|
|
1426
|
+
{
|
|
1427
|
+
distance: CSSVar
|
|
1428
|
+
size: CSSVar
|
|
1429
|
+
}
|
|
1430
|
+
>
|
|
1431
|
+
}
|
|
1043
1432
|
color: {
|
|
1044
1433
|
dark: ColorSchemeVars
|
|
1045
1434
|
light: ColorSchemeVars
|
|
1046
|
-
} & ScopedColorVars
|
|
1435
|
+
} & ScopedColorVars &
|
|
1436
|
+
Record<ThemeColorCardToneKey, ColorCardVars>
|
|
1437
|
+
container: Record<Exclude<ContainerWidth, 'auto'>, CSSVar>
|
|
1047
1438
|
font: {
|
|
1048
1439
|
code: FontVars<FontCodeSize>
|
|
1049
1440
|
heading: FontVars<FontHeadingSize>
|
|
1050
1441
|
label: FontVars<FontLabelSize>
|
|
1051
1442
|
text: FontVars<FontTextSize>
|
|
1052
1443
|
}
|
|
1444
|
+
input: {
|
|
1445
|
+
fontSize: CSSVar
|
|
1446
|
+
lineHeight: CSSVar
|
|
1447
|
+
letterSpacing: CSSVar
|
|
1448
|
+
ascenderHeight: CSSVar
|
|
1449
|
+
descenderHeight: CSSVar
|
|
1450
|
+
gap: CSSVar
|
|
1451
|
+
padding: CSSVar
|
|
1452
|
+
text: {
|
|
1453
|
+
focusRing: {
|
|
1454
|
+
offset: CSSVar
|
|
1455
|
+
width: CSSVar
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
radius: Record<Radius, CSSVar>
|
|
1053
1460
|
space: Record<Space, CSSVar>
|
|
1054
1461
|
}
|
|
1055
1462
|
|
|
1056
|
-
export declare
|
|
1463
|
+
export declare const vars: Vars
|
|
1464
|
+
|
|
1465
|
+
export declare type Width = ContainerWidth | 'fill'
|
|
1466
|
+
|
|
1467
|
+
export declare function width(props: WidthStyleProps): string
|
|
1057
1468
|
|
|
1058
1469
|
export declare interface WidthStyleProps {
|
|
1059
|
-
width?: ResponsiveProp<
|
|
1470
|
+
width?: ResponsiveProp<Width>
|
|
1060
1471
|
}
|
|
1061
1472
|
|
|
1062
1473
|
export {}
|