@primer/react 0.0.0-20261105162617 → 0.0.0-20261106202348
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/CHANGELOG.md +21 -7
- package/dist/Blankslate/{Blankslate-11d7a7fd.css → Blankslate-670cf090.css} +2 -2
- package/dist/Blankslate/Blankslate-670cf090.css.map +1 -0
- package/dist/Blankslate/Blankslate.js +46 -36
- package/dist/Blankslate/Blankslate.module.css.js +1 -1
- package/dist/Breadcrumbs/{Breadcrumbs-c913a296.css → Breadcrumbs-6c9aadcf.css} +2 -2
- package/dist/Breadcrumbs/Breadcrumbs-6c9aadcf.css.map +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/SegmentedControl/SegmentedControl-99b8e34e.css +2 -0
- package/dist/SegmentedControl/SegmentedControl-99b8e34e.css.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
- package/dist/SegmentedControl/SegmentedControlButton.js +76 -119
- package/dist/Skeleton/SkeletonBox-6305aba6.css +2 -0
- package/dist/Skeleton/SkeletonBox-6305aba6.css.map +1 -0
- package/dist/Skeleton/SkeletonBox.js +2 -1
- package/dist/Skeleton/SkeletonBox.module.css.js +2 -5
- package/dist/Skeleton/skeleton-27888827.css +2 -0
- package/dist/Skeleton/skeleton-27888827.css.map +1 -0
- package/dist/Skeleton/skeleton.module.css.js +8 -0
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +3 -0
- package/dist/SkeletonAvatar/SkeletonAvatar.js +75 -59
- package/dist/SkeletonText/SkeletonText.d.ts +3 -0
- package/dist/SkeletonText/SkeletonText.js +86 -70
- package/dist/Stack/Stack-1790a166.css +2 -0
- package/dist/Stack/Stack-1790a166.css.map +1 -0
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/Stack/Stack.module.css.js +1 -1
- package/dist/TooltipV2/Tooltip.d.ts +1 -1
- package/dist/TooltipV2/Tooltip.js +107 -130
- package/dist/hooks/useOnEscapePress.d.ts +2 -0
- package/dist/hooks/useOnEscapePress.js +11 -4
- package/dist/hooks/useOnOutsideClick.js +2 -1
- package/generated/components.json +1 -1
- package/package.json +4 -4
- package/dist/Blankslate/Blankslate-11d7a7fd.css.map +0 -1
- package/dist/Breadcrumbs/Breadcrumbs-c913a296.css.map +0 -1
- package/dist/SegmentedControl/SegmentedControl-3dc28307.css +0 -2
- package/dist/SegmentedControl/SegmentedControl-3dc28307.css.map +0 -1
- package/dist/Skeleton/SkeletonBox-e078be7c.css +0 -2
- package/dist/Skeleton/SkeletonBox-e078be7c.css.map +0 -1
- package/dist/Stack/Stack-58c33984.css +0 -2
- package/dist/Stack/Stack-58c33984.css.map +0 -1
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
3
|
-
import { useResizeObserver } from "../hooks/useResizeObserver.js";
|
|
4
2
|
import CounterLabel from "../CounterLabel/CounterLabel.js";
|
|
5
|
-
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
6
3
|
import SegmentedControl_module_css_default from "./SegmentedControl.module.css.js";
|
|
7
|
-
import { useRef, useState } from "react";
|
|
8
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
5
|
import { clsx } from "clsx";
|
|
10
6
|
import { isElement } from "react-is";
|
|
11
7
|
//#region src/SegmentedControl/SegmentedControlButton.tsx
|
|
12
8
|
const SegmentedControlButton = (t0) => {
|
|
13
|
-
const $ = c(
|
|
9
|
+
const $ = c(36);
|
|
14
10
|
let children;
|
|
15
11
|
let className;
|
|
16
12
|
let count;
|
|
@@ -59,142 +55,103 @@ const SegmentedControlButton = (t0) => {
|
|
|
59
55
|
ariaDisabled = $[10];
|
|
60
56
|
rest = $[11];
|
|
61
57
|
}
|
|
62
|
-
const
|
|
63
|
-
const [isTruncated, setIsTruncated] = useState(false);
|
|
58
|
+
const LeadingVisual = leadingVisual !== null && leadingVisual !== void 0 ? leadingVisual : leadingIcon;
|
|
64
59
|
let t1;
|
|
65
60
|
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
-
t1 = ()
|
|
67
|
-
const label = labelRef.current;
|
|
68
|
-
if (label) setIsTruncated(label.scrollWidth > label.clientWidth);
|
|
69
|
-
};
|
|
61
|
+
t1 = clsx(SegmentedControl_module_css_default.Item);
|
|
70
62
|
$[12] = t1;
|
|
71
63
|
} else t1 = $[12];
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
-
if ($[13] !==
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
$[15] =
|
|
84
|
-
} else
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
89
|
-
t3 = clsx(SegmentedControl_module_css_default.Item);
|
|
90
|
-
$[16] = t3;
|
|
91
|
-
} else t3 = $[16];
|
|
92
|
-
const t4 = selected ? "" : void 0;
|
|
93
|
-
const t5 = isTruncated ? children : "";
|
|
94
|
-
const t6 = !isTruncated;
|
|
95
|
-
const t7 = disabled || ariaDisabled || void 0;
|
|
96
|
-
let t8;
|
|
97
|
-
if ($[17] !== className) {
|
|
98
|
-
t8 = clsx(SegmentedControl_module_css_default.Button, className);
|
|
99
|
-
$[17] = className;
|
|
100
|
-
$[18] = t8;
|
|
101
|
-
} else t8 = $[18];
|
|
102
|
-
let t9;
|
|
103
|
-
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
104
|
-
t9 = clsx(SegmentedControl_module_css_default.Content, "segmentedControl-content");
|
|
105
|
-
$[19] = t9;
|
|
106
|
-
} else t9 = $[19];
|
|
107
|
-
let t10;
|
|
108
|
-
if ($[20] !== LeadingVisual) {
|
|
109
|
-
t10 = LeadingVisual && /* @__PURE__ */ jsx("div", {
|
|
64
|
+
const t2 = selected ? "" : void 0;
|
|
65
|
+
const t3 = disabled || ariaDisabled || void 0;
|
|
66
|
+
let t4;
|
|
67
|
+
if ($[13] !== className) {
|
|
68
|
+
t4 = clsx(SegmentedControl_module_css_default.Button, className);
|
|
69
|
+
$[13] = className;
|
|
70
|
+
$[14] = t4;
|
|
71
|
+
} else t4 = $[14];
|
|
72
|
+
let t5;
|
|
73
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
74
|
+
t5 = clsx(SegmentedControl_module_css_default.Content, "segmentedControl-content");
|
|
75
|
+
$[15] = t5;
|
|
76
|
+
} else t5 = $[15];
|
|
77
|
+
let t6;
|
|
78
|
+
if ($[16] !== LeadingVisual) {
|
|
79
|
+
t6 = LeadingVisual && /* @__PURE__ */ jsx("div", {
|
|
110
80
|
className: SegmentedControl_module_css_default.LeadingIcon,
|
|
111
81
|
children: isElement(LeadingVisual) ? LeadingVisual : /* @__PURE__ */ jsx(LeadingVisual, {})
|
|
112
82
|
});
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
} else
|
|
116
|
-
let
|
|
117
|
-
if ($[
|
|
118
|
-
|
|
119
|
-
$[
|
|
120
|
-
} else
|
|
121
|
-
let
|
|
122
|
-
if ($[
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
className: t11,
|
|
83
|
+
$[16] = LeadingVisual;
|
|
84
|
+
$[17] = t6;
|
|
85
|
+
} else t6 = $[17];
|
|
86
|
+
let t7;
|
|
87
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
88
|
+
t7 = clsx(SegmentedControl_module_css_default.Text, "segmentedControl-text");
|
|
89
|
+
$[18] = t7;
|
|
90
|
+
} else t7 = $[18];
|
|
91
|
+
let t8;
|
|
92
|
+
if ($[19] !== children) {
|
|
93
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
94
|
+
className: t7,
|
|
126
95
|
"data-text": children,
|
|
127
96
|
children
|
|
128
97
|
});
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
} else
|
|
132
|
-
let
|
|
133
|
-
if ($[
|
|
134
|
-
|
|
98
|
+
$[19] = children;
|
|
99
|
+
$[20] = t8;
|
|
100
|
+
} else t8 = $[20];
|
|
101
|
+
let t9;
|
|
102
|
+
if ($[21] !== count) {
|
|
103
|
+
t9 = count !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
135
104
|
className: SegmentedControl_module_css_default.Counter,
|
|
136
105
|
children: /* @__PURE__ */ jsx(CounterLabel, { children: count })
|
|
137
106
|
});
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
} else
|
|
141
|
-
let
|
|
142
|
-
if ($[
|
|
143
|
-
|
|
144
|
-
className:
|
|
107
|
+
$[21] = count;
|
|
108
|
+
$[22] = t9;
|
|
109
|
+
} else t9 = $[22];
|
|
110
|
+
let t10;
|
|
111
|
+
if ($[23] !== t6 || $[24] !== t8 || $[25] !== t9) {
|
|
112
|
+
t10 = /* @__PURE__ */ jsxs("span", {
|
|
113
|
+
className: t5,
|
|
145
114
|
children: [
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
115
|
+
t6,
|
|
116
|
+
t8,
|
|
117
|
+
t9
|
|
149
118
|
]
|
|
150
119
|
});
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
} else
|
|
156
|
-
let
|
|
157
|
-
if ($[
|
|
158
|
-
|
|
120
|
+
$[23] = t6;
|
|
121
|
+
$[24] = t8;
|
|
122
|
+
$[25] = t9;
|
|
123
|
+
$[26] = t10;
|
|
124
|
+
} else t10 = $[26];
|
|
125
|
+
let t11;
|
|
126
|
+
if ($[27] !== rest || $[28] !== selected || $[29] !== t10 || $[30] !== t3 || $[31] !== t4) {
|
|
127
|
+
t11 = /* @__PURE__ */ jsx("button", {
|
|
159
128
|
"aria-pressed": selected,
|
|
160
|
-
"aria-disabled":
|
|
161
|
-
className:
|
|
129
|
+
"aria-disabled": t3,
|
|
130
|
+
className: t4,
|
|
162
131
|
type: "button",
|
|
163
132
|
...rest,
|
|
164
|
-
children:
|
|
165
|
-
});
|
|
166
|
-
$[31] = rest;
|
|
167
|
-
$[32] = selected;
|
|
168
|
-
$[33] = t14;
|
|
169
|
-
$[34] = t7;
|
|
170
|
-
$[35] = t8;
|
|
171
|
-
$[36] = t15;
|
|
172
|
-
} else t15 = $[36];
|
|
173
|
-
let t16;
|
|
174
|
-
if ($[37] !== t15 || $[38] !== t5 || $[39] !== t6) {
|
|
175
|
-
t16 = /* @__PURE__ */ jsx(Tooltip, {
|
|
176
|
-
text: t5,
|
|
177
|
-
_privateDisableTooltip: t6,
|
|
178
|
-
children: t15
|
|
133
|
+
children: t10
|
|
179
134
|
});
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
135
|
+
$[27] = rest;
|
|
136
|
+
$[28] = selected;
|
|
137
|
+
$[29] = t10;
|
|
138
|
+
$[30] = t3;
|
|
139
|
+
$[31] = t4;
|
|
140
|
+
$[32] = t11;
|
|
141
|
+
} else t11 = $[32];
|
|
142
|
+
let t12;
|
|
143
|
+
if ($[33] !== t11 || $[34] !== t2) {
|
|
144
|
+
t12 = /* @__PURE__ */ jsx("li", {
|
|
145
|
+
className: t1,
|
|
146
|
+
"data-selected": t2,
|
|
190
147
|
"data-component": "SegmentedControl.Button",
|
|
191
|
-
children:
|
|
148
|
+
children: t11
|
|
192
149
|
});
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
} else
|
|
197
|
-
return
|
|
150
|
+
$[33] = t11;
|
|
151
|
+
$[34] = t2;
|
|
152
|
+
$[35] = t12;
|
|
153
|
+
} else t12 = $[35];
|
|
154
|
+
return t12;
|
|
198
155
|
};
|
|
199
156
|
SegmentedControlButton.__SLOT__ = Symbol("SegmentedControl.Button");
|
|
200
157
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Skeleton/SkeletonBox.module.css.js"],"names":[],"mappings":"AAAA,gCAGE,gDAAwC,CAFxC,aAAc,CACd,WAEF","file":"SkeletonBox-6305aba6.css","sourcesContent":[".SkeletonBox {\n display: block;\n height: 1rem;\n border-radius: var(--borderRadius-small);\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import SkeletonBox_module_css_default from "./SkeletonBox.module.css.js";
|
|
3
|
+
import skeleton_module_css_default from "./skeleton.module.css.js";
|
|
3
4
|
import React, { useEffect, useState } from "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { clsx } from "clsx";
|
|
@@ -58,7 +59,7 @@ const SkeletonBox = /*#__PURE__*/ React.forwardRef(function SkeletonBox(t0, ref)
|
|
|
58
59
|
const t4 = ref;
|
|
59
60
|
let t5;
|
|
60
61
|
if ($[11] !== className) {
|
|
61
|
-
t5 = clsx(className, SkeletonBox_module_css_default.SkeletonBox);
|
|
62
|
+
t5 = clsx(className, SkeletonBox_module_css_default.SkeletonBox, skeleton_module_css_default.skeleton);
|
|
62
63
|
$[11] = className;
|
|
63
64
|
$[12] = t5;
|
|
64
65
|
} else t5 = $[12];
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import "./SkeletonBox-
|
|
1
|
+
import "./SkeletonBox-6305aba6.css";
|
|
2
2
|
//#region src/Skeleton/SkeletonBox.module.css.js
|
|
3
|
-
var SkeletonBox_module_css_default = {
|
|
4
|
-
"SkeletonBox": "prc-Skeleton-SkeletonBox-e93nW",
|
|
5
|
-
"shimmer": "prc-Skeleton-shimmer---lzU"
|
|
6
|
-
};
|
|
3
|
+
var SkeletonBox_module_css_default = { "SkeletonBox": "prc-Skeleton-SkeletonBox-e93nW" };
|
|
7
4
|
//#endregion
|
|
8
5
|
export { SkeletonBox_module_css_default as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@keyframes prc-Skeleton-shimmer-mE-VG{0%{mask-position:200%}to{mask-position:0}}.prc-Skeleton-skeleton-Hkezl{animation:prc-Skeleton-shimmer-mE-VG;background-color:var(--skeletonLoader-bgColor,#818b981a)}@media (prefers-reduced-motion:no-preference){.prc-Skeleton-skeleton-Hkezl{animation:prc-Skeleton-shimmer-mE-VG;animation-duration:var(--base-duration-1000,[ object Object ]);animation-iteration-count:infinite;mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,.65) 80%);mask-size:200%}}@media (forced-colors:active){.prc-Skeleton-skeleton-Hkezl{outline:1px solid transparent;outline-offset:-1px}}
|
|
2
|
+
/*# sourceMappingURL=skeleton-27888827.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Skeleton/skeleton.module.css.js"],"names":[],"mappings":"AAAA,sCACE,GACE,kBACF,CAEA,GACE,eACF,CACF,CAGA,6BAEE,oCAAkB,CADlB,wDAeF,CAZE,8CAJF,6BAOI,oCAAkB,CAClB,8DAA6C,CAC7C,kCAAmC,CAJnC,8DAAoE,CACpE,cAUJ,CANE,CAEA,8BAZF,6BAaI,6BAA8B,CAC9B,mBAEJ,CADE","file":"skeleton-27888827.css","sourcesContent":["@keyframes shimmer {\n from {\n mask-position: 200%;\n }\n\n to {\n mask-position: 0%;\n }\n}\n\n/* stylelint-disable-next-line selector-class-pattern -- Shared utility, not a component class. */\n.skeleton {\n background-color: var(--skeletonLoader-bgColor);\n animation: shimmer;\n\n @media (prefers-reduced-motion: no-preference) {\n mask-image: linear-gradient(75deg, #000 30%, rgb(0, 0, 0, 0.65) 80%);\n mask-size: 200%;\n animation: shimmer;\n animation-duration: var(--base-duration-1000);\n animation-iteration-count: infinite;\n }\n\n @media (forced-colors: active) {\n outline: 1px solid transparent;\n outline-offset: -1px;\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./skeleton-27888827.css";
|
|
2
|
+
//#region src/Skeleton/skeleton.module.css.js
|
|
3
|
+
var skeleton_module_css_default = {
|
|
4
|
+
"skeleton": "prc-Skeleton-skeleton-Hkezl",
|
|
5
|
+
"shimmer": "prc-Skeleton-shimmer-mE-VG"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { skeleton_module_css_default as default };
|
|
@@ -1,98 +1,114 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
2
|
import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
|
|
3
|
-
import
|
|
3
|
+
import skeleton_module_css_default from "../Skeleton/skeleton.module.css.js";
|
|
4
4
|
import SkeletonAvatar_module_css_default from "./SkeletonAvatar.module.css.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
//#region src/SkeletonAvatar/SkeletonAvatar.tsx
|
|
8
8
|
function SkeletonAvatar(t0) {
|
|
9
|
-
const $ = c(
|
|
9
|
+
const $ = c(32);
|
|
10
10
|
let className;
|
|
11
|
+
let height;
|
|
12
|
+
let ref;
|
|
11
13
|
let rest;
|
|
12
14
|
let square;
|
|
13
15
|
let style;
|
|
14
16
|
let t1;
|
|
17
|
+
let width;
|
|
15
18
|
if ($[0] !== t0) {
|
|
16
|
-
({size: t1, square, className, style, ...rest} = t0);
|
|
19
|
+
({size: t1, square, className, style, height, width, ref, ...rest} = t0);
|
|
17
20
|
$[0] = t0;
|
|
18
21
|
$[1] = className;
|
|
19
|
-
$[2] =
|
|
20
|
-
$[3] =
|
|
21
|
-
$[4] =
|
|
22
|
-
$[5] =
|
|
22
|
+
$[2] = height;
|
|
23
|
+
$[3] = ref;
|
|
24
|
+
$[4] = rest;
|
|
25
|
+
$[5] = square;
|
|
26
|
+
$[6] = style;
|
|
27
|
+
$[7] = t1;
|
|
28
|
+
$[8] = width;
|
|
23
29
|
} else {
|
|
24
30
|
className = $[1];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
height = $[2];
|
|
32
|
+
ref = $[3];
|
|
33
|
+
rest = $[4];
|
|
34
|
+
square = $[5];
|
|
35
|
+
style = $[6];
|
|
36
|
+
t1 = $[7];
|
|
37
|
+
width = $[8];
|
|
29
38
|
}
|
|
30
39
|
const size = t1 === void 0 ? 20 : t1;
|
|
31
40
|
let t2;
|
|
32
|
-
if ($[
|
|
41
|
+
if ($[9] !== size) {
|
|
33
42
|
t2 = isResponsiveValue(size);
|
|
34
|
-
$[
|
|
35
|
-
$[
|
|
36
|
-
} else t2 = $[
|
|
43
|
+
$[9] = size;
|
|
44
|
+
$[10] = t2;
|
|
45
|
+
} else t2 = $[10];
|
|
37
46
|
const responsive = t2;
|
|
38
47
|
let cssSizeVars;
|
|
39
|
-
if ($[
|
|
48
|
+
if ($[11] !== responsive || $[12] !== size) {
|
|
40
49
|
cssSizeVars = {};
|
|
41
50
|
if (responsive) {
|
|
42
51
|
let t3;
|
|
43
|
-
if ($[
|
|
52
|
+
if ($[14] !== size) {
|
|
44
53
|
t3 = Object.entries(size);
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
} else t3 = $[
|
|
54
|
+
$[14] = size;
|
|
55
|
+
$[15] = t3;
|
|
56
|
+
} else t3 = $[15];
|
|
48
57
|
for (const [key, value] of t3) cssSizeVars[`--avatarSize-${key}`] = `${value}px`;
|
|
49
58
|
} else cssSizeVars["--avatarSize-regular"] = `${size}px`;
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
} else cssSizeVars = $[
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$[
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const t5 =
|
|
62
|
-
|
|
63
|
-
if ($[15] !== style) {
|
|
64
|
-
t6 = style || {};
|
|
65
|
-
$[15] = style;
|
|
66
|
-
$[16] = t6;
|
|
67
|
-
} else t6 = $[16];
|
|
59
|
+
$[11] = responsive;
|
|
60
|
+
$[12] = size;
|
|
61
|
+
$[13] = cssSizeVars;
|
|
62
|
+
} else cssSizeVars = $[13];
|
|
63
|
+
const t3 = ref;
|
|
64
|
+
let t4;
|
|
65
|
+
if ($[16] !== className) {
|
|
66
|
+
t4 = clsx(className, SkeletonAvatar_module_css_default.SkeletonAvatar, skeleton_module_css_default.skeleton);
|
|
67
|
+
$[16] = className;
|
|
68
|
+
$[17] = t4;
|
|
69
|
+
} else t4 = $[17];
|
|
70
|
+
const t5 = responsive ? "" : void 0;
|
|
71
|
+
const t6 = square ? "" : void 0;
|
|
68
72
|
let t7;
|
|
69
|
-
if ($[
|
|
70
|
-
t7 = {
|
|
71
|
-
|
|
72
|
-
...cssSizeVars
|
|
73
|
-
};
|
|
74
|
-
$[17] = cssSizeVars;
|
|
75
|
-
$[18] = t6;
|
|
73
|
+
if ($[18] !== style) {
|
|
74
|
+
t7 = style || {};
|
|
75
|
+
$[18] = style;
|
|
76
76
|
$[19] = t7;
|
|
77
77
|
} else t7 = $[19];
|
|
78
78
|
let t8;
|
|
79
|
-
if ($[20] !==
|
|
80
|
-
t8 =
|
|
81
|
-
|
|
79
|
+
if ($[20] !== cssSizeVars || $[21] !== height || $[22] !== t7 || $[23] !== width) {
|
|
80
|
+
t8 = {
|
|
81
|
+
height,
|
|
82
|
+
width,
|
|
83
|
+
...t7,
|
|
84
|
+
...cssSizeVars
|
|
85
|
+
};
|
|
86
|
+
$[20] = cssSizeVars;
|
|
87
|
+
$[21] = height;
|
|
88
|
+
$[22] = t7;
|
|
89
|
+
$[23] = width;
|
|
90
|
+
$[24] = t8;
|
|
91
|
+
} else t8 = $[24];
|
|
92
|
+
let t9;
|
|
93
|
+
if ($[25] !== rest || $[26] !== t3 || $[27] !== t4 || $[28] !== t5 || $[29] !== t6 || $[30] !== t8) {
|
|
94
|
+
t9 = /* @__PURE__ */ jsx("div", {
|
|
95
|
+
ref: t3,
|
|
96
|
+
className: t4,
|
|
82
97
|
...rest,
|
|
83
98
|
"data-component": "SkeletonAvatar",
|
|
84
|
-
"data-responsive":
|
|
85
|
-
"data-square":
|
|
86
|
-
style:
|
|
99
|
+
"data-responsive": t5,
|
|
100
|
+
"data-square": t6,
|
|
101
|
+
style: t8
|
|
87
102
|
});
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
$[25] = rest;
|
|
104
|
+
$[26] = t3;
|
|
105
|
+
$[27] = t4;
|
|
106
|
+
$[28] = t5;
|
|
107
|
+
$[29] = t6;
|
|
108
|
+
$[30] = t8;
|
|
109
|
+
$[31] = t9;
|
|
110
|
+
} else t9 = $[31];
|
|
111
|
+
return t9;
|
|
96
112
|
}
|
|
97
113
|
//#endregion
|
|
98
114
|
export { SkeletonAvatar };
|