@plexui/vue 0.41.1 → 0.42.1

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.
Files changed (87) hide show
  1. package/dist/es/components/Accordion/Accordion.js +18 -0
  2. package/dist/es/components/Accordion/Accordion.js.map +1 -1
  3. package/dist/es/components/Button/NavigationButton.js +13 -2
  4. package/dist/es/components/Button/NavigationButton.js.map +1 -1
  5. package/dist/es/components/Dialog/Dialog.js +47 -3
  6. package/dist/es/components/Dialog/Dialog.js.map +1 -1
  7. package/dist/es/components/Dialog/sheetDrag.js +45 -12
  8. package/dist/es/components/Dialog/sheetDrag.js.map +1 -1
  9. package/dist/es/components/Field/Field.js +32 -3
  10. package/dist/es/components/Field/Field.js.map +1 -1
  11. package/dist/es/components/Icon/svg/Array.js +4 -4
  12. package/dist/es/components/Icon/svg/Array.js.map +1 -1
  13. package/dist/es/components/Icon/svg/Boolean.js +4 -4
  14. package/dist/es/components/Icon/svg/Boolean.js.map +1 -1
  15. package/dist/es/components/Icon/svg/Clipboard.js +4 -4
  16. package/dist/es/components/Icon/svg/Clipboard.js.map +1 -1
  17. package/dist/es/components/Icon/svg/Comment.js +4 -4
  18. package/dist/es/components/Icon/svg/Comment.js.map +1 -1
  19. package/dist/es/components/Icon/svg/Error.js +4 -4
  20. package/dist/es/components/Icon/svg/Error.js.map +1 -1
  21. package/dist/es/components/Icon/svg/Function.js +4 -4
  22. package/dist/es/components/Icon/svg/Function.js.map +1 -1
  23. package/dist/es/components/Icon/svg/Number.js +4 -4
  24. package/dist/es/components/Icon/svg/Number.js.map +1 -1
  25. package/dist/es/components/Icon/svg/Object.js +4 -4
  26. package/dist/es/components/Icon/svg/Object.js.map +1 -1
  27. package/dist/es/components/Icon/svg/Report.js +4 -4
  28. package/dist/es/components/Icon/svg/Report.js.map +1 -1
  29. package/dist/es/components/Icon/svg/Storage.js +4 -4
  30. package/dist/es/components/Icon/svg/Storage.js.map +1 -1
  31. package/dist/es/components/Icon/svg/String.js +4 -4
  32. package/dist/es/components/Icon/svg/String.js.map +1 -1
  33. package/dist/es/components/Icon/svg/Text.js +4 -4
  34. package/dist/es/components/Icon/svg/Text.js.map +1 -1
  35. package/dist/es/components/Menu/Menu.js +29 -2
  36. package/dist/es/components/Menu/Menu.js.map +1 -1
  37. package/dist/es/components/PlexUIProvider/PlexUIProvider.js +43 -3
  38. package/dist/es/components/PlexUIProvider/PlexUIProvider.js.map +1 -1
  39. package/dist/es/components/PlexUIProvider/androidRipple.js +98 -0
  40. package/dist/es/components/PlexUIProvider/androidRipple.js.map +1 -0
  41. package/dist/es/components/PlexUIProvider/index.js.map +1 -1
  42. package/dist/es/components/Select/Select.js +364 -22
  43. package/dist/es/components/Select/Select.js.map +1 -1
  44. package/dist/es/components/Sidebar/Sidebar.js +8 -1
  45. package/dist/es/components/Sidebar/Sidebar.js.map +1 -1
  46. package/dist/es/components/Sidebar/index.js +1 -1
  47. package/dist/es/components/Sidebar/index.js.map +1 -1
  48. package/dist/es/components/Toolbar/Toolbar.js +276 -17
  49. package/dist/es/components/Toolbar/Toolbar.js.map +1 -1
  50. package/dist/es/components/Toolbar/index.js.map +1 -1
  51. package/dist/es/lib/accordionMotion.js +144 -0
  52. package/dist/es/lib/accordionMotion.js.map +1 -0
  53. package/dist/es/lib/fieldRow.js +54 -0
  54. package/dist/es/lib/fieldRow.js.map +1 -1
  55. package/dist/es/lib/presentMotion.js +151 -0
  56. package/dist/es/lib/presentMotion.js.map +1 -0
  57. package/dist/types/components/Button/NavigationButton.d.ts +30 -1
  58. package/dist/types/components/ContextMenu/ContextMenu.d.ts +8 -8
  59. package/dist/types/components/Field/Field.d.ts +12 -2
  60. package/dist/types/components/FloatingLabelSelect/FloatingLabelSelect.d.ts +1 -1
  61. package/dist/types/components/Icon/svg/Array.d.ts +2 -2
  62. package/dist/types/components/Icon/svg/Boolean.d.ts +2 -2
  63. package/dist/types/components/Icon/svg/Clipboard.d.ts +2 -2
  64. package/dist/types/components/Icon/svg/Comment.d.ts +2 -2
  65. package/dist/types/components/Icon/svg/Error.d.ts +2 -2
  66. package/dist/types/components/Icon/svg/Function.d.ts +2 -2
  67. package/dist/types/components/Icon/svg/Number.d.ts +2 -2
  68. package/dist/types/components/Icon/svg/Object.d.ts +2 -2
  69. package/dist/types/components/Icon/svg/Report.d.ts +2 -2
  70. package/dist/types/components/Icon/svg/Storage.d.ts +2 -2
  71. package/dist/types/components/Icon/svg/String.d.ts +2 -2
  72. package/dist/types/components/Icon/svg/Text.d.ts +2 -2
  73. package/dist/types/components/PlexUIProvider/PlexUIProvider.d.ts +20 -3
  74. package/dist/types/components/PlexUIProvider/androidRipple.d.ts +9 -0
  75. package/dist/types/components/PlexUIProvider/index.d.ts +1 -1
  76. package/dist/types/components/Select/Select.d.ts +51 -0
  77. package/dist/types/components/Sidebar/Sidebar.d.ts +20 -0
  78. package/dist/types/components/Sidebar/index.d.ts +2 -2
  79. package/dist/types/components/Sidebar/useSidebarContext.d.ts +1 -1
  80. package/dist/types/components/TabBar/TabBar.d.ts +4 -4
  81. package/dist/types/components/Toast/Toaster.d.ts +1 -1
  82. package/dist/types/components/Toolbar/Toolbar.d.ts +49 -12
  83. package/dist/types/components/Toolbar/index.d.ts +1 -1
  84. package/dist/types/lib/accordionMotion.d.ts +20 -0
  85. package/dist/types/lib/fieldRow.d.ts +12 -0
  86. package/dist/types/lib/presentMotion.d.ts +46 -0
  87. package/package.json +2 -2
