@hortiview/shared-components 2.8.6 → 2.8.8

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 (133) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
  3. package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
  4. package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
  5. package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
  6. package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
  7. package/dist/_Map-BmafU0dj.js +113 -0
  8. package/dist/assets/FormSelect.css +1 -1
  9. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  10. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  11. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  12. package/dist/components/BaseView/BaseView.js +2 -2
  13. package/dist/components/BasicHeading/BasicHeading.js +2 -2
  14. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  15. package/dist/components/BlockView/BlockView.js +1 -1
  16. package/dist/components/ChipCard/ChipCard.js +499 -390
  17. package/dist/components/ContextMenu/ContextMenu.js +4 -4
  18. package/dist/components/DeleteModal/DeleteModal.js +5 -5
  19. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  20. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  21. package/dist/components/EmptyView/EmptyView.js +161 -125
  22. package/dist/components/Filter/Filter.js +11 -11
  23. package/dist/components/Filter/Filter.test.js +51 -35
  24. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  25. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
  26. package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
  27. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  28. package/dist/components/FormComponents/FormSelect/FormSelect.js +53 -53
  29. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  30. package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
  31. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  32. package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
  33. package/dist/components/GenericTable/GenericTable.js +8246 -7153
  34. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  35. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  36. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  37. package/dist/components/HashTabView/HashTabView.js +552 -541
  38. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  39. package/dist/components/Iconify/Iconify.js +2 -2
  40. package/dist/components/InfoCard/InfoCard.js +4 -4
  41. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  42. package/dist/components/ListArea/ListArea.js +16 -16
  43. package/dist/components/ListArea/ListArea.test.js +20 -20
  44. package/dist/components/ListArea/ListAreaService.js +6 -6
  45. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  46. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  47. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
  48. package/dist/components/Modal/Modal.js +305 -312
  49. package/dist/components/ModulePadding/ModulePadding.js +8 -8
  50. package/dist/components/OfflineView/OfflineView.js +4 -4
  51. package/dist/components/OfflineView/OfflineView.test.js +1 -1
  52. package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
  53. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  54. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  55. package/dist/components/SearchBar/SearchBar.js +2 -2
  56. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  57. package/dist/components/Select/Select.js +2 -2
  58. package/dist/components/Stepper/Stepper.js +1 -1
  59. package/dist/components/Stepper/components/StepperButton.js +1 -1
  60. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  61. package/dist/components/Stepper/components/StepperIndicator.js +1 -1
  62. package/dist/defineProperty-CmuOyxyf.js +318 -0
  63. package/dist/es.string.iterator-DrqCBub-.js +581 -0
  64. package/dist/find-B-dm7n_F.js +88 -0
  65. package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
  66. package/dist/get-u1nFMLdT.js +377 -0
  67. package/dist/hooks/useHelperText.js +1 -1
  68. package/dist/identity-BIZAN_pL.js +213 -0
  69. package/dist/includes-Bt-Stz_B.js +110 -0
  70. package/dist/index-Cpb-8cAN.js +2465 -0
  71. package/dist/index.es-0QJC9VS2.js +325 -0
  72. package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
  73. package/dist/index.es-B6ZgiW2s.js +3790 -0
  74. package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
  75. package/dist/index.es-BRtk0Q33.js +42 -0
  76. package/dist/index.es-BXj90wb_.js +402 -0
  77. package/dist/index.es-Bg8hxXM8.js +912 -0
  78. package/dist/index.es-Bgjh6euR.js +292 -0
  79. package/dist/index.es-Bo1Rhtyb.js +80 -0
  80. package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
  81. package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
  82. package/dist/index.es-CmF6xAUJ.js +48 -0
  83. package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
  84. package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
  85. package/dist/index.es-DDYCugj-.js +166 -0
  86. package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
  87. package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
  88. package/dist/index.es-DeF-y7fd.js +122 -0
  89. package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
  90. package/dist/index.es-DqSY-ePE.js +4923 -0
  91. package/dist/index.es-DwzB1d7_.js +1061 -0
  92. package/dist/index.es-IXyb5F6n.js +457 -0
  93. package/dist/index.es-t7hFwQSs.js +67 -0
  94. package/dist/isArray-DN9s620O.js +83 -0
  95. package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
  96. package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
  97. package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
  98. package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
  99. package/dist/keyboard-B-WUULl-.js +173 -0
  100. package/dist/main.js +2 -2
  101. package/dist/map-Dbvlv_6y.js +707 -0
  102. package/dist/omit-uTAyrUTm.js +645 -0
  103. package/dist/orderBy-BXxEvUw6.js +571 -0
  104. package/dist/parse-int-qVAoFbOL.js +75 -0
  105. package/dist/services/UtilService.js +7 -7
  106. package/dist/slicedToArray-BWk2gTCn.js +436 -0
  107. package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
  108. package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
  109. package/package.json +3 -3
  110. package/dist/_baseIsEqual-Df2URKWm.js +0 -240
  111. package/dist/_getAllKeys-BQWmkEw5.js +0 -86
  112. package/dist/_getTag-BkGSRa18.js +0 -79
  113. package/dist/_setToString-B6E13pDg.js +0 -580
  114. package/dist/get-DQr2KQKm.js +0 -113
  115. package/dist/index-D5m--65X.js +0 -1491
  116. package/dist/index.es-8MVlRCi4.js +0 -1066
  117. package/dist/index.es-BbaCXS9-.js +0 -45
  118. package/dist/index.es-BikIx4uw.js +0 -3242
  119. package/dist/index.es-CDMu_yu0.js +0 -954
  120. package/dist/index.es-ChSlnpSq.js +0 -309
  121. package/dist/index.es-D66OkZJH.js +0 -4853
  122. package/dist/index.es-DFFyENnI.js +0 -63
  123. package/dist/index.es-DTMwaJ6B.js +0 -56
  124. package/dist/index.es-DgTJmbgD.js +0 -268
  125. package/dist/index.es-DmsyeHLO.js +0 -306
  126. package/dist/index.es-Dw1eih7R.js +0 -159
  127. package/dist/index.es-eKuwB1ll.js +0 -54
  128. package/dist/index.es-qxTN-Bb2.js +0 -107
  129. package/dist/index.es-xnSvM9b9.js +0 -444
  130. package/dist/isArray-DDZrq40X.js +0 -456
  131. package/dist/keyboard-Bpt0aBqQ.js +0 -107
  132. package/dist/omit-BN3qeeaj.js +0 -364
  133. package/dist/orderBy-D4LvP9Az.js +0 -316
