@recursica/mantine-adapter 0.5.0 → 0.7.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/.storybook/commonArgTypes.ts +148 -0
- package/CHANGELOG.md +69 -0
- 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 +1076 -266
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Accordion/Accordion.d.ts +13 -28
- package/dist/src/components/AssistiveElement/AssistiveElement.d.ts +10 -0
- package/dist/src/components/Avatar/Avatar.d.ts +1 -1
- package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +6 -3
- package/dist/src/components/Button/Button.d.ts +1 -1
- package/dist/src/components/Card/Card.d.ts +38 -3
- package/dist/src/components/Checkbox/Checkbox.d.ts +11 -3
- package/dist/src/components/Checkbox/CheckboxGroup.d.ts +9 -0
- package/dist/src/components/Chip/Chip.d.ts +14 -2
- package/dist/src/components/FormControlWrapper/FormControlWrapper.d.ts +18 -0
- package/dist/src/components/Label/Label.d.ts +21 -0
- package/dist/src/components/Label/index.d.ts +1 -0
- package/dist/src/components/ReadOnlyField/ReadOnlyField.d.ts +19 -2
- package/dist/src/components/ReadOnlyField/ReadOnlyTextField.d.ts +8 -0
- package/dist/src/components/ReadOnlyField/WithReadOnlyWrapper.d.ts +22 -0
- package/dist/src/components/ReadOnlyField/index.d.ts +3 -0
- package/dist/src/components/Text/Text.d.ts +17 -0
- package/dist/src/components/TextField/TextField.d.ts +8 -2
- package/dist/src/components/Title/Title.d.ts +13 -0
- package/dist/src/components/index.d.ts +3 -1
- package/dist/src/utils/ColorSchemeWrapper.d.ts +3 -0
- package/dist/src/utils/filterStylingProps.d.ts +6 -2
- package/package.json +9 -5
- package/src/OverStyling.stories.tsx +174 -0
- package/src/Version.stories.tsx +56 -0
- package/src/components/Accordion/ACCORDION_IMPLEMENTATION_NOTES.md +48 -0
- package/src/components/Accordion/Accordion.module.css +261 -0
- package/src/components/Accordion/Accordion.stories.tsx +145 -0
- package/src/components/Accordion/Accordion.tsx +200 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/AssistiveElement/AssistiveElement.module.css +111 -0
- package/src/components/AssistiveElement/AssistiveElement.stories.tsx +73 -0
- package/src/components/AssistiveElement/AssistiveElement.tsx +91 -0
- package/src/components/Avatar/AVATAR_IMPLEMENTATION_NOTES.md +24 -0
- package/src/components/Avatar/Avatar.module.css +340 -0
- package/src/components/Avatar/Avatar.stories.tsx +102 -0
- package/src/components/Avatar/Avatar.tsx +100 -0
- package/src/components/Avatar/index.ts +1 -0
- package/src/components/Badge/BADGE_IMPLEMENTATION_NOTES.md +18 -0
- package/src/components/Badge/Badge.module.css +124 -0
- package/src/components/Badge/Badge.stories.tsx +77 -0
- package/src/components/Badge/Badge.tsx +66 -0
- package/src/components/Breadcrumb/BREADCRUMB_IMPLEMENTATION_NOTES.md +14 -0
- package/src/components/Breadcrumb/Breadcrumb.module.css +26 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +77 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +64 -0
- package/src/components/Button/Button.module.css +275 -0
- package/src/components/Button/Button.stories.tsx +105 -0
- package/src/components/Button/Button.tsx +122 -0
- package/src/components/Button/IMPLEMENTATION_NOTES.md +45 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Card/CARD_IMPLEMENTATION_NOTES.md +10 -0
- package/src/components/Card/Card.module.css +60 -0
- package/src/components/Card/Card.stories.tsx +141 -0
- package/src/components/Card/Card.tsx +176 -0
- package/src/components/Checkbox/CHECKBOX_IMPLEMENTATION_NOTES.md +25 -0
- package/src/components/Checkbox/Checkbox.module.css +204 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +73 -0
- package/src/components/Checkbox/Checkbox.tsx +111 -0
- package/src/components/Checkbox/CheckboxGroup.stories.tsx +138 -0
- package/src/components/Checkbox/CheckboxGroup.tsx +140 -0
- package/src/components/Chip/CHIP_IMPLEMENTATION_NOTES.md +35 -0
- package/src/components/Chip/Chip.module.css +218 -0
- package/src/components/Chip/Chip.stories.tsx +115 -0
- package/src/components/Chip/Chip.tsx +143 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +22 -0
- package/src/components/DatePicker/DatePicker.tsx +7 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +22 -0
- package/src/components/Dropdown/Dropdown.tsx +7 -0
- package/src/components/FileInput/FileInput.stories.tsx +22 -0
- package/src/components/FileInput/FileInput.tsx +7 -0
- package/src/components/FileUpload/FileUpload.stories.tsx +22 -0
- package/src/components/FileUpload/FileUpload.tsx +7 -0
- package/src/components/FormControlWrapper/FORMCONTROLWRAPPER_IMPLEMENTATION_NOTES.md +32 -0
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +46 -0
- package/src/components/FormControlWrapper/FormControlWrapper.stories.tsx +116 -0
- package/src/components/FormControlWrapper/FormControlWrapper.tsx +170 -0
- package/src/components/HoverCard/HoverCard.stories.tsx +17 -0
- package/src/components/HoverCard/HoverCard.tsx +7 -0
- package/src/components/Label/LABEL_IMPLEMENTATION_NOTES.md +48 -0
- package/src/components/Label/Label.module.css +177 -0
- package/src/components/Label/Label.stories.tsx +123 -0
- package/src/components/Label/Label.tsx +132 -0
- package/src/components/Label/index.ts +1 -0
- package/src/components/Link/Link.stories.tsx +17 -0
- package/src/components/Link/Link.tsx +7 -0
- package/src/components/Loader/Loader.stories.tsx +17 -0
- package/src/components/Loader/Loader.tsx +7 -0
- package/src/components/Menu/Menu.stories.tsx +17 -0
- package/src/components/Menu/Menu.tsx +7 -0
- package/src/components/Modal/Modal.stories.tsx +17 -0
- package/src/components/Modal/Modal.tsx +7 -0
- package/src/components/NumberInput/NumberInput.stories.tsx +22 -0
- package/src/components/NumberInput/NumberInput.tsx +7 -0
- package/src/components/Pagination/Pagination.stories.tsx +17 -0
- package/src/components/Pagination/Pagination.tsx +7 -0
- package/src/components/Panel/Panel.stories.tsx +17 -0
- package/src/components/Panel/Panel.tsx +7 -0
- package/src/components/Popover/Popover.stories.tsx +17 -0
- package/src/components/Popover/Popover.tsx +7 -0
- package/src/components/Radio/Radio.stories.tsx +22 -0
- package/src/components/Radio/Radio.tsx +7 -0
- package/src/components/ReadOnlyField/READ_ONLY_FIELD_IMPLEMENTATION_NOTES.md +15 -0
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +49 -0
- package/src/components/ReadOnlyField/ReadOnlyField.stories.tsx +120 -0
- package/src/components/ReadOnlyField/ReadOnlyField.tsx +75 -0
- package/src/components/ReadOnlyField/ReadOnlyTextField.tsx +46 -0
- package/src/components/ReadOnlyField/WithReadOnlyWrapper.tsx +85 -0
- package/src/components/ReadOnlyField/index.ts +3 -0
- package/src/components/Search/Search.stories.tsx +17 -0
- package/src/components/Search/Search.tsx +7 -0
- package/src/components/SegmentedControl/SegmentedControl.stories.tsx +22 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +7 -0
- package/src/components/Slider/Slider.stories.tsx +22 -0
- package/src/components/Slider/Slider.tsx +7 -0
- package/src/components/Stepper/Stepper.stories.tsx +17 -0
- package/src/components/Stepper/Stepper.tsx +7 -0
- package/src/components/Switch/Switch.stories.tsx +22 -0
- package/src/components/Switch/Switch.tsx +7 -0
- package/src/components/Table/Table.stories.tsx +17 -0
- package/src/components/Table/Table.tsx +7 -0
- package/src/components/Tabs/Tabs.stories.tsx +17 -0
- package/src/components/Tabs/Tabs.tsx +7 -0
- package/src/components/Text/Text.stories.tsx +88 -0
- package/src/components/Text/Text.tsx +54 -0
- package/src/components/TextArea/TextArea.stories.tsx +22 -0
- package/src/components/TextArea/TextArea.tsx +7 -0
- package/src/components/TextField/TEXTFIELD_IMPLEMENTATION_NOTES.md +19 -0
- package/src/components/TextField/TextField.module.css +225 -0
- package/src/components/TextField/TextField.stories.tsx +162 -0
- package/src/components/TextField/TextField.tsx +138 -0
- package/src/components/TimePicker/TimePicker.stories.tsx +22 -0
- package/src/components/TimePicker/TimePicker.tsx +7 -0
- package/src/components/Timeline/Timeline.stories.tsx +17 -0
- package/src/components/Timeline/Timeline.tsx +7 -0
- package/src/components/Title/Title.stories.tsx +63 -0
- package/src/components/Title/Title.tsx +45 -0
- package/src/components/Toast/Toast.stories.tsx +17 -0
- package/src/components/Toast/Toast.tsx +7 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +17 -0
- package/src/components/Tooltip/Tooltip.tsx +7 -0
- package/src/components/TransferList/TransferList.stories.tsx +17 -0
- package/src/components/TransferList/TransferList.tsx +7 -0
- package/src/components/index.ts +39 -0
- package/src/env.d.ts +7 -0
- package/src/index.ts +3 -0
- package/src/types/index.ts +9 -0
- package/src/types/mantine.d.ts +7 -0
- package/src/types/scss-modules.d.ts +9 -0
- package/src/utils/ColorSchemeWrapper.tsx +27 -0
- package/src/utils/copyToClipboard.ts +36 -0
- package/src/utils/filterStylingProps.ts +139 -0
- package/src/utils/index.ts +1 -0
package/dist/mantine-adapter.js
CHANGED
|
@@ -1,142 +1,7 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Accordion as
|
|
4
|
-
const
|
|
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,
|
|
17
|
-
variant: n = "unstyled",
|
|
18
|
-
...l
|
|
19
|
-
}) {
|
|
20
|
-
const c = {
|
|
21
|
-
root: _.root,
|
|
22
|
-
item: _.item,
|
|
23
|
-
control: _.control,
|
|
24
|
-
label: _.label,
|
|
25
|
-
chevron: _.chevron,
|
|
26
|
-
panel: _.panel,
|
|
27
|
-
content: _.content
|
|
28
|
-
};
|
|
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];
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
return /* @__PURE__ */ o(
|
|
36
|
-
T,
|
|
37
|
-
{
|
|
38
|
-
variant: n,
|
|
39
|
-
className: r,
|
|
40
|
-
classNames: c,
|
|
41
|
-
...l
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
};
|
|
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,
|
|
49
|
-
{
|
|
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
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
});
|
|
60
|
-
I.displayName = "AccordionItem";
|
|
61
|
-
const S = b(function({ leftIcon: r, children: t, ...n }, l) {
|
|
62
|
-
return /* @__PURE__ */ o(
|
|
63
|
-
T.Control,
|
|
64
|
-
{
|
|
65
|
-
ref: l,
|
|
66
|
-
icon: r ? /* @__PURE__ */ o("span", { className: _.iconLeftWrapper, "aria-hidden": !0, children: r }) : void 0,
|
|
67
|
-
...n,
|
|
68
|
-
children: t
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
S.displayName = "AccordionControl";
|
|
73
|
-
const C = b(
|
|
74
|
-
function(r, t) {
|
|
75
|
-
return /* @__PURE__ */ o(T.Panel, { ref: t, ...r });
|
|
76
|
-
}
|
|
77
|
-
);
|
|
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",
|
|
92
|
-
icon: n,
|
|
93
|
-
className: l,
|
|
94
|
-
classNames: c,
|
|
95
|
-
children: a,
|
|
96
|
-
style: i,
|
|
97
|
-
src: h,
|
|
98
|
-
...A
|
|
99
|
-
}, m) {
|
|
100
|
-
const v = {
|
|
101
|
-
solid: "filled",
|
|
102
|
-
outline: "outline",
|
|
103
|
-
ghost: "transparent"
|
|
104
|
-
}, P = {
|
|
105
|
-
default: "md",
|
|
106
|
-
small: "sm",
|
|
107
|
-
large: "lg"
|
|
108
|
-
};
|
|
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
|
|
115
|
-
};
|
|
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;
|
|
119
|
-
}
|
|
120
|
-
return /* @__PURE__ */ o(
|
|
121
|
-
j,
|
|
122
|
-
{
|
|
123
|
-
ref: m,
|
|
124
|
-
className: l,
|
|
125
|
-
classNames: f,
|
|
126
|
-
variant: v[t],
|
|
127
|
-
size: P[r],
|
|
128
|
-
style: i,
|
|
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 = [
|
|
1
|
+
import { jsx as o, jsxs as L, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import O, { forwardRef as y, useId as We, useEffect as ke } from "react";
|
|
3
|
+
import { Accordion as K, Avatar as we, Badge as Te, Breadcrumbs as Ie, Button as Fe, Card as Z, Input as le, Box as de, Checkbox as pe, Chip as Re } from "@mantine/core";
|
|
4
|
+
const Se = [
|
|
140
5
|
"className",
|
|
141
6
|
"classNames",
|
|
142
7
|
"style",
|
|
@@ -171,174 +36,1119 @@ const te = [
|
|
|
171
36
|
"bdc",
|
|
172
37
|
"bdr",
|
|
173
38
|
// Borders
|
|
174
|
-
"shadow"
|
|
39
|
+
"shadow",
|
|
175
40
|
// Effects
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
41
|
+
"w",
|
|
42
|
+
"miw",
|
|
43
|
+
"maw",
|
|
44
|
+
"h",
|
|
45
|
+
"mih",
|
|
46
|
+
"mah"
|
|
47
|
+
// Dimensions
|
|
48
|
+
], ze = /* @__PURE__ */ new Set([
|
|
49
|
+
"m",
|
|
50
|
+
"my",
|
|
51
|
+
"mx",
|
|
52
|
+
"mt",
|
|
53
|
+
"mb",
|
|
54
|
+
"ml",
|
|
55
|
+
"mr",
|
|
56
|
+
"gap",
|
|
57
|
+
"rowGap",
|
|
58
|
+
"columnGap",
|
|
59
|
+
"top",
|
|
60
|
+
"left",
|
|
61
|
+
"bottom",
|
|
62
|
+
"right"
|
|
63
|
+
]), se = {
|
|
64
|
+
"rec-none": "var(--recursica_brand_dimensions_general_none)",
|
|
65
|
+
"rec-sm": "var(--recursica_brand_dimensions_general_sm)",
|
|
66
|
+
"rec-default": "var(--recursica_brand_dimensions_general_default)",
|
|
67
|
+
"rec-md": "var(--recursica_brand_dimensions_general_md)",
|
|
68
|
+
"rec-lg": "var(--recursica_brand_dimensions_general_lg)",
|
|
69
|
+
"rec-xl": "var(--recursica_brand_dimensions_general_xl)",
|
|
70
|
+
"rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
|
|
71
|
+
};
|
|
72
|
+
function $(e, n) {
|
|
73
|
+
if (n)
|
|
179
74
|
return e;
|
|
180
|
-
const
|
|
181
|
-
for (const
|
|
182
|
-
|
|
183
|
-
|
|
75
|
+
const a = { ...e };
|
|
76
|
+
for (const s of Se)
|
|
77
|
+
s in a && delete a[s];
|
|
78
|
+
for (const [s, t] of Object.entries(a))
|
|
79
|
+
typeof t == "string" && t.startsWith("rec-") && ze.has(s) && t in se && (a[s] = se[t]);
|
|
80
|
+
return a;
|
|
184
81
|
}
|
|
185
|
-
const
|
|
186
|
-
root:
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
82
|
+
const Le = "Accordion-module__root___Dem6d", Be = "Accordion-module__item___7ryVk", Ee = "Accordion-module__noDivider___Ni2tT", je = "Accordion-module__control___b4wgX", Oe = "Accordion-module__label___Ss7uW", Me = "Accordion-module__chevron___i-HVZ", Ve = "Accordion-module__iconLeftWrapper___5oLen", qe = "Accordion-module__panel___Wx50w", De = "Accordion-module__content___PEM9t", z = {
|
|
83
|
+
root: Le,
|
|
84
|
+
item: Be,
|
|
85
|
+
noDivider: Ee,
|
|
86
|
+
control: je,
|
|
87
|
+
label: Oe,
|
|
88
|
+
chevron: Me,
|
|
89
|
+
iconLeftWrapper: Ve,
|
|
90
|
+
panel: qe,
|
|
91
|
+
content: De
|
|
92
|
+
}, _e = function({
|
|
93
|
+
variant: n = "unstyled",
|
|
94
|
+
overStyled: a = !1,
|
|
95
|
+
...s
|
|
96
|
+
}) {
|
|
97
|
+
const t = $(s, a), r = {
|
|
98
|
+
root: z.root,
|
|
99
|
+
item: z.item,
|
|
100
|
+
control: z.control,
|
|
101
|
+
label: z.label,
|
|
102
|
+
chevron: z.chevron,
|
|
103
|
+
panel: z.panel,
|
|
104
|
+
content: z.content
|
|
105
|
+
}, i = t.classNames;
|
|
193
106
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
194
|
-
const
|
|
195
|
-
|
|
107
|
+
const d = i;
|
|
108
|
+
Object.keys(d).forEach((c) => {
|
|
109
|
+
r[c] ? r[c] = `${r[c]} ${d[c]}` : r[c] = d[c];
|
|
110
|
+
});
|
|
196
111
|
}
|
|
197
|
-
const
|
|
112
|
+
const l = t.className;
|
|
113
|
+
return /* @__PURE__ */ o(
|
|
114
|
+
K,
|
|
115
|
+
{
|
|
116
|
+
variant: n,
|
|
117
|
+
className: l,
|
|
118
|
+
classNames: r,
|
|
119
|
+
...t
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
_e.displayName = "Accordion";
|
|
124
|
+
const me = y(function({ title: n, leftIcon: a, divider: s = !0, children: t, overStyled: r = !1, ...i }, l) {
|
|
125
|
+
const d = $(i, r), c = d.className, p = [s ? void 0 : z.noDivider, c].filter(Boolean).join(" ") || void 0;
|
|
198
126
|
return /* @__PURE__ */ o(
|
|
199
|
-
|
|
127
|
+
K.Item,
|
|
200
128
|
{
|
|
201
129
|
ref: l,
|
|
202
|
-
|
|
203
|
-
|
|
130
|
+
className: p,
|
|
131
|
+
...d,
|
|
132
|
+
children: n ? /* @__PURE__ */ L(ie, { children: [
|
|
133
|
+
/* @__PURE__ */ o(ee, { leftIcon: a, children: n }),
|
|
134
|
+
/* @__PURE__ */ o(oe, { children: t })
|
|
135
|
+
] }) : t
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
});
|
|
139
|
+
me.displayName = "AccordionItem";
|
|
140
|
+
const ee = y(function({ leftIcon: n, children: a, overStyled: s = !1, ...t }, r) {
|
|
141
|
+
const i = $(t, s), l = i.className;
|
|
142
|
+
return /* @__PURE__ */ o(
|
|
143
|
+
K.Control,
|
|
144
|
+
{
|
|
145
|
+
ref: r,
|
|
146
|
+
className: l,
|
|
147
|
+
icon: n ? /* @__PURE__ */ o("span", { className: z.iconLeftWrapper, "aria-hidden": !0, children: n }) : void 0,
|
|
148
|
+
...i,
|
|
149
|
+
children: a
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
});
|
|
153
|
+
ee.displayName = "AccordionControl";
|
|
154
|
+
const oe = y(function({ overStyled: n = !1, ...a }, s) {
|
|
155
|
+
const t = $(a, n), r = t.className;
|
|
156
|
+
return /* @__PURE__ */ o(
|
|
157
|
+
K.Panel,
|
|
158
|
+
{
|
|
159
|
+
ref: s,
|
|
160
|
+
className: r,
|
|
161
|
+
...t
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
});
|
|
165
|
+
oe.displayName = "AccordionPanel";
|
|
166
|
+
const te = _e;
|
|
167
|
+
te.Item = me;
|
|
168
|
+
te.Control = ee;
|
|
169
|
+
te.Panel = oe;
|
|
170
|
+
const Ge = "Avatar-module__root___fXu-J", He = "Avatar-module__iconWrapper___ojly2", Ke = "Avatar-module__textWrapper___zp-jD", Ze = "Avatar-module__image___ieqGp", Ye = "Avatar-module__placeholder___IDW7-", k = {
|
|
171
|
+
root: Ge,
|
|
172
|
+
iconWrapper: He,
|
|
173
|
+
textWrapper: Ke,
|
|
174
|
+
image: Ze,
|
|
175
|
+
placeholder: Ye
|
|
176
|
+
}, Ue = y(function({
|
|
177
|
+
size: n = "default",
|
|
178
|
+
variant: a = "solid",
|
|
179
|
+
icon: s,
|
|
180
|
+
className: t,
|
|
181
|
+
classNames: r,
|
|
182
|
+
children: i,
|
|
183
|
+
style: l,
|
|
184
|
+
src: d,
|
|
185
|
+
...c
|
|
186
|
+
}, p) {
|
|
187
|
+
const m = {
|
|
188
|
+
solid: "filled",
|
|
189
|
+
outline: "outline",
|
|
190
|
+
ghost: "transparent"
|
|
191
|
+
}, b = {
|
|
192
|
+
default: "md",
|
|
193
|
+
small: "sm",
|
|
194
|
+
large: "lg"
|
|
195
|
+
};
|
|
196
|
+
let _ = "text";
|
|
197
|
+
d ? _ = "image" : s && (_ = "icon");
|
|
198
|
+
const h = {
|
|
199
|
+
root: k.root,
|
|
200
|
+
image: k.image,
|
|
201
|
+
placeholder: k.placeholder
|
|
202
|
+
};
|
|
203
|
+
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
204
|
+
const N = r;
|
|
205
|
+
h.root = N.root ? `${k.root} ${N.root}` : k.root, h.image = N.image ? `${k.image} ${N.image}` : k.image, h.placeholder = N.placeholder ? `${k.placeholder} ${N.placeholder}` : k.placeholder;
|
|
206
|
+
}
|
|
207
|
+
return /* @__PURE__ */ o(
|
|
208
|
+
we,
|
|
209
|
+
{
|
|
210
|
+
ref: p,
|
|
211
|
+
className: t,
|
|
212
|
+
classNames: h,
|
|
213
|
+
variant: m[a],
|
|
214
|
+
size: b[n],
|
|
215
|
+
style: l,
|
|
216
|
+
src: d,
|
|
217
|
+
"data-variant": a,
|
|
218
|
+
"data-size": n,
|
|
219
|
+
"data-style": _,
|
|
204
220
|
...c,
|
|
205
|
-
className:
|
|
206
|
-
classNames: a
|
|
221
|
+
children: s != null ? /* @__PURE__ */ o("span", { className: k.iconWrapper, "aria-hidden": !0, children: s }) : i != null ? /* @__PURE__ */ o("span", { className: k.textWrapper, children: i }) : void 0
|
|
207
222
|
}
|
|
208
223
|
);
|
|
209
224
|
});
|
|
210
|
-
|
|
211
|
-
const
|
|
212
|
-
root:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
225
|
+
Ue.displayName = "Avatar";
|
|
226
|
+
const Xe = "Badge-module__root___5osNT", R = {
|
|
227
|
+
root: Xe
|
|
228
|
+
}, Je = y(function({ variant: n = "primary-color", overStyled: a = !1, ...s }, t) {
|
|
229
|
+
const r = $(s, a), i = {
|
|
230
|
+
root: R.root,
|
|
231
|
+
section: R.section,
|
|
232
|
+
label: R.label
|
|
233
|
+
}, l = r.classNames;
|
|
234
|
+
if (l && typeof l == "object" && !Array.isArray(l)) {
|
|
235
|
+
const p = l;
|
|
236
|
+
i.root = p.root ? `${R.root} ${p.root}` : R.root, i.section = p.section ?? R.section, i.label = p.label ?? R.label;
|
|
237
|
+
}
|
|
238
|
+
const d = r.className, c = d ? `${R.root} ${d}` : R.root;
|
|
239
|
+
return /* @__PURE__ */ o(
|
|
240
|
+
Te,
|
|
241
|
+
{
|
|
242
|
+
ref: t,
|
|
243
|
+
variant: "filled",
|
|
244
|
+
"data-variant": n,
|
|
245
|
+
...r,
|
|
246
|
+
className: c,
|
|
247
|
+
classNames: i
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
});
|
|
251
|
+
Je.displayName = "Badge";
|
|
252
|
+
const Qe = "Breadcrumb-module__root___x-9ln", eo = "Breadcrumb-module__separator___qrUX-", E = {
|
|
253
|
+
root: Qe,
|
|
254
|
+
separator: eo
|
|
255
|
+
}, oo = y(
|
|
256
|
+
function({ overStyled: n = !1, separator: a = ">", ...s }, t) {
|
|
257
|
+
const r = $(
|
|
258
|
+
{ separator: a, ...s },
|
|
259
|
+
n
|
|
260
|
+
), i = {
|
|
261
|
+
root: E.root,
|
|
262
|
+
separator: E.separator
|
|
263
|
+
}, l = r.classNames;
|
|
264
|
+
if (l && typeof l == "object" && !Array.isArray(l)) {
|
|
265
|
+
const p = l;
|
|
266
|
+
i.root = p.root ? `${E.root} ${p.root}` : E.root, i.separator = p.separator ? `${E.separator} ${p.separator}` : E.separator;
|
|
267
|
+
}
|
|
268
|
+
const d = r.className, c = d ? `${E.root} ${d}` : E.root;
|
|
269
|
+
return /* @__PURE__ */ o(
|
|
270
|
+
Ie,
|
|
271
|
+
{
|
|
272
|
+
ref: t,
|
|
273
|
+
...r,
|
|
274
|
+
className: c,
|
|
275
|
+
classNames: i
|
|
276
|
+
}
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
);
|
|
280
|
+
oo.displayName = "Breadcrumb";
|
|
281
|
+
const to = "Button-module__root___Q2R8-", ro = "Button-module__label___UJ3Zt", no = "Button-module__labelText___rFV5p", so = "Button-module__iconWrapper___uEKPa", ao = "Button-module__section___f2mKr", w = {
|
|
282
|
+
root: to,
|
|
283
|
+
label: ro,
|
|
284
|
+
labelText: no,
|
|
285
|
+
iconWrapper: so,
|
|
286
|
+
section: ao
|
|
217
287
|
};
|
|
218
|
-
function
|
|
288
|
+
function co(e) {
|
|
219
289
|
return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
|
|
220
290
|
}
|
|
221
|
-
const
|
|
291
|
+
const io = y(
|
|
222
292
|
function({
|
|
223
|
-
variant:
|
|
224
|
-
size:
|
|
225
|
-
icon:
|
|
226
|
-
children:
|
|
227
|
-
overStyled:
|
|
228
|
-
...
|
|
229
|
-
},
|
|
230
|
-
const
|
|
293
|
+
variant: n = "solid",
|
|
294
|
+
size: a = "default",
|
|
295
|
+
icon: s,
|
|
296
|
+
children: t,
|
|
297
|
+
overStyled: r = !1,
|
|
298
|
+
...i
|
|
299
|
+
}, l) {
|
|
300
|
+
const d = {
|
|
231
301
|
solid: "filled",
|
|
232
302
|
outline: "outline",
|
|
233
303
|
text: "subtle"
|
|
234
|
-
},
|
|
304
|
+
}, c = {
|
|
235
305
|
default: "md",
|
|
236
306
|
small: "sm"
|
|
237
|
-
},
|
|
238
|
-
|
|
307
|
+
}, p = $(i, r), m = p;
|
|
308
|
+
delete m.fullWidth;
|
|
309
|
+
const b = !!s || !!m.leftSection, _ = !!m.rightSection, h = (b || _) && !co(t);
|
|
310
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && h && !m["aria-label"] && console.warn(
|
|
239
311
|
'[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
|
|
240
312
|
);
|
|
241
|
-
const
|
|
242
|
-
root:
|
|
243
|
-
section:
|
|
244
|
-
label:
|
|
245
|
-
},
|
|
246
|
-
if (
|
|
247
|
-
const
|
|
248
|
-
|
|
313
|
+
const N = {
|
|
314
|
+
root: w.root,
|
|
315
|
+
section: w.section,
|
|
316
|
+
label: w.label
|
|
317
|
+
}, C = m.classNames;
|
|
318
|
+
if (C && typeof C == "object" && !Array.isArray(C)) {
|
|
319
|
+
const x = C;
|
|
320
|
+
N.root = x.root ? `${w.root} ${x.root}` : w.root, N.section = x.section ?? w.section, N.label = x.label ?? w.label;
|
|
249
321
|
}
|
|
250
|
-
const
|
|
322
|
+
const u = m.className, v = u ? `${w.root} ${u}` : w.root;
|
|
251
323
|
return /* @__PURE__ */ o(
|
|
252
|
-
|
|
324
|
+
Fe,
|
|
253
325
|
{
|
|
254
|
-
ref:
|
|
255
|
-
className:
|
|
256
|
-
classNames:
|
|
257
|
-
variant:
|
|
258
|
-
size:
|
|
259
|
-
leftSection:
|
|
260
|
-
"data-variant":
|
|
261
|
-
"data-size":
|
|
262
|
-
...
|
|
263
|
-
...
|
|
264
|
-
children: /* @__PURE__ */ o("span", { className:
|
|
326
|
+
ref: l,
|
|
327
|
+
className: v,
|
|
328
|
+
classNames: N,
|
|
329
|
+
variant: d[n],
|
|
330
|
+
size: c[a],
|
|
331
|
+
leftSection: s != null ? /* @__PURE__ */ o("span", { className: w.iconWrapper, "aria-hidden": !0, children: s }) : void 0,
|
|
332
|
+
"data-variant": n,
|
|
333
|
+
"data-size": a,
|
|
334
|
+
...h ? { "data-icon-only": "" } : {},
|
|
335
|
+
...p,
|
|
336
|
+
children: /* @__PURE__ */ o("span", { className: w.labelText, children: t })
|
|
265
337
|
}
|
|
266
338
|
);
|
|
267
339
|
}
|
|
268
340
|
);
|
|
269
|
-
|
|
270
|
-
const
|
|
271
|
-
root:
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
341
|
+
io.displayName = "Button";
|
|
342
|
+
const lo = "Card-module__root___c9KvZ", po = "Card-module__header___PTXf2", _o = "Card-module__footer___Mu-JC", mo = "Card-module__section___BRT8H", uo = "Card-module__content___oFIQa", B = {
|
|
343
|
+
root: lo,
|
|
344
|
+
header: po,
|
|
345
|
+
footer: _o,
|
|
346
|
+
section: mo,
|
|
347
|
+
content: uo
|
|
348
|
+
}, ue = y(function({ overStyled: n = !1, ...a }, s) {
|
|
349
|
+
const t = $(a, n), r = {
|
|
350
|
+
root: B.root
|
|
351
|
+
}, i = t.classNames;
|
|
352
|
+
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
353
|
+
const d = i;
|
|
354
|
+
Object.keys(d).forEach((c) => {
|
|
355
|
+
r[c] ? r[c] = `${r[c]} ${d[c]}` : r[c] = d[c];
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
const l = t.className;
|
|
275
359
|
return /* @__PURE__ */ o(
|
|
360
|
+
Z,
|
|
361
|
+
{
|
|
362
|
+
ref: s,
|
|
363
|
+
className: l,
|
|
364
|
+
classNames: r,
|
|
365
|
+
...t
|
|
366
|
+
}
|
|
367
|
+
);
|
|
368
|
+
});
|
|
369
|
+
ue.displayName = "Card";
|
|
370
|
+
const he = y(
|
|
371
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
372
|
+
const t = $(a, n), r = t.className;
|
|
373
|
+
return /* @__PURE__ */ o(
|
|
374
|
+
Z.Section,
|
|
375
|
+
{
|
|
376
|
+
ref: s,
|
|
377
|
+
className: r ? `${B.section} ${r}` : B.section,
|
|
378
|
+
...t
|
|
379
|
+
}
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
he.displayName = "CardSection";
|
|
384
|
+
const fe = y(
|
|
385
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
386
|
+
const t = $(a, n), r = t.className;
|
|
387
|
+
return /* @__PURE__ */ o(
|
|
388
|
+
Z.Section,
|
|
389
|
+
{
|
|
390
|
+
ref: s,
|
|
391
|
+
className: r ? `${B.header} ${r}` : B.header,
|
|
392
|
+
...t
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
);
|
|
397
|
+
fe.displayName = "CardHeader";
|
|
398
|
+
const be = y(
|
|
399
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
400
|
+
const t = $(a, n), r = t.className;
|
|
401
|
+
return /* @__PURE__ */ o(
|
|
402
|
+
Z.Section,
|
|
403
|
+
{
|
|
404
|
+
ref: s,
|
|
405
|
+
className: r ? `${B.footer} ${r}` : B.footer,
|
|
406
|
+
...t
|
|
407
|
+
}
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
);
|
|
411
|
+
be.displayName = "CardFooter";
|
|
412
|
+
const Ne = y(
|
|
413
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
414
|
+
const t = $(a, n), r = t.className;
|
|
415
|
+
return /* @__PURE__ */ o(
|
|
416
|
+
"div",
|
|
417
|
+
{
|
|
418
|
+
ref: s,
|
|
419
|
+
className: r ? `${B.content} ${r}` : B.content,
|
|
420
|
+
...t
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
);
|
|
425
|
+
Ne.displayName = "CardContent";
|
|
426
|
+
const Y = ue;
|
|
427
|
+
Y.Section = he;
|
|
428
|
+
Y.Header = fe;
|
|
429
|
+
Y.Footer = be;
|
|
430
|
+
Y.Content = Ne;
|
|
431
|
+
const ho = "Label-module__root___e6HXZ", fo = "Label-module__labelText___rieFR", bo = "Label-module__required___Ggrzc", No = "Label-module__optionalText___Y2yun", yo = "Label-module__actionAreaWrapper___ELoZK", $o = "Label-module__editIconWrapper___NG2xW", A = {
|
|
432
|
+
root: ho,
|
|
433
|
+
labelText: fo,
|
|
434
|
+
required: bo,
|
|
435
|
+
optionalText: No,
|
|
436
|
+
actionAreaWrapper: yo,
|
|
437
|
+
editIconWrapper: $o
|
|
438
|
+
}, ye = y(function({
|
|
439
|
+
formLayout: n = "stacked",
|
|
440
|
+
labelSize: a = "default",
|
|
441
|
+
labelAlignment: s,
|
|
442
|
+
required: t = !1,
|
|
443
|
+
labelOptionalText: r,
|
|
444
|
+
labelWithEditIcon: i,
|
|
445
|
+
labelActionArea: l,
|
|
446
|
+
onLabelEditClick: d,
|
|
447
|
+
children: c,
|
|
448
|
+
overStyled: p = !1,
|
|
449
|
+
...m
|
|
450
|
+
}, b) {
|
|
451
|
+
const _ = s || (n === "side-by-side" ? "right" : "left");
|
|
452
|
+
let h;
|
|
453
|
+
t || (r === !0 ? h = "optional" : r && (h = r));
|
|
454
|
+
const N = $(m, p), C = N, u = {
|
|
455
|
+
label: A.root,
|
|
456
|
+
required: A.required
|
|
457
|
+
}, v = C.classNames;
|
|
458
|
+
if (v && typeof v == "object" && !Array.isArray(v)) {
|
|
459
|
+
const W = v;
|
|
460
|
+
u.label = W.label ? `${A.root} ${W.label}` : A.root, u.required = W.required ? `${A.required} ${W.required}` : A.required;
|
|
461
|
+
}
|
|
462
|
+
const x = C.className, T = x ? `${A.root} ${x}` : A.root;
|
|
463
|
+
return /* @__PURE__ */ L(
|
|
464
|
+
le.Label,
|
|
465
|
+
{
|
|
466
|
+
ref: b,
|
|
467
|
+
className: T,
|
|
468
|
+
classNames: u,
|
|
469
|
+
"data-layout": n,
|
|
470
|
+
"data-size": a,
|
|
471
|
+
"data-alignment": _,
|
|
472
|
+
required: t && !i,
|
|
473
|
+
...N,
|
|
474
|
+
children: [
|
|
475
|
+
/* @__PURE__ */ o("span", { className: A.labelText, children: c }),
|
|
476
|
+
h && /* @__PURE__ */ o("span", { className: A.optionalText, children: typeof h == "string" ? `(${h})` : h }),
|
|
477
|
+
l ? /* @__PURE__ */ o("span", { className: A.actionAreaWrapper, children: l }) : i ? /* @__PURE__ */ o(
|
|
478
|
+
"button",
|
|
479
|
+
{
|
|
480
|
+
type: "button",
|
|
481
|
+
className: A.editIconWrapper,
|
|
482
|
+
"data-replaces-asterisk": t ? "true" : void 0,
|
|
483
|
+
onClick: d,
|
|
484
|
+
"aria-label": "Edit",
|
|
485
|
+
children: /* @__PURE__ */ o(
|
|
486
|
+
"svg",
|
|
487
|
+
{
|
|
488
|
+
width: "16",
|
|
489
|
+
height: "16",
|
|
490
|
+
viewBox: "0 0 16 16",
|
|
491
|
+
fill: "none",
|
|
492
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
493
|
+
children: /* @__PURE__ */ o(
|
|
494
|
+
"path",
|
|
495
|
+
{
|
|
496
|
+
d: "M11.5303 2.46967C11.8232 2.17678 12.2981 2.17678 12.591 2.46967L13.5303 3.40898C13.8232 3.70188 13.8232 4.17675 13.5303 4.46964L5.61288 12.3871C5.45268 12.5473 5.24434 12.6483 5.01809 12.6766L2.39534 13.0044C2.10091 13.0412 1.83856 12.7789 1.87538 12.4845L2.2032 9.86175C2.23147 9.63551 2.3325 9.42716 2.4927 9.26696L11.5303 2.46967Z",
|
|
497
|
+
stroke: "currentColor",
|
|
498
|
+
strokeLinecap: "round",
|
|
499
|
+
strokeLinejoin: "round"
|
|
500
|
+
}
|
|
501
|
+
)
|
|
502
|
+
}
|
|
503
|
+
)
|
|
504
|
+
}
|
|
505
|
+
) : null
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
);
|
|
509
|
+
});
|
|
510
|
+
ye.displayName = "Label";
|
|
511
|
+
const vo = "AssistiveElement-module__root___WhQ43", Co = "AssistiveElement-module__textWrapper___sfy5E", go = "AssistiveElement-module__iconWrapper___gObRF", X = {
|
|
512
|
+
root: vo,
|
|
513
|
+
textWrapper: Co,
|
|
514
|
+
iconWrapper: go
|
|
515
|
+
}, xo = () => /* @__PURE__ */ L(
|
|
516
|
+
"svg",
|
|
517
|
+
{
|
|
518
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
519
|
+
viewBox: "0 0 24 24",
|
|
520
|
+
fill: "none",
|
|
521
|
+
stroke: "currentColor",
|
|
522
|
+
strokeWidth: "2",
|
|
523
|
+
strokeLinecap: "round",
|
|
524
|
+
strokeLinejoin: "round",
|
|
525
|
+
children: [
|
|
526
|
+
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
527
|
+
/* @__PURE__ */ o("path", { d: "M12 16v-4" }),
|
|
528
|
+
/* @__PURE__ */ o("path", { d: "M12 8h.01" })
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
), Po = () => /* @__PURE__ */ L(
|
|
532
|
+
"svg",
|
|
533
|
+
{
|
|
534
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
535
|
+
viewBox: "0 0 24 24",
|
|
536
|
+
fill: "none",
|
|
537
|
+
stroke: "currentColor",
|
|
538
|
+
strokeWidth: "2",
|
|
539
|
+
strokeLinecap: "round",
|
|
540
|
+
strokeLinejoin: "round",
|
|
541
|
+
children: [
|
|
542
|
+
/* @__PURE__ */ o("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
543
|
+
/* @__PURE__ */ o("path", { d: "M12 9v4" }),
|
|
544
|
+
/* @__PURE__ */ o("path", { d: "M12 17h.01" })
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
), Q = y(function({
|
|
548
|
+
assistiveVariant: n = "help",
|
|
549
|
+
assistiveWithIcon: a = !0,
|
|
550
|
+
children: s,
|
|
551
|
+
className: t,
|
|
552
|
+
overStyled: r = !1,
|
|
553
|
+
...i
|
|
554
|
+
}, l) {
|
|
555
|
+
const c = $(i, r), p = X.root, m = t ? `${p} ${t}` : p, b = n === "error" ? Po : xo;
|
|
556
|
+
return /* @__PURE__ */ L(
|
|
276
557
|
"div",
|
|
277
558
|
{
|
|
278
|
-
ref:
|
|
279
|
-
className:
|
|
280
|
-
|
|
281
|
-
|
|
559
|
+
ref: l,
|
|
560
|
+
className: m,
|
|
561
|
+
"data-variant": n,
|
|
562
|
+
style: c.style,
|
|
563
|
+
...c,
|
|
564
|
+
children: [
|
|
565
|
+
a && /* @__PURE__ */ o("span", { className: X.iconWrapper, children: /* @__PURE__ */ o(b, {}) }),
|
|
566
|
+
/* @__PURE__ */ o("span", { className: X.textWrapper, children: s })
|
|
567
|
+
]
|
|
568
|
+
}
|
|
569
|
+
);
|
|
570
|
+
});
|
|
571
|
+
Q.displayName = "AssistiveElement";
|
|
572
|
+
const Ao = "FormControlWrapper-module__root___c-UHo", Wo = "FormControlWrapper-module__labelSection___hxSY4", ko = "FormControlWrapper-module__inputSection___HenXk", J = {
|
|
573
|
+
root: Ao,
|
|
574
|
+
labelSection: Wo,
|
|
575
|
+
inputSection: ko
|
|
576
|
+
}, M = y(function({
|
|
577
|
+
formLayout: n,
|
|
578
|
+
labelSize: a,
|
|
579
|
+
labelAlignment: s,
|
|
580
|
+
labelOptionalText: t,
|
|
581
|
+
labelWithEditIcon: r,
|
|
582
|
+
labelActionArea: i,
|
|
583
|
+
onLabelEditClick: l,
|
|
584
|
+
label: d,
|
|
585
|
+
description: c,
|
|
586
|
+
assistiveText: p,
|
|
587
|
+
assistiveWithIcon: m = !0,
|
|
588
|
+
controlMaxWidth: b,
|
|
589
|
+
controlMinWidth: _,
|
|
590
|
+
error: h,
|
|
591
|
+
required: N,
|
|
592
|
+
withAsterisk: C,
|
|
593
|
+
id: u,
|
|
594
|
+
children: v,
|
|
595
|
+
className: x,
|
|
596
|
+
overStyled: T = !1,
|
|
597
|
+
labelElement: W,
|
|
598
|
+
// Extracted safely preventing bleeding into HTML domains
|
|
599
|
+
...G
|
|
600
|
+
}, V) {
|
|
601
|
+
const q = We(), P = u || `recursica-fc-${q}`, I = p || c, j = I ? `${P}-assistive` : void 0, F = h ? `${P}-error` : void 0, U = $(G, T), re = x || U.className, ne = J.root, Pe = re ? `${ne} ${re}` : ne, Ae = O.isValidElement(v) ? O.cloneElement(
|
|
602
|
+
v,
|
|
603
|
+
{
|
|
604
|
+
...I && !v.props["aria-describedby"] ? { "aria-describedby": j } : {},
|
|
605
|
+
...h && !v.props["aria-errormessage"] ? { "aria-errormessage": F } : {}
|
|
606
|
+
}
|
|
607
|
+
) : v;
|
|
608
|
+
return /* @__PURE__ */ L(
|
|
609
|
+
de,
|
|
610
|
+
{
|
|
611
|
+
ref: V,
|
|
612
|
+
className: Pe,
|
|
613
|
+
"data-form-layout": n || "stacked",
|
|
614
|
+
"data-form-alignment": s || "left",
|
|
615
|
+
style: {
|
|
616
|
+
...U.style || {},
|
|
617
|
+
...b ? { "--form-control-max-width": b } : {},
|
|
618
|
+
..._ ? { "--form-control-min-width": _ } : {}
|
|
619
|
+
},
|
|
620
|
+
...U,
|
|
621
|
+
children: [
|
|
622
|
+
d && /* @__PURE__ */ o("div", { className: J.labelSection, children: /* @__PURE__ */ o(
|
|
623
|
+
ye,
|
|
624
|
+
{
|
|
625
|
+
id: P,
|
|
626
|
+
formLayout: n,
|
|
627
|
+
labelSize: a,
|
|
628
|
+
labelAlignment: s,
|
|
629
|
+
labelOptionalText: t,
|
|
630
|
+
labelWithEditIcon: r,
|
|
631
|
+
labelActionArea: i,
|
|
632
|
+
onLabelEditClick: l,
|
|
633
|
+
required: C ?? N,
|
|
634
|
+
...W === "div" ? { as: "div" } : {},
|
|
635
|
+
children: d
|
|
636
|
+
}
|
|
637
|
+
) }),
|
|
638
|
+
/* @__PURE__ */ L("div", { className: J.inputSection, children: [
|
|
639
|
+
Ae,
|
|
640
|
+
h && /* @__PURE__ */ o(
|
|
641
|
+
Q,
|
|
642
|
+
{
|
|
643
|
+
id: F,
|
|
644
|
+
assistiveVariant: "error",
|
|
645
|
+
assistiveWithIcon: m,
|
|
646
|
+
children: h
|
|
647
|
+
}
|
|
648
|
+
),
|
|
649
|
+
!h && I && /* @__PURE__ */ o(
|
|
650
|
+
Q,
|
|
651
|
+
{
|
|
652
|
+
id: j,
|
|
653
|
+
assistiveVariant: "help",
|
|
654
|
+
assistiveWithIcon: m,
|
|
655
|
+
children: I
|
|
656
|
+
}
|
|
657
|
+
)
|
|
658
|
+
] })
|
|
659
|
+
]
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
});
|
|
663
|
+
M.displayName = "FormControlWrapper";
|
|
664
|
+
const wo = "Checkbox-module__groupRoot___cBS0o", To = "Checkbox-module__root___mY3qk", Io = "Checkbox-module__body___5yC7q", Fo = "Checkbox-module__inner___rTke4", Ro = "Checkbox-module__input___2kt-h", So = "Checkbox-module__icon___-O7i6", zo = "Checkbox-module__labelWrapper___GpZkr", Lo = "Checkbox-module__label___cwRtI", f = {
|
|
665
|
+
groupRoot: wo,
|
|
666
|
+
root: To,
|
|
667
|
+
body: Io,
|
|
668
|
+
inner: Fo,
|
|
669
|
+
input: Ro,
|
|
670
|
+
icon: So,
|
|
671
|
+
labelWrapper: zo,
|
|
672
|
+
label: Lo
|
|
673
|
+
}, $e = y(
|
|
674
|
+
function({
|
|
675
|
+
overStyled: n = !1,
|
|
676
|
+
formLayout: a = "stacked",
|
|
677
|
+
// Label Wrappers
|
|
678
|
+
labelSize: s,
|
|
679
|
+
labelAlignment: t,
|
|
680
|
+
labelOptionalText: r,
|
|
681
|
+
labelWithEditIcon: i,
|
|
682
|
+
onLabelEditClick: l,
|
|
683
|
+
// Base Mantine Extracted Attributes
|
|
684
|
+
label: d,
|
|
685
|
+
description: c,
|
|
686
|
+
assistiveText: p,
|
|
687
|
+
assistiveWithIcon: m,
|
|
688
|
+
error: b,
|
|
689
|
+
required: _,
|
|
690
|
+
withAsterisk: h,
|
|
691
|
+
id: N,
|
|
692
|
+
className: C,
|
|
693
|
+
style: u,
|
|
694
|
+
children: v,
|
|
695
|
+
readOnly: x,
|
|
696
|
+
readOnlyComponent: T,
|
|
697
|
+
...W
|
|
698
|
+
}, G) {
|
|
699
|
+
const V = $(W, n), q = V;
|
|
700
|
+
return delete q.size, x && T ? /* @__PURE__ */ o(
|
|
701
|
+
M,
|
|
702
|
+
{
|
|
703
|
+
className: C,
|
|
704
|
+
style: u,
|
|
705
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
706
|
+
controlMinWidth: void 0,
|
|
707
|
+
overStyled: n,
|
|
708
|
+
labelElement: "div",
|
|
709
|
+
formLayout: a,
|
|
710
|
+
labelSize: s,
|
|
711
|
+
labelAlignment: t,
|
|
712
|
+
labelOptionalText: r,
|
|
713
|
+
labelWithEditIcon: i,
|
|
714
|
+
onLabelEditClick: l,
|
|
715
|
+
label: d,
|
|
716
|
+
description: c,
|
|
717
|
+
assistiveText: p,
|
|
718
|
+
assistiveWithIcon: m,
|
|
719
|
+
error: b,
|
|
720
|
+
required: _,
|
|
721
|
+
withAsterisk: h,
|
|
722
|
+
id: N,
|
|
723
|
+
children: T
|
|
724
|
+
}
|
|
725
|
+
) : /* @__PURE__ */ o(
|
|
726
|
+
M,
|
|
727
|
+
{
|
|
728
|
+
className: C,
|
|
729
|
+
style: u,
|
|
730
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
731
|
+
controlMinWidth: void 0,
|
|
732
|
+
overStyled: n,
|
|
733
|
+
labelElement: "div",
|
|
734
|
+
formLayout: a,
|
|
735
|
+
labelSize: s,
|
|
736
|
+
labelAlignment: t,
|
|
737
|
+
labelOptionalText: r,
|
|
738
|
+
labelWithEditIcon: i,
|
|
739
|
+
onLabelEditClick: l,
|
|
740
|
+
label: d,
|
|
741
|
+
description: c,
|
|
742
|
+
assistiveText: p,
|
|
743
|
+
assistiveWithIcon: m,
|
|
744
|
+
error: b,
|
|
745
|
+
required: _,
|
|
746
|
+
withAsterisk: h,
|
|
747
|
+
id: N,
|
|
748
|
+
children: /* @__PURE__ */ o(
|
|
749
|
+
pe.Group,
|
|
750
|
+
{
|
|
751
|
+
ref: G,
|
|
752
|
+
...V,
|
|
753
|
+
children: /* @__PURE__ */ o("div", { className: f.groupRoot, "data-layout": a, children: O.Children.map(v, (P) => O.isValidElement(P) ? O.cloneElement(P, {
|
|
754
|
+
disabled: x || P.props.disabled
|
|
755
|
+
}) : P) })
|
|
756
|
+
}
|
|
757
|
+
)
|
|
758
|
+
}
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
);
|
|
762
|
+
$e.displayName = "CheckboxGroup";
|
|
763
|
+
const ve = y(
|
|
764
|
+
function({ overStyled: n = !1, readOnly: a, readOnlyComponent: s, disabled: t, ...r }, i) {
|
|
765
|
+
const l = $(r, n), d = l;
|
|
766
|
+
if (delete d.size, delete d.color, delete d.radius, delete d.variant, delete d.iconColor, a && s)
|
|
767
|
+
return /* @__PURE__ */ o(
|
|
768
|
+
M,
|
|
769
|
+
{
|
|
770
|
+
overStyled: n,
|
|
771
|
+
...l,
|
|
772
|
+
children: s
|
|
773
|
+
}
|
|
774
|
+
);
|
|
775
|
+
const c = {
|
|
776
|
+
root: f.root,
|
|
777
|
+
body: f.body,
|
|
778
|
+
inner: f.inner,
|
|
779
|
+
input: f.input,
|
|
780
|
+
icon: f.icon,
|
|
781
|
+
labelWrapper: f.labelWrapper,
|
|
782
|
+
label: f.label
|
|
783
|
+
}, p = d.classNames;
|
|
784
|
+
if (p && typeof p == "object" && !Array.isArray(p)) {
|
|
785
|
+
const _ = p;
|
|
786
|
+
c.root = _.root ? `${f.root} ${_.root}` : f.root, c.body = _.body ? `${f.body} ${_.body}` : f.body, c.inner = _.inner ? `${f.inner} ${_.inner}` : f.inner, c.input = _.input ? `${f.input} ${_.input}` : f.input, c.icon = _.icon ? `${f.icon} ${_.icon}` : f.icon, c.labelWrapper = _.labelWrapper ? `${f.labelWrapper} ${_.labelWrapper}` : f.labelWrapper, c.label = _.label ? `${f.label} ${_.label}` : f.label;
|
|
787
|
+
}
|
|
788
|
+
const m = d.className, b = m ? `${f.root} ${m}` : f.root;
|
|
789
|
+
return /* @__PURE__ */ o(
|
|
790
|
+
pe,
|
|
791
|
+
{
|
|
792
|
+
ref: i,
|
|
793
|
+
className: b,
|
|
794
|
+
classNames: c,
|
|
795
|
+
disabled: a || t,
|
|
796
|
+
...l
|
|
797
|
+
}
|
|
798
|
+
);
|
|
799
|
+
}
|
|
800
|
+
);
|
|
801
|
+
ve.displayName = "Checkbox";
|
|
802
|
+
ve.Group = $e;
|
|
803
|
+
const Bo = "Chip-module__root___f5pFk", Eo = "Chip-module__label___Ov9pg", jo = "Chip-module__mantineIconWrapper___KLSz6", Oo = "Chip-module__innerWrapper___EnrTF", Mo = "Chip-module__children___zbRAR", Vo = "Chip-module__leadingIcon___JBtjQ", qo = "Chip-module__removeIcon___pVju-", g = {
|
|
804
|
+
root: Bo,
|
|
805
|
+
label: Eo,
|
|
806
|
+
mantineIconWrapper: jo,
|
|
807
|
+
innerWrapper: Oo,
|
|
808
|
+
children: Mo,
|
|
809
|
+
leadingIcon: Vo,
|
|
810
|
+
removeIcon: qo
|
|
811
|
+
};
|
|
812
|
+
function Do(e) {
|
|
813
|
+
return /* @__PURE__ */ L(
|
|
814
|
+
"svg",
|
|
815
|
+
{
|
|
816
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
817
|
+
width: "24",
|
|
818
|
+
height: "24",
|
|
819
|
+
viewBox: "0 0 24 24",
|
|
820
|
+
fill: "none",
|
|
821
|
+
stroke: "currentColor",
|
|
822
|
+
strokeWidth: "2",
|
|
823
|
+
strokeLinecap: "round",
|
|
824
|
+
strokeLinejoin: "round",
|
|
825
|
+
...e,
|
|
826
|
+
children: [
|
|
827
|
+
/* @__PURE__ */ o("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
828
|
+
/* @__PURE__ */ o("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
829
|
+
]
|
|
830
|
+
}
|
|
831
|
+
);
|
|
832
|
+
}
|
|
833
|
+
const Go = y(function({
|
|
834
|
+
error: n = !1,
|
|
835
|
+
icon: a,
|
|
836
|
+
onRemove: s,
|
|
837
|
+
removeLabel: t = "Remove",
|
|
838
|
+
children: r,
|
|
839
|
+
overStyled: i = !1,
|
|
840
|
+
...l
|
|
841
|
+
}, d) {
|
|
842
|
+
const c = $(l, i), p = c, m = {
|
|
843
|
+
root: g.root,
|
|
844
|
+
label: g.label,
|
|
845
|
+
input: g.input,
|
|
846
|
+
iconWrapper: g.mantineIconWrapper,
|
|
847
|
+
checkIcon: g.checkIcon
|
|
848
|
+
}, b = p.classNames;
|
|
849
|
+
if (b && typeof b == "object" && !Array.isArray(b)) {
|
|
850
|
+
const u = b;
|
|
851
|
+
m.root = u.root ? `${g.root} ${u.root}` : g.root, m.label = u.label ? `${g.label} ${u.label}` : g.label;
|
|
852
|
+
}
|
|
853
|
+
const _ = p.className, h = _ ? `${g.root} ${_}` : g.root;
|
|
854
|
+
return /* @__PURE__ */ o(
|
|
855
|
+
Re,
|
|
856
|
+
{
|
|
857
|
+
ref: d,
|
|
858
|
+
className: h,
|
|
859
|
+
classNames: m,
|
|
860
|
+
...(n ? "" : void 0) !== void 0 ? { "data-error": "" } : {},
|
|
861
|
+
...!r && (!!a || !!s) ? { "data-icon-only": "" } : {},
|
|
282
862
|
...c,
|
|
283
|
-
children:
|
|
863
|
+
children: /* @__PURE__ */ L("span", { className: g.innerWrapper, children: [
|
|
864
|
+
a && /* @__PURE__ */ o("span", { className: g.leadingIcon, "aria-hidden": !0, children: a }),
|
|
865
|
+
/* @__PURE__ */ o("span", { className: g.children, children: r }),
|
|
866
|
+
s && /* @__PURE__ */ o(
|
|
867
|
+
"span",
|
|
868
|
+
{
|
|
869
|
+
role: "button",
|
|
870
|
+
className: g.removeIcon,
|
|
871
|
+
onClick: (u) => {
|
|
872
|
+
u.preventDefault(), u.stopPropagation(), s(u);
|
|
873
|
+
},
|
|
874
|
+
"aria-label": t,
|
|
875
|
+
onKeyDown: (u) => {
|
|
876
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.stopPropagation(), s(
|
|
877
|
+
u
|
|
878
|
+
));
|
|
879
|
+
},
|
|
880
|
+
tabIndex: 0,
|
|
881
|
+
children: /* @__PURE__ */ o(Do, {})
|
|
882
|
+
}
|
|
883
|
+
)
|
|
884
|
+
] })
|
|
284
885
|
}
|
|
285
886
|
);
|
|
286
887
|
});
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
888
|
+
Go.displayName = "Chip";
|
|
889
|
+
const nt = (e) => /* @__PURE__ */ o("div", { ...e, children: "DatePicker" }), st = (e) => /* @__PURE__ */ o("div", { ...e, children: "Dropdown" }), at = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileInput" }), ct = (e) => /* @__PURE__ */ o("div", { ...e, children: "FileUpload" }), it = (e) => /* @__PURE__ */ o("div", { ...e, children: "HoverCard" }), lt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Link" }), dt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Loader" }), pt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Menu" }), _t = (e) => /* @__PURE__ */ o("div", { ...e, children: "Modal" }), mt = (e) => /* @__PURE__ */ o("div", { ...e, children: "NumberInput" }), ut = (e) => /* @__PURE__ */ o("div", { ...e, children: "Pagination" }), ht = (e) => /* @__PURE__ */ o("div", { ...e, children: "Panel" }), ft = (e) => /* @__PURE__ */ o("div", { ...e, children: "Popover" }), bt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Radio" }), Ho = "_root_1qhn7_3", Ko = "_contents_1qhn7_18", D = {
|
|
890
|
+
root: Ho,
|
|
891
|
+
contents: Ko
|
|
892
|
+
}, Zo = y(function({ layer: e, contentsOnly: n, children: a, className: s, style: t, ...r }, i) {
|
|
893
|
+
const l = n ? s ? `${D.root} ${D.contents} ${s}` : `${D.root} ${D.contents}` : s ? `${D.root} ${s}` : D.root;
|
|
894
|
+
return /* @__PURE__ */ o(
|
|
895
|
+
"div",
|
|
896
|
+
{
|
|
897
|
+
ref: i,
|
|
898
|
+
className: l,
|
|
899
|
+
style: t,
|
|
900
|
+
...n ? {} : { "data-recursica-layer": String(e) },
|
|
901
|
+
...r,
|
|
902
|
+
children: a
|
|
903
|
+
}
|
|
904
|
+
);
|
|
905
|
+
});
|
|
906
|
+
Zo.displayName = "Layer";
|
|
907
|
+
const H = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ o(O.Fragment, { children: e });
|
|
908
|
+
H.displayName = "EmptyValueRenderer";
|
|
909
|
+
H.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
910
|
+
const ae = "data-recursica-theme";
|
|
911
|
+
function Nt({
|
|
290
912
|
children: e,
|
|
291
|
-
theme:
|
|
913
|
+
theme: n = "light"
|
|
292
914
|
}) {
|
|
293
|
-
return
|
|
294
|
-
const
|
|
295
|
-
return
|
|
296
|
-
|
|
915
|
+
return ke(() => {
|
|
916
|
+
const a = document.documentElement;
|
|
917
|
+
return a.setAttribute(ae, n), () => {
|
|
918
|
+
a.removeAttribute(ae);
|
|
297
919
|
};
|
|
298
|
-
}, [
|
|
920
|
+
}, [n]), /* @__PURE__ */ o(ie, { children: e });
|
|
299
921
|
}
|
|
922
|
+
const Yo = "ReadOnlyField-module__textField___qKn25", ce = {
|
|
923
|
+
textField: Yo
|
|
924
|
+
}, Ce = ({
|
|
925
|
+
value: e,
|
|
926
|
+
overStyled: n = !1,
|
|
927
|
+
...a
|
|
928
|
+
}) => {
|
|
929
|
+
const s = $(a, n), t = s.className;
|
|
930
|
+
return /* @__PURE__ */ o(
|
|
931
|
+
de,
|
|
932
|
+
{
|
|
933
|
+
component: "p",
|
|
934
|
+
className: t ? `${ce.textField} ${t}` : ce.textField,
|
|
935
|
+
...s,
|
|
936
|
+
children: e != null ? O.isValidElement(e) ? e : String(e) : ""
|
|
937
|
+
}
|
|
938
|
+
);
|
|
939
|
+
};
|
|
940
|
+
Ce.displayName = "ReadOnlyTextField";
|
|
941
|
+
const ge = y(
|
|
942
|
+
function({ value: n, type: a = "text", emptyValueComponent: s, overStyled: t = !1, ...r }, i) {
|
|
943
|
+
let l = null;
|
|
944
|
+
const d = $(r, t), c = s || H, m = (c.check ? c.check(n) : H.check(n)) ? /* @__PURE__ */ o(c, { value: n }) : n;
|
|
945
|
+
switch (a) {
|
|
946
|
+
case "text":
|
|
947
|
+
default:
|
|
948
|
+
l = /* @__PURE__ */ o(
|
|
949
|
+
Ce,
|
|
950
|
+
{
|
|
951
|
+
value: m,
|
|
952
|
+
overStyled: t
|
|
953
|
+
}
|
|
954
|
+
);
|
|
955
|
+
break;
|
|
956
|
+
}
|
|
957
|
+
return /* @__PURE__ */ o(
|
|
958
|
+
M,
|
|
959
|
+
{
|
|
960
|
+
ref: i,
|
|
961
|
+
overStyled: t,
|
|
962
|
+
...d,
|
|
963
|
+
children: l
|
|
964
|
+
}
|
|
965
|
+
);
|
|
966
|
+
}
|
|
967
|
+
);
|
|
968
|
+
ge.displayName = "ReadOnlyField";
|
|
969
|
+
const xe = y(function({
|
|
970
|
+
readOnly: n,
|
|
971
|
+
readOnlyComponent: a,
|
|
972
|
+
readOnlyType: s = "text",
|
|
973
|
+
readOnlyValue: t,
|
|
974
|
+
activeComponent: r,
|
|
975
|
+
overStyled: i,
|
|
976
|
+
onLabelEditClick: l,
|
|
977
|
+
...d
|
|
978
|
+
}, c) {
|
|
979
|
+
return n ? a ? /* @__PURE__ */ o(
|
|
980
|
+
M,
|
|
981
|
+
{
|
|
982
|
+
ref: c,
|
|
983
|
+
...d,
|
|
984
|
+
onLabelEditClick: l,
|
|
985
|
+
overStyled: i,
|
|
986
|
+
children: a
|
|
987
|
+
}
|
|
988
|
+
) : /* @__PURE__ */ o(
|
|
989
|
+
ge,
|
|
990
|
+
{
|
|
991
|
+
ref: c,
|
|
992
|
+
type: s,
|
|
993
|
+
value: t,
|
|
994
|
+
onLabelEditClick: l,
|
|
995
|
+
overStyled: i,
|
|
996
|
+
...d
|
|
997
|
+
}
|
|
998
|
+
) : /* @__PURE__ */ o(
|
|
999
|
+
M,
|
|
1000
|
+
{
|
|
1001
|
+
ref: c,
|
|
1002
|
+
...d,
|
|
1003
|
+
onLabelEditClick: l,
|
|
1004
|
+
overStyled: i,
|
|
1005
|
+
children: r
|
|
1006
|
+
}
|
|
1007
|
+
);
|
|
1008
|
+
});
|
|
1009
|
+
xe.displayName = "WithReadOnlyWrapper";
|
|
1010
|
+
const yt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), $t = (e) => /* @__PURE__ */ o("div", { ...e, children: "SegmentedControl" }), vt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Slider" }), Ct = (e) => /* @__PURE__ */ o("div", { ...e, children: "Stepper" }), gt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Switch" }), xt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Table" }), Pt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tabs" }), At = (e) => /* @__PURE__ */ o("div", { ...e, children: "TextArea" }), Uo = "TextField-module__root___2ZYkG", Xo = "TextField-module__input___RL-My", Jo = "TextField-module__section___bCIJ0", S = {
|
|
1011
|
+
root: Uo,
|
|
1012
|
+
input: Xo,
|
|
1013
|
+
section: Jo
|
|
1014
|
+
}, Qo = y(
|
|
1015
|
+
function({
|
|
1016
|
+
overStyled: n = !1,
|
|
1017
|
+
formLayout: a = "stacked",
|
|
1018
|
+
// Label & Wrapper Maps
|
|
1019
|
+
labelSize: s,
|
|
1020
|
+
labelAlignment: t,
|
|
1021
|
+
labelOptionalText: r,
|
|
1022
|
+
labelWithEditIcon: i,
|
|
1023
|
+
onLabelEditClick: l,
|
|
1024
|
+
label: d,
|
|
1025
|
+
assistiveText: c,
|
|
1026
|
+
assistiveWithIcon: p,
|
|
1027
|
+
error: m,
|
|
1028
|
+
required: b,
|
|
1029
|
+
withAsterisk: _,
|
|
1030
|
+
id: h,
|
|
1031
|
+
className: N,
|
|
1032
|
+
style: C,
|
|
1033
|
+
disabled: u,
|
|
1034
|
+
readOnly: v,
|
|
1035
|
+
readOnlyComponent: x,
|
|
1036
|
+
value: T,
|
|
1037
|
+
defaultValue: W,
|
|
1038
|
+
...G
|
|
1039
|
+
}, V) {
|
|
1040
|
+
const q = $(G, n), P = q;
|
|
1041
|
+
delete P.size, delete P.variant, delete P.radius;
|
|
1042
|
+
const I = {
|
|
1043
|
+
wrapper: S.root,
|
|
1044
|
+
// The nested Input internal relative wrapper bounding box
|
|
1045
|
+
input: S.input,
|
|
1046
|
+
section: S.section
|
|
1047
|
+
}, j = P.classNames;
|
|
1048
|
+
if (j && typeof j == "object" && !Array.isArray(j)) {
|
|
1049
|
+
const F = j;
|
|
1050
|
+
I.wrapper = F.wrapper ? `${S.root} ${F.wrapper}` : S.root, I.input = F.input ? `${S.input} ${F.input}` : S.input, I.section = F.section ? `${S.section} ${F.section}` : S.section;
|
|
1051
|
+
}
|
|
1052
|
+
return /* @__PURE__ */ o(
|
|
1053
|
+
xe,
|
|
1054
|
+
{
|
|
1055
|
+
className: N,
|
|
1056
|
+
style: C,
|
|
1057
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
|
|
1058
|
+
controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
|
|
1059
|
+
overStyled: n,
|
|
1060
|
+
formLayout: a,
|
|
1061
|
+
labelSize: s,
|
|
1062
|
+
labelAlignment: t,
|
|
1063
|
+
labelOptionalText: r,
|
|
1064
|
+
labelWithEditIcon: i,
|
|
1065
|
+
onLabelEditClick: l,
|
|
1066
|
+
label: d,
|
|
1067
|
+
assistiveText: c,
|
|
1068
|
+
assistiveWithIcon: p,
|
|
1069
|
+
error: m,
|
|
1070
|
+
required: b,
|
|
1071
|
+
withAsterisk: _,
|
|
1072
|
+
id: h,
|
|
1073
|
+
readOnly: v,
|
|
1074
|
+
readOnlyComponent: x,
|
|
1075
|
+
readOnlyType: "text",
|
|
1076
|
+
readOnlyValue: T !== void 0 ? T : W,
|
|
1077
|
+
activeComponent: (
|
|
1078
|
+
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1079
|
+
/* @__PURE__ */ o(
|
|
1080
|
+
le,
|
|
1081
|
+
{
|
|
1082
|
+
ref: V,
|
|
1083
|
+
classNames: I,
|
|
1084
|
+
disabled: u,
|
|
1085
|
+
value: T,
|
|
1086
|
+
defaultValue: W,
|
|
1087
|
+
wrapperProps: {
|
|
1088
|
+
"data-disabled": u ? "true" : void 0,
|
|
1089
|
+
"data-error": m ? "true" : void 0
|
|
1090
|
+
},
|
|
1091
|
+
...q
|
|
1092
|
+
}
|
|
1093
|
+
)
|
|
1094
|
+
)
|
|
1095
|
+
}
|
|
1096
|
+
);
|
|
1097
|
+
}
|
|
1098
|
+
);
|
|
1099
|
+
Qo.displayName = "TextField";
|
|
1100
|
+
const Wt = (e) => /* @__PURE__ */ o("div", { ...e, children: "TimePicker" }), kt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Timeline" }), wt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Toast" }), Tt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Tooltip" }), It = (e) => /* @__PURE__ */ o("div", { ...e, children: "TransferList" });
|
|
300
1101
|
export {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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
|
-
|
|
1102
|
+
te as Accordion,
|
|
1103
|
+
ee as AccordionControl,
|
|
1104
|
+
me as AccordionItem,
|
|
1105
|
+
oe as AccordionPanel,
|
|
1106
|
+
Ue as Avatar,
|
|
1107
|
+
Je as Badge,
|
|
1108
|
+
oo as Breadcrumb,
|
|
1109
|
+
io as Button,
|
|
1110
|
+
Y as Card,
|
|
1111
|
+
Ne as CardContent,
|
|
1112
|
+
be as CardFooter,
|
|
1113
|
+
fe as CardHeader,
|
|
1114
|
+
he as CardSection,
|
|
1115
|
+
ve as Checkbox,
|
|
1116
|
+
$e as CheckboxGroup,
|
|
1117
|
+
Go as Chip,
|
|
1118
|
+
nt as DatePicker,
|
|
1119
|
+
st as Dropdown,
|
|
1120
|
+
H as EmptyValueRenderer,
|
|
1121
|
+
at as FileInput,
|
|
1122
|
+
ct as FileUpload,
|
|
1123
|
+
it as HoverCard,
|
|
1124
|
+
ye as Label,
|
|
1125
|
+
Zo as Layer,
|
|
1126
|
+
lt as Link,
|
|
1127
|
+
dt as Loader,
|
|
1128
|
+
pt as Menu,
|
|
1129
|
+
_t as Modal,
|
|
1130
|
+
mt as NumberInput,
|
|
1131
|
+
ut as Pagination,
|
|
1132
|
+
ht as Panel,
|
|
1133
|
+
ft as Popover,
|
|
1134
|
+
bt as Radio,
|
|
1135
|
+
ge as ReadOnlyField,
|
|
1136
|
+
Ce as ReadOnlyTextField,
|
|
1137
|
+
Nt as RecursicaThemeProvider,
|
|
1138
|
+
yt as Search,
|
|
1139
|
+
$t as SegmentedControl,
|
|
1140
|
+
vt as Slider,
|
|
1141
|
+
Ct as Stepper,
|
|
1142
|
+
gt as Switch,
|
|
1143
|
+
xt as Table,
|
|
1144
|
+
Pt as Tabs,
|
|
1145
|
+
At as TextArea,
|
|
1146
|
+
Qo as TextField,
|
|
1147
|
+
Wt as TimePicker,
|
|
1148
|
+
kt as Timeline,
|
|
1149
|
+
wt as Toast,
|
|
1150
|
+
Tt as Tooltip,
|
|
1151
|
+
It as TransferList,
|
|
1152
|
+
xe as WithReadOnlyWrapper
|
|
343
1153
|
};
|
|
344
1154
|
//# sourceMappingURL=mantine-adapter.js.map
|