@@ -1,3 +1,3 @@
1
1
  import { type FunctionalComponent, type SVGAttributes } from "vue";
2
- declare const Report: FunctionalComponent<SVGAttributes>;
3
- export default Report;
2
+ declare const ReportIcon: FunctionalComponent<SVGAttributes>;
3
+ export default ReportIcon;
@@ -1,3 +1,3 @@
1
1
  import { type FunctionalComponent, type SVGAttributes } from "vue";
2
- declare const Storage: FunctionalComponent<SVGAttributes>;
3
- export default Storage;
2
+ declare const StorageIcon: FunctionalComponent<SVGAttributes>;
3
+ export default StorageIcon;
@@ -1,3 +1,3 @@
1
1
  import { type FunctionalComponent, type SVGAttributes } from "vue";
2
- declare const String: FunctionalComponent<SVGAttributes>;
3
- export default String;
2
+ declare const StringIcon: FunctionalComponent<SVGAttributes>;
3
+ export default StringIcon;
@@ -1,3 +1,3 @@
1
1
  import { type FunctionalComponent, type SVGAttributes } from "vue";
2
- declare const Text: FunctionalComponent<SVGAttributes>;
3
- export default Text;
2
+ declare const TextIcon: FunctionalComponent<SVGAttributes>;
3
+ export default TextIcon;
@@ -1,6 +1,11 @@
1
1
  import { type Component, type InjectionKey, type PropType } from "vue";
2
2
  /** Component used to render internal links: `"a"` or your router's link (e.g. vue-router's `RouterLink`). */
3
3
  export type LinkComponent = Component | "a";
4
+ /**
5
+ * The phone look of the components (with `@plexui/styles/styles/touch.css`): `"ios"` draws iOS 26, `"android"` the
6
+ * Plex Android look, `"auto"` the Android look on an Android browser and iOS elsewhere.
7
+ */
8
+ export type PlexUIPlatform = "auto" | "ios" | "android";
4
9
  type PlexUIContextValue = {
5
10
  linkComponent: LinkComponent;
6
11
  };
@@ -9,14 +14,19 @@ export declare const PlexUIContextKey: InjectionKey<PlexUIContextValue>;
9
14
  * Shared context for all Plex UI components - wrap your app in this
