@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
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "git+https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/components"
12
12
  },
13
- "version": "0.20.8",
13
+ "version": "0.20.10",
14
14
  "engines": {
15
15
  "node": ">=22"
16
16
  },
@@ -39,51 +39,45 @@
39
39
  "radix-vue": "^1.9.17",
40
40
  "vue": "^3.5.26",
41
41
  "vue-component-type-helpers": "^3.2.2",
42
- "@scalar/helpers": "0.4.1",
43
- "@scalar/code-highlight": "0.3.0",
44
- "@scalar/oas-utils": "0.10.7",
45
- "@scalar/icons": "0.6.0",
46
- "@scalar/themes": "0.15.0",
47
- "@scalar/use-hooks": "0.4.0"
42
+ "@scalar/code-highlight": "0.3.1",
43
+ "@scalar/icons": "0.6.1",
44
+ "@scalar/themes": "0.15.1",
45
+ "@scalar/use-hooks": "0.4.1",
46
+ "@scalar/helpers": "0.4.2"
48
47
  },
49
48
  "devDependencies": {
50
49
  "@headlessui/tailwindcss": "^0.2.2",
51
50
  "@playwright/test": "1.56.0",
52
- "@storybook/addon-docs": "10.1.11",
53
- "@storybook/addon-links": "10.1.11",
54
- "@storybook/vue3-vite": "10.1.11",
55
- "@tailwindcss/vite": "^4.1.18",
51
+ "@storybook/addon-docs": "10.2.19",
52
+ "@storybook/addon-links": "10.2.19",
53
+ "@storybook/vue3-vite": "10.2.19",
54
+ "@tailwindcss/vite": "^4.2.0",
56
55
  "@types/jsdom": "27.0.0",
57
56
  "@types/node": "^24.1.0",
58
57
  "@vitejs/plugin-vue": "^6.0.3",
59
58
  "@vue/test-utils": "2.4.6",
60
59
  "@vueless/storybook-dark-mode": "^10.0.6",
61
60
  "jsdom": "27.4.0",
62
- "storybook": "10.1.11",
61
+ "storybook": "10.2.19",
63
62
  "svglint": "^4.1.2",
64
63
  "tailwindcss": "^4.1.18",
65
- "vite": "^7.3.1",
66
- "vite-svg-loader": "5.1.0",
67
- "vitest": "4.0.16",
68
- "@scalar/build-tooling": "0.5.0"
64
+ "vite": "8.0.0",
65
+ "vite-svg-loader": "5.1.1",
66
+ "vitest": "4.1.0"
69
67
  },
70
68
  "scripts": {
71
- "build": "pnpm typegen:icons && scalar-build-vite",
69
+ "build": "pnpm typegen:icons && vite build && vue-tsc -p tsconfig.build.json",
72
70
  "build:storybook": "storybook build",
73
71
  "clean:snapshots": "shx rm -rf \"**/snapshots\"",
74
72
  "dev": "storybook dev -p 5100 --ci",
75
- "format": "scalar-format",
76
- "format:check": "scalar-format-check",
77
- "lint:check": "scalar-lint-check && pnpm lint:icons",
78
- "lint:fix": "scalar-lint-fix",
73
+ "lint:check": "pnpm lint:icons",
79
74
  "lint:icons": "svglint src/components/ScalarIcon/icons/*.svg --config src/components/ScalarIcon/.svglintrc.js",
80
75
  "preview": "vite preview --outDir storybook-static -c test/vite.config.ts 1>&2",
81
76
  "test": "vitest",
82
77
  "test:e2e": "PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:5001/ playwright test",
83
78
  "test:e2e:ci": "CI=1 playwright test",
84
79
  "test:e2e:update": "pnpm test:e2e --update-snapshots",
85
- "typegen:icons": "vite-node ./src/scripts/typegen.ts",
86
- "types:build": "scalar-types-build-vue",
87
- "types:check": "scalar-types-check-vue"
80
+ "typegen:icons": "tsx ./src/scripts/typegen.ts",
81
+ "types:check": "vue-tsc --noEmit"
88
82
  }
89
83
  }
