@registrucentras/rc-ses-react-components 2.0.0-rc.6 → 2.0.0-rc.7

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 (128) hide show
  1. package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
  2. package/dist/registrucentras-rc-ses-react-components.js +535 -482
  3. package/dist/stories/{components/display → atoms}/Badge.stories.d.ts +1 -1
  4. package/dist/stories/{components/inputs → atoms}/Checkbox.stories.d.ts +1 -1
  5. package/dist/stories/{components/icons → atoms}/IconWithCircularBackground.stories.d.ts +1 -1
  6. package/dist/stories/{components/icons → atoms}/IconWithSquareBackground.stories.d.ts +1 -1
  7. package/dist/stories/{components/icons → atoms}/Icons.stories.d.ts +1 -1
  8. package/dist/stories/{components/loaders → atoms}/Loader.stories.d.ts +1 -1
  9. package/dist/stories/{components/loaders → atoms}/LoadingSpinner.stories.d.ts +1 -1
  10. package/dist/stories/{components/inputs → atoms}/NumberStepper.stories.d.ts +1 -1
  11. package/dist/stories/{components/inputs → atoms}/PhoneInput.stories.d.ts +1 -1
  12. package/dist/stories/{components/inputs → atoms}/SearchInput.stories.d.ts +1 -1
  13. package/dist/stories/{components/inputs → atoms}/Select.stories.d.ts +1 -1
  14. package/dist/stories/{components/form → atoms}/SimpleCheckbox.stories.d.ts +1 -1
  15. package/dist/stories/{components/inputs → atoms}/Switch.stories.d.ts +1 -1
  16. package/dist/stories/{components/tabs → atoms}/Tab.stories.d.ts +1 -1
  17. package/dist/stories/{components/inputs → atoms}/TextField.stories.d.ts +1 -1
  18. package/dist/stories/{components/display → atoms}/Tooltip.stories.d.ts +1 -1
  19. package/dist/stories/{components/feedback → molecules}/Alert.stories.d.ts +1 -1
  20. package/dist/stories/{components/navigation → molecules}/Breadcrumbs.stories.d.ts +1 -1
  21. package/dist/stories/{components/actions → molecules}/ButtonWithPopover.stories.d.ts +1 -1
  22. package/dist/stories/{components/display → molecules}/Card.stories.d.ts +1 -1
  23. package/dist/stories/{components/display → molecules}/CardShell.stories.d.ts +2 -1
  24. package/dist/stories/{components/form → molecules}/CheckboxFormControl.stories.d.ts +1 -1
  25. package/dist/stories/{components/inputs → molecules}/DatePicker.stories.d.ts +1 -1
  26. package/dist/stories/{components/form → molecules}/FormControlWrapper.stories.d.ts +1 -1
  27. package/dist/stories/{components/display → molecules}/ImageCard.stories.d.ts +1 -1
  28. package/dist/stories/{components/display → molecules}/ListWithIcons.stories.d.ts +2 -2
  29. package/dist/stories/{components/inputs → molecules}/PhoneInputFormControl.stories.d.ts +1 -1
  30. package/dist/stories/{components/overlays → molecules}/Popover.stories.d.ts +1 -1
  31. package/dist/stories/{components/inputs → molecules}/RadioButtonGroup.stories.d.ts +1 -1
  32. package/dist/stories/{components/inputs → molecules}/SearchableField.stories.d.ts +1 -1
  33. package/dist/stories/{components/display → molecules}/SegmentedControl.stories.d.ts +1 -1
  34. package/dist/stories/{components/feedback → molecules}/Snackbar.stories.d.ts +1 -1
  35. package/dist/stories/{components/tabs → molecules}/TabPanel.stories.d.ts +1 -1
  36. package/dist/stories/{components/tabs → molecules}/Tabs.stories.d.ts +1 -1
  37. package/dist/stories/{components/tabs → molecules}/TabsWrapper.stories.d.ts +1 -1
  38. package/dist/stories/{components/display → molecules}/TitleBlock.stories.d.ts +2 -1
  39. package/dist/stories/{components/navigation → organisms}/Accordion.stories.d.ts +1 -1
  40. package/dist/stories/{components/display → organisms}/AdvancedList.stories.d.ts +1 -1
  41. package/dist/stories/{components/display → organisms}/AdvancedListItem.stories.d.ts +1 -1
  42. package/dist/stories/{components/form → organisms}/CardFormContainer.stories.d.ts +1 -1
  43. package/dist/stories/{components/navigation → organisms}/DataPagination.stories.d.ts +1 -1
  44. package/dist/stories/{components/overlays → organisms}/Dialog.stories.d.ts +1 -1
  45. package/dist/stories/{components/inputs → organisms}/FileDropzone.stories.d.ts +1 -1
  46. package/dist/stories/{components/inputs → organisms}/FileUpload.stories.d.ts +1 -1
  47. package/dist/stories/{components/layout → organisms}/Footer.stories.d.ts +1 -1
  48. package/dist/stories/{components/loaders → organisms}/FullPageLoader.stories.d.ts +1 -1
  49. package/dist/stories/{components/overlays → organisms}/Modal.stories.d.ts +1 -1
  50. package/dist/stories/{components/display → organisms}/SelectableCardList.stories.d.ts +1 -1
  51. package/dist/stories/{components/form → organisms}/ServiceFormActions.stories.d.ts +1 -1
  52. package/dist/stories/{components/form → organisms}/ServiceFormContainer.stories.d.ts +1 -1
  53. package/dist/stories/{components/layout → organisms}/ServiceHeader.stories.d.ts +1 -1
  54. package/dist/stories/{components/display → organisms}/ServiceLinks.stories.d.ts +1 -1
  55. package/dist/stories/{components/navigation → organisms}/ServiceWizardStepper.stories.d.ts +1 -1
  56. package/dist/stories/{components/navigation → organisms}/SideNav.stories.d.ts +1 -1
  57. package/dist/stories/{components/layout → templates}/ServicePage.stories.d.ts +1 -1
  58. package/dist/theme/cards.d.ts +4 -0
  59. package/package.json +1 -1
  60. package/src/components/common/CardShell/CardFooter/index.tsx +10 -1
  61. package/src/components/common/CardShell/index.tsx +31 -7
  62. package/src/components/common/TitleBlock/index.tsx +21 -2
  63. package/src/stories/Welcome.mdx +25 -2
  64. package/src/stories/{components/display → atoms}/Badge.stories.tsx +1 -1
  65. package/src/stories/{components/actions → atoms}/Button.stories.tsx +1 -1
  66. package/src/stories/{components/inputs → atoms}/Checkbox.stories.tsx +1 -1
  67. package/src/stories/{components/icons → atoms}/IconWithCircularBackground.stories.tsx +1 -1
  68. package/src/stories/{components/icons → atoms}/IconWithSquareBackground.stories.tsx +1 -1
  69. package/src/stories/{components/icons → atoms}/Icons.stories.tsx +1 -1
  70. package/src/stories/{components/loaders → atoms}/Loader.stories.tsx +1 -1
  71. package/src/stories/{components/loaders → atoms}/LoadingSpinner.stories.tsx +1 -1
  72. package/src/stories/{assets → atoms}/Logo.stories.tsx +1 -1
  73. package/src/stories/{components/inputs → atoms}/NumberStepper.stories.tsx +1 -1
  74. package/src/stories/{components/inputs → atoms}/PhoneInput.stories.tsx +1 -1
  75. package/src/stories/{components/inputs → atoms}/SearchInput.stories.tsx +1 -1
  76. package/src/stories/{components/inputs → atoms}/Select.stories.tsx +1 -1
  77. package/src/stories/{components/form → atoms}/SimpleCheckbox.stories.tsx +1 -1
  78. package/src/stories/{components/inputs → atoms}/Switch.stories.tsx +1 -1
  79. package/src/stories/{components/tabs → atoms}/Tab.stories.tsx +1 -1
  80. package/src/stories/{components/inputs → atoms}/TextField.stories.tsx +1 -1
  81. package/src/stories/{components/display → atoms}/Tooltip.stories.tsx +2 -2
  82. package/src/stories/{theme → foundations}/ThemedMuiComponents.stories.tsx +1 -1
  83. package/src/stories/{components/feedback → molecules}/Alert.stories.tsx +1 -1
  84. package/src/stories/{components/navigation → molecules}/Breadcrumbs.stories.tsx +1 -1
  85. package/src/stories/{components/actions → molecules}/ButtonWithPopover.stories.tsx +1 -1
  86. package/src/stories/{components/display → molecules}/Card.stories.tsx +1 -1
  87. package/src/stories/{components/display → molecules}/CardShell.stories.tsx +20 -1
  88. package/src/stories/{components/form → molecules}/CheckboxFormControl.stories.tsx +1 -1
  89. package/src/stories/{components/inputs → molecules}/DatePicker.stories.tsx +1 -1
  90. package/src/stories/{components/form → molecules}/FormControlWrapper.stories.tsx +1 -1
  91. package/src/stories/{components/display → molecules}/ImageCard.stories.tsx +1 -1
  92. package/src/stories/{components/display → molecules}/ListWithIcons.stories.tsx +1 -1
  93. package/src/stories/{components/inputs → molecules}/PhoneInputFormControl.stories.tsx +1 -1
  94. package/src/stories/{components/overlays → molecules}/Popover.stories.tsx +1 -1
  95. package/src/stories/{components/inputs → molecules}/RadioButtonGroup.stories.tsx +1 -1
  96. package/src/stories/{components/inputs → molecules}/SearchableField.stories.tsx +1 -1
  97. package/src/stories/{components/display → molecules}/SegmentedControl.stories.tsx +2 -2
  98. package/src/stories/{components/feedback → molecules}/Snackbar.stories.tsx +1 -1
  99. package/src/stories/{components/tabs → molecules}/TabPanel.stories.tsx +1 -1
  100. package/src/stories/{components/tabs → molecules}/Tabs.stories.tsx +1 -1
  101. package/src/stories/{components/tabs → molecules}/TabsWrapper.stories.tsx +1 -1
  102. package/src/stories/{components/display → molecules}/TitleBlock.stories.tsx +25 -2
  103. package/src/stories/{components/navigation → organisms}/Accordion.stories.tsx +1 -1
  104. package/src/stories/{components/display → organisms}/AdvancedList.stories.tsx +1 -1
  105. package/src/stories/{components/display → organisms}/AdvancedListItem.stories.tsx +1 -1
  106. package/src/stories/{components/form → organisms}/CardFormContainer.stories.tsx +1 -1
  107. package/src/stories/{components/navigation → organisms}/DataPagination.stories.tsx +1 -1
  108. package/src/stories/{components/overlays → organisms}/Dialog.stories.tsx +1 -1
  109. package/src/stories/{components/inputs → organisms}/FileDropzone.stories.tsx +1 -1
  110. package/src/stories/{components/inputs → organisms}/FileUpload.stories.tsx +1 -1
  111. package/src/stories/{components/layout → organisms}/Footer.stories.tsx +1 -1
  112. package/src/stories/{components/loaders → organisms}/FullPageLoader.stories.tsx +1 -1
  113. package/src/stories/{components/overlays → organisms}/Modal.stories.tsx +1 -1
  114. package/src/stories/{components/display → organisms}/SelectableCardList.stories.tsx +1 -1
  115. package/src/stories/{components/form → organisms}/ServiceFormActions.stories.tsx +1 -1
  116. package/src/stories/{components/form → organisms}/ServiceFormContainer.stories.tsx +1 -1
  117. package/src/stories/{components/layout → organisms}/ServiceHeader.stories.tsx +1 -1
  118. package/src/stories/{components/display → organisms}/ServiceLinks.stories.tsx +1 -1
  119. package/src/stories/{components/navigation → organisms}/ServiceWizardStepper.stories.tsx +3 -3
  120. package/src/stories/{components/navigation → organisms}/SideNav.stories.tsx +1 -1
  121. package/src/stories/{components/layout → templates}/ServicePage.stories.tsx +1 -1
  122. package/src/theme/cards.ts +2 -0
  123. package/src/stories/components/display/Card.test.tsx +0 -19
  124. /package/dist/stories/{components/actions → atoms}/Button.stories.d.ts +0 -0
  125. /package/dist/stories/{assets → atoms}/Logo.stories.d.ts +0 -0
  126. /package/dist/stories/{theme → foundations}/ThemedMuiComponents.stories.d.ts +0 -0
  127. /package/src/stories/{components/actions → atoms}/Button.test.ts +0 -0
  128. /package/src/stories/{Colors.mdx → foundations/Colors.mdx} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesBadge } from '../../../components/common/Badge';
