@sanity/ui 3.0.0-static.2 → 3.0.0-static.3
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 +204 -163
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +207 -166
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/refractor.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +3 -1
- package/dist/_visual-editing.d.ts +3 -1
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +184 -122
- package/dist/css.d.ts +184 -122
- package/dist/css.js +1961 -1904
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +1962 -1905
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +32 -3
- package/dist/index.d.ts +32 -3
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +22805 -3569
- package/dist/theme.d.mts +3 -3
- package/dist/theme.d.ts +3 -3
- package/dist/theme.js +4 -4
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +4 -4
- 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/css/_comp.test.ts +7 -0
- package/src/css/_comp.ts +10 -0
- package/src/css/_mergeStyles.ts +31 -0
- package/src/css/_resp.ts +12 -5
- package/src/css/_responsiveRule.ts +38 -0
- package/src/css/aspects/border/border.style.ts +13 -0
- package/src/css/aspects/border/border.ts +14 -0
- package/src/css/aspects/display/display.style.ts +34 -0
- package/src/css/aspects/flex/flex.style.ts +30 -0
- package/src/css/aspects/flex/flex.ts +13 -0
- package/src/css/aspects/flex/flexAlign.style.ts +12 -0
- package/src/css/aspects/flex/flexDirection.style.ts +11 -0
- package/src/css/aspects/flex/flexJustify.style.ts +13 -0
- package/src/css/aspects/flex/flexWrap.style.ts +10 -0
- package/src/css/aspects/flexItem/flex.style.ts +22 -0
- package/src/css/{styles → aspects}/flexItem/flexItem.ts +1 -1
- package/src/css/{styles → aspects}/flexItem/types.ts +17 -1
- package/src/css/{styles/font/rules.ts → aspects/font/font.style.ts} +28 -25
- package/src/css/{styles → aspects}/font/font.ts +2 -7
- package/src/css/aspects/gap/gap.style.ts +21 -0
- package/src/css/{styles → aspects}/grid/grid.ts +2 -2
- package/src/css/aspects/grid/gridAutoColumns.style.ts +11 -0
- package/src/css/aspects/grid/gridAutoFlow.style.ts +11 -0
- package/src/css/aspects/grid/gridAutoRows.style.ts +11 -0
- package/src/css/aspects/grid/gridColumns.style.ts +18 -0
- package/src/css/aspects/grid/gridRows.style.ts +18 -0
- package/src/css/aspects/gridItem/gridColumn.style.ts +20 -0
- package/src/css/aspects/gridItem/gridColumnEnd.style.ts +20 -0
- package/src/css/aspects/gridItem/gridColumnStart.style.ts +20 -0
- package/src/css/aspects/gridItem/gridRow.style.ts +20 -0
- package/src/css/aspects/gridItem/gridRowEnd.style.ts +20 -0
- package/src/css/aspects/gridItem/gridRowStart.style.ts +20 -0
- package/src/css/aspects/height/height.style.ts +9 -0
- package/src/css/aspects/height/height.ts +17 -0
- package/src/css/aspects/height/index.ts +1 -0
- package/src/css/{styles → aspects}/index.ts +1 -0
- package/src/css/aspects/inset/inset.style.ts +12 -0
- package/src/css/aspects/margin/margin.style.ts +46 -0
- package/src/css/aspects/maxWidth/maxWidth.style.ts +16 -0
- package/src/css/{styles → aspects}/maxWidth/types.ts +1 -1
- package/src/css/aspects/outline/outline.style.ts +9 -0
- package/src/css/aspects/overflow/overflow.style.ts +11 -0
- package/src/css/aspects/padding/padding.style.ts +46 -0
- package/src/css/aspects/pointerEvents/pointerEvents.style.ts +13 -0
- package/src/css/aspects/position/position.style.ts +12 -0
- package/src/css/{styles → aspects}/position/position.ts +1 -1
- package/src/css/aspects/radius/radius.style.ts +16 -0
- package/src/css/{styles → aspects}/radius/types.ts +1 -1
- package/src/css/aspects/shadow/shadow.style.ts +49 -0
- package/src/css/aspects/textOverflow/textOverflow.style.ts +21 -0
- package/src/css/{styles → aspects}/width/rules.ts +1 -0
- package/src/css/{styles → aspects}/width/types.ts +1 -1
- package/src/css/aspects/width/width.style.ts +11 -0
- package/src/css/compile/compileRule.ts +7 -1
- package/src/css/compile/compileRules.test.ts +1 -0
- package/src/css/compile/compileRules.ts +6 -3
- package/src/css/compile/compileStyle.ts +148 -0
- package/src/css/compile/compileSystem.ts +6 -3
- package/src/css/components/breadcrumbs/breadcrumbs.style.ts +9 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +2 -2
- package/src/css/components/dialog/dialog.style.ts +79 -0
- package/src/css/components/dialog/dialog.ts +9 -8
- package/src/css/components/dialog/rules.ts +2 -0
- package/src/css/components/menu/menu.style.ts +17 -0
- package/src/css/components/menu/menu.ts +3 -3
- package/src/css/components/skeleton/rules.ts +1 -0
- package/src/css/components/skeleton/skeleton.style.ts +96 -0
- 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 +1 -0
- package/src/css/components/toast/toast.style.ts +20 -0
- package/src/css/components/toast/toast.ts +6 -6
- package/src/css/components/tree/tree.style.ts +55 -0
- package/src/css/components/tree/tree.ts +2 -2
- package/src/css/composeClassNames.ts +9 -5
- package/src/css/constants.ts +1 -0
- package/src/css/index.ts +2 -1
- package/src/css/primitives/_arrow/{rules.ts → _arrow.style.ts} +7 -5
- package/src/css/primitives/_arrow/_arrow.ts +6 -6
- package/src/css/primitives/_input/__workshop__/customInput.tsx +16 -0
- package/src/css/primitives/_input/__workshop__/index.ts +14 -0
- package/src/css/primitives/_input/{rules.ts → _input.style.ts} +19 -20
- package/src/css/primitives/_input/input.ts +12 -12
- package/src/css/primitives/_input/types.ts +1 -1
- package/src/css/primitives/_selectable/{rules.ts → _selectable.style.ts} +6 -3
- package/src/css/primitives/_selectable/selectable.ts +3 -3
- package/src/css/primitives/_selectable/types.ts +1 -1
- package/src/css/primitives/avatar/avatar.style.ts +175 -0
- package/src/css/primitives/avatar/avatar.ts +7 -7
- package/src/css/primitives/badge/badge.style.ts +22 -0
- package/src/css/primitives/badge/badge.ts +3 -3
- package/src/css/primitives/badge/types.ts +1 -1
- package/src/css/primitives/box/box.style.ts +31 -0
- package/src/css/primitives/box/box.ts +8 -6
- package/src/css/primitives/box/types.ts +3 -7
- package/src/css/primitives/button/button.style.ts +182 -0
- package/src/css/primitives/button/button.ts +3 -3
- package/src/css/primitives/button/rules.ts +19 -10
- package/src/css/primitives/card/card.style.ts +198 -0
- package/src/css/primitives/card/card.ts +3 -5
- package/src/css/primitives/card/rules.ts +2 -0
- package/src/css/primitives/card/types.ts +1 -1
- package/src/css/primitives/checkbox/checkbox.style.ts +154 -0
- package/src/css/primitives/checkbox/checkbox.ts +3 -3
- package/src/css/primitives/code/code.style.ts +62 -0
- package/src/css/primitives/code/code.ts +3 -3
- package/src/css/primitives/code/types.ts +1 -1
- package/src/css/primitives/container/container.style.ts +10 -0
- package/src/css/primitives/container/container.ts +3 -3
- package/src/css/primitives/heading/heading.style.ts +47 -0
- package/src/css/primitives/heading/heading.ts +5 -5
- package/src/css/primitives/heading/types.ts +1 -1
- package/src/css/primitives/kbd/kbd.style.ts +22 -0
- package/src/css/primitives/kbd/kbd.ts +3 -3
- package/src/css/primitives/kbd/types.ts +1 -1
- package/src/css/primitives/label/label.style.ts +48 -0
- package/src/css/primitives/label/label.ts +3 -3
- package/src/css/primitives/label/types.ts +1 -1
- package/src/css/primitives/popover/popover.style.ts +5 -0
- package/src/css/primitives/popover/popover.ts +2 -2
- package/src/css/primitives/radio/radio.style.ts +123 -0
- package/src/css/primitives/radio/radio.ts +2 -2
- package/src/css/primitives/select/select.style.ts +24 -0
- package/src/css/primitives/select/select.ts +3 -2
- package/src/css/primitives/spinner/rules.ts +1 -0
- package/src/css/primitives/spinner/spinner.style.ts +22 -0
- package/src/css/primitives/spinner/spinner.ts +3 -3
- package/src/css/primitives/switch/switch.style.ts +169 -0
- package/src/css/primitives/switch/switch.ts +6 -6
- package/src/css/primitives/text/text.style.ts +56 -0
- package/src/css/primitives/text/text.ts +3 -3
- package/src/css/primitives/text/types.ts +1 -1
- package/src/css/primitives/textArea/textArea.style.ts +9 -0
- package/src/css/primitives/textArea/textArea.ts +2 -1
- package/src/css/primitives/textInput/textInput.style.ts +167 -0
- package/src/css/primitives/textInput/textInput.ts +2 -2
- package/src/css/primitives/token/token.style.ts +49 -0
- package/src/css/primitives/tooltip/tooltip.style.ts +21 -0
- package/src/css/primitives/tooltip/tooltip.ts +3 -3
- package/src/css/scopeClassName.ts +6 -0
- package/src/css/system.style.ts +154 -0
- package/src/css/types.ts +145 -101
- package/src/css/utils/srOnly/srOnly.style.ts +14 -0
- package/src/css/varNames.ts +18 -5
- package/src/css/vars.ts +13 -0
- 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/ui/_compat/theme/themeContext.ts +10 -0
- package/src/{core → ui}/_compat/theme/themeProvider.tsx +15 -3
- package/src/{core → ui}/_compat/types.ts +11 -1
- package/src/{core → ui}/components/autocomplete/__workshop__/async.tsx +2 -1
- package/src/{core → ui}/components/autocomplete/__workshop__/constrainedHeight.tsx +6 -13
- package/src/{core → ui}/components/autocomplete/__workshop__/fullscreen.tsx +3 -4
- package/src/{core → ui}/components/autocomplete/__workshop__/index.ts +1 -1
- package/src/{core → ui}/components/autocomplete/autocomplete.tsx +5 -2
- package/src/{core → ui}/components/hotkeys/hotkeys.tsx +8 -10
- package/src/{core → ui}/components/toast/toast.tsx +0 -1
- package/src/ui/hooks/useMatchMedia.ts +28 -0
- package/src/{core → ui}/hooks/useMediaIndex/useMediaIndex.ts +6 -4
- package/src/{core → ui}/primitives/box/box.tsx +1 -0
- package/src/{core → ui}/primitives/button/button.tsx +6 -5
- package/src/{core → ui}/primitives/card/card.tsx +36 -19
- package/src/ui/primitives/card/cardContext.ts +10 -0
- package/src/ui/primitives/card/cardProvider.tsx +19 -0
- package/src/ui/primitives/card/index.ts +4 -0
- package/src/ui/primitives/card/types.ts +27 -0
- package/src/ui/primitives/card/useCard.ts +7 -0
- package/src/{core → ui}/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
- package/src/{core → ui}/primitives/popover/__workshop__/SidePanelStory.tsx +7 -3
- package/src/{core → ui}/primitives/popover/popover.tsx +57 -48
- package/src/{core → ui}/primitives/popover/popoverCard.tsx +11 -4
- package/src/{core → ui}/primitives/tooltip/tooltip.test.tsx +2 -2
- package/src/{core → ui}/utils/layer/layerProvider.tsx +1 -1
- package/src/{core → ui}/utils/portal/portal.ts +15 -2
- package/src/{core → ui}/utils/virtualList/virtualList.tsx +2 -1
- package/src/core/_compat/theme/themeContext.ts +0 -10
- package/src/core/hooks/useMatchMedia.ts +0 -46
- package/src/core/primitives/card/index.ts +0 -2
- package/src/core/primitives/card/types.ts +0 -12
- package/src/css/primitives/badge/rules.ts +0 -22
- package/src/css/primitives/box/rules.ts +0 -28
- package/src/css/rules.ts +0 -113
- package/src/css/styles/border/border.ts +0 -22
- package/src/css/styles/border/rules.ts +0 -24
- package/src/css/styles/display/rules.ts +0 -62
- package/src/css/styles/flex/flex.ts +0 -20
- package/src/css/styles/flex/rules.ts +0 -28
- package/src/css/styles/flexItem/rules.ts +0 -12
- package/src/css/styles/gap/rules.ts +0 -34
- package/src/css/styles/grid/rules.ts +0 -146
- package/src/css/styles/gridItem/rules.ts +0 -96
- package/src/css/styles/inset/rules.ts +0 -16
- package/src/css/styles/margin/rules.ts +0 -64
- package/src/css/styles/maxWidth/rules.ts +0 -13
- package/src/css/styles/outline/rules.ts +0 -7
- package/src/css/styles/overflow/rules.ts +0 -9
- package/src/css/styles/padding/rules.ts +0 -62
- package/src/css/styles/pointerEvents/rules.ts +0 -11
- package/src/css/styles/position/rules.ts +0 -24
- package/src/css/styles/radius/rules.ts +0 -13
- package/src/css/styles/shadow/rules.ts +0 -53
- package/src/css/styles/textOverflow/rules.ts +0 -17
- package/src/css/utils/srOnly/rules.ts +0 -11
- /package/src/css/{styles → aspects}/border/index.ts +0 -0
- /package/src/css/{styles → aspects}/border/types.ts +0 -0
- /package/src/css/{styles → aspects}/display/display.ts +0 -0
- /package/src/css/{styles → aspects}/display/index.ts +0 -0
- /package/src/css/{styles → aspects}/display/types.ts +0 -0
- /package/src/css/{styles → aspects}/flex/index.ts +0 -0
- /package/src/css/{styles → aspects}/flex/types.ts +0 -0
- /package/src/css/{styles → aspects}/flexItem/index.ts +0 -0
- /package/src/css/{styles → aspects}/font/index.ts +0 -0
- /package/src/css/{styles → aspects}/font/types.ts +0 -0
- /package/src/css/{styles → aspects}/gap/gap.ts +0 -0
- /package/src/css/{styles → aspects}/gap/index.ts +0 -0
- /package/src/css/{styles → aspects}/gap/types.ts +0 -0
- /package/src/css/{styles → aspects}/grid/index.ts +0 -0
- /package/src/css/{styles → aspects}/grid/types.ts +0 -0
- /package/src/css/{styles → aspects}/gridItem/gridItem.ts +0 -0
- /package/src/css/{styles → aspects}/gridItem/index.ts +0 -0
- /package/src/css/{styles → aspects}/gridItem/types.ts +0 -0
- /package/src/css/{styles → aspects}/height/rules.ts +0 -0
- /package/src/css/{styles → aspects}/inset/index.ts +0 -0
- /package/src/css/{styles → aspects}/inset/inset.ts +0 -0
- /package/src/css/{styles → aspects}/inset/types.ts +0 -0
- /package/src/css/{styles → aspects}/margin/index.ts +0 -0
- /package/src/css/{styles → aspects}/margin/margin.ts +0 -0
- /package/src/css/{styles → aspects}/margin/types.ts +0 -0
- /package/src/css/{styles → aspects}/maxWidth/index.ts +0 -0
- /package/src/css/{styles → aspects}/maxWidth/maxWidth.ts +0 -0
- /package/src/css/{styles → aspects}/overflow/index.ts +0 -0
- /package/src/css/{styles → aspects}/overflow/overflow.ts +0 -0
- /package/src/css/{styles → aspects}/overflow/types.ts +0 -0
- /package/src/css/{styles → aspects}/padding/index.ts +0 -0
- /package/src/css/{styles → aspects}/padding/padding.ts +0 -0
- /package/src/css/{styles → aspects}/padding/types.ts +0 -0
- /package/src/css/{styles → aspects}/pointerEvents/index.ts +0 -0
- /package/src/css/{styles → aspects}/pointerEvents/pointerEvents.ts +0 -0
- /package/src/css/{styles → aspects}/pointerEvents/types.ts +0 -0
- /package/src/css/{styles → aspects}/position/index.ts +0 -0
- /package/src/css/{styles → aspects}/position/types.ts +0 -0
- /package/src/css/{styles → aspects}/radius/index.ts +0 -0
- /package/src/css/{styles → aspects}/radius/radius.ts +0 -0
- /package/src/css/{styles → aspects}/shadow/index.ts +0 -0
- /package/src/css/{styles → aspects}/shadow/shadow.ts +0 -0
- /package/src/css/{styles → aspects}/shadow/types.ts +0 -0
- /package/src/css/{styles → aspects}/textOverflow/index.ts +0 -0
- /package/src/css/{styles → aspects}/textOverflow/textOverflow.ts +0 -0
- /package/src/css/{styles → aspects}/textOverflow/types.ts +0 -0
- /package/src/css/{styles → aspects}/width/index.ts +0 -0
- /package/src/css/{styles → aspects}/width/width.ts +0 -0
- /package/src/{core → ui}/StyleTags.tsx +0 -0
- /package/src/{core → ui}/_compat/index.ts +0 -0
- /package/src/{core → ui}/_compat/styles/_responsive.ts +0 -0
- /package/src/{core → ui}/_compat/styles/index.ts +0 -0
- /package/src/{core → ui}/_compat/theme/index.ts +0 -0
- /package/src/{core → ui}/_compat/theme/theme.test.tsx +0 -0
- /package/src/{core → ui}/_compat/theme/themeColorProvider.tsx +0 -0
- /package/src/{core → ui}/_compat/theme/types.ts +0 -0
- /package/src/{core → ui}/_compat/theme/useRootTheme.ts +0 -0
- /package/src/{core → ui}/_compat/theme/useTheme.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/__mocks__/apiStore.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/__mocks__/countries.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/custom.tsx +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/focusAndBlur.tsx +0 -0
- /package/src/{core → ui}/components/autocomplete/__workshop__/types.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/autocompleteOption.tsx +0 -0
- /package/src/{core → ui}/components/autocomplete/autocompleteReducer.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/constants.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/index.ts +0 -0
- /package/src/{core → ui}/components/autocomplete/types.ts +0 -0
- /package/src/{core → ui}/components/breadcrumbs/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/components/breadcrumbs/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/breadcrumbs/breadcrumbs.tsx +0 -0
- /package/src/{core → ui}/components/breadcrumbs/index.ts +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/activate.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/autoFocus.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/layering.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/nested.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/onScroll.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/panes.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/position.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/provider.tsx +0 -0
- /package/src/{core → ui}/components/dialog/__workshop__/wrapped.tsx +0 -0
- /package/src/{core → ui}/components/dialog/dialog.tsx +0 -0
- /package/src/{core → ui}/components/dialog/dialogContext.ts +0 -0
- /package/src/{core → ui}/components/dialog/dialogProvider.tsx +0 -0
- /package/src/{core → ui}/components/dialog/index.ts +0 -0
- /package/src/{core → ui}/components/dialog/useDialog.ts +0 -0
- /package/src/{core → ui}/components/hotkeys/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/hotkeys/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/components/hotkeys/index.ts +0 -0
- /package/src/{core → ui}/components/index.ts +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/asComponent.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/avatarMenu.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/closableMenuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/constrainedInBoundary.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/customMenuItem.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/customSelectedState.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/disableFocusOnClose.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/groups.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/menuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/menuGroupRight.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/nestedMenu.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/onCloseMenuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/selectedItem.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/shouldFocus.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/tones.tsx +0 -0
- /package/src/{core → ui}/components/menu/__workshop__/withoutArrow.tsx +0 -0
- /package/src/{core → ui}/components/menu/helpers.ts +0 -0
- /package/src/{core → ui}/components/menu/index.ts +0 -0
- /package/src/{core → ui}/components/menu/menu.test.tsx +0 -0
- /package/src/{core → ui}/components/menu/menu.tsx +0 -0
- /package/src/{core → ui}/components/menu/menuButton.tsx +0 -0
- /package/src/{core → ui}/components/menu/menuContext.ts +0 -0
- /package/src/{core → ui}/components/menu/menuDivider.tsx +0 -0
- /package/src/{core → ui}/components/menu/menuGroup.tsx +0 -0
- /package/src/{core → ui}/components/menu/menuItem.tsx +0 -0
- /package/src/{core → ui}/components/menu/useMenu.ts +0 -0
- /package/src/{core → ui}/components/menu/useMenuController.ts +0 -0
- /package/src/{core → ui}/components/skeleton/__workshop__/delay.tsx +0 -0
- /package/src/{core → ui}/components/skeleton/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/skeleton/__workshop__/skeleton.tsx +0 -0
- /package/src/{core → ui}/components/skeleton/index.ts +0 -0
- /package/src/{core → ui}/components/skeleton/skeleton.tsx +0 -0
- /package/src/{core → ui}/components/skeleton/textSkeleton.tsx +0 -0
- /package/src/{core → ui}/components/tab/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/components/tab/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/tab/index.ts +0 -0
- /package/src/{core → ui}/components/tab/tab.tsx +0 -0
- /package/src/{core → ui}/components/tab/tabList.tsx +0 -0
- /package/src/{core → ui}/components/tab/tabPanel.tsx +0 -0
- /package/src/{core → ui}/components/toast/__workshop__/hook.tsx +0 -0
- /package/src/{core → ui}/components/toast/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/toast/__workshop__/toast.tsx +0 -0
- /package/src/{core → ui}/components/toast/index.ts +0 -0
- /package/src/{core → ui}/components/toast/toast.test.tsx +0 -0
- /package/src/{core → ui}/components/toast/toastContext.ts +0 -0
- /package/src/{core → ui}/components/toast/toastLayer.tsx +0 -0
- /package/src/{core → ui}/components/toast/toastProvider.tsx +0 -0
- /package/src/{core → ui}/components/toast/toastState.ts +0 -0
- /package/src/{core → ui}/components/toast/types.ts +0 -0
- /package/src/{core → ui}/components/toast/useToast.ts +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/basic.perf.ts +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/basic.tsx +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/components/tree/__workshop__/tabFromElement.tsx +0 -0
- /package/src/{core → ui}/components/tree/helpers.ts +0 -0
- /package/src/{core → ui}/components/tree/index.ts +0 -0
- /package/src/{core → ui}/components/tree/tree.tsx +0 -0
- /package/src/{core → ui}/components/tree/treeContext.ts +0 -0
- /package/src/{core → ui}/components/tree/treeGroup.tsx +0 -0
- /package/src/{core → ui}/components/tree/treeItem.tsx +0 -0
- /package/src/{core → ui}/components/tree/types.ts +0 -0
- /package/src/{core → ui}/components/tree/useTree.ts +0 -0
- /package/src/{core → ui}/constants.ts +0 -0
- /package/src/{core → ui}/global.ts +0 -0
- /package/src/{core → ui}/helpers/animation.ts +0 -0
- /package/src/{core → ui}/helpers/element.ts +0 -0
- /package/src/{core → ui}/helpers/focus.ts +0 -0
- /package/src/{core → ui}/helpers/index.ts +0 -0
- /package/src/{core → ui}/helpers/props.ts +0 -0
- /package/src/{core → ui}/helpers/scroll.ts +0 -0
- /package/src/{core → ui}/hooks/index.ts +0 -0
- /package/src/{core → ui}/hooks/useArrayProp.ts +0 -0
- /package/src/{core → ui}/hooks/useClickOutside.test.tsx +0 -0
- /package/src/{core → ui}/hooks/useClickOutside.ts +0 -0
- /package/src/{core → ui}/hooks/useClickOutsideEvent.test.tsx +0 -0
- /package/src/{core → ui}/hooks/useClickOutsideEvent.ts +0 -0
- /package/src/{core → ui}/hooks/useCustomValidity.ts +0 -0
- /package/src/{core → ui}/hooks/useDelayed.test.ts +0 -0
- /package/src/{core → ui}/hooks/useDelayedState.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/hooks/useElementRect/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/index.ts +0 -0
- /package/src/{core → ui}/hooks/useElementRect/useElementRect.ts +0 -0
- /package/src/{core → ui}/hooks/useElementSize.ts +0 -0
- /package/src/{core → ui}/hooks/useForwardedRef.ts +0 -0
- /package/src/{core → ui}/hooks/useGlobalKeyDown.ts +0 -0
- /package/src/{core → ui}/hooks/useIsomorphicEffect.ts +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/__workshop__/test.tsx +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/index.ts +0 -0
- /package/src/{core → ui}/hooks/useMediaIndex/useMediaIndex.test.tsx +0 -0
- /package/src/{core → ui}/hooks/useMounted.ts +0 -0
- /package/src/{core → ui}/hooks/usePrefersDark.hydration.test.tsx +0 -0
- /package/src/{core → ui}/hooks/usePrefersDark.test.tsx +0 -0
- /package/src/{core → ui}/hooks/usePrefersDark.ts +0 -0
- /package/src/{core → ui}/hooks/usePrefersReducedMotion.hydration.test.tsx +0 -0
- /package/src/{core → ui}/hooks/usePrefersReducedMotion.test.tsx +0 -0
- /package/src/{core → ui}/hooks/usePrefersReducedMotion.ts +0 -0
- /package/src/{core → ui}/index.ts +0 -0
- /package/src/{core → ui}/lib/createGlobalScopedContext.ts +0 -0
- /package/src/{core → ui}/lib/globalScope.ts +0 -0
- /package/src/{core → ui}/lib/isRecord.ts +0 -0
- /package/src/{core → ui}/middleware/origin.ts +0 -0
- /package/src/{core → ui}/observers/elementSizeObserver.ts +0 -0
- /package/src/{core → ui}/observers/index.ts +0 -0
- /package/src/{core → ui}/observers/resizeObserver.ts +0 -0
- /package/src/{core → ui}/primitives/_selectable/index.ts +0 -0
- /package/src/{core → ui}/primitives/_selectable/selectable.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/__workshop__/asButton.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/avatar/__workshop__/stack.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/__workshop__/withinButton.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/__workshop__/withinMenuItem.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/avatar.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/avatarCounter.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/avatarStack.tsx +0 -0
- /package/src/{core → ui}/primitives/avatar/index.ts +0 -0
- /package/src/{core → ui}/primitives/avatar/types.ts +0 -0
- /package/src/{core → ui}/primitives/badge/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/badge/__workshop__/tones.tsx +0 -0
- /package/src/{core → ui}/primitives/badge/badge.test.tsx +0 -0
- /package/src/{core → ui}/primitives/badge/badge.tsx +0 -0
- /package/src/{core → ui}/primitives/badge/index.ts +0 -0
- /package/src/{core → ui}/primitives/badge/types.ts +0 -0
- /package/src/{core → ui}/primitives/box/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/box/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/box/__workshop__/responsive.tsx +0 -0
- /package/src/{core → ui}/primitives/box/index.ts +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/custom.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/customIcons.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/disabled.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/mixedChildren.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/sanityUploadButton.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/stacked.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/styled1.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/styled2.tsx +0 -0
- /package/src/{core → ui}/primitives/button/__workshop__/uploadButton.tsx +0 -0
- /package/src/{core → ui}/primitives/button/button.test.tsx +0 -0
- /package/src/{core → ui}/primitives/button/index.ts +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/allTones.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/asButton.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/asComponent.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/checkered.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/interactive.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/listNavigation.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/selected.tsx +0 -0
- /package/src/{core → ui}/primitives/card/__workshop__/styled.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/readOnly.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/__workshop__/tones.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/checkbox.tsx +0 -0
- /package/src/{core → ui}/primitives/checkbox/index.ts +0 -0
- /package/src/{core → ui}/primitives/code/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/code/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{core → ui}/primitives/code/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/code/code.tsx +0 -0
- /package/src/{core → ui}/primitives/code/index.ts +0 -0
- /package/src/{core → ui}/primitives/code/refractor.tsx +0 -0
- /package/src/{core → ui}/primitives/container/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/container/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/container.tsx +0 -0
- /package/src/{core → ui}/primitives/container/index.ts +0 -0
- /package/src/{core → ui}/primitives/container/types.ts +0 -0
- /package/src/{core → ui}/primitives/flex/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/flex/__workshop__/gap.tsx +0 -0
- /package/src/{core → ui}/primitives/flex/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/flex/flex.tsx +0 -0
- /package/src/{core → ui}/primitives/flex/index.ts +0 -0
- /package/src/{core → ui}/primitives/grid/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/grid/__workshop__/responsive.tsx +0 -0
- /package/src/{core → ui}/primitives/grid/grid.tsx +0 -0
- /package/src/{core → ui}/primitives/grid/index.ts +0 -0
- /package/src/{core → ui}/primitives/heading/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/heading/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{core → ui}/primitives/heading/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/heading/heading.tsx +0 -0
- /package/src/{core → ui}/primitives/heading/index.ts +0 -0
- /package/src/{core → ui}/primitives/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/inline/index.ts +0 -0
- /package/src/{core → ui}/primitives/inline/inline.tsx +0 -0
- /package/src/{core → ui}/primitives/inline/types.ts +0 -0
- /package/src/{core → ui}/primitives/kbd/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/kbd/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/kbd/index.ts +0 -0
- /package/src/{core → ui}/primitives/kbd/kbd.tsx +0 -0
- /package/src/{core → ui}/primitives/label/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/label/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{core → ui}/primitives/label/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/label/index.ts +0 -0
- /package/src/{core → ui}/primitives/label/label.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/AlignedStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/MarginsStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/PlainStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/RecursiveStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/TestStory.tsx +0 -0
- /package/src/{core → ui}/primitives/popover/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/constants.ts +0 -0
- /package/src/{core → ui}/primitives/popover/floating-ui/size.ts +0 -0
- /package/src/{core → ui}/primitives/popover/helpers.ts +0 -0
- /package/src/{core → ui}/primitives/popover/index.ts +0 -0
- /package/src/{core → ui}/primitives/popover/types.ts +0 -0
- /package/src/{core → ui}/primitives/radio/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/radio/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/radio/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/radio/index.ts +0 -0
- /package/src/{core → ui}/primitives/radio/radio.tsx +0 -0
- /package/src/{core → ui}/primitives/select/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/select/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/select/__workshop__/readOnly.tsx +0 -0
- /package/src/{core → ui}/primitives/select/index.ts +0 -0
- /package/src/{core → ui}/primitives/select/select.tsx +0 -0
- /package/src/{core → ui}/primitives/spinner/__workshop__/Props.tsx +0 -0
- /package/src/{core → ui}/primitives/spinner/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/spinner/animatedSpinnerIcon.tsx +0 -0
- /package/src/{core → ui}/primitives/spinner/index.ts +0 -0
- /package/src/{core → ui}/primitives/spinner/spinner.tsx +0 -0
- /package/src/{core → ui}/primitives/stack/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/stack/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/stack/index.ts +0 -0
- /package/src/{core → ui}/primitives/stack/stack.tsx +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/switch/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/switch/index.ts +0 -0
- /package/src/{core → ui}/primitives/switch/switch.tsx +0 -0
- /package/src/{core → ui}/primitives/text/__workshop__/colored.tsx +0 -0
- /package/src/{core → ui}/primitives/text/__workshop__/example.tsx +0 -0
- /package/src/{core → ui}/primitives/text/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/text/__workshop__/opticalAlignment.tsx +0 -0
- /package/src/{core → ui}/primitives/text/index.ts +0 -0
- /package/src/{core → ui}/primitives/text/text.tsx +0 -0
- /package/src/{core → ui}/primitives/textArea/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/textArea/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/textArea/index.ts +0 -0
- /package/src/{core → ui}/primitives/textArea/textArea.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/clearButton.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/customValidity.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/readOnly.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/states.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/tones.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/__workshop__/typed.tsx +0 -0
- /package/src/{core → ui}/primitives/textInput/index.ts +0 -0
- /package/src/{core → ui}/primitives/textInput/textInput.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/__workshop__/customPortal.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/__workshop__/overflowingBoundary.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/__workshop__/props.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/__workshop__/resizableBoundary.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/constants.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltip.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipCard.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/index.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/types.ts +0 -0
- /package/src/{core → ui}/primitives/tooltip/tooltipDelayGroup/useTooltipDelayGroup.ts +0 -0
- /package/src/{core → ui}/primitives/types.ts +0 -0
- /package/src/{core → ui}/types/avatar.ts +0 -0
- /package/src/{core → ui}/types/badge.ts +0 -0
- /package/src/{core → ui}/types/box.ts +0 -0
- /package/src/{core → ui}/types/button.ts +0 -0
- /package/src/{core → ui}/types/card.ts +0 -0
- /package/src/{core → ui}/types/dialog.ts +0 -0
- /package/src/{core → ui}/types/flex.ts +0 -0
- /package/src/{core → ui}/types/grid.ts +0 -0
- /package/src/{core → ui}/types/gridItem.ts +0 -0
- /package/src/{core → ui}/types/index.ts +0 -0
- /package/src/{core → ui}/types/placement.ts +0 -0
- /package/src/{core → ui}/types/popover.ts +0 -0
- /package/src/{core → ui}/types/props.ts +0 -0
- /package/src/{core → ui}/types/radius.ts +0 -0
- /package/src/{core → ui}/types/selectable.ts +0 -0
- /package/src/{core → ui}/types/text.ts +0 -0
- /package/src/{core → ui}/utils/arrow/arrow.tsx +0 -0
- /package/src/{core → ui}/utils/arrow/cmds.ts +0 -0
- /package/src/{core → ui}/utils/arrow/index.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/__workshop__/plain.tsx +0 -0
- /package/src/{core → ui}/utils/boundaryElement/boundaryElement.test.tsx +0 -0
- /package/src/{core → ui}/utils/boundaryElement/boundaryElementContext.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/boundaryElementProvider.tsx +0 -0
- /package/src/{core → ui}/utils/boundaryElement/index.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/types.ts +0 -0
- /package/src/{core → ui}/utils/boundaryElement/useBoundaryElement.ts +0 -0
- /package/src/{core → ui}/utils/conditionalWrapper/conditionalWrapper.tsx +0 -0
- /package/src/{core → ui}/utils/conditionalWrapper/index.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/__workshop__/customMedia.tsx +0 -0
- /package/src/{core → ui}/utils/elementQuery/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/elementQuery.tsx +0 -0
- /package/src/{core → ui}/utils/elementQuery/helpers.ts +0 -0
- /package/src/{core → ui}/utils/elementQuery/index.ts +0 -0
- /package/src/{core → ui}/utils/errorBoundary.tsx +0 -0
- /package/src/{core → ui}/utils/getElementRef.ts +0 -0
- /package/src/{core → ui}/utils/index.ts +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/_debug.tsx +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/multipleRoots.tsx +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/nested.tsx +0 -0
- /package/src/{core → ui}/utils/layer/__workshop__/responsiveZOffset.tsx +0 -0
- /package/src/{core → ui}/utils/layer/getLayerContext.test.ts +0 -0
- /package/src/{core → ui}/utils/layer/getLayerContext.ts +0 -0
- /package/src/{core → ui}/utils/layer/index.ts +0 -0
- /package/src/{core → ui}/utils/layer/layer.test.tsx +0 -0
- /package/src/{core → ui}/utils/layer/layer.tsx +0 -0
- /package/src/{core → ui}/utils/layer/layerContext.ts +0 -0
- /package/src/{core → ui}/utils/layer/types.ts +0 -0
- /package/src/{core → ui}/utils/layer/useLayer.ts +0 -0
- /package/src/{core → ui}/utils/portal/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/portal/__workshop__/named.tsx +0 -0
- /package/src/{core → ui}/utils/portal/index.ts +0 -0
- /package/src/{core → ui}/utils/portal/portal.test.tsx +0 -0
- /package/src/{core → ui}/utils/portal/portalContext.ts +0 -0
- /package/src/{core → ui}/utils/portal/portalProvider.tsx +0 -0
- /package/src/{core → ui}/utils/portal/types.ts +0 -0
- /package/src/{core → ui}/utils/portal/usePortal.ts +0 -0
- /package/src/{core → ui}/utils/spanWithTextOverflow.tsx +0 -0
- /package/src/{core → ui}/utils/srOnly/index.ts +0 -0
- /package/src/{core → ui}/utils/srOnly/srOnly.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/changingProps.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/elementScroll.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/index.ts +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/infiniteList.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/__workshop__/windowScrolll.tsx +0 -0
- /package/src/{core → ui}/utils/virtualList/index.ts +0 -0
package/dist/css.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
3
3
|
var v3_v2 = require("./_chunks-cjs/v3_v2.js"), theme = require("@sanity/ui/theme");
|
|
4
|
+
const PREFIX = "s-";
|
|
4
5
|
function compileRule(selector, props, context) {
|
|
5
|
-
let css = compileProperties(selector, props);
|
|
6
|
+
let css = compileProperties$1(selector, props);
|
|
6
7
|
if (props["@nest"] && (css += compileNestedRules(selector, props["@nest"], context)), props["@keyframes"])
|
|
7
8
|
for (const name in props["@keyframes"])
|
|
8
9
|
context.keyframes[name] = props["@keyframes"][name];
|
|
@@ -11,13 +12,13 @@ function compileRule(selector, props, context) {
|
|
|
11
12
|
context.media[key] || (context.media[key] = {}), context.media[key][selector] = props["@media"][key];
|
|
12
13
|
return css;
|
|
13
14
|
}
|
|
14
|
-
function compileProperties(selector, props) {
|
|
15
|
+
function compileProperties$1(selector, props) {
|
|
15
16
|
let css = "{";
|
|
16
17
|
for (const key in props) {
|
|
17
18
|
if (key === "@keyframes" || key === "@media" || key === "@nest") continue;
|
|
18
19
|
const value = props[key], valueArr = Array.isArray(value) ? value : [value];
|
|
19
20
|
for (const v of valueArr)
|
|
20
|
-
css += toSnakeCase(key) + ":" + v + ";";
|
|
21
|
+
css += toSnakeCase$1(key) + ":" + v + ";";
|
|
21
22
|
}
|
|
22
23
|
return css === "{" ? "" : selector + css + "}";
|
|
23
24
|
}
|
|
@@ -26,21 +27,10 @@ function compileNestedRules(selector, props, context) {
|
|
|
26
27
|
let css = "";
|
|
27
28
|
for (const [_selector, _props] of Object.entries(props))
|
|
28
29
|
css += `
|
|
29
|
-
` + compileRule(_selector.replace(/&/g, selector), _props, context);
|
|
30
|
+
` + compileRule(_selector.replace(/\./g, `.${PREFIX}`).replace(/&/g, selector), _props, context);
|
|
30
31
|
return css;
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
let css = `@media ${query}{`;
|
|
34
|
-
for (const [selector, props] of Object.entries(rules2))
|
|
35
|
-
css += `
|
|
36
|
-
` + compileProperties(selector, props), props["@nest"] && (css += compileNestedRules(selector, props["@nest"], {
|
|
37
|
-
keyframes: {},
|
|
38
|
-
media: {}
|
|
39
|
-
}));
|
|
40
|
-
return css + `
|
|
41
|
-
}`;
|
|
42
|
-
}
|
|
43
|
-
function toSnakeCase(value) {
|
|
33
|
+
function toSnakeCase$1(value) {
|
|
44
34
|
return value.replace(/[A-Z]/g, (match) => "-" + match.toLowerCase());
|
|
45
35
|
}
|
|
46
36
|
function compilePalette(config) {
|
|
@@ -83,11 +73,50 @@ function compileHues(hues) {
|
|
|
83
73
|
}
|
|
84
74
|
return rules2;
|
|
85
75
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
76
|
+
function _mergeStyles(styles) {
|
|
77
|
+
const keyframes2 = {}, layers = {}, rules2 = {};
|
|
78
|
+
for (const s of styles)
|
|
79
|
+
if (s) {
|
|
80
|
+
Object.assign(keyframes2, s.keyframes);
|
|
81
|
+
for (const layerName in s.layers)
|
|
82
|
+
layers[layerName] || (layers[layerName] = {}), Object.assign(layers[layerName], s.layers[layerName]);
|
|
83
|
+
Object.assign(rules2, s.rules);
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
keyframes: keyframes2,
|
|
87
|
+
layers,
|
|
88
|
+
rules: rules2
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function _responsiveRule(rules2, _name, properties) {
|
|
92
|
+
const name = _name.replace(/\./g, "_");
|
|
93
|
+
rules2[`.${name}`] = properties, rules2[`.1\\:${name}`] = {
|
|
94
|
+
"@media": {
|
|
95
|
+
"screen and (min-width: 360px)": properties
|
|
96
|
+
}
|
|
97
|
+
}, rules2[`.2\\:${name}`] = {
|
|
98
|
+
"@media": {
|
|
99
|
+
"screen and (min-width: 600px)": properties
|
|
100
|
+
}
|
|
101
|
+
}, rules2[`.3\\:${name}`] = {
|
|
102
|
+
"@media": {
|
|
103
|
+
"screen and (min-width: 900px)": properties
|
|
104
|
+
}
|
|
105
|
+
}, rules2[`.4\\:${name}`] = {
|
|
106
|
+
"@media": {
|
|
107
|
+
"screen and (min-width: 1200px)": properties
|
|
108
|
+
}
|
|
109
|
+
}, rules2[`.5\\:${name}`] = {
|
|
110
|
+
"@media": {
|
|
111
|
+
"screen and (min-width: 1800px)": properties
|
|
112
|
+
}
|
|
113
|
+
}, rules2[`.6\\:${name}`] = {
|
|
114
|
+
"@media": {
|
|
115
|
+
"screen and (min-width: 2400px)": properties
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const varNames = {
|
|
91
120
|
avatar: {
|
|
92
121
|
distance: "--avatar-distance",
|
|
93
122
|
focusRing: {
|
|
@@ -315,6 +344,14 @@ const breadcrumbsRules = {
|
|
|
315
344
|
})
|
|
316
345
|
}
|
|
317
346
|
},
|
|
347
|
+
container: {
|
|
348
|
+
0: "--container-0",
|
|
349
|
+
1: "--container-1",
|
|
350
|
+
2: "--container-2",
|
|
351
|
+
3: "--container-3",
|
|
352
|
+
4: "--container-4",
|
|
353
|
+
5: "--container-5"
|
|
354
|
+
},
|
|
318
355
|
font: {
|
|
319
356
|
code: {
|
|
320
357
|
family: "--font-code-family",
|
|
@@ -383,6 +420,7 @@ const breadcrumbsRules = {
|
|
|
383
420
|
gap: "--input-gap",
|
|
384
421
|
padding: "--input-padding"
|
|
385
422
|
},
|
|
423
|
+
radius: Object.fromEntries(theme.RADIUS.map((radius2) => [radius2, `--radius-${radius2}`])),
|
|
386
424
|
space: Object.fromEntries(theme.SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`]))
|
|
387
425
|
};
|
|
388
426
|
function buildColorCardVarNames(props) {
|
|
@@ -706,6 +744,14 @@ const colorVars = {
|
|
|
706
744
|
}), {})
|
|
707
745
|
},
|
|
708
746
|
color: colorVars,
|
|
747
|
+
container: {
|
|
748
|
+
0: `var(${varNames.container[0]})`,
|
|
749
|
+
1: `var(${varNames.container[1]})`,
|
|
750
|
+
2: `var(${varNames.container[2]})`,
|
|
751
|
+
3: `var(${varNames.container[3]})`,
|
|
752
|
+
4: `var(${varNames.container[4]})`,
|
|
753
|
+
5: `var(${varNames.container[5]})`
|
|
754
|
+
},
|
|
709
755
|
font: {
|
|
710
756
|
code: {
|
|
711
757
|
family: `var(${varNames.font.code.family})`,
|
|
@@ -780,6 +826,7 @@ const colorVars = {
|
|
|
780
826
|
}
|
|
781
827
|
}
|
|
782
828
|
},
|
|
829
|
+
radius: Object.fromEntries(theme.RADIUS.map((radius2) => [radius2, `var(${varNames.radius[radius2]})`])),
|
|
783
830
|
space: Object.fromEntries(theme.SPACE.map((space) => [space, `var(${varNames.space[space]})`]))
|
|
784
831
|
};
|
|
785
832
|
function buildColorCardVars(props) {
|
|
@@ -925,36 +972,988 @@ function buildColorVariantVars(options) {
|
|
|
925
972
|
}
|
|
926
973
|
return vars2;
|
|
927
974
|
}
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
975
|
+
const util$s = {};
|
|
976
|
+
_responsiveRule(util$s, "border", {
|
|
977
|
+
border: `1px solid ${vars.color.border}`
|
|
978
|
+
});
|
|
979
|
+
_responsiveRule(util$s, "border-t", {
|
|
980
|
+
borderTop: `1px solid ${vars.color.border}`
|
|
981
|
+
});
|
|
982
|
+
_responsiveRule(util$s, "border-r", {
|
|
983
|
+
borderRight: `1px solid ${vars.color.border}`
|
|
984
|
+
});
|
|
985
|
+
_responsiveRule(util$s, "border-b", {
|
|
986
|
+
borderBottom: `1px solid ${vars.color.border}`
|
|
987
|
+
});
|
|
988
|
+
_responsiveRule(util$s, "border-l", {
|
|
989
|
+
borderLeft: `1px solid ${vars.color.border}`
|
|
990
|
+
});
|
|
991
|
+
const borderStyle = {
|
|
992
|
+
layers: {
|
|
993
|
+
util: util$s
|
|
994
|
+
}
|
|
995
|
+
}, util$r = {};
|
|
996
|
+
_responsiveRule(util$r, "block", {
|
|
997
|
+
"@nest": {
|
|
998
|
+
"&:not([hidden])": {
|
|
999
|
+
display: "block"
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
_responsiveRule(util$r, "flex", {
|
|
1004
|
+
"@nest": {
|
|
1005
|
+
"&:not([hidden])": {
|
|
1006
|
+
display: "flex"
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1010
|
+
_responsiveRule(util$r, "grid", {
|
|
1011
|
+
"@nest": {
|
|
1012
|
+
"&:not([hidden])": {
|
|
1013
|
+
display: "grid"
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
_responsiveRule(util$r, "inline-block", {
|
|
1018
|
+
"@nest": {
|
|
1019
|
+
"&:not([hidden])": {
|
|
1020
|
+
display: "inline-block"
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
_responsiveRule(util$r, "inline-flex", {
|
|
1025
|
+
"@nest": {
|
|
1026
|
+
"&:not([hidden])": {
|
|
1027
|
+
display: "inline-flex"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
_responsiveRule(util$r, "inline-grid", {
|
|
1032
|
+
"@nest": {
|
|
1033
|
+
"&:not([hidden])": {
|
|
1034
|
+
display: "inline-grid"
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
_responsiveRule(util$r, "none", {
|
|
1039
|
+
"@nest": {
|
|
1040
|
+
"&:not([hidden])": {
|
|
1041
|
+
display: "none"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
const displayStyle = {
|
|
1046
|
+
layers: {
|
|
1047
|
+
util: util$r
|
|
1048
|
+
}
|
|
1049
|
+
}, util$q = {};
|
|
1050
|
+
_responsiveRule(util$q, "flex-align-flex-start", {
|
|
1051
|
+
alignItems: "flex-start"
|
|
1052
|
+
});
|
|
1053
|
+
_responsiveRule(util$q, "flex-align-flex-end", {
|
|
1054
|
+
alignItems: "flex-end"
|
|
1055
|
+
});
|
|
1056
|
+
_responsiveRule(util$q, "flex-align-center", {
|
|
1057
|
+
alignItems: "center"
|
|
1058
|
+
});
|
|
1059
|
+
_responsiveRule(util$q, "flex-align-stretch", {
|
|
1060
|
+
alignItems: "stretch"
|
|
1061
|
+
});
|
|
1062
|
+
_responsiveRule(util$q, "flex-align-baseline", {
|
|
1063
|
+
alignItems: "baseline"
|
|
1064
|
+
});
|
|
1065
|
+
const flexAlignStyle = {
|
|
1066
|
+
layers: {
|
|
1067
|
+
util: util$q
|
|
1068
|
+
}
|
|
1069
|
+
}, util$p = {};
|
|
1070
|
+
_responsiveRule(util$p, "f-row", {
|
|
1071
|
+
flexDirection: "row"
|
|
1072
|
+
});
|
|
1073
|
+
_responsiveRule(util$p, "f-column", {
|
|
1074
|
+
flexDirection: "column"
|
|
1075
|
+
});
|
|
1076
|
+
const flexDirectionStyle = {
|
|
1077
|
+
layers: {
|
|
1078
|
+
util: util$p
|
|
1079
|
+
}
|
|
1080
|
+
}, util$o = {};
|
|
1081
|
+
_responsiveRule(util$o, "flex-justify-flex-start", {
|
|
1082
|
+
justifyContent: "flex-start"
|
|
1083
|
+
});
|
|
1084
|
+
_responsiveRule(util$o, "flex-justify-flex-end", {
|
|
1085
|
+
justifyContent: "flex-end"
|
|
1086
|
+
});
|
|
1087
|
+
_responsiveRule(util$o, "flex-justify-center", {
|
|
1088
|
+
justifyContent: "center"
|
|
1089
|
+
});
|
|
1090
|
+
_responsiveRule(util$o, "flex-justify-between", {
|
|
1091
|
+
justifyContent: "space-between"
|
|
1092
|
+
});
|
|
1093
|
+
_responsiveRule(util$o, "flex-justify-around", {
|
|
1094
|
+
justifyContent: "space-around"
|
|
1095
|
+
});
|
|
1096
|
+
_responsiveRule(util$o, "flex-justify-evenly", {
|
|
1097
|
+
justifyContent: "space-evenly"
|
|
1098
|
+
});
|
|
1099
|
+
const flexJustifyStyle = {
|
|
1100
|
+
layers: {
|
|
1101
|
+
util: util$o
|
|
1102
|
+
}
|
|
1103
|
+
}, util$n = {};
|
|
1104
|
+
_responsiveRule(util$n, "flex-nowrap", {
|
|
1105
|
+
flexWrap: "nowrap"
|
|
1106
|
+
});
|
|
1107
|
+
_responsiveRule(util$n, "flex-wrap", {
|
|
1108
|
+
flexWrap: "wrap"
|
|
1109
|
+
});
|
|
1110
|
+
_responsiveRule(util$n, "flex-wrap-reverse", {
|
|
1111
|
+
flexWrap: "wrap-reverse"
|
|
1112
|
+
});
|
|
1113
|
+
const flexWrapStyle = {
|
|
1114
|
+
layers: {
|
|
1115
|
+
util: util$n
|
|
1116
|
+
}
|
|
1117
|
+
}, util$m = {};
|
|
1118
|
+
_responsiveRule(util$m, "f-none", {
|
|
1119
|
+
flex: "none"
|
|
1120
|
+
});
|
|
1121
|
+
_responsiveRule(util$m, "f-auto", {
|
|
1122
|
+
flex: "auto"
|
|
1123
|
+
});
|
|
1124
|
+
_responsiveRule(util$m, "f-initial", {
|
|
1125
|
+
flex: "initial"
|
|
1126
|
+
});
|
|
1127
|
+
_responsiveRule(util$m, "f-1", {
|
|
1128
|
+
flex: 1
|
|
1129
|
+
});
|
|
1130
|
+
_responsiveRule(util$m, "f-2", {
|
|
1131
|
+
flex: 2
|
|
1132
|
+
});
|
|
1133
|
+
_responsiveRule(util$m, "f-3", {
|
|
1134
|
+
flex: 3
|
|
1135
|
+
});
|
|
1136
|
+
_responsiveRule(util$m, "f-4", {
|
|
1137
|
+
flex: 4
|
|
1138
|
+
});
|
|
1139
|
+
_responsiveRule(util$m, "f-5", {
|
|
1140
|
+
flex: 5
|
|
1141
|
+
});
|
|
1142
|
+
_responsiveRule(util$m, "f-6", {
|
|
1143
|
+
flex: 6
|
|
1144
|
+
});
|
|
1145
|
+
_responsiveRule(util$m, "f-7", {
|
|
1146
|
+
flex: 7
|
|
1147
|
+
});
|
|
1148
|
+
_responsiveRule(util$m, "f-8", {
|
|
1149
|
+
flex: 8
|
|
1150
|
+
});
|
|
1151
|
+
_responsiveRule(util$m, "f-9", {
|
|
1152
|
+
flex: 9
|
|
1153
|
+
});
|
|
1154
|
+
_responsiveRule(util$m, "f-10", {
|
|
1155
|
+
flex: 10
|
|
1156
|
+
});
|
|
1157
|
+
_responsiveRule(util$m, "f-11", {
|
|
1158
|
+
flex: 11
|
|
1159
|
+
});
|
|
1160
|
+
_responsiveRule(util$m, "f-12", {
|
|
1161
|
+
flex: 12
|
|
1162
|
+
});
|
|
1163
|
+
const flexStyle = {
|
|
1164
|
+
layers: {
|
|
1165
|
+
util: util$m
|
|
1166
|
+
}
|
|
1167
|
+
}, rules$3 = {
|
|
1168
|
+
".font": {
|
|
1169
|
+
// 'position': 'relative',
|
|
1170
|
+
fontFamily: "var(--font-family)",
|
|
1171
|
+
fontFeatureSettings: "var(--font-feature-settings)",
|
|
1172
|
+
fontSize: "var(--font-size)",
|
|
1173
|
+
lineHeight: "var(--font-line-height)",
|
|
1174
|
+
letterSpacing: "var(--font-letter-spacing)",
|
|
1175
|
+
fontWeight: "var(--font-weight)",
|
|
1176
|
+
transform: "translateY(var(--font-descender-height))",
|
|
1177
|
+
padding: "1px 0",
|
|
1178
|
+
margin: "0",
|
|
1179
|
+
"--font-icon-offset": "calc(((var(--font-line-height) - var(--font-ascender-height) - var(--font-descender-height)) - var(--font-icon-size)) / 2)",
|
|
1180
|
+
"--font-weight": "var(--font-weight-regular)",
|
|
1181
|
+
"@nest": {
|
|
1182
|
+
"&:before": {
|
|
1183
|
+
content: '""',
|
|
1184
|
+
display: "block",
|
|
1185
|
+
height: 0,
|
|
1186
|
+
marginTop: "calc((0px - var(--font-ascender-height) - var(--font-descender-height)) - 1px)"
|
|
1187
|
+
},
|
|
1188
|
+
"&:after": {
|
|
1189
|
+
content: '""',
|
|
1190
|
+
display: "block",
|
|
1191
|
+
height: 0,
|
|
1192
|
+
marginBottom: "-1px"
|
|
1193
|
+
},
|
|
1194
|
+
"& svg": {
|
|
1195
|
+
// Certain popular CSS libraries changes the defaults for SVG display
|
|
1196
|
+
// Make sure SVGs are rendered as inline elements
|
|
1197
|
+
display: "inline"
|
|
1198
|
+
},
|
|
1199
|
+
// todo
|
|
1200
|
+
// '& svg:not([data-sanity-icon])': {
|
|
1201
|
+
// fontSize: 'calc(var(--custom-icon-size) / 16 * 1rem)',
|
|
1202
|
+
// margin: 'var(--custom-icon-offset)',
|
|
1203
|
+
// },
|
|
1204
|
+
"& [data-sanity-icon]": {
|
|
1205
|
+
fontSize: "var(--font-icon-size)",
|
|
1206
|
+
margin: "var(--font-icon-offset)",
|
|
1207
|
+
vectorEffect: "non-scaling-stroke"
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
".font-regular": {
|
|
1212
|
+
"--font-weight": "var(--font-weight-regular)"
|
|
1213
|
+
},
|
|
1214
|
+
".font-medium": {
|
|
1215
|
+
"--font-weight": "var(--font-weight-medium)"
|
|
1216
|
+
},
|
|
1217
|
+
".font-semibold": {
|
|
1218
|
+
"--font-weight": "var(--font-weight-semibold)"
|
|
1219
|
+
},
|
|
1220
|
+
".font-bold": {
|
|
1221
|
+
"--font-weight": "var(--font-weight-bold)"
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
_responsiveRule(rules$3, "text-align-initial", {
|
|
1225
|
+
textAlign: "initial"
|
|
1226
|
+
});
|
|
1227
|
+
_responsiveRule(rules$3, "text-align-left", {
|
|
1228
|
+
textAlign: "left"
|
|
1229
|
+
});
|
|
1230
|
+
_responsiveRule(rules$3, "text-align-center", {
|
|
1231
|
+
textAlign: "center"
|
|
1232
|
+
});
|
|
1233
|
+
_responsiveRule(rules$3, "text-align-right", {
|
|
1234
|
+
textAlign: "right"
|
|
1235
|
+
});
|
|
1236
|
+
_responsiveRule(rules$3, "text-align-justify", {
|
|
1237
|
+
textAlign: "justify"
|
|
1238
|
+
});
|
|
1239
|
+
const fontStyle = {
|
|
1240
|
+
layers: {
|
|
1241
|
+
primitive: rules$3
|
|
1242
|
+
}
|
|
1243
|
+
}, util$l = {};
|
|
1244
|
+
for (const space of theme.SPACE)
|
|
1245
|
+
_responsiveRule(util$l, `g-${space}`, {
|
|
1246
|
+
gap: vars.space[space]
|
|
1247
|
+
});
|
|
1248
|
+
for (const space of theme.SPACE)
|
|
1249
|
+
_responsiveRule(util$l, `gx-${space}`, {
|
|
1250
|
+
columnGap: vars.space[space]
|
|
1251
|
+
});
|
|
1252
|
+
for (const space of theme.SPACE)
|
|
1253
|
+
_responsiveRule(util$l, `gy-${space}`, {
|
|
1254
|
+
rowGap: vars.space[space]
|
|
1255
|
+
});
|
|
1256
|
+
const gapStyle = {
|
|
1257
|
+
layers: {
|
|
1258
|
+
util: util$l
|
|
1259
|
+
}
|
|
1260
|
+
}, util$k = {};
|
|
1261
|
+
_responsiveRule(util$k, "auto-cols-auto", {
|
|
1262
|
+
gridAutoColumns: "auto"
|
|
1263
|
+
});
|
|
1264
|
+
_responsiveRule(util$k, "auto-cols-min", {
|
|
1265
|
+
gridAutoColumns: "min-content"
|
|
1266
|
+
});
|
|
1267
|
+
_responsiveRule(util$k, "auto-cols-max", {
|
|
1268
|
+
gridAutoColumns: "max-content"
|
|
1269
|
+
});
|
|
1270
|
+
_responsiveRule(util$k, "auto-cols-fr", {
|
|
1271
|
+
gridAutoColumns: "minmax(0, 1fr)"
|
|
1272
|
+
});
|
|
1273
|
+
const gridAutoColumnsStyle = {
|
|
1274
|
+
layers: {
|
|
1275
|
+
util: util$k
|
|
1276
|
+
}
|
|
1277
|
+
}, util$j = {};
|
|
1278
|
+
_responsiveRule(util$j, "auto-flow-row", {
|
|
1279
|
+
gridAutoFlow: "row"
|
|
1280
|
+
});
|
|
1281
|
+
_responsiveRule(util$j, "auto-flow-column", {
|
|
1282
|
+
gridAutoFlow: "column"
|
|
1283
|
+
});
|
|
1284
|
+
_responsiveRule(util$j, "auto-flow-row-dense", {
|
|
1285
|
+
gridAutoFlow: "row dense"
|
|
1286
|
+
});
|
|
1287
|
+
_responsiveRule(util$j, "auto-flow-column-dense", {
|
|
1288
|
+
gridAutoFlow: "column dense"
|
|
1289
|
+
});
|
|
1290
|
+
const gridAutoFlowStyle = {
|
|
1291
|
+
layers: {
|
|
1292
|
+
util: util$j
|
|
1293
|
+
}
|
|
1294
|
+
}, util$i = {};
|
|
1295
|
+
_responsiveRule(util$i, "auto-rows-auto", {
|
|
1296
|
+
gridAutoRows: "auto"
|
|
1297
|
+
});
|
|
1298
|
+
_responsiveRule(util$i, "auto-rows-min", {
|
|
1299
|
+
gridAutoRows: "min-content"
|
|
1300
|
+
});
|
|
1301
|
+
_responsiveRule(util$i, "auto-rows-max", {
|
|
1302
|
+
gridAutoRows: "max-content"
|
|
1303
|
+
});
|
|
1304
|
+
_responsiveRule(util$i, "auto-rows-fr", {
|
|
1305
|
+
gridAutoRows: "minmax(0, 1fr)"
|
|
1306
|
+
});
|
|
1307
|
+
const gridAutoRowsStyle = {
|
|
1308
|
+
layers: {
|
|
1309
|
+
util: util$i
|
|
1310
|
+
}
|
|
1311
|
+
}, util$h = {};
|
|
1312
|
+
_responsiveRule(util$h, "cols-1", {
|
|
1313
|
+
gridTemplateColumns: "repeat(1, 1fr)"
|
|
1314
|
+
});
|
|
1315
|
+
_responsiveRule(util$h, "cols-2", {
|
|
1316
|
+
gridTemplateColumns: "repeat(2, 1fr)"
|
|
1317
|
+
});
|
|
1318
|
+
_responsiveRule(util$h, "cols-3", {
|
|
1319
|
+
gridTemplateColumns: "repeat(3, 1fr)"
|
|
1320
|
+
});
|
|
1321
|
+
_responsiveRule(util$h, "cols-4", {
|
|
1322
|
+
gridTemplateColumns: "repeat(4, 1fr)"
|
|
1323
|
+
});
|
|
1324
|
+
_responsiveRule(util$h, "cols-5", {
|
|
1325
|
+
gridTemplateColumns: "repeat(5, 1fr)"
|
|
1326
|
+
});
|
|
1327
|
+
_responsiveRule(util$h, "cols-6", {
|
|
1328
|
+
gridTemplateColumns: "repeat(6, 1fr)"
|
|
1329
|
+
});
|
|
1330
|
+
_responsiveRule(util$h, "cols-7", {
|
|
1331
|
+
gridTemplateColumns: "repeat(7, 1fr)"
|
|
1332
|
+
});
|
|
1333
|
+
_responsiveRule(util$h, "cols-8", {
|
|
1334
|
+
gridTemplateColumns: "repeat(8, 1fr)"
|
|
1335
|
+
});
|
|
1336
|
+
_responsiveRule(util$h, "cols-9", {
|
|
1337
|
+
gridTemplateColumns: "repeat(9, 1fr)"
|
|
1338
|
+
});
|
|
1339
|
+
_responsiveRule(util$h, "cols-10", {
|
|
1340
|
+
gridTemplateColumns: "repeat(10, 1fr)"
|
|
1341
|
+
});
|
|
1342
|
+
_responsiveRule(util$h, "cols-12", {
|
|
1343
|
+
gridTemplateColumns: "repeat(12, 1fr)"
|
|
1344
|
+
});
|
|
1345
|
+
const gridColumnsStyle = {
|
|
1346
|
+
layers: {
|
|
1347
|
+
util: util$h
|
|
1348
|
+
}
|
|
1349
|
+
}, util$g = {};
|
|
1350
|
+
_responsiveRule(util$g, "rows-1", {
|
|
1351
|
+
gridTemplateRows: "repeat(1, 1fr)"
|
|
1352
|
+
});
|
|
1353
|
+
_responsiveRule(util$g, "rows-2", {
|
|
1354
|
+
gridTemplateRows: "repeat(2, 1fr)"
|
|
1355
|
+
});
|
|
1356
|
+
_responsiveRule(util$g, "rows-3", {
|
|
1357
|
+
gridTemplateRows: "repeat(3, 1fr)"
|
|
1358
|
+
});
|
|
1359
|
+
_responsiveRule(util$g, "rows-4", {
|
|
1360
|
+
gridTemplateRows: "repeat(4, 1fr)"
|
|
1361
|
+
});
|
|
1362
|
+
_responsiveRule(util$g, "rows-5", {
|
|
1363
|
+
gridTemplateRows: "repeat(5, 1fr)"
|
|
1364
|
+
});
|
|
1365
|
+
_responsiveRule(util$g, "rows-6", {
|
|
1366
|
+
gridTemplateRows: "repeat(6, 1fr)"
|
|
1367
|
+
});
|
|
1368
|
+
_responsiveRule(util$g, "rows-7", {
|
|
1369
|
+
gridTemplateRows: "repeat(7, 1fr)"
|
|
1370
|
+
});
|
|
1371
|
+
_responsiveRule(util$g, "rows-8", {
|
|
1372
|
+
gridTemplateRows: "repeat(8, 1fr)"
|
|
1373
|
+
});
|
|
1374
|
+
_responsiveRule(util$g, "rows-9", {
|
|
1375
|
+
gridTemplateRows: "repeat(9, 1fr)"
|
|
1376
|
+
});
|
|
1377
|
+
_responsiveRule(util$g, "rows-10", {
|
|
1378
|
+
gridTemplateRows: "repeat(10, 1fr)"
|
|
1379
|
+
});
|
|
1380
|
+
_responsiveRule(util$g, "rows-12", {
|
|
1381
|
+
gridTemplateRows: "repeat(12, 1fr)"
|
|
1382
|
+
});
|
|
1383
|
+
const gridRowsStyle = {
|
|
1384
|
+
layers: {
|
|
1385
|
+
util: util$g
|
|
1386
|
+
}
|
|
1387
|
+
}, util$f = {};
|
|
1388
|
+
_responsiveRule(util$f, "col-auto", {
|
|
1389
|
+
gridColumn: "auto"
|
|
1390
|
+
});
|
|
1391
|
+
_responsiveRule(util$f, "col-full", {
|
|
1392
|
+
gridColumn: "1 / -1"
|
|
1393
|
+
});
|
|
1394
|
+
_responsiveRule(util$f, "col-1", {
|
|
1395
|
+
gridColumn: "span 1 / span 1"
|
|
1396
|
+
});
|
|
1397
|
+
_responsiveRule(util$f, "col-2", {
|
|
1398
|
+
gridColumn: "span 2 / span 2"
|
|
1399
|
+
});
|
|
1400
|
+
_responsiveRule(util$f, "col-3", {
|
|
1401
|
+
gridColumn: "span 3 / span 3"
|
|
1402
|
+
});
|
|
1403
|
+
_responsiveRule(util$f, "col-4", {
|
|
1404
|
+
gridColumn: "span 4 / span 4"
|
|
1405
|
+
});
|
|
1406
|
+
_responsiveRule(util$f, "col-5", {
|
|
1407
|
+
gridColumn: "span 5 / span 5"
|
|
1408
|
+
});
|
|
1409
|
+
_responsiveRule(util$f, "col-6", {
|
|
1410
|
+
gridColumn: "span 6 / span 6"
|
|
1411
|
+
});
|
|
1412
|
+
_responsiveRule(util$f, "col-7", {
|
|
1413
|
+
gridColumn: "span 7 / span 7"
|
|
1414
|
+
});
|
|
1415
|
+
_responsiveRule(util$f, "col-8", {
|
|
1416
|
+
gridColumn: "span 8 / span 8"
|
|
1417
|
+
});
|
|
1418
|
+
_responsiveRule(util$f, "col-9", {
|
|
1419
|
+
gridColumn: "span 9 / span 9"
|
|
1420
|
+
});
|
|
1421
|
+
_responsiveRule(util$f, "col-10", {
|
|
1422
|
+
gridColumn: "span 10 / span 10"
|
|
1423
|
+
});
|
|
1424
|
+
_responsiveRule(util$f, "col-12", {
|
|
1425
|
+
gridColumn: "span 12 / span 12"
|
|
1426
|
+
});
|
|
1427
|
+
const gridColumnStyle = {
|
|
1428
|
+
layers: {
|
|
1429
|
+
util: util$f
|
|
1430
|
+
}
|
|
1431
|
+
}, util$e = {};
|
|
1432
|
+
_responsiveRule(util$e, "col-end-auto", {
|
|
1433
|
+
gridColumnEnd: "auto"
|
|
1434
|
+
});
|
|
1435
|
+
_responsiveRule(util$e, "col-end-1", {
|
|
1436
|
+
gridColumnEnd: "1"
|
|
1437
|
+
});
|
|
1438
|
+
_responsiveRule(util$e, "col-end-2", {
|
|
1439
|
+
gridColumnEnd: "2"
|
|
1440
|
+
});
|
|
1441
|
+
_responsiveRule(util$e, "col-end-3", {
|
|
1442
|
+
gridColumnEnd: "3"
|
|
1443
|
+
});
|
|
1444
|
+
_responsiveRule(util$e, "col-end-4", {
|
|
1445
|
+
gridColumnEnd: "4"
|
|
1446
|
+
});
|
|
1447
|
+
_responsiveRule(util$e, "col-end-5", {
|
|
1448
|
+
gridColumnEnd: "5"
|
|
1449
|
+
});
|
|
1450
|
+
_responsiveRule(util$e, "col-end-6", {
|
|
1451
|
+
gridColumnEnd: "6"
|
|
1452
|
+
});
|
|
1453
|
+
_responsiveRule(util$e, "col-end-7", {
|
|
1454
|
+
gridColumnEnd: "7"
|
|
1455
|
+
});
|
|
1456
|
+
_responsiveRule(util$e, "col-end-8", {
|
|
1457
|
+
gridColumnEnd: "8"
|
|
1458
|
+
});
|
|
1459
|
+
_responsiveRule(util$e, "col-end-9", {
|
|
1460
|
+
gridColumnEnd: "9"
|
|
1461
|
+
});
|
|
1462
|
+
_responsiveRule(util$e, "col-end-10", {
|
|
1463
|
+
gridColumnEnd: "10"
|
|
1464
|
+
});
|
|
1465
|
+
_responsiveRule(util$e, "col-end-11", {
|
|
1466
|
+
gridColumnEnd: "11"
|
|
1467
|
+
});
|
|
1468
|
+
_responsiveRule(util$e, "col-end-12", {
|
|
1469
|
+
gridColumnEnd: "12"
|
|
1470
|
+
});
|
|
1471
|
+
const gridColumnEndStyle = {
|
|
1472
|
+
layers: {
|
|
1473
|
+
util: util$e
|
|
1474
|
+
}
|
|
1475
|
+
}, util$d = {};
|
|
1476
|
+
_responsiveRule(util$d, "col-start-auto", {
|
|
1477
|
+
gridColumnStart: "auto"
|
|
1478
|
+
});
|
|
1479
|
+
_responsiveRule(util$d, "col-start-1", {
|
|
1480
|
+
gridColumnStart: "1"
|
|
1481
|
+
});
|
|
1482
|
+
_responsiveRule(util$d, "col-start-2", {
|
|
1483
|
+
gridColumnStart: "2"
|
|
1484
|
+
});
|
|
1485
|
+
_responsiveRule(util$d, "col-start-3", {
|
|
1486
|
+
gridColumnStart: "3"
|
|
1487
|
+
});
|
|
1488
|
+
_responsiveRule(util$d, "col-start-4", {
|
|
1489
|
+
gridColumnStart: "4"
|
|
1490
|
+
});
|
|
1491
|
+
_responsiveRule(util$d, "col-start-5", {
|
|
1492
|
+
gridColumnStart: "5"
|
|
1493
|
+
});
|
|
1494
|
+
_responsiveRule(util$d, "col-start-6", {
|
|
1495
|
+
gridColumnStart: "6"
|
|
1496
|
+
});
|
|
1497
|
+
_responsiveRule(util$d, "col-start-7", {
|
|
1498
|
+
gridColumnStart: "7"
|
|
1499
|
+
});
|
|
1500
|
+
_responsiveRule(util$d, "col-start-8", {
|
|
1501
|
+
gridColumnStart: "8"
|
|
1502
|
+
});
|
|
1503
|
+
_responsiveRule(util$d, "col-start-9", {
|
|
1504
|
+
gridColumnStart: "9"
|
|
1505
|
+
});
|
|
1506
|
+
_responsiveRule(util$d, "col-start-10", {
|
|
1507
|
+
gridColumnStart: "10"
|
|
1508
|
+
});
|
|
1509
|
+
_responsiveRule(util$d, "col-start-11", {
|
|
1510
|
+
gridColumnStart: "11"
|
|
1511
|
+
});
|
|
1512
|
+
_responsiveRule(util$d, "col-start-12", {
|
|
1513
|
+
gridColumnStart: "12"
|
|
1514
|
+
});
|
|
1515
|
+
const gridColumnStartStyle = {
|
|
1516
|
+
layers: {
|
|
1517
|
+
util: util$d
|
|
1518
|
+
}
|
|
1519
|
+
}, util$c = {};
|
|
1520
|
+
_responsiveRule(util$c, "row-auto", {
|
|
1521
|
+
gridRow: "auto"
|
|
1522
|
+
});
|
|
1523
|
+
_responsiveRule(util$c, "row-full", {
|
|
1524
|
+
gridRow: "1 / -1"
|
|
1525
|
+
});
|
|
1526
|
+
_responsiveRule(util$c, "row-1", {
|
|
1527
|
+
gridRow: "span 1 / span 1"
|
|
1528
|
+
});
|
|
1529
|
+
_responsiveRule(util$c, "row-2", {
|
|
1530
|
+
gridRow: "span 2 / span 2"
|
|
1531
|
+
});
|
|
1532
|
+
_responsiveRule(util$c, "row-3", {
|
|
1533
|
+
gridRow: "span 3 / span 3"
|
|
1534
|
+
});
|
|
1535
|
+
_responsiveRule(util$c, "row-4", {
|
|
1536
|
+
gridRow: "span 4 / span 4"
|
|
1537
|
+
});
|
|
1538
|
+
_responsiveRule(util$c, "row-5", {
|
|
1539
|
+
gridRow: "span 5 / span 5"
|
|
1540
|
+
});
|
|
1541
|
+
_responsiveRule(util$c, "row-6", {
|
|
1542
|
+
gridRow: "span 6 / span 6"
|
|
1543
|
+
});
|
|
1544
|
+
_responsiveRule(util$c, "row-7", {
|
|
1545
|
+
gridRow: "span 7 / span 7"
|
|
1546
|
+
});
|
|
1547
|
+
_responsiveRule(util$c, "row-8", {
|
|
1548
|
+
gridRow: "span 8 / span 8"
|
|
1549
|
+
});
|
|
1550
|
+
_responsiveRule(util$c, "row-9", {
|
|
1551
|
+
gridRow: "span 9 / span 9"
|
|
1552
|
+
});
|
|
1553
|
+
_responsiveRule(util$c, "row-10", {
|
|
1554
|
+
gridRow: "span 10 / span 10"
|
|
1555
|
+
});
|
|
1556
|
+
_responsiveRule(util$c, "row-12", {
|
|
1557
|
+
gridRow: "span 12 / span 12"
|
|
1558
|
+
});
|
|
1559
|
+
const gridRowStyle = {
|
|
1560
|
+
layers: {
|
|
1561
|
+
util: util$c
|
|
1562
|
+
}
|
|
1563
|
+
}, util$b = {};
|
|
1564
|
+
_responsiveRule(util$b, "row-end-auto", {
|
|
1565
|
+
gridRowEnd: "auto"
|
|
1566
|
+
});
|
|
1567
|
+
_responsiveRule(util$b, "row-end-1", {
|
|
1568
|
+
gridRowEnd: "1"
|
|
1569
|
+
});
|
|
1570
|
+
_responsiveRule(util$b, "row-end-2", {
|
|
1571
|
+
gridRowEnd: "2"
|
|
1572
|
+
});
|
|
1573
|
+
_responsiveRule(util$b, "row-end-3", {
|
|
1574
|
+
gridRowEnd: "3"
|
|
1575
|
+
});
|
|
1576
|
+
_responsiveRule(util$b, "row-end-4", {
|
|
1577
|
+
gridRowEnd: "4"
|
|
1578
|
+
});
|
|
1579
|
+
_responsiveRule(util$b, "row-end-5", {
|
|
1580
|
+
gridRowEnd: "5"
|
|
1581
|
+
});
|
|
1582
|
+
_responsiveRule(util$b, "row-end-6", {
|
|
1583
|
+
gridRowEnd: "6"
|
|
1584
|
+
});
|
|
1585
|
+
_responsiveRule(util$b, "row-end-7", {
|
|
1586
|
+
gridRowEnd: "7"
|
|
1587
|
+
});
|
|
1588
|
+
_responsiveRule(util$b, "row-end-8", {
|
|
1589
|
+
gridRowEnd: "8"
|
|
1590
|
+
});
|
|
1591
|
+
_responsiveRule(util$b, "row-end-9", {
|
|
1592
|
+
gridRowEnd: "9"
|
|
1593
|
+
});
|
|
1594
|
+
_responsiveRule(util$b, "row-end-10", {
|
|
1595
|
+
gridRowEnd: "10"
|
|
1596
|
+
});
|
|
1597
|
+
_responsiveRule(util$b, "row-end-11", {
|
|
1598
|
+
gridRowEnd: "11"
|
|
1599
|
+
});
|
|
1600
|
+
_responsiveRule(util$b, "row-end-12", {
|
|
1601
|
+
gridRowEnd: "12"
|
|
1602
|
+
});
|
|
1603
|
+
const gridRowEndStyle = {
|
|
1604
|
+
layers: {
|
|
1605
|
+
util: util$b
|
|
1606
|
+
}
|
|
1607
|
+
}, util$a = {};
|
|
1608
|
+
_responsiveRule(util$a, "row-start-auto", {
|
|
1609
|
+
gridRowStart: "auto"
|
|
1610
|
+
});
|
|
1611
|
+
_responsiveRule(util$a, "row-start-1", {
|
|
1612
|
+
gridRowStart: "1"
|
|
1613
|
+
});
|
|
1614
|
+
_responsiveRule(util$a, "row-start-2", {
|
|
1615
|
+
gridRowStart: "2"
|
|
1616
|
+
});
|
|
1617
|
+
_responsiveRule(util$a, "row-start-3", {
|
|
1618
|
+
gridRowStart: "3"
|
|
1619
|
+
});
|
|
1620
|
+
_responsiveRule(util$a, "row-start-4", {
|
|
1621
|
+
gridRowStart: "4"
|
|
1622
|
+
});
|
|
1623
|
+
_responsiveRule(util$a, "row-start-5", {
|
|
1624
|
+
gridRowStart: "5"
|
|
1625
|
+
});
|
|
1626
|
+
_responsiveRule(util$a, "row-start-6", {
|
|
1627
|
+
gridRowStart: "6"
|
|
1628
|
+
});
|
|
1629
|
+
_responsiveRule(util$a, "row-start-7", {
|
|
1630
|
+
gridRowStart: "7"
|
|
1631
|
+
});
|
|
1632
|
+
_responsiveRule(util$a, "row-start-8", {
|
|
1633
|
+
gridRowStart: "8"
|
|
1634
|
+
});
|
|
1635
|
+
_responsiveRule(util$a, "row-start-9", {
|
|
1636
|
+
gridRowStart: "9"
|
|
1637
|
+
});
|
|
1638
|
+
_responsiveRule(util$a, "row-start-10", {
|
|
1639
|
+
gridRowStart: "10"
|
|
1640
|
+
});
|
|
1641
|
+
_responsiveRule(util$a, "row-start-11", {
|
|
1642
|
+
gridRowStart: "11"
|
|
1643
|
+
});
|
|
1644
|
+
_responsiveRule(util$a, "row-start-12", {
|
|
1645
|
+
gridRowStart: "12"
|
|
1646
|
+
});
|
|
1647
|
+
const gridRowStartStyle = {
|
|
1648
|
+
layers: {
|
|
1649
|
+
util: util$a
|
|
1650
|
+
}
|
|
1651
|
+
}, util$9 = {};
|
|
1652
|
+
_responsiveRule(util$9, "h-fill", {
|
|
1653
|
+
height: "100%"
|
|
1654
|
+
});
|
|
1655
|
+
_responsiveRule(util$9, "h-stretch", {
|
|
1656
|
+
height: "stretch"
|
|
1657
|
+
});
|
|
1658
|
+
const heightStyle = {
|
|
1659
|
+
layers: {
|
|
1660
|
+
util: util$9
|
|
1661
|
+
}
|
|
1662
|
+
}, util$8 = {};
|
|
1663
|
+
_responsiveRule(util$8, "inset-0", {
|
|
1664
|
+
top: 0,
|
|
1665
|
+
left: 0,
|
|
1666
|
+
right: 0,
|
|
1667
|
+
bottom: 0
|
|
1668
|
+
});
|
|
1669
|
+
_responsiveRule(util$8, "top-0", {
|
|
1670
|
+
top: 0
|
|
1671
|
+
});
|
|
1672
|
+
_responsiveRule(util$8, "right-0", {
|
|
1673
|
+
right: 0
|
|
1674
|
+
});
|
|
1675
|
+
_responsiveRule(util$8, "bottom-0", {
|
|
1676
|
+
bottom: 0
|
|
1677
|
+
});
|
|
1678
|
+
_responsiveRule(util$8, "left-0", {
|
|
1679
|
+
left: 0
|
|
1680
|
+
});
|
|
1681
|
+
const insetStyle = {
|
|
1682
|
+
layers: {
|
|
1683
|
+
util: util$8
|
|
1684
|
+
}
|
|
1685
|
+
}, util$7 = {};
|
|
1686
|
+
for (const space of theme.SPACE)
|
|
1687
|
+
_responsiveRule(util$7, `m-${space}`, {
|
|
1688
|
+
margin: vars.space[space]
|
|
1689
|
+
});
|
|
1690
|
+
for (const space of theme.SPACE)
|
|
1691
|
+
_responsiveRule(util$7, `mx-${space}`, {
|
|
1692
|
+
marginLeft: vars.space[space],
|
|
1693
|
+
marginRight: vars.space[space]
|
|
1694
|
+
});
|
|
1695
|
+
for (const space of theme.SPACE)
|
|
1696
|
+
_responsiveRule(util$7, `my-${space}`, {
|
|
1697
|
+
marginTop: vars.space[space],
|
|
1698
|
+
marginBottom: vars.space[space]
|
|
1699
|
+
});
|
|
1700
|
+
for (const space of theme.SPACE)
|
|
1701
|
+
_responsiveRule(util$7, `mt-${space}`, {
|
|
1702
|
+
marginTop: vars.space[space]
|
|
1703
|
+
});
|
|
1704
|
+
for (const space of theme.SPACE)
|
|
1705
|
+
_responsiveRule(util$7, `mr-${space}`, {
|
|
1706
|
+
marginRight: vars.space[space]
|
|
1707
|
+
});
|
|
1708
|
+
for (const space of theme.SPACE)
|
|
1709
|
+
_responsiveRule(util$7, `mb-${space}`, {
|
|
1710
|
+
marginBottom: vars.space[space]
|
|
1711
|
+
});
|
|
1712
|
+
for (const space of theme.SPACE)
|
|
1713
|
+
_responsiveRule(util$7, `ml-${space}`, {
|
|
1714
|
+
marginLeft: vars.space[space]
|
|
1715
|
+
});
|
|
1716
|
+
const marginStyle = {
|
|
1717
|
+
layers: {
|
|
1718
|
+
util: util$7
|
|
1719
|
+
}
|
|
1720
|
+
}, util$6 = {};
|
|
1721
|
+
_responsiveRule(util$6, "max-w-0", {
|
|
1722
|
+
maxWidth: vars.container[0]
|
|
1723
|
+
});
|
|
1724
|
+
_responsiveRule(util$6, "max-w-1", {
|
|
1725
|
+
maxWidth: vars.container[1]
|
|
1726
|
+
});
|
|
1727
|
+
_responsiveRule(util$6, "max-w-2", {
|
|
1728
|
+
maxWidth: vars.container[2]
|
|
1729
|
+
});
|
|
1730
|
+
_responsiveRule(util$6, "max-w-3", {
|
|
1731
|
+
maxWidth: vars.container[3]
|
|
1732
|
+
});
|
|
1733
|
+
_responsiveRule(util$6, "max-w-4", {
|
|
1734
|
+
maxWidth: vars.container[4]
|
|
1735
|
+
});
|
|
1736
|
+
_responsiveRule(util$6, "max-w-5", {
|
|
1737
|
+
maxWidth: vars.container[5]
|
|
1738
|
+
});
|
|
1739
|
+
_responsiveRule(util$6, "max-w-auto", {
|
|
1740
|
+
maxWidth: "none"
|
|
1741
|
+
});
|
|
1742
|
+
_responsiveRule(util$6, "max-w-fill", {
|
|
1743
|
+
maxWidth: "100%"
|
|
1744
|
+
});
|
|
1745
|
+
const maxWidthStyle = {
|
|
1746
|
+
layers: {
|
|
1747
|
+
util: util$6
|
|
1748
|
+
}
|
|
1749
|
+
}, rules$2 = {
|
|
1750
|
+
".outline-none": {
|
|
1751
|
+
outline: "none"
|
|
1752
|
+
}
|
|
1753
|
+
}, outlineStyle = {
|
|
1754
|
+
layers: {
|
|
1755
|
+
util: rules$2
|
|
1756
|
+
}
|
|
1757
|
+
}, util$5 = {};
|
|
1758
|
+
_responsiveRule(util$5, "overflow-visible", {
|
|
1759
|
+
overflow: "visible"
|
|
1760
|
+
});
|
|
1761
|
+
_responsiveRule(util$5, "overflow-hidden", {
|
|
1762
|
+
overflow: "hidden"
|
|
1763
|
+
});
|
|
1764
|
+
_responsiveRule(util$5, "overflow-scroll", {
|
|
1765
|
+
overflow: "scroll"
|
|
1766
|
+
});
|
|
1767
|
+
_responsiveRule(util$5, "overflow-auto", {
|
|
1768
|
+
overflow: "auto"
|
|
1769
|
+
});
|
|
1770
|
+
const overflowStyle = {
|
|
1771
|
+
layers: {
|
|
1772
|
+
util: util$5
|
|
1773
|
+
}
|
|
1774
|
+
}, util$4 = {};
|
|
1775
|
+
for (const space of theme.SPACE)
|
|
1776
|
+
_responsiveRule(util$4, `p-${space}`, {
|
|
1777
|
+
padding: vars.space[space]
|
|
1778
|
+
});
|
|
1779
|
+
for (const space of theme.SPACE)
|
|
1780
|
+
_responsiveRule(util$4, `px-${space}`, {
|
|
1781
|
+
paddingLeft: vars.space[space],
|
|
1782
|
+
paddingRight: vars.space[space]
|
|
1783
|
+
});
|
|
1784
|
+
for (const space of theme.SPACE)
|
|
1785
|
+
_responsiveRule(util$4, `py-${space}`, {
|
|
1786
|
+
paddingTop: vars.space[space],
|
|
1787
|
+
paddingBottom: vars.space[space]
|
|
1788
|
+
});
|
|
1789
|
+
for (const space of theme.SPACE)
|
|
1790
|
+
_responsiveRule(util$4, `pt-${space}`, {
|
|
1791
|
+
paddingTop: vars.space[space]
|
|
1792
|
+
});
|
|
1793
|
+
for (const space of theme.SPACE)
|
|
1794
|
+
_responsiveRule(util$4, `pr-${space}`, {
|
|
1795
|
+
paddingRight: vars.space[space]
|
|
1796
|
+
});
|
|
1797
|
+
for (const space of theme.SPACE)
|
|
1798
|
+
_responsiveRule(util$4, `pb-${space}`, {
|
|
1799
|
+
paddingBottom: vars.space[space]
|
|
1800
|
+
});
|
|
1801
|
+
for (const space of theme.SPACE)
|
|
1802
|
+
_responsiveRule(util$4, `pl-${space}`, {
|
|
1803
|
+
paddingLeft: vars.space[space]
|
|
1804
|
+
});
|
|
1805
|
+
const paddingStyle = {
|
|
1806
|
+
layers: {
|
|
1807
|
+
util: util$4
|
|
1808
|
+
}
|
|
1809
|
+
}, rules$1 = {
|
|
1810
|
+
".pointer-events-none": {
|
|
1811
|
+
pointerEvents: "none"
|
|
1812
|
+
},
|
|
1813
|
+
".pointer-events-auto": {
|
|
1814
|
+
pointerEvents: "auto"
|
|
1815
|
+
}
|
|
1816
|
+
}, pointerEventsStyle = {
|
|
1817
|
+
layers: {
|
|
1818
|
+
util: rules$1
|
|
1819
|
+
}
|
|
1820
|
+
}, util$3 = {};
|
|
1821
|
+
_responsiveRule(util$3, "position-absolute", {
|
|
1822
|
+
position: "absolute"
|
|
1823
|
+
});
|
|
1824
|
+
_responsiveRule(util$3, "position-fixed", {
|
|
1825
|
+
position: "fixed"
|
|
1826
|
+
});
|
|
1827
|
+
_responsiveRule(util$3, "position-relative", {
|
|
1828
|
+
position: "relative"
|
|
1829
|
+
});
|
|
1830
|
+
_responsiveRule(util$3, "position-static", {
|
|
1831
|
+
position: "static"
|
|
1832
|
+
});
|
|
1833
|
+
_responsiveRule(util$3, "position-sticky", {
|
|
1834
|
+
position: "sticky"
|
|
1835
|
+
});
|
|
1836
|
+
const positionStyle = {
|
|
1837
|
+
layers: {
|
|
1838
|
+
util: util$3
|
|
1839
|
+
}
|
|
1840
|
+
}, util$2 = {};
|
|
1841
|
+
_responsiveRule(util$2, "r-0", {
|
|
1842
|
+
borderRadius: vars.radius[0]
|
|
1843
|
+
});
|
|
1844
|
+
_responsiveRule(util$2, "r-1", {
|
|
1845
|
+
borderRadius: vars.radius[1]
|
|
1846
|
+
});
|
|
1847
|
+
_responsiveRule(util$2, "r-2", {
|
|
1848
|
+
borderRadius: vars.radius[2]
|
|
1849
|
+
});
|
|
1850
|
+
_responsiveRule(util$2, "r-3", {
|
|
1851
|
+
borderRadius: vars.radius[3]
|
|
1852
|
+
});
|
|
1853
|
+
_responsiveRule(util$2, "r-4", {
|
|
1854
|
+
borderRadius: vars.radius[4]
|
|
1855
|
+
});
|
|
1856
|
+
_responsiveRule(util$2, "r-5", {
|
|
1857
|
+
borderRadius: vars.radius[5]
|
|
1858
|
+
});
|
|
1859
|
+
_responsiveRule(util$2, "r-6", {
|
|
1860
|
+
borderRadius: vars.radius[6]
|
|
1861
|
+
});
|
|
1862
|
+
_responsiveRule(util$2, "r-full", {
|
|
1863
|
+
borderRadius: "9999px"
|
|
1864
|
+
});
|
|
1865
|
+
const radiusStyle = {
|
|
1866
|
+
layers: {
|
|
1867
|
+
util: util$2
|
|
1868
|
+
}
|
|
1869
|
+
}, util$1 = {};
|
|
1870
|
+
_responsiveRule(util$1, "shadow-0", {
|
|
1871
|
+
boxShadow: "none"
|
|
1872
|
+
});
|
|
1873
|
+
_responsiveRule(util$1, "shadow-1", {
|
|
1874
|
+
boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-1-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-1-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-1-ambient) ${vars.color.shadow.ambient}`].join(", ")
|
|
1875
|
+
});
|
|
1876
|
+
_responsiveRule(util$1, "shadow-2", {
|
|
1877
|
+
boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-2-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-2-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-2-ambient) ${vars.color.shadow.ambient}`].join(", ")
|
|
1878
|
+
});
|
|
1879
|
+
_responsiveRule(util$1, "shadow-3", {
|
|
1880
|
+
boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-3-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-3-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-3-ambient) ${vars.color.shadow.ambient}`].join(", ")
|
|
1881
|
+
});
|
|
1882
|
+
_responsiveRule(util$1, "shadow-4", {
|
|
1883
|
+
boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-4-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-4-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-4-ambient) ${vars.color.shadow.ambient}`].join(", ")
|
|
1884
|
+
});
|
|
1885
|
+
_responsiveRule(util$1, "shadow-5", {
|
|
1886
|
+
boxShadow: [`var(--shadow-outline) ${vars.color.shadow.outline}`, `var(--shadow-5-umbra) ${vars.color.shadow.umbra}`, `var(--shadow-5-penumbra) ${vars.color.shadow.penumbra}`, `var(--shadow-5-ambient) ${vars.color.shadow.ambient}`].join(", ")
|
|
1887
|
+
});
|
|
1888
|
+
const shadowStyle = {
|
|
1889
|
+
layers: {
|
|
1890
|
+
util: util$1
|
|
1891
|
+
}
|
|
1892
|
+
}, rules = {
|
|
1893
|
+
".text-overflow-ellipsis": {
|
|
1894
|
+
display: "block",
|
|
1895
|
+
whiteSpace: "nowrap",
|
|
1896
|
+
textOverflow: "ellipsis",
|
|
1897
|
+
// @ts-expect-error - TODO: fix this
|
|
1898
|
+
overflow: ["hidden", "clip"]
|
|
1899
|
+
},
|
|
1900
|
+
".text-overflow-clip": {
|
|
1901
|
+
display: "block",
|
|
1902
|
+
whiteSpace: "nowrap",
|
|
1903
|
+
textOverflow: "clip",
|
|
1904
|
+
// @ts-expect-error - TODO: fix this
|
|
1905
|
+
overflow: ["hidden", "clip"]
|
|
1906
|
+
}
|
|
1907
|
+
}, textOverflowStyle = {
|
|
1908
|
+
layers: {
|
|
1909
|
+
util: rules
|
|
1910
|
+
}
|
|
1911
|
+
}, util = {};
|
|
1912
|
+
_responsiveRule(util, "w-fill", {
|
|
1913
|
+
// @ts-expect-error - TODO: fix this
|
|
1914
|
+
width: ["-moz-available", "-webkit-fill-available", "stretch"]
|
|
1915
|
+
});
|
|
1916
|
+
const widthStyle = {
|
|
1917
|
+
layers: {
|
|
1918
|
+
util
|
|
1919
|
+
}
|
|
1920
|
+
}, component$5 = {
|
|
1921
|
+
".breadcrumbs": {
|
|
1922
|
+
lineHeight: 0
|
|
1923
|
+
}
|
|
1924
|
+
}, breadcrumbsStyle = {
|
|
1925
|
+
layers: {
|
|
1926
|
+
component: component$5
|
|
1927
|
+
}
|
|
1928
|
+
}, keyframes$2 = {
|
|
1929
|
+
"dialog-zoom-in": {
|
|
1930
|
+
from: {
|
|
1931
|
+
opacity: 0,
|
|
1932
|
+
transform: "scale(0.95)"
|
|
1933
|
+
},
|
|
1934
|
+
to: {
|
|
1935
|
+
opacity: 1,
|
|
1936
|
+
transform: "scale(1)"
|
|
1937
|
+
}
|
|
1938
|
+
},
|
|
1939
|
+
"dialog-fade-in": {
|
|
1940
|
+
from: {
|
|
1941
|
+
opacity: 0
|
|
1942
|
+
},
|
|
1943
|
+
to: {
|
|
1944
|
+
opacity: 1
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
}, component$4 = {
|
|
1948
|
+
".dialog": {
|
|
1949
|
+
// 'top': 0,
|
|
1950
|
+
// 'left': 0,
|
|
1951
|
+
// 'right': 0,
|
|
1952
|
+
// 'bottom': 0,
|
|
934
1953
|
alignItems: "center",
|
|
935
1954
|
justifyContent: "center",
|
|
936
1955
|
outline: "none",
|
|
937
1956
|
background: vars.color.backdrop,
|
|
938
|
-
"@keyframes": {
|
|
939
|
-
"dialog-zoom-in": {
|
|
940
|
-
from: {
|
|
941
|
-
opacity: 0,
|
|
942
|
-
transform: "scale(0.95)"
|
|
943
|
-
},
|
|
944
|
-
to: {
|
|
945
|
-
opacity: 1,
|
|
946
|
-
transform: "scale(1)"
|
|
947
|
-
}
|
|
948
|
-
},
|
|
949
|
-
"dialog-fade-in": {
|
|
950
|
-
from: {
|
|
951
|
-
opacity: 0
|
|
952
|
-
},
|
|
953
|
-
to: {
|
|
954
|
-
opacity: 1
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
},
|
|
958
1957
|
"@nest": {
|
|
959
1958
|
"&[data-animate]": {
|
|
960
1959
|
animation: "dialog-fade-in 200ms ease-out"
|
|
@@ -965,76 +1964,59 @@ const dialogRules = {
|
|
|
965
1964
|
}
|
|
966
1965
|
}
|
|
967
1966
|
},
|
|
968
|
-
"dialog-container": {
|
|
1967
|
+
".dialog-container": {
|
|
969
1968
|
width: "100%",
|
|
970
1969
|
height: "100%"
|
|
971
1970
|
},
|
|
972
|
-
"dialog-card-root": {
|
|
1971
|
+
".dialog-card-root": {
|
|
973
1972
|
width: "100%",
|
|
974
1973
|
maxHeight: "100%",
|
|
1974
|
+
// @ts-expect-error - TODO: fix this
|
|
975
1975
|
overflow: ["hidden", "clip"]
|
|
976
1976
|
},
|
|
977
|
-
"dialog-layout": {
|
|
1977
|
+
".dialog-layout": {
|
|
978
1978
|
width: "100%"
|
|
979
1979
|
},
|
|
980
|
-
"dialog-header": {
|
|
1980
|
+
".dialog-header": {
|
|
981
1981
|
zIndex: 2
|
|
982
1982
|
},
|
|
983
|
-
"dialog-content": {
|
|
1983
|
+
".dialog-content": {
|
|
984
1984
|
zIndex: 1,
|
|
985
1985
|
outline: "none"
|
|
986
1986
|
},
|
|
987
|
-
"dialog-footer": {
|
|
1987
|
+
".dialog-footer": {
|
|
988
1988
|
zIndex: 3
|
|
989
1989
|
}
|
|
990
|
-
},
|
|
991
|
-
|
|
1990
|
+
}, dialogStyle = {
|
|
1991
|
+
keyframes: keyframes$2,
|
|
1992
|
+
layers: {
|
|
1993
|
+
component: component$4
|
|
1994
|
+
}
|
|
1995
|
+
}, component$3 = {
|
|
1996
|
+
".menu": {
|
|
992
1997
|
outline: "none"
|
|
993
1998
|
},
|
|
994
|
-
"menu-divider": {
|
|
1999
|
+
".menu-divider": {
|
|
995
2000
|
height: "1px",
|
|
996
2001
|
border: 0,
|
|
997
2002
|
backgroundColor: vars.color.border,
|
|
998
2003
|
margin: 0
|
|
999
2004
|
}
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
},
|
|
1009
|
-
[`_2:${className}`]: {
|
|
1010
|
-
"@media": {
|
|
1011
|
-
"screen and (min-width: 600px)": props
|
|
1012
|
-
}
|
|
1013
|
-
},
|
|
1014
|
-
[`_3:${className}`]: {
|
|
1015
|
-
"@media": {
|
|
1016
|
-
"screen and (min-width: 900px)": props
|
|
1017
|
-
}
|
|
1018
|
-
},
|
|
1019
|
-
[`_4:${className}`]: {
|
|
1020
|
-
"@media": {
|
|
1021
|
-
"screen and (min-width: 1200px)": props
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
[`_5:${className}`]: {
|
|
1025
|
-
"@media": {
|
|
1026
|
-
"screen and (min-width: 1800px)": props
|
|
1027
|
-
}
|
|
2005
|
+
}, menuStyle = {
|
|
2006
|
+
layers: {
|
|
2007
|
+
component: component$3
|
|
2008
|
+
}
|
|
2009
|
+
}, keyframes$1 = {
|
|
2010
|
+
"skeleton-pulse": {
|
|
2011
|
+
"0%": {
|
|
2012
|
+
backgroundPosition: "100%"
|
|
1028
2013
|
},
|
|
1029
|
-
|
|
1030
|
-
"
|
|
1031
|
-
"screen and (min-width: 2400px)": props
|
|
1032
|
-
}
|
|
2014
|
+
"100%": {
|
|
2015
|
+
backgroundPosition: "-100%"
|
|
1033
2016
|
}
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
skeleton: {
|
|
2017
|
+
}
|
|
2018
|
+
}, component$2 = {
|
|
2019
|
+
".skeleton": {
|
|
1038
2020
|
"--color-skeleton-from": `color-mix(in srgb, transparent, ${vars.color.muted.fg} 5%)`,
|
|
1039
2021
|
"--color-skeleton-to": `color-mix(in srgb, transparent, ${vars.color.muted.fg} 10%)`,
|
|
1040
2022
|
backgroundColor: vars.color.skeleton.from,
|
|
@@ -1043,16 +2025,6 @@ const skeletonRules = {
|
|
|
1043
2025
|
backgroundAttachment: "fixed",
|
|
1044
2026
|
opacity: 0,
|
|
1045
2027
|
transition: "opacity 200ms ease-in",
|
|
1046
|
-
"@keyframes": {
|
|
1047
|
-
"skeleton-pulse": {
|
|
1048
|
-
"0%": {
|
|
1049
|
-
backgroundPosition: "100%"
|
|
1050
|
-
},
|
|
1051
|
-
"100%": {
|
|
1052
|
-
backgroundPosition: "-100%"
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
2028
|
"@nest": {
|
|
1057
2029
|
"&[data-animated]": {
|
|
1058
2030
|
backgroundImage: ["linear-gradient(to right", vars.color.skeleton.from, vars.color.skeleton.to, vars.color.skeleton.from, vars.color.skeleton.from, vars.color.skeleton.from, ")"].join(", "),
|
|
@@ -1071,48 +2043,41 @@ const skeletonRules = {
|
|
|
1071
2043
|
}
|
|
1072
2044
|
}
|
|
1073
2045
|
},
|
|
1074
|
-
"font-skeleton": {
|
|
2046
|
+
".font-skeleton": {
|
|
1075
2047
|
height: "calc(var(--font-skeleton-line-height) - var(--font-skeleton-ascender-height) - var(--font-skeleton-descender-height))"
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
})
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
"--font-skeleton-line-height": vars.font.text.sizes[size].lineHeight,
|
|
1110
|
-
"--font-skeleton-ascender-height": vars.font.text.sizes[size].ascenderHeight,
|
|
1111
|
-
"--font-skeleton-descender-height": vars.font.text.sizes[size].descenderHeight
|
|
1112
|
-
})
|
|
1113
|
-
}), {})
|
|
1114
|
-
}, toastRules = {
|
|
1115
|
-
"toast-layer": {
|
|
2048
|
+
}
|
|
2049
|
+
};
|
|
2050
|
+
for (const size of theme.FONT_CODE_SIZE)
|
|
2051
|
+
_responsiveRule(component$2, `code-skeleton-${size}`, {
|
|
2052
|
+
"--font-skeleton-line-height": vars.font.code.sizes[size].lineHeight,
|
|
2053
|
+
"--font-skeleton-ascender-height": vars.font.code.sizes[size].ascenderHeight,
|
|
2054
|
+
"--font-skeleton-descender-height": vars.font.code.sizes[size].descenderHeight
|
|
2055
|
+
});
|
|
2056
|
+
for (const size of theme.FONT_HEADING_SIZE)
|
|
2057
|
+
_responsiveRule(component$2, `heading-skeleton-${size}`, {
|
|
2058
|
+
"--font-skeleton-line-height": vars.font.heading.sizes[size].lineHeight,
|
|
2059
|
+
"--font-skeleton-ascender-height": vars.font.heading.sizes[size].ascenderHeight,
|
|
2060
|
+
"--font-skeleton-descender-height": vars.font.heading.sizes[size].descenderHeight
|
|
2061
|
+
});
|
|
2062
|
+
for (const size of theme.FONT_LABEL_SIZE)
|
|
2063
|
+
_responsiveRule(component$2, `label-skeleton-${size}`, {
|
|
2064
|
+
"--font-skeleton-line-height": vars.font.label.sizes[size].lineHeight,
|
|
2065
|
+
"--font-skeleton-ascender-height": vars.font.label.sizes[size].ascenderHeight,
|
|
2066
|
+
"--font-skeleton-descender-height": vars.font.label.sizes[size].descenderHeight
|
|
2067
|
+
});
|
|
2068
|
+
for (const size of theme.FONT_TEXT_SIZE)
|
|
2069
|
+
_responsiveRule(component$2, `text-skeleton-${size}`, {
|
|
2070
|
+
"--font-skeleton-line-height": vars.font.text.sizes[size].lineHeight,
|
|
2071
|
+
"--font-skeleton-ascender-height": vars.font.text.sizes[size].ascenderHeight,
|
|
2072
|
+
"--font-skeleton-descender-height": vars.font.text.sizes[size].descenderHeight
|
|
2073
|
+
});
|
|
2074
|
+
const skeletonStyle = {
|
|
2075
|
+
keyframes: keyframes$1,
|
|
2076
|
+
layers: {
|
|
2077
|
+
component: component$2
|
|
2078
|
+
}
|
|
2079
|
+
}, component$1 = {
|
|
2080
|
+
".toast-layer": {
|
|
1116
2081
|
position: "fixed",
|
|
1117
2082
|
right: 0,
|
|
1118
2083
|
bottom: 0,
|
|
@@ -1120,12 +2085,62 @@ const skeletonRules = {
|
|
|
1120
2085
|
maxWidth: "420px",
|
|
1121
2086
|
width: "100%"
|
|
1122
2087
|
},
|
|
1123
|
-
toast: {
|
|
2088
|
+
".toast": {
|
|
1124
2089
|
pointerEvents: "all",
|
|
2090
|
+
// @ts-expect-error - TODO: fix this
|
|
1125
2091
|
overflow: ["hidden", "clip"]
|
|
1126
2092
|
}
|
|
1127
|
-
},
|
|
1128
|
-
|
|
2093
|
+
}, toastStyle = {
|
|
2094
|
+
layers: {
|
|
2095
|
+
component: component$1
|
|
2096
|
+
}
|
|
2097
|
+
}, component = {
|
|
2098
|
+
".tree-item": {
|
|
2099
|
+
"@nest": {
|
|
2100
|
+
'&[role="none"] > [role="treeitem"]': {
|
|
2101
|
+
outline: "none",
|
|
2102
|
+
cursor: "default",
|
|
2103
|
+
borderRadius: "3px",
|
|
2104
|
+
backgroundColor: vars.color.bg,
|
|
2105
|
+
// 'var(--card-bg-color)',
|
|
2106
|
+
color: "var(--treeitem-fg-color)"
|
|
2107
|
+
},
|
|
2108
|
+
'&[role="none"] > [role="treeitem"]:focus': {
|
|
2109
|
+
position: "relative"
|
|
2110
|
+
},
|
|
2111
|
+
'&[role="treeitem"]': {
|
|
2112
|
+
outline: "none"
|
|
2113
|
+
},
|
|
2114
|
+
'&[role="treeitem"] > div': {
|
|
2115
|
+
cursor: "default",
|
|
2116
|
+
borderRadius: "3px",
|
|
2117
|
+
backgroundColor: vars.color.bg,
|
|
2118
|
+
// 'var(--card-bg-color)',
|
|
2119
|
+
color: "var(--treeitem-fg-color)"
|
|
2120
|
+
},
|
|
2121
|
+
'&[role="treeitem"]:focus > div': {
|
|
2122
|
+
position: "relative"
|
|
2123
|
+
}
|
|
2124
|
+
// &[role='treeitem'] {
|
|
2125
|
+
// outline: none;
|
|
2126
|
+
// & > div {
|
|
2127
|
+
// cursor: default;
|
|
2128
|
+
// border-radius: 3px;
|
|
2129
|
+
// background-color: var(--card-bg-color);
|
|
2130
|
+
// color: var(--treeitem-fg-color);
|
|
2131
|
+
// }
|
|
2132
|
+
// &:focus > div {
|
|
2133
|
+
// position: relative;
|
|
2134
|
+
// }
|
|
2135
|
+
// }
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
}, treeStyle = {
|
|
2139
|
+
layers: {
|
|
2140
|
+
component
|
|
2141
|
+
}
|
|
2142
|
+
}, primitive$o = {
|
|
2143
|
+
".arrow": {
|
|
1129
2144
|
position: "absolute",
|
|
1130
2145
|
// todo: replace with vars?
|
|
1131
2146
|
width: "var(--arrow-size)",
|
|
@@ -1168,24 +2183,28 @@ const skeletonRules = {
|
|
|
1168
2183
|
}
|
|
1169
2184
|
}
|
|
1170
2185
|
},
|
|
1171
|
-
"arrow-stroke": {
|
|
2186
|
+
".arrow-stroke": {
|
|
1172
2187
|
stroke: vars.color.shadow.outline
|
|
1173
2188
|
},
|
|
1174
|
-
"arrow-shape": {
|
|
2189
|
+
".arrow-shape": {
|
|
1175
2190
|
fill: vars.color.bg
|
|
1176
2191
|
}
|
|
1177
|
-
},
|
|
1178
|
-
|
|
2192
|
+
}, _arrowStyle = {
|
|
2193
|
+
layers: {
|
|
2194
|
+
primitive: primitive$o
|
|
2195
|
+
}
|
|
2196
|
+
}, primitive$n = {
|
|
2197
|
+
".input": {
|
|
1179
2198
|
position: "relative"
|
|
1180
2199
|
},
|
|
1181
|
-
"input-b": {
|
|
2200
|
+
".input-b": {
|
|
1182
2201
|
"@nest": {
|
|
1183
2202
|
"& .input-presentation": {
|
|
1184
2203
|
boxShadow: `inset 0 0 0 1px ${vars.color.input.border}`
|
|
1185
2204
|
}
|
|
1186
2205
|
}
|
|
1187
2206
|
},
|
|
1188
|
-
"input-element": {
|
|
2207
|
+
".input-element": {
|
|
1189
2208
|
"--color-input-fg": vars.color.tinted.default.fg[2],
|
|
1190
2209
|
"--color-input-placeholder": vars.color.tinted.default.border[4],
|
|
1191
2210
|
WebkitFontSmoothing: "inherit",
|
|
@@ -1206,6 +2225,7 @@ const skeletonRules = {
|
|
|
1206
2225
|
display: "block",
|
|
1207
2226
|
boxSizing: "border-box",
|
|
1208
2227
|
resize: "none",
|
|
2228
|
+
// @ts-expect-error - TODO: fix this
|
|
1209
2229
|
width: ["-moz-available", "-webkit-fill-available", "stretch"],
|
|
1210
2230
|
"@nest": {
|
|
1211
2231
|
".input[data-icon-left] &": {
|
|
@@ -1228,7 +2248,7 @@ const skeletonRules = {
|
|
|
1228
2248
|
}
|
|
1229
2249
|
}
|
|
1230
2250
|
},
|
|
1231
|
-
"input-presentation": {
|
|
2251
|
+
".input-presentation": {
|
|
1232
2252
|
[varNames.color.input.fg]: vars.color.tinted.default.fg[4],
|
|
1233
2253
|
[varNames.color.input.bg]: vars.color.tinted.default.bg[0],
|
|
1234
2254
|
[varNames.color.input.border]: vars.color.tinted.default.border[1],
|
|
@@ -1277,7 +2297,7 @@ const skeletonRules = {
|
|
|
1277
2297
|
};
|
|
1278
2298
|
for (const textSize of theme.FONT_TEXT_SIZE) {
|
|
1279
2299
|
const source = vars.font.text.sizes[textSize];
|
|
1280
|
-
|
|
2300
|
+
primitive$n[`.input-${textSize}`] = {
|
|
1281
2301
|
[varNames.input.fontSize]: source.fontSize,
|
|
1282
2302
|
[varNames.input.lineHeight]: source.lineHeight,
|
|
1283
2303
|
[varNames.input.letterSpacing]: source.letterSpacing,
|
|
@@ -1286,14 +2306,18 @@ for (const textSize of theme.FONT_TEXT_SIZE) {
|
|
|
1286
2306
|
};
|
|
1287
2307
|
}
|
|
1288
2308
|
for (const space of theme.SPACE)
|
|
1289
|
-
|
|
2309
|
+
primitive$n[`.input-p-${space}`] = {
|
|
1290
2310
|
[varNames.input.padding]: vars.space[space]
|
|
1291
|
-
}
|
|
2311
|
+
};
|
|
1292
2312
|
for (const space of theme.SPACE)
|
|
1293
|
-
|
|
2313
|
+
primitive$n[`.input-g-${space}`] = {
|
|
1294
2314
|
[varNames.input.gap]: vars.space[space]
|
|
1295
|
-
}
|
|
1296
|
-
const
|
|
2315
|
+
};
|
|
2316
|
+
const _inputStyle = {
|
|
2317
|
+
layers: {
|
|
2318
|
+
primitive: primitive$n
|
|
2319
|
+
}
|
|
2320
|
+
}, toneMap$2 = {
|
|
1297
2321
|
default: "surface",
|
|
1298
2322
|
neutral: "neutral",
|
|
1299
2323
|
suggest: "suggest",
|
|
@@ -1301,8 +2325,8 @@ const toneMap$2 = {
|
|
|
1301
2325
|
positive: "positive",
|
|
1302
2326
|
caution: "caution",
|
|
1303
2327
|
critical: "critical"
|
|
1304
|
-
},
|
|
1305
|
-
selectable: {
|
|
2328
|
+
}, primitive$m = {
|
|
2329
|
+
".selectable": {
|
|
1306
2330
|
backgroundColor: vars.color.bg,
|
|
1307
2331
|
color: vars.color.fg,
|
|
1308
2332
|
"--color-bg": vars.color.tinted.bg[0],
|
|
@@ -1316,6 +2340,7 @@ const toneMap$2 = {
|
|
|
1316
2340
|
font: "inherit",
|
|
1317
2341
|
textAlign: "inherit",
|
|
1318
2342
|
border: 0,
|
|
2343
|
+
// @ts-expect-error - TODO: fix this
|
|
1319
2344
|
width: ["-moz-available", "-webkit-fill-available", "stretch"]
|
|
1320
2345
|
},
|
|
1321
2346
|
/* &:is(a) */
|
|
@@ -1363,6 +2388,10 @@ const toneMap$2 = {
|
|
|
1363
2388
|
}
|
|
1364
2389
|
}
|
|
1365
2390
|
}
|
|
2391
|
+
}, _selectableStyle = {
|
|
2392
|
+
layers: {
|
|
2393
|
+
primitive: primitive$m
|
|
2394
|
+
}
|
|
1366
2395
|
};
|
|
1367
2396
|
function buildSelectableTones() {
|
|
1368
2397
|
const rules2 = {};
|
|
@@ -1403,8 +2432,8 @@ function buildSelectableTones() {
|
|
|
1403
2432
|
}
|
|
1404
2433
|
return rules2;
|
|
1405
2434
|
}
|
|
1406
|
-
const
|
|
1407
|
-
avatar: {
|
|
2435
|
+
const primitive$l = {
|
|
2436
|
+
".avatar": {
|
|
1408
2437
|
backgroundColor: vars.color.avatar.bg,
|
|
1409
2438
|
position: "relative",
|
|
1410
2439
|
boxSizing: "border-box",
|
|
@@ -1449,14 +2478,7 @@ const avatarRules = {
|
|
|
1449
2478
|
}), {})
|
|
1450
2479
|
}
|
|
1451
2480
|
},
|
|
1452
|
-
|
|
1453
|
-
...acc,
|
|
1454
|
-
...responsiveRules(`avatar-${size}`, {
|
|
1455
|
-
[varNames.avatar.distance]: vars.avatar.sizes[size].distance,
|
|
1456
|
-
[varNames.avatar.size]: vars.avatar.sizes[size].size
|
|
1457
|
-
})
|
|
1458
|
-
}), {}),
|
|
1459
|
-
"avatar-arrow": {
|
|
2481
|
+
".avatar-arrow": {
|
|
1460
2482
|
position: "absolute",
|
|
1461
2483
|
boxSizing: "border-box",
|
|
1462
2484
|
zIndex: 0,
|
|
@@ -1491,7 +2513,7 @@ const avatarRules = {
|
|
|
1491
2513
|
}
|
|
1492
2514
|
}
|
|
1493
2515
|
},
|
|
1494
|
-
"avatar-image": {
|
|
2516
|
+
".avatar-image": {
|
|
1495
2517
|
"@nest": {
|
|
1496
2518
|
"& > img": {
|
|
1497
2519
|
display: "block",
|
|
@@ -1513,11 +2535,11 @@ const avatarRules = {
|
|
|
1513
2535
|
}
|
|
1514
2536
|
}
|
|
1515
2537
|
},
|
|
1516
|
-
"avatar-initials": {
|
|
2538
|
+
".avatar-initials": {
|
|
1517
2539
|
color: vars.color.avatar.fg,
|
|
1518
2540
|
borderRadius: vars.avatar.size
|
|
1519
2541
|
},
|
|
1520
|
-
"avatar-counter": {
|
|
2542
|
+
".avatar-counter": {
|
|
1521
2543
|
color: vars.color.fg,
|
|
1522
2544
|
backgroundColor: vars.color.bg,
|
|
1523
2545
|
boxShadow: [`0 0 0 1px ${vars.color.bg}`, `inset 0 0 0 1px ${vars.color.border}`].join(", "),
|
|
@@ -1533,28 +2555,41 @@ const avatarRules = {
|
|
|
1533
2555
|
}
|
|
1534
2556
|
}
|
|
1535
2557
|
},
|
|
1536
|
-
"avatar-stack": {
|
|
2558
|
+
".avatar-stack": {
|
|
1537
2559
|
"@nest": {
|
|
1538
2560
|
"& > div + div": {
|
|
1539
2561
|
marginLeft: vars.avatar.distance
|
|
1540
2562
|
}
|
|
1541
2563
|
}
|
|
1542
2564
|
}
|
|
1543
|
-
}
|
|
2565
|
+
};
|
|
2566
|
+
for (const size of theme.AVATAR_SIZE)
|
|
2567
|
+
_responsiveRule(primitive$l, `avatar-${size}`, {
|
|
2568
|
+
[varNames.avatar.distance]: vars.avatar.sizes[size].distance,
|
|
2569
|
+
[varNames.avatar.size]: vars.avatar.sizes[size].size
|
|
2570
|
+
});
|
|
2571
|
+
const avatarStyle = {
|
|
2572
|
+
layers: {
|
|
2573
|
+
primitive: primitive$l
|
|
2574
|
+
}
|
|
2575
|
+
}, primitive$k = {
|
|
2576
|
+
".badge": {
|
|
2577
|
+
backgroundColor: vars.color.bg,
|
|
2578
|
+
color: vars.color.fg,
|
|
2579
|
+
verticalAlign: "top"
|
|
2580
|
+
}
|
|
2581
|
+
};
|
|
1544
2582
|
for (const tone of theme.THEME_COLOR_STATE_TONES)
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
2583
|
+
primitive$k[`.badge-${tone}`] = {
|
|
2584
|
+
[varNames.color.bg]: vars.color.tinted[tone].bg[4],
|
|
2585
|
+
[varNames.color.fg]: vars.color.tinted[tone].fg[1]
|
|
1548
2586
|
};
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
...badgeToneRules
|
|
1556
|
-
}, boxRules = {
|
|
1557
|
-
box: {
|
|
2587
|
+
const badgeStyle = {
|
|
2588
|
+
layers: {
|
|
2589
|
+
primitive: primitive$k
|
|
2590
|
+
}
|
|
2591
|
+
}, primitive$j = {
|
|
2592
|
+
".box": {
|
|
1558
2593
|
minWidth: 0,
|
|
1559
2594
|
minHeight: 0,
|
|
1560
2595
|
"@nest": {
|
|
@@ -1562,17 +2597,21 @@ const badgeRules = {
|
|
|
1562
2597
|
listStyle: "none"
|
|
1563
2598
|
},
|
|
1564
2599
|
"&.muted": {
|
|
1565
|
-
backgroundColor:
|
|
2600
|
+
backgroundColor: vars.color.muted.bg
|
|
1566
2601
|
}
|
|
1567
2602
|
}
|
|
1568
2603
|
},
|
|
1569
2604
|
// sizing
|
|
1570
|
-
"box-content": {
|
|
2605
|
+
".box-content": {
|
|
1571
2606
|
boxSizing: "content-box"
|
|
1572
2607
|
},
|
|
1573
|
-
"box-border": {
|
|
2608
|
+
".box-border": {
|
|
1574
2609
|
boxSizing: "border-box"
|
|
1575
2610
|
}
|
|
2611
|
+
}, boxStyle = {
|
|
2612
|
+
layers: {
|
|
2613
|
+
primitive: primitive$j
|
|
2614
|
+
}
|
|
1576
2615
|
}, toneMap$1 = {
|
|
1577
2616
|
default: "surface",
|
|
1578
2617
|
neutral: "neutral",
|
|
@@ -1585,102 +2624,8 @@ const badgeRules = {
|
|
|
1585
2624
|
default: "solid",
|
|
1586
2625
|
ghost: "ghost",
|
|
1587
2626
|
bleed: "tinted"
|
|
1588
|
-
},
|
|
1589
|
-
|
|
1590
|
-
for (const tone of theme.THEME_COLOR_STATE_TONES)
|
|
1591
|
-
mode === "default" && (buttonVariantRules[`&.${variantMap[mode]}.${toneMap$1[tone]}`] = {
|
|
1592
|
-
boxShadow: "none",
|
|
1593
|
-
"--color-bg": `var(--color-solid-${tone}-bg-0)`,
|
|
1594
|
-
"--color-border": `var(--color-solid-${tone}-border-1)`,
|
|
1595
|
-
"--color-fg": `var(--color-solid-${tone}-fg-0)`,
|
|
1596
|
-
"--color-muted-fg": `var(--color-solid-${tone}-fg-4)`,
|
|
1597
|
-
"@nest": {
|
|
1598
|
-
"&:not([data-disabled]):hover": {
|
|
1599
|
-
"--color-bg": `var(--color-solid-${tone}-bg-1)`,
|
|
1600
|
-
"--color-border": `var(--color-solid-${tone}-border-2)`,
|
|
1601
|
-
"--color-fg": `var(--color-solid-${tone}-fg-0)`,
|
|
1602
|
-
"--color-muted-fg": `var(--color-solid-${tone}-fg-4)`
|
|
1603
|
-
},
|
|
1604
|
-
"&:not([data-disabled]):active": {
|
|
1605
|
-
"--color-bg": `var(--color-solid-${tone}-bg-2)`,
|
|
1606
|
-
"--color-border": `var(--color-solid-${tone}-border-3)`,
|
|
1607
|
-
"--color-fg": `var(--color-solid-${tone}-fg-0)`,
|
|
1608
|
-
"--color-muted-fg": `var(--color-solid-${tone}-fg-4)`
|
|
1609
|
-
},
|
|
1610
|
-
"&:not([data-disabled])[data-selected]": {
|
|
1611
|
-
"--color-bg": `var(--color-solid-${tone}-bg-2)`,
|
|
1612
|
-
"--color-border": `var(--color-solid-${tone}-border-3)`,
|
|
1613
|
-
"--color-fg": `var(--color-solid-${tone}-fg-0)`,
|
|
1614
|
-
"--color-muted-fg": `var(--color-solid-${tone}-fg-4)`
|
|
1615
|
-
},
|
|
1616
|
-
"&[data-disabled]": {
|
|
1617
|
-
"--color-bg": "var(--color-tinted-default-bg-1)",
|
|
1618
|
-
"--color-border": "var(--color-tinted-default-border-0)",
|
|
1619
|
-
"--color-fg": "var(--color-tinted-default-border-2)",
|
|
1620
|
-
"--color-muted-fg": "var(--color-tinted-default-border-1)"
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
}), mode === "bleed" && (buttonVariantRules[`&.${variantMap[mode]}.${toneMap$1[tone]}`] = {
|
|
1624
|
-
boxShadow: "none",
|
|
1625
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-0)`,
|
|
1626
|
-
"--color-border": `var(--color-tinted-${tone}-border-1)`,
|
|
1627
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-2)`,
|
|
1628
|
-
"--color-muted-fg": `var(--color-tinted-${tone}-fg-4)`,
|
|
1629
|
-
"@nest": {
|
|
1630
|
-
"&:not([data-disabled]):hover": {
|
|
1631
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-1)`,
|
|
1632
|
-
"--color-border": `var(--color-tinted-${tone}-border-2)`,
|
|
1633
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-1)`,
|
|
1634
|
-
"--color-muted-fg": `var(--color-tinted-${tone}-fg-3)`
|
|
1635
|
-
},
|
|
1636
|
-
"&:not([data-disabled]):active": {
|
|
1637
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-2)`,
|
|
1638
|
-
"--color-border": `var(--color-tinted-${tone}-border-3)`,
|
|
1639
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-1)`,
|
|
1640
|
-
"--color-muted-fg": `var(--color-tinted-${tone}-fg-3)`
|
|
1641
|
-
},
|
|
1642
|
-
"&:not([data-disabled])[data-selected]": {
|
|
1643
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-2)`,
|
|
1644
|
-
"--color-border": `var(--color-tinted-${tone}-border-3)`,
|
|
1645
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-1)`,
|
|
1646
|
-
"--color-muted-fg": `var(--color-tinted-${tone}-fg-3)`
|
|
1647
|
-
},
|
|
1648
|
-
"&[data-disabled]": {
|
|
1649
|
-
"--color-bg": "var(--color-tinted-default-bg-0)",
|
|
1650
|
-
"--color-border": "var(--color-tinted-default-border-0)",
|
|
1651
|
-
"--color-fg": "var(--color-tinted-default-border-2)",
|
|
1652
|
-
"--color-muted-fg": "var(--color-tinted-default-border-1)"
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
}), mode === "ghost" && (buttonVariantRules[`&.${variantMap[mode]}.${toneMap$1[tone]}`] = {
|
|
1656
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-1)`,
|
|
1657
|
-
"--color-border": `var(--color-tinted-${tone}-border-0)`,
|
|
1658
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-2)`,
|
|
1659
|
-
"@nest": {
|
|
1660
|
-
"&:not([data-disabled]):hover": {
|
|
1661
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-2)`,
|
|
1662
|
-
"--color-border": `var(--color-tinted-${tone}-border-1)`,
|
|
1663
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-1)`
|
|
1664
|
-
},
|
|
1665
|
-
"&:not([data-disabled]):active": {
|
|
1666
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-3)`,
|
|
1667
|
-
"--color-border": `var(--color-tinted-${tone}-border-2)`,
|
|
1668
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-1)`
|
|
1669
|
-
},
|
|
1670
|
-
"&:not([data-disabled])[data-selected]": {
|
|
1671
|
-
"--color-bg": `var(--color-tinted-${tone}-bg-3)`,
|
|
1672
|
-
"--color-border": `var(--color-tinted-${tone}-border-2)`,
|
|
1673
|
-
"--color-fg": `var(--color-tinted-${tone}-fg-1)`
|
|
1674
|
-
},
|
|
1675
|
-
"&[data-disabled]": {
|
|
1676
|
-
"--color-bg": "var(--color-tinted-default-bg-0)",
|
|
1677
|
-
"--color-border": "var(--color-tinted-default-border-0)",
|
|
1678
|
-
"--color-fg": "var(--color-tinted-default-border-2)"
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
});
|
|
1682
|
-
const buttonRules = {
|
|
1683
|
-
button: {
|
|
2627
|
+
}, primitive$i = {
|
|
2628
|
+
".button": {
|
|
1684
2629
|
WebkitFontSmoothing: "inherit",
|
|
1685
2630
|
appearance: "none",
|
|
1686
2631
|
font: "inherit",
|
|
@@ -1695,9 +2640,9 @@ const buttonRules = {
|
|
|
1695
2640
|
textAlign: "left",
|
|
1696
2641
|
position: "relative",
|
|
1697
2642
|
verticalAlign: "top",
|
|
1698
|
-
backgroundColor:
|
|
1699
|
-
color:
|
|
1700
|
-
boxShadow: "
|
|
2643
|
+
backgroundColor: vars.color.bg,
|
|
2644
|
+
color: vars.color.fg,
|
|
2645
|
+
boxShadow: "var(--button-box-shadow)",
|
|
1701
2646
|
"@nest": {
|
|
1702
2647
|
"&::-moz-focus-inner": {
|
|
1703
2648
|
border: 0,
|
|
@@ -1709,21 +2654,124 @@ const buttonRules = {
|
|
|
1709
2654
|
},
|
|
1710
2655
|
"&:focus:not(:focus-visible)": {
|
|
1711
2656
|
outline: "none"
|
|
1712
|
-
}
|
|
1713
|
-
...buttonVariantRules
|
|
2657
|
+
}
|
|
1714
2658
|
}
|
|
1715
2659
|
},
|
|
1716
|
-
"button-loading-box": {
|
|
2660
|
+
".button-loading-box": {
|
|
1717
2661
|
position: "absolute",
|
|
1718
2662
|
top: 0,
|
|
1719
2663
|
left: 0,
|
|
1720
2664
|
right: 0,
|
|
1721
2665
|
bottom: 0,
|
|
1722
|
-
backgroundColor:
|
|
2666
|
+
backgroundColor: vars.color.bg,
|
|
1723
2667
|
borderRadius: "inherit",
|
|
1724
2668
|
zIndex: 1,
|
|
1725
2669
|
opacity: 0.8
|
|
1726
2670
|
}
|
|
2671
|
+
};
|
|
2672
|
+
for (const tone of theme.THEME_COLOR_STATE_TONES) {
|
|
2673
|
+
const solid = vars.color.solid[tone], tinted = vars.color.tinted[tone];
|
|
2674
|
+
primitive$i[`.button.${variantMap.default}.${toneMap$1[tone]}`] = {
|
|
2675
|
+
[varNames.color.bg]: solid.bg[0],
|
|
2676
|
+
[varNames.color.border]: solid.border[1],
|
|
2677
|
+
[varNames.color.fg]: solid.fg[0],
|
|
2678
|
+
[varNames.color.muted.fg]: solid.fg[4],
|
|
2679
|
+
"--button-box-shadow": "none",
|
|
2680
|
+
"@nest": {
|
|
2681
|
+
"&:not([data-disabled]):hover": {
|
|
2682
|
+
[varNames.color.bg]: solid.bg[1],
|
|
2683
|
+
[varNames.color.border]: solid.border[2],
|
|
2684
|
+
[varNames.color.fg]: solid.fg[0],
|
|
2685
|
+
[varNames.color.muted.fg]: solid.fg[4]
|
|
2686
|
+
},
|
|
2687
|
+
"&:not([data-disabled]):active": {
|
|
2688
|
+
[varNames.color.bg]: solid.bg[2],
|
|
2689
|
+
[varNames.color.border]: solid.border[3],
|
|
2690
|
+
[varNames.color.fg]: solid.fg[0],
|
|
2691
|
+
[varNames.color.muted.fg]: solid.fg[4]
|
|
2692
|
+
},
|
|
2693
|
+
"&:not([data-disabled])[data-selected]": {
|
|
2694
|
+
[varNames.color.bg]: solid.bg[2],
|
|
2695
|
+
[varNames.color.border]: solid.border[3],
|
|
2696
|
+
[varNames.color.fg]: solid.fg[0],
|
|
2697
|
+
[varNames.color.muted.fg]: solid.fg[4]
|
|
2698
|
+
},
|
|
2699
|
+
"&[data-disabled]": {
|
|
2700
|
+
[varNames.color.bg]: vars.color.default.tinted.bg[1],
|
|
2701
|
+
[varNames.color.border]: vars.color.default.tinted.border[0],
|
|
2702
|
+
[varNames.color.fg]: vars.color.default.tinted.fg[2],
|
|
2703
|
+
[varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
}, primitive$i[`.button.${variantMap.ghost}.${toneMap$1[tone]}`] = {
|
|
2707
|
+
[varNames.color.bg]: tinted.bg[0],
|
|
2708
|
+
[varNames.color.border]: tinted.border[1],
|
|
2709
|
+
[varNames.color.fg]: tinted.fg[2],
|
|
2710
|
+
"--button-box-shadow": ["inset 0 0 0 var(--button-border-width) var(--color-border)", "inset 0 -1.5px 0 0.5px var(--color-shadow-umbra)"].join(","),
|
|
2711
|
+
"@nest": {
|
|
2712
|
+
"&:not([data-disabled]):hover": {
|
|
2713
|
+
[varNames.color.bg]: tinted.bg[1],
|
|
2714
|
+
[varNames.color.border]: tinted.border[2],
|
|
2715
|
+
[varNames.color.fg]: tinted.fg[1]
|
|
2716
|
+
// '--button-box-shadow': `inset 0 0 0 var(--button-border-width) var(--color-border)`,
|
|
2717
|
+
},
|
|
2718
|
+
"&:not([data-disabled]):active": {
|
|
2719
|
+
[varNames.color.bg]: tinted.bg[2],
|
|
2720
|
+
[varNames.color.border]: tinted.border[3],
|
|
2721
|
+
[varNames.color.fg]: tinted.fg[1],
|
|
2722
|
+
"--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
|
|
2723
|
+
},
|
|
2724
|
+
"&:not([data-disabled])[data-selected]": {
|
|
2725
|
+
[varNames.color.bg]: tinted.bg[2],
|
|
2726
|
+
[varNames.color.border]: tinted.border[3],
|
|
2727
|
+
[varNames.color.fg]: tinted.fg[1],
|
|
2728
|
+
"--button-box-shadow": "inset 0 0 0 var(--button-border-width) var(--color-border)"
|
|
2729
|
+
},
|
|
2730
|
+
"&[data-disabled]": {
|
|
2731
|
+
[varNames.color.bg]: vars.color.default.tinted.bg[0],
|
|
2732
|
+
[varNames.color.border]: vars.color.default.tinted.border[0],
|
|
2733
|
+
[varNames.color.fg]: vars.color.default.tinted.fg[2]
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
}, primitive$i[`.button.${variantMap.bleed}.${toneMap$1[tone]}`] = {
|
|
2737
|
+
boxShadow: "none",
|
|
2738
|
+
[varNames.color.bg]: tinted.bg[0],
|
|
2739
|
+
[varNames.color.border]: tinted.border[1],
|
|
2740
|
+
[varNames.color.fg]: tinted.fg[2],
|
|
2741
|
+
[varNames.color.muted.fg]: tinted.fg[4],
|
|
2742
|
+
"--button-box-shadow": "none",
|
|
2743
|
+
"@nest": {
|
|
2744
|
+
"&:not([data-disabled]):hover": {
|
|
2745
|
+
[varNames.color.bg]: tinted.bg[1],
|
|
2746
|
+
[varNames.color.border]: tinted.border[2],
|
|
2747
|
+
[varNames.color.fg]: tinted.fg[1],
|
|
2748
|
+
[varNames.color.muted.fg]: tinted.fg[3]
|
|
2749
|
+
},
|
|
2750
|
+
"&:not([data-disabled]):active": {
|
|
2751
|
+
[varNames.color.bg]: tinted.bg[2],
|
|
2752
|
+
[varNames.color.border]: tinted.border[3],
|
|
2753
|
+
[varNames.color.fg]: tinted.fg[1],
|
|
2754
|
+
[varNames.color.muted.fg]: tinted.fg[3]
|
|
2755
|
+
},
|
|
2756
|
+
"&:not([data-disabled])[data-selected]": {
|
|
2757
|
+
[varNames.color.bg]: tinted.bg[2],
|
|
2758
|
+
[varNames.color.border]: tinted.border[3],
|
|
2759
|
+
[varNames.color.fg]: tinted.fg[1],
|
|
2760
|
+
[varNames.color.muted.fg]: tinted.fg[3]
|
|
2761
|
+
},
|
|
2762
|
+
"&[data-disabled]": {
|
|
2763
|
+
[varNames.color.bg]: vars.color.default.tinted.bg[0],
|
|
2764
|
+
[varNames.color.border]: vars.color.default.tinted.border[0],
|
|
2765
|
+
[varNames.color.fg]: vars.color.default.tinted.fg[2],
|
|
2766
|
+
[varNames.color.muted.fg]: vars.color.default.tinted.fg[1]
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
};
|
|
2770
|
+
}
|
|
2771
|
+
const buttonStyle = {
|
|
2772
|
+
layers: {
|
|
2773
|
+
primitive: primitive$i
|
|
2774
|
+
}
|
|
1727
2775
|
}, toneMap = {
|
|
1728
2776
|
transparent: "canvas",
|
|
1729
2777
|
default: "surface",
|
|
@@ -1734,8 +2782,8 @@ const buttonRules = {
|
|
|
1734
2782
|
caution: "caution",
|
|
1735
2783
|
critical: "critical",
|
|
1736
2784
|
inherit: void 0
|
|
1737
|
-
},
|
|
1738
|
-
card: {
|
|
2785
|
+
}, primitive$h = {
|
|
2786
|
+
".card": {
|
|
1739
2787
|
backgroundColor: vars.color.bg,
|
|
1740
2788
|
color: vars.color.fg,
|
|
1741
2789
|
[varNames.color.bg]: vars.color.tinted.default.bg[0],
|
|
@@ -1744,126 +2792,40 @@ const buttonRules = {
|
|
|
1744
2792
|
[varNames.color.muted.bg]: vars.color.tinted.default.bg[1],
|
|
1745
2793
|
[varNames.color.muted.fg]: vars.color.tinted.default.fg[4],
|
|
1746
2794
|
"@nest": {
|
|
1747
|
-
...buildCardTonesRules(),
|
|
1748
|
-
"&[data-checkered]": {
|
|
1749
|
-
"--card-bg-image": "repeating-conic-gradient(var(--color-tinted-default-bg-0) 0% 25%, var(--color-tinted-default-bg-1) 0% 50%)",
|
|
1750
|
-
backgroundSize: "var(--space-3) var(--space-3)",
|
|
1751
|
-
backgroundPosition: "50% 50%",
|
|
1752
|
-
backgroundImage: "var(--card-bg-image)"
|
|
1753
|
-
},
|
|
1754
|
-
"&:is(a)": {
|
|
1755
|
-
outline: "none",
|
|
1756
|
-
textDecoration: "none",
|
|
1757
|
-
"@nest": {
|
|
1758
|
-
"&:not(:disabled)": {
|
|
1759
|
-
"@nest": {
|
|
1760
|
-
"&:hover": {
|
|
1761
|
-
"--color-bg": "var(--color-tinted-default-bg-1)",
|
|
1762
|
-
"--color-fg": "var(--color-tinted-default-fg-0)",
|
|
1763
|
-
"--color-muted-bg": "var(--color-tinted-default-bg-2)",
|
|
1764
|
-
"--color-muted-fg": "var(--color-tinted-default-fg-3)"
|
|
1765
|
-
// '--color-icon': 'var(--color-tinted-default-fg-1)',
|
|
1766
|
-
},
|
|
1767
|
-
"&:active, &[data-pressed]": {
|
|
1768
|
-
"--color-bg": "var(--color-tinted-default-bg-2)",
|
|
1769
|
-
"--color-fg": "var(--color-tinted-default-fg-1)",
|
|
1770
|
-
"--color-muted-bg": "var(--color-tinted-default-bg-3)",
|
|
1771
|
-
"--color-muted-fg": "var(--color-tinted-default-fg-4)"
|
|
1772
|
-
// '--color-icon': 'var(--color-tinted-default-fg-1)',
|
|
1773
|
-
},
|
|
1774
|
-
//
|
|
1775
|
-
"&[data-selectable]:focus, &[data-selected]": {
|
|
1776
|
-
"--color-bg": "var(--color-solid-default-bg-1)",
|
|
1777
|
-
"--color-fg": "var(--color-solid-default-fg-1)",
|
|
1778
|
-
"--color-muted-bg": "var(--color-solid-default-bg-0)",
|
|
1779
|
-
"--color-muted-fg": "var(--color-solid-default-fg-3)"
|
|
1780
|
-
// '--color-icon': 'var(--color-solid-default-fg-1)',
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
},
|
|
1786
2795
|
"&:is(button)": {
|
|
1787
2796
|
WebkitFontSmoothing: "inherit",
|
|
1788
2797
|
appearance: "none",
|
|
1789
2798
|
outline: "none",
|
|
1790
2799
|
font: "inherit",
|
|
1791
2800
|
textAlign: "inherit",
|
|
1792
|
-
border:
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
"
|
|
1799
|
-
"&:not(:disabled)": {
|
|
1800
|
-
"@nest": {
|
|
1801
|
-
"&:hover": {
|
|
1802
|
-
"--color-bg": "var(--color-tinted-default-bg-1)",
|
|
1803
|
-
"--color-fg": "var(--color-tinted-default-fg-1)",
|
|
1804
|
-
"--color-muted-bg": "var(--color-tinted-default-bg-2)",
|
|
1805
|
-
"--color-muted-fg": "var(--color-tinted-default-fg-3)"
|
|
1806
|
-
// '--color-icon': 'var(--color-tinted-default-fg-1)',
|
|
1807
|
-
},
|
|
1808
|
-
"&:active": {
|
|
1809
|
-
"--color-bg": "var(--color-tinted-default-bg-2)",
|
|
1810
|
-
"--color-fg": "var(--color-tinted-default-fg-1)",
|
|
1811
|
-
"--color-muted-bg": "var(--color-tinted-default-bg-3)",
|
|
1812
|
-
"--color-muted-fg": "var(--color-tinted-default-fg-4)"
|
|
1813
|
-
// '--color-icon': 'var(--color-tinted-default-fg-1)',
|
|
1814
|
-
},
|
|
1815
|
-
"&[data-pressed]": {
|
|
1816
|
-
"--color-bg": "var(--color-tinted-default-bg-2)",
|
|
1817
|
-
"--color-fg": "var(--color-tinted-default-fg-1)",
|
|
1818
|
-
"--color-muted-bg": "var(--color-tinted-default-bg-3)",
|
|
1819
|
-
"--color-muted-fg": "var(--color-tinted-default-fg-4)"
|
|
1820
|
-
// '--color-icon': 'var(--color-tinted-default-fg-1)',
|
|
1821
|
-
},
|
|
1822
|
-
// &:focus,
|
|
1823
|
-
"&[data-selectable]:focus, &[data-selected]": {
|
|
1824
|
-
"--color-bg": "var(--color-solid-default-bg-2)",
|
|
1825
|
-
"--color-border": "var(--color-solid-default-border-0)",
|
|
1826
|
-
"--color-fg": "var(--color-solid-default-fg-1)",
|
|
1827
|
-
"--color-muted-bg": "var(--color-solid-default-bg-3)",
|
|
1828
|
-
"--color-muted-fg": "var(--color-solid-default-fg-4)"
|
|
1829
|
-
// '--color-icon': 'var(--color-solid-default-fg-1)',
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
},
|
|
1833
|
-
"&:disabled": {
|
|
1834
|
-
"--color-bg": "var(--color-tinted-default-bg-0)",
|
|
1835
|
-
"--color-fg": "var(--color-tinted-default-border-2)",
|
|
1836
|
-
"--color-muted-bg": "var(--color-tinted-default-bg-1)",
|
|
1837
|
-
"--color-muted-fg": "var(--color-tinted-default-border-1)"
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
2801
|
+
border: "none",
|
|
2802
|
+
// @ts-expect-error - TODO: fix
|
|
2803
|
+
width: ["-moz-available", "-webkit-fill-available", "fill-available"]
|
|
2804
|
+
},
|
|
2805
|
+
"&:is(a)": {
|
|
2806
|
+
outline: "none",
|
|
2807
|
+
textDecoration: "none"
|
|
1840
2808
|
},
|
|
1841
2809
|
"&:is(pre)": {
|
|
1842
|
-
font: "inherit"
|
|
2810
|
+
font: "inherit",
|
|
2811
|
+
whiteSpace: "inherit"
|
|
1843
2812
|
}
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
// ...acc,
|
|
1861
|
-
// [`--card-badge-${tone}-bg-color`]: `var(--color-badge-${tone}-bg)`,
|
|
1862
|
-
// [`--card-badge-${tone}-dot-color`]: `var(--color-badge-${tone}-dot)`,
|
|
1863
|
-
// [`--card-badge-${tone}-fg-color`]: `var(--color-badge-${tone}-fg)`,
|
|
1864
|
-
// [`--card-badge-${tone}-icon-color`]: `var(--color-badge-${tone}-icon)`,
|
|
1865
|
-
// }
|
|
1866
|
-
// }, {} as Properties),
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
};
|
|
2816
|
+
for (const scheme of theme.THEME_COLOR_SCHEMES) {
|
|
2817
|
+
const schemeProps = {
|
|
2818
|
+
colorScheme: scheme
|
|
2819
|
+
};
|
|
2820
|
+
for (const tone of theme.THEME_COLOR_CARD_TONES) {
|
|
2821
|
+
const _varNames = varNames.color[tone], _vars = vars.color[scheme][tone];
|
|
2822
|
+
_assignToneProps(schemeProps, _varNames, _vars);
|
|
2823
|
+
}
|
|
2824
|
+
primitive$h[`.card.${scheme}`] = schemeProps;
|
|
2825
|
+
}
|
|
2826
|
+
for (const tone of theme.THEME_COLOR_CARD_TONES) {
|
|
2827
|
+
const _varNames = varNames.color, _vars = vars.color[tone], toneProps = {};
|
|
2828
|
+
_assignToneProps(toneProps, _varNames, _vars), Object.assign(toneProps, {
|
|
1867
2829
|
"--card-bg-color": vars.color.bg,
|
|
1868
2830
|
"--card-bg2-color": vars.color.muted.bg,
|
|
1869
2831
|
"--card-border-color": vars.color.border,
|
|
@@ -1878,9 +2840,7 @@ const buttonRules = {
|
|
|
1878
2840
|
"--card-link-color": vars.color.link.fg,
|
|
1879
2841
|
"--card-link-fg-color": vars.color.link.fg,
|
|
1880
2842
|
"--card-muted-bg-color": vars.color.muted.bg,
|
|
1881
|
-
// 'var(--color-muted-bg)', // vars.color.tinted.default.bg[1],
|
|
1882
2843
|
"--card-muted-fg-color": vars.color.muted.fg,
|
|
1883
|
-
// vars.color.tinted.default.fg[4],
|
|
1884
2844
|
"--card-shadow-outline-color": vars.color.shadow.outline,
|
|
1885
2845
|
"--card-shadow-umbra-color": vars.color.shadow.umbra,
|
|
1886
2846
|
"--card-shadow-penumbra-color": vars.color.shadow.penumbra,
|
|
@@ -1889,181 +2849,92 @@ const buttonRules = {
|
|
|
1889
2849
|
// '--card-skeleton-to-color': 'var(--color-skeleton-to)',
|
|
1890
2850
|
"--card-hairline-soft-color": vars.color.tinted.default.border[1],
|
|
1891
2851
|
"--card-hairline-hard-color": vars.color.tinted.default.border[2]
|
|
2852
|
+
}), primitive$h[`.card.${toneMap[tone]}`] = toneProps;
|
|
2853
|
+
}
|
|
2854
|
+
const cardStyle = {
|
|
2855
|
+
layers: {
|
|
2856
|
+
primitive: primitive$h
|
|
1892
2857
|
}
|
|
1893
2858
|
};
|
|
1894
|
-
function
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
};
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
[
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2859
|
+
function _assignToneProps(toneProps, _varNames, _vars) {
|
|
2860
|
+
Object.assign(toneProps, {
|
|
2861
|
+
[_varNames.accent.fg]: _vars.accent.fg
|
|
2862
|
+
});
|
|
2863
|
+
for (const hue of theme.THEME_COLOR_AVATAR_COLORS)
|
|
2864
|
+
toneProps[`${_varNames.avatar[hue].bg}`] = _vars.avatar[hue].bg, toneProps[`${_varNames.avatar[hue].fg}`] = _vars.avatar[hue].fg;
|
|
2865
|
+
Object.assign(toneProps, {
|
|
2866
|
+
[_varNames.backdrop]: _vars.backdrop,
|
|
2867
|
+
[_varNames.focusRing]: _vars.focusRing,
|
|
2868
|
+
[_varNames.link.fg]: _vars.link.fg,
|
|
2869
|
+
[_varNames.shadow.outline]: _vars.shadow.outline,
|
|
2870
|
+
[_varNames.shadow.umbra]: _vars.shadow.umbra,
|
|
2871
|
+
[_varNames.shadow.penumbra]: _vars.shadow.penumbra,
|
|
2872
|
+
[_varNames.shadow.ambient]: _vars.shadow.ambient,
|
|
2873
|
+
[_varNames.token.atrule]: _vars.token.atrule,
|
|
2874
|
+
[_varNames.token.attrName]: _vars.token.attrName,
|
|
2875
|
+
[_varNames.token.attrValue]: _vars.token.attrValue,
|
|
2876
|
+
[_varNames.token.attribute]: _vars.token.attribute,
|
|
2877
|
+
[_varNames.token.boolean]: _vars.token.boolean,
|
|
2878
|
+
[_varNames.token.builtin]: _vars.token.builtin,
|
|
2879
|
+
[_varNames.token.cdata]: _vars.token.cdata,
|
|
2880
|
+
[_varNames.token.char]: _vars.token.char,
|
|
2881
|
+
[_varNames.token.class]: _vars.token.class,
|
|
2882
|
+
[_varNames.token.className]: _vars.token.className,
|
|
2883
|
+
[_varNames.token.comment]: _vars.token.comment,
|
|
2884
|
+
[_varNames.token.constant]: _vars.token.constant,
|
|
2885
|
+
[_varNames.token.deleted]: _vars.token.deleted,
|
|
2886
|
+
[_varNames.token.doctype]: _vars.token.doctype,
|
|
2887
|
+
[_varNames.token.entity]: _vars.token.entity,
|
|
2888
|
+
[_varNames.token.function]: _vars.token.function,
|
|
2889
|
+
[_varNames.token.hexcode]: _vars.token.hexcode,
|
|
2890
|
+
[_varNames.token.id]: _vars.token.id,
|
|
2891
|
+
[_varNames.token.important]: _vars.token.important,
|
|
2892
|
+
[_varNames.token.inserted]: _vars.token.inserted,
|
|
2893
|
+
[_varNames.token.keyword]: _vars.token.keyword,
|
|
2894
|
+
[_varNames.token.number]: _vars.token.number,
|
|
2895
|
+
[_varNames.token.operator]: _vars.token.operator,
|
|
2896
|
+
[_varNames.token.prolog]: _vars.token.prolog,
|
|
2897
|
+
[_varNames.token.property]: _vars.token.property,
|
|
2898
|
+
[_varNames.token.pseudoClass]: _vars.token.pseudoClass,
|
|
2899
|
+
[_varNames.token.pseudoElement]: _vars.token.pseudoElement,
|
|
2900
|
+
[_varNames.token.punctuation]: _vars.token.punctuation,
|
|
2901
|
+
[_varNames.token.regex]: _vars.token.regex,
|
|
2902
|
+
[_varNames.token.selector]: _vars.token.selector,
|
|
2903
|
+
[_varNames.token.string]: _vars.token.string,
|
|
2904
|
+
[_varNames.token.symbol]: _vars.token.symbol,
|
|
2905
|
+
[_varNames.token.tag]: _vars.token.tag,
|
|
2906
|
+
[_varNames.token.unit]: _vars.token.unit,
|
|
2907
|
+
[_varNames.token.url]: _vars.token.url,
|
|
2908
|
+
[_varNames.token.variable]: _vars.token.variable
|
|
2909
|
+
});
|
|
2910
|
+
for (const variant of ["solid", "tinted"])
|
|
2911
|
+
for (const elementTone of theme.THEME_COLOR_STATE_TONES) {
|
|
2912
|
+
const __varNames = _varNames[variant][elementTone], __vars = _vars[variant][elementTone];
|
|
2913
|
+
Object.assign(toneProps, {
|
|
2914
|
+
[__varNames.bg[0]]: __vars.bg[0],
|
|
2915
|
+
[__varNames.bg[1]]: __vars.bg[1],
|
|
2916
|
+
[__varNames.bg[2]]: __vars.bg[2],
|
|
2917
|
+
[__varNames.bg[3]]: __vars.bg[3],
|
|
2918
|
+
[__varNames.bg[4]]: __vars.bg[4],
|
|
2919
|
+
[__varNames.border[0]]: __vars.border[0],
|
|
2920
|
+
[__varNames.border[1]]: __vars.border[1],
|
|
2921
|
+
[__varNames.border[2]]: __vars.border[2],
|
|
2922
|
+
[__varNames.border[3]]: __vars.border[3],
|
|
2923
|
+
[__varNames.border[4]]: __vars.border[4],
|
|
2924
|
+
[__varNames.fg[0]]: __vars.fg[0],
|
|
2925
|
+
[__varNames.fg[1]]: __vars.fg[1],
|
|
2926
|
+
[__varNames.fg[2]]: __vars.fg[2],
|
|
2927
|
+
[__varNames.fg[3]]: __vars.fg[3],
|
|
2928
|
+
[__varNames.fg[4]]: __vars.fg[4]
|
|
1958
2929
|
});
|
|
1959
2930
|
}
|
|
1960
|
-
rules2[`&.${scheme}`] = props;
|
|
1961
|
-
}
|
|
1962
|
-
for (const cardTone of theme.THEME_COLOR_CARD_TONES) {
|
|
1963
|
-
const source = vars.color[cardTone], target = varNames.color;
|
|
1964
|
-
rules2[`&.${toneMap[cardTone]}`] = {
|
|
1965
|
-
...buildCardAvatarColorProperties({
|
|
1966
|
-
source,
|
|
1967
|
-
target
|
|
1968
|
-
}),
|
|
1969
|
-
[target.backdrop]: source.backdrop,
|
|
1970
|
-
[target.focusRing]: source.focusRing,
|
|
1971
|
-
[target.link.fg]: source.link.fg,
|
|
1972
|
-
[target.shadow.outline]: source.shadow.outline,
|
|
1973
|
-
[target.shadow.umbra]: source.shadow.umbra,
|
|
1974
|
-
[target.shadow.penumbra]: source.shadow.penumbra,
|
|
1975
|
-
[target.shadow.ambient]: source.shadow.ambient,
|
|
1976
|
-
[target.token.atrule]: source.token.atrule,
|
|
1977
|
-
[target.token.attrName]: source.token.attrName,
|
|
1978
|
-
[target.token.attrValue]: source.token.attrValue,
|
|
1979
|
-
[target.token.attribute]: source.token.attribute,
|
|
1980
|
-
[target.token.boolean]: source.token.boolean,
|
|
1981
|
-
[target.token.builtin]: source.token.builtin,
|
|
1982
|
-
[target.token.cdata]: source.token.cdata,
|
|
1983
|
-
[target.token.char]: source.token.char,
|
|
1984
|
-
[target.token.class]: source.token.class,
|
|
1985
|
-
[target.token.className]: source.token.className,
|
|
1986
|
-
[target.token.comment]: source.token.comment,
|
|
1987
|
-
[target.token.constant]: source.token.constant,
|
|
1988
|
-
[target.token.deleted]: source.token.deleted,
|
|
1989
|
-
[target.token.doctype]: source.token.doctype,
|
|
1990
|
-
[target.token.entity]: source.token.entity,
|
|
1991
|
-
[target.token.function]: source.token.function,
|
|
1992
|
-
[target.token.hexcode]: source.token.hexcode,
|
|
1993
|
-
[target.token.id]: source.token.id,
|
|
1994
|
-
[target.token.important]: source.token.important,
|
|
1995
|
-
[target.token.inserted]: source.token.inserted,
|
|
1996
|
-
[target.token.keyword]: source.token.keyword,
|
|
1997
|
-
[target.token.number]: source.token.number,
|
|
1998
|
-
[target.token.operator]: source.token.operator,
|
|
1999
|
-
[target.token.prolog]: source.token.prolog,
|
|
2000
|
-
[target.token.property]: source.token.property,
|
|
2001
|
-
[target.token.pseudoClass]: source.token.pseudoClass,
|
|
2002
|
-
[target.token.pseudoElement]: source.token.pseudoElement,
|
|
2003
|
-
[target.token.punctuation]: source.token.punctuation,
|
|
2004
|
-
[target.token.regex]: source.token.regex,
|
|
2005
|
-
[target.token.selector]: source.token.selector,
|
|
2006
|
-
[target.token.string]: source.token.string,
|
|
2007
|
-
[target.token.symbol]: source.token.symbol,
|
|
2008
|
-
[target.token.tag]: source.token.tag,
|
|
2009
|
-
[target.token.unit]: source.token.unit,
|
|
2010
|
-
[target.token.url]: source.token.url,
|
|
2011
|
-
[target.token.variable]: source.token.variable,
|
|
2012
|
-
...buildCardColorVariantProperties({
|
|
2013
|
-
source: source.solid,
|
|
2014
|
-
target: target.solid
|
|
2015
|
-
}),
|
|
2016
|
-
...buildCardColorVariantProperties({
|
|
2017
|
-
source: source.tinted,
|
|
2018
|
-
target: target.tinted
|
|
2019
|
-
})
|
|
2020
|
-
};
|
|
2021
|
-
}
|
|
2022
|
-
return rules2;
|
|
2023
|
-
}
|
|
2024
|
-
function buildCardAvatarColorProperties(options) {
|
|
2025
|
-
const {
|
|
2026
|
-
source,
|
|
2027
|
-
target
|
|
2028
|
-
} = options, props = {};
|
|
2029
|
-
for (const hue of theme.HUES)
|
|
2030
|
-
Object.assign(props, {
|
|
2031
|
-
[target.avatar[hue].bg]: source.avatar[hue].bg,
|
|
2032
|
-
[target.avatar[hue].fg]: source.avatar[hue].fg
|
|
2033
|
-
});
|
|
2034
|
-
return props;
|
|
2035
|
-
}
|
|
2036
|
-
function buildCardColorVariantProperties(options) {
|
|
2037
|
-
const {
|
|
2038
|
-
source,
|
|
2039
|
-
target
|
|
2040
|
-
} = options, props = {};
|
|
2041
|
-
for (const elementTone of theme.THEME_COLOR_STATE_TONES)
|
|
2042
|
-
Object.assign(props, {
|
|
2043
|
-
[target[elementTone].bg[0]]: source[elementTone].bg[0],
|
|
2044
|
-
[target[elementTone].bg[1]]: source[elementTone].bg[1],
|
|
2045
|
-
[target[elementTone].bg[2]]: source[elementTone].bg[2],
|
|
2046
|
-
[target[elementTone].bg[3]]: source[elementTone].bg[3],
|
|
2047
|
-
[target[elementTone].bg[4]]: source[elementTone].bg[4],
|
|
2048
|
-
[target[elementTone].border[0]]: source[elementTone].border[0],
|
|
2049
|
-
[target[elementTone].border[1]]: source[elementTone].border[1],
|
|
2050
|
-
[target[elementTone].border[2]]: source[elementTone].border[2],
|
|
2051
|
-
[target[elementTone].border[3]]: source[elementTone].border[3],
|
|
2052
|
-
[target[elementTone].border[4]]: source[elementTone].border[4],
|
|
2053
|
-
[target[elementTone].fg[0]]: source[elementTone].fg[0],
|
|
2054
|
-
[target[elementTone].fg[1]]: source[elementTone].fg[1],
|
|
2055
|
-
[target[elementTone].fg[2]]: source[elementTone].fg[2],
|
|
2056
|
-
[target[elementTone].fg[3]]: source[elementTone].fg[3],
|
|
2057
|
-
[target[elementTone].fg[4]]: source[elementTone].fg[4]
|
|
2058
|
-
});
|
|
2059
|
-
return props;
|
|
2060
2931
|
}
|
|
2061
|
-
const
|
|
2062
|
-
checkbox: {
|
|
2932
|
+
const primitive$g = {
|
|
2933
|
+
".checkbox": {
|
|
2063
2934
|
position: "relative",
|
|
2064
2935
|
display: "inline-block"
|
|
2065
2936
|
},
|
|
2066
|
-
"checkbox-input": {
|
|
2937
|
+
".checkbox-input": {
|
|
2067
2938
|
position: "absolute",
|
|
2068
2939
|
top: 0,
|
|
2069
2940
|
left: 0,
|
|
@@ -2186,8 +3057,12 @@ const checkboxRules = {
|
|
|
2186
3057
|
}
|
|
2187
3058
|
}
|
|
2188
3059
|
}
|
|
2189
|
-
},
|
|
2190
|
-
|
|
3060
|
+
}, checkboxStyle = {
|
|
3061
|
+
layers: {
|
|
3062
|
+
primitive: primitive$g
|
|
3063
|
+
}
|
|
3064
|
+
}, primitive$f = {
|
|
3065
|
+
".code": {
|
|
2191
3066
|
"--font-weight-regular": "var(--font-code-weight-regular)",
|
|
2192
3067
|
"--font-weight-medium": "var(--font-code-weight-medium)",
|
|
2193
3068
|
"--font-weight-semibold": "var(--font-code-weight-semibold)",
|
|
@@ -2219,59 +3094,33 @@ const checkboxRules = {
|
|
|
2219
3094
|
verticalAlign: "baseline"
|
|
2220
3095
|
}
|
|
2221
3096
|
}
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
"--font-
|
|
2227
|
-
"--font-
|
|
2228
|
-
"--font-
|
|
2229
|
-
"--font-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
}),
|
|
2241
|
-
...responsiveRules("code-2", {
|
|
2242
|
-
"--font-size": "var(--font-code-2-size)",
|
|
2243
|
-
"--font-line-height": "var(--font-code-2-line-height)",
|
|
2244
|
-
"--font-letter-spacing": "var(--font-code-2-letter-spacing)",
|
|
2245
|
-
"--font-icon-size": "var(--font-code-2-icon-size)",
|
|
2246
|
-
"--font-ascender-height": "var(--font-code-2-ascender-height)",
|
|
2247
|
-
"--font-descender-height": "var(--font-code-2-descender-height)"
|
|
2248
|
-
// '--font-cap-height': 'var(--font-code-2-cap-height)',
|
|
2249
|
-
}),
|
|
2250
|
-
...responsiveRules("code-3", {
|
|
2251
|
-
"--font-size": "var(--font-code-3-size)",
|
|
2252
|
-
"--font-line-height": "var(--font-code-3-line-height)",
|
|
2253
|
-
"--font-letter-spacing": "var(--font-code-3-letter-spacing)",
|
|
2254
|
-
"--font-icon-size": "var(--font-code-3-icon-size)",
|
|
2255
|
-
"--font-ascender-height": "var(--font-code-3-ascender-height)",
|
|
2256
|
-
"--font-descender-height": "var(--font-code-3-descender-height)"
|
|
2257
|
-
// '--font-cap-height': 'var(--font-code-3-cap-height)',
|
|
2258
|
-
}),
|
|
2259
|
-
...responsiveRules("code-4", {
|
|
2260
|
-
"--font-size": "var(--font-code-4-size)",
|
|
2261
|
-
"--font-line-height": "var(--font-code-4-line-height)",
|
|
2262
|
-
"--font-letter-spacing": "var(--font-code-4-letter-spacing)",
|
|
2263
|
-
"--font-icon-size": "var(--font-code-4-icon-size)",
|
|
2264
|
-
"--font-ascender-height": "var(--font-code-4-ascender-height)",
|
|
2265
|
-
"--font-descender-height": "var(--font-code-4-descender-height)"
|
|
2266
|
-
// '--font-cap-height': 'var(--font-code-4-cap-height)',
|
|
2267
|
-
})
|
|
2268
|
-
}, containerRules = {
|
|
2269
|
-
container: {
|
|
3097
|
+
}
|
|
3098
|
+
};
|
|
3099
|
+
for (const size of theme.FONT_CODE_SIZE)
|
|
3100
|
+
_responsiveRule(primitive$f, `code-${size}`, {
|
|
3101
|
+
"--font-size": `var(--font-code-${size}-size)`,
|
|
3102
|
+
"--font-line-height": `var(--font-code-${size}-line-height)`,
|
|
3103
|
+
"--font-letter-spacing": `var(--font-code-${size}-letter-spacing)`,
|
|
3104
|
+
"--font-icon-size": `var(--font-code-${size}-icon-size)`,
|
|
3105
|
+
"--font-ascender-height": `var(--font-code-${size}-ascender-height)`,
|
|
3106
|
+
"--font-descender-height": `var(--font-code-${size}-descender-height)`
|
|
3107
|
+
// '--font-cap-height': `var(--font-code-${size}-cap-height)`,
|
|
3108
|
+
});
|
|
3109
|
+
const codeStyle = {
|
|
3110
|
+
layers: {
|
|
3111
|
+
primitive: primitive$f
|
|
3112
|
+
}
|
|
3113
|
+
}, primitive$e = {
|
|
3114
|
+
".container": {
|
|
2270
3115
|
margin: "0 auto",
|
|
2271
3116
|
width: "100%"
|
|
2272
3117
|
}
|
|
2273
|
-
},
|
|
2274
|
-
|
|
3118
|
+
}, containerStyle = {
|
|
3119
|
+
layers: {
|
|
3120
|
+
primitive: primitive$e
|
|
3121
|
+
}
|
|
3122
|
+
}, primitive$d = {
|
|
3123
|
+
".heading": {
|
|
2275
3124
|
"--font-weight-regular": "var(--font-heading-weight-regular)",
|
|
2276
3125
|
"--font-weight-medium": "var(--font-heading-weight-medium)",
|
|
2277
3126
|
"--font-weight-semibold": "var(--font-heading-weight-semibold)",
|
|
@@ -2286,68 +3135,29 @@ const checkboxRules = {
|
|
|
2286
3135
|
}
|
|
2287
3136
|
}
|
|
2288
3137
|
},
|
|
2289
|
-
// 'heading-accent': {
|
|
3138
|
+
// '.heading-accent': {
|
|
2290
3139
|
// '--color-fg': 'var(--color-accent-fg)',
|
|
2291
3140
|
// },
|
|
2292
|
-
"heading-muted": {
|
|
3141
|
+
".heading-muted": {
|
|
2293
3142
|
"--color-fg": "var(--color-tinted-default-fg-4)"
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
"--font-
|
|
2299
|
-
"--font-
|
|
2300
|
-
"--font-
|
|
2301
|
-
"--font-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
}),
|
|
2313
|
-
...responsiveRules("heading-2", {
|
|
2314
|
-
"--font-size": "var(--font-heading-2-size)",
|
|
2315
|
-
"--font-line-height": "var(--font-heading-2-line-height)",
|
|
2316
|
-
"--font-letter-spacing": "var(--font-heading-2-letter-spacing)",
|
|
2317
|
-
"--font-icon-size": "var(--font-heading-2-icon-size)",
|
|
2318
|
-
"--font-ascender-height": "var(--font-heading-2-ascender-height)",
|
|
2319
|
-
"--font-descender-height": "var(--font-heading-2-descender-height)"
|
|
2320
|
-
// '--font-cap-height': 'var(--font-heading-2-cap-height)',
|
|
2321
|
-
}),
|
|
2322
|
-
...responsiveRules("heading-3", {
|
|
2323
|
-
"--font-size": "var(--font-heading-3-size)",
|
|
2324
|
-
"--font-line-height": "var(--font-heading-3-line-height)",
|
|
2325
|
-
"--font-letter-spacing": "var(--font-heading-3-letter-spacing)",
|
|
2326
|
-
"--font-icon-size": "var(--font-heading-3-icon-size)",
|
|
2327
|
-
"--font-ascender-height": "var(--font-heading-3-ascender-height)",
|
|
2328
|
-
"--font-descender-height": "var(--font-heading-3-descender-height)"
|
|
2329
|
-
// '--font-cap-height': 'var(--font-heading-3-cap-height)',
|
|
2330
|
-
}),
|
|
2331
|
-
...responsiveRules("heading-4", {
|
|
2332
|
-
"--font-size": "var(--font-heading-4-size)",
|
|
2333
|
-
"--font-line-height": "var(--font-heading-4-line-height)",
|
|
2334
|
-
"--font-letter-spacing": "var(--font-heading-4-letter-spacing)",
|
|
2335
|
-
"--font-icon-size": "var(--font-heading-4-icon-size)",
|
|
2336
|
-
"--font-ascender-height": "var(--font-heading-4-ascender-height)",
|
|
2337
|
-
"--font-descender-height": "var(--font-heading-4-descender-height)"
|
|
2338
|
-
// '--font-cap-height': 'var(--font-heading-4-cap-height)',
|
|
2339
|
-
}),
|
|
2340
|
-
...responsiveRules("heading-5", {
|
|
2341
|
-
"--font-size": "var(--font-heading-5-size)",
|
|
2342
|
-
"--font-line-height": "var(--font-heading-5-line-height)",
|
|
2343
|
-
"--font-letter-spacing": "var(--font-heading-5-letter-spacing)",
|
|
2344
|
-
"--font-icon-size": "var(--font-heading-5-icon-size)",
|
|
2345
|
-
"--font-ascender-height": "var(--font-heading-5-ascender-height)",
|
|
2346
|
-
"--font-descender-height": "var(--font-heading-5-descender-height)"
|
|
2347
|
-
// '--font-cap-height': 'var(--font-heading-5-cap-height)',
|
|
2348
|
-
})
|
|
2349
|
-
}, kbdRules = {
|
|
2350
|
-
kbd: {
|
|
3143
|
+
}
|
|
3144
|
+
};
|
|
3145
|
+
for (const size of theme.FONT_HEADING_SIZE)
|
|
3146
|
+
_responsiveRule(primitive$d, `heading-${size}`, {
|
|
3147
|
+
"--font-size": `var(--font-heading-${size}-size)`,
|
|
3148
|
+
"--font-line-height": `var(--font-heading-${size}-line-height)`,
|
|
3149
|
+
"--font-letter-spacing": `var(--font-heading-${size}-letter-spacing)`,
|
|
3150
|
+
"--font-icon-size": `var(--font-heading-${size}-icon-size)`,
|
|
3151
|
+
"--font-ascender-height": `var(--font-heading-${size}-ascender-height)`,
|
|
3152
|
+
"--font-descender-height": `var(--font-heading-${size}-descender-height)`
|
|
3153
|
+
// '--font-cap-height': `var(--font-heading-${size}-cap-height)`,
|
|
3154
|
+
});
|
|
3155
|
+
const headingStyle = {
|
|
3156
|
+
layers: {
|
|
3157
|
+
primitive: primitive$d
|
|
3158
|
+
}
|
|
3159
|
+
}, primitive$c = {
|
|
3160
|
+
".kbd": {
|
|
2351
3161
|
// '--color-bg': 'var(--color-tinted-default-bg-1)',
|
|
2352
3162
|
// '--color-border': 'var(--color-tinted-default-border-2)',
|
|
2353
3163
|
// '--color-fg': 'var(--color-tinted-default-fg-3)',
|
|
@@ -2361,8 +3171,12 @@ const checkboxRules = {
|
|
|
2361
3171
|
}
|
|
2362
3172
|
}
|
|
2363
3173
|
}
|
|
2364
|
-
},
|
|
2365
|
-
|
|
3174
|
+
}, kbdStyle = {
|
|
3175
|
+
layers: {
|
|
3176
|
+
primitive: primitive$c
|
|
3177
|
+
}
|
|
3178
|
+
}, primitive$b = {
|
|
3179
|
+
".label": {
|
|
2366
3180
|
"--font-weight-regular": "var(--font-label-weight-regular)",
|
|
2367
3181
|
"--font-weight-medium": "var(--font-label-weight-medium)",
|
|
2368
3182
|
"--font-weight-semibold": "var(--font-label-weight-semibold)",
|
|
@@ -2378,70 +3192,33 @@ const checkboxRules = {
|
|
|
2378
3192
|
}
|
|
2379
3193
|
}
|
|
2380
3194
|
},
|
|
2381
|
-
"label-accent": {
|
|
3195
|
+
".label-accent": {
|
|
2382
3196
|
"--color-fg": "var(--color-accent-fg)"
|
|
2383
3197
|
},
|
|
2384
|
-
"label-muted": {
|
|
3198
|
+
".label-muted": {
|
|
2385
3199
|
"--color-fg": "var(--color-muted-fg)"
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
"--font-
|
|
2391
|
-
"--font-
|
|
2392
|
-
"--font-
|
|
2393
|
-
"--font-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
"--font-letter-spacing": "var(--font-label-2-letter-spacing)",
|
|
2409
|
-
"--font-icon-size": "var(--font-label-2-icon-size)",
|
|
2410
|
-
"--font-ascender-height": "var(--font-label-2-ascender-height)",
|
|
2411
|
-
"--font-descender-height": "var(--font-label-2-descender-height)"
|
|
2412
|
-
// '--font-cap-height': 'var(--font-label-2-cap-height)',
|
|
2413
|
-
}),
|
|
2414
|
-
...responsiveRules("label-3", {
|
|
2415
|
-
"--font-size": "var(--font-label-3-size)",
|
|
2416
|
-
"--font-line-height": "var(--font-label-3-line-height)",
|
|
2417
|
-
"--font-letter-spacing": "var(--font-label-3-letter-spacing)",
|
|
2418
|
-
"--font-icon-size": "var(--font-label-3-icon-size)",
|
|
2419
|
-
"--font-ascender-height": "var(--font-label-3-ascender-height)",
|
|
2420
|
-
"--font-descender-height": "var(--font-label-3-descender-height)"
|
|
2421
|
-
// '--font-cap-height': 'var(--font-label-3-cap-height)',
|
|
2422
|
-
}),
|
|
2423
|
-
...responsiveRules("label-4", {
|
|
2424
|
-
"--font-size": "var(--font-label-4-size)",
|
|
2425
|
-
"--font-line-height": "var(--font-label-4-line-height)",
|
|
2426
|
-
"--font-letter-spacing": "var(--font-label-4-letter-spacing)",
|
|
2427
|
-
"--font-icon-size": "var(--font-label-4-icon-size)",
|
|
2428
|
-
"--font-ascender-height": "var(--font-label-4-ascender-height)",
|
|
2429
|
-
"--font-descender-height": "var(--font-label-4-descender-height)"
|
|
2430
|
-
// '--font-cap-height': 'var(--font-label-4-cap-height)',
|
|
2431
|
-
}),
|
|
2432
|
-
...responsiveRules("label-5", {
|
|
2433
|
-
"--font-size": "var(--font-label-5-size)",
|
|
2434
|
-
"--font-line-height": "var(--font-label-5-line-height)",
|
|
2435
|
-
"--font-letter-spacing": "var(--font-label-5-letter-spacing)",
|
|
2436
|
-
"--font-icon-size": "var(--font-label-5-icon-size)",
|
|
2437
|
-
"--font-ascender-height": "var(--font-label-5-ascender-height)",
|
|
2438
|
-
"--font-descender-height": "var(--font-label-5-descender-height)"
|
|
2439
|
-
// '--font-cap-height': 'var(--font-label-5-cap-height)',
|
|
2440
|
-
})
|
|
2441
|
-
}, popoverRules = {
|
|
2442
|
-
//
|
|
2443
|
-
}, radioRules = {
|
|
2444
|
-
radio: {
|
|
3200
|
+
}
|
|
3201
|
+
};
|
|
3202
|
+
for (const size of theme.FONT_LABEL_SIZE)
|
|
3203
|
+
_responsiveRule(primitive$b, `label-${size}`, {
|
|
3204
|
+
"--font-size": `var(--font-label-${size}-size)`,
|
|
3205
|
+
"--font-line-height": `var(--font-label-${size}-line-height)`,
|
|
3206
|
+
"--font-letter-spacing": `var(--font-label-${size}-letter-spacing)`,
|
|
3207
|
+
"--font-icon-size": `var(--font-label-${size}-icon-size)`,
|
|
3208
|
+
"--font-ascender-height": `var(--font-label-${size}-ascender-height)`,
|
|
3209
|
+
"--font-descender-height": `var(--font-label-${size}-descender-height)`
|
|
3210
|
+
// '--font-cap-height': `var(--font-label-${size}-cap-height)`,
|
|
3211
|
+
});
|
|
3212
|
+
const labelStyle = {
|
|
3213
|
+
layers: {
|
|
3214
|
+
primitive: primitive$b
|
|
3215
|
+
}
|
|
3216
|
+
}, primitive$a = {}, popoverStyle = {
|
|
3217
|
+
layers: {
|
|
3218
|
+
primitive: primitive$a
|
|
3219
|
+
}
|
|
3220
|
+
}, primitive$9 = {
|
|
3221
|
+
".radio": {
|
|
2445
3222
|
position: "relative",
|
|
2446
3223
|
"@nest": {
|
|
2447
3224
|
"&:not([hidden])": {
|
|
@@ -2544,15 +3321,19 @@ const checkboxRules = {
|
|
|
2544
3321
|
// `
|
|
2545
3322
|
}
|
|
2546
3323
|
}
|
|
2547
|
-
},
|
|
2548
|
-
|
|
3324
|
+
}, radioStyle = {
|
|
3325
|
+
layers: {
|
|
3326
|
+
primitive: primitive$9
|
|
3327
|
+
}
|
|
3328
|
+
}, primitive$8 = {
|
|
3329
|
+
".select": {
|
|
2549
3330
|
"@nest": {
|
|
2550
3331
|
"& > select:disabled": {
|
|
2551
3332
|
opacity: 1
|
|
2552
3333
|
}
|
|
2553
3334
|
}
|
|
2554
3335
|
},
|
|
2555
|
-
"select-presentation": {
|
|
3336
|
+
".select-presentation": {
|
|
2556
3337
|
"@nest": {
|
|
2557
3338
|
"& > span": {
|
|
2558
3339
|
// place icon to the right
|
|
@@ -2562,24 +3343,32 @@ const checkboxRules = {
|
|
|
2562
3343
|
}
|
|
2563
3344
|
}
|
|
2564
3345
|
}
|
|
2565
|
-
},
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
3346
|
+
}, selectStyle = {
|
|
3347
|
+
layers: {
|
|
3348
|
+
primitive: primitive$8
|
|
3349
|
+
}
|
|
3350
|
+
}, keyframes = {
|
|
3351
|
+
"spinner-rotate": {
|
|
3352
|
+
from: {
|
|
3353
|
+
transform: "rotate(0deg)"
|
|
3354
|
+
},
|
|
3355
|
+
to: {
|
|
3356
|
+
transform: "rotate(360deg)"
|
|
2578
3357
|
}
|
|
2579
3358
|
}
|
|
2580
|
-
},
|
|
2581
|
-
|
|
2582
|
-
"
|
|
3359
|
+
}, primitive$7 = {
|
|
3360
|
+
".spinner": {},
|
|
3361
|
+
".animated-spinner-icon": {
|
|
3362
|
+
animation: "spinner-rotate 500ms linear infinite"
|
|
3363
|
+
}
|
|
3364
|
+
}, spinnerStyle = {
|
|
3365
|
+
keyframes,
|
|
3366
|
+
layers: {
|
|
3367
|
+
primitive: primitive$7
|
|
3368
|
+
}
|
|
3369
|
+
}, primitive$6 = {
|
|
3370
|
+
".switch": {},
|
|
3371
|
+
".switch-element": {
|
|
2583
3372
|
position: "absolute",
|
|
2584
3373
|
top: 0,
|
|
2585
3374
|
right: 0,
|
|
@@ -2594,7 +3383,7 @@ const checkboxRules = {
|
|
|
2594
3383
|
/* Place the input element above the representation element */
|
|
2595
3384
|
zIndex: 1
|
|
2596
3385
|
},
|
|
2597
|
-
"switch-presentation": {
|
|
3386
|
+
".switch-presentation": {
|
|
2598
3387
|
"--switch-bg-color": "var(--color-tinted-default-border-2)",
|
|
2599
3388
|
// '--switch-border-color': 'var(--color-tinted-default-border-1)',
|
|
2600
3389
|
"--switch-fg-color": "var(--color-tinted-default-bg-0)",
|
|
@@ -2665,7 +3454,7 @@ const checkboxRules = {
|
|
|
2665
3454
|
// }
|
|
2666
3455
|
// }
|
|
2667
3456
|
},
|
|
2668
|
-
"switch-track": {
|
|
3457
|
+
".switch-track": {
|
|
2669
3458
|
display: "block",
|
|
2670
3459
|
backgroundColor: "var(--switch-bg-color)",
|
|
2671
3460
|
position: "absolute",
|
|
@@ -2677,7 +3466,7 @@ const checkboxRules = {
|
|
|
2677
3466
|
// boxShadow: 'inset 0 0 0 1px var(--switch-border-color)',
|
|
2678
3467
|
transition: "box-shadow, background-color var(--input-switch-transition-duration-ms) var(--input-switch-transition-timing-function)"
|
|
2679
3468
|
},
|
|
2680
|
-
"switch-thumb": {
|
|
3469
|
+
".switch-thumb": {
|
|
2681
3470
|
// '--switch-thumb-offset': '0',
|
|
2682
3471
|
display: "block",
|
|
2683
3472
|
position: "absolute",
|
|
@@ -2725,8 +3514,12 @@ const checkboxRules = {
|
|
|
2725
3514
|
// `}
|
|
2726
3515
|
// `
|
|
2727
3516
|
}
|
|
2728
|
-
},
|
|
2729
|
-
|
|
3517
|
+
}, switchStyle = {
|
|
3518
|
+
layers: {
|
|
3519
|
+
primitive: primitive$6
|
|
3520
|
+
}
|
|
3521
|
+
}, primitive$5 = {
|
|
3522
|
+
".text": {
|
|
2730
3523
|
"--font-weight-regular": "var(--font-text-weight-regular)",
|
|
2731
3524
|
"--font-weight-medium": "var(--font-text-weight-medium)",
|
|
2732
3525
|
"--font-weight-semibold": "var(--font-text-weight-semibold)",
|
|
@@ -2750,61 +3543,35 @@ const checkboxRules = {
|
|
|
2750
3543
|
// 'text-accent': {
|
|
2751
3544
|
// '--color-fg': 'var(--color-accent-fg)',
|
|
2752
3545
|
// },
|
|
2753
|
-
"text-muted": {
|
|
3546
|
+
".text-muted": {
|
|
2754
3547
|
color: "var(--color-muted-fg)"
|
|
2755
3548
|
// '--color-fg': 'var(--color-tinted-default-fg-4)',
|
|
2756
|
-
},
|
|
2757
|
-
...responsiveRules("text-0", {
|
|
2758
|
-
"--font-size": "var(--font-text-0-size)",
|
|
2759
|
-
"--font-line-height": "var(--font-text-0-line-height)",
|
|
2760
|
-
"--font-letter-spacing": "var(--font-text-0-letter-spacing)",
|
|
2761
|
-
"--font-icon-size": "var(--font-text-0-icon-size)",
|
|
2762
|
-
"--font-ascender-height": "var(--font-text-0-ascender-height)",
|
|
2763
|
-
"--font-descender-height": "var(--font-text-0-descender-height)"
|
|
2764
|
-
// '--font-cap-height': 'var(--font-text-0-cap-height)',
|
|
2765
|
-
}),
|
|
2766
|
-
...responsiveRules("text-1", {
|
|
2767
|
-
"--font-size": "var(--font-text-1-size)",
|
|
2768
|
-
"--font-line-height": "var(--font-text-1-line-height)",
|
|
2769
|
-
"--font-letter-spacing": "var(--font-text-1-letter-spacing)",
|
|
2770
|
-
"--font-icon-size": "var(--font-text-1-icon-size)",
|
|
2771
|
-
"--font-ascender-height": "var(--font-text-1-ascender-height)",
|
|
2772
|
-
"--font-descender-height": "var(--font-text-1-descender-height)"
|
|
2773
|
-
// '--font-cap-height': 'var(--font-text-1-cap-height)',
|
|
2774
|
-
}),
|
|
2775
|
-
...responsiveRules("text-2", {
|
|
2776
|
-
"--font-size": "var(--font-text-2-size)",
|
|
2777
|
-
"--font-line-height": "var(--font-text-2-line-height)",
|
|
2778
|
-
"--font-letter-spacing": "var(--font-text-2-letter-spacing)",
|
|
2779
|
-
"--font-icon-size": "var(--font-text-2-icon-size)",
|
|
2780
|
-
"--font-ascender-height": "var(--font-text-2-ascender-height)",
|
|
2781
|
-
"--font-descender-height": "var(--font-text-2-descender-height)"
|
|
2782
|
-
// '--font-cap-height': 'var(--font-text-2-cap-height)',
|
|
2783
|
-
}),
|
|
2784
|
-
...responsiveRules("text-3", {
|
|
2785
|
-
"--font-size": "var(--font-text-3-size)",
|
|
2786
|
-
"--font-line-height": "var(--font-text-3-line-height)",
|
|
2787
|
-
"--font-letter-spacing": "var(--font-text-3-letter-spacing)",
|
|
2788
|
-
"--font-icon-size": "var(--font-text-3-icon-size)",
|
|
2789
|
-
"--font-ascender-height": "var(--font-text-3-ascender-height)",
|
|
2790
|
-
"--font-descender-height": "var(--font-text-3-descender-height)"
|
|
2791
|
-
// '--font-cap-height': 'var(--font-text-3-cap-height)',
|
|
2792
|
-
}),
|
|
2793
|
-
...responsiveRules("text-4", {
|
|
2794
|
-
"--font-size": "var(--font-text-4-size)",
|
|
2795
|
-
"--font-line-height": "var(--font-text-4-line-height)",
|
|
2796
|
-
"--font-letter-spacing": "var(--font-text-4-letter-spacing)",
|
|
2797
|
-
"--font-icon-size": "var(--font-text-4-icon-size)",
|
|
2798
|
-
"--font-ascender-height": "var(--font-text-4-ascender-height)",
|
|
2799
|
-
"--font-descender-height": "var(--font-text-4-descender-height)"
|
|
2800
|
-
// '--font-cap-height': 'var(--font-text-4-cap-height)',
|
|
2801
|
-
})
|
|
2802
|
-
}, textAreaRules = {
|
|
2803
|
-
"text-area": {
|
|
2804
|
-
//
|
|
2805
3549
|
}
|
|
2806
|
-
}
|
|
2807
|
-
|
|
3550
|
+
};
|
|
3551
|
+
for (const size of theme.FONT_TEXT_SIZE)
|
|
3552
|
+
_responsiveRule(primitive$5, `text-${size}`, {
|
|
3553
|
+
"--font-size": `var(--font-text-${size}-size)`,
|
|
3554
|
+
"--font-line-height": `var(--font-text-${size}-line-height)`,
|
|
3555
|
+
"--font-letter-spacing": `var(--font-text-${size}-letter-spacing)`,
|
|
3556
|
+
"--font-icon-size": `var(--font-text-${size}-icon-size)`,
|
|
3557
|
+
"--font-ascender-height": `var(--font-text-${size}-ascender-height)`,
|
|
3558
|
+
"--font-descender-height": `var(--font-text-${size}-descender-height)`
|
|
3559
|
+
// '--font-cap-height': `var(--font-text-${size}-cap-height)`,
|
|
3560
|
+
});
|
|
3561
|
+
const textStyle = {
|
|
3562
|
+
layers: {
|
|
3563
|
+
primitive: primitive$5
|
|
3564
|
+
}
|
|
3565
|
+
}, primitive$4 = {
|
|
3566
|
+
".text-area": {
|
|
3567
|
+
// todo
|
|
3568
|
+
}
|
|
3569
|
+
}, textAreaStyle = {
|
|
3570
|
+
layers: {
|
|
3571
|
+
primitive: primitive$4
|
|
3572
|
+
}
|
|
3573
|
+
}, primitive$3 = {
|
|
3574
|
+
".text-input": {
|
|
2808
3575
|
"--font-family": vars.font.text.family,
|
|
2809
3576
|
"@nest": {
|
|
2810
3577
|
"& > span": {
|
|
@@ -2812,7 +3579,7 @@ const checkboxRules = {
|
|
|
2812
3579
|
}
|
|
2813
3580
|
}
|
|
2814
3581
|
},
|
|
2815
|
-
"text-input-prefix": {
|
|
3582
|
+
".text-input-prefix": {
|
|
2816
3583
|
borderTop: "1px solid var(--color-border)",
|
|
2817
3584
|
borderLeft: "1px solid var(--color-border)",
|
|
2818
3585
|
borderBottom: "1px solid var(--color-border)",
|
|
@@ -2825,7 +3592,7 @@ const checkboxRules = {
|
|
|
2825
3592
|
}
|
|
2826
3593
|
}
|
|
2827
3594
|
},
|
|
2828
|
-
"text-input-suffix": {
|
|
3595
|
+
".text-input-suffix": {
|
|
2829
3596
|
borderTop: "1px solid var(--color-border)",
|
|
2830
3597
|
borderRight: "1px solid var(--color-border)",
|
|
2831
3598
|
borderBottom: "1px solid var(--color-border)",
|
|
@@ -2838,7 +3605,7 @@ const checkboxRules = {
|
|
|
2838
3605
|
}
|
|
2839
3606
|
}
|
|
2840
3607
|
},
|
|
2841
|
-
"text-input-presentation": {
|
|
3608
|
+
".text-input-presentation": {
|
|
2842
3609
|
// position: 'absolute',
|
|
2843
3610
|
// top: 0,
|
|
2844
3611
|
// left: 0,
|
|
@@ -2958,8 +3725,13 @@ const checkboxRules = {
|
|
|
2958
3725
|
// }
|
|
2959
3726
|
// }
|
|
2960
3727
|
}
|
|
2961
|
-
},
|
|
2962
|
-
|
|
3728
|
+
}, textInputStyle = {
|
|
3729
|
+
layers: {
|
|
3730
|
+
primitive: primitive$3
|
|
3731
|
+
}
|
|
3732
|
+
}, primitive$2 = {
|
|
3733
|
+
".token": {
|
|
3734
|
+
_prefix: !1,
|
|
2963
3735
|
"@nest": {
|
|
2964
3736
|
"&.atrule": {
|
|
2965
3737
|
color: "var(--color-token-atrule)"
|
|
@@ -3074,11 +3846,15 @@ const checkboxRules = {
|
|
|
3074
3846
|
}
|
|
3075
3847
|
}
|
|
3076
3848
|
}
|
|
3077
|
-
},
|
|
3078
|
-
|
|
3849
|
+
}, tokenStyle = {
|
|
3850
|
+
layers: {
|
|
3851
|
+
primitive: primitive$2
|
|
3852
|
+
}
|
|
3853
|
+
}, primitive$1 = {
|
|
3854
|
+
".tooltip": {
|
|
3079
3855
|
pointerEvents: "none"
|
|
3080
3856
|
},
|
|
3081
|
-
"tooltip-card": {
|
|
3857
|
+
".tooltip-card": {
|
|
3082
3858
|
willChange: "transform",
|
|
3083
3859
|
"@nest": {
|
|
3084
3860
|
"&[data-animate] > *": {
|
|
@@ -3088,948 +3864,209 @@ const checkboxRules = {
|
|
|
3088
3864
|
}
|
|
3089
3865
|
}
|
|
3090
3866
|
}
|
|
3091
|
-
},
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
}
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
}
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
"&:not([hidden])": {
|
|
3118
|
-
display: "inline-block"
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
|
-
}),
|
|
3122
|
-
...responsiveRules("flex", {
|
|
3123
|
-
"@nest": {
|
|
3124
|
-
"&:not([hidden])": {
|
|
3125
|
-
display: "flex"
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
}),
|
|
3129
|
-
...responsiveRules("inline-flex", {
|
|
3130
|
-
"@nest": {
|
|
3131
|
-
"&:not([hidden])": {
|
|
3132
|
-
display: "inline-flex"
|
|
3133
|
-
}
|
|
3867
|
+
}, tooltipStyle = {
|
|
3868
|
+
layers: {
|
|
3869
|
+
primitive: primitive$1
|
|
3870
|
+
}
|
|
3871
|
+
}, primitive = {
|
|
3872
|
+
".sr-only": {
|
|
3873
|
+
display: "block",
|
|
3874
|
+
width: 0,
|
|
3875
|
+
height: 0,
|
|
3876
|
+
position: "absolute",
|
|
3877
|
+
// @ts-expect-error - TODO: fix this
|
|
3878
|
+
overflow: ["hidden", "clip"]
|
|
3879
|
+
}
|
|
3880
|
+
}, srOnlyStyle = {
|
|
3881
|
+
layers: {
|
|
3882
|
+
primitive
|
|
3883
|
+
}
|
|
3884
|
+
}, systemStyle = _mergeStyles([
|
|
3885
|
+
// NOTE: order matters in CSS
|
|
3886
|
+
{
|
|
3887
|
+
// define order of layers
|
|
3888
|
+
layers: {
|
|
3889
|
+
theme: {},
|
|
3890
|
+
base: {},
|
|
3891
|
+
util: {},
|
|
3892
|
+
primitive: {}
|
|
3134
3893
|
}
|
|
3135
|
-
}
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3894
|
+
},
|
|
3895
|
+
// aspects
|
|
3896
|
+
borderStyle,
|
|
3897
|
+
displayStyle,
|
|
3898
|
+
flexStyle,
|
|
3899
|
+
flexAlignStyle,
|
|
3900
|
+
flexDirectionStyle,
|
|
3901
|
+
flexJustifyStyle,
|
|
3902
|
+
flexWrapStyle,
|
|
3903
|
+
fontStyle,
|
|
3904
|
+
gapStyle,
|
|
3905
|
+
gridAutoColumnsStyle,
|
|
3906
|
+
gridAutoFlowStyle,
|
|
3907
|
+
gridAutoRowsStyle,
|
|
3908
|
+
gridColumnsStyle,
|
|
3909
|
+
gridRowsStyle,
|
|
3910
|
+
gridColumnStyle,
|
|
3911
|
+
gridColumnStartStyle,
|
|
3912
|
+
gridColumnEndStyle,
|
|
3913
|
+
gridRowStyle,
|
|
3914
|
+
gridRowStartStyle,
|
|
3915
|
+
gridRowEndStyle,
|
|
3916
|
+
heightStyle,
|
|
3917
|
+
insetStyle,
|
|
3918
|
+
marginStyle,
|
|
3919
|
+
maxWidthStyle,
|
|
3920
|
+
outlineStyle,
|
|
3921
|
+
overflowStyle,
|
|
3922
|
+
paddingStyle,
|
|
3923
|
+
pointerEventsStyle,
|
|
3924
|
+
positionStyle,
|
|
3925
|
+
radiusStyle,
|
|
3926
|
+
shadowStyle,
|
|
3927
|
+
textOverflowStyle,
|
|
3928
|
+
widthStyle,
|
|
3929
|
+
// utils
|
|
3930
|
+
srOnlyStyle,
|
|
3931
|
+
// primitives
|
|
3932
|
+
_arrowStyle,
|
|
3933
|
+
_inputStyle,
|
|
3934
|
+
_selectableStyle,
|
|
3935
|
+
avatarStyle,
|
|
3936
|
+
badgeStyle,
|
|
3937
|
+
boxStyle,
|
|
3938
|
+
buttonStyle,
|
|
3939
|
+
cardStyle,
|
|
3940
|
+
checkboxStyle,
|
|
3941
|
+
codeStyle,
|
|
3942
|
+
containerStyle,
|
|
3943
|
+
headingStyle,
|
|
3944
|
+
kbdStyle,
|
|
3945
|
+
labelStyle,
|
|
3946
|
+
maxWidthStyle,
|
|
3947
|
+
popoverStyle,
|
|
3948
|
+
radioStyle,
|
|
3949
|
+
selectStyle,
|
|
3950
|
+
spinnerStyle,
|
|
3951
|
+
switchStyle,
|
|
3952
|
+
textAreaStyle,
|
|
3953
|
+
textInputStyle,
|
|
3954
|
+
textOverflowStyle,
|
|
3955
|
+
textStyle,
|
|
3956
|
+
tokenStyle,
|
|
3957
|
+
tooltipStyle,
|
|
3958
|
+
// components
|
|
3959
|
+
breadcrumbsStyle,
|
|
3960
|
+
dialogStyle,
|
|
3961
|
+
menuStyle,
|
|
3962
|
+
skeletonStyle,
|
|
3963
|
+
toastStyle,
|
|
3964
|
+
treeStyle
|
|
3965
|
+
]);
|
|
3966
|
+
function isRecord(value) {
|
|
3967
|
+
return value !== null && typeof value == "object" && !Array.isArray(value);
|
|
3968
|
+
}
|
|
3969
|
+
function isArray(value) {
|
|
3970
|
+
return Array.isArray(value);
|
|
3971
|
+
}
|
|
3972
|
+
function rem(value) {
|
|
3973
|
+
return value === 0 ? "0" : `${value / 16}rem`;
|
|
3974
|
+
}
|
|
3975
|
+
function px(value) {
|
|
3976
|
+
return value === 0 ? "0" : `${value}px`;
|
|
3977
|
+
}
|
|
3978
|
+
function toBoxShadow(value) {
|
|
3979
|
+
return value ? value.map((n) => px(n)).join(" ") : "none";
|
|
3980
|
+
}
|
|
3981
|
+
function compileStyle(style) {
|
|
3982
|
+
let css = "";
|
|
3983
|
+
if (style.rules && (css += compileStyleRules(style.rules)), style.keyframes && Object.keys(style.keyframes).length > 0)
|
|
3984
|
+
for (const [name, value] of Object.entries(style.keyframes)) {
|
|
3985
|
+
let keyframesCss = `@keyframes ${name} {
|
|
3986
|
+
`;
|
|
3987
|
+
for (const [key, props] of Object.entries(value))
|
|
3988
|
+
keyframesCss += ` ${key} {
|
|
3989
|
+
`, keyframesCss += compileProperties(props), keyframesCss += `}
|
|
3990
|
+
`;
|
|
3991
|
+
keyframesCss += `
|
|
3992
|
+
}
|
|
3993
|
+
`, css += keyframesCss;
|
|
3142
3994
|
}
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3995
|
+
if (style.layers && Object.keys(style.layers).length > 0)
|
|
3996
|
+
for (const [layerName, layerRules] of Object.entries(style.layers))
|
|
3997
|
+
Object.keys(layerRules).length > 0 && (css += `@layer ${PREFIX}${layerName} {
|
|
3998
|
+
`, css += compileStyleRules(layerRules), css += `}
|
|
3999
|
+
|
|
4000
|
+
`);
|
|
4001
|
+
return css;
|
|
4002
|
+
}
|
|
4003
|
+
function compileStyleRules(rules2) {
|
|
4004
|
+
let css = "";
|
|
4005
|
+
const mediaMap = /* @__PURE__ */ new Map();
|
|
4006
|
+
for (const [selector, properties] of Object.entries(rules2))
|
|
4007
|
+
if (properties) {
|
|
4008
|
+
if (properties["@media"])
|
|
4009
|
+
for (const [mediaQuery, mediaProps] of Object.entries(properties["@media"])) {
|
|
4010
|
+
const arr = mediaMap.get(mediaQuery) ?? [];
|
|
4011
|
+
arr.push({
|
|
4012
|
+
selector,
|
|
4013
|
+
props: mediaProps
|
|
4014
|
+
}), mediaMap.set(mediaQuery, arr);
|
|
4015
|
+
}
|
|
4016
|
+
css += compileStyleRule(selector, properties);
|
|
3150
4017
|
}
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
4018
|
+
for (const [mediaQuery, mediaRules] of mediaMap) {
|
|
4019
|
+
css += `@media ${mediaQuery} {
|
|
4020
|
+
`;
|
|
4021
|
+
for (const rule of mediaRules)
|
|
4022
|
+
css += compileStyleRule(rule.selector, rule.props);
|
|
4023
|
+
css += `}
|
|
4024
|
+
|
|
4025
|
+
`;
|
|
4026
|
+
}
|
|
4027
|
+
return css;
|
|
4028
|
+
}
|
|
4029
|
+
function compileStyleRule(_selector, properties) {
|
|
4030
|
+
let css = "";
|
|
4031
|
+
const {
|
|
4032
|
+
_prefix = !0,
|
|
4033
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4034
|
+
"@media": _mediaProps,
|
|
4035
|
+
"@nest": nestedProps,
|
|
4036
|
+
...restProperties
|
|
4037
|
+
} = properties, selector = _prefix ? `${_selector.replace(/\./g, `.${PREFIX}`)}` : _selector;
|
|
4038
|
+
if (Object.entries(restProperties).length && (css += `${selector} {
|
|
4039
|
+
`, css += compileProperties(restProperties), css += `}
|
|
4040
|
+
|
|
4041
|
+
`), nestedProps)
|
|
4042
|
+
for (const [_nestedSelector, nestedProperties] of Object.entries(nestedProps)) {
|
|
4043
|
+
const nestedSelector = _prefix && (nestedProperties._prefix ?? !0) ? _nestedSelector.replace(/\./g, `.${PREFIX}`) : _nestedSelector;
|
|
4044
|
+
css += `${nestedSelector.replace("&", selector)} {
|
|
4045
|
+
`, css += compileProperties(nestedProperties), css += `}
|
|
4046
|
+
|
|
4047
|
+
`;
|
|
3157
4048
|
}
|
|
3158
|
-
|
|
3159
|
-
}
|
|
3160
|
-
|
|
3161
|
-
...responsiveRules("row", {
|
|
3162
|
-
flexDirection: "row"
|
|
3163
|
-
}),
|
|
3164
|
-
...responsiveRules("column", {
|
|
3165
|
-
flexDirection: "column"
|
|
3166
|
-
}),
|
|
3167
|
-
// align
|
|
3168
|
-
...responsiveRules("align-flex-start", {
|
|
3169
|
-
alignItems: "flex-start"
|
|
3170
|
-
}),
|
|
3171
|
-
...responsiveRules("align-flex-end", {
|
|
3172
|
-
alignItems: "end"
|
|
3173
|
-
}),
|
|
3174
|
-
...responsiveRules("align-center", {
|
|
3175
|
-
alignItems: "center"
|
|
3176
|
-
}),
|
|
3177
|
-
...responsiveRules("align-stretch", {
|
|
3178
|
-
alignItems: "stretch"
|
|
3179
|
-
}),
|
|
3180
|
-
...responsiveRules("align-baseline", {
|
|
3181
|
-
alignItems: "baseline"
|
|
3182
|
-
}),
|
|
3183
|
-
// justify
|
|
3184
|
-
...responsiveRules("justify-flex-start", {
|
|
3185
|
-
justifyContent: "flex-start"
|
|
3186
|
-
}),
|
|
3187
|
-
...responsiveRules("justify-flex-end", {
|
|
3188
|
-
justifyContent: "flex-end"
|
|
3189
|
-
}),
|
|
3190
|
-
...responsiveRules("justify-center", {
|
|
3191
|
-
justifyContent: "center"
|
|
3192
|
-
}),
|
|
3193
|
-
...responsiveRules("justify-between", {
|
|
3194
|
-
justifyContent: "space-between"
|
|
3195
|
-
}),
|
|
3196
|
-
...responsiveRules("justify-around", {
|
|
3197
|
-
justifyContent: "space-around"
|
|
3198
|
-
}),
|
|
3199
|
-
...responsiveRules("justify-evenly", {
|
|
3200
|
-
justifyContent: "space-evenly"
|
|
3201
|
-
}),
|
|
3202
|
-
// wrap
|
|
3203
|
-
...responsiveRules("wrap-nowrap", {
|
|
3204
|
-
flexWrap: "nowrap"
|
|
3205
|
-
}),
|
|
3206
|
-
...responsiveRules("wrap-wrap", {
|
|
3207
|
-
flexWrap: "wrap"
|
|
3208
|
-
}),
|
|
3209
|
-
...responsiveRules("wrap-reverse", {
|
|
3210
|
-
flexWrap: "wrap-reverse"
|
|
3211
|
-
})
|
|
3212
|
-
}, flexItemRules = {
|
|
3213
|
-
...responsiveRules("flex-none", {
|
|
3214
|
-
flex: "none"
|
|
3215
|
-
}),
|
|
3216
|
-
...responsiveRules("flex-auto", {
|
|
3217
|
-
flex: "auto"
|
|
3218
|
-
}),
|
|
3219
|
-
...responsiveRules("flex-1", {
|
|
3220
|
-
flex: 1
|
|
3221
|
-
}),
|
|
3222
|
-
...responsiveRules("flex-2", {
|
|
3223
|
-
flex: 2
|
|
3224
|
-
}),
|
|
3225
|
-
...responsiveRules("flex-3", {
|
|
3226
|
-
flex: 3
|
|
3227
|
-
}),
|
|
3228
|
-
...responsiveRules("flex-4", {
|
|
3229
|
-
flex: 4
|
|
3230
|
-
}),
|
|
3231
|
-
...responsiveRules("flex-5", {
|
|
3232
|
-
flex: 5
|
|
3233
|
-
})
|
|
3234
|
-
}, fontRules = {
|
|
3235
|
-
font: {
|
|
3236
|
-
// 'position': 'relative',
|
|
3237
|
-
fontFamily: "var(--font-family)",
|
|
3238
|
-
fontFeatureSettings: "var(--font-feature-settings)",
|
|
3239
|
-
fontSize: "var(--font-size)",
|
|
3240
|
-
lineHeight: "var(--font-line-height)",
|
|
3241
|
-
letterSpacing: "var(--font-letter-spacing)",
|
|
3242
|
-
fontWeight: "var(--font-weight)",
|
|
3243
|
-
transform: "translateY(var(--font-descender-height))",
|
|
3244
|
-
padding: "1px 0",
|
|
3245
|
-
margin: "0",
|
|
3246
|
-
"--font-icon-offset": "calc(((var(--font-line-height) - var(--font-ascender-height) - var(--font-descender-height)) - var(--font-icon-size)) / 2)",
|
|
3247
|
-
"--font-weight": "var(--font-weight-regular)",
|
|
3248
|
-
"@nest": {
|
|
3249
|
-
"&:before": {
|
|
3250
|
-
content: '""',
|
|
3251
|
-
display: "block",
|
|
3252
|
-
height: 0,
|
|
3253
|
-
marginTop: "calc((0px - var(--font-ascender-height) - var(--font-descender-height)) - 1px)"
|
|
3254
|
-
},
|
|
3255
|
-
"&:after": {
|
|
3256
|
-
content: '""',
|
|
3257
|
-
display: "block",
|
|
3258
|
-
height: 0,
|
|
3259
|
-
marginBottom: "-1px"
|
|
3260
|
-
},
|
|
3261
|
-
"& svg": {
|
|
3262
|
-
// Certain popular CSS libraries changes the defaults for SVG display
|
|
3263
|
-
// Make sure SVGs are rendered as inline elements
|
|
3264
|
-
display: "inline"
|
|
3265
|
-
},
|
|
3266
|
-
// todo
|
|
3267
|
-
// '& svg:not([data-sanity-icon])': {
|
|
3268
|
-
// fontSize: 'calc(var(--custom-icon-size) / 16 * 1rem)',
|
|
3269
|
-
// margin: 'var(--custom-icon-offset)',
|
|
3270
|
-
// },
|
|
3271
|
-
"& [data-sanity-icon]": {
|
|
3272
|
-
fontSize: "var(--font-icon-size)",
|
|
3273
|
-
margin: "var(--font-icon-offset)",
|
|
3274
|
-
vectorEffect: "non-scaling-stroke"
|
|
3275
|
-
}
|
|
3276
|
-
}
|
|
3277
|
-
},
|
|
3278
|
-
"font-regular": {
|
|
3279
|
-
"--font-weight": "var(--font-weight-regular)"
|
|
3280
|
-
},
|
|
3281
|
-
"font-medium": {
|
|
3282
|
-
"--font-weight": "var(--font-weight-medium)"
|
|
3283
|
-
},
|
|
3284
|
-
"font-semibold": {
|
|
3285
|
-
"--font-weight": "var(--font-weight-semibold)"
|
|
3286
|
-
},
|
|
3287
|
-
"font-bold": {
|
|
3288
|
-
"--font-weight": "var(--font-weight-bold)"
|
|
3289
|
-
},
|
|
3290
|
-
// align
|
|
3291
|
-
...responsiveRules("text-align-initial", {
|
|
3292
|
-
textAlign: "initial"
|
|
3293
|
-
}),
|
|
3294
|
-
...responsiveRules("text-align-left", {
|
|
3295
|
-
textAlign: "left"
|
|
3296
|
-
}),
|
|
3297
|
-
...responsiveRules("text-align-center", {
|
|
3298
|
-
textAlign: "center"
|
|
3299
|
-
}),
|
|
3300
|
-
...responsiveRules("text-align-right", {
|
|
3301
|
-
textAlign: "right"
|
|
3302
|
-
}),
|
|
3303
|
-
...responsiveRules("text-align-justify", {
|
|
3304
|
-
textAlign: "justify"
|
|
3305
|
-
})
|
|
3306
|
-
}, gapRules = {
|
|
3307
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3308
|
-
...acc,
|
|
3309
|
-
...responsiveRules(`g-${space}`.replace(".", "_"), {
|
|
3310
|
-
gap: vars.space[space]
|
|
3311
|
-
})
|
|
3312
|
-
}), {}),
|
|
3313
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3314
|
-
...acc,
|
|
3315
|
-
...responsiveRules(`gx-${space}`.replace(".", "_"), {
|
|
3316
|
-
columnGap: vars.space[space]
|
|
3317
|
-
})
|
|
3318
|
-
}), {}),
|
|
3319
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3320
|
-
...acc,
|
|
3321
|
-
...responsiveRules(`gy-${space}`.replace(".", "_"), {
|
|
3322
|
-
rowGap: vars.space[space]
|
|
3323
|
-
})
|
|
3324
|
-
}), {})
|
|
3325
|
-
}, gridRules = {
|
|
3326
|
-
// autoCols
|
|
3327
|
-
...responsiveRules("auto-cols-auto", {
|
|
3328
|
-
gridAutoColumns: "auto"
|
|
3329
|
-
}),
|
|
3330
|
-
...responsiveRules("auto-cols-min", {
|
|
3331
|
-
gridAutoColumns: "min"
|
|
3332
|
-
}),
|
|
3333
|
-
...responsiveRules("auto-cols-max", {
|
|
3334
|
-
gridAutoColumns: "max"
|
|
3335
|
-
}),
|
|
3336
|
-
...responsiveRules("auto-cols-fr", {
|
|
3337
|
-
gridAutoColumns: "fr"
|
|
3338
|
-
}),
|
|
3339
|
-
// autoFlow
|
|
3340
|
-
...responsiveRules("auto-flow-row", {
|
|
3341
|
-
gridAutoFlow: "row"
|
|
3342
|
-
}),
|
|
3343
|
-
...responsiveRules("auto-flow-column", {
|
|
3344
|
-
gridAutoFlow: "column"
|
|
3345
|
-
}),
|
|
3346
|
-
...responsiveRules("auto-flow-row-dense", {
|
|
3347
|
-
gridAutoFlow: "row dense"
|
|
3348
|
-
}),
|
|
3349
|
-
...responsiveRules("auto-flow-column-dense", {
|
|
3350
|
-
gridAutoFlow: "column dense"
|
|
3351
|
-
}),
|
|
3352
|
-
// autoRows
|
|
3353
|
-
...responsiveRules("auto-rows-auto", {
|
|
3354
|
-
gridAutoRows: "auto"
|
|
3355
|
-
}),
|
|
3356
|
-
...responsiveRules("auto-rows-min", {
|
|
3357
|
-
gridAutoRows: "min-content"
|
|
3358
|
-
}),
|
|
3359
|
-
...responsiveRules("auto-rows-max", {
|
|
3360
|
-
gridAutoRows: "max-content"
|
|
3361
|
-
}),
|
|
3362
|
-
...responsiveRules("auto-rows-fr", {
|
|
3363
|
-
gridAutoRows: "minmax(0, 1fr)"
|
|
3364
|
-
}),
|
|
3365
|
-
// columns
|
|
3366
|
-
...responsiveRules("columns-1", {
|
|
3367
|
-
gridTemplateColumns: "repeat(1, 1fr)"
|
|
3368
|
-
}),
|
|
3369
|
-
...responsiveRules("columns-2", {
|
|
3370
|
-
gridTemplateColumns: "repeat(2, 1fr)"
|
|
3371
|
-
}),
|
|
3372
|
-
...responsiveRules("columns-3", {
|
|
3373
|
-
gridTemplateColumns: "repeat(3, 1fr)"
|
|
3374
|
-
}),
|
|
3375
|
-
...responsiveRules("columns-4", {
|
|
3376
|
-
gridTemplateColumns: "repeat(4, 1fr)"
|
|
3377
|
-
}),
|
|
3378
|
-
...responsiveRules("columns-5", {
|
|
3379
|
-
gridTemplateColumns: "repeat(5, 1fr)"
|
|
3380
|
-
}),
|
|
3381
|
-
...responsiveRules("columns-6", {
|
|
3382
|
-
gridTemplateColumns: "repeat(6, 1fr)"
|
|
3383
|
-
}),
|
|
3384
|
-
...responsiveRules("columns-7", {
|
|
3385
|
-
gridTemplateColumns: "repeat(7, 1fr)"
|
|
3386
|
-
}),
|
|
3387
|
-
...responsiveRules("columns-8", {
|
|
3388
|
-
gridTemplateColumns: "repeat(8, 1fr)"
|
|
3389
|
-
}),
|
|
3390
|
-
...responsiveRules("columns-9", {
|
|
3391
|
-
gridTemplateColumns: "repeat(9, 1fr)"
|
|
3392
|
-
}),
|
|
3393
|
-
...responsiveRules("columns-10", {
|
|
3394
|
-
gridTemplateColumns: "repeat(10, 1fr)"
|
|
3395
|
-
}),
|
|
3396
|
-
...responsiveRules("columns-12", {
|
|
3397
|
-
gridTemplateColumns: "repeat(12, 1fr)"
|
|
3398
|
-
}),
|
|
3399
|
-
// rows
|
|
3400
|
-
...responsiveRules("rows-1", {
|
|
3401
|
-
gridTemplateRows: "repeat(1, 1fr)"
|
|
3402
|
-
}),
|
|
3403
|
-
...responsiveRules("rows-2", {
|
|
3404
|
-
gridTemplateRows: "repeat(2, 1fr)"
|
|
3405
|
-
}),
|
|
3406
|
-
...responsiveRules("rows-3", {
|
|
3407
|
-
gridTemplateRows: "repeat(3, 1fr)"
|
|
3408
|
-
}),
|
|
3409
|
-
...responsiveRules("rows-4", {
|
|
3410
|
-
gridTemplateRows: "repeat(4, 1fr)"
|
|
3411
|
-
}),
|
|
3412
|
-
...responsiveRules("rows-5", {
|
|
3413
|
-
gridTemplateRows: "repeat(5, 1fr)"
|
|
3414
|
-
}),
|
|
3415
|
-
...responsiveRules("rows-6", {
|
|
3416
|
-
gridTemplateRows: "repeat(6, 1fr)"
|
|
3417
|
-
}),
|
|
3418
|
-
...responsiveRules("rows-7", {
|
|
3419
|
-
gridTemplateRows: "repeat(7, 1fr)"
|
|
3420
|
-
}),
|
|
3421
|
-
...responsiveRules("rows-8", {
|
|
3422
|
-
gridTemplateRows: "repeat(8, 1fr)"
|
|
3423
|
-
}),
|
|
3424
|
-
...responsiveRules("rows-9", {
|
|
3425
|
-
gridTemplateRows: "repeat(9, 1fr)"
|
|
3426
|
-
}),
|
|
3427
|
-
...responsiveRules("rows-10", {
|
|
3428
|
-
gridTemplateRows: "repeat(10, 1fr)"
|
|
3429
|
-
}),
|
|
3430
|
-
...responsiveRules("rows-12", {
|
|
3431
|
-
gridTemplateRows: "repeat(12, 1fr)"
|
|
3432
|
-
})
|
|
3433
|
-
}, gridItemRules = {
|
|
3434
|
-
// column
|
|
3435
|
-
...responsiveRules("col-auto", {
|
|
3436
|
-
gridColumn: "span 1 / span 1"
|
|
3437
|
-
}),
|
|
3438
|
-
...responsiveRules("col-full", {
|
|
3439
|
-
gridColumn: "1 / -1"
|
|
3440
|
-
}),
|
|
3441
|
-
...responsiveRules("col-1", {
|
|
3442
|
-
gridColumn: "span 1 / span 1"
|
|
3443
|
-
}),
|
|
3444
|
-
...responsiveRules("col-2", {
|
|
3445
|
-
gridColumn: "span 2 / span 2"
|
|
3446
|
-
}),
|
|
3447
|
-
...responsiveRules("col-3", {
|
|
3448
|
-
gridColumn: "span 3 / span 3"
|
|
3449
|
-
}),
|
|
3450
|
-
...responsiveRules("col-4", {
|
|
3451
|
-
gridColumn: "span 4 / span 4"
|
|
3452
|
-
}),
|
|
3453
|
-
...responsiveRules("col-5", {
|
|
3454
|
-
gridColumn: "span 5 / span 5"
|
|
3455
|
-
}),
|
|
3456
|
-
...responsiveRules("col-6", {
|
|
3457
|
-
gridColumn: "span 6 / span 6"
|
|
3458
|
-
}),
|
|
3459
|
-
...responsiveRules("col-7", {
|
|
3460
|
-
gridColumn: "span 7 / span 7"
|
|
3461
|
-
}),
|
|
3462
|
-
...responsiveRules("col-8", {
|
|
3463
|
-
gridColumn: "span 8 / span 8"
|
|
3464
|
-
}),
|
|
3465
|
-
...responsiveRules("col-9", {
|
|
3466
|
-
gridColumn: "span 9 / span 9"
|
|
3467
|
-
}),
|
|
3468
|
-
...responsiveRules("col-10", {
|
|
3469
|
-
gridColumn: "span 10 / span 10"
|
|
3470
|
-
}),
|
|
3471
|
-
...responsiveRules("col-11", {
|
|
3472
|
-
gridColumn: "span 11 / span 11"
|
|
3473
|
-
}),
|
|
3474
|
-
...responsiveRules("col-12", {
|
|
3475
|
-
gridColumn: "span 12 / span 12"
|
|
3476
|
-
}),
|
|
3477
|
-
// columnStart
|
|
3478
|
-
...responsiveRules("col-start-auto", {
|
|
3479
|
-
gridColumnStart: "auto"
|
|
3480
|
-
}),
|
|
3481
|
-
...responsiveRules("col-start-1", {
|
|
3482
|
-
gridColumnStart: "1"
|
|
3483
|
-
}),
|
|
3484
|
-
...responsiveRules("col-start-2", {
|
|
3485
|
-
gridColumnStart: "2"
|
|
3486
|
-
}),
|
|
3487
|
-
...responsiveRules("col-start-3", {
|
|
3488
|
-
gridColumnStart: "3"
|
|
3489
|
-
}),
|
|
3490
|
-
...responsiveRules("col-start-4", {
|
|
3491
|
-
gridColumnStart: "4"
|
|
3492
|
-
}),
|
|
3493
|
-
...responsiveRules("col-start-5", {
|
|
3494
|
-
gridColumnStart: "5"
|
|
3495
|
-
}),
|
|
3496
|
-
...responsiveRules("col-start-6", {
|
|
3497
|
-
gridColumnStart: "6"
|
|
3498
|
-
}),
|
|
3499
|
-
...responsiveRules("col-start-7", {
|
|
3500
|
-
gridColumnStart: "7"
|
|
3501
|
-
}),
|
|
3502
|
-
...responsiveRules("col-start-8", {
|
|
3503
|
-
gridColumnStart: "8"
|
|
3504
|
-
}),
|
|
3505
|
-
...responsiveRules("col-start-9", {
|
|
3506
|
-
gridColumnStart: "9"
|
|
3507
|
-
}),
|
|
3508
|
-
...responsiveRules("col-start-10", {
|
|
3509
|
-
gridColumnStart: "10"
|
|
3510
|
-
}),
|
|
3511
|
-
...responsiveRules("col-start-11", {
|
|
3512
|
-
gridColumnStart: "11"
|
|
3513
|
-
}),
|
|
3514
|
-
...responsiveRules("col-start-12", {
|
|
3515
|
-
gridColumnStart: "12"
|
|
3516
|
-
}),
|
|
3517
|
-
// columnEnd
|
|
3518
|
-
...responsiveRules("col-end-auto", {
|
|
3519
|
-
gridColumnEnd: "auto"
|
|
3520
|
-
}),
|
|
3521
|
-
...responsiveRules("col-end-1", {
|
|
3522
|
-
gridColumnEnd: "1"
|
|
3523
|
-
}),
|
|
3524
|
-
...responsiveRules("col-end-2", {
|
|
3525
|
-
gridColumnEnd: "2"
|
|
3526
|
-
}),
|
|
3527
|
-
...responsiveRules("col-end-3", {
|
|
3528
|
-
gridColumnEnd: "3"
|
|
3529
|
-
}),
|
|
3530
|
-
...responsiveRules("col-end-4", {
|
|
3531
|
-
gridColumnEnd: "4"
|
|
3532
|
-
}),
|
|
3533
|
-
...responsiveRules("col-end-5", {
|
|
3534
|
-
gridColumnEnd: "5"
|
|
3535
|
-
}),
|
|
3536
|
-
...responsiveRules("col-end-6", {
|
|
3537
|
-
gridColumnEnd: "6"
|
|
3538
|
-
}),
|
|
3539
|
-
...responsiveRules("col-end-7", {
|
|
3540
|
-
gridColumnEnd: "7"
|
|
3541
|
-
}),
|
|
3542
|
-
...responsiveRules("col-end-8", {
|
|
3543
|
-
gridColumnEnd: "8"
|
|
3544
|
-
}),
|
|
3545
|
-
...responsiveRules("col-end-9", {
|
|
3546
|
-
gridColumnEnd: "9"
|
|
3547
|
-
}),
|
|
3548
|
-
...responsiveRules("col-end-10", {
|
|
3549
|
-
gridColumnEnd: "10"
|
|
3550
|
-
}),
|
|
3551
|
-
...responsiveRules("col-end-11", {
|
|
3552
|
-
gridColumnEnd: "11"
|
|
3553
|
-
}),
|
|
3554
|
-
...responsiveRules("col-end-12", {
|
|
3555
|
-
gridColumnEnd: "12"
|
|
3556
|
-
}),
|
|
3557
|
-
// row
|
|
3558
|
-
...responsiveRules("row-auto", {
|
|
3559
|
-
gridRow: "span 1 / span 1"
|
|
3560
|
-
}),
|
|
3561
|
-
...responsiveRules("row-full", {
|
|
3562
|
-
gridRow: "1 / -1"
|
|
3563
|
-
}),
|
|
3564
|
-
...responsiveRules("row-1", {
|
|
3565
|
-
gridRow: "span 1 / span 1"
|
|
3566
|
-
}),
|
|
3567
|
-
...responsiveRules("row-2", {
|
|
3568
|
-
gridRow: "span 2 / span 2"
|
|
3569
|
-
}),
|
|
3570
|
-
...responsiveRules("row-3", {
|
|
3571
|
-
gridRow: "span 3 / span 3"
|
|
3572
|
-
}),
|
|
3573
|
-
...responsiveRules("row-4", {
|
|
3574
|
-
gridRow: "span 4 / span 4"
|
|
3575
|
-
}),
|
|
3576
|
-
...responsiveRules("row-5", {
|
|
3577
|
-
gridRow: "span 5 / span 5"
|
|
3578
|
-
}),
|
|
3579
|
-
...responsiveRules("row-6", {
|
|
3580
|
-
gridRow: "span 6 / span 6"
|
|
3581
|
-
}),
|
|
3582
|
-
...responsiveRules("row-7", {
|
|
3583
|
-
gridRow: "span 7 / span 7"
|
|
3584
|
-
}),
|
|
3585
|
-
...responsiveRules("row-8", {
|
|
3586
|
-
gridRow: "span 8 / span 8"
|
|
3587
|
-
}),
|
|
3588
|
-
...responsiveRules("row-9", {
|
|
3589
|
-
gridRow: "span 9 / span 9"
|
|
3590
|
-
}),
|
|
3591
|
-
...responsiveRules("row-10", {
|
|
3592
|
-
gridRow: "span 10 / span 10"
|
|
3593
|
-
}),
|
|
3594
|
-
...responsiveRules("row-11", {
|
|
3595
|
-
gridRow: "span 11 / span 11"
|
|
3596
|
-
}),
|
|
3597
|
-
...responsiveRules("row-12", {
|
|
3598
|
-
gridRow: "span 12 / span 12"
|
|
3599
|
-
}),
|
|
3600
|
-
// rowStart
|
|
3601
|
-
...responsiveRules("row-start-auto", {
|
|
3602
|
-
gridRowStart: "auto"
|
|
3603
|
-
}),
|
|
3604
|
-
...responsiveRules("row-start-1", {
|
|
3605
|
-
gridRowStart: "1"
|
|
3606
|
-
}),
|
|
3607
|
-
...responsiveRules("row-start-2", {
|
|
3608
|
-
gridRowStart: "2"
|
|
3609
|
-
}),
|
|
3610
|
-
...responsiveRules("row-start-3", {
|
|
3611
|
-
gridRowStart: "3"
|
|
3612
|
-
}),
|
|
3613
|
-
...responsiveRules("row-start-4", {
|
|
3614
|
-
gridRowStart: "4"
|
|
3615
|
-
}),
|
|
3616
|
-
...responsiveRules("row-start-5", {
|
|
3617
|
-
gridRowStart: "5"
|
|
3618
|
-
}),
|
|
3619
|
-
...responsiveRules("row-start-6", {
|
|
3620
|
-
gridRowStart: "6"
|
|
3621
|
-
}),
|
|
3622
|
-
...responsiveRules("row-start-7", {
|
|
3623
|
-
gridRowStart: "7"
|
|
3624
|
-
}),
|
|
3625
|
-
...responsiveRules("row-start-8", {
|
|
3626
|
-
gridRowStart: "8"
|
|
3627
|
-
}),
|
|
3628
|
-
...responsiveRules("row-start-9", {
|
|
3629
|
-
gridRowStart: "9"
|
|
3630
|
-
}),
|
|
3631
|
-
...responsiveRules("row-start-10", {
|
|
3632
|
-
gridRowStart: "10"
|
|
3633
|
-
}),
|
|
3634
|
-
...responsiveRules("row-start-11", {
|
|
3635
|
-
gridRowStart: "11"
|
|
3636
|
-
}),
|
|
3637
|
-
...responsiveRules("row-start-12", {
|
|
3638
|
-
gridRowStart: "12"
|
|
3639
|
-
}),
|
|
3640
|
-
// rowEnd
|
|
3641
|
-
...responsiveRules("row-end-auto", {
|
|
3642
|
-
gridRowEnd: "auto"
|
|
3643
|
-
}),
|
|
3644
|
-
...responsiveRules("row-end-1", {
|
|
3645
|
-
gridRowEnd: "1"
|
|
3646
|
-
}),
|
|
3647
|
-
...responsiveRules("row-end-2", {
|
|
3648
|
-
gridRowEnd: "2"
|
|
3649
|
-
}),
|
|
3650
|
-
...responsiveRules("row-end-3", {
|
|
3651
|
-
gridRowEnd: "3"
|
|
3652
|
-
}),
|
|
3653
|
-
...responsiveRules("row-end-4", {
|
|
3654
|
-
gridRowEnd: "4"
|
|
3655
|
-
}),
|
|
3656
|
-
...responsiveRules("row-end-5", {
|
|
3657
|
-
gridRowEnd: "5"
|
|
3658
|
-
}),
|
|
3659
|
-
...responsiveRules("row-end-6", {
|
|
3660
|
-
gridRowEnd: "6"
|
|
3661
|
-
}),
|
|
3662
|
-
...responsiveRules("row-end-7", {
|
|
3663
|
-
gridRowEnd: "7"
|
|
3664
|
-
}),
|
|
3665
|
-
...responsiveRules("row-end-8", {
|
|
3666
|
-
gridRowEnd: "8"
|
|
3667
|
-
}),
|
|
3668
|
-
...responsiveRules("row-end-9", {
|
|
3669
|
-
gridRowEnd: "9"
|
|
3670
|
-
}),
|
|
3671
|
-
...responsiveRules("row-end-10", {
|
|
3672
|
-
gridRowEnd: "10"
|
|
3673
|
-
}),
|
|
3674
|
-
...responsiveRules("row-end-11", {
|
|
3675
|
-
gridRowEnd: "11"
|
|
3676
|
-
}),
|
|
3677
|
-
...responsiveRules("row-end-12", {
|
|
3678
|
-
gridRowEnd: "12"
|
|
3679
|
-
})
|
|
3680
|
-
}, heightRules = {
|
|
3681
|
-
...responsiveRules("h-fill", {
|
|
3682
|
-
height: "100%"
|
|
3683
|
-
}),
|
|
3684
|
-
...responsiveRules("h-stretch", {
|
|
3685
|
-
height: "stretch"
|
|
3686
|
-
})
|
|
3687
|
-
}, insetRules = {
|
|
3688
|
-
...responsiveRules("inset-0", {
|
|
3689
|
-
top: 0,
|
|
3690
|
-
left: 0,
|
|
3691
|
-
right: 0,
|
|
3692
|
-
bottom: 0
|
|
3693
|
-
}),
|
|
3694
|
-
...responsiveRules("top-0", {
|
|
3695
|
-
top: 0
|
|
3696
|
-
}),
|
|
3697
|
-
...responsiveRules("right-0", {
|
|
3698
|
-
right: 0
|
|
3699
|
-
}),
|
|
3700
|
-
...responsiveRules("bottom-0", {
|
|
3701
|
-
bottom: 0
|
|
3702
|
-
}),
|
|
3703
|
-
...responsiveRules("left-0", {
|
|
3704
|
-
left: 0
|
|
3705
|
-
})
|
|
3706
|
-
}, marginRules = {
|
|
3707
|
-
// NOTE: order matters
|
|
3708
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3709
|
-
...acc,
|
|
3710
|
-
...responsiveRules(`m-${space}`.replace(".", "_"), {
|
|
3711
|
-
margin: vars.space[space]
|
|
3712
|
-
})
|
|
3713
|
-
}), {}),
|
|
3714
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3715
|
-
...acc,
|
|
3716
|
-
...responsiveRules(`mx-${space}`.replace(".", "_"), {
|
|
3717
|
-
marginLeft: vars.space[space],
|
|
3718
|
-
marginRight: vars.space[space]
|
|
3719
|
-
})
|
|
3720
|
-
}), {}),
|
|
3721
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3722
|
-
...acc,
|
|
3723
|
-
...responsiveRules(`my-${space}`.replace(".", "_"), {
|
|
3724
|
-
marginTop: vars.space[space],
|
|
3725
|
-
marginBottom: vars.space[space]
|
|
3726
|
-
})
|
|
3727
|
-
}), {}),
|
|
3728
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3729
|
-
...acc,
|
|
3730
|
-
...responsiveRules(`mt-${space}`.replace(".", "_"), {
|
|
3731
|
-
marginTop: vars.space[space]
|
|
3732
|
-
})
|
|
3733
|
-
}), {}),
|
|
3734
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3735
|
-
...acc,
|
|
3736
|
-
...responsiveRules(`mr-${space}`.replace(".", "_"), {
|
|
3737
|
-
marginRight: vars.space[space]
|
|
3738
|
-
})
|
|
3739
|
-
}), {}),
|
|
3740
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3741
|
-
...acc,
|
|
3742
|
-
...responsiveRules(`mb-${space}`.replace(".", "_"), {
|
|
3743
|
-
marginBottom: vars.space[space]
|
|
3744
|
-
})
|
|
3745
|
-
}), {}),
|
|
3746
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3747
|
-
...acc,
|
|
3748
|
-
...responsiveRules(`ml-${space}`.replace(".", "_"), {
|
|
3749
|
-
marginLeft: vars.space[space]
|
|
3750
|
-
})
|
|
3751
|
-
}), {})
|
|
3752
|
-
}, maxWidthRules = {
|
|
3753
|
-
...responsiveRules("max-w-0", {
|
|
3754
|
-
maxWidth: "var(--container-0)"
|
|
3755
|
-
}),
|
|
3756
|
-
...responsiveRules("max-w-1", {
|
|
3757
|
-
maxWidth: "var(--container-1)"
|
|
3758
|
-
}),
|
|
3759
|
-
...responsiveRules("max-w-2", {
|
|
3760
|
-
maxWidth: "var(--container-2)"
|
|
3761
|
-
}),
|
|
3762
|
-
...responsiveRules("max-w-3", {
|
|
3763
|
-
maxWidth: "var(--container-3)"
|
|
3764
|
-
}),
|
|
3765
|
-
...responsiveRules("max-w-4", {
|
|
3766
|
-
maxWidth: "var(--container-4)"
|
|
3767
|
-
}),
|
|
3768
|
-
...responsiveRules("max-w-5", {
|
|
3769
|
-
maxWidth: "var(--container-5)"
|
|
3770
|
-
}),
|
|
3771
|
-
...responsiveRules("max-w-auto", {
|
|
3772
|
-
maxWidth: "none"
|
|
3773
|
-
}),
|
|
3774
|
-
...responsiveRules("max-w-fill", {
|
|
3775
|
-
maxWidth: "100%"
|
|
3776
|
-
})
|
|
3777
|
-
}, outlineRules = {
|
|
3778
|
-
"outline-none": {
|
|
3779
|
-
outline: "none"
|
|
3780
|
-
}
|
|
3781
|
-
}, overflowRules = {
|
|
3782
|
-
...responsiveRules("overflow-visible", {
|
|
3783
|
-
overflow: "visible"
|
|
3784
|
-
}),
|
|
3785
|
-
...responsiveRules("overflow-hidden", {
|
|
3786
|
-
overflow: "hidden"
|
|
3787
|
-
}),
|
|
3788
|
-
...responsiveRules("overflow-scroll", {
|
|
3789
|
-
overflow: "scroll"
|
|
3790
|
-
}),
|
|
3791
|
-
...responsiveRules("overflow-auto", {
|
|
3792
|
-
overflow: "auto"
|
|
3793
|
-
})
|
|
3794
|
-
}, paddingRules = {
|
|
3795
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3796
|
-
...acc,
|
|
3797
|
-
...responsiveRules(`p-${space}`.replace(".", "_"), {
|
|
3798
|
-
padding: vars.space[space]
|
|
3799
|
-
})
|
|
3800
|
-
}), {}),
|
|
3801
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3802
|
-
...acc,
|
|
3803
|
-
...responsiveRules(`px-${space}`.replace(".", "_"), {
|
|
3804
|
-
paddingLeft: vars.space[space],
|
|
3805
|
-
paddingRight: vars.space[space]
|
|
3806
|
-
})
|
|
3807
|
-
}), {}),
|
|
3808
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3809
|
-
...acc,
|
|
3810
|
-
...responsiveRules(`py-${space}`.replace(".", "_"), {
|
|
3811
|
-
paddingTop: vars.space[space],
|
|
3812
|
-
paddingBottom: vars.space[space]
|
|
3813
|
-
})
|
|
3814
|
-
}), {}),
|
|
3815
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3816
|
-
...acc,
|
|
3817
|
-
...responsiveRules(`pt-${space}`.replace(".", "_"), {
|
|
3818
|
-
paddingTop: vars.space[space]
|
|
3819
|
-
})
|
|
3820
|
-
}), {}),
|
|
3821
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3822
|
-
...acc,
|
|
3823
|
-
...responsiveRules(`pr-${space}`.replace(".", "_"), {
|
|
3824
|
-
paddingRight: vars.space[space]
|
|
3825
|
-
})
|
|
3826
|
-
}), {}),
|
|
3827
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3828
|
-
...acc,
|
|
3829
|
-
...responsiveRules(`pb-${space}`.replace(".", "_"), {
|
|
3830
|
-
paddingBottom: vars.space[space]
|
|
3831
|
-
})
|
|
3832
|
-
}), {}),
|
|
3833
|
-
...theme.SPACE.reduce((acc, space) => ({
|
|
3834
|
-
...acc,
|
|
3835
|
-
...responsiveRules(`pl-${space}`.replace(".", "_"), {
|
|
3836
|
-
paddingLeft: vars.space[space]
|
|
3837
|
-
})
|
|
3838
|
-
}), {})
|
|
3839
|
-
}, pointerEventsRules = {
|
|
3840
|
-
"pointer-events-none": {
|
|
3841
|
-
pointerEvents: "none"
|
|
3842
|
-
},
|
|
3843
|
-
"pointer-events-auto": {
|
|
3844
|
-
pointerEvents: "auto"
|
|
3845
|
-
}
|
|
3846
|
-
}, positionRules = {
|
|
3847
|
-
...responsiveRules("pos-absolute", {
|
|
3848
|
-
position: "absolute"
|
|
3849
|
-
}),
|
|
3850
|
-
...responsiveRules("pos-fixed", {
|
|
3851
|
-
position: "fixed"
|
|
3852
|
-
}),
|
|
3853
|
-
...responsiveRules("pos-relative", {
|
|
3854
|
-
position: "relative"
|
|
3855
|
-
}),
|
|
3856
|
-
...responsiveRules("pos-static", {
|
|
3857
|
-
position: "static"
|
|
3858
|
-
}),
|
|
3859
|
-
...responsiveRules("pos-sticky", {
|
|
3860
|
-
position: "sticky"
|
|
3861
|
-
})
|
|
3862
|
-
}, radiusRules = {
|
|
3863
|
-
...responsiveRules("r-0", {
|
|
3864
|
-
borderRadius: "var(--radius-0)"
|
|
3865
|
-
}),
|
|
3866
|
-
...responsiveRules("r-1", {
|
|
3867
|
-
borderRadius: "var(--radius-1)"
|
|
3868
|
-
}),
|
|
3869
|
-
...responsiveRules("r-2", {
|
|
3870
|
-
borderRadius: "var(--radius-2)"
|
|
3871
|
-
}),
|
|
3872
|
-
...responsiveRules("r-3", {
|
|
3873
|
-
borderRadius: "var(--radius-3)"
|
|
3874
|
-
}),
|
|
3875
|
-
...responsiveRules("r-4", {
|
|
3876
|
-
borderRadius: "var(--radius-4)"
|
|
3877
|
-
}),
|
|
3878
|
-
...responsiveRules("r-5", {
|
|
3879
|
-
borderRadius: "var(--radius-5)"
|
|
3880
|
-
}),
|
|
3881
|
-
...responsiveRules("r-6", {
|
|
3882
|
-
borderRadius: "var(--radius-6)"
|
|
3883
|
-
}),
|
|
3884
|
-
...responsiveRules("r-full", {
|
|
3885
|
-
borderRadius: "9999px"
|
|
3886
|
-
})
|
|
3887
|
-
}, shadowRules = {
|
|
3888
|
-
...responsiveRules("shadow-0", {
|
|
3889
|
-
boxShadow: "none"
|
|
3890
|
-
}),
|
|
3891
|
-
...responsiveRules("shadow-1", {
|
|
3892
|
-
boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-1-umbra) var(--color-shadow-umbra)", "var(--shadow-1-penumbra) var(--color-shadow-penumbra)", "var(--shadow-1-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
3893
|
-
}),
|
|
3894
|
-
...responsiveRules("shadow-2", {
|
|
3895
|
-
boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-2-umbra) var(--color-shadow-umbra)", "var(--shadow-2-penumbra) var(--color-shadow-penumbra)", "var(--shadow-2-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
3896
|
-
}),
|
|
3897
|
-
...responsiveRules("shadow-3", {
|
|
3898
|
-
boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-3-umbra) var(--color-shadow-umbra)", "var(--shadow-3-penumbra) var(--color-shadow-penumbra)", "var(--shadow-3-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
3899
|
-
}),
|
|
3900
|
-
...responsiveRules("shadow-4", {
|
|
3901
|
-
boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-4-umbra) var(--color-shadow-umbra)", "var(--shadow-4-penumbra) var(--color-shadow-penumbra)", "var(--shadow-4-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
3902
|
-
}),
|
|
3903
|
-
...responsiveRules("shadow-5", {
|
|
3904
|
-
boxShadow: ["var(--shadow-outline) var(--color-shadow-outline)", "var(--shadow-5-umbra) var(--color-shadow-umbra)", "var(--shadow-5-penumbra) var(--color-shadow-penumbra)", "var(--shadow-5-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
3905
|
-
})
|
|
3906
|
-
}, textOverflowRules = {
|
|
3907
|
-
"text-overflow-ellipsis": {
|
|
3908
|
-
display: "block",
|
|
3909
|
-
whiteSpace: "nowrap",
|
|
3910
|
-
textOverflow: "ellipsis",
|
|
3911
|
-
overflow: ["hidden", "clip"]
|
|
3912
|
-
},
|
|
3913
|
-
"text-overflow-clip": {
|
|
3914
|
-
display: "block",
|
|
3915
|
-
whiteSpace: "nowrap",
|
|
3916
|
-
textOverflow: "clip",
|
|
3917
|
-
overflow: ["hidden", "clip"]
|
|
3918
|
-
}
|
|
3919
|
-
}, widthRules = {
|
|
3920
|
-
"w-fill": {
|
|
3921
|
-
width: ["-moz-available", "-webkit-fill-available", "stretch"]
|
|
3922
|
-
}
|
|
3923
|
-
}, srOnlyRules = {
|
|
3924
|
-
"sr-only": {
|
|
3925
|
-
display: "block",
|
|
3926
|
-
width: 0,
|
|
3927
|
-
height: 0,
|
|
3928
|
-
position: "absolute",
|
|
3929
|
-
overflow: ["hidden", "clip"]
|
|
3930
|
-
}
|
|
3931
|
-
}, rules = {
|
|
3932
|
-
// styles
|
|
3933
|
-
...borderRules,
|
|
3934
|
-
...displayRules,
|
|
3935
|
-
...flexItemRules,
|
|
3936
|
-
...flexRules,
|
|
3937
|
-
...fontRules,
|
|
3938
|
-
...gapRules,
|
|
3939
|
-
...gridItemRules,
|
|
3940
|
-
...gridRules,
|
|
3941
|
-
...heightRules,
|
|
3942
|
-
...insetRules,
|
|
3943
|
-
...marginRules,
|
|
3944
|
-
...outlineRules,
|
|
3945
|
-
...overflowRules,
|
|
3946
|
-
...paddingRules,
|
|
3947
|
-
...pointerEventsRules,
|
|
3948
|
-
...positionRules,
|
|
3949
|
-
...radiusRules,
|
|
3950
|
-
...shadowRules,
|
|
3951
|
-
...widthRules,
|
|
3952
|
-
// utils
|
|
3953
|
-
...srOnlyRules,
|
|
3954
|
-
// primitives
|
|
3955
|
-
..._arrowRules,
|
|
3956
|
-
..._inputRules,
|
|
3957
|
-
..._selectableRules,
|
|
3958
|
-
...avatarRules,
|
|
3959
|
-
...badgeRules,
|
|
3960
|
-
...boxRules,
|
|
3961
|
-
...buttonRules,
|
|
3962
|
-
...cardRules,
|
|
3963
|
-
...checkboxRules,
|
|
3964
|
-
...codeRules,
|
|
3965
|
-
...containerRules,
|
|
3966
|
-
...headingRules,
|
|
3967
|
-
...kbdRules,
|
|
3968
|
-
...labelRules,
|
|
3969
|
-
...maxWidthRules,
|
|
3970
|
-
...popoverRules,
|
|
3971
|
-
...radioRules,
|
|
3972
|
-
...selectRules,
|
|
3973
|
-
...spinnerRules,
|
|
3974
|
-
...switchRules,
|
|
3975
|
-
...textAreaRules,
|
|
3976
|
-
...textInputRules,
|
|
3977
|
-
...textOverflowRules,
|
|
3978
|
-
...textRules,
|
|
3979
|
-
...tokenRules,
|
|
3980
|
-
...tooltipRules,
|
|
3981
|
-
// components
|
|
3982
|
-
...breadcrumbsRules,
|
|
3983
|
-
...dialogRules,
|
|
3984
|
-
...menuRules,
|
|
3985
|
-
...skeletonRules,
|
|
3986
|
-
...toastRules
|
|
3987
|
-
};
|
|
3988
|
-
function compileRules(rules2) {
|
|
4049
|
+
return css;
|
|
4050
|
+
}
|
|
4051
|
+
function compileProperties(props) {
|
|
3989
4052
|
let css = "";
|
|
3990
|
-
const
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
css += ruleCss ? `${ruleCss}
|
|
3997
|
-
` : "";
|
|
3998
|
-
}
|
|
3999
|
-
for (const [name, value] of Object.entries(context.keyframes)) {
|
|
4000
|
-
let keyframesCss = `@keyframes ${name} {
|
|
4053
|
+
const propEntries = Object.entries(props);
|
|
4054
|
+
for (const [key, value] of propEntries)
|
|
4055
|
+
if (!key.startsWith("@"))
|
|
4056
|
+
if (isArray(value))
|
|
4057
|
+
for (const item of value)
|
|
4058
|
+
css += ` ${toSnakeCase(key)}: ${item};
|
|
4001
4059
|
`;
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
`) + `
|
|
4060
|
+
else
|
|
4061
|
+
css += ` ${toSnakeCase(key)}: ${value};
|
|
4005
4062
|
`;
|
|
4006
|
-
|
|
4063
|
+
return css;
|
|
4007
4064
|
}
|
|
4008
|
-
|
|
4009
|
-
}
|
|
4010
|
-
for (const [query, queryRules] of Object.entries(context.media))
|
|
4011
|
-
css += compileMediaQueryRule(query, queryRules) + `
|
|
4012
|
-
`;
|
|
4013
|
-
return css.replace(/\n{2,}/g, `
|
|
4014
|
-
`).trimStart();
|
|
4065
|
+
function toSnakeCase(str) {
|
|
4066
|
+
return str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
4015
4067
|
}
|
|
4016
4068
|
function compileSystem() {
|
|
4017
|
-
return
|
|
4018
|
-
}
|
|
4019
|
-
function isRecord(value) {
|
|
4020
|
-
return value !== null && typeof value == "object" && !Array.isArray(value);
|
|
4021
|
-
}
|
|
4022
|
-
function isArray(value) {
|
|
4023
|
-
return Array.isArray(value);
|
|
4024
|
-
}
|
|
4025
|
-
function rem(value) {
|
|
4026
|
-
return value === 0 ? "0" : `${value / 16}rem`;
|
|
4027
|
-
}
|
|
4028
|
-
function px(value) {
|
|
4029
|
-
return value === 0 ? "0" : `${value}px`;
|
|
4030
|
-
}
|
|
4031
|
-
function toBoxShadow(value) {
|
|
4032
|
-
return value ? value.map((n) => px(n)).join(" ") : "none";
|
|
4069
|
+
return compileStyle(systemStyle);
|
|
4033
4070
|
}
|
|
4034
4071
|
function compileTheme_v3(theme2) {
|
|
4035
4072
|
return compileRule(":root", compileThemeProperties(theme2), {
|
|
@@ -4328,140 +4365,60 @@ function compileTheme(theme2) {
|
|
|
4328
4365
|
` : `/* v0 - not supported */
|
|
4329
4366
|
`;
|
|
4330
4367
|
}
|
|
4368
|
+
function getClassNames(...classNames) {
|
|
4369
|
+
return classNames.map((n) => typeof n == "string" && n.trim()).filter(Boolean).join(" ").split(" ");
|
|
4370
|
+
}
|
|
4331
4371
|
function composeClassNames(...classNames) {
|
|
4332
|
-
return unique(classNames
|
|
4372
|
+
return unique(getClassNames(...classNames)).join(" ") || void 0;
|
|
4333
4373
|
}
|
|
4334
4374
|
function unique(array) {
|
|
4335
4375
|
return Array.from(new Set(array));
|
|
4336
4376
|
}
|
|
4337
|
-
function
|
|
4338
|
-
|
|
4377
|
+
function scopeClassName(className) {
|
|
4378
|
+
if (className !== void 0)
|
|
4379
|
+
return `${PREFIX}${className.trim()}`;
|
|
4339
4380
|
}
|
|
4340
|
-
function
|
|
4341
|
-
return
|
|
4381
|
+
function _comp(...classNames) {
|
|
4382
|
+
return getClassNames(...classNames).map(scopeClassName).join(" ") || void 0;
|
|
4342
4383
|
}
|
|
4343
|
-
function
|
|
4344
|
-
return
|
|
4345
|
-
}
|
|
4346
|
-
function dialogCardRoot() {
|
|
4347
|
-
return composeClassNames("dialog-card-root");
|
|
4348
|
-
}
|
|
4349
|
-
function dialogLayout() {
|
|
4350
|
-
return composeClassNames("dialog-layout");
|
|
4351
|
-
}
|
|
4352
|
-
function dialogHeader() {
|
|
4353
|
-
return composeClassNames("dialog-header");
|
|
4354
|
-
}
|
|
4355
|
-
function dialogContent() {
|
|
4356
|
-
return composeClassNames("dialog-content");
|
|
4357
|
-
}
|
|
4358
|
-
function dialogFooter() {
|
|
4359
|
-
return composeClassNames("dialog-footer");
|
|
4360
|
-
}
|
|
4361
|
-
function menu() {
|
|
4362
|
-
return composeClassNames("menu");
|
|
4363
|
-
}
|
|
4364
|
-
function menuDivider() {
|
|
4365
|
-
return composeClassNames("menu-divider");
|
|
4384
|
+
function breadcrumbs() {
|
|
4385
|
+
return _comp("breadcrumbs");
|
|
4366
4386
|
}
|
|
4367
4387
|
function _resp(prefix, prop) {
|
|
4368
4388
|
if (!(prop === void 0 || prop === !1))
|
|
4369
4389
|
return Array.isArray(prop) ? prop.map((value, index) => {
|
|
4370
4390
|
if (value === void 0 || typeof prop == "boolean" && prop === !1) return;
|
|
4371
4391
|
const className = (typeof value == "boolean" ? [prefix] : [prefix, value]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
|
|
4372
|
-
return index === 0 ?
|
|
4392
|
+
return index === 0 ? className : `${index}:${className}`;
|
|
4373
4393
|
}).filter(Boolean).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
|
|
4374
4394
|
}
|
|
4375
|
-
function radius(props) {
|
|
4376
|
-
return composeClassNames(_resp("r", props.radius));
|
|
4377
|
-
}
|
|
4378
|
-
function skeleton(props) {
|
|
4379
|
-
return composeClassNames("skeleton", radius(props));
|
|
4380
|
-
}
|
|
4381
|
-
function codeSkeleton(props) {
|
|
4382
|
-
return composeClassNames("font-skeleton", _resp("code-skeleton", props.size));
|
|
4383
|
-
}
|
|
4384
|
-
function headingSkeleton(props) {
|
|
4385
|
-
return composeClassNames("font-skeleton", _resp("heading-skeleton", props.size));
|
|
4386
|
-
}
|
|
4387
|
-
function labelSkeleton(props) {
|
|
4388
|
-
return composeClassNames("font-skeleton", _resp("label-skeleton", props.size));
|
|
4389
|
-
}
|
|
4390
|
-
function textSkeleton(props) {
|
|
4391
|
-
return composeClassNames("font-skeleton", _resp("text-skeleton", props.size));
|
|
4392
|
-
}
|
|
4393
|
-
function toastLayer() {
|
|
4394
|
-
return composeClassNames("toast-layer");
|
|
4395
|
-
}
|
|
4396
|
-
function toast() {
|
|
4397
|
-
return composeClassNames("toast");
|
|
4398
|
-
}
|
|
4399
|
-
function toastLoadingBar() {
|
|
4400
|
-
return composeClassNames("toast-loading-bar");
|
|
4401
|
-
}
|
|
4402
|
-
function toastLoadingBarProgress() {
|
|
4403
|
-
return composeClassNames("toast-loading-bar-progress");
|
|
4404
|
-
}
|
|
4405
|
-
function toastLoadingBarMask() {
|
|
4406
|
-
return composeClassNames("toast-loading-bar-mask");
|
|
4407
|
-
}
|
|
4408
|
-
function treeItem() {
|
|
4409
|
-
return composeClassNames("tree-item");
|
|
4410
|
-
}
|
|
4411
|
-
function _arrow() {
|
|
4412
|
-
return composeClassNames("arrow");
|
|
4413
|
-
}
|
|
4414
|
-
function _arrowStroke() {
|
|
4415
|
-
return "arrow-stroke";
|
|
4416
|
-
}
|
|
4417
|
-
function _arrowShape() {
|
|
4418
|
-
return "arrow-shape";
|
|
4419
|
-
}
|
|
4420
|
-
const prefixes$2 = {
|
|
4421
|
-
border: "border",
|
|
4422
|
-
borderTop: "border-t",
|
|
4423
|
-
borderRight: "border-r",
|
|
4424
|
-
borderBottom: "border-b",
|
|
4425
|
-
borderLeft: "border-l"
|
|
4426
|
-
};
|
|
4427
4395
|
function border(props) {
|
|
4428
|
-
return composeClassNames(_resp(
|
|
4396
|
+
return composeClassNames(_resp("border", props.border), _resp("border-t", props.borderTop), _resp("border-r", props.borderRight), _resp("border-b", props.borderBottom), _resp("border-l", props.borderLeft));
|
|
4429
4397
|
}
|
|
4430
4398
|
function display(props) {
|
|
4431
4399
|
return composeClassNames(_resp(void 0, props.display));
|
|
4432
4400
|
}
|
|
4433
|
-
const prefixes$1 = {
|
|
4434
|
-
align: "align",
|
|
4435
|
-
// `flex-align`
|
|
4436
|
-
direction: void 0,
|
|
4437
|
-
// `
|
|
4438
|
-
justify: "justify",
|
|
4439
|
-
// `flex-justify`
|
|
4440
|
-
wrap: "wrap"
|
|
4441
|
-
// `flex-wrap`
|
|
4442
|
-
};
|
|
4443
4401
|
function flex(props) {
|
|
4444
|
-
return composeClassNames(_resp(
|
|
4402
|
+
return composeClassNames(_resp("flex-align", props.align), _resp("f", props.direction), _resp("flex-justify", props.justify), _resp("flex", props.wrap));
|
|
4445
4403
|
}
|
|
4446
4404
|
function flexItem(props) {
|
|
4447
|
-
return composeClassNames(_resp("
|
|
4405
|
+
return composeClassNames(_resp("f", props.flex));
|
|
4448
4406
|
}
|
|
4449
|
-
const prefixes = {
|
|
4450
|
-
align: "text-align",
|
|
4451
|
-
weight: "font"
|
|
4452
|
-
};
|
|
4453
4407
|
function font(props) {
|
|
4454
|
-
return composeClassNames("font", props.weight &&
|
|
4408
|
+
return composeClassNames("font", props.weight && `font-${props.weight}`, _resp("text-align", props.align));
|
|
4455
4409
|
}
|
|
4456
4410
|
function gap(props) {
|
|
4457
4411
|
return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
|
|
4458
4412
|
}
|
|
4459
4413
|
function grid(props) {
|
|
4460
|
-
return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-
|
|
4414
|
+
return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-flow", props.autoFlow), _resp("auto-rows", props.autoRows), _resp("cols", props.columns), _resp("rows", props.rows));
|
|
4461
4415
|
}
|
|
4462
4416
|
function gridItem(props) {
|
|
4463
4417
|
return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
|
|
4464
4418
|
}
|
|
4419
|
+
function height(props) {
|
|
4420
|
+
return composeClassNames(_resp("h", props.height));
|
|
4421
|
+
}
|
|
4465
4422
|
function inset(props) {
|
|
4466
4423
|
return composeClassNames(_resp("inset", props.inset), _resp("top", props.insetTop), _resp("right", props.insetRight), _resp("bottom", props.insetBottom), _resp("left", props.insetLeft));
|
|
4467
4424
|
}
|
|
@@ -4481,7 +4438,10 @@ function pointerEvents(props) {
|
|
|
4481
4438
|
return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
|
|
4482
4439
|
}
|
|
4483
4440
|
function position(props) {
|
|
4484
|
-
return composeClassNames(_resp("
|
|
4441
|
+
return composeClassNames(_resp("position", props.position));
|
|
4442
|
+
}
|
|
4443
|
+
function radius(props) {
|
|
4444
|
+
return composeClassNames(_resp("r", props.radius));
|
|
4485
4445
|
}
|
|
4486
4446
|
function shadow(props) {
|
|
4487
4447
|
return composeClassNames(_resp("shadow", props.shadow));
|
|
@@ -4492,125 +4452,219 @@ function textOverflow(props) {
|
|
|
4492
4452
|
function width(props) {
|
|
4493
4453
|
return _resp("w", props.width) ?? "";
|
|
4494
4454
|
}
|
|
4455
|
+
function dialog() {
|
|
4456
|
+
return _comp("dialog", inset({
|
|
4457
|
+
inset: 0
|
|
4458
|
+
}));
|
|
4459
|
+
}
|
|
4460
|
+
function dialogContainer() {
|
|
4461
|
+
return _comp("dialog-container");
|
|
4462
|
+
}
|
|
4463
|
+
function dialogCardRoot() {
|
|
4464
|
+
return _comp("dialog-card-root");
|
|
4465
|
+
}
|
|
4466
|
+
function dialogLayout() {
|
|
4467
|
+
return _comp("dialog-layout");
|
|
4468
|
+
}
|
|
4469
|
+
function dialogHeader() {
|
|
4470
|
+
return _comp("dialog-header");
|
|
4471
|
+
}
|
|
4472
|
+
function dialogContent() {
|
|
4473
|
+
return _comp("dialog-content");
|
|
4474
|
+
}
|
|
4475
|
+
function dialogFooter() {
|
|
4476
|
+
return _comp("dialog-footer");
|
|
4477
|
+
}
|
|
4478
|
+
function menu() {
|
|
4479
|
+
return _comp("menu");
|
|
4480
|
+
}
|
|
4481
|
+
function menuDivider() {
|
|
4482
|
+
return _comp("menu-divider");
|
|
4483
|
+
}
|
|
4484
|
+
function skeleton(props) {
|
|
4485
|
+
return _comp("skeleton", radius(props));
|
|
4486
|
+
}
|
|
4487
|
+
function codeSkeleton(props) {
|
|
4488
|
+
return _comp("font-skeleton", _resp("code-skeleton", props.size));
|
|
4489
|
+
}
|
|
4490
|
+
function headingSkeleton(props) {
|
|
4491
|
+
return _comp("font-skeleton", _resp("heading-skeleton", props.size));
|
|
4492
|
+
}
|
|
4493
|
+
function labelSkeleton(props) {
|
|
4494
|
+
return _comp("font-skeleton", _resp("label-skeleton", props.size));
|
|
4495
|
+
}
|
|
4496
|
+
function textSkeleton(props) {
|
|
4497
|
+
return _comp("font-skeleton", _resp("text-skeleton", props.size));
|
|
4498
|
+
}
|
|
4499
|
+
function toastLayer() {
|
|
4500
|
+
return _comp("toast-layer");
|
|
4501
|
+
}
|
|
4502
|
+
function toast() {
|
|
4503
|
+
return _comp("toast");
|
|
4504
|
+
}
|
|
4505
|
+
function toastLoadingBar() {
|
|
4506
|
+
return _comp("toast-loading-bar");
|
|
4507
|
+
}
|
|
4508
|
+
function toastLoadingBarProgress() {
|
|
4509
|
+
return _comp("toast-loading-bar-progress");
|
|
4510
|
+
}
|
|
4511
|
+
function toastLoadingBarMask() {
|
|
4512
|
+
return _comp("toast-loading-bar-mask");
|
|
4513
|
+
}
|
|
4514
|
+
function treeItem() {
|
|
4515
|
+
return _comp("tree-item");
|
|
4516
|
+
}
|
|
4517
|
+
function _arrow() {
|
|
4518
|
+
return _comp("arrow");
|
|
4519
|
+
}
|
|
4520
|
+
function _arrowStroke() {
|
|
4521
|
+
return _comp("arrow-stroke");
|
|
4522
|
+
}
|
|
4523
|
+
function _arrowShape() {
|
|
4524
|
+
return _comp("arrow-shape");
|
|
4525
|
+
}
|
|
4495
4526
|
function _input(props) {
|
|
4496
|
-
return
|
|
4527
|
+
return _comp("input", props.border ? "input-b" : void 0, _resp("input", props.fontSize), _resp("input-p", props.padding), _resp("input-g", props.gap), radius(props), width(props));
|
|
4497
4528
|
}
|
|
4498
4529
|
function _inputElement() {
|
|
4499
|
-
return "input-element";
|
|
4530
|
+
return _comp("input-element");
|
|
4500
4531
|
}
|
|
4501
4532
|
function _inputPresentation() {
|
|
4502
|
-
return "input-presentation";
|
|
4533
|
+
return _comp("input-presentation");
|
|
4503
4534
|
}
|
|
4504
4535
|
function _selectable(props) {
|
|
4505
|
-
return
|
|
4536
|
+
return _comp("selectable", toneMap$2[props.tone ?? "default"], radius(props));
|
|
4506
4537
|
}
|
|
4507
4538
|
function avatar(props) {
|
|
4508
|
-
return
|
|
4539
|
+
return _comp("avatar", props.color || "gray", _resp("avatar", props.size));
|
|
4509
4540
|
}
|
|
4510
4541
|
function avatarArrow() {
|
|
4511
|
-
return
|
|
4542
|
+
return _comp("avatar-arrow");
|
|
4512
4543
|
}
|
|
4513
4544
|
function avatarInitials() {
|
|
4514
|
-
return
|
|
4545
|
+
return _comp("avatar-initials");
|
|
4515
4546
|
}
|
|
4516
4547
|
function avatarImage() {
|
|
4517
|
-
return
|
|
4548
|
+
return _comp("avatar-image");
|
|
4518
4549
|
}
|
|
4519
4550
|
function avatarCounter(props) {
|
|
4520
|
-
return
|
|
4551
|
+
return _comp("avatar-counter", _resp("avatar", props.size));
|
|
4521
4552
|
}
|
|
4522
4553
|
function avatarStack(props) {
|
|
4523
|
-
return
|
|
4554
|
+
return _comp("avatar-stack", _resp("avatar", props.size));
|
|
4524
4555
|
}
|
|
4525
4556
|
function badge(props) {
|
|
4526
|
-
return
|
|
4557
|
+
return _comp("badge", props.tone && `badge-${props.tone}`, radius(props));
|
|
4527
4558
|
}
|
|
4528
4559
|
function box(props) {
|
|
4529
|
-
return
|
|
4560
|
+
return _comp(
|
|
4561
|
+
"box",
|
|
4562
|
+
props.muted && "muted",
|
|
4563
|
+
// todo: consider this naming
|
|
4564
|
+
_resp("box", props.sizing),
|
|
4565
|
+
border(props),
|
|
4566
|
+
display(props),
|
|
4567
|
+
height(props),
|
|
4568
|
+
flex(props),
|
|
4569
|
+
flexItem(props),
|
|
4570
|
+
grid(props),
|
|
4571
|
+
gridItem(props),
|
|
4572
|
+
gap(props),
|
|
4573
|
+
inset(props),
|
|
4574
|
+
margin(props),
|
|
4575
|
+
maxWidth(props),
|
|
4576
|
+
props.outline && `outline-${props.outline}`,
|
|
4577
|
+
overflow(props),
|
|
4578
|
+
padding(props),
|
|
4579
|
+
pointerEvents(props),
|
|
4580
|
+
position(props),
|
|
4581
|
+
radius(props),
|
|
4582
|
+
width(props)
|
|
4583
|
+
);
|
|
4530
4584
|
}
|
|
4531
4585
|
function button(props) {
|
|
4532
4586
|
const {
|
|
4533
4587
|
mode,
|
|
4534
4588
|
tone
|
|
4535
4589
|
} = props;
|
|
4536
|
-
return
|
|
4590
|
+
return _comp("button", variantMap[mode ?? "default"], toneMap$1[tone ?? "default"], display(props), flexItem(props), radius(props), width(props));
|
|
4537
4591
|
}
|
|
4538
4592
|
function buttonLoadingBox() {
|
|
4539
4593
|
return "button-loading-box";
|
|
4540
4594
|
}
|
|
4541
4595
|
function card(props) {
|
|
4542
|
-
return
|
|
4596
|
+
return _comp(props.scheme, toneMap[props.tone ?? "inherit"], "card", props.checkered && "card-checkered", shadow(props));
|
|
4543
4597
|
}
|
|
4544
4598
|
function checkbox() {
|
|
4545
|
-
return
|
|
4599
|
+
return _comp("checkbox");
|
|
4546
4600
|
}
|
|
4547
4601
|
function checkboxInput() {
|
|
4548
|
-
return
|
|
4602
|
+
return _comp("checkbox-input");
|
|
4549
4603
|
}
|
|
4550
4604
|
function code(props) {
|
|
4551
|
-
return
|
|
4605
|
+
return _comp("code", "block", font(props), _resp("code", props.size));
|
|
4552
4606
|
}
|
|
4553
4607
|
function container(props) {
|
|
4554
|
-
return
|
|
4608
|
+
return _comp("container", maxWidth({
|
|
4555
4609
|
maxWidth: props.width
|
|
4556
4610
|
}));
|
|
4557
4611
|
}
|
|
4558
4612
|
function heading(props) {
|
|
4559
|
-
return
|
|
4613
|
+
return _comp("block", "heading", font(props), props.accent && "heading-accent", props.muted && "heading-muted", _resp("heading", props.size), flexItem(props));
|
|
4560
4614
|
}
|
|
4561
4615
|
function kbd(props) {
|
|
4562
|
-
return
|
|
4616
|
+
return _comp("kbd", radius(props));
|
|
4563
4617
|
}
|
|
4564
4618
|
function label(props) {
|
|
4565
|
-
return
|
|
4619
|
+
return _comp("label", "block", font(props), props.accent && "label-accent", props.muted && "label-muted", _resp("label", props.size));
|
|
4566
4620
|
}
|
|
4567
4621
|
function popover() {
|
|
4568
|
-
return
|
|
4622
|
+
return _comp("popover");
|
|
4569
4623
|
}
|
|
4570
4624
|
function radio() {
|
|
4571
|
-
return
|
|
4625
|
+
return _comp("radio");
|
|
4572
4626
|
}
|
|
4573
4627
|
function select(props) {
|
|
4574
|
-
return composeClassNames("select", _input(props));
|
|
4628
|
+
return composeClassNames(_comp("select"), _input(props));
|
|
4575
4629
|
}
|
|
4576
4630
|
function selectPresentation() {
|
|
4577
|
-
return composeClassNames("select-presentation", _inputPresentation());
|
|
4631
|
+
return composeClassNames(_comp("select-presentation"), _inputPresentation());
|
|
4578
4632
|
}
|
|
4579
4633
|
function spinner() {
|
|
4580
|
-
return
|
|
4634
|
+
return _comp("spinner");
|
|
4581
4635
|
}
|
|
4582
4636
|
function animatedSpinnerIcon() {
|
|
4583
|
-
return
|
|
4637
|
+
return _comp("animated-spinner-icon");
|
|
4584
4638
|
}
|
|
4585
4639
|
function _switch() {
|
|
4586
|
-
return
|
|
4640
|
+
return _comp("switch");
|
|
4587
4641
|
}
|
|
4588
4642
|
function _switchElement() {
|
|
4589
|
-
return
|
|
4643
|
+
return _comp("switch-element");
|
|
4590
4644
|
}
|
|
4591
4645
|
function _switchPresentation() {
|
|
4592
|
-
return
|
|
4646
|
+
return _comp("switch-presentation");
|
|
4593
4647
|
}
|
|
4594
4648
|
function _switchThumb() {
|
|
4595
|
-
return
|
|
4649
|
+
return _comp("switch-thumb");
|
|
4596
4650
|
}
|
|
4597
4651
|
function _switchTrack() {
|
|
4598
|
-
return
|
|
4652
|
+
return _comp("switch-track");
|
|
4599
4653
|
}
|
|
4600
4654
|
function text(props) {
|
|
4601
|
-
return
|
|
4655
|
+
return _comp("text", "block", flexItem(props), font(props), props.accent && "text-accent", props.muted && "text-muted", _resp("text", props.size));
|
|
4602
4656
|
}
|
|
4603
4657
|
function textArea(props) {
|
|
4604
|
-
return composeClassNames("text-area", _input(props));
|
|
4658
|
+
return composeClassNames(_comp("text-area"), _input(props));
|
|
4605
4659
|
}
|
|
4606
4660
|
function textInput(props) {
|
|
4607
|
-
return composeClassNames(_input(props), "text-input");
|
|
4661
|
+
return composeClassNames(_input(props), _comp("text-input"));
|
|
4608
4662
|
}
|
|
4609
4663
|
function tooltip() {
|
|
4610
|
-
return
|
|
4664
|
+
return _comp("tooltip");
|
|
4611
4665
|
}
|
|
4612
4666
|
function tooltipCard() {
|
|
4613
|
-
return
|
|
4667
|
+
return _comp("tooltip-card");
|
|
4614
4668
|
}
|
|
4615
4669
|
function srOnly() {
|
|
4616
4670
|
return composeClassNames("sr-only");
|
|
@@ -4663,10 +4717,12 @@ exports.flex = flex;
|
|
|
4663
4717
|
exports.flexItem = flexItem;
|
|
4664
4718
|
exports.font = font;
|
|
4665
4719
|
exports.gap = gap;
|
|
4720
|
+
exports.getClassNames = getClassNames;
|
|
4666
4721
|
exports.grid = grid;
|
|
4667
4722
|
exports.gridItem = gridItem;
|
|
4668
4723
|
exports.heading = heading;
|
|
4669
4724
|
exports.headingSkeleton = headingSkeleton;
|
|
4725
|
+
exports.height = height;
|
|
4670
4726
|
exports.inset = inset;
|
|
4671
4727
|
exports.isArray = isArray;
|
|
4672
4728
|
exports.isRecord = isRecord;
|
|
@@ -4686,6 +4742,7 @@ exports.px = px;
|
|
|
4686
4742
|
exports.radio = radio;
|
|
4687
4743
|
exports.radius = radius;
|
|
4688
4744
|
exports.rem = rem;
|
|
4745
|
+
exports.scopeClassName = scopeClassName;
|
|
4689
4746
|
exports.select = select;
|
|
4690
4747
|
exports.selectPresentation = selectPresentation;
|
|
4691
4748
|
exports.shadow = shadow;
|