@@ -1,7 +1,7 @@
1
- import { _ as F, c as g, P as a } from "./index-D5m--65X.js";
2
- import h, { forwardRef as E, useRef as d, useImperativeHandle as y, useEffect as f } from "react";
3
- import { b as v, c as p } from "./tslib.es6-BDCynO9F.js";
4
- import { M as b, a as R } from "./component-neHBNHRu.js";
1
+ import { _ as b, a as y, c as C, P as l } from "./index-Cpb-8cAN.js";
2
+ import I, { forwardRef as _, useRef as f, useImperativeHandle as L, useEffect as p } from "react";
3
+ import { b as h, c as m } from "./tslib.es6-BDCynO9F.js";
4
+ import { M as T, a as N } from "./component-neHBNHRu.js";
5
5
  /**
6
6
  * @license
7
7
  * Copyright 2017 Google Inc.
@@ -24,9 +24,9 @@ import { M as b, a as R } from "./component-neHBNHRu.js";
24
24
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
  * THE SOFTWARE.
26
26
  */
27
- var C = {
27
+ var O = {
28
28
  ROOT: "mdc-form-field"
29
- }, I = {
29
+ }, P = {
30
30
  LABEL_SELECTOR: ".mdc-form-field > label"
31
31
  };
32
32
  /**
@@ -51,29 +51,29 @@ var C = {
51
51
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
52
52
  * THE SOFTWARE.
53
53
  */
54
- var m = (
54
+ var v = (
55
55
  /** @class */
56
- function(r) {
57
- v(e, r);
58
- function e(t) {
59
- var n = r.call(this, p(p({}, e.defaultAdapter), t)) || this;
60
- return n.click = function() {
61
- n.handleClick();
62
- }, n;
56
+ function(t) {
57
+ h(n, t);
58
+ function n(e) {
59
+ var i = t.call(this, m(m({}, n.defaultAdapter), e)) || this;
60
+ return i.click = function() {
61
+ i.handleClick();
62
+ }, i;
63
63
  }
64
- return Object.defineProperty(e, "cssClasses", {
64
+ return Object.defineProperty(n, "cssClasses", {
65
65
  get: function() {
66
- return C;
66
+ return O;
67
67
  },
68
68
  enumerable: !1,
69
69
  configurable: !0
70
- }), Object.defineProperty(e, "strings", {
70
+ }), Object.defineProperty(n, "strings", {
71
71
  get: function() {
72
- return I;
72
+ return P;
73
73
  },
74
74
  enumerable: !1,
75
75
  configurable: !0
76
- }), Object.defineProperty(e, "defaultAdapter", {
76
+ }), Object.defineProperty(n, "defaultAdapter", {
77
77
  get: function() {
78
78
  return {
79
79
  activateInputRipple: function() {
@@ -88,17 +88,17 @@ var m = (
88
88
  },
89
89
  enumerable: !1,
90
90
  configurable: !0
91
- }), e.prototype.init = function() {
91
+ }), n.prototype.init = function() {
92
92
  this.adapter.registerInteractionHandler("click", this.click);
93
- }, e.prototype.destroy = function() {
93
+ }, n.prototype.destroy = function() {
94
94
  this.adapter.deregisterInteractionHandler("click", this.click);
95
- }, e.prototype.handleClick = function() {
96
- var t = this;
95
+ }, n.prototype.handleClick = function() {
96
+ var e = this;
97
97
  this.adapter.activateInputRipple(), requestAnimationFrame(function() {
98
- t.adapter.deactivateInputRipple();
98
+ e.adapter.deactivateInputRipple();
99
99
  });
100
- }, e;
101
- }(b)
100
+ }, n;
101
+ }(T)
102
102
  );
103
103
  /**
104
104
  * @license
@@ -122,95 +122,91 @@ var m = (
122
122
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
123
123
  * THE SOFTWARE.
124
124
  */
125
- var L = (
125
+ var D = (
126
126
  /** @class */
127
- function(r) {
128
- v(e, r);
129
- function e() {
130
- return r !== null && r.apply(this, arguments) || this;
127
+ function(t) {
128
+ h(n, t);
129
+ function n() {
130
+ return t !== null && t.apply(this, arguments) || this;
131
131
  }
132
- return e.attachTo = function(t) {
133
- return new e(t);
134
- }, e.prototype.labelEl = function() {
135
- var t = m.strings.LABEL_SELECTOR;
136
- return this.root.querySelector(t);
137
- }, e.prototype.getDefaultFoundation = function() {
138
- var t = this, n = {
132
+ return n.attachTo = function(e) {
133
+ return new n(e);
134
+ }, n.prototype.labelEl = function() {
135
+ var e = v.strings.LABEL_SELECTOR;
136
+ return this.root.querySelector(e);
137
+ }, n.prototype.getDefaultFoundation = function() {
138
+ var e = this, i = {
139
139
  activateInputRipple: function() {
140
- t.input && t.input.ripple && t.input.ripple.activate();
140
+ e.input && e.input.ripple && e.input.ripple.activate();
141
141
  },
142
142
  deactivateInputRipple: function() {
143
- t.input && t.input.ripple && t.input.ripple.deactivate();
143
+ e.input && e.input.ripple && e.input.ripple.deactivate();
144
144
  },
145
- deregisterInteractionHandler: function(o, l) {
146
- var i = t.labelEl();
147
- i && i.removeEventListener(o, l);
145
+ deregisterInteractionHandler: function(o, a) {
146
+ var r = e.labelEl();
147
+ r && r.removeEventListener(o, a);
148
148
  },
149
- registerInteractionHandler: function(o, l) {
150
- var i = t.labelEl();
151
- i && i.addEventListener(o, l);
149
+ registerInteractionHandler: function(o, a) {
150
+ var r = e.labelEl();
151
+ r && r.addEventListener(o, a);
152
152
  }
153
153
  };
154
- return new m(n);
155
- }, e;
156
- }(R)
157
- );
158
- const _ = {
154
+ return new v(i);
155
+ }, n;
156
+ }(N)
157
+ ), k = {
159
158
  /**
160
159
  * Reverse the order of the input and label.
161
160
  *
162
161
  * Defaults to **false**.
163
162
  */
164
- alignEnd: a.bool,
163
+ alignEnd: l.bool,
165
164
  /**
166
165
  * Content to be rendered inside the FormField. Accepts any valid markup.
167
166
  *
168
167
  * Defaults to **null**.
169
168
  */
170
- children: a.node,
169
+ children: l.node,
171
170
  /**
172
171
  * The css class name to be passed through to the component markup.
173
172
  *
174
173
  * Defaults to **undefined**.
175
174
  */
176
- className: a.string,
175
+ className: l.string,
177
176
  /**
178
177
  * The reference of the input the form field will be associated with. It enables a greater level of integration with parent components.
179
178
  *
180
179
  * Defaults to **null**.
181
180
  */
182
- inputRef: a.oneOfType([
183
- a.func,
181
+ inputRef: l.oneOfType([
182
+ l.func,
184
183
  // eslint-disable-next-line react/forbid-prop-types
185
- a.shape({
186
- current: a.any
184
+ l.shape({
185
+ current: l.any
187
186
  })
188
187
  ])
189
- }, T = {
188
+ }, H = {
190
189
  alignEnd: !1,
191
190
  children: null,
192
191
  className: void 0,
193
192
  inputRef: null
194
- }, s = /* @__PURE__ */ E((r, e) => {
195
- const {
196
- children: t,
197
- inputRef: n,
198
- className: o,
199
- alignEnd: l,
200
- ...i
201
- } = r, c = d(), u = d();
202
- return y(e, () => c.current, []), f(() => (u.current = L.attachTo(c.current), () => {
203
- u.current.destroy();
204
- })), f(() => {
205
- n && (u.current.input = n.current);
206
- }, [n]), /* @__PURE__ */ h.createElement("div", F({
193
+ }, M = ["children", "inputRef", "className", "alignEnd"], u = H, g = /* @__PURE__ */ _(function(t, n) {
194
+ var e = t.children, i = e === void 0 ? u.children : e, o = t.inputRef, a = o === void 0 ? u.inputRef : o, r = t.className, E = r === void 0 ? u.className : r, s = t.alignEnd, F = s === void 0 ? u.alignEnd : s, R = b(t, M), c = f(), d = f();
195
+ return L(n, function() {
196
+ return c.current;
197
+ }, []), p(function() {
198
+ return d.current = D.attachTo(c.current), function() {
199
+ d.current.destroy();
200
+ };
201
+ }), p(function() {
202
+ a && (d.current.input = a.current);
203
+ }, [a]), /* @__PURE__ */ I.createElement("div", y({
207
204
  ref: c,
208
- className: g("lmnt mdc-form-field lmnt-form-field", l && "mdc-form-field--align-end", o)
209
- }, i), t);
205
+ className: C("lmnt mdc-form-field lmnt-form-field", F && "mdc-form-field--align-end", E)
206
+ }, R), i);
210
207
  });
211
- s.displayName = "FormField";
212
- s.propTypes = _;
213
- s.defaultProps = T;
208
+ g.displayName = "FormField";
209
+ g.propTypes = k;
214
210
  export {
215
- s as F
211
+ g as F
216
212
  };
@@ -0,0 +1,48 @@
1
+ import { _ as f, a as v, c as L, P as a } from "./index-Cpb-8cAN.js";
2
+ import I, { forwardRef as N, useRef as y, useImperativeHandle as P } from "react";
3
+ var _ = {
4
+ /**
5
+ * Content to be rendered inside the FormField. Accepts any valid markup.
6
+ *
7
+ * Defaults to **null**.
8
+ */
9
+ children: a.node.isRequired,
10
+ /**
11
+ * The css class name to be passed through to the component markup.
12
+ *
13
+ * Defaults to **undefined**.
14
+ */
15
+ className: a.string,
16
+ /**
17
+ * Applies disabled styling.
18
+ *
19
+ * Defaults to **false**.
20
+ */
21
+ disabled: a.bool,
22
+ /**
23
+ * Visibly disable the label, though it will still be available to screen readers.
24
+ *
25
+ * Defaults to **false**.
26
+ */
27
+ hideLabel: a.bool
28
+ }, g = {
29
+ children: null,
30
+ className: void 0,
31
+ disabled: !1,
32
+ hideLabel: !1
33
+ }, x = ["children", "className", "disabled", "hideLabel", "targetId"], l = g, o = /* @__PURE__ */ N(function(e, b) {
34
+ var d = e.children, c = d === void 0 ? l.children : d, s = e.className, p = s === void 0 ? l.className : s, r = e.disabled, u = r === void 0 ? l.disabled : r, i = e.hideLabel, m = i === void 0 ? l.hideLabel : i, t = e.targetId, h = f(e, x), n = y();
35
+ return P(b, function() {
36
+ return n.current;
37
+ }, []), /* @__PURE__ */ I.createElement("label", v({
38
+ ref: n,
39
+ className: L("lmnt-input-label", m && "sr-only", u && "lmnt-theme-on-surface-disabled", p),
40
+ htmlFor: t,
41
+ "aria-labelledby": t
42
+ }, h), c);
43
+ });
44
+ o.displayName = "InputLabel";
45
+ o.propTypes = _;
46
+ export {
47
+ o as I
48
+ };