@recursica/mantine-adapter 0.6.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 +660 -586
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/src/components/Chip/Chip.d.ts +14 -2
- package/package.json +5 -2
- 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,6 +1,6 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import O, { forwardRef as
|
|
3
|
-
import { Accordion as
|
|
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
4
|
const Se = [
|
|
5
5
|
"className",
|
|
6
6
|
"classNames",
|
|
@@ -69,8 +69,8 @@ const Se = [
|
|
|
69
69
|
"rec-xl": "var(--recursica_brand_dimensions_general_xl)",
|
|
70
70
|
"rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
|
|
71
71
|
};
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
72
|
+
function $(e, n) {
|
|
73
|
+
if (n)
|
|
74
74
|
return e;
|
|
75
75
|
const a = { ...e };
|
|
76
76
|
for (const s of Se)
|
|
@@ -79,451 +79,408 @@ function b(e, r) {
|
|
|
79
79
|
typeof t == "string" && t.startsWith("rec-") && ze.has(s) && t in se && (a[s] = se[t]);
|
|
80
80
|
return a;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
83
|
-
root:
|
|
84
|
-
item:
|
|
85
|
-
noDivider:
|
|
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
86
|
control: je,
|
|
87
|
-
label:
|
|
88
|
-
chevron:
|
|
89
|
-
iconLeftWrapper:
|
|
90
|
-
panel:
|
|
91
|
-
content:
|
|
87
|
+
label: Oe,
|
|
88
|
+
chevron: Me,
|
|
89
|
+
iconLeftWrapper: Ve,
|
|
90
|
+
panel: qe,
|
|
91
|
+
content: De
|
|
92
92
|
}, _e = function({
|
|
93
|
-
variant:
|
|
93
|
+
variant: n = "unstyled",
|
|
94
94
|
overStyled: a = !1,
|
|
95
95
|
...s
|
|
96
96
|
}) {
|
|
97
|
-
const t =
|
|
98
|
-
root:
|
|
99
|
-
item:
|
|
100
|
-
control:
|
|
101
|
-
label:
|
|
102
|
-
chevron:
|
|
103
|
-
panel:
|
|
104
|
-
content:
|
|
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
105
|
}, i = t.classNames;
|
|
106
106
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
107
|
-
const
|
|
108
|
-
Object.keys(
|
|
109
|
-
|
|
107
|
+
const d = i;
|
|
108
|
+
Object.keys(d).forEach((c) => {
|
|
109
|
+
r[c] ? r[c] = `${r[c]} ${d[c]}` : r[c] = d[c];
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const l = t.className;
|
|
113
113
|
return /* @__PURE__ */ o(
|
|
114
|
-
|
|
114
|
+
K,
|
|
115
115
|
{
|
|
116
|
-
variant:
|
|
117
|
-
className:
|
|
118
|
-
classNames:
|
|
116
|
+
variant: n,
|
|
117
|
+
className: l,
|
|
118
|
+
classNames: r,
|
|
119
119
|
...t
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
123
|
_e.displayName = "Accordion";
|
|
124
|
-
const
|
|
125
|
-
const
|
|
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;
|
|
126
126
|
return /* @__PURE__ */ o(
|
|
127
|
-
|
|
127
|
+
K.Item,
|
|
128
128
|
{
|
|
129
|
-
ref:
|
|
130
|
-
className:
|
|
131
|
-
...
|
|
132
|
-
children:
|
|
133
|
-
/* @__PURE__ */ o(
|
|
134
|
-
/* @__PURE__ */ o(
|
|
129
|
+
ref: l,
|
|
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
135
|
] }) : t
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
});
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
const i =
|
|
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
142
|
return /* @__PURE__ */ o(
|
|
143
|
-
|
|
143
|
+
K.Control,
|
|
144
144
|
{
|
|
145
|
-
ref:
|
|
146
|
-
className:
|
|
147
|
-
icon:
|
|
145
|
+
ref: r,
|
|
146
|
+
className: l,
|
|
147
|
+
icon: n ? /* @__PURE__ */ o("span", { className: z.iconLeftWrapper, "aria-hidden": !0, children: n }) : void 0,
|
|
148
148
|
...i,
|
|
149
149
|
children: a
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
});
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
const t =
|
|
153
|
+
ee.displayName = "AccordionControl";
|
|
154
|
+
const oe = y(function({ overStyled: n = !1, ...a }, s) {
|
|
155
|
+
const t = $(a, n), r = t.className;
|
|
156
156
|
return /* @__PURE__ */ o(
|
|
157
|
-
|
|
157
|
+
K.Panel,
|
|
158
158
|
{
|
|
159
159
|
ref: s,
|
|
160
|
-
className:
|
|
160
|
+
className: r,
|
|
161
161
|
...t
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
root:
|
|
172
|
-
iconWrapper:
|
|
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
173
|
textWrapper: Ke,
|
|
174
|
-
image:
|
|
175
|
-
placeholder:
|
|
176
|
-
},
|
|
177
|
-
size:
|
|
174
|
+
image: Ze,
|
|
175
|
+
placeholder: Ye
|
|
176
|
+
}, Ue = y(function({
|
|
177
|
+
size: n = "default",
|
|
178
178
|
variant: a = "solid",
|
|
179
179
|
icon: s,
|
|
180
180
|
className: t,
|
|
181
|
-
classNames:
|
|
181
|
+
classNames: r,
|
|
182
182
|
children: i,
|
|
183
|
-
style:
|
|
184
|
-
src:
|
|
183
|
+
style: l,
|
|
184
|
+
src: d,
|
|
185
185
|
...c
|
|
186
|
-
},
|
|
187
|
-
const
|
|
186
|
+
}, p) {
|
|
187
|
+
const m = {
|
|
188
188
|
solid: "filled",
|
|
189
189
|
outline: "outline",
|
|
190
190
|
ghost: "transparent"
|
|
191
|
-
},
|
|
191
|
+
}, b = {
|
|
192
192
|
default: "md",
|
|
193
193
|
small: "sm",
|
|
194
194
|
large: "lg"
|
|
195
195
|
};
|
|
196
|
-
let
|
|
197
|
-
|
|
198
|
-
const
|
|
196
|
+
let _ = "text";
|
|
197
|
+
d ? _ = "image" : s && (_ = "icon");
|
|
198
|
+
const h = {
|
|
199
199
|
root: k.root,
|
|
200
200
|
image: k.image,
|
|
201
201
|
placeholder: k.placeholder
|
|
202
202
|
};
|
|
203
|
-
if (
|
|
204
|
-
const
|
|
205
|
-
|
|
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
206
|
}
|
|
207
207
|
return /* @__PURE__ */ o(
|
|
208
|
-
|
|
208
|
+
we,
|
|
209
209
|
{
|
|
210
|
-
ref:
|
|
210
|
+
ref: p,
|
|
211
211
|
className: t,
|
|
212
|
-
classNames:
|
|
213
|
-
variant:
|
|
214
|
-
size:
|
|
215
|
-
style:
|
|
216
|
-
src:
|
|
212
|
+
classNames: h,
|
|
213
|
+
variant: m[a],
|
|
214
|
+
size: b[n],
|
|
215
|
+
style: l,
|
|
216
|
+
src: d,
|
|
217
217
|
"data-variant": a,
|
|
218
|
-
"data-size":
|
|
219
|
-
"data-style":
|
|
218
|
+
"data-size": n,
|
|
219
|
+
"data-style": _,
|
|
220
220
|
...c,
|
|
221
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
|
|
222
222
|
}
|
|
223
223
|
);
|
|
224
224
|
});
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
root:
|
|
228
|
-
},
|
|
229
|
-
const
|
|
230
|
-
root:
|
|
231
|
-
section:
|
|
232
|
-
label:
|
|
233
|
-
},
|
|
234
|
-
if (
|
|
235
|
-
const
|
|
236
|
-
i.root =
|
|
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
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const d = r.className, c = d ? `${R.root} ${d}` : R.root;
|
|
239
239
|
return /* @__PURE__ */ o(
|
|
240
|
-
|
|
240
|
+
Te,
|
|
241
241
|
{
|
|
242
242
|
ref: t,
|
|
243
243
|
variant: "filled",
|
|
244
|
-
"data-variant":
|
|
245
|
-
...
|
|
244
|
+
"data-variant": n,
|
|
245
|
+
...r,
|
|
246
246
|
className: c,
|
|
247
247
|
classNames: i
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
250
|
});
|
|
251
|
-
|
|
252
|
-
const
|
|
253
|
-
root:
|
|
254
|
-
separator:
|
|
255
|
-
},
|
|
256
|
-
function({ overStyled:
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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;
|
|
264
267
|
}
|
|
265
|
-
const d =
|
|
268
|
+
const d = r.className, c = d ? `${E.root} ${d}` : E.root;
|
|
266
269
|
return /* @__PURE__ */ o(
|
|
267
|
-
|
|
270
|
+
Ie,
|
|
268
271
|
{
|
|
269
|
-
ref:
|
|
270
|
-
...
|
|
271
|
-
className:
|
|
272
|
-
classNames:
|
|
272
|
+
ref: t,
|
|
273
|
+
...r,
|
|
274
|
+
className: c,
|
|
275
|
+
classNames: i
|
|
273
276
|
}
|
|
274
277
|
);
|
|
275
278
|
}
|
|
276
279
|
);
|
|
277
|
-
|
|
278
|
-
const
|
|
279
|
-
root:
|
|
280
|
-
label:
|
|
281
|
-
labelText:
|
|
282
|
-
iconWrapper:
|
|
283
|
-
section:
|
|
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
|
|
284
287
|
};
|
|
285
|
-
function
|
|
288
|
+
function co(e) {
|
|
286
289
|
return e == null || e === "" ? !1 : typeof e == "string" ? e.trim() !== "" : !0;
|
|
287
290
|
}
|
|
288
|
-
const
|
|
291
|
+
const io = y(
|
|
289
292
|
function({
|
|
290
|
-
variant:
|
|
293
|
+
variant: n = "solid",
|
|
291
294
|
size: a = "default",
|
|
292
295
|
icon: s,
|
|
293
296
|
children: t,
|
|
294
|
-
overStyled:
|
|
297
|
+
overStyled: r = !1,
|
|
295
298
|
...i
|
|
296
|
-
},
|
|
297
|
-
const
|
|
299
|
+
}, l) {
|
|
300
|
+
const d = {
|
|
298
301
|
solid: "filled",
|
|
299
302
|
outline: "outline",
|
|
300
303
|
text: "subtle"
|
|
301
304
|
}, c = {
|
|
302
305
|
default: "md",
|
|
303
306
|
small: "sm"
|
|
304
|
-
},
|
|
305
|
-
delete
|
|
306
|
-
const
|
|
307
|
-
typeof process < "u" && process.env.NODE_ENV !== "production" &&
|
|
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(
|
|
308
311
|
'[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
|
|
309
312
|
);
|
|
310
|
-
const
|
|
311
|
-
root:
|
|
312
|
-
section:
|
|
313
|
-
label:
|
|
314
|
-
}, C =
|
|
313
|
+
const N = {
|
|
314
|
+
root: w.root,
|
|
315
|
+
section: w.section,
|
|
316
|
+
label: w.label
|
|
317
|
+
}, C = m.classNames;
|
|
315
318
|
if (C && typeof C == "object" && !Array.isArray(C)) {
|
|
316
|
-
const
|
|
317
|
-
|
|
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;
|
|
318
321
|
}
|
|
319
|
-
const
|
|
322
|
+
const u = m.className, v = u ? `${w.root} ${u}` : w.root;
|
|
320
323
|
return /* @__PURE__ */ o(
|
|
321
324
|
Fe,
|
|
322
325
|
{
|
|
323
|
-
ref:
|
|
324
|
-
className:
|
|
325
|
-
classNames:
|
|
326
|
-
variant:
|
|
326
|
+
ref: l,
|
|
327
|
+
className: v,
|
|
328
|
+
classNames: N,
|
|
329
|
+
variant: d[n],
|
|
327
330
|
size: c[a],
|
|
328
|
-
leftSection: s != null ? /* @__PURE__ */ o("span", { className:
|
|
329
|
-
"data-variant":
|
|
331
|
+
leftSection: s != null ? /* @__PURE__ */ o("span", { className: w.iconWrapper, "aria-hidden": !0, children: s }) : void 0,
|
|
332
|
+
"data-variant": n,
|
|
330
333
|
"data-size": a,
|
|
331
|
-
...
|
|
332
|
-
...
|
|
333
|
-
children: /* @__PURE__ */ o("span", { className:
|
|
334
|
+
...h ? { "data-icon-only": "" } : {},
|
|
335
|
+
...p,
|
|
336
|
+
children: /* @__PURE__ */ o("span", { className: w.labelText, children: t })
|
|
334
337
|
}
|
|
335
338
|
);
|
|
336
339
|
}
|
|
337
340
|
);
|
|
338
|
-
|
|
339
|
-
const
|
|
340
|
-
root:
|
|
341
|
-
header:
|
|
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,
|
|
342
345
|
footer: _o,
|
|
343
|
-
section:
|
|
344
|
-
content:
|
|
345
|
-
},
|
|
346
|
-
const t =
|
|
347
|
-
root:
|
|
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
|
|
348
351
|
}, i = t.classNames;
|
|
349
352
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
350
|
-
const
|
|
351
|
-
Object.keys(
|
|
352
|
-
|
|
353
|
+
const d = i;
|
|
354
|
+
Object.keys(d).forEach((c) => {
|
|
355
|
+
r[c] ? r[c] = `${r[c]} ${d[c]}` : r[c] = d[c];
|
|
353
356
|
});
|
|
354
357
|
}
|
|
355
|
-
const
|
|
358
|
+
const l = t.className;
|
|
356
359
|
return /* @__PURE__ */ o(
|
|
357
|
-
|
|
360
|
+
Z,
|
|
358
361
|
{
|
|
359
362
|
ref: s,
|
|
360
|
-
className:
|
|
361
|
-
classNames:
|
|
363
|
+
className: l,
|
|
364
|
+
classNames: r,
|
|
362
365
|
...t
|
|
363
366
|
}
|
|
364
367
|
);
|
|
365
368
|
});
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
function({ overStyled:
|
|
369
|
-
const t =
|
|
369
|
+
ue.displayName = "Card";
|
|
370
|
+
const he = y(
|
|
371
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
372
|
+
const t = $(a, n), r = t.className;
|
|
370
373
|
return /* @__PURE__ */ o(
|
|
371
|
-
|
|
374
|
+
Z.Section,
|
|
372
375
|
{
|
|
373
376
|
ref: s,
|
|
374
|
-
className:
|
|
377
|
+
className: r ? `${B.section} ${r}` : B.section,
|
|
375
378
|
...t
|
|
376
379
|
}
|
|
377
380
|
);
|
|
378
381
|
}
|
|
379
382
|
);
|
|
380
|
-
|
|
381
|
-
const
|
|
382
|
-
function({ overStyled:
|
|
383
|
-
const t =
|
|
383
|
+
he.displayName = "CardSection";
|
|
384
|
+
const fe = y(
|
|
385
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
386
|
+
const t = $(a, n), r = t.className;
|
|
384
387
|
return /* @__PURE__ */ o(
|
|
385
|
-
|
|
388
|
+
Z.Section,
|
|
386
389
|
{
|
|
387
390
|
ref: s,
|
|
388
|
-
className:
|
|
391
|
+
className: r ? `${B.header} ${r}` : B.header,
|
|
389
392
|
...t
|
|
390
393
|
}
|
|
391
394
|
);
|
|
392
395
|
}
|
|
393
396
|
);
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
function({ overStyled:
|
|
397
|
-
const t =
|
|
397
|
+
fe.displayName = "CardHeader";
|
|
398
|
+
const be = y(
|
|
399
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
400
|
+
const t = $(a, n), r = t.className;
|
|
398
401
|
return /* @__PURE__ */ o(
|
|
399
|
-
|
|
402
|
+
Z.Section,
|
|
400
403
|
{
|
|
401
404
|
ref: s,
|
|
402
|
-
className:
|
|
405
|
+
className: r ? `${B.footer} ${r}` : B.footer,
|
|
403
406
|
...t
|
|
404
407
|
}
|
|
405
408
|
);
|
|
406
409
|
}
|
|
407
410
|
);
|
|
408
|
-
|
|
409
|
-
const
|
|
410
|
-
function({ overStyled:
|
|
411
|
-
const t =
|
|
411
|
+
be.displayName = "CardFooter";
|
|
412
|
+
const Ne = y(
|
|
413
|
+
function({ overStyled: n = !1, ...a }, s) {
|
|
414
|
+
const t = $(a, n), r = t.className;
|
|
412
415
|
return /* @__PURE__ */ o(
|
|
413
416
|
"div",
|
|
414
417
|
{
|
|
415
418
|
ref: s,
|
|
416
|
-
className:
|
|
419
|
+
className: r ? `${B.content} ${r}` : B.content,
|
|
417
420
|
...t
|
|
418
421
|
}
|
|
419
422
|
);
|
|
420
423
|
}
|
|
421
424
|
);
|
|
422
|
-
|
|
423
|
-
const Y =
|
|
424
|
-
Y.Section =
|
|
425
|
-
Y.Header =
|
|
426
|
-
Y.Footer =
|
|
427
|
-
Y.Content =
|
|
428
|
-
const fo = "
|
|
429
|
-
root:
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
className: d,
|
|
438
|
-
style: t,
|
|
439
|
-
...r ? {} : { "data-recursica-layer": String(e) },
|
|
440
|
-
...n,
|
|
441
|
-
children: a
|
|
442
|
-
}
|
|
443
|
-
);
|
|
444
|
-
});
|
|
445
|
-
No.displayName = "Layer";
|
|
446
|
-
function te(e, r) {
|
|
447
|
-
const [a, s] = ke(!!e);
|
|
448
|
-
le(() => {
|
|
449
|
-
s(!!e);
|
|
450
|
-
}, [e]);
|
|
451
|
-
const t = Te(
|
|
452
|
-
(n) => {
|
|
453
|
-
s(!1), r == null || r(n);
|
|
454
|
-
},
|
|
455
|
-
[r]
|
|
456
|
-
);
|
|
457
|
-
return { isReadOnly: a, handleEditClick: t };
|
|
458
|
-
}
|
|
459
|
-
const H = ({ emptyText: e = "N/A" }) => /* @__PURE__ */ o(O.Fragment, { children: e });
|
|
460
|
-
H.displayName = "EmptyValueRenderer";
|
|
461
|
-
H.check = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
462
|
-
const ae = "data-recursica-theme";
|
|
463
|
-
function Yo({
|
|
464
|
-
children: e,
|
|
465
|
-
theme: r = "light"
|
|
466
|
-
}) {
|
|
467
|
-
return le(() => {
|
|
468
|
-
const a = document.documentElement;
|
|
469
|
-
return a.setAttribute(ae, r), () => {
|
|
470
|
-
a.removeAttribute(ae);
|
|
471
|
-
};
|
|
472
|
-
}, [r]), /* @__PURE__ */ o(ie, { children: e });
|
|
473
|
-
}
|
|
474
|
-
const yo = "Label-module__root___e6HXZ", $o = "Label-module__labelText___rieFR", Co = "Label-module__required___Ggrzc", vo = "Label-module__optionalText___Y2yun", go = "Label-module__actionAreaWrapper___ELoZK", xo = "Label-module__editIconWrapper___NG2xW", P = {
|
|
475
|
-
root: yo,
|
|
476
|
-
labelText: $o,
|
|
477
|
-
required: Co,
|
|
478
|
-
optionalText: vo,
|
|
479
|
-
actionAreaWrapper: go,
|
|
480
|
-
editIconWrapper: xo
|
|
481
|
-
}, $e = f(function({
|
|
482
|
-
formLayout: r = "stacked",
|
|
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",
|
|
483
440
|
labelSize: a = "default",
|
|
484
441
|
labelAlignment: s,
|
|
485
442
|
required: t = !1,
|
|
486
|
-
labelOptionalText:
|
|
443
|
+
labelOptionalText: r,
|
|
487
444
|
labelWithEditIcon: i,
|
|
488
|
-
labelActionArea:
|
|
489
|
-
onLabelEditClick:
|
|
445
|
+
labelActionArea: l,
|
|
446
|
+
onLabelEditClick: d,
|
|
490
447
|
children: c,
|
|
491
|
-
overStyled:
|
|
492
|
-
...
|
|
493
|
-
},
|
|
494
|
-
const
|
|
495
|
-
let
|
|
496
|
-
t || (
|
|
497
|
-
const
|
|
498
|
-
label:
|
|
499
|
-
required:
|
|
500
|
-
},
|
|
501
|
-
if (
|
|
502
|
-
const W =
|
|
503
|
-
|
|
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;
|
|
504
461
|
}
|
|
505
|
-
const
|
|
506
|
-
return /* @__PURE__ */
|
|
507
|
-
|
|
462
|
+
const x = C.className, T = x ? `${A.root} ${x}` : A.root;
|
|
463
|
+
return /* @__PURE__ */ L(
|
|
464
|
+
le.Label,
|
|
508
465
|
{
|
|
509
|
-
ref:
|
|
510
|
-
className:
|
|
511
|
-
classNames:
|
|
512
|
-
"data-layout":
|
|
466
|
+
ref: b,
|
|
467
|
+
className: T,
|
|
468
|
+
classNames: u,
|
|
469
|
+
"data-layout": n,
|
|
513
470
|
"data-size": a,
|
|
514
|
-
"data-alignment":
|
|
471
|
+
"data-alignment": _,
|
|
515
472
|
required: t && !i,
|
|
516
|
-
...
|
|
473
|
+
...N,
|
|
517
474
|
children: [
|
|
518
|
-
/* @__PURE__ */ o("span", { className:
|
|
519
|
-
|
|
520
|
-
|
|
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(
|
|
521
478
|
"button",
|
|
522
479
|
{
|
|
523
480
|
type: "button",
|
|
524
|
-
className:
|
|
481
|
+
className: A.editIconWrapper,
|
|
525
482
|
"data-replaces-asterisk": t ? "true" : void 0,
|
|
526
|
-
onClick:
|
|
483
|
+
onClick: d,
|
|
527
484
|
"aria-label": "Edit",
|
|
528
485
|
children: /* @__PURE__ */ o(
|
|
529
486
|
"svg",
|
|
@@ -550,12 +507,12 @@ const yo = "Label-module__root___e6HXZ", $o = "Label-module__labelText___rieFR",
|
|
|
550
507
|
}
|
|
551
508
|
);
|
|
552
509
|
});
|
|
553
|
-
|
|
554
|
-
const
|
|
555
|
-
root:
|
|
556
|
-
textWrapper:
|
|
557
|
-
iconWrapper:
|
|
558
|
-
},
|
|
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(
|
|
559
516
|
"svg",
|
|
560
517
|
{
|
|
561
518
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -571,7 +528,7 @@ const Ao = "AssistiveElement-module__root___WhQ43", Po = "AssistiveElement-modul
|
|
|
571
528
|
/* @__PURE__ */ o("path", { d: "M12 8h.01" })
|
|
572
529
|
]
|
|
573
530
|
}
|
|
574
|
-
),
|
|
531
|
+
), Po = () => /* @__PURE__ */ L(
|
|
575
532
|
"svg",
|
|
576
533
|
{
|
|
577
534
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -587,113 +544,115 @@ const Ao = "AssistiveElement-module__root___WhQ43", Po = "AssistiveElement-modul
|
|
|
587
544
|
/* @__PURE__ */ o("path", { d: "M12 17h.01" })
|
|
588
545
|
]
|
|
589
546
|
}
|
|
590
|
-
),
|
|
591
|
-
assistiveVariant:
|
|
547
|
+
), Q = y(function({
|
|
548
|
+
assistiveVariant: n = "help",
|
|
592
549
|
assistiveWithIcon: a = !0,
|
|
593
550
|
children: s,
|
|
594
551
|
className: t,
|
|
595
|
-
overStyled:
|
|
552
|
+
overStyled: r = !1,
|
|
596
553
|
...i
|
|
597
|
-
},
|
|
598
|
-
const c =
|
|
599
|
-
return /* @__PURE__ */
|
|
554
|
+
}, l) {
|
|
555
|
+
const c = $(i, r), p = X.root, m = t ? `${p} ${t}` : p, b = n === "error" ? Po : xo;
|
|
556
|
+
return /* @__PURE__ */ L(
|
|
600
557
|
"div",
|
|
601
558
|
{
|
|
602
|
-
ref:
|
|
603
|
-
className:
|
|
604
|
-
"data-variant":
|
|
559
|
+
ref: l,
|
|
560
|
+
className: m,
|
|
561
|
+
"data-variant": n,
|
|
605
562
|
style: c.style,
|
|
606
563
|
...c,
|
|
607
564
|
children: [
|
|
608
|
-
a && /* @__PURE__ */ o("span", { className:
|
|
609
|
-
/* @__PURE__ */ o("span", { className:
|
|
565
|
+
a && /* @__PURE__ */ o("span", { className: X.iconWrapper, children: /* @__PURE__ */ o(b, {}) }),
|
|
566
|
+
/* @__PURE__ */ o("span", { className: X.textWrapper, children: s })
|
|
610
567
|
]
|
|
611
568
|
}
|
|
612
569
|
);
|
|
613
570
|
});
|
|
614
|
-
|
|
615
|
-
const
|
|
616
|
-
root:
|
|
617
|
-
labelSection:
|
|
618
|
-
inputSection:
|
|
619
|
-
},
|
|
620
|
-
formLayout:
|
|
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,
|
|
621
578
|
labelSize: a,
|
|
622
579
|
labelAlignment: s,
|
|
623
580
|
labelOptionalText: t,
|
|
624
|
-
labelWithEditIcon:
|
|
581
|
+
labelWithEditIcon: r,
|
|
625
582
|
labelActionArea: i,
|
|
626
|
-
onLabelEditClick:
|
|
627
|
-
label:
|
|
583
|
+
onLabelEditClick: l,
|
|
584
|
+
label: d,
|
|
628
585
|
description: c,
|
|
629
|
-
assistiveText:
|
|
630
|
-
assistiveWithIcon:
|
|
631
|
-
controlMaxWidth:
|
|
632
|
-
controlMinWidth:
|
|
633
|
-
error:
|
|
634
|
-
required:
|
|
586
|
+
assistiveText: p,
|
|
587
|
+
assistiveWithIcon: m = !0,
|
|
588
|
+
controlMaxWidth: b,
|
|
589
|
+
controlMinWidth: _,
|
|
590
|
+
error: h,
|
|
591
|
+
required: N,
|
|
635
592
|
withAsterisk: C,
|
|
636
|
-
id:
|
|
637
|
-
children:
|
|
638
|
-
className:
|
|
639
|
-
overStyled:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
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,
|
|
644
603
|
{
|
|
645
|
-
...
|
|
646
|
-
...
|
|
604
|
+
...I && !v.props["aria-describedby"] ? { "aria-describedby": j } : {},
|
|
605
|
+
...h && !v.props["aria-errormessage"] ? { "aria-errormessage": F } : {}
|
|
647
606
|
}
|
|
648
|
-
) :
|
|
649
|
-
return /* @__PURE__ */
|
|
650
|
-
|
|
607
|
+
) : v;
|
|
608
|
+
return /* @__PURE__ */ L(
|
|
609
|
+
de,
|
|
651
610
|
{
|
|
652
|
-
ref:
|
|
611
|
+
ref: V,
|
|
653
612
|
className: Pe,
|
|
654
|
-
"data-form-layout":
|
|
613
|
+
"data-form-layout": n || "stacked",
|
|
655
614
|
"data-form-alignment": s || "left",
|
|
656
615
|
style: {
|
|
657
|
-
...
|
|
658
|
-
...
|
|
659
|
-
...
|
|
616
|
+
...U.style || {},
|
|
617
|
+
...b ? { "--form-control-max-width": b } : {},
|
|
618
|
+
..._ ? { "--form-control-min-width": _ } : {}
|
|
660
619
|
},
|
|
661
|
-
...
|
|
620
|
+
...U,
|
|
662
621
|
children: [
|
|
663
|
-
|
|
664
|
-
|
|
622
|
+
d && /* @__PURE__ */ o("div", { className: J.labelSection, children: /* @__PURE__ */ o(
|
|
623
|
+
ye,
|
|
665
624
|
{
|
|
666
|
-
id:
|
|
667
|
-
formLayout:
|
|
625
|
+
id: P,
|
|
626
|
+
formLayout: n,
|
|
668
627
|
labelSize: a,
|
|
669
628
|
labelAlignment: s,
|
|
670
629
|
labelOptionalText: t,
|
|
671
|
-
labelWithEditIcon:
|
|
630
|
+
labelWithEditIcon: r,
|
|
672
631
|
labelActionArea: i,
|
|
673
|
-
onLabelEditClick:
|
|
674
|
-
required: C ??
|
|
675
|
-
...
|
|
676
|
-
children:
|
|
632
|
+
onLabelEditClick: l,
|
|
633
|
+
required: C ?? N,
|
|
634
|
+
...W === "div" ? { as: "div" } : {},
|
|
635
|
+
children: d
|
|
677
636
|
}
|
|
678
637
|
) }),
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
638
|
+
/* @__PURE__ */ L("div", { className: J.inputSection, children: [
|
|
639
|
+
Ae,
|
|
640
|
+
h && /* @__PURE__ */ o(
|
|
641
|
+
Q,
|
|
683
642
|
{
|
|
684
|
-
id:
|
|
643
|
+
id: F,
|
|
685
644
|
assistiveVariant: "error",
|
|
686
|
-
assistiveWithIcon:
|
|
687
|
-
children:
|
|
645
|
+
assistiveWithIcon: m,
|
|
646
|
+
children: h
|
|
688
647
|
}
|
|
689
648
|
),
|
|
690
|
-
!
|
|
691
|
-
|
|
649
|
+
!h && I && /* @__PURE__ */ o(
|
|
650
|
+
Q,
|
|
692
651
|
{
|
|
693
|
-
id:
|
|
652
|
+
id: j,
|
|
694
653
|
assistiveVariant: "help",
|
|
695
|
-
assistiveWithIcon:
|
|
696
|
-
children:
|
|
654
|
+
assistiveWithIcon: m,
|
|
655
|
+
children: I
|
|
697
656
|
}
|
|
698
657
|
)
|
|
699
658
|
] })
|
|
@@ -701,155 +660,275 @@ const Ro = "FormControlWrapper-module__root___c-UHo", Lo = "FormControlWrapper-m
|
|
|
701
660
|
}
|
|
702
661
|
);
|
|
703
662
|
});
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
groupRoot:
|
|
707
|
-
root:
|
|
708
|
-
body:
|
|
709
|
-
inner:
|
|
710
|
-
input:
|
|
711
|
-
icon:
|
|
712
|
-
labelWrapper:
|
|
713
|
-
label:
|
|
714
|
-
},
|
|
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(
|
|
715
674
|
function({
|
|
716
|
-
overStyled:
|
|
675
|
+
overStyled: n = !1,
|
|
717
676
|
formLayout: a = "stacked",
|
|
718
677
|
// Label Wrappers
|
|
719
678
|
labelSize: s,
|
|
720
679
|
labelAlignment: t,
|
|
721
|
-
labelOptionalText:
|
|
680
|
+
labelOptionalText: r,
|
|
722
681
|
labelWithEditIcon: i,
|
|
723
|
-
onLabelEditClick:
|
|
682
|
+
onLabelEditClick: l,
|
|
724
683
|
// Base Mantine Extracted Attributes
|
|
725
|
-
label:
|
|
684
|
+
label: d,
|
|
726
685
|
description: c,
|
|
727
|
-
assistiveText:
|
|
728
|
-
assistiveWithIcon:
|
|
729
|
-
error:
|
|
730
|
-
required:
|
|
731
|
-
withAsterisk:
|
|
732
|
-
id:
|
|
686
|
+
assistiveText: p,
|
|
687
|
+
assistiveWithIcon: m,
|
|
688
|
+
error: b,
|
|
689
|
+
required: _,
|
|
690
|
+
withAsterisk: h,
|
|
691
|
+
id: N,
|
|
733
692
|
className: C,
|
|
734
|
-
style:
|
|
735
|
-
children:
|
|
736
|
-
readOnly:
|
|
737
|
-
readOnlyComponent:
|
|
693
|
+
style: u,
|
|
694
|
+
children: v,
|
|
695
|
+
readOnly: x,
|
|
696
|
+
readOnlyComponent: T,
|
|
738
697
|
...W
|
|
739
|
-
},
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
), x = b(W, r), w = x;
|
|
744
|
-
return delete w.size, V && R ? /* @__PURE__ */ o(
|
|
745
|
-
q,
|
|
698
|
+
}, G) {
|
|
699
|
+
const V = $(W, n), q = V;
|
|
700
|
+
return delete q.size, x && T ? /* @__PURE__ */ o(
|
|
701
|
+
M,
|
|
746
702
|
{
|
|
747
703
|
className: C,
|
|
748
|
-
style:
|
|
749
|
-
|
|
704
|
+
style: u,
|
|
705
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
706
|
+
controlMinWidth: void 0,
|
|
707
|
+
overStyled: n,
|
|
750
708
|
labelElement: "div",
|
|
751
709
|
formLayout: a,
|
|
752
710
|
labelSize: s,
|
|
753
711
|
labelAlignment: t,
|
|
754
|
-
labelOptionalText:
|
|
712
|
+
labelOptionalText: r,
|
|
755
713
|
labelWithEditIcon: i,
|
|
756
|
-
onLabelEditClick:
|
|
757
|
-
label:
|
|
714
|
+
onLabelEditClick: l,
|
|
715
|
+
label: d,
|
|
758
716
|
description: c,
|
|
759
|
-
assistiveText:
|
|
760
|
-
assistiveWithIcon:
|
|
761
|
-
error:
|
|
762
|
-
required:
|
|
763
|
-
withAsterisk:
|
|
764
|
-
id:
|
|
765
|
-
children:
|
|
717
|
+
assistiveText: p,
|
|
718
|
+
assistiveWithIcon: m,
|
|
719
|
+
error: b,
|
|
720
|
+
required: _,
|
|
721
|
+
withAsterisk: h,
|
|
722
|
+
id: N,
|
|
723
|
+
children: T
|
|
766
724
|
}
|
|
767
725
|
) : /* @__PURE__ */ o(
|
|
768
|
-
|
|
726
|
+
M,
|
|
769
727
|
{
|
|
770
728
|
className: C,
|
|
771
|
-
style:
|
|
772
|
-
|
|
729
|
+
style: u,
|
|
730
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
731
|
+
controlMinWidth: void 0,
|
|
732
|
+
overStyled: n,
|
|
773
733
|
labelElement: "div",
|
|
774
734
|
formLayout: a,
|
|
775
735
|
labelSize: s,
|
|
776
736
|
labelAlignment: t,
|
|
777
|
-
labelOptionalText:
|
|
737
|
+
labelOptionalText: r,
|
|
778
738
|
labelWithEditIcon: i,
|
|
779
|
-
onLabelEditClick:
|
|
780
|
-
label:
|
|
739
|
+
onLabelEditClick: l,
|
|
740
|
+
label: d,
|
|
781
741
|
description: c,
|
|
782
|
-
assistiveText:
|
|
783
|
-
assistiveWithIcon:
|
|
784
|
-
error:
|
|
785
|
-
required:
|
|
786
|
-
withAsterisk:
|
|
787
|
-
id:
|
|
742
|
+
assistiveText: p,
|
|
743
|
+
assistiveWithIcon: m,
|
|
744
|
+
error: b,
|
|
745
|
+
required: _,
|
|
746
|
+
withAsterisk: h,
|
|
747
|
+
id: N,
|
|
788
748
|
children: /* @__PURE__ */ o(
|
|
789
|
-
|
|
749
|
+
pe.Group,
|
|
790
750
|
{
|
|
791
|
-
ref:
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */ o("div", { className:
|
|
794
|
-
disabled:
|
|
795
|
-
}) :
|
|
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) })
|
|
796
756
|
}
|
|
797
757
|
)
|
|
798
758
|
}
|
|
799
759
|
);
|
|
800
760
|
}
|
|
801
761
|
);
|
|
802
|
-
|
|
803
|
-
const ve =
|
|
804
|
-
function({ overStyled:
|
|
805
|
-
const
|
|
806
|
-
if (delete
|
|
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)
|
|
807
767
|
return /* @__PURE__ */ o(
|
|
808
|
-
|
|
768
|
+
M,
|
|
809
769
|
{
|
|
810
|
-
overStyled:
|
|
770
|
+
overStyled: n,
|
|
811
771
|
...l,
|
|
812
772
|
children: s
|
|
813
773
|
}
|
|
814
774
|
);
|
|
815
|
-
const
|
|
816
|
-
root:
|
|
817
|
-
body:
|
|
818
|
-
inner:
|
|
819
|
-
input:
|
|
820
|
-
icon:
|
|
821
|
-
labelWrapper:
|
|
822
|
-
label:
|
|
823
|
-
},
|
|
824
|
-
if (
|
|
825
|
-
const
|
|
826
|
-
|
|
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;
|
|
827
787
|
}
|
|
828
|
-
const
|
|
788
|
+
const m = d.className, b = m ? `${f.root} ${m}` : f.root;
|
|
829
789
|
return /* @__PURE__ */ o(
|
|
830
|
-
|
|
790
|
+
pe,
|
|
831
791
|
{
|
|
832
792
|
ref: i,
|
|
833
|
-
className:
|
|
834
|
-
classNames:
|
|
835
|
-
disabled:
|
|
793
|
+
className: b,
|
|
794
|
+
classNames: c,
|
|
795
|
+
disabled: a || t,
|
|
836
796
|
...l
|
|
837
797
|
}
|
|
838
798
|
);
|
|
839
799
|
}
|
|
840
800
|
);
|
|
841
801
|
ve.displayName = "Checkbox";
|
|
842
|
-
ve.Group =
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
|
|
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": "" } : {},
|
|
862
|
+
...c,
|
|
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
|
+
] })
|
|
885
|
+
}
|
|
886
|
+
);
|
|
887
|
+
});
|
|
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({
|
|
912
|
+
children: e,
|
|
913
|
+
theme: n = "light"
|
|
914
|
+
}) {
|
|
915
|
+
return ke(() => {
|
|
916
|
+
const a = document.documentElement;
|
|
917
|
+
return a.setAttribute(ae, n), () => {
|
|
918
|
+
a.removeAttribute(ae);
|
|
919
|
+
};
|
|
920
|
+
}, [n]), /* @__PURE__ */ o(ie, { children: e });
|
|
921
|
+
}
|
|
922
|
+
const Yo = "ReadOnlyField-module__textField___qKn25", ce = {
|
|
923
|
+
textField: Yo
|
|
924
|
+
}, Ce = ({
|
|
846
925
|
value: e,
|
|
847
|
-
overStyled:
|
|
926
|
+
overStyled: n = !1,
|
|
848
927
|
...a
|
|
849
928
|
}) => {
|
|
850
|
-
const s =
|
|
929
|
+
const s = $(a, n), t = s.className;
|
|
851
930
|
return /* @__PURE__ */ o(
|
|
852
|
-
|
|
931
|
+
de,
|
|
853
932
|
{
|
|
854
933
|
component: "p",
|
|
855
934
|
className: t ? `${ce.textField} ${t}` : ce.textField,
|
|
@@ -858,162 +937,158 @@ const Uo = (e) => /* @__PURE__ */ o("div", { ...e, children: "Chip" }), Xo = (e)
|
|
|
858
937
|
}
|
|
859
938
|
);
|
|
860
939
|
};
|
|
861
|
-
|
|
862
|
-
const
|
|
863
|
-
function({ value:
|
|
864
|
-
let
|
|
865
|
-
const
|
|
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;
|
|
866
945
|
switch (a) {
|
|
867
946
|
case "text":
|
|
868
947
|
default:
|
|
869
|
-
|
|
870
|
-
|
|
948
|
+
l = /* @__PURE__ */ o(
|
|
949
|
+
Ce,
|
|
871
950
|
{
|
|
872
|
-
value:
|
|
951
|
+
value: m,
|
|
873
952
|
overStyled: t
|
|
874
953
|
}
|
|
875
954
|
);
|
|
876
955
|
break;
|
|
877
956
|
}
|
|
878
957
|
return /* @__PURE__ */ o(
|
|
879
|
-
|
|
958
|
+
M,
|
|
880
959
|
{
|
|
881
960
|
ref: i,
|
|
882
961
|
overStyled: t,
|
|
883
|
-
...
|
|
884
|
-
children:
|
|
962
|
+
...d,
|
|
963
|
+
children: l
|
|
885
964
|
}
|
|
886
965
|
);
|
|
887
966
|
}
|
|
888
967
|
);
|
|
889
|
-
|
|
890
|
-
const
|
|
891
|
-
readOnly:
|
|
968
|
+
ge.displayName = "ReadOnlyField";
|
|
969
|
+
const xe = y(function({
|
|
970
|
+
readOnly: n,
|
|
892
971
|
readOnlyComponent: a,
|
|
893
972
|
readOnlyType: s = "text",
|
|
894
973
|
readOnlyValue: t,
|
|
895
|
-
activeComponent:
|
|
974
|
+
activeComponent: r,
|
|
896
975
|
overStyled: i,
|
|
897
|
-
onLabelEditClick:
|
|
898
|
-
...
|
|
976
|
+
onLabelEditClick: l,
|
|
977
|
+
...d
|
|
899
978
|
}, c) {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
d
|
|
903
|
-
);
|
|
904
|
-
return m ? a ? /* @__PURE__ */ o(
|
|
905
|
-
q,
|
|
979
|
+
return n ? a ? /* @__PURE__ */ o(
|
|
980
|
+
M,
|
|
906
981
|
{
|
|
907
982
|
ref: c,
|
|
908
|
-
...
|
|
909
|
-
onLabelEditClick:
|
|
983
|
+
...d,
|
|
984
|
+
onLabelEditClick: l,
|
|
910
985
|
overStyled: i,
|
|
911
986
|
children: a
|
|
912
987
|
}
|
|
913
988
|
) : /* @__PURE__ */ o(
|
|
914
|
-
|
|
989
|
+
ge,
|
|
915
990
|
{
|
|
916
991
|
ref: c,
|
|
917
992
|
type: s,
|
|
918
993
|
value: t,
|
|
919
|
-
onLabelEditClick:
|
|
994
|
+
onLabelEditClick: l,
|
|
920
995
|
overStyled: i,
|
|
921
|
-
...
|
|
996
|
+
...d
|
|
922
997
|
}
|
|
923
998
|
) : /* @__PURE__ */ o(
|
|
924
|
-
|
|
999
|
+
M,
|
|
925
1000
|
{
|
|
926
1001
|
ref: c,
|
|
927
|
-
...
|
|
928
|
-
onLabelEditClick:
|
|
1002
|
+
...d,
|
|
1003
|
+
onLabelEditClick: l,
|
|
929
1004
|
overStyled: i,
|
|
930
|
-
children:
|
|
1005
|
+
children: r
|
|
931
1006
|
}
|
|
932
1007
|
);
|
|
933
1008
|
});
|
|
934
|
-
|
|
935
|
-
const
|
|
936
|
-
root:
|
|
937
|
-
input:
|
|
938
|
-
section:
|
|
939
|
-
},
|
|
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(
|
|
940
1015
|
function({
|
|
941
|
-
overStyled:
|
|
1016
|
+
overStyled: n = !1,
|
|
942
1017
|
formLayout: a = "stacked",
|
|
943
1018
|
// Label & Wrapper Maps
|
|
944
1019
|
labelSize: s,
|
|
945
1020
|
labelAlignment: t,
|
|
946
|
-
labelOptionalText:
|
|
1021
|
+
labelOptionalText: r,
|
|
947
1022
|
labelWithEditIcon: i,
|
|
948
|
-
onLabelEditClick:
|
|
949
|
-
label:
|
|
1023
|
+
onLabelEditClick: l,
|
|
1024
|
+
label: d,
|
|
950
1025
|
assistiveText: c,
|
|
951
|
-
assistiveWithIcon:
|
|
952
|
-
error:
|
|
953
|
-
required:
|
|
954
|
-
withAsterisk:
|
|
955
|
-
id:
|
|
956
|
-
className:
|
|
1026
|
+
assistiveWithIcon: p,
|
|
1027
|
+
error: m,
|
|
1028
|
+
required: b,
|
|
1029
|
+
withAsterisk: _,
|
|
1030
|
+
id: h,
|
|
1031
|
+
className: N,
|
|
957
1032
|
style: C,
|
|
958
|
-
disabled:
|
|
959
|
-
readOnly:
|
|
960
|
-
readOnlyComponent:
|
|
961
|
-
value:
|
|
1033
|
+
disabled: u,
|
|
1034
|
+
readOnly: v,
|
|
1035
|
+
readOnlyComponent: x,
|
|
1036
|
+
value: T,
|
|
962
1037
|
defaultValue: W,
|
|
963
|
-
...
|
|
1038
|
+
...G
|
|
964
1039
|
}, V) {
|
|
965
|
-
const
|
|
966
|
-
delete
|
|
967
|
-
const
|
|
968
|
-
wrapper:
|
|
1040
|
+
const q = $(G, n), P = q;
|
|
1041
|
+
delete P.size, delete P.variant, delete P.radius;
|
|
1042
|
+
const I = {
|
|
1043
|
+
wrapper: S.root,
|
|
969
1044
|
// The nested Input internal relative wrapper bounding box
|
|
970
|
-
input:
|
|
971
|
-
section:
|
|
972
|
-
},
|
|
973
|
-
if (
|
|
974
|
-
const
|
|
975
|
-
|
|
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;
|
|
976
1051
|
}
|
|
977
1052
|
return /* @__PURE__ */ o(
|
|
978
|
-
|
|
1053
|
+
xe,
|
|
979
1054
|
{
|
|
980
|
-
className:
|
|
1055
|
+
className: N,
|
|
981
1056
|
style: C,
|
|
982
1057
|
controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
|
|
983
1058
|
controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
|
|
984
|
-
overStyled:
|
|
1059
|
+
overStyled: n,
|
|
985
1060
|
formLayout: a,
|
|
986
1061
|
labelSize: s,
|
|
987
1062
|
labelAlignment: t,
|
|
988
|
-
labelOptionalText:
|
|
1063
|
+
labelOptionalText: r,
|
|
989
1064
|
labelWithEditIcon: i,
|
|
990
|
-
onLabelEditClick:
|
|
991
|
-
label:
|
|
1065
|
+
onLabelEditClick: l,
|
|
1066
|
+
label: d,
|
|
992
1067
|
assistiveText: c,
|
|
993
|
-
assistiveWithIcon:
|
|
994
|
-
error:
|
|
995
|
-
required:
|
|
996
|
-
withAsterisk:
|
|
997
|
-
id:
|
|
998
|
-
readOnly:
|
|
999
|
-
readOnlyComponent:
|
|
1068
|
+
assistiveWithIcon: p,
|
|
1069
|
+
error: m,
|
|
1070
|
+
required: b,
|
|
1071
|
+
withAsterisk: _,
|
|
1072
|
+
id: h,
|
|
1073
|
+
readOnly: v,
|
|
1074
|
+
readOnlyComponent: x,
|
|
1000
1075
|
readOnlyType: "text",
|
|
1001
|
-
readOnlyValue:
|
|
1076
|
+
readOnlyValue: T !== void 0 ? T : W,
|
|
1002
1077
|
activeComponent: (
|
|
1003
1078
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1004
1079
|
/* @__PURE__ */ o(
|
|
1005
|
-
|
|
1080
|
+
le,
|
|
1006
1081
|
{
|
|
1007
1082
|
ref: V,
|
|
1008
|
-
classNames:
|
|
1009
|
-
disabled:
|
|
1010
|
-
value:
|
|
1083
|
+
classNames: I,
|
|
1084
|
+
disabled: u,
|
|
1085
|
+
value: T,
|
|
1011
1086
|
defaultValue: W,
|
|
1012
1087
|
wrapperProps: {
|
|
1013
|
-
"data-disabled":
|
|
1014
|
-
"data-error":
|
|
1088
|
+
"data-disabled": u ? "true" : void 0,
|
|
1089
|
+
"data-error": m ? "true" : void 0
|
|
1015
1090
|
},
|
|
1016
|
-
...
|
|
1091
|
+
...q
|
|
1017
1092
|
}
|
|
1018
1093
|
)
|
|
1019
1094
|
)
|
|
@@ -1021,60 +1096,59 @@ const pt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), mt = (
|
|
|
1021
1096
|
);
|
|
1022
1097
|
}
|
|
1023
1098
|
);
|
|
1024
|
-
|
|
1025
|
-
const
|
|
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" });
|
|
1026
1101
|
export {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
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,
|
|
1035
1110
|
Y as Card,
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1111
|
+
Ne as CardContent,
|
|
1112
|
+
be as CardFooter,
|
|
1113
|
+
fe as CardHeader,
|
|
1114
|
+
he as CardSection,
|
|
1040
1115
|
ve as Checkbox,
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1116
|
+
$e as CheckboxGroup,
|
|
1117
|
+
Go as Chip,
|
|
1118
|
+
nt as DatePicker,
|
|
1119
|
+
st as Dropdown,
|
|
1045
1120
|
H as EmptyValueRenderer,
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
te as useReadOnlyControl
|
|
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
|
|
1079
1153
|
};
|
|
1080
1154
|
//# sourceMappingURL=mantine-adapter.js.map
|