@recursica/mui-adapter 0.4.0 → 0.5.0
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 +6 -0
- package/dist/mui-adapter.cjs +1 -1
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +138 -136
- package/dist/mui-adapter.js.map +1 -1
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +3 -0
- package/dist/src/components/Autocomplete/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +1 -0
- package/package.json +5 -2
- package/src/GlobalExemptions.modules.css +13 -0
- package/src/components/Accordion/Accordion.module.css +56 -0
- package/src/components/Accordion/Accordion.tsx +1 -0
- package/src/components/AssistiveElement/AssistiveElement.module.css +20 -0
- package/src/components/AssistiveElement/AssistiveElement.tsx +1 -0
- package/src/components/Autocomplete/Autocomplete.module.css +47 -0
- package/src/components/Autocomplete/Autocomplete.stories.tsx +35 -0
- package/src/components/Autocomplete/Autocomplete.tsx +8 -0
- package/src/components/Autocomplete/index.ts +1 -0
- package/src/components/Avatar/Avatar.module.css +74 -0
- package/src/components/Avatar/Avatar.tsx +1 -0
- package/src/components/Badge/Badge.module.css +29 -0
- package/src/components/Badge/Badge.tsx +1 -0
- package/src/components/Breadcrumb/Breadcrumb.module.css +6 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +1 -0
- package/src/components/Button/Button.module.css +110 -17
- package/src/components/Button/Button.stories.tsx +3 -0
- package/src/components/Button/Button.tsx +10 -3
- package/src/components/Card/Card.module.css +38 -0
- package/src/components/Card/Card.tsx +1 -0
- package/src/components/Checkbox/Checkbox.module.css +39 -0
- package/src/components/Checkbox/Checkbox.tsx +1 -0
- package/src/components/Chip/Chip.module.css +51 -0
- package/src/components/Chip/Chip.tsx +1 -0
- package/src/components/DatePicker/DatePicker.module.css +42 -0
- package/src/components/DatePicker/DatePicker.tsx +1 -0
- package/src/components/Dropdown/Dropdown.module.css +46 -0
- package/src/components/Dropdown/Dropdown.tsx +1 -0
- package/src/components/FileInput/FileInput.module.css +47 -0
- package/src/components/FileInput/FileInput.tsx +1 -0
- package/src/components/FileUpload/FileUpload.module.css +40 -0
- package/src/components/FileUpload/FileUpload.tsx +1 -0
- package/src/components/HoverCard/HoverCard.module.css +23 -0
- package/src/components/HoverCard/HoverCard.tsx +1 -0
- package/src/components/Label/Label.module.css +35 -0
- package/src/components/Label/Label.tsx +1 -0
- package/src/components/Link/Link.module.css +8 -0
- package/src/components/Menu/Menu.module.css +53 -0
- package/src/components/Menu/Menu.tsx +1 -0
- package/src/components/Modal/Modal.module.css +36 -0
- package/src/components/Modal/Modal.tsx +1 -0
- package/src/components/NumberInput/NumberInput.module.css +47 -0
- package/src/components/NumberInput/NumberInput.tsx +1 -0
- package/src/components/Pagination/Pagination.module.css +81 -0
- package/src/components/Pagination/Pagination.tsx +1 -0
- package/src/components/Panel/Panel.module.css +38 -0
- package/src/components/Panel/Panel.tsx +1 -0
- package/src/components/Radio/Radio.module.css +37 -0
- package/src/components/Radio/Radio.tsx +1 -0
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +16 -0
- package/src/components/ReadOnlyField/ReadOnlyField.tsx +1 -0
- package/src/components/SegmentedControl/SegmentedControl.module.css +47 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +1 -0
- package/src/components/Slider/Slider.module.css +86 -0
- package/src/components/Slider/Slider.tsx +1 -0
- package/src/components/Stepper/Stepper.module.css +71 -0
- package/src/components/Stepper/Stepper.tsx +1 -0
- package/src/components/Switch/Switch.module.css +39 -0
- package/src/components/Switch/Switch.tsx +1 -0
- package/src/components/Tabs/Tabs.module.css +79 -0
- package/src/components/Tabs/Tabs.tsx +1 -0
- package/src/components/TextArea/TextArea.module.css +37 -0
- package/src/components/TextArea/TextArea.tsx +1 -0
- package/src/components/TextField/TextField.module.css +47 -0
- package/src/components/TextField/TextField.tsx +1 -0
- package/src/components/TimePicker/TimePicker.module.css +41 -0
- package/src/components/TimePicker/TimePicker.tsx +1 -0
- package/src/components/Timeline/Timeline.module.css +78 -0
- package/src/components/Timeline/Timeline.tsx +1 -0
- package/src/components/Toast/Toast.module.css +32 -0
- package/src/components/Toast/Toast.tsx +1 -0
- package/src/components/Tooltip/Tooltip.module.css +25 -0
- package/src/components/Tooltip/Tooltip.tsx +1 -0
- package/src/components/TransferList/TransferList.module.css +38 -0
- package/src/components/TransferList/TransferList.tsx +1 -0
- package/src/components/index.ts +1 -0
package/dist/mui-adapter.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Box as
|
|
4
|
-
const
|
|
5
|
-
return /* @__PURE__ */ r(
|
|
6
|
-
}),
|
|
1
|
+
import { jsx as r, jsxs as R, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import O, { forwardRef as u, useEffect as G } from "react";
|
|
3
|
+
import { Box as A, Button as V, Container as D, Stack as B, Link as M, Typography as U } from "@mui/material";
|
|
4
|
+
const he = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), _e = (e) => /* @__PURE__ */ r("div", { ...e, children: "AssistiveElement" }), ye = (e) => /* @__PURE__ */ r("div", { ...e, children: "Autocomplete" }), ve = (e) => /* @__PURE__ */ r("div", { ...e, children: "Avatar" }), be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Badge" }), ge = u(function(t, n) {
|
|
5
|
+
return /* @__PURE__ */ r(A, { ref: n, ...t });
|
|
6
|
+
}), xe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Breadcrumb" }), Y = [
|
|
7
7
|
"className",
|
|
8
8
|
"classes",
|
|
9
9
|
// MUI specific nested class overrides
|
|
@@ -32,7 +32,7 @@ const me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), fe
|
|
|
32
32
|
"display",
|
|
33
33
|
"position",
|
|
34
34
|
"zIndex"
|
|
35
|
-
],
|
|
35
|
+
], j = /* @__PURE__ */ new Set([
|
|
36
36
|
"m",
|
|
37
37
|
"my",
|
|
38
38
|
"mx",
|
|
@@ -54,7 +54,7 @@ const me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), fe
|
|
|
54
54
|
"left",
|
|
55
55
|
"bottom",
|
|
56
56
|
"right"
|
|
57
|
-
]),
|
|
57
|
+
]), l = {
|
|
58
58
|
"rec-none": "var(--recursica_brand_dimensions_general_none)",
|
|
59
59
|
"rec-sm": "var(--recursica_brand_dimensions_general_sm)",
|
|
60
60
|
"rec-default": "var(--recursica_brand_dimensions_general_default)",
|
|
@@ -63,7 +63,7 @@ const me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Accordion" }), fe
|
|
|
63
63
|
"rec-xl": "var(--recursica_brand_dimensions_general_xl)",
|
|
64
64
|
"rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
|
|
65
65
|
};
|
|
66
|
-
function
|
|
66
|
+
function x(e) {
|
|
67
67
|
const t = { ...e };
|
|
68
68
|
return "sx" in t && delete t.sx, t;
|
|
69
69
|
}
|
|
@@ -71,32 +71,32 @@ function v(e, t) {
|
|
|
71
71
|
if (t)
|
|
72
72
|
return e;
|
|
73
73
|
const n = { ...e };
|
|
74
|
-
for (const o of
|
|
74
|
+
for (const o of Y)
|
|
75
75
|
o in n && delete n[o];
|
|
76
76
|
for (const [o, s] of Object.entries(n))
|
|
77
|
-
typeof s == "string" && s.startsWith("rec-") &&
|
|
77
|
+
typeof s == "string" && s.startsWith("rec-") && j.has(o) && s in l && (n[o] = l[s]);
|
|
78
78
|
return n;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
81
|
-
root:
|
|
82
|
-
},
|
|
83
|
-
const
|
|
80
|
+
const H = "Loader-module__root___6iYOP", L = {
|
|
81
|
+
root: H
|
|
82
|
+
}, I = u(function({ variant: t = "oval", size: n = "default", overStyled: o = !1, ...s }, a) {
|
|
83
|
+
const c = {
|
|
84
84
|
sm: "small",
|
|
85
85
|
md: "default",
|
|
86
86
|
lg: "large",
|
|
87
87
|
small: "small",
|
|
88
88
|
default: "default",
|
|
89
89
|
large: "large"
|
|
90
|
-
}[n] || "default", d = v(s, o), p = d.className, f = p ? `${
|
|
90
|
+
}[n] || "default", d = v(s, o), p = d.className, f = p ? `${L.root} ${p}` : L.root;
|
|
91
91
|
return /* @__PURE__ */ r(
|
|
92
92
|
"span",
|
|
93
93
|
{
|
|
94
94
|
ref: a,
|
|
95
95
|
"data-variant": t,
|
|
96
|
-
"data-size":
|
|
96
|
+
"data-size": c,
|
|
97
97
|
...d,
|
|
98
98
|
className: f,
|
|
99
|
-
children: t === "bars" || t === "dots" ? /* @__PURE__ */
|
|
99
|
+
children: t === "bars" || t === "dots" ? /* @__PURE__ */ R(F, { children: [
|
|
100
100
|
/* @__PURE__ */ r("span", {}),
|
|
101
101
|
/* @__PURE__ */ r("span", {}),
|
|
102
102
|
/* @__PURE__ */ r("span", {})
|
|
@@ -104,16 +104,16 @@ const Y = "Loader-module__root___6iYOP", S = {
|
|
|
104
104
|
}
|
|
105
105
|
);
|
|
106
106
|
});
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
root:
|
|
110
|
-
labelText:
|
|
111
|
-
iconWrapper:
|
|
107
|
+
I.displayName = "Loader";
|
|
108
|
+
const K = "Button-module__root___Q2R8-", q = "Button-module__labelText___rFV5p", Q = "Button-module__iconWrapper___uEKPa", _ = {
|
|
109
|
+
root: K,
|
|
110
|
+
labelText: q,
|
|
111
|
+
iconWrapper: Q
|
|
112
112
|
};
|
|
113
|
-
function
|
|
113
|
+
function J(e) {
|
|
114
114
|
return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
|
|
115
115
|
}
|
|
116
|
-
const
|
|
116
|
+
const X = u(
|
|
117
117
|
function({
|
|
118
118
|
variant: t = "solid",
|
|
119
119
|
size: n = "default",
|
|
@@ -121,31 +121,32 @@ const Q = u(
|
|
|
121
121
|
children: s,
|
|
122
122
|
overStyled: a = !1,
|
|
123
123
|
loaderVariant: i = "oval",
|
|
124
|
-
loaderSize:
|
|
124
|
+
loaderSize: c,
|
|
125
125
|
useRecursicaLoader: d = !0,
|
|
126
126
|
...p
|
|
127
127
|
}, f) {
|
|
128
128
|
const b = v(p, a), m = b;
|
|
129
129
|
delete m.fullWidth, delete m.color;
|
|
130
|
-
const
|
|
131
|
-
|
|
130
|
+
const N = !!o || !!m.startIcon, C = !!m.endIcon, E = J(s), S = (N || C) && !E;
|
|
131
|
+
let g = "label";
|
|
132
|
+
S ? g = "icon-only" : (N || C) && (g = "icon-label"), typeof process < "u" && process.env.NODE_ENV !== "production" && S && !m["aria-label"] && console.warn(
|
|
132
133
|
'[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
|
|
133
134
|
);
|
|
134
|
-
const
|
|
135
|
-
let
|
|
136
|
-
return d && (
|
|
137
|
-
|
|
135
|
+
const $ = m.className, z = $ ? `${_.root} ${$}` : _.root, w = c ?? (n === "small" ? "small" : "default");
|
|
136
|
+
let P = m.loadingIndicator;
|
|
137
|
+
return d && (P = /* @__PURE__ */ r(I, { variant: i, size: w })), /* @__PURE__ */ r(
|
|
138
|
+
V,
|
|
138
139
|
{
|
|
139
140
|
ref: f,
|
|
140
141
|
disableRipple: !0,
|
|
141
142
|
disableElevation: !0,
|
|
142
|
-
className:
|
|
143
|
+
className: z,
|
|
143
144
|
loading: !!m.loading,
|
|
144
|
-
loadingIndicator:
|
|
145
|
+
loadingIndicator: P,
|
|
145
146
|
startIcon: o != null ? /* @__PURE__ */ r("span", { className: _.iconWrapper, "aria-hidden": !0, children: o }) : void 0,
|
|
146
147
|
"data-variant": t,
|
|
147
148
|
"data-size": n,
|
|
148
|
-
|
|
149
|
+
"data-content": g,
|
|
149
150
|
...m.loading ? { "data-loading": "true" } : {},
|
|
150
151
|
...b,
|
|
151
152
|
disabled: !!m.disabled || !!m.loading,
|
|
@@ -154,8 +155,8 @@ const Q = u(
|
|
|
154
155
|
);
|
|
155
156
|
}
|
|
156
157
|
);
|
|
157
|
-
|
|
158
|
-
const
|
|
158
|
+
X.displayName = "Button";
|
|
159
|
+
const Te = (e) => /* @__PURE__ */ r("div", { ...e, children: "Card" }), Ne = (e) => /* @__PURE__ */ r("div", { ...e, children: "Checkbox" }), Ce = (e) => /* @__PURE__ */ r("div", { ...e, children: "Chip" }), Z = u(
|
|
159
160
|
function({ children: t, size: n, ...o }, s) {
|
|
160
161
|
const a = {
|
|
161
162
|
"rec-sm": "sm",
|
|
@@ -166,7 +167,7 @@ const be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Card" }), ge = (e)
|
|
|
166
167
|
"rec-2xl": "xl"
|
|
167
168
|
}, i = typeof n == "string" && a[n] ? a[n] : n;
|
|
168
169
|
return /* @__PURE__ */ r(
|
|
169
|
-
|
|
170
|
+
D,
|
|
170
171
|
{
|
|
171
172
|
ref: s,
|
|
172
173
|
maxWidth: i,
|
|
@@ -176,15 +177,15 @@ const be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Card" }), ge = (e)
|
|
|
176
177
|
);
|
|
177
178
|
}
|
|
178
179
|
);
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
const
|
|
180
|
+
Z.displayName = "Container";
|
|
181
|
+
const Se = (e) => /* @__PURE__ */ r("div", { ...e, children: "DatePicker" }), $e = (e) => /* @__PURE__ */ r("div", { ...e, children: "Dropdown" }), Pe = (e) => /* @__PURE__ */ r("div", { ...e, children: "FileInput" }), Le = (e) => /* @__PURE__ */ r("div", { ...e, children: "FileUpload" }), ee = u(function({ children: t, gap: n = "rec-default", rowGap: o, columnGap: s, ...a }, i) {
|
|
182
|
+
const c = x(a), d = typeof n == "string" && n in l ? l[n] : n, p = typeof o == "string" && o in l ? l[o] : o, f = typeof s == "string" && s in l ? l[s] : s;
|
|
182
183
|
return /* @__PURE__ */ r(
|
|
183
|
-
|
|
184
|
+
A,
|
|
184
185
|
{
|
|
185
186
|
ref: i,
|
|
186
187
|
display: "flex",
|
|
187
|
-
...
|
|
188
|
+
...c,
|
|
188
189
|
gap: d,
|
|
189
190
|
rowGap: p,
|
|
190
191
|
columnGap: f,
|
|
@@ -192,11 +193,11 @@ const Te = (e) => /* @__PURE__ */ r("div", { ...e, children: "DatePicker" }), Ne
|
|
|
192
193
|
}
|
|
193
194
|
);
|
|
194
195
|
});
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
const
|
|
196
|
+
ee.displayName = "Flex";
|
|
197
|
+
const ke = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlLayout" }), Re = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlWrapper" }), re = u(function({ children: t, gap: n = "rec-default", rowGap: o, columnGap: s, ...a }, i) {
|
|
198
|
+
const c = x(a), d = typeof n == "string" && n in l ? l[n] : n, p = typeof o == "string" && o in l ? l[o] : o, f = typeof s == "string" && s in l ? l[s] : s;
|
|
198
199
|
return /* @__PURE__ */ r(
|
|
199
|
-
|
|
200
|
+
B,
|
|
200
201
|
{
|
|
201
202
|
ref: i,
|
|
202
203
|
direction: "row",
|
|
@@ -206,20 +207,20 @@ const $e = (e) => /* @__PURE__ */ r("div", { ...e, children: "FormControlLayout"
|
|
|
206
207
|
...p ? { rowGap: p } : {},
|
|
207
208
|
...f ? { columnGap: f } : {}
|
|
208
209
|
},
|
|
209
|
-
...
|
|
210
|
+
...c,
|
|
210
211
|
children: t
|
|
211
212
|
}
|
|
212
213
|
);
|
|
213
214
|
});
|
|
214
|
-
|
|
215
|
-
const
|
|
216
|
-
root:
|
|
217
|
-
iconWrapper:
|
|
218
|
-
labelText:
|
|
219
|
-
},
|
|
215
|
+
re.displayName = "Group";
|
|
216
|
+
const Fe = (e) => /* @__PURE__ */ r("div", { ...e, children: "HoverCard" }), Ae = (e) => /* @__PURE__ */ r("div", { ...e, children: "Label" }), ne = "Link-module__root___I0VGE", te = "Link-module__iconWrapper___W-LlF", oe = "Link-module__labelText___wSvUy", y = {
|
|
217
|
+
root: ne,
|
|
218
|
+
iconWrapper: te,
|
|
219
|
+
labelText: oe
|
|
220
|
+
}, se = u(function({ icon: t, children: n, overStyled: o = !1, ...s }, a) {
|
|
220
221
|
const i = v(s, o), d = i.className, p = d ? `${y.root} ${d}` : y.root;
|
|
221
|
-
return /* @__PURE__ */
|
|
222
|
-
|
|
222
|
+
return /* @__PURE__ */ R(
|
|
223
|
+
M,
|
|
223
224
|
{
|
|
224
225
|
ref: a,
|
|
225
226
|
className: p,
|
|
@@ -233,17 +234,17 @@ const Le = (e) => /* @__PURE__ */ r("div", { ...e, children: "HoverCard" }), ke
|
|
|
233
234
|
}
|
|
234
235
|
);
|
|
235
236
|
});
|
|
236
|
-
|
|
237
|
-
const
|
|
238
|
-
const a =
|
|
239
|
-
return /* @__PURE__ */ r(
|
|
237
|
+
se.displayName = "Link";
|
|
238
|
+
const Be = (e) => /* @__PURE__ */ r("div", { ...e, children: "Menu" }), Ie = (e) => /* @__PURE__ */ r("div", { ...e, children: "Modal" }), We = (e) => /* @__PURE__ */ r("div", { ...e, children: "NumberInput" }), Ee = (e) => /* @__PURE__ */ r("div", { ...e, children: "Pagination" }), ze = (e) => /* @__PURE__ */ r("div", { ...e, children: "Panel" }), we = (e) => /* @__PURE__ */ r("div", { ...e, children: "Radio" }), Oe = (e) => /* @__PURE__ */ r("div", { ...e, children: "ReadOnlyField" }), Ge = (e) => /* @__PURE__ */ r("div", { ...e, children: "SegmentedControl" }), Ve = (e) => /* @__PURE__ */ r("div", { ...e, children: "Slider" }), ae = u(function({ children: t, gap: n = "rec-default", ...o }, s) {
|
|
239
|
+
const a = x(o), i = typeof n == "string" && n in l ? l[n] : n;
|
|
240
|
+
return /* @__PURE__ */ r(B, { ref: s, spacing: i, ...a, children: t });
|
|
240
241
|
});
|
|
241
|
-
|
|
242
|
-
const
|
|
242
|
+
ae.displayName = "Stack";
|
|
243
|
+
const De = (e) => /* @__PURE__ */ r("div", { ...e, children: "Stepper" }), Me = (e) => /* @__PURE__ */ r("div", { ...e, children: "Switch" }), Ue = (e) => /* @__PURE__ */ r("div", { ...e, children: "Table" }), Ye = (e) => /* @__PURE__ */ r("div", { ...e, children: "Tabs" }), T = u(
|
|
243
244
|
function({ typographyClass: t, overStyled: n = !1, ...o }, s) {
|
|
244
|
-
const a = v(o, n),
|
|
245
|
+
const a = v(o, n), c = a.className, d = c ? `${t} ${c}` : t;
|
|
245
246
|
return /* @__PURE__ */ r(
|
|
246
|
-
|
|
247
|
+
U,
|
|
247
248
|
{
|
|
248
249
|
ref: s,
|
|
249
250
|
className: d,
|
|
@@ -253,16 +254,16 @@ const Oe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Stepper" }), Ge =
|
|
|
253
254
|
);
|
|
254
255
|
}
|
|
255
256
|
);
|
|
256
|
-
|
|
257
|
-
const
|
|
257
|
+
T.displayName = "Typography";
|
|
258
|
+
const ie = u(function({ variant: t = "body", ...n }, o) {
|
|
258
259
|
const s = `recursica_brand_typography_${t}`;
|
|
259
|
-
return /* @__PURE__ */ r(
|
|
260
|
+
return /* @__PURE__ */ r(T, { ref: o, typographyClass: s, ...n });
|
|
260
261
|
});
|
|
261
|
-
|
|
262
|
-
const
|
|
262
|
+
ie.displayName = "Text";
|
|
263
|
+
const je = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextArea" }), He = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextField" }), Ke = (e) => /* @__PURE__ */ r("div", { ...e, children: "TimePicker" }), qe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Timeline" }), le = u(function({ order: t = 1, component: n, ...o }, s) {
|
|
263
264
|
const a = `recursica_brand_typography_h${t}`, i = `h${t}`;
|
|
264
265
|
return /* @__PURE__ */ r(
|
|
265
|
-
|
|
266
|
+
T,
|
|
266
267
|
{
|
|
267
268
|
ref: s,
|
|
268
269
|
typographyClass: a,
|
|
@@ -271,17 +272,17 @@ const Me = (e) => /* @__PURE__ */ r("div", { ...e, children: "TextArea" }), Ue =
|
|
|
271
272
|
}
|
|
272
273
|
);
|
|
273
274
|
});
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
root:
|
|
277
|
-
contents:
|
|
278
|
-
},
|
|
279
|
-
const
|
|
275
|
+
le.displayName = "Title";
|
|
276
|
+
const Qe = (e) => /* @__PURE__ */ r("div", { ...e, children: "Toast" }), Je = (e) => /* @__PURE__ */ r("div", { ...e, children: "Tooltip" }), Xe = (e) => /* @__PURE__ */ r("div", { ...e, children: "TransferList" }), ce = "_root_1qhn7_3", de = "_contents_1qhn7_18", h = {
|
|
277
|
+
root: ce,
|
|
278
|
+
contents: de
|
|
279
|
+
}, ue = u(function({ layer: e, contentsOnly: t, children: n, className: o, style: s, ...a }, i) {
|
|
280
|
+
const c = t ? o ? `${h.root} ${h.contents} ${o}` : `${h.root} ${h.contents}` : o ? `${h.root} ${o}` : h.root;
|
|
280
281
|
return /* @__PURE__ */ r(
|
|
281
282
|
"div",
|
|
282
283
|
{
|
|
283
284
|
ref: i,
|
|
284
|
-
className:
|
|
285
|
+
className: c,
|
|
285
286
|
style: s,
|
|
286
287
|
...t ? {} : { "data-recursica-layer": String(e) },
|
|
287
288
|
...a,
|
|
@@ -289,71 +290,72 @@ const He = (e) => /* @__PURE__ */ r("div", { ...e, children: "Toast" }), Ke = (e
|
|
|
289
290
|
}
|
|
290
291
|
);
|
|
291
292
|
});
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
function
|
|
293
|
+
ue.displayName = "Layer";
|
|
294
|
+
const W = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ r(O.Fragment, { children: e });
|
|
295
|
+
W.displayName = "EmptyValueRenderer";
|
|
296
|
+
W.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
297
|
+
const k = "data-recursica-theme";
|
|
298
|
+
function Ze({
|
|
298
299
|
children: e,
|
|
299
300
|
theme: t = "light"
|
|
300
301
|
}) {
|
|
301
|
-
return
|
|
302
|
+
return G(() => {
|
|
302
303
|
const n = document.documentElement;
|
|
303
|
-
return n.setAttribute(
|
|
304
|
-
n.removeAttribute(
|
|
304
|
+
return n.setAttribute(k, t), () => {
|
|
305
|
+
n.removeAttribute(k);
|
|
305
306
|
};
|
|
306
|
-
}, [t]), /* @__PURE__ */ r(
|
|
307
|
+
}, [t]), /* @__PURE__ */ r(F, { children: e });
|
|
307
308
|
}
|
|
308
309
|
export {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
310
|
+
he as Accordion,
|
|
311
|
+
_e as AssistiveElement,
|
|
312
|
+
ye as Autocomplete,
|
|
313
|
+
ve as Avatar,
|
|
314
|
+
be as Badge,
|
|
315
|
+
ge as Box,
|
|
316
|
+
xe as Breadcrumb,
|
|
317
|
+
X as Button,
|
|
318
|
+
Te as Card,
|
|
319
|
+
Ne as Checkbox,
|
|
320
|
+
Ce as Chip,
|
|
321
|
+
Z as Container,
|
|
322
|
+
Se as DatePicker,
|
|
323
|
+
$e as Dropdown,
|
|
324
|
+
W as EmptyValueRenderer,
|
|
325
|
+
Pe as FileInput,
|
|
326
|
+
Le as FileUpload,
|
|
327
|
+
ee as Flex,
|
|
328
|
+
ke as FormControlLayout,
|
|
329
|
+
Re as FormControlWrapper,
|
|
330
|
+
re as Group,
|
|
331
|
+
Fe as HoverCard,
|
|
332
|
+
Ae as Label,
|
|
333
|
+
ue as Layer,
|
|
334
|
+
se as Link,
|
|
335
|
+
I as Loader,
|
|
336
|
+
Be as Menu,
|
|
337
|
+
Ie as Modal,
|
|
338
|
+
We as NumberInput,
|
|
339
|
+
Ee as Pagination,
|
|
340
|
+
ze as Panel,
|
|
341
|
+
we as Radio,
|
|
342
|
+
Oe as ReadOnlyField,
|
|
343
|
+
Ze as RecursicaThemeProvider,
|
|
344
|
+
Ge as SegmentedControl,
|
|
345
|
+
Ve as Slider,
|
|
346
|
+
ae as Stack,
|
|
347
|
+
De as Stepper,
|
|
348
|
+
Me as Switch,
|
|
349
|
+
Ue as Table,
|
|
350
|
+
Ye as Tabs,
|
|
351
|
+
ie as Text,
|
|
352
|
+
je as TextArea,
|
|
353
|
+
He as TextField,
|
|
354
|
+
Ke as TimePicker,
|
|
355
|
+
qe as Timeline,
|
|
356
|
+
le as Title,
|
|
357
|
+
Qe as Toast,
|
|
358
|
+
Je as Tooltip,
|
|
359
|
+
Xe as TransferList
|
|
358
360
|
};
|
|
359
361
|
//# sourceMappingURL=mui-adapter.js.map
|