@registrucentras/rc-ses-react-components 1.1.0
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/README.md +37 -0
- package/dist/assets/IconProps.d.ts +4 -0
- package/dist/assets/Logo.d.ts +3 -0
- package/dist/assets/ThemeColors.d.ts +6 -0
- package/dist/assets/icons/ArrowRightIcon.d.ts +3 -0
- package/dist/assets/icons/CalendarBlankIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDownBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDownFill.d.ts +3 -0
- package/dist/assets/icons/CaretDownIcon.d.ts +3 -0
- package/dist/assets/icons/CaretLeftBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretLeftIcon.d.ts +3 -0
- package/dist/assets/icons/CaretRightBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CheckBoldDisabledIcon.d.ts +3 -0
- package/dist/assets/icons/CheckBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CheckCircleFillIcon.d.ts +3 -0
- package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CloseIcon.d.ts +3 -0
- package/dist/assets/icons/CollapseChevronsIcon.d.ts +3 -0
- package/dist/assets/icons/ExpandChevronsIcon.d.ts +3 -0
- package/dist/assets/icons/InfoFillIcon.d.ts +3 -0
- package/dist/assets/icons/MagnifyingGlassIcon.d.ts +3 -0
- package/dist/assets/icons/MinusBoldIcon.d.ts +3 -0
- package/dist/assets/icons/PlusBoldIcon.d.ts +3 -0
- package/dist/assets/icons/QuestionFillIcon.d.ts +3 -0
- package/dist/assets/icons/QuestionIcon.d.ts +3 -0
- package/dist/assets/icons/ScrollIcon.d.ts +3 -0
- package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +3 -0
- package/dist/assets/icons/UploadSimpleIcon.d.ts +3 -0
- package/dist/assets/icons/WarningDiamondFillIcon.d.ts +3 -0
- package/dist/assets/icons/WarningFillIcon.d.ts +3 -0
- package/dist/assets/icons/XCircleFillIcon.d.ts +3 -0
- package/dist/assets/resolvePaletteColorPath.d.ts +3 -0
- package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +11 -0
- package/dist/components/common/Accordion/index.d.ts +9 -0
- package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +8 -0
- package/dist/components/common/Alert/index.d.ts +3 -0
- package/dist/components/common/Breadcrumbs/index.d.ts +9 -0
- package/dist/components/common/Button/ButtonWithPopover.d.ts +12 -0
- package/dist/components/common/Button/index.d.ts +6 -0
- package/dist/components/common/IconWithCircularBackground.d.ts +14 -0
- package/dist/components/common/Popover/index.d.ts +6 -0
- package/dist/components/common/Tabs/Tab.d.ts +3 -0
- package/dist/components/common/Tabs/TabPanel.d.ts +8 -0
- package/dist/components/common/Tabs/Tabs.d.ts +3 -0
- package/dist/components/common/Tabs/TabsWrapper.d.ts +7 -0
- package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +7 -0
- package/dist/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.d.ts +2 -0
- package/dist/components/form/components/FormControlWrapper/index.d.ts +17 -0
- package/dist/components/form/inputs/Checkbox.d.ts +23 -0
- package/dist/components/form/inputs/CheckboxFormControl.d.ts +23 -0
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.d.ts +3 -0
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.d.ts +3 -0
- package/dist/components/form/inputs/Datepicker/index.d.ts +16 -0
- package/dist/components/form/inputs/FileDropzone.d.ts +21 -0
- package/dist/components/form/inputs/FileUpload.d.ts +19 -0
- package/dist/components/form/inputs/NumberStepper.d.ts +23 -0
- package/dist/components/form/inputs/PhoneInput.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/OuterElementType.d.ts +5 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/PopperComponent.d.ts +7 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/RowComponent.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.d.ts +4 -0
- package/dist/components/form/inputs/PhoneInputFormControl/index.d.ts +22 -0
- package/dist/components/form/inputs/PhoneInputFormControl/types/Country.d.ts +7 -0
- package/dist/components/form/inputs/RadioButtonGroup.d.ts +25 -0
- package/dist/components/form/inputs/SearchableField.d.ts +23 -0
- package/dist/components/form/inputs/Select.d.ts +27 -0
- package/dist/components/form/inputs/TextField.d.ts +16 -0
- package/dist/components/layout/ServiceFormActions.d.ts +9 -0
- package/dist/components/layout/ServiceFormContainer/components/AccordionCollapseControls.d.ts +6 -0
- package/dist/components/layout/ServiceFormContainer/index.d.ts +14 -0
- package/dist/components/layout/ServiceHeader.d.ts +9 -0
- package/dist/components/layout/ServicePage.d.ts +5 -0
- package/dist/components/layout/ServiceWizardStepper/components/ActiveStepIcon.d.ts +2 -0
- package/dist/components/layout/ServiceWizardStepper/components/CompletedStepIcon.d.ts +2 -0
- package/dist/components/layout/ServiceWizardStepper/components/PendingStepIcon.d.ts +2 -0
- package/dist/components/layout/ServiceWizardStepper/index.d.ts +6 -0
- package/dist/components/shared/storage/CookieStorage.d.ts +9 -0
- package/dist/components/storybook/FieldPreview.d.ts +8 -0
- package/dist/components/storybook/FieldPreviewRow.d.ts +8 -0
- package/dist/components/storybook/FieldView.d.ts +8 -0
- package/dist/components/storybook/Fields.d.ts +8 -0
- package/dist/components/storybook/PreviewTitle.d.ts +8 -0
- package/dist/env.d.ts +3 -0
- package/dist/i18n/@mui/x-date-pickers/ltLT.d.ts +133 -0
- package/dist/i18n/i18n.d.ts +6 -0
- package/dist/library/icons.d.ts +14 -0
- package/dist/library/index.d.ts +65 -0
- package/dist/registrucentras-rc-ses-react-components.cjs +48 -0
- package/dist/registrucentras-rc-ses-react-components.js +7288 -0
- package/dist/stories/components/Accordion.stories.d.ts +30 -0
- package/dist/stories/components/Alert.stories.d.ts +7 -0
- package/dist/stories/components/Breadcrumbs.stories.d.ts +8 -0
- package/dist/stories/components/buttons/Button.stories.d.ts +65 -0
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +26 -0
- package/dist/stories/components/form/ServiceFormActions.stories.d.ts +12 -0
- package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +16 -0
- package/dist/stories/components/inputs/Checkbox.stories.d.ts +26 -0
- package/dist/stories/components/inputs/DatePicker.stories.d.ts +24 -0
- package/dist/stories/components/inputs/FileUpload.stories.d.ts +30 -0
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +34 -0
- package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +34 -0
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +335 -0
- package/dist/stories/components/inputs/Select.stories.d.ts +874 -0
- package/dist/stories/components/inputs/TextField.stories.d.ts +613 -0
- package/dist/theme/light/MuiAccordion.d.ts +3 -0
- package/dist/theme/light/MuiAccordionDetails.d.ts +3 -0
- package/dist/theme/light/MuiAccordionSummary.d.ts +3 -0
- package/dist/theme/light/MuiAlert.d.ts +3 -0
- package/dist/theme/light/MuiAutocomplete.d.ts +3 -0
- package/dist/theme/light/MuiBreadcrumbs.d.ts +3 -0
- package/dist/theme/light/MuiButton.d.ts +3 -0
- package/dist/theme/light/MuiButtonBase.d.ts +3 -0
- package/dist/theme/light/MuiCard.d.ts +3 -0
- package/dist/theme/light/MuiCardContent.d.ts +3 -0
- package/dist/theme/light/MuiCardHeader.d.ts +3 -0
- package/dist/theme/light/MuiCheckbox.d.ts +3 -0
- package/dist/theme/light/MuiChip.d.ts +3 -0
- package/dist/theme/light/MuiDialog.d.ts +3 -0
- package/dist/theme/light/MuiDivider.d.ts +3 -0
- package/dist/theme/light/MuiFormControl.d.ts +3 -0
- package/dist/theme/light/MuiFormControlLabel.d.ts +3 -0
- package/dist/theme/light/MuiFormGroup.d.ts +3 -0
- package/dist/theme/light/MuiFormHelperText.d.ts +3 -0
- package/dist/theme/light/MuiFormLabel.d.ts +3 -0
- package/dist/theme/light/MuiIconButton.d.ts +3 -0
- package/dist/theme/light/MuiInputBase.d.ts +3 -0
- package/dist/theme/light/MuiLinearProgress.d.ts +3 -0
- package/dist/theme/light/MuiPagination.d.ts +3 -0
- package/dist/theme/light/MuiPickersLayout.d.ts +3 -0
- package/dist/theme/light/MuiPopover.d.ts +3 -0
- package/dist/theme/light/MuiRadio.d.ts +3 -0
- package/dist/theme/light/MuiSelect.d.ts +3 -0
- package/dist/theme/light/MuiStepper.d.ts +3 -0
- package/dist/theme/light/MuiSvgIcon.d.ts +3 -0
- package/dist/theme/light/MuiTab.d.ts +3 -0
- package/dist/theme/light/MuiTable.d.ts +3 -0
- package/dist/theme/light/MuiTableCell.d.ts +3 -0
- package/dist/theme/light/MuiTabs.d.ts +3 -0
- package/dist/theme/light/MuiTextField.d.ts +3 -0
- package/dist/theme/light/MuiTypography.d.ts +3 -0
- package/dist/theme/light/index.d.ts +36 -0
- package/dist/theme/light/themePalette.d.ts +3 -0
- package/dist/theme/palette.d.ts +144 -0
- package/package.json +126 -0
- package/src/App.tsx +42 -0
- package/src/assets/IconProps.ts +5 -0
- package/src/assets/Logo.tsx +111 -0
- package/src/assets/ThemeColors.ts +7 -0
- package/src/assets/icons/ArrowRightIcon.tsx +21 -0
- package/src/assets/icons/CalendarBlankIcon.tsx +21 -0
- package/src/assets/icons/CaretDoubleLeftBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretDoubleRightBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretDownBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretDownFill.tsx +16 -0
- package/src/assets/icons/CaretDownIcon.tsx +21 -0
- package/src/assets/icons/CaretLeftBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretLeftIcon.tsx +21 -0
- package/src/assets/icons/CaretRightBoldIcon.tsx +20 -0
- package/src/assets/icons/CheckBoldDisabledIcon.tsx +32 -0
- package/src/assets/icons/CheckBoldIcon.tsx +32 -0
- package/src/assets/icons/CheckCircleFillIcon.tsx +21 -0
- package/src/assets/icons/CheckUncheckedBoldIcon.tsx +28 -0
- package/src/assets/icons/CloseIcon.tsx +21 -0
- package/src/assets/icons/CollapseChevronsIcon.tsx +21 -0
- package/src/assets/icons/ExpandChevronsIcon.tsx +21 -0
- package/src/assets/icons/InfoFillIcon.tsx +21 -0
- package/src/assets/icons/MagnifyingGlassIcon.tsx +16 -0
- package/src/assets/icons/MinusBoldIcon.tsx +21 -0
- package/src/assets/icons/PlusBoldIcon.tsx +21 -0
- package/src/assets/icons/QuestionFillIcon.tsx +21 -0
- package/src/assets/icons/QuestionIcon.tsx +21 -0
- package/src/assets/icons/ScrollIcon.tsx +21 -0
- package/src/assets/icons/SpinnerGapBoldIcon.tsx +20 -0
- package/src/assets/icons/UploadSimpleIcon.tsx +21 -0
- package/src/assets/icons/WarningDiamondFillIcon.tsx +21 -0
- package/src/assets/icons/WarningFillIcon.tsx +20 -0
- package/src/assets/icons/XCircleFillIcon.tsx +16 -0
- package/src/assets/resolvePaletteColorPath.ts +13 -0
- package/src/components/common/Accordion/hooks/useAccordionController.tsx +42 -0
- package/src/components/common/Accordion/index.tsx +52 -0
- package/src/components/common/Accordion/types/AccordionControllerState.ts +9 -0
- package/src/components/common/Alert/index.tsx +21 -0
- package/src/components/common/Breadcrumbs/index.tsx +21 -0
- package/src/components/common/Button/ButtonWithPopover.tsx +80 -0
- package/src/components/common/Button/index.tsx +21 -0
- package/src/components/common/IconWithCircularBackground.tsx +73 -0
- package/src/components/common/Popover/index.tsx +20 -0
- package/src/components/common/Tabs/Tab.tsx +9 -0
- package/src/components/common/Tabs/TabPanel.tsx +28 -0
- package/src/components/common/Tabs/Tabs.tsx +9 -0
- package/src/components/common/Tabs/TabsWrapper.tsx +33 -0
- package/src/components/form/components/FormControlWrapper/components/FieldSuffix.tsx +14 -0
- package/src/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.ts +4 -0
- package/src/components/form/components/FormControlWrapper/index.tsx +137 -0
- package/src/components/form/inputs/Checkbox.tsx +52 -0
- package/src/components/form/inputs/CheckboxFormControl.tsx +135 -0
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.tsx +37 -0
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +96 -0
- package/src/components/form/inputs/Datepicker/index.tsx +149 -0
- package/src/components/form/inputs/FileDropzone.tsx +215 -0
- package/src/components/form/inputs/FileUpload.tsx +143 -0
- package/src/components/form/inputs/NumberStepper.tsx +209 -0
- package/src/components/form/inputs/PhoneInput.tsx +28 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +40 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +53 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/OuterElementType.tsx +13 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/PopperComponent.tsx +37 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +46 -0
- package/src/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.ts +14 -0
- package/src/components/form/inputs/PhoneInputFormControl/index.test.tsx +47 -0
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +238 -0
- package/src/components/form/inputs/PhoneInputFormControl/styles/styles.css +253 -0
- package/src/components/form/inputs/PhoneInputFormControl/types/Country.ts +9 -0
- package/src/components/form/inputs/RadioButtonGroup.tsx +112 -0
- package/src/components/form/inputs/SearchableField.tsx +120 -0
- package/src/components/form/inputs/Select.tsx +152 -0
- package/src/components/form/inputs/TextField.tsx +59 -0
- package/src/components/layout/ServiceFormActions.tsx +90 -0
- package/src/components/layout/ServiceFormContainer/components/AccordionCollapseControls.tsx +43 -0
- package/src/components/layout/ServiceFormContainer/index.tsx +69 -0
- package/src/components/layout/ServiceHeader.tsx +65 -0
- package/src/components/layout/ServicePage.tsx +10 -0
- package/src/components/layout/ServiceWizardStepper/components/ActiveStepIcon.tsx +15 -0
- package/src/components/layout/ServiceWizardStepper/components/CompletedStepIcon.tsx +19 -0
- package/src/components/layout/ServiceWizardStepper/components/PendingStepIcon.tsx +15 -0
- package/src/components/layout/ServiceWizardStepper/index.tsx +44 -0
- package/src/components/shared/storage/CookieStorage.ts +42 -0
- package/src/components/storybook/FieldPreview.tsx +12 -0
- package/src/components/storybook/FieldPreviewRow.tsx +16 -0
- package/src/components/storybook/FieldView.tsx +9 -0
- package/src/components/storybook/Fields.tsx +9 -0
- package/src/components/storybook/PreviewTitle.tsx +15 -0
- package/src/env.tsx +61 -0
- package/src/examples/MultipleStepForm/components/AdditionalServicesForm.tsx +29 -0
- package/src/examples/MultipleStepForm/components/BasicInformationForm.tsx +5 -0
- package/src/examples/MultipleStepForm/components/ServiceDetailsForm.tsx +152 -0
- package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +104 -0
- package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +59 -0
- package/src/examples/MultipleStepForm/index.tsx +104 -0
- package/src/examples/MultipleStepForm/types/MultiStepFormModel.ts +10 -0
- package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +187 -0
- package/src/examples/SingleStepForm/index.tsx +347 -0
- package/src/examples/SingleStepForm/types/SingleStepFormModel.ts +23 -0
- package/src/i18n/@mui/x-date-pickers/ltLT.ts +82 -0
- package/src/i18n/i18n.ts +44 -0
- package/src/i18n/namespaces/common/en.json +9 -0
- package/src/i18n/namespaces/common/lt.json +9 -0
- package/src/i18n/namespaces/input/en.json +53 -0
- package/src/i18n/namespaces/input/lt.json +53 -0
- package/src/library/icons.ts +25 -0
- package/src/library/index.ts +88 -0
- package/src/main.tsx +47 -0
- package/src/setupTests.ts +1 -0
- package/src/stories/components/Accordion.stories.tsx +93 -0
- package/src/stories/components/Alert.stories.tsx +40 -0
- package/src/stories/components/Breadcrumbs.stories.tsx +32 -0
- package/src/stories/components/buttons/Button.stories.tsx +206 -0
- package/src/stories/components/buttons/Button.test.ts +17 -0
- package/src/stories/components/form/CheckboxFormControl.stories.tsx +160 -0
- package/src/stories/components/form/ServiceFormActions.stories.tsx +44 -0
- package/src/stories/components/form/ServiceFormContainer.stories.tsx +178 -0
- package/src/stories/components/inputs/Checkbox.stories.tsx +214 -0
- package/src/stories/components/inputs/DatePicker.stories.tsx +99 -0
- package/src/stories/components/inputs/FileUpload.stories.tsx +159 -0
- package/src/stories/components/inputs/NumberStepper.stories.tsx +162 -0
- package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +155 -0
- package/src/stories/components/inputs/SearchableField.stories.tsx +90 -0
- package/src/stories/components/inputs/Select.stories.tsx +226 -0
- package/src/stories/components/inputs/TextField.stories.tsx +77 -0
- package/src/stubs/Component.tsx +9 -0
- package/src/styles/index.css +12 -0
- package/src/theme/light/MuiAccordion.tsx +50 -0
- package/src/theme/light/MuiAccordionDetails.ts +17 -0
- package/src/theme/light/MuiAccordionSummary.tsx +35 -0
- package/src/theme/light/MuiAlert.tsx +254 -0
- package/src/theme/light/MuiAutocomplete.ts +55 -0
- package/src/theme/light/MuiBreadcrumbs.tsx +42 -0
- package/src/theme/light/MuiButton.tsx +393 -0
- package/src/theme/light/MuiButtonBase.tsx +15 -0
- package/src/theme/light/MuiCard.tsx +18 -0
- package/src/theme/light/MuiCardContent.tsx +19 -0
- package/src/theme/light/MuiCardHeader.tsx +15 -0
- package/src/theme/light/MuiCheckbox.ts +26 -0
- package/src/theme/light/MuiChip.tsx +13 -0
- package/src/theme/light/MuiDialog.ts +25 -0
- package/src/theme/light/MuiDivider.tsx +12 -0
- package/src/theme/light/MuiFormControl.ts +28 -0
- package/src/theme/light/MuiFormControlLabel.ts +48 -0
- package/src/theme/light/MuiFormGroup.ts +83 -0
- package/src/theme/light/MuiFormHelperText.ts +18 -0
- package/src/theme/light/MuiFormLabel.ts +48 -0
- package/src/theme/light/MuiIconButton.ts +30 -0
- package/src/theme/light/MuiInputBase.ts +99 -0
- package/src/theme/light/MuiLinearProgress.ts +17 -0
- package/src/theme/light/MuiPagination.ts +31 -0
- package/src/theme/light/MuiPickersLayout.ts +68 -0
- package/src/theme/light/MuiPopover.ts +29 -0
- package/src/theme/light/MuiRadio.tsx +65 -0
- package/src/theme/light/MuiSelect.tsx +8 -0
- package/src/theme/light/MuiStepper.ts +52 -0
- package/src/theme/light/MuiSvgIcon.ts +17 -0
- package/src/theme/light/MuiTab.tsx +53 -0
- package/src/theme/light/MuiTable.ts +20 -0
- package/src/theme/light/MuiTableCell.ts +40 -0
- package/src/theme/light/MuiTabs.tsx +34 -0
- package/src/theme/light/MuiTextField.tsx +12 -0
- package/src/theme/light/MuiTypography.tsx +57 -0
- package/src/theme/light/index.tsx +138 -0
- package/src/theme/light/themePalette.tsx +23 -0
- package/src/theme/palette.tsx +77 -0
- package/src/types/assets/IconProps.tsx +19 -0
- package/src/types/buttons/ButtonProps.tsx +3 -0
- package/src/types/cards/CardServiceProps.tsx +9 -0
- package/src/types/common/ColorType.tsx +20 -0
- package/src/types/common/QuickLinkType.tsx +5 -0
- package/src/types/inputs/InputIconProps.tsx +5 -0
- package/src/types/lists/ListNewsItemType.tsx +5 -0
- package/src/types/lists/ListServicesItemType.tsx +8 -0
- package/src/types/order/OrderItemStatusType.tsx +3 -0
- package/src/vite-env.d.ts +79 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Components } from '@mui/material'
|
|
2
|
+
|
|
3
|
+
import palette from '../palette'
|
|
4
|
+
|
|
5
|
+
const MuiTableCell: Components['MuiTableCell'] = {
|
|
6
|
+
defaultProps: {
|
|
7
|
+
sx: {
|
|
8
|
+
px: {
|
|
9
|
+
xs: 1,
|
|
10
|
+
md: 2,
|
|
11
|
+
},
|
|
12
|
+
py: {
|
|
13
|
+
xs: 1,
|
|
14
|
+
md: 1.5,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
styleOverrides: {
|
|
19
|
+
root: {
|
|
20
|
+
fontSize: '.9375rem',
|
|
21
|
+
lineHeight: '1.3125rem',
|
|
22
|
+
},
|
|
23
|
+
head: {
|
|
24
|
+
backgroundColor: palette.grey['200'],
|
|
25
|
+
borderBottomColor: palette.grey['300'],
|
|
26
|
+
borderBottomStyle: 'solid',
|
|
27
|
+
borderBottomWidth: '1px',
|
|
28
|
+
fontWeight: 600,
|
|
29
|
+
},
|
|
30
|
+
body: {
|
|
31
|
+
backgroundColor: 'white',
|
|
32
|
+
borderColor: palette.grey['300'],
|
|
33
|
+
borderStyle: 'solid',
|
|
34
|
+
borderWidth: '1px',
|
|
35
|
+
fontWeight: 300,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default MuiTableCell
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Components, createTheme } from '@mui/material'
|
|
2
|
+
|
|
3
|
+
import palette from '../palette'
|
|
4
|
+
|
|
5
|
+
const { breakpoints } = createTheme()
|
|
6
|
+
|
|
7
|
+
const MuiTabs: Components['MuiTabs'] = {
|
|
8
|
+
defaultProps: {},
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: {
|
|
11
|
+
color: palette.grey['900'],
|
|
12
|
+
minHeight: '2.25rem',
|
|
13
|
+
textTransform: 'none',
|
|
14
|
+
},
|
|
15
|
+
flexContainer: {
|
|
16
|
+
borderBottomStyle: 'solid',
|
|
17
|
+
borderBottomColor: palette.grey['300'],
|
|
18
|
+
borderBottomWidth: 1,
|
|
19
|
+
columnGap: '.375rem',
|
|
20
|
+
paddingLeft: '.75rem',
|
|
21
|
+
paddingRight: '.75rem',
|
|
22
|
+
|
|
23
|
+
[breakpoints.up('md')]: {
|
|
24
|
+
paddingLeft: '1.25rem',
|
|
25
|
+
paddingRight: '1.25rem',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
indicator: {
|
|
29
|
+
display: 'none',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default MuiTabs
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Components } from '@mui/material'
|
|
2
|
+
|
|
3
|
+
const MuiTypography: Components['MuiTypography'] = {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: {},
|
|
6
|
+
h1: {
|
|
7
|
+
fontWeight: '500',
|
|
8
|
+
lineHeight: '2rem',
|
|
9
|
+
},
|
|
10
|
+
h2: {
|
|
11
|
+
fontSize: '2rem',
|
|
12
|
+
fontWeight: '500',
|
|
13
|
+
lineHeight: '2.75rem',
|
|
14
|
+
},
|
|
15
|
+
h3: {
|
|
16
|
+
fontSize: '1.75rem',
|
|
17
|
+
fontWeight: '500',
|
|
18
|
+
lineHeight: '2.375rem',
|
|
19
|
+
},
|
|
20
|
+
h4: {
|
|
21
|
+
fontSize: '1.5rem',
|
|
22
|
+
fontWeight: '500',
|
|
23
|
+
lineHeight: '1.75rem',
|
|
24
|
+
},
|
|
25
|
+
h5: {
|
|
26
|
+
fontSize: '1.25rem',
|
|
27
|
+
fontWeight: '500',
|
|
28
|
+
lineHeight: '1.6875rem',
|
|
29
|
+
},
|
|
30
|
+
h6: {
|
|
31
|
+
fontSize: '1.125rem',
|
|
32
|
+
fontWeight: '500',
|
|
33
|
+
lineHeight: '1.5rem',
|
|
34
|
+
},
|
|
35
|
+
body1: {
|
|
36
|
+
fontSize: '.9375rem',
|
|
37
|
+
lineHeight: '1.125rem',
|
|
38
|
+
},
|
|
39
|
+
body2: {
|
|
40
|
+
fontSize: '.875rem',
|
|
41
|
+
lineHeight: '1rem',
|
|
42
|
+
},
|
|
43
|
+
caption: {
|
|
44
|
+
fontSize: '.8125rem',
|
|
45
|
+
lineHeight: '1rem',
|
|
46
|
+
},
|
|
47
|
+
subtitle1: {
|
|
48
|
+
fontSize: '.75rem',
|
|
49
|
+
lineHeight: '.875rem',
|
|
50
|
+
},
|
|
51
|
+
subtitle2: {
|
|
52
|
+
fontSize: '.6875rem',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default MuiTypography
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type {} from '@emotion/styled'
|
|
2
|
+
import { createTheme } from '@mui/material'
|
|
3
|
+
import { enUS } from '@mui/x-date-pickers/locales'
|
|
4
|
+
|
|
5
|
+
import { ltLT } from '@/i18n/@mui/x-date-pickers/ltLT'
|
|
6
|
+
import MuiAccordion from '@/theme/light/MuiAccordion'
|
|
7
|
+
import MuiAccordionDetails from '@/theme/light/MuiAccordionDetails'
|
|
8
|
+
import MuiAccordionSummary from '@/theme/light/MuiAccordionSummary'
|
|
9
|
+
import MuiAlert from '@/theme/light/MuiAlert'
|
|
10
|
+
import MuiAutocomplete from '@/theme/light/MuiAutocomplete'
|
|
11
|
+
import MuiBreadcrumbs from '@/theme/light/MuiBreadcrumbs'
|
|
12
|
+
import MuiButton from '@/theme/light/MuiButton'
|
|
13
|
+
import MuiButtonBase from '@/theme/light/MuiButtonBase'
|
|
14
|
+
import MuiCard from '@/theme/light/MuiCard'
|
|
15
|
+
import MuiCardContent from '@/theme/light/MuiCardContent'
|
|
16
|
+
import MuiCardHeader from '@/theme/light/MuiCardHeader'
|
|
17
|
+
import MuiCheckbox from '@/theme/light/MuiCheckbox'
|
|
18
|
+
import MuiChip from '@/theme/light/MuiChip'
|
|
19
|
+
import MuiDialog from '@/theme/light/MuiDialog'
|
|
20
|
+
import MuiDivider from '@/theme/light/MuiDivider'
|
|
21
|
+
import MuiFormControl from '@/theme/light/MuiFormControl'
|
|
22
|
+
import MuiFormControlLabel from '@/theme/light/MuiFormControlLabel'
|
|
23
|
+
import MuiFormGroup from '@/theme/light/MuiFormGroup'
|
|
24
|
+
import MuiFormHelperText from '@/theme/light/MuiFormHelperText'
|
|
25
|
+
import MuiFormLabel from '@/theme/light/MuiFormLabel'
|
|
26
|
+
import MuiIconButton from '@/theme/light/MuiIconButton'
|
|
27
|
+
import MuiInputBase from '@/theme/light/MuiInputBase'
|
|
28
|
+
import MuiLinearProgress from '@/theme/light/MuiLinearProgress'
|
|
29
|
+
import MuiPickersLayout from '@/theme/light/MuiPickersLayout'
|
|
30
|
+
import MuiPopover from '@/theme/light/MuiPopover'
|
|
31
|
+
import MuiRadio from '@/theme/light/MuiRadio'
|
|
32
|
+
import MuiSelect from '@/theme/light/MuiSelect'
|
|
33
|
+
import MuiStepper from '@/theme/light/MuiStepper'
|
|
34
|
+
import MuiSvgIcon from '@/theme/light/MuiSvgIcon'
|
|
35
|
+
import MuiTab from '@/theme/light/MuiTab'
|
|
36
|
+
import MuiTable from '@/theme/light/MuiTable'
|
|
37
|
+
import MuiTableCell from '@/theme/light/MuiTableCell'
|
|
38
|
+
import MuiTabs from '@/theme/light/MuiTabs'
|
|
39
|
+
import MuiTextField from '@/theme/light/MuiTextField'
|
|
40
|
+
import MuiTypography from '@/theme/light/MuiTypography'
|
|
41
|
+
import themePalette from '@/theme/light/themePalette'
|
|
42
|
+
|
|
43
|
+
import MuiPagination from './MuiPagination'
|
|
44
|
+
|
|
45
|
+
declare module '@mui/material/styles' {
|
|
46
|
+
interface Palette {
|
|
47
|
+
dark: Palette['grey']
|
|
48
|
+
grey: Palette['grey']
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface PaletteOptions {
|
|
52
|
+
dark?: PaletteOptions['grey']
|
|
53
|
+
grey?: PaletteOptions['grey']
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
declare module '@mui/material' {
|
|
58
|
+
interface AlertPropsColorOverrides {
|
|
59
|
+
grey: true
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface AlertClasses {
|
|
63
|
+
standardGrey: string
|
|
64
|
+
outlinedGrey: string
|
|
65
|
+
filledGrey: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface ButtonPropsVariantOverrides {
|
|
69
|
+
link: true
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface ButtonPropsColorOverrides {
|
|
73
|
+
grey: any
|
|
74
|
+
dark: any
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface RadioPropsColorOverrides {
|
|
78
|
+
grey: true
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface TabsPropsVariantOverrides {
|
|
82
|
+
grey: true
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const theme = createTheme(themePalette, ltLT, enUS, {
|
|
87
|
+
components: {
|
|
88
|
+
MuiAccordion,
|
|
89
|
+
MuiAccordionDetails,
|
|
90
|
+
MuiAccordionSummary,
|
|
91
|
+
MuiAlert,
|
|
92
|
+
MuiAutocomplete,
|
|
93
|
+
MuiBreadcrumbs,
|
|
94
|
+
MuiButton,
|
|
95
|
+
MuiButtonBase,
|
|
96
|
+
MuiCard,
|
|
97
|
+
MuiCardContent,
|
|
98
|
+
MuiCardHeader,
|
|
99
|
+
MuiCheckbox,
|
|
100
|
+
MuiChip,
|
|
101
|
+
MuiDialog,
|
|
102
|
+
MuiDivider,
|
|
103
|
+
MuiFormControl,
|
|
104
|
+
MuiFormControlLabel,
|
|
105
|
+
MuiFormGroup,
|
|
106
|
+
MuiFormHelperText,
|
|
107
|
+
MuiFormLabel,
|
|
108
|
+
MuiIconButton,
|
|
109
|
+
MuiInputBase,
|
|
110
|
+
MuiLinearProgress,
|
|
111
|
+
MuiPickersLayout,
|
|
112
|
+
MuiPagination,
|
|
113
|
+
MuiPopover,
|
|
114
|
+
MuiRadio,
|
|
115
|
+
MuiSelect,
|
|
116
|
+
MuiStepper,
|
|
117
|
+
MuiSvgIcon,
|
|
118
|
+
MuiTab,
|
|
119
|
+
MuiTabs,
|
|
120
|
+
MuiTable,
|
|
121
|
+
MuiTableCell,
|
|
122
|
+
MuiTextField,
|
|
123
|
+
MuiTypography,
|
|
124
|
+
},
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
theme.typography.h1 = {
|
|
128
|
+
fontSize: '1.5rem',
|
|
129
|
+
fontWeight: '500',
|
|
130
|
+
lineHeight: '2rem',
|
|
131
|
+
|
|
132
|
+
[theme.breakpoints.up('md')]: {
|
|
133
|
+
fontSize: '2.25rem',
|
|
134
|
+
lineHeight: '3rem',
|
|
135
|
+
},
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export default theme
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createTheme } from '@mui/material'
|
|
2
|
+
|
|
3
|
+
import { error, grey, primary, secondary, warning } from '../palette'
|
|
4
|
+
|
|
5
|
+
const themePalette = createTheme({
|
|
6
|
+
palette: {
|
|
7
|
+
mode: 'light',
|
|
8
|
+
text: {
|
|
9
|
+
primary: grey['900'],
|
|
10
|
+
},
|
|
11
|
+
primary,
|
|
12
|
+
secondary,
|
|
13
|
+
warning,
|
|
14
|
+
error,
|
|
15
|
+
grey,
|
|
16
|
+
dark: grey,
|
|
17
|
+
},
|
|
18
|
+
typography: {
|
|
19
|
+
fontFamily: 'Public sans, sans-serif, Arial',
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
export default themePalette
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
const primary = {
|
|
2
|
+
'50': '#f3fbfe',
|
|
3
|
+
'100': '#dcf4fc',
|
|
4
|
+
'200': '#b9e9fa',
|
|
5
|
+
'300': '#88daf7',
|
|
6
|
+
'400': '#50c9f3',
|
|
7
|
+
'500': '#06a0d4',
|
|
8
|
+
'600': '#0079ad',
|
|
9
|
+
'700': '#0e6790',
|
|
10
|
+
'800': '#155575',
|
|
11
|
+
'900': '#164763',
|
|
12
|
+
'950': '#082d44',
|
|
13
|
+
main: '#06a0d4',
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const secondary = {
|
|
17
|
+
'50': '#ecfdf6',
|
|
18
|
+
'100': '#d1fae7',
|
|
19
|
+
'200': '#a5f3d3',
|
|
20
|
+
'300': '#6fe7bd',
|
|
21
|
+
'400': '#05d091',
|
|
22
|
+
'500': '#00c288',
|
|
23
|
+
'600': '#00a879',
|
|
24
|
+
'700': '#008561',
|
|
25
|
+
'800': '#00664e',
|
|
26
|
+
'900': '#004e3d',
|
|
27
|
+
'950': '#002c24',
|
|
28
|
+
main: '#00c288',
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const grey = {
|
|
32
|
+
'50': '#f9fafb',
|
|
33
|
+
'100': '#f0f2f5',
|
|
34
|
+
'200': '#dce0e5',
|
|
35
|
+
'300': '#c5cad1',
|
|
36
|
+
'400': '#a9afb8',
|
|
37
|
+
'500': '#8e959e',
|
|
38
|
+
'600': '#6b747f',
|
|
39
|
+
'700': '#4a5361',
|
|
40
|
+
'800': '#29323d',
|
|
41
|
+
'900': '#1f2733',
|
|
42
|
+
'950': '#10161f',
|
|
43
|
+
main: '#8e959e',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const warning = {
|
|
47
|
+
'50': '#fef9ef',
|
|
48
|
+
'100': '#fdefcf',
|
|
49
|
+
'200': '#fce09f',
|
|
50
|
+
'300': '#fbd170',
|
|
51
|
+
'400': '#fac240',
|
|
52
|
+
'500': '#f9b311',
|
|
53
|
+
'600': '#c78f0d',
|
|
54
|
+
'700': '#956b0a',
|
|
55
|
+
'800': '#634706',
|
|
56
|
+
'900': '#4a3504',
|
|
57
|
+
'950': '#312303',
|
|
58
|
+
main: '#f9b311',
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const error = {
|
|
62
|
+
'50': '#fef4f2',
|
|
63
|
+
'100': '#fededa',
|
|
64
|
+
'200': '#fdbdb5',
|
|
65
|
+
'300': '#fc9c90',
|
|
66
|
+
'400': '#fb7b6b',
|
|
67
|
+
'500': '#fa5a46',
|
|
68
|
+
'600': '#c84838',
|
|
69
|
+
'700': '#96362a',
|
|
70
|
+
'800': '#63231b',
|
|
71
|
+
'900': '#4a1a14',
|
|
72
|
+
'950': '#31110d',
|
|
73
|
+
main: '#fa5a46',
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { primary, secondary, grey, warning, error }
|
|
77
|
+
export default { primary, secondary, grey, warning, error }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ColorType } from '@/types/common/ColorType'
|
|
2
|
+
|
|
3
|
+
type IconProps = {
|
|
4
|
+
className?: string
|
|
5
|
+
width?: number
|
|
6
|
+
height?: number
|
|
7
|
+
disabled?: boolean
|
|
8
|
+
color?: ColorType | string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const IconDefaultProps = {
|
|
12
|
+
className: undefined,
|
|
13
|
+
disabled: false,
|
|
14
|
+
color: undefined,
|
|
15
|
+
width: undefined,
|
|
16
|
+
height: undefined,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default IconProps
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ColorType =
|
|
2
|
+
| 'inherit'
|
|
3
|
+
| 'primary'
|
|
4
|
+
| 'secondary'
|
|
5
|
+
| 'success'
|
|
6
|
+
| 'error'
|
|
7
|
+
| 'info'
|
|
8
|
+
| 'warning'
|
|
9
|
+
|
|
10
|
+
export function isColorType(type: any): boolean {
|
|
11
|
+
return [
|
|
12
|
+
'inherit',
|
|
13
|
+
'primary',
|
|
14
|
+
'secondary',
|
|
15
|
+
'success',
|
|
16
|
+
'error',
|
|
17
|
+
'info',
|
|
18
|
+
'warning',
|
|
19
|
+
].includes(type)
|
|
20
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line prettier/prettier
|
|
4
|
+
export declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
ENV: EnvVariables;
|
|
7
|
+
ENV_MFE: MFEEnvVariables;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type EnvVariables = {
|
|
12
|
+
ENV_BUILD_VERSION: string;
|
|
13
|
+
|
|
14
|
+
ENV_PUBLIC_PORTAL_URL: string;
|
|
15
|
+
ENV_LEGACY_PORTAL_CART_URL: string;
|
|
16
|
+
ENV_CONTRACT_CUSTOMERS_URL: string;
|
|
17
|
+
|
|
18
|
+
ENV_SERVICE_PROVIDER_DOMAIN: string;
|
|
19
|
+
ENV_SERVICE_PROVIDER_MFE_BASENAME: string;
|
|
20
|
+
ENV_SERVICE_PROVIDER_SERVICE_PATH: string;
|
|
21
|
+
ENV_SERVICE_PROVIDER_OWNED_PROPERTIES_PATH: string;
|
|
22
|
+
|
|
23
|
+
ENV_FRONTEND_DEFAULT_LANG: string;
|
|
24
|
+
|
|
25
|
+
ENV_AUTH_TOKEN_COOKIE_HOST: string;
|
|
26
|
+
ENV_AUTH_TOKEN_COOKIE_NAME: string;
|
|
27
|
+
ENV_REFRESH_TOKEN_COOKIE_NAME: string;
|
|
28
|
+
ENV_LANGUAGE_COOKIE_NAME: string;
|
|
29
|
+
ENV_FONT_SIZE_COOKIE_NAME: string;
|
|
30
|
+
|
|
31
|
+
ENV_FRONTEND_API_URL: string;
|
|
32
|
+
|
|
33
|
+
ENV_RECAPTCHA_SITE_KEY: string;
|
|
34
|
+
|
|
35
|
+
ENV_KEYCLOAK_REALM: string;
|
|
36
|
+
ENV_KEYCLOAK_CLIENT_ID: string;
|
|
37
|
+
ENV_KEYCLOAK_SERVER_URL: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type MFEEnvVariables = {
|
|
41
|
+
ENV_SERVICE_ROUTES: { path: string, application: string }[];
|
|
42
|
+
ENV_OWNED_PROPERTIES_ROUTES: { path: string, application: string }[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface ImportMetaEnv {
|
|
46
|
+
readonly VITE_BUILD_VERSION: string;
|
|
47
|
+
|
|
48
|
+
readonly VITE_PUBLIC_PORTAL_URL: string;
|
|
49
|
+
readonly VITE_LEGACY_PORTAL_CART_URL: string;
|
|
50
|
+
readonly VITE_CONTRACT_CUSTOMERS_URL: string;
|
|
51
|
+
|
|
52
|
+
readonly VITE_SERVICE_PROVIDER_DOMAIN: string;
|
|
53
|
+
readonly VITE_SERVICE_PROVIDER_MFE_BASENAME: string;
|
|
54
|
+
readonly VITE_SERVICE_PROVIDER_SERVICE_PATH: string;
|
|
55
|
+
readonly VITE_SERVICE_PROVIDER_OWNED_PROPERTIES_PATH: string;
|
|
56
|
+
|
|
57
|
+
readonly VITE_FRONTEND_DEFAULT_LANG: string;
|
|
58
|
+
|
|
59
|
+
readonly VITE_AUTH_TOKEN_COOKIE_HOST: string;
|
|
60
|
+
readonly VITE_AUTH_TOKEN_COOKIE_NAME: string;
|
|
61
|
+
readonly VITE_REFRESH_TOKEN_COOKIE_NAME: string;
|
|
62
|
+
readonly VITE_LANGUAGE_COOKIE_NAME: string;
|
|
63
|
+
readonly VITE_FONT_SIZE_COOKIE_NAME: string;
|
|
64
|
+
|
|
65
|
+
readonly VITE_FRONTEND_API_URL: string;
|
|
66
|
+
|
|
67
|
+
readonly VITE_RECAPTCHA_SITE_KEY: string;
|
|
68
|
+
|
|
69
|
+
readonly VITE_KEYCLOAK_REALM: string;
|
|
70
|
+
readonly VITE_KEYCLOAK_CLIENT_ID: string;
|
|
71
|
+
readonly VITE_KEYCLOAK_SERVER_URL: string;
|
|
72
|
+
|
|
73
|
+
readonly VITE_SERVICE_ROUTES: { path: string, application: string }[];
|
|
74
|
+
readonly VITE_OWNED_PROPERTIES_ROUTES: { path: string, application: string }[];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface ImportMeta {
|
|
78
|
+
readonly env: ImportMetaEnv;
|
|
79
|
+
}
|