@hortiview/default-components 1.4.0 → 1.4.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 (48) hide show
  1. package/README.md +1 -1
  2. package/dist/{Iconify-Cjdr-ccS.js → Iconify-CUZc8WnW.js} +17 -16
  3. package/dist/InfoCard-CFmkh7DJ.js +58 -0
  4. package/dist/{LoadingSpinner-FRQEZvxs.js → LoadingSpinner-DVBQ1tGJ.js} +178 -192
  5. package/dist/OfflineView-DHtzNLwt-BmxTfGZq.js +46 -0
  6. package/dist/assets/InfoCard.css +1 -0
  7. package/dist/assets/OfflineView-DHtzNLwt.css +1 -0
  8. package/dist/{component-DsB0poTj-BDGiEcbP.js → component-DsB0poTj-CeLHB9Ok.js} +3 -3
  9. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +1337 -505
  10. package/dist/components/DefaultFormSelect/DefaultFormSelect.js +25 -25
  11. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
  12. package/dist/components/GenericTable/GenericTable.js +11524 -9875
  13. package/dist/components/HealthChecks/DataBaseHealthCheck.d.ts +2 -2
  14. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  15. package/dist/components/HealthChecks/DefaultHealthCheck.d.ts +2 -2
  16. package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
  17. package/dist/components/HealthChecks/IotServiceHealthCheck.d.ts +2 -2
  18. package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
  19. package/dist/components/HealthChecks/PlatformHealthCheck.d.ts +2 -2
  20. package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
  21. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
  22. package/dist/components/OfflineView/OfflineView.js +2 -2
  23. package/dist/index.es-0QJC9VS2-CNPew9LK.js +360 -0
  24. package/dist/{index.es--yyG47az-DBKBm3yD.js → index.es-BGordhUK-C36NK84Q.js} +400 -365
  25. package/dist/index.es-Bg8hxXM8-BlFd894m.js +1083 -0
  26. package/dist/index.es-Bo1Rhtyb-B650l9Yk.js +79 -0
  27. package/dist/index.es-CK4oZMKs-Da8pin7D.js +14077 -0
  28. package/dist/{index.es-U5-b20Gv-ChQ_O81C.js → index.es-Cq04gn3U-Bvzrqtm6.js} +369 -535
  29. package/dist/{omit-1Eom1PmQ-BLY9iMqj.js → index.es-DENZVv7_-PUEN9sIa.js} +495 -869
  30. package/dist/index.es-IXyb5F6n-B5afcHX8.js +452 -0
  31. package/dist/isTypedArray-Dw_IY7Zq-BZ-4N8-Z.js +210 -0
  32. package/dist/main.d.ts +3 -2
  33. package/dist/main.js +8 -8
  34. package/dist/slicedToArray-BWk2gTCn-Cfzj7tjm.js +432 -0
  35. package/dist/useHelperText-3ahu6tTS.js +391 -0
  36. package/dist/useTranslation-CVaIJbcK.js +5277 -0
  37. package/package.json +4 -4
  38. package/dist/HealthCheckFailed-CqLYAwpc.js +0 -47
  39. package/dist/OfflineView-HbuDPpQL-kqlzfoUS.js +0 -46
  40. package/dist/assets/HealthCheckFailed.css +0 -1
  41. package/dist/assets/OfflineView-HbuDPpQL.css +0 -1
  42. package/dist/index.es-Bx1E5MPK-CaV59rEP.js +0 -344
  43. package/dist/index.es-CzUKBF7E-C0X-mcdY.js +0 -13567
  44. package/dist/index.es-D-ph6ImM-CWxTa_iD.js +0 -63
  45. package/dist/index.es-DDo_AHL0-VqD9ikmU.js +0 -1033
  46. package/dist/index.es-Kg9soDed-BkTwDySy.js +0 -440
  47. package/dist/useHelperText-DD9_Dtkk.js +0 -21
  48. package/dist/useTranslation-B_ODv8uN.js +0 -4306
