@registrucentras/rc-ses-react-components 1.6.3 → 1.6.5

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.
Files changed (95) hide show
  1. package/dist/assets/IconProps.d.ts +2 -0
  2. package/dist/assets/icons/CheckIcon.d.ts +3 -0
  3. package/dist/assets/icons/PencilSimpleLineIcon.d.ts +3 -0
  4. package/dist/components/common/Card/index.d.ts +4 -1
  5. package/dist/components/form/inputs/Select/Select.types.d.ts +5 -0
  6. package/dist/components/form/inputs/Select/hooks/useFilteredOptions.d.ts +3 -0
  7. package/dist/components/form/inputs/Select/hooks/useSelectAllLogic.d.ts +7 -0
  8. package/dist/components/form/inputs/{Select.d.ts → Select/index.d.ts} +12 -12
  9. package/dist/library/icons.d.ts +2 -1
  10. package/dist/registrucentras-rc-ses-react-components.cjs +11 -11
  11. package/dist/registrucentras-rc-ses-react-components.js +3154 -2747
  12. package/dist/stories/assets/Logo.stories.d.ts +12 -0
  13. package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +7 -0
  14. package/dist/stories/components/display/Card.stories.d.ts +6 -47
  15. package/dist/stories/components/display/ImageCard.stories.d.ts +6 -6
  16. package/dist/stories/components/feedback/Alert.stories.d.ts +7 -16
  17. package/dist/stories/components/form/CardFormContainer.stories.d.ts +5 -5
  18. package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +3 -23
  19. package/dist/stories/components/form/FormControlWrapper.stories.d.ts +6 -0
  20. package/dist/stories/components/form/ServiceFormActions.stories.d.ts +3 -9
  21. package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +11 -12
  22. package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +6 -0
  23. package/dist/stories/components/icons/Icons.stories.d.ts +3 -2
  24. package/dist/stories/components/inputs/Checkbox.stories.d.ts +17 -22
  25. package/dist/stories/components/inputs/DatePicker.stories.d.ts +18 -20
  26. package/dist/stories/components/inputs/FileDropzone.stories.d.ts +3 -29
  27. package/dist/stories/components/inputs/FileUpload.stories.d.ts +14 -26
  28. package/dist/stories/components/inputs/NumberStepper.stories.d.ts +3 -31
  29. package/dist/stories/components/inputs/PhoneInput.stories.d.ts +6 -20
  30. package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +6 -0
  31. package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +4 -32
  32. package/dist/stories/components/inputs/SearchableField.stories.d.ts +3 -332
  33. package/dist/stories/components/inputs/Select.stories.d.ts +4 -871
  34. package/dist/stories/components/inputs/TextField.stories.d.ts +3 -610
  35. package/dist/stories/components/layout/Footer.stories.d.ts +3 -5
  36. package/dist/stories/components/layout/ServiceHeader.stories.d.ts +6 -0
  37. package/dist/stories/components/layout/ServicePage.stories.d.ts +6 -0
  38. package/dist/stories/components/navigation/Accordion.stories.d.ts +15 -27
  39. package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +4 -6
  40. package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +5 -5
  41. package/dist/stories/components/tabs/Tab.stories.d.ts +8 -0
  42. package/dist/stories/components/tabs/TabPanel.stories.d.ts +7 -0
  43. package/dist/stories/components/tabs/Tabs.stories.d.ts +7 -0
  44. package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +6 -0
  45. package/package.json +1 -1
  46. package/src/assets/IconProps.ts +2 -0
  47. package/src/assets/icons/CheckIcon.tsx +23 -0
  48. package/src/assets/icons/PencilSimpleLineIcon.tsx +17 -0
  49. package/src/components/common/Card/index.test.tsx +8 -0
  50. package/src/components/common/Card/index.tsx +64 -25
  51. package/src/components/common/SelectableCardList/index.tsx +2 -1
  52. package/src/components/form/components/FormControlWrapper/index.tsx +6 -1
  53. package/src/components/form/inputs/PhoneInputFormControl/index.tsx +11 -3
  54. package/src/components/form/inputs/Select/Select.types.ts +5 -0
  55. package/src/components/form/inputs/Select/hooks/useFilteredOptions.ts +18 -0
  56. package/src/components/form/inputs/Select/hooks/useSelectAllLogic.ts +22 -0
  57. package/src/components/form/inputs/Select/index.tsx +494 -0
  58. package/src/library/icons.ts +2 -0
  59. package/src/stories/Welcome.mdx +87 -0
  60. package/src/stories/assets/Logo.stories.tsx +16 -0
  61. package/src/stories/components/actions/ButtonWithPopover.stories.tsx +33 -0
  62. package/src/stories/components/display/Card.stories.tsx +64 -47
  63. package/src/stories/components/display/ImageCard.stories.tsx +29 -27
  64. package/src/stories/components/feedback/Alert.stories.tsx +59 -50
  65. package/src/stories/components/form/CardFormContainer.stories.tsx +77 -63
  66. package/src/stories/components/form/CheckboxFormControl.stories.tsx +29 -71
  67. package/src/stories/components/form/FormControlWrapper.stories.tsx +35 -0
  68. package/src/stories/components/form/ServiceFormActions.stories.tsx +18 -21
  69. package/src/stories/components/form/ServiceFormContainer.stories.tsx +11 -11
  70. package/src/stories/components/icons/IconWithCircularBackground.stories.tsx +39 -0
  71. package/src/stories/components/icons/Icons.stories.tsx +6 -2
  72. package/src/stories/components/inputs/Checkbox.stories.tsx +17 -16
  73. package/src/stories/components/inputs/DatePicker.stories.tsx +16 -15
  74. package/src/stories/components/inputs/FileDropzone.stories.tsx +17 -34
  75. package/src/stories/components/inputs/FileUpload.stories.tsx +14 -29
  76. package/src/stories/components/inputs/NumberStepper.stories.tsx +32 -60
  77. package/src/stories/components/inputs/PhoneInput.stories.tsx +7 -5
  78. package/src/stories/components/inputs/PhoneInputFormControl.stories.tsx +33 -0
  79. package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +22 -20
  80. package/src/stories/components/inputs/SearchableField.stories.tsx +16 -14
  81. package/src/stories/components/inputs/Select.stories.tsx +245 -13
  82. package/src/stories/components/inputs/TextField.stories.tsx +47 -47
  83. package/src/stories/components/layout/Footer.stories.tsx +6 -6
  84. package/src/stories/components/layout/ServiceHeader.stories.tsx +36 -0
  85. package/src/stories/components/layout/ServicePage.stories.tsx +26 -0
  86. package/src/stories/components/navigation/Accordion.stories.tsx +14 -13
  87. package/src/stories/components/navigation/Breadcrumbs.stories.tsx +6 -8
  88. package/src/stories/components/navigation/DataPagination.stories.tsx +19 -17
  89. package/src/stories/components/navigation/ServiceWizardStepper.stories.tsx +29 -22
  90. package/src/stories/components/tabs/Tab.stories.tsx +32 -0
  91. package/src/stories/components/tabs/TabPanel.stories.tsx +31 -0
  92. package/src/stories/components/tabs/Tabs.stories.tsx +62 -0
  93. package/src/stories/components/tabs/TabsWrapper.stories.tsx +34 -0
  94. package/src/theme/light/MuiAutocomplete.ts +52 -3
  95. package/src/components/form/inputs/Select.tsx +0 -152
