@hortiview/shared-components 0.0.4722 → 0.0.4724

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/_getTag-DyrzUAbj.js +494 -0
  2. package/dist/assets/DeleteModal.css +1 -1
  3. package/dist/components/BaseView/BaseView.js +43 -297
  4. package/dist/components/BasicHeading/BasicHeading.js +24 -25
  5. package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
  6. package/dist/components/BlockView/BlockView.js +14 -14
  7. package/dist/components/DeleteModal/DeleteModal.js +49 -4687
  8. package/dist/components/Disclaimer/Disclaimer.js +8 -10
  9. package/dist/components/EmptyView/EmptyView.js +8 -247
  10. package/dist/components/HashTabView/HashTabView.js +52 -1838
  11. package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
  12. package/dist/components/Iconify/Iconify.js +1 -1
  13. package/dist/components/ListArea/ListArea.js +316 -261
  14. package/dist/components/ListArea/ListArea.test.js +1 -1
  15. package/dist/components/ListArea/ListAreaService.js +34 -35
  16. package/dist/components/SearchBar/SearchBar.js +21 -2043
  17. package/dist/main.d.ts +1 -0
  18. package/package.json +1 -1
  19. package/dist/_getTag-DNUtgXkb.js +0 -136
  20. package/dist/_stringToPath-BfzwTbL6.js +0 -54
  21. package/dist/component-Rx4bNsGO.js +0 -680
  22. package/dist/index.es-Ba9oZK_n.js +0 -769
  23. package/dist/index.es-C1ojb4Lq.js +0 -106
  24. package/dist/index.es-CNBieliG.js +0 -151
  25. package/dist/index.es-CQ3ep412.js +0 -305
  26. package/dist/index.es-CVCp4d0C.js +0 -45
  27. package/dist/index.es-Cct4Uapb.js +0 -1776
  28. package/dist/index.es-Cj9DW-2T.js +0 -430
  29. package/dist/index.es-Cm4X20_S.js +0 -673
  30. package/dist/index.es-InSNsV4f.js +0 -1067
  31. package/dist/index.es-L0ZCcbUf.js +0 -4939
  32. package/dist/tslib.es6-CIXEwqhg.js +0 -72
