adverich-kun-ui 0.1.302 → 0.1.304

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.
@@ -16,10 +16,7 @@ const $ = { class: "flex items-center justify-between gap-2 mb-2 print:hidden" }
16
16
  hasActions: Boolean,
17
17
  loading: Boolean,
18
18
  rowClass: String,
19
- border: {
20
- type: String,
21
- default: "border border-slate-300 dark:border-slate-700"
22
- },
19
+ border: { type: String, default: "border border-slate-300 dark:border-slate-700" },
23
20
  rounded: { type: String, default: "rounded-sm" },
24
21
  rowClassCondition: [String, Function],
25
22
  customSlots: Object
@@ -1,14 +1,14 @@
1
- import { useSlots as k, ref as c, computed as s, createBlock as r, openBlock as o, resolveDynamicComponent as $, mergeProps as p, withCtx as B, renderSlot as n, createCommentVNode as i, createElementVNode as d, createElementBlock as a, normalizeClass as u, normalizeStyle as w } from "vue";
1
+ import { useSlots as k, ref as c, computed as s, createBlock as r, openBlock as o, resolveDynamicComponent as $, mergeProps as p, withCtx as w, renderSlot as n, createCommentVNode as i, createElementVNode as u, createElementBlock as a, normalizeClass as d, normalizeStyle as B } from "vue";
2
2
  import f from "./KunToolbarTitle.vue.js";
3
3
  const N = {
4
4
  key: 0,
5
- class: "pl-2"
5
+ class: "pl-2 max-w-1/2 truncate"
6
6
  }, P = {
7
7
  key: 0,
8
- class: "flex-1 flex justify-center items-center"
8
+ class: "flex-1 flex justify-center items-center max-w-1/2 truncate"
9
9
  }, R = {
10
10
  key: 0,
11
- class: "pr-2"
11
+ class: "pr-2 max-w-1/2 truncate"
12
12
  }, H = {
13
13
  __name: "KunToolbar",
14
14
  props: {
@@ -38,7 +38,7 @@ const N = {
38
38
  rightSectionClass: { type: String, default: "flex items-center gap-2 justify-end ml-auto" }
39
39
  },
40
40
  setup(t) {
41
- const e = t, g = k(), m = c(null), h = c(null), y = s(() => e.extended || !!g.extension), x = s(() => {
41
+ const e = t, m = k(), g = c(null), h = c(null), x = s(() => e.extended || !!m.extension), y = s(() => {
42
42
  switch (e.density) {
43
43
  case "prominent":
44
44
  return "min-h-[96px]";
@@ -66,19 +66,19 @@ const N = {
66
66
  return (l, j) => (o(), r($(t.tag), p({
67
67
  class: ["w-full flex flex-col relative", C.value]
68
68
  }, l.$attrs), {
69
- default: B(() => [
69
+ default: w(() => [
70
70
  t.image ? n(l.$slots, "image", { key: 0 }) : i("", !0),
71
- d("div", {
71
+ u("div", {
72
72
  ref_key: "contentRef",
73
- ref: m,
74
- class: u(["flex items-center w-full justify-between", [
75
- x.value,
73
+ ref: g,
74
+ class: d(["flex items-center w-full justify-between", [
75
+ y.value,
76
76
  t.extended ? "min-h-[96px]" : "",
77
77
  "px-4"
78
78
  ]])
79
79
  }, [
80
- d("div", {
81
- class: u(t.leftSectionClass)
80
+ u("div", {
81
+ class: d(t.leftSectionClass)
82
82
  }, [
83
83
  n(l.$slots, "prepend"),
84
84
  t.titlePosition === "left" ? (o(), a("div", N, [
@@ -99,8 +99,8 @@ const N = {
99
99
  }, null, 8, ["text"])) : i("", !0)
100
100
  ])
101
101
  ])) : i("", !0),
102
- d("div", {
103
- class: u(t.rightSectionClass)
102
+ u("div", {
103
+ class: d(t.rightSectionClass)
104
104
  }, [
105
105
  n(l.$slots, "items"),
106
106
  t.titlePosition === "right" ? (o(), a("div", R, [
@@ -114,12 +114,12 @@ const N = {
114
114
  n(l.$slots, "append")
115
115
  ], 2)
116
116
  ], 2),
117
- y.value ? (o(), a("div", {
117
+ x.value ? (o(), a("div", {
118
118
  key: 1,
119
119
  ref_key: "extensionRef",
120
120
  ref: h,
121
121
  class: "w-full",
122
- style: w({ height: `${t.extensionHeight}px` })
122
+ style: B({ height: `${t.extensionHeight}px` })
123
123
  }, [
124
124
  n(l.$slots, "extension")
125
125
  ], 4)) : i("", !0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.302",
3
+ "version": "0.1.304",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",