@ryanodd/design-system 0.1.0-dev9 → 0.2.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.
@@ -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>>;
@@ -188,6 +205,10 @@ export declare const Inbox: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElemen
188
205
  size?: (typeof iconSizes)[number];
189
206
  } & RefAttributes<SVGSVGElement>>;
190
207
 
208
+ export declare const Input: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & Props_2 & RefAttributes<HTMLInputElement>>;
209
+
210
+ export declare type InputProps = ComponentPropsWithoutRef<"input"> & Props_2;
211
+
191
212
  export declare const Kebab: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
192
213
  size?: (typeof iconSizes)[number];
193
214
  } & RefAttributes<SVGSVGElement>>;
@@ -242,9 +263,20 @@ export declare const Plus: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement
242
263
  size?: (typeof iconSizes)[number];
243
264
  } & RefAttributes<SVGSVGElement>>;
244
265
 
266
+ export declare const Popover: ({ trigger, title, size, popoverContent, ...props }: PopoverProps) => JSX.Element;
267
+
268
+ export declare type PopoverProps = {
269
+ trigger: ReactNode;
270
+ title?: string;
271
+ size?: PopoverSize;
272
+ popoverContent: ReactNode;
273
+ } & React.HTMLAttributes<HTMLDivElement>;
274
+
275
+ export declare type PopoverSize = "sm" | "md" | "lg";
276
+
245
277
  declare type Props = {
246
278
  children?: ReactNode;
247
- size?: "small" | "medium" | "large";
279
+ size?: "sm" | "md" | "lg";
248
280
  variant?: "primary" | "secondary" | "destructive" | "tertiary";
249
281
  loading?: boolean;
250
282
  iconOnly?: boolean;
@@ -260,6 +292,37 @@ declare type Props = {
260
292
  trailingIcon?: keyof typeof IconMap;
261
293
  };
262
294
 
295
+ declare type Props_2 = {
296
+ label?: string;
297
+ error?: string;
298
+ helperText?: string;
299
+ startIcon?: keyof typeof IconMap;
300
+ endIcon?: keyof typeof IconMap;
301
+ };
302
+
303
+ declare type Props_3 = {
304
+ label?: string;
305
+ error?: string;
306
+ helperText?: string;
307
+ placeholder?: string;
308
+ children?: ReactNode;
309
+ };
310
+
311
+ declare type Props_4 = {
312
+ label?: string;
313
+ error?: string;
314
+ helperText?: string;
315
+ };
316
+
317
+ export declare const SelectInput: {
318
+ ({ label, error, helperText, placeholder, children, ...props }: SelectInputProps): JSX.Element;
319
+ displayName: string;
320
+ };
321
+
322
+ export declare type SelectInputProps = ComponentPropsWithoutRef<typeof Select.Root> & Props_3;
323
+
324
+ export declare const SelectItem: ForwardRefExoticComponent<Omit<Select.SelectItemProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
325
+
263
326
  export declare const Signpost: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & {
264
327
  size?: (typeof iconSizes)[number];
265
328
  } & RefAttributes<SVGSVGElement>>;
@@ -284,6 +347,10 @@ export declare const SunMoon: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElem
284
347
  size?: (typeof iconSizes)[number];
285
348
  } & RefAttributes<SVGSVGElement>>;
286
349
 
350
+ export declare const TextArea: ForwardRefExoticComponent<Omit<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & Props_4 & RefAttributes<HTMLTextAreaElement>>;
351
+
352
+ export declare type TextAreaProps = ComponentPropsWithoutRef<"textarea"> & Props_4;
353
+
287
354
  export declare const Toast: ForwardRefExoticComponent<RadixToast.ToastProps & {
288
355
  toastTitle: ReactNode;
289
356
  toastDescription?: ReactNode;