@admin-layout/tailwind-ui 12.2.4-alpha.6 → 12.2.4-alpha.61

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 (403) hide show
  1. package/lib/components/AIToolbar/components/AIToolBar.d.ts +22 -0
  2. package/lib/components/AIToolbar/components/AIToolBar.d.ts.map +1 -0
  3. package/lib/components/AIToolbar/components/AIToolBar.js +87 -0
  4. package/lib/components/AIToolbar/components/AIToolBar.js.map +1 -0
  5. package/lib/components/AIToolbar/components/AIToolbarPrimitives.d.ts +14 -0
  6. package/lib/components/AIToolbar/components/AIToolbarPrimitives.d.ts.map +1 -0
  7. package/lib/components/AIToolbar/components/AIToolbarPrimitives.js +60 -0
  8. package/lib/components/AIToolbar/components/AIToolbarPrimitives.js.map +1 -0
  9. package/lib/components/AIToolbar/components/CustomCursor.d.ts +2 -0
  10. package/lib/components/AIToolbar/components/CustomCursor.d.ts.map +1 -0
  11. package/lib/components/AIToolbar/components/CustomCursor.js +66 -0
  12. package/lib/components/AIToolbar/components/CustomCursor.js.map +1 -0
  13. package/lib/components/AIToolbar/components/DragButton.d.ts +9 -0
  14. package/lib/components/AIToolbar/components/DragButton.d.ts.map +1 -0
  15. package/lib/components/AIToolbar/components/DragButton.js +57 -0
  16. package/lib/components/AIToolbar/components/DragButton.js.map +1 -0
  17. package/lib/components/AIToolbar/components/Markdown/copy-button.d.ts +7 -0
  18. package/lib/components/AIToolbar/components/Markdown/copy-button.d.ts.map +1 -0
  19. package/lib/components/AIToolbar/components/Markdown/copy-button.js +30 -0
  20. package/lib/components/AIToolbar/components/Markdown/copy-button.js.map +1 -0
  21. package/lib/components/AIToolbar/components/Markdown/index.d.ts +7 -0
  22. package/lib/components/AIToolbar/components/Markdown/index.d.ts.map +1 -0
  23. package/lib/components/AIToolbar/components/Markdown/index.js +46 -0
  24. package/lib/components/AIToolbar/components/Markdown/index.js.map +1 -0
  25. package/lib/components/AIToolbar/components/completion/AssistantAvatar.d.ts +24 -0
  26. package/lib/components/AIToolbar/components/completion/AssistantAvatar.d.ts.map +1 -0
  27. package/lib/components/AIToolbar/components/completion/AssistantAvatar.js +48 -0
  28. package/lib/components/AIToolbar/components/completion/AssistantAvatar.js.map +1 -0
  29. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.d.ts +28 -0
  30. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.d.ts.map +1 -0
  31. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.js +209 -0
  32. package/lib/components/AIToolbar/components/completion/AssistantMessageActions.js.map +1 -0
  33. package/lib/components/AIToolbar/components/completion/AssistantSenderBadge.d.ts +15 -0
  34. package/lib/components/AIToolbar/components/completion/AssistantSenderBadge.d.ts.map +1 -0
  35. package/lib/components/AIToolbar/components/completion/Audio.d.ts +5 -0
  36. package/lib/components/AIToolbar/components/completion/Audio.d.ts.map +1 -0
  37. package/lib/components/AIToolbar/components/completion/Audio.js +67 -0
  38. package/lib/components/AIToolbar/components/completion/Audio.js.map +1 -0
  39. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.d.ts +11 -0
  40. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.d.ts.map +1 -0
  41. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.js +66 -0
  42. package/lib/components/AIToolbar/components/completion/AutoSpeechVad.js.map +1 -0
  43. package/lib/components/AIToolbar/components/completion/CharacterPicker.d.ts +5 -0
  44. package/lib/components/AIToolbar/components/completion/CharacterPicker.d.ts.map +1 -0
  45. package/lib/components/AIToolbar/components/completion/CharacterPicker.js +93 -0
  46. package/lib/components/AIToolbar/components/completion/CharacterPicker.js.map +1 -0
  47. package/lib/components/AIToolbar/components/completion/Files.d.ts +7 -0
  48. package/lib/components/AIToolbar/components/completion/Files.d.ts.map +1 -0
  49. package/lib/components/AIToolbar/components/completion/Files.js +136 -0
  50. package/lib/components/AIToolbar/components/completion/Files.js.map +1 -0
  51. package/lib/components/AIToolbar/components/completion/Input.d.ts +6 -0
  52. package/lib/components/AIToolbar/components/completion/Input.d.ts.map +1 -0
  53. package/lib/components/AIToolbar/components/completion/Input.js +287 -0
  54. package/lib/components/AIToolbar/components/completion/Input.js.map +1 -0
  55. package/lib/components/AIToolbar/components/completion/MessageHistory.d.ts +11 -0
  56. package/lib/components/AIToolbar/components/completion/MessageHistory.d.ts.map +1 -0
  57. package/lib/components/AIToolbar/components/completion/MessageHistory.js +131 -0
  58. package/lib/components/AIToolbar/components/completion/MessageHistory.js.map +1 -0
  59. package/lib/components/AIToolbar/components/completion/Screenshot.d.ts +7 -0
  60. package/lib/components/AIToolbar/components/completion/Screenshot.d.ts.map +1 -0
  61. package/lib/components/AIToolbar/components/completion/Screenshot.js +30 -0
  62. package/lib/components/AIToolbar/components/completion/Screenshot.js.map +1 -0
  63. package/lib/components/AIToolbar/components/completion/index.d.ts +13 -0
  64. package/lib/components/AIToolbar/components/completion/index.d.ts.map +1 -0
  65. package/lib/components/AIToolbar/components/completion/index.js +25 -0
  66. package/lib/components/AIToolbar/components/completion/index.js.map +1 -0
  67. package/lib/components/AIToolbar/components/index.d.ts +17 -0
  68. package/lib/components/AIToolbar/components/index.d.ts.map +1 -0
  69. package/lib/components/AIToolbar/components/speech/Header.d.ts +14 -0
  70. package/lib/components/AIToolbar/components/speech/Header.d.ts.map +1 -0
  71. package/lib/components/AIToolbar/components/speech/Header.js +82 -0
  72. package/lib/components/AIToolbar/components/speech/Header.js.map +1 -0
  73. package/lib/components/AIToolbar/components/speech/ModeSwitcher.d.ts +8 -0
  74. package/lib/components/AIToolbar/components/speech/ModeSwitcher.d.ts.map +1 -0
  75. package/lib/components/AIToolbar/components/speech/ModeSwitcher.js +44 -0
  76. package/lib/components/AIToolbar/components/speech/ModeSwitcher.js.map +1 -0
  77. package/lib/components/AIToolbar/components/speech/PermissionFlow.d.ts +13 -0
  78. package/lib/components/AIToolbar/components/speech/PermissionFlow.d.ts.map +1 -0
  79. package/lib/components/AIToolbar/components/speech/PermissionFlow.js +168 -0
  80. package/lib/components/AIToolbar/components/speech/PermissionFlow.js.map +1 -0
  81. package/lib/components/AIToolbar/components/speech/QuickActions.d.ts +13 -0
  82. package/lib/components/AIToolbar/components/speech/QuickActions.d.ts.map +1 -0
  83. package/lib/components/AIToolbar/components/speech/QuickActions.js +100 -0
  84. package/lib/components/AIToolbar/components/speech/QuickActions.js.map +1 -0
  85. package/lib/components/AIToolbar/components/speech/RecordingPanel.d.ts +14 -0
  86. package/lib/components/AIToolbar/components/speech/RecordingPanel.d.ts.map +1 -0
  87. package/lib/components/AIToolbar/components/speech/RecordingPanel.js +101 -0
  88. package/lib/components/AIToolbar/components/speech/RecordingPanel.js.map +1 -0
  89. package/lib/components/AIToolbar/components/speech/ResultsSection.d.ts +12 -0
  90. package/lib/components/AIToolbar/components/speech/ResultsSection.d.ts.map +1 -0
  91. package/lib/components/AIToolbar/components/speech/ResultsSection.js +142 -0
  92. package/lib/components/AIToolbar/components/speech/ResultsSection.js.map +1 -0
  93. package/lib/components/AIToolbar/components/speech/SettingsPanel.d.ts +14 -0
  94. package/lib/components/AIToolbar/components/speech/SettingsPanel.d.ts.map +1 -0
  95. package/lib/components/AIToolbar/components/speech/SettingsPanel.js +293 -0
  96. package/lib/components/AIToolbar/components/speech/SettingsPanel.js.map +1 -0
  97. package/lib/components/AIToolbar/components/speech/StatusIndicator.d.ts +10 -0
  98. package/lib/components/AIToolbar/components/speech/StatusIndicator.d.ts.map +1 -0
  99. package/lib/components/AIToolbar/components/speech/StatusIndicator.js +48 -0
  100. package/lib/components/AIToolbar/components/speech/StatusIndicator.js.map +1 -0
  101. package/lib/components/AIToolbar/components/speech/Warning.d.ts +6 -0
  102. package/lib/components/AIToolbar/components/speech/Warning.d.ts.map +1 -0
  103. package/lib/components/AIToolbar/components/speech/Warning.js +154 -0
  104. package/lib/components/AIToolbar/components/speech/Warning.js.map +1 -0
  105. package/lib/components/AIToolbar/components/speech/audio-visualizer.d.ts +7 -0
  106. package/lib/components/AIToolbar/components/speech/audio-visualizer.d.ts.map +1 -0
  107. package/lib/components/AIToolbar/components/speech/audio-visualizer.js +194 -0
  108. package/lib/components/AIToolbar/components/speech/audio-visualizer.js.map +1 -0
  109. package/lib/components/AIToolbar/components/speech/floatArrayToWav.d.ts +2 -0
  110. package/lib/components/AIToolbar/components/speech/floatArrayToWav.d.ts.map +1 -0
  111. package/lib/components/AIToolbar/components/speech/floatArrayToWav.js +32 -0
  112. package/lib/components/AIToolbar/components/speech/floatArrayToWav.js.map +1 -0
  113. package/lib/components/AIToolbar/components/speech/index.d.ts +4 -0
  114. package/lib/components/AIToolbar/components/speech/index.d.ts.map +1 -0
  115. package/lib/components/AIToolbar/components/speech/index.js +300 -0
  116. package/lib/components/AIToolbar/components/speech/index.js.map +1 -0
  117. package/lib/components/AIToolbar/components/speech/promptTemplates.d.ts +12 -0
  118. package/lib/components/AIToolbar/components/speech/promptTemplates.d.ts.map +1 -0
  119. package/lib/components/AIToolbar/components/speech/promptTemplates.js +114 -0
  120. package/lib/components/AIToolbar/components/speech/promptTemplates.js.map +1 -0
  121. package/lib/components/AIToolbar/components/types.d.ts +194 -0
  122. package/lib/components/AIToolbar/components/types.d.ts.map +1 -0
  123. package/lib/components/AIToolbar/hooks/marketplaceCharactersRegistry.d.ts +13 -0
  124. package/lib/components/AIToolbar/hooks/marketplaceCharactersRegistry.d.ts.map +1 -0
  125. package/lib/components/AIToolbar/hooks/marketplaceCharactersRegistry.js +6 -0
  126. package/lib/components/AIToolbar/hooks/marketplaceCharactersRegistry.js.map +1 -0
  127. package/lib/components/AIToolbar/hooks/useActiveCharacter.d.ts +52 -0
  128. package/lib/components/AIToolbar/hooks/useActiveCharacter.d.ts.map +1 -0
  129. package/lib/components/AIToolbar/hooks/useActiveCharacter.js +360 -0
  130. package/lib/components/AIToolbar/hooks/useActiveCharacter.js.map +1 -0
  131. package/lib/components/AIToolbar/hooks/useCharacterSprite.d.ts +14 -0
  132. package/lib/components/AIToolbar/hooks/useCharacterSprite.d.ts.map +1 -0
  133. package/lib/components/AIToolbar/hooks/useCharacterSprite.js +103 -0
  134. package/lib/components/AIToolbar/hooks/useCharacterSprite.js.map +1 -0
  135. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.d.ts +10 -0
  136. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.d.ts.map +1 -0
  137. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.js +126 -0
  138. package/lib/components/AIToolbar/hooks/useChatBackgroundImage.js.map +1 -0
  139. package/lib/components/AIToolbar/index.d.ts +7 -0
  140. package/lib/components/AIToolbar/index.d.ts.map +1 -0
  141. package/lib/components/AIToolbar/utils/emotionClassifier.d.ts +19 -0
  142. package/lib/components/AIToolbar/utils/emotionClassifier.d.ts.map +1 -0
  143. package/lib/components/AIToolbar/utils/emotionClassifier.js +142 -0
  144. package/lib/components/AIToolbar/utils/emotionClassifier.js.map +1 -0
  145. package/lib/components/Button/Button.d.ts +1 -1
  146. package/lib/components/Button/Button.d.ts.map +1 -1
  147. package/lib/components/Button/Button.js +7 -6
  148. package/lib/components/Button/Button.js.map +1 -1
  149. package/lib/components/DatePicker/DatePicker.js +158 -140
  150. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  151. package/lib/components/Dialog/Dialog.d.ts +20 -0
  152. package/lib/components/Dialog/Dialog.d.ts.map +1 -0
  153. package/lib/components/Dialog/Dialog.js +111 -0
  154. package/lib/components/Dialog/Dialog.js.map +1 -0
  155. package/lib/components/Dialog/index.d.ts +3 -0
  156. package/lib/components/Dialog/index.d.ts.map +1 -0
  157. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +1 -2
  158. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
  159. package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
  160. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +1 -2
  161. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
  162. package/lib/components/ErrorHandlers/ErrorBoundary.js +35 -28
  163. package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
  164. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +1 -2
  165. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
  166. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +20 -15
  167. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
  168. package/lib/components/ErrorHandlers/RemixErrorBoundary.d.ts +4 -2
  169. package/lib/components/ErrorHandlers/RemixErrorBoundary.d.ts.map +1 -1
  170. package/lib/components/ErrorHandlers/RemixErrorBoundary.js +222 -100
  171. package/lib/components/ErrorHandlers/RemixErrorBoundary.js.map +1 -1
  172. package/lib/components/ErrorHandlers/SPAErrorBoundary.d.ts +4 -2
  173. package/lib/components/ErrorHandlers/SPAErrorBoundary.d.ts.map +1 -1
  174. package/lib/components/ErrorHandlers/SPAErrorBoundary.js +247 -82
  175. package/lib/components/ErrorHandlers/SPAErrorBoundary.js.map +1 -1
  176. package/lib/components/ErrorPages/403.d.ts +1 -2
  177. package/lib/components/ErrorPages/403.d.ts.map +1 -1
  178. package/lib/components/ErrorPages/403.js +26 -18
  179. package/lib/components/ErrorPages/403.js.map +1 -1
  180. package/lib/components/ErrorPages/404.d.ts +1 -2
  181. package/lib/components/ErrorPages/404.d.ts.map +1 -1
  182. package/lib/components/ErrorPages/404.js +26 -18
  183. package/lib/components/ErrorPages/404.js.map +1 -1
  184. package/lib/components/ErrorPages/500.d.ts +1 -2
  185. package/lib/components/ErrorPages/500.d.ts.map +1 -1
  186. package/lib/components/ErrorPages/500.js +26 -18
  187. package/lib/components/ErrorPages/500.js.map +1 -1
  188. package/lib/components/InputToolBar/InputToolBar.d.ts +8 -0
  189. package/lib/components/InputToolBar/InputToolBar.d.ts.map +1 -0
  190. package/lib/components/InputToolBar/InputToolBar.js +469 -0
  191. package/lib/components/InputToolBar/InputToolBar.js.map +1 -0
  192. package/lib/components/InputToolBar/defaults.d.ts +15 -0
  193. package/lib/components/InputToolBar/defaults.d.ts.map +1 -0
  194. package/lib/components/InputToolBar/defaults.js +59 -0
  195. package/lib/components/InputToolBar/defaults.js.map +1 -0
  196. package/lib/components/InputToolBar/index.d.ts +5 -0
  197. package/lib/components/InputToolBar/index.d.ts.map +1 -0
  198. package/lib/components/InputToolBar/types.d.ts +153 -0
  199. package/lib/components/InputToolBar/types.d.ts.map +1 -0
  200. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +1 -2
  201. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
  202. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +24 -19
  203. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
  204. package/lib/components/Markdown/MarkdownBreadcrumbs.d.ts +13 -0
  205. package/lib/components/Markdown/MarkdownBreadcrumbs.d.ts.map +1 -0
  206. package/lib/components/Markdown/MarkdownBreadcrumbs.js +34 -0
  207. package/lib/components/Markdown/MarkdownBreadcrumbs.js.map +1 -0
  208. package/lib/components/Markdown/MarkdownCopyButton.d.ts +10 -0
  209. package/lib/components/Markdown/MarkdownCopyButton.d.ts.map +1 -0
  210. package/lib/components/Markdown/MarkdownCopyButton.js +229 -0
  211. package/lib/components/Markdown/MarkdownCopyButton.js.map +1 -0
  212. package/lib/components/Markdown/MarkdownHeader.d.ts +13 -0
  213. package/lib/components/Markdown/MarkdownHeader.d.ts.map +1 -0
  214. package/lib/components/Markdown/MarkdownHeader.js +44 -0
  215. package/lib/components/Markdown/MarkdownHeader.js.map +1 -0
  216. package/lib/components/Markdown/MarkdownNavigation.d.ts +15 -0
  217. package/lib/components/Markdown/MarkdownNavigation.d.ts.map +1 -0
  218. package/lib/components/Markdown/MarkdownNavigation.js +38 -0
  219. package/lib/components/Markdown/MarkdownNavigation.js.map +1 -0
  220. package/lib/components/Markdown/MarkdownPage.d.ts +41 -0
  221. package/lib/components/Markdown/MarkdownPage.d.ts.map +1 -0
  222. package/lib/components/Markdown/MarkdownPage.js +238 -0
  223. package/lib/components/Markdown/MarkdownPage.js.map +1 -0
  224. package/lib/components/Markdown/MarkdownTableOfContents.d.ts +15 -0
  225. package/lib/components/Markdown/MarkdownTableOfContents.d.ts.map +1 -0
  226. package/lib/components/Markdown/MarkdownTableOfContents.js +57 -0
  227. package/lib/components/Markdown/MarkdownTableOfContents.js.map +1 -0
  228. package/lib/components/Markdown/index.d.ts +7 -0
  229. package/lib/components/Markdown/index.d.ts.map +1 -0
  230. package/lib/components/OTP/OTPInput.js +32 -30
  231. package/lib/components/OTP/OTPInput.js.map +1 -1
  232. package/lib/components/OTP/OTPVerification.js +75 -55
  233. package/lib/components/OTP/OTPVerification.js.map +1 -1
  234. package/lib/components/OTP/SingleInput.js +2 -2
  235. package/lib/components/OTP/SingleInput.js.map +1 -1
  236. package/lib/components/PageContainer/PageContainer.js +29 -22
  237. package/lib/components/PageContainer/PageContainer.js.map +1 -1
  238. package/lib/components/PageLoading/index.js +8 -7
  239. package/lib/components/PageLoading/index.js.map +1 -1
  240. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +1 -2
  241. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
  242. package/lib/components/ReactTable/Table.d.ts +1 -2
  243. package/lib/components/ReactTable/Table.d.ts.map +1 -1
  244. package/lib/components/ReactTable/Table.js +92 -71
  245. package/lib/components/ReactTable/Table.js.map +1 -1
  246. package/lib/components/ReactTable/TableFilters.d.ts +2 -3
  247. package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
  248. package/lib/components/ReactTable/TableFilters.js +40 -34
  249. package/lib/components/ReactTable/TableFilters.js.map +1 -1
  250. package/lib/components/Search/SearchInput.d.ts +1 -2
  251. package/lib/components/Search/SearchInput.d.ts.map +1 -1
  252. package/lib/components/Search/SearchInput.js +14 -13
  253. package/lib/components/Search/SearchInput.js.map +1 -1
  254. package/lib/components/Select/Select.d.ts +6 -6
  255. package/lib/components/Select/Select.d.ts.map +1 -1
  256. package/lib/components/Select/Select.js +60 -45
  257. package/lib/components/Select/Select.js.map +1 -1
  258. package/lib/components/Spin/index.js +14 -11
  259. package/lib/components/Spin/index.js.map +1 -1
  260. package/lib/components/ThemeProvider/ThemeProvider.d.ts +1 -1
  261. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  262. package/lib/components/ThemeProvider/ThemeProvider.js +29 -17
  263. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  264. package/lib/components/ThemeProvider/ThemeToggle.js +28 -25
  265. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
  266. package/lib/components/ThemeProvider/types.d.ts +3 -3
  267. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  268. package/lib/components/YantraIcon.d.ts +6 -0
  269. package/lib/components/YantraIcon.d.ts.map +1 -0
  270. package/lib/components/YantraIcon.js +32 -0
  271. package/lib/components/YantraIcon.js.map +1 -0
  272. package/lib/components/index.d.ts +6 -0
  273. package/lib/components/index.d.ts.map +1 -1
  274. package/lib/hooks/activeCharacterPreference.d.ts +24 -0
  275. package/lib/hooks/activeCharacterPreference.d.ts.map +1 -0
  276. package/lib/hooks/activeCharacterPreference.js +64 -0
  277. package/lib/hooks/activeCharacterPreference.js.map +1 -0
  278. package/lib/hooks/index.d.ts +1 -0
  279. package/lib/hooks/index.d.ts.map +1 -1
  280. package/lib/hooks/useToast.d.ts +1 -1
  281. package/lib/hooks/useToast.d.ts.map +1 -1
  282. package/lib/hooks/useToast.js +46 -37
  283. package/lib/hooks/useToast.js.map +1 -1
  284. package/lib/index.js +1 -1
  285. package/lib/shardui/accordion.js +20 -16
  286. package/lib/shardui/accordion.js.map +1 -1
  287. package/lib/shardui/alert-dialog.d.ts +2 -2
  288. package/lib/shardui/alert-dialog.js +15 -13
  289. package/lib/shardui/alert-dialog.js.map +1 -1
  290. package/lib/shardui/alert.js +4 -4
  291. package/lib/shardui/alert.js.map +1 -1
  292. package/lib/shardui/avatar.js +4 -4
  293. package/lib/shardui/avatar.js.map +1 -1
  294. package/lib/shardui/badge.d.ts +1 -1
  295. package/lib/shardui/badge.d.ts.map +1 -1
  296. package/lib/shardui/badge.js +2 -2
  297. package/lib/shardui/badge.js.map +1 -1
  298. package/lib/shardui/breadcrumb.d.ts +2 -2
  299. package/lib/shardui/breadcrumb.js +19 -16
  300. package/lib/shardui/breadcrumb.js.map +1 -1
  301. package/lib/shardui/button.js +2 -2
  302. package/lib/shardui/button.js.map +1 -1
  303. package/lib/shardui/calendar.d.ts +1 -1
  304. package/lib/shardui/calendar.d.ts.map +1 -1
  305. package/lib/shardui/calendar.js +4 -4
  306. package/lib/shardui/card.js +7 -7
  307. package/lib/shardui/card.js.map +1 -1
  308. package/lib/shardui/carousel.js +40 -33
  309. package/lib/shardui/carousel.js.map +1 -1
  310. package/lib/shardui/chart.d.ts +1 -1
  311. package/lib/shardui/chart.d.ts.map +1 -1
  312. package/lib/shardui/chart.js +81 -66
  313. package/lib/shardui/chart.js.map +1 -1
  314. package/lib/shardui/checkbox.js +10 -8
  315. package/lib/shardui/checkbox.js.map +1 -1
  316. package/lib/shardui/command.d.ts +2 -2
  317. package/lib/shardui/command.d.ts.map +1 -1
  318. package/lib/shardui/command.js +28 -24
  319. package/lib/shardui/command.js.map +1 -1
  320. package/lib/shardui/context-menu.d.ts +1 -1
  321. package/lib/shardui/context-menu.js +41 -30
  322. package/lib/shardui/context-menu.js.map +1 -1
  323. package/lib/shardui/dialog.d.ts +2 -2
  324. package/lib/shardui/dialog.js +22 -17
  325. package/lib/shardui/dialog.js.map +1 -1
  326. package/lib/shardui/drawer.d.ts +3 -3
  327. package/lib/shardui/drawer.js +17 -14
  328. package/lib/shardui/drawer.js.map +1 -1
  329. package/lib/shardui/dropdown-menu.d.ts +1 -1
  330. package/lib/shardui/dropdown-menu.js +42 -31
  331. package/lib/shardui/dropdown-menu.js.map +1 -1
  332. package/lib/shardui/form.d.ts +1 -1
  333. package/lib/shardui/form.d.ts.map +1 -1
  334. package/lib/shardui/form.js +22 -19
  335. package/lib/shardui/form.js.map +1 -1
  336. package/lib/shardui/hover-card.js +2 -2
  337. package/lib/shardui/hover-card.js.map +1 -1
  338. package/lib/shardui/input-otp.js +16 -13
  339. package/lib/shardui/input-otp.js.map +1 -1
  340. package/lib/shardui/input.js +2 -2
  341. package/lib/shardui/input.js.map +1 -1
  342. package/lib/shardui/label.js +2 -2
  343. package/lib/shardui/label.js.map +1 -1
  344. package/lib/shardui/menubar.d.ts +1 -1
  345. package/lib/shardui/menubar.js +46 -35
  346. package/lib/shardui/menubar.js.map +1 -1
  347. package/lib/shardui/navigation-menu.js +28 -24
  348. package/lib/shardui/navigation-menu.js.map +1 -1
  349. package/lib/shardui/pagination.d.ts +5 -5
  350. package/lib/shardui/pagination.js +30 -22
  351. package/lib/shardui/pagination.js.map +1 -1
  352. package/lib/shardui/popover.js +10 -8
  353. package/lib/shardui/popover.js.map +1 -1
  354. package/lib/shardui/progress.js +10 -9
  355. package/lib/shardui/progress.js.map +1 -1
  356. package/lib/shardui/radio-group.js +11 -9
  357. package/lib/shardui/radio-group.js.map +1 -1
  358. package/lib/shardui/resizable.d.ts +3 -3
  359. package/lib/shardui/resizable.d.ts.map +1 -1
  360. package/lib/shardui/resizable.js +11 -9
  361. package/lib/shardui/resizable.js.map +1 -1
  362. package/lib/shardui/scroll-area.js +14 -11
  363. package/lib/shardui/scroll-area.js.map +1 -1
  364. package/lib/shardui/select.js +49 -35
  365. package/lib/shardui/select.js.map +1 -1
  366. package/lib/shardui/separator.js +2 -2
  367. package/lib/shardui/separator.js.map +1 -1
  368. package/lib/shardui/sheet.d.ts +2 -2
  369. package/lib/shardui/sheet.js +24 -19
  370. package/lib/shardui/sheet.js.map +1 -1
  371. package/lib/shardui/sidebar.js +104 -88
  372. package/lib/shardui/sidebar.js.map +1 -1
  373. package/lib/shardui/skeleton.d.ts +1 -1
  374. package/lib/shardui/skeleton.d.ts.map +1 -1
  375. package/lib/shardui/skeleton.js +2 -2
  376. package/lib/shardui/skeleton.js.map +1 -1
  377. package/lib/shardui/slider.js +12 -10
  378. package/lib/shardui/slider.js.map +1 -1
  379. package/lib/shardui/sonner.d.ts +1 -1
  380. package/lib/shardui/sonner.d.ts.map +1 -1
  381. package/lib/shardui/sonner.js +2 -2
  382. package/lib/shardui/sonner.js.map +1 -1
  383. package/lib/shardui/switch.js +7 -6
  384. package/lib/shardui/switch.js.map +1 -1
  385. package/lib/shardui/table.js +16 -15
  386. package/lib/shardui/table.js.map +1 -1
  387. package/lib/shardui/tabs.js +4 -4
  388. package/lib/shardui/tabs.js.map +1 -1
  389. package/lib/shardui/textarea.js +2 -2
  390. package/lib/shardui/textarea.js.map +1 -1
  391. package/lib/shardui/toast.js +12 -11
  392. package/lib/shardui/toast.js.map +1 -1
  393. package/lib/shardui/toaster.d.ts +1 -2
  394. package/lib/shardui/toaster.d.ts.map +1 -1
  395. package/lib/shardui/toaster.js +21 -14
  396. package/lib/shardui/toaster.js.map +1 -1
  397. package/lib/shardui/toggle-group.js +15 -12
  398. package/lib/shardui/toggle-group.js.map +1 -1
  399. package/lib/shardui/toggle.js +2 -2
  400. package/lib/shardui/toggle.js.map +1 -1
  401. package/lib/shardui/tooltip.js +2 -2
  402. package/lib/shardui/tooltip.js.map +1 -1
  403. package/package.json +9 -3