@@ -0,0 +1,12 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { default as Logo } from '../../assets/Logo';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Logo;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Default: Story;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesButtonWithPopover } from '../../../components/common/Button/ButtonWithPopover';
3
+ declare const meta: Meta<typeof RcSesButtonWithPopover>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithCustomContent: Story;
@@ -1,49 +1,8 @@
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';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Omit< CardProps, "children" | "title"> & {
9
- title: ReactNode;
10
- description?: ReactNode;
11
- image?: ReactNode;
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, ReactRenderer } from '@storybook/react';
2
- import { default as RcSesImageCard, RcSesImageCardProps } from '../../../components/common/ImageCard';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, RcSesImageCardProps>;
7
- export declare const WithoutButton: AnnotatedStoryFn<ReactRenderer, RcSesImageCardProps>;
8
- export declare const OutlinedButton: AnnotatedStoryFn<ReactRenderer, RcSesImageCardProps>;
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, StoryFn, ReactRenderer } from '@storybook/react';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, AlertProps & {
8
- container?: boolean | ContainerProps;
9
- }>;
10
- export declare const Outlined: AnnotatedStoryFn<ReactRenderer, AlertProps & {
11
- container?: boolean | ContainerProps;
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, ReactRenderer } from '@storybook/react';
2
- import { default as RcSesCardFormContainer, RcSesCardFormContainerProps } from '../../../components/layout/ServiceFormContainer/CardFormContainer';
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
- export declare const HorizontalDemo: AnnotatedStoryFn<ReactRenderer, RcSesCardFormContainerProps>;
7
- export declare const VerticalDemo: AnnotatedStoryFn<ReactRenderer, RcSesCardFormContainerProps>;
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, ReactRenderer } from '@storybook/react';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
10
- name: any;
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;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesFormControlWrapper } from '../../../components/form/components/FormControlWrapper';
3
+ declare const meta: Meta<typeof RcSesFormControlWrapper>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -1,12 +1,6 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, {
7
- onDiscard: () => void;
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,16 +1,15 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
2
- import { default as useAccordionController } from '../../../components/common/Accordion/hooks/useAccordionController';
1
+ import { Meta, StoryContext } from '@storybook/react';
3
2
  import { default as RcSesServiceFormContainer } from '../../../components/layout/ServiceFormContainer/AccordionFormContainer';
4
- import { AnnotatedStoryFn } from '@storybook/core/csf';
5
- import { ContainerProps } from '@mui/system';
6
3
  declare const meta: Meta<typeof RcSesServiceFormContainer>;
7
4
  export default meta;
8
- export declare const Main: AnnotatedStoryFn<ReactRenderer, {
9
- accordionController: ReturnType<typeof useAccordionController>;
10
- children: React.ReactNode;
11
- showAccordionCollapseControls?: boolean;
12
- showProgressStepper?: boolean;
13
- slotProps?: {
14
- container: Partial< ContainerProps>;
5
+ export declare const Main: {
6
+ render: () => import("react/jsx-runtime").JSX.Element;
7
+ parameters: {
8
+ docs: {
9
+ source: {
10
+ type: string;
11
+ transform: (code: string, storyContext: StoryContext) => string;
12
+ };
13
+ };
15
14
  };
16
- }>;
15
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesIconWithCircularBackground } from '../../../components/common/IconWithCircularBackground';
3
+ declare const meta: Meta<typeof RcSesIconWithCircularBackground>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -1,6 +1,7 @@
1
- import { Meta, StoryFn } from '@storybook/react';
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
- export declare const Gallery: StoryFn<StoryArgs>;
6
+ type Story = StoryObj<StoryArgs>;
7
+ export declare const Gallery: Story;
@@ -1,26 +1,21 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta, StoryContext } from '@storybook/react';
2
2
  import { default as RcSesCheckbox } from '../../../components/form/inputs/Checkbox';
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 RcSesCheckbox>;
8
4
  export default meta;
9
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
10
- name: any;
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">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ label: string;
9
+ variant: string;
10
+ children: string;
11
+ disabled: boolean;
25
12
  };
