@sakura-ui/sakura-ui 0.1.10 → 0.1.11

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.
Files changed (57) hide show
  1. package/README.md +8 -32
  2. package/package.json +4 -4
  3. package/packages/config/package.json +8 -8
  4. package/packages/config/src/index.ts +1 -1
  5. package/packages/core/package.json +12 -12
  6. package/packages/core/src/components/IconButton.tsx +12 -3
  7. package/packages/forms/coverage/clover.xml +60 -60
  8. package/packages/forms/coverage/coverage-final.json +17 -17
  9. package/packages/forms/coverage/lcov-report/index.html +23 -23
  10. package/packages/forms/coverage/lcov-report/src/components/Checkbox.tsx.html +8 -8
  11. package/packages/forms/coverage/lcov-report/src/components/FieldsetControl.tsx.html +4 -4
  12. package/packages/forms/coverage/lcov-report/src/components/LabelControl.tsx.html +60 -60
  13. package/packages/forms/coverage/lcov-report/src/components/Radio.tsx.html +3 -3
  14. package/packages/forms/coverage/lcov-report/src/components/Select.tsx.html +31 -37
  15. package/packages/forms/coverage/lcov-report/src/components/Text.tsx.html +13 -16
  16. package/packages/forms/coverage/lcov-report/src/components/Textarea.tsx.html +27 -30
  17. package/packages/forms/coverage/lcov-report/src/components/context.ts.html +2 -5
  18. package/packages/forms/coverage/lcov-report/src/components/controlled/CheckboxGroup.tsx.html +3 -3
  19. package/packages/forms/coverage/lcov-report/src/components/controlled/RadioGroup.tsx.html +3 -3
  20. package/packages/forms/coverage/lcov-report/src/components/controlled/SelectControl.tsx.html +3 -3
  21. package/packages/forms/coverage/lcov-report/src/components/controlled/TextControl.tsx.html +3 -3
  22. package/packages/forms/coverage/lcov-report/src/components/controlled/TextareaControl.tsx.html +3 -3
  23. package/packages/forms/coverage/lcov-report/src/components/controlled/index.html +1 -1
  24. package/packages/forms/coverage/lcov-report/src/components/controlled/index.ts.html +1 -1
  25. package/packages/forms/coverage/lcov-report/src/components/index.html +37 -37
  26. package/packages/forms/coverage/lcov-report/src/components/index.ts.html +9 -9
  27. package/packages/forms/coverage/lcov-report/src/index.html +5 -5
  28. package/packages/forms/coverage/lcov-report/src/index.ts.html +9 -9
  29. package/packages/forms/coverage/lcov-report/src/utils/index.html +1 -1
  30. package/packages/forms/coverage/lcov-report/src/utils/index.ts.html +2 -2
  31. package/packages/forms/coverage/lcov.info +83 -91
  32. package/packages/forms/dist/components/Textarea.d.ts.map +1 -1
  33. package/packages/forms/dist/index.cjs.js +15 -15
  34. package/packages/forms/dist/index.cjs.js.map +1 -1
  35. package/packages/forms/dist/index.es.js +351 -341
  36. package/packages/forms/dist/index.es.js.map +1 -1
  37. package/packages/forms/node_modules/.bin/autoprefixer +4 -4
  38. package/packages/forms/node_modules/.bin/browserslist +4 -4
  39. package/packages/forms/node_modules/.bin/jest +4 -4
  40. package/packages/forms/node_modules/.bin/npm-run-all +2 -2
  41. package/packages/forms/node_modules/.bin/run-p +2 -2
  42. package/packages/forms/node_modules/.bin/run-s +2 -2
  43. package/packages/forms/node_modules/.bin/tailwind +2 -2
  44. package/packages/forms/node_modules/.bin/tailwindcss +2 -2
  45. package/packages/forms/node_modules/.bin/ts-jest +4 -4
  46. package/packages/forms/node_modules/.bin/ts-node +4 -4
  47. package/packages/forms/node_modules/.bin/ts-node-cwd +4 -4
  48. package/packages/forms/node_modules/.bin/ts-node-esm +4 -4
  49. package/packages/forms/node_modules/.bin/ts-node-script +4 -4
  50. package/packages/forms/node_modules/.bin/ts-node-transpile-only +4 -4
  51. package/packages/forms/node_modules/.bin/ts-script +4 -4
  52. package/packages/forms/node_modules/.bin/tsc +4 -4
  53. package/packages/forms/node_modules/.bin/tsc-alias +4 -4
  54. package/packages/forms/node_modules/.bin/tsserver +4 -4
  55. package/packages/forms/node_modules/.bin/vite +4 -4
  56. package/packages/forms/package.json +15 -15
  57. package/packages/forms/src/components/Textarea.tsx +33 -12
@@ -13,13 +13,13 @@ FN:14,(anonymous_9)
13
13
  FN:15,(anonymous_10)
14
14
  FN:16,(anonymous_11)
15
15
  FNF:12
16
- FNH:6
16
+ FNH:4
17
17
  FNDA:0,(anonymous_0)
18
18
  FNDA:6,(anonymous_1)
19
- FNDA:2,(anonymous_2)
20
- FNDA:8,(anonymous_3)
21
- FNDA:2,(anonymous_4)
22
- FNDA:17,(anonymous_5)
19
+ FNDA:0,(anonymous_2)
20
+ FNDA:6,(anonymous_3)
21
+ FNDA:0,(anonymous_4)
22
+ FNDA:11,(anonymous_5)
23
23
  FNDA:11,(anonymous_6)
24
24
  FNDA:0,(anonymous_7)
25
25
  FNDA:0,(anonymous_8)
@@ -29,10 +29,10 @@ FNDA:0,(anonymous_11)
29
29
  DA:1,4
30
30
  DA:2,4
31
31
  DA:3,10
