@midas-ds/components 1.0.2 → 1.1.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/Button-DL6nqUco.js +182 -0
- package/CHANGELOG.md +15 -0
- package/Checkbox-q0dugR2t.js +402 -0
- package/{Collection-B3xUVWPF.js → Collection-KMFfVuzU.js} +179 -152
- package/Dialog-D6Bqrpn-.js +1952 -0
- package/Disclosure-dAZYXyTH.js +225 -0
- package/Disclosure.css +1 -0
- package/DragAndDrop-B0T3WgjL.js +40 -0
- package/FocusScope-B7CkxXNC.js +513 -0
- package/{Form-DXLoQL91.js → Form-BWBjJC6v.js} +79 -81
- package/Group-D7_8007y.js +42 -0
- package/Heading-RCRHv6hd.js +15 -0
- package/{Hidden-BQWDvze4.js → Hidden-CVlUgUJM.js} +1 -1
- package/Link-BnQvB-hH.js +75 -0
- package/ListBox-DBBiqvcR.js +474 -0
- package/ListKeyboardDelegate-gCXy-Xnn.js +172 -0
- package/PressResponder-B4g56kDz.js +31 -0
- package/README.md +21 -3
- package/{RSPContexts-EOiWkKOf.js → RSPContexts-BW2SEIqe.js} +2 -2
- package/SelectionManager-BfXUE1qg.js +1031 -0
- package/Separator-BBX9m2O2.js +49 -0
- package/Tag-DWt0koFj.js +728 -0
- package/Text-BCF0xvqL.js +15 -0
- package/TextField-CX4eOQf6.js +225 -0
- package/TextField.module-DdICj682.js +143 -0
- package/{VisuallyHidden-B_XzVvlX.js → VisuallyHidden-Dhr5caPC.js} +1 -1
- package/accordion/Accordion.d.ts +8 -8
- package/accordion/AccordionItem.d.ts +11 -3
- package/accordion/index.d.ts +0 -3
- package/{context-ScOIq_Gu.js → context-BpJLnOuu.js} +11 -11
- package/global.css +1 -0
- package/index-B-jHjTDC.js +120 -0
- package/{index-CorR1LBD.js → index-BPdc9gJ8.js} +3 -3
- package/{index-Dl1Q-tbj.js → index-KSgQWWiy.js} +5315 -5315
- package/index.d.ts +1 -0
- package/index.js +105 -112
- package/index10.js +1 -1
- package/index11.js +1 -1
- package/index12.js +1 -1
- package/index13.js +1 -1
- package/index14.js +1 -1
- package/index15.js +2 -2
- package/index16.js +2 -2
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +2 -2
- package/index2.js +1 -1
- package/index20.js +2 -2
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index24.js +1 -1
- package/index25.js +2 -2
- package/index26.js +2 -2
- package/index27.js +2 -2
- package/index28.js +1 -1
- package/index29.js +2 -8
- package/index3.js +2 -4
- package/index30.js +17 -16
- package/index31.js +3 -3
- package/index32.js +3 -3
- package/index33.js +2 -2
- package/index34.js +3 -3
- package/index35.js +1 -1
- package/index36.js +2 -2
- package/index37.js +2 -2
- package/index38.js +2 -2
- package/index39.js +2 -2
- package/index4.js +1 -1
- package/index40.js +19 -12
- package/index41.js +61 -14
- package/index42.js +44 -22
- package/index43.js +13 -11
- package/index44.js +25 -4
- package/index45.js +16 -51
- package/index46.js +19 -16
- package/index47.js +49 -27
- package/index48.js +5 -18
- package/index49.js +25 -21
- package/index5.js +1 -1
- package/index50.js +16 -47
- package/index51.js +7 -3
- package/index52.js +18 -18
- package/index53.js +16 -16
- package/index54.js +6 -4
- package/index55.js +8 -21
- package/index56.js +13 -16
- package/index57.js +6 -8
- package/index58.js +6 -9
- package/index59.js +17 -13
- package/index6.js +1 -1
- package/index60.js +20 -7
- package/index61.js +59 -7
- package/index62.js +13 -17
- package/index63.js +9 -20
- package/index64.js +40 -48
- package/index65.js +85 -15
- package/index66.js +74 -11
- package/index67.js +23 -62
- package/index68.js +64 -80
- package/index69.js +68 -62
- package/index7.js +1 -1
- package/index70.js +138 -22
- package/index71.js +66 -65
- package/index72.js +40 -78
- package/index73.js +75 -133
- package/index74.js +69 -68
- package/index75.js +96 -34
- package/index76.js +258 -65
- package/index77.js +715 -63
- package/index78.js +478 -93
- package/index79.js +303 -263
- package/index8.js +1 -1
- package/index80.js +343 -678
- package/index81.js +242 -481
- package/index82.js +1329 -282
- package/index83.js +968 -350
- package/index84.js +343 -211
- package/index85.js +2025 -1288
- package/index86.js +2313 -954
- package/index87.js +6782 -339
- package/index88.js +15 -2103
- package/index89.js +12 -2369
- package/index9.js +1 -1
- package/index90.js +4 -6832
- package/index91.js +7 -15
- package/link/Link.d.ts +2 -2
- package/link-button/LinkButton.d.ts +1 -1
- package/package.json +7 -1
- package/{react.esm-D8HpDGKP.js → react.esm-sMU8Z7rL.js} +1872 -1872
- package/textfield/index.d.ts +0 -2
- package/useControlledState-Kv9K2AYu.js +30 -0
- package/{useDescription-D4_zk_sA.js → useDescription-B7stiK3j.js} +1 -1
- package/useEvent-Xk5kn5Ns.js +21 -0
- package/useField-DMzJIIN4.js +67 -0
- package/{useFilter-BnJDBCkt.js → useFilter-Bt9dbV1U.js} +1 -1
- package/useFocusRing-9PXyKy2A.js +1297 -0
- package/{useFocusable-C-N9wcwm.js → useFocusable-CcEBZe40.js} +11 -8
- package/{useGridSelectionCheckbox-i1rsjlC-.js → useGridSelectionCheckbox-DYgEnElE.js} +3 -3
- package/useHasTabbableChild-D6DwR81L.js +34 -0
- package/{useHighlightSelectionDescription-JVx2MW_e.js → useHighlightSelectionDescription-WYAbP4No.js} +19 -19
- package/useLabels-9zaZ9oa0.js +17 -0
- package/useListState-BfTeKTk5.js +119 -0
- package/{useLocalizedStringFormatter-DVCAZqcL.js → useLocalizedStringFormatter-BlCbn-hX.js} +29 -29
- package/{useSingleSelectListState-CmX9_L5H.js → useSingleSelectListState-DPkaL0la.js} +5 -5
- package/Button-CCevm2s3.js +0 -183
- package/Checkbox-CllWDBxF.js +0 -405
- package/Dialog-CLTyYwkS.js +0 -1889
- package/DragAndDrop-OTN7La7U.js +0 -42
- package/FocusScope-BR0SJ-cZ.js +0 -512
- package/Group-DPMuN3h8.js +0 -44
- package/Label-C18A_4Z5.js +0 -69
- package/Link-BU1h3K2a.js +0 -77
- package/ListBox-D21tdwTs.js +0 -463
- package/ListKeyboardDelegate-DxMjfMsI.js +0 -172
- package/PressResponder-DP8ZDNGy.js +0 -31
- package/SelectionManager-D4WtKtey.js +0 -988
- package/Separator-DLUHK9vv.js +0 -48
- package/Tag-CEd6WWSc.js +0 -725
- package/Text-DGLaY3HR.js +0 -17
- package/TextField-C_hq9WeT.js +0 -226
- package/TextField.module-Cwq1FAm7.js +0 -141
- package/accordion/AccordionContent.d.ts +0 -3
- package/accordion/AccordionTagContext.d.ts +0 -3
- package/accordion/AccordionTrigger.d.ts +0 -3
- package/index-CEg5vZQH.js +0 -132
- package/index-CgfokhRq.js +0 -674
- package/index.css +0 -1
- package/index92.js +0 -14
- package/index93.js +0 -6
- package/index94.js +0 -9
- package/useControlledState-S_TYcV_c.js +0 -45
- package/useFocusRing-D97-G3fT.js +0 -1324
- package/useHasTabbableChild-DeuCnGGv.js +0 -34
- package/useListState-DSOTbsL3.js +0 -119
package/Text-DGLaY3HR.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { a as r } from "./useFocusRing-D97-G3fT.js";
|
|
2
|
-
import o, { forwardRef as $, createContext as f } from "react";
|
|
3
|
-
const n = /* @__PURE__ */ f({});
|
|
4
|
-
function m(e, t) {
|
|
5
|
-
[e, t] = r(e, t, n);
|
|
6
|
-
let { elementType: a = "span", ...c } = e;
|
|
7
|
-
return /* @__PURE__ */ o.createElement(a, {
|
|
8
|
-
className: "react-aria-Text",
|
|
9
|
-
...c,
|
|
10
|
-
ref: t
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
const s = /* @__PURE__ */ $(m);
|
|
14
|
-
export {
|
|
15
|
-
n as $,
|
|
16
|
-
s as a
|
|
17
|
-
};
|
package/TextField-C_hq9WeT.js
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as u, Fragment as I } from "react/jsx-runtime";
|
|
2
|
-
import $, { forwardRef as E, createContext as w, useRef as B, useState as S, useCallback as D } from "react";
|
|
3
|
-
import { c as V, d as k, e as O } from "./Form-DXLoQL91.js";
|
|
4
|
-
import { $ as _, a as q, T as i, b as A } from "./TextField.module-Cwq1FAm7.js";
|
|
5
|
-
import { a as j, b as C } from "./Label-C18A_4Z5.js";
|
|
6
|
-
import { $ as W, a as T } from "./Text-DGLaY3HR.js";
|
|
7
|
-
import { a as N, b as L, c as z, d as y, e as G, u as J, v as K, w as M, n as Q, x as U } from "./useFocusRing-D97-G3fT.js";
|
|
8
|
-
import { Button as X } from "./index69.js";
|
|
9
|
-
import { c as Y } from "./clsx-OuTLNxxd.js";
|
|
10
|
-
const H = /* @__PURE__ */ w({});
|
|
11
|
-
let Z = (e) => {
|
|
12
|
-
let { onHoverStart: t, onHoverChange: a, onHoverEnd: d, ...s } = e;
|
|
13
|
-
return s;
|
|
14
|
-
};
|
|
15
|
-
function ee(e, t) {
|
|
16
|
-
[e, t] = N(e, t, H);
|
|
17
|
-
let { hoverProps: a, isHovered: d } = L(e), { isFocused: s, isFocusVisible: n, focusProps: c } = z({
|
|
18
|
-
isTextInput: !0,
|
|
19
|
-
autoFocus: e.autoFocus
|
|
20
|
-
}), o = !!e["aria-invalid"] && e["aria-invalid"] !== "false", f = y({
|
|
21
|
-
...e,
|
|
22
|
-
values: {
|
|
23
|
-
isHovered: d,
|
|
24
|
-
isFocused: s,
|
|
25
|
-
isFocusVisible: n,
|
|
26
|
-
isDisabled: e.disabled || !1,
|
|
27
|
-
isInvalid: o
|
|
28
|
-
},
|
|
29
|
-
defaultClassName: "react-aria-TextArea"
|
|
30
|
-
});
|
|
31
|
-
return /* @__PURE__ */ $.createElement("textarea", {
|
|
32
|
-
...G(Z(e), c, a),
|
|
33
|
-
...f,
|
|
34
|
-
ref: t,
|
|
35
|
-
"data-focused": s || void 0,
|
|
36
|
-
"data-disabled": e.disabled || void 0,
|
|
37
|
-
"data-hovered": d || void 0,
|
|
38
|
-
"data-focus-visible": n || void 0,
|
|
39
|
-
"data-invalid": o || void 0
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
const pe = /* @__PURE__ */ E(ee), te = /* @__PURE__ */ w(null);
|
|
43
|
-
function ae(e, t) {
|
|
44
|
-
[e, t] = N(e, t, te);
|
|
45
|
-
let { validationBehavior: a } = J(V) || {};
|
|
46
|
-
var d, s;
|
|
47
|
-
let n = (s = (d = e.validationBehavior) !== null && d !== void 0 ? d : a) !== null && s !== void 0 ? s : "native", c = B(null), [o, f] = K(), [p, b] = S("input"), { labelProps: x, inputProps: v, descriptionProps: l, errorMessageProps: m, ...h } = _({
|
|
48
|
-
...M(e),
|
|
49
|
-
inputElementType: p,
|
|
50
|
-
label: f,
|
|
51
|
-
validationBehavior: n
|
|
52
|
-
}, c), g = D((P) => {
|
|
53
|
-
c.current = P, P && b(P instanceof HTMLTextAreaElement ? "textarea" : "input");
|
|
54
|
-
}, []), F = y({
|
|
55
|
-
...e,
|
|
56
|
-
values: {
|
|
57
|
-
isDisabled: e.isDisabled || !1,
|
|
58
|
-
isInvalid: h.isInvalid,
|
|
59
|
-
isReadOnly: e.isReadOnly || !1,
|
|
60
|
-
isRequired: e.isRequired || !1
|
|
61
|
-
},
|
|
62
|
-
defaultClassName: "react-aria-TextField"
|
|
63
|
-
}), R = Q(e);
|
|
64
|
-
return delete R.id, /* @__PURE__ */ $.createElement("div", {
|
|
65
|
-
...R,
|
|
66
|
-
...F,
|
|
67
|
-
ref: t,
|
|
68
|
-
slot: e.slot || void 0,
|
|
69
|
-
"data-disabled": e.isDisabled || void 0,
|
|
70
|
-
"data-invalid": h.isInvalid || void 0,
|
|
71
|
-
"data-readonly": e.isReadOnly || void 0,
|
|
72
|
-
"data-required": e.isRequired || void 0
|
|
73
|
-
}, /* @__PURE__ */ $.createElement(U, {
|
|
74
|
-
values: [
|
|
75
|
-
[
|
|
76
|
-
j,
|
|
77
|
-
{
|
|
78
|
-
...x,
|
|
79
|
-
ref: o
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
[
|
|
83
|
-
q,
|
|
84
|
-
{
|
|
85
|
-
...v,
|
|
86
|
-
ref: g
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
[
|
|
90
|
-
H,
|
|
91
|
-
{
|
|
92
|
-
...v,
|
|
93
|
-
ref: g
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
[
|
|
97
|
-
W,
|
|
98
|
-
{
|
|
99
|
-
slots: {
|
|
100
|
-
description: l,
|
|
101
|
-
errorMessage: m
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
[
|
|
106
|
-
k,
|
|
107
|
-
h
|
|
108
|
-
]
|
|
109
|
-
]
|
|
110
|
-
}, F.children));
|
|
111
|
-
}
|
|
112
|
-
const de = /* @__PURE__ */ E(ae), xe = ({
|
|
113
|
-
label: e,
|
|
114
|
-
description: t,
|
|
115
|
-
errorMessage: a,
|
|
116
|
-
validationType: d,
|
|
117
|
-
validate: s,
|
|
118
|
-
maxCharacters: n,
|
|
119
|
-
showCounter: c,
|
|
120
|
-
...o
|
|
121
|
-
}) => {
|
|
122
|
-
const [f, p] = $.useState(""), b = (l) => {
|
|
123
|
-
const m = l.target.value;
|
|
124
|
-
p(m);
|
|
125
|
-
}, x = (l) => d === "ssn" ? se.test(l) ? null : "Felaktigt personnummer" : d instanceof RegExp ? new RegExp(d).test(l) ? null : a == null ? void 0 : a.toString() : n ? n && l.length > n ? `Du har angett ${l.length - n} tecken för mycket. Fältet är begränsat till ${n} tecken.` : null : s ? s(l) : !0, v = () => n ? /* @__PURE__ */ u(
|
|
126
|
-
"span",
|
|
127
|
-
{
|
|
128
|
-
className: Y(
|
|
129
|
-
i.count,
|
|
130
|
-
f.length > n && i.countExceeded
|
|
131
|
-
),
|
|
132
|
-
children: [
|
|
133
|
-
f.length,
|
|
134
|
-
" / ",
|
|
135
|
-
n
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
) : c ? /* @__PURE__ */ r("span", { className: i.count, children: f.length }) : null;
|
|
139
|
-
return /* @__PURE__ */ r(
|
|
140
|
-
de,
|
|
141
|
-
{
|
|
142
|
-
className: i.inputField,
|
|
143
|
-
validate: x,
|
|
144
|
-
...o,
|
|
145
|
-
children: /* @__PURE__ */ u(
|
|
146
|
-
ie,
|
|
147
|
-
{
|
|
148
|
-
label: e,
|
|
149
|
-
description: t,
|
|
150
|
-
errorMessage: a,
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ r(v, {}),
|
|
153
|
-
/* @__PURE__ */ u("div", { className: i.wrap, children: [
|
|
154
|
-
/* @__PURE__ */ r(
|
|
155
|
-
A,
|
|
156
|
-
{
|
|
157
|
-
type: o.type,
|
|
158
|
-
className: i.input,
|
|
159
|
-
onChange: b,
|
|
160
|
-
onBlur: b
|
|
161
|
-
}
|
|
162
|
-
),
|
|
163
|
-
/* @__PURE__ */ r(
|
|
164
|
-
ne,
|
|
165
|
-
{
|
|
166
|
-
type: o.type,
|
|
167
|
-
input: f
|
|
168
|
-
}
|
|
169
|
-
)
|
|
170
|
-
] })
|
|
171
|
-
]
|
|
172
|
-
}
|
|
173
|
-
)
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
}, ne = ({
|
|
177
|
-
type: e,
|
|
178
|
-
input: t
|
|
179
|
-
}) => {
|
|
180
|
-
const [a, d] = $.useState(!1);
|
|
181
|
-
return e === "password" ? /* @__PURE__ */ u(I, { children: [
|
|
182
|
-
a && /* @__PURE__ */ r(
|
|
183
|
-
T,
|
|
184
|
-
{
|
|
185
|
-
slot: "description",
|
|
186
|
-
className: i.passwordText,
|
|
187
|
-
children: t
|
|
188
|
-
}
|
|
189
|
-
),
|
|
190
|
-
/* @__PURE__ */ r(
|
|
191
|
-
X,
|
|
192
|
-
{
|
|
193
|
-
variant: "tertiary",
|
|
194
|
-
onPress: () => d(!a),
|
|
195
|
-
className: i.passwordButton,
|
|
196
|
-
children: a ? "Dölj" : "Visa"
|
|
197
|
-
}
|
|
198
|
-
)
|
|
199
|
-
] }) : null;
|
|
200
|
-
}, ie = ({
|
|
201
|
-
label: e,
|
|
202
|
-
description: t,
|
|
203
|
-
errorMessage: a,
|
|
204
|
-
children: d
|
|
205
|
-
}) => /* @__PURE__ */ u("div", { className: i.inputWrapper, children: [
|
|
206
|
-
e && /* @__PURE__ */ r(C, { className: i.label, children: e }),
|
|
207
|
-
t && /* @__PURE__ */ r(
|
|
208
|
-
T,
|
|
209
|
-
{
|
|
210
|
-
slot: "description",
|
|
211
|
-
className: i.text,
|
|
212
|
-
children: t
|
|
213
|
-
}
|
|
214
|
-
),
|
|
215
|
-
/* @__PURE__ */ r(O, { className: i.fieldError, children: a }),
|
|
216
|
-
d
|
|
217
|
-
] }), se = new RegExp(
|
|
218
|
-
"^(?:(?:19|20)?\\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\\d|3[01])(?:[-+ ]?\\d{4})?|\\d{4}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\\d|3[01])(?:[-+ ]?\\d{4}))$"
|
|
219
|
-
);
|
|
220
|
-
export {
|
|
221
|
-
de as $,
|
|
222
|
-
ie as I,
|
|
223
|
-
xe as T,
|
|
224
|
-
pe as a,
|
|
225
|
-
se as s
|
|
226
|
-
};
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import y, { useEffect as w, createContext as C } from "react";
|
|
2
|
-
import { n as E, r as k, e as $, a as I, b as F, c as T, d as H } from "./useFocusRing-D97-G3fT.js";
|
|
3
|
-
import { $ as R, a as M, b as S } from "./Form-DXLoQL91.js";
|
|
4
|
-
import { $ as B } from "./useControlledState-S_TYcV_c.js";
|
|
5
|
-
import { $ as V } from "./Label-C18A_4Z5.js";
|
|
6
|
-
import { $ as W } from "./useFocusable-C-N9wcwm.js";
|
|
7
|
-
import { $ as D } from "./Hidden-BQWDvze4.js";
|
|
8
|
-
import './TextField.css';function xe(e, a) {
|
|
9
|
-
let { inputElementType: d = "input", isDisabled: n = !1, isRequired: t = !1, isReadOnly: r = !1, type: l = "text", validationBehavior: o = "aria" } = e, [i, u] = B(e.value, e.defaultValue || "", e.onChange), { focusableProps: b } = W(e, a), f = R({
|
|
10
|
-
...e,
|
|
11
|
-
value: i
|
|
12
|
-
}), { isInvalid: c, validationErrors: p, validationDetails: v } = f.displayValidation, { labelProps: m, fieldProps: x, descriptionProps: _, errorMessageProps: g } = V({
|
|
13
|
-
...e,
|
|
14
|
-
isInvalid: c,
|
|
15
|
-
errorMessage: e.errorMessage || p
|
|
16
|
-
}), P = E(e, {
|
|
17
|
-
labelable: !0
|
|
18
|
-
});
|
|
19
|
-
const h = {
|
|
20
|
-
type: l,
|
|
21
|
-
pattern: e.pattern
|
|
22
|
-
};
|
|
23
|
-
return M(a, i, u), S(e, f, a), w(() => {
|
|
24
|
-
if (a.current instanceof k(a.current).HTMLTextAreaElement) {
|
|
25
|
-
let s = a.current;
|
|
26
|
-
Object.defineProperty(s, "defaultValue", {
|
|
27
|
-
get: () => s.value,
|
|
28
|
-
set: () => {
|
|
29
|
-
},
|
|
30
|
-
configurable: !0
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}, [
|
|
34
|
-
a
|
|
35
|
-
]), {
|
|
36
|
-
labelProps: m,
|
|
37
|
-
inputProps: $(P, d === "input" ? h : void 0, {
|
|
38
|
-
disabled: n,
|
|
39
|
-
readOnly: r,
|
|
40
|
-
required: t && o === "native",
|
|
41
|
-
"aria-required": t && o === "aria" || void 0,
|
|
42
|
-
"aria-invalid": c || void 0,
|
|
43
|
-
"aria-errormessage": e["aria-errormessage"],
|
|
44
|
-
"aria-activedescendant": e["aria-activedescendant"],
|
|
45
|
-
"aria-autocomplete": e["aria-autocomplete"],
|
|
46
|
-
"aria-haspopup": e["aria-haspopup"],
|
|
47
|
-
value: i,
|
|
48
|
-
onChange: (s) => u(s.target.value),
|
|
49
|
-
autoComplete: e.autoComplete,
|
|
50
|
-
autoCapitalize: e.autoCapitalize,
|
|
51
|
-
maxLength: e.maxLength,
|
|
52
|
-
minLength: e.minLength,
|
|
53
|
-
name: e.name,
|
|
54
|
-
placeholder: e.placeholder,
|
|
55
|
-
inputMode: e.inputMode,
|
|
56
|
-
// Clipboard events
|
|
57
|
-
onCopy: e.onCopy,
|
|
58
|
-
onCut: e.onCut,
|
|
59
|
-
onPaste: e.onPaste,
|
|
60
|
-
// Composition events
|
|
61
|
-
onCompositionEnd: e.onCompositionEnd,
|
|
62
|
-
onCompositionStart: e.onCompositionStart,
|
|
63
|
-
onCompositionUpdate: e.onCompositionUpdate,
|
|
64
|
-
// Selection events
|
|
65
|
-
onSelect: e.onSelect,
|
|
66
|
-
// Input events
|
|
67
|
-
onBeforeInput: e.onBeforeInput,
|
|
68
|
-
onInput: e.onInput,
|
|
69
|
-
...b,
|
|
70
|
-
...x
|
|
71
|
-
}),
|
|
72
|
-
descriptionProps: _,
|
|
73
|
-
errorMessageProps: g,
|
|
74
|
-
isInvalid: c,
|
|
75
|
-
validationErrors: p,
|
|
76
|
-
validationDetails: v
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
const L = /* @__PURE__ */ C({});
|
|
80
|
-
let O = (e) => {
|
|
81
|
-
let { onHoverStart: a, onHoverChange: d, onHoverEnd: n, ...t } = e;
|
|
82
|
-
return t;
|
|
83
|
-
};
|
|
84
|
-
function q(e, a) {
|
|
85
|
-
[e, a] = I(e, a, L);
|
|
86
|
-
let { hoverProps: d, isHovered: n } = F(e), { isFocused: t, isFocusVisible: r, focusProps: l } = T({
|
|
87
|
-
isTextInput: !0,
|
|
88
|
-
autoFocus: e.autoFocus
|
|
89
|
-
}), o = !!e["aria-invalid"] && e["aria-invalid"] !== "false", i = H({
|
|
90
|
-
...e,
|
|
91
|
-
values: {
|
|
92
|
-
isHovered: n,
|
|
93
|
-
isFocused: t,
|
|
94
|
-
isFocusVisible: r,
|
|
95
|
-
isDisabled: e.disabled || !1,
|
|
96
|
-
isInvalid: o
|
|
97
|
-
},
|
|
98
|
-
defaultClassName: "react-aria-Input"
|
|
99
|
-
});
|
|
100
|
-
return /* @__PURE__ */ y.createElement("input", {
|
|
101
|
-
...$(O(e), l, d),
|
|
102
|
-
...i,
|
|
103
|
-
ref: a,
|
|
104
|
-
"data-focused": t || void 0,
|
|
105
|
-
"data-disabled": e.disabled || void 0,
|
|
106
|
-
"data-hovered": n || void 0,
|
|
107
|
-
"data-focus-visible": r || void 0,
|
|
108
|
-
"data-invalid": o || void 0
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
const _e = /* @__PURE__ */ D(q), z = '"../theme/tokens.css"', U = '"Inter", sans-serif', j = "#ffdfdf", A = "#f2f2f2", N = "#e6e6e6", G = "#bfbfbf", J = "#000000", K = "#e62323", Q = "500", X = "400", Y = "#1f1f1f", Z = "0 0 0 2px #ffffff, 0 0 0 4px #000000", ee = "_inputField_1kepw_4", ae = "_inputWrapper_1kepw_12", te = "_label_1kepw_30", ne = "_text_1kepw_36", oe = "_fieldError_1kepw_42", ie = "_passwordText_1kepw_66", de = "_count_1kepw_79", re = "_countExceeded_1kepw_87", se = "_input_1kepw_4", le = "_wrap_1kepw_130", ce = "_passwordButton_1kepw_135", ge = {
|
|
112
|
-
tokens: z,
|
|
113
|
-
display: U,
|
|
114
|
-
signalRed10: j,
|
|
115
|
-
gray10: A,
|
|
116
|
-
gray20: N,
|
|
117
|
-
gray50: G,
|
|
118
|
-
black: J,
|
|
119
|
-
signalRed100: K,
|
|
120
|
-
mediumWeight: Q,
|
|
121
|
-
regularWeight: X,
|
|
122
|
-
inputText: Y,
|
|
123
|
-
focus: Z,
|
|
124
|
-
inputField: ee,
|
|
125
|
-
inputWrapper: ae,
|
|
126
|
-
label: te,
|
|
127
|
-
text: ne,
|
|
128
|
-
fieldError: oe,
|
|
129
|
-
passwordText: ie,
|
|
130
|
-
count: de,
|
|
131
|
-
countExceeded: re,
|
|
132
|
-
input: se,
|
|
133
|
-
wrap: le,
|
|
134
|
-
passwordButton: ce
|
|
135
|
-
};
|
|
136
|
-
export {
|
|
137
|
-
xe as $,
|
|
138
|
-
ge as T,
|
|
139
|
-
L as a,
|
|
140
|
-
_e as b
|
|
141
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type TextElementTag = keyof Pick<JSX.IntrinsicElements, 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong' | 'em'>;
|
|
2
|
-
export declare const AccordionTagContext: import('react').Context<"p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "strong" | "em">;
|
|
3
|
-
export declare const useAccordionTag: () => "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "strong" | "em";
|
package/index-CEg5vZQH.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import V from "react";
|
|
2
|
-
var R = { exports: {} }, w = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* use-sync-external-store-shim.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var A;
|
|
13
|
-
function G() {
|
|
14
|
-
if (A) return w;
|
|
15
|
-
A = 1;
|
|
16
|
-
var r = V;
|
|
17
|
-
function O(t, o) {
|
|
18
|
-
return t === o && (t !== 0 || 1 / t === 1 / o) || t !== t && o !== o;
|
|
19
|
-
}
|
|
20
|
-
var p = typeof Object.is == "function" ? Object.is : O, h = r.useState, y = r.useEffect, v = r.useLayoutEffect, m = r.useDebugValue;
|
|
21
|
-
function L(t, o) {
|
|
22
|
-
var a = o(), S = h({ inst: { value: a, getSnapshot: o } }), i = S[0].inst, d = S[1];
|
|
23
|
-
return v(function() {
|
|
24
|
-
i.value = a, i.getSnapshot = o, f(i) && d({ inst: i });
|
|
25
|
-
}, [t, a, o]), y(function() {
|
|
26
|
-
return f(i) && d({ inst: i }), t(function() {
|
|
27
|
-
f(i) && d({ inst: i });
|
|
28
|
-
});
|
|
29
|
-
}, [t]), m(a), a;
|
|
30
|
-
}
|
|
31
|
-
function f(t) {
|
|
32
|
-
var o = t.getSnapshot;
|
|
33
|
-
t = t.value;
|
|
34
|
-
try {
|
|
35
|
-
var a = o();
|
|
36
|
-
return !p(t, a);
|
|
37
|
-
} catch {
|
|
38
|
-
return !0;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function g(t, o) {
|
|
42
|
-
return o();
|
|
43
|
-
}
|
|
44
|
-
var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : L;
|
|
45
|
-
return w.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : E, w;
|
|
46
|
-
}
|
|
47
|
-
var T = {};
|
|
48
|
-
/**
|
|
49
|
-
* @license React
|
|
50
|
-
* use-sync-external-store-shim.development.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/
|
|
57
|
-
var D;
|
|
58
|
-
function B() {
|
|
59
|
-
return D || (D = 1, process.env.NODE_ENV !== "production" && function() {
|
|
60
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
61
|
-
var r = V, O = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
62
|
-
function p(n) {
|
|
63
|
-
{
|
|
64
|
-
for (var e = arguments.length, s = new Array(e > 1 ? e - 1 : 0), u = 1; u < e; u++)
|
|
65
|
-
s[u - 1] = arguments[u];
|
|
66
|
-
h("error", n, s);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function h(n, e, s) {
|
|
70
|
-
{
|
|
71
|
-
var u = O.ReactDebugCurrentFrame, l = u.getStackAddendum();
|
|
72
|
-
l !== "" && (e += "%s", s = s.concat([l]));
|
|
73
|
-
var _ = s.map(function(c) {
|
|
74
|
-
return String(c);
|
|
75
|
-
});
|
|
76
|
-
_.unshift("Warning: " + e), Function.prototype.apply.call(console[n], console, _);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function y(n, e) {
|
|
80
|
-
return n === e && (n !== 0 || 1 / n === 1 / e) || n !== n && e !== e;
|
|
81
|
-
}
|
|
82
|
-
var v = typeof Object.is == "function" ? Object.is : y, m = r.useState, L = r.useEffect, f = r.useLayoutEffect, g = r.useDebugValue, E = !1, t = !1;
|
|
83
|
-
function o(n, e, s) {
|
|
84
|
-
E || r.startTransition !== void 0 && (E = !0, p("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
85
|
-
var u = e();
|
|
86
|
-
if (!t) {
|
|
87
|
-
var l = e();
|
|
88
|
-
v(u, l) || (p("The result of getSnapshot should be cached to avoid an infinite loop"), t = !0);
|
|
89
|
-
}
|
|
90
|
-
var _ = m({
|
|
91
|
-
inst: {
|
|
92
|
-
value: u,
|
|
93
|
-
getSnapshot: e
|
|
94
|
-
}
|
|
95
|
-
}), c = _[0].inst, x = _[1];
|
|
96
|
-
return f(function() {
|
|
97
|
-
c.value = u, c.getSnapshot = e, a(c) && x({
|
|
98
|
-
inst: c
|
|
99
|
-
});
|
|
100
|
-
}, [n, u, e]), L(function() {
|
|
101
|
-
a(c) && x({
|
|
102
|
-
inst: c
|
|
103
|
-
});
|
|
104
|
-
var U = function() {
|
|
105
|
-
a(c) && x({
|
|
106
|
-
inst: c
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
return n(U);
|
|
110
|
-
}, [n]), g(u), u;
|
|
111
|
-
}
|
|
112
|
-
function a(n) {
|
|
113
|
-
var e = n.getSnapshot, s = n.value;
|
|
114
|
-
try {
|
|
115
|
-
var u = e();
|
|
116
|
-
return !v(s, u);
|
|
117
|
-
} catch {
|
|
118
|
-
return !0;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function S(n, e, s) {
|
|
122
|
-
return e();
|
|
123
|
-
}
|
|
124
|
-
var i = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", d = !i, C = d ? S : o, I = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : C;
|
|
125
|
-
T.useSyncExternalStore = I, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
126
|
-
}()), T;
|
|
127
|
-
}
|
|
128
|
-
process.env.NODE_ENV === "production" ? R.exports = G() : R.exports = B();
|
|
129
|
-
var H = R.exports;
|
|
130
|
-
export {
|
|
131
|
-
H as s
|
|
132
|
-
};
|