@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,120 @@
1
+ import FavoriteIcon from "@mui/icons-material/Favorite";
2
+ import HomeIcon from "@mui/icons-material/Home";
3
+ import SettingsIcon from "@mui/icons-material/Settings";
4
+ import { ButtonGroup as MuiButtonGroup, Stack } from "@mui/material";
5
+ import { Button, ButtonGroup } from "@repo/shared-components";
6
+ import type { Meta, StoryObj } from "@storybook/react";
7
+ import { fn } from "@storybook/test";
8
+
9
+ type StoryProps = React.ComponentProps<typeof ButtonGroup>;
10
+
11
+ const meta: Meta<StoryProps> = {
12
+ title: "shared-component/Button/ButtonGroup",
13
+ component: ButtonGroup,
14
+ tags: ["autodocs"],
15
+ };
16
+
17
+ export default meta;
18
+
19
+ type Story = StoryObj<typeof ButtonGroup>;
20
+
21
+ export const DefaultButtonGroup: Story = {
22
+ args: {
23
+ renderButtons: [
24
+ {
25
+ icon: <HomeIcon />,
26
+ value: "home",
27
+ label: "Home",
28
+ selected: true,
29
+ onClick: fn(),
30
+ },
31
+ {
32
+ icon: <FavoriteIcon />,
33
+ value: "favorites",
34
+ label: "Favorites",
35
+ selected: false,
36
+ onClick: fn(),
37
+ },
38
+ {
39
+ icon: <SettingsIcon />,
40
+ value: "settings",
41
+ label: "Settings",
42
+ selected: false,
43
+ onClick: fn(),
44
+ },
45
+ ],
46
+ },
47
+ };
48
+
49
+ export const NoSelectedButton: Story = {
50
+ args: {
51
+ renderButtons: [
52
+ {
53
+ icon: <HomeIcon />,
54
+ value: "home",
55
+ label: "Home",
56
+ selected: false,
57
+ onClick: fn(),
58
+ },
59
+ {
60
+ icon: <FavoriteIcon />,
61
+ value: "favorites",
62
+ label: "Favorites",
63
+ selected: false,
64
+ onClick: fn(),
65
+ },
66
+ {
67
+ icon: <SettingsIcon />,
68
+ value: "settings",
69
+ label: "Settings",
70
+ selected: false,
71
+ onClick: fn(),
72
+ },
73
+ ],
74
+ },
75
+ };
76
+
77
+ export const DisabledButtons: Story = {
78
+ args: {
79
+ renderButtons: [
80
+ {
81
+ icon: <HomeIcon />,
82
+ value: "home",
83
+ label: "Home",
84
+ selected: false,
85
+ onClick: fn(),
86
+ },
87
+ {
88
+ icon: <FavoriteIcon />,
89
+ value: "favorites",
90
+ label: "Favorites",
91
+ selected: false,
92
+ onClick: fn(),
93
+ },
94
+ {
95
+ icon: <SettingsIcon />,
96
+ value: "settings",
97
+ label: "Settings",
98
+ selected: false,
99
+ onClick: fn(),
100
+ },
101
+ ],
102
+ },
103
+ decorators: [
104
+ () => (
105
+ <Stack direction="row" gap="10px">
106
+ <MuiButtonGroup aria-label="Disabled button group">
107
+ <Button variant="outlined" disabled>
108
+ Home
109
+ </Button>
110
+ <Button variant="outlined" disabled>
111
+ Favorites
112
+ </Button>
113
+ <Button variant="outlined" disabled>
114
+ Settings
115
+ </Button>
116
+ </MuiButtonGroup>
117
+ </Stack>
118
+ ),
119
+ ],
120
+ };
@@ -0,0 +1,99 @@
1
+ import { Stack } from "@mui/material";
2
+ import { Button } from "@repo/shared-components";
3
+ import type { Meta as MetaTypes, StoryObj } from "@storybook/react";
4
+ import { fn } from "@storybook/test";
5
+ import type { ComponentProps } from "react";
6
+
7
+ type StoryProps = ComponentProps<typeof Button> & {
8
+ variant: string;
9
+ size: "small" | "medium" | "large";
10
+ };
11
+
12
+ const meta: MetaTypes<StoryProps> = {
13
+ title: "shared-component/Button/Button",
14
+ component: Button,
15
+ tags: ["autodocs"],
16
+ argTypes: {
17
+ loading: { control: "boolean" },
18
+ disabled: { control: "boolean" },
19
+ children: { control: "text" },
20
+ variant: {
21
+ options: ["outlined", "contained"],
22
+ control: {
23
+ type: "select",
24
+ },
25
+ },
26
+ size: {
27
+ options: ["small", "medium", "large"],
28
+ control: {
29
+ type: "select",
30
+ },
31
+ },
32
+ sx: { control: "object" },
33
+ color: {
34
+ options: ["primary", "secondary"],
35
+ control: {
36
+ type: "select",
37
+ },
38
+ },
39
+ },
40
+ args: {
41
+ onClick: fn(),
42
+ children: "Button",
43
+ size: "medium",
44
+ },
45
+ render: (args) => (
46
+ <Stack direction="row" gap="10px">
47
+ <Button {...args} size="large">
48
+ Large
49
+ </Button>
50
+ <Button {...args} size="medium">
51
+ Medium (Default)
52
+ </Button>
53
+ <Button {...args} size="small">
54
+ Small
55
+ </Button>
56
+ </Stack>
57
+ ),
58
+ };
59
+
60
+ // eslint-disable-next-line import/no-default-export
61
+ export default meta;
62
+
63
+ type Story = StoryObj<typeof meta>;
64
+
65
+ export const Disabled: Story = {
66
+ args: {
67
+ disabled: true,
68
+ variant: "contained",
69
+ },
70
+ };
71
+
72
+ export const Contained: Story = {
73
+ args: {
74
+ variant: "contained",
75
+ },
76
+ };
77
+
78
+ export const Outlined: Story = {
79
+ args: {
80
+ variant: "outlined",
81
+ },
82
+ };
83
+
84
+ export const Loading: Story = {
85
+ args: {
86
+ loading: true,
87
+ },
88
+ };
89
+
90
+ export const Primary: Story = {
91
+ args: {
92
+ color: "primary",
93
+ },
94
+ };
95
+ export const Secondary: Story = {
96
+ args: {
97
+ color: "secondary",
98
+ },
99
+ };
@@ -0,0 +1,36 @@
1
+ import { AttendanceCard } from "@repo/shared-components";
2
+ import type { Meta, StoryObj } from "@storybook/react";
3
+
4
+ const meta: Meta<typeof AttendanceCard> = {
5
+ title: "shared-component/Card/AttendanceCard",
6
+ component: AttendanceCard,
7
+ tags: ["autodocs"],
8
+ argTypes: {
9
+ label: { control: "text" },
10
+ value: { control: "text" },
11
+ variant: {
12
+ control: "select",
13
+ options: [
14
+ "holiday",
15
+ "weekly_off",
16
+ "paid_leave",
17
+ "absent",
18
+ "unpaid_leave",
19
+ ],
20
+ },
21
+ },
22
+ args: {
23
+ variant: "holiday",
24
+ },
25
+ };
26
+
27
+ export default meta;
28
+
29
+ type Story = StoryObj<typeof AttendanceCard>;
30
+
31
+ export const DefaultIndicator: Story = {
32
+ args: {
33
+ label: "Holiday",
34
+ value: "03 Days",
35
+ },
36
+ };
@@ -0,0 +1,39 @@
1
+ import { Stack, Typography } from "@mui/material";
2
+ import { Card, DeleteAction, EditAction } from "@repo/shared-components";
3
+ import type { Meta, StoryObj } from "@storybook/react";
4
+
5
+ const meta: Meta<typeof Card> = {
6
+ title: "shared-component/Card/Card",
7
+ component: Card,
8
+ tags: ["autodocs"],
9
+ argTypes: {
10
+ heading: { control: "text" },
11
+ action: { control: false },
12
+ children: { control: false },
13
+ },
14
+ args: {
15
+ heading: "Card Heading",
16
+ },
17
+ render: (args) => (
18
+ <Card {...args}>
19
+ <Typography>This is the card content</Typography>
20
+ </Card>
21
+ ),
22
+ };
23
+
24
+ export default meta;
25
+
26
+ type Story = StoryObj<typeof meta>;
27
+
28
+ export const DefaultCard: Story = {};
29
+
30
+ export const ActionCard: Story = {
31
+ args: {
32
+ action: (
33
+ <Stack direction="row">
34
+ <EditAction />
35
+ <DeleteAction />
36
+ </Stack>
37
+ ),
38
+ },
39
+ };
@@ -0,0 +1,265 @@
1
+ import { PieChart } from "@repo/shared-components";
2
+ import type { Meta, StoryObj } from "@storybook/react";
3
+
4
+ const meta: Meta<typeof PieChart> = {
5
+ title: "shared-component/Charts/PieChart",
6
+ component: PieChart,
7
+ tags: ["autodocs"],
8
+ argTypes: {
9
+ height: {
10
+ description: "Height of the PieChart",
11
+ control: {
12
+ type: "number",
13
+ },
14
+ defaultValue: 235,
15
+ },
16
+ width: {
17
+ description: "Width of the PieChart",
18
+ control: {
19
+ type: "number",
20
+ },
21
+ defaultValue: 235,
22
+ },
23
+ skipAnimation: {
24
+ description: "Disables animation if true",
25
+ control: {
26
+ type: "boolean",
27
+ },
28
+ defaultValue: false,
29
+ },
30
+ tooltip: {
31
+ description: "Tooltip behavior ('item', 'axis', 'none')",
32
+ control: {
33
+ type: "select",
34
+ options: ["item", "axis", "none"],
35
+ },
36
+ defaultValue: "item",
37
+ mapping: {
38
+ item: { trigger: "item" },
39
+ axis: { trigger: "axis" },
40
+ none: { trigger: "none" },
41
+ },
42
+ },
43
+ label: {
44
+ description: "Center label text",
45
+ control: {
46
+ type: "text",
47
+ },
48
+ defaultValue: "Center",
49
+ },
50
+ series: {
51
+ description: "Pie chart series configuration",
52
+ control: {
53
+ type: "object",
54
+ },
55
+ defaultValue: {
56
+ type: "pie",
57
+ data: [
58
+ { label: "A", value: 40 },
59
+ { label: "B", value: 30 },
60
+ { label: "C", value: 20 },
61
+ { label: "D", value: 10 },
62
+ ],
63
+ innerRadius: 0,
64
+ outerRadius: 100,
65
+ startAngle: 0,
66
+ endAngle: 360,
67
+ paddingAngle: 0,
68
+ arcLabel: "label",
69
+ arcLabelMinAngle: 0,
70
+ cx: "50%",
71
+ cy: "50%",
72
+ highlightScope: { fade: "global", highlight: "item" },
73
+ faded: { innerRadius: 30, additionalRadius: -30, color: "gray" },
74
+ },
75
+ },
76
+ },
77
+ };
78
+
79
+ export default meta;
80
+
81
+ type Story = StoryObj<typeof PieChart>;
82
+
83
+ export const DefaultPieChart: Story = {
84
+ args: {
85
+ series: {
86
+ type: "pie",
87
+ data: [
88
+ { label: "A", value: 40 },
89
+ { label: "B", value: 30 },
90
+ { label: "C", value: 20 },
91
+ { label: "D", value: 10 },
92
+ ],
93
+ },
94
+ },
95
+ };
96
+
97
+ export const CustomSize: Story = {
98
+ args: {
99
+ height: 300,
100
+ width: 300,
101
+ series: {
102
+ type: "pie",
103
+ data: [
104
+ { label: "A", value: 40 },
105
+ { label: "B", value: 30 },
106
+ { label: "C", value: 20 },
107
+ { label: "D", value: 10 },
108
+ ],
109
+ },
110
+ },
111
+ };
112
+
113
+ export const NoAnimation: Story = {
114
+ args: {
115
+ skipAnimation: true,
116
+ series: {
117
+ type: "pie",
118
+ data: [
119
+ { label: "A", value: 40 },
120
+ { label: "B", value: 30 },
121
+ { label: "C", value: 20 },
122
+ { label: "D", value: 10 },
123
+ ],
124
+ },
125
+ },
126
+ };
127
+
128
+ export const CustomRadii: Story = {
129
+ args: {
130
+ series: {
131
+ type: "pie",
132
+ data: [
133
+ { label: "A", value: 40 },
134
+ { label: "B", value: 30 },
135
+ { label: "C", value: 20 },
136
+ { label: "D", value: 10 },
137
+ ],
138
+ innerRadius: 90,
139
+ outerRadius: "90%",
140
+ cornerRadius: 0,
141
+ },
142
+ },
143
+ };
144
+
145
+ export const NoTooltip: Story = {
146
+ args: {
147
+ tooltip: { trigger: "none" },
148
+ series: {
149
+ type: "pie",
150
+ data: [
151
+ { label: "A", value: 40 },
152
+ { label: "B", value: 30 },
153
+ { label: "C", value: 20 },
154
+ { label: "D", value: 10 },
155
+ ],
156
+ },
157
+ },
158
+ };
159
+
160
+ export const CustomAngles: Story = {
161
+ args: {
162
+ series: {
163
+ type: "pie",
164
+ data: [
165
+ {
166
+ value: 50,
167
+ color: "#F39C12",
168
+ id: "A",
169
+ label: "A",
170
+ },
171
+ {
172
+ value: 50,
173
+ color: "#2980B9",
174
+ id: "B",
175
+ label: "B",
176
+ },
177
+ ],
178
+ startAngle: 45,
179
+ endAngle: 270,
180
+ },
181
+ },
182
+ };
183
+
184
+ export const CustomArcLabel: Story = {
185
+ args: {
186
+ series: {
187
+ type: "pie",
188
+ data: [
189
+ {
190
+ value: 60,
191
+ color: "#1ABC9C",
192
+ id: "A",
193
+ label: "A",
194
+ },
195
+ {
196
+ value: 40,
197
+ color: "#E74C3C",
198
+ id: "B",
199
+ label: "B",
200
+ },
201
+ ],
202
+ arcLabel: (item) => `${item.label}: ${item.value}%`,
203
+ },
204
+ },
205
+ };
206
+
207
+ export const HighlightedSeries: Story = {
208
+ args: {
209
+ series: {
210
+ type: "pie",
211
+ data: [
212
+ {
213
+ value: 50,
214
+ color: "#F39C12",
215
+ id: "A",
216
+ label: "A",
217
+ },
218
+ {
219
+ value: 50,
220
+ color: "#2980B9",
221
+ id: "B",
222
+ label: "B",
223
+ },
224
+ ],
225
+ highlightScope: { fade: "global", highlight: "item" },
226
+ },
227
+ },
228
+ };
229
+
230
+ export const FadedSeries: Story = {
231
+ args: {
232
+ series: {
233
+ type: "pie",
234
+ data: [
235
+ { label: "A", value: 70, color: "#1ABC9C" },
236
+ { label: "B", value: 30, color: "#E74C3C" },
237
+ ],
238
+ faded: { innerRadius: 30, additionalRadius: -30, color: "gray" },
239
+ },
240
+ },
241
+ };
242
+
243
+ export const MixedSeries: Story = {
244
+ args: {
245
+ series: {
246
+ type: "pie",
247
+ data: [
248
+ {
249
+ value: 50,
250
+ color: "#F39C12",
251
+ id: "A",
252
+ label: "A",
253
+ },
254
+ {
255
+ value: 50,
256
+ color: "#2980B9",
257
+ id: "B",
258
+ label: "B",
259
+ },
260
+ ],
261
+ highlightScope: { fade: "global", highlight: "item" },
262
+ faded: { innerRadius: 30, additionalRadius: -30, color: "gray" },
263
+ },
264
+ },
265
+ };
@@ -0,0 +1,141 @@
1
+ import { Delete as DeleteIcon } from "@mui/icons-material";
2
+ import { Avatar, Box, Stack, Typography } from "@mui/material";
3
+ import { Chip } from "@repo/shared-components";
4
+ import type { Meta as MetaTypes, StoryObj } from "@storybook/react";
5
+ import { fn } from "@storybook/test";
6
+ import type { ComponentProps } from "react";
7
+
8
+ type StoryProps = ComponentProps<typeof Chip> & {
9
+ variant: string;
10
+ size: "small" | "medium";
11
+ };
12
+
13
+ const meta: MetaTypes<StoryProps> = {
14
+ title: "shared-component/Chips/Chip",
15
+ component: Chip,
16
+ tags: ["autodocs"],
17
+ argTypes: {
18
+ label: { control: "text" },
19
+ children: { control: "text" },
20
+ variant: {
21
+ options: ["outlined", "filled"],
22
+ control: {
23
+ type: "select",
24
+ },
25
+ },
26
+ size: {
27
+ options: ["small", "medium"],
28
+ control: {
29
+ type: "select",
30
+ },
31
+ },
32
+ sx: { control: "object" },
33
+ color: {
34
+ options: ["secondary", "info", "success", "warning", "error", "primary"],
35
+ control: {
36
+ type: "select",
37
+ },
38
+ },
39
+ },
40
+ args: {
41
+ onClick: fn(),
42
+ size: "medium",
43
+ variant: "filled",
44
+ },
45
+ render: (args) => (
46
+ <Stack alignItems="center" direction="row" gap="50px">
47
+ <Stack gap="33px">
48
+ <Typography fontWeight="bold">Color</Typography>
49
+ <Typography>secondary</Typography>
50
+ <Typography>info</Typography>
51
+ <Typography>success</Typography>
52
+ <Typography>warning</Typography>
53
+ <Typography>error</Typography>
54
+ <Typography>primary</Typography>
55
+ </Stack>
56
+ <Stack gap="25px">
57
+ <Typography fontWeight="bold">Medium [Default]</Typography>
58
+ <Box>
59
+ <Chip color="secondary" label="Secondary" {...args} />
60
+ </Box>
61
+ <Box>
62
+ <Chip color="info" label="Info" {...args} />
63
+ </Box>
64
+ <Box>
65
+ <Chip color="success" label="Success" {...args} />
66
+ </Box>
67
+ <Box>
68
+ <Chip color="warning" label="Warning" {...args} />
69
+ </Box>
70
+ <Box>
71
+ <Chip color="error" label="Error" {...args} />
72
+ </Box>
73
+ <Box>
74
+ <Chip color="primary" label="Primary" {...args} />
75
+ </Box>
76
+ </Stack>
77
+ <Stack gap="33px">
78
+ <Typography fontWeight="bold">small</Typography>
79
+ <Box>
80
+ <Chip
81
+ variant="filled"
82
+ label="Secondary"
83
+ size="small"
84
+ color="secondary"
85
+ />
86
+ </Box>
87
+ <Box>
88
+ <Chip variant="filled" label="Info" size="small" color="info" />
89
+ </Box>
90
+ <Box>
91
+ <Chip variant="filled" label="Success" size="small" color="success" />
92
+ </Box>
93
+ <Box>
94
+ <Chip variant="filled" label="Warning" size="small" color="warning" />
95
+ </Box>
96
+ <Box>
97
+ <Chip variant="filled" label="Error" size="small" color="error" />
98
+ </Box>
99
+ <Box>
100
+ <Chip variant="filled" label="Primary" size="small" color="primary" />
101
+ </Box>
102
+ </Stack>
103
+ </Stack>
104
+ ),
105
+ };
106
+
107
+ // eslint-disable-next-line import/no-default-export
108
+ export default meta;
109
+
110
+ type Story = StoryObj<typeof meta>;
111
+
112
+ export const Disabled: Story = {
113
+ args: {
114
+ disabled: true,
115
+ variant: "filled",
116
+ },
117
+ };
118
+
119
+ export const Contained: Story = {
120
+ args: {
121
+ variant: "filled",
122
+ },
123
+ };
124
+
125
+ export const Outlined: Story = {
126
+ args: {
127
+ variant: "outlined",
128
+ },
129
+ };
130
+ export const WithDeleteIcon: Story = {
131
+ args: {
132
+ deleteIcon: <DeleteIcon sx={{ color: "white" }} />,
133
+ onDelete: fn(),
134
+ },
135
+ };
136
+
137
+ export const WithAvatar: Story = {
138
+ args: {
139
+ avatar: <Avatar alt="User Avatar" src="" />,
140
+ },
141
+ };