@registrucentras/rc-ses-react-components 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/README.md +37 -0
  2. package/dist/assets/IconProps.d.ts +4 -0
  3. package/dist/assets/Logo.d.ts +3 -0
  4. package/dist/assets/ThemeColors.d.ts +6 -0
  5. package/dist/assets/icons/ArrowRightIcon.d.ts +3 -0
  6. package/dist/assets/icons/CalendarBlankIcon.d.ts +3 -0
  7. package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +3 -0
  8. package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +3 -0
  9. package/dist/assets/icons/CaretDownBoldIcon.d.ts +3 -0
  10. package/dist/assets/icons/CaretDownFill.d.ts +3 -0
  11. package/dist/assets/icons/CaretDownIcon.d.ts +3 -0
  12. package/dist/assets/icons/CaretLeftBoldIcon.d.ts +3 -0
  13. package/dist/assets/icons/CaretLeftIcon.d.ts +3 -0
  14. package/dist/assets/icons/CaretRightBoldIcon.d.ts +3 -0
  15. package/dist/assets/icons/CheckBoldDisabledIcon.d.ts +3 -0
  16. package/dist/assets/icons/CheckBoldIcon.d.ts +3 -0
  17. package/dist/assets/icons/CheckCircleFillIcon.d.ts +3 -0
  18. package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +3 -0
  19. package/dist/assets/icons/CloseIcon.d.ts +3 -0
  20. package/dist/assets/icons/CollapseChevronsIcon.d.ts +3 -0
  21. package/dist/assets/icons/ExpandChevronsIcon.d.ts +3 -0
  22. package/dist/assets/icons/InfoFillIcon.d.ts +3 -0
  23. package/dist/assets/icons/MagnifyingGlassIcon.d.ts +3 -0
  24. package/dist/assets/icons/MinusBoldIcon.d.ts +3 -0
  25. package/dist/assets/icons/PlusBoldIcon.d.ts +3 -0
  26. package/dist/assets/icons/QuestionFillIcon.d.ts +3 -0
  27. package/dist/assets/icons/QuestionIcon.d.ts +3 -0
  28. package/dist/assets/icons/ScrollIcon.d.ts +3 -0
  29. package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +3 -0
  30. package/dist/assets/icons/UploadSimpleIcon.d.ts +3 -0
  31. package/dist/assets/icons/WarningDiamondFillIcon.d.ts +3 -0
  32. package/dist/assets/icons/WarningFillIcon.d.ts +3 -0
  33. package/dist/assets/icons/XCircleFillIcon.d.ts +3 -0
  34. package/dist/assets/resolvePaletteColorPath.d.ts +3 -0
  35. package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +11 -0
  36. package/dist/components/common/Accordion/index.d.ts +9 -0
  37. package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +8 -0
  38. package/dist/components/common/Alert/index.d.ts +3 -0
  39. package/dist/components/common/Breadcrumbs/index.d.ts +9 -0
  40. package/dist/components/common/Button/ButtonWithPopover.d.ts +12 -0
  41. package/dist/components/common/Button/index.d.ts +6 -0
  42. package/dist/components/common/IconWithCircularBackground.d.ts +14 -0
  43. package/dist/components/common/Popover/index.d.ts +6 -0
  44. package/dist/components/common/Tabs/Tab.d.ts +3 -0
  45. package/dist/components/common/Tabs/TabPanel.d.ts +8 -0
  46. package/dist/components/common/Tabs/Tabs.d.ts +3 -0
  47. package/dist/components/common/Tabs/TabsWrapper.d.ts +7 -0
  48. package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +7 -0
  49. package/dist/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.d.ts +2 -0
  50. package/dist/components/form/components/FormControlWrapper/index.d.ts +17 -0
  51. package/dist/components/form/inputs/Checkbox.d.ts +23 -0
  52. package/dist/components/form/inputs/CheckboxFormControl.d.ts +23 -0
  53. package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.d.ts +3 -0
  54. package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.d.ts +3 -0
  55. package/dist/components/form/inputs/Datepicker/index.d.ts +16 -0
  56. package/dist/components/form/inputs/FileDropzone.d.ts +21 -0
  57. package/dist/components/form/inputs/FileUpload.d.ts +19 -0
  58. package/dist/components/form/inputs/NumberStepper.d.ts +23 -0
  59. package/dist/components/form/inputs/PhoneInput.d.ts +3 -0
  60. package/dist/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.d.ts +3 -0
  61. package/dist/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.d.ts +3 -0
  62. package/dist/components/form/inputs/PhoneInputFormControl/components/OuterElementType.d.ts +5 -0
  63. package/dist/components/form/inputs/PhoneInputFormControl/components/PopperComponent.d.ts +7 -0
  64. package/dist/components/form/inputs/PhoneInputFormControl/components/RowComponent.d.ts +3 -0
  65. package/dist/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.d.ts +4 -0
  66. package/dist/components/form/inputs/PhoneInputFormControl/index.d.ts +22 -0
  67. package/dist/components/form/inputs/PhoneInputFormControl/types/Country.d.ts +7 -0
  68. package/dist/components/form/inputs/RadioButtonGroup.d.ts +25 -0
  69. package/dist/components/form/inputs/SearchableField.d.ts +23 -0
  70. package/dist/components/form/inputs/Select.d.ts +27 -0
  71. package/dist/components/form/inputs/TextField.d.ts +16 -0
  72. package/dist/components/layout/ServiceFormActions.d.ts +9 -0
  73. package/dist/components/layout/ServiceFormContainer/components/AccordionCollapseControls.d.ts +6 -0
  74. package/dist/components/layout/ServiceFormContainer/index.d.ts +14 -0
  75. package/dist/components/layout/ServiceHeader.d.ts +9 -0
  76. package/dist/components/layout/ServicePage.d.ts +5 -0
  77. package/dist/components/layout/ServiceWizardStepper/components/ActiveStepIcon.d.ts +2 -0
  78. package/dist/components/layout/ServiceWizardStepper/components/CompletedStepIcon.d.ts +2 -0
  79. package/dist/components/layout/ServiceWizardStepper/components/PendingStepIcon.d.ts +2 -0
  80. package/dist/components/layout/ServiceWizardStepper/index.d.ts +6 -0
  81. package/dist/components/shared/storage/CookieStorage.d.ts +9 -0
  82. package/dist/components/storybook/FieldPreview.d.ts +8 -0
  83. package/dist/components/storybook/FieldPreviewRow.d.ts +8 -0
  84. package/dist/components/storybook/FieldView.d.ts +8 -0
  85. package/dist/components/storybook/Fields.d.ts +8 -0
  86. package/dist/components/storybook/PreviewTitle.d.ts +8 -0
  87. package/dist/env.d.ts +3 -0
  88. package/dist/i18n/@mui/x-date-pickers/ltLT.d.ts +133 -0
  89. package/dist/i18n/i18n.d.ts +6 -0
  90. package/dist/library/icons.d.ts +14 -0
  91. package/dist/library/index.d.ts +65 -0
  92. package/dist/registrucentras-rc-ses-react-components.cjs +48 -0
  93. package/dist/registrucentras-rc-ses-react-components.js +7288 -0
  94. package/dist/stories/components/Accordion.stories.d.ts +30 -0
  95. package/dist/stories/components/Alert.stories.d.ts +7 -0
  96. package/dist/stories/components/Breadcrumbs.stories.d.ts +8 -0
  97. package/dist/stories/components/buttons/Button.stories.d.ts +65 -0
  98. package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +26 -0
  99. package/dist/stories/components/form/ServiceFormActions.stories.d.ts +12 -0
  100. package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +16 -0
  101. package/dist/stories/components/inputs/Checkbox.stories.d.ts +26 -0
  102. package/dist/stories/components/inputs/DatePicker.stories.d.ts +24 -0
  103. package/dist/stories/components/inputs/FileUpload.stories.d.ts +30 -0
  104. package/dist/stories/components/inputs/NumberStepper.stories.d.ts +34 -0
  105. package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +34 -0
  106. package/dist/stories/components/inputs/SearchableField.stories.d.ts +335 -0
  107. package/dist/stories/components/inputs/Select.stories.d.ts +874 -0
  108. package/dist/stories/components/inputs/TextField.stories.d.ts +613 -0
  109. package/dist/theme/light/MuiAccordion.d.ts +3 -0
  110. package/dist/theme/light/MuiAccordionDetails.d.ts +3 -0
  111. package/dist/theme/light/MuiAccordionSummary.d.ts +3 -0
  112. package/dist/theme/light/MuiAlert.d.ts +3 -0
  113. package/dist/theme/light/MuiAutocomplete.d.ts +3 -0
  114. package/dist/theme/light/MuiBreadcrumbs.d.ts +3 -0
  115. package/dist/theme/light/MuiButton.d.ts +3 -0
  116. package/dist/theme/light/MuiButtonBase.d.ts +3 -0
  117. package/dist/theme/light/MuiCard.d.ts +3 -0
  118. package/dist/theme/light/MuiCardContent.d.ts +3 -0
  119. package/dist/theme/light/MuiCardHeader.d.ts +3 -0
  120. package/dist/theme/light/MuiCheckbox.d.ts +3 -0
  121. package/dist/theme/light/MuiChip.d.ts +3 -0
  122. package/dist/theme/light/MuiDialog.d.ts +3 -0
  123. package/dist/theme/light/MuiDivider.d.ts +3 -0
  124. package/dist/theme/light/MuiFormControl.d.ts +3 -0
  125. package/dist/theme/light/MuiFormControlLabel.d.ts +3 -0
  126. package/dist/theme/light/MuiFormGroup.d.ts +3 -0
  127. package/dist/theme/light/MuiFormHelperText.d.ts +3 -0
  128. package/dist/theme/light/MuiFormLabel.d.ts +3 -0
  129. package/dist/theme/light/MuiIconButton.d.ts +3 -0
  130. package/dist/theme/light/MuiInputBase.d.ts +3 -0
  131. package/dist/theme/light/MuiLinearProgress.d.ts +3 -0
  132. package/dist/theme/light/MuiPagination.d.ts +3 -0
  133. package/dist/theme/light/MuiPickersLayout.d.ts +3 -0
  134. package/dist/theme/light/MuiPopover.d.ts +3 -0
  135. package/dist/theme/light/MuiRadio.d.ts +3 -0
  136. package/dist/theme/light/MuiSelect.d.ts +3 -0
  137. package/dist/theme/light/MuiStepper.d.ts +3 -0
  138. package/dist/theme/light/MuiSvgIcon.d.ts +3 -0
  139. package/dist/theme/light/MuiTab.d.ts +3 -0
  140. package/dist/theme/light/MuiTable.d.ts +3 -0
  141. package/dist/theme/light/MuiTableCell.d.ts +3 -0
  142. package/dist/theme/light/MuiTabs.d.ts +3 -0
  143. package/dist/theme/light/MuiTextField.d.ts +3 -0
  144. package/dist/theme/light/MuiTypography.d.ts +3 -0
  145. package/dist/theme/light/index.d.ts +36 -0
  146. package/dist/theme/light/themePalette.d.ts +3 -0
  147. package/dist/theme/palette.d.ts +144 -0
  148. package/package.json +126 -0
  149. package/src/App.tsx +42 -0
  150. package/src/assets/IconProps.ts +5 -0
  151. package/src/assets/Logo.tsx +111 -0
  152. package/src/assets/ThemeColors.ts +7 -0
  153. package/src/assets/icons/ArrowRightIcon.tsx +21 -0
  154. package/src/assets/icons/CalendarBlankIcon.tsx +21 -0
  155. package/src/assets/icons/CaretDoubleLeftBoldIcon.tsx +20 -0
  156. package/src/assets/icons/CaretDoubleRightBoldIcon.tsx +20 -0
  157. package/src/assets/icons/CaretDownBoldIcon.tsx +20 -0
  158. package/src/assets/icons/CaretDownFill.tsx +16 -0
  159. package/src/assets/icons/CaretDownIcon.tsx +21 -0
  160. package/src/assets/icons/CaretLeftBoldIcon.tsx +20 -0
  161. package/src/assets/icons/CaretLeftIcon.tsx +21 -0
  162. package/src/assets/icons/CaretRightBoldIcon.tsx +20 -0
  163. package/src/assets/icons/CheckBoldDisabledIcon.tsx +32 -0
  164. package/src/assets/icons/CheckBoldIcon.tsx +32 -0
  165. package/src/assets/icons/CheckCircleFillIcon.tsx +21 -0
  166. package/src/assets/icons/CheckUncheckedBoldIcon.tsx +28 -0
  167. package/src/assets/icons/CloseIcon.tsx +21 -0
  168. package/src/assets/icons/CollapseChevronsIcon.tsx +21 -0
  169. package/src/assets/icons/ExpandChevronsIcon.tsx +21 -0
  170. package/src/assets/icons/InfoFillIcon.tsx +21 -0
  171. package/src/assets/icons/MagnifyingGlassIcon.tsx +16 -0
  172. package/src/assets/icons/MinusBoldIcon.tsx +21 -0
  173. package/src/assets/icons/PlusBoldIcon.tsx +21 -0
  174. package/src/assets/icons/QuestionFillIcon.tsx +21 -0
  175. package/src/assets/icons/QuestionIcon.tsx +21 -0
  176. package/src/assets/icons/ScrollIcon.tsx +21 -0
  177. package/src/assets/icons/SpinnerGapBoldIcon.tsx +20 -0
  178. package/src/assets/icons/UploadSimpleIcon.tsx +21 -0
  179. package/src/assets/icons/WarningDiamondFillIcon.tsx +21 -0
  180. package/src/assets/icons/WarningFillIcon.tsx +20 -0
  181. package/src/assets/icons/XCircleFillIcon.tsx +16 -0
  182. package/src/assets/resolvePaletteColorPath.ts +13 -0
  183. package/src/components/common/Accordion/hooks/useAccordionController.tsx +42 -0
  184. package/src/components/common/Accordion/index.tsx +52 -0
  185. package/src/components/common/Accordion/types/AccordionControllerState.ts +9 -0
  186. package/src/components/common/Alert/index.tsx +21 -0
  187. package/src/components/common/Breadcrumbs/index.tsx +21 -0
  188. package/src/components/common/Button/ButtonWithPopover.tsx +80 -0
  189. package/src/components/common/Button/index.tsx +21 -0
  190. package/src/components/common/IconWithCircularBackground.tsx +73 -0
  191. package/src/components/common/Popover/index.tsx +20 -0
  192. package/src/components/common/Tabs/Tab.tsx +9 -0
  193. package/src/components/common/Tabs/TabPanel.tsx +28 -0
  194. package/src/components/common/Tabs/Tabs.tsx +9 -0
  195. package/src/components/common/Tabs/TabsWrapper.tsx +33 -0
  196. package/src/components/form/components/FormControlWrapper/components/FieldSuffix.tsx +14 -0
  197. package/src/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.ts +4 -0
  198. package/src/components/form/components/FormControlWrapper/index.tsx +137 -0
  199. package/src/components/form/inputs/Checkbox.tsx +52 -0
  200. package/src/components/form/inputs/CheckboxFormControl.tsx +135 -0
  201. package/src/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.tsx +37 -0
  202. package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +96 -0
  203. package/src/components/form/inputs/Datepicker/index.tsx +149 -0
  204. package/src/components/form/inputs/FileDropzone.tsx +215 -0
  205. package/src/components/form/inputs/FileUpload.tsx +143 -0
  206. package/src/components/form/inputs/NumberStepper.tsx +209 -0
  207. package/src/components/form/inputs/PhoneInput.tsx +28 -0
  208. package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +40 -0
  209. package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +53 -0
  210. package/src/components/form/inputs/PhoneInputFormControl/components/OuterElementType.tsx +13 -0
  211. package/src/components/form/inputs/PhoneInputFormControl/components/PopperComponent.tsx +37 -0
  212. package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +46 -0
  213. package/src/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.ts +14 -0
  214. package/src/components/form/inputs/PhoneInputFormControl/index.test.tsx +47 -0
  215. package/src/components/form/inputs/PhoneInputFormControl/index.tsx +238 -0
  216. package/src/components/form/inputs/PhoneInputFormControl/styles/styles.css +253 -0
  217. package/src/components/form/inputs/PhoneInputFormControl/types/Country.ts +9 -0
  218. package/src/components/form/inputs/RadioButtonGroup.tsx +112 -0
  219. package/src/components/form/inputs/SearchableField.tsx +120 -0
  220. package/src/components/form/inputs/Select.tsx +152 -0
  221. package/src/components/form/inputs/TextField.tsx +59 -0
  222. package/src/components/layout/ServiceFormActions.tsx +90 -0
  223. package/src/components/layout/ServiceFormContainer/components/AccordionCollapseControls.tsx +43 -0
  224. package/src/components/layout/ServiceFormContainer/index.tsx +69 -0
  225. package/src/components/layout/ServiceHeader.tsx +65 -0
  226. package/src/components/layout/ServicePage.tsx +10 -0
  227. package/src/components/layout/ServiceWizardStepper/components/ActiveStepIcon.tsx +15 -0
  228. package/src/components/layout/ServiceWizardStepper/components/CompletedStepIcon.tsx +19 -0
  229. package/src/components/layout/ServiceWizardStepper/components/PendingStepIcon.tsx +15 -0
  230. package/src/components/layout/ServiceWizardStepper/index.tsx +44 -0
  231. package/src/components/shared/storage/CookieStorage.ts +42 -0
  232. package/src/components/storybook/FieldPreview.tsx +12 -0
  233. package/src/components/storybook/FieldPreviewRow.tsx +16 -0
  234. package/src/components/storybook/FieldView.tsx +9 -0
  235. package/src/components/storybook/Fields.tsx +9 -0
  236. package/src/components/storybook/PreviewTitle.tsx +15 -0
  237. package/src/env.tsx +61 -0
  238. package/src/examples/MultipleStepForm/components/AdditionalServicesForm.tsx +29 -0
  239. package/src/examples/MultipleStepForm/components/BasicInformationForm.tsx +5 -0
  240. package/src/examples/MultipleStepForm/components/ServiceDetailsForm.tsx +152 -0
  241. package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +104 -0
  242. package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +59 -0
  243. package/src/examples/MultipleStepForm/index.tsx +104 -0
  244. package/src/examples/MultipleStepForm/types/MultiStepFormModel.ts +10 -0
  245. package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +187 -0
  246. package/src/examples/SingleStepForm/index.tsx +347 -0
  247. package/src/examples/SingleStepForm/types/SingleStepFormModel.ts +23 -0
  248. package/src/i18n/@mui/x-date-pickers/ltLT.ts +82 -0
  249. package/src/i18n/i18n.ts +44 -0
  250. package/src/i18n/namespaces/common/en.json +9 -0
  251. package/src/i18n/namespaces/common/lt.json +9 -0
  252. package/src/i18n/namespaces/input/en.json +53 -0
  253. package/src/i18n/namespaces/input/lt.json +53 -0
  254. package/src/library/icons.ts +25 -0
  255. package/src/library/index.ts +88 -0
  256. package/src/main.tsx +47 -0
  257. package/src/setupTests.ts +1 -0
  258. package/src/stories/components/Accordion.stories.tsx +93 -0
  259. package/src/stories/components/Alert.stories.tsx +40 -0
  260. package/src/stories/components/Breadcrumbs.stories.tsx +32 -0
  261. package/src/stories/components/buttons/Button.stories.tsx +206 -0
  262. package/src/stories/components/buttons/Button.test.ts +17 -0
  263. package/src/stories/components/form/CheckboxFormControl.stories.tsx +160 -0
  264. package/src/stories/components/form/ServiceFormActions.stories.tsx +44 -0
  265. package/src/stories/components/form/ServiceFormContainer.stories.tsx +178 -0
  266. package/src/stories/components/inputs/Checkbox.stories.tsx +214 -0
  267. package/src/stories/components/inputs/DatePicker.stories.tsx +99 -0
  268. package/src/stories/components/inputs/FileUpload.stories.tsx +159 -0
  269. package/src/stories/components/inputs/NumberStepper.stories.tsx +162 -0
  270. package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +155 -0
  271. package/src/stories/components/inputs/SearchableField.stories.tsx +90 -0
  272. package/src/stories/components/inputs/Select.stories.tsx +226 -0
  273. package/src/stories/components/inputs/TextField.stories.tsx +77 -0
  274. package/src/stubs/Component.tsx +9 -0
  275. package/src/styles/index.css +12 -0
  276. package/src/theme/light/MuiAccordion.tsx +50 -0
  277. package/src/theme/light/MuiAccordionDetails.ts +17 -0
  278. package/src/theme/light/MuiAccordionSummary.tsx +35 -0
  279. package/src/theme/light/MuiAlert.tsx +254 -0
  280. package/src/theme/light/MuiAutocomplete.ts +55 -0
  281. package/src/theme/light/MuiBreadcrumbs.tsx +42 -0
  282. package/src/theme/light/MuiButton.tsx +393 -0
  283. package/src/theme/light/MuiButtonBase.tsx +15 -0
  284. package/src/theme/light/MuiCard.tsx +18 -0
  285. package/src/theme/light/MuiCardContent.tsx +19 -0
  286. package/src/theme/light/MuiCardHeader.tsx +15 -0
  287. package/src/theme/light/MuiCheckbox.ts +26 -0
  288. package/src/theme/light/MuiChip.tsx +13 -0
  289. package/src/theme/light/MuiDialog.ts +25 -0
  290. package/src/theme/light/MuiDivider.tsx +12 -0
  291. package/src/theme/light/MuiFormControl.ts +28 -0
  292. package/src/theme/light/MuiFormControlLabel.ts +48 -0
  293. package/src/theme/light/MuiFormGroup.ts +83 -0
  294. package/src/theme/light/MuiFormHelperText.ts +18 -0
  295. package/src/theme/light/MuiFormLabel.ts +48 -0
  296. package/src/theme/light/MuiIconButton.ts +30 -0
  297. package/src/theme/light/MuiInputBase.ts +99 -0
  298. package/src/theme/light/MuiLinearProgress.ts +17 -0
  299. package/src/theme/light/MuiPagination.ts +31 -0
  300. package/src/theme/light/MuiPickersLayout.ts +68 -0
  301. package/src/theme/light/MuiPopover.ts +29 -0
  302. package/src/theme/light/MuiRadio.tsx +65 -0
  303. package/src/theme/light/MuiSelect.tsx +8 -0
  304. package/src/theme/light/MuiStepper.ts +52 -0
  305. package/src/theme/light/MuiSvgIcon.ts +17 -0
  306. package/src/theme/light/MuiTab.tsx +53 -0
  307. package/src/theme/light/MuiTable.ts +20 -0
  308. package/src/theme/light/MuiTableCell.ts +40 -0
  309. package/src/theme/light/MuiTabs.tsx +34 -0
  310. package/src/theme/light/MuiTextField.tsx +12 -0
  311. package/src/theme/light/MuiTypography.tsx +57 -0
  312. package/src/theme/light/index.tsx +138 -0
  313. package/src/theme/light/themePalette.tsx +23 -0
  314. package/src/theme/palette.tsx +77 -0
  315. package/src/types/assets/IconProps.tsx +19 -0
  316. package/src/types/buttons/ButtonProps.tsx +3 -0
  317. package/src/types/cards/CardServiceProps.tsx +9 -0
  318. package/src/types/common/ColorType.tsx +20 -0
  319. package/src/types/common/QuickLinkType.tsx +5 -0
  320. package/src/types/inputs/InputIconProps.tsx +5 -0
  321. package/src/types/lists/ListNewsItemType.tsx +5 -0
  322. package/src/types/lists/ListServicesItemType.tsx +8 -0
  323. package/src/types/order/OrderItemStatusType.tsx +3 -0
  324. package/src/vite-env.d.ts +79 -0
