@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
@@ -0,0 +1,79 @@
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-CVaIJbcK.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
+ };