@sanity/ui 5.0.0-alpha.16 → 5.0.0-alpha.17
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/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -21
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/button/Button.tsx +7 -1
- package/src/components/button/button.css +37 -25
- package/src/components/card/Card.tsx +1 -1
- package/src/components/card/card.props.ts +4 -3
- package/src/components/indicator/indicator.css +1 -1
- package/src/components/spinner/Spinner.tsx +1 -0
- package/src/css/classes/local/index.css +0 -1
- package/src/css/tokens/semantic.css +2 -5
- package/src/css/tokens/surface.css +76 -12
- package/src/props/layout.ts +3 -3
- package/src/props/tone.ts +13 -2
- package/src/types/Tone.ts +2 -0
- package/src/version.ts +2 -2
- package/src/css/classes/local/tone.css +0 -75
package/dist/index.d.ts
CHANGED
|
@@ -49,12 +49,16 @@ interface AvatarStackProps extends React.ComponentProps<'ul'> {
|
|
|
49
49
|
/** @public */
|
|
50
50
|
export declare function AvatarStack({ size, ...props }: AvatarStackProps): import("react").JSX.Element;
|
|
51
51
|
declare const TONE: readonly ["neutral", "positive", "suggest", "caution", "critical"];
|
|
52
|
+
declare const TONE_WITH_DEFAULT: string[];
|
|
52
53
|
/** @public */
|
|
53
54
|
type Tone = (typeof TONE)[number];
|
|
55
|
+
type ToneWithDefault = (typeof TONE_WITH_DEFAULT)[number];
|
|
54
56
|
type ToneProps = {
|
|
55
|
-
/** CSS **background-color** property */
|
|
56
57
|
tone?: Tone;
|
|
57
58
|
};
|
|
59
|
+
type ToneWithDefaultProps = {
|
|
60
|
+
tone?: ToneWithDefault;
|
|
61
|
+
};
|
|
58
62
|
/** @public */
|
|
59
63
|
interface BadgeProps<T extends React.ElementType = 'span'> extends ToneProps {
|
|
60
64
|
/**
|
|
@@ -213,7 +217,7 @@ type ZIndexProps = {
|
|
|
213
217
|
zIndex?: Responsive<number>;
|
|
214
218
|
};
|
|
215
219
|
/** @public */
|
|
216
|
-
interface LayoutProps extends
|
|
220
|
+
interface LayoutProps extends ToneWithDefaultProps, WidthProps, HeightProps, MarginProps, BorderProps, PaddingProps, PositionProps, OverflowProps, FlexChildProps, GridChildProps, ZIndexProps, ShadowProps {}
|
|
217
221
|
declare const DISPLAY_BLOCK: readonly ["block", "inline-block", "none"];
|
|
218
222
|
/** @public */
|
|
219
223
|
type DisplayBlock = (typeof DISPLAY_BLOCK)[number];
|
|
@@ -291,7 +295,7 @@ declare const DENSITY: readonly ["compact", "regular", "loose"];
|
|
|
291
295
|
/** @public */
|
|
292
296
|
type Density = (typeof DENSITY)[number];
|
|
293
297
|
/** @public */
|
|
294
|
-
interface CardProps<T extends React.ElementType = 'div'> extends MarginProps,
|
|
298
|
+
interface CardProps<T extends React.ElementType = 'div'> extends MarginProps, ToneWithDefaultProps {
|
|
295
299
|
/**
|
|
296
300
|
* HTML element or component to render.
|
|
297
301
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Avatar.ts","../src/types/Responsive.ts","../src/components/avatar/avatar.props.ts","../src/components/avatar/Avatar.tsx","../src/components/avatar-counter/avatarCounter.props.ts","../src/components/avatar-counter/AvatarCounter.tsx","../src/components/avatar-stack/avatarStack.props.ts","../src/components/avatar-stack/AvatarStack.tsx","../src/types/Tone.ts","../src/props/tone.ts","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx","../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/Code.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/label/label.props.ts","../src/components/label/Label.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/components/text-area/textArea.props.ts","../src/components/text-area/TextArea.tsx","../src/components/text-input/textInput.props.ts","../src/components/text-input/TextInput.tsx","../src/components/tooltip/tooltip.props.ts","../src/components/tooltip/Tooltip.tsx","../src/components/tooltip-group/tooltipGroup.props.ts","../src/components/tooltip-group/TooltipGroup.tsx","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts"],"mappings":";cAAa;KACD,qBAAqB;cAEpB;KAUD,sBAAsB;;KCZtB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;;UCF3C,oBAAoB,MAAM;;EAEzC,QAAQ;;EAER;;EAEA,OAAO,WAAW;;EAElB;;;wBCJc,SAAQ,OAAgB,SAAa,SAAQ,8BAAW,IAAA;;UCLvD,2BAA2B,MAAM;;EAEhD;;EAEA,OAAO;;;wBCAO,gBAAe,SAAa,SAAQ,qCAAkB,IAAA;;UCNrD,yBAAyB,MAAM;;EAE9C;;EAEA,OAAO;;;wBCIO,cAAa,SAAa,SAAQ,mCAAgB,IAAA;cCZrD;;KAED,eAAe;KCCf;;EAEV,OAAO;;;UCDQ,WAAW,UAAU,MAAM,8BAA8B;;;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;;;;EAIA;;;wBCZc,WACd,YACA,SACA,UACA,SACG,SACF,gCAAa,IAAA;cCZH;;KAcD,iCAAiC;;KAGjC,gBAAgB,QAAQ,MAAM,wBAAwB;;UAGjD,uBACP,KAAK,MAAM,kCAAkC;;;;;EAKrD;;;;EAIA,OAAO;;;wBCxBO,YACd,SACA,UACA,SACG,SACF,iCAAc,IAAA;;UCVA,qBACP,KAAK,MAAM,gDAAgD;;;;EAInE,aAAa,MAAM;;;;EAInB,UAAU,MAAM,aAAa;;;;EAI7B,UAAU,MAAM;;;;EAIhB;;iBCTO,cACP,cACG,SACF;EACD,eAAe;oBAChB,IAAA;;qBA2EY,gBAEA;;UC3FI,kBAAkB,UAAU,MAAM;;;;EAIjD,KAAK;;;wBCGS,aAAa,UAAU,qBACrC,OAAO,kBAAkB,KAAK,KAAK,sBAAsB,UAAU,kBAAkB,sBAAG,IAAA;;UCRzE,YAAY,UAAU,MAAM,6BAA6B,KACxE,UAAU;;wBCOI,OAAO,UAAU,uBAC/B,cACG,SACF,YAAY,KAAK,KAAK,sBAAsB,UAAU,YAAY,sBAAG,IAAA;;UCXvD,oBAAoB,UAAU,MAAM;;;;EAInD,KAAK;;;;EAIL;;;wBCDc,eAAe,UAAU,sBACvC,OAAO,oBAAoB,KAAK,KAAK,sBAAsB,UAAU,oBAAoB,sBAAG,IAAA;;wBCR9E"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/Avatar.ts","../src/types/Responsive.ts","../src/components/avatar/avatar.props.ts","../src/components/avatar/Avatar.tsx","../src/components/avatar-counter/avatarCounter.props.ts","../src/components/avatar-counter/AvatarCounter.tsx","../src/components/avatar-stack/avatarStack.props.ts","../src/components/avatar-stack/AvatarStack.tsx","../src/types/Tone.ts","../src/props/tone.ts","../src/components/badge/badge.props.ts","../src/components/badge/Badge.tsx","../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Shadow.ts","../src/props/shadow.ts","../src/props/width.ts","../src/props/zIndex.ts","../src/props/layout.ts","../src/types/Display.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/types/Button.ts","../src/types/Interactive.ts","../src/components/button/button.props.ts","../src/components/button/Button.tsx","../src/types/Density.ts","../src/components/card/card.props.ts","../src/components/card/Card.tsx","../src/components/checkbox/checkbox.props.ts","../src/components/checkbox/Checkbox.tsx","../src/types/Code.ts","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/components/code/code.props.ts","../src/components/code/Code.tsx","../src/types/Container.ts","../src/components/container/container.props.ts","../src/components/container/Container.tsx","../src/components/dialog/dialog.props.ts","../src/components/dialog/Dialog.tsx","../src/components/divider/divider.props.ts","../src/components/divider/Divider.tsx","../src/types/Eyebrow.ts","../src/components/eyebrow/eyebrow.props.ts","../src/components/eyebrow/Eyebrow.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/components/h-stack/hStack.props.ts","../src/components/h-stack/HStack.tsx","../src/types/Heading.ts","../src/components/heading/heading.props.ts","../src/components/heading/Heading.tsx","../src/components/hotkeys/hotkeys.props.ts","../src/components/hotkeys/Hotkeys.tsx","../src/types/Icon.ts","../src/components/icon/icon.props.ts","../src/components/icon/Icon.tsx","../src/components/icon-button/iconButton.props.ts","../src/components/icon-button/IconButton.tsx","../src/components/indicator/indicator.props.ts","../src/components/indicator/Indicator.tsx","../src/components/indicator-stack/indicatorStack.props.ts","../src/components/indicator-stack/IndicatorStack.tsx","../src/components/inline/inline.props.ts","../src/components/inline/Inline.tsx","../src/components/kbd/kbd.props.ts","../src/components/kbd/KBD.tsx","../src/components/label/label.props.ts","../src/components/label/Label.tsx","../src/components/link/link.props.ts","../src/components/link/Link.tsx","../src/types/List.ts","../src/components/list/list.props.ts","../src/components/list/List.tsx","../src/types/Placement.ts","../src/props/placement.ts","../src/components/popover/popover.props.ts","../src/components/popover/Popover.tsx","../src/components/press-area/pressArea.props.ts","../src/components/press-area/PressArea.tsx","../src/components/radio/radio.props.ts","../src/components/radio/Radio.tsx","../src/types/FormElement.ts","../src/props/formElement.ts","../src/components/select/select.props.ts","../src/components/select/Select.tsx","../src/components/skip-to-content/skipToContent.props.ts","../src/components/skip-to-content/SkipToContent.tsx","../src/components/spinner/spinner.props.ts","../src/components/spinner/Spinner.tsx","../src/components/switch/switch.props.ts","../src/components/switch/Switch.tsx","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx","../src/components/text-area/textArea.props.ts","../src/components/text-area/TextArea.tsx","../src/components/text-input/textInput.props.ts","../src/components/text-input/TextInput.tsx","../src/components/tooltip/tooltip.props.ts","../src/components/tooltip/Tooltip.tsx","../src/components/tooltip-group/tooltipGroup.props.ts","../src/components/tooltip-group/TooltipGroup.tsx","../src/components/v-stack/vStack.props.ts","../src/components/v-stack/VStack.tsx","../src/components/visually-hidden/visuallyHidden.props.ts","../src/components/visually-hidden/VisuallyHidden.tsx","../src/hooks/useIsClient.ts"],"mappings":";cAAa;KACD,qBAAqB;cAEpB;KAUD,sBAAsB;;KCZtB,WAAW,KACnB,WAEE,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;OACtD,0BAA0B;EAA4B;;;UCF3C,oBAAoB,MAAM;;EAEzC,QAAQ;;EAER;;EAEA,OAAO,WAAW;;EAElB;;;wBCJc,SAAQ,OAAgB,SAAa,SAAQ,8BAAW,IAAA;;UCLvD,2BAA2B,MAAM;;EAEhD;;EAEA,OAAO;;;wBCAO,gBAAe,SAAa,SAAQ,qCAAkB,IAAA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AAM,8BAA8B;;;;EAIvE,KAAK;;;;EAIL,OAAO,WAAW;;;wBCJJ,KAAK,UAAU,wBAC7B,SACG,SACF,UAAU,KAAK,KAAK,sBAAsB,UAAU,UAAU,sBAAG,IAAA;;UCRnD,sBAEb,MAAM,4BACN,yBACA,KAAK;;;;EAIP;;;;EAIA;;;;EAIA;;;wBCZc,WACd,YACA,SACA,UACA,SACG,SACF,gCAAa,IAAA;cCZH;;KAcD,iCAAiC;;KAGjC,gBAAgB,QAAQ,MAAM,wBAAwB;;UAGjD,uBACP,KAAK,MAAM,kCAAkC;;;;;EAKrD;;;;EAIA,OAAO;;;wBCxBO,YACd,SACA,UACA,SACG,SACF,iCAAc,IAAA;;UCVA,qBACP,KAAK,MAAM,gDAAgD;;;;EAInE,aAAa,MAAM;;;;EAInB,UAAU,MAAM,aAAa;;;;EAI7B,UAAU,MAAM;;;;EAIhB;;iBCTO,cACP,cACG,SACF;EACD,eAAe;oBAChB,IAAA;;qBA2EY,gBAEA;;UC3FI,kBAAkB,UAAU,MAAM;;;;EAIjD,KAAK;;;wBCGS,aAAa,UAAU,qBACrC,OAAO,kBAAkB,KAAK,KAAK,sBAAsB,UAAU,kBAAkB,sBAAG,IAAA;;UCRzE,YAAY,UAAU,MAAM,6BAA6B,KACxE,UAAU;;wBCOI,OAAO,UAAU,uBAC/B,cACG,SACF,YAAY,KAAK,KAAK,sBAAsB,UAAU,YAAY,sBAAG,IAAA;;UCXvD,oBAAoB,UAAU,MAAM;;;;EAInD,KAAK;;;;EAIL;;;wBCDc,eAAe,UAAU,sBACvC,OAAO,oBAAoB,KAAK,KAAK,sBAAsB,UAAU,oBAAoB,sBAAG,IAAA;;wBCR9E"}
|
package/dist/index.js
CHANGED
|
@@ -81,7 +81,7 @@ function getCompositeValue(propValue, propDef, key) {
|
|
|
81
81
|
return compositeValue;
|
|
82
82
|
}
|
|
83
83
|
function suffixClassName(className) {
|
|
84
|
-
return `${className}-
|
|
84
|
+
return `${className}-1271ff`;
|
|
85
85
|
}
|
|
86
86
|
const FONT_WEIGHT = [
|
|
87
87
|
"regular",
|
|
@@ -152,16 +152,20 @@ const FONT_WEIGHT = [
|
|
|
152
152
|
className: "ml",
|
|
153
153
|
values: SPACE_AUTO_NEGATIVE
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, TONE = [
|
|
156
|
+
"neutral",
|
|
157
|
+
"positive",
|
|
158
|
+
"suggest",
|
|
159
|
+
"caution",
|
|
160
|
+
"critical"
|
|
161
|
+
], TONE_WITH_DEFAULT = ["default", ...TONE], toneProps = { tone: {
|
|
156
162
|
type: "union",
|
|
157
163
|
className: "tone",
|
|
158
|
-
values:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
"critical"
|
|
164
|
-
]
|
|
164
|
+
values: TONE
|
|
165
|
+
} }, toneWithDefaultProps = { tone: {
|
|
166
|
+
type: "union",
|
|
167
|
+
className: "tone",
|
|
168
|
+
values: TONE_WITH_DEFAULT
|
|
165
169
|
} }, typographyProps = {
|
|
166
170
|
align: {
|
|
167
171
|
type: "union",
|
|
@@ -721,7 +725,7 @@ const borderProps = {
|
|
|
721
725
|
className: "z-index",
|
|
722
726
|
variable: "--z-index"
|
|
723
727
|
} }, layoutProps = {
|
|
724
|
-
...
|
|
728
|
+
...toneWithDefaultProps,
|
|
725
729
|
...widthProps,
|
|
726
730
|
...heightProps,
|
|
727
731
|
...marginProps,
|
|
@@ -869,24 +873,25 @@ const spinnerProps = { size: {
|
|
|
869
873
|
} }, spinnerClassName = suffixClassName("sui-Spinner");
|
|
870
874
|
/** @public */
|
|
871
875
|
function Spinner(t0) {
|
|
872
|
-
let $ = c(
|
|
876
|
+
let $ = c(14), T0, rest, style, t1, t2, t3;
|
|
873
877
|
if ($[0] !== t0) {
|
|
874
|
-
let { size:
|
|
875
|
-
size
|
|
878
|
+
let { size: t4, ...props } = t0, size = t4 === void 0 ? 2 : t4, { className, style: t5, ...t6 } = getProps({
|
|
879
|
+
size,
|
|
876
880
|
...props
|
|
877
881
|
}, spinnerProps);
|
|
878
|
-
style =
|
|
879
|
-
} else T0 = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5];
|
|
880
|
-
let
|
|
881
|
-
return $[
|
|
882
|
+
style = t5, rest = t6, T0 = Icon, t1 = SpinnerIcon, t2 = size, t3 = clsx(spinnerClassName, className), $[0] = t0, $[1] = T0, $[2] = rest, $[3] = style, $[4] = t1, $[5] = t2, $[6] = t3;
|
|
883
|
+
} else T0 = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
|
|
884
|
+
let t4;
|
|
885
|
+
return $[7] !== T0 || $[8] !== rest || $[9] !== style || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(T0, {
|
|
882
886
|
icon: t1,
|
|
883
|
-
|
|
887
|
+
size: t2,
|
|
888
|
+
className: t3,
|
|
884
889
|
style,
|
|
885
890
|
"data-ui": "Spinner",
|
|
886
891
|
role: "status",
|
|
887
892
|
"aria-label": "Loading...",
|
|
888
893
|
...rest
|
|
889
|
-
}), $[
|
|
894
|
+
}), $[7] = T0, $[8] = rest, $[9] = style, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13], t4;
|
|
890
895
|
}
|
|
891
896
|
const buttonProps = {
|
|
892
897
|
as: { type: "string" },
|
|
@@ -963,6 +968,7 @@ function Button(t0) {
|
|
|
963
968
|
inset: 0,
|
|
964
969
|
alignItems: "center",
|
|
965
970
|
justifyContent: "center",
|
|
971
|
+
"data-ui": "Button-Spinner",
|
|
966
972
|
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
967
973
|
}), t8 = IconStart && (isValidElement(IconStart) ? IconStart : /* @__PURE__ */ jsx(Icon, {
|
|
968
974
|
icon: IconStart,
|
|
@@ -1034,7 +1040,7 @@ const DENSITY = [
|
|
|
1034
1040
|
}
|
|
1035
1041
|
}
|
|
1036
1042
|
},
|
|
1037
|
-
...
|
|
1043
|
+
...toneWithDefaultProps,
|
|
1038
1044
|
...marginProps
|
|
1039
1045
|
}, cardClassName = suffixClassName("sui-Card");
|
|
1040
1046
|
/** @public */
|
|
@@ -1043,7 +1049,7 @@ function Card(t0) {
|
|
|
1043
1049
|
if ($[0] !== t0) {
|
|
1044
1050
|
let { density: t2, tone: t3, ...props } = t0, { as, children: t4, className, style: t5, ...t6 } = getProps({
|
|
1045
1051
|
density: t2 === void 0 ? "regular" : t2,
|
|
1046
|
-
tone: t3 === void 0 ? "
|
|
1052
|
+
tone: t3 === void 0 ? "default" : t3,
|
|
1047
1053
|
...props
|
|
1048
1054
|
}, cardProps);
|
|
1049
1055
|
children = t4, style = t5, rest = t6, T0 = as || "div", t1 = clsx(cardClassName, "sui-border", className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1;
|