@hortiview/shared-components 0.0.11528 → 0.0.11589

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 (118) hide show
  1. package/README.md +21 -4
  2. package/dist/{BigLoadingSpinner-D7H28pr5.js → BigLoadingSpinner-iegTbDcD.js} +6 -6
  3. package/dist/GenericCard-6J558OgP.js +350 -0
  4. package/dist/{ListAreaService-YS_UUPh5.js → ListAreaService-DOwtdRa4.js} +18 -16
  5. package/dist/_MapCache-B75yWNNd.js +376 -0
  6. package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
  7. package/dist/_getTag-BCf9b56Z.js +81 -0
  8. package/dist/animationframe-EMBh6XeO.js +54 -0
  9. package/dist/component-DsB0poTj.js +571 -0
  10. package/dist/component-neHBNHRu.js +114 -0
  11. package/dist/components/AlertBanner/AlertBanner.js +16 -15
  12. package/dist/components/BaseView/BaseView.js +5 -5
  13. package/dist/components/BasicHeading/BasicHeading.js +25 -24
  14. package/dist/components/BasicHeading/BasicHeading.test.js +9 -9
  15. package/dist/components/BlockView/BlockView.js +5 -5
  16. package/dist/components/ChipCard/ChipCard.js +1765 -14
  17. package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
  18. package/dist/components/ContextMenu/ContextMenu.js +28 -27
  19. package/dist/components/DeleteModal/DeleteModal.js +37 -34
  20. package/dist/components/Disclaimer/Disclaimer.js +11 -9
  21. package/dist/components/EmptyView/EmptyView.js +258 -19
  22. package/dist/components/Filter/Filter.js +58 -54
  23. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
  24. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -1
  25. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5974 -6387
  26. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +1 -1
  27. package/dist/components/FormComponents/FormNumber/CustomTextField.js +5 -5
  28. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +1 -1
  29. package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
  30. package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
  31. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
  32. package/dist/components/FormComponents/FormSelect/FormSelect.js +3 -3
  33. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
  34. package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
  35. package/dist/components/FormComponents/FormText/FormText.d.ts +1 -1
  36. package/dist/components/FormComponents/FormText/FormText.js +33 -32
  37. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +1 -1
  38. package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
  39. package/dist/components/GenericTable/GenericTable.js +10486 -74
  40. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
  41. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  42. package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
  43. package/dist/components/HashTabView/HashTabView.js +1805 -72
  44. package/dist/components/HeaderFilter/HeaderFilter.d.ts +1 -1
  45. package/dist/components/HeaderFilter/HeaderFilter.js +4 -4
  46. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +20 -17
  47. package/dist/components/Iconify/Iconify.d.ts +1 -2
  48. package/dist/components/Iconify/Iconify.js +42 -42
  49. package/dist/components/InfoGroup/InfoGroup.js +30 -28
  50. package/dist/components/ListArea/ListArea.js +29 -27
  51. package/dist/components/ListArea/ListArea.test.js +2 -2
  52. package/dist/components/ListArea/ListAreaService.js +7 -5
  53. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  54. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  55. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -37
  56. package/dist/components/Modal/Modal.d.ts +1 -1
  57. package/dist/components/Modal/Modal.js +926 -9
  58. package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
  59. package/dist/components/ModulePadding/ModulePadding.js +28 -0
  60. package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
  61. package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
  62. package/dist/components/OverflowTooltip/OverflowTooltip.js +6 -6
  63. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  64. package/dist/components/SearchBar/SearchBar.js +7 -6
  65. package/dist/components/Select/Select.d.ts +1 -1
  66. package/dist/components/Select/Select.js +13 -13
  67. package/dist/floating-ui.dom-CeD8zknG.js +978 -0
  68. package/dist/get-7ACccM2X.js +114 -0
  69. package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
  70. package/dist/hooks/useHelperText.js +1 -1
  71. package/dist/identity-DLWZln-X.js +1763 -0
  72. package/dist/index.es-0lQcz8m1.js +444 -0
  73. package/dist/index.es-25EARqhH.js +2027 -0
  74. package/dist/index.es-3043KTnb.js +1066 -0
  75. package/dist/index.es-41ztjcFT.js +724 -0
  76. package/dist/index.es-6TJ1S8Jr.js +954 -0
  77. package/dist/index.es-8GOVkuo-.js +374 -0
  78. package/dist/index.es-B-_jXDuz.js +216 -0
  79. package/dist/index.es-BWgXLqXn.js +102 -0
  80. package/dist/index.es-BtjV0oNv.js +360 -0
  81. package/dist/index.es-BvrQnJ3j.js +509 -0
  82. package/dist/index.es-CF_xy2ns.js +674 -0
  83. package/dist/index.es-CL_Heu1n.js +54 -0
  84. package/dist/index.es-CiqbARoC.js +306 -0
  85. package/dist/index.es-D-CKRzIB.js +63 -0
  86. package/dist/index.es-D6N-XWHe.js +56 -0
  87. package/dist/index.es-DKDgy7Kt.js +45 -0
  88. package/dist/index.es-DntoATwO.js +159 -0
  89. package/dist/index.es-UHKFl8Da.js +7075 -0
  90. package/dist/index.es-d5xhUpJZ.js +3242 -0
  91. package/dist/index.es-da0cf7oE.js +569 -0
  92. package/dist/index.es-h2lMdt7G.js +107 -0
  93. package/dist/index.es-zr101OF5.js +4853 -0
  94. package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
  95. package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
  96. package/dist/isEmpty-B4GG2s-V.js +31 -0
  97. package/dist/isPlainObject-C273y67K.js +40 -0
  98. package/dist/isString-BW9UHONv.js +21 -0
  99. package/dist/keyboard-Bpt0aBqQ.js +107 -0
  100. package/dist/main.d.ts +1 -0
  101. package/dist/main.js +57 -55
  102. package/dist/orderBy-Bd48bw88.js +316 -0
  103. package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
  104. package/dist/services/UtilService.js +2 -2
  105. package/dist/toString-CrgB_7Pe.js +54 -0
  106. package/dist/tslib.es6-BDCynO9F.js +162 -0
  107. package/dist/types/GenericTable.d.ts +1 -1
  108. package/dist/uniqueId-NU3-C36A.js +18 -0
  109. package/dist/util-DA21pZXj.js +78 -0
  110. package/package.json +1 -1
  111. package/dist/GenericCard-jlt8ZsHi.js +0 -80
  112. package/dist/_Map-Dtlps7IZ.js +0 -113
  113. package/dist/_overArg-_0pUmCsX.js +0 -14
  114. package/dist/get-P-5PYZOE.js +0 -426
  115. package/dist/isEmpty-BimaZd5G.js +0 -225
  116. package/dist/isString-BOHPtrlm.js +0 -44
  117. package/dist/orderBy-BVQIswlJ.js +0 -765
  118. package/dist/react-tooltip.min-Czs4RGD1.js +0 -1400