26
- }>;
13
+ parameters: {
14
+ docs: {
15
+ source: {
16
+ type: string;
17
+ transform: (code: string, storyContext: StoryContext) => string;
18
+ };
19
+ };
20
+ };
21
+ };
@@ -1,24 +1,22 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta, StoryContext } from '@storybook/react';
2
2
  import { default as RcSesDatepicker } from '../../../components/form/inputs/Datepicker';
3
- import { AnnotatedStoryFn } from '@storybook/core/csf';
4
- import { RegisterOptions, Control } from 'react-hook-form';
5
- import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
6
- import { DatePickerProps } from '@mui/x-date-pickers';
7
- import { RefAttributes } from 'react';
8
3
  declare const meta: Meta<typeof RcSesDatepicker>;
9
4
  export default meta;
10
- export declare const Main: AnnotatedStoryFn<ReactRenderer, {
11
- name: any;
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
- } & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
18
- id?: string;
19
- clearable?: boolean;
20
- slotProps?: {
21
- datepicker?: DatePickerProps<Date, boolean>;
22
- wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ clearable: boolean;
9
+ label: string;
10
+ rules: {
11
+ required: boolean;
12
+ };
23
13
  };
24
- } & RefAttributes<HTMLInputElement>>;
14
+ parameters: {
15
+ docs: {
16
+ source: {
17
+ type: string;
18
+ transform: (code: string, storyContext: StoryContext) => string;
19
+ };
20
+ };
21
+ };
22
+ };
@@ -1,32 +1,6 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
11
- name: any;
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,30 +1,18 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta, StoryContext } from '@storybook/react';
2
2
  import { default as RcSesFileUpload } from '../../../components/form/inputs/FileUpload';
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
3
  declare const meta: Meta<typeof RcSesFileUpload>;
