@dust-tt/sparkle 0.2.39-alpha → 0.2.39
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/cjs/components/Item.d.ts +8 -21
- package/dist/cjs/index.js +57 -176
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Item.d.ts +8 -21
- package/dist/esm/index.js +57 -176
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import React, { ComponentType, MouseEvent, ReactNode } from "react";
|
|
2
2
|
type ItemProps = {
|
|
3
3
|
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
style: "action" | "item";
|
|
5
|
+
spacing?: "sm" | "md";
|
|
6
|
+
selectable?: boolean;
|
|
6
7
|
selected?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
label: string;
|
|
9
|
-
|
|
10
|
+
description?: string;
|
|
10
11
|
visual?: string | React.ReactNode;
|
|
12
|
+
icon?: ComponentType;
|
|
13
|
+
action?: ComponentType;
|
|
14
|
+
hasAction?: boolean | "hover";
|
|
11
15
|
className?: string;
|
|
12
16
|
href?: string;
|
|
13
17
|
};
|
|
14
|
-
export declare function Item({
|
|
18
|
+
export declare function Item({ label, description, visual, icon, style, spacing, action, hasAction, onClick, selected, disabled, className, href, }: ItemProps): React.JSX.Element;
|
|
15
19
|
export declare namespace Item {
|
|
16
20
|
var Entry: (props: EntryItemProps) => React.JSX.Element;
|
|
17
21
|
var Avatar: ({ description, ...otherProps }: AvatarItemProps) => React.JSX.Element;
|
|
@@ -66,21 +70,4 @@ interface ItemSectionHeaderProps {
|
|
|
66
70
|
label: string;
|
|
67
71
|
variant?: "primary" | "secondary";
|
|
68
72
|
}
|
|
69
|
-
type Item2Props = {
|
|
70
|
-
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
71
|
-
style: "action" | "item";
|
|
72
|
-
spacing?: "sm" | "md";
|
|
73
|
-
selectable?: boolean;
|
|
74
|
-
selected?: boolean;
|
|
75
|
-
disabled?: boolean;
|
|
76
|
-
label: string;
|
|
77
|
-
description?: string;
|
|
78
|
-
visual?: string | React.ReactNode;
|
|
79
|
-
icon?: ComponentType;
|
|
80
|
-
action?: ComponentType;
|
|
81
|
-
hasAction?: boolean | "hover";
|
|
82
|
-
className?: string;
|
|
83
|
-
href?: string;
|
|
84
|
-
};
|
|
85
|
-
export declare function Item2({ label, description, visual, icon, style, spacing, action, hasAction, onClick, selected, disabled, className, href, }: Item2Props): React.JSX.Element;
|
|
86
73
|
export {};
|