@sanity/ui 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/refractor.js +1 -1
- package/dist/_chunks/refractor.js.map +1 -1
- package/dist/_chunks/refractor.mjs +0 -1
- package/dist/_chunks/refractor.mjs.map +1 -1
- package/dist/_chunks/tabList.js +96 -197
- package/dist/_chunks/tabList.js.map +1 -1
- package/dist/_chunks/tabList.mjs +95 -197
- package/dist/_chunks/tabList.mjs.map +1 -1
- package/dist/_chunks/useTheme.d.mts +0 -15
- package/dist/_chunks/useTheme.d.mts.map +1 -1
- package/dist/_chunks/useTheme.d.ts +0 -15
- package/dist/_chunks/useTheme.d.ts.map +1 -1
- package/dist/index.d.mts +0 -21
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +0 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -184
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -184
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -100,8 +100,8 @@ function labelBaseStyle(props) {
|
|
|
100
100
|
}
|
|
101
101
|
const StyledLabel = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
102
102
|
displayName: "StyledLabel",
|
|
103
|
-
componentId: "sc-
|
|
104
|
-
})(responsiveLabelFont, require_tabList.lt, labelBaseStyle),
|
|
103
|
+
componentId: "sc-rdxcu9-0"
|
|
104
|
+
})(responsiveLabelFont, require_tabList.lt, labelBaseStyle), Label = (0, react.forwardRef)(function Label(props, ref) {
|
|
105
105
|
let $ = (0, react_compiler_runtime.c)(26), accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
|
|
106
106
|
$[0] === props ? (accent = $[1], align = $[2], childrenProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], textOverflow = $[7], weight = $[8]) : ({accent, align, children: childrenProp, muted: t0, size: t1, textOverflow, weight, ...restProps} = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = childrenProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = textOverflow, $[8] = weight);
|
|
107
107
|
let muted = t0 !== void 0 && t0, size = t1 === void 0 ? 2 : t1, children = childrenProp;
|
|
@@ -128,14 +128,7 @@ const StyledLabel = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
|
128
128
|
ref,
|
|
129
129
|
children
|
|
130
130
|
}), $[17] = accent, $[18] = children, $[19] = muted, $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3, $[24] = weight, $[25] = t4) : t4 = $[25], t4;
|
|
131
|
-
})
|
|
132
|
-
LabelComponent.displayName = "ForwardRef(Label)";
|
|
133
|
-
/**
|
|
134
|
-
* Typographic labels.
|
|
135
|
-
*
|
|
136
|
-
* @public
|
|
137
|
-
*/
|
|
138
|
-
const Label = LabelComponent, avatarStyle = {
|
|
131
|
+
}), avatarStyle = {
|
|
139
132
|
root: avatarRootStyle,
|
|
140
133
|
arrow: avatarArrowStyle,
|
|
141
134
|
bgStroke: avatarBgStrokeStyle,
|
|
@@ -254,26 +247,26 @@ function avatarStrokeStyle() {
|
|
|
254
247
|
}
|
|
255
248
|
const StyledAvatar = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
256
249
|
displayName: "StyledAvatar",
|
|
257
|
-
componentId: "sc-
|
|
250
|
+
componentId: "sc-skil6v-0"
|
|
258
251
|
})(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1 = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
259
252
|
displayName: "Arrow",
|
|
260
|
-
componentId: "sc-
|
|
253
|
+
componentId: "sc-skil6v-1"
|
|
261
254
|
})(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styled_components.styled.ellipse.withConfig({
|
|
262
255
|
displayName: "BgStroke",
|
|
263
|
-
componentId: "sc-
|
|
256
|
+
componentId: "sc-skil6v-2"
|
|
264
257
|
})(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styled_components.styled.ellipse.withConfig({
|
|
265
258
|
displayName: "Stroke",
|
|
266
|
-
componentId: "sc-
|
|
259
|
+
componentId: "sc-skil6v-3"
|
|
267
260
|
})(avatarStyle.stroke), Initials = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
268
261
|
displayName: "Initials",
|
|
269
|
-
componentId: "sc-
|
|
262
|
+
componentId: "sc-skil6v-4"
|
|
270
263
|
})(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ (0, styled_components.styled)(Label).withConfig({
|
|
271
264
|
displayName: "InitialsLabel",
|
|
272
|
-
componentId: "sc-
|
|
265
|
+
componentId: "sc-skil6v-5"
|
|
273
266
|
})({ color: "inherit" }), AvatarImage = /* @__PURE__ */ styled_components.styled.svg.withConfig({
|
|
274
267
|
displayName: "AvatarImage",
|
|
275
|
-
componentId: "sc-
|
|
276
|
-
})(avatarStyle.image),
|
|
268
|
+
componentId: "sc-skil6v-6"
|
|
269
|
+
})(avatarStyle.image), Avatar = (0, react.forwardRef)(function Avatar(props, ref) {
|
|
277
270
|
let $ = (0, react_compiler_runtime.c)(46), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
|
|
278
271
|
$[0] === props ? (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], restProps = $[7], src = $[8], t0 = $[9], t1 = $[10], t2 = $[11], title = $[12]) : ({__unstable_hideInnerStroke, as: asProp, color: t0, src, title, initials, onImageLoadError, arrowPosition: arrowPositionProp, animateArrowFrom, status: t1, size: t2, ...restProps} = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = restProps, $[8] = src, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = title);
|
|
279
272
|
let color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, { avatar } = require_tabList.rt(), as = react_is.default.isValidElementType(asProp) ? asProp : "div", size = require_tabList.ft(sizeProp), _sizeRem = (avatar.sizes[size[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = (0, react.useId)(), [arrowPosition, setArrowPosition] = (0, react.useState)(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = (0, react.useState)(!1), imageId = `avatar-image-${elementId}`, t3, t4;
|
|
@@ -365,13 +358,6 @@ const StyledAvatar = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
|
365
358
|
]
|
|
366
359
|
}), $[32] = T0, $[33] = arrowPosition, $[34] = as, $[35] = color, $[36] = ref, $[37] = restProps, $[38] = size, $[39] = status, $[40] = t10, $[41] = t11, $[42] = t12, $[43] = t8, $[44] = title, $[45] = t13) : t13 = $[45], t13;
|
|
367
360
|
});
|
|
368
|
-
AvatarComponent.displayName = "ForwardRef(Avatar)";
|
|
369
|
-
/**
|
|
370
|
-
* Avatars are used to represent people and other agents (e.g. bots).
|
|
371
|
-
*
|
|
372
|
-
* @public
|
|
373
|
-
*/
|
|
374
|
-
const Avatar = AvatarComponent;
|
|
375
361
|
function _temp$4(s) {
|
|
376
362
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
377
363
|
}
|
|
@@ -392,8 +378,8 @@ function _avatarCounterBaseStyle(props) {
|
|
|
392
378
|
}
|
|
393
379
|
const StyledAvatarCounter = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
394
380
|
displayName: "StyledAvatarCounter",
|
|
395
|
-
componentId: "sc-
|
|
396
|
-
})(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = (0, react.forwardRef)(function(props, ref) {
|
|
381
|
+
componentId: "sc-6uv8jj-0"
|
|
382
|
+
})(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseStyle), AvatarCounter = (0, react.forwardRef)(function AvatarCounter(props, ref) {
|
|
397
383
|
let $ = (0, react_compiler_runtime.c)(20), { count, size: t0 } = props, sizeProp = t0 === void 0 ? 1 : t0, T0, T1, t1, t2, t3, t4, t5;
|
|
398
384
|
if ($[0] !== ref || $[1] !== sizeProp) {
|
|
399
385
|
let size = require_tabList.ft(sizeProp);
|
|
@@ -414,7 +400,6 @@ const StyledAvatarCounter = /* @__PURE__ */ styled_components.styled.div.withCon
|
|
|
414
400
|
children: t6
|
|
415
401
|
}), $[14] = T1, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19], t7;
|
|
416
402
|
});
|
|
417
|
-
AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
|
|
418
403
|
function _temp$3(s) {
|
|
419
404
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
420
405
|
}
|
|
@@ -431,8 +416,8 @@ function responsiveAvatarStackSizeStyle(props) {
|
|
|
431
416
|
}
|
|
432
417
|
const StyledAvatarStack = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
433
418
|
displayName: "StyledAvatarStack",
|
|
434
|
-
componentId: "sc-
|
|
435
|
-
})(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = (0, react.forwardRef)(function(props, ref) {
|
|
419
|
+
componentId: "sc-ttibh-0"
|
|
420
|
+
})(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = (0, react.forwardRef)(function AvatarStack(props, ref) {
|
|
436
421
|
let $ = (0, react_compiler_runtime.c)(38), childrenProp, restProps, t0, t1;
|
|
437
422
|
$[0] === props ? (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]) : ({children: childrenProp, maxLength: t0, size: t1, ...restProps} = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1);
|
|
438
423
|
let maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, T0, t2, t3, t4, t5, t6, t7, t8;
|
|
@@ -463,7 +448,6 @@ const StyledAvatarStack = /* @__PURE__ */ styled_components.styled.div.withConfi
|
|
|
463
448
|
]
|
|
464
449
|
}), $[29] = T0, $[30] = t2, $[31] = t3, $[32] = t4, $[33] = t5, $[34] = t6, $[35] = t7, $[36] = t8, $[37] = t9) : t9 = $[37], t9;
|
|
465
450
|
});
|
|
466
|
-
AvatarStack.displayName = "ForwardRef(AvatarStack)";
|
|
467
451
|
function badgeStyle(props) {
|
|
468
452
|
let { $tone } = props;
|
|
469
453
|
return {
|
|
@@ -479,8 +463,8 @@ function badgeStyle(props) {
|
|
|
479
463
|
}
|
|
480
464
|
const StyledBadge = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
|
|
481
465
|
displayName: "StyledBadge",
|
|
482
|
-
componentId: "sc-
|
|
483
|
-
})(require_tabList.K, badgeStyle),
|
|
466
|
+
componentId: "sc-nx309b-0"
|
|
467
|
+
})(require_tabList.K, badgeStyle), Badge = (0, react.forwardRef)(function Badge(props, ref) {
|
|
484
468
|
let $ = (0, react_compiler_runtime.c)(21), children, restProps, t0, t1, t2, t3;
|
|
485
469
|
if ($[0] !== props) {
|
|
486
470
|
let { children: t4, fontSize: t5, mode: _deprecated_mode, padding: t6, radius: t7, tone: t8, ...t9 } = props;
|
|
@@ -506,13 +490,6 @@ const StyledBadge = /* @__PURE__ */ (0, styled_components.styled)(require_tabLis
|
|
|
506
490
|
children: t6
|
|
507
491
|
}), $[14] = ref, $[15] = restProps, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = tone, $[20] = t7) : t7 = $[20], t7;
|
|
508
492
|
});
|
|
509
|
-
BadgeComponent.displayName = "ForwardRef(Badge)";
|
|
510
|
-
/**
|
|
511
|
-
* Badges are used to tag resources.
|
|
512
|
-
*
|
|
513
|
-
* @public
|
|
514
|
-
*/
|
|
515
|
-
const Badge = BadgeComponent;
|
|
516
493
|
/**
|
|
517
494
|
* @deprecated instead of `useArrayProp(width)` use `Array.isArray(width) ? width : [width]` instead
|
|
518
495
|
* @beta
|
|
@@ -633,11 +610,11 @@ function inputElementStyles(props) {
|
|
|
633
610
|
}
|
|
634
611
|
const StyledCheckbox = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
635
612
|
displayName: "StyledCheckbox",
|
|
636
|
-
componentId: "sc-
|
|
613
|
+
componentId: "sc-964wbx-0"
|
|
637
614
|
})(checkboxBaseStyles), Input$4 = /* @__PURE__ */ styled_components.styled.input.withConfig({
|
|
638
615
|
displayName: "Input",
|
|
639
|
-
componentId: "sc-
|
|
640
|
-
})(inputElementStyles), Checkbox = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
616
|
+
componentId: "sc-964wbx-1"
|
|
617
|
+
})(inputElementStyles), Checkbox = (0, react.forwardRef)(function Checkbox(props, forwardedRef) {
|
|
641
618
|
let $ = (0, react_compiler_runtime.c)(25), checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
|
|
642
619
|
$[0] === props ? (checked = $[1], className = $[2], customValidity = $[3], disabled = $[4], indeterminate = $[5], readOnly = $[6], restProps = $[7], style = $[8]) : ({checked, className, disabled, indeterminate, customValidity, readOnly, style, ...restProps} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = customValidity, $[4] = disabled, $[5] = indeterminate, $[6] = readOnly, $[7] = restProps, $[8] = style);
|
|
643
620
|
let ref = (0, react.useRef)(null), t0;
|
|
@@ -667,7 +644,6 @@ const StyledCheckbox = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
|
667
644
|
children: [t6, t7]
|
|
668
645
|
}), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8) : t8 = $[24], t8;
|
|
669
646
|
});
|
|
670
|
-
Checkbox.displayName = "ForwardRef(Checkbox)";
|
|
671
647
|
function codeSyntaxHighlightingStyle({ theme }) {
|
|
672
648
|
let { color: { syntax: color } } = require_theme.X(theme);
|
|
673
649
|
return {
|
|
@@ -714,8 +690,8 @@ function codeBaseStyle() {
|
|
|
714
690
|
}
|
|
715
691
|
const LazyRefractor = (0, react.lazy)(() => Promise.resolve().then(() => require("./_chunks/refractor.js"))), StyledCode = /* @__PURE__ */ styled_components.styled.pre.withConfig({
|
|
716
692
|
displayName: "StyledCode",
|
|
717
|
-
componentId: "sc-
|
|
718
|
-
})(codeBaseStyle, responsiveCodeFontStyle),
|
|
693
|
+
componentId: "sc-yq3svj-0"
|
|
694
|
+
})(codeBaseStyle, responsiveCodeFontStyle), Code = (0, react.forwardRef)(function Code(props, ref) {
|
|
719
695
|
let $ = (0, react_compiler_runtime.c)(22), children, language, restProps, t0, weight;
|
|
720
696
|
$[0] === props ? (children = $[1], language = $[2], restProps = $[3], t0 = $[4], weight = $[5]) : ({children, language, size: t0, weight, ...restProps} = props, $[0] = props, $[1] = children, $[2] = language, $[3] = restProps, $[4] = t0, $[5] = weight);
|
|
721
697
|
let size = t0 === void 0 ? 2 : t0, t1;
|
|
@@ -741,12 +717,7 @@ const LazyRefractor = (0, react.lazy)(() => Promise.resolve().then(() => require
|
|
|
741
717
|
ref,
|
|
742
718
|
children: t5
|
|
743
719
|
}), $[16] = ref, $[17] = restProps, $[18] = t1, $[19] = t2, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
|
|
744
|
-
})
|
|
745
|
-
CodeComponent.displayName = "ForwardRef(Code)";
|
|
746
|
-
/**
|
|
747
|
-
* @public
|
|
748
|
-
*/
|
|
749
|
-
const Code = CodeComponent, BASE_STYLE = {
|
|
720
|
+
}), BASE_STYLE = {
|
|
750
721
|
width: "100%",
|
|
751
722
|
margin: "0 auto"
|
|
752
723
|
};
|
|
@@ -759,8 +730,8 @@ function responsiveContainerWidthStyle(props) {
|
|
|
759
730
|
}
|
|
760
731
|
const StyledContainer = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
|
|
761
732
|
displayName: "StyledContainer",
|
|
762
|
-
componentId: "sc-
|
|
763
|
-
})(containerBaseStyle, responsiveContainerWidthStyle),
|
|
733
|
+
componentId: "sc-kuh7wj-0"
|
|
734
|
+
})(containerBaseStyle, responsiveContainerWidthStyle), Container = (0, react.forwardRef)(function Container(props, ref) {
|
|
764
735
|
let $ = (0, react_compiler_runtime.c)(11), as, restProps, t0;
|
|
765
736
|
$[0] === props ? (as = $[1], restProps = $[2], t0 = $[3]) : ({as, width: t0, ...restProps} = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0);
|
|
766
737
|
let width = t0 === void 0 ? 2 : t0, t1;
|
|
@@ -774,21 +745,14 @@ const StyledContainer = /* @__PURE__ */ (0, styled_components.styled)(require_ta
|
|
|
774
745
|
ref
|
|
775
746
|
}), $[6] = as, $[7] = ref, $[8] = restProps, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
|
|
776
747
|
});
|
|
777
|
-
ContainerComponent.displayName = "ForwardRef(Container)";
|
|
778
|
-
/**
|
|
779
|
-
* The `Container` component wraps content layout in a defined set of widths.
|
|
780
|
-
*
|
|
781
|
-
* @public
|
|
782
|
-
*/
|
|
783
|
-
const Container = ContainerComponent;
|
|
784
748
|
function headingBaseStyle(props) {
|
|
785
749
|
let { $accent, $muted } = props, { font } = require_theme.X(props.theme);
|
|
786
750
|
return styled_components.css`${$accent && styled_components.css`color:var(--card-accent-fg-color);`} ${$muted && styled_components.css`color:var(--card-muted-fg-color);`} & code{font-family:${font.code.family};border-radius:1px;}& a{text-decoration:none;border-radius:1px;color:var(--card-link-color);outline:none;@media (hover:hover){&:hover{text-decoration:underline;}}&:focus{box-shadow:0 0 0 1px var(--card-bg-color),0 0 0 3px var(--card-focus-ring-color);}&:focus:not(:focus-visible){box-shadow:none;}}& strong{font-weight:${font.heading.weights.bold};}& svg{display:inline;}& [data-sanity-icon]{vertical-align:baseline;}`;
|
|
787
751
|
}
|
|
788
752
|
const StyledHeading = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
789
753
|
displayName: "StyledHeading",
|
|
790
|
-
componentId: "sc-
|
|
791
|
-
})(headingBaseStyle, require_tabList.lt, responsiveHeadingFont),
|
|
754
|
+
componentId: "sc-48fn8j-0"
|
|
755
|
+
})(headingBaseStyle, require_tabList.lt, responsiveHeadingFont), Heading = (0, react.forwardRef)(function Heading(props, ref) {
|
|
792
756
|
let $ = (0, react_compiler_runtime.c)(26), align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
|
|
793
757
|
$[0] === props ? (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]) : ({accent: t0, align, children: childrenProp, muted: t1, size: t2, textOverflow, weight, ...restProps} = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight);
|
|
794
758
|
let accent = t0 !== void 0 && t0, muted = t1 !== void 0 && t1, size = t2 === void 0 ? 2 : t2, children = childrenProp;
|
|
@@ -815,13 +779,6 @@ const StyledHeading = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
|
815
779
|
children: t5
|
|
816
780
|
}), $[17] = accent, $[18] = muted, $[19] = ref, $[20] = restProps, $[21] = t3, $[22] = t4, $[23] = t5, $[24] = weight, $[25] = t6) : t6 = $[25], t6;
|
|
817
781
|
});
|
|
818
|
-
HeadingComponent.displayName = "ForwardRef(Heading)";
|
|
819
|
-
/**
|
|
820
|
-
* Typographic headings.
|
|
821
|
-
*
|
|
822
|
-
* @public
|
|
823
|
-
*/
|
|
824
|
-
const Heading = HeadingComponent;
|
|
825
782
|
/**
|
|
826
783
|
* @public
|
|
827
784
|
*/
|
|
@@ -837,7 +794,6 @@ function BoundaryElementProvider(props) {
|
|
|
837
794
|
children
|
|
838
795
|
}), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
|
|
839
796
|
}
|
|
840
|
-
BoundaryElementProvider.displayName = "BoundaryElementProvider";
|
|
841
797
|
/**
|
|
842
798
|
* @internal
|
|
843
799
|
* @deprecated this component will be removed in the next major release
|
|
@@ -845,7 +801,6 @@ BoundaryElementProvider.displayName = "BoundaryElementProvider";
|
|
|
845
801
|
function ConditionalWrapper({ children, condition, wrapper }) {
|
|
846
802
|
return condition ? wrapper(children) : children;
|
|
847
803
|
}
|
|
848
|
-
ConditionalWrapper.displayName = "ConditionalWrapper";
|
|
849
804
|
function findMaxBreakpoints(media, width) {
|
|
850
805
|
let ret = [];
|
|
851
806
|
for (let i = 0; i < media.length; i += 1) media[i] > width && ret.push(i);
|
|
@@ -860,7 +815,7 @@ function findMinBreakpoints(media, width) {
|
|
|
860
815
|
* DO NOT USE IN PRODUCTION.
|
|
861
816
|
* @beta
|
|
862
817
|
*/
|
|
863
|
-
const ElementQuery = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
818
|
+
const ElementQuery = (0, react.forwardRef)(function ElementQuery(props, forwardedRef) {
|
|
864
819
|
let $ = (0, react_compiler_runtime.c)(18), theme = require_tabList.rt(), _media, children, restProps;
|
|
865
820
|
$[0] === props ? (_media = $[1], children = $[2], restProps = $[3]) : ({children, media: _media, ...restProps} = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps);
|
|
866
821
|
let media = _media ?? theme.media, [element, setElement] = (0, react.useState)(null), width = require_tabList.N(element)?.border.width ?? window.innerWidth, t0;
|
|
@@ -885,7 +840,6 @@ const ElementQuery = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
|
885
840
|
children
|
|
886
841
|
}), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t4) : t4 = $[17], t4;
|
|
887
842
|
});
|
|
888
|
-
ElementQuery.displayName = "ForwardRef(ElementQuery)";
|
|
889
843
|
/**
|
|
890
844
|
* DO NOT USE IN PRODUCTION
|
|
891
845
|
* @beta
|
|
@@ -908,8 +862,8 @@ var ErrorBoundary = class extends react.Component {
|
|
|
908
862
|
};
|
|
909
863
|
const StyledSrOnly = styled_components.styled.div.withConfig({
|
|
910
864
|
displayName: "StyledSrOnly",
|
|
911
|
-
componentId: "sc-
|
|
912
|
-
})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = (0, react.forwardRef)(function(props, ref) {
|
|
865
|
+
componentId: "sc-ow9exq-0"
|
|
866
|
+
})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`, SrOnly = (0, react.forwardRef)(function SrOnly(props, ref) {
|
|
913
867
|
let $ = (0, react_compiler_runtime.c)(4), { as, children } = props, t0;
|
|
914
868
|
return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StyledSrOnly, {
|
|
915
869
|
"aria-hidden": !0,
|
|
@@ -918,15 +872,13 @@ const StyledSrOnly = styled_components.styled.div.withConfig({
|
|
|
918
872
|
ref,
|
|
919
873
|
children
|
|
920
874
|
}), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
|
|
921
|
-
})
|
|
922
|
-
SrOnly.displayName = "ForwardRef(SrOnly)";
|
|
923
|
-
const StyledVirtualList = styled_components.styled.div.withConfig({
|
|
875
|
+
}), StyledVirtualList = styled_components.styled.div.withConfig({
|
|
924
876
|
displayName: "StyledVirtualList",
|
|
925
|
-
componentId: "sc-
|
|
877
|
+
componentId: "sc-ok1q5x-0"
|
|
926
878
|
})`position:relative;`, ItemWrapper = styled_components.styled.div.withConfig({
|
|
927
879
|
displayName: "ItemWrapper",
|
|
928
|
-
componentId: "sc-
|
|
929
|
-
})`position:absolute;left:0;right:0;`, VirtualList = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
880
|
+
componentId: "sc-ok1q5x-1"
|
|
881
|
+
})`position:absolute;left:0;right:0;`, VirtualList = (0, react.forwardRef)(function VirtualList(props, forwardedRef) {
|
|
930
882
|
let $ = (0, react_compiler_runtime.c)(44), getItemKey, onChange, renderItem, restProps, t0, t1, t2;
|
|
931
883
|
$[0] === props ? (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]) : ({as: t0, gap: t1, getItemKey, items: t2, onChange, renderItem, ...restProps} = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2);
|
|
932
884
|
let as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1, t3;
|
|
@@ -1015,7 +967,6 @@ const StyledVirtualList = styled_components.styled.div.withConfig({
|
|
|
1015
967
|
children: t13
|
|
1016
968
|
}), $[40] = as, $[41] = restProps, $[42] = t13, $[43] = t14) : t14 = $[43], t14;
|
|
1017
969
|
});
|
|
1018
|
-
VirtualList.displayName = "ForwardRef(VirtualList)";
|
|
1019
970
|
function useChildren(t0) {
|
|
1020
971
|
let $ = (0, react_compiler_runtime.c)(21), { fromIndex, gap, getItemKey, itemHeight, items, renderItem, space, toIndex } = t0;
|
|
1021
972
|
if (!renderItem || items.length === 0) return null;
|
|
@@ -1067,11 +1018,11 @@ function inputElementStyle(props) {
|
|
|
1067
1018
|
}
|
|
1068
1019
|
const StyledRadio = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
1069
1020
|
displayName: "StyledRadio",
|
|
1070
|
-
componentId: "sc-
|
|
1021
|
+
componentId: "sc-zbat2j-0"
|
|
1071
1022
|
})(radioBaseStyle), Input$3 = /* @__PURE__ */ styled_components.styled.input.withConfig({
|
|
1072
1023
|
displayName: "Input",
|
|
1073
|
-
componentId: "sc-
|
|
1074
|
-
})(inputElementStyle), Radio = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
1024
|
+
componentId: "sc-zbat2j-1"
|
|
1025
|
+
})(inputElementStyle), Radio = (0, react.forwardRef)(function Radio(props, forwardedRef) {
|
|
1075
1026
|
let $ = (0, react_compiler_runtime.c)(19), className, customValidity, disabled, readOnly, restProps, style;
|
|
1076
1027
|
$[0] === props ? (className = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], style = $[6]) : ({className, disabled, style, customValidity, readOnly, ...restProps} = props, $[0] = props, $[1] = className, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = style);
|
|
1077
1028
|
let ref = (0, react.useRef)(null), t0;
|
|
@@ -1096,7 +1047,6 @@ const StyledRadio = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
|
1096
1047
|
children: [t4, t5]
|
|
1097
1048
|
}), $[15] = className, $[16] = style, $[17] = t4, $[18] = t6) : t6 = $[18], t6;
|
|
1098
1049
|
});
|
|
1099
|
-
Radio.displayName = "ForwardRef(Radio)";
|
|
1100
1050
|
function rootStyle() {
|
|
1101
1051
|
return styled_components.css`position:relative;width:-moz-available;width:-webkit-fill-available;width:stretch;&:not([hidden]){display:inline-block;}`;
|
|
1102
1052
|
}
|
|
@@ -1155,14 +1105,14 @@ const selectStyle = {
|
|
|
1155
1105
|
iconBox: iconBoxStyle
|
|
1156
1106
|
}, StyledSelect = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
1157
1107
|
displayName: "StyledSelect",
|
|
1158
|
-
componentId: "sc-
|
|
1108
|
+
componentId: "sc-ecog6m-0"
|
|
1159
1109
|
})(selectStyle.root), Input$2 = /* @__PURE__ */ styled_components.styled.select.withConfig({
|
|
1160
1110
|
displayName: "Input",
|
|
1161
|
-
componentId: "sc-
|
|
1111
|
+
componentId: "sc-ecog6m-1"
|
|
1162
1112
|
})(selectStyle.input), IconBox = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
|
|
1163
1113
|
displayName: "IconBox",
|
|
1164
|
-
componentId: "sc-
|
|
1165
|
-
})(selectStyle.iconBox), Select = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
1114
|
+
componentId: "sc-ecog6m-2"
|
|
1115
|
+
})(selectStyle.iconBox), Select = (0, react.forwardRef)(function Select(props, forwardedRef) {
|
|
1166
1116
|
let $ = (0, react_compiler_runtime.c)(38), children, customValidity, disabled, gap, readOnly, restProps, t0, t1, t2, t3;
|
|
1167
1117
|
$[0] === props ? (children = $[1], customValidity = $[2], disabled = $[3], gap = $[4], readOnly = $[5], restProps = $[6], t0 = $[7], t1 = $[8], t2 = $[9], t3 = $[10]) : ({children, customValidity, disabled, fontSize: t0, gap, padding: t1, radius: t2, readOnly, space: t3, ...restProps} = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = gap, $[5] = readOnly, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2, $[10] = t3);
|
|
1168
1118
|
let fontSize = 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 = (0, react.useRef)(null), t4;
|
|
@@ -1206,7 +1156,6 @@ const selectStyle = {
|
|
|
1206
1156
|
children: [t11, t14]
|
|
1207
1157
|
}), $[35] = t11, $[36] = t14, $[37] = t15) : t15 = $[37], t15;
|
|
1208
1158
|
});
|
|
1209
|
-
Select.displayName = "ForwardRef(Select)";
|
|
1210
1159
|
function switchBaseStyles() {
|
|
1211
1160
|
return styled_components.css`position:relative;&:not([hidden]){display:inline-block;}`;
|
|
1212
1161
|
}
|
|
@@ -1227,20 +1176,20 @@ function switchThumbStyles(props) {
|
|
|
1227
1176
|
}
|
|
1228
1177
|
const StyledSwitch = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
1229
1178
|
displayName: "StyledSwitch",
|
|
1230
|
-
componentId: "sc-
|
|
1179
|
+
componentId: "sc-aod7y9-0"
|
|
1231
1180
|
})(switchBaseStyles), Input$1 = /* @__PURE__ */ styled_components.styled.input.withConfig({
|
|
1232
1181
|
displayName: "Input",
|
|
1233
|
-
componentId: "sc-
|
|
1182
|
+
componentId: "sc-aod7y9-1"
|
|
1234
1183
|
})(switchInputStyles), Representation = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
1235
1184
|
displayName: "Representation",
|
|
1236
|
-
componentId: "sc-
|
|
1185
|
+
componentId: "sc-aod7y9-2"
|
|
1237
1186
|
})(switchRepresentationStyles), Track = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
1238
1187
|
displayName: "Track",
|
|
1239
|
-
componentId: "sc-
|
|
1188
|
+
componentId: "sc-aod7y9-3"
|
|
1240
1189
|
})(switchTrackStyles), Thumb = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
1241
1190
|
displayName: "Thumb",
|
|
1242
|
-
componentId: "sc-
|
|
1243
|
-
})(switchThumbStyles), Switch = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
1191
|
+
componentId: "sc-aod7y9-4"
|
|
1192
|
+
})(switchThumbStyles), Switch = (0, react.forwardRef)(function Switch(props, forwardedRef) {
|
|
1244
1193
|
let $ = (0, react_compiler_runtime.c)(26), checked, className, disabled, indeterminate, readOnly, restProps, style;
|
|
1245
1194
|
$[0] === props ? (checked = $[1], className = $[2], disabled = $[3], indeterminate = $[4], readOnly = $[5], restProps = $[6], style = $[7]) : ({checked, className, disabled, indeterminate, readOnly, style, ...restProps} = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = disabled, $[4] = indeterminate, $[5] = readOnly, $[6] = restProps, $[7] = style);
|
|
1246
1195
|
let ref = (0, react.useRef)(null), t0;
|
|
@@ -1276,21 +1225,19 @@ const StyledSwitch = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
|
1276
1225
|
style,
|
|
1277
1226
|
children: [t6, t8]
|
|
1278
1227
|
}), $[21] = className, $[22] = style, $[23] = t6, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
|
|
1279
|
-
})
|
|
1280
|
-
Switch.displayName = "ForwardRef(Switch)";
|
|
1281
|
-
const StyledTextArea = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
1228
|
+
}), StyledTextArea = /* @__PURE__ */ styled_components.styled.span.withConfig({
|
|
1282
1229
|
displayName: "StyledTextArea",
|
|
1283
|
-
componentId: "sc-
|
|
1230
|
+
componentId: "sc-vgfdnn-0"
|
|
1284
1231
|
})(require_tabList.Z), InputRoot = styled_components.styled.span.withConfig({
|
|
1285
1232
|
displayName: "InputRoot",
|
|
1286
|
-
componentId: "sc-
|
|
1233
|
+
componentId: "sc-vgfdnn-1"
|
|
1287
1234
|
})`flex:1;min-width:0;display:block;position:relative;`, Input = /* @__PURE__ */ styled_components.styled.textarea.withConfig({
|
|
1288
1235
|
displayName: "Input",
|
|
1289
|
-
componentId: "sc-
|
|
1236
|
+
componentId: "sc-vgfdnn-2"
|
|
1290
1237
|
})(require_tabList.$, require_tabList.J, require_tabList.Y), Presentation = /* @__PURE__ */ styled_components.styled.div.withConfig({
|
|
1291
1238
|
displayName: "Presentation",
|
|
1292
|
-
componentId: "sc-
|
|
1293
|
-
})(require_tabList.K, require_tabList.X), TextArea = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
1239
|
+
componentId: "sc-vgfdnn-3"
|
|
1240
|
+
})(require_tabList.K, require_tabList.X), TextArea = (0, react.forwardRef)(function TextArea(props, forwardedRef) {
|
|
1294
1241
|
let $ = (0, react_compiler_runtime.c)(35), __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
|
|
1295
1242
|
$[0] === props ? (__unstable_disableFocusRing = $[1], customValidity = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], weight = $[9]) : ({border: t0, customValidity, disabled: t1, fontSize: t2, padding: t3, radius: t4, weight, __unstable_disableFocusRing, ...restProps} = props, $[0] = props, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = weight);
|
|
1296
1243
|
let border = t0 === void 0 || t0, disabled = t1 !== void 0 && t1, fontSize = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = (0, react.useRef)(null), rootTheme = require_tabList.at(), t5;
|
|
@@ -1334,7 +1281,6 @@ const StyledTextArea = /* @__PURE__ */ styled_components.styled.span.withConfig(
|
|
|
1334
1281
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(InputRoot, { children: [t12, t15] })
|
|
1335
1282
|
}), $[32] = t12, $[33] = t15, $[34] = t16) : t16 = $[34], t16;
|
|
1336
1283
|
});
|
|
1337
|
-
TextArea.displayName = "ForwardRef(TextArea)";
|
|
1338
1284
|
/**
|
|
1339
1285
|
* @public
|
|
1340
1286
|
* Provides context for a group of tooltip elements that should share a delay
|
|
@@ -1355,7 +1301,6 @@ function TooltipDelayGroupProvider(props) {
|
|
|
1355
1301
|
children
|
|
1356
1302
|
}), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
|
|
1357
1303
|
}
|
|
1358
|
-
TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
|
|
1359
1304
|
/**
|
|
1360
1305
|
* @internal
|
|
1361
1306
|
*/
|
|
@@ -1448,7 +1393,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = [
|
|
|
1448
1393
|
"Meta",
|
|
1449
1394
|
"Tab",
|
|
1450
1395
|
"CapsLock"
|
|
1451
|
-
], AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
1396
|
+
], AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = (0, react.forwardRef)(function Autocomplete(props, forwardedRef) {
|
|
1452
1397
|
let $ = (0, react_compiler_runtime.c)(181), customValidity, disabled, filterOptionProp, icon, id, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, optionsProp, prefix, readOnly, relatedElements, renderOptionProp, renderPopover, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, valueProp;
|
|
1453
1398
|
$[0] === props ? (customValidity = $[1], disabled = $[2], filterOptionProp = $[3], icon = $[4], id = $[5], loading = $[6], onBlur = $[7], onChange = $[8], onFocus = $[9], onQueryChange = $[10], onSelect = $[11], openButton = $[12], openOnFocus = $[13], optionsProp = $[14], prefix = $[15], readOnly = $[16], relatedElements = $[17], renderOptionProp = $[18], renderPopover = $[19], restProps = $[20], suffix = $[21], t0 = $[22], t1 = $[23], t2 = $[24], t3 = $[25], t4 = $[26], t5 = $[27], t6 = $[28], valueProp = $[29]) : ({border: t0, customValidity, disabled, filterOption: filterOptionProp, fontSize: t1, icon, id, listBox: t2, loading, onBlur, onChange, onFocus, onQueryChange, onSelect, openButton, openOnFocus, options: optionsProp, padding: t3, popover: t4, prefix, radius: t5, readOnly, relatedElements, renderOption: renderOptionProp, renderPopover, renderValue: t6, suffix, value: valueProp, ...restProps} = props, $[0] = props, $[1] = customValidity, $[2] = disabled, $[3] = filterOptionProp, $[4] = icon, $[5] = id, $[6] = loading, $[7] = onBlur, $[8] = onChange, $[9] = onFocus, $[10] = onQueryChange, $[11] = onSelect, $[12] = openButton, $[13] = openOnFocus, $[14] = optionsProp, $[15] = prefix, $[16] = readOnly, $[17] = relatedElements, $[18] = renderOptionProp, $[19] = renderPopover, $[20] = restProps, $[21] = suffix, $[22] = t0, $[23] = t1, $[24] = t2, $[25] = t3, $[26] = t4, $[27] = t5, $[28] = t6, $[29] = valueProp);
|
|
1454
1399
|
let border = t0 === void 0 || t0, fontSize = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? require_tabList.Tt : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? require_tabList.Tt : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null, t9;
|
|
@@ -1801,7 +1746,6 @@ function RenderPopover({ renderPopover, content, hidden, inputElement, onMouseEn
|
|
|
1801
1746
|
onMouseLeave
|
|
1802
1747
|
}, resultsPopoverElementRef);
|
|
1803
1748
|
}
|
|
1804
|
-
InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
|
|
1805
1749
|
/**
|
|
1806
1750
|
* The Autocomplete component is typically used for search components.
|
|
1807
1751
|
* It consists of a text input for writing a query, and properties for rendering suggestions.
|
|
@@ -1821,7 +1765,7 @@ const StyledBreadcrumbs = styled_components.styled.ol.withConfig({
|
|
|
1821
1765
|
})`margin:0;padding:0;display:flex;list-style:none;align-items:center;white-space:nowrap;line-height:0;`, ExpandButton = (0, styled_components.styled)(require_tabList.z).withConfig({
|
|
1822
1766
|
displayName: "ExpandButton",
|
|
1823
1767
|
componentId: "sc-b0flr4-1"
|
|
1824
|
-
})`appearance:none;margin:-4px;`, Breadcrumbs = (0, react.forwardRef)(function(props, ref) {
|
|
1768
|
+
})`appearance:none;margin:-4px;`, Breadcrumbs = (0, react.forwardRef)(function Breadcrumbs(props, ref) {
|
|
1825
1769
|
let $ = (0, react_compiler_runtime.c)(30), children, gap, maxLength, restProps, separator, t0;
|
|
1826
1770
|
$[0] === props ? (children = $[1], gap = $[2], maxLength = $[3], restProps = $[4], separator = $[5], t0 = $[6]) : ({children, gap, maxLength, separator, space: t0, ...restProps} = props, $[0] = props, $[1] = children, $[2] = gap, $[3] = maxLength, $[4] = restProps, $[5] = separator, $[6] = t0);
|
|
1827
1771
|
let t1 = gap === void 0 ? t0 === void 0 ? 2 : t0 : gap, t2;
|
|
@@ -1869,7 +1813,6 @@ const StyledBreadcrumbs = styled_components.styled.ol.withConfig({
|
|
|
1869
1813
|
children: t8
|
|
1870
1814
|
}), $[26] = ref, $[27] = restProps, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
|
|
1871
1815
|
});
|
|
1872
|
-
Breadcrumbs.displayName = "ForwardRef(Breadcrumbs)";
|
|
1873
1816
|
function useItems(t0) {
|
|
1874
1817
|
let $ = (0, react_compiler_runtime.c)(28), { collapse, expand, expandElementRef, maxLength, open, popoverElementRef, rawItems, space } = t0, len = rawItems.length;
|
|
1875
1818
|
if (maxLength && len > maxLength) {
|
|
@@ -1951,26 +1894,26 @@ function isTargetWithinScope(boundaryElement, portalElement, target) {
|
|
|
1951
1894
|
}
|
|
1952
1895
|
const StyledDialog = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.v).withConfig({
|
|
1953
1896
|
displayName: "StyledDialog",
|
|
1954
|
-
componentId: "sc-
|
|
1897
|
+
componentId: "sc-2s0up-0"
|
|
1955
1898
|
})(require_tabList.q, dialogStyle, responsiveDialogPositionStyle, animationDialogStyle), DialogContainer = (0, styled_components.styled)(Container).withConfig({
|
|
1956
1899
|
displayName: "DialogContainer",
|
|
1957
|
-
componentId: "sc-
|
|
1900
|
+
componentId: "sc-2s0up-1"
|
|
1958
1901
|
})`&:not([hidden]){display:flex;}width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;`, DialogCardRoot = (0, styled_components.styled)(require_tabList.R).withConfig({
|
|
1959
1902
|
displayName: "DialogCardRoot",
|
|
1960
|
-
componentId: "sc-
|
|
1903
|
+
componentId: "sc-2s0up-2"
|
|
1961
1904
|
})`&:not([hidden]){display:flex;}width:100%;min-height:0;max-height:100%;overflow:hidden;overflow:clip;`, DialogLayout = (0, styled_components.styled)(require_tabList.H).withConfig({
|
|
1962
1905
|
displayName: "DialogLayout",
|
|
1963
|
-
componentId: "sc-
|
|
1906
|
+
componentId: "sc-2s0up-3"
|
|
1964
1907
|
})`flex:1;min-height:0;width:100%;`, DialogHeader = (0, styled_components.styled)(require_tabList.W).withConfig({
|
|
1965
1908
|
displayName: "DialogHeader",
|
|
1966
|
-
componentId: "sc-
|
|
1909
|
+
componentId: "sc-2s0up-4"
|
|
1967
1910
|
})`position:relative;z-index:2;`, DialogContent = (0, styled_components.styled)(require_tabList.W).withConfig({
|
|
1968
1911
|
displayName: "DialogContent",
|
|
1969
|
-
componentId: "sc-
|
|
1912
|
+
componentId: "sc-2s0up-5"
|
|
1970
1913
|
})`position:relative;z-index:1;overflow:auto;outline:none;`, DialogFooter = (0, styled_components.styled)(require_tabList.W).withConfig({
|
|
1971
1914
|
displayName: "DialogFooter",
|
|
1972
|
-
componentId: "sc-
|
|
1973
|
-
})`position:relative;z-index:3;`, DialogCard = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
1915
|
+
componentId: "sc-2s0up-6"
|
|
1916
|
+
})`position:relative;z-index:3;`, DialogCard = (0, react.forwardRef)(function DialogCard(props, forwardedRef) {
|
|
1974
1917
|
let $ = (0, react_compiler_runtime.c)(44), { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, children, contentRef: forwardedContentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: radiusProp, scheme, shadow: shadowProp, width: widthProp } = props, portal = require_tabList._(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = require_tabList.x().element, t0;
|
|
1975
1918
|
$[0] === radiusProp ? t0 = $[1] : (t0 = require_tabList.ft(radiusProp), $[0] = radiusProp, $[1] = t0);
|
|
1976
1919
|
let radius = t0, t1;
|
|
@@ -2055,14 +1998,7 @@ const StyledDialog = /* @__PURE__ */ (0, styled_components.styled)(require_tabLi
|
|
|
2055
1998
|
width,
|
|
2056
1999
|
children: t14
|
|
2057
2000
|
}), $[41] = t14, $[42] = width, $[43] = t15) : t15 = $[43], t15;
|
|
2058
|
-
})
|
|
2059
|
-
DialogCard.displayName = "ForwardRef(DialogCard)";
|
|
2060
|
-
/**
|
|
2061
|
-
* The Dialog component.
|
|
2062
|
-
*
|
|
2063
|
-
* @public
|
|
2064
|
-
*/
|
|
2065
|
-
const Dialog = (0, react.forwardRef)(function(props, ref) {
|
|
2001
|
+
}), Dialog = (0, react.forwardRef)(function Dialog(props, ref) {
|
|
2066
2002
|
let $ = (0, react_compiler_runtime.c)(70), dialog = useDialog(), { layer } = require_tabList.rt(), _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
|
|
2067
2003
|
$[0] === props ? (_positionProp = $[1], _zOffsetProp = $[2], children = $[3], contentRef = $[4], footer = $[5], header = $[6], id = $[7], onActivate = $[8], onClickOutside = $[9], onClose = $[10], onFocus = $[11], portalProp = $[12], restProps = $[13], scheme = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21]) : ({__unstable_autoFocus: t0, __unstable_hideCloseButton: t1, cardRadius: t2, cardShadow: t3, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, padding: t4, portal: portalProp, position: _positionProp, scheme, width: t5, zOffset: _zOffsetProp, animate: t6, ...restProps} = props, $[0] = props, $[1] = _positionProp, $[2] = _zOffsetProp, $[3] = children, $[4] = contentRef, $[5] = footer, $[6] = header, $[7] = id, $[8] = onActivate, $[9] = onClickOutside, $[10] = onClose, $[11] = onFocus, $[12] = portalProp, $[13] = restProps, $[14] = scheme, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6);
|
|
2068
2004
|
let autoFocus = t0 === void 0 || t0, hideCloseButton = t1 !== void 0 && t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 !== void 0 && t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = !require_tabList.O() && _animate, portal = require_tabList._(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = require_tabList.x().element, t7;
|
|
@@ -2160,7 +2096,6 @@ const Dialog = (0, react.forwardRef)(function(props, ref) {
|
|
|
2160
2096
|
children: t17
|
|
2161
2097
|
}), $[67] = portalProp, $[68] = t17, $[69] = t18) : t18 = $[69], t18;
|
|
2162
2098
|
});
|
|
2163
|
-
Dialog.displayName = "ForwardRef(Dialog)";
|
|
2164
2099
|
/**
|
|
2165
2100
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2166
2101
|
* @beta
|
|
@@ -2178,13 +2113,12 @@ function DialogProvider(props) {
|
|
|
2178
2113
|
children
|
|
2179
2114
|
}), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
|
|
2180
2115
|
}
|
|
2181
|
-
DialogProvider.displayName = "DialogProvider";
|
|
2182
2116
|
/**
|
|
2183
2117
|
* The `MenuButton` component follows the WAI-ARIA specification for menu buttons.
|
|
2184
2118
|
*
|
|
2185
2119
|
* @public
|
|
2186
2120
|
*/
|
|
2187
|
-
const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
2121
|
+
const MenuButton = (0, react.forwardRef)(function MenuButton(props, forwardedRef) {
|
|
2188
2122
|
let $ = (0, react_compiler_runtime.c)(62), { __unstable_disableRestoreFocusOnClose: t0, boundaryElement: deprecated_boundaryElement, button: buttonProp, id, menu: menuProp, onClose, onOpen, placement: deprecated_placement, popoverScheme: deprecated_popoverScheme, portal: t1, popover, popoverRadius: deprecated_popoverRadius, preventOverflow: deprecated_preventOverflow } = props, disableRestoreFocusOnClose = t0 !== void 0 && t0, deprecated_portal = t1 === void 0 || t1, [open, setOpen] = (0, react.useState)(!1), [shouldFocus, setShouldFocus] = (0, react.useState)(null), [buttonElement, setButtonElement] = (0, react.useState)(null), t2;
|
|
2189
2123
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[0] = t2) : t2 = $[0];
|
|
2190
2124
|
let [menuElements, setChildMenuElements] = (0, react.useState)(t2), openRef = (0, react.useRef)(open), t3, t4;
|
|
@@ -2293,14 +2227,13 @@ const MenuButton = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
|
2293
2227
|
children: t23
|
|
2294
2228
|
}), $[57] = menu, $[58] = open, $[59] = popoverProps, $[60] = t23, $[61] = t24) : t24 = $[61], t24;
|
|
2295
2229
|
});
|
|
2296
|
-
MenuButton.displayName = "ForwardRef(MenuButton)";
|
|
2297
2230
|
function _temp$1(v) {
|
|
2298
2231
|
return !v;
|
|
2299
2232
|
}
|
|
2300
2233
|
const animation = styled_components.css`background-image:linear-gradient( to right,var(--card-skeleton-color-from),var(--card-skeleton-color-to),var(--card-skeleton-color-from),var(--card-skeleton-color-from),var(--card-skeleton-color-from) );background-position:100%;background-size:200% 100%;background-attachment:fixed;animation-name:${styled_components.keyframes`0%{background-position:100%;}100%{background-position:-100%;}`};animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-duration:2000ms;`, skeletonStyle = styled_components.css`opacity:${({ $visible }) => +!!$visible};transition:opacity 200ms ease-in;@media screen and (prefers-reduced-motion:no-preference){${({ $animated }) => $animated ? animation : styled_components.css`background-color:var(--card-skeleton-color-from);`}}@media screen and (prefers-reduced-motion:reduce){background-color:var(--card-skeleton-color-from);}`, StyledSkeleton$1 = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).withConfig({
|
|
2301
2234
|
displayName: "StyledSkeleton",
|
|
2302
|
-
componentId: "sc-
|
|
2303
|
-
})(require_tabList.K, skeletonStyle), Skeleton = (0, react.forwardRef)(function(props, ref) {
|
|
2235
|
+
componentId: "sc-xewr8x-0"
|
|
2236
|
+
})(require_tabList.K, skeletonStyle), Skeleton = (0, react.forwardRef)(function Skeleton(props, ref) {
|
|
2304
2237
|
let $ = (0, react_compiler_runtime.c)(16), delay, radius, restProps, t0;
|
|
2305
2238
|
$[0] === props ? (delay = $[1], radius = $[2], restProps = $[3], t0 = $[4]) : ({animated: t0, delay, radius, ...restProps} = props, $[0] = props, $[1] = delay, $[2] = radius, $[3] = restProps, $[4] = t0);
|
|
2306
2239
|
let animated = t0 !== void 0 && t0, [visible, setVisible] = (0, react.useState)(!delay), t1, t2;
|
|
@@ -2323,18 +2256,16 @@ const animation = styled_components.css`background-image:linear-gradient( to rig
|
|
|
2323
2256
|
$visible: t4,
|
|
2324
2257
|
ref
|
|
2325
2258
|
}), $[10] = animated, $[11] = ref, $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5) : t5 = $[15], t5;
|
|
2326
|
-
})
|
|
2327
|
-
Skeleton.displayName = "ForwardRef(Skeleton)";
|
|
2328
|
-
const StyledSkeleton = /* @__PURE__ */ (0, styled_components.styled)(Skeleton).withConfig({
|
|
2259
|
+
}), StyledSkeleton = /* @__PURE__ */ (0, styled_components.styled)(Skeleton).withConfig({
|
|
2329
2260
|
displayName: "StyledSkeleton",
|
|
2330
|
-
componentId: "sc-
|
|
2261
|
+
componentId: "sc-d8ims-0"
|
|
2331
2262
|
})((props) => {
|
|
2332
2263
|
let { $size, $style } = props, { font, media } = require_theme.X(props.theme), fontStyle = font[$style];
|
|
2333
2264
|
return require_tabList.mt(media, $size, (sizeIndex) => {
|
|
2334
2265
|
let fontSize = fontStyle.sizes[sizeIndex];
|
|
2335
2266
|
return { height: fontSize.lineHeight - fontSize.ascenderHeight - fontSize.descenderHeight };
|
|
2336
2267
|
});
|
|
2337
|
-
}), TextSkeleton = (0, react.forwardRef)(function(props, ref) {
|
|
2268
|
+
}), TextSkeleton = (0, react.forwardRef)(function TextSkeleton(props, ref) {
|
|
2338
2269
|
let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
|
|
2339
2270
|
$[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
|
|
2340
2271
|
let size = t0 === void 0 ? 2 : t0, t1;
|
|
@@ -2346,13 +2277,7 @@ const StyledSkeleton = /* @__PURE__ */ (0, styled_components.styled)(Skeleton).w
|
|
|
2346
2277
|
ref,
|
|
2347
2278
|
$style: "text"
|
|
2348
2279
|
}), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
|
|
2349
|
-
})
|
|
2350
|
-
TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
|
|
2351
|
-
/**
|
|
2352
|
-
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2353
|
-
* @beta
|
|
2354
|
-
*/
|
|
2355
|
-
const LabelSkeleton = (0, react.forwardRef)(function(props, ref) {
|
|
2280
|
+
}), LabelSkeleton = (0, react.forwardRef)(function LabelSkeleton(props, ref) {
|
|
2356
2281
|
let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
|
|
2357
2282
|
$[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
|
|
2358
2283
|
let size = t0 === void 0 ? 2 : t0, t1;
|
|
@@ -2364,13 +2289,7 @@ const LabelSkeleton = (0, react.forwardRef)(function(props, ref) {
|
|
|
2364
2289
|
ref,
|
|
2365
2290
|
$style: "label"
|
|
2366
2291
|
}), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
|
|
2367
|
-
})
|
|
2368
|
-
LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
|
|
2369
|
-
/**
|
|
2370
|
-
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2371
|
-
* @beta
|
|
2372
|
-
*/
|
|
2373
|
-
const HeadingSkeleton = (0, react.forwardRef)(function(props, ref) {
|
|
2292
|
+
}), HeadingSkeleton = (0, react.forwardRef)(function HeadingSkeleton(props, ref) {
|
|
2374
2293
|
let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
|
|
2375
2294
|
$[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
|
|
2376
2295
|
let size = t0 === void 0 ? 2 : t0, t1;
|
|
@@ -2382,13 +2301,7 @@ const HeadingSkeleton = (0, react.forwardRef)(function(props, ref) {
|
|
|
2382
2301
|
ref,
|
|
2383
2302
|
$style: "heading"
|
|
2384
2303
|
}), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
|
|
2385
|
-
})
|
|
2386
|
-
HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
|
|
2387
|
-
/**
|
|
2388
|
-
* This API might change. DO NOT USE IN PRODUCTION.
|
|
2389
|
-
* @beta
|
|
2390
|
-
*/
|
|
2391
|
-
const CodeSkeleton = (0, react.forwardRef)(function(props, ref) {
|
|
2304
|
+
}), CodeSkeleton = (0, react.forwardRef)(function CodeSkeleton(props, ref) {
|
|
2392
2305
|
let $ = (0, react_compiler_runtime.c)(9), restProps, t0;
|
|
2393
2306
|
$[0] === props ? (restProps = $[1], t0 = $[2]) : ({size: t0, ...restProps} = props, $[0] = props, $[1] = restProps, $[2] = t0);
|
|
2394
2307
|
let size = t0 === void 0 ? 2 : t0, t1;
|
|
@@ -2400,12 +2313,7 @@ const CodeSkeleton = (0, react.forwardRef)(function(props, ref) {
|
|
|
2400
2313
|
ref,
|
|
2401
2314
|
$style: "code"
|
|
2402
2315
|
}), $[5] = $size, $[6] = ref, $[7] = restProps, $[8] = t2) : t2 = $[8], t2;
|
|
2403
|
-
})
|
|
2404
|
-
CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
|
|
2405
|
-
/**
|
|
2406
|
-
* @public
|
|
2407
|
-
*/
|
|
2408
|
-
const TabPanel = (0, react.forwardRef)(function(props, ref) {
|
|
2316
|
+
}), TabPanel = (0, react.forwardRef)(function TabPanel(props, ref) {
|
|
2409
2317
|
let $ = (0, react_compiler_runtime.c)(9), flex, restProps;
|
|
2410
2318
|
$[0] === props ? (flex = $[1], restProps = $[2]) : ({flex, ...restProps} = props, $[0] = props, $[1] = flex, $[2] = restProps);
|
|
2411
2319
|
let t0 = props.tabIndex === void 0 ? 0 : props.tabIndex, t1;
|
|
@@ -2418,9 +2326,7 @@ const TabPanel = (0, react.forwardRef)(function(props, ref) {
|
|
|
2418
2326
|
tabIndex: t0,
|
|
2419
2327
|
children: props.children
|
|
2420
2328
|
}), $[3] = flex, $[4] = props.children, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1) : t1 = $[8], t1;
|
|
2421
|
-
})
|
|
2422
|
-
TabPanel.displayName = "ForwardRef(TabPanel)";
|
|
2423
|
-
const STATUS_CARD_TONE = {
|
|
2329
|
+
}), STATUS_CARD_TONE = {
|
|
2424
2330
|
error: "critical",
|
|
2425
2331
|
warning: "caution",
|
|
2426
2332
|
success: "positive",
|
|
@@ -2558,7 +2464,6 @@ function Toast(props) {
|
|
|
2558
2464
|
children: [t10, t11]
|
|
2559
2465
|
}), $[40] = cardTone, $[41] = radius, $[42] = restProps, $[43] = role, $[44] = t10, $[45] = t11, $[46] = t5, $[47] = transition, $[48] = visualDuration, $[49] = t12) : t12 = $[49], t12;
|
|
2560
2466
|
}
|
|
2561
|
-
Toast.displayName = "Toast";
|
|
2562
2467
|
const container = {
|
|
2563
2468
|
initial: {
|
|
2564
2469
|
y: 32,
|
|
@@ -2614,10 +2519,9 @@ function ToastLayer(props) {
|
|
|
2614
2519
|
children
|
|
2615
2520
|
}), $[2] = children, $[3] = gap, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = t2, $[8] = t3) : t3 = $[8], t3;
|
|
2616
2521
|
}
|
|
2617
|
-
ToastLayer.displayName = "ToastLayer";
|
|
2618
2522
|
const StyledLayer = (0, styled_components.styled)(require_tabList.D).withConfig({
|
|
2619
2523
|
displayName: "StyledLayer",
|
|
2620
|
-
componentId: "sc-
|
|
2524
|
+
componentId: "sc-chanfh-0"
|
|
2621
2525
|
})`box-sizing:border-box;position:fixed;right:0;bottom:0;list-style:none;pointer-events:none;max-width:420px;width:100%;`;
|
|
2622
2526
|
let toastId = 0;
|
|
2623
2527
|
/** @internal */
|
|
@@ -2631,9 +2535,8 @@ function ToastProvider(props) {
|
|
|
2631
2535
|
let $ = (0, react_compiler_runtime.c)(13), { children, padding, paddingX, paddingY, gap, zOffset: t0 } = props, zOffset = t0 === void 0 ? 1 : t0, t1;
|
|
2632
2536
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
|
|
2633
2537
|
let [state, setState] = (0, react.useState)(t1), mounted = useMounted(), t2;
|
|
2634
|
-
$[1] === Symbol.for("react.memo_cache_sentinel")
|
|
2635
|
-
|
|
2636
|
-
push: (params) => {
|
|
2538
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2539
|
+
let push = (params) => {
|
|
2637
2540
|
let id = params.id || generateToastId(), duration = params.duration || 5e3;
|
|
2638
2541
|
return (0, react.startTransition)(() => {
|
|
2639
2542
|
setState((prevState) => {
|
|
@@ -2650,8 +2553,12 @@ function ToastProvider(props) {
|
|
|
2650
2553
|
}];
|
|
2651
2554
|
});
|
|
2652
2555
|
}), id;
|
|
2653
|
-
}
|
|
2654
|
-
|
|
2556
|
+
};
|
|
2557
|
+
t2 = {
|
|
2558
|
+
version: 0,
|
|
2559
|
+
push
|
|
2560
|
+
}, $[1] = t2;
|
|
2561
|
+
} else t2 = $[1];
|
|
2655
2562
|
let value = t2, t3;
|
|
2656
2563
|
$[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_tabList.b, {
|
|
2657
2564
|
zOffset,
|
|
@@ -2685,7 +2592,6 @@ function _temp(t0) {
|
|
|
2685
2592
|
updatedAt
|
|
2686
2593
|
}, id_0);
|
|
2687
2594
|
}
|
|
2688
|
-
ToastProvider.displayName = "ToastProvider";
|
|
2689
2595
|
/**
|
|
2690
2596
|
* @public
|
|
2691
2597
|
*/
|
|
@@ -2737,7 +2643,7 @@ function _focusItemElement(el) {
|
|
|
2737
2643
|
/**
|
|
2738
2644
|
* @internal
|
|
2739
2645
|
*/
|
|
2740
|
-
const TreeContext = require_tabList.st("@sanity/ui/context/tree", null), Tree = (0, react.forwardRef)(function(props, forwardedRef) {
|
|
2646
|
+
const TreeContext = require_tabList.st("@sanity/ui/context/tree", null), Tree = (0, react.forwardRef)(function Tree(props, forwardedRef) {
|
|
2741
2647
|
let $ = (0, react_compiler_runtime.c)(38), children, gap, onFocus, restProps, t0;
|
|
2742
2648
|
$[0] === props ? (children = $[1], gap = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]) : ({children, gap, space: t0, onFocus, ...restProps} = props, $[0] = props, $[1] = children, $[2] = gap, $[3] = onFocus, $[4] = restProps, $[5] = t0);
|
|
2743
2649
|
let spacing = gap === void 0 ? t0 === void 0 ? 1 : t0 : gap, ref = (0, react.useRef)(null), [focusedElement, setFocusedElement] = (0, react.useState)(null), focusedElementRef = (0, react.useRef)(focusedElement), t1;
|
|
@@ -2882,7 +2788,6 @@ const TreeContext = require_tabList.st("@sanity/ui/context/tree", null), Tree =
|
|
|
2882
2788
|
children: t17
|
|
2883
2789
|
}), $[35] = contextValue, $[36] = t17, $[37] = t18) : t18 = $[37], t18;
|
|
2884
2790
|
});
|
|
2885
|
-
Tree.displayName = "ForwardRef(Tree)";
|
|
2886
2791
|
function treeItemRootStyle() {
|
|
2887
2792
|
return styled_components.css`&[role='none'] > [role='treeitem']{outline:none;cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);&:focus{position:relative;}}&[role='treeitem']{outline:none;& > div{cursor:default;border-radius:3px;background-color:var(--card-bg-color);color:var(--treeitem-fg-color);}&:focus > div{position:relative;}}`;
|
|
2888
2793
|
}
|
|
@@ -2919,13 +2824,13 @@ function TreeGroup(props) {
|
|
|
2919
2824
|
}
|
|
2920
2825
|
const StyledTreeItem = /* @__PURE__ */ styled_components.styled.li.withConfig({
|
|
2921
2826
|
displayName: "StyledTreeItem",
|
|
2922
|
-
componentId: "sc-
|
|
2827
|
+
componentId: "sc-lxy9gh-0"
|
|
2923
2828
|
})(treeItemRootStyle, treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ (0, styled_components.styled)(require_tabList.W).attrs({ forwardedAs: "a" }).withConfig({
|
|
2924
2829
|
displayName: "TreeItemBox",
|
|
2925
|
-
componentId: "sc-
|
|
2830
|
+
componentId: "sc-lxy9gh-1"
|
|
2926
2831
|
})(treeItemBoxStyle), ToggleArrowText = (0, styled_components.styled)(require_tabList.U).withConfig({
|
|
2927
2832
|
displayName: "ToggleArrowText",
|
|
2928
|
-
componentId: "sc-
|
|
2833
|
+
componentId: "sc-lxy9gh-2"
|
|
2929
2834
|
})`& > svg{transition:transform 100ms;}`;
|
|
2930
2835
|
/**
|
|
2931
2836
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
@@ -3082,6 +2987,6 @@ function TreeItem(props) {
|
|
|
3082
2987
|
children: [t23, t25]
|
|
3083
2988
|
}), $[103] = expanded, $[104] = handleClick, $[105] = handleKeyDown, $[106] = id, $[107] = itemKey, $[108] = restProps, $[109] = t22, $[110] = t23, $[111] = t25, $[112] = tabIndex, $[113] = t26) : t26 = $[113], t26;
|
|
3084
2989
|
}
|
|
3085
|
-
|
|
2990
|
+
exports.Arrow = require_tabList.w, exports.Autocomplete = Autocomplete, exports.Avatar = Avatar, exports.AvatarCounter = AvatarCounter, exports.AvatarStack = AvatarStack, exports.Badge = Badge, exports.BoundaryElementProvider = BoundaryElementProvider, exports.Box = require_tabList.W, exports.Breadcrumbs = Breadcrumbs, exports.Button = require_tabList.z, exports.Card = require_tabList.R, exports.Checkbox = Checkbox, exports.Code = Code, exports.CodeSkeleton = CodeSkeleton, exports.ConditionalWrapper = ConditionalWrapper, exports.Container = Container, exports.Dialog = Dialog, exports.DialogContext = DialogContext, exports.DialogProvider = DialogProvider, exports.ElementQuery = ElementQuery, exports.ErrorBoundary = ErrorBoundary, exports.Flex = require_tabList.H, exports.Grid = require_tabList.D, exports.Heading = Heading, exports.HeadingSkeleton = HeadingSkeleton, exports.Hotkeys = require_tabList.s, exports.Inline = require_tabList.E, exports.KBD = require_tabList.T, exports.Label = Label, exports.LabelSkeleton = LabelSkeleton, exports.Layer = require_tabList.v, exports.LayerProvider = require_tabList.b, exports.Menu = require_tabList.o, exports.MenuButton = MenuButton, exports.MenuDivider = require_tabList.a, exports.MenuGroup = require_tabList.i, exports.MenuItem = require_tabList.r, exports.Popover = require_tabList.m, exports.Portal = require_tabList.g, exports.PortalProvider = require_tabList.h, exports.Radio = Radio, exports.Select = Select, exports.Skeleton = Skeleton, exports.Spinner = require_tabList.V, exports.SrOnly = SrOnly, exports.Stack = require_tabList.p, exports.Switch = Switch, exports.Tab = require_tabList.n, exports.TabList = require_tabList.t, exports.TabPanel = TabPanel, exports.Text = require_tabList.U, exports.TextArea = TextArea, exports.TextInput = require_tabList.f, exports.TextSkeleton = TextSkeleton, exports.ThemeColorProvider = require_tabList.it, exports.ThemeProvider = require_tabList.ot, exports.Toast = Toast, exports.ToastProvider = ToastProvider, exports.Tooltip = require_tabList.c, exports.TooltipDelayGroupContext = require_tabList.u, exports.TooltipDelayGroupProvider = TooltipDelayGroupProvider, exports.Tree = Tree, exports.TreeItem = TreeItem, exports.VirtualList = VirtualList, exports._ResizeObserver = require_tabList.F, exports._elementSizeObserver = require_tabList.P, exports._fillCSSObject = require_tabList.dt, exports._getArrayProp = require_tabList.ft, exports._getResponsiveSpace = require_tabList.pt, exports._hasFocus = _hasFocus, exports._isEnterToClickElement = require_tabList.gt, exports._isScrollable = _isScrollable, exports._raf = _raf, exports._raf2 = _raf2, exports._responsive = require_tabList.mt, exports.attemptFocus = attemptFocus, exports.containsOrEqualsElement = require_tabList._t, exports.createColorTheme = require_tabList.Et, exports.focusFirstDescendant = focusFirstDescendant, exports.focusLastDescendant = focusLastDescendant, exports.hexToRgb = require_tabList.Dt, exports.hslToRgb = require_tabList.Ot, exports.isFocusable = isFocusable, exports.isHTMLAnchorElement = require_tabList.vt, exports.isHTMLButtonElement = require_tabList.yt, exports.isHTMLElement = require_tabList.bt, exports.isHTMLInputElement = require_tabList.xt, exports.isHTMLSelectElement = require_tabList.St, exports.isHTMLTextAreaElement = require_tabList.Ct, exports.multiply = require_tabList.kt, exports.parseColor = require_tabList.At, exports.rem = require_tabList.ht, exports.responsiveCodeFontStyle = responsiveCodeFontStyle, exports.responsiveHeadingFont = responsiveHeadingFont, exports.responsiveLabelFont = responsiveLabelFont, exports.responsiveTextAlignStyle = require_tabList.lt, exports.responsiveTextFont = require_tabList.ct, exports.rgbToHex = require_tabList.jt, exports.rgbToHsl = require_tabList.Mt, exports.rgba = require_tabList.Nt, exports.screen = require_tabList.Pt, exports.studioTheme = require_tabList.Ft, exports.useArrayProp = useArrayProp, exports.useBoundaryElement = require_tabList.x, exports.useClickOutside = useClickOutside, exports.useClickOutsideEvent = require_tabList.L, exports.useCustomValidity = require_tabList.I, exports.useDialog = useDialog, exports.useElementRect = useElementRect, exports.useElementSize = require_tabList.N, exports.useForwardedRef = useForwardedRef, exports.useGlobalKeyDown = require_tabList.M, exports.useLayer = require_tabList.y, exports.useMatchMedia = require_tabList.j, exports.useMediaIndex = require_tabList.A, exports.usePortal = require_tabList._, exports.usePrefersDark = require_tabList.k, exports.usePrefersReducedMotion = require_tabList.O, exports.useRootTheme = require_tabList.at, exports.useTheme = require_tabList.nt, exports.useTheme_v2 = require_tabList.rt, exports.useToast = useToast, exports.useTooltipDelayGroup = require_tabList.l, exports.useTree = useTree;
|
|
3086
2991
|
|
|
3087
2992
|
//# sourceMappingURL=index.js.map
|