@kungal/ui-vue 1.9.0 → 1.9.2

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,37 @@
1
1
  # @kungal/ui-vue
2
2
 
3
+ ## 1.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - b673935: fix(tokens,vue): softer neutral hairline + bordered cards by default
8
+
9
+ - KunCard shows a faint hairline border by default again (it was borderless during
10
+ the filled-surface work) — with the lighter page and softer shadows, a hairline
11
+ delineates the card better than shadow alone.
12
+ - The shared neutral border token (`--color-kun-border` / the `border-kun` utility)
13
+ drops from `default-200` to `default-100` — a lighter hairline that delineates a
14
+ surface without framing it. Every consumer softens at once: inputs, textarea,
15
+ select & other controls, accordion, tabs, dividers, drawer rules, etc. Error
16
+ borders (danger) and focus rings are unaffected.
17
+ - @kungal/ui-core@1.9.2
18
+
19
+ ## 1.9.1
20
+
21
+ ### Patch Changes
22
+
23
+ - 7a2c64d: fix(vue,tokens): bordered inputs, softer shadows, lighter page background
24
+
25
+ - Form controls (Input, Textarea, Select, NumberInput, Autocomplete, DatePicker,
26
+ TagInput flat, PinInput, Pagination jump field, Select's inline search) get a
27
+ card-like neutral border back on top of the filled surface — the borderless
28
+ fill was too hard to spot on a card. Error state recolours the border to danger
29
+ instead of a persistent ring. (= the shadcn "border + fill + subtle shadow" input.)
30
+ - Elevation scale softened ~30% across all three tiers (sm/md/lg) — lighter, tighter
31
+ shadows on cards, inputs, dropdowns, modals.
32
+ - Light page background nudged brighter (#f2f2f5 → #f4f4f7). Dark unchanged.
33
+ - @kungal/ui-core@1.9.1
34
+
3
35
  ## 1.9.0
4
36
 
5
37
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.vue.d.ts","sourceRoot":"","sources":["../../src/components/DatePicker.vue"],"names":[],"mappings":"AAgWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAotBjD,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":"AAkWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAstBjD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;6EAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
package/dist/index.js CHANGED
@@ -698,7 +698,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
698
698
  placeholder: e.placeholder,
699
699
  disabled: e.disabled,
700
700
  autocomplete: "off",
701
- class: P(q)("block w-full bg-content1 shadow-kun-sm transition-[color,box-shadow]", g.value, P(ce)[e.size], e.clearable && p.value ? "pr-9" : "", C.value ? P(q)("ring-2 ring-danger/60", P(Y).danger) : P(Y)[e.color], e.disabled && "cursor-not-allowed opacity-60"),
701
+ class: P(q)("block w-full bg-content1 shadow-kun-sm border transition-[color,box-shadow]", g.value, P(ce)[e.size], e.clearable && p.value ? "pr-9" : "", C.value ? P(q)("border-danger-300", P(Y).danger) : P(q)("border-kun", P(Y)[e.color]), e.disabled && "cursor-not-allowed opacity-60"),
702
702
  onInput: te,
703
703
  onFocus: W,
704
704
  onKeydown: ne,
@@ -1112,7 +1112,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
1112
1112
  },
1113
1113
  bordered: {
1114
1114
  type: Boolean,
1115
- default: !1
1115
+ default: !0
1116
1116
  },
1117
1117
  padding: { default: "lg" },
1118
1118
  className: { default: "" },
@@ -2421,7 +2421,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
2421
2421
  u("div", ai, [u("button", {
2422
2422
  type: "button",
2423
2423
  disabled: e.disabled,
2424
- 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, P(Y)[e.color], "bg-content1 shadow-kun-sm", e.disabled && "cursor-not-allowed opacity-60")),
2424
+ 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")),
2425
2425
  onClick: le
2426
2426
  }, [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", {
2427
2427
  key: 0,
@@ -3392,7 +3392,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
3392
3392
  required: e.required,
3393
3393
  "aria-invalid": s.value || void 0,
3394
3394
  "aria-describedby": a.value || e.error ? `${P(F)}-desc` : void 0,
3395
- class: P(q)("block w-full bg-content1 shadow-kun-sm transition-[color,box-shadow] duration-kun-fast ease-kun-standard", E.value, I.value, t.$slots.prefix && "pl-10", C.value, e.disabled && "cursor-not-allowed opacity-60", s.value ? P(q)("ring-2 ring-danger/60", P(Y).danger) : P(Y)[e.color], e.className),
3395
+ class: P(q)("block w-full bg-content1 shadow-kun-sm border transition-[color,box-shadow] duration-kun-fast ease-kun-standard", E.value, I.value, t.$slots.prefix && "pl-10", C.value, e.disabled && "cursor-not-allowed opacity-60", s.value ? P(q)("border-danger-300", P(Y).danger) : P(q)("border-kun", P(Y)[e.color]), e.className),
3396
3396
  onInput: z,
3397
3397
  onBlur: B,
3398
3398
  onFocus: V
@@ -4083,7 +4083,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
4083
4083
  for: P(m),
4084
4084
  class: "text-default-700 mb-1 block text-sm font-medium"
4085
4085
  }, [d(j(e.label) + " ", 1), e.required ? (w(), l("span", oo, "*")) : c("", !0)], 8, ao)) : c("", !0),
