@registrucentras/rc-ses-react-components 1.12.0 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/ArrowLeftIcon.d.ts +1 -1
- package/dist/assets/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/assets/icons/ArrowsClockwiseIcon.d.ts +1 -1
- package/dist/assets/icons/BarcodeIcon.d.ts +1 -1
- package/dist/assets/icons/CalendarBlankIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownFill.d.ts +1 -1
- package/dist/assets/icons/CaretDownIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftIcon.d.ts +1 -1
- package/dist/assets/icons/CaretRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretUpBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretUpIcon.d.ts +3 -0
- package/dist/assets/icons/CheckBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CheckCircleFillIcon.d.ts +1 -1
- package/dist/assets/icons/CheckIcon.d.ts +1 -1
- package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CircleFilledIcon.d.ts +1 -1
- package/dist/assets/icons/CloseIcon.d.ts +1 -1
- package/dist/assets/icons/CollapseChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/CopyIcon.d.ts +1 -1
- package/dist/assets/icons/DotCircleFilledIcon.d.ts +1 -1
- package/dist/assets/icons/ExpandChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/InfoFillIcon.d.ts +1 -1
- package/dist/assets/icons/ListIcon.d.ts +3 -0
- package/dist/assets/icons/MagnifyingGlassIcon.d.ts +1 -1
- package/dist/assets/icons/MapPinAreaIcon.d.ts +1 -1
- package/dist/assets/icons/MinusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/MinusIcon.d.ts +3 -0
- package/dist/assets/icons/NotePencilIcon.d.ts +3 -0
- package/dist/assets/icons/PencilSimpleLineIcon.d.ts +1 -1
- package/dist/assets/icons/PlusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/PlusIcon.d.ts +3 -0
- package/dist/assets/icons/QuestionFillIcon.d.ts +1 -1
- package/dist/assets/icons/QuestionIcon.d.ts +1 -1
- package/dist/assets/icons/ScalesIcon.d.ts +1 -1
- package/dist/assets/icons/ScrollIcon.d.ts +1 -1
- package/dist/assets/icons/SearchHelpIcon.d.ts +1 -1
- package/dist/assets/icons/SearchXIcon.d.ts +1 -1
- package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +1 -1
- package/dist/assets/icons/TrashIcon.d.ts +3 -0
- package/dist/assets/icons/UploadSimpleIcon.d.ts +1 -1
- package/dist/assets/icons/UserIcon.d.ts +3 -0
- package/dist/assets/icons/WarningCircleIcon.d.ts +1 -1
- package/dist/assets/icons/WarningDiamondFillIcon.d.ts +1 -1
- package/dist/assets/icons/WarningFillIcon.d.ts +1 -1
- package/dist/assets/icons/XCircleFillIcon.d.ts +1 -1
- package/dist/components/common/Accordion/index.d.ts +1 -1
- package/dist/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.d.ts +106 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.d.ts +12 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.d.ts +7 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.d.ts +2 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/index.d.ts +4 -0
- package/dist/components/common/AdvancedList/index.d.ts +11 -0
- package/dist/components/common/Alert/index.d.ts +1 -1
- package/dist/components/common/Badge/index.d.ts +1 -1
- package/dist/components/common/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/common/Button/ButtonWithPopover.d.ts +1 -1
- package/dist/components/common/Button/index.d.ts +13 -5
- package/dist/components/common/Card/index.d.ts +1 -1
- package/dist/components/common/DataPagination/components/DataPaginationSkeleton.d.ts +1 -1
- package/dist/components/common/DataPagination/components/PaginationButton.d.ts +1 -1
- package/dist/components/common/DataPagination/index.d.ts +1 -1
- package/dist/components/common/IconWithCircularBackground.d.ts +1 -1
- package/dist/components/common/ImageCard/index.d.ts +1 -1
- package/dist/components/common/ListWithIcons/components/ListWithIconsItem.d.ts +1 -1
- package/dist/components/common/ListWithIcons/index.d.ts +1 -1
- package/dist/components/common/Popover/index.d.ts +1 -1
- package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +4 -1
- package/dist/components/common/SelectableCardList/index.d.ts +4 -1
- package/dist/components/common/Snackbar/SnackbarProvider.d.ts +1 -1
- package/dist/components/common/Snackbar/index.d.ts +1 -1
- package/dist/components/common/Switch/index.d.ts +1 -1
- package/dist/components/common/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/common/Tabs/TabsWrapper.d.ts +1 -1
- package/dist/components/common/Tooltip/index.d.ts +1 -1
- package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +1 -1
- package/dist/components/form/components/FormControlWrapper/index.d.ts +1 -1
- package/dist/components/form/inputs/Checkbox.d.ts +1 -1
- package/dist/components/form/inputs/CheckboxFormControl.d.ts +1 -1
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.d.ts +1 -1
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.d.ts +2 -1
- package/dist/components/form/inputs/Datepicker/index.d.ts +1 -1
- package/dist/components/form/inputs/FileDropzone.d.ts +1 -1
- package/dist/components/form/inputs/FileUpload.d.ts +1 -1
- package/dist/components/form/inputs/FormControlLabel.d.ts +2 -2
- package/dist/components/form/inputs/NumberStepper.d.ts +2 -1
- package/dist/components/form/inputs/PhoneInput.d.ts +2 -1
- package/dist/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.d.ts +1 -1
- package/dist/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.d.ts +13 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/PopperComponent.d.ts +1 -1
- package/dist/components/form/inputs/PhoneInputFormControl/components/RowComponent.d.ts +5 -2
- package/dist/components/form/inputs/PhoneInputFormControl/index.d.ts +2 -1
- package/dist/components/form/inputs/Select/index.d.ts +2 -1
- package/dist/components/form/inputs/SimpleCheckbox.d.ts +2 -1
- package/dist/components/layout/Footer/index.d.ts +1 -1
- package/dist/components/layout/ServiceFormActions.d.ts +1 -1
- package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.d.ts +1 -1
- package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/index.d.ts +1 -1
- package/dist/components/layout/ServiceFormContainer/CardFormContainer/index.d.ts +1 -1
- package/dist/components/layout/ServiceHeader.d.ts +1 -1
- package/dist/components/layout/ServicePage.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/CustomStepIcon.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/DesktopStepper.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/MobileStepper.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/index.d.ts +1 -1
- package/dist/components/loaders/FullPageLoader/index.d.ts +1 -1
- package/dist/components/loaders/Loader/index.d.ts +1 -1
- package/dist/components/loaders/LoadingSpinner/index.d.ts +1 -1
- package/dist/components/overlays/Dialog/index.d.ts +1 -1
- package/dist/components/overlays/Modal/index.d.ts +1 -1
- package/dist/components/utils/loading.d.ts +1 -1
- package/dist/i18n/@mui/x-date-pickers/ltLT.d.ts +1 -71
- package/dist/library/icons.d.ts +9 -1
- package/dist/library/index.d.ts +3 -0
- package/dist/registrucentras-rc-ses-react-components.cjs +1 -30
- package/dist/registrucentras-rc-ses-react-components.js +6698 -7777
- package/dist/stories/assets/Logo.stories.d.ts +1 -1
- package/dist/stories/components/actions/Button.stories.d.ts +6 -5
- package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +1 -1
- package/dist/stories/components/display/AdvancedList.stories.d.ts +32 -0
- package/dist/stories/components/display/AdvancedListItem.stories.d.ts +33 -0
- package/dist/stories/components/display/Badge.stories.d.ts +1 -1
- package/dist/stories/components/display/Card.stories.d.ts +1 -1
- package/dist/stories/components/display/ImageCard.stories.d.ts +1 -1
- package/dist/stories/components/display/ListWithIcons.stories.d.ts +2 -2
- package/dist/stories/components/display/SegmentedControl.stories.d.ts +9 -9
- package/dist/stories/components/display/SelectableCardList.stories.d.ts +2 -2
- package/dist/stories/components/display/Tooltip.stories.d.ts +2 -2
- package/dist/stories/components/feedback/Alert.stories.d.ts +1 -1
- package/dist/stories/components/feedback/Snackbar.stories.d.ts +7 -7
- package/dist/stories/components/form/CardFormContainer.stories.d.ts +1 -1
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +1 -1
- package/dist/stories/components/form/FormControlWrapper.stories.d.ts +1 -1
- package/dist/stories/components/form/ServiceFormActions.stories.d.ts +1 -1
- package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +2 -2
- package/dist/stories/components/form/SimpleCheckbox.stories.d.ts +1 -1
- package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +1 -1
- package/dist/stories/components/icons/Icons.stories.d.ts +1 -1
- package/dist/stories/components/inputs/Checkbox.stories.d.ts +2 -2
- package/dist/stories/components/inputs/DatePicker.stories.d.ts +25 -2
- package/dist/stories/components/inputs/FileDropzone.stories.d.ts +1 -1
- package/dist/stories/components/inputs/FileUpload.stories.d.ts +2 -2
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +1 -1
- package/dist/stories/components/inputs/PhoneInput.stories.d.ts +2 -2
- package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +1 -1
- package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/stories/components/inputs/SearchInput.stories.d.ts +1 -1
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +1 -1
- package/dist/stories/components/inputs/Select.stories.d.ts +1 -1
- package/dist/stories/components/inputs/Switch.stories.d.ts +1 -1
- package/dist/stories/components/inputs/TextField.stories.d.ts +1 -1
- package/dist/stories/components/layout/Footer.stories.d.ts +1 -1
- package/dist/stories/components/layout/ServiceHeader.stories.d.ts +1 -1
- package/dist/stories/components/layout/ServicePage.stories.d.ts +1 -1
- package/dist/stories/components/loaders/FullPageLoader.stories.d.ts +1 -1
- package/dist/stories/components/loaders/Loader.stories.d.ts +1 -1
- package/dist/stories/components/loaders/LoadingSpinner.stories.d.ts +4 -4
- package/dist/stories/components/navigation/Accordion.stories.d.ts +2 -2
- package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +1 -1
- package/dist/stories/components/navigation/DataPagination.stories.d.ts +2 -2
- package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +1 -1
- package/dist/stories/components/overlays/Dialog.stories.d.ts +7 -1
- package/dist/stories/components/overlays/Modal.stories.d.ts +1 -1
- package/dist/stories/components/overlays/Popover.stories.d.ts +12 -0
- package/dist/stories/components/tabs/Tab.stories.d.ts +1 -1
- package/dist/stories/components/tabs/TabPanel.stories.d.ts +1 -1
- package/dist/stories/components/tabs/Tabs.stories.d.ts +1 -1
- package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +1 -1
- package/dist/stories/theme/ThemedMuiComponents.stories.d.ts +25 -0
- package/dist/theme/motion.d.ts +16 -0
- package/package.json +64 -62
- package/src/assets/icons/CaretUpBoldIcon.tsx +17 -0
- package/src/assets/icons/CaretUpIcon.tsx +9 -0
- package/src/assets/icons/ListIcon.tsx +17 -0
- package/src/assets/icons/MinusIcon.tsx +9 -0
- package/src/assets/icons/NotePencilIcon.tsx +9 -0
- package/src/assets/icons/PlusIcon.tsx +9 -0
- package/src/assets/icons/TrashIcon.tsx +23 -0
- package/src/assets/icons/UserIcon.tsx +17 -0
- package/src/components/common/Accordion/index.tsx +0 -1
- package/src/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.ts +100 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +224 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +263 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.test.ts +80 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.ts +28 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/index.test.tsx +631 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/index.tsx +332 -0
- package/src/components/common/AdvancedList/index.test.tsx +97 -0
- package/src/components/common/AdvancedList/index.tsx +52 -0
- package/src/components/common/Alert/index.test.tsx +1 -1
- package/src/components/common/Badge/index.test.tsx +1 -1
- package/src/components/common/Button/index.test.tsx +5 -2
- package/src/components/common/Button/index.tsx +25 -5
- package/src/components/common/Card/index.test.tsx +1 -1
- package/src/components/common/DataPagination/index.test.tsx +1 -1
- package/src/components/common/DataPagination/index.tsx +14 -2
- package/src/components/common/ImageCard/index.test.tsx +1 -1
- package/src/components/common/ListWithIcons/index.test.tsx +1 -1
- package/src/components/common/SegmentedControl/components/SegmentButton/index.test.tsx +1 -1
- package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +2 -0
- package/src/components/common/SegmentedControl/index.test.tsx +1 -1
- package/src/components/common/SelectableCardList/components/SelectableCardListItem.test.tsx +50 -0
- package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +48 -2
- package/src/components/common/SelectableCardList/index.test.tsx +1 -1
- package/src/components/common/SelectableCardList/index.tsx +6 -0
- package/src/components/common/Snackbar/SnackbarProvider.tsx +1 -1
- package/src/components/common/Snackbar/index.test.tsx +1 -1
- package/src/components/common/Snackbar/index.tsx +3 -1
- package/src/components/common/Switch/index.test.tsx +1 -1
- package/src/components/common/Switch/index.tsx +21 -6
- package/src/components/common/Tooltip/index.test.tsx +2 -4
- package/src/components/common/Tooltip/index.tsx +5 -4
- package/src/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.ts +1 -1
- package/src/components/form/inputs/CheckboxFormControl.tsx +7 -3
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.tsx +8 -5
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +12 -12
- package/src/components/form/inputs/Datepicker/index.tsx +37 -32
- package/src/components/form/inputs/FileDropzone.tsx +6 -1
- package/src/components/form/inputs/NumberStepper.tsx +10 -5
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +15 -11
- package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +31 -27
- package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +8 -4
- package/src/components/form/inputs/PhoneInputFormControl/index.test.tsx +57 -2
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +66 -53
- package/src/components/form/inputs/RadioButtonGroup.tsx +0 -1
- package/src/components/form/inputs/SearchInput/index.test.tsx +1 -1
- package/src/components/form/inputs/SearchInput/index.tsx +23 -13
- package/src/components/form/inputs/SearchableField.test.tsx +126 -0
- package/src/components/form/inputs/SearchableField.tsx +29 -24
- package/src/components/form/inputs/Select/index.test.tsx +1 -1
- package/src/components/form/inputs/Select/index.tsx +95 -65
- package/src/components/form/inputs/TextField.tsx +1 -7
- package/src/components/layout/Footer/index.test.tsx +1 -1
- package/src/components/layout/ServiceFormActions.tsx +3 -3
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +2 -2
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +2 -2
- package/src/components/layout/ServiceFormContainer/CardFormContainer/index.test.tsx +1 -1
- package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.tsx +2 -1
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.test.tsx +8 -6
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.tsx +2 -1
- package/src/components/loaders/FullPageLoader/index.test.tsx +1 -1
- package/src/components/loaders/FullPageLoader/index.tsx +4 -3
- package/src/components/loaders/Loader/index.test.tsx +1 -1
- package/src/components/loaders/Loader/index.tsx +14 -4
- package/src/components/loaders/LoadingSpinner/index.test.tsx +1 -1
- package/src/components/overlays/Dialog/index.test.tsx +1 -1
- package/src/components/overlays/Dialog/index.tsx +7 -5
- package/src/components/overlays/Modal/index.test.tsx +1 -1
- package/src/components/overlays/Modal/index.tsx +4 -2
- package/src/env.tsx +1 -1
- package/src/examples/MultipleStepForm/components/ServiceDetailsForm.tsx +0 -5
- package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +0 -2
- package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +2 -2
- package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +12 -8
- package/src/examples/SingleStepForm/index.tsx +0 -2
- package/src/i18n/@mui/x-date-pickers/ltLT.ts +15 -1
- package/src/i18n/namespaces/common/en.json +11 -0
- package/src/i18n/namespaces/common/lt.json +11 -0
- package/src/library/icons.ts +16 -0
- package/src/library/index.ts +3 -0
- package/src/main.tsx +1 -1
- package/src/setupTests.ts +7 -1
- package/src/stories/Colors.mdx +1 -1
- package/src/stories/Welcome.mdx +1 -1
- package/src/stories/assets/Logo.stories.tsx +1 -1
- package/src/stories/components/actions/Button.stories.tsx +2 -2
- package/src/stories/components/actions/ButtonWithPopover.stories.tsx +1 -1
- package/src/stories/components/display/AdvancedList.stories.tsx +529 -0
- package/src/stories/components/display/AdvancedListItem.stories.tsx +653 -0
- package/src/stories/components/display/Badge.stories.tsx +24 -5
- package/src/stories/components/display/Card.stories.tsx +1 -1
- package/src/stories/components/display/ImageCard.stories.tsx +1 -1
- package/src/stories/components/display/ListWithIcons.stories.tsx +1 -1
- package/src/stories/components/display/SegmentedControl.stories.tsx +1 -1
- package/src/stories/components/display/SelectableCardList.stories.tsx +4 -1
- package/src/stories/components/display/Tooltip.stories.tsx +1 -1
- package/src/stories/components/feedback/Alert.stories.tsx +1 -1
- package/src/stories/components/feedback/Snackbar.stories.tsx +1 -1
- package/src/stories/components/form/CardFormContainer.stories.tsx +1 -1
- package/src/stories/components/form/CheckboxFormControl.stories.tsx +1 -1
- package/src/stories/components/form/FormControlWrapper.stories.tsx +1 -1
- package/src/stories/components/form/ServiceFormActions.stories.tsx +1 -1
- package/src/stories/components/form/ServiceFormContainer.stories.tsx +1 -3
- package/src/stories/components/form/SimpleCheckbox.stories.tsx +1 -1
- package/src/stories/components/icons/IconWithCircularBackground.stories.tsx +1 -1
- package/src/stories/components/icons/Icons.stories.tsx +1 -2
- package/src/stories/components/inputs/Checkbox.stories.tsx +1 -2
- package/src/stories/components/inputs/DatePicker.stories.tsx +38 -4
- package/src/stories/components/inputs/FileDropzone.stories.tsx +1 -1
- package/src/stories/components/inputs/FileUpload.stories.tsx +1 -2
- package/src/stories/components/inputs/NumberStepper.stories.tsx +1 -1
- package/src/stories/components/inputs/PhoneInput.stories.tsx +1 -2
- package/src/stories/components/inputs/PhoneInputFormControl.stories.tsx +3 -2
- package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +1 -1
- package/src/stories/components/inputs/SearchInput.stories.tsx +2 -2
- package/src/stories/components/inputs/SearchableField.stories.tsx +1 -1
- package/src/stories/components/inputs/Select.stories.tsx +1 -2
- package/src/stories/components/inputs/Switch.stories.tsx +1 -1
- package/src/stories/components/inputs/TextField.stories.tsx +1 -1
- package/src/stories/components/layout/Footer.stories.tsx +1 -1
- package/src/stories/components/layout/ServiceHeader.stories.tsx +1 -1
- package/src/stories/components/layout/ServicePage.stories.tsx +1 -1
- package/src/stories/components/loaders/FullPageLoader.stories.tsx +1 -1
- package/src/stories/components/loaders/Loader.stories.tsx +1 -1
- package/src/stories/components/loaders/LoadingSpinner.stories.tsx +1 -1
- package/src/stories/components/navigation/Accordion.stories.tsx +1 -2
- package/src/stories/components/navigation/Breadcrumbs.stories.tsx +1 -1
- package/src/stories/components/navigation/DataPagination.stories.tsx +8 -2
- package/src/stories/components/navigation/ServiceWizardStepper.stories.tsx +1 -1
- package/src/stories/components/overlays/Dialog.stories.tsx +35 -1
- package/src/stories/components/overlays/Modal.stories.tsx +1 -1
- package/src/stories/components/overlays/Popover.stories.tsx +65 -0
- package/src/stories/components/tabs/Tab.stories.tsx +12 -1
- package/src/stories/components/tabs/TabPanel.stories.tsx +1 -1
- package/src/stories/components/tabs/Tabs.stories.tsx +1 -1
- package/src/stories/components/tabs/TabsWrapper.stories.tsx +1 -1
- package/src/stories/theme/ThemedMuiComponents.stories.tsx +177 -0
- package/src/theme/light/MuiAlert.tsx +82 -75
- package/src/theme/light/MuiLinearProgress.ts +6 -2
- package/src/theme/light/MuiPickersLayout.ts +4 -4
- package/src/theme/light/MuiTabs.tsx +2 -1
- package/src/theme/motion.tsx +10 -0
- package/src/types/common/ColorType.tsx +1 -7
- package/dist/components/form/inputs/PhoneInputFormControl/components/OuterElementType.d.ts +0 -5
- package/dist/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.d.ts +0 -4
- package/src/components/form/inputs/PhoneInputFormControl/components/OuterElementType.tsx +0 -13
- package/src/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.ts +0 -14
|
@@ -231,11 +231,6 @@ function RcSesSelect(props: Props) {
|
|
|
231
231
|
blurOnSelect={false}
|
|
232
232
|
clearOnBlur={false}
|
|
233
233
|
handleHomeEndKeys={false}
|
|
234
|
-
ListboxProps={{
|
|
235
|
-
onMouseDown: (e) => {
|
|
236
|
-
e.preventDefault()
|
|
237
|
-
},
|
|
238
|
-
}}
|
|
239
234
|
loading={loading}
|
|
240
235
|
value={resolvedValue}
|
|
241
236
|
inputValue={resolvedInputValue}
|
|
@@ -254,7 +249,8 @@ function RcSesSelect(props: Props) {
|
|
|
254
249
|
}}
|
|
255
250
|
isOptionEqualToValue={(option, val) => option.value === val.value}
|
|
256
251
|
getOptionLabel={(option) => option.label}
|
|
257
|
-
|
|
252
|
+
// to prevent default grouping when groupBy is not provided but dropdownSearch is enabled
|
|
253
|
+
groupBy={() => ''}
|
|
258
254
|
renderGroup={(params) => (
|
|
259
255
|
<React.Fragment key={params.key}>
|
|
260
256
|
{!!params.group && (
|
|
@@ -311,21 +307,29 @@ function RcSesSelect(props: Props) {
|
|
|
311
307
|
},
|
|
312
308
|
}),
|
|
313
309
|
}}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
310
|
+
slotProps={{
|
|
311
|
+
// Spreading params.slotProps keeps `input`, which carries the ref
|
|
312
|
+
// and classes Autocomplete relies on.
|
|
313
|
+
...params.slotProps,
|
|
314
|
+
input: {
|
|
315
|
+
...params.slotProps.input,
|
|
316
|
+
startAdornment:
|
|
317
|
+
!multiple && selectedSingleLabel ? (
|
|
318
|
+
<Box id={selectedValueId} className='rc-ses-select-single-value'>
|
|
319
|
+
{selectedSingleLabel}
|
|
320
|
+
</Box>
|
|
321
|
+
) : (
|
|
322
|
+
params.slotProps.input.startAdornment
|
|
323
|
+
),
|
|
324
|
+
},
|
|
325
|
+
htmlInput: {
|
|
326
|
+
...params.slotProps.htmlInput,
|
|
326
327
|
'aria-describedby':
|
|
327
328
|
!multiple && selectedSingleLabel ? selectedValueId : undefined,
|
|
328
|
-
value:
|
|
329
|
+
value:
|
|
330
|
+
!multiple && selectedSingleLabel
|
|
331
|
+
? ''
|
|
332
|
+
: params.slotProps.htmlInput?.value,
|
|
329
333
|
readOnly: dropdownSearch || (!multiple && !!selectedSingleLabel),
|
|
330
334
|
},
|
|
331
335
|
}}
|
|
@@ -412,15 +416,25 @@ function RcSesSelect(props: Props) {
|
|
|
412
416
|
opacity: 1,
|
|
413
417
|
},
|
|
414
418
|
}}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
419
|
+
slotProps={{
|
|
420
|
+
input: {
|
|
421
|
+
startAdornment: (
|
|
422
|
+
<Box sx={{ display: 'flex', m: '.625rem' }}>
|
|
423
|
+
<MagnifyingGlassIcon
|
|
424
|
+
size={20}
|
|
425
|
+
fillColor={palette.grey['900']}
|
|
426
|
+
/>
|
|
427
|
+
</Box>
|
|
428
|
+
),
|
|
429
|
+
},
|
|
430
|
+
// Keeps typing in the dropdown's search box from reaching
|
|
431
|
+
// Autocomplete's own keyboard navigation. The parameter needs
|
|
432
|
+
// annotating: inside slotProps it no longer gets a contextual
|
|
433
|
+
// type the way it did on InputProps.
|
|
434
|
+
htmlInput: {
|
|
435
|
+
onKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) =>
|
|
436
|
+
event.stopPropagation(),
|
|
418
437
|
},
|
|
419
|
-
startAdornment: (
|
|
420
|
-
<Box sx={{ display: 'flex', m: '.625rem' }}>
|
|
421
|
-
<MagnifyingGlassIcon size={20} fillColor={palette.grey['900']} />
|
|
422
|
-
</Box>
|
|
423
|
-
),
|
|
424
438
|
}}
|
|
425
439
|
/>
|
|
426
440
|
</Box>
|
|
@@ -432,14 +446,17 @@ function RcSesSelect(props: Props) {
|
|
|
432
446
|
key={key}
|
|
433
447
|
component='li'
|
|
434
448
|
{...rest}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
449
|
+
sx={[
|
|
450
|
+
{
|
|
451
|
+
display: 'flex',
|
|
452
|
+
alignItems: 'center',
|
|
453
|
+
gap: multiple ? '.75rem' : '.5rem',
|
|
454
|
+
flexDirection: 'row !important',
|
|
455
|
+
justifyContent: 'space-between',
|
|
456
|
+
minWidth: 0,
|
|
457
|
+
},
|
|
458
|
+
...(Array.isArray(rest.sx) ? rest.sx : [rest.sx]),
|
|
459
|
+
]}
|
|
443
460
|
>
|
|
444
461
|
{multiple && (
|
|
445
462
|
<Checkbox
|
|
@@ -462,11 +479,11 @@ function RcSesSelect(props: Props) {
|
|
|
462
479
|
}}
|
|
463
480
|
/>
|
|
464
481
|
)}
|
|
465
|
-
|
|
466
482
|
<Box
|
|
467
|
-
flex={1}
|
|
468
483
|
sx={{
|
|
484
|
+
flex: 1,
|
|
469
485
|
minWidth: 0,
|
|
486
|
+
|
|
470
487
|
...(multiple && !option.description
|
|
471
488
|
? {
|
|
472
489
|
alignItems: 'center',
|
|
@@ -484,7 +501,6 @@ function RcSesSelect(props: Props) {
|
|
|
484
501
|
</span>
|
|
485
502
|
)}
|
|
486
503
|
</Box>
|
|
487
|
-
|
|
488
504
|
{!multiple && selected && (
|
|
489
505
|
<CheckIcon
|
|
490
506
|
size={16}
|
|
@@ -497,39 +513,46 @@ function RcSesSelect(props: Props) {
|
|
|
497
513
|
</Box>
|
|
498
514
|
)
|
|
499
515
|
}}
|
|
500
|
-
|
|
516
|
+
renderValue={(tagValues, getItemProps, ownerState) => {
|
|
517
|
+
// MUI 9 merged renderTags into renderValue, so this now runs for
|
|
518
|
+
// single-select too where v7's renderTags did not. Single-select must
|
|
519
|
+
// keep showing the plain label - rendering a deletable Chip there both
|
|
520
|
+
// looks wrong and makes the field taller.
|
|
521
|
+
const selected = Array.isArray(tagValues) ? tagValues : [tagValues]
|
|
522
|
+
if (!multiple) {
|
|
523
|
+
return selected[0]?.label ?? ''
|
|
524
|
+
}
|
|
525
|
+
|
|
501
526
|
const visibleTagLimit = ownerState.limitTags ?? -1
|
|
502
527
|
const shouldLimitTags =
|
|
503
|
-
visibleTagLimit > -1 &&
|
|
528
|
+
visibleTagLimit > -1 && selected.length > visibleTagLimit
|
|
504
529
|
const visibleTags = shouldLimitTags
|
|
505
|
-
?
|
|
506
|
-
:
|
|
507
|
-
const hiddenTagCount =
|
|
530
|
+
? selected.slice(0, visibleTagLimit)
|
|
531
|
+
: selected
|
|
532
|
+
const hiddenTagCount = selected.length - visibleTags.length
|
|
508
533
|
|
|
509
534
|
return (
|
|
510
535
|
<>
|
|
511
|
-
{visibleTags.map((option, index) =>
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
)
|
|
532
|
-
})}
|
|
536
|
+
{visibleTags.map((option, index) => (
|
|
537
|
+
// getItemProps no longer returns a key, so it comes from the option.
|
|
538
|
+
<Chip
|
|
539
|
+
key={option.value ?? index}
|
|
540
|
+
label={option.label}
|
|
541
|
+
size='small'
|
|
542
|
+
sx={{
|
|
543
|
+
height: 'auto',
|
|
544
|
+
maxWidth: `calc(100% - ${reservedMultipleEndAdornmentWidth}rem)`,
|
|
545
|
+
'& .MuiChip-label': {
|
|
546
|
+
display: 'block',
|
|
547
|
+
overflowWrap: 'anywhere',
|
|
548
|
+
py: '.25rem',
|
|
549
|
+
textOverflow: 'clip',
|
|
550
|
+
whiteSpace: 'normal',
|
|
551
|
+
},
|
|
552
|
+
}}
|
|
553
|
+
{...getItemProps({ index })}
|
|
554
|
+
/>
|
|
555
|
+
))}
|
|
533
556
|
|
|
534
557
|
{hiddenTagCount > 0 && (
|
|
535
558
|
<Box component='span' className='MuiAutocomplete-tag'>
|
|
@@ -540,6 +563,13 @@ function RcSesSelect(props: Props) {
|
|
|
540
563
|
)
|
|
541
564
|
}}
|
|
542
565
|
{...slotProps?.field}
|
|
566
|
+
slotProps={{
|
|
567
|
+
listbox: {
|
|
568
|
+
onMouseDown: (e) => {
|
|
569
|
+
e.preventDefault()
|
|
570
|
+
},
|
|
571
|
+
},
|
|
572
|
+
}}
|
|
543
573
|
/>
|
|
544
574
|
</RcSesFormControlWrapper>
|
|
545
575
|
)
|
|
@@ -11,13 +11,7 @@ import RcSesFormControlWrapper, {
|
|
|
11
11
|
|
|
12
12
|
type TFieldProps = Omit<MuiOutlinedTextFieldProps, 'variant'>
|
|
13
13
|
type ImmediateFieldProps =
|
|
14
|
-
| '
|
|
15
|
-
| 'onBlur'
|
|
16
|
-
| 'disabled'
|
|
17
|
-
| 'name'
|
|
18
|
-
| 'ref'
|
|
19
|
-
| 'required'
|
|
20
|
-
| 'multiline'
|
|
14
|
+
'onChange' | 'onBlur' | 'disabled' | 'name' | 'ref' | 'required' | 'multiline'
|
|
21
15
|
|
|
22
16
|
type TWrapperProps = RcSesFormControlWrapperProps
|
|
23
17
|
type ImmediateWrapperProps = 'label' | 'errors'
|
|
@@ -43,7 +43,7 @@ function ServiceFormActions({
|
|
|
43
43
|
justifyContent: { xs: 'center', md: 'space-between' },
|
|
44
44
|
}}
|
|
45
45
|
>
|
|
46
|
-
<Grid
|
|
46
|
+
<Grid>
|
|
47
47
|
<Button
|
|
48
48
|
disabled={draftDisabled === true}
|
|
49
49
|
onClick={() => onSaveDraft()}
|
|
@@ -53,7 +53,7 @@ function ServiceFormActions({
|
|
|
53
53
|
{t('draft')}
|
|
54
54
|
</Button>
|
|
55
55
|
</Grid>
|
|
56
|
-
<Grid
|
|
56
|
+
<Grid>
|
|
57
57
|
<Button
|
|
58
58
|
disabled={submitDisabled === true}
|
|
59
59
|
endIcon={<ArrowRightIcon />}
|
|
@@ -71,7 +71,7 @@ function ServiceFormActions({
|
|
|
71
71
|
container
|
|
72
72
|
sx={{ justifyContent: 'center', py: { xs: '1.5rem', md: '.875rem' } }}
|
|
73
73
|
>
|
|
74
|
-
<Grid
|
|
74
|
+
<Grid>
|
|
75
75
|
<Button
|
|
76
76
|
variant='text'
|
|
77
77
|
size='small'
|
|
@@ -16,7 +16,7 @@ function AccordionCollapseControls({ controller }: Props) {
|
|
|
16
16
|
container
|
|
17
17
|
sx={{ display: { xs: 'none', md: 'flex' }, justifyContent: 'flex-end' }}
|
|
18
18
|
>
|
|
19
|
-
<Grid
|
|
19
|
+
<Grid>
|
|
20
20
|
<Button
|
|
21
21
|
variant='text'
|
|
22
22
|
size='small'
|
|
@@ -26,7 +26,7 @@ function AccordionCollapseControls({ controller }: Props) {
|
|
|
26
26
|
Praskleisti visus
|
|
27
27
|
</Button>
|
|
28
28
|
</Grid>
|
|
29
|
-
<Grid
|
|
29
|
+
<Grid>
|
|
30
30
|
<Button
|
|
31
31
|
variant='text'
|
|
32
32
|
size='small'
|
|
@@ -66,7 +66,7 @@ function RcSesServiceFormContainer({
|
|
|
66
66
|
sx={{ columnGap: 7.5, flexWrap: 'nowrap', justifyContent: 'center' }}
|
|
67
67
|
>
|
|
68
68
|
{showProgressStepper && (
|
|
69
|
-
<Grid
|
|
69
|
+
<Grid sx={{ display: { xs: 'none', md: 'block' }, flex: '0 0 270px' }}>
|
|
70
70
|
<ServiceWizardStepper
|
|
71
71
|
steps={steps}
|
|
72
72
|
orientation='vertical'
|
|
@@ -76,7 +76,7 @@ function RcSesServiceFormContainer({
|
|
|
76
76
|
</Grid>
|
|
77
77
|
)}
|
|
78
78
|
|
|
79
|
-
<Grid
|
|
79
|
+
<Grid sx={{ flexGrow: 1 }}>
|
|
80
80
|
{areAccordionCollapseControlsVisible && (
|
|
81
81
|
<AccordionCollapseControls controller={accordionController} />
|
|
82
82
|
)}
|
|
@@ -4,8 +4,8 @@ import { ReactElement } from 'react'
|
|
|
4
4
|
|
|
5
5
|
import theme from '@/theme/light'
|
|
6
6
|
|
|
7
|
+
import RcSesCardFormContainer from '.'
|
|
7
8
|
import { StepItem } from '../../ServiceWizardStepper/StepperTypes'
|
|
8
|
-
import RcSesCardFormContainer from './index'
|
|
9
9
|
|
|
10
10
|
const baseSteps: StepItem[] = [
|
|
11
11
|
{ id: '1', title: 'Step 1' },
|
|
@@ -46,7 +46,8 @@ const DesktopStepper = ({
|
|
|
46
46
|
<Step key={step.id}>
|
|
47
47
|
<StepButton onClick={() => handleStepClick(index)} disabled={!isClickable}>
|
|
48
48
|
<StyledStepLabel
|
|
49
|
-
StepIconComponent
|
|
49
|
+
// MUI 9 replaced StepIconComponent with the stepIcon slot.
|
|
50
|
+
slots={{ stepIcon: CustomStepIcon }}
|
|
50
51
|
stepState={stepState}
|
|
51
52
|
orientation={resolvedOrientation}
|
|
52
53
|
isLast={index === stepEntries.length - 1}
|
|
@@ -26,9 +26,11 @@ describe('MobileStepper', () => {
|
|
|
26
26
|
/>,
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
// MUI 9 changed Stepper's semantics: the Stepper is a tablist and each
|
|
30
|
+
// StepButton is a tab, so the steps and the nav button are separate roles
|
|
31
|
+
// rather than all being buttons.
|
|
32
|
+
expect(screen.getAllByRole('tab')).toHaveLength(steps.length)
|
|
33
|
+
expect(screen.getAllByRole('button')).toHaveLength(1)
|
|
32
34
|
})
|
|
33
35
|
|
|
34
36
|
it('does not render back button on first step', () => {
|
|
@@ -41,8 +43,8 @@ describe('MobileStepper', () => {
|
|
|
41
43
|
/>,
|
|
42
44
|
)
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
expect(
|
|
46
|
+
// Steps still render as tabs; only the back-navigation button is absent.
|
|
47
|
+
expect(screen.getAllByRole('tab')).toHaveLength(steps.length)
|
|
48
|
+
expect(screen.queryAllByRole('button')).toHaveLength(0)
|
|
47
49
|
})
|
|
48
50
|
})
|
|
@@ -40,7 +40,8 @@ const MobileStepper = ({
|
|
|
40
40
|
<Step key={step.id}>
|
|
41
41
|
<StepButton disabled>
|
|
42
42
|
<StyledStepLabel
|
|
43
|
-
StepIconComponent
|
|
43
|
+
// MUI 9 replaced StepIconComponent with the stepIcon slot.
|
|
44
|
+
slots={{ stepIcon: CustomStepIcon }}
|
|
44
45
|
stepState={getStepState(index)}
|
|
45
46
|
/>
|
|
46
47
|
</StepButton>
|
|
@@ -6,7 +6,7 @@ import { beforeEach, describe, expect, it } from 'vitest'
|
|
|
6
6
|
import i18n from '@/i18n/i18n'
|
|
7
7
|
import theme from '@/theme/light'
|
|
8
8
|
|
|
9
|
-
import RcSesFullPageLoader from '
|
|
9
|
+
import RcSesFullPageLoader from '.'
|
|
10
10
|
|
|
11
11
|
const getDefaultLoaderLabel = () => i18n.t('components.Loader.loading', { ns: 'common' })
|
|
12
12
|
|
|
@@ -12,8 +12,7 @@ const FULL_PAGE_LOADER_CONTAINER_HEIGHT = 198
|
|
|
12
12
|
type FullPageLoaderContentProps = Pick<RcSesLoaderProps, 'label' | 'showLabel'>
|
|
13
13
|
|
|
14
14
|
export interface RcSesFullPageLoaderProps
|
|
15
|
-
extends Omit<BoxProps, 'children' | 'sx'>,
|
|
16
|
-
FullPageLoaderContentProps {
|
|
15
|
+
extends Omit<BoxProps, 'children' | 'sx'>, FullPageLoaderContentProps {
|
|
17
16
|
backdrop?: RcSesLoaderBackdrop
|
|
18
17
|
}
|
|
19
18
|
|
|
@@ -24,8 +23,10 @@ function RcSesFullPageLoader({
|
|
|
24
23
|
...props
|
|
25
24
|
}: RcSesFullPageLoaderProps) {
|
|
26
25
|
return (
|
|
26
|
+
// MUI 9 removed disableEscapeKeyDown in favour of inspecting the `reason`
|
|
27
|
+
// argument in onClose. Dropping it changes nothing here: this Modal is
|
|
28
|
+
// permanently open and takes no onClose, so Escape already had no effect.
|
|
27
29
|
<Modal
|
|
28
|
-
disableEscapeKeyDown
|
|
29
30
|
open
|
|
30
31
|
slotProps={{
|
|
31
32
|
backdrop: {
|
|
@@ -47,14 +47,24 @@ function RcSesLoader({
|
|
|
47
47
|
role='status'
|
|
48
48
|
aria-live='polite'
|
|
49
49
|
aria-label={!showLabel ? (ariaLabel ?? resolvedLabel) : ariaLabel}
|
|
50
|
-
alignItems='center'
|
|
51
|
-
gap={gap}
|
|
52
|
-
sx={[{ color: RcSesPalette.primary[700] }, ...(Array.isArray(sx) ? sx : [sx])]}
|
|
53
50
|
{...props}
|
|
51
|
+
sx={[
|
|
52
|
+
{
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
gap,
|
|
55
|
+
},
|
|
56
|
+
{ color: RcSesPalette.primary[700] },
|
|
57
|
+
...(Array.isArray(sx) ? sx : [sx]),
|
|
58
|
+
]}
|
|
54
59
|
>
|
|
55
60
|
<RcSesLoadingSpinner color='inherit' size={spinnerSize} />
|
|
56
61
|
{showLabel && (
|
|
57
|
-
<Typography
|
|
62
|
+
<Typography
|
|
63
|
+
variant={textVariant}
|
|
64
|
+
sx={{
|
|
65
|
+
color: 'text.secondary',
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
58
68
|
{resolvedLabel}
|
|
59
69
|
</Typography>
|
|
60
70
|
)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { render, screen } from '@testing-library/react'
|
|
2
2
|
import { describe, expect, it } from 'vitest'
|
|
3
3
|
|
|
4
|
-
import RcSesLoadingSpinner from '
|
|
4
|
+
import RcSesLoadingSpinner from '.'
|
|
5
5
|
|
|
6
6
|
describe('RcSesLoadingSpinner', () => {
|
|
7
7
|
it('should render a progress bar', () => {
|
|
@@ -2,7 +2,7 @@ import { Button } from '@mui/material'
|
|
|
2
2
|
import { render, screen } from '@testing-library/react'
|
|
3
3
|
import { describe, expect, it } from 'vitest'
|
|
4
4
|
|
|
5
|
-
import RcSesDialog from '
|
|
5
|
+
import RcSesDialog from '.'
|
|
6
6
|
|
|
7
7
|
describe('RcSesDialog', () => {
|
|
8
8
|
it('should render dialog title', () => {
|
|
@@ -15,8 +15,10 @@ const SIZE_MAP: Record<DialogSize, string> = {
|
|
|
15
15
|
lg: '800px',
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export interface RcSesDialogProps
|
|
19
|
-
|
|
18
|
+
export interface RcSesDialogProps extends Omit<
|
|
19
|
+
MuiDialogProps,
|
|
20
|
+
'children' | 'title' | 'PaperProps' | 'maxWidth'
|
|
21
|
+
> {
|
|
20
22
|
dialogTitle: string | ReactNode
|
|
21
23
|
children?: ReactNode
|
|
22
24
|
actions: ReactNode
|
|
@@ -40,9 +42,11 @@ function RcSesDialog({
|
|
|
40
42
|
onClose={onClose}
|
|
41
43
|
{...props}
|
|
42
44
|
maxWidth={false}
|
|
43
|
-
PaperProps={{ sx: { width: dialogWidth, borderRadius: '16px' } }}
|
|
44
45
|
aria-labelledby={titleId}
|
|
45
46
|
aria-describedby={children ? contentId : undefined}
|
|
47
|
+
slotProps={{
|
|
48
|
+
paper: { sx: { width: dialogWidth, borderRadius: '16px' } },
|
|
49
|
+
}}
|
|
46
50
|
>
|
|
47
51
|
<DialogTitle
|
|
48
52
|
id={titleId}
|
|
@@ -57,7 +61,6 @@ function RcSesDialog({
|
|
|
57
61
|
>
|
|
58
62
|
{dialogTitle}
|
|
59
63
|
</DialogTitle>
|
|
60
|
-
|
|
61
64
|
{children && (
|
|
62
65
|
<DialogContent
|
|
63
66
|
id={contentId}
|
|
@@ -68,7 +71,6 @@ function RcSesDialog({
|
|
|
68
71
|
{children}
|
|
69
72
|
</DialogContent>
|
|
70
73
|
)}
|
|
71
|
-
|
|
72
74
|
{actions && (
|
|
73
75
|
<DialogActions
|
|
74
76
|
sx={{
|
|
@@ -6,7 +6,7 @@ import { beforeAll, describe, expect, it, vi } from 'vitest'
|
|
|
6
6
|
import inputEn from '@/i18n/namespaces/input/en.json'
|
|
7
7
|
import inputLt from '@/i18n/namespaces/input/lt.json'
|
|
8
8
|
|
|
9
|
-
import RcSesModal from '
|
|
9
|
+
import RcSesModal from '.'
|
|
10
10
|
|
|
11
11
|
beforeAll(() => {
|
|
12
12
|
if (!i18n.isInitialized) {
|
|
@@ -33,8 +33,10 @@ const VARIANT_CONFIG: Record<ModalVariant, { icon: ReactNode }> = {
|
|
|
33
33
|
},
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface RcSesModalProps
|
|
37
|
-
|
|
36
|
+
export interface RcSesModalProps extends Omit<
|
|
37
|
+
RcSesDialogProps,
|
|
38
|
+
'children' | 'dialogTitle' | 'actions'
|
|
39
|
+
> {
|
|
38
40
|
title: string
|
|
39
41
|
message: ReactNode
|
|
40
42
|
variant?: ModalVariant
|
package/src/env.tsx
CHANGED
|
@@ -39,7 +39,6 @@ function ServiceDetailsForm() {
|
|
|
39
39
|
{ value: 'tikslas3', label: 'Tikslas 3' },
|
|
40
40
|
]}
|
|
41
41
|
/>
|
|
42
|
-
|
|
43
42
|
<RcSesSelect
|
|
44
43
|
id='legalBasis'
|
|
45
44
|
name='legalBasis'
|
|
@@ -53,7 +52,6 @@ function ServiceDetailsForm() {
|
|
|
53
52
|
{ value: 'teisinisPagrindas3', label: 'Teisinis pagrindas 3' },
|
|
54
53
|
]}
|
|
55
54
|
/>
|
|
56
|
-
|
|
57
55
|
<RcSesCheckbox
|
|
58
56
|
id='agreement'
|
|
59
57
|
name='agreement'
|
|
@@ -65,7 +63,6 @@ function ServiceDetailsForm() {
|
|
|
65
63
|
Pagal užsakymą gautus duomenis naudosiu nurodytam duomenų tikslui ir šių duomenų
|
|
66
64
|
neatskleisiu tretiesiems asmenims.
|
|
67
65
|
</RcSesCheckbox>
|
|
68
|
-
|
|
69
66
|
<RcSesSelect
|
|
70
67
|
id='deadline'
|
|
71
68
|
name='deadline'
|
|
@@ -78,7 +75,6 @@ function ServiceDetailsForm() {
|
|
|
78
75
|
{ value: 'terminas-2', label: 'iki mėnesio pabaigos' },
|
|
79
76
|
]}
|
|
80
77
|
/>
|
|
81
|
-
|
|
82
78
|
<RcSesSelect
|
|
83
79
|
id='address'
|
|
84
80
|
name='address'
|
|
@@ -134,7 +130,6 @@ function ServiceDetailsForm() {
|
|
|
134
130
|
},
|
|
135
131
|
]}
|
|
136
132
|
/>
|
|
137
|
-
|
|
138
133
|
<RcSesNumberStepper
|
|
139
134
|
id='numberOfCopies'
|
|
140
135
|
name='numberOfCopies'
|
|
@@ -29,7 +29,6 @@ function ServiceIssuanceForm() {
|
|
|
29
29
|
Primename, kad atsiimant rezultatus padalinyje su savimi privalote turėti asmens
|
|
30
30
|
tapatybę patvirtinantį dokumentą.
|
|
31
31
|
</RcSesAlert>
|
|
32
|
-
|
|
33
32
|
<RcSesRadioButtonGroup
|
|
34
33
|
id='issuanceMethod'
|
|
35
34
|
name='issuanceMethod'
|
|
@@ -45,7 +44,6 @@ function ServiceIssuanceForm() {
|
|
|
45
44
|
]}
|
|
46
45
|
hideNativeRadio
|
|
47
46
|
/>
|
|
48
|
-
|
|
49
47
|
<RcSesSelect
|
|
50
48
|
id='rcBranch'
|
|
51
49
|
name='rcBranch'
|
|
@@ -32,8 +32,8 @@ function TermsAndConditionsForm() {
|
|
|
32
32
|
label: {
|
|
33
33
|
slotProps: {
|
|
34
34
|
typography: {
|
|
35
|
-
|
|
36
|
-
lineHeight: '1.3125rem',
|
|
35
|
+
// MUI 9 no longer accepts style shorthands on this slot.
|
|
36
|
+
sx: { fontWeight: 600, lineHeight: '1.3125rem' },
|
|
37
37
|
variant: 'body1',
|
|
38
38
|
},
|
|
39
39
|
},
|