@vinicunca/taman-ui 0.1.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 (296) hide show
  1. package/README.md +95 -0
  2. package/dist/_virtual/_/plugin-vue/export-helper.mjs +8 -0
  3. package/dist/components/auth/index.d.ts +2 -0
  4. package/dist/components/auth/index.mjs +2 -0
  5. package/dist/components/auth/taman-auth-form.mjs +67 -0
  6. package/dist/components/auth/taman-auth-form.vue.d.ts +31 -0
  7. package/dist/components/back-to-top/index.mjs +2 -0
  8. package/dist/components/back-to-top/taman-back-to-top.mjs +70 -0
  9. package/dist/components/back-to-top/taman-back-to-top.vue.d.ts +18 -0
  10. package/dist/components/button/check-group-selection.mjs +17 -0
  11. package/dist/components/button/index.d.ts +4 -0
  12. package/dist/components/button/index.mjs +3 -0
  13. package/dist/components/button/taman-button-check-group.mjs +132 -0
  14. package/dist/components/button/taman-button-check-group.types.d.ts +22 -0
  15. package/dist/components/button/taman-button-check-group.vue.d.ts +41 -0
  16. package/dist/components/button/taman-button-icon.mjs +105 -0
  17. package/dist/components/button/taman-button-icon.vue.d.ts +17 -0
  18. package/dist/components/descriptions/index.d.ts +4 -0
  19. package/dist/components/descriptions/index.mjs +3 -0
  20. package/dist/components/descriptions/taman-description-cell.mjs +116 -0
  21. package/dist/components/descriptions/taman-description-item.mjs +10 -0
  22. package/dist/components/descriptions/taman-description-item.vue.d.ts +5 -0
  23. package/dist/components/descriptions/taman-description-row.mjs +131 -0
  24. package/dist/components/descriptions/taman-description.mjs +78 -0
  25. package/dist/components/descriptions/taman-description.types.d.ts +51 -0
  26. package/dist/components/descriptions/taman-description.vue.d.ts +23 -0
  27. package/dist/components/descriptions/use-taman-description.mjs +161 -0
  28. package/dist/components/file-upload/index.d.ts +3 -0
  29. package/dist/components/file-upload/index.mjs +2 -0
  30. package/dist/components/file-upload/taman-file-upload.mjs +88 -0
  31. package/dist/components/file-upload/taman-file-upload.types.d.ts +10 -0
  32. package/dist/components/file-upload/taman-file-upload.vue.d.ts +21 -0
  33. package/dist/components/full-screen/full-screen.mjs +27 -0
  34. package/dist/components/full-screen/full-screen.vue.d.ts +8 -0
  35. package/dist/components/full-screen/index.mjs +2 -0
  36. package/dist/components/icon/icon.mjs +27 -0
  37. package/dist/components/icon/icon.vue.d.ts +9 -0
  38. package/dist/components/icon/index.d.ts +2 -0
  39. package/dist/components/icon/index.mjs +2 -0
  40. package/dist/components/index.d.ts +34 -0
  41. package/dist/components/index.mjs +31 -0
  42. package/dist/components/input/index.d.ts +5 -0
  43. package/dist/components/input/index.mjs +4 -0
  44. package/dist/components/input/password-strength.d.ts +7 -0
  45. package/dist/components/input/password-strength.mjs +21 -0
  46. package/dist/components/input/taman-input-currency.mjs +76 -0
  47. package/dist/components/input/taman-input-currency.types.d.ts +8 -0
  48. package/dist/components/input/taman-input-currency.vue.d.ts +15 -0
  49. package/dist/components/input/taman-input-password.mjs +99 -0
  50. package/dist/components/input/taman-input-password.vue.d.ts +17 -0
  51. package/dist/components/input-date/format-calendar-input-value.mjs +26 -0
  52. package/dist/components/input-date/index.d.ts +3 -0
  53. package/dist/components/input-date/index.mjs +2 -0
  54. package/dist/components/input-date/taman-input-date.mjs +116 -0
  55. package/dist/components/input-date/taman-input-date.types.d.ts +14 -0
  56. package/dist/components/input-date/taman-input-date.vue.d.ts +21 -0
  57. package/dist/components/loading/index.d.ts +3 -0
  58. package/dist/components/loading/index.mjs +2 -0
  59. package/dist/components/loading/taman-loading.mjs +64 -0
  60. package/dist/components/loading/taman-loading.vue.d.ts +25 -0
  61. package/dist/components/loading/types.d.ts +13 -0
  62. package/dist/components/logo/index.mjs +2 -0
  63. package/dist/components/logo/taman-logo.mjs +60 -0
  64. package/dist/components/logo/taman-logo.vue.d.ts +32 -0
  65. package/dist/components/render-content/index.d.ts +2 -0
  66. package/dist/components/render-content/index.mjs +2 -0
  67. package/dist/components/render-content/render-content.mjs +42 -0
  68. package/dist/components/render-content/render-content.vue.d.ts +31 -0
  69. package/dist/components/scrollbar/index.d.ts +2 -0
  70. package/dist/components/scrollbar/index.mjs +2 -0
  71. package/dist/components/scrollbar/scrollbar.mjs +136 -0
  72. package/dist/components/scrollbar/scrollbar.vue.d.ts +50 -0
  73. package/dist/form/components/form-actions.mjs +151 -0
  74. package/dist/form/components/form-field-array.mjs +154 -0
  75. package/dist/form/components/form-field-array.types.d.ts +18 -0
  76. package/dist/form/form-render/form-render-field-collapsible.mjs +32 -0
  77. package/dist/form/form-render/form-render-field-control.mjs +44 -0
  78. package/dist/form/form-render/form-render-form-field.mjs +408 -0
  79. package/dist/form/form-render/form-render-form-label.mjs +46 -0
  80. package/dist/form/form-render/form-render-form.mjs +163 -0
  81. package/dist/form/form-render/form-render-group.mjs +89 -0
  82. package/dist/form/form-render/form-render.context.mjs +10 -0
  83. package/dist/form/form-render/form-render.dependencies.mjs +101 -0
  84. package/dist/form/form-render/form-render.helper.mjs +31 -0
  85. package/dist/form/form-render/form-render.schema.mjs +209 -0
  86. package/dist/form/form-render/index.mjs +4 -0
  87. package/dist/form/form.api.d.ts +54 -0
  88. package/dist/form/form.api.mjs +324 -0
  89. package/dist/form/form.built-ins.d.ts +36 -0
  90. package/dist/form/form.built-ins.mjs +48 -0
  91. package/dist/form/form.codec.d.ts +17 -0
  92. package/dist/form/form.codec.mjs +45 -0
  93. package/dist/form/form.config.d.ts +6 -0
  94. package/dist/form/form.config.mjs +43 -0
  95. package/dist/form/form.empty-value.d.ts +4 -0
  96. package/dist/form/form.empty-value.mjs +20 -0
  97. package/dist/form/form.field-name.mjs +25 -0
  98. package/dist/form/form.rule-registry.mjs +10 -0
  99. package/dist/form/form.runtime-field.mjs +56 -0
  100. package/dist/form/form.runtime.mjs +235 -0
  101. package/dist/form/form.schema-defaults.mjs +36 -0
  102. package/dist/form/form.types.d.ts +315 -0
  103. package/dist/form/form.use-delayed-flag.mjs +35 -0
  104. package/dist/form/form.use-form-context.mjs +44 -0
  105. package/dist/form/form.use-taman-form.d.ts +7 -0
  106. package/dist/form/form.use-taman-form.mjs +36 -0
  107. package/dist/form/index.d.ts +8 -0
  108. package/dist/form/index.mjs +6 -0
  109. package/dist/form/taman-use-form.mjs +146 -0
  110. package/dist/index.d.ts +63 -0
  111. package/dist/index.mjs +56 -0
  112. package/dist/layout/components/index.mjs +6 -0
  113. package/dist/layout/components/taman-core-button-collapse.mjs +38 -0
  114. package/dist/layout/components/taman-core-button-fixed.mjs +29 -0
  115. package/dist/layout/components/taman-core-layout-content.mjs +50 -0
  116. package/dist/layout/components/taman-core-layout-footer.mjs +38 -0
  117. package/dist/layout/components/taman-core-layout-header.mjs +48 -0
  118. package/dist/layout/components/taman-core-layout-sidebar.mjs +319 -0
  119. package/dist/layout/components/taman-core-layout-tabbar.mjs +21 -0
  120. package/dist/layout/composables/use-layout.mjs +31 -0
  121. package/dist/layout/composables/use-sidebar-drag.mjs +103 -0
  122. package/dist/layout/header-scroll-state.mjs +9 -0
  123. package/dist/layout/index.d.ts +3 -0
  124. package/dist/layout/index.mjs +2 -0
  125. package/dist/layout/taman-core-layout.d.ts +41 -0
  126. package/dist/layout/taman-core-layout.mjs +603 -0
  127. package/dist/layout/taman-core-layout.vue.d.ts +99 -0
  128. package/dist/menu/components/collapse-transition.mjs +82 -0
  129. package/dist/menu/components/index.mjs +5 -0
  130. package/dist/menu/components/normal-menu/index.d.ts +3 -0
  131. package/dist/menu/components/normal-menu/index.mjs +2 -0
  132. package/dist/menu/components/normal-menu/normal-menu.d.ts +11 -0
  133. package/dist/menu/components/normal-menu/normal-menu.mjs +50 -0
  134. package/dist/menu/components/normal-menu/normal-menu.vue.d.ts +19 -0
  135. package/dist/menu/components/taman-menu-badge-dot.mjs +23 -0
  136. package/dist/menu/components/taman-menu-badge.mjs +49 -0
  137. package/dist/menu/components/taman-menu-badge.vue.d.ts +9 -0
  138. package/dist/menu/components/taman-menu-item.mjs +124 -0
  139. package/dist/menu/components/taman-menu-root.mjs +250 -0
  140. package/dist/menu/components/taman-menu-sub-menu-content.mjs +83 -0
  141. package/dist/menu/components/taman-menu-sub-menu.mjs +216 -0
  142. package/dist/menu/composables/index.mjs +3 -0
  143. package/dist/menu/composables/use-menu-context.mjs +36 -0
  144. package/dist/menu/composables/use-menu-scroll.mjs +23 -0
  145. package/dist/menu/composables/use-menu.mjs +33 -0
  146. package/dist/menu/index.d.ts +7 -0
  147. package/dist/menu/index.mjs +5 -0
  148. package/dist/menu/menu.constants.mjs +5 -0
  149. package/dist/menu/menu.types.d.ts +63 -0
  150. package/dist/menu/menu.utils.mjs +27 -0
  151. package/dist/menu/taman-menu.mjs +41 -0
  152. package/dist/menu/taman-menu.vue.d.ts +12 -0
  153. package/dist/menu/taman-sub-menu.mjs +75 -0
  154. package/dist/popup/alert/alert-builder.d.ts +8 -0
  155. package/dist/popup/alert/alert-builder.mjs +98 -0
  156. package/dist/popup/alert/alert-overlay.mjs +55 -0
  157. package/dist/popup/alert/alert.d.ts +43 -0
  158. package/dist/popup/alert/alert.mjs +10 -0
  159. package/dist/popup/alert/alert.vue.d.ts +26 -0
  160. package/dist/popup/alert/alert2.mjs +238 -0
  161. package/dist/popup/alert/index.d.ts +4 -0
  162. package/dist/popup/alert/index.mjs +4 -0
  163. package/dist/popup/dialog/dialog.api.d.ts +23 -0
  164. package/dist/popup/dialog/dialog.api.mjs +133 -0
  165. package/dist/popup/dialog/dialog.mjs +336 -0
  166. package/dist/popup/dialog/dialog.types.d.ts +60 -0
  167. package/dist/popup/dialog/dialog.vue.d.ts +46 -0
  168. package/dist/popup/dialog/index.d.ts +4 -0
  169. package/dist/popup/dialog/index.mjs +3 -0
  170. package/dist/popup/dialog/use-dialog-draggable.mjs +93 -0
  171. package/dist/popup/dialog/use-taman-dialog.d.ts +13 -0
  172. package/dist/popup/dialog/use-taman-dialog.mjs +106 -0
  173. package/dist/popup/drawer/drawer.api.d.ts +23 -0
  174. package/dist/popup/drawer/drawer.api.mjs +124 -0
  175. package/dist/popup/drawer/drawer.mjs +277 -0
  176. package/dist/popup/drawer/drawer.types.d.ts +56 -0
  177. package/dist/popup/drawer/drawer.vue.d.ts +47 -0
  178. package/dist/popup/drawer/index.d.ts +4 -0
  179. package/dist/popup/drawer/index.mjs +3 -0
  180. package/dist/popup/drawer/use-taman-drawer.d.ts +13 -0
  181. package/dist/popup/drawer/use-taman-drawer.mjs +109 -0
  182. package/dist/popup/index.d.ts +13 -0
  183. package/dist/popup/index.mjs +11 -0
  184. package/dist/tabs/components/index.mjs +2 -0
  185. package/dist/tabs/components/taman-tabs.mjs +158 -0
  186. package/dist/tabs/components/widgets/index.d.ts +4 -0
  187. package/dist/tabs/components/widgets/index.mjs +4 -0
  188. package/dist/tabs/components/widgets/tool-more.mjs +45 -0
  189. package/dist/tabs/components/widgets/tool-more.vue.d.ts +7 -0
  190. package/dist/tabs/components/widgets/tool-refresh.mjs +25 -0
  191. package/dist/tabs/components/widgets/tool-refresh.vue.d.ts +9 -0
  192. package/dist/tabs/components/widgets/tool-screen.mjs +29 -0
  193. package/dist/tabs/components/widgets/tool-screen.vue.d.ts +12 -0
  194. package/dist/tabs/index.d.ts +8 -0
  195. package/dist/tabs/index.mjs +6 -0
  196. package/dist/tabs/strict-context-menu.d.ts +10 -0
  197. package/dist/tabs/tabs.types.d.ts +30 -0
  198. package/dist/tabs/taman-tabs-view.mjs +101 -0
  199. package/dist/tabs/taman-tabs-view.vue.d.ts +18 -0
  200. package/dist/tabs/use-tabs-drag.mjs +69 -0
  201. package/dist/tabs/use-tabs-view-scroll.mjs +114 -0
  202. package/dist/ui/alert-dialog/alert-dialog-action.mjs +21 -0
  203. package/dist/ui/alert-dialog/alert-dialog-action.vue.d.ts +16 -0
  204. package/dist/ui/alert-dialog/alert-dialog-cancel.mjs +21 -0
  205. package/dist/ui/alert-dialog/alert-dialog-cancel.vue.d.ts +16 -0
  206. package/dist/ui/alert-dialog/alert-dialog-content.mjs +111 -0
  207. package/dist/ui/alert-dialog/alert-dialog-content.vue.d.ts +49 -0
  208. package/dist/ui/alert-dialog/alert-dialog-description.mjs +30 -0
  209. package/dist/ui/alert-dialog/alert-dialog-description.vue.d.ts +20 -0
  210. package/dist/ui/alert-dialog/alert-dialog-footer.mjs +14 -0
  211. package/dist/ui/alert-dialog/alert-dialog-footer.vue.d.ts +15 -0
  212. package/dist/ui/alert-dialog/alert-dialog-header.mjs +14 -0
  213. package/dist/ui/alert-dialog/alert-dialog-header.vue.d.ts +15 -0
  214. package/dist/ui/alert-dialog/alert-dialog-overlay.mjs +29 -0
  215. package/dist/ui/alert-dialog/alert-dialog-root.mjs +23 -0
  216. package/dist/ui/alert-dialog/alert-dialog-root.vue.d.ts +23 -0
  217. package/dist/ui/alert-dialog/alert-dialog-title.mjs +30 -0
  218. package/dist/ui/alert-dialog/alert-dialog-title.vue.d.ts +20 -0
  219. package/dist/ui/alert-dialog/alert-dialog-trigger.mjs +21 -0
  220. package/dist/ui/alert-dialog/alert-dialog-trigger.vue.d.ts +16 -0
  221. package/dist/ui/alert-dialog/index.d.ts +10 -0
  222. package/dist/ui/alert-dialog/index.mjs +10 -0
  223. package/dist/ui/dialog/dialog-close.mjs +21 -0
  224. package/dist/ui/dialog/dialog-close.vue.d.ts +16 -0
  225. package/dist/ui/dialog/dialog-content.mjs +111 -0
  226. package/dist/ui/dialog/dialog-content.vue.d.ts +51 -0
  227. package/dist/ui/dialog/dialog-description.mjs +31 -0
  228. package/dist/ui/dialog/dialog-description.vue.d.ts +20 -0
  229. package/dist/ui/dialog/dialog-footer.mjs +14 -0
  230. package/dist/ui/dialog/dialog-footer.vue.d.ts +15 -0
  231. package/dist/ui/dialog/dialog-header.mjs +14 -0
  232. package/dist/ui/dialog/dialog-header.vue.d.ts +15 -0
  233. package/dist/ui/dialog/dialog-overlay.mjs +34 -0
  234. package/dist/ui/dialog/dialog-overlay.vue.d.ts +14 -0
  235. package/dist/ui/dialog/dialog-root.mjs +24 -0
  236. package/dist/ui/dialog/dialog-root.vue.d.ts +23 -0
  237. package/dist/ui/dialog/dialog-title.mjs +31 -0
  238. package/dist/ui/dialog/dialog-title.vue.d.ts +20 -0
  239. package/dist/ui/dialog/dialog-trigger.mjs +21 -0
  240. package/dist/ui/dialog/dialog-trigger.vue.d.ts +16 -0
  241. package/dist/ui/dialog/index.d.ts +10 -0
  242. package/dist/ui/dialog/index.mjs +10 -0
  243. package/dist/ui/dialog/use-dialog-state-events.mjs +60 -0
  244. package/dist/ui/form/form-control.mjs +27 -0
  245. package/dist/ui/form/form-control.vue.d.ts +15 -0
  246. package/dist/ui/form/form-description.mjs +27 -0
  247. package/dist/ui/form/form-description.vue.d.ts +19 -0
  248. package/dist/ui/form/form-field.mjs +37 -0
  249. package/dist/ui/form/form-field.vue.d.ts +27 -0
  250. package/dist/ui/form/form-item.mjs +27 -0
  251. package/dist/ui/form/form-item.vue.d.ts +19 -0
  252. package/dist/ui/form/form-label.mjs +41 -0
  253. package/dist/ui/form/form-label.vue.d.ts +20 -0
  254. package/dist/ui/form/form-message.mjs +28 -0
  255. package/dist/ui/form/form-message.vue.d.ts +9 -0
  256. package/dist/ui/form/index.d.ts +8 -0
  257. package/dist/ui/form/index.mjs +8 -0
  258. package/dist/ui/form/injection-keys.d.ts +13 -0
  259. package/dist/ui/form/injection-keys.mjs +5 -0
  260. package/dist/ui/form/use-form-field.mjs +27 -0
  261. package/dist/ui/index.d.ts +42 -0
  262. package/dist/ui/index.mjs +42 -0
  263. package/dist/ui/label/index.d.ts +2 -0
  264. package/dist/ui/label/index.mjs +2 -0
  265. package/dist/ui/label/label.mjs +31 -0
  266. package/dist/ui/label/label.vue.d.ts +20 -0
  267. package/dist/ui/scroll-area/index.d.ts +3 -0
  268. package/dist/ui/scroll-area/index.mjs +3 -0
  269. package/dist/ui/scroll-area/scroll-area.mjs +47 -0
  270. package/dist/ui/scroll-area/scroll-area.vue.d.ts +21 -0
  271. package/dist/ui/scroll-area/scroll-bar.mjs +38 -0
  272. package/dist/ui/scroll-area/scroll-bar.vue.d.ts +12 -0
  273. package/dist/ui/sheet/index.d.ts +8 -0
  274. package/dist/ui/sheet/index.mjs +8 -0
  275. package/dist/ui/sheet/sheet-close.mjs +21 -0
  276. package/dist/ui/sheet/sheet-close.vue.d.ts +16 -0
  277. package/dist/ui/sheet/sheet-content.mjs +105 -0
  278. package/dist/ui/sheet/sheet-content.vue.d.ts +48 -0
  279. package/dist/ui/sheet/sheet-description.mjs +30 -0
  280. package/dist/ui/sheet/sheet-description.vue.d.ts +20 -0
  281. package/dist/ui/sheet/sheet-footer.mjs +14 -0
  282. package/dist/ui/sheet/sheet-footer.vue.d.ts +15 -0
  283. package/dist/ui/sheet/sheet-header.mjs +14 -0
  284. package/dist/ui/sheet/sheet-header.vue.d.ts +15 -0
  285. package/dist/ui/sheet/sheet-overlay.mjs +32 -0
  286. package/dist/ui/sheet/sheet-root.mjs +24 -0
  287. package/dist/ui/sheet/sheet-root.vue.d.ts +23 -0
  288. package/dist/ui/sheet/sheet-title.mjs +31 -0
  289. package/dist/ui/sheet/sheet-title.vue.d.ts +20 -0
  290. package/dist/ui/sheet/sheet.variants.d.ts +27 -0
  291. package/dist/ui/sheet/sheet.variants.mjs +12 -0
  292. package/dist/unocss/content.d.ts +4 -0
  293. package/dist/unocss/content.mjs +9 -0
  294. package/dist/unocss/index.d.ts +2 -0
  295. package/dist/unocss/index.mjs +2 -0
  296. package/package.json +78 -0
