@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,79 +0,0 @@
1
- import { r as Z, h as _, e as q, Z as g, c as w, p, f as x, v as z, s as N, X as A, a as f, b as B, t as d } from "./useTranslation-BQQybhSd.js";
2
- import E, { forwardRef as H, useMemo as I, useRef as M, useImperativeHandle as $ } from "react";
3
- var k = {
4
- /**
5
- * Content to be rendered inside the padding component. Accepts any valid markup.
6
- *
7
- * Defaults to **null**.
8
- */
9
- children: d.node.isRequired,
10
- /**
11
- * The css class name to be passed through to the component markup.
12
- *
13
- * Defaults to **undefined**.
14
- */
15
- className: d.string,
16
- /**
17
- * Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
18
- *
19
- * Defaults to **null**.
20
- */
21
- customPadding: d.string,
22
- /**
23
- * By default a div will be rendered, this allow another tag to be used instead. A block type component is suggested.
24
- *
25
- * Defaults to **'div'**.
26
- */
27
- tag: d.oneOfType([d.string, d.elementType]),
28
- /**
29
- * Applies the specified padding amount. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
30
- *
31
- * Defaults to **'standard'**.
32
- */
33
- variant: d.oneOf(["dense", "standard", "airy"])
34
- }, C = {
35
- children: null,
36
- className: void 0,
37
- customPadding: null,
38
- tag: "div",
39
- variant: "standard"
40
- }, D = ["tag", "variant", "children", "className", "customPadding", "style"];
41
- function y(a, n) {
42
- var e = A(a);
43
- if (f) {
44
- var s = f(a);
45
- n && (s = B(s).call(s, function(t) {
46
- return N(a, t).enumerable;
47
- })), e.push.apply(e, s);
48
- }
49
- return e;
50
- }
51
- function h(a) {
52
- for (var n = 1; n < arguments.length; n++) {
53
- var e, s, t = arguments[n] != null ? arguments[n] : {};
54
- n % 2 ? g(e = y(Object(t), !0)).call(e, function(r) {
55
- w(a, r, t[r]);
56
- }) : p ? x(a, p(t)) : g(s = y(Object(t))).call(s, function(r) {
57
- z(a, r, N(t, r));
58
- });
59
- }
60
- return a;
61
- }
62
- var i = C, P = /* @__PURE__ */ H(function(a, n) {
63
- var e = a.tag, s = e === void 0 ? i.tag : e, t = a.variant, r = t === void 0 ? i.variant : t, l = a.children, b = l === void 0 ? i.children : l, c = a.className, O = c === void 0 ? i.className : c, u = a.customPadding, o = u === void 0 ? i.customPadding : u, m = a.style, v = m === void 0 ? i.style : m, T = Z(a, D), j = I(function() {
64
- return h(h({}, v), {}, {
65
- padding: o
66
- });
67
- }, [v, o]), R = s || "div", X = M();
68
- return $(n, function() {
69
- return X.current;
70
- }, []), /* @__PURE__ */ E.createElement(R, _({
71
- className: q("lmnt", "lmnt-padding", r === "dense" && "lmnt-padding--dense", r === "standard" && "lmnt-padding--standard", r === "airy" && "lmnt-padding--airy", O),
72
- style: j
73
- }, T), b);
74
- });
75
- P.displayName = "Padding";
76
- P.propTypes = k;
77
- export {
78
- P as b
79
- };