@cieloazul310/digital-go-pandacss-preset 0.2.3 → 0.4.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.mjs CHANGED
@@ -5,17 +5,17 @@ import { anatomy } from "@zag-js/accordion";
5
5
  import { createAnatomy } from "@zag-js/anatomy";
6
6
  import { anatomy as anatomy$1 } from "@zag-js/checkbox";
7
7
  import { anatomy as anatomy$2 } from "@zag-js/date-picker";
8
- import { anatomy as anatomy$3 } from "@zag-js/collapsible";
9
- import { anatomy as anatomy$4 } from "@zag-js/dialog";
10
- import { anatomy as anatomy$5 } from "@zag-js/file-upload";
11
- import { anatomy as anatomy$6 } from "@zag-js/menu";
12
- import { anatomy as anatomy$7 } from "@zag-js/progress";
13
- import { anatomy as anatomy$8 } from "@zag-js/radio-group";
14
- import { anatomy as anatomy$9 } from "@zag-js/select";
15
- import { anatomy as anatomy$10 } from "@zag-js/steps";
16
- import { anatomy as anatomy$11 } from "@zag-js/tabs";
17
- import { anatomy as anatomy$12 } from "@zag-js/tree-view";
18
-
8
+ import { anatomy as anatomy$3 } from "@zag-js/date-input";
9
+ import { anatomy as anatomy$4 } from "@zag-js/collapsible";
10
+ import { anatomy as anatomy$5 } from "@zag-js/drawer";
11
+ import { anatomy as anatomy$6 } from "@zag-js/file-upload";
12
+ import { anatomy as anatomy$7 } from "@zag-js/menu";
13
+ import { anatomy as anatomy$8 } from "@zag-js/progress";
14
+ import { anatomy as anatomy$9 } from "@zag-js/radio-group";
15
+ import { anatomy as anatomy$10 } from "@zag-js/select";
16
+ import { anatomy as anatomy$11 } from "@zag-js/steps";
17
+ import { anatomy as anatomy$12 } from "@zag-js/tabs";
18
+ import { anatomy as anatomy$13 } from "@zag-js/tree-view";
19
19
  //#region src/recipes/accordion.ts
20
20
  /**
21
21
  * source:
@@ -28,6 +28,11 @@ var accordion_default = defineSlotRecipe({
28
28
  base: {
29
29
  root: { colorPalette: "keyColor" },
30
30
  item: {
31
+ /**
32
+ * group/accordion border-b border-solid-gray-420
33
+ [--icon-size:calc(20/16*1rem)] desktop:[--icon-size:calc(32/16*1rem)]
34
+ ${className ?? ''}
35
+ */
31
36
  borderBottomWidth: "1px",
32
37
  borderBottomColor: "solid-gray.420",
