@vinicunca/taman-ui 0.1.4 → 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.
@@ -22,7 +22,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
22
22
  name: {},
23
23
  icon: {
24
24
  type: [String, Boolean],
25
- default: "lucide:image"
25
+ default: "lucide:image-plus"
26
26
  },
27
27
  description: {},
28
28
  color: {},
@@ -1,2 +1,2 @@
1
- import _default from "./icon.vue.js";
1
+ import _default from "./taman-icon.vue.js";
2
2
  export { _default as TamanIcon };
@@ -1 +1 @@
1
- export { default as TamanIcon } from "./icon.mjs";
1
+ export { default as TamanIcon } from "./taman-icon.mjs";
@@ -1,11 +1,11 @@
1
1
  import { computed, createBlock, createElementBlock, defineComponent, mergeProps, openBlock } from "vue";
2
2
  import { isHttpUrl, isString } from "@vinicunca/taman-core/utils";
3
3
  import PIcon from "pohon-ui/components/Icon.vue";
4
- // src/components/icon/icon.vue
4
+ // src/components/icon/taman-icon.vue
5
5
  const _hoisted_1 = ["src"];
6
6
  const _sfc_main = /*@__PURE__*/ defineComponent({
7
7
  name: "TamanIcon",
8
- __name: "icon",
8
+ __name: "taman-icon",
9
9
  props: { icon: {} },
10
10
  setup(__props) {
11
11
  const props = __props;
@@ -13,7 +13,7 @@ import { TamanFileUploadProps } from "./file-upload/taman-file-upload.types.js";
13
13
  import _default$6 from "./file-upload/taman-file-upload.vue.js";
14
14
  import "./file-upload/index.js";
15
15
  import _default$7 from "./full-screen/full-screen.vue.js";
16
- import _default$8 from "./icon/icon.vue.js";
16
+ import _default$8 from "./icon/taman-icon.vue.js";
17
17
  import "./icon/index.js";
18
18
  import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./input/password-strength.js";
19
19
  import { TamanInputCurrencyProps } from "./input/taman-input-currency.types.js";
@@ -14,7 +14,7 @@ import _sfc_main$6 from "./file-upload/taman-file-upload.mjs";
14
14
  import "./full-screen/index.mjs";
15
15
  import _sfc_main$7 from "./full-screen/full-screen.mjs";
16
16
  import "./icon/index.mjs";
17
- import _sfc_main$8 from "./icon/icon.mjs";
17
+ import _sfc_main$8 from "./icon/taman-icon.mjs";
18
18
  import "./input/index.mjs";
19
19
  import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./input/password-strength.mjs";
20
20
  import _sfc_main$9 from "./input/taman-input-currency.mjs";
@@ -1,9 +1,10 @@
1
+ import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
2
+ import "../../components/index.mjs";
1
3
  import { injectFormProps } from "../form.use-form-context.mjs";
2
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, renderSlot, toDisplayString, toRaw, unref, useModel, watch, withCtx } from "vue";
3
5
  import PButton from "pohon-ui/components/Button.vue";
4
6
  import { isFunction, triggerWindowResize } from "@vinicunca/taman-core/utils";
5
7
  import { useSimpleLocale } from "@vinicunca/taman-core/composables";
6
- import PIcon from "pohon-ui/components/Icon.vue";
7
8
  // src/form/components/form-actions.vue
8
9
  const _hoisted_1 = ["aria-controls", "aria-expanded"];
9
10
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -137,8 +138,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
137
138
  "aria-controls": props.gridId,
138
139
  "aria-expanded": !collapsed.value,
139
140
  onClick: _cache[0] || (_cache[0] = ($event) => collapsed.value = !collapsed.value)
140
- }, [createElementVNode("span", null, toDisplayString(collapsed.value ? unref($t)("expand") : unref($t)("collapse")), 1), createVNode(PIcon, {
141
- name: "lucide:chevron-down",
141
+ }, [createElementVNode("span", null, toDisplayString(collapsed.value ? unref($t)("expand") : unref($t)("collapse")), 1), createVNode(unref(_sfc_main$1), {
142
+ icon: "lucide:chevron-down",
142
143
  class: normalizeClass(["transition-transform", { "rotate-180": !collapsed.value }])
143
144
  }, null, 8, ["class"])], 8, _hoisted_1)) : createCommentVNode("v-if", true),
144
145
  createCommentVNode(" After expand button "),
@@ -1,10 +1,10 @@
1
1
  import _sfc_main$1 from "../../components/render-content/render-content.mjs";
2
- import _sfc_main$2 from "../../ui/form/form-label.mjs";
2
+ import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
3
+ import _sfc_main$3 from "../../ui/form/form-label.mjs";
3
4
  import "../../index.mjs";
4
5
  import { createBlock, createCommentVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
5
6
  import PTooltip from "pohon-ui/components/Tooltip.vue";
6
7
  import { useForwardExpose } from "@vinicunca/taman-core/composables";
7
- import PIcon from "pohon-ui/components/Icon.vue";
8
8
  // src/form/form-render/form-render-form-label.vue
9
9
  const REQUIRED_CLASS = `after:content-['*'] after:color-error after:ml-0.5 after:order-1`;
10
10
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -25,7 +25,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
25
25
  const props = __props;
26
26
  const { forwardRef } = useForwardExpose();
27
27
  return (_ctx, _cache) => {
28
- return openBlock(), createBlock(unref(_sfc_main$2), {
28
+ return openBlock(), createBlock(unref(_sfc_main$3), {
29
29
  ref: unref(forwardRef),
30
30
  class: normalizeClass(["flex items-center", [props.class, props.required ? REQUIRED_CLASS : ""]])
31
31
  }, {
@@ -34,7 +34,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
34
34
  class: "order-2"
35
35
  }, {
36
36
  content: withCtx(() => [createVNode(unref(_sfc_main$1), { content: __props.help }, null, 8, ["content"])]),
37
- default: withCtx(() => [createVNode(PIcon, { name: "lucide:circle-question-mark" })]),
37
+ default: withCtx(() => [createVNode(unref(_sfc_main$2), { icon: "lucide:circle-question-mark" })]),
38
38
  _: 1
39
39
  })) : createCommentVNode("v-if", true)]),
40
40
  _: 3
@@ -1,8 +1,8 @@
1
1
  import _sfc_main$1 from "../../components/render-content/render-content.mjs";
2
+ import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
2
3
  import "../../index.mjs";
3
4
  import { injectRenderFormProps } from "./form-render.context.mjs";
4
5
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, resolveDynamicComponent, unref, vShow, watch, withCtx, withDirectives } from "vue";
5
- import PIcon from "pohon-ui/components/Icon.vue";
6
6
  import PCollapsible from "pohon-ui/components/Collapsible.vue";
7
7
  // src/form/form-render/form-render-group.vue
8
8
  const _hoisted_1 = { class: "form-group-header mb-2 flex flex-1 gap-2 min-h-7 items-center" };
@@ -61,9 +61,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
61
61
  default: withCtx(() => [
62
62
  _cache[1] || (_cache[1] = createElementVNode("span", { class: "rounded-full bg-primary flex-none h-3.5 w-[3px]" }, null, -1)),
63
63
  props.schema.title ? (openBlock(), createElementBlock("span", _hoisted_2, [createVNode(unref(_sfc_main$1), { content: props.schema.title }, null, 8, ["content"])])) : createCommentVNode("v-if", true),
64
- shouldCollapsible.value ? (openBlock(), createBlock(PIcon, {
64
+ shouldCollapsible.value ? (openBlock(), createBlock(unref(_sfc_main$2), {
65
65
  key: 1,
66
- name: "lucide-chevron-down",
66
+ icon: "lucide:chevron-down",
67
67
  class: normalizeClass(["color-text-muted flex-none transition-transform", [{ "rotate-180": collapseOpen.value }]])
68
68
  }, null, 8, ["class"])) : createCommentVNode("v-if", true)
69
69
  ]),
@@ -1,4 +1,4 @@
1
- import { defineComponent, h, markRaw, onUnmounted } from "vue";
1
+ import { defineComponent, h, markRaw, onUnmounted, toRaw } from "vue";
2
2
  // src/form/form.runtime-field.ts
3
3
  function isAsyncStandardSchemaValidator(validator) {
4
4
  return Boolean(validator && typeof validator === "object" && "~standard" in validator);
@@ -25,7 +25,7 @@ function createRuntimeFieldComponent(fieldComponent, registerInvalidator, onVali
25
25
  if (validators === cachedValidators && cachedWrappedValidators) return cachedWrappedValidators;
26
26
  const wrappedValidators = { ...validators };
27
27
  for (const key of asyncValidatorKeys) {
28
- const validator = validators[key];
28
+ const validator = toRaw(validators[key]);
29
29
  if (typeof validator !== "function" && !isAsyncStandardSchemaValidator(validator)) continue;
30
30
  wrappedValidators[key] = async (...args) => {
31
31
  const currentValidationRunId = ++validationRunId;
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ import _default$38 from "./components/descriptions/taman-description.vue.js";
9
9
  import { TamanFileUploadProps } from "./components/file-upload/taman-file-upload.types.js";
10
10
  import _default$40 from "./components/file-upload/taman-file-upload.vue.js";
11
11
  import _default$41 from "./components/full-screen/full-screen.vue.js";
12
- import _default$42 from "./components/icon/icon.vue.js";
12
+ import _default$42 from "./components/icon/taman-icon.vue.js";
13
13
  import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./components/input/password-strength.js";
14
14
  import { TamanInputCurrencyProps } from "./components/input/taman-input-currency.types.js";
15
15
  import _default$43 from "./components/input/taman-input-currency.vue.js";
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import taman_description_item_default from "./components/descriptions/taman-desc
7
7
  import _sfc_main$32 from "./components/descriptions/taman-description.mjs";
8
8
  import _sfc_main$33 from "./components/file-upload/taman-file-upload.mjs";
9
9
  import _sfc_main$34 from "./components/full-screen/full-screen.mjs";
10
- import _sfc_main$35 from "./components/icon/icon.mjs";
10
+ import _sfc_main$35 from "./components/icon/taman-icon.mjs";
11
11
  import { PASSWORD_STRENGTH_CHECKS, PASSWORD_STRENGTH_MAX, isPasswordStrong, passwordStrengthScore } from "./components/input/password-strength.mjs";
12
12
  import _sfc_main$36 from "./components/input/taman-input-currency.mjs";
13
13
  import _sfc_main$38 from "./components/input/taman-input-password.mjs";
@@ -1,4 +1,4 @@
1
- import _sfc_main$1 from "../../../components/icon/icon.mjs";
1
+ import _sfc_main$1 from "../../../components/icon/taman-icon.mjs";
2
2
  import "../../../index.mjs";
3
3
  import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, toDisplayString, unref } from "vue";
4
4
  // src/menu/components/normal-menu/normal-menu.vue
@@ -1,4 +1,4 @@
1
- import _sfc_main$1 from "../../components/icon/icon.mjs";
1
+ import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
2
2
  import "../../index.mjs";
3
3
  import _sfc_main$2 from "./taman-menu-badge.mjs";
4
4
  import "./index.mjs";
@@ -1,13 +1,14 @@
1
+ import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
2
+ import "../../components/index.mjs";
1
3
  import "../composables/index.mjs";
2
4
  import { useMenuScroll } from "../composables/use-menu-scroll.mjs";
3
5
  import { useMenuStyle } from "../composables/use-menu.mjs";
4
6
  import { createMenuContext, createSubMenuContext } from "../composables/use-menu-context.mjs";
5
7
  import { TAMAN_MENU_ROOT_NAME } from "../menu.constants.mjs";
6
8
  import { flattedChildren } from "../menu.utils.mjs";
7
- import _sfc_main$1 from "./taman-menu-sub-menu.mjs";
9
+ import _sfc_main$2 from "./taman-menu-sub-menu.mjs";
8
10
  import { Fragment, computed, createBlock, createElementBlock, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, toRef, unref, useSlots, watch, watchEffect, withCtx } from "vue";
9
11
  import { useResizeObserver } from "@vueuse/core";
10
- import PIcon from "pohon-ui/components/Icon.vue";
11
12
  // src/menu/components/taman-menu-root.vue
12
13
  const _sfc_main = /*@__PURE__*/ defineComponent({
13
14
  name: TAMAN_MENU_ROOT_NAME,
@@ -233,11 +234,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
233
234
  role: "menu"
234
235
  }, [__props.mode === "horizontal" && getSlot.value.showSlotMore ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [(openBlock(true), createElementBlock(Fragment, null, renderList(getSlot.value.slotDefault, (item, index) => {
235
236
  return openBlock(), createBlock(resolveDynamicComponent(item), { key: index });
236
- }), 128)), createVNode(_sfc_main$1, {
237
+ }), 128)), createVNode(_sfc_main$2, {
237
238
  "is-sub-menu-more": "",
238
239
  path: "sub-menu-more"
239
240
  }, {
240
- title: withCtx(() => [createVNode(PIcon, { name: "lucide:ellipsis" })]),
241
+ title: withCtx(() => [createVNode(unref(_sfc_main$1), { icon: "lucide:ellipsis" })]),
241
242
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(getSlot.value.slotMore, (item, index) => {
242
243
  return openBlock(), createBlock(resolveDynamicComponent(item), { key: index });
243
244
  }), 128))]),
@@ -1,4 +1,4 @@
1
- import _sfc_main$1 from "../../components/icon/icon.mjs";
1
+ import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
2
2
  import "../../index.mjs";
3
3
  import { useMenuContext } from "../composables/use-menu-context.mjs";
4
4
  import "../composables/index.mjs";
@@ -5,11 +5,14 @@ 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: {},
@@ -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
18
  // src/popup/alert/alert.vue
19
- const _hoisted_1 = { class: "flex items-center" };
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
@@ -1,19 +1,19 @@
1
1
  import _sfc_main$1 from "../../components/button/taman-button-icon.mjs";
2
- import _sfc_main$2 from "../../components/loading/taman-loading.mjs";
3
- import _sfc_main$3 from "../../ui/dialog/dialog-close.mjs";
4
- import _sfc_main$4 from "../../ui/dialog/dialog-content.mjs";
5
- import _sfc_main$5 from "../../ui/dialog/dialog-description.mjs";
2
+ import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
3
+ import _sfc_main$3 from "../../components/loading/taman-loading.mjs";
4
+ import _sfc_main$4 from "../../ui/dialog/dialog-close.mjs";
5
+ import _sfc_main$5 from "../../ui/dialog/dialog-content.mjs";
6
+ import _sfc_main$6 from "../../ui/dialog/dialog-description.mjs";
6
7
  import dialog_footer_default from "../../ui/dialog/dialog-footer.mjs";
7
8
  import dialog_header_default from "../../ui/dialog/dialog-header.mjs";
8
- import _sfc_main$6 from "../../ui/dialog/dialog-root.mjs";
9
- import _sfc_main$7 from "../../ui/dialog/dialog-title.mjs";
9
+ import _sfc_main$7 from "../../ui/dialog/dialog-root.mjs";
10
+ import _sfc_main$8 from "../../ui/dialog/dialog-title.mjs";
10
11
  import { VisuallyHidden } from "../../index.mjs";
11
12
  import { useDialogDraggable } from "./use-dialog-draggable.mjs";
12
13
  import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, onActivated, onDeactivated, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, watch, withCtx } from "vue";
13
14
  import PButton from "pohon-ui/components/Button.vue";
14
15
  import PTooltip from "pohon-ui/components/Tooltip.vue";
15
16
  import { useOverlayZIndex, usePriorityValues, useSimpleLocale } from "@vinicunca/taman-core/composables";
16
- import PIcon from "pohon-ui/components/Icon.vue";
17
17
  import { DISMISSABLE_DIALOG_ID, ELEMENT_ID_MAIN_CONTENT } from "@vinicunca/taman-core/constants";
18
18
  // src/popup/dialog/dialog.vue
19
19
  const _hoisted_1 = { class: "flex flex-col gap-1" };
@@ -190,13 +190,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
190
190
  props.dialogApi?.onClosed();
191
191
  }
192
192
  return (_ctx, _cache) => {
193
- return openBlock(), createBlock(unref(_sfc_main$6), {
193
+ return openBlock(), createBlock(unref(_sfc_main$7), {
194
194
  modal: false,
195
195
  open: isVisible.value,
196
196
  "unmount-on-hide": !isDeactivated.value || !firstOpened.value,
197
197
  "onUpdate:open": _cache[2] || (_cache[2] = () => !unref(submitting) ? __props.dialogApi?.close() : void 0)
198
198
  }, {
199
- default: withCtx(() => [createVNode(unref(_sfc_main$4), {
199
+ default: withCtx(() => [createVNode(unref(_sfc_main$5), {
200
200
  ref_key: "contentRef",
201
201
  ref: contentRef,
202
202
  "append-to": getAppendTo.value,
@@ -239,7 +239,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
239
239
  }, unref(headerClass)]])
240
240
  }, {
241
241
  default: withCtx(() => [
242
- createElementVNode("div", _hoisted_1, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$7), {
242
+ createElementVNode("div", _hoisted_1, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), {
243
243
  key: 0,
244
244
  class: "text-left flex gap-1 items-center"
245
245
  }, {
@@ -247,14 +247,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
247
247
  key: 0,
248
248
  text: unref(titleTooltip)
249
249
  }, {
250
- default: withCtx(() => [createVNode(PIcon, {
251
- name: "lucide:circle-help",
250
+ default: withCtx(() => [createVNode(unref(_sfc_main$2), {
251
+ icon: "lucide:circle-help",
252
252
  class: "color-text-muted"
253
253
  })]),
254
254
  _: 1
255
255
  }, 8, ["text"])) : createCommentVNode("v-if", true)])])]),
256
256
  _: 3
257
- })) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$5), { key: 1 }, {
257
+ })) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), { key: 1 }, {
258
258
  default: withCtx(() => [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(unref(description)), 1)])]),
259
259
  _: 3
260
260
  })) : createCommentVNode("v-if", true)]),