2
+ import { default as RcSesBadge } from '../../components/common/Badge';
3
3
  declare const meta: Meta<typeof RcSesBadge>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesBadge>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryContext } from '@storybook/react-vite';
2
- import { default as RcSesCheckbox } from '../../../components/form/inputs/Checkbox';
2
+ import { default as RcSesCheckbox } from '../../components/form/inputs/Checkbox';
3
3
  declare const meta: Meta<typeof RcSesCheckbox>;
4
4
  export default meta;
5
5
  export declare const Main: {
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesIconWithCircularBackground } from '../../../components/common/IconWithCircularBackground';
2
+ import { default as RcSesIconWithCircularBackground } from '../../components/common/IconWithCircularBackground';
3
3
  declare const meta: Meta<typeof RcSesIconWithCircularBackground>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesIconWithSquareBackground } from '../../../components/common/IconWithSquareBackground';
2
+ import { default as RcSesIconWithSquareBackground } from '../../components/common/IconWithSquareBackground';
3
3
  declare const meta: Meta<typeof RcSesIconWithSquareBackground>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as IconProps } from '../../../assets/IconProps';
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;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesLoader } from '../../../components/loaders/Loader';
2
+ import { default as RcSesLoader } from '../../components/loaders/Loader';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof RcSesLoader;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesLoadingSpinner } from '../../../components/loaders/LoadingSpinner';
2
+ import { default as RcSesLoadingSpinner } from '../../components/loaders/LoadingSpinner';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof RcSesLoadingSpinner;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesNumberStepper } from '../../../components/form/inputs/NumberStepper';
2
+ import { default as RcSesNumberStepper } from '../../components/form/inputs/NumberStepper';
3
3
  declare const meta: Meta<typeof RcSesNumberStepper>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesNumberStepper>;
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/react-vite';
2
- import { default as RcSesPhoneInput } from '../../../components/form/inputs/PhoneInput';
2
+ import { default as RcSesPhoneInput } from '../../components/form/inputs/PhoneInput';
3
3
  declare const meta: Meta<typeof RcSesPhoneInput>;
