@scalar/components 0.20.8 → 0.20.10

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 (416) hide show
  1. package/dist/components/ScalarButton/index.d.ts +1 -1
  2. package/dist/components/ScalarCard/index.d.ts +4 -4
  3. package/dist/components/ScalarCheckboxInput/index.d.ts +4 -4
  4. package/dist/components/ScalarCodeBlock/index.d.ts +2 -2
  5. package/dist/components/ScalarColorModeToggle/index.d.ts +3 -3
  6. package/dist/components/ScalarCombobox/ScalarCombobox.vue.d.ts +1 -1
  7. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.d.ts +1 -1
  8. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.d.ts +1 -1
  9. package/dist/components/ScalarCombobox/index.d.ts +3 -3
  10. package/dist/components/ScalarContextMenu/index.d.ts +1 -1
  11. package/dist/components/ScalarCopy/index.d.ts +3 -3
  12. package/dist/components/ScalarDropdown/index.d.ts +5 -5
  13. package/dist/components/ScalarErrorBoundary/index.d.ts +1 -1
  14. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.d.ts +1 -1
  15. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.d.ts +1 -1
  16. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.d.ts +1 -1
  17. package/dist/components/ScalarFileUpload/index.d.ts +7 -7
  18. package/dist/components/ScalarFloating/index.d.ts +2 -2
  19. package/dist/components/ScalarForm/index.d.ts +6 -6
  20. package/dist/components/ScalarHeader/index.d.ts +2 -2
  21. package/dist/components/ScalarHotkey/index.d.ts +2 -2
  22. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.d.ts +1 -1
  23. package/dist/components/ScalarIcon/index.d.ts +3 -3
  24. package/dist/components/ScalarIcon/types.d.ts +2 -2
  25. package/dist/components/ScalarIconButton/index.d.ts +1 -1
  26. package/dist/components/ScalarListbox/index.d.ts +4 -4
  27. package/dist/components/ScalarLoading/index.d.ts +2 -2
  28. package/dist/components/ScalarMarkdown/index.d.ts +2 -2
  29. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.d.ts +1 -1
  30. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.d.ts +1 -1
  31. package/dist/components/ScalarMenu/index.d.ts +11 -11
  32. package/dist/components/ScalarMenu/types.d.ts +1 -1
  33. package/dist/components/ScalarModal/index.d.ts +1 -1
  34. package/dist/components/ScalarPopover/index.d.ts +1 -1
  35. package/dist/components/ScalarSearchInput/index.d.ts +1 -1
  36. package/dist/components/ScalarSearchResults/index.d.ts +2 -2
  37. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.d.ts +1 -1
  38. package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.d.ts +1 -1
  39. package/dist/components/ScalarSidebar/index.d.ts +13 -13
  40. package/dist/components/ScalarSidebar/types.d.ts +1 -1
  41. package/dist/components/ScalarTeleport/index.d.ts +3 -3
  42. package/dist/components/ScalarTextArea/ScalarTextArea.vue.d.ts +2 -2
  43. package/dist/components/ScalarTextArea/ScalarTextArea.vue.d.ts.map +1 -1
  44. package/dist/components/ScalarTextArea/index.d.ts +1 -1
  45. package/dist/components/ScalarTextInput/index.d.ts +2 -2
  46. package/dist/components/ScalarThemeSwatches/index.d.ts +2 -2
  47. package/dist/components/ScalarToggle/index.d.ts +3 -3
  48. package/dist/components/ScalarTooltip/index.d.ts +3 -3
  49. package/dist/components/ScalarVirtualText/index.d.ts +1 -1
  50. package/dist/components/ScalarWrappingText/index.d.ts +1 -1
  51. package/dist/components/ScalarWrappingText/types.d.ts +1 -1
  52. package/dist/helpers/index.d.ts +1 -1
  53. package/dist/index.js +7820 -222
  54. package/dist/index.js.map +1 -0
  55. package/dist/style.css +4425 -1
  56. package/package.json +18 -24
  57. package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  58. package/dist/components/ScalarButton/ScalarButton.vue.js +0 -99
  59. package/dist/components/ScalarButton/ScalarButton.vue2.js +0 -4
  60. package/dist/components/ScalarButton/constants.js +0 -18
  61. package/dist/components/ScalarCard/ScalarCard.vue.js +0 -25
  62. package/dist/components/ScalarCard/ScalarCard.vue2.js +0 -4
  63. package/dist/components/ScalarCard/ScalarCardFooter.vue.js +0 -20
  64. package/dist/components/ScalarCard/ScalarCardFooter.vue2.js +0 -4
  65. package/dist/components/ScalarCard/ScalarCardHeader.vue.js +0 -36
  66. package/dist/components/ScalarCard/ScalarCardHeader.vue2.js +0 -4
  67. package/dist/components/ScalarCard/ScalarCardSection.vue.js +0 -16
  68. package/dist/components/ScalarCard/ScalarCardSection.vue2.js +0 -4
  69. package/dist/components/ScalarCard/useCardHeading.js +0 -15
  70. package/dist/components/ScalarCheckboxInput/ScalarCheckbox.vue.js +0 -27
  71. package/dist/components/ScalarCheckboxInput/ScalarCheckbox.vue2.js +0 -4
  72. package/dist/components/ScalarCheckboxInput/ScalarCheckboxGroup.vue.js +0 -37
  73. package/dist/components/ScalarCheckboxInput/ScalarCheckboxGroup.vue2.js +0 -4
  74. package/dist/components/ScalarCheckboxInput/ScalarCheckboxInput.vue.js +0 -45
  75. package/dist/components/ScalarCheckboxInput/ScalarCheckboxInput.vue2.js +0 -4
  76. package/dist/components/ScalarCheckboxInput/ScalarCheckboxRadioGroup.vue.js +0 -38
  77. package/dist/components/ScalarCheckboxInput/ScalarCheckboxRadioGroup.vue2.js +0 -4
  78. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.js +0 -69
  79. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue3.js +0 -5
  80. package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue.js +0 -57
  81. package/dist/components/ScalarCodeBlock/ScalarCodeBlockCopy.vue2.js +0 -4
  82. package/dist/components/ScalarCodeBlock/constants.js +0 -54
  83. package/dist/components/ScalarColorModeToggle/ScalarColorModeToggle.vue.js +0 -30
  84. package/dist/components/ScalarColorModeToggle/ScalarColorModeToggle.vue2.js +0 -4
  85. package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue.js +0 -41
  86. package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleButton.vue2.js +0 -4
  87. package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue.js +0 -7
  88. package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue2.js +0 -35
  89. package/dist/components/ScalarCombobox/ScalarCombobox.vue.js +0 -71
  90. package/dist/components/ScalarCombobox/ScalarCombobox.vue2.js +0 -4
  91. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue.js +0 -75
  92. package/dist/components/ScalarCombobox/ScalarComboboxMultiselect.vue2.js +0 -4
  93. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue.js +0 -41
  94. package/dist/components/ScalarCombobox/ScalarComboboxOption.vue2.js +0 -4
  95. package/dist/components/ScalarCombobox/ScalarComboboxOptionGroup.vue.js +0 -28
  96. package/dist/components/ScalarCombobox/ScalarComboboxOptionGroup.vue2.js +0 -4
  97. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +0 -181
  98. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue2.js +0 -4
  99. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue.js +0 -68
  100. package/dist/components/ScalarCombobox/ScalarComboboxPopover.vue2.js +0 -4
  101. package/dist/components/ScalarCombobox/types.js +0 -9
  102. package/dist/components/ScalarContextMenu/ScalarContextMenu.vue.js +0 -52
  103. package/dist/components/ScalarContextMenu/ScalarContextMenu.vue2.js +0 -4
  104. package/dist/components/ScalarCopy/ScalarCopy.vue.js +0 -59
  105. package/dist/components/ScalarCopy/ScalarCopy.vue2.js +0 -4
  106. package/dist/components/ScalarCopy/ScalarCopyBackdrop.vue.js +0 -14
  107. package/dist/components/ScalarCopy/ScalarCopyBackdrop.vue2.js +0 -4
  108. package/dist/components/ScalarCopy/ScalarCopyButton.vue.js +0 -108
  109. package/dist/components/ScalarCopy/ScalarCopyButton.vue2.js +0 -4
  110. package/dist/components/ScalarDropdown/ScalarDropdown.vue.js +0 -132
  111. package/dist/components/ScalarDropdown/ScalarDropdown.vue2.js +0 -4
  112. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue.js +0 -7
  113. package/dist/components/ScalarDropdown/ScalarDropdownButton.vue2.js +0 -41
  114. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.js +0 -11
  115. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue2.js +0 -4
  116. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.js +0 -7
  117. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +0 -32
  118. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue.js +0 -32
  119. package/dist/components/ScalarDropdown/ScalarDropdownMenu.vue2.js +0 -4
  120. package/dist/components/ScalarDropdown/useDropdown.js +0 -14
  121. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue.js +0 -20
  122. package/dist/components/ScalarErrorBoundary/ScalarErrorBoundary.vue2.js +0 -4
  123. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue.js +0 -124
  124. package/dist/components/ScalarFileUpload/ScalarFileUpload.vue2.js +0 -4
  125. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js +0 -28
  126. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue2.js +0 -4
  127. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue.js +0 -18
  128. package/dist/components/ScalarFileUpload/ScalarFileUploadError.vue2.js +0 -4
  129. package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.js +0 -55
  130. package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue2.js +0 -4
  131. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.js +0 -49
  132. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue2.js +0 -4
  133. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue.js +0 -41
  134. package/dist/components/ScalarFileUpload/ScalarFileUploadInputCompact.vue2.js +0 -4
  135. package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue.js +0 -27
  136. package/dist/components/ScalarFileUpload/ScalarFileUploadLoading.vue2.js +0 -4
  137. package/dist/components/ScalarFileUpload/types.js +0 -6
  138. package/dist/components/ScalarFloating/ScalarFloating.vue.js +0 -91
  139. package/dist/components/ScalarFloating/ScalarFloating.vue2.js +0 -4
  140. package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue.js +0 -18
  141. package/dist/components/ScalarFloating/ScalarFloatingBackdrop.vue2.js +0 -4
  142. package/dist/components/ScalarFloating/useResizeWithTarget.js +0 -19
  143. package/dist/components/ScalarForm/ScalarForm.vue.js +0 -19
  144. package/dist/components/ScalarForm/ScalarForm.vue2.js +0 -4
  145. package/dist/components/ScalarForm/ScalarFormError.vue.js +0 -32
  146. package/dist/components/ScalarForm/ScalarFormError.vue2.js +0 -4
  147. package/dist/components/ScalarForm/ScalarFormField.vue.js +0 -34
  148. package/dist/components/ScalarForm/ScalarFormField.vue2.js +0 -4
  149. package/dist/components/ScalarForm/ScalarFormInput.vue.js +0 -39
  150. package/dist/components/ScalarForm/ScalarFormInput.vue2.js +0 -4
  151. package/dist/components/ScalarForm/ScalarFormInputGroup.vue.js +0 -23
  152. package/dist/components/ScalarForm/ScalarFormInputGroup.vue2.js +0 -4
  153. package/dist/components/ScalarForm/ScalarFormSection.vue.js +0 -18
  154. package/dist/components/ScalarForm/ScalarFormSection.vue2.js +0 -4
  155. package/dist/components/ScalarForm/useFormGroups.js +0 -8
  156. package/dist/components/ScalarHeader/ScalarHeader.vue.js +0 -28
  157. package/dist/components/ScalarHeader/ScalarHeader.vue2.js +0 -4
  158. package/dist/components/ScalarHeader/ScalarHeaderButton.vue.js +0 -33
  159. package/dist/components/ScalarHeader/ScalarHeaderButton.vue2.js +0 -4
  160. package/dist/components/ScalarHotkey/ScalarHotkey.vue.js +0 -30
  161. package/dist/components/ScalarHotkey/ScalarHotkey.vue2.js +0 -4
  162. package/dist/components/ScalarHotkey/constants.js +0 -29
  163. package/dist/components/ScalarHotkey/formatHotkey.js +0 -20
  164. package/dist/components/ScalarIcon/ScalarIcon.vue.js +0 -7
  165. package/dist/components/ScalarIcon/ScalarIcon.vue2.js +0 -39
  166. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.js +0 -28
  167. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue2.js +0 -4
  168. package/dist/components/ScalarIcon/icons/Add.svg.js +0 -21
  169. package/dist/components/ScalarIcon/icons/AddTab.svg.js +0 -21
  170. package/dist/components/ScalarIcon/icons/Alert.svg.js +0 -21
  171. package/dist/components/ScalarIcon/icons/ArrowLeft.svg.js +0 -21
  172. package/dist/components/ScalarIcon/icons/ArrowRight.svg.js +0 -21
  173. package/dist/components/ScalarIcon/icons/Brackets.svg.js +0 -21
  174. package/dist/components/ScalarIcon/icons/Branch.svg.js +0 -34
  175. package/dist/components/ScalarIcon/icons/Changelog.svg.js +0 -21
  176. package/dist/components/ScalarIcon/icons/Checkmark.svg.js +0 -21
  177. package/dist/components/ScalarIcon/icons/ChevronDown.svg.js +0 -21
  178. package/dist/components/ScalarIcon/icons/ChevronLeft.svg.js +0 -21
  179. package/dist/components/ScalarIcon/icons/ChevronRight.svg.js +0 -21
  180. package/dist/components/ScalarIcon/icons/ChevronUp.svg.js +0 -21
  181. package/dist/components/ScalarIcon/icons/Clipboard.svg.js +0 -21
  182. package/dist/components/ScalarIcon/icons/Close.svg.js +0 -21
  183. package/dist/components/ScalarIcon/icons/CloseTab.svg.js +0 -21
  184. package/dist/components/ScalarIcon/icons/CloseTabs.svg.js +0 -21
  185. package/dist/components/ScalarIcon/icons/Cloud.svg.js +0 -19
  186. package/dist/components/ScalarIcon/icons/CodeFolder.svg.js +0 -28
  187. package/dist/components/ScalarIcon/icons/Cog.svg.js +0 -20
  188. package/dist/components/ScalarIcon/icons/Collection.svg.js +0 -21
  189. package/dist/components/ScalarIcon/icons/Cookie.svg.js +0 -25
  190. package/dist/components/ScalarIcon/icons/DarkMode.svg.js +0 -19
  191. package/dist/components/ScalarIcon/icons/Delete.svg.js +0 -21
  192. package/dist/components/ScalarIcon/icons/Discord.svg.js +0 -20
  193. package/dist/components/ScalarIcon/icons/DocsPage.svg.js +0 -28
  194. package/dist/components/ScalarIcon/icons/Download.svg.js +0 -19
  195. package/dist/components/ScalarIcon/icons/Duplicate.svg.js +0 -27
  196. package/dist/components/ScalarIcon/icons/Edit.svg.js +0 -21
  197. package/dist/components/ScalarIcon/icons/Ellipses.svg.js +0 -19
  198. package/dist/components/ScalarIcon/icons/Email.svg.js +0 -20
  199. package/dist/components/ScalarIcon/icons/Error.svg.js +0 -20
  200. package/dist/components/ScalarIcon/icons/Example.svg.js +0 -21
  201. package/dist/components/ScalarIcon/icons/ExternalLink.svg.js +0 -21
  202. package/dist/components/ScalarIcon/icons/FilterList.svg.js +0 -21
  203. package/dist/components/ScalarIcon/icons/Folder.svg.js +0 -21
  204. package/dist/components/ScalarIcon/icons/GitHub.svg.js +0 -16
  205. package/dist/components/ScalarIcon/icons/GitHubLine.svg.js +0 -19
  206. package/dist/components/ScalarIcon/icons/Globe.svg.js +0 -21
  207. package/dist/components/ScalarIcon/icons/Google.svg.js +0 -16
  208. package/dist/components/ScalarIcon/icons/Help.svg.js +0 -20
  209. package/dist/components/ScalarIcon/icons/Hide.svg.js +0 -21
  210. package/dist/components/ScalarIcon/icons/History.svg.js +0 -20
  211. package/dist/components/ScalarIcon/icons/House.svg.js +0 -19
  212. package/dist/components/ScalarIcon/icons/Import.svg.js +0 -21
  213. package/dist/components/ScalarIcon/icons/Info.svg.js +0 -33
  214. package/dist/components/ScalarIcon/icons/Key.svg.js +0 -20
  215. package/dist/components/ScalarIcon/icons/Leave.svg.js +0 -19
  216. package/dist/components/ScalarIcon/icons/LightDarkModeToggle.svg.js +0 -21
  217. package/dist/components/ScalarIcon/icons/LightMode.svg.js +0 -21
  218. package/dist/components/ScalarIcon/icons/Link.svg.js +0 -19
  219. package/dist/components/ScalarIcon/icons/Lock.svg.js +0 -20
  220. package/dist/components/ScalarIcon/icons/Logo.svg.js +0 -19
  221. package/dist/components/ScalarIcon/icons/Magic.svg.js +0 -21
  222. package/dist/components/ScalarIcon/icons/Markdown.svg.js +0 -19
  223. package/dist/components/ScalarIcon/icons/Menu.svg.js +0 -21
  224. package/dist/components/ScalarIcon/icons/NotAllowed.svg.js +0 -21
  225. package/dist/components/ScalarIcon/icons/Page.svg.js +0 -20
  226. package/dist/components/ScalarIcon/icons/Pencil.svg.js +0 -19
  227. package/dist/components/ScalarIcon/icons/Play.svg.js +0 -19
  228. package/dist/components/ScalarIcon/icons/Refresh.svg.js +0 -21
  229. package/dist/components/ScalarIcon/icons/Roadmap.svg.js +0 -19
  230. package/dist/components/ScalarIcon/icons/Scribble.svg.js +0 -21
  231. package/dist/components/ScalarIcon/icons/Search.svg.js +0 -21
  232. package/dist/components/ScalarIcon/icons/Server.svg.js +0 -31
  233. package/dist/components/ScalarIcon/icons/Settings.svg.js +0 -21
  234. package/dist/components/ScalarIcon/icons/Show.svg.js +0 -27
  235. package/dist/components/ScalarIcon/icons/Sort.svg.js +0 -21
  236. package/dist/components/ScalarIcon/icons/Terminal.svg.js +0 -28
  237. package/dist/components/ScalarIcon/icons/Trash.svg.js +0 -21
  238. package/dist/components/ScalarIcon/icons/Unlock.svg.js +0 -20
  239. package/dist/components/ScalarIcon/icons/Unwatch.svg.js +0 -21
  240. package/dist/components/ScalarIcon/icons/Upload.svg.js +0 -21
  241. package/dist/components/ScalarIcon/icons/User.svg.js +0 -24
  242. package/dist/components/ScalarIcon/icons/UserSwitch.svg.js +0 -20
  243. package/dist/components/ScalarIcon/icons/Users.svg.js +0 -19
  244. package/dist/components/ScalarIcon/icons/Versions.svg.js +0 -21
  245. package/dist/components/ScalarIcon/icons/Wallet.svg.js +0 -20
  246. package/dist/components/ScalarIcon/icons/Watch.svg.js +0 -21
  247. package/dist/components/ScalarIcon/icons/Workspace.svg.js +0 -19
  248. package/dist/components/ScalarIcon/icons/programming-framework-angular.svg.js +0 -16
  249. package/dist/components/ScalarIcon/icons/programming-framework-astro.svg.js +0 -16
  250. package/dist/components/ScalarIcon/icons/programming-framework-laravel.svg.js +0 -21
  251. package/dist/components/ScalarIcon/icons/programming-framework-nextdotjs.svg.js +0 -16
  252. package/dist/components/ScalarIcon/icons/programming-framework-react.svg.js +0 -16
  253. package/dist/components/ScalarIcon/icons/programming-framework-vuedotjs.svg.js +0 -17
  254. package/dist/components/ScalarIcon/icons/programming-language-c.svg.js +0 -16
  255. package/dist/components/ScalarIcon/icons/programming-language-clojure.svg.js +0 -16
  256. package/dist/components/ScalarIcon/icons/programming-language-csharp.svg.js +0 -16
  257. package/dist/components/ScalarIcon/icons/programming-language-css3.svg.js +0 -16
  258. package/dist/components/ScalarIcon/icons/programming-language-dart.svg.js +0 -16
  259. package/dist/components/ScalarIcon/icons/programming-language-fsharp.svg.js +0 -16
  260. package/dist/components/ScalarIcon/icons/programming-language-go.svg.js +0 -16
  261. package/dist/components/ScalarIcon/icons/programming-language-html5.svg.js +0 -16
  262. package/dist/components/ScalarIcon/icons/programming-language-http.svg.js +0 -16
  263. package/dist/components/ScalarIcon/icons/programming-language-java.svg.js +0 -18
  264. package/dist/components/ScalarIcon/icons/programming-language-javascript.svg.js +0 -16
  265. package/dist/components/ScalarIcon/icons/programming-language-json.svg.js +0 -17
  266. package/dist/components/ScalarIcon/icons/programming-language-kotlin.svg.js +0 -16
  267. package/dist/components/ScalarIcon/icons/programming-language-node.svg.js +0 -17
  268. package/dist/components/ScalarIcon/icons/programming-language-objc.svg.js +0 -17
  269. package/dist/components/ScalarIcon/icons/programming-language-ocaml.svg.js +0 -16
  270. package/dist/components/ScalarIcon/icons/programming-language-php.svg.js +0 -16
  271. package/dist/components/ScalarIcon/icons/programming-language-powershell.svg.js +0 -20
  272. package/dist/components/ScalarIcon/icons/programming-language-python.svg.js +0 -16
  273. package/dist/components/ScalarIcon/icons/programming-language-r.svg.js +0 -20
  274. package/dist/components/ScalarIcon/icons/programming-language-ruby.svg.js +0 -16
  275. package/dist/components/ScalarIcon/icons/programming-language-rust.svg.js +0 -19
  276. package/dist/components/ScalarIcon/icons/programming-language-scala.svg.js +0 -16
  277. package/dist/components/ScalarIcon/icons/programming-language-shell.svg.js +0 -16
  278. package/dist/components/ScalarIcon/icons/programming-language-swift.svg.js +0 -16
  279. package/dist/components/ScalarIcon/icons/programming-language-typescript.svg.js +0 -16
  280. package/dist/components/ScalarIcon/icons/programming-script-code.svg.js +0 -21
  281. package/dist/components/ScalarIcon/icons/programming-tool-git.svg.js +0 -16
  282. package/dist/components/ScalarIcon/icons/programming-tool-tailwindcss.svg.js +0 -16
  283. package/dist/components/ScalarIcon/logos/Adonisjs.svg.js +0 -21
  284. package/dist/components/ScalarIcon/logos/Astro.svg.js +0 -14
  285. package/dist/components/ScalarIcon/logos/Docusaurus.svg.js +0 -16
  286. package/dist/components/ScalarIcon/logos/Dotnet.svg.js +0 -23
  287. package/dist/components/ScalarIcon/logos/Elysiajs.svg.js +0 -16
  288. package/dist/components/ScalarIcon/logos/Express.svg.js +0 -19
  289. package/dist/components/ScalarIcon/logos/Fastapi.svg.js +0 -19
  290. package/dist/components/ScalarIcon/logos/Fastify.svg.js +0 -19
  291. package/dist/components/ScalarIcon/logos/Go.svg.js +0 -23
  292. package/dist/components/ScalarIcon/logos/Hono.svg.js +0 -24
  293. package/dist/components/ScalarIcon/logos/Laravel.svg.js +0 -19
  294. package/dist/components/ScalarIcon/logos/Litestar.svg.js +0 -16
  295. package/dist/components/ScalarIcon/logos/Nestjs.svg.js +0 -21
  296. package/dist/components/ScalarIcon/logos/Nextjs.svg.js +0 -19
  297. package/dist/components/ScalarIcon/logos/Nitro.svg.js +0 -16
  298. package/dist/components/ScalarIcon/logos/Nuxt.svg.js +0 -19
  299. package/dist/components/ScalarIcon/logos/Openapi.svg.js +0 -16
  300. package/dist/components/ScalarIcon/logos/Platformatic.svg.js +0 -28
  301. package/dist/components/ScalarIcon/logos/React.svg.js +0 -34
  302. package/dist/components/ScalarIcon/logos/Rust.svg.js +0 -19
  303. package/dist/components/ScalarIcon/logos/Svelte.svg.js +0 -23
  304. package/dist/components/ScalarIcon/logos/Vue.svg.js +0 -23
  305. package/dist/components/ScalarIcon/utils/index.js +0 -287
  306. package/dist/components/ScalarIcon/variants.js +0 -21
  307. package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +0 -71
  308. package/dist/components/ScalarIconButton/ScalarIconButton.vue2.js +0 -4
  309. package/dist/components/ScalarListbox/ScalarListbox.vue.js +0 -89
  310. package/dist/components/ScalarListbox/ScalarListbox.vue2.js +0 -4
  311. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue.js +0 -26
  312. package/dist/components/ScalarListbox/ScalarListboxCheckbox.vue2.js +0 -4
  313. package/dist/components/ScalarListbox/ScalarListboxInput.vue.js +0 -26
  314. package/dist/components/ScalarListbox/ScalarListboxInput.vue2.js +0 -4
  315. package/dist/components/ScalarListbox/ScalarListboxItem.vue.js +0 -52
  316. package/dist/components/ScalarListbox/ScalarListboxItem.vue2.js +0 -4
  317. package/dist/components/ScalarLoading/ScalarLoading.vue.js +0 -7
  318. package/dist/components/ScalarLoading/ScalarLoading.vue2.js +0 -58
  319. package/dist/components/ScalarLoading/useLoadingState.js +0 -39
  320. package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.js +0 -43
  321. package/dist/components/ScalarMarkdown/ScalarMarkdown.vue3.js +0 -5
  322. package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue.js +0 -61
  323. package/dist/components/ScalarMarkdown/ScalarMarkdownSummary.vue3.js +0 -5
  324. package/dist/components/ScalarMenu/ScalarMenu.vue.js +0 -70
  325. package/dist/components/ScalarMenu/ScalarMenu.vue2.js +0 -4
  326. package/dist/components/ScalarMenu/ScalarMenuButton.vue.js +0 -34
  327. package/dist/components/ScalarMenu/ScalarMenuButton.vue2.js +0 -4
  328. package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +0 -46
  329. package/dist/components/ScalarMenu/ScalarMenuLink.vue2.js +0 -4
  330. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +0 -37
  331. package/dist/components/ScalarMenu/ScalarMenuProduct.vue2.js +0 -4
  332. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +0 -67
  333. package/dist/components/ScalarMenu/ScalarMenuProducts.vue2.js +0 -4
  334. package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +0 -50
  335. package/dist/components/ScalarMenu/ScalarMenuResources.vue2.js +0 -4
  336. package/dist/components/ScalarMenu/ScalarMenuSection.vue.js +0 -15
  337. package/dist/components/ScalarMenu/ScalarMenuSection.vue2.js +0 -4
  338. package/dist/components/ScalarMenu/ScalarMenuSupport.vue.js +0 -40
  339. package/dist/components/ScalarMenu/ScalarMenuSupport.vue2.js +0 -4
  340. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +0 -103
  341. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue2.js +0 -4
  342. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue.js +0 -41
  343. package/dist/components/ScalarMenu/ScalarMenuTeamProfile.vue2.js +0 -4
  344. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.js +0 -109
  345. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue2.js +0 -4
  346. package/dist/components/ScalarModal/ScalarModal.vue.js +0 -9
  347. package/dist/components/ScalarModal/ScalarModal.vue2.js +0 -136
  348. package/dist/components/ScalarPopover/ScalarPopover.vue.js +0 -57
  349. package/dist/components/ScalarPopover/ScalarPopover.vue2.js +0 -4
  350. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +0 -65
  351. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue2.js +0 -4
  352. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +0 -61
  353. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue2.js +0 -4
  354. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.js +0 -26
  355. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue2.js +0 -4
  356. package/dist/components/ScalarSidebar/ScalarSidebar.vue.js +0 -18
  357. package/dist/components/ScalarSidebar/ScalarSidebar.vue2.js +0 -4
  358. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +0 -81
  359. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue2.js +0 -4
  360. package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue.js +0 -31
  361. package/dist/components/ScalarSidebar/ScalarSidebarFooter.vue2.js +0 -4
  362. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +0 -120
  363. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue2.js +0 -4
  364. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +0 -46
  365. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue2.js +0 -4
  366. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.js +0 -7
  367. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue2.js +0 -38
  368. package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.js +0 -54
  369. package/dist/components/ScalarSidebar/ScalarSidebarItem.vue2.js +0 -4
  370. package/dist/components/ScalarSidebar/ScalarSidebarItems.vue.js +0 -28
  371. package/dist/components/ScalarSidebar/ScalarSidebarItems.vue3.js +0 -5
  372. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.js +0 -126
  373. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue2.js +0 -4
  374. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.js +0 -39
  375. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue2.js +0 -4
  376. package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.js +0 -66
  377. package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue2.js +0 -4
  378. package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.js +0 -52
  379. package/dist/components/ScalarSidebar/ScalarSidebarSection.vue3.js +0 -5
  380. package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue.js +0 -20
  381. package/dist/components/ScalarSidebar/ScalarSidebarSpacer.vue2.js +0 -4
  382. package/dist/components/ScalarSidebar/findScrollContainer.js +0 -22
  383. package/dist/components/ScalarSidebar/useSidebarGroups.js +0 -9
  384. package/dist/components/ScalarSidebar/useSidebarNestedItems.js +0 -17
  385. package/dist/components/ScalarTeleport/ScalarTeleport.vue.js +0 -30
  386. package/dist/components/ScalarTeleport/ScalarTeleport.vue2.js +0 -4
  387. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue.js +0 -23
  388. package/dist/components/ScalarTeleport/ScalarTeleportRoot.vue2.js +0 -4
  389. package/dist/components/ScalarTeleport/useTeleport.js +0 -11
  390. package/dist/components/ScalarTextArea/ScalarTextArea.vue.js +0 -46
  391. package/dist/components/ScalarTextArea/ScalarTextArea.vue2.js +0 -4
  392. package/dist/components/ScalarTextInput/ScalarTextInput.vue.js +0 -76
  393. package/dist/components/ScalarTextInput/ScalarTextInput.vue2.js +0 -4
  394. package/dist/components/ScalarTextInput/ScalarTextInputCopy.vue.js +0 -68
  395. package/dist/components/ScalarTextInput/ScalarTextInputCopy.vue2.js +0 -4
  396. package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue.js +0 -35
  397. package/dist/components/ScalarThemeSwatches/ScalarThemeSwatches.vue2.js +0 -4
  398. package/dist/components/ScalarThemeSwatches/useThemeSwatches.js +0 -33
  399. package/dist/components/ScalarToggle/ScalarToggle.vue.js +0 -45
  400. package/dist/components/ScalarToggle/ScalarToggle.vue2.js +0 -4
  401. package/dist/components/ScalarToggle/ScalarToggleGroup.vue.js +0 -35
  402. package/dist/components/ScalarToggle/ScalarToggleGroup.vue2.js +0 -4
  403. package/dist/components/ScalarToggle/ScalarToggleInput.vue.js +0 -36
  404. package/dist/components/ScalarToggle/ScalarToggleInput.vue2.js +0 -4
  405. package/dist/components/ScalarTooltip/ScalarHotkeyTooltip.vue.js +0 -59
  406. package/dist/components/ScalarTooltip/ScalarHotkeyTooltip.vue2.js +0 -4
  407. package/dist/components/ScalarTooltip/ScalarTooltip.vue.js +0 -34
  408. package/dist/components/ScalarTooltip/ScalarTooltip.vue3.js +0 -5
  409. package/dist/components/ScalarTooltip/constants.js +0 -7
  410. package/dist/components/ScalarTooltip/useTooltip.js +0 -79
  411. package/dist/components/ScalarVirtualText/ScalarVirtualText.vue.js +0 -61
  412. package/dist/components/ScalarVirtualText/ScalarVirtualText.vue2.js +0 -4
  413. package/dist/components/ScalarWrappingText/ScalarWrappingText.vue.js +0 -25
  414. package/dist/components/ScalarWrappingText/ScalarWrappingText.vue2.js +0 -4
  415. package/dist/components/ScalarWrappingText/constants.js +0 -12
  416. package/dist/helpers/add-scalar-classes.js +0 -16
