@sanity/ui 3.0.0-static.10 → 3.0.0-static.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks-cjs/_visual-editing.js +207 -286
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/buildCommand.js +1 -1
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js.map +1 -1
- package/dist/_chunks-cjs/v3_v2.js +251 -0
- package/dist/_chunks-cjs/v3_v2.js.map +1 -0
- package/dist/_chunks-es/_visual-editing.mjs +210 -289
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/refractor.mjs.map +1 -1
- package/dist/_chunks-es/v3_v2.mjs +252 -0
- package/dist/_chunks-es/v3_v2.mjs.map +1 -0
- package/dist/_visual-editing.d.mts +12 -17
- package/dist/_visual-editing.d.ts +12 -17
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +1089 -427
- package/dist/css.d.ts +1089 -427
- package/dist/css.js +2384 -2550
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +2385 -2551
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +14 -46
- package/dist/index.d.ts +14 -46
- package/dist/index.js +31 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -22
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +9 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +3569 -23230
- package/dist/theme.d.mts +122 -88
- package/dist/theme.d.ts +122 -88
- package/dist/theme.js +217 -430
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +200 -411
- package/dist/theme.mjs.map +1 -1
- package/exports/_visual-editing.ts +27 -27
- package/exports/index.ts +1 -1
- package/package.json +40 -40
- package/src/cli/buildCommand.ts +2 -2
- package/src/{ui → core}/StyleTags.tsx +1 -1
- package/src/core/_compat/theme/themeContext.ts +10 -0
- package/src/{ui → core}/_compat/theme/themeProvider.tsx +3 -15
- package/src/{ui → core}/_compat/types.ts +1 -11
- package/src/{ui → core}/components/autocomplete/__workshop__/async.tsx +1 -1
- package/src/{ui → core}/components/autocomplete/__workshop__/constrainedHeight.tsx +13 -6
- package/src/{ui → core}/components/autocomplete/__workshop__/fullscreen.tsx +4 -3
- package/src/{ui → core}/components/autocomplete/autocomplete.tsx +10 -4
- package/src/{ui → core}/components/dialog/dialog.tsx +4 -3
- package/src/{ui → core}/components/hotkeys/hotkeys.tsx +10 -8
- package/src/{ui → core}/components/toast/toast.tsx +1 -0
- package/src/{ui → core}/constants.ts +0 -6
- package/src/core/hooks/useMatchMedia.ts +46 -0
- package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.ts +4 -4
- package/src/{ui → core}/primitives/box/box.tsx +1 -9
- package/src/{ui → core}/primitives/button/button.tsx +12 -14
- package/src/{ui → core}/primitives/card/card.tsx +19 -35
- package/src/core/primitives/card/index.ts +2 -0
- package/src/core/primitives/card/types.ts +12 -0
- package/src/{ui → core}/primitives/code/code.tsx +1 -1
- package/src/{ui → core}/primitives/heading/heading.tsx +1 -1
- package/src/{ui → core}/primitives/kbd/kbd.tsx +2 -2
- package/src/{ui → core}/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
- package/src/{ui → core}/primitives/popover/__workshop__/SidePanelStory.tsx +3 -7
- package/src/{ui → core}/primitives/popover/popover.tsx +70 -9
- package/src/{ui → core}/primitives/popover/popoverCard.tsx +38 -51
- package/src/{ui → core}/primitives/select/select.tsx +3 -3
- package/src/{ui → core}/primitives/stack/stack.tsx +5 -10
- package/src/{ui → core}/primitives/text/text.tsx +1 -1
- package/src/{ui → core}/primitives/textInput/textInput.tsx +1 -1
- package/src/{ui → core}/primitives/tooltip/tooltip.test.tsx +2 -2
- package/src/{ui → core}/primitives/tooltip/tooltip.tsx +3 -2
- package/src/{ui → core}/utils/layer/layerProvider.tsx +1 -1
- package/src/{ui → core}/utils/portal/portal.ts +2 -15
- package/src/{ui → core}/utils/virtualList/virtualList.tsx +1 -2
- package/src/css/_resp.ts +5 -12
- package/src/css/compile/compilePalette.ts +41 -8
- package/src/css/compile/compileRule.ts +1 -8
- package/src/css/compile/compileRules.test.ts +0 -1
- package/src/css/compile/compileRules.ts +3 -6
- package/src/css/compile/compileSystem.ts +3 -6
- package/src/css/compile/compileTheme_v3.ts +55 -46
- package/src/css/components/breadcrumbs/breadcrumbs.ts +2 -2
- package/src/css/components/dialog/dialog.ts +8 -9
- package/src/css/components/dialog/rules.ts +0 -2
- package/src/css/components/menu/menu.ts +3 -3
- package/src/css/components/skeleton/rules.ts +0 -1
- package/src/css/components/skeleton/skeleton.ts +7 -7
- package/src/css/components/skeleton/types.ts +1 -1
- package/src/css/components/toast/rules.ts +0 -1
- package/src/css/components/toast/toast.ts +6 -6
- package/src/css/components/tree/tree.ts +2 -2
- package/src/css/composeClassNames.ts +5 -9
- package/src/css/index.ts +2 -3
- package/src/css/primitives/_arrow/_arrow.ts +6 -6
- package/src/css/primitives/_arrow/{_arrow.style.ts → rules.ts} +5 -7
- package/src/css/primitives/_input/input.ts +12 -12
- package/src/css/primitives/_input/{_input.style.ts → rules.ts} +20 -19
- package/src/css/primitives/_input/types.ts +1 -1
- package/src/css/primitives/_selectable/_contants.ts +1 -1
- package/src/css/primitives/_selectable/{_selectable.style.ts → rules.ts} +3 -6
- package/src/css/primitives/_selectable/selectable.ts +3 -3
- package/src/css/primitives/_selectable/types.ts +1 -1
- package/src/css/primitives/avatar/avatar.ts +7 -7
- package/src/css/primitives/badge/badge.ts +3 -3
- package/src/css/primitives/badge/rules.ts +22 -0
- package/src/css/primitives/badge/types.ts +1 -1
- package/src/css/primitives/box/box.ts +6 -10
- package/src/css/primitives/box/rules.ts +28 -0
- package/src/css/primitives/box/types.ts +7 -5
- package/src/css/primitives/button/_constants.ts +1 -1
- package/src/css/primitives/button/button.ts +3 -3
- package/src/css/primitives/button/rules.ts +10 -19
- package/src/css/primitives/card/_constants.ts +2 -2
- package/src/css/primitives/card/card.ts +6 -4
- package/src/css/primitives/card/rules.ts +471 -0
- package/src/css/primitives/card/types.ts +2 -1
- package/src/css/primitives/checkbox/checkbox.ts +3 -3
- package/src/css/primitives/code/code.ts +3 -3
- package/src/css/primitives/code/types.ts +1 -1
- package/src/css/primitives/container/container.ts +3 -3
- package/src/css/primitives/heading/heading.ts +5 -5
- package/src/css/primitives/heading/types.ts +1 -1
- package/src/css/primitives/kbd/kbd.ts +3 -3
- package/src/css/primitives/kbd/types.ts +1 -1
- package/src/css/primitives/label/label.ts +3 -3
- package/src/css/primitives/label/types.ts +1 -1
- package/src/css/primitives/popover/popover.ts +2 -6
- package/src/css/primitives/radio/radio.ts +2 -2
- package/src/css/primitives/select/select.ts +2 -3
- package/src/css/primitives/spinner/rules.ts +0 -1
- package/src/css/primitives/spinner/spinner.ts +3 -3
- package/src/css/primitives/switch/switch.ts +6 -6
- package/src/css/primitives/text/text.ts +3 -3
- package/src/css/primitives/text/types.ts +1 -1
- package/src/css/primitives/textArea/textArea.ts +1 -2
- package/src/css/primitives/textInput/textInput.ts +2 -2
- package/src/css/primitives/tooltip/tooltip.ts +3 -3
- package/src/css/rules.ts +113 -0
- package/src/css/styles/border/border.ts +22 -0
- package/src/css/styles/border/rules.ts +24 -0
- package/src/css/styles/display/rules.ts +62 -0
- package/src/css/styles/flex/flex.ts +20 -0
- package/src/css/styles/flex/rules.ts +28 -0
- package/src/css/{aspects → styles}/flexItem/flexItem.ts +1 -1
- package/src/css/styles/flexItem/rules.ts +12 -0
- package/src/css/{aspects → styles}/flexItem/types.ts +1 -17
- package/src/css/{aspects → styles}/font/font.ts +7 -2
- package/src/css/{aspects/font/font.style.ts → styles/font/rules.ts} +25 -28
- package/src/css/styles/gap/rules.ts +34 -0
- package/src/css/{aspects → styles}/grid/grid.ts +2 -2
- package/src/css/styles/grid/rules.ts +146 -0
- package/src/css/{aspects → styles}/grid/types.ts +2 -2
- package/src/css/styles/gridItem/rules.ts +96 -0
- package/src/css/{aspects → styles}/index.ts +0 -2
- package/src/css/styles/inset/rules.ts +16 -0
- package/src/css/styles/margin/rules.ts +64 -0
- package/src/css/styles/maxWidth/rules.ts +13 -0
- package/src/css/{aspects → styles}/maxWidth/types.ts +1 -1
- package/src/css/styles/outline/rules.ts +7 -0
- package/src/css/styles/overflow/rules.ts +9 -0
- package/src/css/styles/padding/rules.ts +62 -0
- package/src/css/styles/pointerEvents/rules.ts +11 -0
- package/src/css/{aspects → styles}/position/position.ts +1 -1
- package/src/css/styles/position/rules.ts +24 -0
- package/src/css/styles/radius/rules.ts +13 -0
- package/src/css/{aspects → styles}/radius/types.ts +1 -1
- package/src/css/styles/shadow/rules.ts +53 -0
- package/src/css/styles/textOverflow/rules.ts +17 -0
- package/src/css/styles/textOverflow/textOverflow.ts +6 -0
- package/src/css/{aspects → styles}/width/rules.ts +0 -1
- package/src/css/{aspects → styles}/width/types.ts +1 -1
- package/src/css/types.ts +253 -311
- package/src/css/utils/srOnly/rules.ts +11 -0
- package/src/css/varNames.ts +81 -128
- package/src/css/vars.ts +76 -122
- package/src/theme/_constants.ts +1 -1
- package/src/theme/_types.ts +2 -2
- package/src/theme/build/buildTheme.ts +2 -2
- package/src/theme/defaults/colorTokens.ts +2 -2
- package/src/theme/defaults/config.ts +1 -1
- package/src/theme/defaults/fonts.ts +4 -4
- package/src/theme/palette/constants.ts +3 -1
- package/src/theme/palette/types.ts +12 -0
- package/src/theme/v3/buildTheme_v3.ts +2 -1
- package/src/theme/v3/color/buildColor_v3.ts +38 -43
- package/src/theme/v3/color/card.ts +38 -43
- package/src/theme/v3/color/color.ts +38 -42
- package/src/theme/v3/defaults.ts +72 -69
- package/src/theme/v3/resolveTokens.ts +38 -43
- package/src/theme/v3/types.ts +3 -0
- package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
- package/src/css/_comp.test.ts +0 -7
- package/src/css/_comp.ts +0 -11
- package/src/css/_mergeStyles.ts +0 -31
- package/src/css/_responsiveRule.ts +0 -38
- package/src/css/aspects/border/border.style.ts +0 -13
- package/src/css/aspects/border/border.ts +0 -14
- package/src/css/aspects/display/display.style.ts +0 -34
- package/src/css/aspects/flex/flex.style.ts +0 -30
- package/src/css/aspects/flex/flex.ts +0 -13
- package/src/css/aspects/flex/flexAlign.style.ts +0 -12
- package/src/css/aspects/flex/flexDirection.style.ts +0 -11
- package/src/css/aspects/flex/flexJustify.style.ts +0 -13
- package/src/css/aspects/flex/flexWrap.style.ts +0 -10
- package/src/css/aspects/flexItem/flex.style.ts +0 -22
- package/src/css/aspects/gap/gap.style.ts +0 -21
- package/src/css/aspects/grid/gridAutoColumns.style.ts +0 -11
- package/src/css/aspects/grid/gridAutoFlow.style.ts +0 -11
- package/src/css/aspects/grid/gridAutoRows.style.ts +0 -11
- package/src/css/aspects/grid/gridColumns.style.ts +0 -18
- package/src/css/aspects/grid/gridRows.style.ts +0 -18
- package/src/css/aspects/gridItem/gridColumn.style.ts +0 -20
- package/src/css/aspects/gridItem/gridColumnEnd.style.ts +0 -20
- package/src/css/aspects/gridItem/gridColumnStart.style.ts +0 -20
- package/src/css/aspects/gridItem/gridRow.style.ts +0 -20
- package/src/css/aspects/gridItem/gridRowEnd.style.ts +0 -20
- package/src/css/aspects/gridItem/gridRowStart.style.ts +0 -20
- package/src/css/aspects/height/height.style.ts +0 -9
- package/src/css/aspects/height/height.ts +0 -17
- package/src/css/aspects/height/index.ts +0 -1
- package/src/css/aspects/inset/inset.style.ts +0 -12
- package/src/css/aspects/margin/margin.style.ts +0 -46
- package/src/css/aspects/maxWidth/maxWidth.style.ts +0 -16
- package/src/css/aspects/minWidth/index.ts +0 -2
- package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
- package/src/css/aspects/minWidth/minWidth.ts +0 -6
- package/src/css/aspects/minWidth/types.ts +0 -7
- package/src/css/aspects/outline/outline.style.ts +0 -9
- package/src/css/aspects/overflow/overflow.style.ts +0 -11
- package/src/css/aspects/padding/padding.style.ts +0 -46
- package/src/css/aspects/pointerEvents/pointerEvents.style.ts +0 -13
- package/src/css/aspects/position/position.style.ts +0 -12
- package/src/css/aspects/radius/radius.style.ts +0 -16
- package/src/css/aspects/shadow/shadow.style.ts +0 -49
- package/src/css/aspects/textOverflow/textOverflow.style.ts +0 -21
- package/src/css/aspects/textOverflow/textOverflow.ts +0 -6
- package/src/css/aspects/width/width.style.ts +0 -11
- package/src/css/compile/compileStyle.ts +0 -148
- package/src/css/components/breadcrumbs/breadcrumbs.style.ts +0 -9
- package/src/css/components/dialog/dialog.style.ts +0 -79
- package/src/css/components/menu/menu.style.ts +0 -17
- package/src/css/components/skeleton/skeleton.style.ts +0 -96
- package/src/css/components/toast/toast.style.ts +0 -20
- package/src/css/components/tree/tree.style.ts +0 -55
- package/src/css/constants.ts +0 -1
- package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
- package/src/css/primitives/_input/__workshop__/index.ts +0 -14
- package/src/css/primitives/avatar/avatar.style.ts +0 -175
- package/src/css/primitives/badge/badge.style.ts +0 -22
- package/src/css/primitives/box/box.style.ts +0 -31
- package/src/css/primitives/button/button.style.ts +0 -201
- package/src/css/primitives/card/card.style.ts +0 -270
- package/src/css/primitives/checkbox/checkbox.style.ts +0 -154
- package/src/css/primitives/code/code.style.ts +0 -62
- package/src/css/primitives/container/container.style.ts +0 -10
- package/src/css/primitives/heading/heading.style.ts +0 -47
- package/src/css/primitives/kbd/kbd.style.ts +0 -22
- package/src/css/primitives/label/label.style.ts +0 -48
- package/src/css/primitives/popover/popover.style.ts +0 -5
- package/src/css/primitives/radio/radio.style.ts +0 -123
- package/src/css/primitives/select/select.style.ts +0 -24
- package/src/css/primitives/spinner/spinner.style.ts +0 -22
- package/src/css/primitives/stack/stack.style.ts +0 -9
- package/src/css/primitives/stack/stack.ts +0 -6
- package/src/css/primitives/switch/switch.style.ts +0 -94
- package/src/css/primitives/text/text.style.ts +0 -64
- package/src/css/primitives/textArea/textArea.style.ts +0 -9
- package/src/css/primitives/textInput/textInput.style.ts +0 -167
- package/src/css/primitives/token/token.style.ts +0 -49
- package/src/css/primitives/tooltip/tooltip.style.ts +0 -21
- package/src/css/scopeClassName.ts +0 -6
- package/src/css/system.style.ts +0 -158
- package/src/css/utils/srOnly/srOnly.style.ts +0 -14
- package/src/ui/_compat/theme/themeContext.ts +0 -10
- package/src/ui/hooks/useMatchMedia.ts +0 -28
- package/src/ui/primitives/card/cardContext.ts +0 -10
- package/src/ui/primitives/card/cardProvider.tsx +0 -19
- package/src/ui/primitives/card/index.ts +0 -4
- package/src/ui/primitives/card/types.ts +0 -27
- package/src/ui/primitives/card/useCard.ts +0 -7
- package/src/ui/primitives/stack/index.ts +0 -1
- /package/src/{ui → core}/_compat/index.ts +0 -0
- /package/src/{ui → core}/_compat/styles/_responsive.ts +0 -0
- /package/src/{ui → core}/_compat/styles/index.ts +0 -0
- /package/src/{ui → core}/_compat/theme/index.ts +0 -0
- /package/src/{ui → core}/_compat/theme/theme.test.tsx +0 -0
- /package/src/{ui → core}/_compat/theme/themeColorProvider.tsx +0 -0
- /package/src/{ui → core}/_compat/theme/types.ts +0 -0
- /package/src/{ui → core}/_compat/theme/useRootTheme.ts +0 -0
- /package/src/{ui → core}/_compat/theme/useTheme.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__mocks__/apiStore.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__mocks__/countries.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/custom.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/__workshop__/types.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/autocompleteOption.tsx +0 -0
- /package/src/{ui → core}/components/autocomplete/autocompleteReducer.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/constants.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/index.ts +0 -0
- /package/src/{ui → core}/components/autocomplete/types.ts +0 -0
- /package/src/{ui → core}/components/breadcrumbs/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/components/breadcrumbs/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/breadcrumbs/breadcrumbs.tsx +0 -0
- /package/src/{ui → core}/components/breadcrumbs/index.ts +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/activate.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/autoFocus.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/layering.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/nested.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/onScroll.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/panes.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/position.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/provider.tsx +0 -0
- /package/src/{ui → core}/components/dialog/__workshop__/wrapped.tsx +0 -0
- /package/src/{ui → core}/components/dialog/dialogContext.ts +0 -0
- /package/src/{ui → core}/components/dialog/dialogProvider.tsx +0 -0
- /package/src/{ui → core}/components/dialog/index.ts +0 -0
- /package/src/{ui → core}/components/dialog/useDialog.ts +0 -0
- /package/src/{ui → core}/components/hotkeys/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/hotkeys/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/components/hotkeys/index.ts +0 -0
- /package/src/{ui → core}/components/index.ts +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/asComponent.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/avatarMenu.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/customMenuItem.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/customSelectedState.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/groups.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/menuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/nestedMenu.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/selectedItem.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/shouldFocus.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/components/menu/__workshop__/withoutArrow.tsx +0 -0
- /package/src/{ui → core}/components/menu/helpers.ts +0 -0
- /package/src/{ui → core}/components/menu/index.ts +0 -0
- /package/src/{ui → core}/components/menu/menu.test.tsx +0 -0
- /package/src/{ui → core}/components/menu/menu.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuButton.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuContext.ts +0 -0
- /package/src/{ui → core}/components/menu/menuDivider.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuGroup.tsx +0 -0
- /package/src/{ui → core}/components/menu/menuItem.tsx +0 -0
- /package/src/{ui → core}/components/menu/useMenu.ts +0 -0
- /package/src/{ui → core}/components/menu/useMenuController.ts +0 -0
- /package/src/{ui → core}/components/skeleton/__workshop__/delay.tsx +0 -0
- /package/src/{ui → core}/components/skeleton/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/skeleton/__workshop__/skeleton.tsx +0 -0
- /package/src/{ui → core}/components/skeleton/index.ts +0 -0
- /package/src/{ui → core}/components/skeleton/skeleton.tsx +0 -0
- /package/src/{ui → core}/components/skeleton/textSkeleton.tsx +0 -0
- /package/src/{ui → core}/components/tab/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/components/tab/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/tab/index.ts +0 -0
- /package/src/{ui → core}/components/tab/tab.tsx +0 -0
- /package/src/{ui → core}/components/tab/tabList.tsx +0 -0
- /package/src/{ui → core}/components/tab/tabPanel.tsx +0 -0
- /package/src/{ui → core}/components/toast/__workshop__/hook.tsx +0 -0
- /package/src/{ui → core}/components/toast/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/toast/__workshop__/toast.tsx +0 -0
- /package/src/{ui → core}/components/toast/index.ts +0 -0
- /package/src/{ui → core}/components/toast/toast.test.tsx +0 -0
- /package/src/{ui → core}/components/toast/toastContext.ts +0 -0
- /package/src/{ui → core}/components/toast/toastLayer.tsx +0 -0
- /package/src/{ui → core}/components/toast/toastProvider.tsx +0 -0
- /package/src/{ui → core}/components/toast/toastState.ts +0 -0
- /package/src/{ui → core}/components/toast/types.ts +0 -0
- /package/src/{ui → core}/components/toast/useToast.ts +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/basic.perf.ts +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/basic.tsx +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/components/tree/__workshop__/tabFromElement.tsx +0 -0
- /package/src/{ui → core}/components/tree/helpers.ts +0 -0
- /package/src/{ui → core}/components/tree/index.ts +0 -0
- /package/src/{ui → core}/components/tree/tree.tsx +0 -0
- /package/src/{ui → core}/components/tree/treeContext.ts +0 -0
- /package/src/{ui → core}/components/tree/treeGroup.tsx +0 -0
- /package/src/{ui → core}/components/tree/treeItem.tsx +0 -0
- /package/src/{ui → core}/components/tree/types.ts +0 -0
- /package/src/{ui → core}/components/tree/useTree.ts +0 -0
- /package/src/{ui → core}/global.ts +0 -0
- /package/src/{ui → core}/helpers/animation.ts +0 -0
- /package/src/{ui → core}/helpers/element.ts +0 -0
- /package/src/{ui → core}/helpers/focus.ts +0 -0
- /package/src/{ui → core}/helpers/index.ts +0 -0
- /package/src/{ui → core}/helpers/props.ts +0 -0
- /package/src/{ui → core}/helpers/scroll.ts +0 -0
- /package/src/{ui → core}/hooks/index.ts +0 -0
- /package/src/{ui → core}/hooks/useArrayProp.ts +0 -0
- /package/src/{ui → core}/hooks/useClickOutside.test.tsx +0 -0
- /package/src/{ui → core}/hooks/useClickOutside.ts +0 -0
- /package/src/{ui → core}/hooks/useClickOutsideEvent.test.tsx +0 -0
- /package/src/{ui → core}/hooks/useClickOutsideEvent.ts +0 -0
- /package/src/{ui → core}/hooks/useCustomValidity.ts +0 -0
- /package/src/{ui → core}/hooks/useDelayed.test.ts +0 -0
- /package/src/{ui → core}/hooks/useDelayedState.ts +0 -0
- /package/src/{ui → core}/hooks/useElementRect/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/hooks/useElementRect/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/hooks/useElementRect/index.ts +0 -0
- /package/src/{ui → core}/hooks/useElementRect/useElementRect.ts +0 -0
- /package/src/{ui → core}/hooks/useElementSize.ts +0 -0
- /package/src/{ui → core}/hooks/useForwardedRef.ts +0 -0
- /package/src/{ui → core}/hooks/useGlobalKeyDown.ts +0 -0
- /package/src/{ui → core}/hooks/useIsomorphicEffect.ts +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/index.ts +0 -0
- /package/src/{ui → core}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
- /package/src/{ui → core}/hooks/useMounted.ts +0 -0
- /package/src/{ui → core}/hooks/usePrefersDark.hydration.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersDark.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersDark.ts +0 -0
- /package/src/{ui → core}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersReducedMotion.test.tsx +0 -0
- /package/src/{ui → core}/hooks/usePrefersReducedMotion.ts +0 -0
- /package/src/{ui → core}/index.ts +0 -0
- /package/src/{ui → core}/lib/createGlobalScopedContext.ts +0 -0
- /package/src/{ui → core}/lib/globalScope.ts +0 -0
- /package/src/{ui → core}/lib/isRecord.ts +0 -0
- /package/src/{ui → core}/middleware/origin.ts +0 -0
- /package/src/{ui → core}/observers/elementSizeObserver.ts +0 -0
- /package/src/{ui → core}/observers/index.ts +0 -0
- /package/src/{ui → core}/observers/resizeObserver.ts +0 -0
- /package/src/{ui → core}/primitives/_selectable/index.ts +0 -0
- /package/src/{ui → core}/primitives/_selectable/selectable.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/asButton.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/stack.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/avatar.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/avatarCounter.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/avatarStack.tsx +0 -0
- /package/src/{ui → core}/primitives/avatar/index.ts +0 -0
- /package/src/{ui → core}/primitives/avatar/types.ts +0 -0
- /package/src/{ui → core}/primitives/badge/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/badge/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/badge.test.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/badge.tsx +0 -0
- /package/src/{ui → core}/primitives/badge/index.ts +0 -0
- /package/src/{ui → core}/primitives/badge/types.ts +0 -0
- /package/src/{ui → core}/primitives/box/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/box/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/box/__workshop__/responsive.tsx +0 -0
- /package/src/{ui → core}/primitives/box/index.ts +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/custom.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/customIcons.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/disabled.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/stacked.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/styled1.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/styled2.tsx +0 -0
- /package/src/{ui → core}/primitives/button/__workshop__/uploadButton.tsx +0 -0
- /package/src/{ui → core}/primitives/button/button.test.tsx +0 -0
- /package/src/{ui → core}/primitives/button/index.ts +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/allTones.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/asButton.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/asComponent.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/checkered.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/interactive.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/listNavigation.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/selected.tsx +0 -0
- /package/src/{ui → core}/primitives/card/__workshop__/styled.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/checkbox.tsx +0 -0
- /package/src/{ui → core}/primitives/checkbox/index.ts +0 -0
- /package/src/{ui → core}/primitives/code/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/code/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/code/index.ts +0 -0
- /package/src/{ui → core}/primitives/code/refractor.tsx +0 -0
- /package/src/{ui → core}/primitives/container/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/container/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/container/container.tsx +0 -0
- /package/src/{ui → core}/primitives/container/index.ts +0 -0
- /package/src/{ui → core}/primitives/container/types.ts +0 -0
- /package/src/{ui → core}/primitives/flex/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/flex/__workshop__/gap.tsx +0 -0
- /package/src/{ui → core}/primitives/flex/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/flex/flex.tsx +0 -0
- /package/src/{ui → core}/primitives/flex/index.ts +0 -0
- /package/src/{ui → core}/primitives/grid/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/grid/__workshop__/responsive.tsx +0 -0
- /package/src/{ui → core}/primitives/grid/grid.tsx +0 -0
- /package/src/{ui → core}/primitives/grid/index.ts +0 -0
- /package/src/{ui → core}/primitives/heading/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/heading/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/heading/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/heading/index.ts +0 -0
- /package/src/{ui → core}/primitives/index.ts +0 -0
- /package/src/{ui → core}/primitives/inline/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/inline/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/inline/index.ts +0 -0
- /package/src/{ui → core}/primitives/inline/inline.tsx +0 -0
- /package/src/{ui → core}/primitives/inline/types.ts +0 -0
- /package/src/{ui → core}/primitives/kbd/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/kbd/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/kbd/index.ts +0 -0
- /package/src/{ui → core}/primitives/label/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/label/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/label/index.ts +0 -0
- /package/src/{ui → core}/primitives/label/label.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/TestStory.tsx +0 -0
- /package/src/{ui → core}/primitives/popover/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/popover/constants.ts +0 -0
- /package/src/{ui → core}/primitives/popover/floating-ui/size.ts +0 -0
- /package/src/{ui → core}/primitives/popover/helpers.ts +0 -0
- /package/src/{ui → core}/primitives/popover/index.ts +0 -0
- /package/src/{ui → core}/primitives/popover/types.ts +0 -0
- /package/src/{ui → core}/primitives/radio/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/radio/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/radio/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/radio/index.ts +0 -0
- /package/src/{ui → core}/primitives/radio/radio.tsx +0 -0
- /package/src/{ui → core}/primitives/select/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/select/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/select/__workshop__/readOnly.tsx +0 -0
- /package/src/{ui → core}/primitives/select/index.ts +0 -0
- /package/src/{ui → core}/primitives/spinner/__workshop__/Props.tsx +0 -0
- /package/src/{ui → core}/primitives/spinner/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
- /package/src/{ui → core}/primitives/spinner/index.ts +0 -0
- /package/src/{ui → core}/primitives/spinner/spinner.tsx +0 -0
- /package/src/{ui → core}/primitives/stack/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/stack/__workshop__/plain.tsx +0 -0
- /package/src/{css → core}/primitives/stack/index.ts +0 -0
- /package/src/{ui → core}/primitives/switch/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/switch/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/switch/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/switch/index.ts +0 -0
- /package/src/{ui → core}/primitives/switch/switch.tsx +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/colored.tsx +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/example.tsx +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{ui → core}/primitives/text/index.ts +0 -0
- /package/src/{ui → core}/primitives/textArea/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/textArea/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/textArea/index.ts +0 -0
- /package/src/{ui → core}/primitives/textArea/textArea.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/states.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/tones.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/__workshop__/typed.tsx +0 -0
- /package/src/{ui → core}/primitives/textInput/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/props.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/constants.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipCard.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
- /package/src/{ui → core}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
- /package/src/{ui → core}/primitives/types.ts +0 -0
- /package/src/{ui → core}/types/avatar.ts +0 -0
- /package/src/{ui → core}/types/badge.ts +0 -0
- /package/src/{ui → core}/types/box.ts +0 -0
- /package/src/{ui → core}/types/button.ts +0 -0
- /package/src/{ui → core}/types/card.ts +0 -0
- /package/src/{ui → core}/types/dialog.ts +0 -0
- /package/src/{ui → core}/types/flex.ts +0 -0
- /package/src/{ui → core}/types/grid.ts +0 -0
- /package/src/{ui → core}/types/gridItem.ts +0 -0
- /package/src/{ui → core}/types/index.ts +0 -0
- /package/src/{ui → core}/types/placement.ts +0 -0
- /package/src/{ui → core}/types/popover.ts +0 -0
- /package/src/{ui → core}/types/props.ts +0 -0
- /package/src/{ui → core}/types/radius.ts +0 -0
- /package/src/{ui → core}/types/selectable.ts +0 -0
- /package/src/{ui → core}/types/text.ts +0 -0
- /package/src/{ui → core}/utils/arrow/arrow.tsx +0 -0
- /package/src/{ui → core}/utils/arrow/cmds.ts +0 -0
- /package/src/{ui → core}/utils/arrow/index.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
- /package/src/{ui → core}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
- /package/src/{ui → core}/utils/boundaryElement/boundaryElementContext.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
- /package/src/{ui → core}/utils/boundaryElement/index.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/types.ts +0 -0
- /package/src/{ui → core}/utils/boundaryElement/useBoundaryElement.ts +0 -0
- /package/src/{ui → core}/utils/conditionalWrapper/conditionalWrapper.tsx +0 -0
- /package/src/{ui → core}/utils/conditionalWrapper/index.ts +0 -0
- /package/src/{ui → core}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
- /package/src/{ui → core}/utils/elementQuery/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/elementQuery/elementQuery.tsx +0 -0
- /package/src/{ui → core}/utils/elementQuery/helpers.ts +0 -0
- /package/src/{ui → core}/utils/elementQuery/index.ts +0 -0
- /package/src/{ui → core}/utils/errorBoundary.tsx +0 -0
- /package/src/{ui → core}/utils/getElementRef.ts +0 -0
- /package/src/{ui → core}/utils/index.ts +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/_debug.tsx +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/nested.tsx +0 -0
- /package/src/{ui → core}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
- /package/src/{ui → core}/utils/layer/getLayerContext.test.ts +0 -0
- /package/src/{ui → core}/utils/layer/getLayerContext.ts +0 -0
- /package/src/{ui → core}/utils/layer/index.ts +0 -0
- /package/src/{ui → core}/utils/layer/layer.test.tsx +0 -0
- /package/src/{ui → core}/utils/layer/layer.tsx +0 -0
- /package/src/{ui → core}/utils/layer/layerContext.ts +0 -0
- /package/src/{ui → core}/utils/layer/types.ts +0 -0
- /package/src/{ui → core}/utils/layer/useLayer.ts +0 -0
- /package/src/{ui → core}/utils/portal/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/portal/__workshop__/named.tsx +0 -0
- /package/src/{ui → core}/utils/portal/index.ts +0 -0
- /package/src/{ui → core}/utils/portal/portal.test.tsx +0 -0
- /package/src/{ui → core}/utils/portal/portalContext.ts +0 -0
- /package/src/{ui → core}/utils/portal/portalProvider.tsx +0 -0
- /package/src/{ui → core}/utils/portal/types.ts +0 -0
- /package/src/{ui → core}/utils/portal/usePortal.ts +0 -0
- /package/src/{ui → core}/utils/spanWithTextOverflow.tsx +0 -0
- /package/src/{ui → core}/utils/srOnly/index.ts +0 -0
- /package/src/{ui → core}/utils/srOnly/srOnly.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/index.ts +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
- /package/src/{ui → core}/utils/virtualList/index.ts +0 -0
- /package/src/css/{aspects → styles}/border/index.ts +0 -0
- /package/src/css/{aspects → styles}/border/types.ts +0 -0
- /package/src/css/{aspects → styles}/display/display.ts +0 -0
- /package/src/css/{aspects → styles}/display/index.ts +0 -0
- /package/src/css/{aspects → styles}/display/types.ts +0 -0
- /package/src/css/{aspects → styles}/flex/index.ts +0 -0
- /package/src/css/{aspects → styles}/flex/types.ts +0 -0
- /package/src/css/{aspects → styles}/flexItem/index.ts +0 -0
- /package/src/css/{aspects → styles}/font/index.ts +0 -0
- /package/src/css/{aspects → styles}/font/types.ts +0 -0
- /package/src/css/{aspects → styles}/gap/gap.ts +0 -0
- /package/src/css/{aspects → styles}/gap/index.ts +0 -0
- /package/src/css/{aspects → styles}/gap/types.ts +0 -0
- /package/src/css/{aspects → styles}/grid/index.ts +0 -0
- /package/src/css/{aspects → styles}/gridItem/gridItem.ts +0 -0
- /package/src/css/{aspects → styles}/gridItem/index.ts +0 -0
- /package/src/css/{aspects → styles}/gridItem/types.ts +0 -0
- /package/src/css/{aspects → styles}/height/rules.ts +0 -0
- /package/src/css/{aspects → styles}/inset/index.ts +0 -0
- /package/src/css/{aspects → styles}/inset/inset.ts +0 -0
- /package/src/css/{aspects → styles}/inset/types.ts +0 -0
- /package/src/css/{aspects → styles}/margin/index.ts +0 -0
- /package/src/css/{aspects → styles}/margin/margin.ts +0 -0
- /package/src/css/{aspects → styles}/margin/types.ts +0 -0
- /package/src/css/{aspects → styles}/maxWidth/index.ts +0 -0
- /package/src/css/{aspects → styles}/maxWidth/maxWidth.ts +0 -0
- /package/src/css/{aspects → styles}/overflow/index.ts +0 -0
- /package/src/css/{aspects → styles}/overflow/overflow.ts +0 -0
- /package/src/css/{aspects → styles}/overflow/types.ts +0 -0
- /package/src/css/{aspects → styles}/padding/index.ts +0 -0
- /package/src/css/{aspects → styles}/padding/padding.ts +0 -0
- /package/src/css/{aspects → styles}/padding/types.ts +0 -0
- /package/src/css/{aspects → styles}/pointerEvents/index.ts +0 -0
- /package/src/css/{aspects → styles}/pointerEvents/pointerEvents.ts +0 -0
- /package/src/css/{aspects → styles}/pointerEvents/types.ts +0 -0
- /package/src/css/{aspects → styles}/position/index.ts +0 -0
- /package/src/css/{aspects → styles}/position/types.ts +0 -0
- /package/src/css/{aspects → styles}/radius/index.ts +0 -0
- /package/src/css/{aspects → styles}/radius/radius.ts +0 -0
- /package/src/css/{aspects → styles}/shadow/index.ts +0 -0
- /package/src/css/{aspects → styles}/shadow/shadow.ts +0 -0
- /package/src/css/{aspects → styles}/shadow/types.ts +0 -0
- /package/src/css/{aspects → styles}/textOverflow/index.ts +0 -0
- /package/src/css/{aspects → styles}/textOverflow/types.ts +0 -0
- /package/src/css/{aspects → styles}/width/index.ts +0 -0
- /package/src/css/{aspects → styles}/width/width.ts +0 -0
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
import { THEME_COLOR_BLEND_MODES, THEME_COLOR_BUTTON_MODES, THEME_COLOR_CARD_TONES, THEME_COLOR_STATE_TONES, THEME_COLOR_AVATAR_COLORS, v3_v2, THEME_COLOR_STATES, THEME_COLOR_INPUT_MODES, THEME_COLOR_INPUT_STATES } from "./_chunks-es/v3_v2.mjs";
|
|
2
|
+
import { THEME_COLOR_SCHEMES } from "./_chunks-es/v3_v2.mjs";
|
|
1
3
|
import { COLOR_HUES, COLOR_TINTS } from "@sanity/color";
|
|
2
|
-
|
|
4
|
+
function isColorBlendModeValue(str) {
|
|
5
|
+
return THEME_COLOR_BLEND_MODES.includes(str);
|
|
6
|
+
}
|
|
7
|
+
function isColorHueKey(str) {
|
|
8
|
+
return COLOR_HUES.includes(str);
|
|
9
|
+
}
|
|
10
|
+
function isColorTintKey(str) {
|
|
11
|
+
return COLOR_TINTS.includes(str);
|
|
12
|
+
}
|
|
13
|
+
function isColorButtonMode(str) {
|
|
14
|
+
return THEME_COLOR_BUTTON_MODES.includes(str);
|
|
15
|
+
}
|
|
16
|
+
const AVATAR_SIZE = [0, 1, 2, 3], CONTAINER = [0, 1, 2, 3, 4, 5], RADIUS = [0, 1, 2, 3, 4, 5, 6, "full"], SPACE = [0, 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9], FONT_CODE_SIZE = [0, 1, 2, 3, 4], FONT_HEADING_SIZE = [0, 1, 2, 3, 4, 5], FONT_LABEL_SIZE = [0, 1, 2, 3, 4, 5], FONT_TEXT_SIZE = [0, 1, 2, 3, 4], SHADOW = [0, 1, 2, 3, 4, 5];
|
|
3
17
|
function createSelectableTones(opts, base, dark, solid, muted) {
|
|
4
18
|
return {
|
|
5
19
|
default: _createSelectableStates(opts, base, dark, solid, muted, "default"),
|
|
@@ -1171,7 +1185,7 @@ const defaultThemeConfig = {
|
|
|
1171
1185
|
zOffset: 200
|
|
1172
1186
|
}
|
|
1173
1187
|
},
|
|
1174
|
-
radius: [0, 1,
|
|
1188
|
+
radius: [0, 1, 5, 9, 13, 17, 25, 45, 77, 129],
|
|
1175
1189
|
shadow: [null, {
|
|
1176
1190
|
umbra: [0, 0, 0, 0],
|
|
1177
1191
|
penumbra: [0, 0, 0, 0],
|
|
@@ -1287,10 +1301,10 @@ const defaultThemeConfig = {
|
|
|
1287
1301
|
family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
|
|
1288
1302
|
featureSettings: "'liga' 1, 'calt' 1, 'ss01' 1, 'ss03' 1, 'zero' 1",
|
|
1289
1303
|
weights: {
|
|
1290
|
-
regular:
|
|
1291
|
-
medium:
|
|
1292
|
-
semibold:
|
|
1293
|
-
bold:
|
|
1304
|
+
regular: 400,
|
|
1305
|
+
medium: 500,
|
|
1306
|
+
semibold: 600,
|
|
1307
|
+
bold: 700
|
|
1294
1308
|
},
|
|
1295
1309
|
sizes: [{
|
|
1296
1310
|
ascenderHeight: 5,
|
|
@@ -1433,39 +1447,7 @@ const defaultThemeConfig = {
|
|
|
1433
1447
|
letterSpacing: 0
|
|
1434
1448
|
}]
|
|
1435
1449
|
}
|
|
1436
|
-
},
|
|
1437
|
-
"transparent",
|
|
1438
|
-
"default",
|
|
1439
|
-
"neutral",
|
|
1440
|
-
"primary",
|
|
1441
|
-
// deprecated
|
|
1442
|
-
"suggest",
|
|
1443
|
-
"positive",
|
|
1444
|
-
"caution",
|
|
1445
|
-
"critical"
|
|
1446
|
-
], THEME_COLOR_STATE_TONES = [
|
|
1447
|
-
"default",
|
|
1448
|
-
"neutral",
|
|
1449
|
-
"primary",
|
|
1450
|
-
// deprecated
|
|
1451
|
-
"suggest",
|
|
1452
|
-
"positive",
|
|
1453
|
-
"caution",
|
|
1454
|
-
"critical"
|
|
1455
|
-
], THEME_COLOR_STATES = ["enabled", "hovered", "pressed", "selected", "disabled"], THEME_COLOR_BUTTON_MODES = ["default", "ghost", "bleed"], THEME_COLOR_INPUT_MODES = ["default", "invalid"], THEME_COLOR_INPUT_STATES = ["enabled", "hovered", "readOnly", "disabled"], THEME_COLOR_AVATAR_COLORS = COLOR_HUES;
|
|
1456
|
-
function isColorBlendModeValue(str) {
|
|
1457
|
-
return THEME_COLOR_BLEND_MODES.includes(str);
|
|
1458
|
-
}
|
|
1459
|
-
function isColorHueKey(str) {
|
|
1460
|
-
return COLOR_HUES.includes(str);
|
|
1461
|
-
}
|
|
1462
|
-
function isColorTintKey(str) {
|
|
1463
|
-
return COLOR_TINTS.includes(str);
|
|
1464
|
-
}
|
|
1465
|
-
function isColorButtonMode(str) {
|
|
1466
|
-
return THEME_COLOR_BUTTON_MODES.includes(str);
|
|
1467
|
-
}
|
|
1468
|
-
const HUES = ["gray", "blue", "purple", "magenta", "red", "orange", "yellow", "green", "cyan"], TINTS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], RE_PERCENTAGE = /^([0-9]+)%/, RE_OPACITY = /^(1|0\.[0-9]+)?/;
|
|
1450
|
+
}, HUES = ["gray", "blue", "purple", "magenta", "red", "orange", "yellow", "green", "cyan"], TINTS = [50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, 750, 800, 850, 900, 950], RE_PERCENTAGE = /^([0-9]+)%/, RE_OPACITY = /^(1|0\.[0-9]+)?/;
|
|
1469
1451
|
function parseColor$1(str) {
|
|
1470
1452
|
let cursor = 0;
|
|
1471
1453
|
const color = getColor();
|
|
@@ -1595,48 +1577,6 @@ function buildColorCard_v3(tokens, options) {
|
|
|
1595
1577
|
}, acc;
|
|
1596
1578
|
}, {}),
|
|
1597
1579
|
backdrop: renderColor(tokens.backdrop, context),
|
|
1598
|
-
code: {
|
|
1599
|
-
bg: renderColor(tokens.code.bg, context),
|
|
1600
|
-
fg: renderColor(tokens.code.fg, context),
|
|
1601
|
-
token: {
|
|
1602
|
-
atrule: renderColor(tokens.code.token.atrule, context),
|
|
1603
|
-
attrName: renderColor(tokens.code.token.attrName, context),
|
|
1604
|
-
attrValue: renderColor(tokens.code.token.attrValue, context),
|
|
1605
|
-
attribute: renderColor(tokens.code.token.attribute, context),
|
|
1606
|
-
boolean: renderColor(tokens.code.token.boolean, context),
|
|
1607
|
-
builtin: renderColor(tokens.code.token.builtin, context),
|
|
1608
|
-
cdata: renderColor(tokens.code.token.cdata, context),
|
|
1609
|
-
char: renderColor(tokens.code.token.char, context),
|
|
1610
|
-
class: renderColor(tokens.code.token.class, context),
|
|
1611
|
-
className: renderColor(tokens.code.token.className, context),
|
|
1612
|
-
comment: renderColor(tokens.code.token.comment, context),
|
|
1613
|
-
constant: renderColor(tokens.code.token.constant, context),
|
|
1614
|
-
deleted: renderColor(tokens.code.token.deleted, context),
|
|
1615
|
-
doctype: renderColor(tokens.code.token.doctype, context),
|
|
1616
|
-
entity: renderColor(tokens.code.token.entity, context),
|
|
1617
|
-
function: renderColor(tokens.code.token.function, context),
|
|
1618
|
-
hexcode: renderColor(tokens.code.token.hexcode, context),
|
|
1619
|
-
id: renderColor(tokens.code.token.id, context),
|
|
1620
|
-
important: renderColor(tokens.code.token.important, context),
|
|
1621
|
-
inserted: renderColor(tokens.code.token.inserted, context),
|
|
1622
|
-
keyword: renderColor(tokens.code.token.keyword, context),
|
|
1623
|
-
number: renderColor(tokens.code.token.number, context),
|
|
1624
|
-
operator: renderColor(tokens.code.token.operator, context),
|
|
1625
|
-
prolog: renderColor(tokens.code.token.prolog, context),
|
|
1626
|
-
property: renderColor(tokens.code.token.property, context),
|
|
1627
|
-
pseudoClass: renderColor(tokens.code.token.pseudoClass, context),
|
|
1628
|
-
pseudoElement: renderColor(tokens.code.token.pseudoElement, context),
|
|
1629
|
-
punctuation: renderColor(tokens.code.token.punctuation, context),
|
|
1630
|
-
regex: renderColor(tokens.code.token.regex, context),
|
|
1631
|
-
selector: renderColor(tokens.code.token.selector, context),
|
|
1632
|
-
string: renderColor(tokens.code.token.string, context),
|
|
1633
|
-
symbol: renderColor(tokens.code.token.symbol, context),
|
|
1634
|
-
tag: renderColor(tokens.code.token.tag, context),
|
|
1635
|
-
unit: renderColor(tokens.code.token.unit, context),
|
|
1636
|
-
url: renderColor(tokens.code.token.url, context),
|
|
1637
|
-
variable: renderColor(tokens.code.token.variable, context)
|
|
1638
|
-
}
|
|
1639
|
-
},
|
|
1640
1580
|
focusRing: renderColor(tokens.focusRing, context),
|
|
1641
1581
|
shadow: {
|
|
1642
1582
|
outline: renderColor(tokens.shadow.outline, context),
|
|
@@ -1648,6 +1588,44 @@ function buildColorCard_v3(tokens, options) {
|
|
|
1648
1588
|
from: renderColor(tokens.skeleton.from, context),
|
|
1649
1589
|
to: renderColor(tokens.skeleton.to, context)
|
|
1650
1590
|
},
|
|
1591
|
+
token: {
|
|
1592
|
+
atrule: renderColor(tokens.token.atrule, context),
|
|
1593
|
+
attrName: renderColor(tokens.token.attrName, context),
|
|
1594
|
+
attrValue: renderColor(tokens.token.attrValue, context),
|
|
1595
|
+
attribute: renderColor(tokens.token.attribute, context),
|
|
1596
|
+
boolean: renderColor(tokens.token.boolean, context),
|
|
1597
|
+
builtin: renderColor(tokens.token.builtin, context),
|
|
1598
|
+
cdata: renderColor(tokens.token.cdata, context),
|
|
1599
|
+
char: renderColor(tokens.token.char, context),
|
|
1600
|
+
class: renderColor(tokens.token.class, context),
|
|
1601
|
+
className: renderColor(tokens.token.className, context),
|
|
1602
|
+
comment: renderColor(tokens.token.comment, context),
|
|
1603
|
+
constant: renderColor(tokens.token.constant, context),
|
|
1604
|
+
deleted: renderColor(tokens.token.deleted, context),
|
|
1605
|
+
doctype: renderColor(tokens.token.doctype, context),
|
|
1606
|
+
entity: renderColor(tokens.token.entity, context),
|
|
1607
|
+
function: renderColor(tokens.token.function, context),
|
|
1608
|
+
hexcode: renderColor(tokens.token.hexcode, context),
|
|
1609
|
+
id: renderColor(tokens.token.id, context),
|
|
1610
|
+
important: renderColor(tokens.token.important, context),
|
|
1611
|
+
inserted: renderColor(tokens.token.inserted, context),
|
|
1612
|
+
keyword: renderColor(tokens.token.keyword, context),
|
|
1613
|
+
number: renderColor(tokens.token.number, context),
|
|
1614
|
+
operator: renderColor(tokens.token.operator, context),
|
|
1615
|
+
prolog: renderColor(tokens.token.prolog, context),
|
|
1616
|
+
property: renderColor(tokens.token.property, context),
|
|
1617
|
+
pseudoClass: renderColor(tokens.token.pseudoClass, context),
|
|
1618
|
+
pseudoElement: renderColor(tokens.token.pseudoElement, context),
|
|
1619
|
+
punctuation: renderColor(tokens.token.punctuation, context),
|
|
1620
|
+
regex: renderColor(tokens.token.regex, context),
|
|
1621
|
+
selector: renderColor(tokens.token.selector, context),
|
|
1622
|
+
string: renderColor(tokens.token.string, context),
|
|
1623
|
+
symbol: renderColor(tokens.token.symbol, context),
|
|
1624
|
+
tag: renderColor(tokens.token.tag, context),
|
|
1625
|
+
unit: renderColor(tokens.token.unit, context),
|
|
1626
|
+
url: renderColor(tokens.token.url, context),
|
|
1627
|
+
variable: renderColor(tokens.token.variable, context)
|
|
1628
|
+
},
|
|
1651
1629
|
variant: {
|
|
1652
1630
|
solid: {
|
|
1653
1631
|
...THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
|
|
@@ -1692,53 +1670,59 @@ function buildColorElement_v3(tokens, options) {
|
|
|
1692
1670
|
}
|
|
1693
1671
|
};
|
|
1694
1672
|
}
|
|
1695
|
-
const
|
|
1673
|
+
const defaultPalette = {
|
|
1674
|
+
chroma: {
|
|
1675
|
+
min: 5e-3,
|
|
1676
|
+
max: 0.2325
|
|
1677
|
+
},
|
|
1678
|
+
luminosity: {
|
|
1679
|
+
min: 0.1875,
|
|
1680
|
+
max: 1
|
|
1681
|
+
},
|
|
1682
|
+
hues: {
|
|
1683
|
+
gray: {
|
|
1684
|
+
h: 277,
|
|
1685
|
+
c: 0.04
|
|
1686
|
+
},
|
|
1687
|
+
blue: {
|
|
1688
|
+
h: 273,
|
|
1689
|
+
c: 0.185
|
|
1690
|
+
},
|
|
1691
|
+
purple: {
|
|
1692
|
+
h: 295,
|
|
1693
|
+
c: 0.4
|
|
1694
|
+
},
|
|
1695
|
+
magenta: {
|
|
1696
|
+
h: 12,
|
|
1697
|
+
c: 0.4
|
|
1698
|
+
},
|
|
1699
|
+
red: {
|
|
1700
|
+
h: 30,
|
|
1701
|
+
c: 0.4
|
|
1702
|
+
},
|
|
1703
|
+
orange: {
|
|
1704
|
+
h: 68,
|
|
1705
|
+
c: 0.4
|
|
1706
|
+
},
|
|
1707
|
+
yellow: {
|
|
1708
|
+
h: 90,
|
|
1709
|
+
c: 0.4
|
|
1710
|
+
},
|
|
1711
|
+
green: {
|
|
1712
|
+
h: 171,
|
|
1713
|
+
c: 0.4
|
|
1714
|
+
},
|
|
1715
|
+
cyan: {
|
|
1716
|
+
h: 194,
|
|
1717
|
+
c: 0.4
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
}, defaultTokens = {
|
|
1696
1721
|
color: {
|
|
1697
1722
|
"*": {
|
|
1698
1723
|
// backdrop: ['black/0.2', '200/0.2'],
|
|
1699
1724
|
backdrop: ["black/0.5", "gray/100/0.5"],
|
|
1700
|
-
|
|
1701
|
-
bg: ["950", "50"],
|
|
1702
|
-
fg: ["300", "700"],
|
|
1703
|
-
token: {
|
|
1704
|
-
atrule: ["purple/300", "purple/600"],
|
|
1705
|
-
attrName: ["green/300", "green/600"],
|
|
1706
|
-
attrValue: ["yellow/300", "yellow/600"],
|
|
1707
|
-
attribute: ["yellow/300", "yellow/600"],
|
|
1708
|
-
boolean: ["purple/300", "purple/600"],
|
|
1709
|
-
builtin: ["purple/300", "purple/600"],
|
|
1710
|
-
cdata: ["yellow/300", "yellow/600"],
|
|
1711
|
-
char: ["yellow/300", "yellow/600"],
|
|
1712
|
-
class: ["orange/300", "orange/600"],
|
|
1713
|
-
className: ["cyan/300", "cyan/600"],
|
|
1714
|
-
comment: ["gray/600", "gray/300"],
|
|
1715
|
-
constant: ["purple/300", "purple/600"],
|
|
1716
|
-
deleted: ["red/300", "red/600"],
|
|
1717
|
-
entity: ["red/300", "red/600"],
|
|
1718
|
-
function: ["green/300", "green/600"],
|
|
1719
|
-
hexcode: ["blue/300", "blue/600"],
|
|
1720
|
-
id: ["purple/300", "purple/600"],
|
|
1721
|
-
important: ["purple/300", "purple/600"],
|
|
1722
|
-
inserted: ["green/300", "green/600"],
|
|
1723
|
-
keyword: ["magenta/300", "magenta/600"],
|
|
1724
|
-
number: ["purple/300", "purple/600"],
|
|
1725
|
-
operator: ["magenta/300", "magenta/600"],
|
|
1726
|
-
prolog: ["gray/300", "gray/600"],
|
|
1727
|
-
property: ["blue/300", "blue/600"],
|
|
1728
|
-
pseudoClass: ["yellow/300", "yellow/600"],
|
|
1729
|
-
pseudoElement: ["yellow/300", "yellow/600"],
|
|
1730
|
-
punctuation: ["gray/300", "gray/600"],
|
|
1731
|
-
regex: ["blue/300", "blue/600"],
|
|
1732
|
-
selector: ["red/300", "red/600"],
|
|
1733
|
-
string: ["yellow/300", "yellow/600"],
|
|
1734
|
-
symbol: ["purple/300", "purple/600"],
|
|
1735
|
-
tag: ["red/300", "red/600"],
|
|
1736
|
-
unit: ["orange/300", "orange/600"],
|
|
1737
|
-
url: ["red/300", "red/600"],
|
|
1738
|
-
variable: ["red/300", "red/600"]
|
|
1739
|
-
}
|
|
1740
|
-
},
|
|
1741
|
-
focusRing: ["blue/500", "blue/500"],
|
|
1725
|
+
focusRing: ["blue/500", "blue/300"],
|
|
1742
1726
|
link: {
|
|
1743
1727
|
fg: ["blue/400", "blue/600"]
|
|
1744
1728
|
},
|
|
@@ -1748,16 +1732,53 @@ const defaultTokens = {
|
|
|
1748
1732
|
penumbra: ["black/0.14", "500/0.07"],
|
|
1749
1733
|
ambient: ["black/0.12", "500/0.06"]
|
|
1750
1734
|
},
|
|
1735
|
+
token: {
|
|
1736
|
+
atrule: ["purple/300", "purple/600"],
|
|
1737
|
+
attrName: ["green/300", "green/600"],
|
|
1738
|
+
attrValue: ["yellow/300", "yellow/600"],
|
|
1739
|
+
attribute: ["yellow/300", "yellow/600"],
|
|
1740
|
+
boolean: ["purple/300", "purple/600"],
|
|
1741
|
+
builtin: ["purple/300", "purple/600"],
|
|
1742
|
+
cdata: ["yellow/300", "yellow/600"],
|
|
1743
|
+
char: ["yellow/300", "yellow/600"],
|
|
1744
|
+
class: ["orange/300", "orange/600"],
|
|
1745
|
+
className: ["cyan/300", "cyan/600"],
|
|
1746
|
+
comment: ["gray/600", "gray/300"],
|
|
1747
|
+
constant: ["purple/300", "purple/600"],
|
|
1748
|
+
deleted: ["red/300", "red/600"],
|
|
1749
|
+
entity: ["red/300", "red/600"],
|
|
1750
|
+
function: ["green/300", "green/600"],
|
|
1751
|
+
hexcode: ["blue/300", "blue/600"],
|
|
1752
|
+
id: ["purple/300", "purple/600"],
|
|
1753
|
+
important: ["purple/300", "purple/600"],
|
|
1754
|
+
inserted: ["green/300", "green/600"],
|
|
1755
|
+
keyword: ["magenta/300", "magenta/600"],
|
|
1756
|
+
number: ["purple/300", "purple/600"],
|
|
1757
|
+
operator: ["magenta/300", "magenta/600"],
|
|
1758
|
+
prolog: ["gray/300", "gray/600"],
|
|
1759
|
+
property: ["blue/300", "blue/600"],
|
|
1760
|
+
pseudoClass: ["yellow/300", "yellow/600"],
|
|
1761
|
+
pseudoElement: ["yellow/300", "yellow/600"],
|
|
1762
|
+
punctuation: ["gray/300", "gray/600"],
|
|
1763
|
+
regex: ["blue/300", "blue/600"],
|
|
1764
|
+
selector: ["red/300", "red/600"],
|
|
1765
|
+
string: ["yellow/300", "yellow/600"],
|
|
1766
|
+
symbol: ["purple/300", "purple/600"],
|
|
1767
|
+
tag: ["red/300", "red/600"],
|
|
1768
|
+
unit: ["orange/300", "orange/600"],
|
|
1769
|
+
url: ["red/300", "red/600"],
|
|
1770
|
+
variable: ["red/300", "red/600"]
|
|
1771
|
+
},
|
|
1751
1772
|
variant: {
|
|
1752
1773
|
tinted: {
|
|
1753
1774
|
"*": {
|
|
1754
1775
|
bg: {
|
|
1755
|
-
0: ["
|
|
1756
|
-
4: ["800", "
|
|
1776
|
+
0: ["900", "50"],
|
|
1777
|
+
4: ["800", "150"]
|
|
1757
1778
|
},
|
|
1758
1779
|
border: {
|
|
1759
|
-
0: ["
|
|
1760
|
-
4: ["
|
|
1780
|
+
0: ["800", "150"],
|
|
1781
|
+
4: ["600", "350"]
|
|
1761
1782
|
},
|
|
1762
1783
|
fg: {
|
|
1763
1784
|
0: ["100", "900"],
|
|
@@ -1783,8 +1804,8 @@ const defaultTokens = {
|
|
|
1783
1804
|
solid: {
|
|
1784
1805
|
"*": {
|
|
1785
1806
|
bg: {
|
|
1786
|
-
0: ["
|
|
1787
|
-
4: ["
|
|
1807
|
+
0: ["300", "500"],
|
|
1808
|
+
4: ["200", "600"]
|
|
1788
1809
|
},
|
|
1789
1810
|
border: {
|
|
1790
1811
|
0: ["200", "400"],
|
|
@@ -1829,15 +1850,15 @@ const defaultTokens = {
|
|
|
1829
1850
|
"*": {
|
|
1830
1851
|
bg: {
|
|
1831
1852
|
0: ["black", "gray/50"],
|
|
1832
|
-
4: ["
|
|
1853
|
+
4: ["900", "150"]
|
|
1833
1854
|
},
|
|
1834
1855
|
border: {
|
|
1835
|
-
0: ["
|
|
1836
|
-
4: ["
|
|
1856
|
+
0: ["900", "150"],
|
|
1857
|
+
4: ["700", "350"]
|
|
1837
1858
|
},
|
|
1838
1859
|
fg: {
|
|
1839
|
-
0: ["
|
|
1840
|
-
4: ["
|
|
1860
|
+
0: ["150", "black"],
|
|
1861
|
+
4: ["550", "600"]
|
|
1841
1862
|
}
|
|
1842
1863
|
}
|
|
1843
1864
|
}
|
|
@@ -1848,12 +1869,12 @@ const defaultTokens = {
|
|
|
1848
1869
|
tinted: {
|
|
1849
1870
|
"*": {
|
|
1850
1871
|
bg: {
|
|
1851
|
-
0: ["950", "white"],
|
|
1852
|
-
4: ["
|
|
1872
|
+
0: ["gray/950", "white"],
|
|
1873
|
+
4: ["850", "100"]
|
|
1853
1874
|
},
|
|
1854
1875
|
border: {
|
|
1855
|
-
0: ["
|
|
1856
|
-
4: ["
|
|
1876
|
+
0: ["850", "100"],
|
|
1877
|
+
4: ["650", "300"]
|
|
1857
1878
|
},
|
|
1858
1879
|
fg: {
|
|
1859
1880
|
0: ["white", "black"],
|
|
@@ -1863,18 +1884,6 @@ const defaultTokens = {
|
|
|
1863
1884
|
}
|
|
1864
1885
|
}
|
|
1865
1886
|
},
|
|
1866
|
-
neutral: {
|
|
1867
|
-
variant: {
|
|
1868
|
-
tinted: {
|
|
1869
|
-
"*": {
|
|
1870
|
-
bg: {
|
|
1871
|
-
0: ["900", "50"],
|
|
1872
|
-
4: ["700", "200"]
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
},
|
|
1878
1887
|
primary: {
|
|
1879
1888
|
_hue: "blue"
|
|
1880
1889
|
},
|
|
@@ -1981,48 +1990,6 @@ function resolveCardColorTokens(tokens) {
|
|
|
1981
1990
|
}
|
|
1982
1991
|
},
|
|
1983
1992
|
backdrop: tokens?.backdrop ?? ["900", "100"],
|
|
1984
|
-
code: {
|
|
1985
|
-
bg: tokens?.code?.bg ?? ["950", "50"],
|
|
1986
|
-
fg: tokens?.code?.fg ?? ["400", "600"],
|
|
1987
|
-
token: {
|
|
1988
|
-
atrule: tokens?.code?.token?.atrule ?? ["400", "600"],
|
|
1989
|
-
attribute: tokens?.code?.token?.attribute ?? ["400", "600"],
|
|
1990
|
-
attrName: tokens?.code?.token?.attrName ?? ["400", "600"],
|
|
1991
|
-
attrValue: tokens?.code?.token?.attrValue ?? ["400", "600"],
|
|
1992
|
-
boolean: tokens?.code?.token?.boolean ?? ["400", "600"],
|
|
1993
|
-
builtin: tokens?.code?.token?.builtin ?? ["400", "600"],
|
|
1994
|
-
cdata: tokens?.code?.token?.cdata ?? ["400", "600"],
|
|
1995
|
-
char: tokens?.code?.token?.char ?? ["400", "600"],
|
|
1996
|
-
class: tokens?.code?.token?.class ?? ["400", "600"],
|
|
1997
|
-
className: tokens?.code?.token?.className ?? ["400", "600"],
|
|
1998
|
-
comment: tokens?.code?.token?.comment ?? ["600", "400"],
|
|
1999
|
-
constant: tokens?.code?.token?.constant ?? ["400", "600"],
|
|
2000
|
-
deleted: tokens?.code?.token?.deleted ?? ["400", "600"],
|
|
2001
|
-
doctype: tokens?.code?.token?.doctype ?? ["400", "600"],
|
|
2002
|
-
entity: tokens?.code?.token?.entity ?? ["400", "600"],
|
|
2003
|
-
function: tokens?.code?.token?.function ?? ["400", "600"],
|
|
2004
|
-
hexcode: tokens?.code?.token?.hexcode ?? ["400", "600"],
|
|
2005
|
-
id: tokens?.code?.token?.id ?? ["400", "600"],
|
|
2006
|
-
important: tokens?.code?.token?.important ?? ["400", "600"],
|
|
2007
|
-
inserted: tokens?.code?.token?.inserted ?? ["400", "600"],
|
|
2008
|
-
keyword: tokens?.code?.token?.keyword ?? ["400", "600"],
|
|
2009
|
-
number: tokens?.code?.token?.number ?? ["400", "600"],
|
|
2010
|
-
operator: tokens?.code?.token?.operator ?? ["400", "600"],
|
|
2011
|
-
prolog: tokens?.code?.token?.prolog ?? ["400", "600"],
|
|
2012
|
-
property: tokens?.code?.token?.property ?? ["400", "600"],
|
|
2013
|
-
pseudoClass: tokens?.code?.token?.pseudoClass ?? ["400", "600"],
|
|
2014
|
-
pseudoElement: tokens?.code?.token?.pseudoElement ?? ["400", "600"],
|
|
2015
|
-
punctuation: tokens?.code?.token?.punctuation ?? ["400", "600"],
|
|
2016
|
-
regex: tokens?.code?.token?.regex ?? ["400", "600"],
|
|
2017
|
-
selector: tokens?.code?.token?.selector ?? ["400", "600"],
|
|
2018
|
-
string: tokens?.code?.token?.string ?? ["400", "600"],
|
|
2019
|
-
symbol: tokens?.code?.token?.symbol ?? ["400", "600"],
|
|
2020
|
-
tag: tokens?.code?.token?.tag ?? ["400", "600"],
|
|
2021
|
-
unit: tokens?.code?.token?.unit ?? ["400", "600"],
|
|
2022
|
-
url: tokens?.code?.token?.url ?? ["400", "600"],
|
|
2023
|
-
variable: tokens?.code?.token?.variable ?? ["400", "600"]
|
|
2024
|
-
}
|
|
2025
|
-
},
|
|
2026
1993
|
focusRing: tokens?.focusRing ?? ["500", "500"],
|
|
2027
1994
|
link: {
|
|
2028
1995
|
fg: tokens?.link?.fg ?? ["400", "600"]
|
|
@@ -2037,6 +2004,44 @@ function resolveCardColorTokens(tokens) {
|
|
|
2037
2004
|
from: tokens?.skeleton?.from ?? ["900", "100"],
|
|
2038
2005
|
to: tokens?.skeleton?.to ?? ["950", "50"]
|
|
2039
2006
|
},
|
|
2007
|
+
token: {
|
|
2008
|
+
atrule: tokens?.token?.atrule ?? ["400", "600"],
|
|
2009
|
+
attribute: tokens?.token?.attribute ?? ["400", "600"],
|
|
2010
|
+
attrName: tokens?.token?.attrName ?? ["400", "600"],
|
|
2011
|
+
attrValue: tokens?.token?.attrValue ?? ["400", "600"],
|
|
2012
|
+
boolean: tokens?.token?.boolean ?? ["400", "600"],
|
|
2013
|
+
builtin: tokens?.token?.builtin ?? ["400", "600"],
|
|
2014
|
+
cdata: tokens?.token?.cdata ?? ["400", "600"],
|
|
2015
|
+
char: tokens?.token?.char ?? ["400", "600"],
|
|
2016
|
+
class: tokens?.token?.class ?? ["400", "600"],
|
|
2017
|
+
className: tokens?.token?.className ?? ["400", "600"],
|
|
2018
|
+
comment: tokens?.token?.comment ?? ["600", "400"],
|
|
2019
|
+
constant: tokens?.token?.constant ?? ["400", "600"],
|
|
2020
|
+
deleted: tokens?.token?.deleted ?? ["400", "600"],
|
|
2021
|
+
doctype: tokens?.token?.doctype ?? ["400", "600"],
|
|
2022
|
+
entity: tokens?.token?.entity ?? ["400", "600"],
|
|
2023
|
+
function: tokens?.token?.function ?? ["400", "600"],
|
|
2024
|
+
hexcode: tokens?.token?.hexcode ?? ["400", "600"],
|
|
2025
|
+
id: tokens?.token?.id ?? ["400", "600"],
|
|
2026
|
+
important: tokens?.token?.important ?? ["400", "600"],
|
|
2027
|
+
inserted: tokens?.token?.inserted ?? ["400", "600"],
|
|
2028
|
+
keyword: tokens?.token?.keyword ?? ["400", "600"],
|
|
2029
|
+
number: tokens?.token?.number ?? ["400", "600"],
|
|
2030
|
+
operator: tokens?.token?.operator ?? ["400", "600"],
|
|
2031
|
+
prolog: tokens?.token?.prolog ?? ["400", "600"],
|
|
2032
|
+
property: tokens?.token?.property ?? ["400", "600"],
|
|
2033
|
+
pseudoClass: tokens?.token?.pseudoClass ?? ["400", "600"],
|
|
2034
|
+
pseudoElement: tokens?.token?.pseudoElement ?? ["400", "600"],
|
|
2035
|
+
punctuation: tokens?.token?.punctuation ?? ["400", "600"],
|
|
2036
|
+
regex: tokens?.token?.regex ?? ["400", "600"],
|
|
2037
|
+
selector: tokens?.token?.selector ?? ["400", "600"],
|
|
2038
|
+
string: tokens?.token?.string ?? ["400", "600"],
|
|
2039
|
+
symbol: tokens?.token?.symbol ?? ["400", "600"],
|
|
2040
|
+
tag: tokens?.token?.tag ?? ["400", "600"],
|
|
2041
|
+
unit: tokens?.token?.unit ?? ["400", "600"],
|
|
2042
|
+
url: tokens?.token?.url ?? ["400", "600"],
|
|
2043
|
+
variable: tokens?.token?.variable ?? ["400", "600"]
|
|
2044
|
+
},
|
|
2040
2045
|
variant: {
|
|
2041
2046
|
solid: {
|
|
2042
2047
|
"*": resolveElementTokens(tokens?.variant?.solid?.["*"]),
|
|
@@ -2072,6 +2077,7 @@ function buildTheme_v3(options) {
|
|
|
2072
2077
|
} = options ?? {}, tokens = resolveTokens(options?.tokens ?? defaultTokens);
|
|
2073
2078
|
return {
|
|
2074
2079
|
_version: 3,
|
|
2080
|
+
_palette: options?.palette ?? defaultPalette,
|
|
2075
2081
|
_tokens: tokens,
|
|
2076
2082
|
avatar: v2?.avatar ?? defaultThemeConfig.avatar,
|
|
2077
2083
|
button: v2?.button ?? defaultThemeConfig.button,
|
|
@@ -2195,224 +2201,6 @@ function inputStateThemeColor_v2_v0(t) {
|
|
|
2195
2201
|
placeholder: t.placeholder
|
|
2196
2202
|
};
|
|
2197
2203
|
}
|
|
2198
|
-
function themeColor_v3_v2(options) {
|
|
2199
|
-
const {
|
|
2200
|
-
color,
|
|
2201
|
-
dark
|
|
2202
|
-
} = options;
|
|
2203
|
-
return {
|
|
2204
|
-
_blend: "screen",
|
|
2205
|
-
_dark: dark,
|
|
2206
|
-
...buildColorState({
|
|
2207
|
-
cardColor: color,
|
|
2208
|
-
state: "enabled",
|
|
2209
|
-
tone: "default",
|
|
2210
|
-
variant: "tinted"
|
|
2211
|
-
}),
|
|
2212
|
-
backdrop: color.backdrop,
|
|
2213
|
-
button: THEME_COLOR_BUTTON_MODES.reduce((modes, mode) => (modes[mode] = THEME_COLOR_STATE_TONES.reduce((tones2, tone) => (tones2[tone] = THEME_COLOR_STATES.reduce((states, state) => (states[state] = buildColorState({
|
|
2214
|
-
cardColor: color,
|
|
2215
|
-
state,
|
|
2216
|
-
tone,
|
|
2217
|
-
variant: mode === "default" ? "solid" : "tinted"
|
|
2218
|
-
}), mode === "bleed" && (states[state].border = "transparent"), states), {}), tones2), {}), modes), {}),
|
|
2219
|
-
focusRing: color.focusRing,
|
|
2220
|
-
input: THEME_COLOR_INPUT_MODES.reduce((modes, mode) => (modes[mode] = THEME_COLOR_INPUT_STATES.reduce((states, state) => (states[state] = buildInputState(color.variant.tinted.default), states), {}), modes), {}),
|
|
2221
|
-
selectable: THEME_COLOR_STATE_TONES.reduce((tones2, tone) => (tones2[tone] = THEME_COLOR_STATES.reduce((states, state) => (states[state] = buildColorState({
|
|
2222
|
-
cardColor: color,
|
|
2223
|
-
// cardVars: vars,
|
|
2224
|
-
state,
|
|
2225
|
-
tone,
|
|
2226
|
-
variant: "tinted"
|
|
2227
|
-
}), states), {}), tones2), {}),
|
|
2228
|
-
shadow: color.shadow,
|
|
2229
|
-
syntax: color.code.token
|
|
2230
|
-
};
|
|
2231
|
-
}
|
|
2232
|
-
const stateShades = {
|
|
2233
|
-
enabled: {
|
|
2234
|
-
bg: [0, 1, 2],
|
|
2235
|
-
border: [0, 1, 2],
|
|
2236
|
-
fg: [0, 1, 2]
|
|
2237
|
-
},
|
|
2238
|
-
hovered: {
|
|
2239
|
-
bg: [1, 2, 3],
|
|
2240
|
-
border: [1, 2, 3],
|
|
2241
|
-
fg: [1, 2, 3]
|
|
2242
|
-
},
|
|
2243
|
-
pressed: {
|
|
2244
|
-
bg: [2, 3, 4],
|
|
2245
|
-
border: [2, 3, 4],
|
|
2246
|
-
fg: [2, 3, 4]
|
|
2247
|
-
},
|
|
2248
|
-
selected: {
|
|
2249
|
-
bg: [3, 4, 4],
|
|
2250
|
-
border: [3, 4, 4],
|
|
2251
|
-
fg: [3, 4, 4]
|
|
2252
|
-
},
|
|
2253
|
-
disabled: {
|
|
2254
|
-
bg: [4, 4, 4],
|
|
2255
|
-
border: [4, 4, 4],
|
|
2256
|
-
fg: [4, 4, 4]
|
|
2257
|
-
}
|
|
2258
|
-
};
|
|
2259
|
-
function mix$1(tokens, index) {
|
|
2260
|
-
return index === 0 ? tokens[0] : index === 4 ? tokens[4] : `color-mix(in oklch, ${tokens[0]}, ${tokens[4]} ${index * 25}%)`;
|
|
2261
|
-
}
|
|
2262
|
-
function buildColorState(options) {
|
|
2263
|
-
const {
|
|
2264
|
-
cardColor,
|
|
2265
|
-
state,
|
|
2266
|
-
tone,
|
|
2267
|
-
variant
|
|
2268
|
-
} = options, color = cardColor.variant[variant][tone], shades = stateShades[state];
|
|
2269
|
-
return {
|
|
2270
|
-
accent: {
|
|
2271
|
-
fg: color.fg[4]
|
|
2272
|
-
},
|
|
2273
|
-
avatar: cardColor.avatar,
|
|
2274
|
-
badge: THEME_COLOR_STATE_TONES.reduce((tones2, tone2) => (tones2[tone2] = {
|
|
2275
|
-
bg: mix$1(color.bg, 1),
|
|
2276
|
-
fg: mix$1(color.fg, 1),
|
|
2277
|
-
dot: mix$1(color.fg, 3),
|
|
2278
|
-
icon: mix$1(color.fg, 3)
|
|
2279
|
-
}, tones2), {}),
|
|
2280
|
-
bg: mix$1(color.bg, shades.bg[0]),
|
|
2281
|
-
border: mix$1(color.border, shades.border[0]),
|
|
2282
|
-
fg: mix$1(color.fg, shades.fg[0]),
|
|
2283
|
-
code: {
|
|
2284
|
-
bg: mix$1(color.bg, shades.bg[1]),
|
|
2285
|
-
fg: mix$1(color.fg, shades.fg[2])
|
|
2286
|
-
},
|
|
2287
|
-
icon: mix$1(color.fg, shades.fg[2]),
|
|
2288
|
-
kbd: {
|
|
2289
|
-
bg: mix$1(color.bg, 0),
|
|
2290
|
-
fg: mix$1(color.fg, 0),
|
|
2291
|
-
border: mix$1(color.bg, 0)
|
|
2292
|
-
},
|
|
2293
|
-
link: {
|
|
2294
|
-
fg: mix$1(color.fg, shades.fg[2])
|
|
2295
|
-
},
|
|
2296
|
-
muted: {
|
|
2297
|
-
bg: mix$1(color.bg, shades.bg[1]),
|
|
2298
|
-
fg: mix$1(color.fg, shades.fg[2])
|
|
2299
|
-
},
|
|
2300
|
-
skeleton: cardColor.skeleton
|
|
2301
|
-
};
|
|
2302
|
-
}
|
|
2303
|
-
function buildInputState(colorElement) {
|
|
2304
|
-
return {
|
|
2305
|
-
bg: colorElement.bg[0],
|
|
2306
|
-
border: colorElement.bg[0],
|
|
2307
|
-
fg: colorElement.fg[0],
|
|
2308
|
-
muted: {
|
|
2309
|
-
bg: colorElement.bg[0]
|
|
2310
|
-
},
|
|
2311
|
-
placeholder: colorElement.fg[0]
|
|
2312
|
-
};
|
|
2313
|
-
}
|
|
2314
|
-
function v3_v2(theme_v3) {
|
|
2315
|
-
return {
|
|
2316
|
-
_version: 2,
|
|
2317
|
-
avatar: theme_v3.avatar,
|
|
2318
|
-
button: theme_v3.button,
|
|
2319
|
-
card: theme_v3.card,
|
|
2320
|
-
color: {
|
|
2321
|
-
dark: {
|
|
2322
|
-
transparent: themeColor_v3_v2({
|
|
2323
|
-
color: theme_v3.color.dark.card.transparent,
|
|
2324
|
-
dark: !0
|
|
2325
|
-
// vars: vars.color.dark.transparent,
|
|
2326
|
-
}),
|
|
2327
|
-
default: themeColor_v3_v2({
|
|
2328
|
-
color: theme_v3.color.dark.card.default,
|
|
2329
|
-
dark: !0
|
|
2330
|
-
// vars: vars.color.dark.default,
|
|
2331
|
-
}),
|
|
2332
|
-
neutral: themeColor_v3_v2({
|
|
2333
|
-
color: theme_v3.color.dark.card.neutral,
|
|
2334
|
-
dark: !0
|
|
2335
|
-
// vars: vars.color.dark.neutral,
|
|
2336
|
-
}),
|
|
2337
|
-
primary: themeColor_v3_v2({
|
|
2338
|
-
color: theme_v3.color.dark.card.primary,
|
|
2339
|
-
dark: !0
|
|
2340
|
-
// vars: vars.color.dark.primary,
|
|
2341
|
-
}),
|
|
2342
|
-
suggest: themeColor_v3_v2({
|
|
2343
|
-
color: theme_v3.color.dark.card.suggest,
|
|
2344
|
-
dark: !0
|
|
2345
|
-
// vars: vars.color.dark.suggest,
|
|
2346
|
-
}),
|
|
2347
|
-
positive: themeColor_v3_v2({
|
|
2348
|
-
color: theme_v3.color.dark.card.positive,
|
|
2349
|
-
dark: !0
|
|
2350
|
-
// vars: vars.color.dark.positive,
|
|
2351
|
-
}),
|
|
2352
|
-
caution: themeColor_v3_v2({
|
|
2353
|
-
color: theme_v3.color.dark.card.caution,
|
|
2354
|
-
dark: !0
|
|
2355
|
-
// vars: vars.color.dark.caution,
|
|
2356
|
-
}),
|
|
2357
|
-
critical: themeColor_v3_v2({
|
|
2358
|
-
color: theme_v3.color.dark.card.critical,
|
|
2359
|
-
dark: !0
|
|
2360
|
-
// vars: vars.color.dark.critical,
|
|
2361
|
-
})
|
|
2362
|
-
},
|
|
2363
|
-
light: {
|
|
2364
|
-
transparent: themeColor_v3_v2({
|
|
2365
|
-
color: theme_v3.color.light.card.transparent,
|
|
2366
|
-
dark: !1
|
|
2367
|
-
// vars: vars.color.light.transparent,
|
|
2368
|
-
}),
|
|
2369
|
-
default: themeColor_v3_v2({
|
|
2370
|
-
color: theme_v3.color.light.card.default,
|
|
2371
|
-
dark: !1
|
|
2372
|
-
// vars: vars.color.light.default,
|
|
2373
|
-
}),
|
|
2374
|
-
neutral: themeColor_v3_v2({
|
|
2375
|
-
color: theme_v3.color.light.card.neutral,
|
|
2376
|
-
dark: !1
|
|
2377
|
-
// vars: vars.color.light.neutral,
|
|
2378
|
-
}),
|
|
2379
|
-
primary: themeColor_v3_v2({
|
|
2380
|
-
color: theme_v3.color.light.card.primary,
|
|
2381
|
-
dark: !1
|
|
2382
|
-
// vars: vars.color.light.primary,
|
|
2383
|
-
}),
|
|
2384
|
-
suggest: themeColor_v3_v2({
|
|
2385
|
-
color: theme_v3.color.light.card.suggest,
|
|
2386
|
-
dark: !1
|
|
2387
|
-
// vars: vars.color.light.suggest,
|
|
2388
|
-
}),
|
|
2389
|
-
positive: themeColor_v3_v2({
|
|
2390
|
-
color: theme_v3.color.light.card.positive,
|
|
2391
|
-
dark: !1
|
|
2392
|
-
// vars: vars.color.light.positive,
|
|
2393
|
-
}),
|
|
2394
|
-
caution: themeColor_v3_v2({
|
|
2395
|
-
color: theme_v3.color.light.card.caution,
|
|
2396
|
-
dark: !1
|
|
2397
|
-
// vars: vars.color.light.caution,
|
|
2398
|
-
}),
|
|
2399
|
-
critical: themeColor_v3_v2({
|
|
2400
|
-
color: theme_v3.color.light.card.critical,
|
|
2401
|
-
dark: !1
|
|
2402
|
-
// vars: vars.color.light.critical,
|
|
2403
|
-
})
|
|
2404
|
-
}
|
|
2405
|
-
},
|
|
2406
|
-
container: theme_v3.container,
|
|
2407
|
-
font: theme_v3.font,
|
|
2408
|
-
input: theme_v3.input,
|
|
2409
|
-
layer: theme_v3.layer,
|
|
2410
|
-
media: theme_v3.media,
|
|
2411
|
-
radius: theme_v3.radius,
|
|
2412
|
-
shadow: theme_v3.shadow,
|
|
2413
|
-
space: theme_v3.space
|
|
2414
|
-
};
|
|
2415
|
-
}
|
|
2416
2204
|
function buildTheme(_config) {
|
|
2417
2205
|
const v3 = buildTheme_v3({
|
|
2418
2206
|
v2: _config
|
|
@@ -3166,6 +2954,7 @@ export {
|
|
|
3166
2954
|
buildTheme,
|
|
3167
2955
|
buildTheme_v3,
|
|
3168
2956
|
createColorTheme,
|
|
2957
|
+
defaultPalette,
|
|
3169
2958
|
defaultTokens,
|
|
3170
2959
|
getContrastRatio,
|
|
3171
2960
|
getScopedTheme,
|