@plexui/vue 0.1.4 → 0.1.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/dist/es/components/Checkbox/Checkbox.js +4 -1
- package/dist/es/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/es/components/DateRangePicker/Calendar.js +19 -18
- package/dist/es/components/DateRangePicker/Calendar.js.map +1 -1
- package/dist/es/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/es/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/es/components/DateRangePicker/context.js.map +1 -1
- package/dist/es/components/DateRangePicker/index.js.map +1 -1
- package/dist/es/components/DateRangePicker/types.js.map +1 -1
- package/dist/es/components/Dialog/Dialog.js +46 -11
- package/dist/es/components/Dialog/Dialog.js.map +1 -1
- package/dist/es/components/Field/Field.js +6 -3
- package/dist/es/components/Field/Field.js.map +1 -1
- package/dist/es/components/InputGroup/InputGroup.js +0 -1
- package/dist/es/components/InputGroup/InputGroup.js.map +1 -1
- package/dist/es/components/Menu/Menu.js +27 -5
- package/dist/es/components/Menu/Menu.js.map +1 -1
- package/dist/es/components/Popover/Popover.js +24 -9
- package/dist/es/components/Popover/Popover.js.map +1 -1
- package/dist/es/components/Select/Select.js +31 -15
- package/dist/es/components/Select/Select.js.map +1 -1
- package/dist/es/components/SelectControl/SelectControl.js +7 -4
- package/dist/es/components/SelectControl/SelectControl.js.map +1 -1
- package/dist/es/components/Transition/TransitionGroup.js +12 -1
- package/dist/es/components/Transition/TransitionGroup.js.map +1 -1
- package/dist/es/components/Transition/shared.js +30 -1
- package/dist/es/components/Transition/shared.js.map +1 -1
- package/dist/es/components/Transition/useTransitionChild.js +2 -2
- package/dist/es/components/Transition/useTransitionChild.js.map +1 -1
- package/dist/es/lib/dateUtils.js +5 -0
- package/dist/es/lib/dateUtils.js.map +1 -1
- package/dist/es/lib/helpers.js +30 -0
- package/dist/es/lib/helpers.js.map +1 -1
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +23 -1
- package/dist/types/components/DateRangePicker/context.d.ts +2 -1
- package/dist/types/components/DateRangePicker/index.d.ts +1 -1
- package/dist/types/components/DateRangePicker/types.d.ts +2 -0
- package/dist/types/components/Field/Field.d.ts +2 -2
- package/dist/types/components/Select/Select.d.ts +11 -0
- package/dist/types/components/SelectControl/SelectControl.d.ts +11 -0
- package/dist/types/components/Transition/TransitionGroup.d.ts +11 -0
- package/dist/types/components/Transition/shared.d.ts +23 -0
- package/dist/types/components/Transition/useTransitionChild.d.ts +1 -0
- package/dist/types/lib/dateUtils.d.ts +5 -0
- package/dist/types/lib/helpers.d.ts +13 -0
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ declare const FieldComponent: import("vue").DefineComponent<import("vue").Extrac
|
|
|
33
33
|
type: PropType<"vertical" | "horizontal">;
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
|
-
/** Overrides the generated id set on the control and the label's `for`. */
|
|
36
|
+
/** Overrides the generated id set on the control and the label's `for`. A child's own `id` wins over both. */
|
|
37
37
|
id: StringConstructor;
|
|
38
38
|
/** Optically aligns the control's text with surrounding content; passed to the control. */
|
|
39
39
|
opticallyAlign: PropType<"start" | "end">;
|
|
@@ -63,7 +63,7 @@ declare const FieldComponent: import("vue").DefineComponent<import("vue").Extrac
|
|
|
63
63
|
type: PropType<"vertical" | "horizontal">;
|
|
64
64
|
default: string;
|
|
65
65
|
};
|
|
66
|
-
/** Overrides the generated id set on the control and the label's `for`. */
|
|
66
|
+
/** Overrides the generated id set on the control and the label's `for`. A child's own `id` wins over both. */
|
|
67
67
|
id: StringConstructor;
|
|
68
68
|
/** Optically aligns the control's text with surrounding content; passed to the control. */
|
|
69
69
|
opticallyAlign: PropType<"start" | "end">;
|
|
@@ -89,6 +89,11 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
89
89
|
type: StringConstructor;
|
|
90
90
|
default: string;
|
|
91
91
|
};
|
|
92
|
+
/** Text of a `multiple` trigger when every option is selected. @default "All selected" */
|
|
93
|
+
allSelectedLabel: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
92
97
|
/** Displays loading indicator on top of button contents. @default false */
|
|
93
98
|
loading: {
|
|
94
99
|
type: BooleanConstructor;
|
|
@@ -236,6 +241,11 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
236
241
|
type: StringConstructor;
|
|
237
242
|
default: string;
|
|
238
243
|
};
|
|
244
|
+
/** Text of a `multiple` trigger when every option is selected. @default "All selected" */
|
|
245
|
+
allSelectedLabel: {
|
|
246
|
+
type: StringConstructor;
|
|
247
|
+
default: string;
|
|
248
|
+
};
|
|
239
249
|
/** Displays loading indicator on top of button contents. @default false */
|
|
240
250
|
loading: {
|
|
241
251
|
type: BooleanConstructor;
|
|
@@ -359,6 +369,7 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
359
369
|
clearable: boolean;
|
|
360
370
|
dropdownIconType: DropdownIconType;
|
|
361
371
|
loadingPlaceholder: string;
|
|
372
|
+
allSelectedLabel: string;
|
|
362
373
|
listMaxWidth: ListSize;
|
|
363
374
|
searchPlaceholder: string;
|
|
364
375
|
searchAriaLabel: string;
|
|
@@ -38,6 +38,11 @@ declare const SelectControlComponent: import("vue").DefineComponent<import("vue"
|
|
|
38
38
|
onClearClick: PropType<() => void>;
|
|
39
39
|
/** Primary handler for when the control is selected with pointer or keyboard events (`@interact`). */
|
|
40
40
|
onInteract: PropType<() => void>;
|
|
41
|
+
/** Enter interacts too, as on a combobox button. Off by default, as Enter may be an attempt to submit a form. @default false */
|
|
42
|
+
interactOnEnter: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
41
46
|
/** Size and spacing of the control: `3xs` 22px up to `3xl` 48px. @default "md" */
|
|
42
47
|
size: {
|
|
43
48
|
type: PropType<ControlSize>;
|
|
@@ -94,6 +99,11 @@ declare const SelectControlComponent: import("vue").DefineComponent<import("vue"
|
|
|
94
99
|
onClearClick: PropType<() => void>;
|
|
95
100
|
/** Primary handler for when the control is selected with pointer or keyboard events (`@interact`). */
|
|
96
101
|
onInteract: PropType<() => void>;
|
|
102
|
+
/** Enter interacts too, as on a combobox button. Off by default, as Enter may be an attempt to submit a form. @default false */
|
|
103
|
+
interactOnEnter: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
97
107
|
/** Size and spacing of the control: `3xs` 22px up to `3xl` 48px. @default "md" */
|
|
98
108
|
size: {
|
|
99
109
|
type: PropType<ControlSize>;
|
|
@@ -120,6 +130,7 @@ declare const SelectControlComponent: import("vue").DefineComponent<import("vue"
|
|
|
120
130
|
pill: boolean;
|
|
121
131
|
loading: boolean;
|
|
122
132
|
selected: boolean;
|
|
133
|
+
interactOnEnter: boolean;
|
|
123
134
|
dropdownIconType: DropdownIconType;
|
|
124
135
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
125
136
|
type SelectControlOwnProps = InstanceType<typeof SelectControlComponent>["$props"];
|
|
@@ -48,6 +48,11 @@ export declare const TransitionGroup: import("vue").DefineComponent<import("vue"
|
|
|
48
48
|
type: BooleanConstructor;
|
|
49
49
|
default: () => boolean;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* For overlays: an exiting child is `inert`, out of the tab order and of hit
|
|
53
|
+
* testing, and with reduced motion it leaves without waiting for `exitDuration`.
|
|
54
|
+
*/
|
|
55
|
+
overlay: BooleanConstructor;
|
|
51
56
|
/** Determines how new children are added to the children array */
|
|
52
57
|
insertMethod: {
|
|
53
58
|
type: PropType<InsertMethod>;
|
|
@@ -97,6 +102,11 @@ export declare const TransitionGroup: import("vue").DefineComponent<import("vue"
|
|
|
97
102
|
type: BooleanConstructor;
|
|
98
103
|
default: () => boolean;
|
|
99
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* For overlays: an exiting child is `inert`, out of the tab order and of hit
|
|
107
|
+
* testing, and with reduced motion it leaves without waiting for `exitDuration`.
|
|
108
|
+
*/
|
|
109
|
+
overlay: BooleanConstructor;
|
|
100
110
|
/** Determines how new children are added to the children array */
|
|
101
111
|
insertMethod: {
|
|
102
112
|
type: PropType<InsertMethod>;
|
|
@@ -116,6 +126,7 @@ export declare const TransitionGroup: import("vue").DefineComponent<import("vue"
|
|
|
116
126
|
onExitComplete: PropType<TransitionGroupChildCallback>;
|
|
117
127
|
}>> & Readonly<{}>, {
|
|
118
128
|
as: Tag;
|
|
129
|
+
overlay: boolean;
|
|
119
130
|
enterDuration: number;
|
|
120
131
|
exitDuration: number;
|
|
121
132
|
preventInitialTransition: boolean;
|
|
@@ -34,3 +34,26 @@ export type TransitionGroupChildCallbacks = {
|
|
|
34
34
|
onExitComplete?: TransitionGroupChildCallback;
|
|
35
35
|
};
|
|
36
36
|
export type InsertMethod = "append" | "prepend";
|
|
37
|
+
export declare const overlayTiming: {
|
|
38
|
+
enterDuration: number;
|
|
39
|
+
exitDuration: number;
|
|
40
|
+
};
|
|
41
|
+
/** A panel that crosses the screen: a sheet or a side panel */
|
|
42
|
+
export declare const overlayTimingLarge: {
|
|
43
|
+
enterDuration: number;
|
|
44
|
+
exitDuration: number;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* An overlay stays a dismissable layer through its exit. A press on its trigger
|
|
48
|
+
* turns it around, and the layer must not count that press as outside and
|
|
49
|
+
* close it again: pass `transition` to the TransitionGroup and
|
|
50
|
+
* `onInteractOutside` to the layer.
|
|
51
|
+
*/
|
|
52
|
+
export declare const createExitGuard: () => {
|
|
53
|
+
transition: {
|
|
54
|
+
onExit: () => void;
|
|
55
|
+
onEnterActive: () => void;
|
|
56
|
+
onExitComplete: () => void;
|
|
57
|
+
};
|
|
58
|
+
onInteractOutside: (event: Event) => void;
|
|
59
|
+
};
|
|
@@ -19,6 +19,11 @@ export declare const isSameDay: (targetDate: DateTime, compareDate: DateTime) =>
|
|
|
19
19
|
* Check if a date is today
|
|
20
20
|
*/
|
|
21
21
|
export declare const isToday: (dateTime: DateTime) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Where a date sits in a week row that starts on `weekStartsOn`, 0 (Sunday) to
|
|
24
|
+
* 6 (Saturday). Luxon's weekday runs from 1 (Monday) to 7 (Sunday).
|
|
25
|
+
*/
|
|
26
|
+
export declare const weekPosition: (date: DateTime, weekStartsOn: number) => number;
|
|
22
27
|
/**
|
|
23
28
|
* Split an array of days into weeks (arrays of 7 days each)
|
|
24
29
|
*/
|
|
@@ -21,7 +21,20 @@ export declare const toTransformProperty: ({ x, y, scale, rotate, skewX, skewY,
|
|
|
21
21
|
export declare const toFilterProperty: ({ blur }?: {
|
|
22
22
|
blur?: number | undefined;
|
|
23
23
|
}) => string;
|
|
24
|
+
/** The `data-*` attributes among a component's props, to pass on to its element. */
|
|
25
|
+
export declare const dataAttributes: (props: Record<string, unknown>) => {
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
};
|
|
24
28
|
export declare const preventDefaultHandler: (evt: Event) => void;
|
|
29
|
+
/**
|
|
30
|
+
* For an overlay's close auto focus: focus that moved on to something else
|
|
31
|
+
* while the overlay left stays there instead of going back to the trigger.
|
|
32
|
+
*/
|
|
33
|
+
export declare const keepMovedFocus: (evt: Event) => void;
|
|
34
|
+
export declare const pressHandlers: (action: () => void) => {
|
|
35
|
+
onPointerup: (evt: PointerEvent) => void;
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
};
|
|
25
38
|
export declare const focusableElements: (element: HTMLElement) => NodeListOf<HTMLElement>;
|
|
26
39
|
export declare const sleep: (ms: number) => Promise<void>;
|
|
27
40
|
/**
|