@hortiview/default-components 1.4.2 → 1.4.4
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.
- package/dist/{Iconify-CUZc8WnW.js → Iconify-aUog1Oez.js} +5 -5
- package/dist/{InfoCard-CFmkh7DJ.js → InfoCard-BxjAQiFE.js} +6 -6
- package/dist/{LoadingSpinner-DVBQ1tGJ.js → LoadingSpinner-DBMjIfY1.js} +9 -9
- package/dist/{OfflineView-DHtzNLwt-BmxTfGZq.js → OfflineView-NUM9WE0F-BI9rnget.js} +4 -4
- package/dist/assets/DefaultFormNumber.css +1 -1
- package/dist/assets/DefaultFormSelect.css +1 -1
- package/dist/assets/GenericTable.css +1 -1
- package/dist/{component-DsB0poTj-CeLHB9Ok.js → component-DsB0poTj-DgsYK0_R.js} +1 -1
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +294 -293
- package/dist/components/DefaultFormSelect/DefaultFormSelect.js +53 -53
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
- package/dist/components/GenericTable/GenericTable.js +9553 -8760
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
- package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
- package/dist/components/OfflineView/OfflineView.js +2 -2
- package/dist/{index.es-IXyb5F6n-B5afcHX8.js → correct-is-regexp-logic-BBlm4UpN-CvII841s.js} +147 -106
- package/dist/{index.es-0QJC9VS2-CNPew9LK.js → index.es-B0QNuIUR-Bte5aF5M.js} +16 -16
- package/dist/{index.es-Bo1Rhtyb-B650l9Yk.js → index.es-CIsLNz4j-ZEEcPmTs.js} +1 -1
- package/dist/{index.es-DENZVv7_-PUEN9sIa.js → index.es-CvHDFF6V-CjZvA03R.js} +25 -25
- package/dist/{index.es-Cq04gn3U-Bvzrqtm6.js → index.es-DiONypF4-eT98Y3u_.js} +19 -19
- package/dist/{index.es-Bg8hxXM8-BlFd894m.js → index.es-DnEIFMjv-DuuORGfo.js} +234 -273
- package/dist/{index.es-BGordhUK-C36NK84Q.js → index.es-NEYPxnlS-C8xQv2De.js} +42 -42
- package/dist/{index.es-CK4oZMKs-Da8pin7D.js → index.es-fV9oWpEf-BXuhoGtE.js} +4790 -4493
- package/dist/{isTypedArray-Dw_IY7Zq-BZ-4N8-Z.js → isTypedArray-Dw_IY7Zq-wj3MphCb.js} +61 -61
- package/dist/{slicedToArray-BWk2gTCn-Cfzj7tjm.js → slicedToArray-h0Nnkd_P-C4SkVJMK.js} +137 -137
- package/dist/{useHelperText-3ahu6tTS.js → useHelperText-B7OMZXvE.js} +44 -44
- package/dist/{useTranslation-CVaIJbcK.js → useTranslation-B_lNCuLm.js} +2344 -2278
- package/package.json +5 -4
- /package/dist/assets/{OfflineView-DHtzNLwt.css → OfflineView-NUM9WE0F.css} +0 -0
|
@@ -1,114 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as
|
|
3
|
-
import m, { forwardRef as T, useRef as
|
|
4
|
-
import { d as
|
|
5
|
-
import { p as
|
|
6
|
-
import { O as
|
|
7
|
-
var
|
|
8
|
-
function Na() {
|
|
9
|
-
if (fe) return ve;
|
|
10
|
-
fe = 1;
|
|
11
|
-
var e = /* @__PURE__ */ Ue(), l = la().includes, t = /* @__PURE__ */ oa(), i = /* @__PURE__ */ da(), n = t(function() {
|
|
12
|
-
return !Array(1).includes();
|
|
13
|
-
});
|
|
14
|
-
return e({ target: "Array", proto: !0, forced: n }, {
|
|
15
|
-
includes: function(r) {
|
|
16
|
-
return l(this, r, arguments.length > 1 ? arguments[1] : void 0);
|
|
17
|
-
}
|
|
18
|
-
}), i("includes"), ve;
|
|
19
|
-
}
|
|
20
|
-
var K, he;
|
|
21
|
-
function _a() {
|
|
22
|
-
if (he) return K;
|
|
23
|
-
he = 1, Na();
|
|
24
|
-
var e = /* @__PURE__ */ Pe();
|
|
25
|
-
return K = e("Array", "includes"), K;
|
|
26
|
-
}
|
|
27
|
-
var be = {}, Q, Ne;
|
|
28
|
-
function Ca() {
|
|
29
|
-
if (Ne) return Q;
|
|
30
|
-
Ne = 1;
|
|
31
|
-
var e = /* @__PURE__ */ ya(), l = /* @__PURE__ */ ga(), t = /* @__PURE__ */ He(), i = t("match");
|
|
32
|
-
return Q = function(n) {
|
|
33
|
-
var r;
|
|
34
|
-
return e(n) && ((r = n[i]) !== void 0 ? !!r : l(n) === "RegExp");
|
|
35
|
-
}, Q;
|
|
36
|
-
}
|
|
37
|
-
var Y, _e;
|
|
38
|
-
function ka() {
|
|
39
|
-
if (_e) return Y;
|
|
40
|
-
_e = 1;
|
|
41
|
-
var e = /* @__PURE__ */ Ca(), l = TypeError;
|
|
42
|
-
return Y = function(t) {
|
|
43
|
-
if (e(t))
|
|
44
|
-
throw new l("The method doesn't accept regular expressions");
|
|
45
|
-
return t;
|
|
46
|
-
}, Y;
|
|
47
|
-
}
|
|
48
|
-
var Z, Ce;
|
|
49
|
-
function Ta() {
|
|
50
|
-
if (Ce) return Z;
|
|
51
|
-
Ce = 1;
|
|
52
|
-
var e = /* @__PURE__ */ He(), l = e("match");
|
|
53
|
-
return Z = function(t) {
|
|
54
|
-
var i = /./;
|
|
55
|
-
try {
|
|
56
|
-
"/./"[t](i);
|
|
57
|
-
} catch {
|
|
58
|
-
try {
|
|
59
|
-
return i[l] = !1, "/./"[t](i);
|
|
60
|
-
} catch {
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return !1;
|
|
64
|
-
}, Z;
|
|
65
|
-
}
|
|
66
|
-
var ke;
|
|
67
|
-
function Oa() {
|
|
68
|
-
if (ke) return be;
|
|
69
|
-
ke = 1;
|
|
70
|
-
var e = /* @__PURE__ */ Ue(), l = /* @__PURE__ */ ca(), t = /* @__PURE__ */ ka(), i = /* @__PURE__ */ ma(), n = /* @__PURE__ */ sa(), r = /* @__PURE__ */ Ta(), o = l("".indexOf);
|
|
71
|
-
return e({ target: "String", proto: !0, forced: !r("includes") }, {
|
|
72
|
-
includes: function(c) {
|
|
73
|
-
return !!~o(
|
|
74
|
-
n(i(this)),
|
|
75
|
-
n(t(c)),
|
|
76
|
-
arguments.length > 1 ? arguments[1] : void 0
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
}), be;
|
|
80
|
-
}
|
|
81
|
-
var ee, Te;
|
|
82
|
-
function Ba() {
|
|
83
|
-
if (Te) return ee;
|
|
84
|
-
Te = 1, Oa();
|
|
85
|
-
var e = /* @__PURE__ */ Pe();
|
|
86
|
-
return ee = e("String", "includes"), ee;
|
|
87
|
-
}
|
|
88
|
-
var ae, Oe;
|
|
89
|
-
function xa() {
|
|
90
|
-
if (Oe) return ae;
|
|
91
|
-
Oe = 1;
|
|
92
|
-
var e = /* @__PURE__ */ ia(), l = /* @__PURE__ */ _a(), t = /* @__PURE__ */ Ba(), i = Array.prototype, n = String.prototype;
|
|
93
|
-
return ae = function(r) {
|
|
94
|
-
var o = r.includes;
|
|
95
|
-
return r === i || e(i, r) && o === i.includes ? l : typeof r == "string" || r === n || e(n, r) && o === n.includes ? t : o;
|
|
96
|
-
}, ae;
|
|
97
|
-
}
|
|
98
|
-
var re, Be;
|
|
99
|
-
function Aa() {
|
|
100
|
-
if (Be) return re;
|
|
101
|
-
Be = 1;
|
|
102
|
-
var e = /* @__PURE__ */ xa();
|
|
103
|
-
return re = e, re;
|
|
104
|
-
}
|
|
105
|
-
var xe, Ae;
|
|
106
|
-
function Ia() {
|
|
107
|
-
return Ae || (Ae = 1, xe = /* @__PURE__ */ Aa()), xe;
|
|
108
|
-
}
|
|
109
|
-
var La = Ia();
|
|
110
|
-
const Ie = /* @__PURE__ */ ta(La);
|
|
111
|
-
var Ea = {
|
|
1
|
+
import { r as _, e as h, h as k, t as a, q as W, Z as M, c as ie, p as q, f as le, v as oe, s as $, X as de, a as j, b as ce, ae as Le, w as ye, n as Ye, z as Je, I as Qe, K as we, af as ea, ac as aa, E as Ee, ag as ra, ah as na, ai as ta, aj as ia } from "./useTranslation-B_lNCuLm.js";
|
|
2
|
+
import { S as Se } from "./slicedToArray-h0Nnkd_P-C4SkVJMK.js";
|
|
3
|
+
import m, { forwardRef as T, useRef as D, useImperativeHandle as z, useState as te, useEffect as Re, useMemo as G, createContext as la, useLayoutEffect as oa } from "react";
|
|
4
|
+
import { d as da } from "./index.es-B0QNuIUR-Bte5aF5M.js";
|
|
5
|
+
import { p as ca, q as sa, h as ma } from "./correct-is-regexp-logic-BBlm4UpN-CvII841s.js";
|
|
6
|
+
import { O as ya } from "./index.es-NEYPxnlS-C8xQv2De.js";
|
|
7
|
+
var ga = {
|
|
112
8
|
/**
|
|
113
9
|
* The css class name to be passed through to the component markup.
|
|
114
10
|
*
|
|
@@ -171,7 +67,7 @@ var Ea = {
|
|
|
171
67
|
* Defaults to **'none'**.
|
|
172
68
|
*/
|
|
173
69
|
verticalMargin: a.oneOf(["none", "dense", "standard", "airy"])
|
|
174
|
-
},
|
|
70
|
+
}, pa = {
|
|
175
71
|
className: void 0,
|
|
176
72
|
dividerColor: void 0,
|
|
177
73
|
dividerColorImportant: void 0,
|
|
@@ -181,21 +77,21 @@ var Ea = {
|
|
|
181
77
|
themeColorImportant: void 0,
|
|
182
78
|
variant: "dense",
|
|
183
79
|
verticalMargin: "none"
|
|
184
|
-
},
|
|
185
|
-
var t = e.dividerColor, i = t === void 0 ?
|
|
80
|
+
}, ua = ["dividerColor", "dividerColorImportant", "dividerHeight", "dividerStyle", "themeColor", "themeColorImportant", "variant", "className", "verticalMargin"], U = pa, se = /* @__PURE__ */ T(function(e, l) {
|
|
81
|
+
var t = e.dividerColor, i = t === void 0 ? U.dividerColor : t, n = e.dividerColorImportant, r = n === void 0 ? U.dividerColorImportant : n, o = e.dividerHeight, c = o === void 0 ? U.dividerHeight : o, d = e.dividerStyle, s = d === void 0 ? U.dividerStyle : d, y = e.themeColor, u = y === void 0 ? U.themeColor : y, p = e.themeColorImportant, b = p === void 0 ? U.themeColorImportant : p, v = e.variant, g = v === void 0 ? U.variant : v, f = e.className, x = f === void 0 ? U.className : f, N = e.verticalMargin, O = N === void 0 ? U.verticalMargin : N, A = _(e, ua), S = r || b, B = c || g, R = i || u, I = D();
|
|
186
82
|
z(l, function() {
|
|
187
83
|
return I.current;
|
|
188
84
|
}, []);
|
|
189
|
-
var
|
|
85
|
+
var C = h("lmnt", "lmnt-divider", S && "lmnt-divider--color-important", B && "lmnt-divider--".concat(B), s && "lmnt-divider--".concat(s), R && "lmnt-divider--".concat(R), O && O !== "none" && "lmnt-divider--margin-".concat(O), x);
|
|
190
86
|
return /* @__PURE__ */ m.createElement("hr", k({
|
|
191
87
|
ref: I,
|
|
192
|
-
className:
|
|
88
|
+
className: C
|
|
193
89
|
}, A));
|
|
194
90
|
});
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
var
|
|
198
|
-
},
|
|
91
|
+
se.displayName = "Divider";
|
|
92
|
+
se.propTypes = ga;
|
|
93
|
+
var va = function() {
|
|
94
|
+
}, Ue = typeof window < "u", fa = Ue ? oa : Re, Pe = {
|
|
199
95
|
x: 0,
|
|
200
96
|
y: 0,
|
|
201
97
|
width: 0,
|
|
@@ -205,8 +101,8 @@ var Ra = function() {
|
|
|
205
101
|
bottom: 0,
|
|
206
102
|
right: 0
|
|
207
103
|
};
|
|
208
|
-
function
|
|
209
|
-
var e =
|
|
104
|
+
function ha() {
|
|
105
|
+
var e = te(null), l = e[0], t = e[1], i = te(Pe), n = i[0], r = i[1], o = G(function() {
|
|
210
106
|
return new window.ResizeObserver(function(c) {
|
|
211
107
|
if (c[0]) {
|
|
212
108
|
var d = c[0].contentRect, s = d.x, y = d.y, u = d.width, p = d.height, b = d.top, v = d.left, g = d.bottom, f = d.right;
|
|
@@ -214,17 +110,82 @@ function Pa() {
|
|
|
214
110
|
}
|
|
215
111
|
});
|
|
216
112
|
}, []);
|
|
217
|
-
return
|
|
113
|
+
return fa(function() {
|
|
218
114
|
if (l)
|
|
219
115
|
return o.observe(l), function() {
|
|
220
116
|
o.disconnect();
|
|
221
117
|
};
|
|
222
118
|
}, [l]), [t, n];
|
|
223
119
|
}
|
|
224
|
-
const
|
|
225
|
-
return [
|
|
120
|
+
const ba = Ue && typeof window.ResizeObserver < "u" ? ha : function() {
|
|
121
|
+
return [va, Pe];
|
|
226
122
|
};
|
|
227
|
-
var
|
|
123
|
+
var ge = {}, pe;
|
|
124
|
+
function Na() {
|
|
125
|
+
if (pe) return ge;
|
|
126
|
+
pe = 1;
|
|
127
|
+
var e = /* @__PURE__ */ Ee(), l = ea().includes, t = /* @__PURE__ */ aa(), i = /* @__PURE__ */ ra(), n = t(function() {
|
|
128
|
+
return !Array(1).includes();
|
|
129
|
+
});
|
|
130
|
+
return e({ target: "Array", proto: !0, forced: n }, {
|
|
131
|
+
includes: function(r) {
|
|
132
|
+
return l(this, r, arguments.length > 1 ? arguments[1] : void 0);
|
|
133
|
+
}
|
|
134
|
+
}), i("includes"), ge;
|
|
135
|
+
}
|
|
136
|
+
var K, ue;
|
|
137
|
+
function Ca() {
|
|
138
|
+
if (ue) return K;
|
|
139
|
+
ue = 1, Na();
|
|
140
|
+
var e = /* @__PURE__ */ we();
|
|
141
|
+
return K = e("Array", "includes"), K;
|
|
142
|
+
}
|
|
143
|
+
var ve = {}, fe;
|
|
144
|
+
function _a() {
|
|
145
|
+
if (fe) return ve;
|
|
146
|
+
fe = 1;
|
|
147
|
+
var e = /* @__PURE__ */ Ee(), l = /* @__PURE__ */ na(), t = /* @__PURE__ */ ma(), i = /* @__PURE__ */ ia(), n = /* @__PURE__ */ ta(), r = /* @__PURE__ */ sa(), o = l("".indexOf);
|
|
148
|
+
return e({ target: "String", proto: !0, forced: !r("includes") }, {
|
|
149
|
+
includes: function(c) {
|
|
150
|
+
return !!~o(
|
|
151
|
+
n(i(this)),
|
|
152
|
+
n(t(c)),
|
|
153
|
+
arguments.length > 1 ? arguments[1] : void 0
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
}), ve;
|
|
157
|
+
}
|
|
158
|
+
var Y, he;
|
|
159
|
+
function ka() {
|
|
160
|
+
if (he) return Y;
|
|
161
|
+
he = 1, _a();
|
|
162
|
+
var e = /* @__PURE__ */ we();
|
|
163
|
+
return Y = e("String", "includes"), Y;
|
|
164
|
+
}
|
|
165
|
+
var J, be;
|
|
166
|
+
function Ta() {
|
|
167
|
+
if (be) return J;
|
|
168
|
+
be = 1;
|
|
169
|
+
var e = /* @__PURE__ */ Qe(), l = /* @__PURE__ */ Ca(), t = /* @__PURE__ */ ka(), i = Array.prototype, n = String.prototype;
|
|
170
|
+
return J = function(r) {
|
|
171
|
+
var o = r.includes;
|
|
172
|
+
return r === i || e(i, r) && o === i.includes ? l : typeof r == "string" || r === n || e(n, r) && o === n.includes ? t : o;
|
|
173
|
+
}, J;
|
|
174
|
+
}
|
|
175
|
+
var Q, Ne;
|
|
176
|
+
function Oa() {
|
|
177
|
+
if (Ne) return Q;
|
|
178
|
+
Ne = 1;
|
|
179
|
+
var e = /* @__PURE__ */ Ta();
|
|
180
|
+
return Q = e, Q;
|
|
181
|
+
}
|
|
182
|
+
var Ce, _e;
|
|
183
|
+
function Ba() {
|
|
184
|
+
return _e || (_e = 1, Ce = /* @__PURE__ */ Oa()), Ce;
|
|
185
|
+
}
|
|
186
|
+
var xa = Ba();
|
|
187
|
+
const ke = /* @__PURE__ */ Je(xa);
|
|
188
|
+
var Aa = {
|
|
228
189
|
/**
|
|
229
190
|
* Alignment of the Card Body.
|
|
230
191
|
*
|
|
@@ -267,7 +228,7 @@ var Ha = {
|
|
|
267
228
|
* Defaults to **'default'**.
|
|
268
229
|
*/
|
|
269
230
|
variant: a.oneOf(["default", "flat", "outlined", "raised"])
|
|
270
|
-
},
|
|
231
|
+
}, Ia = {
|
|
271
232
|
bodyAlignment: "left-top",
|
|
272
233
|
children: null,
|
|
273
234
|
height: "auto",
|
|
@@ -275,7 +236,7 @@ var Ha = {
|
|
|
275
236
|
style: null,
|
|
276
237
|
themeColor: "surface",
|
|
277
238
|
variant: "default"
|
|
278
|
-
},
|
|
239
|
+
}, La = {
|
|
279
240
|
/**
|
|
280
241
|
* Override the default (`primary`) color with the `secondary` color. Most commonly used when the control is placed on a darker surface.
|
|
281
242
|
*
|
|
@@ -354,7 +315,7 @@ var Ha = {
|
|
|
354
315
|
* Defaults to **'button'**.
|
|
355
316
|
*/
|
|
356
317
|
type: a.oneOf(["button", "submit", "reset"])
|
|
357
|
-
},
|
|
318
|
+
}, wa = {
|
|
358
319
|
actionButtonThemeColor: "primary",
|
|
359
320
|
children: null,
|
|
360
321
|
className: void 0,
|
|
@@ -366,7 +327,7 @@ var Ha = {
|
|
|
366
327
|
leadingIcon: null,
|
|
367
328
|
trailingIcon: null,
|
|
368
329
|
type: "button"
|
|
369
|
-
},
|
|
330
|
+
}, Ea = {
|
|
370
331
|
/**
|
|
371
332
|
* Programmatically sets the toggle state of the button when used as a toggle button. If not set, the toggle state will be managed internally.
|
|
372
333
|
*
|
|
@@ -450,8 +411,8 @@ var Ha = {
|
|
|
450
411
|
*
|
|
451
412
|
* Defaults to **empty string**.
|
|
452
413
|
*/
|
|
453
|
-
variant:
|
|
454
|
-
},
|
|
414
|
+
variant: Le(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'.")
|
|
415
|
+
}, Sa = {
|
|
455
416
|
ariaLabel: null,
|
|
456
417
|
children: null,
|
|
457
418
|
className: void 0,
|
|
@@ -464,7 +425,7 @@ var Ha = {
|
|
|
464
425
|
toggleOnAriaLabel: null,
|
|
465
426
|
toggleOnAriaLabelledBy: null,
|
|
466
427
|
variant: ""
|
|
467
|
-
},
|
|
428
|
+
}, Ra = {
|
|
468
429
|
/**
|
|
469
430
|
* Add buttons to card actions.
|
|
470
431
|
*
|
|
@@ -483,11 +444,11 @@ var Ha = {
|
|
|
483
444
|
* Defaults to **'leading'**.
|
|
484
445
|
*/
|
|
485
446
|
alignment: a.oneOf(["leading", "center", "trailing"])
|
|
486
|
-
},
|
|
447
|
+
}, Ua = {
|
|
487
448
|
actionButtons: null,
|
|
488
449
|
actionIcons: null,
|
|
489
450
|
alignment: "leading"
|
|
490
|
-
},
|
|
451
|
+
}, Pa = {
|
|
491
452
|
/**
|
|
492
453
|
* Content to be rendered inside the title block. Accepts any valid markup.
|
|
493
454
|
*
|
|
@@ -505,21 +466,21 @@ var Ha = {
|
|
|
505
466
|
*
|
|
506
467
|
* Defaults to **'body2'**.
|
|
507
468
|
*/
|
|
508
|
-
typographyType:
|
|
509
|
-
},
|
|
469
|
+
typographyType: Le(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'.")
|
|
470
|
+
}, Ha = {
|
|
510
471
|
children: null,
|
|
511
472
|
themeColor: "surface",
|
|
512
473
|
typographyType: "body2"
|
|
513
|
-
},
|
|
474
|
+
}, Ma = {
|
|
514
475
|
/**
|
|
515
476
|
* Content to be rendered inside the content block. Accepts any valid markup.
|
|
516
477
|
*
|
|
517
478
|
* Defaults to **null**.
|
|
518
479
|
*/
|
|
519
480
|
children: a.node
|
|
520
|
-
},
|
|
481
|
+
}, qa = {
|
|
521
482
|
children: null
|
|
522
|
-
},
|
|
483
|
+
}, ja = {
|
|
523
484
|
/**
|
|
524
485
|
* Theme color for the Card Divider. Leave empty for gray.
|
|
525
486
|
*
|
|
@@ -532,10 +493,10 @@ var Ha = {
|
|
|
532
493
|
* Defaults to **'dense'**.
|
|
533
494
|
*/
|
|
534
495
|
dividerVariant: a.oneOf(["dense", "tall"])
|
|
535
|
-
},
|
|
496
|
+
}, za = {
|
|
536
497
|
dividerThemeColor: "on-surface-stroke",
|
|
537
498
|
dividerVariant: "dense"
|
|
538
|
-
},
|
|
499
|
+
}, $a = {
|
|
539
500
|
/**
|
|
540
501
|
* Content to be rendered inside the title block. Mostly commonly a Select, Textfield component, however any valid components or markup may be used.
|
|
541
502
|
*
|
|
@@ -554,11 +515,11 @@ var Ha = {
|
|
|
554
515
|
* Defaults to **'tabs'**.
|
|
555
516
|
*/
|
|
556
517
|
filterType: a.oneOf(["tabs", "chips", "select", "select-2"])
|
|
557
|
-
},
|
|
518
|
+
}, Da = {
|
|
558
519
|
children: null,
|
|
559
520
|
className: void 0,
|
|
560
521
|
filterType: "tabs"
|
|
561
|
-
},
|
|
522
|
+
}, Wa = {
|
|
562
523
|
/**
|
|
563
524
|
* Most commonly text or a Typography component, but accepts any valid markup.
|
|
564
525
|
*
|
|
@@ -577,11 +538,11 @@ var Ha = {
|
|
|
577
538
|
* Defaults to **false**.
|
|
578
539
|
*/
|
|
579
540
|
rtl: a.bool
|
|
580
|
-
},
|
|
541
|
+
}, Va = {
|
|
581
542
|
children: null,
|
|
582
543
|
className: void 0,
|
|
583
544
|
rtl: !1
|
|
584
|
-
},
|
|
545
|
+
}, Xa = {
|
|
585
546
|
/**
|
|
586
547
|
* Url for Card media
|
|
587
548
|
*
|
|
@@ -600,10 +561,10 @@ var Ha = {
|
|
|
600
561
|
* Defaults to **'30%'**.
|
|
601
562
|
*/
|
|
602
563
|
width: a.oneOfType([a.number, a.string])
|
|
603
|
-
},
|
|
564
|
+
}, Fa = {
|
|
604
565
|
mediaUrl: null,
|
|
605
566
|
width: "30%"
|
|
606
|
-
},
|
|
567
|
+
}, Ga = {
|
|
607
568
|
/**
|
|
608
569
|
* Child components will be rendered on top of the provided image. Use `contentBottom` and `contentTop` to control content positioning. Accepts any valid markup.
|
|
609
570
|
*
|
|
@@ -640,14 +601,14 @@ var Ha = {
|
|
|
640
601
|
* Defaults to **'square'**.
|
|
641
602
|
*/
|
|
642
603
|
ratio: a.oneOf(["square", "sixteen-nine", "four-three", "four-five", "two-one"])
|
|
643
|
-
},
|
|
604
|
+
}, Za = {
|
|
644
605
|
children: null,
|
|
645
606
|
contentPlacement: "bottom",
|
|
646
607
|
imageUrl: null,
|
|
647
608
|
overlay: !1,
|
|
648
609
|
overlayThemeColor: "dark",
|
|
649
610
|
ratio: "square"
|
|
650
|
-
},
|
|
611
|
+
}, Ka = {
|
|
651
612
|
/**
|
|
652
613
|
* Content to be rendered inside the Card Overlay. Useful for angles or other non semantic elements displayed in the Card.
|
|
653
614
|
*
|
|
@@ -672,12 +633,12 @@ var Ha = {
|
|
|
672
633
|
* Defaults to **'full'**.
|
|
673
634
|
*/
|
|
674
635
|
position: a.oneOf(["full", "leading", "trailing"])
|
|
675
|
-
},
|
|
636
|
+
}, Ya = {
|
|
676
637
|
children: null,
|
|
677
638
|
className: void 0,
|
|
678
639
|
overlayThemeColor: "dark",
|
|
679
640
|
position: "full"
|
|
680
|
-
},
|
|
641
|
+
}, Ja = {
|
|
681
642
|
/**
|
|
682
643
|
* Content to be rendered as the primary action.
|
|
683
644
|
*
|
|
@@ -696,9 +657,9 @@ var Ha = {
|
|
|
696
657
|
* Defaults to **'div'**.
|
|
697
658
|
*/
|
|
698
659
|
tag: a.oneOfType([a.string, a.elementType, a.instanceOf(m.Component)])
|
|
699
|
-
},
|
|
660
|
+
}, Qa = {
|
|
700
661
|
children: null
|
|
701
|
-
},
|
|
662
|
+
}, er = {
|
|
702
663
|
/**
|
|
703
664
|
* The css class name to be passed through to the component markup.
|
|
704
665
|
*
|
|
@@ -710,7 +671,7 @@ var Ha = {
|
|
|
710
671
|
*
|
|
711
672
|
* Defaults to **null**.
|
|
712
673
|
*/
|
|
713
|
-
leadingBlock:
|
|
674
|
+
leadingBlock: ye(a.node, "CardTitle", "leadingBlockType"),
|
|
714
675
|
/**
|
|
715
676
|
* The type of media that will render in the leading block. See README for size constraints.
|
|
716
677
|
*
|
|
@@ -764,14 +725,14 @@ var Ha = {
|
|
|
764
725
|
*
|
|
765
726
|
* Defaults to **null**.
|
|
766
727
|
*/
|
|
767
|
-
trailingBlock:
|
|
728
|
+
trailingBlock: ye(a.node, "CardTitle", "trailingBlockType"),
|
|
768
729
|
/**
|
|
769
730
|
* The type of media that will render in the trailing block. See README for size constraints.
|
|
770
731
|
*
|
|
771
732
|
* Defaults to **empty string**.
|
|
772
733
|
*/
|
|
773
734
|
trailingBlockType: a.oneOf(["", "title-actions", "avatar", "badge", "icon", "icon-with-background", "thumbnail"])
|
|
774
|
-
},
|
|
735
|
+
}, ar = {
|
|
775
736
|
className: void 0,
|
|
776
737
|
leadingBlock: null,
|
|
777
738
|
leadingBlockType: "",
|
|
@@ -784,56 +745,56 @@ var Ha = {
|
|
|
784
745
|
themeColor: "surface",
|
|
785
746
|
trailingBlock: null,
|
|
786
747
|
trailingBlockType: ""
|
|
787
|
-
},
|
|
788
|
-
function
|
|
789
|
-
var t =
|
|
748
|
+
}, rr = ["bodyAlignment", "children", "className", "direction", "height", "loadingCard", "outlined", "style", "themeColor", "variant"];
|
|
749
|
+
function Te(e, l) {
|
|
750
|
+
var t = de(e);
|
|
790
751
|
if (j) {
|
|
791
752
|
var i = j(e);
|
|
792
|
-
l && (i =
|
|
793
|
-
return
|
|
753
|
+
l && (i = ce(i).call(i, function(n) {
|
|
754
|
+
return $(e, n).enumerable;
|
|
794
755
|
})), t.push.apply(t, i);
|
|
795
756
|
}
|
|
796
757
|
return t;
|
|
797
758
|
}
|
|
798
|
-
function
|
|
759
|
+
function Oe(e) {
|
|
799
760
|
for (var l = 1; l < arguments.length; l++) {
|
|
800
761
|
var t, i, n = arguments[l] != null ? arguments[l] : {};
|
|
801
|
-
l % 2 ?
|
|
802
|
-
|
|
803
|
-
}) :
|
|
804
|
-
|
|
762
|
+
l % 2 ? M(t = Te(Object(n), !0)).call(t, function(r) {
|
|
763
|
+
ie(e, r, n[r]);
|
|
764
|
+
}) : q ? le(e, q(n)) : M(i = Te(Object(n))).call(i, function(r) {
|
|
765
|
+
oe(e, r, $(n, r));
|
|
805
766
|
});
|
|
806
767
|
}
|
|
807
768
|
return e;
|
|
808
769
|
}
|
|
809
|
-
var P =
|
|
770
|
+
var P = Ia, He = /* @__PURE__ */ T(function(e, l) {
|
|
810
771
|
var t = e.bodyAlignment, i = t === void 0 ? P.bodyAlignment : t, n = e.children, r = n === void 0 ? P.children : n, o = e.className, c = o === void 0 ? P.className : o, d = e.direction, s = d === void 0 ? P.direction : d, y = e.height, u = y === void 0 ? P.height : y, p = e.loadingCard, b = p === void 0 ? P.loadingCard : p;
|
|
811
772
|
e.outlined;
|
|
812
|
-
var v = e.style, g = v === void 0 ? P.style : v, f = e.themeColor, x = f === void 0 ? P.themeColor : f, N = e.variant, O = N === void 0 ? P.variant : N, A =
|
|
773
|
+
var v = e.style, g = v === void 0 ? P.style : v, f = e.themeColor, x = f === void 0 ? P.themeColor : f, N = e.variant, O = N === void 0 ? P.variant : N, A = _(e, rr), S = te(Oe({
|
|
813
774
|
height: u,
|
|
814
775
|
direction: s
|
|
815
|
-
}, g)), B =
|
|
776
|
+
}, g)), B = Se(S, 2), R = B[0], I = B[1], C = D();
|
|
816
777
|
return z(l, function() {
|
|
817
|
-
return
|
|
818
|
-
}, []),
|
|
819
|
-
I(
|
|
778
|
+
return C.current;
|
|
779
|
+
}, []), Re(function() {
|
|
780
|
+
I(Oe({
|
|
820
781
|
height: u,
|
|
821
782
|
// display: 'flex', do we need this?
|
|
822
783
|
direction: s
|
|
823
784
|
}, g));
|
|
824
785
|
}, [u, s, g]), /* @__PURE__ */ m.createElement("div", k({
|
|
825
|
-
ref:
|
|
786
|
+
ref: C,
|
|
826
787
|
className: h("lmnt", "lmnt-card", "mdc-card", O === "outlined" && "mdc-card--outlined", O === "flat" && "lmnt-card--flat", O === "raised" && "lmnt-card--raised", b && "lmnt-card--loading", "lmnt-card--".concat(i), "lmnt-theme-".concat(x, "-bg"), c),
|
|
827
788
|
style: R
|
|
828
789
|
}, A), r);
|
|
829
790
|
});
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
var
|
|
833
|
-
var t = e.children, i = t === void 0 ?
|
|
791
|
+
He.displayName = "Card";
|
|
792
|
+
He.propTypes = Aa;
|
|
793
|
+
var nr = ["children", "className", "customRef", "disabled", "fullWidth", "href", "label", "leadingIcon", "actionButtonThemeColor", "trailingIcon", "type"], E = wa, Me = /* @__PURE__ */ T(function(e, l) {
|
|
794
|
+
var t = e.children, i = t === void 0 ? E.children : t, n = e.className, r = n === void 0 ? E.className : n, o = e.customRef, c = o === void 0 ? E.customRef : o, d = e.disabled, s = d === void 0 ? E.disabled : d, y = e.fullWidth, u = y === void 0 ? E.fullWidth : y, p = e.href, b = p === void 0 ? E.href : p, v = e.label, g = v === void 0 ? E.label : v, f = e.leadingIcon, x = f === void 0 ? E.leadingIcon : f, N = e.actionButtonThemeColor, O = N === void 0 ? E.actionButtonThemeColor : N, A = e.trailingIcon, S = A === void 0 ? E.trailingIcon : A, B = e.type, R = B === void 0 ? E.type : B, I = _(e, nr), C = G(function() {
|
|
834
795
|
return g || i;
|
|
835
796
|
}, [g, i]);
|
|
836
|
-
return /* @__PURE__ */ m.createElement(
|
|
797
|
+
return /* @__PURE__ */ m.createElement(da, k({
|
|
837
798
|
ref: l,
|
|
838
799
|
customRef: c,
|
|
839
800
|
disabled: s,
|
|
@@ -842,42 +803,42 @@ var gr = ["children", "className", "customRef", "disabled", "fullWidth", "href",
|
|
|
842
803
|
label: g,
|
|
843
804
|
leadingIcon: x,
|
|
844
805
|
themeColor: O,
|
|
845
|
-
trailingIcon:
|
|
806
|
+
trailingIcon: S,
|
|
846
807
|
type: R,
|
|
847
808
|
variant: "text",
|
|
848
809
|
className: h("mdc-card__action mdc-card__action--button", r)
|
|
849
|
-
}, I),
|
|
810
|
+
}, I), C);
|
|
850
811
|
});
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
var
|
|
812
|
+
Me.displayName = "CardActionButton";
|
|
813
|
+
Me.propTypes = La;
|
|
814
|
+
var tr = ["active", "ariaLabel", "ariaLabelledBy", "children", "className", "disabled", "onClick", "toggleOff", "toggleOffAriaLabel", "toggleOffAriaLabelledBy", "toggleOn", "toggleOnAriaLabel", "toggleOnAriaLabelledBy", "variant"], L = Sa, qe = /* @__PURE__ */ T(function(e, l) {
|
|
854
815
|
e.active;
|
|
855
816
|
var t = e.ariaLabel, i = t === void 0 ? L.ariaLabel : t;
|
|
856
817
|
e.ariaLabelledBy;
|
|
857
|
-
var n = e.children, r = n === void 0 ? L.children : n, o = e.className, c = o === void 0 ? L.className : o, d = e.disabled, s = d === void 0 ? L.disabled : d, y = e.onClick, u = y === void 0 ? L.onClick : y, p = e.toggleOff, b = p === void 0 ? L.toggleOff : p, v = e.toggleOffAriaLabel, g = v === void 0 ? L.toggleOffAriaLabel : v, f = e.toggleOffAriaLabelledBy, x = f === void 0 ? L.toggleOffAriaLabelledBy : f, N = e.toggleOn, O = N === void 0 ? L.toggleOn : N, A = e.toggleOnAriaLabel,
|
|
858
|
-
return typeof r == "string" ? /* @__PURE__ */ m.createElement(
|
|
818
|
+
var n = e.children, r = n === void 0 ? L.children : n, o = e.className, c = o === void 0 ? L.className : o, d = e.disabled, s = d === void 0 ? L.disabled : d, y = e.onClick, u = y === void 0 ? L.onClick : y, p = e.toggleOff, b = p === void 0 ? L.toggleOff : p, v = e.toggleOffAriaLabel, g = v === void 0 ? L.toggleOffAriaLabel : v, f = e.toggleOffAriaLabelledBy, x = f === void 0 ? L.toggleOffAriaLabelledBy : f, N = e.toggleOn, O = N === void 0 ? L.toggleOn : N, A = e.toggleOnAriaLabel, S = A === void 0 ? L.toggleOnAriaLabel : A, B = e.toggleOnAriaLabelledBy, R = B === void 0 ? L.toggleOnAriaLabelledBy : B, I = e.variant, C = I === void 0 ? L.variant : I, Z = _(e, tr), Ke = G(function() {
|
|
819
|
+
return typeof r == "string" ? /* @__PURE__ */ m.createElement(Ye, {
|
|
859
820
|
icon: r
|
|
860
821
|
}) : r;
|
|
861
822
|
}, [r]);
|
|
862
|
-
return /* @__PURE__ */ m.createElement(
|
|
823
|
+
return /* @__PURE__ */ m.createElement(ca, k({
|
|
863
824
|
ref: l,
|
|
864
|
-
variant:
|
|
825
|
+
variant: C,
|
|
865
826
|
disabled: s,
|
|
866
827
|
onClick: u,
|
|
867
828
|
ariaLabel: i,
|
|
868
829
|
toggleOffAriaLabel: g,
|
|
869
830
|
toggleOffAriaLabelledBy: x,
|
|
870
|
-
toggleOnAriaLabel:
|
|
831
|
+
toggleOnAriaLabel: S,
|
|
871
832
|
toggleOnAriaLabelledBy: R,
|
|
872
833
|
toggleOn: O,
|
|
873
834
|
toggleOff: b,
|
|
874
835
|
className: h("mdc-card__action mdc-card__action--icon", c)
|
|
875
|
-
},
|
|
836
|
+
}, Z), Ke);
|
|
876
837
|
});
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
var
|
|
880
|
-
var t = e.alignment, i = t === void 0 ?
|
|
838
|
+
qe.displayName = "CardActionIcon";
|
|
839
|
+
qe.propTypes = Ea;
|
|
840
|
+
var ir = ["alignment", "actionIcons", "actionButtons", "className"], V = Ua, je = /* @__PURE__ */ T(function(e, l) {
|
|
841
|
+
var t = e.alignment, i = t === void 0 ? V.alignment : t, n = e.actionIcons, r = n === void 0 ? V.actionIcons : n, o = e.actionButtons, c = o === void 0 ? V.actionButtons : o, d = e.className, s = d === void 0 ? V.className : d, y = _(e, ir);
|
|
881
842
|
return /* @__PURE__ */ m.createElement("div", k({
|
|
882
843
|
ref: l,
|
|
883
844
|
className: h("lmnt", "mdc-card__actions", i === "leading" && "lmnt-card__actions--leading", i === "center" && "lmnt-card__actions--center", i === "trailing" && "lmnt-card__actions--trailing", s)
|
|
@@ -887,60 +848,60 @@ var ur = ["alignment", "actionIcons", "actionButtons", "className"], q = qa, Fe
|
|
|
887
848
|
className: "mdc-card__action-icons"
|
|
888
849
|
}, r));
|
|
889
850
|
});
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
var
|
|
893
|
-
var t = e.children, i = t === void 0 ? X.children : t, n = e.typographyType, r = n === void 0 ? X.typographyType : n, o = e.themeColor, c = o === void 0 ? X.themeColor : o, d = e.className, s = d === void 0 ? X.className : d, y =
|
|
851
|
+
je.displayName = "CardActions";
|
|
852
|
+
je.propTypes = Ra;
|
|
853
|
+
var lr = ["children", "typographyType", "themeColor", "className"], X = Ha, ze = /* @__PURE__ */ T(function(e, l) {
|
|
854
|
+
var t = e.children, i = t === void 0 ? X.children : t, n = e.typographyType, r = n === void 0 ? X.typographyType : n, o = e.themeColor, c = o === void 0 ? X.themeColor : o, d = e.className, s = d === void 0 ? X.className : d, y = _(e, lr);
|
|
894
855
|
return /* @__PURE__ */ m.createElement("div", k({
|
|
895
856
|
ref: l,
|
|
896
857
|
className: h("lmnt-card-body", r === "body1" && " mdc-typography--body1", r === "body2" && " mdc-typography--body2", r === "button" && " mdc-typography--button", r === "caption" && " mdc-typography--caption", r === "headline1" && " mdc-typography--headline1", r === "headline2" && " mdc-typography--headline2", r === "headline3" && " mdc-typography--headline3", r === "headline4" && " mdc-typography--headline4", r === "headline5" && " mdc-typography--headline5", r === "headline6" && " mdc-typography--headline6", r === "display1" && " mdc-typography--headline1", r === "display2" && " mdc-typography--headline2", r === "display3" && " mdc-typography--headline3", r === "display4" && " mdc-typography--headline4", r === "display5" && " mdc-typography--headline5", r === "display6" && " mdc-typography--headline6", r === "overline" && " mdc-typography--overline", r === "subtitle1" && " mdc-typography--subtitle1", r === "subtitle2" && " mdc-typography--subtitle2", "lmnt-theme-".concat(c, "-bg"), s)
|
|
897
858
|
}, y), i);
|
|
898
859
|
});
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
var
|
|
902
|
-
var t = e.children, i = t === void 0 ?
|
|
860
|
+
ze.displayName = "CardBody";
|
|
861
|
+
ze.propTypes = Pa;
|
|
862
|
+
var or = ["children", "className"], Be = qa, $e = /* @__PURE__ */ T(function(e, l) {
|
|
863
|
+
var t = e.children, i = t === void 0 ? Be.children : t, n = e.className, r = n === void 0 ? Be.className : n, o = _(e, or);
|
|
903
864
|
return /* @__PURE__ */ m.createElement("div", k({
|
|
904
865
|
ref: l,
|
|
905
866
|
className: h(["lmnt", "mdc-card__content"], r)
|
|
906
867
|
}, o), i);
|
|
907
868
|
});
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
var
|
|
911
|
-
var t = e.className, i = t === void 0 ?
|
|
912
|
-
return /* @__PURE__ */ m.createElement(
|
|
869
|
+
$e.displayName = "CardContent";
|
|
870
|
+
$e.propTypes = Ma;
|
|
871
|
+
var dr = ["className", "dividerVariant", "dividerThemeColor"], ee = za, De = /* @__PURE__ */ T(function(e, l) {
|
|
872
|
+
var t = e.className, i = t === void 0 ? ee.className : t, n = e.dividerVariant, r = n === void 0 ? ee.dividerVariant : n, o = e.dividerThemeColor, c = o === void 0 ? ee.dividerThemeColor : o, d = _(e, dr);
|
|
873
|
+
return /* @__PURE__ */ m.createElement(se, k({
|
|
913
874
|
ref: l,
|
|
914
875
|
variant: r,
|
|
915
876
|
themeColor: c,
|
|
916
877
|
className: h("mdc-card__divider", "lmnt-card-divider", i)
|
|
917
878
|
}, d));
|
|
918
879
|
});
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
var
|
|
922
|
-
var t = e.children, i = t === void 0 ?
|
|
880
|
+
De.displayName = "CardDivider";
|
|
881
|
+
De.propTypes = ja;
|
|
882
|
+
var cr = ["children", "className", "filterType"], ae = Da, We = /* @__PURE__ */ T(function(e, l) {
|
|
883
|
+
var t = e.children, i = t === void 0 ? ae.children : t, n = e.className, r = n === void 0 ? ae.className : n, o = e.filterType, c = o === void 0 ? ae.filterType : o, d = _(e, cr);
|
|
923
884
|
return /* @__PURE__ */ m.createElement("div", k({
|
|
924
885
|
ref: l,
|
|
925
886
|
className: h("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", r)
|
|
926
887
|
}, d), i);
|
|
927
888
|
});
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
var
|
|
889
|
+
We.displayName = "CardFilter";
|
|
890
|
+
We.propTypes = $a;
|
|
891
|
+
var sr = /* @__PURE__ */ la({
|
|
931
892
|
groupRect: {}
|
|
932
|
-
}),
|
|
933
|
-
var t = e.children, i = t === void 0 ?
|
|
893
|
+
}), mr = ["children", "className", "rtl"], re = Va, Ve = /* @__PURE__ */ T(function(e, l) {
|
|
894
|
+
var t = e.children, i = t === void 0 ? re.children : t, n = e.className, r = n === void 0 ? re.className : n, o = e.rtl, c = o === void 0 ? re.rtl : o, d = _(e, mr), s = ba(), y = Se(s, 2), u = y[0], p = y[1], b = D(u);
|
|
934
895
|
return z(l, function() {
|
|
935
896
|
return b.current;
|
|
936
897
|
}, []), z(u, function() {
|
|
937
898
|
return b.current;
|
|
938
899
|
}, []), // eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
939
|
-
/* @__PURE__ */ m.createElement(
|
|
900
|
+
/* @__PURE__ */ m.createElement(sr.Provider, {
|
|
940
901
|
value: {
|
|
941
902
|
groupRect: p
|
|
942
903
|
}
|
|
943
|
-
}, /* @__PURE__ */ m.createElement(
|
|
904
|
+
}, /* @__PURE__ */ m.createElement(ya, k({
|
|
944
905
|
className: h("lmnt-card__horizontal-group", "lmnt-card--horizontal", r),
|
|
945
906
|
ref: b,
|
|
946
907
|
gap: "none",
|
|
@@ -948,53 +909,53 @@ var Nr = /* @__PURE__ */ ua({
|
|
|
948
909
|
secondaryAlign: "start"
|
|
949
910
|
}, d), i));
|
|
950
911
|
});
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
var
|
|
954
|
-
var t = e.children, i = t === void 0 ? F.children : t, n = e.className, r = n === void 0 ? F.className : n, o = e.position, c = o === void 0 ? F.position : o, d = e.overlayThemeColor, s = d === void 0 ? F.overlayThemeColor : d, y =
|
|
912
|
+
Ve.propTypes = Wa;
|
|
913
|
+
Ve.displayName = "CardHorizontalGroup";
|
|
914
|
+
var yr = ["children", "className", "position", "overlayThemeColor"], F = Ya, me = /* @__PURE__ */ T(function(e, l) {
|
|
915
|
+
var t = e.children, i = t === void 0 ? F.children : t, n = e.className, r = n === void 0 ? F.className : n, o = e.position, c = o === void 0 ? F.position : o, d = e.overlayThemeColor, s = d === void 0 ? F.overlayThemeColor : d, y = _(e, yr), u = D();
|
|
955
916
|
z(l, function() {
|
|
956
917
|
return u.current;
|
|
957
918
|
}, []);
|
|
958
919
|
var p = G(function() {
|
|
959
|
-
return c !== "none" && h("lmnt", "lmnt-card-overlay ", !
|
|
920
|
+
return c !== "none" && h("lmnt", "lmnt-card-overlay ", !ke(s).call(s, "gradient") && s !== "surface" && "lmnt-card-overlay__".concat(s), ke(s).call(s, "gradient") && s !== "surface" && "lmnt-theme--bg-".concat(s), s === "surface" && "lmnt-theme-surface-bg", "lmnt-card-overlay__".concat(c), r);
|
|
960
921
|
}, [s, c, r]);
|
|
961
922
|
return /* @__PURE__ */ m.createElement("div", k({
|
|
962
923
|
className: p
|
|
963
924
|
}, y), i && i);
|
|
964
925
|
});
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
var
|
|
968
|
-
function
|
|
969
|
-
var t =
|
|
926
|
+
me.displayName = "CardOverlay";
|
|
927
|
+
me.propTypes = Ka;
|
|
928
|
+
var gr = ["children", "className", "contentPlacement", "imageUrl", "overlay", "overlayThemeColor", "ratio", "style"];
|
|
929
|
+
function xe(e, l) {
|
|
930
|
+
var t = de(e);
|
|
970
931
|
if (j) {
|
|
971
932
|
var i = j(e);
|
|
972
|
-
l && (i =
|
|
973
|
-
return
|
|
933
|
+
l && (i = ce(i).call(i, function(n) {
|
|
934
|
+
return $(e, n).enumerable;
|
|
974
935
|
})), t.push.apply(t, i);
|
|
975
936
|
}
|
|
976
937
|
return t;
|
|
977
938
|
}
|
|
978
|
-
function
|
|
939
|
+
function pr(e) {
|
|
979
940
|
for (var l = 1; l < arguments.length; l++) {
|
|
980
941
|
var t, i, n = arguments[l] != null ? arguments[l] : {};
|
|
981
|
-
l % 2 ?
|
|
982
|
-
|
|
983
|
-
}) :
|
|
984
|
-
|
|
942
|
+
l % 2 ? M(t = xe(Object(n), !0)).call(t, function(r) {
|
|
943
|
+
ie(e, r, n[r]);
|
|
944
|
+
}) : q ? le(e, q(n)) : M(i = xe(Object(n))).call(i, function(r) {
|
|
945
|
+
oe(e, r, $(n, r));
|
|
985
946
|
});
|
|
986
947
|
}
|
|
987
948
|
return e;
|
|
988
949
|
}
|
|
989
|
-
var
|
|
990
|
-
var t = e.children, i = t === void 0 ?
|
|
950
|
+
var H = Za, Xe = /* @__PURE__ */ T(function(e, l) {
|
|
951
|
+
var t = e.children, i = t === void 0 ? H.children : t, n = e.className, r = n === void 0 ? H.className : n, o = e.contentPlacement, c = o === void 0 ? H.contentPlacement : o, d = e.imageUrl, s = d === void 0 ? H.imageUrl : d, y = e.overlay, u = y === void 0 ? H.overlay : y, p = e.overlayThemeColor, b = p === void 0 ? H.overlayThemeColor : p, v = e.ratio, g = v === void 0 ? H.ratio : v, f = e.style, x = f === void 0 ? H.style : f, N = _(e, gr);
|
|
991
952
|
return /* @__PURE__ */ m.createElement("div", k({
|
|
992
953
|
ref: l,
|
|
993
954
|
className: h("lmnt", "mdc-card__media", (g === "square" || !g) && "mdc-card__media--square", g === "sixteen-nine" && "mdc-card__media--16-9", g === "four-three" && "lmnt-card__media--4-3", g === "four-five" && "lmnt-card__media--4-5", g === "two-one" && "lmnt-card__media--2-1", r),
|
|
994
|
-
style:
|
|
955
|
+
style: pr({
|
|
995
956
|
backgroundImage: "url(".concat(s, ")")
|
|
996
957
|
}, x)
|
|
997
|
-
}, N), u && /* @__PURE__ */ m.createElement(
|
|
958
|
+
}, N), u && /* @__PURE__ */ m.createElement(me, {
|
|
998
959
|
overlayThemeColor: b
|
|
999
960
|
}), i && /* @__PURE__ */ m.createElement("div", {
|
|
1000
961
|
className: h("mdc-card__media-content", u && "lmnt-card__media-content--with-overlay", c === "bottom" && "lmnt-card__content--bottom", c === "top" && "lmnt-card__content--top")
|
|
@@ -1002,24 +963,24 @@ var U = ir, Ze = /* @__PURE__ */ T(function(e, l) {
|
|
|
1002
963
|
className: "lmnt-card__media-inner-content"
|
|
1003
964
|
}, i)));
|
|
1004
965
|
});
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
var
|
|
1008
|
-
var t = e.children, i = t === void 0 ?
|
|
966
|
+
Xe.displayName = "CardMedia";
|
|
967
|
+
Xe.propTypes = Ga;
|
|
968
|
+
var ur = ["children", "className", "tag"], Ae = Qa, Fe = /* @__PURE__ */ T(function(e, l) {
|
|
969
|
+
var t = e.children, i = t === void 0 ? Ae.children : t, n = e.className, r = n === void 0 ? Ae.className : n, o = e.tag, c = o === void 0 ? "div" : o, d = _(e, ur);
|
|
1009
970
|
return /* @__PURE__ */ m.createElement(c, k({
|
|
1010
971
|
ref: l,
|
|
1011
972
|
tabIndex: "0",
|
|
1012
973
|
className: h(["lmnt", "mdc-card__primary-action"], r)
|
|
1013
974
|
}, d), i);
|
|
1014
975
|
});
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
var
|
|
1018
|
-
var t = e.className, i = t === void 0 ?
|
|
976
|
+
Fe.displayName = "CardPrimaryAction";
|
|
977
|
+
Fe.propTypes = Ja;
|
|
978
|
+
var vr = ["className", "leadingBlock", "leadingBlockType", "overlineText", "placement", "primaryText", "secondaryText", "stackedSecondaryText", "stacked", "themeColor", "trailingBlock", "trailingBlockType"], w = ar, Ge = /* @__PURE__ */ T(function(e, l) {
|
|
979
|
+
var t = e.className, i = t === void 0 ? w.className : t, n = e.leadingBlock, r = n === void 0 ? w.leadingBlock : n, o = e.leadingBlockType, c = o === void 0 ? w.leadingBlockType : o, d = e.overlineText, s = d === void 0 ? w.overlineText : d, y = e.placement, u = y === void 0 ? w.placement : y, p = e.primaryText, b = p === void 0 ? w.primaryText : p, v = e.secondaryText, g = v === void 0 ? w.secondaryText : v, f = e.stackedSecondaryText, x = f === void 0 ? w.stackedSecondaryText : f, N = e.stacked, O = N === void 0 ? w.stacked : N, A = e.themeColor, S = A === void 0 ? w.themeColor : A, B = e.trailingBlock, R = B === void 0 ? w.trailingBlock : B, I = e.trailingBlockType, C = I === void 0 ? w.trailingBlockType : I, Z = _(e, vr);
|
|
1019
980
|
return /* @__PURE__ */ m.createElement("div", k({
|
|
1020
981
|
ref: l,
|
|
1021
|
-
className: h("lmnt", "lmnt-card-title", O && "lmnt-card-title--stacked", u === "top" && "lmnt-card-title--top-placement", u === "bottom" && "lmnt-card-title--bottom-placement",
|
|
1022
|
-
},
|
|
982
|
+
className: h("lmnt", "lmnt-card-title", O && "lmnt-card-title--stacked", u === "top" && "lmnt-card-title--top-placement", u === "bottom" && "lmnt-card-title--bottom-placement", S === "primary" && "lmnt-theme-primary-bg", S === "secondary" && "lmnt-theme-secondary-bg", i)
|
|
983
|
+
}, Z), c ? /* @__PURE__ */ m.createElement("div", {
|
|
1023
984
|
className: h("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")
|
|
1024
985
|
}, r) : null, /* @__PURE__ */ m.createElement("div", {
|
|
1025
986
|
className: "lmnt-card-title__text"
|
|
@@ -1031,53 +992,53 @@ var Br = ["className", "leadingBlock", "leadingBlockType", "overlineText", "plac
|
|
|
1031
992
|
className: "lmnt-card-title__secondaryText"
|
|
1032
993
|
}, g), x && /* @__PURE__ */ m.createElement("div", {
|
|
1033
994
|
className: "lmnt-card-title__secondaryText"
|
|
1034
|
-
}, x))),
|
|
1035
|
-
className: h("lmnt-card-title__trailingBlock",
|
|
995
|
+
}, x))), C ? /* @__PURE__ */ m.createElement("div", {
|
|
996
|
+
className: h("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")
|
|
1036
997
|
}, R) : null);
|
|
1037
998
|
});
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
var
|
|
1041
|
-
function
|
|
1042
|
-
var t =
|
|
999
|
+
Ge.displayName = "CardTitle";
|
|
1000
|
+
Ge.propTypes = er;
|
|
1001
|
+
var fr = ["style", "mediaUrl", "width"];
|
|
1002
|
+
function Ie(e, l) {
|
|
1003
|
+
var t = de(e);
|
|
1043
1004
|
if (j) {
|
|
1044
1005
|
var i = j(e);
|
|
1045
|
-
l && (i =
|
|
1046
|
-
return
|
|
1006
|
+
l && (i = ce(i).call(i, function(n) {
|
|
1007
|
+
return $(e, n).enumerable;
|
|
1047
1008
|
})), t.push.apply(t, i);
|
|
1048
1009
|
}
|
|
1049
1010
|
return t;
|
|
1050
1011
|
}
|
|
1051
|
-
function
|
|
1012
|
+
function hr(e) {
|
|
1052
1013
|
for (var l = 1; l < arguments.length; l++) {
|
|
1053
1014
|
var t, i, n = arguments[l] != null ? arguments[l] : {};
|
|
1054
|
-
l % 2 ?
|
|
1055
|
-
|
|
1056
|
-
}) :
|
|
1057
|
-
|
|
1015
|
+
l % 2 ? M(t = Ie(Object(n), !0)).call(t, function(r) {
|
|
1016
|
+
ie(e, r, n[r]);
|
|
1017
|
+
}) : q ? le(e, q(n)) : M(i = Ie(Object(n))).call(i, function(r) {
|
|
1018
|
+
oe(e, r, $(n, r));
|
|
1058
1019
|
});
|
|
1059
1020
|
}
|
|
1060
1021
|
return e;
|
|
1061
1022
|
}
|
|
1062
|
-
var
|
|
1063
|
-
var t = e.style, i = t === void 0 ?
|
|
1023
|
+
var ne = Fa, Ze = /* @__PURE__ */ T(function(e, l) {
|
|
1024
|
+
var t = e.style, i = t === void 0 ? ne.style : t, n = e.mediaUrl, r = n === void 0 ? ne.mediaUrl : n, o = e.width, c = o === void 0 ? ne.width : o, d = _(e, fr), s = D();
|
|
1064
1025
|
return z(l, function() {
|
|
1065
1026
|
return s.current;
|
|
1066
1027
|
}, []), /* @__PURE__ */ m.createElement("img", k({
|
|
1067
1028
|
src: r,
|
|
1068
1029
|
alt: "leadingCardMedia",
|
|
1069
1030
|
width: c,
|
|
1070
|
-
style:
|
|
1031
|
+
style: hr({
|
|
1071
1032
|
flexShrink: 0
|
|
1072
1033
|
}, i)
|
|
1073
1034
|
}, d));
|
|
1074
1035
|
});
|
|
1075
|
-
|
|
1076
|
-
|
|
1036
|
+
Ze.propTypes = Xa;
|
|
1037
|
+
Ze.displayName = "CardLeadingMedia";
|
|
1077
1038
|
export {
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1039
|
+
ze as D,
|
|
1040
|
+
Ge as F,
|
|
1041
|
+
$e as M,
|
|
1042
|
+
De as j,
|
|
1043
|
+
He as w
|
|
1083
1044
|
};
|