10
15
  * provider to use Plex UI components.
11
16
  *
12
- * It only holds the component used for rendering links, like the React
13
- * provider.
17
+ * It holds the component used for rendering links and picks the phone look
18
+ * (`platform`), like the React provider.
14
19
  */
15
20
  export declare const PlexUIProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
16
21
  linkComponent: {
17
22
  type: PropType<LinkComponent>;
18
23
  required: true;
19
24
  };
25
+ /** The phone look: iOS 26, the Plex Android look, or `"auto"` (Android on an Android browser) */
26
+ platform: {
27
+ type: PropType<PlexUIPlatform>;
28
+ default: string;
29
+ };
20
30
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
31
  [key: string]: any;
22
32
  }>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -24,5 +34,12 @@ export declare const PlexUIProvider: import("vue").DefineComponent<import("vue")
24
34
  type: PropType<LinkComponent>;
25
35
  required: true;
26
36
  };
27
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ /** The phone look: iOS 26, the Plex Android look, or `"auto"` (Android on an Android browser) */
38
+ platform: {
39
+ type: PropType<PlexUIPlatform>;
40
+ default: string;
41
+ };
42
+ }>> & Readonly<{}>, {
43
+ platform: PlexUIPlatform;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
45
  export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The press of the Plex Android look: a ripple, as Android's RippleDrawable draws one (its timing and colors are in
3
+ * `@plexui/styles/styles/android.css`). PlexUIProvider listens for presses while the platform is Android; a press
4
+ * gives the control under the finger where its circle starts and how far it grows, as custom properties, and
5
+ * restarts its animation (`data-ripple`). The styles decide which controls draw it, in what shape and color. The same
6
+ * file is in @plexui/ui.
7
+ */
8
+ /** Starts the ripple on the document; the returned function stops it once every caller has. */
9
+ export declare function installAndroidRipple(): () => void;
@@ -1 +1 @@
1
- export { PlexUIProvider, type LinkComponent } from "./PlexUIProvider.js";
1
+ export { PlexUIProvider, type LinkComponent, type PlexUIPlatform } from "./PlexUIProvider.js";
@@ -202,6 +202,30 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
202
202
  };
203
203
  /** Renders a custom trigger (or the `#trigger` slot), wrapped as the popover trigger */
204
204
  trigger: PropType<(props: SelectTriggerRenderProps) => VNodeChild>;
205
+ /**
206
+ * What a press opens on Android: the Plex Android look (`data-platform="android"` on the document's root) in a
207
+ * window 767px wide or narrower. `dialog`, Android's choice dialog: the setting's name over a row for each option,
208
+ * and Cancel. With one choice a row has a radio, and a press on it chooses it and closes the dialog; a `multiple`
209
+ * select has a checkbox in each row and OK, which applies the rows checked. `menu`, the popup of the options. iOS
210
+ * and a desktop always open the menu.
211
+ * @default "dialog", or "menu" for a `multiple` select
212
+ */
213
+ picker: {
214
+ type: PropType<"dialog" | "menu">;
215
+ default: undefined;
216
+ };
217
+ /** Android: the title of the picker dialog (`picker="dialog"`), the setting's name. @default the field's label (`aria-labelledby`), else `aria-label` */
218
+ title: StringConstructor;
219
+ /** Android: the button that closes the picker dialog (`picker="dialog"`) with no change. @default "Cancel" */
220
+ cancelLabel: {
221
+ type: StringConstructor;
222
+ default: string;
223
+ };
224
+ /** Android: the button of a `multiple` select's picker dialog (`picker="dialog"`) that applies the rows checked. @default "OK" */
225
+ okLabel: {
226
+ type: StringConstructor;
227
+ default: string;
228
+ };
205
229
  ariaLabel: StringConstructor;
206
230
  ariaLabelledby: StringConstructor;
207
231
  ariaDescribedby: StringConstructor;
@@ -364,6 +388,30 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
364
388
  };
365
389
  /** Renders a custom trigger (or the `#trigger` slot), wrapped as the popover trigger */
366
390
  trigger: PropType<(props: SelectTriggerRenderProps) => VNodeChild>;
