@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,126 +0,0 @@
1
- import { defineComponent as g, mergeModels as u, useModel as h, useTemplateRef as T, ref as x, createElementBlock as f, openBlock as m, normalizeStyle as z, normalizeClass as N, renderSlot as t, createVNode as o, mergeProps as A, unref as r, createSlots as I, withCtx as s, Transition as M, createCommentVNode as P, normalizeProps as R, guardReactiveProps as V, createTextVNode as q, nextTick as p } from "vue";
2
- import { ScalarIconArrowRight as w, ScalarIconCaretLeft as E } from "@scalar/icons";
3
- import v from "./ScalarSidebarButton.vue.js";
4
- import L from "./ScalarSidebarItems.vue.js";
5
- /* empty css */
6
- import O from "./ScalarSidebarSpacer.vue.js";
7
- import { findScrollContainer as b } from "./findScrollContainer.js";
8
- import { useSidebarGroups as j } from "./useSidebarGroups.js";
9
- import { useSidebarNestedItem as F } from "./useSidebarNestedItems.js";
10
- const G = {
11
- key: 0,
12
- class: "absolute inset-0 translate-x-full"
13
- }, _ = {}, Z = /* @__PURE__ */ g({
14
- ..._,
15
- inheritAttrs: !1,
16
- __name: "ScalarSidebarNestedItems",
17
- props: /* @__PURE__ */ u({
18
- is: {},
19
- icon: { type: [Object, Function] },
20
- active: { type: Boolean },
21
- selected: { type: Boolean },
22
- disabled: { type: Boolean },
23
- indent: {},
24
- controlled: { type: Boolean },
25
- discrete: { type: Boolean }
26
- }, {
27
- open: { type: Boolean, default: !1 },
28
- openModifiers: {}
29
- }),
30
- emits: /* @__PURE__ */ u(["click", "back"], ["update:open"]),
31
- setup(l, { emit: k }) {
32
- const c = k, a = h(l, "open");
33
- F(a);
34
- const { level: y } = j({ reset: !0 }), n = T("el"), i = x(0);
35
- function S() {
36
- i.value = b(n.value).scrollTop ?? 0, p(
37
- () => n.value?.querySelector('button:not([aria-expanded="true"])')?.focus({ preventScroll: !0 })
38
- );
39
- }
40
- function $() {
41
- p(() => {
42
- n.value?.querySelector("button")?.focus({ preventScroll: !0 }), b(n.value).scrollTop = i.value;
43
- });
44
- }
45
- const C = (e) => {
46
- c("click", e), l.controlled || (a.value = !0);
47
- }, B = (e) => {
48
- c("back", e), l.controlled || (a.value = !1);
49
- };
50
- return (e, d) => (m(), f("li", {
51
- ref_key: "el",
52
- ref: n,
53
- class: N(["group/item group/nested-items contents", { "group/nested-items-open": a.value }]),
54
- style: z({ "--nested-items-offset": `${i.value}px` })
55
- }, [
56
- t(e.$slots, "button", {}, () => [
57
- o(v, A({
58
- is: "button",
59
- "aria-expanded": a.value,
60
- disabled: l.disabled,
61
- icon: l.icon,
62
- indent: r(y),
63
- selected: l.selected
64
- }, e.$attrs, { onClick: C }), I({
65
- aside: s(() => [
66
- t(e.$slots, "aside", {}, () => [
67
- o(r(w), { class: "size-4 text-sidebar-c-2" })
68
- ])
69
- ]),
70
- default: s(() => [
71
- t(e.$slots, "default")
72
- ]),
73
- _: 2
74
- }, [
75
- e.$slots.icon ? {
76
- name: "icon",
77
- fn: s(() => [
78
- t(e.$slots, "icon")
79
- ]),
80
- key: "0"
81
- } : void 0
82
- ]), 1040, ["aria-expanded", "disabled", "icon", "indent", "selected"])
83
- ]),
84
- o(M, {
85
- duration: 300,
86
- enterActiveClass: "top-(--nested-items-offset)",
87
- leaveActiveClass: "top-(--nested-items-offset)",
88
- onEnter: S,
89
- onLeave: $
90
- }, {
91
- default: s(() => [
92
- a.value ? (m(), f("div", G, [
93
- o(L, R(V(e.$attrs)), {
94
- default: s(() => [
95
- t(e.$slots, "back", {}, () => [
96
- o(v, {
97
- is: "button",
98
- class: "text-sidebar-c-1 font-sidebar-active hover:text-sidebar-c-1",
99
- onClick: B
100
- }, {
101
- icon: s(() => [
102
- o(r(E), { class: "size-4 -m-px text-sidebar-c-2" })
103
- ]),
104
- default: s(() => [
105
- t(e.$slots, "back-label", {}, () => [
106
- d[0] || (d[0] = q("Back", -1))
107
- ])
108
- ]),
109
- _: 3
110
- })
111
- ]),
112
- o(O, { class: "h-3" }),
113
- t(e.$slots, "items")
114
- ]),
115
- _: 3
116
- }, 16)
117
- ])) : P("", !0)
118
- ]),
119
- _: 3
120
- })
121
- ], 6));
122
- }
123
- });
124
- export {
125
- Z as default
126
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarSidebarNestedItems.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,39 +0,0 @@
1
- import { defineComponent as l, createElementBlock as s, openBlock as o, mergeProps as c, unref as n, createVNode as i, createElementVNode as r, createCommentVNode as p, renderSlot as a, createTextVNode as u } from "vue";
2
- import { ScalarIconMagnifyingGlass as m } from "@scalar/icons";
3
- import { useBindCx as b } from "@scalar/use-hooks/useBindCx";
4
- const f = { class: "flex-1 text-left leading-none" }, x = {
5
- key: 0,
6
- class: "uppercase text-sidebar-c-2 leading-none py-1 px-1.25 rounded text-xs font-medium border"
7
- }, _ = /* @__PURE__ */ l({
8
- inheritAttrs: !1,
9
- __name: "ScalarSidebarSearchButton",
10
- setup(h) {
11
- const { cx: d } = b();
12
- return (t, e) => (o(), s("button", c(
13
- {
14
- role: "search",
15
- type: "button"
16
- },
17
- n(d)(
18
- "flex items-center rounded border text-base h-8 gap-1 pl-2 pr-1",
19
- "bg-sidebar-b-search border-sidebar-border-search text-sidebar-c-search"
20
- )
21
- ), [
22
- i(n(m), { class: "size-4" }),
23
- r("span", f, [
24
- a(t.$slots, "default", {}, () => [
25
- e[0] || (e[0] = u("Search...", -1))
26
- ])
27
- ]),
28
- t.$slots.shortcut ? (o(), s("span", x, [
29
- e[1] || (e[1] = r("span", { class: "sr-only" }, "Keyboard Shortcut:", -1)),
30
- r("kbd", null, [
31
- a(t.$slots, "shortcut")
32
- ])
33
- ])) : p("", !0)
34
- ], 16));
35
- }
36
- });
37
- export {
38
- _ as default
39
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarSidebarSearchButton.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,66 +0,0 @@
1
- import { defineComponent as u, mergeModels as f, ref as m, useModel as b, onMounted as p, createElementBlock as h, openBlock as l, normalizeProps as v, guardReactiveProps as g, unref as a, createVNode as x, withDirectives as k, createBlock as s, createCommentVNode as y, createElementVNode as S, mergeProps as C, vModelText as M, withModifiers as V } from "vue";
2
- import { ScalarIconMagnifyingGlass as z, ScalarIconX as B } from "@scalar/icons";
3
- import { useBindCx as A } from "@scalar/use-hooks/useBindCx";
4
- import w from "../ScalarLoading/ScalarLoading.vue.js";
5
- import E from "../ScalarIconButton/ScalarIconButton.vue.js";
6
- const I = ["aria-label"], L = /* @__PURE__ */ u({
7
- inheritAttrs: !1,
8
- __name: "ScalarSidebarSearchInput",
9
- props: /* @__PURE__ */ f({
10
- autofocus: { type: Boolean },
11
- loader: {},
12
- label: {}
13
- }, {
14
- modelValue: {},
15
- modelModifiers: {}
16
- }),
17
- emits: ["update:modelValue"],
18
- setup(e) {
19
- const o = m(null), r = b(e, "modelValue");
20
- function n() {
21
- r.value = "", o.value && o.value.focus();
22
- }
23
- const { stylingAttrsCx: c, otherAttrs: i } = A();
24
- return p(() => e.autofocus && o.value?.focus()), (N, t) => (l(), h("label", v(g(
25
- a(c)(
26
- "flex items-center rounded border text-base has-[:focus-visible]:bg-sidebar-b-1 has-[:focus-visible]:outline h-8 gap-1 pl-2 pr-1.5",
27
- "bg-sidebar-b-search border-sidebar-border-search",
28
- r.value ? "text-sidebar-c-1" : "text-sidebar-c-search"
29
- )
30
- )), [
31
- x(a(z), { class: "text-sidebar-c-search size-4" }),
32
- k(S("input", C({
33
- ref_key: "inputRef",
34
- ref: o
35
- }, a(i), {
36
- "onUpdate:modelValue": t[0] || (t[0] = (d) => r.value = d),
37
- "aria-label": e.label ?? "Enter search query",
38
- autocapitalize: "off",
39
- autocomplete: "off",
40
- autocorrect: "off",
41
- class: "flex-1 appearance-none rounded border-none bg-transparent outline-none",
42
- placeholder: "Search...",
43
- spellcheck: "false",
44
- type: "search"
45
- }), null, 16, I), [
46
- [M, r.value]
47
- ]),
48
- e.loader && e.loader.isActive ? (l(), s(a(w), {
49
- key: 0,
50
- class: "mr-3 self-center",
51
- loader: e.loader,
52
- size: "md"
53
- }, null, 8, ["loader"])) : r.value ? (l(), s(a(E), {
54
- key: 1,
55
- class: "p-0.25 size-4",
56
- icon: a(B),
57
- label: "Clear Search",
58
- weight: "bold",
59
- onClick: V(n, ["stop", "prevent"])
60
- }, null, 8, ["icon"])) : y("", !0)
61
- ], 16));
62
- }
63
- });
64
- export {
65
- L as default
66
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarSidebarSearchInput.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as c, createBlock as d, openBlock as p, resolveDynamicComponent as f, normalizeProps as m, guardReactiveProps as u, unref as e, withCtx as s, createVNode as n, createElementVNode as _, renderSlot as r } from "vue";
2
- import { useBindCx as b } from "@scalar/use-hooks/useBindCx";
3
- import x from "./ScalarSidebarButton.vue.js";
4
- import a from "./ScalarSidebarSpacer.vue.js";
5
- import { useSidebarGroups as g } from "./useSidebarGroups.js";
6
- const h = { class: "flex flex-col gap-px" }, y = {}, N = /* @__PURE__ */ c({
7
- ...y,
8
- inheritAttrs: !1,
9
- __name: "ScalarSidebarSection",
10
- props: {
11
- is: { default: "li" },
12
- icon: { type: [Object, Function] },
13
- active: { type: Boolean },
14
- selected: { type: Boolean },
15
- disabled: { type: Boolean },
16
- indent: {}
17
- },
18
- setup(o) {
19
- const { level: t } = g({ increment: !1 }), { cx: l } = b();
20
- return (i, B) => (p(), d(f(o.is), m(u(e(l)("group/item group/sidebar-section contents"))), {
21
- default: s(() => [
22
- n(a, {
23
- class: "group/spacer-before h-3",
24
- indent: e(t)
25
- }, null, 8, ["indent"]),
26
- n(x, {
27
- is: "div",
28
- class: "text-sm/4 py-1.75 font-bold",
29
- disabled: "",
30
- icon: o.icon,
31
- indent: e(t)
32
- }, {
33
- default: s(() => [
34
- r(i.$slots, "default")
35
- ]),
36
- _: 3
37
- }, 8, ["icon", "indent"]),
38
- _("ul", h, [
39
- r(i.$slots, "items")
40
- ]),
41
- n(a, {
42
- class: "group/spacer-after h-3",
43
- indent: e(t)
44
- }, null, 8, ["indent"])
45
- ]),
46
- _: 3
47
- }, 16));
48
- }
49
- });
50
- export {
51
- N as default
52
- };
@@ -1,5 +0,0 @@
1
- import o from "./ScalarSidebarSection.vue.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, createElementBlock as r, openBlock as a, normalizeProps as o, guardReactiveProps as i, unref as c, createVNode as d } from "vue";
2
- import { useBindCx as l } from "@scalar/use-hooks/useBindCx";
3
- import p from "./ScalarSidebarIndent.vue.js";
4
- const s = {}, S = /* @__PURE__ */ t({
5
- ...s,
6
- inheritAttrs: !1,
7
- __name: "ScalarSidebarSpacer",
8
- props: {
9
- indent: { default: 0 }
10
- },
11
- setup(e) {
12
- const { cx: n } = l();
13
- return (f, m) => (a(), r("div", o(i(c(n)("flex px-2 h-1"))), [
14
- d(p, { indent: e.indent }, null, 8, ["indent"])
15
- ], 16));
16
- }
17
- });
18
- export {
19
- S as default
20
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarSidebarSpacer.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,22 +0,0 @@
1
- function r(o) {
2
- const t = window.getComputedStyle(o), [e, n] = t.overflow.split(" ");
3
- return {
4
- x: t.overflowX || e,
5
- y: t.overflowY || n || e
6
- };
7
- }
8
- function u(o, t = "y") {
9
- if (!o)
10
- return document.documentElement;
11
- let e = o.parentElement;
12
- for (; e; ) {
13
- const l = r(e)[t];
14
- if (l === "auto" || l === "scroll")
15
- return e;
16
- e = e.parentElement;
17
- }
18
- return document.documentElement;
19
- }
20
- export {
21
- u as findScrollContainer
22
- };
@@ -1,9 +0,0 @@
1
- import { inject as i, provide as o } from "vue";
2
- const s = /* @__PURE__ */ Symbol(), c = (r = {}) => {
3
- const { increment: t = !1, reset: n = !1 } = r, e = i(s, 0);
4
- return n ? o(s, 0) : t && e < 6 ? o(s, e + 1) : o(s, e), { level: e };
5
- };
6
- export {
7
- s as SIDEBAR_GROUPS_SYMBOL,
8
- c as useSidebarGroups
9
- };
@@ -1,17 +0,0 @@
1
- import { ref as n, computed as r, provide as u, inject as c, onBeforeUnmount as i } from "vue";
2
- const s = /* @__PURE__ */ Symbol(), l = (t) => {
3
- const e = c(s);
4
- e && (e.value.push(t), i(() => {
5
- e.value = e.value.filter((o) => o !== t);
6
- }));
7
- }, m = () => {
8
- const t = n([]), e = r(() => t.value.some((o) => o.value));
9
- return u(s, t), {
10
- /** Whether or not any nested child items are open */
11
- open: e
12
- };
13
- };
14
- export {
15
- l as useSidebarNestedItem,
16
- m as useSidebarNestedItems
17
- };
@@ -1,30 +0,0 @@
1
- import { defineComponent as a, createBlock as r, openBlock as l, Teleport as s, unref as d, createElementVNode as n, mergeProps as i, renderSlot as c } from "vue";
2
- import { useTeleport as m } from "./useTeleport.js";
3
- const p = {}, y = /* @__PURE__ */ a({
4
- ...p,
5
- inheritAttrs: !1,
6
- __name: "ScalarTeleport",
7
- props: {
8
- to: {},
9
- immediate: { type: Boolean },
10
- disabled: { type: Boolean }
11
- },
12
- setup(e) {
13
- const o = m();
14
- return (t, f) => (l(), r(s, {
15
- defer: !e.immediate,
16
- disabled: e.disabled,
17
- to: e.to || d(o)
18
- }, [
19
- n("div", i({
20
- class: "scalar-app",
21
- style: { display: "contents" }
22
- }, t.$attrs), [
23
- c(t.$slots, "default")
24
- ], 16)
25
- ], 8, ["defer", "disabled", "to"]));
26
- }
27
- });
28
- export {
29
- y as default
30
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarTeleport.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,23 +0,0 @@
1
- import { defineComponent as r, createElementBlock as n, openBlock as s, Fragment as l, renderSlot as a, createElementVNode as c, unref as p } from "vue";
2
- import { useProvideTeleport as d } from "./useTeleport.js";
3
- const i = ["id"], _ = {}, k = /* @__PURE__ */ r({
4
- ..._,
5
- inheritAttrs: !1,
6
- __name: "ScalarTeleportRoot",
7
- props: {
8
- id: {}
9
- },
10
- setup(e) {
11
- const t = d(e.id);
12
- return (o, u) => (s(), n(l, null, [
13
- a(o.$slots, "default"),
14
- c("div", {
15
- id: p(t),
16
- class: "scalar-teleport-root contents"
17
- }, null, 8, i)
18
- ], 64));
19
- }
20
- });
21
- export {
22
- k as default
23
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarTeleportRoot.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,11 +0,0 @@
1
- import { nanoid as r } from "nanoid";
2
- import { inject as n, provide as p } from "vue";
3
- const t = /* @__PURE__ */ Symbol(), i = () => n(t, "body"), d = (e) => {
4
- const o = e ?? `scalar-teleport-${r()}`;
5
- return p(t, `#${o}`), o;
6
- };
7
- export {
8
- t as TELEPORT_SYMBOL,
9
- d as useProvideTeleport,
10
- i as useTeleport
11
- };
@@ -1,46 +0,0 @@
1
- import { defineComponent as u, useModel as m, onMounted as f, createBlock as d, openBlock as c, unref as t, mergeProps as l, withCtx as p, withDirectives as x, createElementVNode as _, vModelText as v } from "vue";
2
- import { useBindCx as g } from "@scalar/use-hooks/useBindCx";
3
- import { useTextareaAutosize as h } from "@vueuse/core";
4
- import k from "../ScalarForm/ScalarFormInput.vue.js";
5
- const A = {}, B = /* @__PURE__ */ u({
6
- ...A,
7
- inheritAttrs: !1,
8
- __name: "ScalarTextArea",
9
- props: {
10
- modelValue: {},
11
- modelModifiers: {}
12
- },
13
- emits: ["update:modelValue"],
14
- setup(i) {
15
- const o = m(i, "modelValue"), { textarea: r } = h({
16
- // @ts-expect-error - unexpected type mismatch
17
- input: o,
18
- styleProp: "minHeight"
19
- }), { stylingAttrsCx: a, otherAttrs: n } = g();
20
- return f(() => {
21
- "autofocus" in n.value && r.value?.focus();
22
- }), (C, e) => (c(), d(t(k), l(
23
- { is: "div" },
24
- t(a)(
25
- "custom-scroll flex items-start text-c-1 min-h-0 shrink cursor-text leading-snug"
26
- ),
27
- {
28
- onClick: e[1] || (e[1] = (s) => t(r)?.focus())
29
- }
30
- ), {
31
- default: p(() => [
32
- x(_("textarea", l({
33
- ref_key: "textarea",
34
- ref: r,
35
- "onUpdate:modelValue": e[0] || (e[0] = (s) => o.value = s)
36
- }, t(n), { class: "w-full resize-none border-none bg-transparent text-sm focus-within:outline-none" }), null, 16), [
37
- [v, o.value]
38
- ])
39
- ]),
40
- _: 1
41
- }, 16));
42
- }
43
- });
44
- export {
45
- B as default
46
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarTextArea.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,76 +0,0 @@
1
- import { defineComponent as k, mergeModels as f, useModel as $, ref as w, onMounted as _, createBlock as C, openBlock as o, unref as a, mergeProps as m, withCtx as g, createElementVNode as d, renderSlot as n, createElementBlock as l, createCommentVNode as i, withDirectives as V, vModelDynamic as b, toDisplayString as B } from "vue";
2
- import { useBindCx as M } from "@scalar/use-hooks/useBindCx";
3
- import A from "../ScalarForm/ScalarFormInput.vue.js";
4
- const D = { class: "flex items-center flex-1 relative" }, S = {
5
- key: 0,
6
- class: "select-none whitespace-nowrap text-transparent"
7
- }, E = ["aria-readonly", "readonly"], N = {
8
- key: 1,
9
- class: "absolute flex items-center inset-0 select-none overflow-hidden whitespace-nowrap"
10
- }, z = {
11
- key: 0,
12
- class: "text-c-2"
13
- }, I = { class: "text-transparent" }, P = {
14
- key: 1,
15
- class: "text-c-2"
16
- }, T = {}, F = /* @__PURE__ */ k({
17
- ...T,
18
- inheritAttrs: !1,
19
- __name: "ScalarTextInput",
20
- props: /* @__PURE__ */ f({
21
- readonly: { type: Boolean }
22
- }, {
23
- modelValue: {},
24
- modelModifiers: {}
25
- }),
26
- emits: /* @__PURE__ */ f(["click"], ["update:modelValue"]),
27
- setup(t, { emit: p }) {
28
- const h = p, r = $(t, "modelValue"), s = w(), { stylingAttrsCx: y, otherAttrs: c } = M();
29
- _(() => {
30
- "autofocus" in c.value && s.value?.focus();
31
- });
32
- function v(e) {
33
- h("click", e), t.readonly ? s.value?.select() : s.value?.focus();
34
- }
35
- return (e, u) => (o(), C(a(A), m(
36
- { is: "div" },
37
- a(y)(
38
- "cursor-text text-c-1",
39
- t.readonly ? "" : "focus-within:bg-b-1"
40
- ),
41
- { onClick: v }
42
- ), {
43
- default: g(() => [
44
- d("div", D, [
45
- e.$slots.prefix ? (o(), l("div", S, [
46
- n(e.$slots, "prefix")
47
- ])) : i("", !0),
48
- V(d("input", m({
49
- ref_key: "input",
50
- ref: s,
51
- "onUpdate:modelValue": u[0] || (u[0] = (x) => r.value = x),
52
- "aria-readonly": t.readonly || void 0,
53
- class: "z-1 min-w-0 flex-1 rounded-none border-none bg-transparent placeholder:font-[inherit] focus-within:outline-none",
54
- readonly: t.readonly
55
- }, a(c)), null, 16, E), [
56
- [b, r.value]
57
- ]),
58
- e.$slots.prefix || e.$slots.suffix ? (o(), l("div", N, [
59
- e.$slots.prefix ? (o(), l("span", z, [
60
- n(e.$slots, "prefix")
61
- ])) : i("", !0),
62
- d("span", I, B(r.value || e.$attrs.placeholder), 1),
63
- e.$slots.suffix ? (o(), l("span", P, [
64
- n(e.$slots, "suffix")
65
- ])) : i("", !0)
66
- ])) : i("", !0)
67
- ]),
68
- n(e.$slots, "aside")
69
- ]),
70
- _: 3
71
- }, 16));
72
- }
73
- });
74
- export {
75
- F as default
76
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarTextInput.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,68 +0,0 @@
1
- import { defineComponent as c, mergeModels as f, onMounted as v, useModel as p, watch as y, createBlock as $, openBlock as b, unref as d, withCtx as t, createVNode as r, withModifiers as k, createSlots as C, renderSlot as s } from "vue";
2
- import { useClipboard as V } from "@vueuse/core";
3
- import M from "./ScalarTextInput.vue.js";
4
- import B from "../ScalarCopy/ScalarCopyButton.vue.js";
5
- import g from "../ScalarCopy/ScalarCopyBackdrop.vue.js";
6
- const w = {}, T = /* @__PURE__ */ c({
7
- ...w,
8
- __name: "ScalarTextInputCopy",
9
- props: /* @__PURE__ */ f({
10
- duration: { default: 1500 },
11
- editable: { type: Boolean },
12
- immediate: { type: Boolean }
13
- }, {
14
- modelValue: {},
15
- modelModifiers: {},
16
- copied: { type: Boolean, default: !1 },
17
- copiedModifiers: {}
18
- }),
19
- emits: ["update:modelValue", "update:copied"],
20
- setup(a) {
21
- v(() => {
22
- a.immediate && e.value && i(e.value);
23
- });
24
- const e = p(a, "modelValue"), u = p(a, "copied"), { copy: i, copied: m } = V({
25
- legacy: !0,
26
- copiedDuring: a.duration
27
- });
28
- return y(m, (o) => u.value = o), (o, l) => (b(), $(M, {
29
- modelValue: e.value,
30
- "onUpdate:modelValue": l[1] || (l[1] = (n) => e.value = n),
31
- readonly: !a.editable,
32
- onClick: l[2] || (l[2] = (n) => e.value && d(i)(e.value))
33
- }, {
34
- aside: t(() => [
35
- r(d(B), {
36
- class: "z-1",
37
- copied: u.value || d(m),
38
- placement: "left",
39
- onClick: l[0] || (l[0] = k((n) => e.value && d(i)(e.value), ["stop"]))
40
- }, C({
41
- backdrop: t(() => [
42
- r(d(g), { class: "bg-b-1.5" })
43
- ]),
44
- _: 2
45
- }, [
46
- o.$slots.copy ? {
47
- name: "copy",
48
- fn: t(() => [
49
- s(o.$slots, "copy")
50
- ]),
51
- key: "0"
52
- } : void 0,
53
- o.$slots.copied ? {
54
- name: "copied",
55
- fn: t(() => [
56
- s(o.$slots, "copied")
57
- ]),
58
- key: "1"
59
- } : void 0
60
- ]), 1032, ["copied"])
61
- ]),
62
- _: 3
63
- }, 8, ["modelValue", "readonly"]));
64
- }
65
- });
66
- export {
67
- T as default
68
- };