4
4
  export default meta;
5
5
  export declare const Main: {
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesSearchInput } from '../../../components/form/inputs/SearchInput';
2
+ import { default as RcSesSearchInput } from '../../components/form/inputs/SearchInput';
3
3
  declare const meta: Meta<typeof RcSesSearchInput>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesSearchInput>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesSelect } from '../../../components/form/inputs/Select';
2
+ import { default as RcSesSelect } from '../../components/form/inputs/Select';
3
3
  declare const meta: Meta<typeof RcSesSelect>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesSelect>;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { default as SimpleCheckbox } from '../../../components/form/inputs/SimpleCheckbox';
2
+ import { default as SimpleCheckbox } from '../../components/form/inputs/SimpleCheckbox';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof SimpleCheckbox;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesSwitch } from '../../../components/common/Switch';
2
+ import { default as RcSesSwitch } from '../../components/common/Switch';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof RcSesSwitch;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesTab } from '../../../components/common/Tabs/Tab';
2
+ import { default as RcSesTab } from '../../components/common/Tabs/Tab';
3
3
  declare const meta: Meta<typeof RcSesTab>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesTextField } from '../../../components/form/inputs/TextField';
2
+ import { default as RcSesTextField } from '../../components/form/inputs/TextField';
3
3
  declare const meta: Meta<typeof RcSesTextField>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesTextField>;
