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.
Files changed (321) hide show
  1. package/AGENTS.md +54 -12
  2. package/CHANGELOG.md +458 -0
  3. package/README.md +2 -2
  4. package/components.manifest.json +6630 -3569
  5. package/dist/hooks/use-esc-close-stack.js +38 -0
  6. package/dist/hooks/use-simulated-progress.js +30 -0
  7. package/dist/lib/brand-allowlist.js +703 -0
  8. package/dist/lib/brand-runtime.js +85 -0
  9. package/dist/lib/echarts-presets.js +152 -1
  10. package/dist/lib/echarts-setup.js +2 -0
  11. package/dist/lib/format.js +177 -0
  12. package/dist/lib/i18n.js +35 -2
  13. package/dist/lib/locales/de.js +536 -0
  14. package/dist/lib/locales/fr.js +536 -0
  15. package/dist/lib/locales/he.js +536 -0
  16. package/dist/lib/locales/it.js +536 -0
  17. package/dist/ui/auth-form.js +13 -6
  18. package/dist/ui/ayuda.js +4 -1
  19. package/dist/ui/breadcrumb.js +1 -1
  20. package/dist/ui/calendar.js +3 -0
  21. package/dist/ui/carousel.js +10 -5
  22. package/dist/ui/context-menu.js +3 -3
  23. package/dist/ui/cta-banner.js +63 -0
  24. package/dist/ui/date-time.js +55 -0
  25. package/dist/ui/description-list.js +86 -0
  26. package/dist/ui/detail-panel.js +2 -2
  27. package/dist/ui/dropdown-menu.js +1 -1
  28. package/dist/ui/faq.js +25 -0
  29. package/dist/ui/feature-grid.js +40 -0
  30. package/dist/ui/hero.js +145 -0
  31. package/dist/ui/landing-section.js +59 -0
  32. package/dist/ui/mfa-challenge.js +1 -1
  33. package/dist/ui/next-step-card.js +92 -0
  34. package/dist/ui/page-header.js +20 -11
  35. package/dist/ui/pagination.js +2 -2
  36. package/dist/ui/pricing-table.js +86 -0
  37. package/dist/ui/quantity.js +27 -0
  38. package/dist/ui/sheet.js +6 -2
  39. package/dist/ui/sidebar.js +7 -3
  40. package/dist/ui/tag-input.js +169 -0
  41. package/dist/ui/testimonial.js +61 -0
  42. package/dist/ui/textarea.js +7 -1
  43. package/dist/ui/usage-meter.js +116 -0
  44. package/dist/ui/week-strip.js +2 -2
  45. package/docs/adr/0001-rtl-clases-logicas.md +14 -1
  46. package/docs/designer/flujo.md +1 -1
  47. package/docs/designer/patrones.md +45 -1
  48. package/manifest/actions.json +364 -0
  49. package/manifest/agents.json +399 -0
  50. package/manifest/ai.json +128 -0
  51. package/manifest/auth.json +1547 -0
  52. package/manifest/chat.json +612 -0
  53. package/manifest/content.json +2793 -0
  54. package/manifest/data.json +2802 -0
  55. package/manifest/feedback.json +1005 -0
  56. package/manifest/forms.json +1954 -0
  57. package/manifest/motion.json +196 -0
  58. package/manifest/navigation.json +1792 -0
  59. package/manifest/overlays.json +934 -0
  60. package/package.json +240 -238
  61. package/scripts/cli.mjs +124 -8
  62. package/scripts/doctor.mjs +153 -2
  63. package/scripts/eslint-plugin.mjs +125 -0
  64. package/scripts/i18n.mjs +1 -1
  65. package/scripts/manifest.mjs +179 -7
  66. package/scripts/upgrade.mjs +126 -0
  67. package/skill/SKILL.md +8 -3
  68. package/dist/hooks/use-ds-messages.d.ts +0 -537
  69. package/dist/hooks/use-ds-motion.d.ts +0 -17
  70. package/dist/hooks/use-in-view.d.ts +0 -9
  71. package/dist/hooks/use-mobile.d.ts +0 -3
  72. package/dist/lib/a2ui-catalog.d.ts +0 -42
  73. package/dist/lib/a2ui.d.ts +0 -289
  74. package/dist/lib/ai-events.d.ts +0 -15
  75. package/dist/lib/auth-better-auth.d.ts +0 -29
  76. package/dist/lib/auth-flow.d.ts +0 -85
  77. package/dist/lib/auth-providers.d.ts +0 -194
  78. package/dist/lib/auth.d.ts +0 -68
  79. package/dist/lib/echarts-presets.d.ts +0 -227
  80. package/dist/lib/echarts-server.d.ts +0 -15
  81. package/dist/lib/echarts-setup.d.ts +0 -8
  82. package/dist/lib/echarts-theme.d.ts +0 -36
  83. package/dist/lib/header-control.d.ts +0 -4
  84. package/dist/lib/i18n.d.ts +0 -545
  85. package/dist/lib/image-upload.d.ts +0 -41
  86. package/dist/lib/motion.d.ts +0 -74
  87. package/dist/lib/presets.d.ts +0 -8
  88. package/dist/lib/template-syntax.d.ts +0 -22
  89. package/dist/lib/utils.d.ts +0 -5
  90. package/dist/motion.css +0 -146
  91. package/dist/styles.css +0 -1737
  92. package/dist/themes/chocolate.css +0 -259
  93. package/dist/themes/chocolate.fonts.css +0 -2
  94. package/dist/themes/chocolate.guide.md +0 -30
  95. package/dist/themes/chocolate.meta.json +0 -61
  96. package/dist/themes/chocolate.scoped.css +0 -259
  97. package/dist/themes/chocolate.tokens.json +0 -49
  98. package/dist/themes/fractalia.css +0 -556
  99. package/dist/themes/fractalia.fonts.css +0 -3
  100. package/dist/themes/fractalia.guide.md +0 -86
  101. package/dist/themes/fractalia.meta.json +0 -112
  102. package/dist/themes/fractalia.scoped.css +0 -556
  103. package/dist/themes/fractalia.tokens.json +0 -39
  104. package/dist/themes/friendly.css +0 -375
  105. package/dist/themes/friendly.fonts.css +0 -2
  106. package/dist/themes/friendly.guide.md +0 -38
  107. package/dist/themes/friendly.meta.json +0 -82
  108. package/dist/themes/friendly.scoped.css +0 -375
  109. package/dist/themes/friendly.tokens.json +0 -45
  110. package/dist/themes/lagoon.css +0 -362
  111. package/dist/themes/lagoon.fonts.css +0 -2
  112. package/dist/themes/lagoon.guide.md +0 -47
  113. package/dist/themes/lagoon.meta.json +0 -85
  114. package/dist/themes/lagoon.scoped.css +0 -362
  115. package/dist/themes/lagoon.tokens.json +0 -49
  116. package/dist/themes/liquid.css +0 -510
  117. package/dist/themes/liquid.fonts.css +0 -7
  118. package/dist/themes/liquid.guide.md +0 -82
  119. package/dist/themes/liquid.meta.json +0 -134
  120. package/dist/themes/liquid.scoped.css +0 -510
  121. package/dist/themes/liquid.tokens.json +0 -47
  122. package/dist/themes/matcha.css +0 -259
  123. package/dist/themes/matcha.fonts.css +0 -2
  124. package/dist/themes/matcha.guide.md +0 -30
  125. package/dist/themes/matcha.meta.json +0 -61
  126. package/dist/themes/matcha.scoped.css +0 -259
  127. package/dist/themes/matcha.tokens.json +0 -49
  128. package/dist/themes/qratia.css +0 -264
  129. package/dist/themes/qratia.fonts.css +0 -2
  130. package/dist/themes/qratia.guide.md +0 -34
  131. package/dist/themes/qratia.meta.json +0 -49
  132. package/dist/themes/qratia.scoped.css +0 -264
  133. package/dist/themes/qratia.tokens.json +0 -49
  134. package/dist/themes/stone.css +0 -263
  135. package/dist/themes/stone.fonts.css +0 -2
  136. package/dist/themes/stone.guide.md +0 -30
  137. package/dist/themes/stone.meta.json +0 -47
  138. package/dist/themes/stone.scoped.css +0 -263
  139. package/dist/themes/stone.tokens.json +0 -49
  140. package/dist/themes/tactile.css +0 -596
  141. package/dist/themes/tactile.fonts.css +0 -3
  142. package/dist/themes/tactile.guide.md +0 -82
  143. package/dist/themes/tactile.meta.json +0 -182
  144. package/dist/themes/tactile.scoped.css +0 -596
  145. package/dist/themes/tactile.tokens.json +0 -42
  146. package/dist/themes/twitter.css +0 -364
  147. package/dist/themes/twitter.fonts.css +0 -6
  148. package/dist/themes/twitter.guide.md +0 -35
  149. package/dist/themes/twitter.meta.json +0 -90
  150. package/dist/themes/twitter.scoped.css +0 -364
  151. package/dist/themes/twitter.tokens.json +0 -45
  152. package/dist/themes/y2k.css +0 -259
  153. package/dist/themes/y2k.fonts.css +0 -2
  154. package/dist/themes/y2k.guide.md +0 -30
  155. package/dist/themes/y2k.meta.json +0 -59
  156. package/dist/themes/y2k.scoped.css +0 -259
  157. package/dist/themes/y2k.tokens.json +0 -49
  158. package/dist/themes/zyro.css +0 -442
  159. package/dist/themes/zyro.fonts.css +0 -2
  160. package/dist/themes/zyro.guide.md +0 -33
  161. package/dist/themes/zyro.meta.json +0 -74
  162. package/dist/themes/zyro.scoped.css +0 -442
  163. package/dist/themes/zyro.tokens.json +0 -46
  164. package/dist/ui/a2ui-renderer.d.ts +0 -33
  165. package/dist/ui/accordion.d.ts +0 -9
  166. package/dist/ui/agent-events.d.ts +0 -32
  167. package/dist/ui/ai-tag.d.ts +0 -8
  168. package/dist/ui/alert-dialog.d.ts +0 -23
  169. package/dist/ui/alert.d.ts +0 -13
  170. package/dist/ui/animated-number.d.ts +0 -9
  171. package/dist/ui/app-bar.d.ts +0 -10
  172. package/dist/ui/aspect-ratio.d.ts +0 -7
  173. package/dist/ui/attachment.d.ts +0 -26
  174. package/dist/ui/auth-backdrop.d.ts +0 -20
  175. package/dist/ui/auth-form.d.ts +0 -113
  176. package/dist/ui/auth-layout.d.ts +0 -72
  177. package/dist/ui/auth-parts.d.ts +0 -43
  178. package/dist/ui/auth-status.d.ts +0 -23
  179. package/dist/ui/avatar.d.ts +0 -16
  180. package/dist/ui/ayuda.d.ts +0 -22
  181. package/dist/ui/badge.d.ts +0 -15
  182. package/dist/ui/banner.d.ts +0 -14
  183. package/dist/ui/bottom-nav.d.ts +0 -15
  184. package/dist/ui/breadcrumb.d.ts +0 -12
  185. package/dist/ui/bubble.d.ts +0 -19
  186. package/dist/ui/button-group.d.ts +0 -15
  187. package/dist/ui/button.d.ts +0 -14
  188. package/dist/ui/calendar.d.ts +0 -15
  189. package/dist/ui/card-stack.d.ts +0 -9
  190. package/dist/ui/card.d.ts +0 -28
  191. package/dist/ui/carousel.d.ts +0 -33
  192. package/dist/ui/chain-of-thought.d.ts +0 -19
  193. package/dist/ui/chart-card.d.ts +0 -28
  194. package/dist/ui/chart.d.ts +0 -46
  195. package/dist/ui/chart.js +0 -254
  196. package/dist/ui/chat-composer.d.ts +0 -39
  197. package/dist/ui/checkbox.d.ts +0 -6
  198. package/dist/ui/choice-card.d.ts +0 -16
  199. package/dist/ui/code-block.d.ts +0 -14
  200. package/dist/ui/collapsible.d.ts +0 -8
  201. package/dist/ui/combobox.d.ts +0 -26
  202. package/dist/ui/command-palette.d.ts +0 -36
  203. package/dist/ui/command.d.ts +0 -22
  204. package/dist/ui/confirm-action.d.ts +0 -18
  205. package/dist/ui/confirm-dialog.d.ts +0 -21
  206. package/dist/ui/connected-accounts.d.ts +0 -25
  207. package/dist/ui/content-card.d.ts +0 -52
  208. package/dist/ui/context-menu.d.ts +0 -31
  209. package/dist/ui/conversation-list.d.ts +0 -24
  210. package/dist/ui/copy-button.d.ts +0 -14
  211. package/dist/ui/data-table.d.ts +0 -198
  212. package/dist/ui/date-picker.d.ts +0 -65
  213. package/dist/ui/detail-panel.d.ts +0 -16
  214. package/dist/ui/dialog.d.ts +0 -19
  215. package/dist/ui/direction.d.ts +0 -1
  216. package/dist/ui/dock.d.ts +0 -13
  217. package/dist/ui/drawer.d.ts +0 -18
  218. package/dist/ui/dropdown-menu.d.ts +0 -31
  219. package/dist/ui/dropzone.d.ts +0 -44
  220. package/dist/ui/echart.d.ts +0 -31
  221. package/dist/ui/empty-state.d.ts +0 -26
  222. package/dist/ui/empty.d.ts +0 -15
  223. package/dist/ui/entity-list.d.ts +0 -25
  224. package/dist/ui/error-page.d.ts +0 -28
  225. package/dist/ui/error-state.d.ts +0 -16
  226. package/dist/ui/eyebrow.d.ts +0 -7
  227. package/dist/ui/field.d.ts +0 -28
  228. package/dist/ui/file-upload.d.ts +0 -42
  229. package/dist/ui/filter-bar.d.ts +0 -38
  230. package/dist/ui/form-layout.d.ts +0 -19
  231. package/dist/ui/gauge.d.ts +0 -40
  232. package/dist/ui/generated-image.d.ts +0 -14
  233. package/dist/ui/generated-table.d.ts +0 -11
  234. package/dist/ui/heatmap-grid.d.ts +0 -39
  235. package/dist/ui/hover-card.d.ts +0 -8
  236. package/dist/ui/i18n-provider.d.ts +0 -11
  237. package/dist/ui/icon-tile.d.ts +0 -11
  238. package/dist/ui/input-group.d.ts +0 -22
  239. package/dist/ui/input-otp.d.ts +0 -13
  240. package/dist/ui/input.d.ts +0 -5
  241. package/dist/ui/instruction-editor.d.ts +0 -64
  242. package/dist/ui/item.d.ts +0 -26
  243. package/dist/ui/kbd.d.ts +0 -6
  244. package/dist/ui/label.d.ts +0 -5
  245. package/dist/ui/legend.d.ts +0 -32
  246. package/dist/ui/level-meter.d.ts +0 -16
  247. package/dist/ui/load-more.d.ts +0 -19
  248. package/dist/ui/loading-state.d.ts +0 -14
  249. package/dist/ui/locale-switcher.d.ts +0 -19
  250. package/dist/ui/markdown.d.ts +0 -14
  251. package/dist/ui/marker.d.ts +0 -13
  252. package/dist/ui/media-card.d.ts +0 -13
  253. package/dist/ui/menubar.d.ts +0 -31
  254. package/dist/ui/message-actions.d.ts +0 -12
  255. package/dist/ui/message-scroller.d.ts +0 -16
  256. package/dist/ui/message.d.ts +0 -12
  257. package/dist/ui/mfa-challenge.d.ts +0 -33
  258. package/dist/ui/mfa-setup.d.ts +0 -29
  259. package/dist/ui/mosaic.d.ts +0 -15
  260. package/dist/ui/motion-provider.d.ts +0 -11
  261. package/dist/ui/native-select.d.ts +0 -10
  262. package/dist/ui/navigation-menu.d.ts +0 -15
  263. package/dist/ui/notice-review.d.ts +0 -32
  264. package/dist/ui/notifications.d.ts +0 -81
  265. package/dist/ui/oauth-consent.d.ts +0 -54
  266. package/dist/ui/page-header.d.ts +0 -22
  267. package/dist/ui/page-loader.d.ts +0 -23
  268. package/dist/ui/page-shell.d.ts +0 -8
  269. package/dist/ui/pagination.d.ts +0 -22
  270. package/dist/ui/panel.d.ts +0 -12
  271. package/dist/ui/passkey-list.d.ts +0 -17
  272. package/dist/ui/password-input.d.ts +0 -5
  273. package/dist/ui/password-strength.d.ts +0 -14
  274. package/dist/ui/popover.d.ts +0 -12
  275. package/dist/ui/progress.d.ts +0 -9
  276. package/dist/ui/proportion-bar.d.ts +0 -27
  277. package/dist/ui/questionnaire.d.ts +0 -24
  278. package/dist/ui/radio-group.d.ts +0 -8
  279. package/dist/ui/reasoning.d.ts +0 -10
  280. package/dist/ui/resizable.d.ts +0 -10
  281. package/dist/ui/reveal.d.ts +0 -11
  282. package/dist/ui/scroll-area.d.ts +0 -7
  283. package/dist/ui/search-box.d.ts +0 -32
  284. package/dist/ui/select.d.ts +0 -19
  285. package/dist/ui/separator.d.ts +0 -6
  286. package/dist/ui/session-list.d.ts +0 -19
  287. package/dist/ui/session-timeout.d.ts +0 -13
  288. package/dist/ui/sheet.d.ts +0 -16
  289. package/dist/ui/shield.d.ts +0 -21
  290. package/dist/ui/show-more.d.ts +0 -12
  291. package/dist/ui/sidebar.d.ts +0 -90
  292. package/dist/ui/sign-out-dialog.d.ts +0 -17
  293. package/dist/ui/skeleton.d.ts +0 -10
  294. package/dist/ui/slider.d.ts +0 -23
  295. package/dist/ui/sonner.d.ts +0 -6
  296. package/dist/ui/sparkline.d.ts +0 -26
  297. package/dist/ui/spinner.d.ts +0 -5
  298. package/dist/ui/stat-group.d.ts +0 -8
  299. package/dist/ui/stat.d.ts +0 -90
  300. package/dist/ui/status-badge.d.ts +0 -39
  301. package/dist/ui/status-hero.d.ts +0 -12
  302. package/dist/ui/step-dots.d.ts +0 -10
  303. package/dist/ui/step-flow.d.ts +0 -48
  304. package/dist/ui/step-ring.d.ts +0 -12
  305. package/dist/ui/stepper.d.ts +0 -20
  306. package/dist/ui/suggestions.d.ts +0 -8
  307. package/dist/ui/switch.d.ts +0 -8
  308. package/dist/ui/table.d.ts +0 -12
  309. package/dist/ui/tabs.d.ts +0 -14
  310. package/dist/ui/task-loader.d.ts +0 -14
  311. package/dist/ui/task-progress.d.ts +0 -18
  312. package/dist/ui/textarea.d.ts +0 -11
  313. package/dist/ui/theme-toggle.d.ts +0 -14
  314. package/dist/ui/timeline.d.ts +0 -29
  315. package/dist/ui/toast.d.ts +0 -19
  316. package/dist/ui/toggle-group.d.ts +0 -14
  317. package/dist/ui/toggle.d.ts +0 -12
  318. package/dist/ui/tool-call.d.ts +0 -15
  319. package/dist/ui/tooltip.d.ts +0 -9
  320. package/dist/ui/week-strip.d.ts +0 -12
  321. package/dist/ui/workflow-run.d.ts +0 -23
@@ -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
- if (event.key === "ArrowLeft") {
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 === "ArrowRight") {
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
  }
@@ -26,7 +26,7 @@ function ContextMenuContent({
26
26
  className,
27
27
  align = "start",
28
28
  alignOffset = 4,
29
- side = "right",
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: "right",
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
+ };
@@ -9,9 +9,9 @@ import {
9
9
  SheetTitle
10
10
  } from "./sheet.js";
11
11
  const SIDE = {
12
- side: "right",
12
+ side: "end",
13
13
  bottom: "bottom",
14
- full: "right"
14
+ full: "end"
15
15
  };
16
16
  const SIZE = {
17
17
  side: "",
@@ -222,7 +222,7 @@ function DropdownMenuSubTrigger({
222
222
  ...props,
223
223
  children: [
224
224
  children,
225
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ms-auto" })
225
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ms-auto rtl:rotate-180" })
226
226
  ]
227
227
  }
228
228
  );
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
+ };
@@ -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
+ };
@@ -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
  ] });