@sanity/ui 3.1.14 → 3.3.0
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 +323 -292
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +323 -292
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +195 -76
- package/dist/_visual-editing.d.ts +195 -76
- package/dist/index.d.mts +308 -140
- package/dist/index.d.ts +308 -140
- package/dist/index.js +97 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +97 -93
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +10 -4
- package/dist/theme.d.ts +10 -4
- package/package.json +1 -1
- package/src/core/components/autocomplete/autocomplete.tsx +1 -1
- package/src/core/components/autocomplete/types.ts +2 -2
- package/src/core/components/breadcrumbs/breadcrumbs.test.tsx +51 -0
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +7 -3
- package/src/core/components/hotkeys/hotkeys.test.tsx +42 -0
- package/src/core/components/hotkeys/hotkeys.tsx +7 -3
- package/src/core/components/menu/__workshop__/asComponent.tsx +1 -1
- package/src/core/components/menu/menu.spacing.test.tsx +63 -0
- package/src/core/components/menu/menu.tsx +8 -2
- package/src/core/components/menu/menuDivider.ts +16 -5
- package/src/core/components/menu/menuGroup.spacing.test.tsx +63 -0
- package/src/core/components/menu/menuGroup.tsx +22 -8
- package/src/core/components/menu/menuItem.spacing.test.tsx +59 -0
- package/src/core/components/menu/menuItem.tsx +25 -8
- package/src/core/components/skeleton/skeleton.tsx +2 -2
- package/src/core/components/tab/tabList.test.tsx +48 -0
- package/src/core/components/tab/tabList.tsx +2 -2
- package/src/core/components/tab/tabPanel.tsx +2 -2
- package/src/core/components/toast/styles.ts +2 -2
- package/src/core/components/tree/__workshop__/basic.perf.ts +1 -1
- package/src/core/components/tree/__workshop__/tabFromElement.tsx +1 -1
- package/src/core/components/tree/tree.test.tsx +55 -0
- package/src/core/components/tree/tree.tsx +19 -10
- package/src/core/components/tree/treeGroup.tsx +3 -3
- package/src/core/components/tree/treeItem.test.tsx +65 -0
- package/src/core/components/tree/treeItem.tsx +11 -4
- package/src/core/components/tree/types.ts +4 -0
- package/src/core/primitives/avatar/avatar.tsx +19 -11
- package/src/core/primitives/badge/badge.tsx +20 -12
- package/src/core/primitives/box/__workshop__/asComponent.tsx +31 -0
- package/src/core/primitives/box/__workshop__/index.ts +5 -0
- package/src/core/primitives/box/box.test.tsx +142 -0
- package/src/core/primitives/box/box.tsx +41 -18
- package/src/core/primitives/button/__workshop__/disabled.tsx +2 -2
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
- package/src/core/primitives/button/__workshop__/uploadButton.tsx +1 -1
- package/src/core/primitives/button/button.test.tsx +41 -3
- package/src/core/primitives/button/button.tsx +36 -12
- package/src/core/primitives/card/__workshop__/asComponent.tsx +1 -1
- package/src/core/primitives/card/card.tsx +24 -13
- package/src/core/primitives/code/code.tsx +16 -7
- package/src/core/primitives/container/container.tsx +23 -10
- package/src/core/primitives/flex/flex.tsx +21 -11
- package/src/core/primitives/grid/grid.test.tsx +80 -0
- package/src/core/primitives/grid/grid.tsx +39 -13
- package/src/core/primitives/heading/heading.tsx +19 -11
- package/src/core/primitives/inline/inline.test.tsx +51 -0
- package/src/core/primitives/inline/inline.tsx +28 -12
- package/src/core/primitives/kbd/kbd.tsx +19 -11
- package/src/core/primitives/label/label.tsx +19 -11
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +1 -1
- package/src/core/primitives/select/select.test.tsx +52 -0
- package/src/core/primitives/select/select.tsx +8 -2
- package/src/core/primitives/stack/stack.test.tsx +57 -0
- package/src/core/primitives/stack/stack.tsx +27 -13
- package/src/core/primitives/text/text.tsx +19 -11
- package/src/core/primitives/textInput/textInput.test.tsx +48 -0
- package/src/core/primitives/textInput/textInput.tsx +9 -4
- package/src/core/primitives/types.ts +33 -0
- package/src/core/types/component.ts +32 -0
- package/src/core/types/index.ts +1 -0
- package/src/core/utils/virtualList/virtualList.tsx +2 -2
- package/src/theme/system/css.ts +10 -4
|
@@ -981,7 +981,7 @@ function labelBaseStyle(props) {
|
|
|
981
981
|
const StyledLabel = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
982
982
|
displayName: "StyledLabel",
|
|
983
983
|
componentId: "sc-1luap7z-0"
|
|
984
|
-
})(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle),
|
|
984
|
+
})(responsiveLabelFont, responsiveTextAlignStyle, labelBaseStyle), LabelComponent = react.forwardRef(function(props, ref) {
|
|
985
985
|
const $ = reactCompilerRuntime.c(26);
|
|
986
986
|
let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
|
|
987
987
|
$[0] !== props ? ({
|
|
@@ -1010,8 +1010,8 @@ const StyledLabel = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1010
1010
|
let t4;
|
|
1011
1011
|
return $[17] !== accent || $[18] !== children || $[19] !== muted || $[20] !== ref || $[21] !== restProps || $[22] !== t2 || $[23] !== t3 || $[24] !== weight ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(StyledLabel, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[17] = accent, $[18] = children, $[19] = muted, $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3, $[24] = weight, $[25] = t4) : t4 = $[25], t4;
|
|
1012
1012
|
});
|
|
1013
|
-
|
|
1014
|
-
const avatarStyle = {
|
|
1013
|
+
LabelComponent.displayName = "ForwardRef(Label)";
|
|
1014
|
+
const Label = LabelComponent, avatarStyle = {
|
|
1015
1015
|
root: avatarRootStyle,
|
|
1016
1016
|
arrow: avatarArrowStyle,
|
|
1017
1017
|
bgStroke: avatarBgStrokeStyle,
|
|
@@ -1177,7 +1177,7 @@ const StyledAvatar = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1177
1177
|
}), AvatarImage = /* @__PURE__ */ styledComponents.styled.svg.withConfig({
|
|
1178
1178
|
displayName: "AvatarImage",
|
|
1179
1179
|
componentId: "sc-1rj7kl0-6"
|
|
1180
|
-
})(avatarStyle.image),
|
|
1180
|
+
})(avatarStyle.image), AvatarComponent = react.forwardRef(function(props, ref) {
|
|
1181
1181
|
const $ = reactCompilerRuntime.c(46);
|
|
1182
1182
|
let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
|
|
1183
1183
|
$[0] !== props ? ({
|
|
@@ -1230,7 +1230,8 @@ const StyledAvatar = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1230
1230
|
t12
|
|
1231
1231
|
] }), $[32] = T0, $[33] = arrowPosition, $[34] = as, $[35] = color, $[36] = ref, $[37] = restProps, $[38] = size2, $[39] = status, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t8, $[44] = title, $[45] = t13) : t13 = $[45], t13;
|
|
1232
1232
|
});
|
|
1233
|
-
|
|
1233
|
+
AvatarComponent.displayName = "ForwardRef(Avatar)";
|
|
1234
|
+
const Avatar = AvatarComponent;
|
|
1234
1235
|
function _temp$a(s) {
|
|
1235
1236
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
1236
1237
|
}
|
|
@@ -1358,14 +1359,17 @@ AvatarStack.displayName = "ForwardRef(AvatarStack)";
|
|
|
1358
1359
|
const StyledBox = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1359
1360
|
displayName: "StyledBox",
|
|
1360
1361
|
componentId: "sc-1hhky9f-0"
|
|
1361
|
-
})(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle),
|
|
1362
|
-
const $ = reactCompilerRuntime.c(
|
|
1363
|
-
let
|
|
1362
|
+
})(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), BoxComponent = react.forwardRef(function(props, ref) {
|
|
1363
|
+
const $ = reactCompilerRuntime.c(115);
|
|
1364
|
+
let deprecated_column, deprecated_columnEnd, deprecated_columnStart, deprecated_row, deprecated_rowEnd, deprecated_rowStart, flex, gridColumn, gridColumnEnd, gridColumnStart, gridRow, gridRowEnd, gridRowStart, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, sizing, t0, t1, t2, t3;
|
|
1364
1365
|
$[0] !== props ? ({
|
|
1365
1366
|
as: t0,
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1367
|
+
gridColumn,
|
|
1368
|
+
column: deprecated_column,
|
|
1369
|
+
gridColumnStart,
|
|
1370
|
+
columnStart: deprecated_columnStart,
|
|
1371
|
+
gridColumnEnd,
|
|
1372
|
+
columnEnd: deprecated_columnEnd,
|
|
1369
1373
|
display: t1,
|
|
1370
1374
|
flex,
|
|
1371
1375
|
height,
|
|
@@ -1384,67 +1388,71 @@ const StyledBox = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1384
1388
|
paddingRight,
|
|
1385
1389
|
paddingBottom,
|
|
1386
1390
|
paddingLeft,
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1391
|
+
gridRow,
|
|
1392
|
+
row: deprecated_row,
|
|
1393
|
+
gridRowStart,
|
|
1394
|
+
rowStart: deprecated_rowStart,
|
|
1395
|
+
gridRowEnd,
|
|
1396
|
+
rowEnd: deprecated_rowEnd,
|
|
1390
1397
|
sizing,
|
|
1391
1398
|
...restProps
|
|
1392
|
-
} = props, $[0] = props, $[1] =
|
|
1393
|
-
const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, t4 = typeof asProp == "string" ? asProp : void 0;
|
|
1399
|
+
} = props, $[0] = props, $[1] = deprecated_column, $[2] = deprecated_columnEnd, $[3] = deprecated_columnStart, $[4] = deprecated_row, $[5] = deprecated_rowEnd, $[6] = deprecated_rowStart, $[7] = flex, $[8] = gridColumn, $[9] = gridColumnEnd, $[10] = gridColumnStart, $[11] = gridRow, $[12] = gridRowEnd, $[13] = gridRowStart, $[14] = height, $[15] = marginBottom, $[16] = marginLeft, $[17] = marginRight, $[18] = marginTop, $[19] = marginX, $[20] = marginY, $[21] = overflow, $[22] = paddingBottom, $[23] = paddingLeft, $[24] = paddingRight, $[25] = paddingTop, $[26] = paddingX, $[27] = paddingY, $[28] = restProps, $[29] = sizing, $[30] = t0, $[31] = t1, $[32] = t2, $[33] = t3) : (deprecated_column = $[1], deprecated_columnEnd = $[2], deprecated_columnStart = $[3], deprecated_row = $[4], deprecated_rowEnd = $[5], deprecated_rowStart = $[6], flex = $[7], gridColumn = $[8], gridColumnEnd = $[9], gridColumnStart = $[10], gridRow = $[11], gridRowEnd = $[12], gridRowStart = $[13], height = $[14], marginBottom = $[15], marginLeft = $[16], marginRight = $[17], marginTop = $[18], marginX = $[19], marginY = $[20], overflow = $[21], paddingBottom = $[22], paddingLeft = $[23], paddingRight = $[24], paddingTop = $[25], paddingX = $[26], paddingY = $[27], restProps = $[28], sizing = $[29], t0 = $[30], t1 = $[31], t2 = $[32], t3 = $[33]);
|
|
1400
|
+
const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, column = gridColumn === void 0 ? deprecated_column : gridColumn, columnStart = gridColumnStart === void 0 ? deprecated_columnStart : gridColumnStart, columnEnd = gridColumnEnd === void 0 ? deprecated_columnEnd : gridColumnEnd, row = gridRow === void 0 ? deprecated_row : gridRow, rowStart = gridRowStart === void 0 ? deprecated_rowStart : gridRowStart, rowEnd = gridRowEnd === void 0 ? deprecated_rowEnd : gridRowEnd, t4 = typeof asProp == "string" ? asProp : void 0;
|
|
1394
1401
|
let t5;
|
|
1395
|
-
$[
|
|
1402
|
+
$[34] !== column ? (t5 = _getArrayProp(column), $[34] = column, $[35] = t5) : t5 = $[35];
|
|
1396
1403
|
let t6;
|
|
1397
|
-
$[
|
|
1404
|
+
$[36] !== columnStart ? (t6 = _getArrayProp(columnStart), $[36] = columnStart, $[37] = t6) : t6 = $[37];
|
|
1398
1405
|
let t7;
|
|
1399
|
-
$[
|
|
1406
|
+
$[38] !== columnEnd ? (t7 = _getArrayProp(columnEnd), $[38] = columnEnd, $[39] = t7) : t7 = $[39];
|
|
1400
1407
|
let t8;
|
|
1401
|
-
$[
|
|
1408
|
+
$[40] !== display ? (t8 = _getArrayProp(display), $[40] = display, $[41] = t8) : t8 = $[41];
|
|
1402
1409
|
let t9;
|
|
1403
|
-
$[
|
|
1410
|
+
$[42] !== flex ? (t9 = _getArrayProp(flex), $[42] = flex, $[43] = t9) : t9 = $[43];
|
|
1404
1411
|
let t10;
|
|
1405
|
-
$[
|
|
1412
|
+
$[44] !== height ? (t10 = _getArrayProp(height), $[44] = height, $[45] = t10) : t10 = $[45];
|
|
1406
1413
|
let t11;
|
|
1407
|
-
$[
|
|
1414
|
+
$[46] !== margin ? (t11 = _getArrayProp(margin), $[46] = margin, $[47] = t11) : t11 = $[47];
|
|
1408
1415
|
let t12;
|
|
1409
|
-
$[
|
|
1416
|
+
$[48] !== marginX ? (t12 = _getArrayProp(marginX), $[48] = marginX, $[49] = t12) : t12 = $[49];
|
|
1410
1417
|
let t13;
|
|
1411
|
-
$[
|
|
1418
|
+
$[50] !== marginY ? (t13 = _getArrayProp(marginY), $[50] = marginY, $[51] = t13) : t13 = $[51];
|
|
1412
1419
|
let t14;
|
|
1413
|
-
$[
|
|
1420
|
+
$[52] !== marginTop ? (t14 = _getArrayProp(marginTop), $[52] = marginTop, $[53] = t14) : t14 = $[53];
|
|
1414
1421
|
let t15;
|
|
1415
|
-
$[
|
|
1422
|
+
$[54] !== marginRight ? (t15 = _getArrayProp(marginRight), $[54] = marginRight, $[55] = t15) : t15 = $[55];
|
|
1416
1423
|
let t16;
|
|
1417
|
-
$[
|
|
1424
|
+
$[56] !== marginBottom ? (t16 = _getArrayProp(marginBottom), $[56] = marginBottom, $[57] = t16) : t16 = $[57];
|
|
1418
1425
|
let t17;
|
|
1419
|
-
$[
|
|
1426
|
+
$[58] !== marginLeft ? (t17 = _getArrayProp(marginLeft), $[58] = marginLeft, $[59] = t17) : t17 = $[59];
|
|
1420
1427
|
let t18;
|
|
1421
|
-
$[
|
|
1428
|
+
$[60] !== overflow ? (t18 = _getArrayProp(overflow), $[60] = overflow, $[61] = t18) : t18 = $[61];
|
|
1422
1429
|
let t19;
|
|
1423
|
-
$[
|
|
1430
|
+
$[62] !== padding ? (t19 = _getArrayProp(padding), $[62] = padding, $[63] = t19) : t19 = $[63];
|
|
1424
1431
|
let t20;
|
|
1425
|
-
$[
|
|
1432
|
+
$[64] !== paddingX ? (t20 = _getArrayProp(paddingX), $[64] = paddingX, $[65] = t20) : t20 = $[65];
|
|
1426
1433
|
let t21;
|
|
1427
|
-
$[
|
|
1434
|
+
$[66] !== paddingY ? (t21 = _getArrayProp(paddingY), $[66] = paddingY, $[67] = t21) : t21 = $[67];
|
|
1428
1435
|
let t22;
|
|
1429
|
-
$[
|
|
1436
|
+
$[68] !== paddingTop ? (t22 = _getArrayProp(paddingTop), $[68] = paddingTop, $[69] = t22) : t22 = $[69];
|
|
1430
1437
|
let t23;
|
|
1431
|
-
$[
|
|
1438
|
+
$[70] !== paddingRight ? (t23 = _getArrayProp(paddingRight), $[70] = paddingRight, $[71] = t23) : t23 = $[71];
|
|
1432
1439
|
let t24;
|
|
1433
|
-
$[
|
|
1440
|
+
$[72] !== paddingBottom ? (t24 = _getArrayProp(paddingBottom), $[72] = paddingBottom, $[73] = t24) : t24 = $[73];
|
|
1434
1441
|
let t25;
|
|
1435
|
-
$[
|
|
1442
|
+
$[74] !== paddingLeft ? (t25 = _getArrayProp(paddingLeft), $[74] = paddingLeft, $[75] = t25) : t25 = $[75];
|
|
1436
1443
|
let t26;
|
|
1437
|
-
$[
|
|
1444
|
+
$[76] !== row ? (t26 = _getArrayProp(row), $[76] = row, $[77] = t26) : t26 = $[77];
|
|
1438
1445
|
let t27;
|
|
1439
|
-
$[
|
|
1446
|
+
$[78] !== rowStart ? (t27 = _getArrayProp(rowStart), $[78] = rowStart, $[79] = t27) : t27 = $[79];
|
|
1440
1447
|
let t28;
|
|
1441
|
-
$[
|
|
1448
|
+
$[80] !== rowEnd ? (t28 = _getArrayProp(rowEnd), $[80] = rowEnd, $[81] = t28) : t28 = $[81];
|
|
1442
1449
|
let t29;
|
|
1443
|
-
$[
|
|
1450
|
+
$[82] !== sizing ? (t29 = _getArrayProp(sizing), $[82] = sizing, $[83] = t29) : t29 = $[83];
|
|
1444
1451
|
let t30;
|
|
1445
|
-
return $[
|
|
1452
|
+
return $[84] !== asProp || $[85] !== props.children || $[86] !== ref || $[87] !== restProps || $[88] !== t10 || $[89] !== t11 || $[90] !== t12 || $[91] !== t13 || $[92] !== t14 || $[93] !== t15 || $[94] !== t16 || $[95] !== t17 || $[96] !== t18 || $[97] !== t19 || $[98] !== t20 || $[99] !== t21 || $[100] !== t22 || $[101] !== t23 || $[102] !== t24 || $[103] !== t25 || $[104] !== t26 || $[105] !== t27 || $[106] !== t28 || $[107] !== t29 || $[108] !== t4 || $[109] !== t5 || $[110] !== t6 || $[111] !== t7 || $[112] !== t8 || $[113] !== t9 ? (t30 = /* @__PURE__ */ jsxRuntime.jsx(StyledBox, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[84] = asProp, $[85] = props.children, $[86] = ref, $[87] = restProps, $[88] = t10, $[89] = t11, $[90] = t12, $[91] = t13, $[92] = t14, $[93] = t15, $[94] = t16, $[95] = t17, $[96] = t18, $[97] = t19, $[98] = t20, $[99] = t21, $[100] = t22, $[101] = t23, $[102] = t24, $[103] = t25, $[104] = t26, $[105] = t27, $[106] = t28, $[107] = t29, $[108] = t4, $[109] = t5, $[110] = t6, $[111] = t7, $[112] = t8, $[113] = t9, $[114] = t30) : t30 = $[114], t30;
|
|
1446
1453
|
});
|
|
1447
|
-
|
|
1454
|
+
BoxComponent.displayName = "ForwardRef(Box)";
|
|
1455
|
+
const Box = BoxComponent;
|
|
1448
1456
|
function textBaseStyle(props) {
|
|
1449
1457
|
const {
|
|
1450
1458
|
$accent,
|
|
@@ -1516,7 +1524,7 @@ function textBaseStyle(props) {
|
|
|
1516
1524
|
const StyledText = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
1517
1525
|
displayName: "StyledText",
|
|
1518
1526
|
componentId: "sc-11ov82j-0"
|
|
1519
|
-
})(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle),
|
|
1527
|
+
})(responsiveTextFont, responsiveTextAlignStyle, textBaseStyle), TextComponent = react.forwardRef(function(props, ref) {
|
|
1520
1528
|
const $ = reactCompilerRuntime.c(26);
|
|
1521
1529
|
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
1522
1530
|
$[0] !== props ? ({
|
|
@@ -1544,7 +1552,8 @@ const StyledText = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
1544
1552
|
let t6;
|
|
1545
1553
|
return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledText, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
|
|
1546
1554
|
});
|
|
1547
|
-
|
|
1555
|
+
TextComponent.displayName = "ForwardRef(Text)";
|
|
1556
|
+
const Text = TextComponent;
|
|
1548
1557
|
function badgeStyle(props) {
|
|
1549
1558
|
const {
|
|
1550
1559
|
$tone
|
|
@@ -1563,7 +1572,7 @@ function badgeStyle(props) {
|
|
|
1563
1572
|
const StyledBadge = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
1564
1573
|
displayName: "StyledBadge",
|
|
1565
1574
|
componentId: "sc-5u140l-0"
|
|
1566
|
-
})(responsiveRadiusStyle, badgeStyle),
|
|
1575
|
+
})(responsiveRadiusStyle, badgeStyle), BadgeComponent = react.forwardRef(function(props, ref) {
|
|
1567
1576
|
const $ = reactCompilerRuntime.c(21);
|
|
1568
1577
|
let children, restProps, t0, t1, t2, t3;
|
|
1569
1578
|
if ($[0] !== props) {
|
|
@@ -1589,11 +1598,11 @@ const StyledBadge = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
|
1589
1598
|
let t7;
|
|
1590
1599
|
return $[14] !== ref || $[15] !== restProps || $[16] !== t4 || $[17] !== t5 || $[18] !== t6 || $[19] !== tone ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(StyledBadge, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[14] = ref, $[15] = restProps, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = tone, $[20] = t7) : t7 = $[20], t7;
|
|
1591
1600
|
});
|
|
1592
|
-
|
|
1593
|
-
const StyledFlex = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
1601
|
+
BadgeComponent.displayName = "ForwardRef(Badge)";
|
|
1602
|
+
const Badge = BadgeComponent, StyledFlex = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
1594
1603
|
displayName: "StyledFlex",
|
|
1595
1604
|
componentId: "sc-oxesg3-0"
|
|
1596
|
-
})(flexItemStyle, responsiveFlexStyle),
|
|
1605
|
+
})(flexItemStyle, responsiveFlexStyle), FlexComponent = react.forwardRef(function(props, ref) {
|
|
1597
1606
|
const $ = reactCompilerRuntime.c(27);
|
|
1598
1607
|
let align, as, gap, justify, restProps, t0, wrap;
|
|
1599
1608
|
$[0] !== props ? ({
|
|
@@ -1619,8 +1628,8 @@ const StyledFlex = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
|
1619
1628
|
let t6;
|
|
1620
1629
|
return $[18] !== as || $[19] !== ref || $[20] !== restProps || $[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledFlex, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[18] = as, $[19] = ref, $[20] = restProps, $[21] = t1, $[22] = t2, $[23] = t3, $[24] = t4, $[25] = t5, $[26] = t6) : t6 = $[26], t6;
|
|
1621
1630
|
});
|
|
1622
|
-
|
|
1623
|
-
const rotate = styledComponents.keyframes`
|
|
1631
|
+
FlexComponent.displayName = "ForwardRef(Flex)";
|
|
1632
|
+
const Flex = FlexComponent, rotate = styledComponents.keyframes`
|
|
1624
1633
|
from {
|
|
1625
1634
|
transform: rotate(0deg);
|
|
1626
1635
|
}
|
|
@@ -1813,9 +1822,9 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1813
1822
|
})(responsiveRadiusStyle, buttonBaseStyles, buttonColorStyles), LoadingBox = styledComponents.styled.div.withConfig({
|
|
1814
1823
|
displayName: "LoadingBox",
|
|
1815
1824
|
componentId: "sc-aaekt4-1"
|
|
1816
|
-
})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`,
|
|
1817
|
-
const $ = reactCompilerRuntime.c(
|
|
1818
|
-
let IconComponent, IconRightComponent, children, disabled, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
|
|
1825
|
+
})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`, ButtonComponent = react.forwardRef(function(props, ref) {
|
|
1826
|
+
const $ = reactCompilerRuntime.c(87);
|
|
1827
|
+
let IconComponent, IconRightComponent, children, disabled, gap, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, textWeight, width;
|
|
1819
1828
|
$[0] !== props ? ({
|
|
1820
1829
|
children,
|
|
1821
1830
|
disabled,
|
|
@@ -1834,6 +1843,7 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1834
1843
|
paddingRight: paddingRightProp,
|
|
1835
1844
|
radius: t4,
|
|
1836
1845
|
selected,
|
|
1846
|
+
gap,
|
|
1837
1847
|
space: t5,
|
|
1838
1848
|
text,
|
|
1839
1849
|
textAlign,
|
|
@@ -1843,42 +1853,42 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1843
1853
|
muted: t8,
|
|
1844
1854
|
width,
|
|
1845
1855
|
...restProps
|
|
1846
|
-
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] =
|
|
1847
|
-
const fontSize2 = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4,
|
|
1856
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = loading, $[7] = paddingBottomProp, $[8] = paddingLeftProp, $[9] = paddingRightProp, $[10] = paddingTopProp, $[11] = paddingXProp, $[12] = paddingYProp, $[13] = restProps, $[14] = selected, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = text, $[25] = textAlign, $[26] = textWeight, $[27] = width) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], loading = $[6], paddingBottomProp = $[7], paddingLeftProp = $[8], paddingRightProp = $[9], paddingTopProp = $[10], paddingXProp = $[11], paddingYProp = $[12], restProps = $[13], selected = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21], t7 = $[22], t8 = $[23], text = $[24], textAlign = $[25], textWeight = $[26], width = $[27]);
|
|
1857
|
+
const fontSize2 = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 === void 0 ? !1 : t8, {
|
|
1848
1858
|
button
|
|
1849
1859
|
} = useTheme_v2();
|
|
1850
1860
|
let t9;
|
|
1851
|
-
$[
|
|
1861
|
+
$[28] !== justifyProp ? (t9 = _getArrayProp(justifyProp), $[28] = justifyProp, $[29] = t9) : t9 = $[29];
|
|
1852
1862
|
const justify = t9;
|
|
1853
1863
|
let t10;
|
|
1854
|
-
$[
|
|
1864
|
+
$[30] !== paddingProp ? (t10 = _getArrayProp(paddingProp), $[30] = paddingProp, $[31] = t10) : t10 = $[31];
|
|
1855
1865
|
const padding = t10;
|
|
1856
1866
|
let t11;
|
|
1857
|
-
$[
|
|
1867
|
+
$[32] !== paddingXProp ? (t11 = _getArrayProp(paddingXProp), $[32] = paddingXProp, $[33] = t11) : t11 = $[33];
|
|
1858
1868
|
const paddingX = t11;
|
|
1859
1869
|
let t12;
|
|
1860
|
-
$[
|
|
1870
|
+
$[34] !== paddingYProp ? (t12 = _getArrayProp(paddingYProp), $[34] = paddingYProp, $[35] = t12) : t12 = $[35];
|
|
1861
1871
|
const paddingY = t12;
|
|
1862
1872
|
let t13;
|
|
1863
|
-
$[
|
|
1873
|
+
$[36] !== paddingTopProp ? (t13 = _getArrayProp(paddingTopProp), $[36] = paddingTopProp, $[37] = t13) : t13 = $[37];
|
|
1864
1874
|
const paddingTop = t13;
|
|
1865
1875
|
let t14;
|
|
1866
|
-
$[
|
|
1876
|
+
$[38] !== paddingBottomProp ? (t14 = _getArrayProp(paddingBottomProp), $[38] = paddingBottomProp, $[39] = t14) : t14 = $[39];
|
|
1867
1877
|
const paddingBottom = t14;
|
|
1868
1878
|
let t15;
|
|
1869
|
-
$[
|
|
1879
|
+
$[40] !== paddingLeftProp ? (t15 = _getArrayProp(paddingLeftProp), $[40] = paddingLeftProp, $[41] = t15) : t15 = $[41];
|
|
1870
1880
|
const paddingLeft = t15;
|
|
1871
1881
|
let t16;
|
|
1872
|
-
$[
|
|
1882
|
+
$[42] !== paddingRightProp ? (t16 = _getArrayProp(paddingRightProp), $[42] = paddingRightProp, $[43] = t16) : t16 = $[43];
|
|
1873
1883
|
const paddingRight = t16;
|
|
1874
1884
|
let t17;
|
|
1875
|
-
$[
|
|
1876
|
-
const radius = t17;
|
|
1877
|
-
let t18;
|
|
1878
|
-
$[45] !== spaceProp ? (t18 = _getArrayProp(spaceProp), $[45] = spaceProp, $[46] = t18) : t18 = $[46];
|
|
1879
|
-
const space = t18;
|
|
1885
|
+
$[44] !== radiusProp ? (t17 = _getArrayProp(radiusProp), $[44] = radiusProp, $[45] = t17) : t17 = $[45];
|
|
1886
|
+
const radius = t17, t18 = gap === void 0 ? deprecated_space : gap;
|
|
1880
1887
|
let t19;
|
|
1881
|
-
$[
|
|
1888
|
+
$[46] !== t18 ? (t19 = _getArrayProp(t18), $[46] = t18, $[47] = t19) : t19 = $[47];
|
|
1889
|
+
const spacing = t19;
|
|
1890
|
+
let t20;
|
|
1891
|
+
$[48] !== padding || $[49] !== paddingBottom || $[50] !== paddingLeft || $[51] !== paddingRight || $[52] !== paddingTop || $[53] !== paddingX || $[54] !== paddingY ? (t20 = {
|
|
1882
1892
|
padding,
|
|
1883
1893
|
paddingX,
|
|
1884
1894
|
paddingY,
|
|
@@ -1886,12 +1896,12 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1886
1896
|
paddingBottom,
|
|
1887
1897
|
paddingLeft,
|
|
1888
1898
|
paddingRight
|
|
1889
|
-
}, $[
|
|
1890
|
-
const boxProps =
|
|
1891
|
-
let t23;
|
|
1892
|
-
$[55] !== loading ? (t23 = !!loading && /* @__PURE__ */ jsxRuntime.jsx(LoadingBox, { children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) }), $[55] = loading, $[56] = t23) : t23 = $[56];
|
|
1899
|
+
}, $[48] = padding, $[49] = paddingBottom, $[50] = paddingLeft, $[51] = paddingRight, $[52] = paddingTop, $[53] = paddingX, $[54] = paddingY, $[55] = t20) : t20 = $[55];
|
|
1900
|
+
const boxProps = t20, t21 = !!(loading || disabled), t22 = selected ? "" : void 0, t23 = !!(loading || disabled);
|
|
1893
1901
|
let t24;
|
|
1894
|
-
$[
|
|
1902
|
+
$[56] !== loading ? (t24 = !!loading && /* @__PURE__ */ jsxRuntime.jsx(LoadingBox, { children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) }), $[56] = loading, $[57] = t24) : t24 = $[57];
|
|
1903
|
+
let t25;
|
|
1904
|
+
$[58] !== IconComponent || $[59] !== IconRightComponent || $[60] !== boxProps || $[61] !== button || $[62] !== fontSize2 || $[63] !== justify || $[64] !== muted || $[65] !== spacing || $[66] !== text || $[67] !== textAlign || $[68] !== textWeight ? (t25 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", justify, gap: spacing, children: [
|
|
1895
1905
|
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
1896
1906
|
react.isValidElement(IconComponent) && IconComponent,
|
|
1897
1907
|
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
@@ -1901,17 +1911,18 @@ const StyledButton = /* @__PURE__ */ styledComponents.styled.button.withConfig({
|
|
|
1901
1911
|
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
1902
1912
|
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
1903
1913
|
] })
|
|
1904
|
-
] }) }), $[
|
|
1905
|
-
let t25;
|
|
1906
|
-
$[69] !== boxProps || $[70] !== children ? (t25 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[69] = boxProps, $[70] = children, $[71] = t25) : t25 = $[71];
|
|
1914
|
+
] }) }), $[58] = IconComponent, $[59] = IconRightComponent, $[60] = boxProps, $[61] = button, $[62] = fontSize2, $[63] = justify, $[64] = muted, $[65] = spacing, $[66] = text, $[67] = textAlign, $[68] = textWeight, $[69] = t25) : t25 = $[69];
|
|
1907
1915
|
let t26;
|
|
1908
|
-
|
|
1909
|
-
|
|
1916
|
+
$[70] !== boxProps || $[71] !== children ? (t26 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[70] = boxProps, $[71] = children, $[72] = t26) : t26 = $[72];
|
|
1917
|
+
let t27;
|
|
1918
|
+
return $[73] !== mode || $[74] !== radius || $[75] !== ref || $[76] !== restProps || $[77] !== t21 || $[78] !== t22 || $[79] !== t23 || $[80] !== t24 || $[81] !== t25 || $[82] !== t26 || $[83] !== tone || $[84] !== type || $[85] !== width ? (t27 = /* @__PURE__ */ jsxRuntime.jsxs(StyledButton, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t21, "data-selected": t22, disabled: t23, ref, type, $width: width, children: [
|
|
1910
1919
|
t24,
|
|
1911
|
-
t25
|
|
1912
|
-
|
|
1920
|
+
t25,
|
|
1921
|
+
t26
|
|
1922
|
+
] }), $[73] = mode, $[74] = radius, $[75] = ref, $[76] = restProps, $[77] = t21, $[78] = t22, $[79] = t23, $[80] = t24, $[81] = t25, $[82] = t26, $[83] = tone, $[84] = type, $[85] = width, $[86] = t27) : t27 = $[86], t27;
|
|
1913
1923
|
});
|
|
1914
|
-
|
|
1924
|
+
ButtonComponent.displayName = "ForwardRef(Button)";
|
|
1925
|
+
const Button = ButtonComponent;
|
|
1915
1926
|
function cardStyle(props) {
|
|
1916
1927
|
return [cardBaseStyle(props), cardColorStyle(props)];
|
|
1917
1928
|
}
|
|
@@ -2063,7 +2074,7 @@ function cardColorStyle(props) {
|
|
|
2063
2074
|
const StyledCard = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2064
2075
|
displayName: "StyledCard",
|
|
2065
2076
|
componentId: "sc-osnro2-0"
|
|
2066
|
-
})(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle),
|
|
2077
|
+
})(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), CardComponent = react.forwardRef(function(props, ref) {
|
|
2067
2078
|
const $ = reactCompilerRuntime.c(56);
|
|
2068
2079
|
let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
|
|
2069
2080
|
$[0] !== props ? ({
|
|
@@ -2105,7 +2116,8 @@ const StyledCard = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
|
2105
2116
|
let t17;
|
|
2106
2117
|
return $[52] !== scheme || $[53] !== t16 || $[54] !== tone ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[52] = scheme, $[53] = t16, $[54] = tone, $[55] = t17) : t17 = $[55], t17;
|
|
2107
2118
|
});
|
|
2108
|
-
|
|
2119
|
+
CardComponent.displayName = "ForwardRef(Card)";
|
|
2120
|
+
const Card = CardComponent;
|
|
2109
2121
|
function useClickOutsideEvent(listener, t0, boundaryElement) {
|
|
2110
2122
|
const $ = reactCompilerRuntime.c(9), elementsArg = t0 === void 0 ? _temp$8 : t0;
|
|
2111
2123
|
let t1;
|
|
@@ -2619,7 +2631,7 @@ const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
|
|
|
2619
2631
|
})), StyledCode = /* @__PURE__ */ styledComponents.styled.pre.withConfig({
|
|
2620
2632
|
displayName: "StyledCode",
|
|
2621
2633
|
componentId: "sc-4dymyn-0"
|
|
2622
|
-
})(codeBaseStyle, responsiveCodeFontStyle),
|
|
2634
|
+
})(codeBaseStyle, responsiveCodeFontStyle), CodeComponent = react.forwardRef(function(props, ref) {
|
|
2623
2635
|
const $ = reactCompilerRuntime.c(22);
|
|
2624
2636
|
let children, language, restProps, t0, weight;
|
|
2625
2637
|
$[0] !== props ? ({
|
|
@@ -2641,8 +2653,8 @@ const LazyRefractor = react.lazy(() => Promise.resolve().then(function() {
|
|
|
2641
2653
|
let t5;
|
|
2642
2654
|
return $[16] !== ref || $[17] !== restProps || $[18] !== t1 || $[19] !== t4 || $[20] !== weight ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(StyledCode, { "data-ui": "Code", ...restProps, $size: t1, $weight: weight, ref, children: t4 }), $[16] = ref, $[17] = restProps, $[18] = t1, $[19] = t4, $[20] = weight, $[21] = t5) : t5 = $[21], t5;
|
|
2643
2655
|
});
|
|
2644
|
-
|
|
2645
|
-
const BASE_STYLE$1 = {
|
|
2656
|
+
CodeComponent.displayName = "ForwardRef(Code)";
|
|
2657
|
+
const Code = CodeComponent, BASE_STYLE$1 = {
|
|
2646
2658
|
width: "100%",
|
|
2647
2659
|
margin: "0 auto"
|
|
2648
2660
|
};
|
|
@@ -2661,7 +2673,7 @@ function responsiveContainerWidthStyle(props) {
|
|
|
2661
2673
|
const StyledContainer = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2662
2674
|
displayName: "StyledContainer",
|
|
2663
2675
|
componentId: "sc-wyroop-0"
|
|
2664
|
-
})(containerBaseStyle, responsiveContainerWidthStyle),
|
|
2676
|
+
})(containerBaseStyle, responsiveContainerWidthStyle), ContainerComponent = react.forwardRef(function(props, ref) {
|
|
2665
2677
|
const $ = reactCompilerRuntime.c(11);
|
|
2666
2678
|
let as, restProps, t0;
|
|
2667
2679
|
$[0] !== props ? ({
|
|
@@ -2675,47 +2687,52 @@ const StyledContainer = /* @__PURE__ */ styledComponents.styled(Box).withConfig(
|
|
|
2675
2687
|
let t2;
|
|
2676
2688
|
return $[6] !== as || $[7] !== ref || $[8] !== restProps || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledContainer, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
|
|
2677
2689
|
});
|
|
2678
|
-
|
|
2679
|
-
const StyledGrid = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2690
|
+
ContainerComponent.displayName = "ForwardRef(Container)";
|
|
2691
|
+
const Container = ContainerComponent, StyledGrid = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2680
2692
|
displayName: "StyledGrid",
|
|
2681
2693
|
componentId: "sc-v8t8oz-0"
|
|
2682
|
-
})(responsiveGridStyle),
|
|
2683
|
-
const $ = reactCompilerRuntime.c(
|
|
2684
|
-
let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
|
|
2694
|
+
})(responsiveGridStyle), GridComponent = react.forwardRef(function(props, ref) {
|
|
2695
|
+
const $ = reactCompilerRuntime.c(44);
|
|
2696
|
+
let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, gridTemplateColumns, gridTemplateRows, restProps, rows;
|
|
2685
2697
|
$[0] !== props ? ({
|
|
2686
2698
|
as,
|
|
2687
2699
|
autoRows,
|
|
2688
2700
|
autoCols,
|
|
2689
2701
|
autoFlow,
|
|
2690
2702
|
columns,
|
|
2703
|
+
gridTemplateColumns,
|
|
2691
2704
|
gap,
|
|
2692
2705
|
gapX,
|
|
2693
2706
|
gapY,
|
|
2694
2707
|
rows,
|
|
2708
|
+
gridTemplateRows,
|
|
2695
2709
|
children,
|
|
2696
2710
|
...restProps
|
|
2697
|
-
} = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] =
|
|
2711
|
+
} = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = gridTemplateColumns, $[11] = gridTemplateRows, $[12] = restProps, $[13] = rows) : (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], gridTemplateColumns = $[10], gridTemplateRows = $[11], restProps = $[12], rows = $[13]);
|
|
2698
2712
|
const t0 = typeof as == "string" ? as : void 0;
|
|
2699
2713
|
let t1;
|
|
2700
|
-
$[
|
|
2714
|
+
$[14] !== autoRows ? (t1 = _getArrayProp(autoRows), $[14] = autoRows, $[15] = t1) : t1 = $[15];
|
|
2701
2715
|
let t2;
|
|
2702
|
-
$[
|
|
2716
|
+
$[16] !== autoCols ? (t2 = _getArrayProp(autoCols), $[16] = autoCols, $[17] = t2) : t2 = $[17];
|
|
2703
2717
|
let t3;
|
|
2704
|
-
$[
|
|
2705
|
-
|
|
2706
|
-
$[18] !== columns ? (t4 = _getArrayProp(columns), $[18] = columns, $[19] = t4) : t4 = $[19];
|
|
2718
|
+
$[18] !== autoFlow ? (t3 = _getArrayProp(autoFlow), $[18] = autoFlow, $[19] = t3) : t3 = $[19];
|
|
2719
|
+
const t4 = gridTemplateColumns === void 0 ? columns : gridTemplateColumns;
|
|
2707
2720
|
let t5;
|
|
2708
|
-
$[20] !==
|
|
2721
|
+
$[20] !== t4 ? (t5 = _getArrayProp(t4), $[20] = t4, $[21] = t5) : t5 = $[21];
|
|
2709
2722
|
let t6;
|
|
2710
|
-
$[22] !==
|
|
2723
|
+
$[22] !== gap ? (t6 = _getArrayProp(gap), $[22] = gap, $[23] = t6) : t6 = $[23];
|
|
2711
2724
|
let t7;
|
|
2712
|
-
$[24] !==
|
|
2725
|
+
$[24] !== gapX ? (t7 = _getArrayProp(gapX), $[24] = gapX, $[25] = t7) : t7 = $[25];
|
|
2713
2726
|
let t8;
|
|
2714
|
-
$[26] !==
|
|
2715
|
-
|
|
2716
|
-
|
|
2727
|
+
$[26] !== gapY ? (t8 = _getArrayProp(gapY), $[26] = gapY, $[27] = t8) : t8 = $[27];
|
|
2728
|
+
const t9 = gridTemplateRows === void 0 ? rows : gridTemplateRows;
|
|
2729
|
+
let t10;
|
|
2730
|
+
$[28] !== t9 ? (t10 = _getArrayProp(t9), $[28] = t9, $[29] = t10) : t10 = $[29];
|
|
2731
|
+
let t11;
|
|
2732
|
+
return $[30] !== as || $[31] !== children || $[32] !== ref || $[33] !== restProps || $[34] !== t0 || $[35] !== t1 || $[36] !== t10 || $[37] !== t2 || $[38] !== t3 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(StyledGrid, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t5, $gap: t6, $gapX: t7, $gapY: t8, $rows: t10, forwardedAs: as, ref, children }), $[30] = as, $[31] = children, $[32] = ref, $[33] = restProps, $[34] = t0, $[35] = t1, $[36] = t10, $[37] = t2, $[38] = t3, $[39] = t5, $[40] = t6, $[41] = t7, $[42] = t8, $[43] = t11) : t11 = $[43], t11;
|
|
2717
2733
|
});
|
|
2718
|
-
|
|
2734
|
+
GridComponent.displayName = "ForwardRef(Grid)";
|
|
2735
|
+
const Grid = GridComponent;
|
|
2719
2736
|
function headingBaseStyle(props) {
|
|
2720
2737
|
const {
|
|
2721
2738
|
$accent,
|
|
@@ -2778,7 +2795,7 @@ function headingBaseStyle(props) {
|
|
|
2778
2795
|
const StyledHeading = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
2779
2796
|
displayName: "StyledHeading",
|
|
2780
2797
|
componentId: "sc-137lwim-0"
|
|
2781
|
-
})(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont),
|
|
2798
|
+
})(headingBaseStyle, responsiveTextAlignStyle, responsiveHeadingFont), HeadingComponent = react.forwardRef(function(props, ref) {
|
|
2782
2799
|
const $ = reactCompilerRuntime.c(26);
|
|
2783
2800
|
let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
2784
2801
|
$[0] !== props ? ({
|
|
@@ -2806,7 +2823,8 @@ const StyledHeading = /* @__PURE__ */ styledComponents.styled.div.withConfig({
|
|
|
2806
2823
|
let t6;
|
|
2807
2824
|
return $[17] !== accent || $[18] !== muted || $[19] !== ref || $[20] !== restProps || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledHeading, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
|
|
2808
2825
|
});
|
|
2809
|
-
|
|
2826
|
+
HeadingComponent.displayName = "ForwardRef(Heading)";
|
|
2827
|
+
const Heading = HeadingComponent;
|
|
2810
2828
|
function inlineBaseStyle() {
|
|
2811
2829
|
return {
|
|
2812
2830
|
lineHeight: "0",
|
|
@@ -2837,25 +2855,28 @@ function inlineSpaceStyle(props) {
|
|
|
2837
2855
|
const StyledInline = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
2838
2856
|
displayName: "StyledInline",
|
|
2839
2857
|
componentId: "sc-1pkiy6j-0"
|
|
2840
|
-
})(inlineBaseStyle, inlineSpaceStyle),
|
|
2841
|
-
const $ = reactCompilerRuntime.c(
|
|
2842
|
-
let as, childrenProp,
|
|
2858
|
+
})(inlineBaseStyle, inlineSpaceStyle), InlineComponent = react.forwardRef(function(props, ref) {
|
|
2859
|
+
const $ = reactCompilerRuntime.c(16);
|
|
2860
|
+
let as, childrenProp, deprecated_space, gap, restProps;
|
|
2843
2861
|
$[0] !== props ? ({
|
|
2844
2862
|
as,
|
|
2845
2863
|
children: childrenProp,
|
|
2846
|
-
|
|
2864
|
+
gap,
|
|
2865
|
+
space: deprecated_space,
|
|
2847
2866
|
...restProps
|
|
2848
|
-
} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] =
|
|
2867
|
+
} = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = deprecated_space, $[4] = gap, $[5] = restProps) : (as = $[1], childrenProp = $[2], deprecated_space = $[3], gap = $[4], restProps = $[5]);
|
|
2868
|
+
const spacing = gap === void 0 ? deprecated_space : gap;
|
|
2849
2869
|
let t0;
|
|
2850
|
-
$[
|
|
2870
|
+
$[6] !== childrenProp ? (t0 = react.Children.map(childrenProp, _temp$5), $[6] = childrenProp, $[7] = t0) : t0 = $[7];
|
|
2851
2871
|
const children = t0;
|
|
2852
2872
|
let t1;
|
|
2853
|
-
$[
|
|
2873
|
+
$[8] !== spacing ? (t1 = _getArrayProp(spacing), $[8] = spacing, $[9] = t1) : t1 = $[9];
|
|
2854
2874
|
const t2 = ref;
|
|
2855
2875
|
let t3;
|
|
2856
|
-
return $[
|
|
2876
|
+
return $[10] !== as || $[11] !== children || $[12] !== restProps || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(StyledInline, { "data-ui": "Inline", ...restProps, $space: t1, forwardedAs: as, ref: t2, children }), $[10] = as, $[11] = children, $[12] = restProps, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
|
|
2857
2877
|
});
|
|
2858
|
-
|
|
2878
|
+
InlineComponent.displayName = "ForwardRef(Inline)";
|
|
2879
|
+
const Inline = InlineComponent;
|
|
2859
2880
|
function _temp$5(child) {
|
|
2860
2881
|
return child && /* @__PURE__ */ jsxRuntime.jsx("div", { children: child });
|
|
2861
2882
|
}
|
|
@@ -2879,7 +2900,7 @@ function kbdStyle() {
|
|
|
2879
2900
|
const StyledKBD = /* @__PURE__ */ styledComponents.styled.kbd.withConfig({
|
|
2880
2901
|
displayName: "StyledKBD",
|
|
2881
2902
|
componentId: "sc-1w7yd8w-0"
|
|
2882
|
-
})(responsiveRadiusStyle, kbdStyle),
|
|
2903
|
+
})(responsiveRadiusStyle, kbdStyle), KBDComponent = react.forwardRef(function(props, ref) {
|
|
2883
2904
|
const $ = reactCompilerRuntime.c(19);
|
|
2884
2905
|
let children, restProps, t0, t1, t2;
|
|
2885
2906
|
$[0] !== props ? ({
|
|
@@ -2899,8 +2920,8 @@ const StyledKBD = /* @__PURE__ */ styledComponents.styled.kbd.withConfig({
|
|
|
2899
2920
|
let t6;
|
|
2900
2921
|
return $[14] !== ref || $[15] !== restProps || $[16] !== t3 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(StyledKBD, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[14] = ref, $[15] = restProps, $[16] = t3, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
|
|
2901
2922
|
});
|
|
2902
|
-
|
|
2903
|
-
const origin = {
|
|
2923
|
+
KBDComponent.displayName = "ForwardRef(KBD)";
|
|
2924
|
+
const KBD = KBDComponent, origin = {
|
|
2904
2925
|
name: "@sanity/ui/origin",
|
|
2905
2926
|
fn({
|
|
2906
2927
|
middlewareData,
|
|
@@ -4226,45 +4247,46 @@ const selectStyle = {
|
|
|
4226
4247
|
displayName: "IconBox",
|
|
4227
4248
|
componentId: "sc-5mxno7-2"
|
|
4228
4249
|
})(selectStyle.iconBox), Select = react.forwardRef(function(props, forwardedRef) {
|
|
4229
|
-
const $ = reactCompilerRuntime.c(
|
|
4230
|
-
let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
|
|
4250
|
+
const $ = reactCompilerRuntime.c(38);
|
|
4251
|
+
let children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
|
|
4231
4252
|
$[0] !== props ? ({
|
|
4232
4253
|
children,
|
|
4233
4254
|
customValidity,
|
|
4234
4255
|
disabled,
|
|
4235
4256
|
fontSize: t0,
|
|
4257
|
+
gap,
|
|
4236
4258
|
padding: t1,
|
|
4237
4259
|
radius: t2,
|
|
4238
4260
|
readOnly,
|
|
4239
4261
|
space: t3,
|
|
4240
4262
|
...restProps
|
|
4241
|
-
} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] =
|
|
4242
|
-
const fontSize2 = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2,
|
|
4263
|
+
} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = gap, $[5] = readOnly, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2, $[10] = t3) : (children = $[1], customValidity = $[2], disabled = $[3], gap = $[4], readOnly = $[5], restProps = $[6], t0 = $[7], t1 = $[8], t2 = $[9], t3 = $[10]);
|
|
4264
|
+
const fontSize2 = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, spacing = gap === void 0 ? t3 === void 0 ? 3 : t3 : gap, ref = react.useRef(null);
|
|
4243
4265
|
let t4;
|
|
4244
|
-
$[
|
|
4266
|
+
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[11] = t4) : t4 = $[11], react.useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
|
|
4245
4267
|
const t5 = !disabled && readOnly ? "" : void 0;
|
|
4246
4268
|
let t6;
|
|
4247
|
-
$[
|
|
4269
|
+
$[12] !== fontSize2 ? (t6 = _getArrayProp(fontSize2), $[12] = fontSize2, $[13] = t6) : t6 = $[13];
|
|
4248
4270
|
let t7;
|
|
4249
|
-
$[
|
|
4271
|
+
$[14] !== padding ? (t7 = _getArrayProp(padding), $[14] = padding, $[15] = t7) : t7 = $[15];
|
|
4250
4272
|
let t8;
|
|
4251
|
-
$[
|
|
4273
|
+
$[16] !== radius ? (t8 = _getArrayProp(radius), $[16] = radius, $[17] = t8) : t8 = $[17];
|
|
4252
4274
|
let t9;
|
|
4253
|
-
$[
|
|
4275
|
+
$[18] !== spacing ? (t9 = _getArrayProp(spacing), $[18] = spacing, $[19] = t9) : t9 = $[19];
|
|
4254
4276
|
const t10 = disabled || readOnly;
|
|
4255
4277
|
let t11;
|
|
4256
|
-
$[
|
|
4278
|
+
$[20] !== children || $[21] !== restProps || $[22] !== t10 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[20] = children, $[21] = restProps, $[22] = t10, $[23] = t5, $[24] = t6, $[25] = t7, $[26] = t8, $[27] = t9, $[28] = t11) : t11 = $[28];
|
|
4257
4279
|
let t12;
|
|
4258
|
-
$[
|
|
4280
|
+
$[29] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {}), $[29] = t12) : t12 = $[29];
|
|
4259
4281
|
let t13;
|
|
4260
|
-
$[
|
|
4282
|
+
$[30] !== fontSize2 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children: t12 }), $[30] = fontSize2, $[31] = t13) : t13 = $[31];
|
|
4261
4283
|
let t14;
|
|
4262
|
-
$[
|
|
4284
|
+
$[32] !== padding || $[33] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsx(IconBox, { padding, children: t13 }), $[32] = padding, $[33] = t13, $[34] = t14) : t14 = $[34];
|
|
4263
4285
|
let t15;
|
|
4264
|
-
return $[
|
|
4286
|
+
return $[35] !== t11 || $[36] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(StyledSelect, { "data-ui": "Select", children: [
|
|
4265
4287
|
t11,
|
|
4266
4288
|
t14
|
|
4267
|
-
] }), $[
|
|
4289
|
+
] }), $[35] = t11, $[36] = t14, $[37] = t15) : t15 = $[37], t15;
|
|
4268
4290
|
});
|
|
4269
4291
|
Select.displayName = "ForwardRef(Select)";
|
|
4270
4292
|
const BASE_STYLE = {
|
|
@@ -4292,21 +4314,23 @@ function responsiveStackSpaceStyle(props) {
|
|
|
4292
4314
|
const StyledStack = /* @__PURE__ */ styledComponents.styled(Box).withConfig({
|
|
4293
4315
|
displayName: "StyledStack",
|
|
4294
4316
|
componentId: "sc-8dpfq2-0"
|
|
4295
|
-
})(stackBaseStyle, responsiveStackSpaceStyle),
|
|
4296
|
-
const $ = reactCompilerRuntime.c(
|
|
4297
|
-
let as,
|
|
4317
|
+
})(stackBaseStyle, responsiveStackSpaceStyle), StackComponent = react.forwardRef(function(props, ref) {
|
|
4318
|
+
const $ = reactCompilerRuntime.c(13);
|
|
4319
|
+
let as, deprecated_space, gap, restProps;
|
|
4298
4320
|
$[0] !== props ? ({
|
|
4299
4321
|
as,
|
|
4300
|
-
|
|
4322
|
+
gap,
|
|
4323
|
+
space: deprecated_space,
|
|
4301
4324
|
...restProps
|
|
4302
|
-
} = props, $[0] = props, $[1] = as, $[2] =
|
|
4303
|
-
const t0 = typeof as == "string" ? as : void 0;
|
|
4325
|
+
} = props, $[0] = props, $[1] = as, $[2] = deprecated_space, $[3] = gap, $[4] = restProps) : (as = $[1], deprecated_space = $[2], gap = $[3], restProps = $[4]);
|
|
4326
|
+
const spacing = gap === void 0 ? deprecated_space : gap, t0 = typeof as == "string" ? as : void 0;
|
|
4304
4327
|
let t1;
|
|
4305
|
-
$[
|
|
4328
|
+
$[5] !== spacing ? (t1 = _getArrayProp(spacing), $[5] = spacing, $[6] = t1) : t1 = $[6];
|
|
4306
4329
|
let t2;
|
|
4307
|
-
return $[
|
|
4330
|
+
return $[7] !== as || $[8] !== ref || $[9] !== restProps || $[10] !== t0 || $[11] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(StyledStack, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[7] = as, $[8] = ref, $[9] = restProps, $[10] = t0, $[11] = t1, $[12] = t2) : t2 = $[12], t2;
|
|
4308
4331
|
});
|
|
4309
|
-
|
|
4332
|
+
StackComponent.displayName = "ForwardRef(Stack)";
|
|
4333
|
+
const Stack = StackComponent;
|
|
4310
4334
|
function switchBaseStyles() {
|
|
4311
4335
|
return styledComponents.css`
|
|
4312
4336
|
position: relative;
|
|
@@ -4605,14 +4629,15 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4605
4629
|
display: "block"
|
|
4606
4630
|
}
|
|
4607
4631
|
}), TextInput = react.forwardRef(function(props, forwardedRef) {
|
|
4608
|
-
const $ = reactCompilerRuntime.c(
|
|
4609
|
-
let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
|
|
4632
|
+
const $ = reactCompilerRuntime.c(93);
|
|
4633
|
+
let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, gap, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
|
|
4610
4634
|
$[0] !== props ? ({
|
|
4611
4635
|
__unstable_disableFocusRing,
|
|
4612
4636
|
border: t0,
|
|
4613
4637
|
clearButton,
|
|
4614
4638
|
disabled: t1,
|
|
4615
4639
|
fontSize: t2,
|
|
4640
|
+
gap,
|
|
4616
4641
|
icon: IconComponent,
|
|
4617
4642
|
iconRight: IconRightComponent,
|
|
4618
4643
|
onClear,
|
|
@@ -4626,73 +4651,73 @@ const CLEAR_BUTTON_BOX_STYLE = {
|
|
|
4626
4651
|
type: t6,
|
|
4627
4652
|
weight,
|
|
4628
4653
|
...restProps
|
|
4629
|
-
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] =
|
|
4630
|
-
const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4,
|
|
4654
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[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] = weight) : (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], gap = $[6], onClear = $[7], prefix = $[8], readOnly = $[9], restProps = $[10], suffix = $[11], t0 = $[12], t1 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], weight = $[19]);
|
|
4655
|
+
const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, deprecated_space = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = react.useRef(null), rootTheme = useRootTheme();
|
|
4631
4656
|
let t7;
|
|
4632
|
-
$[
|
|
4657
|
+
$[20] !== fontSizeProp ? (t7 = _getArrayProp(fontSizeProp), $[20] = fontSizeProp, $[21] = t7) : t7 = $[21];
|
|
4633
4658
|
const fontSize2 = t7;
|
|
4634
4659
|
let t8;
|
|
4635
|
-
$[
|
|
4660
|
+
$[22] !== paddingProp ? (t8 = _getArrayProp(paddingProp), $[22] = paddingProp, $[23] = t8) : t8 = $[23];
|
|
4636
4661
|
const padding = t8;
|
|
4637
4662
|
let t9;
|
|
4638
|
-
$[
|
|
4639
|
-
const radius = t9;
|
|
4640
|
-
let t10;
|
|
4641
|
-
$[25] !== spaceProp ? (t10 = _getArrayProp(spaceProp), $[25] = spaceProp, $[26] = t10) : t10 = $[26];
|
|
4642
|
-
const space = t10, $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
|
|
4663
|
+
$[24] !== radiusProp ? (t9 = _getArrayProp(radiusProp), $[24] = radiusProp, $[25] = t9) : t9 = $[25];
|
|
4664
|
+
const radius = t9, t10 = gap === void 0 ? deprecated_space : gap;
|
|
4643
4665
|
let t11;
|
|
4644
|
-
$[
|
|
4645
|
-
const
|
|
4666
|
+
$[26] !== t10 ? (t11 = _getArrayProp(t10), $[26] = t10, $[27] = t11) : t11 = $[27];
|
|
4667
|
+
const space = t11, $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
|
|
4646
4668
|
let t12;
|
|
4647
|
-
$[28]
|
|
4648
|
-
|
|
4649
|
-
}, $[28] = onClear, $[29] = t12) : t12 = $[29];
|
|
4650
|
-
const handleClearClick = t12;
|
|
4669
|
+
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t12 = () => ref.current, $[28] = t12) : t12 = $[28], react.useImperativeHandle(forwardedRef, t12), useCustomValidity(ref, customValidity);
|
|
4670
|
+
const handleClearMouseDown = _temp$2;
|
|
4651
4671
|
let t13;
|
|
4652
|
-
$[
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4672
|
+
$[29] !== onClear ? (t13 = (event_0) => {
|
|
4673
|
+
event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
|
|
4674
|
+
}, $[29] = onClear, $[30] = t13) : t13 = $[30];
|
|
4675
|
+
const handleClearClick = t13;
|
|
4676
|
+
let t14;
|
|
4677
|
+
$[31] !== prefix || $[32] !== radius ? (t14 = prefix && /* @__PURE__ */ jsxRuntime.jsx(Prefix, { borderTop: !0, borderLeft: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: prefix }) }), $[31] = prefix, $[32] = radius, $[33] = t14) : t14 = $[33];
|
|
4678
|
+
const prefixNode = t14, t15 = border2 ? "" : void 0;
|
|
4679
|
+
let t16;
|
|
4680
|
+
$[34] !== IconComponent || $[35] !== fontSize2 || $[36] !== padding ? (t16 = IconComponent && /* @__PURE__ */ jsxRuntime.jsx(LeftBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
4656
4681
|
react.isValidElement(IconComponent) && IconComponent,
|
|
4657
4682
|
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
4658
|
-
] }) }), $[
|
|
4659
|
-
let
|
|
4660
|
-
$[
|
|
4683
|
+
] }) }), $[34] = IconComponent, $[35] = fontSize2, $[36] = padding, $[37] = t16) : t16 = $[37];
|
|
4684
|
+
let t17;
|
|
4685
|
+
$[38] !== $hasClearButton || $[39] !== IconRightComponent || $[40] !== fontSize2 || $[41] !== padding ? (t17 = !$hasClearButton && IconRightComponent && /* @__PURE__ */ jsxRuntime.jsx(RightBox, { padding, children: /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
4661
4686
|
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
4662
4687
|
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
4663
|
-
] }) }), $[
|
|
4664
|
-
let t17;
|
|
4665
|
-
$[42] !== $hasPrefix || $[43] !== $hasSuffix || $[44] !== __unstable_disableFocusRing || $[45] !== radius || $[46] !== rootTheme.scheme || $[47] !== rootTheme.tone || $[48] !== t14 || $[49] !== t15 || $[50] !== t16 ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
|
|
4666
|
-
t15,
|
|
4667
|
-
t16
|
|
4668
|
-
] }), $[42] = $hasPrefix, $[43] = $hasSuffix, $[44] = __unstable_disableFocusRing, $[45] = radius, $[46] = rootTheme.scheme, $[47] = rootTheme.tone, $[48] = t14, $[49] = t15, $[50] = t16, $[51] = t17) : t17 = $[51];
|
|
4669
|
-
const presentationNode = t17;
|
|
4688
|
+
] }) }), $[38] = $hasClearButton, $[39] = IconRightComponent, $[40] = fontSize2, $[41] = padding, $[42] = t17) : t17 = $[42];
|
|
4670
4689
|
let t18;
|
|
4671
|
-
$[
|
|
4672
|
-
|
|
4690
|
+
$[43] !== $hasPrefix || $[44] !== $hasSuffix || $[45] !== __unstable_disableFocusRing || $[46] !== radius || $[47] !== rootTheme.scheme || $[48] !== rootTheme.tone || $[49] !== t15 || $[50] !== t16 || $[51] !== t17 ? (t18 = /* @__PURE__ */ jsxRuntime.jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t15, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
|
|
4691
|
+
t16,
|
|
4692
|
+
t17
|
|
4693
|
+
] }), $[43] = $hasPrefix, $[44] = $hasSuffix, $[45] = __unstable_disableFocusRing, $[46] = radius, $[47] = rootTheme.scheme, $[48] = rootTheme.tone, $[49] = t15, $[50] = t16, $[51] = t17, $[52] = t18) : t18 = $[52];
|
|
4694
|
+
const presentationNode = t18;
|
|
4673
4695
|
let t19;
|
|
4674
|
-
$[
|
|
4675
|
-
const
|
|
4696
|
+
$[53] !== padding ? (t19 = padding.map(_temp2), $[53] = padding, $[54] = t19) : t19 = $[54];
|
|
4697
|
+
const clearButtonBoxPadding = t19;
|
|
4676
4698
|
let t20;
|
|
4677
|
-
$[
|
|
4678
|
-
const
|
|
4699
|
+
$[55] !== padding ? (t20 = padding.map(_temp3), $[55] = padding, $[56] = t20) : t20 = $[56];
|
|
4700
|
+
const clearButtonPadding = t20, clearButtonProps = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
|
|
4679
4701
|
let t21;
|
|
4680
|
-
$[
|
|
4681
|
-
const
|
|
4682
|
-
let
|
|
4683
|
-
$[
|
|
4702
|
+
$[57] !== clearButton || $[58] !== clearButtonBoxPadding || $[59] !== clearButtonPadding || $[60] !== clearButtonProps || $[61] !== customValidity || $[62] !== disabled || $[63] !== fontSize2 || $[64] !== handleClearClick || $[65] !== radius || $[66] !== readOnly ? (t21 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsxRuntime.jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: icons.CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[57] = clearButton, $[58] = clearButtonBoxPadding, $[59] = clearButtonPadding, $[60] = clearButtonProps, $[61] = customValidity, $[62] = disabled, $[63] = fontSize2, $[64] = handleClearClick, $[65] = radius, $[66] = readOnly, $[67] = t21) : t21 = $[67];
|
|
4703
|
+
const clearButtonNode = t21;
|
|
4704
|
+
let t22;
|
|
4705
|
+
$[68] !== radius || $[69] !== suffix ? (t22 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[68] = radius, $[69] = suffix, $[70] = t22) : t22 = $[70];
|
|
4706
|
+
const suffixNode = t22, t23 = $hasIconRight || $hasClearButton;
|
|
4684
4707
|
let t24;
|
|
4685
|
-
$[
|
|
4686
|
-
|
|
4708
|
+
$[71] !== $hasIcon || $[72] !== disabled || $[73] !== fontSize2 || $[74] !== padding || $[75] !== readOnly || $[76] !== restProps || $[77] !== rootTheme.scheme || $[78] !== rootTheme.tone || $[79] !== space || $[80] !== t23 || $[81] !== type || $[82] !== weight ? (t24 = /* @__PURE__ */ jsxRuntime.jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t23, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[71] = $hasIcon, $[72] = disabled, $[73] = fontSize2, $[74] = padding, $[75] = readOnly, $[76] = restProps, $[77] = rootTheme.scheme, $[78] = rootTheme.tone, $[79] = space, $[80] = t23, $[81] = type, $[82] = weight, $[83] = t24) : t24 = $[83];
|
|
4709
|
+
let t25;
|
|
4710
|
+
$[84] !== clearButtonNode || $[85] !== presentationNode || $[86] !== t24 ? (t25 = /* @__PURE__ */ jsxRuntime.jsxs(InputRoot, { children: [
|
|
4711
|
+
t24,
|
|
4687
4712
|
presentationNode,
|
|
4688
4713
|
clearButtonNode
|
|
4689
|
-
] }), $[
|
|
4690
|
-
let
|
|
4691
|
-
return $[
|
|
4714
|
+
] }), $[84] = clearButtonNode, $[85] = presentationNode, $[86] = t24, $[87] = t25) : t25 = $[87];
|
|
4715
|
+
let t26;
|
|
4716
|
+
return $[88] !== prefixNode || $[89] !== rootTheme.tone || $[90] !== suffixNode || $[91] !== t25 ? (t26 = /* @__PURE__ */ jsxRuntime.jsxs(StyledTextInput, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
|
|
4692
4717
|
prefixNode,
|
|
4693
|
-
|
|
4718
|
+
t25,
|
|
4694
4719
|
suffixNode
|
|
4695
|
-
] }), $[
|
|
4720
|
+
] }), $[88] = prefixNode, $[89] = rootTheme.tone, $[90] = suffixNode, $[91] = t25, $[92] = t26) : t26 = $[92], t26;
|
|
4696
4721
|
});
|
|
4697
4722
|
TextInput.displayName = "ForwardRef(TextInput)";
|
|
4698
4723
|
function _temp$2(event) {
|
|
@@ -5090,34 +5115,35 @@ const StyledHotkeys = styledComponents.styled.kbd.withConfig({
|
|
|
5090
5115
|
displayName: "Key",
|
|
5091
5116
|
componentId: "sc-b37mge-1"
|
|
5092
5117
|
})`&:not([hidden]){display:block;}`, Hotkeys = react.forwardRef(function(props, ref) {
|
|
5093
|
-
const $ = reactCompilerRuntime.c(
|
|
5094
|
-
let fontSize2, keys, padding, radius, restProps, t0;
|
|
5118
|
+
const $ = reactCompilerRuntime.c(27);
|
|
5119
|
+
let fontSize2, gap, keys, padding, radius, restProps, t0;
|
|
5095
5120
|
$[0] !== props ? ({
|
|
5096
5121
|
fontSize: fontSize2,
|
|
5122
|
+
gap,
|
|
5097
5123
|
keys,
|
|
5098
5124
|
padding,
|
|
5099
5125
|
radius,
|
|
5100
5126
|
space: t0,
|
|
5101
5127
|
...restProps
|
|
5102
|
-
} = props, $[0] = props, $[1] = fontSize2, $[2] =
|
|
5103
|
-
const
|
|
5104
|
-
let t1;
|
|
5105
|
-
$[7] !== spaceProp ? (t1 = _getArrayProp(spaceProp), $[7] = spaceProp, $[8] = t1) : t1 = $[8];
|
|
5106
|
-
const space = t1;
|
|
5107
|
-
if (!keys || keys.length === 0) {
|
|
5108
|
-
let t22;
|
|
5109
|
-
return $[9] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[9] = t22) : t22 = $[9], t22;
|
|
5110
|
-
}
|
|
5128
|
+
} = props, $[0] = props, $[1] = fontSize2, $[2] = gap, $[3] = keys, $[4] = padding, $[5] = radius, $[6] = restProps, $[7] = t0) : (fontSize2 = $[1], gap = $[2], keys = $[3], padding = $[4], radius = $[5], restProps = $[6], t0 = $[7]);
|
|
5129
|
+
const t1 = gap === void 0 ? t0 === void 0 ? 0.5 : t0 : gap;
|
|
5111
5130
|
let t2;
|
|
5112
|
-
|
|
5131
|
+
$[8] !== t1 ? (t2 = _getArrayProp(t1), $[8] = t1, $[9] = t2) : t2 = $[9];
|
|
5132
|
+
const spacing = t2;
|
|
5133
|
+
if (!keys || keys.length === 0) {
|
|
5113
5134
|
let t32;
|
|
5114
|
-
|
|
5115
|
-
}
|
|
5116
|
-
t2 = $[14];
|
|
5135
|
+
return $[10] === Symbol.for("react.memo_cache_sentinel") ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[10] = t32) : t32 = $[10], t32;
|
|
5136
|
+
}
|
|
5117
5137
|
let t3;
|
|
5118
|
-
$[
|
|
5138
|
+
if ($[11] !== fontSize2 || $[12] !== keys || $[13] !== padding || $[14] !== radius) {
|
|
5139
|
+
let t42;
|
|
5140
|
+
$[16] !== fontSize2 || $[17] !== padding || $[18] !== radius ? (t42 = (key2, i) => /* @__PURE__ */ jsxRuntime.jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[16] = fontSize2, $[17] = padding, $[18] = radius, $[19] = t42) : t42 = $[19], t3 = keys.map(t42), $[11] = fontSize2, $[12] = keys, $[13] = padding, $[14] = radius, $[15] = t3;
|
|
5141
|
+
} else
|
|
5142
|
+
t3 = $[15];
|
|
5119
5143
|
let t4;
|
|
5120
|
-
|
|
5144
|
+
$[20] !== spacing || $[21] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Inline, { as: "span", gap: spacing, children: t3 }), $[20] = spacing, $[21] = t3, $[22] = t4) : t4 = $[22];
|
|
5145
|
+
let t5;
|
|
5146
|
+
return $[23] !== ref || $[24] !== restProps || $[25] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(StyledHotkeys, { "data-ui": "Hotkeys", ...restProps, ref, children: t4 }), $[23] = ref, $[24] = restProps, $[25] = t4, $[26] = t5) : t5 = $[26], t5;
|
|
5121
5147
|
});
|
|
5122
5148
|
Hotkeys.displayName = "ForwardRef(Hotkeys)";
|
|
5123
5149
|
const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
|
|
@@ -5290,8 +5316,8 @@ const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
|
5290
5316
|
displayName: "StyledMenu",
|
|
5291
5317
|
componentId: "sc-xt0tnv-0"
|
|
5292
5318
|
})`outline:none;overflow:auto;`, Menu = react.forwardRef(function(props, forwardedRef) {
|
|
5293
|
-
const $ = reactCompilerRuntime.c(
|
|
5294
|
-
let _shouldFocus, children, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
|
|
5319
|
+
const $ = reactCompilerRuntime.c(50);
|
|
5320
|
+
let _shouldFocus, children, gap, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
|
|
5295
5321
|
if ($[0] !== props) {
|
|
5296
5322
|
const {
|
|
5297
5323
|
children: t22,
|
|
@@ -5306,25 +5332,26 @@ const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
|
5306
5332
|
padding: t92,
|
|
5307
5333
|
registerElement: t102,
|
|
5308
5334
|
shouldFocus: t112,
|
|
5309
|
-
|
|
5310
|
-
|
|
5335
|
+
gap: t122,
|
|
5336
|
+
space: t13,
|
|
5337
|
+
...t14
|
|
5311
5338
|
} = props;
|
|
5312
|
-
children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112,
|
|
5339
|
+
children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, gap = t122, t1 = t13, restProps = t14, $[0] = props, $[1] = _shouldFocus, $[2] = children, $[3] = gap, $[4] = onClickOutside, $[5] = onEscape, $[6] = onItemClick, $[7] = onItemSelect, $[8] = onKeyDown, $[9] = originElement, $[10] = registerElement, $[11] = restProps, $[12] = t0, $[13] = t1;
|
|
5313
5340
|
} else
|
|
5314
|
-
_shouldFocus = $[1], children = $[2],
|
|
5315
|
-
const padding = t0 === void 0 ? 1 : t0,
|
|
5341
|
+
_shouldFocus = $[1], children = $[2], gap = $[3], onClickOutside = $[4], onEscape = $[5], onItemClick = $[6], onItemSelect = $[7], onKeyDown = $[8], originElement = $[9], registerElement = $[10], restProps = $[11], t0 = $[12], t1 = $[13];
|
|
5342
|
+
const padding = t0 === void 0 ? 1 : t0, spacing = gap === void 0 ? t1 === void 0 ? 1 : t1 : gap, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = react.useRef(null);
|
|
5316
5343
|
let t2;
|
|
5317
|
-
$[
|
|
5344
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[14] = t2) : t2 = $[14], react.useImperativeHandle(forwardedRef, t2);
|
|
5318
5345
|
const {
|
|
5319
5346
|
isTopLayer
|
|
5320
5347
|
} = useLayer();
|
|
5321
5348
|
let t3;
|
|
5322
|
-
$[
|
|
5349
|
+
$[15] !== onKeyDown || $[16] !== originElement || $[17] !== shouldFocus ? (t3 = {
|
|
5323
5350
|
onKeyDown,
|
|
5324
5351
|
originElement,
|
|
5325
5352
|
shouldFocus,
|
|
5326
5353
|
rootElementRef: ref
|
|
5327
|
-
}, $[
|
|
5354
|
+
}, $[15] = onKeyDown, $[16] = originElement, $[17] = shouldFocus, $[18] = t3) : t3 = $[18];
|
|
5328
5355
|
const {
|
|
5329
5356
|
activeElement,
|
|
5330
5357
|
activeIndex,
|
|
@@ -5334,22 +5361,22 @@ const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
|
5334
5361
|
mount
|
|
5335
5362
|
} = useMenuController(t3), unregisterElementRef = react.useRef(null);
|
|
5336
5363
|
let t4;
|
|
5337
|
-
$[
|
|
5364
|
+
$[19] !== registerElement ? (t4 = (el) => {
|
|
5338
5365
|
unregisterElementRef.current && (unregisterElementRef.current(), unregisterElementRef.current = null), ref.current = el, ref.current && registerElement && (unregisterElementRef.current = registerElement(ref.current));
|
|
5339
|
-
}, $[
|
|
5366
|
+
}, $[19] = registerElement, $[20] = t4) : t4 = $[20];
|
|
5340
5367
|
const handleRefChange = t4;
|
|
5341
5368
|
let t5, t6;
|
|
5342
|
-
$[
|
|
5369
|
+
$[21] !== activeIndex || $[22] !== onItemSelect ? (t5 = () => {
|
|
5343
5370
|
onItemSelect && onItemSelect(activeIndex);
|
|
5344
|
-
}, t6 = [activeIndex, onItemSelect], $[
|
|
5371
|
+
}, t6 = [activeIndex, onItemSelect], $[21] = activeIndex, $[22] = onItemSelect, $[23] = t5, $[24] = t6) : (t5 = $[23], t6 = $[24]), react.useEffect(t5, t6);
|
|
5345
5372
|
let t7;
|
|
5346
|
-
$[
|
|
5373
|
+
$[25] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => [ref.current], $[25] = t7) : t7 = $[25], useClickOutsideEvent(isTopLayer && onClickOutside, t7);
|
|
5347
5374
|
let t8;
|
|
5348
|
-
$[
|
|
5375
|
+
$[26] !== isTopLayer || $[27] !== onEscape ? (t8 = (event) => {
|
|
5349
5376
|
isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
|
|
5350
|
-
}, $[
|
|
5377
|
+
}, $[26] = isTopLayer, $[27] = onEscape, $[28] = t8) : t8 = $[28], useGlobalKeyDown(t8);
|
|
5351
5378
|
let t9;
|
|
5352
|
-
$[
|
|
5379
|
+
$[29] !== activeElement || $[30] !== handleItemMouseEnter || $[31] !== handleItemMouseLeave || $[32] !== mount || $[33] !== onClickOutside || $[34] !== onEscape || $[35] !== onItemClick || $[36] !== registerElement ? (t9 = {
|
|
5353
5380
|
version: 2,
|
|
5354
5381
|
activeElement,
|
|
5355
5382
|
mount,
|
|
@@ -5359,21 +5386,22 @@ const StyledMenu = styledComponents.styled(Box).withConfig({
|
|
|
5359
5386
|
onItemMouseEnter: handleItemMouseEnter,
|
|
5360
5387
|
onItemMouseLeave: handleItemMouseLeave,
|
|
5361
5388
|
registerElement
|
|
5362
|
-
}, $[
|
|
5389
|
+
}, $[29] = activeElement, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] = t9) : t9 = $[37];
|
|
5363
5390
|
const value = t9;
|
|
5364
5391
|
let t10;
|
|
5365
|
-
$[
|
|
5392
|
+
$[38] !== children || $[39] !== spacing ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { gap: spacing, children }), $[38] = children, $[39] = spacing, $[40] = t10) : t10 = $[40];
|
|
5366
5393
|
let t11;
|
|
5367
|
-
$[
|
|
5394
|
+
$[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t10 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(StyledMenu, { "data-ui": "Menu", ...restProps, onKeyDown: handleKeyDown, padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t10 }), $[41] = handleKeyDown, $[42] = handleRefChange, $[43] = padding, $[44] = restProps, $[45] = t10, $[46] = t11) : t11 = $[46];
|
|
5368
5395
|
let t12;
|
|
5369
|
-
return $[
|
|
5396
|
+
return $[47] !== t11 || $[48] !== value ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value, children: t11 }), $[47] = t11, $[48] = value, $[49] = t12) : t12 = $[49], t12;
|
|
5370
5397
|
});
|
|
5371
5398
|
Menu.displayName = "ForwardRef(Menu)";
|
|
5372
|
-
const
|
|
5373
|
-
displayName: "
|
|
5399
|
+
const StyledMenuDivider = styledComponents.styled.hr.withConfig({
|
|
5400
|
+
displayName: "StyledMenuDivider",
|
|
5374
5401
|
componentId: "sc-uhoxwu-0"
|
|
5375
5402
|
})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;
|
|
5376
|
-
|
|
5403
|
+
StyledMenuDivider.displayName = "MenuDivider";
|
|
5404
|
+
const MenuDivider = StyledMenuDivider;
|
|
5377
5405
|
function selectableBaseStyle() {
|
|
5378
5406
|
return styledComponents.css`
|
|
5379
5407
|
background-color: inherit;
|
|
@@ -5487,9 +5515,9 @@ function useMenu() {
|
|
|
5487
5515
|
throw new Error("useMenu(): the context value is not compatible");
|
|
5488
5516
|
return value;
|
|
5489
5517
|
}
|
|
5490
|
-
function
|
|
5491
|
-
const $ = reactCompilerRuntime.c(
|
|
5492
|
-
let IconComponent, children, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
|
|
5518
|
+
function MenuGroupComponent(props) {
|
|
5519
|
+
const $ = reactCompilerRuntime.c(82);
|
|
5520
|
+
let IconComponent, children, gap, menuProps, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
|
|
5493
5521
|
$[0] !== props ? ({
|
|
5494
5522
|
as: t0,
|
|
5495
5523
|
children,
|
|
@@ -5500,12 +5528,13 @@ function MenuGroup(props) {
|
|
|
5500
5528
|
padding: t2,
|
|
5501
5529
|
popover,
|
|
5502
5530
|
radius: t3,
|
|
5531
|
+
gap,
|
|
5503
5532
|
space: t4,
|
|
5504
5533
|
text,
|
|
5505
5534
|
tone: t5,
|
|
5506
5535
|
...restProps
|
|
5507
|
-
} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] =
|
|
5508
|
-
const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3,
|
|
5536
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = gap, $[4] = menuProps, $[5] = onClick, $[6] = popover, $[7] = restProps, $[8] = t0, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5, $[14] = text) : (IconComponent = $[1], children = $[2], gap = $[3], menuProps = $[4], onClick = $[5], popover = $[6], restProps = $[7], t0 = $[8], t1 = $[9], t2 = $[10], t3 = $[11], t4 = $[12], t5 = $[13], text = $[14]);
|
|
5537
|
+
const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, menu = useMenu(), {
|
|
5509
5538
|
scheme
|
|
5510
5539
|
} = useRootTheme(), {
|
|
5511
5540
|
activeElement,
|
|
@@ -5517,88 +5546,88 @@ function MenuGroup(props) {
|
|
|
5517
5546
|
registerElement
|
|
5518
5547
|
} = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, [rootElement, setRootElement] = react.useState(null), [open, setOpen] = react.useState(!1), [shouldFocus, setShouldFocus] = react.useState(null), active = !!activeElement && activeElement === rootElement, [withinMenu, setWithinMenu] = react.useState(!1);
|
|
5519
5548
|
let t6;
|
|
5520
|
-
$[
|
|
5549
|
+
$[15] !== onItemMouseEnter ? (t6 = (event) => {
|
|
5521
5550
|
setWithinMenu(!1), onItemMouseEnter(event), setOpen(!0);
|
|
5522
|
-
}, $[
|
|
5551
|
+
}, $[15] = onItemMouseEnter, $[16] = t6) : t6 = $[16];
|
|
5523
5552
|
const handleMouseEnter = t6;
|
|
5524
5553
|
let t7;
|
|
5525
|
-
$[
|
|
5554
|
+
$[17] !== rootElement ? (t7 = (event_0) => {
|
|
5526
5555
|
event_0.key === "ArrowLeft" && (event_0.stopPropagation(), setOpen(!1), requestAnimationFrame(() => {
|
|
5527
5556
|
rootElement?.focus();
|
|
5528
5557
|
}));
|
|
5529
|
-
}, $[
|
|
5558
|
+
}, $[17] = rootElement, $[18] = t7) : t7 = $[18];
|
|
5530
5559
|
const handleMenuKeyDown = t7;
|
|
5531
5560
|
let t8;
|
|
5532
|
-
$[
|
|
5561
|
+
$[19] !== onClick ? (t8 = (event_1) => {
|
|
5533
5562
|
onClick?.(event_1), setShouldFocus("first"), setOpen(!0);
|
|
5534
|
-
}, $[
|
|
5563
|
+
}, $[19] = onClick, $[20] = t8) : t8 = $[20];
|
|
5535
5564
|
const handleClick = t8;
|
|
5536
5565
|
let t9;
|
|
5537
|
-
$[
|
|
5566
|
+
$[21] !== onItemClick ? (t9 = () => {
|
|
5538
5567
|
setOpen(!1), onItemClick?.();
|
|
5539
|
-
}, $[
|
|
5568
|
+
}, $[21] = onItemClick, $[22] = t9) : t9 = $[22];
|
|
5540
5569
|
const handleChildItemClick = t9;
|
|
5541
5570
|
let t10;
|
|
5542
|
-
$[
|
|
5571
|
+
$[23] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => setWithinMenu(!0), $[23] = t10) : t10 = $[23];
|
|
5543
5572
|
const handleMenuMouseEnter = t10;
|
|
5544
5573
|
let t11, t12;
|
|
5545
|
-
$[
|
|
5574
|
+
$[24] !== mount || $[25] !== rootElement ? (t11 = () => mount(rootElement), t12 = [mount, rootElement], $[24] = mount, $[25] = rootElement, $[26] = t11, $[27] = t12) : (t11 = $[26], t12 = $[27]), react.useEffect(t11, t12);
|
|
5546
5575
|
let t13, t14;
|
|
5547
|
-
$[
|
|
5576
|
+
$[28] !== active ? (t13 = () => {
|
|
5548
5577
|
active || setOpen(!1);
|
|
5549
|
-
}, t14 = [active], $[
|
|
5578
|
+
}, t14 = [active], $[28] = active, $[29] = t13, $[30] = t14) : (t13 = $[29], t14 = $[30]), react.useEffect(t13, t14);
|
|
5550
5579
|
let t15, t16;
|
|
5551
|
-
$[
|
|
5580
|
+
$[31] !== open ? (t15 = () => {
|
|
5552
5581
|
open || setWithinMenu(!1);
|
|
5553
|
-
}, t16 = [open], $[
|
|
5582
|
+
}, t16 = [open], $[31] = open, $[32] = t15, $[33] = t16) : (t15 = $[32], t16 = $[33]), react.useEffect(t15, t16);
|
|
5554
5583
|
let t17, t18;
|
|
5555
|
-
$[
|
|
5584
|
+
$[34] !== shouldFocus ? (t17 = () => {
|
|
5556
5585
|
if (!shouldFocus)
|
|
5557
5586
|
return;
|
|
5558
5587
|
const rafId = requestAnimationFrame(() => setShouldFocus(null));
|
|
5559
5588
|
return () => cancelAnimationFrame(rafId);
|
|
5560
|
-
}, t18 = [shouldFocus], $[
|
|
5589
|
+
}, t18 = [shouldFocus], $[34] = shouldFocus, $[35] = t17, $[36] = t18) : (t17 = $[35], t18 = $[36]), react.useEffect(t17, t18);
|
|
5561
5590
|
let t19;
|
|
5562
|
-
$[
|
|
5591
|
+
$[37] !== children || $[38] !== handleChildItemClick || $[39] !== handleMenuKeyDown || $[40] !== menuProps || $[41] !== onClickOutside || $[42] !== onEscape || $[43] !== registerElement || $[44] !== shouldFocus ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(Menu, { ...menuProps, onClickOutside, onEscape, onItemClick: handleChildItemClick, onKeyDown: handleMenuKeyDown, onMouseEnter: handleMenuMouseEnter, registerElement, shouldFocus, children }), $[37] = children, $[38] = handleChildItemClick, $[39] = handleMenuKeyDown, $[40] = menuProps, $[41] = onClickOutside, $[42] = onEscape, $[43] = registerElement, $[44] = shouldFocus, $[45] = t19) : t19 = $[45];
|
|
5563
5592
|
const childMenu = t19;
|
|
5564
5593
|
let t20;
|
|
5565
|
-
$[
|
|
5594
|
+
$[46] === Symbol.for("react.memo_cache_sentinel") ? (t20 = (event_2) => {
|
|
5566
5595
|
const target = event_2.currentTarget;
|
|
5567
5596
|
if (document.activeElement === target && event_2.key === "ArrowRight") {
|
|
5568
5597
|
setShouldFocus("first"), setOpen(!0), setWithinMenu(!0);
|
|
5569
5598
|
return;
|
|
5570
5599
|
}
|
|
5571
|
-
}, $[
|
|
5600
|
+
}, $[46] = t20) : t20 = $[46];
|
|
5572
5601
|
const handleKeyDown = t20, t21 = as === "button" ? withinMenu : void 0, t22 = as !== "button" ? withinMenu : void 0, t23 = !withinMenu && active ? "" : void 0;
|
|
5573
5602
|
let t24;
|
|
5574
|
-
$[
|
|
5603
|
+
$[47] !== radius ? (t24 = _getArrayProp(radius), $[47] = radius, $[48] = t24) : t24 = $[48];
|
|
5575
5604
|
const t25 = as === "button" ? "button" : void 0;
|
|
5576
5605
|
let t26;
|
|
5577
|
-
$[
|
|
5606
|
+
$[49] !== IconComponent || $[50] !== fontSize2 ? (t26 = IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
5578
5607
|
react.isValidElement(IconComponent) && IconComponent,
|
|
5579
5608
|
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
5580
|
-
] }), $[
|
|
5609
|
+
] }), $[49] = IconComponent, $[50] = fontSize2, $[51] = t26) : t26 = $[51];
|
|
5581
5610
|
let t27;
|
|
5582
|
-
$[
|
|
5611
|
+
$[52] !== fontSize2 || $[53] !== text ? (t27 = /* @__PURE__ */ jsxRuntime.jsx(Box, { flex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, textOverflow: "ellipsis", weight: "medium", children: text }) }), $[52] = fontSize2, $[53] = text, $[54] = t27) : t27 = $[54];
|
|
5583
5612
|
let t28;
|
|
5584
|
-
$[
|
|
5613
|
+
$[55] === Symbol.for("react.memo_cache_sentinel") ? (t28 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronRightIcon, {}), $[55] = t28) : t28 = $[55];
|
|
5585
5614
|
let t29;
|
|
5586
|
-
$[
|
|
5615
|
+
$[56] !== fontSize2 ? (t29 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children: t28 }), $[56] = fontSize2, $[57] = t29) : t29 = $[57];
|
|
5587
5616
|
let t30;
|
|
5588
|
-
$[
|
|
5617
|
+
$[58] !== padding || $[59] !== spacing || $[60] !== t26 || $[61] !== t27 || $[62] !== t29 ? (t30 = /* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: spacing, padding, children: [
|
|
5589
5618
|
t26,
|
|
5590
5619
|
t27,
|
|
5591
5620
|
t29
|
|
5592
|
-
] }), $[
|
|
5621
|
+
] }), $[58] = padding, $[59] = spacing, $[60] = t26, $[61] = t27, $[62] = t29, $[63] = t30) : t30 = $[63];
|
|
5593
5622
|
let t31;
|
|
5594
|
-
$[
|
|
5623
|
+
$[64] !== as || $[65] !== handleClick || $[66] !== handleMouseEnter || $[67] !== restProps || $[68] !== scheme || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 || $[73] !== t25 || $[74] !== t30 || $[75] !== tone ? (t31 = /* @__PURE__ */ jsxRuntime.jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[64] = as, $[65] = handleClick, $[66] = handleMouseEnter, $[67] = restProps, $[68] = scheme, $[69] = t21, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25, $[74] = t30, $[75] = tone, $[76] = t31) : t31 = $[76];
|
|
5595
5624
|
let t32;
|
|
5596
|
-
return $[
|
|
5625
|
+
return $[77] !== childMenu || $[78] !== open || $[79] !== popover || $[80] !== t31 ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[77] = childMenu, $[78] = open, $[79] = popover, $[80] = t31, $[81] = t32) : t32 = $[81], t32;
|
|
5597
5626
|
}
|
|
5598
|
-
|
|
5599
|
-
const
|
|
5600
|
-
const $ = reactCompilerRuntime.c(
|
|
5601
|
-
let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
|
|
5627
|
+
MenuGroupComponent.displayName = "MenuGroup";
|
|
5628
|
+
const MenuGroup = MenuGroupComponent, MenuItemComponent = react.forwardRef(function(props, forwardedRef) {
|
|
5629
|
+
const $ = reactCompilerRuntime.c(76);
|
|
5630
|
+
let IconComponent, IconRightComponent, children, disabled, gap, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
|
|
5602
5631
|
$[0] !== props ? ({
|
|
5603
5632
|
as: t0,
|
|
5604
5633
|
children,
|
|
@@ -5618,12 +5647,13 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
|
|
|
5618
5647
|
pressed,
|
|
5619
5648
|
radius: t3,
|
|
5620
5649
|
selected: selectedProp,
|
|
5650
|
+
gap,
|
|
5621
5651
|
space: t4,
|
|
5622
5652
|
text,
|
|
5623
5653
|
tone: t5,
|
|
5624
5654
|
...restProps
|
|
5625
|
-
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] =
|
|
5626
|
-
const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3,
|
|
5655
|
+
} = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = gap, $[6] = hotkeys, $[7] = onClick, $[8] = paddingBottom, $[9] = paddingLeft, $[10] = paddingRight, $[11] = paddingTop, $[12] = paddingX, $[13] = paddingY, $[14] = pressed, $[15] = restProps, $[16] = selectedProp, $[17] = t0, $[18] = t1, $[19] = t2, $[20] = t3, $[21] = t4, $[22] = t5, $[23] = text) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], gap = $[5], hotkeys = $[6], onClick = $[7], paddingBottom = $[8], paddingLeft = $[9], paddingRight = $[10], paddingTop = $[11], paddingX = $[12], paddingY = $[13], pressed = $[14], restProps = $[15], selectedProp = $[16], t0 = $[17], t1 = $[18], t2 = $[19], t3 = $[20], t4 = $[21], t5 = $[22], text = $[23]);
|
|
5656
|
+
const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, deprecated_space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, spacing = gap === void 0 ? deprecated_space : gap, {
|
|
5627
5657
|
scheme
|
|
5628
5658
|
} = useRootTheme(), menu = useMenu(), {
|
|
5629
5659
|
activeElement,
|
|
@@ -5633,16 +5663,16 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
|
|
|
5633
5663
|
onItemMouseLeave: _onItemMouseLeave
|
|
5634
5664
|
} = menu, onItemMouseEnter = _onItemMouseEnter ?? menu.onItemMouseEnter, onItemMouseLeave = _onItemMouseLeave ?? menu.onItemMouseLeave, [rootElement, setRootElement] = react.useState(null), active = !!activeElement && activeElement === rootElement, ref = react.useRef(null);
|
|
5635
5665
|
let t6;
|
|
5636
|
-
$[
|
|
5666
|
+
$[24] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[24] = t6) : t6 = $[24], react.useImperativeHandle(forwardedRef, t6);
|
|
5637
5667
|
let t7, t8;
|
|
5638
|
-
$[
|
|
5668
|
+
$[25] !== mount || $[26] !== rootElement || $[27] !== selectedProp ? (t7 = () => mount(rootElement, selectedProp), t8 = [mount, rootElement, selectedProp], $[25] = mount, $[26] = rootElement, $[27] = selectedProp, $[28] = t7, $[29] = t8) : (t7 = $[28], t8 = $[29]), react.useEffect(t7, t8);
|
|
5639
5669
|
let t9;
|
|
5640
|
-
$[
|
|
5670
|
+
$[30] !== disabled || $[31] !== onClick || $[32] !== onItemClick ? (t9 = (event) => {
|
|
5641
5671
|
disabled || (onClick && onClick(event), onItemClick && onItemClick());
|
|
5642
|
-
}, $[
|
|
5672
|
+
}, $[30] = disabled, $[31] = onClick, $[32] = onItemClick, $[33] = t9) : t9 = $[33];
|
|
5643
5673
|
const handleClick = t9;
|
|
5644
5674
|
let t10;
|
|
5645
|
-
$[
|
|
5675
|
+
$[34] !== padding || $[35] !== paddingBottom || $[36] !== paddingLeft || $[37] !== paddingRight || $[38] !== paddingTop || $[39] !== paddingX || $[40] !== paddingY ? (t10 = {
|
|
5646
5676
|
padding,
|
|
5647
5677
|
paddingX,
|
|
5648
5678
|
paddingY,
|
|
@@ -5650,23 +5680,23 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
|
|
|
5650
5680
|
paddingRight,
|
|
5651
5681
|
paddingBottom,
|
|
5652
5682
|
paddingLeft
|
|
5653
|
-
}, $[
|
|
5683
|
+
}, $[34] = padding, $[35] = paddingBottom, $[36] = paddingLeft, $[37] = paddingRight, $[38] = paddingTop, $[39] = paddingX, $[40] = paddingY, $[41] = t10) : t10 = $[41];
|
|
5654
5684
|
const paddingProps = t10;
|
|
5655
5685
|
let t11;
|
|
5656
|
-
$[
|
|
5686
|
+
$[42] !== fontSize2 ? (t11 = _getArrayProp(fontSize2).map(_temp), $[42] = fontSize2, $[43] = t11) : t11 = $[43];
|
|
5657
5687
|
const hotkeysFontSize = t11;
|
|
5658
5688
|
let t12;
|
|
5659
|
-
$[
|
|
5689
|
+
$[44] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (el) => {
|
|
5660
5690
|
ref.current = el, setRootElement(el);
|
|
5661
|
-
}, $[
|
|
5691
|
+
}, $[44] = t12) : t12 = $[44];
|
|
5662
5692
|
const setRef = t12, t13 = as !== "button" && pressed ? "" : void 0, t14 = active ? "" : void 0, t15 = disabled ? "" : void 0;
|
|
5663
5693
|
let t16;
|
|
5664
|
-
$[
|
|
5694
|
+
$[45] !== radius ? (t16 = _getArrayProp(radius), $[45] = radius, $[46] = t16) : t16 = $[46];
|
|
5665
5695
|
let t17;
|
|
5666
|
-
$[
|
|
5696
|
+
$[47] === Symbol.for("react.memo_cache_sentinel") ? (t17 = _getArrayProp(0), $[47] = t17) : t17 = $[47];
|
|
5667
5697
|
const t18 = disabled ? "default" : tone, t19 = as === "button" ? "button" : void 0;
|
|
5668
5698
|
let t20;
|
|
5669
|
-
$[
|
|
5699
|
+
$[48] !== IconComponent || $[49] !== IconRightComponent || $[50] !== fontSize2 || $[51] !== hotkeys || $[52] !== hotkeysFontSize || $[53] !== paddingProps || $[54] !== spacing || $[55] !== text ? (t20 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", gap: spacing, align: "center", ...paddingProps, children: [
|
|
5670
5700
|
IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
|
|
5671
5701
|
react.isValidElement(IconComponent) && IconComponent,
|
|
5672
5702
|
ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
|
|
@@ -5680,16 +5710,17 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
|
|
|
5680
5710
|
react.isValidElement(IconRightComponent) && IconRightComponent,
|
|
5681
5711
|
ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
|
|
5682
5712
|
] })
|
|
5683
|
-
] }), $[
|
|
5713
|
+
] }), $[48] = IconComponent, $[49] = IconRightComponent, $[50] = fontSize2, $[51] = hotkeys, $[52] = hotkeysFontSize, $[53] = paddingProps, $[54] = spacing, $[55] = text, $[56] = t20) : t20 = $[56];
|
|
5684
5714
|
let t21;
|
|
5685
|
-
$[
|
|
5715
|
+
$[57] !== children || $[58] !== paddingProps ? (t21 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...paddingProps, children }), $[57] = children, $[58] = paddingProps, $[59] = t21) : t21 = $[59];
|
|
5686
5716
|
let t22;
|
|
5687
|
-
return $[
|
|
5717
|
+
return $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== restProps || $[66] !== scheme || $[67] !== t13 || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t18 || $[72] !== t19 || $[73] !== t20 || $[74] !== t21 ? (t22 = /* @__PURE__ */ jsxRuntime.jsxs(Selectable, { "data-ui": "MenuItem", role: "menuitem", ...restProps, "data-pressed": t13, "data-selected": t14, "data-disabled": t15, forwardedAs: as, $radius: t16, $padding: t17, $tone: t18, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, tabIndex: -1, type: t19, children: [
|
|
5688
5718
|
t20,
|
|
5689
5719
|
t21
|
|
5690
|
-
] }), $[
|
|
5720
|
+
] }), $[60] = as, $[61] = disabled, $[62] = handleClick, $[63] = onItemMouseEnter, $[64] = onItemMouseLeave, $[65] = restProps, $[66] = scheme, $[67] = t13, $[68] = t14, $[69] = t15, $[70] = t16, $[71] = t18, $[72] = t19, $[73] = t20, $[74] = t21, $[75] = t22) : t22 = $[75], t22;
|
|
5691
5721
|
});
|
|
5692
|
-
|
|
5722
|
+
MenuItemComponent.displayName = "ForwardRef(MenuItem)";
|
|
5723
|
+
const MenuItem = MenuItemComponent;
|
|
5693
5724
|
function _temp(s) {
|
|
5694
5725
|
return s - 1;
|
|
5695
5726
|
}
|