391
+ /**
392
+ * What a press opens on Android: the Plex Android look (`data-platform="android"` on the document's root) in a
393
+ * window 767px wide or narrower. `dialog`, Android's choice dialog: the setting's name over a row for each option,
394
+ * and Cancel. With one choice a row has a radio, and a press on it chooses it and closes the dialog; a `multiple`
395
+ * select has a checkbox in each row and OK, which applies the rows checked. `menu`, the popup of the options. iOS
396
+ * and a desktop always open the menu.
397
+ * @default "dialog", or "menu" for a `multiple` select
398
+ */
399
+ picker: {
400
+ type: PropType<"dialog" | "menu">;
401
+ default: undefined;
402
+ };
403
+ /** Android: the title of the picker dialog (`picker="dialog"`), the setting's name. @default the field's label (`aria-labelledby`), else `aria-label` */
404
+ title: StringConstructor;
405
+ /** Android: the button that closes the picker dialog (`picker="dialog"`) with no change. @default "Cancel" */
406
+ cancelLabel: {
407
+ type: StringConstructor;
408
+ default: string;
409
+ };
410
+ /** Android: the button of a `multiple` select's picker dialog (`picker="dialog"`) that applies the rows checked. @default "OK" */
411
+ okLabel: {
412
+ type: StringConstructor;
413
+ default: string;
414
+ };
367
415
  ariaLabel: StringConstructor;
368
416
  ariaLabelledby: StringConstructor;
369
417
  ariaDescribedby: StringConstructor;
@@ -386,6 +434,7 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
386
434
  loading: boolean;
387
435
  side: PopoverSide;
388
436
  avoidCollisions: boolean;
437
+ cancelLabel: string;
389
438
  clearable: boolean;
390
439
  dropdownIconType: DropdownIconType;
391
440
  loadingPlaceholder: string;
@@ -398,6 +447,8 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
398
447
  [key: string]: any;
399
448
  }>;
400
449
  checkPosition: CheckPosition;
450
+ picker: "dialog" | "menu";
451
+ okLabel: string;
401
452
  ariaInvalid: boolean | "true" | "false" | "grammar" | "spelling";
402
453
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
403
454
  type SelectOwnProps = InstanceType<typeof SelectComponent>["$props"];
@@ -110,6 +110,14 @@ declare const SidebarGroupLabelComponent: DefineComponent<import("vue").ExtractP
110
110
  type: PropType<"sm" | "lg">;
111
111
  default: string;
112
112
  };
113
+ /**
114
+ * Starts the label 12px in, at the rows' text. Off, it starts at the group's edge: a label over a panel of fields.
115
+ * @default true
116
+ */
117
+ inset: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
113
121
  }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
114
122
  [key: string]: any;
115
123
  }> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -128,9 +136,18 @@ declare const SidebarGroupLabelComponent: DefineComponent<import("vue").ExtractP
128
136
  type: PropType<"sm" | "lg">;
129
137
  default: string;
130
138
  };
139
+ /**
140
+ * Starts the label 12px in, at the rows' text. Off, it starts at the group's edge: a label over a panel of fields.
141
+ * @default true
142
+ */
143
+ inset: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
131
147
  }>> & Readonly<{}>, {
132
148
  asChild: boolean;
133
149
  size: "sm" | "lg";
150
+ inset: boolean;
134
151
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
135
152
  export type SidebarGroupLabelProps = InstanceType<typeof SidebarGroupLabelComponent>["$props"] & HTMLAttributes;
136
153
  /** Section label within a SidebarGroup. */
@@ -369,6 +386,9 @@ export declare const SidebarMenuSubButton: typeof SidebarMenuSubButtonComponent
369
386
  $props: SidebarMenuSubButtonProps;
370
387
  };
371
388
  };
389
+ export type SidebarMenuSubButtonLabelProps = HTMLAttributes;
390
+ /** The text of a SidebarMenuSubButton: it fills the row, starts at its start and ends in an ellipsis. */
391
+ export declare const SidebarMenuSubButtonLabel: Part<HTMLAttributes>;
372
392
  export type SidebarSeparatorProps = HTMLAttributes;
373
393
  export declare const SidebarSeparator: ReturnType<typeof part<SidebarSeparatorProps>>;
