@hortiview/default-components 1.0.0 → 1.0.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 (47) hide show
  1. package/README.md +189 -50
  2. package/dist/HealthCheckFailed-j1XFU5px.js +1839 -0
  3. package/dist/InternationalizationWrapper-BtWuzVFG.js +41 -0
  4. package/dist/LoadingSpinner-BxqY1o89.js +514 -0
  5. package/dist/assets/DefaultFormNumber.css +1 -0
  6. package/dist/assets/HealthCheckFailed.css +1 -0
  7. package/dist/assets/LoadingSpinner.css +1 -0
  8. package/dist/assets/i18n.css +1 -0
  9. package/dist/assets/index.css +1 -0
  10. package/dist/component-DsB0poTj-B4NF-JCy.js +530 -0
  11. package/dist/components/DefaultFormNumber/DefaultFormNumber.d.ts +5 -0
  12. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +3600 -0
  13. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.d.ts +4 -0
  14. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +12 -0
  15. package/dist/components/HealthChecks/DataBaseHealthCheck.d.ts +4 -0
  16. package/dist/components/HealthChecks/DataBaseHealthCheck.js +20 -0
  17. package/dist/components/HealthChecks/DefaultHealthCheck.d.ts +4 -0
  18. package/dist/components/HealthChecks/DefaultHealthCheck.js +20 -0
  19. package/dist/components/HealthChecks/HealthCheck.test.js +23910 -0
  20. package/dist/components/HealthChecks/IotServiceHealthCheck.d.ts +4 -0
  21. package/dist/components/HealthChecks/IotServiceHealthCheck.js +20 -0
  22. package/dist/components/HealthChecks/PlatformHealthCheck.d.ts +4 -0
  23. package/dist/components/HealthChecks/PlatformHealthCheck.js +20 -0
  24. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.d.ts +4 -0
  25. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +19 -0
  26. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.d.ts +14 -0
  27. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +8 -0
  28. package/dist/i18n-DIprVS_u.js +1749 -0
  29. package/dist/i18n.d.ts +2 -0
  30. package/dist/i18n.js +7 -0
  31. package/dist/index.es-D-CKRzIB-Cv9zF1oG.js +1029 -0
  32. package/dist/locales/en-US.js +11 -0
  33. package/dist/locales/en-US.json.d.ts +22 -0
  34. package/dist/locales/es-MX.js +12 -0
  35. package/dist/locales/es-MX.json.d.ts +24 -0
  36. package/dist/locales/tr-TR.js +12 -0
  37. package/dist/locales/tr-TR.json.d.ts +24 -0
  38. package/dist/magic-string.es-D4UQQyt0.js +859 -0
  39. package/dist/main.d.ts +14 -0
  40. package/dist/main.js +16 -4
  41. package/dist/useTranslation-Bh0VR1ML.js +4070 -0
  42. package/package.json +144 -67
  43. package/dist/assets/App.css +0 -1
  44. package/dist/assets/Button.css +0 -1
  45. package/dist/components/App/App.test.js +0 -32948
  46. package/dist/components/Button/Button.js +0 -11
  47. package/dist/components/Label/Label.js +0 -7
