@sanity/ui 4.4.3 → 4.4.4
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/autocomplete.js +2 -2
- package/dist/breadcrumbs.js +1 -1
- package/dist/{button-Btcy6IOp.js → button-Bp0udHV9.js} +11 -10
- package/dist/button-Bp0udHV9.js.map +1 -0
- package/dist/button-dnqMFkWg.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -55
- package/dist/index.js.map +1 -1
- package/dist/styles.css +137 -16
- package/dist/{textInput-nVtAHeX8.js → textInput-CTqkq5UQ.js} +2 -2
- package/dist/{textInput-nVtAHeX8.js.map → textInput-CTqkq5UQ.js.map} +1 -1
- package/dist/toast.js +1 -1
- package/package.json +1 -1
- package/dist/button-Btcy6IOp.js.map +0 -1
package/dist/autocomplete.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { c as EMPTY_RECORD, n as _getArrayProp, s as EMPTY_ARRAY } from "./helpers-XThPpWje.js";
|
|
3
|
-
import { h as focusFirstDescendant, p as _hasFocus, t as TextInput, v as _raf } from "./textInput-
|
|
3
|
+
import { h as focusFirstDescendant, p as _hasFocus, t as TextInput, v as _raf } from "./textInput-CTqkq5UQ.js";
|
|
4
4
|
import { t as _isEnterToClickElement } from "./element-BYgCE_iK.js";
|
|
5
5
|
import { s as Card, y as Box } from "./useLayer-D_TnC6On.js";
|
|
6
6
|
import { n as Text, t as Stack } from "./stack-CPdFknrG.js";
|
|
7
|
-
import { t as Button } from "./button-
|
|
7
|
+
import { t as Button } from "./button-Bp0udHV9.js";
|
|
8
8
|
import { t as Popover } from "./popover-BVbv1K3z.js";
|
|
9
9
|
import { c } from "react/compiler-runtime";
|
|
10
10
|
import { ChevronDownIcon } from "@sanity/icons/ChevronDown";
|
package/dist/breadcrumbs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { n as _getArrayProp } from "./helpers-XThPpWje.js";
|
|
3
3
|
import { y as Box } from "./useLayer-D_TnC6On.js";
|
|
4
4
|
import { n as Text, t as Stack } from "./stack-CPdFknrG.js";
|
|
5
|
-
import { t as Button } from "./button-
|
|
5
|
+
import { t as Button } from "./button-Bp0udHV9.js";
|
|
6
6
|
import { t as Popover } from "./popover-BVbv1K3z.js";
|
|
7
7
|
import { t as useClickOutsideEvent } from "./useClickOutsideEvent-CC1zgOmv.js";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
@@ -37,7 +37,7 @@ function buttonBaseStyles(props) {
|
|
|
37
37
|
width: button.border.width,
|
|
38
38
|
color: "var(--card-border-color)"
|
|
39
39
|
});
|
|
40
|
-
return css
|
|
40
|
+
return css`margin:0;background-color:var(--card-bg-color);color:var(--card-fg-color);box-shadow:${borderBoxShadow};&:not([data-disabled='true']){&:focus:not(:focus-visible){box-shadow:${borderBoxShadow};}}`;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* @internal
|
|
@@ -65,20 +65,21 @@ function buttonDisabledAndFocusStyles(props) {
|
|
|
65
65
|
*/
|
|
66
66
|
function buttonStyles(props) {
|
|
67
67
|
let { style } = getTheme_v2(props.theme);
|
|
68
|
-
return css`${
|
|
68
|
+
return css`${style?.button?.root}`;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
var buttonRoot = "_2mi48t0", buttonWidthFill = "_2mi48t1";
|
|
71
|
+
const StyledButton = /* @__PURE__ */ styled(/* @__PURE__ */ styled(/* @__PURE__ */ styled(/* @__PURE__ */ styled.button.attrs({ className: buttonRoot }).withConfig({
|
|
71
72
|
displayName: "ButtonBase",
|
|
72
|
-
componentId: "sc-
|
|
73
|
+
componentId: "sc-uik9k2-0"
|
|
73
74
|
})(buttonBaseStyles)).withConfig({
|
|
74
75
|
displayName: "ButtonColor",
|
|
75
|
-
componentId: "sc-
|
|
76
|
+
componentId: "sc-uik9k2-1"
|
|
76
77
|
})(buttonColorStyles)).withConfig({
|
|
77
78
|
displayName: "ButtonDisabledAndFocus",
|
|
78
|
-
componentId: "sc-
|
|
79
|
-
})(buttonDisabledAndFocusStyles)).withConfig({
|
|
79
|
+
componentId: "sc-uik9k2-2"
|
|
80
|
+
})(buttonDisabledAndFocusStyles)).attrs((props) => ({ className: props.$width === "fill" ? buttonWidthFill : void 0 })).withConfig({
|
|
80
81
|
displayName: "StyledButton",
|
|
81
|
-
componentId: "sc-
|
|
82
|
+
componentId: "sc-uik9k2-3"
|
|
82
83
|
})(responsiveRadiusStyle, buttonStyles);
|
|
83
84
|
function ButtonComponent(props) {
|
|
84
85
|
let $ = c(87), IconComponent, IconRightComponent, children, disabled, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, ref, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
|
|
@@ -115,7 +116,7 @@ function ButtonComponent(props) {
|
|
|
115
116
|
}, $[48] = padding, $[49] = paddingBottom, $[50] = paddingLeft, $[51] = paddingRight, $[52] = paddingTop, $[53] = paddingX, $[54] = paddingY, $[55] = t19) : t19 = $[55];
|
|
116
117
|
let boxProps = t19, t20 = !!(loading || disabled), t21 = selected ? "" : void 0, t22 = !!(loading || disabled), t23;
|
|
117
118
|
$[56] === loading ? t23 = $[57] : (t23 = !!loading && /* @__PURE__ */ jsx("div", {
|
|
118
|
-
className: "
|
|
119
|
+
className: "_2mi48t2",
|
|
119
120
|
"data-ui": "ButtonLoading",
|
|
120
121
|
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
121
122
|
}), $[56] = loading, $[57] = t23);
|
|
@@ -179,4 +180,4 @@ function ButtonComponent(props) {
|
|
|
179
180
|
const Button = ButtonComponent;
|
|
180
181
|
export { Spinner as n, spinnerIcon as r, Button as t };
|
|
181
182
|
|
|
182
|
-
//# sourceMappingURL=button-
|
|
183
|
+
//# sourceMappingURL=button-Bp0udHV9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-Bp0udHV9.js","names":["<SpinnerIcon className={spinnerIcon} />","<Text data-ui=\"Spinner\" {...props}>\n <SpinnerIcon className={spinnerIcon} />\n </Text>","_c","fontSize = 1","justifyProp = 'center'","mode = 'default'","paddingProp = 3","radiusProp = 2","gap = 3","tone = 'default'","type = 'button'","muted = false","_getArrayProp(justifyProp)","_getArrayProp(paddingProp)","_getArrayProp(paddingXProp)","_getArrayProp(paddingYProp)","_getArrayProp(paddingTopProp)","_getArrayProp(paddingBottomProp)","_getArrayProp(paddingLeftProp)","_getArrayProp(paddingRightProp)","_getArrayProp(radiusProp)","_getArrayProp(gap)","{\n // flex: 1,\n padding,\n paddingX,\n paddingY,\n paddingTop,\n paddingBottom,\n paddingLeft,\n paddingRight,\n }","useMemo(\n () => ({\n // flex: 1,\n padding,\n paddingX,\n paddingY,\n paddingTop,\n paddingBottom,\n paddingLeft,\n paddingRight,\n }),\n [padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight],\n )","Boolean(loading) && (\n <div className={buttonLoadingBox} data-ui=\"ButtonLoading\">\n <Spinner />\n </div>\n )","(IconComponent || text || IconRightComponent) && (\n <Box as=\"span\" {...boxProps}>\n <Flex as=\"span\" justify={justify} gap={spacing}>\n {IconComponent && (\n <Text size={fontSize}>\n {isValidElement(IconComponent) && IconComponent}\n {isValidElementType(IconComponent) && <IconComponent />}\n </Text>\n )}\n\n {text && (\n <Box>\n <Text\n muted={muted}\n align={textAlign}\n size={fontSize}\n textOverflow=\"ellipsis\"\n weight={textWeight ?? button.textWeight}\n >\n {text}\n </Text>\n </Box>\n )}\n\n {IconRightComponent && (\n <Text size={fontSize}>\n {isValidElement(IconRightComponent) && IconRightComponent}\n {isValidElementType(IconRightComponent) && <IconRightComponent />}\n </Text>\n )}\n </Flex>\n </Box>\n )","button.textWeight","children && (\n <Box as=\"span\" {...boxProps}>\n {children}\n </Box>\n )","<StyledButton\n data-ui=\"Button\"\n {...restProps}\n $mode={mode}\n $radius={radius}\n $tone={tone}\n data-disabled={Boolean(loading || disabled)}\n data-selected={selected ? '' : undefined}\n disabled={Boolean(loading || disabled)}\n ref={ref}\n type={type}\n $width={width}\n >\n {Boolean(loading) && (\n <div className={buttonLoadingBox} data-ui=\"ButtonLoading\">\n <Spinner />\n </div>\n )}\n\n {(IconComponent || text || IconRightComponent) && (\n <Box as=\"span\" {...boxProps}>\n <Flex as=\"span\" justify={justify} gap={spacing}>\n {IconComponent && (\n <Text size={fontSize}>\n {isValidElement(IconComponent) && IconComponent}\n {isValidElementType(IconComponent) && <IconComponent />}\n </Text>\n )}\n\n {text && (\n <Box>\n <Text\n muted={muted}\n align={textAlign}\n size={fontSize}\n textOverflow=\"ellipsis\"\n weight={textWeight ?? button.textWeight}\n >\n {text}\n </Text>\n </Box>\n )}\n\n {IconRightComponent && (\n <Text size={fontSize}>\n {isValidElement(IconRightComponent) && IconRightComponent}\n {isValidElementType(IconRightComponent) && <IconRightComponent />}\n </Text>\n )}\n </Flex>\n </Box>\n )}\n\n {children && (\n <Box as=\"span\" {...boxProps}>\n {children}\n </Box>\n )}\n </StyledButton>","Boolean(loading || disabled)","selected ? '' : undefined","_c"],"sources":["../src/core/primitives/spinner/spinner.css.ts","../src/core/primitives/spinner/spinner.tsx","../src/core/primitives/button/styles.ts","../src/core/primitives/button/button.css.ts","../src/core/primitives/button/button.tsx"],"sourcesContent":["import {keyframes, style} from '@vanilla-extract/css'\n\nconst rotate = keyframes({\n from: {transform: 'rotate(0deg)'},\n to: {transform: 'rotate(360deg)'},\n})\n\nconst size = 'round(1em, 2px)'\nexport const spinnerIcon = style({\n animation: `${rotate} 500ms linear infinite`,\n // Prevents a wobbly spinner on Safari\n height: size,\n width: size,\n})\n","import {SpinnerIcon} from '@sanity/icons/Spinner'\n\nimport {Text} from '../text/text'\n\nimport {spinnerIcon} from './spinner.css'\n\n/**\n * @public\n */\nexport interface SpinnerProps {\n muted?: boolean\n size?: number | number[]\n}\n\n/**\n * Indicate that something is loading for an indeterminate amount of time.\n *\n * @public\n */\nexport function Spinner(\n props: SpinnerProps & Omit<React.HTMLProps<HTMLDivElement>, 'as' | 'size'>,\n) {\n return (\n <Text data-ui=\"Spinner\" {...props}>\n <SpinnerIcon className={spinnerIcon} />\n </Text>\n )\n}\n","import {css} from 'styled-components'\n\nimport {ThemeColorCard_v2} from '../../../theme/system/color/color'\nimport {getTheme_v2} from '../../../theme/versioning/getTheme_v2'\nimport {_cardColorStyle} from '../../styles/card/_cardColorStyle'\nimport {focusRingBorderStyle, focusRingStyle} from '../../styles/focusRing'\nimport {ThemeProps} from '../../styles/types'\nimport {ButtonMode, ButtonTone} from '../../types/button'\n\nfunction buttonToneColor(\n base: ThemeColorCard_v2,\n {$mode, $tone}: {$mode: ButtonMode; $tone: ButtonTone},\n) {\n const mode = base.button[$mode] || base.button.default\n\n return mode[$tone] || mode.default\n}\n\n/**\n * @internal\n */\nexport function buttonBaseStyles(props: ThemeProps): ReturnType<typeof css> {\n const {button} = getTheme_v2(props.theme)\n const borderBoxShadow = focusRingBorderStyle({\n width: button.border.width,\n color: 'var(--card-border-color)',\n })\n\n return css`\n /* Stays here: Breadcrumbs' expand button overrides it at equal specificity */\n margin: 0;\n background-color: var(--card-bg-color);\n color: var(--card-fg-color);\n box-shadow: ${borderBoxShadow};\n\n &:not([data-disabled='true']) {\n &:focus:not(:focus-visible) {\n box-shadow: ${borderBoxShadow};\n }\n }\n `\n}\n\n/**\n * @internal\n */\nexport function buttonColorStyles(\n props: {$mode: ButtonMode; $tone: ButtonTone} & ThemeProps,\n): ReturnType<typeof css> {\n const {color: baseColor} = getTheme_v2(props.theme)\n const color = buttonToneColor(baseColor, props)\n\n return css`\n ${_cardColorStyle(baseColor, color.enabled)}\n\n &:not([data-disabled='true']) {\n @media (hover: hover) {\n &:hover {\n ${_cardColorStyle(baseColor, color.hovered)}\n }\n\n &:active {\n ${_cardColorStyle(baseColor, color.pressed)}\n }\n\n &[data-hovered] {\n ${_cardColorStyle(baseColor, color.hovered)}\n }\n }\n\n &[data-selected] {\n ${_cardColorStyle(baseColor, color.pressed)}\n }\n }\n `\n}\n\n/**\n * @internal\n */\nexport function buttonDisabledAndFocusStyles(\n props: {$mode: ButtonMode; $tone: ButtonTone} & ThemeProps,\n): ReturnType<typeof css> {\n const {button, color: baseColor} = getTheme_v2(props.theme)\n const color = buttonToneColor(baseColor, props)\n\n return css`\n &:disabled,\n &[data-disabled='true'] {\n ${_cardColorStyle(baseColor, color.disabled)}\n }\n\n &:not([data-disabled='true']):focus {\n box-shadow: ${focusRingStyle({\n base: baseColor,\n border: {width: 2, color: baseColor.bg},\n focusRing: button.focusRing,\n })};\n }\n `\n}\n\n/**\n * @internal\n */\nexport function buttonStyles(props: ThemeProps): ReturnType<typeof css> {\n const {style} = getTheme_v2(props.theme)\n\n return css`\n ${style?.button?.root}\n `\n}\n","import {globalStyle, style} from '@vanilla-extract/css'\n\nexport const buttonRoot = style({\n WebkitFontSmoothing: 'inherit',\n appearance: 'none',\n display: 'inline-flex',\n alignItems: 'center',\n font: 'inherit',\n border: 0,\n outline: 'none',\n userSelect: 'none',\n textDecoration: 'none',\n boxSizing: 'border-box',\n padding: 0,\n whiteSpace: 'nowrap',\n textAlign: 'left',\n position: 'relative',\n verticalAlign: 'top',\n selectors: {\n '&::-moz-focus-inner': {\n border: 0,\n padding: 0,\n },\n },\n})\n\nglobalStyle(`${buttonRoot} > span`, {\n display: 'block',\n flex: 1,\n minWidth: 0,\n borderRadius: 'inherit',\n})\n\nexport const buttonWidthFill = style({\n width: ['-moz-available', '-webkit-fill-available', 'stretch'],\n})\n\nexport const buttonLoadingBox = style({\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'var(--card-bg-color)',\n borderRadius: 'inherit',\n zIndex: 1,\n boxShadow: 'inherit',\n})\n","import {isValidElement, useMemo} from 'react'\nimport {isValidElementType} from 'react-is'\nimport {styled} from 'styled-components'\n\nimport {ThemeFontWeightKey} from '../../../theme/system/font'\nimport {_getArrayProp} from '../../styles/helpers'\nimport {responsiveRadiusStyle} from '../../styles/radius/radiusStyle'\nimport {ResponsiveRadiusStyleProps} from '../../styles/radius/types'\nimport {useTheme_v2} from '../../theme/useTheme'\nimport {ButtonMode, ButtonTextAlign, ButtonTone, ButtonWidth} from '../../types/button'\nimport {ElementType, Props} from '../../types/component'\nimport {FlexJustify} from '../../types/flex'\nimport {Box} from '../box/box'\nimport {Flex} from '../flex/flex'\nimport {Spinner} from '../spinner/spinner'\nimport {Text} from '../text/text'\nimport {ResponsivePaddingProps, ResponsiveRadiusProps} from '../types'\nimport {\n buttonBaseStyles,\n buttonColorStyles,\n buttonDisabledAndFocusStyles,\n buttonStyles,\n} from './styles'\n\nimport {buttonLoadingBox, buttonRoot, buttonWidthFill} from './button.css'\n\n/**\n * @public\n */\nexport interface ButtonOwnProps extends ResponsivePaddingProps, ResponsiveRadiusProps {\n fontSize?: number | number[]\n mode?: ButtonMode\n // oxlint-disable-next-line no-redundant-type-constituents\n icon?: React.ElementType | React.ReactNode\n // oxlint-disable-next-line no-redundant-type-constituents\n iconRight?: React.ElementType | React.ReactNode\n justify?: FlexJustify | FlexJustify[]\n /**\n * @beta Do not use in production, as this might change.\n */\n loading?: boolean\n selected?: boolean\n /**\n * @deprecated Use `gap` instead.\n */\n space?: never\n gap?: number | number[]\n muted?: boolean\n text?: React.ReactNode\n textAlign?: ButtonTextAlign\n textWeight?: ThemeFontWeightKey\n tone?: ButtonTone\n type?: 'button' | 'reset' | 'submit'\n width?: ButtonWidth\n}\n\n/**\n * @public\n */\nexport type ButtonProps<E extends ElementType = 'button'> = Props<ButtonOwnProps, E>\n\n// The static rules live in `buttonRoot` in styles.css; `width=\"fill\"` is the\n// `buttonWidthFill` class on the last level\nconst ButtonBase = styled.button.attrs({className: buttonRoot})(buttonBaseStyles)\n\nconst ButtonColor = styled(ButtonBase)<{$mode: ButtonMode; $tone: ButtonTone}>(buttonColorStyles)\n\nconst ButtonDisabledAndFocus = styled(ButtonColor)<{$mode: ButtonMode; $tone: ButtonTone}>(\n buttonDisabledAndFocusStyles,\n)\n\nconst StyledButton = styled(ButtonDisabledAndFocus).attrs<{$width?: ButtonWidth}>((props) => ({\n className: props.$width === 'fill' ? buttonWidthFill : undefined,\n}))<{$width?: ButtonWidth} & ResponsiveRadiusStyleProps>(responsiveRadiusStyle, buttonStyles)\n\nfunction ButtonComponent(\n props: ButtonOwnProps & {as?: ElementType} & Omit<\n React.HTMLProps<HTMLButtonElement>,\n 'as' | 'width'\n >,\n) {\n const {\n children,\n disabled,\n ref,\n fontSize = 1,\n icon: IconComponent,\n iconRight: IconRightComponent,\n justify: justifyProp = 'center',\n loading,\n mode = 'default',\n padding: paddingProp = 3,\n paddingX: paddingXProp,\n paddingY: paddingYProp,\n paddingTop: paddingTopProp,\n paddingBottom: paddingBottomProp,\n paddingLeft: paddingLeftProp,\n paddingRight: paddingRightProp,\n radius: radiusProp = 2,\n selected,\n gap = 3,\n text,\n textAlign,\n textWeight,\n tone = 'default',\n type = 'button',\n muted = false,\n width,\n ...restProps\n } = props\n const {button} = useTheme_v2()\n\n const justify = _getArrayProp(justifyProp)\n const padding = _getArrayProp(paddingProp)\n const paddingX = _getArrayProp(paddingXProp)\n const paddingY = _getArrayProp(paddingYProp)\n const paddingTop = _getArrayProp(paddingTopProp)\n const paddingBottom = _getArrayProp(paddingBottomProp)\n const paddingLeft = _getArrayProp(paddingLeftProp)\n const paddingRight = _getArrayProp(paddingRightProp)\n const radius = _getArrayProp(radiusProp)\n const spacing = _getArrayProp(gap)\n\n const boxProps = useMemo(\n () => ({\n // flex: 1,\n padding,\n paddingX,\n paddingY,\n paddingTop,\n paddingBottom,\n paddingLeft,\n paddingRight,\n }),\n [padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight],\n )\n\n return (\n <StyledButton\n data-ui=\"Button\"\n {...restProps}\n $mode={mode}\n $radius={radius}\n $tone={tone}\n data-disabled={Boolean(loading || disabled)}\n data-selected={selected ? '' : undefined}\n disabled={Boolean(loading || disabled)}\n ref={ref}\n type={type}\n $width={width}\n >\n {Boolean(loading) && (\n <div className={buttonLoadingBox} data-ui=\"ButtonLoading\">\n <Spinner />\n </div>\n )}\n\n {(IconComponent || text || IconRightComponent) && (\n <Box as=\"span\" {...boxProps}>\n <Flex as=\"span\" justify={justify} gap={spacing}>\n {IconComponent && (\n <Text size={fontSize}>\n {isValidElement(IconComponent) && IconComponent}\n {isValidElementType(IconComponent) && <IconComponent />}\n </Text>\n )}\n\n {text && (\n <Box>\n <Text\n muted={muted}\n align={textAlign}\n size={fontSize}\n textOverflow=\"ellipsis\"\n weight={textWeight ?? button.textWeight}\n >\n {text}\n </Text>\n </Box>\n )}\n\n {IconRightComponent && (\n <Text size={fontSize}>\n {isValidElement(IconRightComponent) && IconRightComponent}\n {isValidElementType(IconRightComponent) && <IconRightComponent />}\n </Text>\n )}\n </Flex>\n </Box>\n )}\n\n {children && (\n <Box as=\"span\" {...boxProps}>\n {children}\n </Box>\n )}\n </StyledButton>\n )\n}\n\n/**\n * @public\n */\nexport const Button: <E extends ElementType = 'button'>(\n props: ButtonProps<E>,\n) => React.JSX.Element = ButtonComponent\n"],"mappings":";;;;;;;;;;;;;;;;;ACmBA,SAAgB,QACd,OACA;eAGIA;qDAAC,KAAA,oBAAA,aAAD,EAAa,WAAW,YAAc,CAAA;CADxCC,IAAAA;CADF,OAC8B,EAAA,OAAA,qBAA5B,KAAA,oBAAC,MAAD;EAAM,WAAQ;EAAU,GAAI;EAC1BD,UAAAA;CACI,CAAA,GAFsB,EAAA,KAAA,mBAA5BC;AAIJ;AClBA,SAAS,gBACP,MACA,EAAC,OAAO,SACR;CACA,IAAM,OAAO,KAAK,OAAO,UAAU,KAAK,OAAO;CAE/C,OAAO,KAAK,UAAU,KAAK;AAC7B;;;;AAKA,SAAgB,iBAAiB,OAA2C;CAC1E,IAAM,EAAC,WAAU,YA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,aAAA,EAAA,QAIWC,OAAAA,EAAAA,QACAC,OAAAA,EAAAA,QACLD,OAAAA,EAAAA,QAKTL,OAAAA,EAAAA,QAMAC,OAAAA,EAAAA,QAkCAE,OAAAA,EAAAA,QAhDM,QAAA,EAAA,QAKD,QAAA,EAAA,QACE,SAXV,MAAA,qBAAC,cAAD;EACE,WAAQ;EACR,GAAI;EACJ,OAAO;EACP,SAAS;EACT,OAAO;EACP,iBAAeE;EACf,iBAAeC;EACf,UAAUD;EACL;EACC;EACN,QAAQ;EAXV,UAAA;GAaGL;GAMAC;GAkCAE;EAKW;KAvDL,EAAA,MAAA,MACE,EAAA,MAAA,QAKJ,EAAA,MAAA,KAPD,EAAA,MAAA,WAIWE,EAAAA,MAAAA,KACAC,EAAAA,MAAAA,KACLD,EAAAA,MAAAA,KAKTL,EAAAA,MAAAA,KAMAC,EAAAA,MAAAA,KAkCAE,EAAAA,MAAAA,KAhDM,EAAA,MAAA,MAKD,EAAA,MAAA,MACE,EAAA,MAAA,mCAXVC;AA4DJ;;;;AAKA,MAAa,SAEY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-dnqMFkWg.d.ts","names":[],"sources":["../src/core/primitives/box/box.tsx","../src/core/types/button.ts","../src/core/primitives/button/button.tsx"],"mappings":";;;;;;;;;UA2BiB,oBAEb,yBACA,oBACA,yBACA,uBACA;EACF,cAAc;;;;;KAMJ,SAAS,UAAU,uBAAuB,MAAM,aAAa;;;;;;;cAkG5D,MAAM,UAAU,qBAAqB,OAAO,SAAS,OAAO,MAAM,IAAI;;;;KCrIvE,aAAa;;;;KAKb;;;;KAKA,aAAa;;;;KAKb;;;;UCSK,uBAAuB,wBAAwB;EAC9D;EACA,OAAO;EAEP,OAAO,MAAM,cAAc,MAAM;EAEjC,YAAY,MAAM,cAAc,MAAM;EACtC,UAAU,cAAc;;;;EAIxB;EACA;;;;EAIA;EACA;EACA;EACA,OAAO,MAAM;EACb,YAAY;EACZ,aAAa;EACb,OAAO;EACP;EACA,QAAQ;;;;;KAME,YAAY,UAAU,0BAA0B,MAAM,gBAAgB;;;;
|
|
1
|
+
{"version":3,"file":"button-dnqMFkWg.d.ts","names":[],"sources":["../src/core/primitives/box/box.tsx","../src/core/types/button.ts","../src/core/primitives/button/button.tsx"],"mappings":";;;;;;;;;UA2BiB,oBAEb,yBACA,oBACA,yBACA,uBACA;EACF,cAAc;;;;;KAMJ,SAAS,UAAU,uBAAuB,MAAM,aAAa;;;;;;;cAkG5D,MAAM,UAAU,qBAAqB,OAAO,SAAS,OAAO,MAAM,IAAI;;;;KCrIvE,aAAa;;;;KAKb;;;;KAKA,aAAa;;;;KAKb;;;;UCSK,uBAAuB,wBAAwB;EAC9D;EACA,OAAO;EAEP,OAAO,MAAM,cAAc,MAAM;EAEjC,YAAY,MAAM,cAAc,MAAM;EACtC,UAAU,cAAc;;;;EAIxB;EACA;;;;EAIA;EACA;EACA;EACA,OAAO,MAAM;EACb,YAAY;EACZ,aAAa;EACb,OAAO;EACP;EACA,QAAQ;;;;;KAME,YAAY,UAAU,0BAA0B,MAAM,gBAAgB;;;;cAgJrE,SAAS,UAAU,wBAC9B,OAAO,YAAY,OAChB,MAAM,IAAI"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["_BaseTheme","_HSL","_RGB","_RootTheme","_Theme","_ThemeColorButtonModeKey","_ThemeColorSchemeKey","_ThemeColorSyntax","_ThemeFont","_ThemeFontKey","_ThemeFontSize","_ThemeFontWeight","_ThemeFontWeightKey","_ThemeFonts","_ThemeLayer","_ThemeShadow","_createColorTheme","_hexToRgb","_hslToRgb","_multiply","_parseColor","_rgbToHex","_rgbToHsl","_rgba","_screen","ThemeColorSchemeKey","ThemeFontWeightKey","ThemeColorSchemeKey","ThemeFontWeightKey","ThemeFontWeightKey","ThemeFontWeightKey","ThemeFontWeightKey","ThemeFontWeightKey","Theme","ThemeFontWeightKey","Theme","ThemeColorSchemeKey","ThemeColorSchemeKey","RootTheme","ThemeColorSchemeKey","RootTheme","Theme"],"sources":["../src/core/_compat.ts","../src/core/types/dialog.ts","../src/core/components/dialog/dialog.tsx","../src/core/components/dialog/dialogContext.ts","../src/core/components/dialog/dialogProvider.tsx","../src/core/components/dialog/useDialog.ts","../src/core/components/hotkeys/hotkeys.tsx","../src/core/components/skeleton/skeleton.tsx","../src/core/components/skeleton/textSkeleton.tsx","../src/core/components/tab/tab.tsx","../src/core/primitives/inline/inline.tsx","../src/core/components/tab/tabList.tsx","../src/core/components/tab/tabPanel.tsx","../src/core/components/tree/tree.tsx","../src/core/components/tree/treeItem.tsx","../src/core/components/tree/types.ts","../src/core/components/tree/useTree.ts","../src/core/helpers/animation.ts","../src/core/helpers/element.ts","../src/core/helpers/focus.ts","../src/core/helpers/scroll.ts","../src/core/hooks/useArrayProp.ts","../src/core/hooks/useClickOutside.ts","../src/core/hooks/useClickOutsideEvent.ts","../src/core/hooks/useCustomValidity.ts","../src/core/hooks/useElementRect/useElementRect.ts","../src/core/observers/elementSizeObserver.ts","../src/core/hooks/useElementSize.ts","../src/core/hooks/useForwardedRef.ts","../src/core/hooks/useGlobalKeyDown.ts","../src/core/hooks/useMatchMedia.ts","../src/core/hooks/useMediaIndex/useMediaIndex.ts","../src/core/hooks/usePrefersDark.ts","../src/core/hooks/usePrefersReducedMotion.ts","../src/core/types/avatar.ts","../src/core/primitives/avatar/avatar.tsx","../src/core/primitives/avatar/avatarCounter.tsx","../src/core/primitives/avatar/avatarStack.tsx","../src/core/primitives/avatar/types.ts","../src/core/types/badge.ts","../src/core/primitives/badge/badge.tsx","../src/core/primitives/card/card.tsx","../src/core/primitives/card/types.ts","../src/core/primitives/checkbox/checkbox.tsx","../src/core/primitives/container/container.tsx","../src/core/primitives/container/types.ts","../src/core/primitives/flex/flex.tsx","../src/core/primitives/grid/grid.tsx","../src/core/types/text.ts","../src/core/primitives/heading/heading.tsx","../src/core/primitives/kbd/kbd.tsx","../src/core/primitives/label/label.tsx","../src/core/primitives/radio/radio.tsx","../src/core/primitives/select/select.tsx","../src/core/primitives/spinner/spinner.tsx","../src/core/primitives/stack/stack.tsx","../src/core/primitives/switch/switch.tsx","../src/core/primitives/text/text.tsx","../src/core/primitives/textArea/textArea.tsx","../src/core/primitives/textInput/textInput.tsx","../src/core/styles/types.ts","../src/core/styles/font/types.ts","../src/core/styles/font/codeFontStyle.ts","../src/core/styles/font/headingFontStyle.ts","../src/core/styles/font/labelFontStyle.ts","../src/core/styles/font/textAlignStyle.ts","../src/core/styles/font/textFontStyle.ts","../src/core/styles/helpers.ts","../src/core/theme/themeColorProvider.tsx","../src/core/theme/themeProvider.tsx","../src/core/theme/types.ts","../src/core/theme/useRootTheme.ts","../src/core/theme/useTheme.ts","../src/core/utils/arrow/arrow.tsx","../src/core/utils/boundaryElement/boundaryElementProvider.tsx","../src/core/utils/boundaryElement/types.ts","../src/core/utils/boundaryElement/useBoundaryElement.ts","../src/core/utils/conditionalWrapper/conditionalWrapper.tsx","../src/core/utils/elementQuery/elementQuery.tsx","../src/core/utils/errorBoundary.tsx","../src/core/utils/layer/layerProvider.tsx","../src/core/utils/layer/types.ts","../src/core/utils/layer/useLayer.ts","../src/core/utils/portal/portal.ts","../src/core/utils/portal/portalProvider.tsx","../src/core/utils/portal/types.ts","../src/core/utils/portal/usePortal.ts","../src/core/utils/srOnly/srOnly.tsx","../src/core/utils/virtualList/virtualList.tsx","../src/exports/index.ts"],"mappings":";;;;;;;;;;;;;KA8BY,YAAYA;;;;;KAMZ,YAAY;;;;;KAMZ,MAAMC;;;;;KAMN,MAAMC;;;;;KAMN,YAAYC;;;;;KAMZ,SAAS;;;;;KAMT,QAAQC;;;;;KAMR,0BAA0BC;;;;;KAM1B,sBAAsBC;;;;;KAMtB,mBAAmBC;;;;;KAMnB,YAAYC;;;;;KAMZ,eAAeC;;;;;KAMf,gBAAgBC;;;;;KAMhB,kBAAkBC;;;;;KAMlB,qBAAqBC;;;;;KAMrB,aA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ACjB,SAAS;EACT,WAAW,eAAe;;;;;wBCEZ,aAAa;;;;UCJZ;EACf,KAAK,MAAM,oBAAoB,MAAM,IAAI;EACzC,WAAW,MAAM;;;;;wBAMH,OACd,OAAO,cAAc,KAAK,MAAM,UAAU,yDAAsC,IAAA;;;;UCFjE;EACf;EACA;EACA;EACA;EACA;EACA;;;;;UAMe,iBAAiB;EAChC,KAAK,MAAM,oBAAoB,MAAM,IAAI;EACzC;EACA,cAAc,MAAM,MAAM;EAC1B,QAAQ;EACR,YAAY,MAAM;EAClB,cAAc,MAAM,SAAS,MAAM;;;;;wBAMrB,YACd,OAAO,mBACL,gBACA,KAAK,MAAM,UAAU,mDACtB,MAAM,IAAI;;qBC2OQ;;YAET;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;qBAES;;YAET;;qBAES;;YAET;;YAEA;;qBAES;;qBAEA;;YAET;;qBAES;;YAET;;qBAES;;YAET;;YAEA;;qBAES;;YAET;;YAEA;;YAEA;;qBAES;;YAET;;YAEA;;YAEA;;YAEA;;qBAES;;YAET;;YAEA;;YAEA;;qBAES;;YAET;;qBAES;;qBAEA;;qBAEA;;YAET;;qBAES;;YAET;;YAEA;;qBAES"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["_BaseTheme","_HSL","_RGB","_RootTheme","_Theme","_ThemeColorButtonModeKey","_ThemeColorSchemeKey","_ThemeColorSyntax","_ThemeFont","_ThemeFontKey","_ThemeFontSize","_ThemeFontWeight","_ThemeFontWeightKey","_ThemeFonts","_ThemeLayer","_ThemeShadow","_createColorTheme","_hexToRgb","_hslToRgb","_multiply","_parseColor","_rgbToHex","_rgbToHsl","_rgba","_screen","ThemeColorSchemeKey","ThemeFontWeightKey","ThemeColorSchemeKey","ThemeFontWeightKey","ThemeFontWeightKey","ThemeFontWeightKey","ThemeFontWeightKey","ThemeFontWeightKey","Theme","ThemeFontWeightKey","Theme","ThemeColorSchemeKey","ThemeColorSchemeKey","RootTheme","ThemeColorSchemeKey","RootTheme","Theme"],"sources":["../src/core/_compat.ts","../src/core/types/dialog.ts","../src/core/components/dialog/dialog.tsx","../src/core/components/dialog/dialogContext.ts","../src/core/components/dialog/dialogProvider.tsx","../src/core/components/dialog/useDialog.ts","../src/core/components/hotkeys/hotkeys.tsx","../src/core/components/skeleton/skeleton.tsx","../src/core/components/skeleton/textSkeleton.tsx","../src/core/components/tab/tab.tsx","../src/core/primitives/inline/inline.tsx","../src/core/components/tab/tabList.tsx","../src/core/components/tab/tabPanel.tsx","../src/core/components/tree/tree.tsx","../src/core/components/tree/treeItem.tsx","../src/core/components/tree/types.ts","../src/core/components/tree/useTree.ts","../src/core/helpers/animation.ts","../src/core/helpers/element.ts","../src/core/helpers/focus.ts","../src/core/helpers/scroll.ts","../src/core/hooks/useArrayProp.ts","../src/core/hooks/useClickOutside.ts","../src/core/hooks/useClickOutsideEvent.ts","../src/core/hooks/useCustomValidity.ts","../src/core/hooks/useElementRect/useElementRect.ts","../src/core/observers/elementSizeObserver.ts","../src/core/hooks/useElementSize.ts","../src/core/hooks/useForwardedRef.ts","../src/core/hooks/useGlobalKeyDown.ts","../src/core/hooks/useMatchMedia.ts","../src/core/hooks/useMediaIndex/useMediaIndex.ts","../src/core/hooks/usePrefersDark.ts","../src/core/hooks/usePrefersReducedMotion.ts","../src/core/types/avatar.ts","../src/core/primitives/avatar/avatar.tsx","../src/core/primitives/avatar/avatarCounter.tsx","../src/core/primitives/avatar/avatarStack.tsx","../src/core/primitives/avatar/types.ts","../src/core/types/badge.ts","../src/core/primitives/badge/badge.tsx","../src/core/primitives/card/card.tsx","../src/core/primitives/card/types.ts","../src/core/primitives/checkbox/checkbox.tsx","../src/core/primitives/container/container.tsx","../src/core/primitives/container/types.ts","../src/core/primitives/flex/flex.tsx","../src/core/primitives/grid/grid.tsx","../src/core/types/text.ts","../src/core/primitives/heading/heading.tsx","../src/core/primitives/kbd/kbd.tsx","../src/core/primitives/label/label.tsx","../src/core/primitives/radio/radio.tsx","../src/core/primitives/select/select.tsx","../src/core/primitives/spinner/spinner.tsx","../src/core/primitives/stack/stack.tsx","../src/core/primitives/switch/switch.tsx","../src/core/primitives/text/text.tsx","../src/core/primitives/textArea/textArea.tsx","../src/core/primitives/textInput/textInput.tsx","../src/core/styles/types.ts","../src/core/styles/font/types.ts","../src/core/styles/font/codeFontStyle.ts","../src/core/styles/font/headingFontStyle.ts","../src/core/styles/font/labelFontStyle.ts","../src/core/styles/font/textAlignStyle.ts","../src/core/styles/font/textFontStyle.ts","../src/core/styles/helpers.ts","../src/core/theme/themeColorProvider.tsx","../src/core/theme/themeProvider.tsx","../src/core/theme/types.ts","../src/core/theme/useRootTheme.ts","../src/core/theme/useTheme.ts","../src/core/utils/arrow/arrow.tsx","../src/core/utils/boundaryElement/boundaryElementProvider.tsx","../src/core/utils/boundaryElement/types.ts","../src/core/utils/boundaryElement/useBoundaryElement.ts","../src/core/utils/conditionalWrapper/conditionalWrapper.tsx","../src/core/utils/elementQuery/elementQuery.tsx","../src/core/utils/errorBoundary.tsx","../src/core/utils/layer/layerProvider.tsx","../src/core/utils/layer/types.ts","../src/core/utils/layer/useLayer.ts","../src/core/utils/portal/portal.ts","../src/core/utils/portal/portalProvider.tsx","../src/core/utils/portal/types.ts","../src/core/utils/portal/usePortal.ts","../src/core/utils/srOnly/srOnly.tsx","../src/core/utils/virtualList/virtualList.tsx","../src/exports/index.ts"],"mappings":";;;;;;;;;;;;;KA8BY,YAAYA;;;;;KAMZ,YAAY;;;;;KAMZ,MAAMC;;;;;KAMN,MAAMC;;;;;KAMN,YAAYC;;;;;KAMZ,SAAS;;;;;KAMT,QAAQC;;;;;KAMR,0BAA0BC;;;;;KAM1B,sBAAsBC;;;;;KAMtB,mBAAmBC;;;;;KAMnB,YAAYC;;;;;KAMZ,eAAeC;;;;;KAMf,gBAAgBC;;;;;KAMhB,kBAAkBC;;;;;KAMlB,qBAAqBC;;;;;KAMr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AAiB;EACjB,SAAS;EACT,WAAW,eAAe;;;;;wBCEZ,aAAa;;;;UCJZ;EACf,KAAK,MAAM,oBAAoB,MAAM,IAAI;EACzC,WAAW,MAAM;;;;;wBAMH,OACd,OAAO,cAAc,KAAK,MAAM,UAAU,yDAAsC,IAAA;;;;UCFjE;EACf;EACA;EACA;EACA;EACA;EACA;;;;;UAMe,iBAAiB;EAChC,KAAK,MAAM,oBAAoB,MAAM,IAAI;EACzC;EACA,cAAc,MAAM,MAAM;EAC1B,QAAQ;EACR,YAAY,MAAM;EAClB,cAAc,MAAM,SAAS,MAAM;;;;;wBAMrB,YACd,OAAO,mBACL,gBACA,KAAK,MAAM,UAAU,mDACtB,MAAM,IAAI;;qBC2OQ;;YAET;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;YAEA;;qBAES;;YAET;;qBAES;;YAET;;YAEA;;qBAES;;qBAEA;;YAET;;qBAES;;YAET;;qBAES;;YAET;;YAEA;;qBAES;;YAET;;YAEA;;YAEA;;qBAES;;YAET;;YAEA;;YAEA;;YAEA;;qBAES;;YAET;;YAEA;;YAEA;;qBAES;;YAET;;qBAES;;qBAEA;;qBAEA;;YAET;;qBAES;;YAET;;YAEA;;qBAES"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as _ruleSet, c as EMPTY_RECORD, i as _responsive, n as _getArrayProp, o as rem, r as _getResponsiveSpace, t as _fillCSSObject } from "./helpers-XThPpWje.js";
|
|
3
|
-
import { _ as isFocusable, a as textInputColorStyle, c as textInputRepresentationColorStyle, d as responsiveInputPaddingStyle, f as useCustomValidity, g as focusLastDescendant, h as focusFirstDescendant, i as textInputBaseStyle, l as textInputRepresentationStyle, m as attemptFocus, n as inputRoot, o as textInputFontSizeStyle, p as _hasFocus, r as textAreaRoot, s as textInputFontStyle, t as TextInput, u as responsiveInputPaddingIconRightStyle, v as _raf, y as _raf2 } from "./textInput-
|
|
3
|
+
import { _ as isFocusable, a as textInputColorStyle, c as textInputRepresentationColorStyle, d as responsiveInputPaddingStyle, f as useCustomValidity, g as focusLastDescendant, h as focusFirstDescendant, i as textInputBaseStyle, l as textInputRepresentationStyle, m as attemptFocus, n as inputRoot, o as textInputFontSizeStyle, p as _hasFocus, r as textAreaRoot, s as textInputFontStyle, t as TextInput, u as responsiveInputPaddingIconRightStyle, v as _raf, y as _raf2 } from "./textInput-CTqkq5UQ.js";
|
|
4
4
|
import { a as isHTMLElement, c as isHTMLTextAreaElement, i as isHTMLButtonElement, n as containsOrEqualsElement, o as isHTMLInputElement, r as isHTMLAnchorElement, s as isHTMLSelectElement, t as _isEnterToClickElement } from "./element-BYgCE_iK.js";
|
|
5
5
|
import { t as getTheme_v2 } from "./getTheme_v2-y09KqtEb.js";
|
|
6
6
|
import { _ as useTheme_v2, a as useMatchMedia, b as responsivePaddingStyle, c as ThemeColorProvider, d as createGlobalScopedContext, g as useTheme, h as _cardColorStyle, i as usePrefersReducedMotion, l as useRootTheme, m as focusRingStyle, n as LayerProvider, o as useMediaIndex, p as focusRingBorderStyle, s as Card, t as useLayer, u as ThemeProvider, v as responsiveRadiusStyle, y as Box } from "./useLayer-D_TnC6On.js";
|
|
7
7
|
import { t as Flex } from "./flex-ohP2jG9d.js";
|
|
8
8
|
import { a as fontColorStyle, i as responsiveTextAlignStyle, n as Text, r as SpanWithTextOverflow, t as Stack } from "./stack-CPdFknrG.js";
|
|
9
9
|
import { i as responsiveFont, n as _fontWeight, r as _responsiveFontSize, t as _fontBase } from "./responsiveFont-Cyvxxz-G.js";
|
|
10
|
-
import { n as Spinner, t as Button } from "./button-
|
|
10
|
+
import { n as Spinner, t as Button } from "./button-Bp0udHV9.js";
|
|
11
11
|
import { t as _elementSizeObserver } from "./elementSizeObserver-pevZfdGa.js";
|
|
12
12
|
import { a as resolvePortalElement, i as PortalContext, n as Portal, o as useBoundaryElement, r as usePortal, s as BoundaryElementContext, t as Arrow } from "./arrow-MMVAW3Ew.js";
|
|
13
13
|
import { t as useClickOutsideEvent } from "./useClickOutsideEvent-CC1zgOmv.js";
|
|
@@ -1035,29 +1035,10 @@ function avatarColorStyle(props) {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
function avatarRootStyle(props) {
|
|
1037
1037
|
let { avatar } = getTheme_v2(props.theme);
|
|
1038
|
-
return {
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
backgroundColor: "var(--avatar-bg-color)",
|
|
1043
|
-
position: "relative",
|
|
1044
|
-
boxSizing: "border-box",
|
|
1045
|
-
userSelect: "none",
|
|
1046
|
-
boxShadow: "0 0 0 1px var(--card-bg-color)",
|
|
1047
|
-
"&[data-status=\"inactive\"]": { opacity: "0.5" },
|
|
1048
|
-
"&[data-as=\"button\"]": {
|
|
1049
|
-
WebkitFontSmoothing: "inherit",
|
|
1050
|
-
appearance: "none",
|
|
1051
|
-
margin: 0,
|
|
1052
|
-
padding: 0,
|
|
1053
|
-
border: 0,
|
|
1054
|
-
font: "inherit",
|
|
1055
|
-
color: "inherit",
|
|
1056
|
-
outline: "none",
|
|
1057
|
-
"&:focus": { boxShadow: focusRingStyle({ focusRing: avatar.focusRing }) },
|
|
1058
|
-
"&:focus:not(:focus-visible)": { boxShadow: "none" }
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1038
|
+
return { "&[data-as=\"button\"]": {
|
|
1039
|
+
"&:focus": { boxShadow: focusRingStyle({ focusRing: avatar.focusRing }) },
|
|
1040
|
+
"&:focus:not(:focus-visible)": { boxShadow: "none" }
|
|
1041
|
+
} };
|
|
1061
1042
|
}
|
|
1062
1043
|
/**
|
|
1063
1044
|
* Sets `--avatar-size` per breakpoint: the root, the image and the stroke
|
|
@@ -1071,17 +1052,14 @@ function responsiveAvatarSizeStyle(props) {
|
|
|
1071
1052
|
return { "--avatar-size": rem(avatarSize.size) };
|
|
1072
1053
|
});
|
|
1073
1054
|
}
|
|
1074
|
-
var avatarArrow = "_1jezl1b0", avatarStack = "
|
|
1075
|
-
const StyledAvatar = /* @__PURE__ */ styled(/* @__PURE__ */ styled.div.withConfig({
|
|
1055
|
+
var avatarArrow = "_1jezl1b1", avatarCounter = "_1jezl1b7", avatarRoot = "_1jezl1b0", avatarStack = "_1jezl1b6";
|
|
1056
|
+
const StyledAvatar = /* @__PURE__ */ styled(/* @__PURE__ */ styled.div.attrs({ className: avatarRoot }).withConfig({
|
|
1076
1057
|
displayName: "AvatarBase",
|
|
1077
|
-
componentId: "sc-
|
|
1058
|
+
componentId: "sc-943qen-0"
|
|
1078
1059
|
})(avatarRootStyle)).withConfig({
|
|
1079
1060
|
displayName: "StyledAvatar",
|
|
1080
|
-
componentId: "sc-
|
|
1081
|
-
})(responsiveAvatarSizeStyle, avatarColorStyle)
|
|
1082
|
-
displayName: "InitialsLabel",
|
|
1083
|
-
componentId: "sc-mdpy4s-2"
|
|
1084
|
-
})({ color: "inherit" });
|
|
1061
|
+
componentId: "sc-943qen-1"
|
|
1062
|
+
})(responsiveAvatarSizeStyle, avatarColorStyle);
|
|
1085
1063
|
function AvatarComponent(props) {
|
|
1086
1064
|
let $ = c(42), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, ref, restProps, src, t0, t1, t2, title;
|
|
1087
1065
|
$[0] === props ? (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], ref = $[7], restProps = $[8], src = $[9], t0 = $[10], t1 = $[11], t2 = $[12], title = $[13]) : ({__unstable_hideInnerStroke, as: asProp, color: t0, src, title, initials, onImageLoadError, arrowPosition: arrowPositionProp, animateArrowFrom, ref, status: t1, size: t2, ...restProps} = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = ref, $[8] = restProps, $[9] = src, $[10] = t0, $[11] = t1, $[12] = t2, $[13] = title);
|
|
@@ -1114,24 +1092,24 @@ function AvatarComponent(props) {
|
|
|
1114
1092
|
let t9;
|
|
1115
1093
|
$[22] !== __unstable_hideInnerStroke || $[23] !== avatarSize || $[24] !== handleImageError || $[25] !== imageFailed || $[26] !== src ? (t9 = !imageFailed && src && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("img", {
|
|
1116
1094
|
alt: "",
|
|
1117
|
-
className: "
|
|
1095
|
+
className: "_1jezl1b2",
|
|
1118
1096
|
draggable: !1,
|
|
1119
1097
|
height: avatarSize.size,
|
|
1120
1098
|
onError: handleImageError,
|
|
1121
1099
|
src,
|
|
1122
1100
|
width: avatarSize.size
|
|
1123
1101
|
}), /* @__PURE__ */ jsxs("svg", {
|
|
1124
|
-
className: "
|
|
1102
|
+
className: "_1jezl1b3",
|
|
1125
1103
|
viewBox: "0 0 2 2",
|
|
1126
1104
|
fill: "none",
|
|
1127
1105
|
children: [!__unstable_hideInnerStroke && /* @__PURE__ */ jsx("circle", {
|
|
1128
|
-
className: "
|
|
1106
|
+
className: "_1jezl1b4",
|
|
1129
1107
|
cx: "1",
|
|
1130
1108
|
cy: "1",
|
|
1131
1109
|
r: "1",
|
|
1132
1110
|
vectorEffect: "non-scaling-stroke"
|
|
1133
1111
|
}), /* @__PURE__ */ jsx("circle", {
|
|
1134
|
-
className: "
|
|
1112
|
+
className: "_1jezl1b5",
|
|
1135
1113
|
cx: "1",
|
|
1136
1114
|
cy: "1",
|
|
1137
1115
|
r: "1",
|
|
@@ -1139,9 +1117,9 @@ function AvatarComponent(props) {
|
|
|
1139
1117
|
})]
|
|
1140
1118
|
})] }), $[22] = __unstable_hideInnerStroke, $[23] = avatarSize, $[24] = handleImageError, $[25] = imageFailed, $[26] = src, $[27] = t9) : t9 = $[27];
|
|
1141
1119
|
let t10 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", {
|
|
1142
|
-
className: "
|
|
1143
|
-
children: /* @__PURE__ */ jsx(
|
|
1144
|
-
|
|
1120
|
+
className: "_1jezl1b8",
|
|
1121
|
+
children: /* @__PURE__ */ jsx(Label, {
|
|
1122
|
+
as: "span",
|
|
1145
1123
|
size: size.map(_temp$2),
|
|
1146
1124
|
weight: "medium",
|
|
1147
1125
|
children: initials
|
|
@@ -1186,14 +1164,14 @@ function _responsiveAvatarCounterSizeStyle(props) {
|
|
|
1186
1164
|
} : EMPTY_RECORD;
|
|
1187
1165
|
});
|
|
1188
1166
|
}
|
|
1189
|
-
function
|
|
1167
|
+
function _avatarCounterPaddingStyle(props) {
|
|
1190
1168
|
let { space } = getTheme_v2(props.theme);
|
|
1191
|
-
return css`
|
|
1169
|
+
return css`padding:0 ${rem(space[2])};`;
|
|
1192
1170
|
}
|
|
1193
|
-
const StyledAvatarCounter = /* @__PURE__ */ styled.div.withConfig({
|
|
1171
|
+
const StyledAvatarCounter = /* @__PURE__ */ styled.div.attrs({ className: avatarCounter }).withConfig({
|
|
1194
1172
|
displayName: "StyledAvatarCounter",
|
|
1195
|
-
componentId: "sc-
|
|
1196
|
-
})(_responsiveAvatarCounterSizeStyle,
|
|
1173
|
+
componentId: "sc-nxxvbb-0"
|
|
1174
|
+
})(_responsiveAvatarCounterSizeStyle, _avatarCounterPaddingStyle);
|
|
1197
1175
|
/**
|
|
1198
1176
|
* @public
|
|
1199
1177
|
*/
|
|
@@ -1602,26 +1580,26 @@ function Select(props) {
|
|
|
1602
1580
|
}
|
|
1603
1581
|
function switchRepresentationStyles(props) {
|
|
1604
1582
|
let { color, input } = getTheme_v2(props.theme);
|
|
1605
|
-
return css`--switch-bg-color:${color.input.default.enabled.border};--switch-fg-color:${color.input.default.enabled.bg}
|
|
1583
|
+
return css`--switch-bg-color:${color.input.default.enabled.border};--switch-fg-color:${color.input.default.enabled.bg};width:${rem(input.switch.width)};height:${rem(input.switch.height)};border-radius:${rem(input.switch.height / 2)};input:focus + &&{--switch-box-shadow:${focusRingStyle({ focusRing: input.switch.focusRing })};}input:focus:not(:focus-visible) + &&{--switch-box-shadow:none;}input:checked + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}@media (hover:hover){input:not(:disabled):hover + &&{--switch-bg-color:${color.input.default.hovered.border};--switch-fg-color:${color.input.default.hovered.bg};}input:not(:disabled):checked:hover + &&{--switch-bg-color:${color.input.default.enabled.fg};--switch-fg-color:${color.input.default.enabled.bg};}}input:not([data-read-only]):disabled + &&{--switch-bg-color:${color.input.default.disabled.border};--switch-fg-color:${color.input.default.disabled.bg};}input[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.border};--switch-fg-color:${color.input.default.readOnly.bg};}input:checked[data-read-only]:disabled + &&{--switch-bg-color:${color.input.default.readOnly.fg};--switch-fg-color:${color.input.default.readOnly.bg};}`;
|
|
1606
1584
|
}
|
|
1607
1585
|
function switchTrackStyles(props) {
|
|
1608
1586
|
let { input } = getTheme_v2(props.theme);
|
|
1609
|
-
return css
|
|
1587
|
+
return css`width:${rem(input.switch.width)};height:${rem(input.switch.height)};border-radius:${rem(input.switch.height / 2)};`;
|
|
1610
1588
|
}
|
|
1611
1589
|
function switchThumbStyles(props) {
|
|
1612
1590
|
let { $indeterminate } = props, { input } = getTheme_v2(props.theme), trackWidth = input.switch.width, trackHeight = input.switch.height, trackPadding = input.switch.padding, size = trackHeight - input.switch.padding * 2, checkedOffset = trackWidth - trackPadding * 2 - size, indeterminateOffset = trackWidth / 2 - size / 2 - trackPadding, checked = $indeterminate !== !0 && props.$checked === !0;
|
|
1613
|
-
return css
|
|
1591
|
+
return css`left:${rem(trackPadding)};top:${rem(trackPadding)};height:${rem(size)};width:${rem(size)};border-radius:${rem(size / 2)};transition-duration:${input.switch.transitionDurationMs}ms;transition-timing-function:${input.switch.transitionTimingFunction};transform:translate3d(0,0,0);${checked && css`transform:translate3d(${checkedOffset}px,0,0);`} ${$indeterminate && css`transform:translate3d(${indeterminateOffset}px,0,0);`}`;
|
|
1614
1592
|
}
|
|
1615
|
-
var switchInput = "cn60s71", switchRoot = "cn60s70";
|
|
1616
|
-
const Representation = /* @__PURE__ */ styled.span.withConfig({
|
|
1593
|
+
var switchInput = "cn60s71", switchRepresentation = "cn60s72", switchRoot = "cn60s70", switchThumb = "cn60s74", switchTrack = "cn60s73";
|
|
1594
|
+
const Representation = /* @__PURE__ */ styled.span.attrs({ className: switchRepresentation }).withConfig({
|
|
1617
1595
|
displayName: "Representation",
|
|
1618
|
-
componentId: "sc-
|
|
1619
|
-
})(switchRepresentationStyles), Track = /* @__PURE__ */ styled.span.withConfig({
|
|
1596
|
+
componentId: "sc-fbcjg3-0"
|
|
1597
|
+
})(switchRepresentationStyles), Track = /* @__PURE__ */ styled.span.attrs({ className: switchTrack }).withConfig({
|
|
1620
1598
|
displayName: "Track",
|
|
1621
|
-
componentId: "sc-
|
|
1622
|
-
})(switchTrackStyles), Thumb = /* @__PURE__ */ styled.span.withConfig({
|
|
1599
|
+
componentId: "sc-fbcjg3-1"
|
|
1600
|
+
})(switchTrackStyles), Thumb = /* @__PURE__ */ styled.span.attrs({ className: switchThumb }).withConfig({
|
|
1623
1601
|
displayName: "Thumb",
|
|
1624
|
-
componentId: "sc-
|
|
1602
|
+
componentId: "sc-fbcjg3-2"
|
|
1625
1603
|
})(switchThumbStyles);
|
|
1626
1604
|
/**
|
|
1627
1605
|
* The `Switch` component allows the user to toggle a setting on and off.
|