@rimelight/ui 0.0.46 → 0.0.48

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 (222) hide show
  1. package/dist/icons-DPnFQCts.d.mts +72 -0
  2. package/dist/icons.d.mts +1 -1
  3. package/dist/index.d.mts +5 -6
  4. package/dist/preset.d.mts +1 -1
  5. package/dist/preset.mjs +73 -1
  6. package/dist/resolver.d.mts +4 -5
  7. package/dist/resolver.mjs +2 -4
  8. package/dist/shortcuts.d.mts +10 -11
  9. package/dist/stores.d.mts +3 -4
  10. package/dist/{types-DqAgCNcm.d.mts → types-DWmKMcYC.d.mts} +1 -1
  11. package/dist/types.d.mts +1 -1
  12. package/package.json +8 -6
  13. package/src/components/3d-hover/RLS3dHover.tsx +21 -0
  14. package/src/components/accordion/RLSAccordion.tsx +112 -0
  15. package/src/components/app/RLSApp.tsx +21 -0
  16. package/src/components/aspect-ratio/RLSAspectRatio.tsx +30 -0
  17. package/src/components/audio/RLSAudio.tsx +27 -0
  18. package/src/components/avatar/RLSAvatar.tsx +142 -0
  19. package/src/components/avatar/avatar.ts +22 -21
  20. package/src/components/avatar-group/RLSAvatarGroup.tsx +163 -0
  21. package/src/components/badge/RLSBadge.tsx +1 -1
  22. package/src/components/badge/RLVBadge.vue +5 -3
  23. package/src/components/banner/RLABanner.astro +1 -1
  24. package/src/components/banner/RLSBanner.tsx +151 -0
  25. package/src/components/breadcrumb/RLSBreadcrumb.tsx +194 -0
  26. package/src/components/browser-mockup/RLSBrowserMockup.tsx +21 -0
  27. package/src/components/button/RLSButton.tsx +53 -38
  28. package/src/components/button/RLVButton.vue +44 -32
  29. package/src/components/calendar/RLSCalendar.tsx +26 -0
  30. package/src/components/callout/RLSCallout.tsx +151 -0
  31. package/src/components/card/RLSCard.tsx +4 -0
  32. package/src/components/card/RLVCard.vue +4 -0
  33. package/src/components/card/card.ts +10 -0
  34. package/src/components/carousel/RLACarousel.astro +14 -1
  35. package/src/components/carousel/RLSCarousel.tsx +260 -0
  36. package/src/components/chart/RLSChart.tsx +299 -0
  37. package/src/components/chat/RLSChat.tsx +27 -0
  38. package/src/components/chat-message/RLSChatMessage.tsx +27 -0
  39. package/src/components/chat-messages/RLSChatMessages.tsx +27 -0
  40. package/src/components/chat-palette/RLSChatPalette.tsx +27 -0
  41. package/src/components/chat-prompt/RLSChatPrompt.tsx +27 -0
  42. package/src/components/chat-prompt-submit/RLSChatPromptSubmit.tsx +27 -0
  43. package/src/components/chat-reasoning/RLSChatReasoning.tsx +27 -0
  44. package/src/components/chat-shimmer/RLSChatShimmer.tsx +27 -0
  45. package/src/components/chat-tool/RLSChatTool.tsx +27 -0
  46. package/src/components/checkbox/RLACheckbox.astro +1 -0
  47. package/src/components/checkbox/RLSCheckbox.tsx +1 -1
  48. package/src/components/checkbox/checkbox.theme.ts +2 -2
  49. package/src/components/chip/RLSChip.tsx +65 -0
  50. package/src/components/collapsible/RLSCollapsible.tsx +89 -0
  51. package/src/components/color-area/RLSColorArea.tsx +554 -0
  52. package/src/components/color-field/RLSColorField.tsx +236 -0
  53. package/src/components/color-picker/RLSColorPicker.tsx +26 -0
  54. package/src/components/color-slider/RLSColorSlider.tsx +373 -0
  55. package/src/components/command-palette/RLSCommandPalette.tsx +26 -0
  56. package/src/components/compare/RLSCompare.tsx +26 -0
  57. package/src/components/confirm/RLSConfirm.tsx +173 -0
  58. package/src/components/container/RLSContainer.tsx +24 -0
  59. package/src/components/context-menu/RLSContextMenu.tsx +26 -0
  60. package/src/components/copy-markdown/RLSCopyMarkdown.tsx +57 -0
  61. package/src/components/dashboard-group/RLSDashboardGroup.tsx +29 -0
  62. package/src/components/dashboard-navbar/RLSDashboardNavbar.tsx +116 -0
  63. package/src/components/dashboard-panel/RLSDashboardPanel.tsx +84 -0
  64. package/src/components/dashboard-resize-handle/RLSDashboardResizeHandle.tsx +35 -0
  65. package/src/components/dashboard-search/RLADashboardSearch.astro +1 -1
  66. package/src/components/dashboard-search/RLSDashboardSearch.tsx +125 -0
  67. package/src/components/dashboard-search-button/RLSDashboardSearchButton.tsx +82 -0
  68. package/src/components/dashboard-sidebar/RLADashboardSidebar.astro +4 -4
  69. package/src/components/dashboard-sidebar/RLSDashboardSidebar.tsx +184 -0
  70. package/src/components/dashboard-sidebar-collapse/RLSDashboardSidebarCollapse.tsx +46 -0
  71. package/src/components/dashboard-sidebar-toggle/RLSDashboardSidebarToggle.tsx +35 -0
  72. package/src/components/dashboard-toolbar/RLSDashboardToolbar.tsx +49 -0
  73. package/src/components/date/RLSDate.tsx +34 -0
  74. package/src/components/dock/RLSDock.tsx +26 -0
  75. package/src/components/drawer/RLSDrawer.tsx +177 -0
  76. package/src/components/dropdown-menu/RLADropdownMenu.astro +250 -241
  77. package/src/components/dropdown-menu/RLSDropdownMenu.tsx +183 -86
  78. package/src/components/editor/RLSEditor.tsx +26 -0
  79. package/src/components/empty/RLSEmpty.tsx +132 -0
  80. package/src/components/error/RLSError.tsx +26 -0
  81. package/src/components/field-group/RLSFieldGroup.tsx +46 -0
  82. package/src/components/fieldset/RLSFieldset.tsx +26 -0
  83. package/src/components/file-upload/RLAFileUpload.astro +1 -1
  84. package/src/components/file-upload/RLSFileUpload.tsx +163 -0
  85. package/src/components/floating-action/RLSFloatingAction.tsx +26 -0
  86. package/src/components/footer/RLSFooter.tsx +56 -0
  87. package/src/components/form/RLSForm.tsx +34 -0
  88. package/src/components/gallery/RLSGallery.tsx +21 -0
  89. package/src/components/gamepad/RLSGamepad.tsx +269 -0
  90. package/src/components/grid/RLSGrid.tsx +29 -0
  91. package/src/components/head/RLAHead.astro +9 -0
  92. package/src/components/head/RLSHead.tsx +42 -0
  93. package/src/components/head/UIHead.astro +3 -0
  94. package/src/components/header/HeaderLayer.astro +1 -1
  95. package/src/components/header/RLSHeader.tsx +87 -0
  96. package/src/components/hover-card/RLSHoverCard.tsx +72 -0
  97. package/src/components/icon/RLSIcon.tsx +3 -1
  98. package/src/components/image/RLAImage.astro +447 -138
  99. package/src/components/image/RLSImage.tsx +545 -0
  100. package/src/components/image/image.theme.ts +19 -3
  101. package/src/components/image/image.ts +31 -1
  102. package/src/components/input/RLAInput.astro +62 -51
  103. package/src/components/input/RLSInput.tsx +1 -1
  104. package/src/components/input-date/RLSInputDate.tsx +92 -0
  105. package/src/components/input-menu/RLAInputMenu.astro +3 -3
  106. package/src/components/input-menu/RLSInputMenu.tsx +199 -0
  107. package/src/components/input-number/RLSInputNumber.tsx +184 -0
  108. package/src/components/input-pin/RLSInputPin.tsx +185 -0
  109. package/src/components/input-rating/RLAInputRating.astro +8 -8
  110. package/src/components/input-rating/RLSInputRating.tsx +198 -0
  111. package/src/components/input-rating/input-rating.ts +4 -0
  112. package/src/components/input-tags/RLSInputTags.tsx +94 -0
  113. package/src/components/input-time/RLSInputTime.tsx +92 -0
  114. package/src/components/kbd/RLSKbd.tsx +37 -0
  115. package/src/components/keyboard/RLSKeyboard.tsx +476 -0
  116. package/src/components/knob/RLSKnob.tsx +27 -0
  117. package/src/components/label/RLSLabel.tsx +27 -0
  118. package/src/components/layout-grid/RLALayoutGrid.astro +29 -29
  119. package/src/components/layout-grid/RLSLayoutGrid.tsx +402 -0
  120. package/src/components/layout-grid/layout-grid.ts +25 -1
  121. package/src/components/link/RLALink.astro +5 -5
  122. package/src/components/link/RLSLink.tsx +6 -5
  123. package/src/components/link/link.ts +21 -12
  124. package/src/components/link-group/RLSLinkGroup.tsx +76 -0
  125. package/src/components/listbox/RLSListbox.tsx +27 -0
  126. package/src/components/locale-selector/RLALocaleSelector.astro +110 -102
  127. package/src/components/locale-selector/RLSLocaleSelector.tsx +178 -0
  128. package/src/components/locale-selector/locale-selector.ts +2 -7
  129. package/src/components/logo/RLALogo.astro +153 -102
  130. package/src/components/logo/RLSLogo.tsx +129 -0
  131. package/src/components/main/RLSMain.tsx +40 -0
  132. package/src/components/marquee/RLSMarquee.tsx +80 -0
  133. package/src/components/meter/RLSMeter.tsx +27 -0
  134. package/src/components/modal/RLAModal.astro +1 -1
  135. package/src/components/modal/RLSModal.tsx +109 -72
  136. package/src/components/navigation-menu/RLANavigationMenu.astro +6 -6
  137. package/src/components/navigation-menu/RLSNavigationMenu.tsx +228 -0
  138. package/src/components/navigation-menu/navigation-menu.ts +2 -2
  139. package/src/components/package-managers/RLSPackageManagers.tsx +204 -0
  140. package/src/components/page/RLSPage.tsx +21 -0
  141. package/src/components/page-aside/RLSPageAside.tsx +21 -0
  142. package/src/components/page-body/RLSPageBody.tsx +21 -0
  143. package/src/components/page-header/RLSPageHeader.tsx +21 -0
  144. package/src/components/page-section/RLSPageSection.tsx +201 -0
  145. package/src/components/pagination/RLSPagination.tsx +114 -0
  146. package/src/components/password/RLSPassword.tsx +27 -0
  147. package/src/components/phone-mockup/RLSPhoneMockup.tsx +27 -0
  148. package/src/components/placeholder/RLSPlaceholder.tsx +47 -0
  149. package/src/components/popover/RLAPopover.astro +2 -2
  150. package/src/components/popover/RLSPopover.tsx +124 -0
  151. package/src/components/post/RLSPost.tsx +134 -0
  152. package/src/components/pricing-plan/RLSPricingPlan.tsx +26 -0
  153. package/src/components/pricing-table/RLSPricingTable.tsx +26 -0
  154. package/src/components/progress/RLSProgress.tsx +53 -0
  155. package/src/components/prose/RLSProse.tsx +26 -0
  156. package/src/components/qr-code/RLSQrCode.tsx +26 -0
  157. package/src/components/quote/RLAQuote.astro +10 -6
  158. package/src/components/quote/RLSQuote.tsx +37 -0
  159. package/src/components/quote/quote.theme.ts +5 -2
  160. package/src/components/radio-group/RLSRadioGroup.tsx +37 -0
  161. package/src/components/rating/RLSRating.tsx +27 -0
  162. package/src/components/scroll-area/RLAScrollArea.astro +1 -1
  163. package/src/components/scroll-area/RLSScrollArea.tsx +210 -0
  164. package/src/components/scroll-to-top/RLAScrollToTop.astro +5 -4
  165. package/src/components/scroll-to-top/RLSScrollToTop.tsx +145 -0
  166. package/src/components/search/RLASearch.astro +6 -6
  167. package/src/components/search/RLSSearch.tsx +237 -0
  168. package/src/components/select/RLASelect.astro +67 -4
  169. package/src/components/select/RLSSelect.tsx +107 -39
  170. package/src/components/select/RLVSelect.vue +50 -1
  171. package/src/components/select/select.theme.ts +30 -10
  172. package/src/components/select/select.ts +20 -1
  173. package/src/components/separator/RLSSeparator.tsx +92 -0
  174. package/src/components/share/RLSShare.tsx +66 -0
  175. package/src/components/shortcuts/RLAShortcuts.astro +2 -2
  176. package/src/components/shortcuts/RLSShortcuts.tsx +393 -0
  177. package/src/components/sidebar/RLASidebar.astro +1 -1
  178. package/src/components/sidebar/RLSSidebar.tsx +271 -0
  179. package/src/components/skeleton/RLSSkeleton.tsx +21 -0
  180. package/src/components/slideover/RLASlideover.astro +1 -1
  181. package/src/components/slideover/RLSSlideover.tsx +159 -0
  182. package/src/components/slider/RLSSlider.tsx +112 -0
  183. package/src/components/speed-dial/RLSSpeedDial.tsx +27 -0
  184. package/src/components/spinner/RLSSpinner.tsx +22 -0
  185. package/src/components/splitter/RLASplitter.astro +1 -1
  186. package/src/components/splitter/RLSSplitter.tsx +178 -0
  187. package/src/components/spoiler/RLSSpoiler.tsx +26 -0
  188. package/src/components/stepper/RLAStepper.astro +9 -9
  189. package/src/components/stepper/RLSStepper.tsx +205 -0
  190. package/src/components/steps/RLSSteps.tsx +108 -0
  191. package/src/components/sticky-surface/RLSStickySurface.tsx +63 -0
  192. package/src/components/surround/RLSSurround.tsx +57 -0
  193. package/src/components/switch/RLSSwitch.tsx +56 -0
  194. package/src/components/table/RLATable.astro +1044 -579
  195. package/src/components/table/RLSTable.tsx +893 -0
  196. package/src/components/table/table.theme.ts +47 -16
  197. package/src/components/table/table.ts +104 -66
  198. package/src/components/table-of-contents/RLSTableOfContents.tsx +196 -0
  199. package/src/components/tabs/RLATabs.astro +8 -8
  200. package/src/components/tabs/RLSTabs.tsx +298 -0
  201. package/src/components/textarea/RLATextarea.astro +1 -0
  202. package/src/components/textarea/RLSTextarea.tsx +3 -1
  203. package/src/components/theme-selector/RLAThemeSelector.astro +85 -56
  204. package/src/components/theme-selector/RLSThemeSelector.tsx +131 -0
  205. package/src/components/theme-selector/theme-selector.theme.ts +5 -7
  206. package/src/components/theme-selector/theme-selector.ts +11 -1
  207. package/src/components/timeline/RLSTimeline.tsx +171 -0
  208. package/src/components/toast/RLAToast.astro +2 -2
  209. package/src/components/toast/RLSToast.tsx +179 -0
  210. package/src/components/toaster/RLSToaster.tsx +82 -0
  211. package/src/components/tooltip/RLSTooltip.tsx +48 -0
  212. package/src/components/tour/RLSTour.tsx +26 -0
  213. package/src/components/tree/RLSTree.tsx +26 -0
  214. package/src/components/user/RLSUser.tsx +26 -0
  215. package/src/components/video/RLAVideo.astro +4 -1
  216. package/src/components/video/RLSVideo.tsx +158 -0
  217. package/src/components/watermark/RLSWatermark.tsx +27 -0
  218. package/src/components/window-mockup/RLSWindowMockup.tsx +27 -0
  219. package/src/preset.ts +73 -1
  220. package/src/resolver.ts +6 -1
  221. package/src/virtual.d.ts +6 -0
  222. package/dist/icons--RzV1RTU.d.mts +0 -72
