@wpic/ui 0.9.4 → 0.9.6
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 +8 -0
- package/COMPONENTS.md +10 -2
- package/dist/components/WButton.vue.d.ts +1 -1
- package/dist/components/WSelect.vue.d.ts +4 -0
- package/dist/components/WSplitButton.vue.d.ts +1 -1
- package/dist/wpic-ui.cjs +11 -11
- package/dist/wpic-ui.css +1 -1
- package/dist/wpic-ui.js +192 -185
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.9.6
|
|
2
|
+
|
|
3
|
+
- WButton and WSplitButton: add ghost-transparent for inherited foreground, translucent hover surfaces, and subdued resting opacity on colored backgrounds.
|
|
4
|
+
|
|
5
|
+
## 0.9.5
|
|
6
|
+
|
|
7
|
+
- WSelect: expose automatic popover placement and a viewport-clamped minimum height; keep search and selection controls fixed while only the options list scrolls.
|
|
8
|
+
|
|
1
9
|
## 0.9.4
|
|
2
10
|
|
|
3
11
|
- WCard: reduce body vertical padding independently of horizontal spacing (sm: 8/12px, md: 12/16px, lg: 16/24px).
|
package/COMPONENTS.md
CHANGED
|
@@ -189,11 +189,17 @@ Slots: default (body or standalone message), `actions`. Emits `close`. Warnings
|
|
|
189
189
|
|
|
190
190
|
## WButton
|
|
191
191
|
|
|
192
|
+
Use `variant="ghost-transparent"` for controls over colored surfaces. It inherits
|
|
193
|
+
the surface foreground, has no resting background, and uses the same translucent
|
|
194
|
+
gray hover background (`#80808026`) in light and dark themes. Opacity is 60% at
|
|
195
|
+
rest and 100% on hover or keyboard focus. Disabled/loading retain disabled styling.
|
|
196
|
+
Unlike `ghost`, it does not use an opaque theme surface on hover.
|
|
197
|
+
|
|
192
198
|
**Import:** `import { WButton } from '@wpic/ui'`
|
|
193
199
|
|
|
194
200
|
**Props:**
|
|
195
201
|
```ts
|
|
196
|
-
variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'outline'
|
|
202
|
+
variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
|
|
197
203
|
size?: 'xs' | 'sm' | 'md' | 'lg'
|
|
198
204
|
loading?: boolean
|
|
199
205
|
disabled?: boolean
|
|
@@ -446,7 +452,7 @@ slot and the menu entries via `options`.
|
|
|
446
452
|
**Props:**
|
|
447
453
|
```ts
|
|
448
454
|
options: WSplitButtonOption[] // { value: string, label: string, icon?: object | Function, disabled?: boolean }
|
|
449
|
-
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'outline'
|
|
455
|
+
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
|
|
450
456
|
size?: 'xs' | 'sm' | 'md' | 'lg'
|
|
451
457
|
icon?: object | Function // icon for the primary button
|
|
452
458
|
disabled?: boolean
|
|
@@ -784,3 +790,5 @@ For a shorter metric card, use `compact`. Use `changePosition="label"` to align
|
|
|
784
790
|
### Localization options (0.6.6)
|
|
785
791
|
|
|
786
792
|
WTable accepts `labels` (`loading`, `results`, `of`, `item`, `items`, `previous`, `next`) and `loadingSpinner=false` for plain loading text. Existing `emptyText` and `searchPlaceholder` remain available. WSelect accepts `searchPlaceholder`, `selectAllLabel`, `clearLabel` and `noResultsLabel`; WFilterBar forwards `selectLabels` to its selects. WDateRangePicker accepts `locale`, `applyLabel`, `previousMonthLabel`, `nextMonthLabel` in addition to translated `presets`, `ariaLabel`, `clearLabel` and `placeholder`.
|
|
793
|
+
|
|
794
|
+
WSelect popovers support `popoverAutoPlacement` to choose the side with the most room and `popoverMinHeight` for a viewport-clamped minimum height. Set `popoverWidth` for compact triggers with longer menu labels.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'outline';
|
|
2
|
+
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline';
|
|
3
3
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
@@ -35,6 +35,10 @@ type __VLS_Props = {
|
|
|
35
35
|
popoverWidth?: string;
|
|
36
36
|
popoverPlacement?: 'top' | 'bottom' | 'left' | 'right' | 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
37
37
|
popoverFlip?: boolean;
|
|
38
|
+
/** Let Floating UI choose the side with the most available space. */
|
|
39
|
+
popoverAutoPlacement?: boolean;
|
|
40
|
+
/** Optional usable panel height, clamped to the available viewport. */
|
|
41
|
+
popoverMinHeight?: string;
|
|
38
42
|
popoverMaxHeight?: string;
|
|
39
43
|
};
|
|
40
44
|
declare var __VLS_42: {
|
|
@@ -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' | 'outline';
|
|
9
|
+
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline';
|
|
10
10
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
11
11
|
icon?: object | Function;
|
|
12
12
|
disabled?: boolean;
|