32
- DA:4,6
33
- DA:5,12
34
- DA:6,6
35
- DA:7,21
32
+ DA:4,4
33
+ DA:5,10
34
+ DA:6,4
35
+ DA:7,15
36
36
  DA:8,15
37
37
  DA:11,4
38
38
  DA:12,4
@@ -115,38 +115,36 @@ BRH:18
115
115
  end_of_record
116
116
  TN:
117
117
  SF:src/components/LabelControl.tsx
118
- FN:17,(anonymous_1)
118
+ FN:15,(anonymous_1)
119
119
  FNF:1
120
120
  FNH:1
121
- FNDA:17,(anonymous_1)
121
+ FNDA:11,(anonymous_1)
122
122
  DA:1,4
123
123
  DA:2,4
124
124
  DA:3,4
125
125
  DA:14,4
126
- DA:18,17
127
- DA:28,17
128
- DA:30,17
129
- DA:38,17
126
+ DA:16,11
127
+ DA:26,11
128
+ DA:28,11
129
+ DA:35,11
130
130
  LF:8
131
131
  LH:8
132
- BRDA:31,0,0,17
133
- BRDA:31,0,1,14
134
- BRDA:34,1,0,17
135
- BRDA:34,1,1,15
136
- BRDA:35,2,0,17
137
- BRDA:35,2,1,14
138
- BRDA:42,3,0,17
139
- BRDA:42,3,1,2
140
- BRDA:48,4,0,17
141
- BRDA:48,4,1,3
142
- BRDA:52,5,0,17
143
- BRDA:52,5,1,3
144
- BRDA:57,6,0,17
145
- BRDA:57,6,1,2
146
- BRDA:60,7,0,1
147
- BRDA:60,7,1,1
148
- BRF:16
149
- BRH:16
132
+ BRDA:31,0,0,11
133
+ BRDA:31,0,1,9
134
+ BRDA:32,1,0,11
135
+ BRDA:32,1,1,8
136
+ BRDA:39,2,0,11
137
+ BRDA:39,2,1,2
138
+ BRDA:41,3,0,11
139
+ BRDA:41,3,1,3
140
+ BRDA:44,4,0,11
141
+ BRDA:44,4,1,3
142
+ BRDA:52,5,0,11
143
+ BRDA:52,5,1,2
144
+ BRDA:57,6,0,1
145
+ BRDA:57,6,1,1
146
+ BRF:14
147
+ BRH:14
150
148
  end_of_record
151
149
  TN:
152
150
  SF:src/components/Radio.tsx
@@ -181,95 +179,89 @@ TN:
181
179
  SF:src/components/Select.tsx
182
180
  FN:8,(anonymous_1)
183
181
  FNF:1
184
- FNH:1
185
- FNDA:2,(anonymous_1)
182
+ FNH:0
183
+ FNDA:0,(anonymous_1)
186
184
  DA:1,4
187
185
  DA:2,4
188
186
  DA:3,4
189
187
  DA:7,4
190
- DA:9,2
191
- DA:10,2
192
- DA:11,2
188
+ DA:9,0
189
+ DA:10,0
190
+ DA:11,0
193
191
  DA:12,0
194
- DA:15,2
195
- DA:17,2
196
- DA:32,2
192
+ DA:15,0
193
+ DA:17,0
194
+ DA:31,0
197
195
  LF:11
198
- LH:10
196
+ LH:4
199
197
  BRDA:11,0,0,0
200
198
  BRDA:15,1,0,0
201
- BRDA:15,1,1,2
202
- BRDA:35,2,0,2
203
- BRDA:35,2,1,2
204
- BRDA:39,3,0,2
205
- BRDA:39,3,1,0
206
- BRF:7
207
- BRH:4
199
+ BRDA:15,1,1,0
200
+ BRDA:37,2,0,0
201
+ BRDA:37,2,1,0
202
+ BRF:5
203
+ BRH:0
208
204
  end_of_record
209
205
  TN:
210
206
  SF:src/components/Text.tsx
211
207
  FN:8,(anonymous_1)
212
208
  FNF:1
213
209
  FNH:1
214
- FNDA:8,(anonymous_1)
210
+ FNDA:6,(anonymous_1)
215
211
  DA:1,4
216
212
  DA:2,4
217
213
  DA:3,4
218
214
  DA:7,4
219
- DA:9,8
220
- DA:10,8
221
- DA:11,8
215
+ DA:9,6
216
+ DA:10,6
217
+ DA:11,6
222
218
  DA:12,2
223
- DA:15,8
224
- DA:17,8
225
- DA:32,8
219
+ DA:15,6
220
+ DA:17,6
221
+ DA:32,6
226
222
  LF:11
227
223
  LH:11
228
224
  BRDA:11,0,0,2
229
225
  BRDA:15,1,0,1
230
- BRDA:15,1,1,7
231
- BRDA:35,2,0,8
232
- BRDA:35,2,1,8
233
- BRDA:39,3,0,8
234
- BRDA:39,3,1,0
235
- BRF:7
236
- BRH:6
226
+ BRDA:15,1,1,5
227
+ BRDA:38,2,0,6
228
+ BRDA:38,2,1,0
229
+ BRF:5
230
+ BRH:4
237
231
  end_of_record
238
232
  TN:
239
233
  SF:src/components/Textarea.tsx
240
234
  FN:9,(anonymous_1)
241
235
  FNF:1
242
- FNH:1
243
- FNDA:2,(anonymous_1)
236
+ FNH:0
237
+ FNDA:0,(anonymous_1)
244
238
  DA:1,4
245
239
  DA:2,4
246
240
  DA:3,4
247
241
  DA:8,4
248
- DA:10,2
249
- DA:12,2
250
- DA:13,2
242
+ DA:10,0
243
+ DA:12,0
244
+ DA:13,0
251
245
  DA:14,0
252
- DA:17,2
253
- DA:19,2
254
- DA:34,2
246
+ DA:17,0
247
+ DA:19,0
248
+ DA:34,0
255
249
  LF:11
