@hortiview/default-components 1.4.4 → 1.5.1

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