@codezee/sixtify-brahma 0.0.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 (295) hide show
  1. package/.github/workflows/check-build.yml +41 -0
  2. package/.github/workflows/deploy-on-npm.yml +43 -0
  3. package/.husky/commit-msg +4 -0
  4. package/.husky/pre-commit +4 -0
  5. package/.husky/pre-push +6 -0
  6. package/.lintstagedrc +5 -0
  7. package/.prettierignore +12 -0
  8. package/.prettierrc +22 -0
  9. package/.vscode/extensions.json +22 -0
  10. package/.vscode/settings.json +17 -0
  11. package/README.md +90 -0
  12. package/apps/docs/.eslintrc.cjs +9 -0
  13. package/apps/docs/.storybook/main.ts +23 -0
  14. package/apps/docs/.storybook/manager.ts +6 -0
  15. package/apps/docs/.storybook/preview.tsx +27 -0
  16. package/apps/docs/.storybook/theme.ts +8 -0
  17. package/apps/docs/next-env.d.ts +5 -0
  18. package/apps/docs/next.config.mjs +4 -0
  19. package/apps/docs/package.json +43 -0
  20. package/apps/docs/public/globals.css +26 -0
  21. package/apps/docs/stories/Actions/Actions.stories.tsx +49 -0
  22. package/apps/docs/stories/AgGrid/AgGrid.stories.tsx +70 -0
  23. package/apps/docs/stories/AppBar/AppBar.stories.tsx +39 -0
  24. package/apps/docs/stories/Breadcrumbs/Breadcrumbs.stories.tsx +37 -0
  25. package/apps/docs/stories/Button/ButtonGroup.stories.tsx +120 -0
  26. package/apps/docs/stories/Button/button.stories.tsx +99 -0
  27. package/apps/docs/stories/Card/AttendanceCard.stories.tsx +36 -0
  28. package/apps/docs/stories/Card/Card.stories.tsx +39 -0
  29. package/apps/docs/stories/Charts/PieChart.stories.tsx +265 -0
  30. package/apps/docs/stories/Chips/Chip.stories.tsx +141 -0
  31. package/apps/docs/stories/Chips/ChipWithBorder.stories.tsx +18 -0
  32. package/apps/docs/stories/Chips/FilterPill.stories.tsx +24 -0
  33. package/apps/docs/stories/Color/Color.stories.tsx +14 -0
  34. package/apps/docs/stories/Dialog/ButtomDialog.stories.tsx +48 -0
  35. package/apps/docs/stories/Dialog/DeleteDialog.stories.tsx +32 -0
  36. package/apps/docs/stories/Dialog/Dialog.stories.tsx +48 -0
  37. package/apps/docs/stories/Drawer/Drawer.stories.tsx +94 -0
  38. package/apps/docs/stories/FilterList/FilterList.stories.tsx +88 -0
  39. package/apps/docs/stories/FilterList/FilterListV2.stories.tsx +92 -0
  40. package/apps/docs/stories/FormFields/AutoComplete.stories.tsx +90 -0
  41. package/apps/docs/stories/FormFields/CheckBox.stories.tsx +64 -0
  42. package/apps/docs/stories/FormFields/DatePicker.stories.tsx +100 -0
  43. package/apps/docs/stories/FormFields/DateRangePicker.stories.tsx +39 -0
  44. package/apps/docs/stories/FormFields/DateTimePicker.stories.tsx +39 -0
  45. package/apps/docs/stories/FormFields/FileUpload.stories.tsx +83 -0
  46. package/apps/docs/stories/FormFields/ImageUpload.stories.tsx +69 -0
  47. package/apps/docs/stories/FormFields/ListItemButton.stories.tsx +59 -0
  48. package/apps/docs/stories/FormFields/PhoneInputField.stories.tsx +84 -0
  49. package/apps/docs/stories/FormFields/RadioGroupField.stories.tsx +172 -0
  50. package/apps/docs/stories/FormFields/SearchField.stories.tsx +74 -0
  51. package/apps/docs/stories/FormFields/TextField.stories.tsx +141 -0
  52. package/apps/docs/stories/FormFields/TimeField.stories.tsx +84 -0
  53. package/apps/docs/stories/FormFields/TimePicker.stories.tsx +84 -0
  54. package/apps/docs/stories/Indicator/Indicator.stories.tsx +33 -0
  55. package/apps/docs/stories/Indicator/SeverityIndicator.stories.tsx +27 -0
  56. package/apps/docs/stories/Layouts/FormRow.stories.tsx +45 -0
  57. package/apps/docs/stories/PadBox/PadBox.stories.tsx +49 -0
  58. package/apps/docs/stories/Stepper/Stepper.stories.tsx +110 -0
  59. package/apps/docs/stories/Stepper/StepperV2.stories.tsx +44 -0
  60. package/apps/docs/stories/Timeline/AttendanceStatus.stories.tsx +29 -0
  61. package/apps/docs/stories/Timeline/Timeline.stories.tsx +38 -0
  62. package/apps/docs/stories/Tooltip/Tooltip.stories.tsx +28 -0
  63. package/apps/docs/stories/UserProfileMenu/UserProfileMenu.stories.tsx +112 -0
  64. package/apps/docs/tsconfig.json +19 -0
  65. package/commitlint.config.cjs +6 -0
  66. package/index.ts +1 -0
  67. package/package.json +85 -0
  68. package/packages/eslint-config/README.md +3 -0
  69. package/packages/eslint-config/library.js +88 -0
  70. package/packages/eslint-config/next.js +85 -0
  71. package/packages/eslint-config/package.json +19 -0
  72. package/packages/eslint-config/react-internal.js +89 -0
  73. package/packages/shared-components/.eslintrc.js +10 -0
  74. package/packages/shared-components/package.json +51 -0
  75. package/packages/shared-components/src/Actions/AddAction.tsx +16 -0
  76. package/packages/shared-components/src/Actions/CalendarAction.tsx +16 -0
  77. package/packages/shared-components/src/Actions/ConfigureAction.tsx +16 -0
  78. package/packages/shared-components/src/Actions/DeleteAction.tsx +16 -0
  79. package/packages/shared-components/src/Actions/DownloadAction.tsx +16 -0
  80. package/packages/shared-components/src/Actions/EditAction.tsx +16 -0
  81. package/packages/shared-components/src/Actions/ExportAction.tsx +16 -0
  82. package/packages/shared-components/src/Actions/FilterAction.tsx +16 -0
  83. package/packages/shared-components/src/Actions/HistoryAction.tsx +16 -0
  84. package/packages/shared-components/src/Actions/ImportAction.tsx +16 -0
  85. package/packages/shared-components/src/Actions/ViewAction.tsx +16 -0
  86. package/packages/shared-components/src/Actions/index.ts +11 -0
  87. package/packages/shared-components/src/AgGrid/ActionCell/ActionCell.tsx +57 -0
  88. package/packages/shared-components/src/AgGrid/ActionCell/Popover.tsx +32 -0
  89. package/packages/shared-components/src/AgGrid/AgGrid.tsx +93 -0
  90. package/packages/shared-components/src/AgGrid/LoadingCell.tsx +5 -0
  91. package/packages/shared-components/src/AgGrid/index.ts +3 -0
  92. package/packages/shared-components/src/AppBar/AppBar.styled.tsx +33 -0
  93. package/packages/shared-components/src/AppBar/AppBar.tsx +20 -0
  94. package/packages/shared-components/src/AppBar/index.ts +1 -0
  95. package/packages/shared-components/src/Breadcrumbs/Breadcrumbs.tsx +76 -0
  96. package/packages/shared-components/src/Breadcrumbs/index.ts +1 -0
  97. package/packages/shared-components/src/Button/ActionButton.tsx +38 -0
  98. package/packages/shared-components/src/Button/Button.tsx +19 -0
  99. package/packages/shared-components/src/Button/ButtonGroup.tsx +37 -0
  100. package/packages/shared-components/src/Button/index.ts +3 -0
  101. package/packages/shared-components/src/Card/AttendanceCard.tsx +51 -0
  102. package/packages/shared-components/src/Card/Card.tsx +34 -0
  103. package/packages/shared-components/src/Card/CardItem/CardItem.tsx +33 -0
  104. package/packages/shared-components/src/Card/CardItem/CardItemValue.tsx +98 -0
  105. package/packages/shared-components/src/Card/CardItem/index.ts +2 -0
  106. package/packages/shared-components/src/Card/ProfileCard/ProfileCard.tsx +40 -0
  107. package/packages/shared-components/src/Card/ProfileCard/ProfileCardItem/ProfileCardBody.tsx +53 -0
  108. package/packages/shared-components/src/Card/ProfileCard/ProfileCardItem/ProfileCardHeader.tsx +94 -0
  109. package/packages/shared-components/src/Card/index.ts +6 -0
  110. package/packages/shared-components/src/Charts/PieChart.tsx +81 -0
  111. package/packages/shared-components/src/Charts/Skeleton.tsx +36 -0
  112. package/packages/shared-components/src/Charts/index.ts +1 -0
  113. package/packages/shared-components/src/Chips/Chip.tsx +26 -0
  114. package/packages/shared-components/src/Chips/ChipWithBorder.tsx +39 -0
  115. package/packages/shared-components/src/Chips/FilterPill.tsx +47 -0
  116. package/packages/shared-components/src/Chips/index.ts +3 -0
  117. package/packages/shared-components/src/Dialog/BottomDialog.styled.tsx +28 -0
  118. package/packages/shared-components/src/Dialog/BottomDialog.tsx +37 -0
  119. package/packages/shared-components/src/Dialog/DeleteDialog.tsx +48 -0
  120. package/packages/shared-components/src/Dialog/Dialog.tsx +61 -0
  121. package/packages/shared-components/src/Dialog/index.ts +3 -0
  122. package/packages/shared-components/src/Drawer/Bullet.tsx +12 -0
  123. package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerMenuItem.tsx +57 -0
  124. package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerMenuItemList.tsx +109 -0
  125. package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.tsx +128 -0
  126. package/packages/shared-components/src/Drawer/CloseDrawer/Popover.tsx +45 -0
  127. package/packages/shared-components/src/Drawer/CloseDrawer/Popper.tsx +43 -0
  128. package/packages/shared-components/src/Drawer/Drawer.styled.tsx +63 -0
  129. package/packages/shared-components/src/Drawer/Drawer.tsx +56 -0
  130. package/packages/shared-components/src/Drawer/MenuItem.tsx +75 -0
  131. package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerCollapse.tsx +13 -0
  132. package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerMenuItem.tsx +48 -0
  133. package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerMenuItemList.tsx +232 -0
  134. package/packages/shared-components/src/Drawer/index.ts +1 -0
  135. package/packages/shared-components/src/FilterList/DateRangePickerPopUp.tsx +123 -0
  136. package/packages/shared-components/src/FilterList/FilterList.tsx +180 -0
  137. package/packages/shared-components/src/FilterList/FilterListV2.tsx +661 -0
  138. package/packages/shared-components/src/FilterList/FilterPopup.tsx +165 -0
  139. package/packages/shared-components/src/FilterList/FilterPopupWrapper.tsx +110 -0
  140. package/packages/shared-components/src/FilterList/FilterTypeWrapper.tsx +60 -0
  141. package/packages/shared-components/src/FilterList/GetFilterPopupComponent.tsx +76 -0
  142. package/packages/shared-components/src/FilterList/getFormData.ts +29 -0
  143. package/packages/shared-components/src/FilterList/index.ts +6 -0
  144. package/packages/shared-components/src/FormFields/Autocomplete/Autocomplete.tsx +509 -0
  145. package/packages/shared-components/src/FormFields/Autocomplete/Skeleton.tsx +26 -0
  146. package/packages/shared-components/src/FormFields/Autocomplete/index.ts +1 -0
  147. package/packages/shared-components/src/FormFields/CheckBox/CheckBox.styled.tsx +76 -0
  148. package/packages/shared-components/src/FormFields/CheckBox/CheckBox.tsx +44 -0
  149. package/packages/shared-components/src/FormFields/CheckBox/Skeleton.tsx +12 -0
  150. package/packages/shared-components/src/FormFields/CheckBox/index.ts +1 -0
  151. package/packages/shared-components/src/FormFields/DatePicker/DatePicker.tsx +217 -0
  152. package/packages/shared-components/src/FormFields/DatePicker/Skeleton.tsx +28 -0
  153. package/packages/shared-components/src/FormFields/DatePicker/index.ts +1 -0
  154. package/packages/shared-components/src/FormFields/DateRangePicker/DateRangePicker.tsx +97 -0
  155. package/packages/shared-components/src/FormFields/DateRangePicker/Skeleton.tsx +38 -0
  156. package/packages/shared-components/src/FormFields/DateRangePicker/index.ts +1 -0
  157. package/packages/shared-components/src/FormFields/DateTimePicker/DateTimePicker.tsx +253 -0
  158. package/packages/shared-components/src/FormFields/DateTimePicker/Skeleton.tsx +24 -0
  159. package/packages/shared-components/src/FormFields/DateTimePicker/index.ts +1 -0
  160. package/packages/shared-components/src/FormFields/FileUpload/FileNames.tsx +32 -0
  161. package/packages/shared-components/src/FormFields/FileUpload/FileUpload.styled.tsx +31 -0
  162. package/packages/shared-components/src/FormFields/FileUpload/FileUpload.tsx +160 -0
  163. package/packages/shared-components/src/FormFields/FileUpload/Skeleton.tsx +21 -0
  164. package/packages/shared-components/src/FormFields/FileUpload/index.ts +2 -0
  165. package/packages/shared-components/src/FormFields/ImageUpload/ImageUpload.styled.tsx +20 -0
  166. package/packages/shared-components/src/FormFields/ImageUpload/ImageUpload.tsx +181 -0
  167. package/packages/shared-components/src/FormFields/ImageUpload/ImageUploadView.tsx +65 -0
  168. package/packages/shared-components/src/FormFields/ImageUpload/PhotoCaptureDialog.tsx +74 -0
  169. package/packages/shared-components/src/FormFields/ImageUpload/Skeleton.tsx +31 -0
  170. package/packages/shared-components/src/FormFields/ImageUpload/index.ts +2 -0
  171. package/packages/shared-components/src/FormFields/ListItemButton/ListItemButton.styled.tsx +25 -0
  172. package/packages/shared-components/src/FormFields/ListItemButton/ListItemButton.tsx +52 -0
  173. package/packages/shared-components/src/FormFields/ListItemButton/index.ts +1 -0
  174. package/packages/shared-components/src/FormFields/PasswordField/PasswordField.tsx +50 -0
  175. package/packages/shared-components/src/FormFields/PasswordField/index.ts +1 -0
  176. package/packages/shared-components/src/FormFields/PhoneInputField/PhoneInputField.tsx +108 -0
  177. package/packages/shared-components/src/FormFields/PhoneInputField/Skeleton.tsx +31 -0
  178. package/packages/shared-components/src/FormFields/PhoneInputField/index.ts +1 -0
  179. package/packages/shared-components/src/FormFields/RadioGroupField/RadioGroupField.tsx +105 -0
  180. package/packages/shared-components/src/FormFields/RadioGroupField/Skeleton.tsx +26 -0
  181. package/packages/shared-components/src/FormFields/RadioGroupField/index.ts +1 -0
  182. package/packages/shared-components/src/FormFields/SearchField/SearchField.tsx +21 -0
  183. package/packages/shared-components/src/FormFields/SearchField/index.ts +1 -0
  184. package/packages/shared-components/src/FormFields/Switch/Skeleton.tsx +12 -0
  185. package/packages/shared-components/src/FormFields/Switch/Switch.tsx +33 -0
  186. package/packages/shared-components/src/FormFields/Switch/index.ts +1 -0
  187. package/packages/shared-components/src/FormFields/TextField/Skeleton.tsx +31 -0
  188. package/packages/shared-components/src/FormFields/TextField/TextField.tsx +167 -0
  189. package/packages/shared-components/src/FormFields/TextField/index.ts +1 -0
  190. package/packages/shared-components/src/FormFields/TimeField/Skeleton.tsx +24 -0
  191. package/packages/shared-components/src/FormFields/TimeField/TimeField.tsx +120 -0
  192. package/packages/shared-components/src/FormFields/TimeField/index.ts +1 -0
  193. package/packages/shared-components/src/FormFields/TimePicker/Skeleton.tsx +24 -0
  194. package/packages/shared-components/src/FormFields/TimePicker/TimePicker.tsx +168 -0
  195. package/packages/shared-components/src/FormFields/TimePicker/index.ts +1 -0
  196. package/packages/shared-components/src/FormFields/index.ts +16 -0
  197. package/packages/shared-components/src/Indicator/Indicator.tsx +18 -0
  198. package/packages/shared-components/src/Indicator/SeverityIndicator.tsx +34 -0
  199. package/packages/shared-components/src/Indicator/index.ts +2 -0
  200. package/packages/shared-components/src/Layouts/FormContainer.tsx +6 -0
  201. package/packages/shared-components/src/Layouts/FormGridLayout.tsx +27 -0
  202. package/packages/shared-components/src/Layouts/FormRow/FormRow.styled.tsx +47 -0
  203. package/packages/shared-components/src/Layouts/FormRow/FormRow.tsx +20 -0
  204. package/packages/shared-components/src/Layouts/FormRow/index.ts +1 -0
  205. package/packages/shared-components/src/Layouts/FormSection.tsx +22 -0
  206. package/packages/shared-components/src/Layouts/index.ts +4 -0
  207. package/packages/shared-components/src/Loader/FacebookCircularProgress.tsx +41 -0
  208. package/packages/shared-components/src/Loader/index.ts +1 -0
  209. package/packages/shared-components/src/PadBox/PadBox.tsx +21 -0
  210. package/packages/shared-components/src/PadBox/index.ts +1 -0
  211. package/packages/shared-components/src/Pagination/Pagination.tsx +42 -0
  212. package/packages/shared-components/src/Pagination/index.ts +1 -0
  213. package/packages/shared-components/src/Stepper/Stepper.tsx +88 -0
  214. package/packages/shared-components/src/Stepper/StepperV2.tsx +115 -0
  215. package/packages/shared-components/src/Stepper/StepperV3.tsx +72 -0
  216. package/packages/shared-components/src/Stepper/index.ts +3 -0
  217. package/packages/shared-components/src/Svgs/AppLogo/AppLogoMedium.tsx +65 -0
  218. package/packages/shared-components/src/Svgs/AppLogo/AppLogoSmall.tsx +48 -0
  219. package/packages/shared-components/src/Svgs/ArrowUp.tsx +11 -0
  220. package/packages/shared-components/src/Svgs/Company/CompanyBanner.tsx +480 -0
  221. package/packages/shared-components/src/Svgs/Company/index.ts +1 -0
  222. package/packages/shared-components/src/Svgs/Drawer/SettingIcon.tsx +31 -0
  223. package/packages/shared-components/src/Svgs/Drawer/SvgBankConfig.tsx +36 -0
  224. package/packages/shared-components/src/Svgs/Drawer/SvgConfiguration.tsx +16 -0
  225. package/packages/shared-components/src/Svgs/Drawer/SvgPayroll.tsx +32 -0
  226. package/packages/shared-components/src/Svgs/Drawer/SvgsEmployees.tsx +25 -0
  227. package/packages/shared-components/src/Svgs/Drawer/SvgsOrganization.tsx +36 -0
  228. package/packages/shared-components/src/Svgs/Drawer/SvgsTransaction.tsx +81 -0
  229. package/packages/shared-components/src/Svgs/Drawer/index.ts +7 -0
  230. package/packages/shared-components/src/Svgs/FormAction.tsx +118 -0
  231. package/packages/shared-components/src/Svgs/ImportExcelSuccessIcon.tsx +54 -0
  232. package/packages/shared-components/src/Svgs/LogoIcon.tsx +74 -0
  233. package/packages/shared-components/src/Svgs/SvgAdd.tsx +28 -0
  234. package/packages/shared-components/src/Svgs/SvgCalendar.tsx +89 -0
  235. package/packages/shared-components/src/Svgs/SvgConfigure.tsx +51 -0
  236. package/packages/shared-components/src/Svgs/SvgDelete.tsx +55 -0
  237. package/packages/shared-components/src/Svgs/SvgDownload.tsx +20 -0
  238. package/packages/shared-components/src/Svgs/SvgEmail.tsx +27 -0
  239. package/packages/shared-components/src/Svgs/SvgExport.tsx +33 -0
  240. package/packages/shared-components/src/Svgs/SvgFilterList.tsx +22 -0
  241. package/packages/shared-components/src/Svgs/SvgImport.tsx +43 -0
  242. package/packages/shared-components/src/Svgs/SvgNoLogo.tsx +66 -0
  243. package/packages/shared-components/src/Svgs/SvgNoSign.tsx +28 -0
  244. package/packages/shared-components/src/Svgs/SvgPhone.tsx +19 -0
  245. package/packages/shared-components/src/Svgs/SvgProfile.tsx +33 -0
  246. package/packages/shared-components/src/Svgs/SvgView.tsx +16 -0
  247. package/packages/shared-components/src/Svgs/SvgsDrop.tsx +44 -0
  248. package/packages/shared-components/src/Svgs/SvgsEdit.tsx +42 -0
  249. package/packages/shared-components/src/Svgs/SvgsHistory.tsx +40 -0
  250. package/packages/shared-components/src/Svgs/SvgsHome.tsx +18 -0
  251. package/packages/shared-components/src/Svgs/SvgsIndicator.tsx +24 -0
  252. package/packages/shared-components/src/Svgs/index.ts +18 -0
  253. package/packages/shared-components/src/Tab/Skeleton.tsx +15 -0
  254. package/packages/shared-components/src/Tab/Tabs.tsx +64 -0
  255. package/packages/shared-components/src/Tab/index.ts +1 -0
  256. package/packages/shared-components/src/Timeline/AttendanceStatus.tsx +56 -0
  257. package/packages/shared-components/src/Timeline/Timeline.tsx +159 -0
  258. package/packages/shared-components/src/Timeline/TimelineTrackSegments.tsx +130 -0
  259. package/packages/shared-components/src/Timeline/index.ts +2 -0
  260. package/packages/shared-components/src/Toast/Toast.tsx +59 -0
  261. package/packages/shared-components/src/Toast/ToastBody.tsx +26 -0
  262. package/packages/shared-components/src/Toast/ToastFooterLink.tsx +19 -0
  263. package/packages/shared-components/src/Toast/Toaster.styled.tsx +80 -0
  264. package/packages/shared-components/src/Toast/Toaster.tsx +21 -0
  265. package/packages/shared-components/src/Toast/index.ts +3 -0
  266. package/packages/shared-components/src/Toast/toasts.tsx +28 -0
  267. package/packages/shared-components/src/Toast/types.ts +13 -0
  268. package/packages/shared-components/src/Tooltip/Tooltip.tsx +36 -0
  269. package/packages/shared-components/src/Tooltip/index.ts +1 -0
  270. package/packages/shared-components/src/UserProfileMenu/UserProfileMenu.styled.tsx +42 -0
  271. package/packages/shared-components/src/UserProfileMenu/UserProfileMenu.tsx +168 -0
  272. package/packages/shared-components/src/UserProfileMenu/index.ts +1 -0
  273. package/packages/shared-components/src/index.ts +25 -0
  274. package/packages/shared-components/src/utils/colorVariant.ts +162 -0
  275. package/packages/shared-components/src/utils/date.ts +25 -0
  276. package/packages/shared-components/src/utils/file.ts +22 -0
  277. package/packages/shared-components/src/utils/index.ts +11 -0
  278. package/packages/shared-components/src/utils/theme/colorPalette.ts +112 -0
  279. package/packages/shared-components/src/utils/theme/colorPaletteUI.tsx +44 -0
  280. package/packages/shared-components/src/utils/theme/paletteDark.ts +10 -0
  281. package/packages/shared-components/src/utils/theme/paletteLight.ts +31 -0
  282. package/packages/shared-components/src/utils/theme/theme.ts +297 -0
  283. package/packages/shared-components/src/utils/theme/types.ts +18 -0
  284. package/packages/shared-components/src/utils/theme/typography.ts +52 -0
  285. package/packages/shared-components/src/utils/urlToNestedObject.ts +9 -0
  286. package/packages/shared-components/tsconfig.json +8 -0
  287. package/packages/shared-components/tsconfig.lint.json +8 -0
  288. package/packages/shared-components/webpack/cjs.js +20 -0
  289. package/packages/shared-components/webpack/common.js +36 -0
  290. package/packages/typescript-config/base.json +20 -0
  291. package/packages/typescript-config/nextjs.json +13 -0
  292. package/packages/typescript-config/package.json +9 -0
  293. package/packages/typescript-config/react-library.json +8 -0
  294. package/pnpm-workspace.yaml +3 -0
  295. package/turbo.json +42 -0
