@blockbite/ui 2.0.25 → 2.0.27
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 +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/Popover.d.ts +4 -4
- 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 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2652 -15810
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/ui.css +1 -1
- package/package.json +5 -3
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
|
@@ -14,9 +14,10 @@ type DataListProps<T extends {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
footerSlot?: React.ReactNode;
|
|
16
16
|
footerSlotClassName?: string;
|
|
17
|
+
badge?: string;
|
|
17
18
|
};
|
|
18
19
|
export declare const DataItemList: <T extends {
|
|
19
20
|
id: string | number;
|
|
20
21
|
title?: string;
|
|
21
|
-
}>({ data, active, setActive, onCreate, onDelete, onUpdate, onSwitch, renderItemActions, addons, className, footerSlot, footerSlotClassName, }: DataListProps<T>) => JSX.Element;
|
|
22
|
+
}>({ data, active, setActive, onCreate, onDelete, onUpdate, onSwitch, renderItemActions, addons, className, footerSlot, footerSlotClassName, badge, }: DataListProps<T>) => JSX.Element;
|
|
22
23
|
export default DataItemList;
|
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/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;
|
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 {};
|
package/dist/TagInput.d.ts
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
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,6 +38,7 @@ 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';
|