@ofgdev/ui-components 1.2.27 → 1.2.28
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/apps/demo-app/src/charts/BarChart/BarChart.d.ts +9 -0
- package/dist/apps/demo-app/src/charts/ChartApp.d.ts +1 -0
- package/dist/apps/demo-app/src/charts/ChartProvider.d.ts +11 -0
- package/dist/apps/demo-app/src/charts/LineChart/LineChart.d.ts +0 -0
- package/dist/apps/demo-app/src/charts/LineChart/SafeLineChart.d.ts +9 -0
- package/dist/apps/demo-app/src/charts/chartConfig.d.ts +49 -0
- package/dist/apps/demo-app/src/charts/index.d.ts +4 -0
- package/dist/apps/demo-app/src/main.d.ts +0 -0
- package/dist/apps/demo-app/src/modules/module-template/ModuleApp.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/DocumentationContent.d.ts +2 -0
- package/dist/apps/demo-app/src/modules/module-template/components/ModuleContent.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/AccordionDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/BackIconDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/ButtonDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/CardButtonDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/CardDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/CheckBoxInputDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/CheckBoxTabDocumentation.d.ts +0 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/CheckBoxTabGroupDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/CompleteIconDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/ComponentDocumentation.d.ts +7 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/DatePickerDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/FormDocumentation.d.ts +2 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/HeadingDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/IconButtonDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/ModalDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/MultiSelectDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/NumberInputDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/PhoneNumberInputDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/PopoverDocumentations.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/ProgressBarDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/RadioInputDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/SelectDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/SliderInputDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/SpinnerDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/StarRatingDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/StepperDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/TableDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/TextAreaDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/TextDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/TextInputDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/ToastDocumentation.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/components/CopyableCodeBlock.d.ts +5 -0
- package/dist/apps/demo-app/src/modules/module-template/components/documentation/components/PropsTable.d.ts +9 -0
- package/dist/apps/demo-app/src/modules/module-template/components/form-card/FormCard.d.ts +10 -0
- package/dist/apps/demo-app/src/modules/module-template/components/form-card/FromCardContentTemplate.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/components/form-card-footer/FormCardFooter.d.ts +4 -0
- package/dist/apps/demo-app/src/modules/module-template/components/form-stepper/FormStepper.d.ts +5 -0
- package/dist/apps/demo-app/src/modules/module-template/components/index.d.ts +2 -0
- package/dist/apps/demo-app/src/modules/module-template/consts/consts.d.ts +2 -0
- package/dist/apps/demo-app/src/modules/module-template/consts/index.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/providers/BaseModuleProvider.d.ts +17 -0
- package/dist/apps/demo-app/src/modules/module-template/providers/ModuleProviderTemplate.d.ts +6 -0
- package/dist/apps/demo-app/src/modules/module-template/types/index.d.ts +1 -0
- package/dist/apps/demo-app/src/modules/module-template/types/interfaces.d.ts +47 -0
- package/dist/apps/demo-app/vite.config.d.ts +2 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.es.js +2208 -2159
- package/dist/{Accordion → packages/react-components/src/Accordion}/Accordion.d.ts +6 -3
- package/dist/{Alert → packages/react-components/src/Alert}/Alert.d.ts +6 -6
- package/dist/{Button → packages/react-components/src/Button}/Button.d.ts +3 -3
- package/dist/{Calendar → packages/react-components/src/Calendar}/Calendar.d.ts +7 -6
- package/dist/{Card → packages/react-components/src/Card}/Card.d.ts +2 -2
- package/dist/{CheckBoxInput → packages/react-components/src/CheckBoxInput}/CheckBoxInput.d.ts +6 -5
- package/dist/{CheckBoxInput → packages/react-components/src/CheckBoxInput}/CheckBoxInputGroup.d.ts +3 -2
- package/dist/{CheckBoxInput → packages/react-components/src/CheckBoxInput}/CheckBoxInputItem.d.ts +1 -1
- package/dist/{CheckBoxTab → packages/react-components/src/CheckBoxTab}/CheckBoxTabGroup.d.ts +3 -2
- package/dist/{CheckBoxTab → packages/react-components/src/CheckBoxTab}/CheckBoxTabItem.d.ts +5 -2
- package/dist/{DatePicker → packages/react-components/src/DatePicker}/DatePicker.d.ts +10 -9
- package/dist/{Heading → packages/react-components/src/Heading}/Heading.d.ts +3 -3
- package/dist/packages/react-components/src/Modal/Modal.d.ts +29 -0
- package/dist/{MultiSelect → packages/react-components/src/MultiSelect}/MultiSelect.d.ts +14 -14
- package/dist/{NumberInput → packages/react-components/src/NumberInput}/NumberInput.d.ts +10 -9
- package/dist/{PhoneNumberInput → packages/react-components/src/PhoneNumberInput}/PhoneNumberInput.d.ts +8 -7
- package/dist/{Popover → packages/react-components/src/Popover}/Popover.d.ts +4 -4
- package/dist/{RadioInput → packages/react-components/src/RadioInput}/RadioInput.d.ts +8 -6
- package/dist/{Select → packages/react-components/src/Select}/Select.d.ts +11 -11
- package/dist/{SliderInput → packages/react-components/src/SliderInput}/SliderInput.d.ts +16 -15
- package/dist/{Spinner → packages/react-components/src/Spinner}/Spinner.d.ts +1 -1
- package/dist/{Stepper → packages/react-components/src/Stepper}/StepContent.d.ts +2 -2
- package/dist/{Table → packages/react-components/src/Table}/TableCell.d.ts +2 -2
- package/dist/{Text → packages/react-components/src/Text}/Text.d.ts +3 -3
- package/dist/{TextArea → packages/react-components/src/TextArea}/TextArea.d.ts +6 -5
- package/dist/{TextInput → packages/react-components/src/TextInput}/TextInput.d.ts +8 -7
- package/dist/packages/react-components/src/Toast/Toast.d.ts +13 -0
- package/dist/packages/react-components/src/helper/cx.d.ts +1 -0
- package/dist/{helper → packages/react-components/src/helper}/formatValue.d.ts +1 -1
- package/dist/packages/react-components/vite.config.d.ts +2 -0
- package/dist/ui-components.css +1 -1
- package/package.json +1 -1
- package/dist/Modal/Modal.d.ts +0 -26
- package/dist/Toast/Toast.d.ts +0 -14
- package/dist/helper/cx.d.ts +0 -1
- package/dist/{Alert → packages/react-components/src/Alert}/index.d.ts +0 -0
- package/dist/{BackIcon → packages/react-components/src/BackIcon}/BackIcon.d.ts +0 -0
- package/dist/{CardButton → packages/react-components/src/CardButton}/CardButton.d.ts +1 -1
- package/dist/{CheckBoxInput → packages/react-components/src/CheckBoxInput}/index.d.ts +0 -0
- package/dist/{CheckBoxTab → packages/react-components/src/CheckBoxTab}/index.d.ts +0 -0
- package/dist/{CompleteIcon → packages/react-components/src/CompleteIcon}/CompleteIcon.d.ts +0 -0
- package/dist/{DSProvider.d.ts → packages/react-components/src/DSProvider.d.ts} +0 -0
- package/dist/{IconButton → packages/react-components/src/IconButton}/IconButton.d.ts +3 -3
- package/dist/{ImportFile → packages/react-components/src/ImportFile}/ImportFile.d.ts +3 -3
- package/dist/{PhoneNumberInput → packages/react-components/src/PhoneNumberInput}/countryCodes.d.ts +0 -0
- package/dist/{ProgressBar → packages/react-components/src/ProgressBar}/ProgressBar.d.ts +1 -1
- package/dist/{StarRating → packages/react-components/src/StarRating}/StarRating.d.ts +3 -3
- package/dist/{StarRating → packages/react-components/src/StarRating}/index.d.ts +0 -0
- package/dist/{Stepper → packages/react-components/src/Stepper}/Icons.d.ts +0 -0
- package/dist/{Stepper → packages/react-components/src/Stepper}/Step.d.ts +0 -0
- package/dist/{Stepper → packages/react-components/src/Stepper}/Stepper.d.ts +1 -1
- package/dist/{Stepper → packages/react-components/src/Stepper}/SubStep.d.ts +3 -3
- package/dist/{Stepper → packages/react-components/src/Stepper}/index.d.ts +0 -0
- package/dist/{Stepper → packages/react-components/src/Stepper}/types.d.ts +6 -6
- package/dist/{Table → packages/react-components/src/Table}/Table.d.ts +0 -0
- package/dist/{Table → packages/react-components/src/Table}/TableBody.d.ts +1 -1
- package/dist/{Table → packages/react-components/src/Table}/TableHeader.d.ts +0 -0
- package/dist/{Table → packages/react-components/src/Table}/TableRow.d.ts +2 -2
- /package/dist/{Table → packages/react-components/src/Table}/index.d.ts +0 -0
- /package/dist/{index.d.ts → packages/react-components/src/index.d.ts} +0 -0
- /package/dist/{styles.d.ts → packages/react-components/src/styles.d.ts} +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface AccordionProps {
|
|
3
|
-
className?: string;
|
|
4
3
|
children?: React.ReactNode;
|
|
5
|
-
|
|
4
|
+
className?: string;
|
|
6
5
|
defaultOpen?: boolean;
|
|
6
|
+
label: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const Accordion:
|
|
8
|
+
export declare const Accordion: {
|
|
9
|
+
({ className, children, label, defaultOpen, ...props }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
9
12
|
export default Accordion;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface AlertProps {
|
|
3
|
-
variant?: "success" | "error" | "warning" | "info";
|
|
4
|
-
deleteOnClick?: () => void;
|
|
5
3
|
cancelOnClick?: () => void;
|
|
6
|
-
confirmOnClick?: () => void;
|
|
7
|
-
open?: boolean;
|
|
8
|
-
dismissible?: boolean;
|
|
9
|
-
onDismiss?: () => void;
|
|
10
4
|
children?: React.ReactNode;
|
|
11
5
|
className?: string;
|
|
6
|
+
confirmOnClick?: () => void;
|
|
12
7
|
contentText: string;
|
|
8
|
+
deleteOnClick?: () => void;
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
onDismiss?: () => void;
|
|
11
|
+
open?: boolean;
|
|
13
12
|
title: string;
|
|
13
|
+
variant?: "error" | "info" | "success" | "warning";
|
|
14
14
|
}
|
|
15
15
|
export declare const Alert: React.FC<AlertProps>;
|
|
16
16
|
export default Alert;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
variant?: "primary" | "secondary" | "ghost-primary" | "ghost-secondary" | "ghost-tertiary" | "danger";
|
|
4
|
-
size?: "default" | "small";
|
|
5
|
-
className?: string;
|
|
6
3
|
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
7
5
|
isLoading?: boolean;
|
|
8
6
|
loadingText?: string;
|
|
7
|
+
size?: "default" | "small";
|
|
8
|
+
variant?: "danger" | "ghost-primary" | "ghost-secondary" | "ghost-tertiary" | "primary" | "secondary";
|
|
9
9
|
}
|
|
10
10
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface CalendarProps {
|
|
3
|
-
value?: string;
|
|
4
|
-
onChange?: (date: string) => void;
|
|
5
|
-
minDate?: string;
|
|
6
|
-
maxDate?: string;
|
|
7
|
-
disabledDates?: string[];
|
|
8
|
-
show?: boolean;
|
|
9
3
|
className?: string;
|
|
4
|
+
disabledDates?: string[];
|
|
5
|
+
format?: string;
|
|
6
|
+
maxDate?: string;
|
|
7
|
+
minDate?: string;
|
|
8
|
+
onChange?: (date: string) => void;
|
|
10
9
|
paginateYears?: boolean;
|
|
10
|
+
show?: boolean;
|
|
11
|
+
value?: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const Calendar: React.FC<CalendarProps>;
|
|
13
14
|
export {};
|
package/dist/{CheckBoxInput → packages/react-components/src/CheckBoxInput}/CheckBoxInput.d.ts
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
1
2
|
interface CheckBoxInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
description?: string;
|
|
4
|
+
errorMessage?: string;
|
|
2
5
|
label?: string;
|
|
3
|
-
labelSize?:
|
|
6
|
+
labelSize?: HeadingSize;
|
|
4
7
|
labelTop?: string;
|
|
5
|
-
vertical?: boolean;
|
|
6
|
-
errorMessage?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
required?: boolean;
|
|
9
8
|
optional?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
vertical?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export declare const CheckBoxInput: import('react').ForwardRefExoticComponent<CheckBoxInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
12
13
|
export default CheckBoxInput;
|
package/dist/{CheckBoxInput → packages/react-components/src/CheckBoxInput}/CheckBoxInputGroup.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
2
3
|
type CheckBoxInputGroupProps = {
|
|
3
4
|
name?: string;
|
|
4
5
|
className?: string;
|
|
@@ -13,14 +14,14 @@ type CheckBoxInputGroupProps = {
|
|
|
13
14
|
required?: boolean;
|
|
14
15
|
optional?: boolean;
|
|
15
16
|
label?: string;
|
|
16
|
-
labelSize?:
|
|
17
|
+
labelSize?: HeadingSize;
|
|
17
18
|
vertical?: boolean;
|
|
18
19
|
};
|
|
19
20
|
interface CheckBoxInputGroupContextType {
|
|
21
|
+
multiple: boolean;
|
|
20
22
|
name?: string;
|
|
21
23
|
selectedItems: string | string[];
|
|
22
24
|
updateSelection: (value: string, checked: boolean) => void;
|
|
23
|
-
multiple: boolean;
|
|
24
25
|
}
|
|
25
26
|
export interface CheckBoxInputGroupRef {
|
|
26
27
|
getSelectedValues: () => string | string[];
|
package/dist/{CheckBoxInput → packages/react-components/src/CheckBoxInput}/CheckBoxInputItem.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
type CheckBoxInputItemProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
2
|
+
type CheckBoxInputItemProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "onChange"> & {
|
|
3
3
|
className?: string;
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
package/dist/{CheckBoxTab → packages/react-components/src/CheckBoxTab}/CheckBoxTabGroup.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
2
3
|
type CheckBoxTabGroupProps = {
|
|
3
4
|
name?: string;
|
|
4
5
|
className?: string;
|
|
@@ -13,13 +14,13 @@ type CheckBoxTabGroupProps = {
|
|
|
13
14
|
required?: boolean;
|
|
14
15
|
optional?: boolean;
|
|
15
16
|
label?: string;
|
|
16
|
-
labelSize?:
|
|
17
|
+
labelSize?: HeadingSize;
|
|
17
18
|
};
|
|
18
19
|
interface CheckBoxTabGroupContextType {
|
|
20
|
+
multiple: boolean;
|
|
19
21
|
name?: string;
|
|
20
22
|
selectedItems: string | string[];
|
|
21
23
|
updateSelection: (value: string, checked: boolean) => void;
|
|
22
|
-
multiple: boolean;
|
|
23
24
|
}
|
|
24
25
|
export interface CheckBoxTabGroupRef {
|
|
25
26
|
getSelectedValues: () => string | string[];
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
type CheckBoxTabItemProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
2
|
+
type CheckBoxTabItemProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked" | "onChange"> & {
|
|
3
3
|
className?: string;
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
onChange?: (checked: boolean, value: string) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const CheckBoxTabItem:
|
|
9
|
+
export declare const CheckBoxTabItem: {
|
|
10
|
+
({ className, label, value, name, onChange, ...props }: CheckBoxTabItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
10
13
|
export default CheckBoxTabItem;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
2
3
|
interface DatePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue"> {
|
|
3
4
|
value?: string;
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
disabledDates?: string[];
|
|
6
|
-
minDate?: string;
|
|
7
|
-
maxDate?: string;
|
|
8
5
|
defaultValue?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
errorMessage?: string;
|
|
13
6
|
description?: string;
|
|
14
|
-
|
|
7
|
+
disabledDates?: string[];
|
|
8
|
+
errorMessage?: string;
|
|
15
9
|
format?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
labelSize?: HeadingSize;
|
|
12
|
+
maxDate?: string;
|
|
13
|
+
minDate?: string;
|
|
14
|
+
optional?: boolean;
|
|
16
15
|
paginateYears?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
required?: boolean;
|
|
17
18
|
}
|
|
18
19
|
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
20
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export type HeadingSize = "
|
|
2
|
+
export type HeadingSize = "2xl" | "3xl" | "5xl" | "8xl" | "lg" | "md" | "sm" | "xs" | "xxs";
|
|
3
3
|
export interface HeadingProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
size?: HeadingSize;
|
|
6
4
|
as?: keyof React.JSX.IntrinsicElements;
|
|
5
|
+
children: React.ReactNode;
|
|
7
6
|
className?: string;
|
|
7
|
+
size?: HeadingSize;
|
|
8
8
|
}
|
|
9
9
|
export declare const Heading: React.FC<HeadingProps>;
|
|
10
10
|
export default Heading;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface ModalProps {
|
|
2
|
+
bodyClassName?: string;
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
onPrimaryButtonClick?: () => void;
|
|
8
|
+
onSecondaryButtonClick?: () => void;
|
|
9
|
+
primaryButtonClassName?: string;
|
|
10
|
+
primaryButtonIsLoading?: boolean;
|
|
11
|
+
primaryButtonLoadingMessage?: string;
|
|
12
|
+
primaryButtonText?: string;
|
|
13
|
+
primaryButtonVariant?: "danger" | "ghost-primary" | "ghost-secondary" | "ghost-tertiary" | "primary" | "secondary";
|
|
14
|
+
secondaryButtonClassName?: string;
|
|
15
|
+
secondaryButtonIsLoading?: boolean;
|
|
16
|
+
secondaryButtonLoadingMessage?: string;
|
|
17
|
+
secondaryButtonText?: string;
|
|
18
|
+
secondaryButtonVariant?: "danger" | "ghost-primary" | "ghost-secondary" | "ghost-tertiary" | "primary" | "secondary";
|
|
19
|
+
showFooter?: boolean;
|
|
20
|
+
showHeader?: boolean;
|
|
21
|
+
size?: "lg" | "md" | "sm";
|
|
22
|
+
title?: string;
|
|
23
|
+
titleClassName?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const Modal: {
|
|
26
|
+
({ className, bodyClassName, primaryButtonText, secondaryButtonText, onPrimaryButtonClick, onSecondaryButtonClick, secondaryButtonClassName, primaryButtonClassName, primaryButtonIsLoading, secondaryButtonIsLoading, children, title, titleClassName, isOpen, primaryButtonLoadingMessage, secondaryButtonLoadingMessage, onClose, size, showHeader, showFooter, primaryButtonVariant, secondaryButtonVariant, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
export default Modal;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
2
2
|
interface Option {
|
|
3
|
-
value: string | number;
|
|
4
3
|
label: string;
|
|
4
|
+
value: number | string;
|
|
5
5
|
}
|
|
6
6
|
interface SelectProps {
|
|
7
|
-
options: Option[];
|
|
8
|
-
value?: (string | number)[];
|
|
9
|
-
defaultValue?: (string | number)[];
|
|
10
|
-
placeholder?: string;
|
|
11
7
|
className?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
8
|
+
defaultValue?: (number | string)[];
|
|
9
|
+
description?: string;
|
|
15
10
|
disabled?: boolean;
|
|
16
11
|
errorMessage?: string;
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
label?: string;
|
|
13
|
+
labelSize?: HeadingSize;
|
|
14
|
+
onBlur?: () => void;
|
|
15
|
+
onChange?: (value: (number | string)[]) => void;
|
|
19
16
|
optional?: boolean;
|
|
17
|
+
options: Option[];
|
|
18
|
+
placeholder?: string;
|
|
20
19
|
readOnly?: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
required?: boolean;
|
|
21
|
+
searchable?: boolean;
|
|
22
|
+
value?: (number | string)[];
|
|
23
23
|
}
|
|
24
|
-
export declare const MultiSelect:
|
|
24
|
+
export declare const MultiSelect: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
25
25
|
export default MultiSelect;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
1
2
|
interface NumberInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
-
prefix?: string;
|
|
3
|
-
suffix?: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
6
|
-
format?: "currency" | "percentage" | "number";
|
|
7
|
-
formatOnChange?: boolean;
|
|
8
|
-
errorMessage?: string;
|
|
9
3
|
description?: string;
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
format?: "currency" | "number" | "percentage";
|
|
6
|
+
formatOnChange?: boolean;
|
|
12
7
|
inputClassName?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
labelSize?: HeadingSize;
|
|
10
|
+
optional?: boolean;
|
|
11
|
+
prefix?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
suffix?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const NumberInput: import('react').ForwardRefExoticComponent<NumberInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
16
|
export default NumberInput;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { CountryCode } from './countryCodes';
|
|
2
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
2
3
|
interface PhoneNumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue"> {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
6
|
-
errorMessage?: string;
|
|
4
|
+
countryCode?: CountryCode;
|
|
5
|
+
defaultValue?: string;
|
|
7
6
|
description?: string;
|
|
8
|
-
|
|
7
|
+
errorMessage?: string;
|
|
9
8
|
inputClassName?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
labelSize?: HeadingSize;
|
|
10
11
|
name?: string;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
optional?: boolean;
|
|
13
|
+
value?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare const PhoneNumberInput: import('react').ForwardRefExoticComponent<PhoneNumberInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
16
|
export default PhoneNumberInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type PopoverPlacement = "
|
|
1
|
+
import { CSSProperties, ReactElement, ReactNode, default as React } from 'react';
|
|
2
|
+
export type PopoverPlacement = "bottom" | "left" | "right" | "top";
|
|
3
3
|
interface PopoverProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|
|
@@ -7,15 +7,15 @@ interface PopoverProps {
|
|
|
7
7
|
}
|
|
8
8
|
interface PopoverTriggerProps {
|
|
9
9
|
children: ReactElement;
|
|
10
|
-
openOn?: "hover" | "click";
|
|
11
10
|
className?: string;
|
|
11
|
+
openOn?: "click" | "hover";
|
|
12
12
|
style?: CSSProperties;
|
|
13
13
|
}
|
|
14
14
|
interface PopoverContentProps {
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
className?: string;
|
|
17
|
-
style?: CSSProperties;
|
|
18
17
|
placement?: PopoverPlacement;
|
|
18
|
+
style?: CSSProperties;
|
|
19
19
|
}
|
|
20
20
|
export declare const Popover: React.FC<PopoverProps>;
|
|
21
21
|
export declare const PopoverTrigger: React.FC<PopoverTriggerProps>;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
1
2
|
interface Option {
|
|
3
|
+
description?: string;
|
|
4
|
+
label: number | string;
|
|
2
5
|
value: string;
|
|
3
|
-
label: string | number;
|
|
4
6
|
}
|
|
5
7
|
interface RadioInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue"> {
|
|
8
|
+
defaultValue?: number | string;
|
|
9
|
+
description?: string;
|
|
10
|
+
errorMessage?: string;
|
|
6
11
|
label?: string;
|
|
7
|
-
labelSize?:
|
|
12
|
+
labelSize?: HeadingSize;
|
|
13
|
+
optional?: boolean;
|
|
8
14
|
options: Option[];
|
|
9
15
|
vertical?: boolean;
|
|
10
|
-
errorMessage?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
optional?: boolean;
|
|
13
|
-
defaultValue?: string | number;
|
|
14
16
|
}
|
|
15
17
|
export declare const RadioInput: import('react').ForwardRefExoticComponent<RadioInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
16
18
|
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
2
3
|
interface Option {
|
|
3
|
-
value: string | number;
|
|
4
4
|
label: string;
|
|
5
|
+
value: number | string;
|
|
5
6
|
}
|
|
6
7
|
interface SelectProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
-
options: Option[];
|
|
8
|
-
value?: string | number;
|
|
9
|
-
placeholder?: string;
|
|
10
8
|
className?: string;
|
|
11
|
-
|
|
12
|
-
label?: string;
|
|
13
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
errorMessage?: string;
|
|
9
|
+
defaultValue?: number | string;
|
|
16
10
|
description?: string;
|
|
17
|
-
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
labelSize?: HeadingSize;
|
|
18
14
|
optional?: boolean;
|
|
19
|
-
|
|
15
|
+
options: Option[];
|
|
16
|
+
placeholder?: string;
|
|
20
17
|
readOnly?: boolean;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
searchable?: boolean;
|
|
20
|
+
value?: number | string;
|
|
21
21
|
}
|
|
22
22
|
export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLInputElement>>;
|
|
23
23
|
export default Select;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
1
2
|
interface SliderInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
showLabel?: boolean;
|
|
5
|
-
label?: string;
|
|
6
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
7
|
-
min?: number;
|
|
8
|
-
max?: number;
|
|
9
|
-
value?: number;
|
|
3
|
+
hideInput?: boolean;
|
|
4
|
+
customLabels?: string[];
|
|
10
5
|
defaultValue?: number;
|
|
6
|
+
description?: string;
|
|
11
7
|
displayValue?: string;
|
|
12
|
-
inputSize?: "sm" | "md" | "lg";
|
|
13
|
-
format?: "currency" | "percentage" | "number";
|
|
14
8
|
errorMessage?: string;
|
|
15
|
-
|
|
16
|
-
required?: boolean;
|
|
17
|
-
optional?: boolean;
|
|
9
|
+
format?: "currency" | "number" | "percentage";
|
|
18
10
|
inputClassName?: string;
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
inputSize?: "lg" | "md" | "sm";
|
|
12
|
+
label?: string;
|
|
13
|
+
labelSize?: HeadingSize;
|
|
14
|
+
max?: number;
|
|
15
|
+
min?: number;
|
|
16
|
+
optional?: boolean;
|
|
17
|
+
prefix?: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
showLabel?: boolean;
|
|
20
|
+
suffix?: string;
|
|
21
|
+
value?: number;
|
|
21
22
|
}
|
|
22
23
|
export declare const SliderInput: import('react').ForwardRefExoticComponent<SliderInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
23
24
|
export default SliderInput;
|
|
@@ -6,6 +6,6 @@ export declare const Spinner: ({ loadingText, className, isLoading, containerCla
|
|
|
6
6
|
className?: string;
|
|
7
7
|
containerClassName?: string;
|
|
8
8
|
progressBar?: boolean;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "lg" | "md" | "sm" | "xl";
|
|
10
10
|
duration?: number;
|
|
11
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const StepContent: ({ children, step, currentStep, }: {
|
|
2
|
-
step:
|
|
3
|
-
currentStep?:
|
|
2
|
+
step: null | number | string;
|
|
3
|
+
currentStep?: null | number | string;
|
|
4
4
|
children: React.JSX.Element;
|
|
5
5
|
}) => import("react").JSX.Element | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
interface Props extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
3
|
-
item?: string | number | undefined;
|
|
4
|
-
className?: string;
|
|
5
3
|
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
item?: number | string | undefined;
|
|
6
6
|
}
|
|
7
7
|
export declare const TableCell: ({ item, children, className }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export type TextSize = "
|
|
2
|
+
export type TextSize = "2xl" | "3xl" | "5xl" | "8xl" | "lg" | "md" | "normal" | "sm" | "xs" | "xxs";
|
|
3
3
|
export interface TextProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
size?: TextSize;
|
|
6
4
|
as?: keyof React.JSX.IntrinsicElements;
|
|
5
|
+
children: React.ReactNode;
|
|
7
6
|
className?: string;
|
|
7
|
+
size?: TextSize;
|
|
8
8
|
}
|
|
9
9
|
export declare const Text: React.FC<TextProps>;
|
|
10
10
|
export default Text;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
1
2
|
interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
2
|
-
value?: string;
|
|
3
|
-
label?: string;
|
|
4
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
5
|
-
errorMessage?: string;
|
|
6
3
|
description?: string;
|
|
7
|
-
|
|
4
|
+
errorMessage?: string;
|
|
8
5
|
inputClassName?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
labelSize?: HeadingSize;
|
|
8
|
+
optional?: boolean;
|
|
9
|
+
value?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare const TextArea: import('react').ForwardRefExoticComponent<TextAreaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
11
12
|
export default TextArea;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { HeadingSize } from '../Heading/Heading';
|
|
1
2
|
interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
2
|
-
value?: string;
|
|
3
|
-
prefix?: string;
|
|
4
|
-
suffix?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
labelSize?: import('../Heading/Heading').HeadingSize;
|
|
7
|
-
errorMessage?: string;
|
|
8
3
|
description?: string;
|
|
9
|
-
|
|
4
|
+
errorMessage?: string;
|
|
10
5
|
inputClassName?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
labelSize?: HeadingSize;
|
|
8
|
+
optional?: boolean;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
suffix?: string;
|
|
11
|
+
value?: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
13
14
|
export default TextInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ToastProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
isOpen?: boolean | number;
|
|
4
|
+
message?: string;
|
|
5
|
+
messageClassName?: string;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
showProgressBar?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
titleClassName?: string;
|
|
10
|
+
type?: "default" | "error" | "info" | "success";
|
|
11
|
+
}
|
|
12
|
+
export declare const Toast: ({ className, type, message, title, titleClassName, messageClassName, isOpen, showProgressBar, onClose, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Toast;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cx(...args: ((false | null | string | undefined)[] | false | null | string | undefined)[]): string;
|