@registrucentras/rc-ses-react-components 1.11.0 → 2.0.0-rc.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/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/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/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/PencilSimpleLineIcon.d.ts +1 -1
- package/dist/assets/icons/PlusBoldIcon.d.ts +1 -1
- 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/UploadSimpleIcon.d.ts +1 -1
- 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/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 +2 -4
- 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 +1 -1
- package/dist/components/common/SelectableCardList/index.d.ts +1 -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/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/registrucentras-rc-ses-react-components.cjs +1 -30
- package/dist/registrucentras-rc-ses-react-components.js +6194 -7998
- package/dist/stories/assets/Logo.stories.d.ts +1 -1
- package/dist/stories/components/actions/Button.stories.d.ts +2 -2
- package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +1 -1
- 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/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 +2 -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 +1 -1
- 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 +1 -1
- package/dist/stories/components/overlays/Modal.stories.d.ts +1 -1
- 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/package.json +63 -62
- package/src/components/common/Accordion/index.tsx +0 -1
- 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 +10 -4
- 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.tsx +14 -2
- package/src/components/common/SelectableCardList/index.test.tsx +1 -1
- 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/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.tsx +67 -36
- 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/main.tsx +1 -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/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 +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 +2 -3
- 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 +1 -1
- package/src/stories/components/overlays/Modal.stories.tsx +1 -1
- 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/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/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
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
|
},
|
|
@@ -84,11 +84,10 @@ function ObjectIdentifierSearchModal({ open, onSubmit, onClose }: Props) {
|
|
|
84
84
|
return (
|
|
85
85
|
<Dialog onClose={onClose} open={open} maxWidth='md'>
|
|
86
86
|
<DialogTitle>Paieška pagal adresą</DialogTitle>
|
|
87
|
-
|
|
88
87
|
<DialogContent>
|
|
89
88
|
<form onSubmit={handleSubmit(handleOnSearch)} noValidate>
|
|
90
89
|
<Grid container columnSpacing={2} sx={{ mb: 2 }}>
|
|
91
|
-
<Grid
|
|
90
|
+
<Grid size={{ xs: 12, md: 6 }}>
|
|
92
91
|
<RcSesTextField
|
|
93
92
|
label='Miestas'
|
|
94
93
|
errors={errors?.city}
|
|
@@ -97,7 +96,7 @@ function ObjectIdentifierSearchModal({ open, onSubmit, onClose }: Props) {
|
|
|
97
96
|
/>
|
|
98
97
|
</Grid>
|
|
99
98
|
|
|
100
|
-
<Grid
|
|
99
|
+
<Grid size={{ xs: 12, md: 6 }}>
|
|
101
100
|
<RcSesTextField
|
|
102
101
|
label='Gatvė'
|
|
103
102
|
errors={errors?.street}
|
|
@@ -106,7 +105,7 @@ function ObjectIdentifierSearchModal({ open, onSubmit, onClose }: Props) {
|
|
|
106
105
|
/>
|
|
107
106
|
</Grid>
|
|
108
107
|
|
|
109
|
-
<Grid
|
|
108
|
+
<Grid size={{ xs: 12, md: 4 }}>
|
|
110
109
|
<RcSesTextField
|
|
111
110
|
label='Pastato nr.'
|
|
112
111
|
errors={errors?.addressNo}
|
|
@@ -115,7 +114,7 @@ function ObjectIdentifierSearchModal({ open, onSubmit, onClose }: Props) {
|
|
|
115
114
|
/>
|
|
116
115
|
</Grid>
|
|
117
116
|
|
|
118
|
-
<Grid
|
|
117
|
+
<Grid size={{ xs: 12, md: 4 }}>
|
|
119
118
|
<RcSesTextField
|
|
120
119
|
label='Korpuso nr.'
|
|
121
120
|
errors={errors?.housingNo}
|
|
@@ -124,7 +123,7 @@ function ObjectIdentifierSearchModal({ open, onSubmit, onClose }: Props) {
|
|
|
124
123
|
/>
|
|
125
124
|
</Grid>
|
|
126
125
|
|
|
127
|
-
<Grid
|
|
126
|
+
<Grid size={{ xs: 12, md: 4 }}>
|
|
128
127
|
<RcSesTextField
|
|
129
128
|
label='Patalpos nr.'
|
|
130
129
|
errors={errors?.aptNo}
|
|
@@ -134,7 +133,13 @@ function ObjectIdentifierSearchModal({ open, onSubmit, onClose }: Props) {
|
|
|
134
133
|
</Grid>
|
|
135
134
|
</Grid>
|
|
136
135
|
|
|
137
|
-
<Stack
|
|
136
|
+
<Stack
|
|
137
|
+
direction='row'
|
|
138
|
+
spacing={1}
|
|
139
|
+
sx={{
|
|
140
|
+
justifyContent: 'flex-end',
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
138
143
|
<Button type='submit'>Ieškoti</Button>
|
|
139
144
|
<Button color='grey' variant='outlined' onClick={handleOnReset}>
|
|
140
145
|
Išvalyti
|
|
@@ -171,7 +176,6 @@ function ObjectIdentifierSearchModal({ open, onSubmit, onClose }: Props) {
|
|
|
171
176
|
</TableContainer>
|
|
172
177
|
)}
|
|
173
178
|
</DialogContent>
|
|
174
|
-
|
|
175
179
|
<DialogActions>
|
|
176
180
|
<Button disabled={!results?.length} onClick={handleOnSubmit}>
|
|
177
181
|
Pridėti
|
|
@@ -92,7 +92,6 @@ function SingleStepForm() {
|
|
|
92
92
|
slotProps={{ container: { maxWidth: 'md' } }}
|
|
93
93
|
>
|
|
94
94
|
<RcSesAccordion id='form' controller={accordionController}>
|
|
95
|
-
{/* eslint-disable-next-line no-console */}
|
|
96
95
|
<form onSubmit={handleSubmit(console.debug)} noValidate>
|
|
97
96
|
<RcSesTextField
|
|
98
97
|
id='text'
|
|
@@ -254,7 +253,6 @@ function SingleStepForm() {
|
|
|
254
253
|
}
|
|
255
254
|
reader.readAsArrayBuffer(file)
|
|
256
255
|
})
|
|
257
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
258
256
|
},
|
|
259
257
|
},
|
|
260
258
|
wrapper: {
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* x-date-pickers 9 no longer lists `locales/utils/getPickersLocalization` in its
|
|
3
|
+
* package `exports` map, so the deep import no longer resolves. The helper is a
|
|
4
|
+
* one-line wrapper, so it is reproduced here rather than reaching into the
|
|
5
|
+
* package's internals.
|
|
6
|
+
*/
|
|
7
|
+
const getPickersLocalization = (pickersTranslations: Record<string, unknown>) => ({
|
|
8
|
+
components: {
|
|
9
|
+
MuiLocalizationProvider: {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
localeText: { ...pickersTranslations },
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
})
|
|
2
16
|
|
|
3
17
|
const ltLTPickers = {
|
|
4
18
|
// Calendar navigation
|
package/src/main.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CssBaseline } from '@mui/material'
|
|
2
2
|
import { ThemeProvider } from '@mui/material/styles'
|
|
3
3
|
import type {} from '@mui/system'
|
|
4
|
-
import { AdapterDateFns } from '@mui/x-date-pickers/
|
|
4
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'
|
|
5
5
|
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'
|
|
6
6
|
import type {} from '@mui/x-date-pickers/themeAugmentation'
|
|
7
7
|
import { enUS } from 'date-fns/locale/en-US'
|
package/src/stories/Colors.mdx
CHANGED
package/src/stories/Welcome.mdx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
-
import { fn } from '
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
+
import { fn } from 'storybook/test'
|
|
3
3
|
|
|
4
4
|
import PlusBoldIcon from '@/assets/icons/PlusBoldIcon'
|
|
5
5
|
import Button from '@/components/common/Button'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box, Typography } from '@mui/material'
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
import { Fragment } from 'react'
|
|
4
4
|
|
|
5
5
|
import RcSesBadge, { RcSesBadgeProps } from '@/components/common/Badge'
|
|
@@ -83,8 +83,10 @@ export const AllCombinations: Story = {
|
|
|
83
83
|
<Typography
|
|
84
84
|
key={combo.key}
|
|
85
85
|
align='center'
|
|
86
|
-
color='text.secondary'
|
|
87
86
|
variant='body2'
|
|
87
|
+
sx={{
|
|
88
|
+
color: 'text.secondary',
|
|
89
|
+
}}
|
|
88
90
|
>
|
|
89
91
|
{combo.label}
|
|
90
92
|
</Typography>
|
|
@@ -93,15 +95,32 @@ export const AllCombinations: Story = {
|
|
|
93
95
|
sizes.map((size, sizeIndex) => (
|
|
94
96
|
<Fragment key={`${variant}-${size}`}>
|
|
95
97
|
{sizeIndex === 0 && (
|
|
96
|
-
<Typography
|
|
98
|
+
<Typography
|
|
99
|
+
variant='body2'
|
|
100
|
+
sx={{
|
|
101
|
+
fontWeight: 600,
|
|
102
|
+
gridRow: 'span 2',
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
97
105
|
{variant}
|
|
98
106
|
</Typography>
|
|
99
107
|
)}
|
|
100
|
-
<Typography
|
|
108
|
+
<Typography
|
|
109
|
+
variant='body2'
|
|
110
|
+
sx={{
|
|
111
|
+
color: 'text.secondary',
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
101
114
|
{size}
|
|
102
115
|
</Typography>
|
|
103
116
|
{combos.map((combo) => (
|
|
104
|
-
<Box
|
|
117
|
+
<Box
|
|
118
|
+
key={combo.key}
|
|
119
|
+
sx={{
|
|
120
|
+
display: 'flex',
|
|
121
|
+
justifyContent: 'center',
|
|
122
|
+
}}
|
|
123
|
+
>
|
|
105
124
|
<RcSesBadge
|
|
106
125
|
label='Label'
|
|
107
126
|
variant={variant}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box, Typography } from '@mui/material'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
4
|
import CaretLeftIcon from '@/assets/icons/CaretLeftIcon'
|
|
5
5
|
import MagnifyingGlassIcon from '@/assets/icons/MagnifyingGlassIcon'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box } from '@mui/material'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
4
|
import MagnifyingGlassIcon from '@/assets/icons/MagnifyingGlassIcon'
|
|
5
5
|
import RcSesButton from '@/components/common/Button'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button, Container, Typography } from '@mui/material'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
import { ComponentProps, useState } from 'react'
|
|
4
4
|
|
|
5
5
|
import RcSesCardFormContainer from '@/components/layout/ServiceFormContainer/CardFormContainer'
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
|
|
3
|
-
/* eslint-disable react/function-component-definition */
|
|
4
|
-
import { Meta, StoryContext } from '@storybook/react'
|
|
2
|
+
import { Meta, StoryContext } from '@storybook/react-vite'
|
|
5
3
|
|
|
6
4
|
import RcSesAccordion from '@/components/common/Accordion'
|
|
7
5
|
import useAccordionController from '@/components/common/Accordion/hooks/useAccordionController'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/* eslint-disable react/function-component-definition, react/prop-types */
|
|
2
1
|
import { Box, FormControl, MenuItem, Select, Typography } from '@mui/material'
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
4
3
|
import { useMemo, useState } from 'react'
|
|
5
4
|
import type { ReactElement } from 'react'
|
|
6
5
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Meta, StoryContext } from '@storybook/react'
|
|
1
|
+
import { Meta, StoryContext } from '@storybook/react-vite'
|
|
3
2
|
import { useForm } from 'react-hook-form'
|
|
4
3
|
|
|
5
4
|
import RcSesCheckbox from '@/components/form/inputs/Checkbox'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3'
|
|
1
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'
|
|
3
2
|
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'
|
|
4
|
-
import { Meta, StoryContext } from '@storybook/react'
|
|
3
|
+
import { Meta, StoryContext } from '@storybook/react-vite'
|
|
5
4
|
import { lt } from 'date-fns/locale/lt'
|
|
6
5
|
import { useForm } from 'react-hook-form'
|
|
7
6
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Meta, StoryContext } from '@storybook/react'
|
|
1
|
+
import { Meta, StoryContext } from '@storybook/react-vite'
|
|
3
2
|
import { useForm } from 'react-hook-form'
|
|
4
3
|
|
|
5
4
|
import RcSesFileUpload from '@/components/form/inputs/FileUpload'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react'
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
|
+
import type { ReactNode } from 'react'
|
|
2
3
|
import { useForm } from 'react-hook-form'
|
|
3
4
|
|
|
4
5
|
import RcSesPhoneInputFormControl from '@/components/form/inputs/PhoneInputFormControl'
|
|
@@ -15,7 +16,7 @@ const meta: Meta<typeof RcSesPhoneInputFormControl> = {
|
|
|
15
16
|
export default meta
|
|
16
17
|
type Story = StoryObj<typeof meta>
|
|
17
18
|
|
|
18
|
-
function PhoneInputFormControlDemo({ label = 'Phone Number' }: { label?:
|
|
19
|
+
function PhoneInputFormControlDemo({ label = 'Phone Number' }: { label?: ReactNode }) {
|
|
19
20
|
const { control } = useForm({
|
|
20
21
|
defaultValues: {
|
|
21
22
|
phone: '',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
-
import { fn } from '@storybook/test'
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
2
|
import React, { useState } from 'react'
|
|
4
3
|
import { useForm } from 'react-hook-form'
|
|
4
|
+
import { fn } from 'storybook/test'
|
|
5
5
|
|
|
6
6
|
import RcSesSearchInput from '@/components/form/inputs/SearchInput'
|
|
7
7
|
import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/* eslint-disable react/function-component-definition */
|
|
2
1
|
import { Box, Typography } from '@mui/material'
|
|
3
|
-
import { Meta, StoryContext, StoryObj } from '@storybook/react'
|
|
2
|
+
import { Meta, StoryContext, StoryObj } from '@storybook/react-vite'
|
|
4
3
|
import { useForm } from 'react-hook-form'
|
|
5
4
|
|
|
6
5
|
import RcSesPhoneInput from '@/components/form/inputs/PhoneInput'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryContext, StoryObj } from '@storybook/react'
|
|
1
|
+
import { Meta, StoryContext, StoryObj } from '@storybook/react-vite'
|
|
2
2
|
|
|
3
3
|
import RcSesTextField from '@/components/form/inputs/TextField'
|
|
4
4
|
import FieldPreviewRow from '@/components/storybook/FieldPreviewRow'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Meta, StoryContext } from '@storybook/react'
|
|
1
|
+
import { Meta, StoryContext } from '@storybook/react-vite'
|
|
3
2
|
|
|
4
3
|
import RcSesAccordion from '@/components/common/Accordion'
|
|
5
4
|
import useAccordionController from '@/components/common/Accordion/hooks/useAccordionController'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Box, Typography } from '@mui/material'
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
3
3
|
import { useState } from 'react'
|
|
4
4
|
|
|
5
5
|
import DataPagination from '@/components/common/DataPagination'
|
|
@@ -53,7 +53,13 @@ function ControlledDataPaginationDemo({ page: initialPage, onChange, ...args }:
|
|
|
53
53
|
const [page, setPage] = useState(initialPage ?? 1)
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
|
-
<Box
|
|
56
|
+
<Box
|
|
57
|
+
sx={{
|
|
58
|
+
display: 'flex',
|
|
59
|
+
flexDirection: 'column',
|
|
60
|
+
gap: 2,
|
|
61
|
+
}}
|
|
62
|
+
>
|
|
57
63
|
<Typography variant='body2'>Current page: {page}</Typography>
|
|
58
64
|
<DataPagination
|
|
59
65
|
{...args}
|