@ac-design/design-system 0.0.0-stage → 1.0.1

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 (249) hide show
  1. package/README.md +160 -2
  2. package/dist/lib/compat.css +4441 -0
  3. package/dist/lib/components/AcAccordion.js +5 -0
  4. package/dist/lib/components/AcAccordion.vue.d.ts +35 -0
  5. package/dist/lib/components/AcAccordion.vue_vue_type_script_setup_true_lang.js +61 -0
  6. package/dist/lib/components/AcAccordionItem.js +5 -0
  7. package/dist/lib/components/AcAccordionItem.vue.d.ts +49 -0
  8. package/dist/lib/components/AcAccordionItem.vue_vue_type_script_setup_true_lang.js +81 -0
  9. package/dist/lib/components/AcAlert.js +5 -0
  10. package/dist/lib/components/AcAlert.vue.d.ts +52 -0
  11. package/dist/lib/components/AcAlert.vue_vue_type_script_setup_true_lang.js +121 -0
  12. package/dist/lib/components/AcAppSwitcher.js +5 -0
  13. package/dist/lib/components/AcAppSwitcher.vue.d.ts +83 -0
  14. package/dist/lib/components/AcAppSwitcher.vue_vue_type_script_setup_true_lang.js +303 -0
  15. package/dist/lib/components/AcAvatar.js +5 -0
  16. package/dist/lib/components/AcAvatar.vue.d.ts +27 -0
  17. package/dist/lib/components/AcAvatar.vue_vue_type_script_setup_true_lang.js +116 -0
  18. package/dist/lib/components/AcBadge.js +5 -0
  19. package/dist/lib/components/AcBadge.vue.d.ts +32 -0
  20. package/dist/lib/components/AcBadge.vue_vue_type_script_setup_true_lang.js +88 -0
  21. package/dist/lib/components/AcBanner.js +5 -0
  22. package/dist/lib/components/AcBanner.vue.d.ts +57 -0
  23. package/dist/lib/components/AcBanner.vue_vue_type_script_setup_true_lang.js +114 -0
  24. package/dist/lib/components/AcBreadcrumb.js +5 -0
  25. package/dist/lib/components/AcBreadcrumb.vue.d.ts +25 -0
  26. package/dist/lib/components/AcBreadcrumb.vue_vue_type_script_setup_true_lang.js +88 -0
  27. package/dist/lib/components/AcButton.js +5 -0
  28. package/dist/lib/components/AcButton.vue.d.ts +49 -0
  29. package/dist/lib/components/AcButton.vue_vue_type_script_setup_true_lang.js +103 -0
  30. package/dist/lib/components/AcButtons.js +5 -0
  31. package/dist/lib/components/AcButtons.vue.d.ts +31 -0
  32. package/dist/lib/components/AcButtons.vue_vue_type_script_setup_true_lang.js +44 -0
  33. package/dist/lib/components/AcCard.js +5 -0
  34. package/dist/lib/components/AcCard.vue.d.ts +27 -0
  35. package/dist/lib/components/AcCard.vue_vue_type_script_setup_true_lang.js +28 -0
  36. package/dist/lib/components/AcCellValue.js +5 -0
  37. package/dist/lib/components/AcCellValue.vue.d.ts +139 -0
  38. package/dist/lib/components/AcCellValue.vue_vue_type_script_setup_true_lang.js +386 -0
  39. package/dist/lib/components/AcCheckBox.js +5 -0
  40. package/dist/lib/components/AcCheckBox.vue.d.ts +31 -0
  41. package/dist/lib/components/AcCheckBox.vue_vue_type_script_setup_true_lang.js +49 -0
  42. package/dist/lib/components/AcCheckRadio.js +5 -0
  43. package/dist/lib/components/AcCheckRadio.vue.d.ts +35 -0
  44. package/dist/lib/components/AcCheckRadio.vue_vue_type_script_setup_true_lang.js +56 -0
  45. package/dist/lib/components/AcClusterSwitcher.js +5 -0
  46. package/dist/lib/components/AcClusterSwitcher.vue.d.ts +95 -0
  47. package/dist/lib/components/AcClusterSwitcher.vue_vue_type_script_setup_true_lang.js +416 -0
  48. package/dist/lib/components/AcCodeEditor.js +5 -0
  49. package/dist/lib/components/AcCodeEditor.vue.d.ts +88 -0
  50. package/dist/lib/components/AcCodeEditor.vue_vue_type_script_setup_true_lang.js +381 -0
  51. package/dist/lib/components/AcContentHeader.js +5 -0
  52. package/dist/lib/components/AcContentHeader.vue.d.ts +29 -0
  53. package/dist/lib/components/AcContentHeader.vue_vue_type_script_setup_true_lang.js +31 -0
  54. package/dist/lib/components/AcContentLayout.js +5 -0
  55. package/dist/lib/components/AcContentLayout.vue.d.ts +21 -0
  56. package/dist/lib/components/AcContentLayout.vue_vue_type_script_setup_true_lang.js +18 -0
  57. package/dist/lib/components/AcContentTable.js +5 -0
  58. package/dist/lib/components/AcContentTable.vue.d.ts +54 -0
  59. package/dist/lib/components/AcContentTable.vue_vue_type_script_setup_true_lang.js +67 -0
  60. package/dist/lib/components/AcDatePicker.js +5 -0
  61. package/dist/lib/components/AcDatePicker.vue.d.ts +88 -0
  62. package/dist/lib/components/AcDatePicker.vue_vue_type_script_setup_true_lang.js +794 -0
  63. package/dist/lib/components/AcDeleteModal.js +5 -0
  64. package/dist/lib/components/AcDeleteModal.vue.d.ts +51 -0
  65. package/dist/lib/components/AcDeleteModal.vue_vue_type_script_setup_true_lang.js +110 -0
  66. package/dist/lib/components/AcDivider.js +5 -0
  67. package/dist/lib/components/AcDivider.vue.d.ts +25 -0
  68. package/dist/lib/components/AcDivider.vue_vue_type_script_setup_true_lang.js +39 -0
  69. package/dist/lib/components/AcDropdown.js +5 -0
  70. package/dist/lib/components/AcDropdown.vue.d.ts +45 -0
  71. package/dist/lib/components/AcDropdown.vue_vue_type_script_setup_true_lang.js +152 -0
  72. package/dist/lib/components/AcDropdownDivider.js +5 -0
  73. package/dist/lib/components/AcDropdownDivider.vue.d.ts +9 -0
  74. package/dist/lib/components/AcDropdownDivider.vue_vue_type_script_setup_true_lang.js +20 -0
  75. package/dist/lib/components/AcDropdownItem.js +5 -0
  76. package/dist/lib/components/AcDropdownItem.vue.d.ts +50 -0
  77. package/dist/lib/components/AcDropdownItem.vue_vue_type_script_setup_true_lang.js +86 -0
  78. package/dist/lib/components/AcEmptyState.js +5 -0
  79. package/dist/lib/components/AcEmptyState.vue.d.ts +42 -0
  80. package/dist/lib/components/AcEmptyState.vue_vue_type_script_setup_true_lang.js +81 -0
  81. package/dist/lib/components/AcFeatureCard.js +5 -0
  82. package/dist/lib/components/AcFeatureCard.vue.d.ts +84 -0
  83. package/dist/lib/components/AcFeatureCard.vue_vue_type_script_setup_true_lang.js +218 -0
  84. package/dist/lib/components/AcFileEditor.js +5 -0
  85. package/dist/lib/components/AcFileEditor.vue.d.ts +95 -0
  86. package/dist/lib/components/AcFileEditor.vue_vue_type_script_setup_true_lang.js +556 -0
  87. package/dist/lib/components/AcFileUpload.js +5 -0
  88. package/dist/lib/components/AcFileUpload.vue.d.ts +67 -0
  89. package/dist/lib/components/AcFileUpload.vue_vue_type_script_setup_true_lang.js +274 -0
  90. package/dist/lib/components/AcFontScale.js +5 -0
  91. package/dist/lib/components/AcFontScale.vue.d.ts +17 -0
  92. package/dist/lib/components/AcFontScale.vue_vue_type_script_setup_true_lang.js +65 -0
  93. package/dist/lib/components/AcForm.js +5 -0
  94. package/dist/lib/components/AcForm.vue.d.ts +31 -0
  95. package/dist/lib/components/AcForm.vue_vue_type_script_setup_true_lang.js +38 -0
  96. package/dist/lib/components/AcFormArray.js +5 -0
  97. package/dist/lib/components/AcFormArray.vue.d.ts +124 -0
  98. package/dist/lib/components/AcFormArray.vue_vue_type_script_setup_true_lang.js +485 -0
  99. package/dist/lib/components/AcFormFooter.js +5 -0
  100. package/dist/lib/components/AcFormFooter.vue.d.ts +48 -0
  101. package/dist/lib/components/AcFormFooter.vue_vue_type_script_setup_true_lang.js +86 -0
  102. package/dist/lib/components/AcFormSection.js +5 -0
  103. package/dist/lib/components/AcFormSection.vue.d.ts +32 -0
  104. package/dist/lib/components/AcFormSection.vue_vue_type_script_setup_true_lang.js +38 -0
  105. package/dist/lib/components/AcHeader.js +5 -0
  106. package/dist/lib/components/AcHeader.vue.d.ts +46 -0
  107. package/dist/lib/components/AcHeader.vue_vue_type_script_setup_true_lang.js +60 -0
  108. package/dist/lib/components/AcHeaderItem.js +5 -0
  109. package/dist/lib/components/AcHeaderItem.vue.d.ts +13 -0
  110. package/dist/lib/components/AcHeaderItem.vue_vue_type_script_setup_true_lang.js +14 -0
  111. package/dist/lib/components/AcHeaderItems.js +5 -0
  112. package/dist/lib/components/AcHeaderItems.vue.d.ts +13 -0
  113. package/dist/lib/components/AcHeaderItems.vue_vue_type_script_setup_true_lang.js +14 -0
  114. package/dist/lib/components/AcInfoTable.js +5 -0
  115. package/dist/lib/components/AcInfoTable.vue.d.ts +59 -0
  116. package/dist/lib/components/AcInfoTable.vue_vue_type_script_setup_true_lang.js +127 -0
  117. package/dist/lib/components/AcInput.js +5 -0
  118. package/dist/lib/components/AcInput.vue.d.ts +68 -0
  119. package/dist/lib/components/AcInput.vue_vue_type_script_setup_true_lang.js +143 -0
  120. package/dist/lib/components/AcKbd.js +5 -0
  121. package/dist/lib/components/AcKbd.vue.d.ts +25 -0
  122. package/dist/lib/components/AcKbd.vue_vue_type_script_setup_true_lang.js +134 -0
  123. package/dist/lib/components/AcLogo.js +5 -0
  124. package/dist/lib/components/AcLogo.vue.d.ts +18 -0
  125. package/dist/lib/components/AcLogo.vue_vue_type_script_setup_true_lang.js +67 -0
  126. package/dist/lib/components/AcModal.js +5 -0
  127. package/dist/lib/components/AcModal.vue.d.ts +54 -0
  128. package/dist/lib/components/AcModal.vue_vue_type_script_setup_true_lang.js +125 -0
  129. package/dist/lib/components/AcNavbar.js +5 -0
  130. package/dist/lib/components/AcNavbar.vue.d.ts +41 -0
  131. package/dist/lib/components/AcNavbar.vue_vue_type_script_setup_true_lang.js +60 -0
  132. package/dist/lib/components/AcNavbarItem.js +5 -0
  133. package/dist/lib/components/AcNavbarItem.vue.d.ts +44 -0
  134. package/dist/lib/components/AcNavbarItem.vue_vue_type_script_setup_true_lang.js +65 -0
  135. package/dist/lib/components/AcNotificationMenu.js +5 -0
  136. package/dist/lib/components/AcNotificationMenu.vue.d.ts +90 -0
  137. package/dist/lib/components/AcNotificationMenu.vue_vue_type_script_setup_true_lang.js +345 -0
  138. package/dist/lib/components/AcPage.js +5 -0
  139. package/dist/lib/components/AcPage.vue.d.ts +25 -0
  140. package/dist/lib/components/AcPage.vue_vue_type_script_setup_true_lang.js +36 -0
  141. package/dist/lib/components/AcPagination.js +5 -0
  142. package/dist/lib/components/AcPagination.vue.d.ts +51 -0
  143. package/dist/lib/components/AcPagination.vue_vue_type_script_setup_true_lang.js +160 -0
  144. package/dist/lib/components/AcPreloader.js +5 -0
  145. package/dist/lib/components/AcPreloader.vue.d.ts +28 -0
  146. package/dist/lib/components/AcPreloader.vue_vue_type_script_setup_true_lang.js +39 -0
  147. package/dist/lib/components/AcProgress.js +5 -0
  148. package/dist/lib/components/AcProgress.vue.d.ts +31 -0
  149. package/dist/lib/components/AcProgress.vue_vue_type_script_setup_true_lang.js +76 -0
  150. package/dist/lib/components/AcResourceCard.js +5 -0
  151. package/dist/lib/components/AcResourceCard.vue.d.ts +106 -0
  152. package/dist/lib/components/AcResourceCard.vue_vue_type_script_setup_true_lang.js +203 -0
  153. package/dist/lib/components/AcSearchBar.js +5 -0
  154. package/dist/lib/components/AcSearchBar.vue.d.ts +41 -0
  155. package/dist/lib/components/AcSearchBar.vue_vue_type_script_setup_true_lang.js +76 -0
  156. package/dist/lib/components/AcSectionContent.js +5 -0
  157. package/dist/lib/components/AcSectionContent.vue.d.ts +55 -0
  158. package/dist/lib/components/AcSectionContent.vue_vue_type_script_setup_true_lang.js +74 -0
  159. package/dist/lib/components/AcSegmentedControl.js +5 -0
  160. package/dist/lib/components/AcSegmentedControl.vue.d.ts +46 -0
  161. package/dist/lib/components/AcSegmentedControl.vue_vue_type_script_setup_true_lang.js +104 -0
  162. package/dist/lib/components/AcSelect.js +5 -0
  163. package/dist/lib/components/AcSelect.vue.d.ts +78 -0
  164. package/dist/lib/components/AcSelect.vue_vue_type_script_setup_true_lang.js +441 -0
  165. package/dist/lib/components/AcSidePanel.js +5 -0
  166. package/dist/lib/components/AcSidePanel.vue.d.ts +57 -0
  167. package/dist/lib/components/AcSidePanel.vue_vue_type_script_setup_true_lang.js +128 -0
  168. package/dist/lib/components/AcSideTabs.js +5 -0
  169. package/dist/lib/components/AcSideTabs.vue.d.ts +93 -0
  170. package/dist/lib/components/AcSideTabs.vue_vue_type_script_setup_true_lang.js +373 -0
  171. package/dist/lib/components/AcSidebar.js +5 -0
  172. package/dist/lib/components/AcSidebar.vue.d.ts +63 -0
  173. package/dist/lib/components/AcSidebar.vue_vue_type_script_setup_true_lang.js +221 -0
  174. package/dist/lib/components/AcSidebarItem.js +5 -0
  175. package/dist/lib/components/AcSidebarItem.vue.d.ts +55 -0
  176. package/dist/lib/components/AcSidebarItem.vue_vue_type_script_setup_true_lang.js +155 -0
  177. package/dist/lib/components/AcSidebarSection.js +5 -0
  178. package/dist/lib/components/AcSidebarSection.vue.d.ts +32 -0
  179. package/dist/lib/components/AcSidebarSection.vue_vue_type_script_setup_true_lang.js +48 -0
  180. package/dist/lib/components/AcSkeleton.js +5 -0
  181. package/dist/lib/components/AcSkeleton.vue.d.ts +27 -0
  182. package/dist/lib/components/AcSkeleton.vue_vue_type_script_setup_true_lang.js +142 -0
  183. package/dist/lib/components/AcSlider.js +5 -0
  184. package/dist/lib/components/AcSlider.vue.d.ts +72 -0
  185. package/dist/lib/components/AcSlider.vue_vue_type_script_setup_true_lang.js +327 -0
  186. package/dist/lib/components/AcSpinner.js +5 -0
  187. package/dist/lib/components/AcSpinner.vue.d.ts +12 -0
  188. package/dist/lib/components/AcSpinner.vue_vue_type_script_setup_true_lang.js +45 -0
  189. package/dist/lib/components/AcStatCard.js +5 -0
  190. package/dist/lib/components/AcStatCard.vue.d.ts +84 -0
  191. package/dist/lib/components/AcStatCard.vue_vue_type_script_setup_true_lang.js +225 -0
  192. package/dist/lib/components/AcStatusBar.js +5 -0
  193. package/dist/lib/components/AcStatusBar.vue.d.ts +66 -0
  194. package/dist/lib/components/AcStatusBar.vue_vue_type_script_setup_true_lang.js +145 -0
  195. package/dist/lib/components/AcSteps.js +5 -0
  196. package/dist/lib/components/AcSteps.vue.d.ts +28 -0
  197. package/dist/lib/components/AcSteps.vue_vue_type_script_setup_true_lang.js +91 -0
  198. package/dist/lib/components/AcSwitch.js +5 -0
  199. package/dist/lib/components/AcSwitch.vue.d.ts +44 -0
  200. package/dist/lib/components/AcSwitch.vue_vue_type_script_setup_true_lang.js +67 -0
  201. package/dist/lib/components/AcTable.js +5 -0
  202. package/dist/lib/components/AcTable.vue.d.ts +98 -0
  203. package/dist/lib/components/AcTable.vue_vue_type_script_setup_true_lang.js +272 -0
  204. package/dist/lib/components/AcTabs.js +5 -0
  205. package/dist/lib/components/AcTabs.vue.d.ts +40 -0
  206. package/dist/lib/components/AcTabs.vue_vue_type_script_setup_true_lang.js +72 -0
  207. package/dist/lib/components/AcTag.js +5 -0
  208. package/dist/lib/components/AcTag.vue.d.ts +41 -0
  209. package/dist/lib/components/AcTag.vue_vue_type_script_setup_true_lang.js +99 -0
  210. package/dist/lib/components/AcTextarea.js +5 -0
  211. package/dist/lib/components/AcTextarea.vue.d.ts +53 -0
  212. package/dist/lib/components/AcTextarea.vue_vue_type_script_setup_true_lang.js +120 -0
  213. package/dist/lib/components/AcThemeMode.js +5 -0
  214. package/dist/lib/components/AcThemeMode.vue.d.ts +17 -0
  215. package/dist/lib/components/AcThemeMode.vue_vue_type_script_setup_true_lang.js +60 -0
  216. package/dist/lib/components/AcToaster.js +5 -0
  217. package/dist/lib/components/AcToaster.vue.d.ts +15 -0
  218. package/dist/lib/components/AcToaster.vue_vue_type_script_setup_true_lang.js +166 -0
  219. package/dist/lib/components/AcTooltip.js +5 -0
  220. package/dist/lib/components/AcTooltip.vue.d.ts +30 -0
  221. package/dist/lib/components/AcTooltip.vue_vue_type_script_setup_true_lang.js +117 -0
  222. package/dist/lib/components/AcUsageCard.js +5 -0
  223. package/dist/lib/components/AcUsageCard.vue.d.ts +85 -0
  224. package/dist/lib/components/AcUsageCard.vue_vue_type_script_setup_true_lang.js +230 -0
  225. package/dist/lib/components/AcUserMenu.js +5 -0
  226. package/dist/lib/components/AcUserMenu.vue.d.ts +77 -0
  227. package/dist/lib/components/AcUserMenu.vue_vue_type_script_setup_true_lang.js +258 -0
  228. package/dist/lib/components/index.d.ts +76 -0
  229. package/dist/lib/components/types.d.ts +16 -0
  230. package/dist/lib/composables/copyText.d.ts +6 -0
  231. package/dist/lib/composables/copyText.js +16 -0
  232. package/dist/lib/composables/useBrandColor.d.ts +53 -0
  233. package/dist/lib/composables/useBrandColor.js +148 -0
  234. package/dist/lib/composables/useColorMode.d.ts +12 -0
  235. package/dist/lib/composables/useColorMode.js +40 -0
  236. package/dist/lib/composables/useFontScale.d.ts +16 -0
  237. package/dist/lib/composables/useFontScale.js +43 -0
  238. package/dist/lib/composables/useToast.d.ts +68 -0
  239. package/dist/lib/composables/useToast.js +36 -0
  240. package/dist/lib/editor/index.d.ts +4 -0
  241. package/dist/lib/editor/index.js +3 -0
  242. package/dist/lib/editor/theme.d.ts +3 -0
  243. package/dist/lib/editor/theme.js +309 -0
  244. package/dist/lib/editor/validate.d.ts +19 -0
  245. package/dist/lib/editor/validate.js +127 -0
  246. package/dist/lib/index.d.ts +29 -0
  247. package/dist/lib/index.js +78 -0
  248. package/dist/lib/theme.css +556 -0
  249. package/package.json +82 -4
