@sanity/ui 5.0.0-alpha.20 → 5.0.0-alpha.21
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 +17 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -54
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/code/Code.tsx +18 -19
- package/src/components/code/code.props.ts +17 -15
- package/src/components/dialog/Dialog.tsx +1 -1
- package/src/components/heading/Heading.tsx +8 -3
- package/src/components/heading/heading.css +0 -5
- package/src/components/heading/heading.props.ts +9 -4
- package/src/css/global/reset.css +4 -0
- package/src/types/Code.ts +0 -3
- package/src/version.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -322,11 +322,6 @@ interface CheckboxProps extends React.ComponentProps<'input'> {
|
|
|
322
322
|
}
|
|
323
323
|
/** @beta */
|
|
324
324
|
export declare function Checkbox(props: CheckboxProps): import("react").JSX.Element;
|
|
325
|
-
declare const CODE_TAG: readonly ["pre", "span"];
|
|
326
|
-
type CodeTag = (typeof CODE_TAG)[number];
|
|
327
|
-
declare const CODE_SIZE: readonly [0, 1, 2, 3, 4];
|
|
328
|
-
/** @public */
|
|
329
|
-
type CodeSize = (typeof CODE_SIZE)[number];
|
|
330
325
|
declare const FONT_WEIGHT: readonly ["regular", "medium", "semibold", "bold"];
|
|
331
326
|
/** @public */
|
|
332
327
|
type FontWeight = (typeof FONT_WEIGHT)[number];
|
|
@@ -346,13 +341,10 @@ interface TypographyProps extends MarginProps, ToneProps {
|
|
|
346
341
|
/** CSS **font-weight** property */
|
|
347
342
|
weight?: FontWeight;
|
|
348
343
|
}
|
|
344
|
+
declare const CODE_SIZE: readonly [0, 1, 2, 3, 4];
|
|
349
345
|
/** @public */
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
* HTML element or component to render.
|
|
353
|
-
* @remarks The defined element wraps an inner `<code>` tag.
|
|
354
|
-
*/
|
|
355
|
-
as?: T;
|
|
346
|
+
type CodeSize = (typeof CODE_SIZE)[number];
|
|
347
|
+
interface CodeBaseProps extends Omit<TypographyProps, 'align' | 'truncate' | 'tone' | 'weight'> {
|
|
356
348
|
/**
|
|
357
349
|
* Refractor language for syntax highlighting.
|
|
358
350
|
*/
|
|
@@ -363,7 +355,17 @@ interface CodeProps<T extends CodeTag = 'pre'> extends Omit<TypographyProps, 'al
|
|
|
363
355
|
size?: Responsive<CodeSize>;
|
|
364
356
|
}
|
|
365
357
|
/** @public */
|
|
366
|
-
|
|
358
|
+
type CodeProps = (CodeBaseProps & {
|
|
359
|
+
/**
|
|
360
|
+
* Render code inline or as a block.
|
|
361
|
+
* @remarks Block code is wrapped in a `<pre>` tag.
|
|
362
|
+
*/
|
|
363
|
+
inline?: false;
|
|
364
|
+
} & Omit<React.ComponentPropsWithRef<'pre'>, keyof CodeBaseProps>) | (CodeBaseProps & {
|
|
365
|
+
inline: true;
|
|
366
|
+
} & Omit<React.ComponentPropsWithRef<'span'>, keyof CodeBaseProps>);
|
|
367
|
+
/** @public */
|
|
368
|
+
export declare function Code({ size, ...props }: CodeProps): import("react").JSX.Element;
|
|
367
369
|
declare const CONTAINER_SIZE: readonly [0, 1, 2, 3, 4, 5];
|
|
368
370
|
/** @public */
|
|
369
371
|
type ContainerSize = (typeof CONTAINER_SIZE)[number];
|
|
@@ -527,12 +529,11 @@ declare const HEADING_SIZE: readonly [0, 1, 2, 3, 4, 5];
|
|
|
527
529
|
/** @public */
|
|
528
530
|
type HeadingSize = (typeof HEADING_SIZE)[number];
|
|
529
531
|
/** @public */
|
|
530
|
-
interface HeadingProps extends TypographyProps {
|
|
532
|
+
interface HeadingProps extends Omit<TypographyProps, 'muted' | 'weight'> {
|
|
531
533
|
/**
|
|
532
534
|
* Semantic heading element to render.
|
|
533
|
-
* @remarks Always set this explicitly.
|
|
534
535
|
*/
|
|
535
|
-
as
|
|
536
|
+
as: HeadingTag;
|
|
536
537
|
/**
|
|
537
538
|
* Sets font size.
|
|
538
539
|
* @remarks Independent of `as`.
|
|
@@ -540,7 +541,7 @@ interface HeadingProps extends TypographyProps {
|
|
|
540
541
|
size?: Responsive<HeadingSize>;
|
|
541
542
|
}
|
|
542
543
|
/** @public */
|
|
543
|
-
export declare function Heading<T extends ElementType = 'h2'>({ size,
|
|
544
|
+
export declare function Heading<T extends ElementType = 'h2'>({ size, ...props }: HeadingProps & Omit<ComponentPropsWithRef<T>, keyof HeadingProps>): import("react").JSX.Element;
|
|
544
545
|
/** @public */
|
|
545
546
|
interface HotkeysProps extends React.ComponentProps<'kbd'> {
|
|
546
547
|
/**
|
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/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/components/tabs/tabs.props.ts","../src/components/tabs/Tabs.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;cACA;;KAED,eAAe;KACf,0BAA0B;KCD1B;EACV,OAAO;;KAWG;EACV,OAAO;;;UCZQ,WAAW,UAAU,MAAM,8BAA8B;;;;EAIxE,KAAK;;;;EAIL,YAAY,MAAM,cAAc,MAAM;;;;EAItC;;;wBCJc,MAAM,UAAU,wBAC9B,SACG,SACF,WAAW,KAAK,KAAK,sBAAsB,UAAU,WAAW,sBAAG,IAAA;cCfzD;;KAED,iBAAiB;KCEjB;;EAEV,SAAS;;EAET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AA;;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"}
|
|
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/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/types/Code.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/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/components/tabs/tabs.props.ts","../src/components/tabs/Tabs.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,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;;;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}-d891eb`;
|
|
85
85
|
}
|
|
86
86
|
const FONT_WEIGHT = [
|
|
87
87
|
"regular",
|
|
@@ -1096,10 +1096,7 @@ function Checkbox(props) {
|
|
|
1096
1096
|
}), $[6] = T0, $[7] = style, $[8] = t1, $[9] = t2, $[10] = t4, $[11] = t5) : t5 = $[11], t5;
|
|
1097
1097
|
}
|
|
1098
1098
|
const codeProps = {
|
|
1099
|
-
|
|
1100
|
-
type: "union",
|
|
1101
|
-
values: ["pre", "span"]
|
|
1102
|
-
},
|
|
1099
|
+
inline: { type: "boolean" },
|
|
1103
1100
|
language: { type: "string" },
|
|
1104
1101
|
size: {
|
|
1105
1102
|
type: "union",
|
|
@@ -1114,56 +1111,34 @@ const codeProps = {
|
|
|
1114
1111
|
},
|
|
1115
1112
|
muted: typographyProps.muted,
|
|
1116
1113
|
trim: typographyProps.trim,
|
|
1117
|
-
weight: typographyProps.weight,
|
|
1118
1114
|
...marginProps
|
|
1119
1115
|
}, LazyRefractor = lazy(() => import("./LazyRefractor-CQ22IeXB.js")), codeClassName = suffixClassName("sui-Code");
|
|
1120
1116
|
/** @public */
|
|
1121
1117
|
function Code(t0) {
|
|
1122
|
-
let $ = c(
|
|
1118
|
+
let $ = c(16), T0, children, language, rest, style, t1;
|
|
1123
1119
|
if ($[0] !== t0) {
|
|
1124
|
-
t2 =
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
children: /* @__PURE__ */ jsx("code", { children })
|
|
1139
|
-
});
|
|
1140
|
-
break bb0;
|
|
1141
|
-
}
|
|
1142
|
-
T0 = Component, t1 = clsx(codeClassName, className);
|
|
1143
|
-
}
|
|
1144
|
-
$[0] = t0, $[1] = T0, $[2] = children, $[3] = language, $[4] = rest, $[5] = style, $[6] = t1, $[7] = t2;
|
|
1145
|
-
} else T0 = $[1], children = $[2], language = $[3], rest = $[4], style = $[5], t1 = $[6], t2 = $[7];
|
|
1146
|
-
if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
|
|
1120
|
+
let { size: t2, ...props } = t0, { children: t3, className, inline, language: t4, style: t5, ...t6 } = getProps({
|
|
1121
|
+
size: t2 === void 0 ? 2 : t2,
|
|
1122
|
+
...props
|
|
1123
|
+
}, codeProps);
|
|
1124
|
+
children = t3, language = t4, style = t5, rest = t6, T0 = inline ? "span" : "pre", t1 = clsx(codeClassName, className), $[0] = t0, $[1] = T0, $[2] = children, $[3] = language, $[4] = rest, $[5] = style, $[6] = t1;
|
|
1125
|
+
} else T0 = $[1], children = $[2], language = $[3], rest = $[4], style = $[5], t1 = $[6];
|
|
1126
|
+
let t2;
|
|
1127
|
+
$[7] !== children || $[8] !== language ? (t2 = language ? /* @__PURE__ */ jsx(Suspense, {
|
|
1128
|
+
fallback: /* @__PURE__ */ jsx("code", { children }),
|
|
1129
|
+
children: /* @__PURE__ */ jsx(LazyRefractor, {
|
|
1130
|
+
language,
|
|
1131
|
+
value: children
|
|
1132
|
+
})
|
|
1133
|
+
}) : /* @__PURE__ */ jsx("code", { children }), $[7] = children, $[8] = language, $[9] = t2) : t2 = $[9];
|
|
1147
1134
|
let t3;
|
|
1148
|
-
$[
|
|
1149
|
-
let t4;
|
|
1150
|
-
$[10] !== children || $[11] !== language ? (t4 = /* @__PURE__ */ jsx(LazyRefractor, {
|
|
1151
|
-
language,
|
|
1152
|
-
value: children
|
|
1153
|
-
}), $[10] = children, $[11] = language, $[12] = t4) : t4 = $[12];
|
|
1154
|
-
let t5;
|
|
1155
|
-
$[13] !== t3 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsx(Suspense, {
|
|
1156
|
-
fallback: t3,
|
|
1157
|
-
children: t4
|
|
1158
|
-
}), $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15];
|
|
1159
|
-
let t6;
|
|
1160
|
-
return $[16] !== T0 || $[17] !== rest || $[18] !== style || $[19] !== t1 || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(T0, {
|
|
1135
|
+
return $[10] !== T0 || $[11] !== rest || $[12] !== style || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsx(T0, {
|
|
1161
1136
|
className: t1,
|
|
1162
1137
|
style,
|
|
1163
1138
|
"data-ui": "Code",
|
|
1164
1139
|
...rest,
|
|
1165
|
-
children:
|
|
1166
|
-
}), $[
|
|
1140
|
+
children: t2
|
|
1141
|
+
}), $[10] = T0, $[11] = rest, $[12] = style, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
|
|
1167
1142
|
}
|
|
1168
1143
|
const CONTAINER_SIZE = [
|
|
1169
1144
|
0,
|
|
@@ -1225,7 +1200,11 @@ const headingProps = {
|
|
|
1225
1200
|
5
|
|
1226
1201
|
]
|
|
1227
1202
|
},
|
|
1228
|
-
|
|
1203
|
+
align: typographyProps.align,
|
|
1204
|
+
trim: typographyProps.trim,
|
|
1205
|
+
truncate: typographyProps.truncate,
|
|
1206
|
+
...marginProps,
|
|
1207
|
+
...toneProps
|
|
1229
1208
|
}, headingClassName = suffixClassName("sui-Heading");
|
|
1230
1209
|
/** @public */
|
|
1231
1210
|
function Heading(t0) {
|
|
@@ -1233,28 +1212,27 @@ function Heading(t0) {
|
|
|
1233
1212
|
if ($[0] !== t0) {
|
|
1234
1213
|
t2 = Symbol.for("react.early_return_sentinel");
|
|
1235
1214
|
bb0: {
|
|
1236
|
-
let { size: t3,
|
|
1215
|
+
let { size: t3, ...props } = t0, { as, children: t4, className, style: t5, ...t6 } = getProps({
|
|
1237
1216
|
size: t3 === void 0 ? 2 : t3,
|
|
1238
|
-
weight: t4 === void 0 ? "bold" : t4,
|
|
1239
1217
|
...props
|
|
1240
1218
|
}, headingProps);
|
|
1241
|
-
children =
|
|
1219
|
+
children = t4, style = t5, rest = t6;
|
|
1242
1220
|
let Component = as || "h2";
|
|
1243
1221
|
if (props.truncate && props.trim) {
|
|
1244
|
-
let
|
|
1245
|
-
$[7] ===
|
|
1246
|
-
className:
|
|
1222
|
+
let t7 = clsx(headingClassName, className?.replace("sui-line-clamp", "").replace("sui-text-overflow", "")), t8 = props.truncate === 1 ? "sui-text-overflow" : "sui-line-clamp", t9;
|
|
1223
|
+
$[7] === t8 ? t9 = $[8] : (t9 = clsx("sui-overflow-hidden", "sui-weight-bold", t8), $[7] = t8, $[8] = t9), t2 = /* @__PURE__ */ jsx(Component, {
|
|
1224
|
+
className: t7,
|
|
1247
1225
|
style,
|
|
1248
1226
|
"data-ui": "Heading",
|
|
1249
1227
|
...rest,
|
|
1250
1228
|
children: /* @__PURE__ */ jsx("span", {
|
|
1251
|
-
className:
|
|
1229
|
+
className: t9,
|
|
1252
1230
|
children
|
|
1253
1231
|
})
|
|
1254
1232
|
});
|
|
1255
1233
|
break bb0;
|
|
1256
1234
|
}
|
|
1257
|
-
T0 = Component, t1 = clsx(headingClassName, props.truncate && "sui-overflow-hidden", className);
|
|
1235
|
+
T0 = Component, t1 = clsx(headingClassName, props.truncate && "sui-overflow-hidden", "sui-weight-bold", className);
|
|
1258
1236
|
}
|
|
1259
1237
|
$[0] = t0, $[1] = T0, $[2] = children, $[3] = rest, $[4] = style, $[5] = t1, $[6] = t2;
|
|
1260
1238
|
} else T0 = $[1], children = $[2], rest = $[3], style = $[4], t1 = $[5], t2 = $[6];
|
|
@@ -1325,6 +1303,7 @@ function DialogRoot(t0) {
|
|
|
1325
1303
|
}, t4 = [open], $[0] = open, $[1] = t3, $[2] = t4), useEffect(t3, t4);
|
|
1326
1304
|
let t6 = header ? headerId : void 0, t7 = clsx(dialogClasses, className), t8;
|
|
1327
1305
|
$[3] !== header || $[4] !== headerId ? (t8 = header ? /* @__PURE__ */ jsx(Heading, {
|
|
1306
|
+
as: "h2",
|
|
1328
1307
|
trim: !0,
|
|
1329
1308
|
size: 1,
|
|
1330
1309
|
id: headerId,
|