@recursica/mantine-adapter 0.3.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/README.md +17 -7
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +301 -197
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Avatar/Avatar.d.ts +1 -1
- package/dist/src/components/Badge/Badge.d.ts +8 -0
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/src/components/Button/Button.d.ts +3 -2
- package/dist/src/components/Card/Card.d.ts +3 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/src/components/Chip/Chip.d.ts +3 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +3 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/src/components/FileInput/FileInput.d.ts +3 -0
- package/dist/src/components/FileUpload/FileUpload.d.ts +3 -0
- package/dist/src/components/HoverCard/HoverCard.d.ts +3 -0
- package/dist/src/components/Link/Link.d.ts +3 -0
- package/dist/src/components/Loader/Loader.d.ts +3 -0
- package/dist/src/components/Menu/Menu.d.ts +3 -0
- package/dist/src/components/Modal/Modal.d.ts +3 -0
- package/dist/src/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/src/components/Pagination/Pagination.d.ts +3 -0
- package/dist/src/components/Panel/Panel.d.ts +3 -0
- package/dist/src/components/Popover/Popover.d.ts +3 -0
- package/dist/src/components/Radio/Radio.d.ts +3 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +3 -0
- package/dist/src/components/Search/Search.d.ts +3 -0
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +3 -0
- package/dist/src/components/Slider/Slider.d.ts +3 -0
- package/dist/src/components/Stepper/Stepper.d.ts +3 -0
- package/dist/src/components/Switch/Switch.d.ts +3 -0
- package/dist/src/components/Table/Table.d.ts +3 -0
- package/dist/src/components/Tabs/Tabs.d.ts +3 -0
- package/dist/src/components/TextArea/TextArea.d.ts +3 -0
- package/dist/src/components/TextField/TextField.d.ts +3 -0
- package/dist/src/components/TimePicker/TimePicker.d.ts +3 -0
- package/dist/src/components/Timeline/Timeline.d.ts +3 -0
- package/dist/src/components/Toast/Toast.d.ts +3 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/src/components/TransferList/TransferList.d.ts +3 -0
- package/dist/src/components/index.d.ts +35 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/utils/filterStylingProps.d.ts +31 -0
- package/package.json +4 -1
- package/dist/src/RecursicaThemeProvider/RecursicaThemeProvider.d.ts +0 -11
- package/dist/src/components/Layer/Layer.d.ts +0 -25
- package/dist/src/components/Layer/index.d.ts +0 -1
package/dist/mantine-adapter.js
CHANGED
|
@@ -1,240 +1,344 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: n
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
});
|
|
21
|
-
z.displayName = "Layer";
|
|
22
|
-
const w = "Button-module__root___Q2R8-", K = "Button-module__label___UJ3Zt", F = "Button-module__labelText___rFV5p", H = "Button-module__iconWrapper___uEKPa", J = "Button-module__section___f2mKr", _ = {
|
|
23
|
-
root: w,
|
|
24
|
-
label: K,
|
|
25
|
-
labelText: F,
|
|
26
|
-
iconWrapper: H,
|
|
27
|
-
section: J
|
|
28
|
-
};
|
|
29
|
-
function M(c) {
|
|
30
|
-
return c == null || c === "" ? !1 : typeof c == "string" ? c.trim() !== "" : !0;
|
|
31
|
-
}
|
|
32
|
-
const O = A(
|
|
33
|
-
function({
|
|
34
|
-
variant: t = "solid",
|
|
35
|
-
size: o = "default",
|
|
36
|
-
icon: n,
|
|
37
|
-
className: r,
|
|
38
|
-
classNames: e,
|
|
39
|
-
children: l,
|
|
40
|
-
style: i,
|
|
41
|
-
...m
|
|
42
|
-
}, g) {
|
|
43
|
-
const W = {
|
|
44
|
-
solid: "filled",
|
|
45
|
-
outline: "outline",
|
|
46
|
-
text: "subtle"
|
|
47
|
-
}, x = {
|
|
48
|
-
default: "md",
|
|
49
|
-
small: "sm"
|
|
50
|
-
}, b = m, y = !!n || !!b.leftSection, p = !!b.rightSection, d = (y || p) && !M(l);
|
|
51
|
-
typeof process < "u" && process.env.NODE_ENV !== "production" && d && !b["aria-label"] && console.warn(
|
|
52
|
-
'[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
|
|
53
|
-
);
|
|
54
|
-
const h = {
|
|
55
|
-
root: _.root,
|
|
56
|
-
section: _.section,
|
|
57
|
-
label: _.label
|
|
58
|
-
};
|
|
59
|
-
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
60
|
-
const v = e;
|
|
61
|
-
h.root = v.root ? `${_.root} ${v.root}` : _.root, h.section = v.section ?? _.section, h.label = v.label ?? _.label;
|
|
62
|
-
}
|
|
63
|
-
return /* @__PURE__ */ a(
|
|
64
|
-
D,
|
|
65
|
-
{
|
|
66
|
-
ref: g,
|
|
67
|
-
className: r,
|
|
68
|
-
classNames: h,
|
|
69
|
-
variant: W[t],
|
|
70
|
-
size: x[o],
|
|
71
|
-
style: i,
|
|
72
|
-
leftSection: n != null ? /* @__PURE__ */ a("span", { className: _.iconWrapper, "aria-hidden": !0, children: n }) : void 0,
|
|
73
|
-
"data-variant": t,
|
|
74
|
-
"data-size": o,
|
|
75
|
-
...d ? { "data-icon-only": "" } : {},
|
|
76
|
-
...m,
|
|
77
|
-
children: /* @__PURE__ */ a("span", { className: _.labelText, children: l })
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
O.displayName = "Button";
|
|
83
|
-
const U = "Accordion-module__root___Dem6d", X = "Accordion-module__item___7ryVk", Z = "Accordion-module__noDivider___Ni2tT", q = "Accordion-module__control___b4wgX", G = "Accordion-module__label___Ss7uW", Q = "Accordion-module__chevron___i-HVZ", Y = "Accordion-module__iconLeftWrapper___5oLen", k = "Accordion-module__panel___Wx50w", oo = "Accordion-module__content___PEM9t", u = {
|
|
84
|
-
root: U,
|
|
85
|
-
item: X,
|
|
86
|
-
noDivider: Z,
|
|
87
|
-
control: q,
|
|
88
|
-
label: G,
|
|
89
|
-
chevron: Q,
|
|
90
|
-
iconLeftWrapper: Y,
|
|
91
|
-
panel: k,
|
|
92
|
-
content: oo
|
|
93
|
-
}, E = function({
|
|
94
|
-
className: t,
|
|
95
|
-
classNames: o,
|
|
1
|
+
import { jsx as o, jsxs as F, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useEffect as R } from "react";
|
|
3
|
+
import { Accordion as T, Avatar as j, Badge as z, Button as O } from "@mantine/core";
|
|
4
|
+
const V = "Accordion-module__root___Dem6d", k = "Accordion-module__item___7ryVk", M = "Accordion-module__noDivider___Ni2tT", K = "Accordion-module__control___b4wgX", q = "Accordion-module__label___Ss7uW", H = "Accordion-module__chevron___i-HVZ", U = "Accordion-module__iconLeftWrapper___5oLen", G = "Accordion-module__panel___Wx50w", J = "Accordion-module__content___PEM9t", _ = {
|
|
5
|
+
root: V,
|
|
6
|
+
item: k,
|
|
7
|
+
noDivider: M,
|
|
8
|
+
control: K,
|
|
9
|
+
label: q,
|
|
10
|
+
chevron: H,
|
|
11
|
+
iconLeftWrapper: U,
|
|
12
|
+
panel: G,
|
|
13
|
+
content: J
|
|
14
|
+
}, D = function({
|
|
15
|
+
className: r,
|
|
16
|
+
classNames: t,
|
|
96
17
|
variant: n = "unstyled",
|
|
97
|
-
...
|
|
18
|
+
...l
|
|
98
19
|
}) {
|
|
99
|
-
const
|
|
100
|
-
root:
|
|
101
|
-
item:
|
|
102
|
-
control:
|
|
103
|
-
label:
|
|
104
|
-
chevron:
|
|
105
|
-
panel:
|
|
106
|
-
content:
|
|
20
|
+
const c = {
|
|
21
|
+
root: _.root,
|
|
22
|
+
item: _.item,
|
|
23
|
+
control: _.control,
|
|
24
|
+
label: _.label,
|
|
25
|
+
chevron: _.chevron,
|
|
26
|
+
panel: _.panel,
|
|
27
|
+
content: _.content
|
|
107
28
|
};
|
|
108
|
-
if (
|
|
109
|
-
const
|
|
110
|
-
Object.keys(
|
|
111
|
-
|
|
29
|
+
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
30
|
+
const a = t;
|
|
31
|
+
Object.keys(a).forEach((i) => {
|
|
32
|
+
c[i] ? c[i] = `${c[i]} ${a[i]}` : c[i] = a[i];
|
|
112
33
|
});
|
|
113
34
|
}
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
-
|
|
35
|
+
return /* @__PURE__ */ o(
|
|
36
|
+
T,
|
|
116
37
|
{
|
|
117
38
|
variant: n,
|
|
118
|
-
className:
|
|
119
|
-
classNames:
|
|
120
|
-
...
|
|
39
|
+
className: r,
|
|
40
|
+
classNames: c,
|
|
41
|
+
...l
|
|
121
42
|
}
|
|
122
43
|
);
|
|
123
44
|
};
|
|
124
|
-
|
|
125
|
-
const
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
|
|
45
|
+
D.displayName = "Accordion";
|
|
46
|
+
const I = b(function({ title: r, leftIcon: t, divider: n = !0, children: l, ...c }, a) {
|
|
47
|
+
return /* @__PURE__ */ o(
|
|
48
|
+
T.Item,
|
|
128
49
|
{
|
|
129
|
-
ref:
|
|
130
|
-
className: n ? void 0 :
|
|
131
|
-
...
|
|
132
|
-
children:
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
] }) :
|
|
50
|
+
ref: a,
|
|
51
|
+
className: n ? void 0 : _.noDivider,
|
|
52
|
+
...c,
|
|
53
|
+
children: r ? /* @__PURE__ */ F(L, { children: [
|
|
54
|
+
/* @__PURE__ */ o(S, { leftIcon: t, children: r }),
|
|
55
|
+
/* @__PURE__ */ o(C, { children: l })
|
|
56
|
+
] }) : l
|
|
136
57
|
}
|
|
137
58
|
);
|
|
138
59
|
});
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
|
|
60
|
+
I.displayName = "AccordionItem";
|
|
61
|
+
const S = b(function({ leftIcon: r, children: t, ...n }, l) {
|
|
62
|
+
return /* @__PURE__ */ o(
|
|
63
|
+
T.Control,
|
|
143
64
|
{
|
|
144
|
-
ref:
|
|
145
|
-
icon:
|
|
65
|
+
ref: l,
|
|
66
|
+
icon: r ? /* @__PURE__ */ o("span", { className: _.iconLeftWrapper, "aria-hidden": !0, children: r }) : void 0,
|
|
146
67
|
...n,
|
|
147
|
-
children:
|
|
68
|
+
children: t
|
|
148
69
|
}
|
|
149
70
|
);
|
|
150
71
|
});
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
function(
|
|
154
|
-
return /* @__PURE__ */
|
|
72
|
+
S.displayName = "AccordionControl";
|
|
73
|
+
const C = b(
|
|
74
|
+
function(r, t) {
|
|
75
|
+
return /* @__PURE__ */ o(T.Panel, { ref: t, ...r });
|
|
155
76
|
}
|
|
156
77
|
);
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
root:
|
|
164
|
-
iconWrapper:
|
|
165
|
-
textWrapper:
|
|
166
|
-
image:
|
|
167
|
-
placeholder:
|
|
168
|
-
},
|
|
169
|
-
size:
|
|
170
|
-
variant:
|
|
78
|
+
C.displayName = "AccordionPanel";
|
|
79
|
+
const x = D;
|
|
80
|
+
x.Item = I;
|
|
81
|
+
x.Control = S;
|
|
82
|
+
x.Panel = C;
|
|
83
|
+
const X = "Avatar-module__root___fXu-J", Y = "Avatar-module__iconWrapper___ojly2", Z = "Avatar-module__textWrapper___zp-jD", Q = "Avatar-module__image___ieqGp", ee = "Avatar-module__placeholder___IDW7-", d = {
|
|
84
|
+
root: X,
|
|
85
|
+
iconWrapper: Y,
|
|
86
|
+
textWrapper: Z,
|
|
87
|
+
image: Q,
|
|
88
|
+
placeholder: ee
|
|
89
|
+
}, oe = b(function({
|
|
90
|
+
size: r = "default",
|
|
91
|
+
variant: t = "solid",
|
|
171
92
|
icon: n,
|
|
172
|
-
className:
|
|
173
|
-
classNames:
|
|
174
|
-
children:
|
|
93
|
+
className: l,
|
|
94
|
+
classNames: c,
|
|
95
|
+
children: a,
|
|
175
96
|
style: i,
|
|
176
|
-
src:
|
|
177
|
-
...
|
|
178
|
-
},
|
|
179
|
-
const
|
|
97
|
+
src: h,
|
|
98
|
+
...A
|
|
99
|
+
}, m) {
|
|
100
|
+
const v = {
|
|
180
101
|
solid: "filled",
|
|
181
102
|
outline: "outline",
|
|
182
103
|
ghost: "transparent"
|
|
183
|
-
},
|
|
104
|
+
}, P = {
|
|
184
105
|
default: "md",
|
|
185
106
|
small: "sm",
|
|
186
107
|
large: "lg"
|
|
187
108
|
};
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
root:
|
|
192
|
-
image:
|
|
193
|
-
placeholder:
|
|
109
|
+
let g = "text";
|
|
110
|
+
h ? g = "image" : n && (g = "icon");
|
|
111
|
+
const f = {
|
|
112
|
+
root: d.root,
|
|
113
|
+
image: d.image,
|
|
114
|
+
placeholder: d.placeholder
|
|
194
115
|
};
|
|
195
|
-
if (
|
|
196
|
-
const
|
|
197
|
-
|
|
116
|
+
if (c && typeof c == "object" && !Array.isArray(c)) {
|
|
117
|
+
const s = c;
|
|
118
|
+
f.root = s.root ? `${d.root} ${s.root}` : d.root, f.image = s.image ? `${d.image} ${s.image}` : d.image, f.placeholder = s.placeholder ? `${d.placeholder} ${s.placeholder}` : d.placeholder;
|
|
198
119
|
}
|
|
199
|
-
return /* @__PURE__ */
|
|
200
|
-
|
|
120
|
+
return /* @__PURE__ */ o(
|
|
121
|
+
j,
|
|
201
122
|
{
|
|
202
|
-
ref:
|
|
203
|
-
className:
|
|
204
|
-
classNames:
|
|
205
|
-
variant:
|
|
206
|
-
size:
|
|
123
|
+
ref: m,
|
|
124
|
+
className: l,
|
|
125
|
+
classNames: f,
|
|
126
|
+
variant: v[t],
|
|
127
|
+
size: P[r],
|
|
207
128
|
style: i,
|
|
208
|
-
src:
|
|
209
|
-
"data-variant":
|
|
210
|
-
"data-size":
|
|
211
|
-
"data-style":
|
|
212
|
-
...
|
|
213
|
-
children: n != null ? /* @__PURE__ */
|
|
129
|
+
src: h,
|
|
130
|
+
"data-variant": t,
|
|
131
|
+
"data-size": r,
|
|
132
|
+
"data-style": g,
|
|
133
|
+
...A,
|
|
134
|
+
children: n != null ? /* @__PURE__ */ o("span", { className: d.iconWrapper, "aria-hidden": !0, children: n }) : a != null ? /* @__PURE__ */ o("span", { className: d.textWrapper, children: a }) : void 0
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
});
|
|
138
|
+
oe.displayName = "Avatar";
|
|
139
|
+
const te = [
|
|
140
|
+
"className",
|
|
141
|
+
"classNames",
|
|
142
|
+
"style",
|
|
143
|
+
"styles",
|
|
144
|
+
"vars",
|
|
145
|
+
// Internal structure hooks
|
|
146
|
+
"p",
|
|
147
|
+
"px",
|
|
148
|
+
"py",
|
|
149
|
+
"pt",
|
|
150
|
+
"pb",
|
|
151
|
+
"pl",
|
|
152
|
+
"pr",
|
|
153
|
+
// Padding
|
|
154
|
+
"bg",
|
|
155
|
+
"c",
|
|
156
|
+
"opacity",
|
|
157
|
+
// Color
|
|
158
|
+
"ff",
|
|
159
|
+
"fz",
|
|
160
|
+
"fw",
|
|
161
|
+
"lts",
|
|
162
|
+
"ta",
|
|
163
|
+
"lh",
|
|
164
|
+
"fs",
|
|
165
|
+
"tt",
|
|
166
|
+
"td",
|
|
167
|
+
// Typography
|
|
168
|
+
"bd",
|
|
169
|
+
"bdw",
|
|
170
|
+
"bds",
|
|
171
|
+
"bdc",
|
|
172
|
+
"bdr",
|
|
173
|
+
// Borders
|
|
174
|
+
"shadow"
|
|
175
|
+
// Effects
|
|
176
|
+
];
|
|
177
|
+
function w(e, r) {
|
|
178
|
+
if (r)
|
|
179
|
+
return e;
|
|
180
|
+
const t = { ...e };
|
|
181
|
+
for (const n of te)
|
|
182
|
+
n in t && delete t[n];
|
|
183
|
+
return t;
|
|
184
|
+
}
|
|
185
|
+
const re = "Badge-module__root___5osNT", p = {
|
|
186
|
+
root: re
|
|
187
|
+
}, ne = b(function({ variant: r = "primary-color", overStyled: t = !1, ...n }, l) {
|
|
188
|
+
const c = w(n, t), a = {
|
|
189
|
+
root: p.root,
|
|
190
|
+
section: p.section,
|
|
191
|
+
label: p.label
|
|
192
|
+
}, i = c.classNames;
|
|
193
|
+
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
194
|
+
const m = i;
|
|
195
|
+
a.root = m.root ? `${p.root} ${m.root}` : p.root, a.section = m.section ?? p.section, a.label = m.label ?? p.label;
|
|
196
|
+
}
|
|
197
|
+
const h = c.className, A = h ? `${p.root} ${h}` : p.root;
|
|
198
|
+
return /* @__PURE__ */ o(
|
|
199
|
+
z,
|
|
200
|
+
{
|
|
201
|
+
ref: l,
|
|
202
|
+
variant: "filled",
|
|
203
|
+
"data-variant": r,
|
|
204
|
+
...c,
|
|
205
|
+
className: A,
|
|
206
|
+
classNames: a
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
});
|
|
210
|
+
ne.displayName = "Badge";
|
|
211
|
+
const be = (e) => /* @__PURE__ */ o("div", { ...e, children: "Breadcrumb" }), ce = "Button-module__root___Q2R8-", ae = "Button-module__label___UJ3Zt", ie = "Button-module__labelText___rFV5p", le = "Button-module__iconWrapper___uEKPa", se = "Button-module__section___f2mKr", u = {
|
|
212
|
+
root: ce,
|
|
213
|
+
label: ae,
|
|
214
|
+
labelText: ie,
|
|
215
|
+
iconWrapper: le,
|
|
216
|
+
section: se
|
|
217
|
+
};
|
|
218
|
+
function de(e) {
|
|
219
|
+
return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
|
|
220
|
+
}
|
|
221
|
+
const ue = b(
|
|
222
|
+
function({
|
|
223
|
+
variant: r = "solid",
|
|
224
|
+
size: t = "default",
|
|
225
|
+
icon: n,
|
|
226
|
+
children: l,
|
|
227
|
+
overStyled: c = !1,
|
|
228
|
+
...a
|
|
229
|
+
}, i) {
|
|
230
|
+
const h = {
|
|
231
|
+
solid: "filled",
|
|
232
|
+
outline: "outline",
|
|
233
|
+
text: "subtle"
|
|
234
|
+
}, A = {
|
|
235
|
+
default: "md",
|
|
236
|
+
small: "sm"
|
|
237
|
+
}, m = w(a, c), v = m, P = !!n || !!v.leftSection, g = !!v.rightSection, f = (P || g) && !de(l);
|
|
238
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && f && !v["aria-label"] && console.warn(
|
|
239
|
+
'[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
|
|
240
|
+
);
|
|
241
|
+
const s = {
|
|
242
|
+
root: u.root,
|
|
243
|
+
section: u.section,
|
|
244
|
+
label: u.label
|
|
245
|
+
}, N = v.classNames;
|
|
246
|
+
if (N && typeof N == "object" && !Array.isArray(N)) {
|
|
247
|
+
const $ = N;
|
|
248
|
+
s.root = $.root ? `${u.root} ${$.root}` : u.root, s.section = $.section ?? u.section, s.label = $.label ?? u.label;
|
|
249
|
+
}
|
|
250
|
+
const B = v.className, E = B ? `${u.root} ${B}` : u.root;
|
|
251
|
+
return /* @__PURE__ */ o(
|
|
252
|
+
O,
|
|
253
|
+
{
|
|
254
|
+
ref: i,
|
|
255
|
+
className: E,
|
|
256
|
+
classNames: s,
|
|
257
|
+
variant: h[r],
|
|
258
|
+
size: A[t],
|
|
259
|
+
leftSection: n != null ? /* @__PURE__ */ o("span", { className: u.iconWrapper, "aria-hidden": !0, children: n }) : void 0,
|
|
260
|
+
"data-variant": r,
|
|
261
|
+
"data-size": t,
|
|
262
|
+
...f ? { "data-icon-only": "" } : {},
|
|
263
|
+
...m,
|
|
264
|
+
children: /* @__PURE__ */ o("span", { className: u.labelText, children: l })
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
ue.displayName = "Button";
|
|
270
|
+
const ye = (e) => /* @__PURE__ */ o("div", { ...e, children: "Card" }), Ae = (e) => /* @__PURE__ */ o("div", { ...e, children: "Checkbox" }), ge = (e) => /* @__PURE__ */ o("div", { ...e, children: "Chip" }), Ne = (e) => /* @__PURE__ */ o("div", { ...e, children: "DatePicker" }), $e = (e) => /* @__PURE__ */ o("div", { ...e, children: "Dropdown" }), Te = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileInput" }), Pe = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileUpload" }), Se = (e) => /* @__PURE__ */ o("div", { ...e, children: "HoverCard" }), Ce = (e) => /* @__PURE__ */ o("div", { ...e, children: "Link" }), xe = (e) => /* @__PURE__ */ o("div", { ...e, children: "Loader" }), Be = (e) => /* @__PURE__ */ o("div", { ...e, children: "Menu" }), We = (e) => /* @__PURE__ */ o("div", { ...e, children: "Modal" }), Le = (e) => /* @__PURE__ */ o("div", { ...e, children: "NumberInput" }), De = (e) => /* @__PURE__ */ o("div", { ...e, children: "Pagination" }), Ie = (e) => /* @__PURE__ */ o("div", { ...e, children: "Panel" }), we = (e) => /* @__PURE__ */ o("div", { ...e, children: "Popover" }), Ee = (e) => /* @__PURE__ */ o("div", { ...e, children: "Radio" }), Fe = (e) => /* @__PURE__ */ o("div", { ...e, children: "ReadOnlyField" }), Re = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), je = (e) => /* @__PURE__ */ o("div", { ...e, children: "SegmentedControl" }), ze = (e) => /* @__PURE__ */ o("div", { ...e, children: "Slider" }), Oe = (e) => /* @__PURE__ */ o("div", { ...e, children: "Stepper" }), Ve = (e) => /* @__PURE__ */ o("div", { ...e, children: "Switch" }), ke = (e) => /* @__PURE__ */ o("div", { ...e, children: "Table" }), Me = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tabs" }), Ke = (e) => /* @__PURE__ */ o("div", { ...e, children: "TextArea" }), qe = (e) => /* @__PURE__ */ o("div", { ...e, children: "TextField" }), He = (e) => /* @__PURE__ */ o("div", { ...e, children: "TimePicker" }), Ue = (e) => /* @__PURE__ */ o("div", { ...e, children: "Timeline" }), Ge = (e) => /* @__PURE__ */ o("div", { ...e, children: "Toast" }), Je = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tooltip" }), Xe = (e) => /* @__PURE__ */ o("div", { ...e, children: "TransferList" }), me = "_root_1qhn7_3", pe = "_contents_1qhn7_18", y = {
|
|
271
|
+
root: me,
|
|
272
|
+
contents: pe
|
|
273
|
+
}, _e = b(function({ layer: e, contentsOnly: r, children: t, className: n, style: l, ...c }, a) {
|
|
274
|
+
const i = r ? n ? `${y.root} ${y.contents} ${n}` : `${y.root} ${y.contents}` : n ? `${y.root} ${n}` : y.root;
|
|
275
|
+
return /* @__PURE__ */ o(
|
|
276
|
+
"div",
|
|
277
|
+
{
|
|
278
|
+
ref: a,
|
|
279
|
+
className: i,
|
|
280
|
+
style: l,
|
|
281
|
+
...r ? {} : { "data-recursica-layer": String(e) },
|
|
282
|
+
...c,
|
|
283
|
+
children: t
|
|
214
284
|
}
|
|
215
285
|
);
|
|
216
286
|
});
|
|
217
|
-
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
children:
|
|
221
|
-
theme:
|
|
287
|
+
_e.displayName = "Layer";
|
|
288
|
+
const W = "data-recursica-theme";
|
|
289
|
+
function Ye({
|
|
290
|
+
children: e,
|
|
291
|
+
theme: r = "light"
|
|
222
292
|
}) {
|
|
223
|
-
return
|
|
224
|
-
const
|
|
225
|
-
return
|
|
226
|
-
|
|
293
|
+
return R(() => {
|
|
294
|
+
const t = document.documentElement;
|
|
295
|
+
return t.setAttribute(W, r), () => {
|
|
296
|
+
t.removeAttribute(W);
|
|
227
297
|
};
|
|
228
|
-
}, [
|
|
298
|
+
}, [r]), /* @__PURE__ */ o(L, { children: e });
|
|
229
299
|
}
|
|
230
300
|
export {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
301
|
+
x as Accordion,
|
|
302
|
+
S as AccordionControl,
|
|
303
|
+
I as AccordionItem,
|
|
304
|
+
C as AccordionPanel,
|
|
305
|
+
oe as Avatar,
|
|
306
|
+
ne as Badge,
|
|
307
|
+
be as Breadcrumb,
|
|
308
|
+
ue as Button,
|
|
309
|
+
ye as Card,
|
|
310
|
+
Ae as Checkbox,
|
|
311
|
+
ge as Chip,
|
|
312
|
+
Ne as DatePicker,
|
|
313
|
+
$e as Dropdown,
|
|
314
|
+
Te as FileInput,
|
|
315
|
+
Pe as FileUpload,
|
|
316
|
+
Se as HoverCard,
|
|
317
|
+
_e as Layer,
|
|
318
|
+
Ce as Link,
|
|
319
|
+
xe as Loader,
|
|
320
|
+
Be as Menu,
|
|
321
|
+
We as Modal,
|
|
322
|
+
Le as NumberInput,
|
|
323
|
+
De as Pagination,
|
|
324
|
+
Ie as Panel,
|
|
325
|
+
we as Popover,
|
|
326
|
+
Ee as Radio,
|
|
327
|
+
Fe as ReadOnlyField,
|
|
328
|
+
Ye as RecursicaThemeProvider,
|
|
329
|
+
Re as Search,
|
|
330
|
+
je as SegmentedControl,
|
|
331
|
+
ze as Slider,
|
|
332
|
+
Oe as Stepper,
|
|
333
|
+
Ve as Switch,
|
|
334
|
+
ke as Table,
|
|
335
|
+
Me as Tabs,
|
|
336
|
+
Ke as TextArea,
|
|
337
|
+
qe as TextField,
|
|
338
|
+
He as TimePicker,
|
|
339
|
+
Ue as Timeline,
|
|
340
|
+
Ge as Toast,
|
|
341
|
+
Je as Tooltip,
|
|
342
|
+
Xe as TransferList
|
|
239
343
|
};
|
|
240
344
|
//# sourceMappingURL=mantine-adapter.js.map
|