@wpic/ui 0.9.5 → 0.9.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/CHANGELOG.md +8 -0
- package/COMPONENTS.md +8 -2
- package/dist/components/WButton.vue.d.ts +1 -1
- package/dist/components/WDatePicker.vue.d.ts +8 -0
- package/dist/components/WSplitButton.vue.d.ts +1 -1
- package/dist/wpic-ui.cjs +13 -13
- package/dist/wpic-ui.css +1 -1
- package/dist/wpic-ui.js +1352 -1343
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.9.7
|
|
2
|
+
|
|
3
|
+
- WDatePicker: choose the side with the most available viewport space by default, keep adapting while open, and expose preferred/forced popover placement controls.
|
|
4
|
+
|
|
5
|
+
## 0.9.6
|
|
6
|
+
|
|
7
|
+
- WButton and WSplitButton: add ghost-transparent for inherited foreground, translucent hover surfaces, and subdued resting opacity on colored backgrounds.
|
|
8
|
+
|
|
1
9
|
## 0.9.5
|
|
2
10
|
|
|
3
11
|
- WSelect: expose automatic popover placement and a viewport-clamped minimum height; keep search and selection controls fixed while only the options list scrolls.
|
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
|
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/vue';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
modelValue?: string | null;
|
|
3
4
|
min?: string;
|
|
@@ -12,6 +13,12 @@ type __VLS_Props = {
|
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
clearable?: boolean;
|
|
14
15
|
clearLabel?: string;
|
|
16
|
+
/** Preferred side. When omitted, Floating UI chooses the side with the most room. */
|
|
17
|
+
popoverPlacement?: Placement;
|
|
18
|
+
/** Override automatic placement. Defaults to true unless popoverPlacement is provided. */
|
|
19
|
+
popoverAutoPlacement?: boolean;
|
|
20
|
+
/** Allow a preferred placement to flip to its opposite side. */
|
|
21
|
+
popoverFlip?: boolean;
|
|
15
22
|
};
|
|
16
23
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
24
|
"update:modelValue": (value: string) => any;
|
|
@@ -26,6 +33,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
26
33
|
placeholder: string;
|
|
27
34
|
clearable: boolean;
|
|
28
35
|
clearLabel: string;
|
|
36
|
+
popoverFlip: boolean;
|
|
29
37
|
ariaLabel: string;
|
|
30
38
|
locale: string;
|
|
31
39
|
weekStartsOn: 0 | 1;
|
|
@@ -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;
|