@vinicunca/taman-ui 0.1.3 → 0.2.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 (242) hide show
  1. package/dist/_virtual/_/plugin-vue/export-helper.mjs +1 -2
  2. package/dist/components/auth/taman-auth-form.mjs +1 -2
  3. package/dist/components/auth/taman-auth-form.vue.d.ts +0 -2
  4. package/dist/components/back-to-top/taman-back-to-top.mjs +1 -2
  5. package/dist/components/back-to-top/taman-back-to-top.vue.d.ts +0 -2
  6. package/dist/components/button/check-group-selection.mjs +1 -2
  7. package/dist/components/button/taman-button-check-group.mjs +1 -2
  8. package/dist/components/button/taman-button-check-group.types.d.ts +1 -3
  9. package/dist/components/button/taman-button-check-group.vue.d.ts +0 -2
  10. package/dist/components/button/taman-button-icon.mjs +1 -2
  11. package/dist/components/button/taman-button-icon.vue.d.ts +0 -2
  12. package/dist/components/descriptions/taman-description-cell.mjs +1 -2
  13. package/dist/components/descriptions/taman-description-item.mjs +1 -2
  14. package/dist/components/descriptions/taman-description-item.vue.d.ts +0 -2
  15. package/dist/components/descriptions/taman-description-row.mjs +1 -2
  16. package/dist/components/descriptions/taman-description.mjs +1 -2
  17. package/dist/components/descriptions/taman-description.types.d.ts +1 -3
  18. package/dist/components/descriptions/taman-description.vue.d.ts +7 -7
  19. package/dist/components/descriptions/use-taman-description.mjs +1 -2
  20. package/dist/components/file-upload/taman-file-upload.mjs +2 -3
  21. package/dist/components/file-upload/taman-file-upload.types.d.ts +1 -3
  22. package/dist/components/file-upload/taman-file-upload.vue.d.ts +0 -2
  23. package/dist/components/full-screen/full-screen.mjs +1 -2
  24. package/dist/components/full-screen/full-screen.vue.d.ts +0 -2
  25. package/dist/components/icon/index.d.ts +1 -1
  26. package/dist/components/icon/index.mjs +1 -1
  27. package/dist/components/icon/{icon.mjs → taman-icon.mjs} +2 -3
  28. package/dist/components/icon/{icon.vue.d.ts → taman-icon.vue.d.ts} +0 -2
  29. package/dist/components/index.d.ts +1 -1
  30. package/dist/components/index.mjs +10 -10
  31. package/dist/components/input/password-strength.d.ts +1 -3
  32. package/dist/components/input/password-strength.mjs +1 -2
  33. package/dist/components/input/taman-input-currency.mjs +1 -2
  34. package/dist/components/input/taman-input-currency.types.d.ts +1 -3
  35. package/dist/components/input/taman-input-currency.vue.d.ts +0 -2
  36. package/dist/components/input/taman-input-password.mjs +1 -2
  37. package/dist/components/input/taman-input-password.vue.d.ts +0 -2
  38. package/dist/components/input-date/format-calendar-input-value.mjs +1 -2
  39. package/dist/components/input-date/taman-input-date.mjs +1 -2
  40. package/dist/components/input-date/taman-input-date.types.d.ts +1 -3
  41. package/dist/components/input-date/taman-input-date.vue.d.ts +0 -2
  42. package/dist/components/loading/index.d.ts +1 -1
  43. package/dist/components/loading/taman-loading.mjs +1 -2
  44. package/dist/components/loading/taman-loading.vue.d.ts +5 -5
  45. package/dist/components/loading/types.d.ts +1 -3
  46. package/dist/components/logo/taman-logo.mjs +1 -2
  47. package/dist/components/logo/taman-logo.vue.d.ts +5 -5
  48. package/dist/components/render-content/render-content.mjs +1 -2
  49. package/dist/components/render-content/render-content.vue.d.ts +0 -2
  50. package/dist/components/scrollbar/scrollbar.mjs +1 -2
  51. package/dist/components/scrollbar/scrollbar.vue.d.ts +5 -5
  52. package/dist/form/components/form-actions.mjs +5 -5
  53. package/dist/form/components/form-field-array.mjs +3 -4
  54. package/dist/form/components/form-field-array.types.d.ts +1 -3
  55. package/dist/form/form-render/form-render-field-collapsible.mjs +1 -2
  56. package/dist/form/form-render/form-render-field-control.mjs +1 -2
  57. package/dist/form/form-render/form-render-form-field.mjs +1 -2
  58. package/dist/form/form-render/form-render-form-label.mjs +5 -6
  59. package/dist/form/form-render/form-render-form.mjs +4 -5
  60. package/dist/form/form-render/form-render-group.mjs +4 -5
  61. package/dist/form/form-render/form-render.context.mjs +1 -2
  62. package/dist/form/form-render/form-render.dependencies.mjs +1 -2
  63. package/dist/form/form-render/form-render.helper.mjs +1 -2
  64. package/dist/form/form-render/form-render.schema.mjs +1 -2
  65. package/dist/form/form-render/index.mjs +1 -1
  66. package/dist/form/form.api.d.ts +0 -2
  67. package/dist/form/form.api.mjs +2 -3
  68. package/dist/form/form.built-ins.d.ts +1 -3
  69. package/dist/form/form.built-ins.mjs +1 -2
  70. package/dist/form/form.codec.d.ts +0 -2
  71. package/dist/form/form.codec.mjs +1 -2
  72. package/dist/form/form.config.d.ts +1 -3
  73. package/dist/form/form.config.mjs +2 -3
  74. package/dist/form/form.empty-value.d.ts +1 -3
  75. package/dist/form/form.empty-value.mjs +1 -2
  76. package/dist/form/form.field-name.mjs +1 -2
  77. package/dist/form/form.rule-registry.mjs +1 -2
  78. package/dist/form/form.runtime-field.mjs +3 -4
  79. package/dist/form/form.runtime.mjs +1 -2
  80. package/dist/form/form.schema-defaults.mjs +1 -2
  81. package/dist/form/form.types.d.ts +0 -2
  82. package/dist/form/form.use-delayed-flag.mjs +1 -2
  83. package/dist/form/form.use-form-context.mjs +1 -2
  84. package/dist/form/form.use-taman-form.d.ts +0 -2
  85. package/dist/form/form.use-taman-form.mjs +1 -2
  86. package/dist/form/index.d.ts +1 -1
  87. package/dist/form/index.mjs +1 -1
  88. package/dist/form/taman-use-form.mjs +4 -5
  89. package/dist/index.d.ts +1 -1
  90. package/dist/index.mjs +3 -3
  91. package/dist/layout/components/taman-core-button-collapse.mjs +1 -2
  92. package/dist/layout/components/taman-core-button-fixed.mjs +1 -2
  93. package/dist/layout/components/taman-core-layout-content.mjs +1 -2
  94. package/dist/layout/components/taman-core-layout-footer.mjs +1 -2
  95. package/dist/layout/components/taman-core-layout-header.mjs +1 -2
  96. package/dist/layout/components/taman-core-layout-sidebar.mjs +1 -2
  97. package/dist/layout/components/taman-core-layout-tabbar.mjs +1 -2
  98. package/dist/layout/composables/use-layout.mjs +1 -2
  99. package/dist/layout/composables/use-sidebar-drag.mjs +1 -2
  100. package/dist/layout/header-scroll-state.mjs +1 -2
  101. package/dist/layout/taman-core-layout.d.ts +0 -2
  102. package/dist/layout/taman-core-layout.mjs +1 -2
  103. package/dist/layout/taman-core-layout.vue.d.ts +32 -27
  104. package/dist/menu/components/collapse-transition.mjs +1 -2
  105. package/dist/menu/components/index.mjs +3 -3
  106. package/dist/menu/components/normal-menu/normal-menu.d.ts +0 -2
  107. package/dist/menu/components/normal-menu/normal-menu.mjs +2 -3
  108. package/dist/menu/components/normal-menu/normal-menu.vue.d.ts +0 -2
  109. package/dist/menu/components/taman-menu-badge-dot.mjs +1 -2
  110. package/dist/menu/components/taman-menu-badge.mjs +1 -2
  111. package/dist/menu/components/taman-menu-badge.vue.d.ts +0 -2
  112. package/dist/menu/components/taman-menu-item.mjs +4 -5
  113. package/dist/menu/components/taman-menu-root.mjs +10 -10
  114. package/dist/menu/components/taman-menu-sub-menu-content.mjs +2 -3
  115. package/dist/menu/components/taman-menu-sub-menu.mjs +3 -4
  116. package/dist/menu/composables/use-menu-context.mjs +1 -2
  117. package/dist/menu/composables/use-menu-scroll.mjs +1 -2
  118. package/dist/menu/composables/use-menu.mjs +1 -2
  119. package/dist/menu/menu.constants.mjs +1 -2
  120. package/dist/menu/menu.types.d.ts +0 -2
  121. package/dist/menu/menu.utils.mjs +1 -2
  122. package/dist/menu/taman-menu.mjs +1 -2
  123. package/dist/menu/taman-menu.vue.d.ts +0 -2
  124. package/dist/menu/taman-sub-menu.mjs +1 -2
  125. package/dist/popup/alert/alert-builder.d.ts +1 -3
  126. package/dist/popup/alert/alert-builder.mjs +1 -2
  127. package/dist/popup/alert/alert-overlay.mjs +6 -4
  128. package/dist/popup/alert/alert.d.ts +1 -3
  129. package/dist/popup/alert/alert.mjs +1 -2
  130. package/dist/popup/alert/alert.vue.d.ts +0 -2
  131. package/dist/popup/alert/alert2.mjs +54 -61
  132. package/dist/popup/alert/index.mjs +1 -1
  133. package/dist/popup/dialog/dialog.api.d.ts +1 -3
  134. package/dist/popup/dialog/dialog.api.mjs +1 -2
  135. package/dist/popup/dialog/dialog.mjs +43 -33
  136. package/dist/popup/dialog/dialog.types.d.ts +0 -2
  137. package/dist/popup/dialog/dialog.vue.d.ts +25 -25
  138. package/dist/popup/dialog/use-dialog-draggable.mjs +1 -2
  139. package/dist/popup/dialog/use-taman-dialog.d.ts +0 -2
  140. package/dist/popup/dialog/use-taman-dialog.mjs +2 -3
  141. package/dist/popup/drawer/drawer.api.d.ts +1 -3
  142. package/dist/popup/drawer/drawer.api.mjs +1 -2
  143. package/dist/popup/drawer/drawer.mjs +47 -32
  144. package/dist/popup/drawer/drawer.types.d.ts +0 -2
  145. package/dist/popup/drawer/drawer.vue.d.ts +27 -27
  146. package/dist/popup/drawer/use-taman-drawer.d.ts +0 -2
  147. package/dist/popup/drawer/use-taman-drawer.mjs +2 -3
  148. package/dist/tabs/components/taman-tabs.mjs +2 -3
  149. package/dist/tabs/components/widgets/tool-more.mjs +1 -2
  150. package/dist/tabs/components/widgets/tool-more.vue.d.ts +0 -2
  151. package/dist/tabs/components/widgets/tool-refresh.mjs +1 -2
  152. package/dist/tabs/components/widgets/tool-refresh.vue.d.ts +0 -2
  153. package/dist/tabs/components/widgets/tool-screen.mjs +1 -2
  154. package/dist/tabs/components/widgets/tool-screen.vue.d.ts +0 -2
  155. package/dist/tabs/strict-context-menu.d.ts +0 -2
  156. package/dist/tabs/tabs.types.d.ts +1 -3
  157. package/dist/tabs/taman-tabs-view.mjs +1 -2
  158. package/dist/tabs/taman-tabs-view.vue.d.ts +0 -2
  159. package/dist/tabs/use-tabs-drag.mjs +1 -2
  160. package/dist/tabs/use-tabs-view-scroll.mjs +1 -2
  161. package/dist/ui/alert-dialog/alert-dialog-action.mjs +1 -2
  162. package/dist/ui/alert-dialog/alert-dialog-action.vue.d.ts +5 -5
  163. package/dist/ui/alert-dialog/alert-dialog-cancel.mjs +1 -2
  164. package/dist/ui/alert-dialog/alert-dialog-cancel.vue.d.ts +5 -5
  165. package/dist/ui/alert-dialog/alert-dialog-content.mjs +1 -2
  166. package/dist/ui/alert-dialog/alert-dialog-content.vue.d.ts +5 -5
  167. package/dist/ui/alert-dialog/alert-dialog-description.mjs +1 -2
  168. package/dist/ui/alert-dialog/alert-dialog-description.vue.d.ts +5 -5
  169. package/dist/ui/alert-dialog/alert-dialog-footer.mjs +1 -2
  170. package/dist/ui/alert-dialog/alert-dialog-footer.vue.d.ts +5 -5
  171. package/dist/ui/alert-dialog/alert-dialog-header.mjs +1 -2
  172. package/dist/ui/alert-dialog/alert-dialog-header.vue.d.ts +5 -5
  173. package/dist/ui/alert-dialog/alert-dialog-overlay.mjs +1 -2
  174. package/dist/ui/alert-dialog/alert-dialog-root.mjs +1 -2
  175. package/dist/ui/alert-dialog/alert-dialog-root.vue.d.ts +8 -8
  176. package/dist/ui/alert-dialog/alert-dialog-title.mjs +1 -2
  177. package/dist/ui/alert-dialog/alert-dialog-title.vue.d.ts +5 -5
  178. package/dist/ui/alert-dialog/alert-dialog-trigger.mjs +1 -2
  179. package/dist/ui/alert-dialog/alert-dialog-trigger.vue.d.ts +5 -5
  180. package/dist/ui/dialog/dialog-close.mjs +1 -2
  181. package/dist/ui/dialog/dialog-close.vue.d.ts +5 -5
  182. package/dist/ui/dialog/dialog-content.mjs +10 -6
  183. package/dist/ui/dialog/dialog-content.vue.d.ts +7 -5
  184. package/dist/ui/dialog/dialog-description.mjs +1 -2
  185. package/dist/ui/dialog/dialog-description.vue.d.ts +5 -5
  186. package/dist/ui/dialog/dialog-footer.mjs +1 -2
  187. package/dist/ui/dialog/dialog-footer.vue.d.ts +5 -5
  188. package/dist/ui/dialog/dialog-header.mjs +1 -2
  189. package/dist/ui/dialog/dialog-header.vue.d.ts +5 -5
  190. package/dist/ui/dialog/dialog-overlay.mjs +1 -2
  191. package/dist/ui/dialog/dialog-overlay.vue.d.ts +0 -2
  192. package/dist/ui/dialog/dialog-root.mjs +1 -2
  193. package/dist/ui/dialog/dialog-root.vue.d.ts +8 -8
  194. package/dist/ui/dialog/dialog-title.mjs +1 -2
  195. package/dist/ui/dialog/dialog-title.vue.d.ts +5 -5
  196. package/dist/ui/dialog/dialog-trigger.mjs +1 -2
  197. package/dist/ui/dialog/dialog-trigger.vue.d.ts +5 -5
  198. package/dist/ui/dialog/index.mjs +4 -4
  199. package/dist/ui/dialog/use-dialog-state-events.mjs +1 -2
  200. package/dist/ui/form/form-control.mjs +1 -2
  201. package/dist/ui/form/form-control.vue.d.ts +5 -5
  202. package/dist/ui/form/form-description.mjs +1 -2
  203. package/dist/ui/form/form-description.vue.d.ts +5 -5
  204. package/dist/ui/form/form-field.mjs +1 -2
  205. package/dist/ui/form/form-field.vue.d.ts +5 -5
  206. package/dist/ui/form/form-item.mjs +1 -2
  207. package/dist/ui/form/form-item.vue.d.ts +5 -5
  208. package/dist/ui/form/form-label.mjs +3 -4
  209. package/dist/ui/form/form-label.vue.d.ts +5 -5
  210. package/dist/ui/form/form-message.mjs +1 -2
  211. package/dist/ui/form/form-message.vue.d.ts +0 -2
  212. package/dist/ui/form/injection-keys.d.ts +1 -3
  213. package/dist/ui/form/injection-keys.mjs +1 -2
  214. package/dist/ui/form/use-form-field.mjs +1 -2
  215. package/dist/ui/index.mjs +2 -2
  216. package/dist/ui/label/label.mjs +1 -2
  217. package/dist/ui/label/label.vue.d.ts +5 -5
  218. package/dist/ui/scroll-area/index.mjs +3 -3
  219. package/dist/ui/scroll-area/scroll-area.mjs +1 -2
  220. package/dist/ui/scroll-area/scroll-area.vue.d.ts +5 -5
  221. package/dist/ui/scroll-area/scroll-bar.mjs +1 -2
  222. package/dist/ui/scroll-area/scroll-bar.vue.d.ts +0 -2
  223. package/dist/ui/sheet/sheet-close.mjs +1 -2
  224. package/dist/ui/sheet/sheet-close.vue.d.ts +5 -5
  225. package/dist/ui/sheet/sheet-content.mjs +9 -5
  226. package/dist/ui/sheet/sheet-content.vue.d.ts +7 -5
  227. package/dist/ui/sheet/sheet-description.mjs +1 -2
  228. package/dist/ui/sheet/sheet-description.vue.d.ts +5 -5
  229. package/dist/ui/sheet/sheet-footer.mjs +1 -2
  230. package/dist/ui/sheet/sheet-footer.vue.d.ts +5 -5
  231. package/dist/ui/sheet/sheet-header.mjs +1 -2
  232. package/dist/ui/sheet/sheet-header.vue.d.ts +5 -5
  233. package/dist/ui/sheet/sheet-overlay.mjs +1 -2
  234. package/dist/ui/sheet/sheet-root.mjs +1 -2
  235. package/dist/ui/sheet/sheet-root.vue.d.ts +8 -8
  236. package/dist/ui/sheet/sheet-title.mjs +1 -2
  237. package/dist/ui/sheet/sheet-title.vue.d.ts +5 -5
  238. package/dist/ui/sheet/sheet.variants.d.ts +1 -3
  239. package/dist/ui/sheet/sheet.variants.mjs +1 -2
  240. package/dist/unocss/content.d.ts +1 -3
  241. package/dist/unocss/content.mjs +1 -2
  242. package/package.json +8 -8
