@cieloazul310/digital-go-pandacss-preset 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,3043 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ //#region rolldown:runtime
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) {
14
+ __defProp(to, key, {
15
+ get: ((k) => from[k]).bind(null, key),
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ }
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+
28
+ //#endregion
29
+ let _pandacss_dev = require("@pandacss/dev");
30
+ let _cieloazul310_digital_go_pandacss_plugin = require("@cieloazul310/digital-go-pandacss-plugin");
31
+ _cieloazul310_digital_go_pandacss_plugin = __toESM(_cieloazul310_digital_go_pandacss_plugin);
32
+ let _cieloazul310_digital_go_pandacss_utils = require("@cieloazul310/digital-go-pandacss-utils");
33
+ let _zag_js_accordion = require("@zag-js/accordion");
34
+ let _zag_js_anatomy = require("@zag-js/anatomy");
35
+ let _zag_js_checkbox = require("@zag-js/checkbox");
36
+ let _zag_js_date_picker = require("@zag-js/date-picker");
37
+ let _zag_js_collapsible = require("@zag-js/collapsible");
38
+ let _zag_js_dialog = require("@zag-js/dialog");
39
+ let _zag_js_file_upload = require("@zag-js/file-upload");
40
+ let _zag_js_menu = require("@zag-js/menu");
41
+ let _zag_js_progress = require("@zag-js/progress");
42
+ let _zag_js_radio_group = require("@zag-js/radio-group");
43
+ let _zag_js_select = require("@zag-js/select");
44
+ let _zag_js_steps = require("@zag-js/steps");
45
+ let _zag_js_tabs = require("@zag-js/tabs");
46
+ let _zag_js_tree_view = require("@zag-js/tree-view");
47
+
48
+ //#region src/recipes/accordion.ts
49
+ /**
50
+ * source:
51
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Accordion/Accordion.tsx
52
+ */
53
+ var accordion_default = (0, _pandacss_dev.defineSlotRecipe)({
54
+ className: "accordion",
55
+ description: "アコーディオンは、ユーザーがコンテンツのセクションを展開または折りたたむことができるユーザーインターフェースです。項目をコンパクトにリスト表示しつつページ遷移せず関連情報を表示したいという要求に対応します。※セクション内の任意の範囲で折りたたみ表示をする場合は「ディスクロージャー」コンポーネントを使用してください。",
56
+ slots: _zag_js_accordion.anatomy.keys(),
57
+ base: {
58
+ root: { colorPalette: "keyColor" },
59
+ item: {
60
+ borderBottomWidth: "1px",
61
+ borderBottomColor: "solid-gray.420",
62
+ "--icon-size": {
63
+ base: "{spacing.5}",
64
+ md: "{spacing.8}"
65
+ }
66
+ },
67
+ itemTrigger: {
68
+ position: "relative",
69
+ display: "block",
70
+ bg: {
71
+ base: "transparent",
72
+ _hover: "solid-gray.50",
73
+ _focusVisible: {
74
+ base: "yellow.300",
75
+ _hover: "yellow.300"
76
+ }
77
+ },
78
+ py: {
79
+ base: 2,
80
+ md: 3.5
81
+ },
82
+ pl: {
83
+ base: "calc(var(--icon-size) + {spacing.3})",
84
+ md: "calc(var(--icon-size) + {spacing.5})"
85
+ },
86
+ pr: {
87
+ base: 2,
88
+ md: 4
89
+ },
90
+ cursor: { _hover: "pointer" },
91
+ "&::marker": { content: "\"\"" },
92
+ _focusVisible: {
93
+ rounded: 4,
94
+ outlineStyle: "solid",
95
+ outlineWidth: "4px",
96
+ outlineColor: "black",
97
+ outlineOffset: .5,
98
+ focusBox: "calc({spacing.1} / 2)"
99
+ },
100
+ textAlign: "start",
101
+ width: "full"
102
+ },
103
+ itemIndicator: {
104
+ position: "absolute",
105
+ top: {
106
+ base: 2,
107
+ md: 3.5
108
+ },
109
+ left: {
110
+ base: .5,
111
+ md: 1.5
112
+ },
113
+ width: "var(--icon-size)",
114
+ height: "var(--icon-size)",
115
+ mt: "calc((1lh - var(--icon-size)) / 2)",
116
+ display: "inline-flex",
117
+ alignItems: "center",
118
+ justifyContent: "center",
119
+ bg: "white",
120
+ color: "colorPalette.primary.100",
121
+ borderWidth: "1px",
122
+ borderColor: "currentcolor",
123
+ rounded: "full",
124
+ outlineStyle: "solid",
125
+ outlineWidth: {
126
+ base: "0px",
127
+ _groupHover: "2px"
128
+ },
129
+ outlineColor: {
130
+ base: "transparent",
131
+ _groupHover: "currentcolor"
132
+ },
133
+ transition: "transform",
134
+ transform: {
135
+ base: "rotate(0deg)",
136
+ _open: "rotate(-180deg)"
137
+ }
138
+ },
139
+ itemContent: {
140
+ pl: {
141
+ base: "calc(var(--icon-size) + {spacing.3})",
142
+ md: "calc(var(--icon-size) + {spacing.5})"
143
+ },
144
+ pr: {
145
+ base: 2,
146
+ md: 4
147
+ },
148
+ py: {
149
+ base: 4,
150
+ md: 6
151
+ }
152
+ }
153
+ }
154
+ });
155
+
156
+ //#endregion
157
+ //#region src/recipes/blockquote.ts
158
+ var blockquote_default = (0, _pandacss_dev.defineRecipe)({
159
+ className: "blockquote",
160
+ base: {
161
+ my: 0,
162
+ mx: 10,
163
+ borderLeftWidth: "8px",
164
+ borderColor: "solid-gray.536",
165
+ pt: 2,
166
+ pr: 4,
167
+ pb: 2,
168
+ pl: 6,
169
+ "& > *:first-child": { mt: 0 },
170
+ "& > *:last-child": { mb: 0 }
171
+ }
172
+ });
173
+
174
+ //#endregion
175
+ //#region src/anatomy.ts
176
+ /**
177
+ * https://github.com/chakra-ui/chakra-ui/blob/main/packages/react/src/anatomy.ts
178
+ */
179
+ const breadcrumbAnatomy = (0, _zag_js_anatomy.createAnatomy)("breadcrumb").parts("root", "label", "list", "item", "link", "separator");
180
+ const cardAnatomy = (0, _zag_js_anatomy.createAnatomy)("card").parts("root", "main", "image", "sub", "title");
181
+ const chipTagAnatomy = (0, _zag_js_anatomy.createAnatomy)("chip-tag").parts("root", "icon", "label", "removeButton", "addButton");
182
+ /**
183
+ * https://github.com/digital-go-jp/design-system-example-components-react/tree/main/src/components/EmergencyBanner/parts
184
+ */
185
+ const emergencyBannerAnatomy = (0, _zag_js_anatomy.createAnatomy)("emergency-banner").parts("root", "heading", "body", "action", "button");
186
+ /**
187
+ * https://github.com/chakra-ui/ark/blob/main/packages/react/src/components/field/field.anatomy.ts
188
+ */
189
+ const fieldAnatomy = (0, _zag_js_anatomy.createAnatomy)("field").parts("root", "errorText", "supportText", "input", "label", "select", "textarea", "requirementBadge");
190
+ /**
191
+ * https://github.com/chakra-ui/ark/blob/main/packages/react/src/components/fieldset/fieldset.anatomy.ts
192
+ */
193
+ const fieldsetAnatomy = (0, _zag_js_anatomy.createAnatomy)("fieldset").parts("root", "errorText", "supportText", "legend");
194
+ const menuListAnatomy = (0, _zag_js_anatomy.createAnatomy)("menu-list").parts("root", "label", "content", "item", "itemGroup", "itemGroupLabel", "itemText", "itemIndicator", "input");
195
+ const notificationBannerAnatomy = (0, _zag_js_anatomy.createAnatomy)("notification-banner").parts("root", "icon", "close", "header", "heading", "body", "actions");
196
+ const resourceListAnatomy = (0, _zag_js_anatomy.createAnatomy)("resource-list").parts("root", "main", "action", "content", "title");
197
+ const tableAnatomy = (0, _zag_js_anatomy.createAnatomy)("table").parts("root", "head", "body", "foot", "row", "header", "cell", "colgroup", "col", "caption");
198
+
199
+ //#endregion
200
+ //#region src/recipes/link.ts
201
+ /**
202
+ * source:
203
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Link/Link.tsx
204
+ */
205
+ var link_default = (0, _pandacss_dev.defineRecipe)({
206
+ className: "link",
207
+ description: "リンクテキストは通常、色や下線などの視覚的な表現で通常のテキストと区別され、URLと関連づけられたテキスト文字列です。この関連付けをハイパーリンクと呼び、これはウェブをウェブたらしめている基本的な概念のひとつです。",
208
+ base: {
209
+ colorPalette: "blue",
210
+ color: {
211
+ base: "colorPalette.primary.100",
212
+ _visited: "magenta.900",
213
+ _hover: "colorPalette.primary.100",
214
+ _focusVisible: "colorPalette.primary.100",
215
+ _active: "orange.800"
216
+ },
217
+ bg: {
218
+ base: "transparent",
219
+ _focusVisible: "yellow.300"
220
+ },
221
+ textDecoration: "underline",
222
+ textDecorationThickness: {
223
+ base: "1px",
224
+ _hover: "calc(3 / 16 * 1rem)",
225
+ _active: "1px"
226
+ },
227
+ textUnderlineOffset: "calc(3 / 16 * 1rem)",
228
+ _focusVisible: {
229
+ rounded: 4,
230
+ outlineStyle: "solid",
231
+ outlineWidth: "4px",
232
+ outlineColor: "black",
233
+ outlineOffset: .5,
234
+ focusBox: "calc({spacing.1} / 2)"
235
+ },
236
+ "& > svg": {
237
+ display: "inline",
238
+ ml: 1,
239
+ mb: 1,
240
+ width: "1em",
241
+ height: "1em"
242
+ }
243
+ }
244
+ });
245
+
246
+ //#endregion
247
+ //#region src/recipes/breadcrumb.ts
248
+ /**
249
+ * source:
250
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Breadcrumbs/Breadcrumbs.tsx
251
+ */
252
+ var breadcrumb_default = (0, _pandacss_dev.defineSlotRecipe)({
253
+ className: "breadcrumb",
254
+ description: "パンくずリストは、ウェブサイトの階層内でユーザーの現在の位置を表示します。",
255
+ slots: breadcrumbAnatomy.keys(),
256
+ base: {
257
+ root: { "--icon-size": "16px" },
258
+ label: {
259
+ srOnly: true,
260
+ textStyle: "oln-16N-100"
261
+ },
262
+ list: { display: "inline" },
263
+ item: {
264
+ display: "inline",
265
+ overflowWrap: "break-word",
266
+ textStyle: "oln-16N-100"
267
+ },
268
+ link: {
269
+ ...link_default.base,
270
+ "& svg": {
271
+ display: "inline",
272
+ width: "var(--icon-size)",
273
+ height: "var(--icon-size)",
274
+ mr: 1
275
+ }
276
+ },
277
+ separator: {
278
+ mx: 2,
279
+ display: "inline-flex",
280
+ width: "12px",
281
+ height: "12px",
282
+ "& > svg": {
283
+ width: "full",
284
+ height: "full",
285
+ fill: "none"
286
+ }
287
+ }
288
+ }
289
+ });
290
+
291
+ //#endregion
292
+ //#region src/recipes/button.ts
293
+ /**
294
+ * source:
295
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Button/Button.tsx
296
+ */
297
+ var button_default = (0, _pandacss_dev.defineRecipe)({
298
+ className: "button",
299
+ description: "ボタンは、主にアクション実行またはページ遷移のためのトリガーとして使用します。画面内におけるボタンの重要度に応じて使い分け可能な複数のスタイルがあります。",
300
+ base: {
301
+ colorPalette: "keyColor",
302
+ textUnderlineOffset: "calc(3 / 16 * 1rem)",
303
+ _focusVisible: {
304
+ outlineStyle: "solid",
305
+ outlineWidth: "4px",
306
+ outlineColor: "black",
307
+ outlineOffset: .5,
308
+ focusBox: "calc({spacing.1} / 2)"
309
+ },
310
+ _disabled: { pointerEvents: "none" },
311
+ display: "inline-flex",
312
+ columnGap: 1,
313
+ textAlign: "center",
314
+ alignItems: "center",
315
+ justifyContent: "center",
316
+ cursor: "pointer",
317
+ _icon: { flexShrink: 0 }
318
+ },
319
+ variants: {
320
+ variant: {
321
+ "solid-fill": {
322
+ bg: {
323
+ base: "colorPalette.primary",
324
+ _hover: "colorPalette.primary.100",
325
+ _active: "colorPalette.primary.300",
326
+ _disabled: "solid-gray.300"
327
+ },
328
+ color: {
329
+ base: "white",
330
+ _disabled: "solid-gray.50"
331
+ },
332
+ borderWidth: "4px",
333
+ borderStyle: "double",
334
+ borderColor: "transparent",
335
+ textDecoration: {
336
+ base: "none",
337
+ _hover: "underline",
338
+ _active: "underline"
339
+ }
340
+ },
341
+ outline: {
342
+ bg: {
343
+ base: "white",
344
+ _hover: "colorPalette.200",
345
+ _active: "colorPalette.300",
346
+ _disabled: "white"
347
+ },
348
+ color: {
349
+ base: "colorPalette.primary",
350
+ _hover: "colorPalette.primary.100",
351
+ _active: "colorPalette.primary.300",
352
+ _disabled: "solid-gray.300"
353
+ },
354
+ borderWidth: "1px",
355
+ borderColor: "currentcolor",
356
+ textDecoration: {
357
+ base: "none",
358
+ _hover: "underline",
359
+ _active: "underline"
360
+ }
361
+ },
362
+ text: {
363
+ bg: {
364
+ base: "transparent",
365
+ _hover: "colorPalette.bg",
366
+ _active: "colorPalette.100",
367
+ _focusVisible: {
368
+ base: "yellow.300",
369
+ _hover: "yellow.300"
370
+ },
371
+ _disabled: "transparent"
372
+ },
373
+ color: {
374
+ base: "colorPalette.primary",
375
+ _hover: "colorPalette.primary.100",
376
+ _active: "colorPalette.primary.300",
377
+ _disabled: "solid-gray.300"
378
+ },
379
+ textDecoration: "underline",
380
+ textDecorationThickness: {
381
+ base: "1px",
382
+ _hover: "calc(3 / 16 * 1rem)"
383
+ }
384
+ }
385
+ },
386
+ size: {
387
+ lg: {
388
+ minWidth: "calc({spacing.1} * 34)",
389
+ minHeight: 14,
390
+ rounded: 8,
391
+ px: 4,
392
+ py: 3,
393
+ textStyle: "oln-16B-100"
394
+ },
395
+ md: {
396
+ minWidth: 24,
397
+ minHeight: 12,
398
+ textStyle: "oln-16B-100",
399
+ px: 4,
400
+ py: 2,
401
+ rounded: 8
402
+ },
403
+ sm: {
404
+ position: "relative",
405
+ minWidth: 20,
406
+ minHeight: 9,
407
+ textStyle: "oln-16B-100",
408
+ px: 3,
409
+ py: .5,
410
+ rounded: 6,
411
+ _after: {
412
+ position: "absolute",
413
+ insetInline: 0,
414
+ insetBlock: "full",
415
+ m: "auto",
416
+ height: "44px"
417
+ }
418
+ },
419
+ xs: {
420
+ minWidth: 18,
421
+ minHeight: 7,
422
+ textStyle: "oln-14B-100",
423
+ px: 2,
424
+ py: .5,
425
+ rounded: 4,
426
+ _after: {
427
+ position: "absolute",
428
+ insetInline: 0,
429
+ insetBlock: "full",
430
+ m: "auto",
431
+ height: "44px"
432
+ }
433
+ }
434
+ }
435
+ },
436
+ defaultVariants: {
437
+ variant: "solid-fill",
438
+ size: "md"
439
+ }
440
+ });
441
+
442
+ //#endregion
443
+ //#region src/recipes/card.ts
444
+ var card_default = (0, _pandacss_dev.defineSlotRecipe)({
445
+ className: "card",
446
+ description: "単一の主題に関するコンテンツをまとめて表示するコンテナとなるコンポーネントです。さまざまなタイプとサイズの要素やコンポーネントを柔軟に格納できます。本来カードコンポーネントは、あらゆるコンテンツ(コンポーネントや要素)を内包することができ、非常に自由度の高いコンテナとなります。本デザインシステムでは、情報設計をしやすいカードを提供するため、自由度に制約を設けたコンポーネント仕様として策定しています。",
447
+ slots: cardAnatomy.keys(),
448
+ base: {
449
+ root: {
450
+ display: "grid",
451
+ gridTemplateAreas: `
452
+ "image"
453
+ "main"
454
+ "sub"
455
+ `,
456
+ bg: {
457
+ base: "white",
458
+ "&:has(input:checked)": "colorPalette.bg"
459
+ },
460
+ color: "solid-gray.800",
461
+ textStyle: "std-16N-170",
462
+ borderColor: "solid-gray.420",
463
+ borderWidth: "1px",
464
+ rounded: 16,
465
+ overflow: "hidden",
466
+ colorPalette: "keyColor"
467
+ },
468
+ main: {
469
+ gridArea: "main",
470
+ py: 4,
471
+ px: {
472
+ base: 4,
473
+ md: 6
474
+ },
475
+ display: "flex",
476
+ flexDirection: "column",
477
+ gap: 4,
478
+ _focusVisible: {
479
+ outlineStyle: "solid",
480
+ outlineWidth: "4px",
481
+ outlineColor: "black",
482
+ outlineOffset: .5,
483
+ focusBox: "calc({spacing.1} / 2)"
484
+ }
485
+ },
486
+ image: {
487
+ gridArea: "image",
488
+ position: "relative",
489
+ overflow: "hidden",
490
+ "& > img": {
491
+ objectFit: "cover",
492
+ width: "full",
493
+ height: "full"
494
+ }
495
+ },
496
+ sub: {
497
+ gridArea: "sub",
498
+ py: 4,
499
+ px: {
500
+ base: 4,
501
+ md: 6
502
+ }
503
+ },
504
+ title: { textStyle: "std-20B-150" }
505
+ },
506
+ variants: {
507
+ orientation: {
508
+ vertical: { root: {
509
+ gridTemplateAreas: `
510
+ "image"
511
+ "main"
512
+ "sub"
513
+ `,
514
+ gridTemplateColumns: "1fr"
515
+ } },
516
+ horizontal: { root: {
517
+ gridTemplateAreas: `
518
+ "image main"
519
+ "image sub"
520
+ `,
521
+ gridTemplateColumns: "minmax(auto, 320px) 1fr"
522
+ } }
523
+ },
524
+ asLink: { true: {
525
+ root: {
526
+ position: "relative",
527
+ bg: { _hover: "solid-gray.50" }
528
+ },
529
+ image: { "& > img": {
530
+ transition: "transform",
531
+ _groupHover: { transform: "scale(1.05)" }
532
+ } },
533
+ sub: { "& > *": { zIndex: 1 } },
534
+ title: { "& > a": { _before: {
535
+ content: "\"\"",
536
+ position: "absolute",
537
+ top: 0,
538
+ left: 0,
539
+ width: "full",
540
+ height: "full",
541
+ zIndex: 0,
542
+ cursor: "inherit"
543
+ } } }
544
+ } }
545
+ },
546
+ defaultVariants: {
547
+ orientation: "vertical",
548
+ asLink: false
549
+ }
550
+ });
551
+
552
+ //#endregion
553
+ //#region src/recipes/checkbox.ts
554
+ var checkbox_default = (0, _pandacss_dev.defineSlotRecipe)({
555
+ className: "checkbox",
556
+ description: "チェックボックスは、複数の項目の中から複数の選択肢を選ぶことを可能にします。また、ひとつの選択肢のオン・オフの切り替えにも用いることができます。",
557
+ slots: _zag_js_checkbox.anatomy.extendWith("group").keys(),
558
+ base: {
559
+ root: {
560
+ display: "flex",
561
+ alignItems: "center",
562
+ width: "fit-content",
563
+ py: 2,
564
+ colorPalette: "keyColor"
565
+ },
566
+ control: {
567
+ flexShrink: 0,
568
+ rounded: "calc(2 / 18 * 100%)",
569
+ borderWidth: "2px",
570
+ borderColor: {
571
+ base: "solid-gray.420",
572
+ _checked: "colorPalette.primary",
573
+ _invalid: {
574
+ base: "error.1",
575
+ _disabled: "solid-gray.420"
576
+ },
577
+ _groupHover: {
578
+ base: "black",
579
+ _disabled: "solid-gray.420"
580
+ }
581
+ },
582
+ _disabled: { bg: "solid-gray.50" },
583
+ _groupHover: {
584
+ outlineStyle: {
585
+ base: "solid",
586
+ _disabled: "hidden"
587
+ },
588
+ outlineColor: "solid-gray.420",
589
+ _focus: {
590
+ outlineStyle: "solid",
591
+ outlineWidth: "4px",
592
+ outlineColor: "black",
593
+ outlineOffset: .5,
594
+ focusBox: "calc({spacing.1} / 2)"
595
+ }
596
+ },
597
+ _focus: {
598
+ outlineStyle: "solid",
599
+ outlineWidth: "4px",
600
+ outlineColor: "black",
601
+ outlineOffset: .5,
602
+ focusBox: "calc({spacing.1} / 2)"
603
+ }
604
+ },
605
+ indicator: {
606
+ appearance: "none",
607
+ width: "full",
608
+ height: "full",
609
+ zIndex: 1,
610
+ bg: {
611
+ base: "white",
612
+ _checked: {
613
+ base: "colorPalette.primary",
614
+ _hover: "colorPalette.primary.200",
615
+ _highContrast: "Highlight"
616
+ },
617
+ _indeterminate: {
618
+ base: "colorPalette.primary",
619
+ _hover: "colorPalette.primary.200",
620
+ _highContrast: "Highlight"
621
+ },
622
+ _invalid: {
623
+ _indeterminate: {
624
+ base: "error.1",
625
+ _hover: "red.1000",
626
+ _disabled: "solid-gray.300"
627
+ },
628
+ _checked: {
629
+ base: "error.1",
630
+ _hover: "red.1000",
631
+ _disabled: "solid-gray.300"
632
+ }
633
+ },
634
+ _disabled: {
635
+ base: "solid-gray.50",
636
+ _checked: "solid-gray.300",
637
+ _indeterminate: "solid-gray.300",
638
+ _highContrast: { _checked: "GrayText" }
639
+ }
640
+ },
641
+ backgroundClip: "padding-box",
642
+ _before: {
643
+ content: "\"\"",
644
+ display: "none",
645
+ width: 3.5,
646
+ height: 3.5,
647
+ bg: {
648
+ base: "white",
649
+ _highContrast: "HighlightText"
650
+ },
651
+ borderColor: { _disabled: "solid-gray.50" }
652
+ },
653
+ _checked: { _before: {
654
+ display: "block",
655
+ clipPath: "path('M5.6,11.2L12.65,4.15L11.25,2.75L5.6,8.4L2.75,5.55L1.35,6.95L5.6,11.2Z')"
656
+ } },
657
+ _indeterminate: { _before: {
658
+ display: "block",
659
+ clipPath: "path('M3.25,7.75H10.75V6.25H3.25V7.75Z')"
660
+ } }
661
+ },
662
+ label: { color: "solid-gray.800" }
663
+ },
664
+ variants: { size: {
665
+ sm: {
666
+ root: { gap: 1.5 },
667
+ control: {
668
+ width: "calc({spacing.9} / 2)",
669
+ height: "calc({spacing.9} / 2)",
670
+ _groupHover: {
671
+ outlineWidth: "2px",
672
+ _focus: { outlineWidth: "4px" }
673
+ }
674
+ },
675
+ label: { textStyle: "dns-16N-130" }
676
+ },
677
+ md: {
678
+ root: { gap: 2.5 },
679
+ control: {
680
+ width: 6,
681
+ height: 6,
682
+ _groupHover: { outlineWidth: "4px" }
683
+ },
684
+ indicator: { _before: {
685
+ transformOrigin: "top left",
686
+ scale: "calc(20 / 14)"
687
+ } },
688
+ label: { textStyle: "dns-16N-130" }
689
+ },
690
+ lg: {
691
+ root: { gap: 2.5 },
692
+ control: {
693
+ width: 8,
694
+ height: 8,
695
+ _groupHover: {
696
+ outlineWidth: "6px",
697
+ _focus: { outlineWidth: "4px" }
698
+ }
699
+ },
700
+ indicator: { _before: {
701
+ transformOrigin: "top left",
702
+ scale: "calc(27 / 14)"
703
+ } },
704
+ label: { textStyle: "dns-17N-130" }
705
+ }
706
+ } },
707
+ defaultVariants: { size: "sm" }
708
+ });
709
+
710
+ //#endregion
711
+ //#region src/recipes/chip-label.ts
712
+ var chip_label_default = (0, _pandacss_dev.defineRecipe)({
713
+ className: "chip-label",
714
+ description: "状態や状況を示すキーワードを表示して、情報の分類・整理の効率を向上させるグラフィック要素です。情報リストやテーブルの各行などのステータスを分かりやすく表示したい場合に有効です。",
715
+ base: {
716
+ display: "inline-flex",
717
+ alignItems: "center",
718
+ gap: 1,
719
+ px: 2,
720
+ py: 1,
721
+ minHeight: "32px",
722
+ borderWidth: "1px",
723
+ colorPalette: "keyColor",
724
+ rounded: 8,
725
+ flexShrink: 0,
726
+ whiteSpace: "nowrap",
727
+ textStyle: "oln-16N-100"
728
+ },
729
+ variants: { variant: {
730
+ text: {
731
+ color: "colorPalette.primary",
732
+ borderColor: "transparent"
733
+ },
734
+ outlined: {
735
+ color: "colorPalette.primary",
736
+ borderColor: "currentcolor"
737
+ },
738
+ ghost: {
739
+ color: "colorPalette.primary",
740
+ bg: "colorPalette.bg",
741
+ borderColor: "currentColor"
742
+ },
743
+ "solid-fill": {
744
+ bg: "colorPalette.primary",
745
+ color: "white",
746
+ borderColor: "transparent"
747
+ }
748
+ } },
749
+ defaultVariants: { variant: "text" }
750
+ });
751
+
752
+ //#endregion
753
+ //#region src/recipes/chip-tag.ts
754
+ const buttonCommon = {
755
+ width: "24px",
756
+ height: "24px",
757
+ rounded: "full",
758
+ p: "2px",
759
+ _before: {
760
+ content: "\"\"",
761
+ display: "block",
762
+ width: "full",
763
+ height: "full",
764
+ rounded: "full",
765
+ bg: "colorPalette.primary"
766
+ },
767
+ _groupActive: { _before: { bg: "colorPalette.primary.300" } },
768
+ _focus: {
769
+ outlineStyle: "solid",
770
+ outlineWidth: "4px",
771
+ outlineColor: "black",
772
+ outlineOffset: .5,
773
+ focusBox: "calc({spacing.1} / 2)"
774
+ }
775
+ };
776
+ var chip_tag_default = (0, _pandacss_dev.defineSlotRecipe)({
777
+ slots: chipTagAnatomy.keys(),
778
+ className: "chip-tag",
779
+ base: {
780
+ root: {
781
+ display: "inline-flex",
782
+ alignItems: "center",
783
+ px: 2,
784
+ py: 1,
785
+ minHeight: "32px",
786
+ borderWidth: "1px",
787
+ colorPalette: "keyColor",
788
+ rounded: "full",
789
+ flexShrink: 0,
790
+ whiteSpace: "nowrap",
791
+ textStyle: "oln-16N-100",
792
+ color: "colorPalette.primary",
793
+ bg: "colorPalette.bg",
794
+ borderColor: "currentColor",
795
+ cursor: "pointer"
796
+ },
797
+ label: {
798
+ flexGrow: 1,
799
+ px: 2
800
+ },
801
+ removeButton: {
802
+ ...buttonCommon,
803
+ _before: {
804
+ ...buttonCommon._before,
805
+ 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')"
806
+ },
807
+ _groupHover: { _before: { 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')" } }
808
+ },
809
+ addButton: {
810
+ ...buttonCommon,
811
+ _before: {
812
+ ...buttonCommon._before,
813
+ 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')"
814
+ },
815
+ _groupHover: { _before: { 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')" } }
816
+ }
817
+ }
818
+ });
819
+
820
+ //#endregion
821
+ //#region src/recipes/label.ts
822
+ /**
823
+ * source:
824
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Label/Label.tsx
825
+ */
826
+ var label_default = (0, _pandacss_dev.defineRecipe)({
827
+ className: "label",
828
+ base: {
829
+ display: "flex",
830
+ width: "fit-content",
831
+ alignItems: "center",
832
+ gap: 2,
833
+ color: "solid-gray.800"
834
+ },
835
+ variants: { size: {
836
+ sm: { textStyle: "std-16B-170" },
837
+ md: { textStyle: "std-17B-170" },
838
+ lg: { textStyle: "std-18B-160" }
839
+ } },
840
+ defaultVariants: { size: "md" }
841
+ });
842
+
843
+ //#endregion
844
+ //#region src/recipes/input.ts
845
+ /**
846
+ * source:
847
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Input/Input.tsx
848
+ */
849
+ var input_default = (0, _pandacss_dev.defineRecipe)({
850
+ className: "input",
851
+ description: "インプットテキストコンポーネントは、名前や電話番号など、1行以内のテキストを入力する場合に使用します。",
852
+ base: {
853
+ maxWidth: "full",
854
+ rounded: 8,
855
+ px: 4,
856
+ py: 3,
857
+ borderStyle: {
858
+ base: "solid",
859
+ _readOnly: "dashed"
860
+ },
861
+ borderWidth: "1px",
862
+ borderColor: {
863
+ base: "solid-gray.600",
864
+ _hover: "black",
865
+ _disabled: {
866
+ base: "solid-gray.300",
867
+ _highContrast: "GrayText"
868
+ },
869
+ _invalid: {
870
+ base: "error.1",
871
+ _hover: "red.1000"
872
+ }
873
+ },
874
+ bg: {
875
+ base: "white",
876
+ _disabled: "solid-gray.50"
877
+ },
878
+ color: {
879
+ base: "solid-gray.800",
880
+ _disabled: {
881
+ base: "solid-gray.420",
882
+ _highContrast: "GrayText"
883
+ }
884
+ },
885
+ textStyle: "oln-16N-100",
886
+ _focus: {
887
+ outlineStyle: "solid",
888
+ outlineWidth: "4px",
889
+ outlineColor: "black",
890
+ outlineOffset: .5,
891
+ focusBox: "calc({spacing.1} / 2)"
892
+ },
893
+ pointerEvents: {
894
+ base: "inherit",
895
+ _disabled: "none"
896
+ }
897
+ },
898
+ variants: { size: {
899
+ sm: { height: 10 },
900
+ md: { height: 12 },
901
+ lg: { height: 14 }
902
+ } },
903
+ defaultVariants: { size: "lg" }
904
+ });
905
+
906
+ //#endregion
907
+ //#region src/recipes/select-box.ts
908
+ /**
909
+ * source:
910
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Select/Select.tsx
911
+ */
912
+ var select_box_default = (0, _pandacss_dev.defineRecipe)({
913
+ className: "select-box",
914
+ description: "セレクトボックスは、複数の選択肢を提供するフォームコントロールです。",
915
+ base: {
916
+ width: "full",
917
+ appearance: "none",
918
+ pl: 4,
919
+ pr: 10,
920
+ py: "calc(11 / 16 * 1rem)",
921
+ rounded: 8,
922
+ pointerEvents: {
923
+ base: "inherit",
924
+ _disabled: "none"
925
+ },
926
+ bg: {
927
+ base: "white",
928
+ _disabled: "solid-gray.50"
929
+ },
930
+ color: {
931
+ base: "solid-gray.800",
932
+ _disabled: "solid-gray.420"
933
+ },
934
+ textStyle: "oln-16N-100",
935
+ borderWidth: "1px",
936
+ borderColor: {
937
+ base: "solid-gray.900",
938
+ _disabled: "solid-gray.300",
939
+ _invalid: {
940
+ base: "error.1",
941
+ _hover: "red.1000"
942
+ }
943
+ },
944
+ textAlign: "start",
945
+ _focus: {
946
+ outlineStyle: "solid",
947
+ outlineWidth: "4px",
948
+ outlineColor: "black",
949
+ outlineOffset: .5,
950
+ focusBox: "calc({spacing.1} / 2)"
951
+ }
952
+ },
953
+ variants: { size: {
954
+ sm: { height: 10 },
955
+ md: { height: 12 },
956
+ lg: { height: 14 }
957
+ } }
958
+ });
959
+
960
+ //#endregion
961
+ //#region src/recipes/date-picker.ts
962
+ var date_picker_default = (0, _pandacss_dev.defineSlotRecipe)({
963
+ className: "date-picker",
964
+ slots: _zag_js_date_picker.anatomy.extendWith("view").keys(),
965
+ base: {
966
+ root: { colorPalette: "keyColor" },
967
+ control: {
968
+ display: "flex",
969
+ alignItems: "center",
970
+ gap: 2
971
+ },
972
+ viewControl: {
973
+ display: "flex",
974
+ alignItems: "center",
975
+ gap: 2,
976
+ p: 4
977
+ },
978
+ content: {
979
+ bg: "white",
980
+ shadow: 1,
981
+ rounded: 8,
982
+ borderWidth: "1px",
983
+ borderColor: "solid-gray.420",
984
+ _focus: { outlineWidth: "0px" }
985
+ },
986
+ view: {
987
+ colorPalette: "keyColor",
988
+ display: "flex",
989
+ flexDirection: "column",
990
+ alignItems: "stretch",
991
+ width: "max-content"
992
+ },
993
+ label: { ...label_default.base },
994
+ input: { ...input_default.base },
995
+ yearSelect: {
996
+ ...select_box_default.base,
997
+ ...select_box_default.variants?.size?.md,
998
+ width: "fit-content"
999
+ },
1000
+ monthSelect: {
1001
+ ...select_box_default.base,
1002
+ ...select_box_default.variants?.size?.md,
1003
+ width: "fit-content"
1004
+ },
1005
+ table: {
1006
+ mx: 3,
1007
+ mb: 2
1008
+ },
1009
+ tableHead: { "& th": { p: 0 } },
1010
+ tableHeader: {
1011
+ width: 12,
1012
+ height: 12,
1013
+ textAlign: "center",
1014
+ fontWeight: "bold"
1015
+ },
1016
+ tableBody: { "& td": { p: 0 } },
1017
+ tableCellTrigger: {
1018
+ m: 1,
1019
+ display: "flex",
1020
+ alignItems: "center",
1021
+ justifyContent: "center",
1022
+ width: 10,
1023
+ height: 10,
1024
+ rounded: "full",
1025
+ textUnderlineOffset: "calc(3 / 16 * 1rem)",
1026
+ textDecoration: { _hover: "underline" },
1027
+ bg: {
1028
+ _hover: {
1029
+ base: "solid-gray.50",
1030
+ _disabled: "transparent"
1031
+ },
1032
+ _inRange: { base: "colorPalette.bg" },
1033
+ _selected: {
1034
+ base: "colorPalette.primary",
1035
+ _hover: "colorPalette.primary",
1036
+ _disabled: "transparent"
1037
+ }
1038
+ },
1039
+ color: {
1040
+ _selected: "white",
1041
+ _disabled: "solid-gray.300"
1042
+ },
1043
+ cursor: "pointer",
1044
+ borderWidth: { _selected: "1px" },
1045
+ borderColor: { _selected: "transparent" }
1046
+ }
1047
+ }
1048
+ });
1049
+
1050
+ //#endregion
1051
+ //#region src/recipes/description-list.ts
1052
+ /**
1053
+ * reference:
1054
+ * https://github.com/digital-go-jp/design-system-example-components-html/tree/main/src/components/description-list
1055
+ */
1056
+ var description_list_default = (0, _pandacss_dev.defineSlotRecipe)({
1057
+ className: "description-list",
1058
+ slots: [
1059
+ "root",
1060
+ "item",
1061
+ "term",
1062
+ "marker",
1063
+ "description"
1064
+ ],
1065
+ base: {
1066
+ root: {
1067
+ mt: 4,
1068
+ mb: 4,
1069
+ display: "grid",
1070
+ rowGap: 2,
1071
+ overflowWrap: "anywhere"
1072
+ },
1073
+ term: { fontWeight: "bold" },
1074
+ marker: { display: "none" },
1075
+ description: { ml: 8 }
1076
+ },
1077
+ variants: { marker: {
1078
+ none: {},
1079
+ bullet: { term: {
1080
+ ml: 8,
1081
+ display: "list-item",
1082
+ listStyleType: "disc"
1083
+ } },
1084
+ custom: { marker: {
1085
+ display: "inline-block",
1086
+ minWidth: 8,
1087
+ height: "1em"
1088
+ } }
1089
+ } },
1090
+ defaultVariants: { marker: "none" }
1091
+ });
1092
+
1093
+ //#endregion
1094
+ //#region src/recipes/disclosure.ts
1095
+ /**
1096
+ * source:
1097
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Disclosure/Disclosure.tsx
1098
+ */
1099
+ var disclosure_default = (0, _pandacss_dev.defineSlotRecipe)({
1100
+ className: "disclosure",
1101
+ description: "ディスクロージャーは、コンテンツのセクション内の任意の範囲を折りたたむことができるユーザーインターフェースです。※セクション単位で折りたたみ表示をする場合は「アコーディオン」コンポーネントを使用してください。",
1102
+ slots: _zag_js_collapsible.anatomy.extendWith("indicator").keys(),
1103
+ base: {
1104
+ root: { colorPalette: "keyColor" },
1105
+ trigger: {
1106
+ display: "flex",
1107
+ width: "fit-content",
1108
+ cursor: "default",
1109
+ listStyle: "none",
1110
+ alignItems: "start",
1111
+ justifyContent: "start",
1112
+ gap: 2,
1113
+ textAlign: "start",
1114
+ _hover: {
1115
+ textDecoration: "underline",
1116
+ textUnderlineOffset: "calc(3 / 16 * 1rem)"
1117
+ },
1118
+ _focusVisible: {
1119
+ rounded: 4,
1120
+ bg: "yellow.300",
1121
+ outlineStyle: "solid",
1122
+ outlineWidth: "4px",
1123
+ outlineColor: "black",
1124
+ outlineOffset: .5,
1125
+ focusBox: "calc({spacing.1} / 2)"
1126
+ }
1127
+ },
1128
+ indicator: {
1129
+ flex: "none",
1130
+ bg: {
1131
+ base: "colorPalette.primary.100",
1132
+ _groupHover: "white"
1133
+ },
1134
+ color: {
1135
+ base: "white",
1136
+ _groupHover: "colorPalette.primary.100",
1137
+ _highContrast: "inherit"
1138
+ },
1139
+ mt: "calc((1lh - 24px) / 2)",
1140
+ width: "24px",
1141
+ height: "24px",
1142
+ rounded: "full",
1143
+ outlineStyle: "solid",
1144
+ outlineWidth: "3px",
1145
+ outlineOffset: "-3px",
1146
+ outlineColor: "colorPalette.primary.100",
1147
+ transition: "transform",
1148
+ transform: {
1149
+ base: "rotate(-180deg)",
1150
+ _open: "rotate(0deg)"
1151
+ }
1152
+ },
1153
+ content: {}
1154
+ }
1155
+ });
1156
+
1157
+ //#endregion
1158
+ //#region src/recipes/divider.ts
1159
+ /**
1160
+ * source:
1161
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Divider/Divider.tsx
1162
+ */
1163
+ var divider_default = (0, _pandacss_dev.defineRecipe)({
1164
+ className: "divider",
1165
+ description: "ディバイダーは、異なるセクション、コンポーネント、またはコンテンツのグループ間に設けられる視覚的な区切りで、HTMLのhr要素に相当します。要素間に明確な区切りを設けることで、読みやすさを向上させる役割を果たします。",
1166
+ variants: { color: {
1167
+ "gray-420": { borderColor: "solid-gray.420" },
1168
+ "gray-536": { borderColor: "solid-gray.536" },
1169
+ black: { borderColor: "black" }
1170
+ } },
1171
+ defaultVariants: { color: "gray-420" }
1172
+ });
1173
+
1174
+ //#endregion
1175
+ //#region src/recipes/drawer.ts
1176
+ /**
1177
+ * source:
1178
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Drawer/Drawer.stories.tsx
1179
+ * https://github.com/cschroeter/park-ui/blob/main/packages/preset/src/theme/recipes/drawer.ts
1180
+ */
1181
+ const anatomy = _zag_js_dialog.anatomy.extendWith("header", "body", "footer");
1182
+ var drawer_default = (0, _pandacss_dev.defineSlotRecipe)({
1183
+ className: "drawer",
1184
+ description: "ブラウザ画面の四辺(上下左右端)から展開し、モバイルメニューなどのコンポーネントを格納可能なコンテナです。",
1185
+ slots: anatomy.keys(),
1186
+ base: {
1187
+ backdrop: {
1188
+ backdropFilter: "blur(4px)",
1189
+ background: "solid-gray.100/90",
1190
+ height: "100vh",
1191
+ position: "fixed",
1192
+ top: 0,
1193
+ left: 0,
1194
+ width: "100vw",
1195
+ zIndex: 10,
1196
+ _open: { animation: "backdrop-in" },
1197
+ _closed: { animation: "backdrop-out" }
1198
+ },
1199
+ positioner: {
1200
+ alignItems: "center",
1201
+ display: "flex",
1202
+ height: "100dvh",
1203
+ justifyContent: "center",
1204
+ position: "fixed",
1205
+ top: 0,
1206
+ width: 72,
1207
+ zIndex: 1400
1208
+ },
1209
+ content: {
1210
+ margin: "unset",
1211
+ maxWidth: "full",
1212
+ maxHeight: "full",
1213
+ overflow: "visible",
1214
+ insetInlineStart: "auto",
1215
+ width: "full",
1216
+ borderColor: "transparent",
1217
+ background: "white",
1218
+ boxShadow: 2,
1219
+ display: "grid",
1220
+ gridTemplateRows: "auto 1fr",
1221
+ height: "100dvh",
1222
+ _hidden: { display: "none" }
1223
+ },
1224
+ header: {
1225
+ display: "flex",
1226
+ justifyContent: "start",
1227
+ py: 4,
1228
+ px: 4
1229
+ },
1230
+ title: { textStyle: "std-20B-150" },
1231
+ body: {
1232
+ overflow: "auto",
1233
+ px: 4,
1234
+ py: 4,
1235
+ textStyle: "std-17N-170"
1236
+ }
1237
+ },
1238
+ variants: { placement: {
1239
+ right: {
1240
+ positioner: { right: 0 },
1241
+ content: { borderLeftWidth: "1px" }
1242
+ },
1243
+ left: {
1244
+ positioner: { left: 0 },
1245
+ content: { borderRightWidth: "1px" }
1246
+ }
1247
+ } },
1248
+ defaultVariants: { placement: "right" }
1249
+ });
1250
+
1251
+ //#endregion
1252
+ //#region src/recipes/emergency-banner.ts
1253
+ /**
1254
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/EmergencyBanner/EmergencyBanner.tsx
1255
+ * https://github.com/digital-go-jp/design-system-example-components-html/blob/main/src/components/emergency-banner/emergency-banner.css
1256
+ */
1257
+ var emergency_banner_default = (0, _pandacss_dev.defineSlotRecipe)({
1258
+ className: "emergency-banner",
1259
+ slots: emergencyBannerAnatomy.keys(),
1260
+ base: {
1261
+ root: {
1262
+ display: "block",
1263
+ px: {
1264
+ base: 2.5,
1265
+ md: 6.5
1266
+ },
1267
+ py: {
1268
+ base: 3.5,
1269
+ md: 6.5
1270
+ },
1271
+ bg: "white",
1272
+ borderWidth: "6px",
1273
+ borderColor: "warning.orange.1",
1274
+ color: "solid-gray.800"
1275
+ },
1276
+ heading: {
1277
+ color: "black",
1278
+ textStyle: {
1279
+ base: "std-20B-150",
1280
+ md: "std-24B-150"
1281
+ },
1282
+ _before: { content: "\"【緊急】\"" }
1283
+ },
1284
+ body: { mt: {
1285
+ base: 2,
1286
+ md: 4
1287
+ } },
1288
+ action: {
1289
+ pt: {
1290
+ base: 2,
1291
+ md: 3
1292
+ },
1293
+ pb: { md: 1 },
1294
+ display: { md: "flex" },
1295
+ justifyContent: { md: "flex" }
1296
+ },
1297
+ button: {
1298
+ position: "relative",
1299
+ display: "block",
1300
+ mx: "auto",
1301
+ p: {
1302
+ base: 4.5,
1303
+ md: 5
1304
+ },
1305
+ width: {
1306
+ base: "full",
1307
+ md: "fit-content"
1308
+ },
1309
+ minWidth: "50%",
1310
+ borderWidth: {
1311
+ base: "2px",
1312
+ md: "4px"
1313
+ },
1314
+ borderColor: "transparent",
1315
+ bg: {
1316
+ base: "error.1",
1317
+ _hover: "error.2"
1318
+ },
1319
+ color: "white",
1320
+ textStyle: "oln-16B-100",
1321
+ textAlign: "center",
1322
+ rounded: {
1323
+ base: 12,
1324
+ md: 16
1325
+ },
1326
+ _hover: {
1327
+ textDecoration: "underline",
1328
+ textUnderlineOffset: "calc(3 / 16 * 1rem)"
1329
+ },
1330
+ _after: {
1331
+ content: "\"\"",
1332
+ position: "absolute",
1333
+ inset: 0,
1334
+ borderColor: "white",
1335
+ borderWidth: {
1336
+ base: "2px",
1337
+ md: "4px"
1338
+ },
1339
+ rounded: {
1340
+ base: 2.5,
1341
+ md: 12
1342
+ }
1343
+ },
1344
+ _focusVisible: {
1345
+ outlineStyle: "solid",
1346
+ outlineWidth: "4px",
1347
+ outlineColor: "black",
1348
+ outlineOffset: .5,
1349
+ focusBox: "calc({spacing.1} / 2)"
1350
+ }
1351
+ }
1352
+ }
1353
+ });
1354
+
1355
+ //#endregion
1356
+ //#region src/recipes/error-text.ts
1357
+ /**
1358
+ * source:
1359
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/ErrorText/ErrorText.tsx
1360
+ */
1361
+ var error_text_default = (0, _pandacss_dev.defineRecipe)({
1362
+ className: "error-text",
1363
+ base: {
1364
+ textStyle: "dns-16N-130",
1365
+ color: "error.1"
1366
+ }
1367
+ });
1368
+
1369
+ //#endregion
1370
+ //#region src/recipes/requirement-badge.ts
1371
+ /**
1372
+ * source:
1373
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/RequirementBadge/RequirementBadge.tsx
1374
+ */
1375
+ var requirement_badge_default = (0, _pandacss_dev.defineRecipe)({
1376
+ className: "requirement-badge",
1377
+ base: {
1378
+ textStyle: "oln-16N-100",
1379
+ color: "red.800"
1380
+ }
1381
+ });
1382
+
1383
+ //#endregion
1384
+ //#region src/recipes/support-text.ts
1385
+ /**
1386
+ * source:
1387
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/SupportText/SupportText.tsx
1388
+ */
1389
+ var support_text_default = (0, _pandacss_dev.defineRecipe)({
1390
+ className: "support-text",
1391
+ base: {
1392
+ textStyle: "std-16N-170",
1393
+ color: "solid-gray.600"
1394
+ }
1395
+ });
1396
+
1397
+ //#endregion
1398
+ //#region src/recipes/textarea.ts
1399
+ /**
1400
+ * source:
1401
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Textarea/Textarea.tsx
1402
+ */
1403
+ var textarea_default = (0, _pandacss_dev.defineRecipe)({
1404
+ className: "textarea",
1405
+ description: "テキストエリアコンポーネントは、1行以上のテキストを入力する場合に使用します。",
1406
+ base: {
1407
+ rounded: 8,
1408
+ p: 4,
1409
+ textStyle: "std-16N-170",
1410
+ bg: {
1411
+ base: "white",
1412
+ _disabled: "solid-gray.50"
1413
+ },
1414
+ color: {
1415
+ base: "solid-gray.800",
1416
+ _disabled: {
1417
+ base: "solid-gray.420",
1418
+ _highContrast: "GrayText"
1419
+ }
1420
+ },
1421
+ borderStyle: {
1422
+ base: "solid",
1423
+ _readOnly: "dashed"
1424
+ },
1425
+ borderWidth: "1px",
1426
+ borderColor: {
1427
+ base: "solid-gray.600",
1428
+ _hover: "black",
1429
+ _disabled: {
1430
+ base: "solid-gray.300",
1431
+ _hover: "GrayText"
1432
+ },
1433
+ _invalid: {
1434
+ base: "error.1",
1435
+ _hover: "red.1000"
1436
+ }
1437
+ },
1438
+ _focus: {
1439
+ outlineStyle: "solid",
1440
+ outlineWidth: "4px",
1441
+ outlineColor: "black",
1442
+ outlineOffset: .5,
1443
+ focusBox: "calc({spacing.1} / 2)"
1444
+ }
1445
+ }
1446
+ });
1447
+
1448
+ //#endregion
1449
+ //#region src/recipes/field.ts
1450
+ /**
1451
+ * source:
1452
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Input/Input.tsx
1453
+ */
1454
+ const field = (0, _pandacss_dev.defineSlotRecipe)({
1455
+ className: "field",
1456
+ slots: fieldAnatomy.keys(),
1457
+ base: {
1458
+ root: {
1459
+ display: "flex",
1460
+ flexDirection: "column",
1461
+ gap: 1.5
1462
+ },
1463
+ label: { ...label_default.base },
1464
+ input: { ...input_default.base },
1465
+ textarea: { ...textarea_default.base },
1466
+ select: { ...select_box_default.base },
1467
+ errorText: { ...error_text_default.base },
1468
+ supportText: { ...support_text_default.base },
1469
+ requirementBadge: { ...requirement_badge_default.base }
1470
+ },
1471
+ variants: { size: {
1472
+ lg: {
1473
+ label: { ...label_default.variants?.size?.lg },
1474
+ input: { ...input_default.variants?.size?.lg },
1475
+ select: { ...select_box_default.variants?.size?.lg }
1476
+ },
1477
+ md: {
1478
+ label: { ...label_default.variants?.size?.md },
1479
+ input: { ...input_default.variants?.size?.md },
1480
+ select: { ...select_box_default.variants?.size?.md }
1481
+ },
1482
+ sm: {
1483
+ label: { ...label_default.variants?.size?.sm },
1484
+ input: { ...input_default.variants?.size?.sm },
1485
+ select: { ...select_box_default.variants?.size?.sm }
1486
+ }
1487
+ } },
1488
+ defaultVariants: { size: "md" }
1489
+ });
1490
+ var field_default = field;
1491
+
1492
+ //#endregion
1493
+ //#region src/recipes/fieldset.ts
1494
+ var fieldset_default = (0, _pandacss_dev.defineSlotRecipe)({
1495
+ className: "fieldset",
1496
+ slots: fieldsetAnatomy.keys(),
1497
+ base: {
1498
+ legend: { ...label_default.base },
1499
+ supportText: { ...support_text_default.base },
1500
+ errorText: { ...error_text_default.base }
1501
+ },
1502
+ variants: { size: {
1503
+ lg: { legend: { ...label_default.variants?.size?.lg } },
1504
+ md: { legend: { ...label_default.variants?.size?.md } },
1505
+ sm: { legend: { ...label_default.variants?.size?.sm } }
1506
+ } },
1507
+ defaultVariants: { size: "md" }
1508
+ });
1509
+
1510
+ //#endregion
1511
+ //#region src/recipes/file-upload.ts
1512
+ var file_upload_default = (0, _pandacss_dev.defineSlotRecipe)({
1513
+ className: "file-upload",
1514
+ slots: _zag_js_file_upload.anatomy.extendWith("itemDetail").keys(),
1515
+ base: {
1516
+ root: {
1517
+ display: "flex",
1518
+ flexDirection: "column",
1519
+ alignItems: "start",
1520
+ gap: 4,
1521
+ textStyle: "std-16N-170"
1522
+ },
1523
+ dropzone: {
1524
+ display: "flex",
1525
+ flexDirection: "column",
1526
+ justifyContent: "space-between",
1527
+ width: "full",
1528
+ minHeight: "208px",
1529
+ bg: {
1530
+ base: "solid-gray.bg",
1531
+ _dragging: "green.50"
1532
+ },
1533
+ outlineStyle: "solid",
1534
+ outlineColor: {
1535
+ base: "solid-gray.536",
1536
+ _dragging: "success.1",
1537
+ _invalid: "error.1"
1538
+ },
1539
+ outlineWidth: {
1540
+ base: "1px",
1541
+ _dragging: "4px"
1542
+ },
1543
+ rounded: 8,
1544
+ pt: 8,
1545
+ pb: 6,
1546
+ pl: 7,
1547
+ pr: 8
1548
+ },
1549
+ trigger: { flexShrink: 0 },
1550
+ label: {
1551
+ ...label_default.base,
1552
+ textStyle: "std-17B-170"
1553
+ },
1554
+ itemGroup: {
1555
+ display: "flex",
1556
+ flexDirection: "column",
1557
+ gap: 1,
1558
+ listStyle: "inside deciminal"
1559
+ },
1560
+ item: {
1561
+ display: "list-item",
1562
+ color: {
1563
+ base: "solid-gray.600",
1564
+ "[data-status=rejected]": "error.1",
1565
+ _marker: "solid-gray.600"
1566
+ },
1567
+ "& > *": {
1568
+ display: "inline",
1569
+ mr: {
1570
+ base: 2,
1571
+ _last: 0
1572
+ }
1573
+ }
1574
+ },
1575
+ itemDetail: {
1576
+ color: {
1577
+ base: "solid-gray.600",
1578
+ "[data-status=rejected] &": "error.1"
1579
+ },
1580
+ borderLeftWidth: {
1581
+ base: "0px",
1582
+ "[data-status=rejected] &": "4px"
1583
+ },
1584
+ borderColor: "currentcolor",
1585
+ pl: {
1586
+ base: 0,
1587
+ "[data-status=rejected] &": 2
1588
+ },
1589
+ display: "inline-block",
1590
+ verticalAlign: "text-top"
1591
+ },
1592
+ itemName: {
1593
+ textStyle: "std-16B-170",
1594
+ color: {
1595
+ base: "solid-gray.800",
1596
+ "[data-status=rejected] &": "error.1"
1597
+ }
1598
+ },
1599
+ itemDeleteTrigger: {
1600
+ ...link_default.base,
1601
+ cursor: "pointer"
1602
+ }
1603
+ }
1604
+ });
1605
+
1606
+ //#endregion
1607
+ //#region src/recipes/hamburger-menu-button.ts
1608
+ /**
1609
+ * source:
1610
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/HamburgerMenuButton/HamburgerMenuButton.tsx
1611
+ */
1612
+ var hamburger_menu_button_default = (0, _pandacss_dev.defineRecipe)({
1613
+ className: "hamburger-menu-button",
1614
+ base: {
1615
+ display: "flex",
1616
+ width: "fit-content",
1617
+ alignItems: "center",
1618
+ textStyle: "oln-16N-100",
1619
+ rounded: 6,
1620
+ px: 3,
1621
+ pb: 1.5,
1622
+ pt: 1,
1623
+ touchAction: "manipulation",
1624
+ columnGap: 1.5,
1625
+ _hover: {
1626
+ bg: "solid-gray.50",
1627
+ textDecoration: "underline",
1628
+ textUnderlineOffset: "calc(3 / 16 * 1rem)"
1629
+ },
1630
+ _focusVisible: {
1631
+ bg: "yellow.300",
1632
+ outlineStyle: "solid",
1633
+ outlineWidth: "4px",
1634
+ outlineColor: "black",
1635
+ outlineOffset: .5,
1636
+ focusBox: "calc({spacing.1} / 2)"
1637
+ },
1638
+ cursor: "pointer"
1639
+ }
1640
+ });
1641
+
1642
+ //#endregion
1643
+ //#region src/recipes/legend.ts
1644
+ /**
1645
+ * source:
1646
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Legend/Legend.tsx
1647
+ */
1648
+ var legend_default = (0, _pandacss_dev.defineRecipe)({
1649
+ className: "legend",
1650
+ base: {
1651
+ display: "flex",
1652
+ width: "fit-content",
1653
+ alignItems: "center",
1654
+ gap: 2,
1655
+ color: "solid-gray.800"
1656
+ },
1657
+ variants: { size: {
1658
+ sm: { textStyle: "std-16B-170" },
1659
+ md: { textStyle: "std-17B-170" },
1660
+ lg: { textStyle: "std-18B-160" }
1661
+ } },
1662
+ defaultVariants: { size: "md" }
1663
+ });
1664
+
1665
+ //#endregion
1666
+ //#region src/recipes/list.ts
1667
+ var list_default = (0, _pandacss_dev.defineRecipe)({
1668
+ className: "list",
1669
+ base: { py: 1 }
1670
+ });
1671
+
1672
+ //#endregion
1673
+ //#region src/recipes/menu-item.ts
1674
+ /**
1675
+ * reference:
1676
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/LanguageSelector/parts/MenuItem.tsx
1677
+ */
1678
+ var menu_item_default = (0, _pandacss_dev.defineRecipe)({
1679
+ className: "menu-item",
1680
+ base: {
1681
+ display: "flex",
1682
+ position: "relative",
1683
+ alignItems: "center",
1684
+ textStyle: "dns-16N-130",
1685
+ colorPalette: "keyColor",
1686
+ bg: {
1687
+ base: "transparent",
1688
+ _hover: "solid-gray.50",
1689
+ _focusVisible: "yellow.300",
1690
+ _highlighted: "yellow.300",
1691
+ _selected: {
1692
+ base: "colorPalette.100",
1693
+ _hover: "colorPalette.100"
1694
+ },
1695
+ _checked: {
1696
+ base: "colorPalette.100",
1697
+ _hover: "colorPalette.100"
1698
+ },
1699
+ _open: {
1700
+ base: "colorPalette.bg",
1701
+ _hover: "colorPalette.bg"
1702
+ }
1703
+ },
1704
+ color: {
1705
+ base: "solid-gray.800",
1706
+ _selected: "colorPalette.primary.100",
1707
+ _checked: "colorPalette.primary.100",
1708
+ _open: "colorPalette.primary.100"
1709
+ },
1710
+ fontWeight: {
1711
+ base: "normal",
1712
+ _selected: "bold",
1713
+ _checked: "bold"
1714
+ },
1715
+ _hover: {
1716
+ textDecoration: "underline",
1717
+ textUnderlineOffset: "calc(3 / 16 * 1rem)"
1718
+ },
1719
+ py: 3,
1720
+ pl: 3,
1721
+ pr: 6,
1722
+ columnGap: 2,
1723
+ _focusVisible: {
1724
+ rounded: 4,
1725
+ outlineStyle: "solid",
1726
+ outlineWidth: "4px",
1727
+ outlineColor: "black",
1728
+ outlineOffset: .5,
1729
+ focusBox: "{spacing.1.5}",
1730
+ zIndex: 1
1731
+ },
1732
+ _highlighted: {
1733
+ rounded: 4,
1734
+ outlineStyle: "solid",
1735
+ outlineWidth: "4px",
1736
+ outlineColor: "black",
1737
+ outlineOffset: .5,
1738
+ focusBox: "{spacing.1.5}",
1739
+ zIndex: 1
1740
+ }
1741
+ },
1742
+ variants: {
1743
+ variant: {
1744
+ standard: { rounded: 4 },
1745
+ boxed: { rounded: {
1746
+ base: 0,
1747
+ _focusVisible: 4
1748
+ } }
1749
+ },
1750
+ isCondensed: { true: {
1751
+ py: 1.5,
1752
+ pl: 1.5,
1753
+ pr: 4,
1754
+ columnGap: 1.5
1755
+ } }
1756
+ },
1757
+ defaultVariants: {
1758
+ variant: "standard",
1759
+ isCondensed: false
1760
+ }
1761
+ });
1762
+
1763
+ //#endregion
1764
+ //#region src/recipes/menu.ts
1765
+ /**
1766
+ * source:
1767
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/LanguageSelector/parts/Menu.tsx
1768
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/LanguageSelector/parts/MenuItem.tsx
1769
+ */
1770
+ const itemStyle = { ...menu_item_default.base };
1771
+ var menu_default = (0, _pandacss_dev.defineSlotRecipe)({
1772
+ className: "menu",
1773
+ slots: _zag_js_menu.anatomy.keys(),
1774
+ base: {
1775
+ content: {
1776
+ minWidth: "fit-content",
1777
+ width: "auto",
1778
+ maxHeight: "calc({spacing.1} * 75.5)",
1779
+ py: 2,
1780
+ borderWidth: "1px",
1781
+ borderColor: "solid-gray.420",
1782
+ bg: "white",
1783
+ rounded: 8,
1784
+ boxShadow: 1
1785
+ },
1786
+ itemGroupLabel: {
1787
+ ...itemStyle,
1788
+ fontWeight: "bold"
1789
+ },
1790
+ triggerItem: { ...itemStyle },
1791
+ item: {
1792
+ ...itemStyle,
1793
+ textDecoration: {
1794
+ base: "none",
1795
+ _hover: "underline"
1796
+ },
1797
+ textUnderlineOffset: "calc(3 / 16 * 1rem)",
1798
+ _checked: {
1799
+ bg: "colorPalette.100",
1800
+ color: "colorPalette.primary.100",
1801
+ fontWeight: "bold"
1802
+ },
1803
+ _focusVisible: {
1804
+ outlineStyle: "solid",
1805
+ outlineWidth: "4px",
1806
+ outlineColor: "black",
1807
+ outlineOffset: .5,
1808
+ focusBox: "calc({spacing.1} / 2)",
1809
+ zIndex: 1
1810
+ }
1811
+ }
1812
+ },
1813
+ variants: { isCondensed: { true: {
1814
+ content: { maxHeight: "calc({spacing.2} * 28)" },
1815
+ itemGroupLabel: {
1816
+ py: 1.5,
1817
+ pl: 1.5,
1818
+ pr: 4,
1819
+ columnGap: 1.5
1820
+ },
1821
+ item: {
1822
+ py: 1.5,
1823
+ pl: 1.5,
1824
+ pr: 4,
1825
+ columnGap: 1.5
1826
+ },
1827
+ triggerItem: {
1828
+ py: 1.5,
1829
+ pl: 1.5,
1830
+ pr: 4,
1831
+ columnGap: 1.5
1832
+ }
1833
+ } } },
1834
+ defaultVariants: { isCondensed: false }
1835
+ });
1836
+
1837
+ //#endregion
1838
+ //#region src/recipes/menu-list.ts
1839
+ var menu_list_default = (0, _pandacss_dev.defineSlotRecipe)({
1840
+ className: "menu-list",
1841
+ slots: menuListAnatomy.keys(),
1842
+ base: {
1843
+ root: {},
1844
+ label: {
1845
+ py: 3,
1846
+ pl: 3,
1847
+ pr: 6,
1848
+ textStyle: "oln-17B-100",
1849
+ textWrap: "nowrap",
1850
+ display: "block",
1851
+ mb: 2
1852
+ },
1853
+ content: {},
1854
+ item: { ...menu_item_default.base },
1855
+ itemGroup: { my: 1 },
1856
+ itemGroupLabel: {
1857
+ ...menu_item_default.base,
1858
+ position: "sticky",
1859
+ top: 0,
1860
+ bg: "white"
1861
+ },
1862
+ itemText: {},
1863
+ itemIndicator: {
1864
+ position: "absolute",
1865
+ top: "50%",
1866
+ right: 4,
1867
+ transform: "translateY(-50%)"
1868
+ }
1869
+ },
1870
+ variants: {
1871
+ variant: {
1872
+ standard: {
1873
+ item: { ...menu_item_default.variants?.variant?.standard },
1874
+ itemGroupLabel: { ...menu_item_default.variants?.variant?.standard }
1875
+ },
1876
+ boxed: {
1877
+ item: { ...menu_item_default.variants?.variant?.boxed },
1878
+ itemGroupLabel: { ...menu_item_default.variants?.variant?.boxed }
1879
+ }
1880
+ },
1881
+ isCondensed: { true: {} }
1882
+ },
1883
+ defaultVariants: {
1884
+ variant: "standard",
1885
+ isCondensed: false
1886
+ }
1887
+ });
1888
+
1889
+ //#endregion
1890
+ //#region src/recipes/notification-banner.ts
1891
+ /**
1892
+ * source:
1893
+ * https://github.com/digital-go-jp/design-system-example-components-react/tree/main/src/components/NotificationBanner
1894
+ * https://github.com/digital-go-jp/design-system-example-components-html/blob/main/src/components/notification-banner
1895
+ *
1896
+ * inspired by Park UI
1897
+ * https://park-ui.com/react/docs/components/alert
1898
+ */
1899
+ var notification_banner_default = (0, _pandacss_dev.defineSlotRecipe)({
1900
+ className: "notification-banner",
1901
+ description: "サイト/サービス全体に関わる、またはページや要素単位における重要度の高い情報を、ユーザーの操作に関わらず、サイト/サービス側からユーザーへ提示する場合に用いる通知バナーです。通知に対するユーザーアクションを要求することが可能です。メンテナンスを通知したい、ユーザーの対応が必要な情報を通知してアクションさせたい、といった要求に対応することができます。",
1902
+ slots: notificationBannerAnatomy.keys(),
1903
+ base: {
1904
+ root: {
1905
+ "--icon-size": {
1906
+ base: "{spacing.6}",
1907
+ md: "{spacing.9}"
1908
+ },
1909
+ "--icon-scale": {
1910
+ base: 24 / 36,
1911
+ md: 1
1912
+ },
1913
+ p: {
1914
+ base: 4,
1915
+ md: 6
1916
+ },
1917
+ borderColor: "currentcolor",
1918
+ display: "grid",
1919
+ gridTemplateColumns: "var(--icon-size) 1fr minmax(0, auto)",
1920
+ columnGap: {
1921
+ base: 3,
1922
+ md: 6
1923
+ },
1924
+ rowGap: 4
1925
+ },
1926
+ header: {
1927
+ display: "grid",
1928
+ gridTemplateColumns: "subgrid",
1929
+ gridColumnStart: 2,
1930
+ gridColumnEnd: -1,
1931
+ placeItems: "start",
1932
+ "& > *:last-child": { gridColumnEnd: -1 }
1933
+ },
1934
+ icon: {
1935
+ mt: {
1936
+ base: .5,
1937
+ md: 0
1938
+ },
1939
+ height: "auto",
1940
+ maxWidth: "full",
1941
+ _before: {
1942
+ content: "\"\"",
1943
+ display: "block",
1944
+ bg: "currentColor",
1945
+ width: "36px",
1946
+ height: "36px",
1947
+ transformOrigin: "left center",
1948
+ transform: "scale(var(--icon-scale))"
1949
+ }
1950
+ },
1951
+ close: {
1952
+ _before: {
1953
+ content: "\"\"",
1954
+ display: "block",
1955
+ mt: .5,
1956
+ width: 6,
1957
+ height: 6,
1958
+ bg: "currentColor",
1959
+ 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')"
1960
+ },
1961
+ ...hamburger_menu_button_default.base,
1962
+ display: "inline-flex",
1963
+ gap: 1,
1964
+ mr: -3,
1965
+ color: "solid-gray.900"
1966
+ },
1967
+ heading: {
1968
+ textStyle: {
1969
+ base: "std-17B-170",
1970
+ md: "std-20B-150"
1971
+ },
1972
+ color: "solid-gray.900",
1973
+ gridColumnStart: 1,
1974
+ mt: {
1975
+ base: "auto",
1976
+ md: .5
1977
+ }
1978
+ },
1979
+ body: {
1980
+ gridColumnStart: {
1981
+ base: 1,
1982
+ md: 2
1983
+ },
1984
+ gridColumnEnd: -1,
1985
+ textStyle: "std-16N-170",
1986
+ color: "solid-gray.800"
1987
+ },
1988
+ actions: {
1989
+ mb: -2,
1990
+ display: "grid",
1991
+ gap: {
1992
+ base: 2,
1993
+ md: 4
1994
+ },
1995
+ gridColumn: {
1996
+ base: "1 / 4",
1997
+ md: "2 / 4"
1998
+ },
1999
+ gridAutoFlow: { md: "column" },
2000
+ justifyContent: { md: "end" }
2001
+ }
2002
+ },
2003
+ variants: {
2004
+ type: {
2005
+ success: {
2006
+ root: {
2007
+ color: "success.2",
2008
+ "--color-chip-color": "currentColor"
2009
+ },
2010
+ icon: { _before: { 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')" } },
2011
+ actions: { "& button": { colorPalette: "green" } }
2012
+ },
2013
+ error: {
2014
+ root: {
2015
+ color: "error.1",
2016
+ "--color-chip-color": "currentColor"
2017
+ },
2018
+ icon: { _before: { 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')" } },
2019
+ actions: { "& button": { colorPalette: "red" } }
2020
+ },
2021
+ warning: {
2022
+ root: {
2023
+ color: "warning.yellow.2",
2024
+ "--color-chip-color": "{colors.yellow.400}"
2025
+ },
2026
+ icon: { _before: { clipPath: "path('M0 34.0909H36L18 3L0 34.0909ZM19.6364 29.1818H16.3636V25.9091H19.6364V29.1818ZM19.6364 22.6364H16.3636V16.0909H19.6364V22.6364Z')" } },
2027
+ actions: { "& button": { colorPalette: "yellow" } }
2028
+ },
2029
+ info1: {
2030
+ root: {
2031
+ color: "blue.900",
2032
+ "--color-chip-color": "currentColor"
2033
+ },
2034
+ icon: { _before: { 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')" } },
2035
+ actions: { "& button": { colorPalette: "blue" } }
2036
+ },
2037
+ info2: {
2038
+ root: {
2039
+ color: "solid-gray.536",
2040
+ "--color-chip-color": "currentColor"
2041
+ },
2042
+ icon: { _before: { 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')" } },
2043
+ actions: { "& button": { colorPalette: "solid-gray" } }
2044
+ }
2045
+ },
2046
+ bannerStyle: {
2047
+ standard: { root: {
2048
+ borderWidth: "3px",
2049
+ rounded: 12
2050
+ } },
2051
+ "color-chip": { root: {
2052
+ borderWidth: "2px",
2053
+ pl: {
2054
+ base: 6,
2055
+ md: 10
2056
+ },
2057
+ shadow: "inset 16px 0 0 0 var(--color-chip-color)"
2058
+ } }
2059
+ }
2060
+ },
2061
+ defaultVariants: {
2062
+ type: "info1",
2063
+ bannerStyle: "standard"
2064
+ }
2065
+ });
2066
+
2067
+ //#endregion
2068
+ //#region src/recipes/ordered-list.ts
2069
+ /**
2070
+ * source:
2071
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Ol/Ol.tsx
2072
+ */
2073
+ var ordered_list_default = (0, _pandacss_dev.defineRecipe)({
2074
+ className: "ordered-list",
2075
+ base: {
2076
+ pl: 8,
2077
+ listStyle: "revert",
2078
+ "&:where(ol,ul)": {
2079
+ mt: 1,
2080
+ mb: -1
2081
+ }
2082
+ }
2083
+ });
2084
+
2085
+ //#endregion
2086
+ //#region src/recipes/progress.ts
2087
+ /**
2088
+ * references:
2089
+ * https://github.com/cschroeter/park-ui/blob/main/packages/preset/src/theme/recipes/progress.ts
2090
+ * https://github.com/chakra-ui/chakra-ui/blob/main/packages/react/src/theme/recipes/progress.ts
2091
+ * https://github.com/chakra-ui/chakra-ui/blob/main/packages/react/src/theme/recipes/progress-circle.ts
2092
+ */
2093
+ var progress_default = (0, _pandacss_dev.defineSlotRecipe)({
2094
+ className: "progress",
2095
+ description: "プログレスインジケーターは、ユーザーのアクションに対して処理進行中であることを通知します。データ取得リクエストの応答を待っていることをユーザーに伝えたいといった要求に対応します。",
2096
+ slots: _zag_js_progress.anatomy.keys(),
2097
+ base: {
2098
+ root: {
2099
+ display: "flex",
2100
+ alignItems: "center",
2101
+ colorPalette: "keyColor"
2102
+ },
2103
+ track: {
2104
+ height: "4px",
2105
+ bg: "colorPalette.500",
2106
+ rounded: "full",
2107
+ overflow: "hidden",
2108
+ position: "relative"
2109
+ },
2110
+ range: {
2111
+ bg: "colorPalette.1200",
2112
+ height: "full",
2113
+ outlineStyle: "solid",
2114
+ outlineWidth: "1px",
2115
+ outlineColor: "white",
2116
+ rounded: "full",
2117
+ transition: "width 0.2s ease-in-out",
2118
+ "--translate-x": "-100%",
2119
+ _indeterminate: {
2120
+ "--animate-from-x": "-40%",
2121
+ "--animate-to-x": "100%",
2122
+ position: "absolute",
2123
+ willChange: "left",
2124
+ minWidth: "50%",
2125
+ animation: "position 1s ease infinite normal none running",
2126
+ backgroundImage: `linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)`
2127
+ }
2128
+ },
2129
+ circle: { _indeterminate: { animation: "spin 2s linear infinite" } },
2130
+ circleTrack: { stroke: "colorPalette.500" },
2131
+ circleRange: {
2132
+ stroke: "colorPalette.1200",
2133
+ strokeLinecap: "round",
2134
+ transitionProperty: "stroke-dashoffset, stroke-dasharray",
2135
+ transitionDuration: "0.6s",
2136
+ _indeterminate: { animation: "circular-progress 1.5s linear infinite" }
2137
+ },
2138
+ label: { textStyle: "std-16N-170" }
2139
+ },
2140
+ variants: { layout: {
2141
+ vertical: {
2142
+ root: {
2143
+ flexDirection: "column",
2144
+ gap: 4,
2145
+ "--size": "48px",
2146
+ "--thickness": "4px"
2147
+ },
2148
+ track: { width: "240px" }
2149
+ },
2150
+ horizontal: {
2151
+ root: {
2152
+ flexDirection: "row",
2153
+ gap: 2,
2154
+ "--size": "24px",
2155
+ "--thickness": "2px"
2156
+ },
2157
+ track: { width: "80px" }
2158
+ }
2159
+ } },
2160
+ defaultVariants: { layout: "vertical" }
2161
+ });
2162
+
2163
+ //#endregion
2164
+ //#region src/recipes/radio-group.ts
2165
+ /**
2166
+ * source:
2167
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Radio/Radio.tsx
2168
+ */
2169
+ var radio_group_default = (0, _pandacss_dev.defineSlotRecipe)({
2170
+ className: "radio-group",
2171
+ slots: _zag_js_radio_group.anatomy.keys(),
2172
+ base: {
2173
+ root: {
2174
+ display: "flex",
2175
+ colorPalette: "keyColor",
2176
+ _vertical: {
2177
+ flexDirection: "column",
2178
+ gap: 0
2179
+ },
2180
+ _horizonal: {
2181
+ flexDirection: "row",
2182
+ gap: 4
2183
+ }
2184
+ },
2185
+ label: { ...legend_default.base },
2186
+ item: {
2187
+ display: "flex",
2188
+ width: "fit-content",
2189
+ alignItems: "start",
2190
+ py: 2
2191
+ },
2192
+ itemControl: {
2193
+ appearance: "none",
2194
+ rounded: "full",
2195
+ width: "calc(var(--radio-size) * 5 / 6)",
2196
+ height: "calc(var(--radio-size) * 5 / 6)",
2197
+ m: "calc(var(--radio-size) / 12)",
2198
+ flexShrink: 0,
2199
+ bg: {
2200
+ base: "white",
2201
+ _disabled: "solid-gray.50"
2202
+ },
2203
+ borderColor: {
2204
+ base: "solid-gray.600",
2205
+ _hover: "black",
2206
+ _highContrast: { base: "ButtonText" },
2207
+ _checked: {
2208
+ base: "colorPalette.primary",
2209
+ _hover: "colorPalette.primary.200",
2210
+ _disabled: {
2211
+ base: "solid-gray.300",
2212
+ _highContrast: "GrayText"
2213
+ },
2214
+ _highContrast: "Highlight"
2215
+ },
2216
+ _invalid: {
2217
+ base: "error.1",
2218
+ _hover: "red.1000",
2219
+ _disabled: "solid-gray.300"
2220
+ },
2221
+ _disabled: {
2222
+ base: "solid-gray.300",
2223
+ _highContrast: "GrayText"
2224
+ }
2225
+ },
2226
+ "&:is(:hover, [data-hover]):not([aria-disabled=\"true\"])": {
2227
+ outlineStyle: "solid",
2228
+ outlineWidth: "calc(var(--radio-size) / 12)",
2229
+ outlineColor: "solid-gray.420",
2230
+ _focus: {
2231
+ outlineStyle: "solid",
2232
+ outlineWidth: "4px",
2233
+ outlineColor: "black",
2234
+ outlineOffset: .5,
2235
+ focusBox: "calc({spacing.1} / 2)"
2236
+ }
2237
+ },
2238
+ _focus: {
2239
+ outlineStyle: "solid",
2240
+ outlineWidth: "4px",
2241
+ outlineColor: "black",
2242
+ outlineOffset: .5,
2243
+ focusBox: "calc({spacing.1} / 2)"
2244
+ },
2245
+ _before: {
2246
+ content: "\"\"",
2247
+ display: "none",
2248
+ width: "full",
2249
+ height: "full",
2250
+ clipPath: "circle(calc(5 / 16 * 100%))",
2251
+ bg: "white"
2252
+ },
2253
+ _checked: {
2254
+ _before: {
2255
+ display: "block",
2256
+ bg: {
2257
+ base: "colorPalette.primary",
2258
+ _hover: "colorPalette.primary.200",
2259
+ _highContrast: "Highlight"
2260
+ }
2261
+ },
2262
+ _invalid: { _before: { bg: {
2263
+ base: "error.1",
2264
+ _hover: "red.1000"
2265
+ } } },
2266
+ _disabled: {
2267
+ _before: { bg: {
2268
+ base: "solid-gray.300",
2269
+ _highContrast: "GrayText"
2270
+ } },
2271
+ _invalid: { _before: { bg: { base: "solid-gray.300" } } }
2272
+ }
2273
+ }
2274
+ },
2275
+ itemText: { color: "solid-gray.800" }
2276
+ },
2277
+ variants: { size: {
2278
+ sm: {
2279
+ label: { ...legend_default.variants?.size?.sm },
2280
+ item: { gap: 1 },
2281
+ itemControl: {
2282
+ "--radio-size": "{spacing.6}",
2283
+ borderWidth: "{spacing.0.5}"
2284
+ },
2285
+ itemText: {
2286
+ pt: "1px",
2287
+ textStyle: "dns-16N-130"
2288
+ }
2289
+ },
2290
+ md: {
2291
+ label: { ...legend_default.variants?.size?.md },
2292
+ item: { gap: 2 },
2293
+ itemControl: {
2294
+ "--radio-size": "{spacing.8}",
2295
+ borderWidth: "{spacing.0.5}"
2296
+ },
2297
+ itemText: {
2298
+ pt: 1,
2299
+ textStyle: "dns-16N-130"
2300
+ }
2301
+ },
2302
+ lg: {
2303
+ label: { ...legend_default.variants?.size?.lg },
2304
+ item: { gap: 3 },
2305
+ itemControl: {
2306
+ "--radio-size": "{spacing.11}",
2307
+ borderWidth: "calc({spacing.1} * 3 / 4)"
2308
+ },
2309
+ itemText: {
2310
+ pt: 2.5,
2311
+ textStyle: "dns-17N-130"
2312
+ }
2313
+ }
2314
+ } },
2315
+ defaultVariants: { size: "sm" }
2316
+ });
2317
+
2318
+ //#endregion
2319
+ //#region src/recipes/resource-list.ts
2320
+ var resource_list_default = (0, _pandacss_dev.defineSlotRecipe)({
2321
+ className: "resource-list",
2322
+ slots: resourceListAnatomy.keys(),
2323
+ base: {
2324
+ root: {
2325
+ display: "flex",
2326
+ borderColor: "solid-gray.420",
2327
+ overflow: "hidden",
2328
+ colorPalette: "keyColor",
2329
+ bg: {
2330
+ "&:has(input:checked)": "colorPalette.bg",
2331
+ _selected: "colorPalette.bg"
2332
+ }
2333
+ },
2334
+ main: {
2335
+ display: "flex",
2336
+ flexGrow: 1,
2337
+ flexDirection: "row",
2338
+ alignItems: "center",
2339
+ justifyContent: "start",
2340
+ gap: {
2341
+ base: 4,
2342
+ md: 6
2343
+ },
2344
+ color: "solid-gray.800",
2345
+ textStyle: "dns-16N-130",
2346
+ py: 4,
2347
+ px: {
2348
+ base: 4,
2349
+ md: 6
2350
+ },
2351
+ bg: {
2352
+ base: "transparent",
2353
+ _hover: "solid-gray.50"
2354
+ },
2355
+ _focusVisible: {
2356
+ outlineStyle: "solid",
2357
+ outlineWidth: "4px",
2358
+ outlineColor: "black",
2359
+ outlineOffset: .5,
2360
+ focusBox: "calc({spacing.1} / 2)"
2361
+ }
2362
+ },
2363
+ action: {
2364
+ p: 4,
2365
+ display: "flex",
2366
+ alignItems: "center",
2367
+ justifyContent: "center"
2368
+ },
2369
+ content: {
2370
+ height: "full",
2371
+ flexGrow: 1,
2372
+ display: "flex",
2373
+ flexDirection: "column"
2374
+ },
2375
+ title: {
2376
+ textStyle: "std-20B-150",
2377
+ width: "fit-content"
2378
+ }
2379
+ },
2380
+ variants: {
2381
+ variant: {
2382
+ list: { root: { borderBottomWidth: "1px" } },
2383
+ frame: { root: {
2384
+ rounded: 16,
2385
+ borderWidth: "1px"
2386
+ } }
2387
+ },
2388
+ asLink: { true: {
2389
+ main: { position: "relative" },
2390
+ title: { "& > a": { _before: {
2391
+ content: "\"\"",
2392
+ position: "absolute",
2393
+ top: 0,
2394
+ left: 0,
2395
+ width: "full",
2396
+ height: "full",
2397
+ zIndex: 0,
2398
+ cursor: "inherit"
2399
+ } } }
2400
+ } }
2401
+ },
2402
+ defaultVariants: {
2403
+ variant: "list",
2404
+ asLink: false
2405
+ }
2406
+ });
2407
+
2408
+ //#endregion
2409
+ //#region src/recipes/select.ts
2410
+ /**
2411
+ * source:
2412
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Select/Select.tsx
2413
+ */
2414
+ var select_default = (0, _pandacss_dev.defineSlotRecipe)({
2415
+ className: "select",
2416
+ description: "セレクトボックスは、複数の選択肢を提供するフォームコントロールです。",
2417
+ slots: _zag_js_select.anatomy.keys(),
2418
+ base: {
2419
+ root: {
2420
+ display: "flex",
2421
+ flexDirection: "column",
2422
+ gap: 1.5
2423
+ },
2424
+ label: { ...label_default.base },
2425
+ control: {
2426
+ position: "relative",
2427
+ minWidth: "80px",
2428
+ maxWidth: "full"
2429
+ },
2430
+ trigger: {
2431
+ ...select_box_default.base,
2432
+ pr: 20
2433
+ },
2434
+ indicator: {
2435
+ pointerEvents: "none",
2436
+ position: "absolute",
2437
+ top: "50%",
2438
+ transform: "translateY(-50%)",
2439
+ right: 4,
2440
+ color: {
2441
+ base: {
2442
+ base: "solid-gray.900",
2443
+ _highContrast: "CanvasText"
2444
+ },
2445
+ _disabled: {
2446
+ base: "solid-gray.420",
2447
+ _highContrast: "GrayText"
2448
+ }
2449
+ }
2450
+ },
2451
+ clearTrigger: {
2452
+ position: "absolute",
2453
+ top: "50%",
2454
+ right: 12,
2455
+ transform: "translateY(-50%)"
2456
+ },
2457
+ content: { ...menu_default.base?.content },
2458
+ itemGroupLabel: {
2459
+ textStyle: "oln-16N-1",
2460
+ fontWeight: "bold",
2461
+ py: 3,
2462
+ pl: 3,
2463
+ pr: 6
2464
+ },
2465
+ item: { ...menu_default.base?.item },
2466
+ itemIndicator: {
2467
+ pointerEvents: "none",
2468
+ position: "absolute",
2469
+ right: 4,
2470
+ top: "50%",
2471
+ transform: "translateY(-50%)"
2472
+ }
2473
+ },
2474
+ variants: { size: {
2475
+ lg: {
2476
+ trigger: { ...select_box_default.variants?.size?.lg },
2477
+ label: { ...label_default.variants?.size?.lg }
2478
+ },
2479
+ md: {
2480
+ trigger: { ...select_box_default.variants?.size?.md },
2481
+ label: { ...label_default.variants?.size?.md }
2482
+ },
2483
+ sm: {
2484
+ trigger: { ...select_box_default.variants?.size?.sm },
2485
+ label: { ...label_default.variants?.size?.sm }
2486
+ }
2487
+ } },
2488
+ defaultVariants: { size: "lg" }
2489
+ });
2490
+
2491
+ //#endregion
2492
+ //#region src/recipes/step-navigation.ts
2493
+ /**
2494
+ * reference:
2495
+ * https://github.com/digital-go-jp/design-system-example-components-html/tree/main/src/components/step-navigation
2496
+ */
2497
+ var step_navigation_default = (0, _pandacss_dev.defineSlotRecipe)({
2498
+ className: "step-navigation",
2499
+ slots: _zag_js_steps.anatomy.extendWith("title", "description").keys(),
2500
+ base: {
2501
+ root: {
2502
+ textStyle: "std-16N-170",
2503
+ overflowWrap: "anywhere",
2504
+ colorPalette: "keyColor"
2505
+ },
2506
+ list: {
2507
+ m: 0,
2508
+ p: 0,
2509
+ display: "flex",
2510
+ _horizontal: { flexDirection: "row" },
2511
+ _vertical: { flexDirection: "column" }
2512
+ },
2513
+ item: {
2514
+ position: "relative",
2515
+ boxSizing: "border-box",
2516
+ _last: { "& [data-part=separator]": { display: "none" } },
2517
+ _horizontal: {
2518
+ width: "calc(var(--_step-width, 320) / 16 * 1rem)",
2519
+ minWidth: "calc(var(--_step-min-width, 160) / 16 * 1rem)",
2520
+ px: 4
2521
+ },
2522
+ _vertical: {
2523
+ flex: 1,
2524
+ pb: 6
2525
+ }
2526
+ },
2527
+ trigger: {
2528
+ display: "block",
2529
+ borderWidth: 0,
2530
+ bg: "none",
2531
+ p: 0,
2532
+ color: "inherit",
2533
+ font: "inherit",
2534
+ textWrap: "pretty",
2535
+ cursor: "pointer",
2536
+ _horizontal: {
2537
+ width: "100%",
2538
+ textAlign: "center"
2539
+ },
2540
+ _vertical: {
2541
+ position: "relative",
2542
+ display: "flex",
2543
+ alignItems: "baseline",
2544
+ columnGap: 4,
2545
+ textAlign: "left"
2546
+ }
2547
+ },
2548
+ indicator: {
2549
+ position: "relative",
2550
+ display: "grid",
2551
+ placeContent: "center",
2552
+ m: 1,
2553
+ boxSizing: "border-box",
2554
+ width: "fit-content",
2555
+ height: "var(--_number-size)",
2556
+ minWidth: "var(--_number-size)",
2557
+ color: "colorPalette.primary",
2558
+ borderWidth: "2px",
2559
+ borderRadius: "full",
2560
+ borderColor: "colorPalette.primary",
2561
+ bg: "white",
2562
+ py: 0,
2563
+ px: .5,
2564
+ textStyle: "std-20B-150",
2565
+ textDecoration: "inherit",
2566
+ textDecorationThickness: "inherit",
2567
+ _after: { content: "\"\"" },
2568
+ _current: {
2569
+ bg: "colorPalette.primary",
2570
+ color: "white",
2571
+ borderColor: "colorPalette.primary",
2572
+ outlineWidth: "var(--_outline-width)",
2573
+ outlineStyle: "solid",
2574
+ outlineColor: "colorPalette.primary",
2575
+ outlineOffset: .5,
2576
+ boxShadow: "0 0 0 {spacing.0.5} white"
2577
+ },
2578
+ _complete: {
2579
+ bg: "colorPalette.bg",
2580
+ _after: {
2581
+ position: "absolute",
2582
+ top: -2.5,
2583
+ left: "calc(50% + {spacing.1.5})",
2584
+ borderRadius: "full",
2585
+ bg: "colorPalette.primary",
2586
+ width: "36px",
2587
+ height: "36px",
2588
+ 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')"
2589
+ }
2590
+ },
2591
+ "[data-orientation=horizontal] > &": {
2592
+ mr: "auto",
2593
+ ml: "auto"
2594
+ },
2595
+ "[data-orientation=vertical] > &": {
2596
+ flexShrink: 0,
2597
+ mx: 1
2598
+ }
2599
+ },
2600
+ title: {
2601
+ display: "block",
2602
+ textStyle: "std-18B-160",
2603
+ textDecorationThickness: "inherit",
2604
+ "[data-orientation=horizontal] &": { mt: "var(--_title-margin)" },
2605
+ "[data-orientation=vertical] &": {
2606
+ pt: "calc(var(--_number-size) / 2 + var(--_number-margin) - 0.875rem)",
2607
+ pb: 0
2608
+ }
2609
+ },
2610
+ description: {
2611
+ mt: "var(--_description-margin)",
2612
+ "[data-orientation=horizontal] &": { textAlign: "center" },
2613
+ "[data-orientation=vertical] &": {
2614
+ mt: "calc(var(--_description-margin) - (var(--_number-size) / 2 + var(--_number-margin) - 0.875rem))",
2615
+ pl: "calc(var(--_number-size) + var(--_number-margin) + var(--_number-margin) + {spacing.4})"
2616
+ }
2617
+ },
2618
+ separator: {
2619
+ position: "absolute",
2620
+ zIndex: -1,
2621
+ content: "\"\"",
2622
+ borderColor: "colorPalette.primary",
2623
+ _horizontal: {
2624
+ top: "calc(var(--_number-size) / 2 + var(--_number-margin))",
2625
+ left: "50%",
2626
+ width: "100%",
2627
+ borderBottomWidth: "1px"
2628
+ },
2629
+ _vertical: {
2630
+ left: "calc(var(--_number-size) / 2 + var(--_number-margin))",
2631
+ top: "calc(50% - {spacing.4})",
2632
+ height: "100%",
2633
+ borderRightWidth: "1px"
2634
+ }
2635
+ }
2636
+ },
2637
+ variants: { size: {
2638
+ md: {
2639
+ root: { root: {
2640
+ "--_number-size": "{spacing.11}",
2641
+ "--_number-margin": "{spacing.1}",
2642
+ "--_outline-width": "{spacing.0.5}",
2643
+ "--_title-margin": "{spacing.6}",
2644
+ "--_description-margin": "{spacing.2}"
2645
+ } },
2646
+ indicator: { _after: { transform: "scale(0.5)" } }
2647
+ },
2648
+ sm: {
2649
+ root: {
2650
+ "--_number-size": "{spacing.8}",
2651
+ "--_number-margin": "calc({spacing.1} * 3 / 4)",
2652
+ "--_outline-width": "calc({spacing.1} / 4)",
2653
+ "--_title-margin": "{spacing.4}",
2654
+ "--_description-margin": "{spacing.1}"
2655
+ },
2656
+ indicator: {
2657
+ m: "calc({spacing.1} * 3 / 4)",
2658
+ borderWidth: "1px",
2659
+ textStyle: "std-16B-170",
2660
+ "[data-orientation=horizontal] > &": {
2661
+ mr: "auto",
2662
+ ml: "auto"
2663
+ },
2664
+ "[data-orientation=vertical] > &": { mx: 1 },
2665
+ _after: { transform: "scale(0.33)" }
2666
+ },
2667
+ title: { textStyle: "std-16B-170" }
2668
+ }
2669
+ } },
2670
+ defaultVariants: { size: "md" }
2671
+ });
2672
+
2673
+ //#endregion
2674
+ //#region src/recipes/table.ts
2675
+ /**
2676
+ * source:
2677
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Table/Table.stories.tsx
2678
+ */
2679
+ var table_default = (0, _pandacss_dev.defineSlotRecipe)({
2680
+ className: "table",
2681
+ slots: tableAnatomy.keys(),
2682
+ base: {
2683
+ root: {
2684
+ maxWidth: "full",
2685
+ colorPalette: "keyColor"
2686
+ },
2687
+ head: { "& tr": {
2688
+ borderColor: "black",
2689
+ bg: "solid-gray.50"
2690
+ } },
2691
+ body: { "& tr": { borderColor: "solid-gray.420" } },
2692
+ foot: {},
2693
+ row: {
2694
+ borderBottomWidth: "1px",
2695
+ "tbody > &:has(input:checked)": { bg: "colorPalette.100" }
2696
+ },
2697
+ header: {
2698
+ px: 4,
2699
+ verticalAlign: "top",
2700
+ textAlign: "start"
2701
+ },
2702
+ cell: {
2703
+ px: 4,
2704
+ verticalAlign: "top"
2705
+ },
2706
+ caption: {
2707
+ mb: 4,
2708
+ textStyle: "oln-17B-100"
2709
+ }
2710
+ },
2711
+ variants: {
2712
+ dense: {
2713
+ false: {
2714
+ root: { textStyle: "std-16N-170" },
2715
+ header: { py: 5 },
2716
+ cell: { py: 5 }
2717
+ },
2718
+ true: {
2719
+ root: { textStyle: "dns-16N-130" },
2720
+ header: { py: 2.5 },
2721
+ cell: { py: 2.5 }
2722
+ }
2723
+ },
2724
+ striped: { true: { body: { "& tr": { _even: { "&:not(:has(input:checked))": { bg: "{colors.colorPalette.bg}/25" } } } } } },
2725
+ hovered: { true: { body: { "& tr": {
2726
+ _hover: { bg: "colorPalette.bg" },
2727
+ _even: { "&:not(:has(input:checked))": { _hover: { bg: "{colors.colorPalette.bg}" } } }
2728
+ } } } }
2729
+ },
2730
+ defaultVariants: {
2731
+ dense: false,
2732
+ striped: false,
2733
+ hovered: false
2734
+ }
2735
+ });
2736
+
2737
+ //#endregion
2738
+ //#region src/recipes/tabs.ts
2739
+ var tabs_default = (0, _pandacss_dev.defineSlotRecipe)({
2740
+ className: "tabs",
2741
+ slots: _zag_js_tabs.anatomy.keys(),
2742
+ base: {
2743
+ root: { colorPalette: "keyColor" },
2744
+ list: {
2745
+ display: "flex",
2746
+ width: "full",
2747
+ alignItems: "end",
2748
+ whiteSpace: "nowrap",
2749
+ borderBottomWidth: "1px",
2750
+ borderColor: "solid-gray.420",
2751
+ overflowX: "auto"
2752
+ },
2753
+ trigger: {
2754
+ position: "relative",
2755
+ zIndex: 0,
2756
+ display: "inline-flex",
2757
+ gap: 2,
2758
+ justifyContent: "center",
2759
+ alignItems: "center",
2760
+ textStyle: {
2761
+ base: "oln-14B-100",
2762
+ md: "oln-16B-100"
2763
+ },
2764
+ px: {
2765
+ base: 4,
2766
+ md: 8
2767
+ },
2768
+ py: 6,
2769
+ cursor: "pointer",
2770
+ bg: {
2771
+ base: "transparent",
2772
+ _hover: "solid-gray.50",
2773
+ _focusVisible: {
2774
+ base: "yellow.300",
2775
+ _hover: "yellow.300"
2776
+ },
2777
+ _selected: {
2778
+ base: "white",
2779
+ _hover: "white",
2780
+ _focusVisible: "yellow.300"
2781
+ }
2782
+ },
2783
+ _focusVisible: {
2784
+ zIndex: 10,
2785
+ rounded: 4,
2786
+ outlineStyle: "solid",
2787
+ outlineWidth: "4px",
2788
+ outlineColor: "black",
2789
+ outlineOffset: .5,
2790
+ focusBox: "calc({spacing.1} / 2)"
2791
+ },
2792
+ _selected: {
2793
+ color: "colorPalette.primary",
2794
+ cursor: "default",
2795
+ _after: {
2796
+ content: "\"\"",
2797
+ position: "absolute",
2798
+ bottom: 0,
2799
+ left: 0,
2800
+ width: "full",
2801
+ borderBottomWidth: "4px",
2802
+ borderBlockColor: "currentcolor"
2803
+ }
2804
+ }
2805
+ }
2806
+ }
2807
+ });
2808
+
2809
+ //#endregion
2810
+ //#region src/recipes/tree-view.ts
2811
+ var tree_view_default = (0, _pandacss_dev.defineSlotRecipe)({
2812
+ className: "tree-view",
2813
+ slots: _zag_js_tree_view.anatomy.keys(),
2814
+ base: {
2815
+ root: {},
2816
+ label: {
2817
+ py: 3,
2818
+ pl: 3,
2819
+ pr: 6,
2820
+ textStyle: "oln-17B-100",
2821
+ textWrap: "nowrap",
2822
+ display: "block"
2823
+ },
2824
+ tree: {},
2825
+ item: { ...menu_item_default.base },
2826
+ itemIndicator: { _empty: {
2827
+ _before: {
2828
+ content: "\"\"",
2829
+ display: "block",
2830
+ width: "24px",
2831
+ height: "24px",
2832
+ bg: "black",
2833
+ clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
2834
+ },
2835
+ _selected: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } }
2836
+ } },
2837
+ itemText: { flexGrow: 1 },
2838
+ branch: {},
2839
+ branchControl: { ...menu_item_default.base },
2840
+ branchTrigger: {},
2841
+ branchContent: {
2842
+ my: 1,
2843
+ pl: 8
2844
+ },
2845
+ branchIndicator: { _empty: {
2846
+ _before: {
2847
+ content: "\"\"",
2848
+ display: "block",
2849
+ width: "24px",
2850
+ height: "24px",
2851
+ bg: "black",
2852
+ clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
2853
+ },
2854
+ _selected: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } },
2855
+ _open: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } }
2856
+ } },
2857
+ branchText: { flexGrow: 1 }
2858
+ },
2859
+ variants: {
2860
+ variant: {
2861
+ standard: {
2862
+ item: { ...menu_item_default.variants?.variant?.standard },
2863
+ branchControl: { ...menu_item_default.variants?.variant?.standard }
2864
+ },
2865
+ boxed: {
2866
+ item: { ...menu_item_default.variants?.variant?.boxed },
2867
+ branchControl: { ...menu_item_default.variants?.variant?.boxed }
2868
+ }
2869
+ },
2870
+ isCondensed: {
2871
+ true: {
2872
+ label: {
2873
+ py: 1.5,
2874
+ pl: 1.5,
2875
+ pr: 4
2876
+ },
2877
+ item: { ...menu_item_default.variants?.isCondensed?.true },
2878
+ branchControl: { ...menu_item_default.variants?.isCondensed?.true }
2879
+ },
2880
+ false: {
2881
+ item: { ...menu_item_default.variants?.isCondensed?.false },
2882
+ branchControl: { ...menu_item_default.variants?.isCondensed?.false }
2883
+ }
2884
+ }
2885
+ }
2886
+ });
2887
+
2888
+ //#endregion
2889
+ //#region src/recipes/unordered-list.ts
2890
+ var unordered_list_default = (0, _pandacss_dev.defineRecipe)({
2891
+ className: "unordered-list",
2892
+ base: {
2893
+ pl: 8,
2894
+ listStyle: "revert",
2895
+ "&:where(ol,ul)": {
2896
+ mt: 1,
2897
+ mb: -1
2898
+ }
2899
+ }
2900
+ });
2901
+
2902
+ //#endregion
2903
+ //#region src/recipes/utility-link.ts
2904
+ /**
2905
+ * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/UtilityLink/UtilityLink.tsx
2906
+ */
2907
+ var utility_link_default = (0, _pandacss_dev.defineRecipe)({
2908
+ className: "utility-link",
2909
+ description: "ユーティリティリンクはふつうの横並びリンクリストに近いが、それよりもコンパクトに作られています。",
2910
+ base: {
2911
+ colorPalette: "keyColor",
2912
+ textStyle: "dns-16N-130",
2913
+ color: {
2914
+ base: "solid-gray.800",
2915
+ _focusVisible: "colorPalette.primary.100"
2916
+ },
2917
+ bg: {
2918
+ base: "transparent",
2919
+ _focusVisible: "yellow.300"
2920
+ },
2921
+ textDecoration: "underline",
2922
+ textDecorationThickness: {
2923
+ base: "1px",
2924
+ _hover: "calc(3 / 16 * 1rem)"
2925
+ },
2926
+ textUnderlineOffset: "calc(3 / 16 * 1rem)",
2927
+ _focusVisible: {
2928
+ rounded: 4,
2929
+ outlineStyle: "solid",
2930
+ outlineWidth: "4px",
2931
+ outlineColor: "black",
2932
+ outlineOffset: .5,
2933
+ focusBox: "calc({spacing.1} / 2)"
2934
+ },
2935
+ display: "inline-flex",
2936
+ alignItems: "center",
2937
+ gap: 1,
2938
+ "& svg": {
2939
+ width: "1em",
2940
+ height: "1em"
2941
+ }
2942
+ }
2943
+ });
2944
+
2945
+ //#endregion
2946
+ //#region src/recipes/index.ts
2947
+ const recipes = {
2948
+ accordion: accordion_default,
2949
+ blockquote: blockquote_default,
2950
+ breadcrumb: breadcrumb_default,
2951
+ button: button_default,
2952
+ card: card_default,
2953
+ checkbox: checkbox_default,
2954
+ chipLabel: chip_label_default,
2955
+ chipTag: chip_tag_default,
2956
+ datePicker: date_picker_default,
2957
+ descriptionList: description_list_default,
2958
+ disclosure: disclosure_default,
2959
+ digitalGoDivider: divider_default,
2960
+ drawer: drawer_default,
2961
+ emergencyBanner: emergency_banner_default,
2962
+ errorText: error_text_default,
2963
+ field: field_default,
2964
+ fieldset: fieldset_default,
2965
+ fileUpload: file_upload_default,
2966
+ hamburgerMenuButton: hamburger_menu_button_default,
2967
+ input: input_default,
2968
+ label: label_default,
2969
+ legend: legend_default,
2970
+ link: link_default,
2971
+ list: list_default,
2972
+ menu: menu_default,
2973
+ menuItem: menu_item_default,
2974
+ menuList: menu_list_default,
2975
+ notificationBanner: notification_banner_default,
2976
+ orderedList: ordered_list_default,
2977
+ progress: progress_default,
2978
+ radioGroup: radio_group_default,
2979
+ requirementBadge: requirement_badge_default,
2980
+ resourceList: resource_list_default,
2981
+ select: select_default,
2982
+ stepNavigation: step_navigation_default,
2983
+ supportText: support_text_default,
2984
+ table: table_default,
2985
+ tabs: tabs_default,
2986
+ textarea: textarea_default,
2987
+ treeView: tree_view_default,
2988
+ unorderedList: unordered_list_default,
2989
+ utilityLink: utility_link_default
2990
+ };
2991
+ var recipes_default = recipes;
2992
+
2993
+ //#endregion
2994
+ //#region src/keyframes.ts
2995
+ const keyframes = {
2996
+ "circular-progress": {
2997
+ "0%": {
2998
+ strokeDasharray: "1, 400",
2999
+ strokeDashoffset: "0"
3000
+ },
3001
+ "50%": {
3002
+ strokeDasharray: "400, 400",
3003
+ strokeDashoffset: "-100%"
3004
+ },
3005
+ "100%": {
3006
+ strokeDasharray: "400, 400",
3007
+ strokeDashoffset: "-260%"
3008
+ }
3009
+ },
3010
+ position: {
3011
+ from: {
3012
+ insetInlineStart: "var(--animate-from-x)",
3013
+ insetBlockStart: "var(--animate-from-y)"
3014
+ },
3015
+ to: {
3016
+ insetInlineStart: "var(--animate-to-x)",
3017
+ insetBlockStart: "var(--animate-to-y)"
3018
+ }
3019
+ }
3020
+ };
3021
+
3022
+ //#endregion
3023
+ //#region src/index.ts
3024
+ const base = {
3025
+ name: "digital-go-pandacss-preset",
3026
+ presets: [_cieloazul310_digital_go_pandacss_plugin.default],
3027
+ theme: {
3028
+ keyframes,
3029
+ recipes: recipes_default
3030
+ }
3031
+ };
3032
+ var src_default = (0, _pandacss_dev.definePreset)(base);
3033
+ const createPreset = (keyColor = "blue") => (0, _pandacss_dev.definePreset)({
3034
+ ...base,
3035
+ theme: {
3036
+ ...base.theme,
3037
+ extend: { semanticTokens: { colors: { keyColor: (0, _cieloazul310_digital_go_pandacss_utils.createKeyColor)(keyColor) } } }
3038
+ }
3039
+ });
3040
+
3041
+ //#endregion
3042
+ exports.createPreset = createPreset;
3043
+ exports.default = src_default;