@wpic/ui 0.9.59 → 0.9.61

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
@@ -3,6 +3,10 @@
3
3
  - Add `WComboInput`: a free-text `WInput` with a `WOptionPopover` suggestion list, for fields that are historically free text but should offer previously-used values (unlike `WSelect`'s `creatable` mode, typing and blurring always commits — no need to click a "Create …" row).
4
4
  - `WOptionPopover` options now select on `mousedown` instead of `click`, so a text input driving the popover doesn't blur-close it before the click registers.
5
5
 
6
+ ## 0.9.61
7
+
8
+ - `WBadge` uses normal-weight labels in light mode instead of semibold labels.
9
+
6
10
  ## 0.9.48
7
11
 
8
12
  - WDateRangePicker: expose `popoverAutoPlacement` to choose the side with the most available space. Existing placement behavior stays the default.
package/COMPONENTS.md CHANGED
@@ -165,7 +165,7 @@ count?: boolean // centered compact counter
165
165
  theme?: 'auto' | 'light' | 'dark'
166
166
  ```
167
167
 
168
- Light badges have stronger fills and semibold labels. Default badges use `text-xs`, top padding `0.125rem` and bottom padding `2.5px`. `primary` retains its inverted neutral treatment.
168
+ Light badges have stronger fills and normal-weight labels. Default badges use `text-xs`, top padding `0.125rem` and bottom padding `2.5px`. `primary` retains its inverted neutral treatment.
169
169
 
170
170
  ---
171
171
 
@@ -199,7 +199,7 @@ Unlike `ghost`, it does not use an opaque theme surface on hover.
199
199
 
200
200
  **Props:**
201
201
  ```ts
202
- variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
202
+ variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'text' | 'outline'
203
203
  size?: 'xs' | 'sm' | 'md' | 'lg'
204
204
  loading?: boolean
205
205
  disabled?: boolean
@@ -425,6 +425,9 @@ anchor: HTMLElement | null
425
425
  modelValue: number
426
426
  total: number
427
427
  limit?: number
428
+ disabled?: boolean
429
+ locale?: string
430
+ labels?: { page?: string; previous?: string; next?: string }
428
431
  syncUrl?: boolean // default: true; automatically false inside WModal
429
432
  queryParam?: string // default: 'page'
430
433
  ```
@@ -488,7 +491,7 @@ slot and the menu entries via `options`.
488
491
  **Props:**
489
492
  ```ts
490
493
  options: WSplitButtonOption[] // { value: string, label: string, icon?: object | Function, disabled?: boolean }
491
- variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
494
+ variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
492
495
  size?: 'xs' | 'sm' | 'md' | 'lg'
493
496
  icon?: object | Function // icon for the primary button
494
497
  disabled?: boolean
@@ -692,6 +695,7 @@ pageSize?: number
692
695
  searchPlaceholder?: string
693
696
  rowClickable?: boolean
694
697
  showHeader?: boolean
698
+ showFooter?: boolean
695
699
  columnDividers?: boolean // vertical rules between cells, in the row divider colour; default false
696
700
  ```
697
701
 
@@ -1,5 +1,5 @@
1
1
  type __VLS_Props = {
2
- variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'text' | 'outline';
2
+ variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'text' | 'outline';
3
3
  size?: 'xs' | 'sm' | 'md' | 'lg';
4
4
  loading?: boolean;
5
5
  disabled?: boolean;
@@ -33,9 +33,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
33
33
  placeholder: string;
34
34
  clearable: boolean;
35
35
  clearLabel: string;
36
+ locale: string;
36
37
  popoverFlip: boolean;
37
38
  ariaLabel: string;
38
- locale: string;
39
39
  weekStartsOn: 0 | 1;
40
40
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
41
  declare const _default: typeof __VLS_export;
@@ -17,8 +17,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
17
17
  disabled: boolean;
18
18
  modelValue: string | null;
19
19
  placeholder: string;
20
- ariaLabel: string;
21
20
  locale: string;
21
+ ariaLabel: string;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
23
  declare const _default: typeof __VLS_export;
24
24
  export default _default;
@@ -2,6 +2,13 @@ type __VLS_Props = {
2
2
  modelValue: number;
3
3
  total: number;
4
4
  limit?: number;
5
+ disabled?: boolean;
6
+ locale?: string;
7
+ labels?: {
8
+ page?: string;
9
+ previous?: string;
10
+ next?: string;
11
+ };
5
12
  syncUrl?: boolean;
6
13
  queryParam?: string;
7
14
  };
@@ -6,7 +6,7 @@ export interface WSplitButtonOption {
6
6
  }
7
7
  type __VLS_Props = {
8
8
  options: WSplitButtonOption[];
9
- variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline';
9
+ variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline';
10
10
  size?: 'xs' | 'sm' | 'md' | 'lg';
11
11
  icon?: object | Function;
12
12
  disabled?: boolean;
@@ -53,8 +53,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
53
53
  }>, {
54
54
  modelValue: WTagItem[];
55
55
  placeholder: string;
56
- creatable: boolean;
57
56
  locale: string;
57
+ creatable: boolean;
58
58
  locales: string[];
59
59
  recentKey: string;
60
60
  labelRecent: string;