kineto 0.1.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 (277) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +279 -0
  3. package/base.css +46 -0
  4. package/dist/accordion.d.ts +13 -0
  5. package/dist/accordion.js +161 -0
  6. package/dist/accordion.js.map +1 -0
  7. package/dist/alert.d.ts +20 -0
  8. package/dist/alert.js +137 -0
  9. package/dist/alert.js.map +1 -0
  10. package/dist/animated-number.d.ts +16 -0
  11. package/dist/animated-number.js +40 -0
  12. package/dist/animated-number.js.map +1 -0
  13. package/dist/area-chart.d.ts +16 -0
  14. package/dist/area-chart.js +138 -0
  15. package/dist/area-chart.js.map +1 -0
  16. package/dist/aspect-ratio.d.ts +6 -0
  17. package/dist/aspect-ratio.js +9 -0
  18. package/dist/aspect-ratio.js.map +1 -0
  19. package/dist/avatar.d.ts +18 -0
  20. package/dist/avatar.js +202 -0
  21. package/dist/avatar.js.map +1 -0
  22. package/dist/badge.d.ts +14 -0
  23. package/dist/badge.js +54 -0
  24. package/dist/badge.js.map +1 -0
  25. package/dist/bar-chart.d.ts +19 -0
  26. package/dist/bar-chart.js +139 -0
  27. package/dist/bar-chart.js.map +1 -0
  28. package/dist/bento-grid.d.ts +24 -0
  29. package/dist/bento-grid.js +129 -0
  30. package/dist/bento-grid.js.map +1 -0
  31. package/dist/breadcrumbs.d.ts +13 -0
  32. package/dist/breadcrumbs.js +50 -0
  33. package/dist/breadcrumbs.js.map +1 -0
  34. package/dist/button-group.d.ts +9 -0
  35. package/dist/button-group.js +29 -0
  36. package/dist/button-group.js.map +1 -0
  37. package/dist/button.d.ts +16 -0
  38. package/dist/button.js +131 -0
  39. package/dist/button.js.map +1 -0
  40. package/dist/calendar.d.ts +11 -0
  41. package/dist/calendar.js +185 -0
  42. package/dist/calendar.js.map +1 -0
  43. package/dist/card.d.ts +15 -0
  44. package/dist/card.js +131 -0
  45. package/dist/card.js.map +1 -0
  46. package/dist/carousel.d.ts +14 -0
  47. package/dist/carousel.js +143 -0
  48. package/dist/carousel.js.map +1 -0
  49. package/dist/chart-tooltip.d.ts +18 -0
  50. package/dist/chart-tooltip.js +30 -0
  51. package/dist/chart-tooltip.js.map +1 -0
  52. package/dist/checkbox.d.ts +6 -0
  53. package/dist/checkbox.js +88 -0
  54. package/dist/checkbox.js.map +1 -0
  55. package/dist/cn.d.ts +10 -0
  56. package/dist/cn.js +10 -0
  57. package/dist/cn.js.map +1 -0
  58. package/dist/code-block.d.ts +25 -0
  59. package/dist/code-block.js +155 -0
  60. package/dist/code-block.js.map +1 -0
  61. package/dist/collapsible.d.ts +12 -0
  62. package/dist/collapsible.js +125 -0
  63. package/dist/collapsible.js.map +1 -0
  64. package/dist/color-picker.d.ts +12 -0
  65. package/dist/color-picker.js +180 -0
  66. package/dist/color-picker.js.map +1 -0
  67. package/dist/command.d.ts +88 -0
  68. package/dist/command.js +277 -0
  69. package/dist/command.js.map +1 -0
  70. package/dist/confetti.d.ts +25 -0
  71. package/dist/confetti.js +109 -0
  72. package/dist/confetti.js.map +1 -0
  73. package/dist/container.d.ts +19 -0
  74. package/dist/container.js +41 -0
  75. package/dist/container.js.map +1 -0
  76. package/dist/content-divider.d.ts +7 -0
  77. package/dist/content-divider.js +35 -0
  78. package/dist/content-divider.js.map +1 -0
  79. package/dist/context-menu.d.ts +30 -0
  80. package/dist/context-menu.js +213 -0
  81. package/dist/context-menu.js.map +1 -0
  82. package/dist/copy-button.d.ts +17 -0
  83. package/dist/copy-button.js +107 -0
  84. package/dist/copy-button.js.map +1 -0
  85. package/dist/dashboard-showcase.d.ts +7 -0
  86. package/dist/dashboard-showcase.js +2560 -0
  87. package/dist/dashboard-showcase.js.map +1 -0
  88. package/dist/data-table.d.ts +130 -0
  89. package/dist/data-table.js +1620 -0
  90. package/dist/data-table.js.map +1 -0
  91. package/dist/date-picker.d.ts +12 -0
  92. package/dist/date-picker.js +261 -0
  93. package/dist/date-picker.js.map +1 -0
  94. package/dist/dialog.d.ts +23 -0
  95. package/dist/dialog.js +188 -0
  96. package/dist/dialog.js.map +1 -0
  97. package/dist/dock.d.ts +17 -0
  98. package/dist/dock.js +77 -0
  99. package/dist/dock.js.map +1 -0
  100. package/dist/donut-chart.d.ts +18 -0
  101. package/dist/donut-chart.js +92 -0
  102. package/dist/donut-chart.js.map +1 -0
  103. package/dist/drawer.d.ts +26 -0
  104. package/dist/drawer.js +166 -0
  105. package/dist/drawer.js.map +1 -0
  106. package/dist/dropdown-menu.d.ts +22 -0
  107. package/dist/dropdown-menu.js +163 -0
  108. package/dist/dropdown-menu.js.map +1 -0
  109. package/dist/empty-state.d.ts +13 -0
  110. package/dist/empty-state.js +149 -0
  111. package/dist/empty-state.js.map +1 -0
  112. package/dist/featured-icon.d.ts +16 -0
  113. package/dist/featured-icon.js +56 -0
  114. package/dist/featured-icon.js.map +1 -0
  115. package/dist/file-uploader.d.ts +11 -0
  116. package/dist/file-uploader.js +212 -0
  117. package/dist/file-uploader.js.map +1 -0
  118. package/dist/flex.d.ts +30 -0
  119. package/dist/flex.js +89 -0
  120. package/dist/flex.js.map +1 -0
  121. package/dist/form.d.ts +28 -0
  122. package/dist/form.js +139 -0
  123. package/dist/form.js.map +1 -0
  124. package/dist/format-time.d.ts +18 -0
  125. package/dist/format-time.js +54 -0
  126. package/dist/format-time.js.map +1 -0
  127. package/dist/gap.d.ts +9 -0
  128. package/dist/gap.js +34 -0
  129. package/dist/gap.js.map +1 -0
  130. package/dist/gradient-border.d.ts +15 -0
  131. package/dist/gradient-border.js +79 -0
  132. package/dist/gradient-border.js.map +1 -0
  133. package/dist/gradient-text.d.ts +12 -0
  134. package/dist/gradient-text.js +43 -0
  135. package/dist/gradient-text.js.map +1 -0
  136. package/dist/grid.d.ts +25 -0
  137. package/dist/grid.js +77 -0
  138. package/dist/grid.js.map +1 -0
  139. package/dist/hover-card.d.ts +8 -0
  140. package/dist/hover-card.js +93 -0
  141. package/dist/hover-card.js.map +1 -0
  142. package/dist/index.d.ts +93 -0
  143. package/dist/index.js +93 -0
  144. package/dist/inline-edit.d.ts +20 -0
  145. package/dist/inline-edit.js +107 -0
  146. package/dist/inline-edit.js.map +1 -0
  147. package/dist/input.d.ts +6 -0
  148. package/dist/input.js +31 -0
  149. package/dist/input.js.map +1 -0
  150. package/dist/kbd.d.ts +16 -0
  151. package/dist/kbd.js +35 -0
  152. package/dist/kbd.js.map +1 -0
  153. package/dist/label.d.ts +6 -0
  154. package/dist/label.js +31 -0
  155. package/dist/label.js.map +1 -0
  156. package/dist/line-chart.d.ts +17 -0
  157. package/dist/line-chart.js +120 -0
  158. package/dist/line-chart.js.map +1 -0
  159. package/dist/logo-cloud.d.ts +14 -0
  160. package/dist/logo-cloud.js +106 -0
  161. package/dist/logo-cloud.js.map +1 -0
  162. package/dist/masonry.d.ts +15 -0
  163. package/dist/masonry.js +63 -0
  164. package/dist/masonry.js.map +1 -0
  165. package/dist/menubar.d.ts +31 -0
  166. package/dist/menubar.js +250 -0
  167. package/dist/menubar.js.map +1 -0
  168. package/dist/motion-presets.d.ts +70 -0
  169. package/dist/motion-presets.js +71 -0
  170. package/dist/motion-presets.js.map +1 -0
  171. package/dist/navigation-menu.d.ts +15 -0
  172. package/dist/navigation-menu.js +181 -0
  173. package/dist/navigation-menu.js.map +1 -0
  174. package/dist/notification-center.d.ts +35 -0
  175. package/dist/notification-center.js +384 -0
  176. package/dist/notification-center.js.map +1 -0
  177. package/dist/page-header.d.ts +13 -0
  178. package/dist/page-header.js +37 -0
  179. package/dist/page-header.js.map +1 -0
  180. package/dist/pagination.d.ts +13 -0
  181. package/dist/pagination.js +103 -0
  182. package/dist/pagination.js.map +1 -0
  183. package/dist/popover.d.ts +9 -0
  184. package/dist/popover.js +93 -0
  185. package/dist/popover.js.map +1 -0
  186. package/dist/progress-steps.d.ts +17 -0
  187. package/dist/progress-steps.js +158 -0
  188. package/dist/progress-steps.js.map +1 -0
  189. package/dist/progress.d.ts +13 -0
  190. package/dist/progress.js +98 -0
  191. package/dist/progress.js.map +1 -0
  192. package/dist/radio-group.d.ts +7 -0
  193. package/dist/radio-group.js +94 -0
  194. package/dist/radio-group.js.map +1 -0
  195. package/dist/rating.d.ts +18 -0
  196. package/dist/rating.js +122 -0
  197. package/dist/rating.js.map +1 -0
  198. package/dist/relative-time.d.ts +19 -0
  199. package/dist/relative-time.js +187 -0
  200. package/dist/relative-time.js.map +1 -0
  201. package/dist/resizable.d.ts +27 -0
  202. package/dist/resizable.js +50 -0
  203. package/dist/resizable.js.map +1 -0
  204. package/dist/scroll-area.d.ts +20 -0
  205. package/dist/scroll-area.js +94 -0
  206. package/dist/scroll-area.js.map +1 -0
  207. package/dist/segmented-control.d.ts +16 -0
  208. package/dist/segmented-control.js +139 -0
  209. package/dist/segmented-control.js.map +1 -0
  210. package/dist/select.d.ts +13 -0
  211. package/dist/select.js +153 -0
  212. package/dist/select.js.map +1 -0
  213. package/dist/separator.d.ts +6 -0
  214. package/dist/separator.js +36 -0
  215. package/dist/separator.js.map +1 -0
  216. package/dist/sidebar.d.ts +24 -0
  217. package/dist/sidebar.js +150 -0
  218. package/dist/sidebar.js.map +1 -0
  219. package/dist/skeleton.d.ts +6 -0
  220. package/dist/skeleton.js +42 -0
  221. package/dist/skeleton.js.map +1 -0
  222. package/dist/slider.d.ts +6 -0
  223. package/dist/slider.js +44 -0
  224. package/dist/slider.js.map +1 -0
  225. package/dist/social-button.d.ts +14 -0
  226. package/dist/social-button.js +203 -0
  227. package/dist/social-button.js.map +1 -0
  228. package/dist/spacer.d.ts +19 -0
  229. package/dist/spacer.js +52 -0
  230. package/dist/spacer.js.map +1 -0
  231. package/dist/spinner.d.ts +15 -0
  232. package/dist/spinner.js +48 -0
  233. package/dist/spinner.js.map +1 -0
  234. package/dist/stack.d.ts +27 -0
  235. package/dist/stack.js +77 -0
  236. package/dist/stack.js.map +1 -0
  237. package/dist/stat-card.d.ts +26 -0
  238. package/dist/stat-card.js +198 -0
  239. package/dist/stat-card.js.map +1 -0
  240. package/dist/status-dot.d.ts +26 -0
  241. package/dist/status-dot.js +68 -0
  242. package/dist/status-dot.js.map +1 -0
  243. package/dist/switch.d.ts +6 -0
  244. package/dist/switch.js +108 -0
  245. package/dist/switch.js.map +1 -0
  246. package/dist/tabs.d.ts +13 -0
  247. package/dist/tabs.js +167 -0
  248. package/dist/tabs.js.map +1 -0
  249. package/dist/tag.d.ts +16 -0
  250. package/dist/tag.js +53 -0
  251. package/dist/tag.js.map +1 -0
  252. package/dist/textarea.d.ts +6 -0
  253. package/dist/textarea.js +30 -0
  254. package/dist/textarea.js.map +1 -0
  255. package/dist/theme-switcher.d.ts +16 -0
  256. package/dist/theme-switcher.js +170 -0
  257. package/dist/theme-switcher.js.map +1 -0
  258. package/dist/toast.d.ts +20 -0
  259. package/dist/toast.js +162 -0
  260. package/dist/toast.js.map +1 -0
  261. package/dist/tooltip.d.ts +14 -0
  262. package/dist/tooltip.js +98 -0
  263. package/dist/tooltip.js.map +1 -0
  264. package/dist/tree-view.d.ts +16 -0
  265. package/dist/tree-view.js +123 -0
  266. package/dist/tree-view.js.map +1 -0
  267. package/dist/truncate.d.ts +16 -0
  268. package/dist/truncate.js +151 -0
  269. package/dist/truncate.js.map +1 -0
  270. package/dist/use-reduced-motion.d.ts +15 -0
  271. package/dist/use-reduced-motion.js +11 -0
  272. package/dist/use-reduced-motion.js.map +1 -0
  273. package/dist/verification-code-input.d.ts +12 -0
  274. package/dist/verification-code-input.js +90 -0
  275. package/dist/verification-code-input.js.map +1 -0
  276. package/package.json +131 -0
  277. package/theme.css +343 -0