@@ -1,17 +1,18 @@
1
- import*as React from'react';import*as NavigationMenuPrimitive from'@radix-ui/react-navigation-menu';import {cva}from'class-variance-authority';import {ChevronDown}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const NavigationMenu = React.forwardRef(({
1
+ import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as NavigationMenuPrimitive from'@radix-ui/react-navigation-menu';import {cva}from'class-variance-authority';import {ChevronDown}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const NavigationMenu = React.forwardRef(({
2
2
  className,
3
3
  children,
4
4
  ...props
5
- }, ref) => React.createElement(NavigationMenuPrimitive.Root, {
5
+ }, ref) => jsxs(NavigationMenuPrimitive.Root, {
6
6
  ref: ref,
7
7
  className: cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className),
8
- ...props
9
- }, children, React.createElement(NavigationMenuViewport, null)));
8
+ ...props,
9
+ children: [children, jsx(NavigationMenuViewport, {})]
10
+ }));
10
11
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
11
12
  const NavigationMenuList = React.forwardRef(({
12
13
  className,
13
14
  ...props
14
- }, ref) => React.createElement(NavigationMenuPrimitive.List, {
15
+ }, ref) => jsx(NavigationMenuPrimitive.List, {
15
16
  ref: ref,
16
17
  className: cn('group flex flex-1 list-none items-center justify-center space-x-1', className),
17
18
  ...props
@@ -23,19 +24,20 @@ const NavigationMenuTrigger = React.forwardRef(({
23
24
  className,
24
25
  children,
25
26
  ...props
26
- }, ref) => React.createElement(NavigationMenuPrimitive.Trigger, {
27
+ }, ref) => jsxs(NavigationMenuPrimitive.Trigger, {
27
28
  ref: ref,
28
29
  className: cn(navigationMenuTriggerStyle(), 'group', className),
29
- ...props
30
- }, children, ' ', React.createElement(ChevronDown, {
31
- className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
32
- "aria-hidden": "true"
33
- })));
30
+ ...props,
31
+ children: [children, ' ', jsx(ChevronDown, {
32
+ className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
33
+ "aria-hidden": "true"
34
+ })]
35
+ }));
34
36
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
35
37
  const NavigationMenuContent = React.forwardRef(({
36
38
  className,
37
39
  ...props
38
- }, ref) => React.createElement(NavigationMenuPrimitive.Content, {
40
+ }, ref) => jsx(NavigationMenuPrimitive.Content, {
39
41
  ref: ref,
40
42
  className: cn('left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ', className),
41
43
  ...props
@@ -45,22 +47,24 @@ const NavigationMenuLink = NavigationMenuPrimitive.Link;
45
47
  const NavigationMenuViewport = React.forwardRef(({
46
48
  className,
47
49
  ...props
48
- }, ref) => React.createElement("div", {
49
- className: cn('absolute left-0 top-full flex justify-center')
50
- }, React.createElement(NavigationMenuPrimitive.Viewport, {
51
- className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
52
- ref: ref,
53
- ...props
54
- })));
50
+ }, ref) => jsx("div", {
51
+ className: cn('absolute left-0 top-full flex justify-center'),
52
+ children: jsx(NavigationMenuPrimitive.Viewport, {
53
+ className: cn('origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]', className),
54
+ ref: ref,
55
+ ...props
56
+ })
57
+ }));
55
58
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
56
59
  const NavigationMenuIndicator = React.forwardRef(({
57
60
  className,
58
61
  ...props
59
- }, ref) => React.createElement(NavigationMenuPrimitive.Indicator, {
62
+ }, ref) => jsx(NavigationMenuPrimitive.Indicator, {
60
63
  ref: ref,
61
64
  className: cn('top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in', className),
62
- ...props
63
- }, React.createElement("div", {
64
- className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
65
- })));
65
+ ...props,
66
+ children: jsx("div", {
67
+ className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
68
+ })
69
+ }));
66
70
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;export{NavigationMenu,NavigationMenuContent,NavigationMenuIndicator,NavigationMenuItem,NavigationMenuLink,NavigationMenuList,NavigationMenuTrigger,NavigationMenuViewport,navigationMenuTriggerStyle};//# sourceMappingURL=navigation-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":[],"mappings":"6RAoCA,MAAA,cAAM,GAAA,KAAA,CAAA,UAAA,CAA0B,CAAA;AAIhC,EAAA,SAAA;AAkBA,EAAA,QAAA;AAeA,EAAA,GAAA;AAEA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAA,CAAA,uBAAsB,CAAA,IAAA,EAAA;AAiB5B,EAAA,GAAA,EAAA,GAAA;AAiBA,EAAA,SACI,EAAA,EAAA,CAAA,iEAGA,EAAA,SAAkB,CAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"navigation-menu.js","sources":["../../src/shardui/navigation-menu.tsx"],"sourcesContent":[null],"names":["_jsxs"],"mappings":"sUAwCA,MAAA,cAAM,GAAA,KAAA,CAAA,UAAqB,CAAA,CAAA;AAkB3B,EAAA,SAAA;AAeA,EAAA,QAAA;AAEA,EAAA,GAAA;AAiBA,CAAA,EAAA,GAAA,KAAAA,IAAM,CAAA,uBAAuB,CAAA,IAAA,EAAA;AAiB7B,EAAA,GAAA,EAAO,GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { ButtonProps } from './button';
3
3
  declare const Pagination: {
4
- ({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
4
+ ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
@@ -10,19 +10,19 @@ type PaginationLinkProps = {
10
10
  isActive?: boolean;
11
11
  } & Pick<ButtonProps, 'size'> & React.ComponentProps<'a'>;
12
12
  declare const PaginationLink: {
13
- ({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
13
+ ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  declare const PaginationPrevious: {
17
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
17
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  declare const PaginationNext: {
21
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
21
+ ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
  declare const PaginationEllipsis: {
25
- ({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
25
+ ({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
26
26
  displayName: string;
27
27
  };
28
28
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
@@ -1,7 +1,7 @@
1
- import*as React from'react';import {MoreHorizontal,ChevronRight,ChevronLeft}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {buttonVariants}from'./button.js';const Pagination = ({
1
+ import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import {MoreHorizontal,ChevronRight,ChevronLeft}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {buttonVariants}from'./button.js';const Pagination = ({
2
2
  className,
3
3
  ...props
4
- }) => React.createElement("nav", {
4
+ }) => jsx("nav", {
5
5
  role: "navigation",
6
6
  "aria-label": "pagination",
7
7
  className: cn('mx-auto flex w-full justify-center', className),
@@ -11,7 +11,7 @@ Pagination.displayName = 'Pagination';
11
11
  const PaginationContent = React.forwardRef(({
12
12
  className,
13
13
  ...props
14
- }, ref) => React.createElement("ul", {
14
+ }, ref) => jsx("ul", {
15
15
  ref: ref,
16
16
  className: cn('flex flex-row items-center gap-1', className),
17
17
  ...props
@@ -20,7 +20,7 @@ PaginationContent.displayName = 'PaginationContent';
20
20
  const PaginationItem = React.forwardRef(({
21
21
  className,
22
22
  ...props
23
- }, ref) => React.createElement("li", {
23
+ }, ref) => jsx("li", {
24
24
  ref: ref,
25
25
  className: cn('', className),
26
26
  ...props
@@ -31,7 +31,7 @@ const PaginationLink = ({
31
31
  isActive,
32
32
  size = 'icon',
33
33
  ...props
34
- }) => React.createElement("a", {
34
+ }) => jsx("a", {
35
35
  "aria-current": isActive ? 'page' : undefined,
36
36
  className: cn(buttonVariants({
37
37
  variant: isActive ? 'outline' : 'ghost',
@@ -43,37 +43,45 @@ PaginationLink.displayName = 'PaginationLink';
43
43
  const PaginationPrevious = ({
44
44
  className,
45
45
  ...props
46
- }) => React.createElement(PaginationLink, {
46
+ }) => jsxs(PaginationLink, {
47
47
  "aria-label": "Go to previous page",
48
48
  size: "default",
49
49
  className: cn('gap-1 pl-2.5', className),
50
- ...props
51
- }, React.createElement(ChevronLeft, {
52
- className: "h-4 w-4"
53
- }), React.createElement("span", null, "Previous"));
50
+ ...props,
51
+ children: [jsx(ChevronLeft, {
52
+ className: "h-4 w-4"
53
+ }), jsx("span", {
54
+ children: "Previous"
55
+ })]
56
+ });
54
57
  PaginationPrevious.displayName = 'PaginationPrevious';
55
58
  const PaginationNext = ({
56
59
  className,
57
60
  ...props
58
- }) => React.createElement(PaginationLink, {
61
+ }) => jsxs(PaginationLink, {
59
62
  "aria-label": "Go to next page",
60
63
  size: "default",
61
64
  className: cn('gap-1 pr-2.5', className),
62
- ...props
63
- }, React.createElement("span", null, "Next"), React.createElement(ChevronRight, {
64
- className: "h-4 w-4"
65
- }));
65
+ ...props,
66
+ children: [jsx("span", {
67
+ children: "Next"
68
+ }), jsx(ChevronRight, {
69
+ className: "h-4 w-4"
70
+ })]
71
+ });
66
72
  PaginationNext.displayName = 'PaginationNext';
67
73
  const PaginationEllipsis = ({
68
74
  className,
69
75
  ...props
70
- }) => React.createElement("span", {
76
+ }) => jsxs("span", {
71
77
  "aria-hidden": true,
72
78
  className: cn('flex h-9 w-9 items-center justify-center', className),
73
- ...props
74
- }, React.createElement(MoreHorizontal, {
75
- className: "h-4 w-4"
76
- }), React.createElement("span", {
77
- className: "sr-only"
78
- }, "More pages"));
79
+ ...props,
80
+ children: [jsx(MoreHorizontal, {
81
+ className: "h-4 w-4"
82
+ }), jsx("span", {
83
+ className: "sr-only",
84
+ children: "More pages"
85
+ })]
86
+ });
79
87
  PaginationEllipsis.displayName = 'PaginationEllipsis';export{Pagination,PaginationContent,PaginationEllipsis,PaginationItem,PaginationLink,PaginationNext,PaginationPrevious};//# sourceMappingURL=pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":[],"mappings":";EAaE,SAAA;AAGF,EAAA,GAAA;AAOA,CAAA,KAAA,KAAA,CAAA,aAAM,CAAA,KAAc,EAAA;AAKpB,EAAA;cACa,EAAE,YAAQ;AACtB,EAAA,SAAQ,EAAA,EAAA,CAAA,oCACe,EAAC,SAAK,CAAA;AAE9B,EAAA,GAAA;;;AAYE,MAAA,iBAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAGF,EAAA;AAAqD,EAAA,GAAA;;EAUnD,GAAA,EAAA,GAAA;AAGF,EAAA,aAAM,CAAA,kCAAc,EAAA,SAAA,CAAA;AAA6B,EAAA,GAAA;;iBAK/C,CAAA,WAAA,GAAA,mBAAA;AAGF,MAAA,cAAM,GAAA,KAAA,CAAA,UAAkB,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAKpD,EAAC,GAAA,KAAA,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAGF,EAAA,GAAA,EAAO,GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pagination.js","sources":["../../src/shardui/pagination.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"wRAaE,MAAA,UAAA,GAAA,CAAA;AAGF,EAAA,SAAA;AAOA,EAAA,GAAA;AAKA,CAAA;MACI,EAAA,YAAW;AACd,EAAA,YAAQ,EAAA,YAAmB;AAG5B,EAAA,aAAM,CAAA,oCAAc,EAAA,SAAA,CAAA;;;UAYlB,CAAA,WAAA,GAAA,YAAA;AAGF,MAAA,iBAAM,GAAA,KAAA,CAAkB,UAAA,CAAA,CAAA;AAA6B,EAAA,SAAA;;CAUpD,EAAC,GAAA,KAAAA,GAAA,CAAA,IAAA,EAAA;AAGF,EAAA,GAAA,EAAA;AAAiD,EAAA,SAAA,EAAA,EAAA,CAAA,kCAAoB,EAAC;;CAKrE,CAAC;AAGF,iBAAM,CAAA,WAAA,GAAkB,mBAAA;AAA6B,MAAA,cAAA,GAAA,KAAA,CAAA,UAAM,CAAA,CAAA;;EAKzD,GAAA;AAGF,CAAA,EAAA,GAAA,KACIA,GAAA,CAAA,IAAU,EACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,15 +1,17 @@
1
- import*as React from'react';import*as PopoverPrimitive from'@radix-ui/react-popover';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Popover = PopoverPrimitive.Root;
1
+ import {jsx}from'react/jsx-runtime';import*as React from'react';import*as PopoverPrimitive from'@radix-ui/react-popover';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Popover = PopoverPrimitive.Root;
2
2
  const PopoverTrigger = PopoverPrimitive.Trigger;
3
3
  const PopoverContent = React.forwardRef(({
4
4
  className,
5
5
  align = 'center',
6
6
  sideOffset = 4,
7
7
  ...props
8
- }, ref) => React.createElement(PopoverPrimitive.Portal, null, React.createElement(PopoverPrimitive.Content, {
9
- ref: ref,
10
- align: align,
11
- sideOffset: sideOffset,
12
- className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
13
- ...props
14
- })));
8
+ }, ref) => jsx(PopoverPrimitive.Portal, {
9
+ children: jsx(PopoverPrimitive.Content, {
10
+ ref: ref,
11
+ align: align,
12
+ sideOffset: sideOffset,
13
+ className: cn('z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
14
+ ...props
15
+ })
16
+ }));
15
17
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;export{Popover,PopoverContent,PopoverTrigger};//# sourceMappingURL=popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"4LAOA,MAAA,OAAA,GAAM,gBAAc,CAAA;AAEpB,MAAA,cAAM,GAAA,gBAAc,CAAA;AAmBpB,MAAA,iCAAkC,CAAA,CAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"popover.js","sources":["../../src/shardui/popover.tsx"],"sourcesContent":[null],"names":[],"mappings":"gOASA,MAAA,OAAA,GAAM,gBAAc,CAAA;AAmBpB,MAAA,iCAAkC,CAAA;;;;;;;;;;;;;;;"}
@@ -1,15 +1,16 @@
1
- import*as React from'react';import*as ProgressPrimitive from'@radix-ui/react-progress';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Progress = React.forwardRef(({
1
+ import {jsx}from'react/jsx-runtime';import*as React from'react';import*as ProgressPrimitive from'@radix-ui/react-progress';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Progress = React.forwardRef(({
2
2
  className,
3
3
  value,
4
4
  ...props
5
- }, ref) => React.createElement(ProgressPrimitive.Root, {
5
+ }, ref) => jsx(ProgressPrimitive.Root, {
6
6
  ref: ref,
7
7
  className: cn('relative h-4 w-full overflow-hidden rounded-full bg-secondary', className),
8
- ...props
9
- }, React.createElement(ProgressPrimitive.Indicator, {
10
- className: "h-full w-full flex-1 bg-primary transition-all",
11
- style: {
12
- transform: `translateX(-${100 - (value || 0)}%)`
13
- }
14
- })));
8
+ ...props,
9
+ children: jsx(ProgressPrimitive.Indicator, {
10
+ className: "h-full w-full flex-1 bg-primary transition-all",
11
+ style: {
12
+ transform: `translateX(-${100 - (value || 0)}%)`
13
+ }
14
+ })
15
+ }));
15
16
  Progress.displayName = ProgressPrimitive.Root.displayName;export{Progress};//# sourceMappingURL=progress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.js","sources":["../../src/shardui/progress.tsx"],"sourcesContent":[null],"names":[],"mappings":"8LAsBA,MAAA,QAAS,GAAQ,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"progress.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
- import*as React from'react';import*as RadioGroupPrimitive from'@radix-ui/react-radio-group';import {Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const RadioGroup = React.forwardRef(({
1
+ import {jsx}from'react/jsx-runtime';import*as React from'react';import*as RadioGroupPrimitive from'@radix-ui/react-radio-group';import {Circle}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const RadioGroup = React.forwardRef(({
2
2
  className,
3
3
  ...props
4
4
  }, ref) => {
5
- return React.createElement(RadioGroupPrimitive.Root, {
5
+ return jsx(RadioGroupPrimitive.Root, {
6
6
  className: cn('grid gap-2', className),
7
7
  ...props,
8
8
  ref: ref
@@ -13,14 +13,16 @@ const RadioGroupItem = React.forwardRef(({
13
13
  className,
14
14
  ...props
15
15
  }, ref) => {
16
- return React.createElement(RadioGroupPrimitive.Item, {
16
+ return jsx(RadioGroupPrimitive.Item, {
17
17
  ref: ref,
18
18
  className: cn('aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
19
- ...props
20
- }, React.createElement(RadioGroupPrimitive.Indicator, {
21
- className: "flex items-center justify-center"
22
- }, React.createElement(Circle, {
23
- className: "h-2.5 w-2.5 fill-current text-current"
24
- })));
19
+ ...props,
20
+ children: jsx(RadioGroupPrimitive.Indicator, {
21
+ className: "flex items-center justify-center",
22
+ children: jsx(Circle, {
23
+ className: "h-2.5 w-2.5 fill-current text-current"
24
+ })
25
+ })
26
+ });
25
27
  });
26
28
  RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;export{RadioGroup,RadioGroupItem};//# sourceMappingURL=radio-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sources":["../../src/shardui/radio-group.tsx"],"sourcesContent":[null],"names":[],"mappings":"qOAmCA,MAAA,UAAS,GAAU,KAAE,CAAA,UAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"radio-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as ResizablePrimitive from 'react-resizable-panels';
3
- declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
4
- declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLDetailsElement | HTMLPreElement | HTMLHtmlElement | HTMLHeadElement | HTMLBodyElement | HTMLMetaElement | HTMLTitleElement | HTMLScriptElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHRElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLProgressElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
3
+ declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLDetailsElement | HTMLPreElement | HTMLHtmlElement | HTMLHeadElement | HTMLBodyElement | HTMLMetaElement | HTMLTitleElement | HTMLScriptElement | HTMLSelectElement | HTMLOptionElement | HTMLOptGroupElement | HTMLInputElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableRowElement | HTMLTableCellElement | HTMLSpanElement | HTMLImageElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | HTMLObjectElement | HTMLLinkElement | HTMLMapElement | HTMLProgressElement | HTMLDialogElement | HTMLFormElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHRElement | HTMLIFrameElement | HTMLLabelElement | HTMLLegendElement | HTMLMeterElement | HTMLOListElement | HTMLOutputElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
5
5
  className?: string | undefined;
6
6
  collapsedSize?: number | undefined;
7
7
  collapsible?: boolean | undefined;
@@ -20,6 +20,6 @@ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAtt
20
20
  } & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
21
21
  declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
22
22
  withHandle?: boolean;
23
- }) => React.JSX.Element;
23
+ }) => import("react/jsx-runtime").JSX.Element;
24
24
  export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
25
25
  //# sourceMappingURL=resizable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shardui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,sBAK/G,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;kEAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,sBAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/shardui/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,4CAK/G,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;kEAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACnE,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,4CAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
- import {GripVertical}from'lucide-react';import React__default from'react';import*as ResizablePrimitive from'react-resizable-panels';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ResizablePanelGroup = ({
1
+ import {jsx}from'react/jsx-runtime';import {GripVertical}from'lucide-react';import*as ResizablePrimitive from'react-resizable-panels';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'react';import'fast-deep-equal/react.js';const ResizablePanelGroup = ({
2
2
  className,
3
3
  ...props
4
- }) => React__default.createElement(ResizablePrimitive.PanelGroup, {
4
+ }) => jsx(ResizablePrimitive.PanelGroup, {
5
5
  className: cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', className),
6
6
  ...props
7
7
  });
@@ -10,11 +10,13 @@ const ResizableHandle = ({
10
10
  withHandle,
11
11
  className,
12
12
  ...props
13
- }) => React__default.createElement(ResizablePrimitive.PanelResizeHandle, {
13
+ }) => jsx(ResizablePrimitive.PanelResizeHandle, {
14
14
  className: cn('relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90', className),
15
- ...props
16
- }, withHandle && React__default.createElement("div", {
17
- className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border"
18
- }, React__default.createElement(GripVertical, {
19
- className: "h-2.5 w-2.5"
20
- })));export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
15
+ ...props,
16
+ children: withHandle && jsx("div", {
17
+ className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
18
+ children: jsx(GripVertical, {
19
+ className: "h-2.5 w-2.5"
20
+ })
21
+ })
22
+ });export{ResizableHandle,ResizablePanel,ResizablePanelGroup};//# sourceMappingURL=resizable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,EAAA,SAAA,EAAA;iBAKI,CAAA,aAAa,CAAA,YAAQ,EAAA;AACxB,EAAA,SAAA,EAAA;AAgBD,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"resizable.js","sources":["../../src/shardui/resizable.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;AAeA,IAAA,SAAA,EAAM,2EAIkB;IACpB,QAAA,EAAUA,GAAG,CAAA,YAAQ,EAAA;AACxB,MAAA,SAAA,EAAA;AAgBD,KAAA;;"}
@@ -1,25 +1,28 @@
1
- import*as React from'react';import*as ScrollAreaPrimitive from'@radix-ui/react-scroll-area';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ScrollArea = React.forwardRef(({
1
+ import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as ScrollAreaPrimitive from'@radix-ui/react-scroll-area';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ScrollArea = React.forwardRef(({
2
2
  className,
3
3
  children,
4
4
  ...props
5
- }, ref) => React.createElement(ScrollAreaPrimitive.Root, {
5
+ }, ref) => jsxs(ScrollAreaPrimitive.Root, {
6
6
  ref: ref,
7
7
  className: cn('relative overflow-hidden', className),
8
- ...props
9
- }, React.createElement(ScrollAreaPrimitive.Viewport, {
10
- className: "h-full w-full rounded-[inherit]"
11
- }, children), React.createElement(ScrollBar, null), React.createElement(ScrollAreaPrimitive.Corner, null)));
8
+ ...props,
9
+ children: [jsx(ScrollAreaPrimitive.Viewport, {
10
+ className: "h-full min-h-0 w-full rounded-[inherit]",
11
+ children: children
12
+ }), jsx(ScrollBar, {}), jsx(ScrollAreaPrimitive.Corner, {})]
13
+ }));
12
14
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
13
15
  const ScrollBar = React.forwardRef(({
14
16
  className,
15
17
  orientation = 'vertical',
16
18
  ...props
17
- }, ref) => React.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, {
19
+ }, ref) => jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
18
20
  ref: ref,
19
21
  orientation: orientation,
20
22
  className: cn('flex touch-none select-none transition-colors', orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent p-[1px]', orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent p-[1px]', className),
21
- ...props
22
- }, React.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
23
- className: "relative flex-1 rounded-full bg-border"
24
- })));
23
+ ...props,
24
+ children: jsx(ScrollAreaPrimitive.ScrollAreaThumb, {
25
+ className: "relative flex-1 rounded-full bg-border"
26
+ })
27
+ }));
25
28
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;export{ScrollArea,ScrollBar};//# sourceMappingURL=scroll-area.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.js","sources":["../../src/shardui/scroll-area.tsx"],"sourcesContent":[null],"names":[],"mappings":"mMAmBA,MAAA,UAAM,GAAA,KAAS,CAAA,UAAA,CAAA,CAAA;AAoBf,EAAA,SAAS;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"scroll-area.js","sources":["../../src/shardui/scroll-area.tsx"],"sourcesContent":[null],"names":[],"mappings":"4OAuCA,MAAA,UAAS,GAAU,KAAE,CAAA,UAAY,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,60 +1,68 @@
1
- import*as React from'react';import*as SelectPrimitive from'@radix-ui/react-select';import {ChevronDown,ChevronUp,Check}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Select = SelectPrimitive.Root;
1
+ import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import*as SelectPrimitive from'@radix-ui/react-select';import {ChevronDown,ChevronUp,Check}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Select = SelectPrimitive.Root;
2
2
  const SelectGroup = SelectPrimitive.Group;
3
3
  const SelectValue = SelectPrimitive.Value;
4
4
  const SelectTrigger = React.forwardRef(({
5
5
  className,
6
6
  children,
7
7
  ...props
8
- }, ref) => React.createElement(SelectPrimitive.Trigger, {
8
+ }, ref) => jsxs(SelectPrimitive.Trigger, {
9
9
  ref: ref,
10
10
  className: cn('flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className),
11
- ...props
12
- }, children, React.createElement(SelectPrimitive.Icon, {
13
- asChild: true
14
- }, React.createElement(ChevronDown, {
15
- className: "h-4 w-4 opacity-50"
16
- }))));
11
+ ...props,
12
+ children: [children, jsx(SelectPrimitive.Icon, {
13
+ asChild: true,
14
+ children: jsx(ChevronDown, {
15
+ className: "h-4 w-4 opacity-50"
16
+ })
17
+ })]
18
+ }));
17
19
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
18
20
  const SelectScrollUpButton = React.forwardRef(({
19
21
  className,
20
22
  ...props
21
- }, ref) => React.createElement(SelectPrimitive.ScrollUpButton, {
23
+ }, ref) => jsx(SelectPrimitive.ScrollUpButton, {
22
24
  ref: ref,
23
25
  className: cn('flex cursor-default items-center justify-center py-1', className),
24
- ...props
25
- }, React.createElement(ChevronUp, {
26
- className: "h-4 w-4"
27
- })));
26
+ ...props,
27
+ children: jsx(ChevronUp, {
28
+ className: "h-4 w-4"
29
+ })
30
+ }));
28
31
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
29
32
  const SelectScrollDownButton = React.forwardRef(({
30
33
  className,
31
34
  ...props
32
- }, ref) => React.createElement(SelectPrimitive.ScrollDownButton, {
35
+ }, ref) => jsx(SelectPrimitive.ScrollDownButton, {
33
36
  ref: ref,
34
37
  className: cn('flex cursor-default items-center justify-center py-1', className),
35
- ...props
36
- }, React.createElement(ChevronDown, {
37
- className: "h-4 w-4"
38
- })));
38
+ ...props,
39
+ children: jsx(ChevronDown, {
40
+ className: "h-4 w-4"
41
+ })
42
+ }));
39
43
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
40
44
  const SelectContent = React.forwardRef(({
41
45
  className,
42
46
  children,
43
47
  position = 'popper',
44
48
  ...props
45
- }, ref) => React.createElement(SelectPrimitive.Portal, null, React.createElement(SelectPrimitive.Content, {
46
- ref: ref,
47
- className: cn('relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
48
- position: position,
49
- ...props
50
- }, React.createElement(SelectScrollUpButton, null), React.createElement(SelectPrimitive.Viewport, {
51
- className: cn('p-1', position === 'popper' && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]')
52
- }, children), React.createElement(SelectScrollDownButton, null))));
49
+ }, ref) => jsx(SelectPrimitive.Portal, {
50
+ children: jsxs(SelectPrimitive.Content, {
51
+ ref: ref,
52
+ className: cn('relative z-[400] max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
53
+ position: position,
54
+ ...props,
55
+ children: [jsx(SelectScrollUpButton, {}), jsx(SelectPrimitive.Viewport, {
56
+ className: cn('p-1', position === 'popper' && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]'),
57
+ children: children
58
+ }), jsx(SelectScrollDownButton, {})]
59
+ })
60
+ }));
53
61
  SelectContent.displayName = SelectPrimitive.Content.displayName;
54
62
  const SelectLabel = React.forwardRef(({
55
63
  className,
56
64
  ...props
57
- }, ref) => React.createElement(SelectPrimitive.Label, {
65
+ }, ref) => jsx(SelectPrimitive.Label, {
58
66
  ref: ref,
59
67
  className: cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className),
60
68
  ...props
@@ -64,20 +72,26 @@ const SelectItem = React.forwardRef(({
64
72
  className,
65
73
  children,
66
74
  ...props
67
- }, ref) => React.createElement(SelectPrimitive.Item, {
75
+ }, ref) => jsxs(SelectPrimitive.Item, {
68
76
  ref: ref,
69
77
  className: cn('relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className),
70
- ...props
71
- }, React.createElement("span", {
72
- className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center"
73
- }, React.createElement(SelectPrimitive.ItemIndicator, null, React.createElement(Check, {
74
- className: "h-4 w-4"
75
- }))), React.createElement(SelectPrimitive.ItemText, null, children)));
78
+ ...props,
79
+ children: [jsx("span", {
80
+ className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
81
+ children: jsx(SelectPrimitive.ItemIndicator, {
82
+ children: jsx(Check, {
83
+ className: "h-4 w-4"
84
+ })
85
+ })
86
+ }), jsx(SelectPrimitive.ItemText, {
87
+ children: children
88
+ })]
89
+ }));
76
90
  SelectItem.displayName = SelectPrimitive.Item.displayName;
77
91
  const SelectSeparator = React.forwardRef(({
78
92
  className,
79
93
  ...props
80
- }, ref) => React.createElement(SelectPrimitive.Separator, {
94
+ }, ref) => jsx(SelectPrimitive.Separator, {
81
95
  ref: ref,
82
96
  className: cn('-mx-1 my-1 h-px bg-muted', className),
83
97
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"select.js","sources":["../../src/shardui/select.tsx"],"sourcesContent":[null],"names":[],"mappings":"iPAUA,MAAA,MAAA,GAAM,eAAW,CAAA;AAEjB,MAAA,WAAM,GAAA,eAAa,CAAA;AAoBnB,MAAA,WAAM,GAAA,eAAoB,CAAA;AAc1B,MAAA,aAAM,GAAA,KAAA,CAAA,UAAsB,CAAA,CAAA;AAc5B,EAAA,SAAA;AAgCA,EAAA,QAAA;AAQA,EAAA,GAAA;AAuBA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAe,CAAA,eAAA,CAAA,OAAA,EAAA;AAQrB,EAAA,GAAA,EAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"select.js","sources":["../../src/shardui/select.tsx"],"sourcesContent":[null],"names":[],"mappings":"0RAYA,MAAA,MAAA,GAAM,eAAa,CAAA;AAoBnB,MAAA,WAAM,GAAA,eAAoB,CAAA;AAc1B,MAAA,WAAM,GAAA,eAAA,CAAsB;AAc5B,MAAA,aAAM,GAAA,KAAa,CAAA,UAAA,CAAA,CAAA;AAgCnB,EAAA,SAAA;AAQA,EAAA,QAAA;AAuBA,EAAA,GAAA;AAQA,CAAA,EAAA,GAAA,SACU,CACN,eACA,CAAA,OAAA,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,9 @@
1
- import*as React from'react';import*as SeparatorPrimitive from'@radix-ui/react-separator';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Separator = React.forwardRef(({
1
+ import {jsx}from'react/jsx-runtime';import*as React from'react';import*as SeparatorPrimitive from'@radix-ui/react-separator';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Separator = React.forwardRef(({
2
2
  className,
3
3
  orientation = 'horizontal',
4
4
  decorative = true,
5
5
  ...props
6
- }, ref) => React.createElement(SeparatorPrimitive.Root, {
6
+ }, ref) => jsx(SeparatorPrimitive.Root, {
7
7
  ref: ref,
8
8
  decorative: decorative,
9
9
  orientation: orientation,
@@ -1 +1 @@
1
- {"version":3,"file":"separator.js","sources":["../../src/shardui/separator.tsx"],"sourcesContent":[null],"names":[],"mappings":"gMAuBA,MAAA,SAAS,GAAS,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"separator.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}