@sakura-ui/forms 0.4.1 → 0.4.2
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 +18 -18
- package/dist/index.es.js +166 -178
- package/dist/types/components/Checkbox.d.ts.map +1 -1
- package/dist/types/components/FileInput.d.ts.map +1 -1
- package/dist/types/components/Input.d.ts.map +1 -1
- package/dist/types/components/Radio.d.ts.map +1 -1
- package/dist/types/components/Select.d.ts.map +1 -1
- package/dist/types/components/Textarea.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react");var k={exports:{}},E={};var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react");var k={exports:{}},E={};var G;function ve(){if(G)return E;G=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function d(i,o,t){var a=null;if(t!==void 0&&(a=""+t),o.key!==void 0&&(a=""+o.key),"key"in o){t={};for(var u in o)u!=="key"&&(t[u]=o[u])}else t=o;return o=t.ref,{$$typeof:r,type:i,key:a,ref:o!==void 0?o:null,props:t}}return E.Fragment=n,E.jsx=d,E.jsxs=d,E}var _={};var U;function ye(){return U||(U=1,process.env.NODE_ENV!=="production"&&(function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case ie:return"Profiler";case ne:return"StrictMode";case fe:return"Suspense";case pe:return"SuspenseList";case xe: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 ae:return"Portal";case ce:return e.displayName||"Context";case de:return(e._context.displayName||"Context")+".Consumer";case ue:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return l=e.displayName||null,l!==null?l:r(e.type)||"Memo";case P:l=e._payload,e=e._init;try{return r(e(l))}catch{}}return null}function n(e){return""+e}function d(e){try{n(e);var l=!1}catch{l=!0}if(l){l=console;var p=l.error,b=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return p.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",b),n(e)}}function i(e){if(e===C)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===P)return"<...>";try{var l=r(e);return l?"<"+l+">":"<...>"}catch{return"<...>"}}function o(){var e=S.A;return e===null?null:e.getOwner()}function t(){return Error("react-stack-top-frame")}function a(e){if(Y.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 p(){z||(z=!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))}p.isReactWarning=!0,Object.defineProperty(e,"key",{get:p,configurable:!0})}function c(){var e=r(this.type);return L[e]||(L[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 m(e,l,p,b,I,A){var x=p.ref;return e={$$typeof:F,type:e,key:l,props:p,_owner:b},(x!==void 0?x:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:c}):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:I}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function f(e,l,p,b,I,A){var x=l.children;if(x!==void 0)if(b)if(ge(x)){for(b=0;b<x.length;b++)g(x[b]);Object.freeze&&Object.freeze(x)}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 g(x);if(Y.call(l,"key")){x=r(e);var j=Object.keys(l).filter(function(he){return he!=="key"});b=0<j.length?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}",B[x+b]||(j=0<j.length?"{"+j.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,b,x,j,x),B[x+b]=!0)}if(x=null,p!==void 0&&(
|
|
6
|
+
<%s key={someKey} {...props} />`,b,x,j,x),B[x+b]=!0)}if(x=null,p!==void 0&&(d(p),x=""+p),a(l)&&(d(l.key),x=""+l.key),"key"in l){p={};for(var $ in l)$!=="key"&&(p[$]=l[$])}else p=l;return x&&u(p,typeof e=="function"?e.displayName||e.name||"Unknown":e),m(e,x,p,o(),I,A)}function g(e){h(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===P&&(e._payload.status==="fulfilled"?h(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function h(e){return typeof e=="object"&&e!==null&&e.$$typeof===F}var v=R,F=Symbol.for("react.transitional.element"),ae=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),de=Symbol.for("react.consumer"),ce=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),fe=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),S=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,ge=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={react_stack_bottom_frame:function(e){return e()}};var z,L={},D=v.react_stack_bottom_frame.bind(v,t)(),W=O(i(t)),B={};_.Fragment=C,_.jsx=function(e,l,p){var b=1e4>S.recentlyCreatedOwnerStacks++;return f(e,l,p,!1,b?Error("react-stack-top-frame"):D,b?O(i(e)):W)},_.jsxs=function(e,l,p){var b=1e4>S.recentlyCreatedOwnerStacks++;return f(e,l,p,!0,b?Error("react-stack-top-frame"):D,b?O(i(e)):W)}})()),_}var V;function Re(){return V||(V=1,process.env.NODE_ENV==="production"?k.exports=ve():k.exports=ye()),k.exports}var s=Re();const y=(...r)=>r.filter(Boolean).join(" ");var N;(r=>{r.clickable=`
|
|
7
7
|
px-2
|
|
8
8
|
min-h-[calc(44/16*1rem)]
|
|
9
9
|
border
|
|
@@ -13,12 +13,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
13
13
|
`,r.selected=`
|
|
14
14
|
rounded-full
|
|
15
15
|
bg-yellow-50
|
|
16
|
-
`;const
|
|
16
|
+
`;const n=`
|
|
17
17
|
focus-visible:outline-4
|
|
18
18
|
focus-visible:outline-black
|
|
19
19
|
focus-visible:ring-yellow-300
|
|
20
20
|
`;r.focusRectCondensed=`
|
|
21
|
-
${
|
|
21
|
+
${n}
|
|
22
22
|
focus-visible:-outline-offset-4
|
|
23
23
|
focus-visible:ring-[calc(6/16*1rem)]
|
|
24
24
|
focus-visible:ring-inset
|
|
@@ -26,7 +26,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
26
26
|
${r.focusRectCondensed}
|
|
27
27
|
focus-visible:bg-yellow-300
|
|
28
28
|
`,r.focusRect=`
|
|
29
|
-
${
|
|
29
|
+
${n}
|
|
30
30
|
focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
31
31
|
focus-visible:ring-[calc(2/16*1rem)]
|
|
32
32
|
`,r.focusRounded=`
|
|
@@ -70,12 +70,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
70
70
|
absolute
|
|
71
71
|
top-11
|
|
72
72
|
left-0
|
|
73
|
-
`,(
|
|
73
|
+
`,(d=>{d.focus=`
|
|
74
74
|
peer-focus-visible:outline-4
|
|
75
75
|
peer-focus-visible:outline-black
|
|
76
76
|
peer-focus-visible:ring-yellow-300
|
|
77
|
-
`,
|
|
78
|
-
${
|
|
77
|
+
`,d.focusRect=`
|
|
78
|
+
${d.focus}
|
|
79
79
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
80
80
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
81
81
|
`})(r.Peer||(r.Peer={}))})(N||(N={}));const T=R.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),J=`
|
|
@@ -126,7 +126,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
126
126
|
py-2
|
|
127
127
|
text-label
|
|
128
128
|
leading-snug
|
|
129
|
-
`},Q={lg:"w-[22px] h-[22px] mr-2",md:"w-[18px] h-[18px] mr-1.5",sm:"w-[18px] h-[18px] mr-1"},
|
|
129
|
+
`},Q={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:n,className:d,size:i="lg",children:o,...t}=r,a=R.useId(),u=n||a,c=R.useContext(T);c.isRequired&&(t.required=!0),c.groupName&&(t.name=c.groupName);const m={lg:22/24,md:18/24,sm:18/24},f=`
|
|
130
130
|
peer
|
|
131
131
|
sr-only
|
|
132
132
|
`,g=`
|
|
@@ -141,7 +141,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
141
141
|
peer-checked:border-none
|
|
142
142
|
peer-disabled:border-solid-gray-500
|
|
143
143
|
${N.Peer.focusRect}
|
|
144
|
-
`;return s.jsx("label",{htmlFor:u,className:y(X,Z[
|
|
144
|
+
`;return s.jsx("label",{htmlFor:u,className:y(X,Z[i],d),children:s.jsxs("span",{className:"flex items-center",children:[s.jsx("input",{id:u,className:f,type:"checkbox","aria-describedby":c.helperTextId,"aria-errormessage":c.errorMessageId,"aria-invalid":c.isInvalid??!1,...t}),s.jsx("span",{className:y(g,Q[i]),children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",children:s.jsx("g",{transform:`scale(${m[i]} ${m[i]})`,children: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"})})})}),s.jsx("span",{className:"peer-disabled:text-solid-gray-500",children:o})]})})};M.displayName="Checkbox";const q=r=>{const{id:n,className:d,size:i="lg",children:o,...t}=r,a=R.useId(),u=n||a,c=R.useContext(T);c.isRequired&&(t.required=!0),c.groupName&&(t.name=c.groupName);const m=`
|
|
145
145
|
peer
|
|
146
146
|
sr-only
|
|
147
147
|
`,f=`
|
|
@@ -154,12 +154,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
154
154
|
peer-checked:border-blue-600
|
|
155
155
|
peer-disabled:border-solid-gray-500
|
|
156
156
|
${N.Peer.focusRect}
|
|
157
|
-
`,g={lg:"p-1",md:"p-[3px]",sm:"p-[3px]"};return s.jsx("label",{htmlFor:u,className:y(X,Z[
|
|
157
|
+
`,g={lg:"p-1",md:"p-[3px]",sm:"p-[3px]"};return s.jsx("label",{htmlFor:u,className:y(X,Z[i],d),children:s.jsxs("span",{className:"flex items-center",children:[s.jsx("input",{id:u,className:m,type:"radio","aria-describedby":c.helperTextId,"aria-errormessage":c.errorMessageId,"aria-invalid":c.isInvalid??!1,...t}),s.jsx("span",{"aria-hidden":!0,className:y(f,g[i],Q[i])}),s.jsx("span",{className:"peer-disabled:text-solid-gray-500",children:o})]})})};q.displayName="Radio";const K=r=>{const{id:n,className:d,size:i="lg",children:o,...t}=r,a=R.useContext(T);return a.isRequired&&(t.required=!0),s.jsxs("div",{className:"inline-block relative",children:[s.jsx("select",{id:n||a.id,className:y(`
|
|
158
158
|
!pr-8
|
|
159
159
|
peer
|
|
160
160
|
cursor-pointer
|
|
161
161
|
appearance-none
|
|
162
|
-
`,J,H[
|
|
162
|
+
`,J,H[i],d),"aria-describedby":a.helperTextId,"aria-errormessage":a.errorMessageId,"aria-invalid":a.isInvalid??!1,...t,children:o}),s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:`
|
|
163
163
|
pointer-events-none
|
|
164
164
|
absolute
|
|
165
165
|
right-4
|
|
@@ -167,7 +167,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
167
167
|
-translate-y-1/2
|
|
168
168
|
text-solid-gray-900
|
|
169
169
|
peer-disabled:text-solid-gray-500
|
|
170
|
-
`,fill:"none",width:"16",height:"16",viewBox:"0 0 16 16",children:[s.jsx("title",{children:"arrow down"}),s.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"})]})]})};K.displayName="Select";const ee=r=>{const{id:
|
|
170
|
+
`,fill:"none",width:"16",height:"16",viewBox:"0 0 16 16",children:[s.jsx("title",{children:"arrow down"}),s.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"})]})]})};K.displayName="Select";const ee=r=>{const{id:n,className:d,size:i="lg",...o}=r,t=R.useContext(T);t.isRequired&&(o.required=!0);const a=`
|
|
171
171
|
file:mr-2
|
|
172
172
|
file:inline-block
|
|
173
173
|
file:text-button
|
|
@@ -192,7 +192,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
192
192
|
file:active:bg-blue-300
|
|
193
193
|
file:disabled:text-solid-gray-500
|
|
194
194
|
file:disabled:bg-transparent
|
|
195
|
-
`,
|
|
195
|
+
`,c=`
|
|
196
196
|
text-label
|
|
197
197
|
text-solid-gray-900
|
|
198
198
|
rounded-lg
|
|
@@ -217,7 +217,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
217
217
|
file:text-button
|
|
218
218
|
file:rounded-md
|
|
219
219
|
file:leading-snug
|
|
220
|
-
`};return s.jsx("input",{type:"file",id:
|
|
220
|
+
`};return s.jsx("input",{type:"file",id:n||t.id,className:y(a,u,m[i],c,d),"aria-describedby":t.helperTextId,"aria-errormessage":t.errorMessageId,"aria-invalid":t.isInvalid??!1,...o})};ee.displayName="FileInput";const re=r=>{const{id:n,className:d,size:i="lg",...o}=r,t=R.useContext(T);return t.isRequired&&(o.required=!0),s.jsx("input",{type:"text",id:n||t.id,className:y(J,H[i],d),"aria-describedby":t.helperTextId,"aria-errormessage":t.errorMessageId,"aria-invalid":t.isInvalid??!1,...o})};re.displayName="Input";const te=r=>{const{id:n,className:d,children:i,onChange:o,maxLength:t,...a}=r,[u,c]=R.useState(0),m=v=>{o&&o(v),c(v.target.value.length)},f=R.useContext(T);f.isRequired&&(a.required=!0);const g=u>(t||0)?"text-red-800":"text-solid-gray-700",h=`
|
|
221
221
|
p-4
|
|
222
222
|
text-label
|
|
223
223
|
rounded-lg
|
|
@@ -229,8 +229,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
229
229
|
disabled:border-solid-gray-500
|
|
230
230
|
aria-invalid:border-red-800
|
|
231
231
|
${N.focusRect}
|
|
232
|
-
`;return s.jsxs(s.Fragment,{children:[s.jsx("textarea",{id:
|
|
232
|
+
`;return s.jsxs(s.Fragment,{children:[s.jsx("textarea",{id:n||f.id,className:y(h,d),"aria-describedby":f.helperTextId,"aria-errormessage":f.errorMessageId,"aria-invalid":f.isInvalid??!1,onChange:m,...a,children:i}),t?s.jsxs("p",{className:"text-label text-solid-gray-700",children:[s.jsx("span",{className:g,children:u}),"/",s.jsx("span",{children:t})]}):""]})};te.displayName="Textarea";const se=r=>{const n=R.useId(),{labelText:d,className:i,helperText:o,errorMessage:t,isInvalid:a,isRequired:u,children:c,...m}=r,f={id:r.htmlFor??`input-${n}`,helperTextId:`helper-text-${n}`,errorMessageId:`error-message-${n}`,isInvalid:a??!1,isRequired:u??!1};return s.jsx(T.Provider,{value:f,children:s.jsxs("div",{className:y("flex flex-col items-start gap-2",i),children:[s.jsxs("label",{className:y("block text-label",a&&"text-red-800"),htmlFor:f.id,...m,children:[d,u&&s.jsx("span",{className:"text-label text-red-800",children:" *"})]}),o&&s.jsx("p",{id:f.helperTextId,className:`
|
|
233
233
|
text-label text-solid-gray-700
|
|
234
|
-
`,children:
|
|
234
|
+
`,children:o}),c,a&&s.jsx("p",{id:f.errorMessageId,className:`
|
|
235
235
|
text-label text-red-800
|
|
236
|
-
`,children:t})]})})};se.displayName="LabelControl";const w=r=>{const
|
|
236
|
+
`,children:t})]})})};se.displayName="LabelControl";const w=r=>{const n=R.useId(),{labelText:d,className:i,helperText:o,errorMessage:t,isInvalid:a,isRequired:u,direction:c,children:m,...f}=r,h={groupName:f.name??`group-${n}`,helperTextId:`helper-text-${n}`,errorMessageId:`error-message-${n}`,isInvalid:a??!1,isRequired:u??!1},v=c??"flex-col";return s.jsx(T.Provider,{value:h,children:s.jsxs("fieldset",{className:y("flex flex-col items-start gap-2",i),...f,children:[s.jsx("legend",{children:s.jsxs("p",{className:y("block text-label",a&&"text-red-800"),children:[d,u&&s.jsx("span",{className:"text-red-800",children:" *"})]})}),s.jsx("div",{className:y("inline-flex",v),children:m}),o&&s.jsx("p",{id:h.helperTextId,className:"text-sup text-solid-gray-700",children:o}),a&&s.jsx("p",{id:h.errorMessageId,className:"text-label text-red-800",children:t})]})})};w.displayName="FieldsetControl";const le=r=>{const{items:n,onChange:d,className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,size:m,...f}=r;return s.jsx(w,{className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,...f,children:n.map(({label:g,value:h})=>s.jsx(M,{size:m,value:h,onChange:d,children:g},`${g}-${h}`))})};le.displayName="CheckboxGroup";const oe=r=>{const{items:n,onChange:d,className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,defaultValue:m,size:f,...g}=r;return s.jsx(w,{className:i,labelText:o,helperText:t,errorMessage:a,isInvalid:u,isRequired:c,...g,children:n.map(({label:h,value:v})=>s.jsx(q,{size:f,value:v,onChange:d,defaultChecked:m===v,children:h},`${h}-${v}`))})};oe.displayName="RadioGroup";exports.Checkbox=M;exports.CheckboxGroup=le;exports.FieldsetControl=w;exports.FileInput=ee;exports.Input=re;exports.LabelControl=se;exports.Radio=q;exports.RadioGroup=oe;exports.Select=K;exports.Textarea=te;
|
package/dist/index.es.js
CHANGED
|
@@ -4,23 +4,23 @@ var W;
|
|
|
4
4
|
function fe() {
|
|
5
5
|
if (W) return E;
|
|
6
6
|
W = 1;
|
|
7
|
-
var r = /* @__PURE__ */ Symbol.for("react.transitional.element"),
|
|
8
|
-
function
|
|
7
|
+
var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
8
|
+
function d(i, a, t) {
|
|
9
9
|
var o = null;
|
|
10
|
-
if (
|
|
11
|
-
|
|
10
|
+
if (t !== void 0 && (o = "" + t), a.key !== void 0 && (o = "" + a.key), "key" in a) {
|
|
11
|
+
t = {};
|
|
12
12
|
for (var u in a)
|
|
13
|
-
u !== "key" && (
|
|
14
|
-
} else
|
|
15
|
-
return a =
|
|
13
|
+
u !== "key" && (t[u] = a[u]);
|
|
14
|
+
} else t = a;
|
|
15
|
+
return a = t.ref, {
|
|
16
16
|
$$typeof: r,
|
|
17
|
-
type:
|
|
17
|
+
type: i,
|
|
18
18
|
key: o,
|
|
19
19
|
ref: a !== void 0 ? a : null,
|
|
20
|
-
props:
|
|
20
|
+
props: t
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
return E.Fragment =
|
|
23
|
+
return E.Fragment = n, E.jsx = d, E.jsxs = d, E;
|
|
24
24
|
}
|
|
25
25
|
var _ = {};
|
|
26
26
|
var B;
|
|
@@ -42,7 +42,7 @@ function pe() {
|
|
|
42
42
|
return "Suspense";
|
|
43
43
|
case oe:
|
|
44
44
|
return "SuspenseList";
|
|
45
|
-
case
|
|
45
|
+
case ie:
|
|
46
46
|
return "Activity";
|
|
47
47
|
}
|
|
48
48
|
if (typeof e == "object")
|
|
@@ -51,14 +51,14 @@ function pe() {
|
|
|
51
51
|
), e.$$typeof) {
|
|
52
52
|
case K:
|
|
53
53
|
return "Portal";
|
|
54
|
-
case te:
|
|
55
|
-
return e.displayName || "Context";
|
|
56
54
|
case se:
|
|
55
|
+
return e.displayName || "Context";
|
|
56
|
+
case te:
|
|
57
57
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
58
|
case le:
|
|
59
59
|
var l = e.render;
|
|
60
60
|
return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
|
-
case
|
|
61
|
+
case ne:
|
|
62
62
|
return l = e.displayName || null, l !== null ? l : r(e.type) || "Memo";
|
|
63
63
|
case P:
|
|
64
64
|
l = e._payload, e = e._init;
|
|
@@ -69,12 +69,12 @@ function pe() {
|
|
|
69
69
|
}
|
|
70
70
|
return null;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function n(e) {
|
|
73
73
|
return "" + e;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function d(e) {
|
|
76
76
|
try {
|
|
77
|
-
|
|
77
|
+
n(e);
|
|
78
78
|
var l = !1;
|
|
79
79
|
} catch {
|
|
80
80
|
l = !0;
|
|
@@ -86,10 +86,10 @@ function pe() {
|
|
|
86
86
|
l,
|
|
87
87
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
88
|
b
|
|
89
|
-
),
|
|
89
|
+
), n(e);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function i(e) {
|
|
93
93
|
if (e === k) return "<>";
|
|
94
94
|
if (typeof e == "object" && e !== null && e.$$typeof === P)
|
|
95
95
|
return "<...>";
|
|
@@ -104,11 +104,11 @@ function pe() {
|
|
|
104
104
|
var e = C.A;
|
|
105
105
|
return e === null ? null : e.getOwner();
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function t() {
|
|
108
108
|
return Error("react-stack-top-frame");
|
|
109
109
|
}
|
|
110
110
|
function o(e) {
|
|
111
|
-
if (
|
|
111
|
+
if (q.call(e, "key")) {
|
|
112
112
|
var l = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
113
|
if (l && l.isReactWarning) return !1;
|
|
114
114
|
}
|
|
@@ -126,7 +126,7 @@ function pe() {
|
|
|
126
126
|
configurable: !0
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function c() {
|
|
130
130
|
var e = r(this.type);
|
|
131
131
|
return Y[e] || (Y[e] = !0, console.error(
|
|
132
132
|
"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."
|
|
@@ -135,14 +135,14 @@ function pe() {
|
|
|
135
135
|
function x(e, l, p, b, w, A) {
|
|
136
136
|
var m = p.ref;
|
|
137
137
|
return e = {
|
|
138
|
-
$$typeof:
|
|
138
|
+
$$typeof: M,
|
|
139
139
|
type: e,
|
|
140
140
|
key: l,
|
|
141
141
|
props: p,
|
|
142
142
|
_owner: b
|
|
143
143
|
}, (m !== void 0 ? m : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
144
|
enumerable: !1,
|
|
145
|
-
get:
|
|
145
|
+
get: c
|
|
146
146
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
147
147
|
configurable: !1,
|
|
148
148
|
enumerable: !1,
|
|
@@ -178,7 +178,7 @@ function pe() {
|
|
|
178
178
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
179
179
|
);
|
|
180
180
|
else g(m);
|
|
181
|
-
if (
|
|
181
|
+
if (q.call(l, "key")) {
|
|
182
182
|
m = r(e);
|
|
183
183
|
var j = Object.keys(l).filter(function(ue) {
|
|
184
184
|
return ue !== "key";
|
|
@@ -196,7 +196,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
196
196
|
m
|
|
197
197
|
), L[m + b] = !0);
|
|
198
198
|
}
|
|
199
|
-
if (m = null, p !== void 0 && (
|
|
199
|
+
if (m = null, p !== void 0 && (d(p), m = "" + p), o(l) && (d(l.key), m = "" + l.key), "key" in l) {
|
|
200
200
|
p = {};
|
|
201
201
|
for (var O in l)
|
|
202
202
|
O !== "key" && (p[O] = l[O]);
|
|
@@ -217,9 +217,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
217
217
|
h(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === P && (e._payload.status === "fulfilled" ? h(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
218
|
}
|
|
219
219
|
function h(e) {
|
|
220
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
220
|
+
return typeof e == "object" && e !== null && e.$$typeof === M;
|
|
221
221
|
}
|
|
222
|
-
var v = R,
|
|
222
|
+
var v = R, M = /* @__PURE__ */ Symbol.for("react.transitional.element"), K = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), ee = /* @__PURE__ */ Symbol.for("react.strict_mode"), re = /* @__PURE__ */ Symbol.for("react.profiler"), te = /* @__PURE__ */ Symbol.for("react.consumer"), se = /* @__PURE__ */ Symbol.for("react.context"), le = /* @__PURE__ */ Symbol.for("react.forward_ref"), ae = /* @__PURE__ */ Symbol.for("react.suspense"), oe = /* @__PURE__ */ Symbol.for("react.suspense_list"), ne = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), ie = /* @__PURE__ */ Symbol.for("react.activity"), de = /* @__PURE__ */ Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
|
|
223
223
|
return null;
|
|
224
224
|
};
|
|
225
225
|
v = {
|
|
@@ -229,8 +229,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
229
229
|
};
|
|
230
230
|
var F, Y = {}, z = v.react_stack_bottom_frame.bind(
|
|
231
231
|
v,
|
|
232
|
-
|
|
233
|
-
)(), D = S(
|
|
232
|
+
t
|
|
233
|
+
)(), D = S(i(t)), L = {};
|
|
234
234
|
_.Fragment = k, _.jsx = function(e, l, p) {
|
|
235
235
|
var b = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
236
236
|
return f(
|
|
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
p,
|
|
240
240
|
!1,
|
|
241
241
|
b ? Error("react-stack-top-frame") : z,
|
|
242
|
-
b ? S(
|
|
242
|
+
b ? S(i(e)) : D
|
|
243
243
|
);
|
|
244
244
|
}, _.jsxs = function(e, l, p) {
|
|
245
245
|
var b = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
p,
|
|
250
250
|
!0,
|
|
251
251
|
b ? Error("react-stack-top-frame") : z,
|
|
252
|
-
b ? S(
|
|
252
|
+
b ? S(i(e)) : D
|
|
253
253
|
);
|
|
254
254
|
};
|
|
255
255
|
})()), _;
|
|
@@ -258,7 +258,7 @@ var U;
|
|
|
258
258
|
function be() {
|
|
259
259
|
return U || (U = 1, process.env.NODE_ENV === "production" ? I.exports = fe() : I.exports = pe()), I.exports;
|
|
260
260
|
}
|
|
261
|
-
var
|
|
261
|
+
var s = be();
|
|
262
262
|
const y = (...r) => r.filter(Boolean).join(" ");
|
|
263
263
|
var N;
|
|
264
264
|
((r) => {
|
|
@@ -273,13 +273,13 @@ var N;
|
|
|
273
273
|
rounded-full
|
|
274
274
|
bg-yellow-50
|
|
275
275
|
`;
|
|
276
|
-
const
|
|
276
|
+
const n = `
|
|
277
277
|
focus-visible:outline-4
|
|
278
278
|
focus-visible:outline-black
|
|
279
279
|
focus-visible:ring-yellow-300
|
|
280
280
|
`;
|
|
281
281
|
r.focusRectCondensed = `
|
|
282
|
-
${
|
|
282
|
+
${n}
|
|
283
283
|
focus-visible:-outline-offset-4
|
|
284
284
|
focus-visible:ring-[calc(6/16*1rem)]
|
|
285
285
|
focus-visible:ring-inset
|
|
@@ -287,7 +287,7 @@ var N;
|
|
|
287
287
|
${r.focusRectCondensed}
|
|
288
288
|
focus-visible:bg-yellow-300
|
|
289
289
|
`, r.focusRect = `
|
|
290
|
-
${
|
|
290
|
+
${n}
|
|
291
291
|
focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
292
292
|
focus-visible:ring-[calc(2/16*1rem)]
|
|
293
293
|
`, r.focusRounded = `
|
|
@@ -331,13 +331,13 @@ var N;
|
|
|
331
331
|
absolute
|
|
332
332
|
top-11
|
|
333
333
|
left-0
|
|
334
|
-
`, ((
|
|
335
|
-
|
|
334
|
+
`, ((d) => {
|
|
335
|
+
d.focus = `
|
|
336
336
|
peer-focus-visible:outline-4
|
|
337
337
|
peer-focus-visible:outline-black
|
|
338
338
|
peer-focus-visible:ring-yellow-300
|
|
339
|
-
`,
|
|
340
|
-
${
|
|
339
|
+
`, d.focusRect = `
|
|
340
|
+
${d.focus}
|
|
341
341
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
342
342
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
343
343
|
`;
|
|
@@ -415,8 +415,8 @@ const T = R.createContext({
|
|
|
415
415
|
md: "w-[18px] h-[18px] mr-1.5",
|
|
416
416
|
sm: "w-[18px] h-[18px] mr-1"
|
|
417
417
|
}, Z = (r) => {
|
|
418
|
-
const { id:
|
|
419
|
-
|
|
418
|
+
const { id: n, className: d, size: i = "lg", children: a, ...t } = r, o = R.useId(), u = n || o, c = R.useContext(T);
|
|
419
|
+
c.isRequired && (t.required = !0), c.groupName && (t.name = c.groupName);
|
|
420
420
|
const x = {
|
|
421
421
|
lg: 22 / 24,
|
|
422
422
|
md: 18 / 24,
|
|
@@ -437,30 +437,29 @@ const T = R.createContext({
|
|
|
437
437
|
peer-disabled:border-solid-gray-500
|
|
438
438
|
${N.Peer.focusRect}
|
|
439
439
|
`;
|
|
440
|
-
return /* @__PURE__ */
|
|
440
|
+
return /* @__PURE__ */ s.jsx(
|
|
441
441
|
"label",
|
|
442
442
|
{
|
|
443
443
|
htmlFor: u,
|
|
444
444
|
className: y(
|
|
445
445
|
J,
|
|
446
|
-
H[
|
|
447
|
-
|
|
446
|
+
H[i],
|
|
447
|
+
d
|
|
448
448
|
),
|
|
449
|
-
children: /* @__PURE__ */
|
|
450
|
-
/* @__PURE__ */
|
|
449
|
+
children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
450
|
+
/* @__PURE__ */ s.jsx(
|
|
451
451
|
"input",
|
|
452
452
|
{
|
|
453
453
|
id: u,
|
|
454
454
|
className: f,
|
|
455
455
|
type: "checkbox",
|
|
456
|
-
"aria-describedby":
|
|
457
|
-
"aria-errormessage":
|
|
458
|
-
"aria-invalid":
|
|
459
|
-
|
|
460
|
-
...s
|
|
456
|
+
"aria-describedby": c.helperTextId,
|
|
457
|
+
"aria-errormessage": c.errorMessageId,
|
|
458
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
459
|
+
...t
|
|
461
460
|
}
|
|
462
461
|
),
|
|
463
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ s.jsx("span", { className: y(g, X[i]), children: /* @__PURE__ */ s.jsx(
|
|
464
463
|
"svg",
|
|
465
464
|
{
|
|
466
465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -468,18 +467,18 @@ const T = R.createContext({
|
|
|
468
467
|
width: "24",
|
|
469
468
|
height: "24",
|
|
470
469
|
viewBox: "0 0 24 24",
|
|
471
|
-
children: /* @__PURE__ */
|
|
470
|
+
children: /* @__PURE__ */ s.jsx("g", { transform: `scale(${x[i]} ${x[i]})`, 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" }) })
|
|
472
471
|
}
|
|
473
472
|
) }),
|
|
474
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
|
|
475
474
|
] })
|
|
476
475
|
}
|
|
477
476
|
);
|
|
478
477
|
};
|
|
479
478
|
Z.displayName = "Checkbox";
|
|
480
479
|
const Q = (r) => {
|
|
481
|
-
const { id:
|
|
482
|
-
|
|
480
|
+
const { id: n, className: d, size: i = "lg", children: a, ...t } = r, o = R.useId(), u = n || o, c = R.useContext(T);
|
|
481
|
+
c.isRequired && (t.required = !0), c.groupName && (t.name = c.groupName);
|
|
483
482
|
const x = `
|
|
484
483
|
peer
|
|
485
484
|
sr-only
|
|
@@ -498,49 +497,48 @@ const Q = (r) => {
|
|
|
498
497
|
md: "p-[3px]",
|
|
499
498
|
sm: "p-[3px]"
|
|
500
499
|
};
|
|
501
|
-
return /* @__PURE__ */
|
|
500
|
+
return /* @__PURE__ */ s.jsx(
|
|
502
501
|
"label",
|
|
503
502
|
{
|
|
504
503
|
htmlFor: u,
|
|
505
504
|
className: y(
|
|
506
505
|
J,
|
|
507
|
-
H[
|
|
508
|
-
|
|
506
|
+
H[i],
|
|
507
|
+
d
|
|
509
508
|
),
|
|
510
|
-
children: /* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */
|
|
509
|
+
children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
|
|
510
|
+
/* @__PURE__ */ s.jsx(
|
|
512
511
|
"input",
|
|
513
512
|
{
|
|
514
513
|
id: u,
|
|
515
514
|
className: x,
|
|
516
515
|
type: "radio",
|
|
517
|
-
"aria-describedby":
|
|
518
|
-
"aria-errormessage":
|
|
519
|
-
"aria-invalid":
|
|
520
|
-
|
|
521
|
-
...s
|
|
516
|
+
"aria-describedby": c.helperTextId,
|
|
517
|
+
"aria-errormessage": c.errorMessageId,
|
|
518
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
519
|
+
...t
|
|
522
520
|
}
|
|
523
521
|
),
|
|
524
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ s.jsx(
|
|
525
523
|
"span",
|
|
526
524
|
{
|
|
527
525
|
"aria-hidden": !0,
|
|
528
|
-
className: y(f, g[
|
|
526
|
+
className: y(f, g[i], X[i])
|
|
529
527
|
}
|
|
530
528
|
),
|
|
531
|
-
/* @__PURE__ */
|
|
529
|
+
/* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
|
|
532
530
|
] })
|
|
533
531
|
}
|
|
534
532
|
);
|
|
535
533
|
};
|
|
536
534
|
Q.displayName = "Radio";
|
|
537
535
|
const me = (r) => {
|
|
538
|
-
const { id:
|
|
539
|
-
return o.isRequired && (
|
|
540
|
-
/* @__PURE__ */
|
|
536
|
+
const { id: n, className: d, size: i = "lg", children: a, ...t } = r, o = R.useContext(T);
|
|
537
|
+
return o.isRequired && (t.required = !0), /* @__PURE__ */ s.jsxs("div", { className: "inline-block relative", children: [
|
|
538
|
+
/* @__PURE__ */ s.jsx(
|
|
541
539
|
"select",
|
|
542
540
|
{
|
|
543
|
-
id:
|
|
541
|
+
id: n || o.id,
|
|
544
542
|
className: y(
|
|
545
543
|
`
|
|
546
544
|
!pr-8
|
|
@@ -549,18 +547,17 @@ const me = (r) => {
|
|
|
549
547
|
appearance-none
|
|
550
548
|
`,
|
|
551
549
|
G,
|
|
552
|
-
V[
|
|
553
|
-
|
|
550
|
+
V[i],
|
|
551
|
+
d
|
|
554
552
|
),
|
|
555
553
|
"aria-describedby": o.helperTextId,
|
|
556
554
|
"aria-errormessage": o.errorMessageId,
|
|
557
555
|
"aria-invalid": o.isInvalid ?? !1,
|
|
558
|
-
|
|
559
|
-
...s,
|
|
556
|
+
...t,
|
|
560
557
|
children: a
|
|
561
558
|
}
|
|
562
559
|
),
|
|
563
|
-
/* @__PURE__ */
|
|
560
|
+
/* @__PURE__ */ s.jsxs(
|
|
564
561
|
"svg",
|
|
565
562
|
{
|
|
566
563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -579,8 +576,8 @@ const me = (r) => {
|
|
|
579
576
|
height: "16",
|
|
580
577
|
viewBox: "0 0 16 16",
|
|
581
578
|
children: [
|
|
582
|
-
/* @__PURE__ */
|
|
583
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ s.jsx("title", { children: "arrow down" }),
|
|
580
|
+
/* @__PURE__ */ s.jsx(
|
|
584
581
|
"path",
|
|
585
582
|
{
|
|
586
583
|
d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
|
|
@@ -594,8 +591,8 @@ const me = (r) => {
|
|
|
594
591
|
};
|
|
595
592
|
me.displayName = "Select";
|
|
596
593
|
const xe = (r) => {
|
|
597
|
-
const { id:
|
|
598
|
-
|
|
594
|
+
const { id: n, className: d, size: i = "lg", ...a } = r, t = R.useContext(T);
|
|
595
|
+
t.isRequired && (a.required = !0);
|
|
599
596
|
const o = `
|
|
600
597
|
file:mr-2
|
|
601
598
|
file:inline-block
|
|
@@ -621,7 +618,7 @@ const xe = (r) => {
|
|
|
621
618
|
file:active:bg-blue-300
|
|
622
619
|
file:disabled:text-solid-gray-500
|
|
623
620
|
file:disabled:bg-transparent
|
|
624
|
-
`,
|
|
621
|
+
`, c = `
|
|
625
622
|
text-label
|
|
626
623
|
text-solid-gray-900
|
|
627
624
|
rounded-lg
|
|
@@ -654,54 +651,46 @@ const xe = (r) => {
|
|
|
654
651
|
file:leading-snug
|
|
655
652
|
`
|
|
656
653
|
};
|
|
657
|
-
return (
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
"aria-invalid": s.isInvalid ?? !1,
|
|
669
|
-
"aria-required": s.isRequired ?? !1,
|
|
670
|
-
role: "button",
|
|
671
|
-
"aria-label": "File Upload",
|
|
672
|
-
...a
|
|
673
|
-
}
|
|
674
|
-
)
|
|
654
|
+
return /* @__PURE__ */ s.jsx(
|
|
655
|
+
"input",
|
|
656
|
+
{
|
|
657
|
+
type: "file",
|
|
658
|
+
id: n || t.id,
|
|
659
|
+
className: y(o, u, x[i], c, d),
|
|
660
|
+
"aria-describedby": t.helperTextId,
|
|
661
|
+
"aria-errormessage": t.errorMessageId,
|
|
662
|
+
"aria-invalid": t.isInvalid ?? !1,
|
|
663
|
+
...a
|
|
664
|
+
}
|
|
675
665
|
);
|
|
676
666
|
};
|
|
677
667
|
xe.displayName = "FileInput";
|
|
678
668
|
const ge = (r) => {
|
|
679
|
-
const { id:
|
|
680
|
-
return
|
|
669
|
+
const { id: n, className: d, size: i = "lg", ...a } = r, t = R.useContext(T);
|
|
670
|
+
return t.isRequired && (a.required = !0), /* @__PURE__ */ s.jsx(
|
|
681
671
|
"input",
|
|
682
672
|
{
|
|
683
673
|
type: "text",
|
|
684
|
-
id:
|
|
674
|
+
id: n || t.id,
|
|
685
675
|
className: y(
|
|
686
676
|
G,
|
|
687
|
-
V[
|
|
688
|
-
|
|
677
|
+
V[i],
|
|
678
|
+
d
|
|
689
679
|
),
|
|
690
|
-
"aria-describedby":
|
|
691
|
-
"aria-errormessage":
|
|
692
|
-
"aria-invalid":
|
|
693
|
-
"aria-required": s.isRequired ?? !1,
|
|
680
|
+
"aria-describedby": t.helperTextId,
|
|
681
|
+
"aria-errormessage": t.errorMessageId,
|
|
682
|
+
"aria-invalid": t.isInvalid ?? !1,
|
|
694
683
|
...a
|
|
695
684
|
}
|
|
696
685
|
);
|
|
697
686
|
};
|
|
698
687
|
ge.displayName = "Input";
|
|
699
688
|
const he = (r) => {
|
|
700
|
-
const { id:
|
|
701
|
-
a && a(v),
|
|
689
|
+
const { id: n, className: d, children: i, onChange: a, maxLength: t, ...o } = r, [u, c] = R.useState(0), x = (v) => {
|
|
690
|
+
a && a(v), c(v.target.value.length);
|
|
702
691
|
}, f = R.useContext(T);
|
|
703
692
|
f.isRequired && (o.required = !0);
|
|
704
|
-
const g = u > (
|
|
693
|
+
const g = u > (t || 0) ? "text-red-800" : "text-solid-gray-700", h = `
|
|
705
694
|
p-4
|
|
706
695
|
text-label
|
|
707
696
|
rounded-lg
|
|
@@ -714,100 +703,99 @@ const he = (r) => {
|
|
|
714
703
|
aria-invalid:border-red-800
|
|
715
704
|
${N.focusRect}
|
|
716
705
|
`;
|
|
717
|
-
return /* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
706
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
707
|
+
/* @__PURE__ */ s.jsx(
|
|
719
708
|
"textarea",
|
|
720
709
|
{
|
|
721
|
-
id:
|
|
722
|
-
className: y(h,
|
|
710
|
+
id: n || f.id,
|
|
711
|
+
className: y(h, d),
|
|
723
712
|
"aria-describedby": f.helperTextId,
|
|
724
713
|
"aria-errormessage": f.errorMessageId,
|
|
725
714
|
"aria-invalid": f.isInvalid ?? !1,
|
|
726
|
-
"aria-required": f.isRequired ?? !1,
|
|
727
715
|
onChange: x,
|
|
728
716
|
...o,
|
|
729
|
-
children:
|
|
717
|
+
children: i
|
|
730
718
|
}
|
|
731
719
|
),
|
|
732
|
-
|
|
733
|
-
/* @__PURE__ */
|
|
720
|
+
t ? /* @__PURE__ */ s.jsxs("p", { className: "text-label text-solid-gray-700", children: [
|
|
721
|
+
/* @__PURE__ */ s.jsx("span", { className: g, children: u }),
|
|
734
722
|
"/",
|
|
735
|
-
/* @__PURE__ */
|
|
723
|
+
/* @__PURE__ */ s.jsx("span", { children: t })
|
|
736
724
|
] }) : ""
|
|
737
725
|
] });
|
|
738
726
|
};
|
|
739
727
|
he.displayName = "Textarea";
|
|
740
728
|
const ve = (r) => {
|
|
741
|
-
const
|
|
742
|
-
labelText:
|
|
743
|
-
className:
|
|
729
|
+
const n = R.useId(), {
|
|
730
|
+
labelText: d,
|
|
731
|
+
className: i,
|
|
744
732
|
helperText: a,
|
|
745
|
-
errorMessage:
|
|
733
|
+
errorMessage: t,
|
|
746
734
|
isInvalid: o,
|
|
747
735
|
isRequired: u,
|
|
748
|
-
children:
|
|
736
|
+
children: c,
|
|
749
737
|
...x
|
|
750
738
|
} = r, f = {
|
|
751
|
-
id: r.htmlFor ?? `input-${
|
|
752
|
-
helperTextId: `helper-text-${
|
|
753
|
-
errorMessageId: `error-message-${
|
|
739
|
+
id: r.htmlFor ?? `input-${n}`,
|
|
740
|
+
helperTextId: `helper-text-${n}`,
|
|
741
|
+
errorMessageId: `error-message-${n}`,
|
|
754
742
|
isInvalid: o ?? !1,
|
|
755
743
|
isRequired: u ?? !1
|
|
756
744
|
};
|
|
757
|
-
return /* @__PURE__ */
|
|
758
|
-
/* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ s.jsx(T.Provider, { value: f, children: /* @__PURE__ */ s.jsxs("div", { className: y("flex flex-col items-start gap-2", i), children: [
|
|
746
|
+
/* @__PURE__ */ s.jsxs(
|
|
759
747
|
"label",
|
|
760
748
|
{
|
|
761
749
|
className: y("block text-label", o && "text-red-800"),
|
|
762
750
|
htmlFor: f.id,
|
|
763
751
|
...x,
|
|
764
752
|
children: [
|
|
765
|
-
|
|
766
|
-
u && /* @__PURE__ */
|
|
753
|
+
d,
|
|
754
|
+
u && /* @__PURE__ */ s.jsx("span", { className: "text-label text-red-800", children: " *" })
|
|
767
755
|
]
|
|
768
756
|
}
|
|
769
757
|
),
|
|
770
|
-
a && /* @__PURE__ */
|
|
758
|
+
a && /* @__PURE__ */ s.jsx("p", { id: f.helperTextId, className: `
|
|
771
759
|
text-label text-solid-gray-700
|
|
772
760
|
`, children: a }),
|
|
773
|
-
|
|
774
|
-
o && /* @__PURE__ */
|
|
761
|
+
c,
|
|
762
|
+
o && /* @__PURE__ */ s.jsx("p", { id: f.errorMessageId, className: `
|
|
775
763
|
text-label text-red-800
|
|
776
|
-
`, children:
|
|
764
|
+
`, children: t })
|
|
777
765
|
] }) });
|
|
778
766
|
};
|
|
779
767
|
ve.displayName = "LabelControl";
|
|
780
768
|
const $ = (r) => {
|
|
781
|
-
const
|
|
782
|
-
labelText:
|
|
783
|
-
className:
|
|
769
|
+
const n = R.useId(), {
|
|
770
|
+
labelText: d,
|
|
771
|
+
className: i,
|
|
784
772
|
helperText: a,
|
|
785
|
-
errorMessage:
|
|
773
|
+
errorMessage: t,
|
|
786
774
|
isInvalid: o,
|
|
787
775
|
isRequired: u,
|
|
788
|
-
direction:
|
|
776
|
+
direction: c,
|
|
789
777
|
children: x,
|
|
790
778
|
...f
|
|
791
779
|
} = r, h = {
|
|
792
|
-
groupName: f.name ?? `group-${
|
|
793
|
-
helperTextId: `helper-text-${
|
|
794
|
-
errorMessageId: `error-message-${
|
|
780
|
+
groupName: f.name ?? `group-${n}`,
|
|
781
|
+
helperTextId: `helper-text-${n}`,
|
|
782
|
+
errorMessageId: `error-message-${n}`,
|
|
795
783
|
isInvalid: o ?? !1,
|
|
796
784
|
isRequired: u ?? !1
|
|
797
|
-
}, v =
|
|
798
|
-
return /* @__PURE__ */
|
|
785
|
+
}, v = c ?? "flex-col";
|
|
786
|
+
return /* @__PURE__ */ s.jsx(T.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(
|
|
799
787
|
"fieldset",
|
|
800
788
|
{
|
|
801
|
-
className: y("flex flex-col items-start gap-2",
|
|
789
|
+
className: y("flex flex-col items-start gap-2", i),
|
|
802
790
|
...f,
|
|
803
791
|
children: [
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
|
|
806
|
-
u && /* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
|
|
793
|
+
d,
|
|
794
|
+
u && /* @__PURE__ */ s.jsx("span", { className: "text-red-800", children: " *" })
|
|
807
795
|
] }) }),
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
a && /* @__PURE__ */
|
|
810
|
-
o && /* @__PURE__ */
|
|
796
|
+
/* @__PURE__ */ s.jsx("div", { className: y("inline-flex", v), children: x }),
|
|
797
|
+
a && /* @__PURE__ */ s.jsx("p", { id: h.helperTextId, className: "text-sup text-solid-gray-700", children: a }),
|
|
798
|
+
o && /* @__PURE__ */ s.jsx("p", { id: h.errorMessageId, className: "text-label text-red-800", children: t })
|
|
811
799
|
]
|
|
812
800
|
}
|
|
813
801
|
) });
|
|
@@ -815,33 +803,33 @@ const $ = (r) => {
|
|
|
815
803
|
$.displayName = "FieldsetControl";
|
|
816
804
|
const ye = (r) => {
|
|
817
805
|
const {
|
|
818
|
-
items:
|
|
819
|
-
onChange:
|
|
820
|
-
className:
|
|
806
|
+
items: n,
|
|
807
|
+
onChange: d,
|
|
808
|
+
className: i,
|
|
821
809
|
labelText: a,
|
|
822
|
-
helperText:
|
|
810
|
+
helperText: t,
|
|
823
811
|
errorMessage: o,
|
|
824
812
|
isInvalid: u,
|
|
825
|
-
isRequired:
|
|
813
|
+
isRequired: c,
|
|
826
814
|
size: x,
|
|
827
815
|
...f
|
|
828
816
|
} = r;
|
|
829
|
-
return /* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ s.jsx(
|
|
830
818
|
$,
|
|
831
819
|
{
|
|
832
|
-
className:
|
|
820
|
+
className: i,
|
|
833
821
|
labelText: a,
|
|
834
|
-
helperText:
|
|
822
|
+
helperText: t,
|
|
835
823
|
errorMessage: o,
|
|
836
824
|
isInvalid: u,
|
|
837
|
-
isRequired:
|
|
825
|
+
isRequired: c,
|
|
838
826
|
...f,
|
|
839
|
-
children:
|
|
827
|
+
children: n.map(({ label: g, value: h }) => /* @__PURE__ */ s.jsx(
|
|
840
828
|
Z,
|
|
841
829
|
{
|
|
842
830
|
size: x,
|
|
843
831
|
value: h,
|
|
844
|
-
onChange:
|
|
832
|
+
onChange: d,
|
|
845
833
|
children: g
|
|
846
834
|
},
|
|
847
835
|
`${g}-${h}`
|
|
@@ -852,34 +840,34 @@ const ye = (r) => {
|
|
|
852
840
|
ye.displayName = "CheckboxGroup";
|
|
853
841
|
const Re = (r) => {
|
|
854
842
|
const {
|
|
855
|
-
items:
|
|
856
|
-
onChange:
|
|
857
|
-
className:
|
|
843
|
+
items: n,
|
|
844
|
+
onChange: d,
|
|
845
|
+
className: i,
|
|
858
846
|
labelText: a,
|
|
859
|
-
helperText:
|
|
847
|
+
helperText: t,
|
|
860
848
|
errorMessage: o,
|
|
861
849
|
isInvalid: u,
|
|
862
|
-
isRequired:
|
|
850
|
+
isRequired: c,
|
|
863
851
|
defaultValue: x,
|
|
864
852
|
size: f,
|
|
865
853
|
...g
|
|
866
854
|
} = r;
|
|
867
|
-
return /* @__PURE__ */
|
|
855
|
+
return /* @__PURE__ */ s.jsx(
|
|
868
856
|
$,
|
|
869
857
|
{
|
|
870
|
-
className:
|
|
858
|
+
className: i,
|
|
871
859
|
labelText: a,
|
|
872
|
-
helperText:
|
|
860
|
+
helperText: t,
|
|
873
861
|
errorMessage: o,
|
|
874
862
|
isInvalid: u,
|
|
875
|
-
isRequired:
|
|
863
|
+
isRequired: c,
|
|
876
864
|
...g,
|
|
877
|
-
children:
|
|
865
|
+
children: n.map(({ label: h, value: v }) => /* @__PURE__ */ s.jsx(
|
|
878
866
|
Q,
|
|
879
867
|
{
|
|
880
868
|
size: f,
|
|
881
869
|
value: v,
|
|
882
|
-
onChange:
|
|
870
|
+
onChange: d,
|
|
883
871
|
defaultChecked: x === v,
|
|
884
872
|
children: h
|
|
885
873
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAIf,MAAM,cAAc,CAAA;AAErB,yBAAiB,QAAQ,CAAC;IACxB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,QAAQ;YAAW,QAAQ,CAAC,KAAK;;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAIf,MAAM,cAAc,CAAA;AAErB,yBAAiB,QAAQ,CAAC;IACxB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,QAAQ;YAAW,QAAQ,CAAC,KAAK;;CAyE7C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,yBAAiB,SAAS,CAAC;IACzB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,SAAS;YAAW,SAAS,CAAC,KAAK;;
|
|
1
|
+
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,yBAAiB,SAAS,CAAC;IACzB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,SAAS;YAAW,SAAS,CAAC,KAAK;;CAsF/C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,yBAAiB,KAAK,CAAC;IACrB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,KAAK;YAAW,KAAK,CAAC,KAAK;;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,yBAAiB,KAAK,CAAC;IACrB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,KAAK;YAAW,KAAK,CAAC,KAAK;;CAsBvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAIf,MAAM,cAAc,CAAA;AAErB,yBAAiB,KAAK,CAAC;IACrB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,KAAK;YAAW,KAAK,CAAC,KAAK;;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAIf,MAAM,cAAc,CAAA;AAErB,yBAAiB,KAAK,CAAC;IACrB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QACzE,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,KAAK;YAAW,KAAK,CAAC,KAAK;;CA8DvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,yBAAiB,MAAM,CAAC;IACtB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC1E,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,MAAM;YAAW,MAAM,CAAC,KAAK;;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAGzD,OAAO,EACL,KAAK,SAAS,EAGf,MAAM,cAAc,CAAA;AAErB,yBAAiB,MAAM,CAAC;IACtB,UAAiB,KAAM,SAAQ,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC1E,IAAI,CAAC,EAAE,SAAS,CAAA;KACjB;CACF;AAED,eAAO,MAAM,MAAM;YAAW,MAAM,CAAC,KAAK;;CA0DzC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAIzD,yBAAiB,QAAQ,CAAC;IACxB,UAAiB,KAAM,SAAQ,qBAAqB,CAAC,UAAU,CAAC;KAAG;CACpE;AAED,eAAO,MAAM,QAAQ;YAAW,QAAQ,CAAC,KAAK;;
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAIzD,yBAAiB,QAAQ,CAAC;IACxB,UAAiB,KAAM,SAAQ,qBAAqB,CAAC,UAAU,CAAC;KAAG;CACpE;AAED,eAAO,MAAM,QAAQ;YAAW,QAAQ,CAAC,KAAK;;CAwD7C,CAAA"}
|