@@ -268,7 +268,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
268
268
  variant: "ghost",
269
269
  onClick: handleFullscreen
270
270
  }, null, 8, ["icon"])) : createCommentVNode("v-if", true),
271
- unref(closable) ? (openBlock(), createBlock(unref(_sfc_main$3), {
271
+ unref(closable) ? (openBlock(), createBlock(unref(_sfc_main$4), {
272
272
  key: 1,
273
273
  "as-child": "",
274
274
  onClick: handleClosed
@@ -282,14 +282,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
282
282
  })) : createCommentVNode("v-if", true)
283
283
  ]),
284
284
  !unref(title) || !unref(description) ? (openBlock(), createBlock(unref(VisuallyHidden), { key: 0 }, {
285
- default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$7), { key: 0 })) : createCommentVNode("v-if", true), !unref(description) ? (openBlock(), createBlock(unref(_sfc_main$5), { key: 1 })) : createCommentVNode("v-if", true)]),
285
+ default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), { key: 0 })) : createCommentVNode("v-if", true), !unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), { key: 1 })) : createCommentVNode("v-if", true)]),
286
286
  _: 1
287
287
  })) : createCommentVNode("v-if", true)
288
288
  ]),
289
289
  _: 3
290
290
  }, 8, ["class"]),
291
- createElementVNode("div", { class: normalizeClass(["p-3 flex-1 relative overflow-y-auto", [unref(contentClass), { "pointer-events-none": unref(showLoading) || unref(submitting) }]]) }, [renderSlot(_ctx.$slots, "default")], 2),
292
- unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$2), {
291
+ createElementVNode("div", { class: normalizeClass(["px-4 py-3 flex-1 relative overflow-y-auto", [unref(contentClass), { "pointer-events-none": unref(showLoading) || unref(submitting) }]]) }, [renderSlot(_ctx.$slots, "default")], 2),
292
+ unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$3), {
293
293
  key: 0,
294
294
  spinning: ""
295
295
  })) : createCommentVNode("v-if", true),
