@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.
- package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +2 -2
- package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +2 -2
- package/dist/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.d.ts +2 -2
- package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.d.ts +2 -2
- package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.d.ts +2 -2
- package/dist/components/common/Badge/index.d.ts +2 -2
- package/dist/components/common/Breadcrumbs/index.d.ts +4 -4
- package/dist/components/common/Card/index.d.ts +2 -2
- package/dist/components/common/CardShell/CardFooter/index.d.ts +1 -1
- package/dist/components/common/CardShell/CardFooter/types.d.ts +4 -9
- package/dist/components/common/CardShell/types.d.ts +4 -4
- package/dist/components/common/IconWithCircularBackground.d.ts +2 -2
- package/dist/components/common/IconWithSquareBackground/index.d.ts +2 -2
- package/dist/components/common/ImageCard/index.d.ts +2 -2
- package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +2 -2
- package/dist/components/common/SelectableCardList/index.d.ts +2 -2
- package/dist/components/common/ServiceLinks/types.d.ts +6 -6
- package/dist/components/common/SideNav/SideNav.types.d.ts +7 -5
- package/dist/components/common/SideNav/SideNavLayout.d.ts +1 -1
- package/dist/components/common/SideNav/components/SideNavPill.d.ts +2 -2
- package/dist/components/common/SideNav/components/SideNavPillList.d.ts +2 -2
- package/dist/components/common/SideNav/components/SideNavRow.d.ts +4 -3
- package/dist/components/common/SideNav/hooks/useKeepActiveItemInView.d.ts +19 -0
- package/dist/components/common/SideNav/hooks/useSideNavScrollSpy.d.ts +2 -2
- package/dist/components/common/SideNav/index.d.ts +2 -2
- package/dist/components/common/Tabs/TabPanel.d.ts +2 -2
- package/dist/components/common/Tabs/TabsWrapper.d.ts +2 -2
- package/dist/components/common/TitleBlock/types.d.ts +4 -4
- package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +2 -2
- package/dist/components/form/components/FormControlWrapper/index.d.ts +2 -2
- package/dist/components/form/inputs/RadioButtonGroup.d.ts +3 -3
- package/dist/components/form/inputs/SearchableField.d.ts +2 -2
- package/dist/components/form/inputs/Select/Select.types.d.ts +2 -2
- package/dist/components/layout/Footer/index.d.ts +2 -2
- package/dist/components/layout/ServiceFormActions.d.ts +2 -2
- package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.d.ts +2 -2
- package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/index.d.ts +2 -2
- package/dist/components/layout/ServiceHeader.d.ts +2 -2
- package/dist/components/layout/ServicePage.d.ts +2 -2
- package/dist/components/utils/normalizeSx.d.ts +1 -1
- package/dist/library/types.d.ts +2 -2
- package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
- package/dist/registrucentras-rc-ses-react-components.js +1767 -1672
- package/dist/theme/cards.d.ts +4 -0
- package/dist/types/assets/IconProps.d.ts +2 -2
- package/dist/types/cards/CardServiceProps.d.ts +2 -2
- package/dist/types/common/QuickLinkType.d.ts +2 -2
- package/dist/types/inputs/InputIconProps.d.ts +2 -2
- package/dist/types/lists/ListNewsItemType.d.ts +2 -2
- package/dist/types/lists/ListServicesItemType.d.ts +3 -3
- package/package.json +2 -1
- package/src/components/common/Accordion/hooks/useAccordionController.tsx +1 -1
- package/src/components/common/Accordion/index.tsx +1 -4
- package/src/components/common/Accordion/types/AccordionControllerState.ts +1 -1
- package/src/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.ts +1 -1
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +1 -1
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +1 -1
- package/src/components/common/AdvancedList/components/AdvancedListItem/index.test.tsx +2 -2
- package/src/components/common/Badge/index.tsx +3 -3
- package/src/components/common/Breadcrumbs/index.tsx +5 -2
- package/src/components/common/Card/index.tsx +1 -1
- package/src/components/common/CardShell/CardFooter/index.tsx +5 -3
- package/src/components/common/CardShell/CardFooter/types.ts +2 -7
- package/src/components/common/CardShell/index.tsx +31 -7
- package/src/components/common/CardShell/types.ts +2 -2
- package/src/components/common/IconWithCircularBackground.tsx +7 -8
- package/src/components/common/IconWithSquareBackground/index.tsx +7 -8
- package/src/components/common/ImageCard/index.tsx +1 -1
- package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +18 -19
- package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +1 -1
- package/src/components/common/SelectableCardList/index.tsx +1 -1
- package/src/components/common/ServiceLinks/types.ts +3 -3
- package/src/components/common/SideNav/SideNav.types.ts +11 -3
- package/src/components/common/SideNav/SideNavLayout.tsx +3 -0
- package/src/components/common/SideNav/components/SideNavPill.tsx +1 -1
- package/src/components/common/SideNav/components/SideNavPillList.tsx +8 -23
- package/src/components/common/SideNav/components/SideNavRow.tsx +6 -2
- package/src/components/common/SideNav/hooks/useKeepActiveItemInView.test.ts +258 -0
- package/src/components/common/SideNav/hooks/useKeepActiveItemInView.ts +80 -0
- package/src/components/common/SideNav/hooks/useSideNavScrollSpy.test.ts +9 -2
- package/src/components/common/SideNav/hooks/useSideNavScrollSpy.ts +4 -3
- package/src/components/common/SideNav/index.test.tsx +51 -0
- package/src/components/common/SideNav/index.tsx +47 -12
- package/src/components/common/Snackbar/index.test.tsx +40 -0
- package/src/components/common/Snackbar/index.tsx +9 -3
- package/src/components/common/Tabs/TabPanel.tsx +1 -1
- package/src/components/common/Tabs/TabsWrapper.tsx +1 -1
- package/src/components/common/TitleBlock/index.test.tsx +9 -7
- package/src/components/common/TitleBlock/index.tsx +34 -11
- package/src/components/common/TitleBlock/types.ts +2 -2
- package/src/components/form/components/FormControlWrapper/components/FieldSuffix.tsx +1 -1
- package/src/components/form/components/FormControlWrapper/index.tsx +1 -1
- package/src/components/form/inputs/Datepicker/index.test.tsx +1 -1
- package/src/components/form/inputs/FileDropzone.tsx +1 -4
- package/src/components/form/inputs/NumberStepper.test.tsx +83 -0
- package/src/components/form/inputs/NumberStepper.tsx +7 -8
- package/src/components/form/inputs/RadioButtonGroup.test.tsx +1 -1
- package/src/components/form/inputs/RadioButtonGroup.tsx +2 -2
- package/src/components/form/inputs/SearchInput/index.tsx +1 -1
- package/src/components/form/inputs/SearchableField.test.tsx +2 -2
- package/src/components/form/inputs/SearchableField.tsx +1 -1
- package/src/components/form/inputs/Select/Select.types.ts +1 -1
- package/src/components/form/inputs/Select/index.test.tsx +3 -3
- package/src/components/layout/Footer/index.tsx +1 -1
- package/src/components/layout/ServiceFormActions.tsx +1 -1
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +1 -1
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +1 -1
- package/src/components/layout/ServiceHeader.tsx +1 -1
- package/src/components/layout/ServicePage.tsx +1 -1
- package/src/components/utils/normalizeSx.ts +2 -4
- package/src/examples/ListWithPagination/index.tsx +0 -2
- package/src/examples/MultipleStepForm/components/AdditionalServicesForm.tsx +1 -1
- package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +1 -1
- package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +1 -1
- package/src/examples/MultipleStepForm/types/MultiStepFormModel.ts +1 -1
- package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +2 -2
- package/src/examples/SingleStepForm/types/SingleStepFormModel.ts +1 -1
- package/src/library/types.ts +2 -1
- package/src/stories/Welcome.mdx +25 -2
- package/src/stories/{components/display → atoms}/Badge.stories.tsx +1 -1
- package/src/stories/{components/actions → atoms}/Button.stories.tsx +10 -15
- package/src/stories/{components/inputs → atoms}/Checkbox.stories.tsx +2 -2
- package/src/stories/{components/icons → atoms}/IconWithCircularBackground.stories.tsx +1 -1
- package/src/stories/{components/icons → atoms}/IconWithSquareBackground.stories.tsx +1 -1
- package/src/stories/{components/icons → atoms}/Icons.stories.tsx +2 -2
- package/src/stories/{components/loaders → atoms}/Loader.stories.tsx +1 -1
- package/src/stories/{components/loaders → atoms}/LoadingSpinner.stories.tsx +1 -1
- package/src/stories/{assets → atoms}/Logo.stories.tsx +1 -1
- package/src/stories/{components/inputs → atoms}/NumberStepper.stories.tsx +2 -2
- package/src/stories/{components/inputs → atoms}/PhoneInput.stories.tsx +2 -2
- package/src/stories/{components/inputs → atoms}/SearchInput.stories.tsx +1 -1
- package/src/stories/{components/inputs → atoms}/Select.stories.tsx +8 -10
- package/src/stories/{components/form → atoms}/SimpleCheckbox.stories.tsx +1 -1
- package/src/stories/{components/inputs → atoms}/Switch.stories.tsx +2 -2
- package/src/stories/{components/tabs → atoms}/Tab.stories.tsx +1 -1
- package/src/stories/{components/inputs → atoms}/TextField.stories.tsx +1 -1
- package/src/stories/{components/display → atoms}/Tooltip.stories.tsx +2 -2
- package/src/stories/{theme → foundations}/ThemedMuiComponents.stories.tsx +1 -1
- package/src/stories/{components/feedback → molecules}/Alert.stories.tsx +3 -3
- package/src/stories/{components/navigation → molecules}/Breadcrumbs.stories.tsx +1 -1
- package/src/stories/{components/actions → molecules}/ButtonWithPopover.stories.tsx +1 -1
- package/src/stories/{components/display → molecules}/Card.stories.tsx +1 -1
- package/src/stories/{components/display → molecules}/CardShell.stories.tsx +20 -1
- package/src/stories/{components/form → molecules}/CheckboxFormControl.stories.tsx +14 -22
- package/src/stories/{components/inputs → molecules}/DatePicker.stories.tsx +1 -1
- package/src/stories/{components/form → molecules}/FormControlWrapper.stories.tsx +1 -1
- package/src/stories/{components/display → molecules}/ImageCard.stories.tsx +1 -1
- package/src/stories/{components/display → molecules}/ListWithIcons.stories.tsx +1 -1
- package/src/stories/{components/inputs → molecules}/PhoneInputFormControl.stories.tsx +1 -1
- package/src/stories/{components/overlays → molecules}/Popover.stories.tsx +1 -1
- package/src/stories/{components/inputs → molecules}/RadioButtonGroup.stories.tsx +2 -2
- package/src/stories/{components/inputs → molecules}/SearchableField.stories.tsx +1 -1
- package/src/stories/{components/display → molecules}/SegmentedControl.stories.tsx +2 -2
- package/src/stories/{components/feedback → molecules}/Snackbar.stories.tsx +3 -3
- package/src/stories/{components/tabs → molecules}/TabPanel.stories.tsx +1 -1
- package/src/stories/{components/tabs → molecules}/Tabs.stories.tsx +1 -1
- package/src/stories/{components/tabs → molecules}/TabsWrapper.stories.tsx +1 -1
- package/src/stories/{components/display → molecules}/TitleBlock.stories.tsx +65 -3
- package/src/stories/{components/navigation → organisms}/Accordion.stories.tsx +1 -1
- package/src/stories/{components/display → organisms}/AdvancedList.stories.tsx +5 -5
- package/src/stories/{components/display → organisms}/AdvancedListItem.stories.tsx +1 -1
- package/src/stories/{components/form → organisms}/CardFormContainer.stories.tsx +1 -1
- package/src/stories/{components/navigation → organisms}/DataPagination.stories.tsx +1 -1
- package/src/stories/{components/overlays → organisms}/Dialog.stories.tsx +1 -1
- package/src/stories/{components/inputs → organisms}/FileDropzone.stories.tsx +2 -2
- package/src/stories/{components/inputs → organisms}/FileUpload.stories.tsx +2 -2
- package/src/stories/{components/layout → organisms}/Footer.stories.tsx +1 -1
- package/src/stories/{components/loaders → organisms}/FullPageLoader.stories.tsx +1 -1
- package/src/stories/{components/overlays → organisms}/Modal.stories.tsx +1 -1
- package/src/stories/{components/display → organisms}/SelectableCardList.stories.tsx +1 -1
- package/src/stories/{components/form → organisms}/ServiceFormActions.stories.tsx +1 -1
- package/src/stories/{components/form → organisms}/ServiceFormContainer.stories.tsx +1 -1
- package/src/stories/{components/layout → organisms}/ServiceHeader.stories.tsx +1 -1
- package/src/stories/{components/display → organisms}/ServiceLinks.stories.tsx +1 -1
- package/src/stories/{components/navigation → organisms}/ServiceWizardStepper.stories.tsx +3 -3
- package/src/stories/{components/navigation → organisms}/SideNav.stories.tsx +37 -4
- package/src/stories/{components/layout → templates}/ServicePage.stories.tsx +1 -1
- package/src/stubs/Component.tsx +4 -4
- package/src/theme/cards.ts +2 -0
- package/src/types/assets/IconProps.tsx +1 -1
- package/src/types/cards/CardServiceProps.tsx +1 -1
- package/src/types/common/QuickLinkType.tsx +1 -1
- package/src/types/inputs/InputIconProps.tsx +1 -1
- package/src/types/lists/ListNewsItemType.tsx +1 -1
- package/src/types/lists/ListServicesItemType.tsx +2 -2
- package/src/vite-env.d.ts +2 -2
- package/dist/stories/assets/Logo.stories.d.ts +0 -12
- package/dist/stories/components/actions/Button.stories.d.ts +0 -107
- package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +0 -7
- package/dist/stories/components/display/AdvancedList.stories.d.ts +0 -33
- package/dist/stories/components/display/AdvancedListItem.stories.d.ts +0 -33
- package/dist/stories/components/display/Badge.stories.d.ts +0 -9
- package/dist/stories/components/display/Card.stories.d.ts +0 -8
- package/dist/stories/components/display/CardShell.stories.d.ts +0 -17
- package/dist/stories/components/display/ImageCard.stories.d.ts +0 -8
- package/dist/stories/components/display/ListWithIcons.stories.d.ts +0 -34
- package/dist/stories/components/display/SegmentedControl.stories.d.ts +0 -202
- package/dist/stories/components/display/SelectableCardList.stories.d.ts +0 -37
- package/dist/stories/components/display/ServiceLinks.stories.d.ts +0 -28
- package/dist/stories/components/display/TitleBlock.stories.d.ts +0 -21
- package/dist/stories/components/display/Tooltip.stories.d.ts +0 -48
- package/dist/stories/components/feedback/Alert.stories.d.ts +0 -14
- package/dist/stories/components/feedback/Snackbar.stories.d.ts +0 -143
- package/dist/stories/components/form/CardFormContainer.stories.d.ts +0 -7
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +0 -9
- package/dist/stories/components/form/FormControlWrapper.stories.d.ts +0 -7
- package/dist/stories/components/form/ServiceFormActions.stories.d.ts +0 -6
- package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +0 -15
- package/dist/stories/components/form/SimpleCheckbox.stories.d.ts +0 -19
- package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +0 -6
- package/dist/stories/components/icons/IconWithSquareBackground.stories.d.ts +0 -7
- package/dist/stories/components/icons/Icons.stories.d.ts +0 -7
- package/dist/stories/components/inputs/Checkbox.stories.d.ts +0 -21
- package/dist/stories/components/inputs/DatePicker.stories.d.ts +0 -152
- package/dist/stories/components/inputs/FileDropzone.stories.d.ts +0 -6
- package/dist/stories/components/inputs/FileUpload.stories.d.ts +0 -18
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +0 -6
- package/dist/stories/components/inputs/PhoneInput.stories.d.ts +0 -10
- package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +0 -6
- package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +0 -6
- package/dist/stories/components/inputs/SearchInput.stories.d.ts +0 -11
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +0 -6
- package/dist/stories/components/inputs/Select.stories.d.ts +0 -7
- package/dist/stories/components/inputs/Switch.stories.d.ts +0 -17
- package/dist/stories/components/inputs/TextField.stories.d.ts +0 -6
- package/dist/stories/components/layout/Footer.stories.d.ts +0 -6
- package/dist/stories/components/layout/ServiceHeader.stories.d.ts +0 -7
- package/dist/stories/components/layout/ServicePage.stories.d.ts +0 -6
- package/dist/stories/components/loaders/FullPageLoader.stories.d.ts +0 -37
- package/dist/stories/components/loaders/Loader.stories.d.ts +0 -36
- package/dist/stories/components/loaders/LoadingSpinner.stories.d.ts +0 -62
- package/dist/stories/components/navigation/Accordion.stories.d.ts +0 -18
- package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +0 -6
- package/dist/stories/components/navigation/DataPagination.stories.d.ts +0 -47
- package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +0 -7
- package/dist/stories/components/navigation/SideNav.stories.d.ts +0 -7
- package/dist/stories/components/overlays/Dialog.stories.d.ts +0 -15
- package/dist/stories/components/overlays/Modal.stories.d.ts +0 -10
- package/dist/stories/components/overlays/Popover.stories.d.ts +0 -12
- package/dist/stories/components/tabs/Tab.stories.d.ts +0 -8
- package/dist/stories/components/tabs/TabPanel.stories.d.ts +0 -7
- package/dist/stories/components/tabs/Tabs.stories.d.ts +0 -7
- package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +0 -6
- package/dist/stories/theme/ThemedMuiComponents.stories.d.ts +0 -25
- package/src/stories/components/display/Card.test.tsx +0 -19
- /package/src/stories/{components/actions → atoms}/Button.test.ts +0 -0
- /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: '
|
|
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: '
|
|
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
|
-
|
|
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: '
|
|
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: '
|
|
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 '
|
|
4
|
+
import RcSesSegmentedControl from '@/components/common/SegmentedControl'
|
|
5
5
|
|
|
6
6
|
const meta = {
|
|
7
|
-
title: '
|
|
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: '
|
|
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)
|
|
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)
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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'
|
|
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:
|
|
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: '
|
|
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: '
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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: '
|
|
20
|
+
title: 'Organisms/AdvancedListItem',
|
|
21
21
|
component: AdvancedListItem,
|
|
22
22
|
tags: ['autodocs'],
|
|
23
23
|
args: {
|
|
@@ -5,7 +5,7 @@ import { useState } from 'react'
|
|
|
5
5
|
import DataPagination from '@/components/common/DataPagination'
|
|
6
6
|
|
|
7
7
|
const meta = {
|
|
8
|
-
title: '
|
|
8
|
+
title: 'Organisms/DataPagination',
|
|
9
9
|
component: DataPagination,
|
|
10
10
|
tags: ['autodocs'],
|
|
11
11
|
args: {
|
|
@@ -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
|
-
|
|
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: '
|
|
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
|
-
|
|
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: '
|
|
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: '
|
|
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: '
|
|
7
|
+
title: 'Organisms/FullPageLoader',
|
|
8
8
|
component: RcSesFullPageLoader,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
10
|
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: '
|
|
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: '
|
|
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: '
|
|
9
|
+
title: 'Organisms/ServiceHeader',
|
|
10
10
|
component: RcSesServiceHeader,
|
|
11
11
|
tags: ['autodocs'],
|
|
12
12
|
argTypes: {
|
|
@@ -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 '
|
|
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: '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
|
-
{
|
|
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: '
|
|
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: '
|
|
7
|
+
title: 'Templates/ServicePage',
|
|
8
8
|
component: RcSesServicePage,
|
|
9
9
|
tags: ['autodocs'],
|
|
10
10
|
}
|
package/src/stubs/Component.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
function SuperName(
|
|
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
|
}
|
package/src/theme/cards.ts
CHANGED
|
@@ -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
|
|
package/src/vite-env.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare global {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export
|
|
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
|
|
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
|
}
|