@rabelo-digital/ds-rd 1.1.1 → 1.1.2

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 DELETED
@@ -1,241 +0,0 @@
1
- import React from 'react';
2
- import * as RadixTooltip from '@radix-ui/react-tooltip';
3
- import { ElevationKey, RadiiKey } from './tokens/index.mjs';
4
- export { BreakpointKey, Motion, PrimitiveColors, SemanticColors, SpacingKey, SpacingValue, Typography, ZIndexKey, breakpoints, elevation, mediaQuery, motion, primitiveColors, radii, semanticColors, spacing, typography, zIndex } from './tokens/index.mjs';
5
-
6
- type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
7
- type ButtonSize = "sm" | "md" | "lg";
8
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
9
- variant?: ButtonVariant;
10
- size?: ButtonSize;
11
- loading?: boolean;
12
- children: React.ReactNode;
13
- }
14
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
15
-
16
- type InputSize = "sm" | "md" | "lg";
17
- interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
18
- label?: string;
19
- error?: string;
20
- helperText?: string;
21
- size?: InputSize;
22
- }
23
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
24
-
25
- interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
26
- label?: string;
27
- error?: string;
28
- helperText?: string;
29
- showCount?: boolean;
30
- }
31
- declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
32
-
33
- type BadgeVariant = "default" | "primary" | "success" | "warning" | "error" | "info";
34
- type BadgeSize = "sm" | "md";
35
- interface BadgeProps {
36
- variant?: BadgeVariant;
37
- size?: BadgeSize;
38
- children: React.ReactNode;
39
- className?: string;
40
- }
41
- declare const Badge: React.FC<BadgeProps>;
42
-
43
- type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
44
- type AvatarShape = "circle" | "square";
45
- interface AvatarProps {
46
- src?: string;
47
- alt?: string;
48
- name?: string;
49
- size?: AvatarSize;
50
- shape?: AvatarShape;
51
- className?: string;
52
- }
53
- declare const Avatar: React.FC<AvatarProps>;
54
-
55
- interface CheckboxProps {
56
- checked?: boolean | "indeterminate";
57
- defaultChecked?: boolean;
58
- onCheckedChange?: (checked: boolean | "indeterminate") => void;
59
- disabled?: boolean;
60
- label?: string;
61
- id?: string;
62
- className?: string;
63
- }
64
- declare const Checkbox: React.FC<CheckboxProps>;
65
-
66
- interface RadioOption {
67
- value: string;
68
- label: string;
69
- disabled?: boolean;
70
- }
71
- interface RadioGroupProps {
72
- options: RadioOption[];
73
- value?: string;
74
- defaultValue?: string;
75
- onValueChange?: (value: string) => void;
76
- disabled?: boolean;
77
- name?: string;
78
- orientation?: "horizontal" | "vertical";
79
- className?: string;
80
- }
81
- declare const RadioGroup: React.FC<RadioGroupProps>;
82
-
83
- interface SelectOption {
84
- value: string;
85
- label: string;
86
- disabled?: boolean;
87
- }
88
- type SelectSize = "sm" | "md" | "lg";
89
- interface SelectProps {
90
- options: SelectOption[];
91
- value?: string;
92
- defaultValue?: string;
93
- onValueChange?: (value: string) => void;
94
- label?: string;
95
- placeholder?: string;
96
- error?: string;
97
- helperText?: string;
98
- disabled?: boolean;
99
- size?: SelectSize;
100
- id?: string;
101
- className?: string;
102
- }
103
- declare const Select: React.FC<SelectProps>;
104
-
105
- type TooltipSide = "top" | "right" | "bottom" | "left";
106
- interface TooltipProps {
107
- content: React.ReactNode;
108
- children: React.ReactElement;
109
- side?: TooltipSide;
110
- delayDuration?: number;
111
- }
112
- declare const TooltipProvider: React.FC<RadixTooltip.TooltipProviderProps>;
113
- declare const Tooltip: React.FC<TooltipProps>;
114
-
115
- type SocialPlatform = "linkedin" | "instagram" | "github" | "youtube" | "whatsapp" | "facebook" | "twitter";
116
- type SocialIconSize = "sm" | "md" | "lg";
117
- interface SocialLink {
118
- platform: SocialPlatform;
119
- url: string;
120
- label?: string;
121
- }
122
- interface SocialIconsProps {
123
- links: SocialLink[];
124
- size?: SocialIconSize;
125
- className?: string;
126
- }
127
- declare const SocialIcons: React.FC<SocialIconsProps>;
128
-
129
- interface CardProps {
130
- elevation?: ElevationKey;
131
- radius?: RadiiKey;
132
- className?: string;
133
- children: React.ReactNode;
134
- }
135
- interface CardSectionProps {
136
- className?: string;
137
- children: React.ReactNode;
138
- }
139
- declare const CardHeader: React.FC<CardSectionProps>;
140
- declare const CardBody: React.FC<CardSectionProps>;
141
- declare const CardFooter: React.FC<CardSectionProps>;
142
- declare const Card: React.FC<CardProps> & {
143
- Header: typeof CardHeader;
144
- Body: typeof CardBody;
145
- Footer: typeof CardFooter;
146
- };
147
-
148
- type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
149
- interface ModalProps {
150
- open?: boolean;
151
- onOpenChange?: (open: boolean) => void;
152
- title?: string;
153
- description?: string;
154
- size?: ModalSize;
155
- children: React.ReactNode;
156
- trigger?: React.ReactElement;
157
- }
158
- declare const Modal: React.FC<ModalProps>;
159
-
160
- type DrawerSide = "left" | "right" | "top" | "bottom";
161
- interface DrawerProps {
162
- open?: boolean;
163
- onOpenChange?: (open: boolean) => void;
164
- title?: string;
165
- side?: DrawerSide;
166
- children: React.ReactNode;
167
- trigger?: React.ReactElement;
168
- }
169
- declare const Drawer: React.FC<DrawerProps>;
170
-
171
- interface TabItem {
172
- value: string;
173
- label: string;
174
- content: React.ReactNode;
175
- disabled?: boolean;
176
- }
177
- interface TabsProps {
178
- tabs: TabItem[];
179
- defaultValue?: string;
180
- value?: string;
181
- onValueChange?: (value: string) => void;
182
- className?: string;
183
- }
184
- declare const Tabs: React.FC<TabsProps>;
185
-
186
- interface AccordionItem {
187
- value: string;
188
- trigger: React.ReactNode;
189
- content: React.ReactNode;
190
- disabled?: boolean;
191
- }
192
- interface AccordionProps {
193
- items: AccordionItem[];
194
- type?: "single" | "multiple";
195
- defaultValue?: string | string[];
196
- value?: string | string[];
197
- onValueChange?: (value: string | string[]) => void;
198
- collapsible?: boolean;
199
- className?: string;
200
- }
201
- declare const Accordion: React.FC<AccordionProps>;
202
-
203
- type ToastVariant = "default" | "success" | "warning" | "error" | "info";
204
- interface ToastMessage {
205
- id: string;
206
- title: string;
207
- description?: string;
208
- variant?: ToastVariant;
209
- duration?: number;
210
- }
211
- interface ToastContextValue {
212
- show: (message: Omit<ToastMessage, "id">) => void;
213
- }
214
- declare const useToast: () => ToastContextValue;
215
- declare const ToastProvider: React.FC<{
216
- children: React.ReactNode;
217
- }>;
218
-
219
- type TableHeadProps = React.HTMLAttributes<HTMLTableSectionElement>;
220
- type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
221
- type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;
222
- interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
223
- as?: "td" | "th";
224
- scope?: "col" | "row" | "colgroup" | "rowgroup";
225
- }
226
- interface TableRootProps extends React.TableHTMLAttributes<HTMLTableElement> {
227
- caption?: string;
228
- stickyHeader?: boolean;
229
- }
230
- declare const TableHead: React.FC<TableHeadProps>;
231
- declare const TableBody: React.FC<TableBodyProps>;
232
- declare const TableRow: React.FC<TableRowProps>;
233
- declare const TableCell: React.FC<TableCellProps>;
234
- declare const Table: React.FC<TableRootProps> & {
235
- Head: typeof TableHead;
236
- Body: typeof TableBody;
237
- Row: typeof TableRow;
238
- Cell: typeof TableCell;
239
- };
240
-
241
- export { Accordion, type AccordionItem, type AccordionProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, Checkbox, type CheckboxProps, Drawer, type DrawerProps, type DrawerSide, ElevationKey, Input, type InputProps, type InputSize, Modal, type ModalProps, type ModalSize, RadiiKey, RadioGroup, type RadioGroupProps, type RadioOption, Select, type SelectOption, type SelectProps, type SelectSize, type SocialIconSize, SocialIcons, type SocialIconsProps, type SocialLink, type SocialPlatform, type TabItem, Table, Tabs, type TabsProps, Textarea, type TextareaProps, type ToastMessage, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, TooltipProvider, type TooltipSide, useToast };
package/dist/index.d.ts DELETED
@@ -1,241 +0,0 @@
1
- import React from 'react';
2
- import * as RadixTooltip from '@radix-ui/react-tooltip';
3
- import { ElevationKey, RadiiKey } from './tokens/index.js';
4
- export { BreakpointKey, Motion, PrimitiveColors, SemanticColors, SpacingKey, SpacingValue, Typography, ZIndexKey, breakpoints, elevation, mediaQuery, motion, primitiveColors, radii, semanticColors, spacing, typography, zIndex } from './tokens/index.js';
5
-
6
- type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
7
- type ButtonSize = "sm" | "md" | "lg";
8
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
9
- variant?: ButtonVariant;
10
- size?: ButtonSize;
11
- loading?: boolean;
12
- children: React.ReactNode;
13
- }
14
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
15
-
16
- type InputSize = "sm" | "md" | "lg";
17
- interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
18
- label?: string;
19
- error?: string;
20
- helperText?: string;
21
- size?: InputSize;
22
- }
23
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
24
-
25
- interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
26
- label?: string;
27
- error?: string;
28
- helperText?: string;
29
- showCount?: boolean;
30
- }
31
- declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
32
-
33
- type BadgeVariant = "default" | "primary" | "success" | "warning" | "error" | "info";
34
- type BadgeSize = "sm" | "md";
35
- interface BadgeProps {
36
- variant?: BadgeVariant;
37
- size?: BadgeSize;
38
- children: React.ReactNode;
39
- className?: string;
40
- }
41
- declare const Badge: React.FC<BadgeProps>;
42
-
43
- type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
44
- type AvatarShape = "circle" | "square";
45
- interface AvatarProps {
46
- src?: string;
47
- alt?: string;
48
- name?: string;
49
- size?: AvatarSize;
50
- shape?: AvatarShape;
51
- className?: string;
52
- }
53
- declare const Avatar: React.FC<AvatarProps>;
54
-
55
- interface CheckboxProps {
56
- checked?: boolean | "indeterminate";
57
- defaultChecked?: boolean;
58
- onCheckedChange?: (checked: boolean | "indeterminate") => void;
59
- disabled?: boolean;
60
- label?: string;
61
- id?: string;
62
- className?: string;
63
- }
64
- declare const Checkbox: React.FC<CheckboxProps>;
65
-
66
- interface RadioOption {
67
- value: string;
68
- label: string;
69
- disabled?: boolean;
70
- }
71
- interface RadioGroupProps {
72
- options: RadioOption[];
73
- value?: string;
74
- defaultValue?: string;
75
- onValueChange?: (value: string) => void;
76
- disabled?: boolean;
77
- name?: string;
78
- orientation?: "horizontal" | "vertical";
79
- className?: string;
80
- }
81
- declare const RadioGroup: React.FC<RadioGroupProps>;
82
-
83
- interface SelectOption {
84
- value: string;
85
- label: string;
86
- disabled?: boolean;
87
- }
88
- type SelectSize = "sm" | "md" | "lg";
89
- interface SelectProps {
90
- options: SelectOption[];
91
- value?: string;
92
- defaultValue?: string;
93
- onValueChange?: (value: string) => void;
94
- label?: string;
95
- placeholder?: string;
96
- error?: string;
97
- helperText?: string;
98
- disabled?: boolean;
99
- size?: SelectSize;
100
- id?: string;
101
- className?: string;
102
- }
103
- declare const Select: React.FC<SelectProps>;
104
-
105
- type TooltipSide = "top" | "right" | "bottom" | "left";
106
- interface TooltipProps {
107
- content: React.ReactNode;
108
- children: React.ReactElement;
109
- side?: TooltipSide;
110
- delayDuration?: number;
111
- }
112
- declare const TooltipProvider: React.FC<RadixTooltip.TooltipProviderProps>;
113
- declare const Tooltip: React.FC<TooltipProps>;
114
-
115
- type SocialPlatform = "linkedin" | "instagram" | "github" | "youtube" | "whatsapp" | "facebook" | "twitter";
116
- type SocialIconSize = "sm" | "md" | "lg";
117
- interface SocialLink {
118
- platform: SocialPlatform;
119
- url: string;
120
- label?: string;
121
- }
122
- interface SocialIconsProps {
123
- links: SocialLink[];
124
- size?: SocialIconSize;
125
- className?: string;
126
- }
127
- declare const SocialIcons: React.FC<SocialIconsProps>;
128
-
129
- interface CardProps {
130
- elevation?: ElevationKey;
131
- radius?: RadiiKey;
132
- className?: string;
133
- children: React.ReactNode;
134
- }
135
- interface CardSectionProps {
136
- className?: string;
137
- children: React.ReactNode;
138
- }
139
- declare const CardHeader: React.FC<CardSectionProps>;
140
- declare const CardBody: React.FC<CardSectionProps>;
141
- declare const CardFooter: React.FC<CardSectionProps>;
142
- declare const Card: React.FC<CardProps> & {
143
- Header: typeof CardHeader;
144
- Body: typeof CardBody;
145
- Footer: typeof CardFooter;
146
- };
147
-
148
- type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
149
- interface ModalProps {
150
- open?: boolean;
151
- onOpenChange?: (open: boolean) => void;
152
- title?: string;
153
- description?: string;
154
- size?: ModalSize;
155
- children: React.ReactNode;
156
- trigger?: React.ReactElement;
157
- }
158
- declare const Modal: React.FC<ModalProps>;
159
-
160
- type DrawerSide = "left" | "right" | "top" | "bottom";
161
- interface DrawerProps {
162
- open?: boolean;
163
- onOpenChange?: (open: boolean) => void;
164
- title?: string;
165
- side?: DrawerSide;
166
- children: React.ReactNode;
167
- trigger?: React.ReactElement;
168
- }
169
- declare const Drawer: React.FC<DrawerProps>;
170
-
171
- interface TabItem {
172
- value: string;
173
- label: string;
174
- content: React.ReactNode;
175
- disabled?: boolean;
176
- }
177
- interface TabsProps {
178
- tabs: TabItem[];
179
- defaultValue?: string;
180
- value?: string;
181
- onValueChange?: (value: string) => void;
182
- className?: string;
183
- }
184
- declare const Tabs: React.FC<TabsProps>;
185
-
186
- interface AccordionItem {
187
- value: string;
188
- trigger: React.ReactNode;
189
- content: React.ReactNode;
190
- disabled?: boolean;
191
- }
192
- interface AccordionProps {
193
- items: AccordionItem[];
194
- type?: "single" | "multiple";
195
- defaultValue?: string | string[];
196
- value?: string | string[];
197
- onValueChange?: (value: string | string[]) => void;
198
- collapsible?: boolean;
199
- className?: string;
200
- }
201
- declare const Accordion: React.FC<AccordionProps>;
202
-
203
- type ToastVariant = "default" | "success" | "warning" | "error" | "info";
204
- interface ToastMessage {
205
- id: string;
206
- title: string;
207
- description?: string;
208
- variant?: ToastVariant;
209
- duration?: number;
210
- }
211
- interface ToastContextValue {
212
- show: (message: Omit<ToastMessage, "id">) => void;
213
- }
214
- declare const useToast: () => ToastContextValue;
215
- declare const ToastProvider: React.FC<{
216
- children: React.ReactNode;
217
- }>;
218
-
219
- type TableHeadProps = React.HTMLAttributes<HTMLTableSectionElement>;
220
- type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
221
- type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;
222
- interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
223
- as?: "td" | "th";
224
- scope?: "col" | "row" | "colgroup" | "rowgroup";
225
- }
226
- interface TableRootProps extends React.TableHTMLAttributes<HTMLTableElement> {
227
- caption?: string;
228
- stickyHeader?: boolean;
229
- }
230
- declare const TableHead: React.FC<TableHeadProps>;
231
- declare const TableBody: React.FC<TableBodyProps>;
232
- declare const TableRow: React.FC<TableRowProps>;
233
- declare const TableCell: React.FC<TableCellProps>;
234
- declare const Table: React.FC<TableRootProps> & {
235
- Head: typeof TableHead;
236
- Body: typeof TableBody;
237
- Row: typeof TableRow;
238
- Cell: typeof TableCell;
239
- };
240
-
241
- export { Accordion, type AccordionItem, type AccordionProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, Checkbox, type CheckboxProps, Drawer, type DrawerProps, type DrawerSide, ElevationKey, Input, type InputProps, type InputSize, Modal, type ModalProps, type ModalSize, RadiiKey, RadioGroup, type RadioGroupProps, type RadioOption, Select, type SelectOption, type SelectProps, type SelectSize, type SocialIconSize, SocialIcons, type SocialIconsProps, type SocialLink, type SocialPlatform, type TabItem, Table, Tabs, type TabsProps, Textarea, type TextareaProps, type ToastMessage, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, TooltipProvider, type TooltipSide, useToast };