@@ -1,124 +0,0 @@
1
- import { defineComponent as S, mergeModels as m, useModel as c, ref as v, createElementBlock as p, openBlock as n, mergeProps as A, unref as s, withModifiers as g, renderSlot as r, createCommentVNode as y, createBlock as $, createElementVNode as E, resolveDynamicComponent as F, createSlots as k, withCtx as i, createVNode as b, createTextVNode as T, toDisplayString as w } from "vue";
2
- import { useBindCx as j } from "@scalar/use-hooks/useBindCx";
3
- import P from "./ScalarFileUploadDropTarget.vue.js";
4
- import U from "./ScalarFileUploadError.vue.js";
5
- import q from "./ScalarFileUploadInput.vue.js";
6
- import z from "./ScalarFileUploadInputCompact.vue.js";
7
- import G from "./ScalarFileUploadLoading.vue.js";
8
- import { isExtensionList as h } from "./types.js";
9
- const H = ["accept", "multiple"], I = {}, Y = /* @__PURE__ */ S({
10
- ...I,
11
- inheritAttrs: !1,
12
- __name: "ScalarFileUpload",
13
- props: /* @__PURE__ */ m({
14
- multiple: { type: Boolean },
15
- accept: { default: "*" },
16
- loader: {},
17
- variant: { default: "default" }
18
- }, {
19
- modelValue: {},
20
- modelModifiers: {},
21
- error: {},
22
- errorModifiers: {}
23
- }),
24
- emits: /* @__PURE__ */ m(["selected"], ["update:modelValue", "update:error"]),
25
- setup(t, { emit: C }) {
26
- const D = C, V = c(t, "modelValue"), o = c(t, "error"), u = v(), a = v(!1);
27
- function d() {
28
- u.value?.click();
29
- }
30
- function f(e) {
31
- if (o.value = void 0, !e || e.length < 1) {
32
- o.value = "No files found to upload";
33
- return;
34
- }
35
- const l = Array.from(e);
36
- if (!t.multiple && l.length > 1) {
37
- o.value = "Too many files selected";
38
- return;
39
- }
40
- V.value = l, D("selected", l);
41
- }
42
- function x(e) {
43
- const l = e.target.files;
44
- f(l);
45
- }
46
- function B(e) {
47
- a.value = !1, f(e.dataTransfer?.files);
48
- }
49
- const { cx: M } = j();
50
- return (e, l) => (n(), p("div", A(
51
- s(M)(
52
- "flex flex-col relative border-dashed border-1 has-[input:focus-visible]:outline outline-offset-1 rounded"
53
- ),
54
- {
55
- onDragenter: l[1] || (l[1] = (N) => a.value = !0),
56
- onDragover: l[2] || (l[2] = g(() => {
57
- }, ["prevent"])),
58
- onDrop: g(B, ["prevent"])
59
- }
60
- ), [
61
- r(e.$slots, "default", { open: d }, () => [
62
- (n(), $(F(
63
- t.variant === "compact" ? z : q
64
- ), {
65
- extensions: s(h)(t.accept) ? t.accept : void 0,
66
- onClick: d
67
- }, k({ _: 2 }, [
68
- e.$slots.label ? {
69
- name: "default",
70
- fn: i(() => [
71
- r(e.$slots, "label")
72
- ]),
73
- key: "0"
74
- } : void 0,
75
- o.value ? {
76
- name: "sublabel",
77
- fn: i(() => [
78
- b(U, null, {
79
- default: i(() => [
80
- T(w(o.value), 1)
81
- ]),
82
- _: 1
83
- })
84
- ]),
85
- key: "1"
86
- } : void 0
87
- ]), 1032, ["extensions"]))
88
- ]),
89
- a.value ? (n(), p("div", {
90
- key: 0,
91
- class: "absolute inset-0",
92
- onDragleave: l[0] || (l[0] = (N) => a.value = !1)
93
- }, [
94
- r(e.$slots, "drop-target", {}, () => [
95
- b(P, null, k({ _: 2 }, [
96
- e.$slots["drop-target-label"] ? {
97
- name: "default",
98
- fn: i(() => [
99
- r(e.$slots, "drop-target-label")
100
- ]),
101
- key: "0"
102
- } : void 0
103
- ]), 1024)
104
- ])
105
- ], 32)) : y("", !0),
106
- t.loader?.isActive ? (n(), $(G, {
107
- key: 1,
108
- loader: t.loader
109
- }, null, 8, ["loader"])) : y("", !0),
110
- E("input", {
111
- ref_key: "input",
112
- ref: u,
113
- accept: s(h)(t.accept) ? t.accept.join(",") : t.accept,
114
- class: "sr-only",
115
- multiple: t.multiple,
116
- type: "file",
117
- onChange: x
118
- }, null, 40, H)
119
- ], 16));
120
- }
121
- });
122
- export {
123
- Y as default
124
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFileUpload.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,28 +0,0 @@
1
- import { defineComponent as n, createElementBlock as l, openBlock as a, normalizeProps as i, guardReactiveProps as c, unref as t, createElementVNode as o, createVNode as d, renderSlot as p, createTextVNode as u } from "vue";
2
- import { ScalarIconUploadSimple as m } from "@scalar/icons";
3
- import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
4
- const _ = { class: "pointer-events-none flex size-full items-center justify-center gap-1 rounded-md p-1 text-c-2" }, x = { class: "font-medium" }, z = {}, k = /* @__PURE__ */ n({
5
- ...z,
6
- inheritAttrs: !1,
7
- __name: "ScalarFileUploadDropTarget",
8
- setup(v) {
9
- const { cx: r } = f();
10
- return (s, e) => (a(), l("div", i(c(
11
- t(r)(
12
- " size-full flex items-center justify-center absolute inset-0 z-1 rounded p-1 backdrop-blur"
13
- )
14
- )), [
15
- o("div", _, [
16
- d(t(m), { class: "size-4" }),
17
- o("span", x, [
18
- p(s.$slots, "default", {}, () => [
19
- e[0] || (e[0] = u("Drop to upload", -1))
20
- ])
21
- ])
22
- ])
23
- ], 16));
24
- }
25
- });
26
- export {
27
- k as default
28
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFileUploadDropTarget.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,18 +0,0 @@
1
- import { defineComponent as o, createElementBlock as a, openBlock as n, normalizeProps as c, guardReactiveProps as s, unref as e, createVNode as l, renderSlot as i } from "vue";
2
- import { ScalarIconWarningCircle as p } from "@scalar/icons";
3
- import { useBindCx as m } from "@scalar/use-hooks/useBindCx";
4
- const d = {}, B = /* @__PURE__ */ o({
5
- ...d,
6
- inheritAttrs: !1,
7
- __name: "ScalarFileUploadError",
8
- setup(f) {
9
- const { cx: r } = m();
10
- return (t, _) => (n(), a("div", c(s(e(r)("flex items-center gap-1 text-c-danger"))), [
11
- l(e(p), { class: "size-3.5" }),
12
- i(t.$slots, "default")
13
- ], 16));
14
- }
15
- });
16
- export {
17
- B as default
18
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFileUploadError.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as x, mergeModels as _, useModel as v, createElementBlock as o, openBlock as i, normalizeProps as g, guardReactiveProps as C, unref as l, createElementVNode as t, Fragment as V, renderList as k, toDisplayString as n, createVNode as d, withCtx as a, createTextVNode as m } from "vue";
2
- import { useBindCx as y } from "@scalar/use-hooks/useBindCx";
3
- import z from "pretty-bytes";
4
- import u from "../ScalarButton/ScalarButton.vue.js";
5
- const B = { class: "border rounded p-1 text-xs" }, $ = { class: "flex items-center justify-between" }, w = { class: "flex-1 min-w-0 truncate" }, F = { class: "text-c-3" }, M = { class: "flex items-center gap-1.5" }, N = {}, P = /* @__PURE__ */ x({
6
- ...N,
7
- inheritAttrs: !1,
8
- __name: "ScalarFileUploadFileList",
9
- props: {
10
- modelValue: {},
11
- modelModifiers: {}
12
- },
13
- emits: /* @__PURE__ */ _(["upload"], ["update:modelValue"]),
14
- setup(p) {
15
- const r = v(p, "modelValue"), { cx: f } = y();
16
- return (c, e) => (i(), o("div", g(C(l(f)("flex flex-col gap-2 p-4"))), [
17
- e[4] || (e[4] = t("div", { class: "text-c-2" }, "Selected files:", -1)),
18
- (i(!0), o(V, null, k(r.value, (s) => (i(), o("ul", {
19
- key: s.name,
20
- class: "flex flex-col gap-0.5"
21
- }, [
22
- t("li", B, [
23
- t("div", $, [
24
- t("div", w, n(s.name), 1),
25
- t("div", F, n(l(z)(s.size)), 1)
26
- ])
27
- ])
28
- ]))), 128)),
29
- t("div", M, [
30
- d(l(u), {
31
- size: "xs",
32
- onClick: e[0] || (e[0] = (s) => c.$emit("upload"))
33
- }, {
34
- default: a(() => [...e[2] || (e[2] = [
35
- m(" Upload ", -1)
36
- ])]),
37
- _: 1
38
- }),
39
- d(l(u), {
40
- size: "xs",
41
- variant: "outlined",
42
- onClick: e[1] || (e[1] = (s) => r.value = [])
43
- }, {
44
- default: a(() => [...e[3] || (e[3] = [
45
- m(" Clear ", -1)
46
- ])]),
47
- _: 1
48
- })
49
- ])
50
- ], 16));
51
- }
52
- });
53
- export {
54
- P as default
55
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFileUploadFileList.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,49 +0,0 @@
1
- import { defineComponent as f, createElementBlock as n, openBlock as l, normalizeProps as c, guardReactiveProps as u, unref as r, createElementVNode as t, renderSlot as a, createVNode as x, createTextVNode as i, toDisplayString as p, withCtx as k, createCommentVNode as y } from "vue";
2
- import { useBindCx as v } from "@scalar/use-hooks/useBindCx";
3
- import B from "../ScalarButton/ScalarButton.vue.js";
4
- const C = { class: "flex items-center gap-1.5 whitespace-nowrap" }, g = { class: "text-c-2" }, w = {
5
- key: 0,
6
- class: "text-c-3 text-xs"
7
- }, N = {}, $ = /* @__PURE__ */ f({
8
- ...N,
9
- inheritAttrs: !1,
10
- __name: "ScalarFileUploadInput",
11
- props: {
12
- multiple: { type: Boolean },
13
- extensions: {}
14
- },
15
- emits: ["click"],
16
- setup(s) {
17
- const { cx: d } = v();
18
- return (o, e) => (l(), n("div", c(u(r(d)("flex items-center justify-center gap-2 flex-col px-6 py-4"))), [
19
- t("div", C, [
20
- t("span", g, [
21
- a(o.$slots, "default", {}, () => [
22
- i("Drop " + p(s.multiple ? "files" : "file") + " here to upload", 1)
23
- ]),
24
- e[1] || (e[1] = t("span", { class: "text-c-3" }, " or", -1))
25
- ]),
26
- x(r(B), {
27
- size: "xs",
28
- tabindex: "-1",
29
- variant: "outlined",
30
- onClick: e[0] || (e[0] = (m) => o.$emit("click", m))
31
- }, {
32
- default: k(() => [...e[2] || (e[2] = [
33
- i(" Browse files ", -1)
34
- ])]),
35
- _: 1
36
- })
37
- ]),
38
- a(o.$slots, "sublabel", {}, () => [
39
- s.extensions ? (l(), n("div", w, [
40
- e[3] || (e[3] = t("span", { class: "font-medium" }, "Supported file types:", -1)),
41
- i(" " + p(s.extensions.join(", ")), 1)
42
- ])) : y("", !0)
43
- ])
44
- ], 16));
45
- }
46
- });
47
- export {
48
- $ as default
49
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFileUploadInput.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as m, createElementBlock as n, openBlock as l, mergeProps as d, unref as s, createElementVNode as i, renderSlot as r, createVNode as u, toDisplayString as a, createCommentVNode as f } from "vue";
2
- import { ScalarIconUploadSimple as x } from "@scalar/icons";
3
- import { useBindCx as b } from "@scalar/use-hooks/useBindCx";
4
- const k = { class: "flex items-center gap-1 whitespace-nowrap text-c-2" }, y = {
5
- key: 0,
6
- class: "text-c-3 text-xs"
7
- }, g = {}, h = /* @__PURE__ */ m({
8
- ...g,
9
- inheritAttrs: !1,
10
- __name: "ScalarFileUploadInputCompact",
11
- props: {
12
- multiple: { type: Boolean },
13
- extensions: {}
14
- },
15
- emits: ["click"],
16
- setup(e) {
17
- const { cx: c } = b();
18
- return (t, o) => (l(), n("button", d(
19
- { type: "button" },
20
- s(c)(
21
- "flex items-center justify-center gap-1 rounded flex-col px-4 py-3 hover:bg-b-2"
22
- ),
23
- {
24
- onClick: o[0] || (o[0] = (p) => t.$emit("click", p))
25
- }
26
- ), [
27
- i("div", k, [
28
- r(t.$slots, "default", {}, () => [
29
- u(s(x), { class: "size-3.5" }),
30
- i("span", null, " Upload " + a(e.multiple ? "files" : "file"), 1)
31
- ])
32
- ]),
33
- r(t.$slots, "sublabel", {}, () => [
34
- e.extensions ? (l(), n("div", y, a(e.extensions.join(", ")), 1)) : f("", !0)
35
- ])
36
- ], 16));
37
- }
38
- });
39
- export {
40
- h as default
41
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFileUploadInputCompact.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as t, createElementBlock as a, openBlock as n, normalizeProps as l, guardReactiveProps as c, unref as e, createVNode as i } from "vue";
2
- import { useBindCx as d } from "@scalar/use-hooks/useBindCx";
3
- import s from "../ScalarLoading/ScalarLoading.vue.js";
4
- const p = {}, z = /* @__PURE__ */ t({
5
- ...p,
6
- inheritAttrs: !1,
7
- __name: "ScalarFileUploadLoading",
8
- props: {
9
- loader: {}
10
- },
11
- setup(r) {
12
- const { cx: o } = d();
13
- return (u, m) => (n(), a("div", l(c(
14
- e(o)(
15
- " size-full flex items-center justify-center absolute inset-0 z-1 rounded p-1 backdrop-blur text-c-2"
16
- )
17
- )), [
18
- i(e(s), {
19
- loader: r.loader,
20
- size: "md"
21
- }, null, 8, ["loader"])
22
- ], 16));
23
- }
24
- });
25
- export {
26
- z as default
27
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFileUploadLoading.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,6 +0,0 @@
1
- function i(r) {
2
- return Array.isArray(r) && r.every((t) => t.startsWith("."));
3
- }
4
- export {
5
- i as isExtensionList
6
- };
@@ -1,91 +0,0 @@
1
- import { defineComponent as b, ref as d, computed as a, createElementBlock as x, openBlock as s, Fragment as z, createElementVNode as m, createBlock as S, createCommentVNode as $, normalizeClass as k, renderSlot as c, unref as i, withCtx as B, normalizeStyle as E } from "vue";
2
- import { getSideAxis as u } from "@floating-ui/utils";
3
- import { useFloating as R, autoUpdate as C, offset as F, flip as M, shift as H, size as T } from "@floating-ui/vue";
4
- import { useResizeWithTarget as N } from "./useResizeWithTarget.js";
5
- import W from "../ScalarTeleport/ScalarTeleport.vue.js";
6
- const D = /* @__PURE__ */ b({
7
- inheritAttrs: !1,
8
- __name: "ScalarFloating",
9
- props: {
10
- placement: {},
11
- offset: { type: [Number, Object, Function], default: 5 },
12
- resize: { type: Boolean, default: !1 },
13
- target: {},
14
- middleware: { default: () => [] },
15
- teleport: { type: [Boolean, String] }
16
- },
17
- setup(e, { expose: g }) {
18
- const r = d(null), n = d(null), o = a(() => {
19
- if (typeof window < "u" && n.value) {
20
- if (typeof e.target == "string") {
21
- const l = document.getElementById(e.target);
22
- if (l)
23
- return l;
24
- console.warn(`ScalarFloating: Target with id="${e.target}" not found`);
25
- } else if (e.target instanceof HTMLElement)
26
- return e.target;
27
- const t = n.value.children?.[0];
28
- return t instanceof HTMLElement ? t : n.value;
29
- }
30
- }), f = N(o, {
31
- enabled: a(() => e.resize)
32
- }), h = a(
33
- () => u(e.placement ?? "bottom") === "y" ? f.width.value : void 0
34
- ), y = a(
35
- () => u(e.placement ?? "bottom") === "x" ? f.height.value : void 0
36
- ), { floatingStyles: v, middlewareData: w } = R(o, r, {
37
- placement: a(() => e.placement ?? "bottom"),
38
- whileElementsMounted: C,
39
- middleware: a(() => [
40
- F(e.offset),
41
- M(),
42
- H({ padding: 10 }),
43
- T({
44
- apply({ availableWidth: t, availableHeight: l, elements: p }) {
45
- Object.assign(p.floating.style, {
46
- maxWidth: `${Math.max(0, t) - 20}px`,
47
- maxHeight: `${Math.max(0, l) - 20}px`
48
- });
49
- }
50
- }),
51
- ...e.middleware
52
- ])
53
- });
54
- return g({
55
- /** The resolved target element */
56
- targetRef: o
57
- }), (t, l) => (s(), x(z, null, [
58
- m("div", {
59
- ref_key: "wrapperRef",
60
- ref: n,
61
- class: k({ contents: !!t.$slots.default })
62
- }, [
63
- c(t.$slots, "default")
64
- ], 2),
65
- t.$slots.floating ? (s(), S(i(W), {
66
- key: 0,
67
- disabled: !e.teleport,
68
- to: typeof e.teleport == "string" ? e.teleport : void 0
69
- }, {
70
- default: B(() => [
71
- m("div", {
72
- ref_key: "floatingRef",
73
- ref: r,
74
- class: "relative z-context",
75
- style: E(i(v))
76
- }, [
77
- c(t.$slots, "floating", {
78
- data: i(w),
79
- height: y.value,
80
- width: h.value
81
- })
82
- ], 4)
83
- ]),
84
- _: 3
85
- }, 8, ["disabled", "to"])) : $("", !0)
86
- ], 64));
87
- }
88
- });
89
- export {
90
- D as default
91
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFloating.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,18 +0,0 @@
1
- import { defineComponent as o, createElementBlock as r, openBlock as n, normalizeProps as s, guardReactiveProps as a, unref as l, renderSlot as i } from "vue";
2
- import { useBindCx as c } from "@scalar/use-hooks/useBindCx";
3
- const d = {}, m = /* @__PURE__ */ o({
4
- ...d,
5
- inheritAttrs: !1,
6
- __name: "ScalarFloatingBackdrop",
7
- setup(p) {
8
- const { cx: e } = c();
9
- return (t, u) => (n(), r("div", s(a(
10
- l(e)("absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted")
11
- )), [
12
- i(t.$slots, "default")
13
- ], 16));
14
- }
15
- });
16
- export {
17
- m as default
18
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFloatingBackdrop.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,19 +0,0 @@
1
- import { ref as r, watch as v, toValue as t, computed as d } from "vue";
2
- function s(l, a = { enabled: r(!0) }) {
3
- const o = r(0), u = r(0), i = r();
4
- return typeof ResizeObserver < "u" && (i.value = new ResizeObserver(([e]) => {
5
- e && (o.value = e.borderBoxSize[0]?.inlineSize ?? 0, u.value = e.borderBoxSize[0]?.blockSize ?? 0);
6
- })), v(
7
- [() => t(a.enabled), () => t(l)],
8
- ([e, n]) => {
9
- !n || !i.value || (e ? i.value.observe(n) : i.value.disconnect());
10
- },
11
- { immediate: !0 }
12
- ), {
13
- width: d(() => t(a.enabled) ? `${o.value}px` : void 0),
14
- height: d(() => t(a.enabled) ? `${u.value}px` : void 0)
15
- };
16
- }
17
- export {
18
- s as useResizeWithTarget
19
- };
@@ -1,19 +0,0 @@
1
- import { defineComponent as n, createElementBlock as s, openBlock as m, mergeProps as i, unref as f, withModifiers as l, renderSlot as u } from "vue";
2
- import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
3
- const a = {}, x = /* @__PURE__ */ n({
4
- ...a,
5
- inheritAttrs: !1,
6
- __name: "ScalarForm",
7
- emits: ["submit"],
8
- setup(_) {
9
- const { cx: r } = p();
10
- return (e, t) => (m(), s("form", i(f(r)("flex flex-col"), {
11
- onSubmit: t[0] || (t[0] = l((o) => e.$emit("submit", o), ["prevent"]))
12
- }), [
13
- u(e.$slots, "default")
14
- ], 16));
15
- }
16
- });
17
- export {
18
- x as default
19
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarForm.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,32 +0,0 @@
1
- import { defineComponent as i, computed as l, createElementBlock as s, openBlock as e, mergeProps as d, unref as a, createBlock as m, renderSlot as u, resolveDynamicComponent as f } from "vue";
2
- import { ScalarIconWarningCircle as v, ScalarIconWarning as g } from "@scalar/icons";
3
- import { cva as b, useBindCx as p } from "@scalar/use-hooks/useBindCx";
4
- const C = /* @__PURE__ */ i({
5
- inheritAttrs: !1,
6
- __name: "ScalarFormError",
7
- props: {
8
- variant: { default: "error" },
9
- icon: {}
10
- },
11
- setup(r) {
12
- const n = l(() => r.icon ? r.icon : r.variant === "error" ? v : g), t = b({
13
- base: "flex items-baseline gap-1.5 rounded border p-2",
14
- variants: {
15
- variant: {
16
- error: "border-c-danger bg-b-danger text-c-danger",
17
- warning: "border-c-alert bg-b-alert text-c-alert"
18
- }
19
- }
20
- }), { cx: o } = p();
21
- return (c, x) => (e(), s("div", d({ role: "alert" }, a(o)(a(t)({ variant: r.variant }))), [
22
- (e(), m(f(n.value), {
23
- class: "relative top-0.5 shrink-0",
24
- weight: "bold"
25
- })),
26
- u(c.$slots, "default")
27
- ], 16));
28
- }
29
- });
30
- export {
31
- C as default
32
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFormError.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as i, createBlock as m, openBlock as t, resolveDynamicComponent as c, normalizeProps as d, guardReactiveProps as f, unref as l, withCtx as p, createElementBlock as a, createCommentVNode as r, renderSlot as o, normalizeClass as u } from "vue";
2
- import { useBindCx as _ } from "@scalar/use-hooks/useBindCx";
3
- const b = {
4
- key: 0,
5
- class: "flex items-start justify-between gap-2 text-sm/none text-c-1 whitespace-nowrap font-medium"
6
- }, w = {}, k = /* @__PURE__ */ i({
7
- ...w,
8
- inheritAttrs: !1,
9
- __name: "ScalarFormField",
10
- props: {
11
- is: { default: "label" }
12
- },
13
- setup(n) {
14
- const { cx: s } = _();
15
- return (e, x) => (t(), m(c(n.is), d(f(l(s)("flex flex-col gap-1.5 rounded"))), {
16
- default: p(() => [
17
- e.$slots.label ? (t(), a("div", b, [
18
- o(e.$slots, "label")
19
- ])) : r("", !0),
20
- o(e.$slots, "default"),
21
- e.$slots.below ? (t(), a("span", {
22
- key: 1,
23
- class: u(l(s)("-mt-1.5 text-sm"))
24
- }, [
25
- o(e.$slots, "below")
26
- ], 2)) : r("", !0)
27
- ]),
28
- _: 3
29
- }, 16));
30
- }
31
- });
32
- export {
33
- k as default
34
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarFormField.vue.js";
2
- export {
3
- f as default
4
- };