@sanity/ui 4.1.1 → 4.2.1
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/{arrow-DKn5YKdy.js → arrow-D-raLuvE.js} +57 -49
- package/dist/arrow-D-raLuvE.js.map +1 -0
- package/dist/autocomplete.d.ts.map +1 -1
- package/dist/autocomplete.js +118 -122
- package/dist/autocomplete.js.map +1 -1
- package/dist/breadcrumbs.js +10 -5
- package/dist/breadcrumbs.js.map +1 -1
- package/dist/{button-Dh_M2fYx.js → button-D8Ge5vTw.js} +6 -5
- package/dist/button-D8Ge5vTw.js.map +1 -0
- package/dist/{flex-DmbDG2ks.js → flex-JVQRW_e_.js} +2 -2
- package/dist/{flex-DmbDG2ks.js.map → flex-JVQRW_e_.js.map} +1 -1
- package/dist/{grid-6JSgMj1O.js → grid-Dw7q0_YV.js} +2 -2
- package/dist/{grid-6JSgMj1O.js.map → grid-Dw7q0_YV.js.map} +1 -1
- package/dist/{hotkeys-uSArGPzR.js → hotkeys-DTjEz_u3.js} +9 -6
- package/dist/hotkeys-DTjEz_u3.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +168 -250
- package/dist/index.js.map +1 -1
- package/dist/{layer-BfwisMR6.js → layer-dwv5h6E7.js} +3 -3
- package/dist/{layer-BfwisMR6.js.map → layer-dwv5h6E7.js.map} +1 -1
- package/dist/menu.js +5 -5
- package/dist/{popover-myCXZV_F.js → popover-BngOa-um.js} +14 -11
- package/dist/popover-BngOa-um.js.map +1 -0
- package/dist/popover-CMlQeKn0.d.ts.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/{stack-rsNFPq2-.js → stack-Bue-701Y.js} +2 -2
- package/dist/{stack-rsNFPq2-.js.map → stack-Bue-701Y.js.map} +1 -1
- package/dist/styles.css +156 -36
- package/dist/{textInput-DAaORuky.js → textInput-C83gG7N5.js} +23 -19
- package/dist/textInput-C83gG7N5.js.map +1 -0
- package/dist/toast.js +38 -43
- package/dist/toast.js.map +1 -1
- package/dist/tooltip.js +53 -49
- package/dist/tooltip.js.map +1 -1
- package/dist/useClickOutsideEvent-wGLGWBZN.js.map +1 -1
- package/dist/{useLayer-D1usxIE0.js → useLayer-ONr7wTUN.js} +52 -31
- package/dist/useLayer-ONr7wTUN.js.map +1 -0
- package/package.json +11 -10
- package/dist/arrow-DKn5YKdy.js.map +0 -1
- package/dist/button-Dh_M2fYx.js.map +0 -1
- package/dist/hotkeys-uSArGPzR.js.map +0 -1
- package/dist/popover-myCXZV_F.js.map +0 -1
- package/dist/textInput-DAaORuky.js.map +0 -1
- package/dist/useLayer-D1usxIE0.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { a as rem, i as _responsive, n as _getArrayProp, r as _getResponsiveSpace, s as EMPTY_RECORD, t as _fillCSSObject } from "./helpers-C8xxXAQC.js";
|
|
3
|
-
import { a as textInputFontSizeStyle, c as responsiveInputPaddingStyle, d as attemptFocus, f as focusFirstDescendant, g as _raf2, h as _raf, i as textInputBaseStyle, l as useCustomValidity, m as isFocusable, n as inputRoot, o as textInputRepresentationStyle, p as focusLastDescendant, r as
|
|
3
|
+
import { a as textInputFontSizeStyle, c as responsiveInputPaddingStyle, d as attemptFocus, f as focusFirstDescendant, g as _raf2, h as _raf, i as textInputBaseStyle, l as useCustomValidity, m as isFocusable, n as inputRoot, o as textInputRepresentationStyle, p as focusLastDescendant, r as textAreaRoot, s as responsiveInputPaddingIconRightStyle, t as TextInput, u as _hasFocus } from "./textInput-C83gG7N5.js";
|
|
4
4
|
import { a as isHTMLElement, c as isHTMLTextAreaElement, i as isHTMLButtonElement, n as containsOrEqualsElement, o as isHTMLInputElement, r as isHTMLAnchorElement, s as isHTMLSelectElement, t as _isEnterToClickElement } from "./element-BYgCE_iK.js";
|
|
5
5
|
import { t as getTheme_v2 } from "./getTheme_v2-y09KqtEb.js";
|
|
6
|
-
import { _ as useTheme_v2, a as useMatchMedia, b as responsivePaddingStyle, c as ThemeColorProvider, d as createGlobalScopedContext, g as useTheme, h as _cardColorStyle, i as usePrefersReducedMotion, l as useRootTheme, m as focusRingStyle, n as LayerProvider, o as useMediaIndex, p as focusRingBorderStyle, s as Card, t as useLayer, u as ThemeProvider, v as responsiveRadiusStyle, y as Box } from "./useLayer-
|
|
7
|
-
import { t as Flex } from "./flex-
|
|
8
|
-
import { a as responsiveTextAlignStyle, i as responsiveTextFont, n as Text, r as SpanWithTextOverflow, t as Stack } from "./stack-
|
|
6
|
+
import { _ as useTheme_v2, a as useMatchMedia, b as responsivePaddingStyle, c as ThemeColorProvider, d as createGlobalScopedContext, g as useTheme, h as _cardColorStyle, i as usePrefersReducedMotion, l as useRootTheme, m as focusRingStyle, n as LayerProvider, o as useMediaIndex, p as focusRingBorderStyle, s as Card, t as useLayer, u as ThemeProvider, v as responsiveRadiusStyle, y as Box } from "./useLayer-ONr7wTUN.js";
|
|
7
|
+
import { t as Flex } from "./flex-JVQRW_e_.js";
|
|
8
|
+
import { a as responsiveTextAlignStyle, i as responsiveTextFont, n as Text, r as SpanWithTextOverflow, t as Stack } from "./stack-Bue-701Y.js";
|
|
9
9
|
import { t as responsiveFont } from "./responsiveFont-CilwaORG.js";
|
|
10
|
-
import { n as Spinner, t as Button } from "./button-
|
|
10
|
+
import { n as Spinner, t as Button } from "./button-D8Ge5vTw.js";
|
|
11
11
|
import { n as _elementSizeObserver, t as useElementSize } from "./useElementSize-BJvbGHq8.js";
|
|
12
|
-
import { a as useBoundaryElement, i as PortalContext, n as Portal, o as BoundaryElementContext, r as usePortal, t as Arrow } from "./arrow-
|
|
12
|
+
import { a as useBoundaryElement, i as PortalContext, n as Portal, o as BoundaryElementContext, r as usePortal, t as Arrow } from "./arrow-D-raLuvE.js";
|
|
13
13
|
import { t as useClickOutsideEvent } from "./useClickOutsideEvent-wGLGWBZN.js";
|
|
14
14
|
import { t as responsiveCodeFontStyle } from "./codeFontStyle-84SMhFtI.js";
|
|
15
15
|
import { a as rgba$1, c as hslToRgb$1, i as multiply$1, l as rgbToHex$1, n as buildTheme, o as parseColor$1, r as screen$1, s as hexToRgb$1, t as createColorTheme$1, u as rgbToHsl$1 } from "./factory-BzXTX8_Q.js";
|
|
16
|
-
import { i as useGlobalKeyDown, n as KBD, r as Inline, t as Hotkeys } from "./hotkeys-
|
|
17
|
-
import { t as Layer } from "./layer-
|
|
18
|
-
import { t as Grid } from "./grid-
|
|
16
|
+
import { i as useGlobalKeyDown, n as KBD, r as Inline, t as Hotkeys } from "./hotkeys-DTjEz_u3.js";
|
|
17
|
+
import { t as Layer } from "./layer-dwv5h6E7.js";
|
|
18
|
+
import { t as Grid } from "./grid-Dw7q0_YV.js";
|
|
19
19
|
import { c } from "react/compiler-runtime";
|
|
20
20
|
import { ChevronDownIcon } from "@sanity/icons/ChevronDown";
|
|
21
21
|
import { clsx } from "clsx/lite";
|
|
22
|
-
import { Children, Component, cloneElement, isValidElement,
|
|
22
|
+
import { Children, Component, cloneElement, isValidElement, useContext, useEffect, useId, useImperativeHandle, useRef, useState, useSyncExternalStore } from "react";
|
|
23
23
|
import { css, styled } from "styled-components";
|
|
24
24
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
import ReactIs from "react-is";
|
|
@@ -91,7 +91,7 @@ function isTargetWithinScope(boundaryElement, portalElement, target) {
|
|
|
91
91
|
}
|
|
92
92
|
const StyledDialog = /* @__PURE__ */ styled(Layer).withConfig({
|
|
93
93
|
displayName: "StyledDialog",
|
|
94
|
-
componentId: "sc-
|
|
94
|
+
componentId: "sc-drvqzp-0"
|
|
95
95
|
})(responsivePaddingStyle, dialogStyle, responsiveDialogPositionStyle);
|
|
96
96
|
function DialogCard(props) {
|
|
97
97
|
let $ = c(44), { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, children, contentRef: forwardedContentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: radiusProp, ref: forwardedRef, scheme, shadow: shadowProp, width: widthProp } = props, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, t0;
|
|
@@ -124,6 +124,7 @@ function DialogCard(props) {
|
|
|
124
124
|
let t10;
|
|
125
125
|
$[22] !== header || $[23] !== labelId || $[24] !== onClose || $[25] !== showCloseButton || $[26] !== showHeader ? (t10 = showHeader && /* @__PURE__ */ jsx(Box, {
|
|
126
126
|
className: "_1a85unk7",
|
|
127
|
+
"data-ui": "DialogHeader",
|
|
127
128
|
children: /* @__PURE__ */ jsxs(Flex, {
|
|
128
129
|
align: "flex-start",
|
|
129
130
|
padding: 3,
|
|
@@ -152,6 +153,7 @@ function DialogCard(props) {
|
|
|
152
153
|
let t11;
|
|
153
154
|
$[28] === children ? t11 = $[29] : (t11 = /* @__PURE__ */ jsx(Box, {
|
|
154
155
|
className: dialogContent,
|
|
156
|
+
"data-ui": "DialogContent",
|
|
155
157
|
flex: 1,
|
|
156
158
|
ref: contentRef,
|
|
157
159
|
tabIndex: -1,
|
|
@@ -160,6 +162,7 @@ function DialogCard(props) {
|
|
|
160
162
|
let t12;
|
|
161
163
|
$[30] === footer ? t12 = $[31] : (t12 = footer && /* @__PURE__ */ jsx(Box, {
|
|
162
164
|
className: "_1a85unk9",
|
|
165
|
+
"data-ui": "DialogFooter",
|
|
163
166
|
children: footer
|
|
164
167
|
}), $[30] = footer, $[31] = t12);
|
|
165
168
|
let t13;
|
|
@@ -746,80 +749,79 @@ function TreeGroup(props) {
|
|
|
746
749
|
var treeItem = "_14vatmh0";
|
|
747
750
|
const StyledTreeItem = /* @__PURE__ */ styled.li.withConfig({
|
|
748
751
|
displayName: "StyledTreeItem",
|
|
749
|
-
componentId: "sc-
|
|
752
|
+
componentId: "sc-mgt2q1-0"
|
|
750
753
|
})(treeItemRootColorStyle), TreeItemBox = /* @__PURE__ */ styled.a.withConfig({
|
|
751
754
|
displayName: "TreeItemBox",
|
|
752
|
-
componentId: "sc-
|
|
755
|
+
componentId: "sc-mgt2q1-1"
|
|
753
756
|
})(treeItemBoxStyle);
|
|
754
757
|
/**
|
|
755
758
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
756
759
|
* @beta
|
|
757
760
|
*/
|
|
758
761
|
function TreeItem(props) {
|
|
759
|
-
let $ = c(
|
|
760
|
-
$[0]
|
|
761
|
-
startTransition(() => _setRootElement(node));
|
|
762
|
-
}, $[0] = t5) : t5 = $[0];
|
|
763
|
-
let setRootElement = t5, treeitemRef = useRef(null), tree = useTree(), { path, registerItem, setExpanded, setFocusedElement } = tree, _id = useId(), id = idProp || _id, t6, t7;
|
|
764
|
-
if ($[1] !== id || $[2] !== path) {
|
|
762
|
+
let $ = c(93), { children, expanded: t0, fontSize: t1, href, icon: IconComponent, id: idProp, linkAs, linkProps, muted, onClick, padding: t2, selected: t3, gap: t4, text, weight, ...restProps } = props, expandedProp = t0 !== void 0 && t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, selected = t3 !== void 0 && t3, gap = t4 === void 0 ? 2 : t4, [rootElement, setRootElement] = useState(null), treeitemRef = useRef(null), tree = useTree(), { path, registerItem, setExpanded, setFocusedElement } = tree, _id = useId(), id = idProp || _id, t5, t6;
|
|
763
|
+
if ($[0] !== id || $[1] !== path) {
|
|
765
764
|
let itemPath = path.concat([id || ""]);
|
|
766
|
-
|
|
767
|
-
} else
|
|
768
|
-
let
|
|
769
|
-
$[
|
|
770
|
-
let [itemPath_0, itemKey] =
|
|
771
|
-
$[
|
|
765
|
+
t5 = itemPath, t6 = itemPath.join("/"), $[0] = id, $[1] = path, $[2] = t5, $[3] = t6;
|
|
766
|
+
} else t5 = $[2], t6 = $[3];
|
|
767
|
+
let t7;
|
|
768
|
+
$[4] !== t5 || $[5] !== t6 ? (t7 = [t5, t6], $[4] = t5, $[5] = t6, $[6] = t7) : t7 = $[6];
|
|
769
|
+
let [itemPath_0, itemKey] = t7, itemState = tree.state[itemKey], focused = tree.focusedElement === rootElement, expanded = itemState?.expanded === void 0 ? expandedProp : itemState?.expanded || !1, tabIndex = tree.focusedElement && tree.focusedElement === rootElement ? 0 : -1, t8 = tree.level + 1, t9;
|
|
770
|
+
$[7] !== itemPath_0 || $[8] !== t8 || $[9] !== tree ? (t9 = {
|
|
772
771
|
...tree,
|
|
773
|
-
level:
|
|
772
|
+
level: t8,
|
|
774
773
|
path: itemPath_0
|
|
775
|
-
}, $[
|
|
776
|
-
let contextValue =
|
|
777
|
-
$[
|
|
774
|
+
}, $[7] = itemPath_0, $[8] = t8, $[9] = tree, $[10] = t9) : t9 = $[10];
|
|
775
|
+
let contextValue = t9, t10;
|
|
776
|
+
$[11] !== expanded || $[12] !== itemKey || $[13] !== onClick || $[14] !== rootElement || $[15] !== setExpanded || $[16] !== setFocusedElement ? (t10 = (event) => {
|
|
778
777
|
onClick && onClick(event);
|
|
779
778
|
let target = event.target;
|
|
780
779
|
target instanceof HTMLElement && (target.getAttribute("data-ui") === "TreeItem" || target.closest("[data-ui=\"TreeItem__box\"]")) && (event.stopPropagation(), setExpanded(itemKey, !expanded), setFocusedElement(rootElement));
|
|
781
|
-
}, $[
|
|
782
|
-
let handleClick =
|
|
783
|
-
$[
|
|
780
|
+
}, $[11] = expanded, $[12] = itemKey, $[13] = onClick, $[14] = rootElement, $[15] = setExpanded, $[16] = setFocusedElement, $[17] = t10) : t10 = $[17];
|
|
781
|
+
let handleClick = t10, t11;
|
|
782
|
+
$[18] !== focused || $[19] !== rootElement ? (t11 = (event_0) => {
|
|
784
783
|
focused && event_0.key === "Enter" && (treeitemRef.current || rootElement)?.click();
|
|
785
|
-
}, $[
|
|
786
|
-
let handleKeyDown = t12, t13
|
|
787
|
-
$[
|
|
784
|
+
}, $[18] = focused, $[19] = rootElement, $[20] = t11) : t11 = $[20];
|
|
785
|
+
let handleKeyDown = t11, t12, t13;
|
|
786
|
+
$[21] !== expanded || $[22] !== itemKey || $[23] !== registerItem || $[24] !== rootElement || $[25] !== selected ? (t12 = () => {
|
|
788
787
|
if (rootElement) return registerItem(rootElement, itemKey, expanded, selected);
|
|
789
|
-
},
|
|
788
|
+
}, t13 = [
|
|
790
789
|
expanded,
|
|
791
790
|
itemKey,
|
|
792
791
|
registerItem,
|
|
793
792
|
rootElement,
|
|
794
793
|
selected
|
|
795
|
-
], $[
|
|
796
|
-
let
|
|
797
|
-
$[
|
|
798
|
-
visibility:
|
|
794
|
+
], $[21] = expanded, $[22] = itemKey, $[23] = registerItem, $[24] = rootElement, $[25] = selected, $[26] = t12, $[27] = t13) : (t12 = $[26], t13 = $[27]), useEffect(t12, t13);
|
|
795
|
+
let t14 = IconComponent || children ? "visible" : "hidden", t15;
|
|
796
|
+
$[28] === t14 ? t15 = $[29] : (t15 = {
|
|
797
|
+
visibility: t14,
|
|
799
798
|
pointerEvents: "none"
|
|
800
|
-
}, $[
|
|
801
|
-
let
|
|
802
|
-
$[
|
|
799
|
+
}, $[28] = t14, $[29] = t15);
|
|
800
|
+
let t16;
|
|
801
|
+
$[30] !== IconComponent || $[31] !== fontSize || $[32] !== muted || $[33] !== weight ? (t16 = IconComponent && /* @__PURE__ */ jsx(Text, {
|
|
803
802
|
muted,
|
|
804
803
|
size: fontSize,
|
|
805
804
|
weight,
|
|
806
805
|
children: /* @__PURE__ */ jsx(IconComponent, {})
|
|
807
|
-
}), $[
|
|
808
|
-
let
|
|
809
|
-
$[
|
|
806
|
+
}), $[30] = IconComponent, $[31] = fontSize, $[32] = muted, $[33] = weight, $[34] = t16) : t16 = $[34];
|
|
807
|
+
let t17;
|
|
808
|
+
$[35] !== IconComponent || $[36] !== expanded || $[37] !== fontSize || $[38] !== muted || $[39] !== weight ? (t17 = !IconComponent && /* @__PURE__ */ jsx(Text, {
|
|
810
809
|
muted,
|
|
811
810
|
size: fontSize,
|
|
812
811
|
weight,
|
|
813
|
-
children: /* @__PURE__ */ jsx(ToggleArrowRightIcon, {
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
812
|
+
children: /* @__PURE__ */ jsx(ToggleArrowRightIcon, {
|
|
813
|
+
className: "_14vatmh1",
|
|
814
|
+
style: { transform: expanded ? "rotate(90deg)" : void 0 }
|
|
815
|
+
})
|
|
816
|
+
}), $[35] = IconComponent, $[36] = expanded, $[37] = fontSize, $[38] = muted, $[39] = weight, $[40] = t17) : t17 = $[40];
|
|
817
|
+
let t18;
|
|
818
|
+
$[41] !== gap || $[42] !== t15 || $[43] !== t16 || $[44] !== t17 ? (t18 = /* @__PURE__ */ jsxs(Box, {
|
|
817
819
|
marginRight: gap,
|
|
818
|
-
style:
|
|
819
|
-
children: [
|
|
820
|
-
}), $[
|
|
821
|
-
let
|
|
822
|
-
$[
|
|
820
|
+
style: t15,
|
|
821
|
+
children: [t16, t17]
|
|
822
|
+
}), $[41] = gap, $[42] = t15, $[43] = t16, $[44] = t17, $[45] = t18) : t18 = $[45];
|
|
823
|
+
let t19;
|
|
824
|
+
$[46] !== fontSize || $[47] !== muted || $[48] !== text || $[49] !== weight ? (t19 = /* @__PURE__ */ jsx(Box, {
|
|
823
825
|
flex: 1,
|
|
824
826
|
children: /* @__PURE__ */ jsx(Text, {
|
|
825
827
|
muted,
|
|
@@ -828,38 +830,38 @@ function TreeItem(props) {
|
|
|
828
830
|
weight,
|
|
829
831
|
children: text
|
|
830
832
|
})
|
|
831
|
-
}), $[
|
|
832
|
-
let
|
|
833
|
-
$[
|
|
833
|
+
}), $[46] = fontSize, $[47] = muted, $[48] = text, $[49] = weight, $[50] = t19) : t19 = $[50];
|
|
834
|
+
let t20;
|
|
835
|
+
$[51] !== padding || $[52] !== t18 || $[53] !== t19 ? (t20 = /* @__PURE__ */ jsxs(Flex, {
|
|
834
836
|
padding,
|
|
835
|
-
children: [
|
|
836
|
-
}), $[
|
|
837
|
-
let content =
|
|
837
|
+
children: [t18, t19]
|
|
838
|
+
}), $[51] = padding, $[52] = t18, $[53] = t19, $[54] = t20) : t20 = $[54];
|
|
839
|
+
let content = t20;
|
|
838
840
|
if (href) {
|
|
839
|
-
let
|
|
840
|
-
$[
|
|
841
|
+
let t21 = typeof linkAs == "string" ? linkAs : "a", t22;
|
|
842
|
+
$[55] !== content || $[56] !== expanded || $[57] !== href || $[58] !== linkAs || $[59] !== linkProps || $[60] !== t21 || $[61] !== tabIndex || $[62] !== tree.level ? (t22 = /* @__PURE__ */ jsx(TreeItemBox, {
|
|
841
843
|
...linkProps,
|
|
842
844
|
$level: tree.level,
|
|
843
845
|
"aria-expanded": expanded,
|
|
844
846
|
as: linkAs,
|
|
845
|
-
"data-as":
|
|
847
|
+
"data-as": t21,
|
|
846
848
|
"data-ui": "TreeItem__box",
|
|
847
849
|
href,
|
|
848
850
|
ref: treeitemRef,
|
|
849
851
|
role: "treeitem",
|
|
850
852
|
tabIndex,
|
|
851
853
|
children: content
|
|
852
|
-
}), $[
|
|
853
|
-
let
|
|
854
|
-
$[
|
|
854
|
+
}), $[55] = content, $[56] = expanded, $[57] = href, $[58] = linkAs, $[59] = linkProps, $[60] = t21, $[61] = tabIndex, $[62] = tree.level, $[63] = t22) : t22 = $[63];
|
|
855
|
+
let t23;
|
|
856
|
+
$[64] !== children || $[65] !== expanded ? (t23 = children && /* @__PURE__ */ jsx(TreeGroup, {
|
|
855
857
|
hidden: !expanded,
|
|
856
858
|
children
|
|
857
|
-
}), $[
|
|
858
|
-
let
|
|
859
|
-
return $[
|
|
859
|
+
}), $[64] = children, $[65] = expanded, $[66] = t23) : t23 = $[66];
|
|
860
|
+
let t24;
|
|
861
|
+
return $[67] !== contextValue || $[68] !== t23 ? (t24 = /* @__PURE__ */ jsx(TreeContext.Provider, {
|
|
860
862
|
value: contextValue,
|
|
861
|
-
children:
|
|
862
|
-
}), $[
|
|
863
|
+
children: t23
|
|
864
|
+
}), $[67] = contextValue, $[68] = t23, $[69] = t24) : t24 = $[69], /* @__PURE__ */ jsxs(StyledTreeItem, {
|
|
863
865
|
"data-selected": selected ? "" : void 0,
|
|
864
866
|
"data-tree-id": id,
|
|
865
867
|
"data-tree-key": itemKey,
|
|
@@ -869,42 +871,42 @@ function TreeItem(props) {
|
|
|
869
871
|
onClick: handleClick,
|
|
870
872
|
ref: setRootElement,
|
|
871
873
|
role: "none",
|
|
872
|
-
children: [
|
|
874
|
+
children: [t22, t24]
|
|
873
875
|
});
|
|
874
876
|
}
|
|
875
|
-
let T0 = StyledTreeItem,
|
|
876
|
-
$[
|
|
877
|
+
let T0 = StyledTreeItem, t21 = selected ? "" : void 0, t23 = clsx(treeItem, restProps.className), t24;
|
|
878
|
+
$[70] !== content || $[71] !== tree.level ? (t24 = /* @__PURE__ */ jsx(TreeItemBox, {
|
|
877
879
|
$level: tree.level,
|
|
878
880
|
as: "div",
|
|
879
881
|
"data-ui": "TreeItem__box",
|
|
880
882
|
children: content
|
|
881
|
-
}), $[
|
|
882
|
-
let
|
|
883
|
-
$[
|
|
883
|
+
}), $[70] = content, $[71] = tree.level, $[72] = t24) : t24 = $[72];
|
|
884
|
+
let t25;
|
|
885
|
+
$[73] !== children || $[74] !== expanded ? (t25 = children && /* @__PURE__ */ jsx(TreeGroup, {
|
|
884
886
|
expanded,
|
|
885
887
|
children
|
|
886
|
-
}), $[
|
|
887
|
-
let
|
|
888
|
-
$[
|
|
888
|
+
}), $[73] = children, $[74] = expanded, $[75] = t25) : t25 = $[75];
|
|
889
|
+
let t26;
|
|
890
|
+
$[76] !== contextValue || $[77] !== t25 ? (t26 = /* @__PURE__ */ jsx(TreeContext.Provider, {
|
|
889
891
|
value: contextValue,
|
|
890
|
-
children:
|
|
891
|
-
}), $[
|
|
892
|
-
let
|
|
893
|
-
return $[
|
|
894
|
-
"data-selected":
|
|
892
|
+
children: t25
|
|
893
|
+
}), $[76] = contextValue, $[77] = t25, $[78] = t26) : t26 = $[78];
|
|
894
|
+
let t27;
|
|
895
|
+
return $[79] !== T0 || $[80] !== expanded || $[81] !== handleClick || $[82] !== handleKeyDown || $[83] !== id || $[84] !== itemKey || $[85] !== restProps || $[86] !== setRootElement || $[87] !== t21 || $[88] !== t23 || $[89] !== t24 || $[90] !== t26 || $[91] !== tabIndex ? (t27 = /* @__PURE__ */ jsxs(T0, {
|
|
896
|
+
"data-selected": t21,
|
|
895
897
|
"data-ui": "TreeItem",
|
|
896
898
|
"data-tree-id": id,
|
|
897
899
|
"data-tree-key": itemKey,
|
|
898
900
|
...restProps,
|
|
899
901
|
"aria-expanded": expanded,
|
|
900
|
-
className:
|
|
902
|
+
className: t23,
|
|
901
903
|
onClick: handleClick,
|
|
902
904
|
onKeyDown: handleKeyDown,
|
|
903
905
|
ref: setRootElement,
|
|
904
906
|
role: "treeitem",
|
|
905
907
|
tabIndex,
|
|
906
|
-
children: [
|
|
907
|
-
}), $[
|
|
908
|
+
children: [t24, t26]
|
|
909
|
+
}), $[79] = T0, $[80] = expanded, $[81] = handleClick, $[82] = handleKeyDown, $[83] = id, $[84] = itemKey, $[85] = restProps, $[86] = setRootElement, $[87] = t21, $[88] = t23, $[89] = t24, $[90] = t26, $[91] = tabIndex, $[92] = t27) : t27 = $[92], t27;
|
|
908
910
|
}
|
|
909
911
|
/**
|
|
910
912
|
* @internal
|
|
@@ -1026,49 +1028,7 @@ function LabelComponent(props) {
|
|
|
1026
1028
|
*
|
|
1027
1029
|
* @public
|
|
1028
1030
|
*/
|
|
1029
|
-
const Label = LabelComponent
|
|
1030
|
-
root: avatarRootStyle,
|
|
1031
|
-
arrow: avatarArrowStyle,
|
|
1032
|
-
bgStroke: avatarBgStrokeStyle,
|
|
1033
|
-
stroke: avatarStrokeStyle,
|
|
1034
|
-
initials: avatarInitialsStyle,
|
|
1035
|
-
image: avatarImageStyle
|
|
1036
|
-
};
|
|
1037
|
-
function avatarArrowStyle() {
|
|
1038
|
-
return {
|
|
1039
|
-
position: "absolute",
|
|
1040
|
-
boxSizing: "border-box",
|
|
1041
|
-
zIndex: "0",
|
|
1042
|
-
opacity: "0",
|
|
1043
|
-
transition: "all 0.2s linear",
|
|
1044
|
-
transform: "rotate(-90deg) translate3d(0, 6px, 0)",
|
|
1045
|
-
left: 0,
|
|
1046
|
-
right: 0,
|
|
1047
|
-
top: 0,
|
|
1048
|
-
bottom: 0,
|
|
1049
|
-
"& > svg": {
|
|
1050
|
-
width: "11px",
|
|
1051
|
-
height: "7px",
|
|
1052
|
-
position: "absolute",
|
|
1053
|
-
top: "-5px",
|
|
1054
|
-
left: "50%",
|
|
1055
|
-
transform: "translateX(-6px)",
|
|
1056
|
-
"&:not([hidden])": { display: "block" }
|
|
1057
|
-
},
|
|
1058
|
-
"[data-arrow-position='inside'] > &": {
|
|
1059
|
-
transform: "rotate(-90deg) translate3d(0, 6px, 0)",
|
|
1060
|
-
opacity: "0"
|
|
1061
|
-
},
|
|
1062
|
-
"[data-arrow-position='top'] > &": {
|
|
1063
|
-
opacity: "1",
|
|
1064
|
-
transform: "rotate(0deg)"
|
|
1065
|
-
},
|
|
1066
|
-
"[data-arrow-position='bottom'] > &": {
|
|
1067
|
-
opacity: "1",
|
|
1068
|
-
transform: "rotate(-180deg)"
|
|
1069
|
-
}
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1031
|
+
const Label = LabelComponent;
|
|
1072
1032
|
function avatarRootStyle(props) {
|
|
1073
1033
|
let { $color } = props, { avatar } = getTheme_v2(props.theme);
|
|
1074
1034
|
return {
|
|
@@ -1111,90 +1071,46 @@ function responsiveAvatarSizeStyle(props) {
|
|
|
1111
1071
|
};
|
|
1112
1072
|
});
|
|
1113
1073
|
}
|
|
1114
|
-
|
|
1115
|
-
return { position: "relative" };
|
|
1116
|
-
}
|
|
1117
|
-
function avatarInitialsStyle() {
|
|
1118
|
-
return {
|
|
1119
|
-
width: "100%",
|
|
1120
|
-
height: "100%",
|
|
1121
|
-
color: "var(--avatar-fg-color)",
|
|
1122
|
-
alignItems: "center",
|
|
1123
|
-
justifyContent: "center",
|
|
1124
|
-
textTransform: "uppercase",
|
|
1125
|
-
textAlign: "center",
|
|
1126
|
-
borderRadius: "50%",
|
|
1127
|
-
"&:not([hidden])": { display: "flex" }
|
|
1128
|
-
};
|
|
1129
|
-
}
|
|
1130
|
-
function avatarBgStrokeStyle() {
|
|
1131
|
-
return {
|
|
1132
|
-
strokeWidth: "4px",
|
|
1133
|
-
stroke: "var(--card-bg-color)"
|
|
1134
|
-
};
|
|
1135
|
-
}
|
|
1136
|
-
function avatarStrokeStyle() {
|
|
1137
|
-
return {
|
|
1138
|
-
strokeWidth: "2px",
|
|
1139
|
-
stroke: "var(--avatar-bg-color)",
|
|
1140
|
-
"[data-status=\"editing\"] &": {
|
|
1141
|
-
strokeDasharray: "2 4",
|
|
1142
|
-
strokeLinecap: "round"
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1074
|
+
var avatarArrow = "_1jezl1b0", avatarStack = "_1jezl1b4";
|
|
1146
1075
|
const StyledAvatar = /* @__PURE__ */ styled.div.withConfig({
|
|
1147
1076
|
displayName: "StyledAvatar",
|
|
1148
|
-
componentId: "sc-
|
|
1149
|
-
})(responsiveAvatarSizeStyle,
|
|
1150
|
-
displayName: "Arrow",
|
|
1151
|
-
componentId: "sc-myyy04-1"
|
|
1152
|
-
})(avatarStyle.arrow), BgStroke = /* @__PURE__ */ styled.ellipse.withConfig({
|
|
1153
|
-
displayName: "BgStroke",
|
|
1154
|
-
componentId: "sc-myyy04-2"
|
|
1155
|
-
})(avatarStyle.bgStroke), Stroke = /* @__PURE__ */ styled.ellipse.withConfig({
|
|
1156
|
-
displayName: "Stroke",
|
|
1157
|
-
componentId: "sc-myyy04-3"
|
|
1158
|
-
})(avatarStyle.stroke), Initials = /* @__PURE__ */ styled.div.withConfig({
|
|
1159
|
-
displayName: "Initials",
|
|
1160
|
-
componentId: "sc-myyy04-4"
|
|
1161
|
-
})(avatarStyle.initials), InitialsLabel = /* @__PURE__ */ styled(Label).withConfig({
|
|
1077
|
+
componentId: "sc-2lyi68-0"
|
|
1078
|
+
})(responsiveAvatarSizeStyle, avatarRootStyle), InitialsLabel = /* @__PURE__ */ styled(Label).withConfig({
|
|
1162
1079
|
displayName: "InitialsLabel",
|
|
1163
|
-
componentId: "sc-
|
|
1164
|
-
})({ color: "inherit" })
|
|
1165
|
-
displayName: "AvatarImage",
|
|
1166
|
-
componentId: "sc-myyy04-6"
|
|
1167
|
-
})(avatarStyle.image);
|
|
1080
|
+
componentId: "sc-2lyi68-1"
|
|
1081
|
+
})({ color: "inherit" });
|
|
1168
1082
|
function AvatarComponent(props) {
|
|
1169
|
-
let $ = c(
|
|
1083
|
+
let $ = c(44), __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, ref, restProps, src, t0, t1, t2, title;
|
|
1170
1084
|
$[0] === props ? (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], ref = $[7], restProps = $[8], src = $[9], t0 = $[10], t1 = $[11], t2 = $[12], title = $[13]) : ({__unstable_hideInnerStroke, as: asProp, color: t0, src, title, initials, onImageLoadError, arrowPosition: arrowPositionProp, animateArrowFrom, ref, status: t1, size: t2, ...restProps} = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = ref, $[8] = restProps, $[9] = src, $[10] = t0, $[11] = t1, $[12] = t2, $[13] = title);
|
|
1171
|
-
let color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, { avatar } = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size = _getArrayProp(sizeProp), _sizeRem = (avatar.sizes[size[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1),
|
|
1085
|
+
let color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, { avatar } = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size = _getArrayProp(sizeProp), _sizeRem = (avatar.sizes[size[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), [prevSrc, setPrevSrc] = useState(src);
|
|
1086
|
+
prevSrc !== src && (setPrevSrc(src), src && setImageFailed(!1));
|
|
1087
|
+
let imageId = `avatar-image-${elementId}`, t3, t4;
|
|
1172
1088
|
$[14] !== arrowPosition || $[15] !== arrowPositionProp ? (t3 = () => {
|
|
1173
1089
|
if (arrowPosition === arrowPositionProp) return;
|
|
1174
1090
|
let raf = requestAnimationFrame(() => setArrowPosition(arrowPositionProp));
|
|
1175
1091
|
return () => cancelAnimationFrame(raf);
|
|
1176
1092
|
}, t4 = [arrowPosition, arrowPositionProp], $[14] = arrowPosition, $[15] = arrowPositionProp, $[16] = t3, $[17] = t4) : (t3 = $[16], t4 = $[17]), useEffect(t3, t4);
|
|
1177
|
-
let t5
|
|
1178
|
-
$[18] ===
|
|
1179
|
-
src && setImageFailed(!1);
|
|
1180
|
-
}, t6 = [src], $[18] = src, $[19] = t5, $[20] = t6), useEffect(t5, t6);
|
|
1181
|
-
let t7;
|
|
1182
|
-
$[21] === onImageLoadError ? t7 = $[22] : (t7 = () => {
|
|
1093
|
+
let t5;
|
|
1094
|
+
$[18] === onImageLoadError ? t5 = $[19] : (t5 = () => {
|
|
1183
1095
|
setImageFailed(!0), onImageLoadError && onImageLoadError(/* @__PURE__ */ Error("Avatar: the image failed to load"));
|
|
1184
|
-
}, $[
|
|
1185
|
-
let handleImageError =
|
|
1186
|
-
$[
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1096
|
+
}, $[18] = onImageLoadError, $[19] = t5);
|
|
1097
|
+
let handleImageError = t5, T0 = StyledAvatar, t6 = typeof as == "string" ? as : void 0, t8;
|
|
1098
|
+
$[20] === color ? t8 = $[21] : (t8 = /* @__PURE__ */ jsx("div", {
|
|
1099
|
+
className: avatarArrow,
|
|
1100
|
+
children: /* @__PURE__ */ jsx("svg", {
|
|
1101
|
+
width: "11",
|
|
1102
|
+
height: "7",
|
|
1103
|
+
viewBox: "0 0 11 7",
|
|
1104
|
+
fill: "none",
|
|
1105
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
1106
|
+
d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",
|
|
1107
|
+
fill: color
|
|
1108
|
+
})
|
|
1194
1109
|
})
|
|
1195
|
-
})
|
|
1196
|
-
let
|
|
1197
|
-
$[
|
|
1110
|
+
}), $[20] = color, $[21] = t8);
|
|
1111
|
+
let t9;
|
|
1112
|
+
$[22] !== __unstable_hideInnerStroke || $[23] !== _radius || $[24] !== _sizeRem || $[25] !== handleImageError || $[26] !== imageFailed || $[27] !== imageId || $[28] !== src ? (t9 = !imageFailed && src && /* @__PURE__ */ jsxs("svg", {
|
|
1113
|
+
className: "_1jezl1b1",
|
|
1198
1114
|
viewBox: `0 0 ${_sizeRem} ${_sizeRem}`,
|
|
1199
1115
|
fill: "none",
|
|
1200
1116
|
children: [
|
|
@@ -1216,14 +1132,16 @@ function AvatarComponent(props) {
|
|
|
1216
1132
|
r: _radius,
|
|
1217
1133
|
fill: `url(#${imageId})`
|
|
1218
1134
|
}),
|
|
1219
|
-
!__unstable_hideInnerStroke && /* @__PURE__ */ jsx(
|
|
1135
|
+
!__unstable_hideInnerStroke && /* @__PURE__ */ jsx("ellipse", {
|
|
1136
|
+
className: "_1jezl1b2",
|
|
1220
1137
|
cx: _radius,
|
|
1221
1138
|
cy: _radius,
|
|
1222
1139
|
rx: _radius,
|
|
1223
1140
|
ry: _radius,
|
|
1224
1141
|
vectorEffect: "non-scaling-stroke"
|
|
1225
1142
|
}),
|
|
1226
|
-
/* @__PURE__ */ jsx(
|
|
1143
|
+
/* @__PURE__ */ jsx("ellipse", {
|
|
1144
|
+
className: "_1jezl1b3",
|
|
1227
1145
|
cx: _radius,
|
|
1228
1146
|
cy: _radius,
|
|
1229
1147
|
rx: _radius,
|
|
@@ -1231,16 +1149,19 @@ function AvatarComponent(props) {
|
|
|
1231
1149
|
vectorEffect: "non-scaling-stroke"
|
|
1232
1150
|
})
|
|
1233
1151
|
]
|
|
1234
|
-
}), $[
|
|
1235
|
-
let
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1152
|
+
}), $[22] = __unstable_hideInnerStroke, $[23] = _radius, $[24] = _sizeRem, $[25] = handleImageError, $[26] = imageFailed, $[27] = imageId, $[28] = src, $[29] = t9) : t9 = $[29];
|
|
1153
|
+
let t10 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", {
|
|
1154
|
+
className: "_1jezl1b5",
|
|
1155
|
+
children: /* @__PURE__ */ jsx(InitialsLabel, {
|
|
1156
|
+
forwardedAs: "span",
|
|
1157
|
+
size: size.map(_temp$2),
|
|
1158
|
+
weight: "medium",
|
|
1159
|
+
children: initials
|
|
1160
|
+
})
|
|
1161
|
+
}) }), t11;
|
|
1162
|
+
return $[30] !== T0 || $[31] !== arrowPosition || $[32] !== as || $[33] !== color || $[34] !== ref || $[35] !== restProps || $[36] !== size || $[37] !== status || $[38] !== t10 || $[39] !== t6 || $[40] !== t8 || $[41] !== t9 || $[42] !== title ? (t11 = /* @__PURE__ */ jsxs(T0, {
|
|
1242
1163
|
as,
|
|
1243
|
-
"data-as":
|
|
1164
|
+
"data-as": t6,
|
|
1244
1165
|
"data-ui": "Avatar",
|
|
1245
1166
|
...restProps,
|
|
1246
1167
|
$color: color,
|
|
@@ -1251,11 +1172,11 @@ function AvatarComponent(props) {
|
|
|
1251
1172
|
ref,
|
|
1252
1173
|
title,
|
|
1253
1174
|
children: [
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1175
|
+
t8,
|
|
1176
|
+
t9,
|
|
1177
|
+
t10
|
|
1257
1178
|
]
|
|
1258
|
-
}), $[
|
|
1179
|
+
}), $[30] = T0, $[31] = arrowPosition, $[32] = as, $[33] = color, $[34] = ref, $[35] = restProps, $[36] = size, $[37] = status, $[38] = t10, $[39] = t6, $[40] = t8, $[41] = t9, $[42] = title, $[43] = t11) : t11 = $[43], t11;
|
|
1259
1180
|
}
|
|
1260
1181
|
function _temp$2(s) {
|
|
1261
1182
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
@@ -1312,10 +1233,6 @@ function AvatarCounter(props) {
|
|
|
1312
1233
|
function _temp$1(s) {
|
|
1313
1234
|
return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
|
|
1314
1235
|
}
|
|
1315
|
-
const BASE_STYLES = css`white-space:nowrap;& > div{vertical-align:top;&:not([hidden]){display:inline-block;}}`;
|
|
1316
|
-
function avatarStackStyle() {
|
|
1317
|
-
return BASE_STYLES;
|
|
1318
|
-
}
|
|
1319
1236
|
function responsiveAvatarStackSizeStyle(props) {
|
|
1320
1237
|
let { avatar, media } = getTheme_v2(props.theme);
|
|
1321
1238
|
return _responsive(media, props.$size, (size) => {
|
|
@@ -1325,41 +1242,42 @@ function responsiveAvatarStackSizeStyle(props) {
|
|
|
1325
1242
|
}
|
|
1326
1243
|
const StyledAvatarStack = /* @__PURE__ */ styled.div.withConfig({
|
|
1327
1244
|
displayName: "StyledAvatarStack",
|
|
1328
|
-
componentId: "sc-
|
|
1329
|
-
})(responsiveAvatarStackSizeStyle
|
|
1245
|
+
componentId: "sc-cw2hpz-0"
|
|
1246
|
+
})(responsiveAvatarStackSizeStyle);
|
|
1330
1247
|
/**
|
|
1331
1248
|
* @public
|
|
1332
1249
|
*/
|
|
1333
1250
|
function AvatarStack(props) {
|
|
1334
|
-
let $ = c(
|
|
1335
|
-
$[0] === props ? (childrenProp = $[1],
|
|
1336
|
-
let maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, T0, t2, t3, t4, t5, t6, t7, t8;
|
|
1337
|
-
if ($[
|
|
1338
|
-
let children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0),
|
|
1339
|
-
$[
|
|
1340
|
-
let size =
|
|
1341
|
-
T0 = StyledAvatarStack, t2 = "AvatarStack",
|
|
1251
|
+
let $ = c(45), childrenProp, className, ref, restProps, t0, t1;
|
|
1252
|
+
$[0] === props ? (childrenProp = $[1], className = $[2], ref = $[3], restProps = $[4], t0 = $[5], t1 = $[6]) : ({children: childrenProp, className, maxLength: t0, ref, size: t1, ...restProps} = props, $[0] = props, $[1] = childrenProp, $[2] = className, $[3] = ref, $[4] = restProps, $[5] = t0, $[6] = t1);
|
|
1253
|
+
let maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, T0, t2, t3, t4, t5, t6, t7, t8, t9;
|
|
1254
|
+
if ($[7] !== childrenProp || $[8] !== className || $[9] !== maxLengthProp || $[10] !== ref || $[11] !== restProps || $[12] !== sizeProp) {
|
|
1255
|
+
let children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0), t10;
|
|
1256
|
+
$[22] === sizeProp ? t10 = $[23] : (t10 = _getArrayProp(sizeProp), $[22] = sizeProp, $[23] = t10);
|
|
1257
|
+
let size = t10, len = children.length, extraCount = len - (maxLength - 1), visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children;
|
|
1258
|
+
T0 = StyledAvatarStack, $[24] === className ? t2 = $[25] : (t2 = clsx(avatarStack, className), $[24] = className, $[25] = t2), t3 = "AvatarStack", t4 = restProps, t5 = ref, t6 = size, $[26] !== len || $[27] !== size ? (t7 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, {
|
|
1342
1259
|
count: len,
|
|
1343
1260
|
size
|
|
1344
|
-
}) }), $[
|
|
1261
|
+
}) }), $[26] = len, $[27] = size, $[28] = t7) : t7 = $[28], $[29] !== extraCount || $[30] !== len || $[31] !== size ? (t8 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, {
|
|
1345
1262
|
count: extraCount,
|
|
1346
1263
|
size
|
|
1347
|
-
}) }), $[
|
|
1348
|
-
let
|
|
1349
|
-
$[
|
|
1350
|
-
} else T0 = $[
|
|
1351
|
-
let
|
|
1352
|
-
return $[
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1264
|
+
}) }), $[29] = extraCount, $[30] = len, $[31] = size, $[32] = t8) : t8 = $[32];
|
|
1265
|
+
let t11;
|
|
1266
|
+
$[33] === size ? t11 = $[34] : (t11 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, { size }) }, String(childIndex)), $[33] = size, $[34] = t11), t9 = visibleChildren.map(t11), $[7] = childrenProp, $[8] = className, $[9] = maxLengthProp, $[10] = ref, $[11] = restProps, $[12] = sizeProp, $[13] = T0, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7, $[20] = t8, $[21] = t9;
|
|
1267
|
+
} else T0 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], t7 = $[19], t8 = $[20], t9 = $[21];
|
|
1268
|
+
let t10;
|
|
1269
|
+
return $[35] !== T0 || $[36] !== t2 || $[37] !== t3 || $[38] !== t4 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8 || $[43] !== t9 ? (t10 = /* @__PURE__ */ jsxs(T0, {
|
|
1270
|
+
className: t2,
|
|
1271
|
+
"data-ui": t3,
|
|
1272
|
+
...t4,
|
|
1273
|
+
ref: t5,
|
|
1274
|
+
$size: t6,
|
|
1357
1275
|
children: [
|
|
1358
|
-
t6,
|
|
1359
1276
|
t7,
|
|
1360
|
-
t8
|
|
1277
|
+
t8,
|
|
1278
|
+
t9
|
|
1361
1279
|
]
|
|
1362
|
-
}), $[
|
|
1280
|
+
}), $[35] = T0, $[36] = t2, $[37] = t3, $[38] = t4, $[39] = t5, $[40] = t6, $[41] = t7, $[42] = t8, $[43] = t9, $[44] = t10) : t10 = $[44], t10;
|
|
1363
1281
|
}
|
|
1364
1282
|
function badgeStyle(props) {
|
|
1365
1283
|
let { $tone } = props;
|
|
@@ -1760,10 +1678,10 @@ function Switch(props) {
|
|
|
1760
1678
|
}
|
|
1761
1679
|
const Input = /* @__PURE__ */ styled.textarea.withConfig({
|
|
1762
1680
|
displayName: "Input",
|
|
1763
|
-
componentId: "sc-
|
|
1681
|
+
componentId: "sc-gtnobm-0"
|
|
1764
1682
|
})(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation = /* @__PURE__ */ styled.div.withConfig({
|
|
1765
1683
|
displayName: "Presentation",
|
|
1766
|
-
componentId: "sc-
|
|
1684
|
+
componentId: "sc-gtnobm-1"
|
|
1767
1685
|
})(responsiveRadiusStyle, textInputRepresentationStyle);
|
|
1768
1686
|
/**
|
|
1769
1687
|
* A multiline text input.
|
|
@@ -1811,7 +1729,7 @@ function TextArea(props) {
|
|
|
1811
1729
|
}), $[27] = __unstable_disableFocusRing, $[28] = rootTheme.scheme, $[29] = rootTheme.tone, $[30] = t13, $[31] = t14, $[32] = t15) : t15 = $[32];
|
|
1812
1730
|
let t16;
|
|
1813
1731
|
return $[33] !== t12 || $[34] !== t15 ? (t16 = /* @__PURE__ */ jsx("span", {
|
|
1814
|
-
className:
|
|
1732
|
+
className: textAreaRoot,
|
|
1815
1733
|
"data-ui": "TextArea",
|
|
1816
1734
|
children: /* @__PURE__ */ jsxs("span", {
|
|
1817
1735
|
className: inputRoot,
|