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

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 (247) hide show
  1. package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +2 -2
  2. package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +2 -2
  3. package/dist/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.d.ts +2 -2
  4. package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.d.ts +2 -2
  5. package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.d.ts +2 -2
  6. package/dist/components/common/Badge/index.d.ts +2 -2
  7. package/dist/components/common/Breadcrumbs/index.d.ts +4 -4
  8. package/dist/components/common/Card/index.d.ts +2 -2
  9. package/dist/components/common/CardShell/CardFooter/index.d.ts +1 -1
  10. package/dist/components/common/CardShell/CardFooter/types.d.ts +4 -9
  11. package/dist/components/common/CardShell/types.d.ts +4 -4
  12. package/dist/components/common/IconWithCircularBackground.d.ts +2 -2
  13. package/dist/components/common/IconWithSquareBackground/index.d.ts +2 -2
  14. package/dist/components/common/ImageCard/index.d.ts +2 -2
  15. package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +2 -2
  16. package/dist/components/common/SelectableCardList/index.d.ts +2 -2
  17. package/dist/components/common/ServiceLinks/types.d.ts +6 -6
  18. package/dist/components/common/SideNav/SideNav.types.d.ts +7 -5
  19. package/dist/components/common/SideNav/SideNavLayout.d.ts +1 -1
  20. package/dist/components/common/SideNav/components/SideNavPill.d.ts +2 -2
  21. package/dist/components/common/SideNav/components/SideNavPillList.d.ts +2 -2
  22. package/dist/components/common/SideNav/components/SideNavRow.d.ts +4 -3
  23. package/dist/components/common/SideNav/hooks/useKeepActiveItemInView.d.ts +19 -0
  24. package/dist/components/common/SideNav/hooks/useSideNavScrollSpy.d.ts +2 -2
  25. package/dist/components/common/SideNav/index.d.ts +2 -2
  26. package/dist/components/common/Tabs/TabPanel.d.ts +2 -2
  27. package/dist/components/common/Tabs/TabsWrapper.d.ts +2 -2
  28. package/dist/components/common/TitleBlock/types.d.ts +4 -4
  29. package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +2 -2
  30. package/dist/components/form/components/FormControlWrapper/index.d.ts +2 -2
  31. package/dist/components/form/inputs/RadioButtonGroup.d.ts +3 -3
  32. package/dist/components/form/inputs/SearchableField.d.ts +2 -2
  33. package/dist/components/form/inputs/Select/Select.types.d.ts +2 -2
  34. package/dist/components/layout/Footer/index.d.ts +2 -2
  35. package/dist/components/layout/ServiceFormActions.d.ts +2 -2
  36. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.d.ts +2 -2
  37. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/index.d.ts +2 -2
  38. package/dist/components/layout/ServiceHeader.d.ts +2 -2
  39. package/dist/components/layout/ServicePage.d.ts +2 -2
  40. package/dist/components/utils/normalizeSx.d.ts +1 -1
  41. package/dist/library/types.d.ts +2 -2
  42. package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
  43. package/dist/registrucentras-rc-ses-react-components.js +1767 -1672
  44. package/dist/theme/cards.d.ts +4 -0
  45. package/dist/types/assets/IconProps.d.ts +2 -2
  46. package/dist/types/cards/CardServiceProps.d.ts +2 -2
  47. package/dist/types/common/QuickLinkType.d.ts +2 -2
  48. package/dist/types/inputs/InputIconProps.d.ts +2 -2
  49. package/dist/types/lists/ListNewsItemType.d.ts +2 -2
  50. package/dist/types/lists/ListServicesItemType.d.ts +3 -3
  51. package/package.json +2 -1
  52. package/src/components/common/Accordion/hooks/useAccordionController.tsx +1 -1
  53. package/src/components/common/Accordion/index.tsx +1 -4
  54. package/src/components/common/Accordion/types/AccordionControllerState.ts +1 -1
  55. package/src/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.ts +1 -1
  56. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +1 -1
  57. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +1 -1
  58. package/src/components/common/AdvancedList/components/AdvancedListItem/index.test.tsx +2 -2
  59. package/src/components/common/Badge/index.tsx +3 -3
  60. package/src/components/common/Breadcrumbs/index.tsx +5 -2
  61. package/src/components/common/Card/index.tsx +1 -1
  62. package/src/components/common/CardShell/CardFooter/index.tsx +5 -3
  63. package/src/components/common/CardShell/CardFooter/types.ts +2 -7
  64. package/src/components/common/CardShell/index.tsx +31 -7
  65. package/src/components/common/CardShell/types.ts +2 -2
  66. package/src/components/common/IconWithCircularBackground.tsx +7 -8
  67. package/src/components/common/IconWithSquareBackground/index.tsx +7 -8
  68. package/src/components/common/ImageCard/index.tsx +1 -1
  69. package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +18 -19
  70. package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +1 -1
  71. package/src/components/common/SelectableCardList/index.tsx +1 -1
  72. package/src/components/common/ServiceLinks/types.ts +3 -3
  73. package/src/components/common/SideNav/SideNav.types.ts +11 -3
  74. package/src/components/common/SideNav/SideNavLayout.tsx +3 -0
  75. package/src/components/common/SideNav/components/SideNavPill.tsx +1 -1
  76. package/src/components/common/SideNav/components/SideNavPillList.tsx +8 -23
  77. package/src/components/common/SideNav/components/SideNavRow.tsx +6 -2
  78. package/src/components/common/SideNav/hooks/useKeepActiveItemInView.test.ts +258 -0
  79. package/src/components/common/SideNav/hooks/useKeepActiveItemInView.ts +80 -0
  80. package/src/components/common/SideNav/hooks/useSideNavScrollSpy.test.ts +9 -2
  81. package/src/components/common/SideNav/hooks/useSideNavScrollSpy.ts +4 -3
  82. package/src/components/common/SideNav/index.test.tsx +51 -0
  83. package/src/components/common/SideNav/index.tsx +47 -12
  84. package/src/components/common/Snackbar/index.test.tsx +40 -0
  85. package/src/components/common/Snackbar/index.tsx +9 -3
  86. package/src/components/common/Tabs/TabPanel.tsx +1 -1
  87. package/src/components/common/Tabs/TabsWrapper.tsx +1 -1
  88. package/src/components/common/TitleBlock/index.test.tsx +9 -7
  89. package/src/components/common/TitleBlock/index.tsx +34 -11
  90. package/src/components/common/TitleBlock/types.ts +2 -2
  91. package/src/components/form/components/FormControlWrapper/components/FieldSuffix.tsx +1 -1
  92. package/src/components/form/components/FormControlWrapper/index.tsx +1 -1
  93. package/src/components/form/inputs/Datepicker/index.test.tsx +1 -1
  94. package/src/components/form/inputs/FileDropzone.tsx +1 -4
  95. package/src/components/form/inputs/NumberStepper.test.tsx +83 -0
  96. package/src/components/form/inputs/NumberStepper.tsx +7 -8
  97. package/src/components/form/inputs/RadioButtonGroup.test.tsx +1 -1
  98. package/src/components/form/inputs/RadioButtonGroup.tsx +2 -2
  99. package/src/components/form/inputs/SearchInput/index.tsx +1 -1
  100. package/src/components/form/inputs/SearchableField.test.tsx +2 -2
  101. package/src/components/form/inputs/SearchableField.tsx +1 -1
  102. package/src/components/form/inputs/Select/Select.types.ts +1 -1
  103. package/src/components/form/inputs/Select/index.test.tsx +3 -3
  104. package/src/components/layout/Footer/index.tsx +1 -1
  105. package/src/components/layout/ServiceFormActions.tsx +1 -1
  106. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +1 -1
  107. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +1 -1
  108. package/src/components/layout/ServiceHeader.tsx +1 -1
  109. package/src/components/layout/ServicePage.tsx +1 -1
  110. package/src/components/utils/normalizeSx.ts +2 -4
  111. package/src/examples/ListWithPagination/index.tsx +0 -2
  112. package/src/examples/MultipleStepForm/components/AdditionalServicesForm.tsx +1 -1
  113. package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +1 -1
  114. package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +1 -1
  115. package/src/examples/MultipleStepForm/types/MultiStepFormModel.ts +1 -1
  116. package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +2 -2
  117. package/src/examples/SingleStepForm/types/SingleStepFormModel.ts +1 -1
  118. package/src/library/types.ts +2 -1
  119. package/src/stories/Welcome.mdx +25 -2
  120. package/src/stories/{components/display → atoms}/Badge.stories.tsx +1 -1
  121. package/src/stories/{components/actions → atoms}/Button.stories.tsx +10 -15
  122. package/src/stories/{components/inputs → atoms}/Checkbox.stories.tsx +2 -2
  123. package/src/stories/{components/icons → atoms}/IconWithCircularBackground.stories.tsx +1 -1
  124. package/src/stories/{components/icons → atoms}/IconWithSquareBackground.stories.tsx +1 -1
  125. package/src/stories/{components/icons → atoms}/Icons.stories.tsx +2 -2
  126. package/src/stories/{components/loaders → atoms}/Loader.stories.tsx +1 -1
  127. package/src/stories/{components/loaders → atoms}/LoadingSpinner.stories.tsx +1 -1
  128. package/src/stories/{assets → atoms}/Logo.stories.tsx +1 -1
  129. package/src/stories/{components/inputs → atoms}/NumberStepper.stories.tsx +2 -2
  130. package/src/stories/{components/inputs → atoms}/PhoneInput.stories.tsx +2 -2
  131. package/src/stories/{components/inputs → atoms}/SearchInput.stories.tsx +1 -1
  132. package/src/stories/{components/inputs → atoms}/Select.stories.tsx +8 -10
  133. package/src/stories/{components/form → atoms}/SimpleCheckbox.stories.tsx +1 -1
  134. package/src/stories/{components/inputs → atoms}/Switch.stories.tsx +2 -2
  135. package/src/stories/{components/tabs → atoms}/Tab.stories.tsx +1 -1
  136. package/src/stories/{components/inputs → atoms}/TextField.stories.tsx +1 -1
  137. package/src/stories/{components/display → atoms}/Tooltip.stories.tsx +2 -2
  138. package/src/stories/{theme → foundations}/ThemedMuiComponents.stories.tsx +1 -1
  139. package/src/stories/{components/feedback → molecules}/Alert.stories.tsx +3 -3
  140. package/src/stories/{components/navigation → molecules}/Breadcrumbs.stories.tsx +1 -1
  141. package/src/stories/{components/actions → molecules}/ButtonWithPopover.stories.tsx +1 -1
  142. package/src/stories/{components/display → molecules}/Card.stories.tsx +1 -1
  143. package/src/stories/{components/display → molecules}/CardShell.stories.tsx +20 -1
  144. package/src/stories/{components/form → molecules}/CheckboxFormControl.stories.tsx +14 -22
  145. package/src/stories/{components/inputs → molecules}/DatePicker.stories.tsx +1 -1
  146. package/src/stories/{components/form → molecules}/FormControlWrapper.stories.tsx +1 -1
  147. package/src/stories/{components/display → molecules}/ImageCard.stories.tsx +1 -1
  148. package/src/stories/{components/display → molecules}/ListWithIcons.stories.tsx +1 -1
  149. package/src/stories/{components/inputs → molecules}/PhoneInputFormControl.stories.tsx +1 -1
  150. package/src/stories/{components/overlays → molecules}/Popover.stories.tsx +1 -1
  151. package/src/stories/{components/inputs → molecules}/RadioButtonGroup.stories.tsx +2 -2
  152. package/src/stories/{components/inputs → molecules}/SearchableField.stories.tsx +1 -1
  153. package/src/stories/{components/display → molecules}/SegmentedControl.stories.tsx +2 -2
  154. package/src/stories/{components/feedback → molecules}/Snackbar.stories.tsx +3 -3
  155. package/src/stories/{components/tabs → molecules}/TabPanel.stories.tsx +1 -1
  156. package/src/stories/{components/tabs → molecules}/Tabs.stories.tsx +1 -1
  157. package/src/stories/{components/tabs → molecules}/TabsWrapper.stories.tsx +1 -1
  158. package/src/stories/{components/display → molecules}/TitleBlock.stories.tsx +65 -3
  159. package/src/stories/{components/navigation → organisms}/Accordion.stories.tsx +1 -1
  160. package/src/stories/{components/display → organisms}/AdvancedList.stories.tsx +5 -5
  161. package/src/stories/{components/display → organisms}/AdvancedListItem.stories.tsx +1 -1
  162. package/src/stories/{components/form → organisms}/CardFormContainer.stories.tsx +1 -1
  163. package/src/stories/{components/navigation → organisms}/DataPagination.stories.tsx +1 -1
  164. package/src/stories/{components/overlays → organisms}/Dialog.stories.tsx +1 -1
  165. package/src/stories/{components/inputs → organisms}/FileDropzone.stories.tsx +2 -2
  166. package/src/stories/{components/inputs → organisms}/FileUpload.stories.tsx +2 -2
  167. package/src/stories/{components/layout → organisms}/Footer.stories.tsx +1 -1
  168. package/src/stories/{components/loaders → organisms}/FullPageLoader.stories.tsx +1 -1
  169. package/src/stories/{components/overlays → organisms}/Modal.stories.tsx +1 -1
  170. package/src/stories/{components/display → organisms}/SelectableCardList.stories.tsx +1 -1
  171. package/src/stories/{components/form → organisms}/ServiceFormActions.stories.tsx +1 -1
  172. package/src/stories/{components/form → organisms}/ServiceFormContainer.stories.tsx +1 -1
  173. package/src/stories/{components/layout → organisms}/ServiceHeader.stories.tsx +1 -1
  174. package/src/stories/{components/display → organisms}/ServiceLinks.stories.tsx +1 -1
  175. package/src/stories/{components/navigation → organisms}/ServiceWizardStepper.stories.tsx +3 -3
  176. package/src/stories/{components/navigation → organisms}/SideNav.stories.tsx +37 -4
  177. package/src/stories/{components/layout → templates}/ServicePage.stories.tsx +1 -1
  178. package/src/stubs/Component.tsx +4 -4
  179. package/src/theme/cards.ts +2 -0
  180. package/src/types/assets/IconProps.tsx +1 -1
  181. package/src/types/cards/CardServiceProps.tsx +1 -1
  182. package/src/types/common/QuickLinkType.tsx +1 -1
  183. package/src/types/inputs/InputIconProps.tsx +1 -1
  184. package/src/types/lists/ListNewsItemType.tsx +1 -1
  185. package/src/types/lists/ListServicesItemType.tsx +2 -2
  186. package/src/vite-env.d.ts +2 -2
  187. package/dist/stories/assets/Logo.stories.d.ts +0 -12
  188. package/dist/stories/components/actions/Button.stories.d.ts +0 -107
  189. package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +0 -7
  190. package/dist/stories/components/display/AdvancedList.stories.d.ts +0 -33
  191. package/dist/stories/components/display/AdvancedListItem.stories.d.ts +0 -33
  192. package/dist/stories/components/display/Badge.stories.d.ts +0 -9
  193. package/dist/stories/components/display/Card.stories.d.ts +0 -8
  194. package/dist/stories/components/display/CardShell.stories.d.ts +0 -17
  195. package/dist/stories/components/display/ImageCard.stories.d.ts +0 -8
  196. package/dist/stories/components/display/ListWithIcons.stories.d.ts +0 -34
  197. package/dist/stories/components/display/SegmentedControl.stories.d.ts +0 -202
  198. package/dist/stories/components/display/SelectableCardList.stories.d.ts +0 -37
  199. package/dist/stories/components/display/ServiceLinks.stories.d.ts +0 -28
  200. package/dist/stories/components/display/TitleBlock.stories.d.ts +0 -21
  201. package/dist/stories/components/display/Tooltip.stories.d.ts +0 -48
  202. package/dist/stories/components/feedback/Alert.stories.d.ts +0 -14
  203. package/dist/stories/components/feedback/Snackbar.stories.d.ts +0 -143
  204. package/dist/stories/components/form/CardFormContainer.stories.d.ts +0 -7
  205. package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +0 -9
  206. package/dist/stories/components/form/FormControlWrapper.stories.d.ts +0 -7
  207. package/dist/stories/components/form/ServiceFormActions.stories.d.ts +0 -6
  208. package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +0 -15
  209. package/dist/stories/components/form/SimpleCheckbox.stories.d.ts +0 -19
  210. package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +0 -6
  211. package/dist/stories/components/icons/IconWithSquareBackground.stories.d.ts +0 -7
  212. package/dist/stories/components/icons/Icons.stories.d.ts +0 -7
  213. package/dist/stories/components/inputs/Checkbox.stories.d.ts +0 -21
  214. package/dist/stories/components/inputs/DatePicker.stories.d.ts +0 -152
  215. package/dist/stories/components/inputs/FileDropzone.stories.d.ts +0 -6
  216. package/dist/stories/components/inputs/FileUpload.stories.d.ts +0 -18
  217. package/dist/stories/components/inputs/NumberStepper.stories.d.ts +0 -6
  218. package/dist/stories/components/inputs/PhoneInput.stories.d.ts +0 -10
  219. package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +0 -6
  220. package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +0 -6
  221. package/dist/stories/components/inputs/SearchInput.stories.d.ts +0 -11
  222. package/dist/stories/components/inputs/SearchableField.stories.d.ts +0 -6
  223. package/dist/stories/components/inputs/Select.stories.d.ts +0 -7
  224. package/dist/stories/components/inputs/Switch.stories.d.ts +0 -17
  225. package/dist/stories/components/inputs/TextField.stories.d.ts +0 -6
  226. package/dist/stories/components/layout/Footer.stories.d.ts +0 -6
  227. package/dist/stories/components/layout/ServiceHeader.stories.d.ts +0 -7
  228. package/dist/stories/components/layout/ServicePage.stories.d.ts +0 -6
  229. package/dist/stories/components/loaders/FullPageLoader.stories.d.ts +0 -37
  230. package/dist/stories/components/loaders/Loader.stories.d.ts +0 -36
  231. package/dist/stories/components/loaders/LoadingSpinner.stories.d.ts +0 -62
  232. package/dist/stories/components/navigation/Accordion.stories.d.ts +0 -18
  233. package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +0 -6
  234. package/dist/stories/components/navigation/DataPagination.stories.d.ts +0 -47
  235. package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +0 -7
  236. package/dist/stories/components/navigation/SideNav.stories.d.ts +0 -7
  237. package/dist/stories/components/overlays/Dialog.stories.d.ts +0 -15
  238. package/dist/stories/components/overlays/Modal.stories.d.ts +0 -10
  239. package/dist/stories/components/overlays/Popover.stories.d.ts +0 -12
  240. package/dist/stories/components/tabs/Tab.stories.d.ts +0 -8
  241. package/dist/stories/components/tabs/TabPanel.stories.d.ts +0 -7
  242. package/dist/stories/components/tabs/Tabs.stories.d.ts +0 -7
  243. package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +0 -6
  244. package/dist/stories/theme/ThemedMuiComponents.stories.d.ts +0 -25
  245. package/src/stories/components/display/Card.test.tsx +0 -19
  246. /package/src/stories/{components/actions → atoms}/Button.test.ts +0 -0
  247. /package/src/stories/{Colors.mdx → foundations/Colors.mdx} +0 -0
