@sanity/ui 3.0.0-static.3 → 3.0.0-static.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks-cjs/_visual-editing.js +98 -64
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/buildCommand.js +1 -1
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +99 -65
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +4 -1
- package/dist/_visual-editing.d.ts +4 -1
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +145 -893
- package/dist/css.d.ts +145 -893
- package/dist/css.js +182 -191
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +182 -191
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -14
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +1 -9
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +114 -109
- package/dist/theme.d.mts +1 -43
- package/dist/theme.d.ts +1 -43
- package/dist/theme.js +291 -102
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +272 -85
- package/dist/theme.mjs.map +1 -1
- package/package.json +1 -1
- package/src/cli/buildCommand.ts +2 -2
- package/src/css/_comp.ts +1 -0
- package/src/css/aspects/flex/flexJustify.style.ts +3 -3
- package/src/css/aspects/grid/types.ts +2 -2
- package/src/css/aspects/textOverflow/textOverflow.ts +2 -2
- package/src/css/compile/compilePalette.ts +8 -41
- package/src/css/compile/compileTheme_v3.ts +0 -18
- package/src/css/index.ts +2 -2
- package/src/css/primitives/_selectable/_contants.ts +1 -1
- package/src/css/primitives/box/box.ts +3 -0
- package/src/css/primitives/button/_constants.ts +1 -1
- package/src/css/primitives/button/button.style.ts +12 -13
- package/src/css/primitives/card/_constants.ts +2 -2
- package/src/css/primitives/card/card.ts +1 -1
- package/src/css/primitives/stack/index.ts +1 -0
- package/src/css/primitives/stack/stack.style.ts +9 -0
- package/src/css/primitives/stack/stack.ts +6 -0
- package/src/css/system.style.ts +2 -0
- package/src/theme/defaults/config.ts +2 -2
- package/src/theme/defaults/fonts.ts +4 -4
- package/src/theme/palette/constants.ts +1 -3
- package/src/theme/palette/types.ts +0 -12
- package/src/theme/v3/buildTheme_v3.ts +1 -2
- package/src/theme/v3/defaults.ts +12 -31
- package/src/theme/v3/types.ts +0 -3
- package/src/ui/StyleTags.tsx +1 -1
- package/src/ui/primitives/box/box.tsx +6 -0
- package/src/ui/primitives/button/button.tsx +12 -11
- package/src/ui/primitives/card/card.tsx +5 -2
- package/src/ui/primitives/heading/heading.tsx +1 -1
- package/src/ui/primitives/select/select.tsx +3 -3
- package/src/ui/primitives/stack/stack.tsx +10 -5
- package/src/ui/primitives/text/text.tsx +1 -1
- package/dist/_chunks-cjs/v3_v2.js +0 -251
- package/dist/_chunks-cjs/v3_v2.js.map +0 -1
- package/dist/_chunks-es/v3_v2.mjs +0 -252
- package/dist/_chunks-es/v3_v2.mjs.map +0 -1
|
@@ -358,11 +358,14 @@ function _temp$6() {
|
|
|
358
358
|
return !1;
|
|
359
359
|
}
|
|
360
360
|
const Box = react.forwardRef(function(props, ref) {
|
|
361
|
-
const $ = reactCompilerRuntime.c(
|
|
362
|
-
let align, border, borderBottom, borderLeft, borderRight, borderTop, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, restProps, row, rowEnd, rowStart, rows, t0, t1, t2, t3, t4, width, wrap;
|
|
361
|
+
const $ = reactCompilerRuntime.c(118);
|
|
362
|
+
let align, autoCols, autoFlow, autoRows, border, borderBottom, borderLeft, borderRight, borderTop, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, restProps, row, rowEnd, rowStart, rows, t0, t1, t2, t3, t4, width, wrap;
|
|
363
363
|
$[0] !== props ? ({
|
|
364
364
|
align,
|
|
365
365
|
as: t0,
|
|
366
|
+
autoCols,
|
|
367
|
+
autoFlow,
|
|
368
|
+
autoRows,
|
|
366
369
|
border,
|
|
367
370
|
borderTop,
|
|
368
371
|
borderRight,
|
|
@@ -414,11 +417,14 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
414
417
|
width,
|
|
415
418
|
wrap,
|
|
416
419
|
...restProps
|
|
417
|
-
} = props, $[0] = props, $[1] = align, $[2] =
|
|
420
|
+
} = props, $[0] = props, $[1] = align, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = border, $[6] = borderBottom, $[7] = borderLeft, $[8] = borderRight, $[9] = borderTop, $[10] = className, $[11] = column, $[12] = columnEnd, $[13] = columnStart, $[14] = columns, $[15] = direction, $[16] = flex, $[17] = gap, $[18] = gapX, $[19] = gapY, $[20] = height, $[21] = inset, $[22] = insetBottom, $[23] = insetLeft, $[24] = insetRight, $[25] = insetTop, $[26] = justify, $[27] = marginBottom, $[28] = marginLeft, $[29] = marginRight, $[30] = marginTop, $[31] = marginX, $[32] = marginY, $[33] = maxWidth, $[34] = muted, $[35] = overflow, $[36] = paddingBottom, $[37] = paddingLeft, $[38] = paddingRight, $[39] = paddingTop, $[40] = paddingX, $[41] = paddingY, $[42] = pointerEvents, $[43] = position, $[44] = radius, $[45] = restProps, $[46] = row, $[47] = rowEnd, $[48] = rowStart, $[49] = rows, $[50] = t0, $[51] = t1, $[52] = t2, $[53] = t3, $[54] = t4, $[55] = width, $[56] = wrap) : (align = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], border = $[5], borderBottom = $[6], borderLeft = $[7], borderRight = $[8], borderTop = $[9], className = $[10], column = $[11], columnEnd = $[12], columnStart = $[13], columns = $[14], direction = $[15], flex = $[16], gap = $[17], gapX = $[18], gapY = $[19], height = $[20], inset = $[21], insetBottom = $[22], insetLeft = $[23], insetRight = $[24], insetTop = $[25], justify = $[26], marginBottom = $[27], marginLeft = $[28], marginRight = $[29], marginTop = $[30], marginX = $[31], marginY = $[32], maxWidth = $[33], muted = $[34], overflow = $[35], paddingBottom = $[36], paddingLeft = $[37], paddingRight = $[38], paddingTop = $[39], paddingX = $[40], paddingY = $[41], pointerEvents = $[42], position = $[43], radius = $[44], restProps = $[45], row = $[46], rowEnd = $[47], rowStart = $[48], rows = $[49], t0 = $[50], t1 = $[51], t2 = $[52], t3 = $[53], t4 = $[54], width = $[55], wrap = $[56]);
|
|
418
421
|
const As = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, sizing = t4 === void 0 ? "border" : t4;
|
|
419
422
|
let t5;
|
|
420
|
-
$[
|
|
423
|
+
$[57] !== align || $[58] !== autoCols || $[59] !== autoFlow || $[60] !== autoRows || $[61] !== border || $[62] !== borderBottom || $[63] !== borderLeft || $[64] !== borderRight || $[65] !== borderTop || $[66] !== className || $[67] !== column || $[68] !== columnEnd || $[69] !== columnStart || $[70] !== columns || $[71] !== direction || $[72] !== display || $[73] !== flex || $[74] !== gap || $[75] !== gapX || $[76] !== gapY || $[77] !== height || $[78] !== inset || $[79] !== insetBottom || $[80] !== insetLeft || $[81] !== insetRight || $[82] !== insetTop || $[83] !== justify || $[84] !== margin || $[85] !== marginBottom || $[86] !== marginLeft || $[87] !== marginRight || $[88] !== marginTop || $[89] !== marginX || $[90] !== marginY || $[91] !== maxWidth || $[92] !== muted || $[93] !== overflow || $[94] !== padding || $[95] !== paddingBottom || $[96] !== paddingLeft || $[97] !== paddingRight || $[98] !== paddingTop || $[99] !== paddingX || $[100] !== paddingY || $[101] !== pointerEvents || $[102] !== position || $[103] !== radius || $[104] !== row || $[105] !== rowEnd || $[106] !== rowStart || $[107] !== rows || $[108] !== sizing || $[109] !== width || $[110] !== wrap ? (t5 = css.composeClassNames(className, css.box({
|
|
421
424
|
align,
|
|
425
|
+
autoCols,
|
|
426
|
+
autoFlow,
|
|
427
|
+
autoRows,
|
|
422
428
|
border,
|
|
423
429
|
borderTop,
|
|
424
430
|
borderRight,
|
|
@@ -468,9 +474,9 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
468
474
|
sizing,
|
|
469
475
|
width,
|
|
470
476
|
wrap
|
|
471
|
-
})), $[
|
|
477
|
+
})), $[57] = align, $[58] = autoCols, $[59] = autoFlow, $[60] = autoRows, $[61] = border, $[62] = borderBottom, $[63] = borderLeft, $[64] = borderRight, $[65] = borderTop, $[66] = className, $[67] = column, $[68] = columnEnd, $[69] = columnStart, $[70] = columns, $[71] = direction, $[72] = display, $[73] = flex, $[74] = gap, $[75] = gapX, $[76] = gapY, $[77] = height, $[78] = inset, $[79] = insetBottom, $[80] = insetLeft, $[81] = insetRight, $[82] = insetTop, $[83] = justify, $[84] = margin, $[85] = marginBottom, $[86] = marginLeft, $[87] = marginRight, $[88] = marginTop, $[89] = marginX, $[90] = marginY, $[91] = maxWidth, $[92] = muted, $[93] = overflow, $[94] = padding, $[95] = paddingBottom, $[96] = paddingLeft, $[97] = paddingRight, $[98] = paddingTop, $[99] = paddingX, $[100] = paddingY, $[101] = pointerEvents, $[102] = position, $[103] = radius, $[104] = row, $[105] = rowEnd, $[106] = rowStart, $[107] = rows, $[108] = sizing, $[109] = width, $[110] = wrap, $[111] = t5) : t5 = $[111];
|
|
472
478
|
let t6;
|
|
473
|
-
return $[
|
|
479
|
+
return $[112] !== As || $[113] !== props.children || $[114] !== ref || $[115] !== restProps || $[116] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(As, { "data-ui": "Box", ...restProps, className: t5, ref, children: props.children }), $[112] = As, $[113] = props.children, $[114] = ref, $[115] = restProps, $[116] = t5, $[117] = t6) : t6 = $[117], t6;
|
|
474
480
|
});
|
|
475
481
|
Box.displayName = "ForwardRef(Box)";
|
|
476
482
|
const Label = react.forwardRef(function(props, ref) {
|
|
@@ -650,7 +656,7 @@ const Text = react.forwardRef(function(props, ref) {
|
|
|
650
656
|
weight,
|
|
651
657
|
...restProps
|
|
652
658
|
} = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp, $[11] = weight) : (align = $[1], children = $[2], className = $[3], flex = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10], weight = $[11]);
|
|
653
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
659
|
+
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 2 : t3;
|
|
654
660
|
let t4;
|
|
655
661
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.composeClassNames(className, css.text({
|
|
656
662
|
accent,
|
|
@@ -750,7 +756,7 @@ const Button = react.forwardRef(function(props, ref) {
|
|
|
750
756
|
paddingBottom,
|
|
751
757
|
paddingLeft,
|
|
752
758
|
paddingRight,
|
|
753
|
-
radius =
|
|
759
|
+
radius = 2,
|
|
754
760
|
selected,
|
|
755
761
|
space = props.gap ?? props.space ?? props.padding ?? 3,
|
|
756
762
|
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
@@ -773,31 +779,56 @@ const Button = react.forwardRef(function(props, ref) {
|
|
|
773
779
|
tone,
|
|
774
780
|
width
|
|
775
781
|
})), "data-disabled": loading || disabled ? "" : void 0, "data-selected": selected ? "" : void 0, disabled: !!(loading || disabled), href: disabled ? void 0 : href, ref, type, children: [
|
|
776
|
-
!!loading && /* @__PURE__ */ jsxRuntime.jsx(Box, { align, as: "span", className: css.buttonLoadingBox(), display: "flex", flex: 1, justify, width: "fill", children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: fontSize }) }),
|
|
777
|
-
(IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
782
|
+
!!loading && /* @__PURE__ */ jsxRuntime.jsx(Box, { align: "center", as: "span", className: css.buttonLoadingBox(), display: "flex", flex: 1, justify: "center", width: "fill", children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: fontSize }) }),
|
|
783
|
+
(IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
784
|
+
Box,
|
|
785
|
+
{
|
|
786
|
+
as: "span",
|
|
787
|
+
direction,
|
|
788
|
+
display: "flex",
|
|
789
|
+
flex: 1,
|
|
790
|
+
gap,
|
|
791
|
+
gapX,
|
|
792
|
+
gapY,
|
|
793
|
+
justify,
|
|
794
|
+
padding,
|
|
795
|
+
paddingX,
|
|
796
|
+
paddingY,
|
|
797
|
+
paddingTop,
|
|
798
|
+
paddingBottom,
|
|
799
|
+
paddingLeft,
|
|
800
|
+
paddingRight,
|
|
801
|
+
children: [
|
|
802
|
+
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
803
|
+
react.isValidElement(IconComponent) && IconComponent,
|
|
804
|
+
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
805
|
+
] }),
|
|
806
|
+
text && /* @__PURE__ */ jsxRuntime.jsx(Text, { align: textAlign, as: "span", flex: "none", muted, size: fontSize, textOverflow, weight: textWeight, children: text }),
|
|
807
|
+
IconRightComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
808
|
+
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
809
|
+
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
810
|
+
] })
|
|
811
|
+
]
|
|
812
|
+
}
|
|
813
|
+
),
|
|
814
|
+
children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
815
|
+
Box,
|
|
816
|
+
{
|
|
817
|
+
as: "span",
|
|
818
|
+
flex: 1,
|
|
819
|
+
gap,
|
|
820
|
+
gapX,
|
|
821
|
+
gapY,
|
|
822
|
+
padding,
|
|
823
|
+
paddingX,
|
|
824
|
+
paddingY,
|
|
825
|
+
paddingTop,
|
|
826
|
+
paddingBottom,
|
|
827
|
+
paddingLeft,
|
|
828
|
+
paddingRight,
|
|
829
|
+
children
|
|
830
|
+
}
|
|
831
|
+
)
|
|
801
832
|
] });
|
|
802
833
|
});
|
|
803
834
|
Button.displayName = "ForwardRef(Button)";
|
|
@@ -805,7 +836,7 @@ function useCard() {
|
|
|
805
836
|
return react.useContext(CardContext);
|
|
806
837
|
}
|
|
807
838
|
const Card = react.forwardRef(function(props, ref) {
|
|
808
|
-
const $ = reactCompilerRuntime.c(
|
|
839
|
+
const $ = reactCompilerRuntime.c(51);
|
|
809
840
|
let asProp, className, pressed, restProps, schemeProp, selectable, selected, shadow, style, t0, t1, t2, t3;
|
|
810
841
|
$[0] !== props ? ({
|
|
811
842
|
__unstable_checkered: t0,
|
|
@@ -822,41 +853,41 @@ const Card = react.forwardRef(function(props, ref) {
|
|
|
822
853
|
tone: t3,
|
|
823
854
|
...restProps
|
|
824
855
|
} = props, $[0] = props, $[1] = asProp, $[2] = className, $[3] = pressed, $[4] = restProps, $[5] = schemeProp, $[6] = selectable, $[7] = selected, $[8] = shadow, $[9] = style, $[10] = t0, $[11] = t1, $[12] = t2, $[13] = t3) : (asProp = $[1], className = $[2], pressed = $[3], restProps = $[4], schemeProp = $[5], selectable = $[6], selected = $[7], shadow = $[8], style = $[9], t0 = $[10], t1 = $[11], t2 = $[12], t3 = $[13]);
|
|
825
|
-
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "
|
|
856
|
+
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = ReactIs.isValidElementType(asProp) ? asProp : "div", parent = useCard(), t4 = parent?.tone ?? "default", t5 = parent?.scheme ?? "light";
|
|
826
857
|
let t6;
|
|
827
858
|
$[14] !== t4 || $[15] !== t5 ? (t6 = {
|
|
828
859
|
tone: t4,
|
|
829
860
|
scheme: t5
|
|
830
861
|
}, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
|
|
831
|
-
const context = t6, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t7 = scheme === context.scheme ? void 0 : scheme
|
|
832
|
-
let
|
|
833
|
-
if ($[17] !== className || $[18] !== radius || $[19] !== selectable || $[20] !== shadow || $[21] !== t7 || $[22] !==
|
|
834
|
-
let
|
|
835
|
-
$[24] !== radius || $[25] !== selectable ? (
|
|
862
|
+
const context = t6, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t7 = scheme === context.scheme ? void 0 : scheme;
|
|
863
|
+
let t8;
|
|
864
|
+
if ($[17] !== className || $[18] !== radius || $[19] !== selectable || $[20] !== shadow || $[21] !== t7 || $[22] !== tone) {
|
|
865
|
+
let t92;
|
|
866
|
+
$[24] !== radius || $[25] !== selectable ? (t92 = selectable && css._selectable({
|
|
836
867
|
radius
|
|
837
|
-
}), $[24] = radius, $[25] = selectable, $[26] =
|
|
868
|
+
}), $[24] = radius, $[25] = selectable, $[26] = t92) : t92 = $[26], t8 = css.composeClassNames(className, css.card({
|
|
838
869
|
scheme: t7,
|
|
839
870
|
shadow,
|
|
840
|
-
tone
|
|
841
|
-
}),
|
|
871
|
+
tone
|
|
872
|
+
}), t92), $[17] = className, $[18] = radius, $[19] = selectable, $[20] = shadow, $[21] = t7, $[22] = tone, $[23] = t8;
|
|
842
873
|
} else
|
|
843
|
-
|
|
844
|
-
const
|
|
845
|
-
let
|
|
846
|
-
$[27] !== as || $[28] !==
|
|
847
|
-
let node =
|
|
874
|
+
t8 = $[23];
|
|
875
|
+
const t9 = checkered ? "" : void 0, t10 = focusRing ? "" : void 0, t11 = pressed ? "" : void 0, t12 = selected ? "" : void 0;
|
|
876
|
+
let t13;
|
|
877
|
+
$[27] !== as || $[28] !== context.scheme || $[29] !== context.tone || $[30] !== radius || $[31] !== ref || $[32] !== restProps || $[33] !== style || $[34] !== t10 || $[35] !== t11 || $[36] !== t12 || $[37] !== t8 || $[38] !== t9 || $[39] !== tone ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Card", ...restProps, as, className: t8, "data-context-tone": context.tone, "data-context-scheme": context.scheme, "data-checkered": t9, "data-focus-ring": t10, "data-pressed": t11, "data-selected": t12, "data-tone": tone, radius, ref, style }), $[27] = as, $[28] = context.scheme, $[29] = context.tone, $[30] = radius, $[31] = ref, $[32] = restProps, $[33] = style, $[34] = t10, $[35] = t11, $[36] = t12, $[37] = t8, $[38] = t9, $[39] = tone, $[40] = t13) : t13 = $[40];
|
|
878
|
+
let node = t13;
|
|
848
879
|
if (scheme === context.scheme && tone === context.tone)
|
|
849
880
|
return node;
|
|
850
|
-
const
|
|
851
|
-
let
|
|
852
|
-
if ($[
|
|
853
|
-
const
|
|
854
|
-
let
|
|
855
|
-
return $[
|
|
881
|
+
const t14 = parent?.compat_provider, t15 = tone ?? context.tone;
|
|
882
|
+
let t16;
|
|
883
|
+
if ($[41] !== node || $[42] !== scheme || $[43] !== t14 || $[44] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { compat_provider: t14, rendered: !0, scheme, tone: t15, children: node }), $[41] = node, $[42] = scheme, $[43] = t14, $[44] = t15, $[45] = t16) : t16 = $[45], node = t16, parent?.compat_provider) {
|
|
884
|
+
const t17 = tone ?? context.tone;
|
|
885
|
+
let t18;
|
|
886
|
+
return $[46] !== node || $[47] !== parent.compat_provider || $[48] !== scheme || $[49] !== t17 ? (t18 = react.createElement(parent.compat_provider, {
|
|
856
887
|
children: node,
|
|
857
888
|
scheme,
|
|
858
|
-
tone:
|
|
859
|
-
}), $[
|
|
889
|
+
tone: t17
|
|
890
|
+
}), $[46] = node, $[47] = parent.compat_provider, $[48] = scheme, $[49] = t17, $[50] = t18) : t18 = $[50], t18;
|
|
860
891
|
}
|
|
861
892
|
return node;
|
|
862
893
|
});
|
|
@@ -990,7 +1021,7 @@ const Heading = react.forwardRef(function(props, ref) {
|
|
|
990
1021
|
weight,
|
|
991
1022
|
...restProps
|
|
992
1023
|
} = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp, $[11] = weight) : (align = $[1], children = $[2], className = $[3], flex = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10], weight = $[11]);
|
|
993
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
1024
|
+
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 2 : t3;
|
|
994
1025
|
let t4;
|
|
995
1026
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.composeClassNames(className, css.heading({
|
|
996
1027
|
accent,
|
|
@@ -1928,7 +1959,7 @@ const Select = react.forwardRef(function(props, forwardedRef) {
|
|
|
1928
1959
|
space: t4,
|
|
1929
1960
|
...restProps
|
|
1930
1961
|
} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = gap, $[5] = readOnly, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4) : (children = $[1], customValidity = $[2], disabled = $[3], gap = $[4], readOnly = $[5], restProps = $[6], t0 = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11]);
|
|
1931
|
-
const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ?
|
|
1962
|
+
const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ? 2 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 1 : t3, space = t4 === void 0 ? 2 : t4, ref = react.useRef(null);
|
|
1932
1963
|
let t5;
|
|
1933
1964
|
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[12] = t5) : t5 = $[12], react.useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
|
|
1934
1965
|
const t6 = gap ?? space;
|
|
@@ -1962,17 +1993,20 @@ const Select = react.forwardRef(function(props, forwardedRef) {
|
|
|
1962
1993
|
});
|
|
1963
1994
|
Select.displayName = "ForwardRef(Select)";
|
|
1964
1995
|
const Stack = react.forwardRef(function(props, ref) {
|
|
1965
|
-
const $ = reactCompilerRuntime.c(
|
|
1966
|
-
let as, gap, restProps, space;
|
|
1996
|
+
const $ = reactCompilerRuntime.c(14);
|
|
1997
|
+
let as, className, gap, restProps, space;
|
|
1967
1998
|
$[0] !== props ? ({
|
|
1968
1999
|
as,
|
|
2000
|
+
className,
|
|
1969
2001
|
gap,
|
|
1970
2002
|
space,
|
|
1971
2003
|
...restProps
|
|
1972
|
-
} = props, $[0] = props, $[1] = as, $[2] =
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
2004
|
+
} = props, $[0] = props, $[1] = as, $[2] = className, $[3] = gap, $[4] = restProps, $[5] = space) : (as = $[1], className = $[2], gap = $[3], restProps = $[4], space = $[5]);
|
|
2005
|
+
let t0;
|
|
2006
|
+
$[6] !== className ? (t0 = css.composeClassNames(className, css.stack()), $[6] = className, $[7] = t0) : t0 = $[7];
|
|
2007
|
+
const t1 = gap ?? space;
|
|
2008
|
+
let t2;
|
|
2009
|
+
return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Stack", ...restProps, as, autoRows: "min", className: t0, display: "grid", gap: t1, ref }), $[8] = as, $[9] = ref, $[10] = restProps, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
|
|
1976
2010
|
});
|
|
1977
2011
|
Stack.displayName = "ForwardRef(Stack)";
|
|
1978
2012
|
const Switch = react.forwardRef(function(props, forwardedRef) {
|