@plexui/vue 0.24.3 → 0.26.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/Dialog/Dialog.js +3 -3
- package/dist/es/components/Dialog/Dialog.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/MinusLg.js +10 -0
- package/dist/es/components/Icon/svg/MinusLg.js.map +1 -0
- package/dist/es/components/Page/Page.js +77 -17
- package/dist/es/components/Page/Page.js.map +1 -1
- package/dist/es/components/Slider/Slider.js +34 -8
- package/dist/es/components/Slider/Slider.js.map +1 -1
- package/dist/es/components/TabBar/TabBar.js +3 -3
- package/dist/es/components/TabBar/TabBar.js.map +1 -1
- package/dist/es/components/Tabs/Tabs.js +26 -0
- package/dist/es/components/Tabs/Tabs.js.map +1 -1
- package/dist/es/components/Tabs/segments.js +92 -0
- package/dist/es/components/Tabs/segments.js.map +1 -0
- package/dist/es/components/Toolbar/Toolbar.js +184 -20
- package/dist/es/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/es/components/Toolbar/index.js +1 -1
- package/dist/es/components/Toolbar/index.js.map +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +5 -5
- package/dist/types/components/Icon/index.d.ts +1 -0
- package/dist/types/components/Icon/svg/MinusLg.d.ts +3 -0
- package/dist/types/components/Page/Page.d.ts +5 -5
- package/dist/types/components/TabBar/TabBar.d.ts +11 -11
- package/dist/types/components/Tabs/segments.d.ts +19 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +39 -9
- package/dist/types/components/Toolbar/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from "vue";
|
|
2
|
-
import { type BarBackground } from "../Toolbar/Toolbar.js";
|
|
2
|
+
import { type BarBackground, type BarBackgroundAlias } from "../Toolbar/Toolbar.js";
|
|
3
3
|
export type TabBarSearch = {
|
|
4
4
|
/** The value of the search tab. */
|
|
5
5
|
value: string;
|
|
@@ -208,9 +208,9 @@ declare const TabBarComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
208
208
|
type: BooleanConstructor;
|
|
209
209
|
default: boolean;
|
|
210
210
|
};
|
|
211
|
-
/** How the bar meets the content scrolled under it; see `BarBackground
|
|
211
|
+
/** How the bar meets the content scrolled under it; see `BarBackground` (`"solid"` is the earlier name of `"hard"`). @default "soft" */
|
|
212
212
|
background: {
|
|
213
|
-
type: PropType<BarBackground>;
|
|
213
|
+
type: PropType<BarBackground | BarBackgroundAlias>;
|
|
214
214
|
default: string;
|
|
215
215
|
};
|
|
216
216
|
/** Accessible name of the navigation. @default "Tabs" */
|
|
@@ -271,9 +271,9 @@ declare const TabBarComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
271
271
|
type: BooleanConstructor;
|
|
272
272
|
default: boolean;
|
|
273
273
|
};
|
|
274
|
-
/** How the bar meets the content scrolled under it; see `BarBackground
|
|
274
|
+
/** How the bar meets the content scrolled under it; see `BarBackground` (`"solid"` is the earlier name of `"hard"`). @default "soft" */
|
|
275
275
|
background: {
|
|
276
|
-
type: PropType<BarBackground>;
|
|
276
|
+
type: PropType<BarBackground | BarBackgroundAlias>;
|
|
277
277
|
default: string;
|
|
278
278
|
};
|
|
279
279
|
/** Accessible name of the navigation. @default "Tabs" */
|
|
@@ -290,7 +290,7 @@ declare const TabBarComponent: import("vue").DefineComponent<import("vue").Extra
|
|
|
290
290
|
value: string;
|
|
291
291
|
defaultValue: string;
|
|
292
292
|
ariaLabel: string;
|
|
293
|
-
background: BarBackground;
|
|
293
|
+
background: "solid" | BarBackground;
|
|
294
294
|
prominent: TabBarProminent;
|
|
295
295
|
minimizeBehavior: "never" | "onScrollDown";
|
|
296
296
|
minimized: boolean;
|
|
@@ -348,9 +348,9 @@ export declare const TabBar: import("vue").DefineComponent<import("vue").Extract
|
|
|
348
348
|
type: BooleanConstructor;
|
|
349
349
|
default: boolean;
|
|
350
350
|
};
|
|
351
|
-
/** How the bar meets the content scrolled under it; see `BarBackground
|
|
351
|
+
/** How the bar meets the content scrolled under it; see `BarBackground` (`"solid"` is the earlier name of `"hard"`). @default "soft" */
|
|
352
352
|
background: {
|
|
353
|
-
type: PropType<BarBackground>;
|
|
353
|
+
type: PropType<BarBackground | BarBackgroundAlias>;
|
|
354
354
|
default: string;
|
|
355
355
|
};
|
|
356
356
|
/** Accessible name of the navigation. @default "Tabs" */
|
|
@@ -411,9 +411,9 @@ export declare const TabBar: import("vue").DefineComponent<import("vue").Extract
|
|
|
411
411
|
type: BooleanConstructor;
|
|
412
412
|
default: boolean;
|
|
413
413
|
};
|
|
414
|
-
/** How the bar meets the content scrolled under it; see `BarBackground
|
|
414
|
+
/** How the bar meets the content scrolled under it; see `BarBackground` (`"solid"` is the earlier name of `"hard"`). @default "soft" */
|
|
415
415
|
background: {
|
|
416
|
-
type: PropType<BarBackground>;
|
|
416
|
+
type: PropType<BarBackground | BarBackgroundAlias>;
|
|
417
417
|
default: string;
|
|
418
418
|
};
|
|
419
419
|
/** Accessible name of the navigation. @default "Tabs" */
|
|
@@ -430,7 +430,7 @@ export declare const TabBar: import("vue").DefineComponent<import("vue").Extract
|
|
|
430
430
|
value: string;
|
|
431
431
|
defaultValue: string;
|
|
432
432
|
ariaLabel: string;
|
|
433
|
-
background: BarBackground;
|
|
433
|
+
background: "solid" | BarBackground;
|
|
434
434
|
prominent: TabBarProminent;
|
|
435
435
|
minimizeBehavior: "never" | "onScrollDown";
|
|
436
436
|
minimized: boolean;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One width for the segments of a phone's segmented control. Shared by the React and Vue packages (the Vue copy must
|
|
3
|
+
* match).
|
|
4
|
+
*
|
|
5
|
+
* UISegmentedControl at its own width gives every segment the widest one's width (iOS 27.2); where that does not fit,
|
|
6
|
+
* each segment takes its label and the same air around it, as apportionsSegmentWidthsByContent does (ref-app
|
|
7
|
+
* segmented-hug, 13.11). A grid that hugs its content cannot size its tracks to the widest one by itself (the browser
|
|
8
|
+
* sizes it by the sum of its labels), so the widest is measured here and set as the track. Tabs.module.css asks for it
|
|
9
|
+
* with `--tabs-equal-segments: 1` on a phone's horizontal control that is not `block`; elsewhere nothing is set.
|
|
10
|
+
*/
|
|
11
|
+
/** Sets the track and says whether it changed, so a thumb on a segment that moved can follow. */
|
|
12
|
+
export declare function equalizeSegments(root: HTMLElement | null, thumb: HTMLElement | null): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Measures again when the room changes (the segments may fit one width now), when the screen crosses into or out of
|
|
15
|
+
* the phone block (the control starts or stops asking, its room unchanged) and when the font loads and the labels
|
|
16
|
+
* widen. `moved` runs when the track changed, so the thumb can follow its segment, and always once the font has
|
|
17
|
+
* loaded: segments sized by their labels move then with no track and no size changing. Returns the cleanup.
|
|
18
|
+
*/
|
|
19
|
+
export declare function watchSegments(root: HTMLElement, thumb: () => HTMLElement | null, moved: () => void): () => void;
|
|
@@ -5,16 +5,26 @@ export type ToolbarTitleStyle = "inline" | "large" | "compact-large" | "compact-
|
|
|
5
5
|
export type ToolbarTitleAlign = "center" | "start";
|
|
6
6
|
/**
|
|
7
7
|
* How a bar meets the content scrolled under it, after the scroll edge effect of iOS 26:
|
|
8
|
-
* - `"soft"` (the default of a bottom bar): at the top,
|
|
9
|
-
*
|
|
10
|
-
* and a Sheet's bottom bar fades its content into the panel
|
|
11
|
-
* - `"hard"`: an opaque bar of the canvas color with a
|
|
8
|
+
* - `"soft"` (the default of a bottom bar): at the top, once content is under the bar, a blur that grows toward the top under a
|
|
9
|
+
* thin veil of the canvas color, with no line, which lets go past the bar; at the bottom of a page the content stays clear
|
|
10
|
+
* under and around the controls, as on native iOS 26, and a Sheet's bottom bar fades its content into the panel
|
|
11
|
+
* - `"hard"`: an opaque bar of the canvas color with a hairline once content is under it
|
|
12
12
|
* - `"glass"` (the default of a top bar): a translucent, blurred bar with a hairline, shown once content is under it
|
|
13
|
-
* - `"
|
|
13
|
+
* - `"blur"`: no fill and no line, once content is under the bar: the content blurred a little over the bar and past it,
|
|
14
|
+
* and heavily toward the screen's edge
|
|
15
|
+
*
|
|
16
|
+
* iOS 27.2 has two scroll edges, soft and hard; glass is the bar of earlier iOS and blur an app's own.
|
|
14
17
|
*/
|
|
15
|
-
export type BarBackground = "soft" | "hard" | "glass" | "
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
+
export type BarBackground = "soft" | "hard" | "glass" | "blur";
|
|
19
|
+
/**
|
|
20
|
+
* `"solid"` is the earlier name of `"hard"`: iOS has no opaque bar without a line, and it draws the line of a hard edge
|
|
21
|
+
* only once content is under the bar, so at rest the two look the same.
|
|
22
|
+
*/
|
|
23
|
+
export type BarBackgroundAlias = "solid";
|
|
24
|
+
/** `"edge"` is the earlier name of `"soft"`, `"solid"` of `"hard"`. */
|
|
25
|
+
export type ToolbarBackground = BarBackground | BarBackgroundAlias | "edge";
|
|
26
|
+
/** The background a bar draws, from its current name or an earlier one. */
|
|
27
|
+
export declare const barBackground: (background: ToolbarBackground | undefined) => BarBackground | undefined;
|
|
18
28
|
/**
|
|
19
29
|
* A surface that places phone toolbars: `Page` puts the top bar over its content
|
|
20
30
|
* and reserves the space; `Dialog` puts it 16px under the Sheet's top edge.
|
|
@@ -28,6 +38,14 @@ export type ToolbarHost = {
|
|
|
28
38
|
contentBelow?: Ref<boolean>;
|
|
29
39
|
/** Calls the listener with the content's scroll offset on every scroll; returns the unsubscribe. A TabBar minimizes with it. */
|
|
30
40
|
subscribeScroll?: (listener: (scrollTop: number) => void) => () => void;
|
|
41
|
+
/** A large title asks for a place in the content; returns the release. */
|
|
42
|
+
requestLargeTitleSlot?: () => () => void;
|
|
43
|
+
/** The place at the top of the content where a large title scrolls with it, once the content has made one. */
|
|
44
|
+
largeTitleSlot?: Ref<HTMLElement | null>;
|
|
45
|
+
/** The place under a large title where the bar's rows stand, pinned under the bar once scrolled up to it. */
|
|
46
|
+
largeTitleRowSlot?: Ref<HTMLElement | null>;
|
|
47
|
+
/** The rows under a large title are pinned under the bar, so its background reaches under them. */
|
|
48
|
+
rowsPinned?: Ref<boolean>;
|
|
31
49
|
};
|
|
32
50
|
export declare const TOOLBAR_HOST: InjectionKey<ToolbarHost>;
|
|
33
51
|
declare const ToolbarComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -76,8 +94,8 @@ declare const ToolbarComponent: import("vue").DefineComponent<import("vue").Extr
|
|
|
76
94
|
};
|
|
77
95
|
}>> & Readonly<{}>, {
|
|
78
96
|
background: ToolbarBackground;
|
|
79
|
-
titleStyle: ToolbarTitleStyle;
|
|
80
97
|
placement: ToolbarPlacement;
|
|
98
|
+
titleStyle: ToolbarTitleStyle;
|
|
81
99
|
titleAlign: ToolbarTitleAlign;
|
|
82
100
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
101
|
/** Props of `Toolbar`. */
|
|
@@ -106,6 +124,18 @@ export declare const ToolbarTrailing: import("vue").DefineComponent<{}, () => im
|
|
|
106
124
|
export declare const ToolbarGroup: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
107
125
|
[key: string]: any;
|
|
108
126
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
127
|
+
/**
|
|
128
|
+
* A row under the controls, part of the bar: a segmented control that switches the screen's views (a chat list's
|
|
129
|
+
* folders under its bar), or a search field. It spans the bar, and a control in it fills the row; several rows stand in
|
|
130
|
+
* their order (a search field over a segmented control). Under a large title on a page the rows stand under the title,
|
|
131
|
+
* at the top of the content, and once scrolled up to the bar they stay pinned under its controls, as iOS 27.2 pins a
|
|
132
|
+
* safeAreaBar under a large title's bar (React `Toolbar.Row`).
|
|
133
|
+
*/
|
|
134
|
+
export declare const ToolbarRow: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
137
|
+
[key: string]: any;
|
|
138
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
109
139
|
/** Custom middle content: a search field, a segmented control or a single centered action (React `Toolbar.Content`). */
|
|
110
140
|
export declare const ToolbarContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
111
141
|
/** Stretch between the leading and trailing items, as a search field does. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Toolbar, ToolbarContent, ToolbarGroup, ToolbarLeading, ToolbarTitle, ToolbarTrailing, TOOLBAR_HOST, type BarBackground, type ToolbarBackground, type ToolbarHost, type ToolbarPlacement, type ToolbarProps, type ToolbarTitleAlign, type ToolbarTitleStyle, } from "./Toolbar.js";
|
|
1
|
+
export { Toolbar, ToolbarContent, ToolbarGroup, ToolbarLeading, ToolbarRow, ToolbarTitle, ToolbarTrailing, TOOLBAR_HOST, type BarBackground, type BarBackgroundAlias, type ToolbarBackground, type ToolbarHost, type ToolbarPlacement, type ToolbarProps, type ToolbarTitleAlign, type ToolbarTitleStyle, } from "./Toolbar.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plexui/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Plex UI components for Vue 3, built on Reka UI and the shared @plexui/styles CSS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@maskito/core": "5.2.2",
|
|
78
78
|
"@maskito/kit": "5.2.2",
|
|
79
79
|
"@maskito/vue": "5.2.2",
|
|
80
|
-
"@plexui/styles": "^0.
|
|
80
|
+
"@plexui/styles": "^0.5.0",
|
|
81
81
|
"@tanstack/table-core": "8.21.3",
|
|
82
82
|
"@tanstack/vue-table": "8.21.3",
|
|
83
83
|
"@tiptap/core": "3.21.0",
|