@blockbite/ui 2.0.24 → 2.0.26
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/AutocompleteDropdown.d.ts +1 -0
- package/dist/Badge.d.ts +2 -1
- package/dist/ChapterDivider.d.ts +3 -1
- package/dist/DataItemList.d.ts +16 -10
- package/dist/DisappearingMessage.d.ts +2 -1
- package/dist/Icon.d.ts +3 -5
- package/dist/Label.d.ts +7 -0
- package/dist/MetricsControl.d.ts +3 -3
- package/dist/Modal.d.ts +3 -2
- package/dist/Popover.d.ts +4 -4
- package/dist/ProjectsNavigation.d.ts +1 -2
- package/dist/RangeSlider.d.ts +2 -0
- package/dist/SelectControlWrapper.d.ts +4 -3
- package/dist/Spinner.d.ts +2 -4
- package/dist/SplitPane.d.ts +8 -0
- package/dist/Tabs.d.ts +3 -2
- package/dist/TagInput.d.ts +17 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2806 -1926
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/ui.css +1 -1
- package/package.json +7 -5
package/dist/Badge.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ type BadgeProps = {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
onClick?: () => void;
|
|
6
|
+
status?: 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
6
7
|
};
|
|
7
|
-
export declare const Badge: ({ children, className, label, onClick }: BadgeProps) => JSX.Element;
|
|
8
|
+
export declare const Badge: ({ children, className, label, onClick, status, }: BadgeProps) => JSX.Element;
|
|
8
9
|
export {};
|
package/dist/ChapterDivider.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ type ChapterDividerProps = {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
help?: string;
|
|
5
5
|
badge?: string;
|
|
6
|
+
addon?: React.ReactNode;
|
|
7
|
+
gradient?: boolean;
|
|
6
8
|
[key: string]: any;
|
|
7
9
|
};
|
|
8
|
-
export declare const ChapterDivider: ({ title, className, help, badge, ...props }: ChapterDividerProps) => JSX.Element;
|
|
10
|
+
export declare const ChapterDivider: ({ title, className, help, badge, addon, line, ...props }: ChapterDividerProps) => JSX.Element;
|
|
9
11
|
export {};
|
package/dist/DataItemList.d.ts
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
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;
|
|
17
|
+
badge?: string;
|
|
15
18
|
};
|
|
16
|
-
export declare const DataItemList:
|
|
19
|
+
export declare const DataItemList: <T extends {
|
|
20
|
+
id: string | number;
|
|
21
|
+
title?: string;
|
|
22
|
+
}>({ data, active, setActive, onCreate, onDelete, onUpdate, onSwitch, renderItemActions, addons, className, footerSlot, footerSlotClassName, badge, }: DataListProps<T>) => JSX.Element;
|
|
17
23
|
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/Icon.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
icon: React.FC<React.SVGProps<SVGSVGElement>> | null;
|
|
1
|
+
export declare const Icon: ({ icon, ...rest }: {
|
|
3
2
|
[x: string]: any;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {};
|
|
3
|
+
icon: any;
|
|
4
|
+
}) => JSX.Element;
|
package/dist/Label.d.ts
ADDED
package/dist/MetricsControl.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
type MetricsControlProps = {
|
|
2
|
-
unit: string;
|
|
3
2
|
value: string;
|
|
4
|
-
units?: string[] | 'native' | 'percent' | 'grid' | 'arbitrary' | 'fluid' | 'screen' | 'all';
|
|
5
3
|
inputClassName?: string;
|
|
4
|
+
classGroupControl?: any;
|
|
6
5
|
onValueChange: (value: string) => void;
|
|
7
|
-
|
|
6
|
+
tailwindUi?: any;
|
|
7
|
+
getThemeOptions?: any;
|
|
8
8
|
};
|
|
9
9
|
export declare const MetricsControl: React.FC<MetricsControlProps>;
|
|
10
10
|
export default MetricsControl;
|
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<{
|
package/dist/Popover.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
type PopoverProps = {
|
|
2
2
|
children: React.ReactNode;
|
|
3
3
|
className?: string;
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
value?: string;
|
|
6
4
|
position?: any;
|
|
7
|
-
visible
|
|
8
|
-
|
|
5
|
+
visible: boolean;
|
|
6
|
+
anchor?: HTMLElement | null;
|
|
7
|
+
onClose?: () => void;
|
|
9
8
|
onVisibleChange?: (value: boolean) => void;
|
|
9
|
+
offset?: number;
|
|
10
10
|
};
|
|
11
11
|
export declare const Popover: React.FC<PopoverProps>;
|
|
12
12
|
export default Popover;
|
|
@@ -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 {};
|
package/dist/RangeSlider.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
type SelectControlWrapperProps = {
|
|
2
|
-
className?: string;
|
|
3
2
|
value: string;
|
|
4
|
-
children?:
|
|
3
|
+
children?: any;
|
|
5
4
|
options: any[];
|
|
6
5
|
label?: string;
|
|
7
6
|
emptyLabel?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
8
|
onChange?: (value: string) => void;
|
|
9
|
+
className?: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const SelectControlWrapper: ({ onChange,
|
|
11
|
+
export declare const SelectControlWrapper: ({ onChange, value, options, label, disabled, emptyLabel, className, }: SelectControlWrapperProps) => JSX.Element;
|
|
11
12
|
export {};
|
package/dist/Spinner.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
type SpinnerProps = {
|
|
2
|
-
|
|
3
|
-
className?: string;
|
|
4
|
-
defaultValue: boolean;
|
|
2
|
+
[x: string]: any;
|
|
5
3
|
};
|
|
6
|
-
export declare const Spinner: ({
|
|
4
|
+
export declare const Spinner: ({ ...props }: SpinnerProps) => JSX.Element;
|
|
7
5
|
export {};
|
package/dist/Tabs.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ type TabsProps = {
|
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
onValueChange?: (value: string) => void;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
|
+
style?: React.CSSProperties;
|
|
7
8
|
};
|
|
8
9
|
export declare const TabsWrapper: ({ children, defaultValue, value, onValueChange, ...rest }: TabsProps) => JSX.Element;
|
|
9
10
|
type TabsListProps = {
|
|
@@ -22,10 +23,10 @@ type TabsContentProps = {
|
|
|
22
23
|
children: React.ReactNode;
|
|
23
24
|
className?: string;
|
|
24
25
|
};
|
|
25
|
-
export declare const TabsContent: ({ value, children, className, }: TabsContentProps) => JSX.Element
|
|
26
|
+
export declare const TabsContent: ({ value, children, className, }: TabsContentProps) => string | number | boolean | JSX.Element | Iterable<import('../wp.element').ReactNode>;
|
|
26
27
|
export declare const Tabs: {
|
|
27
28
|
Wrapper: ({ children, defaultValue, value, onValueChange, ...rest }: TabsProps) => JSX.Element;
|
|
28
29
|
List: ({ options, children, className, onValueChange, }: TabsListProps) => JSX.Element;
|
|
29
|
-
Content: ({ value, children, className, }: TabsContentProps) => JSX.Element
|
|
30
|
+
Content: ({ value, children, className, }: TabsContentProps) => string | number | boolean | JSX.Element | Iterable<import('../wp.element').ReactNode>;
|
|
30
31
|
};
|
|
31
32
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type TagInputProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
inputClassName?: string;
|
|
4
|
+
value: string[];
|
|
5
|
+
label?: string;
|
|
6
|
+
helper?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onChange?: (tokens: string[]) => void;
|
|
9
|
+
onInputChange?: (inputValue: string) => void;
|
|
10
|
+
suggestions?: string[];
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
export declare const TagInput: {
|
|
14
|
+
({ className, inputClassName, value, label, helper, placeholder, onChange, onInputChange, suggestions, ...props }: TagInputProps): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { EmptyState } from './EmptyState.js';
|
|
|
14
14
|
export { FloatingPanel } from './FloatingPanel.js';
|
|
15
15
|
export { FocalPointControl } from './FocalPointControl.js';
|
|
16
16
|
export { Icon } from './Icon.js';
|
|
17
|
+
export { Label } from './Label.js';
|
|
17
18
|
export { LinkPicker } from './LinkPicker.js';
|
|
18
19
|
export { MediaPicker } from './MediaPicker.js';
|
|
19
20
|
export { MetricsControl } from './MetricsControl.js';
|
|
@@ -37,11 +38,13 @@ export { SelectControlWrapper } from './SelectControlWrapper.js';
|
|
|
37
38
|
export { SingleBlockTypeAppender } from './SingleBlockTypeAppender.js';
|
|
38
39
|
export { SlideIn } from './SlideIn.js';
|
|
39
40
|
export { Spinner } from './Spinner.js';
|
|
41
|
+
export { SplitPane } from './SplitPane.js';
|
|
40
42
|
export { TabsWrapper } from './Tabs.js';
|
|
41
43
|
export { TabsList } from './Tabs.js';
|
|
42
44
|
export { TabsContent } from './Tabs.js';
|
|
43
45
|
export { Tabs } from './Tabs.js';
|
|
44
46
|
export { Tag } from './Tag.js';
|
|
47
|
+
export { TagInput } from './TagInput.js';
|
|
45
48
|
export { TextControl } from './TextControl.js';
|
|
46
49
|
export { TextControlLabel } from './TextControlLabel.js';
|
|
47
50
|
export { ToggleGroup } from './ToggleGroup.js';
|