@peacock-ui/core 3.0.0-alpha.2 → 3.0.0-alpha.4
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/PeacockProvider.d.ts +3 -1
- package/dist/components/PeacockTabs.d.ts +2 -1
- package/dist/components/layout/PeacockAccordion.d.ts +15 -0
- package/dist/components/navigation/PeacockDropdownMenu.d.ts +27 -0
- package/dist/components/overlay/PeacockCommand.d.ts +8 -1
- package/dist/index.d.ts +2 -0
- package/dist/peacock-ui.js +24089 -21322
- package/dist/peacock-ui.umd.cjs +307 -287
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
interface PeacockContextProps {
|
|
3
3
|
theme: 'light' | 'dark';
|
|
4
|
+
scheme: 'quantum' | 'nebula' | 'aurora';
|
|
4
5
|
}
|
|
5
|
-
export declare const PeacockProvider: ({ children, theme }: {
|
|
6
|
+
export declare const PeacockProvider: ({ children, theme, scheme }: {
|
|
6
7
|
children: ReactNode;
|
|
7
8
|
theme?: "light" | "dark";
|
|
9
|
+
scheme?: "quantum" | "nebula" | "aurora";
|
|
8
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export declare const usePeacock: () => PeacockContextProps;
|
|
10
12
|
export {};
|
|
@@ -11,5 +11,6 @@ export interface PeacockTabsProps {
|
|
|
11
11
|
onValueChange?: (value: string) => void;
|
|
12
12
|
className?: string;
|
|
13
13
|
variant?: 'pill' | 'underline' | 'glass';
|
|
14
|
+
layoutId?: string;
|
|
14
15
|
}
|
|
15
|
-
export declare const PeacockTabs: ({ items, defaultValue, onValueChange, className, variant }: PeacockTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const PeacockTabs: ({ items, defaultValue, onValueChange, className, variant, layoutId }: PeacockTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AccordionItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
content: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface PeacockAccordionProps {
|
|
9
|
+
items: AccordionItem[];
|
|
10
|
+
allowMultiple?: boolean;
|
|
11
|
+
defaultExpanded?: string[];
|
|
12
|
+
className?: string;
|
|
13
|
+
variant?: 'glass' | 'outline' | 'ghost';
|
|
14
|
+
}
|
|
15
|
+
export declare const PeacockAccordion: ({ items, allowMultiple, defaultExpanded, className, variant }: PeacockAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const DropdownMenuShortcut: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -73,4 +73,11 @@ declare const CommandShortcut: {
|
|
|
73
73
|
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
74
74
|
displayName: string;
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
77
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
78
|
+
} & {
|
|
79
|
+
asChild?: boolean;
|
|
80
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
81
|
+
alwaysRender?: boolean;
|
|
82
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export * from './components/PeacockDialog';
|
|
|
13
13
|
export * from './components/PeacockTabs';
|
|
14
14
|
export * from './components/HolographicCard';
|
|
15
15
|
export * from './components/PeacockDock';
|
|
16
|
+
export * from './components/navigation/PeacockDropdownMenu';
|
|
17
|
+
export * from './components/layout/PeacockAccordion';
|
|
16
18
|
export * from './components/inputs/PeacockSlider';
|
|
17
19
|
export * from './components/data-display/PeacockAvatar';
|
|
18
20
|
export * from './components/data-display/PeacockCode';
|