@hortiview/default-components 1.5.0 → 1.5.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 (43) hide show
  1. package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.js +8 -48
  2. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +12 -1514
  3. package/dist/components/DefaultFormSelect/DefaultFormSelect.js +9 -178
  4. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +6 -6
  5. package/dist/components/GenericTable/GenericTable.js +12 -18746
  6. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  7. package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -4
  8. package/dist/components/HealthChecks/IotServiceHealthCheck.js +5 -5
  9. package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
  10. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +9 -9
  11. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +4 -4
  12. package/dist/components/OfflineView/OfflineView.js +9 -9
  13. package/dist/i18n.js +1696 -5
  14. package/dist/{i18nInstance-D_96ADqd.js → i18nInstance-CYqpK5II.js} +2 -2
  15. package/dist/useTranslation-DGtUf8nl.js +101 -0
  16. package/package.json +3 -3
  17. package/dist/Iconify-D3gVmKx3.js +0 -84
  18. package/dist/InfoCard-Ba-VFnki.js +0 -58
  19. package/dist/LoadingSpinner-CmwCv7BO.js +0 -503
  20. package/dist/OfflineView-CIwV08EQ-BClnJRzV.js +0 -46
  21. package/dist/assets/DefaultAllowedComponent.css +0 -1
  22. package/dist/assets/DefaultFormNumber.css +0 -1
  23. package/dist/assets/DefaultFormSelect.css +0 -1
  24. package/dist/assets/GenericTable.css +0 -1
  25. package/dist/assets/Iconify.css +0 -1
  26. package/dist/assets/InfoCard.css +0 -1
  27. package/dist/assets/LoadingSpinner.css +0 -1
  28. package/dist/assets/OfflineView-CIwV08EQ.css +0 -1
  29. package/dist/component-Bz_dtX1r-DqCAj-DR.js +0 -304
  30. package/dist/component-DEJuY56h-CYiwt7Ga.js +0 -571
  31. package/dist/correct-is-regexp-logic-Y0ToWEjF-pByZFQLo.js +0 -494
  32. package/dist/i18n-CCQpJsQK.js +0 -1707
  33. package/dist/index.es--C-VLspF-B3Cy1zrT.js +0 -845
  34. package/dist/index.es-B74L_Dje-mYAvKwSb.js +0 -2005
  35. package/dist/index.es-B8p8KCdj--cmqwwUJ.js +0 -360
  36. package/dist/index.es-BPv5dCFQ-BmH1Hq7_.js +0 -1044
  37. package/dist/index.es-BanVdXEd-BYOBCuJj.js +0 -79
  38. package/dist/index.es-SjZ_-d7U-HvaOH_Z0.js +0 -860
  39. package/dist/index.es-nwjKmW7--CUlbl1RR.js +0 -14375
  40. package/dist/isTypedArray-DziahYkI-Cw9ssvDH.js +0 -210
  41. package/dist/slicedToArray-ByMQIs5x-BsvSjTDl.js +0 -432
  42. package/dist/useHelperText-Cqx6ggnc.js +0 -392
  43. package/dist/useTranslation-BQQybhSd.js +0 -5042
