@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.
Files changed (331) hide show
  1. package/dist/assets/icons/ArrowLeftIcon.d.ts +1 -1
  2. package/dist/assets/icons/ArrowRightIcon.d.ts +1 -1
  3. package/dist/assets/icons/ArrowsClockwiseIcon.d.ts +1 -1
  4. package/dist/assets/icons/BarcodeIcon.d.ts +1 -1
  5. package/dist/assets/icons/CalendarBlankIcon.d.ts +1 -1
  6. package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +1 -1
  7. package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +1 -1
  8. package/dist/assets/icons/CaretDownBoldIcon.d.ts +1 -1
  9. package/dist/assets/icons/CaretDownFill.d.ts +1 -1
  10. package/dist/assets/icons/CaretDownIcon.d.ts +1 -1
  11. package/dist/assets/icons/CaretLeftBoldIcon.d.ts +1 -1
  12. package/dist/assets/icons/CaretLeftIcon.d.ts +1 -1
  13. package/dist/assets/icons/CaretRightBoldIcon.d.ts +1 -1
  14. package/dist/assets/icons/CaretUpBoldIcon.d.ts +3 -0
  15. package/dist/assets/icons/CaretUpIcon.d.ts +3 -0
  16. package/dist/assets/icons/CheckBoldIcon.d.ts +1 -1
  17. package/dist/assets/icons/CheckCircleFillIcon.d.ts +1 -1
  18. package/dist/assets/icons/CheckIcon.d.ts +1 -1
  19. package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +1 -1
  20. package/dist/assets/icons/CircleFilledIcon.d.ts +1 -1
  21. package/dist/assets/icons/CloseIcon.d.ts +1 -1
  22. package/dist/assets/icons/CollapseChevronsIcon.d.ts +1 -1
  23. package/dist/assets/icons/CopyIcon.d.ts +1 -1
  24. package/dist/assets/icons/DotCircleFilledIcon.d.ts +1 -1
  25. package/dist/assets/icons/ExpandChevronsIcon.d.ts +1 -1
  26. package/dist/assets/icons/InfoFillIcon.d.ts +1 -1
  27. package/dist/assets/icons/ListIcon.d.ts +3 -0
  28. package/dist/assets/icons/MagnifyingGlassIcon.d.ts +1 -1
  29. package/dist/assets/icons/MapPinAreaIcon.d.ts +1 -1
  30. package/dist/assets/icons/MinusBoldIcon.d.ts +1 -1
  31. package/dist/assets/icons/MinusIcon.d.ts +3 -0
  32. package/dist/assets/icons/NotePencilIcon.d.ts +3 -0
  33. package/dist/assets/icons/PencilSimpleLineIcon.d.ts +1 -1
  34. package/dist/assets/icons/PlusBoldIcon.d.ts +1 -1
  35. package/dist/assets/icons/PlusIcon.d.ts +3 -0
  36. package/dist/assets/icons/QuestionFillIcon.d.ts +1 -1
  37. package/dist/assets/icons/QuestionIcon.d.ts +1 -1
  38. package/dist/assets/icons/ScalesIcon.d.ts +1 -1
  39. package/dist/assets/icons/ScrollIcon.d.ts +1 -1
  40. package/dist/assets/icons/SearchHelpIcon.d.ts +1 -1
  41. package/dist/assets/icons/SearchXIcon.d.ts +1 -1
  42. package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +1 -1
  43. package/dist/assets/icons/TrashIcon.d.ts +3 -0
  44. package/dist/assets/icons/UploadSimpleIcon.d.ts +1 -1
  45. package/dist/assets/icons/UserIcon.d.ts +3 -0
  46. package/dist/assets/icons/WarningCircleIcon.d.ts +1 -1
  47. package/dist/assets/icons/WarningDiamondFillIcon.d.ts +1 -1
  48. package/dist/assets/icons/WarningFillIcon.d.ts +1 -1
  49. package/dist/assets/icons/XCircleFillIcon.d.ts +1 -1
  50. package/dist/components/common/Accordion/index.d.ts +1 -1
  51. package/dist/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.d.ts +106 -0
  52. package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.d.ts +12 -0
  53. package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.d.ts +7 -0
  54. package/dist/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.d.ts +2 -0
  55. package/dist/components/common/AdvancedList/components/AdvancedListItem/index.d.ts +4 -0
  56. package/dist/components/common/AdvancedList/index.d.ts +11 -0
  57. package/dist/components/common/Alert/index.d.ts +1 -1
  58. package/dist/components/common/Badge/index.d.ts +1 -1
  59. package/dist/components/common/Breadcrumbs/index.d.ts +1 -1
  60. package/dist/components/common/Button/ButtonWithPopover.d.ts +1 -1
  61. package/dist/components/common/Button/index.d.ts +13 -5
  62. package/dist/components/common/Card/index.d.ts +1 -1
  63. package/dist/components/common/DataPagination/components/DataPaginationSkeleton.d.ts +1 -1
  64. package/dist/components/common/DataPagination/components/PaginationButton.d.ts +1 -1
  65. package/dist/components/common/DataPagination/index.d.ts +1 -1
  66. package/dist/components/common/IconWithCircularBackground.d.ts +1 -1
  67. package/dist/components/common/ImageCard/index.d.ts +1 -1
  68. package/dist/components/common/ListWithIcons/components/ListWithIconsItem.d.ts +1 -1
  69. package/dist/components/common/ListWithIcons/index.d.ts +1 -1
  70. package/dist/components/common/Popover/index.d.ts +1 -1
  71. package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +4 -1
  72. package/dist/components/common/SelectableCardList/index.d.ts +4 -1
  73. package/dist/components/common/Snackbar/SnackbarProvider.d.ts +1 -1
  74. package/dist/components/common/Snackbar/index.d.ts +1 -1
  75. package/dist/components/common/Switch/index.d.ts +1 -1
  76. package/dist/components/common/Tabs/TabPanel.d.ts +1 -1
  77. package/dist/components/common/Tabs/TabsWrapper.d.ts +1 -1
  78. package/dist/components/common/Tooltip/index.d.ts +1 -1
  79. package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +1 -1
  80. package/dist/components/form/components/FormControlWrapper/index.d.ts +1 -1
  81. package/dist/components/form/inputs/Checkbox.d.ts +1 -1
  82. package/dist/components/form/inputs/CheckboxFormControl.d.ts +1 -1
  83. package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.d.ts +1 -1
  84. package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.d.ts +2 -1
  85. package/dist/components/form/inputs/Datepicker/index.d.ts +1 -1
  86. package/dist/components/form/inputs/FileDropzone.d.ts +1 -1
  87. package/dist/components/form/inputs/FileUpload.d.ts +1 -1
  88. package/dist/components/form/inputs/FormControlLabel.d.ts +2 -2
  89. package/dist/components/form/inputs/NumberStepper.d.ts +2 -1
  90. package/dist/components/form/inputs/PhoneInput.d.ts +2 -1
  91. package/dist/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.d.ts +1 -1
  92. package/dist/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.d.ts +13 -0
  93. package/dist/components/form/inputs/PhoneInputFormControl/components/PopperComponent.d.ts +1 -1
  94. package/dist/components/form/inputs/PhoneInputFormControl/components/RowComponent.d.ts +5 -2
  95. package/dist/components/form/inputs/PhoneInputFormControl/index.d.ts +2 -1
  96. package/dist/components/form/inputs/Select/index.d.ts +2 -1
  97. package/dist/components/form/inputs/SimpleCheckbox.d.ts +2 -1
  98. package/dist/components/layout/Footer/index.d.ts +1 -1
  99. package/dist/components/layout/ServiceFormActions.d.ts +1 -1
  100. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.d.ts +1 -1
  101. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/index.d.ts +1 -1
  102. package/dist/components/layout/ServiceFormContainer/CardFormContainer/index.d.ts +1 -1
  103. package/dist/components/layout/ServiceHeader.d.ts +1 -1
  104. package/dist/components/layout/ServicePage.d.ts +1 -1
  105. package/dist/components/layout/ServiceWizardStepper/components/CustomStepIcon.d.ts +1 -1
  106. package/dist/components/layout/ServiceWizardStepper/components/DesktopStepper.d.ts +1 -1
  107. package/dist/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.d.ts +1 -1
  108. package/dist/components/layout/ServiceWizardStepper/components/MobileStepper.d.ts +1 -1
  109. package/dist/components/layout/ServiceWizardStepper/index.d.ts +1 -1
  110. package/dist/components/loaders/FullPageLoader/index.d.ts +1 -1
  111. package/dist/components/loaders/Loader/index.d.ts +1 -1
  112. package/dist/components/loaders/LoadingSpinner/index.d.ts +1 -1
  113. package/dist/components/overlays/Dialog/index.d.ts +1 -1
  114. package/dist/components/overlays/Modal/index.d.ts +1 -1
  115. package/dist/components/utils/loading.d.ts +1 -1
  116. package/dist/i18n/@mui/x-date-pickers/ltLT.d.ts +1 -71
  117. package/dist/library/icons.d.ts +9 -1
  118. package/dist/library/index.d.ts +3 -0
  119. package/dist/registrucentras-rc-ses-react-components.cjs +1 -30
  120. package/dist/registrucentras-rc-ses-react-components.js +6698 -7777
  121. package/dist/stories/assets/Logo.stories.d.ts +1 -1
  122. package/dist/stories/components/actions/Button.stories.d.ts +6 -5
  123. package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +1 -1
  124. package/dist/stories/components/display/AdvancedList.stories.d.ts +32 -0
  125. package/dist/stories/components/display/AdvancedListItem.stories.d.ts +33 -0
  126. package/dist/stories/components/display/Badge.stories.d.ts +1 -1
  127. package/dist/stories/components/display/Card.stories.d.ts +1 -1
  128. package/dist/stories/components/display/ImageCard.stories.d.ts +1 -1
  129. package/dist/stories/components/display/ListWithIcons.stories.d.ts +2 -2
  130. package/dist/stories/components/display/SegmentedControl.stories.d.ts +9 -9
  131. package/dist/stories/components/display/SelectableCardList.stories.d.ts +2 -2
  132. package/dist/stories/components/display/Tooltip.stories.d.ts +2 -2
  133. package/dist/stories/components/feedback/Alert.stories.d.ts +1 -1
  134. package/dist/stories/components/feedback/Snackbar.stories.d.ts +7 -7
  135. package/dist/stories/components/form/CardFormContainer.stories.d.ts +1 -1
  136. package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +1 -1
  137. package/dist/stories/components/form/FormControlWrapper.stories.d.ts +1 -1
  138. package/dist/stories/components/form/ServiceFormActions.stories.d.ts +1 -1
  139. package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +2 -2
  140. package/dist/stories/components/form/SimpleCheckbox.stories.d.ts +1 -1
  141. package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +1 -1
  142. package/dist/stories/components/icons/Icons.stories.d.ts +1 -1
  143. package/dist/stories/components/inputs/Checkbox.stories.d.ts +2 -2
  144. package/dist/stories/components/inputs/DatePicker.stories.d.ts +25 -2
  145. package/dist/stories/components/inputs/FileDropzone.stories.d.ts +1 -1
  146. package/dist/stories/components/inputs/FileUpload.stories.d.ts +2 -2
  147. package/dist/stories/components/inputs/NumberStepper.stories.d.ts +1 -1
  148. package/dist/stories/components/inputs/PhoneInput.stories.d.ts +2 -2
  149. package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +1 -1
  150. package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +1 -1
  151. package/dist/stories/components/inputs/SearchInput.stories.d.ts +1 -1
  152. package/dist/stories/components/inputs/SearchableField.stories.d.ts +1 -1
  153. package/dist/stories/components/inputs/Select.stories.d.ts +1 -1
  154. package/dist/stories/components/inputs/Switch.stories.d.ts +1 -1
  155. package/dist/stories/components/inputs/TextField.stories.d.ts +1 -1
  156. package/dist/stories/components/layout/Footer.stories.d.ts +1 -1
  157. package/dist/stories/components/layout/ServiceHeader.stories.d.ts +1 -1
  158. package/dist/stories/components/layout/ServicePage.stories.d.ts +1 -1
  159. package/dist/stories/components/loaders/FullPageLoader.stories.d.ts +1 -1
  160. package/dist/stories/components/loaders/Loader.stories.d.ts +1 -1
  161. package/dist/stories/components/loaders/LoadingSpinner.stories.d.ts +4 -4
  162. package/dist/stories/components/navigation/Accordion.stories.d.ts +2 -2
  163. package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +1 -1
  164. package/dist/stories/components/navigation/DataPagination.stories.d.ts +2 -2
  165. package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +1 -1
  166. package/dist/stories/components/overlays/Dialog.stories.d.ts +7 -1
  167. package/dist/stories/components/overlays/Modal.stories.d.ts +1 -1
  168. package/dist/stories/components/overlays/Popover.stories.d.ts +12 -0
  169. package/dist/stories/components/tabs/Tab.stories.d.ts +1 -1
  170. package/dist/stories/components/tabs/TabPanel.stories.d.ts +1 -1
  171. package/dist/stories/components/tabs/Tabs.stories.d.ts +1 -1
  172. package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +1 -1
  173. package/dist/stories/theme/ThemedMuiComponents.stories.d.ts +25 -0
  174. package/dist/theme/motion.d.ts +16 -0
  175. package/package.json +64 -62
  176. package/src/assets/icons/CaretUpBoldIcon.tsx +17 -0
  177. package/src/assets/icons/CaretUpIcon.tsx +9 -0
  178. package/src/assets/icons/ListIcon.tsx +17 -0
  179. package/src/assets/icons/MinusIcon.tsx +9 -0
  180. package/src/assets/icons/NotePencilIcon.tsx +9 -0
  181. package/src/assets/icons/PlusIcon.tsx +9 -0
  182. package/src/assets/icons/TrashIcon.tsx +23 -0
  183. package/src/assets/icons/UserIcon.tsx +17 -0
  184. package/src/components/common/Accordion/index.tsx +0 -1
  185. package/src/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.ts +100 -0
  186. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +224 -0
  187. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +263 -0
  188. package/src/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.test.ts +80 -0
  189. package/src/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.ts +28 -0
  190. package/src/components/common/AdvancedList/components/AdvancedListItem/index.test.tsx +631 -0
  191. package/src/components/common/AdvancedList/components/AdvancedListItem/index.tsx +332 -0
  192. package/src/components/common/AdvancedList/index.test.tsx +97 -0
  193. package/src/components/common/AdvancedList/index.tsx +52 -0
  194. package/src/components/common/Alert/index.test.tsx +1 -1
  195. package/src/components/common/Badge/index.test.tsx +1 -1
  196. package/src/components/common/Button/index.test.tsx +5 -2
  197. package/src/components/common/Button/index.tsx +25 -5
  198. package/src/components/common/Card/index.test.tsx +1 -1
  199. package/src/components/common/DataPagination/index.test.tsx +1 -1
  200. package/src/components/common/DataPagination/index.tsx +14 -2
  201. package/src/components/common/ImageCard/index.test.tsx +1 -1
  202. package/src/components/common/ListWithIcons/index.test.tsx +1 -1
  203. package/src/components/common/SegmentedControl/components/SegmentButton/index.test.tsx +1 -1
  204. package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +2 -0
  205. package/src/components/common/SegmentedControl/index.test.tsx +1 -1
  206. package/src/components/common/SelectableCardList/components/SelectableCardListItem.test.tsx +50 -0
  207. package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +48 -2
  208. package/src/components/common/SelectableCardList/index.test.tsx +1 -1
  209. package/src/components/common/SelectableCardList/index.tsx +6 -0
  210. package/src/components/common/Snackbar/SnackbarProvider.tsx +1 -1
  211. package/src/components/common/Snackbar/index.test.tsx +1 -1
  212. package/src/components/common/Snackbar/index.tsx +3 -1
  213. package/src/components/common/Switch/index.test.tsx +1 -1
  214. package/src/components/common/Switch/index.tsx +21 -6
  215. package/src/components/common/Tooltip/index.test.tsx +2 -4
  216. package/src/components/common/Tooltip/index.tsx +5 -4
  217. package/src/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.ts +1 -1
  218. package/src/components/form/inputs/CheckboxFormControl.tsx +7 -3
  219. package/src/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.tsx +8 -5
  220. package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +12 -12
  221. package/src/components/form/inputs/Datepicker/index.tsx +37 -32
  222. package/src/components/form/inputs/FileDropzone.tsx +6 -1
  223. package/src/components/form/inputs/NumberStepper.tsx +10 -5
  224. package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +15 -11
  225. package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +31 -27
  226. package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +8 -4
  227. package/src/components/form/inputs/PhoneInputFormControl/index.test.tsx +57 -2
  228. package/src/components/form/inputs/PhoneInputFormControl/index.tsx +66 -53
  229. package/src/components/form/inputs/RadioButtonGroup.tsx +0 -1
  230. package/src/components/form/inputs/SearchInput/index.test.tsx +1 -1
  231. package/src/components/form/inputs/SearchInput/index.tsx +23 -13
  232. package/src/components/form/inputs/SearchableField.test.tsx +126 -0
  233. package/src/components/form/inputs/SearchableField.tsx +29 -24
  234. package/src/components/form/inputs/Select/index.test.tsx +1 -1
  235. package/src/components/form/inputs/Select/index.tsx +95 -65
  236. package/src/components/form/inputs/TextField.tsx +1 -7
  237. package/src/components/layout/Footer/index.test.tsx +1 -1
  238. package/src/components/layout/ServiceFormActions.tsx +3 -3
  239. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +2 -2
  240. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +2 -2
  241. package/src/components/layout/ServiceFormContainer/CardFormContainer/index.test.tsx +1 -1
  242. package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.tsx +2 -1
  243. package/src/components/layout/ServiceWizardStepper/components/MobileStepper.test.tsx +8 -6
  244. package/src/components/layout/ServiceWizardStepper/components/MobileStepper.tsx +2 -1
  245. package/src/components/loaders/FullPageLoader/index.test.tsx +1 -1
  246. package/src/components/loaders/FullPageLoader/index.tsx +4 -3
  247. package/src/components/loaders/Loader/index.test.tsx +1 -1
  248. package/src/components/loaders/Loader/index.tsx +14 -4
  249. package/src/components/loaders/LoadingSpinner/index.test.tsx +1 -1
  250. package/src/components/overlays/Dialog/index.test.tsx +1 -1
  251. package/src/components/overlays/Dialog/index.tsx +7 -5
  252. package/src/components/overlays/Modal/index.test.tsx +1 -1
  253. package/src/components/overlays/Modal/index.tsx +4 -2
  254. package/src/env.tsx +1 -1
  255. package/src/examples/MultipleStepForm/components/ServiceDetailsForm.tsx +0 -5
  256. package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +0 -2
  257. package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +2 -2
  258. package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +12 -8
  259. package/src/examples/SingleStepForm/index.tsx +0 -2
  260. package/src/i18n/@mui/x-date-pickers/ltLT.ts +15 -1
  261. package/src/i18n/namespaces/common/en.json +11 -0
  262. package/src/i18n/namespaces/common/lt.json +11 -0
  263. package/src/library/icons.ts +16 -0
  264. package/src/library/index.ts +3 -0
  265. package/src/main.tsx +1 -1
  266. package/src/setupTests.ts +7 -1
  267. package/src/stories/Colors.mdx +1 -1
  268. package/src/stories/Welcome.mdx +1 -1
  269. package/src/stories/assets/Logo.stories.tsx +1 -1
  270. package/src/stories/components/actions/Button.stories.tsx +2 -2
  271. package/src/stories/components/actions/ButtonWithPopover.stories.tsx +1 -1
  272. package/src/stories/components/display/AdvancedList.stories.tsx +529 -0
  273. package/src/stories/components/display/AdvancedListItem.stories.tsx +653 -0
  274. package/src/stories/components/display/Badge.stories.tsx +24 -5
  275. package/src/stories/components/display/Card.stories.tsx +1 -1
  276. package/src/stories/components/display/ImageCard.stories.tsx +1 -1
  277. package/src/stories/components/display/ListWithIcons.stories.tsx +1 -1
  278. package/src/stories/components/display/SegmentedControl.stories.tsx +1 -1
  279. package/src/stories/components/display/SelectableCardList.stories.tsx +4 -1
  280. package/src/stories/components/display/Tooltip.stories.tsx +1 -1
  281. package/src/stories/components/feedback/Alert.stories.tsx +1 -1
  282. package/src/stories/components/feedback/Snackbar.stories.tsx +1 -1
  283. package/src/stories/components/form/CardFormContainer.stories.tsx +1 -1
  284. package/src/stories/components/form/CheckboxFormControl.stories.tsx +1 -1
  285. package/src/stories/components/form/FormControlWrapper.stories.tsx +1 -1
  286. package/src/stories/components/form/ServiceFormActions.stories.tsx +1 -1
  287. package/src/stories/components/form/ServiceFormContainer.stories.tsx +1 -3
  288. package/src/stories/components/form/SimpleCheckbox.stories.tsx +1 -1
  289. package/src/stories/components/icons/IconWithCircularBackground.stories.tsx +1 -1
  290. package/src/stories/components/icons/Icons.stories.tsx +1 -2
  291. package/src/stories/components/inputs/Checkbox.stories.tsx +1 -2
  292. package/src/stories/components/inputs/DatePicker.stories.tsx +38 -4
  293. package/src/stories/components/inputs/FileDropzone.stories.tsx +1 -1
  294. package/src/stories/components/inputs/FileUpload.stories.tsx +1 -2
  295. package/src/stories/components/inputs/NumberStepper.stories.tsx +1 -1
  296. package/src/stories/components/inputs/PhoneInput.stories.tsx +1 -2
  297. package/src/stories/components/inputs/PhoneInputFormControl.stories.tsx +3 -2
  298. package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +1 -1
  299. package/src/stories/components/inputs/SearchInput.stories.tsx +2 -2
  300. package/src/stories/components/inputs/SearchableField.stories.tsx +1 -1
  301. package/src/stories/components/inputs/Select.stories.tsx +1 -2
  302. package/src/stories/components/inputs/Switch.stories.tsx +1 -1
  303. package/src/stories/components/inputs/TextField.stories.tsx +1 -1
  304. package/src/stories/components/layout/Footer.stories.tsx +1 -1
  305. package/src/stories/components/layout/ServiceHeader.stories.tsx +1 -1
  306. package/src/stories/components/layout/ServicePage.stories.tsx +1 -1
  307. package/src/stories/components/loaders/FullPageLoader.stories.tsx +1 -1
  308. package/src/stories/components/loaders/Loader.stories.tsx +1 -1
  309. package/src/stories/components/loaders/LoadingSpinner.stories.tsx +1 -1
  310. package/src/stories/components/navigation/Accordion.stories.tsx +1 -2
  311. package/src/stories/components/navigation/Breadcrumbs.stories.tsx +1 -1
  312. package/src/stories/components/navigation/DataPagination.stories.tsx +8 -2
  313. package/src/stories/components/navigation/ServiceWizardStepper.stories.tsx +1 -1
  314. package/src/stories/components/overlays/Dialog.stories.tsx +35 -1
  315. package/src/stories/components/overlays/Modal.stories.tsx +1 -1
  316. package/src/stories/components/overlays/Popover.stories.tsx +65 -0
  317. package/src/stories/components/tabs/Tab.stories.tsx +12 -1
  318. package/src/stories/components/tabs/TabPanel.stories.tsx +1 -1
  319. package/src/stories/components/tabs/Tabs.stories.tsx +1 -1
  320. package/src/stories/components/tabs/TabsWrapper.stories.tsx +1 -1
  321. package/src/stories/theme/ThemedMuiComponents.stories.tsx +177 -0
  322. package/src/theme/light/MuiAlert.tsx +82 -75
  323. package/src/theme/light/MuiLinearProgress.ts +6 -2
  324. package/src/theme/light/MuiPickersLayout.ts +4 -4
  325. package/src/theme/light/MuiTabs.tsx +2 -1
  326. package/src/theme/motion.tsx +10 -0
  327. package/src/types/common/ColorType.tsx +1 -7
  328. package/dist/components/form/inputs/PhoneInputFormControl/components/OuterElementType.d.ts +0 -5
  329. package/dist/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.d.ts +0 -4
  330. package/src/components/form/inputs/PhoneInputFormControl/components/OuterElementType.tsx +0 -13
  331. package/src/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.ts +0 -14
