@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.
@@ -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 {};
@@ -1,17 +1,23 @@
1
- import { DataItem } from '@blockbite/types';
2
- type DataListProps = {
3
- data: DataItem[];
4
- active: any;
5
- setActive: (item: DataItem | undefined) => void;
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: string) => void;
8
- onUpdate: (id: string, updates: Partial<DataItem>) => void;
9
- onSwitch: (prevId: string, updates: Partial<DataItem>) => void;
10
- renderItemActions?: (item: DataItem) => React.ReactNode;
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: ({ data, active, setActive, onCreate, onDelete, onUpdate, onSwitch, renderItemActions, addons, className, footerSlot, footerSlotClassName, }: DataListProps) => JSX.Element;
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
- 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/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
- defaultOpen: boolean;
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?: 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;
@@ -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, className, }: Props) => JSX.Element;
11
+ export declare const ProjectsNavigation: ({ items, activeId, onSelect }: Props) => JSX.Element;
13
12
  export {};
@@ -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 {};
@@ -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';