@codezee/sixtify-brahma 0.2.6 → 0.2.7

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 (279) hide show
  1. package/package.json +7 -2
  2. package/.github/workflows/deploy-storybook.yml +0 -40
  3. package/.husky/commit-msg +0 -4
  4. package/.husky/pre-commit +0 -4
  5. package/.husky/pre-push +0 -4
  6. package/.lintstagedrc +0 -5
  7. package/.prettierignore +0 -11
  8. package/.prettierrc +0 -22
  9. package/.vscode/extensions.json +0 -22
  10. package/.vscode/settings.json +0 -17
  11. package/apps/docs/.eslintrc.cjs +0 -4
  12. package/apps/docs/.eslintrc.js +0 -9
  13. package/apps/docs/.storybook/main.ts +0 -23
  14. package/apps/docs/.storybook/preview.tsx +0 -27
  15. package/apps/docs/next-env.d.ts +0 -5
  16. package/apps/docs/next.config.mjs +0 -4
  17. package/apps/docs/package.json +0 -38
  18. package/apps/docs/public/globals.css +0 -25
  19. package/apps/docs/stories/AgGrid/AgGrid.stories.tsx +0 -69
  20. package/apps/docs/stories/AppBar/AppBar.stories.tsx +0 -39
  21. package/apps/docs/stories/Breadcrumbs/Breadcrumbs.stories.tsx +0 -37
  22. package/apps/docs/stories/Button/ButtonGroup.stories.tsx +0 -99
  23. package/apps/docs/stories/Button/button.stories.tsx +0 -99
  24. package/apps/docs/stories/Card/AttendanceCard.stories.tsx +0 -37
  25. package/apps/docs/stories/Card/Card.stories.tsx +0 -39
  26. package/apps/docs/stories/Charts/PieChart.stories.tsx +0 -264
  27. package/apps/docs/stories/Chips/Chip.stories.tsx +0 -141
  28. package/apps/docs/stories/Chips/ChipWithBorder.stories.tsx +0 -18
  29. package/apps/docs/stories/Chips/FilterPill.stories.tsx +0 -24
  30. package/apps/docs/stories/Color/Color.stories.tsx +0 -14
  31. package/apps/docs/stories/Dialog/ButtomDialog.stories.tsx +0 -47
  32. package/apps/docs/stories/Dialog/DeleteDialog.stories.tsx +0 -31
  33. package/apps/docs/stories/Dialog/Dialog.stories.tsx +0 -47
  34. package/apps/docs/stories/Drawer/Drawer.stories.tsx +0 -94
  35. package/apps/docs/stories/FilterList/FilterList.stories.tsx +0 -88
  36. package/apps/docs/stories/FilterList/FilterListV2.stories.tsx +0 -92
  37. package/apps/docs/stories/FormFields/AutoComplete.stories.tsx +0 -87
  38. package/apps/docs/stories/FormFields/CheckBox.stories.tsx +0 -61
  39. package/apps/docs/stories/FormFields/DatePicker.stories.tsx +0 -98
  40. package/apps/docs/stories/FormFields/DateRangePicker.stories.tsx +0 -37
  41. package/apps/docs/stories/FormFields/FileUpload.stories.tsx +0 -83
  42. package/apps/docs/stories/FormFields/ImageUpload.stories.tsx +0 -69
  43. package/apps/docs/stories/FormFields/ListItemButton.stories.tsx +0 -59
  44. package/apps/docs/stories/FormFields/RadioGroupField.stories.tsx +0 -170
  45. package/apps/docs/stories/FormFields/SearchField.stories.tsx +0 -72
  46. package/apps/docs/stories/FormFields/TextField.stories.tsx +0 -111
  47. package/apps/docs/stories/FormFields/TimeField.stories.tsx +0 -82
  48. package/apps/docs/stories/FormFields/TimePicker.stories.tsx +0 -82
  49. package/apps/docs/stories/Indicator/Indicator.stories.tsx +0 -33
  50. package/apps/docs/stories/Indicator/SeverityIndicator.stories.tsx +0 -27
  51. package/apps/docs/stories/Layouts/FormRow.stories.tsx +0 -45
  52. package/apps/docs/stories/PadBox/PadBox.stories.tsx +0 -49
  53. package/apps/docs/stories/Stepper/Stepper.stories.tsx +0 -75
  54. package/apps/docs/stories/Stepper/StepperV2.stories.tsx +0 -44
  55. package/apps/docs/stories/Timeline/AttendanceStatus.stories.tsx +0 -29
  56. package/apps/docs/stories/Timeline/Timeline.stories.tsx +0 -38
  57. package/apps/docs/stories/Tooltip/Tooltip.stories.tsx +0 -30
  58. package/apps/docs/stories/UserProfileMenu/UserProfileMenu.stories.tsx +0 -112
  59. package/apps/docs/tsconfig.json +0 -19
  60. package/commitlint.config.cjs +0 -6
  61. package/index.ts +0 -1
  62. package/packages/eslint-config/README.md +0 -3
  63. package/packages/eslint-config/library.js +0 -88
  64. package/packages/eslint-config/next.js +0 -85
  65. package/packages/eslint-config/package.json +0 -19
  66. package/packages/eslint-config/react-internal.js +0 -89
  67. package/packages/shared-components/.eslintrc.js +0 -10
  68. package/packages/shared-components/package.json +0 -22
  69. package/packages/shared-components/src/Actions/AddAction.tsx +0 -13
  70. package/packages/shared-components/src/Actions/CalendarAction.tsx +0 -13
  71. package/packages/shared-components/src/Actions/ConfigureAction.tsx +0 -13
  72. package/packages/shared-components/src/Actions/DeleteAction.tsx +0 -13
  73. package/packages/shared-components/src/Actions/DownloadAction.tsx +0 -13
  74. package/packages/shared-components/src/Actions/EditAction.tsx +0 -13
  75. package/packages/shared-components/src/Actions/HistoryAction.tsx +0 -13
  76. package/packages/shared-components/src/Actions/index.ts +0 -7
  77. package/packages/shared-components/src/AgGrid/ActionCell/ActionCell.tsx +0 -57
  78. package/packages/shared-components/src/AgGrid/ActionCell/Popover.tsx +0 -32
  79. package/packages/shared-components/src/AgGrid/AgGrid.tsx +0 -93
  80. package/packages/shared-components/src/AgGrid/LoadingCell.tsx +0 -5
  81. package/packages/shared-components/src/AgGrid/index.ts +0 -3
  82. package/packages/shared-components/src/AppBar/AppBar.styled.tsx +0 -25
  83. package/packages/shared-components/src/AppBar/AppBar.tsx +0 -20
  84. package/packages/shared-components/src/AppBar/index.ts +0 -1
  85. package/packages/shared-components/src/Breadcrumbs/Breadcrumbs.tsx +0 -76
  86. package/packages/shared-components/src/Breadcrumbs/index.ts +0 -1
  87. package/packages/shared-components/src/Button/ActionButton.tsx +0 -38
  88. package/packages/shared-components/src/Button/Button.tsx +0 -19
  89. package/packages/shared-components/src/Button/ButtonGroup.tsx +0 -37
  90. package/packages/shared-components/src/Button/index.ts +0 -3
  91. package/packages/shared-components/src/Card/AttendanceCard.tsx +0 -51
  92. package/packages/shared-components/src/Card/Card.tsx +0 -34
  93. package/packages/shared-components/src/Card/CardItem/CardItem.tsx +0 -33
  94. package/packages/shared-components/src/Card/CardItem/CardItemValue.tsx +0 -98
  95. package/packages/shared-components/src/Card/CardItem/index.ts +0 -2
  96. package/packages/shared-components/src/Card/ProfileCard/ProfileCard.tsx +0 -40
  97. package/packages/shared-components/src/Card/ProfileCard/ProfileCardItem/ProfileCardBody.tsx +0 -53
  98. package/packages/shared-components/src/Card/ProfileCard/ProfileCardItem/ProfileCardHeader.tsx +0 -96
  99. package/packages/shared-components/src/Card/index.ts +0 -6
  100. package/packages/shared-components/src/Charts/PieChart.tsx +0 -81
  101. package/packages/shared-components/src/Charts/Skeleton.tsx +0 -36
  102. package/packages/shared-components/src/Charts/index.ts +0 -1
  103. package/packages/shared-components/src/Chips/Chip.tsx +0 -26
  104. package/packages/shared-components/src/Chips/ChipWithBorder.tsx +0 -39
  105. package/packages/shared-components/src/Chips/FilterPill.tsx +0 -47
  106. package/packages/shared-components/src/Chips/index.ts +0 -3
  107. package/packages/shared-components/src/Dialog/BottomDialog.styled.tsx +0 -28
  108. package/packages/shared-components/src/Dialog/BottomDialog.tsx +0 -37
  109. package/packages/shared-components/src/Dialog/DeleteDialog.tsx +0 -48
  110. package/packages/shared-components/src/Dialog/Dialog.tsx +0 -61
  111. package/packages/shared-components/src/Dialog/index.ts +0 -3
  112. package/packages/shared-components/src/Drawer/Bullet.tsx +0 -12
  113. package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerMenuItem.tsx +0 -57
  114. package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerMenuItemList.tsx +0 -109
  115. package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.tsx +0 -124
  116. package/packages/shared-components/src/Drawer/CloseDrawer/MenuItem.tsx +0 -0
  117. package/packages/shared-components/src/Drawer/CloseDrawer/Popover.tsx +0 -45
  118. package/packages/shared-components/src/Drawer/CloseDrawer/Popper.tsx +0 -43
  119. package/packages/shared-components/src/Drawer/Drawer.styled.tsx +0 -51
  120. package/packages/shared-components/src/Drawer/Drawer.tsx +0 -55
  121. package/packages/shared-components/src/Drawer/MenuItem.tsx +0 -75
  122. package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerCollapse.tsx +0 -13
  123. package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerMenuItem.tsx +0 -46
  124. package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerMenuItemList.tsx +0 -197
  125. package/packages/shared-components/src/Drawer/index.ts +0 -1
  126. package/packages/shared-components/src/FilterList/FilterList.tsx +0 -172
  127. package/packages/shared-components/src/FilterList/FilterListV2.tsx +0 -515
  128. package/packages/shared-components/src/FilterList/FilterPopup.tsx +0 -148
  129. package/packages/shared-components/src/FilterList/FilterPopupWrapper.tsx +0 -113
  130. package/packages/shared-components/src/FilterList/FilterTypeWrapper.tsx +0 -58
  131. package/packages/shared-components/src/FilterList/getFormData.ts +0 -29
  132. package/packages/shared-components/src/FilterList/index.ts +0 -5
  133. package/packages/shared-components/src/FormFields/Autocomplete/Autocomplete.tsx +0 -510
  134. package/packages/shared-components/src/FormFields/Autocomplete/Skeleton.tsx +0 -26
  135. package/packages/shared-components/src/FormFields/Autocomplete/index.ts +0 -1
  136. package/packages/shared-components/src/FormFields/CheckBox/CheckBox.styled.tsx +0 -67
  137. package/packages/shared-components/src/FormFields/CheckBox/CheckBox.tsx +0 -44
  138. package/packages/shared-components/src/FormFields/CheckBox/Skeleton.tsx +0 -12
  139. package/packages/shared-components/src/FormFields/CheckBox/index.ts +0 -1
  140. package/packages/shared-components/src/FormFields/DatePicker/DatePicker.tsx +0 -217
  141. package/packages/shared-components/src/FormFields/DatePicker/Skeleton.tsx +0 -28
  142. package/packages/shared-components/src/FormFields/DatePicker/index.ts +0 -1
  143. package/packages/shared-components/src/FormFields/DateRangePicker/DateRangePicker.tsx +0 -96
  144. package/packages/shared-components/src/FormFields/DateRangePicker/Skeleton.tsx +0 -38
  145. package/packages/shared-components/src/FormFields/DateRangePicker/index.ts +0 -1
  146. package/packages/shared-components/src/FormFields/DateTimePicker/DateTimePicker.tsx +0 -250
  147. package/packages/shared-components/src/FormFields/DateTimePicker/Skeleton.tsx +0 -24
  148. package/packages/shared-components/src/FormFields/DateTimePicker/index.ts +0 -1
  149. package/packages/shared-components/src/FormFields/FileUpload/FileNames.tsx +0 -32
  150. package/packages/shared-components/src/FormFields/FileUpload/FileUpload.styled.tsx +0 -22
  151. package/packages/shared-components/src/FormFields/FileUpload/FileUpload.tsx +0 -157
  152. package/packages/shared-components/src/FormFields/FileUpload/Skeleton.tsx +0 -21
  153. package/packages/shared-components/src/FormFields/FileUpload/UploadedFileName.tsx +0 -27
  154. package/packages/shared-components/src/FormFields/FileUpload/index.ts +0 -2
  155. package/packages/shared-components/src/FormFields/ImageUpload/ImageUpload.styled.tsx +0 -16
  156. package/packages/shared-components/src/FormFields/ImageUpload/ImageUpload.tsx +0 -181
  157. package/packages/shared-components/src/FormFields/ImageUpload/ImageUploadView.tsx +0 -65
  158. package/packages/shared-components/src/FormFields/ImageUpload/PhotoCaptureDialog.tsx +0 -74
  159. package/packages/shared-components/src/FormFields/ImageUpload/Skeleton.tsx +0 -31
  160. package/packages/shared-components/src/FormFields/ImageUpload/index.ts +0 -2
  161. package/packages/shared-components/src/FormFields/ListItemButton/ListItemButton.styled.tsx +0 -22
  162. package/packages/shared-components/src/FormFields/ListItemButton/ListItemButton.tsx +0 -52
  163. package/packages/shared-components/src/FormFields/ListItemButton/index.ts +0 -1
  164. package/packages/shared-components/src/FormFields/PasswordField/PasswordField.tsx +0 -50
  165. package/packages/shared-components/src/FormFields/PasswordField/index.ts +0 -1
  166. package/packages/shared-components/src/FormFields/RadioGroupField/RadioGroupField.tsx +0 -105
  167. package/packages/shared-components/src/FormFields/RadioGroupField/Skeleton.tsx +0 -26
  168. package/packages/shared-components/src/FormFields/RadioGroupField/index.ts +0 -1
  169. package/packages/shared-components/src/FormFields/SearchField/SearchField.tsx +0 -21
  170. package/packages/shared-components/src/FormFields/SearchField/index.ts +0 -1
  171. package/packages/shared-components/src/FormFields/Switch/Skeleton.tsx +0 -12
  172. package/packages/shared-components/src/FormFields/Switch/Switch.tsx +0 -33
  173. package/packages/shared-components/src/FormFields/Switch/index.ts +0 -1
  174. package/packages/shared-components/src/FormFields/TextField/Skeleton.tsx +0 -31
  175. package/packages/shared-components/src/FormFields/TextField/TextField.tsx +0 -92
  176. package/packages/shared-components/src/FormFields/TextField/index.ts +0 -1
  177. package/packages/shared-components/src/FormFields/TimeField/Skeleton.tsx +0 -24
  178. package/packages/shared-components/src/FormFields/TimeField/TimeField.tsx +0 -120
  179. package/packages/shared-components/src/FormFields/TimeField/index.ts +0 -1
  180. package/packages/shared-components/src/FormFields/TimePicker/Skeleton.tsx +0 -24
  181. package/packages/shared-components/src/FormFields/TimePicker/TimePicker.tsx +0 -168
  182. package/packages/shared-components/src/FormFields/TimePicker/index.ts +0 -1
  183. package/packages/shared-components/src/FormFields/index.ts +0 -13
  184. package/packages/shared-components/src/Indicator/Indicator.tsx +0 -18
  185. package/packages/shared-components/src/Indicator/SeverityIndicator.tsx +0 -34
  186. package/packages/shared-components/src/Indicator/index.ts +0 -2
  187. package/packages/shared-components/src/Layouts/FormContainer.tsx +0 -6
  188. package/packages/shared-components/src/Layouts/FormGridLayout.tsx +0 -27
  189. package/packages/shared-components/src/Layouts/FormRow/FormRow.styled.tsx +0 -39
  190. package/packages/shared-components/src/Layouts/FormRow/FormRow.tsx +0 -20
  191. package/packages/shared-components/src/Layouts/FormRow/index.ts +0 -1
  192. package/packages/shared-components/src/Layouts/FormSection.tsx +0 -22
  193. package/packages/shared-components/src/Layouts/index.ts +0 -4
  194. package/packages/shared-components/src/Loader/FacebookCircularProgress.tsx +0 -41
  195. package/packages/shared-components/src/Loader/index.ts +0 -1
  196. package/packages/shared-components/src/PadBox/PadBox.tsx +0 -21
  197. package/packages/shared-components/src/PadBox/index.ts +0 -1
  198. package/packages/shared-components/src/Pagination/Pagination.tsx +0 -42
  199. package/packages/shared-components/src/Pagination/index.ts +0 -1
  200. package/packages/shared-components/src/Stepper/Stepper.tsx +0 -54
  201. package/packages/shared-components/src/Stepper/StepperV2.tsx +0 -115
  202. package/packages/shared-components/src/Stepper/StepperV3.tsx +0 -72
  203. package/packages/shared-components/src/Stepper/index.ts +0 -3
  204. package/packages/shared-components/src/Svgs/AppLogo/AppLogoMedium.tsx +0 -65
  205. package/packages/shared-components/src/Svgs/AppLogo/AppLogoSmall.tsx +0 -48
  206. package/packages/shared-components/src/Svgs/ArrowUp.tsx +0 -11
  207. package/packages/shared-components/src/Svgs/Company/CompanyBanner.tsx +0 -480
  208. package/packages/shared-components/src/Svgs/Company/index.ts +0 -1
  209. package/packages/shared-components/src/Svgs/Drawer/SettingIcon.tsx +0 -31
  210. package/packages/shared-components/src/Svgs/Drawer/SvgBankConfig.tsx +0 -36
  211. package/packages/shared-components/src/Svgs/Drawer/SvgConfiguration.tsx +0 -16
  212. package/packages/shared-components/src/Svgs/Drawer/SvgPayroll.tsx +0 -32
  213. package/packages/shared-components/src/Svgs/Drawer/SvgsEmployees.tsx +0 -25
  214. package/packages/shared-components/src/Svgs/Drawer/SvgsOrganization.tsx +0 -36
  215. package/packages/shared-components/src/Svgs/Drawer/SvgsTransaction.tsx +0 -81
  216. package/packages/shared-components/src/Svgs/Drawer/index.ts +0 -7
  217. package/packages/shared-components/src/Svgs/FormAction.tsx +0 -118
  218. package/packages/shared-components/src/Svgs/ImportExcelSuccessIcon.tsx +0 -54
  219. package/packages/shared-components/src/Svgs/LogoIcon.tsx +0 -74
  220. package/packages/shared-components/src/Svgs/SvgAdd.tsx +0 -28
  221. package/packages/shared-components/src/Svgs/SvgCalendar.tsx +0 -89
  222. package/packages/shared-components/src/Svgs/SvgConfigure.tsx +0 -51
  223. package/packages/shared-components/src/Svgs/SvgDelete.tsx +0 -55
  224. package/packages/shared-components/src/Svgs/SvgDownload.tsx +0 -20
  225. package/packages/shared-components/src/Svgs/SvgEmail.tsx +0 -24
  226. package/packages/shared-components/src/Svgs/SvgFilterList.tsx +0 -19
  227. package/packages/shared-components/src/Svgs/SvgNoLogo.tsx +0 -66
  228. package/packages/shared-components/src/Svgs/SvgNoSign.tsx +0 -28
  229. package/packages/shared-components/src/Svgs/SvgPhone.tsx +0 -16
  230. package/packages/shared-components/src/Svgs/SvgsDrop.tsx +0 -44
  231. package/packages/shared-components/src/Svgs/SvgsEdit.tsx +0 -42
  232. package/packages/shared-components/src/Svgs/SvgsHistory.tsx +0 -40
  233. package/packages/shared-components/src/Svgs/SvgsHome.tsx +0 -18
  234. package/packages/shared-components/src/Svgs/SvgsIndicator.tsx +0 -24
  235. package/packages/shared-components/src/Svgs/index.ts +0 -14
  236. package/packages/shared-components/src/Tab/Skeleton.tsx +0 -15
  237. package/packages/shared-components/src/Tab/Tabs.tsx +0 -64
  238. package/packages/shared-components/src/Tab/index.ts +0 -1
  239. package/packages/shared-components/src/Timeline/AttendanceStatus.tsx +0 -56
  240. package/packages/shared-components/src/Timeline/Timeline.tsx +0 -171
  241. package/packages/shared-components/src/Timeline/TimelineTrackSegments.tsx +0 -130
  242. package/packages/shared-components/src/Timeline/index.ts +0 -2
  243. package/packages/shared-components/src/Toast/Toast.tsx +0 -59
  244. package/packages/shared-components/src/Toast/ToastBody.tsx +0 -26
  245. package/packages/shared-components/src/Toast/ToastFooterLink.tsx +0 -19
  246. package/packages/shared-components/src/Toast/Toaster.styled.tsx +0 -76
  247. package/packages/shared-components/src/Toast/Toaster.tsx +0 -21
  248. package/packages/shared-components/src/Toast/index.ts +0 -3
  249. package/packages/shared-components/src/Toast/toasts.tsx +0 -28
  250. package/packages/shared-components/src/Toast/types.ts +0 -13
  251. package/packages/shared-components/src/Tooltip/Tooltip.tsx +0 -36
  252. package/packages/shared-components/src/Tooltip/index.ts +0 -1
  253. package/packages/shared-components/src/UserProfileMenu/UserProfileMenu.styled.tsx +0 -33
  254. package/packages/shared-components/src/UserProfileMenu/UserProfileMenu.tsx +0 -168
  255. package/packages/shared-components/src/UserProfileMenu/index.ts +0 -1
  256. package/packages/shared-components/src/index.ts +0 -25
  257. package/packages/shared-components/src/utils/colorVariant.ts +0 -162
  258. package/packages/shared-components/src/utils/date.ts +0 -25
  259. package/packages/shared-components/src/utils/file.ts +0 -20
  260. package/packages/shared-components/src/utils/fileSizeValidate.ts +0 -5
  261. package/packages/shared-components/src/utils/index.ts +0 -9
  262. package/packages/shared-components/src/utils/theme/colorPalette.ts +0 -112
  263. package/packages/shared-components/src/utils/theme/colorPaletteUI.tsx +0 -44
  264. package/packages/shared-components/src/utils/theme/paletteDark.ts +0 -10
  265. package/packages/shared-components/src/utils/theme/paletteLight.ts +0 -31
  266. package/packages/shared-components/src/utils/theme/theme.ts +0 -297
  267. package/packages/shared-components/src/utils/theme/types.ts +0 -18
  268. package/packages/shared-components/src/utils/theme/typography.ts +0 -52
  269. package/packages/shared-components/src/utils/urlToNestedObject.ts +0 -9
  270. package/packages/shared-components/tsconfig.json +0 -8
  271. package/packages/shared-components/tsconfig.lint.json +0 -8
  272. package/packages/shared-components/turbo/generators/config.ts +0 -33
  273. package/packages/shared-components/turbo/generators/templates/component.hbs +0 -8
  274. package/packages/typescript-config/base.json +0 -20
  275. package/packages/typescript-config/nextjs.json +0 -13
  276. package/packages/typescript-config/package.json +0 -9
  277. package/packages/typescript-config/react-library.json +0 -8
  278. package/pnpm-workspace.yaml +0 -3
  279. package/turbo.json +0 -44