@@ -1,9 +0,0 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
7
- export {
8
- s as default
9
- };
@@ -1,99 +0,0 @@
1
- import { defineComponent as f, createBlock as r, openBlock as t, resolveDynamicComponent as d, mergeProps as z, unref as a, withCtx as x, createElementBlock as s, createCommentVNode as c, renderSlot as n, normalizeClass as o, createVNode as g } from "vue";
2
- import { cva as l, useBindCx as y } from "@scalar/use-hooks/useBindCx";
3
- import { BUTTON_VARIANT_STYLES as h } from "./constants.js";
4
- import k from "../ScalarLoading/ScalarLoading.vue.js";
5
- const A = {
6
- key: 3,
7
- class: "centered"
8
- }, B = {}, T = /* @__PURE__ */ f({
9
- ...B,
10
- inheritAttrs: !1,
11
- __name: "ScalarButton",
12
- props: {
13
- is: { default: "button" },
14
- variant: { default: "solid" },
15
- size: { default: "md" },
16
- disabled: { type: Boolean },
17
- icon: { type: [Object, Function] },
18
- loader: {}
19
- },
20
- setup(e) {
21
- const m = l({
22
- base: "scalar-button flex cursor-pointer items-center justify-center rounded font-medium -outline-offset-1",
23
- variants: {
24
- disabled: { true: "bg-b-2 text-color-3 shadow-none" },
25
- size: {
26
- xs: "px-2 py-1 text-xs/4",
27
- sm: "px-3.5 py-2 text-sm/4",
28
- md: "px-5 py-3 text-sm/4"
29
- },
30
- variant: h
31
- },
32
- compoundVariants: [
33
- {
34
- disabled: !0,
35
- variant: ["solid", "outlined", "ghost", "gradient", "danger"],
36
- class: "bg-b-2 text-c-3 shadow-none hover:bg-b-[_] cursor-not-allowed active:bg-b-[_] hover:text-c-[_] active:text-c-[_]"
37
- },
38
- {
39
- disabled: !0,
40
- variant: ["gradient"],
41
- class: "to-b-1.5 bg-linear-to-b hover:bg-linear-to-b dark:hover:bg-linear-to-t"
42
- }
43
- ]
44
- }), u = l({
45
- base: "shrink-0",
46
- variants: {
47
- size: {
48
- xs: "size-2.75 -ml-0.25 mr-1",
49
- sm: "size-3.25 -ml-0.5 mr-1.5",
50
- md: "size-3.5 -ml-0.5 mr-1.5"
51
- }
52
- }
53
- }), b = l({
54
- variants: {
55
- size: {
56
- xs: "size-4",
57
- sm: "size-5",
58
- md: "size-6"
59
- }
60
- }
61
- }), { cx: v } = y();
62
- return (i, V) => (t(), r(d(e.is), z(
63
- {
64
- "aria-disabled": e.disabled || void 0,
65
- type: e.is === "button" ? "button" : void 0
66
- },
67
- a(v)(a(m)({ disabled: e.disabled, size: e.size, variant: e.variant }), {
68
- relative: e.loader?.isActive
69
- })
70
- ), {
71
- default: x(() => [
72
- i.$slots.icon || e.icon ? (t(), s("div", {
73
- key: 0,
74
- class: o([a(u)({ size: e.size }), { invisible: e.loader?.isActive }])
75
- }, [
76
- n(i.$slots, "icon", {}, () => [
77
- (t(), r(d(e.icon), { class: "size-full" }))
78
- ])
79
- ], 2)) : c("", !0),
80
- e.loader ? (t(), s("span", {
81
- key: 1,
82
- class: o({ invisible: e.loader?.isActive })
83
- }, [
84
- n(i.$slots, "default")
85
- ], 2)) : n(i.$slots, "default", { key: 2 }),
86
- e.loader?.isActive ? (t(), s("div", A, [
87
- g(a(k), {
88
- class: o(a(b)({ size: e.size })),
89
- loader: e.loader
90
- }, null, 8, ["class", "loader"])
91
- ])) : c("", !0)
92
- ]),
93
- _: 3
94
- }, 16, ["aria-disabled", "type"]));
95
- }
96
- });
97
- export {
98
- T as default
99
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarButton.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,18 +0,0 @@
1
- const t = {
2
- solid: [
3
- "scalar-button-solid",
4
- "bg-b-btn text-c-btn focus-visible:border-c-btn active:bg-b-btn hover:bg-h-btn outline-offset-1"
5
- ],
6
- outlined: ["scalar-button-outlined", "active:bg-btn-1 shadow-border bg-b-1 text-c-1 hover:bg-b-2"],
7
- ghost: ["scalar-button-ghost", "bg-transparent text-c-3 active:text-c-1 hover:text-c-1"],
8
- gradient: [
9
- "scalar-button-gradient",
10
- "shadow-border bg-b-1.5 bg-linear-to-b from-b-1 to-b-2 hover:bg-linear-to-t",
11
- // in dark mode we want to reverse the gradient direction
12
- "dark:bg-linear-to-t dark:hover:bg-linear-to-b"
13
- ],
14
- danger: ["scalar-button-danger", "bg-c-danger text-white active:brightness-90 hover:brightness-90"]
15
- };
16
- export {
17
- t as BUTTON_VARIANT_STYLES
18
- };
@@ -1,25 +0,0 @@
1
- import { defineComponent as o, computed as n, createElementBlock as d, openBlock as i, mergeProps as u, unref as s, renderSlot as c } from "vue";
2
- import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
3
- import { useCardRegion as m } from "./useCardHeading.js";
4
- const b = {}, g = /* @__PURE__ */ o({
5
- ...b,
6
- inheritAttrs: !1,
7
- __name: "ScalarCard",
8
- props: {
9
- label: {}
10
- },
11
- setup(e) {
12
- const { id: r } = m(), t = n(() => e.label ? { "aria-label": e.label } : r.value ? { "aria-labelledby": r.value } : {}), { cx: l } = f();
13
- return (a, p) => (i(), d("div", u({ role: "group" }, {
14
- ...t.value,
15
- ...s(l)(
16
- "scalar-card bg-b-2 flex flex-col divide-y rounded-xl border *:first:rounded-t-[inherit] *:last:rounded-b-[inherit]"
17
- )
18
- }), [
19
- c(a.$slots, "default")
20
- ], 16));
21
- }
22
- });
23
- export {
24
- g as default
25
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCard.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, createBlock as o, openBlock as a, normalizeProps as n, guardReactiveProps as s, unref as c, withCtx as _, renderSlot as f } from "vue";
2
- import { useBindCx as i } from "@scalar/use-hooks/useBindCx";
3
- import l from "./ScalarCardSection.vue.js";
4
- const m = {}, h = /* @__PURE__ */ t({
5
- ...m,
6
- inheritAttrs: !1,
7
- __name: "ScalarCardFooter",
8
- setup(p) {
9
- const { cx: r } = i();
10
- return (e, d) => (a(), o(l, n(s(c(r)("scalar-card-footer"))), {
11
- default: _(() => [
12
- f(e.$slots, "default")
13
- ]),
14
- _: 3
15
- }, 16));
16
- }
17
- });
18
- export {
19
- h as default
20
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCardFooter.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,36 +0,0 @@
1
- import { defineComponent as n, useId as d, createBlock as i, openBlock as r, normalizeProps as c, guardReactiveProps as l, unref as a, withCtx as m, createElementVNode as f, createElementBlock as p, createCommentVNode as _, renderSlot as o } from "vue";
2
- import { useBindCx as u } from "@scalar/use-hooks/useBindCx";
3
- import h from "./ScalarCardSection.vue.js";
4
- import { useCardHeading as x } from "./useCardHeading.js";
5
- const C = ["id"], k = {
6
- key: 0,
7
- class: "flex"
8
- }, B = {}, H = /* @__PURE__ */ n({
9
- ...B,
10
- inheritAttrs: !1,
11
- __name: "ScalarCardHeader",
12
- setup($) {
13
- const { cx: s } = u(), t = d();
14
- return x(t), (e, g) => (r(), i(h, c(l(
15
- a(s)(
16
- "scalar-card-header leading-[22px] font-medium py-[6.75px] px-3 shrink-0"
17
- )
18
- )), {
19
- default: m(() => [
20
- f("div", {
21
- id: a(t),
22
- class: "scalar-card-header-title min-w-0 flex-1 truncate"
23
- }, [
24
- o(e.$slots, "default")
25
- ], 8, C),
26
- e.$slots.actions ? (r(), p("div", k, [
27
- o(e.$slots, "actions")
28
- ])) : _("", !0)
29
- ]),
30
- _: 3
31
- }, 16));
32
- }
33
- });
34
- export {
35
- H as default
36
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCardHeader.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,16 +0,0 @@
1
- import { defineComponent as t, createElementBlock as o, openBlock as n, normalizeProps as a, guardReactiveProps as c, unref as s, renderSlot as l } from "vue";
2
- import { useBindCx as f } from "@scalar/use-hooks/useBindCx";
3
- const i = {}, m = /* @__PURE__ */ t({
4
- ...i,
5
- inheritAttrs: !1,
6
- __name: "ScalarCardSection",
7
- setup(_) {
8
- const { cx: e } = f();
9
- return (r, d) => (n(), o("div", a(c(s(e)("scalar-card-content flex overflow-auto"))), [
10
- l(r.$slots, "default")
11
- ], 16));
12
- }
13
- });
14
- export {
15
- m as default
16
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCardSection.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,15 +0,0 @@
1
- import { ref as i, provide as r, inject as t } from "vue";
2
- const n = /* @__PURE__ */ Symbol(), s = (o) => {
3
- const e = t(n, void 0);
4
- e && (e.value = o);
5
- }, c = () => {
6
- const o = i();
7
- return r(n, o), {
8
- /** The region heading id ref */
9
- id: o
10
- };
11
- };
12
- export {
13
- s as useCardHeading,
14
- c as useCardRegion
15
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as c, createElementBlock as o, openBlock as t, normalizeClass as r, createBlock as a, createCommentVNode as n, unref as l } from "vue";
2
- import { ScalarIconCheck as s } from "@scalar/icons";
3
- const d = {}, p = /* @__PURE__ */ c({
4
- ...d,
5
- __name: "ScalarCheckbox",
6
- props: {
7
- selected: { type: Boolean },
8
- type: { default: "checkbox" }
9
- },
10
- setup(e) {
11
- return (m, u) => (t(), o("div", {
12
- class: r(["flex size-4 items-center justify-center p-0.75", [
13
- e.selected ? "bg-c-accent text-b-1" : "text-transparent shadow-border",
14
- e.type === "checkbox" ? "rounded" : "rounded-full"
15
- ]])
16
- }, [
17
- e.selected ? (t(), a(l(s), {
18
- key: 0,
19
- class: "size-3",
20
- weight: "bold"
21
- })) : n("", !0)
22
- ], 2));
23
- }
24
- });
25
- export {
26
- p as default
27
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCheckbox.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent as s, mergeModels as c, useModel as f, useId as _, createBlock as o, openBlock as u, unref as m, withCtx as r, createElementBlock as i, Fragment as v, renderList as p, createTextVNode as V, toDisplayString as k } from "vue";
2
- import x from "./ScalarCheckboxInput.vue.js";
3
- import g from "../ScalarForm/ScalarFormInputGroup.vue.js";
4
- const h = {}, S = /* @__PURE__ */ s({
5
- ...h,
6
- __name: "ScalarCheckboxGroup",
7
- props: /* @__PURE__ */ c({
8
- options: { default: () => [] }
9
- }, {
10
- modelValue: { default: [] },
11
- modelModifiers: {}
12
- }),
13
- emits: ["update:modelValue"],
14
- setup(t) {
15
- const l = f(t, "modelValue"), d = _();
16
- return (B, C) => (u(), o(m(g), null, {
17
- default: r(() => [
18
- (u(!0), i(v, null, p(t.options, (e) => (u(), o(x, {
19
- key: e.value,
20
- modelValue: l.value?.some(({ value: a }) => a === e.value),
21
- name: m(d),
22
- value: e.value,
23
- "onUpdate:modelValue": (a) => l.value = a ? [...l.value, e] : l.value.filter(({ value: n }) => n !== e.value)
24
- }, {
25
- default: r(() => [
26
- V(k(e.label), 1)
27
- ]),
28
- _: 2
29
- }, 1032, ["modelValue", "name", "value", "onUpdate:modelValue"]))), 128))
30
- ]),
31
- _: 1
32
- }));
33
- }
34
- });
35
- export {
36
- S as default
37
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCheckboxGroup.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,45 +0,0 @@
1
- import { defineComponent as c, mergeModels as u, useModel as m, createBlock as p, openBlock as f, unref as o, mergeProps as s, withCtx as _, createVNode as y, createElementVNode as r, withDirectives as h, renderSlot as x, vModelDynamic as v } from "vue";
2
- import { useBindCx as V } from "@scalar/use-hooks/useBindCx";
3
- import b from "./ScalarCheckbox.vue.js";
4
- import g from "../ScalarForm/ScalarFormInput.vue.js";
5
- const k = { class: "flex-1 text-left min-w-0 truncate" }, C = ["type"], B = {}, D = /* @__PURE__ */ c({
6
- ...B,
7
- inheritAttrs: !1,
8
- __name: "ScalarCheckboxInput",
9
- props: /* @__PURE__ */ u({
10
- type: { default: "checkbox" }
11
- }, {
12
- modelValue: { type: Boolean },
13
- modelModifiers: {}
14
- }),
15
- emits: ["update:modelValue"],
16
- setup(t) {
17
- const e = m(t, "modelValue"), { stylingAttrsCx: n, otherAttrs: a } = V();
18
- return (i, l) => (f(), p(o(g), s(
19
- { is: "label" },
20
- o(n)("cursor-pointer gap-2 hover:bg-b-2", { "text-c-1": e.value })
21
- ), {
22
- default: _(() => [
23
- y(b, {
24
- class: "shrink-0",
25
- selected: e.value,
26
- type: t.type
27
- }, null, 8, ["selected", "type"]),
28
- r("div", k, [
29
- x(i.$slots, "default")
30
- ]),
31
- h(r("input", s({
32
- "onUpdate:modelValue": l[0] || (l[0] = (d) => e.value = d),
33
- class: "sr-only",
34
- type: t.type
35
- }, o(a)), null, 16, C), [
36
- [v, e.value]
37
- ])
38
- ]),
39
- _: 3
40
- }, 16));
41
- }
42
- });
43
- export {
44
- D as default
45
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCheckboxInput.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,38 +0,0 @@
1
- import { defineComponent as n, mergeModels as c, useModel as s, useId as i, createBlock as t, openBlock as l, unref as u, withCtx as d, createElementBlock as f, Fragment as _, renderList as p, createTextVNode as v, toDisplayString as V } from "vue";
2
- import k from "./ScalarCheckboxInput.vue.js";
3
- import x from "../ScalarForm/ScalarFormInputGroup.vue.js";
4
- const g = {}, b = /* @__PURE__ */ n({
5
- ...g,
6
- __name: "ScalarCheckboxRadioGroup",
7
- props: /* @__PURE__ */ c({
8
- options: { default: () => [] }
9
- }, {
10
- modelValue: {},
11
- modelModifiers: {}
12
- }),
13
- emits: ["update:modelValue"],
14
- setup(a) {
15
- const o = s(a, "modelValue"), m = i();
16
- return (h, y) => (l(), t(u(x), null, {
17
- default: d(() => [
18
- (l(!0), f(_, null, p(a.options, (e) => (l(), t(k, {
19
- key: e.value,
20
- modelValue: o.value?.value === e.value,
21
- name: u(m),
22
- type: "radio",
23
- value: e.value,
24
- "onUpdate:modelValue": (r) => o.value = r ? e : void 0
25
- }, {
26
- default: d(() => [
27
- v(V(e.label), 1)
28
- ]),
29
- _: 2
30
- }, 1032, ["modelValue", "name", "value", "onUpdate:modelValue"]))), 128))
31
- ]),
32
- _: 1
33
- }));
34
- }
35
- });
36
- export {
37
- b as default
38
- };
@@ -1,4 +0,0 @@
1
- import f from "./ScalarCheckboxRadioGroup.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,69 +0,0 @@
1
- import { defineComponent as p, useId as f, computed as n, createElementBlock as h, openBlock as r, normalizeProps as g, guardReactiveProps as v, unref as o, createElementVNode as i, createBlock as y, createCommentVNode as b, normalizeClass as c, withCtx as x, createVNode as C } from "vue";
2
- import k from "../ScalarCopy/ScalarCopyBackdrop.vue.js";
3
- import { syntaxHighlight as w, standardLanguages as B } from "@scalar/code-highlight";
4
- import { prettyPrintJson as N } from "@scalar/oas-utils/helpers";
5
- import { useBindCx as L } from "@scalar/use-hooks/useBindCx";
6
- import P from "./ScalarCodeBlockCopy.vue.js";
7
- const V = {
8
- tabindex: "0",
9
- class: "custom-scroll overflow-x-auto p-2 -outline-offset-2 min-h-0 min-w-0 flex-1"
10
- }, H = ["id", "innerHTML"], F = /* @__PURE__ */ p({
11
- inheritAttrs: !1,
12
- __name: "ScalarCodeBlock",
13
- props: {
14
- content: {},
15
- prettyPrintedContent: {},
16
- lang: { default: "plaintext" },
17
- lineNumbers: { type: Boolean, default: !1 },
18
- hideCredentials: {},
19
- copy: { type: [String, Boolean], default: "hover" }
20
- },
21
- setup(e) {
22
- const l = f(), t = n(
23
- () => e.prettyPrintedContent || N(e.content ?? "")
24
- ), s = n(() => w(t.value, {
25
- lang: e.lang.trim(),
26
- languages: B,
27
- lineNumbers: e.lineNumbers,
28
- maskCredentials: e.hideCredentials
29
- }).slice(5, -6)), a = n(() => !t.value.includes(`
30
- `)), u = n(() => t.value !== null && t.value !== "null" && t.value !== "404 Not Found"), { cx: d } = L();
31
- return (m, z) => (r(), h("div", g(v(
32
- o(d)(
33
- "scalar-code-block group/code-block flex flex-col",
34
- "relative bg-b-1 min-h-0 min-w-0 focus-visible:outline"
35
- )
36
- )), [
37
- i("div", V, [
38
- i("pre", {
39
- id: o(l),
40
- class: "m-0 bg-transparent text-nowrap whitespace-pre w-fit",
41
- innerHTML: s.value
42
- }, null, 8, H)
43
- ]),
44
- e.copy && u.value ? (r(), y(o(P), {
45
- key: 0,
46
- class: c(["scalar-code-copy absolute", [
47
- a.value ? "top-[calc(10px+0.5lh)] -translate-y-1/2 m-0 right-1" : "top-2.5 right-2.5",
48
- { "opacity-100": e.copy === "always" }
49
- ]]),
50
- content: t.value,
51
- showLang: !a.value,
52
- lang: e.lang,
53
- "aria-controls": o(l)
54
- }, {
55
- backdrop: x(() => [
56
- C(k, {
57
- class: c(["scalar-code-copy-backdrop", [
58
- a.value ? "-inset-y-0.75 -right-1 group-hocus-within/code-block:-left-0.5 left-3" : "-right-1.5 -top-1"
59
- ]])
60
- }, null, 8, ["class"])
61
- ]),
62
- _: 1
63
- }, 8, ["class", "content", "showLang", "lang", "aria-controls"])) : b("", !0)
64
- ], 16));
65
- }
66
- });
67
- export {
68
- F as default
69
- };
@@ -1,5 +0,0 @@
1
- import o from "./ScalarCodeBlock.vue.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };
@@ -1,57 +0,0 @@
1
- import { defineComponent as g, mergeModels as y, useModel as f, computed as h, createBlock as k, openBlock as l, unref as n, mergeProps as C, createSlots as B, withCtx as i, renderSlot as L, createElementVNode as s, createElementBlock as b, createCommentVNode as w, normalizeClass as r, toDisplayString as S } from "vue";
2
- import { useBindCx as v } from "@scalar/use-hooks/useBindCx";
3
- import { LANGUAGE_LABELS as d } from "./constants.js";
4
- import x from "../ScalarCopy/ScalarCopy.vue.js";
5
- const A = { class: "hidden group-hocus-within/code-block:inline" }, G = /* @__PURE__ */ g({
6
- inheritAttrs: !1,
7
- __name: "ScalarCodeBlockCopy",
8
- props: /* @__PURE__ */ y({
9
- showLang: { type: Boolean },
10
- content: {},
11
- lang: {}
12
- }, {
13
- copied: { type: Boolean, default: !1 },
14
- copiedModifiers: {}
15
- }),
16
- emits: ["update:copied"],
17
- setup(e) {
18
- const o = f(e, "copied"), u = h(() => typeof e.content == "string" ? e.content : JSON.stringify(e.content, null, 2)), a = (t) => t in d, { cx: p } = v();
19
- return (t, c) => (l(), k(n(x), C({
20
- content: u.value,
21
- showLabel: "",
22
- copied: o.value,
23
- "onUpdate:copied": c[0] || (c[0] = (m) => o.value = m),
24
- placement: "left"
25
- }, {
26
- ...n(p)(
27
- o.value ? "opacity-100" : "opacity-0 group-hocus-within/code-block:opacity-100"
28
- )
29
- }), B({
30
- backdrop: i(() => [
31
- L(t.$slots, "backdrop")
32
- ]),
33
- _: 2
34
- }, [
35
- e.lang ? {
36
- name: "copy",
37
- fn: i(() => [
38
- s("span", A, [
39
- e.showLang ? (l(), b("span", {
40
- key: 0,
41
- class: r(["group-hocus/copy-button:sr-only", { capitalize: !a(e.lang) }])
42
- }, S(a(e.lang) ? n(d)[e.lang] : e.lang), 3)) : w("", !0),
43
- s("span", {
44
- class: r({
45
- "group-hocus/copy-button:not-sr-only sr-only": e.showLang
46
- })
47
- }, "Copy", 2)
48
- ])
49
- ]),
50
- key: "0"
51
- } : void 0
52
- ]), 1040, ["content", "copied"]));
53
- }
54
- });
55
- export {
56
- G as default
57
- };