@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {defaultThemeConfig} from '../defaults/config'
|
|
2
2
|
import {defaultThemeFonts} from '../defaults/fonts'
|
|
3
3
|
import {buildColor_v3} from './color/buildColor_v3'
|
|
4
|
-
import {defaultTokens} from './defaults'
|
|
4
|
+
import {defaultPalette, defaultTokens} from './defaults'
|
|
5
5
|
import {resolveTokens} from './resolveTokens'
|
|
6
6
|
import {Theme_v3, ThemeOptions} from './types'
|
|
7
7
|
|
|
@@ -12,6 +12,7 @@ export function buildTheme_v3(options?: ThemeOptions): Theme_v3 {
|
|
|
12
12
|
|
|
13
13
|
return {
|
|
14
14
|
_version: 3,
|
|
15
|
+
_palette: options?.palette ?? defaultPalette,
|
|
15
16
|
_tokens: tokens,
|
|
16
17
|
avatar: v2?.avatar ?? defaultThemeConfig.avatar,
|
|
17
18
|
button: v2?.button ?? defaultThemeConfig.button,
|
|
@@ -72,48 +72,6 @@ function buildColorCard_v3(
|
|
|
72
72
|
return acc
|
|
73
73
|
}, {} as ThemeColorAvatar_v2),
|
|
74
74
|
backdrop: renderColor(tokens.backdrop, context),
|
|
75
|
-
code: {
|
|
76
|
-
bg: renderColor(tokens.code.bg, context),
|
|
77
|
-
fg: renderColor(tokens.code.fg, context),
|
|
78
|
-
token: {
|
|
79
|
-
atrule: renderColor(tokens.code.token.atrule, context),
|
|
80
|
-
attrName: renderColor(tokens.code.token.attrName, context),
|
|
81
|
-
attrValue: renderColor(tokens.code.token.attrValue, context),
|
|
82
|
-
attribute: renderColor(tokens.code.token.attribute, context),
|
|
83
|
-
boolean: renderColor(tokens.code.token.boolean, context),
|
|
84
|
-
builtin: renderColor(tokens.code.token.builtin, context),
|
|
85
|
-
cdata: renderColor(tokens.code.token.cdata, context),
|
|
86
|
-
char: renderColor(tokens.code.token.char, context),
|
|
87
|
-
class: renderColor(tokens.code.token.class, context),
|
|
88
|
-
className: renderColor(tokens.code.token.className, context),
|
|
89
|
-
comment: renderColor(tokens.code.token.comment, context),
|
|
90
|
-
constant: renderColor(tokens.code.token.constant, context),
|
|
91
|
-
deleted: renderColor(tokens.code.token.deleted, context),
|
|
92
|
-
doctype: renderColor(tokens.code.token.doctype, context),
|
|
93
|
-
entity: renderColor(tokens.code.token.entity, context),
|
|
94
|
-
function: renderColor(tokens.code.token.function, context),
|
|
95
|
-
hexcode: renderColor(tokens.code.token.hexcode, context),
|
|
96
|
-
id: renderColor(tokens.code.token.id, context),
|
|
97
|
-
important: renderColor(tokens.code.token.important, context),
|
|
98
|
-
inserted: renderColor(tokens.code.token.inserted, context),
|
|
99
|
-
keyword: renderColor(tokens.code.token.keyword, context),
|
|
100
|
-
number: renderColor(tokens.code.token.number, context),
|
|
101
|
-
operator: renderColor(tokens.code.token.operator, context),
|
|
102
|
-
prolog: renderColor(tokens.code.token.prolog, context),
|
|
103
|
-
property: renderColor(tokens.code.token.property, context),
|
|
104
|
-
pseudoClass: renderColor(tokens.code.token.pseudoClass, context),
|
|
105
|
-
pseudoElement: renderColor(tokens.code.token.pseudoElement, context),
|
|
106
|
-
punctuation: renderColor(tokens.code.token.punctuation, context),
|
|
107
|
-
regex: renderColor(tokens.code.token.regex, context),
|
|
108
|
-
selector: renderColor(tokens.code.token.selector, context),
|
|
109
|
-
string: renderColor(tokens.code.token.string, context),
|
|
110
|
-
symbol: renderColor(tokens.code.token.symbol, context),
|
|
111
|
-
tag: renderColor(tokens.code.token.tag, context),
|
|
112
|
-
unit: renderColor(tokens.code.token.unit, context),
|
|
113
|
-
url: renderColor(tokens.code.token.url, context),
|
|
114
|
-
variable: renderColor(tokens.code.token.variable, context),
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
75
|
focusRing: renderColor(tokens.focusRing, context),
|
|
118
76
|
shadow: {
|
|
119
77
|
outline: renderColor(tokens.shadow.outline, context),
|
|
@@ -125,7 +83,44 @@ function buildColorCard_v3(
|
|
|
125
83
|
from: renderColor(tokens.skeleton.from, context),
|
|
126
84
|
to: renderColor(tokens.skeleton.to, context),
|
|
127
85
|
},
|
|
128
|
-
|
|
86
|
+
token: {
|
|
87
|
+
atrule: renderColor(tokens.token.atrule, context),
|
|
88
|
+
attrName: renderColor(tokens.token.attrName, context),
|
|
89
|
+
attrValue: renderColor(tokens.token.attrValue, context),
|
|
90
|
+
attribute: renderColor(tokens.token.attribute, context),
|
|
91
|
+
boolean: renderColor(tokens.token.boolean, context),
|
|
92
|
+
builtin: renderColor(tokens.token.builtin, context),
|
|
93
|
+
cdata: renderColor(tokens.token.cdata, context),
|
|
94
|
+
char: renderColor(tokens.token.char, context),
|
|
95
|
+
class: renderColor(tokens.token.class, context),
|
|
96
|
+
className: renderColor(tokens.token.className, context),
|
|
97
|
+
comment: renderColor(tokens.token.comment, context),
|
|
98
|
+
constant: renderColor(tokens.token.constant, context),
|
|
99
|
+
deleted: renderColor(tokens.token.deleted, context),
|
|
100
|
+
doctype: renderColor(tokens.token.doctype, context),
|
|
101
|
+
entity: renderColor(tokens.token.entity, context),
|
|
102
|
+
function: renderColor(tokens.token.function, context),
|
|
103
|
+
hexcode: renderColor(tokens.token.hexcode, context),
|
|
104
|
+
id: renderColor(tokens.token.id, context),
|
|
105
|
+
important: renderColor(tokens.token.important, context),
|
|
106
|
+
inserted: renderColor(tokens.token.inserted, context),
|
|
107
|
+
keyword: renderColor(tokens.token.keyword, context),
|
|
108
|
+
number: renderColor(tokens.token.number, context),
|
|
109
|
+
operator: renderColor(tokens.token.operator, context),
|
|
110
|
+
prolog: renderColor(tokens.token.prolog, context),
|
|
111
|
+
property: renderColor(tokens.token.property, context),
|
|
112
|
+
pseudoClass: renderColor(tokens.token.pseudoClass, context),
|
|
113
|
+
pseudoElement: renderColor(tokens.token.pseudoElement, context),
|
|
114
|
+
punctuation: renderColor(tokens.token.punctuation, context),
|
|
115
|
+
regex: renderColor(tokens.token.regex, context),
|
|
116
|
+
selector: renderColor(tokens.token.selector, context),
|
|
117
|
+
string: renderColor(tokens.token.string, context),
|
|
118
|
+
symbol: renderColor(tokens.token.symbol, context),
|
|
119
|
+
tag: renderColor(tokens.token.tag, context),
|
|
120
|
+
unit: renderColor(tokens.token.unit, context),
|
|
121
|
+
url: renderColor(tokens.token.url, context),
|
|
122
|
+
variable: renderColor(tokens.token.variable, context),
|
|
123
|
+
},
|
|
129
124
|
variant: {
|
|
130
125
|
solid: {
|
|
131
126
|
...THEME_COLOR_STATE_TONES.reduce(
|
|
@@ -15,48 +15,6 @@ export interface CardColorTokens {
|
|
|
15
15
|
}
|
|
16
16
|
>
|
|
17
17
|
backdrop: [ColorToken, ColorToken]
|
|
18
|
-
code: {
|
|
19
|
-
bg: [ColorToken, ColorToken]
|
|
20
|
-
fg: [ColorToken, ColorToken]
|
|
21
|
-
token: {
|
|
22
|
-
atrule: [ColorToken, ColorToken]
|
|
23
|
-
attrName: [ColorToken, ColorToken]
|
|
24
|
-
attrValue: [ColorToken, ColorToken]
|
|
25
|
-
attribute: [ColorToken, ColorToken]
|
|
26
|
-
boolean: [ColorToken, ColorToken]
|
|
27
|
-
builtin: [ColorToken, ColorToken]
|
|
28
|
-
cdata: [ColorToken, ColorToken]
|
|
29
|
-
char: [ColorToken, ColorToken]
|
|
30
|
-
class: [ColorToken, ColorToken]
|
|
31
|
-
className: [ColorToken, ColorToken]
|
|
32
|
-
comment: [ColorToken, ColorToken]
|
|
33
|
-
constant: [ColorToken, ColorToken]
|
|
34
|
-
deleted: [ColorToken, ColorToken]
|
|
35
|
-
doctype: [ColorToken, ColorToken]
|
|
36
|
-
entity: [ColorToken, ColorToken]
|
|
37
|
-
function: [ColorToken, ColorToken]
|
|
38
|
-
hexcode: [ColorToken, ColorToken]
|
|
39
|
-
id: [ColorToken, ColorToken]
|
|
40
|
-
important: [ColorToken, ColorToken]
|
|
41
|
-
inserted: [ColorToken, ColorToken]
|
|
42
|
-
keyword: [ColorToken, ColorToken]
|
|
43
|
-
number: [ColorToken, ColorToken]
|
|
44
|
-
operator: [ColorToken, ColorToken]
|
|
45
|
-
prolog: [ColorToken, ColorToken]
|
|
46
|
-
property: [ColorToken, ColorToken]
|
|
47
|
-
pseudoClass: [ColorToken, ColorToken]
|
|
48
|
-
pseudoElement: [ColorToken, ColorToken]
|
|
49
|
-
punctuation: [ColorToken, ColorToken]
|
|
50
|
-
regex: [ColorToken, ColorToken]
|
|
51
|
-
selector: [ColorToken, ColorToken]
|
|
52
|
-
string: [ColorToken, ColorToken]
|
|
53
|
-
symbol: [ColorToken, ColorToken]
|
|
54
|
-
tag: [ColorToken, ColorToken]
|
|
55
|
-
unit: [ColorToken, ColorToken]
|
|
56
|
-
url: [ColorToken, ColorToken]
|
|
57
|
-
variable: [ColorToken, ColorToken]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
18
|
focusRing: [ColorToken, ColorToken]
|
|
61
19
|
link: {
|
|
62
20
|
fg: [ColorToken, ColorToken]
|
|
@@ -71,7 +29,44 @@ export interface CardColorTokens {
|
|
|
71
29
|
from: [ColorToken, ColorToken]
|
|
72
30
|
to: [ColorToken, ColorToken]
|
|
73
31
|
}
|
|
74
|
-
|
|
32
|
+
token: {
|
|
33
|
+
atrule: [ColorToken, ColorToken]
|
|
34
|
+
attrName: [ColorToken, ColorToken]
|
|
35
|
+
attrValue: [ColorToken, ColorToken]
|
|
36
|
+
attribute: [ColorToken, ColorToken]
|
|
37
|
+
boolean: [ColorToken, ColorToken]
|
|
38
|
+
builtin: [ColorToken, ColorToken]
|
|
39
|
+
cdata: [ColorToken, ColorToken]
|
|
40
|
+
char: [ColorToken, ColorToken]
|
|
41
|
+
class: [ColorToken, ColorToken]
|
|
42
|
+
className: [ColorToken, ColorToken]
|
|
43
|
+
comment: [ColorToken, ColorToken]
|
|
44
|
+
constant: [ColorToken, ColorToken]
|
|
45
|
+
deleted: [ColorToken, ColorToken]
|
|
46
|
+
doctype: [ColorToken, ColorToken]
|
|
47
|
+
entity: [ColorToken, ColorToken]
|
|
48
|
+
function: [ColorToken, ColorToken]
|
|
49
|
+
hexcode: [ColorToken, ColorToken]
|
|
50
|
+
id: [ColorToken, ColorToken]
|
|
51
|
+
important: [ColorToken, ColorToken]
|
|
52
|
+
inserted: [ColorToken, ColorToken]
|
|
53
|
+
keyword: [ColorToken, ColorToken]
|
|
54
|
+
number: [ColorToken, ColorToken]
|
|
55
|
+
operator: [ColorToken, ColorToken]
|
|
56
|
+
prolog: [ColorToken, ColorToken]
|
|
57
|
+
property: [ColorToken, ColorToken]
|
|
58
|
+
pseudoClass: [ColorToken, ColorToken]
|
|
59
|
+
pseudoElement: [ColorToken, ColorToken]
|
|
60
|
+
punctuation: [ColorToken, ColorToken]
|
|
61
|
+
regex: [ColorToken, ColorToken]
|
|
62
|
+
selector: [ColorToken, ColorToken]
|
|
63
|
+
string: [ColorToken, ColorToken]
|
|
64
|
+
symbol: [ColorToken, ColorToken]
|
|
65
|
+
tag: [ColorToken, ColorToken]
|
|
66
|
+
unit: [ColorToken, ColorToken]
|
|
67
|
+
url: [ColorToken, ColorToken]
|
|
68
|
+
variable: [ColorToken, ColorToken]
|
|
69
|
+
}
|
|
75
70
|
variant: {
|
|
76
71
|
solid: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
|
|
77
72
|
tinted: Record<'*' | ThemeColorStateToneKey, ElementColorTokens>
|
|
@@ -34,48 +34,6 @@ export interface ThemeColorCard_v3 {
|
|
|
34
34
|
_hue: Hue
|
|
35
35
|
avatar: ThemeColorAvatar_v2
|
|
36
36
|
backdrop: string
|
|
37
|
-
code: {
|
|
38
|
-
bg: string
|
|
39
|
-
fg: string
|
|
40
|
-
token: {
|
|
41
|
-
atrule: string
|
|
42
|
-
attrName: string
|
|
43
|
-
attrValue: string
|
|
44
|
-
attribute: string
|
|
45
|
-
boolean: string
|
|
46
|
-
builtin: string
|
|
47
|
-
cdata: string
|
|
48
|
-
char: string
|
|
49
|
-
class: string
|
|
50
|
-
className: string
|
|
51
|
-
comment: string
|
|
52
|
-
constant: string
|
|
53
|
-
deleted: string
|
|
54
|
-
doctype: string
|
|
55
|
-
entity: string
|
|
56
|
-
function: string
|
|
57
|
-
hexcode: string
|
|
58
|
-
id: string
|
|
59
|
-
important: string
|
|
60
|
-
inserted: string
|
|
61
|
-
keyword: string
|
|
62
|
-
number: string
|
|
63
|
-
operator: string
|
|
64
|
-
prolog: string
|
|
65
|
-
property: string
|
|
66
|
-
pseudoClass: string
|
|
67
|
-
pseudoElement: string
|
|
68
|
-
punctuation: string
|
|
69
|
-
regex: string
|
|
70
|
-
selector: string
|
|
71
|
-
string: string
|
|
72
|
-
symbol: string
|
|
73
|
-
tag: string
|
|
74
|
-
unit: string
|
|
75
|
-
url: string
|
|
76
|
-
variable: string
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
37
|
focusRing: string
|
|
80
38
|
shadow: {
|
|
81
39
|
outline: string
|
|
@@ -83,6 +41,44 @@ export interface ThemeColorCard_v3 {
|
|
|
83
41
|
penumbra: string
|
|
84
42
|
ambient: string
|
|
85
43
|
}
|
|
44
|
+
token: {
|
|
45
|
+
atrule: string
|
|
46
|
+
attrName: string
|
|
47
|
+
attrValue: string
|
|
48
|
+
attribute: string
|
|
49
|
+
boolean: string
|
|
50
|
+
builtin: string
|
|
51
|
+
cdata: string
|
|
52
|
+
char: string
|
|
53
|
+
class: string
|
|
54
|
+
className: string
|
|
55
|
+
comment: string
|
|
56
|
+
constant: string
|
|
57
|
+
deleted: string
|
|
58
|
+
doctype: string
|
|
59
|
+
entity: string
|
|
60
|
+
function: string
|
|
61
|
+
hexcode: string
|
|
62
|
+
id: string
|
|
63
|
+
important: string
|
|
64
|
+
inserted: string
|
|
65
|
+
keyword: string
|
|
66
|
+
number: string
|
|
67
|
+
operator: string
|
|
68
|
+
prolog: string
|
|
69
|
+
property: string
|
|
70
|
+
pseudoClass: string
|
|
71
|
+
pseudoElement: string
|
|
72
|
+
punctuation: string
|
|
73
|
+
regex: string
|
|
74
|
+
selector: string
|
|
75
|
+
string: string
|
|
76
|
+
symbol: string
|
|
77
|
+
tag: string
|
|
78
|
+
unit: string
|
|
79
|
+
url: string
|
|
80
|
+
variable: string
|
|
81
|
+
}
|
|
86
82
|
skeleton: {
|
|
87
83
|
from: string
|
|
88
84
|
to: string
|
package/src/theme/v3/defaults.ts
CHANGED
|
@@ -1,52 +1,28 @@
|
|
|
1
|
+
import {PaletteConfig} from '../palette'
|
|
1
2
|
import {PartialTokens, Tokens} from './tokens'
|
|
2
3
|
|
|
4
|
+
export const defaultPalette: PaletteConfig = {
|
|
5
|
+
chroma: {min: 0.005, max: 0.2325},
|
|
6
|
+
luminosity: {min: 0.1875, max: 1},
|
|
7
|
+
hues: {
|
|
8
|
+
gray: {h: 277, c: 0.04},
|
|
9
|
+
blue: {h: 273, c: 0.185},
|
|
10
|
+
purple: {h: 295, c: 0.4},
|
|
11
|
+
magenta: {h: 12, c: 0.4},
|
|
12
|
+
red: {h: 30, c: 0.4},
|
|
13
|
+
orange: {h: 68, c: 0.4},
|
|
14
|
+
yellow: {h: 90, c: 0.4},
|
|
15
|
+
green: {h: 171, c: 0.4},
|
|
16
|
+
cyan: {h: 194, c: 0.4},
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
3
20
|
export const defaultTokens: PartialTokens<Tokens> = {
|
|
4
21
|
color: {
|
|
5
22
|
'*': {
|
|
6
23
|
// backdrop: ['black/0.2', '200/0.2'],
|
|
7
24
|
backdrop: ['black/0.5', 'gray/100/0.5'],
|
|
8
|
-
|
|
9
|
-
bg: ['950', '50'],
|
|
10
|
-
fg: ['300', '700'],
|
|
11
|
-
token: {
|
|
12
|
-
atrule: ['purple/300', 'purple/600'],
|
|
13
|
-
attrName: ['green/300', 'green/600'],
|
|
14
|
-
attrValue: ['yellow/300', 'yellow/600'],
|
|
15
|
-
attribute: ['yellow/300', 'yellow/600'],
|
|
16
|
-
boolean: ['purple/300', 'purple/600'],
|
|
17
|
-
builtin: ['purple/300', 'purple/600'],
|
|
18
|
-
cdata: ['yellow/300', 'yellow/600'],
|
|
19
|
-
char: ['yellow/300', 'yellow/600'],
|
|
20
|
-
class: ['orange/300', 'orange/600'],
|
|
21
|
-
className: ['cyan/300', 'cyan/600'],
|
|
22
|
-
comment: ['gray/600', 'gray/300'],
|
|
23
|
-
constant: ['purple/300', 'purple/600'],
|
|
24
|
-
deleted: ['red/300', 'red/600'],
|
|
25
|
-
entity: ['red/300', 'red/600'],
|
|
26
|
-
function: ['green/300', 'green/600'],
|
|
27
|
-
hexcode: ['blue/300', 'blue/600'],
|
|
28
|
-
id: ['purple/300', 'purple/600'],
|
|
29
|
-
important: ['purple/300', 'purple/600'],
|
|
30
|
-
inserted: ['green/300', 'green/600'],
|
|
31
|
-
keyword: ['magenta/300', 'magenta/600'],
|
|
32
|
-
number: ['purple/300', 'purple/600'],
|
|
33
|
-
operator: ['magenta/300', 'magenta/600'],
|
|
34
|
-
prolog: ['gray/300', 'gray/600'],
|
|
35
|
-
property: ['blue/300', 'blue/600'],
|
|
36
|
-
pseudoClass: ['yellow/300', 'yellow/600'],
|
|
37
|
-
pseudoElement: ['yellow/300', 'yellow/600'],
|
|
38
|
-
punctuation: ['gray/300', 'gray/600'],
|
|
39
|
-
regex: ['blue/300', 'blue/600'],
|
|
40
|
-
selector: ['red/300', 'red/600'],
|
|
41
|
-
string: ['yellow/300', 'yellow/600'],
|
|
42
|
-
symbol: ['purple/300', 'purple/600'],
|
|
43
|
-
tag: ['red/300', 'red/600'],
|
|
44
|
-
unit: ['orange/300', 'orange/600'],
|
|
45
|
-
url: ['red/300', 'red/600'],
|
|
46
|
-
variable: ['red/300', 'red/600'],
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
focusRing: ['blue/500', 'blue/500'],
|
|
25
|
+
focusRing: ['blue/500', 'blue/300'],
|
|
50
26
|
link: {
|
|
51
27
|
fg: ['blue/400', 'blue/600'],
|
|
52
28
|
},
|
|
@@ -56,16 +32,53 @@ export const defaultTokens: PartialTokens<Tokens> = {
|
|
|
56
32
|
penumbra: ['black/0.14', '500/0.07'],
|
|
57
33
|
ambient: ['black/0.12', '500/0.06'],
|
|
58
34
|
},
|
|
35
|
+
token: {
|
|
36
|
+
atrule: ['purple/300', 'purple/600'],
|
|
37
|
+
attrName: ['green/300', 'green/600'],
|
|
38
|
+
attrValue: ['yellow/300', 'yellow/600'],
|
|
39
|
+
attribute: ['yellow/300', 'yellow/600'],
|
|
40
|
+
boolean: ['purple/300', 'purple/600'],
|
|
41
|
+
builtin: ['purple/300', 'purple/600'],
|
|
42
|
+
cdata: ['yellow/300', 'yellow/600'],
|
|
43
|
+
char: ['yellow/300', 'yellow/600'],
|
|
44
|
+
class: ['orange/300', 'orange/600'],
|
|
45
|
+
className: ['cyan/300', 'cyan/600'],
|
|
46
|
+
comment: ['gray/600', 'gray/300'],
|
|
47
|
+
constant: ['purple/300', 'purple/600'],
|
|
48
|
+
deleted: ['red/300', 'red/600'],
|
|
49
|
+
entity: ['red/300', 'red/600'],
|
|
50
|
+
function: ['green/300', 'green/600'],
|
|
51
|
+
hexcode: ['blue/300', 'blue/600'],
|
|
52
|
+
id: ['purple/300', 'purple/600'],
|
|
53
|
+
important: ['purple/300', 'purple/600'],
|
|
54
|
+
inserted: ['green/300', 'green/600'],
|
|
55
|
+
keyword: ['magenta/300', 'magenta/600'],
|
|
56
|
+
number: ['purple/300', 'purple/600'],
|
|
57
|
+
operator: ['magenta/300', 'magenta/600'],
|
|
58
|
+
prolog: ['gray/300', 'gray/600'],
|
|
59
|
+
property: ['blue/300', 'blue/600'],
|
|
60
|
+
pseudoClass: ['yellow/300', 'yellow/600'],
|
|
61
|
+
pseudoElement: ['yellow/300', 'yellow/600'],
|
|
62
|
+
punctuation: ['gray/300', 'gray/600'],
|
|
63
|
+
regex: ['blue/300', 'blue/600'],
|
|
64
|
+
selector: ['red/300', 'red/600'],
|
|
65
|
+
string: ['yellow/300', 'yellow/600'],
|
|
66
|
+
symbol: ['purple/300', 'purple/600'],
|
|
67
|
+
tag: ['red/300', 'red/600'],
|
|
68
|
+
unit: ['orange/300', 'orange/600'],
|
|
69
|
+
url: ['red/300', 'red/600'],
|
|
70
|
+
variable: ['red/300', 'red/600'],
|
|
71
|
+
},
|
|
59
72
|
variant: {
|
|
60
73
|
tinted: {
|
|
61
74
|
'*': {
|
|
62
75
|
bg: {
|
|
63
|
-
0: ['
|
|
64
|
-
4: ['800', '
|
|
76
|
+
0: ['900', '50'],
|
|
77
|
+
4: ['800', '150'],
|
|
65
78
|
},
|
|
66
79
|
border: {
|
|
67
|
-
0: ['
|
|
68
|
-
4: ['
|
|
80
|
+
0: ['800', '150'],
|
|
81
|
+
4: ['600', '350'],
|
|
69
82
|
},
|
|
70
83
|
fg: {
|
|
71
84
|
0: ['100', '900'],
|
|
@@ -91,8 +104,8 @@ export const defaultTokens: PartialTokens<Tokens> = {
|
|
|
91
104
|
solid: {
|
|
92
105
|
'*': {
|
|
93
106
|
bg: {
|
|
94
|
-
0: ['
|
|
95
|
-
4: ['
|
|
107
|
+
0: ['300', '500'],
|
|
108
|
+
4: ['200', '600'],
|
|
96
109
|
},
|
|
97
110
|
border: {
|
|
98
111
|
0: ['200', '400'],
|
|
@@ -137,15 +150,15 @@ export const defaultTokens: PartialTokens<Tokens> = {
|
|
|
137
150
|
'*': {
|
|
138
151
|
bg: {
|
|
139
152
|
0: ['black', 'gray/50'],
|
|
140
|
-
4: ['
|
|
153
|
+
4: ['900', '150'],
|
|
141
154
|
},
|
|
142
155
|
border: {
|
|
143
|
-
0: ['
|
|
144
|
-
4: ['
|
|
156
|
+
0: ['900', '150'],
|
|
157
|
+
4: ['700', '350'],
|
|
145
158
|
},
|
|
146
159
|
fg: {
|
|
147
|
-
0: ['
|
|
148
|
-
4: ['
|
|
160
|
+
0: ['150', 'black'],
|
|
161
|
+
4: ['550', '600'],
|
|
149
162
|
},
|
|
150
163
|
},
|
|
151
164
|
},
|
|
@@ -156,12 +169,12 @@ export const defaultTokens: PartialTokens<Tokens> = {
|
|
|
156
169
|
tinted: {
|
|
157
170
|
'*': {
|
|
158
171
|
bg: {
|
|
159
|
-
0: ['950', 'white'],
|
|
160
|
-
4: ['
|
|
172
|
+
0: ['gray/950', 'white'],
|
|
173
|
+
4: ['850', '100'],
|
|
161
174
|
},
|
|
162
175
|
border: {
|
|
163
|
-
0: ['
|
|
164
|
-
4: ['
|
|
176
|
+
0: ['850', '100'],
|
|
177
|
+
4: ['650', '300'],
|
|
165
178
|
},
|
|
166
179
|
fg: {
|
|
167
180
|
0: ['white', 'black'],
|
|
@@ -171,18 +184,6 @@ export const defaultTokens: PartialTokens<Tokens> = {
|
|
|
171
184
|
},
|
|
172
185
|
},
|
|
173
186
|
},
|
|
174
|
-
'neutral': {
|
|
175
|
-
variant: {
|
|
176
|
-
tinted: {
|
|
177
|
-
'*': {
|
|
178
|
-
bg: {
|
|
179
|
-
0: ['900', '50'],
|
|
180
|
-
4: ['700', '200'],
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
187
|
'primary': {
|
|
187
188
|
_hue: 'blue',
|
|
188
189
|
},
|
|
@@ -200,3 +201,5 @@ export const defaultTokens: PartialTokens<Tokens> = {
|
|
|
200
201
|
},
|
|
201
202
|
},
|
|
202
203
|
}
|
|
204
|
+
|
|
205
|
+
// export const defaultTheme = buildTheme_v3()
|
|
@@ -97,48 +97,6 @@ function resolveCardColorTokens(
|
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
99
|
backdrop: tokens?.backdrop ?? ['900', '100'],
|
|
100
|
-
code: {
|
|
101
|
-
bg: tokens?.code?.bg ?? ['950', '50'],
|
|
102
|
-
fg: tokens?.code?.fg ?? ['400', '600'],
|
|
103
|
-
token: {
|
|
104
|
-
atrule: tokens?.code?.token?.atrule ?? ['400', '600'],
|
|
105
|
-
attribute: tokens?.code?.token?.attribute ?? ['400', '600'],
|
|
106
|
-
attrName: tokens?.code?.token?.attrName ?? ['400', '600'],
|
|
107
|
-
attrValue: tokens?.code?.token?.attrValue ?? ['400', '600'],
|
|
108
|
-
boolean: tokens?.code?.token?.boolean ?? ['400', '600'],
|
|
109
|
-
builtin: tokens?.code?.token?.builtin ?? ['400', '600'],
|
|
110
|
-
cdata: tokens?.code?.token?.cdata ?? ['400', '600'],
|
|
111
|
-
char: tokens?.code?.token?.char ?? ['400', '600'],
|
|
112
|
-
class: tokens?.code?.token?.class ?? ['400', '600'],
|
|
113
|
-
className: tokens?.code?.token?.className ?? ['400', '600'],
|
|
114
|
-
comment: tokens?.code?.token?.comment ?? ['600', '400'],
|
|
115
|
-
constant: tokens?.code?.token?.constant ?? ['400', '600'],
|
|
116
|
-
deleted: tokens?.code?.token?.deleted ?? ['400', '600'],
|
|
117
|
-
doctype: tokens?.code?.token?.doctype ?? ['400', '600'],
|
|
118
|
-
entity: tokens?.code?.token?.entity ?? ['400', '600'],
|
|
119
|
-
function: tokens?.code?.token?.function ?? ['400', '600'],
|
|
120
|
-
hexcode: tokens?.code?.token?.hexcode ?? ['400', '600'],
|
|
121
|
-
id: tokens?.code?.token?.id ?? ['400', '600'],
|
|
122
|
-
important: tokens?.code?.token?.important ?? ['400', '600'],
|
|
123
|
-
inserted: tokens?.code?.token?.inserted ?? ['400', '600'],
|
|
124
|
-
keyword: tokens?.code?.token?.keyword ?? ['400', '600'],
|
|
125
|
-
number: tokens?.code?.token?.number ?? ['400', '600'],
|
|
126
|
-
operator: tokens?.code?.token?.operator ?? ['400', '600'],
|
|
127
|
-
prolog: tokens?.code?.token?.prolog ?? ['400', '600'],
|
|
128
|
-
property: tokens?.code?.token?.property ?? ['400', '600'],
|
|
129
|
-
pseudoClass: tokens?.code?.token?.pseudoClass ?? ['400', '600'],
|
|
130
|
-
pseudoElement: tokens?.code?.token?.pseudoElement ?? ['400', '600'],
|
|
131
|
-
punctuation: tokens?.code?.token?.punctuation ?? ['400', '600'],
|
|
132
|
-
regex: tokens?.code?.token?.regex ?? ['400', '600'],
|
|
133
|
-
selector: tokens?.code?.token?.selector ?? ['400', '600'],
|
|
134
|
-
string: tokens?.code?.token?.string ?? ['400', '600'],
|
|
135
|
-
symbol: tokens?.code?.token?.symbol ?? ['400', '600'],
|
|
136
|
-
tag: tokens?.code?.token?.tag ?? ['400', '600'],
|
|
137
|
-
unit: tokens?.code?.token?.unit ?? ['400', '600'],
|
|
138
|
-
url: tokens?.code?.token?.url ?? ['400', '600'],
|
|
139
|
-
variable: tokens?.code?.token?.variable ?? ['400', '600'],
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
100
|
focusRing: tokens?.focusRing ?? ['500', '500'],
|
|
143
101
|
link: {
|
|
144
102
|
fg: tokens?.link?.fg ?? ['400', '600'],
|
|
@@ -153,7 +111,44 @@ function resolveCardColorTokens(
|
|
|
153
111
|
from: tokens?.skeleton?.from ?? ['900', '100'],
|
|
154
112
|
to: tokens?.skeleton?.to ?? ['950', '50'],
|
|
155
113
|
},
|
|
156
|
-
|
|
114
|
+
token: {
|
|
115
|
+
atrule: tokens?.token?.atrule ?? ['400', '600'],
|
|
116
|
+
attribute: tokens?.token?.attribute ?? ['400', '600'],
|
|
117
|
+
attrName: tokens?.token?.attrName ?? ['400', '600'],
|
|
118
|
+
attrValue: tokens?.token?.attrValue ?? ['400', '600'],
|
|
119
|
+
boolean: tokens?.token?.boolean ?? ['400', '600'],
|
|
120
|
+
builtin: tokens?.token?.builtin ?? ['400', '600'],
|
|
121
|
+
cdata: tokens?.token?.cdata ?? ['400', '600'],
|
|
122
|
+
char: tokens?.token?.char ?? ['400', '600'],
|
|
123
|
+
class: tokens?.token?.class ?? ['400', '600'],
|
|
124
|
+
className: tokens?.token?.className ?? ['400', '600'],
|
|
125
|
+
comment: tokens?.token?.comment ?? ['600', '400'],
|
|
126
|
+
constant: tokens?.token?.constant ?? ['400', '600'],
|
|
127
|
+
deleted: tokens?.token?.deleted ?? ['400', '600'],
|
|
128
|
+
doctype: tokens?.token?.doctype ?? ['400', '600'],
|
|
129
|
+
entity: tokens?.token?.entity ?? ['400', '600'],
|
|
130
|
+
function: tokens?.token?.function ?? ['400', '600'],
|
|
131
|
+
hexcode: tokens?.token?.hexcode ?? ['400', '600'],
|
|
132
|
+
id: tokens?.token?.id ?? ['400', '600'],
|
|
133
|
+
important: tokens?.token?.important ?? ['400', '600'],
|
|
134
|
+
inserted: tokens?.token?.inserted ?? ['400', '600'],
|
|
135
|
+
keyword: tokens?.token?.keyword ?? ['400', '600'],
|
|
136
|
+
number: tokens?.token?.number ?? ['400', '600'],
|
|
137
|
+
operator: tokens?.token?.operator ?? ['400', '600'],
|
|
138
|
+
prolog: tokens?.token?.prolog ?? ['400', '600'],
|
|
139
|
+
property: tokens?.token?.property ?? ['400', '600'],
|
|
140
|
+
pseudoClass: tokens?.token?.pseudoClass ?? ['400', '600'],
|
|
141
|
+
pseudoElement: tokens?.token?.pseudoElement ?? ['400', '600'],
|
|
142
|
+
punctuation: tokens?.token?.punctuation ?? ['400', '600'],
|
|
143
|
+
regex: tokens?.token?.regex ?? ['400', '600'],
|
|
144
|
+
selector: tokens?.token?.selector ?? ['400', '600'],
|
|
145
|
+
string: tokens?.token?.string ?? ['400', '600'],
|
|
146
|
+
symbol: tokens?.token?.symbol ?? ['400', '600'],
|
|
147
|
+
tag: tokens?.token?.tag ?? ['400', '600'],
|
|
148
|
+
unit: tokens?.token?.unit ?? ['400', '600'],
|
|
149
|
+
url: tokens?.token?.url ?? ['400', '600'],
|
|
150
|
+
variable: tokens?.token?.variable ?? ['400', '600'],
|
|
151
|
+
},
|
|
157
152
|
variant: {
|
|
158
153
|
solid: {
|
|
159
154
|
'*': resolveElementTokens(tokens?.variant?.solid?.['*']),
|
package/src/theme/v3/types.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {ThemeConfig} from '../config'
|
|
2
|
+
import {PaletteConfig} from '../palette'
|
|
2
3
|
import {ThemeFocusRing, ThemeFonts, ThemeFontWeightKey, ThemeLayer, ThemeShadow} from '../v0'
|
|
3
4
|
import {ThemeAvatar_v2, ThemeInput_v2} from '../v2'
|
|
4
5
|
import {ThemeColor_v3} from './color'
|
|
@@ -10,6 +11,7 @@ export type ThemeEntry = [`--${string}`, string]
|
|
|
10
11
|
/** @public */
|
|
11
12
|
export interface ThemeOptions {
|
|
12
13
|
v2?: ThemeConfig
|
|
14
|
+
palette?: PaletteConfig
|
|
13
15
|
tokens?: PartialTokens<Tokens>
|
|
14
16
|
}
|
|
15
17
|
|
|
@@ -20,6 +22,7 @@ export interface ThemeOptions {
|
|
|
20
22
|
*/
|
|
21
23
|
export interface Theme_v3 {
|
|
22
24
|
_version: 3
|
|
25
|
+
_palette: PaletteConfig
|
|
23
26
|
_tokens: Tokens
|
|
24
27
|
avatar: ThemeAvatar_v2
|
|
25
28
|
button: {
|
package/src/css/_comp.test.ts
DELETED
package/src/css/_comp.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {getClassNames} from './composeClassNames'
|
|
2
|
-
import {scopeClassName} from './scopeClassName'
|
|
3
|
-
|
|
4
|
-
export function _comp(...classNames: Array<string | false | undefined>): string | undefined {
|
|
5
|
-
return (
|
|
6
|
-
getClassNames(...classNames)
|
|
7
|
-
.filter(Boolean)
|
|
8
|
-
.map(scopeClassName)
|
|
9
|
-
.join(' ') || undefined
|
|
10
|
-
)
|
|
11
|
-
}
|
package/src/css/_mergeStyles.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// import type {Style, StyleKeyframes, StyleLayers, StyleRules} from '@sanity/css'
|
|
2
|
-
|
|
3
|
-
import {Style, StyleKeyframes, StyleLayers, StyleRules} from './types'
|
|
4
|
-
|
|
5
|
-
/** @internal */
|
|
6
|
-
export function _mergeStyles(styles: Style[]): Style {
|
|
7
|
-
const keyframes: StyleKeyframes = {}
|
|
8
|
-
const layers: StyleLayers = {}
|
|
9
|
-
const rules: StyleRules = {}
|
|
10
|
-
|
|
11
|
-
for (const s of styles) {
|
|
12
|
-
if (!s) {
|
|
13
|
-
// TODO: should not happen
|
|
14
|
-
continue
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
Object.assign(keyframes, s.keyframes)
|
|
18
|
-
|
|
19
|
-
for (const layerName in s.layers) {
|
|
20
|
-
if (!layers[layerName]) {
|
|
21
|
-
layers[layerName] = {}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
Object.assign(layers[layerName], s.layers[layerName])
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
Object.assign(rules, s.rules)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return {keyframes, layers, rules}
|
|
31
|
-
}
|