@@ -1,19 +1,19 @@
1
1
  import _sfc_main$1 from "../../components/button/taman-button-icon.mjs";
2
- import _sfc_main$2 from "../../components/loading/taman-loading.mjs";
3
- import _sfc_main$3 from "../../ui/sheet/sheet-close.mjs";
4
- import _sfc_main$4 from "../../ui/sheet/sheet-content.mjs";
5
- import _sfc_main$5 from "../../ui/sheet/sheet-description.mjs";
2
+ import _sfc_main$2 from "../../components/icon/taman-icon.mjs";
3
+ import _sfc_main$3 from "../../components/loading/taman-loading.mjs";
4
+ import _sfc_main$4 from "../../ui/sheet/sheet-close.mjs";
5
+ import _sfc_main$5 from "../../ui/sheet/sheet-content.mjs";
6
+ import _sfc_main$6 from "../../ui/sheet/sheet-description.mjs";
6
7
  import sheet_footer_default from "../../ui/sheet/sheet-footer.mjs";
7
8
  import sheet_header_default from "../../ui/sheet/sheet-header.mjs";
8
- import _sfc_main$6 from "../../ui/sheet/sheet-root.mjs";
9
- import _sfc_main$7 from "../../ui/sheet/sheet-title.mjs";
9
+ import _sfc_main$7 from "../../ui/sheet/sheet-root.mjs";
10
+ import _sfc_main$8 from "../../ui/sheet/sheet-title.mjs";
10
11
  import { VisuallyHidden } from "../../index.mjs";
