@cakejp/design-system 0.15.0 → 0.17.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/CHANGELOG.md +63 -0
- package/CLAUDE.md +1 -0
- package/bin/init.js +29 -6
- package/contracts/components.json +45 -8
- package/contracts/composition.json +8 -2
- package/contracts/rules.json +14 -2
- package/contracts/screen-patterns.json +1 -1
- package/dist/components/ec/_mypage-menu-data.js +166 -0
- package/dist/components/ec/admin-shell.js +202 -0
- package/dist/components/ec/anniversary-card.js +63 -0
- package/dist/components/ec/cake-logo.js +38 -0
- package/dist/components/ec/chart-controls.js +91 -0
- package/dist/components/ec/countdown-timer.js +50 -0
- package/dist/components/ec/coupon-card.js +136 -0
- package/dist/components/ec/delivery-calendar.js +105 -0
- package/dist/components/ec/mypage-shell.js +98 -0
- package/dist/components/ec/order-section.js +53 -0
- package/dist/components/ec/order-summary.js +78 -0
- package/dist/components/ec/payment-method.js +81 -0
- package/dist/components/ec/product-card.js +235 -0
- package/dist/components/ec/product-carousel.js +106 -0
- package/dist/components/ec/product-cta.js +80 -0
- package/dist/components/ec/product-detail-bar.js +86 -0
- package/dist/components/ec/product-detail-sidebar.js +296 -0
- package/dist/components/ec/product-list-item.js +266 -0
- package/dist/components/ec/product-option.js +165 -0
- package/dist/components/ec/rating-stars.js +74 -0
- package/dist/components/ec/review-card.js +126 -0
- package/dist/components/ec/review-form.js +181 -0
- package/dist/components/ec/review-summary.js +95 -0
- package/dist/components/ec/shop-card.js +179 -0
- package/dist/components/ec/stat-card.js +50 -0
- package/dist/components/foundations/accordion.js +67 -0
- package/dist/components/foundations/alert-dialog.js +165 -0
- package/dist/components/foundations/alert.js +218 -0
- package/dist/components/foundations/aspect-ratio.js +10 -0
- package/dist/components/foundations/avatar.js +58 -0
- package/dist/components/foundations/badge.js +54 -0
- package/dist/components/foundations/breadcrumb.js +104 -0
- package/dist/components/foundations/button.js +99 -0
- package/dist/components/foundations/calendar.js +173 -0
- package/dist/components/foundations/card.js +109 -0
- package/dist/components/foundations/checkbox-card.js +111 -0
- package/dist/components/foundations/checkbox-group.js +92 -0
- package/dist/components/foundations/checkbox.js +90 -0
- package/dist/components/foundations/chip-variants.js +41 -0
- package/dist/components/foundations/collapsible.js +34 -0
- package/dist/components/foundations/command.js +171 -0
- package/dist/components/foundations/context-menu.js +225 -0
- package/dist/components/foundations/data-table.js +59 -0
- package/dist/components/foundations/dialog.js +148 -0
- package/dist/components/foundations/drawer.js +129 -0
- package/dist/components/foundations/dropdown-menu.js +232 -0
- package/dist/components/foundations/field.js +150 -0
- package/dist/components/foundations/file-input.js +116 -0
- package/dist/components/foundations/form.js +101 -0
- package/dist/components/foundations/hover-card.js +41 -0
- package/dist/components/foundations/icon-badge.js +41 -0
- package/dist/components/foundations/input.js +74 -0
- package/dist/components/foundations/label.js +29 -0
- package/dist/components/foundations/menubar.js +252 -0
- package/dist/components/foundations/navigation-menu.js +171 -0
- package/dist/components/foundations/pagination.js +120 -0
- package/dist/components/foundations/popover.js +45 -0
- package/dist/components/foundations/progress.js +34 -0
- package/dist/components/foundations/radio-group.js +134 -0
- package/dist/components/foundations/responsive-dialog.js +76 -0
- package/dist/components/foundations/scroll-area.js +62 -0
- package/dist/components/foundations/select.js +190 -0
- package/dist/components/foundations/separator.js +27 -0
- package/dist/components/foundations/sheet.js +130 -0
- package/dist/components/foundations/skeleton.js +15 -0
- package/dist/components/foundations/skip-link.js +27 -0
- package/dist/components/foundations/slider.js +81 -0
- package/dist/components/foundations/social-icon.js +36 -0
- package/dist/components/foundations/sonner.js +49 -0
- package/dist/components/foundations/spinner.js +28 -0
- package/dist/components/foundations/switch.js +54 -0
- package/dist/components/foundations/table.js +115 -0
- package/dist/components/foundations/tabs.js +102 -0
- package/dist/components/foundations/textarea.js +65 -0
- package/dist/components/foundations/toggle-group.js +107 -0
- package/dist/components/foundations/toggle.js +44 -0
- package/dist/components/foundations/tooltip.js +56 -0
- package/dist/components/primitives/admin-header.js +31 -0
- package/dist/components/primitives/admin-side-nav.js +135 -0
- package/dist/components/primitives/banner-carousel.js +97 -0
- package/dist/components/primitives/bottom-tab-bar.js +81 -0
- package/dist/components/primitives/bulk-action-bar.js +27 -0
- package/dist/components/primitives/category-scroll.js +110 -0
- package/dist/components/primitives/category-shortcuts.js +66 -0
- package/dist/components/primitives/chat-composer.js +141 -0
- package/dist/components/primitives/chip.js +123 -0
- package/dist/components/primitives/coach-mark.js +102 -0
- package/dist/components/primitives/combobox.js +88 -0
- package/dist/components/primitives/container.js +50 -0
- package/dist/components/primitives/content-carousel.js +144 -0
- package/dist/components/primitives/date-picker.js +175 -0
- package/dist/components/primitives/empty-state.js +32 -0
- package/dist/components/primitives/error-state.js +115 -0
- package/dist/components/primitives/filter-bar.js +144 -0
- package/dist/components/primitives/footer.js +247 -0
- package/dist/components/primitives/form-field.js +38 -0
- package/dist/components/primitives/funnel-shell.js +99 -0
- package/dist/components/primitives/header.js +257 -0
- package/dist/components/primitives/image-carousel.js +156 -0
- package/dist/components/primitives/image-gallery.js +177 -0
- package/dist/components/primitives/image-input.js +207 -0
- package/dist/components/primitives/image-uploader.js +69 -0
- package/dist/components/primitives/kebab-menu.js +40 -0
- package/dist/components/primitives/list-item.js +80 -0
- package/dist/components/primitives/menu-drawer.js +154 -0
- package/dist/components/primitives/multi-select.js +93 -0
- package/dist/components/primitives/notification-badge.js +61 -0
- package/dist/components/primitives/notification-list.js +72 -0
- package/dist/components/primitives/number-input.js +235 -0
- package/dist/components/primitives/price-display.js +101 -0
- package/dist/components/primitives/progress-steps.js +62 -0
- package/dist/components/primitives/search-bar.js +81 -0
- package/dist/components/primitives/search-panel.js +43 -0
- package/dist/components/primitives/section-header.js +148 -0
- package/dist/components/primitives/section-nav.js +85 -0
- package/dist/components/primitives/section.js +78 -0
- package/dist/components/primitives/share-buttons.js +102 -0
- package/dist/components/primitives/side-nav.js +98 -0
- package/dist/components/primitives/social-login-button.js +53 -0
- package/dist/components/primitives/standard-page-shell.js +34 -0
- package/dist/components/primitives/status-count-tabs.js +42 -0
- package/dist/components/primitives/sticky-action-bar.js +26 -0
- package/dist/components/primitives/sub-nav.js +67 -0
- package/dist/components/primitives/tag.js +57 -0
- package/dist/components/primitives/timeline.js +55 -0
- package/dist/components/primitives/workspace-shell.js +57 -0
- package/dist/index.css +1 -1
- package/dist/index.js +22961 -13082
- package/dist/lib/field-labelling.js +29 -0
- package/dist/lib/focus-ring.js +6 -0
- package/dist/lib/pagination-range.js +42 -0
- package/dist/lib/use-value-length.js +63 -0
- package/dist/lib/utils.js +33 -0
- package/dist/types/components/ec/_mypage-menu-data.d.ts +3 -3
- package/dist/types/components/ec/admin-shell.d.ts +1 -1
- package/dist/types/components/ec/anniversary-card.d.ts +1 -1
- package/dist/types/components/ec/mypage-shell.d.ts +3 -3
- package/dist/types/components/ec/product-card.d.ts +1 -1
- package/dist/types/components/ec/product-carousel.d.ts +3 -3
- package/dist/types/components/ec/stat-card.d.ts +1 -1
- package/dist/types/components/foundations/accordion.d.ts +8 -1
- package/dist/types/components/foundations/alert-dialog.d.ts +1 -1
- package/dist/types/components/foundations/calendar.d.ts +1 -1
- package/dist/types/components/foundations/checkbox-group.d.ts +1 -1
- package/dist/types/components/foundations/command.d.ts +1 -1
- package/dist/types/components/foundations/data-table.d.ts +6 -1
- package/dist/types/components/foundations/field.d.ts +2 -2
- package/dist/types/components/foundations/file-input.d.ts +1 -1
- package/dist/types/components/foundations/pagination.d.ts +1 -1
- package/dist/types/components/foundations/responsive-dialog.d.ts +1 -1
- package/dist/types/components/foundations/skip-link.d.ts +1 -1
- package/dist/types/components/foundations/slider.d.ts +13 -1
- package/dist/types/components/primitives/admin-header.d.ts +11 -1
- package/dist/types/components/primitives/admin-side-nav.d.ts +19 -1
- package/dist/types/components/primitives/banner-carousel.d.ts +2 -2
- package/dist/types/components/primitives/category-scroll.d.ts +2 -2
- package/dist/types/components/primitives/category-shortcuts.d.ts +1 -1
- package/dist/types/components/primitives/chat-composer.d.ts +1 -1
- package/dist/types/components/primitives/chip.d.ts +1 -1
- package/dist/types/components/primitives/combobox.d.ts +9 -1
- package/dist/types/components/primitives/content-carousel.d.ts +1 -1
- package/dist/types/components/primitives/form-field.d.ts +1 -1
- package/dist/types/components/primitives/image-input.d.ts +1 -1
- package/dist/types/components/primitives/kebab-menu.d.ts +1 -1
- package/dist/types/components/primitives/menu-drawer.d.ts +0 -16
- package/dist/types/components/primitives/multi-select.d.ts +9 -1
- package/dist/types/components/primitives/notification-list.d.ts +1 -1
- package/dist/types/components/primitives/search-panel.d.ts +1 -1
- package/dist/types/components/primitives/section-nav.d.ts +1 -1
- package/dist/types/components/primitives/side-nav.d.ts +1 -1
- package/dist/types/components/primitives/social-login-button.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/field-labelling.d.ts +66 -0
- package/dist/types/lib/focus-ring.d.ts +42 -0
- package/package.json +2 -2
- package/scripts/codemod/README.md +9 -0
- package/src/components/COMPONENT_LOOKUP.md +1 -1
- package/src/preset-standalone.css +15 -0
- package/src/preset.css +15 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as a } from "../../lib/utils.js";
|
|
4
|
+
import { Button as p } from "../foundations/button.js";
|
|
5
|
+
function y({
|
|
6
|
+
className: t,
|
|
7
|
+
"aria-label": e,
|
|
8
|
+
...i
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ o(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
viewBox: "0 0 200 170",
|
|
14
|
+
fill: "none",
|
|
15
|
+
role: e ? "img" : void 0,
|
|
16
|
+
"aria-label": e,
|
|
17
|
+
"aria-hidden": e ? void 0 : !0,
|
|
18
|
+
className: a("h-auto w-40", t),
|
|
19
|
+
...i,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ r("ellipse", { cx: "100", cy: "146", rx: "74", ry: "11", fill: "var(--Surface-Tertiary)" }),
|
|
22
|
+
/* @__PURE__ */ r(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M42 96 h116 v26 a14 14 0 0 1 -14 14 H56 a14 14 0 0 1 -14 -14 Z",
|
|
26
|
+
fill: "var(--Surface-Accent-Primary-Light)",
|
|
27
|
+
stroke: "currentColor",
|
|
28
|
+
strokeWidth: "3",
|
|
29
|
+
strokeLinejoin: "round"
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ r(
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "M42 96 q9 -15 18 0 q9 15 18 0 q9 -15 18 0 q9 15 18 0 q9 -15 18 0 q9 15 18 0 v4 H42 Z",
|
|
36
|
+
fill: "var(--Brand-Cake-Orange)",
|
|
37
|
+
stroke: "currentColor",
|
|
38
|
+
strokeWidth: "3",
|
|
39
|
+
strokeLinejoin: "round"
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ r(
|
|
43
|
+
"path",
|
|
44
|
+
{
|
|
45
|
+
d: "M118 100 L150 132 H118 Z",
|
|
46
|
+
fill: "var(--Surface-Primary)",
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
strokeWidth: "2.5",
|
|
49
|
+
strokeLinejoin: "round",
|
|
50
|
+
strokeDasharray: "4 6"
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ r("circle", { cx: "70", cy: "88", r: "5", fill: "var(--Surface-Primary)", stroke: "currentColor", strokeWidth: "2.5" }),
|
|
54
|
+
/* @__PURE__ */ r("circle", { cx: "100", cy: "86", r: "5", fill: "var(--Surface-Primary)", stroke: "currentColor", strokeWidth: "2.5" }),
|
|
55
|
+
/* @__PURE__ */ r("circle", { cx: "163", cy: "66", r: "4", fill: "var(--Brand-Cake-Orange)" }),
|
|
56
|
+
/* @__PURE__ */ r("circle", { cx: "150", cy: "52", r: "3", fill: "var(--Surface-Tertiary)" }),
|
|
57
|
+
/* @__PURE__ */ r("circle", { cx: "40", cy: "70", r: "3.5", fill: "var(--Surface-Tertiary)" })
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
const d = {
|
|
63
|
+
error: { title: "エラーが発生しました" },
|
|
64
|
+
notFound: {
|
|
65
|
+
title: "ページが見つかりません",
|
|
66
|
+
description: "URL が間違っているか、ページが移動または削除された可能性があります。"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
function N({
|
|
70
|
+
className: t,
|
|
71
|
+
kind: e = "error",
|
|
72
|
+
icon: i,
|
|
73
|
+
title: u,
|
|
74
|
+
description: m,
|
|
75
|
+
onRetry: c,
|
|
76
|
+
retryLabel: f = "再試行",
|
|
77
|
+
action: v,
|
|
78
|
+
...h
|
|
79
|
+
}) {
|
|
80
|
+
const l = e === "notFound", x = u ?? d[e].title, n = m ?? d[e].description, s = i ?? (l ? /* @__PURE__ */ r(y, {}) : null);
|
|
81
|
+
return /* @__PURE__ */ o(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "error-state",
|
|
85
|
+
"data-kind": e,
|
|
86
|
+
className: a(
|
|
87
|
+
"flex flex-col items-center justify-center px-4 py-20 text-center",
|
|
88
|
+
t
|
|
89
|
+
),
|
|
90
|
+
...h,
|
|
91
|
+
children: [
|
|
92
|
+
s && /* @__PURE__ */ r(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
className: a(
|
|
96
|
+
"shrink-0",
|
|
97
|
+
l ? "text-[var(--Border-Medium-Emphasis)]" : "text-[var(--Object-Caution)]"
|
|
98
|
+
),
|
|
99
|
+
children: s
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
/* @__PURE__ */ r("p", { className: "mt-4 typo-heading-md text-[var(--Text-High-Emphasis)]", children: x }),
|
|
103
|
+
n && /* @__PURE__ */ r("div", { className: "mt-2 typo-body-md text-[var(--Text-Medium-Emphasis)] max-w-[400px]", children: n }),
|
|
104
|
+
/* @__PURE__ */ o("div", { className: "mt-6 flex flex-col gap-3 items-center", children: [
|
|
105
|
+
c && /* @__PURE__ */ r(p, { variant: "secondary", size: "lg", onClick: c, children: f }),
|
|
106
|
+
v
|
|
107
|
+
] })
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
N as ErrorState,
|
|
114
|
+
y as NotFoundIllustration
|
|
115
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import x from "iconsax-reactjs/dist/esm/Setting4.js";
|
|
4
|
+
import m from "iconsax-reactjs/dist/esm/ArrowDown2.js";
|
|
5
|
+
import y from "iconsax-reactjs/dist/esm/ArrowLeft2.js";
|
|
6
|
+
import { cn as c } from "../../lib/utils.js";
|
|
7
|
+
import { Button as v } from "../foundations/button.js";
|
|
8
|
+
function z({
|
|
9
|
+
filters: n,
|
|
10
|
+
resultCount: s,
|
|
11
|
+
sortLabel: t,
|
|
12
|
+
onSortClick: i,
|
|
13
|
+
onMoreFilters: o,
|
|
14
|
+
onBack: d,
|
|
15
|
+
activeFilterCount: l,
|
|
16
|
+
className: p,
|
|
17
|
+
variant: g,
|
|
18
|
+
...h
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ a(
|
|
21
|
+
"nav",
|
|
22
|
+
{
|
|
23
|
+
"aria-label": "商品フィルター",
|
|
24
|
+
"data-slot": "filter-bar",
|
|
25
|
+
className: c("@container space-y-2", p),
|
|
26
|
+
...h,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 overflow-x-auto scrollbar-hide", children: [
|
|
29
|
+
d && /* @__PURE__ */ e(
|
|
30
|
+
v,
|
|
31
|
+
{
|
|
32
|
+
variant: "tertiary",
|
|
33
|
+
size: "icon-sm",
|
|
34
|
+
onClick: d,
|
|
35
|
+
"aria-label": "戻る",
|
|
36
|
+
className: "shrink-0",
|
|
37
|
+
children: /* @__PURE__ */ e(y, { size: 16 })
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ a(
|
|
41
|
+
"button",
|
|
42
|
+
{
|
|
43
|
+
type: "button",
|
|
44
|
+
className: "relative flex size-9 shrink-0 items-center justify-center rounded-full bg-[var(--Surface-Tertiary)] text-[var(--Text-High-Emphasis)] transition-colors hover:opacity-80",
|
|
45
|
+
onClick: o,
|
|
46
|
+
"aria-label": "絞り込み",
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ e(x, { size: 20 }),
|
|
49
|
+
l != null && l > 0 && /* @__PURE__ */ e("span", { className: "absolute -right-1 -top-1 flex size-4 items-center justify-center rounded-full bg-[var(--Brand-Cake-Orange)] typo-label-xs text-[var(--Text-on-Inverse)]", children: l })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
n.map((r) => /* @__PURE__ */ a(
|
|
54
|
+
"button",
|
|
55
|
+
{
|
|
56
|
+
type: "button",
|
|
57
|
+
onClick: r.onClick,
|
|
58
|
+
className: c(
|
|
59
|
+
"flex h-9 shrink-0 items-center gap-0.5 rounded-full px-2.5 typo-body-md transition-colors max-w-[180px]",
|
|
60
|
+
r.isActive ? "bg-[var(--Surface-Accent-Primary-Light)] typo-label-md text-[var(--Text-Accent-Primary)] dark:bg-[var(--Brand-Cake-Orange)] dark:text-[var(--Primitive-White-alpha-1000)] dark:ring-0" : "bg-[var(--Surface-Tertiary)] text-[var(--Text-High-Emphasis)] hover:opacity-80"
|
|
61
|
+
),
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: r.isActive && r.value ? r.value : r.label }),
|
|
64
|
+
/* @__PURE__ */ e(m, { size: 16, className: "shrink-0" })
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
r.label
|
|
68
|
+
)),
|
|
69
|
+
o && /* @__PURE__ */ e(
|
|
70
|
+
"button",
|
|
71
|
+
{
|
|
72
|
+
type: "button",
|
|
73
|
+
onClick: o,
|
|
74
|
+
className: "shrink-0 whitespace-nowrap py-2 typo-body-md text-[var(--Text-Accent-Primary)]",
|
|
75
|
+
children: "他のフィルタ"
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] }),
|
|
79
|
+
(s !== void 0 || t || i) && /* @__PURE__ */ a("div", { className: "flex items-center justify-between px-0", children: [
|
|
80
|
+
s !== void 0 && /* @__PURE__ */ a("span", { className: "typo-body-md text-[var(--Text-High-Emphasis)]", children: [
|
|
81
|
+
"対象商品:",
|
|
82
|
+
/* @__PURE__ */ e("strong", { className: "mx-1 typo-heading-md", children: s.toLocaleString() }),
|
|
83
|
+
"件"
|
|
84
|
+
] }),
|
|
85
|
+
i && /* @__PURE__ */ a(
|
|
86
|
+
"button",
|
|
87
|
+
{
|
|
88
|
+
type: "button",
|
|
89
|
+
onClick: i,
|
|
90
|
+
className: c(
|
|
91
|
+
"flex h-9 shrink-0 items-center gap-0.5 rounded-full px-3 typo-body-md transition-colors @md:hidden",
|
|
92
|
+
t ? "bg-[var(--Surface-Accent-Primary-Light)] typo-label-md text-[var(--Text-Accent-Primary)] dark:bg-[var(--Brand-Cake-Orange)] dark:text-[var(--Primitive-White-alpha-1000)] dark:ring-0" : "bg-[var(--Surface-Tertiary)] text-[var(--Text-High-Emphasis)] hover:opacity-80"
|
|
93
|
+
),
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ e(u, { className: "size-4" }),
|
|
96
|
+
/* @__PURE__ */ e("span", { children: t ?? "並べ替え" })
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
t && /* @__PURE__ */ a("div", { className: "hidden @md:flex items-center gap-2", children: [
|
|
101
|
+
/* @__PURE__ */ e("span", { className: "typo-body-md text-[var(--Text-High-Emphasis)]", children: "並べ替え:" }),
|
|
102
|
+
/* @__PURE__ */ a(
|
|
103
|
+
"button",
|
|
104
|
+
{
|
|
105
|
+
type: "button",
|
|
106
|
+
onClick: i,
|
|
107
|
+
className: "flex items-center gap-1 rounded-full bg-[var(--Surface-Tertiary)] px-3 py-1.5 typo-body-md text-[var(--Text-High-Emphasis)] transition-colors hover:opacity-80",
|
|
108
|
+
children: [
|
|
109
|
+
t,
|
|
110
|
+
/* @__PURE__ */ e(m, { size: 12 })
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
] })
|
|
115
|
+
] })
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function u({ className: n }) {
|
|
121
|
+
return /* @__PURE__ */ a(
|
|
122
|
+
"svg",
|
|
123
|
+
{
|
|
124
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
125
|
+
viewBox: "0 0 24 24",
|
|
126
|
+
fill: "none",
|
|
127
|
+
stroke: "currentColor",
|
|
128
|
+
strokeWidth: 2,
|
|
129
|
+
strokeLinecap: "round",
|
|
130
|
+
strokeLinejoin: "round",
|
|
131
|
+
className: n,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ e("line", { x1: "4", y1: "6", x2: "13", y2: "6" }),
|
|
134
|
+
/* @__PURE__ */ e("line", { x1: "4", y1: "12", x2: "11", y2: "12" }),
|
|
135
|
+
/* @__PURE__ */ e("line", { x1: "4", y1: "18", x2: "9", y2: "18" }),
|
|
136
|
+
/* @__PURE__ */ e("polyline", { points: "17 9 20 6 23 9" }),
|
|
137
|
+
/* @__PURE__ */ e("line", { x1: "20", y1: "6", x2: "20", y2: "18" })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
export {
|
|
143
|
+
z as FilterBar
|
|
144
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { cn as c } from "../../lib/utils.js";
|
|
4
|
+
function y({
|
|
5
|
+
title: l,
|
|
6
|
+
children: s
|
|
7
|
+
}) {
|
|
8
|
+
const [i, a] = h.useState(!1), o = h.useRef(null), [d, m] = h.useState(0);
|
|
9
|
+
return h.useEffect(() => {
|
|
10
|
+
o.current && m(o.current.scrollHeight);
|
|
11
|
+
}, [i]), /* @__PURE__ */ t("div", { "data-slot": "footer-accordion", children: [
|
|
12
|
+
/* @__PURE__ */ t(
|
|
13
|
+
"button",
|
|
14
|
+
{
|
|
15
|
+
type: "button",
|
|
16
|
+
className: c(
|
|
17
|
+
"flex w-full items-center justify-between",
|
|
18
|
+
"border-t border-[var(--Border-Low-Emphasis)] px-5 py-5",
|
|
19
|
+
"typo-body-md text-[var(--Text-High-Emphasis)]",
|
|
20
|
+
"cursor-pointer"
|
|
21
|
+
),
|
|
22
|
+
onClick: () => a(!i),
|
|
23
|
+
"aria-expanded": i,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ e("span", { children: l }),
|
|
26
|
+
/* @__PURE__ */ t("span", { className: "relative size-3 shrink-0", children: [
|
|
27
|
+
/* @__PURE__ */ e("span", { className: "absolute top-1/2 left-0 block h-px w-3 -translate-y-1/2 bg-[var(--Text-High-Emphasis)] transition-transform duration-[var(--Motion-Duration-Base)]" }),
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
"span",
|
|
30
|
+
{
|
|
31
|
+
className: c(
|
|
32
|
+
"absolute top-1/2 left-0 block h-px w-3 -translate-y-1/2 bg-[var(--Text-High-Emphasis)] transition-transform duration-[var(--Motion-Duration-Base)]",
|
|
33
|
+
i ? "rotate-0" : "rotate-90"
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] })
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ e(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
ref: o,
|
|
45
|
+
className: "overflow-hidden transition-[max-height] duration-[var(--Motion-Duration-Base)] ease-in-out",
|
|
46
|
+
style: { maxHeight: i ? `${d}px` : "0px" },
|
|
47
|
+
children: /* @__PURE__ */ e("div", { className: "bg-[var(--Surface-Secondary)]", children: s })
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] });
|
|
51
|
+
}
|
|
52
|
+
function N({ groups: l }) {
|
|
53
|
+
const s = l.length <= 4 ? "@lg:grid-cols-4" : l.length === 5 ? "@lg:grid-cols-5" : "@lg:grid-cols-6";
|
|
54
|
+
return /* @__PURE__ */ e("div", { className: c("grid grid-cols-3 gap-6", s), children: l.map((i) => /* @__PURE__ */ t("div", { children: [
|
|
55
|
+
/* @__PURE__ */ e("h3", { className: "typo-label-md text-[var(--Text-High-Emphasis)] mb-3", children: i.title }),
|
|
56
|
+
/* @__PURE__ */ e("ul", { className: "space-y-1.5", children: i.links.map((a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
57
|
+
"a",
|
|
58
|
+
{
|
|
59
|
+
href: a.href,
|
|
60
|
+
className: "typo-body-sm text-[var(--Text-Medium-Emphasis)] hover:text-[var(--Text-High-Emphasis)] transition-colors duration-[var(--Motion-Duration-Fast)]",
|
|
61
|
+
...a.external ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
62
|
+
children: a.label
|
|
63
|
+
}
|
|
64
|
+
) }, a.label)) }),
|
|
65
|
+
i.subGroups?.map((a) => /* @__PURE__ */ t("div", { className: "mt-4", children: [
|
|
66
|
+
/* @__PURE__ */ e("h4", { className: "typo-label-md text-[var(--Text-High-Emphasis)] mb-3", children: a.title }),
|
|
67
|
+
/* @__PURE__ */ e("ul", { className: "space-y-1.5", children: a.links.map((o) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
68
|
+
"a",
|
|
69
|
+
{
|
|
70
|
+
href: o.href,
|
|
71
|
+
className: "typo-body-sm text-[var(--Text-Medium-Emphasis)] hover:text-[var(--Text-High-Emphasis)] transition-colors duration-[var(--Motion-Duration-Fast)]",
|
|
72
|
+
...o.external ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
73
|
+
children: o.label
|
|
74
|
+
}
|
|
75
|
+
) }, o.label)) })
|
|
76
|
+
] }, a.title))
|
|
77
|
+
] }, i.title)) });
|
|
78
|
+
}
|
|
79
|
+
function b({ links: l }) {
|
|
80
|
+
return /* @__PURE__ */ e("ul", { children: l.map((s) => /* @__PURE__ */ e("li", { className: "border-b border-[var(--Border-Low-Emphasis)] last:border-b-0", children: /* @__PURE__ */ t(
|
|
81
|
+
"a",
|
|
82
|
+
{
|
|
83
|
+
href: s.href,
|
|
84
|
+
className: c(
|
|
85
|
+
"flex items-center justify-between px-5 py-5",
|
|
86
|
+
"typo-body-sm text-[var(--Text-Medium-Emphasis)]",
|
|
87
|
+
"hover:text-[var(--Text-High-Emphasis)] transition-colors duration-[var(--Motion-Duration-Fast)]"
|
|
88
|
+
),
|
|
89
|
+
...s.external ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ e("span", { children: s.label }),
|
|
92
|
+
/* @__PURE__ */ e(
|
|
93
|
+
"svg",
|
|
94
|
+
{
|
|
95
|
+
className: "size-2.5 shrink-0 text-[var(--Text-Low-Emphasis)]",
|
|
96
|
+
viewBox: "0 0 10 10",
|
|
97
|
+
fill: "none",
|
|
98
|
+
stroke: "currentColor",
|
|
99
|
+
strokeWidth: "1.5",
|
|
100
|
+
children: /* @__PURE__ */ e("path", { d: "M3.5 1.5L7 5L3.5 8.5" })
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
) }, s.label)) });
|
|
106
|
+
}
|
|
107
|
+
function w({
|
|
108
|
+
className: l,
|
|
109
|
+
linkGroups: s = [],
|
|
110
|
+
copyright: i = "© Cake.jp Co., Ltd.",
|
|
111
|
+
logo: a,
|
|
112
|
+
logoHref: o = "/",
|
|
113
|
+
socialLinks: d = [],
|
|
114
|
+
description: m,
|
|
115
|
+
paymentMethods: x = [],
|
|
116
|
+
trustBadge: n,
|
|
117
|
+
bottomLinks: v = [],
|
|
118
|
+
...f
|
|
119
|
+
}) {
|
|
120
|
+
return /* @__PURE__ */ t(
|
|
121
|
+
"footer",
|
|
122
|
+
{
|
|
123
|
+
"data-slot": "footer",
|
|
124
|
+
style: { containerType: "inline-size" },
|
|
125
|
+
className: c(
|
|
126
|
+
"bg-[var(--Surface-Primary)] text-[var(--Text-Medium-Emphasis)]",
|
|
127
|
+
l
|
|
128
|
+
),
|
|
129
|
+
...f,
|
|
130
|
+
children: [
|
|
131
|
+
s.length > 0 && /* @__PURE__ */ t(u, { children: [
|
|
132
|
+
/* @__PURE__ */ e("nav", { "aria-label": "フッターナビゲーション", "data-slot": "footer-links", className: "border-t border-[var(--Border-Medium-Emphasis)] @lg:hidden", children: s.map((r) => /* @__PURE__ */ t(y, { title: r.title, children: [
|
|
133
|
+
/* @__PURE__ */ e(b, { links: r.links }),
|
|
134
|
+
r.subGroups?.map((p) => /* @__PURE__ */ t("div", { children: [
|
|
135
|
+
/* @__PURE__ */ e("div", { className: "border-t border-[var(--Border-Low-Emphasis)] px-5 py-5 typo-body-md text-[var(--Text-High-Emphasis)]", children: p.title }),
|
|
136
|
+
/* @__PURE__ */ e(b, { links: p.links })
|
|
137
|
+
] }, p.title))
|
|
138
|
+
] }, r.title)) }),
|
|
139
|
+
/* @__PURE__ */ e(
|
|
140
|
+
"nav",
|
|
141
|
+
{
|
|
142
|
+
"aria-label": "フッターナビゲーション",
|
|
143
|
+
"data-slot": "footer-links-pc",
|
|
144
|
+
className: "hidden @lg:block border-t border-[var(--Border-Medium-Emphasis)]",
|
|
145
|
+
children: /* @__PURE__ */ e("div", { className: "mx-auto max-w-[1065px] px-5 py-16", children: /* @__PURE__ */ e(N, { groups: s }) })
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] }),
|
|
149
|
+
d.length > 0 && /* @__PURE__ */ e(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
"data-slot": "footer-social",
|
|
153
|
+
className: "flex flex-wrap items-center justify-center gap-4 px-4 py-6 @sm:gap-8 @sm:px-0 @sm:py-8",
|
|
154
|
+
children: d.map((r) => /* @__PURE__ */ e(
|
|
155
|
+
"a",
|
|
156
|
+
{
|
|
157
|
+
href: r.href,
|
|
158
|
+
className: c(
|
|
159
|
+
// shrink-0 必須: SNS アイコンの 40px タッチターゲットを flex row で保つ
|
|
160
|
+
"flex size-10 shrink-0 items-center justify-center",
|
|
161
|
+
"text-[var(--Text-High-Emphasis)]",
|
|
162
|
+
"transition-colors duration-[var(--Motion-Duration-Fast)] hover:text-[var(--Text-Medium-Emphasis)]"
|
|
163
|
+
),
|
|
164
|
+
"aria-label": r.label,
|
|
165
|
+
target: "_blank",
|
|
166
|
+
rel: "noopener noreferrer",
|
|
167
|
+
children: r.icon
|
|
168
|
+
},
|
|
169
|
+
r.label
|
|
170
|
+
))
|
|
171
|
+
}
|
|
172
|
+
),
|
|
173
|
+
x.length > 0 && /* @__PURE__ */ t(
|
|
174
|
+
"div",
|
|
175
|
+
{
|
|
176
|
+
"data-slot": "footer-payment",
|
|
177
|
+
className: "border-t border-[var(--Border-Low-Emphasis)] px-5 py-6",
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ e("p", { className: "typo-label-sm text-[var(--Text-Low-Emphasis)] text-center mb-3", children: "お支払い方法" }),
|
|
180
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap items-center justify-center gap-1.5 @sm:gap-2", children: x.map((r) => /* @__PURE__ */ e(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
className: "flex items-center justify-center",
|
|
184
|
+
"aria-label": r.label,
|
|
185
|
+
children: r.icon
|
|
186
|
+
},
|
|
187
|
+
r.label
|
|
188
|
+
)) })
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
n && /* @__PURE__ */ t(
|
|
193
|
+
"div",
|
|
194
|
+
{
|
|
195
|
+
"data-slot": "footer-trust",
|
|
196
|
+
className: "flex items-center gap-3 border-t border-[var(--Border-Low-Emphasis)] px-5 py-5",
|
|
197
|
+
children: [
|
|
198
|
+
n.href ? /* @__PURE__ */ e(
|
|
199
|
+
"a",
|
|
200
|
+
{
|
|
201
|
+
href: n.href,
|
|
202
|
+
target: "_blank",
|
|
203
|
+
rel: "noopener noreferrer",
|
|
204
|
+
className: "shrink-0",
|
|
205
|
+
children: n.icon
|
|
206
|
+
}
|
|
207
|
+
) : /* @__PURE__ */ e("div", { className: "shrink-0", children: n.icon }),
|
|
208
|
+
n.description && /* @__PURE__ */ e("p", { className: "typo-body-xs text-[var(--Text-Low-Emphasis)]", children: n.description })
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
v.length > 0 && /* @__PURE__ */ e(
|
|
213
|
+
"div",
|
|
214
|
+
{
|
|
215
|
+
"data-slot": "footer-bottom-links",
|
|
216
|
+
className: "border-t border-[var(--Border-Low-Emphasis)] px-5 py-4",
|
|
217
|
+
children: /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center justify-center gap-x-3 gap-y-2 @sm:gap-x-4", children: v.map((r) => /* @__PURE__ */ e(
|
|
218
|
+
"a",
|
|
219
|
+
{
|
|
220
|
+
href: r.href,
|
|
221
|
+
className: "typo-body-xs text-[var(--Text-Low-Emphasis)] hover:text-[var(--Text-Medium-Emphasis)] transition-colors duration-[var(--Motion-Duration-Fast)]",
|
|
222
|
+
...r.external ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
223
|
+
children: r.label
|
|
224
|
+
},
|
|
225
|
+
r.label
|
|
226
|
+
)) })
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
/* @__PURE__ */ t(
|
|
230
|
+
"div",
|
|
231
|
+
{
|
|
232
|
+
"data-slot": "footer-bottom",
|
|
233
|
+
className: "border-t border-[var(--Border-Medium-Emphasis)] px-5 pt-8 pb-9 text-center",
|
|
234
|
+
children: [
|
|
235
|
+
a && /* @__PURE__ */ e("div", { className: "mx-auto w-fit max-w-[160px]", children: /* @__PURE__ */ e("a", { href: o, className: "block text-[var(--Text-High-Emphasis)]", children: a }) }),
|
|
236
|
+
m && /* @__PURE__ */ e("p", { className: "mt-6 typo-body-sm text-[var(--Text-Low-Emphasis)]", children: m }),
|
|
237
|
+
/* @__PURE__ */ e("p", { className: "mt-5 typo-body-sm text-[var(--Text-Low-Emphasis)]", children: i })
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
)
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
export {
|
|
246
|
+
w as Footer
|
|
247
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { cn as y } from "../../lib/utils.js";
|
|
4
|
+
import { Label as h } from "../foundations/label.js";
|
|
5
|
+
import { FieldLabellingContext as N } from "../../lib/field-labelling.js";
|
|
6
|
+
function L({
|
|
7
|
+
label: m,
|
|
8
|
+
required: p,
|
|
9
|
+
optional: x,
|
|
10
|
+
description: o,
|
|
11
|
+
descriptionPosition: l = "above",
|
|
12
|
+
error: a,
|
|
13
|
+
htmlFor: v,
|
|
14
|
+
children: b,
|
|
15
|
+
className: f
|
|
16
|
+
}) {
|
|
17
|
+
const t = u.useId(), r = `${t}-label`, s = v ?? `${t}-control`, n = o ? `${t}-description` : void 0, i = a ? `${t}-error` : void 0, d = o ? /* @__PURE__ */ e("p", { id: n, className: "typo-body-xs text-[var(--Text-Low-Emphasis)]", children: o }) : null;
|
|
18
|
+
return /* @__PURE__ */ c("div", { className: y("space-y-1.5", f), "data-slot": "form-field", children: [
|
|
19
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
|
|
20
|
+
/* @__PURE__ */ e(h, { id: r, htmlFor: s, className: "typo-label-md", children: m }),
|
|
21
|
+
p && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-1.5 py-0.5 rounded bg-[var(--Surface-Caution)] typo-label-xs text-[var(--Text-on-Inverse)]", children: "必須" }),
|
|
22
|
+
x && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-1.5 py-0.5 rounded bg-[var(--Surface-Tertiary)] typo-label-xs text-[var(--Text-Low-Emphasis)]", children: "任意" })
|
|
23
|
+
] }),
|
|
24
|
+
l === "above" && d,
|
|
25
|
+
/* @__PURE__ */ e(
|
|
26
|
+
N.Provider,
|
|
27
|
+
{
|
|
28
|
+
value: { labelId: r, controlId: s, descriptionId: n, errorId: i },
|
|
29
|
+
children: b
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
l === "below" && d,
|
|
33
|
+
a && /* @__PURE__ */ e("p", { id: i, className: "typo-body-xs text-[var(--Text-Caution)]", children: a })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
L as FormField
|
|
38
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as r } from "../../lib/utils.js";
|
|
4
|
+
import { SkipLink as N } from "../foundations/skip-link.js";
|
|
5
|
+
import { Header as f } from "./header.js";
|
|
6
|
+
function L({
|
|
7
|
+
logo: o,
|
|
8
|
+
title: c,
|
|
9
|
+
onBack: u,
|
|
10
|
+
backLabel: h = "戻る",
|
|
11
|
+
steps: e,
|
|
12
|
+
activeStep: x,
|
|
13
|
+
children: v,
|
|
14
|
+
bottomAction: d,
|
|
15
|
+
className: b,
|
|
16
|
+
mainId: m = "main-content",
|
|
17
|
+
skipLink: g
|
|
18
|
+
}) {
|
|
19
|
+
const t = e?.findIndex((n) => n.key === x) ?? -1;
|
|
20
|
+
return /* @__PURE__ */ p(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "funnel-shell",
|
|
24
|
+
className: r(
|
|
25
|
+
// 地が Surface-Secondary なので、配下 Card の既定サーフェスを白に切り替える文脈を宣言する
|
|
26
|
+
// (#150 の Section と同じ仕組み。dark は半透明白が重なって浮くため据え置き)。
|
|
27
|
+
"@container flex min-h-dvh flex-col bg-[var(--Surface-Secondary)] [--card-surface:var(--Surface-Primary)] dark:[--card-surface:var(--Surface-Secondary)]",
|
|
28
|
+
b
|
|
29
|
+
),
|
|
30
|
+
children: [
|
|
31
|
+
g !== !1 && /* @__PURE__ */ a(N, { href: `#${m}` }),
|
|
32
|
+
o ? /* @__PURE__ */ a(f, { variant: "logo-center", logo: o }) : c ? /* @__PURE__ */ a(f, { variant: "back", title: c, onBack: u, backLabel: h }) : null,
|
|
33
|
+
e && e.length > 0 && /* @__PURE__ */ a(
|
|
34
|
+
"nav",
|
|
35
|
+
{
|
|
36
|
+
"data-slot": "funnel-steps",
|
|
37
|
+
"aria-label": "購入ステップ",
|
|
38
|
+
className: "border-b border-[var(--Border-Low-Emphasis)] bg-[var(--Surface-Primary)] px-4 py-3",
|
|
39
|
+
children: /* @__PURE__ */ a("ol", { className: "mx-auto flex max-w-[640px] items-start", children: e.map((n, s) => {
|
|
40
|
+
const i = t >= 0 && s < t, l = s === t, y = i || l, k = s === e.length - 1;
|
|
41
|
+
return /* @__PURE__ */ p(
|
|
42
|
+
"li",
|
|
43
|
+
{
|
|
44
|
+
className: "relative flex flex-1 flex-col items-center",
|
|
45
|
+
"aria-current": l ? "step" : void 0,
|
|
46
|
+
children: [
|
|
47
|
+
!k && /* @__PURE__ */ a(
|
|
48
|
+
"span",
|
|
49
|
+
{
|
|
50
|
+
className: r(
|
|
51
|
+
"absolute left-1/2 right-[-50%] top-[3px] h-0.5 rounded-full transition-colors",
|
|
52
|
+
i ? "bg-[var(--Brand-Cake-Orange)]" : "bg-[var(--Border-Medium-Emphasis)]"
|
|
53
|
+
),
|
|
54
|
+
"aria-hidden": "true"
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ a(
|
|
58
|
+
"span",
|
|
59
|
+
{
|
|
60
|
+
className: r(
|
|
61
|
+
"relative z-10 size-2 shrink-0 rounded-full transition-colors",
|
|
62
|
+
y ? "bg-[var(--Brand-Cake-Orange)]" : "bg-[var(--Border-Medium-Emphasis)]"
|
|
63
|
+
),
|
|
64
|
+
"aria-hidden": "true"
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ a(
|
|
68
|
+
"span",
|
|
69
|
+
{
|
|
70
|
+
className: r(
|
|
71
|
+
"mt-1.5 px-1 text-center whitespace-nowrap transition-colors",
|
|
72
|
+
l ? "typo-label-sm text-[var(--Text-High-Emphasis)]" : i ? "typo-body-sm text-[var(--Text-Medium-Emphasis)]" : "typo-body-sm text-[var(--Text-Low-Emphasis)]"
|
|
73
|
+
),
|
|
74
|
+
children: n.label
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
n.key
|
|
80
|
+
);
|
|
81
|
+
}) })
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
/* @__PURE__ */ a(
|
|
85
|
+
"main",
|
|
86
|
+
{
|
|
87
|
+
id: m,
|
|
88
|
+
className: r("@container flex-1", d && "pb-20"),
|
|
89
|
+
children: v
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
d
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
export {
|
|
98
|
+
L as FunnelShell
|
|
99
|
+
};
|