@plexui/vue 0.9.0 → 0.11.0
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/Alert/Alert.js +6 -2
- package/dist/es/components/Alert/Alert.js.map +1 -1
- package/dist/es/components/Avatar/Avatar.js +3 -1
- package/dist/es/components/Avatar/Avatar.js.map +1 -1
- package/dist/es/components/ButtonGroup/ButtonGroup.js +7 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/es/components/ButtonGroup/index.js.map +1 -1
- package/dist/es/components/Checkbox/Checkbox.js +5 -6
- package/dist/es/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/es/components/ColorPicker/ColorPicker.js +476 -0
- package/dist/es/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/es/components/ColorPicker/ColorWell.js +186 -0
- package/dist/es/components/ColorPicker/ColorWell.js.map +1 -0
- package/dist/es/components/ColorPicker/index.js +3 -0
- package/dist/es/components/ColorPicker/index.js.map +1 -0
- package/dist/es/components/ColorPicker/shared.js +132 -0
- package/dist/es/components/ColorPicker/shared.js.map +1 -0
- package/dist/es/components/ContextMenu/ContextMenu.js +223 -0
- package/dist/es/components/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/es/components/ContextMenu/index.js +2 -0
- package/dist/es/components/ContextMenu/index.js.map +1 -0
- package/dist/es/components/ContextMenu/shared.js +58 -0
- package/dist/es/components/ContextMenu/shared.js.map +1 -0
- package/dist/es/components/DatePicker/DatePicker.js +19 -3
- package/dist/es/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/es/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/es/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/es/components/Dialog/Dialog.js +245 -25
- package/dist/es/components/Dialog/Dialog.js.map +1 -1
- package/dist/es/components/Dialog/dialogSteps.js +85 -0
- package/dist/es/components/Dialog/dialogSteps.js.map +1 -0
- package/dist/es/components/Dialog/dialogViewport.js +74 -0
- package/dist/es/components/Dialog/dialogViewport.js.map +1 -0
- package/dist/es/components/Dialog/index.js +1 -1
- package/dist/es/components/Dialog/index.js.map +1 -1
- package/dist/es/components/Dialog/sheetDrag.js +2 -1
- package/dist/es/components/Dialog/sheetDrag.js.map +1 -1
- package/dist/es/components/Field/Field.js +11 -3
- package/dist/es/components/Field/Field.js.map +1 -1
- package/dist/es/components/FieldGroup/FieldGroup.js +12 -1
- package/dist/es/components/FieldGroup/FieldGroup.js.map +1 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.js +2 -2
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.js.map +1 -1
- package/dist/es/components/Icon/index.js +1 -0
- package/dist/es/components/Icon/index.js.map +1 -1
- package/dist/es/components/Icon/svg/Eyedropper.js +10 -0
- package/dist/es/components/Icon/svg/Eyedropper.js.map +1 -0
- package/dist/es/components/IndexBar/IndexBar.js +215 -0
- package/dist/es/components/IndexBar/IndexBar.js.map +1 -0
- package/dist/es/components/IndexBar/index.js +2 -0
- package/dist/es/components/IndexBar/index.js.map +1 -0
- package/dist/es/components/Indicator/LoadingIndicator.js +1 -1
- package/dist/es/components/Indicator/LoadingIndicator.js.map +1 -1
- package/dist/es/components/Input/Input.js +3 -2
- package/dist/es/components/Input/Input.js.map +1 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.js +149 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.js.map +1 -1
- package/dist/es/components/Menu/Menu.js +206 -33
- package/dist/es/components/Menu/Menu.js.map +1 -1
- package/dist/es/components/Menu/index.js +1 -1
- package/dist/es/components/Menu/index.js.map +1 -1
- package/dist/es/components/Page/Page.js +43 -11
- package/dist/es/components/Page/Page.js.map +1 -1
- package/dist/es/components/PageControl/PageControl.js +210 -0
- package/dist/es/components/PageControl/PageControl.js.map +1 -0
- package/dist/es/components/PageControl/index.js +2 -0
- package/dist/es/components/PageControl/index.js.map +1 -0
- package/dist/es/components/PhoneLayout/PhoneLayout.js +50 -0
- package/dist/es/components/PhoneLayout/PhoneLayout.js.map +1 -0
- package/dist/es/components/PhoneLayout/index.js +2 -0
- package/dist/es/components/PhoneLayout/index.js.map +1 -0
- package/dist/es/components/Popover/Popover.js +5 -1
- package/dist/es/components/Popover/Popover.js.map +1 -1
- package/dist/es/components/Popover/deferredPointerDownOutside.js +59 -4
- package/dist/es/components/Popover/deferredPointerDownOutside.js.map +1 -1
- package/dist/es/components/Select/Select.js +18 -11
- package/dist/es/components/Select/Select.js.map +1 -1
- package/dist/es/components/SelectControl/SelectControl.js +1 -0
- package/dist/es/components/SelectControl/SelectControl.js.map +1 -1
- package/dist/es/components/Sidebar/Sidebar.js +21 -6
- package/dist/es/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/es/components/Slider/Slider.js +44 -9
- package/dist/es/components/Slider/Slider.js.map +1 -1
- package/dist/es/components/Stepper/Stepper.js +195 -0
- package/dist/es/components/Stepper/Stepper.js.map +1 -0
- package/dist/es/components/Stepper/index.js +2 -0
- package/dist/es/components/Stepper/index.js.map +1 -0
- package/dist/es/components/SwipeActions/SwipeActions.js +374 -0
- package/dist/es/components/SwipeActions/SwipeActions.js.map +1 -0
- package/dist/es/components/SwipeActions/index.js +2 -0
- package/dist/es/components/SwipeActions/index.js.map +1 -0
- package/dist/es/components/Switch/Switch.js +3 -1
- package/dist/es/components/Switch/Switch.js.map +1 -1
- package/dist/es/components/TabBar/TabBar.js +205 -0
- package/dist/es/components/TabBar/TabBar.js.map +1 -0
- package/dist/es/components/TabBar/index.js +2 -0
- package/dist/es/components/TabBar/index.js.map +1 -0
- package/dist/es/components/Tabs/Tabs.js +10 -2
- package/dist/es/components/Tabs/Tabs.js.map +1 -1
- package/dist/es/components/TagInput/TagInput.js +3 -46
- package/dist/es/components/TagInput/TagInput.js.map +1 -1
- package/dist/es/components/Textarea/Textarea.js +2 -0
- package/dist/es/components/Textarea/Textarea.js.map +1 -1
- package/dist/es/components/Tip/Tip.js +276 -0
- package/dist/es/components/Tip/Tip.js.map +1 -0
- package/dist/es/components/Tip/index.js +2 -0
- package/dist/es/components/Tip/index.js.map +1 -0
- package/dist/es/components/Toast/ToastRenderer.js +30 -13
- package/dist/es/components/Toast/ToastRenderer.js.map +1 -1
- package/dist/es/components/Toast/Toaster.js +17 -6
- package/dist/es/components/Toast/Toaster.js.map +1 -1
- package/dist/es/components/Toast/toastLifecycle.js +113 -1
- package/dist/es/components/Toast/toastLifecycle.js.map +1 -1
- package/dist/es/components/Toolbar/Toolbar.js +37 -6
- package/dist/es/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/es/components/Toolbar/index.js.map +1 -1
- package/dist/es/components/Tooltip/slot.js +3 -3
- package/dist/es/components/Tooltip/slot.js.map +1 -1
- package/dist/es/composables/useEscCloseStack.js +8 -4
- package/dist/es/composables/useEscCloseStack.js.map +1 -1
- package/dist/es/lib/fieldRow.js +15 -2
- package/dist/es/lib/fieldRow.js.map +1 -1
- package/dist/es/lib/floatingBoundary.js +3 -1
- package/dist/es/lib/floatingBoundary.js.map +1 -1
- package/dist/es/lib/helpers.js +21 -0
- package/dist/es/lib/helpers.js.map +1 -1
- package/dist/es/lib/menuSubmenuPlacement.js +51 -6
- package/dist/es/lib/menuSubmenuPlacement.js.map +1 -1
- package/dist/es/lib/menuTriggerCover.js +70 -0
- package/dist/es/lib/menuTriggerCover.js.map +1 -0
- package/dist/es/lib/phoneLayout.js +16 -0
- package/dist/es/lib/phoneLayout.js.map +1 -0
- package/dist/es/lib/scrollEdges.js +34 -0
- package/dist/es/lib/scrollEdges.js.map +1 -0
- package/dist/es/lib/toastRegion.js +6 -0
- package/dist/es/lib/toastRegion.js.map +1 -0
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +13 -0
- package/dist/types/components/ButtonGroup/index.d.ts +1 -1
- package/dist/types/components/ColorPicker/ColorPicker.d.ts +244 -0
- package/dist/types/components/ColorPicker/ColorWell.d.ts +334 -0
- package/dist/types/components/ColorPicker/index.d.ts +3 -0
- package/dist/types/components/ColorPicker/shared.d.ts +69 -0
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +128 -0
- package/dist/types/components/ContextMenu/index.d.ts +1 -0
- package/dist/types/components/ContextMenu/shared.d.ts +51 -0
- package/dist/types/components/DatePicker/DatePicker.d.ts +24 -4
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +4 -4
- package/dist/types/components/Dialog/Dialog.d.ts +100 -4
- package/dist/types/components/Dialog/dialogSteps.d.ts +10 -0
- package/dist/types/components/Dialog/dialogViewport.d.ts +1 -0
- package/dist/types/components/Dialog/index.d.ts +1 -1
- package/dist/types/components/Field/Field.d.ts +21 -2
- package/dist/types/components/FieldGroup/FieldGroup.d.ts +18 -1
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Icon/svg/Eyedropper.d.ts +3 -0
- package/dist/types/components/IndexBar/IndexBar.d.ts +112 -0
- package/dist/types/components/IndexBar/index.d.ts +1 -0
- package/dist/types/components/Indicator/LoadingIndicator.d.ts +2 -2
- package/dist/types/components/Menu/Menu.d.ts +153 -40
- package/dist/types/components/Menu/index.d.ts +1 -1
- package/dist/types/components/Page/Page.d.ts +13 -5
- package/dist/types/components/PageControl/PageControl.d.ts +216 -0
- package/dist/types/components/PageControl/index.d.ts +1 -0
- package/dist/types/components/PhoneLayout/PhoneLayout.d.ts +21 -0
- package/dist/types/components/PhoneLayout/index.d.ts +1 -0
- package/dist/types/components/Popover/deferredPointerDownOutside.d.ts +1 -1
- package/dist/types/components/Select/Select.d.ts +6 -6
- package/dist/types/components/Stepper/Stepper.d.ts +338 -0
- package/dist/types/components/Stepper/index.d.ts +1 -0
- package/dist/types/components/SwipeActions/SwipeActions.d.ts +135 -0
- package/dist/types/components/SwipeActions/index.d.ts +1 -0
- package/dist/types/components/TabBar/TabBar.d.ts +405 -0
- package/dist/types/components/TabBar/index.d.ts +1 -0
- package/dist/types/components/Tip/Tip.d.ts +146 -0
- package/dist/types/components/Tip/index.d.ts +1 -0
- package/dist/types/components/Toast/toastLifecycle.d.ts +34 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +26 -9
- package/dist/types/components/Toolbar/index.d.ts +1 -1
- package/dist/types/components/Tooltip/CopyTooltip.d.ts +1 -1
- package/dist/types/composables/useEscCloseStack.d.ts +2 -2
- package/dist/types/lib/fieldRow.d.ts +5 -0
- package/dist/types/lib/helpers.d.ts +6 -0
- package/dist/types/lib/menuSubmenuPlacement.d.ts +14 -1
- package/dist/types/lib/menuTriggerCover.d.ts +23 -0
- package/dist/types/lib/phoneLayout.d.ts +11 -0
- package/dist/types/lib/scrollEdges.d.ts +16 -0
- package/dist/types/lib/toastRegion.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
declare const ContextMenuComponent: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
/** The menu opened */
|
|
5
|
+
open: () => true;
|
|
6
|
+
/** The menu closed */
|
|
7
|
+
close: () => true;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
onOpen?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
/** Props of `ContextMenu`. */
|
|
13
|
+
export type ContextMenuProps = InstanceType<typeof ContextMenuComponent>["$props"];
|
|
14
|
+
/**
|
|
15
|
+
* A menu of actions for an element, after the iOS 26 kit Context Menu (507:25994): a secondary click opens it at
|
|
16
|
+
* the pointer, a touch and hold opens it beside the element, which stays clear above a dimmed, blurred page, as
|
|
17
|
+
* iOS lifts the preview. The items are the ones of `Menu`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ContextMenu: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
/** The menu opened */
|
|
23
|
+
open: () => true;
|
|
24
|
+
/** The menu closed */
|
|
25
|
+
close: () => true;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
27
|
+
onClose?: (() => any) | undefined;
|
|
28
|
+
onOpen?: (() => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
declare const ContextMenuTriggerComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
31
|
+
/** When `true`, the element keeps the browser's own context menu. */
|
|
32
|
+
disabled: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
/** When `true`, the element keeps the browser's own context menu. */
|
|
40
|
+
disabled: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
}>> & Readonly<{}>, {
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
/** Props of `ContextMenuTrigger`. */
|
|
48
|
+
export type ContextMenuTriggerProps = InstanceType<typeof ContextMenuTriggerComponent>["$props"];
|
|
49
|
+
/** The element the menu is for (React `ContextMenu.Trigger`): it renders its child, which keeps its own role and focus. */
|
|
50
|
+
export declare const ContextMenuTrigger: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
51
|
+
/** When `true`, the element keeps the browser's own context menu. */
|
|
52
|
+
disabled: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
/** When `true`, the element keeps the browser's own context menu. */
|
|
60
|
+
disabled: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
67
|
+
declare const ContextMenuContentComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
68
|
+
/** Defines the `width` property of the content */
|
|
69
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
70
|
+
/** Defines the `min-width` property of the content, in pixels. */
|
|
71
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
72
|
+
/** Defines the `max-height` property of the content, in pixels. */
|
|
73
|
+
maxHeight: NumberConstructor;
|
|
74
|
+
/** Rounder list with fully rounded rows. */
|
|
75
|
+
pill: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
82
|
+
/** Defines the `width` property of the content */
|
|
83
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
84
|
+
/** Defines the `min-width` property of the content, in pixels. */
|
|
85
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
86
|
+
/** Defines the `max-height` property of the content, in pixels. */
|
|
87
|
+
maxHeight: NumberConstructor;
|
|
88
|
+
/** Rounder list with fully rounded rows. */
|
|
89
|
+
pill: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{}>, {
|
|
94
|
+
pill: boolean;
|
|
95
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
96
|
+
/** Props of `ContextMenuContent`. */
|
|
97
|
+
export type ContextMenuContentProps = InstanceType<typeof ContextMenuContentComponent>["$props"];
|
|
98
|
+
/** The menu (React `ContextMenu.Content`); its items are `MenuItem`, `MenuSeparator` and the other Menu items. */
|
|
99
|
+
export declare const ContextMenuContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
100
|
+
/** Defines the `width` property of the content */
|
|
101
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
102
|
+
/** Defines the `min-width` property of the content, in pixels. */
|
|
103
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
104
|
+
/** Defines the `max-height` property of the content, in pixels. */
|
|
105
|
+
maxHeight: NumberConstructor;
|
|
106
|
+
/** Rounder list with fully rounded rows. */
|
|
107
|
+
pill: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
112
|
+
[key: string]: any;
|
|
113
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
114
|
+
/** Defines the `width` property of the content */
|
|
115
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
116
|
+
/** Defines the `min-width` property of the content, in pixels. */
|
|
117
|
+
minWidth: (StringConstructor | NumberConstructor)[];
|
|
118
|
+
/** Defines the `max-height` property of the content, in pixels. */
|
|
119
|
+
maxHeight: NumberConstructor;
|
|
120
|
+
/** Rounder list with fully rounded rows. */
|
|
121
|
+
pill: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
}>> & Readonly<{}>, {
|
|
126
|
+
pill: boolean;
|
|
127
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
128
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ContextMenu, ContextMenuContent, ContextMenuTrigger, type ContextMenuContentProps, type ContextMenuProps, type ContextMenuTriggerProps } from "./ContextMenu.js";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** A touch held this long opens the menu, as a UIKit long press (0.5 s). */
|
|
2
|
+
export declare const CONTEXT_MENU_LONG_PRESS = 500;
|
|
3
|
+
/** A touch that moves farther than this before then scrolls or drags instead. */
|
|
4
|
+
export declare const CONTEXT_MENU_LONG_PRESS_SLOP = 10;
|
|
5
|
+
/** The kit's gap between the preview and the menu: iOS 27 Context Menu 125:58750, Alignment=Vertical, the menu at
|
|
6
|
+
* 176.5 under a content area that ends at 160.5 (the iOS 26 kit had 18). */
|
|
7
|
+
export declare const CONTEXT_MENU_PREVIEW_GAP = 16;
|
|
8
|
+
type Rect = {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
/** Where the menu opens: at the pointer, under the element for the keyboard, or beside a touch-and-hold preview. */
|
|
15
|
+
export type ContextMenuPresentation = {
|
|
16
|
+
kind: "pointer";
|
|
17
|
+
rect: Rect;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "keyboard";
|
|
20
|
+
rect: Rect;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "preview";
|
|
23
|
+
rect: Rect;
|
|
24
|
+
radius: number;
|
|
25
|
+
align: "start" | "end";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The preview of a touch and hold: the element's box and corner (its own, or `--context-menu-preview-radius`), and
|
|
29
|
+
* the edge the menu keeps to, the one on the side of the touch, as the kit's Side=Leading and Side=Trailing.
|
|
30
|
+
*/
|
|
31
|
+
export declare function contextMenuPreview(element: HTMLElement, touchX: number): ContextMenuPresentation;
|
|
32
|
+
/** The menu's side, alignment and offsets for a presentation. */
|
|
33
|
+
export declare function contextMenuPlacement(presentation: ContextMenuPresentation | null): {
|
|
34
|
+
side: "bottom";
|
|
35
|
+
align: "end" | "start";
|
|
36
|
+
sideOffset: number;
|
|
37
|
+
alignOffset: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The dimming covers the page but the element: an SVG mask with the element's rounded box cut out, written to
|
|
41
|
+
* `--context-menu-hole`, so the element stays clear above the dimmed, blurred page.
|
|
42
|
+
*/
|
|
43
|
+
export declare function contextMenuHoleMask(preview: Extract<ContextMenuPresentation, {
|
|
44
|
+
kind: "preview";
|
|
45
|
+
}>, viewport?: {
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
}): {
|
|
49
|
+
"--context-menu-hole": string;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -73,8 +73,13 @@ declare const DatePickerComponent: import("vue").DefineComponent<import("vue").E
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
default: boolean;
|
|
75
75
|
};
|
|
76
|
-
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime`) */
|
|
76
|
+
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime` and no `triggerTimeFormat`) */
|
|
77
77
|
triggerDateFormat: StringConstructor;
|
|
78
|
+
/**
|
|
79
|
+
* With `showTime`, the format of the time shown after the date in the trigger. The date and the time are
|
|
80
|
+
* then two parts: in a row of a `FieldGroup` on a phone, the two capsules of iOS's compact date and time.
|
|
81
|
+
*/
|
|
82
|
+
triggerTimeFormat: StringConstructor;
|
|
78
83
|
/** Display a clear action that allows the select to be unset. @default false */
|
|
79
84
|
clearable: {
|
|
80
85
|
type: BooleanConstructor;
|
|
@@ -172,8 +177,13 @@ declare const DatePickerComponent: import("vue").DefineComponent<import("vue").E
|
|
|
172
177
|
type: BooleanConstructor;
|
|
173
178
|
default: boolean;
|
|
174
179
|
};
|
|
175
|
-
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime`) */
|
|
180
|
+
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime` and no `triggerTimeFormat`) */
|
|
176
181
|
triggerDateFormat: StringConstructor;
|
|
182
|
+
/**
|
|
183
|
+
* With `showTime`, the format of the time shown after the date in the trigger. The date and the time are
|
|
184
|
+
* then two parts: in a row of a `FieldGroup` on a phone, the two capsules of iOS's compact date and time.
|
|
185
|
+
*/
|
|
186
|
+
triggerTimeFormat: StringConstructor;
|
|
177
187
|
/** Display a clear action that allows the select to be unset. @default false */
|
|
178
188
|
clearable: {
|
|
179
189
|
type: BooleanConstructor;
|
|
@@ -293,8 +303,13 @@ export declare const DatePicker: import("vue").DefineComponent<import("vue").Ext
|
|
|
293
303
|
type: BooleanConstructor;
|
|
294
304
|
default: boolean;
|
|
295
305
|
};
|
|
296
|
-
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime`) */
|
|
306
|
+
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime` and no `triggerTimeFormat`) */
|
|
297
307
|
triggerDateFormat: StringConstructor;
|
|
308
|
+
/**
|
|
309
|
+
* With `showTime`, the format of the time shown after the date in the trigger. The date and the time are
|
|
310
|
+
* then two parts: in a row of a `FieldGroup` on a phone, the two capsules of iOS's compact date and time.
|
|
311
|
+
*/
|
|
312
|
+
triggerTimeFormat: StringConstructor;
|
|
298
313
|
/** Display a clear action that allows the select to be unset. @default false */
|
|
299
314
|
clearable: {
|
|
300
315
|
type: BooleanConstructor;
|
|
@@ -392,8 +407,13 @@ export declare const DatePicker: import("vue").DefineComponent<import("vue").Ext
|
|
|
392
407
|
type: BooleanConstructor;
|
|
393
408
|
default: boolean;
|
|
394
409
|
};
|
|
395
|
-
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime`) */
|
|
410
|
+
/** Format of dates displayed in the trigger. @default "MM/dd/yy" ("MM/dd/yy HH:mm" with `showTime` and no `triggerTimeFormat`) */
|
|
396
411
|
triggerDateFormat: StringConstructor;
|
|
412
|
+
/**
|
|
413
|
+
* With `showTime`, the format of the time shown after the date in the trigger. The date and the time are
|
|
414
|
+
* then two parts: in a row of a `FieldGroup` on a phone, the two capsules of iOS's compact date and time.
|
|
415
|
+
*/
|
|
416
|
+
triggerTimeFormat: StringConstructor;
|
|
397
417
|
/** Display a clear action that allows the select to be unset. @default false */
|
|
398
418
|
clearable: {
|
|
399
419
|
type: BooleanConstructor;
|
|
@@ -21,7 +21,7 @@ declare const DateRangePickerComponent: import("vue").DefineComponent<import("vu
|
|
|
21
21
|
type: PropType<WeekStart>;
|
|
22
22
|
default: number;
|
|
23
23
|
};
|
|
24
|
-
/** Date range shortcuts for quick selection, shown to the left of the calendar. */
|
|
24
|
+
/** Date range shortcuts for quick selection, shown to the left of the calendar. Not shown below the md breakpoint: on a phone, offer them in a row of their own (see the docs). */
|
|
25
25
|
shortcuts: PropType<DateRangeShortcut[]>;
|
|
26
26
|
/** Preferred side; collisions can flip it. On phones, left and right prefer bottom so seven 44px day targets fit. @default "bottom" */
|
|
27
27
|
side: {
|
|
@@ -113,7 +113,7 @@ declare const DateRangePickerComponent: import("vue").DefineComponent<import("vu
|
|
|
113
113
|
type: PropType<WeekStart>;
|
|
114
114
|
default: number;
|
|
115
115
|
};
|
|
116
|
-
/** Date range shortcuts for quick selection, shown to the left of the calendar. */
|
|
116
|
+
/** Date range shortcuts for quick selection, shown to the left of the calendar. Not shown below the md breakpoint: on a phone, offer them in a row of their own (see the docs). */
|
|
117
117
|
shortcuts: PropType<DateRangeShortcut[]>;
|
|
118
118
|
/** Preferred side; collisions can flip it. On phones, left and right prefer bottom so seven 44px day targets fit. @default "bottom" */
|
|
119
119
|
side: {
|
|
@@ -225,7 +225,7 @@ export declare const DateRangePicker: import("vue").DefineComponent<import("vue"
|
|
|
225
225
|
type: PropType<WeekStart>;
|
|
226
226
|
default: number;
|
|
227
227
|
};
|
|
228
|
-
/** Date range shortcuts for quick selection, shown to the left of the calendar. */
|
|
228
|
+
/** Date range shortcuts for quick selection, shown to the left of the calendar. Not shown below the md breakpoint: on a phone, offer them in a row of their own (see the docs). */
|
|
229
229
|
shortcuts: PropType<DateRangeShortcut[]>;
|
|
230
230
|
/** Preferred side; collisions can flip it. On phones, left and right prefer bottom so seven 44px day targets fit. @default "bottom" */
|
|
231
231
|
side: {
|
|
@@ -317,7 +317,7 @@ export declare const DateRangePicker: import("vue").DefineComponent<import("vue"
|
|
|
317
317
|
type: PropType<WeekStart>;
|
|
318
318
|
default: number;
|
|
319
319
|
};
|
|
320
|
-
/** Date range shortcuts for quick selection, shown to the left of the calendar. */
|
|
320
|
+
/** Date range shortcuts for quick selection, shown to the left of the calendar. Not shown below the md breakpoint: on a phone, offer them in a row of their own (see the docs). */
|
|
321
321
|
shortcuts: PropType<DateRangeShortcut[]>;
|
|
322
322
|
/** Preferred side; collisions can flip it. On phones, left and right prefer bottom so seven 44px day targets fit. @default "bottom" */
|
|
323
323
|
side: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type HTMLAttributes, type PropType, type VNode } from "vue";
|
|
1
|
+
import { type CSSProperties, type HTMLAttributes, type PropType, type VNode } from "vue";
|
|
2
|
+
import { type BarBackground } from "../Toolbar/Toolbar.js";
|
|
2
3
|
/** Modal dialog root. Uncontrolled by default; bind `v-model:open` to control it. */
|
|
3
4
|
export declare const Dialog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
5
|
open: {
|
|
@@ -63,6 +64,27 @@ export declare const DialogContent: import("vue").DefineComponent<import("vue").
|
|
|
63
64
|
onOpenAutoFocus: PropType<(event: Event) => void>;
|
|
64
65
|
/** Called when focus returns on close; `event.preventDefault()` keeps it elsewhere. */
|
|
65
66
|
onCloseAutoFocus: PropType<(event: Event) => void>;
|
|
67
|
+
/**
|
|
68
|
+
* Called on Escape before the dialog closes; `event.preventDefault()` keeps it open, such as for a form with
|
|
69
|
+
* unsaved changes.
|
|
70
|
+
*/
|
|
71
|
+
onEscapeKeyDown: PropType<(event: KeyboardEvent) => void>;
|
|
72
|
+
/**
|
|
73
|
+
* Called on a press or a focus outside the dialog before it closes; `event.preventDefault()` keeps it open, such
|
|
74
|
+
* as for a press on a developer panel over the page.
|
|
75
|
+
*/
|
|
76
|
+
onInteractOutside: PropType<(event: DialogInteractOutsideEvent) => void>;
|
|
77
|
+
/** Stack order of the overlay and the dialog. @default 50 */
|
|
78
|
+
zIndex: NumberConstructor;
|
|
79
|
+
/** Class, style and data attributes for the fixed layer that holds the panel. Data attributes of DialogContent land here too. */
|
|
80
|
+
rootProps: PropType<DialogLayerProps>;
|
|
81
|
+
/** Class, style and data attributes for the overlay. */
|
|
82
|
+
overlayProps: PropType<DialogLayerProps>;
|
|
83
|
+
/** `phone` lays the dialog out as on a phone at any window width. Inside a PhoneLayout it always is. @default "auto" */
|
|
84
|
+
layout: {
|
|
85
|
+
type: PropType<"auto" | "phone">;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
66
88
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
67
89
|
[key: string]: any;
|
|
68
90
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -106,15 +128,39 @@ export declare const DialogContent: import("vue").DefineComponent<import("vue").
|
|
|
106
128
|
onOpenAutoFocus: PropType<(event: Event) => void>;
|
|
107
129
|
/** Called when focus returns on close; `event.preventDefault()` keeps it elsewhere. */
|
|
108
130
|
onCloseAutoFocus: PropType<(event: Event) => void>;
|
|
131
|
+
/**
|
|
132
|
+
* Called on Escape before the dialog closes; `event.preventDefault()` keeps it open, such as for a form with
|
|
133
|
+
* unsaved changes.
|
|
134
|
+
*/
|
|
135
|
+
onEscapeKeyDown: PropType<(event: KeyboardEvent) => void>;
|
|
136
|
+
/**
|
|
137
|
+
* Called on a press or a focus outside the dialog before it closes; `event.preventDefault()` keeps it open, such
|
|
138
|
+
* as for a press on a developer panel over the page.
|
|
139
|
+
*/
|
|
140
|
+
onInteractOutside: PropType<(event: DialogInteractOutsideEvent) => void>;
|
|
141
|
+
/** Stack order of the overlay and the dialog. @default 50 */
|
|
142
|
+
zIndex: NumberConstructor;
|
|
143
|
+
/** Class, style and data attributes for the fixed layer that holds the panel. Data attributes of DialogContent land here too. */
|
|
144
|
+
rootProps: PropType<DialogLayerProps>;
|
|
145
|
+
/** Class, style and data attributes for the overlay. */
|
|
146
|
+
overlayProps: PropType<DialogLayerProps>;
|
|
147
|
+
/** `phone` lays the dialog out as on a phone at any window width. Inside a PhoneLayout it always is. @default "auto" */
|
|
148
|
+
layout: {
|
|
149
|
+
type: PropType<"auto" | "phone">;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
109
152
|
}>> & Readonly<{}>, {
|
|
110
153
|
width: string | number;
|
|
154
|
+
layout: "auto" | "phone";
|
|
111
155
|
pill: boolean;
|
|
112
156
|
placement: DialogPlacement;
|
|
113
157
|
showClose: boolean;
|
|
114
158
|
surface: "plain" | "grouped";
|
|
115
159
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
116
|
-
|
|
160
|
+
/** How a Sheet's bar meets the content scrolled under it; see `BarBackground`. */
|
|
161
|
+
export type DialogBarBackground = BarBackground;
|
|
117
162
|
export declare const DialogHeader: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
163
|
+
/** How the bar meets the content scrolled under it in a phone Sheet. @default "glass" */
|
|
118
164
|
background: {
|
|
119
165
|
type: PropType<DialogBarBackground>;
|
|
120
166
|
default: string;
|
|
@@ -122,12 +168,13 @@ export declare const DialogHeader: import("vue").DefineComponent<import("vue").E
|
|
|
122
168
|
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
123
169
|
[key: string]: any;
|
|
124
170
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
171
|
+
/** How the bar meets the content scrolled under it in a phone Sheet. @default "glass" */
|
|
125
172
|
background: {
|
|
126
173
|
type: PropType<DialogBarBackground>;
|
|
127
174
|
default: string;
|
|
128
175
|
};
|
|
129
176
|
}>> & Readonly<{}>, {
|
|
130
|
-
background:
|
|
177
|
+
background: BarBackground;
|
|
131
178
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
132
179
|
export declare const DialogHeaderAction: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
133
180
|
[key: string]: any;
|
|
@@ -139,6 +186,7 @@ export declare const DialogBody: import("vue").DefineComponent<{}, () => VNode<i
|
|
|
139
186
|
export declare const DialogFooter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
140
187
|
/** Override the mobile action layout. Alerts default to inline; sheets to stacked. */
|
|
141
188
|
mobileLayout: PropType<"inline" | "stacked">;
|
|
189
|
+
/** How the bar meets the content scrolled under it in a phone Sheet. @default "soft" */
|
|
142
190
|
background: {
|
|
143
191
|
type: PropType<DialogBarBackground>;
|
|
144
192
|
default: string;
|
|
@@ -148,12 +196,13 @@ export declare const DialogFooter: import("vue").DefineComponent<import("vue").E
|
|
|
148
196
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
149
197
|
/** Override the mobile action layout. Alerts default to inline; sheets to stacked. */
|
|
150
198
|
mobileLayout: PropType<"inline" | "stacked">;
|
|
199
|
+
/** How the bar meets the content scrolled under it in a phone Sheet. @default "soft" */
|
|
151
200
|
background: {
|
|
152
201
|
type: PropType<DialogBarBackground>;
|
|
153
202
|
default: string;
|
|
154
203
|
};
|
|
155
204
|
}>> & Readonly<{}>, {
|
|
156
|
-
background:
|
|
205
|
+
background: BarBackground;
|
|
157
206
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
158
207
|
export declare const DialogTitle: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
159
208
|
[key: string]: any;
|
|
@@ -164,11 +213,58 @@ export declare const DialogDescription: import("vue").DefineComponent<{}, () =>
|
|
|
164
213
|
export declare const DialogClose: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
165
214
|
[key: string]: any;
|
|
166
215
|
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
216
|
+
/** The steps of a flow inside a dialog, such as a sign-in that asks for an email and then a code. */
|
|
217
|
+
export declare const DialogSteps: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
218
|
+
/** The step on screen. A new value brings its content in. */
|
|
219
|
+
step: {
|
|
220
|
+
type: PropType<string | number>;
|
|
221
|
+
required: true;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* `forward` brings the new step in from the trailing edge over the one before, as a push on iOS; `back` returns
|
|
225
|
+
* to a step before it.
|
|
226
|
+
* @default "forward"
|
|
227
|
+
*/
|
|
228
|
+
direction: {
|
|
229
|
+
type: PropType<"forward" | "back">;
|
|
230
|
+
default: string;
|
|
231
|
+
};
|
|
232
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
233
|
+
[key: string]: any;
|
|
234
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
235
|
+
/** The step on screen. A new value brings its content in. */
|
|
236
|
+
step: {
|
|
237
|
+
type: PropType<string | number>;
|
|
238
|
+
required: true;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* `forward` brings the new step in from the trailing edge over the one before, as a push on iOS; `back` returns
|
|
242
|
+
* to a step before it.
|
|
243
|
+
* @default "forward"
|
|
244
|
+
*/
|
|
245
|
+
direction: {
|
|
246
|
+
type: PropType<"forward" | "back">;
|
|
247
|
+
default: string;
|
|
248
|
+
};
|
|
249
|
+
}>> & Readonly<{}>, {
|
|
250
|
+
direction: "back" | "forward";
|
|
251
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
167
252
|
export type DialogProps = InstanceType<typeof Dialog>["$props"];
|
|
168
253
|
export type DialogPlacement = "center" | "top" | "bottom" | "start" | "end" | "fullscreen";
|
|
254
|
+
/** A press or a focus outside the dialog; `event.detail.originalEvent` is the browser's event. */
|
|
255
|
+
export type DialogInteractOutsideEvent = CustomEvent<{
|
|
256
|
+
originalEvent: PointerEvent | FocusEvent;
|
|
257
|
+
}>;
|
|
258
|
+
/** Class, style and data attributes for one of the dialog's layers. */
|
|
259
|
+
export type DialogLayerProps = {
|
|
260
|
+
class?: HTMLAttributes["class"];
|
|
261
|
+
style?: string | CSSProperties;
|
|
262
|
+
[dataAttribute: `data-${string}`]: string | number | boolean | undefined;
|
|
263
|
+
};
|
|
169
264
|
/** DialogContent props; `class` lands on the panel, like `className` in React. */
|
|
170
265
|
export type DialogContentProps = InstanceType<typeof DialogContent>["$props"] & {
|
|
171
266
|
class?: HTMLAttributes["class"];
|
|
172
267
|
};
|
|
173
268
|
export type DialogHeaderProps = InstanceType<typeof DialogHeader>["$props"];
|
|
174
269
|
export type DialogFooterProps = InstanceType<typeof DialogFooter>["$props"];
|
|
270
|
+
export type DialogStepsProps = InstanceType<typeof DialogSteps>["$props"];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const STEP_TIMING: {
|
|
2
|
+
enterDuration: number;
|
|
3
|
+
exitDuration: number;
|
|
4
|
+
};
|
|
5
|
+
type TransitionElement = HTMLElement | SVGElement;
|
|
6
|
+
export declare const enterStep: (element: TransitionElement) => void;
|
|
7
|
+
export declare const leaveStep: (element: TransitionElement) => void;
|
|
8
|
+
export declare const settleStepHeight: (element: TransitionElement) => void;
|
|
9
|
+
export declare const releaseStepHeight: (element: TransitionElement) => void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const watchDialogViewport: (content: HTMLElement, container: HTMLElement | null) => (() => void);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderAction, DialogTitle, DialogTrigger, type DialogBarBackground, type DialogHeaderProps, type DialogFooterProps, type DialogContentProps, type DialogPlacement, type DialogProps, } from "./Dialog.js";
|
|
1
|
+
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderAction, DialogSteps, DialogTitle, DialogTrigger, type DialogBarBackground, type DialogHeaderProps, type DialogFooterProps, type DialogContentProps, type DialogInteractOutsideEvent, type DialogLayerProps, type DialogPlacement, type DialogProps, type DialogStepsProps, } from "./Dialog.js";
|
|
@@ -12,6 +12,15 @@ export type FieldChildProps = {
|
|
|
12
12
|
declare const FieldComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
13
|
/** Label text for the field (or the `label` slot) */
|
|
14
14
|
label: StringConstructor;
|
|
15
|
+
/**
|
|
16
|
+
* Hides the label from view; it still names the control. On a `row` the value or placeholder
|
|
17
|
+
* then starts at the row's edge, as an iOS cell that shows only its value, so the row is
|
|
18
|
+
* vertical unless `orientation` says otherwise. @default false
|
|
19
|
+
*/
|
|
20
|
+
hideLabel: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
15
24
|
/** Helper text below the label, linked via `aria-describedby` (or the `description` slot) */
|
|
16
25
|
description: StringConstructor;
|
|
17
26
|
/**
|
|
@@ -28,7 +37,7 @@ declare const FieldComponent: import("vue").DefineComponent<import("vue").Extrac
|
|
|
28
37
|
type: BooleanConstructor;
|
|
29
38
|
default: boolean;
|
|
30
39
|
};
|
|
31
|
-
/** Layout direction of label and control. @default "horizontal" on a `row
|
|
40
|
+
/** Layout direction of label and control. @default "horizontal" on a `row` with a visible label, else "vertical" */
|
|
32
41
|
orientation: PropType<"vertical" | "horizontal">;
|
|
33
42
|
/** One line of a FieldGroup. Its non-interactive area focuses the text editor or activates the choice control or popup trigger. @default false */
|
|
34
43
|
row: {
|
|
@@ -49,6 +58,15 @@ declare const FieldComponent: import("vue").DefineComponent<import("vue").Extrac
|
|
|
49
58
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
59
|
/** Label text for the field (or the `label` slot) */
|
|
51
60
|
label: StringConstructor;
|
|
61
|
+
/**
|
|
62
|
+
* Hides the label from view; it still names the control. On a `row` the value or placeholder
|
|
63
|
+
* then starts at the row's edge, as an iOS cell that shows only its value, so the row is
|
|
64
|
+
* vertical unless `orientation` says otherwise. @default false
|
|
65
|
+
*/
|
|
66
|
+
hideLabel: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
52
70
|
/** Helper text below the label, linked via `aria-describedby` (or the `description` slot) */
|
|
53
71
|
description: StringConstructor;
|
|
54
72
|
/**
|
|
@@ -65,7 +83,7 @@ declare const FieldComponent: import("vue").DefineComponent<import("vue").Extrac
|
|
|
65
83
|
type: BooleanConstructor;
|
|
66
84
|
default: boolean;
|
|
67
85
|
};
|
|
68
|
-
/** Layout direction of label and control. @default "horizontal" on a `row
|
|
86
|
+
/** Layout direction of label and control. @default "horizontal" on a `row` with a visible label, else "vertical" */
|
|
69
87
|
orientation: PropType<"vertical" | "horizontal">;
|
|
70
88
|
/** One line of a FieldGroup. Its non-interactive area focuses the text editor or activates the choice control or popup trigger. @default false */
|
|
71
89
|
row: {
|
|
@@ -85,6 +103,7 @@ declare const FieldComponent: import("vue").DefineComponent<import("vue").Extrac
|
|
|
85
103
|
fill: boolean;
|
|
86
104
|
required: boolean;
|
|
87
105
|
row: boolean;
|
|
106
|
+
hideLabel: boolean;
|
|
88
107
|
}, SlotsType<{
|
|
89
108
|
/** The control. Read the props to render them yourself (React's render prop). */
|
|
90
109
|
default?: (fieldProps: FieldChildProps) => VNodeChild;
|
|
@@ -3,6 +3,14 @@ import { type PropType, type SlotsType, type VNodeChild } from "vue";
|
|
|
3
3
|
declare const FieldGroupComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
/** Heading over the block (or the `title` slot); it names the group */
|
|
5
5
|
title: StringConstructor;
|
|
6
|
+
/**
|
|
7
|
+
* How much the title stands out: "standard" is a quiet heading over the rows, "increased" leads its
|
|
8
|
+
* content (on a phone the kit's Prominent list header). @default "standard"
|
|
9
|
+
*/
|
|
10
|
+
headerProminence: {
|
|
11
|
+
type: PropType<"standard" | "increased">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
6
14
|
/** Line under the title (or the `description` slot) */
|
|
7
15
|
description: StringConstructor;
|
|
8
16
|
/** Every value starts at one column, `--field-row-column-width` into the row, on the web and on a phone. Off, values end at the row's edge */
|
|
@@ -17,6 +25,14 @@ declare const FieldGroupComponent: import("vue").DefineComponent<import("vue").E
|
|
|
17
25
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
26
|
/** Heading over the block (or the `title` slot); it names the group */
|
|
19
27
|
title: StringConstructor;
|
|
28
|
+
/**
|
|
29
|
+
* How much the title stands out: "standard" is a quiet heading over the rows, "increased" leads its
|
|
30
|
+
* content (on a phone the kit's Prominent list header). @default "standard"
|
|
31
|
+
*/
|
|
32
|
+
headerProminence: {
|
|
33
|
+
type: PropType<"standard" | "increased">;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
20
36
|
/** Line under the title (or the `description` slot) */
|
|
21
37
|
description: StringConstructor;
|
|
22
38
|
/** Every value starts at one column, `--field-row-column-width` into the row, on the web and on a phone. Off, values end at the row's edge */
|
|
@@ -28,12 +44,13 @@ declare const FieldGroupComponent: import("vue").DefineComponent<import("vue").E
|
|
|
28
44
|
bodyClass: PropType<ClassValue>;
|
|
29
45
|
}>> & Readonly<{}>, {
|
|
30
46
|
columns: boolean;
|
|
47
|
+
headerProminence: "standard" | "increased";
|
|
31
48
|
}, SlotsType<{
|
|
32
49
|
/** The rows: `Field row`, or rows of your own. */
|
|
33
50
|
default?: () => VNodeChild;
|
|
34
51
|
title?: () => VNodeChild;
|
|
35
52
|
description?: () => VNodeChild;
|
|
36
|
-
/** Content at the end of the header, such as a button */
|
|
53
|
+
/** Content at the end of the header, such as a button. On a phone a ghost text button reads as the list header's action */
|
|
37
54
|
action?: () => VNodeChild;
|
|
38
55
|
/** Content under the block, such as a note */
|
|
39
56
|
footer?: () => VNodeChild;
|
|
@@ -219,6 +219,7 @@ export { default as ExpandMd } from "./svg/ExpandMd.js";
|
|
|
219
219
|
export { default as ExpandSm } from "./svg/ExpandSm.js";
|
|
220
220
|
export { default as ExternalLink } from "./svg/ExternalLink.js";
|
|
221
221
|
export { default as Eye } from "./svg/Eye.js";
|
|
222
|
+
export { default as Eyedropper } from "./svg/Eyedropper.js";
|
|
222
223
|
export { default as EyeOff } from "./svg/EyeOff.js";
|
|
223
224
|
export { default as FeaturedWreath } from "./svg/FeaturedWreath.js";
|
|
224
225
|
export { default as File3D } from "./svg/File3D.js";
|