@@ -1,12 +1,12 @@
1
- import { TAMAN_MENU_ROOT_NAME, TAMAN_MENU_SUB_MENU_NAME } from "../menu.constants.mjs";
1
+ import "../composables/index.mjs";
2
2
  import { useMenu, useMenuStyle } from "../composables/use-menu.mjs";
3
3
  import { createSubMenuContext, useMenuContext, useSubMenuContext } from "../composables/use-menu-context.mjs";
4
- import "../composables/index.mjs";
4
+ import { TAMAN_MENU_ROOT_NAME, TAMAN_MENU_SUB_MENU_NAME } from "../menu.constants.mjs";
5
5
  import _sfc_main$1 from "./collapse-transition.mjs";
6
6
  import _sfc_main$2 from "./taman-menu-sub-menu-content.mjs";
7
7
  import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, reactive, ref, renderSlot, unref, vShow, withCtx, withDirectives, withModifiers } from "vue";
8
8
  import PPopover from "pohon-ui/components/Popover.vue";
9
- //#region src/menu/components/taman-menu-sub-menu.vue
9
+ // src/menu/components/taman-menu-sub-menu.vue
10
10
  const _sfc_main = /*@__PURE__*/ defineComponent({
11
11
  name: TAMAN_MENU_SUB_MENU_NAME,
12
12
  __name: "taman-menu-sub-menu",
@@ -212,5 +212,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
212
212
  };
213
213
  }
