@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,11 +1,12 @@
1
- import { c as C, _ as A, P as r } from "./index-D5m--65X.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-nQ0lMwpE.js";
4
- import { I as w } from "./index.es-eKuwB1ll.js";
5
- import { f as F, d as x } from "./index.es-ChSlnpSq.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";
1
+ import { _ as G, c as k, a as J, P as r } from "./index-Cpb-8cAN.js";
2
+ import { _ as K } from "./slicedToArray-BWk2gTCn.js";
3
+ import l, { forwardRef as Q, useState as X, useRef as I, useImperativeHandle as Y, useEffect as f } from "react";
4
+ import { F as Z } from "./index.es-CKdJX75f.js";
5
+ import { I as ee } from "./index.es-CmF6xAUJ.js";
6
+ import { e as te, d as ne } from "./index.es-BXj90wb_.js";
7
+ import { b as M, c as m } from "./tslib.es6-BDCynO9F.js";
8
+ import { M as re, a as ae } from "./component-neHBNHRu.js";
9
+ import { M as $, a as A, b as ie } from "./component-DsB0poTj.js";
9
10
  /**
10
11
  * @license
11
12
  * Copyright 2016 Google Inc.
@@ -28,9 +29,9 @@ import { M as y, a as R, b as H } from "./component-DsB0poTj.js";
28
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
30
  * THE SOFTWARE.
30
31
  */
