@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,4 +0,0 @@
1
- import f from "./ScalarCodeBlockCopy.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,54 +0,0 @@
1
- const l = {
2
- bash: "Bash",
3
- c: "C",
4
- clojure: "Clojure",
5
- cpp: "C++",
6
- csharp: "C#",
7
- css: "CSS",
8
- curl: "cURL",
9
- dart: "Dart",
10
- diff: "Diff",
11
- docker: "Docker",
12
- dockerfile: "Dockerfile",
13
- elixir: "Elixir",
14
- fsharp: "F#",
15
- go: "Go",
16
- graphql: "GraphQL",
17
- haskell: "Haskell",
18
- html: "HTML",
19
- http: "HTTP",
20
- ini: "INI",
21
- java: "Java",
22
- javascript: "JavaScript",
23
- json: "JSON",
24
- kotlin: "Kotlin",
25
- less: "Less",
26
- lua: "Lua",
27
- makefile: "Makefile",
28
- markdown: "Markdown",
29
- matlab: "MATLAB",
30
- nginx: "Nginx",
31
- objectivec: "Objective-C",
32
- ocaml: "OCaml",
33
- perl: "Perl",
34
- php: "PHP",
35
- plaintext: "Plain Text",
36
- powershell: "PowerShell",
37
- properties: "Properties",
38
- python: "Python",
39
- r: "R",
40
- ruby: "Ruby",
41
- rust: "Rust",
42
- scala: "Scala",
43
- scss: "SCSS",
44
- shell: "Shell",
45
- sql: "SQL",
46
- swift: "Swift",
47
- toml: "TOML",
48
- typescript: "TypeScript",
49
- xml: "XML",
50
- yaml: "YAML"
51
- };
52
- export {
53
- l as LANGUAGE_LABELS
54
- };
@@ -1,30 +0,0 @@
1
- import { defineComponent as u, computed as c, createBlock as r, openBlock as t, unref as o, isRef as s } from "vue";
2
- import { useColorMode as f } from "@scalar/use-hooks/useColorMode";
3
- import p from "./ScalarColorModeToggleButton.vue.js";
4
- import _ from "./ScalarColorModeToggleIcon.vue.js";
5
- const k = {}, S = /* @__PURE__ */ u({
6
- ...k,
7
- __name: "ScalarColorModeToggle",
8
- props: {
9
- variant: { default: "switch" }
10
- },
11
- setup(n) {
12
- const { isDarkMode: e, toggleColorMode: i, darkLightMode: d } = f(), l = c(
13
- () => e.value ? "Set light mode" : "Set dark mode"
14
- );
15
- return (g, a) => n.variant === "switch" ? (t(), r(p, {
16
- key: 0,
17
- modelValue: o(e),
18
- "onUpdate:modelValue": a[0] || (a[0] = (m) => s(e) ? e.value = m : null),
19
- "aria-label": l.value
20
- }, null, 8, ["modelValue", "aria-label"])) : (t(), r(_, {
21
- key: 1,
22
- "aria-label": l.value,
23
- mode: o(d),
24
- onClick: o(i)
25
- }, null, 8, ["aria-label", "mode", "onClick"]));
26
- }
27
- });
28
- export {
29
- S as default
30
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarColorModeToggle.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as n, useModel as s, createElementBlock as i, openBlock as u, mergeProps as a, unref as d, createElementVNode as t, normalizeClass as m, createVNode as f } from "vue";
2
- import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
3
- import c from "./ScalarColorModeToggleIcon.vue.js";
4
- const g = ["aria-pressed"], x = {}, B = /* @__PURE__ */ n({
5
- ...x,
6
- inheritAttrs: !1,
7
- __name: "ScalarColorModeToggleButton",
8
- props: {
9
- modelValue: { type: Boolean },
10
- modelModifiers: {}
11
- },
12
- emits: ["update:modelValue"],
13
- setup(l) {
14
- const { cx: r } = p(), e = s(l, "modelValue");
15
- return (b, o) => (u(), i("button", a(
16
- {
17
- "aria-pressed": e.value,
18
- type: "button"
19
- },
20
- d(r)(
21
- "group/toggle flex h-6 w-[38px] brightness-lifted -mx-px items-center py-1.5 -my-1.5 relative outline-none"
22
- ),
23
- {
24
- onClick: o[0] || (o[0] = (v) => e.value = !e.value)
25
- }
26
- ), [
27
- o[1] || (o[1] = t("div", { class: "h-3 w-full bg-border mx-px rounded-xl group-focus-visible/toggle:outline -outline-offset-1" }, null, -1)),
28
- t("div", {
29
- class: m(["size-[23px] left-border absolute border rounded-full flex items-center justify-center bg-b-1 group-focus-visible/toggle:outline -outline-offset-1 transition-transform duration-300 ease-in-out", { "translate-x-[14px]": e.value }])
30
- }, [
31
- f(c, {
32
- is: "div",
33
- mode: e.value ? "dark" : "light"
34
- }, null, 8, ["mode"])
35
- ], 2)
36
- ], 16, g));
37
- }
38
- });
39
- export {
40
- B as default
41
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarColorModeToggleButton.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,7 +0,0 @@
1
- import o from "./ScalarColorModeToggleIcon.vue2.js";
2
- /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-60be8692"]]);
5
- export {
6
- c as default
7
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as a, computed as s, createBlock as c, openBlock as i, resolveDynamicComponent as r, mergeProps as u, unref as m, withCtx as g, createElementVNode as e } from "vue";
2
- import { useBindCx as d } from "@scalar/use-hooks/useBindCx";
3
- const p = {}, b = /* @__PURE__ */ a({
4
- ...p,
5
- inheritAttrs: !1,
6
- __name: "ScalarColorModeToggleIcon",
7
- props: {
8
- is: { default: "button" },
9
- mode: { default: "light" }
10
- },
11
- setup(t) {
12
- const { cx: l } = d(), n = s(
13
- () => t.mode === "dark" ? "Set light mode" : "Set dark mode"
14
- );
15
- return (f, o) => (i(), c(r(t.is), u({
16
- "aria-label": n.value,
17
- class: `toggle-icon-${t.mode}`,
18
- type: t.is === "button" ? "button" : void 0
19
- }, m(l)("size-3 flex items-center justify-center text-c-1")), {
20
- default: g(() => [...o[0] || (o[0] = [
21
- e("span", { class: "toggle-icon-sun-ray" }, null, -1),
22
- e("span", { class: "toggle-icon-sun-ray" }, null, -1),
23
- e("span", { class: "toggle-icon-sun-ray" }, null, -1),
24
- e("span", { class: "toggle-icon-sun-ray" }, null, -1),
25
- e("span", { class: "toggle-icon-ellipse" }, [
26
- e("span", { class: "toggle-icon-moon-mask" })
27
- ], -1)
28
- ])]),
29
- _: 1
30
- }, 16, ["aria-label", "class", "type"]));
31
- }
32
- });
33
- export {
34
- b as default
35
- };
@@ -1,71 +0,0 @@
1
- import { defineComponent as f, mergeModels as s, useModel as c, createBlock as g, openBlock as $, withCtx as l, createVNode as v, createSlots as V, renderSlot as a, normalizeProps as n, guardReactiveProps as m } from "vue";
2
- import h from "./ScalarComboboxOptions.vue.js";
3
- import y from "./ScalarComboboxPopover.vue.js";
4
- const B = /* @__PURE__ */ f({
5
- __name: "ScalarCombobox",
6
- props: /* @__PURE__ */ s({
7
- options: {},
8
- placeholder: {},
9
- placement: {},
10
- offset: { type: [Number, Object, Function] },
11
- resize: { type: Boolean },
12
- target: {},
13
- middleware: {},
14
- teleport: { type: [Boolean, String] }
15
- }, {
16
- modelValue: {},
17
- modelModifiers: {}
18
- }),
19
- emits: /* @__PURE__ */ s(["add"], ["update:modelValue"]),
20
- setup(e, { emit: p }) {
21
- const u = p, d = c(e, "modelValue");
22
- return (o, b) => ($(), g(y, {
23
- middleware: e.middleware,
24
- offset: e.offset,
25
- placement: e.placement ?? "bottom-start",
26
- resize: e.resize,
27
- target: e.target,
28
- teleport: e.teleport
29
- }, {
30
- default: l(({ open: r }) => [
31
- a(o.$slots, "default", { open: r })
32
- ]),
33
- popover: l(({ open: r, close: i }) => [
34
- v(h, {
35
- modelValue: d.value ? [d.value] : [],
36
- open: r,
37
- options: e.options,
38
- placeholder: e.placeholder,
39
- onAdd: () => (i(), u("add")),
40
- "onUpdate:modelValue": (t) => (i(), d.value = t[0])
41
- }, V({ _: 2 }, [
42
- o.$slots.option ? {
43
- name: "option",
44
- fn: l((t) => [
45
- a(o.$slots, "option", n(m(t)))
46
- ]),
47
- key: "0"
48
- } : void 0,
49
- o.$slots.group ? {
50
- name: "group",
51
- fn: l((t) => [
52
- a(o.$slots, "group", n(m(t)))
53
- ]),
54
- key: "1"
55
- } : void 0,
56
- o.$slots.add ? {
57
- name: "add",
58
- fn: l((t) => [
59
- a(o.$slots, "add", n(m(t)))
60
- ]),
61
- key: "2"
62
- } : void 0
63
- ]), 1032, ["modelValue", "open", "options", "placeholder", "onAdd", "onUpdate:modelValue"])
64
- ]),
65
- _: 3
66
- }, 8, ["middleware", "offset", "placement", "resize", "target", "teleport"]));
67
- }
68
- });
69
- export {
70
- B as default
71
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCombobox.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,75 +0,0 @@
1
- import { defineComponent as $, mergeModels as f, useModel as b, ref as y, createBlock as p, openBlock as u, withCtx as l, createCommentVNode as k, createSlots as V, renderSlot as d, normalizeProps as n, guardReactiveProps as m } from "vue";
2
- import w from "./ScalarComboboxOptions.vue.js";
3
- import z from "./ScalarComboboxPopover.vue.js";
4
- const P = /* @__PURE__ */ $({
5
- __name: "ScalarComboboxMultiselect",
6
- props: /* @__PURE__ */ f({
7
- options: {},
8
- placeholder: {},
9
- placement: {},
10
- offset: { type: [Number, Object, Function] },
11
- resize: { type: Boolean },
12
- target: {},
13
- middleware: {},
14
- teleport: { type: [Boolean, String] }
15
- }, {
16
- modelValue: { default: [] },
17
- modelModifiers: {}
18
- }),
19
- emits: /* @__PURE__ */ f(["add"], ["update:modelValue"]),
20
- setup(e, { expose: c, emit: g }) {
21
- const v = g, s = b(e, "modelValue"), i = y(null);
22
- return c({ comboboxPopoverRef: i }), (t, a) => (u(), p(z, {
23
- ref_key: "comboboxPopoverRef",
24
- ref: i,
25
- middleware: e.middleware,
26
- offset: e.offset,
27
- placement: e.placement ?? "bottom-start",
28
- resize: e.resize,
29
- target: e.target,
30
- teleport: e.teleport
31
- }, {
32
- default: l(({ open: r }) => [
33
- d(t.$slots, "default", { open: r })
34
- ]),
35
- popover: l(({ open: r }) => [
36
- e.options?.length ? (u(), p(w, {
37
- key: 0,
38
- modelValue: s.value,
39
- "onUpdate:modelValue": a[0] || (a[0] = (o) => s.value = o),
40
- multiselect: "",
41
- open: r,
42
- options: e.options,
43
- placeholder: e.placeholder,
44
- onAdd: a[1] || (a[1] = (o) => v("add"))
45
- }, V({ _: 2 }, [
46
- t.$slots.option ? {
47
- name: "option",
48
- fn: l((o) => [
49
- d(t.$slots, "option", n(m(o)))
50
- ]),
51
- key: "0"
52
- } : void 0,
53
- t.$slots.group ? {
54
- name: "group",
55
- fn: l((o) => [
56
- d(t.$slots, "group", n(m(o)))
57
- ]),
58
- key: "1"
59
- } : void 0,
60
- t.$slots.add ? {
61
- name: "add",
62
- fn: l((o) => [
63
- d(t.$slots, "add", n(m(o)))
64
- ]),
65
- key: "2"
66
- } : void 0
67
- ]), 1032, ["modelValue", "open", "options", "placeholder"])) : k("", !0)
68
- ]),
69
- _: 3
70
- }, 8, ["middleware", "offset", "placement", "resize", "target", "teleport"]));
71
- }
72
- });
73
- export {
74
- P as default
75
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarComboboxMultiselect.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as o, createElementBlock as n, openBlock as r, normalizeClass as l, unref as t, renderSlot as s } from "vue";
2
- import { cva as i, cx as d } from "@scalar/use-hooks/useBindCx";
3
- const m = ["aria-selected"], b = /* @__PURE__ */ o({
4
- __name: "ScalarComboboxOption",
5
- props: {
6
- active: { type: Boolean },
7
- selected: { type: Boolean }
8
- },
9
- setup(e) {
10
- const a = i({
11
- base: [
12
- // Group
13
- "group/item",
14
- // Layout
15
- "flex min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left",
16
- // Text / background style
17
- "truncate bg-transparent text-c-1",
18
- // Interaction
19
- "cursor-pointer hover:bg-b-2"
20
- ],
21
- variants: {
22
- selected: { true: "text-c-1" },
23
- active: { true: "bg-b-2" }
24
- }
25
- });
26
- return (c, u) => (r(), n("li", {
27
- "aria-selected": e.selected,
28
- class: l(t(d)(t(a)({ active: e.active, selected: e.selected }))),
29
- role: "option",
30
- tabindex: "-1"
31
- }, [
32
- s(c.$slots, "default", {
33
- active: e.active,
34
- selected: e.selected
35
- })
36
- ], 10, m));
37
- }
38
- });
39
- export {
40
- b as default
41
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarComboboxOption.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,28 +0,0 @@
1
- import { defineComponent as a, useId as i, createElementBlock as t, openBlock as l, createCommentVNode as n, renderSlot as o } from "vue";
2
- const r = ["id", "aria-labelledby", "role"], c = ["id"], m = /* @__PURE__ */ a({
3
- __name: "ScalarComboboxOptionGroup",
4
- props: {
5
- id: { default: () => i() },
6
- hidden: { type: Boolean, default: !1 }
7
- },
8
- setup(e) {
9
- return (d, s) => (l(), t("div", {
10
- id: e.id,
11
- "aria-labelledby": e.id ? `${e.id}-label` : void 0,
12
- class: "contents",
13
- role: e.hidden ? void 0 : "group"
14
- }, [
15
- e.hidden ? n("", !0) : (l(), t("div", {
16
- key: 0,
17
- id: `${e.id}-label`,
18
- class: "min-w-0 truncate px-2.5 py-1.5 text-c-2"
19
- }, [
20
- o(d.$slots, "label")
21
- ], 8, c)),
22
- o(d.$slots, "default")
23
- ], 8, r));
24
- }
25
- });
26
- export {
27
- m as default
28
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarComboboxOptionGroup.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,181 +0,0 @@
1
- import { defineComponent as W, mergeModels as O, useModel as X, useSlots as Y, useId as z, computed as w, ref as I, onMounted as D, watch as Z, createElementBlock as v, openBlock as s, Fragment as m, createElementVNode as k, withDirectives as G, createVNode as h, unref as V, withKeys as C, withModifiers as y, vModelText as _, createBlock as S, createCommentVNode as K, renderList as q, withCtx as g, renderSlot as B, toDisplayString as F, createTextVNode as ee, vShow as te } from "vue";
2
- import { ScalarIconMagnifyingGlass as le, ScalarIconPlus as oe } from "@scalar/icons";
3
- import P from "./ScalarComboboxOption.vue.js";
4
- import ne from "./ScalarComboboxOptionGroup.vue.js";
5
- import { isGroups as R } from "./types.js";
6
- import ie from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
7
- const ae = { class: "relative flex" }, se = ["aria-activedescendant", "placeholder"], de = ["aria-multiselectable"], ue = { class: "inline-block min-w-0 flex-1 truncate text-c-1" }, be = /* @__PURE__ */ W({
8
- inheritAttrs: !1,
9
- __name: "ScalarComboboxOptions",
10
- props: /* @__PURE__ */ O({
11
- options: {},
12
- placeholder: {},
13
- multiselect: { type: Boolean }
14
- }, {
15
- modelValue: { default: [] },
16
- modelModifiers: {}
17
- }),
18
- emits: /* @__PURE__ */ O(["add"], ["update:modelValue"]),
19
- setup(f, { emit: U }) {
20
- const d = f, j = U, i = X(f, "modelValue"), M = Y(), $ = `scalar-combobox-items-${z()}`, p = { id: `${z()}-add`, label: "Add a new option" };
21
- function b(t) {
22
- return `${$}-${t.id}`;
23
- }
24
- const r = w(
25
- () => R(d.options) ? d.options.flatMap((t) => t.options) : d.options
26
- ), H = w(
27
- () => R(d.options) ? d.options : (
28
- /*
29
- We know G is an unextended OptionGroup<O> here because of the
30
- structure of the component props so we can cast it to G
31
- */
32
- [{ label: "", options: d.options }]
33
- )
34
- // G is OptionGroup<O>
35
- ), u = I(""), l = I(i.value?.[0] ?? r.value[0]);
36
- D(() => {
37
- u.value = "", l.value = i.value?.[0] ?? r.value[0], i.value[0] && setTimeout(() => {
38
- const e = i.value[0];
39
- e && document?.getElementById(b(e))?.scrollIntoView({ block: "nearest" });
40
- }, 10);
41
- }), Z(
42
- () => u.value,
43
- () => l.value = N.value[0]
44
- );
45
- const x = w(
46
- () => u.value === "" ? r.value : r.value.filter((t) => t.label.toLowerCase().includes(u.value.toLowerCase()))
47
- ), N = w(
48
- () => M.add ? [...x.value, p] : x.value
49
- );
50
- function A(t) {
51
- if (t) {
52
- if (t.id === p.id) {
53
- T();
54
- return;
55
- }
56
- d.multiselect ? i.value.some((e) => e.id === t.id) ? i.value = i.value.filter((e) => e.id !== t.id) : i.value = [
57
- ...i.value,
58
- r.value.find((e) => e.id === t.id)
59
- ] : i.value = [r.value.find((e) => e.id === t.id)];
60
- }
61
- }
62
- function E(t) {
63
- const e = N.value, c = e.findIndex(
64
- (n) => n.id === l.value?.id
65
- ) + t;
66
- c < 0 || c > e.length - 1 || (l.value = e[c], l.value && document?.getElementById(b(l.value))?.scrollIntoView({
67
- behavior: "smooth",
68
- block: "nearest"
69
- }));
70
- }
71
- function T() {
72
- j("add"), u.value = "";
73
- }
74
- const L = I(null);
75
- return D(() => setTimeout(() => L.value?.focus(), 0)), (t, e) => (s(), v(m, null, [
76
- k("div", ae, [
77
- h(V(le), { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-c-3 size-4" }),
78
- G(k("input", {
79
- ref_key: "input",
80
- ref: L,
81
- "onUpdate:modelValue": e[0] || (e[0] = (o) => u.value = o),
82
- "aria-activedescendant": l.value ? b(l.value) : void 0,
83
- "aria-autocomplete": "list",
84
- "aria-controls": $,
85
- class: "min-w-0 flex-1 rounded border-0 py-2.5 pl-8 pr-3 leading-none text-c-1 -outline-offset-1",
86
- "data-1p-ignore": "",
87
- placeholder: f.placeholder,
88
- role: "combobox",
89
- tabindex: "0",
90
- type: "text",
91
- onKeydown: [
92
- e[1] || (e[1] = C(y((o) => E(1), ["prevent"]), ["down"])),
93
- e[2] || (e[2] = C(y((o) => l.value && A(l.value), ["prevent"]), ["enter"])),
94
- e[3] || (e[3] = C(y((o) => E(-1), ["prevent"]), ["up"]))
95
- ]
96
- }, null, 40, se), [
97
- [_, u.value]
98
- ])
99
- ]),
100
- G(k("ul", {
101
- id: $,
102
- "aria-multiselectable": f.multiselect,
103
- class: "border-t p-0.75 custom-scroll overscroll-contain flex-1 min-h-0",
104
- role: "listbox",
105
- tabindex: "-1"
106
- }, [
107
- (s(!0), v(m, null, q(H.value, (o, c) => (s(), S(ne, {
108
- id: `${$}-group-${c}`,
109
- key: c,
110
- hidden: (
111
- // Only show the group label if there are some results
112
- !o.options.some((n) => x.value.some((a) => a.id === n.id)) || // And it has a label
113
- !o.label
114
- )
115
- }, {
116
- label: g(() => [
117
- t.$slots.group ? B(t.$slots, "group", {
118
- key: 0,
119
- group: o
120
- }) : (s(), v(m, { key: 1 }, [
121
- ee(F(o.label), 1)
122
- ], 64))
123
- ]),
124
- default: g(() => [
125
- (s(!0), v(m, null, q(x.value, (n) => (s(), v(m, {
126
- key: n.id
127
- }, [
128
- o.options.some((a) => a.id === n.id) ? (s(), S(P, {
129
- key: 0,
130
- id: b(n),
131
- active: l.value?.id === n.id,
132
- selected: i.value.some((a) => a.id === n.id),
133
- onClick: (a) => A(n),
134
- onMousedown: e[4] || (e[4] = y(() => {
135
- }, ["prevent"])),
136
- onMouseenter: (a) => l.value = n
137
- }, {
138
- default: g(({ active: a, selected: J }) => [
139
- t.$slots.option ? B(t.$slots, "option", {
140
- key: 0,
141
- active: a,
142
- option: n,
143
- selected: J
144
- }) : (s(), v(m, { key: 1 }, [
145
- h(V(ie), {
146
- multiselect: f.multiselect,
147
- selected: i.value.some((Q) => Q.id === n.id)
148
- }, null, 8, ["multiselect", "selected"]),
149
- k("span", ue, F(n.label), 1)
150
- ], 64))
151
- ]),
152
- _: 2
153
- }, 1032, ["id", "active", "selected", "onClick", "onMouseenter"])) : K("", !0)
154
- ], 64))), 128))
155
- ]),
156
- _: 2
157
- }, 1032, ["id", "hidden"]))), 128)),
158
- M.add ? (s(), S(P, {
159
- key: 0,
160
- id: b(p),
161
- active: l.value?.id === p.id,
162
- onClick: T,
163
- onMousedown: e[5] || (e[5] = y(() => {
164
- }, ["prevent"])),
165
- onMouseenter: e[6] || (e[6] = (o) => l.value = p)
166
- }, {
167
- default: g(({ active: o }) => [
168
- h(V(oe), { class: "size-4 p-px" }),
169
- B(t.$slots, "add", { active: o })
170
- ]),
171
- _: 3
172
- }, 8, ["id", "active"])) : K("", !0)
173
- ], 8, de), [
174
- [te, x.value.length || M.add]
175
- ])
176
- ], 64));
177
- }
178
- });
179
- export {
180
- be as default
181
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarComboboxOptions.vue.js";
2
- export {
3
- f as default
4
- };