@@ -0,0 +1,114 @@
1
+ import { nextTick, onMounted, onUnmounted, ref, watch } from "vue";
2
+ import { useDebounceFn } from "@vueuse/core";
3
+ //#region src/tabs/use-tabs-view-scroll.ts
4
+ function useTabsViewScroll(props) {
5
+ let resizeObserver = null;
6
+ let mutationObserver = null;
7
+ let tabItemCount = 0;
8
+ const scrollbarRef = ref(null);
9
+ const scrollViewportEl = ref(null);
10
+ const showScrollButton = ref(false);
11
+ const scrollIsAtLeft = ref(true);
12
+ const scrollIsAtRight = ref(false);
13
+ function getScrollClientWidth() {
14
+ const scrollbarEl = scrollbarRef.value?.$el;
15
+ if (!scrollbarEl || !scrollViewportEl.value) return {};
16
+ return {
17
+ scrollbarWidth: scrollbarEl.clientWidth,
18
+ scrollViewWidth: scrollViewportEl.value.clientWidth
19
+ };
20
+ }
21
+ function scrollDirection(direction, distance = 150) {
22
+ const { scrollbarWidth, scrollViewWidth } = getScrollClientWidth();
23
+ if (!scrollbarWidth || !scrollViewWidth) return;
24
+ if (scrollbarWidth > scrollViewWidth) return;
25
+ scrollViewportEl.value?.scrollBy({
26
+ behavior: "smooth",
27
+ left: direction === "left" ? -(scrollbarWidth - distance) : +(scrollbarWidth - distance)
28
+ });
29
+ }
30
+ async function initScrollbar() {
31
+ await nextTick();
32
+ const scrollbarEl = scrollbarRef.value?.$el;
33
+ if (!scrollbarEl) return;
34
+ const viewportEl = scrollbarEl?.querySelector("div[data-akar-scroll-area-viewport]");
35
+ scrollViewportEl.value = viewportEl;
36
+ calcShowScrollbarButton();
37
+ await nextTick();
38
+ scrollToActiveIntoView();
39
+ resizeObserver?.disconnect();
40
+ resizeObserver = new ResizeObserver(useDebounceFn((_entries) => {
41
+ calcShowScrollbarButton();
42
+ scrollToActiveIntoView();
43
+ }, 100));
44
+ resizeObserver.observe(viewportEl);
45
+ tabItemCount = props.tabs?.length || 0;
46
+ mutationObserver?.disconnect();
47
+ mutationObserver = new MutationObserver(() => {
48
+ const count = viewportEl.querySelectorAll("div[data-tab-item=\"true\"]").length;
49
+ if (count > tabItemCount) scrollToActiveIntoView();
50
+ if (count !== tabItemCount) {
51
+ calcShowScrollbarButton();
52
+ tabItemCount = count;
53
+ }
54
+ });
55
+ mutationObserver.observe(viewportEl, {
56
+ attributes: false,
57
+ childList: true,
58
+ subtree: true
59
+ });
60
+ }
61
+ async function scrollToActiveIntoView() {
62
+ if (!scrollViewportEl.value) return;
63
+ await nextTick();
64
+ const viewportEl = scrollViewportEl.value;
65
+ const { scrollbarWidth } = getScrollClientWidth();
66
+ const { scrollWidth } = viewportEl;
67
+ if (scrollbarWidth >= scrollWidth) return;
68
+ requestAnimationFrame(() => {
69
+ (viewportEl?.querySelector(".is-active"))?.scrollIntoView({
70
+ behavior: "smooth",
71
+ inline: "start"
72
+ });
73
+ });
74
+ }
75
+ /**
76
+ * Compute tab widths to decide whether scroll buttons are shown
77
+ */
78
+ async function calcShowScrollbarButton() {
79
+ if (!scrollViewportEl.value) return;
80
+ const { scrollbarWidth } = getScrollClientWidth();
81
+ showScrollButton.value = scrollViewportEl.value.scrollWidth > scrollbarWidth;
82
+ }
83
+ const handleScrollAt = useDebounceFn(({ left, right }) => {
84
+ scrollIsAtLeft.value = left;
85
+ scrollIsAtRight.value = right;
86
+ }, 100);
87
+ function handleWheel({ deltaY }) {
88
+ scrollViewportEl.value?.scrollBy({ left: deltaY * 3 });
89
+ }
90
+ watch(() => props.active, async () => {
91
+ scrollToActiveIntoView();
92
+ }, { flush: "post" });
93
+ onMounted(() => {
94
+ initScrollbar();
95
+ });
96
+ onUnmounted(() => {
97
+ resizeObserver?.disconnect();
98
+ mutationObserver?.disconnect();
99
+ resizeObserver = null;
100
+ mutationObserver = null;
101
+ });
102
+ return {
103
+ handleScrollAt,
104
+ handleWheel,
105
+ initScrollbar,
106
+ scrollbarRef,
107
+ scrollDirection,
108
+ scrollIsAtLeft,
109
+ scrollIsAtRight,
110
+ showScrollButton
111
+ };
112
+ }
113
+ //#endregion
114
+ export { useTabsViewScroll };
@@ -0,0 +1,21 @@
1
+ import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { AlertDialogAction } from "akar";
3
+ //#region src/ui/alert-dialog/alert-dialog-action.vue
4
+ const _sfc_main = /*@__PURE__*/ defineComponent({
5
+ __name: "alert-dialog-action",
6
+ props: {
7
+ asChild: { type: Boolean },
8
+ as: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ return (_ctx, _cache) => {
13
+ return openBlock(), createBlock(unref(AlertDialogAction), normalizeProps(guardReactiveProps(props)), {
14
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
15
+ _: 3
16
+ }, 16);
17
+ };
18
+ }
19
+ });
20
+ //#endregion
21
+ export { _sfc_main as default };
@@ -0,0 +1,16 @@
1
+ import { AlertDialogActionProps } from "akar";
2
+ //#region src/ui/alert-dialog/alert-dialog-action.vue.d.ts
3
+ declare var __VLS_8: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_8) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<AlertDialogActionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AlertDialogActionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
15
+ //#endregion
16
+ export { _default as default };
@@ -0,0 +1,21 @@
1
+ import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { AlertDialogCancel } from "akar";
3
+ //#region src/ui/alert-dialog/alert-dialog-cancel.vue
4
+ const _sfc_main = /*@__PURE__*/ defineComponent({
5
+ __name: "alert-dialog-cancel",
6
+ props: {
7
+ asChild: { type: Boolean },
8
+ as: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ return (_ctx, _cache) => {
13
+ return openBlock(), createBlock(unref(AlertDialogCancel), normalizeProps(guardReactiveProps(props)), {
14
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
15
+ _: 3
16
+ }, 16);
17
+ };
18
+ }
19
+ });
20
+ //#endregion
21
+ export { _sfc_main as default };
@@ -0,0 +1,16 @@
1
+ import { AlertDialogCancelProps } from "akar";
2
+ //#region src/ui/alert-dialog/alert-dialog-cancel.vue.d.ts
3
+ declare var __VLS_8: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_8) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<AlertDialogCancelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AlertDialogCancelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
15
+ //#endregion
16
+ export { _default as default };
@@ -0,0 +1,111 @@
1
+ import { useDialogStateEvents } from "../dialog/use-dialog-state-events.mjs";
2
+ import _sfc_main$1 from "./alert-dialog-overlay.mjs";
3
+ import { Transition, createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, unref, withCtx } from "vue";
4
+ import { reactiveOmit } from "@vueuse/core";
5
+ import { AlertDialogContent, AlertDialogPortal, useForwardPropsEmits } from "akar";
6
+ //#region src/ui/alert-dialog/alert-dialog-content.vue
7
+ const _sfc_main = /*@__PURE__*/ defineComponent({
8
+ inheritAttrs: false,
9
+ __name: "alert-dialog-content",
10
+ props: {
11
+ forceMount: { type: Boolean },
12
+ disableOutsidePointerEvents: { type: Boolean },
13
+ asChild: { type: Boolean },
14
+ as: {},
15
+ centered: { type: Boolean },
16
+ class: { type: [
17
+ Boolean,
18
+ null,
19
+ String,
20
+ Object,
21
+ Array
22
+ ] },
23
+ modal: {
24
+ type: Boolean,
25
+ default: true
26
+ },
27
+ open: { type: Boolean },
28
+ overlayBlur: {},
29
+ zIndex: {}
30
+ },
31
+ emits: [
32
+ "escapeKeyDown",
33
+ "pointerDownOutside",
34
+ "focusOutside",
35
+ "interactOutside",
36
+ "openAutoFocus",
37
+ "closeAutoFocus",
38
+ "close",
39
+ "closed",
40
+ "opened"
41
+ ],
42
+ setup(__props, { expose: __expose, emit: __emit }) {
43
+ const props = __props;
44
+ const emits = __emit;
45
+ const delegatedProps = reactiveOmit(props, "class");
46
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
47
+ const contentRef = ref(null);
48
+ const { handleAnimationEvent } = useDialogStateEvents({
49
+ contentRef,
50
+ isOpen: () => props.open,
51
+ onClosed: () => emits("closed"),
52
+ onOpened: () => emits("opened")
53
+ });
54
+ __expose({ getContentRef: () => contentRef.value });
55
+ return (_ctx, _cache) => {
56
+ return openBlock(), createBlock(unref(AlertDialogPortal), null, {
57
+ default: withCtx(() => [createVNode(Transition, {
58
+ "enter-active-class": "transition-opacity-300",
59
+ "leave-active-class": "transition-opacity-300",
60
+ "enter-from-class": "opacity-0",
61
+ "leave-to-class": "opacity-0"
62
+ }, {
63
+ default: withCtx(() => [__props.open && __props.modal ? (openBlock(), createBlock(_sfc_main$1, {
64
+ key: 0,
65
+ open: __props.open,
66
+ "overlay-blur": __props.overlayBlur,
67
+ position: "fixed",
68
+ "z-index": __props.zIndex,
69
+ onClick: _cache[0] || (_cache[0] = () => emits("close"))
70
+ }, null, 8, [
71
+ "open",
72
+ "overlay-blur",
73
+ "z-index"
74
+ ])) : createCommentVNode("v-if", true)]),
75
+ _: 1
76
+ }), createVNode(unref(AlertDialogContent), mergeProps({
77
+ ref_key: "contentRef",
78
+ ref: contentRef,
79
+ "data-slot": "alert-dialog-content",
80
+ style: {
81
+ ...__props.zIndex ? { zIndex: __props.zIndex } : {},
82
+ position: "fixed"
83
+ }
84
+ }, {
85
+ ..._ctx.$attrs,
86
+ ...unref(forwarded)
87
+ }, {
88
+ class: ["border rounded-lg bg-background max-w-[calc(100%-2rem)] w-full shadow-lg translate-x-[-50%] left-[50%] fixed z-popup sm:max-w-lg data-[state=closed]:(animate-out fade-out-0 zoom-out-95) data-[state=open]:(animate-in fade-in-0 zoom-in-95) pohon:animate-duration-280", [{
89
+ "data-[state=closed]:slide-out-to-top-48% data-[state=open]:slide-in-from-top-48%": !__props.centered,
90
+ "data-[state=closed]:slide-out-to-top-148% data-[state=open]:slide-in-from-top-98%": __props.centered,
91
+ "top-[10vh]": !__props.centered,
92
+ "top-1/2 -translate-y-1/2": __props.centered
93
+ }, props.class]],
94
+ onAnimationend: unref(handleAnimationEvent),
95
+ onAnimationcancel: unref(handleAnimationEvent)
96
+ }), {
97
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
98
+ _: 3
99
+ }, 16, [
100
+ "style",
101
+ "class",
102
+ "onAnimationend",
103
+ "onAnimationcancel"
104
+ ])]),
105
+ _: 3
106
+ });
107
+ };
108
+ }
109
+ });
110
+ //#endregion
111
+ export { _sfc_main as default };
@@ -0,0 +1,49 @@
1
+ import { HTMLAttributes } from "vue";
2
+ import { AlertDialogContent, AlertDialogContentProps } from "akar";
3
+ //#region src/ui/alert-dialog/alert-dialog-content.vue.d.ts
4
+ type __VLS_Props = AlertDialogContentProps & {
5
+ centered?: boolean;
6
+ class?: HTMLAttributes['class'];
7
+ modal?: boolean;
8
+ open?: boolean;
9
+ overlayBlur?: number;
10
+ zIndex?: number;
11
+ };
12
+ declare var __VLS_32: {};
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_32) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
17
+ getContentRef: () => InstanceType<typeof AlertDialogContent> | null;
18
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ close: () => any;
20
+ openAutoFocus: (event: Event) => any;
21
+ closed: () => any;
22
+ opened: () => any;
23
+ escapeKeyDown: (event: KeyboardEvent) => any;
24
+ pointerDownOutside: (event: import("akar").PointerDownOutsideEvent) => any;
25
+ focusOutside: (event: import("akar").FocusOutsideEvent) => any;
26
+ interactOutside: (event: import("akar").PointerDownOutsideEvent | import("akar").FocusOutsideEvent) => any;
27
+ closeAutoFocus: (event: Event) => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onClose?: (() => any) | undefined;
30
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
31
+ onClosed?: (() => any) | undefined;
32
+ onOpened?: (() => any) | undefined;
33
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
34
+ onPointerDownOutside?: ((event: import("akar").PointerDownOutsideEvent) => any) | undefined;
35
+ onFocusOutside?: ((event: import("akar").FocusOutsideEvent) => any) | undefined;
36
+ onInteractOutside?: ((event: import("akar").PointerDownOutsideEvent | import("akar").FocusOutsideEvent) => any) | undefined;
37
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
38
+ }>, {
39
+ modal: boolean;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
42
+ declare const _default: typeof __VLS_export;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
48
+ //#endregion
49
+ export { _default as default };
@@ -0,0 +1,30 @@
1
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { AlertDialogDescription, useForwardProps } from "akar";
4
+ //#region src/ui/alert-dialog/alert-dialog-description.vue
5
+ const _sfc_main = /*@__PURE__*/ defineComponent({
6
+ __name: "alert-dialog-description",
7
+ props: {
8
+ asChild: { type: Boolean },
9
+ as: {},
10
+ class: { type: [
11
+ Boolean,
12
+ null,
13
+ String,
14
+ Object,
15
+ Array
16
+ ] }
17
+ },
18
+ setup(__props) {
19
+ const delegatedProps = reactiveOmit(__props, "class");
20
+ const forwardedProps = useForwardProps(delegatedProps);
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createBlock(unref(AlertDialogDescription), mergeProps({ "data-slot": "alert-dialog-description" }, unref(forwardedProps), { class: "text-sm color-text-muted" }), {
23
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
24
+ _: 3
25
+ }, 16);
26
+ };
27
+ }
28
+ });
29
+ //#endregion
30
+ export { _sfc_main as default };
@@ -0,0 +1,20 @@
1
+ import { HTMLAttributes } from "vue";
2
+ import { AlertDialogDescriptionProps } from "akar";
3
+ //#region src/ui/alert-dialog/alert-dialog-description.vue.d.ts
4
+ type __VLS_Props = AlertDialogDescriptionProps & {
5
+ class?: HTMLAttributes['class'];
6
+ };
7
+ declare var __VLS_8: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_8) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //#endregion
20
+ export { _default as default };
@@ -0,0 +1,14 @@
1
+ import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.mjs";
2
+ import { createElementBlock, openBlock, renderSlot } from "vue";
3
+ //#region src/ui/alert-dialog/alert-dialog-footer.vue
4
+ const _sfc_main = {};
5
+ const _hoisted_1 = {
6
+ "data-slot": "alert-dialog-footer",
7
+ class: "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end"
8
+ };
9
+ function _sfc_render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]);
11
+ }
12
+ var alert_dialog_footer_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
+ //#endregion
14
+ export { alert_dialog_footer_default as default };
@@ -0,0 +1,15 @@
1
+ //#region src/ui/alert-dialog/alert-dialog-footer.vue.d.ts
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
14
+ //#endregion
15
+ export { _default as default };
@@ -0,0 +1,14 @@
1
+ import export_helper_default from "../../_virtual/_/plugin-vue/export-helper.mjs";
2
+ import { createElementBlock, openBlock, renderSlot } from "vue";
3
+ //#region src/ui/alert-dialog/alert-dialog-header.vue
4
+ const _sfc_main = {};
5
+ const _hoisted_1 = {
6
+ "data-slot": "alert-dialog-header",
7
+ class: "text-center flex flex-col gap-2 sm:text-left"
8
+ };
9
+ function _sfc_render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]);
11
+ }
12
+ var alert_dialog_header_default = /*#__PURE__*/ export_helper_default(_sfc_main, [["render", _sfc_render]]);
13
+ //#endregion
14
+ export { alert_dialog_header_default as default };
@@ -0,0 +1,15 @@
1
+ //#region src/ui/alert-dialog/alert-dialog-header.vue.d.ts
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
14
+ //#endregion
15
+ export { _default as default };
@@ -0,0 +1,29 @@
1
+ import { createElementBlock, defineComponent, normalizeStyle, openBlock } from "vue";
2
+ import { useScrollLock } from "@vinicunca/taman-core/composables";
3
+ //#region src/ui/alert-dialog/alert-dialog-overlay.vue
4
+ const _hoisted_1 = ["data-state"];
5
+ const _sfc_main = /*@__PURE__*/ defineComponent({
6
+ __name: "alert-dialog-overlay",
7
+ props: {
8
+ open: { type: Boolean },
9
+ overlayBlur: {},
10
+ position: { default: "fixed" },
11
+ zIndex: {}
12
+ },
13
+ setup(__props) {
14
+ useScrollLock();
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createElementBlock("div", {
17
+ "data-state": __props.open ? "open" : "closed",
18
+ style: normalizeStyle({
19
+ ...__props.zIndex ? { zIndex: __props.zIndex } : {},
20
+ position: __props.position,
21
+ backdropFilter: __props.overlayBlur && __props.overlayBlur > 0 ? `blur(${__props.overlayBlur}px)` : "none"
22
+ }),
23
+ class: "bg-background-elevated/75 inset-0 fixed z-popup isolate data-[state=closed]:(animate-out fade-out-0) data-[state=open]:(animate-in fade-in-0) pohon:animate-duration-280"
24
+ }, null, 12, _hoisted_1);
25
+ };
26
+ }
27
+ });
28
+ //#endregion
29
+ export { _sfc_main as default };
@@ -0,0 +1,23 @@
1
+ import { createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { AlertDialogRoot, useForwardPropsEmits } from "akar";
3
+ //#region src/ui/alert-dialog/alert-dialog-root.vue
4
+ const _sfc_main = /*@__PURE__*/ defineComponent({
5
+ __name: "alert-dialog-root",
6
+ props: {
7
+ open: { type: Boolean },
8
+ defaultOpen: { type: Boolean },
9
+ unmountOnHide: { type: Boolean }
10
+ },
11
+ emits: ["update:open"],
12
+ setup(__props, { emit: __emit }) {
13
+ const forwarded = useForwardPropsEmits(__props, __emit);
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createBlock(unref(AlertDialogRoot), mergeProps({ "data-slot": "alert-dialog" }, unref(forwarded)), {
16
+ default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
17
+ _: 3
18
+ }, 16);
19
+ };
20
+ }
21
+ });
22
+ //#endregion
23
+ export { _sfc_main as default };
@@ -0,0 +1,23 @@
1
+ import { AlertDialogProps } from "akar";
2
+ //#region src/ui/alert-dialog/alert-dialog-root.vue.d.ts
3
+ declare var __VLS_8: {
4
+ open: boolean;
5
+ close: () => void;
6
+ };
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<AlertDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:open": (value: boolean) => any;
12
+ }, string, import("vue").PublicProps, Readonly<AlertDialogProps> & Readonly<{
13
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
22
+ //#endregion
23
+ export { _default as default };
@@ -0,0 +1,30 @@
1
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { reactiveOmit } from "@vueuse/core";
3
+ import { AlertDialogTitle } from "akar";
4
+ //#region src/ui/alert-dialog/alert-dialog-title.vue
5
+ const _sfc_main = /*@__PURE__*/ defineComponent({
6
+ __name: "alert-dialog-title",
7
+ props: {
8
+ asChild: { type: Boolean },
9
+ as: {},
10
+ class: { type: [
11
+ Boolean,
12
+ null,
13
+ String,
14
+ Object,
15
+ Array
16
+ ] }
17
+ },
18
+ setup(__props) {
19
+ const props = __props;
20
+ const delegatedProps = reactiveOmit(props, "class");
21
+ return (_ctx, _cache) => {
22
+ return openBlock(), createBlock(unref(AlertDialogTitle), mergeProps({ "data-slot": "alert-dialog-title" }, unref(delegatedProps), { class: ["text-lg font-600", [props.class]] }), {
23
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
24
+ _: 3
25
+ }, 16, ["class"]);
26
+ };
27
+ }
28
+ });
29
+ //#endregion
30
+ export { _sfc_main as default };
@@ -0,0 +1,20 @@
1
+ import { HTMLAttributes } from "vue";
2
+ import { AlertDialogTitleProps } from "akar";
3
+ //#region src/ui/alert-dialog/alert-dialog-title.vue.d.ts
4
+ type __VLS_Props = AlertDialogTitleProps & {
5
+ class?: HTMLAttributes['class'];
6
+ };
7
+ declare var __VLS_8: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_8) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
19
+ //#endregion
20
+ export { _default as default };
@@ -0,0 +1,21 @@
1
+ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
+ import { AlertDialogTrigger } from "akar";
3
+ //#region src/ui/alert-dialog/alert-dialog-trigger.vue
4
+ const _sfc_main = /*@__PURE__*/ defineComponent({
5
+ __name: "alert-dialog-trigger",
6
+ props: {
7
+ asChild: { type: Boolean },
8
+ as: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ return (_ctx, _cache) => {
13
+ return openBlock(), createBlock(unref(AlertDialogTrigger), mergeProps({ "data-slot": "alert-dialog-trigger" }, props), {
14
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
15
+ _: 3
16
+ }, 16);
17
+ };
18
+ }
19
+ });
20
+ //#endregion
21
+ export { _sfc_main as default };
@@ -0,0 +1,16 @@
1
+ import { AlertDialogTriggerProps } from "akar";
2
+ //#region src/ui/alert-dialog/alert-dialog-trigger.vue.d.ts
3
+ declare var __VLS_8: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_8) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<AlertDialogTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AlertDialogTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
15
+ //#endregion
16
+ export { _default as default };
@@ -0,0 +1,10 @@
1
+ import _default from "./alert-dialog-action.vue.js";
2
+ import _default$1 from "./alert-dialog-cancel.vue.js";
3
+ import _default$2 from "./alert-dialog-content.vue.js";
4
+ import _default$3 from "./alert-dialog-description.vue.js";
5
+ import _default$4 from "./alert-dialog-footer.vue.js";
6
+ import _default$5 from "./alert-dialog-header.vue.js";
7
+ import _default$6 from "./alert-dialog-root.vue.js";
8
+ import _default$7 from "./alert-dialog-title.vue.js";
9
+ import _default$8 from "./alert-dialog-trigger.vue.js";
10
+ export { _default$6 as AlertDialog, _default as AlertDialogAction, _default$1 as AlertDialogCancel, _default$2 as AlertDialogContent, _default$3 as AlertDialogDescription, _default$4 as AlertDialogFooter, _default$5 as AlertDialogHeader, _default$7 as AlertDialogTitle, _default$8 as AlertDialogTrigger };
@@ -0,0 +1,10 @@
1
+ import _sfc_main from "./alert-dialog-action.mjs";
2
+ import _sfc_main$1 from "./alert-dialog-cancel.mjs";
3
+ import _sfc_main$2 from "./alert-dialog-content.mjs";
4
+ import _sfc_main$3 from "./alert-dialog-description.mjs";
5
+ import alert_dialog_footer_default from "./alert-dialog-footer.mjs";
6
+ import alert_dialog_header_default from "./alert-dialog-header.mjs";
7
+ import _sfc_main$4 from "./alert-dialog-root.mjs";
8
+ import _sfc_main$5 from "./alert-dialog-title.mjs";
9
+ import _sfc_main$6 from "./alert-dialog-trigger.mjs";
10
+ export { _sfc_main$4 as AlertDialog, _sfc_main as AlertDialogAction, _sfc_main$1 as AlertDialogCancel, _sfc_main$2 as AlertDialogContent, _sfc_main$3 as AlertDialogDescription, alert_dialog_footer_default as AlertDialogFooter, alert_dialog_header_default as AlertDialogHeader, _sfc_main$5 as AlertDialogTitle, _sfc_main$6 as AlertDialogTrigger };