@heyramzi/ui 1.54.1 → 1.54.2

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 (310) hide show
  1. package/package.json +3 -2
  2. package/scripts/sync-shadcn.mjs +2 -2
  3. package/src/ai/ai-button/AiButton.svelte +1 -1
  4. package/src/ai/confirmation/Confirmation.svelte +1 -1
  5. package/src/ai/confirmation/ConfirmationAction.svelte +1 -1
  6. package/src/ai/confirmation/ConfirmationActions.svelte +1 -1
  7. package/src/ai/confirmation/ConfirmationTitle.svelte +1 -1
  8. package/src/ai/generation-progress/GenerationProgress.svelte +1 -1
  9. package/src/ai/loading-state/PixelLoader.svelte +1 -1
  10. package/src/ai/prompt-input/PromptInput.svelte +1 -1
  11. package/src/ai/prompt-input/PromptInputBody.svelte +1 -1
  12. package/src/ai/prompt-input/PromptInputSubmit.svelte +1 -1
  13. package/src/ai/prompt-input/PromptInputTextarea.svelte +1 -1
  14. package/src/ai/prompt-input/PromptInputToolbar.svelte +1 -1
  15. package/src/ai/reasoning/Reasoning.svelte +1 -1
  16. package/src/ai/reasoning/ReasoningContent.svelte +1 -1
  17. package/src/ai/reasoning/ReasoningTrigger.svelte +1 -1
  18. package/src/ai/response/Response.svelte +1 -1
  19. package/src/ai/suggestion/Suggestion.svelte +1 -1
  20. package/src/ai/suggestion/Suggestions.svelte +1 -1
  21. package/src/ai/thinking-dots/ThinkingDots.svelte +1 -1
  22. package/src/ai/typing-dots/TypingDots.svelte +1 -1
  23. package/src/ai/voice-waveform/VoiceWaveform.svelte +1 -1
  24. package/src/components/copy/clipboard.ts +13 -9
  25. package/src/components/copy/copy-button.svelte +1 -1
  26. package/src/components/data-table/row-arrow.svelte +1 -1
  27. package/src/components/data-table/sortable-head.svelte +1 -1
  28. package/src/components/field-row/field-row.svelte +1 -1
  29. package/src/components/hold-to-confirm/hold-to-confirm.svelte +1 -1
  30. package/src/components/language-flag/language-flag.svelte +1 -1
  31. package/src/components/list-page/detail-empty.svelte +1 -1
  32. package/src/components/list-page/detail-header.svelte +1 -1
  33. package/src/components/list-page/detail-panel.svelte +1 -1
  34. package/src/components/list-page/detail-row.svelte +1 -1
  35. package/src/components/list-page/detail-stack.svelte +1 -1
  36. package/src/components/list-page/filter-item.svelte +1 -1
  37. package/src/components/list-page/filter-popover.svelte +1 -1
  38. package/src/components/list-page/filter-section.ts +1 -1
  39. package/src/components/list-page/grouped-list.svelte +1 -1
  40. package/src/components/list-page/list-page-shell.svelte +1 -1
  41. package/src/components/list-page/list-table.ts +1 -1
  42. package/src/components/list-page/master-detail.svelte +1 -1
  43. package/src/components/list-page/notice-bar.svelte +1 -1
  44. package/src/components/list-page/prev-next.svelte +1 -1
  45. package/src/components/list-page/rail-body.svelte +1 -1
  46. package/src/components/list-page/rail-empty.svelte +1 -1
  47. package/src/components/list-page/rail-head.svelte +1 -1
  48. package/src/components/list-page/rail-row.svelte +1 -1
  49. package/src/components/list-page/section-label.svelte +1 -1
  50. package/src/components/list-page/toolbar-search.svelte +1 -1
  51. package/src/components/list-page/toolbar-trigger.ts +1 -1
  52. package/src/components/mark/mark.svelte +1 -1
  53. package/src/components/open-in/open-in.svelte +1 -1
  54. package/src/components/picker/mark-picker.svelte +1 -1
  55. package/src/components/picker/picker.svelte +1 -1
  56. package/src/components/section-card/section-card.svelte +1 -1
  57. package/src/components/segmented/animated-tabs.svelte +1 -1
  58. package/src/components/segmented/section-runs.svelte +1 -1
  59. package/src/components/segmented/segment.svelte +1 -1
  60. package/src/components/segmented/segmented-filter.svelte +1 -1
  61. package/src/components/segmented/segmented-nav.svelte +1 -1
  62. package/src/components/segmented/segmented-overflow.svelte +1 -1
  63. package/src/components/segmented/segmented-track.svelte +1 -1
  64. package/src/components/star-rating-input/star-rating-input.svelte +1 -1
  65. package/src/components/table-view/table-view.svelte +1 -1
  66. package/src/effects/animated-beam/AnimatedBeam.svelte +1 -1
  67. package/src/effects/border-beam/register-properties.ts +4 -2
  68. package/src/effects/image-comparison/ImageComparison.svelte +1 -1
  69. package/src/effects/image-reveal/ImageReveal.svelte +1 -1
  70. package/src/effects/magic-card/MagicCard.svelte +1 -1
  71. package/src/effects/marquee/Marquee.svelte +1 -1
  72. package/src/effects/progressive-blur/ProgressiveBlur.svelte +1 -1
  73. package/src/effects/reveal/AnimatedGroup.svelte +1 -1
  74. package/src/effects/reveal/InView.svelte +1 -1
  75. package/src/effects/reveal/TextEffect.svelte +1 -1
  76. package/src/effects/shader-gradient/ShaderGradient.svelte +1 -1
  77. package/src/effects/spotlight/Spotlight.svelte +1 -1
  78. package/src/effects/theme-toggle/ThemeToggle.svelte +4 -4
  79. package/src/lib/utils.ts +18 -0
  80. package/src/shadcn/accordion/accordion-content.svelte +1 -1
  81. package/src/shadcn/accordion/accordion-item.svelte +1 -1
  82. package/src/shadcn/accordion/accordion-trigger.svelte +1 -1
  83. package/src/shadcn/accordion/accordion.svelte +1 -1
  84. package/src/shadcn/alert/alert-description.svelte +1 -1
  85. package/src/shadcn/alert/alert-title.svelte +1 -1
  86. package/src/shadcn/alert/alert.svelte +1 -1
  87. package/src/shadcn/alert-dialog/alert-dialog-action.svelte +1 -1
  88. package/src/shadcn/alert-dialog/alert-dialog-cancel.svelte +1 -1
  89. package/src/shadcn/alert-dialog/alert-dialog-content.svelte +1 -1
  90. package/src/shadcn/alert-dialog/alert-dialog-description.svelte +1 -1
  91. package/src/shadcn/alert-dialog/alert-dialog-footer.svelte +1 -1
  92. package/src/shadcn/alert-dialog/alert-dialog-header.svelte +1 -1
  93. package/src/shadcn/alert-dialog/alert-dialog-overlay.svelte +1 -1
  94. package/src/shadcn/alert-dialog/alert-dialog-title.svelte +1 -1
  95. package/src/shadcn/attachment/attachment-action.svelte +1 -1
  96. package/src/shadcn/attachment/attachment-actions.svelte +1 -1
  97. package/src/shadcn/attachment/attachment-content.svelte +1 -1
  98. package/src/shadcn/attachment/attachment-description.svelte +1 -1
  99. package/src/shadcn/attachment/attachment-group.svelte +1 -1
  100. package/src/shadcn/attachment/attachment-media.svelte +1 -1
  101. package/src/shadcn/attachment/attachment-title.svelte +1 -1
  102. package/src/shadcn/attachment/attachment-trigger.svelte +1 -1
  103. package/src/shadcn/attachment/attachment.svelte +1 -1
  104. package/src/shadcn/avatar/avatar-badge.svelte +1 -1
  105. package/src/shadcn/avatar/avatar-fallback.svelte +1 -1
  106. package/src/shadcn/avatar/avatar-group-count.svelte +1 -1
  107. package/src/shadcn/avatar/avatar-group.svelte +1 -1
  108. package/src/shadcn/avatar/avatar-image.svelte +1 -1
  109. package/src/shadcn/avatar/avatar.svelte +1 -1
  110. package/src/shadcn/badge/badge.svelte +1 -1
  111. package/src/shadcn/breadcrumb/breadcrumb-ellipsis.svelte +1 -1
  112. package/src/shadcn/breadcrumb/breadcrumb-item.svelte +1 -1
  113. package/src/shadcn/breadcrumb/breadcrumb-link.svelte +1 -1
  114. package/src/shadcn/breadcrumb/breadcrumb-list.svelte +1 -1
  115. package/src/shadcn/breadcrumb/breadcrumb-page.svelte +1 -1
  116. package/src/shadcn/breadcrumb/breadcrumb-separator.svelte +1 -1
  117. package/src/shadcn/breadcrumb/breadcrumb.svelte +1 -1
  118. package/src/shadcn/bubble/bubble-content.svelte +1 -1
  119. package/src/shadcn/bubble/bubble-group.svelte +1 -1
  120. package/src/shadcn/bubble/bubble-reactions.svelte +1 -1
  121. package/src/shadcn/bubble/bubble.svelte +1 -1
  122. package/src/shadcn/button/button.svelte +1 -1
  123. package/src/shadcn/calendar/calendar-cell.svelte +1 -1
  124. package/src/shadcn/calendar/calendar-day.svelte +1 -1
  125. package/src/shadcn/calendar/calendar-grid-body.svelte +1 -1
  126. package/src/shadcn/calendar/calendar-grid-head.svelte +1 -1
  127. package/src/shadcn/calendar/calendar-grid-row.svelte +1 -1
  128. package/src/shadcn/calendar/calendar-grid.svelte +1 -1
  129. package/src/shadcn/calendar/calendar-head-cell.svelte +1 -1
  130. package/src/shadcn/calendar/calendar-header.svelte +1 -1
  131. package/src/shadcn/calendar/calendar-heading.svelte +1 -1
  132. package/src/shadcn/calendar/calendar-month-select.svelte +1 -1
  133. package/src/shadcn/calendar/calendar-month.svelte +1 -1
  134. package/src/shadcn/calendar/calendar-months.svelte +1 -1
  135. package/src/shadcn/calendar/calendar-nav.svelte +1 -1
  136. package/src/shadcn/calendar/calendar-next-button.svelte +1 -1
  137. package/src/shadcn/calendar/calendar-prev-button.svelte +1 -1
  138. package/src/shadcn/calendar/calendar-year-select.svelte +1 -1
  139. package/src/shadcn/calendar/calendar.svelte +1 -1
  140. package/src/shadcn/card/card-action.svelte +1 -1
  141. package/src/shadcn/card/card-content.svelte +1 -1
  142. package/src/shadcn/card/card-description.svelte +1 -1
  143. package/src/shadcn/card/card-footer.svelte +1 -1
  144. package/src/shadcn/card/card-header.svelte +1 -1
  145. package/src/shadcn/card/card-title.svelte +1 -1
  146. package/src/shadcn/card/card.svelte +1 -1
  147. package/src/shadcn/checkbox/checkbox.svelte +1 -1
  148. package/src/shadcn/code-block/code-block-actions.svelte +1 -1
  149. package/src/shadcn/code-block/code-block-content.svelte +1 -1
  150. package/src/shadcn/code-block/code-block-footer.svelte +1 -1
  151. package/src/shadcn/code-block/code-block-header.svelte +1 -1
  152. package/src/shadcn/code-block/code-block-line.svelte +1 -1
  153. package/src/shadcn/code-block/code-block-title.svelte +1 -1
  154. package/src/shadcn/code-block/code-block.svelte +1 -1
  155. package/src/shadcn/command/command-dialog.svelte +1 -1
  156. package/src/shadcn/command/command-empty.svelte +1 -1
  157. package/src/shadcn/command/command-group.svelte +1 -1
  158. package/src/shadcn/command/command-input.svelte +1 -1
  159. package/src/shadcn/command/command-item.svelte +1 -1
  160. package/src/shadcn/command/command-link-item.svelte +1 -1
  161. package/src/shadcn/command/command-list.svelte +1 -1
  162. package/src/shadcn/command/command-separator.svelte +1 -1
  163. package/src/shadcn/command/command-shortcut.svelte +1 -1
  164. package/src/shadcn/command/command.svelte +1 -1
  165. package/src/shadcn/context-menu/context-menu-checkbox-item.svelte +1 -1
  166. package/src/shadcn/context-menu/context-menu-content.svelte +2 -2
  167. package/src/shadcn/context-menu/context-menu-group-heading.svelte +1 -1
  168. package/src/shadcn/context-menu/context-menu-item.svelte +1 -1
  169. package/src/shadcn/context-menu/context-menu-label.svelte +1 -1
  170. package/src/shadcn/context-menu/context-menu-radio-item.svelte +1 -1
  171. package/src/shadcn/context-menu/context-menu-separator.svelte +1 -1
  172. package/src/shadcn/context-menu/context-menu-shortcut.svelte +1 -1
  173. package/src/shadcn/context-menu/context-menu-sub-content.svelte +1 -1
  174. package/src/shadcn/context-menu/context-menu-sub-trigger.svelte +1 -1
  175. package/src/shadcn/context-menu/context-menu-trigger.svelte +1 -1
  176. package/src/shadcn/dialog/dialog-content.svelte +1 -1
  177. package/src/shadcn/dialog/dialog-description.svelte +1 -1
  178. package/src/shadcn/dialog/dialog-footer.svelte +1 -1
  179. package/src/shadcn/dialog/dialog-header.svelte +1 -1
  180. package/src/shadcn/dialog/dialog-overlay.svelte +1 -1
  181. package/src/shadcn/dialog/dialog-title.svelte +1 -1
  182. package/src/shadcn/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
  183. package/src/shadcn/dropdown-menu/dropdown-menu-content.svelte +1 -1
  184. package/src/shadcn/dropdown-menu/dropdown-menu-group-heading.svelte +1 -1
  185. package/src/shadcn/dropdown-menu/dropdown-menu-item.svelte +1 -1
  186. package/src/shadcn/dropdown-menu/dropdown-menu-label.svelte +1 -1
  187. package/src/shadcn/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
  188. package/src/shadcn/dropdown-menu/dropdown-menu-separator.svelte +1 -1
  189. package/src/shadcn/dropdown-menu/dropdown-menu-shortcut.svelte +1 -1
  190. package/src/shadcn/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
  191. package/src/shadcn/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
  192. package/src/shadcn/empty/empty-content.svelte +1 -1
  193. package/src/shadcn/empty/empty-description.svelte +1 -1
  194. package/src/shadcn/empty/empty-header.svelte +1 -1
  195. package/src/shadcn/empty/empty-media.svelte +1 -1
  196. package/src/shadcn/empty/empty-title.svelte +1 -1
  197. package/src/shadcn/empty/empty.svelte +1 -1
  198. package/src/shadcn/field/field-content.svelte +1 -1
  199. package/src/shadcn/field/field-description.svelte +1 -1
  200. package/src/shadcn/field/field-error.svelte +1 -1
  201. package/src/shadcn/field/field-group.svelte +1 -1
  202. package/src/shadcn/field/field-label.svelte +1 -1
  203. package/src/shadcn/field/field-legend.svelte +1 -1
  204. package/src/shadcn/field/field-separator.svelte +1 -1
  205. package/src/shadcn/field/field-set.svelte +1 -1
  206. package/src/shadcn/field/field-title.svelte +1 -1
  207. package/src/shadcn/field/field.svelte +1 -1
  208. package/src/shadcn/field/simple-field.svelte +1 -1
  209. package/src/shadcn/hover-card/hover-card-content.svelte +1 -1
  210. package/src/shadcn/input/input.svelte +1 -1
  211. package/src/shadcn/input/secret-input.svelte +1 -1
  212. package/src/shadcn/input-otp/input-otp-group.svelte +1 -1
  213. package/src/shadcn/input-otp/input-otp-separator.svelte +1 -1
  214. package/src/shadcn/input-otp/input-otp-slot.svelte +1 -1
  215. package/src/shadcn/input-otp/input-otp.svelte +1 -1
  216. package/src/shadcn/kbd/kbd-group.svelte +1 -1
  217. package/src/shadcn/kbd/kbd.svelte +1 -1
  218. package/src/shadcn/label/label.svelte +1 -1
  219. package/src/shadcn/marker/marker-content.svelte +1 -1
  220. package/src/shadcn/marker/marker-icon.svelte +1 -1
  221. package/src/shadcn/marker/marker.svelte +1 -1
  222. package/src/shadcn/message/message-avatar.svelte +1 -1
  223. package/src/shadcn/message/message-content.svelte +1 -1
  224. package/src/shadcn/message/message-footer.svelte +1 -1
  225. package/src/shadcn/message/message-group.svelte +1 -1
  226. package/src/shadcn/message/message-header.svelte +1 -1
  227. package/src/shadcn/message/message.svelte +1 -1
  228. package/src/shadcn/message-scroller/message-scroller-button.svelte +1 -1
  229. package/src/shadcn/message-scroller/message-scroller-content.svelte +1 -1
  230. package/src/shadcn/message-scroller/message-scroller-item.svelte +1 -1
  231. package/src/shadcn/message-scroller/message-scroller-viewport.svelte +1 -1
  232. package/src/shadcn/message-scroller/message-scroller.svelte +1 -1
  233. package/src/shadcn/popover/popover-content.svelte +1 -1
  234. package/src/shadcn/popover/popover-description.svelte +1 -1
  235. package/src/shadcn/popover/popover-header.svelte +1 -1
  236. package/src/shadcn/popover/popover-title.svelte +1 -1
  237. package/src/shadcn/popover/popover-trigger.svelte +1 -1
  238. package/src/shadcn/progress/progress.svelte +1 -1
  239. package/src/shadcn/radio-group/radio-group-item.svelte +1 -1
  240. package/src/shadcn/radio-group/radio-group.svelte +1 -1
  241. package/src/shadcn/scroll-area/scroll-area-scrollbar.svelte +1 -1
  242. package/src/shadcn/scroll-area/scroll-area.svelte +1 -1
  243. package/src/shadcn/select/select-content.svelte +2 -2
  244. package/src/shadcn/select/select-group-heading.svelte +1 -1
  245. package/src/shadcn/select/select-group.svelte +1 -1
  246. package/src/shadcn/select/select-item.svelte +1 -1
  247. package/src/shadcn/select/select-label.svelte +1 -1
  248. package/src/shadcn/select/select-scroll-down-button.svelte +1 -1
  249. package/src/shadcn/select/select-scroll-up-button.svelte +1 -1
  250. package/src/shadcn/select/select-separator.svelte +1 -1
  251. package/src/shadcn/select/select-trigger.svelte +1 -1
  252. package/src/shadcn/separator/separator.svelte +1 -1
  253. package/src/shadcn/sheet/sheet-content.svelte +1 -1
  254. package/src/shadcn/sheet/sheet-description.svelte +1 -1
  255. package/src/shadcn/sheet/sheet-footer.svelte +1 -1
  256. package/src/shadcn/sheet/sheet-header.svelte +1 -1
  257. package/src/shadcn/sheet/sheet-overlay.svelte +1 -1
  258. package/src/shadcn/sheet/sheet-title.svelte +1 -1
  259. package/src/shadcn/sidebar/sidebar-content.svelte +1 -1
  260. package/src/shadcn/sidebar/sidebar-footer.svelte +1 -1
  261. package/src/shadcn/sidebar/sidebar-group-action.svelte +1 -1
  262. package/src/shadcn/sidebar/sidebar-group-content.svelte +1 -1
  263. package/src/shadcn/sidebar/sidebar-group-label.svelte +1 -1
  264. package/src/shadcn/sidebar/sidebar-group.svelte +1 -1
  265. package/src/shadcn/sidebar/sidebar-header.svelte +1 -1
  266. package/src/shadcn/sidebar/sidebar-input.svelte +1 -1
  267. package/src/shadcn/sidebar/sidebar-inset.svelte +1 -1
  268. package/src/shadcn/sidebar/sidebar-menu-action.svelte +1 -1
  269. package/src/shadcn/sidebar/sidebar-menu-badge.svelte +1 -1
  270. package/src/shadcn/sidebar/sidebar-menu-button.svelte +1 -1
  271. package/src/shadcn/sidebar/sidebar-menu-item.svelte +1 -1
  272. package/src/shadcn/sidebar/sidebar-menu-skeleton.svelte +1 -1
  273. package/src/shadcn/sidebar/sidebar-menu-sub-button.svelte +1 -1
  274. package/src/shadcn/sidebar/sidebar-menu-sub-item.svelte +1 -1
  275. package/src/shadcn/sidebar/sidebar-menu-sub.svelte +1 -1
  276. package/src/shadcn/sidebar/sidebar-menu.svelte +1 -1
  277. package/src/shadcn/sidebar/sidebar-provider.svelte +1 -1
  278. package/src/shadcn/sidebar/sidebar-rail.svelte +1 -1
  279. package/src/shadcn/sidebar/sidebar-separator.svelte +1 -1
  280. package/src/shadcn/sidebar/sidebar-trigger.svelte +1 -1
  281. package/src/shadcn/sidebar/sidebar.svelte +1 -1
  282. package/src/shadcn/skeleton/skeleton.svelte +1 -1
  283. package/src/shadcn/slider/slider.svelte +1 -1
  284. package/src/shadcn/spinner/spinner.svelte +1 -1
  285. package/src/shadcn/switch/switch.svelte +1 -1
  286. package/src/shadcn/table/table-body.svelte +1 -1
  287. package/src/shadcn/table/table-caption.svelte +1 -1
  288. package/src/shadcn/table/table-cell.svelte +1 -1
  289. package/src/shadcn/table/table-footer.svelte +1 -1
  290. package/src/shadcn/table/table-head.svelte +1 -1
  291. package/src/shadcn/table/table-header.svelte +1 -1
  292. package/src/shadcn/table/table-row.svelte +1 -1
  293. package/src/shadcn/table/table.svelte +1 -1
  294. package/src/shadcn/tabs/tabs-content.svelte +1 -1
  295. package/src/shadcn/tabs/tabs-list.svelte +1 -1
  296. package/src/shadcn/tabs/tabs-trigger.svelte +1 -1
  297. package/src/shadcn/tabs/tabs.svelte +1 -1
  298. package/src/shadcn/textarea/textarea.svelte +1 -1
  299. package/src/shadcn/toggle/toggle.svelte +1 -1
  300. package/src/shadcn/toggle-group/toggle-group-item.svelte +1 -1
  301. package/src/shadcn/toggle-group/toggle-group.svelte +1 -1
  302. package/src/shadcn/tooltip/tooltip-content.svelte +2 -2
  303. package/src/shadcn/trace/trace-collapsible-content.svelte +1 -1
  304. package/src/shadcn/trace/trace-collapsible-trigger.svelte +1 -1
  305. package/src/shadcn/trace/trace-collapsible.svelte +1 -1
  306. package/src/shadcn/trace/trace-description.svelte +1 -1
  307. package/src/shadcn/trace/trace-icon.svelte +1 -1
  308. package/src/shadcn/trace/trace-line.svelte +1 -1
  309. package/src/shadcn/trace/trace-title.svelte +1 -1
  310. package/src/shadcn/trace/trace.svelte +1 -1