@@ -0,0 +1,41 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { createContext as n, useMemo as c, createElement as m, useEffect as i } from "react";
3
+ import { i as t } from "./i18n-DIprVS_u.js";
4
+ const p = n();
5
+ class N {
6
+ constructor() {
7
+ this.usedNamespaces = {};
8
+ }
9
+ addUsedNamespaces(s) {
10
+ s.forEach((a) => {
11
+ this.usedNamespaces[a] || (this.usedNamespaces[a] = !0);
12
+ });
13
+ }
14
+ getUsedNamespaces() {
15
+ return Object.keys(this.usedNamespaces);
16
+ }
17
+ }
18
+ function u({
19
+ i18n: e,
20
+ defaultNS: s,
21
+ children: a
22
+ }) {
23
+ const o = c(() => ({
24
+ i18n: e,
25
+ defaultNS: s
26
+ }), [e, s]);
27
+ return m(p.Provider, {
28
+ value: o
29
+ }, a);
30
+ }
31
+ const g = ({ children: e }) => /* @__PURE__ */ r(u, { i18n: t, children: e }), x = (e) => {
32
+ i(() => {
33
+ t.changeLanguage(e);
34
+ }, [e]);
35
+ };
36
+ export {
37
+ g as I,
38
+ N as R,
39
+ p as a,
40
+ x as u
41
+ };
@@ -0,0 +1,514 @@
1
+ import { jsx as c, jsxs as R } from "react/jsx-runtime";
2
+ import { U as M, N as j, _ as W, h as P, p as I, a as U, f as F, R as l, b as H } from "./useTranslation-Bh0VR1ML.js";
3
+ import t, { useState as V, useEffect as k, useMemo as K, forwardRef as q, useRef as O, useImperativeHandle as Y, useCallback as Z } from "react";
4
+ import { l as G, f as B, n as J, a as Q } from "./index.es-D-CKRzIB-Cv9zF1oG.js";
5
+ import './assets/LoadingSpinner.css';const X = "_loadingBigOverlay_7dxo1_1", ee = "_bigLoadSpinnerCard_7dxo1_12", re = "_bigLoadSpinnerCardText_7dxo1_27", te = "_logo_7dxo1_33", x = {
6
+ loadingBigOverlay: X,
7
+ bigLoadSpinnerCard: ee,
8
+ bigLoadSpinnerCardText: re,
9
+ logo: te
10
+ }, se = ({ text: a }) => /* @__PURE__ */ R("div", { className: x.bigLoadSpinnerCard, role: "progressbar", "data-testid": "loading-spinner", children: [
11
+ /* @__PURE__ */ c(G, { icon: "hortiview", className: x.logo, "data-testid": "logo-icon" }),
12
+ /* @__PURE__ */ c(B, { tag: "p", bold: !0, level: 1, className: x.bigLoadSpinnerCardText, children: a })
13
+ ] }), ae = (a) => /* @__PURE__ */ c("div", { className: x.loadingBigOverlay, children: /* @__PURE__ */ c(se, { ...a }) });
14
+ var p = {
15
+ INDETERMINATE_CLASS: "mdc-circular-progress--indeterminate",
16
+ CLOSED_CLASS: "mdc-circular-progress--closed"
17
+ }, d = {
18
+ ARIA_HIDDEN: "aria-hidden",
19
+ ARIA_VALUENOW: "aria-valuenow",
20
+ DETERMINATE_CIRCLE_SELECTOR: ".mdc-circular-progress__determinate-circle",
21
+ RADIUS: "r",
22
+ STROKE_DASHOFFSET: "stroke-dashoffset"
23
+ };
24
+ /**
25
+ * @license
26
+ * Copyright 2020 Google Inc.
27
+ *
28
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
29
+ * of this software and associated documentation files (the "Software"), to deal
30
+ * in the Software without restriction, including without limitation the rights
31
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ * copies of the Software, and to permit persons to whom the Software is
33
+ * furnished to do so, subject to the following conditions:
34
+ *
35
+ * The above copyright notice and this permission notice shall be included in
36
+ * all copies or substantial portions of the Software.
37
+ *
38
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
39
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
40
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
41
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
42
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
43
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
44
+ * THE SOFTWARE.
45
+ */
46
+ var T = (
47
+ /** @class */
48
+ function(a) {
49
+ P(e, a);
50
+ function e(r) {
51
+ return a.call(this, I(I({}, e.defaultAdapter), r)) || this;
52
+ }
53
+ return Object.defineProperty(e, "cssClasses", {
54
+ get: function() {
55
+ return p;
56
+ },
57
+ enumerable: !1,
58
+ configurable: !0
59
+ }), Object.defineProperty(e, "strings", {
60
+ get: function() {
61
+ return d;
62
+ },
63
+ enumerable: !1,
64
+ configurable: !0
65
+ }), Object.defineProperty(e, "defaultAdapter", {
66
+ get: function() {
67
+ return {
68
+ addClass: function() {
69
+ },
70
+ getDeterminateCircleAttribute: function() {
71
+ return null;
72
+ },
73
+ hasClass: function() {
74
+ return !1;
75
+ },
76
+ removeClass: function() {
77
+ },
78
+ removeAttribute: function() {
79
+ },
80
+ setAttribute: function() {
81
+ },
82
+ setDeterminateCircleAttribute: function() {
83
+ }
84
+ };
85
+ },
86
+ enumerable: !1,
87
+ configurable: !0
88
+ }), e.prototype.init = function() {
89
+ this.closed = this.adapter.hasClass(p.CLOSED_CLASS), this.determinate = !this.adapter.hasClass(p.INDETERMINATE_CLASS), this.progress = 0, this.determinate && this.adapter.setAttribute(d.ARIA_VALUENOW, this.progress.toString()), this.radius = Number(this.adapter.getDeterminateCircleAttribute(d.RADIUS));
90
+ }, e.prototype.setDeterminate = function(r) {
91
+ this.determinate = r, this.determinate ? (this.adapter.removeClass(p.INDETERMINATE_CLASS), this.setProgress(this.progress)) : (this.adapter.addClass(p.INDETERMINATE_CLASS), this.adapter.removeAttribute(d.ARIA_VALUENOW));
92
+ }, e.prototype.isDeterminate = function() {
93
+ return this.determinate;
94
+ }, e.prototype.setProgress = function(r) {
95
+ if (this.progress = r, this.determinate) {
96
+ var u = (1 - this.progress) * (2 * Math.PI * this.radius);
97
+ this.adapter.setDeterminateCircleAttribute(d.STROKE_DASHOFFSET, "" + u), this.adapter.setAttribute(d.ARIA_VALUENOW, this.progress.toString());
98
+ }
99
+ }, e.prototype.getProgress = function() {
100
+ return this.progress;
101
+ }, e.prototype.open = function() {
102
+ this.closed = !1, this.adapter.removeClass(p.CLOSED_CLASS), this.adapter.removeAttribute(d.ARIA_HIDDEN);
103
+ }, e.prototype.close = function() {
104
+ this.closed = !0, this.adapter.addClass(p.CLOSED_CLASS), this.adapter.setAttribute(d.ARIA_HIDDEN, "true");
105
+ }, e.prototype.isClosed = function() {
106
+ return this.closed;
107
+ }, e;
108
+ }(U)
109
+ );
110
+ /**
111
+ * @license
112
+ * Copyright 2020 Google Inc.
113
+ *
114
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
115
+ * of this software and associated documentation files (the "Software"), to deal
116
+ * in the Software without restriction, including without limitation the rights
117
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
118
+ * copies of the Software, and to permit persons to whom the Software is
119
+ * furnished to do so, subject to the following conditions:
120
+ *
121
+ * The above copyright notice and this permission notice shall be included in
122
+ * all copies or substantial portions of the Software.
123
+ *
124
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
126
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
127
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
128
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
129
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
130
+ * THE SOFTWARE.
131
+ */
132
+ var ie = (
133
+ /** @class */
134
+ function(a) {
135
+ P(e, a);
136
+ function e() {
137
+ return a !== null && a.apply(this, arguments) || this;
138
+ }
139
+ return e.prototype.initialize = function() {
140
+ this.determinateCircle_ = this.root.querySelector(T.strings.DETERMINATE_CIRCLE_SELECTOR);
141
+ }, e.attachTo = function(r) {
142
+ return new e(r);
143
+ }, Object.defineProperty(e.prototype, "determinate", {
144
+ /**
145
+ * Sets whether the progress indicator is in determinate mode.
146
+ * @param isDeterminate Whether the indicator should be determinate.
147
+ */
148
+ set: function(r) {
149
+ this.foundation.setDeterminate(r);
150
+ },
151
+ enumerable: !1,
152
+ configurable: !0
153
+ }), Object.defineProperty(e.prototype, "progress", {
154
+ /**
155
+ * Sets the current progress value. In indeterminate mode, this has no
156
+ * visual effect but will be reflected if the indicator is switched to
157
+ * determinate mode.
158
+ * @param value The current progress value, which must be between 0 and 1.
159
+ */
160
+ set: function(r) {
161
+ this.foundation.setProgress(r);
162
+ },
163
+ enumerable: !1,
164
+ configurable: !0
165
+ }), Object.defineProperty(e.prototype, "isClosed", {
166
+ /**
167
+ * Whether the progress indicator is hidden.
168
+ */
169
+ get: function() {
170
+ return this.foundation.isClosed();
171
+ },
172
+ enumerable: !1,
173
+ configurable: !0
174
+ }), e.prototype.open = function() {
175
+ this.foundation.open();
176
+ }, e.prototype.close = function() {
177
+ this.foundation.close();
178
+ }, e.prototype.getDefaultFoundation = function() {
179
+ var r = this, u = {
180
+ addClass: function(s) {
181
+ return r.root.classList.add(s);
182
+ },
183
+ getDeterminateCircleAttribute: function(s) {
184
+ return r.determinateCircle_.getAttribute(s);
185
+ },
186
+ hasClass: function(s) {
187
+ return r.root.classList.contains(s);
188
+ },
189
+ removeClass: function(s) {
190
+ return r.root.classList.remove(s);
191
+ },
192
+ removeAttribute: function(s) {
193
+ return r.root.removeAttribute(s);
194
+ },
195
+ setAttribute: function(s, i) {
196
+ return r.root.setAttribute(s, i);
197
+ },
198
+ setDeterminateCircleAttribute: function(s, i) {
199
+ return r.determinateCircle_.setAttribute(s, i);
200
+ }
201
+ };
202
+ return new T(u);
203
+ }, e;
204
+ }(F)
205
+ );
206
+ const oe = {
207
+ /**
208
+ * Accessibility label.
209
+ *
210
+ * Defaults to **'Progress Indicator'**.
211
+ */
212
+ ariaLabel: l.string,
213
+ /**
214
+ * The css class name to be passed through to the component markup.
215
+ *
216
+ * Defaults to **undefined**.
217
+ */
218
+ className: l.string,
219
+ /**
220
+ * The size of the progress indicator.
221
+ *
222
+ * Defaults to **'lg'**.
223
+ */
224
+ indicatorSize: l.oneOf(["sm", "md", "lg"]),
225
+ /**
226
+ * Sets the visibility of the progress indicator.
227
+ *
228
+ * Defaults to **true**.
229
+ */
230
+ open: l.bool,
231
+ /**
232
+ * The current progress of a determinate progress indicator. Must be between 0 and 1.
233
+ *
234
+ * Defaults to **0**.
235
+ */
236
+ progress: l.number,
237
+ /**
238
+ * @deprecated _Renamed, see indicatorSize instead._
239
+ *
240
+ * The size of the progress indicator.
241
+ *
242
+ * Defaults to **undefined**.
243
+ */
244
+ size: H(l.oneOf(["sm", "md", "lg"]), "CircularProgress", "Renamed, see indicatorSize instead."),
245
+ /**
246
+ * Color of the indicator stroke with 'primary' or 'secondary' theme color.
247
+ *
248
+ * Defaults to **'primary'**.
249
+ */
250
+ themeColor: l.oneOf(["primary", "secondary", "primary-variant", "secondary-variant", "two-color", "two-color-variant"]),
251
+ /**
252
+ * An indeterminate CircularProgress indicator will continue spinning until closed. A determinate CircularProgress indicator will display the current progress.
253
+ *
254
+ * Defaults to **'indeterminate'**.
255
+ */
256
+ variant: l.oneOf(["determinate", "indeterminate"])
257
+ }, ne = {
258
+ ariaLabel: "Progress Indicator",
259
+ className: void 0,
260
+ indicatorSize: "lg",
261
+ open: !0,
262
+ progress: 0,
263
+ size: void 0,
264
+ themeColor: "primary",
265
+ variant: "indeterminate"
266
+ }, A = /* @__PURE__ */ q((a, e) => {
267
+ const {
268
+ ariaLabel: r,
269
+ className: u,
270
+ open: s,
271
+ progress: i,
272
+ size: y,
273
+ indicatorSize: b,
274
+ themeColor: m,
275
+ variant: h,
276
+ ...E
277
+ } = a, _ = O(), g = O();
278
+ Y(e, () => _.current, []), k(() => (g.current = ie.attachTo(_.current), () => {
279
+ g.current.destroy();
280
+ }), []), k(() => {
281
+ (h === "determinate" && i < 0 || i > 1) && M("CircularProgress: `progress` must be between 0 and 1."), g.current.determinate = h === "determinate", g.current.progress = i;
282
+ }, [i, h]);
283
+ const $ = () => {
284
+ switch (b) {
285
+ case "xs":
286
+ return {
287
+ heightWidth: "16px",
288
+ viewBox: "24",
289
+ cxCy: "12",
290
+ r: "8.75",
291
+ strokeWidth: "2.5",
292
+ strokeWidth80: "2",
293
+ strokeDashArray: "54.978",
294
+ strokeDashoffset: "54",
295
+ halfStrokeDashoffset: "27.489"
296
+ };
297
+ case "sm":
298
+ return {
299
+ heightWidth: "24px",
300
+ viewBox: "24",
301
+ cxCy: "12",
302
+ r: "8.75",
303
+ strokeWidth: "2.5",
304
+ strokeWidth80: "2",
305
+ strokeDashArray: "54.978",
306
+ strokeDashoffset: "54.978",
307
+ halfStrokeDashoffset: "27.489"
308
+ };
309
+ case "md":
310
+ return {
311
+ heightWidth: "36px",
312
+ viewBox: "32",
313
+ cxCy: "16",
314
+ r: "12.5",
315
+ strokeWidth: "3",
316
+ strokeWidth80: "2.4",
317
+ strokeDashArray: "78.54",
318
+ strokeDashoffset: "78.54",
319
+ halfStrokeDashoffset: "39.27"
320
+ };
321
+ case "lg":
322
+ return {
323
+ heightWidth: "48px",
324
+ viewBox: "48",
325
+ cxCy: "24",
326
+ r: "18",
327
+ strokeWidth: "4",
328
+ strokeWidth80: "3.2",
329
+ strokeDashArray: "113.097",
330
+ strokeDashoffset: "113.097",
331
+ halfStrokeDashoffset: "56.549"
332
+ };
333
+ case "xl":
334
+ return {
335
+ heightWidth: "60px",
336
+ viewBox: "48",
337
+ cxCy: "24",
338
+ r: "18",
339
+ strokeWidth: "3",
340
+ strokeWidth80: "2.8",
341
+ strokeDashArray: "113.097",
342
+ strokeDashoffset: "113.097",
343
+ halfStrokeDashoffset: "56.549"
344
+ };
345
+ default:
346
+ return {
347
+ heightWidth: "48px",
348
+ viewBox: "48",
349
+ cxCy: "24",
350
+ r: "18",
351
+ strokeWidth: "4",
352
+ strokeWidth80: "3.2",
353
+ strokeDashArray: "113.097",
354
+ strokeDashoffset: "113.097",
355
+ halfStrokeDashoffset: "56.549"
356
+ };
357
+ }
358
+ }, {
359
+ heightWidth: N,
360
+ viewBox: n,
361
+ cxCy: o,
362
+ r: f,
363
+ strokeWidth: v,
364
+ strokeWidth80: w,
365
+ strokeDashArray: C,
366
+ strokeDashoffset: z,
367
+ halfStrokeDashoffset: D
368
+ } = $(), S = Z(() => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", {
369
+ className: "mdc-circular-progress__circle-clipper mdc-circular-progress__circle-left"
370
+ }, /* @__PURE__ */ t.createElement("svg", {
371
+ className: "mdc-circular-progress__indeterminate-circle-graphic",
372
+ viewBox: `0 0 ${n} ${n}`,
373
+ xmlns: "http://www.w3.org/2000/svg"
374
+ }, /* @__PURE__ */ t.createElement("circle", {
375
+ cx: o,
376
+ cy: o,
377
+ r: f,
378
+ strokeDasharray: C,
379
+ strokeDashoffset: D,
380
+ strokeWidth: v
381
+ }))), /* @__PURE__ */ t.createElement("div", {
382
+ className: "mdc-circular-progress__gap-patch"
383
+ }, /* @__PURE__ */ t.createElement("svg", {
384
+ className: "mdc-circular-progress__indeterminate-circle-graphic",
385
+ viewBox: `0 0 ${n} ${n}`,
386
+ xmlns: "http://www.w3.org/2000/svg"
387
+ }, /* @__PURE__ */ t.createElement("circle", {
388
+ cx: o,
389
+ cy: o,
390
+ r: f,
391
+ strokeDasharray: C,
392
+ strokeDashoffset: D,
393
+ strokeWidth: w
394
+ }))), /* @__PURE__ */ t.createElement("div", {
395
+ className: "mdc-circular-progress__circle-clipper mdc-circular-progress__circle-right"
396
+ }, /* @__PURE__ */ t.createElement("svg", {
397
+ className: "mdc-circular-progress__indeterminate-circle-graphic",
398
+ viewBox: `0 0 ${n} ${n}`,
399
+ xmlns: "http://www.w3.org/2000/svg"
400
+ }, /* @__PURE__ */ t.createElement("circle", {
401
+ cx: o,
402
+ cy: o,
403
+ r: f,
404
+ strokeDasharray: C,
405
+ strokeDashoffset: D,
406
+ strokeWidth: v
407
+ })))), [o, D, f, C, v, w, n]), L = m === "two-color" || m === "two-color-variant";
408
+ return /* @__PURE__ */ t.createElement("div", j({
409
+ ref: _,
410
+ className: W("lmnt", "mdc-circular-progress", h === "indeterminate" && "mdc-circular-progress--indeterminate", !s && "mdc-circular-progress--closed", m && `lmnt-circular-progress--${m}`, u),
411
+ style: {
412
+ width: N,
413
+ height: N
414
+ },
415
+ role: "progressbar",
416
+ "aria-label": r,
417
+ "aria-valuemin": "0",
418
+ "aria-valuemax": "1",
419
+ "aria-valuenow": i
420
+ }, E), /* @__PURE__ */ t.createElement("div", {
421
+ className: "mdc-circular-progress__determinate-container"
422
+ }, /* @__PURE__ */ t.createElement("svg", {
423
+ className: "mdc-circular-progress__determinate-circle-graphic",
424
+ viewBox: `0 0 ${n} ${n}`,
425
+ xmlns: "http://www.w3.org/2000/svg"
426
+ }, /* @__PURE__ */ t.createElement("circle", {
427
+ className: "mdc-circular-progress__determinate-track",
428
+ cx: o,
429
+ cy: o,
430
+ r: f,
431
+ strokeWidth: v
432
+ }), /* @__PURE__ */ t.createElement("circle", {
433
+ className: "mdc-circular-progress__determinate-circle",
434
+ cx: o,
435
+ cy: o,
436
+ r: f,
437
+ strokeDasharray: C,
438
+ strokeDashoffset: z,
439
+ strokeWidth: v
440
+ }))), /* @__PURE__ */ t.createElement("div", {
441
+ className: "mdc-circular-progress__indeterminate-container"
442
+ }, /* @__PURE__ */ t.createElement("div", {
443
+ className: W("mdc-circular-progress__spinner-layer", L && "mdc-circular-progress__color-1")
444
+ }, S()), L && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", {
445
+ className: "mdc-circular-progress__spinner-layer mdc-circular-progress__color-2"
446
+ }, S()), /* @__PURE__ */ t.createElement("div", {
447
+ className: "mdc-circular-progress__spinner-layer mdc-circular-progress__color-3"
448
+ }, S()), /* @__PURE__ */ t.createElement("div", {
449
+ className: "mdc-circular-progress__spinner-layer mdc-circular-progress__color-4"
450
+ }, S()))));
451
+ });
452
+ A.displayName = "CircularProgress";
453
+ A.propTypes = oe;
454
+ A.defaultProps = ne;
455
+ const ce = "_loadingSpinnerContainer_1f3ss_1", le = {
456
+ loadingSpinnerContainer: ce
457
+ }, he = ({
458
+ size: a,
459
+ center: e = !1,
460
+ text: r,
461
+ textPosition: u = "bottom",
462
+ color: s = "primary",
463
+ spinnerOnly: i = !1,
464
+ //Due to we don't have (and want) to use a translation logic in this component, we are using a hardcoded message
465
+ impatienceMessage: y = "This is taking longer than expected. Please be patient.",
466
+ impatienceTimeout: b = 10
467
+ }) => {
468
+ const [m, h] = V(0);
469
+ k(() => {
470
+ const _ = setInterval(() => {
471
+ h((g) => g + 1);
472
+ }, 1e3);
473
+ return () => clearInterval(_);
474
+ }, []);
475
+ const E = K(() => y && m > b ? y : r, [y, b, r, m]);
476
+ return a === "big" ? /* @__PURE__ */ c(ae, { text: E }) : i ? /* @__PURE__ */ c(
477
+ A,
478
+ {
479
+ "data-testid": "loading-spinner",
480
+ themeColor: s,
481
+ indicatorSize: a ?? "md"
482
+ }
483
+ ) : /* @__PURE__ */ c(
484
+ J,
485
+ {
486
+ variant: "standard",
487
+ style: { textAlign: "center" },
488
+ className: e ? le.loadingSpinnerContainer : "",
489
+ children: /* @__PURE__ */ R(
490
+ Q,
491
+ {
492
+ direction: u === "right" ? "horizontal" : "vertical",
493
+ gap: "dense",
494
+ primaryAlign: "center",
495
+ secondaryAlign: "center",
496
+ children: [
497
+ /* @__PURE__ */ c(
498
+ A,
499
+ {
500
+ "data-testid": "loading-spinner",
501
+ themeColor: s,
502
+ indicatorSize: a ?? "lg"
503
+ }
504
+ ),
505
+ /* @__PURE__ */ c(B, { themeColor: `text-${s}-on-background`, tag: "div", "data-testid": "loading-text", children: E })
506
+ ]
507
+ }
508
+ )
509
+ }
510
+ );
511
+ };
512
+ export {
513
+ he as p
514
+ };
@@ -0,0 +1 @@
1
+ ._invalid_1dsbr_1+*[class*=mdc-text-field-helper-line] *[class*=mdc-text-field-helper-text]{color:var(--lmnt-theme-danger)!important}
@@ -0,0 +1 @@
1
+ ._database_11ki8_1{color:var(--lmnt-theme-secondary);animation:_spin_11ki8_1 4s linear infinite}@keyframes _spin_11ki8_1{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}._iot_11ki8_16,._platform_11ki8_17,._other_11ki8_18{color:var(--lmnt-theme-danger)}._crossedOut_11ki8_22{position:relative;display:inline-block}._crossedOut_11ki8_22:after{content:"";position:absolute;width:3rem;height:.25rem;left:50%;top:50%;background:var(--lmnt-theme-danger-on-surface);box-shadow:0 0 0 .125rem var(--lmnt-theme-background);transform:translate(-50%,calc(-50% - .25rem)) rotate(45deg);transform-origin:center;z-index:2}
@@ -0,0 +1 @@
1
+ ._loadingBigOverlay_7dxo1_1{z-index:500;position:fixed;top:0;left:0;width:100%;height:100%;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background-color:#0000001a}._bigLoadSpinnerCard_7dxo1_12{background-color:var(--lmnt-theme-background);text-align:center;inline-size:auto;padding:2rem 2rem 1.5rem;border-radius:1rem;box-shadow:0 .5rem .625rem -.3125rem #0003,0 .375rem 1.875rem .3125rem #0000001f,0 1rem 1.5rem .125rem #00000024;z-index:500;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._bigLoadSpinnerCardText_7dxo1_27{padding:0;margin:1rem 0 0;text-align:center}._logo_7dxo1_33{width:4.75rem!important;height:4.75rem!important}@keyframes _rotate360deg_7dxo1_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._logo_7dxo1_33 path[id=Subtract_2]{transform-origin:center;animation:_rotate360deg_7dxo1_1 1s linear infinite}._loadingSpinnerContainer_1f3ss_1{z-index:500;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--lmnt-theme-on-surface-high)}
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700|Roboto+Mono:400,500|Material+Icons";
@@ -0,0 +1 @@
1
+ ._image_178sv_1>svg{width:inherit;height:inherit;color:inherit}