@hortiview/shared-components 2.26.0 → 2.26.2

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.
Files changed (99) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/{AlertBanner-BFzaGOer.js → AlertBanner-C9TvBTkH.js} +3 -3
  3. package/dist/{GenericCard-grpa3KJR.js → GenericCard-2v0lBsVu.js} +3 -3
  4. package/dist/{ListAreaService-B0x97Jin.js → ListAreaService-PaN1DrXf.js} +5 -5
  5. package/dist/assets/BlockView.css +1 -1
  6. package/dist/assets/FormSelect.css +1 -1
  7. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  8. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  9. package/dist/components/AllowedButton/AllowedButton.js +1 -1
  10. package/dist/components/AllowedIconButton/AllowedIconButton.js +1 -1
  11. package/dist/components/BaseView/BaseView.js +4 -4
  12. package/dist/components/BasicHeading/BasicHeading.js +4 -4
  13. package/dist/components/BlockView/BlockView.d.ts +8 -2
  14. package/dist/components/BlockView/BlockView.js +71 -68
  15. package/dist/components/ButtonCard/ButtonCard.js +3 -3
  16. package/dist/components/ChipCard/ChipCard.js +10 -10
  17. package/dist/components/ConfirmationModal/ConfirmationModal.js +3 -3
  18. package/dist/components/ContextMenu/ContextMenu.js +3 -3
  19. package/dist/components/DeleteModal/DeleteModal.js +4 -4
  20. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  21. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  22. package/dist/components/EmptyView/EmptyView.js +3 -3
  23. package/dist/components/ErrorBanner/ErrorBanner.js +5 -5
  24. package/dist/components/Filter/Filter.js +6 -6
  25. package/dist/components/FloatingActionButton/FloatingActionButton.js +3 -3
  26. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  27. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +4 -4
  28. package/dist/components/FormComponents/FormNumber/CustomTextField.js +1 -1
  29. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  30. package/dist/components/FormComponents/FormSelect/FormSelect.js +104 -99
  31. package/dist/components/FormComponents/FormSelect/FormSelectService.d.ts +34 -0
  32. package/dist/components/FormComponents/FormSelect/FormSelectService.js +20 -0
  33. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  34. package/dist/components/FormComponents/FormSlider/FormSlider.js +6 -6
  35. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  36. package/dist/components/FormComponents/FormToggle/FormToggle.js +3 -3
  37. package/dist/components/GenericTable/GenericTable.js +5349 -5409
  38. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  39. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  40. package/dist/components/HashTabView/HashTabView.js +6 -6
  41. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  42. package/dist/components/Iconify/Iconify.js +1 -1
  43. package/dist/components/InfoCard/InfoCard.js +4 -4
  44. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  45. package/dist/components/ListArea/ListArea.js +5 -5
  46. package/dist/components/ListArea/ListAreaService.js +6 -6
  47. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +1 -1
  48. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +5 -5
  49. package/dist/components/Modal/Modal.js +150 -142
  50. package/dist/components/ModulePadding/ModulePadding.js +1 -1
  51. package/dist/components/OfflineView/OfflineView.js +3 -3
  52. package/dist/components/OnboardingBanner/OnboardingBanner.js +7 -7
  53. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  54. package/dist/components/SearchBar/SearchBar.js +2 -2
  55. package/dist/components/Select/Select.js +1 -1
  56. package/dist/components/Stepper/Stepper.js +1 -1
  57. package/dist/components/Stepper/components/StepperButton.js +1 -1
  58. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  59. package/dist/components/Stepper/components/StepperItem.js +2 -2
  60. package/dist/{defineProperty-B7N9EBBI.js → defineProperty-SoB5opr-.js} +51 -51
  61. package/dist/{es.string.iterator-DBx2A42F.js → es.string.iterator-BrOvr7F6.js} +78 -78
  62. package/dist/{find-eU9ab_u7.js → find-OaLSg5iu.js} +35 -35
  63. package/dist/includes-CSD_V_RY.js +112 -0
  64. package/dist/{index-Df2FYN-K.js → index-_-9ybP20.js} +76 -76
  65. package/dist/{index.es-C27R5Xae.js → index.es-0SkNh4dU.js} +2 -2
  66. package/dist/{index.es-B19PQgzU.js → index.es-B1cewJEy.js} +4 -4
  67. package/dist/{index.es-Z0aF-7Cn.js → index.es-BE1XL1dD.js} +3 -3
  68. package/dist/{index.es-BcnmoCEg.js → index.es-BSaDtduL.js} +6 -6
  69. package/dist/{index.es-Ci3O23C_.js → index.es-BVW2k-5y.js} +4 -4
  70. package/dist/index.es-BZkGOjEo.js +383 -0
  71. package/dist/{index.es-Cr1PSTyq.js → index.es-C2ejWpji.js} +3 -3
  72. package/dist/{index.es-DgncYOqO.js → index.es-C8AExypY.js} +2 -2
  73. package/dist/{index.es-BOvO8moE.js → index.es-CNrSvjAv.js} +5 -6
  74. package/dist/{index.es-l_3PNohs.js → index.es-CTKwa3Es.js} +1 -1
  75. package/dist/{index.es-BwafUoK3.js → index.es-CVPUG1pf.js} +785 -781
  76. package/dist/index.es-CpPnZRt7.js +604 -0
  77. package/dist/{index.es-DHoIQ8lu.js → index.es-CwgwR6SB.js} +1 -1
  78. package/dist/{index.es-BOG3_7IM.js → index.es-DHL1mFb3.js} +249 -317
  79. package/dist/{index.es-DHnCVuQ8.js → index.es-DPGGEmi5.js} +5 -5
  80. package/dist/{index.es-C6I3L4U4.js → index.es-DRC-9PLs.js} +43 -43
  81. package/dist/{index.es-C2IOpX7R.js → index.es-DVgCBhVx.js} +3020 -2798
  82. package/dist/{index.es-B9BUXRQn.js → index.es-DsOSfaF5.js} +39 -39
  83. package/dist/{index.es-DUrjyxNI.js → index.es-EXzC8zuP.js} +2 -2
  84. package/dist/index.es-LckFzDz-.js +1069 -0
  85. package/dist/{index.es-DdeCB7LW.js → index.es-Pc5KKhcb.js} +1 -1
  86. package/dist/{index.es-Cg57snrN.js → index.es-_PSuLbjQ.js} +15 -16
  87. package/dist/{index.es-DhlgTSuU.js → index.es-eZDofmng.js} +10 -13
  88. package/dist/{keyboard-DbG3oyPU.js → keyboard-DQ9O_Ke1.js} +21 -21
  89. package/dist/main.js +1 -1
  90. package/dist/{map-ZSVweMI1.js → map-BErBeya5.js} +85 -85
  91. package/dist/parse-int-BYd7r_4n.js +47 -0
  92. package/dist/{slicedToArray-DC6VAZtW.js → slicedToArray-C2Ed3239.js} +67 -67
  93. package/dist/string-trim-v5pkXsl2.js +32 -0
  94. package/package.json +4 -4
  95. package/dist/correct-is-regexp-logic-BJ-OWRrn.js +0 -44
  96. package/dist/index.es-CkB4776y.js +0 -391
  97. package/dist/index.es-D1iB_QlE.js +0 -608
  98. package/dist/index.es-DEBGoIKX.js +0 -1061
  99. package/dist/parse-int-CGpIXMGa.js +0 -75