214
214
  });
215
- //#endregion
216
215
  export { _sfc_main as default };
@@ -1,7 +1,7 @@
1
1
  import { TAMAN_MENU_ROOT_NAME, TAMAN_MENU_SUB_MENU_NAME } from "../menu.constants.mjs";
2
2
  import { findComponentUpward } from "../menu.utils.mjs";
3
3
  import { getCurrentInstance, inject, provide } from "vue";
4
- //#region src/menu/composables/use-menu-context.ts
4
+ // src/menu/composables/use-menu-context.ts
5
5
  const menuContextKey = Symbol("menuContext");
6
6
  /**
7
7
  * Provide menu context
@@ -32,5 +32,4 @@ function useSubMenuContext() {
32
32
  const parentMenu = findComponentUpward(instance, [TAMAN_MENU_ROOT_NAME, TAMAN_MENU_SUB_MENU_NAME]);
33
33
  return inject(`subMenu:${parentMenu?.uid}`);
34
34
  }
35
- //#endregion
36
35
  export { createMenuContext, createSubMenuContext, useMenuContext, useSubMenuContext };
@@ -1,6 +1,6 @@
1
1
  import { watch } from "vue";
2
2
  import { useDebounceFn } from "@vueuse/core";
3
- //#region src/menu/composables/use-menu-scroll.ts
3
+ // src/menu/composables/use-menu-scroll.ts
4
4
  function useMenuScroll(activePath, options = {}) {
5
5
  const { enable = true, delay = 320 } = options;
6
6
  function scrollToActiveItem() {
@@ -19,5 +19,4 @@ function useMenuScroll(activePath, options = {}) {
19
19
  });
20
20
  return { scrollToActiveItem };
21
21
  }
22
- //#endregion
23
22
  export { useMenuScroll };
@@ -1,7 +1,7 @@
1
1
  import { TAMAN_MENU_ROOT_NAME, TAMAN_MENU_SUB_MENU_NAME } from "../menu.constants.mjs";
2
2
  import { findComponentUpward } from "../menu.utils.mjs";
3
3
  import { computed, getCurrentInstance } from "vue";
4
- //#region src/menu/composables/use-menu.ts
4
+ // src/menu/composables/use-menu.ts
5
5
  function useMenu() {
6
6
  const instance = getCurrentInstance();
7
7
  if (!instance) throw new Error("instance is required");
@@ -29,5 +29,4 @@ function useMenuStyle(menu) {
29
29
  return { "--menu-level": menu ? menu?.level ?? 1 : 0 };
30
30
  });
31
31
  }
32
- //#endregion
33
32
  export { useMenu, useMenuStyle };
@@ -1,5 +1,4 @@
1
- //#region src/menu/menu.constants.ts
1
+ // src/menu/menu.constants.ts
2
2
  const TAMAN_MENU_ROOT_NAME = "TamanMenuRoot";
3
3
  const TAMAN_MENU_SUB_MENU_NAME = "TamanMenuSubMenu";
4
- //#endregion
5
4
  export { TAMAN_MENU_ROOT_NAME, TAMAN_MENU_SUB_MENU_NAME };
@@ -1,6 +1,5 @@
1
1
  import { Component, Ref } from "vue";
2
2
  import { Recordable, TamanMenuRecordBadgeRaw, TamanThemeModeType } from "@vinicunca/taman-core/typings";
3
- //#region src/menu/menu.types.d.ts
4
3
  interface MenuProps {
5
4
  accordion?: boolean;
6
5
  collapse?: boolean;
@@ -59,5 +58,4 @@ interface SubMenuProvider {
59
58
  mouseInChild: Ref<boolean>;
60
59
  removeSubMenu: (item: MenuItemRegistered) => void;
61
60
  }
62
- //#endregion
63
61
  export type { MenuItemClicked, MenuItemProps, MenuItemRegistered, MenuProps, MenuProvider, SubMenuProps, SubMenuProvider };
@@ -1,5 +1,5 @@
1
1
  import { isVNode } from "vue";
2
- //#region src/menu/menu.utils.ts
2
+ // src/menu/menu.utils.ts
3
3
  /**
4
4
  * Find the parent component upward
5
5
  * @param instance
@@ -23,5 +23,4 @@ function flattedChildren(children) {
23
23
  });
24
24
  return result;
25
25
  }
26
- //#endregion
27
26
  export { findComponentUpward, flattedChildren };
@@ -3,7 +3,7 @@ import "./components/index.mjs";
3
3
  import _sfc_main$2 from "./taman-sub-menu.mjs";
4
4
  import { Fragment, createBlock, createElementBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, unref, withCtx } from "vue";
5
5
  import { useForwardProps } from "@vinicunca/taman-core/composables";
6
- //#region src/menu/taman-menu.vue
6
+ // src/menu/taman-menu.vue
7
7
  const _sfc_main = /*@__PURE__*/ defineComponent({
8
8
  name: "TamanMenu",
9
9
  __name: "taman-menu",
@@ -37,5 +37,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
37
37
  };
38
38
  }