@@ -0,0 +1,72 @@
1
+ //#region src/icons.raw.d.ts
2
+ declare const svg: (inner: string) => string;
3
+ declare const ICONS: {
4
+ readonly alertTriangle: "<path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z\"/><path d=\"M12 9v4M12 17h.01\"/>";
5
+ readonly alignLeft: "<line x1=\"21\" x2=\"3\" y1=\"6\" y2=\"6\"/><line x1=\"15\" x2=\"3\" y1=\"12\" y2=\"12\"/><line x1=\"17\" x2=\"3\" y1=\"18\" y2=\"18\"/>";
6
+ readonly arrowLeft: "<path d=\"M19 12H5M12 19l-7-7 7-7\"/>";
7
+ readonly arrowRight: "<path d=\"M5 12h14M12 5l7 7-7 7\"/>";
8
+ readonly bell: "<path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9M10.3 21a1.94 1.94 0 0 0 3.4 0\"/>";
9
+ readonly check: "<path d=\"M20 6 9 17l-5-5\"/>";
10
+ readonly chevronDown: "<path d=\"m6 9 6 6 6-6\"/>";
11
+ readonly chevronLeft: "<path d=\"m15 18-6-6 6-6\"/>";
12
+ readonly chevronRight: "<path d=\"m9 18 6-6-6-6\"/>";
13
+ readonly chevronsUpDown: "<path d=\"m7 15 5 5 5-5M7 9l5-5 5 5\"/>";
14
+ readonly circleCheck: "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m9 12 2 2 4-4\"/>";
15
+ readonly circleX: "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6M9 9l6 6\"/>";
16
+ readonly close: "<path d=\"M18 6 6 18M6 6l12 12\"/>";
17
+ readonly copy: "<rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\"/><path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\"/>";
18
+ readonly download: "<path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3\"/>";
19
+ readonly externalLink: "<path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3\"/>";
20
+ readonly fileQuestion: "<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/><path d=\"M14 2v4a2 2 0 0 0 2 2h4M9.1 11.8a3 3 0 0 1 5.8 1c0 .9-.6 1.4-1.1 1.8-.4.3-.8.7-.8 1.4M12 19h.01\"/>";
21
+ readonly gripHorizontal: "<circle cx=\"12\" cy=\"9\" r=\"1\"/><circle cx=\"19\" cy=\"9\" r=\"1\"/><circle cx=\"5\" cy=\"9\" r=\"1\"/><circle cx=\"12\" cy=\"15\" r=\"1\"/><circle cx=\"19\" cy=\"15\" r=\"1\"/><circle cx=\"5\" cy=\"15\" r=\"1\"/>";
22
+ readonly gripVertical: "<circle cx=\"9\" cy=\"12\" r=\"1\"/><circle cx=\"9\" cy=\"5\" r=\"1\"/><circle cx=\"9\" cy=\"19\" r=\"1\"/><circle cx=\"15\" cy=\"12\" r=\"1\"/><circle cx=\"15\" cy=\"5\" r=\"1\"/><circle cx=\"15\" cy=\"19\" r=\"1\"/>";
23
+ readonly hardDrive: "<rect width=\"20\" height=\"8\" x=\"2\" y=\"14\" rx=\"2\"/><path d=\"M6 18h.01M10 18h.01M2 14L5 3h14l3 11\"/>";
24
+ readonly image: "<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\"/><circle cx=\"9\" cy=\"9\" r=\"2\"/><path d=\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\"/>";
25
+ readonly imageUpscale: "<path d=\"M16 3H3v13h13V3z\"/><path d=\"M21 21v-4a2 2 0 0 0-2-2h-3M21 11V9M21 5a2 2 0 0 0-2-2h-1\"/>";
26
+ readonly info: "<circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4M12 8h.01\"/>";
27
+ readonly layers: "<path d=\"m12 3-10 5L12 13l10-5-10-5Z\"/><path d=\"M2 17l10 5 10-5M2 12l10 5 10-5\"/>";
28
+ readonly list: "<line x1=\"8\" x2=\"21\" y1=\"6\" y2=\"6\"/><line x1=\"8\" x2=\"21\" y1=\"12\" y2=\"12\"/><line x1=\"8\" x2=\"21\" y1=\"18\" y2=\"18\"/><line x1=\"3\" x2=\"3.01\" y1=\"6\" y2=\"6\"/><line x1=\"3\" x2=\"3.01\" y1=\"12\" y2=\"12\"/><line x1=\"3\" x2=\"3.01\" y1=\"18\" y2=\"18\"/>";
29
+ readonly loaderCircle: "<path d=\"M21 12a9 9 0 1 1-6.219-8.56\"/>";
30
+ readonly moon: "<path d=\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\"/>";
31
+ readonly panelLeft: "<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\"/><path d=\"M9 3v18\"/>";
32
+ readonly play: "<polygon points=\"6 3 20 12 6 21 6 3\"/>";
33
+ readonly quote: "<path d=\"M3 21c3 0 7-1 7-8V5c0-1.25-.75-2-2-2H4c-1.25 0-2 .75-2 2v6c0 1.25.75 2 2 2h3c0 4-3 6-3 6Zm11 0c3 0 7-1 7-8V5c0-1.25-.75-2-2-2h-4c-1.25 0-2 .75-2 2v6c0 1.25.75 2 2 2h3c0 4-3 6-3 6Z\"/>";
34
+ readonly search: "<circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"m21 21-4.3-4.3\"/>";
35
+ readonly share: "<circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"m8.59 13.51 6.83 3.98M15.41 6.51l-6.82 3.98\"/>";
36
+ readonly sun: "<circle cx=\"12\" cy=\"12\" r=\"4\"/><path d=\"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\"/>";
37
+ readonly uploadCloud: "<path d=\"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242M12 12v9M9 15l3-3 3 3\"/>";
38
+ readonly user: "<path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/>";
39
+ readonly star: "<polygon points=\"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2\"/>";
40
+ readonly lock: "<rect width=\"18\" height=\"11\" x=\"3\" y=\"11\" rx=\"2\" ry=\"2\"/><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"/>";
41
+ readonly eye: "<path d=\"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/>";
42
+ readonly eyeOff: "<path d=\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49\"/><path d=\"M14.084 14.158a3 3 0 0 1-4.242-4.242\"/><path d=\"M17.479 17.499A10.75 10.75 0 0 1 2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.225-4.22\"/><line x1=\"2\" x2=\"22\" y1=\"2\" y2=\"22\"/>";
43
+ readonly arrowUp: "<path d=\"M12 19V5M5 12l7-7 7 7\"/>";
44
+ readonly arrowDown: "<path d=\"M12 5v14M19 12l-7 7-7-7\"/>";
45
+ readonly edit: "<path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"/><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"/>";
46
+ readonly link: "<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/>";
47
+ readonly plus: "<path d=\"M5 12h14M12 5v14\"/>";
48
+ readonly trash: "<path d=\"M3 6h18M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6M10 11v6M14 11v6\"/><path d=\"M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2\"/>";
49
+ readonly fileText: "<path d=\"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\"/><path d=\"M14 2v4a2 2 0 0 0 2 2h4\"/><path d=\"M10 9H8M16 13H8M16 17H8\"/>";
50
+ readonly settings: "<path d=\"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/>";
51
+ readonly type: "<polyline points=\"4 7 4 4 20 4 20 7\"/><line x1=\"9\" x2=\"15\" y1=\"20\" y2=\"20\"/><line x1=\"12\" x2=\"12\" y1=\"4\" y2=\"20\"/>";
52
+ readonly code: "<polyline points=\"16 18 22 12 16 6\"/><polyline points=\"8 6 2 12 8 18\"/>";
53
+ readonly film: "<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/><path d=\"M7 3v18M17 3v18M3 7h4M17 7h4M3 12h18M3 17h4M17 17h4\"/>";
54
+ readonly messageSquare: "<path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/>";
55
+ readonly bookOpen: "<path d=\"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z\"/><path d=\"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z\"/>";
56
+ readonly panelRight: "<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\" ry=\"2\"/><path d=\"M15 3v18\"/>";
57
+ readonly pin: "<path d=\"M12 17v5\"/><path d=\"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z\"/>";
58
+ readonly ellipsisVertical: "<circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"12\" cy=\"5\" r=\"1\"/><circle cx=\"12\" cy=\"19\" r=\"1\"/>";
59
+ readonly arrowUpFromLine: "<path d=\"m18 9-6-6-6 6\"/><path d=\"M12 3v14\"/><path d=\"M5 21h14\"/>";
60
+ readonly arrowDownToLine: "<path d=\"M12 17V3\"/><path d=\"m6 11 6 6 6-6\"/><path d=\"M5 21h14\"/>";
61
+ };
62
+ //#endregion
63
+ //#region src/icons.d.ts
64
+ declare const getSvgIcon: (k: string) => string;
65
+ declare const DEFAULT_ICONS: Record<keyof typeof ICONS, string>;
66
+ type RimelightIcons = Partial<Record<keyof typeof ICONS | (string & {}), string>>;
67
+ declare const resolveIcon: (name?: string, custom?: string) => {
68
+ isClass: boolean;
69
+ content: string;
70
+ };
71
+ //#endregion
72
+ export { ICONS as a, resolveIcon as i, RimelightIcons as n, svg as o, getSvgIcon as r, DEFAULT_ICONS as t };
package/dist/icons.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ICONS, i as resolveIcon, n as RimelightIcons, o as svg, r as getSvgIcon, t as DEFAULT_ICONS } from "./icons--RzV1RTU.mjs";
1
+ import { a as ICONS, i as resolveIcon, n as RimelightIcons, o as svg, r as getSvgIcon, t as DEFAULT_ICONS } from "./icons-DPnFQCts.mjs";
2
2
  export { DEFAULT_ICONS, ICONS, RimelightIcons, getSvgIcon, resolveIcon, svg };
