@hortiview/shared-components 0.0.4539 → 0.0.4624
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/README.md +101 -29
- package/dist/BlockView.module-8kbPxxc4.js +15 -0
- package/dist/HashTabView.module-BY0tbl3B.js +13 -0
- package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
- package/dist/_getTag-DNUtgXkb.js +136 -0
- package/dist/_stringToPath-BfzwTbL6.js +54 -0
- package/dist/assets/{main.css → DeleteModal.css} +2 -2
- package/dist/assets/HeaderFilter.css +1 -0
- package/dist/assets/Scrollbar.css +1 -0
- package/dist/assets/disclaimer.css +1 -0
- package/dist/baseView.module-DXWalo9p.js +7 -0
- package/dist/basicHeading.module-ClcvD7x2.js +16 -0
- package/dist/{component-D1YrRAXe.js → component-Rx4bNsGO.js} +61 -54
- package/dist/components/BaseView/BaseView.d.ts +5 -1
- package/dist/components/BaseView/BaseView.js +75 -75
- package/dist/components/BaseView/BaseView.test.js +15 -14
- package/dist/components/BasicHeading/BasicHeading.d.ts +2 -5
- package/dist/components/BasicHeading/BasicHeading.js +38 -49
- package/dist/components/BasicHeading/BasicHeading.test.js +33 -333
- package/dist/components/BlockView/BlockView.js +41 -51
- package/dist/components/BlockView/BlockView.test.js +15 -14
- package/dist/components/DeleteModal/DeleteModal.d.ts +65 -0
- package/dist/components/DeleteModal/DeleteModal.js +4719 -0
- package/dist/components/DeleteModal/DeleteModal.test.d.ts +1 -0
- package/dist/components/DeleteModal/DeleteModal.test.js +85 -0
- package/dist/components/Disclaimer/Disclaimer.d.ts +33 -0
- package/dist/components/Disclaimer/Disclaimer.js +21 -0
- package/dist/components/Disclaimer/Disclaimer.test.d.ts +1 -0
- package/dist/components/Disclaimer/Disclaimer.test.js +13 -0
- package/dist/components/EmptyView/EmptyView.js +4 -4
- package/dist/components/EmptyView/EmptyView.test.js +14 -13
- package/dist/components/HashTabView/HashTabView.js +60 -68
- package/dist/components/HashTabView/HashTabView.test.js +9 -8
- package/dist/components/HeaderFilter/HeaderFilter.d.ts +33 -0
- package/dist/components/HeaderFilter/HeaderFilter.js +7605 -0
- package/dist/components/HeaderFilter/HeaderFilter.test.d.ts +1 -0
- package/dist/components/HeaderFilter/HeaderFilter.test.js +46 -0
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/Iconify/Iconify.test.js +8 -7
- package/dist/components/ListArea/ListArea.js +247 -5344
- package/dist/components/ListArea/ListArea.test.js +4 -3
- package/dist/components/ListArea/ListAreaService.js +56 -9
- package/dist/components/Scrollbar/Scrollbar.d.ts +2 -0
- package/dist/components/Scrollbar/Scrollbar.js +9 -0
- package/dist/components/Scrollbar/scrollbar.test.d.ts +1 -0
- package/dist/components/Scrollbar/scrollbar.test.js +15 -0
- package/dist/components/SearchBar/SearchBar.js +2051 -3
- package/dist/components/SearchBar/SearchBar.test.js +16 -15
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
- package/dist/components/VerticalDivider/VerticalDivider.test.js +8 -7
- package/dist/disclaimer.module-BZydt-Q_.js +8 -0
- package/dist/index.es-Ba9oZK_n.js +769 -0
- package/dist/{index.es-CUWXKh7P.js → index.es-C1ojb4Lq.js} +8 -8
- package/dist/{index.es-DYsXox--.js → index.es-CNBieliG.js} +1 -1
- package/dist/index.es-CQ3ep412.js +305 -0
- package/dist/{index.es-mBp_Btvi.js → index.es-CVCp4d0C.js} +2 -2
- package/dist/{index.es-WZ1mqvGz.js → index.es-Cct4Uapb.js} +106 -99
- package/dist/index.es-Cj9DW-2T.js +430 -0
- package/dist/{index.es-BD4kFWFx.js → index.es-Cm4X20_S.js} +4 -4
- package/dist/{index.es-Cv6meSAn.js → index.es-InSNsV4f.js} +1 -1
- package/dist/index.es-L0ZCcbUf.js +4939 -0
- package/dist/listArea.module-B04TR5bj.js +14 -0
- package/dist/main.d.ts +6 -0
- package/dist/main.js +33 -23
- package/dist/react.esm-BeDwcQWb.js +12741 -0
- package/dist/searchBar.module-9gKyrZRT.js +7 -0
- package/dist/services/UtilService.d.ts +6 -0
- package/dist/services/UtilService.js +4 -0
- package/dist/services/services.test.d.ts +1 -0
- package/dist/services/services.test.js +22 -0
- package/dist/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
- package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
- package/dist/vi.JYQecGiw-BbUbJcT8.js +9795 -0
- package/package.json +1 -1
- package/dist/ListAreaService-CFOmATRF.js +0 -68
- package/dist/SearchBar-CY2zfu6B.js +0 -3232
- package/dist/vi.JYQecGiw-8gz0k16C.js +0 -22532
- /package/dist/assets/{BaseView.css → baseView.css} +0 -0
- /package/dist/assets/{BasicHeading.css → basicHeading.css} +0 -0
- /package/dist/assets/{ListAreaService.css → listArea.css} +0 -0
- /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
- /package/dist/assets/{VerticalDivider.css → verticalDivider.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as e, c as N,
|
|
1
|
+
import { P as e, c as N, e as O, _ } from "./index.es-Cct4Uapb.js";
|
|
2
2
|
import n, { forwardRef as h, useRef as x, useImperativeHandle as R, useMemo as o } from "react";
|
|
3
3
|
const W = {
|
|
4
4
|
/**
|
|
@@ -65,14 +65,14 @@ const W = {
|
|
|
65
65
|
rounded: !1,
|
|
66
66
|
tag: "div",
|
|
67
67
|
transition: null
|
|
68
|
-
},
|
|
68
|
+
}, a = /* @__PURE__ */ h((y, P) => {
|
|
69
69
|
const {
|
|
70
70
|
children: l,
|
|
71
71
|
className: d,
|
|
72
72
|
customPadding: s,
|
|
73
73
|
elevation: i,
|
|
74
74
|
noWrap: E,
|
|
75
|
-
padding:
|
|
75
|
+
padding: t,
|
|
76
76
|
rounded: r,
|
|
77
77
|
tag: m,
|
|
78
78
|
outlined: p,
|
|
@@ -81,7 +81,7 @@ const W = {
|
|
|
81
81
|
...v
|
|
82
82
|
} = y, f = x();
|
|
83
83
|
R(P, () => f.current, []);
|
|
84
|
-
const g = o(() => N("lmnt", `mdc-elevation--z${i}`,
|
|
84
|
+
const g = o(() => N("lmnt", `mdc-elevation--z${i}`, t === "standard" && "lmnt-elevation--padding-standard", t === "dense" && "lmnt-elevation--padding-dense", t === "airy" && "lmnt-elevation--padding-airy", u && "mdc-elevation-transition", r && "lmnt-elevation--rounded", p && "lmnt-elevation--outlined", d), [i, t, u, r, p, d]), T = o(() => ({
|
|
85
85
|
...c,
|
|
86
86
|
padding: s
|
|
87
87
|
}), [c, s]), b = o(() => m, [m]);
|
|
@@ -97,10 +97,10 @@ const W = {
|
|
|
97
97
|
}, v), l))
|
|
98
98
|
);
|
|
99
99
|
});
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
var C = /* @__PURE__ */ n.memo(
|
|
100
|
+
a.displayName = "Elevation";
|
|
101
|
+
a.propTypes = W;
|
|
102
|
+
a.defaultProps = $;
|
|
103
|
+
var C = /* @__PURE__ */ n.memo(a);
|
|
104
104
|
export {
|
|
105
105
|
C as E
|
|
106
106
|
};
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { d as r, P as n, a as on, b as T, _ as S, c as W } from "./index.es-Cct4Uapb.js";
|
|
2
|
+
import i, { forwardRef as D, useRef as ln, useImperativeHandle as an, useCallback as R } from "react";
|
|
3
|
+
import { R as dn } from "./index.es-CVCp4d0C.js";
|
|
4
|
+
import { I as E } from "./index.es-InSNsV4f.js";
|
|
5
|
+
const rn = {
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated _Use `themeColor='secondary'` instead._
|
|
8
|
+
*
|
|
9
|
+
* Preview feature, this may change. Apply alternative button color scheme (defined by the individual theme).
|
|
10
|
+
*
|
|
11
|
+
* Defaults to **undefined**.
|
|
12
|
+
*/
|
|
13
|
+
altColor: r(n.bool, "Button", 'Use `themeColor="secondary"` instead.'),
|
|
14
|
+
/**
|
|
15
|
+
* One of 'xsmall', 'small', 'medium', 'large' and 'xlarge' will change the size of the button. Defaults according to your theme.
|
|
16
|
+
*
|
|
17
|
+
* Defaults to **'themeDefault'**.
|
|
18
|
+
*/
|
|
19
|
+
buttonSize: n.oneOf(["xsmall", "small", "medium", "large", "xlarge", "themeDefault"]),
|
|
20
|
+
/**
|
|
21
|
+
* 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._
|
|
22
|
+
*
|
|
23
|
+
* Defaults to **null**.
|
|
24
|
+
*/
|
|
25
|
+
children: n.node,
|
|
26
|
+
/**
|
|
27
|
+
* The css class name to be passed through to the component markup.
|
|
28
|
+
*
|
|
29
|
+
* Defaults to **undefined**.
|
|
30
|
+
*/
|
|
31
|
+
className: n.string,
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated _forwardRef has been implemented for Button._
|
|
34
|
+
*
|
|
35
|
+
* Reference to the DOM button. This enables a greater level of integration.
|
|
36
|
+
*
|
|
37
|
+
* Defaults to **undefined**.
|
|
38
|
+
*/
|
|
39
|
+
customRef: r(n.oneOfType([
|
|
40
|
+
n.func,
|
|
41
|
+
// eslint-disable-next-line react/forbid-prop-types
|
|
42
|
+
n.shape({
|
|
43
|
+
current: n.any
|
|
44
|
+
})
|
|
45
|
+
]), "Button", "forwardRef has been implemented for Button."),
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated _Use `variant='danger'` instead._
|
|
48
|
+
*
|
|
49
|
+
* Apply danger style to the button.
|
|
50
|
+
*
|
|
51
|
+
* Defaults to **undefined**.
|
|
52
|
+
*/
|
|
53
|
+
danger: r(n.bool, "Button", 'Use `variant="danger"` instead.'),
|
|
54
|
+
/**
|
|
55
|
+
* Prevent the user from interacting with the component.
|
|
56
|
+
*
|
|
57
|
+
* Defaults to **false**.
|
|
58
|
+
*/
|
|
59
|
+
disabled: n.bool,
|
|
60
|
+
/**
|
|
61
|
+
* Sets elevation of the button. Default will be the theme default.
|
|
62
|
+
*
|
|
63
|
+
* Defaults to **'default'**.
|
|
64
|
+
*/
|
|
65
|
+
elevation: n.oneOf(["default", "elevated", "flat"]),
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated _Use `variant='filled'` instead._
|
|
68
|
+
*
|
|
69
|
+
* Apply a filled-in style. Previously called `primary`.
|
|
70
|
+
*
|
|
71
|
+
* Defaults to **undefined**.
|
|
72
|
+
*/
|
|
73
|
+
filled: r(n.bool, "Button", 'Use `variant="filled"` instead.'),
|
|
74
|
+
/**
|
|
75
|
+
* Applies a full-width style where the textfield will fill it's container.
|
|
76
|
+
*
|
|
77
|
+
* Defaults to **false**.
|
|
78
|
+
*/
|
|
79
|
+
fullWidth: n.bool,
|
|
80
|
+
/**
|
|
81
|
+
* The button will render as an anchor tag. If the tag prop is set, that prop will take precedence.
|
|
82
|
+
*
|
|
83
|
+
* Defaults to **null**.
|
|
84
|
+
*/
|
|
85
|
+
href: n.string,
|
|
86
|
+
/**
|
|
87
|
+
* The displayed text. Expects a valid string. If label and children are both set, label will take priority.
|
|
88
|
+
*
|
|
89
|
+
* Defaults to **null**.
|
|
90
|
+
*/
|
|
91
|
+
label: n.string,
|
|
92
|
+
/**
|
|
93
|
+
* 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,
|
|
94
|
+
*
|
|
95
|
+
* Defaults to **undefined**.
|
|
96
|
+
*/
|
|
97
|
+
leadingIcon: n.oneOfType([n.string, n.func, n.node]),
|
|
98
|
+
/**
|
|
99
|
+
* The primary interaction event for button.
|
|
100
|
+
*
|
|
101
|
+
* Defaults to **null**.
|
|
102
|
+
*/
|
|
103
|
+
onClick: n.func,
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated _Use `variant='outlined'`._
|
|
106
|
+
*
|
|
107
|
+
* Apply outlined style to the button. Previously called `secondary`.
|
|
108
|
+
*
|
|
109
|
+
* Defaults to **undefined**.
|
|
110
|
+
*/
|
|
111
|
+
outlined: r(n.bool, "Button", 'Use `variant="outlined"`.'),
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated _Use `variant='filled'` instead._
|
|
114
|
+
*
|
|
115
|
+
* Apply primary style to the Button.
|
|
116
|
+
*
|
|
117
|
+
* Defaults to **undefined**.
|
|
118
|
+
*/
|
|
119
|
+
primary: r(n.bool, "Button", 'Use `variant="filled"` instead.'),
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated _Use `'variant=outlined'` instead._
|
|
122
|
+
*
|
|
123
|
+
* Apply secondary style to the Button.
|
|
124
|
+
*
|
|
125
|
+
* Defaults to **undefined**.
|
|
126
|
+
*/
|
|
127
|
+
secondary: r(n.bool, "Button", 'Use `"variant=outlined"` instead.'),
|
|
128
|
+
/**
|
|
129
|
+
* 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.
|
|
130
|
+
*
|
|
131
|
+
* Defaults to **null**.
|
|
132
|
+
*/
|
|
133
|
+
tag: n.oneOfType([n.string, n.elementType, n.instanceOf(i.Component)]),
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated _Use `variant='embedded'` instead._
|
|
136
|
+
*
|
|
137
|
+
* Apply tertiary style to the Button.
|
|
138
|
+
*
|
|
139
|
+
* Defaults to **undefined**.
|
|
140
|
+
*/
|
|
141
|
+
tertiary: r(n.bool, "Button", 'Use `variant="embedded"` instead.'),
|
|
142
|
+
/**
|
|
143
|
+
* @deprecated _Use `variant='text'` instead._
|
|
144
|
+
*
|
|
145
|
+
* Apply unfilled, un-outlined style to the Button. Previously called `tertiary`.
|
|
146
|
+
*
|
|
147
|
+
* Defaults to **undefined**.
|
|
148
|
+
*/
|
|
149
|
+
text: r(n.bool, "Button", 'Use `variant="text"` instead.'),
|
|
150
|
+
/**
|
|
151
|
+
* Sets the theme color for the button. Most commonly used when the control is placed on a darker surface.
|
|
152
|
+
*
|
|
153
|
+
* Defaults to **'primary'**.
|
|
154
|
+
*/
|
|
155
|
+
themeColor: on(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'."),
|
|
156
|
+
/**
|
|
157
|
+
* 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.
|
|
158
|
+
*
|
|
159
|
+
* Defaults to **undefined**.
|
|
160
|
+
*/
|
|
161
|
+
trailingIcon: n.oneOfType([n.string, n.func, n.node]),
|
|
162
|
+
/**
|
|
163
|
+
* This applies the html button type (button, submit, reset) or the anchor media type when used with the href property.
|
|
164
|
+
*
|
|
165
|
+
* Defaults to **'button'**.
|
|
166
|
+
*/
|
|
167
|
+
type: n.oneOf(["button", "submit", "reset"]),
|
|
168
|
+
/**
|
|
169
|
+
* @deprecated _Use `elevation='flat' instead._
|
|
170
|
+
*
|
|
171
|
+
* Remove elevation.
|
|
172
|
+
*
|
|
173
|
+
* Defaults to **undefined**.
|
|
174
|
+
*/
|
|
175
|
+
unelevated: r(n.bool, "Button", 'Use `elevation="flat" instead.'),
|
|
176
|
+
/**
|
|
177
|
+
* Applies the selected style to the button. `rounded-small` and `rounded-micro` are only available on select themes.
|
|
178
|
+
*
|
|
179
|
+
* Defaults to **'filled'**.
|
|
180
|
+
*/
|
|
181
|
+
variant: n.oneOf(["filled", "outlined", "danger", "text", "success", "rounded-small", "rounded-micro"])
|
|
182
|
+
}, un = {
|
|
183
|
+
altColor: void 0,
|
|
184
|
+
buttonSize: "themeDefault",
|
|
185
|
+
children: null,
|
|
186
|
+
className: void 0,
|
|
187
|
+
customRef: void 0,
|
|
188
|
+
danger: void 0,
|
|
189
|
+
disabled: !1,
|
|
190
|
+
elevation: "default",
|
|
191
|
+
filled: void 0,
|
|
192
|
+
fullWidth: !1,
|
|
193
|
+
href: null,
|
|
194
|
+
label: null,
|
|
195
|
+
leadingIcon: void 0,
|
|
196
|
+
outlined: void 0,
|
|
197
|
+
primary: void 0,
|
|
198
|
+
secondary: void 0,
|
|
199
|
+
tag: null,
|
|
200
|
+
tertiary: void 0,
|
|
201
|
+
text: void 0,
|
|
202
|
+
themeColor: "primary",
|
|
203
|
+
trailingIcon: void 0,
|
|
204
|
+
type: "button",
|
|
205
|
+
unelevated: void 0,
|
|
206
|
+
variant: "filled"
|
|
207
|
+
}, sn = {
|
|
208
|
+
/**
|
|
209
|
+
* Children to be rendered. Expects multiple Element Buttons
|
|
210
|
+
*
|
|
211
|
+
* Defaults to **null**.
|
|
212
|
+
*/
|
|
213
|
+
children: n.node,
|
|
214
|
+
/**
|
|
215
|
+
* How much spacing between buttons. Dense is 8p, standard is 16px and airy is 24px.
|
|
216
|
+
*
|
|
217
|
+
* Defaults to **'standard'**.
|
|
218
|
+
*/
|
|
219
|
+
variant: n.oneOf(["dense", "standard", "airy"])
|
|
220
|
+
}, cn = {
|
|
221
|
+
children: null,
|
|
222
|
+
variant: "standard"
|
|
223
|
+
}, O = /* @__PURE__ */ D((_, h) => {
|
|
224
|
+
const {
|
|
225
|
+
altColor: k,
|
|
226
|
+
buttonSize: x,
|
|
227
|
+
children: p,
|
|
228
|
+
className: w,
|
|
229
|
+
customRef: G,
|
|
230
|
+
disabled: z,
|
|
231
|
+
elevation: N,
|
|
232
|
+
primary: F,
|
|
233
|
+
secondary: H,
|
|
234
|
+
tertiary: L,
|
|
235
|
+
text: $,
|
|
236
|
+
danger: j,
|
|
237
|
+
filled: q,
|
|
238
|
+
fullWidth: A,
|
|
239
|
+
href: P,
|
|
240
|
+
label: J,
|
|
241
|
+
leadingIcon: l,
|
|
242
|
+
onClick: K,
|
|
243
|
+
outlined: M,
|
|
244
|
+
tag: Q,
|
|
245
|
+
themeColor: e,
|
|
246
|
+
trailingIcon: m,
|
|
247
|
+
type: V,
|
|
248
|
+
unelevated: t,
|
|
249
|
+
variant: u,
|
|
250
|
+
...X
|
|
251
|
+
} = _, v = ln(G || null);
|
|
252
|
+
an(h, () => v.current, []);
|
|
253
|
+
const Y = J || p, Z = Q || (P ? "a" : "button"), a = u === "outlined" || M || H, U = u === "rounded-small" || u === "rounded-micro", d = u === "text" || $ || L, c = u === "danger" || j || e === "danger", b = u === "success" || e === "success", o = !a && !d && (u === "filled" || q || F), f = k || e === "secondary", s = e === "primary", nn = m && !l, 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 = R(() => typeof l == "string" ? /* @__PURE__ */ i.createElement(E, {
|
|
254
|
+
tabIndex: 0,
|
|
255
|
+
role: "button",
|
|
256
|
+
className: "mdc-button__icon lmnt-button__icon--leading",
|
|
257
|
+
icon: l
|
|
258
|
+
}) : typeof l == "function" ? l({
|
|
259
|
+
className: "mdc-button__icon lmnt-button__icon--leading"
|
|
260
|
+
}) : T(l, "mdc-button__icon lmnt-button__icon--leading"), [l]), en = R(() => typeof m == "string" ? /* @__PURE__ */ i.createElement(E, {
|
|
261
|
+
tabIndex: 0,
|
|
262
|
+
role: "button",
|
|
263
|
+
className: "mdc-button__icon lmnt-button__icon--trailing",
|
|
264
|
+
icon: m
|
|
265
|
+
}) : typeof l == "function" ? m({
|
|
266
|
+
className: "mdc-button__icon lmnt-button__icon--trailing"
|
|
267
|
+
}) : T(m, "mdc-button__icon lmnt-button__icon--trailing"), [l, m]);
|
|
268
|
+
return /* @__PURE__ */ i.createElement(dn, {
|
|
269
|
+
componentRef: v
|
|
270
|
+
}, /* @__PURE__ */ i.createElement(Z, S({
|
|
271
|
+
ref: v,
|
|
272
|
+
href: P,
|
|
273
|
+
onClick: K,
|
|
274
|
+
type: V,
|
|
275
|
+
disabled: z,
|
|
276
|
+
className: W("lmnt", "mdc-button", "lmnt-button", o && t && s && "lmnt-button--filled-primary", o && c && "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"], a && s && ["lmnt-button--outlined-primary", "mdc-button--outlined"], o && !t && B && ["lmnt-button--filled-on-primary", "mdc-button--raised"], a && f && ["lmnt-button--outlined-secondary", "mdc-button--outlined"], a && B && "lmnt-button--outlined-on-primary mdc-button--outlined", a && I && "lmnt-button--outlined-on-secondary mdc-button--outlined", a && g && "lmnt-button--outlined-on-unknown-white mdc-button--outlined", a && y && "lmnt-button--outlined-on-unknown-black mdc-button--outlined", d && B && "lmnt-button--text-on-primary mdc-button__text", d && I && "lmnt-button--text-on-secondary mdc-button__text", d && g && "lmnt-button--text-on-unknown-white mdc-button__text", d && 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", d && s && "lmnt-button--text-primary", d && f && "lmnt-button--text-secondary", d && c && "lmnt-button--text-danger", d && b && "lmnt-button--text-success", c && t && f && "lmnt-button--danger-secondary", c && !t && f && ["lmnt-button--danger-secondary", "mdc-button--raised"], c && t && s && "lmnt-button--danger-primary", c && !t && s && ["lmnt-button--danger-primary", "mdc-button--raised"], c && a && ["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 && a && ["lmnt-button--success-primary", "mdc-button--outlined"], b && a && ["lmnt-button--success-primary", "mdc-button--outlined"], A && "lmnt-button--full-width", t && !d && "mdc-button--unelevated", N === "flat" && "lmnt-button--flat", N === "elevated" && "lmnt-button--elevated", `lmnt-button--${x}`, u === "rounded-small" && "lmnt-button--rounded lmnt-button--rounded-small mdc-button__text lmnt-button--text-primary", u === "rounded-micro" && "lmnt-button--rounded lmnt-button--rounded-micro mdc-button__text lmnt-button--text-primary", w, "mdc-touch-target-wrapper")
|
|
277
|
+
}, X), /* @__PURE__ */ i.createElement("span", {
|
|
278
|
+
className: "mdc-button__ripple"
|
|
279
|
+
}), l && tn(), /* @__PURE__ */ i.createElement("span", {
|
|
280
|
+
className: "mdc-button__label"
|
|
281
|
+
}, Y), nn && en(), /* @__PURE__ */ i.createElement("span", {
|
|
282
|
+
className: "mdc-button__touch"
|
|
283
|
+
})));
|
|
284
|
+
});
|
|
285
|
+
O.displayName = "Button";
|
|
286
|
+
O.propTypes = rn;
|
|
287
|
+
O.defaultProps = un;
|
|
288
|
+
const C = /* @__PURE__ */ D((_, h) => {
|
|
289
|
+
const {
|
|
290
|
+
children: k,
|
|
291
|
+
className: x,
|
|
292
|
+
variant: p,
|
|
293
|
+
...w
|
|
294
|
+
} = _;
|
|
295
|
+
return /* @__PURE__ */ i.createElement("div", S({
|
|
296
|
+
ref: h,
|
|
297
|
+
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)
|
|
298
|
+
}, w), k);
|
|
299
|
+
});
|
|
300
|
+
C.displayName = "ButtonGroup";
|
|
301
|
+
C.propTypes = sn;
|
|
302
|
+
C.defaultProps = cn;
|
|
303
|
+
export {
|
|
304
|
+
O as B
|
|
305
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef as f, useRef as i, useImperativeHandle as s, useEffect as l } from "react";
|
|
2
|
-
import { P as r } from "./index.es-
|
|
3
|
-
import { M as R } from "./component-
|
|
2
|
+
import { P as r } from "./index.es-Cct4Uapb.js";
|
|
3
|
+
import { M as R } from "./component-Rx4bNsGO.js";
|
|
4
4
|
const a = {
|
|
5
5
|
/**
|
|
6
6
|
* Content to be rendered inside the component.
|