@@ -1,4 +1,4 @@
1
- import { default as RcSesTooltip } from '../../../components/common/Tooltip';
1
+ import { default as RcSesTooltip } from '../../components/common/Tooltip';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  component: typeof RcSesTooltip;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesAlert } from '../../../components/common/Alert';
2
+ import { default as RcSesAlert } from '../../components/common/Alert';
3
3
  declare const meta: Meta<typeof RcSesAlert>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesAlert>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesBreadcrumbs } from '../../../components/common/Breadcrumbs';
2
+ import { default as RcSesBreadcrumbs } from '../../components/common/Breadcrumbs';
3
3
  declare const meta: Meta<typeof RcSesBreadcrumbs>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesBreadcrumbs>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesButtonWithPopover } from '../../../components/common/Button/ButtonWithPopover';
2
+ import { default as RcSesButtonWithPopover } from '../../components/common/Button/ButtonWithPopover';
3
3
  declare const meta: Meta<typeof RcSesButtonWithPopover>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesCard } from '../../../components/common/Card';
2
+ import { default as RcSesCard } from '../../components/common/Card';
3
3
  declare const meta: Meta<typeof RcSesCard>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesCard>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesCardShell } from '../../../components/common/CardShell';
2
+ import { default as RcSesCardShell } from '../../components/common/CardShell';
3
3
  declare const meta: Meta<typeof RcSesCardShell>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesCardShell>;