@@ -1,1061 +0,0 @@
1
- import { _ as mt, c as gt, a as yt, P as D } from "./index-Df2FYN-K.js";
2
- import { u as ht, c as bt, _ as wt, b as xt, d as Ot } from "./index.es-C6I3L4U4.js";
3
- import Pt, { forwardRef as At, useRef as Ee, useImperativeHandle as Et } from "react";
4
- var L = "top", z = "bottom", I = "right", j = "left", ke = "auto", de = [L, z, I, j], te = "start", pe = "end", $t = "clippingParents", _e = "viewport", le = "popper", Rt = "reference", qe = /* @__PURE__ */ de.reduce(function(e, t) {
5
- return e.concat([t + "-" + te, t + "-" + pe]);
6
- }, []), et = /* @__PURE__ */ [].concat(de, [ke]).reduce(function(e, t) {
7
- return e.concat([t, t + "-" + te, t + "-" + pe]);
8
- }, []), kt = "beforeRead", Bt = "read", Dt = "afterRead", Lt = "beforeMain", jt = "main", St = "afterMain", Tt = "beforeWrite", Ct = "write", Ht = "afterWrite", Wt = [kt, Bt, Dt, Lt, jt, St, Tt, Ct, Ht];
9
- function q(e) {
10
- return e ? (e.nodeName || "").toLowerCase() : null;
11
- }
12
- function H(e) {
13
- if (e == null)
14
- return window;
15
- if (e.toString() !== "[object Window]") {
16
- var t = e.ownerDocument;
17
- return t && t.defaultView || window;
18
- }
19
- return e;
20
- }
21
- function Z(e) {
22
- var t = H(e).Element;
23
- return e instanceof t || e instanceof Element;
24
- }
25
- function N(e) {
26
- var t = H(e).HTMLElement;
27
- return e instanceof t || e instanceof HTMLElement;
28
- }
29
- function Be(e) {
30
- if (typeof ShadowRoot > "u")
31
- return !1;
32
- var t = H(e).ShadowRoot;
33
- return e instanceof t || e instanceof ShadowRoot;
34
- }
35
- function Mt(e) {
36
- var t = e.state;
37
- Object.keys(t.elements).forEach(function(r) {
38
- var n = t.styles[r] || {}, a = t.attributes[r] || {}, i = t.elements[r];
39
- !N(i) || !q(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(c) {
40
- var s = a[c];
41
- s === !1 ? i.removeAttribute(c) : i.setAttribute(c, s === !0 ? "" : s);
42
- }));
43
- });
44
- }
45
- function Nt(e) {
46
- var t = e.state, r = {
47
- popper: {
48
- position: t.options.strategy,
49
- left: "0",
50
- top: "0",
51
- margin: "0"
52
- },
53
- arrow: {
54
- position: "absolute"
55
- },
56
- reference: {}
57
- };
58
- return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
59
- Object.keys(t.elements).forEach(function(n) {
60
- var a = t.elements[n], i = t.attributes[n] || {}, c = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = c.reduce(function(o, p) {
61
- return o[p] = "", o;
62
- }, {});
63
- !N(a) || !q(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(o) {
64
- a.removeAttribute(o);
65
- }));
66
- });
67
- };
68
- }
69
- const zt = {
70
- name: "applyStyles",
71
- enabled: !0,
72
- phase: "write",
73
- fn: Mt,
74
- effect: Nt,
75
- requires: ["computeStyles"]
76
- };
77
- function F(e) {
78
- return e.split("-")[0];
79
- }
80
- var Q = Math.max, we = Math.min, re = Math.round;
81
- function $e() {
82
- var e = navigator.userAgentData;
83
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
84
- return t.brand + "/" + t.version;
85
- }).join(" ") : navigator.userAgent;
86
- }
87
- function tt() {
88
- return !/^((?!chrome|android).)*safari/i.test($e());
89
- }
90
- function ae(e, t, r) {
91
- t === void 0 && (t = !1), r === void 0 && (r = !1);
92
- var n = e.getBoundingClientRect(), a = 1, i = 1;
93
- t && N(e) && (a = e.offsetWidth > 0 && re(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && re(n.height) / e.offsetHeight || 1);
94
- var c = Z(e) ? H(e) : window, s = c.visualViewport, o = !tt() && r, p = (n.left + (o && s ? s.offsetLeft : 0)) / a, l = (n.top + (o && s ? s.offsetTop : 0)) / i, g = n.width / a, b = n.height / i;
95
- return {
96
- width: g,
97
- height: b,
98
- top: l,
99
- right: p + g,
100
- bottom: l + b,
101
- left: p,
102
- x: p,
103
- y: l
104
- };
105
- }
106
- function De(e) {
107
- var t = ae(e), r = e.offsetWidth, n = e.offsetHeight;
108
- return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
109
- x: e.offsetLeft,
110
- y: e.offsetTop,
111
- width: r,
112
- height: n
113
- };
114
- }
115
- function rt(e, t) {
116
- var r = t.getRootNode && t.getRootNode();
117
- if (e.contains(t))
118
- return !0;
119
- if (r && Be(r)) {
120
- var n = t;
121
- do {
122
- if (n && e.isSameNode(n))
123
- return !0;
124
- n = n.parentNode || n.host;
125
- } while (n);
126
- }
127
- return !1;
128
- }
129
- function X(e) {
130
- return H(e).getComputedStyle(e);
131
- }
132
- function It(e) {
133
- return ["table", "td", "th"].indexOf(q(e)) >= 0;
134
- }
135
- function G(e) {
136
- return ((Z(e) ? e.ownerDocument : (
137
- // $FlowFixMe[prop-missing]
138
- e.document
139
- )) || window.document).documentElement;
140
- }
141
- function xe(e) {
142
- return q(e) === "html" ? e : (
143
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
144
- // $FlowFixMe[incompatible-return]
145
- // $FlowFixMe[prop-missing]
146
- e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
147
- e.parentNode || // DOM Element detected
148
- (Be(e) ? e.host : null) || // ShadowRoot detected
149
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
150
- G(e)
151
- );
152
- }
153
- function Xe(e) {
154
- return !N(e) || // https://github.com/popperjs/popper-core/issues/837
155
- X(e).position === "fixed" ? null : e.offsetParent;
156
- }
157
- function Vt(e) {
158
- var t = /firefox/i.test($e()), r = /Trident/i.test($e());
159
- if (r && N(e)) {
160
- var n = X(e);
161
- if (n.position === "fixed")
162
- return null;
163
- }
164
- var a = xe(e);
165
- for (Be(a) && (a = a.host); N(a) && ["html", "body"].indexOf(q(a)) < 0; ) {
166
- var i = X(a);
167
- if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
168
- return a;
169
- a = a.parentNode;
170
- }
171
- return null;
172
- }
173
- function ve(e) {
174
- for (var t = H(e), r = Xe(e); r && It(r) && X(r).position === "static"; )
175
- r = Xe(r);
176
- return r && (q(r) === "html" || q(r) === "body" && X(r).position === "static") ? t : r || Vt(e) || t;
177
- }
178
- function Le(e) {
179
- return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
180
- }
181
- function ce(e, t, r) {
182
- return Q(e, we(t, r));
183
- }
184
- function Ft(e, t, r) {
185
- var n = ce(e, t, r);
186
- return n > r ? r : n;
187
- }
188
- function at() {
189
- return {
190
- top: 0,
191
- right: 0,
192
- bottom: 0,
193
- left: 0
194
- };
195
- }
196
- function nt(e) {
197
- return Object.assign({}, at(), e);
198
- }
199
- function it(e, t) {
200
- return t.reduce(function(r, n) {
201
- return r[n] = e, r;
202
- }, {});
203
- }
204
- var qt = function(t, r) {
205
- return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
206
- placement: r.placement
207
- })) : t, nt(typeof t != "number" ? t : it(t, de));
208
- };
209
- function Xt(e) {
210
- var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, c = r.modifiersData.popperOffsets, s = F(r.placement), o = Le(s), p = [j, I].indexOf(s) >= 0, l = p ? "height" : "width";
211
- if (!(!i || !c)) {
212
- var g = qt(a.padding, r), b = De(i), u = o === "y" ? L : j, w = o === "y" ? z : I, m = r.rects.reference[l] + r.rects.reference[o] - c[o] - r.rects.popper[l], v = c[o] - r.rects.reference[o], x = ve(i), O = x ? o === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, A = m / 2 - v / 2, d = g[u], h = O - b[l] - g[w], y = O / 2 - b[l] / 2 + A, P = ce(d, y, h), $ = o;
213
- r.modifiersData[n] = (t = {}, t[$] = P, t.centerOffset = P - y, t);
214
- }
215
- }
216
- function Yt(e) {
217
- var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
218
- a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || rt(t.elements.popper, a) && (t.elements.arrow = a));
219
- }
220
- const Ut = {
221
- name: "arrow",
222
- enabled: !0,
223
- phase: "main",
224
- fn: Xt,
225
- effect: Yt,
226
- requires: ["popperOffsets"],
227
- requiresIfExists: ["preventOverflow"]
228
- };
229
- function ne(e) {
230
- return e.split("-")[1];
231
- }
232
- var Gt = {
233
- top: "auto",
234
- right: "auto",
235
- bottom: "auto",
236
- left: "auto"
237
- };
238
- function Jt(e, t) {
239
- var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
240
- return {
241
- x: re(r * a) / a || 0,
242
- y: re(n * a) / a || 0
243
- };
244
- }
245
- function Ye(e) {
246
- var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, c = e.offsets, s = e.position, o = e.gpuAcceleration, p = e.adaptive, l = e.roundOffsets, g = e.isFixed, b = c.x, u = b === void 0 ? 0 : b, w = c.y, m = w === void 0 ? 0 : w, v = typeof l == "function" ? l({
247
- x: u,
248
- y: m
249
- }) : {
250
- x: u,
251
- y: m
252
- };
253
- u = v.x, m = v.y;
254
- var x = c.hasOwnProperty("x"), O = c.hasOwnProperty("y"), A = j, d = L, h = window;
255
- if (p) {
256
- var y = ve(r), P = "clientHeight", $ = "clientWidth";
257
- if (y === H(r) && (y = G(r), X(y).position !== "static" && s === "absolute" && (P = "scrollHeight", $ = "scrollWidth")), y = y, a === L || (a === j || a === I) && i === pe) {
258
- d = z;
259
- var R = g && y === h && h.visualViewport ? h.visualViewport.height : (
260
- // $FlowFixMe[prop-missing]
261
- y[P]
262
- );
263
- m -= R - n.height, m *= o ? 1 : -1;
264
- }
265
- if (a === j || (a === L || a === z) && i === pe) {
266
- A = I;
267
- var E = g && y === h && h.visualViewport ? h.visualViewport.width : (
268
- // $FlowFixMe[prop-missing]
269
- y[$]
270
- );
271
- u -= E - n.width, u *= o ? 1 : -1;
272
- }
273
- }
274
- var f = Object.assign({
275
- position: s
276
- }, p && Gt), S = l === !0 ? Jt({
277
- x: u,
278
- y: m
279
- }, H(r)) : {
280
- x: u,
281
- y: m
282
- };
283
- if (u = S.x, m = S.y, o) {
284
- var k;
285
- return Object.assign({}, f, (k = {}, k[d] = O ? "0" : "", k[A] = x ? "0" : "", k.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", k));
286
- }
287
- return Object.assign({}, f, (t = {}, t[d] = O ? m + "px" : "", t[A] = x ? u + "px" : "", t.transform = "", t));
288
- }
289
- function Kt(e) {
290
- var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, c = i === void 0 ? !0 : i, s = r.roundOffsets, o = s === void 0 ? !0 : s, p = {
291
- placement: F(t.placement),
292
- variation: ne(t.placement),
293
- popper: t.elements.popper,
294
- popperRect: t.rects.popper,
295
- gpuAcceleration: a,
296
- isFixed: t.options.strategy === "fixed"
297
- };
298
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ye(Object.assign({}, p, {
299
- offsets: t.modifiersData.popperOffsets,
300
- position: t.options.strategy,
301
- adaptive: c,
302
- roundOffsets: o
303
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ye(Object.assign({}, p, {
304
- offsets: t.modifiersData.arrow,
305
- position: "absolute",
306
- adaptive: !1,
307
- roundOffsets: o
308
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
309
- "data-popper-placement": t.placement
310
- });
311
- }
312
- const Qt = {
313
- name: "computeStyles",
314
- enabled: !0,
315
- phase: "beforeWrite",
316
- fn: Kt,
317
- data: {}
318
- };
319
- var he = {
320
- passive: !0
321
- };
322
- function Zt(e) {
323
- var t = e.state, r = e.instance, n = e.options, a = n.scroll, i = a === void 0 ? !0 : a, c = n.resize, s = c === void 0 ? !0 : c, o = H(t.elements.popper), p = [].concat(t.scrollParents.reference, t.scrollParents.popper);
324
- return i && p.forEach(function(l) {
325
- l.addEventListener("scroll", r.update, he);
326
- }), s && o.addEventListener("resize", r.update, he), function() {
327
- i && p.forEach(function(l) {
328
- l.removeEventListener("scroll", r.update, he);
329
- }), s && o.removeEventListener("resize", r.update, he);
330
- };
331
- }
332
- const _t = {
333
- name: "eventListeners",
334
- enabled: !0,
335
- phase: "write",
336
- fn: function() {
337
- },
338
- effect: Zt,
339
- data: {}
340
- };
341
- var er = {
342
- left: "right",
343
- right: "left",
344
- bottom: "top",
345
- top: "bottom"
346
- };
347
- function be(e) {
348
- return e.replace(/left|right|bottom|top/g, function(t) {
349
- return er[t];
350
- });
351
- }
352
- var tr = {
353
- start: "end",
354
- end: "start"
355
- };
356
- function Ue(e) {
357
- return e.replace(/start|end/g, function(t) {
358
- return tr[t];
359
- });
360
- }
361
- function je(e) {
362
- var t = H(e), r = t.pageXOffset, n = t.pageYOffset;
363
- return {
364
- scrollLeft: r,
365
- scrollTop: n
366
- };
367
- }
368
- function Se(e) {
369
- return ae(G(e)).left + je(e).scrollLeft;
370
- }
371
- function rr(e, t) {
372
- var r = H(e), n = G(e), a = r.visualViewport, i = n.clientWidth, c = n.clientHeight, s = 0, o = 0;
373
- if (a) {
374
- i = a.width, c = a.height;
375
- var p = tt();
376
- (p || !p && t === "fixed") && (s = a.offsetLeft, o = a.offsetTop);
377
- }
378
- return {
379
- width: i,
380
- height: c,
381
- x: s + Se(e),
382
- y: o
383
- };
384
- }
385
- function ar(e) {
386
- var t, r = G(e), n = je(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Q(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), c = Q(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + Se(e), o = -n.scrollTop;
387
- return X(a || r).direction === "rtl" && (s += Q(r.clientWidth, a ? a.clientWidth : 0) - i), {
388
- width: i,
389
- height: c,
390
- x: s,
391
- y: o
392
- };
393
- }
394
- function Te(e) {
395
- var t = X(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
396
- return /auto|scroll|overlay|hidden/.test(r + a + n);
397
- }
398
- function ot(e) {
399
- return ["html", "body", "#document"].indexOf(q(e)) >= 0 ? e.ownerDocument.body : N(e) && Te(e) ? e : ot(xe(e));
400
- }
401
- function fe(e, t) {
402
- var r;
403
- t === void 0 && (t = []);
404
- var n = ot(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = H(n), c = a ? [i].concat(i.visualViewport || [], Te(n) ? n : []) : n, s = t.concat(c);
405
- return a ? s : (
406
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
407
- s.concat(fe(xe(c)))
408
- );
409
- }
410
- function Re(e) {
411
- return Object.assign({}, e, {
412
- left: e.x,
413
- top: e.y,
414
- right: e.x + e.width,
415
- bottom: e.y + e.height
416
- });
417
- }
418
- function nr(e, t) {
419
- var r = ae(e, !1, t === "fixed");
420
- return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
421
- }
422
- function Ge(e, t, r) {
423
- return t === _e ? Re(rr(e, r)) : Z(t) ? nr(t, r) : Re(ar(G(e)));
424
- }
425
- function ir(e) {
426
- var t = fe(xe(e)), r = ["absolute", "fixed"].indexOf(X(e).position) >= 0, n = r && N(e) ? ve(e) : e;
427
- return Z(n) ? t.filter(function(a) {
428
- return Z(a) && rt(a, n) && q(a) !== "body";
429
- }) : [];
430
- }
431
- function or(e, t, r, n) {
432
- var a = t === "clippingParents" ? ir(e) : [].concat(t), i = [].concat(a, [r]), c = i[0], s = i.reduce(function(o, p) {
433
- var l = Ge(e, p, n);
434
- return o.top = Q(l.top, o.top), o.right = we(l.right, o.right), o.bottom = we(l.bottom, o.bottom), o.left = Q(l.left, o.left), o;
435
- }, Ge(e, c, n));
436
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
437
- }
438
- function st(e) {
439
- var t = e.reference, r = e.element, n = e.placement, a = n ? F(n) : null, i = n ? ne(n) : null, c = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, o;
440
- switch (a) {
441
- case L:
442
- o = {
443
- x: c,
444
- y: t.y - r.height
445
- };
446
- break;
447
- case z:
448
- o = {
449
- x: c,
450
- y: t.y + t.height
451
- };
452
- break;
453
- case I:
454
- o = {
455
- x: t.x + t.width,
456
- y: s
457
- };
458
- break;
459
- case j:
460
- o = {
461
- x: t.x - r.width,
462
- y: s
463
- };
464
- break;
465
- default:
466
- o = {
467
- x: t.x,
468
- y: t.y
469
- };
470
- }
471
- var p = a ? Le(a) : null;
472
- if (p != null) {
473
- var l = p === "y" ? "height" : "width";
474
- switch (i) {
475
- case te:
476
- o[p] = o[p] - (t[l] / 2 - r[l] / 2);
477
- break;
478
- case pe:
479
- o[p] = o[p] + (t[l] / 2 - r[l] / 2);
480
- break;
481
- }
482
- }
483
- return o;
484
- }
485
- function ue(e, t) {
486
- t === void 0 && (t = {});
487
- var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, c = i === void 0 ? e.strategy : i, s = r.boundary, o = s === void 0 ? $t : s, p = r.rootBoundary, l = p === void 0 ? _e : p, g = r.elementContext, b = g === void 0 ? le : g, u = r.altBoundary, w = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, x = nt(typeof v != "number" ? v : it(v, de)), O = b === le ? Rt : le, A = e.rects.popper, d = e.elements[w ? O : b], h = or(Z(d) ? d : d.contextElement || G(e.elements.popper), o, l, c), y = ae(e.elements.reference), P = st({
488
- reference: y,
489
- element: A,
490
- placement: a
491
- }), $ = Re(Object.assign({}, A, P)), R = b === le ? $ : y, E = {
492
- top: h.top - R.top + x.top,
493
- bottom: R.bottom - h.bottom + x.bottom,
494
- left: h.left - R.left + x.left,
495
- right: R.right - h.right + x.right
496
- }, f = e.modifiersData.offset;
497
- if (b === le && f) {
498
- var S = f[a];
499
- Object.keys(E).forEach(function(k) {
500
- var V = [I, z].indexOf(k) >= 0 ? 1 : -1, W = [L, z].indexOf(k) >= 0 ? "y" : "x";
501
- E[k] += S[W] * V;
502
- });
503
- }
504
- return E;
505
- }
506
- function sr(e, t) {
507
- t === void 0 && (t = {});
508
- var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, c = r.padding, s = r.flipVariations, o = r.allowedAutoPlacements, p = o === void 0 ? et : o, l = ne(n), g = l ? s ? qe : qe.filter(function(w) {
509
- return ne(w) === l;
510
- }) : de, b = g.filter(function(w) {
511
- return p.indexOf(w) >= 0;
512
- });
513
- b.length === 0 && (b = g);
514
- var u = b.reduce(function(w, m) {
515
- return w[m] = ue(e, {
516
- placement: m,
517
- boundary: a,
518
- rootBoundary: i,
519
- padding: c
520
- })[F(m)], w;
521
- }, {});
522
- return Object.keys(u).sort(function(w, m) {
523
- return u[w] - u[m];
524
- });
525
- }
526
- function lr(e) {
527
- if (F(e) === ke)
528
- return [];
529
- var t = be(e);
530
- return [Ue(e), t, Ue(t)];
531
- }
532
- function cr(e) {
533
- var t = e.state, r = e.options, n = e.name;
534
- if (!t.modifiersData[n]._skip) {
535
- for (var a = r.mainAxis, i = a === void 0 ? !0 : a, c = r.altAxis, s = c === void 0 ? !0 : c, o = r.fallbackPlacements, p = r.padding, l = r.boundary, g = r.rootBoundary, b = r.altBoundary, u = r.flipVariations, w = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, x = F(v), O = x === v, A = o || (O || !w ? [be(v)] : lr(v)), d = [v].concat(A).reduce(function(ee, U) {
536
- return ee.concat(F(U) === ke ? sr(t, {
537
- placement: U,
538
- boundary: l,
539
- rootBoundary: g,
540
- padding: p,
541
- flipVariations: w,
542
- allowedAutoPlacements: m
543
- }) : U);
544
- }, []), h = t.rects.reference, y = t.rects.popper, P = /* @__PURE__ */ new Map(), $ = !0, R = d[0], E = 0; E < d.length; E++) {
545
- var f = d[E], S = F(f), k = ne(f) === te, V = [L, z].indexOf(S) >= 0, W = V ? "width" : "height", B = ue(t, {
546
- placement: f,
547
- boundary: l,
548
- rootBoundary: g,
549
- altBoundary: b,
550
- padding: p
551
- }), T = V ? k ? I : j : k ? z : L;
552
- h[W] > y[W] && (T = be(T));
553
- var Y = be(T), M = [];
554
- if (i && M.push(B[S] <= 0), s && M.push(B[T] <= 0, B[Y] <= 0), M.every(function(ee) {
555
- return ee;
556
- })) {
557
- R = f, $ = !1;
558
- break;
559
- }
560
- P.set(f, M);
561
- }
562
- if ($)
563
- for (var _ = w ? 3 : 1, ie = function(U) {
564
- var se = d.find(function(ge) {
565
- var J = P.get(ge);
566
- if (J)
567
- return J.slice(0, U).every(function(Oe) {
568
- return Oe;
569
- });
570
- });
571
- if (se)
572
- return R = se, "break";
573
- }, oe = _; oe > 0; oe--) {
574
- var me = ie(oe);
575
- if (me === "break") break;
576
- }
577
- t.placement !== R && (t.modifiersData[n]._skip = !0, t.placement = R, t.reset = !0);
578
- }
579
- }
580
- const fr = {
581
- name: "flip",
582
- enabled: !0,
583
- phase: "main",
584
- fn: cr,
585
- requiresIfExists: ["offset"],
586
- data: {
587
- _skip: !1
588
- }
589
- };
590
- function Je(e, t, r) {
591
- return r === void 0 && (r = {
592
- x: 0,
593
- y: 0
594
- }), {
595
- top: e.top - t.height - r.y,
596
- right: e.right - t.width + r.x,
597
- bottom: e.bottom - t.height + r.y,
598
- left: e.left - t.width - r.x
599
- };
600
- }
601
- function Ke(e) {
602
- return [L, I, z, j].some(function(t) {
603
- return e[t] >= 0;
604
- });
605
- }
606
- function pr(e) {
607
- var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, c = ue(t, {
608
- elementContext: "reference"
609
- }), s = ue(t, {
610
- altBoundary: !0
611
- }), o = Je(c, n), p = Je(s, a, i), l = Ke(o), g = Ke(p);
612
- t.modifiersData[r] = {
613
- referenceClippingOffsets: o,
614
- popperEscapeOffsets: p,
615
- isReferenceHidden: l,
616
- hasPopperEscaped: g
617
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
618
- "data-popper-reference-hidden": l,
619
- "data-popper-escaped": g
620
- });
621
- }
622
- const ur = {
623
- name: "hide",
624
- enabled: !0,
625
- phase: "main",
626
- requiresIfExists: ["preventOverflow"],
627
- fn: pr
628
- };
629
- function dr(e, t, r) {
630
- var n = F(e), a = [j, L].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
631
- placement: e
632
- })) : r, c = i[0], s = i[1];
633
- return c = c || 0, s = (s || 0) * a, [j, I].indexOf(n) >= 0 ? {
634
- x: s,
635
- y: c
636
- } : {
637
- x: c,
638
- y: s
639
- };
640
- }
641
- function vr(e) {
642
- var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, c = et.reduce(function(l, g) {
643
- return l[g] = dr(g, t.rects, i), l;
644
- }, {}), s = c[t.placement], o = s.x, p = s.y;
645
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += o, t.modifiersData.popperOffsets.y += p), t.modifiersData[n] = c;
646
- }
647
- const mr = {
648
- name: "offset",
649
- enabled: !0,
650
- phase: "main",
651
- requires: ["popperOffsets"],
652
- fn: vr
653
- };
654
- function gr(e) {
655
- var t = e.state, r = e.name;
656
- t.modifiersData[r] = st({
657
- reference: t.rects.reference,
658
- element: t.rects.popper,
659
- placement: t.placement
660
- });
661
- }
662
- const yr = {
663
- name: "popperOffsets",
664
- enabled: !0,
665
- phase: "read",
666
- fn: gr,
667
- data: {}
668
- };
669
- function hr(e) {
670
- return e === "x" ? "y" : "x";
671
- }
672
- function br(e) {
673
- var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, c = r.altAxis, s = c === void 0 ? !1 : c, o = r.boundary, p = r.rootBoundary, l = r.altBoundary, g = r.padding, b = r.tether, u = b === void 0 ? !0 : b, w = r.tetherOffset, m = w === void 0 ? 0 : w, v = ue(t, {
674
- boundary: o,
675
- rootBoundary: p,
676
- padding: g,
677
- altBoundary: l
678
- }), x = F(t.placement), O = ne(t.placement), A = !O, d = Le(x), h = hr(d), y = t.modifiersData.popperOffsets, P = t.rects.reference, $ = t.rects.popper, R = typeof m == "function" ? m(Object.assign({}, t.rects, {
679
- placement: t.placement
680
- })) : m, E = typeof R == "number" ? {
681
- mainAxis: R,
682
- altAxis: R
683
- } : Object.assign({
684
- mainAxis: 0,
685
- altAxis: 0
686
- }, R), f = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, S = {
687
- x: 0,
688
- y: 0
689
- };
690
- if (y) {
691
- if (i) {
692
- var k, V = d === "y" ? L : j, W = d === "y" ? z : I, B = d === "y" ? "height" : "width", T = y[d], Y = T + v[V], M = T - v[W], _ = u ? -$[B] / 2 : 0, ie = O === te ? P[B] : $[B], oe = O === te ? -$[B] : -P[B], me = t.elements.arrow, ee = u && me ? De(me) : {
693
- width: 0,
694
- height: 0
695
- }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : at(), se = U[V], ge = U[W], J = ce(0, P[B], ee[B]), Oe = A ? P[B] / 2 - _ - J - se - E.mainAxis : ie - J - se - E.mainAxis, ct = A ? -P[B] / 2 + _ + J + ge + E.mainAxis : oe + J + ge + E.mainAxis, Pe = t.elements.arrow && ve(t.elements.arrow), ft = Pe ? d === "y" ? Pe.clientTop || 0 : Pe.clientLeft || 0 : 0, Ce = (k = f?.[d]) != null ? k : 0, pt = T + Oe - Ce - ft, ut = T + ct - Ce, He = ce(u ? we(Y, pt) : Y, T, u ? Q(M, ut) : M);
696
- y[d] = He, S[d] = He - T;
697
- }
698
- if (s) {
699
- var We, dt = d === "x" ? L : j, vt = d === "x" ? z : I, K = y[h], ye = h === "y" ? "height" : "width", Me = K + v[dt], Ne = K - v[vt], Ae = [L, j].indexOf(x) !== -1, ze = (We = f?.[h]) != null ? We : 0, Ie = Ae ? Me : K - P[ye] - $[ye] - ze + E.altAxis, Ve = Ae ? K + P[ye] + $[ye] - ze - E.altAxis : Ne, Fe = u && Ae ? Ft(Ie, K, Ve) : ce(u ? Ie : Me, K, u ? Ve : Ne);
700
- y[h] = Fe, S[h] = Fe - K;
701
- }
702
- t.modifiersData[n] = S;
703
- }
704
- }
705
- const wr = {
706
- name: "preventOverflow",
707
- enabled: !0,
708
- phase: "main",
709
- fn: br,
710
- requiresIfExists: ["offset"]
711
- };
712
- function xr(e) {
713
- return {
714
- scrollLeft: e.scrollLeft,
715
- scrollTop: e.scrollTop
716
- };
717
- }
718
- function Or(e) {
719
- return e === H(e) || !N(e) ? je(e) : xr(e);
720
- }
721
- function Pr(e) {
722
- var t = e.getBoundingClientRect(), r = re(t.width) / e.offsetWidth || 1, n = re(t.height) / e.offsetHeight || 1;
723
- return r !== 1 || n !== 1;
724
- }
725
- function Ar(e, t, r) {
726
- r === void 0 && (r = !1);
727
- var n = N(t), a = N(t) && Pr(t), i = G(t), c = ae(e, a, r), s = {
728
- scrollLeft: 0,
729
- scrollTop: 0
730
- }, o = {
731
- x: 0,
732
- y: 0
733
- };
734
- return (n || !n && !r) && ((q(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
735
- Te(i)) && (s = Or(t)), N(t) ? (o = ae(t, !0), o.x += t.clientLeft, o.y += t.clientTop) : i && (o.x = Se(i))), {
736
- x: c.left + s.scrollLeft - o.x,
737
- y: c.top + s.scrollTop - o.y,
738
- width: c.width,
739
- height: c.height
740
- };
741
- }
742
- function Er(e) {
743
- var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
744
- e.forEach(function(i) {
745
- t.set(i.name, i);
746
- });
747
- function a(i) {
748
- r.add(i.name);
749
- var c = [].concat(i.requires || [], i.requiresIfExists || []);
750
- c.forEach(function(s) {
751
- if (!r.has(s)) {
752
- var o = t.get(s);
753
- o && a(o);
754
- }
755
- }), n.push(i);
756
- }
757
- return e.forEach(function(i) {
758
- r.has(i.name) || a(i);
759
- }), n;
760
- }
761
- function $r(e) {
762
- var t = Er(e);
763
- return Wt.reduce(function(r, n) {
764
- return r.concat(t.filter(function(a) {
765
- return a.phase === n;
766
- }));
767
- }, []);
768
- }
769
- function Rr(e) {
770
- var t;
771
- return function() {
772
- return t || (t = new Promise(function(r) {
773
- Promise.resolve().then(function() {
774
- t = void 0, r(e());
775
- });
776
- })), t;
777
- };
778
- }
779
- function kr(e) {
780
- var t = e.reduce(function(r, n) {
781
- var a = r[n.name];
782
- return r[n.name] = a ? Object.assign({}, a, n, {
783
- options: Object.assign({}, a.options, n.options),
784
- data: Object.assign({}, a.data, n.data)
785
- }) : n, r;
786
- }, {});
787
- return Object.keys(t).map(function(r) {
788
- return t[r];
789
- });
790
- }
791
- var Qe = {
792
- placement: "bottom",
793
- modifiers: [],
794
- strategy: "absolute"
795
- };
796
- function Ze() {
797
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
798
- t[r] = arguments[r];
799
- return !t.some(function(n) {
800
- return !(n && typeof n.getBoundingClientRect == "function");
801
- });
802
- }
803
- function Br(e) {
804
- e === void 0 && (e = {});
805
- var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ? Qe : a;
806
- return function(s, o, p) {
807
- p === void 0 && (p = i);
808
- var l = {
809
- placement: "bottom",
810
- orderedModifiers: [],
811
- options: Object.assign({}, Qe, i),
812
- modifiersData: {},
813
- elements: {
814
- reference: s,
815
- popper: o
816
- },
817
- attributes: {},
818
- styles: {}
819
- }, g = [], b = !1, u = {
820
- state: l,
821
- setOptions: function(x) {
822
- var O = typeof x == "function" ? x(l.options) : x;
823
- m(), l.options = Object.assign({}, i, l.options, O), l.scrollParents = {
824
- reference: Z(s) ? fe(s) : s.contextElement ? fe(s.contextElement) : [],
825
- popper: fe(o)
826
- };
827
- var A = $r(kr([].concat(n, l.options.modifiers)));
828
- return l.orderedModifiers = A.filter(function(d) {
829
- return d.enabled;
830
- }), w(), u.update();
831
- },
832
- // Sync update – it will always be executed, even if not necessary. This
833
- // is useful for low frequency updates where sync behavior simplifies the
834
- // logic.
835
- // For high frequency updates (e.g. `resize` and `scroll` events), always
836
- // prefer the async Popper#update method
837
- forceUpdate: function() {
838
- if (!b) {
839
- var x = l.elements, O = x.reference, A = x.popper;
840
- if (Ze(O, A)) {
841
- l.rects = {
842
- reference: Ar(O, ve(A), l.options.strategy === "fixed"),
843
- popper: De(A)
844
- }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(E) {
845
- return l.modifiersData[E.name] = Object.assign({}, E.data);
846
- });
847
- for (var d = 0; d < l.orderedModifiers.length; d++) {
848
- if (l.reset === !0) {
849
- l.reset = !1, d = -1;
850
- continue;
851
- }
852
- var h = l.orderedModifiers[d], y = h.fn, P = h.options, $ = P === void 0 ? {} : P, R = h.name;
853
- typeof y == "function" && (l = y({
854
- state: l,
855
- options: $,
856
- name: R,
857
- instance: u
858
- }) || l);
859
- }
860
- }
861
- }
862
- },
863
- // Async and optimistically optimized update – it will not be executed if
864
- // not necessary (debounced to run at most once-per-tick)
865
- update: Rr(function() {
866
- return new Promise(function(v) {
867
- u.forceUpdate(), v(l);
868
- });
869
- }),
870
- destroy: function() {
871
- m(), b = !0;
872
- }
873
- };
874
- if (!Ze(s, o))
875
- return u;
876
- u.setOptions(p).then(function(v) {
877
- !b && p.onFirstUpdate && p.onFirstUpdate(v);
878
- });
879
- function w() {
880
- l.orderedModifiers.forEach(function(v) {
881
- var x = v.name, O = v.options, A = O === void 0 ? {} : O, d = v.effect;
882
- if (typeof d == "function") {
883
- var h = d({
884
- state: l,
885
- name: x,
886
- instance: u,
887
- options: A
888
- }), y = function() {
889
- };
890
- g.push(h || y);
891
- }
892
- });
893
- }
894
- function m() {
895
- g.forEach(function(v) {
896
- return v();
897
- }), g = [];
898
- }
899
- return u;
900
- };
901
- }
902
- var Dr = [_t, yr, Qt, zt, mr, fr, wr, Ut, ur], Lr = /* @__PURE__ */ Br({
903
- defaultModifiers: Dr
904
- }), jr = {
905
- /**
906
- * Sets the `aria-hidden` attribute for the icon. If set to true, the icon will not be read by screen readers. Should be used if icon is purely decorative (such as when used in a button or textfield) or labeled by rendered text using `aria-labelledBy` or `aria-label`.
907
- *
908
- * Defaults to **null**.
909
- */
910
- ariaHidden: D.bool,
911
- /**
912
- * Accessibility label for assistive technologies.
913
- *
914
- * Defaults to **null**.
915
- */
916
- ariaLabel: D.string,
917
- /**
918
- * Id of the component being labeled for assistive technologies.
919
- *
920
- * Defaults to **null**.
921
- */
922
- ariaLabelledBy: D.string,
923
- /**
924
- * The custom icon notification badge to be rendered. The icon notification badge component prevents `xsmall` and `small` icon size
925
- *
926
- * Defaults to **undefined**.
927
- */
928
- badge: D.node,
929
- /**
930
- * The placement of the notification badge on the icon to start. It will flip to the opposite side if there is no room.
931
- *
932
- * Defaults to **'right-start'**.
933
- */
934
- badgePlacement: D.oneOf(["right-start", "left-start"]),
935
- /**
936
- * The css class name to be passed through to the component markup.
937
- *
938
- * Defaults to **undefined**.
939
- */
940
- className: D.string,
941
- /**
942
- * Mostly commonly a string but accepts any valid markup or components. If a custom icon is used styles like color and size will need be handled with custom CSS.
943
- *
944
- * Defaults to **null**.
945
- */
946
- icon: D.oneOfType([D.string, D.node]),
947
- /**
948
- * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
949
- *
950
- * Defaults to **'medium'**.
951
- */
952
- iconSize: D.oneOf(["xsmall", "small", "medium", "large", "xlarge"]),
953
- /**
954
- * Choose between the classic Material Icons (default), newer Material Symbols, or custom.
955
- *
956
- * Defaults to **'material-icons'**.
957
- */
958
- iconSource: D.oneOf(["material-icons", "material-symbols"]),
959
- /**
960
- * The material icon type/style to be use. NOTE: Not all icons have every type and material-symbols only support outlined, rounded, and sharp. To see which icons are available for different types see [Material Icons docs](https://material.io/tools/icons)
961
- *
962
- * Defaults to **'filled'**.
963
- */
964
- iconType: D.oneOf(["filled", "outlined", "rounded", "two-tone", "sharp"]),
965
- /**
966
- * Add pointer icon style
967
- *
968
- * Defaults to **false**.
969
- */
970
- pointer: D.bool,
971
- /**
972
- * @deprecated _Renamed, see iconSize instead._
973
- *
974
- * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
975
- *
976
- * Defaults to **undefined**.
977
- */
978
- size: Ot(D.oneOf(["xsmall", "small", "medium", "large", "xlarge"]), "Icon", "Renamed, see iconSize instead."),
979
- /**
980
- * Color variations. Variants prefixed with `filled-` will add a background color to the icon according to the theme. Variants prefixed with ` color-` will change the color of the icon according to the theme.
981
- *
982
- * Defaults to **empty string**.
983
- */
984
- variant: xt(D.oneOf(["", "filled-danger-alt", "filled-danger", "filled-primary", "filled-secondary", "color-primary", "color-secondary", "color-on-dark", "color-on-unknown-black", "secondary-on-surface", "blue", "gray", "green", "orange", "purple", "red", "teal", "yellow"]), ["primary-alt", "secondary-alt", "primary", "danger-alt", "danger", "muted"], "Icon", "Please use one of '','filled-danger-alt','filled-danger','filled-primary','filled-secondary','color-primary','color-secondary','color-on-dark','color-on-unknown-black','secondary-on-surface','blue','gray','green','orange','purple','red','teal','yellow'.")
985
- }, Sr = {
986
- ariaHidden: null,
987
- ariaLabel: null,
988
- ariaLabelledBy: null,
989
- badge: void 0,
990
- badgePlacement: "right-start",
991
- className: void 0,
992
- icon: null,
993
- iconSize: "medium",
994
- iconSource: "material-icons",
995
- iconType: "filled",
996
- pointer: !1,
997
- size: void 0,
998
- variant: ""
999
- }, Tr = ["ariaHidden", "ariaLabel", "ariaLabelledBy", "badge", "badgePlacement", "className", "icon", "iconType", "pointer", "size", "iconSize", "iconSource", "variant"];
1000
- function Cr(e, t) {
1001
- var r;
1002
- return t === "material-symbols" && e === "filled" || e === "two-tone" ? "".concat(t, "-outlined") : t === "material-icons" && e === "filled" ? t : t === "material-icons" && e === "rounded" ? "".concat(t, "-round") : wt(r = "".concat(t, "-")).call(r, e);
1003
- }
1004
- var C = Sr, lt = /* @__PURE__ */ At(function(e, t) {
1005
- var r = e.ariaHidden, n = r === void 0 ? C.ariaHidden : r, a = e.ariaLabel, i = a === void 0 ? C.ariaLabel : a, c = e.ariaLabelledBy, s = c === void 0 ? C.ariaLabelledBy : c, o = e.badge, p = o === void 0 ? C.badge : o, l = e.badgePlacement, g = l === void 0 ? C.badgePlacement : l, b = e.className, u = b === void 0 ? C.className : b, w = e.icon, m = w === void 0 ? C.icon : w, v = e.iconType, x = v === void 0 ? C.iconType : v, O = e.pointer, A = O === void 0 ? C.pointer : O, d = e.size, h = d === void 0 ? C.size : d, y = e.iconSize, P = y === void 0 ? C.iconSize : y, $ = e.iconSource, R = $ === void 0 ? C.iconSource : $, E = e.variant, f = E === void 0 ? C.variant : E, S = mt(e, Tr), k = Ee(), V = Ee(), W = Ee(), B = h || P;
1006
- p && (B === "xsmall" || B === "small") && (B = "medium"), Et(t, function() {
1007
- return k.current;
1008
- }, []), ht(function() {
1009
- if (p) {
1010
- var Y;
1011
- p.props.counter != null ? Y = [{
1012
- name: "flip",
1013
- options: {
1014
- fallbackPlacements: ["right", "left"]
1015
- }
1016
- }, {
1017
- name: "offset",
1018
- options: {
1019
- offset: function(_) {
1020
- var ie = _.placement;
1021
- return ie === "right-start" ? [-5, -10] : [-7, -10];
1022
- }
1023
- }
1024
- }] : Y = [{
1025
- name: "flip",
1026
- options: {
1027
- fallbackPlacements: ["right-start", "left-start"]
1028
- }
1029
- }, {
1030
- name: "offset",
1031
- options: {
1032
- offset: [0, -10]
1033
- }
1034
- }], W.current = Lr(k.current, V.current, {
1035
- placement: g,
1036
- modifiers: Y
1037
- });
1038
- }
1039
- return function() {
1040
- var M;
1041
- W == null || (M = W.current) === null || M === void 0 || M.destroy();
1042
- };
1043
- }, [p, g]);
1044
- var T = gt("lmnt", "lmnt-icon", Cr(x, R), A && "lmnt-icon-pointer", B && "lmnt-icon--".concat(B), (f === "primary" || f === "primary-alt" || f === "muted" || f === "danger" || f === "danger-alt" || f === "filled-primary" || f === "filled-secondary" || f === "filled-muted" || f === "filled-danger" || f === "filled-danger-alt" || f === "blue" || f === "gray" || f === "green" || f === "orange" || f === "purple" || f === "red" || f === "teal" || f === "yellow") && "lmnt-icon--fill", (f === "danger-alt" || f === "filled-danger-alt") && "lmnt-icon--fill-danger-alt", (f === "danger" || f === "filled-danger") && "lmnt-icon--fill-danger", (f === "primary" || f === "filled-primary") && "lmnt-icon--fill-primary", (f === "primary-alt" || f === "filled-secondary") && "lmnt-icon--fill-secondary", (f === "muted" || f === "filled-muted") && "lmnt-icon--fill-muted", (f === "secondary-alt" || f === "color-on-dark") && "lmnt-icon--color-on-dark", f === "color-primary" && "lmnt-icon--color-primary", f === "color-secondary" && "lmnt-icon--color-secondary", f === "blue" && "lmnt-icon--utility-blue", f === "gray" && "lmnt-icon--utility-gray", f === "green" && "lmnt-icon--utility-green", f === "orange" && "lmnt-icon--utility-orange", f === "purple" && "lmnt-icon--utility-purple", f === "red" && "lmnt-icon--utility-red", f === "teal" && "lmnt-icon--utility-teal", f === "yellow" && "lmnt-icon--utility-yellow", f === "secondary-on-surface" && "lmnt-icon--secondary-on-surface", f === "color-on-unknown-black" && "lmnt-icon--on-unknown-black", u);
1045
- return /* @__PURE__ */ Pt.createElement("i", yt({
1046
- className: T,
1047
- "aria-label": i,
1048
- "aria-labelledby": s,
1049
- "aria-hidden": i || s ? n : !1
1050
- }, S, {
1051
- ref: k
1052
- }), m, bt(p, {
1053
- ref: V
1054
- }));
1055
- });
1056
- lt.displayName = "Icon";
1057
- lt.propTypes = jr;
1058
- export {
1059
- lt as I,
1060
- Lr as c
1061
- };