@registrucentras/rc-ses-react-components 1.6.4 → 1.6.6
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/assets/IconProps.d.ts +2 -0
- package/dist/assets/icons/ArrowsClockwiseIcon.d.ts +3 -0
- package/dist/assets/icons/CheckIcon.d.ts +3 -0
- package/dist/assets/icons/PencilSimpleLineIcon.d.ts +3 -0
- package/dist/components/common/Card/index.d.ts +4 -1
- package/dist/components/form/inputs/SearchInput/index.d.ts +27 -0
- package/dist/components/form/inputs/Select/Select.types.d.ts +5 -0
- package/dist/components/form/inputs/Select/hooks/useFilteredOptions.d.ts +3 -0
- package/dist/components/form/inputs/Select/hooks/useSelectAllLogic.d.ts +7 -0
- package/dist/components/form/inputs/{Select.d.ts → Select/index.d.ts} +12 -12
- package/dist/library/icons.d.ts +3 -1
- package/dist/library/index.d.ts +2 -0
- package/dist/registrucentras-rc-ses-react-components.cjs +11 -11
- package/dist/registrucentras-rc-ses-react-components.js +3346 -2752
- package/dist/stories/components/display/Card.stories.d.ts +6 -47
- package/dist/stories/components/display/ImageCard.stories.d.ts +6 -6
- package/dist/stories/components/feedback/Alert.stories.d.ts +7 -16
- package/dist/stories/components/form/CardFormContainer.stories.d.ts +5 -5
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +3 -23
- package/dist/stories/components/form/ServiceFormActions.stories.d.ts +3 -9
- package/dist/stories/components/icons/Icons.stories.d.ts +3 -2
- package/dist/stories/components/inputs/FileDropzone.stories.d.ts +3 -29
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +3 -31
- package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +4 -32
- package/dist/stories/components/inputs/SearchInput.stories.d.ts +11 -0
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +3 -332
- package/dist/stories/components/inputs/Select.stories.d.ts +4 -871
- package/dist/stories/components/inputs/TextField.stories.d.ts +3 -610
- package/dist/stories/components/layout/Footer.stories.d.ts +3 -5
- package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +4 -6
- package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +5 -5
- package/dist/theme/light/MuiOutlinedInput.d.ts +3 -0
- package/package.json +1 -1
- package/src/assets/IconProps.ts +2 -0
- package/src/assets/icons/ArrowsClockwiseIcon.tsx +16 -0
- package/src/assets/icons/CheckIcon.tsx +23 -0
- package/src/assets/icons/PencilSimpleLineIcon.tsx +17 -0
- package/src/components/common/Card/index.test.tsx +8 -0
- package/src/components/common/Card/index.tsx +64 -25
- package/src/components/common/SelectableCardList/index.tsx +2 -1
- package/src/components/form/components/FormControlWrapper/index.tsx +6 -1
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +11 -3
- package/src/components/form/inputs/SearchInput/index.test.tsx +203 -0
- package/src/components/form/inputs/SearchInput/index.tsx +282 -0
- package/src/components/form/inputs/Select/Select.types.ts +5 -0
- package/src/components/form/inputs/Select/hooks/useFilteredOptions.ts +18 -0
- package/src/components/form/inputs/Select/hooks/useSelectAllLogic.ts +22 -0
- package/src/components/form/inputs/Select/index.tsx +494 -0
- package/src/i18n/namespaces/input/en.json +5 -0
- package/src/i18n/namespaces/input/lt.json +5 -0
- package/src/library/icons.ts +4 -0
- package/src/library/index.ts +2 -0
- package/src/stories/components/display/Card.stories.tsx +64 -47
- package/src/stories/components/display/ImageCard.stories.tsx +29 -27
- package/src/stories/components/feedback/Alert.stories.tsx +59 -50
- package/src/stories/components/form/CardFormContainer.stories.tsx +77 -63
- package/src/stories/components/form/CheckboxFormControl.stories.tsx +29 -71
- package/src/stories/components/form/ServiceFormActions.stories.tsx +18 -21
- package/src/stories/components/form/ServiceFormContainer.stories.tsx +1 -1
- package/src/stories/components/icons/Icons.stories.tsx +6 -2
- package/src/stories/components/inputs/FileDropzone.stories.tsx +17 -34
- package/src/stories/components/inputs/NumberStepper.stories.tsx +32 -60
- package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +22 -20
- package/src/stories/components/inputs/SearchInput.stories.tsx +134 -0
- package/src/stories/components/inputs/SearchableField.stories.tsx +16 -14
- package/src/stories/components/inputs/Select.stories.tsx +245 -13
- package/src/stories/components/inputs/TextField.stories.tsx +47 -47
- package/src/stories/components/layout/Footer.stories.tsx +6 -6
- package/src/stories/components/navigation/Breadcrumbs.stories.tsx +6 -8
- package/src/stories/components/navigation/ServiceWizardStepper.stories.tsx +29 -22
- package/src/theme/light/MuiAutocomplete.ts +52 -3
- package/src/theme/light/MuiOutlinedInput.ts +15 -0
- package/src/theme/light/index.tsx +2 -0
- package/src/components/form/inputs/Select.tsx +0 -152
|
@@ -1,49 +1,8 @@
|
|
|
1
|
-
import { Meta,
|
|
2
|
-
import { default as RcSesCard
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
|
-
import { CardProps, StackProps, BoxProps, TypographyProps } from '@mui/material';
|
|
5
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as RcSesCard } from '../../../components/common/Card';
|
|
6
3
|
declare const meta: Meta<typeof RcSesCard>;
|
|
7
4
|
export default meta;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
centered?: boolean;
|
|
13
|
-
contentBackground?: boolean;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
leadingActions?: ReactNode;
|
|
16
|
-
trailingActions?: ReactNode;
|
|
17
|
-
testIds?: RcSesCardTestIds;
|
|
18
|
-
slotProps?: {
|
|
19
|
-
actions?: StackProps;
|
|
20
|
-
content?: BoxProps;
|
|
21
|
-
description?: TypographyProps;
|
|
22
|
-
header?: StackProps;
|
|
23
|
-
image?: BoxProps;
|
|
24
|
-
leadingActions?: StackProps;
|
|
25
|
-
title?: TypographyProps;
|
|
26
|
-
trailingActions?: StackProps;
|
|
27
|
-
};
|
|
28
|
-
}>;
|
|
29
|
-
export declare const WithImage: AnnotatedStoryFn<ReactRenderer, Omit< CardProps, "children" | "title"> & {
|
|
30
|
-
title: ReactNode;
|
|
31
|
-
description?: ReactNode;
|
|
32
|
-
image?: ReactNode;
|
|
33
|
-
centered?: boolean;
|
|
34
|
-
contentBackground?: boolean;
|
|
35
|
-
children?: ReactNode;
|
|
36
|
-
leadingActions?: ReactNode;
|
|
37
|
-
trailingActions?: ReactNode;
|
|
38
|
-
testIds?: RcSesCardTestIds;
|
|
39
|
-
slotProps?: {
|
|
40
|
-
actions?: StackProps;
|
|
41
|
-
content?: BoxProps;
|
|
42
|
-
description?: TypographyProps;
|
|
43
|
-
header?: StackProps;
|
|
44
|
-
image?: BoxProps;
|
|
45
|
-
leadingActions?: StackProps;
|
|
46
|
-
title?: TypographyProps;
|
|
47
|
-
trailingActions?: StackProps;
|
|
48
|
-
};
|
|
49
|
-
}>;
|
|
5
|
+
type Story = StoryObj<typeof RcSesCard>;
|
|
6
|
+
export declare const Main: Story;
|
|
7
|
+
export declare const WithHeaderAction: Story;
|
|
8
|
+
export declare const WithImage: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Meta,
|
|
2
|
-
import { default as RcSesImageCard
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as RcSesImageCard } from '../../../components/common/ImageCard';
|
|
4
3
|
declare const meta: Meta<typeof RcSesImageCard>;
|
|
5
4
|
export default meta;
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
5
|
+
type Story = StoryObj<typeof RcSesImageCard>;
|
|
6
|
+
export declare const Main: Story;
|
|
7
|
+
export declare const WithoutButton: Story;
|
|
8
|
+
export declare const OutlinedButton: Story;
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as RcSesAlert } from '../../../components/common/Alert';
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
|
-
import { AlertProps, ContainerProps } from '@mui/material';
|
|
5
3
|
declare const meta: Meta<typeof RcSesAlert>;
|
|
6
4
|
export default meta;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const Filled: AnnotatedStoryFn<ReactRenderer, AlertProps & {
|
|
14
|
-
container?: boolean | ContainerProps;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const Standard: AnnotatedStoryFn<ReactRenderer, AlertProps & {
|
|
17
|
-
container?: boolean | ContainerProps;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const WithContainer: StoryFn<typeof RcSesAlert>;
|
|
5
|
+
type Story = StoryObj<typeof RcSesAlert>;
|
|
6
|
+
export declare const Main: Story;
|
|
7
|
+
export declare const Outlined: Story;
|
|
8
|
+
export declare const Filled: Story;
|
|
9
|
+
export declare const Standard: Story;
|
|
10
|
+
export declare const WithContainer: Story;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Meta,
|
|
2
|
-
import { default as RcSesCardFormContainer
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as RcSesCardFormContainer } from '../../../components/layout/ServiceFormContainer/CardFormContainer';
|
|
4
3
|
declare const meta: Meta<typeof RcSesCardFormContainer>;
|
|
5
4
|
export default meta;
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
5
|
+
type Story = StoryObj<typeof RcSesCardFormContainer>;
|
|
6
|
+
export declare const HorizontalDemo: Story;
|
|
7
|
+
export declare const VerticalDemo: Story;
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as RcSesCheckboxFormControl } from '../../../components/form/inputs/CheckboxFormControl';
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
|
-
import { RegisterOptions, Control } from 'react-hook-form';
|
|
5
|
-
import { CheckboxProps, FormControlLabelProps } from '@mui/material';
|
|
6
|
-
import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
|
|
7
3
|
declare const meta: Meta<typeof RcSesCheckboxFormControl>;
|
|
8
4
|
export default meta;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
12
|
-
shouldUnregister?: boolean;
|
|
13
|
-
defaultValue?: any;
|
|
14
|
-
control?: Control<any> | undefined;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
}, "rules" | "control"> & Pick< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
17
|
-
id?: string;
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
loading?: boolean;
|
|
20
|
-
variant?: "flat" | "outlined";
|
|
21
|
-
slotProps?: {
|
|
22
|
-
field?: Partial<Omit< CheckboxProps, "name" | "onBlur" | "onChange" | "disabled">>;
|
|
23
|
-
label?: Partial< FormControlLabelProps>;
|
|
24
|
-
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
25
|
-
};
|
|
26
|
-
}>;
|
|
5
|
+
type Story = StoryObj<typeof RcSesCheckboxFormControl>;
|
|
6
|
+
export declare const Main: Story;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as RcSesServiceFormActions } from '../../../components/layout/ServiceFormActions';
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
3
|
declare const meta: Meta<typeof RcSesServiceFormActions>;
|
|
5
4
|
export default meta;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
onSaveDraft: () => void;
|
|
9
|
-
onSubmit: () => void;
|
|
10
|
-
draftDisabled?: boolean;
|
|
11
|
-
submitDisabled?: boolean;
|
|
12
|
-
}>;
|
|
5
|
+
type Story = StoryObj<typeof RcSesServiceFormActions>;
|
|
6
|
+
export declare const Main: Story;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as IconProps } from '../../../assets/IconProps';
|
|
3
3
|
type StoryArgs = IconProps;
|
|
4
4
|
declare const meta: Meta<StoryArgs>;
|
|
5
5
|
export default meta;
|
|
6
|
-
|
|
6
|
+
type Story = StoryObj<StoryArgs>;
|
|
7
|
+
export declare const Gallery: Story;
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as RcSesFileDropzone } from '../../../components/form/inputs/FileDropzone';
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
|
-
import { RegisterOptions, Control } from 'react-hook-form';
|
|
5
|
-
import { InputHTMLAttributes } from 'react';
|
|
6
|
-
import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
|
|
7
|
-
import { DropzoneOptions } from 'react-dropzone/.';
|
|
8
3
|
declare const meta: Meta<typeof RcSesFileDropzone>;
|
|
9
4
|
export default meta;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
13
|
-
shouldUnregister?: boolean;
|
|
14
|
-
defaultValue?: any;
|
|
15
|
-
control?: Control<any> | undefined;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}, "rules" | "control"> & Pick< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
18
|
-
id?: string;
|
|
19
|
-
slotProps?: {
|
|
20
|
-
controller?: Partial<Omit<{
|
|
21
|
-
name: any;
|
|
22
|
-
rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
23
|
-
shouldUnregister?: boolean;
|
|
24
|
-
defaultValue?: any;
|
|
25
|
-
control?: Control<any> | undefined;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
}, "rules" | "control">>;
|
|
28
|
-
dropzone?: Partial< DropzoneOptions>;
|
|
29
|
-
field?: Partial<Omit< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled">>;
|
|
30
|
-
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
31
|
-
};
|
|
32
|
-
}>;
|
|
5
|
+
type Story = StoryObj<typeof RcSesFileDropzone>;
|
|
6
|
+
export declare const Main: Story;
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as RcSesNumberStepper } from '../../../components/form/inputs/NumberStepper';
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
|
-
import { RegisterOptions, Control } from 'react-hook-form';
|
|
5
|
-
import { OutlinedInputProps } from '@mui/material';
|
|
6
|
-
import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
|
|
7
3
|
declare const meta: Meta<typeof RcSesNumberStepper>;
|
|
8
4
|
export default meta;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
12
|
-
shouldUnregister?: boolean;
|
|
13
|
-
defaultValue?: any;
|
|
14
|
-
control?: Control<any> | undefined;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
}, "rules" | "control"> & Pick< OutlinedInputProps, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
17
|
-
id?: string;
|
|
18
|
-
displayStepperControls?: boolean;
|
|
19
|
-
min?: string | number;
|
|
20
|
-
max?: string | number;
|
|
21
|
-
step?: string | number;
|
|
22
|
-
slotProps?: {
|
|
23
|
-
controller?: Partial<Omit<{
|
|
24
|
-
name: any;
|
|
25
|
-
rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
26
|
-
shouldUnregister?: boolean;
|
|
27
|
-
defaultValue?: any;
|
|
28
|
-
control?: Control<any> | undefined;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
}, "rules" | "control">>;
|
|
31
|
-
field?: Partial<Omit< OutlinedInputProps, "name" | "onBlur" | "onChange" | "disabled">>;
|
|
32
|
-
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
33
|
-
};
|
|
34
|
-
}>;
|
|
5
|
+
type Story = StoryObj<typeof RcSesNumberStepper>;
|
|
6
|
+
export declare const Main: Story;
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
2
|
-
import { default as RcSesRadioButtonGroup
|
|
3
|
-
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
|
-
import { RegisterOptions, Control } from 'react-hook-form';
|
|
5
|
-
import { RadioGroupProps, Theme } from '@mui/material';
|
|
6
|
-
import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
|
|
7
|
-
import { MUIStyledCommonProps } from '@mui/system';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as RcSesRadioButtonGroup } from '../../../components/form/inputs/RadioButtonGroup';
|
|
8
3
|
declare const meta: Meta<typeof RcSesRadioButtonGroup>;
|
|
9
4
|
export default meta;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
13
|
-
shouldUnregister?: boolean;
|
|
14
|
-
defaultValue?: any;
|
|
15
|
-
control?: Control<any> | undefined;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}, "name" | "rules" | "control"> & Pick< RadioGroupProps, "name"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
|
|
18
|
-
id?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
hideNativeRadio?: boolean;
|
|
21
|
-
options: Array< RadioOption>;
|
|
22
|
-
variant?: "flat" | "outlined" | "filled";
|
|
23
|
-
slotProps?: {
|
|
24
|
-
controller?: Partial<Omit<{
|
|
25
|
-
name: any;
|
|
26
|
-
rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
|
|
27
|
-
shouldUnregister?: boolean;
|
|
28
|
-
defaultValue?: any;
|
|
29
|
-
control?: Control<any> | undefined;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
}, "name" | "rules" | "control">>;
|
|
32
|
-
wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
|
|
33
|
-
};
|
|
34
|
-
} & MUIStyledCommonProps<Theme>>;
|
|
5
|
+
type Story = StoryObj<typeof RcSesRadioButtonGroup>;
|
|
6
|
+
export declare const Main: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as RcSesSearchInput } from '../../../components/form/inputs/SearchInput';
|
|
3
|
+
declare const meta: Meta<typeof RcSesSearchInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof RcSesSearchInput>;
|
|
6
|
+
export declare const Main: Story;
|
|
7
|
+
export declare const OnlyRequired: Story;
|
|
8
|
+
export declare const WithoutButton: Story;
|
|
9
|
+
export declare const WithoutLabel: Story;
|
|
10
|
+
export declare const SideLabel: Story;
|
|
11
|
+
export declare const OnlyNumbers: Story;
|