@ryanodd/design-system 0.1.0-dev9 → 0.2.0-dev1
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/cjs/index.js +14 -14
- package/dist/esm/index.d.ts +76 -2
- package/dist/esm/index.js +3638 -2466
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ComponentType } from 'react';
|
|
|
4
4
|
import { DetailedHTMLProps } from 'react';
|
|
5
5
|
import { ForwardRefExoticComponent } from 'react';
|
|
6
6
|
import { HTMLAttributes } from 'react';
|
|
7
|
+
import { InputHTMLAttributes } from 'react';
|
|
7
8
|
import { JSX } from 'react/jsx-runtime';
|
|
8
9
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
9
10
|
import * as RadixMenuButton from '@radix-ui/react-dropdown-menu';
|
|
@@ -11,7 +12,9 @@ import * as RadixToast from '@radix-ui/react-toast';
|
|
|
11
12
|
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
12
13
|
import { ReactNode } from 'react';
|
|
13
14
|
import { RefAttributes } from 'react';
|
|
15
|
+
import * as Select from '@radix-ui/react-select';
|
|
14
16
|
import { SVGProps } from 'react';
|
|
17
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
15
18
|
|
|
16
19
|
export declare const ArrowLeft: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
17
20
|
size?: (typeof iconSizes)[number];
|
|
@@ -21,6 +24,13 @@ export declare const ArrowRight: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGE
|
|
|
21
24
|
size?: (typeof iconSizes)[number];
|
|
22
25
|
} & RefAttributes<SVGSVGElement>>;
|
|
23
26
|
|
|
27
|
+
export declare const Badge: ({ variant, size, className, ...props }: BadgeProps) => JSX.Element;
|
|
28
|
+
|
|
29
|
+
export declare type BadgeProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
30
|
+
variant?: "neutral" | "success" | "warning" | "error" | "brand";
|
|
31
|
+
size?: "sm" | "md" | "lg";
|
|
32
|
+
};
|
|
33
|
+
|
|
24
34
|
export declare const Button: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & Props & RefAttributes<HTMLButtonElement>>;
|
|
25
35
|
|
|
26
36
|
export declare type ButtonProps = ComponentPropsWithoutRef<"button"> & Props;
|
|
@@ -87,6 +97,13 @@ export declare type DialogSize = typeof dialogSizes[number];
|
|
|
87
97
|
|
|
88
98
|
export declare const dialogSizes: string[];
|
|
89
99
|
|
|
100
|
+
export declare const EmptyState: ({ title, description, ...props }: EmptyStateProps) => JSX.Element;
|
|
101
|
+
|
|
102
|
+
export declare type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
103
|
+
title: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
90
107
|
export declare const ExternalLink: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
91
108
|
size?: (typeof iconSizes)[number];
|
|
92
109
|
} & RefAttributes<SVGSVGElement>>;
|
|
@@ -152,6 +169,9 @@ export declare const IconMap: {
|
|
|
152
169
|
LogIn: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
153
170
|
size?: (typeof iconSizes)[number];
|
|
154
171
|
} & RefAttributes<SVGSVGElement>>;
|
|
172
|
+
LogoGoogle: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
173
|
+
size?: (typeof iconSizes)[number];
|
|
174
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
155
175
|
LogOut: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
156
176
|
size?: (typeof iconSizes)[number];
|
|
157
177
|
} & RefAttributes<SVGSVGElement>>;
|
|
@@ -179,7 +199,7 @@ export declare const IconMap: {
|
|
|
179
199
|
};
|
|
180
200
|
|
|
181
201
|
export declare type IconProps = ComponentPropsWithoutRef<"svg"> & {
|
|
182
|
-
size?: typeof iconSizes[number];
|
|
202
|
+
size?: (typeof iconSizes)[number];
|
|
183
203
|
};
|
|
184
204
|
|
|
185
205
|
export declare const iconSizes: readonly ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"];
|
|
@@ -188,6 +208,10 @@ export declare const Inbox: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElemen
|
|
|
188
208
|
size?: (typeof iconSizes)[number];
|
|
189
209
|
} & RefAttributes<SVGSVGElement>>;
|
|
190
210
|
|
|
211
|
+
export declare const Input: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & Props_2 & RefAttributes<HTMLInputElement>>;
|
|
212
|
+
|
|
213
|
+
export declare type InputProps = ComponentPropsWithoutRef<"input"> & Props_2;
|
|
214
|
+
|
|
191
215
|
export declare const Kebab: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
192
216
|
size?: (typeof iconSizes)[number];
|
|
193
217
|
} & RefAttributes<SVGSVGElement>>;
|
|
@@ -204,6 +228,10 @@ export declare const LogIn: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElemen
|
|
|
204
228
|
size?: (typeof iconSizes)[number];
|
|
205
229
|
} & RefAttributes<SVGSVGElement>>;
|
|
206
230
|
|
|
231
|
+
export declare const LogoGoogle: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
232
|
+
size?: (typeof iconSizes)[number];
|
|
233
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
234
|
+
|
|
207
235
|
export declare const LogOut: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
208
236
|
size?: (typeof iconSizes)[number];
|
|
209
237
|
} & RefAttributes<SVGSVGElement>>;
|
|
@@ -242,9 +270,20 @@ export declare const Plus: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement
|
|
|
242
270
|
size?: (typeof iconSizes)[number];
|
|
243
271
|
} & RefAttributes<SVGSVGElement>>;
|
|
244
272
|
|
|
273
|
+
export declare const Popover: ({ trigger, title, size, popoverContent, ...props }: PopoverProps) => JSX.Element;
|
|
274
|
+
|
|
275
|
+
export declare type PopoverProps = {
|
|
276
|
+
trigger: ReactNode;
|
|
277
|
+
title?: string;
|
|
278
|
+
size?: PopoverSize;
|
|
279
|
+
popoverContent: ReactNode;
|
|
280
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
281
|
+
|
|
282
|
+
export declare type PopoverSize = "sm" | "md" | "lg";
|
|
283
|
+
|
|
245
284
|
declare type Props = {
|
|
246
285
|
children?: ReactNode;
|
|
247
|
-
size?: "
|
|
286
|
+
size?: "sm" | "md" | "lg";
|
|
248
287
|
variant?: "primary" | "secondary" | "destructive" | "tertiary";
|
|
249
288
|
loading?: boolean;
|
|
250
289
|
iconOnly?: boolean;
|
|
@@ -260,6 +299,37 @@ declare type Props = {
|
|
|
260
299
|
trailingIcon?: keyof typeof IconMap;
|
|
261
300
|
};
|
|
262
301
|
|
|
302
|
+
declare type Props_2 = {
|
|
303
|
+
label?: string;
|
|
304
|
+
error?: string;
|
|
305
|
+
helperText?: string;
|
|
306
|
+
startIcon?: keyof typeof IconMap;
|
|
307
|
+
endIcon?: keyof typeof IconMap;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
declare type Props_3 = {
|
|
311
|
+
label?: string;
|
|
312
|
+
error?: string;
|
|
313
|
+
helperText?: string;
|
|
314
|
+
placeholder?: string;
|
|
315
|
+
children?: ReactNode;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
declare type Props_4 = {
|
|
319
|
+
label?: string;
|
|
320
|
+
error?: string;
|
|
321
|
+
helperText?: string;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
export declare const SelectInput: {
|
|
325
|
+
({ label, error, helperText, placeholder, children, ...props }: SelectInputProps): JSX.Element;
|
|
326
|
+
displayName: string;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
export declare type SelectInputProps = ComponentPropsWithoutRef<typeof Select.Root> & Props_3;
|
|
330
|
+
|
|
331
|
+
export declare const SelectItem: ForwardRefExoticComponent<Omit<Select.SelectItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
332
|
+
|
|
263
333
|
export declare const Signpost: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
264
334
|
size?: (typeof iconSizes)[number];
|
|
265
335
|
} & RefAttributes<SVGSVGElement>>;
|
|
@@ -284,6 +354,10 @@ export declare const SunMoon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElem
|
|
|
284
354
|
size?: (typeof iconSizes)[number];
|
|
285
355
|
} & RefAttributes<SVGSVGElement>>;
|
|
286
356
|
|
|
357
|
+
export declare const TextArea: ForwardRefExoticComponent<Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & Props_4 & RefAttributes<HTMLTextAreaElement>>;
|
|
358
|
+
|
|
359
|
+
export declare type TextAreaProps = ComponentPropsWithoutRef<"textarea"> & Props_4;
|
|
360
|
+
|
|
287
361
|
export declare const Toast: ForwardRefExoticComponent<RadixToast.ToastProps & {
|
|
288
362
|
toastTitle: ReactNode;
|
|
289
363
|
toastDescription?: ReactNode;
|