@recursica/mantine-adapter 0.6.0 → 0.8.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 +75 -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 +1085 -687
- 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/dist/src/components/Container/Container.d.ts +14 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +10 -2
- package/dist/src/components/Flex/Flex.d.ts +17 -0
- package/dist/src/components/Group/Group.d.ts +17 -0
- package/dist/src/components/Stack/Stack.d.ts +15 -0
- package/dist/src/components/TextArea/TextArea.d.ts +14 -2
- package/dist/src/components/index.d.ts +6 -0
- 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/Container/CONTAINER_IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Container/Container.module.css +7 -0
- package/src/components/Container/Container.stories.tsx +102 -0
- package/src/components/Container/Container.tsx +63 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +22 -0
- package/src/components/DatePicker/DatePicker.tsx +7 -0
- package/src/components/Dropdown/DROPDOWN_IMPLEMENTATION_NOTES.md +7 -0
- package/src/components/Dropdown/Dropdown.module.css +272 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +94 -0
- package/src/components/Dropdown/Dropdown.tsx +186 -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/Flex/FLEX_IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Flex/Flex.module.css +7 -0
- package/src/components/Flex/Flex.stories.tsx +125 -0
- package/src/components/Flex/Flex.tsx +68 -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/Group/GROUP_IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Group/Group.module.css +7 -0
- package/src/components/Group/Group.stories.tsx +117 -0
- package/src/components/Group/Group.tsx +68 -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/Stack/STACK_IMPLEMENTATION_NOTES.md +4 -0
- package/src/components/Stack/Stack.module.css +7 -0
- package/src/components/Stack/Stack.stories.tsx +105 -0
- package/src/components/Stack/Stack.tsx +66 -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_IMPLEMENTATION_NOTES.md +7 -0
- package/src/components/TextArea/TextArea.module.css +225 -0
- package/src/components/TextArea/TextArea.stories.tsx +94 -0
- package/src/components/TextArea/TextArea.tsx +164 -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 +45 -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,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Accordion as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as G, Fragment as No } from "react/jsx-runtime";
|
|
2
|
+
import V, { forwardRef as N, useId as Io, useEffect as Lo } from "react";
|
|
3
|
+
import { Accordion as to, Avatar as Bo, Badge as jo, Breadcrumbs as Eo, Button as Oo, Card as ro, Input as $o, Box as yo, Checkbox as bo, Chip as Do, Container as Go, Select as Mo, Flex as qo, Group as Vo, Stack as Ho, Text as Ko, Textarea as Uo, Title as Zo } from "@mantine/core";
|
|
4
|
+
const Yo = [
|
|
5
5
|
"className",
|
|
6
6
|
"classNames",
|
|
7
7
|
"style",
|
|
@@ -45,7 +45,7 @@ const Se = [
|
|
|
45
45
|
"mih",
|
|
46
46
|
"mah"
|
|
47
47
|
// Dimensions
|
|
48
|
-
],
|
|
48
|
+
], Xo = /* @__PURE__ */ new Set([
|
|
49
49
|
"m",
|
|
50
50
|
"my",
|
|
51
51
|
"mx",
|
|
@@ -60,7 +60,7 @@ const Se = [
|
|
|
60
60
|
"left",
|
|
61
61
|
"bottom",
|
|
62
62
|
"right"
|
|
63
|
-
]),
|
|
63
|
+
]), uo = {
|
|
64
64
|
"rec-none": "var(--recursica_brand_dimensions_general_none)",
|
|
65
65
|
"rec-sm": "var(--recursica_brand_dimensions_general_sm)",
|
|
66
66
|
"rec-default": "var(--recursica_brand_dimensions_general_default)",
|
|
@@ -69,463 +69,420 @@ 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 (
|
|
74
|
-
return
|
|
75
|
-
const a = { ...
|
|
76
|
-
for (const
|
|
77
|
-
|
|
78
|
-
for (const [
|
|
79
|
-
typeof
|
|
72
|
+
function $(o, s) {
|
|
73
|
+
if (s)
|
|
74
|
+
return o;
|
|
75
|
+
const a = { ...o };
|
|
76
|
+
for (const n of Yo)
|
|
77
|
+
n in a && delete a[n];
|
|
78
|
+
for (const [n, r] of Object.entries(a))
|
|
79
|
+
typeof r == "string" && r.startsWith("rec-") && Xo.has(n) && r in uo && (a[n] = uo[r]);
|
|
80
80
|
return a;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
83
|
-
root:
|
|
84
|
-
item:
|
|
85
|
-
noDivider:
|
|
86
|
-
control:
|
|
87
|
-
label:
|
|
88
|
-
chevron:
|
|
89
|
-
iconLeftWrapper:
|
|
90
|
-
panel:
|
|
91
|
-
content:
|
|
92
|
-
},
|
|
93
|
-
variant:
|
|
82
|
+
const Jo = "Accordion-module__root___Dem6d", Qo = "Accordion-module__item___7ryVk", oe = "Accordion-module__noDivider___Ni2tT", ee = "Accordion-module__control___b4wgX", te = "Accordion-module__label___Ss7uW", re = "Accordion-module__chevron___i-HVZ", se = "Accordion-module__iconLeftWrapper___5oLen", ne = "Accordion-module__panel___Wx50w", ae = "Accordion-module__content___PEM9t", D = {
|
|
83
|
+
root: Jo,
|
|
84
|
+
item: Qo,
|
|
85
|
+
noDivider: oe,
|
|
86
|
+
control: ee,
|
|
87
|
+
label: te,
|
|
88
|
+
chevron: re,
|
|
89
|
+
iconLeftWrapper: se,
|
|
90
|
+
panel: ne,
|
|
91
|
+
content: ae
|
|
92
|
+
}, vo = function({
|
|
93
|
+
variant: s = "unstyled",
|
|
94
94
|
overStyled: a = !1,
|
|
95
|
-
...
|
|
95
|
+
...n
|
|
96
96
|
}) {
|
|
97
|
-
const
|
|
98
|
-
root:
|
|
99
|
-
item:
|
|
100
|
-
control:
|
|
101
|
-
label:
|
|
102
|
-
chevron:
|
|
103
|
-
panel:
|
|
104
|
-
content:
|
|
105
|
-
}, i =
|
|
97
|
+
const r = $(n, a), t = {
|
|
98
|
+
root: D.root,
|
|
99
|
+
item: D.item,
|
|
100
|
+
control: D.control,
|
|
101
|
+
label: D.label,
|
|
102
|
+
chevron: D.chevron,
|
|
103
|
+
panel: D.panel,
|
|
104
|
+
content: D.content
|
|
105
|
+
}, i = r.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
|
+
t[c] ? t[c] = `${t[c]} ${d[c]}` : t[c] = d[c];
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
return /* @__PURE__ */
|
|
114
|
-
|
|
112
|
+
const l = r.className;
|
|
113
|
+
return /* @__PURE__ */ e(
|
|
114
|
+
to,
|
|
115
115
|
{
|
|
116
|
-
variant:
|
|
117
|
-
className:
|
|
118
|
-
classNames:
|
|
119
|
-
...
|
|
116
|
+
variant: s,
|
|
117
|
+
className: l,
|
|
118
|
+
classNames: t,
|
|
119
|
+
...r
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
const
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
|
|
123
|
+
vo.displayName = "Accordion";
|
|
124
|
+
const Co = N(function({ title: s, leftIcon: a, divider: n = !0, children: r, overStyled: t = !1, ...i }, l) {
|
|
125
|
+
const d = $(i, t), c = d.className, p = [n ? void 0 : D.noDivider, c].filter(Boolean).join(" ") || void 0;
|
|
126
|
+
return /* @__PURE__ */ e(
|
|
127
|
+
to.Item,
|
|
128
128
|
{
|
|
129
|
-
ref:
|
|
130
|
-
className:
|
|
131
|
-
...
|
|
132
|
-
children:
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
] }) :
|
|
129
|
+
ref: l,
|
|
130
|
+
className: p,
|
|
131
|
+
...d,
|
|
132
|
+
children: s ? /* @__PURE__ */ G(No, { children: [
|
|
133
|
+
/* @__PURE__ */ e(lo, { leftIcon: a, children: s }),
|
|
134
|
+
/* @__PURE__ */ e(po, { children: r })
|
|
135
|
+
] }) : r
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
});
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
const i =
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
|
|
139
|
+
Co.displayName = "AccordionItem";
|
|
140
|
+
const lo = N(function({ leftIcon: s, children: a, overStyled: n = !1, ...r }, t) {
|
|
141
|
+
const i = $(r, n), l = i.className;
|
|
142
|
+
return /* @__PURE__ */ e(
|
|
143
|
+
to.Control,
|
|
144
144
|
{
|
|
145
|
-
ref:
|
|
146
|
-
className:
|
|
147
|
-
icon:
|
|
145
|
+
ref: t,
|
|
146
|
+
className: l,
|
|
147
|
+
icon: s ? /* @__PURE__ */ e("span", { className: D.iconLeftWrapper, "aria-hidden": !0, children: s }) : void 0,
|
|
148
148
|
...i,
|
|
149
149
|
children: a
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
});
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
const
|
|
156
|
-
return /* @__PURE__ */
|
|
157
|
-
|
|
153
|
+
lo.displayName = "AccordionControl";
|
|
154
|
+
const po = N(function({ overStyled: s = !1, ...a }, n) {
|
|
155
|
+
const r = $(a, s), t = r.className;
|
|
156
|
+
return /* @__PURE__ */ e(
|
|
157
|
+
to.Panel,
|
|
158
158
|
{
|
|
159
|
-
ref:
|
|
160
|
-
className:
|
|
161
|
-
...
|
|
159
|
+
ref: n,
|
|
160
|
+
className: t,
|
|
161
|
+
...r
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
root:
|
|
172
|
-
iconWrapper:
|
|
173
|
-
textWrapper:
|
|
174
|
-
image:
|
|
175
|
-
placeholder:
|
|
176
|
-
},
|
|
177
|
-
size:
|
|
165
|
+
po.displayName = "AccordionPanel";
|
|
166
|
+
const _o = vo;
|
|
167
|
+
_o.Item = Co;
|
|
168
|
+
_o.Control = lo;
|
|
169
|
+
_o.Panel = po;
|
|
170
|
+
const ce = "Avatar-module__root___fXu-J", ie = "Avatar-module__iconWrapper___ojly2", le = "Avatar-module__textWrapper___zp-jD", de = "Avatar-module__image___ieqGp", pe = "Avatar-module__placeholder___IDW7-", L = {
|
|
171
|
+
root: ce,
|
|
172
|
+
iconWrapper: ie,
|
|
173
|
+
textWrapper: le,
|
|
174
|
+
image: de,
|
|
175
|
+
placeholder: pe
|
|
176
|
+
}, _e = N(function({
|
|
177
|
+
size: s = "default",
|
|
178
178
|
variant: a = "solid",
|
|
179
|
-
icon:
|
|
180
|
-
className:
|
|
181
|
-
classNames:
|
|
179
|
+
icon: n,
|
|
180
|
+
className: r,
|
|
181
|
+
classNames: t,
|
|
182
182
|
children: i,
|
|
183
|
-
style:
|
|
184
|
-
src:
|
|
183
|
+
style: l,
|
|
184
|
+
src: d,
|
|
185
185
|
...c
|
|
186
|
-
},
|
|
186
|
+
}, p) {
|
|
187
187
|
const _ = {
|
|
188
188
|
solid: "filled",
|
|
189
189
|
outline: "outline",
|
|
190
190
|
ghost: "transparent"
|
|
191
|
-
},
|
|
191
|
+
}, u = {
|
|
192
192
|
default: "md",
|
|
193
193
|
small: "sm",
|
|
194
194
|
large: "lg"
|
|
195
195
|
};
|
|
196
|
-
let
|
|
197
|
-
|
|
198
|
-
const
|
|
199
|
-
root:
|
|
200
|
-
image:
|
|
201
|
-
placeholder:
|
|
196
|
+
let m = "text";
|
|
197
|
+
d ? m = "image" : n && (m = "icon");
|
|
198
|
+
const h = {
|
|
199
|
+
root: L.root,
|
|
200
|
+
image: L.image,
|
|
201
|
+
placeholder: L.placeholder
|
|
202
202
|
};
|
|
203
|
-
if (
|
|
204
|
-
const
|
|
205
|
-
|
|
203
|
+
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
204
|
+
const y = t;
|
|
205
|
+
h.root = y.root ? `${L.root} ${y.root}` : L.root, h.image = y.image ? `${L.image} ${y.image}` : L.image, h.placeholder = y.placeholder ? `${L.placeholder} ${y.placeholder}` : L.placeholder;
|
|
206
206
|
}
|
|
207
|
-
return /* @__PURE__ */
|
|
208
|
-
|
|
207
|
+
return /* @__PURE__ */ e(
|
|
208
|
+
Bo,
|
|
209
209
|
{
|
|
210
|
-
ref:
|
|
211
|
-
className:
|
|
212
|
-
classNames:
|
|
210
|
+
ref: p,
|
|
211
|
+
className: r,
|
|
212
|
+
classNames: h,
|
|
213
213
|
variant: _[a],
|
|
214
|
-
size:
|
|
215
|
-
style:
|
|
216
|
-
src:
|
|
214
|
+
size: u[s],
|
|
215
|
+
style: l,
|
|
216
|
+
src: d,
|
|
217
217
|
"data-variant": a,
|
|
218
|
-
"data-size":
|
|
219
|
-
"data-style":
|
|
218
|
+
"data-size": s,
|
|
219
|
+
"data-style": m,
|
|
220
220
|
...c,
|
|
221
|
-
children:
|
|
221
|
+
children: n != null ? /* @__PURE__ */ e("span", { className: L.iconWrapper, "aria-hidden": !0, children: n }) : i != null ? /* @__PURE__ */ e("span", { className: L.textWrapper, children: i }) : void 0
|
|
222
222
|
}
|
|
223
223
|
);
|
|
224
224
|
});
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
root:
|
|
228
|
-
},
|
|
229
|
-
const
|
|
225
|
+
_e.displayName = "Avatar";
|
|
226
|
+
const me = "Badge-module__root___5osNT", E = {
|
|
227
|
+
root: me
|
|
228
|
+
}, ue = N(function({ variant: s = "primary-color", overStyled: a = !1, ...n }, r) {
|
|
229
|
+
const t = $(n, a), i = {
|
|
230
230
|
root: E.root,
|
|
231
231
|
section: E.section,
|
|
232
232
|
label: E.label
|
|
233
|
-
},
|
|
234
|
-
if (
|
|
235
|
-
const
|
|
236
|
-
i.root =
|
|
233
|
+
}, l = t.classNames;
|
|
234
|
+
if (l && typeof l == "object" && !Array.isArray(l)) {
|
|
235
|
+
const p = l;
|
|
236
|
+
i.root = p.root ? `${E.root} ${p.root}` : E.root, i.section = p.section ?? E.section, i.label = p.label ?? E.label;
|
|
237
237
|
}
|
|
238
|
-
const
|
|
239
|
-
return /* @__PURE__ */
|
|
240
|
-
|
|
238
|
+
const d = t.className, c = d ? `${E.root} ${d}` : E.root;
|
|
239
|
+
return /* @__PURE__ */ e(
|
|
240
|
+
jo,
|
|
241
241
|
{
|
|
242
|
-
ref:
|
|
242
|
+
ref: r,
|
|
243
243
|
variant: "filled",
|
|
244
|
-
"data-variant":
|
|
245
|
-
...
|
|
244
|
+
"data-variant": s,
|
|
245
|
+
...t,
|
|
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 t =
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
251
|
+
ue.displayName = "Badge";
|
|
252
|
+
const fe = "Breadcrumb-module__root___x-9ln", he = "Breadcrumb-module__separator___qrUX-", q = {
|
|
253
|
+
root: fe,
|
|
254
|
+
separator: he
|
|
255
|
+
}, Ne = N(
|
|
256
|
+
function({ overStyled: s = !1, separator: a = ">", ...n }, r) {
|
|
257
|
+
const t = $(
|
|
258
|
+
{ separator: a, ...n },
|
|
259
|
+
s
|
|
260
|
+
), i = {
|
|
261
|
+
root: q.root,
|
|
262
|
+
separator: q.separator
|
|
263
|
+
}, l = t.classNames;
|
|
264
|
+
if (l && typeof l == "object" && !Array.isArray(l)) {
|
|
265
|
+
const p = l;
|
|
266
|
+
i.root = p.root ? `${q.root} ${p.root}` : q.root, i.separator = p.separator ? `${q.separator} ${p.separator}` : q.separator;
|
|
264
267
|
}
|
|
265
|
-
const d = t.className,
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
|
|
268
|
+
const d = t.className, c = d ? `${q.root} ${d}` : q.root;
|
|
269
|
+
return /* @__PURE__ */ e(
|
|
270
|
+
Eo,
|
|
268
271
|
{
|
|
269
|
-
ref:
|
|
272
|
+
ref: r,
|
|
270
273
|
...t,
|
|
271
|
-
className:
|
|
272
|
-
classNames:
|
|
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
|
+
Ne.displayName = "Breadcrumb";
|
|
281
|
+
const $e = "Button-module__root___Q2R8-", ye = "Button-module__label___UJ3Zt", be = "Button-module__labelText___rFV5p", ve = "Button-module__iconWrapper___uEKPa", Ce = "Button-module__section___f2mKr", B = {
|
|
282
|
+
root: $e,
|
|
283
|
+
label: ye,
|
|
284
|
+
labelText: be,
|
|
285
|
+
iconWrapper: ve,
|
|
286
|
+
section: Ce
|
|
284
287
|
};
|
|
285
|
-
function
|
|
286
|
-
return
|
|
288
|
+
function xe(o) {
|
|
289
|
+
return o == null || o === "" ? !1 : typeof o == "string" ? o.trim() !== "" : !0;
|
|
287
290
|
}
|
|
288
|
-
const
|
|
291
|
+
const ge = N(
|
|
289
292
|
function({
|
|
290
|
-
variant:
|
|
293
|
+
variant: s = "solid",
|
|
291
294
|
size: a = "default",
|
|
292
|
-
icon:
|
|
293
|
-
children:
|
|
294
|
-
overStyled:
|
|
295
|
+
icon: n,
|
|
296
|
+
children: r,
|
|
297
|
+
overStyled: t = !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
|
-
},
|
|
307
|
+
}, p = $(i, t), _ = p;
|
|
305
308
|
delete _.fullWidth;
|
|
306
|
-
const
|
|
307
|
-
typeof process < "u" && process.env.NODE_ENV !== "production" &&
|
|
309
|
+
const u = !!n || !!_.leftSection, m = !!_.rightSection, h = (u || m) && !xe(r);
|
|
310
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && h && !_["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
|
-
},
|
|
315
|
-
if (
|
|
316
|
-
const
|
|
317
|
-
|
|
313
|
+
const y = {
|
|
314
|
+
root: B.root,
|
|
315
|
+
section: B.section,
|
|
316
|
+
label: B.label
|
|
317
|
+
}, g = _.classNames;
|
|
318
|
+
if (g && typeof g == "object" && !Array.isArray(g)) {
|
|
319
|
+
const P = g;
|
|
320
|
+
y.root = P.root ? `${B.root} ${P.root}` : B.root, y.section = P.section ?? B.section, y.label = P.label ?? B.label;
|
|
318
321
|
}
|
|
319
|
-
const
|
|
320
|
-
return /* @__PURE__ */
|
|
321
|
-
|
|
322
|
+
const f = _.className, v = f ? `${B.root} ${f}` : B.root;
|
|
323
|
+
return /* @__PURE__ */ e(
|
|
324
|
+
Oo,
|
|
322
325
|
{
|
|
323
|
-
ref:
|
|
324
|
-
className:
|
|
325
|
-
classNames:
|
|
326
|
-
variant:
|
|
326
|
+
ref: l,
|
|
327
|
+
className: v,
|
|
328
|
+
classNames: y,
|
|
329
|
+
variant: d[s],
|
|
327
330
|
size: c[a],
|
|
328
|
-
leftSection:
|
|
329
|
-
"data-variant":
|
|
331
|
+
leftSection: n != null ? /* @__PURE__ */ e("span", { className: B.iconWrapper, "aria-hidden": !0, children: n }) : void 0,
|
|
332
|
+
"data-variant": s,
|
|
330
333
|
"data-size": a,
|
|
331
|
-
...
|
|
332
|
-
...
|
|
333
|
-
children: /* @__PURE__ */
|
|
334
|
+
...h ? { "data-icon-only": "" } : {},
|
|
335
|
+
...p,
|
|
336
|
+
children: /* @__PURE__ */ e("span", { className: B.labelText, children: r })
|
|
334
337
|
}
|
|
335
338
|
);
|
|
336
339
|
}
|
|
337
340
|
);
|
|
338
|
-
|
|
339
|
-
const
|
|
340
|
-
root:
|
|
341
|
-
header:
|
|
342
|
-
footer:
|
|
343
|
-
section:
|
|
344
|
-
content:
|
|
345
|
-
},
|
|
346
|
-
const
|
|
347
|
-
root:
|
|
348
|
-
}, i =
|
|
341
|
+
ge.displayName = "Button";
|
|
342
|
+
const Pe = "Card-module__root___c9KvZ", Ae = "Card-module__header___PTXf2", we = "Card-module__footer___Mu-JC", We = "Card-module__section___BRT8H", ke = "Card-module__content___oFIQa", M = {
|
|
343
|
+
root: Pe,
|
|
344
|
+
header: Ae,
|
|
345
|
+
footer: we,
|
|
346
|
+
section: We,
|
|
347
|
+
content: ke
|
|
348
|
+
}, xo = N(function({ overStyled: s = !1, ...a }, n) {
|
|
349
|
+
const r = $(a, s), t = {
|
|
350
|
+
root: M.root
|
|
351
|
+
}, i = r.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
|
+
t[c] ? t[c] = `${t[c]} ${d[c]}` : t[c] = d[c];
|
|
353
356
|
});
|
|
354
357
|
}
|
|
355
|
-
const
|
|
356
|
-
return /* @__PURE__ */
|
|
357
|
-
|
|
358
|
+
const l = r.className;
|
|
359
|
+
return /* @__PURE__ */ e(
|
|
360
|
+
ro,
|
|
358
361
|
{
|
|
359
|
-
ref:
|
|
360
|
-
className:
|
|
361
|
-
classNames:
|
|
362
|
-
...
|
|
362
|
+
ref: n,
|
|
363
|
+
className: l,
|
|
364
|
+
classNames: t,
|
|
365
|
+
...r
|
|
363
366
|
}
|
|
364
367
|
);
|
|
365
368
|
});
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
function({ overStyled:
|
|
369
|
-
const
|
|
370
|
-
return /* @__PURE__ */
|
|
371
|
-
|
|
369
|
+
xo.displayName = "Card";
|
|
370
|
+
const go = N(
|
|
371
|
+
function({ overStyled: s = !1, ...a }, n) {
|
|
372
|
+
const r = $(a, s), t = r.className;
|
|
373
|
+
return /* @__PURE__ */ e(
|
|
374
|
+
ro.Section,
|
|
372
375
|
{
|
|
373
|
-
ref:
|
|
374
|
-
className:
|
|
375
|
-
...
|
|
376
|
+
ref: n,
|
|
377
|
+
className: t ? `${M.section} ${t}` : M.section,
|
|
378
|
+
...r
|
|
376
379
|
}
|
|
377
380
|
);
|
|
378
381
|
}
|
|
379
382
|
);
|
|
380
|
-
|
|
381
|
-
const
|
|
382
|
-
function({ overStyled:
|
|
383
|
-
const
|
|
384
|
-
return /* @__PURE__ */
|
|
385
|
-
|
|
383
|
+
go.displayName = "CardSection";
|
|
384
|
+
const Po = N(
|
|
385
|
+
function({ overStyled: s = !1, ...a }, n) {
|
|
386
|
+
const r = $(a, s), t = r.className;
|
|
387
|
+
return /* @__PURE__ */ e(
|
|
388
|
+
ro.Section,
|
|
386
389
|
{
|
|
387
|
-
ref:
|
|
388
|
-
className:
|
|
389
|
-
...
|
|
390
|
+
ref: n,
|
|
391
|
+
className: t ? `${M.header} ${t}` : M.header,
|
|
392
|
+
...r
|
|
390
393
|
}
|
|
391
394
|
);
|
|
392
395
|
}
|
|
393
396
|
);
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
function({ overStyled:
|
|
397
|
-
const
|
|
398
|
-
return /* @__PURE__ */
|
|
399
|
-
|
|
397
|
+
Po.displayName = "CardHeader";
|
|
398
|
+
const Ao = N(
|
|
399
|
+
function({ overStyled: s = !1, ...a }, n) {
|
|
400
|
+
const r = $(a, s), t = r.className;
|
|
401
|
+
return /* @__PURE__ */ e(
|
|
402
|
+
ro.Section,
|
|
400
403
|
{
|
|
401
|
-
ref:
|
|
402
|
-
className:
|
|
403
|
-
...
|
|
404
|
+
ref: n,
|
|
405
|
+
className: t ? `${M.footer} ${t}` : M.footer,
|
|
406
|
+
...r
|
|
404
407
|
}
|
|
405
408
|
);
|
|
406
409
|
}
|
|
407
410
|
);
|
|
408
|
-
|
|
409
|
-
const
|
|
410
|
-
function({ overStyled:
|
|
411
|
-
const
|
|
412
|
-
return /* @__PURE__ */
|
|
411
|
+
Ao.displayName = "CardFooter";
|
|
412
|
+
const wo = N(
|
|
413
|
+
function({ overStyled: s = !1, ...a }, n) {
|
|
414
|
+
const r = $(a, s), t = r.className;
|
|
415
|
+
return /* @__PURE__ */ e(
|
|
413
416
|
"div",
|
|
414
417
|
{
|
|
415
|
-
ref:
|
|
416
|
-
className:
|
|
417
|
-
...
|
|
418
|
+
ref: n,
|
|
419
|
+
className: t ? `${M.content} ${t}` : M.content,
|
|
420
|
+
...r
|
|
418
421
|
}
|
|
419
422
|
);
|
|
420
423
|
}
|
|
421
424
|
);
|
|
422
|
-
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
const
|
|
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
|
+
wo.displayName = "CardContent";
|
|
426
|
+
const so = xo;
|
|
427
|
+
so.Section = go;
|
|
428
|
+
so.Header = Po;
|
|
429
|
+
so.Footer = Ao;
|
|
430
|
+
so.Content = wo;
|
|
431
|
+
const Te = "Label-module__root___e6HXZ", ze = "Label-module__labelText___rieFR", Se = "Label-module__required___Ggrzc", Fe = "Label-module__optionalText___Y2yun", Re = "Label-module__actionAreaWrapper___ELoZK", Ie = "Label-module__editIconWrapper___NG2xW", F = {
|
|
432
|
+
root: Te,
|
|
433
|
+
labelText: ze,
|
|
434
|
+
required: Se,
|
|
435
|
+
optionalText: Fe,
|
|
436
|
+
actionAreaWrapper: Re,
|
|
437
|
+
editIconWrapper: Ie
|
|
438
|
+
}, Wo = N(function({
|
|
439
|
+
formLayout: s = "stacked",
|
|
483
440
|
labelSize: a = "default",
|
|
484
|
-
labelAlignment:
|
|
485
|
-
required:
|
|
486
|
-
labelOptionalText:
|
|
441
|
+
labelAlignment: n,
|
|
442
|
+
required: r = !1,
|
|
443
|
+
labelOptionalText: t,
|
|
487
444
|
labelWithEditIcon: i,
|
|
488
|
-
labelActionArea:
|
|
489
|
-
onLabelEditClick:
|
|
445
|
+
labelActionArea: l,
|
|
446
|
+
onLabelEditClick: d,
|
|
490
447
|
children: c,
|
|
491
|
-
overStyled:
|
|
448
|
+
overStyled: p = !1,
|
|
492
449
|
..._
|
|
493
|
-
},
|
|
494
|
-
const
|
|
495
|
-
let
|
|
496
|
-
|
|
497
|
-
const
|
|
498
|
-
label:
|
|
499
|
-
required:
|
|
500
|
-
},
|
|
501
|
-
if (
|
|
502
|
-
const
|
|
503
|
-
|
|
450
|
+
}, u) {
|
|
451
|
+
const m = n || (s === "side-by-side" ? "right" : "left");
|
|
452
|
+
let h;
|
|
453
|
+
r || (t === !0 ? h = "optional" : t && (h = t));
|
|
454
|
+
const y = $(_, p), g = y, f = {
|
|
455
|
+
label: F.root,
|
|
456
|
+
required: F.required
|
|
457
|
+
}, v = g.classNames;
|
|
458
|
+
if (v && typeof v == "object" && !Array.isArray(v)) {
|
|
459
|
+
const A = v;
|
|
460
|
+
f.label = A.label ? `${F.root} ${A.label}` : F.root, f.required = A.required ? `${F.required} ${A.required}` : F.required;
|
|
504
461
|
}
|
|
505
|
-
const
|
|
506
|
-
return /* @__PURE__ */
|
|
507
|
-
|
|
462
|
+
const P = g.className, W = P ? `${F.root} ${P}` : F.root;
|
|
463
|
+
return /* @__PURE__ */ G(
|
|
464
|
+
$o.Label,
|
|
508
465
|
{
|
|
509
|
-
ref:
|
|
510
|
-
className:
|
|
511
|
-
classNames:
|
|
512
|
-
"data-layout":
|
|
466
|
+
ref: u,
|
|
467
|
+
className: W,
|
|
468
|
+
classNames: f,
|
|
469
|
+
"data-layout": s,
|
|
513
470
|
"data-size": a,
|
|
514
|
-
"data-alignment":
|
|
515
|
-
required:
|
|
516
|
-
...
|
|
471
|
+
"data-alignment": m,
|
|
472
|
+
required: r && !i,
|
|
473
|
+
...y,
|
|
517
474
|
children: [
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
|
|
520
|
-
|
|
475
|
+
/* @__PURE__ */ e("span", { className: F.labelText, children: c }),
|
|
476
|
+
h && /* @__PURE__ */ e("span", { className: F.optionalText, children: typeof h == "string" ? `(${h})` : h }),
|
|
477
|
+
l ? /* @__PURE__ */ e("span", { className: F.actionAreaWrapper, children: l }) : i ? /* @__PURE__ */ e(
|
|
521
478
|
"button",
|
|
522
479
|
{
|
|
523
480
|
type: "button",
|
|
524
|
-
className:
|
|
525
|
-
"data-replaces-asterisk":
|
|
526
|
-
onClick:
|
|
481
|
+
className: F.editIconWrapper,
|
|
482
|
+
"data-replaces-asterisk": r ? "true" : void 0,
|
|
483
|
+
onClick: d,
|
|
527
484
|
"aria-label": "Edit",
|
|
528
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ e(
|
|
529
486
|
"svg",
|
|
530
487
|
{
|
|
531
488
|
width: "16",
|
|
@@ -533,7 +490,7 @@ const yo = "Label-module__root___e6HXZ", $o = "Label-module__labelText___rieFR",
|
|
|
533
490
|
viewBox: "0 0 16 16",
|
|
534
491
|
fill: "none",
|
|
535
492
|
xmlns: "http://www.w3.org/2000/svg",
|
|
536
|
-
children: /* @__PURE__ */
|
|
493
|
+
children: /* @__PURE__ */ e(
|
|
537
494
|
"path",
|
|
538
495
|
{
|
|
539
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",
|
|
@@ -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
|
+
Wo.displayName = "Label";
|
|
511
|
+
const Le = "AssistiveElement-module__root___WhQ43", Be = "AssistiveElement-module__textWrapper___sfy5E", je = "AssistiveElement-module__iconWrapper___gObRF", ao = {
|
|
512
|
+
root: Le,
|
|
513
|
+
textWrapper: Be,
|
|
514
|
+
iconWrapper: je
|
|
515
|
+
}, Ee = () => /* @__PURE__ */ G(
|
|
559
516
|
"svg",
|
|
560
517
|
{
|
|
561
518
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -566,12 +523,12 @@ const Ao = "AssistiveElement-module__root___WhQ43", Po = "AssistiveElement-modul
|
|
|
566
523
|
strokeLinecap: "round",
|
|
567
524
|
strokeLinejoin: "round",
|
|
568
525
|
children: [
|
|
569
|
-
/* @__PURE__ */
|
|
570
|
-
/* @__PURE__ */
|
|
571
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
|
|
527
|
+
/* @__PURE__ */ e("path", { d: "M12 16v-4" }),
|
|
528
|
+
/* @__PURE__ */ e("path", { d: "M12 8h.01" })
|
|
572
529
|
]
|
|
573
530
|
}
|
|
574
|
-
),
|
|
531
|
+
), Oe = () => /* @__PURE__ */ G(
|
|
575
532
|
"svg",
|
|
576
533
|
{
|
|
577
534
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -582,118 +539,120 @@ const Ao = "AssistiveElement-module__root___WhQ43", Po = "AssistiveElement-modul
|
|
|
582
539
|
strokeLinecap: "round",
|
|
583
540
|
strokeLinejoin: "round",
|
|
584
541
|
children: [
|
|
585
|
-
/* @__PURE__ */
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */
|
|
542
|
+
/* @__PURE__ */ e("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__ */ e("path", { d: "M12 9v4" }),
|
|
544
|
+
/* @__PURE__ */ e("path", { d: "M12 17h.01" })
|
|
588
545
|
]
|
|
589
546
|
}
|
|
590
|
-
),
|
|
591
|
-
assistiveVariant:
|
|
547
|
+
), io = N(function({
|
|
548
|
+
assistiveVariant: s = "help",
|
|
592
549
|
assistiveWithIcon: a = !0,
|
|
593
|
-
children:
|
|
594
|
-
className:
|
|
595
|
-
overStyled:
|
|
550
|
+
children: n,
|
|
551
|
+
className: r,
|
|
552
|
+
overStyled: t = !1,
|
|
596
553
|
...i
|
|
597
|
-
},
|
|
598
|
-
const c =
|
|
599
|
-
return /* @__PURE__ */
|
|
554
|
+
}, l) {
|
|
555
|
+
const c = $(i, t), p = ao.root, _ = r ? `${p} ${r}` : p, u = s === "error" ? Oe : Ee;
|
|
556
|
+
return /* @__PURE__ */ G(
|
|
600
557
|
"div",
|
|
601
558
|
{
|
|
602
|
-
ref:
|
|
559
|
+
ref: l,
|
|
603
560
|
className: _,
|
|
604
|
-
"data-variant":
|
|
561
|
+
"data-variant": s,
|
|
605
562
|
style: c.style,
|
|
606
563
|
...c,
|
|
607
564
|
children: [
|
|
608
|
-
a && /* @__PURE__ */
|
|
609
|
-
/* @__PURE__ */
|
|
565
|
+
a && /* @__PURE__ */ e("span", { className: ao.iconWrapper, children: /* @__PURE__ */ e(u, {}) }),
|
|
566
|
+
/* @__PURE__ */ e("span", { className: ao.textWrapper, children: n })
|
|
610
567
|
]
|
|
611
568
|
}
|
|
612
569
|
);
|
|
613
570
|
});
|
|
614
|
-
|
|
615
|
-
const
|
|
616
|
-
root:
|
|
617
|
-
labelSection:
|
|
618
|
-
inputSection:
|
|
619
|
-
},
|
|
620
|
-
formLayout:
|
|
571
|
+
io.displayName = "AssistiveElement";
|
|
572
|
+
const De = "FormControlWrapper-module__root___c-UHo", Ge = "FormControlWrapper-module__labelSection___hxSY4", Me = "FormControlWrapper-module__inputSection___HenXk", co = {
|
|
573
|
+
root: De,
|
|
574
|
+
labelSection: Ge,
|
|
575
|
+
inputSection: Me
|
|
576
|
+
}, H = N(function({
|
|
577
|
+
formLayout: s,
|
|
621
578
|
labelSize: a,
|
|
622
|
-
labelAlignment:
|
|
623
|
-
labelOptionalText:
|
|
624
|
-
labelWithEditIcon:
|
|
579
|
+
labelAlignment: n,
|
|
580
|
+
labelOptionalText: r,
|
|
581
|
+
labelWithEditIcon: t,
|
|
625
582
|
labelActionArea: i,
|
|
626
|
-
onLabelEditClick:
|
|
627
|
-
label:
|
|
583
|
+
onLabelEditClick: l,
|
|
584
|
+
label: d,
|
|
628
585
|
description: c,
|
|
629
|
-
assistiveText:
|
|
586
|
+
assistiveText: p,
|
|
630
587
|
assistiveWithIcon: _ = !0,
|
|
631
|
-
controlMaxWidth:
|
|
632
|
-
controlMinWidth:
|
|
633
|
-
error:
|
|
634
|
-
required:
|
|
635
|
-
withAsterisk:
|
|
636
|
-
id:
|
|
637
|
-
children:
|
|
638
|
-
className:
|
|
639
|
-
overStyled:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
588
|
+
controlMaxWidth: u,
|
|
589
|
+
controlMinWidth: m,
|
|
590
|
+
error: h,
|
|
591
|
+
required: y,
|
|
592
|
+
withAsterisk: g,
|
|
593
|
+
id: f,
|
|
594
|
+
children: v,
|
|
595
|
+
className: P,
|
|
596
|
+
overStyled: W = !1,
|
|
597
|
+
labelElement: A,
|
|
598
|
+
// Extracted safely preventing bleeding into HTML domains
|
|
599
|
+
...R
|
|
600
|
+
}, j) {
|
|
601
|
+
const I = Io(), x = f || `recursica-fc-${I}`, k = p || c, w = k ? `${x}-assistive` : void 0, C = h ? `${x}-error` : void 0, Y = $(R, W), S = P || Y.className, mo = co.root, Fo = S ? `${mo} ${S}` : mo, Ro = V.isValidElement(v) ? V.cloneElement(
|
|
602
|
+
v,
|
|
644
603
|
{
|
|
645
|
-
...
|
|
646
|
-
...
|
|
604
|
+
...k && !v.props["aria-describedby"] ? { "aria-describedby": w } : {},
|
|
605
|
+
...h && !v.props["aria-errormessage"] ? { "aria-errormessage": C } : {}
|
|
647
606
|
}
|
|
648
|
-
) :
|
|
649
|
-
return /* @__PURE__ */
|
|
650
|
-
|
|
607
|
+
) : v;
|
|
608
|
+
return /* @__PURE__ */ G(
|
|
609
|
+
yo,
|
|
651
610
|
{
|
|
652
|
-
ref:
|
|
653
|
-
className:
|
|
654
|
-
"data-form-layout":
|
|
655
|
-
"data-form-alignment":
|
|
611
|
+
ref: j,
|
|
612
|
+
className: Fo,
|
|
613
|
+
"data-form-layout": s || "stacked",
|
|
614
|
+
"data-form-alignment": n || "left",
|
|
656
615
|
style: {
|
|
657
|
-
...
|
|
658
|
-
...
|
|
659
|
-
...
|
|
616
|
+
...Y.style || {},
|
|
617
|
+
...u ? { "--form-control-max-width": u } : {},
|
|
618
|
+
...m ? { "--form-control-min-width": m } : {}
|
|
660
619
|
},
|
|
661
|
-
...
|
|
620
|
+
...Y,
|
|
662
621
|
children: [
|
|
663
|
-
|
|
664
|
-
|
|
622
|
+
d && /* @__PURE__ */ e("div", { className: co.labelSection, children: /* @__PURE__ */ e(
|
|
623
|
+
Wo,
|
|
665
624
|
{
|
|
666
|
-
id:
|
|
667
|
-
formLayout:
|
|
625
|
+
id: x,
|
|
626
|
+
formLayout: s,
|
|
668
627
|
labelSize: a,
|
|
669
|
-
labelAlignment:
|
|
670
|
-
labelOptionalText:
|
|
671
|
-
labelWithEditIcon:
|
|
628
|
+
labelAlignment: n,
|
|
629
|
+
labelOptionalText: r,
|
|
630
|
+
labelWithEditIcon: t,
|
|
672
631
|
labelActionArea: i,
|
|
673
|
-
onLabelEditClick:
|
|
674
|
-
required:
|
|
675
|
-
...
|
|
676
|
-
children:
|
|
632
|
+
onLabelEditClick: l,
|
|
633
|
+
required: g ?? y,
|
|
634
|
+
...A === "div" ? { as: "div" } : {},
|
|
635
|
+
children: d
|
|
677
636
|
}
|
|
678
637
|
) }),
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
638
|
+
/* @__PURE__ */ G("div", { className: co.inputSection, children: [
|
|
639
|
+
Ro,
|
|
640
|
+
h && /* @__PURE__ */ e(
|
|
641
|
+
io,
|
|
683
642
|
{
|
|
684
|
-
id:
|
|
643
|
+
id: C,
|
|
685
644
|
assistiveVariant: "error",
|
|
686
645
|
assistiveWithIcon: _,
|
|
687
|
-
children:
|
|
646
|
+
children: h
|
|
688
647
|
}
|
|
689
648
|
),
|
|
690
|
-
!
|
|
691
|
-
|
|
649
|
+
!h && k && /* @__PURE__ */ e(
|
|
650
|
+
io,
|
|
692
651
|
{
|
|
693
652
|
id: w,
|
|
694
653
|
assistiveVariant: "help",
|
|
695
654
|
assistiveWithIcon: _,
|
|
696
|
-
children:
|
|
655
|
+
children: k
|
|
697
656
|
}
|
|
698
657
|
)
|
|
699
658
|
] })
|
|
@@ -701,319 +660,740 @@ 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
|
+
H.displayName = "FormControlWrapper";
|
|
664
|
+
const qe = "Checkbox-module__groupRoot___cBS0o", Ve = "Checkbox-module__root___mY3qk", He = "Checkbox-module__body___5yC7q", Ke = "Checkbox-module__inner___rTke4", Ue = "Checkbox-module__input___2kt-h", Ze = "Checkbox-module__icon___-O7i6", Ye = "Checkbox-module__labelWrapper___GpZkr", Xe = "Checkbox-module__label___cwRtI", b = {
|
|
665
|
+
groupRoot: qe,
|
|
666
|
+
root: Ve,
|
|
667
|
+
body: He,
|
|
668
|
+
inner: Ke,
|
|
669
|
+
input: Ue,
|
|
670
|
+
icon: Ze,
|
|
671
|
+
labelWrapper: Ye,
|
|
672
|
+
label: Xe
|
|
673
|
+
}, ko = N(
|
|
715
674
|
function({
|
|
716
|
-
overStyled:
|
|
675
|
+
overStyled: s = !1,
|
|
717
676
|
formLayout: a = "stacked",
|
|
718
677
|
// Label Wrappers
|
|
719
|
-
labelSize:
|
|
720
|
-
labelAlignment:
|
|
721
|
-
labelOptionalText:
|
|
678
|
+
labelSize: n,
|
|
679
|
+
labelAlignment: r,
|
|
680
|
+
labelOptionalText: t,
|
|
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:
|
|
686
|
+
assistiveText: p,
|
|
728
687
|
assistiveWithIcon: _,
|
|
729
|
-
error:
|
|
730
|
-
required:
|
|
731
|
-
withAsterisk:
|
|
732
|
-
id:
|
|
733
|
-
className:
|
|
734
|
-
style:
|
|
735
|
-
children:
|
|
736
|
-
readOnly:
|
|
737
|
-
readOnlyComponent:
|
|
738
|
-
...
|
|
739
|
-
},
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
), x = b(W, r), w = x;
|
|
744
|
-
return delete w.size, V && R ? /* @__PURE__ */ o(
|
|
745
|
-
q,
|
|
688
|
+
error: u,
|
|
689
|
+
required: m,
|
|
690
|
+
withAsterisk: h,
|
|
691
|
+
id: y,
|
|
692
|
+
className: g,
|
|
693
|
+
style: f,
|
|
694
|
+
children: v,
|
|
695
|
+
readOnly: P,
|
|
696
|
+
readOnlyComponent: W,
|
|
697
|
+
...A
|
|
698
|
+
}, R) {
|
|
699
|
+
const j = $(A, s), I = j;
|
|
700
|
+
return delete I.size, P && W ? /* @__PURE__ */ e(
|
|
701
|
+
H,
|
|
746
702
|
{
|
|
747
|
-
className:
|
|
748
|
-
style:
|
|
749
|
-
|
|
703
|
+
className: g,
|
|
704
|
+
style: f,
|
|
705
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
706
|
+
controlMinWidth: void 0,
|
|
707
|
+
overStyled: s,
|
|
750
708
|
labelElement: "div",
|
|
751
709
|
formLayout: a,
|
|
752
|
-
labelSize:
|
|
753
|
-
labelAlignment:
|
|
754
|
-
labelOptionalText:
|
|
710
|
+
labelSize: n,
|
|
711
|
+
labelAlignment: r,
|
|
712
|
+
labelOptionalText: t,
|
|
755
713
|
labelWithEditIcon: i,
|
|
756
|
-
onLabelEditClick:
|
|
757
|
-
label:
|
|
714
|
+
onLabelEditClick: l,
|
|
715
|
+
label: d,
|
|
758
716
|
description: c,
|
|
759
|
-
assistiveText:
|
|
717
|
+
assistiveText: p,
|
|
760
718
|
assistiveWithIcon: _,
|
|
761
|
-
error:
|
|
762
|
-
required:
|
|
763
|
-
withAsterisk:
|
|
764
|
-
id:
|
|
765
|
-
children:
|
|
719
|
+
error: u,
|
|
720
|
+
required: m,
|
|
721
|
+
withAsterisk: h,
|
|
722
|
+
id: y,
|
|
723
|
+
children: W
|
|
766
724
|
}
|
|
767
|
-
) : /* @__PURE__ */
|
|
768
|
-
|
|
725
|
+
) : /* @__PURE__ */ e(
|
|
726
|
+
H,
|
|
769
727
|
{
|
|
770
|
-
className:
|
|
771
|
-
style:
|
|
772
|
-
|
|
728
|
+
className: g,
|
|
729
|
+
style: f,
|
|
730
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
731
|
+
controlMinWidth: void 0,
|
|
732
|
+
overStyled: s,
|
|
773
733
|
labelElement: "div",
|
|
774
734
|
formLayout: a,
|
|
775
|
-
labelSize:
|
|
776
|
-
labelAlignment:
|
|
777
|
-
labelOptionalText:
|
|
735
|
+
labelSize: n,
|
|
736
|
+
labelAlignment: r,
|
|
737
|
+
labelOptionalText: t,
|
|
778
738
|
labelWithEditIcon: i,
|
|
779
|
-
onLabelEditClick:
|
|
780
|
-
label:
|
|
739
|
+
onLabelEditClick: l,
|
|
740
|
+
label: d,
|
|
781
741
|
description: c,
|
|
782
|
-
assistiveText:
|
|
742
|
+
assistiveText: p,
|
|
783
743
|
assistiveWithIcon: _,
|
|
784
|
-
error:
|
|
785
|
-
required:
|
|
786
|
-
withAsterisk:
|
|
787
|
-
id:
|
|
788
|
-
children: /* @__PURE__ */
|
|
789
|
-
|
|
744
|
+
error: u,
|
|
745
|
+
required: m,
|
|
746
|
+
withAsterisk: h,
|
|
747
|
+
id: y,
|
|
748
|
+
children: /* @__PURE__ */ e(
|
|
749
|
+
bo.Group,
|
|
790
750
|
{
|
|
791
|
-
ref:
|
|
792
|
-
...
|
|
793
|
-
children: /* @__PURE__ */
|
|
794
|
-
disabled:
|
|
795
|
-
}) :
|
|
751
|
+
ref: R,
|
|
752
|
+
...j,
|
|
753
|
+
children: /* @__PURE__ */ e("div", { className: b.groupRoot, "data-layout": a, children: V.Children.map(v, (x) => V.isValidElement(x) ? V.cloneElement(x, {
|
|
754
|
+
disabled: P || x.props.disabled
|
|
755
|
+
}) : x) })
|
|
796
756
|
}
|
|
797
757
|
)
|
|
798
758
|
}
|
|
799
759
|
);
|
|
800
760
|
}
|
|
801
761
|
);
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
function({ overStyled:
|
|
805
|
-
const
|
|
806
|
-
if (delete
|
|
807
|
-
return /* @__PURE__ */
|
|
808
|
-
|
|
762
|
+
ko.displayName = "CheckboxGroup";
|
|
763
|
+
const To = N(
|
|
764
|
+
function({ overStyled: s = !1, readOnly: a, readOnlyComponent: n, disabled: r, ...t }, i) {
|
|
765
|
+
const l = $(t, s), d = l;
|
|
766
|
+
if (delete d.size, delete d.color, delete d.radius, delete d.variant, delete d.iconColor, a && n)
|
|
767
|
+
return /* @__PURE__ */ e(
|
|
768
|
+
H,
|
|
809
769
|
{
|
|
810
|
-
overStyled:
|
|
770
|
+
overStyled: s,
|
|
811
771
|
...l,
|
|
812
|
-
children:
|
|
772
|
+
children: n
|
|
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: b.root,
|
|
777
|
+
body: b.body,
|
|
778
|
+
inner: b.inner,
|
|
779
|
+
input: b.input,
|
|
780
|
+
icon: b.icon,
|
|
781
|
+
labelWrapper: b.labelWrapper,
|
|
782
|
+
label: b.label
|
|
783
|
+
}, p = d.classNames;
|
|
784
|
+
if (p && typeof p == "object" && !Array.isArray(p)) {
|
|
785
|
+
const m = p;
|
|
786
|
+
c.root = m.root ? `${b.root} ${m.root}` : b.root, c.body = m.body ? `${b.body} ${m.body}` : b.body, c.inner = m.inner ? `${b.inner} ${m.inner}` : b.inner, c.input = m.input ? `${b.input} ${m.input}` : b.input, c.icon = m.icon ? `${b.icon} ${m.icon}` : b.icon, c.labelWrapper = m.labelWrapper ? `${b.labelWrapper} ${m.labelWrapper}` : b.labelWrapper, c.label = m.label ? `${b.label} ${m.label}` : b.label;
|
|
827
787
|
}
|
|
828
|
-
const
|
|
829
|
-
return /* @__PURE__ */
|
|
830
|
-
|
|
788
|
+
const _ = d.className, u = _ ? `${b.root} ${_}` : b.root;
|
|
789
|
+
return /* @__PURE__ */ e(
|
|
790
|
+
bo,
|
|
831
791
|
{
|
|
832
792
|
ref: i,
|
|
833
|
-
className:
|
|
834
|
-
classNames:
|
|
835
|
-
disabled:
|
|
793
|
+
className: u,
|
|
794
|
+
classNames: c,
|
|
795
|
+
disabled: a || r,
|
|
836
796
|
...l
|
|
837
797
|
}
|
|
838
798
|
);
|
|
839
799
|
}
|
|
840
800
|
);
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
801
|
+
To.displayName = "Checkbox";
|
|
802
|
+
To.Group = ko;
|
|
803
|
+
const Je = "Chip-module__root___f5pFk", Qe = "Chip-module__label___Ov9pg", ot = "Chip-module__mantineIconWrapper___KLSz6", et = "Chip-module__innerWrapper___EnrTF", tt = "Chip-module__children___zbRAR", rt = "Chip-module__leadingIcon___JBtjQ", st = "Chip-module__removeIcon___pVju-", T = {
|
|
804
|
+
root: Je,
|
|
805
|
+
label: Qe,
|
|
806
|
+
mantineIconWrapper: ot,
|
|
807
|
+
innerWrapper: et,
|
|
808
|
+
children: tt,
|
|
809
|
+
leadingIcon: rt,
|
|
810
|
+
removeIcon: st
|
|
811
|
+
};
|
|
812
|
+
function nt(o) {
|
|
813
|
+
return /* @__PURE__ */ G(
|
|
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
|
+
...o,
|
|
826
|
+
children: [
|
|
827
|
+
/* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
828
|
+
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
829
|
+
]
|
|
830
|
+
}
|
|
831
|
+
);
|
|
832
|
+
}
|
|
833
|
+
const at = N(function({
|
|
834
|
+
error: s = !1,
|
|
835
|
+
icon: a,
|
|
836
|
+
onRemove: n,
|
|
837
|
+
removeLabel: r = "Remove",
|
|
838
|
+
children: t,
|
|
839
|
+
overStyled: i = !1,
|
|
840
|
+
...l
|
|
841
|
+
}, d) {
|
|
842
|
+
const c = $(l, i), p = c, _ = {
|
|
843
|
+
root: T.root,
|
|
844
|
+
label: T.label,
|
|
845
|
+
input: T.input,
|
|
846
|
+
iconWrapper: T.mantineIconWrapper,
|
|
847
|
+
checkIcon: T.checkIcon
|
|
848
|
+
}, u = p.classNames;
|
|
849
|
+
if (u && typeof u == "object" && !Array.isArray(u)) {
|
|
850
|
+
const f = u;
|
|
851
|
+
_.root = f.root ? `${T.root} ${f.root}` : T.root, _.label = f.label ? `${T.label} ${f.label}` : T.label;
|
|
852
|
+
}
|
|
853
|
+
const m = p.className, h = m ? `${T.root} ${m}` : T.root;
|
|
854
|
+
return /* @__PURE__ */ e(
|
|
855
|
+
Do,
|
|
856
|
+
{
|
|
857
|
+
ref: d,
|
|
858
|
+
className: h,
|
|
859
|
+
classNames: _,
|
|
860
|
+
...(s ? "" : void 0) !== void 0 ? { "data-error": "" } : {},
|
|
861
|
+
...!t && (!!a || !!n) ? { "data-icon-only": "" } : {},
|
|
862
|
+
...c,
|
|
863
|
+
children: /* @__PURE__ */ G("span", { className: T.innerWrapper, children: [
|
|
864
|
+
a && /* @__PURE__ */ e("span", { className: T.leadingIcon, "aria-hidden": !0, children: a }),
|
|
865
|
+
/* @__PURE__ */ e("span", { className: T.children, children: t }),
|
|
866
|
+
n && /* @__PURE__ */ e(
|
|
867
|
+
"span",
|
|
868
|
+
{
|
|
869
|
+
role: "button",
|
|
870
|
+
className: T.removeIcon,
|
|
871
|
+
onClick: (f) => {
|
|
872
|
+
f.preventDefault(), f.stopPropagation(), n(f);
|
|
873
|
+
},
|
|
874
|
+
"aria-label": r,
|
|
875
|
+
onKeyDown: (f) => {
|
|
876
|
+
(f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), n(
|
|
877
|
+
f
|
|
878
|
+
));
|
|
879
|
+
},
|
|
880
|
+
tabIndex: 0,
|
|
881
|
+
children: /* @__PURE__ */ e(nt, {})
|
|
882
|
+
}
|
|
883
|
+
)
|
|
884
|
+
] })
|
|
885
|
+
}
|
|
886
|
+
);
|
|
887
|
+
});
|
|
888
|
+
at.displayName = "Chip";
|
|
889
|
+
const ct = "Container-module__root___UVssr", X = {
|
|
890
|
+
root: ct
|
|
891
|
+
}, it = N(
|
|
892
|
+
function({ children: s, overStyled: a = !1, ...n }, r) {
|
|
893
|
+
const t = $(n, a), i = t, l = {
|
|
894
|
+
root: X.root
|
|
895
|
+
}, d = i.classNames;
|
|
896
|
+
if (d && typeof d == "object" && !Array.isArray(d)) {
|
|
897
|
+
const _ = d;
|
|
898
|
+
l.root = _.root ? `${X.root} ${_.root}` : X.root;
|
|
899
|
+
}
|
|
900
|
+
const c = i.className, p = c ? `${X.root} ${c}` : X.root;
|
|
901
|
+
return /* @__PURE__ */ e(
|
|
902
|
+
Go,
|
|
903
|
+
{
|
|
904
|
+
ref: r,
|
|
905
|
+
className: p,
|
|
906
|
+
classNames: l,
|
|
907
|
+
...t,
|
|
908
|
+
children: s
|
|
909
|
+
}
|
|
910
|
+
);
|
|
911
|
+
}
|
|
912
|
+
);
|
|
913
|
+
it.displayName = "Container";
|
|
914
|
+
const Bt = (o) => /* @__PURE__ */ e("div", { ...o, children: "DatePicker" }), lt = "_root_1qhn7_3", dt = "_contents_1qhn7_18", K = {
|
|
915
|
+
root: lt,
|
|
916
|
+
contents: dt
|
|
917
|
+
}, pt = N(function({ layer: o, contentsOnly: s, children: a, className: n, style: r, ...t }, i) {
|
|
918
|
+
const l = s ? n ? `${K.root} ${K.contents} ${n}` : `${K.root} ${K.contents}` : n ? `${K.root} ${n}` : K.root;
|
|
919
|
+
return /* @__PURE__ */ e(
|
|
920
|
+
"div",
|
|
921
|
+
{
|
|
922
|
+
ref: i,
|
|
923
|
+
className: l,
|
|
924
|
+
style: r,
|
|
925
|
+
...s ? {} : { "data-recursica-layer": String(o) },
|
|
926
|
+
...t,
|
|
927
|
+
children: a
|
|
928
|
+
}
|
|
929
|
+
);
|
|
930
|
+
});
|
|
931
|
+
pt.displayName = "Layer";
|
|
932
|
+
const eo = ({ emptyText: o = "N/A" }) => /* @__PURE__ */ e(V.Fragment, { children: o });
|
|
933
|
+
eo.displayName = "EmptyValueRenderer";
|
|
934
|
+
eo.check = (o) => o == null || o === "" || Array.isArray(o) && o.length === 0;
|
|
935
|
+
const fo = "data-recursica-theme";
|
|
936
|
+
function jt({
|
|
937
|
+
children: o,
|
|
938
|
+
theme: s = "light"
|
|
939
|
+
}) {
|
|
940
|
+
return Lo(() => {
|
|
941
|
+
const a = document.documentElement;
|
|
942
|
+
return a.setAttribute(fo, s), () => {
|
|
943
|
+
a.removeAttribute(fo);
|
|
944
|
+
};
|
|
945
|
+
}, [s]), /* @__PURE__ */ e(No, { children: o });
|
|
946
|
+
}
|
|
947
|
+
const _t = "ReadOnlyField-module__textField___qKn25", ho = {
|
|
948
|
+
textField: _t
|
|
949
|
+
}, zo = ({
|
|
950
|
+
value: o,
|
|
951
|
+
overStyled: s = !1,
|
|
848
952
|
...a
|
|
849
953
|
}) => {
|
|
850
|
-
const
|
|
851
|
-
return /* @__PURE__ */
|
|
852
|
-
|
|
954
|
+
const n = $(a, s), r = n.className;
|
|
955
|
+
return /* @__PURE__ */ e(
|
|
956
|
+
yo,
|
|
853
957
|
{
|
|
854
958
|
component: "p",
|
|
855
|
-
className:
|
|
856
|
-
...
|
|
857
|
-
children:
|
|
959
|
+
className: r ? `${ho.textField} ${r}` : ho.textField,
|
|
960
|
+
...n,
|
|
961
|
+
children: o != null ? V.isValidElement(o) ? o : String(o) : ""
|
|
858
962
|
}
|
|
859
963
|
);
|
|
860
964
|
};
|
|
861
|
-
|
|
862
|
-
const
|
|
863
|
-
function({ value:
|
|
864
|
-
let
|
|
865
|
-
const
|
|
965
|
+
zo.displayName = "ReadOnlyTextField";
|
|
966
|
+
const So = N(
|
|
967
|
+
function({ value: s, type: a = "text", emptyValueComponent: n, overStyled: r = !1, ...t }, i) {
|
|
968
|
+
let l = null;
|
|
969
|
+
const d = $(t, r), c = n || eo, _ = (c.check ? c.check(s) : eo.check(s)) ? /* @__PURE__ */ e(c, { value: s }) : s;
|
|
866
970
|
switch (a) {
|
|
867
971
|
case "text":
|
|
868
972
|
default:
|
|
869
|
-
|
|
870
|
-
|
|
973
|
+
l = /* @__PURE__ */ e(
|
|
974
|
+
zo,
|
|
871
975
|
{
|
|
872
976
|
value: _,
|
|
873
|
-
overStyled:
|
|
977
|
+
overStyled: r
|
|
874
978
|
}
|
|
875
979
|
);
|
|
876
980
|
break;
|
|
877
981
|
}
|
|
878
|
-
return /* @__PURE__ */
|
|
879
|
-
|
|
982
|
+
return /* @__PURE__ */ e(
|
|
983
|
+
H,
|
|
880
984
|
{
|
|
881
985
|
ref: i,
|
|
882
|
-
overStyled:
|
|
883
|
-
...
|
|
884
|
-
children:
|
|
986
|
+
overStyled: r,
|
|
987
|
+
...d,
|
|
988
|
+
children: l
|
|
885
989
|
}
|
|
886
990
|
);
|
|
887
991
|
}
|
|
888
992
|
);
|
|
889
|
-
|
|
890
|
-
const
|
|
891
|
-
readOnly:
|
|
993
|
+
So.displayName = "ReadOnlyField";
|
|
994
|
+
const no = N(function({
|
|
995
|
+
readOnly: s,
|
|
892
996
|
readOnlyComponent: a,
|
|
893
|
-
readOnlyType:
|
|
894
|
-
readOnlyValue:
|
|
895
|
-
activeComponent:
|
|
997
|
+
readOnlyType: n = "text",
|
|
998
|
+
readOnlyValue: r,
|
|
999
|
+
activeComponent: t,
|
|
896
1000
|
overStyled: i,
|
|
897
|
-
onLabelEditClick:
|
|
898
|
-
...
|
|
1001
|
+
onLabelEditClick: l,
|
|
1002
|
+
...d
|
|
899
1003
|
}, c) {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
d
|
|
903
|
-
);
|
|
904
|
-
return m ? a ? /* @__PURE__ */ o(
|
|
905
|
-
q,
|
|
1004
|
+
return s ? a ? /* @__PURE__ */ e(
|
|
1005
|
+
H,
|
|
906
1006
|
{
|
|
907
1007
|
ref: c,
|
|
908
|
-
...
|
|
909
|
-
onLabelEditClick:
|
|
1008
|
+
...d,
|
|
1009
|
+
onLabelEditClick: l,
|
|
910
1010
|
overStyled: i,
|
|
911
1011
|
children: a
|
|
912
1012
|
}
|
|
913
|
-
) : /* @__PURE__ */
|
|
914
|
-
|
|
1013
|
+
) : /* @__PURE__ */ e(
|
|
1014
|
+
So,
|
|
915
1015
|
{
|
|
916
1016
|
ref: c,
|
|
917
|
-
type:
|
|
918
|
-
value:
|
|
919
|
-
onLabelEditClick:
|
|
1017
|
+
type: n,
|
|
1018
|
+
value: r,
|
|
1019
|
+
onLabelEditClick: l,
|
|
920
1020
|
overStyled: i,
|
|
921
|
-
...
|
|
1021
|
+
...d
|
|
922
1022
|
}
|
|
923
|
-
) : /* @__PURE__ */
|
|
924
|
-
|
|
1023
|
+
) : /* @__PURE__ */ e(
|
|
1024
|
+
H,
|
|
925
1025
|
{
|
|
926
1026
|
ref: c,
|
|
927
|
-
...
|
|
928
|
-
onLabelEditClick:
|
|
1027
|
+
...d,
|
|
1028
|
+
onLabelEditClick: l,
|
|
929
1029
|
overStyled: i,
|
|
930
|
-
children:
|
|
1030
|
+
children: t
|
|
931
1031
|
}
|
|
932
1032
|
);
|
|
933
1033
|
});
|
|
934
|
-
|
|
935
|
-
const
|
|
936
|
-
root:
|
|
937
|
-
input:
|
|
938
|
-
section:
|
|
939
|
-
|
|
1034
|
+
no.displayName = "WithReadOnlyWrapper";
|
|
1035
|
+
const mt = "Dropdown-module__root___uVyL0", ut = "Dropdown-module__input___dK4dN", ft = "Dropdown-module__section___j3MRB", ht = "Dropdown-module__dropdown___gG-Sw", Nt = "Dropdown-module__option___nAGU-", z = {
|
|
1036
|
+
root: mt,
|
|
1037
|
+
input: ut,
|
|
1038
|
+
section: ft,
|
|
1039
|
+
dropdown: ht,
|
|
1040
|
+
option: Nt
|
|
1041
|
+
}, $t = N(
|
|
940
1042
|
function({
|
|
941
|
-
overStyled:
|
|
1043
|
+
overStyled: s = !1,
|
|
942
1044
|
formLayout: a = "stacked",
|
|
1045
|
+
containerWidth: n,
|
|
943
1046
|
// Label & Wrapper Maps
|
|
944
|
-
labelSize:
|
|
1047
|
+
labelSize: r,
|
|
945
1048
|
labelAlignment: t,
|
|
946
|
-
labelOptionalText:
|
|
947
|
-
labelWithEditIcon:
|
|
1049
|
+
labelOptionalText: i,
|
|
1050
|
+
labelWithEditIcon: l,
|
|
948
1051
|
onLabelEditClick: d,
|
|
949
|
-
label:
|
|
1052
|
+
label: c,
|
|
1053
|
+
assistiveText: p,
|
|
1054
|
+
assistiveWithIcon: _,
|
|
1055
|
+
error: u,
|
|
1056
|
+
required: m,
|
|
1057
|
+
withAsterisk: h,
|
|
1058
|
+
id: y,
|
|
1059
|
+
className: g,
|
|
1060
|
+
style: f,
|
|
1061
|
+
disabled: v,
|
|
1062
|
+
readOnly: P,
|
|
1063
|
+
readOnlyComponent: W,
|
|
1064
|
+
value: A,
|
|
1065
|
+
defaultValue: R,
|
|
1066
|
+
data: j,
|
|
1067
|
+
...I
|
|
1068
|
+
}, x) {
|
|
1069
|
+
const k = $(I, s), w = k;
|
|
1070
|
+
delete w.size, delete w.variant, delete w.radius;
|
|
1071
|
+
const C = {
|
|
1072
|
+
wrapper: z.root,
|
|
1073
|
+
// The nested Input internal relative wrapper bounding box
|
|
1074
|
+
input: z.input,
|
|
1075
|
+
section: z.section,
|
|
1076
|
+
dropdown: z.dropdown,
|
|
1077
|
+
option: z.option
|
|
1078
|
+
}, Z = w.classNames;
|
|
1079
|
+
if (Z && typeof Z == "object" && !Array.isArray(Z)) {
|
|
1080
|
+
const S = Z;
|
|
1081
|
+
C.wrapper = S.wrapper ? `${z.root} ${S.wrapper}` : z.root, C.input = S.input ? `${z.input} ${S.input}` : z.input, C.section = S.section ? `${z.section} ${S.section}` : z.section, C.dropdown = S.dropdown ? `${z.dropdown} ${S.dropdown}` : z.dropdown, C.option = S.option ? `${z.option} ${S.option}` : z.option;
|
|
1082
|
+
}
|
|
1083
|
+
const Y = {
|
|
1084
|
+
...f || {},
|
|
1085
|
+
width: n || "100%"
|
|
1086
|
+
};
|
|
1087
|
+
return /* @__PURE__ */ e(
|
|
1088
|
+
no,
|
|
1089
|
+
{
|
|
1090
|
+
className: g,
|
|
1091
|
+
style: Y,
|
|
1092
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_dropdown_properties_max-width)",
|
|
1093
|
+
controlMinWidth: "var(--recursica_ui-kit_components_dropdown_properties_min-width)",
|
|
1094
|
+
overStyled: s,
|
|
1095
|
+
formLayout: a,
|
|
1096
|
+
labelSize: r,
|
|
1097
|
+
labelAlignment: t,
|
|
1098
|
+
labelOptionalText: i,
|
|
1099
|
+
labelWithEditIcon: l,
|
|
1100
|
+
onLabelEditClick: d,
|
|
1101
|
+
label: c,
|
|
1102
|
+
assistiveText: p,
|
|
1103
|
+
assistiveWithIcon: _,
|
|
1104
|
+
error: u,
|
|
1105
|
+
required: m,
|
|
1106
|
+
withAsterisk: h,
|
|
1107
|
+
id: y,
|
|
1108
|
+
readOnly: P,
|
|
1109
|
+
readOnlyComponent: W,
|
|
1110
|
+
readOnlyType: "text",
|
|
1111
|
+
readOnlyValue: A !== void 0 ? String(A) : R ? String(R) : void 0,
|
|
1112
|
+
activeComponent: (
|
|
1113
|
+
/* Naked Select execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1114
|
+
/* @__PURE__ */ e(
|
|
1115
|
+
Mo,
|
|
1116
|
+
{
|
|
1117
|
+
ref: x,
|
|
1118
|
+
classNames: C,
|
|
1119
|
+
disabled: v,
|
|
1120
|
+
value: A,
|
|
1121
|
+
defaultValue: R,
|
|
1122
|
+
data: j || [],
|
|
1123
|
+
label: void 0,
|
|
1124
|
+
description: void 0,
|
|
1125
|
+
error: void 0,
|
|
1126
|
+
required: void 0,
|
|
1127
|
+
withAsterisk: void 0,
|
|
1128
|
+
wrapperProps: {
|
|
1129
|
+
"data-disabled": v ? "true" : void 0,
|
|
1130
|
+
"data-error": u ? "true" : void 0
|
|
1131
|
+
},
|
|
1132
|
+
...k
|
|
1133
|
+
}
|
|
1134
|
+
)
|
|
1135
|
+
)
|
|
1136
|
+
}
|
|
1137
|
+
);
|
|
1138
|
+
}
|
|
1139
|
+
);
|
|
1140
|
+
$t.displayName = "Dropdown";
|
|
1141
|
+
const Et = (o) => /* @__PURE__ */ e("div", { ...o, children: "FileInput" }), Ot = (o) => /* @__PURE__ */ e("div", { ...o, children: "FileUpload" }), yt = "Flex-module__root___yYser", J = {
|
|
1142
|
+
root: yt
|
|
1143
|
+
}, bt = N(function({ children: s, overStyled: a = !1, gap: n = "rec-default", ...r }, t) {
|
|
1144
|
+
const i = $({ ...r, gap: n }, a), l = i, d = {
|
|
1145
|
+
root: J.root
|
|
1146
|
+
}, c = l.classNames;
|
|
1147
|
+
if (c && typeof c == "object" && !Array.isArray(c)) {
|
|
1148
|
+
const u = c;
|
|
1149
|
+
d.root = u.root ? `${J.root} ${u.root}` : J.root;
|
|
1150
|
+
}
|
|
1151
|
+
const p = l.className, _ = p ? `${J.root} ${p}` : J.root;
|
|
1152
|
+
return /* @__PURE__ */ e(
|
|
1153
|
+
qo,
|
|
1154
|
+
{
|
|
1155
|
+
ref: t,
|
|
1156
|
+
className: _,
|
|
1157
|
+
classNames: d,
|
|
1158
|
+
...i,
|
|
1159
|
+
children: s
|
|
1160
|
+
}
|
|
1161
|
+
);
|
|
1162
|
+
});
|
|
1163
|
+
bt.displayName = "Flex";
|
|
1164
|
+
const vt = "Group-module__root___ftO64", Q = {
|
|
1165
|
+
root: vt
|
|
1166
|
+
}, Ct = N(function({ children: s, overStyled: a = !1, gap: n = "rec-default", ...r }, t) {
|
|
1167
|
+
const i = $({ ...r, gap: n }, a), l = i, d = {
|
|
1168
|
+
root: Q.root
|
|
1169
|
+
}, c = l.classNames;
|
|
1170
|
+
if (c && typeof c == "object" && !Array.isArray(c)) {
|
|
1171
|
+
const u = c;
|
|
1172
|
+
d.root = u.root ? `${Q.root} ${u.root}` : Q.root;
|
|
1173
|
+
}
|
|
1174
|
+
const p = l.className, _ = p ? `${Q.root} ${p}` : Q.root;
|
|
1175
|
+
return /* @__PURE__ */ e(
|
|
1176
|
+
Vo,
|
|
1177
|
+
{
|
|
1178
|
+
ref: t,
|
|
1179
|
+
className: _,
|
|
1180
|
+
classNames: d,
|
|
1181
|
+
...i,
|
|
1182
|
+
children: s
|
|
1183
|
+
}
|
|
1184
|
+
);
|
|
1185
|
+
});
|
|
1186
|
+
Ct.displayName = "Group";
|
|
1187
|
+
const Dt = (o) => /* @__PURE__ */ e("div", { ...o, children: "HoverCard" }), Gt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Link" }), Mt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Loader" }), qt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Menu" }), Vt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Modal" }), Ht = (o) => /* @__PURE__ */ e("div", { ...o, children: "NumberInput" }), Kt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Pagination" }), Ut = (o) => /* @__PURE__ */ e("div", { ...o, children: "Panel" }), Zt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Popover" }), Yt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Radio" }), Xt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Search" }), Jt = (o) => /* @__PURE__ */ e("div", { ...o, children: "SegmentedControl" }), Qt = (o) => /* @__PURE__ */ e("div", { ...o, children: "Slider" }), xt = "Stack-module__root___NUN-x", oo = {
|
|
1188
|
+
root: xt
|
|
1189
|
+
}, gt = N(function({ children: s, overStyled: a = !1, gap: n = "rec-default", ...r }, t) {
|
|
1190
|
+
const i = $({ ...r, gap: n }, a), l = i, d = {
|
|
1191
|
+
root: oo.root
|
|
1192
|
+
}, c = l.classNames;
|
|
1193
|
+
if (c && typeof c == "object" && !Array.isArray(c)) {
|
|
1194
|
+
const u = c;
|
|
1195
|
+
d.root = u.root ? `${oo.root} ${u.root}` : oo.root;
|
|
1196
|
+
}
|
|
1197
|
+
const p = l.className, _ = p ? `${oo.root} ${p}` : oo.root;
|
|
1198
|
+
return /* @__PURE__ */ e(
|
|
1199
|
+
Ho,
|
|
1200
|
+
{
|
|
1201
|
+
ref: t,
|
|
1202
|
+
className: _,
|
|
1203
|
+
classNames: d,
|
|
1204
|
+
...i,
|
|
1205
|
+
children: s
|
|
1206
|
+
}
|
|
1207
|
+
);
|
|
1208
|
+
});
|
|
1209
|
+
gt.displayName = "Stack";
|
|
1210
|
+
const or = (o) => /* @__PURE__ */ e("div", { ...o, children: "Stepper" }), er = (o) => /* @__PURE__ */ e("div", { ...o, children: "Switch" }), tr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Table" }), rr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Tabs" }), Pt = N(function({ overStyled: s = !1, variant: a = "body", ...n }, r) {
|
|
1211
|
+
const t = $(n, s), i = t.className, l = `recursica_brand_typography_${a}`, d = i ? `${l} ${i}` : l;
|
|
1212
|
+
return /* @__PURE__ */ e(
|
|
1213
|
+
Ko,
|
|
1214
|
+
{
|
|
1215
|
+
ref: r,
|
|
1216
|
+
className: d,
|
|
1217
|
+
...t
|
|
1218
|
+
}
|
|
1219
|
+
);
|
|
1220
|
+
});
|
|
1221
|
+
Pt.displayName = "Text";
|
|
1222
|
+
const At = "TextArea-module__root___3dyeu", wt = "TextArea-module__input___8l36v", U = {
|
|
1223
|
+
root: At,
|
|
1224
|
+
input: wt
|
|
1225
|
+
}, Wt = N(
|
|
1226
|
+
function({
|
|
1227
|
+
overStyled: s = !1,
|
|
1228
|
+
formLayout: a = "stacked",
|
|
1229
|
+
// Label & Wrapper Maps
|
|
1230
|
+
labelSize: n,
|
|
1231
|
+
labelAlignment: r,
|
|
1232
|
+
labelOptionalText: t,
|
|
1233
|
+
labelWithEditIcon: i,
|
|
1234
|
+
onLabelEditClick: l,
|
|
1235
|
+
label: d,
|
|
950
1236
|
assistiveText: c,
|
|
951
|
-
assistiveWithIcon:
|
|
1237
|
+
assistiveWithIcon: p,
|
|
952
1238
|
error: _,
|
|
953
|
-
required:
|
|
954
|
-
withAsterisk:
|
|
955
|
-
id:
|
|
956
|
-
className:
|
|
957
|
-
style:
|
|
958
|
-
disabled:
|
|
959
|
-
readOnly:
|
|
960
|
-
readOnlyComponent:
|
|
961
|
-
value:
|
|
962
|
-
defaultValue:
|
|
963
|
-
...
|
|
964
|
-
},
|
|
965
|
-
const
|
|
1239
|
+
required: u,
|
|
1240
|
+
withAsterisk: m,
|
|
1241
|
+
id: h,
|
|
1242
|
+
className: y,
|
|
1243
|
+
style: g,
|
|
1244
|
+
disabled: f,
|
|
1245
|
+
readOnly: v,
|
|
1246
|
+
readOnlyComponent: P,
|
|
1247
|
+
value: W,
|
|
1248
|
+
defaultValue: A,
|
|
1249
|
+
...R
|
|
1250
|
+
}, j) {
|
|
1251
|
+
const I = $(R, s), x = I;
|
|
966
1252
|
delete x.size, delete x.variant, delete x.radius;
|
|
967
|
-
const
|
|
968
|
-
wrapper:
|
|
1253
|
+
const k = {
|
|
1254
|
+
wrapper: U.root,
|
|
969
1255
|
// The nested Input internal relative wrapper bounding box
|
|
970
|
-
input:
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
w.wrapper = I.wrapper ? `${F.root} ${I.wrapper}` : F.root, w.input = I.input ? `${F.input} ${I.input}` : F.input, w.section = I.section ? `${F.section} ${I.section}` : F.section;
|
|
1256
|
+
input: U.input
|
|
1257
|
+
}, w = x.classNames;
|
|
1258
|
+
if (w && typeof w == "object" && !Array.isArray(w)) {
|
|
1259
|
+
const C = w;
|
|
1260
|
+
k.wrapper = C.wrapper ? `${U.root} ${C.wrapper}` : U.root, k.input = C.input ? `${U.input} ${C.input}` : U.input;
|
|
976
1261
|
}
|
|
977
|
-
return /* @__PURE__ */
|
|
978
|
-
|
|
1262
|
+
return /* @__PURE__ */ e(
|
|
1263
|
+
no,
|
|
979
1264
|
{
|
|
980
|
-
className:
|
|
981
|
-
style:
|
|
1265
|
+
className: y,
|
|
1266
|
+
style: g,
|
|
982
1267
|
controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
|
|
983
1268
|
controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
|
|
984
|
-
overStyled:
|
|
1269
|
+
overStyled: s,
|
|
985
1270
|
formLayout: a,
|
|
986
|
-
labelSize:
|
|
987
|
-
labelAlignment:
|
|
988
|
-
labelOptionalText:
|
|
1271
|
+
labelSize: n,
|
|
1272
|
+
labelAlignment: r,
|
|
1273
|
+
labelOptionalText: t,
|
|
989
1274
|
labelWithEditIcon: i,
|
|
990
|
-
onLabelEditClick:
|
|
991
|
-
label:
|
|
1275
|
+
onLabelEditClick: l,
|
|
1276
|
+
label: d,
|
|
992
1277
|
assistiveText: c,
|
|
993
|
-
assistiveWithIcon:
|
|
1278
|
+
assistiveWithIcon: p,
|
|
994
1279
|
error: _,
|
|
995
|
-
required:
|
|
996
|
-
withAsterisk:
|
|
997
|
-
id:
|
|
998
|
-
readOnly:
|
|
999
|
-
readOnlyComponent:
|
|
1280
|
+
required: u,
|
|
1281
|
+
withAsterisk: m,
|
|
1282
|
+
id: h,
|
|
1283
|
+
readOnly: v,
|
|
1284
|
+
readOnlyComponent: P,
|
|
1000
1285
|
readOnlyType: "text",
|
|
1001
|
-
readOnlyValue:
|
|
1286
|
+
readOnlyValue: W !== void 0 ? W : A,
|
|
1002
1287
|
activeComponent: (
|
|
1003
1288
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
-
|
|
1289
|
+
/* @__PURE__ */ e(
|
|
1290
|
+
Uo,
|
|
1006
1291
|
{
|
|
1007
|
-
ref:
|
|
1008
|
-
classNames:
|
|
1009
|
-
disabled:
|
|
1010
|
-
value:
|
|
1011
|
-
defaultValue:
|
|
1292
|
+
ref: j,
|
|
1293
|
+
classNames: k,
|
|
1294
|
+
disabled: f,
|
|
1295
|
+
value: W,
|
|
1296
|
+
defaultValue: A,
|
|
1297
|
+
label: void 0,
|
|
1298
|
+
description: void 0,
|
|
1299
|
+
error: void 0,
|
|
1300
|
+
required: void 0,
|
|
1301
|
+
withAsterisk: void 0,
|
|
1012
1302
|
wrapperProps: {
|
|
1013
|
-
"data-disabled":
|
|
1303
|
+
"data-disabled": f ? "true" : void 0,
|
|
1304
|
+
"data-error": _ ? "true" : void 0
|
|
1305
|
+
},
|
|
1306
|
+
...I
|
|
1307
|
+
}
|
|
1308
|
+
)
|
|
1309
|
+
)
|
|
1310
|
+
}
|
|
1311
|
+
);
|
|
1312
|
+
}
|
|
1313
|
+
);
|
|
1314
|
+
Wt.displayName = "TextArea";
|
|
1315
|
+
const kt = "TextField-module__root___2ZYkG", Tt = "TextField-module__input___RL-My", zt = "TextField-module__section___bCIJ0", O = {
|
|
1316
|
+
root: kt,
|
|
1317
|
+
input: Tt,
|
|
1318
|
+
section: zt
|
|
1319
|
+
}, St = N(
|
|
1320
|
+
function({
|
|
1321
|
+
overStyled: s = !1,
|
|
1322
|
+
formLayout: a = "stacked",
|
|
1323
|
+
// Label & Wrapper Maps
|
|
1324
|
+
labelSize: n,
|
|
1325
|
+
labelAlignment: r,
|
|
1326
|
+
labelOptionalText: t,
|
|
1327
|
+
labelWithEditIcon: i,
|
|
1328
|
+
onLabelEditClick: l,
|
|
1329
|
+
label: d,
|
|
1330
|
+
assistiveText: c,
|
|
1331
|
+
assistiveWithIcon: p,
|
|
1332
|
+
error: _,
|
|
1333
|
+
required: u,
|
|
1334
|
+
withAsterisk: m,
|
|
1335
|
+
id: h,
|
|
1336
|
+
className: y,
|
|
1337
|
+
style: g,
|
|
1338
|
+
disabled: f,
|
|
1339
|
+
readOnly: v,
|
|
1340
|
+
readOnlyComponent: P,
|
|
1341
|
+
value: W,
|
|
1342
|
+
defaultValue: A,
|
|
1343
|
+
...R
|
|
1344
|
+
}, j) {
|
|
1345
|
+
const I = $(R, s), x = I;
|
|
1346
|
+
delete x.size, delete x.variant, delete x.radius;
|
|
1347
|
+
const k = {
|
|
1348
|
+
wrapper: O.root,
|
|
1349
|
+
// The nested Input internal relative wrapper bounding box
|
|
1350
|
+
input: O.input,
|
|
1351
|
+
section: O.section
|
|
1352
|
+
}, w = x.classNames;
|
|
1353
|
+
if (w && typeof w == "object" && !Array.isArray(w)) {
|
|
1354
|
+
const C = w;
|
|
1355
|
+
k.wrapper = C.wrapper ? `${O.root} ${C.wrapper}` : O.root, k.input = C.input ? `${O.input} ${C.input}` : O.input, k.section = C.section ? `${O.section} ${C.section}` : O.section;
|
|
1356
|
+
}
|
|
1357
|
+
return /* @__PURE__ */ e(
|
|
1358
|
+
no,
|
|
1359
|
+
{
|
|
1360
|
+
className: y,
|
|
1361
|
+
style: g,
|
|
1362
|
+
controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
|
|
1363
|
+
controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
|
|
1364
|
+
overStyled: s,
|
|
1365
|
+
formLayout: a,
|
|
1366
|
+
labelSize: n,
|
|
1367
|
+
labelAlignment: r,
|
|
1368
|
+
labelOptionalText: t,
|
|
1369
|
+
labelWithEditIcon: i,
|
|
1370
|
+
onLabelEditClick: l,
|
|
1371
|
+
label: d,
|
|
1372
|
+
assistiveText: c,
|
|
1373
|
+
assistiveWithIcon: p,
|
|
1374
|
+
error: _,
|
|
1375
|
+
required: u,
|
|
1376
|
+
withAsterisk: m,
|
|
1377
|
+
id: h,
|
|
1378
|
+
readOnly: v,
|
|
1379
|
+
readOnlyComponent: P,
|
|
1380
|
+
readOnlyType: "text",
|
|
1381
|
+
readOnlyValue: W !== void 0 ? W : A,
|
|
1382
|
+
activeComponent: (
|
|
1383
|
+
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1384
|
+
/* @__PURE__ */ e(
|
|
1385
|
+
$o,
|
|
1386
|
+
{
|
|
1387
|
+
ref: j,
|
|
1388
|
+
classNames: k,
|
|
1389
|
+
disabled: f,
|
|
1390
|
+
value: W,
|
|
1391
|
+
defaultValue: A,
|
|
1392
|
+
wrapperProps: {
|
|
1393
|
+
"data-disabled": f ? "true" : void 0,
|
|
1014
1394
|
"data-error": _ ? "true" : void 0
|
|
1015
1395
|
},
|
|
1016
|
-
...
|
|
1396
|
+
...I
|
|
1017
1397
|
}
|
|
1018
1398
|
)
|
|
1019
1399
|
)
|
|
@@ -1021,60 +1401,78 @@ const pt = (e) => /* @__PURE__ */ o("div", { ...e, children: "Search" }), mt = (
|
|
|
1021
1401
|
);
|
|
1022
1402
|
}
|
|
1023
1403
|
);
|
|
1024
|
-
|
|
1025
|
-
const
|
|
1404
|
+
St.displayName = "TextField";
|
|
1405
|
+
const sr = (o) => /* @__PURE__ */ e("div", { ...o, children: "TimePicker" }), nr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Timeline" }), Ft = N(function({ overStyled: s = !1, order: a = 1, ...n }, r) {
|
|
1406
|
+
const t = $(n, s), i = t.className, l = `recursica_brand_typography_h${a}`, d = i ? `${l} ${i}` : l;
|
|
1407
|
+
return /* @__PURE__ */ e(
|
|
1408
|
+
Zo,
|
|
1409
|
+
{
|
|
1410
|
+
ref: r,
|
|
1411
|
+
order: a,
|
|
1412
|
+
className: d,
|
|
1413
|
+
...t
|
|
1414
|
+
}
|
|
1415
|
+
);
|
|
1416
|
+
});
|
|
1417
|
+
Ft.displayName = "Title";
|
|
1418
|
+
const ar = (o) => /* @__PURE__ */ e("div", { ...o, children: "Toast" }), cr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Tooltip" }), ir = (o) => /* @__PURE__ */ e("div", { ...o, children: "TransferList" });
|
|
1026
1419
|
export {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
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
|
-
|
|
1420
|
+
_o as Accordion,
|
|
1421
|
+
lo as AccordionControl,
|
|
1422
|
+
Co as AccordionItem,
|
|
1423
|
+
po as AccordionPanel,
|
|
1424
|
+
_e as Avatar,
|
|
1425
|
+
ue as Badge,
|
|
1426
|
+
Ne as Breadcrumb,
|
|
1427
|
+
ge as Button,
|
|
1428
|
+
so as Card,
|
|
1429
|
+
wo as CardContent,
|
|
1430
|
+
Ao as CardFooter,
|
|
1431
|
+
Po as CardHeader,
|
|
1432
|
+
go as CardSection,
|
|
1433
|
+
To as Checkbox,
|
|
1434
|
+
ko as CheckboxGroup,
|
|
1435
|
+
at as Chip,
|
|
1436
|
+
it as Container,
|
|
1437
|
+
Bt as DatePicker,
|
|
1438
|
+
$t as Dropdown,
|
|
1439
|
+
eo as EmptyValueRenderer,
|
|
1440
|
+
Et as FileInput,
|
|
1441
|
+
Ot as FileUpload,
|
|
1442
|
+
bt as Flex,
|
|
1443
|
+
Ct as Group,
|
|
1444
|
+
Dt as HoverCard,
|
|
1445
|
+
Wo as Label,
|
|
1446
|
+
pt as Layer,
|
|
1447
|
+
Gt as Link,
|
|
1448
|
+
Mt as Loader,
|
|
1449
|
+
qt as Menu,
|
|
1450
|
+
Vt as Modal,
|
|
1451
|
+
Ht as NumberInput,
|
|
1452
|
+
Kt as Pagination,
|
|
1453
|
+
Ut as Panel,
|
|
1454
|
+
Zt as Popover,
|
|
1455
|
+
Yt as Radio,
|
|
1456
|
+
So as ReadOnlyField,
|
|
1457
|
+
zo as ReadOnlyTextField,
|
|
1458
|
+
jt as RecursicaThemeProvider,
|
|
1459
|
+
Xt as Search,
|
|
1460
|
+
Jt as SegmentedControl,
|
|
1461
|
+
Qt as Slider,
|
|
1462
|
+
gt as Stack,
|
|
1463
|
+
or as Stepper,
|
|
1464
|
+
er as Switch,
|
|
1465
|
+
tr as Table,
|
|
1466
|
+
rr as Tabs,
|
|
1467
|
+
Pt as Text,
|
|
1468
|
+
Wt as TextArea,
|
|
1469
|
+
St as TextField,
|
|
1470
|
+
sr as TimePicker,
|
|
1471
|
+
nr as Timeline,
|
|
1472
|
+
Ft as Title,
|
|
1473
|
+
ar as Toast,
|
|
1474
|
+
cr as Tooltip,
|
|
1475
|
+
ir as TransferList,
|
|
1476
|
+
no as WithReadOnlyWrapper
|
|
1079
1477
|
};
|
|
1080
1478
|
//# sourceMappingURL=mantine-adapter.js.map
|