@cieloazul310/digital-go-pandacss-preset 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js DELETED
@@ -1,4647 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/index.ts
31
- var index_exports = {};
32
- __export(index_exports, {
33
- createPreset: () => createPreset,
34
- default: () => index_default
35
- });
36
- module.exports = __toCommonJS(index_exports);
37
- var import_dev44 = require("@pandacss/dev");
38
- var import_digital_go_pandacss_plugin = __toESM(require("@cieloazul310/digital-go-pandacss-plugin"));
39
- var import_digital_go_pandacss_utils = require("@cieloazul310/digital-go-pandacss-utils");
40
-
41
- // src/recipes/accordion.ts
42
- var import_dev = require("@pandacss/dev");
43
- var import_accordion = require("@zag-js/accordion");
44
- var accordion_default = (0, import_dev.defineSlotRecipe)({
45
- className: "accordion",
46
- description: "\u30A2\u30B3\u30FC\u30C7\u30A3\u30AA\u30F3\u306F\u3001\u30E6\u30FC\u30B6\u30FC\u304C\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u3092\u5C55\u958B\u307E\u305F\u306F\u6298\u308A\u305F\u305F\u3080\u3053\u3068\u304C\u3067\u304D\u308B\u30E6\u30FC\u30B6\u30FC\u30A4\u30F3\u30BF\u30FC\u30D5\u30A7\u30FC\u30B9\u3067\u3059\u3002\u9805\u76EE\u3092\u30B3\u30F3\u30D1\u30AF\u30C8\u306B\u30EA\u30B9\u30C8\u8868\u793A\u3057\u3064\u3064\u30DA\u30FC\u30B8\u9077\u79FB\u305B\u305A\u95A2\u9023\u60C5\u5831\u3092\u8868\u793A\u3057\u305F\u3044\u3068\u3044\u3046\u8981\u6C42\u306B\u5BFE\u5FDC\u3057\u307E\u3059\u3002\u203B\u30BB\u30AF\u30B7\u30E7\u30F3\u5185\u306E\u4EFB\u610F\u306E\u7BC4\u56F2\u3067\u6298\u308A\u305F\u305F\u307F\u8868\u793A\u3092\u3059\u308B\u5834\u5408\u306F\u300C\u30C7\u30A3\u30B9\u30AF\u30ED\u30FC\u30B8\u30E3\u30FC\u300D\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
47
- slots: import_accordion.anatomy.keys(),
48
- base: {
49
- root: {
50
- colorPalette: "keyColor"
51
- },
52
- item: {
53
- /**
54
- * group/accordion border-b border-solid-gray-420
55
- [--icon-size:calc(20/16*1rem)] desktop:[--icon-size:calc(32/16*1rem)]
56
- ${className ?? ''}
57
- */
58
- borderBottomWidth: "1px",
59
- borderBottomColor: "solid-gray.420",
60
- "--icon-size": {
61
- base: "calc(20 / 16 * 1rem)",
62
- md: "calc(32 / 16 * 1rem)"
63
- }
64
- },
65
- itemTrigger: {
66
- /**
67
- * group/summary relative block cursor-default
68
- */
69
- position: "relative",
70
- display: "block",
71
- /**
72
- * hover:bg-solid-gray-50
73
- * focus-visible:bg-yellow-300
74
- */
75
- bg: {
76
- base: "transparent",
77
- _hover: "solid-gray.50",
78
- _focusVisible: { base: "yellow.300", _hover: "yellow.300" }
79
- },
80
- /*
81
- * py-2 pl-[calc(var(--icon-size)+(12/16*1rem))] pr-2
82
- * desktop:py-3.5 desktop:pl-[calc(var(--icon-size)+(20/16*1rem))] desktop:pr-4
83
- */
84
- py: { base: 2, md: 3.5 },
85
- pl: {
86
- base: "calc(var(--icon-size) + (12 / 16 * 1rem))",
87
- md: "calc(var(--icon-size) + (20 / 16 * 1rem))"
88
- },
89
- pr: { base: 2, md: 4 },
90
- cursor: { _hover: "pointer" },
91
- /**
92
- * marker:[content:'']
93
- [&::-webkit-details-marker]:hidden
94
- */
95
- "&::marker": { content: '""' },
96
- /**
97
- * focus-visible:rounded-4 focus-visible:outline focus-visible:outline-4 focus-visible:outline-offset-[calc(2/16*1rem)] focus-visible:outline-black focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
98
- */
99
- _focusVisible: {
100
- rounded: 4,
101
- outlineStyle: "solid",
102
- outlineWidth: "4px",
103
- outlineColor: "black",
104
- outlineOffset: "calc(2 / 16 * 1rem)",
105
- focusBox: "calc(2 / 16 * 1rem)"
106
- },
107
- /**
108
- * remove button style
109
- */
110
- textAlign: "start",
111
- width: "full"
112
- },
113
- itemIndicator: {
114
- /**
115
- * absolute top-2 left-0.5
116
- * desktop:top-3.5 desktop:left-1.5
117
- * size-[var(--icon-size)]
118
- * mt-[calc((1lh-var(--icon-size))/2)]
119
- */
120
- position: "absolute",
121
- top: { base: 2, md: 3.5 },
122
- left: { base: 0.5, md: 1.5 },
123
- width: "var(--icon-size)",
124
- height: "var(--icon-size)",
125
- mt: "calc((1lh - var(--icon-size)) / 2)",
126
- /**
127
- * inline-flex items-center justify-center
128
- */
129
- display: "inline-flex",
130
- alignItems: "center",
131
- justifyContent: "center",
132
- /**
133
- * bg-white text-blue-1000
134
- */
135
- bg: "white",
136
- color: "colorPalette.primary.100",
137
- /**
138
- * border border-current rounded-full
139
- * group-hover/summary:outline group-hover/summary:outline-2
140
- * group-hover/summary:outline-current
141
- * group-open/accordion:rotate-180
142
- */
143
- borderWidth: "1px",
144
- borderColor: "currentcolor",
145
- rounded: "full",
146
- outlineStyle: "solid",
147
- outlineWidth: { base: "0px", _groupHover: "2px" },
148
- outlineColor: { base: "transparent", _groupHover: "currentcolor" },
149
- transition: "transform",
150
- transform: { base: "rotate(0deg)", _open: "rotate(-180deg)" }
151
- },
152
- itemContent: {
153
- /**
154
- * pl-[calc(var(--icon-size)+(12/16*1rem))] pr-2 py-4
155
- desktop:pl-[calc(var(--icon-size)+(20/16*1rem))] desktop:pr-4 desktop:py-6
156
- */
157
- pl: {
158
- base: "calc(var(--icon-size) + (12 / 16 * 1rem))",
159
- md: "calc(var(--icon-size) + (20 / 16 * 1rem))"
160
- },
161
- pr: { base: 2, md: 4 },
162
- py: { base: 4, md: 6 }
163
- }
164
- }
165
- });
166
-
167
- // src/recipes/blockquote.ts
168
- var import_dev2 = require("@pandacss/dev");
169
- var blockquote_default = (0, import_dev2.defineRecipe)({
170
- className: "blockquote",
171
- base: {
172
- /**
173
- * margin: 0 calc(40 / 16 * 1rem);
174
- * border-left: 8px solid var(--color-neutral-solid-gray-536);
175
- * padding-top: calc(8 / 16 * 1rem);
176
- * padding-right: calc(16 / 16 * 1rem);
177
- * padding-bottom: calc(8 / 16 * 1rem);
178
- * padding-left: calc(24 / 16 * 1rem);
179
- */
180
- my: 0,
181
- mx: "calc(40 / 16 * 1rem)",
182
- borderLeftWidth: "8px",
183
- borderColor: "solid-gray.536",
184
- pt: "calc(8 / 16 * 1rem)",
185
- pr: "calc(16 / 16 * 1rem)",
186
- pb: "calc(8 / 16 * 1rem)",
187
- pl: "calc(24 / 16 * 1rem)",
188
- "& > *:first-child": {
189
- mt: 0
190
- },
191
- "& > *:last-child": {
192
- mb: 0
193
- }
194
- }
195
- });
196
-
197
- // src/recipes/breadcrumb.ts
198
- var import_dev4 = require("@pandacss/dev");
199
-
200
- // src/anatomy.ts
201
- var import_anatomy = require("@zag-js/anatomy");
202
- var breadcrumbAnatomy = (0, import_anatomy.createAnatomy)("breadcrumb").parts(
203
- "root",
204
- "label",
205
- "list",
206
- "item",
207
- "link",
208
- "separator"
209
- );
210
- var cardAnatomy = (0, import_anatomy.createAnatomy)("card").parts(
211
- "root",
212
- "main",
213
- "image",
214
- "sub",
215
- "title"
216
- );
217
- var chipTagAnatomy = (0, import_anatomy.createAnatomy)("chip-tag").parts(
218
- "root",
219
- "icon",
220
- "label",
221
- "removeButton",
222
- "addButton"
223
- );
224
- var emergencyBannerAnatomy = (0, import_anatomy.createAnatomy)("emergency-banner").parts(
225
- "root",
226
- "heading",
227
- "body",
228
- "action",
229
- "button"
230
- );
231
- var fieldAnatomy = (0, import_anatomy.createAnatomy)("field").parts(
232
- "root",
233
- "errorText",
234
- "supportText",
235
- "input",
236
- "label",
237
- "select",
238
- "textarea",
239
- "requirementBadge"
240
- );
241
- var fieldsetAnatomy = (0, import_anatomy.createAnatomy)("fieldset").parts(
242
- "root",
243
- "errorText",
244
- "supportText",
245
- "legend"
246
- );
247
- var menuListAnatomy = (0, import_anatomy.createAnatomy)("menu-list").parts(
248
- "root",
249
- "label",
250
- "content",
251
- "item",
252
- "itemGroup",
253
- "itemGroupLabel",
254
- "itemText",
255
- "itemIndicator",
256
- "input"
257
- );
258
- var notificationBannerAnatomy = (0, import_anatomy.createAnatomy)(
259
- "notification-banner"
260
- ).parts("root", "icon", "close", "header", "heading", "body", "actions");
261
- var resourceListAnatomy = (0, import_anatomy.createAnatomy)("resource-list").parts(
262
- "root",
263
- "main",
264
- "action",
265
- "content",
266
- "title"
267
- );
268
- var tableAnatomy = (0, import_anatomy.createAnatomy)("table").parts(
269
- "root",
270
- "head",
271
- "body",
272
- "foot",
273
- "row",
274
- "header",
275
- "cell",
276
- "colgroup",
277
- "col",
278
- "caption"
279
- );
280
-
281
- // src/recipes/link.ts
282
- var import_dev3 = require("@pandacss/dev");
283
- var link_default = (0, import_dev3.defineRecipe)({
284
- className: "link",
285
- description: "\u30EA\u30F3\u30AF\u30C6\u30AD\u30B9\u30C8\u306F\u901A\u5E38\u3001\u8272\u3084\u4E0B\u7DDA\u306A\u3069\u306E\u8996\u899A\u7684\u306A\u8868\u73FE\u3067\u901A\u5E38\u306E\u30C6\u30AD\u30B9\u30C8\u3068\u533A\u5225\u3055\u308C\u3001URL\u3068\u95A2\u9023\u3065\u3051\u3089\u308C\u305F\u30C6\u30AD\u30B9\u30C8\u6587\u5B57\u5217\u3067\u3059\u3002\u3053\u306E\u95A2\u9023\u4ED8\u3051\u3092\u30CF\u30A4\u30D1\u30FC\u30EA\u30F3\u30AF\u3068\u547C\u3073\u3001\u3053\u308C\u306F\u30A6\u30A7\u30D6\u3092\u30A6\u30A7\u30D6\u305F\u3089\u3057\u3081\u3066\u3044\u308B\u57FA\u672C\u7684\u306A\u6982\u5FF5\u306E\u3072\u3068\u3064\u3067\u3059\u3002",
286
- base: {
287
- /**
288
- * text-blue-1000 visited:text-magenta-900 hover:text-blue-1000
289
- * focus-visible:text-blue-1000 active:text-orange-700
290
- */
291
- colorPalette: "blue",
292
- color: {
293
- base: "colorPalette.primary.100",
294
- _visited: "magenta.900",
295
- _hover: "colorPalette.primary.100",
296
- _focusVisible: "colorPalette.primary.100",
297
- _active: "orange.800"
298
- },
299
- /**
300
- * focus-visible:bg-yellow-300
301
- */
302
- bg: {
303
- base: "transparent",
304
- _focusVisible: "yellow.300"
305
- },
306
- /**
307
- * underline underline-offset-[calc(3/16*1rem)] hover:decoration-[calc(3/16*1rem)]
308
- * active:decoration-1
309
- */
310
- textDecoration: "underline",
311
- textDecorationThickness: {
312
- base: "1px",
313
- _hover: "calc(3 / 16 * 1rem)",
314
- _active: "1px"
315
- },
316
- textUnderlineOffset: "calc(3 / 16 * 1rem)",
317
- /**
318
- * focus-visible:rounded-4
319
- * focus-visible:outline focus-visible:outline-4
320
- * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
321
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
322
- */
323
- _focusVisible: {
324
- rounded: 4,
325
- outlineStyle: "solid",
326
- outlineWidth: "4px",
327
- outlineColor: "black",
328
- outlineOffset: "calc(2 / 16 * 1rem)",
329
- focusBox: "calc(2 / 16 * 1rem)"
330
- },
331
- /**
332
- * with icon
333
- */
334
- "& > svg": {
335
- display: "inline",
336
- ml: 1,
337
- mb: 1,
338
- width: "1em",
339
- height: "1em"
340
- }
341
- }
342
- });
343
-
344
- // src/recipes/breadcrumb.ts
345
- var breadcrumb_default = (0, import_dev4.defineSlotRecipe)({
346
- className: "breadcrumb",
347
- description: "\u30D1\u30F3\u304F\u305A\u30EA\u30B9\u30C8\u306F\u3001\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8\u306E\u968E\u5C64\u5185\u3067\u30E6\u30FC\u30B6\u30FC\u306E\u73FE\u5728\u306E\u4F4D\u7F6E\u3092\u8868\u793A\u3057\u307E\u3059\u3002",
348
- slots: breadcrumbAnatomy.keys(),
349
- base: {
350
- root: {
351
- /**
352
- * icon
353
- */
354
- "--icon-size": "16px"
355
- },
356
- label: {
357
- srOnly: true,
358
- textStyle: "oln-16N-100"
359
- },
360
- list: {
361
- /**
362
- * inline
363
- */
364
- display: "inline"
365
- },
366
- item: {
367
- /**
368
- * inline break-words text-oln-16N-100
369
- */
370
- display: "inline",
371
- overflowWrap: "break-word",
372
- textStyle: "oln-16N-100"
373
- },
374
- link: {
375
- /**
376
- * text-blue-1000 text-oln-16N-100 underline underline-offset-[calc(3/16*1rem)]
377
- * hover:text-blue-900 hover:decoration-[calc(3/16*1rem)]
378
- * active:text-orange-700 active:decoration-1
379
- * focus-visible:rounded-4 focus-visible:outline focus-visible:outline-4
380
- * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
381
- * focus-visible:bg-yellow-300 focus-visible:text-blue-1000
382
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
383
- */
384
- ...link_default.base,
385
- /**
386
- * icon
387
- */
388
- "& svg": {
389
- display: "inline",
390
- width: "var(--icon-size)",
391
- height: "var(--icon-size)",
392
- mr: 1
393
- }
394
- },
395
- separator: {
396
- /**
397
- * mx-2 inline
398
- */
399
- mx: 2,
400
- display: "inline-flex",
401
- width: "12px",
402
- height: "12px",
403
- "& > svg": {
404
- width: "full",
405
- height: "full",
406
- fill: "none"
407
- }
408
- }
409
- }
410
- });
411
-
412
- // src/recipes/button.ts
413
- var import_dev5 = require("@pandacss/dev");
414
- var button_default = (0, import_dev5.defineRecipe)({
415
- className: "button",
416
- description: "\u30DC\u30BF\u30F3\u306F\u3001\u4E3B\u306B\u30A2\u30AF\u30B7\u30E7\u30F3\u5B9F\u884C\u307E\u305F\u306F\u30DA\u30FC\u30B8\u9077\u79FB\u306E\u305F\u3081\u306E\u30C8\u30EA\u30AC\u30FC\u3068\u3057\u3066\u4F7F\u7528\u3057\u307E\u3059\u3002\u753B\u9762\u5185\u306B\u304A\u3051\u308B\u30DC\u30BF\u30F3\u306E\u91CD\u8981\u5EA6\u306B\u5FDC\u3058\u3066\u4F7F\u3044\u5206\u3051\u53EF\u80FD\u306A\u8907\u6570\u306E\u30B9\u30BF\u30A4\u30EB\u304C\u3042\u308A\u307E\u3059\u3002",
417
- base: {
418
- colorPalette: "keyColor",
419
- /**
420
- * underline-offset-[calc(3/16*1rem)]
421
- */
422
- textUnderlineOffset: "calc(3 / 16 * 1rem)",
423
- /**
424
- * focus-visible:outline focus-visible:outline-4 focus-visible:outline-black
425
- * focus-visible:outline-offset-[calc(2/16*1rem)]
426
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
427
- */
428
- _focusVisible: {
429
- outlineStyle: "solid",
430
- outlineWidth: "4px",
431
- outlineColor: "black",
432
- outlineOffset: "calc(2 / 16 * 1rem)",
433
- focusBox: "calc(2 / 16 * 1rem)"
434
- },
435
- /**
436
- * aria-disabled:pointer-events-none aria-disabled:forced-colors:border-[GrayText] aria-disabled:forced-colors:text-[GrayText]
437
- */
438
- _disabled: {
439
- pointerEvents: "none"
440
- },
441
- /**
442
- * button default
443
- */
444
- display: "inline-flex",
445
- textAlign: "center",
446
- alignItems: "center",
447
- justifyContent: "center",
448
- cursor: "pointer"
449
- },
450
- variants: {
451
- variant: {
452
- "solid-fill": {
453
- /**
454
- * text-white aria-disabled:text-solid-gray-50
455
- * bg-blue-900 hover:bg-blue-1000 active:bg-blue-1200 aria-disabled:bg-solid-gray-300
456
- */
457
- bg: {
458
- base: "colorPalette.primary",
459
- _hover: "colorPalette.primary.100",
460
- _active: "colorPalette.primary.300",
461
- _disabled: "solid-gray.300"
462
- },
463
- color: { base: "white", _disabled: "solid-gray.50" },
464
- /**
465
- * border-4 border-double border-transparent
466
- * hover:underline active:underline
467
- */
468
- borderWidth: "4px",
469
- borderStyle: "double",
470
- borderColor: "transparent",
471
- textDecoration: {
472
- base: "none",
473
- _hover: "underline",
474
- _active: "underline"
475
- }
476
- },
477
- outline: {
478
- /**
479
- * bg-white hover:bg-blue-200 active:bg-blue-300 aria-disabled:bg-white
480
- * text-blue-900 hover:text-blue-1000 active:text-blue-1200
481
- * aria-disabled:text-solid-gray-300
482
- */
483
- bg: {
484
- base: "white",
485
- _hover: "colorPalette.200",
486
- _active: "colorPalette.300",
487
- _disabled: "white"
488
- },
489
- color: {
490
- base: "colorPalette.primary",
491
- _hover: "colorPalette.primary.100",
492
- _active: "colorPalette.primary.300",
493
- _disabled: "solid-gray.300"
494
- },
495
- /**
496
- * border border-current hover:underline active:underline
497
- */
498
- borderWidth: "1px",
499
- borderColor: "currentcolor",
500
- textDecoration: {
501
- base: "none",
502
- _hover: "underline",
503
- _active: "underline"
504
- }
505
- },
506
- text: {
507
- /**
508
- *
509
- * hover:bg-blue-50 active:bg-blue-100 focus-visible:bg-yellow-300
510
- * aria-disabled:bg-transparent aria-disabled:focus-visible:bg-yellow-300
511
- * text-blue-900 hover:text-blue-1000 active:text-blue-1200
512
- * aria-disabled:text-solid-gray-300
513
- */
514
- bg: {
515
- base: "transparent",
516
- _hover: "colorPalette.bg",
517
- _active: "colorPalette.100",
518
- _focusVisible: { base: "yellow.300", _hover: "yellow.300" },
519
- _disabled: "transparent"
520
- },
521
- color: {
522
- base: "colorPalette.primary",
523
- _hover: "colorPalette.primary.100",
524
- _active: "colorPalette.primary.300",
525
- _disabled: "solid-gray.300"
526
- },
527
- /**
528
- * hover:decoration-[calc(3/16*1rem)] underline
529
- */
530
- textDecoration: "underline",
531
- textDecorationThickness: { base: "1px", _hover: "calc(3 / 16 * 1rem)" }
532
- }
533
- },
534
- size: {
535
- lg: {
536
- /**
537
- * lg: 'min-w-[calc(136/16*1rem)] min-h-14 rounded-8 px-4 py-3 text-oln-16B-100'
538
- */
539
- minWidth: "calc(136 / 16 * 1rem)",
540
- minHeight: 14,
541
- rounded: 8,
542
- px: 4,
543
- py: 3,
544
- textStyle: "oln-16B-100"
545
- },
546
- md: {
547
- /**
548
- * md: 'min-w-24 min-h-12 rounded-8 px-4 py-2 text-oln-16B-100',
549
- */
550
- minWidth: 24,
551
- minHeight: 12,
552
- textStyle: "oln-16B-100",
553
- px: 4,
554
- py: 2,
555
- rounded: 8
556
- },
557
- sm: {
558
- /**
559
- * sm: 'relative min-w-20 min-h-9 rounded-6 px-3 py-0.5 text-oln-16B-100 after:absolute after:inset-x-0 after:-inset-y-full after:m-auto after:h-[44px]',
560
- */
561
- position: "relative",
562
- minWidth: 20,
563
- minHeight: 9,
564
- textStyle: "oln-16B-100",
565
- py: 0.5,
566
- rounded: 6,
567
- _after: {
568
- position: "absolute",
569
- insetInline: 0,
570
- insetBlock: "full",
571
- m: "auto",
572
- height: "44px"
573
- }
574
- },
575
- xs: {
576
- /**
577
- * xs: 'relative min-w-18 min-h-7 rounded-4 px-2 py-0.5 text-oln-14B-100 after:absolute after:inset-x-0 after:-inset-y-full after:m-auto after:h-[44px]',
578
- */
579
- minWidth: 18,
580
- minHeight: 7,
581
- textStyle: "oln-14B-100",
582
- px: 2,
583
- py: 0.5,
584
- rounded: 4,
585
- _after: {
586
- position: "absolute",
587
- insetInline: 0,
588
- insetBlock: "full",
589
- m: "auto",
590
- height: "44px"
591
- }
592
- }
593
- }
594
- },
595
- defaultVariants: {
596
- variant: "solid-fill",
597
- size: "md"
598
- }
599
- });
600
-
601
- // src/recipes/card.ts
602
- var import_dev6 = require("@pandacss/dev");
603
- var card_default = (0, import_dev6.defineSlotRecipe)({
604
- className: "card",
605
- description: "\u5358\u4E00\u306E\u4E3B\u984C\u306B\u95A2\u3059\u308B\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u307E\u3068\u3081\u3066\u8868\u793A\u3059\u308B\u30B3\u30F3\u30C6\u30CA\u3068\u306A\u308B\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3067\u3059\u3002\u3055\u307E\u3056\u307E\u306A\u30BF\u30A4\u30D7\u3068\u30B5\u30A4\u30BA\u306E\u8981\u7D20\u3084\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u67D4\u8EDF\u306B\u683C\u7D0D\u3067\u304D\u307E\u3059\u3002\u672C\u6765\u30AB\u30FC\u30C9\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306F\u3001\u3042\u3089\u3086\u308B\u30B3\u30F3\u30C6\u30F3\u30C4\uFF08\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3084\u8981\u7D20\uFF09\u3092\u5185\u5305\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u3001\u975E\u5E38\u306B\u81EA\u7531\u5EA6\u306E\u9AD8\u3044\u30B3\u30F3\u30C6\u30CA\u3068\u306A\u308A\u307E\u3059\u3002\u672C\u30C7\u30B6\u30A4\u30F3\u30B7\u30B9\u30C6\u30E0\u3067\u306F\u3001\u60C5\u5831\u8A2D\u8A08\u3092\u3057\u3084\u3059\u3044\u30AB\u30FC\u30C9\u3092\u63D0\u4F9B\u3059\u308B\u305F\u3081\u3001\u81EA\u7531\u5EA6\u306B\u5236\u7D04\u3092\u8A2D\u3051\u305F\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u4ED5\u69D8\u3068\u3057\u3066\u7B56\u5B9A\u3057\u3066\u3044\u307E\u3059\u3002",
606
- slots: cardAnatomy.keys(),
607
- base: {
608
- root: {
609
- display: "grid",
610
- gridTemplateAreas: `
611
- "image"
612
- "main"
613
- "sub"
614
- `,
615
- bg: { base: "white", "&:has(input:checked)": "colorPalette.bg" },
616
- color: "solid-gray.800",
617
- textStyle: "std-16N-170",
618
- borderColor: "solid-gray.420",
619
- borderWidth: "1px",
620
- rounded: 16,
621
- overflow: "hidden",
622
- colorPalette: "keyColor"
623
- },
624
- main: {
625
- gridArea: "main",
626
- py: 4,
627
- px: { base: 4, md: 6 },
628
- display: "flex",
629
- flexDirection: "column",
630
- gap: 4,
631
- _focusVisible: {
632
- outlineStyle: "solid",
633
- outlineWidth: "4px",
634
- outlineColor: "black",
635
- outlineOffset: "calc(2 / 16 * 1rem)",
636
- focusBox: "calc(2 / 16 * 1rem)"
637
- }
638
- },
639
- image: {
640
- gridArea: "image",
641
- position: "relative",
642
- overflow: "hidden",
643
- "& > img": {
644
- objectFit: "cover",
645
- width: "full",
646
- height: "full"
647
- }
648
- },
649
- sub: {
650
- gridArea: "sub",
651
- py: 4,
652
- px: { base: 4, md: 6 }
653
- },
654
- title: {
655
- textStyle: "std-20B-150"
656
- }
657
- },
658
- variants: {
659
- orientation: {
660
- vertical: {
661
- root: {
662
- gridTemplateAreas: `
663
- "image"
664
- "main"
665
- "sub"
666
- `,
667
- gridTemplateColumns: "1fr"
668
- }
669
- },
670
- horizontal: {
671
- root: {
672
- gridTemplateAreas: `
673
- "image main"
674
- "image sub"
675
- `,
676
- gridTemplateColumns: "minmax(auto, 320px) 1fr"
677
- }
678
- }
679
- },
680
- asLink: {
681
- true: {
682
- root: {
683
- position: "relative",
684
- bg: {
685
- _hover: "solid-gray.50"
686
- }
687
- },
688
- image: {
689
- "& > img": {
690
- transition: "transform",
691
- _groupHover: {
692
- transform: "scale(1.05)"
693
- }
694
- }
695
- },
696
- sub: {
697
- "& > *": {
698
- zIndex: 1
699
- }
700
- },
701
- title: {
702
- _before: {
703
- content: '""',
704
- position: "absolute",
705
- top: 0,
706
- left: 0,
707
- width: "full",
708
- height: "full",
709
- zIndex: 0,
710
- cursor: "inherit"
711
- }
712
- }
713
- }
714
- }
715
- },
716
- defaultVariants: {
717
- orientation: "vertical",
718
- asLink: false
719
- }
720
- });
721
-
722
- // src/recipes/checkbox.ts
723
- var import_dev7 = require("@pandacss/dev");
724
- var import_checkbox = require("@zag-js/checkbox");
725
- var checkbox_default = (0, import_dev7.defineSlotRecipe)({
726
- className: "checkbox",
727
- description: "\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u306F\u3001\u8907\u6570\u306E\u9805\u76EE\u306E\u4E2D\u304B\u3089\u8907\u6570\u306E\u9078\u629E\u80A2\u3092\u9078\u3076\u3053\u3068\u3092\u53EF\u80FD\u306B\u3057\u307E\u3059\u3002\u307E\u305F\u3001\u3072\u3068\u3064\u306E\u9078\u629E\u80A2\u306E\u30AA\u30F3\u30FB\u30AA\u30D5\u306E\u5207\u308A\u66FF\u3048\u306B\u3082\u7528\u3044\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002",
728
- slots: import_checkbox.anatomy.extendWith("group").keys(),
729
- base: {
730
- root: {
731
- display: "flex",
732
- alignItems: "center",
733
- width: "fit-content",
734
- py: 2,
735
- colorPalette: "keyColor"
736
- },
737
- control: {
738
- /**
739
- * flex items-center justify-center shrink-0 rounded-[calc(1/8*100%)]
740
- * has-[input:hover:not(:focus):not([aria-disabled="true"])]:bg-solid-gray-420
741
- */
742
- flexShrink: 0,
743
- rounded: "calc(2 / 18 * 100%)",
744
- borderWidth: "2px",
745
- borderColor: {
746
- base: "solid-gray.420",
747
- _checked: "colorPalette.primary",
748
- _invalid: { base: "error.1", _disabled: "solid-gray.420" },
749
- _groupHover: { base: "black", _disabled: "solid-gray.420" }
750
- },
751
- _disabled: {
752
- bg: "solid-gray.50"
753
- },
754
- _groupHover: {
755
- outlineStyle: { base: "solid", _disabled: "hidden" },
756
- outlineColor: "solid-gray.420",
757
- _focus: {
758
- outlineStyle: "solid",
759
- outlineWidth: "4px",
760
- outlineColor: "black",
761
- outlineOffset: "calc(2 / 16 * 1rem)",
762
- focusBox: "calc(2 / 16 * 1rem)"
763
- }
764
- },
765
- /**
766
- * focus:outline focus:outline-4 focus:outline-black
767
- * focus:outline-offset-[calc(2/16*1rem)]
768
- * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
769
- */
770
- _focus: {
771
- outlineStyle: "solid",
772
- outlineWidth: "4px",
773
- outlineColor: "black",
774
- outlineOffset: "calc(2 / 16 * 1rem)",
775
- focusBox: "calc(2 / 16 * 1rem)"
776
- }
777
- },
778
- indicator: {
779
- /**
780
- * appearance-none size-3/4 rounded-[calc(2/18*100%)]
781
- */
782
- appearance: "none",
783
- width: "full",
784
- height: "full",
785
- zIndex: 1,
786
- bg: {
787
- /**
788
- * bg-white
789
- */
790
- base: "white",
791
- /**
792
- * checked:bg-blue-900 checked:hover:bg-blue-1100
793
- * forced-colors:checked:!bg-[Highlight]
794
- */
795
- _checked: {
796
- base: "colorPalette.primary",
797
- _hover: "colorPalette.primary.200",
798
- _highContrast: "Highlight"
799
- },
800
- _indeterminate: {
801
- /**
802
- * indeterminate:bg-blue-900 indeterminate:hover:bg-blue-1100
803
- * forced-colors:indeterminate:!bg-[Highlight]
804
- */
805
- base: "colorPalette.primary",
806
- _hover: "colorPalette.primary.200",
807
- _highContrast: "Highlight"
808
- },
809
- /**
810
- * data-[error]:indeterminate:bg-error-1
811
- * data-[error]:indeterminate:hover:bg-red-1000
812
- * data-[error]:checked:bg-error-1 data-[error]:checked:hover:bg-red-1000
813
- */
814
- _invalid: {
815
- _indeterminate: {
816
- base: "error.1",
817
- _hover: "red.1000",
818
- _disabled: "solid-gray.300"
819
- },
820
- _checked: {
821
- base: "error.1",
822
- _hover: "red.1000",
823
- _disabled: "solid-gray.300"
824
- }
825
- },
826
- /**
827
- * aria-disabled:!bg-solid-gray-50
828
- * aria-disabled:checked:!bg-solid-gray-300
829
- * aria-disabled:indeterminate:!bg-solid-gray-300
830
- * forced-colors:aria-disabled:checked:!bg-[GrayText]
831
- */
832
- _disabled: {
833
- base: "solid-gray.50",
834
- _checked: "solid-gray.300",
835
- _indeterminate: "solid-gray.300",
836
- _highContrast: {
837
- _checked: "GrayText"
838
- }
839
- }
840
- },
841
- /**
842
- * bg-clip-padding
843
- */
844
- backgroundClip: "padding-box",
845
- /**
846
- * before:hidden checked:before:block indeterminate:before:block
847
- * before:size-3.5
848
- * before:bg-white
849
- * forced-colors:before:!bg-[HighlightText]
850
- * aria-disabled:before:border-solid-gray-50
851
- */
852
- _before: {
853
- content: '""',
854
- display: "none",
855
- width: 3.5,
856
- height: 3.5,
857
- bg: { base: "white", _highContrast: "HighlightText" },
858
- borderColor: { _disabled: "solid-gray.50" }
859
- },
860
- /**
861
- * checked:before:[clip-path:path('M5.6,11.2L12.65,4.15L11.25,2.75L5.6,8.4L2.75,5.55L1.35,6.95L5.6,11.2Z')]
862
- * indeterminate:before:[clip-path:path('M3.25,7.75H10.75V6.25H3.25V7.75Z')]
863
- */
864
- _checked: {
865
- _before: {
866
- display: "block",
867
- clipPath: "path('M5.6,11.2L12.65,4.15L11.25,2.75L5.6,8.4L2.75,5.55L1.35,6.95L5.6,11.2Z')"
868
- }
869
- },
870
- _indeterminate: {
871
- _before: {
872
- display: "block",
873
- clipPath: "path('M3.25,7.75H10.75V6.25H3.25V7.75Z')"
874
- }
875
- }
876
- },
877
- label: {
878
- color: "solid-gray.800"
879
- }
880
- },
881
- variants: {
882
- size: {
883
- sm: {
884
- root: {
885
- gap: 1.5
886
- },
887
- control: {
888
- width: "calc({spacing.9} / 2)",
889
- height: "calc({spacing.9} / 2)",
890
- _groupHover: {
891
- outlineWidth: "2px",
892
- _focus: { outlineWidth: "4px" }
893
- }
894
- },
895
- label: {
896
- textStyle: "dns-16N-130"
897
- }
898
- },
899
- md: {
900
- root: {
901
- gap: 2.5
902
- },
903
- control: {
904
- width: 6,
905
- height: 6,
906
- _groupHover: {
907
- outlineWidth: "4px"
908
- }
909
- },
910
- indicator: {
911
- _before: {
912
- transformOrigin: "top left",
913
- scale: "calc(20 / 14)"
914
- }
915
- },
916
- label: {
917
- textStyle: "dns-16N-130"
918
- }
919
- },
920
- lg: {
921
- root: {
922
- gap: 2.5
923
- },
924
- control: {
925
- width: 8,
926
- height: 8,
927
- _groupHover: {
928
- outlineWidth: "6px",
929
- _focus: { outlineWidth: "4px" }
930
- }
931
- },
932
- indicator: {
933
- _before: {
934
- transformOrigin: "top left",
935
- scale: "calc(27 / 14)"
936
- }
937
- },
938
- label: {
939
- textStyle: "dns-17N-130"
940
- }
941
- }
942
- }
943
- },
944
- defaultVariants: {
945
- size: "sm"
946
- }
947
- });
948
-
949
- // src/recipes/chip-label.ts
950
- var import_dev8 = require("@pandacss/dev");
951
- var chip_label_default = (0, import_dev8.defineRecipe)({
952
- className: "chip-label",
953
- description: "\u72B6\u614B\u3084\u72B6\u6CC1\u3092\u793A\u3059\u30AD\u30FC\u30EF\u30FC\u30C9\u3092\u8868\u793A\u3057\u3066\u3001\u60C5\u5831\u306E\u5206\u985E\u30FB\u6574\u7406\u306E\u52B9\u7387\u3092\u5411\u4E0A\u3055\u305B\u308B\u30B0\u30E9\u30D5\u30A3\u30C3\u30AF\u8981\u7D20\u3067\u3059\u3002\u60C5\u5831\u30EA\u30B9\u30C8\u3084\u30C6\u30FC\u30D6\u30EB\u306E\u5404\u884C\u306A\u3069\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u5206\u304B\u308A\u3084\u3059\u304F\u8868\u793A\u3057\u305F\u3044\u5834\u5408\u306B\u6709\u52B9\u3067\u3059\u3002",
954
- base: {
955
- display: "inline-flex",
956
- alignItems: "center",
957
- gap: 1,
958
- px: 2,
959
- py: 1,
960
- minHeight: "32px",
961
- borderWidth: "1px",
962
- colorPalette: "keyColor",
963
- rounded: 8,
964
- flexShrink: 0,
965
- whiteSpace: "nowrap",
966
- textStyle: "oln-16N-100"
967
- },
968
- variants: {
969
- variant: {
970
- text: {
971
- color: "colorPalette.primary",
972
- borderColor: "transparent"
973
- },
974
- outlined: {
975
- color: "colorPalette.primary",
976
- borderColor: "currentcolor"
977
- },
978
- ghost: {
979
- color: "colorPalette.primary",
980
- bg: "colorPalette.bg",
981
- borderColor: "currentColor"
982
- },
983
- "solid-fill": {
984
- bg: "colorPalette.primary",
985
- color: "white",
986
- borderColor: "transparent"
987
- }
988
- }
989
- },
990
- defaultVariants: {
991
- variant: "text"
992
- }
993
- });
994
-
995
- // src/recipes/chip-tag.ts
996
- var import_dev9 = require("@pandacss/dev");
997
- var buttonCommon = {
998
- width: "24px",
999
- height: "24px",
1000
- rounded: "full",
1001
- p: "2px",
1002
- _before: {
1003
- content: '""',
1004
- display: "block",
1005
- width: "full",
1006
- height: "full",
1007
- rounded: "full",
1008
- bg: "colorPalette.primary"
1009
- },
1010
- _groupActive: {
1011
- _before: {
1012
- bg: "colorPalette.primary.300"
1013
- }
1014
- },
1015
- _focus: {
1016
- outlineStyle: "solid",
1017
- outlineWidth: "4px",
1018
- outlineColor: "black",
1019
- outlineOffset: "calc(2 / 16 * 1rem)",
1020
- focusBox: "calc(2 / 16 * 1rem)"
1021
- }
1022
- };
1023
- var chip_tag_default = (0, import_dev9.defineSlotRecipe)({
1024
- slots: chipTagAnatomy.keys(),
1025
- className: "chip-tag",
1026
- base: {
1027
- root: {
1028
- display: "inline-flex",
1029
- alignItems: "center",
1030
- px: 2,
1031
- py: 1,
1032
- minHeight: "32px",
1033
- borderWidth: "1px",
1034
- colorPalette: "keyColor",
1035
- rounded: "full",
1036
- flexShrink: 0,
1037
- whiteSpace: "nowrap",
1038
- textStyle: "oln-16N-100",
1039
- color: "colorPalette.primary",
1040
- bg: "colorPalette.bg",
1041
- borderColor: "currentColor",
1042
- cursor: "pointer"
1043
- },
1044
- label: {
1045
- flexGrow: 1,
1046
- px: 2
1047
- },
1048
- removeButton: {
1049
- ...buttonCommon,
1050
- _before: {
1051
- ...buttonCommon._before,
1052
- clipPath: "path('M6.39998 14.6538L9.99998 11.0538L13.6 14.6538L14.6538 13.6L11.0538 9.99998L14.6538 6.39998L13.6 5.34615L9.99998 8.94615L6.39998 5.34615L5.34615 6.39998L8.94615 9.99998L5.34615 13.6L6.39998 14.6538ZM10.0016 19.5C8.68772 19.5 7.45268 19.2506 6.29655 18.752C5.1404 18.2533 4.13472 17.5765 3.2795 16.7217C2.42427 15.8669 1.74721 14.8616 1.24833 13.706C0.749442 12.5504 0.5 11.3156 0.5 10.0017C0.5 8.68772 0.749334 7.45268 1.248 6.29655C1.74667 5.1404 2.42342 4.13472 3.27825 3.2795C4.1331 2.42427 5.13834 1.74721 6.29398 1.24833C7.44959 0.749443 8.68437 0.5 9.9983 0.5C11.3122 0.5 12.5473 0.749334 13.7034 1.248C14.8596 1.74667 15.8652 2.42342 16.7205 3.27825C17.5757 4.1331 18.2527 5.13834 18.7516 6.29398C19.2505 7.44959 19.5 8.68437 19.5 9.9983C19.5 11.3122 19.2506 12.5473 18.752 13.7034C18.2533 14.8596 17.5765 15.8652 16.7217 16.7205C15.8669 17.5757 14.8616 18.2527 13.706 18.7516C12.5504 19.2505 11.3156 19.5 10.0016 19.5ZM9.99998 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 9.99998C18 7.76664 17.225 5.87498 15.675 4.32498C14.125 2.77498 12.2333 1.99998 9.99998 1.99998C7.76664 1.99998 5.87498 2.77498 4.32498 4.32498C2.77498 5.87498 1.99998 7.76664 1.99998 9.99998C1.99998 12.2333 2.77498 14.125 4.32498 15.675C5.87498 17.225 7.76664 18 9.99998 18Z')"
1053
- },
1054
- _groupHover: {
1055
- _before: {
1056
- clipPath: "path('M6.39998 14.6538L9.99998 11.0538L13.6 14.6538L14.6538 13.6L11.0538 9.99998L14.6538 6.39998L13.6 5.34615L9.99998 8.94615L6.39998 5.34615L5.34615 6.39998L8.94615 9.99998L5.34615 13.6L6.39998 14.6538ZM10.0016 19.5C8.68772 19.5 7.45268 19.2506 6.29655 18.752C5.1404 18.2533 4.13472 17.5765 3.2795 16.7217C2.42427 15.8669 1.74721 14.8616 1.24833 13.706C0.749442 12.5504 0.5 11.3156 0.5 10.0017C0.5 8.68772 0.749334 7.45268 1.248 6.29655C1.74667 5.1404 2.42342 4.13472 3.27825 3.2795C4.1331 2.42427 5.13834 1.74721 6.29398 1.24833C7.44959 0.749443 8.68437 0.5 9.9983 0.5C11.3122 0.5 12.5473 0.749334 13.7034 1.248C14.8596 1.74667 15.8652 2.42342 16.7205 3.27825C17.5757 4.1331 18.2527 5.13834 18.7516 6.29398C19.2505 7.44959 19.5 8.68437 19.5 9.9983C19.5 11.3122 19.2506 12.5473 18.752 13.7034C18.2533 14.8596 17.5765 15.8652 16.7217 16.7205C15.8669 17.5757 14.8616 18.2527 13.706 18.7516C12.5504 19.2505 11.3156 19.5 10.0016 19.5Z')"
1057
- }
1058
- }
1059
- },
1060
- addButton: {
1061
- ...buttonCommon,
1062
- _before: {
1063
- ...buttonCommon._before,
1064
- clipPath: "path('M4.1637 10.7451 9.2548 10.7451 9.2549 15.8363 10.7451 15.8363 10.7452 10.7451 15.8363 10.7451 15.8364 9.2548 10.7452 9.2548 10.7452 4.1636 9.2548 4.1636 9.2548 9.2548 4.1636 9.2548 4.1637 10.7451ZM3.2836 16.7186C2.3546 15.7896 1.6576 14.7399 1.1927 13.5699.7278 12.3997.4952 11.21.4949 10.0008.4946 8.7917.7267 7.6021 1.1911 6.4322 1.6555 5.2623 2.3522 4.2128 3.2813 3.2837 4.2104 2.3546 5.26 1.6576 6.4301 1.1927 7.6003.7278 8.7899.4952 9.9991.4949 11.2083.4946 12.3979.7267 13.5678 1.1911 14.7377 1.6555 15.7872 2.3522 16.7163 3.2813 17.6454 4.2104 18.3424 5.26 18.8073 6.4301 19.2722 7.6003 19.5048 8.7899 19.5051 9.9991 19.5054 11.2083 19.2733 12.3978 18.8089 13.5678 18.3445 14.7377 17.6478 15.7872 16.7187 16.7163 15.7896 17.6454 14.7399 18.3424 13.5699 18.8073 12.3997 19.2722 11.2101 19.5047 10.0008 19.5051 8.7917 19.5054 7.6021 19.2732 6.4322 18.8089 5.2623 18.3445 4.2128 17.6478 3.2836 16.7186ZM4.3431 15.6568C5.9223 17.236 7.808 18.0257 10 18.0257 12.192 18.0257 14.0777 17.236 15.6569 15.6568 17.2361 14.0776 18.0257 12.192 18.0257 10 18.0257 7.808 17.236 5.9223 15.6569 4.3431 14.0776 2.7639 12.192 1.9743 10 1.9743 7.808 1.9743 5.9224 2.7639 4.3431 4.3431 2.764 5.9223 1.9743 7.808 1.9743 10 1.9743 12.192 2.7639 14.0776 4.3431 15.6568Z')"
1065
- },
1066
- _groupHover: {
1067
- _before: {
1068
- clipPath: "path('M4.1637 10.7451 9.2548 10.7451 9.2549 15.8363 10.7451 15.8363 10.7452 10.7451 15.8363 10.7451 15.8364 9.2548 10.7452 9.2548 10.7452 4.1636 9.2548 4.1636 9.2548 9.2548 4.1636 9.2548 4.1637 10.7451ZM10.0016 19.5C8.68772 19.5 7.45268 19.2506 6.29655 18.752C5.1404 18.2533 4.13472 17.5765 3.2795 16.7217C2.42427 15.8669 1.74721 14.8616 1.24833 13.706C0.749442 12.5504 0.5 11.3156 0.5 10.0017C0.5 8.68772 0.749334 7.45268 1.248 6.29655C1.74667 5.1404 2.42342 4.13472 3.27825 3.2795C4.1331 2.42427 5.13834 1.74721 6.29398 1.24833C7.44959 0.749443 8.68437 0.5 9.9983 0.5C11.3122 0.5 12.5473 0.749334 13.7034 1.248C14.8596 1.74667 15.8652 2.42342 16.7205 3.27825C17.5757 4.1331 18.2527 5.13834 18.7516 6.29398C19.2505 7.44959 19.5 8.68437 19.5 9.9983C19.5 11.3122 19.2506 12.5473 18.752 13.7034C18.2533 14.8596 17.5765 15.8652 16.7217 16.7205C15.8669 17.5757 14.8616 18.2527 13.706 18.7516C12.5504 19.2505 11.3156 19.5 10.0016 19.5Z')"
1069
- }
1070
- }
1071
- }
1072
- }
1073
- });
1074
-
1075
- // src/recipes/date-picker.ts
1076
- var import_dev13 = require("@pandacss/dev");
1077
- var import_date_picker = require("@zag-js/date-picker");
1078
-
1079
- // src/recipes/label.ts
1080
- var import_dev10 = require("@pandacss/dev");
1081
- var label_default = (0, import_dev10.defineRecipe)({
1082
- className: "label",
1083
- base: {
1084
- /**
1085
- * flex w-fit items-center gap-2 text-solid-gray-800
1086
- */
1087
- display: "flex",
1088
- width: "fit-content",
1089
- alignItems: "center",
1090
- gap: 2,
1091
- color: "solid-gray.800"
1092
- },
1093
- variants: {
1094
- size: {
1095
- /**
1096
- * data-[size=sm]:text-std-16B-170 data-[size=md]:text-std-17B-170 data-[size=lg]:text-std-18B-160
1097
- */
1098
- sm: { textStyle: "std-16B-170" },
1099
- md: { textStyle: "std-17B-170" },
1100
- lg: { textStyle: "std-18B-160" }
1101
- }
1102
- },
1103
- defaultVariants: {
1104
- size: "md"
1105
- }
1106
- });
1107
-
1108
- // src/recipes/input.ts
1109
- var import_dev11 = require("@pandacss/dev");
1110
- var input_default = (0, import_dev11.defineRecipe)({
1111
- className: "input",
1112
- description: "\u30A4\u30F3\u30D7\u30C3\u30C8\u30C6\u30AD\u30B9\u30C8\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306F\u3001\u540D\u524D\u3084\u96FB\u8A71\u756A\u53F7\u306A\u3069\u30011\u884C\u4EE5\u5185\u306E\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3059\u308B\u5834\u5408\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002",
1113
- base: {
1114
- /**
1115
- * max-w-full px-4 py-3 rounded-8
1116
- */
1117
- // minWidth: "80px",
1118
- maxWidth: "full",
1119
- rounded: 8,
1120
- px: 4,
1121
- py: 3,
1122
- /**
1123
- * border border-solid-gray-600 hover:border-black
1124
- * aria-disabled:border-solid-gray-300
1125
- * aria-disabled:forced-colors:border-[GrayText]
1126
- * aria-[invalid=true]:border-error-1 aria-[invalid=true]:hover:border-red-1000
1127
- */
1128
- borderStyle: { base: "solid", _readOnly: "dashed" },
1129
- borderWidth: "1px",
1130
- borderColor: {
1131
- base: "solid-gray.600",
1132
- _hover: "black",
1133
- _disabled: { base: "solid-gray.300", _highContrast: "GrayText" },
1134
- _invalid: { base: "error.1", _hover: "red.1000" }
1135
- },
1136
- /**
1137
- * bg-white text-oln-16N-100 text-solid-gray-800
1138
- * aria-disabled:bg-solid-gray-50 aria-disabled:text-solid-gray-420
1139
- * aria-disabled:forced-colors:text-[GrayText]
1140
- *
1141
- */
1142
- bg: { base: "white", _disabled: "solid-gray.50" },
1143
- color: {
1144
- base: "solid-gray.800",
1145
- _disabled: { base: "solid-gray.420", _highContrast: "GrayText" }
1146
- },
1147
- textStyle: "oln-16N-100",
1148
- /**
1149
- * focus:outline focus:outline-4 focus:outline-black
1150
- * focus:outline-offset-[calc(2/16*1rem)]
1151
- * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
1152
- */
1153
- _focus: {
1154
- outlineStyle: "solid",
1155
- outlineWidth: "4px",
1156
- outlineColor: "black",
1157
- outlineOffset: "calc(2 / 16 * 1rem)",
1158
- focusBox: "calc(2 / 16 * 1rem)"
1159
- },
1160
- /**
1161
- * aria-disabled:pointer-events-none
1162
- */
1163
- pointerEvents: { base: "inherit", _disabled: "none" }
1164
- },
1165
- variants: {
1166
- size: {
1167
- /**
1168
- * data-[size=sm]:h-10 data-[size=md]:h-12 data-[size=lg]:h-14
1169
- */
1170
- sm: { height: 10 },
1171
- md: { height: 12 },
1172
- lg: { height: 14 }
1173
- }
1174
- },
1175
- defaultVariants: {
1176
- size: "lg"
1177
- }
1178
- });
1179
-
1180
- // src/recipes/select-box.ts
1181
- var import_dev12 = require("@pandacss/dev");
1182
- var select_box_default = (0, import_dev12.defineRecipe)({
1183
- className: "select-box",
1184
- description: "\u30BB\u30EC\u30AF\u30C8\u30DC\u30C3\u30AF\u30B9\u306F\u3001\u8907\u6570\u306E\u9078\u629E\u80A2\u3092\u63D0\u4F9B\u3059\u308B\u30D5\u30A9\u30FC\u30E0\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3067\u3059\u3002",
1185
- base: {
1186
- /**
1187
- * w-full pl-4 pr-10 py-[calc(11/16*1rem)]
1188
- * appearance-none rounded-8
1189
- * aria-disabled:pointer-events-none
1190
- */
1191
- width: "full",
1192
- appearance: "none",
1193
- pl: 4,
1194
- pr: 10,
1195
- py: "calc(11 / 16 * 1rem)",
1196
- rounded: 8,
1197
- pointerEvents: { base: "inherit", _disabled: "none" },
1198
- /**
1199
- * bg-white text-oln-16N-100 text-solid-gray-800
1200
- * aria-disabled:text-solid-gray-420
1201
- * aria-disabled:forced-colors:text-[GrayText]
1202
- */
1203
- bg: { base: "white", _disabled: "solid-gray.50" },
1204
- color: { base: "solid-gray.800", _disabled: "solid-gray.420" },
1205
- textStyle: "oln-16N-100",
1206
- /**
1207
- * border border-solid-gray-600 hover:border-black
1208
- * aria-disabled:border-solid-gray-300 aria-disabled:bg-solid-gray-50
1209
- * aria-disabled:forced-colors:border-[GrayText]
1210
- * aria-[invalid=true]:border-error-1aria-[invalid=true]:hover:border-red-1000
1211
- */
1212
- borderWidth: "1px",
1213
- borderColor: {
1214
- base: "solid-gray.900",
1215
- _disabled: "solid-gray.300",
1216
- _invalid: { base: "error.1", _hover: "red.1000" }
1217
- },
1218
- /**
1219
- * remove button style
1220
- */
1221
- textAlign: "start",
1222
- /**
1223
- * focus:outline focus:outline-4 focus:outline-black focus:outline-offset-[calc(2/16*1rem)] focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
1224
- */
1225
- _focus: {
1226
- outlineStyle: "solid",
1227
- outlineWidth: "4px",
1228
- outlineColor: "black",
1229
- outlineOffset: "calc(2 / 16 * 1rem)",
1230
- focusBox: "calc(2 / 16 * 1rem)"
1231
- }
1232
- },
1233
- variants: {
1234
- size: {
1235
- /**
1236
- * data-[size=sm]:h-10 data-[size=md]:h-12 data-[size=lg]:h-14
1237
- */
1238
- sm: {
1239
- height: 10
1240
- },
1241
- md: {
1242
- height: 12
1243
- },
1244
- lg: {
1245
- height: 14
1246
- }
1247
- }
1248
- }
1249
- });
1250
-
1251
- // src/recipes/date-picker.ts
1252
- var date_picker_default = (0, import_dev13.defineSlotRecipe)({
1253
- className: "date-picker",
1254
- slots: import_date_picker.anatomy.extendWith("view").keys(),
1255
- base: {
1256
- root: {
1257
- colorPalette: "keyColor"
1258
- },
1259
- control: {
1260
- display: "flex",
1261
- alignItems: "center",
1262
- gap: 2
1263
- },
1264
- viewControl: {
1265
- display: "flex",
1266
- alignItems: "center",
1267
- gap: 2,
1268
- p: 4
1269
- },
1270
- content: {
1271
- /**
1272
- * border border-solid-gray-420 bg-white shadow-1 rounded-8 focus:outline-0
1273
- */
1274
- bg: "white",
1275
- shadow: 1,
1276
- rounded: 8,
1277
- borderWidth: "1px",
1278
- borderColor: "solid-gray.420",
1279
- _focus: {
1280
- outlineWidth: "0px"
1281
- }
1282
- },
1283
- view: {
1284
- colorPalette: "keyColor",
1285
- display: "flex",
1286
- flexDirection: "column",
1287
- alignItems: "stretch",
1288
- width: "max-content"
1289
- },
1290
- label: {
1291
- ...label_default.base
1292
- },
1293
- input: {
1294
- ...input_default.base
1295
- },
1296
- yearSelect: {
1297
- ...select_box_default.base,
1298
- ...select_box_default.variants?.size?.md,
1299
- width: "fit-content"
1300
- },
1301
- monthSelect: {
1302
- ...select_box_default.base,
1303
- ...select_box_default.variants?.size?.md,
1304
- width: "fit-content"
1305
- },
1306
- table: {
1307
- /**
1308
- * mx-3 mb-2
1309
- */
1310
- mx: 3,
1311
- mb: 2
1312
- },
1313
- tableHead: {
1314
- /**
1315
- * [&_th]:p-0
1316
- */
1317
- "& th": {
1318
- p: 0
1319
- }
1320
- },
1321
- tableHeader: {
1322
- /**
1323
- * size-12 text-center font-bold
1324
- */
1325
- width: 12,
1326
- height: 12,
1327
- textAlign: "center",
1328
- fontWeight: "bold"
1329
- },
1330
- tableBody: {
1331
- /**
1332
- * [&_td]:p-0
1333
- */
1334
- "& td": {
1335
- p: 0
1336
- }
1337
- },
1338
- tableCellTrigger: {
1339
- /**
1340
- * m-1 flex items-center justify-center size-10 rounded-full
1341
- * underline-offset-[calc(3/16*1rem)] hover:bg-solid-gray-50 hover:underline
1342
- * data-[selected]:!bg-blue-900 data-[selected]:border
1343
- * data-[selected]:border-transparent data-[selected]:text-white
1344
- * focus-visible:bg-yellow-300 focus-visible:outline focus-visible:outline-4
1345
- * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
1346
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
1347
- */
1348
- m: 1,
1349
- display: "flex",
1350
- alignItems: "center",
1351
- justifyContent: "center",
1352
- width: 10,
1353
- height: 10,
1354
- rounded: "full",
1355
- textUnderlineOffset: "calc(3 / 16 * 1rem)",
1356
- textDecoration: { _hover: "underline" },
1357
- bg: {
1358
- _hover: { base: "solid-gray.50", _disabled: "transparent" },
1359
- _inRange: {
1360
- base: "colorPalette.bg"
1361
- },
1362
- _selected: {
1363
- base: "colorPalette.primary",
1364
- _hover: "colorPalette.primary",
1365
- _disabled: "transparent"
1366
- }
1367
- },
1368
- color: { _selected: "white", _disabled: "solid-gray.300" },
1369
- cursor: "pointer",
1370
- borderWidth: { _selected: "1px" },
1371
- borderColor: { _selected: "transparent" }
1372
- }
1373
- }
1374
- });
1375
-
1376
- // src/recipes/description-list.ts
1377
- var import_dev14 = require("@pandacss/dev");
1378
- var description_list_default = (0, import_dev14.defineSlotRecipe)({
1379
- className: "description-list",
1380
- slots: ["root", "item", "term", "marker", "description"],
1381
- base: {
1382
- root: {
1383
- /**
1384
- * margin-top: calc(16 / 16 * 1rem);
1385
- * margin-bottom: calc(16 / 16 * 1rem);
1386
- * display: grid;
1387
- * gap: calc(8 / 16 * 1rem) 0;
1388
- * overflow-wrap: anywhere;
1389
- */
1390
- mt: "calc(16 / 16 * 1rem)",
1391
- mb: "calc(16 / 16 * 1rem)",
1392
- display: "grid",
1393
- rowGap: "calc(8 / 16 * 1rem)",
1394
- overflowWrap: "anywhere"
1395
- },
1396
- term: {
1397
- /**
1398
- * font-weight: bold;
1399
- */
1400
- fontWeight: "bold"
1401
- },
1402
- marker: {
1403
- display: "none"
1404
- },
1405
- description: {
1406
- /**
1407
- * margin-left: calc(32 / 16 * 1rem);
1408
- */
1409
- ml: "calc(32 / 16 * 1rem)"
1410
- }
1411
- },
1412
- variants: {
1413
- marker: {
1414
- none: {},
1415
- bullet: {
1416
- term: {
1417
- /**
1418
- * margin-left: calc(32 / 16 * 1rem);
1419
- * display: list-item;
1420
- * list-style-type: disc;
1421
- */
1422
- ml: "calc(32 / 16 * 1rem)",
1423
- display: "list-item",
1424
- listStyleType: "disc"
1425
- }
1426
- },
1427
- custom: {
1428
- marker: {
1429
- display: "inline-block",
1430
- minWidth: "calc(32 / 16 * 1rem)",
1431
- height: "1em"
1432
- }
1433
- }
1434
- }
1435
- },
1436
- defaultVariants: {
1437
- marker: "none"
1438
- }
1439
- });
1440
-
1441
- // src/recipes/disclosure.ts
1442
- var import_dev15 = require("@pandacss/dev");
1443
- var import_collapsible = require("@zag-js/collapsible");
1444
- var disclosure_default = (0, import_dev15.defineSlotRecipe)({
1445
- className: "disclosure",
1446
- description: "\u30C7\u30A3\u30B9\u30AF\u30ED\u30FC\u30B8\u30E3\u30FC\u306F\u3001\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u30BB\u30AF\u30B7\u30E7\u30F3\u5185\u306E\u4EFB\u610F\u306E\u7BC4\u56F2\u3092\u6298\u308A\u305F\u305F\u3080\u3053\u3068\u304C\u3067\u304D\u308B\u30E6\u30FC\u30B6\u30FC\u30A4\u30F3\u30BF\u30FC\u30D5\u30A7\u30FC\u30B9\u3067\u3059\u3002\u203B\u30BB\u30AF\u30B7\u30E7\u30F3\u5358\u4F4D\u3067\u6298\u308A\u305F\u305F\u307F\u8868\u793A\u3092\u3059\u308B\u5834\u5408\u306F\u300C\u30A2\u30B3\u30FC\u30C7\u30A3\u30AA\u30F3\u300D\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
1447
- slots: import_collapsible.anatomy.extendWith("indicator").keys(),
1448
- base: {
1449
- root: {
1450
- /**
1451
- * group/disclosure
1452
- */
1453
- colorPalette: "keyColor"
1454
- },
1455
- trigger: {
1456
- /**
1457
- * group/summary
1458
- * [&::-webkit-details-marker]:hidden
1459
- */
1460
- /**
1461
- * flex w-fit cursor-default list-none items-start justify-start gap-2
1462
- */
1463
- display: "flex",
1464
- width: "fit-content",
1465
- cursor: "default",
1466
- listStyle: "none",
1467
- alignItems: "start",
1468
- justifyContent: "start",
1469
- gap: 2,
1470
- /**
1471
- * remove button style
1472
- */
1473
- textAlign: "start",
1474
- /**
1475
- * hover:underline hover:underline-offset-[calc(3/16*1rem)]
1476
- */
1477
- _hover: {
1478
- textDecoration: "underline",
1479
- textUnderlineOffset: "calc(3 / 16 * 1rem)"
1480
- },
1481
- /**
1482
- * focus-visible:rounded-4 focus-visible:outline focus-visible:outline-4
1483
- * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
1484
- * focus-visible:bg-yellow-300
1485
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
1486
- */
1487
- _focusVisible: {
1488
- rounded: 4,
1489
- bg: "yellow.300",
1490
- outlineStyle: "solid",
1491
- outlineWidth: "4px",
1492
- outlineColor: "black",
1493
- outlineOffset: "calc(2 / 16 * 1rem)",
1494
- focusBox: "calc(2 / 16 * 1rem)"
1495
- }
1496
- },
1497
- indicator: {
1498
- flex: "none",
1499
- bg: { base: "colorPalette.primary.100", _groupHover: "white" },
1500
- color: {
1501
- base: "white",
1502
- _groupHover: "colorPalette.primary.100",
1503
- _highContrast: "inherit"
1504
- },
1505
- mt: "calc((1lh - 24px) / 2)",
1506
- width: "24px",
1507
- height: "24px",
1508
- rounded: "full",
1509
- outlineStyle: "solid",
1510
- outlineWidth: "3px",
1511
- outlineOffset: "-3px",
1512
- outlineColor: "colorPalette.primary.100",
1513
- transition: "transform",
1514
- transform: {
1515
- base: "rotate(-180deg)",
1516
- _open: "rotate(0deg)"
1517
- }
1518
- },
1519
- content: {}
1520
- }
1521
- });
1522
-
1523
- // src/recipes/divider.ts
1524
- var import_dev16 = require("@pandacss/dev");
1525
- var divider_default = (0, import_dev16.defineRecipe)({
1526
- className: "divider",
1527
- description: "\u30C7\u30A3\u30D0\u30A4\u30C0\u30FC\u306F\u3001\u7570\u306A\u308B\u30BB\u30AF\u30B7\u30E7\u30F3\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3001\u307E\u305F\u306F\u30B3\u30F3\u30C6\u30F3\u30C4\u306E\u30B0\u30EB\u30FC\u30D7\u9593\u306B\u8A2D\u3051\u3089\u308C\u308B\u8996\u899A\u7684\u306A\u533A\u5207\u308A\u3067\u3001HTML\u306Ehr\u8981\u7D20\u306B\u76F8\u5F53\u3057\u307E\u3059\u3002\u8981\u7D20\u9593\u306B\u660E\u78BA\u306A\u533A\u5207\u308A\u3092\u8A2D\u3051\u308B\u3053\u3068\u3067\u3001\u8AAD\u307F\u3084\u3059\u3055\u3092\u5411\u4E0A\u3055\u305B\u308B\u5F79\u5272\u3092\u679C\u305F\u3057\u307E\u3059\u3002",
1528
- variants: {
1529
- color: {
1530
- "gray-420": { borderColor: "solid-gray.420" },
1531
- "gray-536": { borderColor: "solid-gray.536" },
1532
- black: { borderColor: "black" }
1533
- }
1534
- },
1535
- defaultVariants: {
1536
- color: "gray-420"
1537
- }
1538
- });
1539
-
1540
- // src/recipes/drawer.ts
1541
- var import_dialog = require("@zag-js/dialog");
1542
- var import_dev17 = require("@pandacss/dev");
1543
- var anatomy = import_dialog.anatomy.extendWith("header", "body", "footer");
1544
- var drawer_default = (0, import_dev17.defineSlotRecipe)({
1545
- className: "drawer",
1546
- description: "\u30D6\u30E9\u30A6\u30B6\u753B\u9762\u306E\u56DB\u8FBA(\u4E0A\u4E0B\u5DE6\u53F3\u7AEF)\u304B\u3089\u5C55\u958B\u3057\u3001\u30E2\u30D0\u30A4\u30EB\u30E1\u30CB\u30E5\u30FC\u306A\u3069\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u3092\u683C\u7D0D\u53EF\u80FD\u306A\u30B3\u30F3\u30C6\u30CA\u3067\u3059\u3002",
1547
- slots: anatomy.keys(),
1548
- base: {
1549
- backdrop: {
1550
- /**
1551
- * backdrop:bg-opacity-gray-100 forced-colors:backdrop:bg-[#000b]
1552
- */
1553
- backdropFilter: "blur(4px)",
1554
- background: "solid-gray.100/90",
1555
- height: "100vh",
1556
- position: "fixed",
1557
- top: 0,
1558
- left: 0,
1559
- width: "100vw",
1560
- zIndex: 10,
1561
- // zIndex: "overlay",
1562
- _open: {
1563
- animation: "backdrop-in"
1564
- },
1565
- _closed: {
1566
- animation: "backdrop-out"
1567
- }
1568
- },
1569
- positioner: {
1570
- alignItems: "center",
1571
- display: "flex",
1572
- height: "100dvh",
1573
- justifyContent: "center",
1574
- position: "fixed",
1575
- top: 0,
1576
- /**
1577
- * w-72
1578
- */
1579
- width: 72,
1580
- zIndex: 1400
1581
- // zIndex: "modal",
1582
- },
1583
- content: {
1584
- /**
1585
- * m-[unset] max-w-full max-h-[unset] overflow-visible start-auto
1586
- */
1587
- margin: "unset",
1588
- maxWidth: "full",
1589
- maxHeight: "full",
1590
- overflow: "visible",
1591
- insetInlineStart: "auto",
1592
- width: "full",
1593
- /**
1594
- * bg-white shadow-2 border-l-transparent
1595
- */
1596
- borderColor: "transparent",
1597
- background: "white",
1598
- boxShadow: 2,
1599
- /**
1600
- * grid grid-rows-[auto_1fr] h-dvh
1601
- */
1602
- display: "grid",
1603
- gridTemplateRows: "auto 1fr",
1604
- height: "100dvh",
1605
- _hidden: {
1606
- display: "none"
1607
- }
1608
- },
1609
- header: {
1610
- /**
1611
- * flex justify-end py-4 pl-4 pr-8
1612
- */
1613
- display: "flex",
1614
- justifyContent: "start",
1615
- py: 4,
1616
- px: 4
1617
- },
1618
- title: {
1619
- textStyle: "std-20B-150"
1620
- },
1621
- body: {
1622
- /**
1623
- * overflow-auto
1624
- */
1625
- overflow: "auto",
1626
- px: 4,
1627
- py: 4,
1628
- textStyle: "std-17N-170"
1629
- }
1630
- },
1631
- variants: {
1632
- placement: {
1633
- right: {
1634
- positioner: {
1635
- right: 0
1636
- },
1637
- content: {
1638
- /**
1639
- * border-l
1640
- */
1641
- borderLeftWidth: "1px"
1642
- }
1643
- },
1644
- left: {
1645
- positioner: {
1646
- left: 0
1647
- },
1648
- content: {
1649
- /**
1650
- * border-l
1651
- */
1652
- borderRightWidth: "1px"
1653
- }
1654
- }
1655
- }
1656
- },
1657
- defaultVariants: {
1658
- placement: "right"
1659
- }
1660
- });
1661
-
1662
- // src/recipes/emergency-banner.ts
1663
- var import_dev18 = require("@pandacss/dev");
1664
- var emergency_banner_default = (0, import_dev18.defineSlotRecipe)({
1665
- className: "emergency-banner",
1666
- slots: emergencyBannerAnatomy.keys(),
1667
- base: {
1668
- root: {
1669
- /**
1670
- * block px-2.5 py-3.5 border-[6px] bg-white desktop:p-[calc(26/16*1rem)] border-warning-orange-1
1671
- */
1672
- display: "block",
1673
- px: { base: 2.5, md: "calc(26 / 16 * 1rem)" },
1674
- py: { base: 3.5, md: "calc(26 / 16 * 1rem)" },
1675
- bg: "white",
1676
- borderWidth: "6px",
1677
- borderColor: "warning.orange.1",
1678
- color: "solid-gray.800"
1679
- },
1680
- heading: {
1681
- /**
1682
- * text-std-20B-150 text-black desktop:text-std-24B-150
1683
- */
1684
- color: "black",
1685
- textStyle: { base: "std-20B-150", md: "std-24B-150" },
1686
- _before: {
1687
- content: '"\u3010\u7DCA\u6025\u3011"'
1688
- }
1689
- },
1690
- body: {
1691
- /**
1692
- * mt-2 desktop:mt-4
1693
- */
1694
- mt: { base: 2, md: 4 }
1695
- },
1696
- action: {
1697
- pt: { base: "calc(8 / 16 * 1rem)", md: "calc(12 / 16 * 1rem)" },
1698
- pb: { md: "calc(4 / 16 * 1rem)" },
1699
- display: { md: "flex" },
1700
- justifyContent: { md: "flex" }
1701
- },
1702
- button: {
1703
- /**
1704
- * relative block mx-auto
1705
- * p-[calc(18/16*1rem)] desktop:p-5
1706
- * w-full desktop:w-fit
1707
- * desktop:min-w-[50%]
1708
- * border-2 desktop:border-4 border-transparent
1709
- * bg-error-1 hover:bg-error-2
1710
- * text-white text-oln-16B-100 text-center
1711
- * rounded-12 desktop:rounded-16
1712
- * after:absolute after:inset-0 after:border-white
1713
- * after:border-2 desktop:after:border-4
1714
- * after:rounded-[calc(10/16*1rem)] desktop:after:rounded-12
1715
- * hover:underline hover:underline-offset-[calc(3/16*1rem)]
1716
- * focus-visible:outline focus-visible:outline-[calc(4/16*1rem)]
1717
- * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
1718
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
1719
- */
1720
- position: "relative",
1721
- display: "block",
1722
- mx: "auto",
1723
- p: { base: "calc(18 / 16 * 1rem)", md: 5 },
1724
- width: { base: "full", md: "fit-content" },
1725
- minWidth: "50%",
1726
- borderWidth: { base: "2px", md: "4px" },
1727
- borderColor: "transparent",
1728
- bg: { base: "error.1", _hover: "error.2" },
1729
- color: "white",
1730
- textStyle: "oln-16B-100",
1731
- textAlign: "center",
1732
- rounded: { base: 12, md: 16 },
1733
- _hover: {
1734
- textDecoration: "underline",
1735
- textUnderlineOffset: "calc(3 / 16 * 1rem)"
1736
- },
1737
- _after: {
1738
- content: '""',
1739
- position: "absolute",
1740
- inset: 0,
1741
- borderColor: "white",
1742
- borderWidth: { base: "2px", md: "4px" },
1743
- rounded: { base: "calc(10 / 16 * 1rem)", md: 12 }
1744
- },
1745
- _focusVisible: {
1746
- outlineStyle: "solid",
1747
- outlineWidth: "4px",
1748
- outlineColor: "black",
1749
- outlineOffset: "calc(2 / 16 * 1rem)",
1750
- focusBox: "calc(2 / 16 * 1rem)"
1751
- }
1752
- }
1753
- }
1754
- });
1755
-
1756
- // src/recipes/error-text.ts
1757
- var import_dev19 = require("@pandacss/dev");
1758
- var error_text_default = (0, import_dev19.defineRecipe)({
1759
- className: "error-text",
1760
- base: {
1761
- /**
1762
- * text-dns-16N-130 text-error-1
1763
- */
1764
- textStyle: "dns-16N-130",
1765
- color: "error.1"
1766
- }
1767
- });
1768
-
1769
- // src/recipes/field.ts
1770
- var import_dev23 = require("@pandacss/dev");
1771
-
1772
- // src/recipes/requirement-badge.ts
1773
- var import_dev20 = require("@pandacss/dev");
1774
- var requirement_badge_default = (0, import_dev20.defineRecipe)({
1775
- className: "requirement-badge",
1776
- base: {
1777
- /**
1778
- * text-oln-16N-100 text-red-800
1779
- */
1780
- textStyle: "oln-16N-100",
1781
- color: "red.800"
1782
- }
1783
- });
1784
-
1785
- // src/recipes/support-text.ts
1786
- var import_dev21 = require("@pandacss/dev");
1787
- var support_text_default = (0, import_dev21.defineRecipe)({
1788
- className: "support-text",
1789
- base: {
1790
- /**
1791
- * text-std-16N-170 text-solid-gray-600
1792
- */
1793
- textStyle: "std-16N-170",
1794
- color: "solid-gray.600"
1795
- }
1796
- });
1797
-
1798
- // src/recipes/textarea.ts
1799
- var import_dev22 = require("@pandacss/dev");
1800
- var textarea_default = (0, import_dev22.defineRecipe)({
1801
- className: "textarea",
1802
- description: "\u30C6\u30AD\u30B9\u30C8\u30A8\u30EA\u30A2\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306F\u30011\u884C\u4EE5\u4E0A\u306E\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3059\u308B\u5834\u5408\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002",
1803
- base: {
1804
- /**
1805
- * rounded-8 max-w-full p-4 aria-disabled:pointer-events-none
1806
- */
1807
- rounded: 8,
1808
- p: 4,
1809
- /**
1810
- * text-std-16N-170 bg-white text-solid-gray-800
1811
- * aria-disabled:bg-solid-gray-50 aria-disabled:text-solid-gray-420
1812
- * aria-disabled:forced-colors:text-[GrayText]
1813
- */
1814
- textStyle: "std-16N-170",
1815
- bg: { base: "white", _disabled: "solid-gray.50" },
1816
- color: {
1817
- base: "solid-gray.800",
1818
- _disabled: { base: "solid-gray.420", _highContrast: "GrayText" }
1819
- },
1820
- /**
1821
- * border border-solid-gray-600 hover:border-black
1822
- * aria-disabled:border-solid-gray-300 aria-disabled:forced-colors:border-[GrayText]
1823
- * aria-[invalid=true]:border-error-1 aria-[invalid=true]:hover:border-red-1000
1824
- */
1825
- borderStyle: { base: "solid", _readOnly: "dashed" },
1826
- borderWidth: "1px",
1827
- borderColor: {
1828
- base: "solid-gray.600",
1829
- _hover: "black",
1830
- _disabled: { base: "solid-gray.300", _hover: "GrayText" },
1831
- _invalid: { base: "error.1", _hover: "red.1000" }
1832
- },
1833
- /**
1834
- * focus:outline focus:outline-4 focus:outline-black
1835
- * focus:outline-offset-[calc(2/16*1rem)]
1836
- * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
1837
- */
1838
- _focus: {
1839
- outlineStyle: "solid",
1840
- outlineWidth: "4px",
1841
- outlineColor: "black",
1842
- outlineOffset: "calc(2 / 16 * 1rem)",
1843
- focusBox: "calc(2 / 16 * 1rem)"
1844
- }
1845
- }
1846
- });
1847
-
1848
- // src/recipes/field.ts
1849
- var field = (0, import_dev23.defineSlotRecipe)({
1850
- className: "field",
1851
- slots: fieldAnatomy.keys(),
1852
- base: {
1853
- root: {
1854
- display: "flex",
1855
- flexDirection: "column",
1856
- gap: 1.5
1857
- },
1858
- label: {
1859
- ...label_default.base
1860
- },
1861
- input: {
1862
- ...input_default.base
1863
- },
1864
- textarea: {
1865
- ...textarea_default.base
1866
- },
1867
- select: {
1868
- ...select_box_default.base
1869
- },
1870
- errorText: {
1871
- ...error_text_default.base
1872
- },
1873
- supportText: {
1874
- ...support_text_default.base
1875
- },
1876
- requirementBadge: {
1877
- ...requirement_badge_default.base
1878
- }
1879
- },
1880
- variants: {
1881
- size: {
1882
- lg: {
1883
- label: { ...label_default.variants?.size?.lg },
1884
- input: { ...input_default.variants?.size?.lg },
1885
- select: { ...select_box_default.variants?.size?.lg }
1886
- },
1887
- md: {
1888
- label: { ...label_default.variants?.size?.md },
1889
- input: { ...input_default.variants?.size?.md },
1890
- select: { ...select_box_default.variants?.size?.md }
1891
- },
1892
- sm: {
1893
- label: { ...label_default.variants?.size?.sm },
1894
- input: { ...input_default.variants?.size?.sm },
1895
- select: { ...select_box_default.variants?.size?.sm }
1896
- }
1897
- }
1898
- },
1899
- defaultVariants: {
1900
- size: "md"
1901
- }
1902
- });
1903
- var field_default = field;
1904
-
1905
- // src/recipes/fieldset.ts
1906
- var import_dev24 = require("@pandacss/dev");
1907
- var fieldset_default = (0, import_dev24.defineSlotRecipe)({
1908
- className: "fieldset",
1909
- slots: fieldsetAnatomy.keys(),
1910
- base: {
1911
- legend: {
1912
- ...label_default.base
1913
- },
1914
- supportText: {
1915
- ...support_text_default.base
1916
- },
1917
- errorText: {
1918
- ...error_text_default.base
1919
- }
1920
- },
1921
- variants: {
1922
- size: {
1923
- lg: {
1924
- legend: { ...label_default.variants?.size?.lg }
1925
- },
1926
- md: {
1927
- legend: { ...label_default.variants?.size?.md }
1928
- },
1929
- sm: {
1930
- legend: { ...label_default.variants?.size?.sm }
1931
- }
1932
- }
1933
- },
1934
- defaultVariants: {
1935
- size: "md"
1936
- }
1937
- });
1938
-
1939
- // src/recipes/file-upload.ts
1940
- var import_dev25 = require("@pandacss/dev");
1941
-
1942
- // ../../node_modules/@zag-js/file-upload/dist/index.mjs
1943
- var import_anatomy8 = require("@zag-js/anatomy");
1944
-
1945
- // ../../node_modules/@zag-js/dom-query/dist/index.mjs
1946
- var isObject = (v) => typeof v === "object" && v !== null;
1947
- var ELEMENT_NODE = 1;
1948
- var DOCUMENT_NODE = 9;
1949
- var DOCUMENT_FRAGMENT_NODE = 11;
1950
- var isHTMLElement = (el) => isObject(el) && el.nodeType === ELEMENT_NODE && typeof el.nodeName === "string";
1951
- var isDocument = (el) => isObject(el) && el.nodeType === DOCUMENT_NODE;
1952
- var isNode = (el) => isObject(el) && el.nodeType !== void 0;
1953
- var isShadowRoot = (el) => isNode(el) && el.nodeType === DOCUMENT_FRAGMENT_NODE && "host" in el;
1954
- function contains(parent, child) {
1955
- if (!parent || !child) return false;
1956
- if (!isHTMLElement(parent) || !isHTMLElement(child)) return false;
1957
- const rootNode = child.getRootNode?.();
1958
- if (parent === child) return true;
1959
- if (parent.contains(child)) return true;
1960
- if (rootNode && isShadowRoot(rootNode)) {
1961
- let next = child;
1962
- while (next) {
1963
- if (parent === next) return true;
1964
- next = next.parentNode || next.host;
1965
- }
1966
- }
1967
- return false;
1968
- }
1969
- function getWindow(el) {
1970
- if (isShadowRoot(el)) return getWindow(el.host);
1971
- if (isDocument(el)) return el.defaultView ?? window;
1972
- if (isHTMLElement(el)) return el.ownerDocument?.defaultView ?? window;
1973
- return window;
1974
- }
1975
- function getComposedPath(event) {
1976
- return event.composedPath?.() ?? event.nativeEvent?.composedPath?.();
1977
- }
1978
- function getEventTarget(event) {
1979
- const composedPath = getComposedPath(event);
1980
- return composedPath?.[0] ?? event.target;
1981
- }
1982
- var addDomEvent = (target, eventName, handler, options) => {
1983
- const node = typeof target === "function" ? target() : target;
1984
- node?.addEventListener(eventName, handler, options);
1985
- return () => {
1986
- node?.removeEventListener(eventName, handler, options);
1987
- };
1988
- };
1989
- function raf(fn) {
1990
- let cleanup;
1991
- const id = globalThis.requestAnimationFrame(() => {
1992
- cleanup = fn();
1993
- });
1994
- return () => {
1995
- globalThis.cancelAnimationFrame(id);
1996
- cleanup?.();
1997
- };
1998
- }
1999
-
2000
- // ../../node_modules/@zag-js/file-utils/dist/index.mjs
2001
- function isMIMEType(v) {
2002
- return v === "audio/*" || v === "video/*" || v === "image/*" || v === "text/*" || /\w+\/[-+.\w]+/g.test(v);
2003
- }
2004
- function isExt(v) {
2005
- return /^.*\.[\w]+$/.test(v);
2006
- }
2007
- var isValidMIME = (v) => isMIMEType(v) || isExt(v);
2008
- function getAcceptAttrString(accept) {
2009
- if (accept == null) return;
2010
- if (typeof accept === "string") {
2011
- return accept;
2012
- }
2013
- if (Array.isArray(accept)) {
2014
- return accept.filter(isValidMIME).join(",");
2015
- }
2016
- return Object.entries(accept).reduce((a, [mimeType, ext]) => [...a, mimeType, ...ext], []).filter(isValidMIME).join(",");
2017
- }
2018
- var isFileEqual = (file1, file2) => {
2019
- return file1.name === file2.name && file1.size === file2.size && file1.type === file2.type;
2020
- };
2021
- var isDefined = (v) => v !== void 0 && v !== null;
2022
- function isValidFileSize(file, minSize, maxSize) {
2023
- if (isDefined(file.size)) {
2024
- if (isDefined(minSize) && isDefined(maxSize)) {
2025
- if (file.size > maxSize) return [false, "FILE_TOO_LARGE"];
2026
- if (file.size < minSize) return [false, "FILE_TOO_SMALL"];
2027
- } else if (isDefined(minSize) && file.size < minSize) {
2028
- return [false, "FILE_TOO_SMALL"];
2029
- } else if (isDefined(maxSize) && file.size > maxSize) {
2030
- return [false, "FILE_TOO_LARGE"];
2031
- }
2032
- }
2033
- return [true, null];
2034
- }
2035
- var mimeTypes = "3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip";
2036
- var mimeTypesMap = new Map(
2037
- mimeTypes.split("[").flatMap((mime) => {
2038
- const [extensions, mimeType] = mime.split("_");
2039
- return extensions.split(",").map((ext) => [ext, mimeType]);
2040
- })
2041
- );
2042
- function getFileMimeType(name) {
2043
- const extension = name.split(".").pop();
2044
- return extension ? mimeTypesMap.get(extension) || null : null;
2045
- }
2046
- function isFileAccepted(file, accept) {
2047
- if (file && accept) {
2048
- const types = Array.isArray(accept) ? accept : typeof accept === "string" ? accept.split(",") : [];
2049
- if (types.length === 0) return true;
2050
- const fileName = file.name || "";
2051
- const mimeType = (file.type || getFileMimeType(fileName) || "").toLowerCase();
2052
- const baseMimeType = mimeType.replace(/\/.*$/, "");
2053
- return types.some((type) => {
2054
- const validType = type.trim().toLowerCase();
2055
- if (validType.charAt(0) === ".") {
2056
- return fileName.toLowerCase().endsWith(validType);
2057
- }
2058
- if (validType.endsWith("/*")) {
2059
- return baseMimeType === validType.replace(/\/.*$/, "");
2060
- }
2061
- return mimeType === validType;
2062
- });
2063
- }
2064
- return true;
2065
- }
2066
- function isValidFileType(file, accept) {
2067
- const isAcceptable = file.type === "application/x-moz-file" || isFileAccepted(file, accept);
2068
- return [isAcceptable, isAcceptable ? null : "FILE_INVALID_TYPE"];
2069
- }
2070
-
2071
- // ../../node_modules/@zag-js/types/dist/index.mjs
2072
- var createProps = () => (props2) => Array.from(new Set(props2));
2073
-
2074
- // ../../node_modules/@zag-js/utils/dist/index.mjs
2075
- var fnToString = Function.prototype.toString;
2076
- var objectCtorString = fnToString.call(Object);
2077
- var callAll = (...fns) => (...a) => {
2078
- fns.forEach(function(fn) {
2079
- fn?.(...a);
2080
- });
2081
- };
2082
- var { floor, abs, round, min, max, pow, sign } = Math;
2083
- function splitProps(props2, keys) {
2084
- const rest = {};
2085
- const result = {};
2086
- const keySet = new Set(keys);
2087
- for (const key in props2) {
2088
- if (keySet.has(key)) {
2089
- result[key] = props2[key];
2090
- } else {
2091
- rest[key] = props2[key];
2092
- }
2093
- }
2094
- return [result, rest];
2095
- }
2096
- var createSplitProps = (keys) => {
2097
- return function split(props2) {
2098
- return splitProps(props2, keys);
2099
- };
2100
- };
2101
- var _tick;
2102
- _tick = /* @__PURE__ */ new WeakMap();
2103
- function warn(...a) {
2104
- const m = a.length === 1 ? a[0] : a[1];
2105
- const c = a.length === 2 ? a[0] : true;
2106
- if (c && process.env.NODE_ENV !== "production") {
2107
- console.warn(m);
2108
- }
2109
- }
2110
-
2111
- // ../../node_modules/@zag-js/core/dist/index.mjs
2112
- function createMachine(config) {
2113
- return config;
2114
- }
2115
-
2116
- // ../../node_modules/@zag-js/file-upload/dist/index.mjs
2117
- var anatomy2 = (0, import_anatomy8.createAnatomy)("file-upload").parts(
2118
- "root",
2119
- "dropzone",
2120
- "item",
2121
- "itemDeleteTrigger",
2122
- "itemGroup",
2123
- "itemName",
2124
- "itemPreview",
2125
- "itemPreviewImage",
2126
- "itemSizeText",
2127
- "label",
2128
- "trigger",
2129
- "clearTrigger"
2130
- );
2131
- var parts = anatomy2.build();
2132
- var getRootId = (ctx) => ctx.ids?.root ?? `file:${ctx.id}`;
2133
- var getHiddenInputId = (ctx) => ctx.ids?.hiddenInput ?? `file:${ctx.id}:input`;
2134
- var getRootEl = (ctx) => ctx.getById(getRootId(ctx));
2135
- var getHiddenInputEl = (ctx) => ctx.getById(getHiddenInputId(ctx));
2136
- function isFilesWithinRange(ctx, incomingCount, currentAcceptedFiles) {
2137
- const { prop, computed } = ctx;
2138
- if (!computed("multiple") && incomingCount > 1) return false;
2139
- if (!computed("multiple") && incomingCount + currentAcceptedFiles.length === 2) return true;
2140
- if (incomingCount + currentAcceptedFiles.length > prop("maxFiles")) return false;
2141
- return true;
2142
- }
2143
- function getEventFiles(ctx, files, currentAcceptedFiles = [], currentRejectedFiles = []) {
2144
- const { prop, computed } = ctx;
2145
- const acceptedFiles = [];
2146
- const rejectedFiles = [];
2147
- const validateParams = {
2148
- acceptedFiles: currentAcceptedFiles,
2149
- rejectedFiles: currentRejectedFiles
2150
- };
2151
- files.forEach((file) => {
2152
- const [accepted, acceptError] = isValidFileType(file, computed("acceptAttr"));
2153
- const [sizeMatch, sizeError] = isValidFileSize(file, prop("minFileSize"), prop("maxFileSize"));
2154
- const validateErrors = prop("validate")?.(file, validateParams);
2155
- const valid = validateErrors ? validateErrors.length === 0 : true;
2156
- if (accepted && sizeMatch && valid) {
2157
- acceptedFiles.push(file);
2158
- } else {
2159
- const errors = [acceptError, sizeError];
2160
- if (!valid) errors.push(...validateErrors ?? []);
2161
- rejectedFiles.push({ file, errors: errors.filter(Boolean) });
2162
- }
2163
- });
2164
- if (!isFilesWithinRange(ctx, acceptedFiles.length, currentAcceptedFiles)) {
2165
- acceptedFiles.forEach((file) => {
2166
- rejectedFiles.push({ file, errors: ["TOO_MANY_FILES"] });
2167
- });
2168
- acceptedFiles.splice(0);
2169
- }
2170
- return {
2171
- acceptedFiles,
2172
- rejectedFiles
2173
- };
2174
- }
2175
- function setInputFiles(inputEl, files) {
2176
- const win = getWindow(inputEl);
2177
- try {
2178
- if ("DataTransfer" in win) {
2179
- const dataTransfer = new win.DataTransfer();
2180
- files.forEach((file) => {
2181
- dataTransfer.items.add(file);
2182
- });
2183
- inputEl.files = dataTransfer.files;
2184
- }
2185
- } catch {
2186
- }
2187
- }
2188
- var machine = createMachine({
2189
- props({ props: props2 }) {
2190
- return {
2191
- minFileSize: 0,
2192
- maxFileSize: Number.POSITIVE_INFINITY,
2193
- maxFiles: 1,
2194
- allowDrop: true,
2195
- preventDocumentDrop: true,
2196
- defaultAcceptedFiles: [],
2197
- ...props2,
2198
- translations: {
2199
- dropzone: "dropzone",
2200
- itemPreview: (file) => `preview of ${file.name}`,
2201
- deleteFile: (file) => `delete file ${file.name}`,
2202
- ...props2.translations
2203
- }
2204
- };
2205
- },
2206
- initialState() {
2207
- return "idle";
2208
- },
2209
- context({ prop, bindable, getContext }) {
2210
- return {
2211
- acceptedFiles: bindable(() => ({
2212
- defaultValue: prop("defaultAcceptedFiles"),
2213
- value: prop("acceptedFiles"),
2214
- isEqual: (a, b) => a.length === b?.length && a.every((file, i) => isFileEqual(file, b[i])),
2215
- hash(value) {
2216
- return value.map((file) => `${file.name}-${file.size}`).join(",");
2217
- },
2218
- onChange(value) {
2219
- const ctx = getContext();
2220
- prop("onFileAccept")?.({ files: value });
2221
- prop("onFileChange")?.({ acceptedFiles: value, rejectedFiles: ctx.get("rejectedFiles") });
2222
- }
2223
- })),
2224
- rejectedFiles: bindable(() => ({
2225
- defaultValue: [],
2226
- isEqual: (a, b) => a.length === b?.length && a.every((file, i) => isFileEqual(file.file, b[i].file)),
2227
- onChange(value) {
2228
- const ctx = getContext();
2229
- prop("onFileReject")?.({ files: value });
2230
- prop("onFileChange")?.({ acceptedFiles: ctx.get("acceptedFiles"), rejectedFiles: value });
2231
- }
2232
- })),
2233
- transforming: bindable(() => ({
2234
- defaultValue: false
2235
- }))
2236
- };
2237
- },
2238
- computed: {
2239
- acceptAttr: ({ prop }) => getAcceptAttrString(prop("accept")),
2240
- multiple: ({ prop }) => prop("maxFiles") > 1
2241
- },
2242
- watch({ track, context, action }) {
2243
- track([() => context.hash("acceptedFiles")], () => {
2244
- action(["syncInputElement"]);
2245
- });
2246
- },
2247
- on: {
2248
- "FILES.SET": {
2249
- actions: ["setFiles"]
2250
- },
2251
- "FILE.SELECT": {
2252
- actions: ["setEventFiles"]
2253
- },
2254
- "FILE.DELETE": {
2255
- actions: ["removeFile"]
2256
- },
2257
- "FILES.CLEAR": {
2258
- actions: ["clearFiles"]
2259
- },
2260
- "REJECTED_FILES.CLEAR": {
2261
- actions: ["clearRejectedFiles"]
2262
- }
2263
- },
2264
- effects: ["preventDocumentDrop"],
2265
- states: {
2266
- idle: {
2267
- on: {
2268
- OPEN: {
2269
- actions: ["openFilePicker"]
2270
- },
2271
- "DROPZONE.CLICK": {
2272
- actions: ["openFilePicker"]
2273
- },
2274
- "DROPZONE.FOCUS": {
2275
- target: "focused"
2276
- },
2277
- "DROPZONE.DRAG_OVER": {
2278
- target: "dragging"
2279
- }
2280
- }
2281
- },
2282
- focused: {
2283
- on: {
2284
- "DROPZONE.BLUR": {
2285
- target: "idle"
2286
- },
2287
- OPEN: {
2288
- actions: ["openFilePicker"]
2289
- },
2290
- "DROPZONE.CLICK": {
2291
- actions: ["openFilePicker"]
2292
- },
2293
- "DROPZONE.DRAG_OVER": {
2294
- target: "dragging"
2295
- }
2296
- }
2297
- },
2298
- dragging: {
2299
- on: {
2300
- "DROPZONE.DROP": {
2301
- target: "idle",
2302
- actions: ["setEventFiles"]
2303
- },
2304
- "DROPZONE.DRAG_LEAVE": {
2305
- target: "idle"
2306
- }
2307
- }
2308
- }
2309
- },
2310
- implementations: {
2311
- effects: {
2312
- preventDocumentDrop({ prop, scope }) {
2313
- if (!prop("preventDocumentDrop")) return;
2314
- if (!prop("allowDrop")) return;
2315
- if (prop("disabled")) return;
2316
- const doc = scope.getDoc();
2317
- const onDragOver = (event) => {
2318
- event?.preventDefault();
2319
- };
2320
- const onDrop = (event) => {
2321
- if (contains(getRootEl(scope), getEventTarget(event))) return;
2322
- event.preventDefault();
2323
- };
2324
- return callAll(addDomEvent(doc, "dragover", onDragOver, false), addDomEvent(doc, "drop", onDrop, false));
2325
- }
2326
- },
2327
- actions: {
2328
- syncInputElement({ scope, context }) {
2329
- queueMicrotask(() => {
2330
- const inputEl = getHiddenInputEl(scope);
2331
- if (!inputEl) return;
2332
- setInputFiles(inputEl, context.get("acceptedFiles"));
2333
- const win = scope.getWin();
2334
- inputEl.dispatchEvent(new win.Event("change", { bubbles: true }));
2335
- });
2336
- },
2337
- openFilePicker({ scope }) {
2338
- raf(() => {
2339
- getHiddenInputEl(scope)?.click();
2340
- });
2341
- },
2342
- setFiles(params) {
2343
- const { computed, context, event } = params;
2344
- const { acceptedFiles, rejectedFiles } = getEventFiles(params, event.files);
2345
- context.set(
2346
- "acceptedFiles",
2347
- computed("multiple") ? acceptedFiles : acceptedFiles.length > 0 ? [acceptedFiles[0]] : []
2348
- );
2349
- context.set("rejectedFiles", rejectedFiles);
2350
- },
2351
- setEventFiles(params) {
2352
- const { computed, context, event, prop } = params;
2353
- const currentAcceptedFiles = context.get("acceptedFiles");
2354
- const currentRejectedFiles = context.get("rejectedFiles");
2355
- const { acceptedFiles, rejectedFiles } = getEventFiles(
2356
- params,
2357
- event.files,
2358
- currentAcceptedFiles,
2359
- currentRejectedFiles
2360
- );
2361
- const set = (files) => {
2362
- if (computed("multiple")) {
2363
- context.set("acceptedFiles", (prev) => [...prev, ...files]);
2364
- context.set("rejectedFiles", rejectedFiles);
2365
- return;
2366
- }
2367
- if (files.length) {
2368
- context.set("acceptedFiles", [files[0]]);
2369
- context.set("rejectedFiles", rejectedFiles);
2370
- return;
2371
- }
2372
- if (rejectedFiles.length) {
2373
- context.set("acceptedFiles", context.get("acceptedFiles"));
2374
- context.set("rejectedFiles", rejectedFiles);
2375
- }
2376
- };
2377
- const transform = prop("transformFiles");
2378
- if (transform) {
2379
- context.set("transforming", true);
2380
- transform(acceptedFiles).then(set).catch((err) => {
2381
- warn(`[zag-js/file-upload] error transforming files
2382
- ${err}`);
2383
- }).finally(() => {
2384
- context.set("transforming", false);
2385
- });
2386
- } else {
2387
- set(acceptedFiles);
2388
- }
2389
- },
2390
- removeFile({ context, event }) {
2391
- if (event.itemType === "rejected") {
2392
- const rejectedFiles = context.get("rejectedFiles").filter((item) => !isFileEqual(item.file, event.file));
2393
- context.set("rejectedFiles", rejectedFiles);
2394
- } else {
2395
- const files = context.get("acceptedFiles").filter((file) => !isFileEqual(file, event.file));
2396
- context.set("acceptedFiles", files);
2397
- }
2398
- },
2399
- clearRejectedFiles({ context }) {
2400
- context.set("rejectedFiles", []);
2401
- },
2402
- clearFiles({ context }) {
2403
- context.set("acceptedFiles", []);
2404
- context.set("rejectedFiles", []);
2405
- }
2406
- }
2407
- }
2408
- });
2409
- var props = createProps()([
2410
- "accept",
2411
- "acceptedFiles",
2412
- "allowDrop",
2413
- "capture",
2414
- "defaultAcceptedFiles",
2415
- "dir",
2416
- "directory",
2417
- "disabled",
2418
- "getRootNode",
2419
- "id",
2420
- "ids",
2421
- "invalid",
2422
- "locale",
2423
- "maxFiles",
2424
- "maxFileSize",
2425
- "minFileSize",
2426
- "name",
2427
- "onFileAccept",
2428
- "onFileChange",
2429
- "onFileReject",
2430
- "preventDocumentDrop",
2431
- "required",
2432
- "transformFiles",
2433
- "translations",
2434
- "validate"
2435
- ]);
2436
- var splitProps2 = createSplitProps(props);
2437
- var itemProps = createProps()(["file", "type"]);
2438
- var splitItemProps = createSplitProps(itemProps);
2439
-
2440
- // src/recipes/file-upload.ts
2441
- var file_upload_default = (0, import_dev25.defineSlotRecipe)({
2442
- className: "file-upload",
2443
- slots: anatomy2.extendWith("itemDetail").keys(),
2444
- base: {
2445
- root: {
2446
- display: "flex",
2447
- flexDirection: "column",
2448
- alignItems: "start",
2449
- gap: 4,
2450
- textStyle: "std-16N-170"
2451
- },
2452
- dropzone: {
2453
- display: "flex",
2454
- flexDirection: "column",
2455
- justifyContent: "space-between",
2456
- width: "full",
2457
- minHeight: "208px",
2458
- bg: { base: "solid-gray.bg", _dragging: "green.50" },
2459
- outlineStyle: "solid",
2460
- outlineColor: {
2461
- base: "solid-gray.536",
2462
- _dragging: "success.1",
2463
- _invalid: "error.1"
2464
- },
2465
- outlineWidth: { base: "1px", _dragging: "4px" },
2466
- rounded: 8,
2467
- pt: 8,
2468
- pb: 6,
2469
- pl: 7,
2470
- pr: 8
2471
- },
2472
- trigger: {
2473
- flexShrink: 0
2474
- },
2475
- label: {
2476
- ...label_default.base,
2477
- textStyle: "std-17B-170"
2478
- },
2479
- itemGroup: {
2480
- display: "flex",
2481
- flexDirection: "column",
2482
- gap: 1,
2483
- listStyle: "inside deciminal"
2484
- },
2485
- item: {
2486
- display: "list-item",
2487
- color: {
2488
- base: "solid-gray.600",
2489
- "[data-status=rejected]": "error.1",
2490
- _marker: "solid-gray.600"
2491
- },
2492
- "& > *": {
2493
- display: "inline",
2494
- mr: { base: 2, _last: 0 }
2495
- }
2496
- },
2497
- itemDetail: {
2498
- color: { base: "solid-gray.600", "[data-status=rejected] &": "error.1" },
2499
- borderLeftWidth: { base: "0px", "[data-status=rejected] &": "4px" },
2500
- borderColor: "currentcolor",
2501
- pl: { base: 0, "[data-status=rejected] &": 2 },
2502
- display: "inline-block",
2503
- verticalAlign: "text-top"
2504
- },
2505
- itemName: {
2506
- textStyle: "std-16B-170",
2507
- color: { base: "solid-gray.800", "[data-status=rejected] &": "error.1" }
2508
- },
2509
- itemDeleteTrigger: {
2510
- ...link_default.base,
2511
- cursor: "pointer"
2512
- }
2513
- }
2514
- });
2515
-
2516
- // src/recipes/hamburger-menu-button.ts
2517
- var import_dev26 = require("@pandacss/dev");
2518
- var hamburger_menu_button_default = (0, import_dev26.defineRecipe)({
2519
- className: "hamburger-menu-button",
2520
- base: {
2521
- /**
2522
- * flex w-fit items-center text-oln-16N-100 rounded-6 touch-manipulation
2523
- */
2524
- display: "flex",
2525
- width: "fit-content",
2526
- alignItems: "center",
2527
- textStyle: "oln-16N-100",
2528
- rounded: 6,
2529
- /**
2530
- * gap-x-1 px-3 pb-1.5 pt-1
2531
- */
2532
- px: 3,
2533
- pb: 1.5,
2534
- pt: 1,
2535
- touchAction: "manipulation",
2536
- columnGap: 1.5,
2537
- /**
2538
- * hover:bg-solid-gray-50 hover:underline hover:underline-offset-[calc(3/16*1rem)]
2539
- */
2540
- _hover: {
2541
- bg: "solid-gray.50",
2542
- textDecoration: "underline",
2543
- textUnderlineOffset: "calc(3 / 16 * 1rem)"
2544
- },
2545
- /**
2546
- * focus-visible:outline focus-visible:outline-4 focus-visible:outline-black
2547
- * focus-visible:outline-offset-[calc(2/16*1rem)] focus-visible:bg-yellow-300
2548
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
2549
- */
2550
- _focusVisible: {
2551
- bg: "yellow.300",
2552
- outlineStyle: "solid",
2553
- outlineWidth: "4px",
2554
- outlineColor: "black",
2555
- outlineOffset: "calc(2 / 16 * 1rem)",
2556
- focusBox: "calc(2 / 16 * 1rem)"
2557
- },
2558
- /**
2559
- * override reset
2560
- */
2561
- cursor: "pointer"
2562
- }
2563
- });
2564
-
2565
- // src/recipes/legend.ts
2566
- var import_dev27 = require("@pandacss/dev");
2567
- var legend_default = (0, import_dev27.defineRecipe)({
2568
- className: "legend",
2569
- base: {
2570
- /**
2571
- * flex w-fit items-center gap-2 text-solid-gray-800
2572
- */
2573
- display: "flex",
2574
- width: "fit-content",
2575
- alignItems: "center",
2576
- gap: 2,
2577
- color: "solid-gray.800"
2578
- },
2579
- variants: {
2580
- size: {
2581
- sm: {
2582
- /**
2583
- * data-[size=sm]:text-std-16B-170
2584
- */
2585
- textStyle: "std-16B-170"
2586
- },
2587
- md: {
2588
- /**
2589
- * data-[size=md]:text-std-17B-170
2590
- */
2591
- textStyle: "std-17B-170"
2592
- },
2593
- lg: {
2594
- /**
2595
- * data-[size=lg]:text-std-18B-160
2596
- */
2597
- textStyle: "std-18B-160"
2598
- }
2599
- }
2600
- },
2601
- defaultVariants: {
2602
- size: "md"
2603
- }
2604
- });
2605
-
2606
- // src/recipes/list.ts
2607
- var import_dev28 = require("@pandacss/dev");
2608
- var list_default = (0, import_dev28.defineRecipe)({
2609
- className: "list",
2610
- base: {
2611
- /**
2612
- * py-1
2613
- */
2614
- py: 1
2615
- }
2616
- });
2617
-
2618
- // src/recipes/menu.ts
2619
- var import_dev30 = require("@pandacss/dev");
2620
- var import_menu = require("@zag-js/menu");
2621
-
2622
- // src/recipes/menu-item.ts
2623
- var import_dev29 = require("@pandacss/dev");
2624
- var menu_item_default = (0, import_dev29.defineRecipe)({
2625
- className: "menu-item",
2626
- base: {
2627
- /**
2628
- * flex relative items-center text-nowrap
2629
- * bg-white hover:bg-solid-gray-50 focus-visible:bg-yellow-300
2630
- * text-oln-16N-100 text-solid-gray-800
2631
- * ${isCurrent ? '!text-blue-1000 !bg-blue-100 font-bold' : ''}
2632
- */
2633
- display: "flex",
2634
- position: "relative",
2635
- alignItems: "center",
2636
- textStyle: "dns-16N-130",
2637
- colorPalette: "keyColor",
2638
- bg: {
2639
- base: "transparent",
2640
- _hover: "solid-gray.50",
2641
- _focusVisible: "yellow.300",
2642
- _highlighted: "yellow.300",
2643
- _selected: {
2644
- base: "colorPalette.100",
2645
- _hover: "colorPalette.100"
2646
- },
2647
- _checked: {
2648
- base: "colorPalette.100",
2649
- _hover: "colorPalette.100"
2650
- },
2651
- _open: {
2652
- base: "colorPalette.bg",
2653
- _hover: "colorPalette.bg"
2654
- }
2655
- },
2656
- color: {
2657
- base: "solid-gray.800",
2658
- _selected: "colorPalette.primary.100",
2659
- _checked: "colorPalette.primary.100",
2660
- _open: "colorPalette.primary.100"
2661
- },
2662
- fontWeight: { base: "normal", _selected: "bold", _checked: "bold" },
2663
- /**
2664
- * hover:underline hover:underline-offset-[calc(3/16*1rem)]
2665
- */
2666
- _hover: {
2667
- textDecoration: "underline",
2668
- textUnderlineOffset: "calc(3 / 16 * 1rem)"
2669
- },
2670
- /**
2671
- * py-3 pl-3 pr-6 gap-x-2
2672
- */
2673
- py: 3,
2674
- pl: 3,
2675
- pr: 6,
2676
- columnGap: 2,
2677
- /**
2678
- * focus-visible:outline focus-visible:outline-4 focus-visible:outline-black
2679
- * focus-visible:-outline-offset-4
2680
- * focus-visible:ring-[calc(6/16*1rem)] focus-visible:ring-inset
2681
- * focus-visible:ring-yellow-300
2682
- */
2683
- _focusVisible: {
2684
- rounded: 4,
2685
- outlineStyle: "solid",
2686
- outlineWidth: "4px",
2687
- outlineColor: "black",
2688
- outlineOffset: "calc(2 / 16 * 1rem)",
2689
- focusBox: "calc(6 / 16 * 1rem)",
2690
- zIndex: 1
2691
- },
2692
- _highlighted: {
2693
- rounded: 4,
2694
- outlineStyle: "solid",
2695
- outlineWidth: "4px",
2696
- outlineColor: "black",
2697
- outlineOffset: "calc(2 / 16 * 1rem)",
2698
- focusBox: "calc(6 / 16 * 1rem)",
2699
- zIndex: 1
2700
- }
2701
- },
2702
- variants: {
2703
- variant: {
2704
- standard: {
2705
- rounded: 4
2706
- },
2707
- boxed: {
2708
- rounded: {
2709
- base: 0,
2710
- _focusVisible: 4
2711
- }
2712
- }
2713
- },
2714
- isCondensed: {
2715
- true: {
2716
- /**
2717
- * ${isCondensed ? 'py-1.5 pl-1.5 pr-4 gap-x-1.5'}
2718
- */
2719
- py: 1.5,
2720
- pl: 1.5,
2721
- pr: 4,
2722
- columnGap: 1.5
2723
- }
2724
- }
2725
- },
2726
- defaultVariants: {
2727
- variant: "standard",
2728
- isCondensed: false
2729
- }
2730
- });
2731
-
2732
- // src/recipes/menu.ts
2733
- var itemStyle = {
2734
- ...menu_item_default.base
2735
- };
2736
- var menu_default = (0, import_dev30.defineSlotRecipe)({
2737
- className: "menu",
2738
- slots: import_menu.anatomy.keys(),
2739
- base: {
2740
- content: {
2741
- minWidth: "fit-content",
2742
- width: "auto",
2743
- maxHeight: "calc((44 * 6.5 + 16) / 16 * 1rem)",
2744
- py: 2,
2745
- borderWidth: "1px",
2746
- borderColor: "solid-gray.420",
2747
- bg: "white",
2748
- rounded: 8,
2749
- boxShadow: 1
2750
- /**
2751
- * min-w-fit w-auto py-2 border border-solid-grey-420 bg-white shadow-1 rounded-lg
2752
- has-[>:nth-child(7)]:rounded-r-none
2753
- ${isCondensed ? 'max-h-[calc((32*6.5+16)/16*1rem)]' : 'max-h-[calc((44*6.5+16)/16*1rem)]'}
2754
- */
2755
- },
2756
- itemGroupLabel: {
2757
- ...itemStyle,
2758
- fontWeight: "bold"
2759
- },
2760
- triggerItem: {
2761
- ...itemStyle
2762
- },
2763
- item: {
2764
- ...itemStyle,
2765
- textDecoration: {
2766
- base: "none",
2767
- _hover: "underline"
2768
- },
2769
- textUnderlineOffset: "calc(3 / 16 * 1rem)",
2770
- _checked: {
2771
- bg: "colorPalette.100",
2772
- color: "colorPalette.primary.100",
2773
- fontWeight: "bold"
2774
- },
2775
- _focusVisible: {
2776
- outlineStyle: "solid",
2777
- outlineWidth: "4px",
2778
- outlineColor: "black",
2779
- outlineOffset: "calc(2 / 16 * 1rem)",
2780
- focusBox: "calc(2 / 16 * 1rem)",
2781
- zIndex: 1
2782
- }
2783
- /**
2784
- * flex relative items-center bg-white text-nowrap text-oln-16N-1 text-solid-grey-800
2785
- ${isCondensed ? 'py-1.5 pl-1.5 pr-4 gap-x-1.5' : 'py-3 pl-3 pr-6 gap-x-2'}
2786
- ${isCurrent && '!text-blue-1000 !bg-blue-100 font-bold'}
2787
- hover:underline hover:underline-offset-[calc(3/16*1rem)] hover:bg-solid-grey-50
2788
- focus-visible:outline focus-visible:outline-4 focus-visible:outline-black focus-visible:-outline-offset-4 focus-visible:bg-yellow-300 focus-visible:ring-[calc(6/16*1rem)] focus-visible:ring-inset focus-visible:ring-yellow-300
2789
- ${className ?? ''}
2790
- */
2791
- }
2792
- },
2793
- variants: {
2794
- isCondensed: {
2795
- true: {
2796
- content: {
2797
- maxHeight: "calc((32 * 6.5 + 16) / 16 * 1rem)"
2798
- },
2799
- itemGroupLabel: {
2800
- py: 1.5,
2801
- pl: 1.5,
2802
- pr: 4,
2803
- columnGap: 1.5
2804
- },
2805
- item: {
2806
- py: 1.5,
2807
- pl: 1.5,
2808
- pr: 4,
2809
- columnGap: 1.5
2810
- },
2811
- triggerItem: {
2812
- py: 1.5,
2813
- pl: 1.5,
2814
- pr: 4,
2815
- columnGap: 1.5
2816
- }
2817
- }
2818
- }
2819
- },
2820
- defaultVariants: {
2821
- isCondensed: false
2822
- }
2823
- });
2824
-
2825
- // src/recipes/menu-list.ts
2826
- var import_dev31 = require("@pandacss/dev");
2827
- var menu_list_default = (0, import_dev31.defineSlotRecipe)({
2828
- className: "menu-list",
2829
- slots: menuListAnatomy.keys(),
2830
- base: {
2831
- root: {},
2832
- label: {
2833
- py: 3,
2834
- pl: 3,
2835
- pr: 6,
2836
- textStyle: "oln-17B-100",
2837
- textWrap: "nowrap",
2838
- display: "block",
2839
- mb: 2
2840
- },
2841
- content: {},
2842
- item: {
2843
- ...menu_item_default.base
2844
- },
2845
- itemGroup: {
2846
- my: 1
2847
- },
2848
- itemGroupLabel: {
2849
- ...menu_item_default.base,
2850
- position: "sticky",
2851
- top: 0,
2852
- bg: "white"
2853
- },
2854
- itemText: {},
2855
- itemIndicator: {
2856
- position: "absolute",
2857
- top: "50%",
2858
- right: 4,
2859
- transform: "translateY(-50%)"
2860
- }
2861
- },
2862
- variants: {
2863
- variant: {
2864
- standard: {
2865
- item: {
2866
- ...menu_item_default.variants?.variant?.standard
2867
- },
2868
- itemGroupLabel: {
2869
- ...menu_item_default.variants?.variant?.standard
2870
- }
2871
- },
2872
- boxed: {
2873
- item: {
2874
- ...menu_item_default.variants?.variant?.boxed
2875
- },
2876
- itemGroupLabel: {
2877
- ...menu_item_default.variants?.variant?.boxed
2878
- }
2879
- }
2880
- },
2881
- isCondensed: {
2882
- true: {}
2883
- }
2884
- },
2885
- defaultVariants: {
2886
- variant: "standard",
2887
- isCondensed: false
2888
- }
2889
- });
2890
-
2891
- // src/recipes/notification-banner.ts
2892
- var import_dev32 = require("@pandacss/dev");
2893
- var notification_banner_default = (0, import_dev32.defineSlotRecipe)({
2894
- className: "notification-banner",
2895
- description: "\u30B5\u30A4\u30C8/\u30B5\u30FC\u30D3\u30B9\u5168\u4F53\u306B\u95A2\u308F\u308B\u3001\u307E\u305F\u306F\u30DA\u30FC\u30B8\u3084\u8981\u7D20\u5358\u4F4D\u306B\u304A\u3051\u308B\u91CD\u8981\u5EA6\u306E\u9AD8\u3044\u60C5\u5831\u3092\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u64CD\u4F5C\u306B\u95A2\u308F\u3089\u305A\u3001\u30B5\u30A4\u30C8/\u30B5\u30FC\u30D3\u30B9\u5074\u304B\u3089\u30E6\u30FC\u30B6\u30FC\u3078\u63D0\u793A\u3059\u308B\u5834\u5408\u306B\u7528\u3044\u308B\u901A\u77E5\u30D0\u30CA\u30FC\u3067\u3059\u3002\u901A\u77E5\u306B\u5BFE\u3059\u308B\u30E6\u30FC\u30B6\u30FC\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u8981\u6C42\u3059\u308B\u3053\u3068\u304C\u53EF\u80FD\u3067\u3059\u3002\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3092\u901A\u77E5\u3057\u305F\u3044\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u5BFE\u5FDC\u304C\u5FC5\u8981\u306A\u60C5\u5831\u3092\u901A\u77E5\u3057\u3066\u30A2\u30AF\u30B7\u30E7\u30F3\u3055\u305B\u305F\u3044\u3001\u3068\u3044\u3063\u305F\u8981\u6C42\u306B\u5BFE\u5FDC\u3059\u308B\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002",
2896
- slots: notificationBannerAnatomy.keys(),
2897
- base: {
2898
- root: {
2899
- /**
2900
- * [--icon-size:calc(24/16*1rem)] desktop:[--icon-size:calc(36/16*1rem)]
2901
- */
2902
- "--icon-size": {
2903
- base: "calc(24 / 16 * 1rem)",
2904
- md: "calc(36 / 16 * 1rem)"
2905
- },
2906
- "--icon-scale": {
2907
- base: 24 / 36,
2908
- md: 1
2909
- },
2910
- /**
2911
- * p-4 desktop:p-6 border-current
2912
- */
2913
- p: { base: 4, md: 6 },
2914
- borderColor: "currentcolor",
2915
- /**
2916
- * grid grid-cols-[var(--icon-size)_1fr_minmax(0,auto)]
2917
- * gap-x-3 desktop:gap-x-6 gap-y-4
2918
- */
2919
- display: "grid",
2920
- gridTemplateColumns: "var(--icon-size) 1fr minmax(0, auto)",
2921
- columnGap: { base: 3, md: 6 },
2922
- rowGap: 4
2923
- },
2924
- header: {
2925
- /**
2926
- * grid grid-cols-subgrid col-start-2 -col-end-1 place-items-start
2927
- [&>*:last-child]:-col-end-1
2928
- */
2929
- display: "grid",
2930
- gridTemplateColumns: "subgrid",
2931
- gridColumnStart: 2,
2932
- gridColumnEnd: -1,
2933
- placeItems: "start",
2934
- "& > *:last-child": {
2935
- gridColumnEnd: -1
2936
- }
2937
- },
2938
- icon: {
2939
- /**
2940
- * mt-[calc(2/16*1rem)] desktop:mt-0
2941
- */
2942
- mt: { base: "calc(2 / 16 * 1rem)", md: 0 },
2943
- /**
2944
- * h-auto max-w-full
2945
- */
2946
- height: "auto",
2947
- maxWidth: "full",
2948
- /**
2949
- * icon element
2950
- * instead of icon component
2951
- */
2952
- _before: {
2953
- content: '""',
2954
- display: "block",
2955
- bg: "currentColor",
2956
- width: "36px",
2957
- height: "36px",
2958
- transformOrigin: "left center",
2959
- transform: "scale(var(--icon-scale))"
2960
- }
2961
- },
2962
- close: {
2963
- _before: {
2964
- content: '""',
2965
- display: "block",
2966
- mt: 0.5,
2967
- width: 6,
2968
- height: 6,
2969
- bg: "currentColor",
2970
- clipPath: "path('m6.4 18.6-1-1 5.5-5.6-5.6-5.6 1.1-1 5.6 5.5 5.6-5.6 1 1.1L13 12l5.6 5.6-1 1L12 13l-5.6 5.6Z')"
2971
- },
2972
- ...hamburger_menu_button_default.base,
2973
- display: "inline-flex",
2974
- gap: 1,
2975
- mr: -3,
2976
- color: "solid-gray.900"
2977
- },
2978
- heading: {
2979
- /**
2980
- * text-solid-gray-900 col-start-1 desktop:mt-0.5
2981
- * text-std-17B-170 desktop:text-std-20B-160
2982
- *
2983
- * @todo
2984
- * std-20B-160 doesn't exist and replace it to std-20B-150
2985
- */
2986
- textStyle: { base: "std-17B-170", md: "std-20B-150" },
2987
- color: "solid-gray.900",
2988
- gridColumnStart: 1,
2989
- mt: { base: "auto", md: 0.5 }
2990
- },
2991
- body: {
2992
- /**
2993
- * col-start-1 -col-end-1 desktop:col-start-2 text-std-16N-170 text-solid-gray-800
2994
- */
2995
- gridColumnStart: { base: 1, md: 2 },
2996
- gridColumnEnd: -1,
2997
- textStyle: "std-16N-170",
2998
- color: "solid-gray.800"
2999
- },
3000
- actions: {
3001
- /**
3002
- * margin-bottom: calc(-8 / 16 * 1rem);
3003
- * display: grid;
3004
- * gap: calc(8 / 16 * 1rem);
3005
- * grid-column: 1 / 4;
3006
- * @media (min-width: 48rem) {
3007
- * .dads-notification-banner__actions {
3008
- * grid-auto-flow: column;
3009
- * gap: calc(16 / 16 * 1rem);
3010
- * grid-column: 2 / 4;
3011
- * justify-content: end;
3012
- * }
3013
- * }
3014
- */
3015
- mb: "calc(-8 / 16 * 1rem)",
3016
- display: "grid",
3017
- gap: { base: "calc(8 / 16 * 1rem)", md: "calc(16 / 16 * 1rem)" },
3018
- gridColumn: { base: "1 / 4", md: "2 / 4" },
3019
- gridAutoFlow: { md: "column" },
3020
- justifyContent: { md: "end" }
3021
- }
3022
- },
3023
- variants: {
3024
- type: {
3025
- success: {
3026
- root: {
3027
- /**
3028
- * text-success-2 [--color-chip-color:currentColor]
3029
- */
3030
- color: "success.2",
3031
- "--color-chip-color": "currentColor"
3032
- },
3033
- icon: {
3034
- _before: {
3035
- clipPath: "path('M18 0C8.064 0 0 8.064 0 18C0 27.936 8.064 36 18 36C27.936 36 36 27.936 36 18C36 8.064 27.936 0 18 0Z M14.4 27L5.4 18L7.938 15.462L14.4 21.906L28.062 8.244L30.6 10.8L14.4 27Z')"
3036
- }
3037
- },
3038
- actions: {
3039
- "& button": {
3040
- colorPalette: "green"
3041
- }
3042
- }
3043
- },
3044
- error: {
3045
- root: {
3046
- /**
3047
- * text-error-1 [--color-chip-color:currentColor]
3048
- */
3049
- color: "error.1",
3050
- "--color-chip-color": "currentColor"
3051
- },
3052
- icon: {
3053
- _before: {
3054
- clipPath: "path('M10.82 35.3.74 25.22v-14.4L10.82.74h14.4L35.3 10.82v14.4L25.22 35.3h-14.4Zm7.2-14.592 5.472 5.472 2.688-2.688-5.472-5.472 5.472-5.472-2.688-2.688-5.472 5.472-5.472-5.472-2.688 2.688 5.472 5.472-5.472 5.472 2.688 2.688 5.472-5.472Z')"
3055
- }
3056
- },
3057
- actions: {
3058
- "& button": {
3059
- colorPalette: "red"
3060
- }
3061
- }
3062
- },
3063
- warning: {
3064
- root: {
3065
- /**
3066
- * text-warning-yellow-2 [--color-chip-color:theme(colors.yellow.400)]
3067
- */
3068
- color: "warning.yellow.2",
3069
- "--color-chip-color": "{colors.yellow.400}"
3070
- },
3071
- icon: {
3072
- _before: {
3073
- clipPath: "path('M0 34.0909H36L18 3L0 34.0909ZM19.6364 29.1818H16.3636V25.9091H19.6364V29.1818ZM19.6364 22.6364H16.3636V16.0909H19.6364V22.6364Z')"
3074
- }
3075
- },
3076
- actions: {
3077
- "& button": {
3078
- colorPalette: "yellow"
3079
- }
3080
- }
3081
- },
3082
- info1: {
3083
- root: {
3084
- /**
3085
- * text-blue-900 [--color-chip-color:currentColor]
3086
- */
3087
- color: "blue.900",
3088
- "--color-chip-color": "currentColor"
3089
- },
3090
- icon: {
3091
- _before: {
3092
- clipPath: "path('M18 0C8.064 0 0 8.064 0 18C0 27.936 8.064 36 18 36C27.936 36 36 27.936 36 18C36 8.064 27.936 0 18 0ZM19.8 27H16.2V16.2H19.8V27ZM19.8 12.6H16.2V9H19.8V12.6Z')"
3093
- }
3094
- },
3095
- actions: {
3096
- "& button": {
3097
- colorPalette: "blue"
3098
- }
3099
- }
3100
- },
3101
- info2: {
3102
- root: {
3103
- /**
3104
- * text-solid-gray-536 [--color-chip-color:currentColor]
3105
- */
3106
- color: "solid-gray.536",
3107
- "--color-chip-color": "currentColor"
3108
- },
3109
- icon: {
3110
- _before: {
3111
- clipPath: "path('M18 0C8.064 0 0 8.064 0 18C0 27.936 8.064 36 18 36C27.936 36 36 27.936 36 18C36 8.064 27.936 0 18 0ZM19.8 27H16.2V16.2H19.8V27ZM19.8 12.6H16.2V9H19.8V12.6Z')"
3112
- }
3113
- },
3114
- actions: {
3115
- "& button": {
3116
- colorPalette: "solid-gray"
3117
- }
3118
- }
3119
- }
3120
- },
3121
- bannerStyle: {
3122
- standard: {
3123
- root: {
3124
- /**
3125
- * border-[3px] rounded-12
3126
- */
3127
- borderWidth: "3px",
3128
- rounded: 12
3129
- }
3130
- },
3131
- "color-chip": {
3132
- root: {
3133
- /**
3134
- * border-2 !pl-6 desktop:!pl-10
3135
- * shadow-[inset_8px_0_0_0_var(--color-chip-color)]
3136
- * desktop:shadow-[inset_16px_0_0_0_var(--color-chip-color)]
3137
- */
3138
- borderWidth: "2px",
3139
- pl: { base: 6, md: 10 },
3140
- shadow: "inset 16px 0 0 0 var(--color-chip-color)"
3141
- }
3142
- }
3143
- }
3144
- },
3145
- defaultVariants: {
3146
- type: "info1",
3147
- bannerStyle: "standard"
3148
- }
3149
- });
3150
-
3151
- // src/recipes/ordered-list.ts
3152
- var import_dev33 = require("@pandacss/dev");
3153
- var ordered_list_default = (0, import_dev33.defineRecipe)({
3154
- className: "ordered-list",
3155
- base: {
3156
- /**
3157
- * pl-8 list-[revert]
3158
- */
3159
- pl: 8,
3160
- listStyle: "revert",
3161
- /**
3162
- * [&_:where(ol,ul)]:mt-1 [&_:where(ol,ul)]:-mb-1
3163
- */
3164
- "&:where(ol,ul)": {
3165
- mt: 1,
3166
- mb: -1
3167
- }
3168
- }
3169
- });
3170
-
3171
- // src/recipes/progress.ts
3172
- var import_dev34 = require("@pandacss/dev");
3173
- var import_progress = require("@zag-js/progress");
3174
- var progress_default = (0, import_dev34.defineSlotRecipe)({
3175
- className: "progress",
3176
- description: "\u30D7\u30ED\u30B0\u30EC\u30B9\u30A4\u30F3\u30B8\u30B1\u30FC\u30BF\u30FC\u306F\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u306B\u5BFE\u3057\u3066\u51E6\u7406\u9032\u884C\u4E2D\u3067\u3042\u308B\u3053\u3068\u3092\u901A\u77E5\u3057\u307E\u3059\u3002\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u5FDC\u7B54\u3092\u5F85\u3063\u3066\u3044\u308B\u3053\u3068\u3092\u30E6\u30FC\u30B6\u30FC\u306B\u4F1D\u3048\u305F\u3044\u3068\u3044\u3063\u305F\u8981\u6C42\u306B\u5BFE\u5FDC\u3057\u307E\u3059\u3002",
3177
- slots: import_progress.anatomy.keys(),
3178
- base: {
3179
- root: {
3180
- display: "flex",
3181
- alignItems: "center",
3182
- colorPalette: "keyColor"
3183
- },
3184
- track: {
3185
- height: "4px",
3186
- bg: "colorPalette.500",
3187
- rounded: "full",
3188
- overflow: "hidden",
3189
- position: "relative"
3190
- },
3191
- range: {
3192
- bg: "colorPalette.1200",
3193
- height: "full",
3194
- outlineStyle: "solid",
3195
- outlineWidth: "1px",
3196
- outlineColor: "white",
3197
- rounded: "full",
3198
- transition: "width 0.2s ease-in-out",
3199
- "--translate-x": "-100%",
3200
- _indeterminate: {
3201
- "--animate-from-x": "-40%",
3202
- "--animate-to-x": "100%",
3203
- position: "absolute",
3204
- willChange: "left",
3205
- minWidth: "50%",
3206
- animation: "position 1s ease infinite normal none running",
3207
- backgroundImage: `linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)`
3208
- }
3209
- },
3210
- circle: {
3211
- _indeterminate: {
3212
- animation: "spin 2s linear infinite"
3213
- }
3214
- },
3215
- circleTrack: {
3216
- stroke: "colorPalette.500"
3217
- },
3218
- circleRange: {
3219
- stroke: "colorPalette.1200",
3220
- strokeLinecap: "round",
3221
- transitionProperty: "stroke-dashoffset, stroke-dasharray",
3222
- transitionDuration: "0.6s",
3223
- _indeterminate: {
3224
- animation: "circular-progress 1.5s linear infinite"
3225
- }
3226
- },
3227
- label: {
3228
- textStyle: "std-16N-170"
3229
- }
3230
- },
3231
- variants: {
3232
- layout: {
3233
- vertical: {
3234
- root: {
3235
- flexDirection: "column",
3236
- gap: 4,
3237
- "--size": "48px",
3238
- "--thickness": "4px"
3239
- },
3240
- track: {
3241
- width: "240px"
3242
- }
3243
- },
3244
- horizontal: {
3245
- root: {
3246
- flexDirection: "row",
3247
- gap: 2,
3248
- "--size": "24px",
3249
- "--thickness": "2px"
3250
- },
3251
- track: {
3252
- width: "80px"
3253
- }
3254
- }
3255
- }
3256
- },
3257
- defaultVariants: {
3258
- layout: "vertical"
3259
- }
3260
- });
3261
-
3262
- // src/recipes/radio-group.ts
3263
- var import_dev35 = require("@pandacss/dev");
3264
- var import_radio_group = require("@zag-js/radio-group");
3265
- var radio_group_default = (0, import_dev35.defineSlotRecipe)({
3266
- className: "radio-group",
3267
- slots: import_radio_group.anatomy.keys(),
3268
- base: {
3269
- root: {
3270
- display: "flex",
3271
- colorPalette: "keyColor",
3272
- _vertical: {
3273
- flexDirection: "column",
3274
- gap: 0
3275
- },
3276
- _horizonal: {
3277
- flexDirection: "row",
3278
- gap: 4
3279
- }
3280
- },
3281
- label: {
3282
- ...legend_default.base
3283
- },
3284
- item: {
3285
- /**
3286
- * flex w-fit items-start py-2
3287
- */
3288
- display: "flex",
3289
- width: "fit-content",
3290
- alignItems: "start",
3291
- py: 2
3292
- },
3293
- itemControl: {
3294
- /**
3295
- * flex items-center justify-center shrink-0 rounded-full
3296
- * has-[input:hover:not(:focus):not([aria-disabled="true"])]:bg-solid-gray-420
3297
- */
3298
- /*
3299
- display: "flex",
3300
- alignItems: "center",
3301
- justifyContent: "center",
3302
- flexShrink: 0,
3303
- rounded: "full",
3304
- */
3305
- /**
3306
- * appearance-none size-[calc(5/6*100%)] rounded-full
3307
- */
3308
- appearance: "none",
3309
- rounded: "full",
3310
- width: "calc(var(--radio-size) * 5 / 6)",
3311
- height: "calc(var(--radio-size) * 5 / 6)",
3312
- m: "calc(var(--radio-size) / 12)",
3313
- flexShrink: 0,
3314
- /**
3315
- * bg-white aria-disabled:!bg-solid-gray-50
3316
- */
3317
- bg: { base: "white", _disabled: "solid-gray.50" },
3318
- borderColor: {
3319
- /**
3320
- * border-solid-gray-600
3321
- * hover:border-black
3322
- * checked:border-blue-900
3323
- * checked:hover:border-blue-1100
3324
- * forced-colors:!border-[ButtonText] forced-colors:checked:!border-[Highlight]
3325
- */
3326
- base: "solid-gray.600",
3327
- _hover: "black",
3328
- _highContrast: { base: "ButtonText" },
3329
- _checked: {
3330
- base: "colorPalette.primary",
3331
- _hover: "colorPalette.primary.200",
3332
- _disabled: { base: "solid-gray.300", _highContrast: "GrayText" },
3333
- _highContrast: "Highlight"
3334
- },
3335
- /**
3336
- * data-[error]:border-error-1 data-[error]:hover:border-red-1000
3337
- */
3338
- _invalid: {
3339
- base: "error.1",
3340
- _hover: "red.1000",
3341
- _disabled: "solid-gray.300"
3342
- },
3343
- /**
3344
- * aria-disabled:!border-solid-gray-300
3345
- * forced-colors:aria-disabled:!border-[GrayText]
3346
- */
3347
- _disabled: { base: "solid-gray.300", _highContrast: "GrayText" }
3348
- },
3349
- /**
3350
- * outline on hover
3351
- * has-[input:hover:not(:focus):not([aria-disabled="true"])]:bg-solid-gray-420
3352
- */
3353
- '&:is(:hover, [data-hover]):not([aria-disabled="true"])': {
3354
- outlineStyle: "solid",
3355
- outlineWidth: "calc(var(--radio-size) / 12)",
3356
- outlineColor: "solid-gray.420",
3357
- _focus: {
3358
- outlineStyle: "solid",
3359
- outlineWidth: "4px",
3360
- outlineColor: "black",
3361
- outlineOffset: "calc(2 / 16 * 1rem)",
3362
- focusBox: "calc(2 / 16 * 1rem)"
3363
- }
3364
- },
3365
- /**
3366
- * focus:outline focus:outline-4 focus:outline-black
3367
- * focus:outline-offset-[calc(2/16*1rem)]
3368
- * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
3369
- */
3370
- _focus: {
3371
- outlineStyle: "solid",
3372
- outlineWidth: "4px",
3373
- outlineColor: "black",
3374
- outlineOffset: "calc(2 / 16 * 1rem)",
3375
- focusBox: "calc(2 / 16 * 1rem)"
3376
- },
3377
- _before: {
3378
- /**
3379
- * before:hidden
3380
- * before:size-full
3381
- * before:[clip-path:circle(calc(5/16*100%))]
3382
- * before:bg-white
3383
- */
3384
- content: '""',
3385
- display: "none",
3386
- width: "full",
3387
- height: "full",
3388
- clipPath: "circle(calc(5 / 16 * 100%))",
3389
- bg: "white"
3390
- },
3391
- _checked: {
3392
- /**
3393
- * checked:before:block
3394
- * checked:before:bg-blue-900 checked:hover:before:bg-blue-1100
3395
- * data-[error]:checked:before:bg-error-1
3396
- * data-[error]:checked:hover:before:bg-red-1000
3397
- * aria-disabled:checked:before:!bg-solid-gray-300
3398
- * forced-colors:checked:before:!bg-[Highlight]
3399
- * forced-colors:aria-disabled:checked:before:!bg-[GrayText]
3400
- */
3401
- _before: {
3402
- display: "block",
3403
- bg: {
3404
- base: "colorPalette.primary",
3405
- _hover: "colorPalette.primary.200",
3406
- _highContrast: "Highlight"
3407
- }
3408
- },
3409
- _invalid: {
3410
- _before: {
3411
- bg: {
3412
- base: "error.1",
3413
- _hover: "red.1000"
3414
- }
3415
- }
3416
- },
3417
- _disabled: {
3418
- _before: {
3419
- bg: {
3420
- base: "solid-gray.300",
3421
- _highContrast: "GrayText"
3422
- }
3423
- },
3424
- _invalid: {
3425
- _before: {
3426
- bg: {
3427
- base: "solid-gray.300"
3428
- }
3429
- }
3430
- }
3431
- }
3432
- }
3433
- },
3434
- itemText: {
3435
- /**
3436
- * text-solid-gray-800
3437
- */
3438
- color: "solid-gray.800"
3439
- }
3440
- },
3441
- variants: {
3442
- size: {
3443
- sm: {
3444
- label: {
3445
- ...legend_default.variants?.size?.sm
3446
- },
3447
- item: {
3448
- /**
3449
- * data-[size=sm]:gap-1
3450
- */
3451
- gap: 1
3452
- },
3453
- itemControl: {
3454
- /**
3455
- * data-[size=sm]:size-6
3456
- */
3457
- "--radio-size": "{spacing.6}",
3458
- /**
3459
- * data-[size=sm]:border-[calc(2/16*1rem)]
3460
- */
3461
- borderWidth: "calc(2 / 16 * 1rem)"
3462
- },
3463
- itemText: {
3464
- /**
3465
- * data-[size=sm]:pt-px
3466
- * data-[size=sm]:text-dns-16N-130
3467
- */
3468
- pt: "1px",
3469
- textStyle: "dns-16N-130"
3470
- }
3471
- },
3472
- md: {
3473
- label: {
3474
- ...legend_default.variants?.size?.md
3475
- },
3476
- item: {
3477
- /**
3478
- * data-[size=md]:gap-2
3479
- */
3480
- gap: 2
3481
- },
3482
- itemControl: {
3483
- /**
3484
- * data-[size=md]:size-8
3485
- */
3486
- "--radio-size": "{spacing.8}",
3487
- /**
3488
- * data-[size=md]:border-[calc(2/16*1rem)]
3489
- */
3490
- borderWidth: "calc(2 / 16 * 1rem)"
3491
- },
3492
- itemText: {
3493
- /**
3494
- * data-[size=md]:pt-1
3495
- * data-[size=md]:text-dns-16N-130
3496
- */
3497
- pt: 1,
3498
- textStyle: "dns-16N-130"
3499
- }
3500
- },
3501
- lg: {
3502
- label: {
3503
- ...legend_default.variants?.size?.lg
3504
- },
3505
- item: {
3506
- /**
3507
- * data-[size=lg]:gap-3
3508
- */
3509
- gap: 3
3510
- },
3511
- itemControl: {
3512
- /**
3513
- * data-[size=lg]:size-11
3514
- */
3515
- "--radio-size": "{spacing.11}",
3516
- /**
3517
- * data-[size=lg]:border-[calc(3/16*1rem)]
3518
- */
3519
- borderWidth: "calc(3 / 16 * 1rem)"
3520
- },
3521
- itemText: {
3522
- /**
3523
- * data-[size=lg]:pt-2.5
3524
- * data-[size=lg]:text-dns-17N-130
3525
- */
3526
- pt: 2.5,
3527
- textStyle: "dns-17N-130"
3528
- }
3529
- }
3530
- }
3531
- },
3532
- defaultVariants: {
3533
- size: "sm"
3534
- }
3535
- });
3536
-
3537
- // src/recipes/resource-list.ts
3538
- var import_dev36 = require("@pandacss/dev");
3539
- var resource_list_default = (0, import_dev36.defineSlotRecipe)({
3540
- className: "resource-list",
3541
- slots: resourceListAnatomy.keys(),
3542
- base: {
3543
- root: {
3544
- display: "flex",
3545
- borderColor: "solid-gray.420",
3546
- overflow: "hidden",
3547
- colorPalette: "keyColor",
3548
- bg: {
3549
- "&:has(input:checked)": "colorPalette.bg",
3550
- _selected: "colorPalette.bg"
3551
- }
3552
- },
3553
- main: {
3554
- display: "flex",
3555
- flexGrow: 1,
3556
- flexDirection: "row",
3557
- alignItems: "center",
3558
- justifyContent: "start",
3559
- gap: { base: 4, md: 6 },
3560
- color: "solid-gray.800",
3561
- textStyle: "dns-16N-130",
3562
- /**
3563
- * p-4 md:px-6 md:py-4
3564
- */
3565
- py: 4,
3566
- px: { base: 4, md: 6 },
3567
- bg: { base: "transparent", _hover: "solid-gray.50" },
3568
- _focusVisible: {
3569
- outlineStyle: "solid",
3570
- outlineWidth: "4px",
3571
- outlineColor: "black",
3572
- outlineOffset: "calc(2 / 16 * 1rem)",
3573
- focusBox: "calc(2 / 16 * 1rem)"
3574
- }
3575
- },
3576
- action: {
3577
- p: 4,
3578
- display: "flex",
3579
- alignItems: "center",
3580
- justifyContent: "center"
3581
- },
3582
- content: {
3583
- height: "full",
3584
- flexGrow: 1,
3585
- display: "flex",
3586
- flexDirection: "column"
3587
- },
3588
- title: {
3589
- /**
3590
- * mb-4 text-std-20B-150 font-bold group-hover:text-blue-1000 group-hover:decoration-[calc(3/16*1rem)] md:mb-4
3591
- */
3592
- textStyle: "std-20B-150",
3593
- width: "fit-content"
3594
- }
3595
- },
3596
- variants: {
3597
- variant: {
3598
- list: {
3599
- root: {
3600
- borderBottomWidth: "1px"
3601
- }
3602
- },
3603
- frame: {
3604
- root: {
3605
- rounded: 16,
3606
- borderWidth: "1px"
3607
- }
3608
- }
3609
- },
3610
- asLink: {
3611
- true: {
3612
- main: {
3613
- position: "relative"
3614
- },
3615
- title: {
3616
- _before: {
3617
- content: '""',
3618
- position: "absolute",
3619
- top: 0,
3620
- left: 0,
3621
- width: "full",
3622
- height: "full",
3623
- zIndex: 0,
3624
- cursor: "inherit"
3625
- }
3626
- }
3627
- }
3628
- }
3629
- },
3630
- defaultVariants: {
3631
- variant: "list",
3632
- asLink: false
3633
- }
3634
- });
3635
-
3636
- // src/recipes/select.ts
3637
- var import_dev37 = require("@pandacss/dev");
3638
- var import_select = require("@zag-js/select");
3639
- var select_default = (0, import_dev37.defineSlotRecipe)({
3640
- className: "select",
3641
- description: "\u30BB\u30EC\u30AF\u30C8\u30DC\u30C3\u30AF\u30B9\u306F\u3001\u8907\u6570\u306E\u9078\u629E\u80A2\u3092\u63D0\u4F9B\u3059\u308B\u30D5\u30A9\u30FC\u30E0\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3067\u3059\u3002",
3642
- slots: import_select.anatomy.keys(),
3643
- base: {
3644
- root: {
3645
- display: "flex",
3646
- flexDirection: "column",
3647
- gap: 1.5
3648
- },
3649
- label: {
3650
- ...label_default.base
3651
- },
3652
- control: {
3653
- /**
3654
- * relative min-w-80 max-w-full
3655
- */
3656
- position: "relative",
3657
- minWidth: "80px",
3658
- maxWidth: "full"
3659
- },
3660
- trigger: {
3661
- ...select_box_default.base,
3662
- /**
3663
- * adapt to clearTrigger
3664
- */
3665
- pr: 20
3666
- },
3667
- indicator: {
3668
- /**
3669
- * pointer-events-none absolute right-4 top-1/2 -translate-y-1/2
3670
- */
3671
- pointerEvents: "none",
3672
- position: "absolute",
3673
- top: "50%",
3674
- transform: "translateY(-50%)",
3675
- right: 4,
3676
- /**
3677
- * ${props['aria-disabled'] ? 'text-solid-gray-420 forced-colors:text-[GrayText]' : 'text-solid-gray-900 forced-colors:text-[CanvasText]'}
3678
- */
3679
- color: {
3680
- base: { base: "solid-gray.900", _highContrast: "CanvasText" },
3681
- _disabled: { base: "solid-gray.420", _highContrast: "GrayText" }
3682
- }
3683
- },
3684
- clearTrigger: {
3685
- position: "absolute",
3686
- top: "50%",
3687
- right: 12,
3688
- transform: "translateY(-50%)"
3689
- },
3690
- content: {
3691
- ...menu_default.base?.content
3692
- },
3693
- itemGroupLabel: {
3694
- textStyle: "oln-16N-1",
3695
- fontWeight: "bold",
3696
- py: 3,
3697
- pl: 3,
3698
- pr: 6
3699
- },
3700
- item: {
3701
- ...menu_default.base?.item
3702
- },
3703
- itemIndicator: {
3704
- pointerEvents: "none",
3705
- position: "absolute",
3706
- right: 4,
3707
- top: "50%",
3708
- transform: "translateY(-50%)"
3709
- }
3710
- },
3711
- variants: {
3712
- size: {
3713
- lg: {
3714
- trigger: {
3715
- ...select_box_default.variants?.size?.lg
3716
- },
3717
- label: { ...label_default.variants?.size?.lg }
3718
- },
3719
- md: {
3720
- trigger: {
3721
- ...select_box_default.variants?.size?.md
3722
- },
3723
- label: { ...label_default.variants?.size?.md }
3724
- },
3725
- sm: {
3726
- trigger: {
3727
- ...select_box_default.variants?.size?.sm
3728
- },
3729
- label: { ...label_default.variants?.size?.sm }
3730
- }
3731
- }
3732
- },
3733
- defaultVariants: {
3734
- size: "lg"
3735
- }
3736
- });
3737
-
3738
- // src/recipes/step-navigation.ts
3739
- var import_dev38 = require("@pandacss/dev");
3740
- var import_steps = require("@zag-js/steps");
3741
- var step_navigation_default = (0, import_dev38.defineSlotRecipe)({
3742
- className: "step-navigation",
3743
- slots: import_steps.anatomy.extendWith("title", "description").keys(),
3744
- base: {
3745
- root: {
3746
- /**
3747
- * color: var(--color-neutral-solid-gray-800);
3748
- * font-weight: normal;
3749
- * font-size: calc(16 / 16 * 1rem);
3750
- * font-family: var(--font-family-sans);
3751
- * line-height: 1.7;
3752
- * letter-spacing: 0.02em;
3753
- * overflow-wrap: anywhere;
3754
- */
3755
- textStyle: "std-16N-170",
3756
- overflowWrap: "anywhere",
3757
- colorPalette: "keyColor"
3758
- // "--_step-width": "320",
3759
- // "--_step-min-width": "160",
3760
- },
3761
- list: {
3762
- /**
3763
- * margin: 0;
3764
- * padding: 0;
3765
- * list-style-type: none;
3766
- */
3767
- m: 0,
3768
- p: 0,
3769
- display: "flex",
3770
- _horizontal: {
3771
- flexDirection: "row"
3772
- },
3773
- _vertical: {
3774
- flexDirection: "column"
3775
- }
3776
- },
3777
- item: {
3778
- /**
3779
- * position: relative;
3780
- * box-sizing: border-box;
3781
- */
3782
- position: "relative",
3783
- boxSizing: "border-box",
3784
- _last: {
3785
- "& [data-part=separator]": {
3786
- display: "none"
3787
- }
3788
- },
3789
- _horizontal: {
3790
- /**
3791
- * width: calc(var(--_step-width, 320) / 16 * 1rem);
3792
- * min-width: calc(var(--_step-min-width, 160) / 16 * 1rem);
3793
- * padding: 0 calc(16 / 16 * 1rem);
3794
- */
3795
- width: "calc(var(--_step-width, 320) / 16 * 1rem)",
3796
- minWidth: "calc(var(--_step-min-width, 160) / 16 * 1rem)",
3797
- px: "calc(16 / 16 * 1rem)"
3798
- },
3799
- _vertical: {
3800
- /**
3801
- * flex: 1;
3802
- * padding-bottom: calc(24 / 16 * 1rem);
3803
- */
3804
- flex: 1,
3805
- pb: "calc(24 / 16 * 1rem)"
3806
- }
3807
- },
3808
- trigger: {
3809
- /**
3810
- * display: block;
3811
- * border: 0;
3812
- * background: none;
3813
- * padding: 0;
3814
- * color: inherit;
3815
- * font: inherit;
3816
- * text-wrap: pretty;
3817
- */
3818
- display: "block",
3819
- borderWidth: 0,
3820
- bg: "none",
3821
- p: 0,
3822
- color: "inherit",
3823
- font: "inherit",
3824
- textWrap: "pretty",
3825
- cursor: "pointer",
3826
- _horizontal: {
3827
- /**
3828
- * width: 100%;
3829
- * text-align: center;
3830
- */
3831
- width: "100%",
3832
- textAlign: "center"
3833
- },
3834
- _vertical: {
3835
- /**
3836
- * position: relative;
3837
- * display: flex;
3838
- * align-items: baseline;
3839
- * column-gap: calc(16 / 16 * 1rem);
3840
- * text-align: left;
3841
- */
3842
- position: "relative",
3843
- display: "flex",
3844
- alignItems: "baseline",
3845
- columnGap: "calc(16 / 16 * 1rem)",
3846
- textAlign: "left"
3847
- }
3848
- },
3849
- indicator: {
3850
- /**
3851
- * position: relative;
3852
- * display: grid;
3853
- * place-content: center;
3854
- * margin: calc(4 / 16 * 1rem);
3855
- * box-sizing: border-box;
3856
- * width: fit-content;
3857
- * height: var(--_number-size);
3858
- * min-width: var(--_number-size);
3859
- * border: 2px solid;
3860
- * border-radius: 50%;
3861
- * background-color: var(--color-neutral-white);
3862
- * padding: 0 calc(2 / 16 * 1rem) calc(2 / 16 * 1rem);
3863
- * font-weight: bold;
3864
- * font-size: calc(20 / 16 * 1rem);
3865
- * line-height: 1.5;
3866
- * letter-spacing: 0.02em;
3867
- * text-decoration: inherit;
3868
- * text-decoration-thickness: inherit;
3869
- */
3870
- position: "relative",
3871
- display: "grid",
3872
- placeContent: "center",
3873
- m: "calc(4 / 16 * 1rem)",
3874
- boxSizing: "border-box",
3875
- width: "fit-content",
3876
- height: "var(--_number-size)",
3877
- minWidth: "var(--_number-size)",
3878
- color: "colorPalette.primary",
3879
- borderWidth: "2px",
3880
- borderRadius: "full",
3881
- borderColor: "colorPalette.primary",
3882
- bg: "white",
3883
- py: 0,
3884
- px: "calc(2 / 16 * 1rem)",
3885
- textStyle: "std-20B-150",
3886
- textDecoration: "inherit",
3887
- textDecorationThickness: "inherit",
3888
- _after: {
3889
- content: '""'
3890
- },
3891
- _current: {
3892
- /**
3893
- * background-color: var(--color-neutral-solid-gray-800);
3894
- * color: var(--color-neutral-white);
3895
- * border-color: var(--color-neutral-solid-gray-800);
3896
- */
3897
- bg: "colorPalette.primary",
3898
- color: "white",
3899
- borderColor: "colorPalette.primary",
3900
- /**
3901
- * outline: var(--_outline-width) solid var(--color-neutral-solid-gray-800);
3902
- * outline-offset: calc(2 / 16 * 1rem);
3903
- * box-shadow: 0 0 0 calc(2 / 16 * 1rem) var(--color-neutral-white);
3904
- */
3905
- outlineWidth: "var(--_outline-width)",
3906
- outlineStyle: "solid",
3907
- outlineColor: "colorPalette.primary",
3908
- outlineOffset: "calc(2 / 16 * 1rem)",
3909
- boxShadow: "0 0 0 calc(2 / 16 * 1rem) white"
3910
- },
3911
- _complete: {
3912
- bg: "colorPalette.bg",
3913
- _after: {
3914
- /**
3915
- * position: absolute;
3916
- * top: calc(-10 / 16 * 1rem);
3917
- * left: calc(50% + calc(6 / 16 * 1rem));
3918
- * border-radius: 50%;
3919
- * background-color: var(--color-neutral-white);
3920
- */
3921
- position: "absolute",
3922
- top: "calc(-10 / 16 * 1rem)",
3923
- left: "calc(50% + calc(6 / 16 * 1rem))",
3924
- borderRadius: "full",
3925
- bg: "colorPalette.primary",
3926
- width: "36px",
3927
- height: "36px",
3928
- clipPath: "path('M18 0C8.064 0 0 8.064 0 18C0 27.936 8.064 36 18 36C27.936 36 36 27.936 36 18C36 8.064 27.936 0 18 0Z M14.4 27L5.4 18L7.938 15.462L14.4 21.906L28.062 8.244L30.6 10.8L14.4 27Z')"
3929
- }
3930
- },
3931
- "[data-orientation=horizontal] > &": {
3932
- /**
3933
- * margin-right: auto;
3934
- * margin-left: auto;
3935
- */
3936
- mr: "auto",
3937
- ml: "auto"
3938
- },
3939
- "[data-orientation=vertical] > &": {
3940
- /**
3941
- * flex-shrink: 0;
3942
- */
3943
- flexShrink: 0,
3944
- mx: "calc(4 / 16 * 1rem)"
3945
- }
3946
- },
3947
- title: {
3948
- /**
3949
- * display: block;
3950
- * font-weight: bold;
3951
- * font-size: calc(18 / 16 * 1rem);
3952
- * line-height: 1.6;
3953
- * letter-spacing: 0.02em;
3954
- * text-decoration-thickness: inherit;
3955
- */
3956
- display: "block",
3957
- // fontWeight: "bold",
3958
- // fontSize: "calc(18 / 16 * 1rem)",
3959
- // lineHeight: 1.6,
3960
- // letterSpacing: "0.02em",
3961
- textStyle: "std-18B-160",
3962
- textDecorationThickness: "inherit",
3963
- "[data-orientation=horizontal] &": {
3964
- /**
3965
- * margin-top: var(--_title-margin);
3966
- */
3967
- mt: "var(--_title-margin)"
3968
- },
3969
- "[data-orientation=vertical] &": {
3970
- /**
3971
- * padding: calc(var(--_number-size) / 2 + var(--_number-margin) - 0.875rem) 0;
3972
- */
3973
- pt: "calc(var(--_number-size) / 2 + var(--_number-margin) - 0.875rem)",
3974
- pb: 0
3975
- }
3976
- },
3977
- description: {
3978
- /**
3979
- * margin: var(--_description-margin) 0 0;
3980
- */
3981
- mt: "var(--_description-margin)",
3982
- "[data-orientation=horizontal] &": {
3983
- /**
3984
- * text-align: center;
3985
- */
3986
- textAlign: "center"
3987
- },
3988
- "[data-orientation=vertical] &": {
3989
- /**
3990
- * margin-top: calc(
3991
- * var(--_description-margin) -
3992
- * (var(--_number-size) / 2 + var(--_number-margin) - 0.875rem)
3993
- * );
3994
- * padding-left: calc(
3995
- * var(--_number-size) +
3996
- * var(--_number-margin) +
3997
- * var(--_number-margin) +
3998
- * calc(16 / 16 * 1rem)
3999
- * );
4000
- */
4001
- mt: "calc(var(--_description-margin) - (var(--_number-size) / 2 + var(--_number-margin) - 0.875rem))",
4002
- pl: "calc(var(--_number-size) + var(--_number-margin) + var(--_number-margin) + calc(16 / 16 * 1rem))"
4003
- }
4004
- },
4005
- separator: {
4006
- /**
4007
- * position: absolute;
4008
- * z-index: -1;
4009
- * content: "";
4010
- */
4011
- position: "absolute",
4012
- zIndex: -1,
4013
- content: '""',
4014
- borderColor: "colorPalette.primary",
4015
- _horizontal: {
4016
- /**
4017
- * top: calc(var(--_number-size) / 2 + var(--_number-margin));
4018
- * left: 50%;
4019
- * width: 50%;
4020
- * border-bottom: 1px solid;
4021
- */
4022
- top: "calc(var(--_number-size) / 2 + var(--_number-margin))",
4023
- left: "50%",
4024
- width: "100%",
4025
- borderBottomWidth: "1px"
4026
- },
4027
- _vertical: {
4028
- /**
4029
- * left: calc(var(--_number-size) / 2 + var(--_number-margin));
4030
- * bottom: 0;
4031
- * height: calc(100% - calc(32 / 16 * 1rem));
4032
- * border-right: 1px solid;
4033
- */
4034
- left: "calc(var(--_number-size) / 2 + var(--_number-margin))",
4035
- top: "calc(50% - calc((32 / 16 * 1rem) / 2))",
4036
- height: "100%",
4037
- borderRightWidth: "1px"
4038
- }
4039
- }
4040
- },
4041
- variants: {
4042
- size: {
4043
- md: {
4044
- root: {
4045
- root: {
4046
- /**
4047
- * --_number-size: calc(44 / 16 * 1rem);
4048
- * --_number-margin: calc(4 / 16 * 1rem);
4049
- * --_outline-width: calc(2 / 16 * 1rem);
4050
- * --_title-margin: calc(24 / 16 * 1rem);
4051
- * --_description-margin: calc(8 / 16 * 1rem);
4052
- */
4053
- "--_number-size": "calc(44 / 16 * 1rem)",
4054
- "--_number-margin": "calc(4 / 16 * 1rem)",
4055
- "--_outline-width": "calc(2 / 16 * 1rem)",
4056
- "--_title-margin": "calc(24 / 16 * 1rem)",
4057
- "--_description-margin": "calc(8 / 16 * 1rem)"
4058
- }
4059
- },
4060
- indicator: {
4061
- _after: {
4062
- transform: "scale(0.5)"
4063
- }
4064
- }
4065
- },
4066
- sm: {
4067
- root: {
4068
- /**
4069
- * --_number-size: calc(32 / 16 * 1rem);
4070
- * --_number-margin: calc(3 / 16 * 1rem);
4071
- * --_outline-width: calc(1 / 16 * 1rem);
4072
- * --_title-margin: calc(16 / 16 * 1rem);
4073
- * --_description-margin: calc(4 / 16 * 1rem);
4074
- */
4075
- "--_number-size": "calc(32 / 16 * 1rem)",
4076
- "--_number-margin": "calc(3 / 16 * 1rem)",
4077
- "--_outline-width": "calc(1 / 16 * 1rem)",
4078
- "--_title-margin": "calc(16 / 16 * 1rem)",
4079
- "--_description-margin": "calc(4 / 16 * 1rem)"
4080
- },
4081
- indicator: {
4082
- /**
4083
- * margin: calc(3 / 16 * 1rem);
4084
- * border-width: 1px;
4085
- * font-size: calc(16 / 16 * 1rem);
4086
- */
4087
- m: "calc(3 / 16 * 1rem)",
4088
- borderWidth: "1px",
4089
- // fontSize: "calc(16 / 16 * 1rem)",
4090
- textStyle: "std-16B-170",
4091
- "[data-orientation=horizontal] > &": {
4092
- /**
4093
- * margin-right: auto;
4094
- * margin-left: auto;
4095
- */
4096
- mr: "auto",
4097
- ml: "auto"
4098
- },
4099
- "[data-orientation=vertical] > &": {
4100
- mx: "calc(4 / 16 * 1rem)"
4101
- },
4102
- _after: {
4103
- transform: "scale(0.33)"
4104
- }
4105
- },
4106
- title: {
4107
- /**
4108
- * font-weight: bold;
4109
- * font-size: calc(16 / 16 * 1rem);
4110
- * line-height: 1.7;
4111
- * letter-spacing: 0.02em;
4112
- */
4113
- textStyle: "std-16B-170"
4114
- }
4115
- }
4116
- }
4117
- },
4118
- defaultVariants: {
4119
- size: "md"
4120
- }
4121
- });
4122
-
4123
- // src/recipes/table.ts
4124
- var import_dev39 = require("@pandacss/dev");
4125
- var table_default = (0, import_dev39.defineSlotRecipe)({
4126
- className: "table",
4127
- slots: tableAnatomy.keys(),
4128
- base: {
4129
- root: {
4130
- /**
4131
- * w-full text-std-16N-170
4132
- */
4133
- maxWidth: "full",
4134
- colorPalette: "keyColor"
4135
- },
4136
- head: {
4137
- "& tr": {
4138
- /**
4139
- * border-black bg-solid-gray-50
4140
- */
4141
- borderColor: "black",
4142
- bg: "solid-gray.50"
4143
- }
4144
- },
4145
- body: {
4146
- "& tr": {
4147
- /**
4148
- * border-solid-gray-420
4149
- */
4150
- borderColor: "solid-gray.420"
4151
- /**
4152
- * [&:has(input:checked)]:bg-blue-100
4153
- */
4154
- /*
4155
- "&:has(input:checked)": {
4156
- bg: "colorPalette.100",
4157
- },
4158
- */
4159
- }
4160
- },
4161
- foot: {},
4162
- row: {
4163
- /**
4164
- * border-b
4165
- */
4166
- borderBottomWidth: "1px",
4167
- "tbody > &:has(input:checked)": { bg: "colorPalette.100" }
4168
- },
4169
- header: {
4170
- /**
4171
- * px-4 text-start align-top
4172
- */
4173
- px: 4,
4174
- verticalAlign: "top",
4175
- textAlign: "start"
4176
- },
4177
- cell: {
4178
- /**
4179
- * px-4 align-top
4180
- */
4181
- px: 4,
4182
- verticalAlign: "top"
4183
- },
4184
- caption: {
4185
- mb: 4,
4186
- textStyle: "oln-17B-100"
4187
- }
4188
- },
4189
- variants: {
4190
- dense: {
4191
- false: {
4192
- root: {
4193
- textStyle: "std-16N-170"
4194
- },
4195
- header: {
4196
- /**
4197
- * py-5
4198
- */
4199
- py: 5
4200
- },
4201
- cell: {
4202
- /**
4203
- * py-5
4204
- */
4205
- py: 5
4206
- }
4207
- },
4208
- true: {
4209
- root: {
4210
- textStyle: "dns-16N-130"
4211
- },
4212
- header: {
4213
- /**
4214
- * py-2.5
4215
- */
4216
- py: 2.5
4217
- },
4218
- cell: {
4219
- /**
4220
- * py-2.5
4221
- */
4222
- py: 2.5
4223
- }
4224
- }
4225
- },
4226
- striped: {
4227
- true: {
4228
- body: {
4229
- "& tr": {
4230
- _even: {
4231
- "&:not(:has(input:checked))": {
4232
- bg: "{colors.colorPalette.bg}/25"
4233
- }
4234
- }
4235
- }
4236
- }
4237
- }
4238
- },
4239
- hovered: {
4240
- true: {
4241
- body: {
4242
- "& tr": {
4243
- _hover: {
4244
- bg: "colorPalette.bg"
4245
- },
4246
- _even: {
4247
- "&:not(:has(input:checked))": {
4248
- _hover: { bg: "{colors.colorPalette.bg}" }
4249
- }
4250
- }
4251
- }
4252
- }
4253
- }
4254
- }
4255
- },
4256
- defaultVariants: {
4257
- dense: false,
4258
- striped: false,
4259
- hovered: false
4260
- }
4261
- });
4262
-
4263
- // src/recipes/tabs.ts
4264
- var import_dev40 = require("@pandacss/dev");
4265
- var import_tabs = require("@zag-js/tabs");
4266
- var tabs_default = (0, import_dev40.defineSlotRecipe)({
4267
- className: "tabs",
4268
- slots: import_tabs.anatomy.keys(),
4269
- base: {
4270
- root: {
4271
- colorPalette: "keyColor"
4272
- },
4273
- list: {
4274
- /**
4275
- * flex w-full min-w-max items-end whitespace-nowrap
4276
- * border-b border-solid-gray-420
4277
- */
4278
- display: "flex",
4279
- width: "full",
4280
- alignItems: "end",
4281
- whiteSpace: "nowrap",
4282
- borderBottomWidth: "1px",
4283
- borderColor: "solid-gray.420",
4284
- overflowX: "auto"
4285
- },
4286
- trigger: {
4287
- /**
4288
- * relative z-0 inline-flex gap-2 justify-center items-center
4289
- * text-oln-14B-100 md:text-oln-16B-100
4290
- */
4291
- position: "relative",
4292
- zIndex: 0,
4293
- display: "inline-flex",
4294
- gap: 2,
4295
- justifyContent: "center",
4296
- alignItems: "center",
4297
- textStyle: { base: "oln-14B-100", md: "oln-16B-100" },
4298
- /**
4299
- * px-4 py-6 group md:px-8 md:py-6
4300
- * hover:bg-solid-gray-50 focus-visible:bg-yellow-300
4301
- * aria-[current=page]:bg-white
4302
- */
4303
- px: { base: 4, md: 8 },
4304
- py: 6,
4305
- cursor: "pointer",
4306
- bg: {
4307
- base: "transparent",
4308
- _hover: "solid-gray.50",
4309
- _focusVisible: { base: "yellow.300", _hover: "yellow.300" },
4310
- _selected: {
4311
- base: "white",
4312
- _hover: "white",
4313
- _focusVisible: "yellow.300"
4314
- }
4315
- },
4316
- /**
4317
- * focus-visible:z-10 focus-visible:rounded-4
4318
- * focus-visible:outline focus-visible:outline-4
4319
- * focus-visible:outline-offset-[calc(2/16*1rem)] focus-visible:outline-black
4320
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
4321
- */
4322
- _focusVisible: {
4323
- zIndex: 10,
4324
- rounded: 4,
4325
- outlineStyle: "solid",
4326
- outlineWidth: "4px",
4327
- outlineColor: "black",
4328
- outlineOffset: "calc(2 / 16 * 1rem)",
4329
- focusBox: "calc(2 / 16 * 1rem)"
4330
- },
4331
- _selected: {
4332
- /**
4333
- * relative text-blue-900
4334
- * after:absolute after:bottom-0 after:left-0 after:w-full after:border-b-4
4335
- * after:border-current
4336
- * aria-[current=page]:cursor-default
4337
- */
4338
- color: "colorPalette.primary",
4339
- cursor: "default",
4340
- _after: {
4341
- content: '""',
4342
- position: "absolute",
4343
- bottom: 0,
4344
- left: 0,
4345
- width: "full",
4346
- borderBottomWidth: "4px",
4347
- borderBlockColor: "currentcolor"
4348
- }
4349
- }
4350
- }
4351
- }
4352
- });
4353
-
4354
- // src/recipes/tree-view.ts
4355
- var import_dev41 = require("@pandacss/dev");
4356
- var import_tree_view = require("@zag-js/tree-view");
4357
- var tree_view_default = (0, import_dev41.defineSlotRecipe)({
4358
- className: "tree-view",
4359
- slots: import_tree_view.anatomy.keys(),
4360
- base: {
4361
- root: {},
4362
- label: {
4363
- py: 3,
4364
- pl: 3,
4365
- pr: 6,
4366
- textStyle: "oln-17B-100",
4367
- textWrap: "nowrap",
4368
- display: "block"
4369
- },
4370
- tree: {},
4371
- item: {
4372
- ...menu_item_default.base
4373
- },
4374
- itemIndicator: {
4375
- _empty: {
4376
- _before: {
4377
- content: '""',
4378
- display: "block",
4379
- width: "24px",
4380
- height: "24px",
4381
- bg: "black",
4382
- clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
4383
- },
4384
- _selected: {
4385
- _before: {
4386
- clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')"
4387
- }
4388
- }
4389
- }
4390
- },
4391
- itemText: {
4392
- flexGrow: 1
4393
- },
4394
- branch: {},
4395
- branchControl: { ...menu_item_default.base },
4396
- branchTrigger: {},
4397
- branchContent: {
4398
- my: 1,
4399
- pl: 8
4400
- },
4401
- branchIndicator: {
4402
- _empty: {
4403
- _before: {
4404
- content: '""',
4405
- display: "block",
4406
- width: "24px",
4407
- height: "24px",
4408
- bg: "black",
4409
- clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
4410
- },
4411
- _selected: {
4412
- _before: {
4413
- clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')"
4414
- }
4415
- },
4416
- _open: {
4417
- _before: {
4418
- clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')"
4419
- }
4420
- }
4421
- }
4422
- },
4423
- branchText: {
4424
- flexGrow: 1
4425
- }
4426
- },
4427
- variants: {
4428
- variant: {
4429
- standard: {
4430
- item: {
4431
- ...menu_item_default.variants?.variant?.standard
4432
- },
4433
- branchControl: {
4434
- ...menu_item_default.variants?.variant?.standard
4435
- }
4436
- },
4437
- boxed: {
4438
- item: {
4439
- ...menu_item_default.variants?.variant?.boxed
4440
- },
4441
- branchControl: {
4442
- ...menu_item_default.variants?.variant?.boxed
4443
- }
4444
- }
4445
- },
4446
- isCondensed: {
4447
- true: {
4448
- label: {
4449
- py: 1.5,
4450
- pl: 1.5,
4451
- pr: 4
4452
- },
4453
- item: {
4454
- ...menu_item_default.variants?.isCondensed?.true
4455
- },
4456
- branchControl: {
4457
- ...menu_item_default.variants?.isCondensed?.true
4458
- }
4459
- },
4460
- false: {
4461
- item: {
4462
- ...menu_item_default.variants?.isCondensed?.false
4463
- },
4464
- branchControl: {
4465
- ...menu_item_default.variants?.isCondensed?.false
4466
- }
4467
- }
4468
- }
4469
- }
4470
- });
4471
-
4472
- // src/recipes/unordered-list.ts
4473
- var import_dev42 = require("@pandacss/dev");
4474
- var unordered_list_default = (0, import_dev42.defineRecipe)({
4475
- className: "unordered-list",
4476
- base: {
4477
- /**
4478
- * pl-8 list-[revert]
4479
- */
4480
- pl: 8,
4481
- listStyle: "revert",
4482
- /**
4483
- * [&_:where(ol,ul)]:mt-1 [&_:where(ol,ul)]:-mb-1
4484
- */
4485
- "&:where(ol,ul)": {
4486
- mt: 1,
4487
- mb: -1
4488
- }
4489
- }
4490
- });
4491
-
4492
- // src/recipes/utility-link.ts
4493
- var import_dev43 = require("@pandacss/dev");
4494
- var utility_link_default = (0, import_dev43.defineRecipe)({
4495
- className: "utility-link",
4496
- description: "\u30E6\u30FC\u30C6\u30A3\u30EA\u30C6\u30A3\u30EA\u30F3\u30AF\u306F\u3075\u3064\u3046\u306E\u6A2A\u4E26\u3073\u30EA\u30F3\u30AF\u30EA\u30B9\u30C8\u306B\u8FD1\u3044\u304C\u3001\u305D\u308C\u3088\u308A\u3082\u30B3\u30F3\u30D1\u30AF\u30C8\u306B\u4F5C\u3089\u308C\u3066\u3044\u307E\u3059\u3002",
4497
- base: {
4498
- colorPalette: "keyColor",
4499
- /**
4500
- * !text-solid-gray-800 text-dns-16N-130
4501
- * focus-visible:bg-yellow-300 focus-visible:text-blue-1000
4502
- */
4503
- textStyle: "dns-16N-130",
4504
- color: {
4505
- base: "solid-gray.800",
4506
- _focusVisible: "colorPalette.primary.100"
4507
- },
4508
- bg: { base: "transparent", _focusVisible: "yellow.300" },
4509
- /**
4510
- * underline underline-offset-[calc(3/16*1rem)]
4511
- * hover:decoration-[calc(3/16*1rem)]
4512
- */
4513
- textDecoration: "underline",
4514
- textDecorationThickness: {
4515
- base: "1px",
4516
- _hover: "calc(3 / 16 * 1rem)"
4517
- },
4518
- textUnderlineOffset: "calc(3 / 16 * 1rem)",
4519
- /**
4520
- * focus-visible:rounded-4
4521
- * focus-visible:outline focus-visible:outline-4
4522
- * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
4523
- * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
4524
- */
4525
- _focusVisible: {
4526
- rounded: 4,
4527
- outlineStyle: "solid",
4528
- outlineWidth: "4px",
4529
- outlineColor: "black",
4530
- outlineOffset: "calc(2 / 16 * 1rem)",
4531
- focusBox: "calc(2 / 16 * 1rem)"
4532
- },
4533
- /**
4534
- * with icon
4535
- */
4536
- display: "inline-flex",
4537
- alignItems: "center",
4538
- gap: 1,
4539
- "& svg": {
4540
- width: "1em",
4541
- height: "1em"
4542
- }
4543
- }
4544
- });
4545
-
4546
- // src/recipes/index.ts
4547
- var recipes = {
4548
- accordion: accordion_default,
4549
- blockquote: blockquote_default,
4550
- breadcrumb: breadcrumb_default,
4551
- button: button_default,
4552
- card: card_default,
4553
- checkbox: checkbox_default,
4554
- chipLabel: chip_label_default,
4555
- chipTag: chip_tag_default,
4556
- datePicker: date_picker_default,
4557
- descriptionList: description_list_default,
4558
- disclosure: disclosure_default,
4559
- digitalGoDivider: divider_default,
4560
- drawer: drawer_default,
4561
- emergencyBanner: emergency_banner_default,
4562
- errorText: error_text_default,
4563
- field: field_default,
4564
- fieldset: fieldset_default,
4565
- fileUpload: file_upload_default,
4566
- hamburgerMenuButton: hamburger_menu_button_default,
4567
- input: input_default,
4568
- label: label_default,
4569
- legend: legend_default,
4570
- link: link_default,
4571
- list: list_default,
4572
- menu: menu_default,
4573
- menuItem: menu_item_default,
4574
- menuList: menu_list_default,
4575
- notificationBanner: notification_banner_default,
4576
- orderedList: ordered_list_default,
4577
- progress: progress_default,
4578
- radioGroup: radio_group_default,
4579
- requirementBadge: requirement_badge_default,
4580
- resourceList: resource_list_default,
4581
- select: select_default,
4582
- stepNavigation: step_navigation_default,
4583
- supportText: support_text_default,
4584
- table: table_default,
4585
- tabs: tabs_default,
4586
- textarea: textarea_default,
4587
- treeView: tree_view_default,
4588
- unorderedList: unordered_list_default,
4589
- utilityLink: utility_link_default
4590
- };
4591
- var recipes_default = recipes;
4592
-
4593
- // src/keyframes.ts
4594
- var keyframes = {
4595
- "circular-progress": {
4596
- "0%": {
4597
- strokeDasharray: "1, 400",
4598
- strokeDashoffset: "0"
4599
- },
4600
- "50%": {
4601
- strokeDasharray: "400, 400",
4602
- strokeDashoffset: "-100%"
4603
- },
4604
- "100%": {
4605
- strokeDasharray: "400, 400",
4606
- strokeDashoffset: "-260%"
4607
- }
4608
- },
4609
- position: {
4610
- from: {
4611
- insetInlineStart: "var(--animate-from-x)",
4612
- insetBlockStart: "var(--animate-from-y)"
4613
- },
4614
- to: {
4615
- insetInlineStart: "var(--animate-to-x)",
4616
- insetBlockStart: "var(--animate-to-y)"
4617
- }
4618
- }
4619
- };
4620
-
4621
- // src/index.ts
4622
- var base = {
4623
- name: "digital-go-pandacss-preset",
4624
- presets: [import_digital_go_pandacss_plugin.default],
4625
- theme: {
4626
- keyframes,
4627
- recipes: recipes_default
4628
- }
4629
- };
4630
- var index_default = (0, import_dev44.definePreset)(base);
4631
- var createPreset = (keyColor) => (0, import_dev44.definePreset)({
4632
- ...base,
4633
- theme: {
4634
- ...base.theme,
4635
- extend: {
4636
- semanticTokens: {
4637
- colors: {
4638
- keyColor: (0, import_digital_go_pandacss_utils.createKeyColor)(keyColor ?? "blue")
4639
- }
4640
- }
4641
- }
4642
- }
4643
- });
4644
- // Annotate the CommonJS export names for ESM import in node:
4645
- 0 && (module.exports = {
4646
- createPreset
4647
- });