374
394
  declare const SidebarCardComponent: DefineComponent<import("vue").ExtractPropTypes<{
@@ -1,4 +1,4 @@
1
- export { Sidebar, SidebarCard, SidebarCardContent, SidebarCardFooter, SidebarCardHeader, SidebarCardTitle, SidebarCardTitleLink, SidebarContent, SidebarFooter, SidebarFooterLinks, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuButtonIcon, SidebarMenuButtonLabel, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobile, SidebarMobileFooter, SidebarMobileHeader, SidebarMobileMenuButton, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./Sidebar.js";
2
- export type { SidebarCardContentProps, SidebarCardFooterProps, SidebarCardHeaderProps, SidebarCardProps, SidebarCardTitleLinkProps, SidebarCardTitleProps, SidebarCollapsible, SidebarContentProps, SidebarFooterLinksProps, SidebarFooterProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarInputProps, SidebarInsetProps, SidebarLayoutProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuButtonIconProps, SidebarMenuButtonLabelProps, SidebarMenuButtonProps, SidebarMenuChevronProps, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeletonProps, SidebarMenuSubButtonProps, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarMobileFooterProps, SidebarMobileHeaderProps, SidebarMobileMenuButtonProps, SidebarMobileProps, SidebarProps, SidebarRailProps, SidebarSeparatorProps, SidebarSide, SidebarTriggerProps, SidebarProviderVariant, SidebarVariant, } from "./Sidebar.js";
1
+ export { Sidebar, SidebarCard, SidebarCardContent, SidebarCardFooter, SidebarCardHeader, SidebarCardTitle, SidebarCardTitleLink, SidebarContent, SidebarFooter, SidebarFooterLinks, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuButtonIcon, SidebarMenuButtonLabel, SidebarMenuChevron, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubButtonLabel, SidebarMenuSubItem, SidebarMobile, SidebarMobileFooter, SidebarMobileHeader, SidebarMobileMenuButton, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./Sidebar.js";
2
+ export type { SidebarCardContentProps, SidebarCardFooterProps, SidebarCardHeaderProps, SidebarCardProps, SidebarCardTitleLinkProps, SidebarCardTitleProps, SidebarCollapsible, SidebarContentProps, SidebarFooterLinksProps, SidebarFooterProps, SidebarGroupActionProps, SidebarGroupContentProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarInputProps, SidebarInsetProps, SidebarLayoutProps, SidebarMenuActionProps, SidebarMenuBadgeProps, SidebarMenuButtonIconProps, SidebarMenuButtonLabelProps, SidebarMenuButtonProps, SidebarMenuChevronProps, SidebarMenuItemProps, SidebarMenuProps, SidebarMenuSkeletonProps, SidebarMenuSubButtonProps, SidebarMenuSubButtonLabelProps, SidebarMenuSubItemProps, SidebarMenuSubProps, SidebarMobileFooterProps, SidebarMobileHeaderProps, SidebarMobileMenuButtonProps, SidebarMobileProps, SidebarProps, SidebarRailProps, SidebarSeparatorProps, SidebarSide, SidebarTriggerProps, SidebarProviderVariant, SidebarVariant, } from "./Sidebar.js";
3
3
  export type { SidebarContextValue, SidebarProviderProps, SidebarState } from "./useSidebarContext.js";
4
4
  export { SIDEBAR_CONSTANTS } from "./useSidebarContext.js";
@@ -94,8 +94,8 @@ declare const SidebarProviderComponent: import("vue").DefineComponent<import("vu
94
94
  "onUpdate:open"?: ((_open: boolean) => any) | undefined;
95
95
  "onUpdate:openMobile"?: ((_open: boolean) => any) | undefined;
96
96
  }>, {
97
- collapsible: SidebarCollapsible;
98
97
  open: boolean;
98
+ collapsible: SidebarCollapsible;
99
99
  defaultOpen: boolean;
100
100
  variant: SidebarProviderVariant;
101
101
  openMobile: boolean;
@@ -31,7 +31,7 @@ declare const TabBarItemComponent: import("vue").DefineComponent<import("vue").E
31
31
  * A count of 0 shows none, as on iOS.
32
32
  */
33
33
  badge: {
34
- type: (StringConstructor | NumberConstructor)[];
34
+ type: (NumberConstructor | StringConstructor)[];
35
35
  default: undefined;
36
36
  };
37
37
  /** When `true`, the tab cannot be selected. */
@@ -67,7 +67,7 @@ declare const TabBarItemComponent: import("vue").DefineComponent<import("vue").E
67
67
  * A count of 0 shows none, as on iOS.
68
68
  */
69
69
  badge: {
70
- type: (StringConstructor | NumberConstructor)[];
70
+ type: (NumberConstructor | StringConstructor)[];
71
71
  default: undefined;
72
72
  };
73
73
  /** When `true`, the tab cannot be selected. */
@@ -108,7 +108,7 @@ export declare const TabBarItem: import("vue").DefineComponent<import("vue").Ext
108
108
  * A count of 0 shows none, as on iOS.
109
109
  */
110
110
  badge: {
111
- type: (StringConstructor | NumberConstructor)[];
111
+ type: (NumberConstructor | StringConstructor)[];
112
112
  default: undefined;
113
113
  };
114
114
  /** When `true`, the tab cannot be selected. */
@@ -144,7 +144,7 @@ export declare const TabBarItem: import("vue").DefineComponent<import("vue").Ext
144
144
  * A count of 0 shows none, as on iOS.
145
145
  */
146
146
  badge: {
147
- type: (StringConstructor | NumberConstructor)[];
147
+ type: (NumberConstructor | StringConstructor)[];
148
148
  default: undefined;
149
149
  };
150
150
  /** When `true`, the tab cannot be selected. */
@@ -45,8 +45,8 @@ declare const ToasterComponent: import("vue").DefineComponent<import("vue").Extr
45
45
  /** Gap between stacked toasts in px */
46
46
  gap: NumberConstructor;
47
47
  }>> & Readonly<{}>, {
48
- position: ("top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right") | undefined;
49
48
  duration: number;
49
+ position: ("top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right") | undefined;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
51
51
  type ToasterOwnProps = InstanceType<typeof ToasterComponent>["$props"];
52
52
  /** Toaster props plus the vue-sonner `Toaster` props it forwards. */
@@ -1,5 +1,14 @@
1
- import { type HTMLAttributes, type InjectionKey, type PropType, type Ref } from "vue";
1
+ import { type HTMLAttributes, type InjectionKey, type PropType, type Ref, type VNode } from "vue";
2
2
  export type ToolbarPlacement = "top" | "bottom";
3
+ /**
4
+ * Where a screen's search field stands (`ToolbarContent search`):
5
+ * - `"bottom"`: the field itself, in the bar it is written in: in a bottom bar, in reach of the thumb, as iOS 26 places a
6
+ * screen's search
7
+ * - `"top"`: a search button first among the top bar's trailing actions; pressed, it grows into the field over the bar,
8
+ * the bar's leading action turns into a back arrow that closes it, and a Sheet goes full screen on Android
9
+ * - `"auto"`: the platform's place, the bottom on iOS and the top in the Plex Android look (`data-platform="android"`)
10
+ */
11
+ export type ToolbarSearchPlacement = "auto" | "top" | "bottom";
3
12
  /** Title layouts of the phone top bar. */
4
13
  export type ToolbarTitleStyle = "inline" | "large" | "compact-large" | "compact-medium";
5
14
  export type ToolbarTitleAlign = "center" | "start";
@@ -74,7 +83,7 @@ declare const ToolbarComponent: import("vue").DefineComponent<import("vue").Extr
74
83
  type: PropType<ToolbarBackground>;
75
84
  default: undefined;
76
85
  };
77
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
86
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
78
87
  [key: string]: any;
79
88
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
89
  /** @default "top" */
@@ -118,15 +127,15 @@ export declare const Toolbar: typeof ToolbarComponent & {
118
127
  };
119
128
  };
120
129
  /** Items at the leading edge (React `Toolbar.Leading`). */
121
- export declare const ToolbarLeading: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
130
+ export declare const ToolbarLeading: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
122
131
  [key: string]: any;
123
132
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
124
133
  /** Items at the trailing edge (React `Toolbar.Trailing`). */
125
- export declare const ToolbarTrailing: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
134
+ export declare const ToolbarTrailing: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
126
135
  [key: string]: any;
127
136
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
128
137
  /** Buttons that share one capsule (React `Toolbar.Group`). */
129
- export declare const ToolbarGroup: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
138
+ export declare const ToolbarGroup: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
130
139
  [key: string]: any;
131
140
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
132
141
  /**
@@ -136,27 +145,55 @@ export declare const ToolbarGroup: import("vue").DefineComponent<{}, () => impor
136
145
  * 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
137
146
  * safeAreaBar under a large title's bar (React `Toolbar.Row`).
138
147
  */
139
- export declare const ToolbarRow: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
148
+ export declare const ToolbarRow: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
140
149
  [key: string]: any;
141
- }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
150
+ }> | VNode<import("vue").RendererNode, import("vue").RendererElement, {
142
151
  [key: string]: any;
143
152
  }>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