31
- var V = {
32
+ var oe = {
32
33
  NATIVE_CONTROL_SELECTOR: ".mdc-radio__native-control"
33
- }, U = {
34
+ }, de = {
34
35
  DISABLED: "mdc-radio--disabled",
35
36
  ROOT: "mdc-radio"
36
37
  };
@@ -56,22 +57,22 @@ var V = {
56
57
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
57
58
  * THE SOFTWARE.
58
59
  */
59
- var E = (
60
+ var S = (
60
61
  /** @class */
61
- function(o) {
62
- O(t, o);
62
+ function(n) {
63
+ M(t, n);
63
64
  function t(e) {
64
- return o.call(this, f(f({}, t.defaultAdapter), e)) || this;
65
+ return n.call(this, m(m({}, t.defaultAdapter), e)) || this;
65
66
  }
66
67
  return Object.defineProperty(t, "cssClasses", {
67
68
  get: function() {
68
- return U;
69
+ return de;
69
70
  },
70
71
  enumerable: !1,
71
72
  configurable: !0
72
73
  }), Object.defineProperty(t, "strings", {
73
74
  get: function() {
74
- return V;
75
+ return oe;
75
76
  },
76
77
  enumerable: !1,
77
78
  configurable: !0
@@ -89,10 +90,10 @@ var E = (
89
90
  enumerable: !1,
90
91
  configurable: !0
91
92
  }), 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);
93
+ var o = t.cssClasses.DISABLED;
94
+ this.adapter.setNativeControlDisabled(e), e ? this.adapter.addClass(o) : this.adapter.removeClass(o);
94
95
  }, t;
95
- }(q)
96
+ }(re)
96
97
  );
97
98
  /**
98
99
  * @license
@@ -116,12 +117,12 @@ var E = (
116
117
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
117
118
  * THE SOFTWARE.
118
119
  */
119
- var $ = (
120
+ var le = (
120
121
  /** @class */
121
- function(o) {
122
- O(t, o);
122
+ function(n) {
123
+ M(t, n);
123
124
  function t() {
124
- var e = o !== null && o.apply(this, arguments) || this;
125
+ var e = n !== null && n.apply(this, arguments) || this;
125
126
  return e.ripple_ = e.createRipple_(), e;
126
127
  }
127
128
  return t.attachTo = function(e) {
@@ -160,9 +161,9 @@ var $ = (
160
161
  enumerable: !1,
161
162
  configurable: !0
162
163
  }), t.prototype.destroy = function() {
163
- this.ripple_.destroy(), o.prototype.destroy.call(this);
164
+ this.ripple_.destroy(), n.prototype.destroy.call(this);
164
165
  }, t.prototype.getDefaultFoundation = function() {
165
- var e = this, n = {
166
+ var e = this, o = {
166
167
  addClass: function(a) {
167
168
  return e.root.classList.add(a);
168
169
  },
@@ -173,14 +174,14 @@ var $ = (
173
174
  return e.nativeControl_.disabled = a;
174
175
  }
175
176
  };
176
- return new E(n);
177
+ return new S(o);
177
178
  }, 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());
179
+ var e = this, o = m(m({}, $.createAdapter(this)), {
180
+ registerInteractionHandler: function(a, s) {
181
+ return e.nativeControl_.addEventListener(a, s, A());
181
182
  },
182
- deregisterInteractionHandler: function(a, c) {
183
- return e.nativeControl_.removeEventListener(a, c, R());
183
+ deregisterInteractionHandler: function(a, s) {
184
+ return e.nativeControl_.removeEventListener(a, s, A());
184
185
  },
185
186
  // Radio buttons technically go "active" whenever there is *any* keyboard interaction.
186
187
  // This is not the UI we desire.
@@ -191,20 +192,19 @@ var $ = (
191
192
  return !0;
192
193
  }
193
194
  });
194
- return new y(this.root, new H(n));
195
+ return new $(this.root, new ie(o));
195
196
  }, Object.defineProperty(t.prototype, "nativeControl_", {
196
197
  get: function() {
197
- var e = E.strings.NATIVE_CONTROL_SELECTOR, n = this.root.querySelector(e);
198
- if (!n)
198
+ var e = S.strings.NATIVE_CONTROL_SELECTOR, o = this.root.querySelector(e);
199
+ if (!o)
199
200
  throw new Error("Radio component requires a " + e + " element");
200
- return n;
201
+ return o;
201
202
  },
202
203
  enumerable: !1,
203
204
  configurable: !0
204
205
  }), t;
205
- }(B)
206
- );
207
- const z = {
206
+ }(ae)
207
+ ), se = {
208
208
  /**
209
209
  * Aligns radio to the right of the label.
210
210
  *
@@ -224,7 +224,7 @@ const z = {
224
224
  *
225
225
  * Defaults to **undefined**.
226
226
  */
227
- children: x(r.node, "Radio", "Use `label` instead."),
227
+ children: ne(r.node, "Radio", "Use `label` instead."),
228
228
  /**
229
229
  * The css class name to be passed through to the component markup.
230
230
  *
@@ -279,7 +279,7 @@ const z = {
279
279
  * Defaults to **null**.
280
280
  */
281
281
  value: r.oneOfType([r.string, r.number])
282
- }, G = {
282
+ }, ce = {
283
283
  alignEnd: !1,
284
284
  checked: null,
285
285
  children: void 0,
@@ -289,72 +289,64 @@ const z = {
289
289
  id: void 0,
290
290
  label: null,
291
291
  name: null,
292
+ onChange: null,
292
293
  themeColor: "primary",
293
294
  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);
295
+ }, ue = ["alignEnd", "checked", "children", "className", "disabled", "hideLabel", "id", "label", "name", "onChange", "themeColor", "value"], i = ce, j = /* @__PURE__ */ Q(function(n, t) {
296
+ var e = n.alignEnd, o = e === void 0 ? i.alignEnd : e, a = n.checked, s = a === void 0 ? i.checked : a, v = n.children, w = v === void 0 ? i.children : v, b = n.className, F = b === void 0 ? i.className : b, g = n.disabled, c = g === void 0 ? i.disabled : g, C = n.hideLabel, x = C === void 0 ? i.hideLabel : C, _ = n.id, q = _ === void 0 ? i.id : _, y = n.label, B = y === void 0 ? i.label : y, E = n.name, H = E === void 0 ? i.name : E, R = n.onChange, N = R === void 0 ? i.onChange : R, O = n.themeColor, L = O === void 0 ? i.themeColor : O, D = n.value, p = D === void 0 ? i.value : D, V = G(n, ue), U = X(function() {
297
+ return q || te();
298
+ }), W = K(U, 1), T = W[0], h = I(), d = I();
299
+ Y(t, function() {
300
+ return h.current;
301
+ }, []);
302
+ var z = function(P) {
303
+ if (N) {
304
+ N(P, p);
314
305
  return;
315
306
  }
316
- i.current.checked = l.target.checked;
307
+ d.current.checked = P.target.checked;
317
308
  };
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,
309
+ return f(function() {
310
+ return d.current = le.attachTo(h.current), function() {
311
+ var u;
312
+ (u = d.current) === null || u === void 0 || u.destroy();
313
+ };
314
+ }, [d]), f(function() {
315
+ d.current.value = p;
316
+ }, [p]), f(function() {
317
+ d.current.checked = s;
318
+ }, [s]), f(function() {
319
+ d.current.disabled = c;
320
+ }, [c]), /* @__PURE__ */ l.createElement(Z, {
321
+ alignEnd: o,
322
+ inputRef: d
323
+ }, /* @__PURE__ */ l.createElement("div", {
324
+ ref: h,
325
+ className: k("lmnt mdc-radio lmnt-radio", c && "mdc-radio--disabled", L && "lmnt-radio--".concat(L), F, "mdc-touch-target-wrapper")
326
+ }, /* @__PURE__ */ l.createElement("input", J({
327
+ id: T,
328
+ onChange: z,
329
+ disabled: c,
330
+ name: H,
338
331
  type: "radio",
339
332
  className: "mdc-radio__native-control"
340
- }, P)), /* @__PURE__ */ s.createElement("div", {
333
+ }, V)), /* @__PURE__ */ l.createElement("div", {
341
334
  className: "mdc-radio__background"
342
- }, /* @__PURE__ */ s.createElement("div", {
335
+ }, /* @__PURE__ */ l.createElement("div", {
343
336
  className: "mdc-radio__outer-circle"
344
- }), /* @__PURE__ */ s.createElement("div", {
337
+ }), /* @__PURE__ */ l.createElement("div", {
345
338
  className: "mdc-radio__inner-circle"
346
- })), /* @__PURE__ */ s.createElement("div", {
339
+ })), /* @__PURE__ */ l.createElement("div", {
347
340
  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));
341
+ })), /* @__PURE__ */ l.createElement(ee, {
342
+ hideLabel: x,
343
+ targetId: T,
344
+ className: k(c && "lmnt-theme-on-surface-disabled"),
345
+ disabled: c
346
+ }, B || w));
354
347
  });
