@sakura-ui/forms 0.4.0 → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Taisuke Fujita
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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 U;function ve(){if(U)return E;U=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(n,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:n,key:o,ref:a!==void 0?a:null,props:t}}return E.Fragment=i,E.jsx=c,E.jsxs=c,E}var _={};var G;function ye(){return G||(G=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 ne:return"Profiler";case ie: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 i(e){return""+e}function c(e){try{i(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),i(e)}}function n(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 d(){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:d}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value: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:
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&&(c(p),x=""+p),o(l)&&(c(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"),ie=Symbol.for("react.strict_mode"),ne=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(n(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(n(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(n(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=`
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,13 +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 i=`
17
- focus-visible:outline
16
+ `;const n=`
18
17
  focus-visible:outline-4
19
18
  focus-visible:outline-black
20
19
  focus-visible:ring-yellow-300
21
20
  `;r.focusRectCondensed=`
22
- ${i}
21
+ ${n}
23
22
  focus-visible:-outline-offset-4
24
23
  focus-visible:ring-[calc(6/16*1rem)]
25
24
  focus-visible:ring-inset
@@ -27,12 +26,12 @@ React keys must be passed directly to JSX without using spread:
27
26
  ${r.focusRectCondensed}
28
27
  focus-visible:bg-yellow-300
29
28
  `,r.focusRect=`
30
- ${i}
29
+ ${n}
31
30
  focus-visible:outline-offset-[calc(2/16*1rem)]
32
31
  focus-visible:ring-[calc(2/16*1rem)]
33
32
  `,r.focusRounded=`
34
33
  ${r.focusRect}
35
- focus-visible:rounded
34
+ focus-visible:rounded-sm
36
35
  `,r.focusCard=`
37
36
  ${r.focusRect}
38
37
  focus-visible:rounded-2xl
@@ -42,7 +41,7 @@ React keys must be passed directly to JSX without using spread:
42
41
  focus-visible:bg-yellow-300
43
42
  `,r.focusRoundedWithBg=`
44
43
  ${r.focusRectWithBg}
45
- focus-visible:rounded
44
+ focus-visible:rounded-sm
46
45
  `,r.hoverUnderline=`
47
46
  hover:underline
48
47
  hover:underline-offset-[calc(3/16*1rem)]
@@ -71,13 +70,12 @@ React keys must be passed directly to JSX without using spread:
71
70
  absolute
72
71
  top-11
73
72
  left-0
74
- `,(c=>{c.focus=`
75
- peer-focus-visible:outline
73
+ `,(d=>{d.focus=`
76
74
  peer-focus-visible:outline-4
77
75
  peer-focus-visible:outline-black
78
76
  peer-focus-visible:ring-yellow-300
79
- `,c.focusRect=`
80
- ${c.focus}
77
+ `,d.focusRect=`
78
+ ${d.focus}
81
79
  peer-focus-visible:outline-offset-[calc(2/16*1rem)]
82
80
  peer-focus-visible:ring-[calc(2/16*1rem)]
83
81
  `})(r.Peer||(r.Peer={}))})(N||(N={}));const T=R.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),J=`
@@ -128,7 +126,7 @@ React keys must be passed directly to JSX without using spread:
128
126
  py-2
129
127
  text-label
130
128
  leading-snug
131
- `},Q={lg:"w-[22px] h-[22px] mr-2",md:"w-[18px] h-[18px] mr-1.5",sm:"w-[18px] h-[18px] mr-1"},q=r=>{const{id:i,className:c,size:n="lg",children:a,...t}=r,o=R.useId(),u=i||o,d=R.useContext(T);d.isRequired&&(t.required=!0),d.groupName&&(t.name=d.groupName);const m={lg:22/24,md:18/24,sm:18/24},f=`
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=`
132
130
  peer
133
131
  sr-only
134
132
  `,g=`
@@ -143,7 +141,7 @@ React keys must be passed directly to JSX without using spread:
143
141
  peer-checked:border-none
144
142
  peer-disabled:border-solid-gray-500
145
143
  ${N.Peer.focusRect}
146
- `;return s.jsx("label",{htmlFor:u,className:y(X,Z[n],c),children:s.jsxs("span",{className:"flex items-center",children:[s.jsx("input",{id:u,className:f,type:"checkbox","aria-describedby":d.helperTextId,"aria-errormessage":d.errorMessageId,"aria-invalid":d.isInvalid??!1,"aria-required":d.isRequired??!1,...t}),s.jsx("span",{className:y(g,Q[n]),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[n]} ${m[n]})`,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})]})})};q.displayName="Checkbox";const M=r=>{const{id:i,className:c,size:n="lg",children:a,...t}=r,o=R.useId(),u=i||o,d=R.useContext(T);d.isRequired&&(t.required=!0),d.groupName&&(t.name=d.groupName);const m=`
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=`
147
145
  peer
148
146
  sr-only
149
147
  `,f=`
@@ -156,12 +154,12 @@ React keys must be passed directly to JSX without using spread:
156
154
  peer-checked:border-blue-600
157
155
  peer-disabled:border-solid-gray-500
158
156
  ${N.Peer.focusRect}
159
- `,g={lg:"p-1",md:"p-[3px]",sm:"p-[3px]"};return s.jsx("label",{htmlFor:u,className:y(X,Z[n],c),children:s.jsxs("span",{className:"flex items-center",children:[s.jsx("input",{id:u,className:m,type:"radio","aria-describedby":d.helperTextId,"aria-errormessage":d.errorMessageId,"aria-invalid":d.isInvalid??!1,"aria-required":d.isRequired??!1,...t}),s.jsx("span",{"aria-hidden":!0,className:y(f,g[n],Q[n])}),s.jsx("span",{className:"peer-disabled:text-solid-gray-500",children:a})]})})};M.displayName="Radio";const K=r=>{const{id:i,className:c,size:n="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:i||o.id,className:y(`
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(`
160
158
  !pr-8
161
159
  peer
162
160
  cursor-pointer
163
161
  appearance-none
164
- `,J,H[n],c),"aria-describedby":o.helperTextId,"aria-errormessage":o.errorMessageId,"aria-invalid":o.isInvalid??!1,"aria-required":o.isRequired??!1,...t,children:a}),s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:`
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:`
165
163
  pointer-events-none
