@blockbite/ui 2.0.25 → 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.
@@ -3,6 +3,7 @@ interface OptionPanelDropdownProps {
3
3
  options: {
4
4
  label: string;
5
5
  value: string;
6
+ style?: string;
6
7
  }[];
7
8
  onPressedChange: (value: string) => void;
8
9
  swatch?: boolean;
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 {};
@@ -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 {};
@@ -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
- type IconProps = {
2
- icon: React.FC<React.SVGProps<SVGSVGElement>> | null;
1
+ export declare const Icon: ({ icon, ...rest }: {
3
2
  [x: string]: any;
4
- };
5
- export declare const Icon: ({ icon: IconComponent, ...rest }: IconProps) => JSX.Element;
6
- export {};
3
+ icon: any;
4
+ }) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ type LabelProps = {
2
+ children?: React.ReactNode;
3
+ className?: string;
4
+ title?: string;
5
+ };
6
+ export declare const Label: ({ children, title, className }: LabelProps) => JSX.Element;
7
+ export {};
@@ -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
- onUnitChange: (unit: string) => void;
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?: boolean;
8
- onClick?: () => void;
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;
@@ -5,6 +5,8 @@ export type RangeControlType = {
5
5
  max: number;
6
6
  withInputField?: boolean;
7
7
  onValueChange: (value: string) => void;
8
+ onReset?: () => void;
9
+ allowReset?: boolean;
8
10
  gridMode?: boolean;
9
11
  showTooltip?: boolean;
10
12
  [key: string]: any;
@@ -1,11 +1,12 @@
1
1
  type SelectControlWrapperProps = {
2
- className?: string;
3
2
  value: string;
4
- children?: React.ReactNode;
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, className, value, options, label, emptyLabel, }: SelectControlWrapperProps) => JSX.Element;
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
- label?: string;
3
- className?: string;
4
- defaultValue: boolean;
2
+ [x: string]: any;
5
3
  };
6
- export declare const Spinner: ({ className, defaultValue }: SpinnerProps) => JSX.Element;
4
+ export declare const Spinner: ({ ...props }: SpinnerProps) => JSX.Element;
7
5
  export {};
@@ -0,0 +1,8 @@
1
+ export declare const SplitPane: ({ pane1, pane2, handle, className, minSize1, minSize2, }: {
2
+ pane1: any;
3
+ pane2: any;
4
+ handle: any;
5
+ className?: string;
6
+ minSize1?: number;
7
+ minSize2?: number;
8
+ }) => JSX.Element;
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 {};
@@ -1 +1,17 @@
1
- export declare const TagInput: any;
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';