@@ -1,94 +0,0 @@
1
- import HomeIcon from "@mui/icons-material/Home";
2
- import InfoIcon from "@mui/icons-material/Info";
3
- import SettingsIcon from "@mui/icons-material/Settings";
4
- import { Box } from "@mui/material";
5
- import { Drawer, type MenuItem } from "@repo/shared-components";
6
- import { Meta, StoryObj } from "@storybook/react";
7
- import { fn } from "@storybook/test";
8
-
9
- const menuItems: MenuItem[] = [
10
- {
11
- key: "home",
12
- title: "Home",
13
- icon: <HomeIcon />,
14
- onClick: fn(),
15
- },
16
- {
17
- key: "settings",
18
- title: "Settings",
19
- icon: <SettingsIcon />,
20
- onClick: fn(),
21
- },
22
- {
23
- key: "about",
24
- title: "About",
25
- icon: <InfoIcon />,
26
- onClick: fn(),
27
- },
28
- ];
29
-
30
- const meta: Meta<typeof Drawer> = {
31
- title: "shared-component/Drawer",
32
- component: Drawer,
33
- tags: ["autodocs"],
34
- argTypes: {
35
- currentPathname: {
36
- options: ["/home", "/settings", "/about"],
37
- control: {
38
- type: "select",
39
- },
40
- },
41
- },
42
- args: {
43
- menuItems,
44
- currentPathname: "/home",
45
- },
46
- render: (args) => {
47
- return (
48
- <Box sx={{ height: "100vh" }}>
49
- <Drawer {...args} />
50
- </Box>
51
- );
52
- },
53
- };
54
-
55
- export default meta;
56
-
57
- type Story = StoryObj<typeof Drawer>;
58
-
59
- export const OpenDrawer: Story = {
60
- args: {
61
- open: true,
62
- },
63
- };
64
- export const ClosedDrawer: Story = {
65
- args: {
66
- open: false,
67
- },
68
- };
69
-
70
- export const DrawerWithSubmenu: Story = {
71
- args: {
72
- open: true,
73
- menuItems: [
74
- ...menuItems,
75
- {
76
- key: "nested",
77
- title: "Nested Menu",
78
- icon: <SettingsIcon />,
79
- menuItems: [
80
- {
81
- key: "nested-1",
82
- title: "Nested Item 1",
83
- onClick: fn(),
84
- },
85
- {
86
- key: "nested-2",
87
- title: "Nested Item 2",
88
- onClick: fn(),
89
- },
90
- ],
91
- },
92
- ],
93
- },
94
- };
@@ -1,88 +0,0 @@
1
- import { FilterList } from "@repo/shared-components";
2
- import { FilterListType } from "@repo/shared-components/src/FilterList/FilterTypeWrapper";
3
- import { Meta, StoryObj } from "@storybook/react";
4
- import { LocalizationProvider } from "@mui/x-date-pickers";
5
- import { AdapterLuxon } from "@mui/x-date-pickers/AdapterLuxon";
6
-
7
- const filterList: FilterListType[] = [
8
- {
9
- label: "Single AutoComplete",
10
- key: "status",
11
- value: "",
12
- type: "autoComplete",
13
- options: [
14
- {
15
- value: "active",
16
- label: "Active",
17
- },
18
- {
19
- value: "pending",
20
- label: "Pending",
21
- },
22
- ],
23
- },
24
- {
25
- label: "Job Title",
26
- key: "jobtitle",
27
- value: "",
28
- type: "text",
29
- },
30
- {
31
- label: "Multi AutoComplete",
32
- key: "persona",
33
- value: "",
34
- type: "autoComplete",
35
- multiSelect: true,
36
- options: [
37
- {
38
- value: "ituser",
39
- label: "IT User",
40
- },
41
- {
42
- value: "itadmin",
43
- label: "IT Admin",
44
- },
45
- ],
46
- },
47
- {
48
- label: "Date",
49
- key: "date",
50
- value: "",
51
- type: "date",
52
- },
53
- {
54
- label: "Date Range",
55
- key: "dateRange",
56
- value: "",
57
- type: "dateRange",
58
- menuInfo: "Start ~ End",
59
- },
60
- {
61
- key: "switch",
62
- label: "Switch",
63
- type: "switch",
64
- value: "",
65
- },
66
- ];
67
-
68
- const meta: Meta<typeof FilterList> = {
69
- title: "shared-component/FilterList/FilterList",
70
- component: FilterList,
71
- tags: ["autodocs"],
72
- decorators: [
73
- (Story) => (
74
- <LocalizationProvider dateAdapter={AdapterLuxon}>
75
- <Story />
76
- </LocalizationProvider>
77
- ),
78
- ],
79
- args: {
80
- filterListItems: filterList,
81
- },
82
- };
83
-
84
- export default meta;
85
-
86
- type Story = StoryObj<typeof FilterList>;
87
-
88
- export const DefaultFilterList: Story = {};
@@ -1,92 +0,0 @@
1
- import { FilterListV2 } from "@repo/shared-components";
2
- import { FilterListType } from "@repo/shared-components/src/FilterList/FilterTypeWrapper";
3
- import { Meta, StoryObj } from "@storybook/react";
4
- import { LocalizationProvider } from "@mui/x-date-pickers";
5
- import { AdapterLuxon } from "@mui/x-date-pickers/AdapterLuxon";
6
- import { fn } from "@storybook/test";
7
-
8
- const filterList: FilterListType[] = [
9
- {
10
- label: "Single AutoComplete",
11
- key: "status",
12
- value: "",
13
- type: "autoComplete",
14
- options: [
15
- {
16
- value: "active",
17
- label: "Active",
18
- },
19
- {
20
- value: "pending",
21
- label: "Pending",
22
- },
23
- ],
24
- },
25
- {
26
- label: "Job Title",
27
- key: "jobtitle",
28
- value: "",
29
- type: "text",
30
- },
31
- {
32
- label: "Multi AutoComplete",
33
- key: "persona",
34
- value: "",
35
- type: "autoComplete",
36
- multiSelect: true,
37
- options: [
38
- {
39
- value: "ituser",
40
- label: "IT User",
41
- },
42
- {
43
- value: "itadmin",
44
- label: "IT Admin",
45
- },
46
- ],
47
- },
48
- {
49
- label: "Date",
50
- key: "date",
51
- value: "",
52
- type: "date",
53
- },
54
- {
55
- label: "Date Range",
56
- key: "dateRange",
57
- value: "",
58
- type: "dateRange",
59
- menuInfo: "Start ~ End",
60
- },
61
- {
62
- key: "switch",
63
- label: "Switch",
64
- type: "switch",
65
- value: "",
66
- },
67
- ];
68
-
69
- const meta: Meta<typeof FilterListV2> = {
70
- title: "shared-component/FilterList/FilterListV2",
71
- component: FilterListV2,
72
- tags: ["autodocs"],
73
- decorators: [
74
- (Story) => (
75
- <LocalizationProvider dateAdapter={AdapterLuxon}>
76
- <Story />
77
- </LocalizationProvider>
78
- ),
79
- ],
80
- args: {
81
- filterListItems: filterList,
82
- onChange: fn(),
83
- onApply: fn(),
84
- onClear: fn(),
85
- },
86
- };
87
-
88
- export default meta;
89
-
90
- type Story = StoryObj<typeof FilterListV2>;
91
-
92
- export const DefaultFilterListV2: Story = {};
@@ -1,87 +0,0 @@
1
- import { Autocomplete } from "@repo/shared-components";
2
- import { Meta, StoryObj } from "@storybook/react";
3
- import { fn } from "@storybook/test";
4
- import { FieldValues, useForm } from "react-hook-form";
5
-
6
- const meta: Meta<typeof Autocomplete> = {
7
- title: "shared-component/FormFields/Autocomplete",
8
- component: Autocomplete,
9
- tags: ["autodocs"],
10
- argTypes: {
11
- disabled: { control: "boolean" },
12
- required: { control: "boolean" },
13
- isShowAvatar: { control: "boolean" },
14
- shouldCloseOnSelect: { control: "boolean" },
15
- label: { control: "text" },
16
- loading: { control: "boolean" },
17
- multiple: { control: "boolean" },
18
- error: { control: "boolean" },
19
- placeholder: { control: "text" },
20
- },
21
- args: {
22
- required: false,
23
- label: "Select Option",
24
- loading: false,
25
- multiple: false,
26
- error: false,
27
- isShowAvatar: false,
28
- shouldCloseOnSelect: false,
29
- disabled: false,
30
- placeholder: "Choose an option",
31
- options: [
32
- {
33
- label: "Option 1",
34
- value: "option1",
35
- avatar:
36
- "https://sixtify.s3.amazonaws.com/1723787550246_androgynous-avatar-non-binary-queer-person.jpg",
37
- },
38
- { label: "Option 2", value: "option2", disabled: true },
39
- { label: "Option 3", value: "option3" },
40
- ],
41
- },
42
- render: (args) => {
43
- const { control } = useForm<FieldValues>({
44
- values: {
45
- example: "",
46
- },
47
- });
48
- return <Autocomplete {...args} name="example" control={control} />;
49
- },
50
- };
51
- export default meta;
52
-
53
- type Story = StoryObj<typeof Autocomplete>;
54
-
55
- export const Default: Story = {};
56
-
57
- export const Disabled: Story = {
58
- args: {
59
- disabled: true,
60
- },
61
- };
62
-
63
- export const WithAction: Story = {
64
- args: {
65
- onAction: fn(),
66
- },
67
- };
68
-
69
- export const MultipleSelection: Story = {
70
- args: {
71
- multiple: true,
72
- },
73
- };
74
-
75
- export const LoadingState: Story = {
76
- args: {
77
- loading: true,
78
- },
79
- };
80
-
81
- export const ErrorState: Story = {
82
- args: {
83
- error: true,
84
- required: true,
85
- helperText: "This field is required",
86
- },
87
- };
@@ -1,61 +0,0 @@
1
- import { CheckBox } from "@repo/shared-components";
2
- import { Meta, StoryObj } from "@storybook/react";
3
- import { FieldValues, useForm } from "react-hook-form";
4
-
5
- const meta: Meta<typeof CheckBox> = {
6
- title: "shared-component/FormFields/CheckBox",
7
- component: CheckBox,
8
- tags: ["autodocs"],
9
- argTypes: {
10
- size: {
11
- options: ["small", "medium", "large"],
12
- control: {
13
- type: "select",
14
- },
15
- },
16
- disabled: { control: "boolean" },
17
- loading: { control: "boolean" },
18
- },
19
- args: {
20
- size: "medium",
21
- loading: false,
22
- disabled: false,
23
- },
24
- render: (args) => {
25
- const { control } = useForm<FieldValues>({
26
- defaultValues: {
27
- example: false,
28
- },
29
- });
30
- return <CheckBox {...args} name="example" control={control} />;
31
- },
32
- };
33
- export default meta;
34
-
35
- type Story = StoryObj<typeof CheckBox>;
36
-
37
- export const Default: Story = {};
38
-
39
- export const Disabled: Story = {
40
- args: {
41
- disabled: true,
42
- },
43
- };
44
-
45
- export const LoadingState: Story = {
46
- args: {
47
- loading: true,
48
- },
49
- };
50
-
51
- export const SmallSize: Story = {
52
- args: {
53
- size: "small",
54
- },
55
- };
56
-
57
- export const LargeSize: Story = {
58
- args: {
59
- size: "large",
60
- },
61
- };
@@ -1,98 +0,0 @@
1
- import { LocalizationProvider } from "@mui/x-date-pickers";
2
- import { AdapterLuxon } from "@mui/x-date-pickers/AdapterLuxon";
3
- import { DatePicker, dateFormats } from "@repo/shared-components";
4
- import { Meta, StoryObj } from "@storybook/react";
5
- import { DateTime } from "luxon";
6
- import { FieldValues, useForm } from "react-hook-form";
7
-
8
- const meta: Meta<typeof DatePicker> = {
9
- title: "shared-component/FormFields/DatePicker",
10
- component: DatePicker,
11
- tags: ["autodocs"],
12
- decorators: [
13
- (Story) => (
14
- <LocalizationProvider dateAdapter={AdapterLuxon}>
15
- <Story />
16
- </LocalizationProvider>
17
- ),
18
- ],
19
- argTypes: {
20
- label: { control: "text" },
21
- required: { control: "boolean" },
22
- disabled: { control: "boolean" },
23
- readOnly: { control: "boolean" },
24
- error: { control: "boolean" },
25
- helperText: { control: "text" },
26
- loading: { control: "boolean" },
27
- format: {
28
- options: [dateFormats.dateWithISO8601, dateFormats.dateWithEuropean],
29
- control: { type: "select" },
30
- },
31
- },
32
- render: (args) => {
33
- const { control } = useForm<FieldValues>({
34
- defaultValues: {
35
- dateField: DateTime.now().toISODate(),
36
- },
37
- });
38
- return <DatePicker {...args} name="dateField" control={control} />;
39
- },
40
- args: {
41
- label: "Select Date",
42
- required: false,
43
- disabled: false,
44
- readOnly: false,
45
- error: false,
46
- helperText: "",
47
- loading: false,
48
- format: dateFormats.dateWithEuropean,
49
- },
50
- };
51
-
52
- export default meta;
53
-
54
- type Story = StoryObj<typeof DatePicker>;
55
-
56
- export const DefaultDatePicker: Story = {
57
- args: {
58
- label: "Select Date",
59
- },
60
- };
61
-
62
- export const RequiredDatePicker: Story = {
63
- args: {
64
- label: "Required Date",
65
- required: true,
66
- helperText: "This field is required",
67
- },
68
- };
69
-
70
- export const DisabledDatePicker: Story = {
71
- args: {
72
- label: "Disabled Date",
73
- disabled: true,
74
- helperText: "This field is disabled",
75
- },
76
- };
77
-
78
- export const LoadingDatePicker: Story = {
79
- args: {
80
- label: "Loading Date Picker",
81
- loading: true,
82
- },
83
- };
84
-
85
- export const ErrorDatePicker: Story = {
86
- args: {
87
- label: "Error Date Picker",
88
- error: true,
89
- helperText: "Invalid date",
90
- },
91
- };
92
-
93
- export const ReadOnlyDatePicker: Story = {
94
- args: {
95
- label: "Read-Only Date Picker",
96
- readOnly: true,
97
- },
98
- };
@@ -1,37 +0,0 @@
1
- import { LocalizationProvider } from "@mui/x-date-pickers";
2
- import { AdapterLuxon } from "@mui/x-date-pickers/AdapterLuxon";
3
- import { DateRangePicker, dateFormats } from "@repo/shared-components";
4
- import { Meta, StoryObj } from "@storybook/react";
5
- import { DateTime } from "luxon";
6
- import { FieldValues, useForm } from "react-hook-form";
7
-
8
- const meta: Meta<typeof DateRangePicker> = {
9
- title: "shared-component/FormFields/DateRangePicker",
10
- component: DateRangePicker,
11
- tags: ["autodocs"],
12
- decorators: [
13
- (Story) => (
14
- <LocalizationProvider dateAdapter={AdapterLuxon}>
15
- <Story />
16
- </LocalizationProvider>
17
- ),
18
- ],
19
- render: (args) => {
20
- const { control } = useForm<FieldValues>({
21
- defaultValues: {
22
- dateField: DateTime.now().toISODate(),
23
- },
24
- });
25
- return <DateRangePicker {...args} name="dateField" control={control} />;
26
- },
27
- };
28
-
29
- export default meta;
30
-
31
- type Story = StoryObj<typeof DateRangePicker>;
32
-
33
- export const DefaultDateRangerPicker: Story = {
34
- args: {
35
- label: "Select Date",
36
- },
37
- };
@@ -1,83 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { FileUpload } from "@repo/shared-components";
3
- import { useForm, FieldValues } from "react-hook-form";
4
-
5
- const meta: Meta<typeof FileUpload> = {
6
- title: "shared-component/FormFields/FileUpload",
7
- component: FileUpload,
8
- tags: ["autodocs"],
9
- argTypes: {
10
- label: { control: "text" },
11
- multiple: { control: "boolean" },
12
- loading: { control: "boolean" },
13
- isDisabled: { control: "boolean" },
14
- error: { control: "boolean" },
15
- helperText: { control: "text" },
16
- size: { control: "number" },
17
- accept: { control: "text" },
18
- },
19
- render: (args) => {
20
- const { control, setError } = useForm<FieldValues>();
21
- return (
22
- <FileUpload
23
- {...args}
24
- control={control}
25
- name="fileUpload"
26
- setError={setError}
27
- uploadedFiles={[]}
28
- />
29
- );
30
- },
31
- args: {
32
- label: "Upload Your Files",
33
- multiple: false,
34
- size: 10,
35
- accept: ".png,.jpg,.jpeg,.pdf",
36
- uploadedFiles: [],
37
- },
38
- };
39
-
40
- export default meta;
41
-
42
- type Story = StoryObj<typeof FileUpload>;
43
-
44
- export const DefaultFileUpload: Story = {
45
- args: {
46
- label: "Upload Files",
47
- isDisabled: false,
48
- error: false,
49
- helperText: "",
50
- multiple: false,
51
- },
52
- };
53
-
54
- export const MultipleFileUpload: Story = {
55
- args: {
56
- label: "Upload Multiple Files",
57
- isDisabled: false,
58
- multiple: true,
59
- },
60
- };
61
-
62
- export const DisabledFileUpload: Story = {
63
- args: {
64
- label: "File Upload (Disabled)",
65
- isDisabled: true,
66
- multiple: false,
67
- },
68
- };
69
-
70
- export const LoadingFileUpload: Story = {
71
- args: {
72
- label: "File Upload (Loading)",
73
- loading: true,
74
- },
75
- };
76
-
77
- export const FileUploadWithError: Story = {
78
- args: {
79
- label: "File Upload with Error",
80
- error: true,
81
- helperText: "File size exceeded or invalid file type",
82
- },
83
- };
@@ -1,69 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { ImageUpload } from "@repo/shared-components";
3
-
4
- const meta: Meta<typeof ImageUpload> = {
5
- title: "shared-component/FormFields/ImageUpload",
6
- component: ImageUpload,
7
- tags: ["autodocs"],
8
- argTypes: {
9
- label: { control: "text" },
10
- isUploading: { control: "boolean" },
11
- variant: {
12
- control: { type: "select" },
13
- options: ["square", "circle"],
14
- },
15
- isCapture: { control: "boolean" },
16
- loading: { control: "boolean" },
17
- subTitle: { control: "text" },
18
- },
19
- args: {
20
- label: "Profile Picture",
21
- subTitle: "PNG, JPEG under 5 MB",
22
- isUploading: false,
23
- variant: "square",
24
- isCapture: false,
25
- },
26
- };
27
-
28
- export default meta;
29
-
30
- type Story = StoryObj<typeof ImageUpload>;
31
-
32
- export const DefaultImageUpload: Story = {
33
- args: {
34
- label: "Upload Profile Picture",
35
- isUploading: false,
36
- variant: "square",
37
- },
38
- };
39
-
40
- export const LoadingImageUpload: Story = {
41
- args: {
42
- label: "Uploading Profile Picture",
43
- isUploading: true,
44
- loading: true,
45
- },
46
- };
47
-
48
- export const CircularImageUpload: Story = {
49
- args: {
50
- label: "Upload Circular Profile Picture",
51
- variant: "circle",
52
- },
53
- };
54
-
55
- export const ImageUploadWithCapture: Story = {
56
- args: {
57
- label: "Upload Profile Picture with Capture",
58
- isCapture: true,
59
- },
60
- };
61
-
62
- export const ImageUploadWithDefaultImage: Story = {
63
- args: {
64
- label: "Edit Profile Picture",
65
- defaultValue:
66
- "https://fps.cdnpk.net/images/home/subhome-ai.webp?w=649&h=649",
67
- isCapture: true,
68
- },
69
- };