@registrucentras/rc-ses-react-components 1.10.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.
Files changed (283) 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/CheckBoldIcon.d.ts +1 -1
  15. package/dist/assets/icons/CheckCircleFillIcon.d.ts +1 -1
  16. package/dist/assets/icons/CheckIcon.d.ts +1 -1
  17. package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +1 -1
  18. package/dist/assets/icons/CircleFilledIcon.d.ts +1 -1
  19. package/dist/assets/icons/CloseIcon.d.ts +1 -1
  20. package/dist/assets/icons/CollapseChevronsIcon.d.ts +1 -1
  21. package/dist/assets/icons/CopyIcon.d.ts +1 -1
  22. package/dist/assets/icons/DotCircleFilledIcon.d.ts +1 -1
  23. package/dist/assets/icons/ExpandChevronsIcon.d.ts +1 -1
  24. package/dist/assets/icons/InfoFillIcon.d.ts +1 -1
  25. package/dist/assets/icons/MagnifyingGlassIcon.d.ts +1 -1
  26. package/dist/assets/icons/MapPinAreaIcon.d.ts +1 -1
  27. package/dist/assets/icons/MinusBoldIcon.d.ts +1 -1
  28. package/dist/assets/icons/PencilSimpleLineIcon.d.ts +1 -1
  29. package/dist/assets/icons/PlusBoldIcon.d.ts +1 -1
  30. package/dist/assets/icons/QuestionFillIcon.d.ts +1 -1
  31. package/dist/assets/icons/QuestionIcon.d.ts +1 -1
  32. package/dist/assets/icons/ScalesIcon.d.ts +1 -1
  33. package/dist/assets/icons/ScrollIcon.d.ts +1 -1
  34. package/dist/assets/icons/SearchHelpIcon.d.ts +1 -1
  35. package/dist/assets/icons/SearchXIcon.d.ts +1 -1
  36. package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +1 -1
  37. package/dist/assets/icons/UploadSimpleIcon.d.ts +1 -1
  38. package/dist/assets/icons/WarningCircleIcon.d.ts +1 -1
  39. package/dist/assets/icons/WarningDiamondFillIcon.d.ts +1 -1
  40. package/dist/assets/icons/WarningFillIcon.d.ts +1 -1
  41. package/dist/assets/icons/XCircleFillIcon.d.ts +1 -1
  42. package/dist/components/common/Accordion/index.d.ts +1 -1
  43. package/dist/components/common/Alert/index.d.ts +1 -1
  44. package/dist/components/common/Badge/index.d.ts +10 -0
  45. package/dist/components/common/Breadcrumbs/index.d.ts +1 -1
  46. package/dist/components/common/Button/ButtonWithPopover.d.ts +1 -1
  47. package/dist/components/common/Button/index.d.ts +2 -4
  48. package/dist/components/common/Card/index.d.ts +1 -1
  49. package/dist/components/common/DataPagination/components/DataPaginationSkeleton.d.ts +1 -1
  50. package/dist/components/common/DataPagination/components/PaginationButton.d.ts +1 -1
  51. package/dist/components/common/DataPagination/index.d.ts +1 -1
  52. package/dist/components/common/IconWithCircularBackground.d.ts +1 -1
  53. package/dist/components/common/ImageCard/index.d.ts +1 -1
  54. package/dist/components/common/ListWithIcons/components/ListWithIconsItem.d.ts +1 -1
  55. package/dist/components/common/ListWithIcons/index.d.ts +1 -1
  56. package/dist/components/common/Popover/index.d.ts +1 -1
  57. package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +1 -1
  58. package/dist/components/common/SelectableCardList/index.d.ts +1 -1
  59. package/dist/components/common/Snackbar/SnackbarProvider.d.ts +1 -1
  60. package/dist/components/common/Snackbar/index.d.ts +1 -1
  61. package/dist/components/common/Switch/index.d.ts +10 -0
  62. package/dist/components/common/Tabs/TabPanel.d.ts +1 -1
  63. package/dist/components/common/Tabs/TabsWrapper.d.ts +1 -1
  64. package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +1 -1
  65. package/dist/components/form/components/FormControlWrapper/index.d.ts +1 -1
  66. package/dist/components/form/inputs/Checkbox.d.ts +1 -1
  67. package/dist/components/form/inputs/CheckboxFormControl.d.ts +1 -1
  68. package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.d.ts +1 -1
  69. package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.d.ts +2 -1
  70. package/dist/components/form/inputs/Datepicker/index.d.ts +1 -1
  71. package/dist/components/form/inputs/FileDropzone.d.ts +1 -1
  72. package/dist/components/form/inputs/FileUpload.d.ts +1 -1
  73. package/dist/components/form/inputs/FormControlLabel.d.ts +2 -2
  74. package/dist/components/form/inputs/NumberStepper.d.ts +2 -1
  75. package/dist/components/form/inputs/PhoneInput.d.ts +2 -1
  76. package/dist/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.d.ts +1 -1
  77. package/dist/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.d.ts +13 -0
  78. package/dist/components/form/inputs/PhoneInputFormControl/components/PopperComponent.d.ts +1 -1
  79. package/dist/components/form/inputs/PhoneInputFormControl/components/RowComponent.d.ts +5 -2
  80. package/dist/components/form/inputs/PhoneInputFormControl/index.d.ts +2 -1
  81. package/dist/components/form/inputs/Select/index.d.ts +2 -1
  82. package/dist/components/form/inputs/SimpleCheckbox.d.ts +2 -1
  83. package/dist/components/layout/Footer/index.d.ts +1 -1
  84. package/dist/components/layout/ServiceFormActions.d.ts +1 -1
  85. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.d.ts +1 -1
  86. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/index.d.ts +1 -1
  87. package/dist/components/layout/ServiceFormContainer/CardFormContainer/index.d.ts +1 -1
  88. package/dist/components/layout/ServiceHeader.d.ts +1 -1
  89. package/dist/components/layout/ServicePage.d.ts +1 -1
  90. package/dist/components/layout/ServiceWizardStepper/components/CustomStepIcon.d.ts +1 -1
  91. package/dist/components/layout/ServiceWizardStepper/components/DesktopStepper.d.ts +1 -1
  92. package/dist/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.d.ts +1 -1
  93. package/dist/components/layout/ServiceWizardStepper/components/MobileStepper.d.ts +1 -1
  94. package/dist/components/layout/ServiceWizardStepper/index.d.ts +1 -1
  95. package/dist/components/loaders/FullPageLoader/index.d.ts +1 -1
  96. package/dist/components/loaders/Loader/index.d.ts +1 -1
  97. package/dist/components/loaders/LoadingSpinner/index.d.ts +1 -1
  98. package/dist/components/overlays/Dialog/index.d.ts +1 -1
  99. package/dist/components/overlays/Modal/index.d.ts +1 -1
  100. package/dist/components/utils/loading.d.ts +1 -1
  101. package/dist/i18n/@mui/x-date-pickers/ltLT.d.ts +1 -71
  102. package/dist/library/index.d.ts +3 -1
  103. package/dist/registrucentras-rc-ses-react-components.cjs +1 -30
  104. package/dist/registrucentras-rc-ses-react-components.js +6258 -7835
  105. package/dist/stories/assets/Logo.stories.d.ts +1 -1
  106. package/dist/stories/components/actions/Button.stories.d.ts +2 -2
  107. package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +1 -1
  108. package/dist/stories/components/display/Badge.stories.d.ts +9 -0
  109. package/dist/stories/components/display/Card.stories.d.ts +1 -1
  110. package/dist/stories/components/display/ImageCard.stories.d.ts +1 -1
  111. package/dist/stories/components/display/ListWithIcons.stories.d.ts +2 -2
  112. package/dist/stories/components/display/SegmentedControl.stories.d.ts +9 -9
  113. package/dist/stories/components/display/SelectableCardList.stories.d.ts +2 -2
  114. package/dist/stories/components/feedback/Alert.stories.d.ts +1 -1
  115. package/dist/stories/components/feedback/Snackbar.stories.d.ts +7 -7
  116. package/dist/stories/components/form/CardFormContainer.stories.d.ts +1 -1
  117. package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +1 -1
  118. package/dist/stories/components/form/FormControlWrapper.stories.d.ts +1 -1
  119. package/dist/stories/components/form/ServiceFormActions.stories.d.ts +1 -1
  120. package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +2 -2
  121. package/dist/stories/components/form/SimpleCheckbox.stories.d.ts +1 -1
  122. package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +1 -1
  123. package/dist/stories/components/icons/Icons.stories.d.ts +1 -1
  124. package/dist/stories/components/inputs/Checkbox.stories.d.ts +2 -2
  125. package/dist/stories/components/inputs/DatePicker.stories.d.ts +2 -2
  126. package/dist/stories/components/inputs/FileDropzone.stories.d.ts +1 -1
  127. package/dist/stories/components/inputs/FileUpload.stories.d.ts +2 -2
  128. package/dist/stories/components/inputs/NumberStepper.stories.d.ts +1 -1
  129. package/dist/stories/components/inputs/PhoneInput.stories.d.ts +2 -2
  130. package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +1 -1
  131. package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +1 -1
  132. package/dist/stories/components/inputs/SearchInput.stories.d.ts +1 -1
  133. package/dist/stories/components/inputs/SearchableField.stories.d.ts +1 -1
  134. package/dist/stories/components/inputs/Select.stories.d.ts +1 -1
  135. package/dist/stories/components/inputs/Switch.stories.d.ts +17 -0
  136. package/dist/stories/components/inputs/TextField.stories.d.ts +1 -1
  137. package/dist/stories/components/layout/Footer.stories.d.ts +1 -1
  138. package/dist/stories/components/layout/ServiceHeader.stories.d.ts +1 -1
  139. package/dist/stories/components/layout/ServicePage.stories.d.ts +1 -1
  140. package/dist/stories/components/loaders/FullPageLoader.stories.d.ts +1 -1
  141. package/dist/stories/components/loaders/Loader.stories.d.ts +1 -1
  142. package/dist/stories/components/loaders/LoadingSpinner.stories.d.ts +1 -1
  143. package/dist/stories/components/navigation/Accordion.stories.d.ts +2 -2
  144. package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +1 -1
  145. package/dist/stories/components/navigation/DataPagination.stories.d.ts +2 -2
  146. package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +1 -1
  147. package/dist/stories/components/overlays/Dialog.stories.d.ts +1 -1
  148. package/dist/stories/components/overlays/Modal.stories.d.ts +1 -1
  149. package/dist/stories/components/tabs/Tab.stories.d.ts +1 -1
  150. package/dist/stories/components/tabs/TabPanel.stories.d.ts +1 -1
  151. package/dist/stories/components/tabs/Tabs.stories.d.ts +1 -1
  152. package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +1 -1
  153. package/dist/theme/light/MuiSwitch.d.ts +3 -0
  154. package/package.json +63 -62
  155. package/src/components/common/Accordion/index.tsx +0 -1
  156. package/src/components/common/Alert/index.test.tsx +1 -1
  157. package/src/components/common/Badge/index.test.tsx +129 -0
  158. package/src/components/common/Badge/index.tsx +162 -0
  159. package/src/components/common/Button/index.test.tsx +5 -2
  160. package/src/components/common/Button/index.tsx +10 -4
  161. package/src/components/common/Card/index.test.tsx +1 -1
  162. package/src/components/common/DataPagination/index.test.tsx +1 -1
  163. package/src/components/common/DataPagination/index.tsx +14 -2
  164. package/src/components/common/ImageCard/index.test.tsx +1 -1
  165. package/src/components/common/ListWithIcons/index.test.tsx +1 -1
  166. package/src/components/common/SegmentedControl/components/SegmentButton/index.test.tsx +1 -1
  167. package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +2 -0
  168. package/src/components/common/SegmentedControl/index.test.tsx +1 -1
  169. package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +14 -2
  170. package/src/components/common/SelectableCardList/index.test.tsx +1 -1
  171. package/src/components/common/Snackbar/SnackbarProvider.tsx +1 -1
  172. package/src/components/common/Snackbar/index.test.tsx +1 -1
  173. package/src/components/common/Snackbar/index.tsx +3 -1
  174. package/src/components/common/Switch/index.test.tsx +214 -0
  175. package/src/components/common/Switch/index.tsx +64 -0
  176. package/src/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.ts +1 -1
  177. package/src/components/form/inputs/CheckboxFormControl.tsx +7 -3
  178. package/src/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.tsx +8 -5
  179. package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +12 -12
  180. package/src/components/form/inputs/Datepicker/index.tsx +37 -32
  181. package/src/components/form/inputs/FileDropzone.tsx +6 -1
  182. package/src/components/form/inputs/NumberStepper.tsx +10 -5
  183. package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +15 -11
  184. package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +31 -27
  185. package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +8 -4
  186. package/src/components/form/inputs/PhoneInputFormControl/index.test.tsx +57 -2
  187. package/src/components/form/inputs/PhoneInputFormControl/index.tsx +66 -53
  188. package/src/components/form/inputs/RadioButtonGroup.tsx +0 -1
  189. package/src/components/form/inputs/SearchInput/index.test.tsx +1 -1
  190. package/src/components/form/inputs/SearchInput/index.tsx +23 -13
  191. package/src/components/form/inputs/SearchableField.test.tsx +126 -0
  192. package/src/components/form/inputs/SearchableField.tsx +29 -24
  193. package/src/components/form/inputs/Select/index.tsx +67 -36
  194. package/src/components/form/inputs/TextField.tsx +1 -7
  195. package/src/components/layout/Footer/index.test.tsx +1 -1
  196. package/src/components/layout/ServiceFormActions.tsx +3 -3
  197. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +2 -2
  198. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +2 -2
  199. package/src/components/layout/ServiceFormContainer/CardFormContainer/index.test.tsx +1 -1
  200. package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.tsx +2 -1
  201. package/src/components/layout/ServiceWizardStepper/components/MobileStepper.test.tsx +8 -6
  202. package/src/components/layout/ServiceWizardStepper/components/MobileStepper.tsx +2 -1
  203. package/src/components/loaders/FullPageLoader/index.test.tsx +1 -1
  204. package/src/components/loaders/FullPageLoader/index.tsx +4 -3
  205. package/src/components/loaders/Loader/index.test.tsx +1 -1
  206. package/src/components/loaders/Loader/index.tsx +14 -4
  207. package/src/components/loaders/LoadingSpinner/index.test.tsx +1 -1
  208. package/src/components/overlays/Dialog/index.test.tsx +1 -1
  209. package/src/components/overlays/Dialog/index.tsx +7 -5
  210. package/src/components/overlays/Modal/index.test.tsx +1 -1
  211. package/src/components/overlays/Modal/index.tsx +4 -2
  212. package/src/env.tsx +1 -1
  213. package/src/examples/MultipleStepForm/components/ServiceDetailsForm.tsx +0 -5
  214. package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +0 -2
  215. package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +2 -2
  216. package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +12 -8
  217. package/src/examples/SingleStepForm/index.tsx +0 -2
  218. package/src/i18n/@mui/x-date-pickers/ltLT.ts +15 -1
  219. package/src/i18n/namespaces/input/en.json +6 -0
  220. package/src/i18n/namespaces/input/lt.json +6 -0
  221. package/src/library/index.ts +4 -0
  222. package/src/main.tsx +1 -1
  223. package/src/stories/Colors.mdx +1 -1
  224. package/src/stories/Welcome.mdx +1 -1
  225. package/src/stories/assets/Logo.stories.tsx +1 -1
  226. package/src/stories/components/actions/Button.stories.tsx +2 -2
  227. package/src/stories/components/actions/ButtonWithPopover.stories.tsx +1 -1
  228. package/src/stories/components/display/Badge.stories.tsx +184 -0
  229. package/src/stories/components/display/Card.stories.tsx +1 -1
  230. package/src/stories/components/display/ImageCard.stories.tsx +1 -1
  231. package/src/stories/components/display/ListWithIcons.stories.tsx +1 -1
  232. package/src/stories/components/display/SegmentedControl.stories.tsx +1 -1
  233. package/src/stories/components/display/SelectableCardList.stories.tsx +1 -1
  234. package/src/stories/components/feedback/Alert.stories.tsx +1 -1
  235. package/src/stories/components/feedback/Snackbar.stories.tsx +1 -1
  236. package/src/stories/components/form/CardFormContainer.stories.tsx +1 -1
  237. package/src/stories/components/form/CheckboxFormControl.stories.tsx +1 -1
  238. package/src/stories/components/form/FormControlWrapper.stories.tsx +1 -1
  239. package/src/stories/components/form/ServiceFormActions.stories.tsx +1 -1
  240. package/src/stories/components/form/ServiceFormContainer.stories.tsx +1 -3
  241. package/src/stories/components/form/SimpleCheckbox.stories.tsx +1 -1
  242. package/src/stories/components/icons/IconWithCircularBackground.stories.tsx +1 -1
  243. package/src/stories/components/icons/Icons.stories.tsx +1 -2
  244. package/src/stories/components/inputs/Checkbox.stories.tsx +1 -2
  245. package/src/stories/components/inputs/DatePicker.stories.tsx +2 -3
  246. package/src/stories/components/inputs/FileDropzone.stories.tsx +1 -1
  247. package/src/stories/components/inputs/FileUpload.stories.tsx +1 -2
  248. package/src/stories/components/inputs/NumberStepper.stories.tsx +1 -1
  249. package/src/stories/components/inputs/PhoneInput.stories.tsx +1 -2
  250. package/src/stories/components/inputs/PhoneInputFormControl.stories.tsx +3 -2
  251. package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +1 -1
  252. package/src/stories/components/inputs/SearchInput.stories.tsx +2 -2
  253. package/src/stories/components/inputs/SearchableField.stories.tsx +1 -1
  254. package/src/stories/components/inputs/Select.stories.tsx +1 -2
  255. package/src/stories/components/inputs/Switch.stories.tsx +70 -0
  256. package/src/stories/components/inputs/TextField.stories.tsx +1 -1
  257. package/src/stories/components/layout/Footer.stories.tsx +1 -1
  258. package/src/stories/components/layout/ServiceHeader.stories.tsx +1 -1
  259. package/src/stories/components/layout/ServicePage.stories.tsx +1 -1
  260. package/src/stories/components/loaders/FullPageLoader.stories.tsx +1 -1
  261. package/src/stories/components/loaders/Loader.stories.tsx +1 -1
  262. package/src/stories/components/loaders/LoadingSpinner.stories.tsx +1 -1
  263. package/src/stories/components/navigation/Accordion.stories.tsx +1 -2
  264. package/src/stories/components/navigation/Breadcrumbs.stories.tsx +1 -1
  265. package/src/stories/components/navigation/DataPagination.stories.tsx +8 -2
  266. package/src/stories/components/navigation/ServiceWizardStepper.stories.tsx +1 -1
  267. package/src/stories/components/overlays/Dialog.stories.tsx +1 -1
  268. package/src/stories/components/overlays/Modal.stories.tsx +1 -1
  269. package/src/stories/components/tabs/Tab.stories.tsx +12 -1
  270. package/src/stories/components/tabs/TabPanel.stories.tsx +1 -1
  271. package/src/stories/components/tabs/Tabs.stories.tsx +1 -1
  272. package/src/stories/components/tabs/TabsWrapper.stories.tsx +1 -1
  273. package/src/theme/light/MuiAlert.tsx +82 -75
  274. package/src/theme/light/MuiLinearProgress.ts +6 -2
  275. package/src/theme/light/MuiPickersLayout.ts +4 -4
  276. package/src/theme/light/MuiSwitch.tsx +77 -0
  277. package/src/theme/light/MuiTabs.tsx +2 -1
  278. package/src/theme/light/index.tsx +2 -0
  279. package/src/types/common/ColorType.tsx +1 -7
  280. package/dist/components/form/inputs/PhoneInputFormControl/components/OuterElementType.d.ts +0 -5
  281. package/dist/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.d.ts +0 -4
  282. package/src/components/form/inputs/PhoneInputFormControl/components/OuterElementType.tsx +0 -13
  283. package/src/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.ts +0 -14