39
39
  });
40
- //#endregion
41
40
  export { _sfc_main as default };
@@ -1,6 +1,5 @@
1
1
  import { MenuProps } from "./menu.types.js";
2
2
  import { TamanMenuRecordRaw } from "@vinicunca/taman-core/typings";
3
- //#region src/menu/taman-menu.vue.d.ts
4
3
  interface Props extends MenuProps {
5
4
  menus: Array<TamanMenuRecordRaw>;
6
5
  }
@@ -8,5 +7,4 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
8
7
  collapse: boolean;
9
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
9
  declare const _default: typeof __VLS_export;
11
- //#endregion
12
10
  export { _default as default };
@@ -4,7 +4,7 @@ import _sfc_main$3 from "./components/taman-menu-sub-menu.mjs";
4
4
  import "./components/index.mjs";
5
5
  import "./taman-sub-menu.mjs";
6
6
  import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
7
- //#region src/menu/taman-sub-menu.vue
7
+ // src/menu/taman-sub-menu.vue
8
8
  const _sfc_main = /*@__PURE__*/ defineComponent({
9
9
  name: "TamanSubMenu",
10
10
  __name: "taman-sub-menu",
@@ -71,5 +71,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
71
71
  };
72
72
  }
73
73
  });
74
- //#endregion
75
74
  export { _sfc_main as default };