@@ -1,106 +0,0 @@
1
- import { P as e, c as N, e as O, _ } from "./index.es-Cct4Uapb.js";
2
- import n, { forwardRef as h, useRef as x, useImperativeHandle as R, useMemo as o } from "react";
3
- const W = {
4
- /**
5
- * Content to be rendered inside the elevation.
6
- *
7
- * Defaults to **null**.
8
- */
9
- children: e.node,
10
- /**
11
- * Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
12
- *
13
- * Defaults to **null**.
14
- */
15
- customPadding: e.string,
16
- /**
17
- * Sets the distance of the elevation. Value must be between 0-24.
18
- *
19
- * Defaults to **0**.
20
- */
21
- elevation: e.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]),
22
- /**
23
- * Avoids adding an extra element to the DOM and applies proper classes directly to the child element.
24
- *
25
- * Defaults to **null**.
26
- */
27
- noWrap: e.bool,
28
- /**
29
- * The elevation element will have a visible border.
30
- *
31
- * Defaults to **false**.
32
- */
33
- outlined: e.bool,
34
- /**
35
- * Adds a universal padding around the child content. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
36
- *
37
- * Defaults to **undefined**.
38
- */
39
- padding: e.oneOf(["standard", "dense", "airy"]),
40
- /**
41
- * The elevation element will have a border radius of 8px.
42
- *
43
- * Defaults to **false**.
44
- */
45
- rounded: e.bool,
46
- /**
47
- * HTML tag to render the contents in.
48
- *
49
- * Defaults to **'div'**.
50
- */
51
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(n.Component)]),
52
- /**
53
- * Adds animation when elevation is changed.
54
- *
55
- * Defaults to **null**.
56
- */
57
- transition: e.bool
58
- }, $ = {
59
- children: null,
60
- customPadding: null,
61
- elevation: 0,
62
- noWrap: null,
63
- outlined: !1,
64
- padding: void 0,
65
- rounded: !1,
66
- tag: "div",
67
- transition: null
68
- }, a = /* @__PURE__ */ h((y, P) => {
69
- const {
70
- children: l,
71
- className: d,
72
- customPadding: s,
73
- elevation: i,
74
- noWrap: E,
75
- padding: t,
76
- rounded: r,
77
- tag: m,
78
- outlined: p,
79
- style: c,
80
- transition: u,
81
- ...v
82
- } = y, f = x();
83
- R(P, () => f.current, []);
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
- ...c,
86
- padding: s
87
- }), [c, s]), b = o(() => m, [m]);
88
- return (
89
- // eslint-disable-next-line react/jsx-no-useless-fragment
90
- /* @__PURE__ */ n.createElement(n.Fragment, null, E ? O(l, {
91
- className: g,
92
- ...v
93
- }) : /* @__PURE__ */ n.createElement(b, _({
94
- ref: f,
95
- className: g,
96
- style: T
97
- }, v), l))
98
- );
99
- });
100
- a.displayName = "Elevation";
101
- a.propTypes = W;
102
- a.defaultProps = $;
103
- var C = /* @__PURE__ */ n.memo(a);
104
- export {
105
- C as E
106
- };
@@ -1,151 +0,0 @@
1
- import { P as r, d as m, _ as h, c as v } from "./index.es-Cct4Uapb.js";
2
- import x, { forwardRef as w, useRef as A, useImperativeHandle as P } from "react";
3
- const b = {
4
- /**
5
- * Children to be rendered. Expects multiple components of a similar type.
6
- *
7
- * Defaults to **null**.
8
- */
9
- children: r.node,
10
- /**
11
- * The grouping direction.
12
- *
13
- * Defaults to **'horizontal'**.
14
- */
15
- direction: r.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
16
- /**
17
- * Sets the Group width to be 100%.
18
- *
19
- * Defaults to **false**.
20
- */
21
- fullWidth: r.bool,
22
- /**
23
- * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
24
- *
25
- * Defaults to **'standard'**.
26
- */
27
- gap: r.oneOf(["dense", "standard", "airy", "none"]),
28
- /**
29
- * @deprecated _Renamed for improved clarity. See `gap`._
30
- *
31
- * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
32
- *
33
- * Defaults to **undefined**.
34
- */
35
- padding: m(r.oneOf(["dense", "standard", "airy", "none"]), "Group", "Renamed for improved clarity. See `gap`."),
36
- /**
37
- * Alignment along the primary axis. 'For `horizontal` grouping this means the x-axis positioning, for `vertical`, this means the y-axis positioning.Equivalent to flexbox 'justify-content.
38
- *
39
- * Defaults to **'start'**.
40
- */
41
- primaryAlign: r.oneOf(["start", "end", "center", "space-evenly", "space-between", "space-around"]),
42
- /**
43
- * Alignment along the secondary axis. For horizontal grouping this means the y-axis positioning, for vertical, this means the x-axis positioning.Equivalent to flexbox 'align-items.
44
- *
45
- * Defaults to **'baseline'**.
46
- */
47
- secondaryAlign: r.oneOf(["start", "end", "center", "stretch", "baseline"])
48
- }, G = {
49
- children: null,
50
- direction: "horizontal",
51
- fullWidth: !1,
52
- gap: "standard",
53
- padding: void 0,
54
- primaryAlign: "start",
55
- secondaryAlign: "baseline"
56
- }, z = (e) => {
57
- switch (e) {
58
- case "end":
59
- return "flex-end";
60
- case "start":
61
- return "flex-start";
62
- case "center":
63
- return "center";
64
- case "stretch":
65
- return "stretch";
66
- case "baseline":
67
- default:
68
- return "baseline";
69
- }
70
- }, O = (e) => {
71
- switch (e) {
72
- case "end":
73
- return "flex-end";
74
- case "center":
75
- return "center";
76
- case "space-evenly":
77
- return "space-evenly";
78
- case "space-between":
79
- return "space-between";
80
- case "space-around":
81
- return "space-around";
82
- case "start":
83
- default:
84
- return "flex-start";
85
- }
86
- }, R = (e) => {
87
- switch (e) {
88
- case "dense":
89
- return "8px";
90
- case "airy":
91
- return "24px";
92
- case "standard":
93
- return "16px";
94
- case "none":
95
- default:
96
- return "0px";
97
- }
98
- }, _ = (e) => {
99
- switch (e) {
100
- case "horizontal":
101
- return "row";
102
- case "vertical":
103
- return "column";
104
- case "horizontal-reverse":
105
- return "row-reverse";
106
- case "vertical-reverse":
107
- return "column-reverse";
108
- default:
109
- return "row";
110
- }
111
- }, n = /* @__PURE__ */ w((e, a) => {
112
- const {
113
- children: s,
114
- className: c,
115
- direction: o,
116
- fullWidth: l,
117
- gap: i,
118
- padding: d,
119
- primaryAlign: u,
120
- secondaryAlign: p,
121
- style: f,
122
- variant: D,
123
- ...y
124
- } = e, g = {
125
- display: "flex",
126
- flexDirection: _(o),
127
- justifyContent: O(u),
128
- alignItems: z(p),
129
- gap: R(d || i),
130
- width: l ? "100%" : "",
131
- ...f
132
- }, t = A();
133
- return P(a, () => t.current, []), /* @__PURE__ */ x.createElement("div", h({
134
- ref: t,
135
- className: v(
136
- "lmnt",
137
- "lmnt-group",
138
- // variant === 'dense' && 'lmnt-button-group--dense',
139
- // variant === 'standard' && 'lmnt-button-group--standard',
140
- // variant === 'airy' && 'lmnt-button-group--airy',
141
- c
142
- ),
143
- style: g
144
- }, y), s);
145
- });
146
- n.displayName = "Group";
147
- n.propTypes = b;
148
- n.defaultProps = G;
149
- export {
150
- n as G
151
- };
@@ -1,305 +0,0 @@
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,45 +0,0 @@
1
- import { forwardRef as f, useRef as i, useImperativeHandle as s, useEffect as l } from "react";
2
- import { P as r } from "./index.es-Cct4Uapb.js";
3
- import { M as R } from "./component-Rx4bNsGO.js";
4
- const a = {
5
- /**
6
- * Content to be rendered inside the component.
7
- *
8
- * Defaults to **null**.
9
- */
10
- children: r.node,
11
- /**
12
- * A reference to the component to apply the ripple to.
13
- *
14
- * Defaults to **undefined**.
15
- */
16
- componentRef: r.object,
17
- /**
18
- * Allows the ripple to extend beyond the component boundaries.
19
- *
20
- * Defaults to **undefined**.
21
- */
22
- unbounded: r.bool
23
- }, m = {
24
- children: null,
25
- componentRef: void 0,
26
- unbounded: void 0
27
- }, o = /* @__PURE__ */ f((u, c) => {
28
- const {
29
- componentRef: n,
30
- unbounded: p,
31
- children: d
32
- } = u, e = i();
33
- return s(c, () => e.current, []), l(() => {
34
- const t = n.current;
35
- return t && (e.current = R.attachTo(n.current), p && (e.current.unbounded = !0)), () => {
36
- t && e.current.destroy();
37
- };
38
- }, [n, p]), d;
39
- });
40
- o.displayName = "Ripple";
41
- o.propTypes = a;
42
- o.defaultProps = m;
43
- export {
44
- o as R
45
- };