@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 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
@@ -169,6 +169,7 @@ click: [e: MouseEvent]
169
169
  **Props:**
170
170
  ```ts
171
171
  title?: string
172
+ subtitle?: string // rendered below the title
172
173
  empty?: boolean
173
174
  noPadding?: boolean
174
175
  bodyClass?: string
@@ -2,21 +2,24 @@
2
2
  * WCard — content card.
3
3
  *
4
4
  * Slots:
5
- * - icon : optional icon in the header (left of title)
6
- * - title : card header title (or use `title` prop)
7
- * - actions : optional header right slot (buttons, badges…)
8
- * - default : card body / rows
9
- * - footer : optional footer
10
- * - empty : shown when `empty` prop is true
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 : string shorthand for header title
14
- * - empty : boolean — show empty slot instead of default
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 : shared horizontal spacing for header, body and footer
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
- default?: (props: typeof __VLS_7) => any;
38
+ subtitle?: (props: typeof __VLS_7) => any;
36
39
  } & {
37
- empty?: (props: typeof __VLS_9) => any;
40
+ default?: (props: typeof __VLS_9) => any;
38
41
  } & {
39
- footer?: (props: typeof __VLS_11) => any;
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;