orbital-ds 0.41.0 → 0.48.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/AGENTS.md +54 -12
- package/CHANGELOG.md +458 -0
- package/README.md +2 -2
- package/components.manifest.json +6630 -3569
- package/dist/hooks/use-esc-close-stack.js +38 -0
- package/dist/hooks/use-simulated-progress.js +30 -0
- package/dist/lib/brand-allowlist.js +703 -0
- package/dist/lib/brand-runtime.js +85 -0
- package/dist/lib/echarts-presets.js +152 -1
- package/dist/lib/echarts-setup.js +2 -0
- package/dist/lib/format.js +177 -0
- package/dist/lib/i18n.js +35 -2
- package/dist/lib/locales/de.js +536 -0
- package/dist/lib/locales/fr.js +536 -0
- package/dist/lib/locales/he.js +536 -0
- package/dist/lib/locales/it.js +536 -0
- package/dist/ui/auth-form.js +13 -6
- package/dist/ui/ayuda.js +4 -1
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/calendar.js +3 -0
- package/dist/ui/carousel.js +10 -5
- package/dist/ui/context-menu.js +3 -3
- package/dist/ui/cta-banner.js +63 -0
- package/dist/ui/date-time.js +55 -0
- package/dist/ui/description-list.js +86 -0
- package/dist/ui/detail-panel.js +2 -2
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/faq.js +25 -0
- package/dist/ui/feature-grid.js +40 -0
- package/dist/ui/hero.js +145 -0
- package/dist/ui/landing-section.js +59 -0
- package/dist/ui/mfa-challenge.js +1 -1
- package/dist/ui/next-step-card.js +92 -0
- package/dist/ui/page-header.js +20 -11
- package/dist/ui/pagination.js +2 -2
- package/dist/ui/pricing-table.js +86 -0
- package/dist/ui/quantity.js +27 -0
- package/dist/ui/sheet.js +6 -2
- package/dist/ui/sidebar.js +7 -3
- package/dist/ui/tag-input.js +169 -0
- package/dist/ui/testimonial.js +61 -0
- package/dist/ui/textarea.js +7 -1
- package/dist/ui/usage-meter.js +116 -0
- package/dist/ui/week-strip.js +2 -2
- package/docs/adr/0001-rtl-clases-logicas.md +14 -1
- package/docs/designer/flujo.md +1 -1
- package/docs/designer/patrones.md +45 -1
- package/manifest/actions.json +364 -0
- package/manifest/agents.json +399 -0
- package/manifest/ai.json +128 -0
- package/manifest/auth.json +1547 -0
- package/manifest/chat.json +612 -0
- package/manifest/content.json +2793 -0
- package/manifest/data.json +2802 -0
- package/manifest/feedback.json +1005 -0
- package/manifest/forms.json +1954 -0
- package/manifest/motion.json +196 -0
- package/manifest/navigation.json +1792 -0
- package/manifest/overlays.json +934 -0
- package/package.json +240 -238
- package/scripts/cli.mjs +124 -8
- package/scripts/doctor.mjs +153 -2
- package/scripts/eslint-plugin.mjs +125 -0
- package/scripts/i18n.mjs +1 -1
- package/scripts/manifest.mjs +179 -7
- package/scripts/upgrade.mjs +126 -0
- package/skill/SKILL.md +8 -3
- package/dist/hooks/use-ds-messages.d.ts +0 -537
- package/dist/hooks/use-ds-motion.d.ts +0 -17
- package/dist/hooks/use-in-view.d.ts +0 -9
- package/dist/hooks/use-mobile.d.ts +0 -3
- package/dist/lib/a2ui-catalog.d.ts +0 -42
- package/dist/lib/a2ui.d.ts +0 -289
- package/dist/lib/ai-events.d.ts +0 -15
- package/dist/lib/auth-better-auth.d.ts +0 -29
- package/dist/lib/auth-flow.d.ts +0 -85
- package/dist/lib/auth-providers.d.ts +0 -194
- package/dist/lib/auth.d.ts +0 -68
- package/dist/lib/echarts-presets.d.ts +0 -227
- package/dist/lib/echarts-server.d.ts +0 -15
- package/dist/lib/echarts-setup.d.ts +0 -8
- package/dist/lib/echarts-theme.d.ts +0 -36
- package/dist/lib/header-control.d.ts +0 -4
- package/dist/lib/i18n.d.ts +0 -545
- package/dist/lib/image-upload.d.ts +0 -41
- package/dist/lib/motion.d.ts +0 -74
- package/dist/lib/presets.d.ts +0 -8
- package/dist/lib/template-syntax.d.ts +0 -22
- package/dist/lib/utils.d.ts +0 -5
- package/dist/motion.css +0 -146
- package/dist/styles.css +0 -1737
- package/dist/themes/chocolate.css +0 -259
- package/dist/themes/chocolate.fonts.css +0 -2
- package/dist/themes/chocolate.guide.md +0 -30
- package/dist/themes/chocolate.meta.json +0 -61
- package/dist/themes/chocolate.scoped.css +0 -259
- package/dist/themes/chocolate.tokens.json +0 -49
- package/dist/themes/fractalia.css +0 -556
- package/dist/themes/fractalia.fonts.css +0 -3
- package/dist/themes/fractalia.guide.md +0 -86
- package/dist/themes/fractalia.meta.json +0 -112
- package/dist/themes/fractalia.scoped.css +0 -556
- package/dist/themes/fractalia.tokens.json +0 -39
- package/dist/themes/friendly.css +0 -375
- package/dist/themes/friendly.fonts.css +0 -2
- package/dist/themes/friendly.guide.md +0 -38
- package/dist/themes/friendly.meta.json +0 -82
- package/dist/themes/friendly.scoped.css +0 -375
- package/dist/themes/friendly.tokens.json +0 -45
- package/dist/themes/lagoon.css +0 -362
- package/dist/themes/lagoon.fonts.css +0 -2
- package/dist/themes/lagoon.guide.md +0 -47
- package/dist/themes/lagoon.meta.json +0 -85
- package/dist/themes/lagoon.scoped.css +0 -362
- package/dist/themes/lagoon.tokens.json +0 -49
- package/dist/themes/liquid.css +0 -510
- package/dist/themes/liquid.fonts.css +0 -7
- package/dist/themes/liquid.guide.md +0 -82
- package/dist/themes/liquid.meta.json +0 -134
- package/dist/themes/liquid.scoped.css +0 -510
- package/dist/themes/liquid.tokens.json +0 -47
- package/dist/themes/matcha.css +0 -259
- package/dist/themes/matcha.fonts.css +0 -2
- package/dist/themes/matcha.guide.md +0 -30
- package/dist/themes/matcha.meta.json +0 -61
- package/dist/themes/matcha.scoped.css +0 -259
- package/dist/themes/matcha.tokens.json +0 -49
- package/dist/themes/qratia.css +0 -264
- package/dist/themes/qratia.fonts.css +0 -2
- package/dist/themes/qratia.guide.md +0 -34
- package/dist/themes/qratia.meta.json +0 -49
- package/dist/themes/qratia.scoped.css +0 -264
- package/dist/themes/qratia.tokens.json +0 -49
- package/dist/themes/stone.css +0 -263
- package/dist/themes/stone.fonts.css +0 -2
- package/dist/themes/stone.guide.md +0 -30
- package/dist/themes/stone.meta.json +0 -47
- package/dist/themes/stone.scoped.css +0 -263
- package/dist/themes/stone.tokens.json +0 -49
- package/dist/themes/tactile.css +0 -596
- package/dist/themes/tactile.fonts.css +0 -3
- package/dist/themes/tactile.guide.md +0 -82
- package/dist/themes/tactile.meta.json +0 -182
- package/dist/themes/tactile.scoped.css +0 -596
- package/dist/themes/tactile.tokens.json +0 -42
- package/dist/themes/twitter.css +0 -364
- package/dist/themes/twitter.fonts.css +0 -6
- package/dist/themes/twitter.guide.md +0 -35
- package/dist/themes/twitter.meta.json +0 -90
- package/dist/themes/twitter.scoped.css +0 -364
- package/dist/themes/twitter.tokens.json +0 -45
- package/dist/themes/y2k.css +0 -259
- package/dist/themes/y2k.fonts.css +0 -2
- package/dist/themes/y2k.guide.md +0 -30
- package/dist/themes/y2k.meta.json +0 -59
- package/dist/themes/y2k.scoped.css +0 -259
- package/dist/themes/y2k.tokens.json +0 -49
- package/dist/themes/zyro.css +0 -442
- package/dist/themes/zyro.fonts.css +0 -2
- package/dist/themes/zyro.guide.md +0 -33
- package/dist/themes/zyro.meta.json +0 -74
- package/dist/themes/zyro.scoped.css +0 -442
- package/dist/themes/zyro.tokens.json +0 -46
- package/dist/ui/a2ui-renderer.d.ts +0 -33
- package/dist/ui/accordion.d.ts +0 -9
- package/dist/ui/agent-events.d.ts +0 -32
- package/dist/ui/ai-tag.d.ts +0 -8
- package/dist/ui/alert-dialog.d.ts +0 -23
- package/dist/ui/alert.d.ts +0 -13
- package/dist/ui/animated-number.d.ts +0 -9
- package/dist/ui/app-bar.d.ts +0 -10
- package/dist/ui/aspect-ratio.d.ts +0 -7
- package/dist/ui/attachment.d.ts +0 -26
- package/dist/ui/auth-backdrop.d.ts +0 -20
- package/dist/ui/auth-form.d.ts +0 -113
- package/dist/ui/auth-layout.d.ts +0 -72
- package/dist/ui/auth-parts.d.ts +0 -43
- package/dist/ui/auth-status.d.ts +0 -23
- package/dist/ui/avatar.d.ts +0 -16
- package/dist/ui/ayuda.d.ts +0 -22
- package/dist/ui/badge.d.ts +0 -15
- package/dist/ui/banner.d.ts +0 -14
- package/dist/ui/bottom-nav.d.ts +0 -15
- package/dist/ui/breadcrumb.d.ts +0 -12
- package/dist/ui/bubble.d.ts +0 -19
- package/dist/ui/button-group.d.ts +0 -15
- package/dist/ui/button.d.ts +0 -14
- package/dist/ui/calendar.d.ts +0 -15
- package/dist/ui/card-stack.d.ts +0 -9
- package/dist/ui/card.d.ts +0 -28
- package/dist/ui/carousel.d.ts +0 -33
- package/dist/ui/chain-of-thought.d.ts +0 -19
- package/dist/ui/chart-card.d.ts +0 -28
- package/dist/ui/chart.d.ts +0 -46
- package/dist/ui/chart.js +0 -254
- package/dist/ui/chat-composer.d.ts +0 -39
- package/dist/ui/checkbox.d.ts +0 -6
- package/dist/ui/choice-card.d.ts +0 -16
- package/dist/ui/code-block.d.ts +0 -14
- package/dist/ui/collapsible.d.ts +0 -8
- package/dist/ui/combobox.d.ts +0 -26
- package/dist/ui/command-palette.d.ts +0 -36
- package/dist/ui/command.d.ts +0 -22
- package/dist/ui/confirm-action.d.ts +0 -18
- package/dist/ui/confirm-dialog.d.ts +0 -21
- package/dist/ui/connected-accounts.d.ts +0 -25
- package/dist/ui/content-card.d.ts +0 -52
- package/dist/ui/context-menu.d.ts +0 -31
- package/dist/ui/conversation-list.d.ts +0 -24
- package/dist/ui/copy-button.d.ts +0 -14
- package/dist/ui/data-table.d.ts +0 -198
- package/dist/ui/date-picker.d.ts +0 -65
- package/dist/ui/detail-panel.d.ts +0 -16
- package/dist/ui/dialog.d.ts +0 -19
- package/dist/ui/direction.d.ts +0 -1
- package/dist/ui/dock.d.ts +0 -13
- package/dist/ui/drawer.d.ts +0 -18
- package/dist/ui/dropdown-menu.d.ts +0 -31
- package/dist/ui/dropzone.d.ts +0 -44
- package/dist/ui/echart.d.ts +0 -31
- package/dist/ui/empty-state.d.ts +0 -26
- package/dist/ui/empty.d.ts +0 -15
- package/dist/ui/entity-list.d.ts +0 -25
- package/dist/ui/error-page.d.ts +0 -28
- package/dist/ui/error-state.d.ts +0 -16
- package/dist/ui/eyebrow.d.ts +0 -7
- package/dist/ui/field.d.ts +0 -28
- package/dist/ui/file-upload.d.ts +0 -42
- package/dist/ui/filter-bar.d.ts +0 -38
- package/dist/ui/form-layout.d.ts +0 -19
- package/dist/ui/gauge.d.ts +0 -40
- package/dist/ui/generated-image.d.ts +0 -14
- package/dist/ui/generated-table.d.ts +0 -11
- package/dist/ui/heatmap-grid.d.ts +0 -39
- package/dist/ui/hover-card.d.ts +0 -8
- package/dist/ui/i18n-provider.d.ts +0 -11
- package/dist/ui/icon-tile.d.ts +0 -11
- package/dist/ui/input-group.d.ts +0 -22
- package/dist/ui/input-otp.d.ts +0 -13
- package/dist/ui/input.d.ts +0 -5
- package/dist/ui/instruction-editor.d.ts +0 -64
- package/dist/ui/item.d.ts +0 -26
- package/dist/ui/kbd.d.ts +0 -6
- package/dist/ui/label.d.ts +0 -5
- package/dist/ui/legend.d.ts +0 -32
- package/dist/ui/level-meter.d.ts +0 -16
- package/dist/ui/load-more.d.ts +0 -19
- package/dist/ui/loading-state.d.ts +0 -14
- package/dist/ui/locale-switcher.d.ts +0 -19
- package/dist/ui/markdown.d.ts +0 -14
- package/dist/ui/marker.d.ts +0 -13
- package/dist/ui/media-card.d.ts +0 -13
- package/dist/ui/menubar.d.ts +0 -31
- package/dist/ui/message-actions.d.ts +0 -12
- package/dist/ui/message-scroller.d.ts +0 -16
- package/dist/ui/message.d.ts +0 -12
- package/dist/ui/mfa-challenge.d.ts +0 -33
- package/dist/ui/mfa-setup.d.ts +0 -29
- package/dist/ui/mosaic.d.ts +0 -15
- package/dist/ui/motion-provider.d.ts +0 -11
- package/dist/ui/native-select.d.ts +0 -10
- package/dist/ui/navigation-menu.d.ts +0 -15
- package/dist/ui/notice-review.d.ts +0 -32
- package/dist/ui/notifications.d.ts +0 -81
- package/dist/ui/oauth-consent.d.ts +0 -54
- package/dist/ui/page-header.d.ts +0 -22
- package/dist/ui/page-loader.d.ts +0 -23
- package/dist/ui/page-shell.d.ts +0 -8
- package/dist/ui/pagination.d.ts +0 -22
- package/dist/ui/panel.d.ts +0 -12
- package/dist/ui/passkey-list.d.ts +0 -17
- package/dist/ui/password-input.d.ts +0 -5
- package/dist/ui/password-strength.d.ts +0 -14
- package/dist/ui/popover.d.ts +0 -12
- package/dist/ui/progress.d.ts +0 -9
- package/dist/ui/proportion-bar.d.ts +0 -27
- package/dist/ui/questionnaire.d.ts +0 -24
- package/dist/ui/radio-group.d.ts +0 -8
- package/dist/ui/reasoning.d.ts +0 -10
- package/dist/ui/resizable.d.ts +0 -10
- package/dist/ui/reveal.d.ts +0 -11
- package/dist/ui/scroll-area.d.ts +0 -7
- package/dist/ui/search-box.d.ts +0 -32
- package/dist/ui/select.d.ts +0 -19
- package/dist/ui/separator.d.ts +0 -6
- package/dist/ui/session-list.d.ts +0 -19
- package/dist/ui/session-timeout.d.ts +0 -13
- package/dist/ui/sheet.d.ts +0 -16
- package/dist/ui/shield.d.ts +0 -21
- package/dist/ui/show-more.d.ts +0 -12
- package/dist/ui/sidebar.d.ts +0 -90
- package/dist/ui/sign-out-dialog.d.ts +0 -17
- package/dist/ui/skeleton.d.ts +0 -10
- package/dist/ui/slider.d.ts +0 -23
- package/dist/ui/sonner.d.ts +0 -6
- package/dist/ui/sparkline.d.ts +0 -26
- package/dist/ui/spinner.d.ts +0 -5
- package/dist/ui/stat-group.d.ts +0 -8
- package/dist/ui/stat.d.ts +0 -90
- package/dist/ui/status-badge.d.ts +0 -39
- package/dist/ui/status-hero.d.ts +0 -12
- package/dist/ui/step-dots.d.ts +0 -10
- package/dist/ui/step-flow.d.ts +0 -48
- package/dist/ui/step-ring.d.ts +0 -12
- package/dist/ui/stepper.d.ts +0 -20
- package/dist/ui/suggestions.d.ts +0 -8
- package/dist/ui/switch.d.ts +0 -8
- package/dist/ui/table.d.ts +0 -12
- package/dist/ui/tabs.d.ts +0 -14
- package/dist/ui/task-loader.d.ts +0 -14
- package/dist/ui/task-progress.d.ts +0 -18
- package/dist/ui/textarea.d.ts +0 -11
- package/dist/ui/theme-toggle.d.ts +0 -14
- package/dist/ui/timeline.d.ts +0 -29
- package/dist/ui/toast.d.ts +0 -19
- package/dist/ui/toggle-group.d.ts +0 -14
- package/dist/ui/toggle.d.ts +0 -12
- package/dist/ui/tool-call.d.ts +0 -15
- package/dist/ui/tooltip.d.ts +0 -9
- package/dist/ui/week-strip.d.ts +0 -12
- package/dist/ui/workflow-run.d.ts +0 -23
package/dist/ui/carousel.js
CHANGED
|
@@ -6,6 +6,7 @@ import useEmblaCarousel from "embla-carousel-react";
|
|
|
6
6
|
import { Button } from "./button.js";
|
|
7
7
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
8
8
|
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
9
|
+
import { useDirection } from "@base-ui/react/direction-provider";
|
|
9
10
|
const CarouselContext = React.createContext(null);
|
|
10
11
|
function useCarousel() {
|
|
11
12
|
const context = React.useContext(CarouselContext);
|
|
@@ -24,8 +25,10 @@ function Carousel({
|
|
|
24
25
|
...props
|
|
25
26
|
}) {
|
|
26
27
|
const t = useDsMessages();
|
|
28
|
+
const direction = useDirection();
|
|
27
29
|
const [carouselRef, api] = useEmblaCarousel(
|
|
28
30
|
{
|
|
31
|
+
direction,
|
|
29
32
|
...opts,
|
|
30
33
|
axis: orientation === "horizontal" ? "x" : "y"
|
|
31
34
|
},
|
|
@@ -46,15 +49,17 @@ function Carousel({
|
|
|
46
49
|
}, [api]);
|
|
47
50
|
const handleKeyDown = React.useCallback(
|
|
48
51
|
(event) => {
|
|
49
|
-
|
|
52
|
+
const back = direction === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
53
|
+
const forward = direction === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
54
|
+
if (event.key === back) {
|
|
50
55
|
event.preventDefault();
|
|
51
56
|
scrollPrev();
|
|
52
|
-
} else if (event.key ===
|
|
57
|
+
} else if (event.key === forward) {
|
|
53
58
|
event.preventDefault();
|
|
54
59
|
scrollNext();
|
|
55
60
|
}
|
|
56
61
|
},
|
|
57
|
-
[scrollPrev, scrollNext]
|
|
62
|
+
[scrollPrev, scrollNext, direction]
|
|
58
63
|
);
|
|
59
64
|
React.useEffect(() => {
|
|
60
65
|
if (!api || !setApi) return;
|
|
@@ -161,7 +166,7 @@ function CarouselPrevious({
|
|
|
161
166
|
onClick: scrollPrev,
|
|
162
167
|
...props,
|
|
163
168
|
children: [
|
|
164
|
-
/* @__PURE__ */ jsx(ChevronLeftIcon, {}),
|
|
169
|
+
/* @__PURE__ */ jsx(ChevronLeftIcon, { className: "rtl:rotate-180" }),
|
|
165
170
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t.carouselPrevious })
|
|
166
171
|
]
|
|
167
172
|
}
|
|
@@ -190,7 +195,7 @@ function CarouselNext({
|
|
|
190
195
|
onClick: scrollNext,
|
|
191
196
|
...props,
|
|
192
197
|
children: [
|
|
193
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, {}),
|
|
198
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "rtl:rotate-180" }),
|
|
194
199
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t.carouselNext })
|
|
195
200
|
]
|
|
196
201
|
}
|
package/dist/ui/context-menu.js
CHANGED
|
@@ -26,7 +26,7 @@ function ContextMenuContent({
|
|
|
26
26
|
className,
|
|
27
27
|
align = "start",
|
|
28
28
|
alignOffset = 4,
|
|
29
|
-
side = "
|
|
29
|
+
side = "inline-end",
|
|
30
30
|
sideOffset = 0,
|
|
31
31
|
...props
|
|
32
32
|
}) {
|
|
@@ -111,7 +111,7 @@ function ContextMenuSubTrigger({
|
|
|
111
111
|
...props,
|
|
112
112
|
children: [
|
|
113
113
|
children,
|
|
114
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ms-auto" })
|
|
114
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ms-auto rtl:rotate-180" })
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
);
|
|
@@ -124,7 +124,7 @@ function ContextMenuSubContent({
|
|
|
124
124
|
{
|
|
125
125
|
"data-slot": "context-menu-sub-content",
|
|
126
126
|
className: "shadow-popover",
|
|
127
|
-
side: "
|
|
127
|
+
side: "inline-end",
|
|
128
128
|
...props
|
|
129
129
|
}
|
|
130
130
|
);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
|
+
import { AuthBackdrop } from "./auth-backdrop.js";
|
|
5
|
+
function CtaBanner({
|
|
6
|
+
title,
|
|
7
|
+
description,
|
|
8
|
+
actions,
|
|
9
|
+
layout = "centered",
|
|
10
|
+
backdrop = "none",
|
|
11
|
+
backdropMedia,
|
|
12
|
+
backdropGlass = false,
|
|
13
|
+
titleAs: Title = "h2",
|
|
14
|
+
className,
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}) {
|
|
18
|
+
const withFx = backdrop !== "none" || backdropGlass;
|
|
19
|
+
const inline = layout === "inline";
|
|
20
|
+
return /* @__PURE__ */ jsxs(
|
|
21
|
+
"section",
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "cta-banner",
|
|
24
|
+
"data-layout": layout,
|
|
25
|
+
"data-backdrop": withFx ? backdrop : void 0,
|
|
26
|
+
className: cn(
|
|
27
|
+
"@container/cta relative isolate w-full overflow-hidden rounded-(--ds-cta-radius) bg-(--ds-cta-bg) p-(--ds-cta-p) text-(--ds-cta-fg) @3xl/cta:p-(--ds-cta-p-wide)",
|
|
28
|
+
className
|
|
29
|
+
),
|
|
30
|
+
...props,
|
|
31
|
+
children: [
|
|
32
|
+
withFx ? /* @__PURE__ */ jsx(AuthBackdrop, { variant: backdrop, media: backdropMedia, glass: backdropGlass, className: "-z-10" }) : null,
|
|
33
|
+
/* @__PURE__ */ jsxs(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: cn(
|
|
37
|
+
"relative flex flex-col gap-(--ds-hero-content-gap)",
|
|
38
|
+
inline ? "items-start text-start @3xl/cta:flex-row @3xl/cta:items-center @3xl/cta:justify-between" : "items-center text-center"
|
|
39
|
+
),
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsxs("div", { className: cn("flex min-w-0 flex-col gap-(--ds-landing-header-gap)", !inline && "max-w-(--ds-landing-measure) items-center"), children: [
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
Title,
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "cta-banner-title",
|
|
46
|
+
className: "text-(length:--ds-landing-title-size) leading-(--ds-hero-title-leading) font-(--ds-heading-weight) tracking-(--ds-heading-tracking) text-balance",
|
|
47
|
+
children: title
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
description != null ? /* @__PURE__ */ jsx("p", { "data-slot": "cta-banner-description", className: "text-(length:--ds-hero-description-size) text-pretty text-(--ds-cta-description-fg)", children: description }) : null
|
|
51
|
+
] }),
|
|
52
|
+
actions != null ? /* @__PURE__ */ jsx("div", { "data-slot": "cta-banner-actions", className: cn("flex shrink-0 flex-wrap items-center gap-3", !inline && "justify-center"), children: actions }) : null
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
children
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
CtaBanner
|
|
63
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useDsLocale, useDsMessages } from "../hooks/use-ds-messages.js";
|
|
5
|
+
import {
|
|
6
|
+
formatDate,
|
|
7
|
+
formatRelativeTime,
|
|
8
|
+
relativeTimeRefreshMs,
|
|
9
|
+
toDate
|
|
10
|
+
} from "../lib/format.js";
|
|
11
|
+
import { cn } from "../lib/utils.js";
|
|
12
|
+
function Empty({ slot, className, ...props }) {
|
|
13
|
+
const t = useDsMessages();
|
|
14
|
+
return /* @__PURE__ */ jsxs("span", { "data-slot": slot, "data-state": "empty", className: cn("tabular-nums", className), ...props, children: [
|
|
15
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: "\u2014" }),
|
|
16
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t.statNoData })
|
|
17
|
+
] });
|
|
18
|
+
}
|
|
19
|
+
function DateTime({ value, style = "date", format, timeZone, className, ...props }) {
|
|
20
|
+
const locale = useDsLocale();
|
|
21
|
+
const d = toDate(value);
|
|
22
|
+
const text = formatDate(d, { locale, style, format, timeZone });
|
|
23
|
+
if (!d || text == null) return /* @__PURE__ */ jsx(Empty, { slot: "date-time", className });
|
|
24
|
+
return /* @__PURE__ */ jsx("time", { "data-slot": "date-time", dateTime: d.toISOString(), className: cn("tabular-nums", className), ...props, children: text });
|
|
25
|
+
}
|
|
26
|
+
function RelativeTime({ value, numeric, length, now, title, className, ...props }) {
|
|
27
|
+
const locale = useDsLocale();
|
|
28
|
+
const d = toDate(value);
|
|
29
|
+
const [tick, setTick] = React.useState(0);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
if (!d || now !== void 0) return;
|
|
32
|
+
const ms = relativeTimeRefreshMs(d);
|
|
33
|
+
if (!ms) return;
|
|
34
|
+
const id = window.setTimeout(() => setTick((n) => n + 1), ms);
|
|
35
|
+
return () => window.clearTimeout(id);
|
|
36
|
+
}, [d?.getTime(), now, tick]);
|
|
37
|
+
const text = formatRelativeTime(d, { locale, now, numeric, style: length });
|
|
38
|
+
if (!d || text == null) return /* @__PURE__ */ jsx(Empty, { slot: "relative-time", className });
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
|
+
"time",
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "relative-time",
|
|
43
|
+
dateTime: d.toISOString(),
|
|
44
|
+
title: title ?? formatDate(d, { locale, style: "datetime" }) ?? void 0,
|
|
45
|
+
className: cn("tabular-nums", className),
|
|
46
|
+
suppressHydrationWarning: true,
|
|
47
|
+
...props,
|
|
48
|
+
children: text
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
DateTime,
|
|
54
|
+
RelativeTime
|
|
55
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useDsMessages } from "../hooks/use-ds-messages.js";
|
|
5
|
+
import { cn } from "../lib/utils.js";
|
|
6
|
+
const LayoutContext = React.createContext("inline");
|
|
7
|
+
const LAYOUT = {
|
|
8
|
+
inline: "flex flex-col",
|
|
9
|
+
stacked: "flex flex-col gap-3",
|
|
10
|
+
grid: "grid grid-cols-[repeat(auto-fill,minmax(var(--ds-dl-cell-min),1fr))] gap-x-6 gap-y-4"
|
|
11
|
+
};
|
|
12
|
+
function DescriptionList({ layout = "inline", divided = false, items, className, children, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(LayoutContext.Provider, { value: layout, children: /* @__PURE__ */ jsxs(
|
|
14
|
+
"dl",
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "description-list",
|
|
17
|
+
"data-layout": layout,
|
|
18
|
+
"data-divided": divided || void 0,
|
|
19
|
+
className: cn(
|
|
20
|
+
"group/description-list @container/description-list min-w-0 text-sm",
|
|
21
|
+
LAYOUT[layout],
|
|
22
|
+
divided && layout !== "grid" && "divide-y divide-border",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
...props,
|
|
26
|
+
children: [
|
|
27
|
+
items?.map((it, i) => /* @__PURE__ */ jsxs(DescriptionListItem, { children: [
|
|
28
|
+
/* @__PURE__ */ jsx(DescriptionListTerm, { children: it.term }),
|
|
29
|
+
/* @__PURE__ */ jsx(DescriptionListDetails, { description: it.description, children: it.value })
|
|
30
|
+
] }, it.key ?? i)),
|
|
31
|
+
children
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
}
|
|
36
|
+
function DescriptionListItem({ className, ...props }) {
|
|
37
|
+
const layout = React.useContext(LayoutContext);
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "description-list-item",
|
|
42
|
+
className: cn(
|
|
43
|
+
"min-w-0",
|
|
44
|
+
layout === "inline" && "flex flex-col gap-0.5 py-2 group-data-divided/description-list:py-2.5 @md/description-list:grid @md/description-list:grid-cols-[minmax(0,var(--ds-dl-term-w))_minmax(0,1fr)] @md/description-list:items-baseline @md/description-list:gap-4",
|
|
45
|
+
layout !== "inline" && "flex flex-col gap-0.5",
|
|
46
|
+
layout === "stacked" && "group-data-divided/description-list:pt-3 group-data-divided/description-list:first:pt-0",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
...props
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function DescriptionListTerm({ className, ...props }) {
|
|
54
|
+
return /* @__PURE__ */ jsx("dt", { "data-slot": "description-list-term", className: cn("min-w-0 text-muted-foreground", className), ...props });
|
|
55
|
+
}
|
|
56
|
+
function DescriptionListDetails({
|
|
57
|
+
className,
|
|
58
|
+
description,
|
|
59
|
+
children,
|
|
60
|
+
...props
|
|
61
|
+
}) {
|
|
62
|
+
const t = useDsMessages();
|
|
63
|
+
const empty = children === null || children === void 0 || children === "";
|
|
64
|
+
return /* @__PURE__ */ jsxs(
|
|
65
|
+
"dd",
|
|
66
|
+
{
|
|
67
|
+
"data-slot": "description-list-details",
|
|
68
|
+
"data-state": empty ? "empty" : void 0,
|
|
69
|
+
className: cn("min-w-0 font-(--ds-label-weight) break-words text-foreground tabular-nums", className),
|
|
70
|
+
...props,
|
|
71
|
+
children: [
|
|
72
|
+
empty ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
73
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "text-muted-foreground", children: "\u2014" }),
|
|
74
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: t.statNoData })
|
|
75
|
+
] }) : children,
|
|
76
|
+
description != null && /* @__PURE__ */ jsx("span", { "data-slot": "description-list-description", className: "mt-0.5 block text-xs font-(--ds-normal-weight) text-muted-foreground", children: description })
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
DescriptionList,
|
|
83
|
+
DescriptionListDetails,
|
|
84
|
+
DescriptionListItem,
|
|
85
|
+
DescriptionListTerm
|
|
86
|
+
};
|
package/dist/ui/detail-panel.js
CHANGED
package/dist/ui/dropdown-menu.js
CHANGED
package/dist/ui/faq.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../lib/utils.js";
|
|
4
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion.js";
|
|
5
|
+
function Faq({ items, structuredData = false, className, ...props }) {
|
|
6
|
+
const ld = structuredData ? items.filter((it) => typeof it.question === "string" && typeof it.answer === "string").map((it) => ({ "@type": "Question", name: it.question, acceptedAnswer: { "@type": "Answer", text: it.answer } })) : [];
|
|
7
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Accordion, { "data-slot": "faq", className: cn("bg-card text-card-foreground", className), ...props, children: items.map((it, i) => /* @__PURE__ */ jsxs(AccordionItem, { value: it.value ?? String(i), children: [
|
|
9
|
+
/* @__PURE__ */ jsx(AccordionTrigger, { className: "text-base", children: it.question }),
|
|
10
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "text-pretty text-muted-foreground", children: it.answer })
|
|
11
|
+
] }, it.value ?? i)) }),
|
|
12
|
+
ld.length > 0 ? /* @__PURE__ */ jsx(
|
|
13
|
+
"script",
|
|
14
|
+
{
|
|
15
|
+
type: "application/ld+json",
|
|
16
|
+
dangerouslySetInnerHTML: {
|
|
17
|
+
__html: JSON.stringify({ "@context": "https://schema.org", "@type": "FAQPage", mainEntity: ld }).replace(/</g, "\\u003c")
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
) : null
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
Faq
|
|
25
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../lib/utils.js";
|
|
3
|
+
import { IconTile } from "./icon-tile.js";
|
|
4
|
+
const COLS = { 2: "@4xl/features:grid-cols-2", 3: "@4xl/features:grid-cols-3", 4: "@4xl/features:grid-cols-4" };
|
|
5
|
+
function FeatureGrid({ columns = 3, variant = "plain", align = "start", className, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: "@container/features w-full", children: /* @__PURE__ */ jsx(
|
|
7
|
+
"ul",
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "feature-grid",
|
|
10
|
+
"data-variant": variant,
|
|
11
|
+
"data-align": align,
|
|
12
|
+
className: cn("group/features grid grid-cols-1 gap-(--ds-landing-grid-gap) @xl/features:grid-cols-2", COLS[columns], className),
|
|
13
|
+
...props
|
|
14
|
+
}
|
|
15
|
+
) });
|
|
16
|
+
}
|
|
17
|
+
function Feature({ icon, iconTone = "primary", title, description, className, children, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsxs(
|
|
19
|
+
"li",
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "feature",
|
|
22
|
+
className: cn(
|
|
23
|
+
"flex min-w-0 flex-col gap-(--ds-feature-gap) group-data-[align=center]/features:items-center group-data-[align=center]/features:text-center",
|
|
24
|
+
"group-data-[variant=card]/features:rounded-card group-data-[variant=card]/features:border group-data-[variant=card]/features:bg-card group-data-[variant=card]/features:p-(--ds-card-spacing) group-data-[variant=card]/features:text-card-foreground group-data-[variant=card]/features:shadow-card",
|
|
25
|
+
className
|
|
26
|
+
),
|
|
27
|
+
...props,
|
|
28
|
+
children: [
|
|
29
|
+
icon != null ? /* @__PURE__ */ jsx(IconTile, { "data-slot": "feature-icon", tone: iconTone, children: icon }) : null,
|
|
30
|
+
/* @__PURE__ */ jsx("h3", { "data-slot": "feature-title", className: "font-(--ds-heading-weight) text-base", children: title }),
|
|
31
|
+
description != null ? /* @__PURE__ */ jsx("p", { "data-slot": "feature-description", className: "text-sm text-pretty text-muted-foreground", children: description }) : null,
|
|
32
|
+
children
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
Feature,
|
|
39
|
+
FeatureGrid
|
|
40
|
+
};
|
package/dist/ui/hero.js
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { dsWarn } from "../lib/presets.js";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
import { AuthBackdrop } from "./auth-backdrop.js";
|
|
6
|
+
const PRESET_ALIGN = {
|
|
7
|
+
landing: "center",
|
|
8
|
+
split: "start",
|
|
9
|
+
media: "center",
|
|
10
|
+
section: "start"
|
|
11
|
+
};
|
|
12
|
+
const PRESET_SCALE = {
|
|
13
|
+
landing: "",
|
|
14
|
+
split: "",
|
|
15
|
+
media: "",
|
|
16
|
+
section: "[--ds-hero-title-size:var(--ds-hero-title-size-section)] [--ds-hero-title-size-wide:var(--ds-hero-title-size-section-wide)] [--ds-hero-py:var(--ds-hero-py-section)] [--ds-hero-py-wide:var(--ds-hero-py-section-wide)]"
|
|
17
|
+
};
|
|
18
|
+
function Hero({
|
|
19
|
+
preset = "landing",
|
|
20
|
+
title,
|
|
21
|
+
description,
|
|
22
|
+
eyebrow,
|
|
23
|
+
actions,
|
|
24
|
+
media,
|
|
25
|
+
footer,
|
|
26
|
+
align,
|
|
27
|
+
backdrop,
|
|
28
|
+
backdropMedia,
|
|
29
|
+
backdropGlass = false,
|
|
30
|
+
plate,
|
|
31
|
+
animated = false,
|
|
32
|
+
titleAs: Title = "h1",
|
|
33
|
+
className,
|
|
34
|
+
children,
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
const side = align ?? PRESET_ALIGN[preset];
|
|
38
|
+
const fx = backdrop ?? (preset === "media" ? "image" : "none");
|
|
39
|
+
const withFx = fx !== "none" || backdropGlass;
|
|
40
|
+
const withPlate = plate ?? fx === "image";
|
|
41
|
+
const isSplit = preset === "split" && media != null;
|
|
42
|
+
if (preset === "split" && media == null) dsWarn("Hero", 'preset="split" needs `media` (image, video or demo); it renders as a single column.');
|
|
43
|
+
if (fx === "image" && backdropMedia == null) dsWarn("Hero", 'backdrop="image" needs `backdropMedia` (an <img>/<video> with alt="").');
|
|
44
|
+
if (preset !== "split" && media != null) dsWarn("Hero", '`media` is only laid out by preset="split"; use `backdropMedia` for a background photo.');
|
|
45
|
+
const enter = (i) => animated ? { className: "animate-ds-stagger motion-reduce:animate-none", style: { "--ds-stagger-i": i } } : { className: void 0, style: void 0 };
|
|
46
|
+
return /* @__PURE__ */ jsxs(
|
|
47
|
+
"section",
|
|
48
|
+
{
|
|
49
|
+
"data-slot": "hero",
|
|
50
|
+
"data-preset": preset,
|
|
51
|
+
"data-align": side,
|
|
52
|
+
"data-backdrop": withFx ? fx : void 0,
|
|
53
|
+
className: cn(
|
|
54
|
+
"@container/hero relative isolate w-full overflow-hidden rounded-(--ds-hero-radius) bg-(--ds-hero-bg) px-(--ds-hero-px) py-(--ds-hero-py) text-(--ds-hero-fg) @3xl/hero:py-(--ds-hero-py-wide)",
|
|
55
|
+
PRESET_SCALE[preset],
|
|
56
|
+
className
|
|
57
|
+
),
|
|
58
|
+
...props,
|
|
59
|
+
children: [
|
|
60
|
+
withFx ? /* @__PURE__ */ jsx(AuthBackdrop, { variant: fx, media: backdropMedia, glass: backdropGlass, animated }) : null,
|
|
61
|
+
/* @__PURE__ */ jsxs(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
"data-slot": "hero-inner",
|
|
65
|
+
className: cn(
|
|
66
|
+
"relative mx-auto grid w-full max-w-(--ds-page-max-w) grid-cols-1 gap-(--ds-hero-gap)",
|
|
67
|
+
isSplit && "@3xl/hero:grid-cols-2 @3xl/hero:items-center"
|
|
68
|
+
),
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsxs(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "hero-content",
|
|
74
|
+
className: cn(
|
|
75
|
+
"flex min-w-0 flex-col gap-(--ds-hero-content-gap)",
|
|
76
|
+
side === "center" ? "mx-auto max-w-(--ds-hero-measure) items-center text-center" : "max-w-(--ds-hero-measure) items-start text-start",
|
|
77
|
+
withPlate && "rounded-(--ds-auth-radius) border border-(--ds-auth-border) bg-(--ds-backdrop-plate-bg) p-(--ds-auth-p-sm) text-foreground shadow-(--ds-auth-shadow-elevated) [backdrop-filter:var(--ds-auth-glass-filter)] @3xl/hero:p-(--ds-auth-p)"
|
|
78
|
+
),
|
|
79
|
+
children: [
|
|
80
|
+
eyebrow ? /* @__PURE__ */ jsx("div", { "data-slot": "hero-eyebrow", className: cn("flex flex-wrap items-center gap-2 text-sm", enter(0).className), style: enter(0).style, children: eyebrow }) : null,
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
Title,
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "hero-title",
|
|
85
|
+
className: cn(
|
|
86
|
+
"text-(length:--ds-hero-title-size) leading-(--ds-hero-title-leading) font-(--ds-hero-title-weight) tracking-(--ds-hero-title-tracking) text-balance @3xl/hero:text-(length:--ds-hero-title-size-wide)",
|
|
87
|
+
enter(1).className
|
|
88
|
+
),
|
|
89
|
+
style: enter(1).style,
|
|
90
|
+
children: title
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
description ? /* @__PURE__ */ jsx(
|
|
94
|
+
"p",
|
|
95
|
+
{
|
|
96
|
+
"data-slot": "hero-description",
|
|
97
|
+
className: cn("text-(length:--ds-hero-description-size) text-pretty text-muted-foreground", enter(2).className),
|
|
98
|
+
style: enter(2).style,
|
|
99
|
+
children: description
|
|
100
|
+
}
|
|
101
|
+
) : null,
|
|
102
|
+
actions ? /* @__PURE__ */ jsx(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
"data-slot": "hero-actions",
|
|
106
|
+
className: cn("flex flex-wrap items-center gap-3", side === "center" && "justify-center", enter(3).className),
|
|
107
|
+
style: enter(3).style,
|
|
108
|
+
children: actions
|
|
109
|
+
}
|
|
110
|
+
) : null
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
isSplit ? /* @__PURE__ */ jsx(
|
|
115
|
+
"div",
|
|
116
|
+
{
|
|
117
|
+
"data-slot": "hero-media",
|
|
118
|
+
className: cn(
|
|
119
|
+
"min-w-0 overflow-hidden rounded-(--ds-hero-media-radius) shadow-(--ds-hero-media-shadow) [&>img]:size-full [&>img]:object-cover [&>video]:size-full [&>video]:object-cover",
|
|
120
|
+
enter(2).className
|
|
121
|
+
),
|
|
122
|
+
style: enter(2).style,
|
|
123
|
+
children: media
|
|
124
|
+
}
|
|
125
|
+
) : null,
|
|
126
|
+
footer ? /* @__PURE__ */ jsx(
|
|
127
|
+
"div",
|
|
128
|
+
{
|
|
129
|
+
"data-slot": "hero-footer",
|
|
130
|
+
className: cn("min-w-0 @3xl/hero:col-span-full", side === "center" && "text-center", enter(4).className),
|
|
131
|
+
style: enter(4).style,
|
|
132
|
+
children: footer
|
|
133
|
+
}
|
|
134
|
+
) : null
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
children
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
144
|
+
Hero
|
|
145
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../lib/utils.js";
|
|
5
|
+
function LandingSection({
|
|
6
|
+
title,
|
|
7
|
+
description,
|
|
8
|
+
eyebrow,
|
|
9
|
+
actions,
|
|
10
|
+
align = "center",
|
|
11
|
+
titleAs: Title = "h2",
|
|
12
|
+
className,
|
|
13
|
+
children,
|
|
14
|
+
...props
|
|
15
|
+
}) {
|
|
16
|
+
const id = React.useId();
|
|
17
|
+
const center = align === "center";
|
|
18
|
+
const hasHeader = title != null || description != null || eyebrow != null || actions != null;
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
"section",
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "landing-section",
|
|
23
|
+
"data-align": align,
|
|
24
|
+
"aria-labelledby": title != null ? id : void 0,
|
|
25
|
+
className: cn("@container/landing w-full px-(--ds-hero-px) py-(--ds-landing-py) @3xl/landing:py-(--ds-landing-py-wide)", className),
|
|
26
|
+
...props,
|
|
27
|
+
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto flex w-full max-w-(--ds-page-max-w) flex-col gap-(--ds-landing-body-gap)", children: [
|
|
28
|
+
hasHeader ? /* @__PURE__ */ jsxs(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "landing-section-header",
|
|
32
|
+
className: cn(
|
|
33
|
+
"flex max-w-(--ds-landing-measure) flex-col gap-(--ds-landing-header-gap)",
|
|
34
|
+
center ? "mx-auto items-center text-center" : "items-start text-start"
|
|
35
|
+
),
|
|
36
|
+
children: [
|
|
37
|
+
eyebrow != null ? /* @__PURE__ */ jsx("div", { "data-slot": "landing-section-eyebrow", className: "text-sm font-(--ds-medium-weight) text-primary", children: eyebrow }) : null,
|
|
38
|
+
title != null ? /* @__PURE__ */ jsx(
|
|
39
|
+
Title,
|
|
40
|
+
{
|
|
41
|
+
id,
|
|
42
|
+
"data-slot": "landing-section-title",
|
|
43
|
+
className: "text-(length:--ds-landing-title-size) leading-(--ds-hero-title-leading) font-(--ds-heading-weight) tracking-(--ds-heading-tracking) text-balance @3xl/landing:text-(length:--ds-landing-title-size-wide)",
|
|
44
|
+
children: title
|
|
45
|
+
}
|
|
46
|
+
) : null,
|
|
47
|
+
description != null ? /* @__PURE__ */ jsx("p", { "data-slot": "landing-section-description", className: "text-(length:--ds-hero-description-size) text-pretty text-muted-foreground", children: description }) : null,
|
|
48
|
+
actions != null ? /* @__PURE__ */ jsx("div", { "data-slot": "landing-section-actions", className: cn("flex flex-wrap items-center gap-3", center && "justify-center"), children: actions }) : null
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
) : null,
|
|
52
|
+
children != null ? /* @__PURE__ */ jsx("div", { "data-slot": "landing-section-body", className: "min-w-0", children }) : null
|
|
53
|
+
] })
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
LandingSection
|
|
59
|
+
};
|
package/dist/ui/mfa-challenge.js
CHANGED
|
@@ -109,7 +109,7 @@ function MfaChallenge({
|
|
|
109
109
|
}
|
|
110
110
|
) }, m)) }) }),
|
|
111
111
|
/* @__PURE__ */ jsxs(Button, { type: "button", variant: "ghost", size: "sm", className: "self-start", onClick: () => setChoosing(false), children: [
|
|
112
|
-
/* @__PURE__ */ jsx(ArrowLeftIcon, {}),
|
|
112
|
+
/* @__PURE__ */ jsx(ArrowLeftIcon, { className: "rtl:rotate-180" }),
|
|
113
113
|
t.authBack
|
|
114
114
|
] })
|
|
115
115
|
] });
|