@movmo_app/react-common 0.3.2 → 0.4.0

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.ts CHANGED
@@ -1,9 +1,29 @@
1
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
1
2
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
3
  import { default as default_2 } from 'react';
3
4
  import * as React_2 from 'react';
4
5
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
5
6
  import { SingleValue } from 'react-select';
6
7
  import { StylesConfig } from 'react-select';
8
+ import * as SwitchPrimitive from '@radix-ui/react-switch';
9
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
10
+
11
+ export declare const Avatar: React_2.ForwardRefExoticComponent<AvatarProps & React_2.RefAttributes<HTMLSpanElement>>;
12
+
13
+ export declare const AvatarFallback: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
14
+
15
+ export declare const AvatarImage: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React_2.RefAttributes<HTMLImageElement>, "ref"> & React_2.RefAttributes<HTMLImageElement>>;
16
+
17
+ declare interface AvatarProps extends React_2.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {
18
+ size?: 'sm' | 'md' | 'lg' | 'xl';
19
+ }
20
+
21
+ export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLSpanElement>>;
22
+
23
+ declare interface BadgeProps extends React_2.HTMLAttributes<HTMLSpanElement> {
24
+ variant?: 'success' | 'error' | 'warning' | 'info' | 'default';
25
+ size?: 'sm' | 'md';
26
+ }
7
27
 
8
28
  export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
9
29
 
@@ -28,10 +48,38 @@ export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAt
28
48
 
29
49
  export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
30
50
 
51
+ export declare const Chip: React_2.ForwardRefExoticComponent<ChipProps & React_2.RefAttributes<HTMLSpanElement>>;
52
+
53
+ declare interface ChipProps extends React_2.HTMLAttributes<HTMLSpanElement> {
54
+ variant?: 'default' | 'selected';
55
+ onRemove?: () => void;
56
+ }
57
+
58
+ export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
59
+
60
+ declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
61
+ variant?: 'ghost' | 'outline' | 'default';
62
+ size?: 'sm' | 'md' | 'lg';
63
+ }
64
+
31
65
  export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLInputElement> & React_2.InputHTMLAttributes<HTMLInputElement> & {
32
66
  required?: boolean;
33
67
  }, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
34
68
 
69
+ export declare const Pagination: React_2.FC<PaginationProps>;
70
+
71
+ declare interface PaginationProps {
72
+ currentPage: number;
73
+ totalPages: number;
74
+ onPageChange: (page: number) => void;
75
+ className?: string;
76
+ }
77
+
78
+ export declare const SearchInput: React_2.ForwardRefExoticComponent<SearchInputProps & React_2.RefAttributes<HTMLInputElement>>;
79
+
80
+ declare interface SearchInputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
81
+ }
82
+
35
83
  export declare const SelectDropdown: default_2.FC<SelectDropdownProps>;
36
84
 
37
85
  export declare interface SelectDropdownOption {
@@ -55,4 +103,26 @@ declare interface SeparatorProps extends React_2.ComponentPropsWithoutRef<typeof
55
103
  text?: string;
56
104
  }
57
105
 
106
+ export declare const Textarea: React_2.ForwardRefExoticComponent<TextareaProps & React_2.RefAttributes<HTMLTextAreaElement>>;
107
+
108
+ declare interface TextareaProps extends React_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
109
+ }
110
+
111
+ export declare const Toggle: React_2.ForwardRefExoticComponent<ToggleProps & React_2.RefAttributes<HTMLButtonElement>>;
112
+
113
+ export declare const ToggleGroup: React_2.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
114
+ type: "single";
115
+ }) | (Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
116
+ type: "multiple";
117
+ })) & React_2.RefAttributes<HTMLDivElement>>;
118
+
119
+ export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<ToggleGroupItemProps & React_2.RefAttributes<HTMLButtonElement>>;
120
+
121
+ declare interface ToggleGroupItemProps extends React_2.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> {
122
+ }
123
+
124
+ declare interface ToggleProps extends React_2.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
125
+ size?: 'sm' | 'md';
126
+ }
127
+
58
128
  export { }