355
- b.displayName = "Radio";
356
- b.propTypes = z;
357
- b.defaultProps = G;
348
+ j.displayName = "Radio";
349
+ j.propTypes = se;
358
350
  export {
359
- b as R
351
+ j as R
360
352
  };
@@ -0,0 +1,166 @@
1
+ import { _ as z, a as S, c as I, b as h, d as R, P as s } from "./index-Cpb-8cAN.js";
2
+ import { _ as T, a as b, b as E, c as k, d as w, e as A, f as C } from "./defineProperty-CmuOyxyf.js";
3
+ import H, { forwardRef as K, useRef as q, useImperativeHandle as B } from "react";
4
+ import { d as F } from "./index.es-BXj90wb_.js";
5
+ var J = {
6
+ /**
7
+ * Children to be rendered. Expects multiple components of a similar type.
8
+ *
9
+ * Defaults to **null**.
10
+ */
11
+ children: s.node,
12
+ /**
13
+ * The grouping direction.
14
+ *
15
+ * Defaults to **'horizontal'**.
16
+ */
17
+ direction: s.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
18
+ /**
19
+ * Sets the Group width to be 100%.
20
+ *
21
+ * Defaults to **false**.
22
+ */
23
+ fullWidth: s.bool,
24
+ /**
25
+ * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
26
+ *
27
+ * Defaults to **'standard'**.
28
+ */
29
+ gap: s.oneOf(["dense", "standard", "airy", "none"]),
30
+ /**
31
+ * @deprecated _Renamed for improved clarity. See `gap`._
32
+ *
33
+ * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
34
+ *
35
+ * Defaults to **undefined**.
36
+ */
37
+ padding: F(s.oneOf(["dense", "standard", "airy", "none"]), "Group", "Renamed for improved clarity. See `gap`."),
38
+ /**
39
+ * Alignment along the primary axis. 'For `horizontal` grouping this means the x-axis positioning, for `vertical`, this means the y-axis positioning.Equivalent to flexbox 'justify-content.
40
+ *
41
+ * Defaults to **'start'**.
42
+ */
43
+ primaryAlign: s.oneOf(["start", "end", "center", "space-evenly", "space-between", "space-around"]),
44
+ /**
45
+ * Alignment along the secondary axis. For horizontal grouping this means the y-axis positioning, for vertical, this means the x-axis positioning.Equivalent to flexbox 'align-items.
46
+ *
47
+ * Defaults to **'baseline'**.
48
+ */
49
+ secondaryAlign: s.oneOf(["start", "end", "center", "stretch", "baseline"]),
50
+ /**
51
+ * Styles for the grid.
52
+ *
53
+ * Defaults to **undefined**.
54
+ */
55
+ style: s.object
56
+ }, L = {
57
+ children: null,
58
+ direction: "horizontal",
59
+ fullWidth: !1,
60
+ gap: "standard",
61
+ padding: void 0,
62
+ primaryAlign: "start",
63
+ secondaryAlign: "baseline",
64
+ style: void 0
65
+ }, M = ["children", "className", "direction", "fullWidth", "gap", "padding", "primaryAlign", "secondaryAlign", "style"];
66
+ function P(e, r) {
67
+ var a = R(e);
68
+ if (A) {
69
+ var t = A(e);
70
+ r && (t = C(t).call(t, function(n) {
71
+ return w(e, n).enumerable;
72
+ })), a.push.apply(a, t);
73
+ }
74
+ return a;
75
+ }
76
+ function d(e) {
77
+ for (var r = 1; r < arguments.length; r++) {
78
+ var a, t, n = arguments[r] != null ? arguments[r] : {};
79
+ r % 2 ? h(a = P(Object(n), !0)).call(a, function(c) {
80
+ T(e, c, n[c]);
81
+ }) : b ? E(e, b(n)) : h(t = P(Object(n))).call(t, function(c) {
82
+ k(e, c, w(n, c));
83
+ });
84
+ }
85
+ return e;
86
+ }
87
+ var i = L, Q = function(r) {
88
+ switch (r) {
89
+ case "end":
90
+ return "flex-end";
91
+ case "start":
92
+ return "flex-start";
93
+ case "center":
94
+ return "center";
95
+ case "stretch":
96
+ return "stretch";
97
+ case "baseline":
98
+ default:
99
+ return "baseline";
100
+ }
101
+ }, U = function(r) {
102
+ switch (r) {
103
+ case "end":
104
+ return "flex-end";
105
+ case "center":
106
+ return "center";
107
+ case "space-evenly":
108
+ return "space-evenly";
109
+ case "space-between":
110
+ return "space-between";
111
+ case "space-around":
112
+ return "space-around";
113
+ case "start":
114
+ default:
115
+ return "flex-start";
116
+ }
117
+ }, V = function(r) {
118
+ switch (r) {
119
+ case "dense":
120
+ return "8px";
121
+ case "airy":
122
+ return "24px";
123
+ case "standard":
124
+ return "16px";
125
+ case "none":
126
+ default:
127
+ return "0px";
128
+ }
129
+ }, X = function(r) {
130
+ switch (r) {
131
+ case "horizontal":
132
+ return "row";
133
+ case "vertical":
134
+ return "column";
135
+ case "horizontal-reverse":
136
+ return "row-reverse";
137
+ case "vertical-reverse":
138
+ return "column-reverse";
139
+ default:
140
+ return "row";
141
+ }
142
+ }, O = /* @__PURE__ */ K(function(e, r) {
143
+ var a = e.children, t = a === void 0 ? i.children : a, n = e.className, c = n === void 0 ? i.className : n, o = e.direction, _ = o === void 0 ? i.direction : o, p = e.fullWidth, $ = p === void 0 ? i.fullWidth : p, u = e.gap, j = u === void 0 ? i.gap : u, f = e.padding, x = f === void 0 ? i.padding : f, g = e.primaryAlign, W = g === void 0 ? i.primaryAlign : g, y = e.secondaryAlign, N = y === void 0 ? i.secondaryAlign : y, m = e.style, D = m === void 0 ? i.style : m, G = z(e, M), l = {
144
+ display: "flex",
145
+ flexDirection: X(_),
146
+ justifyContent: U(W),
147
+ alignItems: Q(N),
148
+ gap: V(x || j)
149
+ };
150
+ $ && (l = d(d({}, l), {}, {
151
+ width: "100%"
152
+ })), l = d(d({}, l), D);
153
+ var v = q();
154
+ return B(r, function() {
155
+ return v.current;
156
+ }, []), /* @__PURE__ */ H.createElement("div", S({
157
+ ref: v,
158
+ className: I("lmnt", "lmnt-group", c),
159
+ style: l
160
+ }, G), t);
161
+ });
162
+ O.displayName = "Group";
163
+ O.propTypes = J;
164
+ export {
165
+ O as G
166
+ };