144
- /** Custom middle content: a search field, a segmented control or a single centered action (React `Toolbar.Content`). */
153
+ /**
154
+ * Custom middle content: a search field, a segmented control or a single centered action (React `Toolbar.Content`).
155
+ * With `search` it is the screen's search field, where its placement puts it. At the bottom it is the field in its bar.
156
+ * At the top a search button stands first among the top bar's trailing actions, in the capsule of the icon buttons next
157
+ * to it; pressed, it grows into the field over the bar (from after a back circle to the bar's end) as the title and the
158
+ * actions fade, and the leading action becomes a back arrow. Back, or Escape, closes it, clears the field and gives the
159
+ * button its focus back; a Sheet on Android stands at the full screen while it is open (Dialog.module.css).
160
+ */
145
161
  export declare const ToolbarContent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
146
162
  /** Stretch between the leading and trailing items, as a search field does. */
147
163
  fill: {
148
164
  type: BooleanConstructor;
149
165
  default: boolean;
150
166
  };
151
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
167
+ /**
168
+ * Marks the content as the screen's search field (an `Input`) and sets where it stands (`ToolbarSearchPlacement`):
169
+ * write it in the bottom bar, and at the top it becomes a search button of the top bar beside it, a Page's or a
170
+ * Sheet's, that opens the field over that bar. `true` is `"auto"`: the bottom on iOS, the top on Android.
171
+ */
172
+ search: {
173
+ type: PropType<boolean | ToolbarSearchPlacement>;
174
+ default: undefined;
175
+ };
176
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
152
177
  [key: string]: any;
