@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
@@ -0,0 +1,292 @@
1
+ import { _ as M, c as D, a as E, b as x, d as V, P as e } from "./index-Cpb-8cAN.js";
2
+ import W, { forwardRef as I, useMemo as k, useRef as el, useImperativeHandle as rl, createContext as al, useContext as tl } from "react";
3
+ import { d as nl } from "./index.es-BXj90wb_.js";
4
+ import { _ as B, a as H, b as F, c as J, d as T, e as S, f as L } from "./defineProperty-CmuOyxyf.js";
5
+ var Q = /* @__PURE__ */ al({}), il = {
6
+ /**
7
+ * @deprecated _Use `variant`='airy' instead._
8
+ *
9
+ * Applies extra padding to each column.
10
+ *
11
+ * Defaults to **undefined**.
12
+ */
13
+ airy: nl(e.bool, "Grid", 'Use `variant`="airy" instead.'),
14
+ /**
15
+ * Accepts GridCol or GridRow.
16
+ *
17
+ * Defaults to **null**.
18
+ */
19
+ children: e.node.isRequired,
20
+ /**
21
+ * The css class name to be passed through to the component markup.
22
+ *
23
+ * Defaults to **undefined**.
24
+ */
25
+ className: e.string,
26
+ /**
27
+ * Sets the column gap for the grid.
28
+ *
29
+ * Defaults to **'16px'**.
30
+ */
31
+ columnGap: e.oneOfType([e.string, e.number]),
32
+ /**
33
+ * Applies 100% height to the grid and direct children rows. Useful when creating a page layout. Be aware all direct children rows will have a 100% height.
34
+ *
35
+ * Defaults to **null**.
36
+ */
37
+ fullHeight: e.bool,
38
+ /**
39
+ * Applies 100% width to the grid and direct children rows. Useful to maintain full width in a flex container.
40
+ *
41
+ * Defaults to **null**.
42
+ */
43
+ fullWidth: e.bool,
44
+ /**
45
+ * Alignment of entire grid: left and right.
46
+ *
47
+ * Defaults to **'center'**.
48
+ */
49
+ gridAlign: e.oneOf(["center", "left", "right"]),
50
+ /**
51
+ * Sets the row gap for the grid.
52
+ *
53
+ * Defaults to **'16px'**.
54
+ */
55
+ rowGap: e.oneOfType([e.string, e.number]),
56
+ /**
57
+ * Styles for the grid.
58
+ *
59
+ * Defaults to **undefined**.
60
+ */
61
+ style: e.object,
62
+ /**
63
+ * If true the grid will have a max width according to your theme's breakpoints.
64
+ *
65
+ * Defaults to **false**.
66
+ */
67
+ useMaxWidth: e.bool,
68
+ /**
69
+ * Select `airy` or `standard` padding.
70
+ *
71
+ * Defaults to **'standard'**.
72
+ */
73
+ variant: e.oneOf(["standard", "airy", "none"])
74
+ }, ol = {
75
+ airy: void 0,
76
+ children: null,
77
+ className: void 0,
78
+ columnGap: "16px",
79
+ fullHeight: null,
80
+ fullWidth: null,
81
+ gridAlign: "center",
82
+ rowGap: "16px",
83
+ useMaxWidth: !1,
84
+ variant: "standard"
85
+ }, dl = {
86
+ /**
87
+ * Alignment of cell within the row: top, middle, bottom. If omitted the col will stretch to the height of the row.
88
+ *
89
+ * Defaults to **undefined**.
90
+ */
91
+ align: e.oneOf(["", "top", "middle", "bottom"]),
92
+ /**
93
+ * Content to be rendered inside the GridCol. Accepts any valid markup.
94
+ *
95
+ * Defaults to **null**.
96
+ */
97
+ children: e.node,
98
+ /**
99
+ * The css class name to be passed through to the component markup.
100
+ *
101
+ * Defaults to **undefined**.
102
+ */
103
+ className: e.string,
104
+ /**
105
+ * Specifies the number of columns the cell spans.
106
+ *
107
+ * Defaults to **null**.
108
+ */
109
+ desktopCol: e.number,
110
+ /**
111
+ * Specifies a grid item's start position within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement. Set to any valid `grid-column-start`.
112
+ *
113
+ * Defaults to **null**.
114
+ */
115
+ gridColStart: e.oneOfType([e.string, e.number]),
116
+ /**
117
+ * Horizontal alignment of the cell contents of cell content: top, middle, bottom.
118
+ *
119
+ * Defaults to **'left'**.
120
+ */
121
+ horizontalAlign: e.oneOf(["left", "center", "right"]),
122
+ /**
123
+ * Specifies the order of the cell.
124
+ *
125
+ * Defaults to **null**.
126
+ */
127
+ order: e.number,
128
+ /**
129
+ * Specifies the number of columns the cell spans on a phone.
130
+ *
131
+ * Defaults to **null**.
132
+ */
133
+ phoneCol: e.number,
134
+ /**
135
+ * Styles for the grid.
136
+ *
137
+ * Defaults to **undefined**.
138
+ */
139
+ style: e.object,
140
+ /**
141
+ * Specifies the number of columns the cell spans on a tablet.
142
+ *
143
+ * Defaults to **null**.
144
+ */
145
+ tabletCol: e.number,
146
+ /**
147
+ * Vertical alignment of cell content: top, middle, bottom.
148
+ *
149
+ * Defaults to **'top'**.
150
+ */
151
+ verticalAlign: e.oneOf(["top", "middle", "bottom"])
152
+ }, cl = {
153
+ align: void 0,
154
+ children: null,
155
+ className: void 0,
156
+ desktopCol: null,
157
+ gridColStart: null,
158
+ horizontalAlign: "left",
159
+ order: null,
160
+ phoneCol: null,
161
+ style: void 0,
162
+ tabletCol: null,
163
+ verticalAlign: "top"
164
+ }, sl = {
165
+ /**
166
+ * Content to be rendered inside the GridRow. Accepts any valid markup.
167
+ *
168
+ * Defaults to **null**.
169
+ */
170
+ children: e.node.isRequired,
171
+ /**
172
+ * The css class name to be passed through to the component markup.
173
+ *
174
+ * Defaults to **undefined**.
175
+ */
176
+ className: e.string,
177
+ /**
178
+ * Styles for the grid.
179
+ *
180
+ * Defaults to **undefined**.
181
+ */
182
+ style: e.object
183
+ }, ul = {
184
+ children: null,
185
+ className: void 0,
186
+ style: void 0
187
+ }, pl = ["airy", "children", "className", "columnGap", "fullHeight", "fullWidth", "gridAlign", "rowGap", "style", "useMaxWidth", "variant"], s = ol, X = /* @__PURE__ */ I(function(l, n) {
188
+ var t = l.airy, r = t === void 0 ? s.airy : t, a = l.children, i = a === void 0 ? s.children : a, p = l.className, v = p === void 0 ? s.className : p, f = l.columnGap, c = f === void 0 ? s.columnGap : f, m = l.fullHeight, d = m === void 0 ? s.fullHeight : m, g = l.fullWidth, y = g === void 0 ? s.fullWidth : g, u = l.gridAlign, N = u === void 0 ? s.gridAlign : u, C = l.rowGap, G = C === void 0 ? s.rowGap : C;
189
+ l.style;
190
+ var $ = l.useMaxWidth, h = $ === void 0 ? s.useMaxWidth : $, w = l.variant, b = w === void 0 ? s.variant : w, A = M(l, pl), _ = r ? "airy" : b, P = k(function() {
191
+ return {
192
+ fullHeight: d,
193
+ rowGap: G,
194
+ columnGap: c
195
+ };
196
+ }, [c, d, G]), O = el();
197
+ rl(n, function() {
198
+ return O.current;
199
+ }, []);
200
+ var R = k(function() {
201
+ return D("lmnt", "mdc-layout-grid", "lmnt-layout-grid", "mdc-layout-grid mdc-layout-grid--align-".concat(N), (_ === "airy" || r) && "mdc-grid-cell-wrapper-airy-tablet mdc-grid-cell-wrapper-airy-desktop", b === "none" && "mdc-grid-cell-wrapper-none-tablet mdc-grid-cell-wrapper-none-desktop mdc-grid-cell-wrapper-none-phone ", y && "lmnt-layout-grid--full-width", d && "lmnt-layout-grid--full-height", h && "lmnt-layout-grid--with-max-width", v);
202
+ }, [r, v, _, d, y, N, h, b]);
203
+ return /* @__PURE__ */ W.createElement(Q.Provider, {
204
+ value: P
205
+ }, /* @__PURE__ */ W.createElement("div", E({
206
+ ref: O,
207
+ className: R
208
+ }, A), i));
209
+ });
210
+ X.displayName = "Grid";
211
+ X.propTypes = il;
212
+ var ml = ["align", "children", "className", "columns", "desktopCol", "gridColStart", "horizontalAlign", "order", "phoneCol", "style", "tabletCol", "verticalAlign"];
213
+ function q(l, n) {
214
+ var t = V(l);
215
+ if (S) {
216
+ var r = S(l);
217
+ n && (r = L(r).call(r, function(a) {
218
+ return T(l, a).enumerable;
219
+ })), t.push.apply(t, r);
220
+ }
221
+ return t;
222
+ }
223
+ function K(l) {
224
+ for (var n = 1; n < arguments.length; n++) {
225
+ var t, r, a = arguments[n] != null ? arguments[n] : {};
226
+ n % 2 ? x(t = q(Object(a), !0)).call(t, function(i) {
227
+ B(l, i, a[i]);
228
+ }) : H ? F(l, H(a)) : x(r = q(Object(a))).call(r, function(i) {
229
+ J(l, i, T(a, i));
230
+ });
231
+ }
232
+ return l;
233
+ }
234
+ var o = cl, Y = /* @__PURE__ */ I(function(l, n) {
235
+ var t = l.align, r = t === void 0 ? o.align : t, a = l.children, i = a === void 0 ? o.children : a, p = l.className, v = p === void 0 ? o.className : p, f = l.columns, c = f === void 0 ? o.columns : f, m = l.desktopCol, d = m === void 0 ? o.desktopCol : m, g = l.gridColStart, y = g === void 0 ? o.gridColStart : g, u = l.horizontalAlign, N = u === void 0 ? o.horizontalAlign : u, C = l.order, G = C === void 0 ? o.order : C, $ = l.phoneCol, h = $ === void 0 ? o.phoneCol : $, w = l.style, b = w === void 0 ? o.style : w, A = l.tabletCol, _ = A === void 0 ? o.tabletCol : A, P = l.verticalAlign, O = P === void 0 ? o.verticalAlign : P, R = M(l, ml), ll = k(function() {
236
+ return K(K({}, b), {}, {
237
+ gridColumnStart: y
238
+ });
239
+ }, [y, b]);
240
+ return /* @__PURE__ */ W.createElement("div", E({
241
+ ref: n,
242
+ style: ll,
243
+ className: D("lmnt", "lmnt-layout-grid__cell--vertical-align-".concat(O), "lmnt-layout-grid__cell--horizontal-align-".concat(N), "mdc-layout-grid__cell", !c && !h && !_ && !d && ["mdc-layout-grid__cell"], G && "mdc-layout-grid__cell--order-".concat(G), r && "mdc-layout-grid__cell--align-".concat(r), c && ["mdc-layout-grid__cell--span-".concat(c)], h && ["mdc-layout-grid__cell--span-".concat(h, "-phone")], _ && ["mdc-layout-grid__cell--span-".concat(_, "-tablet")], d && ["mdc-layout-grid__cell--span-".concat(d, "-desktop")], "lmnt-layout-grid__cell", v)
244
+ }, R), i);
245
+ });
246
+ Y.displayName = "GridCol";
247
+ Y.propTypes = dl;
248
+ var gl = ["children", "className", "style"];
249
+ function U(l, n) {
250
+ var t = V(l);
251
+ if (S) {
252
+ var r = S(l);
253
+ n && (r = L(r).call(r, function(a) {
254
+ return T(l, a).enumerable;
255
+ })), t.push.apply(t, r);
256
+ }
257
+ return t;
258
+ }
259
+ function j(l) {
260
+ for (var n = 1; n < arguments.length; n++) {
261
+ var t, r, a = arguments[n] != null ? arguments[n] : {};
262
+ n % 2 ? x(t = U(Object(a), !0)).call(t, function(i) {
263
+ B(l, i, a[i]);
264
+ }) : H ? F(l, H(a)) : x(r = U(Object(a))).call(r, function(i) {
265
+ J(l, i, T(a, i));
266
+ });
267
+ }
268
+ return l;
269
+ }
270
+ var z = ul, Z = /* @__PURE__ */ I(function(l, n) {
271
+ var t = l.children, r = t === void 0 ? z.children : t, a = l.className, i = a === void 0 ? z.className : a, p = l.style, v = p === void 0 ? z.style : p, f = M(l, gl), c = tl(Q), m = c.fullHeight, d = c.rowGap, g = c.columnGap, y = k(function() {
272
+ var u = {
273
+ rowGap: d,
274
+ columnGap: g
275
+ };
276
+ return m && (u = j(j({}, u), {}, {
277
+ height: "100%"
278
+ })), j(j({}, v), u);
279
+ }, [v, m, d, g]);
280
+ return /* @__PURE__ */ W.createElement("div", E({
281
+ ref: n,
282
+ className: D("lmnt", "mdc-layout-grid__inner", "lmnt-layout-grid__inner", i),
283
+ style: y
284
+ }, f), r);
285
+ });
286
+ Z.displayName = "GridRow";
287
+ Z.propTypes = sl;
288
+ export {
289
+ X as G,
290
+ Z as a,
291
+ Y as b
292
+ };
@@ -0,0 +1,80 @@
1
+ import { _ as w, a as R, c as D, b as g, d as I, P as d } from "./index-Cpb-8cAN.js";
2
+ import { _ as x, a as v, b as E, c as S, d as _, e as f, f as k } from "./defineProperty-CmuOyxyf.js";
3
+ import q, { forwardRef as H, useMemo as K, useRef as M, useImperativeHandle as W } from "react";
4
+ var z = {
5
+ /**
6
+ * Content to be rendered inside the padding component. Accepts any valid markup.
7
+ *
8
+ * Defaults to **null**.
9
+ */
10
+ children: d.node.isRequired,
11
+ /**
12
+ * The css class name to be passed through to the component markup.
13
+ *
14
+ * Defaults to **undefined**.
15
+ */
16
+ className: d.string,
17
+ /**
18
+ * Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
19
+ *
20
+ * Defaults to **null**.
21
+ */
22
+ customPadding: d.string,
23
+ /**
24
+ * By default a div will be rendered, this allow another tag to be used instead. A block type component is suggested.
25
+ *
26
+ * Defaults to **'div'**.
27
+ */
28
+ tag: d.oneOfType([d.string, d.elementType]),
29
+ /**
30
+ * Applies the specified padding amount. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
31
+ *
32
+ * Defaults to **'standard'**.
33
+ */
34
+ variant: d.oneOf(["dense", "standard", "airy"])
35
+ }, A = {
36
+ children: null,
37
+ className: void 0,
38
+ customPadding: null,
39
+ tag: "div",
40
+ variant: "standard"
41
+ }, B = ["tag", "variant", "children", "className", "customPadding", "style"];
42
+ function y(a, r) {
43
+ var t = I(a);
44
+ if (f) {
45
+ var n = f(a);
46
+ r && (n = k(n).call(n, function(e) {
47
+ return _(a, e).enumerable;
48
+ })), t.push.apply(t, n);
49
+ }
50
+ return t;
51
+ }
52
+ function P(a) {
53
+ for (var r = 1; r < arguments.length; r++) {
54
+ var t, n, e = arguments[r] != null ? arguments[r] : {};
55
+ r % 2 ? g(t = y(Object(e), !0)).call(t, function(s) {
56
+ x(a, s, e[s]);
57
+ }) : v ? E(a, v(e)) : g(n = y(Object(e))).call(n, function(s) {
58
+ S(a, s, _(e, s));
59
+ });
60
+ }
61
+ return a;
62
+ }
63
+ var i = A, b = /* @__PURE__ */ H(function(a, r) {
64
+ var t = a.tag, n = t === void 0 ? i.tag : t, e = a.variant, s = e === void 0 ? i.variant : e, c = a.children, O = c === void 0 ? i.children : c, l = a.className, $ = l === void 0 ? i.className : l, o = a.customPadding, u = o === void 0 ? i.customPadding : o, p = a.style, m = p === void 0 ? i.style : p, h = w(a, B), j = K(function() {
65
+ return P(P({}, m), {}, {
66
+ padding: u
67
+ });
68
+ }, [m, u]), N = n || "div", T = M();
69
+ return W(r, function() {
70
+ return T.current;
71
+ }, []), /* @__PURE__ */ q.createElement(N, R({
72
+ className: D("lmnt", "lmnt-padding", s === "dense" && "lmnt-padding--dense", s === "standard" && "lmnt-padding--standard", s === "airy" && "lmnt-padding--airy", $),
73
+ style: j
74
+ }, h), O);
75
+ });
76
+ b.displayName = "Padding";
77
+ b.propTypes = z;
78
+ export {
79
+ b as P
80
+ };