@@ -0,0 +1,303 @@
1
+ import e from "./AcLogo.js";
2
+ import t from "./AcNavbarItem.js";
3
+ import { Fragment as n, Teleport as r, Transition as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as ee, openBlock as g, ref as _, renderList as v, renderSlot as te, resolveDynamicComponent as ne, toDisplayString as y, unref as b, useId as re, useModel as ie, watch as ae, withCtx as oe } from "vue";
4
+ import { ChartLine as se, Check as ce, Database as le, GraduationCap as ue, Grip as de, Receipt as fe, Server as pe, ServerCog as me, Telescope as he } from "@lucide/vue";
5
+ //#region src/lib/components/AcAppSwitcher.vue?vue&type=script&setup=true&lang.ts
6
+ var ge = {
7
+ class: "inline-flex",
8
+ "data-ac-ds": "",
9
+ "data-testid": "ac-app-switcher"
10
+ }, _e = {
11
+ role: "list",
12
+ class: "grid grid-cols-3 gap-1 p-2"
13
+ }, ve = [
14
+ "href",
15
+ "aria-current",
16
+ "title",
17
+ "onClick"
18
+ ], x = ["src"], S = {
19
+ key: 3,
20
+ class: "text-lg font-semibold"
21
+ }, C = { class: "w-full truncate text-xs font-medium text-heading" }, w = {
22
+ key: 0,
23
+ class: "sr-only"
24
+ }, T = {
25
+ key: 1,
26
+ class: "absolute top-1.5 right-1.5 inline-flex size-4 items-center justify-center rounded-full bg-primary text-white",
27
+ "aria-hidden": "true"
28
+ }, E = {
29
+ key: 0,
30
+ class: "border-t border-border-light p-2"
31
+ }, D = "id", O = 3, k = 6, A = /*@__PURE__*/ d({
32
+ __name: "AcAppSwitcher",
33
+ props: /*@__PURE__*/ f({
34
+ currentApp: { default: "platform" },
35
+ baseUrl: { default: "https://appscode.com" },
36
+ activeOrganization: { default: "" },
37
+ rootDomain: { default: "" },
38
+ activeOrgType: { default: 0 },
39
+ isOfflineInstaller: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ apps: { default: void 0 },
44
+ hideCurrent: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ label: { default: "AppsCode apps" },
49
+ align: { default: "end" }
50
+ }, {
51
+ open: {
52
+ type: Boolean,
53
+ default: !1
54
+ },
55
+ openModifiers: {}
56
+ }),
57
+ emits: /*@__PURE__*/ f(["select"], ["update:open"]),
58
+ setup(d, { emit: f }) {
59
+ let A = d, j = ie(d, "open"), M = f, N = [
60
+ {
61
+ name: D,
62
+ title: "Platform",
63
+ port: "8080",
64
+ subtitle: "Manage your platform & accounts"
65
+ },
66
+ {
67
+ name: "db",
68
+ title: "KubeDB",
69
+ port: "5996",
70
+ subtitle: "Manage your databases",
71
+ icon: le,
72
+ color: "purple"
73
+ },
74
+ {
75
+ name: "grafana",
76
+ title: "Grafana",
77
+ port: "3005",
78
+ subtitle: "Analyze your activities",
79
+ icon: se,
80
+ color: "yellow"
81
+ },
82
+ {
83
+ name: "observe",
84
+ title: "Observe",
85
+ port: "5992",
86
+ subtitle: "Observe your system",
87
+ icon: he,
88
+ color: "green"
89
+ },
90
+ {
91
+ name: "selfhost",
92
+ title: "SelfHost",
93
+ port: "5993",
94
+ subtitle: "Host AppsCode on your own cluster",
95
+ icon: me,
96
+ color: "slate"
97
+ },
98
+ {
99
+ name: "billing",
100
+ title: "Billing",
101
+ port: "5995",
102
+ subtitle: "Manage your contracts, licenses & billings",
103
+ icon: fe,
104
+ color: "primary"
105
+ },
106
+ {
107
+ name: "learn",
108
+ title: "Learn",
109
+ port: "5988",
110
+ subtitle: "Be an Expert in Cloud Native technologies",
111
+ icon: ue,
112
+ color: "red"
113
+ }
114
+ ], P = {
115
+ name: "console",
116
+ title: "Console",
117
+ port: "5990",
118
+ subtitle: "Manage your kubernetes clusters",
119
+ icon: pe,
120
+ color: "blue"
121
+ }, F = [
122
+ "https://appscode.ninja",
123
+ "https://appscode.com",
124
+ "http://bb.test:8080"
125
+ ], ye = [
126
+ "billing",
127
+ "selfhost",
128
+ "learn"
129
+ ], I = {
130
+ primary: "bg-primary-95 text-primary-30",
131
+ blue: "bg-blue-95 text-blue-40",
132
+ green: "bg-green-95 text-green-30",
133
+ yellow: "bg-yellow-95 text-yellow-30",
134
+ purple: "bg-purple-95 text-purple-40",
135
+ red: "bg-red-95 text-red-40",
136
+ slate: "bg-slate-90 text-label"
137
+ }, L = re(), R = `${L}-panel`, z = `${L}-heading`, B = _(null), V = _(null), H = _({}), U = _(!0), W = a(() => A.currentApp === "platform" ? D : A.currentApp), be = a(() => !F.includes(A.baseUrl)), xe = a(() => {
138
+ let e = [...N];
139
+ return A.activeOrgType !== O && e.splice(1, 0, P), e.filter((e) => !be.value || !ye.includes(e.name) || e.name === "billing" && A.isOfflineInstaller && A.activeOrgType === k);
140
+ }), G = a(() => (A.apps ?? xe.value).filter((e) => !A.hideCurrent || e.name !== W.value).map((e) => ({
141
+ ...e,
142
+ url: e.url ?? Se(e)
143
+ })));
144
+ function Se(e) {
145
+ return A.baseUrl.includes("bb.test") ? `http://bb.test:${e.port}/${e.name}/` : A.baseUrl.includes("localhost") ? `http://localhost:${e.port}/${e.name}/` : `${A.baseUrl}/${e.name}/`;
146
+ }
147
+ function K(e) {
148
+ return e.name === W.value;
149
+ }
150
+ function q() {
151
+ return B.value?.$el ?? null;
152
+ }
153
+ function J() {
154
+ return [...V.value?.querySelectorAll("[data-app-tile]") ?? []];
155
+ }
156
+ function Ce(e) {
157
+ let t = e[0]?.offsetTop, n = e.filter((e) => e.offsetTop === t).length;
158
+ return Math.max(n, 1);
159
+ }
160
+ function Y(e) {
161
+ let t = J();
162
+ t.length && t[Math.max(0, Math.min(e, t.length - 1))].focus();
163
+ }
164
+ function X() {
165
+ let e = q();
166
+ if (!e || !V.value) return;
167
+ let t = e.getBoundingClientRect(), { offsetWidth: n, offsetHeight: r } = V.value, i = window.innerHeight - t.bottom - 6 - 8, a = t.top - 6 - 8, o = i < r && a > i, s = A.align === "end" ? t.right - n : t.left;
168
+ U.value = !o, H.value = {
169
+ [o ? "bottom" : "top"]: `${o ? window.innerHeight - t.top + 6 : t.bottom + 6}px`,
170
+ left: `${Math.max(8, Math.min(s, window.innerWidth - n - 8))}px`,
171
+ maxHeight: `${Math.max(o ? a : i, 160)}px`
172
+ };
173
+ }
174
+ function Z(e = !0) {
175
+ j.value && (j.value = !1, e && q()?.focus());
176
+ }
177
+ function we() {
178
+ j.value ? Z() : j.value = !0;
179
+ }
180
+ function Te() {
181
+ let e = [`gorg=${encodeURIComponent(A.activeOrganization)}`, "path=/"];
182
+ A.rootDomain && e.push(`domain=${A.rootDomain}`), document.cookie = e.join("; ");
183
+ }
184
+ function Ee(e) {
185
+ e.name === "grafana" && Te(), M("select", e);
186
+ }
187
+ function De(e) {
188
+ e.key !== "ArrowDown" || j.value || (e.preventDefault(), j.value = !0);
189
+ }
190
+ function Oe(e) {
191
+ let t = J(), n = t.indexOf(document.activeElement), r = Ce(t), i = {
192
+ ArrowRight: 1,
193
+ ArrowLeft: -1,
194
+ ArrowDown: r,
195
+ ArrowUp: -r
196
+ };
197
+ e.key in i && n >= 0 ? (e.preventDefault(), Y(n + i[e.key])) : e.key === "Home" || e.key === "End" ? (e.preventDefault(), Y(e.key === "Home" ? 0 : t.length - 1)) : e.key === "Escape" ? (e.preventDefault(), Z()) : e.key === "Tab" && ke(e);
198
+ }
199
+ function ke(e) {
200
+ let t = [...V.value?.querySelectorAll("a[href], button:not([disabled])") ?? []], n = t[0], r = t[t.length - 1];
201
+ e.shiftKey && document.activeElement === n ? (e.preventDefault(), Z()) : !e.shiftKey && document.activeElement === r && Z();
202
+ }
203
+ function Ae(e) {
204
+ let t = e.target;
205
+ q()?.contains(t) || V.value?.contains(t) || Z(!1);
206
+ }
207
+ function Q(e) {
208
+ e && V.value?.contains(e.target) || X();
209
+ }
210
+ function $(e) {
211
+ let t = e ? "addEventListener" : "removeEventListener";
212
+ document[t]("pointerdown", Ae, !0), window[t]("scroll", Q, !0), window[t]("resize", Q);
213
+ }
214
+ return ae(j, async (e) => {
215
+ if ($(e), !e) return;
216
+ await p(), X();
217
+ let t = J(), n = G.value.findIndex(K);
218
+ Y(n >= 0 && t[n] ? n : 0);
219
+ }), ee(() => $(!1)), (a, f) => (g(), c("div", ge, [u(t, {
220
+ ref_key: "trigger",
221
+ ref: B,
222
+ label: d.label,
223
+ icon: b(de),
224
+ "icon-only": "",
225
+ "aria-haspopup": "dialog",
226
+ "aria-expanded": j.value,
227
+ "aria-controls": j.value ? R : void 0,
228
+ class: m(j.value && "bg-surface-sunken text-heading"),
229
+ "data-ac-ds": "",
230
+ "data-testid": "ac-app-switcher-trigger",
231
+ onClick: we,
232
+ onKeydown: De
233
+ }, null, 8, [
234
+ "label",
235
+ "icon",
236
+ "aria-expanded",
237
+ "aria-controls",
238
+ "class"
239
+ ]), (g(), o(r, { to: "body" }, [u(i, {
240
+ "enter-active-class": "transition duration-150 ease-out",
241
+ "enter-from-class": `opacity-0 motion-safe:scale-[0.98] ${U.value ? "motion-safe:-translate-y-1" : "motion-safe:translate-y-1"}`,
242
+ "leave-active-class": "transition duration-100 ease-in",
243
+ "leave-to-class": "opacity-0"
244
+ }, {
245
+ default: oe(() => [j.value ? (g(), c("div", {
246
+ key: 0,
247
+ id: R,
248
+ ref_key: "panel",
249
+ ref: V,
250
+ role: "dialog",
251
+ "aria-labelledby": z,
252
+ class: m(["ac-scrollbar fixed z-[90] flex w-[calc(340px*var(--ac-scale))] max-w-[calc(100vw-16px)] flex-col rounded-10 border border-border bg-surface shadow-lg", U.value ? "origin-top-right" : "origin-bottom-right"]),
253
+ style: h(H.value),
254
+ "data-ac-ds": "",
255
+ "data-testid": "ac-app-switcher-panel",
256
+ onKeydown: Oe
257
+ }, [
258
+ l("p", {
259
+ id: z,
260
+ class: "px-4 pt-3.5 pb-1 text-xs font-medium text-label"
261
+ }, y(d.label), 1),
262
+ l("ul", _e, [(g(!0), c(n, null, v(G.value, (t) => (g(), c("li", { key: t.name }, [l("a", {
263
+ href: t.url,
264
+ "data-app-tile": "",
265
+ "aria-current": K(t) ? "page" : void 0,
266
+ title: t.subtitle || void 0,
267
+ class: "group relative flex h-full flex-col items-center gap-2 rounded-8 px-1.5 pt-3 pb-2.5 text-center no-underline outline-none transition-colors hover:bg-surface-muted focus-visible:ring-[3px] focus-visible:ring-ring aria-[current=page]:bg-primary-97",
268
+ "data-ac-ds": "",
269
+ "data-testid": "ac-app-switcher-app",
270
+ onClick: (e) => Ee(t)
271
+ }, [
272
+ l("span", {
273
+ class: m(["relative inline-flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-10 ring-1 ring-border-light transition-transform duration-150 ring-inset motion-safe:group-hover:-translate-y-px", t.iconUrl || t.name === D && !t.icon ? "bg-surface" : I[t.color ?? "slate"]]),
274
+ "aria-hidden": "true"
275
+ }, [t.iconUrl ? (g(), c("img", {
276
+ key: 0,
277
+ src: t.iconUrl,
278
+ alt: "",
279
+ class: "size-7 object-contain"
280
+ }, null, 8, x)) : t.icon ? (g(), o(ne(t.icon), {
281
+ key: 1,
282
+ class: "size-5"
283
+ })) : t.name === D ? (g(), o(e, {
284
+ key: 2,
285
+ variant: "mark",
286
+ size: 28,
287
+ label: ""
288
+ })) : (g(), c("span", S, y(t.title.charAt(0)), 1))], 2),
289
+ l("span", C, y(t.title), 1),
290
+ t.subtitle ? (g(), c("span", w, y(t.subtitle), 1)) : s("", !0),
291
+ K(t) ? (g(), c("span", T, [u(b(ce), {
292
+ class: "size-2.5",
293
+ "stroke-width": 3
294
+ })])) : s("", !0)
295
+ ], 8, ve)]))), 128))]),
296
+ a.$slots.footer ? (g(), c("div", E, [te(a.$slots, "footer", { close: Z })])) : s("", !0)
297
+ ], 38)) : s("", !0)]),
298
+ _: 3
299
+ }, 8, ["enter-from-class"])]))]));
300
+ }
301
+ });
302
+ //#endregion
303
+ export { A as default };
@@ -0,0 +1,5 @@
1
+ import e from "./AcAvatar.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/lib/components/AcAvatar.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,27 @@
1
+ export interface Props {
2
+ /** Person or organisation name. Gives the initials, the colour and the default accessible name. */
3
+ name?: string;
4
+ /** Image URL. Falls back to the initials when it's empty or fails to load. */
5
+ imgUrl?: string;
6
+ /** Accessible name. Defaults to `name`; pass an empty string when the name is already written next to the avatar. */
7
+ alt?: string;
8
+ /** Diameter: `xs` 20px, `small` 24px, `normal` 32px, `large` 48px. */
9
+ size?: "xs" | "small" | "normal" | "large";
10
+ /** `circle` for people, `square` (rounded corners) for organisations, teams and products. */
11
+ shape?: "circle" | "square";
12
+ /** Adds a presence dot in the bottom-right corner. */
13
+ status?: "online" | "away" | "busy" | "offline";
14
+ /** Shows `+N` instead of a picture, as the last item of an avatar group. */
15
+ overflowCount?: number;
16
+ }
17
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ name: string;
19
+ size: "xs" | "small" | "normal" | "large";
20
+ status: "online" | "away" | "busy" | "offline";
21
+ alt: string;
22
+ imgUrl: string;
23
+ shape: "circle" | "square";
24
+ overflowCount: number;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
@@ -0,0 +1,116 @@
1
+ import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, ref as s, toDisplayString as c, watch as l } from "vue";
2
+ //#region src/lib/components/AcAvatar.vue?vue&type=script&setup=true&lang.ts
3
+ var u = [
4
+ "role",
5
+ "aria-label",
6
+ "aria-hidden"
7
+ ], d = ["src"], f = {
8
+ key: 1,
9
+ class: "tabular-nums",
10
+ "aria-hidden": "true"
11
+ }, p = {
12
+ key: 2,
13
+ "aria-hidden": "true"
14
+ }, m = /*@__PURE__*/ i({
15
+ __name: "AcAvatar",
16
+ props: {
17
+ name: { default: "" },
18
+ imgUrl: { default: "" },
19
+ alt: { default: void 0 },
20
+ size: { default: "normal" },
21
+ shape: { default: "circle" },
22
+ status: { default: void 0 },
23
+ overflowCount: { default: 0 }
24
+ },
25
+ setup(i) {
26
+ let m = i, h = {
27
+ xs: {
28
+ box: "size-5 text-xm",
29
+ dot: "size-1.5",
30
+ square: "rounded-4"
31
+ },
32
+ small: {
33
+ box: "size-6 text-sm",
34
+ dot: "size-2",
35
+ square: "rounded-4"
36
+ },
37
+ normal: {
38
+ box: "size-8 text-xs",
39
+ dot: "size-2.5",
40
+ square: "rounded-6"
41
+ },
42
+ large: {
43
+ box: "size-12 text-xl",
44
+ dot: "size-3",
45
+ square: "rounded-10"
46
+ }
47
+ }, g = [
48
+ "bg-primary-90 text-primary-20",
49
+ "bg-blue-90 text-blue-20",
50
+ "bg-purple-90 text-purple-20",
51
+ "bg-yellow-90 text-yellow-20",
52
+ "bg-red-90 text-red-20",
53
+ "bg-secondary-90 text-secondary-20"
54
+ ], _ = {
55
+ online: {
56
+ dot: "bg-success",
57
+ label: "Online"
58
+ },
59
+ away: {
60
+ dot: "bg-warning",
61
+ label: "Away"
62
+ },
63
+ busy: {
64
+ dot: "bg-danger",
65
+ label: "Busy"
66
+ },
67
+ offline: {
68
+ dot: "bg-slate-60",
69
+ label: "Offline"
70
+ }
71
+ }, v = s(!1), y = e(() => !!m.imgUrl && !v.value && !m.overflowCount), b = e(() => {
72
+ let e = m.name.split("@")[0].split(/[\s._-]+/).filter(Boolean);
73
+ return e.length ? (e.length > 1 ? e[0][0] + e[1][0] : e[0].slice(0, 1)).toUpperCase() : "";
74
+ }), x = e(() => {
75
+ if (m.overflowCount || !m.name) return "bg-surface-sunken text-label";
76
+ let e = 0;
77
+ for (let t of m.name) e = e * 31 + t.charCodeAt(0) >>> 0;
78
+ return g[e % g.length];
79
+ }), S = e(() => {
80
+ if (m.overflowCount) return m.alt ?? `${m.overflowCount} more`;
81
+ let e = m.alt ?? m.name;
82
+ return e ? m.status ? `${e} (${_[m.status].label})` : e : "";
83
+ }), C = e(() => m.shape === "circle" ? "rounded-full" : h[m.size].square);
84
+ return l(() => m.imgUrl, () => v.value = !1), (e, s) => (o(), n("span", {
85
+ class: a(["relative inline-flex shrink-0 bg-surface align-middle", [h[i.size].box, C.value]]),
86
+ role: S.value ? "img" : void 0,
87
+ "aria-label": S.value || void 0,
88
+ "aria-hidden": !S.value || void 0,
89
+ "data-ac-ds": "",
90
+ "data-testid": "ac-avatar"
91
+ }, [
92
+ r("span", { class: a(["inline-flex size-full items-center justify-center overflow-hidden font-semibold tracking-[-0.01em] select-none", [C.value, y.value ? "bg-surface-sunken" : x.value]]) }, [y.value ? (o(), n("img", {
93
+ key: 0,
94
+ src: i.imgUrl,
95
+ alt: "",
96
+ class: "size-full object-cover",
97
+ onError: s[0] ||= (e) => v.value = !0
98
+ }, null, 40, d)) : i.overflowCount ? (o(), n("span", f, "+" + c(i.overflowCount), 1)) : (o(), n("span", p, c(b.value), 1))], 2),
99
+ r("span", {
100
+ class: a(["pointer-events-none absolute inset-0 ring-1 ring-heading/8 ring-inset", C.value]),
101
+ "aria-hidden": "true"
102
+ }, null, 2),
103
+ i.status && !i.overflowCount ? (o(), n("span", {
104
+ key: 0,
105
+ class: a(["absolute right-0 bottom-0 rounded-full ring-2 ring-surface", [
106
+ h[i.size].dot,
107
+ _[i.status].dot,
108
+ i.shape === "square" && "translate-x-1/4 translate-y-1/4"
109
+ ]]),
110
+ "aria-hidden": "true"
111
+ }, null, 2)) : t("", !0)
112
+ ], 10, u));
113
+ }
114
+ });
115
+ //#endregion
116
+ export { m as default };
@@ -0,0 +1,5 @@
1
+ import e from "./AcBadge.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/lib/components/AcBadge.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,32 @@
1
+ import type { Tone, Variant } from "./types";
2
+ export interface Props {
3
+ /** Text of the badge. The default slot overrides it. */
4
+ label?: string;
5
+ /** Status or brand colour. Always pair a status colour with a word. */
6
+ color?: Tone | "default" | "secondary" | "dark";
7
+ /** `solid` fill, `light` tint (-95 fill, -10 text, best contrast) or `outlined`. */
8
+ variant?: Variant;
9
+ /** Pill shape (`rounded-50`) instead of the 6px control radius. */
10
+ rounded?: boolean;
11
+ /** Shows an 8px status dot before the label. */
12
+ dot?: boolean;
13
+ }
14
+ type __VLS_Slots = {
15
+ /** Badge content. Replaces `label`. */
16
+ default?: () => unknown;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
19
+ variant: Variant;
20
+ label: string;
21
+ color: Tone | "default" | "secondary" | "dark";
22
+ rounded: boolean;
23
+ dot: boolean;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,88 @@
1
+ import { computed as e, createCommentVNode as t, createElementBlock as n, createTextVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, toDisplayString as c } from "vue";
2
+ //#region src/lib/components/AcBadge.vue?vue&type=script&setup=true&lang.ts
3
+ var l = /*@__PURE__*/ i({
4
+ __name: "AcBadge",
5
+ props: {
6
+ label: { default: "Default" },
7
+ color: { default: "default" },
8
+ variant: { default: "solid" },
9
+ rounded: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ dot: {
14
+ type: Boolean,
15
+ default: !1
16
+ }
17
+ },
18
+ setup(i) {
19
+ let l = i, u = {
20
+ primary: [
21
+ "bg-primary text-white",
22
+ "bg-primary-95 text-primary-10 ring-primary-40/20",
23
+ "ring-primary-70 text-primary-20",
24
+ "bg-primary-40"
25
+ ],
26
+ secondary: [
27
+ "bg-secondary text-white",
28
+ "bg-secondary-95 text-secondary-10 ring-secondary-40/20",
29
+ "ring-secondary-70 text-secondary",
30
+ "bg-secondary-40"
31
+ ],
32
+ info: [
33
+ "bg-info text-white",
34
+ "bg-blue-95 text-blue-10 ring-blue-50/20",
35
+ "ring-blue-80 text-blue-30",
36
+ "bg-blue-50"
37
+ ],
38
+ success: [
39
+ "bg-success text-white",
40
+ "bg-green-95 text-green-10 ring-green-40/25",
41
+ "ring-green-70 text-green-20",
42
+ "bg-green-40"
43
+ ],
44
+ warning: [
45
+ "bg-warning text-on-warning",
46
+ "bg-yellow-95 text-yellow-10 ring-yellow-50/30",
47
+ "ring-yellow-70 text-yellow-20",
48
+ "bg-yellow-50"
49
+ ],
50
+ danger: [
51
+ "bg-danger text-white",
52
+ "bg-red-95 text-red-10 ring-red-40/20",
53
+ "ring-red-80 text-red-30",
54
+ "bg-red-40"
55
+ ],
56
+ dark: [
57
+ "bg-gray-20 text-surface",
58
+ "bg-gray-95 text-gray-10 ring-gray-40/20",
59
+ "ring-gray-70 text-gray-20",
60
+ "bg-gray-50"
61
+ ],
62
+ default: [
63
+ "bg-surface-sunken text-heading",
64
+ "bg-surface-muted text-heading ring-slate-50/20",
65
+ "ring-border-dark text-heading",
66
+ "bg-slate-50"
67
+ ]
68
+ }, d = e(() => {
69
+ let [e, t, n] = u[l.color];
70
+ return {
71
+ solid: e,
72
+ light: `ring-1 ring-inset ${t}`,
73
+ outlined: `bg-surface ring-1 ring-inset ${n}`
74
+ }[l.variant];
75
+ }), f = e(() => l.variant === "solid" && l.color !== "default" ? "bg-surface" : u[l.color][3]);
76
+ return (e, l) => (o(), n("span", {
77
+ class: a(["inline-flex h-5.5 items-center gap-1.5 px-2 text-xs leading-none font-medium whitespace-nowrap tabular-nums", [d.value, i.rounded ? "rounded-50" : "rounded-6"]]),
78
+ "data-ac-ds": "",
79
+ "data-testid": "ac-badge"
80
+ }, [i.dot ? (o(), n("span", {
81
+ key: 0,
82
+ class: a(["size-1.5 shrink-0 rounded-full", f.value]),
83
+ "aria-hidden": "true"
84
+ }, null, 2)) : t("", !0), s(e.$slots, "default", {}, () => [r(c(i.label), 1)])], 2));
85
+ }
86
+ });
87
+ //#endregion
88
+ export { l as default };
@@ -0,0 +1,5 @@
1
+ import e from "./AcBanner.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/lib/components/AcBanner.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,57 @@
1
+ import type { Component } from "vue";
2
+ export interface Props {
3
+ /** Colour of the strip. `danger` and `warning` are announced to screen readers as alerts. */
4
+ color?: "info" | "warning" | "danger" | "primary" | "neutral";
5
+ /** `subtle` tinted strip with a hairline, or `solid` full-colour fill for app-wide announcements. */
6
+ variant?: "subtle" | "solid";
7
+ /** Bold lead-in before the message, e.g. "Scheduled maintenance". */
8
+ title?: string;
9
+ /** Text of the action after the message. Renders a link with `actionHref`, otherwise a button that emits `action`. */
10
+ actionLabel?: string;
11
+ /** URL for the action link. */
12
+ actionHref?: string;
13
+ /** Shows a close button. Closing sets `v-model:open` to `false` and emits `close`. */
14
+ dismissible?: boolean;
15
+ /** A Lucide icon component to replace the colour's default icon. */
16
+ icon?: Component;
17
+ /** Hides the leading icon. */
18
+ hideIcon?: boolean;
19
+ }
20
+ type __VLS_Props = Props;
21
+ type __VLS_Slots = {
22
+ /** The message. Keep it to one sentence. */
23
+ default?: () => unknown;
24
+ /** Replaces the action link or button, e.g. with two buttons. */
25
+ action?: () => unknown;
26
+ };
27
+ type __VLS_ModelProps = {
28
+ /** Whether the banner shows. Bind with `v-model:open` to remember a dismissal. */
29
+ "open"?: boolean;
30
+ };
31
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ "update:open": (value: boolean) => any;
34
+ close: () => any;
35
+ action: () => any;
36
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
38
+ onClose?: (() => any) | undefined;
39
+ onAction?: (() => any) | undefined;
40
+ }>, {
41
+ variant: "subtle" | "solid";
42
+ title: string;
43
+ icon: Component;
44
+ color: "info" | "warning" | "danger" | "primary" | "neutral";
45
+ dismissible: boolean;
46
+ hideIcon: boolean;
47
+ actionLabel: string;
48
+ actionHref: string;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
51
+ declare const _default: typeof __VLS_export;
52
+ export default _default;
53
+ type __VLS_WithSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };