@wpic/ui 0.7.3 → 0.7.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 +11 -0
- package/COMPONENTS.md +1 -0
- package/dist/components/WCard.vue.d.ts +18 -13
- package/dist/components/WTable.vue.d.ts +3 -0
- package/dist/wpic-ui.cjs +60 -60
- package/dist/wpic-ui.css +25 -5
- package/dist/wpic-ui.js +2367 -2353
- package/package.json +1 -1
- package/src/style.css +24 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.5 — 2026-09-10
|
|
4
|
+
|
|
5
|
+
- WTable: horizontal padding now comes from a shared `--wpic-table-padding-x` token that inherits the enclosing WCard's padding, so a table in a `no-padding` card lines its cells, header, toolbar, footer and expand row up with the card header instead of sitting 8px inboard of it. Previously cells were fixed at 16px while an `lg` card's header was at 24px.
|
|
6
|
+
- WTable: add a `padding` prop (`sm` | `md` | `lg`) for tables that are not inside a card, or that need to override the inherited value. Omitted, it inherits the card (falling back to `md`), or `sm` when `compact`.
|
|
7
|
+
- WCard: the `empty` slot's vertical padding now follows the sm/md/lg scale instead of a hardcoded 24px.
|
|
8
|
+
- No change for a table outside a card (16px), a `compact` table (12px), or a table in a default `md` card (16px).
|
|
9
|
+
|
|
10
|
+
## 0.7.4 — 2026-09-10
|
|
11
|
+
|
|
12
|
+
- WCard: add a `subtitle` prop/slot rendered below the title, so header + description layouts no longer need bespoke markup outside the card's title slot.
|
|
13
|
+
|
|
3
14
|
## 0.7.3 — 2026-09-10
|
|
4
15
|
|
|
5
16
|
- WTable: `compact` now also tightens cell, toolbar, footer and expand-row horizontal padding (was only adjusting vertical padding, leaving horizontal fixed at 16px in both densities).
|
package/COMPONENTS.md
CHANGED
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
* WCard — content card.
|
|
3
3
|
*
|
|
4
4
|
* Slots:
|
|
5
|
-
* - icon
|
|
6
|
-
* - title
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
5
|
+
* - icon : optional icon in the header (left of title)
|
|
6
|
+
* - title : card header title (or use `title` prop)
|
|
7
|
+
* - subtitle : optional line below the title (or use `subtitle` prop)
|
|
8
|
+
* - actions : optional header right slot (buttons, badges…)
|
|
9
|
+
* - default : card body / rows
|
|
10
|
+
* - footer : optional footer
|
|
11
|
+
* - empty : shown when `empty` prop is true
|
|
11
12
|
*
|
|
12
13
|
* Props:
|
|
13
|
-
* - title
|
|
14
|
-
* -
|
|
14
|
+
* - title : string shorthand for header title
|
|
15
|
+
* - subtitle : string shorthand for the line below the title
|
|
16
|
+
* - empty : boolean — show empty slot instead of default
|
|
15
17
|
* - headerDivider : boolean — show the separator below the header (default true)
|
|
16
|
-
* - padding
|
|
18
|
+
* - padding : shared horizontal spacing for header, body and footer
|
|
17
19
|
*/
|
|
18
20
|
type __VLS_Props = {
|
|
19
21
|
title?: string;
|
|
22
|
+
subtitle?: string;
|
|
20
23
|
empty?: boolean;
|
|
21
24
|
noPadding?: boolean;
|
|
22
25
|
bodyClass?: string;
|
|
@@ -24,7 +27,7 @@ type __VLS_Props = {
|
|
|
24
27
|
headerDivider?: boolean;
|
|
25
28
|
padding?: 'sm' | 'md' | 'lg';
|
|
26
29
|
};
|
|
27
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
30
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
28
31
|
type __VLS_Slots = {} & {
|
|
29
32
|
icon?: (props: typeof __VLS_1) => any;
|
|
30
33
|
} & {
|
|
@@ -32,11 +35,13 @@ type __VLS_Slots = {} & {
|
|
|
32
35
|
} & {
|
|
33
36
|
actions?: (props: typeof __VLS_5) => any;
|
|
34
37
|
} & {
|
|
35
|
-
|
|
38
|
+
subtitle?: (props: typeof __VLS_7) => any;
|
|
36
39
|
} & {
|
|
37
|
-
|
|
40
|
+
default?: (props: typeof __VLS_9) => any;
|
|
38
41
|
} & {
|
|
39
|
-
|
|
42
|
+
empty?: (props: typeof __VLS_11) => any;
|
|
43
|
+
} & {
|
|
44
|
+
footer?: (props: typeof __VLS_13) => any;
|
|
40
45
|
};
|
|
41
46
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
42
47
|
padding: "sm" | "md" | "lg";
|
|
@@ -37,6 +37,9 @@ type __VLS_Props = {
|
|
|
37
37
|
rowStyle?: (row: Record<string, unknown>) => Record<string, string> | undefined;
|
|
38
38
|
summaryRow?: Record<string, unknown>;
|
|
39
39
|
compact?: boolean;
|
|
40
|
+
/** Horizontal padding scale. Omitted: inherits the enclosing WCard's
|
|
41
|
+
padding (falling back to md), or sm when `compact`. */
|
|
42
|
+
padding?: 'sm' | 'md' | 'lg';
|
|
40
43
|
showFooter?: boolean;
|
|
41
44
|
};
|
|
42
45
|
declare function toggleSort(field: string): void;
|