@plexui/vue 0.3.0 → 0.5.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.
@@ -157,15 +157,12 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
157
157
  type: BooleanConstructor;
158
158
  default: boolean;
159
159
  };
160
- /** Width of the menu. @default "auto" */
160
+ /** Width of the menu. @default the trigger width (fits the options when not block) */
161
161
  listWidth: PropType<ListSize>;
162
- /** `min-width` of the menu, in pixels. @default the trigger width (300 when not block) */
162
+ /** `min-width` of the menu, in pixels. @default the trigger width */
163
163
  listMinWidth: PropType<ListSize>;
164
- /** `max-width` of the menu, in pixels. @default "auto" */
165
- listMaxWidth: {
166
- type: PropType<ListSize>;
167
- default: string;
168
- };
164
+ /** `max-width` of the menu, in pixels. @default "auto" (300 when not block) */
165
+ listMaxWidth: PropType<ListSize>;
169
166
  /** Predicate used to filter searches */
170
167
  searchPredicate: PropType<SearchPredicate<Option>>;
171
168
  /** Placeholder of the search input */
@@ -309,15 +306,12 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
309
306
  type: BooleanConstructor;
310
307
  default: boolean;
311
308
  };
312
- /** Width of the menu. @default "auto" */
309
+ /** Width of the menu. @default the trigger width (fits the options when not block) */
313
310
  listWidth: PropType<ListSize>;
314
- /** `min-width` of the menu, in pixels. @default the trigger width (300 when not block) */
311
+ /** `min-width` of the menu, in pixels. @default the trigger width */
315
312
  listMinWidth: PropType<ListSize>;
316
- /** `max-width` of the menu, in pixels. @default "auto" */
317
- listMaxWidth: {
318
- type: PropType<ListSize>;
319
- default: string;
320
- };
313
+ /** `max-width` of the menu, in pixels. @default "auto" (300 when not block) */
314
+ listMaxWidth: PropType<ListSize>;
321
315
  /** Predicate used to filter searches */
322
316
  searchPredicate: PropType<SearchPredicate<Option>>;
323
317
  /** Placeholder of the search input */
@@ -370,7 +364,6 @@ declare const SelectComponent: import("vue").DefineComponent<import("vue").Extra
370
364
  dropdownIconType: DropdownIconType;
371
365
  loadingPlaceholder: string;
372
366
  allSelectedLabel: string;
373
- listMaxWidth: ListSize;
374
367
  searchPlaceholder: string;
375
368
  searchAriaLabel: string;
376
369
  searchEmptyMessage: string | number | VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -1,8 +1,8 @@
1
1
  import { type AnchorHTMLAttributes, type ButtonHTMLAttributes, type DefineComponent, type HTMLAttributes, type LiHTMLAttributes, type PropType, type VNode } from "vue";
2
2
  import { Input, type InputProps } from "../Input/index.js";
3
- import { SidebarProvider, useSidebar, type SidebarCollapsible, type SidebarSide, type SidebarVariant } from "./useSidebarContext.js";
3
+ import { SidebarProvider, useSidebar, type SidebarCollapsible, type SidebarSide, type SidebarProviderVariant, type SidebarVariant } from "./useSidebarContext.js";
4
4
  export { SidebarProvider, useSidebar };
5
- export type { SidebarCollapsible, SidebarSide, SidebarVariant };
5
+ export type { SidebarCollapsible, SidebarProviderVariant, SidebarSide, SidebarVariant };
6
6
  type Part<A> = DefineComponent & {
7
7
  new (): {
8
8
  $props: A;
@@ -1,4 +1,4 @@
1
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, SidebarVariant, } 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";
3
3
  export type { SidebarContextValue, SidebarProviderProps, SidebarState } from "./useSidebarContext.js";
4
4
  export { SIDEBAR_CONSTANTS } from "./useSidebarContext.js";
@@ -3,6 +3,7 @@ export type SidebarState = "expanded" | "collapsed";
3
3
  export type SidebarCollapsible = "offcanvas" | "icon" | "none";
4
4
  export type SidebarSide = "left" | "right";
5
5
  export type SidebarVariant = "sidebar" | "docs";
6
+ export type SidebarProviderVariant = "sidebar" | "app";
6
7
  export type SidebarContextValue = {
7
8
  state: SidebarState;
8
9
  open: boolean;
@@ -36,6 +37,11 @@ declare const SidebarProviderComponent: import("vue").DefineComponent<import("vu
36
37
  type: PropType<SidebarCollapsible>;
37
38
  default: string;
38
39
  };
40
+ /** "app" is the shell of a product: a quiet rail, pill rows and on a phone a drawer under the page. @default "sidebar" */
41
+ variant: {
42
+ type: PropType<SidebarProviderVariant>;
43
+ default: string;
44
+ };
39
45
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
46
  [key: string]: any;
41
47
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -57,12 +63,18 @@ declare const SidebarProviderComponent: import("vue").DefineComponent<import("vu
57
63
  type: PropType<SidebarCollapsible>;
58
64
  default: string;
59
65
  };
66
+ /** "app" is the shell of a product: a quiet rail, pill rows and on a phone a drawer under the page. @default "sidebar" */
67
+ variant: {
68
+ type: PropType<SidebarProviderVariant>;
69
+ default: string;
70
+ };
60
71
  }>> & Readonly<{
61
72
  "onUpdate:open"?: ((_open: boolean) => any) | undefined;
62
73
  }>, {
63
74
  collapsible: SidebarCollapsible;
64
75
  open: boolean;
65
76
  defaultOpen: boolean;
77
+ variant: SidebarProviderVariant;
66
78
  }, SlotsType<{
67
79
  default?: (context: SidebarContextValue) => unknown;
68
80
  }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -80,6 +92,7 @@ export declare const SidebarProvider: typeof SidebarProviderComponent & {
80
92
  };
81
93
  export declare const SIDEBAR_CONSTANTS: {
82
94
  readonly WIDTH: "240px";
95
+ readonly WIDTH_APP: "260px";
83
96
  readonly WIDTH_MOBILE: "288px";
84
97
  readonly WIDTH_ICON: "64px";
85
98
  readonly KEYBOARD_SHORTCUT: "b";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/vue",
3
- "version": "0.3.0",
3
+ "version": "0.5.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",