@scalar/components 0.15.1 → 0.16.0

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 (208) hide show
  1. package/dist/components/ScalarButton/ScalarButton.vue.js +5 -5
  2. package/dist/components/ScalarCard/ScalarCard.vue.d.ts.map +1 -1
  3. package/dist/components/ScalarCard/ScalarCard.vue.js +11 -11
  4. package/dist/components/ScalarCheckboxInput/ScalarCheckboxInput.vue.js +11 -11
  5. package/dist/components/ScalarColorModeToggle/ScalarColorModeToggleIcon.vue2.js +5 -6
  6. package/dist/components/ScalarCombobox/ScalarComboboxOptions.vue.js +28 -28
  7. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue2.js +2 -2
  8. package/dist/components/ScalarFileUpload/ScalarFileUploadDropTarget.vue.js +1 -1
  9. package/dist/components/ScalarFileUpload/ScalarFileUploadFileList.vue.js +8 -10
  10. package/dist/components/ScalarFileUpload/ScalarFileUploadInput.vue.js +4 -5
  11. package/dist/components/ScalarIcon/ScalarIconLegacyAdapter.vue.js +3 -3
  12. package/dist/components/ScalarIcon/icons/Add.svg.js +2 -2
  13. package/dist/components/ScalarIcon/icons/AddTab.svg.js +2 -2
  14. package/dist/components/ScalarIcon/icons/Alert.svg.js +2 -2
  15. package/dist/components/ScalarIcon/icons/ArrowLeft.svg.js +2 -2
  16. package/dist/components/ScalarIcon/icons/ArrowRight.svg.js +2 -2
  17. package/dist/components/ScalarIcon/icons/Brackets.svg.js +2 -2
  18. package/dist/components/ScalarIcon/icons/Branch.svg.js +2 -2
  19. package/dist/components/ScalarIcon/icons/Changelog.svg.js +2 -2
  20. package/dist/components/ScalarIcon/icons/Checkmark.svg.js +2 -2
  21. package/dist/components/ScalarIcon/icons/ChevronDown.svg.js +2 -2
  22. package/dist/components/ScalarIcon/icons/ChevronLeft.svg.js +2 -2
  23. package/dist/components/ScalarIcon/icons/ChevronRight.svg.js +2 -2
  24. package/dist/components/ScalarIcon/icons/ChevronUp.svg.js +2 -2
  25. package/dist/components/ScalarIcon/icons/Clipboard.svg.js +2 -2
  26. package/dist/components/ScalarIcon/icons/Close.svg.js +2 -2
  27. package/dist/components/ScalarIcon/icons/CloseTab.svg.js +2 -2
  28. package/dist/components/ScalarIcon/icons/CloseTabs.svg.js +2 -2
  29. package/dist/components/ScalarIcon/icons/Cloud.svg.js +2 -2
  30. package/dist/components/ScalarIcon/icons/CodeFolder.svg.js +2 -2
  31. package/dist/components/ScalarIcon/icons/Cog.svg.js +2 -2
  32. package/dist/components/ScalarIcon/icons/Collection.svg.js +2 -2
  33. package/dist/components/ScalarIcon/icons/Cookie.svg.js +2 -2
  34. package/dist/components/ScalarIcon/icons/DarkMode.svg.js +2 -2
  35. package/dist/components/ScalarIcon/icons/Delete.svg.js +2 -2
  36. package/dist/components/ScalarIcon/icons/Discord.svg.js +2 -2
  37. package/dist/components/ScalarIcon/icons/DocsPage.svg.js +2 -2
  38. package/dist/components/ScalarIcon/icons/Download.svg.js +2 -2
  39. package/dist/components/ScalarIcon/icons/Duplicate.svg.js +2 -2
  40. package/dist/components/ScalarIcon/icons/Edit.svg.js +2 -2
  41. package/dist/components/ScalarIcon/icons/Ellipses.svg.js +2 -2
  42. package/dist/components/ScalarIcon/icons/Email.svg.js +2 -2
  43. package/dist/components/ScalarIcon/icons/Error.svg.js +2 -2
  44. package/dist/components/ScalarIcon/icons/Example.svg.js +2 -2
  45. package/dist/components/ScalarIcon/icons/ExternalLink.svg.js +2 -2
  46. package/dist/components/ScalarIcon/icons/FilterList.svg.js +2 -2
  47. package/dist/components/ScalarIcon/icons/Folder.svg.js +2 -2
  48. package/dist/components/ScalarIcon/icons/GitHub.svg.js +2 -2
  49. package/dist/components/ScalarIcon/icons/GitHubLine.svg.js +2 -2
  50. package/dist/components/ScalarIcon/icons/Globe.svg.js +2 -2
  51. package/dist/components/ScalarIcon/icons/Google.svg.js +2 -2
  52. package/dist/components/ScalarIcon/icons/Help.svg.js +2 -2
  53. package/dist/components/ScalarIcon/icons/Hide.svg.js +2 -2
  54. package/dist/components/ScalarIcon/icons/History.svg.js +2 -2
  55. package/dist/components/ScalarIcon/icons/House.svg.js +2 -2
  56. package/dist/components/ScalarIcon/icons/Import.svg.js +2 -2
  57. package/dist/components/ScalarIcon/icons/Info.svg.js +2 -2
  58. package/dist/components/ScalarIcon/icons/Key.svg.js +2 -2
  59. package/dist/components/ScalarIcon/icons/Leave.svg.js +2 -2
  60. package/dist/components/ScalarIcon/icons/LightDarkModeToggle.svg.js +2 -2
  61. package/dist/components/ScalarIcon/icons/LightMode.svg.js +2 -2
  62. package/dist/components/ScalarIcon/icons/Link.svg.js +2 -2
  63. package/dist/components/ScalarIcon/icons/Lock.svg.js +2 -2
  64. package/dist/components/ScalarIcon/icons/Logo.svg.js +2 -2
  65. package/dist/components/ScalarIcon/icons/Magic.svg.js +2 -2
  66. package/dist/components/ScalarIcon/icons/Markdown.svg.js +2 -2
  67. package/dist/components/ScalarIcon/icons/Menu.svg.js +2 -2
  68. package/dist/components/ScalarIcon/icons/NotAllowed.svg.js +2 -2
  69. package/dist/components/ScalarIcon/icons/Page.svg.js +2 -2
  70. package/dist/components/ScalarIcon/icons/Pencil.svg.js +2 -2
  71. package/dist/components/ScalarIcon/icons/Play.svg.js +2 -2
  72. package/dist/components/ScalarIcon/icons/Refresh.svg.js +2 -2
  73. package/dist/components/ScalarIcon/icons/Roadmap.svg.js +2 -2
  74. package/dist/components/ScalarIcon/icons/Scribble.svg.js +2 -2
  75. package/dist/components/ScalarIcon/icons/Search.svg.js +2 -2
  76. package/dist/components/ScalarIcon/icons/Server.svg.js +2 -2
  77. package/dist/components/ScalarIcon/icons/Settings.svg.js +2 -2
  78. package/dist/components/ScalarIcon/icons/Show.svg.js +2 -2
  79. package/dist/components/ScalarIcon/icons/Sort.svg.js +2 -2
  80. package/dist/components/ScalarIcon/icons/Terminal.svg.js +2 -2
  81. package/dist/components/ScalarIcon/icons/Trash.svg.js +2 -2
  82. package/dist/components/ScalarIcon/icons/Unlock.svg.js +2 -2
  83. package/dist/components/ScalarIcon/icons/Unwatch.svg.js +2 -2
  84. package/dist/components/ScalarIcon/icons/Upload.svg.js +2 -2
  85. package/dist/components/ScalarIcon/icons/User.svg.js +2 -2
  86. package/dist/components/ScalarIcon/icons/UserSwitch.svg.js +2 -2
  87. package/dist/components/ScalarIcon/icons/Users.svg.js +2 -2
  88. package/dist/components/ScalarIcon/icons/Versions.svg.js +2 -2
  89. package/dist/components/ScalarIcon/icons/Wallet.svg.js +2 -2
  90. package/dist/components/ScalarIcon/icons/Watch.svg.js +2 -2
  91. package/dist/components/ScalarIcon/icons/Workspace.svg.js +2 -2
  92. package/dist/components/ScalarIcon/icons/programming-framework-angular.svg.js +2 -2
  93. package/dist/components/ScalarIcon/icons/programming-framework-astro.svg.js +2 -2
  94. package/dist/components/ScalarIcon/icons/programming-framework-laravel.svg.js +2 -2
  95. package/dist/components/ScalarIcon/icons/programming-framework-nextdotjs.svg.js +2 -2
  96. package/dist/components/ScalarIcon/icons/programming-framework-react.svg.js +2 -2
  97. package/dist/components/ScalarIcon/icons/programming-framework-vuedotjs.svg.js +2 -2
  98. package/dist/components/ScalarIcon/icons/programming-language-c.svg.js +2 -2
  99. package/dist/components/ScalarIcon/icons/programming-language-clojure.svg.js +2 -2
  100. package/dist/components/ScalarIcon/icons/programming-language-csharp.svg.js +2 -2
  101. package/dist/components/ScalarIcon/icons/programming-language-css3.svg.js +2 -2
  102. package/dist/components/ScalarIcon/icons/programming-language-dart.svg.js +2 -2
  103. package/dist/components/ScalarIcon/icons/programming-language-fsharp.svg.js +2 -2
  104. package/dist/components/ScalarIcon/icons/programming-language-go.svg.js +2 -2
  105. package/dist/components/ScalarIcon/icons/programming-language-html5.svg.js +2 -2
  106. package/dist/components/ScalarIcon/icons/programming-language-http.svg.js +2 -2
  107. package/dist/components/ScalarIcon/icons/programming-language-java.svg.js +2 -2
  108. package/dist/components/ScalarIcon/icons/programming-language-javascript.svg.js +2 -2
  109. package/dist/components/ScalarIcon/icons/programming-language-json.svg.js +2 -2
  110. package/dist/components/ScalarIcon/icons/programming-language-kotlin.svg.js +2 -2
  111. package/dist/components/ScalarIcon/icons/programming-language-node.svg.js +2 -2
  112. package/dist/components/ScalarIcon/icons/programming-language-objc.svg.js +2 -2
  113. package/dist/components/ScalarIcon/icons/programming-language-ocaml.svg.js +2 -2
  114. package/dist/components/ScalarIcon/icons/programming-language-php.svg.js +2 -2
  115. package/dist/components/ScalarIcon/icons/programming-language-powershell.svg.js +2 -2
  116. package/dist/components/ScalarIcon/icons/programming-language-python.svg.js +2 -2
  117. package/dist/components/ScalarIcon/icons/programming-language-r.svg.js +2 -2
  118. package/dist/components/ScalarIcon/icons/programming-language-ruby.svg.js +2 -2
  119. package/dist/components/ScalarIcon/icons/programming-language-rust.svg.js +2 -2
  120. package/dist/components/ScalarIcon/icons/programming-language-scala.svg.js +2 -2
  121. package/dist/components/ScalarIcon/icons/programming-language-shell.svg.js +2 -2
  122. package/dist/components/ScalarIcon/icons/programming-language-swift.svg.js +2 -2
  123. package/dist/components/ScalarIcon/icons/programming-language-typescript.svg.js +2 -2
  124. package/dist/components/ScalarIcon/icons/programming-script-code.svg.js +2 -2
  125. package/dist/components/ScalarIcon/icons/programming-tool-git.svg.js +2 -2
  126. package/dist/components/ScalarIcon/icons/programming-tool-tailwindcss.svg.js +2 -2
  127. package/dist/components/ScalarIcon/logos/Adonisjs.svg.js +2 -2
  128. package/dist/components/ScalarIcon/logos/Docusaurus.svg.js +2 -2
  129. package/dist/components/ScalarIcon/logos/Dotnet.svg.js +2 -2
  130. package/dist/components/ScalarIcon/logos/Elysiajs.svg.js +2 -2
  131. package/dist/components/ScalarIcon/logos/Express.svg.js +2 -2
  132. package/dist/components/ScalarIcon/logos/Fastapi.svg.js +2 -2
  133. package/dist/components/ScalarIcon/logos/Fastify.svg.js +2 -2
  134. package/dist/components/ScalarIcon/logos/Go.svg.js +2 -2
  135. package/dist/components/ScalarIcon/logos/Hono.svg.js +2 -2
  136. package/dist/components/ScalarIcon/logos/Laravel.svg.js +2 -2
  137. package/dist/components/ScalarIcon/logos/Litestar.svg.js +2 -2
  138. package/dist/components/ScalarIcon/logos/Nestjs.svg.js +2 -2
  139. package/dist/components/ScalarIcon/logos/Nextjs.svg.js +2 -2
  140. package/dist/components/ScalarIcon/logos/Nitro.svg.js +2 -2
  141. package/dist/components/ScalarIcon/logos/Nuxt.svg.js +2 -2
  142. package/dist/components/ScalarIcon/logos/Openapi.svg.js +2 -2
  143. package/dist/components/ScalarIcon/logos/Platformatic.svg.js +2 -2
  144. package/dist/components/ScalarIcon/logos/React.svg.js +2 -2
  145. package/dist/components/ScalarIcon/logos/Rust.svg.js +2 -2
  146. package/dist/components/ScalarIcon/logos/Svelte.svg.js +2 -2
  147. package/dist/components/ScalarIcon/logos/Vue.svg.js +2 -2
  148. package/dist/components/ScalarIconButton/ScalarIconButton.vue.js +7 -7
  149. package/dist/components/ScalarListbox/ScalarListbox.vue.js +3 -3
  150. package/dist/components/ScalarMenu/ScalarMenuLink.vue.js +4 -4
  151. package/dist/components/ScalarMenu/ScalarMenuProduct.vue.js +7 -7
  152. package/dist/components/ScalarMenu/ScalarMenuProducts.vue.js +12 -15
  153. package/dist/components/ScalarMenu/ScalarMenuResources.vue.js +17 -20
  154. package/dist/components/ScalarMenu/ScalarMenuSupport.vue.d.ts +3 -0
  155. package/dist/components/ScalarMenu/ScalarMenuSupport.vue.d.ts.map +1 -0
  156. package/dist/components/ScalarMenu/ScalarMenuSupport.vue.js +40 -0
  157. package/dist/components/ScalarMenu/ScalarMenuSupport.vue2.js +4 -0
  158. package/dist/components/ScalarMenu/ScalarMenuTeamPicker.vue.js +6 -8
  159. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.d.ts +18 -0
  160. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.d.ts.map +1 -0
  161. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue.js +94 -0
  162. package/dist/components/ScalarMenu/ScalarMenuWorkspacePicker.vue2.js +4 -0
  163. package/dist/components/ScalarMenu/fixtures.d.ts +2 -0
  164. package/dist/components/ScalarMenu/fixtures.d.ts.map +1 -0
  165. package/dist/components/ScalarMenu/index.d.ts +4 -2
  166. package/dist/components/ScalarMenu/index.d.ts.map +1 -1
  167. package/dist/components/ScalarModal/ScalarModal.vue.d.ts +6 -2
  168. package/dist/components/ScalarModal/ScalarModal.vue.d.ts.map +1 -1
  169. package/dist/components/ScalarModal/ScalarModal.vue.js +4 -4
  170. package/dist/components/ScalarModal/ScalarModal.vue2.js +27 -24
  171. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.js +9 -9
  172. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +6 -6
  173. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.d.ts.map +1 -1
  174. package/dist/components/ScalarSidebar/ScalarSidebarButton.vue.js +34 -38
  175. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts +22 -29
  176. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.d.ts.map +1 -1
  177. package/dist/components/ScalarSidebar/ScalarSidebarGroup.vue.js +47 -41
  178. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.d.ts.map +1 -1
  179. package/dist/components/ScalarSidebar/ScalarSidebarGroupToggle.vue.js +9 -9
  180. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue.js +4 -4
  181. package/dist/components/ScalarSidebar/ScalarSidebarIndent.vue2.js +4 -4
  182. package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.d.ts.map +1 -1
  183. package/dist/components/ScalarSidebar/ScalarSidebarItem.vue.js +12 -12
  184. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts +10 -7
  185. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.d.ts.map +1 -1
  186. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue.js +123 -0
  187. package/dist/components/ScalarSidebar/ScalarSidebarNestedItems.vue2.js +4 -0
  188. package/dist/components/ScalarSidebar/ScalarSidebarSearchButton.vue.js +1 -1
  189. package/dist/components/ScalarSidebar/ScalarSidebarSearchInput.vue.js +11 -11
  190. package/dist/components/ScalarSidebar/ScalarSidebarSection.vue.js +9 -9
  191. package/dist/components/ScalarSidebar/findScrollContainer.js +22 -0
  192. package/dist/components/ScalarSidebar/index.d.ts +3 -0
  193. package/dist/components/ScalarSidebar/index.d.ts.map +1 -1
  194. package/dist/components/ScalarSidebar/types.d.ts +53 -1
  195. package/dist/components/ScalarSidebar/types.d.ts.map +1 -1
  196. package/dist/components/ScalarSidebar/useSidebarNestedItems.js +13 -7
  197. package/dist/components/ScalarTextArea/ScalarTextArea.vue.d.ts.map +1 -1
  198. package/dist/components/ScalarTextArea/ScalarTextArea.vue.js +14 -10
  199. package/dist/components/ScalarTextInput/ScalarTextInput.vue.d.ts.map +1 -1
  200. package/dist/components/ScalarTextInput/ScalarTextInput.vue.js +14 -11
  201. package/dist/components/ScalarToggle/ScalarToggleInput.vue.js +3 -3
  202. package/dist/docs/useBindCx/MockComponents.d.ts +154 -0
  203. package/dist/docs/useBindCx/MockComponents.d.ts.map +1 -0
  204. package/dist/index.js +144 -134
  205. package/dist/style.css +1 -1
  206. package/package.json +11 -11
  207. package/dist/docs/useBindCx/MockComponent.d.ts +0 -76
  208. package/dist/docs/useBindCx/MockComponent.d.ts.map +0 -1
