@sakura-ui/sakura-ui 0.1.9 → 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.
- package/README.md +8 -32
- package/package.json +4 -4
- package/packages/config/package.json +8 -8
- package/packages/config/src/index.ts +1 -1
- package/packages/core/package.json +12 -12
- package/packages/core/src/components/IconButton.tsx +12 -3
- package/packages/forms/coverage/clover.xml +60 -60
- package/packages/forms/coverage/coverage-final.json +17 -17
- package/packages/forms/coverage/lcov-report/index.html +23 -23
- package/packages/forms/coverage/lcov-report/src/components/Checkbox.tsx.html +8 -8
- package/packages/forms/coverage/lcov-report/src/components/FieldsetControl.tsx.html +4 -4
- package/packages/forms/coverage/lcov-report/src/components/LabelControl.tsx.html +60 -60
- package/packages/forms/coverage/lcov-report/src/components/Radio.tsx.html +3 -3
- package/packages/forms/coverage/lcov-report/src/components/Select.tsx.html +31 -37
- package/packages/forms/coverage/lcov-report/src/components/Text.tsx.html +13 -16
- package/packages/forms/coverage/lcov-report/src/components/Textarea.tsx.html +27 -30
- package/packages/forms/coverage/lcov-report/src/components/context.ts.html +2 -5
- package/packages/forms/coverage/lcov-report/src/components/controlled/CheckboxGroup.tsx.html +3 -3
- package/packages/forms/coverage/lcov-report/src/components/controlled/RadioGroup.tsx.html +3 -3
- package/packages/forms/coverage/lcov-report/src/components/controlled/SelectControl.tsx.html +3 -3
- package/packages/forms/coverage/lcov-report/src/components/controlled/TextControl.tsx.html +3 -3
- package/packages/forms/coverage/lcov-report/src/components/controlled/TextareaControl.tsx.html +3 -3
- package/packages/forms/coverage/lcov-report/src/components/controlled/index.html +1 -1
- package/packages/forms/coverage/lcov-report/src/components/controlled/index.ts.html +1 -1
- package/packages/forms/coverage/lcov-report/src/components/index.html +37 -37
- package/packages/forms/coverage/lcov-report/src/components/index.ts.html +9 -9
- package/packages/forms/coverage/lcov-report/src/index.html +5 -5
- package/packages/forms/coverage/lcov-report/src/index.ts.html +9 -9
- package/packages/forms/coverage/lcov-report/src/utils/index.html +1 -1
- package/packages/forms/coverage/lcov-report/src/utils/index.ts.html +2 -2
- package/packages/forms/coverage/lcov.info +83 -91
- package/packages/forms/dist/components/Textarea.d.ts.map +1 -1
- package/packages/forms/dist/index.cjs.js +15 -15
- package/packages/forms/dist/index.cjs.js.map +1 -1
- package/packages/forms/dist/index.es.js +351 -341
- package/packages/forms/dist/index.es.js.map +1 -1
- package/packages/forms/node_modules/.bin/autoprefixer +4 -4
- package/packages/forms/node_modules/.bin/browserslist +4 -4
- package/packages/forms/node_modules/.bin/jest +4 -4
- package/packages/forms/node_modules/.bin/npm-run-all +2 -2
- package/packages/forms/node_modules/.bin/run-p +2 -2
- package/packages/forms/node_modules/.bin/run-s +2 -2
- package/packages/forms/node_modules/.bin/tailwind +2 -2
- package/packages/forms/node_modules/.bin/tailwindcss +2 -2
- package/packages/forms/node_modules/.bin/ts-jest +4 -4
- package/packages/forms/node_modules/.bin/ts-node +4 -4
- package/packages/forms/node_modules/.bin/ts-node-cwd +4 -4
- package/packages/forms/node_modules/.bin/ts-node-esm +4 -4
- package/packages/forms/node_modules/.bin/ts-node-script +4 -4
- package/packages/forms/node_modules/.bin/ts-node-transpile-only +4 -4
- package/packages/forms/node_modules/.bin/ts-script +4 -4
- package/packages/forms/node_modules/.bin/tsc +4 -4
- package/packages/forms/node_modules/.bin/tsc-alias +4 -4
- package/packages/forms/node_modules/.bin/tsserver +4 -4
- package/packages/forms/node_modules/.bin/vite +4 -4
- package/packages/forms/package.json +15 -15
- 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:
|
|
16
|
+
FNH:4
|
|
17
17
|
FNDA:0,(anonymous_0)
|
|
18
18
|
FNDA:6,(anonymous_1)
|
|
19
|
-
FNDA:
|
|
20
|
-
FNDA:
|
|
21
|
-
FNDA:
|
|
22
|
-
FNDA:
|
|
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,
|
|
33
|
-
DA:5,
|
|
34
|
-
DA:6,
|
|
35
|
-
DA:7,
|
|
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:
|
|
118
|
+
FN:15,(anonymous_1)
|
|
119
119
|
FNF:1
|
|
120
120
|
FNH:1
|
|
121
|
-
FNDA:
|
|
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:
|
|
127
|
-
DA:
|
|
128
|
-
DA:
|
|
129
|
-
DA:
|
|
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,
|
|
133
|
-
BRDA:31,0,1,
|
|
134
|
-
BRDA:
|
|
135
|
-
BRDA:
|
|
136
|
-
BRDA:
|
|
137
|
-
BRDA:
|
|
138
|
-
BRDA:
|
|
139
|
-
BRDA:
|
|
140
|
-
BRDA:
|
|
141
|
-
BRDA:
|
|
142
|
-
BRDA:52,5,0,
|
|
143
|
-
BRDA:52,5,1,
|
|
144
|
-
BRDA:57,6,0,
|
|
145
|
-
BRDA:57,6,1,
|
|
146
|
-
|
|
147
|
-
|
|
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:
|
|
185
|
-
FNDA:
|
|
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,
|
|
191
|
-
DA:10,
|
|
192
|
-
DA:11,
|
|
188
|
+
DA:9,0
|
|
189
|
+
DA:10,0
|
|
190
|
+
DA:11,0
|
|
193
191
|
DA:12,0
|
|
194
|
-
DA:15,
|
|
195
|
-
DA:17,
|
|
196
|
-
DA:
|
|
192
|
+
DA:15,0
|
|
193
|
+
DA:17,0
|
|
194
|
+
DA:31,0
|
|
197
195
|
LF:11
|
|
198
|
-
LH:
|
|
196
|
+
LH:4
|
|
199
197
|
BRDA:11,0,0,0
|
|
200
198
|
BRDA:15,1,0,0
|
|
201
|
-
BRDA:15,1,1,
|
|
202
|
-
BRDA:
|
|
203
|
-
BRDA:
|
|
204
|
-
|
|
205
|
-
|
|
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:
|
|
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,
|
|
220
|
-
DA:10,
|
|
221
|
-
DA:11,
|
|
215
|
+
DA:9,6
|
|
216
|
+
DA:10,6
|
|
217
|
+
DA:11,6
|
|
222
218
|
DA:12,2
|
|
223
|
-
DA:15,
|
|
224
|
-
DA:17,
|
|
225
|
-
DA:32,
|
|
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,
|
|
231
|
-
BRDA:
|
|
232
|
-
BRDA:
|
|
233
|
-
|
|
234
|
-
|
|
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:
|
|
243
|
-
FNDA:
|
|
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,
|
|
249
|
-
DA:12,
|
|
250
|
-
DA:13,
|
|
242
|
+
DA:10,0
|
|
243
|
+
DA:12,0
|
|
244
|
+
DA:13,0
|
|
251
245
|
DA:14,0
|
|
252
|
-
DA:17,
|
|
253
|
-
DA:19,
|
|
254
|
-
DA:34,
|
|
246
|
+
DA:17,0
|
|
247
|
+
DA:19,0
|
|
248
|
+
DA:34,0
|
|
255
249
|
LF:11
|
|
256
|
-
LH:
|
|
250
|
+
LH:4
|
|
257
251
|
BRDA:13,0,0,0
|
|
258
252
|
BRDA:17,1,0,0
|
|
259
|
-
BRDA:17,1,1,
|
|
260
|
-
BRDA:
|
|
261
|
-
BRDA:
|
|
262
|
-
|
|
263
|
-
|
|
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:
|
|
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:
|
|
280
|
+
FNH:4
|
|
289
281
|
FNDA:0,(anonymous_0)
|
|
290
282
|
FNDA:6,(anonymous_1)
|
|
291
|
-
FNDA:
|
|
292
|
-
FNDA:
|
|
293
|
-
FNDA:
|
|
294
|
-
FNDA:
|
|
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,
|
|
299
|
-
DA:4,
|
|
300
|
-
DA:5,
|
|
301
|
-
DA:6,
|
|
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:
|
|
429
|
-
DA:1,
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),y=l.length-1,E=
|
|
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{
|
|
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
|
|
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
|
-
`,
|
|
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
|
|
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
|
-
`,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|