@@ -15,3 +15,4 @@ export declare const ContentOnly: Story;
15
15
  export declare const FullHeight: Story;
16
16
  export declare const MobileViewport: Story;
17
17
  export declare const TabletViewport: Story;
18
+ export declare const LeftAlignedFooterMobileViewport: Story;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesCheckboxFormControl } from '../../../components/form/inputs/CheckboxFormControl';
2
+ import { default as RcSesCheckboxFormControl } from '../../components/form/inputs/CheckboxFormControl';
3
3
  declare const meta: Meta<typeof RcSesCheckboxFormControl>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesCheckboxFormControl>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryContext } from '@storybook/react-vite';
2
- import { default as RcSesDatepicker } from '../../../components/form/inputs/Datepicker';
2
+ import { default as RcSesDatepicker } from '../../components/form/inputs/Datepicker';
3
3
  declare const meta: Meta<typeof RcSesDatepicker>;
4
4
  export default meta;
5
5
  export declare const Main: {
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesFormControlWrapper } from '../../../components/form/components/FormControlWrapper';
2
+ import { default as RcSesFormControlWrapper } from '../../components/form/components/FormControlWrapper';
3
3
  declare const meta: Meta<typeof RcSesFormControlWrapper>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesImageCard } from '../../../components/common/ImageCard';
2
+ import { default as RcSesImageCard } from '../../components/common/ImageCard';
3
3
  declare const meta: Meta<typeof RcSesImageCard>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesImageCard>;
@@ -1,6 +1,6 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { ListWithIconsItemData } from '../../../components/common/ListWithIcons/ListWithIcons.types';
3
- import { ListWithIconsProps } from '../../../components/common/ListWithIcons';
2
+ import { ListWithIconsItemData } from '../../components/common/ListWithIcons/ListWithIcons.types';
3
+ import { ListWithIconsProps } from '../../components/common/ListWithIcons';
4
4
  declare const meta: {
5
5
  title: string;
6
6
  component: ({ items, layout, isLoading, skeletonCount, }: ListWithIconsProps) => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesPhoneInputFormControl } from '../../../components/form/inputs/PhoneInputFormControl';
2
+ import { default as RcSesPhoneInputFormControl } from '../../components/form/inputs/PhoneInputFormControl';
3
3
  declare const meta: Meta<typeof RcSesPhoneInputFormControl>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesPopover } from '../../../components/common/Popover';
