@cakejp/design-system 0.20.1 → 0.21.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +172 -0
  2. package/CLAUDE.md +5 -3
  3. package/MIGRATION.md +3 -3
  4. package/README.md +31 -11
  5. package/contracts/components.json +420 -63
  6. package/contracts/composition.json +38 -4
  7. package/contracts/rules.json +27 -5
  8. package/contracts/screen-patterns.json +6 -4
  9. package/dist/components/ec/admin-shell.js +62 -60
  10. package/dist/components/ec/anniversary-card.js +13 -12
  11. package/dist/components/ec/coupon-card.js +11 -11
  12. package/dist/components/ec/delivery-calendar.js +51 -45
  13. package/dist/components/ec/mypage-shell.js +80 -69
  14. package/dist/components/ec/product-card.js +93 -76
  15. package/dist/components/ec/product-carousel.js +65 -60
  16. package/dist/components/ec/product-detail-bar.js +13 -11
  17. package/dist/components/ec/product-detail-sidebar.js +60 -58
  18. package/dist/components/ec/product-list-item.js +64 -63
  19. package/dist/components/ec/product-option.js +30 -26
  20. package/dist/components/ec/rating-stars.js +27 -27
  21. package/dist/components/ec/review-card.js +32 -32
  22. package/dist/components/ec/review-form.js +37 -37
  23. package/dist/components/ec/shop-card.js +21 -19
  24. package/dist/components/foundations/accordion.js +33 -31
  25. package/dist/components/foundations/alert-dialog.js +4 -5
  26. package/dist/components/foundations/badge.js +5 -5
  27. package/dist/components/foundations/breadcrumb.js +27 -26
  28. package/dist/components/foundations/button.js +144 -25
  29. package/dist/components/foundations/calendar.js +28 -26
  30. package/dist/components/foundations/checkbox-card.js +71 -47
  31. package/dist/components/foundations/checkbox-group.js +30 -27
  32. package/dist/components/foundations/checkbox.js +69 -52
  33. package/dist/components/foundations/chip-variants.js +13 -0
  34. package/dist/components/foundations/command.js +81 -79
  35. package/dist/components/foundations/confirm-dialog.js +136 -0
  36. package/dist/components/foundations/context-menu.js +43 -38
  37. package/dist/components/foundations/data-table.js +87 -84
  38. package/dist/components/foundations/dialog.js +45 -36
  39. package/dist/components/foundations/dropdown-menu.js +47 -42
  40. package/dist/components/foundations/file-input.js +97 -67
  41. package/dist/components/foundations/hover-card.js +21 -21
  42. package/dist/components/foundations/menubar.js +75 -69
  43. package/dist/components/foundations/navigation-menu.js +31 -26
  44. package/dist/components/foundations/pagination.js +54 -50
  45. package/dist/components/foundations/popover.js +7 -7
  46. package/dist/components/foundations/progress.js +10 -6
  47. package/dist/components/foundations/radio-group.js +6 -3
  48. package/dist/components/foundations/responsive-dialog.js +73 -55
  49. package/dist/components/foundations/scroll-area.js +18 -14
  50. package/dist/components/foundations/select.js +44 -39
  51. package/dist/components/foundations/sheet.js +45 -37
  52. package/dist/components/foundations/skeleton.js +6 -6
  53. package/dist/components/foundations/skip-link.js +10 -8
  54. package/dist/components/foundations/slider.js +73 -48
  55. package/dist/components/foundations/sonner.js +5 -4
  56. package/dist/components/foundations/spinner.js +7 -5
  57. package/dist/components/foundations/switch.js +11 -10
  58. package/dist/components/foundations/tabs.js +54 -39
  59. package/dist/components/foundations/toggle-group.js +29 -21
  60. package/dist/components/foundations/toggle.js +20 -16
  61. package/dist/components/primitives/admin-side-nav.js +65 -62
  62. package/dist/components/primitives/banner-carousel.js +32 -29
  63. package/dist/components/primitives/bottom-tab-bar.js +16 -15
  64. package/dist/components/primitives/category-scroll.js +39 -29
  65. package/dist/components/primitives/category-shortcuts.js +9 -9
  66. package/dist/components/primitives/chat-composer.js +77 -74
  67. package/dist/components/primitives/chip.js +84 -61
  68. package/dist/components/primitives/combobox.js +63 -47
  69. package/dist/components/primitives/container.js +9 -9
  70. package/dist/components/primitives/content-card.js +15 -17
  71. package/dist/components/primitives/content-carousel.js +79 -68
  72. package/dist/components/primitives/date-picker.js +137 -99
  73. package/dist/components/primitives/footer.js +36 -37
  74. package/dist/components/primitives/header.js +175 -168
  75. package/dist/components/primitives/image-carousel.js +107 -87
  76. package/dist/components/primitives/image-gallery.js +32 -27
  77. package/dist/components/primitives/image-uploader.js +6 -6
  78. package/dist/components/primitives/list-item.js +59 -51
  79. package/dist/components/primitives/menu-drawer.js +36 -38
  80. package/dist/components/primitives/multi-select.js +89 -58
  81. package/dist/components/primitives/notification-list.js +10 -9
  82. package/dist/components/primitives/number-input.js +116 -105
  83. package/dist/components/primitives/scroll-row.js +21 -0
  84. package/dist/components/primitives/search-bar.js +31 -28
  85. package/dist/components/primitives/section-header.js +54 -53
  86. package/dist/components/primitives/side-nav.js +57 -56
  87. package/dist/components/primitives/sub-nav.js +13 -14
  88. package/dist/components/primitives/tag.js +4 -2
  89. package/dist/index.css +1 -1
  90. package/dist/index.js +3051 -924
  91. package/dist/lib/field-labelling.js +31 -21
  92. package/dist/lib/focus-ring.js +22 -4
  93. package/dist/lib/high-contrast.js +4 -0
  94. package/dist/lib/image-index.js +8 -0
  95. package/dist/lib/use-prefers-reduced-motion.js +21 -0
  96. package/dist/types/components/ec/admin-shell.d.ts +11 -1
  97. package/dist/types/components/ec/anniversary-card.d.ts +9 -1
  98. package/dist/types/components/ec/mypage-shell.d.ts +12 -1
  99. package/dist/types/components/ec/product-card.d.ts +13 -1
  100. package/dist/types/components/ec/product-carousel.d.ts +13 -1
  101. package/dist/types/components/ec/product-detail-bar.d.ts +12 -1
  102. package/dist/types/components/ec/product-detail-sidebar.d.ts +11 -1
  103. package/dist/types/components/ec/product-list-item.d.ts +9 -1
  104. package/dist/types/components/ec/rating-stars.d.ts +2 -0
  105. package/dist/types/components/ec/review-card.d.ts +1 -1
  106. package/dist/types/components/ec/shop-card.d.ts +8 -1
  107. package/dist/types/components/foundations/badge.d.ts +1 -1
  108. package/dist/types/components/foundations/breadcrumb.d.ts +8 -1
  109. package/dist/types/components/foundations/button.d.ts +38 -3
  110. package/dist/types/components/foundations/checkbox-card.d.ts +7 -1
  111. package/dist/types/components/foundations/checkbox.d.ts +1 -1
  112. package/dist/types/components/foundations/chip-variants.d.ts +2 -2
  113. package/dist/types/components/foundations/confirm-dialog.d.ts +61 -0
  114. package/dist/types/components/foundations/data-table.d.ts +9 -2
  115. package/dist/types/components/foundations/dialog.d.ts +16 -1
  116. package/dist/types/components/foundations/pagination.d.ts +1 -1
  117. package/dist/types/components/foundations/responsive-dialog.d.ts +2 -1
  118. package/dist/types/components/foundations/sheet.d.ts +12 -1
  119. package/dist/types/components/foundations/skeleton.d.ts +6 -0
  120. package/dist/types/components/foundations/slider.d.ts +15 -1
  121. package/dist/types/components/foundations/tabs.d.ts +7 -0
  122. package/dist/types/components/primitives/admin-side-nav.d.ts +22 -2
  123. package/dist/types/components/primitives/banner-carousel.d.ts +9 -1
  124. package/dist/types/components/primitives/bottom-tab-bar.d.ts +13 -2
  125. package/dist/types/components/primitives/category-scroll.d.ts +10 -1
  126. package/dist/types/components/primitives/category-shortcuts.d.ts +11 -2
  127. package/dist/types/components/primitives/chip.d.ts +22 -3
  128. package/dist/types/components/primitives/combobox.d.ts +7 -2
  129. package/dist/types/components/primitives/container.d.ts +3 -0
  130. package/dist/types/components/primitives/content-card.d.ts +1 -1
  131. package/dist/types/components/primitives/content-carousel.d.ts +12 -4
  132. package/dist/types/components/primitives/date-picker.d.ts +10 -3
  133. package/dist/types/components/primitives/footer.d.ts +1 -1
  134. package/dist/types/components/primitives/header.d.ts +14 -2
  135. package/dist/types/components/primitives/image-carousel.d.ts +23 -5
  136. package/dist/types/components/primitives/list-item.d.ts +10 -1
  137. package/dist/types/components/primitives/menu-drawer.d.ts +1 -1
  138. package/dist/types/components/primitives/multi-select.d.ts +7 -2
  139. package/dist/types/components/primitives/notification-list.d.ts +10 -1
  140. package/dist/types/components/primitives/number-input.d.ts +18 -5
  141. package/dist/types/components/primitives/scroll-row.d.ts +43 -0
  142. package/dist/types/components/primitives/section-header.d.ts +9 -2
  143. package/dist/types/components/primitives/side-nav.d.ts +13 -1
  144. package/dist/types/components/primitives/sub-nav.d.ts +1 -1
  145. package/dist/types/components/primitives/tag.d.ts +1 -1
  146. package/dist/types/index.d.ts +7 -1
  147. package/dist/types/lib/field-labelling.d.ts +23 -8
  148. package/dist/types/lib/focus-ring.d.ts +70 -3
  149. package/dist/types/lib/high-contrast.d.ts +25 -0
  150. package/dist/types/lib/image-index.d.ts +2 -0
  151. package/dist/types/lib/link-component.d.ts +26 -21
  152. package/dist/types/lib/use-prefers-reduced-motion.d.ts +9 -0
  153. package/package.json +11 -3
  154. package/src/components/COMPONENT_LOOKUP.md +18 -16
  155. package/src/preset-standalone.css +42 -0
  156. package/src/preset.css +20 -1
  157. package/src/styles/semantic.css +57 -0
  158. package/templates/AGENTS.md +5 -1
  159. package/templates/CLAUDE.md +3 -1
  160. package/tokens.json +49 -0
  161. package/dist/lib/link-component.js +0 -6
