@wpic/ui 0.3.6 → 0.3.7
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/dist/wpic-ui.cjs +1 -1
- package/dist/wpic-ui.css +15 -0
- package/dist/wpic-ui.js +5 -5
- package/package.json +1 -1
- package/src/style.css +15 -0
package/dist/wpic-ui.css
CHANGED
|
@@ -56,6 +56,21 @@
|
|
|
56
56
|
.border-strong { border-color: var(--border-strong); }
|
|
57
57
|
.border-hover { border-color: var(--border-hover); }
|
|
58
58
|
|
|
59
|
+
/* WCard owns its border colors. This avoids a missing host Tailwind utility
|
|
60
|
+
falling back to currentColor and producing a black header separator. */
|
|
61
|
+
.wpic-card--bordered {
|
|
62
|
+
border: 1px solid var(--border-strong);
|
|
63
|
+
}
|
|
64
|
+
.wpic-card--borderless {
|
|
65
|
+
border: 0;
|
|
66
|
+
}
|
|
67
|
+
.wpic-card__header {
|
|
68
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
69
|
+
}
|
|
70
|
+
.wpic-card__footer {
|
|
71
|
+
border-top: 1px solid var(--border-subtle);
|
|
72
|
+
}
|
|
73
|
+
|
|
59
74
|
/* ── Text ─────────────────────────────────────────────────────────────── */
|
|
60
75
|
.text-main { color: var(--text-main); }
|
|
61
76
|
.text-muted { color: var(--text-muted); }
|
package/dist/wpic-ui.js
CHANGED
|
@@ -3225,13 +3225,13 @@ const h0 = /* @__PURE__ */ U1(b4, [["render", x4]]), y4 = ["disabled"], C2 = /*
|
|
|
3225
3225
|
}
|
|
3226
3226
|
}), y6 = {
|
|
3227
3227
|
key: 0,
|
|
3228
|
-
class: "px-4 py-3 flex items-center gap-2
|
|
3228
|
+
class: "wpic-card__header px-4 py-3 flex items-center gap-2"
|
|
3229
3229
|
}, w6 = { class: "font-medium text-zinc-800 dark:text-zinc-200 flex-1 min-w-0 truncate" }, M6 = {
|
|
3230
3230
|
key: 2,
|
|
3231
|
-
class: "px-4 py-6 flex items-center gap-2 text-zinc-400 dark:text-zinc-500"
|
|
3231
|
+
class: "wpic-card__empty px-4 py-6 flex items-center gap-2 text-zinc-400 dark:text-zinc-500"
|
|
3232
3232
|
}, V6 = {
|
|
3233
3233
|
key: 3,
|
|
3234
|
-
class: "px-4 py-3
|
|
3234
|
+
class: "wpic-card__footer px-4 py-3"
|
|
3235
3235
|
}, Xt = /* @__PURE__ */ J({
|
|
3236
3236
|
__name: "WCard",
|
|
3237
3237
|
props: {
|
|
@@ -3243,7 +3243,7 @@ const h0 = /* @__PURE__ */ U1(b4, [["render", x4]]), y4 = ["disabled"], C2 = /*
|
|
|
3243
3243
|
},
|
|
3244
3244
|
setup(n) {
|
|
3245
3245
|
return (v, c) => (e(), t("div", {
|
|
3246
|
-
class: g(["wpic-card rounded-xl bg-zinc-50 dark:bg-zinc-800/60 overflow-hidden", n.borderless ? "" : "
|
|
3246
|
+
class: g(["wpic-card rounded-xl bg-zinc-50 dark:bg-zinc-800/60 overflow-hidden", n.borderless ? "wpic-card--borderless" : "wpic-card--bordered"])
|
|
3247
3247
|
}, [
|
|
3248
3248
|
v.$slots.icon || v.$slots.title || n.title || v.$slots.actions ? (e(), t("div", y6, [
|
|
3249
3249
|
Q(v.$slots, "icon"),
|
|
@@ -3258,7 +3258,7 @@ const h0 = /* @__PURE__ */ U1(b4, [["render", x4]]), y4 = ["disabled"], C2 = /*
|
|
|
3258
3258
|
Q(v.$slots, "empty")
|
|
3259
3259
|
])) : (e(), t("div", {
|
|
3260
3260
|
key: 1,
|
|
3261
|
-
class: g(n.noPadding ? "" : n.bodyClass ?? "p-4")
|
|
3261
|
+
class: g(["wpic-card__body", n.noPadding ? "" : n.bodyClass ?? "p-4"])
|
|
3262
3262
|
}, [
|
|
3263
3263
|
Q(v.$slots, "default")
|
|
3264
3264
|
], 2)),
|
package/package.json
CHANGED
package/src/style.css
CHANGED
|
@@ -56,6 +56,21 @@
|
|
|
56
56
|
.border-strong { border-color: var(--border-strong); }
|
|
57
57
|
.border-hover { border-color: var(--border-hover); }
|
|
58
58
|
|
|
59
|
+
/* WCard owns its border colors. This avoids a missing host Tailwind utility
|
|
60
|
+
falling back to currentColor and producing a black header separator. */
|
|
61
|
+
.wpic-card--bordered {
|
|
62
|
+
border: 1px solid var(--border-strong);
|
|
63
|
+
}
|
|
64
|
+
.wpic-card--borderless {
|
|
65
|
+
border: 0;
|
|
66
|
+
}
|
|
67
|
+
.wpic-card__header {
|
|
68
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
69
|
+
}
|
|
70
|
+
.wpic-card__footer {
|
|
71
|
+
border-top: 1px solid var(--border-subtle);
|
|
72
|
+
}
|
|
73
|
+
|
|
59
74
|
/* ── Text ─────────────────────────────────────────────────────────────── */
|
|
60
75
|
.text-main { color: var(--text-main); }
|
|
61
76
|
.text-muted { color: var(--text-muted); }
|