@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.
- package/CHANGELOG.md +12 -0
- package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
- package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
- package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
- package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
- package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
- package/dist/_Map-BmafU0dj.js +113 -0
- package/dist/assets/FormSelect.css +1 -1
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/BaseView/BaseView.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +1 -1
- package/dist/components/ChipCard/ChipCard.js +499 -390
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/DeleteModal/DeleteModal.js +5 -5
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/EmptyView/EmptyView.js +161 -125
- package/dist/components/Filter/Filter.js +11 -11
- package/dist/components/Filter/Filter.test.js +51 -35
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +53 -53
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
- package/dist/components/GenericTable/GenericTable.js +8246 -7153
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +552 -541
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/ListArea/ListArea.js +16 -16
- package/dist/components/ListArea/ListArea.test.js +20 -20
- package/dist/components/ListArea/ListAreaService.js +6 -6
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
- package/dist/components/Modal/Modal.js +305 -312
- package/dist/components/ModulePadding/ModulePadding.js +8 -8
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +1 -1
- package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperIndicator.js +1 -1
- package/dist/defineProperty-CmuOyxyf.js +318 -0
- package/dist/es.string.iterator-DrqCBub-.js +581 -0
- package/dist/find-B-dm7n_F.js +88 -0
- package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
- package/dist/get-u1nFMLdT.js +377 -0
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-BIZAN_pL.js +213 -0
- package/dist/includes-Bt-Stz_B.js +110 -0
- package/dist/index-Cpb-8cAN.js +2465 -0
- package/dist/index.es-0QJC9VS2.js +325 -0
- package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
- package/dist/index.es-B6ZgiW2s.js +3790 -0
- package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
- package/dist/index.es-BRtk0Q33.js +42 -0
- package/dist/index.es-BXj90wb_.js +402 -0
- package/dist/index.es-Bg8hxXM8.js +912 -0
- package/dist/index.es-Bgjh6euR.js +292 -0
- package/dist/index.es-Bo1Rhtyb.js +80 -0
- package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
- package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
- package/dist/index.es-CmF6xAUJ.js +48 -0
- package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
- package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
- package/dist/index.es-DDYCugj-.js +166 -0
- package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
- package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
- package/dist/index.es-DeF-y7fd.js +122 -0
- package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
- package/dist/index.es-DqSY-ePE.js +4923 -0
- package/dist/index.es-DwzB1d7_.js +1061 -0
- package/dist/index.es-IXyb5F6n.js +457 -0
- package/dist/index.es-t7hFwQSs.js +67 -0
- package/dist/isArray-DN9s620O.js +83 -0
- package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
- package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
- package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
- package/dist/keyboard-B-WUULl-.js +173 -0
- package/dist/main.js +2 -2
- package/dist/map-Dbvlv_6y.js +707 -0
- package/dist/omit-uTAyrUTm.js +645 -0
- package/dist/orderBy-BXxEvUw6.js +571 -0
- package/dist/parse-int-qVAoFbOL.js +75 -0
- package/dist/services/UtilService.js +7 -7
- package/dist/slicedToArray-BWk2gTCn.js +436 -0
- package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
- package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
- package/package.json +3 -3
- package/dist/_baseIsEqual-Df2URKWm.js +0 -240
- package/dist/_getAllKeys-BQWmkEw5.js +0 -86
- package/dist/_getTag-BkGSRa18.js +0 -79
- package/dist/_setToString-B6E13pDg.js +0 -580
- package/dist/get-DQr2KQKm.js +0 -113
- package/dist/index-D5m--65X.js +0 -1491
- package/dist/index.es-8MVlRCi4.js +0 -1066
- package/dist/index.es-BbaCXS9-.js +0 -45
- package/dist/index.es-BikIx4uw.js +0 -3242
- package/dist/index.es-CDMu_yu0.js +0 -954
- package/dist/index.es-ChSlnpSq.js +0 -309
- package/dist/index.es-D66OkZJH.js +0 -4853
- package/dist/index.es-DFFyENnI.js +0 -63
- package/dist/index.es-DTMwaJ6B.js +0 -56
- package/dist/index.es-DgTJmbgD.js +0 -268
- package/dist/index.es-DmsyeHLO.js +0 -306
- package/dist/index.es-Dw1eih7R.js +0 -159
- package/dist/index.es-eKuwB1ll.js +0 -54
- package/dist/index.es-qxTN-Bb2.js +0 -107
- package/dist/index.es-xnSvM9b9.js +0 -444
- package/dist/isArray-DDZrq40X.js +0 -456
- package/dist/keyboard-Bpt0aBqQ.js +0 -107
- package/dist/omit-BN3qeeaj.js +0 -364
- package/dist/orderBy-D4LvP9Az.js +0 -316
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { _ as u, c as P, P as a } from "./index-D5m--65X.js";
|
|
2
|
-
import f, { forwardRef as y, useMemo as v, useRef as T, useImperativeHandle as N } from "react";
|
|
3
|
-
const R = {
|
|
4
|
-
/**
|
|
5
|
-
* Content to be rendered inside the padding component. Accepts any valid markup.
|
|
6
|
-
*
|
|
7
|
-
* Defaults to **null**.
|
|
8
|
-
*/
|
|
9
|
-
children: a.node.isRequired,
|
|
10
|
-
/**
|
|
11
|
-
* The css class name to be passed through to the component markup.
|
|
12
|
-
*
|
|
13
|
-
* Defaults to **undefined**.
|
|
14
|
-
*/
|
|
15
|
-
className: a.string,
|
|
16
|
-
/**
|
|
17
|
-
* Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
|
|
18
|
-
*
|
|
19
|
-
* Defaults to **null**.
|
|
20
|
-
*/
|
|
21
|
-
customPadding: a.string,
|
|
22
|
-
/**
|
|
23
|
-
* By default a div will be rendered, this allow another tag to be used instead. A block type component is suggested.
|
|
24
|
-
*
|
|
25
|
-
* Defaults to **'div'**.
|
|
26
|
-
*/
|
|
27
|
-
tag: a.oneOfType([a.string, a.elementType]),
|
|
28
|
-
/**
|
|
29
|
-
* Applies the specified padding amount. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
|
|
30
|
-
*
|
|
31
|
-
* Defaults to **'standard'**.
|
|
32
|
-
*/
|
|
33
|
-
variant: a.oneOf(["dense", "standard", "airy"])
|
|
34
|
-
}, _ = {
|
|
35
|
-
children: null,
|
|
36
|
-
className: void 0,
|
|
37
|
-
customPadding: null,
|
|
38
|
-
tag: "div",
|
|
39
|
-
variant: "standard"
|
|
40
|
-
}, n = /* @__PURE__ */ y((t, r) => {
|
|
41
|
-
const {
|
|
42
|
-
tag: i,
|
|
43
|
-
variant: e,
|
|
44
|
-
children: l,
|
|
45
|
-
className: o,
|
|
46
|
-
customPadding: d,
|
|
47
|
-
style: s,
|
|
48
|
-
...c
|
|
49
|
-
} = t, m = v(() => ({
|
|
50
|
-
...s,
|
|
51
|
-
padding: d
|
|
52
|
-
}), [s, d]), p = i || "div", g = T();
|
|
53
|
-
return N(r, () => g.current, []), /* @__PURE__ */ f.createElement(p, u({
|
|
54
|
-
className: P("lmnt", "lmnt-padding", e === "dense" && "lmnt-padding--dense", e === "standard" && "lmnt-padding--standard", e === "airy" && "lmnt-padding--airy", o),
|
|
55
|
-
style: m
|
|
56
|
-
}, c), l);
|
|
57
|
-
});
|
|
58
|
-
n.displayName = "Padding";
|
|
59
|
-
n.propTypes = R;
|
|
60
|
-
n.defaultProps = _;
|
|
61
|
-
export {
|
|
62
|
-
n as P
|
|
63
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import d, { forwardRef as y, useState as P, useRef as b, useImperativeHandle as v, useEffect as R } from "react";
|
|
2
|
-
import T from "react-dom";
|
|
3
|
-
import { e as _ } from "./index.es-ChSlnpSq.js";
|
|
4
|
-
import { P as o } from "./index-D5m--65X.js";
|
|
5
|
-
const g = {
|
|
6
|
-
/**
|
|
7
|
-
* Content to be rendered inside the portal.
|
|
8
|
-
*
|
|
9
|
-
* Defaults to **null**.
|
|
10
|
-
*/
|
|
11
|
-
children: o.node,
|
|
12
|
-
/**
|
|
13
|
-
* Disables the portal to rendering children in the natural flow of the DOM.
|
|
14
|
-
*
|
|
15
|
-
* Defaults to **false**.
|
|
16
|
-
*/
|
|
17
|
-
disabled: o.bool,
|
|
18
|
-
/**
|
|
19
|
-
* The DOM element the children will render in. If a string is sent it should be a valid DOM query selector. If one is not sent, Portal will default to `document.body`.
|
|
20
|
-
*
|
|
21
|
-
* Defaults to **'document.body'**.
|
|
22
|
-
*/
|
|
23
|
-
portalContainer: o.oneOfType([o.string, o.node])
|
|
24
|
-
}, h = {
|
|
25
|
-
children: null,
|
|
26
|
-
disabled: !1,
|
|
27
|
-
portalContainer: "document.body"
|
|
28
|
-
}, t = /* @__PURE__ */ y((i, m) => {
|
|
29
|
-
var r;
|
|
30
|
-
const [s, n] = P((r = document) === null || r === void 0 ? void 0 : r.body), {
|
|
31
|
-
children: c,
|
|
32
|
-
container: e,
|
|
33
|
-
disabled: p
|
|
34
|
-
} = i, u = b();
|
|
35
|
-
return v(m, () => u.current, []), R(() => {
|
|
36
|
-
var a;
|
|
37
|
-
const l = (a = document) === null || a === void 0 ? void 0 : a.body;
|
|
38
|
-
if (typeof e == "string")
|
|
39
|
-
if (e === "document.body")
|
|
40
|
-
n(l);
|
|
41
|
-
else {
|
|
42
|
-
const f = _(e);
|
|
43
|
-
n(f || l);
|
|
44
|
-
}
|
|
45
|
-
else
|
|
46
|
-
n(e || l);
|
|
47
|
-
}, [e]), // eslint-disable-next-line react/jsx-no-useless-fragment
|
|
48
|
-
/* @__PURE__ */ d.createElement(d.Fragment, null, p || !s ? c : /* @__PURE__ */ T.createPortal(c, s));
|
|
49
|
-
});
|
|
50
|
-
t.displayName = "Portal";
|
|
51
|
-
t.propTypes = g;
|
|
52
|
-
t.defaultProps = h;
|
|
53
|
-
var O = /* @__PURE__ */ d.memo(t);
|
|
54
|
-
export {
|
|
55
|
-
O as P
|
|
56
|
-
};
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { c as G, _ as b, P as e } from "./index-D5m--65X.js";
|
|
2
|
-
import y, { forwardRef as C, useMemo as f, useRef as T, useImperativeHandle as R, createContext as $, useContext as O } from "react";
|
|
3
|
-
import { d as k } from "./index.es-ChSlnpSq.js";
|
|
4
|
-
const x = /* @__PURE__ */ $({}), W = {
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated _Use `variant`='airy' instead._
|
|
7
|
-
*
|
|
8
|
-
* Applies extra padding to each column.
|
|
9
|
-
*
|
|
10
|
-
* Defaults to **undefined**.
|
|
11
|
-
*/
|
|
12
|
-
airy: k(e.bool, "Grid", 'Use `variant`="airy" instead.'),
|
|
13
|
-
/**
|
|
14
|
-
* Accepts GridCol or GridRow.
|
|
15
|
-
*
|
|
16
|
-
* Defaults to **null**.
|
|
17
|
-
*/
|
|
18
|
-
children: e.node.isRequired,
|
|
19
|
-
/**
|
|
20
|
-
* The css class name to be passed through to the component markup.
|
|
21
|
-
*
|
|
22
|
-
* Defaults to **undefined**.
|
|
23
|
-
*/
|
|
24
|
-
className: e.string,
|
|
25
|
-
/**
|
|
26
|
-
* Sets the column gap for the grid.
|
|
27
|
-
*
|
|
28
|
-
* Defaults to **'16px'**.
|
|
29
|
-
*/
|
|
30
|
-
columnGap: e.oneOfType([e.string, e.number]),
|
|
31
|
-
/**
|
|
32
|
-
* Applies 100% height to the grid and direct children rows. Useful when creating a page layout. Be aware all direct children rows will have a 100% height.
|
|
33
|
-
*
|
|
34
|
-
* Defaults to **null**.
|
|
35
|
-
*/
|
|
36
|
-
fullHeight: e.bool,
|
|
37
|
-
/**
|
|
38
|
-
* Applies 100% width to the grid and direct children rows. Useful to maintain full width in a flex container.
|
|
39
|
-
*
|
|
40
|
-
* Defaults to **null**.
|
|
41
|
-
*/
|
|
42
|
-
fullWidth: e.bool,
|
|
43
|
-
/**
|
|
44
|
-
* Alignment of entire grid: left and right.
|
|
45
|
-
*
|
|
46
|
-
* Defaults to **'center'**.
|
|
47
|
-
*/
|
|
48
|
-
gridAlign: e.oneOf(["center", "left", "right"]),
|
|
49
|
-
/**
|
|
50
|
-
* Sets the row gap for the grid.
|
|
51
|
-
*
|
|
52
|
-
* Defaults to **'16px'**.
|
|
53
|
-
*/
|
|
54
|
-
rowGap: e.oneOfType([e.string, e.number]),
|
|
55
|
-
/**
|
|
56
|
-
* Styles for the grid.
|
|
57
|
-
*
|
|
58
|
-
* Defaults to **undefined**.
|
|
59
|
-
*/
|
|
60
|
-
style: e.object,
|
|
61
|
-
/**
|
|
62
|
-
* If true the grid will have a max width according to your theme's breakpoints.
|
|
63
|
-
*
|
|
64
|
-
* Defaults to **false**.
|
|
65
|
-
*/
|
|
66
|
-
useMaxWidth: e.bool,
|
|
67
|
-
/**
|
|
68
|
-
* Select `airy` or `standard` padding.
|
|
69
|
-
*
|
|
70
|
-
* Defaults to **'standard'**.
|
|
71
|
-
*/
|
|
72
|
-
variant: e.oneOf(["standard", "airy", "none"])
|
|
73
|
-
}, H = {
|
|
74
|
-
airy: void 0,
|
|
75
|
-
children: null,
|
|
76
|
-
className: void 0,
|
|
77
|
-
columnGap: "16px",
|
|
78
|
-
fullHeight: null,
|
|
79
|
-
fullWidth: null,
|
|
80
|
-
gridAlign: "center",
|
|
81
|
-
rowGap: "16px",
|
|
82
|
-
style: void 0,
|
|
83
|
-
useMaxWidth: !1,
|
|
84
|
-
variant: "standard"
|
|
85
|
-
}, z = {
|
|
86
|
-
/**
|
|
87
|
-
* Alignment of cell within the row: top, middle, bottom. If omitted the col will stretch to the height of the row.
|
|
88
|
-
*
|
|
89
|
-
* Defaults to **undefined**.
|
|
90
|
-
*/
|
|
91
|
-
align: e.oneOf(["", "top", "middle", "bottom"]),
|
|
92
|
-
/**
|
|
93
|
-
* Content to be rendered inside the GridCol. Accepts any valid markup.
|
|
94
|
-
*
|
|
95
|
-
* Defaults to **null**.
|
|
96
|
-
*/
|
|
97
|
-
children: e.node,
|
|
98
|
-
/**
|
|
99
|
-
* The css class name to be passed through to the component markup.
|
|
100
|
-
*
|
|
101
|
-
* Defaults to **undefined**.
|
|
102
|
-
*/
|
|
103
|
-
className: e.string,
|
|
104
|
-
/**
|
|
105
|
-
* Specifies the number of columns the cell spans.
|
|
106
|
-
*
|
|
107
|
-
* Defaults to **null**.
|
|
108
|
-
*/
|
|
109
|
-
desktopCol: e.number,
|
|
110
|
-
/**
|
|
111
|
-
* Specifies a grid item's start position within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement. Set to any valid `grid-column-start`.
|
|
112
|
-
*
|
|
113
|
-
* Defaults to **null**.
|
|
114
|
-
*/
|
|
115
|
-
gridColStart: e.oneOfType([e.string, e.number]),
|
|
116
|
-
/**
|
|
117
|
-
* Horizontal alignment of the cell contents of cell content: top, middle, bottom.
|
|
118
|
-
*
|
|
119
|
-
* Defaults to **'left'**.
|
|
120
|
-
*/
|
|
121
|
-
horizontalAlign: e.oneOf(["left", "center", "right"]),
|
|
122
|
-
/**
|
|
123
|
-
* Specifies the order of the cell.
|
|
124
|
-
*
|
|
125
|
-
* Defaults to **null**.
|
|
126
|
-
*/
|
|
127
|
-
order: e.number,
|
|
128
|
-
/**
|
|
129
|
-
* Specifies the number of columns the cell spans on a phone.
|
|
130
|
-
*
|
|
131
|
-
* Defaults to **null**.
|
|
132
|
-
*/
|
|
133
|
-
phoneCol: e.number,
|
|
134
|
-
/**
|
|
135
|
-
* Specifies the number of columns the cell spans on a tablet.
|
|
136
|
-
*
|
|
137
|
-
* Defaults to **null**.
|
|
138
|
-
*/
|
|
139
|
-
tabletCol: e.number,
|
|
140
|
-
/**
|
|
141
|
-
* Vertical alignment of cell content: top, middle, bottom.
|
|
142
|
-
*
|
|
143
|
-
* Defaults to **'top'**.
|
|
144
|
-
*/
|
|
145
|
-
verticalAlign: e.oneOf(["top", "middle", "bottom"])
|
|
146
|
-
}, E = {
|
|
147
|
-
align: void 0,
|
|
148
|
-
children: null,
|
|
149
|
-
className: void 0,
|
|
150
|
-
desktopCol: null,
|
|
151
|
-
gridColStart: null,
|
|
152
|
-
horizontalAlign: "left",
|
|
153
|
-
order: null,
|
|
154
|
-
phoneCol: null,
|
|
155
|
-
tabletCol: null,
|
|
156
|
-
verticalAlign: "top"
|
|
157
|
-
}, M = {
|
|
158
|
-
/**
|
|
159
|
-
* Content to be rendered inside the GridRow. Accepts any valid markup.
|
|
160
|
-
*
|
|
161
|
-
* Defaults to **null**.
|
|
162
|
-
*/
|
|
163
|
-
children: e.node.isRequired,
|
|
164
|
-
/**
|
|
165
|
-
* The css class name to be passed through to the component markup.
|
|
166
|
-
*
|
|
167
|
-
* Defaults to **undefined**.
|
|
168
|
-
*/
|
|
169
|
-
className: e.string
|
|
170
|
-
}, S = {
|
|
171
|
-
children: null,
|
|
172
|
-
className: void 0
|
|
173
|
-
}, w = /* @__PURE__ */ C((c, u) => {
|
|
174
|
-
const {
|
|
175
|
-
airy: t,
|
|
176
|
-
children: p,
|
|
177
|
-
className: a,
|
|
178
|
-
columnGap: r,
|
|
179
|
-
fullHeight: l,
|
|
180
|
-
fullWidth: n,
|
|
181
|
-
gridAlign: i,
|
|
182
|
-
rowGap: d,
|
|
183
|
-
style: o,
|
|
184
|
-
useMaxWidth: m,
|
|
185
|
-
variant: s,
|
|
186
|
-
...h
|
|
187
|
-
} = c, g = t ? "airy" : s, _ = f(() => ({
|
|
188
|
-
fullHeight: l,
|
|
189
|
-
rowGap: d,
|
|
190
|
-
columnGap: r
|
|
191
|
-
}), [r, l, d]), N = T();
|
|
192
|
-
R(u, () => N.current, []);
|
|
193
|
-
const A = f(() => G("lmnt", "mdc-layout-grid", "lmnt-layout-grid", `mdc-layout-grid mdc-layout-grid--align-${i}`, (g === "airy" || t) && "mdc-grid-cell-wrapper-airy-tablet mdc-grid-cell-wrapper-airy-desktop", s === "none" && "mdc-grid-cell-wrapper-none-tablet mdc-grid-cell-wrapper-none-desktop mdc-grid-cell-wrapper-none-phone ", n && "lmnt-layout-grid--full-width", l && "lmnt-layout-grid--full-height", m && "lmnt-layout-grid--with-max-width", a), [t, a, g, l, n, i, m, s]);
|
|
194
|
-
return /* @__PURE__ */ y.createElement(x.Provider, {
|
|
195
|
-
value: _
|
|
196
|
-
}, /* @__PURE__ */ y.createElement("div", b({
|
|
197
|
-
ref: N,
|
|
198
|
-
className: A
|
|
199
|
-
}, h), p));
|
|
200
|
-
});
|
|
201
|
-
w.displayName = "Grid";
|
|
202
|
-
w.propTypes = W;
|
|
203
|
-
w.defaultProps = H;
|
|
204
|
-
const P = /* @__PURE__ */ C((c, u) => {
|
|
205
|
-
const {
|
|
206
|
-
align: t,
|
|
207
|
-
children: p,
|
|
208
|
-
className: a,
|
|
209
|
-
columns: r,
|
|
210
|
-
desktopCol: l,
|
|
211
|
-
gridColStart: n,
|
|
212
|
-
horizontalAlign: i,
|
|
213
|
-
order: d,
|
|
214
|
-
phoneCol: o,
|
|
215
|
-
style: m,
|
|
216
|
-
tabletCol: s,
|
|
217
|
-
verticalAlign: h,
|
|
218
|
-
...g
|
|
219
|
-
} = c, _ = f(() => ({
|
|
220
|
-
...m,
|
|
221
|
-
gridColumnStart: n
|
|
222
|
-
}), [n, m]);
|
|
223
|
-
return /* @__PURE__ */ y.createElement("div", b({
|
|
224
|
-
ref: u,
|
|
225
|
-
style: _,
|
|
226
|
-
className: G("lmnt", `lmnt-layout-grid__cell--vertical-align-${h}`, `lmnt-layout-grid__cell--horizontal-align-${i}`, "mdc-layout-grid__cell", !r && !o && !s && !l && ["mdc-layout-grid__cell"], d && `mdc-layout-grid__cell--order-${d}`, t && `mdc-layout-grid__cell--align-${t}`, r && [`mdc-layout-grid__cell--span-${r}`], o && [`mdc-layout-grid__cell--span-${o}-phone`], s && [`mdc-layout-grid__cell--span-${s}-tablet`], l && [`mdc-layout-grid__cell--span-${l}-desktop`], "lmnt-layout-grid__cell", a)
|
|
227
|
-
}, g), p);
|
|
228
|
-
});
|
|
229
|
-
P.displayName = "GridCol";
|
|
230
|
-
P.propTypes = z;
|
|
231
|
-
P.defaultProps = E;
|
|
232
|
-
const v = /* @__PURE__ */ C((c, u) => {
|
|
233
|
-
const {
|
|
234
|
-
children: t,
|
|
235
|
-
className: p,
|
|
236
|
-
style: a,
|
|
237
|
-
...r
|
|
238
|
-
} = c, {
|
|
239
|
-
fullHeight: l,
|
|
240
|
-
rowGap: n,
|
|
241
|
-
columnGap: i
|
|
242
|
-
} = O(x), d = f(() => {
|
|
243
|
-
let o = {
|
|
244
|
-
rowGap: n,
|
|
245
|
-
columnGap: i
|
|
246
|
-
};
|
|
247
|
-
return l && (o = {
|
|
248
|
-
...o,
|
|
249
|
-
height: "100%"
|
|
250
|
-
}), {
|
|
251
|
-
...a,
|
|
252
|
-
...o
|
|
253
|
-
};
|
|
254
|
-
}, [a, l, n, i]);
|
|
255
|
-
return /* @__PURE__ */ y.createElement("div", b({
|
|
256
|
-
ref: u,
|
|
257
|
-
className: G("lmnt", "mdc-layout-grid__inner", "lmnt-layout-grid__inner", p),
|
|
258
|
-
style: d
|
|
259
|
-
}, r), t);
|
|
260
|
-
});
|
|
261
|
-
v.displayName = "GridRow";
|
|
262
|
-
v.propTypes = M;
|
|
263
|
-
v.defaultProps = S;
|
|
264
|
-
export {
|
|
265
|
-
w as G,
|
|
266
|
-
v as a,
|
|
267
|
-
P as b
|
|
268
|
-
};
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { _ as S, c as W, P as n } from "./index-D5m--65X.js";
|
|
2
|
-
import u, { forwardRef as D, useRef as on, useImperativeHandle as ln, useCallback as T } from "react";
|
|
3
|
-
import { R as an } from "./index.es-BbaCXS9-.js";
|
|
4
|
-
import { I as R } from "./index.es-8MVlRCi4.js";
|
|
5
|
-
import { a as E, d as r, b as rn } from "./index.es-ChSlnpSq.js";
|
|
6
|
-
const dn = {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated _Use `themeColor='secondary'` instead._
|
|
9
|
-
*
|
|
10
|
-
* Preview feature, this may change. Apply alternative button color scheme (defined by the individual theme).
|
|
11
|
-
*
|
|
12
|
-
* Defaults to **undefined**.
|
|
13
|
-
*/
|
|
14
|
-
altColor: r(n.bool, "Button", 'Use `themeColor="secondary"` instead.'),
|
|
15
|
-
/**
|
|
16
|
-
* One of 'xsmall', 'small', 'medium', 'large' and 'xlarge' will change the size of the button. Defaults according to your theme.
|
|
17
|
-
*
|
|
18
|
-
* Defaults to **'themeDefault'**.
|
|
19
|
-
*/
|
|
20
|
-
buttonSize: n.oneOf(["xsmall", "small", "medium", "large", "xlarge", "themeDefault"]),
|
|
21
|
-
/**
|
|
22
|
-
* 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._
|
|
23
|
-
*
|
|
24
|
-
* Defaults to **null**.
|
|
25
|
-
*/
|
|
26
|
-
children: n.node,
|
|
27
|
-
/**
|
|
28
|
-
* The css class name to be passed through to the component markup.
|
|
29
|
-
*
|
|
30
|
-
* Defaults to **undefined**.
|
|
31
|
-
*/
|
|
32
|
-
className: n.string,
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated _forwardRef has been implemented for Button._
|
|
35
|
-
*
|
|
36
|
-
* Reference to the DOM button. This enables a greater level of integration.
|
|
37
|
-
*
|
|
38
|
-
* Defaults to **undefined**.
|
|
39
|
-
*/
|
|
40
|
-
customRef: r(n.oneOfType([
|
|
41
|
-
n.func,
|
|
42
|
-
// eslint-disable-next-line react/forbid-prop-types
|
|
43
|
-
n.shape({
|
|
44
|
-
current: n.any
|
|
45
|
-
})
|
|
46
|
-
]), "Button", "forwardRef has been implemented for Button."),
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated _Use `variant='danger'` instead._
|
|
49
|
-
*
|
|
50
|
-
* Apply danger style to the button.
|
|
51
|
-
*
|
|
52
|
-
* Defaults to **undefined**.
|
|
53
|
-
*/
|
|
54
|
-
danger: r(n.bool, "Button", 'Use `variant="danger"` instead.'),
|
|
55
|
-
/**
|
|
56
|
-
* Prevent the user from interacting with the component.
|
|
57
|
-
*
|
|
58
|
-
* Defaults to **false**.
|
|
59
|
-
*/
|
|
60
|
-
disabled: n.bool,
|
|
61
|
-
/**
|
|
62
|
-
* Sets elevation of the button. Default will be the theme default.
|
|
63
|
-
*
|
|
64
|
-
* Defaults to **'default'**.
|
|
65
|
-
*/
|
|
66
|
-
elevation: n.oneOf(["default", "elevated", "flat"]),
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated _Use `variant='filled'` instead._
|
|
69
|
-
*
|
|
70
|
-
* Apply a filled-in style. Previously called `primary`.
|
|
71
|
-
*
|
|
72
|
-
* Defaults to **undefined**.
|
|
73
|
-
*/
|
|
74
|
-
filled: r(n.bool, "Button", 'Use `variant="filled"` instead.'),
|
|
75
|
-
/**
|
|
76
|
-
* Applies a full-width style where the textfield will fill it's container.
|
|
77
|
-
*
|
|
78
|
-
* Defaults to **false**.
|
|
79
|
-
*/
|
|
80
|
-
fullWidth: n.bool,
|
|
81
|
-
/**
|
|
82
|
-
* The button will render as an anchor tag. If the tag prop is set, that prop will take precedence.
|
|
83
|
-
*
|
|
84
|
-
* Defaults to **null**.
|
|
85
|
-
*/
|
|
86
|
-
href: n.string,
|
|
87
|
-
/**
|
|
88
|
-
* The displayed text. Expects a valid string. If label and children are both set, label will take priority.
|
|
89
|
-
*
|
|
90
|
-
* Defaults to **null**.
|
|
91
|
-
*/
|
|
92
|
-
label: n.string,
|
|
93
|
-
/**
|
|
94
|
-
* 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,
|
|
95
|
-
*
|
|
96
|
-
* Defaults to **undefined**.
|
|
97
|
-
*/
|
|
98
|
-
leadingIcon: n.oneOfType([n.string, n.func, n.node]),
|
|
99
|
-
/**
|
|
100
|
-
* The primary interaction event for button.
|
|
101
|
-
*
|
|
102
|
-
* Defaults to **null**.
|
|
103
|
-
*/
|
|
104
|
-
onClick: n.func,
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated _Use `variant='outlined'`._
|
|
107
|
-
*
|
|
108
|
-
* Apply outlined style to the button. Previously called `secondary`.
|
|
109
|
-
*
|
|
110
|
-
* Defaults to **undefined**.
|
|
111
|
-
*/
|
|
112
|
-
outlined: r(n.bool, "Button", 'Use `variant="outlined"`.'),
|
|
113
|
-
/**
|
|
114
|
-
* @deprecated _Use `variant='filled'` instead._
|
|
115
|
-
*
|
|
116
|
-
* Apply primary style to the Button.
|
|
117
|
-
*
|
|
118
|
-
* Defaults to **undefined**.
|
|
119
|
-
*/
|
|
120
|
-
primary: r(n.bool, "Button", 'Use `variant="filled"` instead.'),
|
|
121
|
-
/**
|
|
122
|
-
* @deprecated _Use `'variant=outlined'` instead._
|
|
123
|
-
*
|
|
124
|
-
* Apply secondary style to the Button.
|
|
125
|
-
*
|
|
126
|
-
* Defaults to **undefined**.
|
|
127
|
-
*/
|
|
128
|
-
secondary: r(n.bool, "Button", 'Use `"variant=outlined"` instead.'),
|
|
129
|
-
/**
|
|
130
|
-
* By default a button or anchor tag will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
|
|
131
|
-
*
|
|
132
|
-
* Defaults to **null**.
|
|
133
|
-
*/
|
|
134
|
-
tag: n.oneOfType([n.string, n.elementType, n.instanceOf(u.Component)]),
|
|
135
|
-
/**
|
|
136
|
-
* @deprecated _Use `variant='embedded'` instead._
|
|
137
|
-
*
|
|
138
|
-
* Apply tertiary style to the Button.
|
|
139
|
-
*
|
|
140
|
-
* Defaults to **undefined**.
|
|
141
|
-
*/
|
|
142
|
-
tertiary: r(n.bool, "Button", 'Use `variant="embedded"` instead.'),
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated _Use `variant='text'` instead._
|
|
145
|
-
*
|
|
146
|
-
* Apply unfilled, un-outlined style to the Button. Previously called `tertiary`.
|
|
147
|
-
*
|
|
148
|
-
* Defaults to **undefined**.
|
|
149
|
-
*/
|
|
150
|
-
text: r(n.bool, "Button", 'Use `variant="text"` instead.'),
|
|
151
|
-
/**
|
|
152
|
-
* Sets the theme color for the button. Most commonly used when the control is placed on a darker surface.
|
|
153
|
-
*
|
|
154
|
-
* Defaults to **'primary'**.
|
|
155
|
-
*/
|
|
156
|
-
themeColor: rn(n.oneOf(["primary", "secondary", "danger", "success", "on-unknown-black", "on-unknown-white", "on-primary", "on-secondary", "on-success", "on-danger"]), ["onUnknownBlack", "onUnknownWhite"], "Button", "Please use one of 'primary','secondary','danger','success','on-unknown-black','on-unknown-white','on-primary','on-secondary','on-success','on-danger'."),
|
|
157
|
-
/**
|
|
158
|
-
* 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.
|
|
159
|
-
*
|
|
160
|
-
* Defaults to **undefined**.
|
|
161
|
-
*/
|
|
162
|
-
trailingIcon: n.oneOfType([n.string, n.func, n.node]),
|
|
163
|
-
/**
|
|
164
|
-
* This applies the html button type (button, submit, reset) or the anchor media type when used with the href property.
|
|
165
|
-
*
|
|
166
|
-
* Defaults to **'button'**.
|
|
167
|
-
*/
|
|
168
|
-
type: n.oneOf(["button", "submit", "reset"]),
|
|
169
|
-
/**
|
|
170
|
-
* @deprecated _Use `elevation='flat' instead._
|
|
171
|
-
*
|
|
172
|
-
* Remove elevation.
|
|
173
|
-
*
|
|
174
|
-
* Defaults to **undefined**.
|
|
175
|
-
*/
|
|
176
|
-
unelevated: r(n.bool, "Button", 'Use `elevation="flat" instead.'),
|
|
177
|
-
/**
|
|
178
|
-
* Applies the selected style to the button. `rounded-small` and `rounded-micro` are only available on select themes.
|
|
179
|
-
*
|
|
180
|
-
* Defaults to **'filled'**.
|
|
181
|
-
*/
|
|
182
|
-
variant: n.oneOf(["filled", "outlined", "danger", "text", "success", "rounded-small", "rounded-micro"])
|
|
183
|
-
}, un = {
|
|
184
|
-
altColor: void 0,
|
|
185
|
-
buttonSize: "themeDefault",
|
|
186
|
-
children: null,
|
|
187
|
-
className: void 0,
|
|
188
|
-
customRef: void 0,
|
|
189
|
-
danger: void 0,
|
|
190
|
-
disabled: !1,
|
|
191
|
-
elevation: "default",
|
|
192
|
-
filled: void 0,
|
|
193
|
-
fullWidth: !1,
|
|
194
|
-
href: null,
|
|
195
|
-
label: null,
|
|
196
|
-
leadingIcon: void 0,
|
|
197
|
-
outlined: void 0,
|
|
198
|
-
primary: void 0,
|
|
199
|
-
secondary: void 0,
|
|
200
|
-
tag: null,
|
|
201
|
-
tertiary: void 0,
|
|
202
|
-
text: void 0,
|
|
203
|
-
themeColor: "primary",
|
|
204
|
-
trailingIcon: void 0,
|
|
205
|
-
type: "button",
|
|
206
|
-
unelevated: void 0,
|
|
207
|
-
variant: "filled"
|
|
208
|
-
}, sn = {
|
|
209
|
-
/**
|
|
210
|
-
* Children to be rendered. Expects multiple Element Buttons
|
|
211
|
-
*
|
|
212
|
-
* Defaults to **null**.
|
|
213
|
-
*/
|
|
214
|
-
children: n.node,
|
|
215
|
-
/**
|
|
216
|
-
* How much spacing between buttons. Dense is 8p, standard is 16px and airy is 24px.
|
|
217
|
-
*
|
|
218
|
-
* Defaults to **'standard'**.
|
|
219
|
-
*/
|
|
220
|
-
variant: n.oneOf(["dense", "standard", "airy"])
|
|
221
|
-
}, cn = {
|
|
222
|
-
children: null,
|
|
223
|
-
variant: "standard"
|
|
224
|
-
}, O = /* @__PURE__ */ D((_, h) => {
|
|
225
|
-
const {
|
|
226
|
-
altColor: k,
|
|
227
|
-
buttonSize: x,
|
|
228
|
-
children: p,
|
|
229
|
-
className: w,
|
|
230
|
-
customRef: G,
|
|
231
|
-
disabled: z,
|
|
232
|
-
elevation: N,
|
|
233
|
-
primary: F,
|
|
234
|
-
secondary: H,
|
|
235
|
-
tertiary: L,
|
|
236
|
-
text: $,
|
|
237
|
-
danger: j,
|
|
238
|
-
filled: q,
|
|
239
|
-
fullWidth: A,
|
|
240
|
-
href: P,
|
|
241
|
-
label: J,
|
|
242
|
-
leadingIcon: i,
|
|
243
|
-
onClick: K,
|
|
244
|
-
outlined: M,
|
|
245
|
-
tag: Q,
|
|
246
|
-
themeColor: e,
|
|
247
|
-
trailingIcon: c,
|
|
248
|
-
type: V,
|
|
249
|
-
unelevated: t,
|
|
250
|
-
variant: d,
|
|
251
|
-
...X
|
|
252
|
-
} = _, v = on(G || null);
|
|
253
|
-
ln(h, () => v.current, []);
|
|
254
|
-
const Y = J || p, Z = Q || (P ? "a" : "button"), l = d === "outlined" || M || H, U = d === "rounded-small" || d === "rounded-micro", a = d === "text" || $ || L, m = d === "danger" || j || e === "danger", b = d === "success" || e === "success", o = !l && !a && (d === "filled" || q || F), f = k || e === "secondary", s = e === "primary", nn = c && !i, y = e === "onUnknownBlack" || e === "on-unknown-black", g = e === "onUnknownWhite" || e === "on-unknown-white", B = e === "onPrimary" || e === "on-primary", I = e === "onSecondary" || e === "on-secondary", tn = T(() => typeof i == "string" ? /* @__PURE__ */ u.createElement(R, {
|
|
255
|
-
tabIndex: 0,
|
|
256
|
-
role: "button",
|
|
257
|
-
className: "mdc-button__icon lmnt-button__icon--leading",
|
|
258
|
-
icon: i
|
|
259
|
-
}) : typeof i == "function" ? i({
|
|
260
|
-
className: "mdc-button__icon lmnt-button__icon--leading"
|
|
261
|
-
}) : E(i, "mdc-button__icon lmnt-button__icon--leading"), [i]), en = T(() => typeof c == "string" ? /* @__PURE__ */ u.createElement(R, {
|
|
262
|
-
tabIndex: 0,
|
|
263
|
-
role: "button",
|
|
264
|
-
className: "mdc-button__icon lmnt-button__icon--trailing",
|
|
265
|
-
icon: c
|
|
266
|
-
}) : typeof c == "function" ? c({
|
|
267
|
-
className: "mdc-button__icon lmnt-button__icon--trailing"
|
|
268
|
-
}) : E(c, "mdc-button__icon lmnt-button__icon--trailing"), [c]);
|
|
269
|
-
return /* @__PURE__ */ u.createElement(an, {
|
|
270
|
-
componentRef: v
|
|
271
|
-
}, /* @__PURE__ */ u.createElement(Z, S({
|
|
272
|
-
ref: v,
|
|
273
|
-
href: P,
|
|
274
|
-
onClick: K,
|
|
275
|
-
type: V,
|
|
276
|
-
disabled: z,
|
|
277
|
-
className: W("lmnt", "mdc-button", "lmnt-button", "mdc-button--touch", o && t && s && "lmnt-button--filled-primary", o && m && "lmnt-button--filled-danger", o && b && "lmnt-button--filled-success", o && t && f && "lmnt-button--filled-secondary", o && !t && s && ["lmnt-button--filled-primary", "mdc-button--raised"], o && !t && f && ["lmnt-button--filled-secondary", "mdc-button--raised"], o && !t && e === "on-primary" && ["lmnt-button--filled-on-primary", "mdc-button--raised"], o && !t && e === "on-secondary" && ["lmnt-button--filled-on-secondary", "mdc-button--raised"], o && !t && e === "on-success" && ["lmnt-button--filled-on-success", "mdc-button--raised"], o && !t && e === "on-danger" && ["lmnt-button--filled-on-danger", "mdc-button--raised"], o && !t && y && ["lmnt-button--filled-on-unknown-black", "mdc-button--raised"], o && !t && g && ["lmnt-button--filled-on-unknown-white", "mdc-button--raised"], l && s && ["lmnt-button--outlined-primary", "mdc-button--outlined"], o && !t && B && ["lmnt-button--filled-on-primary", "mdc-button--raised"], l && f && ["lmnt-button--outlined-secondary", "mdc-button--outlined"], l && B && "lmnt-button--outlined-on-primary mdc-button--outlined", l && I && "lmnt-button--outlined-on-secondary mdc-button--outlined", l && g && "lmnt-button--outlined-on-unknown-white mdc-button--outlined", l && y && "lmnt-button--outlined-on-unknown-black mdc-button--outlined", a && B && "lmnt-button--text-on-primary mdc-button__text", a && I && "lmnt-button--text-on-secondary mdc-button__text", a && g && "lmnt-button--text-on-unknown-white mdc-button__text", a && y && "lmnt-button--text-on-unknown-black mdc-button__text", U && g && "lmnt-button--text-on-unknown-white mdc-button__text", U && y && "lmnt-button--text-on-unknown-black mdc-button__text", a && s && "lmnt-button--text-primary", a && f && "lmnt-button--text-secondary", a && m && "lmnt-button--text-danger", a && b && "lmnt-button--text-success", m && t && f && "lmnt-button--danger-secondary", m && !t && f && ["lmnt-button--danger-secondary", "mdc-button--raised"], m && t && s && "lmnt-button--danger-primary", m && !t && s && ["lmnt-button--danger-primary", "mdc-button--raised"], m && l && ["lmnt-button--danger-primary", "mdc-button--outlined"], b && t && s && "lmnt-button--success-primary", b && !t && s && ["lmnt-button--success-primary", "mdc-button--raised"], b && l && ["lmnt-button--success-primary", "mdc-button--outlined"], b && l && ["lmnt-button--success-primary", "mdc-button--outlined"], A && "lmnt-button--full-width", t && !a && "mdc-button--unelevated", N === "flat" && "lmnt-button--flat", N === "elevated" && "lmnt-button--elevated", `lmnt-button--${x}`, d === "rounded-small" && "lmnt-button--rounded lmnt-button--rounded-small mdc-button__text lmnt-button--text-primary", d === "rounded-micro" && "lmnt-button--rounded lmnt-button--rounded-micro mdc-button__text lmnt-button--text-primary", w, "mdc-touch-target-wrapper")
|
|
278
|
-
}, X), /* @__PURE__ */ u.createElement("span", {
|
|
279
|
-
className: "mdc-button__ripple"
|
|
280
|
-
}), i && tn(), /* @__PURE__ */ u.createElement("span", {
|
|
281
|
-
className: "mdc-button__label"
|
|
282
|
-
}, Y), nn && en(), /* @__PURE__ */ u.createElement("span", {
|
|
283
|
-
className: "mdc-button__touch"
|
|
284
|
-
})));
|
|
285
|
-
});
|
|
286
|
-
O.displayName = "Button";
|
|
287
|
-
O.propTypes = dn;
|
|
288
|
-
O.defaultProps = un;
|
|
289
|
-
const C = /* @__PURE__ */ D((_, h) => {
|
|
290
|
-
const {
|
|
291
|
-
children: k,
|
|
292
|
-
className: x,
|
|
293
|
-
variant: p,
|
|
294
|
-
...w
|
|
295
|
-
} = _;
|
|
296
|
-
return /* @__PURE__ */ u.createElement("div", S({
|
|
297
|
-
ref: h,
|
|
298
|
-
className: W("lmnt", "lmnt-button-group", p === "dense" && "lmnt-button-group--dense", p === "standard" && "lmnt-button-group--standard", p === "airy" && "lmnt-button-group--airy", x)
|
|
299
|
-
}, w), k);
|
|
300
|
-
});
|
|
301
|
-
C.displayName = "ButtonGroup";
|
|
302
|
-
C.propTypes = sn;
|
|
303
|
-
C.defaultProps = cn;
|
|
304
|
-
export {
|
|
305
|
-
O as B
|
|
306
|
-
};
|