@sanity/ui 4.0.0-static.24 → 4.0.0-static.26
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/css/index.css +1 -1
- package/dist/css/index.css.map +1 -1
- package/dist/css/index.d.ts +22 -6
- package/dist/css/index.js +29 -20
- package/dist/css/index.js.map +1 -1
- package/dist/index.d.ts +8 -13
- package/dist/index.js +519 -531
- package/dist/index.js.map +1 -1
- package/exports/css/index.css +1 -0
- package/package.json +12 -12
- package/src/core/components/dialog/__workshop__/Panes.tsx +4 -0
- package/src/core/components/menu/Menu.tsx +0 -4
- package/src/core/components/menu/MenuItem.tsx +1 -1
- package/src/core/components/toast/useToast.ts +2 -2
- package/src/core/primitives/avatar/Avatar.tsx +2 -2
- package/src/core/primitives/avatar/__workshop__/PropsStory.tsx +22 -0
- package/src/core/primitives/avatar/__workshop__/index.ts +5 -0
- package/src/core/primitives/button/Button.tsx +5 -5
- package/src/core/primitives/code/Code.tsx +25 -1
- package/src/core/primitives/heading/Heading.tsx +16 -0
- package/src/core/primitives/label/Label.tsx +16 -0
- package/src/core/primitives/radio/Radio.tsx +2 -2
- package/src/core/primitives/select/Select.tsx +5 -3
- package/src/core/primitives/switch/Switch.tsx +2 -10
- package/src/core/primitives/text/Text.tsx +14 -0
- package/src/core/primitives/textArea/TextArea.tsx +7 -1
- package/src/core/primitives/textInput/TextInput.tsx +18 -17
- package/src/core/types.ts +6 -5
- package/src/core/utils/portal/PortalProvider.tsx +2 -2
- package/src/css/primitives/_input/_input.css.ts +2 -3
- package/src/css/primitives/_input/input.ts +2 -0
- package/src/css/primitives/_input/types.ts +2 -1
- package/src/css/primitives/avatar/avatar.css.ts +8 -0
- package/src/css/primitives/box/box.css.ts +21 -1
- package/src/css/primitives/button/button.css.ts +1 -0
- package/src/css/primitives/card/card.css.ts +0 -60
- package/src/css/primitives/checkbox/checkbox.css.ts +1 -0
- package/src/css/primitives/code/code.ts +4 -0
- package/src/css/primitives/code/types.ts +7 -1
- package/src/css/primitives/heading/heading.ts +4 -0
- package/src/css/primitives/heading/types.ts +7 -1
- package/src/css/primitives/label/label.ts +4 -0
- package/src/css/primitives/label/types.ts +7 -1
- package/src/css/primitives/radio/radio.css.ts +1 -1
- package/src/css/primitives/root/root.css.ts +0 -1
- package/src/css/primitives/select/select.css.ts +7 -1
- package/src/css/primitives/selectable/selectable.css.ts +5 -31
- package/src/css/primitives/switch/switch.css.ts +10 -1
- package/src/css/primitives/text/text.ts +2 -0
- package/src/css/primitives/text/types.ts +6 -1
- package/src/css/primitives/textInput/textInput.css.ts +15 -3
- package/src/css/props/width/types.ts +1 -1
- package/src/css/props/width/width.css.ts +5 -2
- package/src/core/primitives/popover/helpers.ts +0 -32
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { SpinnerIcon, CloseIcon, ChevronDownIcon, ChevronRightIcon, ToggleArrowRightIcon, CheckmarkIcon, RemoveIcon } from "@sanity/icons";
|
|
3
|
-
import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, useMemo, useCallback, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition,
|
|
3
|
+
import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, useMemo, useCallback, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { box, text, textOverflow, animatedSpinnerIcon, spinner, button, buttonLoadingBox, _arrow, vars, _arrowSvg, _arrowStrokeMask, _arrowStroke, _arrowShape, card, BREAKPOINTS, popoverCard, popover, _selectable, stack, textInput, textInputPrefix, textInputElement, _inputElement, _inputPresentation, textInputSuffix, breadcrumbs, container as container$1, dialogCard, dialogHeader, dialogContent, dialogScrollerShadowTop, dialogScroller, dialogScrollerShadowBottom, dialogFooter, dialog, dialogContainer, kbd, menu, menuDivider, toast, toastLayer, treeItem, label, avatar, avatarArrow, avatarInitials, avatarImage, avatarImageOutline, avatarCounter, avatarStack, badge, checkbox, checkboxInput, checkboxPresentation, code, heading, radio, radioInput, radioPresentation, select, selectPresentation, skeleton, codeSkeleton, headingSkeleton, labelSkeleton, textSkeleton, srOnly, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, tooltip, root } from "@sanity/ui/css";
|
|
6
6
|
import { isValidElementType } from "react-is";
|
|
@@ -272,40 +272,54 @@ function Box(props) {
|
|
|
272
272
|
}
|
|
273
273
|
const DEFAULT_TEXT_ELEMENT = "div";
|
|
274
274
|
function Text(props) {
|
|
275
|
-
const $ = c(
|
|
276
|
-
let align, children, className, flex, muted, rest, t1, t2, t3, t4, textOverflowProp;
|
|
275
|
+
const $ = c(44), t0 = props;
|
|
276
|
+
let align, children, className, flex, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, muted, rest, t1, t2, t3, t4, textOverflowProp;
|
|
277
277
|
$[0] !== t0 ? ({
|
|
278
278
|
align,
|
|
279
279
|
as: t1,
|
|
280
280
|
children,
|
|
281
281
|
className,
|
|
282
282
|
flex,
|
|
283
|
+
margin,
|
|
284
|
+
marginX,
|
|
285
|
+
marginY,
|
|
286
|
+
marginTop,
|
|
287
|
+
marginRight,
|
|
288
|
+
marginBottom,
|
|
289
|
+
marginLeft,
|
|
283
290
|
maxWidth: t2,
|
|
284
291
|
muted,
|
|
285
292
|
size: t3,
|
|
286
293
|
textOverflow: textOverflowProp,
|
|
287
294
|
weight: t4,
|
|
288
295
|
...rest
|
|
289
|
-
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] =
|
|
296
|
+
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = margin, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = muted, $[13] = rest, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], margin = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], muted = $[12], rest = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], textOverflowProp = $[18]);
|
|
290
297
|
const Element2 = t1 === void 0 ? DEFAULT_TEXT_ELEMENT : t1, maxWidth = t2 === void 0 ? "fill" : t2, size2 = t3 === void 0 ? 2 : t3, weight = t4 === void 0 ? "regular" : t4;
|
|
291
298
|
let t5;
|
|
292
|
-
$[
|
|
299
|
+
$[19] !== align || $[20] !== className || $[21] !== flex || $[22] !== margin || $[23] !== marginBottom || $[24] !== marginLeft || $[25] !== marginRight || $[26] !== marginTop || $[27] !== marginX || $[28] !== marginY || $[29] !== maxWidth || $[30] !== muted || $[31] !== size2 || $[32] !== weight ? (t5 = text({
|
|
293
300
|
className,
|
|
294
301
|
align,
|
|
295
302
|
flex,
|
|
303
|
+
margin,
|
|
304
|
+
marginX,
|
|
305
|
+
marginY,
|
|
306
|
+
marginTop,
|
|
307
|
+
marginRight,
|
|
308
|
+
marginBottom,
|
|
309
|
+
marginLeft,
|
|
296
310
|
maxWidth,
|
|
297
311
|
muted,
|
|
298
312
|
size: size2,
|
|
299
313
|
weight
|
|
300
|
-
}), $[
|
|
314
|
+
}), $[19] = align, $[20] = className, $[21] = flex, $[22] = margin, $[23] = marginBottom, $[24] = marginLeft, $[25] = marginRight, $[26] = marginTop, $[27] = marginX, $[28] = marginY, $[29] = maxWidth, $[30] = muted, $[31] = size2, $[32] = weight, $[33] = t5) : t5 = $[33];
|
|
301
315
|
let t6;
|
|
302
|
-
$[
|
|
316
|
+
$[34] !== textOverflowProp ? (t6 = textOverflow({
|
|
303
317
|
textOverflow: textOverflowProp
|
|
304
|
-
}), $[
|
|
318
|
+
}), $[34] = textOverflowProp, $[35] = t6) : t6 = $[35];
|
|
305
319
|
let t7;
|
|
306
|
-
$[
|
|
320
|
+
$[36] !== children || $[37] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[36] = children, $[37] = t6, $[38] = t7) : t7 = $[38];
|
|
307
321
|
let t8;
|
|
308
|
-
return $[
|
|
322
|
+
return $[39] !== Element2 || $[40] !== rest || $[41] !== t5 || $[42] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Text", ...rest, className: t5, children: t7 }), $[39] = Element2, $[40] = rest, $[41] = t5, $[42] = t7, $[43] = t8) : t8 = $[43], t8;
|
|
309
323
|
}
|
|
310
324
|
function AnimatedSpinnerIcon(props) {
|
|
311
325
|
const $ = c(5);
|
|
@@ -355,6 +369,7 @@ function Button(props) {
|
|
|
355
369
|
justify = "center",
|
|
356
370
|
loading,
|
|
357
371
|
mode = "default",
|
|
372
|
+
muted = !1,
|
|
358
373
|
padding = 3,
|
|
359
374
|
paddingX,
|
|
360
375
|
paddingY,
|
|
@@ -370,7 +385,6 @@ function Button(props) {
|
|
|
370
385
|
textWeight = "medium",
|
|
371
386
|
tone = "default",
|
|
372
387
|
type = "button",
|
|
373
|
-
muted = !1,
|
|
374
388
|
width,
|
|
375
389
|
...rest
|
|
376
390
|
} = props;
|
|
@@ -496,14 +510,15 @@ function CardProvider(props) {
|
|
|
496
510
|
scheme,
|
|
497
511
|
unstable_CompatProvider
|
|
498
512
|
} = props;
|
|
499
|
-
let t0
|
|
500
|
-
$[0] !== scheme || $[1] !== tone || $[2] !== unstable_CompatProvider ? (
|
|
513
|
+
let t0;
|
|
514
|
+
$[0] !== scheme || $[1] !== tone || $[2] !== unstable_CompatProvider ? (t0 = {
|
|
501
515
|
tone,
|
|
502
516
|
scheme,
|
|
503
517
|
unstable_CompatProvider
|
|
504
|
-
}, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] =
|
|
518
|
+
}, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] = t0) : t0 = $[3];
|
|
519
|
+
const t1 = t0;
|
|
505
520
|
let t2;
|
|
506
|
-
return $[4] !== children || $[5] !==
|
|
521
|
+
return $[4] !== children || $[5] !== t1 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t1, children }), $[4] = children, $[5] = t1, $[6] = t2) : t2 = $[6], t2;
|
|
507
522
|
}
|
|
508
523
|
function useCard() {
|
|
509
524
|
const card2 = use(CardContext);
|
|
@@ -663,9 +678,7 @@ function Arrow(props) {
|
|
|
663
678
|
style,
|
|
664
679
|
...rest
|
|
665
680
|
} = t0, $[0] = t0, $[1] = h, $[2] = rest, $[3] = style, $[4] = t1, $[5] = t2, $[6] = w) : (h = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5], w = $[6]);
|
|
666
|
-
const Element2 = t1 === void 0 ? DEFAULT_ARROW_ELEMENT : t1, radius = t2 === void 0 ? 0 : t2, center = w / 2
|
|
667
|
-
let t3;
|
|
668
|
-
const points = [{
|
|
681
|
+
const Element2 = t1 === void 0 ? DEFAULT_ARROW_ELEMENT : t1, radius = t2 === void 0 ? 0 : t2, center = w / 2, points = [{
|
|
669
682
|
x: 0,
|
|
670
683
|
y: 0
|
|
671
684
|
}, {
|
|
@@ -683,44 +696,42 @@ function Arrow(props) {
|
|
|
683
696
|
}, {
|
|
684
697
|
x: w,
|
|
685
698
|
y: 0
|
|
686
|
-
}], cmds = getRoundedCommands(points)
|
|
687
|
-
t3
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
699
|
+
}], cmds = getRoundedCommands(points), path = compileCommands(cmds), strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`;
|
|
700
|
+
let t3;
|
|
701
|
+
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = _arrow(), $[7] = t3) : t3 = $[7];
|
|
702
|
+
const t4 = `${w}px`;
|
|
703
|
+
let t5;
|
|
704
|
+
$[8] !== t4 ? (t5 = assignInlineVars({
|
|
705
|
+
[vars.arrow.size]: t4
|
|
706
|
+
}), $[8] = t4, $[9] = t5) : t5 = $[9];
|
|
692
707
|
let t6;
|
|
693
|
-
$[
|
|
694
|
-
[vars.arrow.size]: t5
|
|
695
|
-
}), $[8] = t5, $[9] = t6) : t6 = $[9];
|
|
696
|
-
let t7;
|
|
697
|
-
$[10] !== style || $[11] !== t6 ? (t7 = {
|
|
708
|
+
$[10] !== style || $[11] !== t5 ? (t6 = {
|
|
698
709
|
...style,
|
|
699
|
-
...
|
|
700
|
-
}, $[10] = style, $[11] =
|
|
701
|
-
let
|
|
702
|
-
$[13] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
703
|
-
const
|
|
710
|
+
...t5
|
|
711
|
+
}, $[10] = style, $[11] = t5, $[12] = t6) : t6 = $[12];
|
|
712
|
+
let t7;
|
|
713
|
+
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = _arrowSvg(), $[13] = t7) : t7 = $[13];
|
|
714
|
+
const t8 = `0 0 ${w} ${w}`;
|
|
715
|
+
let t9;
|
|
716
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t9 = _arrowStrokeMask(), $[14] = t9) : t9 = $[14];
|
|
704
717
|
let t10;
|
|
705
|
-
$[
|
|
718
|
+
$[15] !== w ? (t10 = /* @__PURE__ */ jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsx("rect", { className: t9, x: 0, width: w, height: w, fill: "white" }) }), $[15] = w, $[16] = t10) : t10 = $[16];
|
|
706
719
|
let t11;
|
|
707
|
-
$[
|
|
720
|
+
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _arrowStroke(), $[17] = t11) : t11 = $[17];
|
|
708
721
|
let t12;
|
|
709
|
-
$[
|
|
722
|
+
$[18] !== strokePath ? (t12 = /* @__PURE__ */ jsx("path", { className: t11, d: strokePath, mask: "url(#stroke-mask)" }), $[18] = strokePath, $[19] = t12) : t12 = $[19];
|
|
710
723
|
let t13;
|
|
711
|
-
$[
|
|
724
|
+
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t13 = _arrowShape(), $[20] = t13) : t13 = $[20];
|
|
712
725
|
let t14;
|
|
713
|
-
$[
|
|
726
|
+
$[21] !== fillPath ? (t14 = /* @__PURE__ */ jsx("path", { className: t13, d: fillPath }), $[21] = fillPath, $[22] = t14) : t14 = $[22];
|
|
714
727
|
let t15;
|
|
715
|
-
$[
|
|
728
|
+
$[23] !== t10 || $[24] !== t12 || $[25] !== t14 || $[26] !== t8 || $[27] !== w ? (t15 = /* @__PURE__ */ jsxs("svg", { className: t7, width: w, height: w, viewBox: t8, children: [
|
|
729
|
+
t10,
|
|
730
|
+
t12,
|
|
731
|
+
t14
|
|
732
|
+
] }), $[23] = t10, $[24] = t12, $[25] = t14, $[26] = t8, $[27] = w, $[28] = t15) : t15 = $[28];
|
|
716
733
|
let t16;
|
|
717
|
-
$[
|
|
718
|
-
t11,
|
|
719
|
-
t13,
|
|
720
|
-
t15
|
|
721
|
-
] }), $[23] = t11, $[24] = t13, $[25] = t15, $[26] = t9, $[27] = w, $[28] = t16) : t16 = $[28];
|
|
722
|
-
let t17;
|
|
723
|
-
return $[29] !== Element2 || $[30] !== rest || $[31] !== t16 || $[32] !== t7 ? (t17 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t4, style: t7, children: t16 }), $[29] = Element2, $[30] = rest, $[31] = t16, $[32] = t7, $[33] = t17) : t17 = $[33], t17;
|
|
734
|
+
return $[29] !== Element2 || $[30] !== rest || $[31] !== t15 || $[32] !== t6 ? (t16 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t3, style: t6, children: t15 }), $[29] = Element2, $[30] = rest, $[31] = t15, $[32] = t6, $[33] = t16) : t16 = $[33], t16;
|
|
724
735
|
}
|
|
725
736
|
const DEFAULT_FLEX_ELEMENT = "div";
|
|
726
737
|
function Flex(props) {
|
|
@@ -871,8 +882,8 @@ function getServerSnapshot() {
|
|
|
871
882
|
}
|
|
872
883
|
function useMediaIndex() {
|
|
873
884
|
const $ = c(1);
|
|
874
|
-
let t0
|
|
875
|
-
$[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
885
|
+
let t0;
|
|
886
|
+
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = _createMediaStore(), $[0] = t0) : t0 = $[0];
|
|
876
887
|
const store = t0;
|
|
877
888
|
return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
|
|
878
889
|
}
|
|
@@ -908,18 +919,18 @@ function LayerProvider(props) {
|
|
|
908
919
|
const registerChild = t3;
|
|
909
920
|
let t4, t5;
|
|
910
921
|
$[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
|
|
911
|
-
let t6
|
|
912
|
-
$[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (
|
|
922
|
+
let t6;
|
|
923
|
+
$[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t6 = {
|
|
913
924
|
version: 0,
|
|
914
925
|
isTopLayer,
|
|
915
926
|
level,
|
|
916
927
|
registerChild,
|
|
917
928
|
size: size2,
|
|
918
929
|
zIndex
|
|
919
|
-
}, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] =
|
|
930
|
+
}, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t6) : t6 = $[15];
|
|
920
931
|
const value = t6;
|
|
921
|
-
let
|
|
922
|
-
return $[16] !== children || $[17] !== value ? (
|
|
932
|
+
let t7;
|
|
933
|
+
return $[16] !== children || $[17] !== value ? (t7 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t7) : t7 = $[18], t7;
|
|
923
934
|
}
|
|
924
935
|
function _temp2$2(v_0) {
|
|
925
936
|
return v_0 - 1;
|
|
@@ -970,52 +981,45 @@ function PopoverLayer(props) {
|
|
|
970
981
|
y: yProp,
|
|
971
982
|
...rest
|
|
972
983
|
} = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = maxWidth, $[9] = originX, $[10] = originY, $[11] = overflow, $[12] = padding, $[13] = placement, $[14] = radius, $[15] = referenceWidth, $[16] = rest, $[17] = shadow, $[18] = strategy, $[19] = style, $[20] = t0, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], maxWidth = $[8], originX = $[9], originY = $[10], overflow = $[11], padding = $[12], placement = $[13], radius = $[14], referenceWidth = $[15], rest = $[16], shadow = $[17], strategy = $[18], style = $[19], t0 = $[20], xProp = $[21], yProp = $[22]);
|
|
973
|
-
const tone = t0 === void 0 ? "inherit" : t0;
|
|
974
|
-
let t1;
|
|
975
|
-
t1 = marginsProp || DEFAULT_POPOVER_MARGINS;
|
|
976
|
-
const margins = t1, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
|
|
984
|
+
const tone = t0 === void 0 ? "inherit" : t0, margins = marginsProp || DEFAULT_POPOVER_MARGINS, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0], t1 = animate ? "transform" : void 0;
|
|
977
985
|
let t2;
|
|
978
|
-
|
|
979
|
-
let t4;
|
|
980
|
-
$[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== style || $[27] !== t3 || $[28] !== x || $[29] !== y ? (t4 = {
|
|
986
|
+
$[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== style || $[27] !== t1 || $[28] !== x || $[29] !== y ? (t2 = {
|
|
981
987
|
left: x,
|
|
982
988
|
originX,
|
|
983
989
|
originY,
|
|
984
990
|
top: y,
|
|
985
991
|
width: referenceWidth,
|
|
986
|
-
willChange:
|
|
992
|
+
willChange: t1,
|
|
987
993
|
...style
|
|
988
|
-
}, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = style, $[27] =
|
|
989
|
-
const rootStyle = t2;
|
|
994
|
+
}, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = style, $[27] = t1, $[28] = x, $[29] = y, $[30] = t2) : t2 = $[30];
|
|
995
|
+
const rootStyle = t2, t3 = arrowX !== null ? arrowX : void 0, t4 = arrowY !== null ? arrowY : void 0;
|
|
990
996
|
let t5;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
left: t6,
|
|
995
|
-
top: t7,
|
|
997
|
+
$[31] !== t3 || $[32] !== t4 ? (t5 = {
|
|
998
|
+
left: t3,
|
|
999
|
+
top: t4,
|
|
996
1000
|
right: void 0,
|
|
997
1001
|
bottom: void 0
|
|
998
|
-
}, $[31] =
|
|
1002
|
+
}, $[31] = t3, $[32] = t4, $[33] = t5) : t5 = $[33];
|
|
999
1003
|
const arrowStyle = t5;
|
|
1004
|
+
let t6;
|
|
1005
|
+
$[34] === Symbol.for("react.memo_cache_sentinel") ? (t6 = popoverCard(), $[34] = t6) : t6 = $[34];
|
|
1006
|
+
let t7;
|
|
1007
|
+
$[35] !== animate ? (t7 = animate ? ["hidden", "initial"] : void 0, $[35] = animate, $[36] = t7) : t7 = $[36];
|
|
1008
|
+
let t8;
|
|
1009
|
+
$[37] !== animate ? (t8 = animate ? ["visible", "scaleIn"] : void 0, $[37] = animate, $[38] = t8) : t8 = $[38];
|
|
1000
1010
|
let t9;
|
|
1001
|
-
$[
|
|
1011
|
+
$[39] !== animate ? (t9 = animate ? ["hidden", "scaleOut"] : void 0, $[39] = animate, $[40] = t9) : t9 = $[40];
|
|
1002
1012
|
let t10;
|
|
1003
|
-
$[
|
|
1013
|
+
$[41] !== children || $[42] !== padding ? (t10 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[41] = children, $[42] = padding, $[43] = t10) : t10 = $[43];
|
|
1004
1014
|
let t11;
|
|
1005
|
-
$[
|
|
1015
|
+
$[44] !== maxWidth || $[45] !== overflow || $[46] !== t10 ? (t11 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t10 }), $[44] = maxWidth, $[45] = overflow, $[46] = t10, $[47] = t11) : t11 = $[47];
|
|
1006
1016
|
let t12;
|
|
1007
|
-
$[
|
|
1017
|
+
$[48] !== arrow2 || $[49] !== arrowRef || $[50] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow2, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t12) : t12 = $[51];
|
|
1008
1018
|
let t13;
|
|
1009
|
-
$[
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
$[48] !== arrow2 || $[49] !== arrowRef || $[50] !== arrowStyle ? (t15 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow2, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t15) : t15 = $[51];
|
|
1014
|
-
let t16;
|
|
1015
|
-
return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t10 || $[59] !== t11 || $[60] !== t12 || $[61] !== t14 || $[62] !== t15 || $[63] !== tone ? (t16 = /* @__PURE__ */ jsxs(Layer, { className: t9, "data-ui": "Popover", ...rest, as: motion.div, "data-context-tone": tone, "data-placement": placement, flexDirection: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t10, animate: t11, exit: t12, children: [
|
|
1016
|
-
t14,
|
|
1017
|
-
t15
|
|
1018
|
-
] }), $[52] = placement, $[53] = radius, $[54] = rest, $[55] = rootStyle, $[56] = shadow, $[57] = strategy, $[58] = t10, $[59] = t11, $[60] = t12, $[61] = t14, $[62] = t15, $[63] = tone, $[64] = t16) : t16 = $[64], t16;
|
|
1019
|
+
return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t11 || $[59] !== t12 || $[60] !== t7 || $[61] !== t8 || $[62] !== t9 || $[63] !== tone ? (t13 = /* @__PURE__ */ jsxs(Layer, { className: t6, "data-ui": "Popover", ...rest, as: motion.div, "data-context-tone": tone, "data-placement": placement, flexDirection: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t7, animate: t8, exit: t9, children: [
|
|
1020
|
+
t11,
|
|
1021
|
+
t12
|
|
1022
|
+
] }), $[52] = placement, $[53] = radius, $[54] = rest, $[55] = rootStyle, $[56] = shadow, $[57] = strategy, $[58] = t11, $[59] = t12, $[60] = t7, $[61] = t8, $[62] = t9, $[63] = tone, $[64] = t13) : t13 = $[64], t13;
|
|
1019
1023
|
}
|
|
1020
1024
|
const DEFAULT_POPOVER_ELEMENT = "div";
|
|
1021
1025
|
function ViewportOverlay() {
|
|
@@ -1185,18 +1189,16 @@ function Stack(props) {
|
|
|
1185
1189
|
return $[7] !== as || $[8] !== gap || $[9] !== rest || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(Box, { "data-ui": "Stack", ...rest, as, gridAutoRows: "min", className: t2, display: "grid", gap }), $[7] = as, $[8] = gap, $[9] = rest, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
|
|
1186
1190
|
}
|
|
1187
1191
|
function useCustomValidity(ref, customValidity) {
|
|
1188
|
-
const $ = c(
|
|
1189
|
-
let t0;
|
|
1190
|
-
$[0] !== customValidity || $[1] !== ref
|
|
1192
|
+
const $ = c(4);
|
|
1193
|
+
let t0, t1;
|
|
1194
|
+
$[0] !== customValidity || $[1] !== ref ? (t0 = () => {
|
|
1191
1195
|
ref.current?.setCustomValidity(customValidity || "");
|
|
1192
|
-
}, $[0] = customValidity, $[1] = ref
|
|
1193
|
-
let t1;
|
|
1194
|
-
$[3] !== customValidity || $[4] !== ref ? (t1 = [customValidity, ref], $[3] = customValidity, $[4] = ref, $[5] = t1) : t1 = $[5], useEffect(t0, t1);
|
|
1196
|
+
}, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), useEffect(t0, t1);
|
|
1195
1197
|
}
|
|
1196
1198
|
const DEFAULT_TEXT_INPUT_ELEMENT = "input";
|
|
1197
1199
|
function TextInput(props) {
|
|
1198
|
-
const $ = c(
|
|
1199
|
-
let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, forwardedRef, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
|
|
1200
|
+
const $ = c(90), t0 = props;
|
|
1201
|
+
let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, flex, forwardedRef, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
|
|
1200
1202
|
if ($[0] !== t0) {
|
|
1201
1203
|
const {
|
|
1202
1204
|
__unstable_disableFocusRing: t92,
|
|
@@ -1205,99 +1207,98 @@ function TextInput(props) {
|
|
|
1205
1207
|
className: t122,
|
|
1206
1208
|
clearButton: t132,
|
|
1207
1209
|
disabled: t142,
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1210
|
+
flex: t152,
|
|
1211
|
+
fontSize: t162,
|
|
1212
|
+
gap: t172,
|
|
1213
|
+
icon: t182,
|
|
1214
|
+
iconRight: t192,
|
|
1215
|
+
onClear: t202,
|
|
1216
|
+
padding: t212,
|
|
1217
|
+
prefix: t222,
|
|
1218
|
+
radius: t232,
|
|
1219
|
+
readOnly: t242,
|
|
1220
|
+
ref: t252,
|
|
1221
|
+
suffix: t262,
|
|
1222
|
+
customValidity: t272,
|
|
1223
|
+
type: t282,
|
|
1221
1224
|
weight: _width,
|
|
1222
|
-
width:
|
|
1223
|
-
...
|
|
1225
|
+
width: t292,
|
|
1226
|
+
...t302
|
|
1224
1227
|
} = t0;
|
|
1225
|
-
__unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142,
|
|
1228
|
+
__unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142, flex = t152, t4 = t162, t5 = t172, IconComponent = t182, IconRightComponent = t192, onClear = t202, t6 = t212, prefix = t222, t7 = t232, readOnly = t242, forwardedRef = t252, suffix = t262, customValidity = t272, t8 = t282, width = t292, rest = t302, $[0] = t0, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = flex, $[8] = forwardedRef, $[9] = onClear, $[10] = prefix, $[11] = readOnly, $[12] = rest, $[13] = suffix, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = t7, $[21] = t8, $[22] = width;
|
|
1226
1229
|
} else
|
|
1227
|
-
IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6],
|
|
1230
|
+
IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], flex = $[7], forwardedRef = $[8], onClear = $[9], prefix = $[10], readOnly = $[11], rest = $[12], suffix = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], t5 = $[18], t6 = $[19], t7 = $[20], t8 = $[21], width = $[22];
|
|
1228
1231
|
const Element2 = t1 === void 0 ? DEFAULT_TEXT_INPUT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, type = t8 === void 0 ? "text" : t8, ref = useRef(null), responsivePadding = useResponsiveProp(padding), withClearButton = !!clearButton;
|
|
1229
1232
|
let t9;
|
|
1230
|
-
$[
|
|
1233
|
+
$[23] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => ref.current, $[23] = t9) : t9 = $[23], useImperativeHandle(forwardedRef, t9), useCustomValidity(ref, customValidity);
|
|
1231
1234
|
const handleClearMouseDown = _temp$8;
|
|
1232
1235
|
let t10;
|
|
1233
|
-
$[
|
|
1236
|
+
$[24] !== onClear ? (t10 = (event_0) => {
|
|
1234
1237
|
event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
|
|
1235
|
-
}, $[
|
|
1238
|
+
}, $[24] = onClear, $[25] = t10) : t10 = $[25];
|
|
1236
1239
|
const handleClearClick = t10;
|
|
1237
|
-
let t11
|
|
1238
|
-
$[
|
|
1240
|
+
let t11;
|
|
1241
|
+
$[26] !== responsivePadding ? (t11 = Object.fromEntries(Object.entries(responsivePadding).map(_temp2$1)), $[26] = responsivePadding, $[27] = t11) : t11 = $[27];
|
|
1239
1242
|
const clearButtonBoxPadding = t11;
|
|
1240
|
-
let
|
|
1241
|
-
$[
|
|
1242
|
-
const clearButtonPadding =
|
|
1243
|
-
let
|
|
1244
|
-
|
|
1245
|
-
const clearButtonProps = t15;
|
|
1246
|
-
let t16;
|
|
1247
|
-
$[29] !== border || $[30] !== className || $[31] !== fontSize || $[32] !== gap || $[33] !== padding || $[34] !== radius || $[35] !== width ? (t16 = textInput({
|
|
1243
|
+
let t12;
|
|
1244
|
+
$[28] !== responsivePadding ? (t12 = Object.fromEntries(Object.entries(responsivePadding).map(_temp3)), $[28] = responsivePadding, $[29] = t12) : t12 = $[29];
|
|
1245
|
+
const clearButtonPadding = t12, clearButtonProps = isRecord(clearButton) ? clearButton : EMPTY_RECORD;
|
|
1246
|
+
let t13;
|
|
1247
|
+
$[30] !== border || $[31] !== className || $[32] !== flex || $[33] !== fontSize || $[34] !== gap || $[35] !== padding || $[36] !== radius || $[37] !== width ? (t13 = textInput({
|
|
1248
1248
|
className,
|
|
1249
1249
|
border,
|
|
1250
|
+
flex,
|
|
1250
1251
|
fontSize,
|
|
1251
1252
|
padding,
|
|
1252
1253
|
radius,
|
|
1253
1254
|
gap,
|
|
1254
1255
|
width
|
|
1255
|
-
}), $[
|
|
1256
|
-
const
|
|
1257
|
-
let
|
|
1258
|
-
$[
|
|
1256
|
+
}), $[30] = border, $[31] = className, $[32] = flex, $[33] = fontSize, $[34] = gap, $[35] = padding, $[36] = radius, $[37] = width, $[38] = t13) : t13 = $[38];
|
|
1257
|
+
const t14 = IconComponent ? "" : void 0, t15 = IconRightComponent ? "" : void 0, t16 = customValidity ? "" : void 0, t17 = prefix ? "" : void 0, t18 = !disabled && readOnly ? "" : void 0, t19 = suffix ? "" : void 0;
|
|
1258
|
+
let t20;
|
|
1259
|
+
$[39] !== prefix ? (t20 = prefix && /* @__PURE__ */ jsx("span", { className: textInputPrefix(), children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[39] = prefix, $[40] = t20) : t20 = $[40];
|
|
1260
|
+
let t21;
|
|
1261
|
+
$[41] === Symbol.for("react.memo_cache_sentinel") ? (t21 = textInputElement(), $[41] = t21) : t21 = $[41];
|
|
1262
|
+
let t22;
|
|
1263
|
+
$[42] === Symbol.for("react.memo_cache_sentinel") ? (t22 = _inputElement(), $[42] = t22) : t22 = $[42];
|
|
1264
|
+
const t23 = __unstable_disableFocusRing ? "" : void 0;
|
|
1259
1265
|
let t24;
|
|
1260
|
-
$[
|
|
1266
|
+
$[43] !== Element2 || $[44] !== disabled || $[45] !== readOnly || $[46] !== rest || $[47] !== t23 || $[48] !== type ? (t24 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t22, "data-no-focus-ring": t23, disabled, readOnly, ref, type }), $[43] = Element2, $[44] = disabled, $[45] = readOnly, $[46] = rest, $[47] = t23, $[48] = type, $[49] = t24) : t24 = $[49];
|
|
1261
1267
|
let t25;
|
|
1262
|
-
$[
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
$[41] !== Element2 || $[42] !== disabled || $[43] !== readOnly || $[44] !== rest || $[45] !== t26 || $[46] !== type ? (t27 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t25, "data-no-focus-ring": t26, disabled, readOnly, ref, type }), $[41] = Element2, $[42] = disabled, $[43] = readOnly, $[44] = rest, $[45] = t26, $[46] = type, $[47] = t27) : t27 = $[47];
|
|
1266
|
-
let t28;
|
|
1267
|
-
$[48] === Symbol.for("react.memo_cache_sentinel") ? (t28 = _inputPresentation(), $[48] = t28) : t28 = $[48];
|
|
1268
|
-
let t29;
|
|
1269
|
-
$[49] !== IconComponent || $[50] !== fontSize || $[51] !== padding ? (t29 = IconComponent && /* @__PURE__ */ jsx(Box, { padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { size: fontSize, children: [
|
|
1268
|
+
$[50] === Symbol.for("react.memo_cache_sentinel") ? (t25 = _inputPresentation(), $[50] = t25) : t25 = $[50];
|
|
1269
|
+
let t26;
|
|
1270
|
+
$[51] !== IconComponent || $[52] !== fontSize || $[53] !== padding ? (t26 = IconComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
|
|
1270
1271
|
isValidElement(IconComponent) && IconComponent,
|
|
1271
1272
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
1272
|
-
] }) }), $[
|
|
1273
|
-
let
|
|
1274
|
-
$[
|
|
1273
|
+
] }) }), $[51] = IconComponent, $[52] = fontSize, $[53] = padding, $[54] = t26) : t26 = $[54];
|
|
1274
|
+
let t27;
|
|
1275
|
+
$[55] !== IconRightComponent || $[56] !== fontSize || $[57] !== padding || $[58] !== withClearButton ? (t27 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
|
|
1275
1276
|
isValidElement(IconRightComponent) && IconRightComponent,
|
|
1276
1277
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
1277
|
-
] }) }), $[
|
|
1278
|
+
] }) }), $[55] = IconRightComponent, $[56] = fontSize, $[57] = padding, $[58] = withClearButton, $[59] = t27) : t27 = $[59];
|
|
1279
|
+
let t28;
|
|
1280
|
+
$[60] !== t26 || $[61] !== t27 ? (t28 = /* @__PURE__ */ jsxs("span", { className: t25, children: [
|
|
1281
|
+
t26,
|
|
1282
|
+
t27
|
|
1283
|
+
] }), $[60] = t26, $[61] = t27, $[62] = t28) : t28 = $[62];
|
|
1284
|
+
let t29;
|
|
1285
|
+
$[63] !== clearButton || $[64] !== clearButtonBoxPadding || $[65] !== clearButtonPadding || $[66] !== clearButtonProps || $[67] !== disabled || $[68] !== fontSize || $[69] !== handleClearClick || $[70] !== radius || $[71] !== readOnly ? (t29 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(Box, { as: "span", insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: {
|
|
1286
|
+
zIndex: 2
|
|
1287
|
+
}, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[63] = clearButton, $[64] = clearButtonBoxPadding, $[65] = clearButtonPadding, $[66] = clearButtonProps, $[67] = disabled, $[68] = fontSize, $[69] = handleClearClick, $[70] = radius, $[71] = readOnly, $[72] = t29) : t29 = $[72];
|
|
1288
|
+
let t30;
|
|
1289
|
+
$[73] !== t24 || $[74] !== t28 || $[75] !== t29 ? (t30 = /* @__PURE__ */ jsxs("span", { className: t21, children: [
|
|
1290
|
+
t24,
|
|
1291
|
+
t28,
|
|
1292
|
+
t29
|
|
1293
|
+
] }), $[73] = t24, $[74] = t28, $[75] = t29, $[76] = t30) : t30 = $[76];
|
|
1278
1294
|
let t31;
|
|
1279
|
-
$[
|
|
1280
|
-
t29,
|
|
1281
|
-
t30
|
|
1282
|
-
] }), $[58] = t29, $[59] = t30, $[60] = t31) : t31 = $[60];
|
|
1295
|
+
$[77] !== suffix ? (t31 = suffix && /* @__PURE__ */ jsx("span", { className: textInputSuffix(), children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[77] = suffix, $[78] = t31) : t31 = $[78];
|
|
1283
1296
|
let t32;
|
|
1284
|
-
$[
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
$[
|
|
1289
|
-
t27,
|
|
1290
|
-
t31,
|
|
1291
|
-
t32
|
|
1292
|
-
] }), $[71] = t27, $[72] = t31, $[73] = t32, $[74] = t33) : t33 = $[74];
|
|
1293
|
-
let t34;
|
|
1294
|
-
$[75] !== suffix ? (t34 = suffix && /* @__PURE__ */ jsx(Box, { className: textInputSuffix(), sizing: "border", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[75] = suffix, $[76] = t34) : t34 = $[76];
|
|
1295
|
-
let t35;
|
|
1296
|
-
return $[77] !== t16 || $[78] !== t17 || $[79] !== t18 || $[80] !== t19 || $[81] !== t20 || $[82] !== t21 || $[83] !== t22 || $[84] !== t23 || $[85] !== t33 || $[86] !== t34 ? (t35 = /* @__PURE__ */ jsxs(Box, { alignItems: "center", className: t16, "data-icon-left": t17, "data-icon-right": t18, "data-invalid": t19, "data-prefix": t20, "data-read-only": t21, "data-suffix": t22, "data-ui": "TextInput", display: "flex", children: [
|
|
1297
|
-
t23,
|
|
1298
|
-
t33,
|
|
1299
|
-
t34
|
|
1300
|
-
] }), $[77] = t16, $[78] = t17, $[79] = t18, $[80] = t19, $[81] = t20, $[82] = t21, $[83] = t22, $[84] = t23, $[85] = t33, $[86] = t34, $[87] = t35) : t35 = $[87], t35;
|
|
1297
|
+
return $[79] !== t13 || $[80] !== t14 || $[81] !== t15 || $[82] !== t16 || $[83] !== t17 || $[84] !== t18 || $[85] !== t19 || $[86] !== t20 || $[87] !== t30 || $[88] !== t31 ? (t32 = /* @__PURE__ */ jsxs("span", { className: t13, "data-icon-left": t14, "data-icon-right": t15, "data-invalid": t16, "data-prefix": t17, "data-read-only": t18, "data-suffix": t19, "data-ui": "TextInput", children: [
|
|
1298
|
+
t20,
|
|
1299
|
+
t30,
|
|
1300
|
+
t31
|
|
1301
|
+
] }), $[79] = t13, $[80] = t14, $[81] = t15, $[82] = t16, $[83] = t17, $[84] = t18, $[85] = t19, $[86] = t20, $[87] = t30, $[88] = t31, $[89] = t32) : t32 = $[89], t32;
|
|
1301
1302
|
}
|
|
1302
1303
|
function _temp3(t0) {
|
|
1303
1304
|
const [key_0, value_0] = t0;
|
|
@@ -1862,15 +1863,15 @@ function DialogProvider(props) {
|
|
|
1862
1863
|
position,
|
|
1863
1864
|
zOffset
|
|
1864
1865
|
} = props;
|
|
1865
|
-
let t0
|
|
1866
|
-
$[0] !== position || $[1] !== zOffset ? (
|
|
1866
|
+
let t0;
|
|
1867
|
+
$[0] !== position || $[1] !== zOffset ? (t0 = {
|
|
1867
1868
|
version: 0,
|
|
1868
1869
|
position,
|
|
1869
1870
|
zOffset
|
|
1870
|
-
}, $[0] = position, $[1] = zOffset, $[2] =
|
|
1871
|
+
}, $[0] = position, $[1] = zOffset, $[2] = t0) : t0 = $[2];
|
|
1871
1872
|
const contextValue = t0;
|
|
1872
|
-
let
|
|
1873
|
-
return $[3] !== children || $[4] !== contextValue ? (
|
|
1873
|
+
let t1;
|
|
1874
|
+
return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
|
|
1874
1875
|
}
|
|
1875
1876
|
const DEFAULT_KBD_ELEMENT = "kbd";
|
|
1876
1877
|
function KBD(props) {
|
|
@@ -2119,8 +2120,8 @@ function Menu(props) {
|
|
|
2119
2120
|
$[28] !== isTopLayer || $[29] !== onEscape ? (t10 = (event) => {
|
|
2120
2121
|
isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
|
|
2121
2122
|
}, $[28] = isTopLayer, $[29] = onEscape, $[30] = t10) : t10 = $[30], useGlobalKeyDown(t10);
|
|
2122
|
-
let t11
|
|
2123
|
-
$[31] !== activeElement || $[32] !== activeIndex || $[33] !== handleItemMouseEnter || $[34] !== handleItemMouseLeave || $[35] !== mount || $[36] !== onClickOutside || $[37] !== onEscape || $[38] !== onItemClick || $[39] !== registerElement ? (
|
|
2123
|
+
let t11;
|
|
2124
|
+
$[31] !== activeElement || $[32] !== activeIndex || $[33] !== handleItemMouseEnter || $[34] !== handleItemMouseLeave || $[35] !== mount || $[36] !== onClickOutside || $[37] !== onEscape || $[38] !== onItemClick || $[39] !== registerElement ? (t11 = {
|
|
2124
2125
|
version: 0,
|
|
2125
2126
|
activeElement,
|
|
2126
2127
|
activeIndex,
|
|
@@ -2130,21 +2131,19 @@ function Menu(props) {
|
|
|
2130
2131
|
onItemClick,
|
|
2131
2132
|
onItemMouseEnter: handleItemMouseEnter,
|
|
2132
2133
|
onItemMouseLeave: handleItemMouseLeave,
|
|
2133
|
-
registerElement
|
|
2134
|
-
|
|
2135
|
-
onMouseLeave: handleItemMouseLeave
|
|
2136
|
-
}, $[31] = activeElement, $[32] = activeIndex, $[33] = handleItemMouseEnter, $[34] = handleItemMouseLeave, $[35] = mount, $[36] = onClickOutside, $[37] = onEscape, $[38] = onItemClick, $[39] = registerElement, $[40] = t12) : t12 = $[40], t11 = t12;
|
|
2134
|
+
registerElement
|
|
2135
|
+
}, $[31] = activeElement, $[32] = activeIndex, $[33] = handleItemMouseEnter, $[34] = handleItemMouseLeave, $[35] = mount, $[36] = onClickOutside, $[37] = onEscape, $[38] = onItemClick, $[39] = registerElement, $[40] = t11) : t11 = $[40];
|
|
2137
2136
|
const value = t11;
|
|
2138
|
-
let
|
|
2139
|
-
$[41] !== className ? (
|
|
2137
|
+
let t12;
|
|
2138
|
+
$[41] !== className ? (t12 = menu({
|
|
2140
2139
|
className
|
|
2141
|
-
}), $[41] = className, $[42] =
|
|
2140
|
+
}), $[41] = className, $[42] = t12) : t12 = $[42];
|
|
2141
|
+
let t13;
|
|
2142
|
+
$[43] !== children || $[44] !== gap ? (t13 = /* @__PURE__ */ jsx(Stack, { gap, children }), $[43] = children, $[44] = gap, $[45] = t13) : t13 = $[45];
|
|
2142
2143
|
let t14;
|
|
2143
|
-
$[
|
|
2144
|
+
$[46] !== as || $[47] !== handleKeyDown || $[48] !== handleRefChange || $[49] !== padding || $[50] !== rest || $[51] !== t12 || $[52] !== t13 ? (t14 = /* @__PURE__ */ jsx(Box, { "data-ui": "Menu", ...rest, as, className: t12, onKeyDown: handleKeyDown, overflow: "auto", outline: "none", padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t13 }), $[46] = as, $[47] = handleKeyDown, $[48] = handleRefChange, $[49] = padding, $[50] = rest, $[51] = t12, $[52] = t13, $[53] = t14) : t14 = $[53];
|
|
2144
2145
|
let t15;
|
|
2145
|
-
|
|
2146
|
-
let t16;
|
|
2147
|
-
return $[54] !== t15 || $[55] !== value ? (t16 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t15 }), $[54] = t15, $[55] = value, $[56] = t16) : t16 = $[56], t16;
|
|
2146
|
+
return $[54] !== t14 || $[55] !== value ? (t15 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t14 }), $[54] = t14, $[55] = value, $[56] = t15) : t15 = $[56], t15;
|
|
2148
2147
|
}
|
|
2149
2148
|
function MenuButton(props) {
|
|
2150
2149
|
const $ = c(57), {
|
|
@@ -2264,18 +2263,18 @@ function MenuButton(props) {
|
|
|
2264
2263
|
const button2 = t17;
|
|
2265
2264
|
let t18, t19;
|
|
2266
2265
|
$[43] !== buttonElement ? (t18 = () => buttonElement, t19 = [buttonElement], $[43] = buttonElement, $[44] = t18, $[45] = t19) : (t18 = $[44], t19 = $[45]), useImperativeHandle(forwardedRef, t18, t19);
|
|
2267
|
-
let t20
|
|
2268
|
-
$[46] !== popover2 ? (
|
|
2269
|
-
let
|
|
2270
|
-
$[48] !==
|
|
2266
|
+
let t20;
|
|
2267
|
+
$[46] !== popover2 ? (t20 = popover2 || {}, $[46] = popover2, $[47] = t20) : t20 = $[47];
|
|
2268
|
+
let t21;
|
|
2269
|
+
$[48] !== t20 ? (t21 = {
|
|
2271
2270
|
overflow: "auto",
|
|
2272
|
-
...
|
|
2273
|
-
}, $[48] =
|
|
2274
|
-
const popoverProps =
|
|
2271
|
+
...t20
|
|
2272
|
+
}, $[48] = t20, $[49] = t21) : t21 = $[49];
|
|
2273
|
+
const popoverProps = t21;
|
|
2274
|
+
let t22;
|
|
2275
|
+
$[50] !== button2 ? (t22 = button2 || /* @__PURE__ */ jsx(Fragment, {}), $[50] = button2, $[51] = t22) : t22 = $[51];
|
|
2275
2276
|
let t23;
|
|
2276
|
-
$[
|
|
2277
|
-
let t24;
|
|
2278
|
-
return $[52] !== menu2 || $[53] !== open || $[54] !== popoverProps || $[55] !== t23 ? (t24 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu2, open, children: t23 }), $[52] = menu2, $[53] = open, $[54] = popoverProps, $[55] = t23, $[56] = t24) : t24 = $[56], t24;
|
|
2277
|
+
return $[52] !== menu2 || $[53] !== open || $[54] !== popoverProps || $[55] !== t22 ? (t23 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu2, open, children: t22 }), $[52] = menu2, $[53] = open, $[54] = popoverProps, $[55] = t22, $[56] = t23) : t23 = $[56], t23;
|
|
2279
2278
|
}
|
|
2280
2279
|
function _temp$6(v) {
|
|
2281
2280
|
return !v;
|
|
@@ -2457,8 +2456,8 @@ function MenuItem(props) {
|
|
|
2457
2456
|
disabled || (onClick && onClick(event), onItemClick && onItemClick(event));
|
|
2458
2457
|
}, $[33] = disabled, $[34] = onClick, $[35] = onItemClick, $[36] = t11) : t11 = $[36];
|
|
2459
2458
|
const handleClick = t11;
|
|
2460
|
-
let t12
|
|
2461
|
-
$[37] !== padding || $[38] !== paddingBottom || $[39] !== paddingLeft || $[40] !== paddingRight || $[41] !== paddingTop || $[42] !== paddingX || $[43] !== paddingY ? (
|
|
2459
|
+
let t12;
|
|
2460
|
+
$[37] !== padding || $[38] !== paddingBottom || $[39] !== paddingLeft || $[40] !== paddingRight || $[41] !== paddingTop || $[42] !== paddingX || $[43] !== paddingY ? (t12 = {
|
|
2462
2461
|
padding,
|
|
2463
2462
|
paddingX,
|
|
2464
2463
|
paddingY,
|
|
@@ -2466,15 +2465,15 @@ function MenuItem(props) {
|
|
|
2466
2465
|
paddingRight,
|
|
2467
2466
|
paddingBottom,
|
|
2468
2467
|
paddingLeft
|
|
2469
|
-
}, $[37] = padding, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = paddingRight, $[41] = paddingTop, $[42] = paddingX, $[43] = paddingY, $[44] =
|
|
2468
|
+
}, $[37] = padding, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = paddingRight, $[41] = paddingTop, $[42] = paddingX, $[43] = paddingY, $[44] = t12) : t12 = $[44];
|
|
2470
2469
|
const paddingProps = t12;
|
|
2471
|
-
let
|
|
2472
|
-
$[45] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2470
|
+
let t13;
|
|
2471
|
+
$[45] === Symbol.for("react.memo_cache_sentinel") ? (t13 = (el) => {
|
|
2473
2472
|
ref.current = el, setRootElement(el);
|
|
2474
|
-
}, $[45] =
|
|
2475
|
-
const setRef =
|
|
2476
|
-
let
|
|
2477
|
-
$[46] !== IconComponent || $[47] !== IconRightComponent || $[48] !== fontSize || $[49] !== gap || $[50] !== gapX || $[51] !== gapY || $[52] !== hotkeys || $[53] !== paddingProps || $[54] !== text2 ? (
|
|
2473
|
+
}, $[45] = t13) : t13 = $[45];
|
|
2474
|
+
const setRef = t13, t14 = pressed ? "" : void 0, t15 = disabled ? "" : void 0, t16 = as === "button" ? "button" : void 0;
|
|
2475
|
+
let t17;
|
|
2476
|
+
$[46] !== IconComponent || $[47] !== IconRightComponent || $[48] !== fontSize || $[49] !== gap || $[50] !== gapX || $[51] !== gapY || $[52] !== hotkeys || $[53] !== paddingProps || $[54] !== text2 ? (t17 = (IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap, gapX, gapY, align: "center", ...paddingProps, children: [
|
|
2478
2477
|
IconComponent && /* @__PURE__ */ jsxs(Text, { muted: !0, size: fontSize, children: [
|
|
2479
2478
|
isValidElement(IconComponent) && IconComponent,
|
|
2480
2479
|
isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
|
|
@@ -2488,14 +2487,14 @@ function MenuItem(props) {
|
|
|
2488
2487
|
isValidElement(IconRightComponent) && IconRightComponent,
|
|
2489
2488
|
isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
|
|
2490
2489
|
] })
|
|
2491
|
-
] }), $[46] = IconComponent, $[47] = IconRightComponent, $[48] = fontSize, $[49] = gap, $[50] = gapX, $[51] = gapY, $[52] = hotkeys, $[53] = paddingProps, $[54] = text2, $[55] =
|
|
2492
|
-
let
|
|
2493
|
-
$[56] !== children || $[57] !== paddingProps ? (
|
|
2494
|
-
let
|
|
2495
|
-
return $[59] !==
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
] }), $[59] =
|
|
2490
|
+
] }), $[46] = IconComponent, $[47] = IconRightComponent, $[48] = fontSize, $[49] = gap, $[50] = gapX, $[51] = gapY, $[52] = hotkeys, $[53] = paddingProps, $[54] = text2, $[55] = t17) : t17 = $[55];
|
|
2491
|
+
let t18;
|
|
2492
|
+
$[56] !== children || $[57] !== paddingProps ? (t18 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t18) : t18 = $[58];
|
|
2493
|
+
let t19;
|
|
2494
|
+
return $[59] !== active || $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== radius || $[66] !== rest || $[67] !== role || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t17 || $[72] !== t18 || $[73] !== tone ? (t19 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...rest, as, "data-pressed": t14, "data-disabled": t15, radius, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role, selected: active, tabIndex: -1, tone, type: t16, children: [
|
|
2495
|
+
t17,
|
|
2496
|
+
t18
|
|
2497
|
+
] }), $[59] = active, $[60] = as, $[61] = disabled, $[62] = handleClick, $[63] = onItemMouseEnter, $[64] = onItemMouseLeave, $[65] = radius, $[66] = rest, $[67] = role, $[68] = t14, $[69] = t15, $[70] = t16, $[71] = t17, $[72] = t18, $[73] = tone, $[74] = t19) : t19 = $[74], t19;
|
|
2499
2498
|
}
|
|
2500
2499
|
const DEFAULT_TAB_ELEMENT = "button";
|
|
2501
2500
|
function Tab(props) {
|
|
@@ -2756,8 +2755,8 @@ function ToastProvider(props) {
|
|
|
2756
2755
|
let t1;
|
|
2757
2756
|
$[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
|
|
2758
2757
|
const [state, setState] = useState(t1), mounted = useMounted();
|
|
2759
|
-
let t2
|
|
2760
|
-
$[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2758
|
+
let t2;
|
|
2759
|
+
$[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
2761
2760
|
version: 0,
|
|
2762
2761
|
push: (params) => {
|
|
2763
2762
|
const id = params.id ?? generateToastId(), duration = params.duration ?? 5e3;
|
|
@@ -2781,15 +2780,15 @@ function ToastProvider(props) {
|
|
|
2781
2780
|
});
|
|
2782
2781
|
}), id;
|
|
2783
2782
|
}
|
|
2784
|
-
}, $[1] =
|
|
2783
|
+
}, $[1] = t2) : t2 = $[1];
|
|
2785
2784
|
const value = t2;
|
|
2785
|
+
let t3;
|
|
2786
|
+
$[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: /* @__PURE__ */ jsx(ToastLayer, { padding, paddingX, paddingY, gap, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, mode: "popLayout", children: state.map(_temp$4) }) }) }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t3) : t3 = $[9];
|
|
2786
2787
|
let t4;
|
|
2787
|
-
|
|
2788
|
-
let t5;
|
|
2789
|
-
return $[10] !== children || $[11] !== t4 ? (t5 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
|
|
2788
|
+
return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
|
|
2790
2789
|
children,
|
|
2791
|
-
|
|
2792
|
-
] }), $[10] = children, $[11] =
|
|
2790
|
+
t3
|
|
2791
|
+
] }), $[10] = children, $[11] = t3, $[12] = t4) : t4 = $[12], t4;
|
|
2793
2792
|
}
|
|
2794
2793
|
function _temp$4(t0) {
|
|
2795
2794
|
const {
|
|
@@ -2800,7 +2799,7 @@ function _temp$4(t0) {
|
|
|
2800
2799
|
return /* @__PURE__ */ jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration }, id_0);
|
|
2801
2800
|
}
|
|
2802
2801
|
function useToast() {
|
|
2803
|
-
const value =
|
|
2802
|
+
const value = use(ToastContext);
|
|
2804
2803
|
if (!value)
|
|
2805
2804
|
throw new Error("useToast(): missing context value");
|
|
2806
2805
|
if (!isRecord(value) || value.version !== 0)
|
|
@@ -2873,27 +2872,27 @@ function Tree(props) {
|
|
|
2873
2872
|
...rest
|
|
2874
2873
|
} = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = onFocus, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], onFocus = $[3], rest = $[4], t1 = $[5]);
|
|
2875
2874
|
const gap = t1 === void 0 ? 1 : t1, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement);
|
|
2876
|
-
let t2
|
|
2877
|
-
$[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2875
|
+
let t2;
|
|
2876
|
+
$[6] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[6] = t2) : t2 = $[6];
|
|
2878
2877
|
const path = t2;
|
|
2878
|
+
let t3;
|
|
2879
|
+
$[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[7] = t3) : t3 = $[7];
|
|
2880
|
+
const [itemElements, setItemElements] = useState(t3);
|
|
2879
2881
|
let t4;
|
|
2880
|
-
$[
|
|
2881
|
-
const [
|
|
2882
|
+
$[8] === Symbol.for("react.memo_cache_sentinel") ? (t4 = {}, $[8] = t4) : t4 = $[8];
|
|
2883
|
+
const [state, setState] = useState(t4), stateRef = useRef(state);
|
|
2882
2884
|
let t5;
|
|
2883
|
-
$[
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[9] = t6) : t6 = $[9], useImperativeHandle(forwardedRef, t6);
|
|
2887
|
-
let t7, t8;
|
|
2888
|
-
$[10] !== focusedElement ? (t7 = () => {
|
|
2885
|
+
$[9] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[9] = t5) : t5 = $[9], useImperativeHandle(forwardedRef, t5);
|
|
2886
|
+
let t6, t7;
|
|
2887
|
+
$[10] !== focusedElement ? (t6 = () => {
|
|
2889
2888
|
focusedElementRef.current = focusedElement;
|
|
2890
|
-
},
|
|
2891
|
-
let
|
|
2892
|
-
$[13] !== state ? (
|
|
2889
|
+
}, t7 = [focusedElement], $[10] = focusedElement, $[11] = t6, $[12] = t7) : (t6 = $[11], t7 = $[12]), useEffect(t6, t7);
|
|
2890
|
+
let t8, t9;
|
|
2891
|
+
$[13] !== state ? (t8 = () => {
|
|
2893
2892
|
stateRef.current = state;
|
|
2894
|
-
},
|
|
2895
|
-
let
|
|
2896
|
-
$[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2893
|
+
}, t9 = [state], $[13] = state, $[14] = t8, $[15] = t9) : (t8 = $[14], t9 = $[15]), useEffect(t8, t9);
|
|
2894
|
+
let t10;
|
|
2895
|
+
$[16] === Symbol.for("react.memo_cache_sentinel") ? (t10 = (element, path_0, expanded, selected) => (setState((s) => ({
|
|
2897
2896
|
...s,
|
|
2898
2897
|
[path_0]: {
|
|
2899
2898
|
element,
|
|
@@ -2906,10 +2905,10 @@ function Tree(props) {
|
|
|
2906
2905
|
};
|
|
2907
2906
|
return delete newState[path_0], newState;
|
|
2908
2907
|
});
|
|
2909
|
-
}), $[16] =
|
|
2910
|
-
const registerItem =
|
|
2911
|
-
let
|
|
2912
|
-
$[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2908
|
+
}), $[16] = t10) : t10 = $[16];
|
|
2909
|
+
const registerItem = t10;
|
|
2910
|
+
let t11;
|
|
2911
|
+
$[17] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (path_1, expanded_0) => {
|
|
2913
2912
|
setState((s_1) => {
|
|
2914
2913
|
const itemState = s_1[path_1];
|
|
2915
2914
|
return itemState ? {
|
|
@@ -2920,14 +2919,12 @@ function Tree(props) {
|
|
|
2920
2919
|
}
|
|
2921
2920
|
} : s_1;
|
|
2922
2921
|
});
|
|
2923
|
-
}, $[17] =
|
|
2924
|
-
const setExpanded = t12;
|
|
2922
|
+
}, $[17] = t11) : t11 = $[17];
|
|
2923
|
+
const setExpanded = t11, t12 = focusedElement || itemElements[0] || null;
|
|
2925
2924
|
let t13;
|
|
2926
|
-
|
|
2927
|
-
let t15;
|
|
2928
|
-
$[18] !== gap || $[19] !== state || $[20] !== t14 ? (t15 = {
|
|
2925
|
+
$[18] !== gap || $[19] !== state || $[20] !== t12 ? (t13 = {
|
|
2929
2926
|
version: 0,
|
|
2930
|
-
focusedElement:
|
|
2927
|
+
focusedElement: t12,
|
|
2931
2928
|
gap,
|
|
2932
2929
|
level: 0,
|
|
2933
2930
|
path,
|
|
@@ -2935,10 +2932,10 @@ function Tree(props) {
|
|
|
2935
2932
|
setExpanded,
|
|
2936
2933
|
setFocusedElement,
|
|
2937
2934
|
state
|
|
2938
|
-
}, $[18] = gap, $[19] = state, $[20] =
|
|
2935
|
+
}, $[18] = gap, $[19] = state, $[20] = t12, $[21] = t13) : t13 = $[21];
|
|
2939
2936
|
const contextValue = t13;
|
|
2940
|
-
let
|
|
2941
|
-
$[22] !== itemElements ? (
|
|
2937
|
+
let t14;
|
|
2938
|
+
$[22] !== itemElements ? (t14 = (event) => {
|
|
2942
2939
|
if (focusedElementRef.current) {
|
|
2943
2940
|
if (event.key === "ArrowDown") {
|
|
2944
2941
|
event.preventDefault();
|
|
@@ -2997,26 +2994,26 @@ function Tree(props) {
|
|
|
2997
2994
|
return;
|
|
2998
2995
|
}
|
|
2999
2996
|
}
|
|
3000
|
-
}, $[22] = itemElements, $[23] =
|
|
3001
|
-
const handleKeyDown =
|
|
3002
|
-
let
|
|
3003
|
-
$[24] !== onFocus ? (
|
|
2997
|
+
}, $[22] = itemElements, $[23] = t14) : t14 = $[23];
|
|
2998
|
+
const handleKeyDown = t14;
|
|
2999
|
+
let t15;
|
|
3000
|
+
$[24] !== onFocus ? (t15 = (event_0) => {
|
|
3004
3001
|
setFocusedElement(event_0.target), onFocus?.(event_0);
|
|
3005
|
-
}, $[24] = onFocus, $[25] =
|
|
3006
|
-
const handleFocus =
|
|
3007
|
-
let
|
|
3008
|
-
$[26] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3002
|
+
}, $[24] = onFocus, $[25] = t15) : t15 = $[25];
|
|
3003
|
+
const handleFocus = t15;
|
|
3004
|
+
let t16;
|
|
3005
|
+
$[26] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => {
|
|
3009
3006
|
if (!ref.current)
|
|
3010
3007
|
return;
|
|
3011
3008
|
const _itemElements = Array.from(ref.current.querySelectorAll('[data-ui="TreeItem"]'));
|
|
3012
3009
|
setItemElements(_itemElements);
|
|
3013
|
-
}, $[26] =
|
|
3010
|
+
}, $[26] = t16) : t16 = $[26];
|
|
3011
|
+
let t17;
|
|
3012
|
+
$[27] !== children ? (t17 = [children], $[27] = children, $[28] = t17) : t17 = $[28], useEffect(t16, t17);
|
|
3013
|
+
let t18;
|
|
3014
|
+
$[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t18 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t18) : t18 = $[34];
|
|
3014
3015
|
let t19;
|
|
3015
|
-
$[
|
|
3016
|
-
let t20;
|
|
3017
|
-
$[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t20 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t20) : t20 = $[34];
|
|
3018
|
-
let t21;
|
|
3019
|
-
return $[35] !== contextValue || $[36] !== t20 ? (t21 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t20 }), $[35] = contextValue, $[36] = t20, $[37] = t21) : t21 = $[37], t21;
|
|
3016
|
+
return $[35] !== contextValue || $[36] !== t18 ? (t19 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t18 }), $[35] = contextValue, $[36] = t18, $[37] = t19) : t19 = $[37], t19;
|
|
3020
3017
|
}
|
|
3021
3018
|
function useTree() {
|
|
3022
3019
|
const tree = use(TreeContext);
|
|
@@ -3136,32 +3133,21 @@ function _isScrollable(el) {
|
|
|
3136
3133
|
}
|
|
3137
3134
|
const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, DEFAULT_VIRTUAL_LIST_ELEMENT = "div";
|
|
3138
3135
|
function VirtualList(props) {
|
|
3139
|
-
const
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
as: t1,
|
|
3143
|
-
gap: t2,
|
|
3136
|
+
const {
|
|
3137
|
+
as = DEFAULT_VIRTUAL_LIST_ELEMENT,
|
|
3138
|
+
gap = 0,
|
|
3144
3139
|
getItemKey,
|
|
3145
|
-
items
|
|
3140
|
+
items = [],
|
|
3146
3141
|
onChange,
|
|
3147
3142
|
renderItem,
|
|
3148
3143
|
ref: forwardedRef,
|
|
3149
3144
|
...rest
|
|
3150
|
-
} =
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
$[9] !== t3 ? (t4 = t3 === void 0 ? [] : t3, $[9] = t3, $[10] = t4) : t4 = $[10];
|
|
3154
|
-
const items = t4, ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), [gapValue, setGapValue] = useState(0);
|
|
3155
|
-
let t5;
|
|
3156
|
-
$[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[11] = t5) : t5 = $[11], useImperativeHandle(forwardedRef, t5);
|
|
3157
|
-
let t6, t7;
|
|
3158
|
-
$[12] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
|
|
3159
|
-
if (!ref.current)
|
|
3160
|
-
return;
|
|
3145
|
+
} = props, ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), [gapValue, setGapValue] = useState(0);
|
|
3146
|
+
useImperativeHandle(forwardedRef, () => ref.current), useEffect(() => {
|
|
3147
|
+
if (!ref.current) return;
|
|
3161
3148
|
const scrollEl = findScrollable(ref.current.parentNode);
|
|
3162
3149
|
if (scrollEl) {
|
|
3163
|
-
if (!(scrollEl instanceof HTMLElement))
|
|
3164
|
-
return;
|
|
3150
|
+
if (!(scrollEl instanceof HTMLElement)) return;
|
|
3165
3151
|
const handleScroll = () => {
|
|
3166
3152
|
setScrollTop(scrollEl.scrollTop);
|
|
3167
3153
|
};
|
|
@@ -3185,10 +3171,9 @@ function VirtualList(props) {
|
|
|
3185
3171
|
}), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
|
|
3186
3172
|
window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
|
|
3187
3173
|
};
|
|
3188
|
-
},
|
|
3174
|
+
}, []);
|
|
3189
3175
|
const len = items.length, height = itemHeight ? len * (itemHeight + gapValue) - gapValue : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
|
|
3190
|
-
|
|
3191
|
-
$[14] !== fromIndex || $[15] !== gapValue || $[16] !== itemHeight || $[17] !== onChange || $[18] !== scrollHeight || $[19] !== scrollTop || $[20] !== toIndex ? (t8 = () => {
|
|
3176
|
+
useEffect(() => {
|
|
3192
3177
|
onChange?.({
|
|
3193
3178
|
fromIndex,
|
|
3194
3179
|
gap: gapValue,
|
|
@@ -3197,63 +3182,23 @@ function VirtualList(props) {
|
|
|
3197
3182
|
scrollTop,
|
|
3198
3183
|
toIndex
|
|
3199
3184
|
});
|
|
3200
|
-
},
|
|
3201
|
-
let t10;
|
|
3202
|
-
$[23] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => {
|
|
3185
|
+
}, [fromIndex, gapValue, itemHeight, onChange, scrollHeight, scrollTop, toIndex]), useEffect(() => {
|
|
3203
3186
|
setItemHeight(-1);
|
|
3204
|
-
},
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
let t142;
|
|
3217
|
-
$[27] !== items[0] || $[28] !== renderItem ? (t142 = renderItem(items[0]), $[27] = items[0], $[28] = renderItem, $[29] = t142) : t142 = $[29];
|
|
3218
|
-
let t152;
|
|
3219
|
-
$[30] !== t142 ? (t152 = /* @__PURE__ */ jsx(Box, { ref: t133, insetTop: 0, insetLeft: 0, insetRight: 0, position: "absolute", children: t142 }, 0), $[30] = t142, $[31] = t152) : t152 = $[31];
|
|
3220
|
-
let t162;
|
|
3221
|
-
$[32] === Symbol.for("react.memo_cache_sentinel") ? (t162 = (el_0) => el_0 ? setGapValue(el_0.offsetHeight) : void 0, $[32] = t162) : t162 = $[32];
|
|
3222
|
-
const t17 = vars.space[gap];
|
|
3223
|
-
let t18;
|
|
3224
|
-
$[33] !== t17 ? (t18 = /* @__PURE__ */ jsx("div", { ref: t162, style: {
|
|
3225
|
-
height: t17
|
|
3226
|
-
} }), $[33] = t17, $[34] = t18) : t18 = $[34];
|
|
3227
|
-
let t19;
|
|
3228
|
-
$[35] !== t152 || $[36] !== t18 ? (t19 = [/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3229
|
-
t152,
|
|
3230
|
-
t18
|
|
3231
|
-
] })], $[35] = t152, $[36] = t18, $[37] = t19) : t19 = $[37], t12 = t19;
|
|
3232
|
-
break bb0;
|
|
3233
|
-
}
|
|
3234
|
-
let t132;
|
|
3235
|
-
if ($[38] !== fromIndex || $[39] !== gapValue || $[40] !== getItemKey || $[41] !== itemHeight || $[42] !== items || $[43] !== renderItem || $[44] !== toIndex) {
|
|
3236
|
-
let t142;
|
|
3237
|
-
$[46] !== fromIndex || $[47] !== gapValue || $[48] !== getItemKey || $[49] !== itemHeight || $[50] !== renderItem ? (t142 = (item, _itemIndex) => {
|
|
3238
|
-
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
3239
|
-
return /* @__PURE__ */ jsx(Box, { insetLeft: 0, insetRight: 0, position: "absolute", style: {
|
|
3240
|
-
top: itemIndex * (itemHeight + gapValue)
|
|
3241
|
-
}, children: node }, key2);
|
|
3242
|
-
}, $[46] = fromIndex, $[47] = gapValue, $[48] = getItemKey, $[49] = itemHeight, $[50] = renderItem, $[51] = t142) : t142 = $[51], t132 = items.slice(fromIndex, toIndex).map(t142), $[38] = fromIndex, $[39] = gapValue, $[40] = getItemKey, $[41] = itemHeight, $[42] = items, $[43] = renderItem, $[44] = toIndex, $[45] = t132;
|
|
3243
|
-
} else
|
|
3244
|
-
t132 = $[45];
|
|
3245
|
-
t12 = t132;
|
|
3246
|
-
}
|
|
3247
|
-
const children = t12;
|
|
3248
|
-
let t13, t14;
|
|
3249
|
-
$[52] !== height ? (t14 = {
|
|
3187
|
+
}, [renderItem]);
|
|
3188
|
+
const children = useMemo(() => !renderItem || items.length === 0 ? null : itemHeight === -1 ? [/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3189
|
+
/* @__PURE__ */ jsx(Box, { ref: (el) => el ? setItemHeight(el.offsetHeight) : void 0, insetTop: 0, insetLeft: 0, insetRight: 0, position: "absolute", children: renderItem(items[0]) }, 0),
|
|
3190
|
+
/* @__PURE__ */ jsx("div", { ref: (el_0) => el_0 ? setGapValue(el_0.offsetHeight) : void 0, style: {
|
|
3191
|
+
height: vars.space[gap]
|
|
3192
|
+
} })
|
|
3193
|
+
] })] : items.slice(fromIndex, toIndex).map((item, _itemIndex) => {
|
|
3194
|
+
const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
|
|
3195
|
+
return /* @__PURE__ */ jsx(Box, { insetLeft: 0, insetRight: 0, position: "absolute", style: {
|
|
3196
|
+
top: itemIndex * (itemHeight + gapValue)
|
|
3197
|
+
}, children: node }, key2);
|
|
3198
|
+
}), [fromIndex, gap, gapValue, getItemKey, itemHeight, items, renderItem, toIndex]), wrapperStyle = useMemo(() => ({
|
|
3250
3199
|
height
|
|
3251
|
-
},
|
|
3252
|
-
|
|
3253
|
-
let t15;
|
|
3254
|
-
$[54] !== children || $[55] !== wrapperStyle ? (t15 = /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[54] = children, $[55] = wrapperStyle, $[56] = t15) : t15 = $[56];
|
|
3255
|
-
let t16;
|
|
3256
|
-
return $[57] !== as || $[58] !== rest || $[59] !== t15 ? (t16 = /* @__PURE__ */ jsx(Box, { "data-ui": "VirtualList", ...rest, as, position: "relative", ref, children: t15 }), $[57] = as, $[58] = rest, $[59] = t15, $[60] = t16) : t16 = $[60], t16;
|
|
3200
|
+
}), [height]);
|
|
3201
|
+
return /* @__PURE__ */ jsx(Box, { "data-ui": "VirtualList", ...rest, as, position: "relative", ref, children: /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }) });
|
|
3257
3202
|
}
|
|
3258
3203
|
function findScrollable(parentNode) {
|
|
3259
3204
|
let _scrollEl = parentNode;
|
|
@@ -3316,43 +3261,59 @@ function _temp$3() {
|
|
|
3316
3261
|
}
|
|
3317
3262
|
const DEFAULT_LABEL_ELEMENT = "div";
|
|
3318
3263
|
function Label(props) {
|
|
3319
|
-
const $ = c(
|
|
3320
|
-
let align, children, className, rest, t0, t1, t2, t3, textOverflowProp;
|
|
3264
|
+
const $ = c(42);
|
|
3265
|
+
let align, children, className, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t0, t1, t2, t3, textOverflowProp;
|
|
3321
3266
|
$[0] !== props ? ({
|
|
3322
3267
|
align,
|
|
3323
3268
|
as: t0,
|
|
3324
3269
|
children,
|
|
3325
3270
|
className,
|
|
3271
|
+
margin,
|
|
3272
|
+
marginX,
|
|
3273
|
+
marginY,
|
|
3274
|
+
marginTop,
|
|
3275
|
+
marginRight,
|
|
3276
|
+
marginBottom,
|
|
3277
|
+
marginLeft,
|
|
3278
|
+
maxWidth,
|
|
3326
3279
|
muted: t1,
|
|
3327
3280
|
size: t2,
|
|
3328
3281
|
textOverflow: textOverflowProp,
|
|
3329
3282
|
weight: t3,
|
|
3330
3283
|
...rest
|
|
3331
|
-
} = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] =
|
|
3284
|
+
} = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = margin, $[5] = marginBottom, $[6] = marginLeft, $[7] = marginRight, $[8] = marginTop, $[9] = marginX, $[10] = marginY, $[11] = maxWidth, $[12] = rest, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], margin = $[4], marginBottom = $[5], marginLeft = $[6], marginRight = $[7], marginTop = $[8], marginX = $[9], marginY = $[10], maxWidth = $[11], rest = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16], textOverflowProp = $[17]);
|
|
3332
3285
|
const Element2 = t0 === void 0 ? DEFAULT_LABEL_ELEMENT : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 1 : t2, weight = t3 === void 0 ? "regular" : t3;
|
|
3333
3286
|
let t4;
|
|
3334
|
-
$[
|
|
3287
|
+
$[18] !== align || $[19] !== className || $[20] !== margin || $[21] !== marginBottom || $[22] !== marginLeft || $[23] !== marginRight || $[24] !== marginTop || $[25] !== marginX || $[26] !== marginY || $[27] !== maxWidth || $[28] !== muted || $[29] !== size2 || $[30] !== weight ? (t4 = label({
|
|
3335
3288
|
className,
|
|
3336
3289
|
align,
|
|
3290
|
+
margin,
|
|
3291
|
+
marginX,
|
|
3292
|
+
marginY,
|
|
3293
|
+
marginTop,
|
|
3294
|
+
marginRight,
|
|
3295
|
+
marginBottom,
|
|
3296
|
+
marginLeft,
|
|
3297
|
+
maxWidth,
|
|
3337
3298
|
muted,
|
|
3338
3299
|
size: size2,
|
|
3339
3300
|
weight
|
|
3340
|
-
}), $[
|
|
3301
|
+
}), $[18] = align, $[19] = className, $[20] = margin, $[21] = marginBottom, $[22] = marginLeft, $[23] = marginRight, $[24] = marginTop, $[25] = marginX, $[26] = marginY, $[27] = maxWidth, $[28] = muted, $[29] = size2, $[30] = weight, $[31] = t4) : t4 = $[31];
|
|
3341
3302
|
let t5;
|
|
3342
|
-
$[
|
|
3303
|
+
$[32] !== textOverflowProp ? (t5 = textOverflow({
|
|
3343
3304
|
textOverflow: textOverflowProp
|
|
3344
|
-
}), $[
|
|
3305
|
+
}), $[32] = textOverflowProp, $[33] = t5) : t5 = $[33];
|
|
3345
3306
|
let t6;
|
|
3346
|
-
$[
|
|
3307
|
+
$[34] !== children || $[35] !== t5 ? (t6 = /* @__PURE__ */ jsx("span", { className: t5, children }), $[34] = children, $[35] = t5, $[36] = t6) : t6 = $[36];
|
|
3347
3308
|
let t7;
|
|
3348
|
-
return $[
|
|
3309
|
+
return $[37] !== Element2 || $[38] !== rest || $[39] !== t4 || $[40] !== t6 ? (t7 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Label", ...rest, className: t4, children: t6 }), $[37] = Element2, $[38] = rest, $[39] = t4, $[40] = t6, $[41] = t7) : t7 = $[41], t7;
|
|
3349
3310
|
}
|
|
3350
3311
|
const DEFAULT_AVATAR_ELEMENT = "span";
|
|
3351
3312
|
function Avatar(props) {
|
|
3352
3313
|
const $ = c(50), t0 = props;
|
|
3353
|
-
let
|
|
3314
|
+
let animateArrowFrom, arrowPositionProp, className, hideInnerStroke, initials, onImageLoadError, rest, src, t1, t2, t3, title;
|
|
3354
3315
|
$[0] !== t0 ? ({
|
|
3355
|
-
__unstable_hideInnerStroke,
|
|
3316
|
+
__unstable_hideInnerStroke: hideInnerStroke,
|
|
3356
3317
|
as: t1,
|
|
3357
3318
|
className,
|
|
3358
3319
|
color: t2,
|
|
@@ -3364,7 +3325,7 @@ function Avatar(props) {
|
|
|
3364
3325
|
animateArrowFrom,
|
|
3365
3326
|
size: t3,
|
|
3366
3327
|
...rest
|
|
3367
|
-
} = t0, $[0] = t0, $[1] =
|
|
3328
|
+
} = t0, $[0] = t0, $[1] = animateArrowFrom, $[2] = arrowPositionProp, $[3] = className, $[4] = hideInnerStroke, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = title) : (animateArrowFrom = $[1], arrowPositionProp = $[2], className = $[3], hideInnerStroke = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], title = $[12]);
|
|
3368
3329
|
const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp = t3 === void 0 ? 1 : t3, size2 = useResponsiveProp(sizeProp), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageError, setImageError] = useState(!1);
|
|
3369
3330
|
let t4, t5;
|
|
3370
3331
|
$[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t4 = () => {
|
|
@@ -3382,35 +3343,35 @@ function Avatar(props) {
|
|
|
3382
3343
|
setImageError(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
|
|
3383
3344
|
}, $[20] = onImageLoadError, $[21] = t8) : t8 = $[21];
|
|
3384
3345
|
const handleImageError = t8;
|
|
3385
|
-
let t9
|
|
3386
|
-
$[22] !== size2 ? (
|
|
3387
|
-
const initialsSize = t9,
|
|
3388
|
-
let
|
|
3389
|
-
$[24] !== className || $[25] !== color || $[26] !== sizeProp ? (
|
|
3346
|
+
let t9;
|
|
3347
|
+
$[22] !== size2 ? (t9 = Object.values(size2).map(_temp$2), $[22] = size2, $[23] = t9) : t9 = $[23];
|
|
3348
|
+
const initialsSize = t9, t10 = hideInnerStroke ? "" : void 0;
|
|
3349
|
+
let t11;
|
|
3350
|
+
$[24] !== className || $[25] !== color || $[26] !== sizeProp ? (t11 = avatar({
|
|
3390
3351
|
className,
|
|
3391
3352
|
color,
|
|
3392
3353
|
size: sizeProp
|
|
3393
|
-
}), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] =
|
|
3394
|
-
const
|
|
3354
|
+
}), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] = t11) : t11 = $[27];
|
|
3355
|
+
const t12 = imageError ? "" : void 0;
|
|
3356
|
+
let t13;
|
|
3357
|
+
$[28] === Symbol.for("react.memo_cache_sentinel") ? (t13 = avatarArrow(), $[28] = t13) : t13 = $[28];
|
|
3395
3358
|
let t14;
|
|
3396
|
-
$[
|
|
3359
|
+
$[29] !== color ? (t14 = /* @__PURE__ */ jsx("span", { className: t13, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[29] = color, $[30] = t14) : t14 = $[30];
|
|
3397
3360
|
let t15;
|
|
3398
|
-
$[
|
|
3361
|
+
$[31] === Symbol.for("react.memo_cache_sentinel") ? (t15 = avatarInitials(), $[31] = t15) : t15 = $[31];
|
|
3399
3362
|
let t16;
|
|
3400
|
-
$[
|
|
3363
|
+
$[32] !== initials || $[33] !== initialsSize ? (t16 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t15, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[32] = initials, $[33] = initialsSize, $[34] = t16) : t16 = $[34];
|
|
3401
3364
|
let t17;
|
|
3402
|
-
$[
|
|
3403
|
-
let t18;
|
|
3404
|
-
$[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t18 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
|
|
3365
|
+
$[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t17 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
|
|
3405
3366
|
/* @__PURE__ */ jsx("img", { alt: initials, onError: handleImageError, src }),
|
|
3406
3367
|
/* @__PURE__ */ jsx("span", { className: avatarImageOutline() })
|
|
3407
|
-
] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] =
|
|
3408
|
-
let
|
|
3409
|
-
return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !==
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] =
|
|
3368
|
+
] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] = t17) : t17 = $[38];
|
|
3369
|
+
let t18;
|
|
3370
|
+
return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !== t10 || $[43] !== t11 || $[44] !== t12 || $[45] !== t14 || $[46] !== t16 || $[47] !== t17 || $[48] !== title ? (t18 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t10, "data-ui": "Avatar", ...rest, "aria-label": title, className: t11, "data-arrow-position": arrowPosition, "data-image-error": t12, title, children: [
|
|
3371
|
+
t14,
|
|
3372
|
+
t16,
|
|
3373
|
+
t17
|
|
3374
|
+
] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] = t10, $[43] = t11, $[44] = t12, $[45] = t14, $[46] = t16, $[47] = t17, $[48] = title, $[49] = t18) : t18 = $[49], t18;
|
|
3414
3375
|
}
|
|
3415
3376
|
function _temp$2(s) {
|
|
3416
3377
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
@@ -3427,25 +3388,25 @@ function AvatarCounter(props) {
|
|
|
3427
3388
|
...rest
|
|
3428
3389
|
} = t0, $[0] = t0, $[1] = className, $[2] = count, $[3] = rest, $[4] = t1, $[5] = t2) : (className = $[1], count = $[2], rest = $[3], t1 = $[4], t2 = $[5]);
|
|
3429
3390
|
const as = t1 === void 0 ? DEFAULT_AVATAR_COUNTER_ELEMENT : t1, size2 = useResponsiveProp(t2 === void 0 ? 1 : t2);
|
|
3430
|
-
let t3
|
|
3431
|
-
$[6] !== size2 ? (
|
|
3391
|
+
let t3;
|
|
3392
|
+
$[6] !== size2 ? (t3 = Object.values(size2).map(_temp$1), $[6] = size2, $[7] = t3) : t3 = $[7];
|
|
3432
3393
|
const labelSize = t3;
|
|
3433
|
-
let
|
|
3434
|
-
$[8] !== className || $[9] !== size2 ? (
|
|
3394
|
+
let t4;
|
|
3395
|
+
$[8] !== className || $[9] !== size2 ? (t4 = avatarCounter({
|
|
3435
3396
|
className,
|
|
3436
3397
|
size: size2
|
|
3437
|
-
}), $[8] = className, $[9] = size2, $[10] =
|
|
3398
|
+
}), $[8] = className, $[9] = size2, $[10] = t4) : t4 = $[10];
|
|
3399
|
+
let t5;
|
|
3400
|
+
$[11] !== count || $[12] !== labelSize ? (t5 = /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: labelSize, weight: "medium", children: count }), $[11] = count, $[12] = labelSize, $[13] = t5) : t5 = $[13];
|
|
3438
3401
|
let t6;
|
|
3439
|
-
$[
|
|
3440
|
-
let t7;
|
|
3441
|
-
return $[14] !== as || $[15] !== rest || $[16] !== t5 || $[17] !== t6 ? (t7 = /* @__PURE__ */ jsx(Box, { "data-ui": "AvatarCounter", ...rest, alignItems: "center", as, className: t5, display: "flex", flex: "none", justifyContent: "center", paddingX: 2, sizing: "border", children: t6 }), $[14] = as, $[15] = rest, $[16] = t5, $[17] = t6, $[18] = t7) : t7 = $[18], t7;
|
|
3402
|
+
return $[14] !== as || $[15] !== rest || $[16] !== t4 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsx(Box, { "data-ui": "AvatarCounter", ...rest, alignItems: "center", as, className: t4, display: "flex", flex: "none", justifyContent: "center", paddingX: 2, sizing: "border", children: t5 }), $[14] = as, $[15] = rest, $[16] = t4, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
|
|
3442
3403
|
}
|
|
3443
3404
|
function _temp$1(s) {
|
|
3444
3405
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
3445
3406
|
}
|
|
3446
3407
|
const DEFAULT_AVATAR_STACK_ELEMENT = "span";
|
|
3447
3408
|
function AvatarStack(props) {
|
|
3448
|
-
const $ = c(
|
|
3409
|
+
const $ = c(27), t0 = props;
|
|
3449
3410
|
let childrenProp, className, rest, t1, t2, t3;
|
|
3450
3411
|
$[0] !== t0 ? ({
|
|
3451
3412
|
as: t1,
|
|
@@ -3461,18 +3422,22 @@ function AvatarStack(props) {
|
|
|
3461
3422
|
className,
|
|
3462
3423
|
size: size2
|
|
3463
3424
|
}), $[7] = className, $[8] = size2, $[9] = t6) : t6 = $[9];
|
|
3464
|
-
const t7 = "flex", t8 = "flex-start"
|
|
3425
|
+
const t7 = "flex", t8 = "flex-start";
|
|
3426
|
+
let t9;
|
|
3427
|
+
$[10] !== len || $[11] !== size2 ? (t9 = len === 0 && /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }), $[10] = len, $[11] = size2, $[12] = t9) : t9 = $[12];
|
|
3428
|
+
let t10;
|
|
3429
|
+
$[13] !== extraCount || $[14] !== len || $[15] !== size2 ? (t10 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }), $[13] = extraCount, $[14] = len, $[15] = size2, $[16] = t10) : t10 = $[16];
|
|
3465
3430
|
let t11;
|
|
3466
|
-
$[
|
|
3431
|
+
$[17] !== size2 ? (t11 = (child, childIndex) => /* @__PURE__ */ jsx(Fragment$1, { children: cloneElement(child, {
|
|
3467
3432
|
size: size2
|
|
3468
|
-
}) }, String(childIndex)), $[
|
|
3433
|
+
}) }, String(childIndex)), $[17] = size2, $[18] = t11) : t11 = $[18];
|
|
3469
3434
|
const t12 = visibleChildren.map(t11);
|
|
3470
3435
|
let t13;
|
|
3471
|
-
return $[
|
|
3436
|
+
return $[19] !== T0 || $[20] !== as || $[21] !== rest || $[22] !== t10 || $[23] !== t12 || $[24] !== t6 || $[25] !== t9 ? (t13 = /* @__PURE__ */ jsxs(T0, { "data-ui": t4, ...rest, alignItems: t5, as, className: t6, display: t7, justifyContent: t8, children: [
|
|
3472
3437
|
t9,
|
|
3473
3438
|
t10,
|
|
3474
3439
|
t12
|
|
3475
|
-
] }), $[
|
|
3440
|
+
] }), $[19] = T0, $[20] = as, $[21] = rest, $[22] = t10, $[23] = t12, $[24] = t6, $[25] = t9, $[26] = t13) : t13 = $[26], t13;
|
|
3476
3441
|
}
|
|
3477
3442
|
const DEFAULT_BADGE_ELEMENT = "span";
|
|
3478
3443
|
function Badge(props) {
|
|
@@ -3544,67 +3509,99 @@ function Checkbox(props) {
|
|
|
3544
3509
|
}
|
|
3545
3510
|
const LazyRefractor = lazy(() => import("./_chunks-es/Refractor.js")), DEFAULT_CODE_ELEMENT = "pre";
|
|
3546
3511
|
function Code(props) {
|
|
3547
|
-
const $ = c(
|
|
3548
|
-
let children, className, languageProp, rest, t1, t2, t3;
|
|
3512
|
+
const $ = c(41), t0 = props;
|
|
3513
|
+
let children, className, languageProp, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t1, t2, t3;
|
|
3549
3514
|
$[0] !== t0 ? ({
|
|
3550
3515
|
as: t1,
|
|
3551
3516
|
children,
|
|
3552
3517
|
className,
|
|
3553
3518
|
language: languageProp,
|
|
3519
|
+
margin,
|
|
3520
|
+
marginX,
|
|
3521
|
+
marginY,
|
|
3522
|
+
marginTop,
|
|
3523
|
+
marginRight,
|
|
3524
|
+
marginBottom,
|
|
3525
|
+
marginLeft,
|
|
3526
|
+
maxWidth,
|
|
3554
3527
|
size: t2,
|
|
3555
3528
|
weight: t3,
|
|
3556
3529
|
...rest
|
|
3557
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] =
|
|
3530
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = margin, $[5] = marginBottom, $[6] = marginLeft, $[7] = marginRight, $[8] = marginTop, $[9] = marginX, $[10] = marginY, $[11] = maxWidth, $[12] = rest, $[13] = t1, $[14] = t2, $[15] = t3) : (children = $[1], className = $[2], languageProp = $[3], margin = $[4], marginBottom = $[5], marginLeft = $[6], marginRight = $[7], marginTop = $[8], marginX = $[9], marginY = $[10], maxWidth = $[11], rest = $[12], t1 = $[13], t2 = $[14], t3 = $[15]);
|
|
3558
3531
|
const Element2 = t1 === void 0 ? DEFAULT_CODE_ELEMENT : t1, size2 = t2 === void 0 ? 2 : t2, weight = t3 === void 0 ? "regular" : t3, language = typeof languageProp == "string" ? languageProp : void 0;
|
|
3559
3532
|
let t4;
|
|
3560
|
-
$[
|
|
3533
|
+
$[16] !== className || $[17] !== margin || $[18] !== marginBottom || $[19] !== marginLeft || $[20] !== marginRight || $[21] !== marginTop || $[22] !== marginX || $[23] !== marginY || $[24] !== maxWidth || $[25] !== size2 || $[26] !== weight ? (t4 = code({
|
|
3561
3534
|
className,
|
|
3535
|
+
margin,
|
|
3536
|
+
marginX,
|
|
3537
|
+
marginY,
|
|
3538
|
+
marginTop,
|
|
3539
|
+
marginRight,
|
|
3540
|
+
marginBottom,
|
|
3541
|
+
marginLeft,
|
|
3542
|
+
maxWidth,
|
|
3562
3543
|
size: size2,
|
|
3563
3544
|
weight
|
|
3564
|
-
}), $[
|
|
3545
|
+
}), $[16] = className, $[17] = margin, $[18] = marginBottom, $[19] = marginLeft, $[20] = marginRight, $[21] = marginTop, $[22] = marginX, $[23] = marginY, $[24] = maxWidth, $[25] = size2, $[26] = weight, $[27] = t4) : t4 = $[27];
|
|
3565
3546
|
let t5;
|
|
3566
|
-
$[
|
|
3547
|
+
$[28] !== children ? (t5 = /* @__PURE__ */ jsx("code", { children }), $[28] = children, $[29] = t5) : t5 = $[29];
|
|
3567
3548
|
let t6;
|
|
3568
|
-
$[
|
|
3549
|
+
$[30] !== children || $[31] !== language ? (t6 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[30] = children, $[31] = language, $[32] = t6) : t6 = $[32];
|
|
3569
3550
|
let t7;
|
|
3570
|
-
$[
|
|
3551
|
+
$[33] !== t5 || $[34] !== t6 ? (t7 = /* @__PURE__ */ jsx(Suspense, { fallback: t5, children: t6 }), $[33] = t5, $[34] = t6, $[35] = t7) : t7 = $[35];
|
|
3571
3552
|
let t8;
|
|
3572
|
-
return $[
|
|
3553
|
+
return $[36] !== Element2 || $[37] !== rest || $[38] !== t4 || $[39] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Code", ...rest, className: t4, children: t7 }), $[36] = Element2, $[37] = rest, $[38] = t4, $[39] = t7, $[40] = t8) : t8 = $[40], t8;
|
|
3573
3554
|
}
|
|
3574
3555
|
const DEFAULT_HEADING_ELEMENT = "div";
|
|
3575
3556
|
function Heading(props) {
|
|
3576
|
-
const $ = c(
|
|
3577
|
-
let align, children, className, flex, rest, t1, t2, t3, t4, textOverflowProp;
|
|
3557
|
+
const $ = c(44), t0 = props;
|
|
3558
|
+
let align, children, className, flex, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t1, t2, t3, t4, textOverflowProp;
|
|
3578
3559
|
$[0] !== t0 ? ({
|
|
3579
3560
|
align,
|
|
3580
3561
|
as: t1,
|
|
3581
3562
|
children,
|
|
3582
3563
|
className,
|
|
3583
3564
|
flex,
|
|
3565
|
+
margin,
|
|
3566
|
+
marginX,
|
|
3567
|
+
marginY,
|
|
3568
|
+
marginTop,
|
|
3569
|
+
marginRight,
|
|
3570
|
+
marginBottom,
|
|
3571
|
+
marginLeft,
|
|
3572
|
+
maxWidth,
|
|
3584
3573
|
muted: t2,
|
|
3585
3574
|
size: t3,
|
|
3586
3575
|
textOverflow: textOverflowProp,
|
|
3587
3576
|
weight: t4,
|
|
3588
3577
|
...rest
|
|
3589
|
-
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] =
|
|
3578
|
+
} = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = margin, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = maxWidth, $[13] = rest, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], margin = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], maxWidth = $[12], rest = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], textOverflowProp = $[18]);
|
|
3590
3579
|
const Element2 = t1 === void 0 ? DEFAULT_HEADING_ELEMENT : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 2 : t3, weight = t4 === void 0 ? "regular" : t4;
|
|
3591
3580
|
let t5;
|
|
3592
|
-
$[
|
|
3581
|
+
$[19] !== align || $[20] !== className || $[21] !== flex || $[22] !== margin || $[23] !== marginBottom || $[24] !== marginLeft || $[25] !== marginRight || $[26] !== marginTop || $[27] !== marginX || $[28] !== marginY || $[29] !== maxWidth || $[30] !== muted || $[31] !== size2 || $[32] !== weight ? (t5 = heading({
|
|
3593
3582
|
className,
|
|
3594
3583
|
align,
|
|
3595
3584
|
flex,
|
|
3585
|
+
margin,
|
|
3586
|
+
marginX,
|
|
3587
|
+
marginY,
|
|
3588
|
+
marginTop,
|
|
3589
|
+
marginRight,
|
|
3590
|
+
marginBottom,
|
|
3591
|
+
marginLeft,
|
|
3592
|
+
maxWidth,
|
|
3596
3593
|
muted,
|
|
3597
3594
|
size: size2,
|
|
3598
3595
|
weight
|
|
3599
|
-
}), $[
|
|
3596
|
+
}), $[19] = align, $[20] = className, $[21] = flex, $[22] = margin, $[23] = marginBottom, $[24] = marginLeft, $[25] = marginRight, $[26] = marginTop, $[27] = marginX, $[28] = marginY, $[29] = maxWidth, $[30] = muted, $[31] = size2, $[32] = weight, $[33] = t5) : t5 = $[33];
|
|
3600
3597
|
let t6;
|
|
3601
|
-
$[
|
|
3598
|
+
$[34] !== textOverflowProp ? (t6 = textOverflow({
|
|
3602
3599
|
textOverflow: textOverflowProp
|
|
3603
|
-
}), $[
|
|
3600
|
+
}), $[34] = textOverflowProp, $[35] = t6) : t6 = $[35];
|
|
3604
3601
|
let t7;
|
|
3605
|
-
$[
|
|
3602
|
+
$[36] !== children || $[37] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[36] = children, $[37] = t6, $[38] = t7) : t7 = $[38];
|
|
3606
3603
|
let t8;
|
|
3607
|
-
return $[
|
|
3604
|
+
return $[39] !== Element2 || $[40] !== rest || $[41] !== t5 || $[42] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t5, children: t7 }), $[39] = Element2, $[40] = rest, $[41] = t5, $[42] = t7, $[43] = t8) : t8 = $[43], t8;
|
|
3608
3605
|
}
|
|
3609
3606
|
const DEFAULT_INLINE_ELEMENT = "div";
|
|
3610
3607
|
function Inline(props) {
|
|
@@ -3649,73 +3646,74 @@ function Radio(props) {
|
|
|
3649
3646
|
let t9;
|
|
3650
3647
|
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx("span", { className: radioPresentation() }), $[20] = t9) : t9 = $[20];
|
|
3651
3648
|
let t10;
|
|
3652
|
-
return $[21] !== style || $[22] !== t3 || $[23] !== t8 ? (t10 = /* @__PURE__ */ jsxs("
|
|
3649
|
+
return $[21] !== style || $[22] !== t3 || $[23] !== t8 ? (t10 = /* @__PURE__ */ jsxs("span", { className: t3, "data-ui": "Radio", style, children: [
|
|
3653
3650
|
t8,
|
|
3654
3651
|
t9
|
|
3655
3652
|
] }), $[21] = style, $[22] = t3, $[23] = t8, $[24] = t10) : t10 = $[24], t10;
|
|
3656
3653
|
}
|
|
3657
3654
|
const DEFAULT_SELECT_ELEMENT = "select";
|
|
3658
3655
|
function Select(props) {
|
|
3659
|
-
const $ = c(
|
|
3660
|
-
let children, customValidity, disabled, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6;
|
|
3656
|
+
const $ = c(41), t0 = props;
|
|
3657
|
+
let children, customValidity, disabled, flex, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
|
|
3661
3658
|
$[0] !== t0 ? ({
|
|
3662
3659
|
as: t1,
|
|
3663
3660
|
border: t2,
|
|
3664
3661
|
children,
|
|
3665
3662
|
customValidity,
|
|
3666
3663
|
disabled,
|
|
3664
|
+
flex,
|
|
3667
3665
|
fontSize: t3,
|
|
3668
3666
|
gap: t4,
|
|
3669
3667
|
padding: t5,
|
|
3670
3668
|
radius: t6,
|
|
3671
3669
|
readOnly,
|
|
3672
3670
|
ref: forwardedRef,
|
|
3671
|
+
width: t7,
|
|
3673
3672
|
...rest
|
|
3674
|
-
} = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] =
|
|
3675
|
-
const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, gap = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 1 : t6, ref = useRef(null);
|
|
3676
|
-
let t7;
|
|
3677
|
-
$[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[13] = t7) : t7 = $[13], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
|
|
3673
|
+
} = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = flex, $[5] = forwardedRef, $[6] = readOnly, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5, $[13] = t6, $[14] = t7) : (children = $[1], customValidity = $[2], disabled = $[3], flex = $[4], forwardedRef = $[5], readOnly = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12], t6 = $[13], t7 = $[14]);
|
|
3674
|
+
const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, gap = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 1 : t6, width = t7 === void 0 ? "fill" : t7, ref = useRef(null);
|
|
3678
3675
|
let t8;
|
|
3679
|
-
$[
|
|
3676
|
+
$[15] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[15] = t8) : t8 = $[15], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
|
|
3677
|
+
let t9;
|
|
3678
|
+
$[16] !== border || $[17] !== flex || $[18] !== fontSize || $[19] !== gap || $[20] !== padding || $[21] !== radius || $[22] !== width ? (t9 = select({
|
|
3680
3679
|
border,
|
|
3681
3680
|
fontSize,
|
|
3681
|
+
flex,
|
|
3682
3682
|
gap,
|
|
3683
3683
|
padding,
|
|
3684
|
-
radius
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
$[21] !== Element2 || $[22] !== children || $[23] !== rest || $[24] !== t10 ? (t11 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t9, disabled: t10, ref, children }), $[21] = Element2, $[22] = children, $[23] = rest, $[24] = t10, $[25] = t11) : t11 = $[25];
|
|
3684
|
+
radius,
|
|
3685
|
+
width
|
|
3686
|
+
}), $[16] = border, $[17] = flex, $[18] = fontSize, $[19] = gap, $[20] = padding, $[21] = radius, $[22] = width, $[23] = t9) : t9 = $[23];
|
|
3687
|
+
let t10;
|
|
3688
|
+
$[24] === Symbol.for("react.memo_cache_sentinel") ? (t10 = _inputElement(), $[24] = t10) : t10 = $[24];
|
|
3689
|
+
const t11 = disabled || readOnly;
|
|
3691
3690
|
let t12;
|
|
3692
|
-
$[26]
|
|
3691
|
+
$[25] !== Element2 || $[26] !== children || $[27] !== rest || $[28] !== t11 ? (t12 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t10, disabled: t11, ref, children }), $[25] = Element2, $[26] = children, $[27] = rest, $[28] = t11, $[29] = t12) : t12 = $[29];
|
|
3693
3692
|
let t13;
|
|
3694
|
-
$[
|
|
3693
|
+
$[30] === Symbol.for("react.memo_cache_sentinel") ? (t13 = selectPresentation(), $[30] = t13) : t13 = $[30];
|
|
3695
3694
|
let t14;
|
|
3696
|
-
$[
|
|
3695
|
+
$[31] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[31] = t14) : t14 = $[31];
|
|
3697
3696
|
let t15;
|
|
3698
|
-
$[
|
|
3697
|
+
$[32] !== fontSize ? (t15 = /* @__PURE__ */ jsx(Text, { size: fontSize, children: t14 }), $[32] = fontSize, $[33] = t15) : t15 = $[33];
|
|
3699
3698
|
let t16;
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3699
|
+
$[34] !== padding || $[35] !== t15 ? (t16 = /* @__PURE__ */ jsx("span", { className: t13, children: /* @__PURE__ */ jsx(Box, { as: "span", display: "inline-block", padding, children: t15 }) }), $[34] = padding, $[35] = t15, $[36] = t16) : t16 = $[36];
|
|
3700
|
+
let t17;
|
|
3701
|
+
return $[37] !== t12 || $[38] !== t16 || $[39] !== t9 ? (t17 = /* @__PURE__ */ jsxs("span", { "data-ui": "Select", className: t9, "data-icon-right": "", children: [
|
|
3702
|
+
t12,
|
|
3703
|
+
t16
|
|
3704
|
+
] }), $[37] = t12, $[38] = t16, $[39] = t9, $[40] = t17) : t17 = $[40], t17;
|
|
3704
3705
|
}
|
|
3705
3706
|
const DEFAULT_SKELETON_ELEMENT = "div";
|
|
3706
3707
|
function Skeleton(props) {
|
|
3707
|
-
const $ = c(
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
as: t1,
|
|
3711
|
-
animated: t2,
|
|
3708
|
+
const $ = c(9), {
|
|
3709
|
+
as: t0,
|
|
3710
|
+
animated: t1,
|
|
3712
3711
|
className,
|
|
3713
3712
|
delay,
|
|
3714
3713
|
...rest
|
|
3715
|
-
} =
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
$[6] !== delay ? (t3 = () => {
|
|
3714
|
+
} = props, As = t0 === void 0 ? DEFAULT_SKELETON_ELEMENT : t0, animated = t1 === void 0 ? !1 : t1, [visible, setVisible] = useState(!delay);
|
|
3715
|
+
let t2, t3;
|
|
3716
|
+
$[0] !== delay ? (t2 = () => {
|
|
3719
3717
|
if (!delay)
|
|
3720
3718
|
return setVisible(!0);
|
|
3721
3719
|
const timeout = setTimeout(() => {
|
|
@@ -3724,15 +3722,13 @@ function Skeleton(props) {
|
|
|
3724
3722
|
return () => {
|
|
3725
3723
|
clearTimeout(timeout);
|
|
3726
3724
|
};
|
|
3727
|
-
},
|
|
3728
|
-
|
|
3729
|
-
$[9] !== className || $[10] !== rest ? (t5 = skeleton({
|
|
3725
|
+
}, t3 = [delay], $[0] = delay, $[1] = t2, $[2] = t3) : (t2 = $[1], t3 = $[2]), useEffect(t2, t3);
|
|
3726
|
+
const t4 = "Skeleton", t5 = skeleton({
|
|
3730
3727
|
className,
|
|
3731
3728
|
...rest
|
|
3732
|
-
}),
|
|
3733
|
-
const t6 = animated ? "" : void 0, t7 = visible ? "" : void 0;
|
|
3729
|
+
}), t6 = animated ? "" : void 0, t7 = visible ? "" : void 0;
|
|
3734
3730
|
let t8;
|
|
3735
|
-
return $[
|
|
3731
|
+
return $[3] !== As || $[4] !== rest || $[5] !== t5 || $[6] !== t6 || $[7] !== t7 ? (t8 = /* @__PURE__ */ jsx(As, { "data-ui": t4, ...rest, className: t5, "data-animated": t6, "data-visible": t7 }), $[3] = As, $[4] = rest, $[5] = t5, $[6] = t6, $[7] = t7, $[8] = t8) : t8 = $[8], t8;
|
|
3736
3732
|
}
|
|
3737
3733
|
const DEFAULT_CODE_SKELETON_ELEMENT = "div";
|
|
3738
3734
|
function CodeSkeleton(props) {
|
|
@@ -3826,8 +3822,8 @@ function SrOnly(props) {
|
|
|
3826
3822
|
}
|
|
3827
3823
|
const DEFAULT_SWITCH_ELEMENT = "input";
|
|
3828
3824
|
function Switch(props) {
|
|
3829
|
-
const $ = c(
|
|
3830
|
-
let className, disabled, forwardedRef, indeterminate, readOnly, rest,
|
|
3825
|
+
const $ = c(24), t0 = props;
|
|
3826
|
+
let className, disabled, forwardedRef, indeterminate, readOnly, rest, t1;
|
|
3831
3827
|
$[0] !== t0 ? ({
|
|
3832
3828
|
as: t1,
|
|
3833
3829
|
className,
|
|
@@ -3835,78 +3831,83 @@ function Switch(props) {
|
|
|
3835
3831
|
indeterminate,
|
|
3836
3832
|
readOnly,
|
|
3837
3833
|
ref: forwardedRef,
|
|
3838
|
-
style,
|
|
3839
3834
|
...rest
|
|
3840
|
-
} = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = forwardedRef, $[4] = indeterminate, $[5] = readOnly, $[6] = rest, $[7] =
|
|
3835
|
+
} = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = forwardedRef, $[4] = indeterminate, $[5] = readOnly, $[6] = rest, $[7] = t1) : (className = $[1], disabled = $[2], forwardedRef = $[3], indeterminate = $[4], readOnly = $[5], rest = $[6], t1 = $[7]);
|
|
3841
3836
|
const Element2 = t1 === void 0 ? DEFAULT_SWITCH_ELEMENT : t1, ref = useRef(null);
|
|
3842
3837
|
let t2;
|
|
3843
|
-
$[
|
|
3838
|
+
$[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[8] = t2) : t2 = $[8], useImperativeHandle(forwardedRef, t2);
|
|
3844
3839
|
let t3, t4;
|
|
3845
|
-
$[
|
|
3840
|
+
$[9] !== indeterminate ? (t3 = () => {
|
|
3846
3841
|
ref.current && (ref.current.indeterminate = indeterminate || !1);
|
|
3847
|
-
}, t4 = [indeterminate], $[
|
|
3842
|
+
}, t4 = [indeterminate], $[9] = indeterminate, $[10] = t3, $[11] = t4) : (t3 = $[10], t4 = $[11]), useEffect(t3, t4);
|
|
3848
3843
|
let t5;
|
|
3849
|
-
$[
|
|
3844
|
+
$[12] !== className ? (t5 = _switch({
|
|
3850
3845
|
className
|
|
3851
|
-
}), $[
|
|
3846
|
+
}), $[12] = className, $[13] = t5) : t5 = $[13];
|
|
3852
3847
|
let t6;
|
|
3853
|
-
$[
|
|
3848
|
+
$[14] === Symbol.for("react.memo_cache_sentinel") ? (t6 = _switchElement(), $[14] = t6) : t6 = $[14];
|
|
3854
3849
|
const t7 = !disabled && readOnly ? "" : void 0, t8 = disabled || readOnly;
|
|
3855
3850
|
let t9;
|
|
3856
|
-
$[
|
|
3851
|
+
$[15] !== Element2 || $[16] !== rest || $[17] !== t7 || $[18] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t6, "data-read-only": t7, disabled: t8, type: "checkbox", ref }), $[15] = Element2, $[16] = rest, $[17] = t7, $[18] = t8, $[19] = t9) : t9 = $[19];
|
|
3857
3852
|
let t10;
|
|
3858
|
-
$[
|
|
3853
|
+
$[20] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsxs("span", { "aria-hidden": !0, className: _switchPresentation(), children: [
|
|
3859
3854
|
/* @__PURE__ */ jsx("span", { className: _switchTrack() }),
|
|
3860
3855
|
/* @__PURE__ */ jsx("span", { className: _switchThumb() })
|
|
3861
|
-
] }), $[
|
|
3856
|
+
] }), $[20] = t10) : t10 = $[20];
|
|
3862
3857
|
let t11;
|
|
3863
|
-
return $[
|
|
3858
|
+
return $[21] !== t5 || $[22] !== t9 ? (t11 = /* @__PURE__ */ jsxs("span", { className: t5, "data-ui": "Switch", children: [
|
|
3864
3859
|
t9,
|
|
3865
3860
|
t10
|
|
3866
|
-
] }), $[
|
|
3861
|
+
] }), $[21] = t5, $[22] = t9, $[23] = t11) : t11 = $[23], t11;
|
|
3867
3862
|
}
|
|
3868
3863
|
const DEFAULT_TEXT_AREA_ELEMENT = "textarea";
|
|
3869
3864
|
function TextArea(props) {
|
|
3870
|
-
const $ = c(
|
|
3871
|
-
let __unstable_disableFocusRing, customValidity, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
|
|
3865
|
+
const $ = c(39), t0 = props;
|
|
3866
|
+
let __unstable_disableFocusRing, className, customValidity, flex, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7, width;
|
|
3872
3867
|
$[0] !== t0 ? ({
|
|
3873
3868
|
__unstable_disableFocusRing,
|
|
3874
3869
|
as: t1,
|
|
3875
3870
|
border: t2,
|
|
3871
|
+
className,
|
|
3876
3872
|
customValidity,
|
|
3877
3873
|
disabled: t3,
|
|
3874
|
+
flex,
|
|
3878
3875
|
fontSize: t4,
|
|
3879
3876
|
gap: t5,
|
|
3880
3877
|
padding: t6,
|
|
3881
3878
|
radius: t7,
|
|
3882
3879
|
readOnly,
|
|
3883
3880
|
ref: forwardedRef,
|
|
3881
|
+
width,
|
|
3884
3882
|
...rest
|
|
3885
|
-
} = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] =
|
|
3883
|
+
} = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = className, $[3] = customValidity, $[4] = flex, $[5] = forwardedRef, $[6] = readOnly, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5, $[13] = t6, $[14] = t7, $[15] = width) : (__unstable_disableFocusRing = $[1], className = $[2], customValidity = $[3], flex = $[4], forwardedRef = $[5], readOnly = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12], t6 = $[13], t7 = $[14], width = $[15]);
|
|
3886
3884
|
const Element2 = t1 === void 0 ? DEFAULT_TEXT_AREA_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, ref = useRef(null);
|
|
3887
3885
|
let t8;
|
|
3888
|
-
$[
|
|
3886
|
+
$[16] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[16] = t8) : t8 = $[16], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
|
|
3889
3887
|
let t9;
|
|
3890
|
-
$[
|
|
3888
|
+
$[17] !== border || $[18] !== className || $[19] !== flex || $[20] !== fontSize || $[21] !== gap || $[22] !== padding || $[23] !== radius || $[24] !== width ? (t9 = textArea({
|
|
3889
|
+
className,
|
|
3891
3890
|
border,
|
|
3891
|
+
flex,
|
|
3892
3892
|
fontSize,
|
|
3893
|
+
gap,
|
|
3893
3894
|
padding,
|
|
3894
3895
|
radius,
|
|
3895
|
-
|
|
3896
|
-
}), $[
|
|
3896
|
+
width
|
|
3897
|
+
}), $[17] = border, $[18] = className, $[19] = flex, $[20] = fontSize, $[21] = gap, $[22] = padding, $[23] = radius, $[24] = width, $[25] = t9) : t9 = $[25];
|
|
3897
3898
|
const t10 = customValidity ? "" : void 0, t11 = !disabled && readOnly ? "" : void 0;
|
|
3898
3899
|
let t12;
|
|
3899
|
-
$[
|
|
3900
|
+
$[26] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _inputElement(), $[26] = t12) : t12 = $[26];
|
|
3900
3901
|
const t13 = __unstable_disableFocusRing ? "" : void 0;
|
|
3901
3902
|
let t14;
|
|
3902
|
-
$[
|
|
3903
|
+
$[27] !== Element2 || $[28] !== disabled || $[29] !== readOnly || $[30] !== rest || $[31] !== t13 ? (t14 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t12, "data-no-focus-ring": t13, disabled, readOnly, ref }), $[27] = Element2, $[28] = disabled, $[29] = readOnly, $[30] = rest, $[31] = t13, $[32] = t14) : t14 = $[32];
|
|
3903
3904
|
let t15;
|
|
3904
|
-
$[
|
|
3905
|
+
$[33] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("span", { className: _inputPresentation() }), $[33] = t15) : t15 = $[33];
|
|
3905
3906
|
let t16;
|
|
3906
|
-
return $[
|
|
3907
|
+
return $[34] !== t10 || $[35] !== t11 || $[36] !== t14 || $[37] !== t9 ? (t16 = /* @__PURE__ */ jsxs("span", { className: t9, "data-invalid": t10, "data-read-only": t11, "data-ui": "TextArea", children: [
|
|
3907
3908
|
t14,
|
|
3908
3909
|
t15
|
|
3909
|
-
] }), $[
|
|
3910
|
+
] }), $[34] = t10, $[35] = t11, $[36] = t14, $[37] = t9, $[38] = t16) : t16 = $[38], t16;
|
|
3910
3911
|
}
|
|
3911
3912
|
function useDelayedState(initialState) {
|
|
3912
3913
|
const $ = c(3), [state, setState] = useState(initialState), delayedAction = useRef(void 0);
|
|
@@ -3961,40 +3962,36 @@ function TooltipLayer(props) {
|
|
|
3961
3962
|
tone: t0,
|
|
3962
3963
|
...rest
|
|
3963
3964
|
} = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = rest, $[13] = scheme, $[14] = shadow, $[15] = style, $[16] = t0) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], rest = $[12], scheme = $[13], shadow = $[14], style = $[15], t0 = $[16]);
|
|
3964
|
-
const tone = t0 === void 0 ? "inherit" : t0;
|
|
3965
|
-
let
|
|
3966
|
-
|
|
3967
|
-
let t3;
|
|
3968
|
-
$[17] !== originX || $[18] !== originY || $[19] !== style || $[20] !== t2 ? (t3 = {
|
|
3965
|
+
const tone = t0 === void 0 ? "inherit" : t0, t1 = animate ? "transform" : void 0;
|
|
3966
|
+
let t2;
|
|
3967
|
+
$[17] !== originX || $[18] !== originY || $[19] !== style || $[20] !== t1 ? (t2 = {
|
|
3969
3968
|
originX,
|
|
3970
3969
|
originY,
|
|
3971
|
-
willChange:
|
|
3970
|
+
willChange: t1,
|
|
3972
3971
|
...style
|
|
3973
|
-
}, $[17] = originX, $[18] = originY, $[19] = style, $[20] =
|
|
3974
|
-
const rootStyle =
|
|
3975
|
-
let
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
left: t5,
|
|
3980
|
-
top: t6,
|
|
3972
|
+
}, $[17] = originX, $[18] = originY, $[19] = style, $[20] = t1, $[21] = t2) : t2 = $[21];
|
|
3973
|
+
const rootStyle = t2, t3 = arrowX !== null ? arrowX : void 0, t4 = arrowY !== null ? arrowY : void 0;
|
|
3974
|
+
let t5;
|
|
3975
|
+
$[22] !== t3 || $[23] !== t4 ? (t5 = {
|
|
3976
|
+
left: t3,
|
|
3977
|
+
top: t4,
|
|
3981
3978
|
right: void 0,
|
|
3982
3979
|
bottom: void 0
|
|
3983
|
-
}, $[22] =
|
|
3984
|
-
const arrowStyle =
|
|
3980
|
+
}, $[22] = t3, $[23] = t4, $[24] = t5) : t5 = $[24];
|
|
3981
|
+
const arrowStyle = t5, t6 = animate ? "" : void 0;
|
|
3982
|
+
let t7;
|
|
3983
|
+
$[25] !== animate ? (t7 = animate ? ["hidden", "initial"] : void 0, $[25] = animate, $[26] = t7) : t7 = $[26];
|
|
3984
|
+
let t8;
|
|
3985
|
+
$[27] !== animate ? (t8 = animate ? ["visible", "scaleIn"] : void 0, $[27] = animate, $[28] = t8) : t8 = $[28];
|
|
3985
3986
|
let t9;
|
|
3986
|
-
$[
|
|
3987
|
+
$[29] !== animate ? (t9 = animate ? ["hidden", "scaleOut"] : void 0, $[29] = animate, $[30] = t9) : t9 = $[30];
|
|
3987
3988
|
let t10;
|
|
3988
|
-
$[
|
|
3989
|
+
$[31] !== arrow2 || $[32] !== arrowRef || $[33] !== arrowStyle ? (t10 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[31] = arrow2, $[32] = arrowRef, $[33] = arrowStyle, $[34] = t10) : t10 = $[34];
|
|
3989
3990
|
let t11;
|
|
3990
|
-
$[
|
|
3991
|
-
let t12;
|
|
3992
|
-
$[31] !== arrow2 || $[32] !== arrowRef || $[33] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[31] = arrow2, $[32] = arrowRef, $[33] = arrowStyle, $[34] = t12) : t12 = $[34];
|
|
3993
|
-
let t13;
|
|
3994
|
-
return $[35] !== children || $[36] !== padding || $[37] !== placement || $[38] !== radius || $[39] !== rest || $[40] !== rootStyle || $[41] !== scheme || $[42] !== shadow || $[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t8 || $[47] !== t9 || $[48] !== tone ? (t13 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__layer", ...rest, as: motion.div, "data-animate": t8, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t9, animate: t10, exit: t11, tone, children: [
|
|
3991
|
+
return $[35] !== children || $[36] !== padding || $[37] !== placement || $[38] !== radius || $[39] !== rest || $[40] !== rootStyle || $[41] !== scheme || $[42] !== shadow || $[43] !== t10 || $[44] !== t6 || $[45] !== t7 || $[46] !== t8 || $[47] !== t9 || $[48] !== tone ? (t11 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__layer", ...rest, as: motion.div, "data-animate": t6, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t7, animate: t8, exit: t9, tone, children: [
|
|
3995
3992
|
children,
|
|
3996
|
-
|
|
3997
|
-
] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] =
|
|
3993
|
+
t10
|
|
3994
|
+
] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] = t6, $[45] = t7, $[46] = t8, $[47] = t9, $[48] = tone, $[49] = t11) : t11 = $[49], t11;
|
|
3998
3995
|
}
|
|
3999
3996
|
const DEFAULT_TOOLTIP_ELEMENT = "div";
|
|
4000
3997
|
function Tooltip(props) {
|
|
@@ -4154,34 +4151,32 @@ function TooltipDelayGroupProvider(props) {
|
|
|
4154
4151
|
const $ = c(9), {
|
|
4155
4152
|
children,
|
|
4156
4153
|
delay
|
|
4157
|
-
} = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0;
|
|
4158
|
-
let
|
|
4159
|
-
|
|
4160
|
-
let t2;
|
|
4161
|
-
$[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t1 ? (t2 = {
|
|
4154
|
+
} = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay;
|
|
4155
|
+
let t1;
|
|
4156
|
+
$[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t0 ? (t1 = {
|
|
4162
4157
|
setIsGroupActive,
|
|
4163
4158
|
openTooltipId,
|
|
4164
4159
|
setOpenTooltipId,
|
|
4165
|
-
openDelay:
|
|
4160
|
+
openDelay: t0,
|
|
4166
4161
|
closeDelay
|
|
4167
|
-
}, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] =
|
|
4168
|
-
const value =
|
|
4169
|
-
let
|
|
4170
|
-
return $[6] !== children || $[7] !== value ? (
|
|
4162
|
+
}, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t0, $[5] = t1) : t1 = $[5];
|
|
4163
|
+
const value = t1;
|
|
4164
|
+
let t2;
|
|
4165
|
+
return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
|
|
4171
4166
|
}
|
|
4172
4167
|
function BoundaryElementProvider(props) {
|
|
4173
4168
|
const $ = c(5), {
|
|
4174
4169
|
children,
|
|
4175
4170
|
element
|
|
4176
4171
|
} = props;
|
|
4177
|
-
let t0
|
|
4178
|
-
$[0] !== element ? (
|
|
4172
|
+
let t0;
|
|
4173
|
+
$[0] !== element ? (t0 = {
|
|
4179
4174
|
version: 0,
|
|
4180
4175
|
element
|
|
4181
|
-
}, $[0] = element, $[1] =
|
|
4176
|
+
}, $[0] = element, $[1] = t0) : t0 = $[1];
|
|
4182
4177
|
const value = t0;
|
|
4183
|
-
let
|
|
4184
|
-
return $[2] !== children || $[3] !== value ? (
|
|
4178
|
+
let t1;
|
|
4179
|
+
return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
|
|
4185
4180
|
}
|
|
4186
4181
|
function findMaxBreakpoints(media2, width) {
|
|
4187
4182
|
const ret = [];
|
|
@@ -4206,30 +4201,25 @@ function ElementQuery(props) {
|
|
|
4206
4201
|
ref: forwardedRef,
|
|
4207
4202
|
...rest
|
|
4208
4203
|
} = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = mediaProp, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], mediaProp = $[3], rest = $[4], t1 = $[5]);
|
|
4209
|
-
const Element2 = t1 === void 0 ? DEFAULT_ELEMENT_QUERY_ELEMENT : t1, breakpoints = mediaProp ?? DEFAULT_BREAKPOINTS, [element, setElement] = useState(null),
|
|
4204
|
+
const Element2 = t1 === void 0 ? DEFAULT_ELEMENT_QUERY_ELEMENT : t1, breakpoints = mediaProp ?? DEFAULT_BREAKPOINTS, [element, setElement] = useState(null), width = useElementSize(element)?.border.width ?? window.innerWidth;
|
|
4210
4205
|
let t2;
|
|
4211
|
-
t2 = elementSize?.border.width ?? window.innerWidth;
|
|
4212
|
-
const width = t2;
|
|
4213
|
-
let t3, t4;
|
|
4214
4206
|
if ($[6] !== breakpoints || $[7] !== width) {
|
|
4215
4207
|
const eq = findMaxBreakpoints(breakpoints, width);
|
|
4216
|
-
|
|
4208
|
+
t2 = eq.length ? eq.join(" ") : void 0, $[6] = breakpoints, $[7] = width, $[8] = t2;
|
|
4217
4209
|
} else
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
let t5, t6;
|
|
4210
|
+
t2 = $[8];
|
|
4211
|
+
const max = t2;
|
|
4212
|
+
let t3;
|
|
4222
4213
|
if ($[9] !== breakpoints || $[10] !== width) {
|
|
4223
4214
|
const eq_0 = findMinBreakpoints(breakpoints, width);
|
|
4224
|
-
|
|
4215
|
+
t3 = eq_0.length ? eq_0.join(" ") : void 0, $[9] = breakpoints, $[10] = width, $[11] = t3;
|
|
4225
4216
|
} else
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
return $[15] !== Element2 || $[16] !== children || $[17] !== max || $[18] !== min || $[19] !== rest ? (t9 = /* @__PURE__ */ jsx(Element2, { "data-ui": "ElementQuery", ...rest, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[15] = Element2, $[16] = children, $[17] = max, $[18] = min, $[19] = rest, $[20] = t9) : t9 = $[20], t9;
|
|
4217
|
+
t3 = $[11];
|
|
4218
|
+
const min = t3;
|
|
4219
|
+
let t4, t5;
|
|
4220
|
+
$[12] !== element ? (t4 = () => element, t5 = [element], $[12] = element, $[13] = t4, $[14] = t5) : (t4 = $[13], t5 = $[14]), useImperativeHandle(forwardedRef, t4, t5);
|
|
4221
|
+
let t6;
|
|
4222
|
+
return $[15] !== Element2 || $[16] !== children || $[17] !== max || $[18] !== min || $[19] !== rest ? (t6 = /* @__PURE__ */ jsx(Element2, { "data-ui": "ElementQuery", ...rest, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[15] = Element2, $[16] = children, $[17] = max, $[18] = min, $[19] = rest, $[20] = t6) : t6 = $[20], t6;
|
|
4233
4223
|
}
|
|
4234
4224
|
class ErrorBoundary extends Component {
|
|
4235
4225
|
state = {
|
|
@@ -4263,22 +4253,20 @@ function PortalProvider(props) {
|
|
|
4263
4253
|
children,
|
|
4264
4254
|
element,
|
|
4265
4255
|
__unstable_elements: elementsProp
|
|
4266
|
-
} = props, elements = useUnique(elementsProp), parentPortal =
|
|
4256
|
+
} = props, elements = useUnique(elementsProp), parentPortal = use(PortalContext);
|
|
4267
4257
|
let t0;
|
|
4268
4258
|
$[0] !== elements || $[1] !== parentPortal ? (t0 = () => elements?.default ?? (parentPortal.element || document.body), $[0] = elements, $[1] = parentPortal, $[2] = t0) : t0 = $[2];
|
|
4269
|
-
const fallbackElement = useSyncExternalStore(emptySubscribe, t0, _temp);
|
|
4270
|
-
let
|
|
4271
|
-
|
|
4272
|
-
let t3;
|
|
4273
|
-
$[3] !== elements || $[4] !== t2 ? (t3 = {
|
|
4259
|
+
const fallbackElement = useSyncExternalStore(emptySubscribe, t0, _temp), t1 = element || fallbackElement;
|
|
4260
|
+
let t2;
|
|
4261
|
+
$[3] !== elements || $[4] !== t1 ? (t2 = {
|
|
4274
4262
|
version: 0,
|
|
4275
4263
|
boundaryElement: null,
|
|
4276
|
-
element:
|
|
4264
|
+
element: t1,
|
|
4277
4265
|
elements
|
|
4278
|
-
}, $[3] = elements, $[4] =
|
|
4279
|
-
const value =
|
|
4280
|
-
let
|
|
4281
|
-
return $[6] !== children || $[7] !== value ? (
|
|
4266
|
+
}, $[3] = elements, $[4] = t1, $[5] = t2) : t2 = $[5];
|
|
4267
|
+
const value = t2;
|
|
4268
|
+
let t3;
|
|
4269
|
+
return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
|
|
4282
4270
|
}
|
|
4283
4271
|
function _temp() {
|
|
4284
4272
|
return null;
|