256
- LH:10
250
+ LH:4
257
251
  BRDA:13,0,0,0
258
252
  BRDA:17,1,0,0
259
- BRDA:17,1,1,2
260
- BRDA:36,2,0,2
261
- BRDA:36,2,1,2
262
- BRDA:40,3,0,2
263
- BRDA:40,3,1,0
264
- BRF:7
265
- BRH:4
253
+ BRDA:17,1,1,0
254
+ BRDA:39,2,0,0
255
+ BRDA:39,2,1,0
256
+ BRF:5
257
+ BRH:0
266
258
  end_of_record
267
259
  TN:
268
260
  SF:src/components/context.ts
269
261
  FNF:0
270
262
  FNH:0
271
263
  DA:1,4
272
- DA:12,4
264
+ DA:11,4
273
265
  LF:2
274
266
  LH:2
275
267
  BRF:0
@@ -285,20 +277,20 @@ FN:5,(anonymous_4)
285
277
  FN:6,(anonymous_5)
286
278
  FN:7,(anonymous_6)
287
279
  FNF:7
288
- FNH:6
280
+ FNH:4
289
281
  FNDA:0,(anonymous_0)
290
282
  FNDA:6,(anonymous_1)
291
- FNDA:2,(anonymous_2)
292
- FNDA:8,(anonymous_3)
293
- FNDA:2,(anonymous_4)
294
- FNDA:17,(anonymous_5)
283
+ FNDA:0,(anonymous_2)
284
+ FNDA:6,(anonymous_3)
285
+ FNDA:0,(anonymous_4)
286
+ FNDA:11,(anonymous_5)
295
287
  FNDA:11,(anonymous_6)
296
288
  DA:1,4
297
289
  DA:2,10
298
- DA:3,6
299
- DA:4,12
300
- DA:5,6
301
- DA:6,21
290
+ DA:3,4
291
+ DA:4,10
292
+ DA:5,4
293
+ DA:6,15
302
294
  DA:7,15
303
295
  LF:7
304
296
  LH:7
@@ -425,8 +417,8 @@ SF:src/utils/index.ts
425
417
  FN:1,(anonymous_0)
426
418
  FNF:1
427
419
  FNH:1
428
- FNDA:89,(anonymous_0)
429
- DA:1,89
420
+ FNDA:71,(anonymous_0)
421
+ DA:1,71
430
422
  LF:1
431
423
  LH:1
