@registrucentras/rc-ses-react-components 1.3.1 → 1.4.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.
- package/README.md +3 -1
- package/dist/assets/IconProps.d.ts +4 -2
- package/dist/assets/icons/ArrowLeftIcon.d.ts +3 -0
- package/dist/assets/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/assets/icons/BarcodeIcon.d.ts +3 -0
- package/dist/assets/icons/CalendarBlankIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownFill.d.ts +2 -2
- package/dist/assets/icons/CaretDownIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftIcon.d.ts +1 -1
- package/dist/assets/icons/CaretRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CheckBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CheckCircleFillIcon.d.ts +2 -2
- package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CircleFilledIcon.d.ts +3 -0
- package/dist/assets/icons/CloseIcon.d.ts +1 -1
- package/dist/assets/icons/CollapseChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/DotCircleFilledIcon.d.ts +3 -0
- package/dist/assets/icons/ExpandChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/InfoFillIcon.d.ts +1 -1
- package/dist/assets/icons/MagnifyingGlassIcon.d.ts +2 -2
- package/dist/assets/icons/MapPinAreaIcon.d.ts +3 -0
- package/dist/assets/icons/MinusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/PlusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/QuestionFillIcon.d.ts +1 -1
- package/dist/assets/icons/QuestionIcon.d.ts +1 -1
- package/dist/assets/icons/ScalesIcon.d.ts +3 -0
- package/dist/assets/icons/ScrollIcon.d.ts +1 -1
- package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +1 -1
- package/dist/assets/icons/UploadSimpleIcon.d.ts +1 -1
- package/dist/assets/icons/WarningDiamondFillIcon.d.ts +1 -1
- package/dist/assets/icons/WarningFillIcon.d.ts +1 -1
- package/dist/assets/icons/XCircleFillIcon.d.ts +2 -2
- package/dist/components/common/Button/index.d.ts +2 -2
- package/dist/components/common/Card/index.d.ts +31 -0
- package/dist/components/common/DataPagination/components/PaginationButton.d.ts +8 -0
- package/dist/components/common/DataPagination/index.d.ts +10 -0
- package/dist/components/layout/ServiceFormContainer/utils.d.ts +4 -0
- package/dist/components/layout/ServiceWizardStepper/StepConnector.d.ts +7 -0
- package/dist/components/layout/ServiceWizardStepper/StepperTypes.d.ts +7 -0
- package/dist/components/layout/ServiceWizardStepper/components/CustomStepIcon.d.ts +3 -0
- package/dist/components/layout/ServiceWizardStepper/components/DesktopStepper.d.ts +9 -0
- package/dist/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.d.ts +6 -0
- package/dist/components/layout/ServiceWizardStepper/components/MobileStepper.d.ts +8 -0
- package/dist/components/layout/ServiceWizardStepper/components/StyledStepLabel.d.ts +11 -0
- package/dist/components/layout/ServiceWizardStepper/index.d.ts +6 -5
- package/dist/library/icons.d.ts +27 -3
- package/dist/library/index.d.ts +6 -2
- package/dist/registrucentras-rc-ses-react-components.cjs +12 -12
- package/dist/registrucentras-rc-ses-react-components.js +3882 -2672
- package/dist/stories/ServiceWizardStepper.stories.d.ts +7 -0
- package/dist/stories/components/Accordion.stories.d.ts +2 -2
- package/dist/stories/components/Card.stories.d.ts +24 -0
- package/dist/stories/components/DataPagination.stories.d.ts +47 -0
- package/dist/stories/components/Icons.stories.d.ts +6 -0
- package/dist/stories/components/buttons/Button.stories.d.ts +10 -0
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +2 -2
- package/dist/stories/components/inputs/Checkbox.stories.d.ts +2 -2
- package/dist/stories/components/inputs/FileUpload.stories.d.ts +2 -2
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +2 -2
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +60 -60
- package/dist/stories/components/inputs/Select.stories.d.ts +126 -126
- package/dist/stories/components/inputs/TextField.stories.d.ts +113 -113
- package/dist/theme/light/MuiPagination.d.ts +2 -1
- package/package.json +2 -1
- package/src/App.tsx +8 -0
- package/src/assets/IconProps.ts +5 -2
- package/src/assets/icons/ArrowLeftIcon.tsx +16 -0
- package/src/assets/icons/ArrowRightIcon.tsx +8 -13
- package/src/assets/icons/BarcodeIcon.tsx +9 -0
- package/src/assets/icons/CalendarBlankIcon.tsx +4 -16
- package/src/assets/icons/CaretDoubleLeftBoldIcon.tsx +14 -12
- package/src/assets/icons/CaretDoubleRightBoldIcon.tsx +14 -12
- package/src/assets/icons/CaretDownBoldIcon.tsx +9 -12
- package/src/assets/icons/CaretDownFill.tsx +11 -10
- package/src/assets/icons/CaretDownIcon.tsx +4 -16
- package/src/assets/icons/CaretLeftBoldIcon.tsx +9 -12
- package/src/assets/icons/CaretLeftIcon.tsx +4 -16
- package/src/assets/icons/CaretRightBoldIcon.tsx +9 -12
- package/src/assets/icons/CheckBoldIcon.tsx +9 -24
- package/src/assets/icons/CheckCircleFillIcon.tsx +10 -14
- package/src/assets/icons/CheckUncheckedBoldIcon.tsx +4 -23
- package/src/assets/icons/CircleFilledIcon.tsx +11 -0
- package/src/assets/icons/CloseIcon.tsx +4 -16
- package/src/assets/icons/CollapseChevronsIcon.tsx +9 -13
- package/src/assets/icons/DotCircleFilledIcon.tsx +23 -0
- package/src/assets/icons/ExpandChevronsIcon.tsx +9 -13
- package/src/assets/icons/InfoFillIcon.tsx +4 -14
- package/src/assets/icons/MagnifyingGlassIcon.tsx +5 -12
- package/src/assets/icons/MapPinAreaIcon.tsx +9 -0
- package/src/assets/icons/MinusBoldIcon.tsx +4 -14
- package/src/assets/icons/PlusBoldIcon.tsx +4 -14
- package/src/assets/icons/QuestionFillIcon.tsx +9 -13
- package/src/assets/icons/QuestionIcon.tsx +4 -16
- package/src/assets/icons/ScalesIcon.tsx +9 -0
- package/src/assets/icons/ScrollIcon.tsx +4 -16
- package/src/assets/icons/SpinnerGapBoldIcon.tsx +9 -12
- package/src/assets/icons/UploadSimpleIcon.tsx +4 -16
- package/src/assets/icons/WarningDiamondFillIcon.tsx +9 -13
- package/src/assets/icons/WarningFillIcon.tsx +9 -13
- package/src/assets/icons/XCircleFillIcon.tsx +11 -10
- package/src/components/common/Button/index.tsx +34 -3
- package/src/components/common/Card/index.test.tsx +136 -0
- package/src/components/common/Card/index.tsx +231 -0
- package/src/components/common/DataPagination/components/PaginationButton.tsx +63 -0
- package/src/components/common/DataPagination/index.test.tsx +122 -0
- package/src/components/common/DataPagination/index.tsx +70 -0
- package/src/components/form/inputs/CheckboxFormControl.tsx +1 -11
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +1 -1
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +3 -4
- package/src/components/layout/ServiceFormContainer/index.tsx +5 -1
- package/src/components/layout/ServiceFormContainer/utils.ts +12 -0
- package/src/components/layout/ServiceWizardStepper/ServiceWizardStepper.css +69 -0
- package/src/components/layout/ServiceWizardStepper/StepConnector.tsx +29 -0
- package/src/components/layout/ServiceWizardStepper/StepperTypes.ts +7 -0
- package/src/components/layout/ServiceWizardStepper/components/CustomStepIcon.test.tsx +22 -0
- package/src/components/layout/ServiceWizardStepper/components/CustomStepIcon.tsx +41 -0
- package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.test.tsx +40 -0
- package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.tsx +48 -0
- package/src/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.test.tsx +24 -0
- package/src/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.tsx +46 -0
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.test.tsx +21 -0
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.tsx +54 -0
- package/src/components/layout/ServiceWizardStepper/components/StyledStepLabel.tsx +53 -0
- package/src/components/layout/ServiceWizardStepper/index.tsx +56 -37
- package/src/examples/HorizontalMultiStepForm/index.tsx +64 -0
- package/src/examples/ListWithPagination/index.tsx +44 -0
- package/src/library/icons.ts +51 -4
- package/src/library/index.ts +6 -2
- package/src/main.tsx +10 -0
- package/src/stories/ServiceWizardStepper.stories.tsx +39 -0
- package/src/stories/components/Card.stories.tsx +51 -0
- package/src/stories/components/Card.test.tsx +18 -0
- package/src/stories/components/DataPagination.stories.tsx +75 -0
- package/src/stories/components/Icons.stories.tsx +352 -0
- package/src/stories/components/buttons/Button.stories.tsx +30 -0
- package/src/theme/light/MuiAlert.tsx +10 -10
- package/src/theme/light/MuiButton.tsx +42 -15
- package/src/theme/light/MuiCard.tsx +2 -2
- package/src/theme/light/MuiPagination.ts +40 -12
- package/src/theme/light/index.tsx +2 -1
- package/src/types/buttons/ButtonProps.tsx +3 -1
- package/dist/assets/icons/CheckBoldDisabledIcon.d.ts +0 -3
- package/dist/components/layout/ServiceWizardStepper/components/ActiveStepIcon.d.ts +0 -2
- package/dist/components/layout/ServiceWizardStepper/components/CompletedStepIcon.d.ts +0 -2
- package/dist/components/layout/ServiceWizardStepper/components/PendingStepIcon.d.ts +0 -2
- package/src/assets/icons/CheckBoldDisabledIcon.tsx +0 -32
- package/src/components/layout/ServiceWizardStepper/components/ActiveStepIcon.tsx +0 -15
- package/src/components/layout/ServiceWizardStepper/components/CompletedStepIcon.tsx +0 -19
- package/src/components/layout/ServiceWizardStepper/components/PendingStepIcon.tsx +0 -15
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as ServiceWizardStepper } from '../components/layout/ServiceWizardStepper';
|
|
3
|
+
declare const meta: Meta<typeof ServiceWizardStepper>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ServiceWizardStepper>;
|
|
6
|
+
export declare const Horizontal: Story;
|
|
7
|
+
export declare const Vertical: Story;
|
|
@@ -22,9 +22,9 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, {
|
|
|
22
22
|
children?: React.ReactElement<any, any>;
|
|
23
23
|
}>;
|
|
24
24
|
TransitionProps?: TransitionProps;
|
|
25
|
-
} & AccordionSlotsAndSlotProps & Omit< PaperOwnProps, "
|
|
25
|
+
} & AccordionSlotsAndSlotProps & Omit< PaperOwnProps, "onChange" | "classes"> & CommonProps & Omit<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
26
|
ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
-
},
|
|
27
|
+
}, "elevation" | "children" | "onChange" | "square" | keyof CommonProps | "sx" | "variant" | "defaultExpanded" | "disabled" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof AccordionSlotsAndSlotProps> & {
|
|
28
28
|
id: string;
|
|
29
29
|
controller: ReturnType<typeof useAccordionController>;
|
|
30
30
|
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Meta, ReactRenderer } from '@storybook/react';
|
|
2
|
+
import { default as RcSesCard, RcSesCardTestIds } from '../../components/common/Card';
|
|
3
|
+
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
|
+
import { CardProps, StackProps, BoxProps, TypographyProps } from '@mui/material';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
declare const meta: Meta<typeof RcSesCard>;
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const Main: AnnotatedStoryFn<ReactRenderer, Omit< CardProps, "children" | "title"> & {
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
leadingActions?: ReactNode;
|
|
13
|
+
trailingActions?: ReactNode;
|
|
14
|
+
testIds?: RcSesCardTestIds;
|
|
15
|
+
slotProps?: {
|
|
16
|
+
actions?: StackProps;
|
|
17
|
+
content?: BoxProps;
|
|
18
|
+
description?: TypographyProps;
|
|
19
|
+
header?: StackProps;
|
|
20
|
+
leadingActions?: StackProps;
|
|
21
|
+
title?: TypographyProps;
|
|
22
|
+
trailingActions?: StackProps;
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { DataPaginationProps } from '../../components/common/DataPagination';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ count, page, defaultPage, onChange, prevLabel, nextLabel, }: DataPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
args: {
|
|
8
|
+
count: number;
|
|
9
|
+
defaultPage: number;
|
|
10
|
+
prevLabel: string;
|
|
11
|
+
nextLabel: string;
|
|
12
|
+
};
|
|
13
|
+
argTypes: {
|
|
14
|
+
count: {
|
|
15
|
+
control: {
|
|
16
|
+
type: "number";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
defaultPage: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "number";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
page: {
|
|
25
|
+
control: {
|
|
26
|
+
type: "number";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
onChange: {
|
|
30
|
+
action: string;
|
|
31
|
+
};
|
|
32
|
+
prevLabel: {
|
|
33
|
+
control: {
|
|
34
|
+
type: "text";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
nextLabel: {
|
|
38
|
+
control: {
|
|
39
|
+
type: "text";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default meta;
|
|
45
|
+
type Story = StoryObj<typeof meta>;
|
|
46
|
+
export declare const Uncontrolled: Story;
|
|
47
|
+
export declare const Controlled: Story;
|
|
@@ -40,6 +40,14 @@ declare const meta: {
|
|
|
40
40
|
defaultValue: {};
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
+
iconOnly: {
|
|
44
|
+
control: {
|
|
45
|
+
type: "boolean";
|
|
46
|
+
};
|
|
47
|
+
table: {
|
|
48
|
+
defaultValue: {};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
43
51
|
};
|
|
44
52
|
tags: string[];
|
|
45
53
|
args: {
|
|
@@ -52,9 +60,11 @@ type Story = StoryObj<typeof meta>;
|
|
|
52
60
|
export declare const PrimaryContained: Story;
|
|
53
61
|
export declare const PrimaryContainedWithPrefixIcon: Story;
|
|
54
62
|
export declare const PrimaryContainedWithSuffixIcon: Story;
|
|
63
|
+
export declare const PrimaryContainedIconOnly: Story;
|
|
55
64
|
export declare const PrimaryOutlined: Story;
|
|
56
65
|
export declare const PrimaryOutlinedWithPrefixIcon: Story;
|
|
57
66
|
export declare const PrimaryOutlinedWithSuffixIcon: Story;
|
|
67
|
+
export declare const PrimaryOutlinedIconOnly: Story;
|
|
58
68
|
export declare const SecondaryContained: Story;
|
|
59
69
|
export declare const SecondaryOutlined: Story;
|
|
60
70
|
export declare const GreyContained: Story;
|
|
@@ -13,13 +13,13 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
13
13
|
defaultValue?: any;
|
|
14
14
|
control?: Control<any> | undefined;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
-
}, "rules" | "control"> & Pick< CheckboxProps, "
|
|
16
|
+
}, "rules" | "control"> & Pick< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
17
17
|
id?: string;
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
loading?: boolean;
|
|
20
20
|
variant?: "flat" | "outlined";
|
|
21
21
|
slotProps?: {
|
|
22
|
-
field?: Partial<Omit< CheckboxProps, "
|
|
22
|
+
field?: Partial<Omit< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled">>;
|
|
23
23
|
label?: Partial< FormControlLabelProps>;
|
|
24
24
|
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
25
25
|
};
|
|
@@ -13,13 +13,13 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
13
13
|
defaultValue?: any;
|
|
14
14
|
control?: Control<any> | undefined;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
-
}, "rules" | "control"> & Pick< CheckboxProps, "
|
|
16
|
+
}, "rules" | "control"> & Pick< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
17
17
|
id?: string;
|
|
18
18
|
children: React.ReactNode;
|
|
19
19
|
loading?: boolean;
|
|
20
20
|
variant?: "flat" | "outlined";
|
|
21
21
|
slotProps?: {
|
|
22
|
-
field?: Partial<Omit< CheckboxProps, "
|
|
22
|
+
field?: Partial<Omit< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled">>;
|
|
23
23
|
label?: Partial< FormControlLabelProps>;
|
|
24
24
|
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
25
25
|
};
|
|
@@ -13,7 +13,7 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
13
13
|
defaultValue?: any;
|
|
14
14
|
control?: Control<any> | undefined;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
-
}, "rules" | "control"> & Pick< InputHTMLAttributes<HTMLInputElement>, "
|
|
16
|
+
}, "rules" | "control"> & Pick< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
17
17
|
id?: string;
|
|
18
18
|
slotProps?: {
|
|
19
19
|
controller?: Partial<Omit<{
|
|
@@ -24,7 +24,7 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
24
24
|
control?: Control<any> | undefined;
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
}, "rules" | "control">>;
|
|
27
|
-
field?: Partial<Omit< InputHTMLAttributes<HTMLInputElement>, "
|
|
27
|
+
field?: Partial<Omit< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled">>;
|
|
28
28
|
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
29
29
|
};
|
|
30
30
|
}>;
|
|
@@ -13,7 +13,7 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
13
13
|
defaultValue?: any;
|
|
14
14
|
control?: Control<any> | undefined;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
-
}, "rules" | "control"> & Pick< OutlinedInputProps, "
|
|
16
|
+
}, "rules" | "control"> & Pick< OutlinedInputProps, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
17
17
|
id?: string;
|
|
18
18
|
displayStepperControls?: boolean;
|
|
19
19
|
min?: string | number;
|
|
@@ -28,7 +28,7 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
28
28
|
control?: Control<any> | undefined;
|
|
29
29
|
disabled?: boolean;
|
|
30
30
|
}, "rules" | "control">>;
|
|
31
|
-
field?: Partial<Omit< OutlinedInputProps, "
|
|
31
|
+
field?: Partial<Omit< OutlinedInputProps, "name" | "onBlur" | "onChange" | "disabled">>;
|
|
32
32
|
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
33
33
|
};
|
|
34
34
|
}>;
|
|
@@ -3,10 +3,10 @@ import { default as RcSesSearchableField } from '../../../components/form/inputs
|
|
|
3
3
|
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
4
|
import { RegisterOptions, Control } from 'react-hook-form';
|
|
5
5
|
import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
|
|
6
|
-
import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject,
|
|
7
|
-
import { TextFieldClasses, Theme, TextFieldPropsColorOverrides, TextFieldPropsSizeOverrides, InputBaseComponentProps, OutlinedInputProps, FormHelperTextProps, InputLabelProps, SelectProps } from '@mui/material';
|
|
8
|
-
import { SxProps } from '@mui/system';
|
|
6
|
+
import { DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject, HTMLInputTypeAttribute, AriaRole, ReactNode, ClipboardEventHandler, CompositionEventHandler, FocusEventHandler, ChangeEventHandler, FormEventHandler, ReactEventHandler, KeyboardEventHandler, MouseEventHandler, DragEventHandler, TouchEventHandler, PointerEventHandler, UIEventHandler, WheelEventHandler, AnimationEventHandler, TransitionEventHandler, Key, RefAttributes } from 'react';
|
|
9
7
|
import { OverridableStringUnion } from '@mui/types';
|
|
8
|
+
import { TextFieldPropsSizeOverrides, TextFieldPropsColorOverrides, TextFieldClasses, Theme, InputBaseComponentProps, OutlinedInputProps, FormHelperTextProps, InputLabelProps, SelectProps } from '@mui/material';
|
|
9
|
+
import { SxProps } from '@mui/system';
|
|
10
10
|
declare const meta: Meta<typeof RcSesSearchableField>;
|
|
11
11
|
export default meta;
|
|
12
12
|
export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
@@ -16,7 +16,7 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
16
16
|
defaultValue?: any;
|
|
17
17
|
control?: Control<any> | undefined;
|
|
18
18
|
disabled?: boolean;
|
|
19
|
-
}, "
|
|
19
|
+
}, "name" | "disabled" | "rules" | "control"> & Pick< RcSesFormControlWrapperProps, "id" | "label" | "errors"> & {
|
|
20
20
|
ModalComponent: React.JSXElementConstructor<{
|
|
21
21
|
open: boolean;
|
|
22
22
|
onSubmit: (value: string) => void;
|
|
@@ -30,65 +30,20 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
30
30
|
defaultValue?: any;
|
|
31
31
|
control?: Control<any> | undefined;
|
|
32
32
|
disabled?: boolean;
|
|
33
|
-
}, "
|
|
33
|
+
}, "name" | "disabled" | "rules" | "control">>;
|
|
34
34
|
field?: Partial<{
|
|
35
35
|
ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
|
|
36
36
|
className?: string | undefined;
|
|
37
|
-
|
|
38
|
-
classes?: Partial< TextFieldClasses> | undefined;
|
|
39
|
-
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
40
|
-
children?: ReactNode | Iterable< ReactNode>;
|
|
41
|
-
sx?: SxProps<Theme> | undefined;
|
|
42
|
-
label?: ReactNode;
|
|
43
|
-
slot?: string | undefined | undefined;
|
|
44
|
-
select?: boolean | undefined;
|
|
45
|
-
title?: string | undefined | undefined;
|
|
46
|
-
key?: Key | null | undefined;
|
|
47
|
-
defaultChecked?: boolean | undefined | undefined;
|
|
48
|
-
defaultValue?: unknown;
|
|
49
|
-
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
37
|
+
size?: OverridableStringUnion<"small" | "medium", TextFieldPropsSizeOverrides> | undefined;
|
|
50
38
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
51
|
-
|
|
52
|
-
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
53
|
-
autoFocus?: boolean | undefined;
|
|
54
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
55
|
-
contextMenu?: string | undefined | undefined;
|
|
56
|
-
dir?: string | undefined | undefined;
|
|
57
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
58
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
59
|
-
hidden?: boolean | undefined | undefined;
|
|
39
|
+
color?: OverridableStringUnion<"primary" | "secondary" | "error" | "info" | "success" | "warning", TextFieldPropsColorOverrides> | undefined;
|
|
60
40
|
id?: string | undefined;
|
|
61
41
|
lang?: string | undefined | undefined;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
translate?: "yes" | "no" | undefined | undefined;
|
|
66
|
-
radioGroup?: string | undefined | undefined;
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
style?: React.CSSProperties | undefined;
|
|
44
|
+
type?: HTMLInputTypeAttribute | undefined;
|
|
67
45
|
role?: AriaRole | undefined;
|
|
68
|
-
|
|
69
|
-
content?: string | undefined | undefined;
|
|
70
|
-
datatype?: string | undefined | undefined;
|
|
71
|
-
inlist?: any;
|
|
72
|
-
prefix?: string | undefined | undefined;
|
|
73
|
-
property?: string | undefined | undefined;
|
|
74
|
-
rel?: string | undefined | undefined;
|
|
75
|
-
resource?: string | undefined | undefined;
|
|
76
|
-
rev?: string | undefined | undefined;
|
|
77
|
-
typeof?: string | undefined | undefined;
|
|
78
|
-
vocab?: string | undefined | undefined;
|
|
79
|
-
autoCorrect?: string | undefined | undefined;
|
|
80
|
-
autoSave?: string | undefined | undefined;
|
|
81
|
-
color?: OverridableStringUnion<"primary" | "secondary" | "error" | "info" | "success" | "warning", TextFieldPropsColorOverrides> | undefined;
|
|
82
|
-
itemProp?: string | undefined | undefined;
|
|
83
|
-
itemScope?: boolean | undefined | undefined;
|
|
84
|
-
itemType?: string | undefined | undefined;
|
|
85
|
-
itemID?: string | undefined | undefined;
|
|
86
|
-
itemRef?: string | undefined | undefined;
|
|
87
|
-
results?: number | undefined | undefined;
|
|
88
|
-
security?: string | undefined | undefined;
|
|
89
|
-
unselectable?: "on" | "off" | undefined | undefined;
|
|
90
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
91
|
-
is?: string | undefined | undefined;
|
|
46
|
+
tabIndex?: number | undefined | undefined;
|
|
92
47
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
93
48
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
94
49
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -142,6 +97,7 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
142
97
|
"aria-valuemin"?: number | undefined | undefined;
|
|
143
98
|
"aria-valuenow"?: number | undefined | undefined;
|
|
144
99
|
"aria-valuetext"?: string | undefined | undefined;
|
|
100
|
+
children?: ReactNode | Iterable< ReactNode>;
|
|
145
101
|
dangerouslySetInnerHTML?: {
|
|
146
102
|
__html: string | TrustedHTML;
|
|
147
103
|
} | undefined | undefined;
|
|
@@ -161,6 +117,7 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
161
117
|
onFocusCapture?: FocusEventHandler<HTMLDivElement> | undefined;
|
|
162
118
|
onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
163
119
|
onBlurCapture?: FocusEventHandler<HTMLDivElement> | undefined;
|
|
120
|
+
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
164
121
|
onChangeCapture?: FormEventHandler<HTMLDivElement> | undefined;
|
|
165
122
|
onBeforeInput?: FormEventHandler<HTMLDivElement> | undefined;
|
|
166
123
|
onBeforeInputCapture?: FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -304,15 +261,58 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
304
261
|
onAnimationIterationCapture?: AnimationEventHandler<HTMLDivElement> | undefined;
|
|
305
262
|
onTransitionEnd?: TransitionEventHandler<HTMLDivElement> | undefined;
|
|
306
263
|
onTransitionEndCapture?: TransitionEventHandler<HTMLDivElement> | undefined;
|
|
264
|
+
key?: Key | null | undefined;
|
|
265
|
+
label?: ReactNode;
|
|
266
|
+
slot?: string | undefined | undefined;
|
|
267
|
+
select?: boolean | undefined;
|
|
268
|
+
title?: string | undefined | undefined;
|
|
269
|
+
classes?: Partial< TextFieldClasses> | undefined;
|
|
270
|
+
sx?: SxProps<Theme> | undefined;
|
|
271
|
+
defaultChecked?: boolean | undefined | undefined;
|
|
272
|
+
defaultValue?: unknown;
|
|
273
|
+
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
274
|
+
accessKey?: string | undefined | undefined;
|
|
275
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
276
|
+
autoFocus?: boolean | undefined;
|
|
277
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
278
|
+
contextMenu?: string | undefined | undefined;
|
|
279
|
+
dir?: string | undefined | undefined;
|
|
280
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
281
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
282
|
+
hidden?: boolean | undefined | undefined;
|
|
283
|
+
nonce?: string | undefined | undefined;
|
|
284
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
285
|
+
translate?: "yes" | "no" | undefined | undefined;
|
|
286
|
+
radioGroup?: string | undefined | undefined;
|
|
287
|
+
about?: string | undefined | undefined;
|
|
288
|
+
content?: string | undefined | undefined;
|
|
289
|
+
datatype?: string | undefined | undefined;
|
|
290
|
+
inlist?: any;
|
|
291
|
+
prefix?: string | undefined | undefined;
|
|
292
|
+
property?: string | undefined | undefined;
|
|
293
|
+
rel?: string | undefined | undefined;
|
|
294
|
+
resource?: string | undefined | undefined;
|
|
295
|
+
rev?: string | undefined | undefined;
|
|
296
|
+
typeof?: string | undefined | undefined;
|
|
297
|
+
vocab?: string | undefined | undefined;
|
|
298
|
+
autoCorrect?: string | undefined | undefined;
|
|
299
|
+
autoSave?: string | undefined | undefined;
|
|
300
|
+
itemProp?: string | undefined | undefined;
|
|
301
|
+
itemScope?: boolean | undefined | undefined;
|
|
302
|
+
itemType?: string | undefined | undefined;
|
|
303
|
+
itemID?: string | undefined | undefined;
|
|
304
|
+
itemRef?: string | undefined | undefined;
|
|
305
|
+
results?: number | undefined | undefined;
|
|
306
|
+
security?: string | undefined | undefined;
|
|
307
|
+
unselectable?: "on" | "off" | undefined | undefined;
|
|
308
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
309
|
+
is?: string | undefined | undefined;
|
|
307
310
|
margin?: "dense" | "normal" | "none" | undefined;
|
|
308
311
|
disabled?: boolean | undefined;
|
|
309
|
-
name?: string | undefined;
|
|
310
|
-
type?: HTMLInputTypeAttribute | undefined;
|
|
311
312
|
value?: unknown;
|
|
312
313
|
autoComplete?: string | undefined;
|
|
313
314
|
placeholder?: string | undefined;
|
|
314
315
|
required?: boolean | undefined;
|
|
315
|
-
size?: OverridableStringUnion<"small" | "medium", TextFieldPropsSizeOverrides> | undefined;
|
|
316
316
|
rows?: string | number | undefined;
|
|
317
317
|
component?: React.ElementType | undefined;
|
|
318
318
|
error?: boolean | undefined;
|
|
@@ -330,6 +330,6 @@ export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
|
|
|
330
330
|
InputLabelProps?: Partial< InputLabelProps> | undefined;
|
|
331
331
|
SelectProps?: Partial< SelectProps> | undefined;
|
|
332
332
|
}>;
|
|
333
|
-
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "
|
|
333
|
+
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "id" | "label" | "errors">>;
|
|
334
334
|
};
|
|
335
335
|
} & RefAttributes<HTMLInputElement>>;
|