@@ -1,9 +1,10 @@
1
- import { jsxs as a, jsx as s, Fragment as _ } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a, Fragment as j } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { cn as i } from "../../lib/utils.js";
4
- import { SectionHeader as w } from "../primitives/section-header.js";
5
- import { ProductCard as k } from "./product-card.js";
6
- const E = {
4
+ import { FOCUS_RING_ONLY as E } from "../../lib/focus-ring.js";
5
+ import { SectionHeader as g } from "../primitives/section-header.js";
6
+ import { ProductCard as T } from "./product-card.js";
7
+ const F = {
7
8
  sm: "w-40",
8
9
  md: "w-[200px]",
9
10
  lg: "w-[240px]",
@@ -11,91 +12,95 @@ const E = {
11
12
  responsive: "w-[calc((100vw_-_48px)/2.6)] @[736px]:w-[calc((100vw_-_96px)/5)] @[928px]:w-[calc((100vw_-_184px)/6)]"
12
13
  };
13
14
  function M({
14
- title: m,
15
- subtitle: p,
16
- description: e,
17
- sectionImage: r,
15
+ title: c,
16
+ subtitle: r,
17
+ description: l,
18
+ sectionImage: n,
18
19
  sectionImageAlt: u,
19
- sectionImageHref: n,
20
- moreHref: x,
21
- moreLabel: d,
22
- onMoreClick: o,
23
- headerSize: t,
24
- products: N,
25
- cardSize: h = "sm",
26
- showRanking: b = !1,
27
- showCartButton: c = !1,
28
- className: y
20
+ sectionImageHref: x,
21
+ moreHref: d,
22
+ moreLabel: o,
23
+ onMoreClick: t,
24
+ headerSize: h,
25
+ products: _,
26
+ cardSize: v = "sm",
27
+ showRanking: y = !1,
28
+ showCartButton: p = !1,
29
+ className: z,
30
+ linkComponent: m
29
31
  }) {
30
- const v = !!r, f = v && /* @__PURE__ */ s("div", { className: "shrink-0 overflow-hidden rounded-xl size-20 @sm:size-[100px] @md:size-[140px]", children: /* @__PURE__ */ s(
32
+ const b = m ?? "a", N = !!n, f = N && /* @__PURE__ */ a("div", { className: "shrink-0 overflow-hidden rounded-xl size-20 @sm:size-[100px] @md:size-[140px]", children: /* @__PURE__ */ a(
31
33
  "img",
32
34
  {
33
- src: r,
34
- alt: u ?? m,
35
+ src: n,
36
+ alt: u ?? c,
35
37
  className: "size-full object-cover",
36
38
  loading: "lazy"
37
39
  }
38
- ) }), z = n ? /* @__PURE__ */ s("a", { href: n, className: "shrink-0", children: f }) : f;
39
- return /* @__PURE__ */ a(
40
+ ) }), k = x ? /* @__PURE__ */ a(b, { href: x, className: "shrink-0", children: f }) : f;
41
+ return /* @__PURE__ */ e(
40
42
  "section",
41
43
  {
42
44
  "data-slot": "product-carousel",
43
- className: i("@container py-4 @[960px]:max-w-[960px] @[960px]:mx-auto", y),
45
+ className: i("@container py-4 @[960px]:max-w-[960px] @[960px]:mx-auto", z),
44
46
  children: [
45
- v ? /* @__PURE__ */ a("div", { className: "flex gap-3 px-4 @md:gap-4", children: [
46
- z,
47
- /* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
48
- /* @__PURE__ */ s(
49
- w,
47
+ N ? /* @__PURE__ */ e("div", { className: "flex gap-3 px-4 @md:gap-4", children: [
48
+ k,
49
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: [
50
+ /* @__PURE__ */ a(
51
+ g,
50
52
  {
51
- title: m,
52
- subtitle: p,
53
- moreHref: x,
54
- moreLabel: d,
55
- onMoreClick: o,
56
- size: t
53
+ title: c,
54
+ subtitle: r,
55
+ moreHref: d,
56
+ moreLabel: o,
57
+ onMoreClick: t,
58
+ size: h,
59
+ linkComponent: m
57
60
  }
58
61
  ),
59
- e && /* @__PURE__ */ s("p", { className: "mt-1 line-clamp-3 typo-body-md text-[var(--Text-Medium-Emphasis)]", children: e })
62
+ l && /* @__PURE__ */ a("p", { className: "mt-1 line-clamp-3 typo-body-md text-[var(--Text-Medium-Emphasis)]", children: l })
60
63
  ] })
61
- ] }) : /* @__PURE__ */ a(_, { children: [
62
- /* @__PURE__ */ s(
63
- w,
64
+ ] }) : /* @__PURE__ */ e(j, { children: [
65
+ /* @__PURE__ */ a(
66
+ g,
64
67
  {
65
- title: m,
66
- subtitle: p,
67
- moreHref: x,
68
- moreLabel: d,
69
- onMoreClick: o,
70
- size: t,
68
+ title: c,
69
+ subtitle: r,
70
+ moreHref: d,
71
+ moreLabel: o,
72
+ onMoreClick: t,
73
+ size: h,
74
+ linkComponent: m,
71
75
  className: "px-4"
72
76
  }
73
77
  ),
74
- e && /* @__PURE__ */ s("p", { className: "mt-1 px-4 line-clamp-3 typo-body-md text-[var(--Text-Medium-Emphasis)]", children: e })
78
+ l && /* @__PURE__ */ a("p", { className: "mt-1 px-4 line-clamp-3 typo-body-md text-[var(--Text-Medium-Emphasis)]", children: l })
75
79
  ] }),
76
- /* @__PURE__ */ a("div", { tabIndex: 0, className: i(
80
+ /* @__PURE__ */ e("div", { tabIndex: 0, className: i(
77
81
  "flex overflow-x-auto pl-4 pb-2 pt-3 scrollbar-hide",
78
- "focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-[var(--Focus-High-Emphasis)]/50",
79
- h === "responsive" ? "gap-2 @[736px]:gap-4 @[928px]:gap-6" : "gap-3",
80
- c && "items-stretch"
82
+ `focus-visible:outline-none ${E}`,
83
+ v === "responsive" ? "gap-2 @[736px]:gap-4 @[928px]:gap-6" : "gap-3",
84
+ p && "items-stretch"
81
85
  ), children: [
82
- N.map((l, g) => /* @__PURE__ */ s(
86
+ _.map((s, w) => /* @__PURE__ */ a(
83
87
  "div",
84
88
  {
85
- className: i("shrink-0", E[h]),
86
- children: /* @__PURE__ */ s(
87
- k,
89
+ className: i("shrink-0", F[v]),
90
+ children: /* @__PURE__ */ a(
91
+ T,
88
92
  {
89
- ...l,
90
- ranking: b ? g + 1 : l.ranking,
91
- showCartButton: c,
92
- className: i(l.className, c && "h-full")
93
+ ...s,
94
+ linkComponent: s.linkComponent ?? m,
95
+ ranking: y ? w + 1 : s.ranking,
96
+ showCartButton: p,
97
+ className: i(s.className, p && "h-full")
93
98
  }
94
99
  )
95
100
  },
96
- l.name + g
101
+ s.name + w
97
102
  )),
98
- /* @__PURE__ */ s("div", { className: "shrink-0 w-4 @[736px]:w-4 @[928px]:w-4", "aria-hidden": "true" })
103
+ /* @__PURE__ */ a("div", { className: "shrink-0 w-4 @[736px]:w-4 @[928px]:w-4", "aria-hidden": "true" })
99
104
  ] })
100
105
  ]
101
106
  }
@@ -1,9 +1,9 @@
1
1
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { cn as r } from "../../lib/utils.js";
4
- import { Button as u } from "../foundations/button.js";
5
- import { RatingStars as N } from "./rating-stars.js";
6
- function j({
4
+ import { Button as b } from "../foundations/button.js";
5
+ import { RatingStars as g } from "./rating-stars.js";
6
+ function H({
7
7
  className: l,
8
8
  tabs: m,
9
9
  productName: c,
@@ -15,8 +15,10 @@ function j({
15
15
  onCtaClick: x,
16
16
  ctaDisabled: p = !1,
17
17
  onTabClick: s,
18
- ...v
18
+ linkComponent: v,
19
+ ...f
19
20
  }) {
21
+ const u = v ?? "a";
20
22
  return /* @__PURE__ */ e(
21
23
  "div",
22
24
  {
@@ -25,18 +27,18 @@ function j({
25
27
  "hidden border-t border-[var(--Border-Low-Emphasis)] @md:block",
26
28
  l
27
29
  ),
28
- ...v,
30
+ ...f,
29
31
  children: /* @__PURE__ */ a("div", { className: "mx-auto flex max-w-[1064px] items-center justify-between", children: [
30
32
  /* @__PURE__ */ e("nav", { className: "flex items-center self-stretch", "aria-label": "商品詳細ナビゲーション", children: m.map((t) => /* @__PURE__ */ e(
31
- "a",
33
+ u,
32
34
  {
33
35
  href: t.href,
34
36
  className: r(
35
37
  "flex h-14 items-center justify-center px-3 typo-label-md transition-colors",
36
38
  t.active ? "border-b-2 border-[var(--Text-High-Emphasis)] text-[var(--Text-High-Emphasis)]" : "text-[var(--Text-Disable)] hover:text-[var(--Text-Medium-Emphasis)]"
37
39
  ),
38
- onClick: (f) => {
39
- s && (f.preventDefault(), s(t));
40
+ onClick: (N) => {
41
+ s && (N.preventDefault(), s(t));
40
42
  },
41
43
  "aria-current": t.active ? "true" : void 0,
42
44
  children: t.label
@@ -58,7 +60,7 @@ function j({
58
60
  /* @__PURE__ */ e("span", { className: "ml-1 typo-body-sm text-inherit", children: "税込" })
59
61
  ] }),
60
62
  i != null && i > 0 && /* @__PURE__ */ e("div", { className: "ml-1", children: /* @__PURE__ */ e(
61
- N,
63
+ g,
62
64
  {
63
65
  rating: i,
64
66
  reviewCount: o,
@@ -68,7 +70,7 @@ function j({
68
70
  ] })
69
71
  ] }),
70
72
  /* @__PURE__ */ e(
71
- u,
73
+ b,
72
74
  {
73
75
  size: "lg",
74
76
  onClick: x,
@@ -82,5 +84,5 @@ function j({
82
84
  );
83
85
  }
84
86
  export {
85
- j as ProductDetailBar
87
+ H as ProductDetailBar
86
88
  };
@@ -1,73 +1,75 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import * as A from "react";
3
- import P from "iconsax-reactjs/dist/esm/Shop.js";
4
- import D from "iconsax-reactjs/dist/esm/Tag2.js";
5
- import L from "iconsax-reactjs/dist/esm/Ticket2.js";
6
- import B from "iconsax-reactjs/dist/esm/InfoCircle.js";
7
- import Z from "iconsax-reactjs/dist/esm/ArrowRight2.js";
8
- import q from "iconsax-reactjs/dist/esm/ArrowDown2.js";
9
- import { cn as F } from "../../lib/utils.js";
10
- import { BookmarkRibbonIcon as V } from "./product-card.js";
11
- import { Tag as G } from "../primitives/tag.js";
12
- import { RatingStars as J } from "./rating-stars.js";
13
- import { NumberInput as K } from "../primitives/number-input.js";
14
- import { PriceDisplay as O } from "../primitives/price-display.js";
15
- import { Chip as U } from "../primitives/chip.js";
16
- import { Button as g } from "../foundations/button.js";
17
- function me({
18
- className: T,
19
- productName: w,
20
- price: k,
2
+ import * as D from "react";
3
+ import L from "iconsax-reactjs/dist/esm/Shop.js";
4
+ import B from "iconsax-reactjs/dist/esm/Tag2.js";
5
+ import Z from "iconsax-reactjs/dist/esm/Ticket2.js";
6
+ import q from "iconsax-reactjs/dist/esm/InfoCircle.js";
7
+ import F from "iconsax-reactjs/dist/esm/ArrowRight2.js";
8
+ import V from "iconsax-reactjs/dist/esm/ArrowDown2.js";
9
+ import { cn as G } from "../../lib/utils.js";
10
+ import { BookmarkRibbonIcon as J } from "./product-card.js";
11
+ import { Tag as K } from "../primitives/tag.js";
12
+ import { RatingStars as O } from "./rating-stars.js";
13
+ import { NumberInput as U } from "../primitives/number-input.js";
14
+ import { PriceDisplay as W } from "../primitives/price-display.js";
15
+ import { Chip as X } from "../primitives/chip.js";
16
+ import { Button as T } from "../foundations/button.js";
17
+ function oe({
18
+ className: w,
19
+ productName: k,
20
+ price: E,
21
21
  tags: c,
22
22
  shopName: d,
23
23
  shopHref: h,
24
24
  brandLabel: m,
25
25
  brandHref: f,
26
26
  rating: v,
27
- reviewCount: E,
27
+ reviewCount: C,
28
28
  coupons: n,
29
29
  sizeOptions: o,
30
- selectedSize: C,
31
- onSizeChange: S,
30
+ selectedSize: S,
31
+ onSizeChange: z,
32
32
  sizeInfoLabel: u,
33
- onSizeInfoClick: z,
33
+ onSizeInfoClick: M,
34
34
  deliveryPrefecture: p,
35
- onPrefectureChange: M,
35
+ onPrefectureChange: I,
36
36
  earliestDelivery: x,
37
- quantity: I = 1,
37
+ quantity: R = 1,
38
38
  onQuantityChange: b,
39
39
  pointInfo: s,
40
40
  onAddToCart: N,
41
- addToCartLabel: R = "カートに追加",
42
- onBookmark: H,
41
+ addToCartLabel: H = "カートに追加",
42
+ onBookmark: j,
43
43
  isBookmarked: y = !1,
44
44
  promoBanner: i,
45
- ...j
45
+ linkComponent: A,
46
+ ...P
46
47
  }) {
48
+ const g = A ?? "a";
47
49
  return /* @__PURE__ */ a(
48
50
  "div",
49
51
  {
50
52
  "data-slot": "product-detail-sidebar",
51
- className: F(
53
+ className: G(
52
54
  "flex w-[400px] max-w-full flex-col rounded-2xl border-2 border-[var(--Surface-Tertiary)] bg-[var(--Surface-Primary)]",
53
- T
55
+ w
54
56
  ),
55
- ...j,
57
+ ...P,
56
58
  children: [
57
59
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-4 overflow-hidden px-6 pb-2 pt-6", children: [
58
60
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
59
- c && c.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: c.map((l, r) => /* @__PURE__ */ e(G, { variant: l.variant, size: "md", children: l.label }, r)) }),
60
- /* @__PURE__ */ e("h2", { className: "typo-heading-2xl text-[var(--Text-High-Emphasis)]", children: w }),
61
+ c && c.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: c.map((l, r) => /* @__PURE__ */ e(K, { variant: l.variant, size: "md", children: l.label }, r)) }),
62
+ /* @__PURE__ */ e("h2", { className: "typo-heading-2xl text-[var(--Text-High-Emphasis)]", children: k }),
61
63
  d && /* @__PURE__ */ a("div", { className: "flex w-full items-center gap-1", children: [
62
64
  /* @__PURE__ */ e(
63
- P,
65
+ L,
64
66
  {
65
67
  size: 20,
66
68
  className: "shrink-0 text-[var(--Text-Medium-Emphasis)]"
67
69
  }
68
70
  ),
69
71
  h ? /* @__PURE__ */ e(
70
- "a",
72
+ g,
71
73
  {
72
74
  href: h,
73
75
  className: "typo-label-md text-[var(--Text-Medium-Emphasis)] underline",
@@ -77,14 +79,14 @@ function me({
77
79
  ] }),
78
80
  m && /* @__PURE__ */ a("div", { className: "flex w-full items-center gap-1", children: [
79
81
  /* @__PURE__ */ e(
80
- D,
82
+ B,
81
83
  {
82
84
  size: 20,
83
85
  className: "shrink-0 text-[var(--Text-Medium-Emphasis)]"
84
86
  }
85
87
  ),
86
88
  f ? /* @__PURE__ */ e(
87
- "a",
89
+ g,
88
90
  {
89
91
  href: f,
90
92
  className: "typo-label-md text-[var(--Text-Medium-Emphasis)] underline",
@@ -94,12 +96,12 @@ function me({
94
96
  ] })
95
97
  ] }),
96
98
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
97
- /* @__PURE__ */ e(O, { price: k, size: "xl" }),
99
+ /* @__PURE__ */ e(W, { price: E, size: "xl" }),
98
100
  v != null && /* @__PURE__ */ e(
99
- J,
101
+ O,
100
102
  {
101
103
  rating: v,
102
- reviewCount: E,
104
+ reviewCount: C,
103
105
  size: "md",
104
106
  showValue: !0,
105
107
  showCount: !0
@@ -108,10 +110,10 @@ function me({
108
110
  ] }),
109
111
  n && n.length > 0 && /* @__PURE__ */ a("div", { className: "flex flex-col pb-2", children: [
110
112
  /* @__PURE__ */ a("div", { className: "z-[var(--Z-Local-2)] flex items-center gap-0.5 self-start rounded bg-[var(--Surface-Info)] px-2 py-1", children: [
111
- /* @__PURE__ */ e(L, { size: 16, className: "text-[var(--Text-on-Inverse)]" }),
113
+ /* @__PURE__ */ e(Z, { size: 16, className: "text-[var(--Text-on-Inverse)]" }),
112
114
  /* @__PURE__ */ e("span", { className: "typo-label-sm text-[var(--Text-on-Inverse)]", children: "対象クーポン" })
113
115
  ] }),
114
- /* @__PURE__ */ e("div", { className: "-mt-2 z-[var(--Z-Local-1)] flex flex-col gap-0 rounded-lg bg-[var(--Surface-Info-Light)] px-4 py-3 pt-5", children: n.map((l, r) => /* @__PURE__ */ a(A.Fragment, { children: [
116
+ /* @__PURE__ */ e("div", { className: "-mt-2 z-[var(--Z-Local-1)] flex flex-col gap-0 rounded-lg bg-[var(--Surface-Info-Light)] px-4 py-3 pt-5", children: n.map((l, r) => /* @__PURE__ */ a(D.Fragment, { children: [
115
117
  r > 0 && /* @__PURE__ */ e("div", { className: "my-2 border-t border-dashed border-[var(--Border-Info)]" }),
116
118
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-2 py-1", children: [
117
119
  /* @__PURE__ */ e("span", { className: "min-w-0 truncate typo-label-lg text-[var(--Text-Info)]", children: l.label }),
@@ -132,14 +134,14 @@ function me({
132
134
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-3 overflow-hidden px-6 py-2", children: o.map((l, r) => (
133
135
  // lint-scratch-allow: gap-[11px] は Figma サイズチップ間隔の固有値
134
136
  /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-[11px]", children: l.map((t) => /* @__PURE__ */ e(
135
- U,
137
+ X,
136
138
  {
137
139
  shape: "square",
138
140
  size: "tile",
139
141
  variant: "filled",
140
- selected: C === t.value,
142
+ selected: S === t.value,
141
143
  soldOut: t.soldOut,
142
- onClick: () => S?.(t.value),
144
+ onClick: () => z?.(t.value),
143
145
  children: t.label
144
146
  },
145
147
  t.value
@@ -150,10 +152,10 @@ function me({
150
152
  {
151
153
  type: "button",
152
154
  className: "flex items-center gap-0.5 px-6 pb-3 pt-1",
153
- onClick: z,
155
+ onClick: M,
154
156
  children: [
155
157
  /* @__PURE__ */ e(
156
- B,
158
+ q,
157
159
  {
158
160
  size: 16,
159
161
  className: "shrink-0 text-[var(--Text-Medium-Emphasis)]"
@@ -169,12 +171,12 @@ function me({
169
171
  "button",
170
172
  {
171
173
  type: "button",
172
- onClick: M,
174
+ onClick: I,
173
175
  className: "flex min-w-0 shrink items-center justify-between gap-2 rounded-lg border border-[var(--Border-High-Emphasis)] bg-[var(--Surface-Primary)] px-4 py-3",
174
176
  children: [
175
177
  /* @__PURE__ */ e("span", { className: "min-w-0 truncate typo-body-lg text-[var(--Text-High-Emphasis)]", children: p }),
176
178
  /* @__PURE__ */ e(
177
- q,
179
+ V,
178
180
  {
179
181
  size: 16,
180
182
  className: "shrink-0 text-[var(--Text-High-Emphasis)]"
@@ -193,9 +195,9 @@ function me({
193
195
  b && /* @__PURE__ */ a("div", { className: "flex items-center gap-6 px-6 py-2", children: [
194
196
  /* @__PURE__ */ e("span", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: "数量" }),
195
197
  /* @__PURE__ */ e(
196
- K,
198
+ U,
197
199
  {
198
- value: I,
200
+ value: R,
199
201
  onChange: b,
200
202
  size: "md",
201
203
  editable: !1
@@ -237,25 +239,25 @@ function me({
237
239
  ] })
238
240
  ] }),
239
241
  /* @__PURE__ */ e(
240
- g,
242
+ T,
241
243
  {
242
244
  size: "xl",
243
245
  className: "w-full",
244
246
  onClick: N,
245
247
  disabled: !N,
246
- children: R
248
+ children: H
247
249
  }
248
250
  ),
249
251
  /* @__PURE__ */ a(
250
- g,
252
+ T,
251
253
  {
252
254
  variant: "tertiary",
253
255
  size: "xl",
254
256
  className: "mb-2 w-full",
255
- onClick: H,
257
+ onClick: j,
256
258
  children: [
257
259
  /* @__PURE__ */ e(
258
- V,
260
+ J,
259
261
  {
260
262
  size: 20,
261
263
  filled: y
@@ -278,7 +280,7 @@ function me({
278
280
  /* @__PURE__ */ e("span", { className: "typo-body-md text-left text-[var(--Text-Info)]", children: i.text })
279
281
  ] }),
280
282
  /* @__PURE__ */ e(
281
- Z,
283
+ F,
282
284
  {
283
285
  size: 24,
284
286
  className: "shrink-0 text-[var(--Text-Info)]"
@@ -292,5 +294,5 @@ function me({
292
294
  );
293
295
  }
294
296
  export {
295
- me as ProductDetailSidebar
297
+ oe as ProductDetailSidebar
296
298
  };