@@ -1,7 +1,5 @@
1
1
  import { AlertPromptProps, TamanAlertProps } from "./alert.js";
2
- //#region src/popup/alert/alert-builder.d.ts
3
2
  export declare function tamanAlert(options: TamanAlertProps): Promise<void>;
4
3
  export declare function tamanConfirm(options: TamanAlertProps): Promise<void>;
5
4
  export declare function tamanPrompt<T = any>(options: AlertPromptProps<T>): Promise<T | undefined>;
6
- export declare function clearAllAlerts(): void;
7
- //#endregion
5
+ export declare function clearAllAlerts(): void;
@@ -6,7 +6,7 @@ import { isFunctionType } from "@vinicunca/taman-core/utils";
6
6
  import { useSimpleLocale } from "@vinicunca/taman-core/composables";
7
7
  import PInput from "pohon-ui/components/Input.vue";
8
8
  import { useOverlay } from "pohon-ui/composables";
9
- //#region src/popup/alert/alert-builder.ts
9
+ // src/popup/alert/alert-builder.ts
10
10
  const alertIds = /* @__PURE__ */ new Set();
11
11
  const { $t } = useSimpleLocale();
12
12
  function tamanAlert(options) {
@@ -94,5 +94,4 @@ function clearAllAlerts() {
94
94
  alertIds.delete(id);
95
95
  }
96
96
  }