package/dist/index.d.mts CHANGED
@@ -1,13 +1,12 @@
1
- import { c as UIConfig } from "./types-DqAgCNcm.mjs";
1
+ import { c as UIConfig } from "./types-DWmKMcYC.mjs";
2
2
  //#region src/index.d.ts
3
- interface RimelightUIPlugin {
3
+ export interface RimelightUIPlugin {
4
4
  name: string;
5
5
  enforce?: "pre" | "post";
6
6
  resolveId?: (id: string) => string | null | undefined;
7
7
  load?: (id: string) => string | null | undefined;
8
8
  [key: string]: any;
9
9
  }
10
- type RimelightUIPlugins = (RimelightUIPlugin | RimelightUIPlugin[])[];
11
- declare const ui: ({ unocss, ...cfg }?: UIConfig) => RimelightUIPlugins;
12
- //#endregion
13
- export { RimelightUIPlugin, RimelightUIPlugins, ui };
10
+ export type RimelightUIPlugins = (RimelightUIPlugin | RimelightUIPlugin[])[];
11
+ export declare const ui: ({ unocss, ...cfg }?: UIConfig) => RimelightUIPlugins;
12
+ //#endregion
package/dist/preset.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { l as PALETTES, u as rimelightUiPreset } from "./types-DqAgCNcm.mjs";
1
+ import { l as PALETTES, u as rimelightUiPreset } from "./types-DWmKMcYC.mjs";
2
2
  export { PALETTES, rimelightUiPreset as default };
package/dist/preset.mjs CHANGED
@@ -208,7 +208,79 @@ function rimelightUiPreset({ colors, icons, presets = {} } = {}) {
208
208
  }
209
209
  [data-theme="dark"] { color-scheme: dark; }
210
210
  [data-theme="light"] { color-scheme: light; }
211
- body { background-color: var(--rl-neutral-50); color: var(--rl-neutral-950); }` }]
211
+ body { background-color: var(--rl-neutral-50); color: var(--rl-neutral-950); }
212
+
213
+ /* Reduced motion - disable all animations for users who prefer it */
214
+ @media (prefers-reduced-motion: reduce) {
215
+ *,
216
+ *::before,
217
+ *::after {
218
+ animation-duration: 0.01ms !important;
219
+ animation-iteration-count: 1 !important;
220
+ transition-duration: 0.01ms !important;
221
+ scroll-behavior: auto !important;
222
+ }
223
+ }
224
+
225
+ /* Global focus-visible ring for consistent keyboard focus */
226
+ :focus-visible {
227
+ outline: 2px solid var(--rl-primary-500);
228
+ outline-offset: 2px;
229
+ }
230
+
231
+ /* Ensure minimum touch target sizes (WCAG 2.2 - 24x24 minimum, 44x44 enhanced) */
232
+ button:not(:disabled),
233
+ [role="button"]:not(:disabled),
234
+ a[href],
235
+ input:not([type="hidden"]),
236
+ select,
237
+ textarea,
238
+ summary {
239
+ min-width: 24px;
240
+ min-height: 24px;
241
+ }
242
+
243
+ /* Enhanced touch targets for primary interactive elements */
244
+ @media (pointer: coarse) {
245
+ button:not(:disabled),
246
+ [role="button"]:not(:disabled),
247
+ a[href] {
248
+ min-width: 44px;
249
+ min-height: 44px;
250
+ }
251
+ }
252
+
253
+ /* Improve skip link visibility */
254
+ .skip-link:focus-visible {
255
+ position: absolute;
256
+ top: 1rem;
257
+ left: 1rem;
258
+ z-index: 9999;
259
+ padding: 0.75rem 1.5rem;
260
+ background: var(--rl-primary-600);
261
+ color: white;
262
+ border-radius: 0.5rem;
263
+ font-weight: 600;
264
+ text-decoration: none;
265
+ }
266
+
267
+ @keyframes carousel {
268
+ 0% { transform: translateX(-100%); }
269
+ 100% { transform: translateX(350%); }
270
+ }
271
+ @keyframes carousel-inverse {
272
+ 0% { transform: translateX(350%); }
273
+ 100% { transform: translateX(-100%); }
274
+ }
275
+ @keyframes swing {
276
+ 0%, 100% { transform: translateX(-50%); }
277
+ 50% { transform: translateX(250%); }
278
+ }
279
+ @keyframes elastic {
280
+ 0% { transform: scaleX(0.1) translateX(-100%); }
281
+ 50% { transform: scaleX(0.7) translateX(100%); }
282
+ 100% { transform: scaleX(0.1) translateX(350%); }
283
+ }` }]
212
284
  };