@@ -0,0 +1,21 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function PlusBoldIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ width='16'
8
+ height='16'
9
+ viewBox='0 0 16 16'
10
+ fill='none'
11
+ xmlns='http://www.w3.org/2000/svg'
12
+ >
13
+ <path
14
+ d='M14.25 8C14.25 8.19891 14.171 8.38968 14.0303 8.53033C13.8897 8.67098 13.6989 8.75 13.5 8.75H8.75V13.5C8.75 13.6989 8.67098 13.8897 8.53033 14.0303C8.38968 14.171 8.19891 14.25 8 14.25C7.80109 14.25 7.61032 14.171 7.46967 14.0303C7.32902 13.8897 7.25 13.6989 7.25 13.5V8.75H2.5C2.30109 8.75 2.11032 8.67098 1.96967 8.53033C1.82902 8.38968 1.75 8.19891 1.75 8C1.75 7.80109 1.82902 7.61032 1.96967 7.46967C2.11032 7.32902 2.30109 7.25 2.5 7.25H7.25V2.5C7.25 2.30109 7.32902 2.11032 7.46967 1.96967C7.61032 1.82902 7.80109 1.75 8 1.75C8.19891 1.75 8.38968 1.82902 8.53033 1.96967C8.67098 2.11032 8.75 2.30109 8.75 2.5V7.25H13.5C13.6989 7.25 13.8897 7.32902 14.0303 7.46967C14.171 7.61032 14.25 7.80109 14.25 8Z'
15
+ fill='#1F2733'
16
+ />
17
+ </svg>
18
+ )
19
+ }
20
+
21
+ export default PlusBoldIcon
@@ -0,0 +1,21 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function QuestionFillIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ width='16'
8
+ height='16'
9
+ viewBox='0 0 16 16'
10
+ fill='none'
11
+ xmlns='http://www.w3.org/2000/svg'
12
+ >
13
+ <path
14
+ d='M8 1.5C6.71442 1.5 5.45772 1.88122 4.3888 2.59545C3.31988 3.30968 2.48676 4.32484 1.99479 5.51256C1.50282 6.70028 1.37409 8.00721 1.6249 9.26809C1.8757 10.529 2.49477 11.6872 3.40381 12.5962C4.31285 13.5052 5.47104 14.1243 6.73192 14.3751C7.99279 14.6259 9.29973 14.4972 10.4874 14.0052C11.6752 13.5132 12.6903 12.6801 13.4046 11.6112C14.1188 10.5423 14.5 9.28558 14.5 8C14.4982 6.27665 13.8128 4.62441 12.5942 3.40582C11.3756 2.18722 9.72335 1.50182 8 1.5ZM8 12C7.85167 12 7.70666 11.956 7.58333 11.8736C7.45999 11.7912 7.36386 11.6741 7.30709 11.537C7.25033 11.4 7.23548 11.2492 7.26441 11.1037C7.29335 10.9582 7.36478 10.8246 7.46967 10.7197C7.57456 10.6148 7.7082 10.5434 7.85368 10.5144C7.99917 10.4855 8.14997 10.5003 8.28701 10.5571C8.42406 10.6139 8.54119 10.71 8.6236 10.8333C8.70602 10.9567 8.75 11.1017 8.75 11.25C8.75 11.4489 8.67098 11.6397 8.53033 11.7803C8.38968 11.921 8.19892 12 8 12ZM8.5 8.955V9C8.5 9.13261 8.44732 9.25979 8.35356 9.35355C8.25979 9.44732 8.13261 9.5 8 9.5C7.86739 9.5 7.74022 9.44732 7.64645 9.35355C7.55268 9.25979 7.5 9.13261 7.5 9V8.5C7.5 8.36739 7.55268 8.24021 7.64645 8.14645C7.74022 8.05268 7.86739 8 8 8C8.82688 8 9.5 7.4375 9.5 6.75C9.5 6.0625 8.82688 5.5 8 5.5C7.17313 5.5 6.5 6.0625 6.5 6.75V7C6.5 7.13261 6.44732 7.25979 6.35356 7.35355C6.25979 7.44732 6.13261 7.5 6 7.5C5.86739 7.5 5.74022 7.44732 5.64645 7.35355C5.55268 7.25979 5.5 7.13261 5.5 7V6.75C5.5 5.50938 6.62125 4.5 8 4.5C9.37875 4.5 10.5 5.50938 10.5 6.75C10.5 7.83625 9.64 8.74563 8.5 8.955Z'
15
+ fill='#06A0D4'
16
+ />
17
+ </svg>
18
+ )
19
+ }
20
+
21
+ export default QuestionFillIcon
@@ -0,0 +1,21 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function QuestionIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ width='16'
8
+ height='16'
9
+ viewBox='0 0 16 16'
10
+ fill='none'
11
+ xmlns='http://www.w3.org/2000/svg'
12
+ >
13
+ <path
14
+ d='M8.75 11.25C8.75 11.3983 8.70602 11.5433 8.6236 11.6667C8.54119 11.79 8.42406 11.8861 8.28701 11.9429C8.14997 11.9997 7.99917 12.0145 7.85368 11.9856C7.7082 11.9566 7.57456 11.8852 7.46967 11.7803C7.36478 11.6754 7.29335 11.5418 7.26441 11.3963C7.23548 11.2508 7.25033 11.1 7.30709 10.963C7.36386 10.8259 7.45999 10.7088 7.58333 10.6264C7.70666 10.544 7.85167 10.5 8 10.5C8.19892 10.5 8.38968 10.579 8.53033 10.7197C8.67098 10.8603 8.75 11.0511 8.75 11.25ZM8 4.5C6.62125 4.5 5.5 5.50938 5.5 6.75V7C5.5 7.13261 5.55268 7.25979 5.64645 7.35355C5.74022 7.44732 5.86739 7.5 6 7.5C6.13261 7.5 6.25979 7.44732 6.35356 7.35355C6.44732 7.25979 6.5 7.13261 6.5 7V6.75C6.5 6.0625 7.17313 5.5 8 5.5C8.82688 5.5 9.5 6.0625 9.5 6.75C9.5 7.4375 8.82688 8 8 8C7.86739 8 7.74022 8.05268 7.64645 8.14645C7.55268 8.24021 7.5 8.36739 7.5 8.5V9C7.5 9.13261 7.55268 9.25979 7.64645 9.35355C7.74022 9.44732 7.86739 9.5 8 9.5C8.13261 9.5 8.25979 9.44732 8.35356 9.35355C8.44732 9.25979 8.5 9.13261 8.5 9V8.955C9.64 8.74563 10.5 7.83625 10.5 6.75C10.5 5.50938 9.37875 4.5 8 4.5ZM14.5 8C14.5 9.28558 14.1188 10.5423 13.4046 11.6112C12.6903 12.6801 11.6752 13.5132 10.4874 14.0052C9.29973 14.4972 7.99279 14.6259 6.73192 14.3751C5.47104 14.1243 4.31285 13.5052 3.40381 12.5962C2.49477 11.6872 1.8757 10.529 1.6249 9.26809C1.37409 8.00721 1.50282 6.70028 1.99479 5.51256C2.48676 4.32484 3.31988 3.30968 4.3888 2.59545C5.45772 1.88122 6.71442 1.5 8 1.5C9.72335 1.50182 11.3756 2.18722 12.5942 3.40582C13.8128 4.62441 14.4982 6.27665 14.5 8ZM13.5 8C13.5 6.9122 13.1774 5.84883 12.5731 4.94436C11.9687 4.03989 11.1098 3.33494 10.1048 2.91866C9.09977 2.50238 7.9939 2.39346 6.92701 2.60568C5.86011 2.8179 4.8801 3.34172 4.11092 4.11091C3.34173 4.8801 2.8179 5.86011 2.60568 6.927C2.39347 7.9939 2.50238 9.09977 2.91867 10.1048C3.33495 11.1098 4.0399 11.9687 4.94437 12.5731C5.84884 13.1774 6.91221 13.5 8 13.5C9.45819 13.4983 10.8562 12.9184 11.8873 11.8873C12.9184 10.8562 13.4983 9.45818 13.5 8Z'
15
+ fill='#1F2733'
16
+ />
17
+ </svg>
18
+ )
19
+ }
20
+
21
+ export default QuestionIcon
@@ -0,0 +1,21 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function ScrollIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ width='24'
8
+ height='24'
9
+ viewBox='0 0 24 24'
10
+ fill='none'
11
+ xmlns='http://www.w3.org/2000/svg'
12
+ >
13
+ <path
14
+ d='M9 9.75C9 9.55109 9.07902 9.36032 9.21967 9.21967C9.36032 9.07902 9.55109 9 9.75 9H15.75C15.9489 9 16.1397 9.07902 16.2803 9.21967C16.421 9.36032 16.5 9.55109 16.5 9.75C16.5 9.94891 16.421 10.1397 16.2803 10.2803C16.1397 10.421 15.9489 10.5 15.75 10.5H9.75C9.55109 10.5 9.36032 10.421 9.21967 10.2803C9.07902 10.1397 9 9.94891 9 9.75ZM9.75 13.5H15.75C15.9489 13.5 16.1397 13.421 16.2803 13.2803C16.421 13.1397 16.5 12.9489 16.5 12.75C16.5 12.5511 16.421 12.3603 16.2803 12.2197C16.1397 12.079 15.9489 12 15.75 12H9.75C9.55109 12 9.36032 12.079 9.21967 12.2197C9.07902 12.3603 9 12.5511 9 12.75C9 12.9489 9.07902 13.1397 9.21967 13.2803C9.36032 13.421 9.55109 13.5 9.75 13.5ZM21.75 18C21.75 18.7956 21.4339 19.5587 20.8713 20.1213C20.3087 20.6839 19.5456 21 18.75 21H8.25C7.45435 21 6.69129 20.6839 6.12868 20.1213C5.56607 19.5587 5.25 18.7956 5.25 18V6C5.25 5.60218 5.09196 5.22064 4.81066 4.93934C4.52936 4.65804 4.14782 4.5 3.75 4.5C3.35218 4.5 2.97064 4.65804 2.68934 4.93934C2.40804 5.22064 2.25 5.60218 2.25 6C2.25 6.53813 2.70281 6.90188 2.7075 6.90563C2.83163 7.00115 2.92273 7.13313 2.96804 7.28306C3.01334 7.43299 3.01057 7.59335 2.96011 7.74162C2.90965 7.8899 2.81404 8.01866 2.68668 8.10983C2.55933 8.201 2.40663 8.25002 2.25 8.25C2.08781 8.25028 1.93003 8.19725 1.80094 8.09906C1.69219 8.01937 0.75 7.27594 0.75 6C0.75 5.20435 1.06607 4.44129 1.62868 3.87868C2.19129 3.31607 2.95435 3 3.75 3H16.5C17.2956 3 18.0587 3.31607 18.6213 3.87868C19.1839 4.44129 19.5 5.20435 19.5 6V15.75H20.25C20.4123 15.75 20.5702 15.8026 20.7 15.9C20.8125 15.9806 21.75 16.7241 21.75 18ZM9.02437 16.2638C9.07562 16.1125 9.17342 15.9813 9.30376 15.889C9.4341 15.7968 9.59031 15.7481 9.75 15.75H18V6C18 5.60218 17.842 5.22064 17.5607 4.93934C17.2794 4.65804 16.8978 4.5 16.5 4.5H6.34594C6.61119 4.95535 6.75064 5.47302 6.75 6V18C6.75 18.3978 6.90804 18.7794 7.18934 19.0607C7.47064 19.342 7.85218 19.5 8.25 19.5C8.64782 19.5 9.02936 19.342 9.31066 19.0607C9.59196 18.7794 9.75 18.3978 9.75 18C9.75 17.4619 9.29719 17.0981 9.2925 17.0944C9.16469 17.0029 9.06963 16.8729 9.02136 16.7233C8.97308 16.5738 8.97414 16.4127 9.02437 16.2638ZM20.25 18C20.2406 17.7221 20.1334 17.4565 19.9472 17.25H11.1347C11.2101 17.4929 11.2483 17.7457 11.2481 18C11.2488 18.5267 11.1101 19.0443 10.8459 19.5H18.75C19.1478 19.5 19.5294 19.342 19.8107 19.0607C20.092 18.7794 20.25 18.3978 20.25 18Z'
15
+ fill='white'
16
+ />
17
+ </svg>
18
+ )
19
+ }
20
+
21
+ export default ScrollIcon
@@ -0,0 +1,20 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function SpinnerGapBoldIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ xmlns='http://www.w3.org/2000/svg'
8
+ width='24'
9
+ height='24'
10
+ fill='none'
11
+ >
12
+ <path
13
+ fill='#06A0D4'
14
+ d='M13.1 3v3A1.1 1.1 0 1 1 11 6V3A1.1 1.1 0 1 1 13 3Zm7.9 7.9h-3a1.1 1.1 0 1 0 0 2.2h3a1.1 1.1 0 1 0 0-2.2Zm-4 4.5a1.1 1.1 0 1 0-1.6 1.6l2.2 2.2a1.1 1.1 0 0 0 1.6-1.6L17 15.4ZM12 17a1.1 1.1 0 0 0-1.1 1.1v3a1.1 1.1 0 1 0 2.2 0v-3a1.1 1.1 0 0 0-1.1-1.1Zm-5-1.5-2.2 2.2a1.1 1.1 0 0 0 1.6 1.6L8.6 17A1.1 1.1 0 1 0 7 15.4ZM7 12A1.1 1.1 0 0 0 6 10.9H3A1.1 1.1 0 1 0 3 13h3A1.1 1.1 0 0 0 7.1 12Zm-.7-7.2a1.1 1.1 0 0 0-1.6 1.6L7 8.6A1.1 1.1 0 1 0 8.6 7L6.4 4.8Z'
15
+ />
16
+ </svg>
17
+ )
18
+ }
19
+
20
+ export default SpinnerGapBoldIcon
@@ -0,0 +1,21 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function UploadSimpleIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ width='24'
8
+ height='24'
9
+ viewBox='0 0 24 24'
10
+ fill='none'
11
+ xmlns='http://www.w3.org/2000/svg'
12
+ >
13
+ <path
14
+ d='M21 13.4996V19.4996C21 19.6985 20.921 19.8893 20.7803 20.0299C20.6397 20.1706 20.4489 20.2496 20.25 20.2496H3.75C3.55109 20.2496 3.36032 20.1706 3.21967 20.0299C3.07902 19.8893 3 19.6985 3 19.4996V13.4996C3 13.3007 3.07902 13.1099 3.21967 12.9693C3.36032 12.8286 3.55109 12.7496 3.75 12.7496C3.94891 12.7496 4.13968 12.8286 4.28033 12.9693C4.42098 13.1099 4.5 13.3007 4.5 13.4996V18.7496H19.5V13.4996C19.5 13.3007 19.579 13.1099 19.7197 12.9693C19.8603 12.8286 20.0511 12.7496 20.25 12.7496C20.4489 12.7496 20.6397 12.8286 20.7803 12.9693C20.921 13.1099 21 13.3007 21 13.4996ZM8.78063 7.28024L11.25 4.80993V13.4996C11.25 13.6985 11.329 13.8893 11.4697 14.0299C11.6103 14.1706 11.8011 14.2496 12 14.2496C12.1989 14.2496 12.3897 14.1706 12.5303 14.0299C12.671 13.8893 12.75 13.6985 12.75 13.4996V4.80993L15.2194 7.28024C15.3601 7.42097 15.551 7.50003 15.75 7.50003C15.949 7.50003 16.1399 7.42097 16.2806 7.28024C16.4214 7.13951 16.5004 6.94864 16.5004 6.74961C16.5004 6.55059 16.4214 6.35972 16.2806 6.21899L12.5306 2.46899C12.461 2.39926 12.3783 2.34394 12.2872 2.30619C12.1962 2.26845 12.0986 2.24902 12 2.24902C11.9014 2.24902 11.8038 2.26845 11.7128 2.30619C11.6217 2.34394 11.539 2.39926 11.4694 2.46899L7.71937 6.21899C7.57864 6.35972 7.49958 6.55059 7.49958 6.74961C7.49958 6.94864 7.57864 7.13951 7.71937 7.28024C7.86011 7.42097 8.05098 7.50003 8.25 7.50003C8.44902 7.50003 8.63989 7.42097 8.78063 7.28024Z'
15
+ fill='#10161F'
16
+ />
17
+ </svg>
18
+ )
19
+ }
20
+
21
+ export default UploadSimpleIcon
@@ -0,0 +1,21 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function WarningDiamondFillIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ width='24'
8
+ height='24'
9
+ viewBox='0 0 24 24'
10
+ fill='none'
11
+ xmlns='http://www.w3.org/2000/svg'
12
+ >
13
+ <path
14
+ d='M22.0637 10.9418L13.059 1.93619C12.778 1.65681 12.3978 1.5 12.0015 1.5C11.6052 1.5 11.225 1.65681 10.944 1.93619L1.944 10.9418C1.66463 11.2229 1.50781 11.603 1.50781 11.9993C1.50781 12.3956 1.66463 12.7758 1.944 13.0568L10.9487 22.0624C11.2297 22.3418 11.6099 22.4986 12.0062 22.4986C12.4025 22.4986 12.7826 22.3418 13.0637 22.0624L22.0684 13.0568C22.3478 12.7758 22.5046 12.3956 22.5046 11.9993C22.5046 11.603 22.3478 11.2229 22.0684 10.9418H22.0637ZM11.2515 7.49931C11.2515 7.3004 11.3305 7.10964 11.4712 6.96898C11.6118 6.82833 11.8026 6.74931 12.0015 6.74931C12.2004 6.74931 12.3912 6.82833 12.5318 6.96898C12.6725 7.10964 12.7515 7.3004 12.7515 7.49931V12.7493C12.7515 12.9482 12.6725 13.139 12.5318 13.2796C12.3912 13.4203 12.2004 13.4993 12.0015 13.4993C11.8026 13.4993 11.6118 13.4203 11.4712 13.2796C11.3305 13.139 11.2515 12.9482 11.2515 12.7493V7.49931ZM12.0015 17.2493C11.779 17.2493 11.5615 17.1833 11.3765 17.0597C11.1915 16.9361 11.0473 16.7604 10.9621 16.5548C10.877 16.3493 10.8547 16.1231 10.8981 15.9048C10.9415 15.6866 11.0487 15.4862 11.206 15.3288C11.3633 15.1715 11.5638 15.0643 11.782 15.0209C12.0003 14.9775 12.2265 14.9998 12.432 15.0849C12.6376 15.1701 12.8133 15.3143 12.9369 15.4993C13.0605 15.6843 13.1265 15.9018 13.1265 16.1243C13.1265 16.4227 13.008 16.7088 12.797 16.9198C12.586 17.1308 12.2999 17.2493 12.0015 17.2493Z'
15
+ fill='white'
16
+ />
17
+ </svg>
18
+ )
19
+ }
20
+
21
+ export default WarningDiamondFillIcon
@@ -0,0 +1,20 @@
1
+ import IconProps from '../IconProps'
2
+
3
+ function WarningFillIcon({ className = undefined }: IconProps) {
4
+ return (
5
+ <svg
6
+ className={className}
7
+ width='24'
8
+ height='24'
9
+ viewBox='0 0 24 24'
10
+ fill='none'
11
+ xmlns='http://www.w3.org/2000/svg'
12
+ >
13
+ <path
14
+ d='M22.201 17.6335L14.0026 3.39569C13.7977 3.04687 13.5052 2.75764 13.1541 2.55668C12.803 2.35572 12.4055 2.25 12.001 2.25C11.5965 2.25 11.199 2.35572 10.8479 2.55668C10.4968 2.75764 10.2043 3.04687 9.99944 3.39569L1.80101 17.6335C1.60388 17.9709 1.5 18.3546 1.5 18.7454C1.5 19.1361 1.60388 19.5199 1.80101 19.8572C2.00325 20.2082 2.29523 20.499 2.64697 20.6998C2.99871 20.9006 3.39755 21.0043 3.80257 21.0001H20.1994C20.6041 21.0039 21.0026 20.9001 21.354 20.6993C21.7054 20.4985 21.997 20.2079 22.1991 19.8572C22.3965 19.52 22.5007 19.1364 22.5011 18.7456C22.5014 18.3549 22.3978 17.9711 22.201 17.6335ZM11.251 9.75006C11.251 9.55115 11.33 9.36038 11.4707 9.21973C11.6113 9.07908 11.8021 9.00006 12.001 9.00006C12.1999 9.00006 12.3907 9.07908 12.5313 9.21973C12.672 9.36038 12.751 9.55115 12.751 9.75006V13.5001C12.751 13.699 12.672 13.8897 12.5313 14.0304C12.3907 14.171 12.1999 14.2501 12.001 14.2501C11.8021 14.2501 11.6113 14.171 11.4707 14.0304C11.33 13.8897 11.251 13.699 11.251 13.5001V9.75006ZM12.001 18.0001C11.7785 18.0001 11.561 17.9341 11.376 17.8105C11.191 17.6868 11.0468 17.5111 10.9616 17.3056C10.8765 17.1 10.8542 16.8738 10.8976 16.6556C10.941 16.4374 11.0482 16.2369 11.2055 16.0796C11.3628 15.9222 11.5633 15.8151 11.7815 15.7717C11.9998 15.7283 12.226 15.7505 12.4315 15.8357C12.6371 15.9208 12.8128 16.065 12.9364 16.25C13.06 16.4351 13.126 16.6526 13.126 16.8751C13.126 17.1734 13.0075 17.4596 12.7965 17.6706C12.5855 17.8815 12.2994 18.0001 12.001 18.0001Z'
15
+ fill='#312303'
16
+ />
17
+ </svg>
18
+ )
19
+ }
20
+ export default WarningFillIcon
@@ -0,0 +1,16 @@
1
+ import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'
2
+
3
+ function XCircleFillIcon(props: SvgIconProps) {
4
+ return (
5
+ <SvgIcon {...props}>
6
+ <svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'>
7
+ <path
8
+ d='M12 2.25A9.75 9.75 0 1 0 21.75 12 9.76 9.76 0 0 0 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 1 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.751.751 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z'
9
+ fill='currentColor'
10
+ />
11
+ </svg>
12
+ </SvgIcon>
13
+ )
14
+ }
15
+
16
+ export default XCircleFillIcon
@@ -0,0 +1,13 @@
1
+ import palette from '@/theme/palette'
2
+
3
+ import { ThemeColors } from './ThemeColors'
4
+
5
+ const resolvePaletteColorPath = (path: ThemeColors | 'white') => {
6
+ if (!path) return palette.primary.main
7
+
8
+ const resolved = path.split('.').reduce((a: any, b: any) => a[b], palette)
9
+
10
+ return resolved ?? path
11
+ }
12
+
13
+ export default resolvePaletteColorPath
@@ -0,0 +1,42 @@
1
+ import React from 'react'
2
+
3
+ import { AccordionControllerState } from '../types/AccordionControllerState'
4
+
5
+ type Props = {
6
+ initialState: AccordionControllerState
7
+ }
8
+
9
+ function useAccordionController({ initialState }: Props) {
10
+ const [state, setState] = React.useState<AccordionControllerState>(initialState)
11
+
12
+ const toggleAccordion = (id: string, isExpanded: boolean) => {
13
+ const nextState = { ...state }
14
+ if (id in nextState) nextState[id].expanded = isExpanded
15
+ setState(nextState)
16
+ }
17
+
18
+ const collapseAll = () => {
19
+ const nextState = { ...state }
20
+ Object.keys(nextState).forEach((k) => {
21
+ nextState[k].expanded = false
22
+ })
23
+ setState(nextState)
24
+ }
25
+
26
+ const expandAll = () => {
27
+ const nextState = { ...state }
28
+ Object.keys(nextState).forEach((k) => {
29
+ nextState[k].expanded = true
30
+ })
31
+ setState(nextState)
32
+ }
33
+
34
+ return {
35
+ collapseAll,
36
+ expandAll,
37
+ state,
38
+ toggleAccordion,
39
+ }
40
+ }
41
+
42
+ export default useAccordionController
@@ -0,0 +1,52 @@
1
+ /* eslint-disable react/prop-types */
2
+ import { Accordion, AccordionDetails, AccordionSummary } from '@mui/material'
3
+ import React from 'react'
4
+
5
+ import CaretDownIcon from '@/assets/icons/CaretDownIcon'
6
+
7
+ import useAccordionController from './hooks/useAccordionController'
8
+
9
+ type Props = React.ComponentProps<typeof Accordion> & {
10
+ id: string
11
+ controller: ReturnType<typeof useAccordionController>
12
+ }
13
+
14
+ function RcSesAccordion(props: Props) {
15
+ const { children, controller, id, onChange, ...accordionProps } = props
16
+ const { toggleAccordion, state } = controller
17
+
18
+ const { canToggle, disabled, expanded, title } =
19
+ id in state
20
+ ? state[id]
21
+ : { canToggle: true, disabled: false, expanded: false, title: '' }
22
+
23
+ const handleOnChange = (
24
+ event: React.SyntheticEvent<Element, Event>,
25
+ isExpanded: boolean,
26
+ ) => {
27
+ if (canToggle === false) return
28
+
29
+ toggleAccordion(id, isExpanded)
30
+ if (onChange) onChange(event, isExpanded)
31
+ }
32
+
33
+ return (
34
+ <Accordion
35
+ disabled={disabled === true}
36
+ expanded={expanded === true}
37
+ {...accordionProps}
38
+ onChange={handleOnChange}
39
+ >
40
+ <AccordionSummary
41
+ id={`${id}-header`}
42
+ aria-controls={`${id}-content`}
43
+ expandIcon={canToggle === false ? null : <CaretDownIcon />}
44
+ >
45
+ {title}
46
+ </AccordionSummary>
47
+ <AccordionDetails>{children}</AccordionDetails>
48
+ </Accordion>
49
+ )
50
+ }
51
+
52
+ export default RcSesAccordion
@@ -0,0 +1,9 @@
1
+ export type AccordionState = {
2
+ canToggle?: boolean | undefined
3
+ disabled?: boolean | undefined
4
+ expanded: boolean | undefined
5
+ state: 'active' | 'completed' | 'pending'
6
+ title: string
7
+ }
8
+
9
+ export type AccordionControllerState = Record<string, AccordionState>
@@ -0,0 +1,21 @@
1
+ import { Alert as MuiAlert, AlertProps as MuiAlertProps } from '@mui/material'
2
+ import { useTranslation } from 'react-i18next'
3
+
4
+ const defaultProps: Partial<MuiAlertProps> = {
5
+ elevation: 0,
6
+ variant: 'outlined',
7
+ }
8
+
9
+ function RcSesAlert(props: MuiAlertProps) {
10
+ const { t } = useTranslation('input', { keyPrefix: 'components.RcSesAlert' })
11
+
12
+ const { children } = props
13
+
14
+ return (
15
+ <MuiAlert {...defaultProps} {...props} closeText={t('close')}>
16
+ {children}
17
+ </MuiAlert>
18
+ )
19
+ }
20
+
21
+ export default RcSesAlert
@@ -0,0 +1,21 @@
1
+ import { Link, Breadcrumbs as MuiBreadcrumbs } from '@mui/material'
2
+
3
+ export type BreadcrumbItem = { label: string; path: string }
4
+
5
+ type Props = {
6
+ path: BreadcrumbItem[]
7
+ }
8
+
9
+ function RcSesBreadcrumbs({ path }: Props) {
10
+ return (
11
+ <MuiBreadcrumbs>
12
+ {path.map((step) => (
13
+ <Link key={step.path} underline='hover' color='inherit' href={step.path}>
14
+ {step.label}
15
+ </Link>
16
+ ))}
17
+ </MuiBreadcrumbs>
18
+ )
19
+ }
20
+
21
+ export default RcSesBreadcrumbs
@@ -0,0 +1,80 @@
1
+ import type { ButtonProps as MuiButtonProps } from '@mui/material/Button'
2
+ import { PopoverProps } from '@mui/material/Popover'
3
+ import React from 'react'
4
+ import { useTranslation } from 'react-i18next'
5
+
6
+ import QuestionFillIcon from '@/assets/icons/QuestionFillIcon'
7
+ import QuestionIcon from '@/assets/icons/QuestionIcon'
8
+ import palette from '@/theme/palette'
9
+
10
+ import RcSesButton from '.'
11
+ import RcSesPopover from '../Popover'
12
+
13
+ type Props = MuiButtonProps & {
14
+ popoverHeader?: React.ReactNode
15
+ popoverContent?: React.ReactNode
16
+ slotProps?: {
17
+ popover?: Partial<PopoverProps>
18
+ }
19
+ }
20
+ function RcSesButtonWithPopover(props: Props) {
21
+ const { t } = useTranslation('input', {
22
+ keyPrefix: 'components.RcSesButtonWithPopover',
23
+ })
24
+ const { children, popoverHeader, popoverContent, slotProps, ...buttonProps } = props
25
+
26
+ const [anchorEl, setAnchorEl] = React.useState<HTMLButtonElement | null>(null)
27
+ const [hovering, setHovering] = React.useState<boolean>(false)
28
+
29
+ const handleClick = (event: React.MouseEvent<HTMLButtonElement>) =>
30
+ setAnchorEl(event.currentTarget)
31
+
32
+ const handleClose = () => setAnchorEl(null)
33
+
34
+ const open = Boolean(anchorEl)
35
+ const id = open ? 'simple-popover' : undefined
36
+
37
+ return (
38
+ <>
39
+ <RcSesButton
40
+ aria-label={t('label')}
41
+ {...buttonProps}
42
+ onClick={handleClick}
43
+ onMouseEnter={() => setHovering(true)}
44
+ onMouseLeave={() => setHovering(false)}
45
+ size='small'
46
+ sx={{
47
+ backgroundColor: 'transparent !important',
48
+ height: 'unset',
49
+ minWidth: 'unset',
50
+ p: 0,
51
+ 'svg path': {
52
+ fill: palette.grey['900'],
53
+ },
54
+ ':hover': {
55
+ backgroundColor: 'transparent',
56
+ 'svg path': {
57
+ fill: palette.primary['500'],
58
+ },
59
+ },
60
+ ...buttonProps?.sx,
61
+ }}
62
+ >
63
+ {children ?? (hovering ? <QuestionFillIcon /> : <QuestionIcon />)}
64
+ </RcSesButton>
65
+
66
+ <RcSesPopover
67
+ id={id}
68
+ open={open}
69
+ anchorEl={anchorEl}
70
+ onClose={handleClose}
71
+ header={popoverHeader}
72
+ {...slotProps?.popover}
73
+ >
74
+ {popoverContent}
75
+ </RcSesPopover>
76
+ </>
77
+ )
78
+ }
79
+
80
+ export default RcSesButtonWithPopover
@@ -0,0 +1,21 @@
1
+ import { Button as MuiButton, ButtonProps as MuiButtonProps } from '@mui/material'
2
+
3
+ const defaultProps: Partial<MuiButtonProps> = {
4
+ color: 'primary',
5
+ disabled: false,
6
+ variant: 'contained',
7
+ }
8
+
9
+ type Props = MuiButtonProps & { to?: string }
10
+
11
+ function RcSesButton(props: Props) {
12
+ const { children, ...rest } = props
13
+
14
+ return (
15
+ <MuiButton {...defaultProps} {...rest}>
16
+ {children}
17
+ </MuiButton>
18
+ )
19
+ }
20
+
21
+ export default RcSesButton
@@ -0,0 +1,73 @@
1
+ import { Box, styled } from '@mui/material'
2
+ import React, { memo, useMemo } from 'react'
3
+
4
+ import IconProps from '@/assets/IconProps'
5
+ import resolvePaletteColorPath from '@/assets/resolvePaletteColorPath'
6
+ import palette from '@/theme/palette'
7
+
8
+ type Shade = keyof (typeof palette)[keyof typeof palette]
9
+
10
+ type Props = {
11
+ bgShade?: Shade | 'white'
12
+ color?: keyof typeof palette
13
+ Icon: React.JSXElementConstructor<IconProps>
14
+ iconShade?: Shade | 'white'
15
+ size?: 'tiny' | 'small' | 'medium' | 'mediumLarge' | 'large'
16
+ }
17
+ function IconWithCircularBackground(props: Props) {
18
+ const { Icon } = props
19
+
20
+ const bgShade: Props['bgShade'] = props?.bgShade ?? '50'
21
+ const iconShade: Props['iconShade'] = props?.iconShade ?? '600'
22
+
23
+ const color = props?.color ?? 'primary'
24
+ const size = props?.size ?? 'medium'
25
+
26
+ const sizes = useMemo<[string, string]>(() => {
27
+ switch (size) {
28
+ case 'tiny':
29
+ return ['1.5rem', '1rem']
30
+ case 'small':
31
+ return ['2rem', '1rem']
32
+ case 'medium':
33
+ return ['2.5rem', '1.5rem']
34
+ case 'mediumLarge':
35
+ return ['3.5rem', '2rem']
36
+ case 'large':
37
+ return ['4.25rem', '2.25rem']
38
+ default:
39
+ return ['2.5rem', '1.5rem']
40
+ }
41
+ }, [size])
42
+
43
+ const StyledIcon = styled(Icon)({
44
+ height: sizes[1],
45
+ width: sizes[1],
46
+ })
47
+
48
+ return (
49
+ <Box
50
+ className='IconWithCircularBackground-root'
51
+ sx={{
52
+ alignItems: 'center',
53
+ backgroundColor: bgShade === 'white' ? 'white' : palette[color][bgShade],
54
+ borderRadius: '50%',
55
+ display: 'flex',
56
+ justifyContent: 'center',
57
+ height: sizes[0],
58
+ width: sizes[0],
59
+ aspectRatio: '1 / 1',
60
+
61
+ 'svg path': {
62
+ fill: resolvePaletteColorPath(
63
+ iconShade === 'white' ? 'white' : `${color}.${iconShade}`,
64
+ ),
65
+ },
66
+ }}
67
+ >
68
+ <StyledIcon />
69
+ </Box>
70
+ )
71
+ }
72
+
73
+ export default memo(IconWithCircularBackground)
@@ -0,0 +1,20 @@
1
+ import { Box, Popover } from '@mui/material'
2
+ import type { PopoverProps } from '@mui/material'
3
+
4
+ type Props = Exclude<PopoverProps, 'content'> & {
5
+ header?: React.ReactNode
6
+ }
7
+ function RcSesPopover(props: Props) {
8
+ const { header, children, ...popoverProps } = props
9
+
10
+ return (
11
+ <Popover {...popoverProps}>
12
+ {!!header && (
13
+ <Box sx={{ fontWeight: 600, lineHeight: '1.12rem', mb: 1 }}>{header}</Box>
14
+ )}
15
+ {children}
16
+ </Popover>
17
+ )
18
+ }
19
+
20
+ export default RcSesPopover
@@ -0,0 +1,9 @@
1
+ import { Tab, TabProps } from '@mui/material'
2
+
3
+ function RcSesTab(props: TabProps): React.ReactNode {
4
+ const { children, ...tabProps } = props
5
+
6
+ return <Tab {...tabProps}>{children}</Tab>
7
+ }
8
+
9
+ export default RcSesTab
@@ -0,0 +1,28 @@
1
+ import { Box } from '@mui/material'
2
+ import React from 'react'
3
+
4
+ type Props = {
5
+ activeTab: number
6
+ children?: React.ReactNode
7
+ index: number
8
+ }
9
+ function RcSesTabPanel({ activeTab, children, index, ...rest }: Props) {
10
+ return (
11
+ <Box
12
+ role='tabpanel'
13
+ hidden={activeTab !== index}
14
+ id={`rc-ses-tab-panel-${index}`}
15
+ aria-labelledby={`rc-ses-tab--${index}`}
16
+ sx={{
17
+ backgroundColor: 'white',
18
+ borderBottomLeftRadius: '.375rem',
19
+ borderBottomRightRadius: '.375rem',
20
+ }}
21
+ {...rest}
22
+ >
23
+ {activeTab === index && children}
24
+ </Box>
25
+ )
26
+ }
27
+
28
+ export default RcSesTabPanel
@@ -0,0 +1,9 @@
1
+ import { Tabs, TabsProps } from '@mui/material'
2
+
3
+ function RcSesTabs(props: TabsProps): React.ReactNode {
4
+ const { children, ...tabsProps } = props
5
+
6
+ return <Tabs {...tabsProps}>{children}</Tabs>
7
+ }
8
+
9
+ export default RcSesTabs
@@ -0,0 +1,33 @@
1
+ import { Box, Typography } from '@mui/material'
2
+ import React from 'react'
3
+
4
+ import palette from '@/theme/palette'
5
+
6
+ type Props = {
7
+ children?: React.ReactNode
8
+ heading?: React.ReactNode
9
+ }
10
+ function RcSesTabsWrapper({ children, heading }: Props) {
11
+ return (
12
+ <Box
13
+ sx={{
14
+ backgroundColor: palette.grey['50'],
15
+ borderColor: palette.grey['400'],
16
+ borderRadius: '.375rem',
17
+ borderStyle: 'solid',
18
+ borderWidth: 1,
19
+ pt: 2,
20
+ width: '100%',
21
+ }}
22
+ >
23
+ {!!heading && (
24
+ <Typography variant='h4' sx={{ px: 3, pb: 2 }}>
25
+ {heading}
26
+ </Typography>
27
+ )}
28
+ {children}
29
+ </Box>
30
+ )
31
+ }
32
+
33
+ export default RcSesTabsWrapper
@@ -0,0 +1,14 @@
1
+ import { Box, SxProps, Theme } from '@mui/material'
2
+
3
+ type Props = {
4
+ children: React.ReactNode
5
+ sx?: SxProps<Theme>
6
+ }
7
+
8
+ function FieldSuffix({ children, sx = undefined }: Props) {
9
+ if (!children) return null
10
+
11
+ return <Box sx={sx}>{children}</Box>
12
+ }
13
+
14
+ export default FieldSuffix