2
+ import { default as RcSesPopover } from '../../components/common/Popover';
3
3
  /**
4
4
  * `RcSesButtonWithPopover` owns the popover's open state internally and starts
5
5
  * closed, so `MuiPopover` never reached a visual baseline (SAV-5648 / LIB-02).
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesRadioButtonGroup } from '../../../components/form/inputs/RadioButtonGroup';
2
+ import { default as RcSesRadioButtonGroup } from '../../components/form/inputs/RadioButtonGroup';
3
3
  declare const meta: Meta<typeof RcSesRadioButtonGroup>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesRadioButtonGroup>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesSearchableField } from '../../../components/form/inputs/SearchableField';
2
+ import { default as RcSesSearchableField } from '../../components/form/inputs/SearchableField';
3
3
  declare const meta: Meta<typeof RcSesSearchableField>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesSearchableField>;
@@ -1,5 +1,5 @@
1
1
  import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
- import { RcSesSegmentedControlProps } from '../../../library';
2
+ import { RcSesSegmentedControlProps } from '../../components/common/SegmentedControl';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: ForwardRefExoticComponent< RcSesSegmentedControlProps & RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/react-vite';
2
- import { default as RcSesSnackbar } from '../../../components/common/Snackbar';
2
+ import { default as RcSesSnackbar } from '../../components/common/Snackbar';
3
3
  declare const meta: Meta<typeof RcSesSnackbar>;
4
4
  export default meta;
5
5
  export declare const Default: {
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesTabPanel } from '../../../components/common/Tabs/TabPanel';
2
+ import { default as RcSesTabPanel } from '../../components/common/Tabs/TabPanel';
3
3
  declare const meta: Meta<typeof RcSesTabPanel>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesTabs } from '../../../components/common/Tabs/Tabs';
2
+ import { default as RcSesTabs } from '../../components/common/Tabs/Tabs';
3
3
  declare const meta: Meta<typeof RcSesTabs>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesTabsWrapper } from '../../../components/common/Tabs/TabsWrapper';
2
+ import { default as RcSesTabsWrapper } from '../../components/common/Tabs/TabsWrapper';
3
3
  declare const meta: Meta<typeof RcSesTabsWrapper>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesTitleBlock } from '../../../components/common/TitleBlock';
2
+ import { default as RcSesTitleBlock } from '../../components/common/TitleBlock';
3
3
  declare const meta: Meta<typeof RcSesTitleBlock>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesTitleBlock>;
@@ -19,3 +19,4 @@ export declare const VerticalTitleBlock: Story;
19
19
  export declare const BodyScaleTitleInCard: Story;
20
20
  export declare const MobileViewport: Story;
21
21
  export declare const TabletViewport: Story;
22
+ export declare const VerticalMobileViewport: Story;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryContext } from '@storybook/react-vite';
2
- import { default as RcSesAccordion } from '../../../components/common/Accordion';
2
+ import { default as RcSesAccordion } from '../../components/common/Accordion';
3
3
  declare const meta: Meta<typeof RcSesAccordion>;
4
4
  export default meta;
5
5
  export declare const Main: {
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { AdvancedListItemData, AdvancedListProps } from '../../../components/common/AdvancedList';
2
+ import { AdvancedListItemData, AdvancedListProps } from '../../components/common/AdvancedList';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: ({ items, error }: AdvancedListProps) => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { AdvancedListItemProps } from '../../../components/common/AdvancedList/components/AdvancedListItem';
2
+ import { AdvancedListItemProps } from '../../components/common/AdvancedList/components/AdvancedListItem';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: ({ title, label, subtitle, metaItems, leadingMedia, expandedContent, expanded, onExpandedChange, leading, trailing, state, onClick, }: AdvancedListItemProps) => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesCardFormContainer } from '../../../components/layout/ServiceFormContainer/CardFormContainer';
2
+ import { default as RcSesCardFormContainer } from '../../components/layout/ServiceFormContainer/CardFormContainer';
3
3
  declare const meta: Meta<typeof RcSesCardFormContainer>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesCardFormContainer>;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { DataPaginationProps } from '../../../components/common/DataPagination';
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, isLoading, }: DataPaginationProps) => import("react").JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesDialog } from '../../../components/overlays/Dialog';
2
+ import { default as RcSesDialog } from '../../components/overlays/Dialog';
3
3
  declare const meta: Meta<typeof RcSesDialog>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesDialog>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesFileDropzone } from '../../../components/form/inputs/FileDropzone';
2
+ import { default as RcSesFileDropzone } from '../../components/form/inputs/FileDropzone';
3
3
  declare const meta: Meta<typeof RcSesFileDropzone>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesFileDropzone>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryContext } from '@storybook/react-vite';
2
- import { default as RcSesFileUpload } from '../../../components/form/inputs/FileUpload';
2
+ import { default as RcSesFileUpload } from '../../components/form/inputs/FileUpload';
3
3
  declare const meta: Meta<typeof RcSesFileUpload>;
4
4
  export default meta;
5
5
  export declare const Main: {
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesFooter } from '../../../components/layout/Footer';
2
+ import { default as RcSesFooter } from '../../components/layout/Footer';
3
3
  declare const meta: Meta<typeof RcSesFooter>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesFooter>;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesFullPageLoader } from '../../../components/loaders/FullPageLoader';
2
+ import { default as RcSesFullPageLoader } from '../../components/loaders/FullPageLoader';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof RcSesFullPageLoader;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesModal } from '../../../components/overlays/Modal';
2
+ import { default as RcSesModal } from '../../components/overlays/Modal';
3
3
  declare const meta: Meta<typeof RcSesModal>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesModal>;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
- import { SelectableCardListItemData, SelectableCardListProps } from '../../../components/common/SelectableCardList';
2
+ import { SelectableCardListItemData, SelectableCardListProps } from '../../components/common/SelectableCardList';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: (props: SelectableCardListProps) => import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesServiceFormActions } from '../../../components/layout/ServiceFormActions';
2
+ import { default as RcSesServiceFormActions } from '../../components/layout/ServiceFormActions';
3
3
  declare const meta: Meta<typeof RcSesServiceFormActions>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesServiceFormActions>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryContext } from '@storybook/react-vite';
2
- import { default as RcSesServiceFormContainer } from '../../../components/layout/ServiceFormContainer/AccordionFormContainer';
2
+ import { default as RcSesServiceFormContainer } from '../../components/layout/ServiceFormContainer/AccordionFormContainer';
3
3
  declare const meta: Meta<typeof RcSesServiceFormContainer>;
4
4
  export default meta;
5
5
  export declare const Main: {
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesServiceHeader } from '../../../components/layout/ServiceHeader';
2
+ import { default as RcSesServiceHeader } from '../../components/layout/ServiceHeader';
3
3
  declare const meta: Meta<typeof RcSesServiceHeader>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesServiceLinks } from '../../../components/common/ServiceLinks';
2
+ import { default as RcSesServiceLinks } from '../../components/common/ServiceLinks';
3
3
  declare const meta: Meta<typeof RcSesServiceLinks>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesServiceLinks>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as ServiceWizardStepper } from '../../../components/layout/ServiceWizardStepper';
2
+ import { default as ServiceWizardStepper } from '../../components/layout/ServiceWizardStepper';
3
3
  declare const meta: Meta<typeof ServiceWizardStepper>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof ServiceWizardStepper>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesSideNavLayout } from '../../../components/common/SideNav/SideNavLayout';
2
+ import { default as RcSesSideNavLayout } from '../../components/common/SideNav/SideNavLayout';
3
3
  declare const meta: Meta<typeof RcSesSideNavLayout>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof RcSesSideNavLayout>;
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { default as RcSesServicePage } from '../../../components/layout/ServicePage';
2
+ import { default as RcSesServicePage } from '../../components/layout/ServicePage';
3
3
  declare const meta: Meta<typeof RcSesServicePage>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -12,6 +12,7 @@ declare const card: {
12
12
  xs: string;
13
13
  md: string;
14
14
  };
15
+ footerGap: string;
15
16
  padding: {
16
17
  xs: string;
17
18
  md: string;
@@ -23,6 +24,7 @@ declare const subcard: {
23
24
  xs: string;
24
25
  md: string;
25
26
  };
27
+ footerGap: string;
26
28
  padding: {
27
29
  xs: string;
28
30
  md: string;
@@ -69,6 +71,7 @@ declare const _default: {
69
71
  xs: string;
70
72
  md: string;
71
73
  };
74
+ footerGap: string;
72
75
  padding: {
73
76
  xs: string;
74
77
  md: string;
@@ -91,6 +94,7 @@ declare const _default: {
91
94
  xs: string;
92
95
  md: string;
93
96
  };
97
+ footerGap: string;
94
98
  padding: {
95
99
  xs: string;
96
100
  md: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@registrucentras/rc-ses-react-components",
3
3
  "author": "VĮ REGISTRŲ CENTRAS",
4
- "version": "2.0.0-rc.6",
4
+ "version": "2.0.0-rc.7",
5
5
  "description": "RC SES React komponentų biblioteka",
6
6
  "type": "module",
7
7
  "private": false,
@@ -10,6 +10,15 @@ const justifyContent: Record<CardFooterAlign, string> = {
10
10
  start: 'flex-start',
11
11
  }
12
12
 
13
+ // On xs the Stack is column, so cross-axis alignment (alignItems) is what
14
+ // positions children horizontally. Mirror `align` onto it so `end` still
15
+ // renders on the right on mobile when children are not full-width.
16
+ const mobileAlignItems: Record<CardFooterAlign, string> = {
17
+ between: 'flex-start',
18
+ end: 'flex-end',
19
+ start: 'flex-start',
20
+ }
21
+
13
22
  function RcSesCardFooter({
14
23
  children,
15
24
  align = 'between',
@@ -24,7 +33,7 @@ function RcSesCardFooter({
24
33
  direction={{ xs: 'column', sm: 'row' }}
25
34
  spacing={cards.footer.gap}
26
35
  sx={{
27
- alignItems: 'center',
36
+ alignItems: { xs: mobileAlignItems[align], sm: 'center' },
28
37
  justifyContent: justifyContent[align],
29
38
  width: '100%',
30
39
  ...(stretchOnMobile ? { '& > *': { width: { xs: '100%', sm: 'auto' } } } : {}),
@@ -24,6 +24,12 @@ function RcSesCardShell({
24
24
  sx,
25
25
  ...boxProps
26
26
  }: ShellProps) {
27
+ const hasHeader = hasSlot(header)
28
+ const hasContent = hasSlot(children)
29
+ const hasFooter = hasSlot(footer)
30
+
31
+ const footerMt = hasHeader || hasContent ? cards[variant].footerGap : 0
32
+
27
33
  return (
28
34
  <Box
29
35
  {...boxProps}
@@ -42,31 +48,49 @@ function RcSesCardShell({
42
48
  ? 'none'
43
49
  : `${cards.borderWidth} solid ${cards.themes[theme].borderColor}`,
44
50
  borderRadius: cards[variant].borderRadius,
45
- gap: cards[variant].gap,
46
51
  p: cards[variant].padding,
47
52
  },
48
53
  ...(Array.isArray(sx) ? sx : [sx]),
49
54
  ]}
50
55
  >
51
- {hasSlot(header) ? (
52
- <Box data-testid={testIds?.header} sx={{ minWidth: 0, width: '100%' }}>
56
+ {hasHeader ? (
57
+ <Box
58
+ data-testid={testIds?.header}
59
+ sx={{
60
+ // When fullHeight has no content slot to grow, let the header take
61
+ // the free space so the footer's `mt: 'auto'` has room to expand
62
+ // above the footerGap minimum.
63
+ flexGrow: fullHeight && !hasContent ? 1 : 0,
64
+ minWidth: 0,
65
+ width: '100%',
66
+ }}
67
+ >
53
68
  {header}
54
69
  </Box>
55
70
  ) : null}
56
71
 
57
- {hasSlot(children) ? (
72
+ {hasContent ? (
58
73
  <Box
59
74
  data-testid={testIds?.content}
60
- sx={{ flexGrow: fullHeight ? 1 : 0, minWidth: 0, width: '100%' }}
75
+ sx={{
76
+ flexGrow: fullHeight ? 1 : 0,
77
+ minWidth: 0,
78
+ mt: hasHeader ? cards[variant].gap : 0,
79
+ width: '100%',
80
+ }}
61
81
  >
62
82
  {children}
63
83
  </Box>
64
84
  ) : null}
65
85
 
66
- {hasSlot(footer) ? (
86
+ {hasFooter ? (
67
87
  <Box
68
88
  data-testid={testIds?.footer}
69
- sx={{ minWidth: 0, mt: fullHeight ? 'auto' : 0, width: '100%' }}
89
+ sx={{
90
+ minWidth: 0,
91
+ mt: footerMt,
92
+ width: '100%',
93
+ }}
70
94
  >
71
95
  {footer}
72
96
  </Box>