@@ -1,494 +0,0 @@
1
- import { r as Fe, q as He, e as y, h as se, m as je, B as C, k as he, aa as ze, l as de, a4 as Ue, t as a, n as $e, A as ve, M as Me, ab as qe } from "./useTranslation-BQQybhSd.js";
2
- import k, { forwardRef as Ge, useRef as B, useImperativeHandle as Ve, useEffect as ue } from "react";
3
- import { f as We, a as Xe } from "./component-Bz_dtX1r-DqCAj-DR.js";
4
- import { U as ye } from "./component-DEJuY56h-CYiwt7Ga.js";
5
- var fe, ge;
6
- function Ye() {
7
- return ge || (ge = 1, fe = /* @__PURE__ */ ze()), fe;
8
- }
9
- var Je = Ye();
10
- const Ke = /* @__PURE__ */ He(Je);
11
- /**
12
- * @license
13
- * Copyright 2018 Google Inc.
14
- *
15
- * Permission is hereby granted, free of charge, to any person obtaining a copy
16
- * of this software and associated documentation files (the "Software"), to deal
17
- * in the Software without restriction, including without limitation the rights
18
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
- * copies of the Software, and to permit persons to whom the Software is
20
- * furnished to do so, subject to the following conditions:
21
- *
22
- * The above copyright notice and this permission notice shall be included in
23
- * all copies or substantial portions of the Software.
24
- *
25
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
31
- * THE SOFTWARE.
32
- */
33
- var A = {
34
- ICON_BUTTON_ON: "mdc-icon-button--on",
35
- ROOT: "mdc-icon-button"
36
- }, f = {
37
- ARIA_LABEL: "aria-label",
38
- ARIA_PRESSED: "aria-pressed",
39
- DATA_ARIA_LABEL_OFF: "data-aria-label-off",
40
- DATA_ARIA_LABEL_ON: "data-aria-label-on",
41
- CHANGE_EVENT: "MDCIconButtonToggle:change"
42
- };
43
- /**
44
- * @license
45
- * Copyright 2018 Google Inc.
46
- *
47
- * Permission is hereby granted, free of charge, to any person obtaining a copy
48
- * of this software and associated documentation files (the "Software"), to deal
49
- * in the Software without restriction, including without limitation the rights
50
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
- * copies of the Software, and to permit persons to whom the Software is
52
- * furnished to do so, subject to the following conditions:
53
- *
54
- * The above copyright notice and this permission notice shall be included in
55
- * all copies or substantial portions of the Software.
56
- *
57
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
63
- * THE SOFTWARE.
64
- */
65
- var Ae = (
66
- /** @class */
67
- function(e) {
68
- he(t, e);
69
- function t(n) {
70
- var l = e.call(this, de(de({}, t.defaultAdapter), n)) || this;
71
- return l.hasToggledAriaLabel = !1, l;
72
- }
73
- return Object.defineProperty(t, "cssClasses", {
74
- get: function() {
75
- return A;
76
- },
77
- enumerable: !1,
78
- configurable: !0
79
- }), Object.defineProperty(t, "strings", {
80
- get: function() {
81
- return f;
82
- },
83
- enumerable: !1,
84
- configurable: !0
85
- }), Object.defineProperty(t, "defaultAdapter", {
86
- get: function() {
87
- return {
88
- addClass: function() {
89
- },
90
- hasClass: function() {
91
- return !1;
92
- },
93
- notifyChange: function() {
94
- },
95
- removeClass: function() {
96
- },
97
- getAttr: function() {
98
- return null;
99
- },
100
- setAttr: function() {
101
- }
102
- };
103
- },
104
- enumerable: !1,
105
- configurable: !0
106
- }), t.prototype.init = function() {
107
- var n = this.adapter.getAttr(f.DATA_ARIA_LABEL_ON), l = this.adapter.getAttr(f.DATA_ARIA_LABEL_OFF);
108
- if (n && l) {
109
- if (this.adapter.getAttr(f.ARIA_PRESSED) !== null)
110
- throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");
111
- this.hasToggledAriaLabel = !0;
112
- } else
113
- this.adapter.setAttr(f.ARIA_PRESSED, String(this.isOn()));
114
- }, t.prototype.handleClick = function() {
115
- this.toggle(), this.adapter.notifyChange({ isOn: this.isOn() });
116
- }, t.prototype.isOn = function() {
117
- return this.adapter.hasClass(A.ICON_BUTTON_ON);
118
- }, t.prototype.toggle = function(n) {
119
- if (n === void 0 && (n = !this.isOn()), n ? this.adapter.addClass(A.ICON_BUTTON_ON) : this.adapter.removeClass(A.ICON_BUTTON_ON), this.hasToggledAriaLabel) {
120
- var l = n ? this.adapter.getAttr(f.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(f.DATA_ARIA_LABEL_OFF);
121
- this.adapter.setAttr(f.ARIA_LABEL, l || "");
122
- } else
123
- this.adapter.setAttr(f.ARIA_PRESSED, "" + n);
124
- }, t;
125
- }(Xe)
126
- );
127
- /**
128
- * @license
129
- * Copyright 2018 Google Inc.
130
- *
131
- * Permission is hereby granted, free of charge, to any person obtaining a copy
132
- * of this software and associated documentation files (the "Software"), to deal
133
- * in the Software without restriction, including without limitation the rights
134
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
135
- * copies of the Software, and to permit persons to whom the Software is
136
- * furnished to do so, subject to the following conditions:
137
- *
138
- * The above copyright notice and this permission notice shall be included in
139
- * all copies or substantial portions of the Software.
140
- *
141
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
142
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
143
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
144
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
145
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
146
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
147
- * THE SOFTWARE.
148
- */
149
- var Qe = Ae.strings, Ze = (
150
- /** @class */
151
- function(e) {
152
- he(t, e);
153
- function t() {
154
- var n = e !== null && e.apply(this, arguments) || this;
155
- return n.rippleComponent = n.createRipple(), n;
156
- }
157
- return t.attachTo = function(n) {
158
- return new t(n);
159
- }, t.prototype.initialSyncWithDOM = function() {
160
- var n = this;
161
- this.handleClick = function() {
162
- n.foundation.handleClick();
163
- }, this.listen("click", this.handleClick);
164
- }, t.prototype.destroy = function() {
165
- this.unlisten("click", this.handleClick), this.ripple.destroy(), e.prototype.destroy.call(this);
166
- }, t.prototype.getDefaultFoundation = function() {
167
- var n = this, l = {
168
- addClass: function(c) {
169
- return n.root.classList.add(c);
170
- },
171
- hasClass: function(c) {
172
- return n.root.classList.contains(c);
173
- },
174
- notifyChange: function(c) {
175
- n.emit(Qe.CHANGE_EVENT, c);
176
- },
177
- removeClass: function(c) {
178
- return n.root.classList.remove(c);
179
- },
180
- getAttr: function(c) {
181
- return n.root.getAttribute(c);
182
- },
183
- setAttr: function(c, s) {
184
- return n.root.setAttribute(c, s);
185
- }
186
- };
187
- return new Ae(l);
188
- }, Object.defineProperty(t.prototype, "ripple", {
189
- get: function() {
190
- return this.rippleComponent;
191
- },
192
- enumerable: !1,
193
- configurable: !0
194
- }), Object.defineProperty(t.prototype, "on", {
195
- get: function() {
196
- return this.foundation.isOn();
197
- },
198
- set: function(n) {
199
- this.foundation.toggle(n);
200
- },
201
- enumerable: !1,
202
- configurable: !0
203
- }), t.prototype.createRipple = function() {
204
- var n = new ye(this.root);
205
- return n.unbounded = !0, n;
206
- }, t;
207
- }(We)
208
- ), en = {
209
- /**
210
- * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
211
- *
212
- * Defaults to **false**.
213
- */
214
- active: a.bool,
215
- /**
216
- * Accessibility label for assistive technologies.
217
- *
218
- * Defaults to **null**.
219
- */
220
- ariaLabel: a.string,
221
- /**
222
- * Id of an element serving as a label for this IconButton instance. Used by assistive technologies.
223
- *
224
- * Defaults to **null**.
225
- */
226
- ariaLabelledBy: a.string,
227
- /**
228
- * The custom icon button notification badge to be rendered.
229
- *
230
- * Defaults to **undefined**.
231
- */
232
- badge: a.node,
233
- /**
234
- * The placement of the notification badge on the icon to start. It will flip to the opposite side if there is no room.
235
- *
236
- * Defaults to **'right-start'**.
237
- */
238
- badgePlacement: a.oneOf(["right-start", "left-start"]),
239
- /**
240
- * The content when when using the IconButton normally. Expects an `Icon` component. For toggle button functionality, use `toggleOn` and `toggleOff` instead.
241
- *
242
- * Defaults to **null**.
243
- */
244
- children: a.node,
245
- /**
246
- * The css class name to be passed through to the component markup.
247
- *
248
- * Defaults to **undefined**.
249
- */
250
- className: a.string,
251
- /**
252
- * @deprecated _Use iconSize='small' instead._
253
- *
254
- * Enables a smaller IconButton.
255
- *
256
- * Defaults to **undefined**.
257
- */
258
- dense: $e(a.bool, "IconButton", 'Use iconSize="small" instead.'),
259
- /**
260
- * Disables the icon button.
261
- *
262
- * Defaults to **false**.
263
- */
264
- disabled: a.bool,
265
- /**
266
- * For filled variants, choose between the two emphasis levels for icon Button to improve visual hierarchy and user interface clarity
267
- *
268
- * Defaults to **'high'**.
269
- */
270
- emphasis: a.oneOf(["high", "low"]),
271
- /**
272
- * For simple use-cases, this will automatically create the icon object. Does not work with `toggle='true'`
273
- *
274
- * Defaults to **null**.
275
- */
276
- icon: a.oneOfType([a.string, a.node]),
277
- /**
278
- * Pass props to the internal Icon instance. Ignored if you pass your own object.
279
- *
280
- * Defaults to **undefined**.
281
- */
282
- iconProps: a.object,
283
- /**
284
- * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
285
- *
286
- * Defaults to **'medium'**.
287
- */
288
- iconSize: a.oneOf(["xsmall", "small", "medium", "large", "xlarge"]),
289
- /**
290
- * Choose between the classic Material Icons (default), newer Material Symbols, or custom.
291
- *
292
- * Defaults to **'material-icons'**.
293
- */
294
- iconSource: a.oneOf(["material-icons", "material-symbols"]),
295
- /**
296
- * 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)
297
- *
298
- * Defaults to **'filled'**.
299
- */
300
- iconType: a.oneOf(["filled", "outlined", "rounded", "two-tone", "sharp"]),
301
- /**
302
- * Disables the hover effect.
303
- *
304
- * Defaults to **false**.
305
- */
306
- noHover: a.bool,
307
- /**
308
- * Fired when the user clicks the IconButton, will return toggle state, if applicable.
309
- *
310
- * Defaults to **null**.
311
- */
312
- onClick: a.func,
313
- /**
314
- * TabIndex of the button.
315
- *
316
- * Defaults to **0**.
317
- */
318
- tabIndex: a.number,
319
- /**
320
- * By default a button will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
321
- *
322
- * Defaults to **null**.
323
- */
324
- tag: a.oneOfType([a.string, a.elementType, a.instanceOf(k.Component)]),
325
- /**
326
- * The content to be rendered when the `IconButton` is toggled off. Expects an `Icon` component. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
327
- *
328
- * Defaults to **null**.
329
- */
330
- toggleOff: a.node,
331
- /**
332
- * The `aria-label` value to be read by a screen-reader when the button is toggled off. Example 'Add to Favorites'. Alternatively, `toggleOffAriaLabelledBy` may be used instead.
333
- *
334
- * Defaults to **null**.
335
- */
336
- toggleOffAriaLabel: a.string,
337
- /**
338
- * The `aria-labelledby`value when the button is toggled on. This should be the `id `of a parent element to be read by a screen reader instead of `aria-label`.
339
- *
340
- * Defaults to **null**.
341
- */
342
- toggleOffAriaLabelledBy: a.string,
343
- /**
344
- * The content to be rendered when the `IconButton` is toggled on. Expects an `Icon` component. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
345
- *
346
- * Defaults to **null**.
347
- */
348
- toggleOn: a.node,
349
- /**
350
- * The `aria-label` value to be read by a screen-reader when the button is toggled on. Example 'Remove from Favorites'. Alternatively, `toggleOnAriaLabelledBy` may be used instead.
351
- *
352
- * Defaults to **null**.
353
- */
354
- toggleOnAriaLabel: a.string,
355
- /**
356
- * The `aria-labelledby`value when the button is toggled on. This should be the `id` of a parent element to be read by a screen reader instead of `aria-label`.
357
- *
358
- * Defaults to **null**.
359
- */
360
- toggleOnAriaLabelledBy: a.string,
361
- /**
362
- * 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.
363
- *
364
- * Defaults to **empty string**.
365
- */
366
- variant: Ue(a.oneOf(["", "filled-danger-alt", "filled-danger", "filled-primary", "filled-secondary", "color-primary", "color-secondary", "color-on-dark", "color-on-unknown-black", "secondary-on-surface"]), ["primary-alt", "secondary-alt", "primary", "danger-alt", "danger"], "IconButton", "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'.")
367
- }, nn = {
368
- active: !1,
369
- ariaLabel: null,
370
- ariaLabelledBy: null,
371
- badge: void 0,
372
- badgePlacement: "right-start",
373
- children: null,
374
- className: void 0,
375
- dense: void 0,
376
- disabled: !1,
377
- emphasis: "high",
378
- icon: null,
379
- iconSize: "medium",
380
- iconSource: "material-icons",
381
- iconType: "filled",
382
- noHover: !1,
383
- onClick: null,
384
- tabIndex: 0,
385
- tag: null,
386
- toggleOff: null,
387
- toggleOffAriaLabel: null,
388
- toggleOffAriaLabelledBy: null,
389
- toggleOn: null,
390
- toggleOnAriaLabel: null,
391
- toggleOnAriaLabelledBy: null,
392
- variant: ""
393
- }, an = ["active", "ariaLabel", "ariaLabelledBy", "badge", "badgePlacement", "children", "className", "dense", "disabled", "emphasis", "icon", "iconSize", "iconType", "onClick", "noHover", "tabIndex", "iconSource", "tag", "toggleOff", "toggleOffAriaLabel", "toggleOffAriaLabelledBy", "toggleOn", "toggleOnAriaLabel", "toggleOnAriaLabelledBy", "variant", "iconProps"], r = nn, Oe = /* @__PURE__ */ Ge(function(e, t) {
394
- var n = e.active, l = n === void 0 ? r.active : n, c = e.ariaLabel, s = c === void 0 ? r.ariaLabel : c, S = e.ariaLabelledBy, R = S === void 0 ? r.ariaLabelledBy : S, P = e.badge, w = P === void 0 ? r.badge : P, D = e.badgePlacement, Le = D === void 0 ? r.badgePlacement : D, x = e.children, F = x === void 0 ? r.children : x, H = e.className, _e = H === void 0 ? r.className : H, j = e.dense, Te = j === void 0 ? r.dense : j, z = e.disabled, Ce = z === void 0 ? r.disabled : z, U = e.emphasis, $ = U === void 0 ? r.emphasis : U, M = e.icon, q = M === void 0 ? r.icon : M, G = e.iconSize, Be = G === void 0 ? r.iconSize : G, V = e.iconType, Ne = V === void 0 ? r.iconType : V, W = e.onClick, X = W === void 0 ? r.onClick : W, Y = e.noHover, Ee = Y === void 0 ? r.noHover : Y, J = e.tabIndex, Ie = J === void 0 ? r.tabIndex : J, K = e.iconSource, ke = K === void 0 ? r.iconSource : K, Q = e.tag, Se = Q === void 0 ? r.tag : Q, Z = e.toggleOff, ee = Z === void 0 ? r.toggleOff : Z, ne = e.toggleOffAriaLabel, O = ne === void 0 ? r.toggleOffAriaLabel : ne, ae = e.toggleOffAriaLabelledBy, L = ae === void 0 ? r.toggleOffAriaLabelledBy : ae, te = e.toggleOn, oe = te === void 0 ? r.toggleOn : te, re = e.toggleOnAriaLabel, _ = re === void 0 ? r.toggleOnAriaLabel : re, ie = e.toggleOnAriaLabelledBy, T = ie === void 0 ? r.toggleOnAriaLabelledBy : ie, le = e.variant, o = le === void 0 ? r.variant : le, Re = e.iconProps, Pe = Fe(e, an), h = B(), v = B(), m = B(), g = oe && ee, ce = o && Ke(o).call(o, "filled") > -1, p = Be;
395
- p === "medium" && Te && (p = "small"), w && (p === "small" || p === "xsmall") && (p = "medium"), Ve(t, function() {
396
- return h.current;
397
- }, []);
398
- var we = y("lmnt", "lmnt-icon-button", "mdc-icon-button", Ee && "lmnt-icon-button__no-hover", ce && $ === "low" && "lmnt-icon-button--emphasis-low", ce && $ === "high" && "lmnt-icon-button--emphasis-high", (o === "primary" || o === "primary-alt" || o === "secondary" || o === "danger" || o === "danger-alt" || o === "filled-primary" || o === "filled-primary-alt" || o === "filled-secondary" || o === "filled-danger" || o === "filled-danger-alt") && "lmnt-icon-button--fill", (o === "danger-alt" || o === "filled-danger-alt") && "lmnt-icon-button--fill-danger-alt", (o === "danger" || o === "filled-danger") && "lmnt-icon-button--fill-danger", (o === "primary" || o === "filled-primary") && "lmnt-icon-button--fill-primary", (o === "primary-alt" || o === "filled-secondary") && "lmnt-icon-button--fill-secondary", (o === "secondary-alt" || o === "color-on-dark") && "lmnt-icon-button--color-on-dark", o === "color-primary" && "lmnt-icon-button--color-primary", o === "color-secondary" && "lmnt-icon-button--color-secondary", o === "color-on-unknown-black" && "lmnt-icon-button--on-unknown-black", o === "secondary-on-surface" && "lmnt-icon-button--secondary-on-surface", p && "lmnt-icon-button--".concat(p), _e);
399
- ue(function() {
400
- return g ? m.current = Ze.attachTo(h.current) : (v.current = ye.attachTo(h.current), v.current.unbounded = !0), function() {
401
- g ? m.current.destroy() : v.current.destroy();
402
- };
403
- }, [m, g, v]), ue(function() {
404
- g && (m.current.on = l);
405
- }, [l, g, m]);
406
- var De = function(i) {
407
- X && X(g ? m.current.on : i);
408
- }, xe = Se || "button";
409
- return /* @__PURE__ */ k.createElement(xe, se({
410
- "aria-label": s,
411
- "aria-labelledby": R,
412
- "data-aria-label-on": _ || T || s,
413
- "data-aria-label-off": O || L || s,
414
- onClick: De,
415
- ref: h,
416
- className: we,
417
- disabled: Ce,
418
- tabIndex: Ie
419
- }, Pe), q && /* @__PURE__ */ k.createElement(je, se({
420
- badge: w,
421
- badgePlacement: Le,
422
- icon: q,
423
- iconSize: p,
424
- iconSource: ke,
425
- iconType: Ne
426
- }, Re)), F && C(F, function(i) {
427
- var d, u;
428
- return {
429
- className: y("mdc-icon-button__icon", i == null || (d = i.props) === null || d === void 0 ? void 0 : d.className),
430
- "aria-hidden": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-hidden"]) || s || R
431
- };
432
- }), g && l && C(oe, function(i) {
433
- var d, u, b;
434
- return {
435
- className: y("mdc-icon-button__icon", i == null || (d = i.props) === null || d === void 0 ? void 0 : d.className),
436
- "aria-label": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-label"]) || _ || T || s,
437
- "aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || _ || T || s
438
- };
439
- }), g && !l && C(ee, function(i) {
440
- var d, u, b;
441
- return {
442
- className: y("mdc-icon-button__icon", i == null || (d = i.props) === null || d === void 0 ? void 0 : d.className),
443
- "aria-label": (i == null || (u = i.props) === null || u === void 0 ? void 0 : u["aria-label"]) || O || L || s,
444
- "aria-hidden": (i == null || (b = i.props) === null || b === void 0 ? void 0 : b["aria-hidden"]) || O || L || s
445
- };
446
- }));
447
- });
448
- Oe.displayName = "IconButton";
449
- Oe.propTypes = en;
450
- var N, pe;
451
- function tn() {
452
- if (pe) return N;
453
- pe = 1;
454
- var e = /* @__PURE__ */ Me(), t = /* @__PURE__ */ qe(), n = /* @__PURE__ */ ve(), l = n("match");
455
- return N = function(c) {
456
- var s;
457
- return e(c) && ((s = c[l]) !== void 0 ? !!s : t(c) === "RegExp");
458
- }, N;
459
- }
460
- var E, be;
461
- function sn() {
462
- if (be) return E;
463
- be = 1;
464
- var e = /* @__PURE__ */ tn(), t = TypeError;
465
- return E = function(n) {
466
- if (e(n))
467
- throw new t("The method doesn't accept regular expressions");
468
- return n;
469
- }, E;
470
- }
471
- var I, me;
472
- function dn() {
473
- if (me) return I;
474
- me = 1;
475
- var e = /* @__PURE__ */ ve(), t = e("match");
476
- return I = function(n) {
477
- var l = /./;
478
- try {
479
- "/./"[n](l);
480
- } catch {
481
- try {
482
- return l[t] = !1, "/./"[n](l);
483
- } catch {
484
- }
485
- }
486
- return !1;
487
- }, I;
488
- }
489
- export {
490
- sn as h,
491
- Ke as j,
492
- Oe as p,
493
- dn as q
494
- };