@@ -0,0 +1,18 @@
1
+ type TimeInput = Date | number | string;
2
+ /**
3
+ * Compact relative string: "just now", "5m ago", "2h ago", "3d ago", "2w ago", then an absolute
4
+ * short date for anything older. Future times read "in 5m". `now` is injectable for testing/SSR.
5
+ */
6
+ declare function formatRelativeTime(input: TimeInput, now?: TimeInput): string;
7
+ /** Short calendar date — "Jan 5", or "Jan 5, 2023" when the year differs from `now`. */
8
+ declare function formatAbsoluteDate(input: TimeInput, now?: TimeInput): string;
9
+ /** Full, unambiguous timestamp for the hover tooltip — e.g. "Jan 5, 2024, 3:42 PM". */
10
+ declare function formatAbsoluteTime(input: TimeInput): string;
11
+ /**
12
+ * How long (ms) until the relative string could meaningfully change — used by `RelativeTime` to
13
+ * schedule the next tick. Tighter near "now", lazier for older timestamps so we don't re-render
14
+ * a year-old date every few seconds.
15
+ */
16
+ declare function relativeUpdateInterval(input: TimeInput, now?: TimeInput): number;
17
+
18
+ export { type TimeInput, formatAbsoluteDate, formatAbsoluteTime, formatRelativeTime, relativeUpdateInterval };
@@ -0,0 +1,54 @@
1
+ // src/lib/format-time.ts
2
+ function toMs(input) {
3
+ if (input instanceof Date) return input.getTime();
4
+ if (typeof input === "number") return input;
5
+ return new Date(input).getTime();
6
+ }
7
+ var SEC = 1e3;
8
+ var MIN = 60 * SEC;
9
+ var HOUR = 60 * MIN;
10
+ var DAY = 24 * HOUR;
11
+ var WEEK = 7 * DAY;
12
+ function formatRelativeTime(input, now = Date.now()) {
13
+ const then = toMs(input);
14
+ const nowMs = toMs(now);
15
+ const diff = nowMs - then;
16
+ const past = diff >= 0;
17
+ const abs = Math.abs(diff);
18
+ if (abs < 45 * SEC) return "just now";
19
+ const unit = (n, u) => past ? `${n}${u} ago` : `in ${n}${u}`;
20
+ if (abs < HOUR) return unit(Math.max(1, Math.round(abs / MIN)), "m");
21
+ if (abs < DAY) return unit(Math.round(abs / HOUR), "h");
22
+ if (abs < WEEK) return unit(Math.round(abs / DAY), "d");
23
+ if (abs < 4 * WEEK) return unit(Math.round(abs / WEEK), "w");
24
+ return formatAbsoluteDate(then, nowMs);
25
+ }
26
+ function formatAbsoluteDate(input, now = Date.now()) {
27
+ const date = new Date(toMs(input));
28
+ const sameYear = new Date(toMs(now)).getFullYear() === date.getFullYear();
29
+ return new Intl.DateTimeFormat(void 0, {
30
+ month: "short",
31
+ day: "numeric",
32
+ ...sameYear ? {} : { year: "numeric" }
33
+ }).format(date);
34
+ }
35
+ function formatAbsoluteTime(input) {
36
+ return new Intl.DateTimeFormat(void 0, {
37
+ dateStyle: "medium",
38
+ timeStyle: "short"
39
+ }).format(new Date(toMs(input)));
40
+ }
41
+ function relativeUpdateInterval(input, now = Date.now()) {
42
+ const abs = Math.abs(toMs(now) - toMs(input));
43
+ if (abs < 45 * SEC) return 10 * SEC;
44
+ if (abs < HOUR) return 30 * SEC;
45
+ if (abs < DAY) return 5 * MIN;
46
+ return HOUR;
47
+ }
48
+ export {
49
+ formatAbsoluteDate,
50
+ formatAbsoluteTime,
51
+ formatRelativeTime,
52
+ relativeUpdateInterval
53
+ };
54
+ //# sourceMappingURL=format-time.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/format-time.ts"],"sourcesContent":["/* -------------------------------------------------------------------------------------------------\n * kineto — the one time-formatting system\n *\n * `RelativeTime` renders through these helpers so \"2h ago\" reads identically everywhere and the\n * absolute tooltip uses one locale format. Keeping the rules here (not inline in a component) is the\n * point: relative strings stay consistent across the whole app, and you tune the scale in one place.\n *\n * Runtime-only `Date.now()` is fine here (this is browser/render code, not a workflow script).\n * ----------------------------------------------------------------------------------------------- */\n\nexport type TimeInput = Date | number | string;\n\nfunction toMs(input: TimeInput): number {\n if (input instanceof Date) return input.getTime();\n if (typeof input === \"number\") return input;\n return new Date(input).getTime();\n}\n\nconst SEC = 1000;\nconst MIN = 60 * SEC;\nconst HOUR = 60 * MIN;\nconst DAY = 24 * HOUR;\nconst WEEK = 7 * DAY;\n\n/**\n * Compact relative string: \"just now\", \"5m ago\", \"2h ago\", \"3d ago\", \"2w ago\", then an absolute\n * short date for anything older. Future times read \"in 5m\". `now` is injectable for testing/SSR.\n */\nexport function formatRelativeTime(input: TimeInput, now: TimeInput = Date.now()): string {\n const then = toMs(input);\n const nowMs = toMs(now);\n const diff = nowMs - then; // > 0 ⇒ in the past\n const past = diff >= 0;\n const abs = Math.abs(diff);\n\n if (abs < 45 * SEC) return \"just now\";\n\n const unit = (n: number, u: string) => (past ? `${n}${u} ago` : `in ${n}${u}`);\n\n if (abs < HOUR) return unit(Math.max(1, Math.round(abs / MIN)), \"m\");\n if (abs < DAY) return unit(Math.round(abs / HOUR), \"h\");\n if (abs < WEEK) return unit(Math.round(abs / DAY), \"d\");\n if (abs < 4 * WEEK) return unit(Math.round(abs / WEEK), \"w\");\n return formatAbsoluteDate(then, nowMs);\n}\n\n/** Short calendar date — \"Jan 5\", or \"Jan 5, 2023\" when the year differs from `now`. */\nexport function formatAbsoluteDate(input: TimeInput, now: TimeInput = Date.now()): string {\n const date = new Date(toMs(input));\n const sameYear = new Date(toMs(now)).getFullYear() === date.getFullYear();\n return new Intl.DateTimeFormat(undefined, {\n month: \"short\",\n day: \"numeric\",\n ...(sameYear ? {} : { year: \"numeric\" }),\n }).format(date);\n}\n\n/** Full, unambiguous timestamp for the hover tooltip — e.g. \"Jan 5, 2024, 3:42 PM\". */\nexport function formatAbsoluteTime(input: TimeInput): string {\n return new Intl.DateTimeFormat(undefined, {\n dateStyle: \"medium\",\n timeStyle: \"short\",\n }).format(new Date(toMs(input)));\n}\n\n/**\n * How long (ms) until the relative string could meaningfully change — used by `RelativeTime` to\n * schedule the next tick. Tighter near \"now\", lazier for older timestamps so we don't re-render\n * a year-old date every few seconds.\n */\nexport function relativeUpdateInterval(input: TimeInput, now: TimeInput = Date.now()): number {\n const abs = Math.abs(toMs(now) - toMs(input));\n if (abs < 45 * SEC) return 10 * SEC;\n if (abs < HOUR) return 30 * SEC;\n if (abs < DAY) return 5 * MIN;\n return HOUR;\n}\n"],"mappings":";AAYA,SAAS,KAAK,OAA0B;AACtC,MAAI,iBAAiB,KAAM,QAAO,MAAM,QAAQ;AAChD,MAAI,OAAO,UAAU,SAAU,QAAO;AACtC,SAAO,IAAI,KAAK,KAAK,EAAE,QAAQ;AACjC;AAEA,IAAM,MAAM;AACZ,IAAM,MAAM,KAAK;AACjB,IAAM,OAAO,KAAK;AAClB,IAAM,MAAM,KAAK;AACjB,IAAM,OAAO,IAAI;AAMV,SAAS,mBAAmB,OAAkB,MAAiB,KAAK,IAAI,GAAW;AACxF,QAAM,OAAO,KAAK,KAAK;AACvB,QAAM,QAAQ,KAAK,GAAG;AACtB,QAAM,OAAO,QAAQ;AACrB,QAAM,OAAO,QAAQ;AACrB,QAAM,MAAM,KAAK,IAAI,IAAI;AAEzB,MAAI,MAAM,KAAK,IAAK,QAAO;AAE3B,QAAM,OAAO,CAAC,GAAW,MAAe,OAAO,GAAG,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC;AAE3E,MAAI,MAAM,KAAM,QAAO,KAAK,KAAK,IAAI,GAAG,KAAK,MAAM,MAAM,GAAG,CAAC,GAAG,GAAG;AACnE,MAAI,MAAM,IAAK,QAAO,KAAK,KAAK,MAAM,MAAM,IAAI,GAAG,GAAG;AACtD,MAAI,MAAM,KAAM,QAAO,KAAK,KAAK,MAAM,MAAM,GAAG,GAAG,GAAG;AACtD,MAAI,MAAM,IAAI,KAAM,QAAO,KAAK,KAAK,MAAM,MAAM,IAAI,GAAG,GAAG;AAC3D,SAAO,mBAAmB,MAAM,KAAK;AACvC;AAGO,SAAS,mBAAmB,OAAkB,MAAiB,KAAK,IAAI,GAAW;AACxF,QAAM,OAAO,IAAI,KAAK,KAAK,KAAK,CAAC;AACjC,QAAM,WAAW,IAAI,KAAK,KAAK,GAAG,CAAC,EAAE,YAAY,MAAM,KAAK,YAAY;AACxE,SAAO,IAAI,KAAK,eAAe,QAAW;AAAA,IACxC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,GAAI,WAAW,CAAC,IAAI,EAAE,MAAM,UAAU;AAAA,EACxC,CAAC,EAAE,OAAO,IAAI;AAChB;AAGO,SAAS,mBAAmB,OAA0B;AAC3D,SAAO,IAAI,KAAK,eAAe,QAAW;AAAA,IACxC,WAAW;AAAA,IACX,WAAW;AAAA,EACb,CAAC,EAAE,OAAO,IAAI,KAAK,KAAK,KAAK,CAAC,CAAC;AACjC;AAOO,SAAS,uBAAuB,OAAkB,MAAiB,KAAK,IAAI,GAAW;AAC5F,QAAM,MAAM,KAAK,IAAI,KAAK,GAAG,IAAI,KAAK,KAAK,CAAC;AAC5C,MAAI,MAAM,KAAK,IAAK,QAAO,KAAK;AAChC,MAAI,MAAM,KAAM,QAAO,KAAK;AAC5B,MAAI,MAAM,IAAK,QAAO,IAAI;AAC1B,SAAO;AACT;","names":[]}
package/dist/gap.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ type Gap = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
2
+ /** `gap-*` utility per step — shared by Stack / Flex / Grid. */
3
+ declare const gapClass: Record<Gap, string>;
4
+ /** Horizontal Spacer size (`w-*`) per step. */
5
+ declare const spacerXClass: Record<Gap, string>;
6
+ /** Vertical Spacer size (`h-*`) per step. */
7
+ declare const spacerYClass: Record<Gap, string>;
8
+
9
+ export { type Gap, gapClass, spacerXClass, spacerYClass };
package/dist/gap.js ADDED
@@ -0,0 +1,34 @@
1
+ // src/lib/gap.ts
2
+ var gapClass = {
3
+ none: "gap-0",
4
+ xs: "gap-1",
5
+ sm: "gap-2",
6
+ md: "gap-4",
7
+ lg: "gap-6",
8
+ xl: "gap-8",
9
+ "2xl": "gap-12"
10
+ };
11
+ var spacerXClass = {
12
+ none: "w-0",
13
+ xs: "w-1",
14
+ sm: "w-2",
15
+ md: "w-4",
16
+ lg: "w-6",
17
+ xl: "w-8",
18
+ "2xl": "w-12"
19
+ };
20
+ var spacerYClass = {
21
+ none: "h-0",
22
+ xs: "h-1",
23
+ sm: "h-2",
24
+ md: "h-4",
25
+ lg: "h-6",
26
+ xl: "h-8",
27
+ "2xl": "h-12"
28
+ };
29
+ export {
30
+ gapClass,
31
+ spacerXClass,
32
+ spacerYClass
33
+ };
34
+ //# sourceMappingURL=gap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/gap.ts"],"sourcesContent":["/* -------------------------------------------------------------------------------------------------\n * kineto — the one spacing scale\n *\n * Every layout primitive (Stack, Flex, Grid) takes its `gap` from this single token set, and Spacer\n * sizes from the same steps. Codifying the scale here is the whole point: people compose with\n * `gap=\"md\"` instead of hand-writing one-off `mt-[14px]` margins, so spacing stays consistent.\n *\n * Steps map onto Tailwind's 4px base: xs=4 · sm=8 · md=16 · lg=24 · xl=32 · 2xl=48. The class\n * strings are written out in full (not interpolated) so Tailwind's scanner can see them.\n * ----------------------------------------------------------------------------------------------- */\n\nexport type Gap = \"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n\n/** `gap-*` utility per step — shared by Stack / Flex / Grid. */\nexport const gapClass: Record<Gap, string> = {\n none: \"gap-0\",\n xs: \"gap-1\",\n sm: \"gap-2\",\n md: \"gap-4\",\n lg: \"gap-6\",\n xl: \"gap-8\",\n \"2xl\": \"gap-12\",\n};\n\n/** Horizontal Spacer size (`w-*`) per step. */\nexport const spacerXClass: Record<Gap, string> = {\n none: \"w-0\",\n xs: \"w-1\",\n sm: \"w-2\",\n md: \"w-4\",\n lg: \"w-6\",\n xl: \"w-8\",\n \"2xl\": \"w-12\",\n};\n\n/** Vertical Spacer size (`h-*`) per step. */\nexport const spacerYClass: Record<Gap, string> = {\n none: \"h-0\",\n xs: \"h-1\",\n sm: \"h-2\",\n md: \"h-4\",\n lg: \"h-6\",\n xl: \"h-8\",\n \"2xl\": \"h-12\",\n};\n"],"mappings":";AAcO,IAAM,WAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;AAGO,IAAM,eAAoC;AAAA,EAC/C,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;AAGO,IAAM,eAAoC;AAAA,EAC/C,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;","names":[]}
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+
3
+ interface GradientBorderProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ /** `brand` uses the accent ramp; `neutral` uses the hairline that fades as it falls. */
5
+ tone?: "brand" | "neutral";
6
+ /** Ring thickness in px. */
7
+ width?: number;
8
+ /** Rotate a conic sweep around the ring. Ignored under `prefers-reduced-motion`. */
9
+ animated?: boolean;
10
+ /** Seconds for one full revolution. */
11
+ duration?: number;
12
+ }
13
+ declare const GradientBorder: React.ForwardRefExoticComponent<GradientBorderProps & React.RefAttributes<HTMLDivElement>>;
14
+
15
+ export { GradientBorder, type GradientBorderProps };
@@ -0,0 +1,79 @@
1
+ "use client";
2
+
3
+ // src/components/ui/gradient-border.tsx
4
+ import * as React from "react";
5
+ import { motion, useReducedMotion } from "motion/react";
6
+
7
+ // src/lib/cn.ts
8
+ import { clsx } from "clsx";
9
+ import { twMerge } from "tailwind-merge";
10
+ function cn(...inputs) {
11
+ return twMerge(clsx(inputs));
12
+ }
13
+
14
+ // src/components/ui/gradient-border.tsx
15
+ import { jsx, jsxs } from "react/jsx-runtime";
16
+ var RING_MASK = {
17
+ WebkitMask: "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",
18
+ WebkitMaskComposite: "xor",
19
+ mask: "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",
20
+ maskComposite: "exclude"
21
+ };
22
+ var GradientBorder = React.forwardRef(
23
+ ({
24
+ className,
25
+ tone = "brand",
26
+ width = 1,
27
+ animated = false,
28
+ duration = 6,
29
+ children,
30
+ ...props
31
+ }, ref) => {
32
+ const reduced = useReducedMotion();
33
+ const spinning = animated && !reduced;
34
+ return /* @__PURE__ */ jsxs(
35
+ "div",
36
+ {
37
+ ref,
38
+ className: cn("relative isolate rounded-xl", className),
39
+ ...props,
40
+ children: [
41
+ /* @__PURE__ */ jsx(
42
+ "span",
43
+ {
44
+ "aria-hidden": true,
45
+ className: cn(
46
+ "pointer-events-none absolute inset-0 overflow-hidden rounded-[inherit]",
47
+ // While spinning, the base drops to the neutral hairline so the conic reads as a
48
+ // highlight travelling around a real border, not as a wheel of color.
49
+ spinning || tone === "neutral" ? "bg-gradient-hairline" : "bg-gradient-brand"
50
+ ),
51
+ style: { padding: width, ...RING_MASK },
52
+ children: spinning ? /* @__PURE__ */ jsx(
53
+ motion.span,
54
+ {
55
+ className: "absolute left-1/2 top-1/2 block h-[200%] w-[200%]",
56
+ style: {
57
+ // Transparent for most of the sweep so the ring reads as a travelling
58
+ // highlight rather than a spinning wheel of color.
59
+ backgroundImage: "conic-gradient(from 0deg, transparent 0deg, hsl(var(--gradient-from, var(--brand))) 90deg, hsl(var(--gradient-to, var(--chart-3))) 160deg, transparent 260deg)",
60
+ x: "-50%",
61
+ y: "-50%"
62
+ },
63
+ animate: { rotate: 360 },
64
+ transition: { duration, ease: "linear", repeat: Infinity }
65
+ }
66
+ ) : null
67
+ }
68
+ ),
69
+ children
70
+ ]
71
+ }
72
+ );
73
+ }
74
+ );
75
+ GradientBorder.displayName = "GradientBorder";
76
+ export {
77
+ GradientBorder
78
+ };
79
+ //# sourceMappingURL=gradient-border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ui/gradient-border.tsx","../src/lib/cn.ts"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@/lib/cn\";\n\n/* A gradient hairline around arbitrary content — the thing `border-color` can't express.\n *\n * The ring is a masked overlay, not a border: the layer is padded by `width`, filled with a\n * gradient, then masked so only that padding survives (`content-box` XOR full box). That keeps\n * the border on top of any background the child paints, and lets the corner radius come from\n * `rounded-*` on the wrapper via `rounded-[inherit]`.\n *\n * `animated` rotates a conic sweep behind the same mask. Rotation is a transform on an oversized\n * child rather than an animated `--angle`, because interpolating a custom property needs\n * `@property` registration and that can't ride along in a copy-pasted component file.\n *\n * Needs kineto's stylesheet for the `bg-gradient-*` utilities (`@import \"kineto/theme.css\"`). */\n\nexport interface GradientBorderProps extends React.HTMLAttributes<HTMLDivElement> {\n /** `brand` uses the accent ramp; `neutral` uses the hairline that fades as it falls. */\n tone?: \"brand\" | \"neutral\";\n /** Ring thickness in px. */\n width?: number;\n /** Rotate a conic sweep around the ring. Ignored under `prefers-reduced-motion`. */\n animated?: boolean;\n /** Seconds for one full revolution. */\n duration?: number;\n}\n\n/* Cut the middle out of the padded layer so only the ring paints. Both spellings ship: Safari\n still needs the -webkit- pair. */\nconst RING_MASK = {\n WebkitMask: \"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)\",\n WebkitMaskComposite: \"xor\",\n mask: \"linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)\",\n maskComposite: \"exclude\",\n} satisfies React.CSSProperties;\n\nconst GradientBorder = React.forwardRef<HTMLDivElement, GradientBorderProps>(\n (\n {\n className,\n tone = \"brand\",\n width = 1,\n animated = false,\n duration = 6,\n children,\n ...props\n },\n ref\n ) => {\n const reduced = useReducedMotion();\n const spinning = animated && !reduced;\n\n return (\n <div\n ref={ref}\n className={cn(\"relative isolate rounded-xl\", className)}\n {...props}\n >\n <span\n aria-hidden\n className={cn(\n \"pointer-events-none absolute inset-0 overflow-hidden rounded-[inherit]\",\n // While spinning, the base drops to the neutral hairline so the conic reads as a\n // highlight travelling around a real border, not as a wheel of color.\n spinning || tone === \"neutral\"\n ? \"bg-gradient-hairline\"\n : \"bg-gradient-brand\"\n )}\n style={{ padding: width, ...RING_MASK }}\n >\n {spinning ? (\n <motion.span\n // 200% on both axes so the rotating box still covers the ring at 45° for any\n // reasonable aspect ratio.\n className=\"absolute left-1/2 top-1/2 block h-[200%] w-[200%]\"\n style={{\n // Transparent for most of the sweep so the ring reads as a travelling\n // highlight rather than a spinning wheel of color.\n backgroundImage:\n \"conic-gradient(from 0deg, transparent 0deg, hsl(var(--gradient-from, var(--brand))) 90deg, hsl(var(--gradient-to, var(--chart-3))) 160deg, transparent 260deg)\",\n x: \"-50%\",\n y: \"-50%\",\n }}\n animate={{ rotate: 360 }}\n transition={{ duration, ease: \"linear\", repeat: Infinity }}\n />\n ) : null}\n </span>\n {children}\n </div>\n );\n }\n);\nGradientBorder.displayName = \"GradientBorder\";\n\nexport { GradientBorder };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Merge class names with Tailwind-aware conflict resolution.\n * Every Kineto component accepts `className` and merges it through `cn()`,\n * so consumer overrides always win over the component's defaults.\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAEA,YAAY,WAAW;AACvB,SAAS,QAAQ,wBAAwB;;;ACHzC,SAAS,YAA6B;AACtC,SAAS,eAAe;AAOjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;AD+CM,SAkBM,KAlBN;AAxBN,IAAM,YAAY;AAAA,EAChB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,MAAM;AAAA,EACN,eAAe;AACjB;AAEA,IAAM,iBAAuB;AAAA,EAC3B,CACE;AAAA,IACE;AAAA,IACA,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,UAAU,iBAAiB;AACjC,UAAM,WAAW,YAAY,CAAC;AAE9B,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,+BAA+B,SAAS;AAAA,QACrD,GAAG;AAAA,QAEJ;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,eAAW;AAAA,cACX,WAAW;AAAA,gBACT;AAAA;AAAA;AAAA,gBAGA,YAAY,SAAS,YACjB,yBACA;AAAA,cACN;AAAA,cACA,OAAO,EAAE,SAAS,OAAO,GAAG,UAAU;AAAA,cAErC,qBACC;AAAA,gBAAC,OAAO;AAAA,gBAAP;AAAA,kBAGC,WAAU;AAAA,kBACV,OAAO;AAAA;AAAA;AAAA,oBAGL,iBACE;AAAA,oBACF,GAAG;AAAA,oBACH,GAAG;AAAA,kBACL;AAAA,kBACA,SAAS,EAAE,QAAQ,IAAI;AAAA,kBACvB,YAAY,EAAE,UAAU,MAAM,UAAU,QAAQ,SAAS;AAAA;AAAA,cAC3D,IACE;AAAA;AAAA,UACN;AAAA,UACC;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,eAAe,cAAc;","names":[]}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { HTMLMotionProps } from 'motion/react';
3
+
4
+ interface GradientTextProps extends HTMLMotionProps<"span"> {
5
+ /** Pan the ramp across the text on a loop. Ignored under `prefers-reduced-motion`. */
6
+ animated?: boolean;
7
+ /** Seconds for one full pass of the animated ramp. */
8
+ duration?: number;
9
+ }
10
+ declare const GradientText: React.ForwardRefExoticComponent<Omit<GradientTextProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
11
+
12
+ export { GradientText, type GradientTextProps };
@@ -0,0 +1,43 @@
1
+ "use client";
2
+
3
+ // src/components/ui/gradient-text.tsx
4
+ import * as React from "react";
5
+ import { motion, useReducedMotion } from "motion/react";
6
+
7
+ // src/lib/cn.ts
8
+ import { clsx } from "clsx";
9
+ import { twMerge } from "tailwind-merge";
10
+ function cn(...inputs) {
11
+ return twMerge(clsx(inputs));
12
+ }
13
+
14
+ // src/components/ui/gradient-text.tsx
15
+ import { jsx } from "react/jsx-runtime";
16
+ var GradientText = React.forwardRef(
17
+ ({ className, animated = false, duration = 6, style, ...props }, ref) => {
18
+ const reduced = useReducedMotion();
19
+ const moving = animated && !reduced;
20
+ return /* @__PURE__ */ jsx(
21
+ motion.span,
22
+ {
23
+ ref,
24
+ className: cn(
25
+ // `inline-block` so the painted box wraps the glyphs rather than the whole line box;
26
+ // the bottom padding keeps descenders out of the clip edge.
27
+ "inline-block bg-clip-text pb-[0.05em] text-transparent",
28
+ moving ? "bg-gradient-brand-loop" : "bg-gradient-brand",
29
+ className
30
+ ),
31
+ style,
32
+ animate: moving ? { backgroundPosition: ["0% 50%", "200% 50%"] } : void 0,
33
+ transition: moving ? { duration, ease: "linear", repeat: Infinity } : void 0,
34
+ ...props
35
+ }
36
+ );
37
+ }
38
+ );
39
+ GradientText.displayName = "GradientText";
40
+ export {
41
+ GradientText
42
+ };
43
+ //# sourceMappingURL=gradient-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ui/gradient-text.tsx","../src/lib/cn.ts"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { motion, useReducedMotion, type HTMLMotionProps } from \"motion/react\";\n\nimport { cn } from \"@/lib/cn\";\n\n/* Gradient-filled text, clipped to the glyphs. The static case is just the `text-gradient-brand`\n * utility — reach for this component when you want the ramp to move.\n *\n * Panning a two-stop gradient looks wrong: it slides to its end and snaps back. So the animated\n * mode swaps in `bg-gradient-brand-loop` (from → to → from at 200% width) and travels exactly one\n * period, landing where it started. Both modes read the same `--gradient-from` / `--gradient-to`\n * stops, so a themed gradient stays themed here.\n *\n * Renders a `<span>`; wrap it in whatever heading you need. Needs kineto's stylesheet for the\n * `bg-gradient-*` utilities (`@import \"kineto/theme.css\"`). */\n\nexport interface GradientTextProps extends HTMLMotionProps<\"span\"> {\n /** Pan the ramp across the text on a loop. Ignored under `prefers-reduced-motion`. */\n animated?: boolean;\n /** Seconds for one full pass of the animated ramp. */\n duration?: number;\n}\n\nconst GradientText = React.forwardRef<HTMLSpanElement, GradientTextProps>(\n ({ className, animated = false, duration = 6, style, ...props }, ref) => {\n const reduced = useReducedMotion();\n const moving = animated && !reduced;\n\n return (\n <motion.span\n ref={ref}\n className={cn(\n // `inline-block` so the painted box wraps the glyphs rather than the whole line box;\n // the bottom padding keeps descenders out of the clip edge.\n \"inline-block bg-clip-text pb-[0.05em] text-transparent\",\n moving ? \"bg-gradient-brand-loop\" : \"bg-gradient-brand\",\n className\n )}\n style={style}\n animate={moving ? { backgroundPosition: [\"0% 50%\", \"200% 50%\"] } : undefined}\n transition={moving ? { duration, ease: \"linear\", repeat: Infinity } : undefined}\n {...props}\n />\n );\n }\n);\nGradientText.displayName = \"GradientText\";\n\nexport { GradientText };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Merge class names with Tailwind-aware conflict resolution.\n * Every Kineto component accepts `className` and merges it through `cn()`,\n * so consumer overrides always win over the component's defaults.\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAEA,YAAY,WAAW;AACvB,SAAS,QAAQ,wBAA8C;;;ACH/D,SAAS,YAA6B;AACtC,SAAS,eAAe;AAOjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ADqBM;AANN,IAAM,eAAqB;AAAA,EACzB,CAAC,EAAE,WAAW,WAAW,OAAO,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ;AACvE,UAAM,UAAU,iBAAiB;AACjC,UAAM,SAAS,YAAY,CAAC;AAE5B,WACE;AAAA,MAAC,OAAO;AAAA,MAAP;AAAA,QACC;AAAA,QACA,WAAW;AAAA;AAAA;AAAA,UAGT;AAAA,UACA,SAAS,2BAA2B;AAAA,UACpC;AAAA,QACF;AAAA,QACA;AAAA,QACA,SAAS,SAAS,EAAE,oBAAoB,CAAC,UAAU,UAAU,EAAE,IAAI;AAAA,QACnE,YAAY,SAAS,EAAE,UAAU,MAAM,UAAU,QAAQ,SAAS,IAAI;AAAA,QACrE,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;","names":[]}
package/dist/grid.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ import * as class_variance_authority_types from 'class-variance-authority/types';
2
+ import * as React from 'react';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { Gap } from './gap.js';
5
+
6
+ declare const gridVariants: (props?: ({
7
+ cols?: 1 | 2 | 6 | 4 | 3 | 12 | 5 | null | undefined;
8
+ align?: "center" | "end" | "start" | "stretch" | null | undefined;
9
+ justify?: "center" | "end" | "start" | "stretch" | null | undefined;
10
+ flow?: "col" | "row" | "dense" | null | undefined;
11
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
12
+ interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
13
+ /** Space between cells, from the shared gap scale. */
14
+ gap?: Gap;
15
+ /** Render as the child element instead of a `<div>`. */
16
+ asChild?: boolean;
17
+ }
18
+ /**
19
+ * A CSS grid wrapper with a fixed column count and a `gap` from the shared scale. For responsive
20
+ * layouts, set a base `cols` and layer breakpoint utilities via `className`
21
+ * (e.g. `<Grid cols={1} className="md:grid-cols-3">`) — tailwind-merge keeps the override.
22
+ */
23
+ declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
24
+
25
+ export { Grid, type GridProps, gridVariants };
package/dist/grid.js ADDED
@@ -0,0 +1,77 @@
1
+ // src/components/ui/grid.tsx
2
+ import * as React from "react";
3
+ import { Slot } from "@radix-ui/react-slot";
4
+ import { cva } from "class-variance-authority";
5
+
6
+ // src/lib/cn.ts
7
+ import { clsx } from "clsx";
8
+ import { twMerge } from "tailwind-merge";
9
+ function cn(...inputs) {
10
+ return twMerge(clsx(inputs));
11
+ }
12
+
13
+ // src/lib/gap.ts
14
+ var gapClass = {
15
+ none: "gap-0",
16
+ xs: "gap-1",
17
+ sm: "gap-2",
18
+ md: "gap-4",
19
+ lg: "gap-6",
20
+ xl: "gap-8",
21
+ "2xl": "gap-12"
22
+ };
23
+
24
+ // src/components/ui/grid.tsx
25
+ import { jsx } from "react/jsx-runtime";
26
+ var gridVariants = cva("grid min-w-0", {
27
+ variants: {
28
+ cols: {
29
+ 1: "grid-cols-1",
30
+ 2: "grid-cols-2",
31
+ 3: "grid-cols-3",
32
+ 4: "grid-cols-4",
33
+ 5: "grid-cols-5",
34
+ 6: "grid-cols-6",
35
+ 12: "grid-cols-12"
36
+ },
37
+ align: {
38
+ start: "items-start",
39
+ center: "items-center",
40
+ end: "items-end",
41
+ stretch: "items-stretch"
42
+ },
43
+ justify: {
44
+ start: "justify-items-start",
45
+ center: "justify-items-center",
46
+ end: "justify-items-end",
47
+ stretch: "justify-items-stretch"
48
+ },
49
+ flow: {
50
+ row: "grid-flow-row",
51
+ col: "grid-flow-col",
52
+ dense: "grid-flow-row-dense"
53
+ }
54
+ },
55
+ defaultVariants: {
56
+ cols: 1
57
+ }
58
+ });
59
+ var Grid = React.forwardRef(
60
+ ({ className, cols, align, justify, flow, gap = "md", asChild = false, ...props }, ref) => {
61
+ const Comp = asChild ? Slot : "div";
62
+ return /* @__PURE__ */ jsx(
63
+ Comp,
64
+ {
65
+ ref,
66
+ className: cn(gridVariants({ cols, align, justify, flow }), gapClass[gap], className),
67
+ ...props
68
+ }
69
+ );
70
+ }
71
+ );
72
+ Grid.displayName = "Grid";
73
+ export {
74
+ Grid,
75
+ gridVariants
76
+ };
77
+ //# sourceMappingURL=grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ui/grid.tsx","../src/lib/cn.ts","../src/lib/gap.ts"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/cn\";\nimport { gapClass, type Gap } from \"@/lib/gap\";\n\nconst gridVariants = cva(\"grid min-w-0\", {\n variants: {\n cols: {\n 1: \"grid-cols-1\",\n 2: \"grid-cols-2\",\n 3: \"grid-cols-3\",\n 4: \"grid-cols-4\",\n 5: \"grid-cols-5\",\n 6: \"grid-cols-6\",\n 12: \"grid-cols-12\",\n },\n align: {\n start: \"items-start\",\n center: \"items-center\",\n end: \"items-end\",\n stretch: \"items-stretch\",\n },\n justify: {\n start: \"justify-items-start\",\n center: \"justify-items-center\",\n end: \"justify-items-end\",\n stretch: \"justify-items-stretch\",\n },\n flow: {\n row: \"grid-flow-row\",\n col: \"grid-flow-col\",\n dense: \"grid-flow-row-dense\",\n },\n },\n defaultVariants: {\n cols: 1,\n },\n});\n\nexport interface GridProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof gridVariants> {\n /** Space between cells, from the shared gap scale. */\n gap?: Gap;\n /** Render as the child element instead of a `<div>`. */\n asChild?: boolean;\n}\n\n/**\n * A CSS grid wrapper with a fixed column count and a `gap` from the shared scale. For responsive\n * layouts, set a base `cols` and layer breakpoint utilities via `className`\n * (e.g. `<Grid cols={1} className=\"md:grid-cols-3\">`) — tailwind-merge keeps the override.\n */\nconst Grid = React.forwardRef<HTMLDivElement, GridProps>(\n ({ className, cols, align, justify, flow, gap = \"md\", asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"div\";\n return (\n <Comp\n ref={ref}\n className={cn(gridVariants({ cols, align, justify, flow }), gapClass[gap], className)}\n {...props}\n />\n );\n }\n);\nGrid.displayName = \"Grid\";\n\nexport { Grid, gridVariants };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Merge class names with Tailwind-aware conflict resolution.\n * Every Kineto component accepts `className` and merges it through `cn()`,\n * so consumer overrides always win over the component's defaults.\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","/* -------------------------------------------------------------------------------------------------\n * kineto — the one spacing scale\n *\n * Every layout primitive (Stack, Flex, Grid) takes its `gap` from this single token set, and Spacer\n * sizes from the same steps. Codifying the scale here is the whole point: people compose with\n * `gap=\"md\"` instead of hand-writing one-off `mt-[14px]` margins, so spacing stays consistent.\n *\n * Steps map onto Tailwind's 4px base: xs=4 · sm=8 · md=16 · lg=24 · xl=32 · 2xl=48. The class\n * strings are written out in full (not interpolated) so Tailwind's scanner can see them.\n * ----------------------------------------------------------------------------------------------- */\n\nexport type Gap = \"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n\n/** `gap-*` utility per step — shared by Stack / Flex / Grid. */\nexport const gapClass: Record<Gap, string> = {\n none: \"gap-0\",\n xs: \"gap-1\",\n sm: \"gap-2\",\n md: \"gap-4\",\n lg: \"gap-6\",\n xl: \"gap-8\",\n \"2xl\": \"gap-12\",\n};\n\n/** Horizontal Spacer size (`w-*`) per step. */\nexport const spacerXClass: Record<Gap, string> = {\n none: \"w-0\",\n xs: \"w-1\",\n sm: \"w-2\",\n md: \"w-4\",\n lg: \"w-6\",\n xl: \"w-8\",\n \"2xl\": \"w-12\",\n};\n\n/** Vertical Spacer size (`h-*`) per step. */\nexport const spacerYClass: Record<Gap, string> = {\n none: \"h-0\",\n xs: \"h-1\",\n sm: \"h-2\",\n md: \"h-4\",\n lg: \"h-6\",\n xl: \"h-8\",\n \"2xl\": \"h-12\",\n};\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,WAA8B;;;ACFvC,SAAS,YAA6B;AACtC,SAAS,eAAe;AAOjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ACIO,IAAM,WAAgC;AAAA,EAC3C,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;;;AFqCM;AApDN,IAAM,eAAe,IAAI,gBAAgB;AAAA,EACvC,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI;AAAA,IACN;AAAA,IACA,OAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,SAAS;AAAA,IACX;AAAA,IACA,SAAS;AAAA,MACP,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,KAAK;AAAA,MACL,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,KAAK;AAAA,MACL,KAAK;AAAA,MACL,OAAO;AAAA,IACT;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;AAgBD,IAAM,OAAa;AAAA,EACjB,CAAC,EAAE,WAAW,MAAM,OAAO,SAAS,MAAM,MAAM,MAAM,UAAU,OAAO,GAAG,MAAM,GAAG,QAAQ;AACzF,UAAM,OAAO,UAAU,OAAO;AAC9B,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,GAAG,aAAa,EAAE,MAAM,OAAO,SAAS,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS;AAAA,QACnF,GAAG;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
3
+
4
+ declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
5
+ declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
6
+ declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+
8
+ export { HoverCard, HoverCardContent, HoverCardTrigger };
@@ -0,0 +1,93 @@
1
+ "use client";
2
+
3
+ // src/components/ui/hover-card.tsx
4
+ import * as React from "react";
5
+ import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
6
+ import { motion } from "motion/react";
7
+
8
+ // src/lib/cn.ts
9
+ import { clsx } from "clsx";
10
+ import { twMerge } from "tailwind-merge";
11
+ function cn(...inputs) {
12
+ return twMerge(clsx(inputs));
13
+ }
14
+
15
+ // src/lib/motion-presets.ts
16
+ var spring = {
17
+ /** Quick, decisive — buttons, indicators, dropdowns. */
18
+ snappy: { type: "spring", stiffness: 420, damping: 32, mass: 0.8 },
19
+ /** Calm and weighty — dialogs, cards, larger surfaces. */
20
+ soft: { type: "spring", stiffness: 180, damping: 26 },
21
+ /** Playful overshoot — badges, toggles, delight moments. Use sparingly. */
22
+ bouncy: { type: "spring", stiffness: 480, damping: 18, mass: 0.9 }
23
+ };
24
+ var tween = {
25
+ /** The signature easing — an expressive ease-out for orchestrated reveals. */
26
+ smooth: { type: "tween", duration: 0.45, ease: [0.22, 1, 0.36, 1] },
27
+ /** Faster variant for small elements. */
28
+ quick: { type: "tween", duration: 0.28, ease: [0.22, 1, 0.36, 1] },
29
+ /** Longer, settled curve for drawing charts, count-ups, and progress fills. */
30
+ draw: { type: "tween", duration: 1.1, ease: [0.16, 1, 0.3, 1] }
31
+ };
32
+ var fadeUp = {
33
+ hidden: { opacity: 0, y: 18 },
34
+ visible: { opacity: 1, y: 0, transition: tween.smooth }
35
+ };
36
+ var fadeIn = {
37
+ hidden: { opacity: 0 },
38
+ visible: { opacity: 1, transition: tween.smooth }
39
+ };
40
+ var scaleIn = {
41
+ hidden: { opacity: 0, scale: 0.96 },
42
+ visible: { opacity: 1, scale: 1, transition: spring.soft }
43
+ };
44
+ var slideInLeft = {
45
+ hidden: { opacity: 0, x: -28 },
46
+ visible: { opacity: 1, x: 0, transition: tween.smooth }
47
+ };
48
+ var slideInRight = {
49
+ hidden: { opacity: 0, x: 28 },
50
+ visible: { opacity: 1, x: 0, transition: tween.smooth }
51
+ };
52
+ var blurIn = {
53
+ hidden: { opacity: 0, filter: "blur(12px)" },
54
+ visible: { opacity: 1, filter: "blur(0px)", transition: tween.smooth }
55
+ };
56
+
57
+ // src/components/ui/hover-card.tsx
58
+ import { jsx } from "react/jsx-runtime";
59
+ var HoverCard = HoverCardPrimitive.Root;
60
+ var HoverCardTrigger = HoverCardPrimitive.Trigger;
61
+ var HoverCardContent = React.forwardRef(({ className, align = "center", sideOffset = 8, children, ...props }, ref) => /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { children: /* @__PURE__ */ jsx(
62
+ HoverCardPrimitive.Content,
63
+ {
64
+ ref,
65
+ align,
66
+ sideOffset,
67
+ className: "z-50",
68
+ ...props,
69
+ children: /* @__PURE__ */ jsx(
70
+ motion.div,
71
+ {
72
+ initial: { opacity: 0, scale: 0.97 },
73
+ animate: { opacity: 1, scale: 1 },
74
+ transition: tween.quick,
75
+ style: {
76
+ transformOrigin: "var(--radix-hover-card-content-transform-origin)"
77
+ },
78
+ className: cn(
79
+ "w-64 rounded-xl border border-border bg-popover p-4 text-popover-foreground shadow-lift outline-none",
80
+ className
81
+ ),
82
+ children
83
+ }
84
+ )
85
+ }
86
+ ) }));
87
+ HoverCardContent.displayName = "HoverCardContent";
88
+ export {
89
+ HoverCard,
90
+ HoverCardContent,
91
+ HoverCardTrigger
92
+ };
93
+ //# sourceMappingURL=hover-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ui/hover-card.tsx","../src/lib/cn.ts","../src/lib/motion-presets.ts"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport { motion } from \"motion/react\";\n\nimport { cn } from \"@/lib/cn\";\nimport { tween } from \"@/lib/motion-presets\";\n\nconst HoverCard = HoverCardPrimitive.Root;\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 8, children, ...props }, ref) => (\n <HoverCardPrimitive.Portal>\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className=\"z-50\"\n {...props}\n >\n <motion.div\n initial={{ opacity: 0, scale: 0.97 }}\n animate={{ opacity: 1, scale: 1 }}\n transition={tween.quick}\n style={{\n transformOrigin: \"var(--radix-hover-card-content-transform-origin)\",\n }}\n className={cn(\n \"w-64 rounded-xl border border-border bg-popover p-4 text-popover-foreground shadow-lift outline-none\",\n className\n )}\n >\n {children}\n </motion.div>\n </HoverCardPrimitive.Content>\n </HoverCardPrimitive.Portal>\n));\nHoverCardContent.displayName = \"HoverCardContent\";\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\n/**\n * Merge class names with Tailwind-aware conflict resolution.\n * Every Kineto component accepts `className` and merges it through `cn()`,\n * so consumer overrides always win over the component's defaults.\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import type { Transition, Variants, Target } from \"motion/react\";\n\n/* -------------------------------------------------------------------------------------------------\n * Transition tokens\n * The named physics every component references. Tune these in one place and the whole\n * library re-tunes. Prefer springs for anything interactive; reserve tweens for orchestrated\n * entrances where you want a precise, repeatable curve.\n * ----------------------------------------------------------------------------------------------- */\n\nexport const spring = {\n /** Quick, decisive — buttons, indicators, dropdowns. */\n snappy: { type: \"spring\", stiffness: 420, damping: 32, mass: 0.8 },\n /** Calm and weighty — dialogs, cards, larger surfaces. */\n soft: { type: \"spring\", stiffness: 180, damping: 26 },\n /** Playful overshoot — badges, toggles, delight moments. Use sparingly. */\n bouncy: { type: \"spring\", stiffness: 480, damping: 18, mass: 0.9 },\n} satisfies Record<string, Transition>;\n\nexport const tween = {\n /** The signature easing — an expressive ease-out for orchestrated reveals. */\n smooth: { type: \"tween\", duration: 0.45, ease: [0.22, 1, 0.36, 1] },\n /** Faster variant for small elements. */\n quick: { type: \"tween\", duration: 0.28, ease: [0.22, 1, 0.36, 1] },\n /** Longer, settled curve for drawing charts, count-ups, and progress fills. */\n draw: { type: \"tween\", duration: 1.1, ease: [0.16, 1, 0.3, 1] },\n} satisfies Record<string, Transition>;\n\n/* -------------------------------------------------------------------------------------------------\n * Reveal variants\n * Named hidden→visible pairs. Pair with `initial=\"hidden\"` + `animate=\"visible\"`, or with\n * `whileInView=\"visible\"` for scroll-triggered sections (see `viewportOnce`).\n * ----------------------------------------------------------------------------------------------- */\n\nexport const fadeUp: Variants = {\n hidden: { opacity: 0, y: 18 },\n visible: { opacity: 1, y: 0, transition: tween.smooth },\n};\n\nexport const fadeIn: Variants = {\n hidden: { opacity: 0 },\n visible: { opacity: 1, transition: tween.smooth },\n};\n\nexport const scaleIn: Variants = {\n hidden: { opacity: 0, scale: 0.96 },\n visible: { opacity: 1, scale: 1, transition: spring.soft },\n};\n\nexport const slideInLeft: Variants = {\n hidden: { opacity: 0, x: -28 },\n visible: { opacity: 1, x: 0, transition: tween.smooth },\n};\n\nexport const slideInRight: Variants = {\n hidden: { opacity: 0, x: 28 },\n visible: { opacity: 1, x: 0, transition: tween.smooth },\n};\n\nexport const blurIn: Variants = {\n hidden: { opacity: 0, filter: \"blur(12px)\" },\n visible: { opacity: 1, filter: \"blur(0px)\", transition: tween.smooth },\n};\n\n/* -------------------------------------------------------------------------------------------------\n * Stagger helpers\n * Wrap a list/grid in a container using `staggerContainer()` and give each child `staggerItem`\n * (or any reveal variant). One wrapper orchestrates the whole sequence.\n * ----------------------------------------------------------------------------------------------- */\n\nexport const staggerContainer = (stagger = 0.08, delay = 0): Variants => ({\n hidden: {},\n visible: {\n transition: { staggerChildren: stagger, delayChildren: delay },\n },\n});\n\n/** The default child for a stagger container. Aliased to `fadeUp` so sequences feel cohesive. */\nexport const staggerItem: Variants = fadeUp;\n\n/* -------------------------------------------------------------------------------------------------\n * Interaction presets\n * Standardized tap/hover targets. Note: controls (buttons, selects, anything that can act as a\n * trigger/anchor) should NOT shift on hover — moving a trigger while its popover/tooltip animates\n * in reads as two competing motions. Use color + press feedback there instead. A very subtle\n * scale-up is reserved for non-anchored content surfaces (cards/tiles) via `cardHover`.\n * Spread into `whileHover` / `whileTap`.\n * ----------------------------------------------------------------------------------------------- */\n\nexport const interaction = {\n /** Press feedback for buttons and clickable chips. */\n tap: { scale: 0.97 } satisfies Target,\n /** Very subtle scale-up for non-anchored content surfaces (cards/tiles) — never for triggers.\n * A gentle swell reads calmer than a positional lift and doesn't nudge neighbouring content. */\n cardHover: { scale: 1.02 } satisfies Target,\n} as const;\n\n/* -------------------------------------------------------------------------------------------------\n * Viewport config\n * The shared `whileInView` viewport so every scroll reveal triggers at the same threshold,\n * exactly once.\n * ----------------------------------------------------------------------------------------------- */\n\nexport const viewportOnce = { once: true, margin: \"-15%\" } as const;\n"],"mappings":";;;AAEA,YAAY,WAAW;AACvB,YAAY,wBAAwB;AACpC,SAAS,cAAc;;;ACJvB,SAAS,YAA6B;AACtC,SAAS,eAAe;AAOjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ACDO,IAAM,SAAS;AAAA;AAAA,EAEpB,QAAQ,EAAE,MAAM,UAAU,WAAW,KAAK,SAAS,IAAI,MAAM,IAAI;AAAA;AAAA,EAEjE,MAAM,EAAE,MAAM,UAAU,WAAW,KAAK,SAAS,GAAG;AAAA;AAAA,EAEpD,QAAQ,EAAE,MAAM,UAAU,WAAW,KAAK,SAAS,IAAI,MAAM,IAAI;AACnE;AAEO,IAAM,QAAQ;AAAA;AAAA,EAEnB,QAAQ,EAAE,MAAM,SAAS,UAAU,MAAM,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;AAAA;AAAA,EAElE,OAAO,EAAE,MAAM,SAAS,UAAU,MAAM,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;AAAA;AAAA,EAEjE,MAAM,EAAE,MAAM,SAAS,UAAU,KAAK,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,EAAE;AAChE;AAQO,IAAM,SAAmB;AAAA,EAC9B,QAAQ,EAAE,SAAS,GAAG,GAAG,GAAG;AAAA,EAC5B,SAAS,EAAE,SAAS,GAAG,GAAG,GAAG,YAAY,MAAM,OAAO;AACxD;AAEO,IAAM,SAAmB;AAAA,EAC9B,QAAQ,EAAE,SAAS,EAAE;AAAA,EACrB,SAAS,EAAE,SAAS,GAAG,YAAY,MAAM,OAAO;AAClD;AAEO,IAAM,UAAoB;AAAA,EAC/B,QAAQ,EAAE,SAAS,GAAG,OAAO,KAAK;AAAA,EAClC,SAAS,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,OAAO,KAAK;AAC3D;AAEO,IAAM,cAAwB;AAAA,EACnC,QAAQ,EAAE,SAAS,GAAG,GAAG,IAAI;AAAA,EAC7B,SAAS,EAAE,SAAS,GAAG,GAAG,GAAG,YAAY,MAAM,OAAO;AACxD;AAEO,IAAM,eAAyB;AAAA,EACpC,QAAQ,EAAE,SAAS,GAAG,GAAG,GAAG;AAAA,EAC5B,SAAS,EAAE,SAAS,GAAG,GAAG,GAAG,YAAY,MAAM,OAAO;AACxD;AAEO,IAAM,SAAmB;AAAA,EAC9B,QAAQ,EAAE,SAAS,GAAG,QAAQ,aAAa;AAAA,EAC3C,SAAS,EAAE,SAAS,GAAG,QAAQ,aAAa,YAAY,MAAM,OAAO;AACvE;;;AFrCM;AAfN,IAAM,YAA+B;AACrC,IAAM,mBAAsC;AAE5C,IAAM,mBAAyB,iBAG7B,CAAC,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,QACtE,oBAAoB,2BAAnB,EACC;AAAA,EAAoB;AAAA,EAAnB;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAU;AAAA,IACT,GAAG;AAAA,IAEJ;AAAA,MAAC,OAAO;AAAA,MAAP;AAAA,QACC,SAAS,EAAE,SAAS,GAAG,OAAO,KAAK;AAAA,QACnC,SAAS,EAAE,SAAS,GAAG,OAAO,EAAE;AAAA,QAChC,YAAY,MAAM;AAAA,QAClB,OAAO;AAAA,UACL,iBAAiB;AAAA,QACnB;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA,QAEC;AAAA;AAAA,IACH;AAAA;AACF,GACF,CACD;AACD,iBAAiB,cAAc;","names":[]}