@primer/react 38.46.0-rc.7155241f3 → 38.46.0-rc.a1728d414
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 +16 -0
- package/dist/ActionList/LinkItem.js +97 -30
- package/dist/Breadcrumbs/{Breadcrumbs-16d81430.css → Breadcrumbs-6c9aadcf.css} +2 -2
- package/dist/Breadcrumbs/Breadcrumbs-6c9aadcf.css.map +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.js +403 -391
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +1 -1
- package/dist/Card/Card-0e84ee3c.css +2 -0
- package/dist/Card/Card-0e84ee3c.css.map +1 -0
- package/dist/Card/Card.d.ts +13 -3
- package/dist/Card/Card.js +286 -161
- package/dist/Card/Card.module.css.js +2 -1
- package/dist/Card/index.d.ts +13 -3
- package/dist/Card/index.js +3 -1
- 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/TooltipV2/Tooltip.js +55 -51
- package/dist/experimental/index.d.ts +2 -2
- package/dist/hooks/useOnEscapePress.d.ts +2 -0
- package/dist/hooks/useOnEscapePress.js +11 -4
- package/dist/hooks/useOnOutsideClick.js +2 -1
- package/dist/index.js +1 -1
- package/generated/components.json +82 -3
- package/package.json +8 -8
- package/dist/Breadcrumbs/Breadcrumbs-16d81430.css.map +0 -1
- package/dist/Card/Card-59b77d05.css +0 -2
- package/dist/Card/Card-59b77d05.css.map +0 -1
- package/dist/Skeleton/SkeletonBox-e078be7c.css +0 -2
- package/dist/Skeleton/SkeletonBox-e078be7c.css.map +0 -1
|
@@ -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 };
|
|
@@ -1,116 +1,132 @@
|
|
|
1
1
|
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
-
import
|
|
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(
|
|
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] =
|
|
20
|
-
$[3] =
|
|
21
|
-
$[4] =
|
|
22
|
-
$[5] =
|
|
23
|
-
$[6] =
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
48
|
-
$[
|
|
49
|
-
$[
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
style: t4,
|
|
71
|
+
className: t4,
|
|
72
|
+
style: t6,
|
|
58
73
|
...rest,
|
|
59
74
|
"data-component": "SkeletonText"
|
|
60
75
|
});
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
|
|
67
|
-
|
|
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 ($[
|
|
86
|
+
if ($[23] !== maxWidth || $[24] !== style) {
|
|
71
87
|
t3 = {
|
|
72
88
|
...style,
|
|
73
89
|
maxWidth
|
|
74
90
|
};
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
78
|
-
} else t3 = $[
|
|
91
|
+
$[23] = maxWidth;
|
|
92
|
+
$[24] = style;
|
|
93
|
+
$[25] = t3;
|
|
94
|
+
} else t3 = $[25];
|
|
79
95
|
let t4;
|
|
80
|
-
if ($[
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
} else t4 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
} else t5 = $[
|
|
126
|
+
$[34] = t3;
|
|
127
|
+
$[35] = t4;
|
|
128
|
+
$[36] = t5;
|
|
129
|
+
} else t5 = $[36];
|
|
114
130
|
return t5;
|
|
115
131
|
}
|
|
116
132
|
//#endregion
|
|
@@ -82,7 +82,7 @@ const isInteractive = (element) => {
|
|
|
82
82
|
};
|
|
83
83
|
const emptyKeybindingHints = [];
|
|
84
84
|
const Tooltip = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
85
|
-
const $ = c(
|
|
85
|
+
const $ = c(60);
|
|
86
86
|
let children;
|
|
87
87
|
let className;
|
|
88
88
|
let id;
|
|
@@ -240,33 +240,37 @@ const Tooltip = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
240
240
|
} else t10 = $[26];
|
|
241
241
|
useEffect(t9, t10);
|
|
242
242
|
let t11;
|
|
243
|
-
if ($[27] !==
|
|
243
|
+
if ($[27] !== _privateDisableTooltip || $[28] !== closeTooltip || $[29] !== isPopoverOpen) {
|
|
244
244
|
t11 = (event) => {
|
|
245
245
|
if (isPopoverOpen) {
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
if (!_privateDisableTooltip) {
|
|
247
|
+
event.stopImmediatePropagation();
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
}
|
|
248
250
|
closeTooltip();
|
|
249
251
|
}
|
|
250
252
|
};
|
|
251
|
-
$[27] =
|
|
252
|
-
$[28] =
|
|
253
|
-
$[29] =
|
|
254
|
-
|
|
253
|
+
$[27] = _privateDisableTooltip;
|
|
254
|
+
$[28] = closeTooltip;
|
|
255
|
+
$[29] = isPopoverOpen;
|
|
256
|
+
$[30] = t11;
|
|
257
|
+
} else t11 = $[30];
|
|
255
258
|
let t12;
|
|
256
|
-
if ($[
|
|
257
|
-
t12 = [isPopoverOpen];
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
|
|
259
|
+
if ($[31] !== _privateDisableTooltip || $[32] !== isPopoverOpen) {
|
|
260
|
+
t12 = [isPopoverOpen, _privateDisableTooltip];
|
|
261
|
+
$[31] = _privateDisableTooltip;
|
|
262
|
+
$[32] = isPopoverOpen;
|
|
263
|
+
$[33] = t12;
|
|
264
|
+
} else t12 = $[33];
|
|
261
265
|
useOnEscapePress(t11, t12);
|
|
262
266
|
const platform = usePlatform();
|
|
263
267
|
const hasAriaLabel_0 = "aria-label" in rest;
|
|
264
268
|
let t13;
|
|
265
|
-
if ($[
|
|
269
|
+
if ($[34] !== keybindingHint) {
|
|
266
270
|
t13 = Array.isArray(keybindingHint) ? keybindingHint : [keybindingHint];
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
269
|
-
} else t13 = $[
|
|
271
|
+
$[34] = keybindingHint;
|
|
272
|
+
$[35] = t13;
|
|
273
|
+
} else t13 = $[35];
|
|
270
274
|
const keybindingHints = t13;
|
|
271
275
|
if (isFragmentTrigger) return child;
|
|
272
276
|
const t14 = TooltipContext;
|
|
@@ -313,15 +317,15 @@ const Tooltip = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
313
317
|
}
|
|
314
318
|
});
|
|
315
319
|
let t17;
|
|
316
|
-
if ($[
|
|
320
|
+
if ($[36] !== className) {
|
|
317
321
|
t17 = clsx(className, Tooltip_module_css_default.Tooltip);
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
} else t17 = $[
|
|
322
|
+
$[36] = className;
|
|
323
|
+
$[37] = t17;
|
|
324
|
+
} else t17 = $[37];
|
|
321
325
|
const t18 = type === "description" ? "tooltip" : void 0;
|
|
322
326
|
const t19 = hasAriaLabel_0 || keybindingHints.length === 0 ? tooltipId : void 0;
|
|
323
327
|
let t20;
|
|
324
|
-
if ($[
|
|
328
|
+
if ($[38] !== hasAriaLabel_0 || $[39] !== keybindingHints || $[40] !== platform || $[41] !== text || $[42] !== tooltipId) {
|
|
325
329
|
t20 = keybindingHints.length > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
|
|
326
330
|
id: hasAriaLabel_0 ? void 0 : tooltipId,
|
|
327
331
|
children: [text, /* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
@@ -335,15 +339,15 @@ const Tooltip = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
335
339
|
"data-component": "Tooltip.KeybindingHintContainer",
|
|
336
340
|
children: keybindingHints.map(_temp4)
|
|
337
341
|
})] }) : text;
|
|
338
|
-
$[
|
|
339
|
-
$[
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
} else t20 = $[
|
|
342
|
+
$[38] = hasAriaLabel_0;
|
|
343
|
+
$[39] = keybindingHints;
|
|
344
|
+
$[40] = platform;
|
|
345
|
+
$[41] = text;
|
|
346
|
+
$[42] = tooltipId;
|
|
347
|
+
$[43] = t20;
|
|
348
|
+
} else t20 = $[43];
|
|
345
349
|
let t21;
|
|
346
|
-
if ($[
|
|
350
|
+
if ($[44] !== calculatedDirection || $[45] !== closeTooltip || $[46] !== openTooltip || $[47] !== rest || $[48] !== t17 || $[49] !== t18 || $[50] !== t19 || $[51] !== t20) {
|
|
347
351
|
t21 = /* @__PURE__ */ jsx("span", {
|
|
348
352
|
className: t17,
|
|
349
353
|
ref: tooltipElRef,
|
|
@@ -357,34 +361,34 @@ const Tooltip = /*#__PURE__*/ React.forwardRef((t0, forwardedRef) => {
|
|
|
357
361
|
id: t19,
|
|
358
362
|
children: t20
|
|
359
363
|
});
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
} else t21 = $[
|
|
364
|
+
$[44] = calculatedDirection;
|
|
365
|
+
$[45] = closeTooltip;
|
|
366
|
+
$[46] = openTooltip;
|
|
367
|
+
$[47] = rest;
|
|
368
|
+
$[48] = t17;
|
|
369
|
+
$[49] = t18;
|
|
370
|
+
$[50] = t19;
|
|
371
|
+
$[51] = t20;
|
|
372
|
+
$[52] = t21;
|
|
373
|
+
} else t21 = $[52];
|
|
370
374
|
let t22;
|
|
371
|
-
if ($[
|
|
375
|
+
if ($[53] !== t15 || $[54] !== t21) {
|
|
372
376
|
t22 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t15, t21] });
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
} else t22 = $[
|
|
377
|
+
$[53] = t15;
|
|
378
|
+
$[54] = t21;
|
|
379
|
+
$[55] = t22;
|
|
380
|
+
} else t22 = $[55];
|
|
377
381
|
let t23;
|
|
378
|
-
if ($[
|
|
382
|
+
if ($[56] !== t14.Provider || $[57] !== t22 || $[58] !== value) {
|
|
379
383
|
t23 = /* @__PURE__ */ jsx(t14.Provider, {
|
|
380
384
|
value,
|
|
381
385
|
children: t22
|
|
382
386
|
});
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
} else t23 = $[
|
|
387
|
+
$[56] = t14.Provider;
|
|
388
|
+
$[57] = t22;
|
|
389
|
+
$[58] = value;
|
|
390
|
+
$[59] = t23;
|
|
391
|
+
} else t23 = $[59];
|
|
388
392
|
return t23;
|
|
389
393
|
});
|
|
390
394
|
Tooltip.__SLOT__ = Symbol("Tooltip");
|
|
@@ -25,7 +25,7 @@ import { ActionsProps, PageHeader, PageHeaderProps, TitleProps } from "../PageHe
|
|
|
25
25
|
import { SkeletonBox, SkeletonBoxProps } from "../Skeleton/SkeletonBox.js";
|
|
26
26
|
import { BlankslateProps } from "../Blankslate/Blankslate.js";
|
|
27
27
|
import { Blankslate as BlankslateContainer } from "../Blankslate/index.js";
|
|
28
|
-
import { CardActionProps as ActionProps, CardDescriptionProps as DescriptionProps, CardHeadingProps as HeadingProps, CardIconProps as IconProps, CardImageProps as ImageProps, CardMetadataProps as MetadataProps, CardProps } from "../Card/Card.js";
|
|
28
|
+
import { CardActionProps as ActionProps, CardButtonProps as ButtonProps, CardDescriptionProps as DescriptionProps, CardHeadingProps as HeadingProps, CardIconProps as IconProps, CardImageProps as ImageProps, CardLinkProps as LinkProps, CardMetadataProps as MetadataProps, CardProps } from "../Card/Card.js";
|
|
29
29
|
import { Card } from "../Card/index.js";
|
|
30
30
|
import { TableBulkActionsProps } from "../DataTable/TableBulkActions.js";
|
|
31
31
|
import { DataTable, DataTableBulkActionsContext, DataTableProps } from "../DataTable/DataTable.js";
|
|
@@ -52,4 +52,4 @@ import { useTabPanel } from "./Tabs/useTabPanel.js";
|
|
|
52
52
|
import { TopicTagProps } from "../TopicTag/TopicTag.js";
|
|
53
53
|
import { TopicTagGroupProps } from "../TopicTag/TopicTagGroup.js";
|
|
54
54
|
import { TopicTag } from "../TopicTag/index.js";
|
|
55
|
-
export { ActionBar, type ActionBarButtonProps, type ActionBarMenuItemProps, type ActionBarMenuProps, type ActionBarProps, Announce, type AnnounceProps, AriaAlert, type AriaAlertProps, AriaStatus, type AriaStatusProps, BlankslateContainer as Blankslate, type BlankslateProps, ButtonBase, type ButtonBaseProps, Card, type ActionProps as CardActionProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, type IconProps as CardIconProps, type ImageProps as CardImageProps, type MetadataProps as CardMetadataProps, type CardProps, type CellAlignment, type Column, type ColumnWidth, DataTable, type DataTableBulkActionsContext, type DataTableData, type DataTableProps, type DataTableRowGroup, type DataTableRowId, DefaultFeatureFlags, Dialog, type DialogButtonProps, type DialogHeaderProps, type DialogHeight, type DialogProps, type DialogWidth, FeatureFlags, type FeatureFlagsProps, FilteredActionList, type FilteredActionListInputProps, FilteredActionListLoadingTypes, type FilteredActionListProps, Hidden, type HiddenProps, InlineMessage, type InlineMessageProps, IssueLabel, type IssueLabelProps, KeybindingHint, type KeybindingHintProps, NavList, type NavListDividerProps, type NavListGroupProps, type NavListItemProps, type NavListLeadingVisualProps, type NavListProps, type NavListSubNavProps, type NavListTrailingVisualProps, type ObjectPaths, PageHeader, type ActionsProps as PageHeaderActionsProps, type PageHeaderProps, type TitleProps as PageHeaderTitleProps, ScrollableRegion, type ScrollableRegionProps, SelectPanel, type SelectPanelMessageProps, type SelectPanelProps, type SelectPanelSecondaryActionProps, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBox, type SkeletonBoxProps, SkeletonText, type SkeletonTextProps, SlotConfig, Stack, type StackItemProps, type StackProps, type TabListProps, type TabPanelProps, type TabProps, Table, type TableActionsProps, type TableBodyProps, type TableBulkActionsProps, type TableCellProps, type TableContainerProps, type TableGroupProps, type TableHeadProps, type TableHeaderProps, type TableProps, type TableRowProps, type TableRowSelectionProps, type TableSelectionHeaderProps, type TableSubtitleProps, type TableTitleProps, Tabs, type TabsProps, type TitleProps, Tooltip, type TooltipProps, TopicTag, type TopicTagGroupProps, type TopicTagProps, _default as UnderlinePanels, type PanelProps as UnderlinePanelsPanelProps, type UnderlinePanelsProps, type TabProps$1 as UnderlinePanelsTabProps, type UniqueRow, createColumnHelper, getAccessibleKeybindingHintString, useFeatureFlag, useOverflow, useSlots, useTab, useTabList, useTabPanel };
|
|
55
|
+
export { ActionBar, type ActionBarButtonProps, type ActionBarMenuItemProps, type ActionBarMenuProps, type ActionBarProps, Announce, type AnnounceProps, AriaAlert, type AriaAlertProps, AriaStatus, type AriaStatusProps, BlankslateContainer as Blankslate, type BlankslateProps, ButtonBase, type ButtonBaseProps, Card, type ActionProps as CardActionProps, type ButtonProps as CardButtonProps, type DescriptionProps as CardDescriptionProps, type HeadingProps as CardHeadingProps, type IconProps as CardIconProps, type ImageProps as CardImageProps, type LinkProps as CardLinkProps, type MetadataProps as CardMetadataProps, type CardProps, type CellAlignment, type Column, type ColumnWidth, DataTable, type DataTableBulkActionsContext, type DataTableData, type DataTableProps, type DataTableRowGroup, type DataTableRowId, DefaultFeatureFlags, Dialog, type DialogButtonProps, type DialogHeaderProps, type DialogHeight, type DialogProps, type DialogWidth, FeatureFlags, type FeatureFlagsProps, FilteredActionList, type FilteredActionListInputProps, FilteredActionListLoadingTypes, type FilteredActionListProps, Hidden, type HiddenProps, InlineMessage, type InlineMessageProps, IssueLabel, type IssueLabelProps, KeybindingHint, type KeybindingHintProps, NavList, type NavListDividerProps, type NavListGroupProps, type NavListItemProps, type NavListLeadingVisualProps, type NavListProps, type NavListSubNavProps, type NavListTrailingVisualProps, type ObjectPaths, PageHeader, type ActionsProps as PageHeaderActionsProps, type PageHeaderProps, type TitleProps as PageHeaderTitleProps, ScrollableRegion, type ScrollableRegionProps, SelectPanel, type SelectPanelMessageProps, type SelectPanelProps, type SelectPanelSecondaryActionProps, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBox, type SkeletonBoxProps, SkeletonText, type SkeletonTextProps, SlotConfig, Stack, type StackItemProps, type StackProps, type TabListProps, type TabPanelProps, type TabProps, Table, type TableActionsProps, type TableBodyProps, type TableBulkActionsProps, type TableCellProps, type TableContainerProps, type TableGroupProps, type TableHeadProps, type TableHeaderProps, type TableProps, type TableRowProps, type TableRowSelectionProps, type TableSelectionHeaderProps, type TableSubtitleProps, type TableTitleProps, Tabs, type TabsProps, type TitleProps, Tooltip, type TooltipProps, TopicTag, type TopicTagGroupProps, type TopicTagProps, _default as UnderlinePanels, type PanelProps as UnderlinePanelsPanelProps, type UnderlinePanelsProps, type TabProps$1 as UnderlinePanelsTabProps, type UniqueRow, createColumnHelper, getAccessibleKeybindingHintString, useFeatureFlag, useOverflow, useSlots, useTab, useTabList, useTabPanel };
|
|
@@ -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.
|