@pantheon-systems/pds-toolkit-react 1.0.0-dev.254 → 1.0.0-dev.256
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/components/icons/Icon/Icon.d.ts +12 -2
- package/_dist/components/navigation/DashboardNav/dashboard-nav-utilities.d.ts +0 -1
- package/_dist/components/navigation/navigation-types.d.ts +0 -1
- package/_dist/components/navigation/navigation-utilities.d.ts +0 -1
- package/_dist/components/notifications/Toaster/useToast.d.ts +1 -5
- package/_dist/css/pds-core.css +1 -1
- package/_dist/index.js +23 -14
- package/_dist/index.js.map +1 -1
- package/_dist/libs/components/sb-docs-toc-layout.d.ts +4 -0
- package/_dist/libs/types/custom-types.d.ts +1 -0
- package/package.json +3 -2
package/_dist/index.js
CHANGED
|
@@ -61,17 +61,21 @@ const c2 = () => Math.random().toString(32).substring(2, 13), xt = (t, n) => {
|
|
|
61
61
|
a && (n[a] ? n[a].push(s) : n[a] = [s]);
|
|
62
62
|
}
|
|
63
63
|
}), n;
|
|
64
|
-
}, z = (t) => t.join(" ").trim().replace(/\s+/g, " "), g1 = (t) => t ? t.startsWith("data:") ? /^data:image\/(png|jpeg|jpg|gif|bmp|webp);base64,[A-Za-z0-9+/]+=*$/.test(t) : !0 : !1, j = (
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
}, z = (t) => t.join(" ").trim().replace(/\s+/g, " "), g1 = (t) => t ? t.startsWith("data:") ? /^data:image\/(png|jpeg|jpg|gif|bmp|webp);base64,[A-Za-z0-9+/]+=*$/.test(t) : !0 : !1, j = (c) => {
|
|
65
|
+
var l = c, {
|
|
66
|
+
display: t = "inline-block",
|
|
67
|
+
iconName: n,
|
|
68
|
+
iconSize: s = "md",
|
|
69
|
+
verticalAlign: a = "middle",
|
|
70
|
+
className: r
|
|
71
|
+
} = l, d = F(l, [
|
|
72
|
+
"display",
|
|
70
73
|
"iconName",
|
|
71
74
|
"iconSize",
|
|
75
|
+
"verticalAlign",
|
|
72
76
|
"className"
|
|
73
77
|
]);
|
|
74
|
-
const
|
|
78
|
+
const o = `pds-icon pds-icon--${s} pds-icon--${n}`, p = `0 0 ${j2[n].width} 512`, g = {
|
|
75
79
|
sm: "0.8rem",
|
|
76
80
|
md: "1rem",
|
|
77
81
|
lg: "1.2rem",
|
|
@@ -85,16 +89,21 @@ const c2 = () => Math.random().toString(32).substring(2, 13), xt = (t, n) => {
|
|
|
85
89
|
y({
|
|
86
90
|
xmlns: "http://www.w3.org/2000/svg",
|
|
87
91
|
role: "img",
|
|
88
|
-
viewBox:
|
|
89
|
-
height:
|
|
92
|
+
viewBox: p,
|
|
93
|
+
height: g[s],
|
|
90
94
|
fill: "none",
|
|
91
95
|
"aria-hidden": "true",
|
|
92
96
|
preserveAspectRatio: "xMidYMid meet",
|
|
93
97
|
focusable: "false",
|
|
94
|
-
className: [
|
|
95
|
-
style: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
className: z([o, r]),
|
|
99
|
+
style: {
|
|
100
|
+
display: t,
|
|
101
|
+
flexShrink: 0,
|
|
102
|
+
overflow: "visible",
|
|
103
|
+
verticalAlign: a
|
|
104
|
+
}
|
|
105
|
+
}, d),
|
|
106
|
+
/* @__PURE__ */ e.createElement("path", { d: j2[n].path, fill: "currentColor" })
|
|
98
107
|
);
|
|
99
108
|
}, j2 = {
|
|
100
109
|
angleDown: {
|
|
@@ -3743,7 +3752,7 @@ var Ot = { exports: {} };
|
|
|
3743
3752
|
currentScript: function() {
|
|
3744
3753
|
if (typeof document == "undefined")
|
|
3745
3754
|
return null;
|
|
3746
|
-
if (
|
|
3755
|
+
if (document.currentScript && document.currentScript.tagName === "SCRIPT")
|
|
3747
3756
|
return (
|
|
3748
3757
|
/** @type {any} */
|
|
3749
3758
|
document.currentScript
|