33
38
  "--icon-size": {
@@ -36,8 +41,15 @@ var accordion_default = defineSlotRecipe({
36
41
  }
37
42
  },
38
43
  itemTrigger: {
44
+ /**
45
+ * group/summary relative block cursor-default
46
+ */
39
47
  position: "relative",
40
48
  display: "block",
49
+ /**
50
+ * hover:bg-solid-gray-50
51
+ * focus-visible:bg-yellow-300
52
+ */
41
53
  bg: {
42
54
  base: "transparent",
43
55
  _hover: "solid-gray.50",
@@ -59,7 +71,14 @@ var accordion_default = defineSlotRecipe({
59
71
  md: 4
60
72
  },
61
73
  cursor: { _hover: "pointer" },
74
+ /**
75
+ * marker:[content:'']
76
+ [&::-webkit-details-marker]:hidden
77
+ */
62
78
  "&::marker": { content: "\"\"" },
79
+ /**
80
+ * 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
81
+ */
63
82
  _focusVisible: {
64
83
  rounded: 4,
65
84
  outlineStyle: "solid",
@@ -68,10 +87,19 @@ var accordion_default = defineSlotRecipe({
68
87
  outlineOffset: .5,
69
88
  focusBox: "calc({spacing.1} / 2)"
70
89
  },
90
+ /**
91
+ * remove button style
92
+ */
71
93
  textAlign: "start",
72
94
  width: "full"
73
95
  },
74
96
  itemIndicator: {
97
+ /**
98
+ * absolute top-2 left-0.5
99
+ * desktop:top-3.5 desktop:left-1.5
100
+ * size-[var(--icon-size)]
101
+ * mt-[calc((1lh-var(--icon-size))/2)]
102
+ */
75
103
  position: "absolute",
76
104
  top: {
77
105
  base: 2,
@@ -84,11 +112,23 @@ var accordion_default = defineSlotRecipe({
84
112
  width: "var(--icon-size)",
85
113
  height: "var(--icon-size)",
86
114
  mt: "calc((1lh - var(--icon-size)) / 2)",
115
+ /**
116
+ * inline-flex items-center justify-center
117
+ */
87
118
  display: "inline-flex",
88
119
  alignItems: "center",
89
120
  justifyContent: "center",
121
+ /**
122
+ * bg-white text-blue-1000
123
+ */
90
124
  bg: "white",
91
125
  color: "colorPalette.primary.100",
126
+ /**
127
+ * border border-current rounded-full
128
+ * group-hover/summary:outline group-hover/summary:outline-2
129
+ * group-hover/summary:outline-current
130
+ * group-open/accordion:rotate-180
131
+ */
92
132
  borderWidth: "1px",
93
133
  borderColor: "currentcolor",
94
134
  rounded: "full",
@@ -108,6 +148,10 @@ var accordion_default = defineSlotRecipe({
108
148
  }
109
149
  },
110
150
  itemContent: {
151
+ /**
152
+ * pl-[calc(var(--icon-size)+(12/16*1rem))] pr-2 py-4
153
+ desktop:pl-[calc(var(--icon-size)+(20/16*1rem))] desktop:pr-4 desktop:py-6
154
+ */
111
155
  pl: {
112
156
  base: "calc(var(--icon-size) + {spacing.3})",
113
157
  md: "calc(var(--icon-size) + {spacing.5})"
@@ -123,12 +167,19 @@ var accordion_default = defineSlotRecipe({
123
167
  }
124
168
  }
125
169
  });
126
-
127
170
  //#endregion
128
171
  //#region src/recipes/blockquote.ts
129
172
  var blockquote_default = defineRecipe({
130
173
  className: "blockquote",
131
174
  base: {
175
+ /**
176
+ * margin: 0 calc(40 / 16 * 1rem);
177
+ * border-left: 8px solid var(--color-neutral-solid-gray-536);
178
+ * padding-top: calc(8 / 16 * 1rem);
179
+ * padding-right: calc(16 / 16 * 1rem);
180
+ * padding-bottom: calc(8 / 16 * 1rem);
181
+ * padding-left: calc(24 / 16 * 1rem);
182
+ */
132
183
  my: 0,
133
184
  mx: 10,
134
185
  borderLeftWidth: "8px",
@@ -141,7 +192,6 @@ var blockquote_default = defineRecipe({
141
192
  "& > *:last-child": { mb: 0 }
142
193
  }
143
194
  });
144
-
145
195
  //#endregion
146
196
  //#region src/anatomy.ts
147
197
  /**
@@ -166,7 +216,6 @@ const menuListAnatomy = createAnatomy("menu-list").parts("root", "label", "conte
166
216
  const notificationBannerAnatomy = createAnatomy("notification-banner").parts("root", "icon", "close", "header", "heading", "body", "actions");
167
217
  const resourceListAnatomy = createAnatomy("resource-list").parts("root", "main", "action", "content", "title");
168
218
  const tableAnatomy = createAnatomy("table").parts("root", "head", "body", "foot", "row", "header", "cell", "colgroup", "col", "caption");
169
-
170
219
  //#endregion
171
220
  //#region src/recipes/link.ts
172
221
  /**
@@ -177,6 +226,10 @@ var link_default = defineRecipe({
177
226
  className: "link",
178
227
  description: "リンクテキストは通常、色や下線などの視覚的な表現で通常のテキストと区別され、URLと関連づけられたテキスト文字列です。この関連付けをハイパーリンクと呼び、これはウェブをウェブたらしめている基本的な概念のひとつです。",
179
228
  base: {
229
+ /**
230
+ * text-blue-1000 visited:text-magenta-900 hover:text-blue-1000
231
+ * focus-visible:text-blue-1000 active:text-orange-700
232
+ */
180
233
  colorPalette: "blue",
181
234
  color: {
182
235
  base: "colorPalette.primary.100",
@@ -185,10 +238,17 @@ var link_default = defineRecipe({
185
238
  _focusVisible: "colorPalette.primary.100",
186
239
  _active: "orange.800"
187
240
  },
241
+ /**
242
+ * focus-visible:bg-yellow-300
243
+ */
188
244
  bg: {
189
245
  base: "transparent",
190
246
  _focusVisible: "yellow.300"
191
247
  },
248
+ /**
249
+ * underline underline-offset-[calc(3/16*1rem)] hover:decoration-[calc(3/16*1rem)]
250
+ * active:decoration-1
251
+ */
192
252
  textDecoration: "underline",
193
253
  textDecorationThickness: {
194
254
  base: "1px",
@@ -196,6 +256,12 @@ var link_default = defineRecipe({
196
256
  _active: "1px"
197
257
  },
198
258
  textUnderlineOffset: "calc(3 / 16 * 1rem)",
259
+ /**
260
+ * focus-visible:rounded-4
261
+ * focus-visible:outline focus-visible:outline-4
262
+ * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
263
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
264
+ */
199
265
  _focusVisible: {
200
266
  rounded: 4,
201
267
  outlineStyle: "solid",
@@ -204,6 +270,9 @@ var link_default = defineRecipe({
204
270
  outlineOffset: .5,
205
271
  focusBox: "calc({spacing.1} / 2)"
206
272
  },
273
+ /**
274
+ * with icon
275
+ */
207
276
  "& > svg": {
208
277
  display: "inline",
209
278
  ml: 1,
@@ -213,7 +282,6 @@ var link_default = defineRecipe({
213
282
  }
214
283
  }
215
284
  });
216
-
217
285
  //#endregion
218
286
  //#region src/recipes/breadcrumb.ts
219
287
  /**
@@ -225,19 +293,42 @@ var breadcrumb_default = defineSlotRecipe({
225
293
  description: "パンくずリストは、ウェブサイトの階層内でユーザーの現在の位置を表示します。",
226
294
  slots: breadcrumbAnatomy.keys(),
227
295
  base: {
228
- root: { "--icon-size": "16px" },
296
+ root: {
297
+ /**
298
+ * icon
299
+ */
300
+ "--icon-size": "16px" },
229
301
  label: {
230
302
  srOnly: true,
231
303
  textStyle: "oln-16N-100"
232
304
  },
233
- list: { display: "inline" },
305
+ list: {
306
+ /**
307
+ * inline
308
+ */
309
+ display: "inline" },
234
310
  item: {
311
+ /**
312
+ * inline break-words text-oln-16N-100
313
+ */
235
314
  display: "inline",
236
315
  overflowWrap: "break-word",
237
316
  textStyle: "oln-16N-100"
238
317
  },
239
318
  link: {
319
+ /**
320
+ * text-blue-1000 text-oln-16N-100 underline underline-offset-[calc(3/16*1rem)]
321
+ * hover:text-blue-900 hover:decoration-[calc(3/16*1rem)]
322
+ * active:text-orange-700 active:decoration-1
323
+ * focus-visible:rounded-4 focus-visible:outline focus-visible:outline-4
324
+ * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
325
+ * focus-visible:bg-yellow-300 focus-visible:text-blue-1000
326
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
327
+ */
240
328
  ...link_default.base,
329
+ /**
330
+ * icon
331
+ */
241
332
  "& svg": {
242
333
  display: "inline",
243
334
  width: "var(--icon-size)",
@@ -246,6 +337,9 @@ var breadcrumb_default = defineSlotRecipe({
246
337
  }
247
338
  },
248
339
  separator: {
340
+ /**
341
+ * mx-2 inline
342
+ */
249
343
  mx: 2,
250
344
  display: "inline-flex",
251
345
  width: "12px",
@@ -258,7 +352,6 @@ var breadcrumb_default = defineSlotRecipe({
258
352
  }
259
353
  }
260
354
  });
261
-
262
355
  //#endregion
263
356
  //#region src/recipes/button.ts
264
357
  /**
@@ -270,7 +363,15 @@ var button_default = defineRecipe({
270
363
  description: "ボタンは、主にアクション実行またはページ遷移のためのトリガーとして使用します。画面内におけるボタンの重要度に応じて使い分け可能な複数のスタイルがあります。",
271
364
  base: {
272
365
  colorPalette: "keyColor",
366
+ /**
367
+ * underline-offset-[calc(3/16*1rem)]
368
+ */
273
369
  textUnderlineOffset: "calc(3 / 16 * 1rem)",
370
+ /**
371
+ * focus-visible:outline focus-visible:outline-4 focus-visible:outline-black
372
+ * focus-visible:outline-offset-[calc(2/16*1rem)]
373
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
374
+ */
274
375
  _focusVisible: {
275
376
  outlineStyle: "solid",
276
377
  outlineWidth: "4px",
@@ -278,7 +379,13 @@ var button_default = defineRecipe({
278
379
  outlineOffset: .5,
279
380
  focusBox: "calc({spacing.1} / 2)"
280
381
  },
382
+ /**
383
+ * aria-disabled:pointer-events-none aria-disabled:forced-colors:border-[GrayText] aria-disabled:forced-colors:text-[GrayText]
384
+ */
281
385
  _disabled: { pointerEvents: "none" },
386
+ /**
387
+ * button default
388
+ */
282
389
  display: "inline-flex",
283
390
  columnGap: 1,
284
391
  textAlign: "center",
@@ -290,6 +397,10 @@ var button_default = defineRecipe({
290
397
  variants: {
291
398
  variant: {
292
399
  "solid-fill": {
400
+ /**
401
+ * text-white aria-disabled:text-solid-gray-50
402
+ * bg-blue-900 hover:bg-blue-1000 active:bg-blue-1200 aria-disabled:bg-solid-gray-300
403
+ */
293
404
  bg: {
294
405
  base: "colorPalette.primary",
295
406
  _hover: "colorPalette.primary.100",
@@ -300,6 +411,10 @@ var button_default = defineRecipe({
300
411
  base: "white",
301
412
  _disabled: "solid-gray.50"
302
413
  },
414
+ /**
415
+ * border-4 border-double border-transparent
416
+ * hover:underline active:underline
417
+ */
303
418
  borderWidth: "4px",
304
419
  borderStyle: "double",
305
420
  borderColor: "transparent",
@@ -310,6 +425,11 @@ var button_default = defineRecipe({
310
425
  }
311
426
  },
312
427
  outline: {
428
+ /**
429
+ * bg-white hover:bg-blue-200 active:bg-blue-300 aria-disabled:bg-white
430
+ * text-blue-900 hover:text-blue-1000 active:text-blue-1200
431
+ * aria-disabled:text-solid-gray-300
432
+ */
313
433
  bg: {
314
434
  base: "white",
315
435
  _hover: "colorPalette.200",
@@ -322,6 +442,9 @@ var button_default = defineRecipe({
322
442
  _active: "colorPalette.primary.300",
323
443
  _disabled: "solid-gray.300"
324
444
  },
445
+ /**
446
+ * border border-current hover:underline active:underline
447
+ */
325
448
  borderWidth: "1px",
326
449
  borderColor: "currentcolor",
327
450
  textDecoration: {
@@ -331,6 +454,13 @@ var button_default = defineRecipe({
331
454
  }
332
455
  },
333
456
  text: {
457
+ /**
458
+ *
459
+ * hover:bg-blue-50 active:bg-blue-100 focus-visible:bg-yellow-300
460
+ * aria-disabled:bg-transparent aria-disabled:focus-visible:bg-yellow-300
461
+ * text-blue-900 hover:text-blue-1000 active:text-blue-1200
462
+ * aria-disabled:text-solid-gray-300
463
+ */
334
464
  bg: {
335
465
  base: "transparent",
336
466
  _hover: "colorPalette.bg",
@@ -347,6 +477,9 @@ var button_default = defineRecipe({
347
477
  _active: "colorPalette.primary.300",
348
478
  _disabled: "solid-gray.300"
349
479
  },
480
+ /**
481
+ * hover:decoration-[calc(3/16*1rem)] underline
482
+ */
350
483
  textDecoration: "underline",
351
484
  textDecorationThickness: {
352
485
  base: "1px",
@@ -356,6 +489,9 @@ var button_default = defineRecipe({
356
489
  },
357
490
  size: {
358
491
  lg: {
492
+ /**
493
+ * lg: 'min-w-[calc(136/16*1rem)] min-h-14 rounded-8 px-4 py-3 text-oln-16B-100'
494
+ */
359
495
  minWidth: "calc({spacing.1} * 34)",
360
496
  minHeight: 14,
361
497
  rounded: 8,
@@ -364,6 +500,9 @@ var button_default = defineRecipe({
364
500
  textStyle: "oln-16B-100"
365
501
  },
366
502
  md: {
503
+ /**
504
+ * md: 'min-w-24 min-h-12 rounded-8 px-4 py-2 text-oln-16B-100',
505
+ */
367
506
  minWidth: 24,
368
507
  minHeight: 12,
369
508
  textStyle: "oln-16B-100",
@@ -372,6 +511,9 @@ var button_default = defineRecipe({
372
511
  rounded: 8
373
512
  },
374
513
  sm: {
514
+ /**
515
+ * 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]',
516
+ */
375
517
  position: "relative",
376
518
  minWidth: 20,
377
519
  minHeight: 9,
@@ -388,6 +530,9 @@ var button_default = defineRecipe({
388
530
  }
389
531
  },
390
532
  xs: {
533
+ /**
534
+ * 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]',
535
+ */
391
536
  minWidth: 18,
392
537
  minHeight: 7,
393
538
  textStyle: "oln-14B-100",
@@ -409,7 +554,6 @@ var button_default = defineRecipe({
409
554
  size: "md"
410
555
  }
411
556
  });
412
-
413
557
  //#endregion
414
558
  //#region src/recipes/card.ts
415
559
  var card_default = defineSlotRecipe({
@@ -502,7 +646,7 @@ var card_default = defineSlotRecipe({
502
646
  _groupHover: { transform: "scale(1.05)" }
503
647
  } },
504
648
  sub: { "& > *": { zIndex: 1 } },
505
- title: { _before: {
649
+ title: { "& > a": { _before: {
506
650
  content: "\"\"",
507
651
  position: "absolute",
508
652
  top: 0,
@@ -511,7 +655,7 @@ var card_default = defineSlotRecipe({
511
655
  height: "full",
512
656
  zIndex: 0,
513
657
  cursor: "inherit"
514
- } }
658
+ } } }
515
659
  } }
516
660
  },
517
661
  defaultVariants: {
@@ -519,7 +663,6 @@ var card_default = defineSlotRecipe({
519
663
  asLink: false
520
664
  }
521
665
  });
522
-
523
666
  //#endregion
524
667
  //#region src/recipes/checkbox.ts
525
668
  var checkbox_default = defineSlotRecipe({
@@ -535,6 +678,10 @@ var checkbox_default = defineSlotRecipe({
535
678
  colorPalette: "keyColor"
536
679
  },
537
680
  control: {
681
+ /**
682
+ * flex items-center justify-center shrink-0 rounded-[calc(1/8*100%)]
683
+ * has-[input:hover:not(:focus):not([aria-disabled="true"])]:bg-solid-gray-420
684
+ */
538
685
  flexShrink: 0,
539
686
  rounded: "calc(2 / 18 * 100%)",
540
687
  borderWidth: "2px",
@@ -565,6 +712,11 @@ var checkbox_default = defineSlotRecipe({
565
712
  focusBox: "calc({spacing.1} / 2)"
566
713
  }
567
714
  },
715
+ /**
716
+ * focus:outline focus:outline-4 focus:outline-black
717
+ * focus:outline-offset-[calc(2/16*1rem)]
718
+ * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
719
+ */
568
720
  _focus: {
569
721
  outlineStyle: "solid",
570
722
  outlineWidth: "4px",
@@ -574,22 +726,41 @@ var checkbox_default = defineSlotRecipe({
574
726
  }
575
727
  },
576
728
  indicator: {
729
+ /**
730
+ * appearance-none size-3/4 rounded-[calc(2/18*100%)]
731
+ */
577
732
  appearance: "none",
578
733
  width: "full",
579
734
  height: "full",
580
735
  zIndex: 1,
581
736
  bg: {
737
+ /**
738
+ * bg-white
739
+ */
582
740
  base: "white",
741
+ /**
742
+ * checked:bg-blue-900 checked:hover:bg-blue-1100
743
+ * forced-colors:checked:!bg-[Highlight]
744
+ */
583
745
  _checked: {
584
746
  base: "colorPalette.primary",
585
747
  _hover: "colorPalette.primary.200",
586
748
  _highContrast: "Highlight"
587
749
  },
588
750
  _indeterminate: {
751
+ /**
752
+ * indeterminate:bg-blue-900 indeterminate:hover:bg-blue-1100
753
+ * forced-colors:indeterminate:!bg-[Highlight]
754
+ */
589
755
  base: "colorPalette.primary",
590
756
  _hover: "colorPalette.primary.200",
591
757
  _highContrast: "Highlight"
592
758
  },
759
+ /**
760
+ * data-[error]:indeterminate:bg-error-1
761
+ * data-[error]:indeterminate:hover:bg-red-1000
762
+ * data-[error]:checked:bg-error-1 data-[error]:checked:hover:bg-red-1000
763
+ */
593
764
  _invalid: {
594
765
  _indeterminate: {
595
766
  base: "error.1",
@@ -602,6 +773,12 @@ var checkbox_default = defineSlotRecipe({
602
773
  _disabled: "solid-gray.300"
603
774
  }
604
775
  },
776
+ /**
777
+ * aria-disabled:!bg-solid-gray-50
778
+ * aria-disabled:checked:!bg-solid-gray-300
779
+ * aria-disabled:indeterminate:!bg-solid-gray-300
780
+ * forced-colors:aria-disabled:checked:!bg-[GrayText]
781
+ */
605
782
  _disabled: {
606
783
  base: "solid-gray.50",
607
784
  _checked: "solid-gray.300",
@@ -609,7 +786,17 @@ var checkbox_default = defineSlotRecipe({
609
786
  _highContrast: { _checked: "GrayText" }
610
787
  }
611
788
  },
789
+ /**
790
+ * bg-clip-padding
791
+ */
612
792
  backgroundClip: "padding-box",
793
+ /**
794
+ * before:hidden checked:before:block indeterminate:before:block
795
+ * before:size-3.5
796
+ * before:bg-white
797
+ * forced-colors:before:!bg-[HighlightText]
798
+ * aria-disabled:before:border-solid-gray-50
799
+ */
613
800
  _before: {
614
801
  content: "\"\"",
615
802
  display: "none",
@@ -621,6 +808,10 @@ var checkbox_default = defineSlotRecipe({
621
808
  },
622
809
  borderColor: { _disabled: "solid-gray.50" }
623
810
  },
811
+ /**
812
+ * 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')]
813
+ * indeterminate:before:[clip-path:path('M3.25,7.75H10.75V6.25H3.25V7.75Z')]
814
+ */
624
815
  _checked: { _before: {
625
816
  display: "block",
626
817
  clipPath: "path('M5.6,11.2L12.65,4.15L11.25,2.75L5.6,8.4L2.75,5.55L1.35,6.95L5.6,11.2Z')"
@@ -677,7 +868,6 @@ var checkbox_default = defineSlotRecipe({
677
868
  } },
678
869
  defaultVariants: { size: "sm" }
679
870
  });
680
-
681
871
  //#endregion
682
872
  //#region src/recipes/chip-label.ts
683
873
  var chip_label_default = defineRecipe({
@@ -719,7 +909,6 @@ var chip_label_default = defineRecipe({
719
909
  } },
720
910
  defaultVariants: { variant: "text" }
721
911
  });
722
-
723
912
  //#endregion
724
913
  //#region src/recipes/chip-tag.ts
725
914
  const buttonCommon = {
@@ -787,7 +976,6 @@ var chip_tag_default = defineSlotRecipe({
787
976
  }
788
977
  }
789
978
  });
790
-
791
979
  //#endregion
792
980
  //#region src/recipes/label.ts
793
981
  /**
@@ -797,6 +985,9 @@ var chip_tag_default = defineSlotRecipe({
797
985
  var label_default = defineRecipe({
798
986
  className: "label",
799
987
  base: {
988
+ /**
989
+ * flex w-fit items-center gap-2 text-solid-gray-800
990
+ */
800
991
  display: "flex",
801
992
  width: "fit-content",
802
993
  alignItems: "center",
@@ -804,13 +995,15 @@ var label_default = defineRecipe({
804
995
  color: "solid-gray.800"
805
996
  },
806
997
  variants: { size: {
998
+ /**
999
+ * data-[size=sm]:text-std-16B-170 data-[size=md]:text-std-17B-170 data-[size=lg]:text-std-18B-160
1000
+ */
807
1001
  sm: { textStyle: "std-16B-170" },
808
1002
  md: { textStyle: "std-17B-170" },
809
1003
  lg: { textStyle: "std-18B-160" }
810
1004
  } },
811
1005
  defaultVariants: { size: "md" }
812
1006
  });
813
-
814
1007
  //#endregion
815
1008
  //#region src/recipes/input.ts
816
1009
  /**
@@ -821,10 +1014,19 @@ var input_default = defineRecipe({
821
1014
  className: "input",
822
1015
  description: "インプットテキストコンポーネントは、名前や電話番号など、1行以内のテキストを入力する場合に使用します。",
823
1016
  base: {
1017
+ /**
1018
+ * max-w-full px-4 py-3 rounded-8
1019
+ */
824
1020
  maxWidth: "full",
825
1021
  rounded: 8,
826
1022
  px: 4,
827
1023
  py: 3,
1024
+ /**
1025
+ * border border-solid-gray-600 hover:border-black
1026
+ * aria-disabled:border-solid-gray-300
1027
+ * aria-disabled:forced-colors:border-[GrayText]
1028
+ * aria-[invalid=true]:border-error-1 aria-[invalid=true]:hover:border-red-1000
1029
+ */
828
1030
  borderStyle: {
829
1031
  base: "solid",
830
1032
  _readOnly: "dashed"
@@ -842,6 +1044,12 @@ var input_default = defineRecipe({
842
1044
  _hover: "red.1000"
843
1045
  }
844
1046
  },
1047
+ /**
1048
+ * bg-white text-oln-16N-100 text-solid-gray-800
1049
+ * aria-disabled:bg-solid-gray-50 aria-disabled:text-solid-gray-420
1050
+ * aria-disabled:forced-colors:text-[GrayText]
1051
+ *
1052
+ */
845
1053
  bg: {
846
1054
  base: "white",
847
1055
  _disabled: "solid-gray.50"
@@ -854,6 +1062,11 @@ var input_default = defineRecipe({
854
1062
  }
855
1063
  },
856
1064
  textStyle: "oln-16N-100",
1065
+ /**
1066
+ * focus:outline focus:outline-4 focus:outline-black
1067
+ * focus:outline-offset-[calc(2/16*1rem)]
1068
+ * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
1069
+ */
857
1070
  _focus: {
858
1071
  outlineStyle: "solid",
859
1072
  outlineWidth: "4px",
@@ -861,19 +1074,24 @@ var input_default = defineRecipe({
861
1074
  outlineOffset: .5,
862
1075
  focusBox: "calc({spacing.1} / 2)"
863
1076
  },
1077
+ /**
1078
+ * aria-disabled:pointer-events-none
1079
+ */
864
1080
  pointerEvents: {
865
1081
  base: "inherit",
866
1082
  _disabled: "none"
867
1083
  }
868
1084
  },
869
1085
  variants: { size: {
1086
+ /**
1087
+ * data-[size=sm]:h-10 data-[size=md]:h-12 data-[size=lg]:h-14
1088
+ */
870
1089
  sm: { height: 10 },
871
1090
  md: { height: 12 },
872
1091
  lg: { height: 14 }
873
1092
  } },
874
1093
  defaultVariants: { size: "lg" }
875
1094
  });
876
-
877
1095
  //#endregion
878
1096
  //#region src/recipes/select-box.ts
879
1097
  /**
@@ -884,6 +1102,11 @@ var select_box_default = defineRecipe({
884
1102
  className: "select-box",
885
1103
  description: "セレクトボックスは、複数の選択肢を提供するフォームコントロールです。",
886
1104
  base: {
1105
+ /**
1106
+ * w-full pl-4 pr-10 py-[calc(11/16*1rem)]
1107
+ * appearance-none rounded-8
1108
+ * aria-disabled:pointer-events-none
1109
+ */
887
1110
  width: "full",
888
1111
  appearance: "none",
889
1112
  pl: 4,
@@ -894,6 +1117,11 @@ var select_box_default = defineRecipe({
894
1117
  base: "inherit",
895
1118
  _disabled: "none"
896
1119
  },
1120
+ /**
1121
+ * bg-white text-oln-16N-100 text-solid-gray-800
1122
+ * aria-disabled:text-solid-gray-420
1123
+ * aria-disabled:forced-colors:text-[GrayText]
1124
+ */
897
1125
  bg: {
898
1126
  base: "white",
899
1127
  _disabled: "solid-gray.50"
@@ -903,6 +1131,12 @@ var select_box_default = defineRecipe({
903
1131
  _disabled: "solid-gray.420"
904
1132
  },
905
1133
  textStyle: "oln-16N-100",
1134
+ /**
1135
+ * border border-solid-gray-600 hover:border-black
1136
+ * aria-disabled:border-solid-gray-300 aria-disabled:bg-solid-gray-50
1137
+ * aria-disabled:forced-colors:border-[GrayText]
1138
+ * aria-[invalid=true]:border-error-1aria-[invalid=true]:hover:border-red-1000
1139
+ */
906
1140
  borderWidth: "1px",
907
1141
  borderColor: {
908
1142
  base: "solid-gray.900",
@@ -912,7 +1146,13 @@ var select_box_default = defineRecipe({
912
1146
  _hover: "red.1000"
913
1147
  }
914
1148
  },
1149
+ /**
1150
+ * remove button style
1151
+ */
915
1152
  textAlign: "start",
1153
+ /**
1154
+ * 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
1155
+ */
916
1156
  _focus: {
917
1157
  outlineStyle: "solid",
918
1158
  outlineWidth: "4px",
@@ -922,12 +1162,14 @@ var select_box_default = defineRecipe({
922
1162
  }
923
1163
  },
924
1164
  variants: { size: {
1165
+ /**
1166
+ * data-[size=sm]:h-10 data-[size=md]:h-12 data-[size=lg]:h-14
1167
+ */
925
1168
  sm: { height: 10 },
926
1169
  md: { height: 12 },
927
1170
  lg: { height: 14 }
928
1171
  } }
929
1172
  });
930
-
931
1173
  //#endregion
932
1174
  //#region src/recipes/date-picker.ts
933
1175
  var date_picker_default = defineSlotRecipe({
@@ -947,6 +1189,9 @@ var date_picker_default = defineSlotRecipe({
947
1189
  p: 4
948
1190
  },
949
1191
  content: {
1192
+ /**
1193
+ * border border-solid-gray-420 bg-white shadow-1 rounded-8 focus:outline-0
1194
+ */
950
1195
  bg: "white",
951
1196
  shadow: 1,
952
1197
  rounded: 8,
@@ -974,18 +1219,41 @@ var date_picker_default = defineSlotRecipe({
974
1219
  width: "fit-content"
975
1220
  },
976
1221
  table: {
1222
+ /**
1223
+ * mx-3 mb-2
1224
+ */
977
1225
  mx: 3,
978
1226
  mb: 2
979
1227
  },
980
- tableHead: { "& th": { p: 0 } },
1228
+ tableHead: {
1229
+ /**
1230
+ * [&_th]:p-0
1231
+ */
1232
+ "& th": { p: 0 } },
981
1233
  tableHeader: {
1234
+ /**
1235
+ * size-12 text-center font-bold
1236
+ */
982
1237
  width: 12,
983
1238
  height: 12,
984
1239
  textAlign: "center",
985
1240
  fontWeight: "bold"
986
1241
  },
987
- tableBody: { "& td": { p: 0 } },
1242
+ tableBody: {
1243
+ /**
1244
+ * [&_td]:p-0
1245
+ */
1246
+ "& td": { p: 0 } },
988
1247
  tableCellTrigger: {
1248
+ /**
1249
+ * m-1 flex items-center justify-center size-10 rounded-full
1250
+ * underline-offset-[calc(3/16*1rem)] hover:bg-solid-gray-50 hover:underline
1251
+ * data-[selected]:!bg-blue-900 data-[selected]:border
1252
+ * data-[selected]:border-transparent data-[selected]:text-white
1253
+ * focus-visible:bg-yellow-300 focus-visible:outline focus-visible:outline-4
1254
+ * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
1255
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
1256
+ */
989
1257
  m: 1,
990
1258
  display: "flex",
991
1259
  alignItems: "center",
@@ -1017,7 +1285,70 @@ var date_picker_default = defineSlotRecipe({
1017
1285
  }
1018
1286
  }
1019
1287
  });
1020
-
1288
+ //#endregion
1289
+ //#region src/recipes/date-input.ts
1290
+ var date_input_default = defineSlotRecipe({
1291
+ className: "date-input",
1292
+ description: "日付入力は、日付を分割形式で入力できるフォームコントロールです。",
1293
+ slots: anatomy$3.keys(),
1294
+ base: {
1295
+ root: {
1296
+ /**
1297
+ * inline-flex h-14 -space-x-1 rounded-8 border border-solid-gray-600 bg-[--bg] p-0.5 pe-0 text-solid-gray-900 [--bg:theme(colors.white)] focus-within:border-black hover:border-solid-gray-900 data-[size=md]:h-12 data-[size=sm]:h-10 data-[readonly]:border-dashed data-[disabled]:border-solid-gray-300 data-[error]:border-error-1 data-[disabled]:text-solid-gray-420 data-[disabled]:[--bg:theme(colors.solid-gray.50)] data-[error]:focus-within:border-red-1000 data-[error]:hover:border-red-1000 data-[error]:hover:data-[readonly]:border-error-1 hover:data-[readonly]:border-solid-gray-600 forced-colors:data-[disabled]:border-[GrayText] forced-colors:data-[disabled]:text-[GrayText] ${className ?? ''}
1298
+ */
1299
+ display: "flex",
1300
+ flexDirection: "column",
1301
+ gap: 1.5
1302
+ },
1303
+ label: { ...label_default.base },
1304
+ control: {
1305
+ display: "flex",
1306
+ alignItems: "center",
1307
+ gap: 2
1308
+ },
1309
+ segmentGroup: {
1310
+ display: "flex",
1311
+ alignItems: "center",
1312
+ gap: 1,
1313
+ borderWidth: "1px",
1314
+ borderStyle: "solid",
1315
+ borderColor: "solid-gray.600",
1316
+ rounded: 8,
1317
+ py: 2,
1318
+ px: 3,
1319
+ bg: "white"
1320
+ },
1321
+ segment: {
1322
+ ...input_default.base,
1323
+ borderWidth: "0px",
1324
+ bg: "transparent",
1325
+ px: 0,
1326
+ minWidth: 10,
1327
+ width: {
1328
+ "&[data-type=year]": 16,
1329
+ "&[data-type=month]": 11,
1330
+ "&[data-type=day]": 11
1331
+ },
1332
+ textAlign: "right"
1333
+ },
1334
+ hiddenInput: { display: "none" }
1335
+ },
1336
+ variants: {
1337
+ variant: {
1338
+ consolidated: {},
1339
+ separated: {}
1340
+ },
1341
+ size: {
1342
+ sm: {},
1343
+ md: {},
1344
+ lg: {}
1345
+ }
1346
+ },
1347
+ defaultVariants: {
1348
+ variant: "consolidated",
1349
+ size: "lg"
1350
+ }
1351
+ });
1021
1352
  //#endregion
1022
1353
  //#region src/recipes/description-list.ts
1023
1354
  /**
@@ -1035,19 +1366,39 @@ var description_list_default = defineSlotRecipe({
1035
1366
  ],
1036
1367
  base: {
1037
1368
  root: {
1369
+ /**
1370
+ * margin-top: calc(16 / 16 * 1rem);
1371
+ * margin-bottom: calc(16 / 16 * 1rem);
1372
+ * display: grid;
1373
+ * gap: calc(8 / 16 * 1rem) 0;
1374
+ * overflow-wrap: anywhere;
1375
+ */
1038
1376
  mt: 4,
1039
1377
  mb: 4,
1040
1378
  display: "grid",
1041
1379
  rowGap: 2,
1042
1380
  overflowWrap: "anywhere"
1043
1381
  },
1044
- term: { fontWeight: "bold" },
1382
+ term: {
1383
+ /**
1384
+ * font-weight: bold;
1385
+ */
1386
+ fontWeight: "bold" },
1045
1387
  marker: { display: "none" },
1046
- description: { ml: 8 }
1388
+ description: {
1389
+ /**
1390
+ * margin-left: calc(32 / 16 * 1rem);
1391
+ */
1392
+ ml: 8 }
1047
1393
  },
1048
1394
  variants: { marker: {
1049
1395
  none: {},
1050
1396
  bullet: { term: {
1397
+ /**
1398
+ * margin-left: calc(32 / 16 * 1rem);
1399
+ * display: list-item;
1400
+ * list-style-type: disc;
1401
+ */
1051
1402
  ml: 8,
1052
1403
  display: "list-item",
1053
1404
  listStyleType: "disc"
@@ -1060,7 +1411,6 @@ var description_list_default = defineSlotRecipe({
1060
1411
  } },
1061
1412
  defaultVariants: { marker: "none" }
1062
1413
  });
1063
-
1064
1414
  //#endregion
1065
1415
  //#region src/recipes/disclosure.ts
1066
1416
  /**
@@ -1070,10 +1420,21 @@ var description_list_default = defineSlotRecipe({
1070
1420
  var disclosure_default = defineSlotRecipe({
1071
1421
  className: "disclosure",
1072
1422
  description: "ディスクロージャーは、コンテンツのセクション内の任意の範囲を折りたたむことができるユーザーインターフェースです。※セクション単位で折りたたみ表示をする場合は「アコーディオン」コンポーネントを使用してください。",
1073
- slots: anatomy$3.extendWith("indicator").keys(),
1423
+ slots: anatomy$4.extendWith("indicator").keys(),
1074
1424
  base: {
1075
- root: { colorPalette: "keyColor" },
1425
+ root: {
1426
+ /**
1427
+ * group/disclosure
1428
+ */
1429
+ colorPalette: "keyColor" },
1076
1430
  trigger: {
1431
+ /**
1432
+ * group/summary
1433
+ * [&::-webkit-details-marker]:hidden
1434
+ */
1435
+ /**
1436
+ * flex w-fit cursor-default list-none items-start justify-start gap-2
1437
+ */
1077
1438
  display: "flex",
1078
1439
  width: "fit-content",
1079
1440
  cursor: "default",
@@ -1081,11 +1442,23 @@ var disclosure_default = defineSlotRecipe({
1081
1442
  alignItems: "start",
1082
1443
  justifyContent: "start",
1083
1444
  gap: 2,
1445
+ /**
1446
+ * remove button style
1447
+ */
1084
1448
  textAlign: "start",
1449
+ /**
1450
+ * hover:underline hover:underline-offset-[calc(3/16*1rem)]
1451
+ */
1085
1452
  _hover: {
1086
1453
  textDecoration: "underline",
1087
1454
  textUnderlineOffset: "calc(3 / 16 * 1rem)"
1088
1455
  },
1456
+ /**
1457
+ * focus-visible:rounded-4 focus-visible:outline focus-visible:outline-4
1458
+ * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
1459
+ * focus-visible:bg-yellow-300
1460
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
1461
+ */
1089
1462
  _focusVisible: {
1090
1463
  rounded: 4,
1091
1464
  bg: "yellow.300",
@@ -1124,7 +1497,6 @@ var disclosure_default = defineSlotRecipe({
1124
1497
  content: {}
1125
1498
  }
1126
1499
  });
1127
-
1128
1500
  //#endregion
1129
1501
  //#region src/recipes/divider.ts
1130
1502
  /**
@@ -1141,21 +1513,15 @@ var divider_default = defineRecipe({
1141
1513
  } },
1142
1514
  defaultVariants: { color: "gray-420" }
1143
1515
  });
1144
-
1145
- //#endregion
1146
- //#region src/recipes/drawer.ts
1147
- /**
1148
- * source:
1149
- * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Drawer/Drawer.stories.tsx
1150
- * https://github.com/cschroeter/park-ui/blob/main/packages/preset/src/theme/recipes/drawer.ts
1151
- */
1152
- const anatomy$13 = anatomy$4.extendWith("header", "body", "footer");
1153
1516
  var drawer_default = defineSlotRecipe({
1154
1517
  className: "drawer",
1155
1518
  description: "ブラウザ画面の四辺(上下左右端)から展開し、モバイルメニューなどのコンポーネントを格納可能なコンテナです。",
1156
- slots: anatomy$13.keys(),
1519
+ slots: anatomy$5.extendWith("header", "body", "footer").keys(),
1157
1520
  base: {
1158
1521
  backdrop: {
1522
+ /**
1523
+ * backdrop:bg-opacity-gray-100 forced-colors:backdrop:bg-[#000b]
1524
+ */
1159
1525
  backdropFilter: "blur(4px)",
1160
1526
  background: "solid-gray.100/90",
1161
1527
  height: "100vh",
@@ -1164,8 +1530,8 @@ var drawer_default = defineSlotRecipe({
1164
1530
  left: 0,
1165
1531
  width: "100vw",
1166
1532
  zIndex: 10,
1167
- _open: { animation: "backdrop-in" },
1168
- _closed: { animation: "backdrop-out" }
1533
+ _open: { animation: "fade-in 0.5s cubic-bezier(0.32, 0.72, 0, 1)" },
1534
+ _closed: { animation: "fade-out 0.5s cubic-bezier(0.32, 0.72, 0, 1)" }
1169
1535
  },
1170
1536
  positioner: {
1171
1537
  alignItems: "center",
@@ -1174,25 +1540,75 @@ var drawer_default = defineSlotRecipe({
1174
1540
  justifyContent: "center",
1175
1541
  position: "fixed",
1176
1542
  top: 0,
1177
- width: 72,
1178
- zIndex: 1400
1543
+ /**
1544
+ * w-72
1545
+ */
1546
+ width: {
1547
+ base: "full",
1548
+ "&[data-swipe-direction=right]": 72,
1549
+ "&[data-swipe-direction=left]": 72
1550
+ },
1551
+ zIndex: 1400,
1552
+ "&[data-swipe-direction=up]": { left: 0 },
1553
+ "&[data-swipe-direction=down]": { left: 0 },
1554
+ "&[data-swipe-direction=right]": { right: 0 },
1555
+ "&[data-swipe-direction=left]": { left: 0 }
1179
1556
  },
1180
1557
  content: {
1558
+ /**
1559
+ * m-[unset] max-w-full max-h-[unset] overflow-visible start-auto
1560
+ */
1181
1561
  margin: "unset",
1182
1562
  maxWidth: "full",
1183
1563
  maxHeight: "full",
1184
1564
  overflow: "visible",
1185
1565
  insetInlineStart: "auto",
1186
1566
  width: "full",
1567
+ /**
1568
+ * bg-white shadow-2 border-l-transparent
1569
+ */
1187
1570
  borderColor: "transparent",
1188
1571
  background: "white",
1189
1572
  boxShadow: 2,
1573
+ /**
1574
+ * grid grid-rows-[auto_1fr] h-dvh
1575
+ */
1190
1576
  display: "grid",
1191
1577
  gridTemplateRows: "auto 1fr",
1192
- height: "100dvh",
1193
- _hidden: { display: "none" }
1578
+ height: "full",
1579
+ _hidden: { display: "none" },
1580
+ /**
1581
+ * transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1582
+ * animation-duration: 0.5s;
1583
+ * animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
1584
+ */
1585
+ transition: "transform 0.5s cubic-bezier(0.32, 0.72, 0, 1)",
1586
+ animationDuration: "0.5s",
1587
+ animationTimingFunction: "cubic-bezier(0.32, 0.72, 0, 1)",
1588
+ borderWidth: {
1589
+ base: "0px",
1590
+ "&[data-swipe-direction=right]": "0px 0px 0px 1px",
1591
+ "&[data-swipe-direction=left]": "0px 1px 0px 0px",
1592
+ "&[data-swipe-direction=down]": "1px 0px 0px 0px",
1593
+ "&[data-swipe-direction=up]": "0px 0px 1px 0px"
1594
+ },
1595
+ _open: { animationName: {
1596
+ "&[data-swipe-direction=up]": "slide-in-top",
1597
+ "&[data-swipe-direction=down]": "slide-in-bottom",
1598
+ "&[data-swipe-direction=left]": "slide-in-left",
1599
+ "&[data-swipe-direction=right]": "slide-in-right"
1600
+ } },
1601
+ _closed: { animationName: {
1602
+ "&[data-swipe-direction=up]": "slide-out-top",
1603
+ "&[data-swipe-direction=down]": "slide-out-bottom",
1604
+ "&[data-swipe-direction=left]": "slide-out-left",
1605
+ "&[data-swipe-direction=right]": "slide-out-right"
1606
+ } }
1194
1607
  },
1195
1608
  header: {
1609
+ /**
1610
+ * flex justify-end py-4 pl-4 pr-8
1611
+ */
1196
1612
  display: "flex",
1197
1613
  justifyContent: "start",
1198
1614
  py: 4,
@@ -1200,25 +1616,16 @@ var drawer_default = defineSlotRecipe({
1200
1616
  },
1201
1617
  title: { textStyle: "std-20B-150" },
1202
1618
  body: {
1619
+ /**
1620
+ * overflow-auto
1621
+ */
1203
1622
  overflow: "auto",
1204
1623
  px: 4,
1205
1624
  py: 4,
1206
1625
  textStyle: "std-17N-170"
1207
1626
  }
1208
- },
1209
- variants: { placement: {
1210
- right: {
1211
- positioner: { right: 0 },
1212
- content: { borderLeftWidth: "1px" }
1213
- },
1214
- left: {
1215
- positioner: { left: 0 },
1216
- content: { borderRightWidth: "1px" }
1217
- }
1218
- } },
1219
- defaultVariants: { placement: "right" }
1627
+ }
1220
1628
  });
1221
-
1222
1629
  //#endregion
1223
1630
  //#region src/recipes/emergency-banner.ts
1224
1631
  /**
@@ -1230,6 +1637,9 @@ var emergency_banner_default = defineSlotRecipe({
1230
1637
  slots: emergencyBannerAnatomy.keys(),
1231
1638
  base: {
1232
1639
  root: {
1640
+ /**
1641
+ * block px-2.5 py-3.5 border-[6px] bg-white desktop:p-[calc(26/16*1rem)] border-warning-orange-1
1642
+ */
1233
1643
  display: "block",
1234
1644
  px: {
1235
1645
  base: 2.5,
@@ -1245,6 +1655,9 @@ var emergency_banner_default = defineSlotRecipe({
1245
1655
  color: "solid-gray.800"
1246
1656
  },
1247
1657
  heading: {
1658
+ /**
1659
+ * text-std-20B-150 text-black desktop:text-std-24B-150
1660
+ */
1248
1661
  color: "black",
1249
1662
  textStyle: {
1250
1663
  base: "std-20B-150",
@@ -1252,7 +1665,11 @@ var emergency_banner_default = defineSlotRecipe({
1252
1665
  },
1253
1666
  _before: { content: "\"【緊急】\"" }
1254
1667
  },
1255
- body: { mt: {
1668
+ body: {
1669
+ /**
1670
+ * mt-2 desktop:mt-4
1671
+ */
1672
+ mt: {
1256
1673
  base: 2,
1257
1674
  md: 4
1258
1675
  } },
@@ -1266,6 +1683,23 @@ var emergency_banner_default = defineSlotRecipe({
1266
1683
  justifyContent: { md: "flex" }
1267
1684
  },
1268
1685
  button: {
1686
+ /**
1687
+ * relative block mx-auto
1688
+ * p-[calc(18/16*1rem)] desktop:p-5
1689
+ * w-full desktop:w-fit
1690
+ * desktop:min-w-[50%]
1691
+ * border-2 desktop:border-4 border-transparent
1692
+ * bg-error-1 hover:bg-error-2
1693
+ * text-white text-oln-16B-100 text-center
1694
+ * rounded-12 desktop:rounded-16
1695
+ * after:absolute after:inset-0 after:border-white
1696
+ * after:border-2 desktop:after:border-4
1697
+ * after:rounded-[calc(10/16*1rem)] desktop:after:rounded-12
1698
+ * hover:underline hover:underline-offset-[calc(3/16*1rem)]
1699
+ * focus-visible:outline focus-visible:outline-[calc(4/16*1rem)]
1700
+ * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
1701
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
1702
+ */
1269
1703
  position: "relative",
1270
1704
  display: "block",
1271
1705
  mx: "auto",
@@ -1322,7 +1756,6 @@ var emergency_banner_default = defineSlotRecipe({
1322
1756
  }
1323
1757
  }
1324
1758
  });
1325
-
1326
1759
  //#endregion
1327
1760
  //#region src/recipes/error-text.ts
1328
1761
  /**
@@ -1332,11 +1765,13 @@ var emergency_banner_default = defineSlotRecipe({
1332
1765
  var error_text_default = defineRecipe({
1333
1766
  className: "error-text",
1334
1767
  base: {
1768
+ /**
1769
+ * text-dns-16N-130 text-error-1
1770
+ */
1335
1771
  textStyle: "dns-16N-130",
1336
1772
  color: "error.1"
1337
1773
  }
1338
1774
  });
1339
-
1340
1775
  //#endregion
1341
1776
  //#region src/recipes/requirement-badge.ts
1342
1777
  /**
@@ -1346,11 +1781,13 @@ var error_text_default = defineRecipe({
1346
1781
  var requirement_badge_default = defineRecipe({
1347
1782
  className: "requirement-badge",
1348
1783
  base: {
1784
+ /**
1785
+ * text-oln-16N-100 text-red-800
1786
+ */
1349
1787
  textStyle: "oln-16N-100",
1350
1788
  color: "red.800"
1351
1789
  }
1352
1790
  });
1353
-
1354
1791
  //#endregion
1355
1792
  //#region src/recipes/support-text.ts
1356
1793
  /**
@@ -1360,11 +1797,13 @@ var requirement_badge_default = defineRecipe({
1360
1797
  var support_text_default = defineRecipe({
1361
1798
  className: "support-text",
1362
1799
  base: {
1800
+ /**
1801
+ * text-std-16N-170 text-solid-gray-600
1802
+ */
1363
1803
  textStyle: "std-16N-170",
1364
1804
  color: "solid-gray.600"
1365
1805
  }
1366
1806
  });
1367
-
1368
1807
  //#endregion
1369
1808
  //#region src/recipes/textarea.ts
1370
1809
  /**
@@ -1375,8 +1814,16 @@ var textarea_default = defineRecipe({
1375
1814
  className: "textarea",
1376
1815
  description: "テキストエリアコンポーネントは、1行以上のテキストを入力する場合に使用します。",
1377
1816
  base: {
1817
+ /**
1818
+ * rounded-8 max-w-full p-4 aria-disabled:pointer-events-none
1819
+ */
1378
1820
  rounded: 8,
1379
1821
  p: 4,
1822
+ /**
1823
+ * text-std-16N-170 bg-white text-solid-gray-800
1824
+ * aria-disabled:bg-solid-gray-50 aria-disabled:text-solid-gray-420
1825
+ * aria-disabled:forced-colors:text-[GrayText]
1826
+ */
1380
1827
  textStyle: "std-16N-170",
1381
1828
  bg: {
1382
1829
  base: "white",
@@ -1389,6 +1836,11 @@ var textarea_default = defineRecipe({
1389
1836
  _highContrast: "GrayText"
1390
1837
  }
1391
1838
  },
1839
+ /**
1840
+ * border border-solid-gray-600 hover:border-black
1841
+ * aria-disabled:border-solid-gray-300 aria-disabled:forced-colors:border-[GrayText]
1842
+ * aria-[invalid=true]:border-error-1 aria-[invalid=true]:hover:border-red-1000
1843
+ */
1392
1844
  borderStyle: {
1393
1845
  base: "solid",
1394
1846
  _readOnly: "dashed"
@@ -1406,6 +1858,11 @@ var textarea_default = defineRecipe({
1406
1858
  _hover: "red.1000"
1407
1859
  }
1408
1860
  },
1861
+ /**
1862
+ * focus:outline focus:outline-4 focus:outline-black
1863
+ * focus:outline-offset-[calc(2/16*1rem)]
1864
+ * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
1865
+ */
1409
1866
  _focus: {
1410
1867
  outlineStyle: "solid",
1411
1868
  outlineWidth: "4px",
@@ -1415,7 +1872,6 @@ var textarea_default = defineRecipe({
1415
1872
  }
1416
1873
  }
1417
1874
  });
1418
-
1419
1875
  //#endregion
1420
1876
  //#region src/recipes/field.ts
1421
1877
  /**
@@ -1458,8 +1914,6 @@ const field = defineSlotRecipe({
1458
1914
  } },
1459
1915
  defaultVariants: { size: "md" }
1460
1916
  });
1461
- var field_default = field;
1462
-
1463
1917
  //#endregion
1464
1918
  //#region src/recipes/fieldset.ts
1465
1919
  var fieldset_default = defineSlotRecipe({
@@ -1477,12 +1931,11 @@ var fieldset_default = defineSlotRecipe({
1477
1931
  } },
1478
1932
  defaultVariants: { size: "md" }
1479
1933
  });
1480
-
1481
1934
  //#endregion
1482
1935
  //#region src/recipes/file-upload.ts
1483
1936
  var file_upload_default = defineSlotRecipe({
1484
1937
  className: "file-upload",
1485
- slots: anatomy$5.extendWith("itemDetail").keys(),
1938
+ slots: anatomy$6.extendWith("itemDetail").keys(),
1486
1939
  base: {
1487
1940
  root: {
1488
1941
  display: "flex",
@@ -1532,7 +1985,7 @@ var file_upload_default = defineSlotRecipe({
1532
1985
  display: "list-item",
1533
1986
  color: {
1534
1987
  base: "solid-gray.600",
1535
- "[data-status=rejected]": "error.1",
1988
+ "&[data-status=rejected]": "error.1",
1536
1989
  _marker: "solid-gray.600"
1537
1990
  },
1538
1991
  "& > *": {
@@ -1573,7 +2026,6 @@ var file_upload_default = defineSlotRecipe({
1573
2026
  }
1574
2027
  }
1575
2028
  });
1576
-
1577
2029
  //#endregion
1578
2030
  //#region src/recipes/hamburger-menu-button.ts
1579
2031
  /**
@@ -1583,21 +2035,35 @@ var file_upload_default = defineSlotRecipe({
1583
2035
  var hamburger_menu_button_default = defineRecipe({
1584
2036
  className: "hamburger-menu-button",
1585
2037
  base: {
2038
+ /**
2039
+ * flex w-fit items-center text-oln-16N-100 rounded-6 touch-manipulation
2040
+ */
1586
2041
  display: "flex",
1587
2042
  width: "fit-content",
1588
2043
  alignItems: "center",
1589
2044
  textStyle: "oln-16N-100",
1590
2045
  rounded: 6,
2046
+ /**
2047
+ * gap-x-1 px-3 pb-1.5 pt-1
2048
+ */
1591
2049
  px: 3,
1592
2050
  pb: 1.5,
1593
2051
  pt: 1,
1594
2052
  touchAction: "manipulation",
1595
2053
  columnGap: 1.5,
2054
+ /**
2055
+ * hover:bg-solid-gray-50 hover:underline hover:underline-offset-[calc(3/16*1rem)]
2056
+ */
1596
2057
  _hover: {
1597
2058
  bg: "solid-gray.50",
1598
2059
  textDecoration: "underline",
1599
2060
  textUnderlineOffset: "calc(3 / 16 * 1rem)"
1600
2061
  },
2062
+ /**
2063
+ * focus-visible:outline focus-visible:outline-4 focus-visible:outline-black
2064
+ * focus-visible:outline-offset-[calc(2/16*1rem)] focus-visible:bg-yellow-300
2065
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
2066
+ */
1601
2067
  _focusVisible: {
1602
2068
  bg: "yellow.300",
1603
2069
  outlineStyle: "solid",
@@ -1606,10 +2072,12 @@ var hamburger_menu_button_default = defineRecipe({
1606
2072
  outlineOffset: .5,
1607
2073
  focusBox: "calc({spacing.1} / 2)"
1608
2074
  },
2075
+ /**
2076
+ * override reset
2077
+ */
1609
2078
  cursor: "pointer"
1610
2079
  }
1611
2080
  });
1612
-
1613
2081
  //#endregion
1614
2082
  //#region src/recipes/legend.ts
1615
2083
  /**
@@ -1619,6 +2087,9 @@ var hamburger_menu_button_default = defineRecipe({
1619
2087
  var legend_default = defineRecipe({
1620
2088
  className: "legend",
1621
2089
  base: {
2090
+ /**
2091
+ * flex w-fit items-center gap-2 text-solid-gray-800
2092
+ */
1622
2093
  display: "flex",
1623
2094
  width: "fit-content",
1624
2095
  alignItems: "center",
@@ -1626,20 +2097,34 @@ var legend_default = defineRecipe({
1626
2097
  color: "solid-gray.800"
1627
2098
  },
1628
2099
  variants: { size: {
1629
- sm: { textStyle: "std-16B-170" },
1630
- md: { textStyle: "std-17B-170" },
1631
- lg: { textStyle: "std-18B-160" }
2100
+ sm: {
2101
+ /**
2102
+ * data-[size=sm]:text-std-16B-170
2103
+ */
2104
+ textStyle: "std-16B-170" },
2105
+ md: {
2106
+ /**
2107
+ * data-[size=md]:text-std-17B-170
2108
+ */
2109
+ textStyle: "std-17B-170" },
2110
+ lg: {
2111
+ /**
2112
+ * data-[size=lg]:text-std-18B-160
2113
+ */
2114
+ textStyle: "std-18B-160" }
1632
2115
  } },
1633
2116
  defaultVariants: { size: "md" }
1634
2117
  });
1635
-
1636
2118
  //#endregion
1637
2119
  //#region src/recipes/list.ts
1638
2120
  var list_default = defineRecipe({
1639
2121
  className: "list",
1640
- base: { py: 1 }
2122
+ base: {
2123
+ /**
2124
+ * py-1
2125
+ */
2126
+ py: 1 }
1641
2127
  });
1642
-
1643
2128
  //#endregion
1644
2129
  //#region src/recipes/menu-item.ts
1645
2130
  /**
@@ -1649,6 +2134,12 @@ var list_default = defineRecipe({
1649
2134
  var menu_item_default = defineRecipe({
1650
2135
  className: "menu-item",
1651
2136
  base: {
2137
+ /**
2138
+ * flex relative items-center text-nowrap
2139
+ * bg-white hover:bg-solid-gray-50 focus-visible:bg-yellow-300
2140
+ * text-oln-16N-100 text-solid-gray-800
2141
+ * ${isCurrent ? '!text-blue-1000 !bg-blue-100 font-bold' : ''}
2142
+ */
1652
2143
  display: "flex",
1653
2144
  position: "relative",
1654
2145
  alignItems: "center",
@@ -1683,14 +2174,26 @@ var menu_item_default = defineRecipe({
1683
2174
  _selected: "bold",
1684
2175
  _checked: "bold"
1685
2176
  },
2177
+ /**
2178
+ * hover:underline hover:underline-offset-[calc(3/16*1rem)]
2179
+ */
1686
2180
  _hover: {
1687
2181
  textDecoration: "underline",
1688
2182
  textUnderlineOffset: "calc(3 / 16 * 1rem)"
1689
2183
  },
2184
+ /**
2185
+ * py-3 pl-3 pr-6 gap-x-2
2186
+ */
1690
2187
  py: 3,
1691
2188
  pl: 3,
1692
2189
  pr: 6,
1693
2190
  columnGap: 2,
2191
+ /**
2192
+ * focus-visible:outline focus-visible:outline-4 focus-visible:outline-black
2193
+ * focus-visible:-outline-offset-4
2194
+ * focus-visible:ring-[calc(6/16*1rem)] focus-visible:ring-inset
2195
+ * focus-visible:ring-yellow-300
2196
+ */
1694
2197
  _focusVisible: {
1695
2198
  rounded: 4,
1696
2199
  outlineStyle: "solid",
@@ -1719,6 +2222,9 @@ var menu_item_default = defineRecipe({
1719
2222
  } }
1720
2223
  },
1721
2224
  isCondensed: { true: {
2225
+ /**
2226
+ * ${isCondensed ? 'py-1.5 pl-1.5 pr-4 gap-x-1.5'}
2227
+ */
1722
2228
  py: 1.5,
1723
2229
  pl: 1.5,
1724
2230
  pr: 4,
@@ -1730,7 +2236,6 @@ var menu_item_default = defineRecipe({
1730
2236
  isCondensed: false
1731
2237
  }
1732
2238
  });
1733
-
1734
2239
  //#endregion
1735
2240
  //#region src/recipes/menu.ts
1736
2241
  /**
@@ -1741,7 +2246,7 @@ var menu_item_default = defineRecipe({
1741
2246
  const itemStyle = { ...menu_item_default.base };
1742
2247
  var menu_default = defineSlotRecipe({
1743
2248
  className: "menu",
1744
- slots: anatomy$6.keys(),
2249
+ slots: anatomy$7.keys(),
1745
2250
  base: {
1746
2251
  content: {
1747
2252
  minWidth: "fit-content",
@@ -1804,1200 +2309,1592 @@ var menu_default = defineSlotRecipe({
1804
2309
  } } },
1805
2310
  defaultVariants: { isCondensed: false }
1806
2311
  });
1807
-
1808
2312
  //#endregion
1809
- //#region src/recipes/menu-list.ts
1810
- var menu_list_default = defineSlotRecipe({
1811
- className: "menu-list",
1812
- slots: menuListAnatomy.keys(),
1813
- base: {
1814
- root: {},
1815
- label: {
1816
- py: 3,
1817
- pl: 3,
1818
- pr: 6,
1819
- textStyle: "oln-17B-100",
1820
- textWrap: "nowrap",
1821
- display: "block",
1822
- mb: 2
1823
- },
1824
- content: {},
1825
- item: { ...menu_item_default.base },
1826
- itemGroup: { my: 1 },
1827
- itemGroupLabel: {
1828
- ...menu_item_default.base,
1829
- position: "sticky",
1830
- top: 0,
1831
- bg: "white"
1832
- },
1833
- itemText: {},
1834
- itemIndicator: {
1835
- position: "absolute",
1836
- top: "50%",
1837
- right: 4,
1838
- transform: "translateY(-50%)"
1839
- }
1840
- },
1841
- variants: {
1842
- variant: {
1843
- standard: {
1844
- item: { ...menu_item_default.variants?.variant?.standard },
1845
- itemGroupLabel: { ...menu_item_default.variants?.variant?.standard }
2313
+ //#region src/recipes/index.ts
2314
+ const recipes = {
2315
+ accordion: accordion_default,
2316
+ blockquote: blockquote_default,
2317
+ breadcrumb: breadcrumb_default,
2318
+ button: button_default,
2319
+ card: card_default,
2320
+ checkbox: checkbox_default,
2321
+ chipLabel: chip_label_default,
2322
+ chipTag: chip_tag_default,
2323
+ datePicker: date_picker_default,
2324
+ dateInput: date_input_default,
2325
+ descriptionList: description_list_default,
2326
+ disclosure: disclosure_default,
2327
+ digitalGoDivider: divider_default,
2328
+ drawer: drawer_default,
2329
+ emergencyBanner: emergency_banner_default,
2330
+ errorText: error_text_default,
2331
+ field,
2332
+ fieldset: fieldset_default,
2333
+ fileUpload: file_upload_default,
2334
+ hamburgerMenuButton: hamburger_menu_button_default,
2335
+ input: input_default,
2336
+ label: label_default,
2337
+ legend: legend_default,
2338
+ link: link_default,
2339
+ list: list_default,
2340
+ menu: menu_default,
2341
+ menuItem: menu_item_default,
2342
+ menuList: defineSlotRecipe({
2343
+ className: "menu-list",
2344
+ slots: menuListAnatomy.keys(),
2345
+ base: {
2346
+ root: {},
2347
+ label: {
2348
+ py: 3,
2349
+ pl: 3,
2350
+ pr: 6,
2351
+ textStyle: "oln-17B-100",
2352
+ textWrap: "nowrap",
2353
+ display: "block",
2354
+ mb: 2
2355
+ },
2356
+ content: {},
2357
+ item: { ...menu_item_default.base },
2358
+ itemGroup: { my: 1 },
2359
+ itemGroupLabel: {
2360
+ ...menu_item_default.base,
2361
+ position: "sticky",
2362
+ top: 0,
2363
+ bg: "white"
1846
2364
  },
1847
- boxed: {
1848
- item: { ...menu_item_default.variants?.variant?.boxed },
1849
- itemGroupLabel: { ...menu_item_default.variants?.variant?.boxed }
2365
+ itemText: {},
2366
+ itemIndicator: {
2367
+ position: "absolute",
2368
+ top: "50%",
2369
+ right: 4,
2370
+ transform: "translateY(-50%)"
1850
2371
  }
1851
2372
  },
1852
- isCondensed: { true: {} }
1853
- },
1854
- defaultVariants: {
1855
- variant: "standard",
1856
- isCondensed: false
1857
- }
1858
- });
1859
-
1860
- //#endregion
1861
- //#region src/recipes/notification-banner.ts
1862
- /**
1863
- * source:
1864
- * https://github.com/digital-go-jp/design-system-example-components-react/tree/main/src/components/NotificationBanner
1865
- * https://github.com/digital-go-jp/design-system-example-components-html/blob/main/src/components/notification-banner
1866
- *
1867
- * inspired by Park UI
1868
- * https://park-ui.com/react/docs/components/alert
1869
- */
1870
- var notification_banner_default = defineSlotRecipe({
1871
- className: "notification-banner",
1872
- description: "サイト/サービス全体に関わる、またはページや要素単位における重要度の高い情報を、ユーザーの操作に関わらず、サイト/サービス側からユーザーへ提示する場合に用いる通知バナーです。通知に対するユーザーアクションを要求することが可能です。メンテナンスを通知したい、ユーザーの対応が必要な情報を通知してアクションさせたい、といった要求に対応することができます。",
1873
- slots: notificationBannerAnatomy.keys(),
1874
- base: {
1875
- root: {
1876
- "--icon-size": {
1877
- base: "{spacing.6}",
1878
- md: "{spacing.9}"
1879
- },
1880
- "--icon-scale": {
1881
- base: 24 / 36,
1882
- md: 1
1883
- },
1884
- p: {
1885
- base: 4,
1886
- md: 6
1887
- },
1888
- borderColor: "currentcolor",
1889
- display: "grid",
1890
- gridTemplateColumns: "var(--icon-size) 1fr minmax(0, auto)",
1891
- columnGap: {
1892
- base: 3,
1893
- md: 6
2373
+ variants: {
2374
+ variant: {
2375
+ standard: {
2376
+ item: { ...menu_item_default.variants?.variant?.standard },
2377
+ itemGroupLabel: { ...menu_item_default.variants?.variant?.standard }
2378
+ },
2379
+ boxed: {
2380
+ item: { ...menu_item_default.variants?.variant?.boxed },
2381
+ itemGroupLabel: { ...menu_item_default.variants?.variant?.boxed }
2382
+ }
1894
2383
  },
1895
- rowGap: 4
2384
+ isCondensed: { true: {} }
1896
2385
  },
1897
- header: {
1898
- display: "grid",
1899
- gridTemplateColumns: "subgrid",
1900
- gridColumnStart: 2,
1901
- gridColumnEnd: -1,
1902
- placeItems: "start",
1903
- "& > *:last-child": { gridColumnEnd: -1 }
1904
- },
1905
- icon: {
1906
- mt: {
1907
- base: .5,
1908
- md: 0
2386
+ defaultVariants: {
2387
+ variant: "standard",
2388
+ isCondensed: false
2389
+ }
2390
+ }),
2391
+ notificationBanner: defineSlotRecipe({
2392
+ className: "notification-banner",
2393
+ description: "サイト/サービス全体に関わる、またはページや要素単位における重要度の高い情報を、ユーザーの操作に関わらず、サイト/サービス側からユーザーへ提示する場合に用いる通知バナーです。通知に対するユーザーアクションを要求することが可能です。メンテナンスを通知したい、ユーザーの対応が必要な情報を通知してアクションさせたい、といった要求に対応することができます。",
2394
+ slots: notificationBannerAnatomy.keys(),
2395
+ base: {
2396
+ root: {
2397
+ /**
2398
+ * [--icon-size:calc(24/16*1rem)] desktop:[--icon-size:calc(36/16*1rem)]
2399
+ */
2400
+ "--icon-size": {
2401
+ base: "{spacing.6}",
2402
+ md: "{spacing.9}"
2403
+ },
2404
+ "--icon-scale": {
2405
+ base: 24 / 36,
2406
+ md: 1
2407
+ },
2408
+ /**
2409
+ * p-4 desktop:p-6 border-current
2410
+ */
2411
+ p: {
2412
+ base: 4,
2413
+ md: 6
2414
+ },
2415
+ borderColor: "currentcolor",
2416
+ /**
2417
+ * grid grid-cols-[var(--icon-size)_1fr_minmax(0,auto)]
2418
+ * gap-x-3 desktop:gap-x-6 gap-y-4
2419
+ */
2420
+ display: "grid",
2421
+ gridTemplateColumns: "var(--icon-size) 1fr minmax(0, auto)",
2422
+ columnGap: {
2423
+ base: 3,
2424
+ md: 6
2425
+ },
2426
+ rowGap: 4
2427
+ },
2428
+ header: {
2429
+ /**
2430
+ * grid grid-cols-subgrid col-start-2 -col-end-1 place-items-start
2431
+ [&>*:last-child]:-col-end-1
2432
+ */
2433
+ display: "grid",
2434
+ gridTemplateColumns: "subgrid",
2435
+ gridColumnStart: 2,
2436
+ gridColumnEnd: -1,
2437
+ placeItems: "start",
2438
+ "& > *:last-child": { gridColumnEnd: -1 }
2439
+ },
2440
+ icon: {
2441
+ /**
2442
+ * mt-[calc(2/16*1rem)] desktop:mt-0
2443
+ */
2444
+ mt: {
2445
+ base: .5,
2446
+ md: 0
2447
+ },
2448
+ /**
2449
+ * h-auto max-w-full
2450
+ */
2451
+ height: "auto",
2452
+ maxWidth: "full",
2453
+ /**
2454
+ * icon element
2455
+ * instead of icon component
2456
+ */
2457
+ _before: {
2458
+ content: "\"\"",
2459
+ display: "block",
2460
+ bg: "currentColor",
2461
+ width: "36px",
2462
+ height: "36px",
2463
+ transformOrigin: "left center",
2464
+ transform: "scale(var(--icon-scale))"
2465
+ }
1909
2466
  },
1910
- height: "auto",
1911
- maxWidth: "full",
1912
- _before: {
1913
- content: "\"\"",
1914
- display: "block",
1915
- bg: "currentColor",
1916
- width: "36px",
1917
- height: "36px",
1918
- transformOrigin: "left center",
1919
- transform: "scale(var(--icon-scale))"
1920
- }
1921
- },
1922
- close: {
1923
- _before: {
1924
- content: "\"\"",
1925
- display: "block",
1926
- mt: .5,
1927
- width: 6,
1928
- height: 6,
1929
- bg: "currentColor",
1930
- 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')"
2467
+ close: {
2468
+ _before: {
2469
+ content: "\"\"",
2470
+ display: "block",
2471
+ mt: .5,
2472
+ width: 6,
2473
+ height: 6,
2474
+ bg: "currentColor",
2475
+ 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')"
2476
+ },
2477
+ ...hamburger_menu_button_default.base,
2478
+ display: "inline-flex",
2479
+ gap: 1,
2480
+ mr: -3,
2481
+ color: "solid-gray.900"
2482
+ },
2483
+ heading: {
2484
+ /**
2485
+ * text-solid-gray-900 col-start-1 desktop:mt-0.5
2486
+ * text-std-17B-170 desktop:text-std-20B-160
2487
+ *
2488
+ * @todo
2489
+ * std-20B-160 doesn't exist and replace it to std-20B-150
2490
+ */
2491
+ textStyle: {
2492
+ base: "std-17B-170",
2493
+ md: "std-20B-150"
2494
+ },
2495
+ color: "solid-gray.900",
2496
+ gridColumnStart: 1,
2497
+ mt: {
2498
+ base: "auto",
2499
+ md: .5
2500
+ }
1931
2501
  },
1932
- ...hamburger_menu_button_default.base,
1933
- display: "inline-flex",
1934
- gap: 1,
1935
- mr: -3,
1936
- color: "solid-gray.900"
1937
- },
1938
- heading: {
1939
- textStyle: {
1940
- base: "std-17B-170",
1941
- md: "std-20B-150"
1942
- },
1943
- color: "solid-gray.900",
1944
- gridColumnStart: 1,
1945
- mt: {
1946
- base: "auto",
1947
- md: .5
2502
+ body: {
2503
+ /**
2504
+ * col-start-1 -col-end-1 desktop:col-start-2 text-std-16N-170 text-solid-gray-800
2505
+ */
2506
+ gridColumnStart: {
2507
+ base: 1,
2508
+ md: 2
2509
+ },
2510
+ gridColumnEnd: -1,
2511
+ textStyle: "std-16N-170",
2512
+ color: "solid-gray.800"
2513
+ },
2514
+ actions: {
2515
+ /**
2516
+ * margin-bottom: calc(-8 / 16 * 1rem);
2517
+ * display: grid;
2518
+ * gap: calc(8 / 16 * 1rem);
2519
+ * grid-column: 1 / 4;
2520
+ * @media (min-width: 48rem) {
2521
+ * .dads-notification-banner__actions {
2522
+ * grid-auto-flow: column;
2523
+ * gap: calc(16 / 16 * 1rem);
2524
+ * grid-column: 2 / 4;
2525
+ * justify-content: end;
2526
+ * }
2527
+ * }
2528
+ */
2529
+ mb: -2,
2530
+ display: "grid",
2531
+ gap: {
2532
+ base: 2,
2533
+ md: 4
2534
+ },
2535
+ gridColumn: {
2536
+ base: "1 / 4",
2537
+ md: "2 / 4"
2538
+ },
2539
+ gridAutoFlow: { md: "column" },
2540
+ justifyContent: { md: "end" }
1948
2541
  }
1949
2542
  },
1950
- body: {
1951
- gridColumnStart: {
1952
- base: 1,
1953
- md: 2
2543
+ variants: {
2544
+ type: {
2545
+ success: {
2546
+ root: {
2547
+ /**
2548
+ * text-success-2 [--color-chip-color:currentColor]
2549
+ */
2550
+ color: "success.2",
2551
+ "--color-chip-color": "currentColor"
2552
+ },
2553
+ 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')" } },
2554
+ actions: { "& button": { colorPalette: "green" } }
2555
+ },
2556
+ error: {
2557
+ root: {
2558
+ /**
2559
+ * text-error-1 [--color-chip-color:currentColor]
2560
+ */
2561
+ color: "error.1",
2562
+ "--color-chip-color": "currentColor"
2563
+ },
2564
+ 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')" } },
2565
+ actions: { "& button": { colorPalette: "red" } }
2566
+ },
2567
+ warning: {
2568
+ root: {
2569
+ /**
2570
+ * text-warning-yellow-2 [--color-chip-color:theme(colors.yellow.400)]
2571
+ */
2572
+ color: "warning.yellow.2",
2573
+ "--color-chip-color": "{colors.yellow.400}"
2574
+ },
2575
+ icon: { _before: { clipPath: "path('M0 34.0909H36L18 3L0 34.0909ZM19.6364 29.1818H16.3636V25.9091H19.6364V29.1818ZM19.6364 22.6364H16.3636V16.0909H19.6364V22.6364Z')" } },
2576
+ actions: { "& button": { colorPalette: "yellow" } }
2577
+ },
2578
+ info1: {
2579
+ root: {
2580
+ /**
2581
+ * text-blue-900 [--color-chip-color:currentColor]
2582
+ */
2583
+ color: "blue.900",
2584
+ "--color-chip-color": "currentColor"
2585
+ },
2586
+ 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')" } },
2587
+ actions: { "& button": { colorPalette: "blue" } }
2588
+ },
2589
+ info2: {
2590
+ root: {
2591
+ /**
2592
+ * text-solid-gray-536 [--color-chip-color:currentColor]
2593
+ */
2594
+ color: "solid-gray.536",
2595
+ "--color-chip-color": "currentColor"
2596
+ },
2597
+ 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')" } },
2598
+ actions: { "& button": { colorPalette: "solid-gray" } }
2599
+ }
1954
2600
  },
1955
- gridColumnEnd: -1,
1956
- textStyle: "std-16N-170",
1957
- color: "solid-gray.800"
2601
+ bannerStyle: {
2602
+ standard: { root: {
2603
+ /**
2604
+ * border-[3px] rounded-12
2605
+ */
2606
+ borderWidth: "3px",
2607
+ rounded: 12
2608
+ } },
2609
+ "color-chip": { root: {
2610
+ /**
2611
+ * border-2 !pl-6 desktop:!pl-10
2612
+ * shadow-[inset_8px_0_0_0_var(--color-chip-color)]
2613
+ * desktop:shadow-[inset_16px_0_0_0_var(--color-chip-color)]
2614
+ */
2615
+ borderWidth: "2px",
2616
+ pl: {
2617
+ base: 6,
2618
+ md: 10
2619
+ },
2620
+ shadow: "inset 16px 0 0 0 var(--color-chip-color)"
2621
+ } }
2622
+ }
1958
2623
  },
1959
- actions: {
1960
- mb: -2,
1961
- display: "grid",
1962
- gap: {
1963
- base: 2,
1964
- md: 4
2624
+ defaultVariants: {
2625
+ type: "info1",
2626
+ bannerStyle: "standard"
2627
+ }
2628
+ }),
2629
+ orderedList: defineRecipe({
2630
+ className: "ordered-list",
2631
+ base: {
2632
+ /**
2633
+ * pl-8 list-[revert]
2634
+ */
2635
+ pl: 8,
2636
+ listStyle: "revert",
2637
+ /**
2638
+ * [&_:where(ol,ul)]:mt-1 [&_:where(ol,ul)]:-mb-1
2639
+ */
2640
+ "&:where(ol,ul)": {
2641
+ mt: 1,
2642
+ mb: -1
2643
+ }
2644
+ }
2645
+ }),
2646
+ progress: defineSlotRecipe({
2647
+ className: "progress",
2648
+ description: "プログレスインジケーターは、ユーザーのアクションに対して処理進行中であることを通知します。データ取得リクエストの応答を待っていることをユーザーに伝えたいといった要求に対応します。",
2649
+ slots: anatomy$8.keys(),
2650
+ base: {
2651
+ root: {
2652
+ display: "flex",
2653
+ alignItems: "center",
2654
+ colorPalette: "keyColor"
2655
+ },
2656
+ track: {
2657
+ height: "4px",
2658
+ bg: "colorPalette.500",
2659
+ rounded: "full",
2660
+ overflow: "hidden",
2661
+ position: "relative"
2662
+ },
2663
+ range: {
2664
+ bg: "colorPalette.1200",
2665
+ height: "full",
2666
+ outlineStyle: "solid",
2667
+ outlineWidth: "1px",
2668
+ outlineColor: "white",
2669
+ rounded: "full",
2670
+ transition: "width 0.2s ease-in-out",
2671
+ "--translate-x": "-100%",
2672
+ _indeterminate: {
2673
+ "--animate-from-x": "-40%",
2674
+ "--animate-to-x": "100%",
2675
+ position: "absolute",
2676
+ willChange: "left",
2677
+ minWidth: "50%",
2678
+ animation: "position 1s ease infinite normal none running",
2679
+ backgroundImage: `linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)`
2680
+ }
1965
2681
  },
1966
- gridColumn: {
1967
- base: "1 / 4",
1968
- md: "2 / 4"
2682
+ circle: { _indeterminate: { animation: "spin 2s linear infinite" } },
2683
+ circleTrack: { stroke: "colorPalette.500" },
2684
+ circleRange: {
2685
+ stroke: "colorPalette.1200",
2686
+ strokeLinecap: "round",
2687
+ transitionProperty: "stroke-dashoffset, stroke-dasharray",
2688
+ transitionDuration: "0.6s",
2689
+ _indeterminate: { animation: "circular-progress 1.5s linear infinite" }
1969
2690
  },
1970
- gridAutoFlow: { md: "column" },
1971
- justifyContent: { md: "end" }
1972
- }
1973
- },
1974
- variants: {
1975
- type: {
1976
- success: {
2691
+ label: { textStyle: "std-16N-170" }
2692
+ },
2693
+ variants: { layout: {
2694
+ vertical: {
1977
2695
  root: {
1978
- color: "success.2",
1979
- "--color-chip-color": "currentColor"
2696
+ flexDirection: "column",
2697
+ gap: 4,
2698
+ "--size": "48px",
2699
+ "--thickness": "4px"
1980
2700
  },
1981
- 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')" } },
1982
- actions: { "& button": { colorPalette: "green" } }
2701
+ track: { width: "240px" }
1983
2702
  },
1984
- error: {
2703
+ horizontal: {
1985
2704
  root: {
1986
- color: "error.1",
1987
- "--color-chip-color": "currentColor"
2705
+ flexDirection: "row",
2706
+ gap: 2,
2707
+ "--size": "24px",
2708
+ "--thickness": "2px"
1988
2709
  },
1989
- 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')" } },
1990
- actions: { "& button": { colorPalette: "red" } }
1991
- },
1992
- warning: {
1993
- root: {
1994
- color: "warning.yellow.2",
1995
- "--color-chip-color": "{colors.yellow.400}"
2710
+ track: { width: "80px" }
2711
+ }
2712
+ } },
2713
+ defaultVariants: { layout: "vertical" }
2714
+ }),
2715
+ radioGroup: defineSlotRecipe({
2716
+ className: "radio-group",
2717
+ slots: anatomy$9.keys(),
2718
+ base: {
2719
+ root: {
2720
+ display: "flex",
2721
+ colorPalette: "keyColor",
2722
+ _vertical: {
2723
+ flexDirection: "column",
2724
+ gap: 0
1996
2725
  },
1997
- icon: { _before: { clipPath: "path('M0 34.0909H36L18 3L0 34.0909ZM19.6364 29.1818H16.3636V25.9091H19.6364V29.1818ZM19.6364 22.6364H16.3636V16.0909H19.6364V22.6364Z')" } },
1998
- actions: { "& button": { colorPalette: "yellow" } }
2726
+ _horizonal: {
2727
+ flexDirection: "row",
2728
+ gap: 4
2729
+ }
1999
2730
  },
2000
- info1: {
2001
- root: {
2002
- color: "blue.900",
2003
- "--color-chip-color": "currentColor"
2004
- },
2005
- 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')" } },
2006
- actions: { "& button": { colorPalette: "blue" } }
2731
+ label: { ...legend_default.base },
2732
+ item: {
2733
+ /**
2734
+ * flex w-fit items-start py-2
2735
+ */
2736
+ display: "flex",
2737
+ width: "fit-content",
2738
+ alignItems: "start",
2739
+ py: 2
2007
2740
  },
2008
- info2: {
2009
- root: {
2010
- color: "solid-gray.536",
2011
- "--color-chip-color": "currentColor"
2741
+ itemControl: {
2742
+ /**
2743
+ * flex items-center justify-center shrink-0 rounded-full
2744
+ * has-[input:hover:not(:focus):not([aria-disabled="true"])]:bg-solid-gray-420
2745
+ */
2746
+ /**
2747
+ * appearance-none size-[calc(5/6*100%)] rounded-full
2748
+ */
2749
+ appearance: "none",
2750
+ rounded: "full",
2751
+ width: "calc(var(--radio-size) * 5 / 6)",
2752
+ height: "calc(var(--radio-size) * 5 / 6)",
2753
+ m: "calc(var(--radio-size) / 12)",
2754
+ flexShrink: 0,
2755
+ /**
2756
+ * bg-white aria-disabled:!bg-solid-gray-50
2757
+ */
2758
+ bg: {
2759
+ base: "white",
2760
+ _disabled: "solid-gray.50"
2012
2761
  },
2013
- 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')" } },
2014
- actions: { "& button": { colorPalette: "solid-gray" } }
2015
- }
2016
- },
2017
- bannerStyle: {
2018
- standard: { root: {
2019
- borderWidth: "3px",
2020
- rounded: 12
2021
- } },
2022
- "color-chip": { root: {
2023
- borderWidth: "2px",
2024
- pl: {
2025
- base: 6,
2026
- md: 10
2027
- },
2028
- shadow: "inset 16px 0 0 0 var(--color-chip-color)"
2029
- } }
2030
- }
2031
- },
2032
- defaultVariants: {
2033
- type: "info1",
2034
- bannerStyle: "standard"
2035
- }
2036
- });
2037
-
2038
- //#endregion
2039
- //#region src/recipes/ordered-list.ts
2040
- /**
2041
- * source:
2042
- * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Ol/Ol.tsx
2043
- */
2044
- var ordered_list_default = defineRecipe({
2045
- className: "ordered-list",
2046
- base: {
2047
- pl: 8,
2048
- listStyle: "revert",
2049
- "&:where(ol,ul)": {
2050
- mt: 1,
2051
- mb: -1
2052
- }
2053
- }
2054
- });
2055
-
2056
- //#endregion
2057
- //#region src/recipes/progress.ts
2058
- /**
2059
- * references:
2060
- * https://github.com/cschroeter/park-ui/blob/main/packages/preset/src/theme/recipes/progress.ts
2061
- * https://github.com/chakra-ui/chakra-ui/blob/main/packages/react/src/theme/recipes/progress.ts
2062
- * https://github.com/chakra-ui/chakra-ui/blob/main/packages/react/src/theme/recipes/progress-circle.ts
2063
- */
2064
- var progress_default = defineSlotRecipe({
2065
- className: "progress",
2066
- description: "プログレスインジケーターは、ユーザーのアクションに対して処理進行中であることを通知します。データ取得リクエストの応答を待っていることをユーザーに伝えたいといった要求に対応します。",
2067
- slots: anatomy$7.keys(),
2068
- base: {
2069
- root: {
2070
- display: "flex",
2071
- alignItems: "center",
2072
- colorPalette: "keyColor"
2073
- },
2074
- track: {
2075
- height: "4px",
2076
- bg: "colorPalette.500",
2077
- rounded: "full",
2078
- overflow: "hidden",
2079
- position: "relative"
2080
- },
2081
- range: {
2082
- bg: "colorPalette.1200",
2083
- height: "full",
2084
- outlineStyle: "solid",
2085
- outlineWidth: "1px",
2086
- outlineColor: "white",
2087
- rounded: "full",
2088
- transition: "width 0.2s ease-in-out",
2089
- "--translate-x": "-100%",
2090
- _indeterminate: {
2091
- "--animate-from-x": "-40%",
2092
- "--animate-to-x": "100%",
2093
- position: "absolute",
2094
- willChange: "left",
2095
- minWidth: "50%",
2096
- animation: "position 1s ease infinite normal none running",
2097
- backgroundImage: `linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)`
2098
- }
2099
- },
2100
- circle: { _indeterminate: { animation: "spin 2s linear infinite" } },
2101
- circleTrack: { stroke: "colorPalette.500" },
2102
- circleRange: {
2103
- stroke: "colorPalette.1200",
2104
- strokeLinecap: "round",
2105
- transitionProperty: "stroke-dashoffset, stroke-dasharray",
2106
- transitionDuration: "0.6s",
2107
- _indeterminate: { animation: "circular-progress 1.5s linear infinite" }
2108
- },
2109
- label: { textStyle: "std-16N-170" }
2110
- },
2111
- variants: { layout: {
2112
- vertical: {
2113
- root: {
2114
- flexDirection: "column",
2115
- gap: 4,
2116
- "--size": "48px",
2117
- "--thickness": "4px"
2118
- },
2119
- track: { width: "240px" }
2120
- },
2121
- horizontal: {
2122
- root: {
2123
- flexDirection: "row",
2124
- gap: 2,
2125
- "--size": "24px",
2126
- "--thickness": "2px"
2127
- },
2128
- track: { width: "80px" }
2129
- }
2130
- } },
2131
- defaultVariants: { layout: "vertical" }
2132
- });
2133
-
2134
- //#endregion
2135
- //#region src/recipes/radio-group.ts
2136
- /**
2137
- * source:
2138
- * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Radio/Radio.tsx
2139
- */
2140
- var radio_group_default = defineSlotRecipe({
2141
- className: "radio-group",
2142
- slots: anatomy$8.keys(),
2143
- base: {
2144
- root: {
2145
- display: "flex",
2146
- colorPalette: "keyColor",
2147
- _vertical: {
2148
- flexDirection: "column",
2149
- gap: 0
2150
- },
2151
- _horizonal: {
2152
- flexDirection: "row",
2153
- gap: 4
2154
- }
2155
- },
2156
- label: { ...legend_default.base },
2157
- item: {
2158
- display: "flex",
2159
- width: "fit-content",
2160
- alignItems: "start",
2161
- py: 2
2162
- },
2163
- itemControl: {
2164
- appearance: "none",
2165
- rounded: "full",
2166
- width: "calc(var(--radio-size) * 5 / 6)",
2167
- height: "calc(var(--radio-size) * 5 / 6)",
2168
- m: "calc(var(--radio-size) / 12)",
2169
- flexShrink: 0,
2170
- bg: {
2171
- base: "white",
2172
- _disabled: "solid-gray.50"
2173
- },
2174
- borderColor: {
2175
- base: "solid-gray.600",
2176
- _hover: "black",
2177
- _highContrast: { base: "ButtonText" },
2178
- _checked: {
2179
- base: "colorPalette.primary",
2180
- _hover: "colorPalette.primary.200",
2762
+ borderColor: {
2763
+ /**
2764
+ * border-solid-gray-600
2765
+ * hover:border-black
2766
+ * checked:border-blue-900
2767
+ * checked:hover:border-blue-1100
2768
+ * forced-colors:!border-[ButtonText] forced-colors:checked:!border-[Highlight]
2769
+ */
2770
+ base: "solid-gray.600",
2771
+ _hover: "black",
2772
+ _highContrast: { base: "ButtonText" },
2773
+ _checked: {
2774
+ base: "colorPalette.primary",
2775
+ _hover: "colorPalette.primary.200",
2776
+ _disabled: {
2777
+ base: "solid-gray.300",
2778
+ _highContrast: "GrayText"
2779
+ },
2780
+ _highContrast: "Highlight"
2781
+ },
2782
+ /**
2783
+ * data-[error]:border-error-1 data-[error]:hover:border-red-1000
2784
+ */
2785
+ _invalid: {
2786
+ base: "error.1",
2787
+ _hover: "red.1000",
2788
+ _disabled: "solid-gray.300"
2789
+ },
2790
+ /**
2791
+ * aria-disabled:!border-solid-gray-300
2792
+ * forced-colors:aria-disabled:!border-[GrayText]
2793
+ */
2181
2794
  _disabled: {
2182
2795
  base: "solid-gray.300",
2183
2796
  _highContrast: "GrayText"
2184
- },
2185
- _highContrast: "Highlight"
2797
+ }
2186
2798
  },
2187
- _invalid: {
2188
- base: "error.1",
2189
- _hover: "red.1000",
2190
- _disabled: "solid-gray.300"
2799
+ /**
2800
+ * outline on hover
2801
+ * has-[input:hover:not(:focus):not([aria-disabled="true"])]:bg-solid-gray-420
2802
+ */
2803
+ "&:is(:hover, [data-hover]):not([aria-disabled=\"true\"])": {
2804
+ outlineStyle: "solid",
2805
+ outlineWidth: "calc(var(--radio-size) / 12)",
2806
+ outlineColor: "solid-gray.420",
2807
+ _focus: {
2808
+ outlineStyle: "solid",
2809
+ outlineWidth: "4px",
2810
+ outlineColor: "black",
2811
+ outlineOffset: .5,
2812
+ focusBox: "calc({spacing.1} / 2)"
2813
+ }
2191
2814
  },
2192
- _disabled: {
2193
- base: "solid-gray.300",
2194
- _highContrast: "GrayText"
2195
- }
2196
- },
2197
- "&:is(:hover, [data-hover]):not([aria-disabled=\"true\"])": {
2198
- outlineStyle: "solid",
2199
- outlineWidth: "calc(var(--radio-size) / 12)",
2200
- outlineColor: "solid-gray.420",
2815
+ /**
2816
+ * focus:outline focus:outline-4 focus:outline-black
2817
+ * focus:outline-offset-[calc(2/16*1rem)]
2818
+ * focus:ring-[calc(2/16*1rem)] focus:ring-yellow-300
2819
+ */
2201
2820
  _focus: {
2202
2821
  outlineStyle: "solid",
2203
2822
  outlineWidth: "4px",
2204
2823
  outlineColor: "black",
2205
2824
  outlineOffset: .5,
2206
2825
  focusBox: "calc({spacing.1} / 2)"
2207
- }
2208
- },
2209
- _focus: {
2210
- outlineStyle: "solid",
2211
- outlineWidth: "4px",
2212
- outlineColor: "black",
2213
- outlineOffset: .5,
2214
- focusBox: "calc({spacing.1} / 2)"
2215
- },
2216
- _before: {
2217
- content: "\"\"",
2218
- display: "none",
2219
- width: "full",
2220
- height: "full",
2221
- clipPath: "circle(calc(5 / 16 * 100%))",
2222
- bg: "white"
2223
- },
2224
- _checked: {
2826
+ },
2225
2827
  _before: {
2226
- display: "block",
2227
- bg: {
2228
- base: "colorPalette.primary",
2229
- _hover: "colorPalette.primary.200",
2230
- _highContrast: "Highlight"
2231
- }
2828
+ /**
2829
+ * before:hidden
2830
+ * before:size-full
2831
+ * before:[clip-path:circle(calc(5/16*100%))]
2832
+ * before:bg-white
2833
+ */
2834
+ content: "\"\"",
2835
+ display: "none",
2836
+ width: "full",
2837
+ height: "full",
2838
+ clipPath: "circle(calc(5 / 16 * 100%))",
2839
+ bg: "white"
2232
2840
  },
2233
- _invalid: { _before: { bg: {
2234
- base: "error.1",
2235
- _hover: "red.1000"
2236
- } } },
2237
- _disabled: {
2238
- _before: { bg: {
2239
- base: "solid-gray.300",
2240
- _highContrast: "GrayText"
2241
- } },
2242
- _invalid: { _before: { bg: { base: "solid-gray.300" } } }
2841
+ _checked: {
2842
+ /**
2843
+ * checked:before:block
2844
+ * checked:before:bg-blue-900 checked:hover:before:bg-blue-1100
2845
+ * data-[error]:checked:before:bg-error-1
2846
+ * data-[error]:checked:hover:before:bg-red-1000
2847
+ * aria-disabled:checked:before:!bg-solid-gray-300
2848
+ * forced-colors:checked:before:!bg-[Highlight]
2849
+ * forced-colors:aria-disabled:checked:before:!bg-[GrayText]
2850
+ */
2851
+ _before: {
2852
+ display: "block",
2853
+ bg: {
2854
+ base: "colorPalette.primary",
2855
+ _hover: "colorPalette.primary.200",
2856
+ _highContrast: "Highlight"
2857
+ }
2858
+ },
2859
+ _invalid: { _before: { bg: {
2860
+ base: "error.1",
2861
+ _hover: "red.1000"
2862
+ } } },
2863
+ _disabled: {
2864
+ _before: { bg: {
2865
+ base: "solid-gray.300",
2866
+ _highContrast: "GrayText"
2867
+ } },
2868
+ _invalid: { _before: { bg: { base: "solid-gray.300" } } }
2869
+ }
2243
2870
  }
2244
- }
2245
- },
2246
- itemText: { color: "solid-gray.800" }
2247
- },
2248
- variants: { size: {
2249
- sm: {
2250
- label: { ...legend_default.variants?.size?.sm },
2251
- item: { gap: 1 },
2252
- itemControl: {
2253
- "--radio-size": "{spacing.6}",
2254
- borderWidth: "{spacing.0.5}"
2255
- },
2256
- itemText: {
2257
- pt: "1px",
2258
- textStyle: "dns-16N-130"
2259
- }
2260
- },
2261
- md: {
2262
- label: { ...legend_default.variants?.size?.md },
2263
- item: { gap: 2 },
2264
- itemControl: {
2265
- "--radio-size": "{spacing.8}",
2266
- borderWidth: "{spacing.0.5}"
2267
2871
  },
2268
- itemText: {
2269
- pt: 1,
2270
- textStyle: "dns-16N-130"
2271
- }
2272
- },
2273
- lg: {
2274
- label: { ...legend_default.variants?.size?.lg },
2275
- item: { gap: 3 },
2276
- itemControl: {
2277
- "--radio-size": "{spacing.11}",
2278
- borderWidth: "calc({spacing.1} * 3 / 4)"
2279
- },
2280
- itemText: {
2281
- pt: 2.5,
2282
- textStyle: "dns-17N-130"
2283
- }
2284
- }
2285
- } },
2286
- defaultVariants: { size: "sm" }
2287
- });
2288
-
2289
- //#endregion
2290
- //#region src/recipes/resource-list.ts
2291
- var resource_list_default = defineSlotRecipe({
2292
- className: "resource-list",
2293
- slots: resourceListAnatomy.keys(),
2294
- base: {
2295
- root: {
2296
- display: "flex",
2297
- borderColor: "solid-gray.420",
2298
- overflow: "hidden",
2299
- colorPalette: "keyColor",
2300
- bg: {
2301
- "&:has(input:checked)": "colorPalette.bg",
2302
- _selected: "colorPalette.bg"
2303
- }
2872
+ itemText: {
2873
+ /**
2874
+ * text-solid-gray-800
2875
+ */
2876
+ color: "solid-gray.800" }
2304
2877
  },
2305
- main: {
2306
- display: "flex",
2307
- flexGrow: 1,
2308
- flexDirection: "row",
2309
- alignItems: "center",
2310
- justifyContent: "start",
2311
- gap: {
2312
- base: 4,
2313
- md: 6
2314
- },
2315
- color: "solid-gray.800",
2316
- textStyle: "dns-16N-130",
2317
- py: 4,
2318
- px: {
2319
- base: 4,
2320
- md: 6
2878
+ variants: { size: {
2879
+ sm: {
2880
+ label: { ...legend_default.variants?.size?.sm },
2881
+ item: {
2882
+ /**
2883
+ * data-[size=sm]:gap-1
2884
+ */
2885
+ gap: 1 },
2886
+ itemControl: {
2887
+ /**
2888
+ * data-[size=sm]:size-6
2889
+ */
2890
+ "--radio-size": "{spacing.6}",
2891
+ /**
2892
+ * data-[size=sm]:border-[calc(2/16*1rem)]
2893
+ */
2894
+ borderWidth: "{spacing.0.5}"
2895
+ },
2896
+ itemText: {
2897
+ /**
2898
+ * data-[size=sm]:pt-px
2899
+ * data-[size=sm]:text-dns-16N-130
2900
+ */
2901
+ pt: "1px",
2902
+ textStyle: "dns-16N-130"
2903
+ }
2321
2904
  },
2322
- bg: {
2323
- base: "transparent",
2324
- _hover: "solid-gray.50"
2905
+ md: {
2906
+ label: { ...legend_default.variants?.size?.md },
2907
+ item: {
2908
+ /**
2909
+ * data-[size=md]:gap-2
2910
+ */
2911
+ gap: 2 },
2912
+ itemControl: {
2913
+ /**
2914
+ * data-[size=md]:size-8
2915
+ */
2916
+ "--radio-size": "{spacing.8}",
2917
+ /**
2918
+ * data-[size=md]:border-[calc(2/16*1rem)]
2919
+ */
2920
+ borderWidth: "{spacing.0.5}"
2921
+ },
2922
+ itemText: {
2923
+ /**
2924
+ * data-[size=md]:pt-1
2925
+ * data-[size=md]:text-dns-16N-130
2926
+ */
2927
+ pt: 1,
2928
+ textStyle: "dns-16N-130"
2929
+ }
2325
2930
  },
2326
- _focusVisible: {
2327
- outlineStyle: "solid",
2328
- outlineWidth: "4px",
2329
- outlineColor: "black",
2330
- outlineOffset: .5,
2331
- focusBox: "calc({spacing.1} / 2)"
2332
- }
2333
- },
2334
- action: {
2335
- p: 4,
2336
- display: "flex",
2337
- alignItems: "center",
2338
- justifyContent: "center"
2339
- },
2340
- content: {
2341
- height: "full",
2342
- flexGrow: 1,
2343
- display: "flex",
2344
- flexDirection: "column"
2345
- },
2346
- title: {
2347
- textStyle: "std-20B-150",
2348
- width: "fit-content"
2349
- }
2350
- },
2351
- variants: {
2352
- variant: {
2353
- list: { root: { borderBottomWidth: "1px" } },
2354
- frame: { root: {
2355
- rounded: 16,
2356
- borderWidth: "1px"
2357
- } }
2358
- },
2359
- asLink: { true: {
2360
- main: { position: "relative" },
2361
- title: { _before: {
2362
- content: "\"\"",
2363
- position: "absolute",
2364
- top: 0,
2365
- left: 0,
2366
- width: "full",
2367
- height: "full",
2368
- zIndex: 0,
2369
- cursor: "inherit"
2370
- } }
2371
- } }
2372
- },
2373
- defaultVariants: {
2374
- variant: "list",
2375
- asLink: false
2376
- }
2377
- });
2378
-
2379
- //#endregion
2380
- //#region src/recipes/select.ts
2381
- /**
2382
- * source:
2383
- * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Select/Select.tsx
2384
- */
2385
- var select_default = defineSlotRecipe({
2386
- className: "select",
2387
- description: "セレクトボックスは、複数の選択肢を提供するフォームコントロールです。",
2388
- slots: anatomy$9.keys(),
2389
- base: {
2390
- root: {
2391
- display: "flex",
2392
- flexDirection: "column",
2393
- gap: 1.5
2394
- },
2395
- label: { ...label_default.base },
2396
- control: {
2397
- position: "relative",
2398
- minWidth: "80px",
2399
- maxWidth: "full"
2400
- },
2401
- trigger: {
2402
- ...select_box_default.base,
2403
- pr: 20
2404
- },
2405
- indicator: {
2406
- pointerEvents: "none",
2407
- position: "absolute",
2408
- top: "50%",
2409
- transform: "translateY(-50%)",
2410
- right: 4,
2411
- color: {
2412
- base: {
2413
- base: "solid-gray.900",
2414
- _highContrast: "CanvasText"
2931
+ lg: {
2932
+ label: { ...legend_default.variants?.size?.lg },
2933
+ item: {
2934
+ /**
2935
+ * data-[size=lg]:gap-3
2936
+ */
2937
+ gap: 3 },
2938
+ itemControl: {
2939
+ /**
2940
+ * data-[size=lg]:size-11
2941
+ */
2942
+ "--radio-size": "{spacing.11}",
2943
+ /**
2944
+ * data-[size=lg]:border-[calc(3/16*1rem)]
2945
+ */
2946
+ borderWidth: "calc({spacing.1} * 3 / 4)"
2415
2947
  },
2416
- _disabled: {
2417
- base: "solid-gray.420",
2418
- _highContrast: "GrayText"
2948
+ itemText: {
2949
+ /**
2950
+ * data-[size=lg]:pt-2.5
2951
+ * data-[size=lg]:text-dns-17N-130
2952
+ */
2953
+ pt: 2.5,
2954
+ textStyle: "dns-17N-130"
2419
2955
  }
2420
2956
  }
2421
- },
2422
- clearTrigger: {
2423
- position: "absolute",
2424
- top: "50%",
2425
- right: 12,
2426
- transform: "translateY(-50%)"
2427
- },
2428
- content: { ...menu_default.base?.content },
2429
- itemGroupLabel: {
2430
- textStyle: "oln-16N-1",
2431
- fontWeight: "bold",
2432
- py: 3,
2433
- pl: 3,
2434
- pr: 6
2435
- },
2436
- item: { ...menu_default.base?.item },
2437
- itemIndicator: {
2438
- pointerEvents: "none",
2439
- position: "absolute",
2440
- right: 4,
2441
- top: "50%",
2442
- transform: "translateY(-50%)"
2443
- }
2444
- },
2445
- variants: { size: {
2446
- lg: {
2447
- trigger: { ...select_box_default.variants?.size?.lg },
2448
- label: { ...label_default.variants?.size?.lg }
2449
- },
2450
- md: {
2451
- trigger: { ...select_box_default.variants?.size?.md },
2452
- label: { ...label_default.variants?.size?.md }
2453
- },
2454
- sm: {
2455
- trigger: { ...select_box_default.variants?.size?.sm },
2456
- label: { ...label_default.variants?.size?.sm }
2457
- }
2458
- } },
2459
- defaultVariants: { size: "lg" }
2460
- });
2461
-
2462
- //#endregion
2463
- //#region src/recipes/step-navigation.ts
2464
- /**
2465
- * reference:
2466
- * https://github.com/digital-go-jp/design-system-example-components-html/tree/main/src/components/step-navigation
2467
- */
2468
- var step_navigation_default = defineSlotRecipe({
2469
- className: "step-navigation",
2470
- slots: anatomy$10.extendWith("title", "description").keys(),
2471
- base: {
2472
- root: {
2473
- textStyle: "std-16N-170",
2474
- overflowWrap: "anywhere",
2475
- colorPalette: "keyColor"
2476
- },
2477
- list: {
2478
- m: 0,
2479
- p: 0,
2480
- display: "flex",
2481
- _horizontal: { flexDirection: "row" },
2482
- _vertical: { flexDirection: "column" }
2483
- },
2484
- item: {
2485
- position: "relative",
2486
- boxSizing: "border-box",
2487
- _last: { "& [data-part=separator]": { display: "none" } },
2488
- _horizontal: {
2489
- width: "calc(var(--_step-width, 320) / 16 * 1rem)",
2490
- minWidth: "calc(var(--_step-min-width, 160) / 16 * 1rem)",
2491
- px: 4
2492
- },
2493
- _vertical: {
2494
- flex: 1,
2495
- pb: 6
2496
- }
2497
- },
2498
- trigger: {
2499
- display: "block",
2500
- borderWidth: 0,
2501
- bg: "none",
2502
- p: 0,
2503
- color: "inherit",
2504
- font: "inherit",
2505
- textWrap: "pretty",
2506
- cursor: "pointer",
2507
- _horizontal: {
2508
- width: "100%",
2509
- textAlign: "center"
2510
- },
2511
- _vertical: {
2512
- position: "relative",
2957
+ } },
2958
+ defaultVariants: { size: "sm" }
2959
+ }),
2960
+ requirementBadge: requirement_badge_default,
2961
+ resourceList: defineSlotRecipe({
2962
+ className: "resource-list",
2963
+ slots: resourceListAnatomy.keys(),
2964
+ base: {
2965
+ root: {
2513
2966
  display: "flex",
2514
- alignItems: "baseline",
2515
- columnGap: 4,
2516
- textAlign: "left"
2517
- }
2518
- },
2519
- indicator: {
2520
- position: "relative",
2521
- display: "grid",
2522
- placeContent: "center",
2523
- m: 1,
2524
- boxSizing: "border-box",
2525
- width: "fit-content",
2526
- height: "var(--_number-size)",
2527
- minWidth: "var(--_number-size)",
2528
- color: "colorPalette.primary",
2529
- borderWidth: "2px",
2530
- borderRadius: "full",
2531
- borderColor: "colorPalette.primary",
2532
- bg: "white",
2533
- py: 0,
2534
- px: .5,
2535
- textStyle: "std-20B-150",
2536
- textDecoration: "inherit",
2537
- textDecorationThickness: "inherit",
2538
- _after: { content: "\"\"" },
2539
- _current: {
2540
- bg: "colorPalette.primary",
2541
- color: "white",
2542
- borderColor: "colorPalette.primary",
2543
- outlineWidth: "var(--_outline-width)",
2544
- outlineStyle: "solid",
2545
- outlineColor: "colorPalette.primary",
2546
- outlineOffset: .5,
2547
- boxShadow: "0 0 0 {spacing.0.5} white"
2967
+ borderColor: "solid-gray.420",
2968
+ overflow: "hidden",
2969
+ colorPalette: "keyColor",
2970
+ bg: {
2971
+ "&:has(input:checked)": "colorPalette.bg",
2972
+ _selected: "colorPalette.bg"
2973
+ }
2548
2974
  },
2549
- _complete: {
2550
- bg: "colorPalette.bg",
2551
- _after: {
2552
- position: "absolute",
2553
- top: -2.5,
2554
- left: "calc(50% + {spacing.1.5})",
2555
- borderRadius: "full",
2556
- bg: "colorPalette.primary",
2557
- width: "36px",
2558
- height: "36px",
2559
- 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')"
2975
+ main: {
2976
+ display: "flex",
2977
+ flexGrow: 1,
2978
+ flexDirection: "row",
2979
+ alignItems: "center",
2980
+ justifyContent: "start",
2981
+ gap: {
2982
+ base: 4,
2983
+ md: 6
2984
+ },
2985
+ color: "solid-gray.800",
2986
+ textStyle: "dns-16N-130",
2987
+ /**
2988
+ * p-4 md:px-6 md:py-4
2989
+ */
2990
+ py: 4,
2991
+ px: {
2992
+ base: 4,
2993
+ md: 6
2994
+ },
2995
+ bg: {
2996
+ base: "transparent",
2997
+ _hover: "solid-gray.50"
2998
+ },
2999
+ _focusVisible: {
3000
+ outlineStyle: "solid",
3001
+ outlineWidth: "4px",
3002
+ outlineColor: "black",
3003
+ outlineOffset: .5,
3004
+ focusBox: "calc({spacing.1} / 2)"
2560
3005
  }
2561
3006
  },
2562
- "[data-orientation=horizontal] > &": {
2563
- mr: "auto",
2564
- ml: "auto"
3007
+ action: {
3008
+ p: 4,
3009
+ display: "flex",
3010
+ alignItems: "center",
3011
+ justifyContent: "center"
2565
3012
  },
2566
- "[data-orientation=vertical] > &": {
2567
- flexShrink: 0,
2568
- mx: 1
2569
- }
2570
- },
2571
- title: {
2572
- display: "block",
2573
- textStyle: "std-18B-160",
2574
- textDecorationThickness: "inherit",
2575
- "[data-orientation=horizontal] &": { mt: "var(--_title-margin)" },
2576
- "[data-orientation=vertical] &": {
2577
- pt: "calc(var(--_number-size) / 2 + var(--_number-margin) - 0.875rem)",
2578
- pb: 0
3013
+ content: {
3014
+ height: "full",
3015
+ flexGrow: 1,
3016
+ display: "flex",
3017
+ flexDirection: "column"
3018
+ },
3019
+ title: {
3020
+ /**
3021
+ * mb-4 text-std-20B-150 font-bold group-hover:text-blue-1000 group-hover:decoration-[calc(3/16*1rem)] md:mb-4
3022
+ */
3023
+ textStyle: "std-20B-150",
3024
+ width: "fit-content"
2579
3025
  }
2580
3026
  },
2581
- description: {
2582
- mt: "var(--_description-margin)",
2583
- "[data-orientation=horizontal] &": { textAlign: "center" },
2584
- "[data-orientation=vertical] &": {
2585
- mt: "calc(var(--_description-margin) - (var(--_number-size) / 2 + var(--_number-margin) - 0.875rem))",
2586
- pl: "calc(var(--_number-size) + var(--_number-margin) + var(--_number-margin) + {spacing.4})"
2587
- }
3027
+ variants: {
3028
+ variant: {
3029
+ list: { root: { borderBottomWidth: "1px" } },
3030
+ frame: { root: {
3031
+ rounded: 16,
3032
+ borderWidth: "1px"
3033
+ } }
3034
+ },
3035
+ asLink: { true: {
3036
+ main: { position: "relative" },
3037
+ title: { "& > a": { _before: {
3038
+ content: "\"\"",
3039
+ position: "absolute",
3040
+ top: 0,
3041
+ left: 0,
3042
+ width: "full",
3043
+ height: "full",
3044
+ zIndex: 0,
3045
+ cursor: "inherit"
3046
+ } } }
3047
+ } }
2588
3048
  },
2589
- separator: {
2590
- position: "absolute",
2591
- zIndex: -1,
2592
- content: "\"\"",
2593
- borderColor: "colorPalette.primary",
2594
- _horizontal: {
2595
- top: "calc(var(--_number-size) / 2 + var(--_number-margin))",
2596
- left: "50%",
2597
- width: "100%",
2598
- borderBottomWidth: "1px"
2599
- },
2600
- _vertical: {
2601
- left: "calc(var(--_number-size) / 2 + var(--_number-margin))",
2602
- top: "calc(50% - {spacing.4})",
2603
- height: "100%",
2604
- borderRightWidth: "1px"
2605
- }
3049
+ defaultVariants: {
3050
+ variant: "list",
3051
+ asLink: false
2606
3052
  }
2607
- },
2608
- variants: { size: {
2609
- md: {
2610
- root: { root: {
2611
- "--_number-size": "{spacing.11}",
2612
- "--_number-margin": "{spacing.1}",
2613
- "--_outline-width": "{spacing.0.5}",
2614
- "--_title-margin": "{spacing.6}",
2615
- "--_description-margin": "{spacing.2}"
2616
- } },
2617
- indicator: { _after: { transform: "scale(0.5)" } }
2618
- },
2619
- sm: {
3053
+ }),
3054
+ select: defineSlotRecipe({
3055
+ className: "select",
3056
+ description: "セレクトボックスは、複数の選択肢を提供するフォームコントロールです。",
3057
+ slots: anatomy$10.keys(),
3058
+ base: {
2620
3059
  root: {
2621
- "--_number-size": "{spacing.8}",
2622
- "--_number-margin": "calc({spacing.1} * 3 / 4)",
2623
- "--_outline-width": "calc({spacing.1} / 4)",
2624
- "--_title-margin": "{spacing.4}",
2625
- "--_description-margin": "{spacing.1}"
3060
+ display: "flex",
3061
+ flexDirection: "column",
3062
+ gap: 1.5
3063
+ },
3064
+ label: { ...label_default.base },
3065
+ control: {
3066
+ /**
3067
+ * relative min-w-80 max-w-full
3068
+ */
3069
+ position: "relative",
3070
+ minWidth: "80px",
3071
+ maxWidth: "full"
3072
+ },
3073
+ trigger: {
3074
+ ...select_box_default.base,
3075
+ /**
3076
+ * adapt to clearTrigger
3077
+ */
3078
+ pr: 20
2626
3079
  },
2627
3080
  indicator: {
2628
- m: "calc({spacing.1} * 3 / 4)",
2629
- borderWidth: "1px",
2630
- textStyle: "std-16B-170",
2631
- "[data-orientation=horizontal] > &": {
2632
- mr: "auto",
2633
- ml: "auto"
2634
- },
2635
- "[data-orientation=vertical] > &": { mx: 1 },
2636
- _after: { transform: "scale(0.33)" }
3081
+ /**
3082
+ * pointer-events-none absolute right-4 top-1/2 -translate-y-1/2
3083
+ */
3084
+ pointerEvents: "none",
3085
+ position: "absolute",
3086
+ top: "50%",
3087
+ transform: "translateY(-50%)",
3088
+ right: 4,
3089
+ /**
3090
+ * ${props['aria-disabled'] ? 'text-solid-gray-420 forced-colors:text-[GrayText]' : 'text-solid-gray-900 forced-colors:text-[CanvasText]'}
3091
+ */
3092
+ color: {
3093
+ base: {
3094
+ base: "solid-gray.900",
3095
+ _highContrast: "CanvasText"
3096
+ },
3097
+ _disabled: {
3098
+ base: "solid-gray.420",
3099
+ _highContrast: "GrayText"
3100
+ }
3101
+ }
2637
3102
  },
2638
- title: { textStyle: "std-16B-170" }
2639
- }
2640
- } },
2641
- defaultVariants: { size: "md" }
2642
- });
2643
-
2644
- //#endregion
2645
- //#region src/recipes/table.ts
2646
- /**
2647
- * source:
2648
- * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/Table/Table.stories.tsx
2649
- */
2650
- var table_default = defineSlotRecipe({
2651
- className: "table",
2652
- slots: tableAnatomy.keys(),
2653
- base: {
2654
- root: {
2655
- maxWidth: "full",
2656
- colorPalette: "keyColor"
2657
- },
2658
- head: { "& tr": {
2659
- borderColor: "black",
2660
- bg: "solid-gray.50"
2661
- } },
2662
- body: { "& tr": { borderColor: "solid-gray.420" } },
2663
- foot: {},
2664
- row: {
2665
- borderBottomWidth: "1px",
2666
- "tbody > &:has(input:checked)": { bg: "colorPalette.100" }
2667
- },
2668
- header: {
2669
- px: 4,
2670
- verticalAlign: "top",
2671
- textAlign: "start"
2672
- },
2673
- cell: {
2674
- px: 4,
2675
- verticalAlign: "top"
2676
- },
2677
- caption: {
2678
- mb: 4,
2679
- textStyle: "oln-17B-100"
2680
- }
2681
- },
2682
- variants: {
2683
- dense: {
2684
- false: {
2685
- root: { textStyle: "std-16N-170" },
2686
- header: { py: 5 },
2687
- cell: { py: 5 }
2688
- },
2689
- true: {
2690
- root: { textStyle: "dns-16N-130" },
2691
- header: { py: 2.5 },
2692
- cell: { py: 2.5 }
3103
+ clearTrigger: {
3104
+ position: "absolute",
3105
+ top: "50%",
3106
+ right: 12,
3107
+ transform: "translateY(-50%)"
3108
+ },
3109
+ content: { ...menu_default.base?.content },
3110
+ itemGroupLabel: {
3111
+ textStyle: "oln-16N-1",
3112
+ fontWeight: "bold",
3113
+ py: 3,
3114
+ pl: 3,
3115
+ pr: 6
3116
+ },
3117
+ item: { ...menu_default.base?.item },
3118
+ itemIndicator: {
3119
+ pointerEvents: "none",
3120
+ position: "absolute",
3121
+ right: 4,
3122
+ top: "50%",
3123
+ transform: "translateY(-50%)"
2693
3124
  }
2694
3125
  },
2695
- striped: { true: { body: { "& tr": { _even: { "&:not(:has(input:checked))": { bg: "{colors.colorPalette.bg}/25" } } } } } },
2696
- hovered: { true: { body: { "& tr": {
2697
- _hover: { bg: "colorPalette.bg" },
2698
- _even: { "&:not(:has(input:checked))": { _hover: { bg: "{colors.colorPalette.bg}" } } }
2699
- } } } }
2700
- },
2701
- defaultVariants: {
2702
- dense: false,
2703
- striped: false,
2704
- hovered: false
2705
- }
2706
- });
2707
-
2708
- //#endregion
2709
- //#region src/recipes/tabs.ts
2710
- var tabs_default = defineSlotRecipe({
2711
- className: "tabs",
2712
- slots: anatomy$11.keys(),
2713
- base: {
2714
- root: { colorPalette: "keyColor" },
2715
- list: {
2716
- display: "flex",
2717
- width: "full",
2718
- alignItems: "end",
2719
- whiteSpace: "nowrap",
2720
- borderBottomWidth: "1px",
2721
- borderColor: "solid-gray.420",
2722
- overflowX: "auto"
2723
- },
2724
- trigger: {
2725
- position: "relative",
2726
- zIndex: 0,
2727
- display: "inline-flex",
2728
- gap: 2,
2729
- justifyContent: "center",
2730
- alignItems: "center",
2731
- textStyle: {
2732
- base: "oln-14B-100",
2733
- md: "oln-16B-100"
3126
+ variants: { size: {
3127
+ lg: {
3128
+ trigger: { ...select_box_default.variants?.size?.lg },
3129
+ label: { ...label_default.variants?.size?.lg }
2734
3130
  },
2735
- px: {
2736
- base: 4,
2737
- md: 8
3131
+ md: {
3132
+ trigger: { ...select_box_default.variants?.size?.md },
3133
+ label: { ...label_default.variants?.size?.md }
2738
3134
  },
2739
- py: 6,
2740
- cursor: "pointer",
2741
- bg: {
2742
- base: "transparent",
2743
- _hover: "solid-gray.50",
2744
- _focusVisible: {
2745
- base: "yellow.300",
2746
- _hover: "yellow.300"
3135
+ sm: {
3136
+ trigger: { ...select_box_default.variants?.size?.sm },
3137
+ label: { ...label_default.variants?.size?.sm }
3138
+ }
3139
+ } },
3140
+ defaultVariants: { size: "lg" }
3141
+ }),
3142
+ stepNavigation: defineSlotRecipe({
3143
+ className: "step-navigation",
3144
+ slots: anatomy$11.extendWith("title", "description").keys(),
3145
+ base: {
3146
+ root: {
3147
+ /**
3148
+ * color: var(--color-neutral-solid-gray-800);
3149
+ * font-weight: normal;
3150
+ * font-size: calc(16 / 16 * 1rem);
3151
+ * font-family: var(--font-family-sans);
3152
+ * line-height: 1.7;
3153
+ * letter-spacing: 0.02em;
3154
+ * overflow-wrap: anywhere;
3155
+ */
3156
+ textStyle: "std-16N-170",
3157
+ overflowWrap: "anywhere",
3158
+ colorPalette: "keyColor"
3159
+ },
3160
+ list: {
3161
+ /**
3162
+ * margin: 0;
3163
+ * padding: 0;
3164
+ * list-style-type: none;
3165
+ */
3166
+ m: 0,
3167
+ p: 0,
3168
+ display: "flex",
3169
+ _horizontal: { flexDirection: "row" },
3170
+ _vertical: { flexDirection: "column" }
3171
+ },
3172
+ item: {
3173
+ /**
3174
+ * position: relative;
3175
+ * box-sizing: border-box;
3176
+ */
3177
+ position: "relative",
3178
+ boxSizing: "border-box",
3179
+ _last: { "& [data-part=separator]": { display: "none" } },
3180
+ _horizontal: {
3181
+ /**
3182
+ * width: calc(var(--_step-width, 320) / 16 * 1rem);
3183
+ * min-width: calc(var(--_step-min-width, 160) / 16 * 1rem);
3184
+ * padding: 0 calc(16 / 16 * 1rem);
3185
+ */
3186
+ width: "calc(var(--_step-width, 320) / 16 * 1rem)",
3187
+ minWidth: "calc(var(--_step-min-width, 160) / 16 * 1rem)",
3188
+ px: 4
2747
3189
  },
2748
- _selected: {
2749
- base: "white",
2750
- _hover: "white",
2751
- _focusVisible: "yellow.300"
3190
+ _vertical: {
3191
+ /**
3192
+ * flex: 1;
3193
+ * padding-bottom: calc(24 / 16 * 1rem);
3194
+ */
3195
+ flex: 1,
3196
+ pb: 6
2752
3197
  }
2753
3198
  },
2754
- _focusVisible: {
2755
- zIndex: 10,
2756
- rounded: 4,
2757
- outlineStyle: "solid",
2758
- outlineWidth: "4px",
2759
- outlineColor: "black",
2760
- outlineOffset: .5,
2761
- focusBox: "calc({spacing.1} / 2)"
3199
+ trigger: {
3200
+ /**
3201
+ * display: block;
3202
+ * border: 0;
3203
+ * background: none;
3204
+ * padding: 0;
3205
+ * color: inherit;
3206
+ * font: inherit;
3207
+ * text-wrap: pretty;
3208
+ */
3209
+ display: "block",
3210
+ borderWidth: 0,
3211
+ bg: "none",
3212
+ p: 0,
3213
+ color: "inherit",
3214
+ font: "inherit",
3215
+ textWrap: "pretty",
3216
+ cursor: "pointer",
3217
+ _horizontal: {
3218
+ /**
3219
+ * width: 100%;
3220
+ * text-align: center;
3221
+ */
3222
+ width: "100%",
3223
+ textAlign: "center"
3224
+ },
3225
+ _vertical: {
3226
+ /**
3227
+ * position: relative;
3228
+ * display: flex;
3229
+ * align-items: baseline;
3230
+ * column-gap: calc(16 / 16 * 1rem);
3231
+ * text-align: left;
3232
+ */
3233
+ position: "relative",
3234
+ display: "flex",
3235
+ alignItems: "baseline",
3236
+ columnGap: 4,
3237
+ textAlign: "left"
3238
+ }
2762
3239
  },
2763
- _selected: {
3240
+ indicator: {
3241
+ /**
3242
+ * position: relative;
3243
+ * display: grid;
3244
+ * place-content: center;
3245
+ * margin: calc(4 / 16 * 1rem);
3246
+ * box-sizing: border-box;
3247
+ * width: fit-content;
3248
+ * height: var(--_number-size);
3249
+ * min-width: var(--_number-size);
3250
+ * border: 2px solid;
3251
+ * border-radius: 50%;
3252
+ * background-color: var(--color-neutral-white);
3253
+ * padding: 0 calc(2 / 16 * 1rem) calc(2 / 16 * 1rem);
3254
+ * font-weight: bold;
3255
+ * font-size: calc(20 / 16 * 1rem);
3256
+ * line-height: 1.5;
3257
+ * letter-spacing: 0.02em;
3258
+ * text-decoration: inherit;
3259
+ * text-decoration-thickness: inherit;
3260
+ */
3261
+ position: "relative",
3262
+ display: "grid",
3263
+ placeContent: "center",
3264
+ m: 1,
3265
+ boxSizing: "border-box",
3266
+ width: "fit-content",
3267
+ height: "var(--_number-size)",
3268
+ minWidth: "var(--_number-size)",
2764
3269
  color: "colorPalette.primary",
2765
- cursor: "default",
2766
- _after: {
2767
- content: "\"\"",
2768
- position: "absolute",
2769
- bottom: 0,
2770
- left: 0,
2771
- width: "full",
2772
- borderBottomWidth: "4px",
2773
- borderBlockColor: "currentcolor"
3270
+ borderWidth: "2px",
3271
+ borderRadius: "full",
3272
+ borderColor: "colorPalette.primary",
3273
+ bg: "white",
3274
+ py: 0,
3275
+ px: .5,
3276
+ textStyle: "std-20B-150",
3277
+ textDecoration: "inherit",
3278
+ textDecorationThickness: "inherit",
3279
+ _after: { content: "\"\"" },
3280
+ _current: {
3281
+ /**
3282
+ * background-color: var(--color-neutral-solid-gray-800);
3283
+ * color: var(--color-neutral-white);
3284
+ * border-color: var(--color-neutral-solid-gray-800);
3285
+ */
3286
+ bg: "colorPalette.primary",
3287
+ color: "white",
3288
+ borderColor: "colorPalette.primary",
3289
+ /**
3290
+ * outline: var(--_outline-width) solid var(--color-neutral-solid-gray-800);
3291
+ * outline-offset: calc(2 / 16 * 1rem);
3292
+ * box-shadow: 0 0 0 calc(2 / 16 * 1rem) var(--color-neutral-white);
3293
+ */
3294
+ outlineWidth: "var(--_outline-width)",
3295
+ outlineStyle: "solid",
3296
+ outlineColor: "colorPalette.primary",
3297
+ outlineOffset: .5,
3298
+ boxShadow: "0 0 0 {spacing.0.5} white"
3299
+ },
3300
+ _complete: {
3301
+ bg: "colorPalette.bg",
3302
+ _after: {
3303
+ /**
3304
+ * position: absolute;
3305
+ * top: calc(-10 / 16 * 1rem);
3306
+ * left: calc(50% + calc(6 / 16 * 1rem));
3307
+ * border-radius: 50%;
3308
+ * background-color: var(--color-neutral-white);
3309
+ */
3310
+ position: "absolute",
3311
+ top: -2.5,
3312
+ left: "calc(50% + {spacing.1.5})",
3313
+ borderRadius: "full",
3314
+ bg: "colorPalette.primary",
3315
+ width: "36px",
3316
+ height: "36px",
3317
+ 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')"
3318
+ }
3319
+ },
3320
+ "[data-orientation=horizontal] > &": {
3321
+ /**
3322
+ * margin-right: auto;
3323
+ * margin-left: auto;
3324
+ */
3325
+ mr: "auto",
3326
+ ml: "auto"
3327
+ },
3328
+ "[data-orientation=vertical] > &": {
3329
+ /**
3330
+ * flex-shrink: 0;
3331
+ */
3332
+ flexShrink: 0,
3333
+ mx: 1
2774
3334
  }
2775
- }
2776
- }
2777
- }
2778
- });
2779
-
2780
- //#endregion
2781
- //#region src/recipes/tree-view.ts
2782
- var tree_view_default = defineSlotRecipe({
2783
- className: "tree-view",
2784
- slots: anatomy$12.keys(),
2785
- base: {
2786
- root: {},
2787
- label: {
2788
- py: 3,
2789
- pl: 3,
2790
- pr: 6,
2791
- textStyle: "oln-17B-100",
2792
- textWrap: "nowrap",
2793
- display: "block"
2794
- },
2795
- tree: {},
2796
- item: { ...menu_item_default.base },
2797
- itemIndicator: { _empty: {
2798
- _before: {
2799
- content: "\"\"",
3335
+ },
3336
+ title: {
3337
+ /**
3338
+ * display: block;
3339
+ * font-weight: bold;
3340
+ * font-size: calc(18 / 16 * 1rem);
3341
+ * line-height: 1.6;
3342
+ * letter-spacing: 0.02em;
3343
+ * text-decoration-thickness: inherit;
3344
+ */
2800
3345
  display: "block",
2801
- width: "24px",
2802
- height: "24px",
2803
- bg: "black",
2804
- clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
3346
+ textStyle: "std-18B-160",
3347
+ textDecorationThickness: "inherit",
3348
+ "[data-orientation=horizontal] &": {
3349
+ /**
3350
+ * margin-top: var(--_title-margin);
3351
+ */
3352
+ mt: "var(--_title-margin)" },
3353
+ "[data-orientation=vertical] &": {
3354
+ /**
3355
+ * padding: calc(var(--_number-size) / 2 + var(--_number-margin) - 0.875rem) 0;
3356
+ */
3357
+ pt: "calc(var(--_number-size) / 2 + var(--_number-margin) - 0.875rem)",
3358
+ pb: 0
3359
+ }
2805
3360
  },
2806
- _selected: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } }
2807
- } },
2808
- itemText: { flexGrow: 1 },
2809
- branch: {},
2810
- branchControl: { ...menu_item_default.base },
2811
- branchTrigger: {},
2812
- branchContent: {
2813
- my: 1,
2814
- pl: 8
2815
- },
2816
- branchIndicator: { _empty: {
2817
- _before: {
3361
+ description: {
3362
+ /**
3363
+ * margin: var(--_description-margin) 0 0;
3364
+ */
3365
+ mt: "var(--_description-margin)",
3366
+ "[data-orientation=horizontal] &": {
3367
+ /**
3368
+ * text-align: center;
3369
+ */
3370
+ textAlign: "center" },
3371
+ "[data-orientation=vertical] &": {
3372
+ /**
3373
+ * margin-top: calc(
3374
+ * var(--_description-margin) -
3375
+ * (var(--_number-size) / 2 + var(--_number-margin) - 0.875rem)
3376
+ * );
3377
+ * padding-left: calc(
3378
+ * var(--_number-size) +
3379
+ * var(--_number-margin) +
3380
+ * var(--_number-margin) +
3381
+ * calc(16 / 16 * 1rem)
3382
+ * );
3383
+ */
3384
+ mt: "calc(var(--_description-margin) - (var(--_number-size) / 2 + var(--_number-margin) - 0.875rem))",
3385
+ pl: "calc(var(--_number-size) + var(--_number-margin) + var(--_number-margin) + {spacing.4})"
3386
+ }
3387
+ },
3388
+ separator: {
3389
+ /**
3390
+ * position: absolute;
3391
+ * z-index: -1;
3392
+ * content: "";
3393
+ */
3394
+ position: "absolute",
3395
+ zIndex: -1,
2818
3396
  content: "\"\"",
2819
- display: "block",
2820
- width: "24px",
2821
- height: "24px",
2822
- bg: "black",
2823
- clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
3397
+ borderColor: "colorPalette.primary",
3398
+ _horizontal: {
3399
+ /**
3400
+ * top: calc(var(--_number-size) / 2 + var(--_number-margin));
3401
+ * left: 50%;
3402
+ * width: 50%;
3403
+ * border-bottom: 1px solid;
3404
+ */
3405
+ top: "calc(var(--_number-size) / 2 + var(--_number-margin))",
3406
+ left: "50%",
3407
+ width: "100%",
3408
+ borderBottomWidth: "1px"
3409
+ },
3410
+ _vertical: {
3411
+ /**
3412
+ * left: calc(var(--_number-size) / 2 + var(--_number-margin));
3413
+ * bottom: 0;
3414
+ * height: calc(100% - calc(32 / 16 * 1rem));
3415
+ * border-right: 1px solid;
3416
+ */
3417
+ left: "calc(var(--_number-size) / 2 + var(--_number-margin))",
3418
+ top: "calc(50% - {spacing.4})",
3419
+ height: "100%",
3420
+ borderRightWidth: "1px"
3421
+ }
3422
+ }
3423
+ },
3424
+ variants: { size: {
3425
+ md: {
3426
+ root: { root: {
3427
+ /**
3428
+ * --_number-size: calc(44 / 16 * 1rem);
3429
+ * --_number-margin: calc(4 / 16 * 1rem);
3430
+ * --_outline-width: calc(2 / 16 * 1rem);
3431
+ * --_title-margin: calc(24 / 16 * 1rem);
3432
+ * --_description-margin: calc(8 / 16 * 1rem);
3433
+ */
3434
+ "--_number-size": "{spacing.11}",
3435
+ "--_number-margin": "{spacing.1}",
3436
+ "--_outline-width": "{spacing.0.5}",
3437
+ "--_title-margin": "{spacing.6}",
3438
+ "--_description-margin": "{spacing.2}"
3439
+ } },
3440
+ indicator: { _after: { transform: "scale(0.5)" } }
2824
3441
  },
2825
- _selected: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } },
2826
- _open: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } }
3442
+ sm: {
3443
+ root: {
3444
+ /**
3445
+ * --_number-size: calc(32 / 16 * 1rem);
3446
+ * --_number-margin: calc(3 / 16 * 1rem);
3447
+ * --_outline-width: calc(1 / 16 * 1rem);
3448
+ * --_title-margin: calc(16 / 16 * 1rem);
3449
+ * --_description-margin: calc(4 / 16 * 1rem);
3450
+ */
3451
+ "--_number-size": "{spacing.8}",
3452
+ "--_number-margin": "calc({spacing.1} * 3 / 4)",
3453
+ "--_outline-width": "calc({spacing.1} / 4)",
3454
+ "--_title-margin": "{spacing.4}",
3455
+ "--_description-margin": "{spacing.1}"
3456
+ },
3457
+ indicator: {
3458
+ /**
3459
+ * margin: calc(3 / 16 * 1rem);
3460
+ * border-width: 1px;
3461
+ * font-size: calc(16 / 16 * 1rem);
3462
+ */
3463
+ m: "calc({spacing.1} * 3 / 4)",
3464
+ borderWidth: "1px",
3465
+ textStyle: "std-16B-170",
3466
+ "[data-orientation=horizontal] > &": {
3467
+ /**
3468
+ * margin-right: auto;
3469
+ * margin-left: auto;
3470
+ */
3471
+ mr: "auto",
3472
+ ml: "auto"
3473
+ },
3474
+ "[data-orientation=vertical] > &": { mx: 1 },
3475
+ _after: { transform: "scale(0.33)" }
3476
+ },
3477
+ title: {
3478
+ /**
3479
+ * font-weight: bold;
3480
+ * font-size: calc(16 / 16 * 1rem);
3481
+ * line-height: 1.7;
3482
+ * letter-spacing: 0.02em;
3483
+ */
3484
+ textStyle: "std-16B-170" }
3485
+ }
2827
3486
  } },
2828
- branchText: { flexGrow: 1 }
2829
- },
2830
- variants: {
2831
- variant: {
2832
- standard: {
2833
- item: { ...menu_item_default.variants?.variant?.standard },
2834
- branchControl: { ...menu_item_default.variants?.variant?.standard }
3487
+ defaultVariants: { size: "md" }
3488
+ }),
3489
+ supportText: support_text_default,
3490
+ table: defineSlotRecipe({
3491
+ className: "table",
3492
+ slots: tableAnatomy.keys(),
3493
+ base: {
3494
+ root: {
3495
+ /**
3496
+ * w-full text-std-16N-170
3497
+ */
3498
+ maxWidth: "full",
3499
+ colorPalette: "keyColor"
3500
+ },
3501
+ head: { "& tr": {
3502
+ /**
3503
+ * border-black bg-solid-gray-50
3504
+ */
3505
+ borderColor: "black",
3506
+ bg: "solid-gray.50"
3507
+ } },
3508
+ body: { "& tr": {
3509
+ /**
3510
+ * border-solid-gray-420
3511
+ */
3512
+ borderColor: "solid-gray.420" } },
3513
+ foot: {},
3514
+ row: {
3515
+ /**
3516
+ * border-b
3517
+ */
3518
+ borderBottomWidth: "1px",
3519
+ "tbody > &:has(input:checked)": { bg: "colorPalette.100" }
3520
+ },
3521
+ header: {
3522
+ /**
3523
+ * px-4 text-start align-top
3524
+ */
3525
+ px: 4,
3526
+ verticalAlign: "top",
3527
+ textAlign: "start"
3528
+ },
3529
+ cell: {
3530
+ /**
3531
+ * px-4 align-top
3532
+ */
3533
+ px: 4,
3534
+ verticalAlign: "top"
2835
3535
  },
2836
- boxed: {
2837
- item: { ...menu_item_default.variants?.variant?.boxed },
2838
- branchControl: { ...menu_item_default.variants?.variant?.boxed }
3536
+ caption: {
3537
+ mb: 4,
3538
+ textStyle: "oln-17B-100"
2839
3539
  }
2840
3540
  },
2841
- isCondensed: {
2842
- true: {
2843
- label: {
2844
- py: 1.5,
2845
- pl: 1.5,
2846
- pr: 4
3541
+ variants: {
3542
+ dense: {
3543
+ false: {
3544
+ root: { textStyle: "std-16N-170" },
3545
+ header: {
3546
+ /**
3547
+ * py-5
3548
+ */
3549
+ py: 5 },
3550
+ cell: {
3551
+ /**
3552
+ * py-5
3553
+ */
3554
+ py: 5 }
2847
3555
  },
2848
- item: { ...menu_item_default.variants?.isCondensed?.true },
2849
- branchControl: { ...menu_item_default.variants?.isCondensed?.true }
3556
+ true: {
3557
+ root: { textStyle: "dns-16N-130" },
3558
+ header: {
3559
+ /**
3560
+ * py-2.5
3561
+ */
3562
+ py: 2.5 },
3563
+ cell: {
3564
+ /**
3565
+ * py-2.5
3566
+ */
3567
+ py: 2.5 }
3568
+ }
2850
3569
  },
2851
- false: {
2852
- item: { ...menu_item_default.variants?.isCondensed?.false },
2853
- branchControl: { ...menu_item_default.variants?.isCondensed?.false }
2854
- }
3570
+ striped: { true: { body: { "& tr": { _even: { "&:not(:has(input:checked))": { bg: "{colors.colorPalette.bg}/25" } } } } } },
3571
+ hovered: { true: { body: { "& tr": {
3572
+ _hover: { bg: "colorPalette.bg" },
3573
+ _even: { "&:not(:has(input:checked))": { _hover: { bg: "{colors.colorPalette.bg}" } } }
3574
+ } } } }
3575
+ },
3576
+ defaultVariants: {
3577
+ dense: false,
3578
+ striped: false,
3579
+ hovered: false
2855
3580
  }
2856
- }
2857
- });
2858
-
2859
- //#endregion
2860
- //#region src/recipes/unordered-list.ts
2861
- var unordered_list_default = defineRecipe({
2862
- className: "unordered-list",
2863
- base: {
2864
- pl: 8,
2865
- listStyle: "revert",
2866
- "&:where(ol,ul)": {
2867
- mt: 1,
2868
- mb: -1
3581
+ }),
3582
+ tabs: defineSlotRecipe({
3583
+ className: "tabs",
3584
+ slots: anatomy$12.keys(),
3585
+ base: {
3586
+ root: { colorPalette: "keyColor" },
3587
+ list: {
3588
+ /**
3589
+ * flex w-full min-w-max items-end whitespace-nowrap
3590
+ * border-b border-solid-gray-420
3591
+ */
3592
+ display: "flex",
3593
+ width: "full",
3594
+ alignItems: "end",
3595
+ whiteSpace: "nowrap",
3596
+ borderBottomWidth: "1px",
3597
+ borderColor: "solid-gray.420",
3598
+ overflowX: "auto"
3599
+ },
3600
+ trigger: {
3601
+ /**
3602
+ * relative z-0 inline-flex gap-2 justify-center items-center
3603
+ * text-oln-14B-100 md:text-oln-16B-100
3604
+ */
3605
+ position: "relative",
3606
+ zIndex: 0,
3607
+ display: "inline-flex",
3608
+ gap: 2,
3609
+ justifyContent: "center",
3610
+ alignItems: "center",
3611
+ textStyle: {
3612
+ base: "oln-14B-100",
3613
+ md: "oln-16B-100"
3614
+ },
3615
+ /**
3616
+ * px-4 py-6 group md:px-8 md:py-6
3617
+ * hover:bg-solid-gray-50 focus-visible:bg-yellow-300
3618
+ * aria-[current=page]:bg-white
3619
+ */
3620
+ px: {
3621
+ base: 4,
3622
+ md: 8
3623
+ },
3624
+ py: 6,
3625
+ cursor: "pointer",
3626
+ bg: {
3627
+ base: "transparent",
3628
+ _hover: "solid-gray.50",
3629
+ _focusVisible: {
3630
+ base: "yellow.300",
3631
+ _hover: "yellow.300"
3632
+ },
3633
+ _selected: {
3634
+ base: "white",
3635
+ _hover: "white",
3636
+ _focusVisible: "yellow.300"
3637
+ }
3638
+ },
3639
+ /**
3640
+ * focus-visible:z-10 focus-visible:rounded-4
3641
+ * focus-visible:outline focus-visible:outline-4
3642
+ * focus-visible:outline-offset-[calc(2/16*1rem)] focus-visible:outline-black
3643
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
3644
+ */
3645
+ _focusVisible: {
3646
+ zIndex: 10,
3647
+ rounded: 4,
3648
+ outlineStyle: "solid",
3649
+ outlineWidth: "4px",
3650
+ outlineColor: "black",
3651
+ outlineOffset: .5,
3652
+ focusBox: "calc({spacing.1} / 2)"
3653
+ },
3654
+ _selected: {
3655
+ /**
3656
+ * relative text-blue-900
3657
+ * after:absolute after:bottom-0 after:left-0 after:w-full after:border-b-4
3658
+ * after:border-current
3659
+ * aria-[current=page]:cursor-default
3660
+ */
3661
+ color: "colorPalette.primary",
3662
+ cursor: "default",
3663
+ _after: {
3664
+ content: "\"\"",
3665
+ position: "absolute",
3666
+ bottom: 0,
3667
+ left: 0,
3668
+ width: "full",
3669
+ borderBottomWidth: "4px",
3670
+ borderBlockColor: "currentcolor"
3671
+ }
3672
+ }
3673
+ }
2869
3674
  }
2870
- }
2871
- });
2872
-
2873
- //#endregion
2874
- //#region src/recipes/utility-link.ts
2875
- /**
2876
- * https://github.com/digital-go-jp/design-system-example-components-react/blob/main/src/components/UtilityLink/UtilityLink.tsx
2877
- */
2878
- var utility_link_default = defineRecipe({
2879
- className: "utility-link",
2880
- description: "ユーティリティリンクはふつうの横並びリンクリストに近いが、それよりもコンパクトに作られています。",
2881
- base: {
2882
- colorPalette: "keyColor",
2883
- textStyle: "dns-16N-130",
2884
- color: {
2885
- base: "solid-gray.800",
2886
- _focusVisible: "colorPalette.primary.100"
2887
- },
2888
- bg: {
2889
- base: "transparent",
2890
- _focusVisible: "yellow.300"
2891
- },
2892
- textDecoration: "underline",
2893
- textDecorationThickness: {
2894
- base: "1px",
2895
- _hover: "calc(3 / 16 * 1rem)"
2896
- },
2897
- textUnderlineOffset: "calc(3 / 16 * 1rem)",
2898
- _focusVisible: {
2899
- rounded: 4,
2900
- outlineStyle: "solid",
2901
- outlineWidth: "4px",
2902
- outlineColor: "black",
2903
- outlineOffset: .5,
2904
- focusBox: "calc({spacing.1} / 2)"
3675
+ }),
3676
+ textarea: textarea_default,
3677
+ treeView: defineSlotRecipe({
3678
+ className: "tree-view",
3679
+ slots: anatomy$13.keys(),
3680
+ base: {
3681
+ root: {},
3682
+ label: {
3683
+ py: 3,
3684
+ pl: 3,
3685
+ pr: 6,
3686
+ textStyle: "oln-17B-100",
3687
+ textWrap: "nowrap",
3688
+ display: "block"
3689
+ },
3690
+ tree: {},
3691
+ item: { ...menu_item_default.base },
3692
+ itemIndicator: { _empty: {
3693
+ _before: {
3694
+ content: "\"\"",
3695
+ display: "block",
3696
+ width: "24px",
3697
+ height: "24px",
3698
+ bg: "black",
3699
+ clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
3700
+ },
3701
+ _selected: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } }
3702
+ } },
3703
+ itemText: { flexGrow: 1 },
3704
+ branch: {},
3705
+ branchControl: { ...menu_item_default.base },
3706
+ branchTrigger: {},
3707
+ branchContent: {
3708
+ my: 1,
3709
+ pl: 8
3710
+ },
3711
+ branchIndicator: { _empty: {
3712
+ _before: {
3713
+ content: "\"\"",
3714
+ display: "block",
3715
+ width: "24px",
3716
+ height: "24px",
3717
+ bg: "black",
3718
+ clipPath: "path('M12 19L5 12L12 5L19 12L12 19Z')"
3719
+ },
3720
+ _selected: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } },
3721
+ _open: { _before: { clipPath: "path('M12 19L5 12L12 5L19 12L12 19ZM12 16.15L16.15 12L12 7.85L7.85 12L12 16.15Z')" } }
3722
+ } },
3723
+ branchText: { flexGrow: 1 }
2905
3724
  },
2906
- display: "inline-flex",
2907
- alignItems: "center",
2908
- gap: 1,
2909
- "& svg": {
2910
- width: "1em",
2911
- height: "1em"
3725
+ variants: {
3726
+ variant: {
3727
+ standard: {
3728
+ item: { ...menu_item_default.variants?.variant?.standard },
3729
+ branchControl: { ...menu_item_default.variants?.variant?.standard }
3730
+ },
3731
+ boxed: {
3732
+ item: { ...menu_item_default.variants?.variant?.boxed },
3733
+ branchControl: { ...menu_item_default.variants?.variant?.boxed }
3734
+ }
3735
+ },
3736
+ isCondensed: {
3737
+ true: {
3738
+ label: {
3739
+ py: 1.5,
3740
+ pl: 1.5,
3741
+ pr: 4
3742
+ },
3743
+ item: { ...menu_item_default.variants?.isCondensed?.true },
3744
+ branchControl: { ...menu_item_default.variants?.isCondensed?.true }
3745
+ },
3746
+ false: {
3747
+ item: { ...menu_item_default.variants?.isCondensed?.false },
3748
+ branchControl: { ...menu_item_default.variants?.isCondensed?.false }
3749
+ }
3750
+ }
2912
3751
  }
2913
- }
2914
- });
2915
-
2916
- //#endregion
2917
- //#region src/recipes/index.ts
2918
- const recipes = {
2919
- accordion: accordion_default,
2920
- blockquote: blockquote_default,
2921
- breadcrumb: breadcrumb_default,
2922
- button: button_default,
2923
- card: card_default,
2924
- checkbox: checkbox_default,
2925
- chipLabel: chip_label_default,
2926
- chipTag: chip_tag_default,
2927
- datePicker: date_picker_default,
2928
- descriptionList: description_list_default,
2929
- disclosure: disclosure_default,
2930
- digitalGoDivider: divider_default,
2931
- drawer: drawer_default,
2932
- emergencyBanner: emergency_banner_default,
2933
- errorText: error_text_default,
2934
- field: field_default,
2935
- fieldset: fieldset_default,
2936
- fileUpload: file_upload_default,
2937
- hamburgerMenuButton: hamburger_menu_button_default,
2938
- input: input_default,
2939
- label: label_default,
2940
- legend: legend_default,
2941
- link: link_default,
2942
- list: list_default,
2943
- menu: menu_default,
2944
- menuItem: menu_item_default,
2945
- menuList: menu_list_default,
2946
- notificationBanner: notification_banner_default,
2947
- orderedList: ordered_list_default,
2948
- progress: progress_default,
2949
- radioGroup: radio_group_default,
2950
- requirementBadge: requirement_badge_default,
2951
- resourceList: resource_list_default,
2952
- select: select_default,
2953
- stepNavigation: step_navigation_default,
2954
- supportText: support_text_default,
2955
- table: table_default,
2956
- tabs: tabs_default,
2957
- textarea: textarea_default,
2958
- treeView: tree_view_default,
2959
- unorderedList: unordered_list_default,
2960
- utilityLink: utility_link_default
2961
- };
2962
- var recipes_default = recipes;
2963
-
2964
- //#endregion
2965
- //#region src/keyframes.ts
2966
- const keyframes = {
2967
- "circular-progress": {
2968
- "0%": {
2969
- strokeDasharray: "1, 400",
2970
- strokeDashoffset: "0"
2971
- },
2972
- "50%": {
2973
- strokeDasharray: "400, 400",
2974
- strokeDashoffset: "-100%"
2975
- },
2976
- "100%": {
2977
- strokeDasharray: "400, 400",
2978
- strokeDashoffset: "-260%"
3752
+ }),
3753
+ unorderedList: defineRecipe({
3754
+ className: "unordered-list",
3755
+ base: {
3756
+ /**
3757
+ * pl-8 list-[revert]
3758
+ */
3759
+ pl: 8,
3760
+ listStyle: "revert",
3761
+ /**
3762
+ * [&_:where(ol,ul)]:mt-1 [&_:where(ol,ul)]:-mb-1
3763
+ */
3764
+ "&:where(ol,ul)": {
3765
+ mt: 1,
3766
+ mb: -1
3767
+ }
2979
3768
  }
2980
- },
2981
- position: {
2982
- from: {
2983
- insetInlineStart: "var(--animate-from-x)",
2984
- insetBlockStart: "var(--animate-from-y)"
2985
- },
2986
- to: {
2987
- insetInlineStart: "var(--animate-to-x)",
2988
- insetBlockStart: "var(--animate-to-y)"
3769
+ }),
3770
+ utilityLink: defineRecipe({
3771
+ className: "utility-link",
3772
+ description: "ユーティリティリンクはふつうの横並びリンクリストに近いが、それよりもコンパクトに作られています。",
3773
+ base: {
3774
+ colorPalette: "keyColor",
3775
+ /**
3776
+ * !text-solid-gray-800 text-dns-16N-130
3777
+ * focus-visible:bg-yellow-300 focus-visible:text-blue-1000
3778
+ */
3779
+ textStyle: "dns-16N-130",
3780
+ color: {
3781
+ base: "solid-gray.800",
3782
+ _focusVisible: "colorPalette.primary.100"
3783
+ },
3784
+ bg: {
3785
+ base: "transparent",
3786
+ _focusVisible: "yellow.300"
3787
+ },
3788
+ /**
3789
+ * underline underline-offset-[calc(3/16*1rem)]
3790
+ * hover:decoration-[calc(3/16*1rem)]
3791
+ */
3792
+ textDecoration: "underline",
3793
+ textDecorationThickness: {
3794
+ base: "1px",
3795
+ _hover: "calc(3 / 16 * 1rem)"
3796
+ },
3797
+ textUnderlineOffset: "calc(3 / 16 * 1rem)",
3798
+ /**
3799
+ * focus-visible:rounded-4
3800
+ * focus-visible:outline focus-visible:outline-4
3801
+ * focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
3802
+ * focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
3803
+ */
3804
+ _focusVisible: {
3805
+ rounded: 4,
3806
+ outlineStyle: "solid",
3807
+ outlineWidth: "4px",
3808
+ outlineColor: "black",
3809
+ outlineOffset: .5,
3810
+ focusBox: "calc({spacing.1} / 2)"
3811
+ },
3812
+ /**
3813
+ * with icon
3814
+ */
3815
+ display: "inline-flex",
3816
+ alignItems: "center",
3817
+ gap: 1,
3818
+ "& svg": {
3819
+ width: "1em",
3820
+ height: "1em"
3821
+ }
2989
3822
  }
2990
- }
3823
+ })
2991
3824
  };
2992
-
2993
3825
  //#endregion
2994
3826
  //#region src/index.ts
2995
3827
  const base = {
2996
3828
  name: "digital-go-pandacss-preset",
2997
3829
  presets: [presetBase],
2998
3830
  theme: {
2999
- keyframes,
3000
- recipes: recipes_default
3831
+ keyframes: {
3832
+ "circular-progress": {
3833
+ "0%": {
3834
+ strokeDasharray: "1, 400",
3835
+ strokeDashoffset: "0"
3836
+ },
3837
+ "50%": {
3838
+ strokeDasharray: "400, 400",
3839
+ strokeDashoffset: "-100%"
3840
+ },
3841
+ "100%": {
3842
+ strokeDasharray: "400, 400",
3843
+ strokeDashoffset: "-260%"
3844
+ }
3845
+ },
3846
+ position: {
3847
+ from: {
3848
+ insetInlineStart: "var(--animate-from-x)",
3849
+ insetBlockStart: "var(--animate-from-y)"
3850
+ },
3851
+ to: {
3852
+ insetInlineStart: "var(--animate-to-x)",
3853
+ insetBlockStart: "var(--animate-to-y)"
3854
+ }
3855
+ },
3856
+ "fade-in": {
3857
+ from: { opacity: 0 },
3858
+ to: { opacity: 1 }
3859
+ },
3860
+ "fade-out": {
3861
+ from: { opacity: 1 },
3862
+ to: { opacity: 0 }
3863
+ },
3864
+ "slide-in-bottom": {
3865
+ from: { transform: "translate3d(0, 100%, 0)" },
3866
+ to: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" }
3867
+ },
3868
+ "slide-out-bottom": {
3869
+ from: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" },
3870
+ to: { transform: "translate3d(0, 100%, 0)" }
3871
+ },
3872
+ "slide-in-top": {
3873
+ from: { transform: "translate3d(0, -100%, 0)" },
3874
+ to: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" }
3875
+ },
3876
+ "slide-out-top": {
3877
+ from: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" },
3878
+ to: { transform: "translate3d(0, -100%, 0)" }
3879
+ },
3880
+ "slide-in-left": {
3881
+ from: { transform: "translate3d(-100%, 0, 0)" },
3882
+ to: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" }
3883
+ },
3884
+ "slide-out-left": {
3885
+ from: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" },
3886
+ to: { transform: "translate3d(-100%, 0, 0)" }
3887
+ },
3888
+ "slide-in-right": {
3889
+ from: { transform: "translate3d(100%, 0, 0)" },
3890
+ to: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" }
3891
+ },
3892
+ "slide-out-right": {
3893
+ from: { transform: "translate3d(var(--drawer-translate-x, 0), var(--drawer-translate-y, 0), 0)" },
3894
+ to: { transform: "translate3d(100%, 0, 0)" }
3895
+ }
3896
+ },
3897
+ recipes
3001
3898
  }
3002
3899
  };
3003
3900
  var src_default = definePreset(base);
@@ -3008,7 +3905,7 @@ const createPreset = (keyColor = "blue") => definePreset({
3008
3905
  extend: { semanticTokens: { colors: { keyColor: createKeyColor(keyColor) } } }
3009
3906
  }
3010
3907
  });
3011
-
3012
3908
  //#endregion
3013
3909
  export { createPreset, src_default as default };
3910
+
3014
3911
  //# sourceMappingURL=index.mjs.map