@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,912 @@
1
+ import { _ as T, a as _, c as v, b as S, d as Z, P as a } from "./index-Cpb-8cAN.js";
2
+ import { _ as ee, a as M, b as ae, c as re, d as j, e as U, f as te } from "./defineProperty-CmuOyxyf.js";
3
+ import { _ as pe } from "./slicedToArray-BWk2gTCn.js";
4
+ import m, { useLayoutEffect as Ie, useEffect as ge, useState as Y, useMemo as q, forwardRef as $, useRef as H, useImperativeHandle as z, createContext as we } from "react";
5
+ import { b as ue, r as le } from "./index.es-BXj90wb_.js";
6
+ import { B as Ee } from "./index.es-0QJC9VS2.js";
7
+ import { I as De } from "./index.es-DwzB1d7_.js";
8
+ import { I as Re } from "./index.es-IXyb5F6n.js";
9
+ import { D as Se } from "./index.es-Dfju71Pi.js";
10
+ import { G as Me } from "./index.es-DDYCugj-.js";
11
+ import { _ as ie } from "./includes-Bt-Stz_B.js";
12
+ var Ue = function() {
13
+ };
14
+ function qa(e) {
15
+ for (var l = [], r = 1; r < arguments.length; r++)
16
+ l[r - 1] = arguments[r];
17
+ e && e.addEventListener && e.addEventListener.apply(e, l);
18
+ }
19
+ function Ha(e) {
20
+ for (var l = [], r = 1; r < arguments.length; r++)
21
+ l[r - 1] = arguments[r];
22
+ e && e.removeEventListener && e.removeEventListener.apply(e, l);
23
+ }
24
+ var ve = typeof window < "u", je = ve ? Ie : ge, fe = {
25
+ x: 0,
26
+ y: 0,
27
+ width: 0,
28
+ height: 0,
29
+ top: 0,
30
+ left: 0,
31
+ bottom: 0,
32
+ right: 0
33
+ };
34
+ function ze() {
35
+ var e = Y(null), l = e[0], r = e[1], i = Y(fe), n = i[0], t = i[1], o = q(function() {
36
+ return new window.ResizeObserver(function(c) {
37
+ if (c[0]) {
38
+ var d = c[0].contentRect, s = d.x, y = d.y, g = d.width, u = d.height, b = d.top, f = d.left, p = d.bottom, h = d.right;
39
+ t({ x: s, y, width: g, height: u, top: b, left: f, bottom: p, right: h });
40
+ }
41
+ });
42
+ }, []);
43
+ return je(function() {
44
+ if (l)
45
+ return o.observe(l), function() {
46
+ o.disconnect();
47
+ };
48
+ }, [l]), [r, n];
49
+ }
50
+ const We = ve && typeof window.ResizeObserver < "u" ? ze : function() {
51
+ return [Ue, fe];
52
+ };
53
+ var Ge = {
54
+ /**
55
+ * Alignment of the Card Body.
56
+ *
57
+ * Defaults to **'left-top'**.
58
+ */
59
+ bodyAlignment: a.oneOf(["left-center", "left-top", "left-bottom", "centered", "right-center", "right-top", "right-bottom"]),
60
+ /**
61
+ * Content to be rendered inside the Card. Should be one of CardActions, CardBody, CardContent, CardDivider, CardFilter, CardMedia, or CardTitle.
62
+ *
63
+ * Defaults to **null**.
64
+ */
65
+ children: a.node,
66
+ /**
67
+ * Height style property of card.
68
+ *
69
+ * Defaults to **'auto'**.
70
+ */
71
+ height: a.string,
72
+ /**
73
+ * If true the card will be styled for a loading spinner
74
+ *
75
+ * Defaults to **false**.
76
+ */
77
+ loadingCard: a.bool,
78
+ /**
79
+ * Passthrough style object.
80
+ *
81
+ * Defaults to **null**.
82
+ */
83
+ style: a.object,
84
+ /**
85
+ * Background color of the card. It is recommended to set to transparent if setting theme color on the Card Title or Card Body.
86
+ *
87
+ * Defaults to **'surface'**.
88
+ */
89
+ themeColor: a.oneOf(["transparent", "surface", "surface-variant", "primary", "primary-variant", "primary-50", "primary-100", "primary-200", "primary-300", "primary-400", "primary-500", "primary-600", "primary-700", "primary-800", "primary-900", "secondary", "secondary-variant", "secondary-50", "secondary-100", "secondary-200", "secondary-300", "secondary-400", "secondary-500", "secondary-600", "secondary-700", "secondary-800", "secondary-900", "danger", "danger-variant", "danger-50", "danger-100", "danger-200", "danger-300", "danger-400", "danger-500", "danger-600", "danger-700", "danger-800", "danger-900", "ancillary-100", "ancillary-200", "ancillary-300", "ancillary-400", "ancillary-500", "ancillary-600", "ancillary-700", "ancillary-800", "ancillary-900"]),
90
+ /**
91
+ * Variant options include `default` (set by theme), `flat`, `outlined`, and `raised`. The `flat` variant removes elevation. The `outlined` variant adds border and removes elevation. The `raised` variant adds elevation.
92
+ *
93
+ * Defaults to **'default'**.
94
+ */
95
+ variant: a.oneOf(["default", "flat", "outlined", "raised"])
96
+ }, Ve = {
97
+ bodyAlignment: "left-top",
98
+ children: null,
99
+ height: "auto",
100
+ loadingCard: !1,
101
+ style: null,
102
+ themeColor: "surface",
103
+ variant: "default"
104
+ }, qe = {
105
+ /**
106
+ * Override the default (`primary`) color with the `secondary` color. Most commonly used when the control is placed on a darker surface.
107
+ *
108
+ * Defaults to **'primary'**.
109
+ */
110
+ actionButtonThemeColor: a.oneOf(["primary", "secondary"]),
111
+ /**
112
+ * Content to be rendered inside the button. Can be used instead `label` of to provide more flexibility. Accepts any valid markup. _Warning, if Label is set, it will be used instead of child content._
113
+ *
114
+ * Defaults to **null**.
115
+ */
116
+ children: a.node,
117
+ /**
118
+ * The css class name to be passed through to the component markup.
119
+ *
120
+ * Defaults to **undefined**.
121
+ */
122
+ className: a.string,
123
+ /**
124
+ * Reference to the DOM button. This enables a greater level of integration.
125
+ *
126
+ * Defaults to **undefined**.
127
+ */
128
+ customRef: a.oneOfType([
129
+ a.func,
130
+ // eslint-disable-next-line react/forbid-prop-types
131
+ a.shape({
132
+ current: a.any
133
+ })
134
+ ]),
135
+ /**
136
+ * Prevent the user from interacting with the component.
137
+ *
138
+ * Defaults to **false**.
139
+ */
140
+ disabled: a.bool,
141
+ /**
142
+ * Applies a full-width style where the button will fill it's container.
143
+ *
144
+ * Defaults to **false**.
145
+ */
146
+ fullWidth: a.bool,
147
+ /**
148
+ * The button will render as an anchor tag.
149
+ *
150
+ * Defaults to **null**.
151
+ */
152
+ href: a.string,
153
+ /**
154
+ * The displayed text. Expects a valid string. If label and children are both set, label will take priority.
155
+ *
156
+ * Defaults to **null**.
157
+ */
158
+ label: a.string,
159
+ /**
160
+ * Adds the given Icon to the left of the button text. May not be used with `trailingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control,
161
+ *
162
+ * Defaults to **null**.
163
+ */
164
+ leadingIcon: a.oneOfType([a.string, a.node]),
165
+ /**
166
+ * The primary interaction event for button.
167
+ *
168
+ * Defaults to **null**.
169
+ */
170
+ onClick: a.func,
171
+ /**
172
+ * Adds the given Icon to the right of the button text. May not be used with `leadingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control.
173
+ *
174
+ * Defaults to **null**.
175
+ */
176
+ trailingIcon: a.oneOfType([a.string, a.node]),
177
+ /**
178
+ * This applies the html button type (button, submit, reset) or the anchor media type when used with the href property.
179
+ *
180
+ * Defaults to **'button'**.
181
+ */
182
+ type: a.oneOf(["button", "submit", "reset"])
183
+ }, He = {
184
+ actionButtonThemeColor: "primary",
185
+ children: null,
186
+ className: void 0,
187
+ customRef: void 0,
188
+ disabled: !1,
189
+ fullWidth: !1,
190
+ href: null,
191
+ label: null,
192
+ leadingIcon: null,
193
+ trailingIcon: null,
194
+ type: "button"
195
+ }, Fe = {
196
+ /**
197
+ * Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
198
+ *
199
+ * Defaults to **false**.
200
+ */
201
+ active: a.bool,
202
+ /**
203
+ * Accessibility label for assistive technologies.
204
+ *
205
+ * Defaults to **null**.
206
+ */
207
+ ariaLabel: a.string,
208
+ /**
209
+ * Id of the component being labeled for assistive technologies.
210
+ *
211
+ * Defaults to **null**.
212
+ */
213
+ ariaLabelledBy: a.string,
214
+ /**
215
+ * The content when when using the Card Action Icon Button normally. Expects a string, but a valid custom icon is accepted. For toggle button functionality, use `toggleOn` and `toggleOff` instead.
216
+ *
217
+ * Defaults to **null**.
218
+ */
219
+ children: a.node,
220
+ /**
221
+ * The css class name to be passed through to the component markup.
222
+ *
223
+ * Defaults to **undefined**.
224
+ */
225
+ className: a.string,
226
+ /**
227
+ * Disables the icon button.
228
+ *
229
+ * Defaults to **false**.
230
+ */
231
+ disabled: a.bool,
232
+ /**
233
+ * Fired when the user clicks the Card Action Icon Button, will return toggle state, if applicable.
234
+ *
235
+ * Defaults to **null**.
236
+ */
237
+ onClick: a.func,
238
+ /**
239
+ * The content to be rendered when the Card Action Icon Button is toggled off. Expects a string, but a valid custom icon is accepted. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
240
+ *
241
+ * Defaults to **null**.
242
+ */
243
+ toggleOff: a.node,
244
+ /**
245
+ * The `aria-label` value to be read by a screen-reader when the button is toggled off. Example 'Add to Favorites'. Alternatively, `toggleOffAriaLabelledBy` may be used instead.
246
+ *
247
+ * Defaults to **null**.
248
+ */
249
+ toggleOffAriaLabel: a.string,
250
+ /**
251
+ * The `aria-labelledby`value when the button is toggled on. This should be the `id `of a parent element to be read by a screen reader instead of `aria-label`.
252
+ *
253
+ * Defaults to **null**.
254
+ */
255
+ toggleOffAriaLabelledBy: a.string,
256
+ /**
257
+ * The content to be rendered when the Card Action Icon Button is toggled on. Expects a string, but a valid custom icon is accepted. The typical use case for a toggle button would be to set an Icon for `toggleOn` and `toggleOff`, leaving children blank.
258
+ *
259
+ * Defaults to **null**.
260
+ */
261
+ toggleOn: a.node,
262
+ /**
263
+ * The `aria-label` value to be read by a screen-reader when the button is toggled on. Example 'Remove from Favorites'. Alternatively, `toggleOnAriaLabelledBy` may be used instead.
264
+ *
265
+ * Defaults to **null**.
266
+ */
267
+ toggleOnAriaLabel: a.string,
268
+ /**
269
+ * The `aria-labelledby`value when the button is toggled on. This should be the `id` of a parent element to be read by a screen reader instead of `aria-label`.
270
+ *
271
+ * Defaults to **null**.
272
+ */
273
+ toggleOnAriaLabelledBy: a.string,
274
+ /**
275
+ * Variants prefixed with `filled-` will add a background color to the icon according to the theme. Variants prefixed with ` color-` will change the color of the icon according to the theme.
276
+ *
277
+ * Defaults to **empty string**.
278
+ */
279
+ variant: ue(a.oneOf(["", "filled-danger-alt", "filled-danger", "filled-primary", "filled-secondary", "color-primary", "color-secondary", "color-on-dark"]), ["primary-alt", "secondary-alt", "primary", "danger-alt", "danger"], "CardActionIcon", "Please use one of '','filled-danger-alt','filled-danger','filled-primary','filled-secondary','color-primary','color-secondary','color-on-dark'.")
280
+ }, Ke = {
281
+ ariaLabel: null,
282
+ children: null,
283
+ className: void 0,
284
+ disabled: !1,
285
+ onClick: null,
286
+ toggleOff: null,
287
+ toggleOffAriaLabel: null,
288
+ toggleOffAriaLabelledBy: null,
289
+ toggleOn: null,
290
+ toggleOnAriaLabel: null,
291
+ toggleOnAriaLabelledBy: null,
292
+ variant: ""
293
+ }, Je = {
294
+ /**
295
+ * Add buttons to card actions.
296
+ *
297
+ * Defaults to **null**.
298
+ */
299
+ actionButtons: a.node,
300
+ /**
301
+ * Add icons to card actions.
302
+ *
303
+ * Defaults to **null**.
304
+ */
305
+ actionIcons: a.node,
306
+ /**
307
+ * Aligns action buttons and icon buttons. 'center' and 'trailing' only allow buttons.
308
+ *
309
+ * Defaults to **'leading'**.
310
+ */
311
+ alignment: a.oneOf(["leading", "center", "trailing"])
312
+ }, Qe = {
313
+ actionButtons: null,
314
+ actionIcons: null,
315
+ alignment: "leading"
316
+ }, Xe = {
317
+ /**
318
+ * Content to be rendered inside the title block. Accepts any valid markup.
319
+ *
320
+ * Defaults to **null**.
321
+ */
322
+ children: a.node,
323
+ /**
324
+ * Background color of the card body. It is recommended to set to the Card themeColor to transparent if setting the Card Body color.
325
+ *
326
+ * Defaults to **'surface'**.
327
+ */
328
+ themeColor: a.oneOf(["surface", "surface-variant", "primary", "primary-variant", "primary-50", "primary-100", "primary-200", "primary-300", "primary-400", "primary-500", "primary-600", "primary-700", "primary-800", "primary-900", "secondary", "secondary-variant", "secondary-50", "secondary-100", "secondary-200", "secondary-300", "secondary-400", "secondary-500", "secondary-600", "secondary-700", "secondary-800", "secondary-900", "danger", "danger-variant", "danger-50", "danger-100", "danger-200", "danger-300", "danger-400", "danger-500", "danger-600", "danger-700", "danger-800", "danger-900", "ancillary-100", "ancillary-200", "ancillary-300", "ancillary-400", "ancillary-500", "ancillary-600", "ancillary-700", "ancillary-800", "ancillary-900"]),
329
+ /**
330
+ * Sets typography class for Card Body. This can be overwritten by the children markup
331
+ *
332
+ * Defaults to **'body2'**.
333
+ */
334
+ typographyType: ue(a.oneOf(["body1", "body2", "button", "caption", "display1", "display2", "display3", "display4", "display5", "display6", "overline", "subtitle1", "subtitle2"]), ["headline1", "headline2", "headline3", "headline4", "headline5", "headline6"], "CardBody", "Please use one of 'body1','body2','button','caption','display1','display2','display3','display4','display5','display6','overline','subtitle1','subtitle2'.")
335
+ }, Ye = {
336
+ children: null,
337
+ themeColor: "surface",
338
+ typographyType: "body2"
339
+ }, Ze = {
340
+ /**
341
+ * Content to be rendered inside the content block. Accepts any valid markup.
342
+ *
343
+ * Defaults to **null**.
344
+ */
345
+ children: a.node
346
+ }, ea = {
347
+ children: null
348
+ }, aa = {
349
+ /**
350
+ * Theme color for the Card Divider. Leave empty for gray.
351
+ *
352
+ * Defaults to **'on-surface-stroke'**.
353
+ */
354
+ dividerThemeColor: a.oneOf(["null", "on-surface-stroke", "primary", "primary-variant", "primary-50", "primary-100", "primary-200", "primary-300", "primary-400", "primary-500", "primary-600", "primary-700", "primary-800", "primary-900", "secondary", "secondary-variant", "secondary-50", "secondary-100", "secondary-200", "secondary-300", "secondary-400", "secondary-500", "secondary-600", "secondary-700", "secondary-800", "secondary-900", "danger", "danger-variant", "danger-50", "danger-100", "danger-200", "danger-300", "danger-400", "danger-500", "danger-600", "danger-700", "danger-800", "danger-900", "ancillary-100", "ancillary-200", "ancillary-300", "ancillary-400"]),
355
+ /**
356
+ * Choose between dense and tall variants.
357
+ *
358
+ * Defaults to **'dense'**.
359
+ */
360
+ dividerVariant: a.oneOf(["dense", "tall"])
361
+ }, ra = {
362
+ dividerThemeColor: "on-surface-stroke",
363
+ dividerVariant: "dense"
364
+ }, ta = {
365
+ /**
366
+ * Content to be rendered inside the title block. Mostly commonly a Select, Textfield component, however any valid components or markup may be used.
367
+ *
368
+ * Defaults to **null**.
369
+ */
370
+ children: a.node,
371
+ /**
372
+ * The css class name to be passed through to the component markup.
373
+ *
374
+ * Defaults to **undefined**.
375
+ */
376
+ className: a.string,
377
+ /**
378
+ * Type of filter being used.
379
+ *
380
+ * Defaults to **'tabs'**.
381
+ */
382
+ filterType: a.oneOf(["tabs", "chips", "select", "select-2"])
383
+ }, na = {
384
+ children: null,
385
+ className: void 0,
386
+ filterType: "tabs"
387
+ }, la = {
388
+ /**
389
+ * Most commonly text or a Typography component, but accepts any valid markup.
390
+ *
391
+ * Defaults to **null**.
392
+ */
393
+ children: a.node,
394
+ /**
395
+ * The css class name to be passed through to the component markup.
396
+ *
397
+ * Defaults to **undefined**.
398
+ */
399
+ className: a.string,
400
+ /**
401
+ * Changes which side of content the Card side media renders on. Improves layout for right-to-left languages.
402
+ *
403
+ * Defaults to **false**.
404
+ */
405
+ rtl: a.bool
406
+ }, ia = {
407
+ children: null,
408
+ className: void 0,
409
+ rtl: !1
410
+ }, oa = {
411
+ /**
412
+ * Url for Card media
413
+ *
414
+ * Defaults to **null**.
415
+ */
416
+ mediaUrl: a.string,
417
+ /**
418
+ * Applies aspect ratio style to the card media.
419
+ *
420
+ * Defaults to **'square'**.
421
+ */
422
+ ratio: a.oneOf(["square"]),
423
+ /**
424
+ * Width for Card media
425
+ *
426
+ * Defaults to **'30%'**.
427
+ */
428
+ width: a.oneOfType([a.number, a.string])
429
+ }, da = {
430
+ mediaUrl: null,
431
+ width: "30%"
432
+ }, ca = {
433
+ /**
434
+ * Child components will be rendered on top of the provided image. Use `contentBottom` and `contentTop` to control content positioning. Accepts any valid markup.
435
+ *
436
+ * Defaults to **null**.
437
+ */
438
+ children: a.node,
439
+ /**
440
+ * Adjust placement of the media content.
441
+ *
442
+ * Defaults to **'bottom'**.
443
+ */
444
+ contentPlacement: a.oneOf(["bottom", "top"]),
445
+ /**
446
+ * Image Url for card background image
447
+ *
448
+ * Defaults to **null**.
449
+ */
450
+ imageUrl: a.string,
451
+ /**
452
+ * Adds an overlay over to the Card Media.
453
+ *
454
+ * Defaults to **false**.
455
+ */
456
+ overlay: a.bool,
457
+ /**
458
+ * Overlay theme color.
459
+ *
460
+ * Defaults to **'dark'**.
461
+ */
462
+ overlayThemeColor: a.oneOf(["dark", "light", "surface", "linear-gradient-white-to-bottom", "linear-gradient-white-to-top", "linear-gradient-black-to-bottom", "linear-gradient-black-to-top", "linear-gradient-primary-dark-to-bottom", "linear-gradient-primary-dark-to-top", "linear-gradient-primary-darker-to-bottom", "linear-gradient-primary-darker-to-top", "linear-gradient-primary-to-bottom", "linear-gradient-primary-to-top", "linear-gradient-secondary-dark-to-bottom", "linear-gradient-secondary-dark-to-top", "linear-gradient-secondary-darker-to-bottom", "linear-gradient-secondary-darker-to-top", "linear-gradient-secondary-to-bottom", "linear-gradient-secondary-to-top"]),
463
+ /**
464
+ * Applies aspect ratio style to the card media.
465
+ *
466
+ * Defaults to **'square'**.
467
+ */
468
+ ratio: a.oneOf(["square", "sixteen-nine", "four-three", "four-five", "two-one"])
469
+ }, sa = {
470
+ children: null,
471
+ contentPlacement: "bottom",
472
+ imageUrl: null,
473
+ overlay: !1,
474
+ overlayThemeColor: "dark",
475
+ ratio: "square"
476
+ }, ma = {
477
+ /**
478
+ * Content to be rendered inside the Card Overlay. Useful for angles or other non semantic elements displayed in the Card.
479
+ *
480
+ * Defaults to **null**.
481
+ */
482
+ children: a.node,
483
+ /**
484
+ * The css class name to be passed through to the component markup.
485
+ *
486
+ * Defaults to **undefined**.
487
+ */
488
+ className: a.string,
489
+ /**
490
+ * Overlay theme color.
491
+ *
492
+ * Defaults to **'dark'**.
493
+ */
494
+ overlayThemeColor: a.oneOf(["dark", "light", "surface", "linear-gradient-white-to-bottom", "linear-gradient-white-to-top", "linear-gradient-black-to-bottom", "linear-gradient-black-to-top", "linear-gradient-primary-dark-to-bottom", "linear-gradient-primary-dark-to-top", "linear-gradient-primary-darker-to-bottom", "linear-gradient-primary-darker-to-top", "linear-gradient-primary-to-bottom", "linear-gradient-primary-to-top", "linear-gradient-secondary-dark-to-bottom", "linear-gradient-secondary-dark-to-top", "linear-gradient-secondary-darker-to-bottom", "linear-gradient-secondary-darker-to-top", "linear-gradient-secondary-to-bottom", "linear-gradient-secondary-to-top"]),
495
+ /**
496
+ * Position of the Overlay. Use `overlayThemeColor` to change the theme color. If set to leading or trailing be sure to set `alignment` on Card accordingly to have Card Content over the overlay.
497
+ *
498
+ * Defaults to **'full'**.
499
+ */
500
+ position: a.oneOf(["full", "leading", "trailing"])
501
+ }, ya = {
502
+ children: null,
503
+ className: void 0,
504
+ overlayThemeColor: "dark",
505
+ position: "full"
506
+ }, pa = {
507
+ /**
508
+ * Content to be rendered as the primary action.
509
+ *
510
+ * Defaults to **null**.
511
+ */
512
+ children: a.node,
513
+ /**
514
+ * The primary interaction event for card.
515
+ *
516
+ * Defaults to **null**.
517
+ */
518
+ onClick: a.func,
519
+ /**
520
+ * By default a div will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
521
+ *
522
+ * Defaults to **'div'**.
523
+ */
524
+ tag: a.oneOfType([a.string, a.elementType, a.instanceOf(m.Component)])
525
+ }, ga = {
526
+ children: null
527
+ }, ua = {
528
+ /**
529
+ * The css class name to be passed through to the component markup.
530
+ *
531
+ * Defaults to **undefined**.
532
+ */
533
+ className: a.string,
534
+ /**
535
+ * Content to be displayed in the leading block container. See README for types supported.
536
+ *
537
+ * Defaults to **null**.
538
+ */
539
+ leadingBlock: le(a.node, "CardTitle", "leadingBlockType"),
540
+ /**
541
+ * The type of media that will render in the leading block. See README for size constraints.
542
+ *
543
+ * Defaults to **empty string**.
544
+ */
545
+ leadingBlockType: a.oneOf(["", "avatar", "icon", "icon-with-background", "thumbnail"]),
546
+ /**
547
+ * Content to be displayed in the Overline text of the title. Expects a string, but can be any valid markup.
548
+ *
549
+ * Defaults to **null**.
550
+ */
551
+ overlineText: a.node,
552
+ /**
553
+ * Where title appears in card.
554
+ *
555
+ * Defaults to **'top'**.
556
+ */
557
+ placement: a.oneOf(["top", "middle", "bottom"]),
558
+ /**
559
+ * Content to be displayed in the Primary text of the title. Expects a string, but can be any valid markup.
560
+ *
561
+ * Defaults to **null**.
562
+ */
563
+ primaryText: a.node,
564
+ /**
565
+ * Content to be displayed in the Secondary text of the title. Expects a string, but can be any valid markup.
566
+ *
567
+ * Defaults to **null**.
568
+ */
569
+ secondaryText: a.node,
570
+ /**
571
+ * Prop that makes card title stackable.
572
+ *
573
+ * Defaults to **false**.
574
+ */
575
+ stacked: a.bool,
576
+ /**
577
+ * Content to be displayed in the Secondary text of the title and could be used to make Card title stackable. Expects a string, but can be any valid markup.
578
+ *
579
+ * Defaults to **null**.
580
+ */
581
+ stackedSecondaryText: a.node,
582
+ /**
583
+ * Background color of the `CardTitle`.
584
+ *
585
+ * Defaults to **'surface'**.
586
+ */
587
+ themeColor: a.oneOf(["surface", "primary", "secondary"]),
588
+ /**
589
+ * Content to be displayed in the trailing block container. See README for types supported.
590
+ *
591
+ * Defaults to **null**.
592
+ */
593
+ trailingBlock: le(a.node, "CardTitle", "trailingBlockType"),
594
+ /**
595
+ * The type of media that will render in the trailing block. See README for size constraints.
596
+ *
597
+ * Defaults to **empty string**.
598
+ */
599
+ trailingBlockType: a.oneOf(["", "title-actions", "avatar", "badge", "icon", "icon-with-background", "thumbnail"])
600
+ }, va = {
601
+ className: void 0,
602
+ leadingBlock: null,
603
+ leadingBlockType: "",
604
+ overlineText: null,
605
+ placement: "top",
606
+ primaryText: null,
607
+ secondaryText: null,
608
+ stacked: !1,
609
+ stackedSecondaryText: null,
610
+ themeColor: "surface",
611
+ trailingBlock: null,
612
+ trailingBlockType: ""
613
+ }, fa = ["bodyAlignment", "children", "className", "direction", "height", "loadingCard", "outlined", "style", "themeColor", "variant"];
614
+ function oe(e, l) {
615
+ var r = Z(e);
616
+ if (U) {
617
+ var i = U(e);
618
+ l && (i = te(i).call(i, function(n) {
619
+ return j(e, n).enumerable;
620
+ })), r.push.apply(r, i);
621
+ }
622
+ return r;
623
+ }
624
+ function de(e) {
625
+ for (var l = 1; l < arguments.length; l++) {
626
+ var r, i, n = arguments[l] != null ? arguments[l] : {};
627
+ l % 2 ? S(r = oe(Object(n), !0)).call(r, function(t) {
628
+ ee(e, t, n[t]);
629
+ }) : M ? ae(e, M(n)) : S(i = oe(Object(n))).call(i, function(t) {
630
+ re(e, t, j(n, t));
631
+ });
632
+ }
633
+ return e;
634
+ }
635
+ var w = Ve, he = /* @__PURE__ */ $(function(e, l) {
636
+ var r = e.bodyAlignment, i = r === void 0 ? w.bodyAlignment : r, n = e.children, t = n === void 0 ? w.children : n, o = e.className, c = o === void 0 ? w.className : o, d = e.direction, s = d === void 0 ? w.direction : d, y = e.height, g = y === void 0 ? w.height : y, u = e.loadingCard, b = u === void 0 ? w.loadingCard : u;
637
+ e.outlined;
638
+ var f = e.style, p = f === void 0 ? w.style : f, h = e.themeColor, B = h === void 0 ? w.themeColor : h, N = e.variant, x = N === void 0 ? w.variant : N, L = T(e, fa), E = Y(de({
639
+ height: g,
640
+ direction: s
641
+ }, p)), P = pe(E, 2), R = P[0], I = P[1], C = H();
642
+ return z(l, function() {
643
+ return C.current;
644
+ }, []), ge(function() {
645
+ I(de({
646
+ height: g,
647
+ // display: 'flex', do we need this?
648
+ direction: s
649
+ }, p));
650
+ }, [g, s, p]), /* @__PURE__ */ m.createElement("div", _({
651
+ ref: C,
652
+ className: v("lmnt", "lmnt-card", "mdc-card", x === "outlined" && "mdc-card--outlined", x === "flat" && "lmnt-card--flat", x === "raised" && "lmnt-card--raised", b && "lmnt-card--loading", "lmnt-card--".concat(i), "lmnt-theme-".concat(B, "-bg"), c),
653
+ style: R
654
+ }, L), t);
655
+ });
656
+ he.displayName = "Card";
657
+ he.propTypes = Ge;
658
+ var ha = ["children", "className", "customRef", "disabled", "fullWidth", "href", "label", "leadingIcon", "actionButtonThemeColor", "trailingIcon", "type"], A = He, be = /* @__PURE__ */ $(function(e, l) {
659
+ var r = e.children, i = r === void 0 ? A.children : r, n = e.className, t = n === void 0 ? A.className : n, o = e.customRef, c = o === void 0 ? A.customRef : o, d = e.disabled, s = d === void 0 ? A.disabled : d, y = e.fullWidth, g = y === void 0 ? A.fullWidth : y, u = e.href, b = u === void 0 ? A.href : u, f = e.label, p = f === void 0 ? A.label : f, h = e.leadingIcon, B = h === void 0 ? A.leadingIcon : h, N = e.actionButtonThemeColor, x = N === void 0 ? A.actionButtonThemeColor : N, L = e.trailingIcon, E = L === void 0 ? A.trailingIcon : L, P = e.type, R = P === void 0 ? A.type : P, I = T(e, ha), C = q(function() {
660
+ return p || i;
661
+ }, [p, i]);
662
+ return /* @__PURE__ */ m.createElement(Ee, _({
663
+ ref: l,
664
+ customRef: c,
665
+ disabled: s,
666
+ fullWidth: g,
667
+ href: b,
668
+ label: p,
669
+ leadingIcon: B,
670
+ themeColor: x,
671
+ trailingIcon: E,
672
+ type: R,
673
+ variant: "text",
674
+ className: v("mdc-card__action mdc-card__action--button", t)
675
+ }, I), C);
676
+ });
677
+ be.displayName = "CardActionButton";
678
+ be.propTypes = qe;
679
+ var ba = ["active", "ariaLabel", "ariaLabelledBy", "children", "className", "disabled", "onClick", "toggleOff", "toggleOffAriaLabel", "toggleOffAriaLabelledBy", "toggleOn", "toggleOnAriaLabel", "toggleOnAriaLabelledBy", "variant"], k = Ke, Ce = /* @__PURE__ */ $(function(e, l) {
680
+ e.active;
681
+ var r = e.ariaLabel, i = r === void 0 ? k.ariaLabel : r;
682
+ e.ariaLabelledBy;
683
+ var n = e.children, t = n === void 0 ? k.children : n, o = e.className, c = o === void 0 ? k.className : o, d = e.disabled, s = d === void 0 ? k.disabled : d, y = e.onClick, g = y === void 0 ? k.onClick : y, u = e.toggleOff, b = u === void 0 ? k.toggleOff : u, f = e.toggleOffAriaLabel, p = f === void 0 ? k.toggleOffAriaLabel : f, h = e.toggleOffAriaLabelledBy, B = h === void 0 ? k.toggleOffAriaLabelledBy : h, N = e.toggleOn, x = N === void 0 ? k.toggleOn : N, L = e.toggleOnAriaLabel, E = L === void 0 ? k.toggleOnAriaLabel : L, P = e.toggleOnAriaLabelledBy, R = P === void 0 ? k.toggleOnAriaLabelledBy : P, I = e.variant, C = I === void 0 ? k.variant : I, F = T(e, ba), Le = q(function() {
684
+ return typeof t == "string" ? /* @__PURE__ */ m.createElement(De, {
685
+ icon: t
686
+ }) : t;
687
+ }, [t]);
688
+ return /* @__PURE__ */ m.createElement(Re, _({
689
+ ref: l,
690
+ variant: C,
691
+ disabled: s,
692
+ onClick: g,
693
+ ariaLabel: i,
694
+ toggleOffAriaLabel: p,
695
+ toggleOffAriaLabelledBy: B,
696
+ toggleOnAriaLabel: E,
697
+ toggleOnAriaLabelledBy: R,
698
+ toggleOn: x,
699
+ toggleOff: b,
700
+ className: v("mdc-card__action mdc-card__action--icon", c)
701
+ }, F), Le);
702
+ });
703
+ Ce.displayName = "CardActionIcon";
704
+ Ce.propTypes = Fe;
705
+ var Ca = ["alignment", "actionIcons", "actionButtons", "className"], W = Qe, Te = /* @__PURE__ */ $(function(e, l) {
706
+ var r = e.alignment, i = r === void 0 ? W.alignment : r, n = e.actionIcons, t = n === void 0 ? W.actionIcons : n, o = e.actionButtons, c = o === void 0 ? W.actionButtons : o, d = e.className, s = d === void 0 ? W.className : d, y = T(e, Ca);
707
+ return /* @__PURE__ */ m.createElement("div", _({
708
+ ref: l,
709
+ className: v("lmnt", "mdc-card__actions", i === "leading" && "lmnt-card__actions--leading", i === "center" && "lmnt-card__actions--center", i === "trailing" && "lmnt-card__actions--trailing", s)
710
+ }, y), c && /* @__PURE__ */ m.createElement("div", {
711
+ className: "mdc-card__action-buttons"
712
+ }, c), t && i === "leading" && /* @__PURE__ */ m.createElement("div", {
713
+ className: "mdc-card__action-icons"
714
+ }, t));
715
+ });
716
+ Te.displayName = "CardActions";
717
+ Te.propTypes = Je;
718
+ var Ta = ["children", "typographyType", "themeColor", "className"], G = Ye, _e = /* @__PURE__ */ $(function(e, l) {
719
+ var r = e.children, i = r === void 0 ? G.children : r, n = e.typographyType, t = n === void 0 ? G.typographyType : n, o = e.themeColor, c = o === void 0 ? G.themeColor : o, d = e.className, s = d === void 0 ? G.className : d, y = T(e, Ta);
720
+ return /* @__PURE__ */ m.createElement("div", _({
721
+ ref: l,
722
+ className: v("lmnt-card-body", t === "body1" && " mdc-typography--body1", t === "body2" && " mdc-typography--body2", t === "button" && " mdc-typography--button", t === "caption" && " mdc-typography--caption", t === "headline1" && " mdc-typography--headline1", t === "headline2" && " mdc-typography--headline2", t === "headline3" && " mdc-typography--headline3", t === "headline4" && " mdc-typography--headline4", t === "headline5" && " mdc-typography--headline5", t === "headline6" && " mdc-typography--headline6", t === "display1" && " mdc-typography--headline1", t === "display2" && " mdc-typography--headline2", t === "display3" && " mdc-typography--headline3", t === "display4" && " mdc-typography--headline4", t === "display5" && " mdc-typography--headline5", t === "display6" && " mdc-typography--headline6", t === "overline" && " mdc-typography--overline", t === "subtitle1" && " mdc-typography--subtitle1", t === "subtitle2" && " mdc-typography--subtitle2", "lmnt-theme-".concat(c, "-bg"), s)
723
+ }, y), i);
724
+ });
725
+ _e.displayName = "CardBody";
726
+ _e.propTypes = Xe;
727
+ var _a = ["children", "className"], ce = ea, $e = /* @__PURE__ */ $(function(e, l) {
728
+ var r = e.children, i = r === void 0 ? ce.children : r, n = e.className, t = n === void 0 ? ce.className : n, o = T(e, _a);
729
+ return /* @__PURE__ */ m.createElement("div", _({
730
+ ref: l,
731
+ className: v(["lmnt", "mdc-card__content"], t)
732
+ }, o), i);
733
+ });
734
+ $e.displayName = "CardContent";
735
+ $e.propTypes = Ze;
736
+ var $a = ["className", "dividerVariant", "dividerThemeColor"], K = ra, Ne = /* @__PURE__ */ $(function(e, l) {
737
+ var r = e.className, i = r === void 0 ? K.className : r, n = e.dividerVariant, t = n === void 0 ? K.dividerVariant : n, o = e.dividerThemeColor, c = o === void 0 ? K.dividerThemeColor : o, d = T(e, $a);
738
+ return /* @__PURE__ */ m.createElement(Se, _({
739
+ ref: l,
740
+ variant: t,
741
+ themeColor: c,
742
+ className: v("mdc-card__divider", "lmnt-card-divider", i)
743
+ }, d));
744
+ });
745
+ Ne.displayName = "CardDivider";
746
+ Ne.propTypes = aa;
747
+ var Na = ["children", "className", "filterType"], J = na, ke = /* @__PURE__ */ $(function(e, l) {
748
+ var r = e.children, i = r === void 0 ? J.children : r, n = e.className, t = n === void 0 ? J.className : n, o = e.filterType, c = o === void 0 ? J.filterType : o, d = T(e, Na);
749
+ return /* @__PURE__ */ m.createElement("div", _({
750
+ ref: l,
751
+ className: v("lmnt", "lmnt-card__filters", c === "chips" && "lmnt-card__filters--chips", c === "select" && "lmnt-card__filters--select", c === "select-2" && "lmnt-card__filters--select lmnt-card__filters--select-2", t)
752
+ }, d), i);
753
+ });
754
+ ke.displayName = "CardFilter";
755
+ ke.propTypes = ta;
756
+ var ka = /* @__PURE__ */ we({
757
+ groupRect: {}
758
+ }), Oa = ["children", "className", "rtl"], Q = ia, Oe = /* @__PURE__ */ $(function(e, l) {
759
+ var r = e.children, i = r === void 0 ? Q.children : r, n = e.className, t = n === void 0 ? Q.className : n, o = e.rtl, c = o === void 0 ? Q.rtl : o, d = T(e, Oa), s = We(), y = pe(s, 2), g = y[0], u = y[1], b = H(g);
760
+ return z(l, function() {
761
+ return b.current;
762
+ }, []), z(g, function() {
763
+ return b.current;
764
+ }, []), // eslint-disable-next-line react/jsx-no-constructed-context-values
765
+ /* @__PURE__ */ m.createElement(ka.Provider, {
766
+ value: {
767
+ groupRect: u
768
+ }
769
+ }, /* @__PURE__ */ m.createElement(Me, _({
770
+ className: v("lmnt-card__horizontal-group", "lmnt-card--horizontal", t),
771
+ ref: b,
772
+ gap: "none",
773
+ direction: c ? "horizontal-reverse" : "horizontal",
774
+ secondaryAlign: "start"
775
+ }, d), i));
776
+ });
777
+ Oe.propTypes = la;
778
+ Oe.displayName = "CardHorizontalGroup";
779
+ var Ba = ["children", "className", "position", "overlayThemeColor"], V = ya, ne = /* @__PURE__ */ $(function(e, l) {
780
+ var r = e.children, i = r === void 0 ? V.children : r, n = e.className, t = n === void 0 ? V.className : n, o = e.position, c = o === void 0 ? V.position : o, d = e.overlayThemeColor, s = d === void 0 ? V.overlayThemeColor : d, y = T(e, Ba), g = H();
781
+ z(l, function() {
782
+ return g.current;
783
+ }, []);
784
+ var u = q(function() {
785
+ return c !== "none" && v("lmnt", "lmnt-card-overlay ", !ie(s).call(s, "gradient") && s !== "surface" && "lmnt-card-overlay__".concat(s), ie(s).call(s, "gradient") && s !== "surface" && "lmnt-theme--bg-".concat(s), s === "surface" && "lmnt-theme-surface-bg", "lmnt-card-overlay__".concat(c), t);
786
+ }, [s, c, t]);
787
+ return /* @__PURE__ */ m.createElement("div", _({
788
+ className: u
789
+ }, y), i && i);
790
+ });
791
+ ne.displayName = "CardOverlay";
792
+ ne.propTypes = ma;
793
+ var Pa = ["children", "className", "contentPlacement", "imageUrl", "overlay", "overlayThemeColor", "ratio", "style"];
794
+ function se(e, l) {
795
+ var r = Z(e);
796
+ if (U) {
797
+ var i = U(e);
798
+ l && (i = te(i).call(i, function(n) {
799
+ return j(e, n).enumerable;
800
+ })), r.push.apply(r, i);
801
+ }
802
+ return r;
803
+ }
804
+ function Aa(e) {
805
+ for (var l = 1; l < arguments.length; l++) {
806
+ var r, i, n = arguments[l] != null ? arguments[l] : {};
807
+ l % 2 ? S(r = se(Object(n), !0)).call(r, function(t) {
808
+ ee(e, t, n[t]);
809
+ }) : M ? ae(e, M(n)) : S(i = se(Object(n))).call(i, function(t) {
810
+ re(e, t, j(n, t));
811
+ });
812
+ }
813
+ return e;
814
+ }
815
+ var D = sa, Be = /* @__PURE__ */ $(function(e, l) {
816
+ var r = e.children, i = r === void 0 ? D.children : r, n = e.className, t = n === void 0 ? D.className : n, o = e.contentPlacement, c = o === void 0 ? D.contentPlacement : o, d = e.imageUrl, s = d === void 0 ? D.imageUrl : d, y = e.overlay, g = y === void 0 ? D.overlay : y, u = e.overlayThemeColor, b = u === void 0 ? D.overlayThemeColor : u, f = e.ratio, p = f === void 0 ? D.ratio : f, h = e.style, B = h === void 0 ? D.style : h, N = T(e, Pa);
817
+ return /* @__PURE__ */ m.createElement("div", _({
818
+ ref: l,
819
+ className: v("lmnt", "mdc-card__media", (p === "square" || !p) && "mdc-card__media--square", p === "sixteen-nine" && "mdc-card__media--16-9", p === "four-three" && "lmnt-card__media--4-3", p === "four-five" && "lmnt-card__media--4-5", p === "two-one" && "lmnt-card__media--2-1", t),
820
+ style: Aa({
821
+ backgroundImage: "url(".concat(s, ")")
822
+ }, B)
823
+ }, N), g && /* @__PURE__ */ m.createElement(ne, {
824
+ overlayThemeColor: b
825
+ }), i && /* @__PURE__ */ m.createElement("div", {
826
+ className: v("mdc-card__media-content", g && "lmnt-card__media-content--with-overlay", c === "bottom" && "lmnt-card__content--bottom", c === "top" && "lmnt-card__content--top")
827
+ }, /* @__PURE__ */ m.createElement("div", {
828
+ className: "lmnt-card__media-inner-content"
829
+ }, i)));
830
+ });
831
+ Be.displayName = "CardMedia";
832
+ Be.propTypes = ca;
833
+ var xa = ["children", "className", "tag"], me = ga, Pe = /* @__PURE__ */ $(function(e, l) {
834
+ var r = e.children, i = r === void 0 ? me.children : r, n = e.className, t = n === void 0 ? me.className : n, o = e.tag, c = o === void 0 ? "div" : o, d = T(e, xa);
835
+ return /* @__PURE__ */ m.createElement(c, _({
836
+ ref: l,
837
+ tabIndex: "0",
838
+ className: v(["lmnt", "mdc-card__primary-action"], t)
839
+ }, d), i);
840
+ });
841
+ Pe.displayName = "CardPrimaryAction";
842
+ Pe.propTypes = pa;
843
+ var La = ["className", "leadingBlock", "leadingBlockType", "overlineText", "placement", "primaryText", "secondaryText", "stackedSecondaryText", "stacked", "themeColor", "trailingBlock", "trailingBlockType"], O = va, Ae = /* @__PURE__ */ $(function(e, l) {
844
+ var r = e.className, i = r === void 0 ? O.className : r, n = e.leadingBlock, t = n === void 0 ? O.leadingBlock : n, o = e.leadingBlockType, c = o === void 0 ? O.leadingBlockType : o, d = e.overlineText, s = d === void 0 ? O.overlineText : d, y = e.placement, g = y === void 0 ? O.placement : y, u = e.primaryText, b = u === void 0 ? O.primaryText : u, f = e.secondaryText, p = f === void 0 ? O.secondaryText : f, h = e.stackedSecondaryText, B = h === void 0 ? O.stackedSecondaryText : h, N = e.stacked, x = N === void 0 ? O.stacked : N, L = e.themeColor, E = L === void 0 ? O.themeColor : L, P = e.trailingBlock, R = P === void 0 ? O.trailingBlock : P, I = e.trailingBlockType, C = I === void 0 ? O.trailingBlockType : I, F = T(e, La);
845
+ return /* @__PURE__ */ m.createElement("div", _({
846
+ ref: l,
847
+ className: v("lmnt", "lmnt-card-title", x && "lmnt-card-title--stacked", g === "top" && "lmnt-card-title--top-placement", g === "bottom" && "lmnt-card-title--bottom-placement", E === "primary" && "lmnt-theme-primary-bg", E === "secondary" && "lmnt-theme-secondary-bg", i)
848
+ }, F), c ? /* @__PURE__ */ m.createElement("div", {
849
+ className: v("lmnt-card-title__leadingBlock", c === "avatar" && "lmnt-card-title__leadingBlock--avatar", c === "icon" && "lmnt-card-title__leadingBlock--icon", c === "icon-with-background" && "lmnt-card-title__leadingBlock--icon-with-background", c === "thumbnail" && "lmnt-card-title__leadingBlock--thumbnail")
850
+ }, t) : null, /* @__PURE__ */ m.createElement("div", {
851
+ className: "lmnt-card-title__text"
852
+ }, s && /* @__PURE__ */ m.createElement("div", {
853
+ className: "lmnt-card-title__overlineText"
854
+ }, s), b, (p || B) && /* @__PURE__ */ m.createElement("div", {
855
+ className: v("lmnt-card-title-secondaryText-container", !x && "lmnt-card-title__items")
856
+ }, p && /* @__PURE__ */ m.createElement("div", {
857
+ className: "lmnt-card-title__secondaryText"
858
+ }, p), B && /* @__PURE__ */ m.createElement("div", {
859
+ className: "lmnt-card-title__secondaryText"
860
+ }, B))), C ? /* @__PURE__ */ m.createElement("div", {
861
+ className: v("lmnt-card-title__trailingBlock", C === "title-actions" && "lmnt-card-title__trailingBlock--title-actions", C === "avatar" && "lmnt-card-title__trailingBlock--avatar", C === "icon" && "lmnt-card-title__trailingBlock--icon", C === "icon-with-background" && "lmnt-card-title__trailingBlock--icon-with-background", C === "thumbnail" && "lmnt-card-title__trailingBlock--thumbnail", C === "badge" && "lmnt-card-title__trailingBlock--badge")
862
+ }, R) : null);
863
+ });
864
+ Ae.displayName = "CardTitle";
865
+ Ae.propTypes = ua;
866
+ var Ia = ["style", "mediaUrl", "width"];
867
+ function ye(e, l) {
868
+ var r = Z(e);
869
+ if (U) {
870
+ var i = U(e);
871
+ l && (i = te(i).call(i, function(n) {
872
+ return j(e, n).enumerable;
873
+ })), r.push.apply(r, i);
874
+ }
875
+ return r;
876
+ }
877
+ function wa(e) {
878
+ for (var l = 1; l < arguments.length; l++) {
879
+ var r, i, n = arguments[l] != null ? arguments[l] : {};
880
+ l % 2 ? S(r = ye(Object(n), !0)).call(r, function(t) {
881
+ ee(e, t, n[t]);
882
+ }) : M ? ae(e, M(n)) : S(i = ye(Object(n))).call(i, function(t) {
883
+ re(e, t, j(n, t));
884
+ });
885
+ }
886
+ return e;
887
+ }
888
+ var X = da, xe = /* @__PURE__ */ $(function(e, l) {
889
+ var r = e.style, i = r === void 0 ? X.style : r, n = e.mediaUrl, t = n === void 0 ? X.mediaUrl : n, o = e.width, c = o === void 0 ? X.width : o, d = T(e, Ia), s = H();
890
+ return z(l, function() {
891
+ return s.current;
892
+ }, []), /* @__PURE__ */ m.createElement("img", _({
893
+ src: t,
894
+ alt: "leadingCardMedia",
895
+ width: c,
896
+ style: wa({
897
+ flexShrink: 0
898
+ }, i)
899
+ }, d));
900
+ });
901
+ xe.propTypes = oa;
902
+ xe.displayName = "CardLeadingMedia";
903
+ export {
904
+ he as C,
905
+ $e as a,
906
+ _e as b,
907
+ Ae as c,
908
+ Ne as d,
909
+ Ha as e,
910
+ ve as i,
911
+ qa as o
912
+ };