@@ -1,440 +0,0 @@
1
- import { I as A, c as X, L as Y, r as C, h as w, f as Z, p as P, a as ee, y as ne, j as n, m as te } from "./useTranslation-B_ODv8uN.js";
2
- import N, { forwardRef as ae, useRef as T, useImperativeHandle as re, useEffect as S } from "react";
3
- import { U as x } from "./component-DsB0poTj-BDGiEcbP.js";
4
- /**
5
- * @license
6
- * Copyright 2018 Google Inc.
7
- *
8
- * Permission is hereby granted, free of charge, to any person obtaining a copy
9
- * of this software and associated documentation files (the "Software"), to deal
10
- * in the Software without restriction, including without limitation the rights
11
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- * copies of the Software, and to permit persons to whom the Software is
13
- * furnished to do so, subject to the following conditions:
14
- *
15
- * The above copyright notice and this permission notice shall be included in
16
- * all copies or substantial portions of the Software.
17
- *
18
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- * THE SOFTWARE.
25
- */
26
- var h = {
27
- ICON_BUTTON_ON: "mdc-icon-button--on",
28
- ROOT: "mdc-icon-button"
29
- }, c = {
30
- ARIA_LABEL: "aria-label",
31
- ARIA_PRESSED: "aria-pressed",
32
- DATA_ARIA_LABEL_OFF: "data-aria-label-off",
33
- DATA_ARIA_LABEL_ON: "data-aria-label-on",
34
- CHANGE_EVENT: "MDCIconButtonToggle:change"
35
- };
36
- /**
37
- * @license
38
- * Copyright 2018 Google Inc.
39
- *
40
- * Permission is hereby granted, free of charge, to any person obtaining a copy
41
- * of this software and associated documentation files (the "Software"), to deal
42
- * in the Software without restriction, including without limitation the rights
43
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44
- * copies of the Software, and to permit persons to whom the Software is
45
- * furnished to do so, subject to the following conditions:
46
- *
47
- * The above copyright notice and this permission notice shall be included in
48
- * all copies or substantial portions of the Software.
49
- *
50
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
56
- * THE SOFTWARE.
57
- */
58
- var F = (
59
- /** @class */
60
- function(d) {
61
- w(a, d);
62
- function a(e) {
63
- var l = d.call(this, P(P({}, a.defaultAdapter), e)) || this;
64
- return l.hasToggledAriaLabel = !1, l;
65
- }
66
- return Object.defineProperty(a, "cssClasses", {
67
- get: function() {
68
- return h;
69
- },
70
- enumerable: !1,
71
- configurable: !0
72
- }), Object.defineProperty(a, "strings", {
73
- get: function() {
74
- return c;
75
- },
76
- enumerable: !1,
77
- configurable: !0
78
- }), Object.defineProperty(a, "defaultAdapter", {
79
- get: function() {
80
- return {
81
- addClass: function() {
82
- },
83
- hasClass: function() {
84
- return !1;
85
- },
86
- notifyChange: function() {
87
- },
88
- removeClass: function() {
89
- },
90
- getAttr: function() {
91
- return null;
92
- },
93
- setAttr: function() {
94
- }
95
- };
96
- },
97
- enumerable: !1,
98
- configurable: !0
99
- }), a.prototype.init = function() {
100
- var e = this.adapter.getAttr(c.DATA_ARIA_LABEL_ON), l = this.adapter.getAttr(c.DATA_ARIA_LABEL_OFF);
101
- if (e && l) {
102
- if (this.adapter.getAttr(c.ARIA_PRESSED) !== null)
103
- throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");
104
- this.hasToggledAriaLabel = !0;
105
- } else
106
- this.adapter.setAttr(c.ARIA_PRESSED, String(this.isOn()));
107
- }, a.prototype.handleClick = function() {
108
- this.toggle(), this.adapter.notifyChange({ isOn: this.isOn() });
109
- }, a.prototype.isOn = function() {
110
- return this.adapter.hasClass(h.ICON_BUTTON_ON);
111
- }, a.prototype.toggle = function(e) {
112
- if (e === void 0 && (e = !this.isOn()), e ? this.adapter.addClass(h.ICON_BUTTON_ON) : this.adapter.removeClass(h.ICON_BUTTON_ON), this.hasToggledAriaLabel) {
113
- var l = e ? this.adapter.getAttr(c.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(c.DATA_ARIA_LABEL_OFF);
114
- this.adapter.setAttr(c.ARIA_LABEL, l || "");
115
- } else
116
- this.adapter.setAttr(c.ARIA_PRESSED, "" + e);
117
- }, a;
118
- }(ee)
119
- );
120
- /**
121
- * @license
122
- * Copyright 2018 Google Inc.
123
- *
124
- * Permission is hereby granted, free of charge, to any person obtaining a copy
125
- * of this software and associated documentation files (the "Software"), to deal
126
- * in the Software without restriction, including without limitation the rights
127
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
128
- * copies of the Software, and to permit persons to whom the Software is
129
- * furnished to do so, subject to the following conditions:
130
- *
131
- * The above copyright notice and this permission notice shall be included in
132
- * all copies or substantial portions of the Software.
133
- *
134
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
135
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
136
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
137
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
138
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
139
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
140
- * THE SOFTWARE.
141
- */
142
- var le = F.strings, oe = (
143
- /** @class */
144
- function(d) {
145
- w(a, d);
146
- function a() {
147
- var e = d !== null && d.apply(this, arguments) || this;
148
- return e.rippleComponent = e.createRipple(), e;
149
- }
150
- return a.attachTo = function(e) {
151
- return new a(e);
152
- }, a.prototype.initialSyncWithDOM = function() {
153
- var e = this;
154
- this.handleClick = function() {
155
- e.foundation.handleClick();
156
- }, this.listen("click", this.handleClick);
157
- }, a.prototype.destroy = function() {
158
- this.unlisten("click", this.handleClick), this.ripple.destroy(), d.prototype.destroy.call(this);
159
- }, a.prototype.getDefaultFoundation = function() {
160
- var e = this, l = {
161
- addClass: function(o) {
162
- return e.root.classList.add(o);
163
- },
164
- hasClass: function(o) {
165
- return e.root.classList.contains(o);
166
- },
167
- notifyChange: function(o) {
168
- e.emit(le.CHANGE_EVENT, o);
169
- },
170
- removeClass: function(o) {
171
- return e.root.classList.remove(o);
172
- },
173
- getAttr: function(o) {
174
- return e.root.getAttribute(o);
175
- },
176
- setAttr: function(o, b) {
177
- return e.root.setAttribute(o, b);
178
- }
179
- };
180
- return new F(l);
181
- }, Object.defineProperty(a.prototype, "ripple", {
182
- get: function() {
183
- return this.rippleComponent;
184
- },
185
- enumerable: !1,
186
- configurable: !0
187
- }), Object.defineProperty(a.prototype, "on", {
188
- get: function() {
189
- return this.foundation.isOn();
190
- },
191
- set: function(e) {
192
- this.foundation.toggle(e);
193
- },
194
- enumerable: !1,
195
- configurable: !0
196
- }), a.prototype.createRipple = function() {
197
- var e = new x(this.root);
198
- return e.unbounded = !0, e;
199
- }, a;
200
- }(Z)
201
- );
202
- const ie = {
203
- /**
204
- * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
205
- *
206
- * Defaults to **false**.
207
- */
208
- active: n.bool,
209
- /**
210
- * Accessibility label for assistive technologies.
211
- *
212
- * Defaults to **null**.
213
- */
214
- ariaLabel: n.string,
215
- /**
216
- * Id of an element serving as a label for this IconButton instance. Used by assistive technologies.
217
- *
218
- * Defaults to **null**.
219
- */
220
- ariaLabelledBy: n.string,
221
- /**
222
- * The custom icon button notification badge to be rendered.
223
- *
224
- * Defaults to **undefined**.
225
- */
226
- badge: n.node,
227
- /**
228
- * The placement of the notification badge on the icon to start. It will flip to the opposite side if there is no room.
229
- *
230
- * Defaults to **'right-start'**.
231
- */
232
- badgePlacement: n.oneOf(["right-start", "left-start"]),
233
- /**
234
- * The content when when using the IconButton normally. Expects an `Icon` component. For toggle button functionality, use `toggleOn` and `toggleOff` instead.
235
- *
236
- * Defaults to **null**.
237
- */
238
- children: n.node,
239
- /**
240
- * The css class name to be passed through to the component markup.
241
- *
242
- * Defaults to **undefined**.
243
- */
244
- className: n.string,
245
- /**
246
- * @deprecated _Use iconSize='small' instead._
247
- *
248
- * Enables a smaller IconButton.
249
- *
250
- * Defaults to **undefined**.
251
- */
252
- dense: te(n.bool, "IconButton", 'Use iconSize="small" instead.'),
253
- /**
254
- * Disables the icon button.
255
- *
256
- * Defaults to **false**.
257
- */
258
- disabled: n.bool,
259
- /**
260
- * For simple use-cases, this will automatically create the icon object. Does not work with `toggle='true'`
261
- *
262
- * Defaults to **null**.
263
- */
264
- icon: n.oneOfType([n.string, n.node]),
265
- /**
266
- * One of 'xsmall', 'small', 'medium', 'large', and 'xlarge' will change the size of the icon. Defaults to medium.
267
- *
268
- * Defaults to **'medium'**.
269
- */
270
- iconSize: n.oneOf(["xsmall", "small", "medium", "large", "xlarge"]),
271
- /**
272
- * The icon type to be rendered. Not all icons have every type. To see which icons are available for different types see [Material Icons docs](https://material.io/tools/icons)
273
- *
274
- * Defaults to **'filled'**.
275
- */
276
- iconType: n.oneOf(["filled", "outlined", "rounded", "two-tone", "sharp"]),
277
- /**
278
- * Fired when the user clicks the IconButton, will return toggle state, if applicable.
279
- *
280
- * Defaults to **null**.
281
- */
282
- onClick: n.func,
283
- /**
284
- * TabIndex of the button.
285
- *
286
- * Defaults to **0**.
287
- */
288
- tabIndex: n.number,
289
- /**
290
- * By default a button will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
291
- *
292
- * Defaults to **null**.
293
- */
294
- tag: n.oneOfType([n.string, n.elementType, n.instanceOf(N.Component)]),
295
- /**
296
- * 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.
297
- *
298
- * Defaults to **null**.
299
- */
300
- toggleOff: n.node,
301
- /**
302
- * 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.
303
- *
304
- * Defaults to **null**.
305
- */
306
- toggleOffAriaLabel: n.string,
307
- /**
308
- * 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`.
309
- *
310
- * Defaults to **null**.
311
- */
312
- toggleOffAriaLabelledBy: n.string,
313
- /**
314
- * 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.
315
- *
316
- * Defaults to **null**.
317
- */
318
- toggleOn: n.node,
319
- /**
320
- * 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.
321
- *
322
- * Defaults to **null**.
323
- */
324
- toggleOnAriaLabel: n.string,
325
- /**
326
- * 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`.
327
- *
328
- * Defaults to **null**.
329
- */
330
- toggleOnAriaLabelledBy: n.string,
331
- /**
332
- * 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.
333
- *
334
- * Defaults to **empty string**.
335
- */
336
- variant: ne(n.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'.")
337
- }, se = {
338
- active: !1,
339
- ariaLabel: null,
340
- ariaLabelledBy: null,
341
- badge: void 0,
342
- badgePlacement: "right-start",
343
- children: null,
344
- className: void 0,
345
- dense: void 0,
346
- disabled: !1,
347
- icon: null,
348
- iconSize: "medium",
349
- iconType: "filled",
350
- tabIndex: 0,
351
- tag: null,
352
- toggleOff: null,
353
- toggleOffAriaLabel: null,
354
- toggleOffAriaLabelledBy: null,
355
- toggleOn: null,
356
- toggleOnAriaLabel: null,
357
- toggleOnAriaLabelledBy: null,
358
- variant: ""
359
- }, B = /* @__PURE__ */ ae((d, a) => {
360
- const {
361
- active: e,
362
- ariaLabel: l,
363
- ariaLabelledBy: o,
364
- badge: b,
365
- badgePlacement: j,
366
- children: I,
367
- className: U,
368
- dense: z,
369
- disabled: H,
370
- icon: E,
371
- iconSize: G,
372
- iconType: M,
373
- onClick: k,
374
- noHover: V,
375
- tabIndex: $,
376
- tag: W,
377
- toggleOff: R,
378
- toggleOffAriaLabel: O,
379
- toggleOffAriaLabelledBy: v,
380
- toggleOn: D,
381
- toggleOnAriaLabel: _,
382
- toggleOnAriaLabelledBy: L,
383
- variant: t,
384
- ...q
385
- } = d, m = T(), y = T(), p = T(), u = D && R;
386
- let f = G;
387
- f === "medium" && z && (f = "small"), b && (f === "small" || f === "xsmall") && (f = "medium"), re(a, () => m.current, []);
388
- const J = A("lmnt", "lmnt-icon-button", "mdc-icon-button", V && "lmnt-icon-button__no-hover", (t === "primary" || t === "primary-alt" || t === "secondary" || t === "danger" || t === "danger-alt" || t === "filled-primary" || t === "filled-primary-alt" || t === "filled-secondary" || t === "filled-danger" || t === "filled-danger-alt") && "lmnt-icon-button--fill", (t === "danger-alt" || t === "filled-danger-alt") && "lmnt-icon-button--fill-danger-alt", (t === "danger" || t === "filled-danger") && "lmnt-icon-button--fill-danger", (t === "primary" || t === "filled-primary") && "lmnt-icon-button--fill-primary", (t === "primary-alt" || t === "filled-secondary") && "lmnt-icon-button--fill-secondary", (t === "secondary-alt" || t === "color-on-dark") && "lmnt-icon-button--color-on-dark", t === "color-primary" && "lmnt-icon-button--color-primary", t === "color-secondary" && "lmnt-icon-button--color-secondary", t === "color-on-unknown-black" && "lmnt-icon-button--on-unknown-black", t === "secondary-on-surface" && "lmnt-icon-button--secondary-on-surface", f && `lmnt-icon-button--${f}`, U);
389
- S(() => (u ? p.current = oe.attachTo(m.current) : (y.current = x.attachTo(m.current), y.current.unbounded = !0), () => {
390
- u ? p.current.destroy() : y.current.destroy();
391
- }), [p, u, y]), S(() => {
392
- u && (p.current.on = e);
393
- }, [e, u, p]);
394
- const K = (r) => {
395
- k && k(u ? p.current.on : r);
396
- }, Q = W || "button";
397
- return /* @__PURE__ */ N.createElement(Q, X({
398
- "aria-label": l,
399
- "aria-labelledby": o,
400
- "data-aria-label-on": _ || L || l,
401
- "data-aria-label-off": O || v || l,
402
- onClick: K,
403
- ref: m,
404
- className: J,
405
- disabled: H,
406
- tabIndex: $
407
- }, q), E && /* @__PURE__ */ N.createElement(Y, {
408
- badge: b,
409
- badgePlacement: j,
410
- icon: E,
411
- iconSize: f,
412
- iconType: M
413
- }), I && C(I, (r) => {
414
- var i, s;
415
- return {
416
- className: A("mdc-icon-button__icon", r == null || (i = r.props) === null || i === void 0 ? void 0 : i.className),
417
- "aria-hidden": (r == null || (s = r.props) === null || s === void 0 ? void 0 : s["aria-hidden"]) || l || o
418
- };
419
- }), u && e && C(D, (r) => {
420
- var i, s, g;
421
- return {
422
- className: A("mdc-icon-button__icon", r == null || (i = r.props) === null || i === void 0 ? void 0 : i.className),
423
- "aria-label": (r == null || (s = r.props) === null || s === void 0 ? void 0 : s["aria-label"]) || _ || L || l,
424
- "aria-hidden": (r == null || (g = r.props) === null || g === void 0 ? void 0 : g["aria-hidden"]) || _ || L || l
425
- };
426
- }), u && !e && C(R, (r) => {
427
- var i, s, g;
428
- return {
429
- className: A("mdc-icon-button__icon", r == null || (i = r.props) === null || i === void 0 ? void 0 : i.className),
430
- "aria-label": (r == null || (s = r.props) === null || s === void 0 ? void 0 : s["aria-label"]) || O || v || l,
431
- "aria-hidden": (r == null || (g = r.props) === null || g === void 0 ? void 0 : g["aria-hidden"]) || O || v || l
432
- };
433
- }));
434
- });
435
- B.displayName = "IconButton";
436
- B.propTypes = ie;
437
- B.defaultProps = se;
438
- export {
439
- B
440
- };
@@ -1,21 +0,0 @@
1
- import { g as u } from "./useTranslation-B_ODv8uN.js";
2
- import { Z as f } from "./index.es-U5-b20Gv-ChQ_O81C.js";
3
- import { useMemo as n } from "react";
4
- import { useFormContext as l } from "react-hook-form";
5
- var x = f();
6
- const c = /* @__PURE__ */ u(x), d = ({
7
- propertyName: s,
8
- requiredText: r,
9
- maxLength: o,
10
- helperText: t = null,
11
- hasCharacterCount: m = !1
12
- }) => {
13
- const {
14
- formState: { errors: a }
15
- } = l(), e = c(a, s), p = n(() => e ? e.message || "Invalid input" : t ?? r, [e, t, r]), i = n(() => !!(e || m && o || r || t), [e, m, o, r, t]);
16
- return { helperText: p, helperTextPersistent: i };
17
- };
18
- export {
19
- c as a,
20
- d as v
21
- };