@@ -24,7 +24,7 @@
24
24
  // =========================
25
25
  // IMPORTS
26
26
  // =========================
27
- import { cn } from "@heyramzi/utils";
27
+ import { cn } from "../../lib/utils.js";
28
28
  import SegmentedNav from "./segmented-nav.svelte";
29
29
 
30
30
  // =========================
@@ -29,7 +29,7 @@ export type SegmentContent = {
29
29
  // =========================
30
30
  // IMPORTS
31
31
  // =========================
32
- import { cn } from "@heyramzi/utils";
32
+ import { cn } from "../../lib/utils.js";
33
33
  import { Icon } from "../icon/index.js";
34
34
  import { Mark } from "../mark/index.js";
35
35
 
@@ -2,7 +2,7 @@
2
2
  // =========================
3
3
  // IMPORTS
4
4
  // =========================
5
- import { cn } from "@heyramzi/utils";
5
+ import { cn } from "../../lib/utils.js";
6
6
  import Segment from "./segment.svelte";
7
7
  import type { TabDef } from "./animated-tabs.svelte";
8
8
  import SegmentedTrack from "./segmented-track.svelte";
@@ -9,7 +9,7 @@ export type SegmentedNavItem = SegmentContent & { href: string };
9
9
  // =========================
10
10
  // IMPORTS
11
11
  // =========================
12
- import { cn } from "@heyramzi/utils";
12
+ import { cn } from "../../lib/utils.js";
13
13
  import Segment from "./segment.svelte";
14
14
  import SegmentedTrack from "./segmented-track.svelte";
15
15
  import { segmentedTriggerClass } from "./segmented.js";
@@ -4,7 +4,7 @@
4
4
  // =========================
5
5
  import { CaretDown } from "phosphor-svelte";
6
6
  import { Picker } from "../picker/index.js";
7
- import { cn } from "@heyramzi/utils";
7
+ import { cn } from "../../lib/utils.js";
8
8
  import { segmentedTriggerClass, type SegmentedVariant } from "./segmented.js";
9
9
  import type { SegmentContent } from "./segment.svelte";
10
10
 
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import type { Snippet } from "svelte";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import { segmentedTrackClass, type SegmentedVariant } from "./segmented.js";
8
8
  import { slidingPill } from "../../lib/sliding-pill.js";
9
9
 
@@ -23,7 +23,7 @@ const POP_WINDOW_MS = 350 + 4 * 40;
23
23
 
24
24
  <script lang="ts">
25
25
  import { Star } from "phosphor-svelte";
26
- import { cn } from "@heyramzi/utils";
26
+ import { cn } from "../../lib/utils.js";
27
27
 
28
28
  interface Props {
29
29
  /** Current rating value (0 = unrated). */
@@ -10,7 +10,7 @@
10
10
  // =========================
11
11
  // IMPORTS
12
12
  // =========================
13
- import { cn } from "@heyramzi/utils";
13
+ import { cn } from "../../lib/utils.js";
14
14
  import * as Table from "../../shadcn/table/index.js";
15
15
 
16
16
  // =========================
@@ -6,7 +6,7 @@
6
6
  // =========================
7
7
  // IMPORTS
8
8
  // =========================
9
- import { cn } from "@heyramzi/utils";
9
+ import { cn } from "../../lib/utils.js";
10
10
  import BeamSvg from "./diagrams/BeamSvg.svelte";
11
11
  import { usePathCalculator } from "./path-calculator.svelte.js";
12
12
 
@@ -1,4 +1,3 @@
1
- import { tryCatch } from "@heyramzi/utils";
2
1
  import type { BorderBeamSize } from "./presets.js";
3
2
 
4
3
  interface PropertyRegistration {
@@ -32,7 +31,10 @@ export function registerBorderBeamProperties(id: string, size: BorderBeamSize):
32
31
  if (typeof registry?.registerProperty !== "function") return;
33
32
 
34
33
  for (const registration of getBorderBeamPropertyRegistrations(id, size)) {
35
- tryCatch(() => registry.registerProperty?.(registration));
34
+ // A second register of the same name throws. The first one already holds, so there is nothing to do.
35
+ try {
36
+ registry.registerProperty?.(registration);
37
+ } catch {}
36
38
  }
37
39
  }
38
40
 
@@ -18,7 +18,7 @@
18
18
  // IMPORTS
19
19
  // =========================
20
20
  import "./ImageComparison.css";
21
- import { cn } from "@heyramzi/utils";
21
+ import { cn } from "../../lib/utils.js";
22
22
  import { untrack } from "svelte";
23
23
  import { positionAt } from "./compare.js";
24
24
 
@@ -40,7 +40,7 @@
40
40
  // IMPORTS
41
41
  // =========================
42
42
  import "./ImageReveal.css";
43
- import { cn } from "@heyramzi/utils";
43
+ import { cn } from "../../lib/utils.js";
44
44
 
45
45
  // =========================
46
46
  // PROPS
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./MagicCard.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import type { Snippet } from "svelte";
8
8
 
9
9
  // =========================
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./Marquee.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import type { Snippet } from "svelte";
8
8
 
9
9
  // =========================
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./ProgressiveBlur.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
 
8
8
  // =========================
9
9
  // TYPES
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./reveal.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import type { Snippet } from "svelte";
8
8
  import { observeInView } from "./observe.js";
9
9
  import type { RevealTiming, RevealViewOptions } from "./types.js";
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./reveal.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import type { Snippet } from "svelte";
8
8
  import { observeInView } from "./observe.js";
9
9
  import type { RevealTiming, RevealViewOptions } from "./types.js";
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./reveal.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import { observeInView } from "./observe.js";
8
8
  import type { RevealPer, RevealTiming, RevealViewOptions } from "./types.js";
9
9
 
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import { untrack } from "svelte";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import { resolveColor } from "./color.js";
8
8
  import {
9
9
  createShaderGradientRenderer,
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./Spotlight.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
 
8
8
  // =========================
9
9
  // TYPES
@@ -3,7 +3,7 @@
3
3
  // IMPORTS
4
4
  // =========================
5
5
  import "./ThemeToggle.css";
6
- import { cn } from "@heyramzi/utils";
6
+ import { cn } from "../../lib/utils.js";
7
7
  import { Monitor, Moon, Sun } from "phosphor-svelte";
8
8
  import { revealTheme } from "../../lib/theme-transition.js";
9
9
 
@@ -69,8 +69,8 @@
69
69
  }
70
70
 
71
71
  function iconClass(show: boolean, tilt: "rotate-90" | "-rotate-90") {
72
- return `absolute size-4 transition-all duration-300 ${
73
- show ? "scale-100 rotate-0 opacity-100" : `scale-0 ${tilt} opacity-0`
72
+ return `absolute size-4 transition-[opacity,scale,rotate] duration-300 ${
73
+ show ? "scale-100 rotate-0 opacity-100" : `scale-90 ${tilt} opacity-0`
74
74
  }`;
75
75
  }
76
76
  </script>
@@ -107,7 +107,7 @@
107
107
  aria-label={text}
108
108
  {title}
109
109
  class={cn(
110
- "theme-toggle relative flex cursor-pointer items-center justify-center rounded-lg transition-all duration-300",
110
+ "theme-toggle relative flex cursor-pointer items-center justify-center rounded-lg transition-[background-color,border-color,color] duration-300",
111
111
  size === "sm" ? "size-8" : "size-10",
112
112
  style === "inverted" && "theme-toggle--inverted",
113
113
  style === "ghost" && "text-muted-foreground hover:bg-muted/40 hover:text-foreground",
@@ -0,0 +1,18 @@
1
+ // The class merge and prop types every shadcn primitive is written against. They live here, not in
2
+ // a shared utils package, so this public package installs with nothing private behind it.
3
+ import { type ClassValue, clsx } from "clsx";
4
+ import { twMerge } from "tailwind-merge";
5
+
6
+ export function cn(...inputs: ClassValue[]) {
7
+ return twMerge(clsx(inputs));
8
+ }
9
+
10
+ export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & {
11
+ ref?: U | null;
12
+ };
13
+
14
+ export type WithoutChildren<T> = T extends { children?: unknown } ? Omit<T, "children"> : T;
15
+
16
+ export type WithoutChild<T> = T extends { child?: unknown } ? Omit<T, "child"> : T;
17
+
18
+ export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive } from "bits-ui";
3
- import { cn, type WithoutChild } from "@heyramzi/utils";
3
+ import { cn, type WithoutChild } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { CaretDown } from "phosphor-svelte";
3
3
  import { Accordion as AccordionPrimitive } from "bits-ui";
4
- import { cn, type WithoutChild } from "@heyramzi/utils";
4
+ import { cn, type WithoutChild } from "../../lib/utils.js";
5
5
  import type { Snippet } from "svelte";
6
6
 
7
7
  let {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Accordion as AccordionPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -20,7 +20,7 @@
20
20
 
21
21
  <script lang="ts">
22
22
  import type { HTMLAttributes } from "svelte/elements";
23
- import { cn, type WithElementRef } from "@heyramzi/utils";
23
+ import { cn, type WithElementRef } from "../../lib/utils.js";
24
24
 
25
25
  let {
26
26
  ref = $bindable(null),
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
3
3
  import { buttonVariants } from "../button/index.js";
4
- import { cn } from "@heyramzi/utils";
4
+ import { cn } from "../../lib/utils.js";
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
3
3
  import { buttonVariants } from "../button/index.js";
4
- import { cn } from "@heyramzi/utils";
4
+ import { cn } from "../../lib/utils.js";
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -2,7 +2,7 @@
2
2
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
3
3
  import AlertDialogPortal from "./alert-dialog-portal.svelte";
4
4
  import AlertDialogOverlay from "./alert-dialog-overlay.svelte";
5
- import { cn, type WithoutChild, type WithoutChildrenOrChild } from "@heyramzi/utils";
5
+ import { cn, type WithoutChild, type WithoutChildrenOrChild } from "../../lib/utils.js";
6
6
  import type { ComponentProps } from "svelte";
7
7
 
8
8
  let {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
5
  let {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { AlertDialog as AlertDialogPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Button, type ButtonProps } from "../button/index.js";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
5
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
5
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
5
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
5
  let {
@@ -19,7 +19,7 @@
19
19
  </script>
20
20
 
21
21
  <script lang="ts">
22
- import { cn, type WithElementRef } from "@heyramzi/utils";
22
+ import { cn, type WithElementRef } from "../../lib/utils.js";
23
23
  import type { HTMLAttributes } from "svelte/elements";
24
24
 
25
25
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
5
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { Snippet } from "svelte";
4
4
  import type { HTMLButtonAttributes } from "svelte/elements";
5
5
 
@@ -24,7 +24,7 @@
24
24
  </script>
25
25
 
26
26
  <script lang="ts">
27
- import { cn, type WithElementRef } from "@heyramzi/utils";
27
+ import { cn, type WithElementRef } from "../../lib/utils.js";
28
28
  import type { HTMLAttributes } from "svelte/elements";
29
29
 
30
30
  let {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Avatar as AvatarPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Avatar as AvatarPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { Avatar as AvatarPrimitive } from "bits-ui";
3
- import { cn } from "@heyramzi/utils";
3
+ import { cn } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -24,7 +24,7 @@
24
24
 
25
25
  <script lang="ts">
26
26
  import type { HTMLAnchorAttributes } from "svelte/elements";
27
- import { cn, type WithElementRef } from "@heyramzi/utils";
27
+ import { cn, type WithElementRef } from "../../lib/utils.js";
28
28
  import { TONE_CLASS, type Tone } from "../../lib/tone.js";
29
29
 
30
30
  let {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { DotsThree } from "phosphor-svelte";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
- import { cn, type WithElementRef, type WithoutChildren } from "@heyramzi/utils";
4
+ import { cn, type WithElementRef, type WithoutChildren } from "../../lib/utils.js";
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLLiAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAnchorAttributes } from "svelte/elements";
3
3
  import type { Snippet } from "svelte";
4
- import { cn, type WithElementRef } from "@heyramzi/utils";
4
+ import { cn, type WithElementRef } from "../../lib/utils.js";
5
5
 
6
6
  let {
7
7
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLOlAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import { CaretRight } from "phosphor-svelte";
3
- import { cn, type WithElementRef } from "@heyramzi/utils";
3
+ import { cn, type WithElementRef } from "../../lib/utils.js";
4
4
  import type { HTMLLiAttributes } from "svelte/elements";
5
5
 
6
6
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { WithElementRef } from "@heyramzi/utils";
2
+ import type { WithElementRef } from "../../lib/utils.js";
3
3
  import type { HTMLAttributes } from "svelte/elements";
4
4
 
5
5
  let {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { cn, type WithElementRef } from "@heyramzi/utils";
2
+ import { cn, type WithElementRef } from "../../lib/utils.js";
3
3
  import type { Snippet } from "svelte";
4
4
  import type { HTMLAttributes } from "svelte/elements";
5
5