432
424
  BRF:0
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC;CAAG;AAE1E,eAAO,MAAM,QAAQ,wBAsCC,CAAA"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC;CAAG;AAE1E,eAAO,MAAM,QAAQ,wBA2DC,CAAA"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react");var te={exports:{}},W={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react");var te={exports:{}},W={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Pe;function br(){if(Pe)return W;Pe=1;var f=x,m=Symbol.for("react.element"),v=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,s=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function b(c,o,j){var g,R={},C=null,w=null;j!==void 0&&(C=""+j),o.key!==void 0&&(C=""+o.key),o.ref!==void 0&&(w=o.ref);for(g in o)d.call(o,g)&&!a.hasOwnProperty(g)&&(R[g]=o[g]);if(c&&c.defaultProps)for(g in o=c.defaultProps,o)R[g]===void 0&&(R[g]=o[g]);return{$$typeof:m,type:c,key:C,ref:w,props:R,_owner:s.current}}return W.Fragment=v,W.jsx=b,W.jsxs=b,W}var Y={};/**
9
+ */var Pe;function hr(){if(Pe)return W;Pe=1;var f=R,h=Symbol.for("react.element"),m=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,i=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function p(u,o,_){var b,g={},C=null,T=null;_!==void 0&&(C=""+_),o.key!==void 0&&(C=""+o.key),o.ref!==void 0&&(T=o.ref);for(b in o)d.call(o,b)&&!n.hasOwnProperty(b)&&(g[b]=o[b]);if(u&&u.defaultProps)for(b in o=u.defaultProps,o)g[b]===void 0&&(g[b]=o[b]);return{$$typeof:h,type:u,key:C,ref:T,props:g,_owner:i.current}}return W.Fragment=m,W.jsx=p,W.jsxs=p,W}var Y={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,23 +14,23 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ie;function hr(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var f=x,m=Symbol.for("react.element"),v=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),c=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),F=Symbol.iterator,De="@@iterator";function Me(e){if(e===null||typeof e!="object")return null;var r=F&&e[F]||e[De];return typeof r=="function"?r:null}var D=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ae("error",e,t)}}function Ae(e,r,t){{var n=D.ReactDebugCurrentFrame,p=n.getStackAddendum();p!==""&&(r+="%s",t=t.concat([p]));var h=t.map(function(u){return String(u)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var $e=!1,qe=!1,We=!1,Ye=!1,Le=!1,ne;ne=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===d||e===a||Le||e===s||e===j||e===g||Ye||e===w||$e||qe||We||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===R||e.$$typeof===b||e.$$typeof===c||e.$$typeof===o||e.$$typeof===ne||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var p=r.displayName||r.name||"";return p!==""?t+"("+p+")":t}function se(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case d:return"Fragment";case v:return"Portal";case a:return"Profiler";case s:return"StrictMode";case j:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var r=e;return se(r)+".Consumer";case b:var t=e;return se(t._context)+".Provider";case o:return Ue(e,e.render,"ForwardRef");case R:var n=e.displayName||null;return n!==null?n:S(e.type)||"Memo";case C:{var p=e,h=p._payload,u=p._init;try{return S(u(h))}catch{return null}}}return null}var N=Object.assign,$=0,ie,oe,le,ue,ce,de,fe;function pe(){}pe.__reactDisabledLog=!0;function Be(){{if($===0){ie=console.log,oe=console.info,le=console.warn,ue=console.error,ce=console.group,de=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Ge(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ie}),info:N({},e,{value:oe}),warn:N({},e,{value:le}),error:N({},e,{value:ue}),group:N({},e,{value:ce}),groupCollapsed:N({},e,{value:de}),groupEnd:N({},e,{value:fe})})}$<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=D.ReactCurrentDispatcher,K;function L(e,r,t){{if(K===void 0)try{throw Error()}catch(p){var n=p.stack.trim().match(/\n( *(at )?)/);K=n&&n[1]||""}return`
18
- `+K+e}}var H=!1,V;{var Je=typeof WeakMap=="function"?WeakMap:Map;V=new Je}function ve(e,r){if(!e||H)return"";{var t=V.get(e);if(t!==void 0)return t}var n;H=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=z.current,z.current=null,Be();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(O){n=O}Reflect.construct(e,[],u)}else{try{u.call()}catch(O){n=O}e.call(u.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var l=O.stack.split(`
19
- `),T=n.stack.split(`
20
- `),y=l.length-1,E=T.length-1;y>=1&&E>=0&&l[y]!==T[E];)E--;for(;y>=1&&E>=0;y--,E--)if(l[y]!==T[E]){if(y!==1||E!==1)do if(y--,E--,E<0||l[y]!==T[E]){var P=`
21
- `+l[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,P),P}while(y>=1&&E>=0);break}}}finally{H=!1,z.current=h,Ge(),Error.prepareStackTrace=p}var A=e?e.displayName||e.name:"",Ce=A?L(A):"";return typeof e=="function"&&V.set(e,Ce),Ce}function ze(e,r,t){return ve(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Ke(e));if(typeof e=="string")return L(e);switch(e){case j:return L("Suspense");case g:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case o:return ze(e.render);case R:return U(e.type,r,t);case C:{var n=e,p=n._payload,h=n._init;try{return U(h(p),r,t)}catch{}}}return""}var B=Object.prototype.hasOwnProperty,me={},be=D.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}function He(e,r,t,n,p){{var h=Function.call.bind(B);for(var u in e)if(h(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var T=Error((n||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}l=e[u](r,u,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(G(p),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,u,typeof l),G(null)),l instanceof Error&&!(l.message in me)&&(me[l.message]=!0,G(p),_("Failed %s type: %s",t,l.message),G(null))}}}var Xe=Array.isArray;function X(e){return Xe(e)}function Ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function xe(e){if(Qe(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(e)),he(e)}var q=D.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},ge,Re,Z;Z={};function rr(e){if(B.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(B.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){if(typeof e.ref=="string"&&q.current&&r&&q.current.stateNode!==r){var t=S(q.current.type);Z[t]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',S(q.current.type),e.ref),Z[t]=!0)}}function nr(e,r){{var t=function(){ge||(ge=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Re||(Re=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ir=function(e,r,t,n,p,h,u){var l={$$typeof:m,type:e,key:r,ref:t,props:u,_owner:h};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function or(e,r,t,n,p){{var h,u={},l=null,T=null;t!==void 0&&(xe(t),l=""+t),tr(r)&&(xe(r.key),l=""+r.key),rr(r)&&(T=r.ref,ar(r,p));for(h in r)B.call(r,h)&&!er.hasOwnProperty(h)&&(u[h]=r[h]);if(e&&e.defaultProps){var y=e.defaultProps;for(h in y)u[h]===void 0&&(u[h]=y[h])}if(l||T){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&nr(u,E),T&&sr(u,E)}return ir(e,l,T,p,n,q.current,u)}}var Q=D.ReactCurrentOwner,ye=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function Ee(){{if(Q.current){var e=S(Q.current.type);if(e)return`
17
+ */var Ie;function br(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var f=R,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),u=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),S=Symbol.iterator,De="@@iterator";function Me(e){if(e===null||typeof e!="object")return null;var r=S&&e[S]||e[De];return typeof r=="function"?r:null}var D=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),s=1;s<r;s++)t[s-1]=arguments[s];Ae("error",e,t)}}function Ae(e,r,t){{var s=D.ReactDebugCurrentFrame,v=s.getStackAddendum();v!==""&&(r+="%s",t=t.concat([v]));var x=t.map(function(c){return String(c)});x.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,x)}}var $e=!1,qe=!1,We=!1,Ye=!1,Le=!1,ae;ae=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===d||e===n||Le||e===i||e===_||e===b||Ye||e===T||$e||qe||We||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===g||e.$$typeof===p||e.$$typeof===u||e.$$typeof===o||e.$$typeof===ae||e.getModuleId!==void 0))}function Ue(e,r,t){var s=e.displayName;if(s)return s;var v=r.displayName||r.name||"";return v!==""?t+"("+v+")":t}function se(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case d:return"Fragment";case m:return"Portal";case n:return"Profiler";case i:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var r=e;return se(r)+".Consumer";case p:var t=e;return se(t._context)+".Provider";case o:return Ue(e,e.render,"ForwardRef");case g:var s=e.displayName||null;return s!==null?s:O(e.type)||"Memo";case C:{var v=e,x=v._payload,c=v._init;try{return O(c(x))}catch{return null}}}return null}var k=Object.assign,$=0,ie,oe,le,ue,ce,de,fe;function pe(){}pe.__reactDisabledLog=!0;function Be(){{if($===0){ie=console.log,oe=console.info,le=console.warn,ue=console.error,ce=console.group,de=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Ge(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ie}),info:k({},e,{value:oe}),warn:k({},e,{value:le}),error:k({},e,{value:ue}),group:k({},e,{value:ce}),groupCollapsed:k({},e,{value:de}),groupEnd:k({},e,{value:fe})})}$<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=D.ReactCurrentDispatcher,H;function L(e,r,t){{if(H===void 0)try{throw Error()}catch(v){var s=v.stack.trim().match(/\n( *(at )?)/);H=s&&s[1]||""}return`
18
+ `+H+e}}var K=!1,V;{var Je=typeof WeakMap=="function"?WeakMap:Map;V=new Je}function ve(e,r){if(!e||K)return"";{var t=V.get(e);if(t!==void 0)return t}var s;K=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=z.current,z.current=null,Be();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(N){s=N}Reflect.construct(e,[],c)}else{try{c.call()}catch(N){s=N}e.call(c.prototype)}}else{try{throw Error()}catch(N){s=N}e()}}catch(N){if(N&&s&&typeof N.stack=="string"){for(var l=N.stack.split(`
19
+ `),w=s.stack.split(`
20
+ `),y=l.length-1,E=w.length-1;y>=1&&E>=0&&l[y]!==w[E];)E--;for(;y>=1&&E>=0;y--,E--)if(l[y]!==w[E]){if(y!==1||E!==1)do if(y--,E--,E<0||l[y]!==w[E]){var P=`
21
+ `+l[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,P),P}while(y>=1&&E>=0);break}}}finally{K=!1,z.current=x,Ge(),Error.prepareStackTrace=v}var A=e?e.displayName||e.name:"",Ce=A?L(A):"";return typeof e=="function"&&V.set(e,Ce),Ce}function ze(e,r,t){return ve(e,!1)}function He(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,He(e));if(typeof e=="string")return L(e);switch(e){case _:return L("Suspense");case b:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case o:return ze(e.render);case g:return U(e.type,r,t);case C:{var s=e,v=s._payload,x=s._init;try{return U(x(v),r,t)}catch{}}}return""}var B=Object.prototype.hasOwnProperty,me={},he=D.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Ke(e,r,t,s,v){{var x=Function.call.bind(B);for(var c in e)if(x(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var w=Error((s||"React class")+": "+t+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}l=e[c](r,c,s,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){l=y}l&&!(l instanceof Error)&&(G(v),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",t,c,typeof l),G(null)),l instanceof Error&&!(l.message in me)&&(me[l.message]=!0,G(v),j("Failed %s type: %s",t,l.message),G(null))}}}var Xe=Array.isArray;function X(e){return Xe(e)}function Ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function xe(e){if(Qe(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(e)),be(e)}var q=D.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},ge,Re,Z;Z={};function rr(e){if(B.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(B.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function nr(e,r){if(typeof e.ref=="string"&&q.current&&r&&q.current.stateNode!==r){var t=O(q.current.type);Z[t]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(q.current.type),e.ref),Z[t]=!0)}}function ar(e,r){{var t=function(){ge||(ge=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Re||(Re=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ir=function(e,r,t,s,v,x,c){var l={$$typeof:h,type:e,key:r,ref:t,props:c,_owner:x};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function or(e,r,t,s,v){{var x,c={},l=null,w=null;t!==void 0&&(xe(t),l=""+t),tr(r)&&(xe(r.key),l=""+r.key),rr(r)&&(w=r.ref,nr(r,v));for(x in r)B.call(r,x)&&!er.hasOwnProperty(x)&&(c[x]=r[x]);if(e&&e.defaultProps){var y=e.defaultProps;for(x in y)c[x]===void 0&&(c[x]=y[x])}if(l||w){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&ar(c,E),w&&sr(c,E)}return ir(e,l,w,v,s,q.current,c)}}var Q=D.ReactCurrentOwner,ye=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===h}function Ee(){{if(Q.current){var e=O(Q.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function lr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
25
  Check your code at `+r+":"+t+"."}return""}}var _e={};function ur(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==Q.current&&(n=" It was passed a child from "+S(e._owner.type)+"."),M(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),M(null)}}function je(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var n=e[t];re(n)&&Te(n,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var p=Me(e);if(typeof p=="function"&&p!==e.entries)for(var h=p.call(e),u;!(u=h.next()).done;)re(u.value)&&Te(u.value,r)}}}function cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===o||r.$$typeof===R))t=r.propTypes;else return;if(t){var n=S(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var p=S(r);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){M(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),M(null);break}}e.ref!==null&&(M(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}function we(e,r,t,n,p,h){{var u=Ve(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=lr(p);T?l+=T:l+=Ee();var y;e===null?y="null":X(e)?y="array":e!==void 0&&e.$$typeof===m?(y="<"+(S(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var E=or(e,r,t,p,h);if(E==null)return E;if(u){var P=r.children;if(P!==void 0)if(n)if(X(P)){for(var A=0;A<P.length;A++)je(P[A],e);Object.freeze&&Object.freeze(P)}else _("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 je(P,e)}return e===d?dr(E):cr(E),E}}function fr(e,r,t){return we(e,r,t,!0)}function pr(e,r,t){return we(e,r,t,!1)}var vr=pr,mr=fr;Y.Fragment=d,Y.jsx=vr,Y.jsxs=mr}()),Y}process.env.NODE_ENV==="production"?te.exports=br():te.exports=hr();var i=te.exports;const I=(...f)=>f.filter(Boolean).join(" "),k=x.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),Se=x.forwardRef((f,m)=>{const{className:v,children:d,...s}=f,a=x.useContext(k);a.isRequired&&(s.required=!0),a.groupName&&(s.name=a.groupName);const b=`
27
+ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(_e[t])return;_e[t]=!0;var s="";e&&e._owner&&e._owner!==Q.current&&(s=" It was passed a child from "+O(e._owner.type)+"."),M(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,s),M(null)}}function je(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var s=e[t];re(s)&&Te(s,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var v=Me(e);if(typeof v=="function"&&v!==e.entries)for(var x=v.call(e),c;!(c=x.next()).done;)re(c.value)&&Te(c.value,r)}}}function cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===o||r.$$typeof===g))t=r.propTypes;else return;if(t){var s=O(r);Ke(t,e.props,"prop",s,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var v=O(r);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",v||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var s=r[t];if(s!=="children"&&s!=="key"){M(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),M(null);break}}e.ref!==null&&(M(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),M(null))}}function we(e,r,t,s,v,x){{var c=Ve(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var w=lr(v);w?l+=w:l+=Ee();var y;e===null?y="null":X(e)?y="array":e!==void 0&&e.$$typeof===h?(y="<"+(O(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,l)}var E=or(e,r,t,v,x);if(E==null)return E;if(c){var P=r.children;if(P!==void 0)if(s)if(X(P)){for(var A=0;A<P.length;A++)je(P[A],e);Object.freeze&&Object.freeze(P)}else j("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 je(P,e)}return e===d?dr(E):cr(E),E}}function fr(e,r,t){return we(e,r,t,!0)}function pr(e,r,t){return we(e,r,t,!1)}var vr=pr,mr=fr;Y.Fragment=d,Y.jsx=vr,Y.jsxs=mr}()),Y}process.env.NODE_ENV==="production"?te.exports=hr():te.exports=br();var a=te.exports;const I=(...f)=>f.filter(Boolean).join(" "),F=R.createContext({helperTextId:"",errorMessageId:"",isInvalid:!1,isRequired:!1}),Se=R.forwardRef((f,h)=>{const{className:m,children:d,...i}=f,n=R.useContext(F);n.isRequired&&(i.required=!0),n.groupName&&(i.name=n.groupName);const p=`
28
28
  inline-block
29
29
  text-base
30
30
  cursor-pointer
31
31
  py-2
32
32
  mr-4
33
- `,c=`
33
+ `,u=`
34
34
  peer
35
35
  hidden
36
36
  `,o=`
@@ -47,14 +47,14 @@ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(
47
47
  peer-checked:bg-sea-600
48
48
  peer-checked:border-none
49
49
  peer-disabled:border-sumi-500
50
- `;return i.jsx("label",{htmlFor:s.id,className:I(b,v),children:i.jsxs("span",{className:"flex items-center",children:[i.jsx("input",{className:c,type:"checkbox","aria-describedby":a.helperTextId,"aria-errormessage":a.errorMessageId,"aria-invalid":a.isInvalid??!1,...s,ref:m}),i.jsx("span",{className:o,children:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:i.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"})})}),i.jsx("span",{className:"peer-disabled:text-sumi-500",children:d})]})})}),Oe=x.forwardRef((f,m)=>{const{className:v,children:d,...s}=f,a=x.useContext(k);a.isRequired&&(s.required=!0),a.groupName&&(s.name=a.groupName);const b=`
50
+ `;return a.jsx("label",{htmlFor:i.id,className:I(p,m),children:a.jsxs("span",{className:"flex items-center",children:[a.jsx("input",{className:u,type:"checkbox","aria-describedby":n.helperTextId,"aria-errormessage":n.errorMessageId,"aria-invalid":n.isInvalid??!1,...i,ref:h}),a.jsx("span",{className:o,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:a.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"})})}),a.jsx("span",{className:"peer-disabled:text-sumi-500",children:d})]})})}),Oe=R.forwardRef((f,h)=>{const{className:m,children:d,...i}=f,n=R.useContext(F);n.isRequired&&(i.required=!0),n.groupName&&(i.name=n.groupName);const p=`
51
51
  inline-block
52
52
  text-base
53
53
  cursor-pointer
54
54
  py-2
55
55
  mr-4
56
56
 
57
- `,c=`
57
+ `,u=`
58
58
  peer
59
59
  hidden
60
60
  `,o=`
@@ -70,7 +70,7 @@ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(
70
70
  peer-checked:bg-sea-600
71
71
  peer-checked:border-sea-600
72
72
  peer-disabled:border-sumi-500
73
- `;return i.jsx("label",{htmlFor:s.id,className:I(b,v),children:i.jsxs("span",{className:"flex items-center",children:[i.jsx("input",{className:c,type:"radio","aria-describedby":a.helperTextId,"aria-errormessage":a.errorMessageId,"aria-invalid":a.isInvalid??!1,...s,ref:m}),i.jsx("span",{className:o}),i.jsx("span",{className:"peer-disabled:text-sumi-500",children:d})]})})}),Ne=x.forwardRef((f,m)=>{const{className:v,children:d,...s}=f,a=x.useContext(k);a.isRequired&&(s.required=!0);const b=a.isInvalid?"border-sun-800":"border-sumi-900",c=`
73
+ `;return a.jsx("label",{htmlFor:i.id,className:I(p,m),children:a.jsxs("span",{className:"flex items-center",children:[a.jsx("input",{className:u,type:"radio","aria-describedby":n.helperTextId,"aria-errormessage":n.errorMessageId,"aria-invalid":n.isInvalid??!1,...i,ref:h}),a.jsx("span",{className:o}),a.jsx("span",{className:"peer-disabled:text-sumi-500",children:d})]})})}),Ne=R.forwardRef((f,h)=>{const{className:m,children:d,...i}=f,n=R.useContext(F);n.isRequired&&(i.required=!0);const p=n.isInvalid?"border-sun-800":"border-sumi-900",u=`
74
74
  peer
75
75
  cursor-pointer
76
76
  appearance-none
@@ -93,7 +93,7 @@ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(
93
93
  px-2
94
94
  pointer-events-none
95
95
  peer-disabled:fill-sumi-500
96
- `;return i.jsxs("label",{className:"inline-block relative",children:[i.jsx("select",{id:s.id??a.id,className:I(c,b,f.className),"aria-describedby":a.helperTextId,"aria-errormessage":a.errorMessageId,"aria-invalid":a.isInvalid??!1,...s,ref:m,children:d}),i.jsx("span",{className:o,children:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",children:i.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"})})})]})}),ke=x.forwardRef((f,m)=>{const{className:v,...d}=f,s=x.useContext(k);s.isRequired&&(d.required=!0);const a=s.isInvalid?"border-sun-800":"border-sumi-900",b=`
96
+ `;return a.jsxs("label",{className:"inline-block relative",children:[a.jsx("select",{id:i.id??n.id,className:I(u,p,f.className),"aria-describedby":n.helperTextId,"aria-errormessage":n.errorMessageId,"aria-invalid":n.isInvalid??!1,...i,ref:h,children:d}),a.jsx("span",{className:o,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",children:a.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"})})})]})}),ke=R.forwardRef((f,h)=>{const{className:m,...d}=f,i=R.useContext(F);i.isRequired&&(d.required=!0);const n=i.isInvalid?"border-sun-800":"border-sumi-900",p=`
97
97
  p-4
98
98
  rounded-lg
99
99
  border
@@ -104,7 +104,7 @@ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(
104
104
  disabled:bg-transparent
105
105
  disabled:text-sumi-500
106
106
  disabled:border-sumi-500
107
- `;return i.jsx("input",{type:"text",id:d.id??s.id,className:I(b,a,v),"aria-describedby":s.helperTextId,"aria-errormessage":s.errorMessageId,"aria-invalid":s.isInvalid??!1,...d,ref:m})}),Fe=x.forwardRef((f,m)=>{const{className:v,children:d,...s}=f,a=x.useContext(k);a.isRequired&&(s.required=!0);const b=a.isInvalid?"border-sun-800":"border-sumi-900",c=`
107
+ `;return a.jsx("input",{type:"text",id:d.id??i.id,className:I(p,n,m),"aria-describedby":i.helperTextId,"aria-errormessage":i.errorMessageId,"aria-invalid":i.isInvalid??!1,...d,ref:h})}),Fe=R.forwardRef((f,h)=>{const{className:m,children:d,onChange:i,maxLength:n,...p}=f,[u,o]=R.useState(0),_=S=>{i&&i(S),o(S.target.value.length)},b=R.useContext(F);b.isRequired&&(p.required=!0);const g=b.isInvalid?"border-sun-800":"border-sumi-900",C=u>(n||0)?"text-sun-800":"text-sumi-700",T=`
108
108
  p-4
109
109
  rounded-lg
110
110
  border
@@ -115,5 +115,5 @@ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(
115
115
  disabled:bg-transparent
116
116
  disabled:text-sumi-500
117
117
  disabled:border-sumi-500
118
- `;return i.jsx("textarea",{id:s.id??a.id,className:I(c,b,v),"aria-describedby":a.helperTextId,"aria-errormessage":a.errorMessageId,"aria-invalid":a.isInvalid??!1,...s,ref:m,children:d})}),J=x.forwardRef((f,m)=>{const v=x.useId(),{labelText:d,className:s,helperText:a,errorMessage:b,isInvalid:c,isRequired:o,children:j,...g}=f,R={id:f.htmlFor??`input-${v}`,helperTextId:`helper-text-${v}`,errorMessageId:`error-message-${v}`,isInvalid:c??!1,isRequired:o??!1};return i.jsx(k.Provider,{value:R,children:i.jsxs("div",{className:I("mb-4",s),children:[i.jsxs("label",{className:I("block mb-2 text-label",c&&"text-sun-800"),htmlFor:R.id,ref:m,...g,children:[d,o&&i.jsx("span",{className:"text-sun-800",children:" *"})]}),a&&i.jsx("p",{id:R.helperTextId,className:"text-xs text-sumi-700 mb-2",children:a}),j,c&&i.jsx("p",{id:R.errorMessageId,className:I("text-xs text-sun-800",a?"mt-1":"mt-2"),children:b})]})})}),ae=x.forwardRef((f,m)=>{const v=x.useId(),{labelText:d,className:s,helperText:a,errorMessage:b,isInvalid:c,isRequired:o,direction:j,children:g,...R}=f,w={groupName:R.name??`group-${v}`,helperTextId:`helper-text-${v}`,errorMessageId:`error-message-${v}`,isInvalid:c??!1,isRequired:o??!1},F=j??"flex-col";return i.jsx(k.Provider,{value:w,children:i.jsxs("fieldset",{className:I("mb-4",s),ref:m,...R,children:[i.jsx("legend",{children:i.jsxs("p",{className:I("block mb-2 text-label",c&&"text-sun-800"),children:[d,o&&i.jsx("span",{className:"text-sun-800",children:" *"})]})}),i.jsx("div",{className:I("inline-flex",F),children:g}),a&&i.jsx("p",{id:w.helperTextId,className:"text-xs text-sumi-700 mt-2",children:a}),c&&i.jsx("p",{id:w.errorMessageId,className:I("text-xs text-sun-800",a?"mt-1":"mt-2"),children:b})]})})}),xr=x.forwardRef((f,m)=>{const{items:v,onChange:d,className:s,labelText:a,helperText:b,errorMessage:c,isInvalid:o,isRequired:j,...g}=f;return i.jsx(ae,{className:s,labelText:a,helperText:b,errorMessage:c,isInvalid:o,isRequired:j,ref:m,...g,children:v.map(({label:R,value:C},w)=>i.jsx(Se,{value:C,onChange:d,children:R},w))})}),gr=x.forwardRef((f,m)=>{const{items:v,onChange:d,className:s,labelText:a,helperText:b,errorMessage:c,isInvalid:o,isRequired:j,defaultValue:g,...R}=f;return i.jsx(ae,{className:s,labelText:a,helperText:b,errorMessage:c,isInvalid:o,isRequired:j,ref:m,...R,children:v.map(({label:C,value:w},F)=>i.jsx(Oe,{value:w,onChange:d,defaultChecked:g===w,children:C},F))})}),Rr=x.forwardRef((f,m)=>{const{className:v,labelText:d,helperText:s,errorMessage:a,isInvalid:b,isRequired:c,...o}=f;return i.jsx(J,{className:v,labelText:d,helperText:s,errorMessage:a,isInvalid:b,isRequired:c,children:i.jsx(Ne,{ref:m,...o})})}),yr=x.forwardRef((f,m)=>{const{className:v,labelText:d,helperText:s,errorMessage:a,isInvalid:b,isRequired:c,...o}=f;return i.jsx(J,{className:v,labelText:d,helperText:s,errorMessage:a,isInvalid:b,isRequired:c,children:i.jsx(ke,{ref:m,...o})})}),Er=x.forwardRef((f,m)=>{const{className:v,labelText:d,helperText:s,errorMessage:a,isInvalid:b,isRequired:c,...o}=f;return i.jsx(J,{className:v,labelText:d,helperText:s,errorMessage:a,isInvalid:b,isRequired:c,children:i.jsx(Fe,{ref:m,...o})})});exports.Checkbox=Se;exports.CheckboxGroup=xr;exports.FieldsetControl=ae;exports.Input=ke;exports.InputControl=yr;exports.LabelControl=J;exports.Radio=Oe;exports.RadioGroup=gr;exports.Select=Ne;exports.SelectControl=Rr;exports.Textarea=Fe;exports.TextareaControl=Er;
118
+ `;return a.jsxs(a.Fragment,{children:[a.jsx("textarea",{id:p.id??b.id,className:I(T,g,m),"aria-describedby":b.helperTextId,"aria-errormessage":b.errorMessageId,"aria-invalid":b.isInvalid??!1,onChange:_,...p,ref:h,children:d}),n?a.jsxs("p",{className:"text-xs text-sumi-700",children:[a.jsx("span",{className:C,children:u}),"/",a.jsx("span",{children:n})]}):""]})}),J=R.forwardRef((f,h)=>{const m=R.useId(),{labelText:d,className:i,helperText:n,errorMessage:p,isInvalid:u,isRequired:o,children:_,...b}=f,g={id:f.htmlFor??`input-${m}`,helperTextId:`helper-text-${m}`,errorMessageId:`error-message-${m}`,isInvalid:u??!1,isRequired:o??!1};return a.jsx(F.Provider,{value:g,children:a.jsxs("div",{className:I("mb-4",i),children:[a.jsxs("label",{className:I("block mb-2 text-label",u&&"text-sun-800"),htmlFor:g.id,ref:h,...b,children:[d,o&&a.jsx("span",{className:"text-sun-800",children:" *"})]}),n&&a.jsx("p",{id:g.helperTextId,className:"text-xs text-sumi-700 mb-2",children:n}),_,u&&a.jsx("p",{id:g.errorMessageId,className:I("text-xs text-sun-800",n?"mt-1":"mt-2"),children:p})]})})}),ne=R.forwardRef((f,h)=>{const m=R.useId(),{labelText:d,className:i,helperText:n,errorMessage:p,isInvalid:u,isRequired:o,direction:_,children:b,...g}=f,T={groupName:g.name??`group-${m}`,helperTextId:`helper-text-${m}`,errorMessageId:`error-message-${m}`,isInvalid:u??!1,isRequired:o??!1},S=_??"flex-col";return a.jsx(F.Provider,{value:T,children:a.jsxs("fieldset",{className:I("mb-4",i),ref:h,...g,children:[a.jsx("legend",{children:a.jsxs("p",{className:I("block mb-2 text-label",u&&"text-sun-800"),children:[d,o&&a.jsx("span",{className:"text-sun-800",children:" *"})]})}),a.jsx("div",{className:I("inline-flex",S),children:b}),n&&a.jsx("p",{id:T.helperTextId,className:"text-xs text-sumi-700 mt-2",children:n}),u&&a.jsx("p",{id:T.errorMessageId,className:I("text-xs text-sun-800",n?"mt-1":"mt-2"),children:p})]})})}),xr=R.forwardRef((f,h)=>{const{items:m,onChange:d,className:i,labelText:n,helperText:p,errorMessage:u,isInvalid:o,isRequired:_,...b}=f;return a.jsx(ne,{className:i,labelText:n,helperText:p,errorMessage:u,isInvalid:o,isRequired:_,ref:h,...b,children:m.map(({label:g,value:C},T)=>a.jsx(Se,{value:C,onChange:d,children:g},T))})}),gr=R.forwardRef((f,h)=>{const{items:m,onChange:d,className:i,labelText:n,helperText:p,errorMessage:u,isInvalid:o,isRequired:_,defaultValue:b,...g}=f;return a.jsx(ne,{className:i,labelText:n,helperText:p,errorMessage:u,isInvalid:o,isRequired:_,ref:h,...g,children:m.map(({label:C,value:T},S)=>a.jsx(Oe,{value:T,onChange:d,defaultChecked:b===T,children:C},S))})}),Rr=R.forwardRef((f,h)=>{const{className:m,labelText:d,helperText:i,errorMessage:n,isInvalid:p,isRequired:u,...o}=f;return a.jsx(J,{className:m,labelText:d,helperText:i,errorMessage:n,isInvalid:p,isRequired:u,children:a.jsx(Ne,{ref:h,...o})})}),yr=R.forwardRef((f,h)=>{const{className:m,labelText:d,helperText:i,errorMessage:n,isInvalid:p,isRequired:u,...o}=f;return a.jsx(J,{className:m,labelText:d,helperText:i,errorMessage:n,isInvalid:p,isRequired:u,children:a.jsx(ke,{ref:h,...o})})}),Er=R.forwardRef((f,h)=>{const{className:m,labelText:d,helperText:i,errorMessage:n,isInvalid:p,isRequired:u,...o}=f;return a.jsx(J,{className:m,labelText:d,helperText:i,errorMessage:n,isInvalid:p,isRequired:u,children:a.jsx(Fe,{ref:h,...o})})});exports.Checkbox=Se;exports.CheckboxGroup=xr;exports.FieldsetControl=ne;exports.Input=ke;exports.InputControl=yr;exports.LabelControl=J;exports.Radio=Oe;exports.RadioGroup=gr;exports.Select=Ne;exports.SelectControl=Rr;exports.Textarea=Fe;exports.TextareaControl=Er;
119
119
  //# sourceMappingURL=index.cjs.js.map