@fastnd/components 1.0.13 → 1.0.16
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/components/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/FilterChip/FilterChip.d.ts +12 -0
- package/dist/components/FormField/FormField.d.ts +9 -0
- package/dist/components/Modal/Modal.d.ts +10 -0
- package/dist/components/Popover/Popover.d.ts +8 -0
- package/dist/components/Select/Select.d.ts +13 -0
- package/dist/components/TextArea/TextArea.d.ts +7 -0
- package/dist/components/TextInput/TextInput.d.ts +7 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/components.js +2317 -999
- package/dist/features/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CheckboxProps {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
onChange?: (checked: boolean) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FilterChipProps {
|
|
3
|
+
label: string;
|
|
4
|
+
options: string[];
|
|
5
|
+
value: string | null;
|
|
6
|
+
onChange?: (value: string | null) => void;
|
|
7
|
+
searchable?: boolean;
|
|
8
|
+
/** data-attribute value for testing / identification */
|
|
9
|
+
dataFilter?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const FilterChip: React.ForwardRefExoticComponent<FilterChipProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FormFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
htmlFor?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const FormField: React.ForwardRefExoticComponent<FormFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
footer?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
open: boolean;
|
|
4
|
+
'aria-label'?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'onChange'> {
|
|
7
|
+
options: SelectOption[];
|
|
8
|
+
value?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -42,3 +42,19 @@ export { EmptyState } from './EmptyState/EmptyState';
|
|
|
42
42
|
export type { EmptyStateProps } from './EmptyState/EmptyState';
|
|
43
43
|
export { SegmentedControl } from './SegmentedControl/SegmentedControl';
|
|
44
44
|
export type { SegmentedControlProps, SegmentedControlOption } from './SegmentedControl/SegmentedControl';
|
|
45
|
+
export { FilterChip } from './FilterChip/FilterChip';
|
|
46
|
+
export type { FilterChipProps } from './FilterChip/FilterChip';
|
|
47
|
+
export { Popover } from './Popover/Popover';
|
|
48
|
+
export type { PopoverProps } from './Popover/Popover';
|
|
49
|
+
export { Checkbox } from './Checkbox/Checkbox';
|
|
50
|
+
export type { CheckboxProps } from './Checkbox/Checkbox';
|
|
51
|
+
export { FormField } from './FormField/FormField';
|
|
52
|
+
export type { FormFieldProps } from './FormField/FormField';
|
|
53
|
+
export { TextInput } from './TextInput/TextInput';
|
|
54
|
+
export type { TextInputProps } from './TextInput/TextInput';
|
|
55
|
+
export { Select } from './Select/Select';
|
|
56
|
+
export type { SelectProps, SelectOption } from './Select/Select';
|
|
57
|
+
export { TextArea } from './TextArea/TextArea';
|
|
58
|
+
export type { TextAreaProps } from './TextArea/TextArea';
|
|
59
|
+
export { Modal } from './Modal/Modal';
|
|
60
|
+
export type { ModalProps } from './Modal/Modal';
|