@blockbite/ui 2.0.24 → 2.0.25
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/DataItemList.d.ts +15 -10
- package/dist/DisappearingMessage.d.ts +2 -1
- package/dist/Modal.d.ts +3 -2
- package/dist/ProjectsNavigation.d.ts +1 -2
- package/dist/TagInput.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15654 -1616
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +5 -5
package/dist/DataItemList.d.ts
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
type DataListProps<T extends {
|
|
2
|
+
id: string | number;
|
|
3
|
+
title?: string;
|
|
4
|
+
}> = {
|
|
5
|
+
data: T[];
|
|
6
|
+
active: T;
|
|
7
|
+
setActive: (item: T | undefined) => void;
|
|
6
8
|
onCreate: () => void;
|
|
7
|
-
onDelete: (id:
|
|
8
|
-
onUpdate: (id:
|
|
9
|
-
onSwitch: (prevId:
|
|
10
|
-
renderItemActions?: (item:
|
|
9
|
+
onDelete: (id: T['id']) => void;
|
|
10
|
+
onUpdate: (id: T['id'], updates: Partial<T>) => void;
|
|
11
|
+
onSwitch: (prevId: T['id'], updates: Partial<T>) => void;
|
|
12
|
+
renderItemActions?: (item: T) => React.ReactNode;
|
|
11
13
|
addons?: JSX.Element;
|
|
12
14
|
className?: string;
|
|
13
15
|
footerSlot?: React.ReactNode;
|
|
14
16
|
footerSlotClassName?: string;
|
|
15
17
|
};
|
|
16
|
-
export declare const DataItemList:
|
|
18
|
+
export declare const DataItemList: <T extends {
|
|
19
|
+
id: string | number;
|
|
20
|
+
title?: string;
|
|
21
|
+
}>({ data, active, setActive, onCreate, onDelete, onUpdate, onSwitch, renderItemActions, addons, className, footerSlot, footerSlotClassName, }: DataListProps<T>) => JSX.Element;
|
|
17
22
|
export default DataItemList;
|
|
@@ -4,6 +4,7 @@ type DisappearingMessageProps = {
|
|
|
4
4
|
duration?: number;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
show: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
7
8
|
};
|
|
8
|
-
export declare const DisappearingMessage: ({ duration, className, children, show, message, }: DisappearingMessageProps) => JSX.Element;
|
|
9
|
+
export declare const DisappearingMessage: ({ duration, className, children, show, message, onClose, }: DisappearingMessageProps) => JSX.Element;
|
|
9
10
|
export {};
|
package/dist/Modal.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export declare const useModalContext: () => any;
|
|
2
2
|
type ModalProps = {
|
|
3
3
|
children: React.ReactElement | React.ReactElement[];
|
|
4
|
-
|
|
5
|
-
onOpenChange: (checked: boolean) => void;
|
|
4
|
+
onOpenChange?: (checked: boolean) => void;
|
|
6
5
|
title: string;
|
|
7
6
|
className?: string;
|
|
7
|
+
size?: 'small' | 'medium' | 'large' | 'fill' | 'wide';
|
|
8
|
+
[key: string]: any;
|
|
8
9
|
};
|
|
9
10
|
export declare const Modal: React.FC<ModalProps>;
|
|
10
11
|
export declare const ModalHeader: React.FC<{
|
|
@@ -7,7 +7,6 @@ type Props = {
|
|
|
7
7
|
items: ProjectItem[];
|
|
8
8
|
activeId: string | number;
|
|
9
9
|
onSelect: (id: string | number) => void;
|
|
10
|
-
className?: string;
|
|
11
10
|
};
|
|
12
|
-
export declare const ProjectsNavigation: ({ items, activeId, onSelect
|
|
11
|
+
export declare const ProjectsNavigation: ({ items, activeId, onSelect }: Props) => JSX.Element;
|
|
13
12
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TagInput: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export { TabsList } from './Tabs.js';
|
|
|
42
42
|
export { TabsContent } from './Tabs.js';
|
|
43
43
|
export { Tabs } from './Tabs.js';
|
|
44
44
|
export { Tag } from './Tag.js';
|
|
45
|
+
export { TagInput } from './TagInput.js';
|
|
45
46
|
export { TextControl } from './TextControl.js';
|
|
46
47
|
export { TextControlLabel } from './TextControlLabel.js';
|
|
47
48
|
export { ToggleGroup } from './ToggleGroup.js';
|