153
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
178
+ }> | VNode<import("vue").RendererNode, import("vue").RendererElement, {
179
+ [key: string]: any;
180
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
154
181
  /** Stretch between the leading and trailing items, as a search field does. */
155
182
  fill: {
156
183
  type: BooleanConstructor;
157
184
  default: boolean;
158
185
  };
186
+ /**
187
+ * Marks the content as the screen's search field (an `Input`) and sets where it stands (`ToolbarSearchPlacement`):
188
+ * write it in the bottom bar, and at the top it becomes a search button of the top bar beside it, a Page's or a
189
+ * Sheet's, that opens the field over that bar. `true` is `"auto"`: the bottom on iOS, the top on Android.
190
+ */
191
+ search: {
192
+ type: PropType<boolean | ToolbarSearchPlacement>;
193
+ default: undefined;
194
+ };
159
195
  }>> & Readonly<{}>, {
196
+ search: boolean | ToolbarSearchPlacement;
160
197
  fill: boolean;
161
198
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
162
199
  /** The bar title, with an optional second line (React `Toolbar.Title`). */
@@ -175,9 +212,9 @@ export declare const ToolbarTitle: import("vue").DefineComponent<import("vue").E
175
212
  type: PropType<"h1" | "h2" | "h3">;
176
213
  default: string;
177
214
  };
178
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
215
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
179
216
  [key: string]: any;
180
- }> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
217
+ }> | VNode<import("vue").RendererNode, import("vue").RendererElement, {
181
218
  [key: string]: any;
182
219
  }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
183
220
  /** A second, smaller line below the title. The `subtitle` slot takes precedence. */
@@ -1 +1 @@
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";
1
+ export { Toolbar, ToolbarContent, ToolbarGroup, ToolbarLeading, ToolbarRow, ToolbarTitle, ToolbarTrailing, TOOLBAR_HOST, type BarBackground, type BarBackgroundAlias, type ToolbarBackground, type ToolbarHost, type ToolbarPlacement, type ToolbarProps, type ToolbarSearchPlacement, type ToolbarTitleAlign, type ToolbarTitleStyle, } from "./Toolbar.js";
@@ -0,0 +1,20 @@
1
+ /**
2
+ * An Accordion item opens and closes as an iOS 27.2 DisclosureGroup: the panel takes its height at once, its content
3
+ * shows through a clip that grows down from the trigger (the CSS keyframes of the panel), and what follows the item
4
+ * slides down into place, or up when it closes, by a transform. The page lays out once per toggle, not once a frame.
5
+ *
6
+ * The panel's `data-state` changing (or an open panel being inserted, as `asChild` does) is the toggle: a
7
+ * MutationObserver sees it after the framework has updated the DOM and before the frame paints, so the panel's height
8
+ * is known and what follows can be moved back to where it was, then let go. Each move is added to what the element
9
+ * already does (`composite: "add"`), so one item closing while another opens, a nested item inside a moving one, or a
10
+ * quick second toggle all sum to where the layout puts things. Time and curve are the panel's
11
+ * `--accordion-motion-duration` and `--accordion-motion-easing`, which its keyframes use too. With reduced motion,
12
+ * or a zero duration, nothing moves.
13
+ */
14
+ type Classes = {
15
+ root: string;
16
+ item: string;
17
+ content: string;
18
+ };
19
+ export declare function attachAccordionMotion(root: HTMLElement, classes: Classes): () => void;
20
+ export {};
@@ -7,3 +7,15 @@ export declare const provideFieldColumns: (columns: () => boolean) => void;
7
7
  export declare const useFieldColumns: () => ComputedRef<boolean>;
