@parrot-co/parrot-ui 0.0.87 → 0.0.88
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/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +399 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +4 -3
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { AriaTextFieldOptions, AriaButtonProps, AriaNumberFieldProps, AriaCheckboxGroupProps, AriaCheckboxProps, AriaRadioGroupProps, AriaRadioProps, AriaListBoxOptions, AriaCalendarProps, AriaDatePickerProps, AriaProgressBarProps, AriaTabListProps, AriaSwitchProps, AriaModalOverlayProps } from "react-aria";
|
|
3
|
+
import { ListState, OverlayTriggerProps, OverlayTriggerState } from "react-stately";
|
|
4
|
+
import { DateValue } from "@react-types/calendar";
|
|
5
|
+
import { DateValue as _DateValue1 } from "@internationalized/date";
|
|
6
|
+
declare const supportedColors: readonly ["tomato", "red", "crimson", "pink", "plum", "purple", "violet", "indigo", "blue", "cyan", "teal", "green", "grass", "orange", "brown", "sky", "mint", "lime", "yellow", "amber", "gold", "bronze", "gray", "mauve", "slate", "sage", "olive", "sand"];
|
|
7
|
+
type Color = (typeof supportedColors)[number];
|
|
8
|
+
type ColorVariant = "solid" | "outline" | "light" | "lightOutline" | "solidMono" | "ghost" | "pastel";
|
|
9
|
+
type BorderRadius = "none" | "sm" | "md" | "lg" | "full";
|
|
10
|
+
type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
11
|
+
type ButtonAppearance = "primary" | "secondary" | "minimal";
|
|
12
|
+
type ButtonAppearanceSchemaType = Partial<Record<ButtonAppearance, {
|
|
13
|
+
variant: ColorVariant;
|
|
14
|
+
color: Color;
|
|
15
|
+
}>>;
|
|
16
|
+
type PositionType = "absolute" | "relative" | "fixed" | "sticky";
|
|
17
|
+
type JustifyContentType = "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
|
|
18
|
+
type AlignItemsType = "start" | "center" | "end" | "stretch" | "baseline";
|
|
19
|
+
type FlexDirectionType = "row" | "column" | "row-reverse" | "column-reverse";
|
|
20
|
+
type SizeOption = "none" | "4xs" | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
21
|
+
interface BoxProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
22
|
+
stretchX?: boolean;
|
|
23
|
+
stretchY?: boolean;
|
|
24
|
+
stretchXY?: boolean;
|
|
25
|
+
position?: PositionType;
|
|
26
|
+
as?: React.ElementType;
|
|
27
|
+
}
|
|
28
|
+
export const Box: React.ForwardRefExoticComponent<BoxProps & {
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
type ActionStatus = "idle" | "loading" | "success" | "error";
|
|
32
|
+
type ID = string | number;
|
|
33
|
+
type Columns = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
34
|
+
interface GridProps extends React.ComponentProps<typeof Box> {
|
|
35
|
+
columns?: Columns;
|
|
36
|
+
gap?: SizeOption;
|
|
37
|
+
gapX?: SizeOption;
|
|
38
|
+
gapY?: SizeOption;
|
|
39
|
+
align?: AlignItemsType;
|
|
40
|
+
justify?: JustifyContentType;
|
|
41
|
+
}
|
|
42
|
+
export const Grid: React.ForwardRefExoticComponent<Omit<GridProps & {
|
|
43
|
+
as?: React.ElementType<any> | undefined;
|
|
44
|
+
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
45
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
46
|
+
}, "color" | "as">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
interface GridItemProps extends React.ComponentProps<typeof Box> {
|
|
48
|
+
colSpan?: Columns;
|
|
49
|
+
}
|
|
50
|
+
export const GridItem: React.ForwardRefExoticComponent<Omit<GridItemProps & {
|
|
51
|
+
as?: React.ElementType<any> | undefined;
|
|
52
|
+
} & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
53
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
54
|
+
}, "color" | "as">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
interface FlexProps extends React.ComponentProps<typeof Box> {
|
|
56
|
+
justify?: JustifyContentType;
|
|
57
|
+
align?: AlignItemsType;
|
|
58
|
+
direction?: FlexDirectionType;
|
|
59
|
+
gap?: SizeOption;
|
|
60
|
+
columnGap?: SizeOption;
|
|
61
|
+
rowGap?: SizeOption;
|
|
62
|
+
stack?: boolean;
|
|
63
|
+
inline?: boolean;
|
|
64
|
+
wrap?: "wrap" | "nowrap" | "wrap-reverse";
|
|
65
|
+
}
|
|
66
|
+
export const Flex: React.ForwardRefExoticComponent<Omit<FlexProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
type TextWeight = "light" | "regular" | "medium" | "semi-bold" | "bold" | "heavy" | "inherit";
|
|
68
|
+
type TextColorVariant = "light" | "lighter" | "dark" | "default";
|
|
69
|
+
interface TextProps {
|
|
70
|
+
size?: SizeOption;
|
|
71
|
+
weight?: TextWeight;
|
|
72
|
+
highlight?: boolean;
|
|
73
|
+
color?: Color | "inherit" | "white" | "black";
|
|
74
|
+
variant?: TextColorVariant;
|
|
75
|
+
align?: "left" | "center" | "right";
|
|
76
|
+
numeric?: boolean;
|
|
77
|
+
underline?: boolean;
|
|
78
|
+
italic?: boolean;
|
|
79
|
+
lineHeight?: "normal" | "shorter" | "short" | "base" | "tall";
|
|
80
|
+
textCase?: "uppercase" | "lowercase" | "capitalize";
|
|
81
|
+
}
|
|
82
|
+
export const Text: {
|
|
83
|
+
<T extends React.ElementType<any> = "span">(props: TextProps & {
|
|
84
|
+
children?: React.ReactNode;
|
|
85
|
+
} & {
|
|
86
|
+
as?: React.ElementType<any> | T | undefined;
|
|
87
|
+
} & Omit<React.ComponentPropsWithRef<T>, "color" | "as">, ref?: React.Ref<T> | undefined): React.JSX.Element;
|
|
88
|
+
displayName: string;
|
|
89
|
+
};
|
|
90
|
+
interface SpaceProps extends React.ComponentProps<typeof Flex> {
|
|
91
|
+
compact?: boolean;
|
|
92
|
+
gap?: SizeOption;
|
|
93
|
+
className?: string;
|
|
94
|
+
}
|
|
95
|
+
export const Space: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<SpaceProps>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
interface ThemeProviderValue {
|
|
97
|
+
color?: Color;
|
|
98
|
+
scaling?: SizeScale;
|
|
99
|
+
grayVariant?: string;
|
|
100
|
+
radius?: BorderRadius;
|
|
101
|
+
buttonAppearance?: ButtonAppearanceSchemaType;
|
|
102
|
+
avatarRadiusSize?: BorderRadius;
|
|
103
|
+
}
|
|
104
|
+
interface ThemeProviderProps extends ThemeProviderValue {
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
className?: string;
|
|
107
|
+
}
|
|
108
|
+
type SizeScale = "90%" | "95%" | "100%" | "105%" | "110%";
|
|
109
|
+
export function ThemeProvider(props: ThemeProviderProps): React.JSX.Element;
|
|
110
|
+
export function useTheme(options?: {
|
|
111
|
+
requireThemeProvider: boolean;
|
|
112
|
+
}): ThemeProviderValue | null;
|
|
113
|
+
type InputProps = {
|
|
114
|
+
description?: React.ReactNode;
|
|
115
|
+
label?: React.ReactNode;
|
|
116
|
+
error?: React.ReactNode;
|
|
117
|
+
append?: React.ReactNode;
|
|
118
|
+
prepend?: React.ReactNode;
|
|
119
|
+
validationStatus?: "error" | "success" | "warning";
|
|
120
|
+
className?: string;
|
|
121
|
+
shape?: "rounded" | "sharp";
|
|
122
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
123
|
+
appearance?: "outline" | "filled" | "filled-outline";
|
|
124
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
125
|
+
color?: Color;
|
|
126
|
+
radius?: BorderRadius;
|
|
127
|
+
};
|
|
128
|
+
interface ExtendedInputProps extends Omit<AriaTextFieldOptions<"input">, "size">, InputProps {
|
|
129
|
+
_someProp?: string;
|
|
130
|
+
}
|
|
131
|
+
type InputVariantProps = Pick<InputProps, "appearance" | "size" | "color" | "shape">;
|
|
132
|
+
export const Input: React.ForwardRefExoticComponent<ExtendedInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
133
|
+
interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
134
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
135
|
+
}
|
|
136
|
+
export const Loader: React.ForwardRefExoticComponent<LoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
137
|
+
interface ButtonGroupProps extends Pick<ButtonProps, "color" | "variant" | "size" | "radius" | "idleColor" | "idleVariant" | "activeColor" | "activeVariant" | "isToggle"> {
|
|
138
|
+
label?: string;
|
|
139
|
+
}
|
|
140
|
+
export function ButtonGroup({ color, variant, size, compact, radius, gap, children, idleColor, activeColor, idleVariant, activeVariant, isToggle, }: ButtonGroupProps & React.ComponentProps<typeof Space>): React.JSX.Element;
|
|
141
|
+
interface ButtonToggleProps {
|
|
142
|
+
isToggle?: boolean;
|
|
143
|
+
idleColor?: Color;
|
|
144
|
+
idleVariant?: ColorVariant;
|
|
145
|
+
activeColor?: Color;
|
|
146
|
+
activeVariant?: ColorVariant;
|
|
147
|
+
}
|
|
148
|
+
type ButtonProps = AriaButtonProps<"button" | "div" | "a"> & ButtonToggleProps & {
|
|
149
|
+
append?: React.ReactNode;
|
|
150
|
+
prepend?: React.ReactNode;
|
|
151
|
+
as?: React.ElementType;
|
|
152
|
+
isLoading?: boolean;
|
|
153
|
+
className?: string;
|
|
154
|
+
isIconButton?: boolean;
|
|
155
|
+
color?: Color;
|
|
156
|
+
variant?: ColorVariant;
|
|
157
|
+
size?: ButtonSize;
|
|
158
|
+
radius?: BorderRadius;
|
|
159
|
+
isSelected?: boolean;
|
|
160
|
+
defaultSelected?: boolean;
|
|
161
|
+
appearance?: ButtonAppearance;
|
|
162
|
+
role?: string;
|
|
163
|
+
style?: React.CSSProperties;
|
|
164
|
+
};
|
|
165
|
+
export const Button: React.ForwardRefExoticComponent<AriaButtonProps<"div" | "a" | "button"> & ButtonToggleProps & {
|
|
166
|
+
append?: React.ReactNode;
|
|
167
|
+
prepend?: React.ReactNode;
|
|
168
|
+
as?: React.ElementType<any> | undefined;
|
|
169
|
+
isLoading?: boolean | undefined;
|
|
170
|
+
className?: string | undefined;
|
|
171
|
+
isIconButton?: boolean | undefined;
|
|
172
|
+
color?: "tomato" | "red" | "crimson" | "pink" | "plum" | "purple" | "violet" | "indigo" | "blue" | "cyan" | "teal" | "green" | "grass" | "orange" | "brown" | "sky" | "mint" | "lime" | "yellow" | "amber" | "gold" | "bronze" | "gray" | "mauve" | "slate" | "sage" | "olive" | "sand" | undefined;
|
|
173
|
+
variant?: ColorVariant | undefined;
|
|
174
|
+
size?: ButtonSize | undefined;
|
|
175
|
+
radius?: BorderRadius | undefined;
|
|
176
|
+
isSelected?: boolean | undefined;
|
|
177
|
+
defaultSelected?: boolean | undefined;
|
|
178
|
+
appearance?: ButtonAppearance | undefined;
|
|
179
|
+
role?: string | undefined;
|
|
180
|
+
style?: React.CSSProperties | undefined;
|
|
181
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
182
|
+
interface IconButtonProps extends ButtonProps {
|
|
183
|
+
isIcon?: boolean;
|
|
184
|
+
}
|
|
185
|
+
export const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
186
|
+
interface NumberInputProps extends InputProps, AriaNumberFieldProps {
|
|
187
|
+
showSteppers?: boolean;
|
|
188
|
+
}
|
|
189
|
+
export const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
190
|
+
interface TextareaProps extends AriaTextFieldOptions<"textarea">, InputProps {
|
|
191
|
+
resize?: "none" | "both" | "horizontal" | "vertical";
|
|
192
|
+
className?: string;
|
|
193
|
+
style?: React.CSSProperties;
|
|
194
|
+
}
|
|
195
|
+
export const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLDivElement>>;
|
|
196
|
+
interface CheckboxGroupProps extends AriaCheckboxGroupProps, CheckboxVariantProps {
|
|
197
|
+
}
|
|
198
|
+
export const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps & FlexProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
199
|
+
interface CheckboxVariantProps {
|
|
200
|
+
appearance?: "outline" | "filled";
|
|
201
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
202
|
+
shape?: "sharp" | "round";
|
|
203
|
+
color?: Color;
|
|
204
|
+
}
|
|
205
|
+
interface CheckboxProps extends AriaCheckboxProps, CheckboxVariantProps {
|
|
206
|
+
className?: string;
|
|
207
|
+
}
|
|
208
|
+
export const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
|
|
209
|
+
interface RadioProps extends AriaRadioProps, Pick<InputVariantProps, "appearance" | "color"> {
|
|
210
|
+
className?: string;
|
|
211
|
+
style?: React.CSSProperties;
|
|
212
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
213
|
+
}
|
|
214
|
+
export const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLLabelElement>>;
|
|
215
|
+
interface RadioGroupProps extends AriaRadioGroupProps {
|
|
216
|
+
children?: React.ReactNode;
|
|
217
|
+
}
|
|
218
|
+
export const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupProps & FlexProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
219
|
+
interface RadioCardProps extends AriaRadioProps, Pick<InputVariantProps, "appearance" | "color"> {
|
|
220
|
+
title?: React.ReactNode;
|
|
221
|
+
description?: React.ReactNode;
|
|
222
|
+
children?: React.ReactNode;
|
|
223
|
+
showIndicator?: boolean;
|
|
224
|
+
}
|
|
225
|
+
export const RadioCard: React.ForwardRefExoticComponent<RadioCardProps & React.RefAttributes<HTMLLabelElement>>;
|
|
226
|
+
interface ListBoxProps<T> extends AriaListBoxOptions<T> {
|
|
227
|
+
__parrotKey?: ID;
|
|
228
|
+
children?: any;
|
|
229
|
+
labelKey?: keyof T | string;
|
|
230
|
+
valueKey?: keyof T | string;
|
|
231
|
+
sectionKey?: keyof T;
|
|
232
|
+
renderOption?: (item: T) => React.ReactNode;
|
|
233
|
+
getSectionLabel?: (item: T) => React.ReactNode;
|
|
234
|
+
getSectionItems?: (item: T) => T[];
|
|
235
|
+
state?: ListState<T>;
|
|
236
|
+
color?: Color;
|
|
237
|
+
width?: number | string;
|
|
238
|
+
showSeparator?: boolean;
|
|
239
|
+
showSelectedMarker?: boolean;
|
|
240
|
+
}
|
|
241
|
+
export const Tag: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
242
|
+
prepend?: React.ReactNode;
|
|
243
|
+
append?: React.ReactNode;
|
|
244
|
+
hashValue?: string | undefined;
|
|
245
|
+
color?: "tomato" | "red" | "crimson" | "pink" | "plum" | "purple" | "violet" | "indigo" | "blue" | "cyan" | "teal" | "green" | "grass" | "orange" | "brown" | "sky" | "mint" | "lime" | "yellow" | "amber" | "gold" | "bronze" | "gray" | "mauve" | "slate" | "sage" | "olive" | "sand" | undefined;
|
|
246
|
+
size?: "sm" | "md" | "lg" | "xs" | "xl" | undefined;
|
|
247
|
+
shape?: "rounded" | "sharp" | "pill" | undefined;
|
|
248
|
+
variant?: ColorVariant | undefined;
|
|
249
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
250
|
+
type SingleOrMultipleValue = ID | Array<ID>;
|
|
251
|
+
interface MockNativeOnChangeEvent {
|
|
252
|
+
target: {
|
|
253
|
+
value: SingleOrMultipleValue;
|
|
254
|
+
name?: string;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
interface SelectProps<T> extends ListBoxProps<T>, InputProps {
|
|
258
|
+
renderValue?: (value: T) => React.ReactNode;
|
|
259
|
+
placeholder?: string;
|
|
260
|
+
isDisabled?: boolean;
|
|
261
|
+
name?: string;
|
|
262
|
+
listBoxColor?: Color;
|
|
263
|
+
value?: SingleOrMultipleValue;
|
|
264
|
+
defaultValue?: SingleOrMultipleValue;
|
|
265
|
+
onChange?(event: MockNativeOnChangeEvent): void;
|
|
266
|
+
}
|
|
267
|
+
export function Select<T>({ label, selectionMode, appearance, append, prepend, renderValue, color, error, description, size, radius, listBoxColor, className, value, defaultValue, onChange, ...props }: SelectProps<T>): React.JSX.Element;
|
|
268
|
+
interface CalendarProps extends AriaCalendarProps<DateValue>, InputVariantProps {
|
|
269
|
+
numberOfMonths?: number;
|
|
270
|
+
}
|
|
271
|
+
export const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
272
|
+
interface DatePickerProps extends Omit<AriaDatePickerProps<_DateValue1>, "value" | "defaultValue" | "onChange">, InputVariantProps {
|
|
273
|
+
numberOfMonths?: number;
|
|
274
|
+
error?: string;
|
|
275
|
+
value?: Date;
|
|
276
|
+
defaultValue?: Date;
|
|
277
|
+
onChange?: (date: Date, proxiedValue: _DateValue1) => void;
|
|
278
|
+
dropdownIcon?: React.ReactNode;
|
|
279
|
+
}
|
|
280
|
+
export const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
281
|
+
type AvatarSize = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
282
|
+
type AvatarShape = "circle" | "square";
|
|
283
|
+
interface AvatarProps extends React.ComponentProps<"div"> {
|
|
284
|
+
src?: string;
|
|
285
|
+
alt?: string;
|
|
286
|
+
name?: string;
|
|
287
|
+
fallback?: React.ReactNode;
|
|
288
|
+
radius?: BorderRadius;
|
|
289
|
+
color?: Color;
|
|
290
|
+
variant?: ColorVariant;
|
|
291
|
+
size?: AvatarSize;
|
|
292
|
+
shape?: AvatarShape;
|
|
293
|
+
}
|
|
294
|
+
export const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
295
|
+
type Upload = {
|
|
296
|
+
name: string;
|
|
297
|
+
url: string;
|
|
298
|
+
id: string;
|
|
299
|
+
file?: File;
|
|
300
|
+
status?: ActionStatus;
|
|
301
|
+
progress?: number;
|
|
302
|
+
};
|
|
303
|
+
interface FileUploaderProps {
|
|
304
|
+
onFileUpload?: (files: Array<Upload>) => void;
|
|
305
|
+
onRemoveFile?: () => void;
|
|
306
|
+
onStatusChange?: (status: ActionStatus) => void;
|
|
307
|
+
error?: React.ReactNode;
|
|
308
|
+
label?: React.ReactNode;
|
|
309
|
+
allowMultiple?: boolean;
|
|
310
|
+
uploads?: Array<Upload>;
|
|
311
|
+
hideFileList?: boolean;
|
|
312
|
+
color?: Color;
|
|
313
|
+
}
|
|
314
|
+
export const FileUploader: React.ForwardRefExoticComponent<FileUploaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
315
|
+
interface SeparatorProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
316
|
+
orientation?: "horizontal" | "vertical";
|
|
317
|
+
color?: Color;
|
|
318
|
+
opacity?: "faint" | "medium" | "strong";
|
|
319
|
+
}
|
|
320
|
+
export const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
321
|
+
interface ProgressProps extends AriaProgressBarProps, React.ComponentPropsWithoutRef<"div"> {
|
|
322
|
+
height?: number;
|
|
323
|
+
color?: Color;
|
|
324
|
+
}
|
|
325
|
+
export const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
326
|
+
interface TabsProps extends AriaTabListProps<any> {
|
|
327
|
+
orientation?: "horizontal" | "vertical";
|
|
328
|
+
}
|
|
329
|
+
export const Root: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
330
|
+
export const Item: <T>(props: import("react-stately").ItemProps<T>) => JSX.Element;
|
|
331
|
+
export const Tabs: {
|
|
332
|
+
Item: <T>(props: import("react-stately").ItemProps<T>) => JSX.Element;
|
|
333
|
+
Root: import("react").ForwardRefExoticComponent<import("components/tabs/tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
334
|
+
};
|
|
335
|
+
interface Props extends AriaSwitchProps {
|
|
336
|
+
color?: Color;
|
|
337
|
+
variant?: ColorVariant;
|
|
338
|
+
size?: "sm" | "md" | "lg";
|
|
339
|
+
className?: string;
|
|
340
|
+
}
|
|
341
|
+
export const Switch: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLLabelElement>>;
|
|
342
|
+
export function ColorTray(props: any): React.JSX.Element;
|
|
343
|
+
export function IconTray(props: any): React.JSX.Element;
|
|
344
|
+
interface StickerProps extends FlexProps {
|
|
345
|
+
padded?: boolean;
|
|
346
|
+
color?: Color;
|
|
347
|
+
variant?: ColorVariant;
|
|
348
|
+
radius?: BorderRadius;
|
|
349
|
+
}
|
|
350
|
+
export const Sticker: React.ForwardRefExoticComponent<Omit<StickerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
351
|
+
export function Table(): React.JSX.Element;
|
|
352
|
+
interface TimelineProps<T> {
|
|
353
|
+
items: Array<T>;
|
|
354
|
+
render?(item: T): React.ReactNode;
|
|
355
|
+
labelKey?: keyof T;
|
|
356
|
+
getIndicator?(item: T): React.ReactNode;
|
|
357
|
+
hideLastItemTail?: boolean;
|
|
358
|
+
}
|
|
359
|
+
export function Timeline<T>({ items, render, labelKey, getIndicator, hideLastItemTail, }: TimelineProps<T>): React.JSX.Element;
|
|
360
|
+
export interface ModalProps extends AriaModalOverlayProps {
|
|
361
|
+
hideTitle?: boolean;
|
|
362
|
+
state: OverlayTriggerState;
|
|
363
|
+
children?: React.ReactNode;
|
|
364
|
+
title?: React.ReactNode;
|
|
365
|
+
description?: React.ReactNode;
|
|
366
|
+
onConfirm?(): void;
|
|
367
|
+
onCancel?(): void;
|
|
368
|
+
confirmLabel?: string;
|
|
369
|
+
cancelLabel?: string;
|
|
370
|
+
confirmButtonProps?: React.ComponentProps<typeof Button>;
|
|
371
|
+
cancelButtonProps?: React.ComponentProps<typeof Button>;
|
|
372
|
+
width?: number | string;
|
|
373
|
+
variant?: "modal" | "drawer";
|
|
374
|
+
showCloseButton?: boolean;
|
|
375
|
+
onOpenChange?(open: boolean): void;
|
|
376
|
+
onClose?(): void;
|
|
377
|
+
isOpen?: boolean;
|
|
378
|
+
defaultOpen?: boolean;
|
|
379
|
+
}
|
|
380
|
+
export function Modal({ isOpen, defaultOpen, onOpenChange, ...props }: Omit<ModalProps, "state">): React.JSX.Element;
|
|
381
|
+
export declare namespace Modal {
|
|
382
|
+
var useModal: typeof import("index").useModal;
|
|
383
|
+
}
|
|
384
|
+
export function useModal(props?: OverlayTriggerProps): OverlayTriggerState;
|
|
385
|
+
interface TagField extends InputProps {
|
|
386
|
+
tags?: Array<string>;
|
|
387
|
+
defaultTags?: Array<string>;
|
|
388
|
+
placeholder?: string;
|
|
389
|
+
onInputValueChange?(value: string): void;
|
|
390
|
+
onChange?(tags: Array<string>): void;
|
|
391
|
+
tagVariant?: React.ComponentProps<typeof Tag>["variant"];
|
|
392
|
+
tagColor?: React.ComponentProps<typeof Tag>["color"];
|
|
393
|
+
tagShape?: React.ComponentProps<typeof Tag>["shape"];
|
|
394
|
+
tagSize?: React.ComponentProps<typeof Tag>["size"];
|
|
395
|
+
renderTag?(value: string, onRemove: (value: string) => void): React.ReactNode;
|
|
396
|
+
}
|
|
397
|
+
export function TagInput({ appearance, size, label, error, placeholder, tags, defaultTags, tagColor, tagVariant, tagShape, tagSize, color, onChange, renderTag, radius, }: TagField): React.JSX.Element;
|
|
398
|
+
|
|
399
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;AEAA,QAAO,MAAM,gRA6BH,CAAC;AAEX,aAAoB,CAAA,sBAAsB,EAAC,MAAM,CAAC,CAAC;AAEnD,oBACI,OAAO,GACP,SAAS,GACT,OAAO,GACP,cAAc,GACd,WAAW,GACX,OAAO,GACP,QAAQ,CAAC;AAEb,oBAA2B,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAGhE,kBAAyB,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1D,wBAA+B,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAEnE,kCAAyC,OAAO,CAC9C,MAAM,CAAC,gBAAgB,EAAE;IAAE,OAAO,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,CAClE,CAAC;AAUF,oBAA2B,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAExE,0BACI,OAAO,GACP,QAAQ,GACR,KAAK,GACL,eAAe,GACf,cAAc,GACd,cAAc,CAAC;AAEnB,sBACI,OAAO,GACP,QAAQ,GACR,KAAK,GACL,SAAS,GACT,UAAU,CAAC;AAEf,yBACI,KAAK,GACL,QAAQ,GACR,aAAa,GACb,gBAAgB,CAAC;AAErB,kBACI,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,CAAC;AC3FV,kBAA0B,SAAQ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AAS,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,MAAM,cAAc,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,cAAc,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,cAAc,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IACnD,SAAS,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,MAAM,SAAS,CAAC;CAC/E;AAED,yBAAyB,EACvB,UAAsB,EACtB,IAAW,EACX,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAI,EACJ,WAAW,EACX,QAAiB,EACjB,UAAoB,EACpB,QAAoB,EACpB,OAAc,EACd,KAAc,EACd,QAAQ,EACR,SAAS,EACT,MAAM,GACP,EAAE,QAAQ,qBA0KV","sources":["src/src/utils/assertions.ts","src/src/utils/dom.ts","src/src/utils/theme.ts","src/src/components/box/box.tsx","src/src/components/box/index.ts","src/src/utils/types.ts","src/src/components/grid/grid.tsx","src/src/components/grid/index.ts","src/src/components/flex/flex.tsx","src/src/components/flex/index.ts","src/src/components/text/text.tsx","src/src/components/text/index.ts","src/src/components/input-label/input-label.tsx","src/src/components/input-label/index.ts","src/src/components/input-error/input-error.tsx","src/src/components/input-error/index.ts","src/src/components/space/space.tsx","src/src/components/theme/theme-provider.tsx","src/src/components/theme/index.ts","src/src/components/input/input.tsx","src/src/components/loader/loader.tsx","src/src/components/loader/index.ts","src/src/components/space/index.ts","src/src/utils/object.ts","src/src/components/button/button-group.tsx","src/src/components/button/button.tsx","src/src/components/button/icon-button.tsx","src/src/components/button/index.ts","src/src/components/input/number-input.tsx","src/src/components/input/password-input.tsx","src/src/components/input/index.ts","src/src/components/textarea/textarea.tsx","src/src/components/textarea/index.ts","src/src/components/checkbox/checkbox-group.tsx","src/src/components/checkbox/checkbox.tsx","src/src/components/checkbox/index.ts","src/src/components/radio/radio.tsx","src/src/components/radio/radio-card.tsx","src/src/components/radio/index.ts","src/src/components/list-box/list-box.utils.tsx","src/src/components/list-box/list-box-provider.tsx","src/src/components/list-box/list-box.tsx","src/src/components/list-box/index.ts","src/src/utils/helpers.ts","src/src/components/tag/tag.tsx","src/src/components/tag/index.ts","src/src/components/popover/popover.tsx","src/src/components/popover/index.ts","src/src/components/select/select.tsx","src/src/components/select/index.ts","src/src/components/date-picker/date-field.tsx","src/src/utils/array.ts","src/src/components/date-picker/calendar.tsx","src/src/components/date-picker/date-picker.utils.ts","src/src/components/date-picker/date-picker.tsx","src/src/components/date-picker/index.ts","src/src/components/avatar/avatar.tsx","src/src/components/avatar/index.ts","src/src/components/file-uploader/file-uploader.tsx","src/src/components/file-uploader/index.ts","src/src/components/separator/separator.tsx","src/src/components/separator/index.ts","src/src/components/progress/progress.tsx","src/src/components/progress/index.ts","src/src/components/tabs/tabs.tsx","src/src/components/tabs/index.ts","src/src/components/switch/switch.tsx","src/src/components/switch/index.ts","src/src/components/color-tray/color-tray.tsx","src/src/components/color-tray/index.ts","src/src/components/icon-tray/icon-tray.tsx","src/src/components/icon-tray/index.ts","src/src/components/sticker/sticker.tsx","src/src/components/sticker/index.ts","src/src/components/table/table.tsx","src/src/components/table/index.ts","src/src/components/timeline/timeline.tsx","src/src/components/timeline/index.ts","src/src/components/modal/modal.tsx","src/src/components/modal/index.ts","src/src/utils/regex.ts","src/src/hooks/use-controlled-state.tsx","src/src/components/tag-input/tag-input.tsx","src/src/components/tag-input/index.ts","src/src/index.ts","src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export { Box } from \"./components/box\";\nexport { Grid, GridItem } from \"./components/grid\";\nexport { Flex } from \"./components/flex\";\nexport { Input, NumberInput } from \"./components/input\";\nexport { Text } from \"./components/text\";\nexport { Textarea } from \"./components/textarea\";\nexport { Button, IconButton, ButtonGroup } from \"./components/button\";\nexport { Checkbox, CheckboxGroup } from \"./components/checkbox\";\nexport { Radio, RadioGroup, RadioCard } from \"./components/radio\";\nexport { Select } from \"./components/select\";\nexport { DatePicker, Calendar } from \"./components/date-picker\";\nexport { Avatar } from \"./components/avatar\";\nexport { FileUploader } from \"./components/file-uploader\";\nexport { Separator } from \"./components/separator\";\nexport { Progress } from \"./components/progress\";\nexport { Loader } from \"./components/loader\";\nexport { Root, Item } from \"./components/tabs\";\nexport { Tag } from \"./components/tag\";\nexport { Switch } from \"./components/switch\";\nexport { ColorTray } from \"./components/color-tray\";\nexport { IconTray } from \"./components/icon-tray\";\nexport { Sticker } from \"./components/sticker\";\nexport { TabObject as Tabs } from \"./components/tabs\";\nexport { Table } from \"./components/table\";\nexport { Timeline } from \"./components/timeline\";\nexport { Modal, useModal } from \"./components/modal\";\nexport { Space } from \"./components/space\";\nexport { TagInput } from \"./components/tag-input\";\nexport { ThemeProvider, useTheme } from \"./components/theme\";\n\nexport type { ModalProps } from \"./components/modal\";\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"components",
|
|
11
11
|
"parrot"
|
|
12
12
|
],
|
|
13
|
-
"version": "0.0.
|
|
13
|
+
"version": "0.0.88",
|
|
14
14
|
"source": "src/index.ts",
|
|
15
15
|
"main": "dist/main.js",
|
|
16
16
|
"module": "dist/module.js",
|
|
17
|
+
"types": "dist/types.d.ts",
|
|
17
18
|
"exports": {
|
|
18
19
|
".": {
|
|
19
20
|
"require": {
|
|
@@ -50,9 +51,9 @@
|
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@babel/preset-react": "^7.22.15",
|
|
53
|
-
"@parcel/packager-ts": "2.
|
|
54
|
+
"@parcel/packager-ts": "2.9.3",
|
|
54
55
|
"@parcel/reporter-bundle-analyzer": "^2.9.3",
|
|
55
|
-
"@parcel/transformer-typescript-types": "2.
|
|
56
|
+
"@parcel/transformer-typescript-types": "2.9.3",
|
|
56
57
|
"@storybook/addon-essentials": "^7.4.5",
|
|
57
58
|
"@storybook/addon-interactions": "^7.4.5",
|
|
58
59
|
"@storybook/addon-links": "^7.4.5",
|