@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,135 @@
|
|
|
1
|
+
import { type Component, type PropType } from "vue";
|
|
2
|
+
export type SwipeActionColor = "primary" | "secondary" | "danger" | "success" | "info" | "discovery" | "caution" | "warning";
|
|
3
|
+
export type SwipeAction = {
|
|
4
|
+
/** Unique ID of the action within its side */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Name of the action: shown with `labelPlacement` `"inside"` or `"below"` (and on an action without an icon), and its accessible name always */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Icon of the action */
|
|
9
|
+
Icon?: Component;
|
|
10
|
+
/** Solid color of the action. @default "secondary" */
|
|
11
|
+
color?: SwipeActionColor;
|
|
12
|
+
/** Called when the action is pressed, or by a full swipe when it is the first action of its side */
|
|
13
|
+
onSelect?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export type SwipeActionsSide = "leading" | "trailing";
|
|
16
|
+
/**
|
|
17
|
+
* Where the content goes for a swipe of `raw` px toward the trailing edge (negative: toward the leading edge), and
|
|
18
|
+
* whether that is a full swipe. A side without actions stays shut. Past its actions the content follows the finger
|
|
19
|
+
* where a full swipe is allowed, and a third as fast where it is not; past the middle between the open actions and
|
|
20
|
+
* the far edge of the row the swipe is full.
|
|
21
|
+
*/
|
|
22
|
+
export declare const swipeActionsOffset: (raw: number, widths: Record<SwipeActionsSide, number>, rowWidth: number, fullSwipe: boolean) => {
|
|
23
|
+
offset: number;
|
|
24
|
+
full: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare const SwipeActionsComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
27
|
+
/** Actions revealed by a swipe toward the trailing edge, the first one at the leading edge */
|
|
28
|
+
leading: {
|
|
29
|
+
type: PropType<SwipeAction[]>;
|
|
30
|
+
default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
/** Actions revealed by a swipe toward the leading edge, the first one at the trailing edge */
|
|
33
|
+
trailing: {
|
|
34
|
+
type: PropType<SwipeAction[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
/** Where the actions show their labels: `"hidden"` (symbols only), `"inside"` the capsule, or `"below"` it (for rows of 68px and taller). @default "hidden" */
|
|
38
|
+
labelPlacement: {
|
|
39
|
+
type: PropType<"hidden" | "inside" | "below">;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
/** A swipe past the middle between the open actions and the far edge runs the first action of that side. @default true */
|
|
43
|
+
fullSwipe: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
/** Actions revealed by a swipe toward the trailing edge, the first one at the leading edge */
|
|
51
|
+
leading: {
|
|
52
|
+
type: PropType<SwipeAction[]>;
|
|
53
|
+
default: () => never[];
|
|
54
|
+
};
|
|
55
|
+
/** Actions revealed by a swipe toward the leading edge, the first one at the trailing edge */
|
|
56
|
+
trailing: {
|
|
57
|
+
type: PropType<SwipeAction[]>;
|
|
58
|
+
default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
/** Where the actions show their labels: `"hidden"` (symbols only), `"inside"` the capsule, or `"below"` it (for rows of 68px and taller). @default "hidden" */
|
|
61
|
+
labelPlacement: {
|
|
62
|
+
type: PropType<"hidden" | "inside" | "below">;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
/** A swipe past the middle between the open actions and the far edge runs the first action of that side. @default true */
|
|
66
|
+
fullSwipe: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
}>> & Readonly<{}>, {
|
|
71
|
+
labelPlacement: "hidden" | "inside" | "below";
|
|
72
|
+
leading: SwipeAction[];
|
|
73
|
+
trailing: SwipeAction[];
|
|
74
|
+
fullSwipe: boolean;
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
|
+
type SwipeActionsOwnProps = InstanceType<typeof SwipeActionsComponent>["$props"];
|
|
77
|
+
/** SwipeActions props. */
|
|
78
|
+
export type SwipeActionsProps = SwipeActionsOwnProps;
|
|
79
|
+
/**
|
|
80
|
+
* Actions behind a row of a list, as the swipe actions of an iOS list: a swipe toward the leading edge reveals the
|
|
81
|
+
* trailing actions, a swipe toward the trailing edge the leading ones, and a full swipe runs the first action of
|
|
82
|
+
* that side. The row is a `data-row` of a FieldGroup. Each action is also a button in the order of the screen, and
|
|
83
|
+
* the focus on one shows its side.
|
|
84
|
+
*/
|
|
85
|
+
export declare const SwipeActions: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
86
|
+
/** Actions revealed by a swipe toward the trailing edge, the first one at the leading edge */
|
|
87
|
+
leading: {
|
|
88
|
+
type: PropType<SwipeAction[]>;
|
|
89
|
+
default: () => never[];
|
|
90
|
+
};
|
|
91
|
+
/** Actions revealed by a swipe toward the leading edge, the first one at the trailing edge */
|
|
92
|
+
trailing: {
|
|
93
|
+
type: PropType<SwipeAction[]>;
|
|
94
|
+
default: () => never[];
|
|
95
|
+
};
|
|
96
|
+
/** Where the actions show their labels: `"hidden"` (symbols only), `"inside"` the capsule, or `"below"` it (for rows of 68px and taller). @default "hidden" */
|
|
97
|
+
labelPlacement: {
|
|
98
|
+
type: PropType<"hidden" | "inside" | "below">;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
/** A swipe past the middle between the open actions and the far edge runs the first action of that side. @default true */
|
|
102
|
+
fullSwipe: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
107
|
+
[key: string]: any;
|
|
108
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
+
/** Actions revealed by a swipe toward the trailing edge, the first one at the leading edge */
|
|
110
|
+
leading: {
|
|
111
|
+
type: PropType<SwipeAction[]>;
|
|
112
|
+
default: () => never[];
|
|
113
|
+
};
|
|
114
|
+
/** Actions revealed by a swipe toward the leading edge, the first one at the trailing edge */
|
|
115
|
+
trailing: {
|
|
116
|
+
type: PropType<SwipeAction[]>;
|
|
117
|
+
default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
/** Where the actions show their labels: `"hidden"` (symbols only), `"inside"` the capsule, or `"below"` it (for rows of 68px and taller). @default "hidden" */
|
|
120
|
+
labelPlacement: {
|
|
121
|
+
type: PropType<"hidden" | "inside" | "below">;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
/** A swipe past the middle between the open actions and the far edge runs the first action of that side. @default true */
|
|
125
|
+
fullSwipe: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
}>> & Readonly<{}>, {
|
|
130
|
+
labelPlacement: "hidden" | "inside" | "below";
|
|
131
|
+
leading: SwipeAction[];
|
|
132
|
+
trailing: SwipeAction[];
|
|
133
|
+
fullSwipe: boolean;
|
|
134
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SwipeActions, swipeActionsOffset, type SwipeAction, type SwipeActionColor, type SwipeActionsProps, type SwipeActionsSide, } from "./SwipeActions.js";
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import { type BarBackground } from "../Toolbar/Toolbar.js";
|
|
3
|
+
export type TabBarSearch = {
|
|
4
|
+
/** The value of the search tab. */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Accessible name of the search tab. @default "Search" */
|
|
7
|
+
label?: string;
|
|
8
|
+
};
|
|
9
|
+
/** The prominent tab of a `TabBar`; its symbol is the `prominent-icon` slot of the bar (React `prominent.icon`). */
|
|
10
|
+
export type TabBarProminent = {
|
|
11
|
+
/** The value of the prominent tab. */
|
|
12
|
+
value: string;
|
|
13
|
+
/** Accessible name of the prominent tab: its circle shows the symbol only. */
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
declare const TabBarItemComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
/** The value of the tab. */
|
|
18
|
+
value: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
/** The label under the symbol, and the accessible name of the tab. */
|
|
23
|
+
label: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
/** Makes the tab a link to this URL. */
|
|
28
|
+
href: StringConstructor;
|
|
29
|
+
/** When `true`, the tab cannot be selected. */
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
/** @internal The search and the prominent tab show their symbol only. */
|
|
35
|
+
hideLabel: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
/** The tab was pressed, before it is selected */
|
|
43
|
+
click: (event: MouseEvent) => boolean;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
/** The value of the tab. */
|
|
46
|
+
value: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
/** The label under the symbol, and the accessible name of the tab. */
|
|
51
|
+
label: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
/** Makes the tab a link to this URL. */
|
|
56
|
+
href: StringConstructor;
|
|
57
|
+
/** When `true`, the tab cannot be selected. */
|
|
58
|
+
disabled: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
/** @internal The search and the prominent tab show their symbol only. */
|
|
63
|
+
hideLabel: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
}>> & Readonly<{
|
|
68
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
69
|
+
}>, {
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
hideLabel: boolean;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
/** Props of `TabBarItem`. */
|
|
74
|
+
export type TabBarItemProps = InstanceType<typeof TabBarItemComponent>["$props"];
|
|
75
|
+
/** One tab of a `TabBar` (React `TabBar.Item`): its `icon` slot holds the symbol, a PlexUI icon. */
|
|
76
|
+
export declare const TabBarItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
77
|
+
/** The value of the tab. */
|
|
78
|
+
value: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
/** The label under the symbol, and the accessible name of the tab. */
|
|
83
|
+
label: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
/** Makes the tab a link to this URL. */
|
|
88
|
+
href: StringConstructor;
|
|
89
|
+
/** When `true`, the tab cannot be selected. */
|
|
90
|
+
disabled: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
/** @internal The search and the prominent tab show their symbol only. */
|
|
95
|
+
hideLabel: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
102
|
+
/** The tab was pressed, before it is selected */
|
|
103
|
+
click: (event: MouseEvent) => boolean;
|
|
104
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
105
|
+
/** The value of the tab. */
|
|
106
|
+
value: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
required: true;
|
|
109
|
+
};
|
|
110
|
+
/** The label under the symbol, and the accessible name of the tab. */
|
|
111
|
+
label: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
required: true;
|
|
114
|
+
};
|
|
115
|
+
/** Makes the tab a link to this URL. */
|
|
116
|
+
href: StringConstructor;
|
|
117
|
+
/** When `true`, the tab cannot be selected. */
|
|
118
|
+
disabled: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
/** @internal The search and the prominent tab show their symbol only. */
|
|
123
|
+
hideLabel: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
}>> & Readonly<{
|
|
128
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
129
|
+
}>, {
|
|
130
|
+
disabled: boolean;
|
|
131
|
+
hideLabel: boolean;
|
|
132
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
133
|
+
declare const TabBarComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
134
|
+
/** The controlled value of the selected tab. Bind with `v-model:value`. */
|
|
135
|
+
value: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
139
|
+
/** The selected tab when it is initially rendered. */
|
|
140
|
+
defaultValue: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
/** A search tab in a glass circle of its own at the trailing end, as the iOS 26 separate search tab. */
|
|
145
|
+
search: {
|
|
146
|
+
type: PropType<TabBarSearch>;
|
|
147
|
+
default: undefined;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* The one destination the app lifts out of the capsule, a cart or a library, in a glass circle of its own at
|
|
151
|
+
* the trailing end, as the iOS 27 prominent tab role; its symbol is the `prominent-icon` slot. It takes the
|
|
152
|
+
* circle of the search tab: with both, search is the last tab of the capsule, as iOS gives search that place
|
|
153
|
+
* only when no other tab is prominent.
|
|
154
|
+
*/
|
|
155
|
+
prominent: {
|
|
156
|
+
type: PropType<TabBarProminent>;
|
|
157
|
+
default: undefined;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* `onScrollDown` minimizes the bar to the selected tab while the content of the `Page` scrolls down and
|
|
161
|
+
* expands it when the content scrolls back up; a tap on the minimized tab expands it too. @default "never"
|
|
162
|
+
*/
|
|
163
|
+
minimizeBehavior: {
|
|
164
|
+
type: PropType<"never" | "onScrollDown">;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
/** Controlled minimized state. Bind with `v-model:minimized`. */
|
|
168
|
+
minimized: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
default: undefined;
|
|
171
|
+
};
|
|
172
|
+
/** The minimized state when it is initially rendered. @default false */
|
|
173
|
+
defaultMinimized: {
|
|
174
|
+
type: BooleanConstructor;
|
|
175
|
+
default: boolean;
|
|
176
|
+
};
|
|
177
|
+
/** How the bar meets the content scrolled under it; see `BarBackground`. @default "soft" */
|
|
178
|
+
background: {
|
|
179
|
+
type: PropType<BarBackground>;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
/** Accessible name of the navigation. @default "Tabs" */
|
|
183
|
+
ariaLabel: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
188
|
+
[key: string]: any;
|
|
189
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
190
|
+
/** A tab was selected */
|
|
191
|
+
"update:value": (value: string) => boolean;
|
|
192
|
+
/** A tab was selected (React `onValueChange`) */
|
|
193
|
+
valueChange: (value: string) => boolean;
|
|
194
|
+
/** The bar minimized or expanded */
|
|
195
|
+
"update:minimized": (minimized: boolean) => boolean;
|
|
196
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
197
|
+
/** The controlled value of the selected tab. Bind with `v-model:value`. */
|
|
198
|
+
value: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: undefined;
|
|
201
|
+
};
|
|
202
|
+
/** The selected tab when it is initially rendered. */
|
|
203
|
+
defaultValue: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
/** A search tab in a glass circle of its own at the trailing end, as the iOS 26 separate search tab. */
|
|
208
|
+
search: {
|
|
209
|
+
type: PropType<TabBarSearch>;
|
|
210
|
+
default: undefined;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* The one destination the app lifts out of the capsule, a cart or a library, in a glass circle of its own at
|
|
214
|
+
* the trailing end, as the iOS 27 prominent tab role; its symbol is the `prominent-icon` slot. It takes the
|
|
215
|
+
* circle of the search tab: with both, search is the last tab of the capsule, as iOS gives search that place
|
|
216
|
+
* only when no other tab is prominent.
|
|
217
|
+
*/
|
|
218
|
+
prominent: {
|
|
219
|
+
type: PropType<TabBarProminent>;
|
|
220
|
+
default: undefined;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* `onScrollDown` minimizes the bar to the selected tab while the content of the `Page` scrolls down and
|
|
224
|
+
* expands it when the content scrolls back up; a tap on the minimized tab expands it too. @default "never"
|
|
225
|
+
*/
|
|
226
|
+
minimizeBehavior: {
|
|
227
|
+
type: PropType<"never" | "onScrollDown">;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
/** Controlled minimized state. Bind with `v-model:minimized`. */
|
|
231
|
+
minimized: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
default: undefined;
|
|
234
|
+
};
|
|
235
|
+
/** The minimized state when it is initially rendered. @default false */
|
|
236
|
+
defaultMinimized: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
/** How the bar meets the content scrolled under it; see `BarBackground`. @default "soft" */
|
|
241
|
+
background: {
|
|
242
|
+
type: PropType<BarBackground>;
|
|
243
|
+
default: string;
|
|
244
|
+
};
|
|
245
|
+
/** Accessible name of the navigation. @default "Tabs" */
|
|
246
|
+
ariaLabel: {
|
|
247
|
+
type: StringConstructor;
|
|
248
|
+
default: string;
|
|
249
|
+
};
|
|
250
|
+
}>> & Readonly<{
|
|
251
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
252
|
+
onValueChange?: ((value: string) => any) | undefined;
|
|
253
|
+
"onUpdate:minimized"?: ((minimized: boolean) => any) | undefined;
|
|
254
|
+
}>, {
|
|
255
|
+
search: TabBarSearch;
|
|
256
|
+
value: string;
|
|
257
|
+
defaultValue: string;
|
|
258
|
+
ariaLabel: string;
|
|
259
|
+
background: BarBackground;
|
|
260
|
+
prominent: TabBarProminent;
|
|
261
|
+
minimizeBehavior: "never" | "onScrollDown";
|
|
262
|
+
minimized: boolean;
|
|
263
|
+
defaultMinimized: boolean;
|
|
264
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
265
|
+
/** Props of `TabBar`. */
|
|
266
|
+
export type TabBarProps = InstanceType<typeof TabBarComponent>["$props"];
|
|
267
|
+
/**
|
|
268
|
+
* The tab bar of a phone screen after the iOS 26 kit Tab Bar - iPhone (507:24689): two to five tabs, each a
|
|
269
|
+
* symbol over a label, in a floating glass capsule at the bottom, the selected tab on a pill, and an optional
|
|
270
|
+
* search or prominent tab in a circle of its own. It minimizes to the selected tab while the content scrolls
|
|
271
|
+
* down. A desktop layout navigates with a Sidebar or Tabs, so the bar never renders from 768px up.
|
|
272
|
+
*/
|
|
273
|
+
export declare const TabBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
274
|
+
/** The controlled value of the selected tab. Bind with `v-model:value`. */
|
|
275
|
+
value: {
|
|
276
|
+
type: StringConstructor;
|
|
277
|
+
default: undefined;
|
|
278
|
+
};
|
|
279
|
+
/** The selected tab when it is initially rendered. */
|
|
280
|
+
defaultValue: {
|
|
281
|
+
type: StringConstructor;
|
|
282
|
+
default: undefined;
|
|
283
|
+
};
|
|
284
|
+
/** A search tab in a glass circle of its own at the trailing end, as the iOS 26 separate search tab. */
|
|
285
|
+
search: {
|
|
286
|
+
type: PropType<TabBarSearch>;
|
|
287
|
+
default: undefined;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* The one destination the app lifts out of the capsule, a cart or a library, in a glass circle of its own at
|
|
291
|
+
* the trailing end, as the iOS 27 prominent tab role; its symbol is the `prominent-icon` slot. It takes the
|
|
292
|
+
* circle of the search tab: with both, search is the last tab of the capsule, as iOS gives search that place
|
|
293
|
+
* only when no other tab is prominent.
|
|
294
|
+
*/
|
|
295
|
+
prominent: {
|
|
296
|
+
type: PropType<TabBarProminent>;
|
|
297
|
+
default: undefined;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* `onScrollDown` minimizes the bar to the selected tab while the content of the `Page` scrolls down and
|
|
301
|
+
* expands it when the content scrolls back up; a tap on the minimized tab expands it too. @default "never"
|
|
302
|
+
*/
|
|
303
|
+
minimizeBehavior: {
|
|
304
|
+
type: PropType<"never" | "onScrollDown">;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
/** Controlled minimized state. Bind with `v-model:minimized`. */
|
|
308
|
+
minimized: {
|
|
309
|
+
type: BooleanConstructor;
|
|
310
|
+
default: undefined;
|
|
311
|
+
};
|
|
312
|
+
/** The minimized state when it is initially rendered. @default false */
|
|
313
|
+
defaultMinimized: {
|
|
314
|
+
type: BooleanConstructor;
|
|
315
|
+
default: boolean;
|
|
316
|
+
};
|
|
317
|
+
/** How the bar meets the content scrolled under it; see `BarBackground`. @default "soft" */
|
|
318
|
+
background: {
|
|
319
|
+
type: PropType<BarBackground>;
|
|
320
|
+
default: string;
|
|
321
|
+
};
|
|
322
|
+
/** Accessible name of the navigation. @default "Tabs" */
|
|
323
|
+
ariaLabel: {
|
|
324
|
+
type: StringConstructor;
|
|
325
|
+
default: string;
|
|
326
|
+
};
|
|
327
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
328
|
+
[key: string]: any;
|
|
329
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
330
|
+
/** A tab was selected */
|
|
331
|
+
"update:value": (value: string) => boolean;
|
|
332
|
+
/** A tab was selected (React `onValueChange`) */
|
|
333
|
+
valueChange: (value: string) => boolean;
|
|
334
|
+
/** The bar minimized or expanded */
|
|
335
|
+
"update:minimized": (minimized: boolean) => boolean;
|
|
336
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
337
|
+
/** The controlled value of the selected tab. Bind with `v-model:value`. */
|
|
338
|
+
value: {
|
|
339
|
+
type: StringConstructor;
|
|
340
|
+
default: undefined;
|
|
341
|
+
};
|
|
342
|
+
/** The selected tab when it is initially rendered. */
|
|
343
|
+
defaultValue: {
|
|
344
|
+
type: StringConstructor;
|
|
345
|
+
default: undefined;
|
|
346
|
+
};
|
|
347
|
+
/** A search tab in a glass circle of its own at the trailing end, as the iOS 26 separate search tab. */
|
|
348
|
+
search: {
|
|
349
|
+
type: PropType<TabBarSearch>;
|
|
350
|
+
default: undefined;
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* The one destination the app lifts out of the capsule, a cart or a library, in a glass circle of its own at
|
|
354
|
+
* the trailing end, as the iOS 27 prominent tab role; its symbol is the `prominent-icon` slot. It takes the
|
|
355
|
+
* circle of the search tab: with both, search is the last tab of the capsule, as iOS gives search that place
|
|
356
|
+
* only when no other tab is prominent.
|
|
357
|
+
*/
|
|
358
|
+
prominent: {
|
|
359
|
+
type: PropType<TabBarProminent>;
|
|
360
|
+
default: undefined;
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* `onScrollDown` minimizes the bar to the selected tab while the content of the `Page` scrolls down and
|
|
364
|
+
* expands it when the content scrolls back up; a tap on the minimized tab expands it too. @default "never"
|
|
365
|
+
*/
|
|
366
|
+
minimizeBehavior: {
|
|
367
|
+
type: PropType<"never" | "onScrollDown">;
|
|
368
|
+
default: string;
|
|
369
|
+
};
|
|
370
|
+
/** Controlled minimized state. Bind with `v-model:minimized`. */
|
|
371
|
+
minimized: {
|
|
372
|
+
type: BooleanConstructor;
|
|
373
|
+
default: undefined;
|
|
374
|
+
};
|
|
375
|
+
/** The minimized state when it is initially rendered. @default false */
|
|
376
|
+
defaultMinimized: {
|
|
377
|
+
type: BooleanConstructor;
|
|
378
|
+
default: boolean;
|
|
379
|
+
};
|
|
380
|
+
/** How the bar meets the content scrolled under it; see `BarBackground`. @default "soft" */
|
|
381
|
+
background: {
|
|
382
|
+
type: PropType<BarBackground>;
|
|
383
|
+
default: string;
|
|
384
|
+
};
|
|
385
|
+
/** Accessible name of the navigation. @default "Tabs" */
|
|
386
|
+
ariaLabel: {
|
|
387
|
+
type: StringConstructor;
|
|
388
|
+
default: string;
|
|
389
|
+
};
|
|
390
|
+
}>> & Readonly<{
|
|
391
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
392
|
+
onValueChange?: ((value: string) => any) | undefined;
|
|
393
|
+
"onUpdate:minimized"?: ((minimized: boolean) => any) | undefined;
|
|
394
|
+
}>, {
|
|
395
|
+
search: TabBarSearch;
|
|
396
|
+
value: string;
|
|
397
|
+
defaultValue: string;
|
|
398
|
+
ariaLabel: string;
|
|
399
|
+
background: BarBackground;
|
|
400
|
+
prominent: TabBarProminent;
|
|
401
|
+
minimizeBehavior: "never" | "onScrollDown";
|
|
402
|
+
minimized: boolean;
|
|
403
|
+
defaultMinimized: boolean;
|
|
404
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
405
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabBar, TabBarItem, type TabBarItemProps, type TabBarProminent, type TabBarProps, type TabBarSearch } from "./TabBar.js";
|