@kungal/ui-vue 1.9.4 → 1.9.5

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @kungal/ui-vue
2
2
 
3
+ ## 1.9.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 770b77b: fix(vue): DatePicker trigger — gap + truncation between text and calendar icon
8
+
9
+ The trigger only had `justify-between` (no gap), so in a narrow field the
10
+ placeholder/value text butted right against the calendar icon with no spacing
11
+ (and looked vertically off). Adopted the Select trigger's pattern: `gap-2` on the
12
+ button, `min-w-0 flex-1 truncate` on the text, and `shrink-0` on the icon group —
13
+ so there's always an 8px gap, the text truncates gracefully, and the icon stays
14
+ put. (Audited Select, Autocomplete and the input family — they already do this;
15
+ DatePicker was the only one missing it.)
16
+
17
+ - @kungal/ui-core@1.9.5
18
+
3
19
  ## 1.9.4
4
20
 
5
21
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/DatePicker.vue"],"names":[],"mappings":"AAwWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AA4tBjD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"DatePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/DatePicker.vue"],"names":[],"mappings":"AAwWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AA+tBjD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/dist/index.js CHANGED
@@ -2301,7 +2301,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
2301
2301
  }, ii = {
2302
2302
  key: 0,
2303
2303
  class: "text-default-700 mb-1 block text-sm font-medium"
2304
- }, ai = { class: "relative" }, oi = ["disabled"], si = { class: "flex items-center" }, ci = { class: "flex items-center justify-between" }, li = { class: "flex items-center gap-2" }, ui = { class: "font-semibold" }, di = { class: "flex items-center gap-2" }, fi = { class: "text-default-600 mt-3 grid grid-cols-7 text-center text-xs" }, pi = {
2304
+ }, ai = { class: "relative" }, oi = ["disabled"], si = { class: "flex shrink-0 items-center" }, ci = { class: "flex items-center justify-between" }, li = { class: "flex items-center gap-2" }, ui = { class: "font-semibold" }, di = { class: "flex items-center gap-2" }, fi = { class: "text-default-600 mt-3 grid grid-cols-7 text-center text-xs" }, pi = {
2305
2305
  class: "mt-1 grid grid-cols-7",
2306
2306
  role: "grid"
2307
2307
  }, mi = [
@@ -2424,9 +2424,9 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
2424
2424
  u("div", ai, [u("button", {
2425
2425
  type: "button",
2426
2426
  disabled: e.disabled,
2427
- class: y(P(q)("flex w-full cursor-pointer items-center justify-between text-left transition-[color,box-shadow]", P(ce)[a.size], m.value, "bg-content1 shadow-kun-sm border", e.error ? P(q)("border-danger-300", P(Y).danger) : P(q)("border-kun", P(Y)[e.color]), e.disabled && "cursor-not-allowed opacity-60")),
2427
+ class: y(P(q)("flex w-full cursor-pointer items-center justify-between gap-2 text-left transition-[color,box-shadow]", P(ce)[a.size], m.value, "bg-content1 shadow-kun-sm border", e.error ? P(q)("border-danger-300", P(Y).danger) : P(q)("border-kun", P(Y)[e.color]), e.disabled && "cursor-not-allowed opacity-60")),
2428
2428
  onClick: le
2429
- }, [u("span", { class: y(["block truncate", { "text-default-400": !se.value }]) }, j(se.value || e.placeholder), 3), u("div", si, [e.clearable && se.value ? (w(), l("button", {
2429
+ }, [u("span", { class: y(["block min-w-0 flex-1 truncate", { "text-default-400": !se.value }]) }, j(se.value || e.placeholder), 3), u("div", si, [e.clearable && se.value ? (w(), l("button", {
2430
2430
  key: 0,
2431
2431
  class: "text-default-500 hover:text-default-800 mr-2 p-1",
2432
2432
  "aria-label": "Clear date",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungal/ui-vue",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "KunUI Vue 3 component layer — Nuxt-decoupled. Works in any Vue app; pairs with @kungal/ui-nuxt for Nuxt sugar.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  "date-fns": "^4.1.0",
51
51
  "focus-trap": "^8.2.1",
52
52
  "vue-advanced-cropper": "^2.8.9",
53
- "@kungal/ui-core": "1.9.4"
53
+ "@kungal/ui-core": "1.9.5"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "vue": "^3.5.0"
@@ -62,7 +62,7 @@
62
62
  "vite": "^8.0.16",
63
63
  "vue": "^3.5.35",
64
64
  "vue-tsc": "^3.3.3",
65
- "@kungal/ui-tokens": "1.9.4"
65
+ "@kungal/ui-tokens": "1.9.5"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "vite build && cp src/prose.css dist/prose.css && vue-tsc -p tsconfig.build.json",