@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,59 +0,0 @@
1
- import { Stack } from "@mui/material";
2
- import {
3
- DeleteAction,
4
- EditAction,
5
- ListItemButton,
6
- } from "@repo/shared-components";
7
- import { Meta, StoryObj } from "@storybook/react";
8
-
9
- const meta: Meta<typeof ListItemButton> = {
10
- title: "shared-component/FormFields/ListItemButton",
11
- component: ListItemButton,
12
- tags: ["autodocs"],
13
- argTypes: {
14
- label: { control: "text" },
15
- selected: { control: "boolean" },
16
- actions: { control: "object" },
17
- },
18
- args: {
19
- label: "List Item",
20
- selected: false,
21
- },
22
- };
23
-
24
- export default meta;
25
-
26
- type Story = StoryObj<typeof ListItemButton>;
27
-
28
- export const DefaultListItemButton: Story = {
29
- args: {
30
- label: "Default List Item",
31
- selected: false,
32
- },
33
- };
34
-
35
- export const SelectedListItemButton: Story = {
36
- args: {
37
- label: "Selected List Item",
38
- selected: true,
39
- },
40
- };
41
-
42
- export const ListItemButtonWithActions: Story = {
43
- args: {
44
- label: "List Item with Actions",
45
- actions: (
46
- <Stack direction="row">
47
- <EditAction />
48
- <DeleteAction />
49
- </Stack>
50
- ),
51
- },
52
- };
53
-
54
- export const ListItemButtonWithLongLabel: Story = {
55
- args: {
56
- label:
57
- "This is a list item with a very long label that should be truncated or shown in a tooltip",
58
- },
59
- };
@@ -1,170 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { RadioGroupField, TextField } from "@repo/shared-components";
3
- import { useForm, FieldValues } from "react-hook-form";
4
- import { Box, Stack, Typography } from "@mui/material";
5
-
6
- const meta: Meta<typeof RadioGroupField> = {
7
- title: "shared-component/FormFields/RadioGroupField",
8
- component: RadioGroupField,
9
- tags: ["autodocs"],
10
- argTypes: {
11
- label: {
12
- control: "text",
13
- },
14
- options: {
15
- control: "object",
16
- },
17
- loading: {
18
- control: "boolean",
19
- },
20
- size: {
21
- options: ["small", "medium"],
22
- control: { type: "select" },
23
- },
24
- direction: {
25
- options: ["row", "column"],
26
- control: { type: "select" },
27
- },
28
- color: {
29
- options: ["primary", "secondary"],
30
- control: { type: "select" },
31
- },
32
- },
33
- render: (args) => {
34
- const { control } = useForm<FieldValues>({
35
- defaultValues: {
36
- radioOption: "",
37
- },
38
- });
39
- return <RadioGroupField {...args} control={control} name="radioOption" />;
40
- },
41
- args: {
42
- label: "Choose an option",
43
- options: [
44
- { values: "option1", label: "Option 1", disabled: false },
45
- { values: "option2", label: "Option 2", disabled: false },
46
- { values: "option3", label: "Option 3", disabled: false },
47
- ],
48
- },
49
- };
50
-
51
- export default meta;
52
-
53
- type Story = StoryObj<typeof RadioGroupField>;
54
-
55
- export const DefaultRadioGroupField: Story = {
56
- args: {
57
- label: "Default Radio Group",
58
- size: "small",
59
- color: "secondary",
60
- loading: false,
61
- },
62
- };
63
-
64
- export const DisabledRadioOptions: Story = {
65
- args: {
66
- label: "Radio Group with Disabled Option",
67
- size: "small",
68
- color: "primary",
69
- options: [
70
- { values: "option1", label: "Option 1", disabled: true },
71
- { values: "option2", label: "Option 2", disabled: true },
72
- { values: "option3", label: "Option 3", disabled: true },
73
- ],
74
- },
75
- };
76
-
77
- export const LoadingRadioGroupField: Story = {
78
- args: {
79
- label: "Loading Radio Group",
80
- loading: true,
81
- size: "small",
82
- color: "secondary",
83
- },
84
- };
85
-
86
- export const RequiredRadioGroupField: Story = {
87
- args: {
88
- label: "Required Radio Group",
89
- size: "medium",
90
- color: "primary",
91
- required: true,
92
- },
93
- };
94
-
95
- export const RadioGroupFieldColumnDirection: Story = {
96
- args: {
97
- label: "Required Radio Group",
98
- size: "medium",
99
- color: "primary",
100
- required: true,
101
- },
102
- };
103
-
104
- export const RadioGroupFieldWithReactNodeOptions: Story = {
105
- args: {
106
- size: "medium",
107
- color: "primary",
108
- label: "",
109
- options: [
110
- {
111
- values: "option1",
112
- label: (
113
- <Typography variant="body1">Radio Button with TextField</Typography>
114
- ),
115
- disabled: false,
116
- },
117
- ],
118
- },
119
- render: (args) => {
120
- const { control } = useForm<FieldValues>({
121
- defaultValues: {
122
- textFieldValue: "",
123
- radioOption: "",
124
- },
125
- });
126
-
127
- return (
128
- <Stack gap="10px" direction="row">
129
- <RadioGroupField {...args} control={control} name="radioOption" />
130
- <TextField
131
- name="textFieldValue"
132
- control={control}
133
- variant="outlined"
134
- placeholder="Enter additional details"
135
- />
136
- </Stack>
137
- );
138
- },
139
- };
140
-
141
- export const RadioGroupFieldPropsWithLabelDescription: Story = {
142
- args: {
143
- size: "medium",
144
- color: "primary",
145
- label: "",
146
- options: [
147
- {
148
- values: "option1",
149
- label: (
150
- <Stack gap="5px">
151
- <Typography variant="body1">
152
- Radio Button with Description
153
- </Typography>
154
- <Typography variant="body2">Additional details</Typography>
155
- </Stack>
156
- ),
157
- disabled: false,
158
- },
159
- ],
160
- },
161
- render: (args) => {
162
- const { control } = useForm<FieldValues>({
163
- defaultValues: {
164
- example: "",
165
- },
166
- });
167
-
168
- return <RadioGroupField {...args} name="example" control={control} />;
169
- },
170
- };
@@ -1,72 +0,0 @@
1
- import { SearchField } 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 SearchField> = {
6
- title: "shared-component/FormFields/SearchField",
7
- component: SearchField,
8
- tags: ["autodocs"],
9
- argTypes: {
10
- label: {
11
- control: "text",
12
- },
13
- placeholder: {
14
- control: "text",
15
- },
16
- required: {
17
- control: "boolean",
18
- },
19
- loading: {
20
- control: "boolean",
21
- },
22
- disabled: {
23
- control: "boolean",
24
- },
25
- },
26
- render: (args) => {
27
- const { control } = useForm<FieldValues>({
28
- defaultValues: {
29
- search: "",
30
- },
31
- });
32
- return <SearchField {...args} name="search" control={control} />;
33
- },
34
- args: {
35
- placeholder: "Search...",
36
- },
37
- };
38
-
39
- export default meta;
40
-
41
- type Story = StoryObj<typeof SearchField>;
42
-
43
- export const DefaultSearchField: Story = {
44
- args: {
45
- label: "Default Search",
46
- required: false,
47
- disabled: false,
48
- },
49
- };
50
-
51
- export const DisabledSearchField: Story = {
52
- args: {
53
- label: "Disabled Search",
54
- disabled: true,
55
- },
56
- };
57
-
58
- export const LoadingSearchField: Story = {
59
- args: {
60
- label: "Loading Search",
61
- loading: true,
62
- disabled: false,
63
- },
64
- };
65
-
66
- export const RequiredSearchField: Story = {
67
- args: {
68
- label: "Required Search",
69
- required: true,
70
- disabled: false,
71
- },
72
- };
@@ -1,111 +0,0 @@
1
- import { TextField } 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 TextField> = {
6
- title: "shared-component/FormFields/TextField",
7
- component: TextField,
8
- tags: ["autodocs"],
9
- argTypes: {
10
- type: {
11
- options: ["text", "number", "password"],
12
- control: { type: "select" },
13
- },
14
- label: {
15
- control: "text",
16
- },
17
- placeholder: {
18
- control: "text",
19
- },
20
- loading: {
21
- control: "boolean",
22
- },
23
- required: {
24
- control: "boolean",
25
- },
26
- isCapitalize: {
27
- control: "boolean",
28
- },
29
- isTrimStartDisabled: {
30
- control: "boolean",
31
- },
32
- },
33
- render: (args) => {
34
- const { control } = useForm<FieldValues>({
35
- values: {
36
- example: "",
37
- },
38
- });
39
- return <TextField {...args} name="example" control={control} />;
40
- },
41
- args: {
42
- placeholder: "Type here...",
43
- },
44
- };
45
-
46
- export default meta;
47
-
48
- type Story = StoryObj<typeof TextField>;
49
-
50
- export const DefaultTextField: Story = {
51
- args: {
52
- label: "Default Label",
53
- type: "text",
54
- isCapitalize: false,
55
- isTrimStartDisabled: false,
56
- required: false,
57
- disabled: false,
58
- },
59
- };
60
-
61
- export const NumberField: Story = {
62
- args: {
63
- label: "Number Field",
64
- type: "number",
65
- isCapitalize: false,
66
- isTrimStartDisabled: true,
67
- required: false,
68
- disabled: false,
69
- },
70
- };
71
-
72
- export const CapitalizedTextField: Story = {
73
- args: {
74
- label: "Capitalized Text Field",
75
- type: "text",
76
- isCapitalize: true,
77
- isTrimStartDisabled: false,
78
- required: false,
79
- disabled: false,
80
- },
81
- };
82
-
83
- export const LoadingTextField: Story = {
84
- args: {
85
- label: "Loading State",
86
- loading: true,
87
- required: false,
88
- disabled: true,
89
- },
90
- };
91
-
92
- export const PasswordField: Story = {
93
- args: {
94
- label: "Password",
95
- type: "password",
96
- isCapitalize: false,
97
- isTrimStartDisabled: false,
98
- required: true,
99
- },
100
- };
101
- export const TextInputValidation: Story = {
102
- args: {
103
- label: "Text Input Validation",
104
- type: "text",
105
- isCapitalize: false,
106
- isTrimStartDisabled: false,
107
- required: true,
108
- error: true,
109
- helperText: "This filed is required",
110
- },
111
- };
@@ -1,82 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { useForm, FieldValues } from "react-hook-form";
3
- import { DateTime } from "luxon";
4
- import { LocalizationProvider } from "@mui/x-date-pickers";
5
- import { AdapterLuxon } from "@mui/x-date-pickers/AdapterLuxon";
6
- import { TimeField } from "@repo/shared-components";
7
-
8
- const meta: Meta<typeof TimeField> = {
9
- title: "shared-component/FormFields/TimeField",
10
- component: TimeField,
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: ["HH:mm", "hh:mm a"],
29
- control: { type: "select" },
30
- },
31
- },
32
- render: (args) => {
33
- const { control } = useForm<FieldValues>({
34
- defaultValues: {
35
- timeField: DateTime.now().toISOTime(),
36
- },
37
- });
38
- return <TimeField {...args} name="timeField" control={control} />;
39
- },
40
- args: {
41
- label: "Select Time",
42
- required: false,
43
- disabled: false,
44
- readOnly: false,
45
- error: false,
46
- helperText: "",
47
- loading: false,
48
- format: "HH:mm",
49
- },
50
- };
51
-
52
- export default meta;
53
-
54
- type Story = StoryObj<typeof TimeField>;
55
-
56
- export const DefaultTimeField: Story = {
57
- args: {
58
- label: "Select Time",
59
- },
60
- };
61
-
62
- export const RequiredTimeField: Story = {
63
- args: {
64
- label: "Required Time",
65
- required: true,
66
- helperText: "This field is required",
67
- },
68
- };
69
-
70
- export const DisabledTimeField: Story = {
71
- args: {
72
- label: "Disabled Time Picker",
73
- disabled: true,
74
- },
75
- };
76
-
77
- export const ReadOnlyTimeField: Story = {
78
- args: {
79
- label: "Read-Only Time Picker",
80
- readOnly: true,
81
- },
82
- };
@@ -1,82 +0,0 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { useForm, FieldValues } from "react-hook-form";
3
- import { DateTime } from "luxon";
4
- import { LocalizationProvider } from "@mui/x-date-pickers";
5
- import { AdapterLuxon } from "@mui/x-date-pickers/AdapterLuxon";
6
- import { TimePicker } from "@repo/shared-components";
7
-
8
- const meta: Meta<typeof TimePicker> = {
9
- title: "shared-component/FormFields/TimePicker",
10
- component: TimePicker,
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: ["HH:mm", "hh:mm a"],
29
- control: { type: "select" },
30
- },
31
- },
32
- render: (args) => {
33
- const { control } = useForm<FieldValues>({
34
- defaultValues: {
35
- timeField: DateTime.now().toISOTime(),
36
- },
37
- });
38
- return <TimePicker {...args} name="timeField" control={control} />;
39
- },
40
- args: {
41
- label: "Select Time",
42
- required: false,
43
- disabled: false,
44
- readOnly: false,
45
- error: false,
46
- helperText: "",
47
- loading: false,
48
- format: "HH:mm",
49
- },
50
- };
51
-
52
- export default meta;
53
-
54
- type Story = StoryObj<typeof TimePicker>;
55
-
56
- export const DefaultTimePicker: Story = {
57
- args: {
58
- label: "Select Time",
59
- },
60
- };
61
-
62
- export const RequiredTimePicker: Story = {
63
- args: {
64
- label: "Required Time",
65
- required: true,
66
- helperText: "This field is required",
67
- },
68
- };
69
-
70
- export const DisabledTimePicker: Story = {
71
- args: {
72
- label: "Disabled Time Picker",
73
- disabled: true,
74
- },
75
- };
76
-
77
- export const ReadOnlyTimePicker: Story = {
78
- args: {
79
- label: "Read-Only Time Picker",
80
- readOnly: true,
81
- },
82
- };
@@ -1,33 +0,0 @@
1
- import { Indicator } from "@repo/shared-components";
2
- import { Meta, StoryObj } from "@storybook/react";
3
-
4
- const meta: Meta<typeof Indicator> = {
5
- title: "shared-component/Indicator",
6
- component: Indicator,
7
- tags: ["autodocs"],
8
- argTypes: {
9
- variant: {
10
- control: "select",
11
- options: [
12
- "holiday",
13
- "weekly_off",
14
- "paid_leave",
15
- "absent",
16
- "unpaid_leave",
17
- ],
18
- },
19
- },
20
- args: {
21
- variant: "holiday",
22
- },
23
- };
24
-
25
- export default meta;
26
-
27
- type Story = StoryObj<typeof Indicator>;
28
-
29
- export const DefaultIndicator: Story = {
30
- args: {
31
- label: "Holiday",
32
- },
33
- };
@@ -1,27 +0,0 @@
1
- import { SeverityIndicator } from "@repo/shared-components";
2
- import { Meta, StoryObj } from "@storybook/react";
3
-
4
- const meta: Meta<typeof SeverityIndicator> = {
5
- title: "shared-component/Indicator/SeverityIndicator",
6
- component: SeverityIndicator,
7
- tags: ["autodocs"],
8
- argTypes: {
9
- isBackground: {
10
- options: [true, false],
11
- control: {
12
- type: "select",
13
- },
14
- },
15
- },
16
- args: {
17
- label: "Present",
18
- color: "hsla(136, 59%, 49%, 1)",
19
- isBackground: false,
20
- },
21
- };
22
-
23
- export default meta;
24
-
25
- type Story = StoryObj<typeof SeverityIndicator>;
26
-
27
- export const DefaultSeverityIndicator: Story = {};
@@ -1,45 +0,0 @@
1
- import { Box, Typography } from "@mui/material";
2
- import { FormRow } from "@repo/shared-components";
3
- import { Meta, StoryObj } from "@storybook/react";
4
-
5
- const meta: Meta<typeof FormRow> = {
6
- title: "shared-component/Layouts/FormRow",
7
- component: FormRow,
8
- tags: ["autodocs"],
9
- argTypes: {
10
- maxColumn: {
11
- options: [1, 2, 3],
12
- control: {
13
- type: "select",
14
- },
15
- },
16
- },
17
- render: (args) => {
18
- const childrenArray = Array.from({ length: args.maxColumn || 1 });
19
-
20
- return (
21
- <FormRow {...args}>
22
- {childrenArray.map((_, index) => (
23
- <Box
24
- sx={{ height: "50px", backgroundColor: "lightblue" }}
25
- key={index}
26
- >
27
- <Typography variant="caption">Item {index + 1}</Typography>
28
- </Box>
29
- ))}
30
- </FormRow>
31
- );
32
- },
33
- };
34
-
35
- export default meta;
36
-
37
- type Story = StoryObj<typeof FormRow>;
38
-
39
- export const DefaultFormRow: Story = {};
40
-
41
- export const FullWidthFormRow: Story = {
42
- args: {
43
- fullWidth: true,
44
- },
45
- };