@registrucentras/rc-ses-react-components 1.5.0 → 1.6.1
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/stories/components/{Card.stories.d.ts → display/Card.stories.d.ts} +1 -1
- package/dist/stories/components/{ImageCard.stories.d.ts → display/ImageCard.stories.d.ts} +1 -1
- package/dist/stories/components/{ListWithIcons.stories.d.ts → display/ListWithIcons.stories.d.ts} +1 -1
- package/dist/stories/components/{Alert.stories.d.ts → feedback/Alert.stories.d.ts} +1 -1
- package/dist/stories/components/{Icons.stories.d.ts → icons/Icons.stories.d.ts} +1 -1
- package/dist/stories/components/{Accordion.stories.d.ts → navigation/Accordion.stories.d.ts} +2 -2
- package/dist/stories/components/{Breadcrumbs.stories.d.ts → navigation/Breadcrumbs.stories.d.ts} +1 -1
- package/dist/stories/components/{DataPagination.stories.d.ts → navigation/DataPagination.stories.d.ts} +1 -1
- package/dist/stories/{ServiceWizardStepper.stories.d.ts → components/navigation/ServiceWizardStepper.stories.d.ts} +1 -1
- package/package.json +1 -1
- package/src/stories/components/{buttons → actions}/Button.stories.tsx +1 -1
- package/src/stories/components/{Card.stories.tsx → display/Card.stories.tsx} +1 -1
- package/src/stories/components/{Card.test.tsx → display/Card.test.tsx} +2 -1
- package/src/stories/components/{ImageCard.stories.tsx → display/ImageCard.stories.tsx} +1 -1
- package/src/stories/components/{ListWithIcons.stories.tsx → display/ListWithIcons.stories.tsx} +1 -1
- package/src/stories/components/{Alert.stories.tsx → feedback/Alert.stories.tsx} +1 -1
- package/src/stories/components/form/CardFormContainer.stories.tsx +1 -1
- package/src/stories/components/form/CheckboxFormControl.stories.tsx +1 -1
- package/src/stories/components/form/ServiceFormActions.stories.tsx +1 -1
- package/src/stories/components/form/ServiceFormContainer.stories.tsx +1 -1
- package/src/stories/components/{Icons.stories.tsx → icons/Icons.stories.tsx} +1 -1
- package/src/stories/components/inputs/Checkbox.stories.tsx +1 -1
- package/src/stories/components/inputs/DatePicker.stories.tsx +1 -1
- package/src/stories/components/inputs/FileDropzone.stories.tsx +1 -1
- package/src/stories/components/inputs/FileUpload.stories.tsx +1 -1
- package/src/stories/components/inputs/NumberStepper.stories.tsx +1 -1
- package/src/stories/components/inputs/PhoneInput.stories.tsx +1 -1
- package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +1 -1
- package/src/stories/components/inputs/SearchableField.stories.tsx +1 -1
- package/src/stories/components/inputs/Select.stories.tsx +1 -1
- package/src/stories/components/inputs/TextField.stories.tsx +1 -1
- package/src/stories/components/{Accordion.stories.tsx → navigation/Accordion.stories.tsx} +1 -1
- package/src/stories/components/{Breadcrumbs.stories.tsx → navigation/Breadcrumbs.stories.tsx} +1 -1
- package/src/stories/components/{DataPagination.stories.tsx → navigation/DataPagination.stories.tsx} +1 -1
- package/src/stories/{ServiceWizardStepper.stories.tsx → components/navigation/ServiceWizardStepper.stories.tsx} +3 -3
- /package/dist/stories/components/{buttons → actions}/Button.stories.d.ts +0 -0
- /package/src/stories/components/{buttons → actions}/Button.test.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, ReactRenderer } from '@storybook/react';
|
|
2
|
-
import { default as RcSesCard, RcSesCardTestIds } from '
|
|
2
|
+
import { default as RcSesCard, RcSesCardTestIds } from '../../../components/common/Card';
|
|
3
3
|
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
4
|
import { CardProps, StackProps, BoxProps, TypographyProps } from '@mui/material';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, ReactRenderer } from '@storybook/react';
|
|
2
|
-
import { default as RcSesImageCard, RcSesImageCardProps } from '
|
|
2
|
+
import { default as RcSesImageCard, RcSesImageCardProps } from '../../../components/common/ImageCard';
|
|
3
3
|
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
4
|
declare const meta: Meta<typeof RcSesImageCard>;
|
|
5
5
|
export default meta;
|
package/dist/stories/components/{ListWithIcons.stories.d.ts → display/ListWithIcons.stories.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { ListWithIconsItemData, ListWithIconsProps } from '
|
|
2
|
+
import { ListWithIconsItemData, ListWithIconsProps } from '../../../components/common/ListWithIcons';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: ({ items, layout, isLoading }: ListWithIconsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryFn, ReactRenderer } from '@storybook/react';
|
|
2
|
-
import { default as RcSesAlert } from '
|
|
2
|
+
import { default as RcSesAlert } from '../../../components/common/Alert';
|
|
3
3
|
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
4
|
import { AlertProps, ContainerProps } from '@mui/material';
|
|
5
5
|
declare const meta: Meta<typeof RcSesAlert>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/react';
|
|
2
|
-
import { default as IconProps } from '
|
|
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;
|
package/dist/stories/components/{Accordion.stories.d.ts → navigation/Accordion.stories.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta, ReactRenderer } from '@storybook/react';
|
|
2
|
-
import { default as RcSesAccordion } from '
|
|
3
|
-
import { default as useAccordionController } from '
|
|
2
|
+
import { default as RcSesAccordion } from '../../../components/common/Accordion';
|
|
3
|
+
import { default as useAccordionController } from '../../../components/common/Accordion/hooks/useAccordionController';
|
|
4
4
|
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
5
5
|
import { AccordionClasses, Theme, AccordionSlotsAndSlotProps, PaperOwnProps } from '@mui/material';
|
|
6
6
|
import { SxProps } from '@mui/system';
|
package/dist/stories/components/{Breadcrumbs.stories.d.ts → navigation/Breadcrumbs.stories.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, ReactRenderer } from '@storybook/react';
|
|
2
|
-
import { default as RcSesBreadcrumbs, BreadcrumbItem } from '
|
|
2
|
+
import { default as RcSesBreadcrumbs, BreadcrumbItem } from '../../../components/common/Breadcrumbs';
|
|
3
3
|
import { AnnotatedStoryFn } from '@storybook/core/csf';
|
|
4
4
|
declare const meta: Meta<typeof RcSesBreadcrumbs>;
|
|
5
5
|
export default meta;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { DataPaginationProps } from '
|
|
2
|
+
import { DataPaginationProps } from '../../../components/common/DataPagination';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: ({ count, page, defaultPage, onChange, prevLabel, nextLabel, }: DataPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, ReactRenderer } from '@storybook/react';
|
|
2
|
-
import { default as ServiceWizardStepper, ServiceWizardStepperProps } from '
|
|
2
|
+
import { default as ServiceWizardStepper, ServiceWizardStepperProps } from '../../../components/layout/ServiceWizardStepper';
|
|
3
3
|
import { StoryAnnotations } from '@storybook/core/csf';
|
|
4
4
|
declare const meta: Meta<typeof ServiceWizardStepper>;
|
|
5
5
|
export default meta;
|
package/package.json
CHANGED
|
@@ -3,7 +3,8 @@ import { composeStories } from '@storybook/react'
|
|
|
3
3
|
import '@testing-library/jest-dom'
|
|
4
4
|
import { render, screen } from '@testing-library/react'
|
|
5
5
|
|
|
6
|
-
import theme from '
|
|
6
|
+
import theme from '@/theme/light'
|
|
7
|
+
|
|
7
8
|
import * as stories from './Card.stories'
|
|
8
9
|
|
|
9
10
|
const { Main } = composeStories(stories)
|
|
@@ -8,7 +8,7 @@ import RcSesImageCard from '@/components/common/ImageCard'
|
|
|
8
8
|
import palette from '@/theme/palette'
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof RcSesImageCard> = {
|
|
11
|
-
title: 'components/
|
|
11
|
+
title: 'components/display/ImageCard',
|
|
12
12
|
component: RcSesImageCard,
|
|
13
13
|
tags: ['autodocs'],
|
|
14
14
|
}
|
|
@@ -13,7 +13,7 @@ const lorem =
|
|
|
13
13
|
const severities = ['info', 'warning', 'error', 'success'] as const
|
|
14
14
|
|
|
15
15
|
const meta: Meta<typeof RcSesAlert> = {
|
|
16
|
-
title: 'components/
|
|
16
|
+
title: 'components/feedback/Alert',
|
|
17
17
|
component: RcSesAlert,
|
|
18
18
|
tags: ['autodocs'],
|
|
19
19
|
}
|
|
@@ -22,7 +22,7 @@ const longSteps: StepItem[] = [
|
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
const meta: Meta<typeof RcSesCardFormContainer> = {
|
|
25
|
-
title: 'components/
|
|
25
|
+
title: 'components/form/CardFormContainer',
|
|
26
26
|
component: RcSesCardFormContainer,
|
|
27
27
|
tags: ['autodocs'],
|
|
28
28
|
argTypes: {
|
|
@@ -9,7 +9,7 @@ import Fields from '@/components/storybook/Fields'
|
|
|
9
9
|
const variants = ['outlined', 'flat']
|
|
10
10
|
|
|
11
11
|
const meta: Meta<typeof RcSesCheckboxFormControl> = {
|
|
12
|
-
title: 'components/
|
|
12
|
+
title: 'components/form/CheckboxFormControl',
|
|
13
13
|
component: RcSesCheckboxFormControl,
|
|
14
14
|
argTypes: {
|
|
15
15
|
variant: {
|
|
@@ -8,7 +8,7 @@ import FieldView from '@/components/storybook/FieldView'
|
|
|
8
8
|
import Fields from '@/components/storybook/Fields'
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof RcSesServiceFormActions> = {
|
|
11
|
-
title: 'components/
|
|
11
|
+
title: 'components/form/ServiceFormActions',
|
|
12
12
|
component: RcSesServiceFormActions,
|
|
13
13
|
tags: ['autodocs'],
|
|
14
14
|
}
|
|
@@ -11,7 +11,7 @@ import Fields from '@/components/storybook/Fields'
|
|
|
11
11
|
import BasicInformationForm from '@/examples/MultipleStepForm/components/BasicInformationForm'
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof RcSesServiceFormContainer> = {
|
|
14
|
-
title: 'components/
|
|
14
|
+
title: 'components/form/ServiceFormContainer',
|
|
15
15
|
component: RcSesServiceFormContainer,
|
|
16
16
|
argTypes: {
|
|
17
17
|
accordionController: {
|
|
@@ -11,7 +11,7 @@ import Fields from '@/components/storybook/Fields'
|
|
|
11
11
|
import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof RcSesDatepicker> = {
|
|
14
|
-
title: 'components/
|
|
14
|
+
title: 'components/inputs/DatePicker',
|
|
15
15
|
component: RcSesDatepicker,
|
|
16
16
|
argTypes: {
|
|
17
17
|
clearable: {
|
|
@@ -15,7 +15,7 @@ type FormModel = {
|
|
|
15
15
|
const variants = ['outlined', 'filled', 'flat']
|
|
16
16
|
|
|
17
17
|
const meta: Meta<typeof RcSesRadioButtonGroup> = {
|
|
18
|
-
title: 'components/
|
|
18
|
+
title: 'components/inputs/RadioButtonGroup',
|
|
19
19
|
component: RcSesRadioButtonGroup,
|
|
20
20
|
argTypes: {
|
|
21
21
|
variant: {
|
|
@@ -7,7 +7,7 @@ import ObjectIdentifierSearchModal from '@/examples/SingleStepForm/components/Ob
|
|
|
7
7
|
import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof RcSesSearchableField> = {
|
|
10
|
-
title: 'components/
|
|
10
|
+
title: 'components/inputs/SearchableField',
|
|
11
11
|
component: RcSesSearchableField,
|
|
12
12
|
tags: ['autodocs'],
|
|
13
13
|
}
|
|
@@ -10,7 +10,7 @@ import PreviewTitle from '@/components/storybook/PreviewTitle'
|
|
|
10
10
|
import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
|
|
11
11
|
|
|
12
12
|
const meta: Meta<typeof RcSesSelect> = {
|
|
13
|
-
title: 'components/
|
|
13
|
+
title: 'components/inputs/Select',
|
|
14
14
|
component: RcSesSelect,
|
|
15
15
|
argTypes: {
|
|
16
16
|
disabled: {
|
|
@@ -8,7 +8,7 @@ import Fields from '@/components/storybook/Fields'
|
|
|
8
8
|
import PreviewTitle from '@/components/storybook/PreviewTitle'
|
|
9
9
|
|
|
10
10
|
const meta: Meta<typeof RcSesTextField> = {
|
|
11
|
-
title: 'components/
|
|
11
|
+
title: 'components/inputs/TextField',
|
|
12
12
|
component: RcSesTextField,
|
|
13
13
|
tags: ['autodocs'],
|
|
14
14
|
}
|
|
@@ -7,7 +7,7 @@ import RcSesServiceFormContainer from '@/components/layout/ServiceFormContainer/
|
|
|
7
7
|
import FieldView from '@/components/storybook/FieldView'
|
|
8
8
|
|
|
9
9
|
const meta: Meta<typeof RcSesAccordion> = {
|
|
10
|
-
title: 'components/
|
|
10
|
+
title: 'components/navigation/Accordion',
|
|
11
11
|
component: RcSesAccordion,
|
|
12
12
|
argTypes: {
|
|
13
13
|
disabled: {
|
package/src/stories/components/{DataPagination.stories.tsx → navigation/DataPagination.stories.tsx}
RENAMED
|
@@ -5,7 +5,7 @@ import { useState } from 'react'
|
|
|
5
5
|
import DataPagination from '@/components/common/DataPagination'
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
|
-
title: 'components/
|
|
8
|
+
title: 'components/navigation/DataPagination',
|
|
9
9
|
component: DataPagination,
|
|
10
10
|
tags: ['autodocs'],
|
|
11
11
|
args: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
2
|
import { useState } from 'react'
|
|
3
3
|
|
|
4
|
-
import ServiceWizardStepper from '
|
|
5
|
-
import { StepItem } from '
|
|
4
|
+
import ServiceWizardStepper from '../../../components/layout/ServiceWizardStepper'
|
|
5
|
+
import { StepItem } from '../../../components/layout/ServiceWizardStepper/StepperTypes'
|
|
6
6
|
|
|
7
7
|
const steps: StepItem[] = [
|
|
8
8
|
{ id: '1', title: 'Step 1' },
|
|
@@ -11,7 +11,7 @@ const steps: StepItem[] = [
|
|
|
11
11
|
]
|
|
12
12
|
|
|
13
13
|
const meta: Meta<typeof ServiceWizardStepper> = {
|
|
14
|
-
title: '
|
|
14
|
+
title: 'components/navigation/ServiceWizardStepper',
|
|
15
15
|
component: ServiceWizardStepper,
|
|
16
16
|
tags: ['autodocs'],
|
|
17
17
|
argTypes: {
|
|
File without changes
|
|
File without changes
|