@sakura-ui/forms 0.2.2 → 0.4.0-beta.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/dist/index.cjs.js +142 -188
- package/dist/index.es.js +713 -2564
- package/dist/types/components/Checkbox.d.ts +6 -3
- package/dist/types/components/Checkbox.d.ts.map +1 -1
- package/dist/types/components/FieldsetControl.d.ts +6 -3
- package/dist/types/components/FieldsetControl.d.ts.map +1 -1
- package/dist/types/components/FileInput.d.ts +7 -4
- package/dist/types/components/FileInput.d.ts.map +1 -1
- package/dist/types/components/Input.d.ts +6 -3
- package/dist/types/components/Input.d.ts.map +1 -1
- package/dist/types/components/LabelControl.d.ts +6 -3
- package/dist/types/components/LabelControl.d.ts.map +1 -1
- package/dist/types/components/Radio.d.ts +6 -3
- package/dist/types/components/Radio.d.ts.map +1 -1
- package/dist/types/components/Select.d.ts +6 -3
- package/dist/types/components/Select.d.ts.map +1 -1
- package/dist/types/components/Textarea.d.ts +6 -3
- package/dist/types/components/Textarea.d.ts.map +1 -1
- package/dist/types/components/controlled/CheckboxGroup.d.ts +6 -3
- package/dist/types/components/controlled/CheckboxGroup.d.ts.map +1 -1
- package/dist/types/components/controlled/RadioGroup.d.ts +6 -3
- package/dist/types/components/controlled/RadioGroup.d.ts.map +1 -1
- package/dist/types/components/inputStyle.d.ts +1 -1
- package/dist/types/components/inputStyle.d.ts.map +1 -1
- package/package.json +11 -7
package/dist/index.cjs.js
CHANGED
|
@@ -1,83 +1,75 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react");var _={exports:{}},k={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var G;function ye(){if(G)return k;G=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(n,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var u in o)u!=="key"&&(s[u]=o[u])}else s=o;return o=s.ref,{$$typeof:r,type:n,key:a,ref:o!==void 0?o:null,props:s}}return k.Fragment=i,k.jsx=c,k.jsxs=c,k}var w={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+q+t}}var F=!1,Z;{var Sr=typeof WeakMap=="function"?WeakMap:Map;Z=new Sr}function tr(t,i){if(!t||F)return"";{var u=Z.get(t);if(u!==void 0)return u}var m;F=!0;var N=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=U.current,U.current=null,O();try{if(i){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(ae){m=ae}Reflect.construct(t,[],j)}else{try{j.call()}catch(ae){m=ae}t.call(j.prototype)}}else{try{throw Error()}catch(ae){m=ae}t()}}catch(ae){if(ae&&m&&typeof ae.stack=="string"){for(var R=ae.stack.split(`
|
|
19
|
-
`),te=m.stack.split(`
|
|
20
|
-
`),H=R.length-1,K=te.length-1;H>=1&&K>=0&&R[H]!==te[K];)K--;for(;H>=1&&K>=0;H--,K--)if(R[H]!==te[K]){if(H!==1||K!==1)do if(H--,K--,K<0||R[H]!==te[K]){var ue=`
|
|
21
|
-
`+R[H].replace(" at new "," at ");return t.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",t.displayName)),typeof t=="function"&&Z.set(t,ue),ue}while(H>=1&&K>=0);break}}}finally{F=!1,U.current=A,$(),Error.prepareStackTrace=N}var Ce=t?t.displayName||t.name:"",_e=Ce?M(Ce):"";return typeof t=="function"&&Z.set(t,_e),_e}function Ve(t,i,u){return tr(t,!1)}function Cr(t){var i=t.prototype;return!!(i&&i.isReactComponent)}function Ue(t,i,u){if(t==null)return"";if(typeof t=="function")return tr(t,Cr(t));if(typeof t=="string")return M(t);switch(t){case D:return M("Suspense");case E:return M("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case p:return Ve(t.render);case x:return Ue(t.type,i,u);case J:{var m=t,N=m._payload,A=m._init;try{return Ue(A(N),i,u)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,$e={},nr=fe.ReactDebugCurrentFrame;function Ne(t){if(t){var i=t._owner,u=Ue(t.type,t._source,i?i.type:null);nr.setExtraStackFrame(u)}else nr.setExtraStackFrame(null)}function me(t,i,u,m,N){{var A=Function.call.bind(Re);for(var j in t)if(A(t,j)){var R=void 0;try{if(typeof t[j]!="function"){var te=Error((m||"React class")+": "+u+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}R=t[j](i,j,m,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(H){R=H}R&&!(R instanceof Error)&&(Ne(N),Y("%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).",m||"React class",u,j,typeof R),Ne(null)),R instanceof Error&&!(R.message in $e)&&($e[R.message]=!0,Ne(N),Y("Failed %s type: %s",u,R.message),Ne(null))}}}var De=Array.isArray;function We(t){return De(t)}function or(t){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&t[Symbol.toStringTag]||t.constructor.name||"Object";return u}}function ar(t){try{return ze(t),!1}catch{return!0}}function ze(t){return""+t}function Je(t){if(ar(t))return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",or(t)),ze(t)}var we=fe.ReactCurrentOwner,jr={key:!0,ref:!0,__self:!0,__source:!0},ir,sr,Fe;Fe={};function kr(t){if(Re.call(t,"ref")){var i=Object.getOwnPropertyDescriptor(t,"ref").get;if(i&&i.isReactWarning)return!1}return t.ref!==void 0}function Or(t){if(Re.call(t,"key")){var i=Object.getOwnPropertyDescriptor(t,"key").get;if(i&&i.isReactWarning)return!1}return t.key!==void 0}function Pr(t,i){if(typeof t.ref=="string"&&we.current&&i&&we.current.stateNode!==i){var u=oe(we.current.type);Fe[u]||(Y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',oe(we.current.type),t.ref),Fe[u]=!0)}}function Ee(t,i){{var u=function(){ir||(ir=!0,Y("%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)",i))};u.isReactWarning=!0,Object.defineProperty(t,"key",{get:u,configurable:!0})}}function ur(t,i){{var u=function(){sr||(sr=!0,Y("%s: `ref` 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)",i))};u.isReactWarning=!0,Object.defineProperty(t,"ref",{get:u,configurable:!0})}}var Tr=function(t,i,u,m,N,A,j){var R={$$typeof:c,type:t,key:i,ref:u,props:j,_owner:A};return R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(R,"_self",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.defineProperty(R,"_source",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R};function Ir(t,i,u,m,N){{var A,j={},R=null,te=null;u!==void 0&&(Je(u),R=""+u),Or(i)&&(Je(i.key),R=""+i.key),kr(i)&&(te=i.ref,Pr(i,N));for(A in i)Re.call(i,A)&&!jr.hasOwnProperty(A)&&(j[A]=i[A]);if(t&&t.defaultProps){var H=t.defaultProps;for(A in H)j[A]===void 0&&(j[A]=H[A])}if(R||te){var K=typeof t=="function"?t.displayName||t.name||"Unknown":t;R&&Ee(j,K),te&&ur(j,K)}return Tr(t,R,te,N,m,we.current,j)}}var Be=fe.ReactCurrentOwner,lr=fe.ReactDebugCurrentFrame;function ge(t){if(t){var i=t._owner,u=Ue(t.type,t._source,i?i.type:null);lr.setExtraStackFrame(u)}else lr.setExtraStackFrame(null)}var Ae;Ae=!1;function Se(t){return typeof t=="object"&&t!==null&&t.$$typeof===c}function Me(){{if(Be.current){var t=oe(Be.current.type);if(t)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+t+"`."}return""}}function $r(t){return""}var cr={};function Nr(t){{var i=Me();if(!i){var u=typeof t=="string"?t:t.displayName||t.name;u&&(i=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+u+">.")}return i}}function fr(t,i){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var u=Nr(i);if(cr[u])return;cr[u]=!0;var m="";t&&t._owner&&t._owner!==Be.current&&(m=" It was passed a child from "+oe(t._owner.type)+"."),ge(t),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,m),ge(null)}}function dr(t,i){{if(typeof t!="object")return;if(We(t))for(var u=0;u<t.length;u++){var m=t[u];Se(m)&&fr(m,i)}else if(Se(t))t._store&&(t._store.validated=!0);else if(t){var N=ce(t);if(typeof N=="function"&&N!==t.entries)for(var A=N.call(t),j;!(j=A.next()).done;)Se(j.value)&&fr(j.value,i)}}}function Le(t){{var i=t.type;if(i==null||typeof i=="string")return;var u;if(typeof i=="function")u=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===p||i.$$typeof===x))u=i.propTypes;else return;if(u){var m=oe(i);me(u,t.props,"prop",m,t)}else if(i.PropTypes!==void 0&&!Ae){Ae=!0;var N=oe(i);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ke(t){{for(var i=Object.keys(t.props),u=0;u<i.length;u++){var m=i[u];if(m!=="children"&&m!=="key"){ge(t),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",m),ge(null);break}}t.ref!==null&&(ge(t),Y("Invalid attribute `ref` supplied to `React.Fragment`."),ge(null))}}var Xe={};function pr(t,i,u,m,N,A){{var j=Pe(t);if(!j){var R="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var te=$r();te?R+=te:R+=Me();var H;t===null?H="null":We(t)?H="array":t!==void 0&&t.$$typeof===c?(H="<"+(oe(t.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):H=typeof t,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",H,R)}var K=Ir(t,i,u,N,A);if(K==null)return K;if(j){var ue=i.children;if(ue!==void 0)if(m)if(We(ue)){for(var Ce=0;Ce<ue.length;Ce++)dr(ue[Ce],t);Object.freeze&&Object.freeze(ue)}else Y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else dr(ue,t)}if(Re.call(i,"key")){var _e=oe(t),ae=Object.keys(i).filter(function(Lr){return Lr!=="key"}),Ze=ae.length>0?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}";if(!Xe[_e+Ze]){var Mr=ae.length>0?"{"+ae.join(": ..., ")+": ...}":"{}";Y(`A props object containing a "key" prop is being spread into JSX:
|
|
17
|
+
*/var J;function Re(){return J||(J=1,process.env.NODE_ENV!=="production"&&function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case P:return"Fragment";case de:return"Profiler";case ne:return"StrictMode";case be:return"Suspense";case pe:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ie:return"Portal";case ue:return(e.displayName||"Context")+".Provider";case ce:return(e._context.displayName||"Context")+".Consumer";case fe:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xe:return l=e.displayName||null,l!==null?l:r(e.type)||"Memo";case Y:l=e._payload,e=e._init;try{return r(e(l))}catch{}}return null}function i(e){return""+e}function c(e){try{i(e);var l=!1}catch{l=!0}if(l){l=console;var b=l.error,m=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return b.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",m),i(e)}}function n(e){if(e===P)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===Y)return"<...>";try{var l=r(e);return l?"<"+l+">":"<...>"}catch{return"<...>"}}function o(){var e=S.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function a(e){if(z.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function u(e,l){function b(){L||(L=!0,console.error("%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)",l))}b.isReactWarning=!0,Object.defineProperty(e,"key",{get:b,configurable:!0})}function d(){var e=r(this.type);return D[e]||(D[e]=!0,console.error("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.")),e=this.props.ref,e!==void 0?e:null}function p(e,l,b,m,T,N,A,$){return b=N.ref,e={$$typeof:R,type:e,key:l,props:N,_owner:T},(b!==void 0?b:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:d}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,l,b,m,T,N,A,$){var g=l.children;if(g!==void 0)if(m)if(he(g)){for(m=0;m<g.length;m++)h(g[m]);Object.freeze&&Object.freeze(g)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(g);if(z.call(l,"key")){g=r(e);var I=Object.keys(l).filter(function(ve){return ve!=="key"});m=0<I.length?"{key: someKey, "+I.join(": ..., ")+": ...}":"{key: someKey}",U[g+m]||(I=0<I.length?"{"+I.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
26
18
|
let props = %s;
|
|
27
19
|
<%s {...props} />
|
|
28
20
|
React keys must be passed directly to JSX without using spread:
|
|
29
21
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,m,g,I,g),U[g+m]=!0)}if(g=null,b!==void 0&&(c(b),g=""+b),a(l)&&(c(l.key),g=""+l.key),"key"in l){b={};for(var q in l)q!=="key"&&(b[q]=l[q])}else b=l;return g&&u(b,typeof e=="function"?e.displayName||e.name||"Unknown":e),p(e,g,N,T,o(),b,A,$)}function h(e){typeof e=="object"&&e!==null&&e.$$typeof===R&&e._store&&(e._store.validated=1)}var x=y,R=Symbol.for("react.transitional.element"),ie=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),ce=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),S=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,he=Array.isArray,O=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(e){return e()}};var L,D={},W=x.react_stack_bottom_frame.bind(x,s)(),B=O(n(s)),U={};w.Fragment=P,w.jsx=function(e,l,b,m,T){var N=1e4>S.recentlyCreatedOwnerStacks++;return f(e,l,b,!1,m,T,N?Error("react-stack-top-frame"):W,N?O(n(e)):B)},w.jsxs=function(e,l,b,m,T){var N=1e4>S.recentlyCreatedOwnerStacks++;return f(e,l,b,!0,m,T,N?Error("react-stack-top-frame"):W,N?O(n(e)):B)}}()),w}var V;function Ne(){return V||(V=1,process.env.NODE_ENV==="production"?_.exports=ye():_.exports=Re()),_.exports}var t=Ne();const v=(...r)=>r.filter(Boolean).join(" ");var j;(r=>{r.clickable=`
|
|
31
23
|
px-2
|
|
32
24
|
min-h-[calc(44/16*1rem)]
|
|
33
25
|
border
|
|
34
26
|
border-transparent
|
|
35
27
|
rounded-lg
|
|
36
28
|
hover:bg-solid-grey-50
|
|
37
|
-
`,
|
|
29
|
+
`,r.selected=`
|
|
38
30
|
rounded-full
|
|
39
31
|
bg-yellow-50
|
|
40
|
-
`;const
|
|
32
|
+
`;const i=`
|
|
41
33
|
focus-visible:outline
|
|
42
34
|
focus-visible:outline-4
|
|
43
35
|
focus-visible:outline-black
|
|
44
36
|
focus-visible:ring-yellow-300
|
|
45
|
-
`;
|
|
46
|
-
${
|
|
37
|
+
`;r.focusRectCondensed=`
|
|
38
|
+
${i}
|
|
47
39
|
focus-visible:-outline-offset-4
|
|
48
40
|
focus-visible:ring-[calc(6/16*1rem)]
|
|
49
41
|
focus-visible:ring-inset
|
|
50
|
-
`,
|
|
51
|
-
${
|
|
42
|
+
`,r.focusRectCondensedWithBg=`
|
|
43
|
+
${r.focusRectCondensed}
|
|
52
44
|
focus-visible:bg-yellow-300
|
|
53
|
-
`,
|
|
54
|
-
${
|
|
45
|
+
`,r.focusRect=`
|
|
46
|
+
${i}
|
|
55
47
|
focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
56
48
|
focus-visible:ring-[calc(2/16*1rem)]
|
|
57
|
-
`,
|
|
58
|
-
${
|
|
49
|
+
`,r.focusRounded=`
|
|
50
|
+
${r.focusRect}
|
|
59
51
|
focus-visible:rounded
|
|
60
|
-
`,
|
|
61
|
-
${
|
|
52
|
+
`,r.focusCard=`
|
|
53
|
+
${r.focusRect}
|
|
62
54
|
focus-visible:rounded-2xl
|
|
63
55
|
sm:focus-visible:rounded-3xl
|
|
64
|
-
`,
|
|
65
|
-
${
|
|
56
|
+
`,r.focusRectWithBg=`
|
|
57
|
+
${r.focusRect}
|
|
66
58
|
focus-visible:bg-yellow-300
|
|
67
|
-
`,
|
|
68
|
-
${
|
|
59
|
+
`,r.focusRoundedWithBg=`
|
|
60
|
+
${r.focusRectWithBg}
|
|
69
61
|
focus-visible:rounded
|
|
70
|
-
`,
|
|
62
|
+
`,r.hoverUnderline=`
|
|
71
63
|
hover:underline
|
|
72
64
|
hover:underline-offset-[calc(3/16*1rem)]
|
|
73
|
-
`,
|
|
65
|
+
`,r.underline=`
|
|
74
66
|
underline
|
|
75
67
|
underline-offset-[calc(3/16*1rem)]
|
|
76
68
|
hover:decoration-[calc(3/16*1rem)]
|
|
77
|
-
`,
|
|
69
|
+
`,r.underlineNoDeco=`
|
|
78
70
|
underline
|
|
79
71
|
underline-offset-[calc(3/16*1rem)]
|
|
80
|
-
`,
|
|
72
|
+
`,r.popover=`
|
|
81
73
|
min-w-fit
|
|
82
74
|
w-auto
|
|
83
75
|
py-2
|
|
@@ -87,72 +79,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
87
79
|
border
|
|
88
80
|
border-solid-grey-420
|
|
89
81
|
has-[>:nth-child(7)]:rounded-r-none
|
|
90
|
-
`,
|
|
82
|
+
`,r.popoverPositionBottomRight=`
|
|
91
83
|
absolute
|
|
92
84
|
top-11
|
|
93
85
|
right-0
|
|
94
|
-
`,
|
|
86
|
+
`,r.popoverPositionBottomLeft=`
|
|
95
87
|
absolute
|
|
96
88
|
top-11
|
|
97
89
|
left-0
|
|
98
|
-
`,(
|
|
90
|
+
`,(c=>{c.focus=`
|
|
99
91
|
peer-focus-visible:outline
|
|
100
92
|
peer-focus-visible:outline-4
|
|
101
93
|
peer-focus-visible:outline-black
|
|
102
94
|
peer-focus-visible:ring-yellow-300
|
|
103
|
-
`,
|
|
104
|
-
${
|
|
95
|
+
`,c.focusRect=`
|
|
96
|
+
${c.focus}
|
|
105
97
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
106
98
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
107
|
-
`})(
|
|
108
|
-
* @license React
|
|
109
|
-
* react.production.min.js
|
|
110
|
-
*
|
|
111
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the MIT license found in the
|
|
114
|
-
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/var Et;function ln(){if(Et)return w;Et=1;var d=Symbol.for("react.element"),c=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),D=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),x=Symbol.iterator;function J(n){return n===null||typeof n!="object"?null:(n=x&&n[x]||n["@@iterator"],typeof n=="function"?n:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ee=Object.assign,qe={};function ce(n,s,S){this.props=n,this.context=s,this.refs=qe,this.updater=S||L}ce.prototype.isReactComponent={},ce.prototype.setState=function(n,s){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,s,"setState")},ce.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function fe(){}fe.prototype=ce.prototype;function Y(n,s,S){this.props=n,this.context=s,this.refs=qe,this.updater=S||L}var xe=Y.prototype=new fe;xe.constructor=Y,ee(xe,ce.prototype),xe.isPureReactComponent=!0;var de=Array.isArray,X=Object.prototype.hasOwnProperty,ie={current:null},ye={key:!0,ref:!0,__self:!0,__source:!0};function he(n,s,S){var O,$={},U=null,q=null;if(s!=null)for(O in s.ref!==void 0&&(q=s.ref),s.key!==void 0&&(U=""+s.key),s)X.call(s,O)&&!ye.hasOwnProperty(O)&&($[O]=s[O]);var M=arguments.length-2;if(M===1)$.children=S;else if(1<M){for(var F=Array(M),Z=0;Z<M;Z++)F[Z]=arguments[Z+2];$.children=F}if(n&&n.defaultProps)for(O in M=n.defaultProps,M)$[O]===void 0&&($[O]=M[O]);return{$$typeof:d,type:n,key:U,ref:q,props:$,_owner:ie.current}}function Oe(n,s){return{$$typeof:d,type:n.type,key:s,ref:n.ref,props:n.props,_owner:n._owner}}function Pe(n){return typeof n=="object"&&n!==null&&n.$$typeof===d}function Ge(n){var s={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(S){return s[S]})}var Te=/\/+/g;function oe(n,s){return typeof n=="object"&&n!==null&&n.key!=null?Ge(""+n.key):s.toString(36)}function se(n,s,S,O,$){var U=typeof n;(U==="undefined"||U==="boolean")&&(n=null);var q=!1;if(n===null)q=!0;else switch(U){case"string":case"number":q=!0;break;case"object":switch(n.$$typeof){case d:case c:q=!0}}if(q)return q=n,$=$(q),n=O===""?"."+oe(q,0):O,de($)?(S="",n!=null&&(S=n.replace(Te,"$&/")+"/"),se($,s,S,"",function(Z){return Z})):$!=null&&(Pe($)&&($=Oe($,S+(!$.key||q&&q.key===$.key?"":(""+$.key).replace(Te,"$&/")+"/")+n)),s.push($)),1;if(q=0,O=O===""?".":O+":",de(n))for(var M=0;M<n.length;M++){U=n[M];var F=O+oe(U,M);q+=se(U,s,S,F,$)}else if(F=J(n),typeof F=="function")for(n=F.call(n),M=0;!(U=n.next()).done;)U=U.value,F=O+oe(U,M++),q+=se(U,s,S,F,$);else if(U==="object")throw s=String(n),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.");return q}function re(n,s,S){if(n==null)return n;var O=[],$=0;return se(n,O,"","",function(U){return s.call(S,U,$++)}),O}function pe(n){if(n._status===-1){var s=n._result;s=s(),s.then(function(S){(n._status===0||n._status===-1)&&(n._status=1,n._result=S)},function(S){(n._status===0||n._status===-1)&&(n._status=2,n._result=S)}),n._status===-1&&(n._status=0,n._result=s)}if(n._status===1)return n._result.default;throw n._result}var y={current:null},ve={transition:null},Ie={ReactCurrentDispatcher:y,ReactCurrentBatchConfig:ve,ReactCurrentOwner:ie};function be(){throw Error("act(...) is not supported in production builds of React.")}return w.Children={map:re,forEach:function(n,s,S){re(n,function(){s.apply(this,arguments)},S)},count:function(n){var s=0;return re(n,function(){s++}),s},toArray:function(n){return re(n,function(s){return s})||[]},only:function(n){if(!Pe(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},w.Component=ce,w.Fragment=k,w.Profiler=P,w.PureComponent=Y,w.StrictMode=I,w.Suspense=p,w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ie,w.act=be,w.cloneElement=function(n,s,S){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var O=ee({},n.props),$=n.key,U=n.ref,q=n._owner;if(s!=null){if(s.ref!==void 0&&(U=s.ref,q=ie.current),s.key!==void 0&&($=""+s.key),n.type&&n.type.defaultProps)var M=n.type.defaultProps;for(F in s)X.call(s,F)&&!ye.hasOwnProperty(F)&&(O[F]=s[F]===void 0&&M!==void 0?M[F]:s[F])}var F=arguments.length-2;if(F===1)O.children=S;else if(1<F){M=Array(F);for(var Z=0;Z<F;Z++)M[Z]=arguments[Z+2];O.children=M}return{$$typeof:d,type:n.type,key:$,ref:U,props:O,_owner:q}},w.createContext=function(n){return n={$$typeof:v,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:C,_context:n},n.Consumer=n},w.createElement=he,w.createFactory=function(n){var s=he.bind(null,n);return s.type=n,s},w.createRef=function(){return{current:null}},w.forwardRef=function(n){return{$$typeof:g,render:n}},w.isValidElement=Pe,w.lazy=function(n){return{$$typeof:E,_payload:{_status:-1,_result:n},_init:pe}},w.memo=function(n,s){return{$$typeof:D,type:n,compare:s===void 0?null:s}},w.startTransition=function(n){var s=ve.transition;ve.transition={};try{n()}finally{ve.transition=s}},w.unstable_act=be,w.useCallback=function(n,s){return y.current.useCallback(n,s)},w.useContext=function(n){return y.current.useContext(n)},w.useDebugValue=function(){},w.useDeferredValue=function(n){return y.current.useDeferredValue(n)},w.useEffect=function(n,s){return y.current.useEffect(n,s)},w.useId=function(){return y.current.useId()},w.useImperativeHandle=function(n,s,S){return y.current.useImperativeHandle(n,s,S)},w.useInsertionEffect=function(n,s){return y.current.useInsertionEffect(n,s)},w.useLayoutEffect=function(n,s){return y.current.useLayoutEffect(n,s)},w.useMemo=function(n,s){return y.current.useMemo(n,s)},w.useReducer=function(n,s,S){return y.current.useReducer(n,s,S)},w.useRef=function(n){return y.current.useRef(n)},w.useState=function(n){return y.current.useState(n)},w.useSyncExternalStore=function(n,s,S){return y.current.useSyncExternalStore(n,s,S)},w.useTransition=function(){return y.current.useTransition()},w.version="18.3.1",w}var wr={exports:{}};/**
|
|
116
|
-
* @license React
|
|
117
|
-
* react.development.js
|
|
118
|
-
*
|
|
119
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the MIT license found in the
|
|
122
|
-
* LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/wr.exports;var St;function cn(){return St||(St=1,function(d,c){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var k="18.3.1",I=Symbol.for("react.element"),P=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),D=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),qe=Symbol.for("react.offscreen"),ce=Symbol.iterator,fe="@@iterator";function Y(e){if(e===null||typeof e!="object")return null;var r=ce&&e[ce]||e[fe];return typeof r=="function"?r:null}var xe={current:null},de={transition:null},X={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ie={current:null},ye={},he=null;function Oe(e){he=e}ye.setExtraStackFrame=function(e){he=e},ye.getCurrentStack=null,ye.getStackAddendum=function(){var e="";he&&(e+=he);var r=ye.getCurrentStack;return r&&(e+=r()||""),e};var Pe=!1,Ge=!1,Te=!1,oe=!1,se=!1,re={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:de,ReactCurrentOwner:ie};re.ReactDebugCurrentFrame=ye,re.ReactCurrentActQueue=X;function pe(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];ve("warn",e,o)}}function y(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];ve("error",e,o)}}function ve(e,r,o){{var a=re.ReactDebugCurrentFrame,l=a.getStackAddendum();l!==""&&(r+="%s",o=o.concat([l]));var h=o.map(function(f){return String(f)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var Ie={};function be(e,r){{var o=e.constructor,a=o&&(o.displayName||o.name)||"ReactClass",l=a+"."+r;if(Ie[l])return;y("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,a),Ie[l]=!0}}var n={isMounted:function(e){return!1},enqueueForceUpdate:function(e,r,o){be(e,"forceUpdate")},enqueueReplaceState:function(e,r,o,a){be(e,"replaceState")},enqueueSetState:function(e,r,o,a){be(e,"setState")}},s=Object.assign,S={};Object.freeze(S);function O(e,r,o){this.props=e,this.context=r,this.refs=S,this.updater=o||n}O.prototype.isReactComponent={},O.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};{var $={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},U=function(e,r){Object.defineProperty(O.prototype,e,{get:function(){pe("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})};for(var q in $)$.hasOwnProperty(q)&&U(q,$[q])}function M(){}M.prototype=O.prototype;function F(e,r,o){this.props=e,this.context=r,this.refs=S,this.updater=o||n}var Z=F.prototype=new M;Z.constructor=F,s(Z,O.prototype),Z.isPureReactComponent=!0;function Sr(){var e={current:null};return Object.seal(e),e}var tr=Array.isArray;function Ve(e){return tr(e)}function Cr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function Ue(e){try{return Re(e),!1}catch{return!0}}function Re(e){return""+e}function $e(e){if(Ue(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Cr(e)),Re(e)}function nr(e,r,o){var a=e.displayName;if(a)return a;var l=r.displayName||r.name||"";return l!==""?o+"("+l+")":o}function Ne(e){return e.displayName||"Context"}function me(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case P:return"Portal";case g:return"Profiler";case v:return"StrictMode";case x:return"Suspense";case J:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case D:var r=e;return Ne(r)+".Consumer";case p:var o=e;return Ne(o._context)+".Provider";case E:return nr(e,e.render,"ForwardRef");case L:var a=e.displayName||null;return a!==null?a:me(e.type)||"Memo";case ee:{var l=e,h=l._payload,f=l._init;try{return me(f(h))}catch{return null}}}return null}var De=Object.prototype.hasOwnProperty,We={key:!0,ref:!0,__self:!0,__source:!0},or,ar,ze;ze={};function Je(e){if(De.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function we(e){if(De.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function jr(e,r){var o=function(){or||(or=!0,y("%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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function ir(e,r){var o=function(){ar||(ar=!0,y("%s: `ref` 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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}function sr(e){if(typeof e.ref=="string"&&ie.current&&e.__self&&ie.current.stateNode!==e.__self){var r=me(ie.current.type);ze[r]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,e.ref),ze[r]=!0)}}var Fe=function(e,r,o,a,l,h,f){var _={$$typeof:I,type:e,key:r,ref:o,props:f,_owner:h};return _._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(_,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_};function kr(e,r,o){var a,l={},h=null,f=null,_=null,T=null;if(r!=null){Je(r)&&(f=r.ref,sr(r)),we(r)&&($e(r.key),h=""+r.key),_=r.__self===void 0?null:r.__self,T=r.__source===void 0?null:r.__source;for(a in r)De.call(r,a)&&!We.hasOwnProperty(a)&&(l[a]=r[a])}var V=arguments.length-2;if(V===1)l.children=o;else if(V>1){for(var W=Array(V),z=0;z<V;z++)W[z]=arguments[z+2];Object.freeze&&Object.freeze(W),l.children=W}if(e&&e.defaultProps){var G=e.defaultProps;for(a in G)l[a]===void 0&&(l[a]=G[a])}if(h||f){var Q=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&jr(l,Q),f&&ir(l,Q)}return Fe(e,h,f,_,T,ie.current,l)}function Or(e,r){var o=Fe(e.type,r,e.ref,e._self,e._source,e._owner,e.props);return o}function Pr(e,r,o){if(e==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a,l=s({},e.props),h=e.key,f=e.ref,_=e._self,T=e._source,V=e._owner;if(r!=null){Je(r)&&(f=r.ref,V=ie.current),we(r)&&($e(r.key),h=""+r.key);var W;e.type&&e.type.defaultProps&&(W=e.type.defaultProps);for(a in r)De.call(r,a)&&!We.hasOwnProperty(a)&&(r[a]===void 0&&W!==void 0?l[a]=W[a]:l[a]=r[a])}var z=arguments.length-2;if(z===1)l.children=o;else if(z>1){for(var G=Array(z),Q=0;Q<z;Q++)G[Q]=arguments[Q+2];l.children=G}return Fe(e.type,h,f,_,T,V,l)}function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}var ur=".",Tr=":";function Ir(e){var r=/[=:]/g,o={"=":"=0",":":"=2"},a=e.replace(r,function(l){return o[l]});return"$"+a}var Be=!1,lr=/\/+/g;function ge(e){return e.replace(lr,"$&/")}function Ae(e,r){return typeof e=="object"&&e!==null&&e.key!=null?($e(e.key),Ir(""+e.key)):r.toString(36)}function Se(e,r,o,a,l){var h=typeof e;(h==="undefined"||h==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(h){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case I:case P:f=!0}}if(f){var _=e,T=l(_),V=a===""?ur+Ae(_,0):a;if(Ve(T)){var W="";V!=null&&(W=ge(V)+"/"),Se(T,r,W,"",function(on){return on})}else T!=null&&(Ee(T)&&(T.key&&(!_||_.key!==T.key)&&$e(T.key),T=Or(T,o+(T.key&&(!_||_.key!==T.key)?ge(""+T.key)+"/":"")+V)),r.push(T));return 1}var z,G,Q=0,ne=a===""?ur:a+Tr;if(Ve(e))for(var xr=0;xr<e.length;xr++)z=e[xr],G=ne+Ae(z,xr),Q+=Se(z,r,o,G,l);else{var Hr=Y(e);if(typeof Hr=="function"){var bt=e;Hr===bt.entries&&(Be||pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Be=!0);for(var tn=Hr.call(bt),gt,nn=0;!(gt=tn.next()).done;)z=gt.value,G=ne+Ae(z,nn++),Q+=Se(z,r,o,G,l)}else if(h==="object"){var _t=String(e);throw new Error("Objects are not valid as a React child (found: "+(_t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":_t)+"). If you meant to render a collection of children, use an array instead.")}}return Q}function Me(e,r,o){if(e==null)return e;var a=[],l=0;return Se(e,a,"","",function(h){return r.call(o,h,l++)}),a}function $r(e){var r=0;return Me(e,function(){r++}),r}function cr(e,r,o){Me(e,function(){r.apply(this,arguments)},o)}function Nr(e){return Me(e,function(r){return r})||[]}function fr(e){if(!Ee(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}function dr(e){var r={$$typeof:D,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};r.Provider={$$typeof:p,_context:r};var o=!1,a=!1,l=!1;{var h={$$typeof:D,_context:r};Object.defineProperties(h,{Provider:{get:function(){return a||(a=!0,y("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(f){r.Provider=f}},_currentValue:{get:function(){return r._currentValue},set:function(f){r._currentValue=f}},_currentValue2:{get:function(){return r._currentValue2},set:function(f){r._currentValue2=f}},_threadCount:{get:function(){return r._threadCount},set:function(f){r._threadCount=f}},Consumer:{get:function(){return o||(o=!0,y("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(f){l||(pe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",f),l=!0)}}}),r.Consumer=h}return r._currentRenderer=null,r._currentRenderer2=null,r}var Le=-1,Ke=0,Xe=1,pr=2;function Dr(e){if(e._status===Le){var r=e._result,o=r();if(o.then(function(h){if(e._status===Ke||e._status===Le){var f=e;f._status=Xe,f._result=h}},function(h){if(e._status===Ke||e._status===Le){var f=e;f._status=pr,f._result=h}}),e._status===Le){var a=e;a._status=Ke,a._result=o}}if(e._status===Xe){var l=e._result;return l===void 0&&y(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
124
|
-
|
|
125
|
-
Your code should look like:
|
|
126
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
127
|
-
|
|
128
|
-
Did you accidentally put curly braces around the import?`,l),"default"in l||y(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
129
|
-
|
|
130
|
-
Your code should look like:
|
|
131
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,l),l.default}else throw e._result}function Fr(e){var r={_status:Le,_result:e},o={$$typeof:ee,_payload:r,_init:Dr};{var a,l;Object.defineProperties(o,{defaultProps:{configurable:!0,get:function(){return a},set:function(h){y("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),a=h,Object.defineProperty(o,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return l},set:function(h){y("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),l=h,Object.defineProperty(o,"propTypes",{enumerable:!0})}}})}return o}function Ar(e){e!=null&&e.$$typeof===L?y("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?y("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&y("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&(e.defaultProps!=null||e.propTypes!=null)&&y("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var r={$$typeof:E,render:e};{var o;Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(a){o=a,!e.name&&!e.displayName&&(e.displayName=a)}})}return r}var yr;yr=Symbol.for("react.module.reference");function t(e){return!!(typeof e=="string"||typeof e=="function"||e===C||e===g||se||e===v||e===x||e===J||oe||e===qe||Pe||Ge||Te||typeof e=="object"&&e!==null&&(e.$$typeof===ee||e.$$typeof===L||e.$$typeof===p||e.$$typeof===D||e.$$typeof===E||e.$$typeof===yr||e.getModuleId!==void 0))}function i(e,r){t(e)||y("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e);var o={$$typeof:L,type:e,compare:r===void 0?null:r};{var a;Object.defineProperty(o,"displayName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(l){a=l,!e.name&&!e.displayName&&(e.displayName=l)}})}return o}function u(){var e=xe.current;return e===null&&y(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
132
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
133
|
-
2. You might be breaking the Rules of Hooks
|
|
134
|
-
3. You might have more than one copy of React in the same app
|
|
135
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function m(e){var r=u();if(e._context!==void 0){var o=e._context;o.Consumer===e?y("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):o.Provider===e&&y("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e)}function N(e){var r=u();return r.useState(e)}function A(e,r,o){var a=u();return a.useReducer(e,r,o)}function j(e){var r=u();return r.useRef(e)}function R(e,r){var o=u();return o.useEffect(e,r)}function te(e,r){var o=u();return o.useInsertionEffect(e,r)}function H(e,r){var o=u();return o.useLayoutEffect(e,r)}function K(e,r){var o=u();return o.useCallback(e,r)}function ue(e,r){var o=u();return o.useMemo(e,r)}function Ce(e,r,o){var a=u();return a.useImperativeHandle(e,r,o)}function _e(e,r){{var o=u();return o.useDebugValue(e,r)}}function ae(){var e=u();return e.useTransition()}function Ze(e){var r=u();return r.useDeferredValue(e)}function Mr(){var e=u();return e.useId()}function Lr(e,r,o){var a=u();return a.useSyncExternalStore(e,r,o)}var Qe=0,Xr,Zr,Qr,et,rt,tt,nt;function ot(){}ot.__reactDisabledLog=!0;function Mt(){{if(Qe===0){Xr=console.log,Zr=console.info,Qr=console.warn,et=console.error,rt=console.group,tt=console.groupCollapsed,nt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ot,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Qe++}}function Lt(){{if(Qe--,Qe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:s({},e,{value:Xr}),info:s({},e,{value:Zr}),warn:s({},e,{value:Qr}),error:s({},e,{value:et}),group:s({},e,{value:rt}),groupCollapsed:s({},e,{value:tt}),groupEnd:s({},e,{value:nt})})}Qe<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qr=re.ReactCurrentDispatcher,Vr;function vr(e,r,o){{if(Vr===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);Vr=a&&a[1]||""}return`
|
|
136
|
-
`+Vr+e}}var Ur=!1,mr;{var qt=typeof WeakMap=="function"?WeakMap:Map;mr=new qt}function at(e,r){if(!e||Ur)return"";{var o=mr.get(e);if(o!==void 0)return o}var a;Ur=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=qr.current,qr.current=null,Mt();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(ne){a=ne}Reflect.construct(e,[],f)}else{try{f.call()}catch(ne){a=ne}e.call(f.prototype)}}else{try{throw Error()}catch(ne){a=ne}e()}}catch(ne){if(ne&&a&&typeof ne.stack=="string"){for(var _=ne.stack.split(`
|
|
137
|
-
`),T=a.stack.split(`
|
|
138
|
-
`),V=_.length-1,W=T.length-1;V>=1&&W>=0&&_[V]!==T[W];)W--;for(;V>=1&&W>=0;V--,W--)if(_[V]!==T[W]){if(V!==1||W!==1)do if(V--,W--,W<0||_[V]!==T[W]){var z=`
|
|
139
|
-
`+_[V].replace(" at new "," at ");return e.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",e.displayName)),typeof e=="function"&&mr.set(e,z),z}while(V>=1&&W>=0);break}}}finally{Ur=!1,qr.current=h,Lt(),Error.prepareStackTrace=l}var G=e?e.displayName||e.name:"",Q=G?vr(G):"";return typeof e=="function"&&mr.set(e,Q),Q}function Vt(e,r,o){return at(e,!1)}function Ut(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function hr(e,r,o){if(e==null)return"";if(typeof e=="function")return at(e,Ut(e));if(typeof e=="string")return vr(e);switch(e){case x:return vr("Suspense");case J:return vr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case E:return Vt(e.render);case L:return hr(e.type,r,o);case ee:{var a=e,l=a._payload,h=a._init;try{return hr(h(l),r,o)}catch{}}}return""}var it={},st=re.ReactDebugCurrentFrame;function br(e){if(e){var r=e._owner,o=hr(e.type,e._source,r?r.type:null);st.setExtraStackFrame(o)}else st.setExtraStackFrame(null)}function Wt(e,r,o,a,l){{var h=Function.call.bind(De);for(var f in e)if(h(e,f)){var _=void 0;try{if(typeof e[f]!="function"){var T=Error((a||"React class")+": "+o+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}_=e[f](r,f,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){_=V}_&&!(_ instanceof Error)&&(br(l),y("%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).",a||"React class",o,f,typeof _),br(null)),_ instanceof Error&&!(_.message in it)&&(it[_.message]=!0,br(l),y("Failed %s type: %s",o,_.message),br(null))}}}function Ye(e){if(e){var r=e._owner,o=hr(e.type,e._source,r?r.type:null);Oe(o)}else Oe(null)}var Wr;Wr=!1;function ut(){if(ie.current){var e=me(ie.current.type);if(e)return`
|
|
140
|
-
|
|
141
|
-
Check the render method of \``+e+"`."}return""}function zt(e){if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),o=e.lineNumber;return`
|
|
142
|
-
|
|
143
|
-
Check your code at `+r+":"+o+"."}return""}function Bt(e){return e!=null?zt(e.__source):""}var lt={};function Yt(e){var r=ut();if(!r){var o=typeof e=="string"?e:e.displayName||e.name;o&&(r=`
|
|
144
|
-
|
|
145
|
-
Check the top-level render call using <`+o+">.")}return r}function ct(e,r){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var o=Yt(r);if(!lt[o]){lt[o]=!0;var a="";e&&e._owner&&e._owner!==ie.current&&(a=" It was passed a child from "+me(e._owner.type)+"."),Ye(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,a),Ye(null)}}}function ft(e,r){if(typeof e=="object"){if(Ve(e))for(var o=0;o<e.length;o++){var a=e[o];Ee(a)&&ct(a,r)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var l=Y(e);if(typeof l=="function"&&l!==e.entries)for(var h=l.call(e),f;!(f=h.next()).done;)Ee(f.value)&&ct(f.value,r)}}}function dt(e){{var r=e.type;if(r==null||typeof r=="string")return;var o;if(typeof r=="function")o=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===E||r.$$typeof===L))o=r.propTypes;else return;if(o){var a=me(r);Wt(o,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Wr){Wr=!0;var l=me(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ht(e){{for(var r=Object.keys(e.props),o=0;o<r.length;o++){var a=r[o];if(a!=="children"&&a!=="key"){Ye(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Ye(null);break}}e.ref!==null&&(Ye(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}}function pt(e,r,o){var a=t(e);if(!a){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=Bt(r);h?l+=h:l+=ut();var f;e===null?f="null":Ve(e)?f="array":e!==void 0&&e.$$typeof===I?(f="<"+(me(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,y("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,l)}var _=kr.apply(this,arguments);if(_==null)return _;if(a)for(var T=2;T<arguments.length;T++)ft(arguments[T],e);return e===C?Ht(_):dt(_),_}var yt=!1;function Gt(e){var r=pt.bind(null,e);return r.type=e,yt||(yt=!0,pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(r,"type",{enumerable:!1,get:function(){return pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),r}function Jt(e,r,o){for(var a=Pr.apply(this,arguments),l=2;l<arguments.length;l++)ft(arguments[l],a.type);return dt(a),a}function Kt(e,r){var o=de.transition;de.transition={};var a=de.transition;de.transition._updatedFibers=new Set;try{e()}finally{if(de.transition=o,o===null&&a._updatedFibers){var l=a._updatedFibers.size;l>10&&pe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),a._updatedFibers.clear()}}}var vt=!1,gr=null;function Xt(e){if(gr===null)try{var r=("require"+Math.random()).slice(0,7),o=d&&d[r];gr=o.call(d,"timers").setImmediate}catch{gr=function(a){vt===!1&&(vt=!0,typeof MessageChannel>"u"&&y("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var l=new MessageChannel;l.port1.onmessage=a,l.port2.postMessage(void 0)}}return gr(e)}var He=0,mt=!1;function ht(e){{var r=He;He++,X.current===null&&(X.current=[]);var o=X.isBatchingLegacy,a;try{if(X.isBatchingLegacy=!0,a=e(),!o&&X.didScheduleLegacyUpdate){var l=X.current;l!==null&&(X.didScheduleLegacyUpdate=!1,Yr(l))}}catch(G){throw _r(r),G}finally{X.isBatchingLegacy=o}if(a!==null&&typeof a=="object"&&typeof a.then=="function"){var h=a,f=!1,_={then:function(G,Q){f=!0,h.then(function(ne){_r(r),He===0?zr(ne,G,Q):G(ne)},function(ne){_r(r),Q(ne)})}};return!mt&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){f||(mt=!0,y("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),_}else{var T=a;if(_r(r),He===0){var V=X.current;V!==null&&(Yr(V),X.current=null);var W={then:function(G,Q){X.current===null?(X.current=[],zr(T,G,Q)):G(T)}};return W}else{var z={then:function(G,Q){G(T)}};return z}}}}function _r(e){e!==He-1&&y("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),He=e}function zr(e,r,o){{var a=X.current;if(a!==null)try{Yr(a),Xt(function(){a.length===0?(X.current=null,r(e)):zr(e,r,o)})}catch(l){o(l)}else r(e)}}var Br=!1;function Yr(e){if(!Br){Br=!0;var r=0;try{for(;r<e.length;r++){var o=e[r];do o=o(!0);while(o!==null)}e.length=0}catch(a){throw e=e.slice(r+1),a}finally{Br=!1}}}var Zt=pt,Qt=Jt,en=Gt,rn={map:Me,forEach:cr,count:$r,toArray:Nr,only:fr};c.Children=rn,c.Component=O,c.Fragment=C,c.Profiler=g,c.PureComponent=F,c.StrictMode=v,c.Suspense=x,c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,c.act=ht,c.cloneElement=Qt,c.createContext=dr,c.createElement=Zt,c.createFactory=en,c.createRef=Sr,c.forwardRef=Ar,c.isValidElement=Ee,c.lazy=Fr,c.memo=i,c.startTransition=Kt,c.unstable_act=ht,c.useCallback=K,c.useContext=m,c.useDebugValue=_e,c.useDeferredValue=Ze,c.useEffect=R,c.useId=Mr,c.useImperativeHandle=Ce,c.useInsertionEffect=te,c.useLayoutEffect=H,c.useMemo=ue,c.useReducer=A,c.useRef=j,c.useState=N,c.useSyncExternalStore=Lr,c.useTransition=ae,c.version=k,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(wr,wr.exports)),wr.exports}var Ct;function fn(){return Ct||(Ct=1,process.env.NODE_ENV==="production"?Gr.exports=ln():Gr.exports=cn()),Gr.exports}fn();const ke=B.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),jt=`
|
|
99
|
+
`})(r.Peer||(r.Peer={}))})(j||(j={}));const E=y.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),H=`
|
|
146
100
|
bg-white
|
|
147
101
|
border
|
|
148
102
|
border-solid
|
|
149
|
-
border-
|
|
103
|
+
border-solid-gray-900
|
|
150
104
|
disabled:bg-transparent
|
|
151
|
-
disabled:text-
|
|
152
|
-
disabled:border-
|
|
153
|
-
aria-invalid:border-
|
|
154
|
-
${
|
|
155
|
-
`,
|
|
105
|
+
disabled:text-solid-gray-500
|
|
106
|
+
disabled:border-solid-gray-500
|
|
107
|
+
aria-invalid:border-red-800
|
|
108
|
+
${j.focusRect}
|
|
109
|
+
`,X={lg:`
|
|
156
110
|
p-4
|
|
157
111
|
text-label
|
|
158
112
|
rounded-lg
|
|
@@ -169,13 +123,13 @@ Check the top-level render call using <`+o+">.")}return r}function ct(e,r){if(!(
|
|
|
169
123
|
text-label
|
|
170
124
|
rounded-md
|
|
171
125
|
leading-snug
|
|
172
|
-
`},
|
|
126
|
+
`},Z=`
|
|
173
127
|
inline-block
|
|
174
128
|
cursor-pointer
|
|
175
129
|
border
|
|
176
130
|
border-solid
|
|
177
131
|
border-transparent
|
|
178
|
-
`,
|
|
132
|
+
`,Q={lg:`
|
|
179
133
|
pr-8
|
|
180
134
|
py-4
|
|
181
135
|
text-label
|
|
@@ -190,111 +144,111 @@ Check the top-level render call using <`+o+">.")}return r}function ct(e,r){if(!(
|
|
|
190
144
|
py-2
|
|
191
145
|
text-label
|
|
192
146
|
leading-snug
|
|
193
|
-
`},
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
147
|
+
`},K={lg:"w-[22px] h-[22px] mr-2",md:"w-[18px] h-[18px] mr-1.5",sm:"w-[18px] h-[18px] mr-1"},M=r=>{const{id:i,className:c,size:n="lg",children:o,...s}=r,a=y.useId(),u=i||a,d=y.useContext(E);d.isRequired&&(s.required=!0),d.groupName&&(s.name=d.groupName);const p={lg:22/24,md:18/24,sm:18/24},f=`
|
|
148
|
+
peer
|
|
149
|
+
sr-only
|
|
150
|
+
`,h=`
|
|
151
|
+
bg-clip-content
|
|
152
|
+
rounded-sm
|
|
153
|
+
border
|
|
154
|
+
border-solid
|
|
155
|
+
border-solid-gray-900
|
|
156
|
+
fill-transparent
|
|
157
|
+
peer-checked:fill-white
|
|
158
|
+
peer-checked:bg-blue-600
|
|
159
|
+
peer-checked:border-none
|
|
160
|
+
peer-disabled:border-solid-gray-500
|
|
161
|
+
${j.Peer.focusRect}
|
|
162
|
+
`;return t.jsx("label",{htmlFor:u,className:v(Z,Q[n],c),children:t.jsxs("span",{className:"flex items-center",children:[t.jsx("input",{id:u,className:f,type:"checkbox","aria-describedby":d.helperTextId,"aria-errormessage":d.errorMessageId,"aria-invalid":d.isInvalid??!1,"aria-required":d.isRequired??!1,...s}),t.jsx("span",{className:v(h,K[n]),children:t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",children:t.jsx("g",{transform:`scale(${p[n]} ${p[n]})`,children:t.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"})})})}),t.jsx("span",{className:"peer-disabled:text-solid-gray-500",children:o})]})})};M.displayName="Checkbox";const F=r=>{const{id:i,className:c,size:n="lg",children:o,...s}=r,a=y.useId(),u=i||a,d=y.useContext(E);d.isRequired&&(s.required=!0),d.groupName&&(s.name=d.groupName);const p=`
|
|
163
|
+
peer
|
|
164
|
+
sr-only
|
|
165
|
+
`,f=`
|
|
166
|
+
bg-clip-content
|
|
167
|
+
rounded-full
|
|
168
|
+
border
|
|
169
|
+
border-solid
|
|
170
|
+
border-solid-gray-900
|
|
171
|
+
peer-checked:bg-blue-600
|
|
172
|
+
peer-checked:border-blue-600
|
|
173
|
+
peer-disabled:border-solid-gray-500
|
|
174
|
+
${j.Peer.focusRect}
|
|
175
|
+
`,h={lg:"p-1",md:"p-[3px]",sm:"p-[3px]"};return t.jsx("label",{htmlFor:u,className:v(Z,Q[n],c),children:t.jsxs("span",{className:"flex items-center",children:[t.jsx("input",{id:u,className:p,type:"radio","aria-describedby":d.helperTextId,"aria-errormessage":d.errorMessageId,"aria-invalid":d.isInvalid??!1,"aria-required":d.isRequired??!1,...s}),t.jsx("span",{"aria-hidden":!0,className:v(f,h[n],K[n])}),t.jsx("span",{className:"peer-disabled:text-solid-gray-500",children:o})]})})};F.displayName="Radio";const ee=r=>{const{id:i,className:c,size:n="lg",children:o,...s}=r,a=y.useContext(E);return a.isRequired&&(s.required=!0),t.jsxs("div",{className:"inline-block relative",children:[t.jsx("select",{id:i||a.id,className:v(`
|
|
176
|
+
!pr-8
|
|
177
|
+
peer
|
|
178
|
+
cursor-pointer
|
|
179
|
+
appearance-none
|
|
180
|
+
`,H,X[n],c),"aria-describedby":a.helperTextId,"aria-errormessage":a.errorMessageId,"aria-invalid":a.isInvalid??!1,"aria-required":a.isRequired??!1,...s,children:o}),t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:`
|
|
181
|
+
pointer-events-none
|
|
182
|
+
absolute
|
|
183
|
+
right-4
|
|
184
|
+
top-1/2
|
|
185
|
+
-translate-y-1/2
|
|
186
|
+
text-solid-gray-900
|
|
187
|
+
peer-disabled:text-solid-gray-500
|
|
188
|
+
`,fill:"none",width:"16",height:"16",viewBox:"0 0 16 16",children:[t.jsx("title",{children:"arrow down"}),t.jsx("path",{d:"M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",fill:"currentColor"})]})]})};ee.displayName="Select";const re=r=>{const{id:i,className:c,size:n="lg",...o}=r,s=y.useContext(E);s.isRequired&&(o.required=!0);const a=`
|
|
189
|
+
file:mr-2
|
|
190
|
+
file:inline-block
|
|
191
|
+
file:text-button
|
|
192
|
+
file:text-center
|
|
193
|
+
file:cursor-pointer
|
|
194
|
+
file:select-none
|
|
195
|
+
file:touch-manipulation
|
|
196
|
+
file:whitespace-nowrap
|
|
197
|
+
file:border
|
|
198
|
+
file:border-solid
|
|
199
|
+
file:border-blue-900
|
|
200
|
+
file:hover:border-blue-1000
|
|
201
|
+
file:active:border-blue-1200
|
|
202
|
+
file:disabled:border-solid-gray-500
|
|
203
|
+
file:disabled:cursor-not-allowed
|
|
204
|
+
`,u=`
|
|
205
|
+
file:text-blue-900
|
|
206
|
+
file:hover:text-blue-1000
|
|
207
|
+
file:active:text-blue-1200
|
|
208
|
+
file:bg-transparent
|
|
209
|
+
file:hover:bg-blue-200
|
|
210
|
+
file:active:bg-blue-300
|
|
211
|
+
file:disabled:text-solid-gray-500
|
|
212
|
+
file:disabled:bg-transparent
|
|
213
|
+
`,d=`
|
|
214
|
+
text-label
|
|
215
|
+
text-solid-gray-900
|
|
216
|
+
rounded-lg
|
|
217
|
+
outline-offset-2
|
|
218
|
+
aria-invalid:text-red-800
|
|
219
|
+
${j.hoverUnderline}
|
|
220
|
+
${j.focusRounded}
|
|
221
|
+
`,p={lg:`
|
|
222
|
+
file:p-4
|
|
237
223
|
file:text-button
|
|
238
|
-
file:
|
|
239
|
-
file:
|
|
240
|
-
|
|
241
|
-
file:
|
|
242
|
-
file:
|
|
243
|
-
file:
|
|
244
|
-
file:
|
|
245
|
-
file:
|
|
246
|
-
|
|
247
|
-
file:
|
|
248
|
-
file:
|
|
249
|
-
file:
|
|
250
|
-
|
|
251
|
-
file:
|
|
252
|
-
|
|
253
|
-
file:active:text-sea-1200
|
|
254
|
-
file:bg-transparent
|
|
255
|
-
file:hover:bg-sea-200
|
|
256
|
-
file:active:bg-sea-300
|
|
257
|
-
file:disabled:text-sumi-500
|
|
258
|
-
file:disabled:bg-transparent
|
|
259
|
-
`,D=`
|
|
260
|
-
text-label
|
|
261
|
-
text-sumi-900
|
|
262
|
-
rounded-lg
|
|
263
|
-
outline-offset-2
|
|
264
|
-
aria-invalid:text-sun-800
|
|
265
|
-
${je.hoverUnderline}
|
|
266
|
-
${je.focusRounded}
|
|
267
|
-
`,E={lg:`
|
|
268
|
-
file:p-4
|
|
269
|
-
file:text-button
|
|
270
|
-
file:rounded-lg
|
|
271
|
-
file:leading-snug
|
|
272
|
-
`,md:`
|
|
273
|
-
file:px-4
|
|
274
|
-
file:py-3
|
|
275
|
-
file:text-button
|
|
276
|
-
file:rounded-lg
|
|
277
|
-
file:leading-snug
|
|
278
|
-
`,sm:`
|
|
279
|
-
file:px-3
|
|
280
|
-
file:py-2
|
|
281
|
-
file:text-button
|
|
282
|
-
file:rounded-md
|
|
283
|
-
file:leading-snug
|
|
284
|
-
`};return b.jsx("input",{type:"file",id:k||v.id,className:le(g,p,E[P],D,I),"aria-describedby":v.helperTextId,"aria-errormessage":v.errorMessageId,"aria-invalid":v.isInvalid??!1,"aria-required":v.isRequired??!1,ref:c,...C})});It.displayName="FileInput";const $t=B.forwardRef((d,c)=>{const{id:k,className:I,size:P="lg",...C}=d,v=B.useContext(ke);return v.isRequired&&(C.required=!0),b.jsx("input",{type:"text",id:k||v.id,className:le(jt,kt[P],I),"aria-describedby":v.helperTextId,"aria-errormessage":v.errorMessageId,"aria-invalid":v.isInvalid??!1,"aria-required":v.isRequired??!1,ref:c,...C})});$t.displayName="Input";const Nt=B.forwardRef((d,c)=>{const{id:k,className:I,children:P,onChange:C,maxLength:v,...g}=d,[p,D]=B.useState(0),E=ee=>{C&&C(ee),D(ee.target.value.length)},x=B.useContext(ke);x.isRequired&&(g.required=!0);const J=p>(v||0)?"text-sun-800":"text-sumi-700",L=`
|
|
224
|
+
file:rounded-lg
|
|
225
|
+
file:leading-snug
|
|
226
|
+
`,md:`
|
|
227
|
+
file:px-4
|
|
228
|
+
file:py-3
|
|
229
|
+
file:text-button
|
|
230
|
+
file:rounded-lg
|
|
231
|
+
file:leading-snug
|
|
232
|
+
`,sm:`
|
|
233
|
+
file:px-3
|
|
234
|
+
file:py-2
|
|
235
|
+
file:text-button
|
|
236
|
+
file:rounded-md
|
|
237
|
+
file:leading-snug
|
|
238
|
+
`};return t.jsx("input",{type:"file",id:i||s.id,className:v(a,u,p[n],d,c),"aria-describedby":s.helperTextId,"aria-errormessage":s.errorMessageId,"aria-invalid":s.isInvalid??!1,"aria-required":s.isRequired??!1,role:"button","aria-label":"File Upload",...o})};re.displayName="FileInput";const se=r=>{const{id:i,className:c,size:n="lg",...o}=r,s=y.useContext(E);return s.isRequired&&(o.required=!0),t.jsx("input",{type:"text",id:i||s.id,className:v(H,X[n],c),"aria-describedby":s.helperTextId,"aria-errormessage":s.errorMessageId,"aria-invalid":s.isInvalid??!1,"aria-required":s.isRequired??!1,...o})};se.displayName="Input";const te=r=>{const{id:i,className:c,children:n,onChange:o,maxLength:s,...a}=r,[u,d]=y.useState(0),p=R=>{o&&o(R),d(R.target.value.length)},f=y.useContext(E);f.isRequired&&(a.required=!0);const h=u>(s||0)?"text-red-800":"text-solid-gray-700",x=`
|
|
285
239
|
p-4
|
|
286
240
|
text-label
|
|
287
241
|
rounded-lg
|
|
288
242
|
border
|
|
289
243
|
border-solid
|
|
290
|
-
border-
|
|
244
|
+
border-solid-gray-900
|
|
291
245
|
disabled:bg-transparent
|
|
292
|
-
disabled:text-
|
|
293
|
-
disabled:border-
|
|
294
|
-
aria-invalid:border-
|
|
295
|
-
${
|
|
296
|
-
`;return
|
|
297
|
-
text-label text-
|
|
298
|
-
`,children:
|
|
299
|
-
text-label text-
|
|
300
|
-
`,children:
|
|
246
|
+
disabled:text-solid-gray-500
|
|
247
|
+
disabled:border-solid-gray-500
|
|
248
|
+
aria-invalid:border-red-800
|
|
249
|
+
${j.focusRect}
|
|
250
|
+
`;return t.jsxs(t.Fragment,{children:[t.jsx("textarea",{id:i||f.id,className:v(x,c),"aria-describedby":f.helperTextId,"aria-errormessage":f.errorMessageId,"aria-invalid":f.isInvalid??!1,"aria-required":f.isRequired??!1,onChange:p,...a,children:n}),s?t.jsxs("p",{className:"text-label text-solid-gray-700",children:[t.jsx("span",{className:h,children:u}),"/",t.jsx("span",{children:s})]}):""]})};te.displayName="Textarea";const le=r=>{const i=y.useId(),{labelText:c,className:n,helperText:o,errorMessage:s,isInvalid:a,isRequired:u,children:d,...p}=r,f={id:r.htmlFor??`input-${i}`,helperTextId:`helper-text-${i}`,errorMessageId:`error-message-${i}`,isInvalid:a??!1,isRequired:u??!1};return t.jsx(E.Provider,{value:f,children:t.jsxs("div",{className:v("flex flex-col items-start gap-2",n),children:[t.jsxs("label",{className:v("block text-label",a&&"text-red-800"),htmlFor:f.id,...p,children:[c,u&&t.jsx("span",{className:"text-label text-red-800",children:" *"})]}),o&&t.jsx("p",{id:f.helperTextId,className:`
|
|
251
|
+
text-label text-solid-gray-700
|
|
252
|
+
`,children:o}),d,a&&t.jsx("p",{id:f.errorMessageId,className:`
|
|
253
|
+
text-label text-red-800
|
|
254
|
+
`,children:s})]})})};le.displayName="LabelControl";const C=r=>{const i=y.useId(),{labelText:c,className:n,helperText:o,errorMessage:s,isInvalid:a,isRequired:u,direction:d,children:p,...f}=r,x={groupName:f.name??`group-${i}`,helperTextId:`helper-text-${i}`,errorMessageId:`error-message-${i}`,isInvalid:a??!1,isRequired:u??!1},R=d??"flex-col";return t.jsx(E.Provider,{value:x,children:t.jsxs("fieldset",{className:v("flex flex-col items-start gap-2",n),...f,children:[t.jsx("legend",{children:t.jsxs("p",{className:v("block text-label",a&&"text-red-800"),children:[c,u&&t.jsx("span",{className:"text-red-800",children:" *"})]})}),t.jsx("div",{className:v("inline-flex",R),children:p}),o&&t.jsx("p",{id:x.helperTextId,className:"text-sup text-solid-gray-700",children:o}),a&&t.jsx("p",{id:x.errorMessageId,className:"text-label text-red-800",children:s})]})})};C.displayName="FieldsetControl";const oe=r=>{const{items:i,onChange:c,className:n,labelText:o,helperText:s,errorMessage:a,isInvalid:u,isRequired:d,size:p,...f}=r;return t.jsx(C,{className:n,labelText:o,helperText:s,errorMessage:a,isInvalid:u,isRequired:d,...f,children:i.map(({label:h,value:x})=>t.jsx(M,{size:p,value:x,onChange:c,children:h},`${h}-${x}`))})};oe.displayName="CheckboxGroup";const ae=r=>{const{items:i,onChange:c,className:n,labelText:o,helperText:s,errorMessage:a,isInvalid:u,isRequired:d,defaultValue:p,size:f,...h}=r;return t.jsx(C,{className:n,labelText:o,helperText:s,errorMessage:a,isInvalid:u,isRequired:d,...h,children:i.map(({label:x,value:R})=>t.jsx(F,{size:f,value:R,onChange:c,defaultChecked:p===R,children:x},`${x}-${R}`))})};ae.displayName="RadioGroup";exports.Checkbox=M;exports.CheckboxGroup=oe;exports.FieldsetControl=C;exports.FileInput=re;exports.Input=se;exports.LabelControl=le;exports.Radio=F;exports.RadioGroup=ae;exports.Select=ee;exports.Textarea=te;
|