97
- //#endregion
98
97
  export { clearAllAlerts, tamanAlert, tamanConfirm, tamanPrompt };
@@ -1,15 +1,18 @@
1
1
  import _sfc_main$1 from "./alert2.mjs";
2
2
  import { computed, createBlock, defineComponent, mergeModels, mergeProps, openBlock, useAttrs, useModel } from "vue";
3
- //#region src/popup/alert/alert-overlay.vue
3
+ // src/popup/alert/alert-overlay.vue
4
4
  const _sfc_main = /*@__PURE__*/ defineComponent({
5
5
  inheritAttrs: false,
6
6
  __name: "alert-overlay",
7
7
  props: /*@__PURE__*/ mergeModels({
8
- beforeClose: { type: Function },
8
+ beforeClose: {},
9
9
  bordered: { type: Boolean },
10
10
  buttonAlign: {},
11
11
  cancelText: {},
12
- centered: { type: Boolean },
12
+ centered: {
13
+ type: Boolean,
14
+ default: void 0
15
+ },
13
16
  confirmText: {},
14
17
  containerClass: {},
15
18
  content: {},
@@ -51,5 +54,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
51
54
  };
52
55
  }
53
56
  });
54
- //#endregion
55
57
  export { _sfc_main as default };
@@ -1,6 +1,5 @@
1
1
  import { Component, VNode, VNodeArrayChildren } from "vue";
2
2
  import { Recordable } from "@vinicunca/taman-core/typings";
3
- //#region src/popup/alert/alert.d.ts
4
3
  export type IconType = 'error' | 'info' | 'question' | 'success' | 'warning';
5
4
  export interface AlertBeforeCloseScope {
6
5
  isConfirm: boolean;
@@ -38,5 +37,4 @@ export interface AlertContext {
38
37
  doCancel: () => void;
39
38
  doConfirm: () => void;
40
39
  }
41
- export declare function useAlertContext(): AlertContext;
42
- //#endregion
40
+ export declare function useAlertContext(): AlertContext;
@@ -1,10 +1,9 @@
1
1
  import { createContext } from "../../index.mjs";
2
- //#region src/popup/alert/alert.ts
2
+ // src/popup/alert/alert.ts
3
3
  const [injectAlertContext, provideAlertContext] = createContext("TamanAlertContext");
4
4
  function useAlertContext() {
5
5
  const context = injectAlertContext();
6
6
  if (!context) throw new Error("useAlertContext must be used within an AlertProvider");
7
7
  return context;
8
8
  }
9
- //#endregion
10
9
  export { injectAlertContext, provideAlertContext, useAlertContext };
@@ -1,5 +1,4 @@
1
1
  import { TamanAlertProps } from "./alert.js";
2
- //#region src/popup/alert/alert.vue.d.ts
3
2
  type __VLS_Props = TamanAlertProps;
4
3
  type __VLS_ModelProps = {
5
4
  'open'?: boolean;
@@ -22,5 +21,4 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
22
21
  escapeKeyClose: boolean;
23
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
23
  declare const _default: typeof __VLS_export;
25
- //#endregion
26
24
  export { _default as default };
@@ -1,24 +1,23 @@
1
1
  import _sfc_main$1 from "../../components/render-content/render-content.mjs";
2
2
  import _sfc_main$2 from "../../components/button/taman-button-icon.mjs";
3
- import _sfc_main$3 from "../../components/loading/taman-loading.mjs";
4
- import _sfc_main$4 from "../../ui/alert-dialog/alert-dialog-action.mjs";
5
- import _sfc_main$5 from "../../ui/alert-dialog/alert-dialog-cancel.mjs";
6
- import _sfc_main$6 from "../../ui/alert-dialog/alert-dialog-content.mjs";
7
- import _sfc_main$7 from "../../ui/alert-dialog/alert-dialog-description.mjs";
8
- import _sfc_main$8 from "../../ui/alert-dialog/alert-dialog-root.mjs";
9
- import _sfc_main$9 from "../../ui/alert-dialog/alert-dialog-title.mjs";
3
+ import _sfc_main$3 from "../../components/icon/taman-icon.mjs";
4
+ import _sfc_main$4 from "../../components/loading/taman-loading.mjs";
5
+ import _sfc_main$5 from "../../ui/alert-dialog/alert-dialog-action.mjs";
6
+ import _sfc_main$6 from "../../ui/alert-dialog/alert-dialog-cancel.mjs";
7
+ import _sfc_main$7 from "../../ui/alert-dialog/alert-dialog-content.mjs";
8
+ import _sfc_main$8 from "../../ui/alert-dialog/alert-dialog-description.mjs";
9
+ import _sfc_main$9 from "../../ui/alert-dialog/alert-dialog-root.mjs";
10
+ import _sfc_main$10 from "../../ui/alert-dialog/alert-dialog-title.mjs";
10
11
  import "../../index.mjs";
11
12
  import { provideAlertContext } from "./alert.mjs";
12
- import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, h, mergeModels, nextTick, normalizeClass, openBlock, ref, resolveDynamicComponent, toDisplayString, unref, useModel, withCtx } from "vue";
13
+ import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, normalizeClass, openBlock, ref, toDisplayString, unref, useModel, withCtx } from "vue";
13
14
  import PButton from "pohon-ui/components/Button.vue";