@@ -0,0 +1,360 @@
1
+ import { c as C, _ as A, P as r } from "./identity-DLWZln-X.js";
2
+ import s, { forwardRef as k, useState as M, useRef as _, useImperativeHandle as S, useEffect as u } from "react";
3
+ import { F as j } from "./index.es-B-_jXDuz.js";
4
+ import { I as w } from "./index.es-CL_Heu1n.js";
5
+ import { f as F, d as x } from "./index.es-da0cf7oE.js";
6
+ import { b as O, c as f } from "./tslib.es6-BDCynO9F.js";
7
+ import { M as q, a as B } from "./component-neHBNHRu.js";
8
+ import { M as y, a as R, b as H } from "./component-DsB0poTj.js";
9
+ /**
10
+ * @license
11
+ * Copyright 2016 Google Inc.
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ * of this software and associated documentation files (the "Software"), to deal
15
+ * in the Software without restriction, including without limitation the rights
16
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ * copies of the Software, and to permit persons to whom the Software is
18
+ * furnished to do so, subject to the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be included in
21
+ * all copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
+ * THE SOFTWARE.
30
+ */
31
+ var V = {
32
+ NATIVE_CONTROL_SELECTOR: ".mdc-radio__native-control"
33
+ }, U = {
34
+ DISABLED: "mdc-radio--disabled",
35
+ ROOT: "mdc-radio"
36
+ };
37
+ /**
38
+ * @license
39
+ * Copyright 2016 Google Inc.
40
+ *
41
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ * of this software and associated documentation files (the "Software"), to deal
43
+ * in the Software without restriction, including without limitation the rights
44
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
+ * copies of the Software, and to permit persons to whom the Software is
46
+ * furnished to do so, subject to the following conditions:
47
+ *
48
+ * The above copyright notice and this permission notice shall be included in
49
+ * all copies or substantial portions of the Software.
50
+ *
51
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
57
+ * THE SOFTWARE.
58
+ */
59
+ var E = (
60
+ /** @class */
61
+ function(o) {
62
+ O(t, o);
63
+ function t(e) {
64
+ return o.call(this, f(f({}, t.defaultAdapter), e)) || this;
65
+ }
66
+ return Object.defineProperty(t, "cssClasses", {
67
+ get: function() {
68
+ return U;
69
+ },
70
+ enumerable: !1,
71
+ configurable: !0
72
+ }), Object.defineProperty(t, "strings", {
73
+ get: function() {
74
+ return V;
75
+ },
76
+ enumerable: !1,
77
+ configurable: !0
78
+ }), Object.defineProperty(t, "defaultAdapter", {
79
+ get: function() {
80
+ return {
81
+ addClass: function() {
82
+ },
83
+ removeClass: function() {
84
+ },
85
+ setNativeControlDisabled: function() {
86
+ }
87
+ };
88
+ },
89
+ enumerable: !1,
90
+ configurable: !0
91
+ }), t.prototype.setDisabled = function(e) {
92
+ var n = t.cssClasses.DISABLED;
93
+ this.adapter.setNativeControlDisabled(e), e ? this.adapter.addClass(n) : this.adapter.removeClass(n);
94
+ }, t;
95
+ }(q)
96
+ );
97
+ /**
98
+ * @license
99
+ * Copyright 2016 Google Inc.
100
+ *
101
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
102
+ * of this software and associated documentation files (the "Software"), to deal
103
+ * in the Software without restriction, including without limitation the rights
104
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
105
+ * copies of the Software, and to permit persons to whom the Software is
106
+ * furnished to do so, subject to the following conditions:
107
+ *
108
+ * The above copyright notice and this permission notice shall be included in
109
+ * all copies or substantial portions of the Software.
110
+ *
111
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
112
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
113
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
114
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
115
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
116
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
117
+ * THE SOFTWARE.
118
+ */
119
+ var $ = (
120
+ /** @class */
121
+ function(o) {
122
+ O(t, o);
123
+ function t() {
124
+ var e = o !== null && o.apply(this, arguments) || this;
125
+ return e.ripple_ = e.createRipple_(), e;
126
+ }
127
+ return t.attachTo = function(e) {
128
+ return new t(e);
129
+ }, Object.defineProperty(t.prototype, "checked", {
130
+ get: function() {
131
+ return this.nativeControl_.checked;
132
+ },
133
+ set: function(e) {
134
+ this.nativeControl_.checked = e;
135
+ },
136
+ enumerable: !1,
137
+ configurable: !0
138
+ }), Object.defineProperty(t.prototype, "disabled", {
139
+ get: function() {
140
+ return this.nativeControl_.disabled;
141
+ },
142
+ set: function(e) {
143
+ this.foundation.setDisabled(e);
144
+ },
145
+ enumerable: !1,
146
+ configurable: !0
147
+ }), Object.defineProperty(t.prototype, "value", {
148
+ get: function() {
149
+ return this.nativeControl_.value;
150
+ },
151
+ set: function(e) {
152
+ this.nativeControl_.value = e;
153
+ },
154
+ enumerable: !1,
155
+ configurable: !0
156
+ }), Object.defineProperty(t.prototype, "ripple", {
157
+ get: function() {
158
+ return this.ripple_;
159
+ },
160
+ enumerable: !1,
161
+ configurable: !0
162
+ }), t.prototype.destroy = function() {
163
+ this.ripple_.destroy(), o.prototype.destroy.call(this);
164
+ }, t.prototype.getDefaultFoundation = function() {
165
+ var e = this, n = {
166
+ addClass: function(a) {
167
+ return e.root.classList.add(a);
168
+ },
169
+ removeClass: function(a) {
170
+ return e.root.classList.remove(a);
171
+ },
172
+ setNativeControlDisabled: function(a) {
173
+ return e.nativeControl_.disabled = a;
174
+ }
175
+ };
176
+ return new E(n);
177
+ }, t.prototype.createRipple_ = function() {
178
+ var e = this, n = f(f({}, y.createAdapter(this)), {
179
+ registerInteractionHandler: function(a, c) {
180
+ return e.nativeControl_.addEventListener(a, c, R());
181
+ },
182
+ deregisterInteractionHandler: function(a, c) {
183
+ return e.nativeControl_.removeEventListener(a, c, R());
184
+ },
185
+ // Radio buttons technically go "active" whenever there is *any* keyboard interaction.
186
+ // This is not the UI we desire.
187
+ isSurfaceActive: function() {
188
+ return !1;
189
+ },
190
+ isUnbounded: function() {
191
+ return !0;
192
+ }
193
+ });
194
+ return new y(this.root, new H(n));
195
+ }, Object.defineProperty(t.prototype, "nativeControl_", {
196
+ get: function() {
197
+ var e = E.strings.NATIVE_CONTROL_SELECTOR, n = this.root.querySelector(e);
198
+ if (!n)
199
+ throw new Error("Radio component requires a " + e + " element");
200
+ return n;
201
+ },
202
+ enumerable: !1,
203
+ configurable: !0
204
+ }), t;
205
+ }(B)
206
+ );
207
+ const z = {
208
+ /**
209
+ * Aligns radio to the right of the label.
210
+ *
211
+ * Defaults to **false**.
212
+ */
213
+ alignEnd: r.bool,
214
+ /**
215
+ * Applies selected state when `checked` equals `value` or when `checked` is set to true.
216
+ *
217
+ * Defaults to **null**.
218
+ */
219
+ checked: r.oneOfType([r.string, r.bool]),
220
+ /**
221
+ * @deprecated _Use `label` instead._
222
+ *
223
+ * Content to be rendered as the radio label. Can be used instead of `label` to provide more flexibility. Accepts any valid markup. _Warning, if `label` is set, it will be used instead of child content._
224
+ *
225
+ * Defaults to **undefined**.
226
+ */
227
+ children: x(r.node, "Radio", "Use `label` instead."),
228
+ /**
229
+ * The css class name to be passed through to the component markup.
230
+ *
231
+ * Defaults to **undefined**.
232
+ */
233
+ className: r.string,
234
+ /**
235
+ * Prevents user for interacting with component.
236
+ *
237
+ * Defaults to **false**.
238
+ */
239
+ disabled: r.bool,
240
+ /**
241
+ * The label not be displayed, but will still be available to screen readers. This should only be used when the context of the radio button is clear and understandable. An example use-case could be as a column in a table where the column header specifies the action.
242
+ *
243
+ * Defaults to **false**.
244
+ */
245
+ hideLabel: r.bool,
246
+ /**
247
+ * Randomly generated id. May be overwritten.
248
+ *
249
+ * Defaults to **undefined**.
250
+ */
251
+ id: r.string,
252
+ /**
253
+ * Display label. The `label` should always be set even when using `hideLabel` - it will be used by screen readers.
254
+ *
255
+ * Defaults to **null**.
256
+ */
257
+ label: r.oneOfType([r.string, r.node]),
258
+ /**
259
+ * Name of the radio button group.
260
+ *
261
+ * Defaults to **null**.
262
+ */
263
+ name: r.string.isRequired,
264
+ /**
265
+ * Fired when value of the radio button is changed.
266
+ *
267
+ * Defaults to **null**.
268
+ */
269
+ onChange: r.func,
270
+ /**
271
+ * Override the default (`primary`) color with the `secondary` color. Most commonly used when the control is placed on a darker surface.
272
+ *
273
+ * Defaults to **'primary'**.
274
+ */
275
+ themeColor: r.oneOf(["primary", "secondary", "danger", "success"]),
276
+ /**
277
+ * A custom value will be returned as the second parameter of the `change` handler.
278
+ *
279
+ * Defaults to **null**.
280
+ */
281
+ value: r.oneOfType([r.string, r.number])
282
+ }, G = {
283
+ alignEnd: !1,
284
+ checked: null,
285
+ children: void 0,
286
+ className: void 0,
287
+ disabled: !1,
288
+ hideLabel: !1,
289
+ id: void 0,
290
+ label: null,
291
+ name: null,
292
+ themeColor: "primary",
293
+ value: null
294
+ }, b = /* @__PURE__ */ k((o, t) => {
295
+ const {
296
+ alignEnd: e,
297
+ checked: n,
298
+ children: a,
299
+ className: c,
300
+ disabled: d,
301
+ hideLabel: D,
302
+ id: N,
303
+ label: L,
304
+ name: T,
305
+ onChange: h,
306
+ themeColor: v,
307
+ value: p,
308
+ ...P
309
+ } = o, [g] = M(() => N || F()), m = _(), i = _();
310
+ S(t, () => m.current, []);
311
+ const I = (l) => {
312
+ if (h) {
313
+ h(l, p);
314
+ return;
315
+ }
316
+ i.current.checked = l.target.checked;
317
+ };
318
+ return u(() => (i.current = $.attachTo(m.current), () => {
319
+ var l;
320
+ (l = i.current) === null || l === void 0 || l.destroy();
321
+ }), [i]), u(() => {
322
+ i.current.value = p;
323
+ }, [p]), u(() => {
324
+ i.current.checked = n;
325
+ }, [n]), u(() => {
326
+ i.current.disabled = d;
327
+ }, [d]), /* @__PURE__ */ s.createElement(j, {
328
+ alignEnd: e,
329
+ inputRef: i
330
+ }, /* @__PURE__ */ s.createElement("div", {
331
+ ref: m,
332
+ className: C("lmnt mdc-radio lmnt-radio", d && "mdc-radio--disabled", v && `lmnt-radio--${v}`, c, "mdc-touch-target-wrapper")
333
+ }, /* @__PURE__ */ s.createElement("input", A({
334
+ id: g,
335
+ onChange: I,
336
+ disabled: d,
337
+ name: T,
338
+ type: "radio",
339
+ className: "mdc-radio__native-control"
340
+ }, P)), /* @__PURE__ */ s.createElement("div", {
341
+ className: "mdc-radio__background"
342
+ }, /* @__PURE__ */ s.createElement("div", {
343
+ className: "mdc-radio__outer-circle"
344
+ }), /* @__PURE__ */ s.createElement("div", {
345
+ className: "mdc-radio__inner-circle"
346
+ })), /* @__PURE__ */ s.createElement("div", {
347
+ className: "mdc-radio__ripple"
348
+ })), /* @__PURE__ */ s.createElement(w, {
349
+ hideLabel: D,
350
+ targetId: g,
351
+ className: C(d && "lmnt-theme-on-surface-disabled"),
352
+ disabled: d
353
+ }, L || a));
354
+ });
355
+ b.displayName = "Radio";
356
+ b.propTypes = z;
357
+ b.defaultProps = G;
358
+ export {
359
+ b as R
360
+ };