@cargo-ai/ui 0.0.0-stage → 1.0.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 (319) hide show
  1. package/README.md +111 -2
  2. package/build/blocks/Banner/Banner.d.ts +19 -0
  3. package/build/blocks/Banner/Banner.d.ts.map +1 -0
  4. package/build/blocks/Banner/Banner.js +7 -0
  5. package/build/blocks/BeforeAfter/BeforeAfter.d.ts +21 -0
  6. package/build/blocks/BeforeAfter/BeforeAfter.d.ts.map +1 -0
  7. package/build/blocks/BeforeAfter/BeforeAfter.js +13 -0
  8. package/build/blocks/CardGrid/CardGrid.d.ts +19 -0
  9. package/build/blocks/CardGrid/CardGrid.d.ts.map +1 -0
  10. package/build/blocks/CardGrid/CardGrid.js +17 -0
  11. package/build/blocks/CtaBand/CtaBand.d.ts +18 -0
  12. package/build/blocks/CtaBand/CtaBand.d.ts.map +1 -0
  13. package/build/blocks/CtaBand/CtaBand.js +13 -0
  14. package/build/blocks/Faq/Faq.d.ts +25 -0
  15. package/build/blocks/Faq/Faq.d.ts.map +1 -0
  16. package/build/blocks/Faq/Faq.js +20 -0
  17. package/build/blocks/FeatureGrid/FeatureGrid.d.ts +23 -0
  18. package/build/blocks/FeatureGrid/FeatureGrid.d.ts.map +1 -0
  19. package/build/blocks/FeatureGrid/FeatureGrid.js +12 -0
  20. package/build/blocks/FeatureRows/FeatureRows.d.ts +22 -0
  21. package/build/blocks/FeatureRows/FeatureRows.d.ts.map +1 -0
  22. package/build/blocks/FeatureRows/FeatureRows.js +14 -0
  23. package/build/blocks/HeroCentered/HeroCentered.d.ts +27 -0
  24. package/build/blocks/HeroCentered/HeroCentered.d.ts.map +1 -0
  25. package/build/blocks/HeroCentered/HeroCentered.js +13 -0
  26. package/build/blocks/HeroSplit/HeroSplit.d.ts +28 -0
  27. package/build/blocks/HeroSplit/HeroSplit.d.ts.map +1 -0
  28. package/build/blocks/HeroSplit/HeroSplit.js +18 -0
  29. package/build/blocks/LogoCloud/LogoCloud.d.ts +17 -0
  30. package/build/blocks/LogoCloud/LogoCloud.d.ts.map +1 -0
  31. package/build/blocks/LogoCloud/LogoCloud.js +8 -0
  32. package/build/blocks/Pricing/Pricing.d.ts +33 -0
  33. package/build/blocks/Pricing/Pricing.d.ts.map +1 -0
  34. package/build/blocks/Pricing/Pricing.js +33 -0
  35. package/build/blocks/Showcase/Showcase.d.ts +27 -0
  36. package/build/blocks/Showcase/Showcase.d.ts.map +1 -0
  37. package/build/blocks/Showcase/Showcase.js +40 -0
  38. package/build/blocks/SiteFooter/SiteFooter.d.ts +25 -0
  39. package/build/blocks/SiteFooter/SiteFooter.d.ts.map +1 -0
  40. package/build/blocks/SiteFooter/SiteFooter.js +14 -0
  41. package/build/blocks/SiteHeader/SiteHeader.d.ts +27 -0
  42. package/build/blocks/SiteHeader/SiteHeader.d.ts.map +1 -0
  43. package/build/blocks/SiteHeader/SiteHeader.js +101 -0
  44. package/build/blocks/Stats/Stats.d.ts +17 -0
  45. package/build/blocks/Stats/Stats.d.ts.map +1 -0
  46. package/build/blocks/Stats/Stats.js +9 -0
  47. package/build/blocks/Steps/Steps.d.ts +26 -0
  48. package/build/blocks/Steps/Steps.d.ts.map +1 -0
  49. package/build/blocks/Steps/Steps.js +23 -0
  50. package/build/blocks/Testimonials/Testimonials.d.ts +26 -0
  51. package/build/blocks/Testimonials/Testimonials.d.ts.map +1 -0
  52. package/build/blocks/Testimonials/Testimonials.js +30 -0
  53. package/build/blocks/types.d.ts +44 -0
  54. package/build/blocks/types.d.ts.map +1 -0
  55. package/build/blocks/types.js +1 -0
  56. package/build/components/CargoMark/CargoMark.d.ts +7 -0
  57. package/build/components/CargoMark/CargoMark.d.ts.map +1 -0
  58. package/build/components/CargoMark/CargoMark.js +16 -0
  59. package/build/components/CheckList/CheckList.d.ts +9 -0
  60. package/build/components/CheckList/CheckList.d.ts.map +1 -0
  61. package/build/components/CheckList/CheckList.js +8 -0
  62. package/build/components/CodeWindow/CodeWindow.d.ts +15 -0
  63. package/build/components/CodeWindow/CodeWindow.d.ts.map +1 -0
  64. package/build/components/CodeWindow/CodeWindow.js +53 -0
  65. package/build/components/CodeWindow/highlight.d.ts +4 -0
  66. package/build/components/CodeWindow/highlight.d.ts.map +1 -0
  67. package/build/components/CodeWindow/highlight.js +48 -0
  68. package/build/components/ComparisonTable/ComparisonTable.d.ts +62 -0
  69. package/build/components/ComparisonTable/ComparisonTable.d.ts.map +1 -0
  70. package/build/components/ComparisonTable/ComparisonTable.js +60 -0
  71. package/build/components/CountUp/CountUp.d.ts +13 -0
  72. package/build/components/CountUp/CountUp.d.ts.map +1 -0
  73. package/build/components/CountUp/CountUp.js +52 -0
  74. package/build/components/Eyebrow/Eyebrow.d.ts +21 -0
  75. package/build/components/Eyebrow/Eyebrow.d.ts.map +1 -0
  76. package/build/components/Eyebrow/Eyebrow.js +29 -0
  77. package/build/components/FeatureCard/FeatureCard.d.ts +12 -0
  78. package/build/components/FeatureCard/FeatureCard.d.ts.map +1 -0
  79. package/build/components/FeatureCard/FeatureCard.js +8 -0
  80. package/build/components/GlowCard/GlowCard.d.ts +11 -0
  81. package/build/components/GlowCard/GlowCard.d.ts.map +1 -0
  82. package/build/components/GlowCard/GlowCard.js +14 -0
  83. package/build/components/Highlight/Highlight.d.ts +12 -0
  84. package/build/components/Highlight/Highlight.d.ts.map +1 -0
  85. package/build/components/Highlight/Highlight.js +10 -0
  86. package/build/components/InstallCommand/InstallCommand.d.ts +9 -0
  87. package/build/components/InstallCommand/InstallCommand.d.ts.map +1 -0
  88. package/build/components/InstallCommand/InstallCommand.js +30 -0
  89. package/build/components/Logo/Logo.d.ts +16 -0
  90. package/build/components/Logo/Logo.d.ts.map +1 -0
  91. package/build/components/Logo/Logo.js +7 -0
  92. package/build/components/Marquee/Marquee.d.ts +17 -0
  93. package/build/components/Marquee/Marquee.d.ts.map +1 -0
  94. package/build/components/Marquee/Marquee.js +19 -0
  95. package/build/components/Marquee/index.d.ts +3 -0
  96. package/build/components/Marquee/index.d.ts.map +1 -0
  97. package/build/components/Marquee/index.js +1 -0
  98. package/build/components/Marquee/types.d.ts +9 -0
  99. package/build/components/Marquee/types.d.ts.map +1 -0
  100. package/build/components/Marquee/types.js +1 -0
  101. package/build/components/MaskedHeadline/MaskedHeadline.d.ts +10 -0
  102. package/build/components/MaskedHeadline/MaskedHeadline.d.ts.map +1 -0
  103. package/build/components/MaskedHeadline/MaskedHeadline.js +8 -0
  104. package/build/components/MediaFrame/MediaFrame.d.ts +17 -0
  105. package/build/components/MediaFrame/MediaFrame.d.ts.map +1 -0
  106. package/build/components/MediaFrame/MediaFrame.js +15 -0
  107. package/build/components/Prose/Prose.d.ts +23 -0
  108. package/build/components/Prose/Prose.d.ts.map +1 -0
  109. package/build/components/Prose/Prose.js +15 -0
  110. package/build/components/ResourceCard/ResourceCard.d.ts +31 -0
  111. package/build/components/ResourceCard/ResourceCard.d.ts.map +1 -0
  112. package/build/components/ResourceCard/ResourceCard.js +20 -0
  113. package/build/components/Reveal/Reveal.d.ts +14 -0
  114. package/build/components/Reveal/Reveal.d.ts.map +1 -0
  115. package/build/components/Reveal/Reveal.js +26 -0
  116. package/build/components/Terminal/Terminal.d.ts +11 -0
  117. package/build/components/Terminal/Terminal.d.ts.map +1 -0
  118. package/build/components/Terminal/Terminal.js +69 -0
  119. package/build/components/Terminal/index.d.ts +3 -0
  120. package/build/components/Terminal/index.d.ts.map +1 -0
  121. package/build/components/Terminal/index.js +1 -0
  122. package/build/components/Terminal/types.d.ts +10 -0
  123. package/build/components/Terminal/types.d.ts.map +1 -0
  124. package/build/components/Terminal/types.js +1 -0
  125. package/build/components/ThemeIsland/ThemeIsland.d.ts +22 -0
  126. package/build/components/ThemeIsland/ThemeIsland.d.ts.map +1 -0
  127. package/build/components/ThemeIsland/ThemeIsland.js +25 -0
  128. package/build/components/ThemeIsland/context.d.ts +5 -0
  129. package/build/components/ThemeIsland/context.d.ts.map +1 -0
  130. package/build/components/ThemeIsland/context.js +4 -0
  131. package/build/components/ThemeIsland/index.d.ts +3 -0
  132. package/build/components/ThemeIsland/index.d.ts.map +1 -0
  133. package/build/components/ThemeIsland/index.js +1 -0
  134. package/build/foundations/type-scale.d.ts +12 -0
  135. package/build/foundations/type-scale.d.ts.map +1 -0
  136. package/build/foundations/type-scale.js +11 -0
  137. package/build/hooks/use-mobile.d.ts +2 -0
  138. package/build/hooks/use-mobile.d.ts.map +1 -0
  139. package/build/hooks/use-mobile.js +15 -0
  140. package/build/hooks/use-reduced-motion.d.ts +6 -0
  141. package/build/hooks/use-reduced-motion.d.ts.map +1 -0
  142. package/build/hooks/use-reduced-motion.js +14 -0
  143. package/build/layout/Container/Container.d.ts +10 -0
  144. package/build/layout/Container/Container.d.ts.map +1 -0
  145. package/build/layout/Container/Container.js +7 -0
  146. package/build/layout/Page/Page.d.ts +9 -0
  147. package/build/layout/Page/Page.d.ts.map +1 -0
  148. package/build/layout/Page/Page.js +7 -0
  149. package/build/layout/Section/Section.d.ts +12 -0
  150. package/build/layout/Section/Section.d.ts.map +1 -0
  151. package/build/layout/Section/Section.js +9 -0
  152. package/build/layout/SectionHeading/SectionHeading.d.ts +18 -0
  153. package/build/layout/SectionHeading/SectionHeading.d.ts.map +1 -0
  154. package/build/layout/SectionHeading/SectionHeading.js +14 -0
  155. package/build/lib/utils.d.ts +2 -0
  156. package/build/lib/utils.d.ts.map +1 -0
  157. package/build/lib/utils.js +1 -0
  158. package/build/primitives/accordion.d.ts +8 -0
  159. package/build/primitives/accordion.d.ts.map +1 -0
  160. package/build/primitives/accordion.js +18 -0
  161. package/build/primitives/alert-dialog.d.ts +19 -0
  162. package/build/primitives/alert-dialog.d.ts.map +1 -0
  163. package/build/primitives/alert-dialog.js +43 -0
  164. package/build/primitives/alert.d.ts +10 -0
  165. package/build/primitives/alert.d.ts.map +1 -0
  166. package/build/primitives/alert.js +24 -0
  167. package/build/primitives/aspect-ratio.d.ts +5 -0
  168. package/build/primitives/aspect-ratio.d.ts.map +1 -0
  169. package/build/primitives/aspect-ratio.js +6 -0
  170. package/build/primitives/avatar.d.ts +12 -0
  171. package/build/primitives/avatar.d.ts.map +1 -0
  172. package/build/primitives/avatar.js +22 -0
  173. package/build/primitives/badge.d.ts +10 -0
  174. package/build/primitives/badge.d.ts.map +1 -0
  175. package/build/primitives/badge.js +28 -0
  176. package/build/primitives/breadcrumb.d.ts +12 -0
  177. package/build/primitives/breadcrumb.d.ts.map +1 -0
  178. package/build/primitives/breadcrumb.js +27 -0
  179. package/build/primitives/button-group.d.ts +13 -0
  180. package/build/primitives/button-group.d.ts.map +1 -0
  181. package/build/primitives/button-group.js +27 -0
  182. package/build/primitives/button.d.ts +11 -0
  183. package/build/primitives/button.d.ts.map +1 -0
  184. package/build/primitives/button.js +37 -0
  185. package/build/primitives/calendar.d.ts +9 -0
  186. package/build/primitives/calendar.d.ts.map +1 -0
  187. package/build/primitives/calendar.js +77 -0
  188. package/build/primitives/card.d.ts +10 -0
  189. package/build/primitives/card.d.ts.map +1 -0
  190. package/build/primitives/card.js +24 -0
  191. package/build/primitives/carousel.d.ts +20 -0
  192. package/build/primitives/carousel.d.ts.map +1 -0
  193. package/build/primitives/carousel.js +91 -0
  194. package/build/primitives/chart.d.ts +45 -0
  195. package/build/primitives/chart.d.ts.map +1 -0
  196. package/build/primitives/chart.js +136 -0
  197. package/build/primitives/checkbox.d.ts +5 -0
  198. package/build/primitives/checkbox.d.ts.map +1 -0
  199. package/build/primitives/checkbox.js +8 -0
  200. package/build/primitives/collapsible.d.ts +7 -0
  201. package/build/primitives/collapsible.d.ts.map +1 -0
  202. package/build/primitives/collapsible.js +13 -0
  203. package/build/primitives/command.d.ts +19 -0
  204. package/build/primitives/command.d.ts.map +1 -0
  205. package/build/primitives/command.js +33 -0
  206. package/build/primitives/context-menu.d.ts +26 -0
  207. package/build/primitives/context-menu.d.ts.map +1 -0
  208. package/build/primitives/context-menu.js +51 -0
  209. package/build/primitives/dialog.d.ts +18 -0
  210. package/build/primitives/dialog.d.ts.map +1 -0
  211. package/build/primitives/dialog.js +37 -0
  212. package/build/primitives/drawer.d.ts +14 -0
  213. package/build/primitives/drawer.d.ts.map +1 -0
  214. package/build/primitives/drawer.js +36 -0
  215. package/build/primitives/dropdown-menu.d.ts +26 -0
  216. package/build/primitives/dropdown-menu.d.ts.map +1 -0
  217. package/build/primitives/dropdown-menu.js +51 -0
  218. package/build/primitives/empty.d.ts +13 -0
  219. package/build/primitives/empty.d.ts.map +1 -0
  220. package/build/primitives/empty.js +33 -0
  221. package/build/primitives/field.d.ts +26 -0
  222. package/build/primitives/field.d.ts.map +1 -0
  223. package/build/primitives/field.js +76 -0
  224. package/build/primitives/form.d.ts +25 -0
  225. package/build/primitives/form.d.ts.map +1 -0
  226. package/build/primitives/form.js +59 -0
  227. package/build/primitives/hover-card.d.ts +7 -0
  228. package/build/primitives/hover-card.d.ts.map +1 -0
  229. package/build/primitives/hover-card.js +14 -0
  230. package/build/primitives/input-group.d.ts +17 -0
  231. package/build/primitives/input-group.d.ts.map +1 -0
  232. package/build/primitives/input-group.js +63 -0
  233. package/build/primitives/input-otp.d.ts +12 -0
  234. package/build/primitives/input-otp.d.ts.map +1 -0
  235. package/build/primitives/input-otp.js +21 -0
  236. package/build/primitives/input.d.ts +4 -0
  237. package/build/primitives/input.d.ts.map +1 -0
  238. package/build/primitives/input.js +6 -0
  239. package/build/primitives/item.d.ts +24 -0
  240. package/build/primitives/item.d.ts.map +1 -0
  241. package/build/primitives/item.js +66 -0
  242. package/build/primitives/kbd.d.ts +5 -0
  243. package/build/primitives/kbd.d.ts.map +1 -0
  244. package/build/primitives/kbd.js +9 -0
  245. package/build/primitives/label.d.ts +5 -0
  246. package/build/primitives/label.d.ts.map +1 -0
  247. package/build/primitives/label.js +7 -0
  248. package/build/primitives/menubar.d.ts +27 -0
  249. package/build/primitives/menubar.d.ts.map +1 -0
  250. package/build/primitives/menubar.js +55 -0
  251. package/build/primitives/navigation-menu.d.ts +15 -0
  252. package/build/primitives/navigation-menu.d.ts.map +1 -0
  253. package/build/primitives/navigation-menu.js +31 -0
  254. package/build/primitives/pagination.d.ts +14 -0
  255. package/build/primitives/pagination.d.ts.map +1 -0
  256. package/build/primitives/pagination.js +29 -0
  257. package/build/primitives/popover.d.ts +11 -0
  258. package/build/primitives/popover.d.ts.map +1 -0
  259. package/build/primitives/popover.js +27 -0
  260. package/build/primitives/progress.d.ts +5 -0
  261. package/build/primitives/progress.d.ts.map +1 -0
  262. package/build/primitives/progress.js +7 -0
  263. package/build/primitives/radio-group.d.ts +6 -0
  264. package/build/primitives/radio-group.d.ts.map +1 -0
  265. package/build/primitives/radio-group.js +12 -0
  266. package/build/primitives/resizable.d.ts +9 -0
  267. package/build/primitives/resizable.d.ts.map +1 -0
  268. package/build/primitives/resizable.js +14 -0
  269. package/build/primitives/scroll-area.d.ts +6 -0
  270. package/build/primitives/scroll-area.d.ts.map +1 -0
  271. package/build/primitives/scroll-area.js +13 -0
  272. package/build/primitives/select.d.ts +16 -0
  273. package/build/primitives/select.d.ts.map +1 -0
  274. package/build/primitives/select.js +39 -0
  275. package/build/primitives/separator.d.ts +5 -0
  276. package/build/primitives/separator.d.ts.map +1 -0
  277. package/build/primitives/separator.js +8 -0
  278. package/build/primitives/sheet.d.ts +15 -0
  279. package/build/primitives/sheet.d.ts.map +1 -0
  280. package/build/primitives/sheet.js +41 -0
  281. package/build/primitives/sidebar.d.ts +70 -0
  282. package/build/primitives/sidebar.d.ts.map +1 -0
  283. package/build/primitives/sidebar.js +212 -0
  284. package/build/primitives/skeleton.d.ts +4 -0
  285. package/build/primitives/skeleton.d.ts.map +1 -0
  286. package/build/primitives/skeleton.js +6 -0
  287. package/build/primitives/slider.d.ts +5 -0
  288. package/build/primitives/slider.d.ts.map +1 -0
  289. package/build/primitives/slider.js +14 -0
  290. package/build/primitives/sonner.d.ts +5 -0
  291. package/build/primitives/sonner.d.ts.map +1 -0
  292. package/build/primitives/sonner.js +19 -0
  293. package/build/primitives/spinner.d.ts +4 -0
  294. package/build/primitives/spinner.d.ts.map +1 -0
  295. package/build/primitives/spinner.js +7 -0
  296. package/build/primitives/switch.d.ts +7 -0
  297. package/build/primitives/switch.d.ts.map +1 -0
  298. package/build/primitives/switch.js +8 -0
  299. package/build/primitives/table.d.ts +11 -0
  300. package/build/primitives/table.d.ts.map +1 -0
  301. package/build/primitives/table.js +28 -0
  302. package/build/primitives/tabs.d.ts +12 -0
  303. package/build/primitives/tabs.d.ts.map +1 -0
  304. package/build/primitives/tabs.js +28 -0
  305. package/build/primitives/textarea.d.ts +4 -0
  306. package/build/primitives/textarea.d.ts.map +1 -0
  307. package/build/primitives/textarea.js +6 -0
  308. package/build/primitives/toggle-group.d.ts +10 -0
  309. package/build/primitives/toggle-group.d.ts.map +1 -0
  310. package/build/primitives/toggle-group.js +22 -0
  311. package/build/primitives/toggle.d.ts +10 -0
  312. package/build/primitives/toggle.d.ts.map +1 -0
  313. package/build/primitives/toggle.js +25 -0
  314. package/build/primitives/tooltip.d.ts +8 -0
  315. package/build/primitives/tooltip.d.ts.map +1 -0
  316. package/build/primitives/tooltip.js +18 -0
  317. package/build/shadcn.css +650 -0
  318. package/build/styles.css +699 -0
  319. package/package.json +187 -4
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ type Props = {
3
+ text: string;
4
+ as?: "h1" | "h2" | "p" | "span";
5
+ className?: string;
6
+ };
7
+ /** Each word rises from behind its own baseline. */
8
+ export declare const MaskedHeadline: React.FC<Props>;
9
+ export {};
10
+ //# sourceMappingURL=MaskedHeadline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaskedHeadline.d.ts","sourceRoot":"","sources":["../../../src/components/MaskedHeadline/MaskedHeadline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAiB1C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { cn } from "../../lib/utils";
4
+ /** Each word rises from behind its own baseline. */
5
+ export const MaskedHeadline = (props) => {
6
+ const { text, as: Tag = "h1", className } = props;
7
+ return (_jsxs(Tag, { className: cn("cui-mh", className), children: [_jsx("span", { className: "sr-only", children: text }), text.split(" ").map((word, index) => (_jsxs(React.Fragment, { children: [index > 0 ? " " : null, _jsx("span", { className: "cui-w", "aria-hidden": true, children: _jsx("span", { style: { "--i": index }, children: word }) })] }, index)))] }));
8
+ };
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ type Props = {
3
+ /** A video, a screenshot, a live demo: anything that should be seen whole. */
4
+ children: React.ReactNode;
5
+ /** Shows a window bar with three dots and this label, as `CodeWindow` does. Left out, the frame has no bar. */
6
+ title?: React.ReactNode;
7
+ /** The ratio of the media box, such as "16 / 9". Left out, the media sets its own height. */
8
+ aspectRatio?: string;
9
+ className?: string;
10
+ };
11
+ /**
12
+ * A screen to show the product in: a rounded card with a bezel, and the media inset on a smaller radius, so a
13
+ * recording's edges are never cropped by the card's corners. With `title`, a window bar like the code windows'.
14
+ */
15
+ export declare const MediaFrame: React.FC<Props>;
16
+ export {};
17
+ //# sourceMappingURL=MediaFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaFrame.d.ts","sourceRoot":"","sources":["../../../src/components/MediaFrame/MediaFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,KAAK,GAAG;IACX,8EAA8E;IAC9E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+GAA+G;IAC/G,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,6FAA6F;IAC7F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkCtC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ // The frame's corner and its inset decide the media's corner: an inner radius of outer minus inset keeps the two
4
+ // curves parallel. 22px outside, 12px of bezel, 10px on the media, small enough to leave a recording's corners alone.
5
+ const OUTER_RADIUS = "rounded-[22px]";
6
+ const INSET = "p-3";
7
+ const INNER_RADIUS = "rounded-[10px]";
8
+ /**
9
+ * A screen to show the product in: a rounded card with a bezel, and the media inset on a smaller radius, so a
10
+ * recording's edges are never cropped by the card's corners. With `title`, a window bar like the code windows'.
11
+ */
12
+ export const MediaFrame = (props) => {
13
+ const { children, title, aspectRatio, className } = props;
14
+ return (_jsxs("div", { className: cn("bg-card cui-shadow-object w-full border", OUTER_RADIUS, className), children: [title !== undefined ? (_jsxs("div", { className: "flex items-center gap-1.5 px-4 pt-3", children: [_jsx("i", { className: "bg-line size-2.5 rounded-full" }), _jsx("i", { className: "bg-line size-2.5 rounded-full" }), _jsx("i", { className: "bg-line size-2.5 rounded-full" }), _jsx("span", { className: "text-muted-foreground ml-2 truncate font-mono text-xs", children: title })] })) : null, _jsx("div", { className: INSET, children: _jsx("div", { className: cn("bg-background relative w-full overflow-hidden border", INNER_RADIUS), style: aspectRatio !== undefined ? { aspectRatio } : undefined, children: children }) })] }));
15
+ };
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ type Props = {
3
+ /** Rendered markdown or MDX, or hand-written long-form markup. */
4
+ children: React.ReactNode;
5
+ /** `md` for an article or a manifesto, `sm` for dense reference text such as a contract. */
6
+ size?: "sm" | "md";
7
+ /** Holds the column to a readable measure. Off when a parent already sets the width. */
8
+ isMeasured?: boolean;
9
+ /** The element the text sits in: `article` when the page is the document. */
10
+ as?: "div" | "article" | "section";
11
+ id?: string;
12
+ className?: string;
13
+ };
14
+ /**
15
+ * Long-form text: headings, paragraphs, lists, links, quotes, code, tables and rules inside it take the kit's type and
16
+ * tokens, readable on dark and light. Wrap rendered markdown or MDX in it and leave the source as it is.
17
+ *
18
+ * The styles are `.cui-prose` rules in `styles.css`, set on descendants. Put `cui-not-prose` on anything inside that
19
+ * should keep its own look, such as a figure or a button in the middle of the text.
20
+ */
21
+ export declare const Prose: React.FC<Props>;
22
+ export {};
23
+ //# sourceMappingURL=Prose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../src/components/Prose/Prose.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,KAAK,GAAG;IACX,kEAAkE;IAClE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4FAA4F;IAC5F,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,wFAAwF;IACxF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6EAA6E;IAC7E,EAAE,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwBjC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ /**
4
+ * Long-form text: headings, paragraphs, lists, links, quotes, code, tables and rules inside it take the kit's type and
5
+ * tokens, readable on dark and light. Wrap rendered markdown or MDX in it and leave the source as it is.
6
+ *
7
+ * The styles are `.cui-prose` rules in `styles.css`, set on descendants. Put `cui-not-prose` on anything inside that
8
+ * should keep its own look, such as a figure or a button in the middle of the text.
9
+ */
10
+ export const Prose = (props) => {
11
+ const { children, size = "md", isMeasured = true, as: Tag = "div", id, className, } = props;
12
+ return (_jsx(Tag, { id: id, "data-size": size, className: cn("cui-prose",
13
+ // in em, not ch: Inter's "0" is wide, so 68ch ran past the narrow container and never held the line
14
+ isMeasured === true ? "max-w-[38em]" : undefined, className), children: children }));
15
+ };
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ type Props = {
3
+ /** Words, or words with one phrase in `Highlight`. */
4
+ title: React.ReactNode;
5
+ description?: React.ReactNode;
6
+ /** A picture across the top: a cover image, a diagram. */
7
+ media?: React.ReactNode;
8
+ /** A small tile before the title: a logo, a monogram, an icon. */
9
+ icon?: React.ReactNode;
10
+ /** A short line above the title, such as a date or a category. */
11
+ meta?: React.ReactNode;
12
+ /** Under the description: badges, an author, a read time. */
13
+ footer?: React.ReactNode;
14
+ href?: string;
15
+ target?: "_blank";
16
+ /** The title's tag, so a list keeps the page's heading outline: under an `h4`, its cards are `h5`. */
17
+ titleAs?: "h2" | "h3" | "h4" | "h5" | "h6" | "p";
18
+ /** The app's link, such as `next/link`. A plain `<a>` by default. */
19
+ linkComponent?: React.ElementType;
20
+ /**
21
+ * `bento` follows the site's bento card: a 22px corner, more padding, a
22
+ * larger title, and the media bleeding to the card's top edge rather than
23
+ * sitting in a second bordered box. `list` is the compact default.
24
+ */
25
+ variant?: "list" | "bento";
26
+ className?: string;
27
+ };
28
+ /** A card for one item of a list: a story, a template, an article, an integration. With `href` the whole card is the link. */
29
+ export declare const ResourceCard: React.FC<Props>;
30
+ export {};
31
+ //# sourceMappingURL=ResourceCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceCard.d.ts","sourceRoot":"","sources":["../../../src/components/ResourceCard/ResourceCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,KAAK,KAAK,GAAG;IACX,sDAAsD;IACtD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,0DAA0D;IAC1D,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,kEAAkE;IAClE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,kEAAkE;IAClE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,sGAAsG;IACtG,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC;IACjD,qEAAqE;IACrE,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAClC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,8HAA8H;AAC9H,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkHxC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { ArrowUpRight } from "lucide-react";
3
+ import { cn } from "../../lib/utils";
4
+ import { GlowCard } from "../GlowCard/GlowCard";
5
+ /** A card for one item of a list: a story, a template, an article, an integration. With `href` the whole card is the link. */
6
+ export const ResourceCard = (props) => {
7
+ const { title, description, media, icon, meta, footer, href, target, titleAs: Title = "h3", linkComponent: Link = "a", variant = "list", className, } = props;
8
+ const isLink = href !== undefined;
9
+ const isBento = variant === "bento";
10
+ const body = (_jsxs(_Fragment, { children: [media !== undefined ? (_jsx("div", { className: isBento === true
11
+ ? "-mx-6 -mt-6 overflow-hidden border-b"
12
+ : "overflow-hidden rounded-xl border", children: media })) : null, _jsxs("div", { className: "flex flex-1 flex-col gap-2.5", children: [_jsxs("div", { className: "flex items-start gap-3", children: [_jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-2.5", children: [meta !== undefined ? (_jsx("div", { className: "text-muted-foreground font-mono text-xs", children: meta })) : null, _jsxs("div", { className: "flex items-center gap-3", children: [icon, _jsx(Title, { className: cn("min-w-0 flex-1 font-semibold", isBento === true
13
+ ? "text-[17px] leading-snug tracking-tight"
14
+ : "text-[15px] leading-snug"), children: title })] })] }), isLink === true ? (_jsx(ArrowUpRight, { className: "text-muted-foreground group-hover:text-brand mt-px size-4 shrink-0 opacity-0 transition-opacity duration-150 group-hover:opacity-100" })) : null] }), description !== undefined ? (_jsx("p", { className: cn("text-muted-foreground", isBento === true
15
+ ? "line-clamp-2 min-h-12 text-[15px] leading-6"
16
+ : "line-clamp-3 text-sm leading-relaxed"), children: description })) : null, footer !== undefined ? (_jsx("div", { className: "mt-auto flex flex-wrap items-center gap-2 pt-1.5", children: footer })) : null] })] }));
17
+ return (_jsx(GlowCard, { isInteractive: isLink, className: cn("h-full", isBento === true && "overflow-hidden rounded-[22px]", className), children: isLink === true ? (_jsx(Link, { href: href, target: target, rel: target === "_blank" ? "noreferrer" : undefined, className: cn("group flex h-full flex-col", isBento === true
18
+ ? "gap-5 rounded-[22px] p-6"
19
+ : "gap-4 rounded-2xl p-5"), children: body })) : (_jsx("div", { className: cn("flex h-full flex-col", isBento === true ? "gap-5 p-6" : "gap-4 p-5"), children: body })) }));
20
+ };
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ /** Milliseconds before it starts. */
5
+ delayMs?: number;
6
+ className?: string;
7
+ };
8
+ /**
9
+ * Rises out of a soft blur as it scrolls into view, once. Appears without moving under reduced motion, and is simply
10
+ * shown when scripts are off (`styles.css` overrides the hidden start for `[data-reveal]`).
11
+ */
12
+ export declare const Reveal: React.FC<Props>;
13
+ export {};
14
+ //# sourceMappingURL=Reveal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reveal.d.ts","sourceRoot":"","sources":["../../../src/components/Reveal/Reveal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4BlC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { motion } from "motion/react";
4
+ import { useReducedMotion } from "../../hooks/use-reduced-motion";
5
+ const HIDDEN = { opacity: 0, y: 32, filter: "blur(8px)" };
6
+ const SHOWN = { opacity: 1, y: 0, filter: "blur(0px)" };
7
+ /**
8
+ * Rises out of a soft blur as it scrolls into view, once. Appears without moving under reduced motion, and is simply
9
+ * shown when scripts are off (`styles.css` overrides the hidden start for `[data-reveal]`).
10
+ */
11
+ export const Reveal = (props) => {
12
+ const { children, delayMs = 0, className } = props;
13
+ const isReducedMotion = useReducedMotion();
14
+ return (_jsx(motion.div, { "data-reveal": true, className: className, initial: HIDDEN, whileInView: SHOWN,
15
+ // under reduced motion it is shown outright, not left waiting for a scroll
16
+ animate: isReducedMotion === true ? SHOWN : undefined,
17
+ // any visible pixel, so neither content on screen near the bottom nor a block taller than the window stays hidden
18
+ viewport: { once: true, amount: "some" }, transition: isReducedMotion === true
19
+ ? { duration: 0 }
20
+ : {
21
+ type: "spring",
22
+ stiffness: 140,
23
+ damping: 20,
24
+ delay: delayMs / 1000,
25
+ }, children: children }));
26
+ };
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { TerminalLine } from "./types";
3
+ type Props = {
4
+ lines: TerminalLine[];
5
+ title?: string;
6
+ className?: string;
7
+ };
8
+ /** Types each command at a human pace, prints results at once, then starts over. Holds still under reduced motion. */
9
+ export declare const Terminal: React.FC<Props>;
10
+ export {};
11
+ //# sourceMappingURL=Terminal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Terminal.d.ts","sourceRoot":"","sources":["../../../src/components/Terminal/Terminal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAM5C,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,sHAAsH;AACtH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8FpC,CAAC"}
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useInView } from "motion/react";
4
+ import React from "react";
5
+ import { useReducedMotion } from "../../hooks/use-reduced-motion";
6
+ import { cn } from "../../lib/utils";
7
+ const RESTART_DELAY_MS = 3200;
8
+ const COMMAND_PAUSE_MS = 420;
9
+ const OUTPUT_PAUSE_MS = 260;
10
+ /** Types each command at a human pace, prints results at once, then starts over. Holds still under reduced motion. */
11
+ export const Terminal = (props) => {
12
+ const { lines, title = "zsh", className } = props;
13
+ const ref = React.useRef(null);
14
+ const isInView = useInView(ref, { once: true });
15
+ const isReducedMotion = useReducedMotion();
16
+ const [step, setStep] = React.useState(0);
17
+ const [typed, setTyped] = React.useState(0);
18
+ // derived rather than stored, so turning reduced motion off resumes the loop where it was
19
+ const shown = isReducedMotion === true ? lines.length : step;
20
+ // read through a ref so a parent passing a new array each render (`lines={[...]}`) does not restart every timer
21
+ const linesRef = React.useRef(lines);
22
+ React.useEffect(() => {
23
+ linesRef.current = lines;
24
+ }, [lines]);
25
+ React.useEffect(() => {
26
+ if (isInView === false || isReducedMotion === true) {
27
+ return;
28
+ }
29
+ const timer = setTimeout(...nextTick(linesRef.current[shown], typed, {
30
+ onRestart: () => {
31
+ setStep(0);
32
+ setTyped(0);
33
+ },
34
+ onType: () => setTyped((count) => count + 1),
35
+ onNextLine: () => {
36
+ setStep((count) => count + 1);
37
+ setTyped(0);
38
+ },
39
+ }));
40
+ return () => clearTimeout(timer);
41
+ }, [isInView, isReducedMotion, shown, typed]);
42
+ return (_jsxs("div", { ref: ref, className: cn("cui-terminal bg-card cui-shadow-object overflow-hidden rounded-[22px] border", className), children: [_jsxs("div", { className: "flex items-center gap-1.5 border-b px-3 py-2.5", children: [_jsx("i", { className: "bg-line size-2.5 rounded-full" }), _jsx("i", { className: "bg-line size-2.5 rounded-full" }), _jsx("i", { className: "bg-line size-2.5 rounded-full" }), _jsx("span", { className: "text-muted-foreground ml-2 font-mono text-xs", children: title })] }), _jsx("pre", { className: "min-h-[188px] overflow-x-auto px-5 py-4 font-mono text-[13.5px] leading-7", children: lines.map((line, index) => {
43
+ const isPending = index > shown;
44
+ const isTyping = index === shown;
45
+ if ("command" in line) {
46
+ const typedCommand = isTyping === true ? line.command.slice(0, typed) : line.command;
47
+ return (_jsxs("div", { "data-pending": isPending === true ? true : undefined, children: [_jsx("span", { className: "text-brand-text", children: "$ " }), _jsx("span", { className: cn(isTyping === true && "cui-caret"), children: typedCommand }), isTyping === true ? (_jsx("span", { "data-pending": true, children: line.command.slice(typed) })) : null] }, index));
48
+ }
49
+ // output prints the moment its step comes up; its `wait` is the pause that follows
50
+ return (_jsx("div", { "data-pending": isPending === true ? true : undefined, children: line.output }, index));
51
+ }) })] }));
52
+ };
53
+ /** What happens next and after how long: restart after the last line, type one more character, or move on. */
54
+ const nextTick = (line, typed, handlers) => {
55
+ if (line === undefined) {
56
+ return [handlers.onRestart, RESTART_DELAY_MS];
57
+ }
58
+ if ("command" in line && typed < line.command.length) {
59
+ // a human typing speed, uneven on purpose
60
+ return [handlers.onType, 28 + Math.random() * 40];
61
+ }
62
+ if (line.wait !== undefined) {
63
+ return [handlers.onNextLine, line.wait];
64
+ }
65
+ if ("command" in line) {
66
+ return [handlers.onNextLine, COMMAND_PAUSE_MS];
67
+ }
68
+ return [handlers.onNextLine, OUTPUT_PAUSE_MS];
69
+ };
@@ -0,0 +1,3 @@
1
+ export { Terminal } from "./Terminal";
2
+ export type { TerminalLine } from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Terminal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ export { Terminal } from "./Terminal";
@@ -0,0 +1,10 @@
1
+ import type React from "react";
2
+ /** A command typed by the terminal, or output printed at once. `wait` is the pause after it, in milliseconds. */
3
+ export type TerminalLine = {
4
+ command: string;
5
+ wait?: number;
6
+ } | {
7
+ output: React.ReactNode;
8
+ wait?: number;
9
+ };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Terminal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iHAAiH;AACjH,MAAM,MAAM,YAAY,GACpB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { type Theme } from "./context";
3
+ type Props = {
4
+ theme: Theme;
5
+ children: React.ReactNode;
6
+ className?: string;
7
+ };
8
+ /**
9
+ * A section in the other theme: a light band on a dark page, or the reverse. Unlike a bare `.light` class, it carries
10
+ * its theme into menus, tooltips and dialogs opened inside it, which render at the end of `body`, outside the section.
11
+ */
12
+ export declare const ThemeIsland: React.FC<Props>;
13
+ type PortalThemeProps = {
14
+ children?: React.ReactNode;
15
+ };
16
+ /**
17
+ * Wraps what a primitive portals to `body` in the theme of the island it was opened from. `display: contents` keeps
18
+ * the wrapper out of layout, so positioning and stacking are untouched while tokens and `dark:` still follow it.
19
+ */
20
+ export declare const PortalTheme: React.FC<PortalThemeProps>;
21
+ export {};
22
+ //# sourceMappingURL=ThemeIsland.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeIsland.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeIsland/ThemeIsland.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,KAAK,EAAsB,MAAM,WAAW,CAAC;AAE3D,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAUvC,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAalD,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import React from "react";
4
+ import { cn } from "../../lib/utils";
5
+ import { ThemeIslandContext } from "./context";
6
+ /**
7
+ * A section in the other theme: a light band on a dark page, or the reverse. Unlike a bare `.light` class, it carries
8
+ * its theme into menus, tooltips and dialogs opened inside it, which render at the end of `body`, outside the section.
9
+ */
10
+ export const ThemeIsland = (props) => {
11
+ const { theme, children, className } = props;
12
+ return (_jsx("div", { className: cn(theme, className), children: _jsx(ThemeIslandContext.Provider, { value: theme, children: children }) }));
13
+ };
14
+ /**
15
+ * Wraps what a primitive portals to `body` in the theme of the island it was opened from. `display: contents` keeps
16
+ * the wrapper out of layout, so positioning and stacking are untouched while tokens and `dark:` still follow it.
17
+ */
18
+ export const PortalTheme = (props) => {
19
+ const { children } = props;
20
+ const theme = React.useContext(ThemeIslandContext);
21
+ if (theme === undefined) {
22
+ return children;
23
+ }
24
+ return (_jsx("div", { className: theme, style: { display: "contents" }, children: children }));
25
+ };
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export type Theme = "light" | "dark";
3
+ /** The theme of the nearest `ThemeIsland`, or undefined outside one. */
4
+ export declare const ThemeIslandContext: React.Context<Theme | undefined>;
5
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeIsland/context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,kCAE9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ import React from "react";
3
+ /** The theme of the nearest `ThemeIsland`, or undefined outside one. */
4
+ export const ThemeIslandContext = React.createContext(undefined);
@@ -0,0 +1,3 @@
1
+ export type { Theme } from "./context";
2
+ export { PortalTheme, ThemeIsland } from "./ThemeIsland";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeIsland/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ export { PortalTheme, ThemeIsland } from "./ThemeIsland";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The type scale. Sizes are measured against the page container (`cqi`), not the viewport, so a page framed inside
3
+ * another (a kit preview, an embed) reflows like a browser of that width. They only work inside a `Page`.
4
+ */
5
+ export declare const TYPE: {
6
+ display1: string;
7
+ display2: string;
8
+ display3: string;
9
+ lead: string;
10
+ body: string;
11
+ };
12
+ //# sourceMappingURL=type-scale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-scale.d.ts","sourceRoot":"","sources":["../../src/foundations/type-scale.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;CAShB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The type scale. Sizes are measured against the page container (`cqi`), not the viewport, so a page framed inside
3
+ * another (a kit preview, an embed) reflows like a browser of that width. They only work inside a `Page`.
4
+ */
5
+ export const TYPE = {
6
+ display1: "text-[clamp(40px,6.6cqi,76px)] leading-none font-semibold tracking-[-0.04em] text-balance",
7
+ display2: "text-[clamp(30px,4.2cqi,48px)] leading-[1.06] font-semibold tracking-[-0.03em] text-balance",
8
+ display3: "text-[clamp(19px,2.1cqi,22px)] leading-tight font-semibold tracking-[-0.02em] text-balance",
9
+ lead: "max-w-[60ch] text-[clamp(16px,1.9cqi,19px)] leading-relaxed text-pretty text-muted-foreground",
10
+ body: "max-w-[62ch] text-base leading-relaxed text-muted-foreground",
11
+ };
@@ -0,0 +1,2 @@
1
+ export declare function useIsMobile(): boolean;
2
+ //# sourceMappingURL=use-mobile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,YAgB1B"}
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ const MOBILE_BREAKPOINT = 768;
3
+ export function useIsMobile() {
4
+ const [isMobile, setIsMobile] = React.useState(undefined);
5
+ React.useEffect(() => {
6
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
7
+ const onChange = () => {
8
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
9
+ };
10
+ mql.addEventListener("change", onChange);
11
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
12
+ return () => mql.removeEventListener("change", onChange);
13
+ }, []);
14
+ return !!isMobile;
15
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Whether the visitor asked for reduced motion. False on the server and during hydration, so the first client render
3
+ * matches the server HTML; React re-renders with the real value right after.
4
+ */
5
+ export declare const useReducedMotion: () => boolean;
6
+ //# sourceMappingURL=use-reduced-motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-reduced-motion.d.ts","sourceRoot":"","sources":["../../src/hooks/use-reduced-motion.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,OAMnC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ const QUERY = "(prefers-reduced-motion: reduce)";
3
+ /**
4
+ * Whether the visitor asked for reduced motion. False on the server and during hydration, so the first client render
5
+ * matches the server HTML; React re-renders with the real value right after.
6
+ */
7
+ export const useReducedMotion = () => {
8
+ return React.useSyncExternalStore(subscribe, () => window.matchMedia(QUERY).matches, () => false);
9
+ };
10
+ const subscribe = (onChange) => {
11
+ const mediaQueryList = window.matchMedia(QUERY);
12
+ mediaQueryList.addEventListener("change", onChange);
13
+ return () => mediaQueryList.removeEventListener("change", onChange);
14
+ };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ isNarrow?: boolean;
6
+ };
7
+ /** The content column: 1200px, or 760px when `isNarrow`. */
8
+ export declare const Container: React.FC<Props>;
9
+ export {};
10
+ //# sourceMappingURL=Container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/layout/Container/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAcrC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ /** The content column: 1200px, or 760px when `isNarrow`. */
4
+ export const Container = (props) => {
5
+ const { children, className, isNarrow = false } = props;
6
+ return (_jsx("div", { className: cn("mx-auto w-full px-[clamp(16px,4cqi,32px)]", isNarrow === true ? "max-w-[760px]" : "max-w-[1200px]", className), children: children }));
7
+ };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ };
6
+ /** The root of a page: a size container, so every section below can ask how wide the page is. */
7
+ export declare const Page: React.FC<Props>;
8
+ export {};
9
+ //# sourceMappingURL=Page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../src/layout/Page/Page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAahC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ /** The root of a page: a size container, so every section below can ask how wide the page is. */
4
+ export const Page = (props) => {
5
+ const { children, className } = props;
6
+ return (_jsx("div", { className: cn("cui-page bg-background text-foreground @container/page relative", className), children: children }));
7
+ };
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ id?: string;
6
+ /** For a band between two sections, such as a logo strip. */
7
+ isTight?: boolean;
8
+ };
9
+ /** A page section with the house vertical rhythm. */
10
+ export declare const Section: React.FC<Props>;
11
+ export {};
12
+ //# sourceMappingURL=Section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/layout/Section/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAiBnC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../lib/utils";
3
+ /** A page section with the house vertical rhythm. */
4
+ export const Section = (props) => {
5
+ const { children, className, id, isTight = false } = props;
6
+ return (_jsx("section", { id: id, className: cn("relative scroll-mt-20", isTight === true
7
+ ? "py-[clamp(24px,3cqi,40px)]"
8
+ : "py-[clamp(44px,6cqi,80px)]", className), children: children }));
9
+ };
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ type Props = {
3
+ /** The anchor a link points at, set on the `<h2>` itself. */
4
+ id?: string;
5
+ /** Words, shown as the default eyebrow, or an `<Eyebrow>` with another variant. */
6
+ eyebrow?: React.ReactNode;
7
+ title: React.ReactNode;
8
+ description?: React.ReactNode;
9
+ isCentered?: boolean;
10
+ className?: string;
11
+ };
12
+ /**
13
+ * A section heading: eyebrow, title, description. The `<h2>` is bare, its type on a wrapper, so a reader that takes
14
+ * headings by tag (an outline check, a crawler without CSS) gets `<h2 id="...">Title</h2>` and nothing else.
15
+ */
16
+ export declare const SectionHeading: React.FC<Props>;
17
+ export {};
18
+ //# sourceMappingURL=SectionHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeading.d.ts","sourceRoot":"","sources":["../../../src/layout/SectionHeading/SectionHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,KAAK,GAAG;IACX,6DAA6D;IAC7D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mFAAmF;IACnF,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmC1C,CAAC"}