14
15
  import { isString } from "@vinicunca/taman-core/utils";
15
16
  import { useOverlayZIndex, useSimpleLocale } from "@vinicunca/taman-core/composables";
16
- import PIcon from "pohon-ui/components/Icon.vue";
17
17
  import { usePreferences } from "@vinicunca/taman-core/preferences";
18
- //#region src/popup/alert/alert.vue
19
- const _hoisted_1 = { class: "flex items-center" };
18
+ // src/popup/alert/alert.vue
19
+ const _hoisted_1 = { class: "flex gap-2 items-center" };
20
20
  const _hoisted_2 = { class: "flex-auto" };
21
- const _hoisted_3 = { class: "m-4 min-h-7.5" };
22
21
  const _sfc_main = /*@__PURE__*/ defineComponent({
23
22
  __name: "alert",
24
23
  props: /*@__PURE__*/ mergeModels({
@@ -75,44 +74,34 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
75
74
  isConfirm.value = false;
76
75
  if (!props.escapeKeyClose && !globalEscapeShortcutKey.value) event.preventDefault();
77
76
  }
78
- const getIconRender = computed(() => {
79
- let iconRender = null;
80
- if (props.icon) {
81
- if (isString(props.icon)) switch (props.icon) {
82
- case "error":
83
- iconRender = h(PIcon, {
84
- name: "lucide:x-circle",
85
- class: "color-error"
86
- });
87
- break;
88
- case "info":
89
- iconRender = h(PIcon, {
90
- name: "lucide:info",
91
- class: "color-info"
92
- });
93
- break;
94
- case "question":
95
- iconRender = h(PIcon, {
96
- name: "lucide:help-circle",
97
- class: "color-info"
98
- });
99
- break;
100
- case "success":
101
- iconRender = h(PIcon, {
102
- name: "lucide:check-circle",
103
- class: "color-success"
104
- });
105
- break;
106
- case "warning":
107
- iconRender = h(PIcon, {
108
- name: "lucide:alert-circle",
109
- class: "color-warning"
110
- });
111
- break;
112
- default: iconRender = null;
77
+ const iconData = computed(() => {
78
+ if (!props.icon) return;
79
+ if (!isString(props.icon)) return {
80
+ name: props.icon,
81
+ class: ""
82
+ };
83
+ return {
84
+ error: {
85
+ name: "lucide:x-circle",
86
+ class: "color-error"
87
+ },
88
+ info: {
89
+ name: "lucide:info",
90
+ class: "color-info"
91
+ },
92
+ question: {
93
+ name: "lucide:help-circle",
94
+ class: "color-info"
95
+ },
96
+ success: {
97
+ name: "lucide:check-circle",
98
+ class: "color-success"
99
+ },
100
+ warning: {
101
+ name: "lucide:alert-circle",
102
+ class: "color-warning"
113
103
  }
114
- } else iconRender = props.icon ?? null;
115
- return iconRender;
104
+ }[props.icon];
116
105
  });
117
106
  function doCancel() {
118
107
  handleCancel();
@@ -146,11 +135,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
146
135
  } else open.value = val;
147
136
  }
148
137
  return (_ctx, _cache) => {
149
- return openBlock(), createBlock(unref(_sfc_main$8), {
138
+ return openBlock(), createBlock(unref(_sfc_main$9), {
150
139
  open: open.value,
151
140
  "onUpdate:open": handleOpenChange
152
141
  }, {
153
- default: withCtx(() => [createVNode(unref(_sfc_main$6), {
142
+ default: withCtx(() => [createVNode(unref(_sfc_main$7), {
154
143
  open: open.value,
155
144
  centered: __props.centered,
156
145
  "overlay-blur": __props.overlayBlur,
@@ -164,12 +153,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
164
153
  onEscapeKeyDown: _cache[1] || (_cache[1] = ($event) => onEscapeKeyDown($event))
165
154
  }, {
166
155
  default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["p-3 flex-1 relative overflow-y-auto", __props.contentClass]) }, [
167
- __props.title ? (openBlock(), createBlock(unref(_sfc_main$9), { key: 0 }, {
156
+ __props.title ? (openBlock(), createBlock(unref(_sfc_main$10), { key: 0 }, {
168
157
  default: withCtx(() => [createElementVNode("div", _hoisted_1, [
169
- (openBlock(), createBlock(resolveDynamicComponent(getIconRender.value), { class: "mr-2" })),
170
- createElementVNode("span", _hoisted_2, toDisplayString(unref($t)(__props.title)), 1),
171
- __props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$5), {
158
+ props.icon ? (openBlock(), createBlock(unref(_sfc_main$3), {
172
159
  key: 0,
160
+ icon: iconData.value?.name,
161
+ class: normalizeClass(iconData.value?.class),
162
+ size: "24"
163
+ }, null, 8, ["icon", "class"])) : createCommentVNode("v-if", true),
164
+ createElementVNode("span", _hoisted_2, toDisplayString(unref($t)(__props.title)), 1),
165
+ __props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$6), {
166
+ key: 1,
173
167
  "as-child": ""
174
168
  }, {
175
169
  default: withCtx(() => [createVNode(unref(_sfc_main$2), {
@@ -182,11 +176,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
182
176
  ])]),
183
177
  _: 1
184
178
  })) : createCommentVNode("v-if", true),
185
- createVNode(unref(_sfc_main$7), null, {
186
- default: withCtx(() => [createElementVNode("div", _hoisted_3, [createVNode(unref(_sfc_main$1), {
179
+ createVNode(unref(_sfc_main$8), null, {
180
+ default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["py-4", { "px-8": props.icon }]) }, [createVNode(unref(_sfc_main$1), {
187
181
  content: __props.content,
188
182
  "render-br": ""
189
- }, null, 8, ["content"])]), loading.value && __props.contentMasking ? (openBlock(), createBlock(unref(_sfc_main$3), {
183
+ }, null, 8, ["content"])], 2), loading.value && __props.contentMasking ? (openBlock(), createBlock(unref(_sfc_main$4), {
190
184
  key: 0,
191
185
  spinning: loading.value
192
186
  }, null, 8, ["spinning"])) : createCommentVNode("v-if", true)]),
@@ -194,7 +188,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
194
188
  }),
195
189
  createElementVNode("div", { class: normalizeClass(["flex gap-x-2 items-center justify-end", `justify-${__props.buttonAlign}`]) }, [
196
190
  createVNode(unref(_sfc_main$1), { content: __props.footer }, null, 8, ["content"]),
197
- __props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$5), {
191
+ __props.showCancel ? (openBlock(), createBlock(unref(_sfc_main$6), {
198
192
  key: 0,
199
193
  "as-child": ""
200
194
  }, {
@@ -209,7 +203,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
209
203
  }, 8, ["disabled"])]),
210
204
  _: 1
211
205
  })) : createCommentVNode("v-if", true),
212
- createVNode(unref(_sfc_main$4), { "as-child": "" }, {
206
+ createVNode(unref(_sfc_main$5), { "as-child": "" }, {
213
207
  default: withCtx(() => [createVNode(PButton, {
214
208
  loading: loading.value,
215
209
  onClick: handleConfirm
@@ -234,5 +228,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
234
228
  };
235
229
  }
236
230
  });
237
- //#endregion
238
231
  export { _sfc_main as default };
@@ -1,4 +1,4 @@
1
1
  import { useAlertContext } from "./alert.mjs";
2
- import _sfc_main from "./alert2.mjs";
3
2
  import { clearAllAlerts, tamanAlert, tamanConfirm, tamanPrompt } from "./alert-builder.mjs";
3
+ import _sfc_main from "./alert2.mjs";
4
4
  export { _sfc_main as Alert, clearAllAlerts, tamanAlert, tamanConfirm, tamanPrompt, useAlertContext };
@@ -1,6 +1,5 @@
1
1
  import { DialogApiOptions, DialogState } from "./dialog.types.js";
2
2
  import { Store } from "@vinicunca/taman-core/store";
3
- //#region src/popup/dialog/dialog.api.d.ts
4
3
  export declare class DialogApi<TData = unknown> {
5
4
  sharedData: Record<'payload', TData | undefined>;
6
5
  store: Store<DialogState>;
@@ -18,5 +17,4 @@ export declare class DialogApi<TData = unknown> {
18
17
  setData(payload: TData): this;
19
18
  setState(stateOrFn: ((prev: DialogState) => Partial<DialogState>) | Partial<DialogState>): this;
20
19
  unlock(): this;
21
- }
22
- //#endregion
20
+ }
@@ -1,6 +1,6 @@
1
1
  import { bindMethods, isFunction } from "@vinicunca/taman-core/utils";
2
2
  import { Store } from "@vinicunca/taman-core/store";
3
- //#region src/popup/dialog/dialog.api.ts
3
+ // src/popup/dialog/dialog.api.ts
4
4
  var DialogApi = class {
5
5
  /** Shared data */
6
6
  sharedData = { payload: void 0 };
@@ -131,5 +131,4 @@ var DialogApi = class {
131
131
  return this.lock(false);
132
132
  }
133
133
  };
134
- //#endregion
135
134
  export { DialogApi };