11
12
  import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onActivated, onDeactivated, openBlock, provide, ref, renderSlot, toDisplayString, unref, useId, watch, withCtx } from "vue";
12
13
  import PButton from "pohon-ui/components/Button.vue";
13
14
  import PSeparator from "pohon-ui/components/Separator.vue";
14
15
  import PTooltip from "pohon-ui/components/Tooltip.vue";
15
16
  import { useBreakpoints, useOverlayZIndex, usePriorityValues, useSimpleLocale } from "@vinicunca/taman-core/composables";
16
- import PIcon from "pohon-ui/components/Icon.vue";
17
17
  import { DISMISSABLE_DRAWER_ID, ELEMENT_ID_MAIN_CONTENT } from "@vinicunca/taman-core/constants";
18
18
  // src/popup/drawer/drawer.vue
19
19
  const _hoisted_1 = { class: "flex items-center" };
@@ -144,13 +144,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
144
144
  });
145
145
  }
146
146
  return (_ctx, _cache) => {
147
- return openBlock(), createBlock(unref(_sfc_main$6), {
147
+ return openBlock(), createBlock(unref(_sfc_main$7), {
148
148
  modal: false,
149
149
  open: isVisible.value,
150
150
  "unmount-on-hide": !isDeactivated.value || !hasOpened.value,
151
151
  "onUpdate:open": _cache[2] || (_cache[2] = () => __props.drawerApi?.close())
152
152
  }, {
153
- default: withCtx(() => [createVNode(unref(_sfc_main$4), {
153
+ default: withCtx(() => [createVNode(unref(_sfc_main$5), {
154
154
  "append-to": getAppendTo.value,
155
155
  class: normalizeClass(["flex flex-col w-130", [{
156
156
  "pohon:w-full": unref(isMobile) || unref(placement) === "bottom" || unref(placement) === "top",
@@ -180,7 +180,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
180
180
  }, {
181
181
  default: withCtx(() => [
182
182
  createElementVNode("div", _hoisted_1, [
183
- unref(closable) && unref(closeIconPlacement) === "left" ? (openBlock(), createBlock(unref(_sfc_main$3), {
183
+ unref(closable) && unref(closeIconPlacement) === "left" ? (openBlock(), createBlock(unref(_sfc_main$4), {
184
184
  key: 0,
185
185
  "as-child": "",
186
186
  disabled: unref(submitting)
@@ -194,7 +194,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
194
194
  decorative: "",
195
195
  orientation: "vertical"
196
196
  })) : createCommentVNode("v-if", true),
197
- createElementVNode("div", _hoisted_2, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$7), {
197
+ createElementVNode("div", _hoisted_2, [unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), {
198
198
  key: 0,
199
199
  class: "text-left inline-flex gap-1"
200
200
  }, {
@@ -202,14 +202,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
202
202
  key: 0,
203
203
  text: unref(titleTooltip)
204
204
  }, {
205
- default: withCtx(() => [createVNode(PIcon, {
206
- name: "lucide:circle-help",
205
+ default: withCtx(() => [createVNode(unref(_sfc_main$2), {
206
+ icon: "lucide:circle-help",
207
207
  class: "color-text-muted"
208
208
  })]),
209
209
  _: 1
210
210
  }, 8, ["text"])) : createCommentVNode("v-if", true)])]),
211
211
  _: 3
212
- })) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$5), {
212
+ })) : createCommentVNode("v-if", true), unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), {
213
213
  key: 1,
214
214
  class: "text-xs"
215
215
  }, {
@@ -217,7 +217,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
217
217
  _: 3
218
218
  })) : createCommentVNode("v-if", true)])
219
219
  ]),
220
- createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "extra"), unref(closable) && unref(closeIconPlacement) === "right" ? (openBlock(), createBlock(unref(_sfc_main$3), {
220
+ createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "extra"), unref(closable) && unref(closeIconPlacement) === "right" ? (openBlock(), createBlock(unref(_sfc_main$4), {
221
221
  key: 0,
222
222
  "as-child": "",
223
223
  disabled: unref(submitting)
@@ -226,17 +226,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
226
226
  _: 3
227
227
  }, 8, ["disabled"])) : createCommentVNode("v-if", true)]),
228
228
  !unref(title) || !unref(description) ? (openBlock(), createBlock(unref(VisuallyHidden), { key: 0 }, {
229
- default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$7), { key: 0 })) : createCommentVNode("v-if", true), !unref(description) ? (openBlock(), createBlock(unref(_sfc_main$5), { key: 1 })) : createCommentVNode("v-if", true)]),
229
+ default: withCtx(() => [!unref(title) ? (openBlock(), createBlock(unref(_sfc_main$8), { key: 0 })) : createCommentVNode("v-if", true), !unref(description) ? (openBlock(), createBlock(unref(_sfc_main$6), { key: 1 })) : createCommentVNode("v-if", true)]),
230
230
  _: 1
231
231
  })) : createCommentVNode("v-if", true)
232
232
  ]),
233
233
  _: 3
234
234
  }, 8, ["class"])) : (openBlock(), createBlock(unref(VisuallyHidden), { key: 1 }, {
235
- default: withCtx(() => [createVNode(unref(_sfc_main$7)), createVNode(unref(_sfc_main$5))]),
235
+ default: withCtx(() => [createVNode(unref(_sfc_main$8)), createVNode(unref(_sfc_main$6))]),
236
236
  _: 1
237
237
  })),
238
238
  createElementVNode("div", { class: normalizeClass(["p-3 flex-1 relative overflow-y-auto", [unref(contentClass), { "pointer-events-none": unref(showLoading) || unref(submitting) }]]) }, [renderSlot(_ctx.$slots, "default")], 2),
239
- unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$2), {
239
+ unref(showLoading) || unref(submitting) ? (openBlock(), createBlock(unref(_sfc_main$3), {
240
240
  key: 2,
241
241
  spinning: ""
242
242
  })) : createCommentVNode("v-if", true),
@@ -1,4 +1,4 @@
1
- import _sfc_main$1 from "../../components/icon/icon.mjs";
1
+ import _sfc_main$1 from "../../components/icon/taman-icon.mjs";
2
2
  import "../../index.mjs";
3
3
  import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, renderList, toDisplayString, unref, useModel, vShow, withCtx, withDirectives, withModifiers } from "vue";
4
4
  import PContextMenu from "pohon-ui/components/ContextMenu.vue";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/taman-ui",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.2.0",
5
5
  "description": "Unstyled Taman Vue components on pohon-ui: base components, popups, layout, menu, tabs and forms.",
6
6
  "license": "MIT",
7
7
  "repository": {