@@ -4,6 +4,12 @@
4
4
  "close": "Close"
5
5
  },
6
6
 
7
+ "RcSesBadge": {
8
+ "aria": {
9
+ "close": "Remove {{label}}"
10
+ }
11
+ },
12
+
7
13
  "RcSesButtonWithPopover": {
8
14
  "aria": {
9
15
  "label": "Additional information"
@@ -4,6 +4,12 @@
4
4
  "close": "Uždaryti"
5
5
  },
6
6
 
7
+ "RcSesBadge": {
8
+ "aria": {
9
+ "close": "Pašalinti {{label}}"
10
+ }
11
+ },
12
+
7
13
  "RcSesButtonWithPopover": {
8
14
  "aria": {
9
15
  "label": "Daugiau informacijos"
@@ -6,6 +6,7 @@ import RcSesIconProps from '@/assets/IconProps'
6
6
  import RcSesAccordion from '@/components/common/Accordion'
7
7
  import useAccordionController from '@/components/common/Accordion/hooks/useAccordionController'
8
8
  import RcSesAlert from '@/components/common/Alert'
9
+ import RcSesBadge from '@/components/common/Badge'
9
10
  import RcSesBreadcrumbs from '@/components/common/Breadcrumbs'
10
11
  import RcSesButton from '@/components/common/Button'
11
12
  import RcSesButtonWithPopover from '@/components/common/Button/ButtonWithPopover'
@@ -20,6 +21,7 @@ import {
20
21
  RcSesSnackbarProvider,
21
22
  useSnackbar,
22
23
  } from '@/components/common/Snackbar/SnackbarProvider'
24
+ import RcSesSwitch from '@/components/common/Switch'
23
25
  import RcSesTab from '@/components/common/Tabs/Tab'
24
26
  import RcSesTabPanel from '@/components/common/Tabs/TabPanel'
25
27
  import RcSesTabs from '@/components/common/Tabs/Tabs'
@@ -67,6 +69,7 @@ export { RcSesPalette, RcSesTheme }
67
69
  export { RcSesAccordion, useAccordionController }
68
70
  export {
69
71
  RcSesAlert,
72
+ RcSesBadge,
70
73
  RcSesBreadcrumbs,
71
74
  RcSesButton,
72
75
  RcSesButtonWithPopover,
@@ -80,6 +83,7 @@ export {
80
83
  RcSesSnackbar,
81
84
  RcSesSnackbarProvider,
82
85
  RcSesModal,
86
+ RcSesSwitch,
83
87
  }
84
88
  export { RcSesSegmentedControl }
85
89
  export { RcSesCheckbox, RcSesCheckboxFormControl, RcSesSimpleCheckbox }
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/AdapterDateFnsV3'
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'
@@ -1,4 +1,4 @@
1
- import { Meta } from '@storybook/blocks'
1
+ import { Meta } from '@storybook/addon-docs/blocks'
2
2
  import { primary, secondary, grey, warning, error } from '@/theme/palette'
3
3
 
4
4
  <Meta title="Foundations/Colors" />
@@ -1,4 +1,4 @@
1
- import { Meta } from '@storybook/blocks'
1
+ import { Meta } from '@storybook/addon-docs/blocks'
2
2
  import { grey, primary } from '../theme/palette'
3
3
 
4
4
  import Logo from '@/assets/Logo'
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import Logo from '@/assets/Logo'
4
4
 
@@ -1,5 +1,5 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
2
- import { fn } from '@storybook/test'
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,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import RcSesButtonWithPopover from '@/components/common/Button/ButtonWithPopover'
4
4
 
@@ -0,0 +1,184 @@
1
+ import { Box, Typography } from '@mui/material'
2
+ import { Meta, StoryObj } from '@storybook/react-vite'
3
+ import { Fragment } from 'react'
4
+
5
+ import RcSesBadge, { RcSesBadgeProps } from '@/components/common/Badge'
6
+ import FieldPreview from '@/components/storybook/FieldPreview'
7
+ import FieldView from '@/components/storybook/FieldView'
8
+ import Fields from '@/components/storybook/Fields'
9
+ import PreviewTitle from '@/components/storybook/PreviewTitle'
10
+
11
+ const variants: RcSesBadgeProps['variant'][] = [
12
+ 'neutral',
13
+ 'success',
14
+ 'warning',
15
+ 'error',
16
+ 'info',
17
+ 'brand',
18
+ ]
19
+
20
+ const sizes: RcSesBadgeProps['size'][] = ['small', 'regular']
21
+
22
+ const meta: Meta<typeof RcSesBadge> = {
23
+ title: 'components/display/Badge',
24
+ component: RcSesBadge,
25
+ tags: ['autodocs'],
26
+ }
27
+
28
+ export default meta
29
+
30
+ type Story = StoryObj<typeof RcSesBadge>
31
+
32
+ // ---------------------------------------------------------------------------
33
+ // Main (interactive / configurable via Controls panel)
34
+ // ---------------------------------------------------------------------------
35
+
36
+ export const Main: Story = {
37
+ render: (args) => (
38
+ <Fields>
39
+ <FieldView>
40
+ <RcSesBadge {...args} />
41
+ </FieldView>
42
+ </Fields>
43
+ ),
44
+ args: {
45
+ label: 'Dabartinė',
46
+ variant: 'success',
47
+ size: 'regular',
48
+ showIcon: true,
49
+ showClose: false,
50
+ },
51
+ }
52
+
53
+ // ---------------------------------------------------------------------------
54
+ // Matrix — all 6 Type x 2 Size x show icon x show close combinations
55
+ // ---------------------------------------------------------------------------
56
+
57
+ const combos: { key: string; label: string; showIcon: boolean; showClose: boolean }[] = [
58
+ { key: 'icon', label: 'Icon', showIcon: true, showClose: false },
59
+ { key: 'close', label: 'Close', showIcon: false, showClose: true },
60
+ { key: 'both', label: 'Icon + Close', showIcon: true, showClose: true },
61
+ { key: 'plain', label: 'Plain', showIcon: false, showClose: false },
62
+ ]
63
+
64
+ export const AllCombinations: Story = {
65
+ render: () => (
66
+ <>
67
+ <PreviewTitle>
68
+ 6 types × 2 sizes × show icon × show close = 48 variants
69
+ </PreviewTitle>
70
+ <Box
71
+ sx={{
72
+ display: 'grid',
73
+ gridTemplateColumns: '90px 70px repeat(4, 1fr)',
74
+ rowGap: 1.5,
75
+ columnGap: 2,
76
+ alignItems: 'center',
77
+ maxWidth: 720,
78
+ }}
79
+ >
80
+ <Box />
81
+ <Box />
82
+ {combos.map((combo) => (
83
+ <Typography
84
+ key={combo.key}
85
+ align='center'
86
+ variant='body2'
87
+ sx={{
88
+ color: 'text.secondary',
89
+ }}
90
+ >
91
+ {combo.label}
92
+ </Typography>
93
+ ))}
94
+ {variants.map((variant) =>
95
+ sizes.map((size, sizeIndex) => (
96
+ <Fragment key={`${variant}-${size}`}>
97
+ {sizeIndex === 0 && (
98
+ <Typography
99
+ variant='body2'
100
+ sx={{
101
+ fontWeight: 600,
102
+ gridRow: 'span 2',
103
+ }}
104
+ >
105
+ {variant}
106
+ </Typography>
107
+ )}
108
+ <Typography
109
+ variant='body2'
110
+ sx={{
111
+ color: 'text.secondary',
112
+ }}
113
+ >
114
+ {size}
115
+ </Typography>
116
+ {combos.map((combo) => (
117
+ <Box
118
+ key={combo.key}
119
+ sx={{
120
+ display: 'flex',
121
+ justifyContent: 'center',
122
+ }}
123
+ >
124
+ <RcSesBadge
125
+ label='Label'
126
+ variant={variant}
127
+ size={size}
128
+ showIcon={combo.showIcon}
129
+ showClose={combo.showClose}
130
+ onClose={combo.showClose ? () => {} : undefined}
131
+ />
132
+ </Box>
133
+ ))}
134
+ </Fragment>
135
+ )),
136
+ )}
137
+ </Box>
138
+ </>
139
+ ),
140
+ }
141
+
142
+ // ---------------------------------------------------------------------------
143
+ // Edge cases
144
+ // ---------------------------------------------------------------------------
145
+
146
+ export const LongLabel: Story = {
147
+ render: () => (
148
+ <Fields>
149
+ <FieldView>
150
+ <PreviewTitle>
151
+ truncated in a constrained container (hover/focus for full text)
152
+ </PreviewTitle>
153
+ <Box sx={{ maxWidth: 160 }}>
154
+ <RcSesBadge
155
+ label='Labai ilgas būsenos pavadinimas, kuris netelpa'
156
+ variant='info'
157
+ size='regular'
158
+ showClose
159
+ onClose={() => {}}
160
+ />
161
+ </Box>
162
+ </FieldView>
163
+ <FieldPreview>
164
+ <PreviewTitle>grows freely when space allows</PreviewTitle>
165
+ <RcSesBadge
166
+ label='Labai ilgas būsenos pavadinimas, kuris netelpa'
167
+ variant='info'
168
+ size='regular'
169
+ />
170
+ </FieldPreview>
171
+ </Fields>
172
+ ),
173
+ }
174
+
175
+ export const BaselineAlignment: Story = {
176
+ render: () => (
177
+ <FieldView>
178
+ <Typography variant='body1' component='p'>
179
+ Įrašo būsena: <RcSesBadge label='Dabartinė' variant='success' size='small' />{' '}
180
+ greta teksto eilutėje.
181
+ </Typography>
182
+ </FieldView>
183
+ ),
184
+ }
@@ -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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import CheckCircleFillIcon from '@/assets/icons/CheckCircleFillIcon'
4
4
  import WarningFillIcon from '@/assets/icons/WarningFillIcon'
@@ -1,4 +1,4 @@
1
- import type { Meta } from '@storybook/react'
1
+ import type { Meta } from '@storybook/react-vite'
2
2
  import { useState } from 'react'
3
3
 
4
4
  import RcSesSegmentedControl from '../../../components/common/SegmentedControl'
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
  import { useState } from 'react'
3
3
 
4
4
  import InfoFillIcon from '@/assets/icons/InfoFillIcon'
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import RcSesAlert from '@/components/common/Alert'
4
4
  import FieldPreview from '@/components/storybook/FieldPreview'
@@ -1,5 +1,5 @@
1
1
  import { Box, Button } from '@mui/material'
2
- import type { Meta } from '@storybook/react'
2
+ import type { Meta } from '@storybook/react-vite'
3
3
 
4
4
  import RcSesSnackbar from '@/components/common/Snackbar'
5
5
  import {
@@ -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,4 +1,4 @@
1
- import { Meta, StoryContext, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryContext, StoryObj } from '@storybook/react-vite'
2
2
  import { useForm } from 'react-hook-form'
3
3
 
4
4
  import RcSesCheckboxFormControl from '@/components/form/inputs/CheckboxFormControl'
@@ -1,5 +1,5 @@
1
1
  import TextField from '@mui/material/TextField'
2
- import { Meta, StoryObj } from '@storybook/react'
2
+ import { Meta, StoryObj } from '@storybook/react-vite'
3
3
 
4
4
  import RcSesFormControlWrapper from '@/components/form/components/FormControlWrapper'
5
5
 
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import RcSesServiceFormActions from '@/components/layout/ServiceFormActions'
4
4
  import FieldView from '@/components/storybook/FieldView'
@@ -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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
  import { useState } from 'react'
3
3
 
4
4
  import SimpleCheckbox from '@/components/form/inputs/SimpleCheckbox'
@@ -1,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import CheckBoldIcon from '@/assets/icons/CheckBoldIcon'
4
4
  import RcSesIconWithCircularBackground from '@/components/common/IconWithCircularBackground'
@@ -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
- /* eslint-disable react/function-component-definition */
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
- /* eslint-disable react/function-component-definition */
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,4 +1,4 @@
1
- import { Meta, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryObj } from '@storybook/react-vite'
2
2
  import { FieldError, useForm } from 'react-hook-form'
3
3
 
4
4
  import RcSesFileDropzone from '@/components/form/inputs/FileDropzone'
@@ -1,5 +1,4 @@
1
- /* eslint-disable react/function-component-definition */
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,4 @@
1
- import { Meta, StoryContext, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryContext, StoryObj } from '@storybook/react-vite'
2
2
  import { useForm } from 'react-hook-form'
3
3
 
4
4
  import RcSesNumberStepper from '@/components/form/inputs/NumberStepper'
@@ -1,5 +1,4 @@
1
- /* eslint-disable react/function-component-definition */
2
- import { Meta } from '@storybook/react'
1
+ import { Meta } from '@storybook/react-vite'
3
2
  import { useForm } from 'react-hook-form'
4
3
 
5
4
  import RcSesPhoneInput from '@/components/form/inputs/PhoneInput'
@@ -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?: string }) {
19
+ function PhoneInputFormControlDemo({ label = 'Phone Number' }: { label?: ReactNode }) {
19
20
  const { control } = useForm({
20
21
  defaultValues: {
21
22
  phone: '',
@@ -1,4 +1,4 @@
1
- import { Meta, StoryContext, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryContext, StoryObj } from '@storybook/react-vite'
2
2
  import { useForm } from 'react-hook-form'
3
3
 
4
4
  import RcSesRadioButtonGroup from '@/components/form/inputs/RadioButtonGroup'
@@ -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,4 +1,4 @@
1
- import { Meta, StoryContext, StoryObj } from '@storybook/react'
1
+ import { Meta, StoryContext, StoryObj } from '@storybook/react-vite'
2
2
  import { useForm } from 'react-hook-form'
3
3
 
4
4
  import RcSesSearchableField from '@/components/form/inputs/SearchableField'
@@ -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'
@@ -0,0 +1,70 @@
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
+ import { useState } from 'react'
3
+
4
+ import RcSesSwitch from '@/components/common/Switch'
5
+
6
+ const meta = {
7
+ title: 'components/inputs/Switch',
8
+ component: RcSesSwitch,
9
+ parameters: {
10
+ layout: 'centered',
11
+ },
12
+ tags: ['autodocs'],
13
+ } satisfies Meta<typeof RcSesSwitch>
14
+
15
+ export default meta
16
+ type Story = StoryObj<typeof meta>
17
+
18
+ type ControlledDemoProps = {
19
+ initialChecked?: boolean
20
+ disabled?: boolean
21
+ label?: string
22
+ }
23
+
24
+ function ControlledDemo({
25
+ initialChecked = false,
26
+ disabled = false,
27
+ label = 'Notifications',
28
+ }: ControlledDemoProps) {
29
+ const [checked, setChecked] = useState(initialChecked)
30
+ return (
31
+ <RcSesSwitch
32
+ label={label}
33
+ checked={checked}
34
+ disabled={disabled}
35
+ onChange={(_event, value) => setChecked(value)}
36
+ />
37
+ )
38
+ }
39
+
40
+ export const On: Story = {
41
+ args: { label: 'Notifications', checked: true, onChange: () => {} },
42
+ render: () => <ControlledDemo initialChecked />,
43
+ }
44
+
45
+ export const Off: Story = {
46
+ args: { label: 'Notifications', checked: false, onChange: () => {} },
47
+ render: () => <ControlledDemo />,
48
+ }
49
+
50
+ export const OnDisabled: Story = {
51
+ name: 'On, Disabled',
52
+ args: { label: 'Notifications', checked: true, onChange: () => {} },
53
+ render: () => <ControlledDemo initialChecked disabled />,
54
+ }
55
+
56
+ export const OffDisabled: Story = {
57
+ name: 'Off, Disabled',
58
+ args: { label: 'Notifications', checked: false, onChange: () => {} },
59
+ render: () => <ControlledDemo disabled />,
60
+ }
61
+
62
+ export const LongLabel: Story = {
63
+ name: 'Long label',
64
+ args: { label: 'Notifications', checked: false, onChange: () => {} },
65
+ render: () => (
66
+ <div style={{ maxWidth: '16rem' }}>
67
+ <ControlledDemo label='Send me an email whenever there is a new comment on any of my open service requests' />
68
+ </div>
69
+ ),
70
+ }
@@ -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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import RcSesFooter from '@/components/layout/Footer'
4
4
 
@@ -1,5 +1,5 @@
1
1
  import Typography from '@mui/material/Typography'
2
- import { Meta, StoryObj } from '@storybook/react'
2
+ import { Meta, StoryObj } from '@storybook/react-vite'
3
3
  import React from 'react'
4
4
 
5
5
  import RcSesServiceHeader from '@/components/layout/ServiceHeader'
@@ -1,5 +1,5 @@
1
1
  import Typography from '@mui/material/Typography'
2
- import { Meta, StoryObj } from '@storybook/react'
2
+ import { Meta, StoryObj } from '@storybook/react-vite'
3
3
 
4
4
  import RcSesServicePage from '@/components/layout/ServicePage'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { Box, Stack } 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 RcSesFullPageLoader from '@/components/loaders/FullPageLoader'
5
5
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import RcSesLoader from '@/components/loaders/Loader'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
1
+ import type { Meta, StoryObj } from '@storybook/react-vite'
2
2
 
3
3
  import RcSesLoadingSpinner, {
4
4
  RcSesSpinnerColor,
@@ -1,5 +1,4 @@
1
- /* eslint-disable react/function-component-definition */
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'