166
164
  absolute
167
165
  right-4
@@ -169,7 +167,7 @@ React keys must be passed directly to JSX without using spread:
169
167
  -translate-y-1/2
170
168
  text-solid-gray-900
171
169
  peer-disabled:text-solid-gray-500
172
- `,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:i,className:c,size:n="lg",...a}=r,t=R.useContext(T);t.isRequired&&(a.required=!0);const o=`
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=`
173
171
  file:mr-2
174
172
  file:inline-block
175
173
  file:text-button
@@ -194,7 +192,7 @@ React keys must be passed directly to JSX without using spread:
194
192
  file:active:bg-blue-300
195
193
  file:disabled:text-solid-gray-500
196
194
  file:disabled:bg-transparent
197
- `,d=`
195
+ `,c=`
198
196
  text-label
199
197
  text-solid-gray-900
200
198
  rounded-lg
@@ -219,7 +217,7 @@ React keys must be passed directly to JSX without using spread:
219
217
  file:text-button
220
218
  file:rounded-md
221
219
  file:leading-snug
222
- `};return s.jsx("input",{type:"file",id:i||t.id,className:y(o,u,m[n],d,c),"aria-describedby":t.helperTextId,"aria-errormessage":t.errorMessageId,"aria-invalid":t.isInvalid??!1,"aria-required":t.isRequired??!1,role:"button","aria-label":"File Upload",...a})};ee.displayName="FileInput";const re=r=>{const{id:i,className:c,size:n="lg",...a}=r,t=R.useContext(T);return t.isRequired&&(a.required=!0),s.jsx("input",{type:"text",id:i||t.id,className:y(J,H[n],c),"aria-describedby":t.helperTextId,"aria-errormessage":t.errorMessageId,"aria-invalid":t.isInvalid??!1,"aria-required":t.isRequired??!1,...a})};re.displayName="Input";const te=r=>{const{id:i,className:c,children:n,onChange:a,maxLength:t,...o}=r,[u,d]=R.useState(0),m=v=>{a&&a(v),d(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=`
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=`
223
221
  p-4
224
222
  text-label
225
223
  rounded-lg
@@ -231,8 +229,8 @@ React keys must be passed directly to JSX without using spread:
231
229
  disabled:border-solid-gray-500
232
230
  aria-invalid:border-red-800
233
231
  ${N.focusRect}
234
- `;return s.jsxs(s.Fragment,{children:[s.jsx("textarea",{id:i||f.id,className:y(h,c),"aria-describedby":f.helperTextId,"aria-errormessage":f.errorMessageId,"aria-invalid":f.isInvalid??!1,"aria-required":f.isRequired??!1,onChange:m,...o,children:n}),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 i=R.useId(),{labelText:c,className:n,helperText:a,errorMessage:t,isInvalid:o,isRequired:u,children:d,...m}=r,f={id:r.htmlFor??`input-${i}`,helperTextId:`helper-text-${i}`,errorMessageId:`error-message-${i}`,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",n),children:[s.jsxs("label",{className:y("block text-label",o&&"text-red-800"),htmlFor:f.id,...m,children:[c,u&&s.jsx("span",{className:"text-label text-red-800",children:" *"})]}),a&&s.jsx("p",{id:f.helperTextId,className:`
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:`
235
233
  text-label text-solid-gray-700
236
- `,children:a}),d,o&&s.jsx("p",{id:f.errorMessageId,className:`
234
+ `,children:o}),c,a&&s.jsx("p",{id:f.errorMessageId,className:`
237
235
  text-label text-red-800
238
- `,children:t})]})})};se.displayName="LabelControl";const w=r=>{const i=R.useId(),{labelText:c,className:n,helperText:a,errorMessage:t,isInvalid:o,isRequired:u,direction:d,children:m,...f}=r,h={groupName:f.name??`group-${i}`,helperTextId:`helper-text-${i}`,errorMessageId:`error-message-${i}`,isInvalid:o??!1,isRequired:u??!1},v=d??"flex-col";return s.jsx(T.Provider,{value:h,children:s.jsxs("fieldset",{className:y("flex flex-col items-start gap-2",n),...f,children:[s.jsx("legend",{children:s.jsxs("p",{className:y("block text-label",o&&"text-red-800"),children:[c,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:i,onChange:c,className:n,labelText:a,helperText:t,errorMessage:o,isInvalid:u,isRequired:d,size:m,...f}=r;return s.jsx(w,{className:n,labelText:a,helperText:t,errorMessage:o,isInvalid:u,isRequired:d,...f,children:i.map(({label:g,value:h})=>s.jsx(q,{size:m,value:h,onChange:c,children:g},`${g}-${h}`))})};le.displayName="CheckboxGroup";const ae=r=>{const{items:i,onChange:c,className:n,labelText:a,helperText:t,errorMessage:o,isInvalid:u,isRequired:d,defaultValue:m,size:f,...g}=r;return s.jsx(w,{className:n,labelText:a,helperText:t,errorMessage:o,isInvalid:u,isRequired:d,...g,children:i.map(({label:h,value:v})=>s.jsx(M,{size:f,value:v,onChange:c,defaultChecked:m===v,children:h},`${h}-${v}`))})};ae.displayName="RadioGroup";exports.Checkbox=q;exports.CheckboxGroup=le;exports.FieldsetControl=w;exports.FileInput=ee;exports.Input=re;exports.LabelControl=se;exports.Radio=M;exports.RadioGroup=ae;exports.Select=K;exports.Textarea=te;
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,28 +4,28 @@ var W;
4
4
  function fe() {
5
5
  if (W) return E;
6
6
  W = 1;
7
- var r = Symbol.for("react.transitional.element"), i = Symbol.for("react.fragment");
8
- function c(n, a, s) {
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 (s !== void 0 && (o = "" + s), a.key !== void 0 && (o = "" + a.key), "key" in a) {
11
- s = {};
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" && (s[u] = a[u]);
14
- } else s = a;
15
- return a = s.ref, {
13
+ u !== "key" && (t[u] = a[u]);
14
+ } else t = a;
15
+ return a = t.ref, {
16
16
  $$typeof: r,
17
- type: n,
17
+ type: i,
18
18
  key: o,
19
19
  ref: a !== void 0 ? a : null,
20
- props: s
20
+ props: t
21
21
  };
22
22
  }
23
- return E.Fragment = i, E.jsx = c, E.jsxs = c, E;
23
+ return E.Fragment = n, E.jsx = d, E.jsxs = d, E;
24
24
  }
25
25
  var _ = {};
26
26
  var B;
27
27
  function pe() {
28
- return B || (B = 1, process.env.NODE_ENV !== "production" && function() {
28
+ return B || (B = 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 ne:
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 ie:
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 i(e) {
72
+ function n(e) {
73
73
  return "" + e;
74
74
  }
75
- function c(e) {
75
+ function d(e) {
76
76
  try {
77
- i(e);
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
- ), i(e);
89
+ ), n(e);
90
90
  }
91
91
  }
92
- function n(e) {
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 s() {
107
+ function t() {
108
108
  return Error("react-stack-top-frame");
109
109
  }
110
110
  function o(e) {
111
- if (M.call(e, "key")) {
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 d() {
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: q,
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: d
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 (M.call(l, "key")) {
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 && (c(p), m = "" + p), o(l) && (c(l.key), m = "" + l.key), "key" in l) {
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 === q;
220
+ return typeof e == "object" && e !== null && e.$$typeof === M;
221
221
  }
222
- var v = R, q = Symbol.for("react.transitional.element"), K = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), se = Symbol.for("react.consumer"), te = Symbol.for("react.context"), le = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), ie = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), de = Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
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
- s
233
- )(), D = S(n(s)), L = {};
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(n(e)) : D
242
+ b ? S(i(e)) : D
243
243
  );
244
244
  }, _.jsxs = function(e, l, p) {
245
245
  var b = 1e4 > C.recentlyCreatedOwnerStacks++;
@@ -249,16 +249,16 @@ 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(n(e)) : D
252
+ b ? S(i(e)) : D
253
253
  );
254
254
  };
255
- }()), _;
255
+ })()), _;
256
256
  }
257
257
  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 t = be();
261
+ var s = be();
262
262
  const y = (...r) => r.filter(Boolean).join(" ");
263
263
  var N;
264
264
  ((r) => {
@@ -273,14 +273,13 @@ var N;
273
273
  rounded-full
274
274
  bg-yellow-50
275
275
  `;
276
- const i = `
277
- focus-visible:outline
276
+ const n = `
278
277
  focus-visible:outline-4
279
278
  focus-visible:outline-black
280
279
  focus-visible:ring-yellow-300
281
280
  `;
282
281
  r.focusRectCondensed = `
283
- ${i}
282
+ ${n}
284
283
  focus-visible:-outline-offset-4
285
284
  focus-visible:ring-[calc(6/16*1rem)]
286
285
  focus-visible:ring-inset
@@ -288,12 +287,12 @@ var N;
288
287
  ${r.focusRectCondensed}
289
288
  focus-visible:bg-yellow-300
290
289
  `, r.focusRect = `
291
- ${i}
290
+ ${n}
292
291
  focus-visible:outline-offset-[calc(2/16*1rem)]
293
292
  focus-visible:ring-[calc(2/16*1rem)]
294
293
  `, r.focusRounded = `
295
294
  ${r.focusRect}
296
- focus-visible:rounded
295
+ focus-visible:rounded-sm
297
296
  `, r.focusCard = `
298
297
  ${r.focusRect}
299
298
  focus-visible:rounded-2xl
@@ -303,7 +302,7 @@ var N;
303
302
  focus-visible:bg-yellow-300
304
303
  `, r.focusRoundedWithBg = `
305
304
  ${r.focusRectWithBg}
306
- focus-visible:rounded
305
+ focus-visible:rounded-sm
307
306
  `, r.hoverUnderline = `
308
307
  hover:underline
309
308
  hover:underline-offset-[calc(3/16*1rem)]
@@ -332,14 +331,13 @@ var N;
332
331
  absolute
333
332
  top-11
334
333
  left-0
335
- `, ((c) => {
336
- c.focus = `
337
- peer-focus-visible:outline
334
+ `, ((d) => {
335
+ d.focus = `
338
336
  peer-focus-visible:outline-4
339
337
  peer-focus-visible:outline-black
340
338
  peer-focus-visible:ring-yellow-300
341
- `, c.focusRect = `
342
- ${c.focus}
339
+ `, d.focusRect = `
340
+ ${d.focus}
343
341
  peer-focus-visible:outline-offset-[calc(2/16*1rem)]
344
342
  peer-focus-visible:ring-[calc(2/16*1rem)]
345
343
  `;
@@ -417,8 +415,8 @@ const T = R.createContext({
417
415
  md: "w-[18px] h-[18px] mr-1.5",
418
416
  sm: "w-[18px] h-[18px] mr-1"
419
417
  }, Z = (r) => {
420
- const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
421
- d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
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);
422
420
  const x = {
423
421
  lg: 22 / 24,
424
422
  md: 18 / 24,
@@ -439,30 +437,29 @@ const T = R.createContext({
439
437
  peer-disabled:border-solid-gray-500
440
438
  ${N.Peer.focusRect}
441
439
  `;
442
- return /* @__PURE__ */ t.jsx(
440
+ return /* @__PURE__ */ s.jsx(
443
441
  "label",
444
442
  {
445
443
  htmlFor: u,
446
444
  className: y(
447
445
  J,
448
- H[n],
449
- c
446
+ H[i],
447
+ d
450
448
  ),
451
- children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
452
- /* @__PURE__ */ t.jsx(
449
+ children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
450
+ /* @__PURE__ */ s.jsx(
453
451
  "input",
454
452
  {
455
453
  id: u,
456
454
  className: f,
457
455
  type: "checkbox",
458
- "aria-describedby": d.helperTextId,
459
- "aria-errormessage": d.errorMessageId,
460
- "aria-invalid": d.isInvalid ?? !1,
461
- "aria-required": d.isRequired ?? !1,
462
- ...s
456
+ "aria-describedby": c.helperTextId,
457
+ "aria-errormessage": c.errorMessageId,
458
+ "aria-invalid": c.isInvalid ?? !1,
459
+ ...t
463
460
  }
464
461
  ),
465
- /* @__PURE__ */ t.jsx("span", { className: y(g, X[n]), children: /* @__PURE__ */ t.jsx(
462
+ /* @__PURE__ */ s.jsx("span", { className: y(g, X[i]), children: /* @__PURE__ */ s.jsx(
466
463
  "svg",
467
464
  {
468
465
  xmlns: "http://www.w3.org/2000/svg",
@@ -470,18 +467,18 @@ const T = R.createContext({
470
467
  width: "24",
471
468
  height: "24",
472
469
  viewBox: "0 0 24 24",
473
- children: /* @__PURE__ */ t.jsx("g", { transform: `scale(${x[n]} ${x[n]})`, 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" }) })
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" }) })
474
471
  }
475
472
  ) }),
476
- /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
473
+ /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
477
474
  ] })
478
475
  }
479
476
  );
480
477
  };
481
478
  Z.displayName = "Checkbox";
482
479
  const Q = (r) => {
483
- const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
484
- d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
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);
485
482
  const x = `
486
483
  peer
487
484
  sr-only
@@ -500,49 +497,48 @@ const Q = (r) => {
500
497
  md: "p-[3px]",
501
498
  sm: "p-[3px]"
502
499
  };
503
- return /* @__PURE__ */ t.jsx(
500
+ return /* @__PURE__ */ s.jsx(
504
501
  "label",
505
502
  {
506
503
  htmlFor: u,
507
504
  className: y(
508
505
  J,
509
- H[n],
510
- c
506
+ H[i],
507
+ d
511
508
  ),
512
- children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
513
- /* @__PURE__ */ t.jsx(
509
+ children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
510
+ /* @__PURE__ */ s.jsx(
514
511
  "input",
515
512
  {
516
513
  id: u,
517
514
  className: x,
518
515
  type: "radio",
519
- "aria-describedby": d.helperTextId,
520
- "aria-errormessage": d.errorMessageId,
521
- "aria-invalid": d.isInvalid ?? !1,
522
- "aria-required": d.isRequired ?? !1,
523
- ...s
516
+ "aria-describedby": c.helperTextId,
517
+ "aria-errormessage": c.errorMessageId,
518
+ "aria-invalid": c.isInvalid ?? !1,
519
+ ...t
524
520
  }
525
521
  ),
526
- /* @__PURE__ */ t.jsx(
522
+ /* @__PURE__ */ s.jsx(
527
523
  "span",
528
524
  {
529
525
  "aria-hidden": !0,
530
- className: y(f, g[n], X[n])
526
+ className: y(f, g[i], X[i])
531
527
  }
532
528
  ),
533
- /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
529
+ /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
534
530
  ] })
535
531
  }
536
532
  );
537
533
  };
538
534
  Q.displayName = "Radio";
539
535
  const me = (r) => {
540
- const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useContext(T);
541
- return o.isRequired && (s.required = !0), /* @__PURE__ */ t.jsxs("div", { className: "inline-block relative", children: [
542
- /* @__PURE__ */ t.jsx(
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(
543
539
  "select",
544
540
  {
545
- id: i || o.id,
541
+ id: n || o.id,
546
542
  className: y(
547
543
  `
548
544
  !pr-8
@@ -551,18 +547,17 @@ const me = (r) => {
551
547
  appearance-none
552
548
  `,
553
549
  G,
554
- V[n],
555
- c
550
+ V[i],
551
+ d
556
552
  ),
557
553
  "aria-describedby": o.helperTextId,
558
554
  "aria-errormessage": o.errorMessageId,
559
555
  "aria-invalid": o.isInvalid ?? !1,
560
- "aria-required": o.isRequired ?? !1,
561
- ...s,
556
+ ...t,
562
557
  children: a
563
558
  }
564
559
  ),
565
- /* @__PURE__ */ t.jsxs(
560
+ /* @__PURE__ */ s.jsxs(
566
561
  "svg",
567
562
  {
568
563
  xmlns: "http://www.w3.org/2000/svg",
@@ -581,8 +576,8 @@ const me = (r) => {
581
576
  height: "16",
582
577
  viewBox: "0 0 16 16",
583
578
  children: [
584
- /* @__PURE__ */ t.jsx("title", { children: "arrow down" }),
585
- /* @__PURE__ */ t.jsx(
579
+ /* @__PURE__ */ s.jsx("title", { children: "arrow down" }),
580
+ /* @__PURE__ */ s.jsx(
586
581
  "path",
587
582
  {
588
583
  d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
@@ -596,8 +591,8 @@ const me = (r) => {
596
591
  };
597
592
  me.displayName = "Select";
598
593
  const xe = (r) => {
599
- const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
600
- s.isRequired && (a.required = !0);
594
+ const { id: n, className: d, size: i = "lg", ...a } = r, t = R.useContext(T);
595
+ t.isRequired && (a.required = !0);
601
596
  const o = `
602
597
  file:mr-2
603
598
  file:inline-block
@@ -623,7 +618,7 @@ const xe = (r) => {
623
618
  file:active:bg-blue-300
624
619
  file:disabled:text-solid-gray-500
625
620
  file:disabled:bg-transparent
626
- `, d = `
621
+ `, c = `
627
622
  text-label
628
623
  text-solid-gray-900
629
624
  rounded-lg
@@ -656,50 +651,46 @@ const xe = (r) => {
656
651
  file:leading-snug
657
652
  `
658
653
  };
659
- return /* @__PURE__ */ t.jsx(
654
+ return /* @__PURE__ */ s.jsx(
660
655
  "input",
661
656
  {
662
657
  type: "file",
663
- id: i || s.id,
664
- className: y(o, u, x[n], d, c),
665
- "aria-describedby": s.helperTextId,
666
- "aria-errormessage": s.errorMessageId,
667
- "aria-invalid": s.isInvalid ?? !1,
668
- "aria-required": s.isRequired ?? !1,
669
- role: "button",
670
- "aria-label": "File Upload",
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,
671
663
  ...a
672
664
  }
673
665
  );
674
666
  };
675
667
  xe.displayName = "FileInput";
676
668
  const ge = (r) => {
677
- const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
678
- return s.isRequired && (a.required = !0), /* @__PURE__ */ t.jsx(
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(
679
671
  "input",
680
672
  {
681
673
  type: "text",
682
- id: i || s.id,
674
+ id: n || t.id,
683
675
  className: y(
684
676
  G,
685
- V[n],
686
- c
677
+ V[i],
678
+ d
687
679
  ),
688
- "aria-describedby": s.helperTextId,
689
- "aria-errormessage": s.errorMessageId,
690
- "aria-invalid": s.isInvalid ?? !1,
691
- "aria-required": s.isRequired ?? !1,
680
+ "aria-describedby": t.helperTextId,
681
+ "aria-errormessage": t.errorMessageId,
682
+ "aria-invalid": t.isInvalid ?? !1,
692
683
  ...a
693
684
  }
694
685
  );
695
686
  };
696
687
  ge.displayName = "Input";
697
688
  const he = (r) => {
698
- const { id: i, className: c, children: n, onChange: a, maxLength: s, ...o } = r, [u, d] = R.useState(0), x = (v) => {
699
- a && a(v), d(v.target.value.length);
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);
700
691
  }, f = R.useContext(T);
701
692
  f.isRequired && (o.required = !0);
702
- const g = u > (s || 0) ? "text-red-800" : "text-solid-gray-700", h = `
693
+ const g = u > (t || 0) ? "text-red-800" : "text-solid-gray-700", h = `
703
694
  p-4
704
695
  text-label
705
696
  rounded-lg
@@ -712,100 +703,99 @@ const he = (r) => {
712
703
  aria-invalid:border-red-800
713
704
  ${N.focusRect}
714
705
  `;
715
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
716
- /* @__PURE__ */ t.jsx(
706
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
707
+ /* @__PURE__ */ s.jsx(
717
708
  "textarea",
718
709
  {
719
- id: i || f.id,
720
- className: y(h, c),
710
+ id: n || f.id,
711
+ className: y(h, d),
721
712
  "aria-describedby": f.helperTextId,
722
713
  "aria-errormessage": f.errorMessageId,
723
714
  "aria-invalid": f.isInvalid ?? !1,
724
- "aria-required": f.isRequired ?? !1,
725
715
  onChange: x,
726
716
  ...o,
727
- children: n
717
+ children: i
728
718
  }
729
719
  ),
730
- s ? /* @__PURE__ */ t.jsxs("p", { className: "text-label text-solid-gray-700", children: [
731
- /* @__PURE__ */ t.jsx("span", { className: g, children: u }),
720
+ t ? /* @__PURE__ */ s.jsxs("p", { className: "text-label text-solid-gray-700", children: [
721
+ /* @__PURE__ */ s.jsx("span", { className: g, children: u }),
732
722
  "/",
733
- /* @__PURE__ */ t.jsx("span", { children: s })
723
+ /* @__PURE__ */ s.jsx("span", { children: t })
734
724
  ] }) : ""
735
725
  ] });
736
726
  };
737
727
  he.displayName = "Textarea";
738
728
  const ve = (r) => {
739
- const i = R.useId(), {
740
- labelText: c,
741
- className: n,
729
+ const n = R.useId(), {
730
+ labelText: d,
731
+ className: i,
742
732
  helperText: a,
743
- errorMessage: s,
733
+ errorMessage: t,
744
734
  isInvalid: o,
745
735
  isRequired: u,
746
- children: d,
736
+ children: c,
747
737
  ...x
748
738
  } = r, f = {
749
- id: r.htmlFor ?? `input-${i}`,
750
- helperTextId: `helper-text-${i}`,
751
- errorMessageId: `error-message-${i}`,
739
+ id: r.htmlFor ?? `input-${n}`,
740
+ helperTextId: `helper-text-${n}`,
741
+ errorMessageId: `error-message-${n}`,
752
742
  isInvalid: o ?? !1,
753
743
  isRequired: u ?? !1
754
744
  };
755
- return /* @__PURE__ */ t.jsx(T.Provider, { value: f, children: /* @__PURE__ */ t.jsxs("div", { className: y("flex flex-col items-start gap-2", n), children: [
756
- /* @__PURE__ */ t.jsxs(
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(
757
747
  "label",
758
748
  {
759
749
  className: y("block text-label", o && "text-red-800"),
760
750
  htmlFor: f.id,
761
751
  ...x,
762
752
  children: [
763
- c,
764
- u && /* @__PURE__ */ t.jsx("span", { className: "text-label text-red-800", children: " *" })
753
+ d,
754
+ u && /* @__PURE__ */ s.jsx("span", { className: "text-label text-red-800", children: " *" })
765
755
  ]
766
756
  }
767
757
  ),
768
- a && /* @__PURE__ */ t.jsx("p", { id: f.helperTextId, className: `
758
+ a && /* @__PURE__ */ s.jsx("p", { id: f.helperTextId, className: `
769
759
  text-label text-solid-gray-700
770
760
  `, children: a }),
771
- d,
772
- o && /* @__PURE__ */ t.jsx("p", { id: f.errorMessageId, className: `
761
+ c,
762
+ o && /* @__PURE__ */ s.jsx("p", { id: f.errorMessageId, className: `
773
763
  text-label text-red-800
774
- `, children: s })
764
+ `, children: t })
775
765
  ] }) });
776
766
  };
777
767
  ve.displayName = "LabelControl";
778
768
  const $ = (r) => {
779
- const i = R.useId(), {
780
- labelText: c,
781
- className: n,
769
+ const n = R.useId(), {
770
+ labelText: d,
771
+ className: i,
782
772
  helperText: a,
783
- errorMessage: s,
773
+ errorMessage: t,
784
774
  isInvalid: o,
785
775
  isRequired: u,
786
- direction: d,
776
+ direction: c,
787
777
  children: x,
788
778
  ...f
789
779
  } = r, h = {
790
- groupName: f.name ?? `group-${i}`,
791
- helperTextId: `helper-text-${i}`,
792
- errorMessageId: `error-message-${i}`,
780
+ groupName: f.name ?? `group-${n}`,
781
+ helperTextId: `helper-text-${n}`,
782
+ errorMessageId: `error-message-${n}`,
793
783
  isInvalid: o ?? !1,
794
784
  isRequired: u ?? !1
795
- }, v = d ?? "flex-col";
796
- return /* @__PURE__ */ t.jsx(T.Provider, { value: h, children: /* @__PURE__ */ t.jsxs(
785
+ }, v = c ?? "flex-col";
786
+ return /* @__PURE__ */ s.jsx(T.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(
797
787
  "fieldset",
798
788
  {
799
- className: y("flex flex-col items-start gap-2", n),
789
+ className: y("flex flex-col items-start gap-2", i),
800
790
  ...f,
801
791
  children: [
802
- /* @__PURE__ */ t.jsx("legend", { children: /* @__PURE__ */ t.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
803
- c,
804
- u && /* @__PURE__ */ t.jsx("span", { className: "text-red-800", children: " *" })
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: " *" })
805
795
  ] }) }),
806
- /* @__PURE__ */ t.jsx("div", { className: y("inline-flex", v), children: x }),
807
- a && /* @__PURE__ */ t.jsx("p", { id: h.helperTextId, className: "text-sup text-solid-gray-700", children: a }),
808
- o && /* @__PURE__ */ t.jsx("p", { id: h.errorMessageId, className: "text-label text-red-800", children: s })
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 })
809
799
  ]
810
800
  }
811
801
  ) });
@@ -813,33 +803,33 @@ const $ = (r) => {
813
803
  $.displayName = "FieldsetControl";
814
804
  const ye = (r) => {
815
805
  const {
816
- items: i,
817
- onChange: c,
818
- className: n,
806
+ items: n,
807
+ onChange: d,
808
+ className: i,
819
809
  labelText: a,
820
- helperText: s,
810
+ helperText: t,
821
811
  errorMessage: o,
822
812
  isInvalid: u,
823
- isRequired: d,
813
+ isRequired: c,
824
814
  size: x,
825
815
  ...f
826
816
  } = r;
827
- return /* @__PURE__ */ t.jsx(
817
+ return /* @__PURE__ */ s.jsx(
828
818
  $,
829
819
  {
830
- className: n,
820
+ className: i,
831
821
  labelText: a,
832
- helperText: s,
822
+ helperText: t,
833
823
  errorMessage: o,
834
824
  isInvalid: u,
835
- isRequired: d,
825
+ isRequired: c,
836
826
  ...f,
837
- children: i.map(({ label: g, value: h }) => /* @__PURE__ */ t.jsx(
827
+ children: n.map(({ label: g, value: h }) => /* @__PURE__ */ s.jsx(
838
828
  Z,
839
829
  {
840
830
  size: x,
841
831
  value: h,
842
- onChange: c,
832
+ onChange: d,
843
833
  children: g
844
834
  },
845
835
  `${g}-${h}`
@@ -850,34 +840,34 @@ const ye = (r) => {
850
840
  ye.displayName = "CheckboxGroup";
851
841
  const Re = (r) => {
852
842
  const {
853
- items: i,
854
- onChange: c,
855
- className: n,
843
+ items: n,
844
+ onChange: d,
845
+ className: i,
856
846
  labelText: a,
857
- helperText: s,
847
+ helperText: t,
858
848
  errorMessage: o,
859
849
  isInvalid: u,
860
- isRequired: d,
850
+ isRequired: c,
861
851
  defaultValue: x,
862
852
  size: f,
863
853
  ...g
864
854
  } = r;
865
- return /* @__PURE__ */ t.jsx(
855
+ return /* @__PURE__ */ s.jsx(
866
856
  $,
867
857
  {
868
- className: n,
858
+ className: i,
869
859
  labelText: a,
870
- helperText: s,
860
+ helperText: t,
871
861
  errorMessage: o,
872
862
  isInvalid: u,
873
- isRequired: d,
863
+ isRequired: c,
874
864
  ...g,
875
- children: i.map(({ label: h, value: v }) => /* @__PURE__ */ t.jsx(
865
+ children: n.map(({ label: h, value: v }) => /* @__PURE__ */ s.jsx(
876
866
  Q,
877
867
  {
878
868
  size: f,
879
869
  value: v,
880
- onChange: c,
870
+ onChange: d,
881
871
  defaultChecked: x === v,
882
872
  children: h
883
873
  },
@@ -1,4 +1,4 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  import { type InputSize } from './inputStyle';
3
3
  export declare namespace Checkbox {
4
4
  interface Props extends Omit<ComponentPropsWithRef<'input'>, 'size'> {
@@ -6,7 +6,7 @@ export declare namespace Checkbox {
6
6
  }
7
7
  }
8
8
  export declare const Checkbox: {
9
- (props: Checkbox.Props): import("react/jsx-runtime").JSX.Element;
9
+ (props: Checkbox.Props): React.JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAc,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;;CA0E7C,CAAA"}
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,4 +1,4 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  export declare namespace FieldsetControl {
3
3
  interface Props extends ComponentPropsWithRef<'fieldset'> {
4
4
  labelText: string;
@@ -10,7 +10,7 @@ export declare namespace FieldsetControl {
10
10
  }
11
11
  }
12
12
  export declare const FieldsetControl: {
13
- (props: FieldsetControl.Props): import("react/jsx-runtime").JSX.Element;
13
+ (props: FieldsetControl.Props): React.JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  //# sourceMappingURL=FieldsetControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldsetControl.d.ts","sourceRoot":"","sources":["../../../src/components/FieldsetControl.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAIzD,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,KAAM,SAAQ,qBAAqB,CAAC,UAAU,CAAC;QAC9D,SAAS,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,UAAU,CAAC,EAAE,OAAO,CAAA;QACpB,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;KACpC;CACF;AAED,eAAO,MAAM,eAAe;YAAW,eAAe,CAAC,KAAK;;CAoD3D,CAAA"}
1
+ {"version":3,"file":"FieldsetControl.d.ts","sourceRoot":"","sources":["../../../src/components/FieldsetControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAIzD,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,KAAM,SAAQ,qBAAqB,CAAC,UAAU,CAAC;QAC9D,SAAS,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,UAAU,CAAC,EAAE,OAAO,CAAA;QACpB,SAAS,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;KACpC;CACF;AAED,eAAO,MAAM,eAAe;YAAW,eAAe,CAAC,KAAK;;CAoD3D,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  import type { InputSize } from './inputStyle';
3
3
  export declare namespace FileInput {
4
4
  interface Props extends Omit<ComponentPropsWithRef<'input'>, 'size'> {
@@ -6,7 +6,7 @@ export declare namespace FileInput {
6
6
  }
7
7
  }
8
8
  export declare const FileInput: {
9
- (props: FileInput.Props): import("react/jsx-runtime").JSX.Element;
9
+ (props: FileInput.Props): React.JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  //# sourceMappingURL=FileInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAc,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
+ {"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,4 +1,4 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  import { type InputSize } from './inputStyle';
3
3
  export declare namespace Input {
4
4
  interface Props extends Omit<ComponentPropsWithRef<'input'>, 'size'> {
@@ -6,7 +6,7 @@ export declare namespace Input {
6
6
  }
7
7
  }
8
8
  export declare const Input: {
9
- (props: Input.Props): import("react/jsx-runtime").JSX.Element;
9
+ (props: Input.Props): React.JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAc,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;;CAuBvC,CAAA"}
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,4 +1,4 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  export declare namespace LabelControl {
3
3
  interface Props extends ComponentPropsWithRef<'label'> {
4
4
  labelText: string;
@@ -9,7 +9,7 @@ export declare namespace LabelControl {
9
9
  }
10
10
  }
11
11
  export declare const LabelControl: {
12
- (props: LabelControl.Props): import("react/jsx-runtime").JSX.Element;
12
+ (props: LabelControl.Props): React.JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  //# sourceMappingURL=LabelControl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabelControl.d.ts","sourceRoot":"","sources":["../../../src/components/LabelControl.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAIzD,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,KAAM,SAAQ,qBAAqB,CAAC,OAAO,CAAC;QAC3D,SAAS,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB;CACF;AAED,eAAO,MAAM,YAAY;YAAW,YAAY,CAAC,KAAK;;CAwDrD,CAAA"}
1
+ {"version":3,"file":"LabelControl.d.ts","sourceRoot":"","sources":["../../../src/components/LabelControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAIzD,yBAAiB,YAAY,CAAC;IAC5B,UAAiB,KAAM,SAAQ,qBAAqB,CAAC,OAAO,CAAC;QAC3D,SAAS,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB;CACF;AAED,eAAO,MAAM,YAAY;YAAW,YAAY,CAAC,KAAK;;CAwDrD,CAAA"}
@@ -1,4 +1,4 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  import { type InputSize } from './inputStyle';
3
3
  export declare namespace Radio {
4
4
  interface Props extends Omit<ComponentPropsWithRef<'input'>, 'size'> {
@@ -6,7 +6,7 @@ export declare namespace Radio {
6
6
  }
7
7
  }
8
8
  export declare const Radio: {
9
- (props: Radio.Props): import("react/jsx-runtime").JSX.Element;
9
+ (props: Radio.Props): React.JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio.tsx"],"names":[],"mappings":"AAAA,OAAc,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;;CA+DvC,CAAA"}
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,4 +1,4 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  import { type InputSize } from './inputStyle';
3
3
  export declare namespace Select {
4
4
  interface Props extends Omit<ComponentPropsWithRef<'select'>, 'size'> {
@@ -6,7 +6,7 @@ export declare namespace Select {
6
6
  }
7
7
  }
8
8
  export declare const Select: {
9
- (props: Select.Props): import("react/jsx-runtime").JSX.Element;
9
+ (props: Select.Props): React.JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAc,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;;CA2DzC,CAAA"}
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,10 +1,10 @@
1
- import { type ComponentPropsWithRef } from 'react';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
2
  export declare namespace Textarea {
3
3
  interface Props extends ComponentPropsWithRef<'textarea'> {
4
4
  }
5
5
  }
6
6
  export declare const Textarea: {
7
- (props: Textarea.Props): import("react/jsx-runtime").JSX.Element;
7
+ (props: Textarea.Props): React.JSX.Element;
8
8
  displayName: string;
9
9
  };
10
10
  //# sourceMappingURL=Textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAc,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;;CAyD7C,CAAA"}
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"}
@@ -14,7 +14,7 @@ export declare namespace CheckboxGroup {
14
14
  }
15
15
  }
16
16
  export declare const CheckboxGroup: {
17
- (props: CheckboxGroup.Props): import("react/jsx-runtime").JSX.Element;
17
+ (props: CheckboxGroup.Props): React.JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -15,7 +15,7 @@ export declare namespace RadioGroup {
15
15
  }
16
16
  }
17
17
  export declare const RadioGroup: {
18
- (props: RadioGroup.Props): import("react/jsx-runtime").JSX.Element;
18
+ (props: RadioGroup.Props): React.JSX.Element;
19
19
  displayName: string;
20
20
  };
21
21
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export type InputSize = 'lg' | 'md' | 'sm';
2
- export declare const borderedInputBaseStyles = "\n bg-white\n border\n border-solid\n border-solid-gray-900\n disabled:bg-transparent\n disabled:text-solid-gray-500\n disabled:border-solid-gray-500\n aria-invalid:border-red-800\n \n \n focus-visible:outline\n focus-visible:outline-4\n focus-visible:outline-black\n focus-visible:ring-yellow-300\n \n focus-visible:outline-offset-[calc(2/16*1rem)]\n focus-visible:ring-[calc(2/16*1rem)]\n \n";
2
+ export declare const borderedInputBaseStyles = "\n bg-white\n border\n border-solid\n border-solid-gray-900\n disabled:bg-transparent\n disabled:text-solid-gray-500\n disabled:border-solid-gray-500\n aria-invalid:border-red-800\n \n \n focus-visible:outline-4\n focus-visible:outline-black\n focus-visible:ring-yellow-300\n \n focus-visible:outline-offset-[calc(2/16*1rem)]\n focus-visible:ring-[calc(2/16*1rem)]\n \n";
3
3
  export declare const borderedInputSizeStyles: {
4
4
  [key in InputSize]: string;
5
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"inputStyle.d.ts","sourceRoot":"","sources":["../../../src/components/inputStyle.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE1C,eAAO,MAAM,uBAAuB,8aAUnC,CAAA;AAGD,eAAO,MAAM,uBAAuB,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAwBjE,CAAA;AAED,eAAO,MAAM,yBAAyB,yFAMrC,CAAA;AAGD,eAAO,MAAM,yBAAyB,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAsBnE,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAIpD,CAAA"}
1
+ {"version":3,"file":"inputStyle.d.ts","sourceRoot":"","sources":["../../../src/components/inputStyle.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE1C,eAAO,MAAM,uBAAuB,mZAUnC,CAAA;AAGD,eAAO,MAAM,uBAAuB,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAwBjE,CAAA;AAED,eAAO,MAAM,yBAAyB,yFAMrC,CAAA;AAGD,eAAO,MAAM,yBAAyB,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAsBnE,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE;KAAG,GAAG,IAAI,SAAS,GAAG,MAAM;CAIpD,CAAA"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@sakura-ui/forms",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "glassonion1",
7
7
  "homepage": "https://github.com/glassonion1/sakura-ui",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+ssh://git@github.com:glassonion1/sakura-ui.git",
10
+ "url": "git+https://github.com/glassonion1/sakura-ui.git",
11
11
  "directory": "packages/forms"
12
12
  },
13
13
  "license": "MIT",
@@ -28,35 +28,36 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "scripts": {
32
- "lint": "run-s lint:*",
33
- "lint:lint": "biome lint ./",
34
- "lint:prettier": "prettier --write --ignore-path .gitignore './src/*.ts'",
35
- "prebuild": "rimraf dist",
36
- "build": "run-p build:*",
37
- "build:scripts": "vite build",
38
- "build:types": "tsc && tsc-alias",
39
- "test": "vitest"
40
- },
41
31
  "peerDependencies": {
42
32
  "react": "^19.2.1",
43
33
  "react-dom": "^19.2.1",
44
34
  "tailwindcss": "^4.1.17"
45
35
  },
46
36
  "dependencies": {
47
- "@sakura-ui/helper": "0.0.6"
37
+ "@sakura-ui/helper": "0.0.9"
48
38
  },
49
39
  "devDependencies": {
50
- "@testing-library/jest-dom": "catalog:",
51
- "@testing-library/react": "catalog:",
52
- "@types/react": "catalog:",
53
- "@types/react-dom": "catalog:",
54
- "@tailwindcss/vite": "catalog:",
55
- "autoprefixer": "catalog:",
56
- "happy-dom": "catalog:",
57
- "postcss": "catalog:",
58
- "react": "catalog:",
59
- "react-dom": "catalog:",
60
- "tailwindcss": "catalog:"
40
+ "@testing-library/jest-dom": "^7.0.1",
41
+ "@testing-library/react": "^16.3.2",
42
+ "@types/react": "^19.2.18",
43
+ "@types/react-dom": "^19.2.4",
44
+ "@tailwindcss/vite": "^4.3.3",
45
+ "autoprefixer": "^10.5.4",
46
+ "happy-dom": "^20.11.6",
47
+ "postcss": "^8.5.26",
48
+ "react": "^19.2.8",
49
+ "react-dom": "^19.2.8",
50
+ "tailwindcss": "4.3.3"
51
+ },
52
+ "scripts": {
53
+ "lint": "run-s lint:*",
54
+ "lint:lint": "biome lint ./",
55
+ "lint:prettier": "prettier --write --ignore-path .gitignore './src/*.ts'",
56
+ "prebuild": "rimraf dist",
57
+ "build": "run-p build:*",
58
+ "build:scripts": "vite build",
59
+ "build:types": "tsc && tsc-alias",
60
+ "test": "vitest run",
61
+ "test:watch": "vitest"
61
62
  }
62
- }
63
+ }