@sakura-ui/forms 0.4.1 → 0.4.3
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 +20 -28
- package/dist/index.es.js +119 -139
- 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 +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react");var k={exports:{}},E={};var U;function ve(){if(U)return E;U=1;var r=Symbol.for("react.transitional.element"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react");var k={exports:{}},E={};var U;function ve(){if(U)return E;U=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function d(i,a,t){var o=null;if(t!==void 0&&(o=""+t),a.key!==void 0&&(o=""+a.key),"key"in a){t={};for(var u in a)u!=="key"&&(t[u]=a[u])}else t=a;return a=t.ref,{$$typeof:r,type:i,key:o,ref:a!==void 0?a:null,props:t}}return E.Fragment=n,E.jsx=d,E.jsxs=d,E}var _={};var B;function ye(){return B||(B=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 oe: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 a(){var e=S.A;return e===null?null:e.getOwner()}function t(){return Error("react-stack-top-frame")}function o(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 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 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}",G[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),
|
|
6
|
+
<%s key={someKey} {...props} />`,b,x,j,x),G[x+b]=!0)}if(x=null,p!==void 0&&(d(p),x=""+p),o(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,a(),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"),oe=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,D={},L=v.react_stack_bottom_frame.bind(v,t)(),W=O(i(t)),G={};_.Fragment=C,_.jsx=function(e,l,p){var b=1e4>S.recentlyCreatedOwnerStacks++;return f(e,l,p,!1,b?Error("react-stack-top-frame"):L,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"):L,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
|
|
10
10
|
border-transparent
|
|
11
11
|
rounded-lg
|
|
12
|
-
hover:bg-solid-
|
|
12
|
+
hover:bg-solid-gray-50
|
|
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=`
|
|
@@ -60,22 +60,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
60
60
|
shadow-1
|
|
61
61
|
rounded-lg
|
|
62
62
|
border
|
|
63
|
-
border-solid-
|
|
63
|
+
border-solid-gray-420
|
|
64
64
|
has-[>:nth-child(7)]:rounded-r-none
|
|
65
|
-
`,
|
|
66
|
-
absolute
|
|
67
|
-
top-11
|
|
68
|
-
right-0
|
|
69
|
-
`,r.popoverPositionBottomLeft=`
|
|
70
|
-
absolute
|
|
71
|
-
top-11
|
|
72
|
-
left-0
|
|
73
|
-
`,(c=>{c.focus=`
|
|
65
|
+
`,(d=>{d.focus=`
|
|
74
66
|
peer-focus-visible:outline-4
|
|
75
67
|
peer-focus-visible:outline-black
|
|
76
68
|
peer-focus-visible:ring-yellow-300
|
|
77
|
-
`,
|
|
78
|
-
${
|
|
69
|
+
`,d.focusRect=`
|
|
70
|
+
${d.focus}
|
|
79
71
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
80
72
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
81
73
|
`})(r.Peer||(r.Peer={}))})(N||(N={}));const T=R.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),J=`
|
|
@@ -126,7 +118,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
126
118
|
py-2
|
|
127
119
|
text-label
|
|
128
120
|
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"},
|
|
121
|
+
`},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:a,...t}=r,o=R.useId(),u=n||o,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
122
|
peer
|
|
131
123
|
sr-only
|
|
132
124
|
`,g=`
|
|
@@ -141,7 +133,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
141
133
|
peer-checked:border-none
|
|
142
134
|
peer-disabled:border-solid-gray-500
|
|
143
135
|
${N.Peer.focusRect}
|
|
144
|
-
`;return s.jsx("label",{htmlFor:u,className:y(X,Z[
|
|
136
|
+
`;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:a})]})})};M.displayName="Checkbox";const q=r=>{const{id:n,className:d,size:i="lg",children:a,...t}=r,o=R.useId(),u=n||o,c=R.useContext(T);c.isRequired&&(t.required=!0),c.groupName&&(t.name=c.groupName);const m=`
|
|
145
137
|
peer
|
|
146
138
|
sr-only
|
|
147
139
|
`,f=`
|
|
@@ -154,12 +146,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
154
146
|
peer-checked:border-blue-600
|
|
155
147
|
peer-disabled:border-solid-gray-500
|
|
156
148
|
${N.Peer.focusRect}
|
|
157
|
-
`,g={lg:"p-1",md:"p-[3px]",sm:"p-[3px]"};return s.jsx("label",{htmlFor:u,className:y(X,Z[
|
|
149
|
+
`,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:a})]})})};q.displayName="Radio";const K=r=>{const{id:n,className:d,size:i="lg",children:a,...t}=r,o=R.useContext(T);return o.isRequired&&(t.required=!0),s.jsxs("div",{className:"inline-block relative",children:[s.jsx("select",{id:n||o.id,className:y(`
|
|
158
150
|
!pr-8
|
|
159
151
|
peer
|
|
160
152
|
cursor-pointer
|
|
161
153
|
appearance-none
|
|
162
|
-
`,J,H[
|
|
154
|
+
`,J,H[i],d),"aria-describedby":o.helperTextId,"aria-errormessage":o.errorMessageId,"aria-invalid":o.isInvalid??!1,...t,children:a}),s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:`
|
|
163
155
|
pointer-events-none
|
|
164
156
|
absolute
|
|
165
157
|
right-4
|
|
@@ -167,7 +159,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
167
159
|
-translate-y-1/2
|
|
168
160
|
text-solid-gray-900
|
|
169
161
|
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:
|
|
162
|
+
`,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",...a}=r,t=R.useContext(T);t.isRequired&&(a.required=!0);const o=`
|
|
171
163
|
file:mr-2
|
|
172
164
|
file:inline-block
|
|
173
165
|
file:text-button
|
|
@@ -192,7 +184,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
192
184
|
file:active:bg-blue-300
|
|
193
185
|
file:disabled:text-solid-gray-500
|
|
194
186
|
file:disabled:bg-transparent
|
|
195
|
-
`,
|
|
187
|
+
`,c=`
|
|
196
188
|
text-label
|
|
197
189
|
text-solid-gray-900
|
|
198
190
|
rounded-lg
|
|
@@ -217,7 +209,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
217
209
|
file:text-button
|
|
218
210
|
file:rounded-md
|
|
219
211
|
file:leading-snug
|
|
220
|
-
`};return s.jsx("input",{type:"file",id:
|
|
212
|
+
`};return s.jsx("input",{type:"file",id:n||t.id,className:y(o,u,m[i],c,d),"aria-describedby":t.helperTextId,"aria-errormessage":t.errorMessageId,"aria-invalid":t.isInvalid??!1,...a})};ee.displayName="FileInput";const re=r=>{const{id:n,className:d,size:i="lg",...a}=r,t=R.useContext(T);return t.isRequired&&(a.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,...a})};re.displayName="Input";const te=r=>{const{id:n,className:d,children:i,onChange:a,maxLength:t,...o}=r,[u,c]=R.useState(0),m=v=>{a&&a(v),c(v.target.value.length)},f=R.useContext(T);f.isRequired&&(o.required=!0);const g=u>(t||0)?"text-red-800":"text-solid-gray-700",h=`
|
|
221
213
|
p-4
|
|
222
214
|
text-label
|
|
223
215
|
rounded-lg
|
|
@@ -229,8 +221,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
229
221
|
disabled:border-solid-gray-500
|
|
230
222
|
aria-invalid:border-red-800
|
|
231
223
|
${N.focusRect}
|
|
232
|
-
`;return s.jsxs(s.Fragment,{children:[s.jsx("textarea",{id:
|
|
224
|
+
`;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,...o,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:a,errorMessage:t,isInvalid:o,isRequired:u,children:c,...m}=r,f={id:r.htmlFor??`input-${n}`,helperTextId:`helper-text-${n}`,errorMessageId:`error-message-${n}`,isInvalid:o??!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",o&&"text-red-800"),htmlFor:f.id,...m,children:[d,u&&s.jsx("span",{className:"text-label text-red-800",children:" *"})]}),a&&s.jsx("p",{id:f.helperTextId,className:`
|
|
233
225
|
text-label text-solid-gray-700
|
|
234
|
-
`,children:a}),
|
|
226
|
+
`,children:a}),c,o&&s.jsx("p",{id:f.errorMessageId,className:`
|
|
235
227
|
text-label text-red-800
|
|
236
|
-
`,children:t})]})})};se.displayName="LabelControl";const w=r=>{const
|
|
228
|
+
`,children:t})]})})};se.displayName="LabelControl";const w=r=>{const n=R.useId(),{labelText:d,className:i,helperText:a,errorMessage:t,isInvalid:o,isRequired:u,direction:c,children:m,...f}=r,h={groupName:f.name??`group-${n}`,helperTextId:`helper-text-${n}`,errorMessageId:`error-message-${n}`,isInvalid:o??!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",o&&"text-red-800"),children:[d,u&&s.jsx("span",{className:"text-red-800",children:" *"})]})}),s.jsx("div",{className:y("inline-flex",v),children:m}),a&&s.jsx("p",{id:h.helperTextId,className:"text-sup text-solid-gray-700",children:a}),o&&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:a,helperText:t,errorMessage:o,isInvalid:u,isRequired:c,size:m,...f}=r;return s.jsx(w,{className:i,labelText:a,helperText:t,errorMessage:o,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 ae=r=>{const{items:n,onChange:d,className:i,labelText:a,helperText:t,errorMessage:o,isInvalid:u,isRequired:c,defaultValue:m,size:f,...g}=r;return s.jsx(w,{className:i,labelText:a,helperText:t,errorMessage:o,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}`))})};ae.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=ae;exports.Select=K;exports.Textarea=te;
|
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import R from "react";
|
|
2
2
|
var I = { exports: {} }, E = {};
|
|
3
|
-
var
|
|
3
|
+
var L;
|
|
4
4
|
function fe() {
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
var r = /* @__PURE__ */ Symbol.for("react.transitional.element"),
|
|
8
|
-
function
|
|
5
|
+
if (L) return E;
|
|
6
|
+
L = 1;
|
|
7
|
+
var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
8
|
+
function d(i, a, s) {
|
|
9
9
|
var o = null;
|
|
10
10
|
if (s !== void 0 && (o = "" + s), a.key !== void 0 && (o = "" + a.key), "key" in a) {
|
|
11
11
|
s = {};
|
|
@@ -14,18 +14,18 @@ function fe() {
|
|
|
14
14
|
} else s = a;
|
|
15
15
|
return a = s.ref, {
|
|
16
16
|
$$typeof: r,
|
|
17
|
-
type:
|
|
17
|
+
type: i,
|
|
18
18
|
key: o,
|
|
19
19
|
ref: a !== void 0 ? a : null,
|
|
20
20
|
props: s
|
|
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
|
-
var
|
|
26
|
+
var U;
|
|
27
27
|
function pe() {
|
|
28
|
-
return
|
|
28
|
+
return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
29
|
function r(e) {
|
|
30
30
|
if (e == null) return null;
|
|
31
31
|
if (typeof e == "function")
|
|
@@ -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")
|
|
@@ -58,7 +58,7 @@ function pe() {
|
|
|
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 "<...>";
|
|
@@ -108,7 +108,7 @@ function pe() {
|
|
|
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,12 +178,12 @@ 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";
|
|
185
185
|
});
|
|
186
|
-
b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
186
|
+
b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", W[m + b] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
187
|
`A props object containing a "key" prop is being spread into JSX:
|
|
188
188
|
let props = %s;
|
|
189
189
|
<%s {...props} />
|
|
@@ -194,9 +194,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
194
194
|
m,
|
|
195
195
|
j,
|
|
196
196
|
m
|
|
197
|
-
),
|
|
197
|
+
), W[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"), se = /* @__PURE__ */ Symbol.for("react.consumer"), te = /* @__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 = {
|
|
@@ -230,7 +230,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
230
230
|
var F, Y = {}, z = v.react_stack_bottom_frame.bind(
|
|
231
231
|
v,
|
|
232
232
|
s
|
|
233
|
-
)(), D = S(
|
|
233
|
+
)(), D = S(i(s)), W = {};
|
|
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,14 +249,14 @@ 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
|
})()), _;
|
|
256
256
|
}
|
|
257
|
-
var
|
|
257
|
+
var B;
|
|
258
258
|
function be() {
|
|
259
|
-
return
|
|
259
|
+
return B || (B = 1, process.env.NODE_ENV === "production" ? I.exports = fe() : I.exports = pe()), I.exports;
|
|
260
260
|
}
|
|
261
261
|
var t = be();
|
|
262
262
|
const y = (...r) => r.filter(Boolean).join(" ");
|
|
@@ -268,18 +268,18 @@ var N;
|
|
|
268
268
|
border
|
|
269
269
|
border-transparent
|
|
270
270
|
rounded-lg
|
|
271
|
-
hover:bg-solid-
|
|
271
|
+
hover:bg-solid-gray-50
|
|
272
272
|
`, r.selected = `
|
|
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 = `
|
|
@@ -321,23 +321,15 @@ var N;
|
|
|
321
321
|
shadow-1
|
|
322
322
|
rounded-lg
|
|
323
323
|
border
|
|
324
|
-
border-solid-
|
|
324
|
+
border-solid-gray-420
|
|
325
325
|
has-[>:nth-child(7)]:rounded-r-none
|
|
326
|
-
`,
|
|
327
|
-
|
|
328
|
-
top-11
|
|
329
|
-
right-0
|
|
330
|
-
`, r.popoverPositionBottomLeft = `
|
|
331
|
-
absolute
|
|
332
|
-
top-11
|
|
333
|
-
left-0
|
|
334
|
-
`, ((c) => {
|
|
335
|
-
c.focus = `
|
|
326
|
+
`, ((d) => {
|
|
327
|
+
d.focus = `
|
|
336
328
|
peer-focus-visible:outline-4
|
|
337
329
|
peer-focus-visible:outline-black
|
|
338
330
|
peer-focus-visible:ring-yellow-300
|
|
339
|
-
`,
|
|
340
|
-
${
|
|
331
|
+
`, d.focusRect = `
|
|
332
|
+
${d.focus}
|
|
341
333
|
peer-focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
342
334
|
peer-focus-visible:ring-[calc(2/16*1rem)]
|
|
343
335
|
`;
|
|
@@ -415,8 +407,8 @@ const T = R.createContext({
|
|
|
415
407
|
md: "w-[18px] h-[18px] mr-1.5",
|
|
416
408
|
sm: "w-[18px] h-[18px] mr-1"
|
|
417
409
|
}, Z = (r) => {
|
|
418
|
-
const { id:
|
|
419
|
-
|
|
410
|
+
const { id: n, className: d, size: i = "lg", children: a, ...s } = r, o = R.useId(), u = n || o, c = R.useContext(T);
|
|
411
|
+
c.isRequired && (s.required = !0), c.groupName && (s.name = c.groupName);
|
|
420
412
|
const x = {
|
|
421
413
|
lg: 22 / 24,
|
|
422
414
|
md: 18 / 24,
|
|
@@ -443,8 +435,8 @@ const T = R.createContext({
|
|
|
443
435
|
htmlFor: u,
|
|
444
436
|
className: y(
|
|
445
437
|
J,
|
|
446
|
-
H[
|
|
447
|
-
|
|
438
|
+
H[i],
|
|
439
|
+
d
|
|
448
440
|
),
|
|
449
441
|
children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
|
|
450
442
|
/* @__PURE__ */ t.jsx(
|
|
@@ -453,14 +445,13 @@ const T = R.createContext({
|
|
|
453
445
|
id: u,
|
|
454
446
|
className: f,
|
|
455
447
|
type: "checkbox",
|
|
456
|
-
"aria-describedby":
|
|
457
|
-
"aria-errormessage":
|
|
458
|
-
"aria-invalid":
|
|
459
|
-
"aria-required": d.isRequired ?? !1,
|
|
448
|
+
"aria-describedby": c.helperTextId,
|
|
449
|
+
"aria-errormessage": c.errorMessageId,
|
|
450
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
460
451
|
...s
|
|
461
452
|
}
|
|
462
453
|
),
|
|
463
|
-
/* @__PURE__ */ t.jsx("span", { className: y(g, X[
|
|
454
|
+
/* @__PURE__ */ t.jsx("span", { className: y(g, X[i]), children: /* @__PURE__ */ t.jsx(
|
|
464
455
|
"svg",
|
|
465
456
|
{
|
|
466
457
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -468,7 +459,7 @@ const T = R.createContext({
|
|
|
468
459
|
width: "24",
|
|
469
460
|
height: "24",
|
|
470
461
|
viewBox: "0 0 24 24",
|
|
471
|
-
children: /* @__PURE__ */ t.jsx("g", { transform: `scale(${x[
|
|
462
|
+
children: /* @__PURE__ */ t.jsx("g", { transform: `scale(${x[i]} ${x[i]})`, children: /* @__PURE__ */ 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" }) })
|
|
472
463
|
}
|
|
473
464
|
) }),
|
|
474
465
|
/* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
|
|
@@ -478,8 +469,8 @@ const T = R.createContext({
|
|
|
478
469
|
};
|
|
479
470
|
Z.displayName = "Checkbox";
|
|
480
471
|
const Q = (r) => {
|
|
481
|
-
const { id:
|
|
482
|
-
|
|
472
|
+
const { id: n, className: d, size: i = "lg", children: a, ...s } = r, o = R.useId(), u = n || o, c = R.useContext(T);
|
|
473
|
+
c.isRequired && (s.required = !0), c.groupName && (s.name = c.groupName);
|
|
483
474
|
const x = `
|
|
484
475
|
peer
|
|
485
476
|
sr-only
|
|
@@ -504,8 +495,8 @@ const Q = (r) => {
|
|
|
504
495
|
htmlFor: u,
|
|
505
496
|
className: y(
|
|
506
497
|
J,
|
|
507
|
-
H[
|
|
508
|
-
|
|
498
|
+
H[i],
|
|
499
|
+
d
|
|
509
500
|
),
|
|
510
501
|
children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
|
|
511
502
|
/* @__PURE__ */ t.jsx(
|
|
@@ -514,10 +505,9 @@ const Q = (r) => {
|
|
|
514
505
|
id: u,
|
|
515
506
|
className: x,
|
|
516
507
|
type: "radio",
|
|
517
|
-
"aria-describedby":
|
|
518
|
-
"aria-errormessage":
|
|
519
|
-
"aria-invalid":
|
|
520
|
-
"aria-required": d.isRequired ?? !1,
|
|
508
|
+
"aria-describedby": c.helperTextId,
|
|
509
|
+
"aria-errormessage": c.errorMessageId,
|
|
510
|
+
"aria-invalid": c.isInvalid ?? !1,
|
|
521
511
|
...s
|
|
522
512
|
}
|
|
523
513
|
),
|
|
@@ -525,7 +515,7 @@ const Q = (r) => {
|
|
|
525
515
|
"span",
|
|
526
516
|
{
|
|
527
517
|
"aria-hidden": !0,
|
|
528
|
-
className: y(f, g[
|
|
518
|
+
className: y(f, g[i], X[i])
|
|
529
519
|
}
|
|
530
520
|
),
|
|
531
521
|
/* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
|
|
@@ -535,12 +525,12 @@ const Q = (r) => {
|
|
|
535
525
|
};
|
|
536
526
|
Q.displayName = "Radio";
|
|
537
527
|
const me = (r) => {
|
|
538
|
-
const { id:
|
|
528
|
+
const { id: n, className: d, size: i = "lg", children: a, ...s } = r, o = R.useContext(T);
|
|
539
529
|
return o.isRequired && (s.required = !0), /* @__PURE__ */ t.jsxs("div", { className: "inline-block relative", children: [
|
|
540
530
|
/* @__PURE__ */ t.jsx(
|
|
541
531
|
"select",
|
|
542
532
|
{
|
|
543
|
-
id:
|
|
533
|
+
id: n || o.id,
|
|
544
534
|
className: y(
|
|
545
535
|
`
|
|
546
536
|
!pr-8
|
|
@@ -549,13 +539,12 @@ const me = (r) => {
|
|
|
549
539
|
appearance-none
|
|
550
540
|
`,
|
|
551
541
|
G,
|
|
552
|
-
V[
|
|
553
|
-
|
|
542
|
+
V[i],
|
|
543
|
+
d
|
|
554
544
|
),
|
|
555
545
|
"aria-describedby": o.helperTextId,
|
|
556
546
|
"aria-errormessage": o.errorMessageId,
|
|
557
547
|
"aria-invalid": o.isInvalid ?? !1,
|
|
558
|
-
"aria-required": o.isRequired ?? !1,
|
|
559
548
|
...s,
|
|
560
549
|
children: a
|
|
561
550
|
}
|
|
@@ -594,7 +583,7 @@ const me = (r) => {
|
|
|
594
583
|
};
|
|
595
584
|
me.displayName = "Select";
|
|
596
585
|
const xe = (r) => {
|
|
597
|
-
const { id:
|
|
586
|
+
const { id: n, className: d, size: i = "lg", ...a } = r, s = R.useContext(T);
|
|
598
587
|
s.isRequired && (a.required = !0);
|
|
599
588
|
const o = `
|
|
600
589
|
file:mr-2
|
|
@@ -621,7 +610,7 @@ const xe = (r) => {
|
|
|
621
610
|
file:active:bg-blue-300
|
|
622
611
|
file:disabled:text-solid-gray-500
|
|
623
612
|
file:disabled:bg-transparent
|
|
624
|
-
`,
|
|
613
|
+
`, c = `
|
|
625
614
|
text-label
|
|
626
615
|
text-solid-gray-900
|
|
627
616
|
rounded-lg
|
|
@@ -654,51 +643,43 @@ const xe = (r) => {
|
|
|
654
643
|
file:leading-snug
|
|
655
644
|
`
|
|
656
645
|
};
|
|
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
|
-
)
|
|
646
|
+
return /* @__PURE__ */ t.jsx(
|
|
647
|
+
"input",
|
|
648
|
+
{
|
|
649
|
+
type: "file",
|
|
650
|
+
id: n || s.id,
|
|
651
|
+
className: y(o, u, x[i], c, d),
|
|
652
|
+
"aria-describedby": s.helperTextId,
|
|
653
|
+
"aria-errormessage": s.errorMessageId,
|
|
654
|
+
"aria-invalid": s.isInvalid ?? !1,
|
|
655
|
+
...a
|
|
656
|
+
}
|
|
675
657
|
);
|
|
676
658
|
};
|
|
677
659
|
xe.displayName = "FileInput";
|
|
678
660
|
const ge = (r) => {
|
|
679
|
-
const { id:
|
|
661
|
+
const { id: n, className: d, size: i = "lg", ...a } = r, s = R.useContext(T);
|
|
680
662
|
return s.isRequired && (a.required = !0), /* @__PURE__ */ t.jsx(
|
|
681
663
|
"input",
|
|
682
664
|
{
|
|
683
665
|
type: "text",
|
|
684
|
-
id:
|
|
666
|
+
id: n || s.id,
|
|
685
667
|
className: y(
|
|
686
668
|
G,
|
|
687
|
-
V[
|
|
688
|
-
|
|
669
|
+
V[i],
|
|
670
|
+
d
|
|
689
671
|
),
|
|
690
672
|
"aria-describedby": s.helperTextId,
|
|
691
673
|
"aria-errormessage": s.errorMessageId,
|
|
692
674
|
"aria-invalid": s.isInvalid ?? !1,
|
|
693
|
-
"aria-required": s.isRequired ?? !1,
|
|
694
675
|
...a
|
|
695
676
|
}
|
|
696
677
|
);
|
|
697
678
|
};
|
|
698
679
|
ge.displayName = "Input";
|
|
699
680
|
const he = (r) => {
|
|
700
|
-
const { id:
|
|
701
|
-
a && a(v),
|
|
681
|
+
const { id: n, className: d, children: i, onChange: a, maxLength: s, ...o } = r, [u, c] = R.useState(0), x = (v) => {
|
|
682
|
+
a && a(v), c(v.target.value.length);
|
|
702
683
|
}, f = R.useContext(T);
|
|
703
684
|
f.isRequired && (o.required = !0);
|
|
704
685
|
const g = u > (s || 0) ? "text-red-800" : "text-solid-gray-700", h = `
|
|
@@ -718,15 +699,14 @@ const he = (r) => {
|
|
|
718
699
|
/* @__PURE__ */ t.jsx(
|
|
719
700
|
"textarea",
|
|
720
701
|
{
|
|
721
|
-
id:
|
|
722
|
-
className: y(h,
|
|
702
|
+
id: n || f.id,
|
|
703
|
+
className: y(h, d),
|
|
723
704
|
"aria-describedby": f.helperTextId,
|
|
724
705
|
"aria-errormessage": f.errorMessageId,
|
|
725
706
|
"aria-invalid": f.isInvalid ?? !1,
|
|
726
|
-
"aria-required": f.isRequired ?? !1,
|
|
727
707
|
onChange: x,
|
|
728
708
|
...o,
|
|
729
|
-
children:
|
|
709
|
+
children: i
|
|
730
710
|
}
|
|
731
711
|
),
|
|
732
712
|
s ? /* @__PURE__ */ t.jsxs("p", { className: "text-label text-solid-gray-700", children: [
|
|
@@ -738,23 +718,23 @@ const he = (r) => {
|
|
|
738
718
|
};
|
|
739
719
|
he.displayName = "Textarea";
|
|
740
720
|
const ve = (r) => {
|
|
741
|
-
const
|
|
742
|
-
labelText:
|
|
743
|
-
className:
|
|
721
|
+
const n = R.useId(), {
|
|
722
|
+
labelText: d,
|
|
723
|
+
className: i,
|
|
744
724
|
helperText: a,
|
|
745
725
|
errorMessage: s,
|
|
746
726
|
isInvalid: o,
|
|
747
727
|
isRequired: u,
|
|
748
|
-
children:
|
|
728
|
+
children: c,
|
|
749
729
|
...x
|
|
750
730
|
} = r, f = {
|
|
751
|
-
id: r.htmlFor ?? `input-${
|
|
752
|
-
helperTextId: `helper-text-${
|
|
753
|
-
errorMessageId: `error-message-${
|
|
731
|
+
id: r.htmlFor ?? `input-${n}`,
|
|
732
|
+
helperTextId: `helper-text-${n}`,
|
|
733
|
+
errorMessageId: `error-message-${n}`,
|
|
754
734
|
isInvalid: o ?? !1,
|
|
755
735
|
isRequired: u ?? !1
|
|
756
736
|
};
|
|
757
|
-
return /* @__PURE__ */ t.jsx(T.Provider, { value: f, children: /* @__PURE__ */ t.jsxs("div", { className: y("flex flex-col items-start gap-2",
|
|
737
|
+
return /* @__PURE__ */ t.jsx(T.Provider, { value: f, children: /* @__PURE__ */ t.jsxs("div", { className: y("flex flex-col items-start gap-2", i), children: [
|
|
758
738
|
/* @__PURE__ */ t.jsxs(
|
|
759
739
|
"label",
|
|
760
740
|
{
|
|
@@ -762,7 +742,7 @@ const ve = (r) => {
|
|
|
762
742
|
htmlFor: f.id,
|
|
763
743
|
...x,
|
|
764
744
|
children: [
|
|
765
|
-
|
|
745
|
+
d,
|
|
766
746
|
u && /* @__PURE__ */ t.jsx("span", { className: "text-label text-red-800", children: " *" })
|
|
767
747
|
]
|
|
768
748
|
}
|
|
@@ -770,7 +750,7 @@ const ve = (r) => {
|
|
|
770
750
|
a && /* @__PURE__ */ t.jsx("p", { id: f.helperTextId, className: `
|
|
771
751
|
text-label text-solid-gray-700
|
|
772
752
|
`, children: a }),
|
|
773
|
-
|
|
753
|
+
c,
|
|
774
754
|
o && /* @__PURE__ */ t.jsx("p", { id: f.errorMessageId, className: `
|
|
775
755
|
text-label text-red-800
|
|
776
756
|
`, children: s })
|
|
@@ -778,31 +758,31 @@ const ve = (r) => {
|
|
|
778
758
|
};
|
|
779
759
|
ve.displayName = "LabelControl";
|
|
780
760
|
const $ = (r) => {
|
|
781
|
-
const
|
|
782
|
-
labelText:
|
|
783
|
-
className:
|
|
761
|
+
const n = R.useId(), {
|
|
762
|
+
labelText: d,
|
|
763
|
+
className: i,
|
|
784
764
|
helperText: a,
|
|
785
765
|
errorMessage: s,
|
|
786
766
|
isInvalid: o,
|
|
787
767
|
isRequired: u,
|
|
788
|
-
direction:
|
|
768
|
+
direction: c,
|
|
789
769
|
children: x,
|
|
790
770
|
...f
|
|
791
771
|
} = r, h = {
|
|
792
|
-
groupName: f.name ?? `group-${
|
|
793
|
-
helperTextId: `helper-text-${
|
|
794
|
-
errorMessageId: `error-message-${
|
|
772
|
+
groupName: f.name ?? `group-${n}`,
|
|
773
|
+
helperTextId: `helper-text-${n}`,
|
|
774
|
+
errorMessageId: `error-message-${n}`,
|
|
795
775
|
isInvalid: o ?? !1,
|
|
796
776
|
isRequired: u ?? !1
|
|
797
|
-
}, v =
|
|
777
|
+
}, v = c ?? "flex-col";
|
|
798
778
|
return /* @__PURE__ */ t.jsx(T.Provider, { value: h, children: /* @__PURE__ */ t.jsxs(
|
|
799
779
|
"fieldset",
|
|
800
780
|
{
|
|
801
|
-
className: y("flex flex-col items-start gap-2",
|
|
781
|
+
className: y("flex flex-col items-start gap-2", i),
|
|
802
782
|
...f,
|
|
803
783
|
children: [
|
|
804
784
|
/* @__PURE__ */ t.jsx("legend", { children: /* @__PURE__ */ t.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
|
|
805
|
-
|
|
785
|
+
d,
|
|
806
786
|
u && /* @__PURE__ */ t.jsx("span", { className: "text-red-800", children: " *" })
|
|
807
787
|
] }) }),
|
|
808
788
|
/* @__PURE__ */ t.jsx("div", { className: y("inline-flex", v), children: x }),
|
|
@@ -815,33 +795,33 @@ const $ = (r) => {
|
|
|
815
795
|
$.displayName = "FieldsetControl";
|
|
816
796
|
const ye = (r) => {
|
|
817
797
|
const {
|
|
818
|
-
items:
|
|
819
|
-
onChange:
|
|
820
|
-
className:
|
|
798
|
+
items: n,
|
|
799
|
+
onChange: d,
|
|
800
|
+
className: i,
|
|
821
801
|
labelText: a,
|
|
822
802
|
helperText: s,
|
|
823
803
|
errorMessage: o,
|
|
824
804
|
isInvalid: u,
|
|
825
|
-
isRequired:
|
|
805
|
+
isRequired: c,
|
|
826
806
|
size: x,
|
|
827
807
|
...f
|
|
828
808
|
} = r;
|
|
829
809
|
return /* @__PURE__ */ t.jsx(
|
|
830
810
|
$,
|
|
831
811
|
{
|
|
832
|
-
className:
|
|
812
|
+
className: i,
|
|
833
813
|
labelText: a,
|
|
834
814
|
helperText: s,
|
|
835
815
|
errorMessage: o,
|
|
836
816
|
isInvalid: u,
|
|
837
|
-
isRequired:
|
|
817
|
+
isRequired: c,
|
|
838
818
|
...f,
|
|
839
|
-
children:
|
|
819
|
+
children: n.map(({ label: g, value: h }) => /* @__PURE__ */ t.jsx(
|
|
840
820
|
Z,
|
|
841
821
|
{
|
|
842
822
|
size: x,
|
|
843
823
|
value: h,
|
|
844
|
-
onChange:
|
|
824
|
+
onChange: d,
|
|
845
825
|
children: g
|
|
846
826
|
},
|
|
847
827
|
`${g}-${h}`
|
|
@@ -852,14 +832,14 @@ const ye = (r) => {
|
|
|
852
832
|
ye.displayName = "CheckboxGroup";
|
|
853
833
|
const Re = (r) => {
|
|
854
834
|
const {
|
|
855
|
-
items:
|
|
856
|
-
onChange:
|
|
857
|
-
className:
|
|
835
|
+
items: n,
|
|
836
|
+
onChange: d,
|
|
837
|
+
className: i,
|
|
858
838
|
labelText: a,
|
|
859
839
|
helperText: s,
|
|
860
840
|
errorMessage: o,
|
|
861
841
|
isInvalid: u,
|
|
862
|
-
isRequired:
|
|
842
|
+
isRequired: c,
|
|
863
843
|
defaultValue: x,
|
|
864
844
|
size: f,
|
|
865
845
|
...g
|
|
@@ -867,19 +847,19 @@ const Re = (r) => {
|
|
|
867
847
|
return /* @__PURE__ */ t.jsx(
|
|
868
848
|
$,
|
|
869
849
|
{
|
|
870
|
-
className:
|
|
850
|
+
className: i,
|
|
871
851
|
labelText: a,
|
|
872
852
|
helperText: s,
|
|
873
853
|
errorMessage: o,
|
|
874
854
|
isInvalid: u,
|
|
875
|
-
isRequired:
|
|
855
|
+
isRequired: c,
|
|
876
856
|
...g,
|
|
877
|
-
children:
|
|
857
|
+
children: n.map(({ label: h, value: v }) => /* @__PURE__ */ t.jsx(
|
|
878
858
|
Q,
|
|
879
859
|
{
|
|
880
860
|
size: f,
|
|
881
861
|
value: v,
|
|
882
|
-
onChange:
|
|
862
|
+
onChange: d,
|
|
883
863
|
defaultChecked: x === v,
|
|
884
864
|
children: h
|
|
885
865
|
},
|
|
@@ -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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sakura-ui/forms",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "glassonion1",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tailwindcss": "^4.1.17"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@sakura-ui/helper": "0.0.
|
|
37
|
+
"@sakura-ui/helper": "0.0.10"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@testing-library/jest-dom": "^7.0.1",
|