@@ -148,6 +148,56 @@ describe('SelectableCardListItem', () => {
148
148
  expect(onSelect).toHaveBeenCalledTimes(1)
149
149
  })
150
150
 
151
+ test('renders action button with label when hasActionButton is true', () => {
152
+ renderItem(
153
+ <SelectableCardListItem
154
+ title='With action'
155
+ selected={false}
156
+ onSelect={vi.fn()}
157
+ listItems={[]}
158
+ hasActionButton
159
+ actionButtonLabel='Veiksmas'
160
+ />,
161
+ )
162
+
163
+ expect(screen.getByRole('button', { name: 'Veiksmas' })).toBeInTheDocument()
164
+ })
165
+
166
+ test('omits action button when hasActionButton is false', () => {
167
+ renderItem(
168
+ <SelectableCardListItem
169
+ title='No action'
170
+ selected={false}
171
+ onSelect={vi.fn()}
172
+ listItems={[]}
173
+ actionButtonLabel='Veiksmas'
174
+ />,
175
+ )
176
+
177
+ expect(screen.queryByRole('button', { name: 'Veiksmas' })).not.toBeInTheDocument()
178
+ })
179
+
180
+ test('clicking action button calls onActionButtonClick and not onSelect', () => {
181
+ const onSelect = vi.fn()
182
+ const onActionButtonClick = vi.fn()
183
+ renderItem(
184
+ <SelectableCardListItem
185
+ title='With action'
186
+ selected={false}
187
+ onSelect={onSelect}
188
+ listItems={[]}
189
+ hasActionButton
190
+ actionButtonLabel='Veiksmas'
191
+ onActionButtonClick={onActionButtonClick}
192
+ />,
193
+ )
194
+
195
+ fireEvent.click(screen.getByRole('button', { name: 'Veiksmas' }))
196
+
197
+ expect(onActionButtonClick).toHaveBeenCalledTimes(1)
198
+ expect(onSelect).not.toHaveBeenCalled()
199
+ })
200
+
151
201
  test('loading card is not selectable', () => {
152
202
  const onSelect = vi.fn()
153
203
  const { container } = renderItem(
@@ -1,5 +1,6 @@
1
1
  import { Box, Radio, Skeleton, Stack, Typography } from '@mui/material'
2
2
 
3
+ import RcSesButton from '@/components/common/Button'
3
4
  import RcSesCard from '@/components/common/Card'
4
5
  import ListWithIcons from '@/components/common/ListWithIcons'
5
6
  import palette from '@/theme/palette'
@@ -13,6 +14,9 @@ type Props = {
13
14
  selected: boolean
14
15
  onSelect: () => void
15
16
  isLoading?: boolean
17
+ hasActionButton?: boolean
18
+ actionButtonLabel?: string
19
+ onActionButtonClick?: () => void
16
20
  }
17
21
 
18
22
  const SelectableCardListItem = ({
@@ -22,14 +26,29 @@ const SelectableCardListItem = ({
22
26
  selected,
23
27
  onSelect,
24
28
  isLoading = false,
29
+ hasActionButton = false,
30
+ actionButtonLabel,
31
+ onActionButtonClick,
25
32
  }: Props) => {
26
33
  const titleTemplate = isLoading ? (
27
- <Stack direction='row' alignItems='center' gap='0.75rem'>
34
+ <Stack
35
+ direction='row'
36
+ sx={{
37
+ alignItems: 'center',
38
+ gap: '0.75rem',
39
+ }}
40
+ >
28
41
  <Skeleton variant='circular' width={20} height={20} />
29
42
  <Skeleton variant='text' width={100} />
30
43
  </Stack>
31
44
  ) : (
32
- <Stack direction='row' alignItems='flex-start' gap='0.75rem'>
45
+ <Stack
46
+ direction='row'
47
+ sx={{
48
+ alignItems: 'flex-start',
49
+ gap: '0.75rem',
50
+ }}
51
+ >
33
52
  <Radio
34
53
  aria-label={`Select ${title}`}
35
54
  checked={selected}
@@ -97,6 +116,33 @@ const SelectableCardListItem = ({
97
116
  },
98
117
  }}
99
118
  title={titleTemplate}
119
+ headerAction={
120
+ isLoading ? (
121
+ <Skeleton variant='rounded' width={100} height={38} />
122
+ ) : (
123
+ hasActionButton && (
124
+ <RcSesButton
125
+ color='grey'
126
+ sx={{
127
+ height: 'auto',
128
+ padding: '0.5rem 1rem',
129
+ fontSize: '0.875rem',
130
+ lineHeight: '1.25rem',
131
+ '&.MuiButton-colorGrey': {
132
+ color: palette.grey[800],
133
+ },
134
+ }}
135
+ onClick={(e) => {
136
+ e.stopPropagation()
137
+ onActionButtonClick?.()
138
+ }}
139
+ variant='outlined'
140
+ >
141
+ {actionButtonLabel}
142
+ </RcSesButton>
143
+ )
144
+ )
145
+ }
100
146
  slotProps={{
101
147
  title: {
102
148
  sx: {
@@ -6,7 +6,7 @@ import { beforeEach, describe, expect, test, vi } from 'vitest'
6
6
 
7
7
  import theme from '@/theme/light'
8
8
 
9
- import SelectableCardList, { type SelectableCardListItemData } from './index'
9
+ import SelectableCardList, { type SelectableCardListItemData } from '.'
10
10
 
11
11
  vi.mock('@mui/material', async () => {
12
12
  const actual = await vi.importActual<typeof import('@mui/material')>('@mui/material')
@@ -10,6 +10,9 @@ export type SelectableCardListItemData = {
10
10
  title: string
11
11
  subtitle?: string
12
12
  listItems?: ListWithIconsItemData[]
13
+ hasActionButton?: boolean
14
+ actionButtonLabel?: string
15
+ onActionButtonClick?: () => void
13
16
  }
14
17
  export interface SelectableCardListProps {
15
18
  items?: SelectableCardListItemData[]
@@ -86,6 +89,9 @@ const SelectableCardListPaged = ({
86
89
  listItems={item.listItems || []}
87
90
  selected={selectedId === item.id}
88
91
  onSelect={() => onSelect(item.id)}
92
+ hasActionButton={item.hasActionButton}
93
+ actionButtonLabel={item.actionButtonLabel}
94
+ onActionButtonClick={item.onActionButtonClick}
89
95
  />
90
96
  ))}
91
97
  </Box>
@@ -7,7 +7,7 @@ import {
7
7
  useState,
8
8
  } from 'react'
9
9
 
10
- import RcSesSnackbar from './index'
10
+ import RcSesSnackbar from '.'
11
11
  import { type SnackbarSize, type SnackbarState } from './types'
12
12
 
13
13
  export interface SnackbarConfig {
@@ -5,7 +5,7 @@ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'
5
5
 
6
6
  import theme from '@/theme/light'
7
7
 
8
- import RcSesSnackbar from './index'
8
+ import RcSesSnackbar from '.'
9
9
 
10
10
  const DEFAULT_PROPS = { state: 'success' as const, message: 'Test', open: true }
11
11
 
@@ -98,11 +98,13 @@ function RcSesSnackbar({
98
98
  onMouseEnter={() => setIsPaused(true)}
99
99
  onMouseLeave={() => setIsPaused(false)}
100
100
  onKeyDown={(e) => e.key === 'Escape' && handleClose()}
101
- TransitionComponent={Slide}
102
101
  transitionDuration={prefersReducedMotion ? { enter: 0, exit: 0 } : undefined}
103
102
  sx={{
104
103
  transition: prefersReducedMotion ? 'none' : `bottom 150ms ease-in-out !important`,
105
104
  }}
105
+ slots={{
106
+ transition: Slide,
107
+ }}
106
108
  >
107
109
  <Box
108
110
  role={config.ariaLive === 'assertive' ? 'alert' : 'status'}
@@ -1,7 +1,7 @@
1
1
  import { fireEvent, render, screen } from '@testing-library/react'
2
2
  import { describe, expect, it, vi } from 'vitest'
3
3
 
4
- import RcSesSwitch from './index'
4
+ import RcSesSwitch from '.'
5
5
 
6
6
  describe('RcSesSwitch Component', () => {
7
7
  describe('Switch semantics', () => {
@@ -19,20 +19,35 @@ const formControlLabelStyles = {
19
19
  function RcSesSwitch(props: RcSesSwitchProps) {
20
20
  const { label, ariaLabel, disabled, ...switchProps } = props
21
21
 
22
- const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
23
- if (event.key === 'Enter' && !disabled) {
24
- event.preventDefault()
25
- event.currentTarget.click()
22
+ // The handler has to sit on the Switch root rather than on the input: as of
23
+ // MUI 6, SwitchBase applies plain attributes from the input slot but silently
24
+ // drops event handlers, so an onKeyDown passed through `slotProps.input` (or
25
+ // the deprecated `inputProps`) never fires. keydown bubbles up from the input,
26
+ // so a root-level handler still sees it.
27
+ const handleKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {
28
+ if (event.key !== 'Enter' || disabled) {
29
+ return
26
30
  }
31
+ event.preventDefault()
32
+ // currentTarget is the root, so reach for the checkbox to toggle it.
33
+ event.currentTarget.querySelector<HTMLInputElement>('input[type="checkbox"]')?.click()
27
34
  }
28
35
 
36
+ // `slotProps.input` rather than `inputProps`: the latter is deprecated in MUI 6
37
+ // and removed in v7.
29
38
  const inputProps = {
30
39
  ...(label === undefined && { 'aria-label': ariaLabel }),
31
40
  role: 'switch',
32
- onKeyDown: handleKeyDown,
33
41
  }
34
42
 
35
- const switchEl = <Switch disabled={disabled} inputProps={inputProps} {...switchProps} />
43
+ const switchEl = (
44
+ <Switch
45
+ disabled={disabled}
46
+ onKeyDown={handleKeyDown}
47
+ slotProps={{ input: inputProps }}
48
+ {...switchProps}
49
+ />
50
+ )
36
51
 
37
52
  return label ? (
38
53
  <FormControlLabel
@@ -2,15 +2,13 @@ import { fireEvent, render, screen, waitFor } from '@testing-library/react'
2
2
  import { createRef } from 'react'
3
3
  import { describe, expect, test, vi } from 'vitest'
4
4
 
5
- import RcSesTooltip from './index'
5
+ import RcSesTooltip from '.'
6
6
 
7
7
  describe('RcSesTooltip', () => {
8
8
  test('renders default trigger button', () => {
9
9
  render(<RcSesTooltip title='Help text' />)
10
10
 
11
- expect(
12
- screen.getByRole('button', { name: 'components.Tooltip.trigger' }),
13
- ).toBeInTheDocument()
11
+ expect(screen.getByRole('button', { name: 'Paaiškinimas' })).toBeInTheDocument()
14
12
  })
15
13
 
16
14
  test('opens tooltip on trigger click', async () => {
@@ -1,4 +1,4 @@
1
- import type { IconButtonProps, TooltipProps } from '@mui/material'
1
+ import type { IconButtonProps, PopperProps, TooltipProps } from '@mui/material'
2
2
  import { Fade, IconButton, Tooltip } from '@mui/material'
3
3
  import { useForkRef } from '@mui/material/utils'
4
4
  import React from 'react'
@@ -25,7 +25,8 @@ export type RcSesTooltipProps = {
25
25
  // only one tooltip should be visible, no need for context for that
26
26
  let closeCurrent: (() => void) | null = null
27
27
 
28
- const popperProps: TooltipProps['PopperProps'] = {
28
+ // MUI 9 removed Tooltip's PopperProps in favour of the `popper` slot.
29
+ const popperProps: Partial<PopperProps> = {
29
30
  popperOptions: {
30
31
  modifiers: [
31
32
  { name: 'arrow', options: { padding: 14 } },
@@ -147,8 +148,8 @@ function RcSesTooltip({
147
148
  placement={placement}
148
149
  leaveDelay={100}
149
150
  disableTouchListener
150
- TransitionComponent={Fade}
151
- PopperProps={popperProps}
151
+ slots={{ transition: Fade }}
152
+ slotProps={{ popper: popperProps }}
152
153
  onOpen={show}
153
154
  onClose={hide}
154
155
  >
@@ -1,4 +1,4 @@
1
1
  const formControlDesktopLabelWidth = '273px'
2
2
 
3
- // eslint-disable-next-line import/prefer-default-export
3
+ // eslint-disable-next-line import-x/prefer-default-export
4
4
  export { formControlDesktopLabelWidth }
@@ -116,9 +116,13 @@ function RcSesCheckboxFormControl(props: Props) {
116
116
  {...slotProps?.label}
117
117
  slotProps={{
118
118
  typography: {
119
- fontWeight: 400,
120
- lineHeight: '1.25rem',
121
- marginLeft: variant === 'flat' ? '.4375rem' : '.1875rem',
119
+ // MUI 9 tightened this slot's type: style shorthands are no longer
120
+ // accepted alongside component props, so they move into sx.
121
+ sx: {
122
+ fontWeight: 400,
123
+ lineHeight: '1.25rem',
124
+ marginLeft: variant === 'flat' ? '.4375rem' : '.1875rem',
125
+ },
122
126
  variant: variant === 'flat' ? 'body1' : 'body2',
123
127
  ...slotProps?.label?.slotProps?.typography,
124
128
  },
@@ -1,11 +1,14 @@
1
1
  import { Button, DialogActions } from '@mui/material'
2
2
  import type { PickersActionBarProps } from '@mui/x-date-pickers/PickersActionBar'
3
- import { usePickersTranslations } from '@mui/x-date-pickers/hooks'
3
+ import { usePickerActionsContext, usePickerTranslations } from '@mui/x-date-pickers/hooks'
4
4
 
5
5
  function RcSesDatepickerActionBar(props: PickersActionBarProps) {
6
- const { actions, onAccept, onCancel, onClear, onSetToday, ...other } = props
6
+ const { actions, ...other } = props
7
7
 
8
- const translations = usePickersTranslations()
8
+ const translations = usePickerTranslations()
9
+ // x-date-pickers 9 dropped the onAccept/onCancel/onClear/onSetToday props from
10
+ // PickersActionBarProps; the actions now come from the picker's context.
11
+ const { clearValue, cancelValueChanges } = usePickerActionsContext()
9
12
 
10
13
  if (actions == null || actions.length === 0) {
11
14
  return null
@@ -15,13 +18,13 @@ function RcSesDatepickerActionBar(props: PickersActionBarProps) {
15
18
  switch (actionType) {
16
19
  case 'clear':
17
20
  return (
18
- <Button key={actionType} color='error' onClick={onClear} variant='text'>
21
+ <Button key={actionType} color='error' onClick={clearValue} variant='text'>
19
22
  {translations.clearButtonLabel}
20
23
  </Button>
21
24
  )
22
25
  case 'cancel':
23
26
  return (
24
- <Button key={actionType} onClick={onCancel} variant='text'>
27
+ <Button key={actionType} onClick={cancelValueChanges} variant='text'>
25
28
  {translations.cancelButtonLabel}
26
29
  </Button>
27
30
  )
@@ -2,8 +2,8 @@ import IconButton from '@mui/material/IconButton'
2
2
  import Stack from '@mui/material/Stack'
3
3
  import Typography from '@mui/material/Typography'
4
4
  import { styled } from '@mui/material/styles'
5
- import { MuiPickersAdapterContext } from '@mui/x-date-pickers/LocalizationProvider'
6
5
  import type { PickersCalendarHeaderProps } from '@mui/x-date-pickers/PickersCalendarHeader'
6
+ import { usePickerAdapter, usePickerTranslations } from '@mui/x-date-pickers/hooks'
7
7
  import React from 'react'
8
8
  import { useTranslation } from 'react-i18next'
9
9
 
@@ -40,25 +40,25 @@ const StepperButton = styled(IconButton)({
40
40
  },
41
41
  })
42
42
 
43
- function RcSesDatepickerCalendarHeader(props: PickersCalendarHeaderProps<Date>) {
43
+ // PickersCalendarHeaderProps is no longer generic in x-date-pickers 9.
44
+ function RcSesDatepickerCalendarHeader(props: PickersCalendarHeaderProps) {
44
45
  const { t } = useTranslation('input', { keyPrefix: 'components.RcSesDatepicker' })
45
46
 
46
47
  const { currentMonth, onMonthChange } = props
47
48
 
48
- const dateAdapterContext = React.useContext(MuiPickersAdapterContext)
49
- const { utils, localeText } = dateAdapterContext ?? {}
49
+ // v9 no longer exports MuiPickersAdapterContext, and useLocalizationContext is
50
+ // not public either, so the adapter and the translations come from separate
51
+ // hooks. Both are guaranteed by the picker context, so no null guard is needed.
52
+ const utils = usePickerAdapter()
53
+ const localeText = usePickerTranslations()
50
54
 
51
- if (!utils) return null
55
+ const selectNextMonth = () => onMonthChange(utils.addMonths(currentMonth, 1))
52
56
 
53
- const selectNextMonth = () => onMonthChange(utils.addMonths(currentMonth, 1), 'left')
57
+ const selectNextYear = () => onMonthChange(utils.addYears(currentMonth, 1))
54
58
 
55
- const selectNextYear = () => onMonthChange(utils.addYears(currentMonth, 1), 'left')
59
+ const selectPreviousMonth = () => onMonthChange(utils.addMonths(currentMonth, -1))
56
60
 
57
- const selectPreviousMonth = () =>
58
- onMonthChange(utils.addMonths(currentMonth, -1), 'right')
59
-
60
- const selectPreviousYear = () =>
61
- onMonthChange(utils.addYears(currentMonth, -1), 'right')
61
+ const selectPreviousYear = () => onMonthChange(utils.addYears(currentMonth, -1))
62
62
 
63
63
  const monthLabel = utils.format(currentMonth, 'month')
64
64
 
@@ -1,7 +1,7 @@
1
1
  import { IconButton, InputAdornment, useMediaQuery } from '@mui/material'
2
2
  import type { DatePickerProps } from '@mui/x-date-pickers/DatePicker'
3
3
  import { DatePicker } from '@mui/x-date-pickers/DatePicker'
4
- import { MuiPickersAdapterContext } from '@mui/x-date-pickers/LocalizationProvider'
4
+ import { usePickerAdapter } from '@mui/x-date-pickers/hooks'
5
5
  import { parseISO } from 'date-fns'
6
6
  import { fromZonedTime } from 'date-fns-tz'
7
7
  import React, { useEffect, useMemo } from 'react'
@@ -28,7 +28,7 @@ type Props = TFieldProps &
28
28
  id?: string
29
29
  clearable?: boolean
30
30
  slotProps?: {
31
- datepicker?: DatePickerProps<Date, boolean>
31
+ datepicker?: DatePickerProps
32
32
  wrapper?: Partial<Omit<TWrapperProps, ImmediateWrapperProps>>
33
33
  }
34
34
  }
@@ -39,7 +39,9 @@ const RcSesDatepicker = React.forwardRef<HTMLInputElement, Props>((props, ref) =
39
39
 
40
40
  const { id: idProp, clearable, errors, label, slotProps, ...controllerProps } = props
41
41
 
42
- const dateAdapterContext = React.useContext(MuiPickersAdapterContext)
42
+ // v9 no longer exports MuiPickersAdapterContext from LocalizationProvider;
43
+ // usePickerAdapter is the public replacement for the `utils` adapter.
44
+ const dateAdapter = usePickerAdapter()
43
45
 
44
46
  const {
45
47
  field: { onChange, value, disabled },
@@ -54,7 +56,7 @@ const RcSesDatepicker = React.forwardRef<HTMLInputElement, Props>((props, ref) =
54
56
  const handleOnChange = (newValue: Date | null) => {
55
57
  try {
56
58
  onChange((newValue && fromZonedTime(newValue, 'UTC').toISOString()) ?? '')
57
- } catch (_) {
59
+ } catch {
58
60
  onChange(null)
59
61
  }
60
62
  }
@@ -76,7 +78,7 @@ const RcSesDatepicker = React.forwardRef<HTMLInputElement, Props>((props, ref) =
76
78
  inputRef={ref}
77
79
  closeOnSelect
78
80
  dayOfWeekFormatter={(date: Date) =>
79
- dateAdapterContext?.utils?.format(date, 'weekdayShort').substring(0, 2) ?? ''
81
+ dateAdapter.format(date, 'weekdayShort').substring(0, 2)
80
82
  }
81
83
  disabled={disabled}
82
84
  onChange={handleOnChange}
@@ -102,34 +104,37 @@ const RcSesDatepicker = React.forwardRef<HTMLInputElement, Props>((props, ref) =
102
104
  id,
103
105
  error: !!errors,
104
106
  fullWidth: true,
105
- InputProps: {
106
- ...(!upMd
107
- ? {
108
- startAdornment: (
109
- <InputAdornment
110
- aria-label={t('aria.openCalendar')}
111
- position='start'
112
- sx={{ mr: 0 }}
113
- >
114
- <IconButton>
115
- <CalendarBlankIcon />
116
- </IconButton>
117
- </InputAdornment>
118
- ),
119
- }
120
- : {}),
121
- endAdornment: !!value && clearable && (
122
- <InputAdornment position='end'>
123
- <IconButton
124
- aria-label={t('aria.clearValue')}
125
- onClick={() => handleOnChange(null)}
126
- >
127
- <XCircleFillIcon />
128
- </IconButton>
129
- </InputAdornment>
130
- ),
131
- },
132
107
  ...(slotProps?.datepicker?.slotProps?.textField ?? {}),
108
+
109
+ slotProps: {
110
+ input: {
111
+ ...(!upMd
112
+ ? {
113
+ startAdornment: (
114
+ <InputAdornment
115
+ aria-label={t('aria.openCalendar')}
116
+ position='start'
117
+ sx={{ mr: 0 }}
118
+ >
119
+ <IconButton>
120
+ <CalendarBlankIcon />
121
+ </IconButton>
122
+ </InputAdornment>
123
+ ),
124
+ }
125
+ : {}),
126
+ endAdornment: !!value && clearable && (
127
+ <InputAdornment position='end'>
128
+ <IconButton
129
+ aria-label={t('aria.clearValue')}
130
+ onClick={() => handleOnChange(null)}
131
+ >
132
+ <XCircleFillIcon />
133
+ </IconButton>
134
+ </InputAdornment>
135
+ ),
136
+ },
137
+ },
133
138
  },
134
139
  toolbar: { hidden: true },
135
140
  }}
@@ -126,7 +126,12 @@ function RcSesFileDropzone(props: Props) {
126
126
  Icon={UploadSimpleIcon}
127
127
  />
128
128
 
129
- <Stack gap={0.5} sx={{ flexGrow: 1 }}>
129
+ <Stack
130
+ sx={{
131
+ gap: 0.5,
132
+ flexGrow: 1,
133
+ }}
134
+ >
130
135
  {hasValidFileSelection && (
131
136
  <Stack>
132
137
  {value.map((file: File, index) => (
@@ -1,4 +1,3 @@
1
- /* eslint-disable react/jsx-props-no-spreading */
2
1
  import { Button, OutlinedInput, OutlinedInputProps, styled } from '@mui/material'
3
2
  import React, { useMemo } from 'react'
4
3
  import { UseControllerProps, useController } from 'react-hook-form'
@@ -193,10 +192,16 @@ function RcSesNumberStepper(props: Props) {
193
192
  )
194
193
  }
195
194
  error={!!errors}
196
- inputProps={{
197
- disabled,
198
- step,
199
- value,
195
+ slotProps={{
196
+ // Was inputProps. Note this is OutlinedInput, not TextField: its
197
+ // native-input slot is called `input` (TextField's `input` is the
198
+ // OutlinedInput wrapper and its native slot is `htmlInput`), so the
199
+ // mapping is per-component rather than a blanket rename.
200
+ input: {
201
+ disabled,
202
+ step,
203
+ value,
204
+ },
200
205
  }}
201
206
  onChange={handleInputOnChange}
202
207
  type='number'
@@ -11,21 +11,25 @@ function AutocompleteInput(props: AutocompleteRenderInputParams) {
11
11
  keyPrefix: 'components.RcSesFormControlWrapper',
12
12
  })
13
13
 
14
- const { inputProps, InputProps } = props
14
+ // MUI 9 replaced the params' inputProps/InputProps with a ready-made slotProps
15
+ // object ({ inputLabel, input, htmlInput }), so it can be passed straight
16
+ // through. input still carries the ref and classes Autocomplete relies on.
17
+ const { slotProps } = props
15
18
 
16
19
  return (
17
20
  <TextField
18
21
  autoFocus
19
- inputProps={inputProps}
20
- // eslint-disable-next-line react/jsx-no-duplicate-props
21
- InputProps={{
22
- ...InputProps,
23
- endAdornment: null,
24
- startAdornment: (
25
- <InputAdornment position='start' sx={{ pl: 1 }}>
26
- <MagnifyingGlassIcon fillColor={palette.grey[900]} />
27
- </InputAdornment>
28
- ),
22
+ slotProps={{
23
+ htmlInput: slotProps.htmlInput,
24
+ input: {
25
+ ...slotProps.input,
26
+ endAdornment: null,
27
+ startAdornment: (
28
+ <InputAdornment position='start' sx={{ pl: 1 }}>
29
+ <MagnifyingGlassIcon fillColor={palette.grey[900]} />
30
+ </InputAdornment>
31
+ ),
32
+ },
29
33
  }}
30
34
  placeholder={t('search')}
31
35
  sx={{