@sanity/ui 2.10.0-corel.0 → 3.0.0-static.1
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/bin/ui.js +6 -0
- package/dist/_chunks-cjs/buildCommand.js +3542 -0
- package/dist/_chunks-cjs/buildCommand.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +25 -0
- package/dist/cli.js.map +1 -0
- package/dist/css.d.mts +1062 -0
- package/dist/css.d.ts +1062 -0
- package/dist/css.esm.js +3794 -0
- package/dist/css.esm.js.map +1 -0
- package/dist/css.js +3794 -0
- package/dist/css.js.map +1 -0
- package/dist/css.mjs +3794 -0
- package/dist/css.mjs.map +1 -0
- package/dist/index.d.mts +240 -221
- package/dist/index.d.ts +240 -221
- package/dist/index.esm.js +3033 -4536
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3037 -4541
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3033 -4536
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +25 -0
- package/dist/system.css +3385 -0
- package/dist/theme.d.mts +84 -22
- package/dist/theme.d.ts +84 -22
- package/dist/theme.esm.js +1718 -656
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +1757 -693
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1718 -656
- package/dist/theme.mjs.map +1 -1
- package/exports/css.ts +1 -0
- package/package.json +45 -24
- package/src/core/__workshop__/constants.ts +28 -19
- package/src/core/_compat/index.ts +2 -0
- package/src/core/{styles → _compat/styles}/border/borderStyle.ts +6 -0
- package/src/core/{styles → _compat/styles}/border/types.ts +1 -0
- package/src/core/{styles → _compat/styles}/box/boxStyle.ts +7 -1
- package/src/core/{styles → _compat/styles}/box/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/card/_cardColorStyle.ts +2 -10
- package/src/core/{styles → _compat/styles}/flex/flexItemStyle.ts +1 -1
- package/src/core/{styles → _compat/styles}/flex/flexStyle.ts +0 -18
- package/src/core/{styles → _compat/styles}/flex/types.ts +1 -3
- package/src/core/{styles → _compat/styles}/font/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/grid/gridStyle.ts +0 -10
- package/src/core/{styles → _compat/styles}/grid/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/helpers.ts +10 -1
- package/src/core/{styles → _compat/styles}/input/textInputStyle.ts +2 -2
- package/src/core/{styles → _compat/styles}/radius/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/shadow/shadowStyle.ts +1 -1
- package/src/core/components/autocomplete/__workshop__/custom.tsx +5 -4
- package/src/core/components/autocomplete/__workshop__/example.tsx +3 -2
- package/src/core/components/autocomplete/autocomplete.tsx +17 -9
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -3
- package/src/core/components/breadcrumbs/__workshop__/index.ts +0 -5
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +14 -9
- package/src/core/components/dialog/__workshop__/props.tsx +2 -0
- package/src/core/components/dialog/dialog.tsx +73 -92
- package/src/core/components/hotkeys/hotkeys.tsx +18 -29
- package/src/core/components/menu/menu.tsx +13 -12
- package/src/core/components/menu/menuDivider.tsx +16 -0
- package/src/core/components/menu/menuGroup.tsx +10 -8
- package/src/core/components/menu/menuItem.tsx +23 -14
- package/src/core/components/skeleton/skeleton.tsx +14 -20
- package/src/core/components/skeleton/textSkeleton.tsx +72 -48
- package/src/core/components/tab/tab.tsx +5 -7
- package/src/core/components/tab/tabList.tsx +5 -21
- package/src/core/components/tab/tabPanel.tsx +1 -0
- package/src/core/components/toast/toast.tsx +31 -16
- package/src/core/components/toast/toastProvider.tsx +23 -23
- package/src/core/components/tree/tree.tsx +7 -2
- package/src/core/components/tree/treeGroup.tsx +4 -1
- package/src/core/components/tree/treeItem.tsx +44 -35
- package/src/core/components/tree/types.ts +5 -1
- package/src/core/hooks/useArrayProp.ts +1 -1
- package/src/core/index.ts +0 -1
- package/src/core/lib/styled/elements.ts +135 -0
- package/src/core/lib/styled/index.ts +2 -0
- package/src/core/lib/styled/members.ts +15 -0
- package/src/core/lib/styled/styled.ts +79 -0
- package/src/core/primitives/_selectable/selectable.tsx +27 -14
- package/src/core/primitives/avatar/avatar.tsx +38 -39
- package/src/core/primitives/avatar/avatarCounter.tsx +2 -2
- package/src/core/primitives/avatar/avatarStack.tsx +2 -2
- package/src/core/primitives/avatar/styles.ts +2 -2
- package/src/core/primitives/badge/__workshop__/tones.tsx +9 -16
- package/src/core/primitives/badge/badge.tsx +18 -20
- package/src/core/primitives/box/box.tsx +65 -74
- package/src/core/primitives/button/__workshop__/props.tsx +5 -2
- package/src/core/primitives/button/__workshop__/stacked.tsx +2 -1
- package/src/core/primitives/button/button.tsx +38 -45
- package/src/core/primitives/button/styles.ts +5 -5
- package/src/core/primitives/card/RootCardContext.ts +3 -0
- package/src/core/primitives/card/__workshop__/props.tsx +2 -2
- package/src/core/primitives/card/card.tsx +37 -42
- package/src/core/primitives/checkbox/checkbox.tsx +6 -8
- package/src/core/primitives/code/code.tsx +22 -13
- package/src/core/primitives/code/styles.ts +1 -1
- package/src/core/primitives/container/container.tsx +7 -15
- package/src/core/primitives/container/styles.ts +1 -1
- package/src/core/primitives/flex/flex.tsx +6 -31
- package/src/core/primitives/grid/grid.tsx +6 -19
- package/src/core/primitives/heading/heading.tsx +24 -28
- package/src/core/primitives/heading/styles.ts +2 -2
- package/src/core/primitives/inline/inline.tsx +18 -18
- package/src/core/primitives/inline/styles.ts +1 -1
- package/src/core/primitives/kbd/kbd.tsx +30 -37
- package/src/core/primitives/label/label.tsx +15 -9
- package/src/core/primitives/label/styles.ts +2 -2
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +0 -1
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +2 -1
- package/src/core/primitives/popover/popover.tsx +21 -15
- package/src/core/primitives/popover/popoverCard.tsx +36 -38
- package/src/core/primitives/radio/radio.tsx +1 -1
- package/src/core/primitives/radio/styles.ts +3 -3
- package/src/core/primitives/select/select.tsx +1 -1
- package/src/core/primitives/select/styles.ts +3 -3
- package/src/core/primitives/spinner/__workshop__/Props.tsx +2 -1
- package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +16 -0
- package/src/core/primitives/spinner/spinner.tsx +8 -22
- package/src/core/primitives/stack/stack.tsx +12 -10
- package/src/core/primitives/stack/styles.ts +1 -1
- package/src/core/primitives/switch/styles.ts +11 -11
- package/src/core/primitives/switch/switch.tsx +20 -21
- package/src/core/primitives/text/styles.ts +2 -3
- package/src/core/primitives/text/text.tsx +18 -25
- package/src/core/primitives/textArea/__workshop__/plain.tsx +2 -2
- package/src/core/primitives/textArea/textArea.tsx +3 -3
- package/src/core/primitives/textInput/__workshop__/plain.tsx +4 -3
- package/src/core/primitives/textInput/textInput.tsx +111 -125
- package/src/core/primitives/tooltip/tooltip.test.tsx +1 -0
- package/src/core/primitives/tooltip/tooltip.tsx +13 -13
- package/src/core/primitives/tooltip/tooltipCard.tsx +15 -14
- package/src/core/primitives/types.ts +36 -16
- package/src/core/theme/__workshop__/build/story.tsx +2 -4
- package/src/core/theme/useTheme.ts +1 -1
- package/src/core/types/avatar.ts +6 -1
- package/src/core/types/box.ts +22 -16
- package/src/core/types/button.ts +1 -0
- package/src/core/types/flex.ts +27 -26
- package/src/core/types/grid.ts +17 -12
- package/src/core/types/gridItem.ts +32 -24
- package/src/core/types/radius.ts +7 -4
- package/src/core/types/text.ts +7 -4
- package/src/core/utils/arrow/arrow.tsx +1 -1
- package/src/core/utils/layer/layer.tsx +28 -11
- package/src/core/utils/srOnly/srOnly.tsx +1 -1
- package/src/core/utils/virtualList/virtualList.tsx +1 -1
- package/src/css/_resp.ts +28 -0
- package/src/css/cli/buildCommand.ts +36 -0
- package/src/css/cli/index.ts +38 -0
- package/src/css/compile/compileRule.ts +58 -0
- package/src/css/compile/compileRules.ts +56 -0
- package/src/css/compile/compileSystem.ts +7 -0
- package/src/css/compile/compileTheme.ts +512 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +5 -0
- package/src/css/components/breadcrumbs/index.ts +1 -0
- package/src/css/components/breadcrumbs/rules.ts +25 -0
- package/src/css/components/dialog/classes.ts +29 -0
- package/src/css/components/dialog/index.ts +1 -0
- package/src/css/components/dialog/rules.ts +75 -0
- package/src/css/components/menu/index.ts +1 -0
- package/src/css/components/menu/menu.ts +5 -0
- package/src/css/components/menu/rules.ts +10 -0
- package/src/css/components/skeleton/index.ts +2 -0
- package/src/css/components/skeleton/rules.ts +106 -0
- package/src/css/components/skeleton/skeleton.ts +31 -0
- package/src/css/components/skeleton/types.ts +24 -0
- package/src/css/components/toast/rules.ts +68 -0
- package/src/css/components/tree/index.ts +1 -0
- package/src/css/components/tree/rules.ts +167 -0
- package/src/css/components/tree/tree.ts +5 -0
- package/src/css/composeClassNames.ts +3 -0
- package/src/css/index.ts +51 -0
- package/src/css/primitives/avatar/avatar.ts +32 -0
- package/src/css/primitives/avatar/index.ts +2 -0
- package/src/css/primitives/avatar/rules.ts +190 -0
- package/src/css/primitives/avatar/types.ts +9 -0
- package/src/css/primitives/badge/badge.ts +8 -0
- package/src/css/primitives/badge/index.ts +2 -0
- package/src/css/primitives/badge/rules.ts +25 -0
- package/src/css/primitives/badge/types.ts +8 -0
- package/src/css/primitives/box/box.ts +38 -0
- package/src/css/primitives/box/index.ts +2 -0
- package/src/css/primitives/box/rules.ts +25 -0
- package/src/css/primitives/box/types.ts +48 -0
- package/src/css/primitives/button/button.ts +26 -0
- package/src/css/primitives/button/index.ts +1 -0
- package/src/css/primitives/button/rules.ts +58 -0
- package/src/css/primitives/card/card.ts +21 -0
- package/src/css/primitives/card/index.ts +1 -0
- package/src/css/primitives/card/rules.ts +241 -0
- package/src/css/primitives/checkbox/__styles.ts +129 -0
- package/src/css/primitives/checkbox/checkbox.ts +9 -0
- package/src/css/primitives/checkbox/index.ts +1 -0
- package/src/css/primitives/checkbox/rules.ts +136 -0
- package/src/css/primitives/code/code.ts +9 -0
- package/src/css/primitives/code/index.ts +2 -0
- package/src/css/primitives/code/rules.ts +71 -0
- package/src/css/primitives/code/types.ts +10 -0
- package/src/css/primitives/container/container.ts +7 -0
- package/src/css/primitives/container/index.ts +2 -0
- package/src/css/primitives/container/rules.ts +8 -0
- package/src/css/primitives/container/types.ts +6 -0
- package/src/css/primitives/heading/heading.ts +16 -0
- package/src/css/primitives/heading/index.ts +2 -0
- package/src/css/primitives/heading/rules.ts +84 -0
- package/src/css/primitives/heading/types.ts +12 -0
- package/src/css/primitives/kbd/index.ts +2 -0
- package/src/css/primitives/kbd/kbd.ts +7 -0
- package/src/css/primitives/kbd/rules.ts +20 -0
- package/src/css/primitives/kbd/types.ts +5 -0
- package/src/css/primitives/label/index.ts +2 -0
- package/src/css/primitives/label/label.ts +16 -0
- package/src/css/primitives/label/rules.ts +85 -0
- package/src/css/primitives/label/types.ts +12 -0
- package/src/css/primitives/popover/index.ts +1 -0
- package/src/css/primitives/popover/popover.ts +5 -0
- package/src/css/primitives/popover/rules.ts +5 -0
- package/src/css/primitives/radio/index.ts +1 -0
- package/src/css/primitives/radio/radio.ts +5 -0
- package/src/css/primitives/radio/rules.ts +5 -0
- package/src/css/primitives/select/index.ts +1 -0
- package/src/css/primitives/select/rules.ts +5 -0
- package/src/css/primitives/select/select.ts +5 -0
- package/src/css/primitives/selectable/__style.ts +117 -0
- package/src/css/primitives/selectable/index.ts +2 -0
- package/src/css/primitives/selectable/rules.ts +27 -0
- package/src/css/primitives/selectable/selectable.ts +9 -0
- package/src/css/primitives/selectable/types.ts +6 -0
- package/src/css/primitives/spinner/index.ts +1 -0
- package/src/css/primitives/spinner/rules.ts +20 -0
- package/src/css/primitives/spinner/spinner.ts +9 -0
- package/src/css/primitives/switch/index.ts +1 -0
- package/src/css/primitives/switch/rules.ts +132 -0
- package/src/css/primitives/switch/switch.ts +5 -0
- package/src/css/primitives/text/index.ts +2 -0
- package/src/css/primitives/text/rules.ts +75 -0
- package/src/css/primitives/text/text.ts +16 -0
- package/src/css/primitives/text/types.ts +11 -0
- package/src/css/primitives/textArea/index.ts +1 -0
- package/src/css/primitives/textArea/rules.ts +5 -0
- package/src/css/primitives/textArea/textArea.ts +5 -0
- package/src/css/primitives/textInput/index.ts +2 -0
- package/src/css/primitives/textInput/rules.ts +321 -0
- package/src/css/primitives/textInput/textInput.ts +15 -0
- package/src/css/primitives/textInput/types.ts +8 -0
- package/src/css/primitives/token/rules.ts +45 -0
- package/src/css/primitives/tooltip/index.ts +1 -0
- package/src/css/primitives/tooltip/rules.ts +17 -0
- package/src/css/primitives/tooltip/tooltip.ts +9 -0
- package/src/css/responsiveRules.ts +25 -0
- package/src/css/rules.ts +99 -0
- package/src/css/styles/border/border.ts +22 -0
- package/src/css/styles/border/index.ts +2 -0
- package/src/css/styles/border/rules.ts +24 -0
- package/src/css/styles/border/types.ts +10 -0
- package/src/css/styles/display/rules.ts +62 -0
- package/src/css/styles/flex/flex.ts +20 -0
- package/src/css/styles/flex/index.ts +2 -0
- package/src/css/styles/flex/rules.ts +28 -0
- package/src/css/styles/flex/types.ts +35 -0
- package/src/css/styles/flexItem/flexItem.ts +8 -0
- package/src/css/styles/flexItem/index.ts +2 -0
- package/src/css/styles/flexItem/rules.ts +11 -0
- package/src/css/styles/flexItem/types.ts +11 -0
- package/src/css/styles/font/font.ts +17 -0
- package/src/css/styles/font/index.ts +2 -0
- package/src/css/styles/font/rules.ts +148 -0
- package/src/css/styles/font/types.ts +12 -0
- package/src/css/styles/gap/gap.ts +8 -0
- package/src/css/styles/gap/index.ts +2 -0
- package/src/css/styles/gap/rules.ts +33 -0
- package/src/css/styles/gap/types.ts +9 -0
- package/src/css/styles/grid/grid.ts +13 -0
- package/src/css/styles/grid/index.ts +2 -0
- package/src/css/styles/grid/rules.ts +146 -0
- package/src/css/styles/grid/types.ts +29 -0
- package/src/css/styles/gridItem/gridItem.ts +15 -0
- package/src/css/styles/gridItem/index.ts +2 -0
- package/src/css/styles/gridItem/rules.ts +96 -0
- package/src/css/styles/gridItem/types.ts +41 -0
- package/src/css/styles/height/rules.ts +7 -0
- package/src/css/styles/margin/index.ts +2 -0
- package/src/css/styles/margin/margin.ts +15 -0
- package/src/css/styles/margin/rules.ts +63 -0
- package/src/css/styles/margin/types.ts +11 -0
- package/src/css/styles/maxWidth/index.ts +2 -0
- package/src/css/styles/maxWidth/maxWidth.ts +6 -0
- package/src/css/styles/maxWidth/rules.ts +36 -0
- package/src/css/styles/maxWidth/types.ts +6 -0
- package/src/css/styles/outline/rules.ts +7 -0
- package/src/css/styles/overflow/index.ts +2 -0
- package/src/css/styles/overflow/overflow.ts +11 -0
- package/src/css/styles/overflow/rules.ts +9 -0
- package/src/css/styles/overflow/types.ts +11 -0
- package/src/css/styles/padding/index.ts +2 -0
- package/src/css/styles/padding/padding.ts +15 -0
- package/src/css/styles/padding/rules.ts +61 -0
- package/src/css/styles/padding/types.ts +12 -0
- package/src/css/styles/pointerEvents/index.ts +2 -0
- package/src/css/styles/pointerEvents/pointerEvents.ts +6 -0
- package/src/css/styles/pointerEvents/rules.ts +11 -0
- package/src/css/styles/pointerEvents/types.ts +7 -0
- package/src/css/styles/position/index.ts +2 -0
- package/src/css/styles/position/position.ts +7 -0
- package/src/css/styles/position/rules.ts +31 -0
- package/src/css/styles/position/types.ts +13 -0
- package/src/css/styles/radius/index.ts +2 -0
- package/src/css/styles/radius/radius.ts +8 -0
- package/src/css/styles/radius/rules.ts +13 -0
- package/src/css/styles/radius/types.ts +7 -0
- package/src/css/styles/shadow/rules.ts +53 -0
- package/src/css/styles/width/index.ts +2 -0
- package/src/css/styles/width/rules.ts +7 -0
- package/src/css/styles/width/types.ts +8 -0
- package/src/css/styles/width/width.ts +6 -0
- package/src/css/types.ts +626 -0
- package/src/css/varNames.ts +381 -0
- package/src/css/vars.ts +399 -0
- package/src/theme/build/_deprecated/color/factory.ts +1 -1
- package/src/theme/build/_deprecated/color/muted/createMuted.ts +2 -2
- package/src/theme/build/buildColorTheme.ts +39 -45
- package/src/theme/build/renderColorTheme.ts +65 -239
- package/src/theme/build/resolveColorTokens.ts +115 -51
- package/src/theme/config/tokens/color/types.ts +18 -4
- package/src/theme/defaults/colorTokens.ts +10 -17
- package/src/theme/defaults/config.ts +1 -1
- package/src/theme/getScopedTheme.ts +2 -9
- package/src/theme/system/_constants.ts +25 -0
- package/src/theme/system/_types.ts +41 -0
- package/src/theme/system/color/_constants.ts +0 -8
- package/src/theme/system/color/badge.ts +7 -3
- package/src/theme/system/index.ts +2 -0
- package/src/theme/system/v0/color/_system.ts +4 -8
- package/src/theme/system/v0/color/color.ts +2 -3
- package/src/theme/versioning/themeColor_v0_v2.ts +0 -26
- package/src/theme/versioning/v0_v2.ts +0 -4
- package/dist/_chunks-cjs/getTheme_v2.js +0 -342
- package/dist/_chunks-cjs/getTheme_v2.js.map +0 -1
- package/dist/_chunks-es/getTheme_v2.mjs +0 -343
- package/dist/_chunks-es/getTheme_v2.mjs.map +0 -1
- package/dist/_legacy/getTheme_v2.esm.js +0 -343
- package/dist/_legacy/getTheme_v2.esm.js.map +0 -1
- package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -38
- package/src/core/components/breadcrumbs/__workshop__/buttons.tsx +0 -58
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +0 -5
- package/src/core/components/dialog/styles.ts +0 -76
- package/src/core/components/menu/menuDivider.ts +0 -12
- package/src/core/components/skeleton/styles.ts +0 -50
- package/src/core/components/toast/styles.ts +0 -61
- package/src/core/components/tree/style.ts +0 -104
- package/src/core/primitives/_selectable/style.ts +0 -114
- package/src/core/primitives/card/styles.ts +0 -146
- package/src/core/primitives/checkbox/styles.ts +0 -127
- /package/src/core/{styles → _compat/styles}/border/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/box/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/card/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/focusRing/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/codeFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/headingFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/labelFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/responsiveFont.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textAlignStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/gridItemStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/responsiveInputPaddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/internal.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginsStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/radiusStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/types.ts +0 -0
- /package/src/core/{_compat.ts → _compat/types.ts} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {FONT_CODE_SIZE, FONT_HEADING_SIZE, FONT_LABEL_SIZE, FONT_TEXT_SIZE} from '@sanity/ui/theme'
|
|
2
|
+
import {responsiveRules} from '../../responsiveRules'
|
|
3
|
+
import {Rules} from '../../types'
|
|
4
|
+
|
|
5
|
+
export const skeletonRules: Rules = {
|
|
6
|
+
'skeleton': {
|
|
7
|
+
'backgroundColor': 'var(--card-skeleton-from-color)',
|
|
8
|
+
'backgroundPosition': '100%',
|
|
9
|
+
'backgroundSize': '200% 100%',
|
|
10
|
+
'backgroundAttachment': 'fixed',
|
|
11
|
+
'opacity': 0,
|
|
12
|
+
'transition': 'opacity 200ms ease-in',
|
|
13
|
+
|
|
14
|
+
'@keyframes': {
|
|
15
|
+
'skeleton-pulse': {
|
|
16
|
+
'0%': {
|
|
17
|
+
backgroundPosition: '100%',
|
|
18
|
+
},
|
|
19
|
+
'100%': {
|
|
20
|
+
backgroundPosition: '-100%',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
'@nest': {
|
|
26
|
+
'&[data-animated]': {
|
|
27
|
+
backgroundImage: `linear-gradient(
|
|
28
|
+
to right,
|
|
29
|
+
var(--card-skeleton-from-color),
|
|
30
|
+
var(--card-skeleton-to-color),
|
|
31
|
+
var(--card-skeleton-from-color),
|
|
32
|
+
var(--card-skeleton-from-color),
|
|
33
|
+
var(--card-skeleton-from-color)
|
|
34
|
+
)`,
|
|
35
|
+
animationName: 'skeleton-pulse',
|
|
36
|
+
animationTimingFunction: 'ease-in-out',
|
|
37
|
+
animationIterationCount: 'infinite',
|
|
38
|
+
animationDuration: '2000ms',
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
'&[data-visible]': {
|
|
42
|
+
opacity: 1,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
'@media': {
|
|
47
|
+
'screen and (prefers-reduced-motion: no-preference)': {
|
|
48
|
+
backgroundColor: 'var(--card-skeleton-from-color)',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
'font-skeleton': {
|
|
54
|
+
height: `calc(var(--font-skeleton-line-height) - var(--font-skeleton-ascender-height) - var(--font-skeleton-descender-height))`,
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
// ...responsiveRules('text-skeleton-0', {
|
|
58
|
+
// '--font-skeleton-line-height': 'var(--font-text-0-line-height)',
|
|
59
|
+
// '--font-skeleton-ascender-height': 'var(--font-text-0-ascender-height)',
|
|
60
|
+
// '--font-skeleton-descender-height': 'var(--font-text-0-descender-height)',
|
|
61
|
+
// }),
|
|
62
|
+
|
|
63
|
+
...FONT_CODE_SIZE.reduce((acc, size) => {
|
|
64
|
+
return {
|
|
65
|
+
...acc,
|
|
66
|
+
...responsiveRules(`code-skeleton-${size}`, {
|
|
67
|
+
'--font-skeleton-line-height': `var(--font-code-${size}-line-height)`,
|
|
68
|
+
'--font-skeleton-ascender-height': `var(--font-code-${size}-ascender-height)`,
|
|
69
|
+
'--font-skeleton-descender-height': `var(--font-code-${size}-descender-height)`,
|
|
70
|
+
}),
|
|
71
|
+
}
|
|
72
|
+
}, {}),
|
|
73
|
+
|
|
74
|
+
...FONT_HEADING_SIZE.reduce((acc, size) => {
|
|
75
|
+
return {
|
|
76
|
+
...acc,
|
|
77
|
+
...responsiveRules(`heading-skeleton-${size}`, {
|
|
78
|
+
'--font-skeleton-line-height': `var(--font-heading-${size}-line-height)`,
|
|
79
|
+
'--font-skeleton-ascender-height': `var(--font-heading-${size}-ascender-height)`,
|
|
80
|
+
'--font-skeleton-descender-height': `var(--font-heading-${size}-descender-height)`,
|
|
81
|
+
}),
|
|
82
|
+
}
|
|
83
|
+
}, {}),
|
|
84
|
+
|
|
85
|
+
...FONT_LABEL_SIZE.reduce((acc, size) => {
|
|
86
|
+
return {
|
|
87
|
+
...acc,
|
|
88
|
+
...responsiveRules(`label-skeleton-${size}`, {
|
|
89
|
+
'--font-skeleton-line-height': `var(--font-label-${size}-line-height)`,
|
|
90
|
+
'--font-skeleton-ascender-height': `var(--font-label-${size}-ascender-height)`,
|
|
91
|
+
'--font-skeleton-descender-height': `var(--font-label-${size}-descender-height)`,
|
|
92
|
+
}),
|
|
93
|
+
}
|
|
94
|
+
}, {}),
|
|
95
|
+
|
|
96
|
+
...FONT_TEXT_SIZE.reduce((acc, size) => {
|
|
97
|
+
return {
|
|
98
|
+
...acc,
|
|
99
|
+
...responsiveRules(`text-skeleton-${size}`, {
|
|
100
|
+
'--font-skeleton-line-height': `var(--font-text-${size}-line-height)`,
|
|
101
|
+
'--font-skeleton-ascender-height': `var(--font-text-${size}-ascender-height)`,
|
|
102
|
+
'--font-skeleton-descender-height': `var(--font-text-${size}-descender-height)`,
|
|
103
|
+
}),
|
|
104
|
+
}
|
|
105
|
+
}, {}),
|
|
106
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {_resp} from '../../_resp'
|
|
2
|
+
import {composeClassNames} from '../../composeClassNames'
|
|
3
|
+
import {radius} from '../../styles/radius'
|
|
4
|
+
import {
|
|
5
|
+
CodeSkeletonStyleProps,
|
|
6
|
+
HeadingSkeletonStyleProps,
|
|
7
|
+
LabelSkeletonStyleProps,
|
|
8
|
+
SkeletonStyleProps,
|
|
9
|
+
TextSkeletonStyleProps,
|
|
10
|
+
} from './types'
|
|
11
|
+
|
|
12
|
+
/** @beta */
|
|
13
|
+
export function skeleton(props: SkeletonStyleProps): string {
|
|
14
|
+
return composeClassNames('skeleton', radius(props))
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function codeSkeleton(props: CodeSkeletonStyleProps): string {
|
|
18
|
+
return composeClassNames('font-skeleton', _resp('code-skeleton', props.size))
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function headingSkeleton(props: HeadingSkeletonStyleProps): string {
|
|
22
|
+
return composeClassNames('font-skeleton', _resp('heading-skeleton', props.size))
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function labelSkeleton(props: LabelSkeletonStyleProps): string {
|
|
26
|
+
return composeClassNames('font-skeleton', _resp('label-skeleton', props.size))
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function textSkeleton(props: TextSkeletonStyleProps): string {
|
|
30
|
+
return composeClassNames('font-skeleton', _resp('text-skeleton', props.size))
|
|
31
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {FontCodeSize, FontHeadingSize, FontLabelSize, FontTextSize} from '@sanity/ui/theme'
|
|
2
|
+
import {RadiusStyleProps} from '../../styles/radius'
|
|
3
|
+
import {ResponsiveProp} from '../../types'
|
|
4
|
+
|
|
5
|
+
/** @beta */
|
|
6
|
+
export interface SkeletonStyleProps extends RadiusStyleProps {
|
|
7
|
+
// visible?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CodeSkeletonStyleProps {
|
|
11
|
+
size?: ResponsiveProp<FontCodeSize>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface HeadingSkeletonStyleProps {
|
|
15
|
+
size?: ResponsiveProp<FontHeadingSize>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface LabelSkeletonStyleProps {
|
|
19
|
+
size?: ResponsiveProp<FontLabelSize>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TextSkeletonStyleProps {
|
|
23
|
+
size?: ResponsiveProp<FontTextSize>
|
|
24
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// import {ThemeColorStateToneKey, getTheme_v2} from '../../../theme'
|
|
2
|
+
// import {POPOVER_MOTION_CONTENT_OPACITY_PROPERTY} from '../../constants'
|
|
3
|
+
// import {styled, keyframes, css} from '../../lib/styled'
|
|
4
|
+
// import {Flex} from '../../primitives'
|
|
5
|
+
// import {ThemeProps} from '../../styles'
|
|
6
|
+
|
|
7
|
+
// const loadingAnimation = keyframes`
|
|
8
|
+
// 0% {
|
|
9
|
+
// width: 0;
|
|
10
|
+
// }
|
|
11
|
+
// 100% {
|
|
12
|
+
// width: 100%;
|
|
13
|
+
// }
|
|
14
|
+
// `
|
|
15
|
+
|
|
16
|
+
// const LOADING_BAR_HEIGHT = 2
|
|
17
|
+
|
|
18
|
+
// export function rootStyles(
|
|
19
|
+
// props: {$duration?: number; tone: ThemeColorStateToneKey} & ThemeProps,
|
|
20
|
+
// ): ReturnType<typeof css> {
|
|
21
|
+
// const {color} = getTheme_v2(props.theme)
|
|
22
|
+
|
|
23
|
+
// const loadingBarColor = color.button.default[props.tone].enabled.bg
|
|
24
|
+
|
|
25
|
+
// if (!props.$duration)
|
|
26
|
+
// return css`
|
|
27
|
+
// pointer-events: all;
|
|
28
|
+
// & > * {
|
|
29
|
+
// opacity: var(${POPOVER_MOTION_CONTENT_OPACITY_PROPERTY}, 1);
|
|
30
|
+
// will-change: opacity;
|
|
31
|
+
// }
|
|
32
|
+
// `
|
|
33
|
+
|
|
34
|
+
// return css`
|
|
35
|
+
// pointer-events: all;
|
|
36
|
+
// width: 100%;
|
|
37
|
+
// position: relative;
|
|
38
|
+
// overflow: hidden;
|
|
39
|
+
// overflow: clip;
|
|
40
|
+
// padding-bottom: ${LOADING_BAR_HEIGHT}px;
|
|
41
|
+
// &::before {
|
|
42
|
+
// content: '';
|
|
43
|
+
// position: absolute;
|
|
44
|
+
// bottom: 0px;
|
|
45
|
+
// height: ${LOADING_BAR_HEIGHT}px;
|
|
46
|
+
// background: ${loadingBarColor};
|
|
47
|
+
// animation-name: ${loadingAnimation};
|
|
48
|
+
// animation-duration: ${props.$duration}ms;
|
|
49
|
+
// animation-fill-mode: both;
|
|
50
|
+
// }
|
|
51
|
+
|
|
52
|
+
// & > * {
|
|
53
|
+
// opacity: var(${POPOVER_MOTION_CONTENT_OPACITY_PROPERTY}, 1);
|
|
54
|
+
// will-change: opacity;
|
|
55
|
+
// }
|
|
56
|
+
// `
|
|
57
|
+
// }
|
|
58
|
+
|
|
59
|
+
export {}
|
|
60
|
+
|
|
61
|
+
// const ToastContainer = styled.div`
|
|
62
|
+
// box-sizing: border-box;
|
|
63
|
+
// position: absolute;
|
|
64
|
+
// right: 0;
|
|
65
|
+
// bottom: 0;
|
|
66
|
+
// max-width: 420px;
|
|
67
|
+
// width: 100%;
|
|
68
|
+
// `
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tree'
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import {Rules} from '../../types'
|
|
2
|
+
|
|
3
|
+
export const treeRules: Rules = {
|
|
4
|
+
'tree-item': {
|
|
5
|
+
'@nest': {
|
|
6
|
+
'&[role="none"] > [role="treeitem"]': {
|
|
7
|
+
outline: 'none',
|
|
8
|
+
cursor: 'default',
|
|
9
|
+
borderRadius: '3px',
|
|
10
|
+
|
|
11
|
+
backgroundColor: 'var(--card-bg-color)',
|
|
12
|
+
color: 'var(--treeitem-fg-color)',
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
'&[role="none"] > [role="treeitem"]:focus': {
|
|
16
|
+
position: 'relative',
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
'&[role="treeitem"]': {
|
|
20
|
+
outline: 'none',
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
'&[role="treeitem"] > div': {
|
|
24
|
+
cursor: 'default',
|
|
25
|
+
borderRadius: '3px',
|
|
26
|
+
|
|
27
|
+
backgroundColor: 'var(--card-bg-color)',
|
|
28
|
+
color: 'var(--treeitem-fg-color)',
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
'&[role="treeitem"]:focus > div': {
|
|
32
|
+
position: 'relative',
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
// &[role='treeitem'] {
|
|
36
|
+
// outline: none;
|
|
37
|
+
|
|
38
|
+
// & > div {
|
|
39
|
+
// cursor: default;
|
|
40
|
+
// border-radius: 3px;
|
|
41
|
+
|
|
42
|
+
// background-color: var(--card-bg-color);
|
|
43
|
+
// color: var(--treeitem-fg-color);
|
|
44
|
+
// }
|
|
45
|
+
|
|
46
|
+
// &:focus > div {
|
|
47
|
+
// position: relative;
|
|
48
|
+
// }
|
|
49
|
+
// }
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// const Root = memo(styled.li(treeItemRootStyle, treeItemRootColorStyle))
|
|
55
|
+
|
|
56
|
+
// const TreeItemBox = styled(Box).attrs({forwardedAs: 'a'})<TreeItemBoxStyleProps>(treeItemBoxStyle)
|
|
57
|
+
|
|
58
|
+
// const ToggleArrowText = styled(Text)`
|
|
59
|
+
// & > svg {
|
|
60
|
+
// transition: transform 100ms;
|
|
61
|
+
// }
|
|
62
|
+
// `
|
|
63
|
+
|
|
64
|
+
// import {getTheme_v2} from '@sanity/ui/theme'
|
|
65
|
+
// import {css} from '../../lib/styled'
|
|
66
|
+
// import {rem, ThemeProps} from '../../styles'
|
|
67
|
+
// import {_cardColorStyle} from '../../styles/card'
|
|
68
|
+
|
|
69
|
+
// export function treeItemRootStyle(): ReturnType<typeof css> {
|
|
70
|
+
// return css`
|
|
71
|
+
// &[role='none'] > [role='treeitem'] {
|
|
72
|
+
// outline: none;
|
|
73
|
+
// cursor: default;
|
|
74
|
+
// border-radius: 3px;
|
|
75
|
+
|
|
76
|
+
// background-color: var(--card-bg-color);
|
|
77
|
+
// color: var(--treeitem-fg-color);
|
|
78
|
+
|
|
79
|
+
// &:focus {
|
|
80
|
+
// position: relative;
|
|
81
|
+
// }
|
|
82
|
+
// }
|
|
83
|
+
|
|
84
|
+
// &[role='treeitem'] {
|
|
85
|
+
// outline: none;
|
|
86
|
+
|
|
87
|
+
// & > div {
|
|
88
|
+
// cursor: default;
|
|
89
|
+
// border-radius: 3px;
|
|
90
|
+
|
|
91
|
+
// background-color: var(--card-bg-color);
|
|
92
|
+
// color: var(--treeitem-fg-color);
|
|
93
|
+
// }
|
|
94
|
+
|
|
95
|
+
// &:focus > div {
|
|
96
|
+
// position: relative;
|
|
97
|
+
// }
|
|
98
|
+
// }
|
|
99
|
+
// `
|
|
100
|
+
// }
|
|
101
|
+
|
|
102
|
+
// export function treeItemRootColorStyle(props: ThemeProps): ReturnType<typeof css> {
|
|
103
|
+
// const $tone = 'default'
|
|
104
|
+
// const {color} = getTheme_v2(props.theme)
|
|
105
|
+
// const tone = color.selectable[$tone]
|
|
106
|
+
|
|
107
|
+
// return css`
|
|
108
|
+
// &[role='none'] {
|
|
109
|
+
// & > [role='treeitem'] {
|
|
110
|
+
// ${_cardColorStyle(color, tone.enabled)}
|
|
111
|
+
// }
|
|
112
|
+
|
|
113
|
+
// &[data-selected] > [role='treeitem'] {
|
|
114
|
+
// ${_cardColorStyle(color, tone.pressed)}
|
|
115
|
+
// }
|
|
116
|
+
|
|
117
|
+
// @media (hover: hover) {
|
|
118
|
+
// &:not([data-selected]) > [role='treeitem']:not(:focus):hover {
|
|
119
|
+
// ${_cardColorStyle(color, tone.hovered)}
|
|
120
|
+
// }
|
|
121
|
+
|
|
122
|
+
// & > [role='treeitem']:focus {
|
|
123
|
+
// ${_cardColorStyle(color, tone.selected)}
|
|
124
|
+
// }
|
|
125
|
+
// }
|
|
126
|
+
// }
|
|
127
|
+
|
|
128
|
+
// &[role='treeitem'] {
|
|
129
|
+
// & > [data-ui='TreeItem__box'] {
|
|
130
|
+
// ${_cardColorStyle(color, tone.enabled)}
|
|
131
|
+
// }
|
|
132
|
+
|
|
133
|
+
// &[data-selected] > [data-ui='TreeItem__box'] {
|
|
134
|
+
// ${_cardColorStyle(color, tone.pressed)}
|
|
135
|
+
// }
|
|
136
|
+
|
|
137
|
+
// @media (hover: hover) {
|
|
138
|
+
// &:not([data-selected]):not(:focus) > [data-ui='TreeItem__box']:hover {
|
|
139
|
+
// ${_cardColorStyle(color, tone.hovered)}
|
|
140
|
+
// }
|
|
141
|
+
|
|
142
|
+
// &:focus > [data-ui='TreeItem__box'] {
|
|
143
|
+
// ${_cardColorStyle(color, tone.selected)}
|
|
144
|
+
// }
|
|
145
|
+
// }
|
|
146
|
+
// }
|
|
147
|
+
// `
|
|
148
|
+
// }
|
|
149
|
+
|
|
150
|
+
// export interface TreeItemBoxStyleProps {
|
|
151
|
+
// $level: number
|
|
152
|
+
// }
|
|
153
|
+
|
|
154
|
+
// export function treeItemBoxStyle(
|
|
155
|
+
// props: TreeItemBoxStyleProps & ThemeProps,
|
|
156
|
+
// ): ReturnType<typeof css> {
|
|
157
|
+
// const {$level} = props
|
|
158
|
+
// const {space} = getTheme_v2(props.theme)
|
|
159
|
+
|
|
160
|
+
// return css`
|
|
161
|
+
// padding-left: ${rem(space[2] * $level)};
|
|
162
|
+
|
|
163
|
+
// &[data-as='a'] {
|
|
164
|
+
// text-decoration: none;
|
|
165
|
+
// }
|
|
166
|
+
// `
|
|
167
|
+
// }
|
package/src/css/index.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export * from './compile/compileSystem'
|
|
2
|
+
export * from './compile/compileTheme'
|
|
3
|
+
|
|
4
|
+
export * from './composeClassNames'
|
|
5
|
+
|
|
6
|
+
export * from './components/breadcrumbs'
|
|
7
|
+
export * from './components/dialog'
|
|
8
|
+
export * from './components/menu'
|
|
9
|
+
export * from './components/skeleton'
|
|
10
|
+
export * from './components/tree'
|
|
11
|
+
|
|
12
|
+
export * from './primitives/avatar'
|
|
13
|
+
export * from './primitives/badge'
|
|
14
|
+
export * from './primitives/box'
|
|
15
|
+
export * from './primitives/button'
|
|
16
|
+
export * from './primitives/card'
|
|
17
|
+
export * from './primitives/checkbox'
|
|
18
|
+
export * from './primitives/code'
|
|
19
|
+
export * from './primitives/container'
|
|
20
|
+
export * from './primitives/heading'
|
|
21
|
+
export * from './primitives/kbd'
|
|
22
|
+
export * from './primitives/label'
|
|
23
|
+
export * from './primitives/popover'
|
|
24
|
+
export * from './primitives/radio'
|
|
25
|
+
export * from './primitives/select'
|
|
26
|
+
export * from './primitives/selectable'
|
|
27
|
+
export * from './primitives/spinner'
|
|
28
|
+
export * from './primitives/switch'
|
|
29
|
+
export * from './primitives/text'
|
|
30
|
+
export * from './primitives/textArea'
|
|
31
|
+
export * from './primitives/textInput'
|
|
32
|
+
// export * from './primitives/token'
|
|
33
|
+
export * from './primitives/tooltip'
|
|
34
|
+
|
|
35
|
+
export * from './styles/border/types'
|
|
36
|
+
export * from './styles/gap/types'
|
|
37
|
+
export * from './styles/flex/types'
|
|
38
|
+
export * from './styles/flexItem/types'
|
|
39
|
+
export * from './styles/font/types'
|
|
40
|
+
export * from './styles/grid/types'
|
|
41
|
+
export * from './styles/gridItem/types'
|
|
42
|
+
export * from './styles/margin/types'
|
|
43
|
+
export * from './styles/maxWidth/types'
|
|
44
|
+
export * from './styles/overflow/types'
|
|
45
|
+
export * from './styles/padding/types'
|
|
46
|
+
export * from './styles/pointerEvents/types'
|
|
47
|
+
export * from './styles/position/types'
|
|
48
|
+
export * from './styles/radius/types'
|
|
49
|
+
export * from './styles/width/types'
|
|
50
|
+
|
|
51
|
+
export * from './types'
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {_resp} from '../../_resp'
|
|
2
|
+
import {composeClassNames} from '../../composeClassNames'
|
|
3
|
+
import {AvatarStyleProps} from './types'
|
|
4
|
+
|
|
5
|
+
export function avatar(props: AvatarStyleProps): string {
|
|
6
|
+
return composeClassNames(
|
|
7
|
+
'avatar',
|
|
8
|
+
`avatar-${props.color}`,
|
|
9
|
+
`avatar-arrow-${props.arrowPosition}`,
|
|
10
|
+
_resp('avatar', props.size),
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function avatarArrow(): string {
|
|
15
|
+
return composeClassNames('avatar-arrow')
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function avatarInitials(): string {
|
|
19
|
+
return composeClassNames('avatar-initials')
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function avatarBgStroke(): string {
|
|
23
|
+
return composeClassNames('avatar-bg-stroke')
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function avatarStroke(): string {
|
|
27
|
+
return composeClassNames('avatar-stroke')
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function avatarImage(): string {
|
|
31
|
+
return composeClassNames('avatar-image')
|
|
32
|
+
}
|