4086
- u("div", { class: y(P(q)("bg-content1 shadow-kun-sm flex w-full items-stretch overflow-hidden transition-[color,box-shadow]", p.value, v.value.text, h.value ? P(q)("ring-2 ring-danger/60", P(ue).danger) : P(ue)[e.color], e.disabled && "cursor-not-allowed opacity-60")) }, [
4086
+ u("div", { class: y(P(q)("bg-content1 shadow-kun-sm border flex w-full items-stretch overflow-hidden transition-[color,box-shadow]", p.value, v.value.text, h.value ? P(q)("border-danger-300", P(ue).danger) : P(q)("border-kun", P(ue)[e.color]), e.disabled && "cursor-not-allowed opacity-60")) }, [
4087
4087
  e.controls ? (w(), l("button", {
4088
4088
  key: 0,
4089
4089
  type: "button",
@@ -4273,7 +4273,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
4273
4273
  disabled: e.isLoading,
4274
4274
  min: "1",
4275
4275
  max: e.totalPage,
4276
- class: y(P(q)(P(q)("bg-content1 shadow-kun-sm w-24 rounded-kun-md px-2 py-1 text-sm transition-[color,box-shadow]", P(Y).default), e.isLoading && "cursor-not-allowed opacity-50")),
4276
+ class: y(P(q)(P(q)("bg-content1 shadow-kun-sm border-kun w-24 rounded-kun-md border px-2 py-1 text-sm transition-[color,box-shadow]", P(Y).default), e.isLoading && "cursor-not-allowed opacity-50")),
4277
4277
  onKeyup: G(h, ["enter"])
4278
4278
  }, null, 42, Co), [[z, a.value]]),
4279
4279
  f($, {
@@ -4386,7 +4386,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
4386
4386
  placeholder: e.placeholder,
4387
4387
  "aria-label": `${e.ariaLabel} 第 ${n + 1} 位`,
4388
4388
  "aria-invalid": e.isInvalid || void 0,
4389
- class: y(P(q)("bg-content1 shadow-kun-sm text-foreground text-center font-medium tabular-nums transition-[color,box-shadow] outline-none", u.value, p[e.size], e.isInvalid ? P(q)("ring-2 ring-danger/60", P(Y).danger) : P(Y)[e.color], e.disabled && "cursor-not-allowed opacity-60")),
4389
+ class: y(P(q)("bg-content1 shadow-kun-sm border text-foreground text-center font-medium tabular-nums transition-[color,box-shadow] outline-none", u.value, p[e.size], e.isInvalid ? P(q)("border-danger-300", P(Y).danger) : P(q)("border-kun", P(Y)[e.color]), e.disabled && "cursor-not-allowed opacity-60")),
4390
4390
  onInput: (e) => x(n, e),
4391
4391
  onKeydown: (e) => C(n, e),
4392
4392
  onPaste: (e) => T(n, e),
@@ -5006,7 +5006,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
5006
5006
  "aria-controls": _.value,
5007
5007
  "aria-activedescendant": x.value ? ee.value : void 0,
5008
5008
  "aria-disabled": e.disabled || void 0,
5009
- 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], p.value, "bg-content1 shadow-kun-sm", e.error ? P(q)("ring-2 ring-danger/60", P(Y).danger) : P(Y)[e.color], e.disabled && "cursor-not-allowed opacity-60")),
5009
+ 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], p.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")),
5010
5010
  onClick: re,
5011
5011
  onKeydown: he
5012
5012
  }, [
@@ -5078,7 +5078,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
5078
5078
  "aria-controls": _.value,
5079
5079
  "aria-expanded": x.value,
5080
5080
  "aria-activedescendant": ee.value,
5081
- class: y(P(q)("bg-content1 shadow-kun-sm w-full rounded-kun-sm px-2.5 py-1.5 text-sm", P(Y)[e.color])),
5081
+ class: y(P(q)("bg-content1 shadow-kun-sm border-kun w-full rounded-kun-sm border px-2.5 py-1.5 text-sm", P(Y)[e.color])),
5082
5082
  onKeydown: he
5083
5083
  }, null, 42, ls), [[z, S.value]])])) : c("", !0), u("ul", {
5084
5084
  ref_key: "listRef",
@@ -6097,7 +6097,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
6097
6097
  md: "text-sm",
6098
6098
  lg: "text-base",
6099
6099
  xl: "text-lg"
6100
- }, te = o(() => q("flex flex-wrap items-center transition-shadow", a.value, G[r.size], ee[r.size], J[r.size], "border border-transparent", r.variant === "bordered" && !r.error && "border-kun", r.variant === "flat" && "bg-content1 shadow-kun-sm", r.error ? ue.danger : ue[r.color], r.error && "border-danger", r.disabled && "opacity-50 cursor-not-allowed bg-default-100", r.readonly && "cursor-default", r.className)), ne = o(() => q("inline-flex items-center gap-1 rounded-full font-medium whitespace-nowrap select-none", _e("flat", r.color), se[r.size], Y[r.color])), re = o(() => d.value.length >= r.maxTags);
6100
+ }, te = o(() => q("flex flex-wrap items-center transition-shadow", a.value, G[r.size], ee[r.size], J[r.size], "border border-transparent", !r.error && "border-kun", r.variant === "flat" && "bg-content1 shadow-kun-sm", r.error ? ue.danger : ue[r.color], r.error && "border-danger", r.disabled && "opacity-50 cursor-not-allowed bg-default-100", r.readonly && "cursor-default", r.className)), ne = o(() => q("inline-flex items-center gap-1 rounded-full font-medium whitespace-nowrap select-none", _e("flat", r.color), se[r.size], Y[r.color])), re = o(() => d.value.length >= r.maxTags);
6101
6101
  return (n, r) => (w(), l("div", qs, [
6102
6102
  e.label ? (w(), l("label", {
6103
6103
  key: 0,
@@ -6306,7 +6306,7 @@ var tt = Symbol("kun-accordion"), nt = /* @__PURE__ */ p({
6306
6306
  minlength: e.minlength,
6307
6307
  rows: e.rows,
6308
6308
  autofocus: e.autofocus,
6309
- class: y(P(q)("scrollbar-hide w-full bg-content1 shadow-kun-sm transition-[color,box-shadow] duration-kun-fast ease-kun-standard", P(ce)[r.size], a.value, e.error ? P(q)("ring-2 ring-danger/60", P(Y).danger) : P(Y)[e.color], e.disabled ? "text-default-500 cursor-not-allowed opacity-60 shadow-none" : "", e.resize === "none" ? "resize-none" : e.resize === "vertical" ? "resize-y" : e.resize === "horizontal" ? "resize-x" : "resize")),
6309
+ class: y(P(q)("scrollbar-hide w-full bg-content1 shadow-kun-sm border transition-[color,box-shadow] duration-kun-fast ease-kun-standard", P(ce)[r.size], a.value, e.error ? P(q)("border-danger-300", P(Y).danger) : P(q)("border-kun", P(Y)[e.color]), e.disabled ? "text-default-500 cursor-not-allowed opacity-60 shadow-none" : "", e.resize === "none" ? "resize-none" : e.resize === "vertical" ? "resize-y" : e.resize === "horizontal" ? "resize-x" : "resize")),
6310
6310
  onInput: g,
6311
6311
  onBlur: n[1] ||= (e) => h("blur", e),
6312
6312
  onFocus: n[2] ||= (e) => h("focus", e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kungal/ui-vue",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
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.0"
53
+ "@kungal/ui-core": "1.9.2"
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.0"
65
+ "@kungal/ui-tokens": "1.9.2"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "vite build && cp src/prose.css dist/prose.css && vue-tsc -p tsconfig.build.json",