@pixonui/react 0.5.0 → 0.5.1

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/index.d.mts CHANGED
@@ -43,9 +43,10 @@ interface GlowButtonProps extends React__default.ButtonHTMLAttributes<HTMLButton
43
43
  }
44
44
  declare const GlowButton: React__default.ForwardRefExoticComponent<GlowButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
45
45
 
46
- interface MetricCardProps extends React__default.HTMLAttributes<HTMLDivElement> {
46
+ interface MetricCardProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'> {
47
47
  accent?: 'teal' | 'amber' | 'violet' | 'blue' | 'rose' | 'emerald' | 'indigo';
48
48
  icon: React__default.ReactNode;
49
+ title?: React__default.ReactNode;
49
50
  value: React__default.ReactNode;
50
51
  subtext?: React__default.ReactNode;
51
52
  showWave?: boolean;
@@ -1196,7 +1197,7 @@ interface BarChartProps<T = any> {
1196
1197
  animationDelay?: number;
1197
1198
  onValueClick?: (data: ChartDataPoint<T>) => void;
1198
1199
  }
1199
- declare function BarChart<T = any>({ color, showValues, animationDelay, onValueClick }: BarChartProps<T>): react_jsx_runtime.JSX.Element;
1200
+ declare function BarChart<T = any>({ color, showValues, animationDelay, onValueClick }: BarChartProps<T>): react_jsx_runtime.JSX.Element | null;
1200
1201
 
1201
1202
  interface AreaChartProps<T = any> {
1202
1203
  color?: 'cyan' | 'purple' | 'emerald' | 'amber' | 'rose';
@@ -1204,7 +1205,7 @@ interface AreaChartProps<T = any> {
1204
1205
  animationDelay?: number;
1205
1206
  onValueClick?: (data: ChartDataPoint<T>) => void;
1206
1207
  }
1207
- declare function AreaChart<T = any>({ color, showValues, animationDelay, onValueClick }: AreaChartProps<T>): react_jsx_runtime.JSX.Element;
1208
+ declare function AreaChart<T = any>({ color, showValues, animationDelay, onValueClick }: AreaChartProps<T>): react_jsx_runtime.JSX.Element | null;
1208
1209
 
1209
1210
  interface LineChartProps<T = any> {
1210
1211
  color?: 'cyan' | 'purple' | 'emerald' | 'amber' | 'rose';
@@ -1215,7 +1216,7 @@ interface LineChartProps<T = any> {
1215
1216
  align?: 'center' | 'edge';
1216
1217
  onValueClick?: (data: ChartDataPoint<T>) => void;
1217
1218
  }
1218
- declare function LineChart<T = any>({ color, showValues, animationDelay, curve, strokeWidth, align, onValueClick }: LineChartProps<T>): react_jsx_runtime.JSX.Element;
1219
+ declare function LineChart<T = any>({ color, showValues, animationDelay, curve, strokeWidth, align, onValueClick }: LineChartProps<T>): react_jsx_runtime.JSX.Element | null;
1219
1220
 
1220
1221
  interface PieChartProps<T = any> {
1221
1222
  innerRadius?: number;
@@ -1394,7 +1395,7 @@ interface ModalProps {
1394
1395
  children: React__default.ReactNode;
1395
1396
  className?: string;
1396
1397
  }
1397
- declare function Modal({ isOpen, onClose, children, className }: ModalProps): React__default.ReactPortal;
1398
+ declare function Modal({ isOpen, onClose, children, className }: ModalProps): React__default.ReactPortal | null;
1398
1399
  declare function ModalHeader({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1399
1400
  declare function ModalFooter({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1400
1401
  declare function ModalTitle({ className, children }: React__default.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
@@ -1422,7 +1423,7 @@ interface DialogProps {
1422
1423
  children: React__default.ReactNode;
1423
1424
  className?: string;
1424
1425
  }
1425
- declare function Dialog({ isOpen, onClose, children, className }: DialogProps): React__default.ReactPortal;
1426
+ declare function Dialog({ isOpen, onClose, children, className }: DialogProps): React__default.ReactPortal | null;
1426
1427
  declare function DialogHeader({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1427
1428
  declare function DialogFooter({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1428
1429
  declare function DialogTitle({ className, children }: React__default.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
@@ -1875,8 +1876,9 @@ interface MessageBubbleProps {
1875
1876
  }
1876
1877
  declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1877
1878
 
1878
- interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
1879
+ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1879
1880
  onSend?: (content: string) => void;
1881
+ onChange?: (content: string) => void;
1880
1882
  onAttach?: () => void;
1881
1883
  onMic?: () => void;
1882
1884
  onEmoji?: () => void;
@@ -1890,7 +1892,7 @@ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
1890
1892
  maxLength?: number;
1891
1893
  disabled?: boolean;
1892
1894
  }
1893
- declare function ChatInput({ onSend, onAttach, onMic, onEmoji, onGif, onLocation, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1895
+ declare function ChatInput({ onSend, onChange, onAttach, onMic, onEmoji, onGif, onLocation, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1894
1896
 
1895
1897
  interface ChatProfileProps extends React__default.HTMLAttributes<HTMLDivElement> {
1896
1898
  user: User;
package/dist/index.d.ts CHANGED
@@ -43,9 +43,10 @@ interface GlowButtonProps extends React__default.ButtonHTMLAttributes<HTMLButton
43
43
  }
44
44
  declare const GlowButton: React__default.ForwardRefExoticComponent<GlowButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
45
45
 
46
- interface MetricCardProps extends React__default.HTMLAttributes<HTMLDivElement> {
46
+ interface MetricCardProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title'> {
47
47
  accent?: 'teal' | 'amber' | 'violet' | 'blue' | 'rose' | 'emerald' | 'indigo';
48
48
  icon: React__default.ReactNode;
49
+ title?: React__default.ReactNode;
49
50
  value: React__default.ReactNode;
50
51
  subtext?: React__default.ReactNode;
51
52
  showWave?: boolean;
@@ -1196,7 +1197,7 @@ interface BarChartProps<T = any> {
1196
1197
  animationDelay?: number;
1197
1198
  onValueClick?: (data: ChartDataPoint<T>) => void;
1198
1199
  }
1199
- declare function BarChart<T = any>({ color, showValues, animationDelay, onValueClick }: BarChartProps<T>): react_jsx_runtime.JSX.Element;
1200
+ declare function BarChart<T = any>({ color, showValues, animationDelay, onValueClick }: BarChartProps<T>): react_jsx_runtime.JSX.Element | null;
1200
1201
 
1201
1202
  interface AreaChartProps<T = any> {
1202
1203
  color?: 'cyan' | 'purple' | 'emerald' | 'amber' | 'rose';
@@ -1204,7 +1205,7 @@ interface AreaChartProps<T = any> {
1204
1205
  animationDelay?: number;
1205
1206
  onValueClick?: (data: ChartDataPoint<T>) => void;
1206
1207
  }
1207
- declare function AreaChart<T = any>({ color, showValues, animationDelay, onValueClick }: AreaChartProps<T>): react_jsx_runtime.JSX.Element;
1208
+ declare function AreaChart<T = any>({ color, showValues, animationDelay, onValueClick }: AreaChartProps<T>): react_jsx_runtime.JSX.Element | null;
1208
1209
 
1209
1210
  interface LineChartProps<T = any> {
1210
1211
  color?: 'cyan' | 'purple' | 'emerald' | 'amber' | 'rose';
@@ -1215,7 +1216,7 @@ interface LineChartProps<T = any> {
1215
1216
  align?: 'center' | 'edge';
1216
1217
  onValueClick?: (data: ChartDataPoint<T>) => void;
1217
1218
  }
1218
- declare function LineChart<T = any>({ color, showValues, animationDelay, curve, strokeWidth, align, onValueClick }: LineChartProps<T>): react_jsx_runtime.JSX.Element;
1219
+ declare function LineChart<T = any>({ color, showValues, animationDelay, curve, strokeWidth, align, onValueClick }: LineChartProps<T>): react_jsx_runtime.JSX.Element | null;
1219
1220
 
1220
1221
  interface PieChartProps<T = any> {
1221
1222
  innerRadius?: number;
@@ -1394,7 +1395,7 @@ interface ModalProps {
1394
1395
  children: React__default.ReactNode;
1395
1396
  className?: string;
1396
1397
  }
1397
- declare function Modal({ isOpen, onClose, children, className }: ModalProps): React__default.ReactPortal;
1398
+ declare function Modal({ isOpen, onClose, children, className }: ModalProps): React__default.ReactPortal | null;
1398
1399
  declare function ModalHeader({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1399
1400
  declare function ModalFooter({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1400
1401
  declare function ModalTitle({ className, children }: React__default.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
@@ -1422,7 +1423,7 @@ interface DialogProps {
1422
1423
  children: React__default.ReactNode;
1423
1424
  className?: string;
1424
1425
  }
1425
- declare function Dialog({ isOpen, onClose, children, className }: DialogProps): React__default.ReactPortal;
1426
+ declare function Dialog({ isOpen, onClose, children, className }: DialogProps): React__default.ReactPortal | null;
1426
1427
  declare function DialogHeader({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1427
1428
  declare function DialogFooter({ className, children }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1428
1429
  declare function DialogTitle({ className, children }: React__default.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
@@ -1875,8 +1876,9 @@ interface MessageBubbleProps {
1875
1876
  }
1876
1877
  declare function MessageBubble({ message, isOwn, showAvatar, showStatus, className, onReply, onReact, onDelete, onEdit, onForward, onCopy, onPin, onSelect, isSelected }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
1877
1878
 
1878
- interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
1879
+ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect' | 'onChange'> {
1879
1880
  onSend?: (content: string) => void;
1881
+ onChange?: (content: string) => void;
1880
1882
  onAttach?: () => void;
1881
1883
  onMic?: () => void;
1882
1884
  onEmoji?: () => void;
@@ -1890,7 +1892,7 @@ interface ChatInputProps extends Omit<React__default.HTMLAttributes<HTMLDivEleme
1890
1892
  maxLength?: number;
1891
1893
  disabled?: boolean;
1892
1894
  }
1893
- declare function ChatInput({ onSend, onAttach, onMic, onEmoji, onGif, onLocation, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1895
+ declare function ChatInput({ onSend, onChange, onAttach, onMic, onEmoji, onGif, onLocation, onCancelReply, placeholder, users, replyingTo, isRecording, maxLength, disabled, className, ...props }: ChatInputProps): react_jsx_runtime.JSX.Element;
1894
1896
 
1895
1897
  interface ChatProfileProps extends React__default.HTMLAttributes<HTMLDivElement> {
1896
1898
  user: User;