8
4
  export default meta;
9
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
10
- name: any;
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< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled"> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
17
- id?: string;
18
- slotProps?: {
19
- controller?: Partial<Omit<{
20
- name: any;
21
- rules?: Omit< RegisterOptions<any, any>, "disabled" | "setValueAs" | "valueAsNumber" | "valueAsDate"> | undefined;
22
- shouldUnregister?: boolean;
23
- defaultValue?: any;
24
- control?: Control<any> | undefined;
25
- disabled?: boolean;
26
- }, "rules" | "control">>;
27
- field?: Partial<Omit< InputHTMLAttributes<HTMLInputElement>, "name" | "onBlur" | "onChange" | "disabled">>;
28
- wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ label: string;
29
9
  };
30
- }>;
10
+ parameters: {
11
+ docs: {
12
+ source: {
13
+ type: string;
14
+ transform: (code: string, storyContext: StoryContext) => string;
15
+ };
16
+ };
17
+ };
18
+ };
@@ -1,34 +1,6 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
10
- name: any;
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,24 +1,10 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
1
+ import { Meta } from '@storybook/react';
2
2
  import { default as RcSesPhoneInput } from '../../../components/form/inputs/PhoneInput';
3
- import { AnnotatedStoryFn } from '@storybook/core/csf';
4
- import { RegisterOptions, Control } from 'react-hook-form';
5
- import { AutocompleteProps, FormControlLabelProps } from '@mui/material';
6
- import { default as __DTS_DEFAULT_0__ } from '../../../components/form/inputs/PhoneInputFormControl/types/Country';
7
- import { RcSesFormControlWrapperProps } from '../../../components/form/components/FormControlWrapper';
8
3
  declare const meta: Meta<typeof RcSesPhoneInput>;
9
4
  export default meta;
10
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
11
- name: any;
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" | "disabled" | "rules" | "control"> & Pick< AutocompleteProps<__DTS_DEFAULT_0__, false, true, false, any>, never> & Pick< RcSesFormControlWrapperProps, "label" | "errors"> & {
18
- id?: string;
19
- slotProps?: {
20
- autocomplete?: Partial<Omit< AutocompleteProps<__DTS_DEFAULT_0__, false, true, false, any>, never>>;
21
- label?: Partial< FormControlLabelProps>;
22
- wrapper?: Partial<Omit< RcSesFormControlWrapperProps, "label" | "errors">>;
5
+ export declare const Main: {
6
+ render: (args: any) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ label: string;
23
9
  };
24
- }>;
10
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as RcSesPhoneInputFormControl } from '../../../components/form/inputs/PhoneInputFormControl';
3
+ declare const meta: Meta<typeof RcSesPhoneInputFormControl>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -1,34 +1,6 @@
1
- import { Meta, ReactRenderer } from '@storybook/react';
2
- import { default as RcSesRadioButtonGroup, RadioOption } from '../../../components/form/inputs/RadioButtonGroup';
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
- export declare const Main: AnnotatedStoryFn<ReactRenderer, Pick<{
11
- name: any;
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;