@@ -5,7 +5,7 @@ import { useForm } from 'react-hook-form'
5
5
  import RcSesPhoneInputFormControl from '@/components/form/inputs/PhoneInputFormControl'
6
6
 
7
7
  const meta: Meta<typeof RcSesPhoneInputFormControl> = {
8
- title: 'components/inputs/PhoneInputFormControl',
8
+ title: 'Molecules/PhoneInputFormControl',
9
9
  component: RcSesPhoneInputFormControl,
10
10
  tags: ['autodocs'],
11
11
  argTypes: {
@@ -10,7 +10,7 @@ import RcSesPopover from '@/components/common/Popover'
10
10
  * These stories render the popover itself, already open against a fixed anchor.
11
11
  */
12
12
  const meta: Meta<typeof RcSesPopover> = {
13
- title: 'components/overlays/Popover',
13
+ title: 'Molecules/Popover',
14
14
  component: RcSesPopover,
15
15
  tags: ['autodocs'],
16
16
  argTypes: {
@@ -7,14 +7,14 @@ import FieldView from '@/components/storybook/FieldView'
7
7
  import Fields from '@/components/storybook/Fields'
8
8
  import PreviewTitle from '@/components/storybook/PreviewTitle'
9
9
 
10
- type FormModel = {
10
+ interface FormModel {
11
11
  chooseOne: string
12
12
  }
13
13
 
14
14
  const variants = ['outlined', 'filled', 'flat']
15
15
 
16
16
  const meta: Meta<typeof RcSesRadioButtonGroup> = {
17
- title: 'components/inputs/RadioButtonGroup',
17
+ title: 'Molecules/RadioButtonGroup',
18
18
  component: RcSesRadioButtonGroup,
19
19
  argTypes: {
20
20
  variant: {
@@ -6,7 +6,7 @@ import ObjectIdentifierSearchModal from '@/examples/SingleStepForm/components/Ob
6
6
  import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
7
7
 
8
8
  const meta: Meta<typeof RcSesSearchableField> = {
9
- title: 'components/inputs/SearchableField',
9
+ title: 'Molecules/SearchableField',
10
10
  component: RcSesSearchableField,
11
11
  tags: ['autodocs'],
12
12
  }
@@ -1,10 +1,10 @@
1
1
  import type { Meta } from '@storybook/react-vite'
2
2
  import { useState } from 'react'
3
3
 
4
- import RcSesSegmentedControl from '../../../components/common/SegmentedControl'
4
+ import RcSesSegmentedControl from '@/components/common/SegmentedControl'
5
5
 
6
6
  const meta = {
7
- title: 'components/display/SegmentedControl',
7
+ title: 'Molecules/SegmentedControl',
8
8
  component: RcSesSegmentedControl,
9
9
  parameters: {
10
10
  layout: 'centered',
@@ -20,7 +20,7 @@ const getStateLabel = (state: SnackbarState): string =>
20
20
  state.charAt(0).toUpperCase() + state.slice(1).replace('-', ' ')
21
21
 
22
22
  const meta: Meta<typeof RcSesSnackbar> = {
23
- title: 'components/feedback/Snackbar',
23
+ title: 'Molecules/Snackbar',
24
24
  component: RcSesSnackbar,
25
25
  tags: ['autodocs'],
26
26
  decorators: [
@@ -160,7 +160,7 @@ function SnackbarDemoCompactWithText() {
160
160
  <Button
161
161
  key={snackbarState}
162
162
  variant='contained'
163
- color={getButtonColor(snackbarState) as any}
163
+ color={getButtonColor(snackbarState)}
164
164
  startIcon={<Icon />}
165
165
  onClick={() =>
166
166
  showSnackbar({ state: snackbarState, message, size: 'compact' })
@@ -233,7 +233,7 @@ function SnackbarDemoStandardWithButtons() {
233
233
  <Button
234
234
  key={snackbarState}
235
235
  variant='contained'
236
- color={getButtonColor(snackbarState) as any}
236
+ color={getButtonColor(snackbarState)}
237
237
  startIcon={<Icon />}
238
238
  onClick={() =>
239
239
  showSnackbar({
@@ -3,7 +3,7 @@ import { Meta, StoryObj } from '@storybook/react-vite'
3
3
  import RcSesTabPanel from '@/components/common/Tabs/TabPanel'
4
4
 
5
5
  const meta: Meta<typeof RcSesTabPanel> = {
6
- title: 'components/tabs/TabPanel',
6
+ title: 'Molecules/TabPanel',
7
7
  component: RcSesTabPanel,
8
8
  tags: ['autodocs'],
9
9
  }
@@ -6,7 +6,7 @@ import RcSesTab from '@/components/common/Tabs/Tab'
6
6
  import RcSesTabs from '@/components/common/Tabs/Tabs'
7
7
 
8
8
  const meta: Meta<typeof RcSesTabs> = {
9
- title: 'components/tabs/Tabs',
9
+ title: 'Molecules/Tabs',
10
10
  component: RcSesTabs,
11
11
  tags: ['autodocs'],
12
12
  argTypes: {
@@ -6,7 +6,7 @@ import RcSesTabs from '@/components/common/Tabs/Tabs'
6
6
  import RcSesTabsWrapper from '@/components/common/Tabs/TabsWrapper'
7
7
 
8
8
  const meta: Meta<typeof RcSesTabsWrapper> = {
9
- title: 'components/tabs/TabsWrapper',
9
+ title: 'Molecules/TabsWrapper',
10
10
  component: RcSesTabsWrapper,
11
11
  tags: ['autodocs'],
12
12
  argTypes: {
@@ -12,7 +12,7 @@ import RcSesTitleBlock from '@/components/common/TitleBlock'
12
12
  import palette from '@/theme/palette'
13
13
 
14
14
  const meta: Meta<typeof RcSesTitleBlock> = {
15
- title: 'components/display/TitleBlock',
15
+ title: 'Molecules/TitleBlock',
16
16
  component: RcSesTitleBlock,
17
17
  tags: ['autodocs'],
18
18
  parameters: {
@@ -30,7 +30,7 @@ export default meta
30
30
  type Story = StoryObj<typeof RcSesTitleBlock>
31
31
 
32
32
  const FooterLink = ({ label, href }: { label: string; href: string }) => (
33
- <RcSesCardFooter align='start' stretchOnMobile={false}>
33
+ <RcSesCardFooter align='start'>
34
34
  <RcSesButton
35
35
  variant='link'
36
36
  href={href}
@@ -221,6 +221,45 @@ export const RowListWithIcons: Story = {
221
221
  },
222
222
  }
223
223
 
224
+ export const RowListWithIconsAndLongText: Story = {
225
+ render: () => {
226
+ const rowAId = 'row-list-long-text-a'
227
+ const rowBId = 'row-list-long-text-b'
228
+ return (
229
+ <Stack divider={<Divider flexItem />} spacing={3}>
230
+ <RcSesTitleBlock
231
+ headingId={rowAId}
232
+ title='Santuoką liudijančio įrašo, patvirtinančio santuokos sudarymo faktą užsienio valstybėje, užsakymas su visomis papildomomis pastabomis'
233
+ description='Oficialus santuokos faktą patvirtinantis įrašas, apimantis visus civilinės metrikacijos duomenis, reikalingus tolimesnėms teisinėms procedūroms tiek Lietuvoje, tiek užsienyje. Įrašas gali būti pateikiamas įvairioms institucijoms ir naudojamas kaip oficialus patvirtinimas.'
234
+ titleTone='brand'
235
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
236
+ actions={
237
+ <RcSesButton
238
+ variant='link'
239
+ id={`${rowAId}-cta`}
240
+ aria-labelledby={`${rowAId}-cta ${rowAId}`}
241
+ >
242
+ Plačiau
243
+ </RcSesButton>
244
+ }
245
+ />
246
+ <RcSesTitleBlock
247
+ headingId={rowBId}
248
+ title='Pažymos, patvirtinančios, kad nėra kliūčių Lietuvos Respublikos piliečiui sudaryti santuoką užsienio valstybėje, užsakymas'
249
+ description='Ši pažyma reikalinga tais atvejais, kai Lietuvos Respublikos pilietis planuoja sudaryti santuoką užsienio valstybėje ir vietos civilinės metrikacijos institucija reikalauja oficialaus patvirtinimo, kad asmens šeiminė padėtis Lietuvoje neturi kliūčių santuokos sudarymui.'
250
+ titleTone='brand'
251
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
252
+ actions={
253
+ <RcSesButton id={`${rowBId}-cta`} aria-labelledby={`${rowBId}-cta ${rowBId}`}>
254
+ Užsakyti
255
+ </RcSesButton>
256
+ }
257
+ />
258
+ </Stack>
259
+ )
260
+ },
261
+ }
262
+
224
263
  export const RowListWithIconsAndTwoActions: Story = {
225
264
  render: () => {
226
265
  const rowAId = 'row-list-two-actions-a'
@@ -434,7 +473,8 @@ export const BodyScaleTitleInCard: Story = {
434
473
  const services = [
435
474
  {
436
475
  id: 'body-scale-title-a',
437
- title: 'Pažymos apie asmens duomenis Gyventojų registre užsakymas',
476
+ title:
477
+ 'Pažymos apie asmens duomenis Gyventojų registre užsakymas. Labai ilgas tekstas, skirtas testavimui.',
438
478
  },
439
479
  {
440
480
  id: 'body-scale-title-b',
@@ -570,3 +610,25 @@ export const TabletViewport: Story = {
570
610
  tags: ['viewport-768', '!autodocs'],
571
611
  globals: { viewport: { value: 'tablet768' } },
572
612
  }
613
+
614
+ // Pins the vertical-orientation mobile treatment (compressed
615
+ // title, left-aligned link footer inside CardShell) so any regression in the
616
+ // responsive gap/breakpoint stack shows up in the visual diff.
617
+ export const VerticalMobileViewport: Story = {
618
+ render: () => (
619
+ <RcSesCardShell
620
+ variant='card'
621
+ theme='default'
622
+ footer={<FooterLink label='Peržiūrėti DUK' href='#' />}
623
+ >
624
+ <RcSesTitleBlock
625
+ orientation='vertical'
626
+ title='DUK'
627
+ description='Atsakymai į dažniausiai užduodamus klausimus apie paslaugas ir savitarną.'
628
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
629
+ />
630
+ </RcSesCardShell>
631
+ ),
632
+ tags: ['viewport-375', '!autodocs'],
633
+ globals: { viewport: { value: 'mobile375' } },
634
+ }
@@ -6,7 +6,7 @@ import RcSesServiceFormContainer from '@/components/layout/ServiceFormContainer/
6
6
  import FieldView from '@/components/storybook/FieldView'
7
7
 
8
8
  const meta: Meta<typeof RcSesAccordion> = {
9
- title: 'components/navigation/Accordion',
9
+ title: 'Organisms/Accordion',
10
10
  component: RcSesAccordion,
11
11
  argTypes: {
12
12
  disabled: {
@@ -13,7 +13,7 @@ import {
13
13
  } from '@mui/material'
14
14
  import type { Meta, StoryObj } from '@storybook/react-vite'
15
15
  import { useState } from 'react'
16
- import { useForm } from 'react-hook-form'
16
+ import { useForm, useWatch } from 'react-hook-form'
17
17
 
18
18
  import InfoFillIcon from '@/assets/icons/InfoFillIcon'
19
19
  import NotePencilIcon from '@/assets/icons/NotePencilIcon'
@@ -30,7 +30,7 @@ const buildItems = (): AdvancedListItemData[] =>
30
30
  }))
31
31
 
32
32
  const meta = {
33
- title: 'components/display/AdvancedList',
33
+ title: 'Organisms/AdvancedList',
34
34
  component: AdvancedList,
35
35
  tags: ['autodocs'],
36
36
  args: {
@@ -196,7 +196,7 @@ export const OwnerTypeExpand: Story = {
196
196
  render: () => <OwnerTypeExpandStory />,
197
197
  }
198
198
 
199
- type OwnerBranchFormModel = {
199
+ interface OwnerBranchFormModel {
200
200
  individual: { municipality: string | null }
201
201
  legalEntity: { legalForm: string | null }
202
202
  }
@@ -224,14 +224,14 @@ const RadioBranchFormStory = () => {
224
224
  const [ownerTypeId, setOwnerTypeId] = useState(OWNER_TYPE_OPTIONS[0].id)
225
225
  const [shouldUnregister, setShouldUnregister] = useState(true)
226
226
 
227
- const { control, watch } = useForm<OwnerBranchFormModel>({
227
+ const { control } = useForm<OwnerBranchFormModel>({
228
228
  defaultValues: {
229
229
  individual: { municipality: null },
230
230
  legalEntity: { legalForm: null },
231
231
  },
232
232
  })
233
233
 
234
- const formState = watch()
234
+ const formState = useWatch({ control })
235
235
 
236
236
  // The non-selected branch stays in form state when shouldUnregister is off, so the
237
237
  // submitted payload is built from the selected branch instead of the whole form.
@@ -17,7 +17,7 @@ import UserIcon from '@/assets/icons/UserIcon'
17
17
  import AdvancedListItem from '@/components/common/AdvancedList/components/AdvancedListItem'
18
18
 
19
19
  const meta = {
20
- title: 'components/display/AdvancedListItem',
20
+ title: 'Organisms/AdvancedListItem',
21
21
  component: AdvancedListItem,
22
22
  tags: ['autodocs'],
23
23
  args: {
@@ -22,7 +22,7 @@ const longSteps: StepItem[] = [
22
22
  ]
23
23
 
24
24
  const meta: Meta<typeof RcSesCardFormContainer> = {
25
- title: 'components/form/CardFormContainer',
25
+ title: 'Organisms/CardFormContainer',
26
26
  component: RcSesCardFormContainer,
27
27
  tags: ['autodocs'],
28
28
  argTypes: {
@@ -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/navigation/DataPagination',
8
+ title: 'Organisms/DataPagination',
9
9
  component: DataPagination,
10
10
  tags: ['autodocs'],
11
11
  args: {
@@ -7,7 +7,7 @@ import RcSesDialog, { RcSesDialogProps } from '@/components/overlays/Dialog'
7
7
 
8
8
  const meta: Meta<typeof RcSesDialog> = {
9
9
  component: RcSesDialog,
10
- title: 'components/overlays/Dialog',
10
+ title: 'Organisms/Dialog',
11
11
  parameters: {
12
12
  layout: 'centered',
13
13
  },
@@ -7,14 +7,14 @@ import FieldView from '@/components/storybook/FieldView'
7
7
  import Fields from '@/components/storybook/Fields'
8
8
  import PreviewTitle from '@/components/storybook/PreviewTitle'
9
9
 
10
- type FormModel = {
10
+ interface FormModel {
11
11
  documents: File[]
12
12
  documentsDisabled: File[]
13
13
  documentsError: File[]
14
14
  }
15
15
 
16
16
  const meta: Meta<typeof RcSesFileDropzone> = {
17
- title: 'components/inputs/FileDropzone',
17
+ title: 'Organisms/FileDropzone',
18
18
  component: RcSesFileDropzone,
19
19
  argTypes: {
20
20
  control: { table: { disable: true } },
@@ -7,14 +7,14 @@ import FieldView from '@/components/storybook/FieldView'
7
7
  import Fields from '@/components/storybook/Fields'
8
8
  import PreviewTitle from '@/components/storybook/PreviewTitle'
9
9
 
10
- type FormModel = {
10
+ interface FormModel {
11
11
  uploadFile: string
12
12
  uploadFile2: string
13
13
  uploadFile3: string
14
14
  }
15
15
 
16
16
  const meta: Meta<typeof RcSesFileUpload> = {
17
- title: 'components/inputs/FileUpload',
17
+ title: 'Organisms/FileUpload',
18
18
  component: RcSesFileUpload,
19
19
  argTypes: {
20
20
  control: {
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
3
3
  import RcSesFooter from '@/components/layout/Footer'
4
4
 
5
5
  const meta: Meta<typeof RcSesFooter> = {
6
- title: 'components/layout/Footer',
6
+ title: 'Organisms/Footer',
7
7
  component: RcSesFooter,
8
8
  tags: ['autodocs'],
9
9
  }
@@ -4,7 +4,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
4
4
  import RcSesFullPageLoader from '@/components/loaders/FullPageLoader'
5
5
 
6
6
  const meta = {
7
- title: 'components/loaders/FullPageLoader/FullPageLoader',
7
+ title: 'Organisms/FullPageLoader',
8
8
  component: RcSesFullPageLoader,
9
9
  tags: ['autodocs'],
10
10
  parameters: {
@@ -6,7 +6,7 @@ import RcSesModal from '@/components/overlays/Modal'
6
6
 
7
7
  const meta: Meta<typeof RcSesModal> = {
8
8
  component: RcSesModal,
9
- title: 'components/overlays/Modal',
9
+ title: 'Organisms/Modal',
10
10
  parameters: {
11
11
  layout: 'centered',
12
12
  },
@@ -56,7 +56,7 @@ const buildItems = (): SelectableCardListItemData[] =>
56
56
  }))
57
57
 
58
58
  const meta = {
59
- title: 'components/display/SelectableCardList',
59
+ title: 'Organisms/SelectableCardList',
60
60
  component: SelectableCardList,
61
61
  tags: ['autodocs'],
62
62
  parameters: {
@@ -5,7 +5,7 @@ import FieldView from '@/components/storybook/FieldView'
5
5
  import Fields from '@/components/storybook/Fields'
6
6
 
7
7
  const meta: Meta<typeof RcSesServiceFormActions> = {
8
- title: 'components/form/ServiceFormActions',
8
+ title: 'Organisms/ServiceFormActions',
9
9
  component: RcSesServiceFormActions,
10
10
  tags: ['autodocs'],
11
11
  }
@@ -9,7 +9,7 @@ import Fields from '@/components/storybook/Fields'
9
9
  import BasicInformationForm from '@/examples/MultipleStepForm/components/BasicInformationForm'
10
10
 
11
11
  const meta: Meta<typeof RcSesServiceFormContainer> = {
12
- title: 'components/form/ServiceFormContainer',
12
+ title: 'Organisms/ServiceFormContainer',
13
13
  component: RcSesServiceFormContainer,
14
14
  argTypes: {
15
15
  accordionController: {
@@ -6,7 +6,7 @@ import RcSesServiceHeader from '@/components/layout/ServiceHeader'
6
6
  import { common, grey } from '@/theme/palette'
7
7
 
8
8
  const meta: Meta<typeof RcSesServiceHeader> = {
9
- title: 'components/layout/ServiceHeader',
9
+ title: 'Organisms/ServiceHeader',
10
10
  component: RcSesServiceHeader,
11
11
  tags: ['autodocs'],
12
12
  argTypes: {
@@ -20,7 +20,7 @@ const baseItems: RcSesServiceLinkItem[] = [
20
20
  ]
21
21
 
22
22
  const meta: Meta<typeof RcSesServiceLinks> = {
23
- title: 'components/display/ServiceLinks',
23
+ title: 'Organisms/ServiceLinks',
24
24
  component: RcSesServiceLinks,
25
25
  tags: ['autodocs'],
26
26
  parameters: {
@@ -1,8 +1,8 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
  import { useState } from 'react'
3
3
 
4
- import ServiceWizardStepper from '../../../components/layout/ServiceWizardStepper'
5
- import { StepItem } from '../../../components/layout/ServiceWizardStepper/StepperTypes'
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: 'components/navigation/ServiceWizardStepper',
14
+ title: 'Organisms/ServiceWizardStepper',
15
15
  component: ServiceWizardStepper,
16
16
  tags: ['autodocs'],
17
17
  argTypes: {
@@ -15,12 +15,24 @@ const ITEMS: RcSesSideNavItem[] = [
15
15
  { id: 'marriage', label: 'Santuoka ir skyrybos', count: 7 },
16
16
  ]
17
17
 
18
+ // The upper end of the supported range (1-12), where the list no longer fits the
19
+ // viewport and the Overflow=Scroll variant earns its keep.
20
+ const MANY_ITEMS: RcSesSideNavItem[] = [
21
+ ...ITEMS,
22
+ { id: 'spatial', label: 'Erdviniai duomenys', count: 13 },
23
+ { id: 'forests', label: 'Miškai', count: 14 },
24
+ { id: 'mortgage', label: 'Hipoteka ir įkeitimai', count: 8 },
25
+ { id: 'value', label: 'Turto vertė ir sandorių duomenys', count: 12 },
26
+ { id: 'addresses', label: 'Adresai', count: 3 },
27
+ { id: 'contracts', label: 'Nekilnojamojo turto sutartys', count: 12 },
28
+ ]
29
+
18
30
  const SECTION_HEIGHT = 320
19
31
 
20
- function Sections() {
32
+ function Sections({ items = ITEMS }: { items?: RcSesSideNavItem[] }) {
21
33
  return (
22
34
  <>
23
- {ITEMS.map((item) => (
35
+ {items.map((item) => (
24
36
  <Box
25
37
  key={item.id}
26
38
  id={item.id}
@@ -43,14 +55,14 @@ function Sections() {
43
55
  }
44
56
 
45
57
  const meta: Meta<typeof RcSesSideNavLayout> = {
46
- title: 'components/navigation/SideNav',
58
+ title: 'Organisms/SideNav',
47
59
  component: RcSesSideNavLayout,
48
60
  tags: ['autodocs'],
49
61
  parameters: {
50
62
  docs: {
51
63
  description: {
52
64
  component:
53
- 'RcSesSideNavLayout is the only supported way to use this component - it lays out the sticky nav column (a topic list on desktop, a horizontally scrollable pill bar on mobile) alongside its section children, which is what guarantees the desktop sticky behavior works. By default (no `activeItemId`) it tracks scroll position itself and scrolls the page on click - pass `activeItemId`/`onItemClick` to take full control instead. See `WithScrollSpy` for the default, self-contained behavior; `Main` demonstrates the fully-controlled mode, which is why it wires the state itself.',
65
+ 'RcSesSideNavLayout is the only supported way to use this component - it lays out the sticky nav column (a topic list on desktop, a horizontally scrollable pill bar on mobile) alongside its section children, which is what guarantees the desktop sticky behavior works. By default (no `activeItemId`) it tracks scroll position itself and scrolls the page on click - pass `activeItemId`/`onItemClick` to take full control instead. See `WithScrollSpy` for the default, self-contained behavior; `Main` demonstrates the fully-controlled mode, which is why it wires the state itself. `overflow` decides what happens when there are more topics than fit the screen - see `WithScrollOverflow`.',
54
66
  },
55
67
  },
56
68
  },
@@ -108,3 +120,24 @@ export const WithScrollSpy: Story = {
108
120
  },
109
121
  },
110
122
  }
123
+
124
+ export const WithScrollOverflow: Story = {
125
+ // Only visible at a real viewport height: the visual baseline is a fullPage
126
+ // capture, which stretches the viewport to the whole page and so leaves the
127
+ // 100vh cap with nothing to cut off.
128
+ render: () => (
129
+ <FieldView>
130
+ <RcSesSideNavLayout items={MANY_ITEMS} title='Temos' overflow='scroll'>
131
+ <Sections items={MANY_ITEMS} />
132
+ </RcSesSideNavLayout>
133
+ </FieldView>
134
+ ),
135
+ parameters: {
136
+ docs: {
137
+ description: {
138
+ story:
139
+ "`overflow='scroll'` caps the desktop list to the viewport (minus `offset`) and scrolls it inside itself, so a long topic list no longer runs off the bottom of the screen. As the scroll-spy moves the active topic past either edge of that list, the list scrolls just far enough to keep it visible - smoothly, unless the user prefers reduced motion. The default, `overflow='fit'`, lets the list grow as tall as it needs to.",
140
+ },
141
+ },
142
+ },
143
+ }
@@ -4,7 +4,7 @@ import { Meta, StoryObj } from '@storybook/react-vite'
4
4
  import RcSesServicePage from '@/components/layout/ServicePage'
5
5
 
6
6
  const meta: Meta<typeof RcSesServicePage> = {
7
- title: 'components/layout/ServicePage',
7
+ title: 'Templates/ServicePage',
8
8
  component: RcSesServicePage,
9
9
  tags: ['autodocs'],
10
10
  }
@@ -1,7 +1,7 @@
1
- type Props = {}
2
-
3
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
- function SuperName(props: Props) {
1
+ // Scaffolding template for a new component. Declare a `Props` type once the
2
+ // component actually takes props: an empty one is not a placeholder, it accepts
3
+ // any non-nullish value, including `0` and `''`.
4
+ function SuperName() {
5
5
  // eslint-disable-next-line react/jsx-no-useless-fragment
6
6
  return <></>
7
7
  }
@@ -12,12 +12,14 @@ const borderWidth = '1px'
12
12
  const card = {
13
13
  borderRadius: '0.75rem',
14
14
  gap: { xs: '1rem', md: '1.5rem' },
15
+ footerGap: '0.5rem',
15
16
  padding: { xs: '1.25rem 1.5rem', md: '1.5rem 2rem' },
16
17
  }
17
18
 
18
19
  const subcard = {
19
20
  borderRadius: '0.5rem',
20
21
  gap: { xs: '0.75rem', md: '1rem' },
22
+ footerGap: '0.5rem',
21
23
  padding: { xs: '1rem', md: '1.25rem 1.5rem' },
22
24
  }
23
25
 
@@ -1,6 +1,6 @@
1
1
  import { ColorType } from '@/types/common/ColorType'
2
2
 
3
- type IconProps = {
3
+ interface IconProps {
4
4
  className?: string
5
5
  width?: number
6
6
  height?: number
@@ -2,7 +2,7 @@ import React from 'react'
2
2
 
3
3
  import { ColorType } from '@/types/common/ColorType'
4
4
 
5
- export type CardServiceProps = {
5
+ export interface CardServiceProps {
6
6
  title: string
7
7
  Icon: React.FunctionComponent
8
8
  iconColor?: ColorType
@@ -1,4 +1,4 @@
1
- export type QuickLinkType = {
1
+ export interface QuickLinkType {
2
2
  name: string
3
3
  title: string
4
4
  Icon?: React.FC
@@ -1,4 +1,4 @@
1
- type InputIconProps = {
1
+ interface InputIconProps {
2
2
  disabled?: boolean
3
3
  }
4
4
 
@@ -1,4 +1,4 @@
1
- export type ListNewsItemType = {
1
+ export interface ListNewsItemType {
2
2
  title: string
3
3
  date: Date | string
4
4
  imgUrl: string
@@ -1,8 +1,8 @@
1
1
  import React from 'react'
2
2
 
3
- export type ListServicesItemType = {
3
+ export interface ListServicesItemType {
4
4
  title: string
5
5
  Icon?: React.FC | undefined
6
6
  limit?: number | undefined
7
- items: Array<string>
7
+ items: string[]
8
8
  }
package/src/vite-env.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare global {
8
8
  }
9
9
  }
10
10
 
11
- export type EnvVariables = {
11
+ export interface EnvVariables {
12
12
  ENV_BUILD_VERSION: string;
13
13
 
14
14
  ENV_PUBLIC_PORTAL_URL: string;
@@ -37,7 +37,7 @@ export type EnvVariables = {
37
37
  ENV_KEYCLOAK_SERVER_URL: string;
38
38
  }
39
39
 
40
- export type MFEEnvVariables = {
40
+ export interface MFEEnvVariables {
41
41
  ENV_SERVICE_ROUTES: { path: string, application: string }[];
42
42
  ENV_OWNED_PROPERTIES_ROUTES: { path: string, application: string }[];
43
43
  }