213
285
  }
214
286
  //#endregion
@@ -1,6 +1,5 @@
1
- import { n as ClassValue, s as ThemeConfig } from "./types-DqAgCNcm.mjs";
1
+ import { n as ClassValue, s as ThemeConfig } from "./types-DWmKMcYC.mjs";
2
2
  //#region src/resolver.d.ts
3
- declare function cx(...args: ClassValue[]): string;
4
- declare function defineTheme<const S extends string>(name: string, themeConfig: ThemeConfig<S>): (props?: any) => Record<S, string>;
5
- //#endregion
6
- export { cx, defineTheme };
3
+ export declare function cx(...args: ClassValue[]): string;
4
+ export declare function defineTheme<const S extends string>(name: string, themeConfig: ThemeConfig<S>): (props?: any) => Record<S, string>;
5
+ //#endregion
package/dist/resolver.mjs CHANGED
@@ -63,10 +63,8 @@ function defineTheme(name, themeConfig) {
63
63
  return (props = {}) => {
64
64
  const res = {};
65
65
  for (let i = 0; i < slots.length; i++) res[slots[i]] = baseMap[slots[i]] || "";
66
- const values = {
67
- ...defaultVariants,
68
- ...props
69
- };
66
+ const values = { ...defaultVariants };
67
+ for (const k in props) if (props[k] !== void 0) values[k] = props[k];
70
68
  const color = autoColor ? props.color ?? defaultVariants.color : void 0;
71
69
  for (let k = 0; k < variantKeys.length; k++) {
72
70
  const key = variantKeys[k];
@@ -1,7 +1,7 @@
1
1
  import { Atom } from "./stores.mjs";
2
2
  //#region src/shortcuts.d.ts
3
- type Handler = (e: KeyboardEvent) => void;
4
- interface ShortcutConfig {
3
+ export type Handler = (e: KeyboardEvent) => void;
4
+ export interface ShortcutConfig {
5
5
  handler: Handler;
6
6
  usingInput?: boolean | string | undefined;
7
7
  label?: string | undefined;
@@ -9,11 +9,11 @@ interface ShortcutConfig {
9
9
  category?: string | undefined;
10
10
  order?: number | undefined;
11
11
  }
12
- type ShortcutsConfig = Record<string, ShortcutConfig | Handler | false | null | undefined>;
13
- interface ShortcutsOptions {
12
+ export type ShortcutsConfig = Record<string, ShortcutConfig | Handler | false | null | undefined>;
13
+ export interface ShortcutsOptions {
14
14
  chainDelay?: number | undefined;
15
15
  }
16
- interface RegisteredShortcut {
16
+ export interface RegisteredShortcut {
17
17
  id: string;
18
18
  keys: string[];
19
19
  label?: string | undefined;
@@ -21,9 +21,8 @@ interface RegisteredShortcut {
21
21
  category?: string | undefined;
22
22
  order?: number | undefined;
23
23
  }
24
- declare const normalizeModifier: (m: string) => string;
25
- declare const formatShortcutKeys: (k: string) => string[];
26
- declare const activeShortcutsStore: Atom<RegisteredShortcut[]>;
27
- declare function defineShortcuts(config: ShortcutsConfig, options?: ShortcutsOptions): () => void;
28
- //#endregion
29
- export { Handler, RegisteredShortcut, ShortcutConfig, ShortcutsConfig, ShortcutsOptions, activeShortcutsStore, defineShortcuts, formatShortcutKeys, normalizeModifier };
24
+ export declare const normalizeModifier: (m: string) => string;
25
+ export declare const formatShortcutKeys: (k: string) => string[];
26
+ export declare const activeShortcutsStore: Atom<RegisteredShortcut[]>;
27
+ export declare function defineShortcuts(config: ShortcutsConfig, options?: ShortcutsOptions): () => void;
28
+ //#endregion
package/dist/stores.d.mts CHANGED
@@ -1,9 +1,8 @@
1
1
  //#region src/stores.d.ts
2
- interface Atom<T> {
2
+ export interface Atom<T> {
3
3
  get: () => T;
4
4
  set: (next: T) => void;
5
5
  subscribe: (fn: (val: T) => void) => () => void;
6
6
  }
7
- declare function atom<T>(initial: T): Atom<T>;
8
- //#endregion
9
- export { Atom, atom };
7
+ export declare function atom<T>(initial: T): Atom<T>;
8
+ //#endregion
@@ -1,4 +1,4 @@
1
- import { n as RimelightIcons } from "./icons--RzV1RTU.mjs";
1
+ import { n as RimelightIcons } from "./icons-DPnFQCts.mjs";
2
2
  import { Preset, UserConfig } from "unocss";
3
3
  //#region src/preset.d.ts
4
4
  declare const PALETTES: {
package/dist/types.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as Theme, c as UIConfig, i as PresetOptions, n as ClassValue, o as ThemeColor, r as ColorModeInput, s as ThemeConfig, t as BuiltinThemeColor } from "./types-DqAgCNcm.mjs";
1
+ import { a as Theme, c as UIConfig, i as PresetOptions, n as ClassValue, o as ThemeColor, r as ColorModeInput, s as ThemeConfig, t as BuiltinThemeColor } from "./types-DWmKMcYC.mjs";
2
2
  export { BuiltinThemeColor, ClassValue, ColorModeInput, PresetOptions, Theme, ThemeColor, ThemeConfig, UIConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimelight/ui",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "private": false,
5
5
  "description": "Rimelight Entertainment's UI Package",
6
6
  "homepage": "https://rimelight.com/docs",
@@ -55,18 +55,20 @@
55
55
  "access": "public"
56
56
  },
57
57
  "dependencies": {
58
- "@unocss/vite": "66.10.0",
59
- "unocss": "66.10.0"
58
+ "@unocss/vite": "66.10.2",
59
+ "unocss": "66.10.2"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@astrojs/check": "0.9.10",
63
63
  "@astrojs/solid-js": "7.0.2",
64
64
  "@astrojs/ts-plugin": "1.10.11",
65
65
  "@astrojs/vue": "7.0.2",
66
- "@rimelight/config": "0.0.4",
67
- "astro": "7.3.1",
66
+ "@rimelight/config": "0.0.6",
67
+ "@vitejs/plugin-vue": "6.0.8",
68
+ "astro": "7.3.2",
68
69
  "solid-js": "1.9.15",
69
70
  "typescript": "6.0.3",
71
+ "vite-plugin-solid": "2.11.14",
70
72
  "vue": "3.5.42"
71
73
  },
72
74
  "peerDependencies": {
@@ -91,7 +93,7 @@
91
93
  }
92
94
  },
93
95
  "engines": {
94
- "node": ">=26.7.0"
96
+ "node": ">=26.8.2"
95
97
  },
96
98
  "scripts": {
97
99
  "build": "vp pack",
@@ -0,0 +1,21 @@
1
+ import { createMemo, splitProps, type Component, type JSX } from "solid-js"
2
+ import type { ThreeDHoverProps } from "./3d-hover"
3
+ import { hover3dTheme } from "./3d-hover.theme"
4
+
5
+ export interface RLS3dHoverProps extends ThreeDHoverProps {
6
+ children?: JSX.Element
7
+ }
8
+
9
+ const RLS3dHover: Component<RLS3dHoverProps> = (allProps) => {
10
+ const [props, rest] = splitProps(allProps, ["ui", "class", "children"])
11
+
12
+ const resolvedClasses = createMemo(() => hover3dTheme({ ui: props.ui, class: props.class }))
13
+
14
+ return (
15
+ <div class={resolvedClasses().root} data-slot="root" {...rest}>
16
+ {props.children}
17
+ </div>
18
+ )
19
+ }
20
+
21
+ export default RLS3dHover
@@ -0,0 +1,112 @@
1
+ import { createMemo, splitProps, For, type Component, type JSX } from "solid-js"
2
+ import type { AccordionItem, AccordionProps } from "./accordion"
3
+ import { accordionTheme } from "./accordion.theme"
4
+ import RLSIcon from "../icon/RLSIcon"
5
+
6
+ export interface RLSAccordionProps extends AccordionProps {
7
+ children?: JSX.Element
8
+ trailingIconSlot?: JSX.Element
9
+ }
10
+
11
+ const RLSAccordion: Component<RLSAccordionProps> = (allProps) => {
12
+ const [props, rest] = splitProps(allProps, [
13
+ "items",
14
+ "summary",
15
+ "multiple",
16
+ "trailingIcon",
17
+ "disabled",
18
+ "name",
19
+ "ui",
20
+ "class",
21
+ "children",
22
+ "trailingIconSlot"
23
+ ])
24
+
25
+ const groupName =
26
+ props.name ||
27
+ (!props.multiple ? `accordion-${Math.random().toString(36).substring(2, 9)}` : undefined)
28
+
29
+ const resolvedClasses = createMemo(() =>
30
+ accordionTheme({
31
+ disabled: props.disabled ? true : false,
32
+ ui: props.ui,
33
+ class: props.class
34
+ })
35
+ )
36
+
37
+ const trailingIcon = () => props.trailingIcon ?? "chevronDown"
38
+
39
+ return props.items && props.items.length > 0 ? (
40
+ <div class={resolvedClasses().root} data-slot="root" {...rest}>
41
+ <For each={props.items}>
42
+ {(item: AccordionItem) => {
43
+ const itemDisabled = () => !!(props.disabled || item.disabled)
44
+ const itemTrailingIcon = () => (item.trailingIcon as string | undefined) || trailingIcon()
45
+ return (
46
+ <details
47
+ class={resolvedClasses().item}
48
+ data-slot="item"
49
+ name={props.name || (!props.multiple ? groupName : undefined)}
50
+ >
51
+ <summary
52
+ class={`${resolvedClasses().trigger} ${itemDisabled() ? "pointer-events-none opacity-50 select-none" : ""}`}
53
+ data-slot="trigger"
54
+ >
55
+ {item.icon ? (
56
+ <span class={resolvedClasses().leadingIcon} data-slot="leading-icon">
57
+ <span class={item.icon} aria-hidden="true" />
58
+ </span>
59
+ ) : null}
60
+
61
+ <span class={resolvedClasses().label} data-slot="label">
62
+ {item.label}
63
+ </span>
64
+
65
+ {itemTrailingIcon() ? (
66
+ <span class={resolvedClasses().trailingIcon} data-slot="trailing-icon">
67
+ {props.trailingIconSlot ?? <RLSIcon name={itemTrailingIcon()} size="md" />}
68
+ </span>
69
+ ) : null}
70
+ </summary>
71
+
72
+ <div class={resolvedClasses().content} data-slot="content">
73
+ <div class={resolvedClasses().body} data-slot="body">
74
+ {item.content}
75
+ </div>
76
+ </div>
77
+ </details>
78
+ )
79
+ }}
80
+ </For>
81
+ </div>
82
+ ) : (
83
+ <details
84
+ class={`${resolvedClasses().root} ${resolvedClasses().item}`}
85
+ data-slot="root"
86
+ name={props.name}
87
+ {...rest}
88
+ >
89
+ <summary
90
+ class={`${resolvedClasses().trigger} ${props.disabled ? "pointer-events-none opacity-50 select-none" : ""}`}
91
+ data-slot="trigger"
92
+ >
93
+ <span class={resolvedClasses().label} data-slot="label">
94
+ {props.summary}
95
+ </span>
96
+ {trailingIcon() ? (
97
+ <span class={resolvedClasses().trailingIcon} data-slot="trailing-icon">
98
+ {props.trailingIconSlot ?? <RLSIcon name={trailingIcon()} size="md" />}
99
+ </span>
100
+ ) : null}
101
+ </summary>
102
+
103
+ <div class={resolvedClasses().content} data-slot="content">
104
+ <div class={resolvedClasses().body} data-slot="body">
105
+ {props.children}
106
+ </div>
107
+ </div>
108
+ </details>
109
+ )
110
+ }
111
+
112
+ export default RLSAccordion
@@ -0,0 +1,21 @@
1
+ import { createMemo, splitProps, type Component, type JSX } from "solid-js"
2
+ import type { AppProps } from "./app"
3
+ import { appTheme } from "./app.theme"
4
+
5
+ export interface RLSAppProps extends AppProps {
6
+ children?: JSX.Element
7
+ }
8
+
9
+ const RLSApp: Component<RLSAppProps> = (allProps) => {
10
+ const [props, rest] = splitProps(allProps, ["ui", "class", "children"])
11
+
12
+ const resolvedClasses = createMemo(() => appTheme({ ui: props.ui, class: props.class }))
13
+
14
+ return (
15
+ <div class={resolvedClasses().root} data-slot="root" {...rest}>
16
+ {props.children}
17
+ </div>
18
+ )
19
+ }
20
+
21
+ export default RLSApp
@@ -0,0 +1,30 @@
1
+ import { createMemo, splitProps, type Component, type JSX } from "solid-js"
2
+ import type { AspectRatioProps } from "./aspect-ratio"
3
+ import { aspectRatioTheme } from "./aspect-ratio.theme"
4
+
5
+ export interface RLSAspectRatioProps extends AspectRatioProps {
6
+ children?: JSX.Element
7
+ }
8
+
9
+ const RLSAspectRatio: Component<RLSAspectRatioProps> = (allProps) => {
10
+ const [props, rest] = splitProps(allProps, ["ratio", "ui", "class", "children"])
11
+
12
+ const resolvedClasses = createMemo(() =>
13
+ aspectRatioTheme({ ratio: props.ratio, ui: props.ui, class: props.class })
14
+ )
15
+
16
+ return (
17
+ <div class={resolvedClasses().root} data-slot="root" {...rest}>
18
+ <svg
19
+ viewBox={`0 0 100 ${(1 / (props.ratio ?? 1)) * 100}`}
20
+ class="w-full h-auto pointer-events-none block"
21
+ aria-hidden="true"
22
+ />
23
+ <div class={resolvedClasses().content} data-slot="content">
24
+ {props.children}
25
+ </div>
26
+ </div>
27
+ )
28
+ }
29
+
30
+ export default RLSAspectRatio
@@ -0,0 +1,27 @@
1
+ import { createMemo, splitProps, type Component, type JSX } from "solid-js"
2
+ import type { AudioProps } from "./audio"
3
+ import { audioTheme } from "./audio.theme"
4
+
5
+ export interface RLSAudioProps extends AudioProps {
6
+ children?: JSX.Element
7
+ transcript?: JSX.Element
8
+ }
9
+
10
+ const RLSAudio: Component<RLSAudioProps> = (allProps) => {
11
+ const [props, rest] = splitProps(allProps, ["ui", "class", "children", "transcript"])
12
+
13
+ const resolvedClasses = createMemo(() => audioTheme({ ui: props.ui, class: props.class }))
14
+
15
+ return (
16
+ <div class={resolvedClasses().root} data-slot="root" {...rest}>
17
+ {props.children}
18
+ {props.transcript !== undefined && (
19
+ <div class="mt-2 text-sm text-zinc-400" data-slot="transcript">
20
+ {props.transcript}
21
+ </div>
22
+ )}
23
+ </div>
24
+ )
25
+ }
26
+
27
+ export default RLSAudio