@primer/react 38.46.0-rc.7155241f3 → 38.46.0-rc.a85a32423

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 CHANGED
@@ -6,6 +6,12 @@
6
6
 
7
7
  - [#8692](https://github.com/primer/react/pull/8692) [`918d7cf`](https://github.com/primer/react/commit/918d7cf82d3884ab134e9b074e0a595198a1c033) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Stack: Add `balance` as a value for the `wrap` prop.
8
8
 
9
+ ### Patch Changes
10
+
11
+ - [#8628](https://github.com/primer/react/pull/8628) [`41f29c8`](https://github.com/primer/react/commit/41f29c845663936043618af29dcb71de4c9384b2) Thanks [@joshblack](https://github.com/joshblack)! - SkeletonAvatar, SkeletonText: Preserve the requested size and shape regardless of stylesheet load order
12
+
13
+ - [#8562](https://github.com/primer/react/pull/8562) [`ee46232`](https://github.com/primer/react/commit/ee46232fafa24701415b21eed60cca68e589cf1c) Thanks [@joshblack](https://github.com/joshblack)! - useOnEscapePress, useOnOutsideClick: Improve performance when callbacks change between renders.
14
+
9
15
  ## 38.45.0
10
16
 
11
17
  ### Minor Changes
@@ -0,0 +1,2 @@
1
+ .prc-Skeleton-SkeletonBox-e93nW{border-radius:var(--borderRadius-small,.1875rem);display:block;height:1rem}
2
+ /*# sourceMappingURL=SkeletonBox-6305aba6.css.map */
@@ -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-e078be7c.css";
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 };
@@ -13,6 +13,9 @@ declare function SkeletonAvatar({
13
13
  square,
14
14
  className,
15
15
  style,
16
+ height,
17
+ width,
18
+ ref,
16
19
  ...rest
17
20
  }: SkeletonAvatarProps): React.JSX.Element;
18
21
  //#endregion
@@ -1,98 +1,114 @@
1
1
  import { c } from "../utils/react-compiler-runtime.js";
2
2
  import { isResponsiveValue } from "../hooks/useResponsiveValue.js";
3
- import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
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(26);
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] = rest;
20
- $[3] = square;
21
- $[4] = style;
22
- $[5] = t1;
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
- rest = $[2];
26
- square = $[3];
27
- style = $[4];
28
- t1 = $[5];
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 ($[6] !== size) {
41
+ if ($[9] !== size) {
33
42
  t2 = isResponsiveValue(size);
34
- $[6] = size;
35
- $[7] = t2;
36
- } else t2 = $[7];
43
+ $[9] = size;
44
+ $[10] = t2;
45
+ } else t2 = $[10];
37
46
  const responsive = t2;
38
47
  let cssSizeVars;
39
- if ($[8] !== responsive || $[9] !== size) {
48
+ if ($[11] !== responsive || $[12] !== size) {
40
49
  cssSizeVars = {};
41
50
  if (responsive) {
42
51
  let t3;
43
- if ($[11] !== size) {
52
+ if ($[14] !== size) {
44
53
  t3 = Object.entries(size);
45
- $[11] = size;
46
- $[12] = t3;
47
- } else t3 = $[12];
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
- $[8] = responsive;
51
- $[9] = size;
52
- $[10] = cssSizeVars;
53
- } else cssSizeVars = $[10];
54
- let t3;
55
- if ($[13] !== className) {
56
- t3 = clsx(className, SkeletonAvatar_module_css_default.SkeletonAvatar);
57
- $[13] = className;
58
- $[14] = t3;
59
- } else t3 = $[14];
60
- const t4 = responsive ? "" : void 0;
61
- const t5 = square ? "" : void 0;
62
- let t6;
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 ($[17] !== cssSizeVars || $[18] !== t6) {
70
- t7 = {
71
- ...t6,
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] !== rest || $[21] !== t3 || $[22] !== t4 || $[23] !== t5 || $[24] !== t7) {
80
- t8 = /* @__PURE__ */ jsx(SkeletonBox, {
81
- className: t3,
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": t4,
85
- "data-square": t5,
86
- style: t7
99
+ "data-responsive": t5,
100
+ "data-square": t6,
101
+ style: t8
87
102
  });
88
- $[20] = rest;
89
- $[21] = t3;
90
- $[22] = t4;
91
- $[23] = t5;
92
- $[24] = t7;
93
- $[25] = t8;
94
- } else t8 = $[25];
95
- return t8;
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 };
@@ -17,6 +17,9 @@ declare function SkeletonText({
17
17
  size,
18
18
  className,
19
19
  style,
20
+ height,
21
+ width,
22
+ ref,
20
23
  ...rest
21
24
  }: SkeletonTextProps): React.JSX.Element;
22
25
  //#endregion
@@ -1,116 +1,132 @@
1
1
  import { c } from "../utils/react-compiler-runtime.js";
2
- import { SkeletonBox } from "../Skeleton/SkeletonBox.js";
2
+ import skeleton_module_css_default from "../Skeleton/skeleton.module.css.js";
3
3
  import SkeletonText_module_css_default from "./SkeletonText.module.css.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { clsx } from "clsx";
6
6
  //#region src/SkeletonText/SkeletonText.tsx
7
7
  function SkeletonText(t0) {
8
- const $ = c(32);
8
+ const $ = c(37);
9
9
  let className;
10
+ let height;
10
11
  let maxWidth;
12
+ let ref;
11
13
  let rest;
12
14
  let style;
13
15
  let t1;
14
16
  let t2;
17
+ let width;
15
18
  if ($[0] !== t0) {
16
- ({lines: t1, maxWidth, size: t2, className, style, ...rest} = t0);
19
+ ({lines: t1, maxWidth, size: t2, className, style, height, width, ref, ...rest} = t0);
17
20
  $[0] = t0;
18
21
  $[1] = className;
19
- $[2] = maxWidth;
20
- $[3] = rest;
21
- $[4] = style;
22
- $[5] = t1;
23
- $[6] = t2;
22
+ $[2] = height;
23
+ $[3] = maxWidth;
24
+ $[4] = ref;
25
+ $[5] = rest;
26
+ $[6] = style;
27
+ $[7] = t1;
28
+ $[8] = t2;
29
+ $[9] = width;
24
30
  } else {
25
31
  className = $[1];
26
- maxWidth = $[2];
27
- rest = $[3];
28
- style = $[4];
29
- t1 = $[5];
30
- t2 = $[6];
32
+ height = $[2];
33
+ maxWidth = $[3];
34
+ ref = $[4];
35
+ rest = $[5];
36
+ style = $[6];
37
+ t1 = $[7];
38
+ t2 = $[8];
39
+ width = $[9];
31
40
  }
32
41
  const lines = t1 === void 0 ? 1 : t1;
33
42
  const size = t2 === void 0 ? "bodyMedium" : t2;
34
43
  if (lines < 2) {
35
- let t3;
36
- if ($[7] !== className) {
37
- t3 = clsx(className, SkeletonText_module_css_default.SkeletonText);
38
- $[7] = className;
39
- $[8] = t3;
40
- } else t3 = $[8];
44
+ const t3 = ref;
41
45
  let t4;
42
- if ($[9] !== maxWidth || $[10] !== style) {
43
- t4 = {
46
+ if ($[10] !== className) {
47
+ t4 = clsx(className, SkeletonText_module_css_default.SkeletonText, skeleton_module_css_default.skeleton);
48
+ $[10] = className;
49
+ $[11] = t4;
50
+ } else t4 = $[11];
51
+ const t5 = width !== null && width !== void 0 ? width : "100%";
52
+ let t6;
53
+ if ($[12] !== height || $[13] !== maxWidth || $[14] !== style || $[15] !== t5) {
54
+ t6 = {
55
+ height,
56
+ width: t5,
44
57
  ...style,
45
58
  maxWidth
46
59
  };
47
- $[9] = maxWidth;
48
- $[10] = style;
49
- $[11] = t4;
50
- } else t4 = $[11];
51
- let t5;
52
- if ($[12] !== rest || $[13] !== size || $[14] !== t3 || $[15] !== t4) {
53
- t5 = /* @__PURE__ */ jsx(SkeletonBox, {
60
+ $[12] = height;
61
+ $[13] = maxWidth;
62
+ $[14] = style;
63
+ $[15] = t5;
64
+ $[16] = t6;
65
+ } else t6 = $[16];
66
+ let t7;
67
+ if ($[17] !== rest || $[18] !== size || $[19] !== t3 || $[20] !== t4 || $[21] !== t6) {
68
+ t7 = /* @__PURE__ */ jsx("div", {
69
+ ref: t3,
54
70
  "data-text-skeleton-size": size,
55
- width: "100%",
56
- className: t3,
57
- style: t4,
71
+ className: t4,
72
+ style: t6,
58
73
  ...rest,
59
74
  "data-component": "SkeletonText"
60
75
  });
61
- $[12] = rest;
62
- $[13] = size;
63
- $[14] = t3;
64
- $[15] = t4;
65
- $[16] = t5;
66
- } else t5 = $[16];
67
- return t5;
76
+ $[17] = rest;
77
+ $[18] = size;
78
+ $[19] = t3;
79
+ $[20] = t4;
80
+ $[21] = t6;
81
+ $[22] = t7;
82
+ } else t7 = $[22];
83
+ return t7;
68
84
  }
69
85
  let t3;
70
- if ($[17] !== maxWidth || $[18] !== style) {
86
+ if ($[23] !== maxWidth || $[24] !== style) {
71
87
  t3 = {
72
88
  ...style,
73
89
  maxWidth
74
90
  };
75
- $[17] = maxWidth;
76
- $[18] = style;
77
- $[19] = t3;
78
- } else t3 = $[19];
91
+ $[23] = maxWidth;
92
+ $[24] = style;
93
+ $[25] = t3;
94
+ } else t3 = $[25];
79
95
  let t4;
80
- if ($[20] !== className || $[21] !== lines || $[22] !== rest || $[23] !== size) {
81
- let t5;
82
- if ($[25] !== className || $[26] !== rest || $[27] !== size) {
83
- t5 = (_, index) => /* @__PURE__ */ jsx(SkeletonBox, {
84
- "data-component": "SkeletonText",
85
- "data-in-multiline": "true",
86
- "data-text-skeleton-size": size,
87
- className: clsx(className, SkeletonText_module_css_default.SkeletonText),
88
- ...rest
89
- }, index);
90
- $[25] = className;
91
- $[26] = rest;
92
- $[27] = size;
93
- $[28] = t5;
94
- } else t5 = $[28];
95
- t4 = Array.from({ length: lines }, t5);
96
- $[20] = className;
97
- $[21] = lines;
98
- $[22] = rest;
99
- $[23] = size;
100
- $[24] = t4;
101
- } else t4 = $[24];
96
+ if ($[26] !== className || $[27] !== height || $[28] !== lines || $[29] !== ref || $[30] !== rest || $[31] !== size || $[32] !== width) {
97
+ t4 = Array.from({ length: lines }, (_, index) => /* @__PURE__ */ jsx("div", {
98
+ ref,
99
+ "data-component": "SkeletonText",
100
+ "data-in-multiline": "true",
101
+ "data-text-skeleton-size": size,
102
+ className: clsx(className, SkeletonText_module_css_default.SkeletonText, skeleton_module_css_default.skeleton),
103
+ style: {
104
+ height,
105
+ width
106
+ },
107
+ ...rest
108
+ }, index));
109
+ $[26] = className;
110
+ $[27] = height;
111
+ $[28] = lines;
112
+ $[29] = ref;
113
+ $[30] = rest;
114
+ $[31] = size;
115
+ $[32] = width;
116
+ $[33] = t4;
117
+ } else t4 = $[33];
102
118
  let t5;
103
- if ($[29] !== t3 || $[30] !== t4) {
119
+ if ($[34] !== t3 || $[35] !== t4) {
104
120
  t5 = /* @__PURE__ */ jsx("div", {
105
121
  "data-component": "multilineContainer",
106
122
  className: SkeletonText_module_css_default.SkeletonTextWrapper,
107
123
  style: t3,
108
124
  children: t4
109
125
  });
110
- $[29] = t3;
111
- $[30] = t4;
112
- $[31] = t5;
113
- } else t5 = $[31];
126
+ $[34] = t3;
127
+ $[35] = t4;
128
+ $[36] = t5;
129
+ } else t5 = $[36];
114
130
  return t5;
115
131
  }
116
132
  //#endregion
@@ -12,6 +12,8 @@
12
12
  * callback. Each callback has the chance to call `.preventDefault()` on the
13
13
  * event to prevent further callbacks.
14
14
  *
15
+ * Callback changes do not re-register the document listener.
16
+ *
15
17
  * @param callback {(e: KeyboardEvent) => void} The callback that gets executed
16
18
  * when the Escape key is pressed. The KeyboardEvent generated by the Escape
17
19
  * keypress is passed as the only argument.
@@ -1,4 +1,5 @@
1
- import { useCallback, useEffect, useMemo } from "react";
1
+ import { useEffectCallback } from "../internal/hooks/useEffectCallback.js";
2
+ import { useCallback, useEffect, useState } from "react";
2
3
  //#region src/hooks/useOnEscapePress.ts
3
4
  /**
4
5
  * Calls all handlers in reverse order
@@ -31,6 +32,8 @@ let handlerId = 0;
31
32
  * callback. Each callback has the chance to call `.preventDefault()` on the
32
33
  * event to prevent further callbacks.
33
34
  *
35
+ * Callback changes do not re-register the document listener.
36
+ *
34
37
  * @param callback {(e: KeyboardEvent) => void} The callback that gets executed
35
38
  * when the Escape key is pressed. The KeyboardEvent generated by the Escape
36
39
  * keypress is passed as the only argument.
@@ -41,10 +44,14 @@ let handlerId = 0;
41
44
  */
42
45
  const useOnEscapePress = (onEscape, callbackDependencies = [onEscape]) => {
43
46
  const escapeCallback = useCallback(onEscape, callbackDependencies);
44
- const handler = useCallback((event) => {
47
+ const handler = useEffectCallback((event) => {
45
48
  if (event.key === "Escape") escapeCallback(event);
46
- }, [escapeCallback]);
47
- const id = useMemo(() => handlerId++, []);
49
+ });
50
+ const [id] = useState(() => {
51
+ const id = handlerId;
52
+ handlerId += 1;
53
+ return id;
54
+ });
48
55
  useEffect(() => {
49
56
  if (Object.keys(registry).length === 0) document.addEventListener("keydown", handleEscape);
50
57
  register(id, handler);
@@ -1,4 +1,5 @@
1
1
  import { c } from "../utils/react-compiler-runtime.js";
2
+ import { useEffectCallback } from "../internal/hooks/useEffectCallback.js";
2
3
  import { useEffect, useState } from "react";
3
4
  //#region src/hooks/useOnOutsideClick.tsx
4
5
  const stopPropagation = true;
@@ -40,7 +41,7 @@ const useOnOutsideClick = (t0) => {
40
41
  $[2] = onClickOutside;
41
42
  $[3] = t1;
42
43
  } else t1 = $[3];
43
- const handler = t1;
44
+ const handler = useEffectCallback(t1);
44
45
  let t2;
45
46
  let t3;
46
47
  if ($[4] !== handler || $[5] !== id_0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@primer/react",
3
3
  "type": "module",
4
- "version": "38.46.0-rc.7155241f3",
4
+ "version": "38.46.0-rc.a85a32423",
5
5
  "description": "An implementation of GitHub's Primer Design System using React",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -1,2 +0,0 @@
1
- @keyframes prc-Skeleton-shimmer---lzU{0%{mask-position:200%}to{mask-position:0}}.prc-Skeleton-SkeletonBox-e93nW{animation:prc-Skeleton-shimmer---lzU;background-color:var(--skeletonLoader-bgColor,#818b981a);border-radius:var(--borderRadius-small,.1875rem);display:block;height:1rem}@media (prefers-reduced-motion:no-preference){.prc-Skeleton-SkeletonBox-e93nW{animation:prc-Skeleton-shimmer---lzU;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-SkeletonBox-e93nW{outline:1px solid transparent;outline-offset:-1px}}
2
- /*# sourceMappingURL=SkeletonBox-e078be7c.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/Skeleton/SkeletonBox.module.css.js"],"names":[],"mappings":"AAAA,sCACE,GACE,kBACF,CAEA,GACE,eACF,CACF,CAEA,gCAKE,oCAAkB,CAFlB,wDAA+C,CAC/C,gDAAwC,CAHxC,aAAc,CACd,WAiBF,CAZE,8CAPF,gCAUI,oCAAkB,CAClB,8DAA6C,CAC7C,kCAAmC,CAJnC,8DAAoE,CACpE,cAUJ,CANE,CAEA,8BAfF,gCAgBI,6BAA8B,CAC9B,mBAEJ,CADE","file":"SkeletonBox-e078be7c.css","sourcesContent":["@keyframes shimmer {\n from {\n mask-position: 200%;\n }\n\n to {\n mask-position: 0%;\n }\n}\n\n.SkeletonBox {\n display: block;\n height: 1rem;\n background-color: var(--skeletonLoader-bgColor);\n border-radius: var(--borderRadius-small);\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"]}