@sanity/ui 3.0.0-static.10 → 3.0.0-static.3
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 +105 -143
- 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-cjs/v3_v2.js +251 -0
- package/dist/_chunks-cjs/v3_v2.js.map +1 -0
- package/dist/_chunks-es/_visual-editing.mjs +106 -144
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/v3_v2.mjs +252 -0
- package/dist/_chunks-es/v3_v2.mjs.map +1 -0
- package/dist/_visual-editing.d.mts +11 -14
- package/dist/_visual-editing.d.ts +11 -14
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +1006 -282
- package/dist/css.d.ts +1006 -282
- package/dist/css.js +743 -852
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +743 -852
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +11 -14
- package/dist/index.d.ts +11 -14
- package/dist/index.js +31 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -19
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +9 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +1023 -1448
- package/dist/theme.d.mts +119 -85
- package/dist/theme.d.ts +119 -85
- package/dist/theme.js +219 -432
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +202 -413
- package/dist/theme.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cli/buildCommand.ts +2 -2
- package/src/css/_comp.ts +0 -1
- package/src/css/aspects/flex/flexJustify.style.ts +3 -3
- package/src/css/aspects/grid/types.ts +2 -2
- package/src/css/aspects/index.ts +0 -1
- package/src/css/aspects/textOverflow/textOverflow.ts +2 -2
- package/src/css/compile/compilePalette.ts +41 -8
- package/src/css/compile/compileRule.ts +0 -1
- package/src/css/compile/compileStyle.ts +1 -1
- package/src/css/compile/compileTheme_v3.ts +55 -46
- package/src/css/index.ts +2 -2
- package/src/css/primitives/_input/__workshop__/index.ts +1 -1
- package/src/css/primitives/_selectable/_contants.ts +1 -1
- package/src/css/primitives/badge/badge.style.ts +1 -1
- package/src/css/primitives/box/box.style.ts +1 -1
- package/src/css/primitives/box/box.ts +0 -2
- package/src/css/primitives/box/types.ts +0 -2
- package/src/css/primitives/button/_constants.ts +1 -1
- package/src/css/primitives/button/button.style.ts +13 -32
- package/src/css/primitives/card/_constants.ts +2 -2
- package/src/css/primitives/card/card.style.ts +44 -116
- package/src/css/primitives/card/card.ts +1 -1
- package/src/css/primitives/card/rules.ts +473 -0
- package/src/css/primitives/card/types.ts +1 -0
- package/src/css/primitives/kbd/kbd.style.ts +1 -1
- package/src/css/primitives/popover/popover.ts +0 -4
- package/src/css/primitives/switch/switch.style.ts +83 -8
- package/src/css/primitives/text/text.style.ts +3 -11
- package/src/css/system.style.ts +0 -4
- package/src/css/types.ts +188 -202
- package/src/css/varNames.ts +76 -110
- package/src/css/vars.ts +76 -109
- package/src/theme/defaults/config.ts +2 -2
- package/src/theme/defaults/fonts.ts +4 -4
- package/src/theme/palette/constants.ts +3 -1
- package/src/theme/palette/types.ts +12 -0
- package/src/theme/v3/buildTheme_v3.ts +2 -1
- package/src/theme/v3/color/buildColor_v3.ts +38 -43
- package/src/theme/v3/color/card.ts +38 -43
- package/src/theme/v3/color/color.ts +38 -42
- package/src/theme/v3/defaults.ts +72 -69
- package/src/theme/v3/resolveTokens.ts +38 -43
- package/src/theme/v3/types.ts +3 -0
- package/src/theme/versioning/themeColor_v3_v2.ts +1 -1
- package/src/ui/StyleTags.tsx +1 -1
- package/src/ui/components/autocomplete/__workshop__/async.tsx +1 -0
- package/src/ui/components/autocomplete/__workshop__/index.ts +1 -1
- package/src/ui/components/autocomplete/autocomplete.tsx +11 -2
- package/src/ui/components/dialog/dialog.tsx +4 -3
- package/src/ui/constants.ts +0 -6
- package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +2 -0
- package/src/ui/primitives/box/box.tsx +2 -9
- package/src/ui/primitives/button/button.tsx +11 -12
- package/src/ui/primitives/card/card.tsx +5 -4
- package/src/ui/primitives/code/code.tsx +1 -1
- package/src/ui/primitives/heading/heading.tsx +1 -1
- package/src/ui/primitives/kbd/kbd.tsx +2 -2
- package/src/ui/primitives/popover/popover.tsx +75 -5
- package/src/ui/primitives/popover/popoverCard.tsx +39 -45
- package/src/ui/primitives/select/select.tsx +3 -3
- package/src/ui/primitives/stack/stack.tsx +5 -10
- package/src/ui/primitives/text/text.tsx +1 -1
- package/src/ui/primitives/textInput/textInput.tsx +1 -1
- package/src/ui/primitives/tooltip/tooltip.tsx +3 -2
- package/src/css/aspects/minWidth/index.ts +0 -2
- package/src/css/aspects/minWidth/minWidth.style.ts +0 -13
- package/src/css/aspects/minWidth/minWidth.ts +0 -6
- package/src/css/aspects/minWidth/types.ts +0 -7
- package/src/css/primitives/stack/index.ts +0 -1
- package/src/css/primitives/stack/stack.style.ts +0 -9
- package/src/css/primitives/stack/stack.ts +0 -6
|
@@ -135,10 +135,6 @@ const createColorTheme = theme.createColorTheme, hexToRgb = theme.hexToRgb, hslT
|
|
|
135
135
|
visualDuration: 0.2,
|
|
136
136
|
bounce: 0.25
|
|
137
137
|
}
|
|
138
|
-
}, Z_OFFSETS = {
|
|
139
|
-
dialog: 600,
|
|
140
|
-
popover: 400,
|
|
141
|
-
tooltip: 200
|
|
142
138
|
};
|
|
143
139
|
function _isEnterToClickElement(element) {
|
|
144
140
|
return isHTMLAnchorElement(element) || isHTMLButtonElement(element);
|
|
@@ -362,15 +358,12 @@ function _temp$6() {
|
|
|
362
358
|
return !1;
|
|
363
359
|
}
|
|
364
360
|
const Box = react.forwardRef(function(props, ref) {
|
|
365
|
-
const $ = reactCompilerRuntime.c(
|
|
366
|
-
let align,
|
|
361
|
+
const $ = reactCompilerRuntime.c(112);
|
|
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;
|
|
367
363
|
$[0] !== props ? ({
|
|
368
364
|
align,
|
|
369
365
|
as: t0,
|
|
370
|
-
|
|
371
|
-
autoFlow,
|
|
372
|
-
autoRows,
|
|
373
|
-
border: t1,
|
|
366
|
+
border,
|
|
374
367
|
borderTop,
|
|
375
368
|
borderRight,
|
|
376
369
|
borderBottom,
|
|
@@ -381,7 +374,7 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
381
374
|
columnEnd,
|
|
382
375
|
columns,
|
|
383
376
|
direction,
|
|
384
|
-
display:
|
|
377
|
+
display: t1,
|
|
385
378
|
flex,
|
|
386
379
|
gap,
|
|
387
380
|
gapX,
|
|
@@ -393,7 +386,7 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
393
386
|
insetRight,
|
|
394
387
|
insetTop,
|
|
395
388
|
justify,
|
|
396
|
-
margin:
|
|
389
|
+
margin: t2,
|
|
397
390
|
marginX,
|
|
398
391
|
marginY,
|
|
399
392
|
marginTop,
|
|
@@ -401,9 +394,8 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
401
394
|
marginBottom,
|
|
402
395
|
marginLeft,
|
|
403
396
|
maxWidth,
|
|
404
|
-
minWidth: t4,
|
|
405
397
|
overflow,
|
|
406
|
-
padding:
|
|
398
|
+
padding: t3,
|
|
407
399
|
paddingX,
|
|
408
400
|
paddingY,
|
|
409
401
|
paddingTop,
|
|
@@ -418,18 +410,15 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
418
410
|
rows,
|
|
419
411
|
rowStart,
|
|
420
412
|
rowEnd,
|
|
421
|
-
sizing:
|
|
413
|
+
sizing: t4,
|
|
422
414
|
width,
|
|
423
415
|
wrap,
|
|
424
416
|
...restProps
|
|
425
|
-
} = props, $[0] = props, $[1] = align, $[2] =
|
|
426
|
-
const As = t0 === void 0 ? "div" : t0,
|
|
427
|
-
let
|
|
428
|
-
$[
|
|
417
|
+
} = props, $[0] = props, $[1] = align, $[2] = border, $[3] = borderBottom, $[4] = borderLeft, $[5] = borderRight, $[6] = borderTop, $[7] = className, $[8] = column, $[9] = columnEnd, $[10] = columnStart, $[11] = columns, $[12] = direction, $[13] = flex, $[14] = gap, $[15] = gapX, $[16] = gapY, $[17] = height, $[18] = inset, $[19] = insetBottom, $[20] = insetLeft, $[21] = insetRight, $[22] = insetTop, $[23] = justify, $[24] = marginBottom, $[25] = marginLeft, $[26] = marginRight, $[27] = marginTop, $[28] = marginX, $[29] = marginY, $[30] = maxWidth, $[31] = muted, $[32] = overflow, $[33] = paddingBottom, $[34] = paddingLeft, $[35] = paddingRight, $[36] = paddingTop, $[37] = paddingX, $[38] = paddingY, $[39] = pointerEvents, $[40] = position, $[41] = radius, $[42] = restProps, $[43] = row, $[44] = rowEnd, $[45] = rowStart, $[46] = rows, $[47] = t0, $[48] = t1, $[49] = t2, $[50] = t3, $[51] = t4, $[52] = width, $[53] = wrap) : (align = $[1], border = $[2], borderBottom = $[3], borderLeft = $[4], borderRight = $[5], borderTop = $[6], className = $[7], column = $[8], columnEnd = $[9], columnStart = $[10], columns = $[11], direction = $[12], flex = $[13], gap = $[14], gapX = $[15], gapY = $[16], height = $[17], inset = $[18], insetBottom = $[19], insetLeft = $[20], insetRight = $[21], insetTop = $[22], justify = $[23], marginBottom = $[24], marginLeft = $[25], marginRight = $[26], marginTop = $[27], marginX = $[28], marginY = $[29], maxWidth = $[30], muted = $[31], overflow = $[32], paddingBottom = $[33], paddingLeft = $[34], paddingRight = $[35], paddingTop = $[36], paddingX = $[37], paddingY = $[38], pointerEvents = $[39], position = $[40], radius = $[41], restProps = $[42], row = $[43], rowEnd = $[44], rowStart = $[45], rows = $[46], t0 = $[47], t1 = $[48], t2 = $[49], t3 = $[50], t4 = $[51], width = $[52], wrap = $[53]);
|
|
418
|
+
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
|
+
let t5;
|
|
420
|
+
$[54] !== align || $[55] !== border || $[56] !== borderBottom || $[57] !== borderLeft || $[58] !== borderRight || $[59] !== borderTop || $[60] !== className || $[61] !== column || $[62] !== columnEnd || $[63] !== columnStart || $[64] !== columns || $[65] !== direction || $[66] !== display || $[67] !== flex || $[68] !== gap || $[69] !== gapX || $[70] !== gapY || $[71] !== height || $[72] !== inset || $[73] !== insetBottom || $[74] !== insetLeft || $[75] !== insetRight || $[76] !== insetTop || $[77] !== justify || $[78] !== margin || $[79] !== marginBottom || $[80] !== marginLeft || $[81] !== marginRight || $[82] !== marginTop || $[83] !== marginX || $[84] !== marginY || $[85] !== maxWidth || $[86] !== muted || $[87] !== overflow || $[88] !== padding || $[89] !== paddingBottom || $[90] !== paddingLeft || $[91] !== paddingRight || $[92] !== paddingTop || $[93] !== paddingX || $[94] !== paddingY || $[95] !== pointerEvents || $[96] !== position || $[97] !== radius || $[98] !== row || $[99] !== rowEnd || $[100] !== rowStart || $[101] !== rows || $[102] !== sizing || $[103] !== width || $[104] !== wrap ? (t5 = css.composeClassNames(className, css.box({
|
|
429
421
|
align,
|
|
430
|
-
autoCols,
|
|
431
|
-
autoFlow,
|
|
432
|
-
autoRows,
|
|
433
422
|
border,
|
|
434
423
|
borderTop,
|
|
435
424
|
borderRight,
|
|
@@ -461,7 +450,6 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
461
450
|
marginBottom,
|
|
462
451
|
marginLeft,
|
|
463
452
|
maxWidth,
|
|
464
|
-
minWidth,
|
|
465
453
|
muted,
|
|
466
454
|
padding,
|
|
467
455
|
paddingX,
|
|
@@ -480,9 +468,9 @@ const Box = react.forwardRef(function(props, ref) {
|
|
|
480
468
|
sizing,
|
|
481
469
|
width,
|
|
482
470
|
wrap
|
|
483
|
-
})), $[
|
|
484
|
-
let
|
|
485
|
-
return $[
|
|
471
|
+
})), $[54] = align, $[55] = border, $[56] = borderBottom, $[57] = borderLeft, $[58] = borderRight, $[59] = borderTop, $[60] = className, $[61] = column, $[62] = columnEnd, $[63] = columnStart, $[64] = columns, $[65] = direction, $[66] = display, $[67] = flex, $[68] = gap, $[69] = gapX, $[70] = gapY, $[71] = height, $[72] = inset, $[73] = insetBottom, $[74] = insetLeft, $[75] = insetRight, $[76] = insetTop, $[77] = justify, $[78] = margin, $[79] = marginBottom, $[80] = marginLeft, $[81] = marginRight, $[82] = marginTop, $[83] = marginX, $[84] = marginY, $[85] = maxWidth, $[86] = muted, $[87] = overflow, $[88] = padding, $[89] = paddingBottom, $[90] = paddingLeft, $[91] = paddingRight, $[92] = paddingTop, $[93] = paddingX, $[94] = paddingY, $[95] = pointerEvents, $[96] = position, $[97] = radius, $[98] = row, $[99] = rowEnd, $[100] = rowStart, $[101] = rows, $[102] = sizing, $[103] = width, $[104] = wrap, $[105] = t5) : t5 = $[105];
|
|
472
|
+
let t6;
|
|
473
|
+
return $[106] !== As || $[107] !== props.children || $[108] !== ref || $[109] !== restProps || $[110] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(As, { "data-ui": "Box", ...restProps, className: t5, ref, children: props.children }), $[106] = As, $[107] = props.children, $[108] = ref, $[109] = restProps, $[110] = t5, $[111] = t6) : t6 = $[111], t6;
|
|
486
474
|
});
|
|
487
475
|
Box.displayName = "ForwardRef(Box)";
|
|
488
476
|
const Label = react.forwardRef(function(props, ref) {
|
|
@@ -662,7 +650,7 @@ const Text = react.forwardRef(function(props, ref) {
|
|
|
662
650
|
weight,
|
|
663
651
|
...restProps
|
|
664
652
|
} = 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]);
|
|
665
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
653
|
+
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 1 : t3;
|
|
666
654
|
let t4;
|
|
667
655
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.composeClassNames(className, css.text({
|
|
668
656
|
accent,
|
|
@@ -762,7 +750,7 @@ const Button = react.forwardRef(function(props, ref) {
|
|
|
762
750
|
paddingBottom,
|
|
763
751
|
paddingLeft,
|
|
764
752
|
paddingRight,
|
|
765
|
-
radius =
|
|
753
|
+
radius = 3,
|
|
766
754
|
selected,
|
|
767
755
|
space = props.gap ?? props.space ?? props.padding ?? 3,
|
|
768
756
|
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
@@ -785,56 +773,31 @@ const Button = react.forwardRef(function(props, ref) {
|
|
|
785
773
|
tone,
|
|
786
774
|
width
|
|
787
775
|
})), "data-disabled": loading || disabled ? "" : void 0, "data-selected": selected ? "" : void 0, disabled: !!(loading || disabled), href: disabled ? void 0 : href, ref, type, children: [
|
|
788
|
-
!!loading && /* @__PURE__ */ jsxRuntime.jsx(Box, { align
|
|
789
|
-
(IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
IconRightComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
814
|
-
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
815
|
-
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
816
|
-
] })
|
|
817
|
-
]
|
|
818
|
-
}
|
|
819
|
-
),
|
|
820
|
-
children && /* @__PURE__ */ jsxRuntime.jsx(
|
|
821
|
-
Box,
|
|
822
|
-
{
|
|
823
|
-
as: "span",
|
|
824
|
-
flex: 1,
|
|
825
|
-
gap,
|
|
826
|
-
gapX,
|
|
827
|
-
gapY,
|
|
828
|
-
padding,
|
|
829
|
-
paddingX,
|
|
830
|
-
paddingY,
|
|
831
|
-
paddingTop,
|
|
832
|
-
paddingBottom,
|
|
833
|
-
paddingLeft,
|
|
834
|
-
paddingRight,
|
|
835
|
-
children
|
|
836
|
-
}
|
|
837
|
-
)
|
|
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(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, justify, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children: [
|
|
778
|
+
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
779
|
+
react.isValidElement(IconComponent) && IconComponent,
|
|
780
|
+
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
781
|
+
] }),
|
|
782
|
+
text && /* @__PURE__ */ jsxRuntime.jsx(
|
|
783
|
+
Text,
|
|
784
|
+
{
|
|
785
|
+
align: textAlign,
|
|
786
|
+
as: "span",
|
|
787
|
+
flex: "none",
|
|
788
|
+
muted,
|
|
789
|
+
size: fontSize,
|
|
790
|
+
textOverflow,
|
|
791
|
+
weight: textWeight,
|
|
792
|
+
children: text
|
|
793
|
+
}
|
|
794
|
+
),
|
|
795
|
+
IconRightComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
|
|
796
|
+
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
797
|
+
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
798
|
+
] })
|
|
799
|
+
] }),
|
|
800
|
+
children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children })
|
|
838
801
|
] });
|
|
839
802
|
});
|
|
840
803
|
Button.displayName = "ForwardRef(Button)";
|
|
@@ -842,8 +805,8 @@ function useCard() {
|
|
|
842
805
|
return react.useContext(CardContext);
|
|
843
806
|
}
|
|
844
807
|
const Card = react.forwardRef(function(props, ref) {
|
|
845
|
-
const $ = reactCompilerRuntime.c(
|
|
846
|
-
let asProp, className, pressed, restProps, schemeProp, selected, shadow, style, t0, t1, t2, t3;
|
|
808
|
+
const $ = reactCompilerRuntime.c(48);
|
|
809
|
+
let asProp, className, pressed, restProps, schemeProp, selectable, selected, shadow, style, t0, t1, t2, t3;
|
|
847
810
|
$[0] !== props ? ({
|
|
848
811
|
__unstable_checkered: t0,
|
|
849
812
|
__unstable_focusRing: t1,
|
|
@@ -852,41 +815,48 @@ const Card = react.forwardRef(function(props, ref) {
|
|
|
852
815
|
pressed,
|
|
853
816
|
radius: t2,
|
|
854
817
|
scheme: schemeProp,
|
|
818
|
+
selectable,
|
|
855
819
|
selected,
|
|
856
820
|
shadow,
|
|
857
821
|
style,
|
|
858
822
|
tone: t3,
|
|
859
823
|
...restProps
|
|
860
|
-
} = props, $[0] = props, $[1] = asProp, $[2] = className, $[3] = pressed, $[4] = restProps, $[5] = schemeProp, $[6] =
|
|
861
|
-
const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "
|
|
824
|
+
} = 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 ? "inherit" : t3, as = ReactIs.isValidElementType(asProp) ? asProp : "div", parent = useCard(), t4 = parent?.tone ?? "default", t5 = parent?.scheme ?? "light";
|
|
862
826
|
let t6;
|
|
863
|
-
$[
|
|
827
|
+
$[14] !== t4 || $[15] !== t5 ? (t6 = {
|
|
864
828
|
tone: t4,
|
|
865
829
|
scheme: t5
|
|
866
|
-
}, $[
|
|
867
|
-
const context = t6, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t7 = scheme === context.scheme ? void 0 : scheme;
|
|
868
|
-
let
|
|
869
|
-
$[
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
830
|
+
}, $[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, t8 = tone === context.tone ? void 0 : tone;
|
|
832
|
+
let t9;
|
|
833
|
+
if ($[17] !== className || $[18] !== radius || $[19] !== selectable || $[20] !== shadow || $[21] !== t7 || $[22] !== t8) {
|
|
834
|
+
let t102;
|
|
835
|
+
$[24] !== radius || $[25] !== selectable ? (t102 = selectable && css._selectable({
|
|
836
|
+
radius
|
|
837
|
+
}), $[24] = radius, $[25] = selectable, $[26] = t102) : t102 = $[26], t9 = css.composeClassNames(className, css.card({
|
|
838
|
+
scheme: t7,
|
|
839
|
+
shadow,
|
|
840
|
+
tone: t8
|
|
841
|
+
}), t102), $[17] = className, $[18] = radius, $[19] = selectable, $[20] = shadow, $[21] = t7, $[22] = t8, $[23] = t9;
|
|
842
|
+
} else
|
|
843
|
+
t9 = $[23];
|
|
844
|
+
const t10 = checkered ? "" : void 0, t11 = focusRing ? "" : void 0, t12 = pressed ? "" : void 0, t13 = selected ? "" : void 0;
|
|
845
|
+
let t14;
|
|
846
|
+
$[27] !== as || $[28] !== radius || $[29] !== ref || $[30] !== restProps || $[31] !== style || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t9 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Card", ...restProps, as, className: t9, "data-checkered": t10, "data-focus-ring": t11, "data-pressed": t12, "data-selected": t13, radius, ref, style }), $[27] = as, $[28] = radius, $[29] = ref, $[30] = restProps, $[31] = style, $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13, $[36] = t9, $[37] = t14) : t14 = $[37];
|
|
847
|
+
let node = t14;
|
|
878
848
|
if (scheme === context.scheme && tone === context.tone)
|
|
879
849
|
return node;
|
|
880
|
-
const
|
|
881
|
-
let
|
|
882
|
-
if ($[
|
|
883
|
-
const
|
|
884
|
-
let
|
|
885
|
-
return $[
|
|
850
|
+
const t15 = parent?.compat_provider, t16 = tone ?? context.tone;
|
|
851
|
+
let t17;
|
|
852
|
+
if ($[38] !== node || $[39] !== scheme || $[40] !== t15 || $[41] !== t16 ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { compat_provider: t15, rendered: !0, scheme, tone: t16, children: node }), $[38] = node, $[39] = scheme, $[40] = t15, $[41] = t16, $[42] = t17) : t17 = $[42], node = t17, parent?.compat_provider) {
|
|
853
|
+
const t18 = tone ?? context.tone;
|
|
854
|
+
let t19;
|
|
855
|
+
return $[43] !== node || $[44] !== parent.compat_provider || $[45] !== scheme || $[46] !== t18 ? (t19 = react.createElement(parent.compat_provider, {
|
|
886
856
|
children: node,
|
|
887
857
|
scheme,
|
|
888
|
-
tone:
|
|
889
|
-
}), $[
|
|
858
|
+
tone: t18
|
|
859
|
+
}), $[43] = node, $[44] = parent.compat_provider, $[45] = scheme, $[46] = t18, $[47] = t19) : t19 = $[47], t19;
|
|
890
860
|
}
|
|
891
861
|
return node;
|
|
892
862
|
});
|
|
@@ -944,7 +914,7 @@ const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
|
|
|
944
914
|
weight,
|
|
945
915
|
...restProps
|
|
946
916
|
} = props, $[0] = props, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = weight) : (children = $[1], className = $[2], languageProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], weight = $[7]);
|
|
947
|
-
const As = t0 === void 0 ? "pre" : t0, size2 = t1 === void 0 ?
|
|
917
|
+
const As = t0 === void 0 ? "pre" : t0, size2 = t1 === void 0 ? 1 : t1, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
948
918
|
let t2;
|
|
949
919
|
$[8] !== className || $[9] !== size2 || $[10] !== weight ? (t2 = css.composeClassNames(className, css.code({
|
|
950
920
|
size: size2,
|
|
@@ -1020,7 +990,7 @@ const Heading = react.forwardRef(function(props, ref) {
|
|
|
1020
990
|
weight,
|
|
1021
991
|
...restProps
|
|
1022
992
|
} = 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]);
|
|
1023
|
-
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ?
|
|
993
|
+
const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 1 : t3;
|
|
1024
994
|
let t4;
|
|
1025
995
|
$[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = css.composeClassNames(className, css.heading({
|
|
1026
996
|
accent,
|
|
@@ -1075,13 +1045,13 @@ const KBD = react.forwardRef(function(props, ref) {
|
|
|
1075
1045
|
radius: t4,
|
|
1076
1046
|
...restProps
|
|
1077
1047
|
} = props, $[0] = props, $[1] = children, $[2] = className, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4) : (children = $[1], className = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8]);
|
|
1078
|
-
const as = t0 === void 0 ? "kbd" : t0, display = t1 === void 0 ? "inline-block" : t1, fontSize = t2 === void 0 ?
|
|
1048
|
+
const as = t0 === void 0 ? "kbd" : t0, display = t1 === void 0 ? "inline-block" : t1, fontSize = t2 === void 0 ? 1 : t2, padding = t3 === void 0 ? 1 : t3, radius = t4 === void 0 ? 2 : t4;
|
|
1079
1049
|
let t5;
|
|
1080
1050
|
$[9] !== className || $[10] !== radius ? (t5 = css.composeClassNames(className, css.kbd({
|
|
1081
1051
|
radius
|
|
1082
1052
|
})), $[9] = className, $[10] = radius, $[11] = t5) : t5 = $[11];
|
|
1083
1053
|
let t6;
|
|
1084
|
-
$[12] !== children || $[13] !== fontSize ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", muted: !0, size: fontSize,
|
|
1054
|
+
$[12] !== children || $[13] !== fontSize ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", muted: !0, size: fontSize, children }), $[12] = children, $[13] = fontSize, $[14] = t6) : t6 = $[14];
|
|
1085
1055
|
let t7;
|
|
1086
1056
|
return $[15] !== as || $[16] !== display || $[17] !== padding || $[18] !== ref || $[19] !== restProps || $[20] !== t5 || $[21] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "KBD", ...restProps, as, className: t5, display, muted: !0, padding, ref, children: t6 }), $[15] = as, $[16] = display, $[17] = padding, $[18] = ref, $[19] = restProps, $[20] = t5, $[21] = t6, $[22] = t7) : t7 = $[22], t7;
|
|
1087
1057
|
});
|
|
@@ -1688,7 +1658,7 @@ function size(options) {
|
|
|
1688
1658
|
};
|
|
1689
1659
|
}
|
|
1690
1660
|
const MotionCard$1 = framerMotion.motion.create(Card), PopoverCard = react.memo(react.forwardRef(function(props, ref) {
|
|
1691
|
-
const $ = reactCompilerRuntime.c(
|
|
1661
|
+
const $ = reactCompilerRuntime.c(68);
|
|
1692
1662
|
let animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, maxWidth, originX, originY, overflow, padding, placement, radius, referenceWidth, restProps, scheme, shadow, strategy, style, tone, xProp, yProp;
|
|
1693
1663
|
$[0] !== props ? ({
|
|
1694
1664
|
__unstable_margins: marginsProp,
|
|
@@ -1715,7 +1685,7 @@ const MotionCard$1 = framerMotion.motion.create(Card), PopoverCard = react.memo(
|
|
|
1715
1685
|
y: yProp,
|
|
1716
1686
|
...restProps
|
|
1717
1687
|
} = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = maxWidth, $[9] = originX, $[10] = originY, $[11] = overflow, $[12] = padding, $[13] = placement, $[14] = radius, $[15] = referenceWidth, $[16] = restProps, $[17] = scheme, $[18] = shadow, $[19] = strategy, $[20] = style, $[21] = tone, $[22] = xProp, $[23] = yProp) : (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], maxWidth = $[8], originX = $[9], originY = $[10], overflow = $[11], padding = $[12], placement = $[13], radius = $[14], referenceWidth = $[15], restProps = $[16], scheme = $[17], shadow = $[18], strategy = $[19], style = $[20], tone = $[21], xProp = $[22], yProp = $[23]);
|
|
1718
|
-
const
|
|
1688
|
+
const layer = useLayer();
|
|
1719
1689
|
let t0;
|
|
1720
1690
|
t0 = marginsProp || DEFAULT_POPOVER_MARGINS;
|
|
1721
1691
|
const margins = t0, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
|
|
@@ -1743,29 +1713,24 @@ const MotionCard$1 = framerMotion.motion.create(Card), PopoverCard = react.memo(
|
|
|
1743
1713
|
right: void 0,
|
|
1744
1714
|
bottom: void 0
|
|
1745
1715
|
}, $[34] = t6, $[35] = t7, $[36] = t8) : t8 = $[36], t5 = t8;
|
|
1746
|
-
const arrowStyle = t5, t9 =
|
|
1716
|
+
const arrowStyle = t5, t9 = restProps;
|
|
1717
|
+
let t10;
|
|
1718
|
+
$[37] !== animate ? (t10 = animate ? ["hidden", "initial"] : void 0, $[37] = animate, $[38] = t10) : t10 = $[38];
|
|
1747
1719
|
let t11;
|
|
1748
|
-
$[
|
|
1749
|
-
|
|
1720
|
+
$[39] !== animate ? (t11 = animate ? ["visible", "scaleIn"] : void 0, $[39] = animate, $[40] = t11) : t11 = $[40];
|
|
1721
|
+
let t12;
|
|
1722
|
+
$[41] !== animate ? (t12 = animate ? ["hidden", "scaleOut"] : void 0, $[41] = animate, $[42] = t12) : t12 = $[42];
|
|
1723
|
+
let t13;
|
|
1724
|
+
$[43] !== children || $[44] !== padding ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { direction: "column", flex: 1, padding, children }), $[43] = children, $[44] = padding, $[45] = t13) : t13 = $[45];
|
|
1750
1725
|
let t14;
|
|
1751
|
-
$[
|
|
1726
|
+
$[46] !== maxWidth || $[47] !== overflow || $[48] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t13 }), $[46] = maxWidth, $[47] = overflow, $[48] = t13, $[49] = t14) : t14 = $[49];
|
|
1752
1727
|
let t15;
|
|
1753
|
-
$[
|
|
1728
|
+
$[50] !== arrow || $[51] !== arrowRef || $[52] !== arrowStyle ? (t15 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[50] = arrow, $[51] = arrowRef, $[52] = arrowStyle, $[53] = t15) : t15 = $[53];
|
|
1754
1729
|
let t16;
|
|
1755
|
-
$[
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
$[47] !== maxWidth || $[48] !== overflow || $[49] !== t17 ? (t18 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t17 }), $[47] = maxWidth, $[48] = overflow, $[49] = t17, $[50] = t18) : t18 = $[50];
|
|
1760
|
-
let t19;
|
|
1761
|
-
$[51] !== arrow || $[52] !== arrowRef || $[53] !== arrowStyle ? (t19 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[51] = arrow, $[52] = arrowRef, $[53] = arrowStyle, $[54] = t19) : t19 = $[54];
|
|
1762
|
-
let t20;
|
|
1763
|
-
$[55] !== placement || $[56] !== radius || $[57] !== ref || $[58] !== rootStyle || $[59] !== scheme || $[60] !== shadow || $[61] !== t12 || $[62] !== t13 || $[63] !== t14 || $[64] !== t15 || $[65] !== t16 || $[66] !== t18 || $[67] !== t19 || $[68] !== tone ? (t20 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard$1, { className: t11, "data-ui": "Popover", ...t12, "data-context-tone": t13, "data-placement": placement, direction: "column", display: "flex", radius, ref, scheme, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t14, animate: t15, exit: t16, children: [
|
|
1764
|
-
t18,
|
|
1765
|
-
t19
|
|
1766
|
-
] }), $[55] = placement, $[56] = radius, $[57] = ref, $[58] = rootStyle, $[59] = scheme, $[60] = shadow, $[61] = t12, $[62] = t13, $[63] = t14, $[64] = t15, $[65] = t16, $[66] = t18, $[67] = t19, $[68] = tone, $[69] = t20) : t20 = $[69];
|
|
1767
|
-
let t21;
|
|
1768
|
-
return $[70] !== t10 || $[71] !== t20 || $[72] !== t9 ? (t21 = /* @__PURE__ */ jsxRuntime.jsx(CardProvider, { tone: t9, scheme: t10, children: t20 }), $[70] = t10, $[71] = t20, $[72] = t9, $[73] = t21) : t21 = $[73], t21;
|
|
1730
|
+
return $[54] !== placement || $[55] !== radius || $[56] !== ref || $[57] !== rootStyle || $[58] !== scheme || $[59] !== shadow || $[60] !== t10 || $[61] !== t11 || $[62] !== t12 || $[63] !== t14 || $[64] !== t15 || $[65] !== t9 || $[66] !== tone ? (t16 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard$1, { className: "popover-card", "data-ui": "Popover", ...t9, "data-placement": placement, direction: "column", display: "flex", radius, ref, scheme, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t10, animate: t11, exit: t12, children: [
|
|
1731
|
+
t14,
|
|
1732
|
+
t15
|
|
1733
|
+
] }), $[54] = placement, $[55] = radius, $[56] = ref, $[57] = rootStyle, $[58] = scheme, $[59] = shadow, $[60] = t10, $[61] = t11, $[62] = t12, $[63] = t14, $[64] = t15, $[65] = t9, $[66] = tone, $[67] = t16) : t16 = $[67], t16;
|
|
1769
1734
|
}));
|
|
1770
1735
|
PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
|
|
1771
1736
|
const ViewportOverlay = () => {
|
|
@@ -1785,7 +1750,6 @@ const ViewportOverlay = () => {
|
|
|
1785
1750
|
__unstable_margins: margins = DEFAULT_POPOVER_MARGINS,
|
|
1786
1751
|
animate: _animate = !1,
|
|
1787
1752
|
arrow: arrowProp = !1,
|
|
1788
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1789
1753
|
boundaryElement = boundaryElementContext.element,
|
|
1790
1754
|
children: childProp,
|
|
1791
1755
|
constrainSize = !1,
|
|
@@ -1811,7 +1775,7 @@ const ViewportOverlay = () => {
|
|
|
1811
1775
|
tone = "inherit",
|
|
1812
1776
|
width: widthProp = "auto",
|
|
1813
1777
|
// zOffset: zOffsetProp = layer.popover.zOffset,
|
|
1814
|
-
zOffset: zOffsetProp
|
|
1778
|
+
zOffset: zOffsetProp,
|
|
1815
1779
|
updateRef,
|
|
1816
1780
|
...restProps
|
|
1817
1781
|
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, zOffset = useArrayProp(zOffsetProp), ref = react.useRef(null), arrowRef = react.useRef(null), rootBoundary = "viewport";
|
|
@@ -1964,7 +1928,7 @@ const Select = react.forwardRef(function(props, forwardedRef) {
|
|
|
1964
1928
|
space: t4,
|
|
1965
1929
|
...restProps
|
|
1966
1930
|
} = 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]);
|
|
1967
|
-
const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ?
|
|
1931
|
+
const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 2 : t4, ref = react.useRef(null);
|
|
1968
1932
|
let t5;
|
|
1969
1933
|
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[12] = t5) : t5 = $[12], react.useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
|
|
1970
1934
|
const t6 = gap ?? space;
|
|
@@ -1998,20 +1962,17 @@ const Select = react.forwardRef(function(props, forwardedRef) {
|
|
|
1998
1962
|
});
|
|
1999
1963
|
Select.displayName = "ForwardRef(Select)";
|
|
2000
1964
|
const Stack = react.forwardRef(function(props, ref) {
|
|
2001
|
-
const $ = reactCompilerRuntime.c(
|
|
2002
|
-
let as,
|
|
1965
|
+
const $ = reactCompilerRuntime.c(10);
|
|
1966
|
+
let as, gap, restProps, space;
|
|
2003
1967
|
$[0] !== props ? ({
|
|
2004
1968
|
as,
|
|
2005
|
-
className,
|
|
2006
1969
|
gap,
|
|
2007
1970
|
space,
|
|
2008
1971
|
...restProps
|
|
2009
|
-
} = props, $[0] = props, $[1] = as, $[2] =
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
let t2;
|
|
2014
|
-
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;
|
|
1972
|
+
} = props, $[0] = props, $[1] = as, $[2] = gap, $[3] = restProps, $[4] = space) : (as = $[1], gap = $[2], restProps = $[3], space = $[4]);
|
|
1973
|
+
const t0 = gap ?? space;
|
|
1974
|
+
let t1;
|
|
1975
|
+
return $[5] !== as || $[6] !== ref || $[7] !== restProps || $[8] !== t0 ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "Stack", ...restProps, as, direction: "column", display: "flex", gap: t0, ref }), $[5] = as, $[6] = ref, $[7] = restProps, $[8] = t0, $[9] = t1) : t1 = $[9], t1;
|
|
2015
1976
|
});
|
|
2016
1977
|
Stack.displayName = "ForwardRef(Stack)";
|
|
2017
1978
|
const Switch = react.forwardRef(function(props, forwardedRef) {
|
|
@@ -2127,7 +2088,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
2127
2088
|
__unstable_disableFocusRing = t72, t0 = t82, className = t92, clearButton = t102, t1 = t112, t2 = t122, gap = t132, IconComponent = t142, IconRightComponent = t152, onClear = t162, t3 = t172, prefix = t182, t4 = t192, readOnly = t202, t5 = t212, suffix = t222, customValidity = t232, t6 = t242, width = t252, restProps = t262, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = gap, $[8] = onClear, $[9] = prefix, $[10] = readOnly, $[11] = restProps, $[12] = suffix, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = width;
|
|
2128
2089
|
} else
|
|
2129
2090
|
IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], gap = $[7], onClear = $[8], prefix = $[9], readOnly = $[10], restProps = $[11], suffix = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], t5 = $[18], t6 = $[19], width = $[20];
|
|
2130
|
-
const border = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize = t2 === void 0 ?
|
|
2091
|
+
const border = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize = t2 === void 0 ? 1 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = react.useRef(null), paddingArray = useArrayProp(padding), withClearButton = !!clearButton;
|
|
2131
2092
|
let t7;
|
|
2132
2093
|
$[21] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[21] = t7) : t7 = $[21], react.useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
|
|
2133
2094
|
const handleClearMouseDown = _temp;
|
|
@@ -2328,6 +2289,8 @@ function useTooltipDelayGroup() {
|
|
|
2328
2289
|
}
|
|
2329
2290
|
const Tooltip = react.forwardRef(function(props, forwardedRef) {
|
|
2330
2291
|
const boundaryElementContext = useBoundaryElement(), {
|
|
2292
|
+
layer
|
|
2293
|
+
} = useTheme_v2(), {
|
|
2331
2294
|
animate: _animate = !1,
|
|
2332
2295
|
arrow: arrowProp = !1,
|
|
2333
2296
|
boundaryElement = boundaryElementContext?.element,
|
|
@@ -2343,7 +2306,7 @@ const Tooltip = react.forwardRef(function(props, forwardedRef) {
|
|
|
2343
2306
|
radius = 3,
|
|
2344
2307
|
scheme,
|
|
2345
2308
|
shadow = 2,
|
|
2346
|
-
zOffset =
|
|
2309
|
+
zOffset = layer.tooltip.zOffset,
|
|
2347
2310
|
tone,
|
|
2348
2311
|
...restProps
|
|
2349
2312
|
} = props, animate = usePrefersReducedMotion() ? !1 : _animate, fallbackPlacements = useArrayProp(fallbackPlacementsProp), ref = react.useRef(null), [referenceElement, setReferenceElement] = react.useState(null), arrowRef = react.useRef(null), rootBoundary = "viewport", [tooltipMaxWidth, setTooltipMaxWidth] = react.useState(0);
|
|
@@ -3093,7 +3056,6 @@ exports.Tooltip = Tooltip;
|
|
|
3093
3056
|
exports.TooltipDelayGroupContext = TooltipDelayGroupContext;
|
|
3094
3057
|
exports.TooltipDelayGroupProvider = TooltipDelayGroupProvider;
|
|
3095
3058
|
exports.VirtualList = VirtualList;
|
|
3096
|
-
exports.Z_OFFSETS = Z_OFFSETS;
|
|
3097
3059
|
exports._ResizeObserver = _ResizeObserver;
|
|
3098
3060
|
exports._elementSizeObserver = _elementSizeObserver;
|
|
3099
3061
|
exports._getArrayProp = _getArrayProp;
|