@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/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 = (r) => {
65
- var d = r, {
66
- iconName: t,
67
- iconSize: n = "md",
68
- className: s
69
- } = d, a = F(d, [
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 c = `pds-icon pds-icon--${n} pds-icon--${t}`, l = `0 0 ${j2[t].width} 512`, o = {
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: l,
89
- height: o[n],
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: [c, s != null ? s : ""].join(" ").trim().replace(/\s+/g, " "),
95
- style: { flexShrink: 0, overflow: "visible" }
96
- }, a),
97
- /* @__PURE__ */ e.createElement("path", { d: j2[t].path, fill: "currentColor" })
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 ("currentScript" in document)
3755
+ if (document.currentScript && document.currentScript.tagName === "SCRIPT")
3747
3756
  return (
3748
3757
  /** @type {any} */
3749
3758
  document.currentScript