@@ -5,12 +5,12 @@ const n = {
5
5
  viewBox: "0 0 24 24"
6
6
  };
7
7
  function o(r, e) {
8
- return t(), l("svg", n, e[0] || (e[0] = [
8
+ return t(), l("svg", n, [...e[0] || (e[0] = [
9
9
  c("path", {
10
10
  fill: "#00DC82",
11
11
  d: "M13.32 19.333h8.14c.26 0 .508-.09.733-.22.226-.129.457-.29.587-.513s.22-.476.22-.733c0-.258-.09-.51-.22-.734l-5.5-9.46a1.34 1.34 0 0 0-.513-.513 1.8 1.8 0 0 0-.807-.22c-.26 0-.508.09-.733.22-.216.12-.393.298-.514.513l-1.393 2.42L10.533 5.4c-.13-.223-.288-.458-.513-.587s-.474-.146-.733-.146c-.26 0-.509.018-.734.146-.24.146-.441.347-.586.587l-6.82 11.733c-.13.223-.147.476-.147.734 0 .257.017.51.147.733s.361.384.586.513c.225.13.474.22.734.22H7.6c2.034 0 3.515-.912 4.547-2.64l2.493-4.326 1.32-2.274 4.033 6.894H14.64zm-5.793-2.346H3.933l5.354-9.24L12 12.367l-1.797 3.132c-.687 1.122-1.468 1.488-2.676 1.488"
12
12
  }, null, -1)
13
- ]));
13
+ ])]);
14
14
  }