8
8
  /** The control's own `pill`, or else the shape of its row. */
9
9
  export declare const useFieldRowPill: (pill: () => boolean | undefined) => ComputedRef<boolean>;
10
+ /**
11
+ * In the Plex Android look a text field under its label (a vertical `Field row` with the label shown) is a field of
12
+ * an input card: the label stands in the field while it is empty, which the styles tell by `:placeholder-shown`. That
13
+ * needs a placeholder, so there a field without one gets a blank one; elsewhere (iOS, the desktop) nothing is added.
14
+ * `start` gives it and follows the platform and the field's own placeholder, `sync` checks again after a render,
15
+ * `stop` takes it back.
16
+ */
17
+ export declare function blankPlaceholder(controlId: () => string): {
18
+ start: () => void;
19
+ sync: () => void;
20
+ stop: () => void;
21
+ };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * How a phone overlay comes and goes as on iOS 27.2: a sheet grows out of the button that opened it and shrinks back
3
+ * into it as it closes, on SwiftUI's spring(duration: 0.33, bounce: 0.2); a sheet the finger lets go of carries on at
4
+ * the finger's speed, to its rest or off the screen. The CSS springs (--spring-sheet, --spring-menu) are these springs
5
+ * sampled; a released sheet needs one that starts at the finger's speed, which only a runtime sample has.
6
+ */
7
+ /** SwiftUI's spring(duration:bounce:) with mass 1 */
8
+ export type Spring = {
9
+ duration: number;
10
+ bounce: number;
11
+ };
12
+ export declare const SHEET_SPRING: Spring;
13
+ /** A released sheet does not overshoot: past its rest it would lift off the bottom of the screen. */
14
+ export declare const SHEET_RELEASE_SPRING: Spring;
15
+ export declare const MENU_SPRING: Spring;
16
+ /** The time these springs take to settle within 0.001, as --spring-sheet-duration and --spring-menu-duration. */
17
+ export declare const SHEET_SPRING_MS = 495;
18
+ export declare const MENU_SPRING_MS = 325;
19
+ /** The longest a sheet takes to leave: back into its button, or off the screen from a finger's release. */
20
+ export declare const SHEET_EXIT_MS = 500;
21
+ /**
22
+ * A spring as a CSS easing and the time it takes to settle. `velocity` is the start speed in units of the whole move
23
+ * per second: a finger at 1 px/ms with 200 px left to go is 5. `stopAtEnd` keeps it from passing its end, as a sheet
24
+ * let go of toward its rest must not lift off the bottom of the screen however fast it comes.
25
+ */
26
+ export declare function springEasing({ duration, bounce }: Spring, velocity?: number, stopAtEnd?: boolean): {
27
+ easing: string;
28
+ ms: number;
29
+ };
30
+ /** Starts noting what each press lands on, once per document. */
31
+ export declare function watchPresentationSources(doc: Document | undefined): void;
32
+ /** The control pressed just now, which an overlay opening now opens from, if any. */
33
+ export declare function presentationSource(doc: Document | undefined): Element | null;
34
+ /**
35
+ * The transform that lays the panel, at its rest, over the source: the panel grows out of it from there. Null when
36
+ * the source is gone, has no size, lies off the screen or inside the panel: the panel then comes as it would alone.
37
+ */
38
+ export declare function sourceTransform(panel: HTMLElement, source: Element | null): string | null;
39
+ /**
40
+ * A phone menu covers its button, its corner on the button's (menuTriggerCover.ts), and grows from its transform
41
+ * origin, which Radix puts at that corner: the scale that makes it the button's size there is all it takes. Sizes are
42
+ * the boxes' own, so this holds before the menu is placed.
43
+ */
44
+ export declare function sourceScale(panel: HTMLElement, source: HTMLElement | null): string | null;
45
+ /** Whether a phone overlay may grow out of its button: not with reduced motion, nor in the Plex Android look. */
46
+ export declare function growsFromButton(element: Element | null | undefined): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/vue",
3
- "version": "0.41.1",
3
+ "version": "0.42.1",
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.16.6",
80
+ "@plexui/styles": "^0.17.0",
81
81
  "@tanstack/table-core": "8.21.3",
82
82
  "@tanstack/vue-table": "8.21.3",
83
83
  "@tiptap/core": "3.21.0",