@sakura-ui/sakura-ui 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -6
- package/package.json +21 -15
- package/packages/core/package.json +26 -15
- package/packages/core/src/components/Button.tsx +33 -32
- package/packages/core/src/components/Card.tsx +29 -17
- package/packages/core/src/components/Code.tsx +6 -4
- package/packages/core/src/components/Faq.tsx +13 -7
- package/packages/core/src/components/Heading.tsx +42 -32
- package/packages/core/src/components/Icon.tsx +43 -13
- package/packages/core/src/components/IconButton.tsx +54 -43
- package/packages/core/src/components/LangSelector.tsx +135 -0
- package/packages/core/src/components/Link.tsx +38 -66
- package/packages/core/src/components/LinkCard.tsx +91 -0
- package/packages/core/src/components/List.tsx +14 -12
- package/packages/core/src/components/MenuButton.tsx +112 -0
- package/packages/core/src/components/NavigationItem.tsx +41 -0
- package/packages/core/src/components/OverflowContainer.tsx +24 -0
- package/packages/core/src/components/PopoverMenu.tsx +81 -0
- package/packages/core/src/components/Pre.tsx +6 -4
- package/packages/core/src/components/Table.tsx +31 -25
- package/packages/core/src/components/buttonStyle.ts +42 -31
- package/packages/core/src/components/index.ts +13 -25
- package/packages/core/src/icons/Close.tsx +21 -0
- package/packages/core/src/icons/CloseMobile.tsx +43 -0
- package/packages/core/src/icons/KeyboardArrowDown.tsx +24 -0
- package/packages/core/src/icons/Language.tsx +25 -0
- package/packages/core/src/icons/LanguageMobile.tsx +40 -0
- package/packages/core/src/icons/Menu.tsx +24 -0
- package/packages/core/src/icons/MenuMobile.tsx +40 -0
- package/packages/core/src/icons/index.ts +8 -0
- package/packages/core/src/icons/props.ts +5 -0
- package/packages/core/src/index.ts +9 -28
- package/packages/core/src/type.d.ts +1 -0
- package/packages/core/tests/Button.test.tsx +20 -10
- package/packages/core/tests/Card.test.tsx +16 -11
- package/packages/core/tests/IconButton.test.tsx +57 -0
- package/packages/core/tests/Link.test.tsx +60 -0
- package/packages/core/tests/vitest.setup.ts +1 -0
- package/packages/core/tsconfig.node.json +3 -2
- package/packages/forms/.turbo/turbo-build.log +22 -0
- package/packages/forms/dist/index.cjs.js +199 -120
- package/packages/forms/dist/index.es.js +890 -1023
- package/packages/forms/dist/types/components/Checkbox.d.ts +9 -4
- package/packages/forms/dist/types/components/Checkbox.d.ts.map +1 -1
- package/packages/forms/dist/types/components/FieldsetControl.d.ts +14 -9
- package/packages/forms/dist/types/components/FieldsetControl.d.ts.map +1 -1
- package/packages/forms/dist/types/components/FileInput.d.ts +10 -3
- package/packages/forms/dist/types/components/FileInput.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Input.d.ts +9 -4
- package/packages/forms/dist/types/components/Input.d.ts.map +1 -1
- package/packages/forms/dist/types/components/LabelControl.d.ts +13 -8
- package/packages/forms/dist/types/components/LabelControl.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Radio.d.ts +9 -4
- package/packages/forms/dist/types/components/Radio.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Select.d.ts +9 -4
- package/packages/forms/dist/types/components/Select.d.ts.map +1 -1
- package/packages/forms/dist/types/components/Textarea.d.ts +8 -3
- package/packages/forms/dist/types/components/Textarea.d.ts.map +1 -1
- package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts +16 -11
- package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts.map +1 -1
- package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts +17 -12
- package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts.map +1 -1
- package/packages/forms/dist/types/components/index.d.ts +8 -8
- package/packages/forms/dist/types/components/index.d.ts.map +1 -1
- package/packages/forms/dist/types/components/inputStyle.d.ts +1 -1
- package/packages/forms/dist/types/components/inputStyle.d.ts.map +1 -1
- package/packages/forms/dist/types/index.d.ts +0 -1
- package/packages/forms/dist/types/index.d.ts.map +1 -1
- package/packages/forms/node_modules/.bin/autoprefixer +2 -2
- package/packages/forms/node_modules/.bin/tailwind +2 -2
- package/packages/forms/node_modules/.bin/tailwindcss +2 -2
- package/packages/forms/node_modules/.bin/ts-node +4 -4
- package/packages/forms/node_modules/.bin/ts-node-cwd +4 -4
- package/packages/forms/node_modules/.bin/ts-node-esm +4 -4
- package/packages/forms/node_modules/.bin/ts-node-script +4 -4
- package/packages/forms/node_modules/.bin/ts-node-transpile-only +4 -4
- package/packages/forms/node_modules/.bin/ts-script +4 -4
- package/packages/forms/node_modules/.bin/tsc +17 -0
- package/packages/forms/node_modules/.bin/tsserver +17 -0
- package/packages/forms/node_modules/.vite/vitest/results.json +1 -0
- package/packages/forms/package.json +17 -14
- package/packages/forms/src/components/Checkbox.tsx +76 -80
- package/packages/forms/src/components/FieldsetControl.tsx +21 -28
- package/packages/forms/src/components/FileInput.tsx +87 -63
- package/packages/forms/src/components/Input.tsx +29 -31
- package/packages/forms/src/components/LabelControl.tsx +19 -25
- package/packages/forms/src/components/Radio.tsx +66 -69
- package/packages/forms/src/components/Select.tsx +65 -65
- package/packages/forms/src/components/Textarea.tsx +49 -54
- package/packages/forms/src/components/controlled/CheckboxGroup.tsx +15 -17
- package/packages/forms/src/components/controlled/RadioGroup.tsx +16 -18
- package/packages/forms/src/components/index.ts +8 -8
- package/packages/forms/src/components/inputStyle.ts +7 -8
- package/packages/forms/src/index.ts +0 -11
- package/packages/forms/tests/Checkbox.test.tsx +44 -0
- package/packages/forms/tests/FieldsetControl.test.tsx +62 -11
- package/packages/forms/tests/FileInput.test.tsx +25 -0
- package/packages/forms/tests/Input.test.tsx +12 -83
- package/packages/forms/tests/LabelControl.test.tsx +82 -20
- package/packages/forms/tests/Radio.test.tsx +23 -78
- package/packages/forms/tests/Select.test.tsx +30 -0
- package/packages/forms/tests/Textarea.test.tsx +25 -0
- package/packages/forms/tests/vitest.setup.ts +1 -0
- package/packages/forms/tsconfig.node.json +3 -2
- package/packages/helper/.turbo/turbo-build.log +23 -0
- package/packages/helper/dist/index.cjs.js +78 -0
- package/packages/helper/dist/index.es.js +119 -0
- package/packages/helper/dist/types/calc.d.ts +2 -0
- package/packages/helper/dist/types/calc.d.ts.map +1 -0
- package/packages/{forms/dist/types/utils/class.d.ts → helper/dist/types/cx.d.ts} +1 -1
- package/packages/helper/dist/types/cx.d.ts.map +1 -0
- package/packages/helper/dist/types/index.d.ts +6 -0
- package/packages/helper/dist/types/index.d.ts.map +1 -0
- package/packages/helper/dist/types/querySelector.d.ts +2 -0
- package/packages/helper/dist/types/querySelector.d.ts.map +1 -0
- package/packages/helper/dist/types/styles.d.ts +22 -0
- package/packages/helper/dist/types/styles.d.ts.map +1 -0
- package/packages/helper/dist/types/treefy.d.ts +8 -0
- package/packages/helper/dist/types/treefy.d.ts.map +1 -0
- package/packages/helper/package.json +40 -0
- package/packages/helper/src/calc.ts +1 -0
- package/packages/helper/src/index.ts +5 -0
- package/packages/helper/src/querySelector.ts +20 -0
- package/packages/helper/src/styles.ts +116 -0
- package/packages/helper/src/treefy.ts +22 -0
- package/packages/helper/tsconfig.json +13 -0
- package/packages/helper/tsconfig.node.json +6 -0
- package/packages/helper/vite.config.ts +26 -0
- package/packages/markdown/.turbo/turbo-build.log +22 -0
- package/packages/markdown/README.md +129 -0
- package/packages/markdown/dist/index.cjs.js +175 -0
- package/packages/markdown/dist/index.es.js +17098 -0
- package/packages/markdown/dist/types/components/Markdown.d.ts +15 -0
- package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -0
- package/packages/markdown/dist/types/components/index.d.ts +2 -0
- package/packages/markdown/dist/types/components/index.d.ts.map +1 -0
- package/packages/markdown/dist/types/index.d.ts +2 -0
- package/packages/markdown/dist/types/index.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/attr.d.ts +3 -0
- package/packages/markdown/dist/types/plugins/attr.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/card.d.ts +3 -0
- package/packages/markdown/dist/types/plugins/card.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/cell.d.ts +3 -0
- package/packages/markdown/dist/types/plugins/cell.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/faq.d.ts +3 -0
- package/packages/markdown/dist/types/plugins/faq.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/grid.d.ts +3 -0
- package/packages/markdown/dist/types/plugins/grid.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/headings.d.ts +9 -0
- package/packages/markdown/dist/types/plugins/headings.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/helper.d.ts +9 -0
- package/packages/markdown/dist/types/plugins/helper.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/index.d.ts +9 -0
- package/packages/markdown/dist/types/plugins/index.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/linkButton.d.ts +3 -0
- package/packages/markdown/dist/types/plugins/linkButton.d.ts.map +1 -0
- package/packages/markdown/dist/types/plugins/youtube.d.ts +3 -0
- package/packages/markdown/dist/types/plugins/youtube.d.ts.map +1 -0
- package/packages/markdown/node_modules/.bin/autoprefixer +17 -0
- package/packages/markdown/node_modules/.bin/tailwind +17 -0
- package/packages/markdown/node_modules/.bin/tailwindcss +17 -0
- package/packages/markdown/node_modules/.bin/ts-node +17 -0
- package/packages/markdown/node_modules/.bin/ts-node-cwd +17 -0
- package/packages/markdown/node_modules/.bin/ts-node-esm +17 -0
- package/packages/markdown/node_modules/.bin/ts-node-script +17 -0
- package/packages/markdown/node_modules/.bin/ts-node-transpile-only +17 -0
- package/packages/markdown/node_modules/.bin/ts-script +17 -0
- package/packages/markdown/node_modules/.bin/tsc +17 -0
- package/packages/markdown/node_modules/.bin/tsserver +17 -0
- package/packages/markdown/package.json +83 -0
- package/packages/markdown/src/components/Markdown.tsx +361 -0
- package/packages/markdown/src/components/index.ts +1 -0
- package/packages/markdown/src/global.d.ts +9 -0
- package/packages/markdown/src/index.ts +1 -0
- package/packages/markdown/src/plugins/attr.ts +19 -0
- package/packages/markdown/src/plugins/card.ts +57 -0
- package/packages/markdown/src/plugins/cell.ts +47 -0
- package/packages/markdown/src/plugins/faq.ts +40 -0
- package/packages/markdown/src/plugins/grid.ts +51 -0
- package/packages/markdown/src/plugins/headings.ts +35 -0
- package/packages/markdown/src/plugins/helper.ts +27 -0
- package/packages/markdown/src/plugins/index.ts +8 -0
- package/packages/markdown/src/plugins/linkButton.ts +25 -0
- package/packages/markdown/src/plugins/youtube.ts +48 -0
- package/packages/markdown/tsconfig.json +13 -0
- package/packages/markdown/tsconfig.node.json +7 -0
- package/packages/markdown/vite.config.ts +30 -0
- package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +22 -0
- package/packages/tailwind-theme-plugin/dist/index.cjs.js +1 -1
- package/packages/tailwind-theme-plugin/dist/index.es.js +5354 -6111
- package/packages/tailwind-theme-plugin/dist/types/index.d.ts +1 -1
- package/packages/tailwind-theme-plugin/dist/types/index.d.ts.map +1 -1
- package/packages/tailwind-theme-plugin/node_modules/.bin/autoprefixer +2 -2
- package/packages/tailwind-theme-plugin/node_modules/.bin/tailwind +2 -2
- package/packages/tailwind-theme-plugin/node_modules/.bin/tailwindcss +2 -2
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node +4 -4
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-cwd +4 -4
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-esm +4 -4
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-script +4 -4
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-transpile-only +4 -4
- package/packages/tailwind-theme-plugin/node_modules/.bin/ts-script +4 -4
- package/packages/tailwind-theme-plugin/node_modules/.bin/tsc +17 -0
- package/packages/tailwind-theme-plugin/node_modules/.bin/tsserver +17 -0
- package/packages/tailwind-theme-plugin/package.json +6 -6
- package/packages/tailwind-theme-plugin/src/index.ts +226 -291
- package/packages/core/src/libs/forward-ref.ts +0 -44
- package/packages/core/src/types/component.ts +0 -83
- package/packages/forms/dist/types/utils/class.d.ts.map +0 -1
- package/packages/forms/node_modules/.bin/acorn +0 -17
- package/packages/forms/node_modules/.bin/browserslist +0 -17
- package/packages/forms/node_modules/.bin/eslint +0 -17
- package/packages/forms/node_modules/.bin/vitest +0 -17
- package/packages/forms/src/utils/class.ts +0 -2
- package/packages/tailwind-theme-plugin/node_modules/.bin/browserslist +0 -17
- /package/packages/{core/src/libs → helper/src}/cx.ts +0 -0
|
@@ -1,657 +1,547 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import R from "react";
|
|
2
|
+
var z = { exports: {} }, q = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
var ye;
|
|
13
|
+
function Me() {
|
|
14
|
+
if (ye) return q;
|
|
15
|
+
ye = 1;
|
|
16
|
+
var s = Symbol.for("react.transitional.element"), d = Symbol.for("react.fragment");
|
|
17
|
+
function f(b, i, o) {
|
|
18
|
+
var n = null;
|
|
19
|
+
if (o !== void 0 && (n = "" + o), i.key !== void 0 && (n = "" + i.key), "key" in i) {
|
|
20
|
+
o = {};
|
|
21
|
+
for (var g in i)
|
|
22
|
+
g !== "key" && (o[g] = i[g]);
|
|
23
|
+
} else o = i;
|
|
24
|
+
return i = o.ref, {
|
|
25
|
+
$$typeof: s,
|
|
26
|
+
type: b,
|
|
27
|
+
key: n,
|
|
28
|
+
ref: i !== void 0 ? i : null,
|
|
29
|
+
props: o
|
|
30
|
+
};
|
|
27
31
|
}
|
|
28
|
-
return
|
|
32
|
+
return q.Fragment = d, q.jsx = f, q.jsxs = f, q;
|
|
29
33
|
}
|
|
30
|
-
var
|
|
34
|
+
var M = {};
|
|
31
35
|
/**
|
|
32
36
|
* @license React
|
|
33
37
|
* react-jsx-runtime.development.js
|
|
34
38
|
*
|
|
35
|
-
* Copyright (c)
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
36
40
|
*
|
|
37
41
|
* This source code is licensed under the MIT license found in the
|
|
38
42
|
* LICENSE file in the root directory of this source tree.
|
|
39
43
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (
|
|
46
|
-
return null;
|
|
47
|
-
|
|
48
|
-
return typeof r == "function" ? r : null;
|
|
49
|
-
}
|
|
50
|
-
var D = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function T(e) {
|
|
52
|
-
{
|
|
53
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
54
|
-
t[n - 1] = arguments[n];
|
|
55
|
-
We("error", e, t);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function We(e, r, t) {
|
|
59
|
-
{
|
|
60
|
-
var n = D.ReactDebugCurrentFrame, p = n.getStackAddendum();
|
|
61
|
-
p !== "" && (r += "%s", t = t.concat([p]));
|
|
62
|
-
var m = t.map(function(c) {
|
|
63
|
-
return String(c);
|
|
64
|
-
});
|
|
65
|
-
m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
var Le = !1, Ye = !1, Ve = !1, Ue = !1, ze = !1, se;
|
|
69
|
-
se = Symbol.for("react.module.reference");
|
|
70
|
-
function Be(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === x || e === u || ze || e === f || e === R || e === h || Ue || e === w || Le || Ye || Ve || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === d || e.$$typeof === i || e.$$typeof === o || e.$$typeof === a || // This needs to include all possible module reference object
|
|
72
|
-
// types supported by any Flight configuration anywhere since
|
|
73
|
-
// we don't know which Flight build this will end up being used
|
|
74
|
-
// with.
|
|
75
|
-
e.$$typeof === se || e.getModuleId !== void 0));
|
|
76
|
-
}
|
|
77
|
-
function Ge(e, r, t) {
|
|
78
|
-
var n = e.displayName;
|
|
79
|
-
if (n)
|
|
80
|
-
return n;
|
|
81
|
-
var p = r.displayName || r.name || "";
|
|
82
|
-
return p !== "" ? t + "(" + p + ")" : t;
|
|
83
|
-
}
|
|
84
|
-
function ie(e) {
|
|
85
|
-
return e.displayName || "Context";
|
|
86
|
-
}
|
|
87
|
-
function N(e) {
|
|
88
|
-
if (e == null)
|
|
89
|
-
return null;
|
|
90
|
-
if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
|
-
return e.displayName || e.name || null;
|
|
92
|
-
if (typeof e == "string")
|
|
93
|
-
return e;
|
|
44
|
+
var Ee;
|
|
45
|
+
function Ye() {
|
|
46
|
+
return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function s(e) {
|
|
48
|
+
if (e == null) return null;
|
|
49
|
+
if (typeof e == "function")
|
|
50
|
+
return e.$$typeof === $e ? null : e.displayName || e.name || null;
|
|
51
|
+
if (typeof e == "string") return e;
|
|
94
52
|
switch (e) {
|
|
95
|
-
case
|
|
53
|
+
case U:
|
|
96
54
|
return "Fragment";
|
|
97
|
-
case
|
|
55
|
+
case Pe:
|
|
98
56
|
return "Portal";
|
|
99
|
-
case
|
|
57
|
+
case se:
|
|
100
58
|
return "Profiler";
|
|
101
|
-
case
|
|
59
|
+
case te:
|
|
102
60
|
return "StrictMode";
|
|
103
|
-
case
|
|
61
|
+
case G:
|
|
104
62
|
return "Suspense";
|
|
105
|
-
case
|
|
63
|
+
case H:
|
|
106
64
|
return "SuspenseList";
|
|
107
65
|
}
|
|
108
66
|
if (typeof e == "object")
|
|
109
|
-
switch (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
|
|
67
|
+
switch (typeof e.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), e.$$typeof) {
|
|
70
|
+
case le:
|
|
71
|
+
return (e.displayName || "Context") + ".Provider";
|
|
72
|
+
case oe:
|
|
73
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case F:
|
|
75
|
+
var r = e.render;
|
|
76
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
77
|
+
case J:
|
|
78
|
+
return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
|
|
79
|
+
case V:
|
|
80
|
+
r = e._payload, e = e._init;
|
|
123
81
|
try {
|
|
124
|
-
return
|
|
82
|
+
return s(e(r));
|
|
125
83
|
} catch {
|
|
126
|
-
return null;
|
|
127
84
|
}
|
|
128
|
-
}
|
|
129
85
|
}
|
|
130
86
|
return null;
|
|
131
87
|
}
|
|
132
|
-
|
|
133
|
-
|
|
88
|
+
function d(e) {
|
|
89
|
+
return "" + e;
|
|
134
90
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
error: e,
|
|
151
|
-
group: e,
|
|
152
|
-
groupCollapsed: e,
|
|
153
|
-
groupEnd: e
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
M++;
|
|
91
|
+
function f(e) {
|
|
92
|
+
try {
|
|
93
|
+
d(e);
|
|
94
|
+
var r = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
r = !0;
|
|
97
|
+
}
|
|
98
|
+
if (r) {
|
|
99
|
+
r = console;
|
|
100
|
+
var t = r.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
101
|
+
return t.call(
|
|
102
|
+
r,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
u
|
|
105
|
+
), d(e);
|
|
157
106
|
}
|
|
158
107
|
}
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}),
|
|
180
|
-
group: F({}, e, {
|
|
181
|
-
value: de
|
|
182
|
-
}),
|
|
183
|
-
groupCollapsed: F({}, e, {
|
|
184
|
-
value: fe
|
|
185
|
-
}),
|
|
186
|
-
groupEnd: F({}, e, {
|
|
187
|
-
value: pe
|
|
188
|
-
})
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
M < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
108
|
+
function b() {
|
|
109
|
+
}
|
|
110
|
+
function i() {
|
|
111
|
+
if ($ === 0) {
|
|
112
|
+
ne = console.log, ce = console.info, de = console.warn, ue = console.error, fe = console.group, be = console.groupCollapsed, ge = console.groupEnd;
|
|
113
|
+
var e = {
|
|
114
|
+
configurable: !0,
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
value: b,
|
|
117
|
+
writable: !0
|
|
118
|
+
};
|
|
119
|
+
Object.defineProperties(console, {
|
|
120
|
+
info: e,
|
|
121
|
+
log: e,
|
|
122
|
+
warn: e,
|
|
123
|
+
error: e,
|
|
124
|
+
group: e,
|
|
125
|
+
groupCollapsed: e,
|
|
126
|
+
groupEnd: e
|
|
127
|
+
});
|
|
192
128
|
}
|
|
129
|
+
$++;
|
|
193
130
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
131
|
+
function o() {
|
|
132
|
+
if ($--, $ === 0) {
|
|
133
|
+
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
+
Object.defineProperties(console, {
|
|
135
|
+
log: S({}, e, { value: ne }),
|
|
136
|
+
info: S({}, e, { value: ce }),
|
|
137
|
+
warn: S({}, e, { value: de }),
|
|
138
|
+
error: S({}, e, { value: ue }),
|
|
139
|
+
group: S({}, e, { value: fe }),
|
|
140
|
+
groupCollapsed: S({}, e, { value: be }),
|
|
141
|
+
groupEnd: S({}, e, { value: ge })
|
|
142
|
+
});
|
|
206
143
|
}
|
|
144
|
+
0 > $ && console.error(
|
|
145
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
+
);
|
|
207
147
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
148
|
+
function n(e) {
|
|
149
|
+
if (X === void 0)
|
|
150
|
+
try {
|
|
151
|
+
throw Error();
|
|
152
|
+
} catch (t) {
|
|
153
|
+
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
+
X = r && r[1] || "", pe = -1 < t.stack.indexOf(`
|
|
155
|
+
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
+
}
|
|
157
|
+
return `
|
|
158
|
+
` + X + e + pe;
|
|
212
159
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!e ||
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
var n;
|
|
222
|
-
H = !0;
|
|
223
|
-
var p = Error.prepareStackTrace;
|
|
224
|
-
Error.prepareStackTrace = void 0;
|
|
225
|
-
var m;
|
|
226
|
-
m = J.current, J.current = null, Je();
|
|
160
|
+
function g(e, r) {
|
|
161
|
+
if (!e || Z) return "";
|
|
162
|
+
var t = Q.get(e);
|
|
163
|
+
if (t !== void 0) return t;
|
|
164
|
+
Z = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
+
var u = null;
|
|
166
|
+
u = I.H, I.H = null, i();
|
|
227
167
|
try {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
throw Error();
|
|
231
|
-
};
|
|
232
|
-
if (Object.defineProperty(c.prototype, "props", {
|
|
233
|
-
set: function() {
|
|
234
|
-
throw Error();
|
|
235
|
-
}
|
|
236
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
|
-
try {
|
|
238
|
-
Reflect.construct(c, []);
|
|
239
|
-
} catch (S) {
|
|
240
|
-
n = S;
|
|
241
|
-
}
|
|
242
|
-
Reflect.construct(e, [], c);
|
|
243
|
-
} else {
|
|
168
|
+
var v = {
|
|
169
|
+
DetermineComponentFrameRoot: function() {
|
|
244
170
|
try {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
171
|
+
if (r) {
|
|
172
|
+
var C = function() {
|
|
173
|
+
throw Error();
|
|
174
|
+
};
|
|
175
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
176
|
+
set: function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
}
|
|
179
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
+
try {
|
|
181
|
+
Reflect.construct(C, []);
|
|
182
|
+
} catch (T) {
|
|
183
|
+
var Y = T;
|
|
184
|
+
}
|
|
185
|
+
Reflect.construct(e, [], C);
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
C.call();
|
|
189
|
+
} catch (T) {
|
|
190
|
+
Y = T;
|
|
191
|
+
}
|
|
192
|
+
e.call(C.prototype);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (T) {
|
|
198
|
+
Y = T;
|
|
199
|
+
}
|
|
200
|
+
(C = e()) && typeof C.catch == "function" && C.catch(function() {
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} catch (T) {
|
|
204
|
+
if (T && Y && typeof T.stack == "string")
|
|
205
|
+
return [T.stack, Y.stack];
|
|
248
206
|
}
|
|
249
|
-
|
|
207
|
+
return [null, null];
|
|
250
208
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
209
|
+
};
|
|
210
|
+
v.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
+
var x = Object.getOwnPropertyDescriptor(
|
|
212
|
+
v.DetermineComponentFrameRoot,
|
|
213
|
+
"name"
|
|
214
|
+
);
|
|
215
|
+
x && x.configurable && Object.defineProperty(
|
|
216
|
+
v.DetermineComponentFrameRoot,
|
|
217
|
+
"name",
|
|
218
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
+
);
|
|
220
|
+
var a = v.DetermineComponentFrameRoot(), w = a[0], A = a[1];
|
|
221
|
+
if (w && A) {
|
|
222
|
+
var h = w.split(`
|
|
223
|
+
`), P = A.split(`
|
|
224
|
+
`);
|
|
225
|
+
for (a = x = 0; x < h.length && !h[x].includes(
|
|
226
|
+
"DetermineComponentFrameRoot"
|
|
227
|
+
); )
|
|
228
|
+
x++;
|
|
229
|
+
for (; a < P.length && !P[a].includes(
|
|
230
|
+
"DetermineComponentFrameRoot"
|
|
231
|
+
); )
|
|
232
|
+
a++;
|
|
233
|
+
if (x === h.length || a === P.length)
|
|
234
|
+
for (x = h.length - 1, a = P.length - 1; 1 <= x && 0 <= a && h[x] !== P[a]; )
|
|
235
|
+
a--;
|
|
236
|
+
for (; 1 <= x && 0 <= a; x--, a--)
|
|
237
|
+
if (h[x] !== P[a]) {
|
|
238
|
+
if (x !== 1 || a !== 1)
|
|
268
239
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` +
|
|
272
|
-
|
|
240
|
+
if (x--, a--, 0 > a || h[x] !== P[a]) {
|
|
241
|
+
var O = `
|
|
242
|
+
` + h[x].replace(
|
|
243
|
+
" at new ",
|
|
244
|
+
" at "
|
|
245
|
+
);
|
|
246
|
+
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, O), O;
|
|
273
247
|
}
|
|
274
|
-
while (
|
|
248
|
+
while (1 <= x && 0 <= a);
|
|
275
249
|
break;
|
|
276
250
|
}
|
|
277
251
|
}
|
|
278
252
|
} finally {
|
|
279
|
-
|
|
253
|
+
Z = !1, I.H = u, o(), Error.prepareStackTrace = t;
|
|
280
254
|
}
|
|
281
|
-
|
|
282
|
-
return typeof e == "function" && z.set(e, q), q;
|
|
283
|
-
}
|
|
284
|
-
function Xe(e, r, t) {
|
|
285
|
-
return be(e, !1);
|
|
255
|
+
return h = (h = e ? e.displayName || e.name : "") ? n(h) : "", typeof e == "function" && Q.set(e, h), h;
|
|
286
256
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
if (typeof e == "string")
|
|
297
|
-
return U(e);
|
|
257
|
+
function c(e) {
|
|
258
|
+
if (e == null) return "";
|
|
259
|
+
if (typeof e == "function") {
|
|
260
|
+
var r = e.prototype;
|
|
261
|
+
return g(
|
|
262
|
+
e,
|
|
263
|
+
!(!r || !r.isReactComponent)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
if (typeof e == "string") return n(e);
|
|
298
267
|
switch (e) {
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
268
|
+
case G:
|
|
269
|
+
return n("Suspense");
|
|
270
|
+
case H:
|
|
271
|
+
return n("SuspenseList");
|
|
303
272
|
}
|
|
304
273
|
if (typeof e == "object")
|
|
305
274
|
switch (e.$$typeof) {
|
|
306
|
-
case
|
|
307
|
-
return
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
|
|
275
|
+
case F:
|
|
276
|
+
return e = g(e.render, !1), e;
|
|
277
|
+
case J:
|
|
278
|
+
return c(e.type);
|
|
279
|
+
case V:
|
|
280
|
+
r = e._payload, e = e._init;
|
|
312
281
|
try {
|
|
313
|
-
return
|
|
282
|
+
return c(e(r));
|
|
314
283
|
} catch {
|
|
315
284
|
}
|
|
316
|
-
}
|
|
317
285
|
}
|
|
318
286
|
return "";
|
|
319
287
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
|
|
324
|
-
he.setExtraStackFrame(t);
|
|
325
|
-
} else
|
|
326
|
-
he.setExtraStackFrame(null);
|
|
327
|
-
}
|
|
328
|
-
function Qe(e, r, t, n, p) {
|
|
329
|
-
{
|
|
330
|
-
var m = Function.call.bind(W);
|
|
331
|
-
for (var c in e)
|
|
332
|
-
if (m(e, c)) {
|
|
333
|
-
var l = void 0;
|
|
334
|
-
try {
|
|
335
|
-
if (typeof e[c] != "function") {
|
|
336
|
-
var I = Error((n || "React class") + ": " + t + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
-
throw I.name = "Invariant Violation", I;
|
|
338
|
-
}
|
|
339
|
-
l = e[c](r, c, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (E) {
|
|
341
|
-
l = E;
|
|
342
|
-
}
|
|
343
|
-
l && !(l instanceof Error) && (G(p), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, c, typeof l), G(null)), l instanceof Error && !(l.message in me) && (me[l.message] = !0, G(p), T("Failed %s type: %s", t, l.message), G(null));
|
|
344
|
-
}
|
|
345
|
-
}
|
|
288
|
+
function m() {
|
|
289
|
+
var e = I.A;
|
|
290
|
+
return e === null ? null : e.getOwner();
|
|
346
291
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
return er(e);
|
|
350
|
-
}
|
|
351
|
-
function rr(e) {
|
|
352
|
-
{
|
|
353
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
354
|
-
return t;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
function tr(e) {
|
|
358
|
-
try {
|
|
359
|
-
return ge(e), !1;
|
|
360
|
-
} catch {
|
|
361
|
-
return !0;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
function ge(e) {
|
|
365
|
-
return "" + e;
|
|
366
|
-
}
|
|
367
|
-
function xe(e) {
|
|
368
|
-
if (tr(e))
|
|
369
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), ge(e);
|
|
370
|
-
}
|
|
371
|
-
var L = D.ReactCurrentOwner, ar = {
|
|
372
|
-
key: !0,
|
|
373
|
-
ref: !0,
|
|
374
|
-
__self: !0,
|
|
375
|
-
__source: !0
|
|
376
|
-
}, ye, Re, Z;
|
|
377
|
-
Z = {};
|
|
378
|
-
function nr(e) {
|
|
379
|
-
if (W.call(e, "ref")) {
|
|
380
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
|
-
if (r && r.isReactWarning)
|
|
382
|
-
return !1;
|
|
383
|
-
}
|
|
384
|
-
return e.ref !== void 0;
|
|
385
|
-
}
|
|
386
|
-
function sr(e) {
|
|
387
|
-
if (W.call(e, "key")) {
|
|
292
|
+
function p(e) {
|
|
293
|
+
if (ie.call(e, "key")) {
|
|
388
294
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
|
-
if (r && r.isReactWarning)
|
|
390
|
-
return !1;
|
|
295
|
+
if (r && r.isReactWarning) return !1;
|
|
391
296
|
}
|
|
392
297
|
return e.key !== void 0;
|
|
393
298
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
function or(e, r) {
|
|
401
|
-
{
|
|
402
|
-
var t = function() {
|
|
403
|
-
ye || (ye = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
404
|
-
};
|
|
405
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
-
get: t,
|
|
407
|
-
configurable: !0
|
|
408
|
-
});
|
|
299
|
+
function y(e, r) {
|
|
300
|
+
function t() {
|
|
301
|
+
xe || (xe = !0, console.error(
|
|
302
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
303
|
+
r
|
|
304
|
+
));
|
|
409
305
|
}
|
|
306
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
307
|
+
get: t,
|
|
308
|
+
configurable: !0
|
|
309
|
+
});
|
|
410
310
|
}
|
|
411
|
-
function
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
-
get: t,
|
|
418
|
-
configurable: !0
|
|
419
|
-
});
|
|
420
|
-
}
|
|
311
|
+
function E() {
|
|
312
|
+
var e = s(this.type);
|
|
313
|
+
return me[e] || (me[e] = !0, console.error(
|
|
314
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
315
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
421
316
|
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
$$typeof: g,
|
|
426
|
-
// Built-in properties that belong on the element
|
|
317
|
+
function j(e, r, t, u, v, x) {
|
|
318
|
+
return t = x.ref, e = {
|
|
319
|
+
$$typeof: B,
|
|
427
320
|
type: e,
|
|
428
321
|
key: r,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
_owner: m
|
|
433
|
-
};
|
|
434
|
-
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
435
|
-
configurable: !1,
|
|
322
|
+
props: x,
|
|
323
|
+
_owner: v
|
|
324
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
436
325
|
enumerable: !1,
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}), Object.defineProperty(l, "_self", {
|
|
326
|
+
get: E
|
|
327
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
440
328
|
configurable: !1,
|
|
441
329
|
enumerable: !1,
|
|
442
|
-
writable: !
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
330
|
+
writable: !0,
|
|
331
|
+
value: 0
|
|
332
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
445
333
|
configurable: !1,
|
|
446
334
|
enumerable: !1,
|
|
447
|
-
writable: !
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
450
|
-
};
|
|
451
|
-
function cr(e, r, t, n, p) {
|
|
452
|
-
{
|
|
453
|
-
var m, c = {}, l = null, I = null;
|
|
454
|
-
t !== void 0 && (xe(t), l = "" + t), sr(r) && (xe(r.key), l = "" + r.key), nr(r) && (I = r.ref, ir(r, p));
|
|
455
|
-
for (m in r)
|
|
456
|
-
W.call(r, m) && !ar.hasOwnProperty(m) && (c[m] = r[m]);
|
|
457
|
-
if (e && e.defaultProps) {
|
|
458
|
-
var E = e.defaultProps;
|
|
459
|
-
for (m in E)
|
|
460
|
-
c[m] === void 0 && (c[m] = E[m]);
|
|
461
|
-
}
|
|
462
|
-
if (l || I) {
|
|
463
|
-
var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
l && or(c, _), I && lr(c, _);
|
|
465
|
-
}
|
|
466
|
-
return ur(e, l, I, p, n, L.current, c);
|
|
467
|
-
}
|
|
335
|
+
writable: !0,
|
|
336
|
+
value: null
|
|
337
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
468
338
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
339
|
+
function D(e, r, t, u, v, x) {
|
|
340
|
+
if (typeof e == "string" || typeof e == "function" || e === U || e === se || e === te || e === G || e === H || e === Ae || typeof e == "object" && e !== null && (e.$$typeof === V || e.$$typeof === J || e.$$typeof === le || e.$$typeof === oe || e.$$typeof === F || e.$$typeof === Oe || e.getModuleId !== void 0)) {
|
|
341
|
+
var a = r.children;
|
|
342
|
+
if (a !== void 0)
|
|
343
|
+
if (u)
|
|
344
|
+
if (L(a)) {
|
|
345
|
+
for (u = 0; u < a.length; u++)
|
|
346
|
+
ee(a[u], e);
|
|
347
|
+
Object.freeze && Object.freeze(a);
|
|
348
|
+
} else
|
|
349
|
+
console.error(
|
|
350
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
351
|
+
);
|
|
352
|
+
else ee(a, e);
|
|
474
353
|
} else
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
var je = {};
|
|
498
|
-
function fr(e) {
|
|
499
|
-
{
|
|
500
|
-
var r = _e();
|
|
501
|
-
if (!r) {
|
|
502
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
-
t && (r = `
|
|
504
|
-
|
|
505
|
-
Check the top-level render call using <` + t + ">.");
|
|
506
|
-
}
|
|
507
|
-
return r;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function we(e, r) {
|
|
511
|
-
{
|
|
512
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
513
|
-
return;
|
|
514
|
-
e._store.validated = !0;
|
|
515
|
-
var t = fr(r);
|
|
516
|
-
if (je[t])
|
|
517
|
-
return;
|
|
518
|
-
je[t] = !0;
|
|
519
|
-
var n = "";
|
|
520
|
-
e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + N(e._owner.type) + "."), A(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), A(null);
|
|
354
|
+
a = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? u = "null" : L(e) ? u = "array" : e !== void 0 && e.$$typeof === B ? (u = "<" + (s(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, console.error(
|
|
355
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
356
|
+
u,
|
|
357
|
+
a
|
|
358
|
+
);
|
|
359
|
+
if (ie.call(r, "key")) {
|
|
360
|
+
a = s(e);
|
|
361
|
+
var w = Object.keys(r).filter(function(h) {
|
|
362
|
+
return h !== "key";
|
|
363
|
+
});
|
|
364
|
+
u = 0 < w.length ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}", ve[a + u] || (w = 0 < w.length ? "{" + w.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
366
|
+
let props = %s;
|
|
367
|
+
<%s {...props} />
|
|
368
|
+
React keys must be passed directly to JSX without using spread:
|
|
369
|
+
let props = %s;
|
|
370
|
+
<%s key={someKey} {...props} />`,
|
|
371
|
+
u,
|
|
372
|
+
a,
|
|
373
|
+
w,
|
|
374
|
+
a
|
|
375
|
+
), ve[a + u] = !0);
|
|
521
376
|
}
|
|
377
|
+
if (a = null, t !== void 0 && (f(t), a = "" + t), p(r) && (f(r.key), a = "" + r.key), "key" in r) {
|
|
378
|
+
t = {};
|
|
379
|
+
for (var A in r)
|
|
380
|
+
A !== "key" && (t[A] = r[A]);
|
|
381
|
+
} else t = r;
|
|
382
|
+
return a && y(
|
|
383
|
+
t,
|
|
384
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
385
|
+
), j(e, a, x, v, m(), t);
|
|
522
386
|
}
|
|
523
|
-
function
|
|
524
|
-
{
|
|
525
|
-
if (
|
|
526
|
-
return;
|
|
527
|
-
if (X(e))
|
|
387
|
+
function ee(e, r) {
|
|
388
|
+
if (typeof e == "object" && e && e.$$typeof !== qe) {
|
|
389
|
+
if (L(e))
|
|
528
390
|
for (var t = 0; t < e.length; t++) {
|
|
529
|
-
var
|
|
530
|
-
|
|
391
|
+
var u = e[t];
|
|
392
|
+
W(u) && re(u, r);
|
|
531
393
|
}
|
|
532
|
-
else if (
|
|
533
|
-
e._store && (e._store.validated =
|
|
534
|
-
else if (e)
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
for (var m = p.call(e), c; !(c = m.next()).done; )
|
|
538
|
-
re(c.value) && we(c.value, r);
|
|
539
|
-
}
|
|
394
|
+
else if (W(e))
|
|
395
|
+
e._store && (e._store.validated = 1);
|
|
396
|
+
else if (e === null || typeof e != "object" ? t = null : (t = ae && e[ae] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
397
|
+
for (; !(e = t.next()).done; )
|
|
398
|
+
W(e.value) && re(e.value, r);
|
|
540
399
|
}
|
|
541
400
|
}
|
|
542
|
-
function
|
|
543
|
-
|
|
544
|
-
var r = e.type;
|
|
545
|
-
if (r == null || typeof r == "string")
|
|
546
|
-
return;
|
|
547
|
-
var t;
|
|
548
|
-
if (typeof r == "function")
|
|
549
|
-
t = r.propTypes;
|
|
550
|
-
else if (typeof r == "object" && (r.$$typeof === a || // Note: Memo only checks outer props here.
|
|
551
|
-
// Inner props are checked in the reconciler.
|
|
552
|
-
r.$$typeof === d))
|
|
553
|
-
t = r.propTypes;
|
|
554
|
-
else
|
|
555
|
-
return;
|
|
556
|
-
if (t) {
|
|
557
|
-
var n = N(r);
|
|
558
|
-
Qe(t, e.props, "prop", n, e);
|
|
559
|
-
} else if (r.PropTypes !== void 0 && !ee) {
|
|
560
|
-
ee = !0;
|
|
561
|
-
var p = N(r);
|
|
562
|
-
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
563
|
-
}
|
|
564
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
function vr(e) {
|
|
568
|
-
{
|
|
569
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
570
|
-
var n = r[t];
|
|
571
|
-
if (n !== "children" && n !== "key") {
|
|
572
|
-
A(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
e.ref !== null && (A(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
|
|
577
|
-
}
|
|
401
|
+
function W(e) {
|
|
402
|
+
return typeof e == "object" && e !== null && e.$$typeof === B;
|
|
578
403
|
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
var
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
var
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
return _;
|
|
594
|
-
if (c) {
|
|
595
|
-
var P = r.children;
|
|
596
|
-
if (P !== void 0)
|
|
597
|
-
if (n)
|
|
598
|
-
if (X(P)) {
|
|
599
|
-
for (var $ = 0; $ < P.length; $++)
|
|
600
|
-
Te(P[$], e);
|
|
601
|
-
Object.freeze && Object.freeze(P);
|
|
602
|
-
} else
|
|
603
|
-
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
|
-
else
|
|
605
|
-
Te(P, e);
|
|
606
|
-
}
|
|
607
|
-
if (W.call(r, "key")) {
|
|
608
|
-
var q = N(e), S = Object.keys(r).filter(function(yr) {
|
|
609
|
-
return yr !== "key";
|
|
610
|
-
}), te = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
-
if (!Ce[q + te]) {
|
|
612
|
-
var xr = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
-
T(`A props object containing a "key" prop is being spread into JSX:
|
|
614
|
-
let props = %s;
|
|
615
|
-
<%s {...props} />
|
|
616
|
-
React keys must be passed directly to JSX without using spread:
|
|
617
|
-
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`, te, q, xr, q), Ce[q + te] = !0;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
return e === x ? vr(_) : pr(_), _;
|
|
404
|
+
function re(e, r) {
|
|
405
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ie(r), !he[r])) {
|
|
406
|
+
he[r] = !0;
|
|
407
|
+
var t = "";
|
|
408
|
+
e && e._owner != null && e._owner !== m() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
409
|
+
var u = I.getCurrentStack;
|
|
410
|
+
I.getCurrentStack = function() {
|
|
411
|
+
var v = c(e.type);
|
|
412
|
+
return u && (v += u() || ""), v;
|
|
413
|
+
}, console.error(
|
|
414
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
+
r,
|
|
416
|
+
t
|
|
417
|
+
), I.getCurrentStack = u;
|
|
622
418
|
}
|
|
623
419
|
}
|
|
624
|
-
function
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
420
|
+
function Ie(e) {
|
|
421
|
+
var r = "", t = m();
|
|
422
|
+
return t && (t = s(t.type)) && (r = `
|
|
423
|
+
|
|
424
|
+
Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
|
|
425
|
+
|
|
426
|
+
Check the top-level render call using <` + e + ">."), r;
|
|
629
427
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
|
|
428
|
+
var Se = R, B = Symbol.for("react.transitional.element"), Pe = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), oe = Symbol.for("react.consumer"), le = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), Ae = Symbol.for("react.offscreen"), ae = Symbol.iterator, $e = Symbol.for("react.client.reference"), I = Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ie = Object.prototype.hasOwnProperty, S = Object.assign, Oe = Symbol.for("react.client.reference"), L = Array.isArray, $ = 0, ne, ce, de, ue, fe, be, ge;
|
|
429
|
+
b.__reactDisabledLog = !0;
|
|
430
|
+
var X, pe, Z = !1, Q = new (typeof WeakMap == "function" ? WeakMap : Map)(), qe = Symbol.for("react.client.reference"), xe, me = {}, ve = {}, he = {};
|
|
431
|
+
M.Fragment = U, M.jsx = function(e, r, t, u, v) {
|
|
432
|
+
return D(e, r, t, !1, u, v);
|
|
433
|
+
}, M.jsxs = function(e, r, t, u, v) {
|
|
434
|
+
return D(e, r, t, !0, u, v);
|
|
435
|
+
};
|
|
436
|
+
}()), M;
|
|
437
|
+
}
|
|
438
|
+
var Ne;
|
|
439
|
+
function ze() {
|
|
440
|
+
return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? z.exports = Me() : z.exports = Ye()), z.exports;
|
|
633
441
|
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
442
|
+
var l = ze();
|
|
443
|
+
const N = (...s) => s.filter(Boolean).join(" ");
|
|
444
|
+
var k;
|
|
445
|
+
((s) => {
|
|
446
|
+
s.clickable = `
|
|
447
|
+
px-2
|
|
448
|
+
min-h-[calc(44/16*1rem)]
|
|
449
|
+
border
|
|
450
|
+
border-transparent
|
|
451
|
+
rounded-lg
|
|
452
|
+
hover:bg-solid-grey-50
|
|
453
|
+
`, s.selected = `
|
|
454
|
+
rounded-full
|
|
455
|
+
bg-yellow-50
|
|
456
|
+
`;
|
|
457
|
+
const d = `
|
|
458
|
+
focus-visible:outline
|
|
459
|
+
focus-visible:outline-4
|
|
460
|
+
focus-visible:outline-black
|
|
461
|
+
focus-visible:ring-yellow-300
|
|
462
|
+
`;
|
|
463
|
+
s.focusRectCondensed = `
|
|
464
|
+
${d}
|
|
465
|
+
focus-visible:-outline-offset-4
|
|
466
|
+
focus-visible:ring-[calc(6/16*1rem)]
|
|
467
|
+
focus-visible:ring-inset
|
|
468
|
+
`, s.focusRectCondensedWithBg = `
|
|
469
|
+
${s.focusRectCondensed}
|
|
470
|
+
focus-visible:bg-yellow-300
|
|
471
|
+
`, s.focusRect = `
|
|
472
|
+
${d}
|
|
473
|
+
focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
474
|
+
focus-visible:ring-[calc(2/16*1rem)]
|
|
475
|
+
`, s.focusRounded = `
|
|
476
|
+
${s.focusRect}
|
|
477
|
+
focus-visible:rounded
|
|
478
|
+
`, s.focusCard = `
|
|
479
|
+
${s.focusRect}
|
|
480
|
+
focus-visible:rounded-2xl
|
|
481
|
+
sm:focus-visible:rounded-3xl
|
|
482
|
+
`, s.focusRectWithBg = `
|
|
483
|
+
${s.focusRect}
|
|
484
|
+
focus-visible:bg-yellow-300
|
|
485
|
+
`, s.focusRoundedWithBg = `
|
|
486
|
+
${s.focusRectWithBg}
|
|
487
|
+
focus-visible:rounded
|
|
488
|
+
`, s.hoverUnderline = `
|
|
489
|
+
hover:underline
|
|
490
|
+
hover:underline-offset-[calc(3/16*1rem)]
|
|
491
|
+
`, s.underline = `
|
|
492
|
+
underline
|
|
493
|
+
underline-offset-[calc(3/16*1rem)]
|
|
494
|
+
hover:decoration-[calc(3/16*1rem)]
|
|
495
|
+
`, s.underlineNoDeco = `
|
|
496
|
+
underline
|
|
497
|
+
underline-offset-[calc(3/16*1rem)]
|
|
498
|
+
`, s.popover = `
|
|
499
|
+
min-w-fit
|
|
500
|
+
w-auto
|
|
501
|
+
py-2
|
|
502
|
+
bg-white
|
|
503
|
+
shadow-1
|
|
504
|
+
rounded-lg
|
|
505
|
+
border
|
|
506
|
+
border-solid-grey-420
|
|
507
|
+
has-[>:nth-child(7)]:rounded-r-none
|
|
508
|
+
`, s.popoverPositionBottomRight = `
|
|
509
|
+
absolute
|
|
510
|
+
top-11
|
|
511
|
+
right-0
|
|
512
|
+
`, s.popoverPositionBottomLeft = `
|
|
513
|
+
absolute
|
|
514
|
+
top-11
|
|
515
|
+
left-0
|
|
516
|
+
`, ((f) => {
|
|
517
|
+
f.focus = `
|
|
518
|
+
peer-focus-visible:outline
|
|
519
|
+
peer-focus-visible:outline-4
|
|
520
|
+
peer-focus-visible:outline-black
|
|
521
|
+
peer-focus-visible:ring-yellow-300
|
|
522
|
+
`, f.focusRect = `
|
|
523
|
+
${f.focus}
|
|
524
|
+
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
525
|
+
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
526
|
+
`;
|
|
527
|
+
})(s.Peer || (s.Peer = {}));
|
|
528
|
+
})(k || (k = {}));
|
|
529
|
+
const _ = R.createContext({
|
|
637
530
|
helperTextId: "",
|
|
638
531
|
errorMessageId: "",
|
|
639
532
|
isInvalid: !1,
|
|
640
533
|
isRequired: !1
|
|
641
|
-
}),
|
|
534
|
+
}), Re = `
|
|
642
535
|
bg-white
|
|
643
536
|
border
|
|
644
537
|
border-solid
|
|
645
|
-
border-
|
|
646
|
-
outline-offset-2
|
|
647
|
-
focus:outline
|
|
648
|
-
focus:outline-2
|
|
649
|
-
focus:outline-wood-500
|
|
538
|
+
border-solid-gray-900
|
|
650
539
|
disabled:bg-transparent
|
|
651
|
-
disabled:text-
|
|
652
|
-
disabled:border-
|
|
653
|
-
aria-invalid:border-
|
|
654
|
-
|
|
540
|
+
disabled:text-solid-gray-500
|
|
541
|
+
disabled:border-solid-gray-500
|
|
542
|
+
aria-invalid:border-red-800
|
|
543
|
+
${k.focusRect}
|
|
544
|
+
`, je = {
|
|
655
545
|
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
|
|
656
546
|
lg: `
|
|
657
547
|
p-4
|
|
@@ -675,13 +565,13 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
|
|
|
675
565
|
rounded-md
|
|
676
566
|
leading-snug
|
|
677
567
|
`
|
|
678
|
-
},
|
|
568
|
+
}, we = `
|
|
679
569
|
inline-block
|
|
680
570
|
cursor-pointer
|
|
681
571
|
border
|
|
682
572
|
border-solid
|
|
683
573
|
border-transparent
|
|
684
|
-
`,
|
|
574
|
+
`, Te = {
|
|
685
575
|
// 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
|
|
686
576
|
lg: `
|
|
687
577
|
pr-8
|
|
@@ -703,513 +593,490 @@ const C = (...v) => v.filter(Boolean).join(" "), O = y.createContext({
|
|
|
703
593
|
text-label
|
|
704
594
|
leading-snug
|
|
705
595
|
`
|
|
706
|
-
},
|
|
596
|
+
}, Ce = {
|
|
707
597
|
lg: "w-[22px] h-[22px] mr-2",
|
|
708
598
|
md: "w-[18px] h-[18px] mr-1.5",
|
|
709
599
|
sm: "w-[18px] h-[18px] mr-1"
|
|
710
|
-
},
|
|
711
|
-
(
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
600
|
+
}, ke = (s) => {
|
|
601
|
+
const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useId(), g = d || n, c = R.useContext(_);
|
|
602
|
+
c.isRequired && (o.required = !0), c.groupName && (o.name = c.groupName);
|
|
603
|
+
const m = {
|
|
604
|
+
lg: 22 / 24,
|
|
605
|
+
md: 18 / 24,
|
|
606
|
+
sm: 18 / 24
|
|
607
|
+
}, p = `
|
|
608
|
+
peer
|
|
609
|
+
sr-only
|
|
610
|
+
`, y = `
|
|
611
|
+
bg-clip-content
|
|
612
|
+
rounded
|
|
613
|
+
border
|
|
614
|
+
border-solid
|
|
615
|
+
border-solid-gray-900
|
|
616
|
+
fill-transparent
|
|
617
|
+
peer-checked:fill-white
|
|
618
|
+
peer-checked:bg-blue-600
|
|
619
|
+
peer-checked:border-none
|
|
620
|
+
peer-disabled:border-solid-gray-500
|
|
621
|
+
${k.Peer.focusRect}
|
|
622
|
+
`;
|
|
623
|
+
return /* @__PURE__ */ l.jsx(
|
|
624
|
+
"label",
|
|
625
|
+
{
|
|
626
|
+
htmlFor: g,
|
|
627
|
+
className: N(
|
|
628
|
+
we,
|
|
629
|
+
Te[b],
|
|
630
|
+
f
|
|
631
|
+
),
|
|
632
|
+
children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center", children: [
|
|
633
|
+
/* @__PURE__ */ l.jsx(
|
|
634
|
+
"input",
|
|
635
|
+
{
|
|
636
|
+
id: g,
|
|
637
|
+
className: p,
|
|
638
|
+
type: "checkbox",
|
|
639
|
+
"aria-describedby": c.helperTextId,
|
|
640
|
+
"aria-errormessage": c.errorMessageId,
|
|
641
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
642
|
+
"aria-required": c.isRequired ?? !1,
|
|
643
|
+
...o
|
|
644
|
+
}
|
|
645
|
+
),
|
|
646
|
+
/* @__PURE__ */ l.jsx("span", { className: N(y, Ce[b]), children: /* @__PURE__ */ l.jsx(
|
|
647
|
+
"svg",
|
|
648
|
+
{
|
|
649
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
650
|
+
"aria-hidden": !0,
|
|
651
|
+
width: "24",
|
|
652
|
+
height: "24",
|
|
653
|
+
viewBox: "0 0 24 24",
|
|
654
|
+
children: /* @__PURE__ */ l.jsx("g", { transform: `scale(${m[b]} ${m[b]})`, children: /* @__PURE__ */ l.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
|
|
655
|
+
}
|
|
656
|
+
) }),
|
|
657
|
+
/* @__PURE__ */ l.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: i })
|
|
658
|
+
] })
|
|
659
|
+
}
|
|
660
|
+
);
|
|
661
|
+
};
|
|
662
|
+
ke.displayName = "Checkbox";
|
|
663
|
+
const _e = (s) => {
|
|
664
|
+
const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useId(), g = d || n, c = R.useContext(_);
|
|
665
|
+
c.isRequired && (o.required = !0), c.groupName && (o.name = c.groupName);
|
|
666
|
+
const m = `
|
|
667
|
+
peer
|
|
668
|
+
sr-only
|
|
669
|
+
`, p = `
|
|
670
|
+
bg-clip-content
|
|
671
|
+
rounded-full
|
|
672
|
+
border
|
|
673
|
+
border-solid
|
|
674
|
+
border-solid-gray-900
|
|
675
|
+
peer-checked:bg-blue-600
|
|
676
|
+
peer-checked:border-blue-600
|
|
677
|
+
peer-disabled:border-solid-gray-500
|
|
678
|
+
${k.Peer.focusRect}
|
|
679
|
+
`, y = {
|
|
680
|
+
lg: "p-1",
|
|
681
|
+
md: "p-[3px]",
|
|
682
|
+
sm: "p-[3px]"
|
|
683
|
+
};
|
|
684
|
+
return /* @__PURE__ */ l.jsx(
|
|
685
|
+
"label",
|
|
686
|
+
{
|
|
687
|
+
htmlFor: g,
|
|
688
|
+
className: N(
|
|
689
|
+
we,
|
|
690
|
+
Te[b],
|
|
691
|
+
f
|
|
692
|
+
),
|
|
693
|
+
children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center", children: [
|
|
694
|
+
/* @__PURE__ */ l.jsx(
|
|
695
|
+
"input",
|
|
696
|
+
{
|
|
697
|
+
id: g,
|
|
698
|
+
className: m,
|
|
699
|
+
type: "radio",
|
|
700
|
+
"aria-describedby": c.helperTextId,
|
|
701
|
+
"aria-errormessage": c.errorMessageId,
|
|
702
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
703
|
+
"aria-required": c.isRequired ?? !1,
|
|
704
|
+
...o
|
|
705
|
+
}
|
|
706
|
+
),
|
|
707
|
+
/* @__PURE__ */ l.jsx(
|
|
708
|
+
"span",
|
|
709
|
+
{
|
|
710
|
+
"aria-hidden": !0,
|
|
711
|
+
className: N(p, y[b], Ce[b])
|
|
712
|
+
}
|
|
713
|
+
),
|
|
714
|
+
/* @__PURE__ */ l.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: i })
|
|
715
|
+
] })
|
|
716
|
+
}
|
|
717
|
+
);
|
|
718
|
+
};
|
|
719
|
+
_e.displayName = "Radio";
|
|
720
|
+
const We = (s) => {
|
|
721
|
+
const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useContext(_);
|
|
722
|
+
return n.isRequired && (o.required = !0), /* @__PURE__ */ l.jsxs("div", { className: "inline-block relative", children: [
|
|
723
|
+
/* @__PURE__ */ l.jsx(
|
|
724
|
+
"select",
|
|
721
725
|
{
|
|
722
|
-
|
|
723
|
-
className:
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
726
|
+
id: d || n.id,
|
|
727
|
+
className: N(
|
|
728
|
+
`
|
|
729
|
+
!pr-8
|
|
730
|
+
peer
|
|
731
|
+
cursor-pointer
|
|
732
|
+
appearance-none
|
|
733
|
+
`,
|
|
734
|
+
Re,
|
|
735
|
+
je[b],
|
|
736
|
+
f
|
|
727
737
|
),
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
peer
|
|
735
|
-
sr-only
|
|
736
|
-
`,
|
|
737
|
-
type: "checkbox",
|
|
738
|
-
"aria-describedby": a.helperTextId,
|
|
739
|
-
"aria-errormessage": a.errorMessageId,
|
|
740
|
-
"aria-invalid": a.isInvalid ?? !1,
|
|
741
|
-
"aria-required": a.isRequired ?? !1,
|
|
742
|
-
...i,
|
|
743
|
-
ref: g
|
|
744
|
-
}
|
|
745
|
-
),
|
|
746
|
-
/* @__PURE__ */ s.jsx("span", { className: C(`
|
|
747
|
-
bg-clip-content
|
|
748
|
-
rounded
|
|
749
|
-
border
|
|
750
|
-
border-solid
|
|
751
|
-
border-sumi-900
|
|
752
|
-
fill-transparent
|
|
753
|
-
peer-checked:fill-white
|
|
754
|
-
peer-checked:bg-sea-600
|
|
755
|
-
peer-checked:border-none
|
|
756
|
-
peer-disabled:border-sumi-500
|
|
757
|
-
peer-focus-visible:ring-2
|
|
758
|
-
peer-focus-visible:ring-offset-2
|
|
759
|
-
peer-focus-visible:ring-wood-500
|
|
760
|
-
`, qe[f]), children: /* @__PURE__ */ s.jsxs(
|
|
761
|
-
"svg",
|
|
762
|
-
{
|
|
763
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
764
|
-
"aria-hidden": !0,
|
|
765
|
-
width: "24",
|
|
766
|
-
height: "24",
|
|
767
|
-
viewBox: "0 0 24 24",
|
|
768
|
-
children: [
|
|
769
|
-
/* @__PURE__ */ s.jsx("title", { children: "check" }),
|
|
770
|
-
/* @__PURE__ */ s.jsx("g", { transform: `scale(${R[f]} ${R[f]})`, children: /* @__PURE__ */ s.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
|
|
771
|
-
]
|
|
772
|
-
}
|
|
773
|
-
) }),
|
|
774
|
-
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-sumi-500", children: u })
|
|
775
|
-
] })
|
|
738
|
+
"aria-describedby": n.helperTextId,
|
|
739
|
+
"aria-errormessage": n.errorMessageId,
|
|
740
|
+
"aria-invalid": n.isInvalid ?? !1,
|
|
741
|
+
"aria-required": n.isRequired ?? !1,
|
|
742
|
+
...o,
|
|
743
|
+
children: i
|
|
776
744
|
}
|
|
777
|
-
)
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
De.displayName = "Checkbox";
|
|
781
|
-
const Ae = y.forwardRef(
|
|
782
|
-
(v, g) => {
|
|
783
|
-
const { id: b, className: x, size: f = "lg", children: u, ...i } = v, o = b || y.useId(), a = y.useContext(O);
|
|
784
|
-
a.isRequired && (i.required = !0), a.groupName && (i.name = a.groupName);
|
|
785
|
-
const R = `
|
|
786
|
-
peer
|
|
787
|
-
sr-only
|
|
788
|
-
`, h = `
|
|
789
|
-
bg-clip-content
|
|
790
|
-
rounded-full
|
|
791
|
-
border
|
|
792
|
-
border-solid
|
|
793
|
-
border-sumi-900
|
|
794
|
-
peer-checked:bg-sea-600
|
|
795
|
-
peer-checked:border-sea-600
|
|
796
|
-
peer-disabled:border-sumi-500
|
|
797
|
-
peer-focus-visible:ring-2
|
|
798
|
-
peer-focus-visible:ring-offset-2
|
|
799
|
-
peer-focus-visible:ring-wood-500
|
|
800
|
-
`, d = {
|
|
801
|
-
lg: "p-1",
|
|
802
|
-
md: "p-[3px]",
|
|
803
|
-
sm: "p-[3px]"
|
|
804
|
-
};
|
|
805
|
-
return /* @__PURE__ */ s.jsx(
|
|
806
|
-
"label",
|
|
745
|
+
),
|
|
746
|
+
/* @__PURE__ */ l.jsxs(
|
|
747
|
+
"svg",
|
|
807
748
|
{
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}
|
|
828
|
-
),
|
|
829
|
-
/* @__PURE__ */ s.jsx(
|
|
830
|
-
"span",
|
|
749
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
750
|
+
"aria-hidden": !0,
|
|
751
|
+
className: `
|
|
752
|
+
pointer-events-none
|
|
753
|
+
absolute
|
|
754
|
+
right-4
|
|
755
|
+
top-1/2
|
|
756
|
+
-translate-y-1/2
|
|
757
|
+
text-solid-gray-900
|
|
758
|
+
peer-disabled:text-solid-gray-500
|
|
759
|
+
`,
|
|
760
|
+
fill: "none",
|
|
761
|
+
width: "16",
|
|
762
|
+
height: "16",
|
|
763
|
+
viewBox: "0 0 16 16",
|
|
764
|
+
children: [
|
|
765
|
+
/* @__PURE__ */ l.jsx("title", { children: "arrow down" }),
|
|
766
|
+
/* @__PURE__ */ l.jsx(
|
|
767
|
+
"path",
|
|
831
768
|
{
|
|
832
|
-
"
|
|
833
|
-
|
|
769
|
+
d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
|
|
770
|
+
fill: "currentColor"
|
|
834
771
|
}
|
|
835
|
-
)
|
|
836
|
-
|
|
837
|
-
] })
|
|
772
|
+
)
|
|
773
|
+
]
|
|
838
774
|
}
|
|
839
|
-
)
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
text-sumi-900
|
|
883
|
-
peer-disabled:text-sumi-500
|
|
884
|
-
`,
|
|
885
|
-
fill: "none",
|
|
886
|
-
width: "16",
|
|
887
|
-
height: "16",
|
|
888
|
-
viewBox: "0 0 16 16",
|
|
889
|
-
children: [
|
|
890
|
-
/* @__PURE__ */ s.jsx("title", { children: "arrow down" }),
|
|
891
|
-
/* @__PURE__ */ s.jsx(
|
|
892
|
-
"path",
|
|
893
|
-
{
|
|
894
|
-
d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
|
|
895
|
-
fill: "currentColor"
|
|
896
|
-
}
|
|
897
|
-
)
|
|
898
|
-
]
|
|
899
|
-
}
|
|
900
|
-
)
|
|
901
|
-
] });
|
|
902
|
-
}
|
|
903
|
-
), _r = y.forwardRef(
|
|
904
|
-
(v, g) => {
|
|
905
|
-
const { id: b, className: x, ...f } = v, u = y.useContext(O);
|
|
906
|
-
return u.isRequired && (f.required = !0), /* @__PURE__ */ s.jsx(
|
|
907
|
-
"input",
|
|
908
|
-
{
|
|
909
|
-
type: "file",
|
|
910
|
-
id: b || u.id,
|
|
911
|
-
className: C(`
|
|
912
|
-
file:mr-2
|
|
913
|
-
file:inline-block
|
|
914
|
-
file:text-button
|
|
915
|
-
file:text-center
|
|
916
|
-
file:cursor-pointer
|
|
917
|
-
file:select-none
|
|
918
|
-
file:touch-manipulation
|
|
919
|
-
file:whitespace-nowrap
|
|
920
|
-
file:border
|
|
921
|
-
file:border-solid
|
|
922
|
-
file:border-sea-800
|
|
923
|
-
file:active:border-sea-1200
|
|
924
|
-
file:hover:border-sea-900
|
|
925
|
-
file:disabled:border-sumi-500
|
|
926
|
-
file:disabled:cursor-not-allowed
|
|
927
|
-
`, `
|
|
928
|
-
file:text-sea-800
|
|
929
|
-
file:bg-transparent
|
|
930
|
-
file:active:bg-sea-200
|
|
931
|
-
file:hover:bg-sea-100
|
|
932
|
-
file:active:text-sea-1200
|
|
933
|
-
file:hover:text-sea-900
|
|
934
|
-
file:disabled:text-sumi-500
|
|
935
|
-
file:disabled:bg-transparent
|
|
936
|
-
`, `
|
|
775
|
+
)
|
|
776
|
+
] });
|
|
777
|
+
};
|
|
778
|
+
We.displayName = "Select";
|
|
779
|
+
const Be = (s) => {
|
|
780
|
+
const { id: d, className: f, size: b = "lg", ...i } = s, o = R.useContext(_);
|
|
781
|
+
o.isRequired && (i.required = !0);
|
|
782
|
+
const n = `
|
|
783
|
+
file:mr-2
|
|
784
|
+
file:inline-block
|
|
785
|
+
file:text-button
|
|
786
|
+
file:text-center
|
|
787
|
+
file:cursor-pointer
|
|
788
|
+
file:select-none
|
|
789
|
+
file:touch-manipulation
|
|
790
|
+
file:whitespace-nowrap
|
|
791
|
+
file:border
|
|
792
|
+
file:border-solid
|
|
793
|
+
file:border-blue-900
|
|
794
|
+
file:hover:border-blue-1000
|
|
795
|
+
file:active:border-blue-1200
|
|
796
|
+
file:disabled:border-solid-gray-500
|
|
797
|
+
file:disabled:cursor-not-allowed
|
|
798
|
+
`, g = `
|
|
799
|
+
file:text-blue-900
|
|
800
|
+
file:hover:text-blue-1000
|
|
801
|
+
file:active:text-blue-1200
|
|
802
|
+
file:bg-transparent
|
|
803
|
+
file:hover:bg-blue-200
|
|
804
|
+
file:active:bg-blue-300
|
|
805
|
+
file:disabled:text-solid-gray-500
|
|
806
|
+
file:disabled:bg-transparent
|
|
807
|
+
`, c = `
|
|
808
|
+
text-label
|
|
809
|
+
text-solid-gray-900
|
|
810
|
+
rounded-lg
|
|
811
|
+
outline-offset-2
|
|
812
|
+
aria-invalid:text-red-800
|
|
813
|
+
${k.hoverUnderline}
|
|
814
|
+
${k.focusRounded}
|
|
815
|
+
`, m = {
|
|
816
|
+
// 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
|
|
817
|
+
lg: `
|
|
937
818
|
file:p-4
|
|
938
819
|
file:text-button
|
|
939
820
|
file:rounded-lg
|
|
940
821
|
file:leading-snug
|
|
941
|
-
`,
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
"
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
822
|
+
`,
|
|
823
|
+
// 12(py-3) * 2 + 22(text-button * leading-snug) + boader * 2 = 48px
|
|
824
|
+
md: `
|
|
825
|
+
file:px-4
|
|
826
|
+
file:py-3
|
|
827
|
+
file:text-button
|
|
828
|
+
file:rounded-lg
|
|
829
|
+
file:leading-snug
|
|
830
|
+
`,
|
|
831
|
+
// 8(py-2) * 2 + 22(text-button * leading-snug) + boader * 2 = 40px
|
|
832
|
+
sm: `
|
|
833
|
+
file:px-3
|
|
834
|
+
file:py-2
|
|
835
|
+
file:text-button
|
|
836
|
+
file:rounded-md
|
|
837
|
+
file:leading-snug
|
|
838
|
+
`
|
|
839
|
+
};
|
|
840
|
+
return /* @__PURE__ */ l.jsx(
|
|
841
|
+
"input",
|
|
842
|
+
{
|
|
843
|
+
type: "file",
|
|
844
|
+
id: d || o.id,
|
|
845
|
+
className: N(n, g, m[b], c, f),
|
|
846
|
+
"aria-describedby": o.helperTextId,
|
|
847
|
+
"aria-errormessage": o.errorMessageId,
|
|
848
|
+
"aria-invalid": o.isInvalid ?? !1,
|
|
849
|
+
"aria-required": o.isRequired ?? !1,
|
|
850
|
+
role: "button",
|
|
851
|
+
"aria-label": "File Upload",
|
|
852
|
+
...i
|
|
853
|
+
}
|
|
854
|
+
);
|
|
855
|
+
};
|
|
856
|
+
Be.displayName = "FileInput";
|
|
857
|
+
const Ue = (s) => {
|
|
858
|
+
const { id: d, className: f, size: b = "lg", ...i } = s, o = R.useContext(_);
|
|
859
|
+
return o.isRequired && (i.required = !0), /* @__PURE__ */ l.jsx(
|
|
860
|
+
"input",
|
|
861
|
+
{
|
|
862
|
+
type: "text",
|
|
863
|
+
id: d || o.id,
|
|
864
|
+
className: N(
|
|
865
|
+
Re,
|
|
866
|
+
je[b],
|
|
867
|
+
f
|
|
868
|
+
),
|
|
869
|
+
"aria-describedby": o.helperTextId,
|
|
870
|
+
"aria-errormessage": o.errorMessageId,
|
|
871
|
+
"aria-invalid": o.isInvalid ?? !1,
|
|
872
|
+
"aria-required": o.isRequired ?? !1,
|
|
873
|
+
...i
|
|
874
|
+
}
|
|
875
|
+
);
|
|
876
|
+
};
|
|
877
|
+
Ue.displayName = "Input";
|
|
878
|
+
const Fe = (s) => {
|
|
879
|
+
const { id: d, className: f, children: b, onChange: i, maxLength: o, ...n } = s, [g, c] = R.useState(0), m = (j) => {
|
|
880
|
+
i && i(j), c(j.target.value.length);
|
|
881
|
+
}, p = R.useContext(_);
|
|
882
|
+
p.isRequired && (n.required = !0);
|
|
883
|
+
const y = g > (o || 0) ? "text-red-800" : "text-solid-gray-700", E = `
|
|
999
884
|
p-4
|
|
1000
885
|
text-label
|
|
1001
886
|
rounded-lg
|
|
1002
887
|
border
|
|
1003
888
|
border-solid
|
|
1004
|
-
border-
|
|
1005
|
-
outline-offset-2
|
|
1006
|
-
focus:outline
|
|
1007
|
-
focus:outline-2
|
|
1008
|
-
focus:outline-wood-500
|
|
889
|
+
border-solid-gray-900
|
|
1009
890
|
disabled:bg-transparent
|
|
1010
|
-
disabled:text-
|
|
1011
|
-
disabled:border-
|
|
1012
|
-
aria-invalid:border-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
onChange: h,
|
|
1019
|
-
...o,
|
|
1020
|
-
ref: g,
|
|
1021
|
-
children: f
|
|
1022
|
-
}
|
|
1023
|
-
),
|
|
1024
|
-
i ? /* @__PURE__ */ s.jsxs("p", { className: "text-label text-sumi-700", children: [
|
|
1025
|
-
/* @__PURE__ */ s.jsx("span", { className: j, children: a }),
|
|
1026
|
-
"/",
|
|
1027
|
-
/* @__PURE__ */ s.jsx("span", { children: i })
|
|
1028
|
-
] }) : ""
|
|
1029
|
-
] });
|
|
1030
|
-
}
|
|
1031
|
-
);
|
|
1032
|
-
wr.displayName = "Textarea";
|
|
1033
|
-
const Tr = y.forwardRef((v, g) => {
|
|
1034
|
-
const b = y.useId(), {
|
|
1035
|
-
labelText: x,
|
|
1036
|
-
className: f,
|
|
1037
|
-
helperText: u,
|
|
1038
|
-
errorMessage: i,
|
|
1039
|
-
isInvalid: o,
|
|
1040
|
-
isRequired: a,
|
|
1041
|
-
children: R,
|
|
1042
|
-
...h
|
|
1043
|
-
} = v, d = {
|
|
1044
|
-
id: v.htmlFor ?? `input-${b}`,
|
|
1045
|
-
helperTextId: `helper-text-${b}`,
|
|
1046
|
-
errorMessageId: `error-message-${b}`,
|
|
1047
|
-
isInvalid: o ?? !1,
|
|
1048
|
-
isRequired: a ?? !1
|
|
1049
|
-
};
|
|
1050
|
-
return /* @__PURE__ */ s.jsx(O.Provider, { value: d, children: /* @__PURE__ */ s.jsxs("div", { className: C("mb-4", f), children: [
|
|
1051
|
-
/* @__PURE__ */ s.jsxs(
|
|
1052
|
-
"label",
|
|
891
|
+
disabled:text-solid-gray-500
|
|
892
|
+
disabled:border-solid-gray-500
|
|
893
|
+
aria-invalid:border-red-800
|
|
894
|
+
${k.focusRect}
|
|
895
|
+
`;
|
|
896
|
+
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
897
|
+
/* @__PURE__ */ l.jsx(
|
|
898
|
+
"textarea",
|
|
1053
899
|
{
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
900
|
+
id: d || p.id,
|
|
901
|
+
className: N(E, f),
|
|
902
|
+
"aria-describedby": p.helperTextId,
|
|
903
|
+
"aria-errormessage": p.errorMessageId,
|
|
904
|
+
"aria-invalid": p.isInvalid ?? !1,
|
|
905
|
+
"aria-required": p.isRequired ?? !1,
|
|
906
|
+
onChange: m,
|
|
907
|
+
...n,
|
|
908
|
+
children: b
|
|
1062
909
|
}
|
|
1063
910
|
),
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
} = v, w = {
|
|
1093
|
-
groupName: d.name ?? `group-${b}`,
|
|
1094
|
-
helperTextId: `helper-text-${b}`,
|
|
1095
|
-
errorMessageId: `error-message-${b}`,
|
|
1096
|
-
isInvalid: o ?? !1,
|
|
1097
|
-
isRequired: a ?? !1
|
|
1098
|
-
}, k = R ?? "flex-col";
|
|
1099
|
-
return /* @__PURE__ */ s.jsx(O.Provider, { value: w, children: /* @__PURE__ */ s.jsxs("fieldset", { className: C("mb-4", f), ref: g, ...d, children: [
|
|
1100
|
-
/* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs(
|
|
1101
|
-
"p",
|
|
911
|
+
o ? /* @__PURE__ */ l.jsxs("p", { className: "text-label text-solid-gray-700", children: [
|
|
912
|
+
/* @__PURE__ */ l.jsx("span", { className: y, children: g }),
|
|
913
|
+
"/",
|
|
914
|
+
/* @__PURE__ */ l.jsx("span", { children: o })
|
|
915
|
+
] }) : ""
|
|
916
|
+
] });
|
|
917
|
+
};
|
|
918
|
+
Fe.displayName = "Textarea";
|
|
919
|
+
const Ge = (s) => {
|
|
920
|
+
const d = R.useId(), {
|
|
921
|
+
labelText: f,
|
|
922
|
+
className: b,
|
|
923
|
+
helperText: i,
|
|
924
|
+
errorMessage: o,
|
|
925
|
+
isInvalid: n,
|
|
926
|
+
isRequired: g,
|
|
927
|
+
children: c,
|
|
928
|
+
...m
|
|
929
|
+
} = s, p = {
|
|
930
|
+
id: s.htmlFor ?? `input-${d}`,
|
|
931
|
+
helperTextId: `helper-text-${d}`,
|
|
932
|
+
errorMessageId: `error-message-${d}`,
|
|
933
|
+
isInvalid: n ?? !1,
|
|
934
|
+
isRequired: g ?? !1
|
|
935
|
+
};
|
|
936
|
+
return /* @__PURE__ */ l.jsx(_.Provider, { value: p, children: /* @__PURE__ */ l.jsxs("div", { className: N("flex flex-col items-start gap-2", b), children: [
|
|
937
|
+
/* @__PURE__ */ l.jsxs(
|
|
938
|
+
"label",
|
|
1102
939
|
{
|
|
1103
|
-
className:
|
|
940
|
+
className: N("block text-label", n && "text-red-800"),
|
|
941
|
+
htmlFor: p.id,
|
|
942
|
+
...m,
|
|
1104
943
|
children: [
|
|
1105
|
-
|
|
1106
|
-
|
|
944
|
+
f,
|
|
945
|
+
g && /* @__PURE__ */ l.jsx("span", { className: "text-label text-red-800", children: " *" })
|
|
1107
946
|
]
|
|
1108
947
|
}
|
|
1109
|
-
)
|
|
1110
|
-
/* @__PURE__ */
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
"text-label text-sun-800",
|
|
1118
|
-
u ? "mt-1" : "mt-2"
|
|
1119
|
-
),
|
|
1120
|
-
children: i
|
|
1121
|
-
}
|
|
1122
|
-
)
|
|
948
|
+
),
|
|
949
|
+
i && /* @__PURE__ */ l.jsx("p", { id: p.helperTextId, className: `
|
|
950
|
+
text-label text-solid-gray-700
|
|
951
|
+
`, children: i }),
|
|
952
|
+
c,
|
|
953
|
+
n && /* @__PURE__ */ l.jsx("p", { id: p.errorMessageId, className: `
|
|
954
|
+
text-label text-red-800
|
|
955
|
+
`, children: o })
|
|
1123
956
|
] }) });
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
const
|
|
1127
|
-
const {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
className: f,
|
|
1131
|
-
labelText: u,
|
|
957
|
+
};
|
|
958
|
+
Ge.displayName = "LabelControl";
|
|
959
|
+
const K = (s) => {
|
|
960
|
+
const d = R.useId(), {
|
|
961
|
+
labelText: f,
|
|
962
|
+
className: b,
|
|
1132
963
|
helperText: i,
|
|
1133
964
|
errorMessage: o,
|
|
1134
|
-
isInvalid:
|
|
1135
|
-
isRequired:
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
965
|
+
isInvalid: n,
|
|
966
|
+
isRequired: g,
|
|
967
|
+
direction: c,
|
|
968
|
+
children: m,
|
|
969
|
+
...p
|
|
970
|
+
} = s, E = {
|
|
971
|
+
groupName: p.name ?? `group-${d}`,
|
|
972
|
+
helperTextId: `helper-text-${d}`,
|
|
973
|
+
errorMessageId: `error-message-${d}`,
|
|
974
|
+
isInvalid: n ?? !1,
|
|
975
|
+
isRequired: g ?? !1
|
|
976
|
+
}, j = c ?? "flex-col";
|
|
977
|
+
return /* @__PURE__ */ l.jsx(_.Provider, { value: E, children: /* @__PURE__ */ l.jsxs(
|
|
978
|
+
"fieldset",
|
|
1141
979
|
{
|
|
1142
|
-
className:
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
980
|
+
className: N("flex flex-col items-start gap-2", b),
|
|
981
|
+
...p,
|
|
982
|
+
children: [
|
|
983
|
+
/* @__PURE__ */ l.jsx("legend", { children: /* @__PURE__ */ l.jsxs("p", { className: N("block text-label", n && "text-red-800"), children: [
|
|
984
|
+
f,
|
|
985
|
+
g && /* @__PURE__ */ l.jsx("span", { className: "text-red-800", children: " *" })
|
|
986
|
+
] }) }),
|
|
987
|
+
/* @__PURE__ */ l.jsx("div", { className: N("inline-flex", j), children: m }),
|
|
988
|
+
i && /* @__PURE__ */ l.jsx("p", { id: E.helperTextId, className: "text-sup text-solid-gray-700", children: i }),
|
|
989
|
+
n && /* @__PURE__ */ l.jsx("p", { id: E.errorMessageId, className: "text-label text-red-800", children: o })
|
|
990
|
+
]
|
|
991
|
+
}
|
|
992
|
+
) });
|
|
993
|
+
};
|
|
994
|
+
K.displayName = "FieldsetControl";
|
|
995
|
+
const He = (s) => {
|
|
996
|
+
const {
|
|
997
|
+
items: d,
|
|
998
|
+
onChange: f,
|
|
999
|
+
className: b,
|
|
1000
|
+
labelText: i,
|
|
1001
|
+
helperText: o,
|
|
1002
|
+
errorMessage: n,
|
|
1003
|
+
isInvalid: g,
|
|
1004
|
+
isRequired: c,
|
|
1005
|
+
size: m,
|
|
1006
|
+
...p
|
|
1007
|
+
} = s;
|
|
1008
|
+
return /* @__PURE__ */ l.jsx(
|
|
1009
|
+
K,
|
|
1010
|
+
{
|
|
1011
|
+
className: b,
|
|
1012
|
+
labelText: i,
|
|
1013
|
+
helperText: o,
|
|
1014
|
+
errorMessage: n,
|
|
1015
|
+
isInvalid: g,
|
|
1016
|
+
isRequired: c,
|
|
1017
|
+
...p,
|
|
1018
|
+
children: d.map(({ label: y, value: E }) => /* @__PURE__ */ l.jsx(
|
|
1019
|
+
ke,
|
|
1152
1020
|
{
|
|
1153
|
-
size:
|
|
1154
|
-
value:
|
|
1155
|
-
onChange:
|
|
1156
|
-
children:
|
|
1021
|
+
size: m,
|
|
1022
|
+
value: E,
|
|
1023
|
+
onChange: f,
|
|
1024
|
+
children: y
|
|
1157
1025
|
},
|
|
1158
|
-
`${
|
|
1026
|
+
`${y}-${E}`
|
|
1159
1027
|
))
|
|
1160
1028
|
}
|
|
1161
1029
|
);
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1030
|
+
};
|
|
1031
|
+
He.displayName = "CheckboxGroup";
|
|
1032
|
+
const Je = (s) => {
|
|
1165
1033
|
const {
|
|
1166
|
-
items:
|
|
1167
|
-
onChange:
|
|
1168
|
-
className:
|
|
1169
|
-
labelText:
|
|
1170
|
-
helperText:
|
|
1171
|
-
errorMessage:
|
|
1172
|
-
isInvalid:
|
|
1173
|
-
isRequired:
|
|
1174
|
-
defaultValue:
|
|
1175
|
-
size:
|
|
1176
|
-
...
|
|
1177
|
-
} =
|
|
1178
|
-
return /* @__PURE__ */
|
|
1179
|
-
|
|
1034
|
+
items: d,
|
|
1035
|
+
onChange: f,
|
|
1036
|
+
className: b,
|
|
1037
|
+
labelText: i,
|
|
1038
|
+
helperText: o,
|
|
1039
|
+
errorMessage: n,
|
|
1040
|
+
isInvalid: g,
|
|
1041
|
+
isRequired: c,
|
|
1042
|
+
defaultValue: m,
|
|
1043
|
+
size: p,
|
|
1044
|
+
...y
|
|
1045
|
+
} = s;
|
|
1046
|
+
return /* @__PURE__ */ l.jsx(
|
|
1047
|
+
K,
|
|
1180
1048
|
{
|
|
1181
|
-
className:
|
|
1182
|
-
labelText:
|
|
1183
|
-
helperText:
|
|
1184
|
-
errorMessage:
|
|
1185
|
-
isInvalid:
|
|
1186
|
-
isRequired:
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
Ae,
|
|
1049
|
+
className: b,
|
|
1050
|
+
labelText: i,
|
|
1051
|
+
helperText: o,
|
|
1052
|
+
errorMessage: n,
|
|
1053
|
+
isInvalid: g,
|
|
1054
|
+
isRequired: c,
|
|
1055
|
+
...y,
|
|
1056
|
+
children: d.map(({ label: E, value: j }) => /* @__PURE__ */ l.jsx(
|
|
1057
|
+
_e,
|
|
1191
1058
|
{
|
|
1192
|
-
size:
|
|
1193
|
-
value:
|
|
1194
|
-
onChange:
|
|
1195
|
-
defaultChecked:
|
|
1196
|
-
children:
|
|
1059
|
+
size: p,
|
|
1060
|
+
value: j,
|
|
1061
|
+
onChange: f,
|
|
1062
|
+
defaultChecked: m === j,
|
|
1063
|
+
children: E
|
|
1197
1064
|
},
|
|
1198
|
-
`${
|
|
1065
|
+
`${E}-${j}`
|
|
1199
1066
|
))
|
|
1200
1067
|
}
|
|
1201
1068
|
);
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1069
|
+
};
|
|
1070
|
+
Je.displayName = "RadioGroup";
|
|
1204
1071
|
export {
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1072
|
+
ke as Checkbox,
|
|
1073
|
+
He as CheckboxGroup,
|
|
1074
|
+
K as FieldsetControl,
|
|
1075
|
+
Be as FileInput,
|
|
1076
|
+
Ue as Input,
|
|
1077
|
+
Ge as LabelControl,
|
|
1078
|
+
_e as Radio,
|
|
1079
|
+
Je as RadioGroup,
|
|
1080
|
+
We as Select,
|
|
1081
|
+
Fe as Textarea
|
|
1215
1082
|
};
|