15
15
  const d = { render: o };
16
16
  export {
@@ -5,9 +5,9 @@ const h = {
5
5
  viewBox: "0 0 24 24"
6
6
  };
7
7
  function q(e, l) {
8
- return t(), a("svg", h, l[0] || (l[0] = [
8
+ return t(), a("svg", h, [...l[0] || (l[0] = [
9
9
  p('<path fill="#93D500" d="M7.285 13.5H2.007l.003.077.009.15.004.063.014.171.004.039a8.8 8.8 0 0 0 .387 1.871q0 .005.003.011l.058.173.016.044.08.216.048.124a5 5 0 0 0 .078.189l.052.117.031.07.066.14.022.046.079.16.012.024q.045.088.093.175l.004.008.02.036 4.508-2.715.017-.01a3.6 3.6 0 0 1-.33-1.179"></path><path fill="#4D5A31" d="m8.582 15.923-.013.013-3.717 3.717.057.053.105.094.055.048.127.107.034.029a8 8 0 0 0 .324.254l.006.004q.336.252.695.47l.025.016.137.08.084.048.08.045q.072.04.145.078a8 8 0 0 0 .431.21l.132-.32 1.87-4.54.007-.017a3.6 3.6 0 0 1-.584-.389"></path><path fill="#6BA43A" d="M8.195 15.553a3 3 0 0 1-.212-.262 4 4 0 0 1-.2-.296L3.27 17.713q.104.174.215.338l.007.012.003.005.007.01v.002l.019.026.001.002q.119.174.242.342l.006.007.005.007.11.142.015.019q.057.073.117.145l.028.034.155.181.094.105.053.058.024.026.07.075.028.03.125.127 3.723-3.723a3 3 0 0 1-.122-.13"></path><path fill="#4D5A31" d="m13.13 15.921-.124.096.009.016 2.714 4.506a8 8 0 0 0 1.134-.886l-3.718-3.717z"></path><path fill="#93D500" d="m15.335 20.576-.092-.153-2.534-4.206a4 4 0 0 1-.316.167 3.6 3.6 0 0 1-2.567.2c-.057-.017-.113-.04-.169-.06s-.113-.037-.168-.06L7.62 21.003l-.073.178-.063.152.014.006.016.006.004.002.133.05.167.065.085.032a9 9 0 0 0 1.88.442l.075.008.142.016.036.003.174.014.06.004.153.01.094.003.122.004.217.003a9 9 0 0 0 1.495-.126l.154-.028.088-.017.09-.02.15-.032.028-.007a9 9 0 0 0 2.124-.791l.13-.074.157-.088.107-.06.001-.001.002-.001h.001l.001-.001.002-.001.006-.004.034-.02zm-6.75-10.21.123-.097-.009-.015-2.714-4.506q-.189.123-.372.256a9 9 0 0 0-.762.629L8.57 10.35z"></path><path fill="#4D5A31" d="M4.594 6.88q-.064.065-.124.13l-.123.128a9 9 0 0 0-.753.933l-.032.046-.076.112-.104.16a8.83 8.83 0 0 0-1.375 4.397l-.005.178-.003.179h5.266q.002-.09.008-.179c.006-.089.004-.119.01-.178a3.57 3.57 0 0 1 .794-1.917q.059-.069.12-.133c.04-.044.077-.09.12-.133L4.594 6.881Zm10.864-1.306q-.01-.008-.021-.013l-.14-.083-.082-.047-.082-.046-.143-.077-.023-.012a9 9 0 0 0-.95-.426l-.024-.01a9 9 0 0 0-1.987-.498l-.074-.01-.075-.008-.143-.016-.04-.004-.17-.014-.066-.004-.146-.009-.078-.003v5.278c.27.028.54.086.8.174l3.884-3.884a9 9 0 0 0-.44-.288"></path><path fill="#6BA43A" d="M10.679 4.29q-.09 0-.179.003a9 9 0 0 0-1.113.115l-.024.004-.155.029-.087.016a6 6 0 0 0-.24.052l-.028.006a9 9 0 0 0-2.125.792l-.13.074-.156.087-.115.066h-.002l-.008.005-.03.017v.001l.093.153 2.625 4.359a4 4 0 0 1 .316-.167 3.6 3.6 0 0 1 1.536-.35V4.285q-.09.001-.178.004Z"></path><path fill="#4D5A31" d="M19.704 12.708a10 10 0 0 0-.05-.61l-.002-.014-.001-.007-.027-.201v-.006a9 9 0 0 0-.273-1.245l-.002-.008-.059-.19-.008-.025-.057-.17-.016-.046-.054-.147-.027-.07a5 5 0 0 0-.086-.216l-.04-.094-.052-.12-.03-.068-.066-.142-.021-.043-.08-.162-.012-.022-.093-.177-.003-.006a9 9 0 0 0-.504-.818l-3.886 3.886q.132.392.174.8h5.278q0-.04-.003-.08Z"></path><path fill="#6BA43A" d="M14.45 13.143q-.002.09-.01.179-.001.09-.01.178a3.57 3.57 0 0 1-.793 1.918c-.037.046-.08.088-.12.133-.04.044-.077.09-.12.132l3.723 3.723q.063-.064.124-.13l.123-.128q.415-.448.754-.935l.027-.039.082-.12.07-.108.034-.052a8.83 8.83 0 0 0 1.377-4.573l.003-.178z"></path><path fill="#424143" d="M21.279 2.722a2.467 2.467 0 0 0-3.953 2.84l-5.374 5.373a2.467 2.467 0 1 0 1.114 1.113l5.373-5.373a2.466 2.466 0 0 0 2.84-3.953"></path>', 10)
10
- ]));
10
+ ])]);
11
11
  }
12
12
  const d = { render: q };
13
13
  export {
@@ -5,7 +5,7 @@ const r = {
5
5
  viewBox: "0 0 24 24"
6
6
  };
7
7
  function l(s, e) {
8
- return n(), t("svg", r, e[0] || (e[0] = [
8
+ return n(), t("svg", r, [...e[0] || (e[0] = [
9
9
  o("path", {
10
10
  stroke: "#21FA90",
11
11
  "stroke-linecap": "round",
@@ -19,7 +19,7 @@ function l(s, e) {
19
19
  "stroke-width": ".885",
20
20
  d: "m21.719 10.719 1.839 1.09v1.09l-1.84 1.091M2.834 8.13.774 9.322v5.326l2.016 1.167m3.744 1.07v1.183l3.021 1.674 2.32-1.358-.02-2.471m2.282-1.387v1.3L16.31 17.1l3.175-1.9v-5.186L16.36 8.217"
21
21
  }, null, -1)
22
- ]));
22
+ ])]);
23
23
  }
24
24
  const d = { render: l };
25
25
  export {
@@ -5,7 +5,7 @@ const r = {
5
5
  viewBox: "0 0 24 24"
6
6
  };
7
7
  function n(s, e) {
8
- return l(), o("svg", r, e[0] || (e[0] = [
8
+ return l(), o("svg", r, [...e[0] || (e[0] = [
9
9
  t("path", {
10
10
  fill: "#61DAFB",
11
11
  d: "M12.5 14.014a1.783 1.783 0 1 0 0-3.565 1.783 1.783 0 0 0 0 3.565"
@@ -25,7 +25,7 @@ function n(s, e) {
25
25
  "stroke-width": ".87",
26
26
  d: "M9.337 10.406c-2.641 4.575-3.366 9.1-1.62 10.11 1.747 1.008 5.304-1.883 7.946-6.458s3.366-9.101 1.62-10.11c-1.747-1.009-5.305 1.883-7.946 6.458Z"
27
27
  }, null, -1)
28
- ]));
28
+ ])]);
29
29
  }
30
30
  const c = { render: n };
31
31
  export {
@@ -5,12 +5,12 @@ const o = {
5
5
  viewBox: "0 0 24 24"
6
6
  };
7
7
  function q(n, l) {
8
- return e(), a("svg", o, l[0] || (l[0] = [
8
+ return e(), a("svg", o, [...l[0] || (l[0] = [
9
9
  t("path", {
10
10
  fill: "currentColor",
11
11
  d: "m21.863 11.755-.839-.52-.024-.244.722-.673a.288.288 0 0 0-.096-.482l-.923-.345-.072-.239.575-.799a.288.288 0 0 0-.187-.455l-.973-.158-.117-.218.409-.897a.286.286 0 0 0-.273-.409l-.987.034-.157-.188.228-.962a.287.287 0 0 0-.348-.348l-.96.227-.19-.157.034-.986a.287.287 0 0 0-.409-.273l-.897.409-.218-.118-.158-.972a.288.288 0 0 0-.454-.189l-.8.575-.238-.071-.345-.923a.288.288 0 0 0-.482-.096L13.01 3l-.245-.023-.52-.84a.29.29 0 0 0-.49 0l-.52.84q-.123.01-.245.023l-.673-.722a.29.29 0 0 0-.482.096l-.345.923q-.12.034-.237.072l-.8-.576a.288.288 0 0 0-.455.188l-.158.973q-.11.057-.22.118l-.895-.41a.287.287 0 0 0-.409.273l.034.988-.19.156-.96-.227a.29.29 0 0 0-.348.348l.227.962-.157.188-.987-.034a.288.288 0 0 0-.273.409l.409.897a7 7 0 0 0-.117.22l-.972.156a.288.288 0 0 0-.189.455l.575.8-.071.237-.923.346a.29.29 0 0 0-.096.482L3 10.99l-.024.244-.84.52a.29.29 0 0 0 0 .492l.84.519q.01.123.025.245l-.723.673a.29.29 0 0 0 .096.482l.922.345q.035.12.073.237l-.576.8a.29.29 0 0 0 .188.454l.973.158q.056.11.117.22l-.41.896a.288.288 0 0 0 .274.409l.987-.035q.076.096.156.19l-.227.961a.287.287 0 0 0 .348.347l.961-.226.19.156-.035.987a.288.288 0 0 0 .41.273l.896-.41q.108.06.219.119l.158.971a.288.288 0 0 0 .455.19l.799-.577q.118.038.237.072l.345.923a.287.287 0 0 0 .482.096L10.99 21q.121.014.244.025l.52.839a.29.29 0 0 0 .492 0l.519-.84q.123-.01.245-.024l.674.722a.287.287 0 0 0 .48-.096l.346-.923q.12-.034.238-.072l.8.576a.29.29 0 0 0 .454-.189l.158-.972.219-.117.896.409a.288.288 0 0 0 .41-.273l-.035-.988a7 7 0 0 0 .19-.155l.96.226a.287.287 0 0 0 .348-.347l-.226-.961.155-.19.988.035a.29.29 0 0 0 .272-.41l-.409-.896q.06-.108.117-.219l.973-.158a.287.287 0 0 0 .188-.454l-.575-.8.072-.237.922-.345a.286.286 0 0 0 .096-.482L21 13.011l.025-.245.839-.52a.29.29 0 0 0 0-.49Zm-5.619 6.965a.595.595 0 0 1 .25-1.163.595.595 0 0 1-.25 1.163m-.286-1.93a.54.54 0 0 0-.642.417l-.299 1.391a7.3 7.3 0 0 1-3.017.65c-1.1 0-2.144-.243-3.08-.679l-.299-1.39a.54.54 0 0 0-.643-.417l-1.228.263a7 7 0 0 1-.635-.748h5.976c.068 0 .113-.012.113-.074V14.09c0-.062-.046-.074-.113-.074h-1.747v-1.34h1.89c.172 0 .922.049 1.162 1.007.075.295.24 1.254.352 1.561.113.344.57 1.032 1.059 1.032h2.977a1 1 0 0 0 .108-.01q-.31.421-.677.794l-1.256-.27Zm-8.265 1.9a.594.594 0 1 1-.014-1.17.594.594 0 0 1 .014 1.171ZM5.427 9.5a.594.594 0 1 1-1.086.481.594.594 0 0 1 1.086-.481m-.697 1.65 1.28-.569a.543.543 0 0 0 .274-.715l-.263-.597h1.036v4.672h-2.09a7.3 7.3 0 0 1-.237-2.792Zm5.614-.454V9.32h2.468c.128 0 .9.148.9.725 0 .48-.592.652-1.08.652zm8.969 1.24q0 .273-.02.542h-.75c-.076 0-.106.05-.106.123v.345c0 .81-.457.987-.858 1.032-.381.043-.805-.16-.857-.394-.225-1.265-.6-1.536-1.192-2.003.735-.467 1.5-1.155 1.5-2.077 0-.996-.683-1.623-1.148-1.93-.652-.43-1.375-.517-1.57-.517h-7.76a7.3 7.3 0 0 1 4.091-2.308l.915.959a.54.54 0 0 0 .765.018l1.024-.98a7.32 7.32 0 0 1 5.006 3.566l-.7 1.583a.543.543 0 0 0 .275.715l1.35.6q.034.357.035.726m-7.754-8.004a.595.595 0 1 1 .82.86.595.595 0 0 1-.82-.86m6.951 5.595a.594.594 0 1 1 1.086.481.594.594 0 0 1-1.086-.481"
12
12
  }, null, -1)
13
- ]));
13
+ ])]);
14
14
  }
15
15
  const c = { render: q };
16
16
  export {
@@ -5,7 +5,7 @@ const n = {
5
5
  viewBox: "-2 0 24 24"
6
6
  };
7
7
  function c(o, l) {
8
- return t(), a("svg", n, l[0] || (l[0] = [
8
+ return t(), a("svg", n, [...l[0] || (l[0] = [
9
9
  e("path", {
10
10
  fill: "#FF3E00",
11
11
  d: "M18.664 3.171c-2.219-3.185-6.61-4.13-9.788-2.104L3.29 4.625A6.42 6.42 0 0 0 .398 8.917a6.74 6.74 0 0 0 .666 4.332 6.4 6.4 0 0 0-.959 2.369 6.85 6.85 0 0 0 1.166 5.175c2.219 3.194 6.61 4.137 9.782 2.11l5.586-3.557a6.42 6.42 0 0 0 2.892-4.292 6.74 6.74 0 0 0-.666-4.332 6.4 6.4 0 0 0 .959-2.369 6.94 6.94 0 0 0-1.16-5.182"
@@ -14,7 +14,7 @@ function c(o, l) {
14
14
  fill: "#fff",
15
15
  d: "M8.327 21.099a4.435 4.435 0 0 1-4.76-1.75 4.16 4.16 0 0 1-.7-3.122q.05-.261.133-.517l.105-.318.286.182a7.1 7.1 0 0 0 2.186 1.095l.208.063-.02.201c-.025.293.055.585.223.83a1.305 1.305 0 0 0 1.779.379l5.581-3.521a1.18 1.18 0 0 0 .524-.783 1.23 1.23 0 0 0-.211-.923 1.305 1.305 0 0 0-1.78-.379l-2.12 1.35q-.53.321-1.135.488a4.435 4.435 0 0 1-4.76-1.75 4.16 4.16 0 0 1-.7-3.122 3.84 3.84 0 0 1 1.736-2.573l5.581-3.559a4.3 4.3 0 0 1 1.134-.485 4.435 4.435 0 0 1 4.76 1.751c.641.908.893 2.03.7 3.122a4 4 0 0 1-.132.517l-.105.318-.287-.182a7.1 7.1 0 0 0-2.186-1.095l-.207-.063.019-.202a1.27 1.27 0 0 0-.223-.83 1.305 1.305 0 0 0-1.779-.378L6.6 9.363a1.18 1.18 0 0 0-.523.783c-.056.323.019.655.21.923a1.305 1.305 0 0 0 1.78.38l2.121-1.35c.352-.214.732-.38 1.134-.485a4.435 4.435 0 0 1 4.76 1.75 4.16 4.16 0 0 1 .7 3.122 3.8 3.8 0 0 1-1.736 2.563l-5.58 3.559c-.353.214-.732.38-1.135.489"
16
16
  }, null, -1)
17
- ]));
17
+ ])]);
18
18
  }
19
19
  const f = { render: c };
20
20
  export {
@@ -5,7 +5,7 @@ const o = {
5
5
  viewBox: "0 0 24 24"
6
6
  };
7
7
  function r(d, e) {
8
- return n(), t("svg", o, e[0] || (e[0] = [
8
+ return n(), t("svg", o, [...e[0] || (e[0] = [
9
9
  l("path", {
10
10
  fill: "#41B883",
11
11
  d: "m14.31 4.34-2.31 4-2.31-4H2l10 17.32L22 4.34z"
@@ -14,7 +14,7 @@ function r(d, e) {
14
14
  fill: "#34495E",
15
15
  d: "m14.31 4.34-2.31 4-2.31-4H6l6 10.392L18 4.34z"
16
16
  }, null, -1)
17
- ]));
17
+ ])]);
18
18
  }
19
19
  const m = { render: r };
20
20
  export {
@@ -1,9 +1,9 @@
1
- import { defineComponent as d, useTemplateRef as c, computed as o, createElementBlock as s, openBlock as a, mergeProps as u, unref as i, createVNode as m, createCommentVNode as p, toDisplayString as f } from "vue";
1
+ import { defineComponent as d, useTemplateRef as c, computed as o, createElementBlock as s, openBlock as a, mergeProps as u, unref as i, createVNode as p, createCommentVNode as m, toDisplayString as f } from "vue";
2
2
  import { cva as b, useBindCx as h } from "@scalar/use-hooks/useBindCx";
3
3
  import { BUTTON_VARIANT_STYLES as g } from "../ScalarButton/constants.js";
4
4
  import { useTooltip as v } from "../ScalarTooltip/useTooltip.js";
5
5
  import z from "../ScalarIcon/ScalarIconLegacyAdapter.vue.js";
6
- const k = ["aria-disabled"], y = {
6
+ const y = ["aria-disabled"], k = {
7
7
  key: 0,
8
8
  class: "sr-only"
9
9
  }, B = {}, C = /* @__PURE__ */ d({
@@ -12,13 +12,13 @@ const k = ["aria-disabled"], y = {
12
12
  __name: "ScalarIconButton",
13
13
  props: {
14
14
  label: {},
15
- icon: {},
15
+ icon: { type: [Object, Function] },
16
16
  disabled: { type: Boolean },
17
17
  variant: { default: "ghost" },
18
18
  size: { default: "md" },
19
19
  thickness: {},
20
20
  weight: {},
21
- tooltip: { type: Boolean }
21
+ tooltip: { type: [Boolean, Object] }
22
22
  },
23
23
  setup(t) {
24
24
  const n = b({
@@ -57,13 +57,13 @@ const k = ["aria-disabled"], y = {
57
57
  "aria-disabled": e.disabled,
58
58
  type: "button"
59
59
  }, i(r)(i(n)({ size: e.size, variant: e.variant, disabled: e.disabled }))), [
60
- m(i(z), {
60
+ p(i(z), {
61
61
  icon: e.icon,
62
62
  thickness: e.thickness,
63
63
  weight: e.weight
64
64
  }, null, 8, ["icon", "thickness", "weight"]),
65
- e.tooltip ? p("", !0) : (a(), s("span", y, f(e.label), 1))
66
- ], 16, k));
65
+ e.tooltip ? m("", !0) : (a(), s("span", k, f(e.label), 1))
66
+ ], 16, y));
67
67
  }
68
68
  });
69
69
  export {
@@ -56,9 +56,9 @@ const S = { class: "custom-scroll min-h-0 flex-1" }, D = /* @__PURE__ */ c({
56
56
  default: l(() => [
57
57
  (o(!0), u(_, null, g(e.options, (n) => (o(), i(N, {
58
58
  key: n.id,
59
- option: n,
60
- multiselect: e.multiple
61
- }, null, 8, ["option", "multiselect"]))), 128))
59
+ multiselect: e.multiple,
60
+ option: n
61
+ }, null, 8, ["multiselect", "option"]))), 128))
62
62
  ]),
63
63
  _: 1
64
64
  })
@@ -1,4 +1,4 @@
1
- import { defineComponent as i, createBlock as n, openBlock as o, unref as t, mergeProps as a, withCtx as l, createElementBlock as m, createElementVNode as c, normalizeClass as s, renderSlot as f } from "vue";
1
+ import { defineComponent as i, createBlock as n, openBlock as o, unref as t, mergeProps as a, withCtx as l, createElementBlock as c, createElementVNode as m, normalizeClass as s, renderSlot as f } from "vue";
2
2
  import { useBindCx as p } from "@scalar/use-hooks/useBindCx";
3
3
  import { DropdownMenu as u } from "radix-vue/namespaced";
4
4
  import d from "../ScalarDropdown/ScalarDropdownButton.vue.js";
@@ -11,7 +11,7 @@ const h = {
11
11
  __name: "ScalarMenuLink",
12
12
  props: {
13
13
  is: { default: () => u.Item },
14
- icon: {},
14
+ icon: { type: [Object, Function] },
15
15
  strong: { type: Boolean }
16
16
  },
17
17
  setup(k) {
@@ -30,8 +30,8 @@ const h = {
30
30
  icon: e.icon,
31
31
  thickness: e.strong ? "2.5" : "2",
32
32
  weight: e.strong ? "bold" : "regular"
33
- }, null, 8, ["class", "icon", "thickness", "weight"])) : (o(), m("div", h)),
34
- c("div", {
33
+ }, null, 8, ["class", "icon", "thickness", "weight"])) : (o(), c("div", h)),
34
+ m("div", {
35
35
  class: s(["flex items-center flex-1 min-w-0 truncate", e.strong ? "font-medium" : "font-normal"])
36
36
  }, [
37
37
  f(e.$slots, "default")
@@ -1,16 +1,16 @@
1
- import { defineComponent as n, createBlock as s, openBlock as a, unref as r, mergeProps as i, withCtx as c, renderSlot as l } from "vue";
1
+ import { defineComponent as n, createBlock as s, openBlock as a, unref as t, mergeProps as i, withCtx as c, renderSlot as l } from "vue";
2
2
  import { useBindCx as p, cva as d } from "@scalar/use-hooks/useBindCx";
3
- import f from "./ScalarMenuLink.vue.js";
3
+ import u from "./ScalarMenuLink.vue.js";
4
4
  const v = /* @__PURE__ */ n({
5
5
  inheritAttrs: !1,
6
6
  __name: "ScalarMenuProduct",
7
7
  props: {
8
8
  is: { default: "a" },
9
9
  selected: { type: Boolean },
10
- icon: {}
10
+ icon: { type: [Object, Function] }
11
11
  },
12
- setup(u) {
13
- const { cx: t } = p(), o = d({
12
+ setup(f) {
13
+ const { cx: r } = p(), o = d({
14
14
  base: "gap-1.5",
15
15
  variants: {
16
16
  selected: {
@@ -19,12 +19,12 @@ const v = /* @__PURE__ */ n({
19
19
  }
20
20
  }
21
21
  });
22
- return (e, m) => (a(), s(r(f), i({
22
+ return (e, b) => (a(), s(t(u), i({
23
23
  is: e.is,
24
24
  icon: e.icon,
25
25
  strong: "",
26
26
  target: "_blank"
27
- }, r(t)(r(o)({ selected: e.selected }))), {
27
+ }, t(r)(t(o)({ selected: e.selected }))), {
28
28
  default: c(() => [
29
29
  l(e.$slots, "default")
30
30
  ]),
@@ -19,11 +19,10 @@ const P = /* @__PURE__ */ a({
19
19
  selected: o.selected === "dashboard",
20
20
  onClick: e[0] || (e[0] = (r) => o.$emit("open", r, "dashboard"))
21
21
  }, {
22
- default: n(() => e[3] || (e[3] = [
23
- l(" Dashboard ")
24
- ])),
25
- _: 1,
26
- __: [3]
22
+ default: n(() => [...e[3] || (e[3] = [
23
+ l(" Dashboard ", -1)
24
+ ])]),
25
+ _: 1
27
26
  }, 8, ["href", "icon", "selected"]),
28
27
  t(d, {
29
28
  href: o.hrefs?.docs ?? "https://docs.scalar.com",
@@ -31,11 +30,10 @@ const P = /* @__PURE__ */ a({
31
30
  selected: o.selected === "docs",
32
31
  onClick: e[1] || (e[1] = (r) => o.$emit("open", r, "docs"))
33
32
  }, {
34
- default: n(() => e[4] || (e[4] = [
35
- l(" Docs ")
36
- ])),
37
- _: 1,
38
- __: [4]
33
+ default: n(() => [...e[4] || (e[4] = [
34
+ l(" Docs ", -1)
35
+ ])]),
36
+ _: 1
39
37
  }, 8, ["href", "icon", "selected"]),
40
38
  t(d, {
41
39
  href: o.hrefs?.client ?? "https://client.scalar.com",
@@ -43,11 +41,10 @@ const P = /* @__PURE__ */ a({
43
41
  selected: o.selected === "client",
44
42
  onClick: e[2] || (e[2] = (r) => o.$emit("open", r, "client"))
45
43
  }, {
46
- default: n(() => e[5] || (e[5] = [
47
- l(" Client ")
48
- ])),
49
- _: 1,
50
- __: [5]
44
+ default: n(() => [...e[5] || (e[5] = [
45
+ l(" Client ", -1)
46
+ ])]),
47
+ _: 1
51
48
  }, 8, ["href", "icon", "selected"])
52
49
  ], 16));
53
50
  }
@@ -4,44 +4,41 @@ import a from "./ScalarMenuLink.vue.js";
4
4
  import f from "./ScalarMenuSection.vue.js";
5
5
  const y = /* @__PURE__ */ i({
6
6
  __name: "ScalarMenuResources",
7
- setup(_) {
8
- return (u, o) => (c(), l(f, null, {
9
- title: t(() => o[0] || (o[0] = [
10
- e("Resources")
11
- ])),
7
+ setup(u) {
8
+ return (d, o) => (c(), l(f, null, {
9
+ title: t(() => [...o[0] || (o[0] = [
10
+ e("Resources", -1)
11
+ ])]),
12
12
  default: t(() => [
13
13
  r(a, {
14
14
  href: "mailto:support@scalar.com",
15
15
  icon: n(s),
16
16
  target: "_blank"
17
17
  }, {
18
- default: t(() => o[1] || (o[1] = [
19
- e(" Sales & Support ")
20
- ])),
21
- _: 1,
22
- __: [1]
18
+ default: t(() => [...o[1] || (o[1] = [
19
+ e(" Sales & Support ", -1)
20
+ ])]),
21
+ _: 1
23
22
  }, 8, ["icon"]),
24
23
  r(a, {
25
24
  href: "https://scalar.com/terms-and-conditions",
26
25
  icon: n(p),
27
26
  target: "_blank"
28
27
  }, {
29
- default: t(() => o[2] || (o[2] = [
30
- e(" Terms & Conditions ")
31
- ])),
32
- _: 1,
33
- __: [2]
28
+ default: t(() => [...o[2] || (o[2] = [
29
+ e(" Terms & Conditions ", -1)
30
+ ])]),
31
+ _: 1
34
32
  }, 8, ["icon"]),
35
33
  r(a, {
36
34
  href: "https://scalar.com/privacy-policy",
37
35
  icon: n(m),
38
36
  target: "_blank"
39
37
  }, {
40
- default: t(() => o[3] || (o[3] = [
41
- e(" Privacy Policy ")
42
- ])),
43
- _: 1,
44
- __: [3]
38
+ default: t(() => [...o[3] || (o[3] = [
39
+ e(" Privacy Policy ", -1)
40
+ ])]),
41
+ _: 1
45
42
  }, 8, ["icon"])
46
43
  ]),
47
44
  _: 1
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=ScalarMenuSupport.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarMenuSupport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuSupport.vue"],"names":[],"mappings":";AAoGA,wBAKG"}
@@ -0,0 +1,40 @@
1
+ import { defineComponent as i, createBlock as c, openBlock as l, withCtx as o, createVNode as e, unref as a, createTextVNode as r } from "vue";
2
+ import { ScalarIconDiscordLogo as s, ScalarIconGithubLogo as f } from "@scalar/icons";
3
+ import n from "./ScalarMenuLink.vue.js";
4
+ import u from "./ScalarMenuSection.vue.js";
5
+ const k = /* @__PURE__ */ i({
6
+ __name: "ScalarMenuSupport",
7
+ setup(m) {
8
+ return (p, t) => (l(), c(u, null, {
9
+ title: o(() => [...t[0] || (t[0] = [
10
+ r("Resources", -1)
11
+ ])]),
12
+ default: o(() => [
13
+ e(n, {
14
+ href: "https://discord.gg/scalar",
15
+ icon: a(s),
16
+ target: "_blank"
17
+ }, {
18
+ default: o(() => [...t[1] || (t[1] = [
19
+ r(" Discord ", -1)
20
+ ])]),
21
+ _: 1
22
+ }, 8, ["icon"]),
23
+ e(n, {
24
+ href: "https://github.com/scalar/scalar",
25
+ icon: a(f),
26
+ target: "_blank"
27
+ }, {
28
+ default: o(() => [...t[2] || (t[2] = [
29
+ r(" GitHub ", -1)
30
+ ])]),
31
+ _: 1
32
+ }, 8, ["icon"])
33
+ ]),
34
+ _: 1
35
+ }));
36
+ }
37
+ });
38
+ export {
39
+ k as default
40
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ScalarMenuSupport.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, computed as g, createBlock as u, openBlock as n, unref as e, withCtx as r, createVNode as a, mergeProps as b, createElementVNode as x, createElementBlock as S, Fragment as w, renderList as v, createTextVNode as C } from "vue";
1
+ import { defineComponent as g, computed as _, createBlock as u, openBlock as n, unref as e, withCtx as r, createVNode as a, mergeProps as b, createElementVNode as x, createElementBlock as S, Fragment as w, renderList as v, createTextVNode as C } from "vue";
2
2
  import { ScalarIconUserSwitch as k, ScalarIconCaretRight as V, ScalarIconPlus as $ } from "@scalar/icons";
3
3
  import { DropdownMenu as o } from "radix-vue/namespaced";
4
4
  import I from "./ScalarMenuTeamProfile.vue.js";
@@ -6,7 +6,7 @@ import B from "./ScalarMenuLink.vue.js";
6
6
  import P from "../ScalarDropdown/ScalarDropdownMenu.vue.js";
7
7
  import c from "../ScalarDropdown/ScalarDropdownButton.vue.js";
8
8
  import z from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
9
- const y = /* @__PURE__ */ _({
9
+ const y = /* @__PURE__ */ g({
10
10
  inheritAttrs: !1,
11
11
  __name: "ScalarMenuTeamPicker",
12
12
  props: {
@@ -15,7 +15,7 @@ const y = /* @__PURE__ */ _({
15
15
  },
16
16
  emits: ["update:team", "add"],
17
17
  setup(f, { emit: p }) {
18
- const i = f, d = p, m = g({
18
+ const i = f, d = p, m = _({
19
19
  get: () => i.team?.id,
20
20
  set: (s) => d(
21
21
  "update:team",
@@ -35,8 +35,7 @@ const y = /* @__PURE__ */ _({
35
35
  weight: "bold"
36
36
  })
37
37
  ]),
38
- _: 1,
39
- __: [2]
38
+ _: 1
40
39
  }, 16, ["is", "icon"]),
41
40
  a(e(o).Portal, null, {
42
41
  default: r(() => [
@@ -84,10 +83,9 @@ const y = /* @__PURE__ */ _({
84
83
  class: "bg-b-3 -ml-0.75 rounded p-1 size-5 text-c-3",
85
84
  weight: "bold"
86
85
  }),
87
- t[3] || (t[3] = C(" Create new team "))
86
+ t[3] || (t[3] = C(" Create new team ", -1))
88
87
  ]),
89
- _: 1,
90
- __: [3]
88
+ _: 1
91
89
  }, 8, ["as"])
92
90
  ]),
93
91
  _: 1
@@ -0,0 +1,18 @@
1
+ import { type ScalarListboxOption } from '../../components/ScalarListbox';
2
+ type __VLS_Props = {
3
+ /** The list of workspaces to choose from */
4
+ workspaceOptions: ScalarListboxOption[];
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & {
7
+ modelValue?: string | undefined;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:modelValue": (value: string | undefined) => any;
11
+ } & {
12
+ createWorkspace: () => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
15
+ onCreateWorkspace?: (() => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
18
+ //# sourceMappingURL=ScalarMenuWorkspacePicker.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarMenuWorkspacePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/ScalarMenuWorkspacePicker.vue"],"names":[],"mappings":"AAsFA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAA;AAUnC,KAAK,WAAW,GAAG;IACjB,4CAA4C;IAC5C,gBAAgB,EAAE,mBAAmB,EAAE,CAAA;CACxC,CAAC;AAiBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;;;;;;;;;AAuMF,wBAOG"}
@@ -0,0 +1,94 @@
1
+ import { defineComponent as k, mergeModels as m, useModel as x, createBlock as u, openBlock as n, unref as e, withCtx as a, createVNode as l, mergeProps as _, createElementVNode as d, createElementBlock as S, Fragment as V, renderList as b, toDisplayString as v, createTextVNode as w } from "vue";
2
+ import { ScalarIconSwap as C, ScalarIconCaretRight as I, ScalarIconPlus as M } from "@scalar/icons";
3
+ import { DropdownMenu as r } from "radix-vue/namespaced";
4
+ import $ from "./ScalarMenuLink.vue.js";
5
+ import B from "../ScalarDropdown/ScalarDropdownMenu.vue.js";
6
+ import c from "../ScalarDropdown/ScalarDropdownButton.vue.js";
7
+ import P from "../ScalarListbox/ScalarListboxCheckbox.vue.js";
8
+ const z = { class: "flex h-full items-center gap-1 flex-1 truncate" }, E = /* @__PURE__ */ k({
9
+ inheritAttrs: !1,
10
+ __name: "ScalarMenuWorkspacePicker",
11
+ props: /* @__PURE__ */ m({
12
+ workspaceOptions: {}
13
+ }, {
14
+ modelValue: {},
15
+ modelModifiers: {}
16
+ }),
17
+ emits: /* @__PURE__ */ m(["createWorkspace"], ["update:modelValue"]),
18
+ setup(p, { emit: f }) {
19
+ const g = f, s = x(p, "modelValue");
20
+ return (i, t) => (n(), u(e(r).Sub, null, {
21
+ default: a(() => [
22
+ l($, _({
23
+ is: e(r).SubTrigger,
24
+ icon: e(C)
25
+ }, i.$attrs), {
26
+ default: a(() => [
27
+ t[2] || (t[2] = d("div", null, "Change workspace", -1)),
28
+ l(e(I), {
29
+ class: "ml-auto text-c-2 -mr-0.25 size-3",
30
+ weight: "bold"
31
+ })
32
+ ]),
33
+ _: 1
34
+ }, 16, ["is", "icon"]),
35
+ l(e(r).Portal, null, {
36
+ default: a(() => [
37
+ l(e(r).SubContent, {
38
+ as: e(B),
39
+ class: "max-h-radix-popper z-context-plus",
40
+ sideOffset: 3
41
+ }, {
42
+ default: a(() => [
43
+ l(e(r).RadioGroup, {
44
+ modelValue: s.value,
45
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => s.value = o),
46
+ class: "contents"
47
+ }, {
48
+ default: a(() => [
49
+ (n(!0), S(V, null, b(i.workspaceOptions, (o) => (n(), u(e(r).RadioItem, {
50
+ key: o.id,
51
+ as: e(c),
52
+ class: "group/item flex items-center",
53
+ value: o.id
54
+ }, {
55
+ default: a(() => [
56
+ d("div", z, v(o.label), 1),
57
+ l(e(P), {
58
+ class: "ml-auto",
59
+ selected: o.id === s.value
60
+ }, null, 8, ["selected"])
61
+ ]),
62
+ _: 2
63
+ }, 1032, ["as", "value"]))), 128))
64
+ ]),
65
+ _: 1
66
+ }, 8, ["modelValue"]),
67
+ l(e(r).Item, {
68
+ as: e(c),
69
+ class: "flex items-center",
70
+ onClick: t[1] || (t[1] = (o) => g("createWorkspace"))
71
+ }, {
72
+ default: a(() => [
73
+ l(e(M), {
74
+ class: "bg-b-3 -ml-0.75 rounded p-1 size-5 text-c-3",
75
+ weight: "bold"
76
+ }),
77
+ t[3] || (t[3] = w(" Create workspace ", -1))
78
+ ]),
79
+ _: 1
80
+ }, 8, ["as"])
81
+ ]),
82
+ _: 1
83
+ }, 8, ["as"])
84
+ ]),
85
+ _: 1
86
+ })
87
+ ]),
88
+ _: 1
89
+ }));
90
+ }
91
+ });
92
+ export {
93
+ E as default
94
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ScalarMenuWorkspacePicker.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export declare const images: string[];
2
+ //# sourceMappingURL=fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/fixtures.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,UAIlB,CAAA"}
@@ -1,11 +1,13 @@
1
1
  export { default as ScalarMenu } from './ScalarMenu.vue.js';
2
2
  export { default as ScalarMenuButton } from './ScalarMenuButton.vue.js';
3
- export { default as ScalarMenuSection } from './ScalarMenuSection.vue.js';
4
3
  export { default as ScalarMenuLink } from './ScalarMenuLink.vue.js';
5
4
  export { default as ScalarMenuProduct } from './ScalarMenuProduct.vue.js';
6
5
  export { default as ScalarMenuProducts } from './ScalarMenuProducts.vue.js';
6
+ export { default as ScalarMenuResources } from './ScalarMenuResources.vue.js';
7
+ export { default as ScalarMenuSection } from './ScalarMenuSection.vue.js';
8
+ export { default as ScalarMenuSupport } from './ScalarMenuSupport.vue.js';
7
9
  export { default as ScalarMenuTeamPicker } from './ScalarMenuTeamPicker.vue.js';
8
10
  export { default as ScalarMenuTeamProfile } from './ScalarMenuTeamProfile.vue.js';
9
- export { default as ScalarMenuResources } from './ScalarMenuResources.vue.js';
11
+ export { default as ScalarMenuWorkspacePicker } from './ScalarMenuWorkspacePicker.vue.js';
10
12
  export type { ScalarMenuTeamOption } from './types';
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AACtF,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA"}
@@ -11,14 +11,18 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
11
11
  maxWidth?: string;
12
12
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
13
13
  variant?: "form" | "search" | "error" | undefined;
14
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
14
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ close: () => any;
16
+ }, string, import("vue").PublicProps, Readonly<{
15
17
  state: ReturnType<typeof useModal>;
16
18
  title?: string;
17
19
  bodyClass?: string;
18
20
  maxWidth?: string;
19
21
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | "xxs" | undefined;
20
22
  variant?: "form" | "search" | "error" | undefined;
21
- }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
23
+ }> & Readonly<{
24
+ onClose?: (() => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
22
26
  default?: (props: {}) => any;
23
27
  } & {
24
28
  default?: (props: {}) => any;