@@ -0,0 +1,88 @@
1
+ import type {
2
+ StepperProps as MuiStepperProps,
3
+ StepLabelProps,
4
+ } from "@mui/material";
5
+ import {
6
+ Box,
7
+ Stepper as MuiStepper,
8
+ Step,
9
+ StepLabel,
10
+ Typography,
11
+ useTheme,
12
+ } from "@mui/material";
13
+ import { useRouter } from "next/navigation";
14
+
15
+ type StepperProps = MuiStepperProps & {
16
+ steps: string[];
17
+ stepUrls?: string[];
18
+ errorSteps?: number[];
19
+ showActiveStepIcon?: boolean;
20
+ stepLabelProps?: StepLabelProps;
21
+ onStepClick?: (stepIndex: number) => void;
22
+ };
23
+
24
+ export const Stepper = ({
25
+ orientation = "horizontal",
26
+ activeStep = 0,
27
+ stepLabelProps = {},
28
+ steps,
29
+ stepUrls = [],
30
+ errorSteps = [],
31
+ onStepClick,
32
+ ...rest
33
+ }: StepperProps) => {
34
+ const theme = useTheme();
35
+
36
+ const router = useRouter();
37
+
38
+ const { butterflyBlue, red } = theme.palette.app.color;
39
+
40
+ const handleStepClick = (index: number) => {
41
+ if (onStepClick) {
42
+ onStepClick(index);
43
+ } else if (stepUrls[index]) {
44
+ router.push(stepUrls[index]);
45
+ }
46
+ };
47
+
48
+ return (
49
+ <Box>
50
+ <MuiStepper activeStep={activeStep} orientation={orientation} {...rest}>
51
+ {steps.map((label, index) => {
52
+ const isError = errorSteps.includes(index);
53
+
54
+ return (
55
+ <Step key={label}>
56
+ <StepLabel
57
+ {...stepLabelProps}
58
+ error={isError}
59
+ sx={{
60
+ cursor:
61
+ (stepUrls[index] ?? onStepClick) ? "pointer" : "default",
62
+ ".Mui-active .MuiStepIcon-root": {
63
+ color: `${butterflyBlue[900]} !important`,
64
+ },
65
+ ".Mui-completed .MuiStepIcon-root": {
66
+ color: `${butterflyBlue[900]} !important`,
67
+ },
68
+ ...(isError && {
69
+ ".MuiStepIcon-root": {
70
+ color: `${red[900]} !important`,
71
+ },
72
+ ".MuiStepLabel-label": {
73
+ color: `${red[900]} !important`,
74
+ },
75
+ }),
76
+ ...stepLabelProps.sx,
77
+ }}
78
+ onClick={() => handleStepClick(index)}
79
+ >
80
+ <Typography variant="body2">{label}</Typography>
81
+ </StepLabel>
82
+ </Step>
83
+ );
84
+ })}
85
+ </MuiStepper>
86
+ </Box>
87
+ );
88
+ };
@@ -0,0 +1,115 @@
1
+ import * as React from "react";
2
+ import { styled } from "@mui/material/styles";
3
+ import Stack from "@mui/material/Stack";
4
+ import type { StepperProps } from "@mui/material/Stepper";
5
+ import Stepper from "@mui/material/Stepper";
6
+ import Step from "@mui/material/Step";
7
+ import type { StepLabelProps } from "@mui/material/StepLabel";
8
+ import StepLabel from "@mui/material/StepLabel";
9
+ import Check from "@mui/icons-material/Check";
10
+ import StepConnector, {
11
+ stepConnectorClasses,
12
+ } from "@mui/material/StepConnector";
13
+ import type { StepIconProps } from "@mui/material/StepIcon";
14
+
15
+ const QontoConnector = styled(StepConnector)(({ theme }) => ({
16
+ [`&.${stepConnectorClasses.alternativeLabel}`]: {
17
+ top: 10,
18
+ left: "calc(-50% + 16px)",
19
+ right: "calc(50% + 16px)",
20
+ },
21
+ [`&.${stepConnectorClasses.active}`]: {
22
+ [`& .${stepConnectorClasses.line}`]: {
23
+ borderColor: "#784af4",
24
+ },
25
+ },
26
+ [`&.${stepConnectorClasses.completed}`]: {
27
+ [`& .${stepConnectorClasses.line}`]: {
28
+ borderColor: "#784af4",
29
+ },
30
+ },
31
+ [`& .${stepConnectorClasses.line}`]: {
32
+ borderColor: "#eaeaf0",
33
+ borderTopWidth: 3,
34
+ borderRadius: 1,
35
+ ...theme.applyStyles("dark", {
36
+ borderColor: theme.palette.grey[800],
37
+ }),
38
+ },
39
+ }));
40
+
41
+ const QontoStepIconRoot = styled("div")<{ ownerState: { active?: boolean } }>(
42
+ ({ theme }) => ({
43
+ color: "#eaeaf0",
44
+ display: "flex",
45
+ height: 22,
46
+ alignItems: "center",
47
+ "& .QontoStepIcon-completedIcon": {
48
+ color: "#784af4",
49
+ zIndex: 1,
50
+ fontSize: 18,
51
+ },
52
+ "& .QontoStepIcon-circle": {
53
+ width: 8,
54
+ height: 8,
55
+ borderRadius: "50%",
56
+ backgroundColor: "currentColor",
57
+ },
58
+ ...theme.applyStyles("dark", {
59
+ color: theme.palette.grey[700],
60
+ }),
61
+ variants: [
62
+ {
63
+ props: ({ ownerState }) => ownerState.active,
64
+ style: {
65
+ color: "#784af4",
66
+ },
67
+ },
68
+ ],
69
+ })
70
+ );
71
+
72
+ function QontoStepIcon(props: Readonly<StepIconProps>) {
73
+ const { active, completed, className } = props;
74
+
75
+ return (
76
+ <QontoStepIconRoot ownerState={{ active }} className={className}>
77
+ {completed ? (
78
+ <Check className="QontoStepIcon-completedIcon" />
79
+ ) : (
80
+ <div className="QontoStepIcon-circle" />
81
+ )}
82
+ </QontoStepIconRoot>
83
+ );
84
+ }
85
+
86
+ type StepperV2Props = StepperProps & {
87
+ steps: string[];
88
+ stepLabelProps?: StepLabelProps;
89
+ };
90
+
91
+ export const StepperV2 = ({
92
+ steps,
93
+ alternativeLabel = true,
94
+ stepLabelProps = {},
95
+ ...rest
96
+ }: StepperV2Props) => {
97
+ return (
98
+ <Stack sx={{ width: "100%" }} spacing={4}>
99
+ <Stepper
100
+ alternativeLabel={alternativeLabel}
101
+ activeStep={1}
102
+ connector={<QontoConnector />}
103
+ {...rest}
104
+ >
105
+ {steps.map((label) => (
106
+ <Step key={label}>
107
+ <StepLabel StepIconComponent={QontoStepIcon} {...stepLabelProps}>
108
+ {label}
109
+ </StepLabel>
110
+ </Step>
111
+ ))}
112
+ </Stepper>
113
+ </Stack>
114
+ );
115
+ };
@@ -0,0 +1,72 @@
1
+ import type {
2
+ StepperProps as MuiStepperProps,
3
+ StepLabelProps,
4
+ } from "@mui/material";
5
+ import {
6
+ Stepper as MuiStepper,
7
+ Step,
8
+ StepLabel,
9
+ Box,
10
+ Typography,
11
+ useTheme,
12
+ Stack,
13
+ } from "@mui/material";
14
+
15
+ type StepperProps = MuiStepperProps & {
16
+ steps: { in_time?: string; out_time?: string }[];
17
+ showActiveStepIcon?: boolean;
18
+ stepLabelProps?: StepLabelProps;
19
+ };
20
+
21
+ export const StepperV3 = ({
22
+ orientation = "horizontal",
23
+ activeStep = 0,
24
+ stepLabelProps = {},
25
+ steps,
26
+ ...rest
27
+ }: StepperProps) => {
28
+ const theme = useTheme();
29
+
30
+ const { butterflyBlue } = theme.palette.app.color;
31
+
32
+ return (
33
+ <Box>
34
+ <MuiStepper activeStep={activeStep} orientation={orientation} {...rest}>
35
+ {steps.map((label, index) => (
36
+ // eslint-disable-next-line sonarjs/no-array-index-key
37
+ <Step key={index}>
38
+ <StepLabel
39
+ {...stepLabelProps}
40
+ sx={{
41
+ ".Mui-active .css-18pqgpd-MuiSvgIcon-root-MuiStepIcon-root": {
42
+ color: `${butterflyBlue[900]} !important`,
43
+ },
44
+ ".Mui-completed .MuiStepIcon-root": {
45
+ color: `${butterflyBlue[900]} !important`,
46
+ },
47
+ ".MuiStepIcon-text": {
48
+ color: "transparent !important",
49
+ display: "none",
50
+ },
51
+ }}
52
+ >
53
+ <Stack>
54
+ {label?.in_time ? (
55
+ <>
56
+ <Typography variant="caption">In at</Typography>
57
+ <Typography variant="caption">{label?.in_time}</Typography>
58
+ </>
59
+ ) : (
60
+ <>
61
+ <Typography variant="caption">Out at</Typography>
62
+ <Typography variant="caption">{label?.out_time}</Typography>
63
+ </>
64
+ )}
65
+ </Stack>
66
+ </StepLabel>
67
+ </Step>
68
+ ))}
69
+ </MuiStepper>
70
+ </Box>
71
+ );
72
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./Stepper";
2
+ export * from "./StepperV2";
3
+ export * from "./StepperV3";
@@ -0,0 +1,65 @@
1
+ import type { SVGProps } from "react";
2
+
3
+ export const AppLogoMedium = (props: SVGProps<SVGSVGElement>) => {
4
+ return (
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ width={117}
8
+ height={42}
9
+ fill="none"
10
+ {...props}
11
+ >
12
+ <path
13
+ fill="#fff"
14
+ d="m29.79 23-3.958.011s-1.289-.014-1.948.655c-.706.715-2.12 2.476-2.12 2.476s-.745.775-.746 1.4L21 32.738c-.003.13.002.258.016.387.07.634.402 1.656 1.95-.115 2.076-2.375 7.75-8.797 7.75-8.797s1.061-1.19-.927-1.214Z"
15
+ />
16
+ <path
17
+ fill="#3BA4E8"
18
+ stroke="#3BA4E8"
19
+ strokeWidth={0.353}
20
+ d="m29.79 23-3.958.011s-1.289-.014-1.948.655c-.706.715-2.12 2.476-2.12 2.476s-.745.775-.746 1.4L21 32.738c-.003.13.002.258.016.387.07.634.402 1.656 1.95-.115 2.076-2.375 7.75-8.797 7.75-8.797s1.061-1.19-.927-1.214Z"
21
+ />
22
+ <path
23
+ fill="#3BA4E8"
24
+ d="m29.79 20-3.958-.011s-1.289.014-1.948-.655c-.706-.715-2.12-2.476-2.12-2.476s-.745-.776-.747-1.4l-.016-5.197a2.89 2.89 0 0 1 .016-.387c.069-.634.402-1.656 1.95.115 2.076 2.375 7.75 8.797 7.75 8.797s1.062 1.19-.927 1.214Z"
25
+ />
26
+ <path
27
+ stroke="#3BA4E8"
28
+ strokeWidth={0.353}
29
+ d="m29.79 20-3.958-.011s-1.289.014-1.948-.655c-.706-.715-2.12-2.476-2.12-2.476s-.745-.776-.747-1.4l-.016-5.197a2.89 2.89 0 0 1 .016-.387c.069-.634.402-1.656 1.95.115 2.076 2.375 7.75 8.797 7.75 8.797s1.062 1.19-.927 1.214Z"
30
+ />
31
+ <path
32
+ fill="#fff"
33
+ d="m1.487 23.774 13.157 15.828s2.397 3.197 2.351-.078c-.046-3.275 0-8.792 0-8.792s.14-1.16-1.105-2.585c-1.246-1.426-4.32-5.035-4.32-5.035S10.756 22 8.597 22.004c-2.057.005-6.116-.011-6.16 0 0 0-.222-.001-.429.012-.622.04-1.61.362-.52 1.758Z"
34
+ />
35
+ <path
36
+ stroke="#fff"
37
+ strokeWidth={0.353}
38
+ d="m1.487 23.774 13.157 15.828s2.397 3.197 2.351-.078c-.046-3.275 0-8.792 0-8.792s.14-1.16-1.105-2.585c-1.246-1.426-4.32-5.035-4.32-5.035S10.756 22 8.597 22.004c-2.057.005-6.116-.011-6.16 0 0 0-.222-.001-.429.012-.622.04-1.61.362-.52 1.758Z"
39
+ />
40
+ <path
41
+ fill="#fff"
42
+ d="M1.487 18.226 14.644 2.398s2.397-3.197 2.351.078c-.046 3.275 0 8.792 0 8.792s.14 1.16-1.105 2.585c-1.246 1.427-4.32 5.035-4.32 5.035s-.814 1.113-2.973 1.108c-2.057-.005-6.116.011-6.16 0 0 0-.222.001-.429-.012-.622-.04-1.61-.362-.52-1.758Z"
43
+ />
44
+ <path
45
+ stroke="#fff"
46
+ strokeWidth={0.353}
47
+ d="M1.487 18.226 14.644 2.398s2.397-3.197 2.351.078c-.046 3.275 0 8.792 0 8.792s.14 1.16-1.105 2.585c-1.246 1.427-4.32 5.035-4.32 5.035s-.814 1.113-2.973 1.108c-2.057-.005-6.116.011-6.16 0 0 0-.222.001-.429-.012-.622-.04-1.61-.362-.52-1.758Z"
48
+ />
49
+ <path
50
+ fill="#fff"
51
+ d="M85 26.695v-2.35h-5.569v-2.364h4.977v-2.203H79.43v-2.14h5.264v-2.332H76.64v11.389H85Zm-13.287-5.727c0 2.541-1.912 3.346-3.977 3.346h-1.371v-6.66h1.439c1.997 0 3.91.756 3.91 3.314Zm3.013 0c0-4.311-3.453-5.662-6.855-5.662h-4.332v11.389h4.469c3.3 0 6.718-1.722 6.718-5.727Zm-16.198-.016c0 2.058-1.421 3.538-3.435 3.538-2.015 0-3.42-1.48-3.42-3.538 0-1.995 1.389-3.475 3.42-3.475 2.03 0 3.436 1.48 3.436 3.475Zm3.098 0C61.626 17.3 58.85 15 55.093 15c-3.74 0-6.516 2.3-6.516 5.952 0 3.603 2.776 6.048 6.516 6.048 3.757 0 6.533-2.445 6.533-6.048Zm-13.523 4.166-2.014-1.802c-.507.676-1.405 1.159-2.539 1.159-1.997 0-3.402-1.415-3.402-3.491 0-2.01 1.438-3.49 3.452-3.49.914 0 1.879.337 2.42 1.045l1.964-1.866C46.986 15.579 45.174 15 43.5 15 39.843 15 37 17.332 37 20.984 37 24.555 39.759 27 43.449 27c2.014 0 3.605-.724 4.654-1.882Z"
52
+ />
53
+ <path
54
+ fill="#fff"
55
+ stroke="#fff"
56
+ strokeWidth={0.353}
57
+ d="M85 26.695v-2.35h-5.569v-2.364h4.977v-2.203H79.43v-2.14h5.264v-2.332H76.64v11.389H85Zm-13.287-5.727c0 2.541-1.912 3.346-3.977 3.346h-1.371v-6.66h1.439c1.997 0 3.91.756 3.91 3.314Zm3.013 0c0-4.311-3.453-5.662-6.855-5.662h-4.332v11.389h4.469c3.3 0 6.718-1.722 6.718-5.727Zm-16.198-.016c0 2.058-1.421 3.538-3.435 3.538-2.015 0-3.42-1.48-3.42-3.538 0-1.995 1.389-3.475 3.42-3.475 2.03 0 3.436 1.48 3.436 3.475Zm3.098 0C61.626 17.3 58.85 15 55.093 15c-3.74 0-6.516 2.3-6.516 5.952 0 3.603 2.776 6.048 6.516 6.048 3.757 0 6.533-2.445 6.533-6.048Zm-13.523 4.166-2.014-1.802c-.507.676-1.405 1.159-2.539 1.159-1.997 0-3.402-1.415-3.402-3.491 0-2.01 1.438-3.49 3.452-3.49.914 0 1.879.337 2.42 1.045l1.964-1.866C46.986 15.579 45.174 15 43.5 15 39.843 15 37 17.332 37 20.984 37 24.555 39.759 27 43.449 27c2.014 0 3.605-.724 4.654-1.882Z"
58
+ />
59
+ <path
60
+ fill="#3BA4E8"
61
+ d="M117 27v-2.475h-5.576v-2.491h4.983v-2.322h-4.983v-2.254h5.271V15h-8.068v12H117Zm-10.288 0v-2.475h-5.576v-2.491h4.983v-2.322h-4.983v-2.254h5.271V15h-8.068v12h8.373Zm-10.254 0v-2.509h-5.966l5.847-7.169V15h-9.204v2.457h5.577L87 24.491V27h9.458Z"
62
+ />
63
+ </svg>
64
+ );
65
+ };
@@ -0,0 +1,48 @@
1
+ import type { SVGProps } from "react";
2
+ export const AppLogoSmall = (props: SVGProps<SVGSVGElement>) => (
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width={32}
6
+ height={42}
7
+ fill="none"
8
+ {...props}
9
+ >
10
+ <path
11
+ fill="#fff"
12
+ d="m29.79 23-3.958.011s-1.289-.014-1.948.655c-.706.715-2.12 2.476-2.12 2.476s-.745.775-.746 1.4L21 32.738c-.003.13.002.258.016.387.07.634.402 1.656 1.95-.115 2.076-2.375 7.75-8.797 7.75-8.797s1.061-1.19-.927-1.214Z"
13
+ />
14
+ <path
15
+ fill="#3BA4E8"
16
+ stroke="#3BA4E8"
17
+ strokeWidth={0.353}
18
+ d="m29.79 23-3.958.011s-1.289-.014-1.948.655c-.706.715-2.12 2.476-2.12 2.476s-.745.775-.746 1.4L21 32.738c-.003.13.002.258.016.387.07.634.402 1.656 1.95-.115 2.076-2.375 7.75-8.797 7.75-8.797s1.061-1.19-.927-1.214Z"
19
+ />
20
+ <path
21
+ fill="#3BA4E8"
22
+ d="m29.79 20-3.958-.011s-1.289.014-1.948-.655c-.706-.715-2.12-2.476-2.12-2.476s-.745-.776-.747-1.4l-.016-5.197a2.89 2.89 0 0 1 .016-.387c.069-.634.402-1.656 1.95.115 2.076 2.375 7.75 8.797 7.75 8.797s1.062 1.19-.927 1.214Z"
23
+ />
24
+ <path
25
+ stroke="#3BA4E8"
26
+ strokeWidth={0.353}
27
+ d="m29.79 20-3.958-.011s-1.289.014-1.948-.655c-.706-.715-2.12-2.476-2.12-2.476s-.745-.776-.747-1.4l-.016-5.197a2.89 2.89 0 0 1 .016-.387c.069-.634.402-1.656 1.95.115 2.076 2.375 7.75 8.797 7.75 8.797s1.062 1.19-.927 1.214Z"
28
+ />
29
+ <path
30
+ fill="#fff"
31
+ d="m1.487 23.774 13.157 15.828s2.397 3.197 2.351-.078c-.046-3.275 0-8.792 0-8.792s.14-1.16-1.105-2.585c-1.246-1.426-4.32-5.035-4.32-5.035S10.756 22 8.597 22.004c-2.057.005-6.116-.011-6.16 0 0 0-.222-.001-.429.012-.622.04-1.61.362-.52 1.758Z"
32
+ />
33
+ <path
34
+ stroke="#fff"
35
+ strokeWidth={0.353}
36
+ d="m1.487 23.774 13.157 15.828s2.397 3.197 2.351-.078c-.046-3.275 0-8.792 0-8.792s.14-1.16-1.105-2.585c-1.246-1.426-4.32-5.035-4.32-5.035S10.756 22 8.597 22.004c-2.057.005-6.116-.011-6.16 0 0 0-.222-.001-.429.012-.622.04-1.61.362-.52 1.758Z"
37
+ />
38
+ <path
39
+ fill="#fff"
40
+ d="M1.487 18.226 14.644 2.398s2.397-3.197 2.351.078c-.046 3.275 0 8.792 0 8.792s.14 1.16-1.105 2.585c-1.246 1.427-4.32 5.035-4.32 5.035s-.814 1.113-2.973 1.108c-2.057-.005-6.116.011-6.16 0 0 0-.222.001-.429-.012-.622-.04-1.61-.362-.52-1.758Z"
41
+ />
42
+ <path
43
+ stroke="#fff"
44
+ strokeWidth={0.353}
45
+ d="M1.487 18.226 14.644 2.398s2.397-3.197 2.351.078c-.046 3.275 0 8.792 0 8.792s.14 1.16-1.105 2.585c-1.246 1.427-4.32 5.035-4.32 5.035s-.814 1.113-2.973 1.108c-2.057-.005-6.116.011-6.16 0 0 0-.222.001-.429-.012-.622-.04-1.61-.362-.52-1.758Z"
46
+ />
47
+ </svg>
48
+ );
@@ -0,0 +1,11 @@
1
+ export const ArrowUp = () => (
2
+ <svg
3
+ width="10"
4
+ height="10"
5
+ viewBox="0 0 10 9"
6
+ fill="none"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ >
9
+ <path d="M5 0L10 8.75H0L5 0Z" fill="#D9D9D9" />
10
+ </svg>
11
+ );