@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.
- package/package.json +7 -2
- package/.github/workflows/deploy-storybook.yml +0 -40
- package/.husky/commit-msg +0 -4
- package/.husky/pre-commit +0 -4
- package/.husky/pre-push +0 -4
- package/.lintstagedrc +0 -5
- package/.prettierignore +0 -11
- package/.prettierrc +0 -22
- package/.vscode/extensions.json +0 -22
- package/.vscode/settings.json +0 -17
- package/apps/docs/.eslintrc.cjs +0 -4
- package/apps/docs/.eslintrc.js +0 -9
- package/apps/docs/.storybook/main.ts +0 -23
- package/apps/docs/.storybook/preview.tsx +0 -27
- package/apps/docs/next-env.d.ts +0 -5
- package/apps/docs/next.config.mjs +0 -4
- package/apps/docs/package.json +0 -38
- package/apps/docs/public/globals.css +0 -25
- package/apps/docs/stories/AgGrid/AgGrid.stories.tsx +0 -69
- package/apps/docs/stories/AppBar/AppBar.stories.tsx +0 -39
- package/apps/docs/stories/Breadcrumbs/Breadcrumbs.stories.tsx +0 -37
- package/apps/docs/stories/Button/ButtonGroup.stories.tsx +0 -99
- package/apps/docs/stories/Button/button.stories.tsx +0 -99
- package/apps/docs/stories/Card/AttendanceCard.stories.tsx +0 -37
- package/apps/docs/stories/Card/Card.stories.tsx +0 -39
- package/apps/docs/stories/Charts/PieChart.stories.tsx +0 -264
- package/apps/docs/stories/Chips/Chip.stories.tsx +0 -141
- package/apps/docs/stories/Chips/ChipWithBorder.stories.tsx +0 -18
- package/apps/docs/stories/Chips/FilterPill.stories.tsx +0 -24
- package/apps/docs/stories/Color/Color.stories.tsx +0 -14
- package/apps/docs/stories/Dialog/ButtomDialog.stories.tsx +0 -47
- package/apps/docs/stories/Dialog/DeleteDialog.stories.tsx +0 -31
- package/apps/docs/stories/Dialog/Dialog.stories.tsx +0 -47
- package/apps/docs/stories/Drawer/Drawer.stories.tsx +0 -94
- package/apps/docs/stories/FilterList/FilterList.stories.tsx +0 -88
- package/apps/docs/stories/FilterList/FilterListV2.stories.tsx +0 -92
- package/apps/docs/stories/FormFields/AutoComplete.stories.tsx +0 -87
- package/apps/docs/stories/FormFields/CheckBox.stories.tsx +0 -61
- package/apps/docs/stories/FormFields/DatePicker.stories.tsx +0 -98
- package/apps/docs/stories/FormFields/DateRangePicker.stories.tsx +0 -37
- package/apps/docs/stories/FormFields/FileUpload.stories.tsx +0 -83
- package/apps/docs/stories/FormFields/ImageUpload.stories.tsx +0 -69
- package/apps/docs/stories/FormFields/ListItemButton.stories.tsx +0 -59
- package/apps/docs/stories/FormFields/RadioGroupField.stories.tsx +0 -170
- package/apps/docs/stories/FormFields/SearchField.stories.tsx +0 -72
- package/apps/docs/stories/FormFields/TextField.stories.tsx +0 -111
- package/apps/docs/stories/FormFields/TimeField.stories.tsx +0 -82
- package/apps/docs/stories/FormFields/TimePicker.stories.tsx +0 -82
- package/apps/docs/stories/Indicator/Indicator.stories.tsx +0 -33
- package/apps/docs/stories/Indicator/SeverityIndicator.stories.tsx +0 -27
- package/apps/docs/stories/Layouts/FormRow.stories.tsx +0 -45
- package/apps/docs/stories/PadBox/PadBox.stories.tsx +0 -49
- package/apps/docs/stories/Stepper/Stepper.stories.tsx +0 -75
- package/apps/docs/stories/Stepper/StepperV2.stories.tsx +0 -44
- package/apps/docs/stories/Timeline/AttendanceStatus.stories.tsx +0 -29
- package/apps/docs/stories/Timeline/Timeline.stories.tsx +0 -38
- package/apps/docs/stories/Tooltip/Tooltip.stories.tsx +0 -30
- package/apps/docs/stories/UserProfileMenu/UserProfileMenu.stories.tsx +0 -112
- package/apps/docs/tsconfig.json +0 -19
- package/commitlint.config.cjs +0 -6
- package/index.ts +0 -1
- package/packages/eslint-config/README.md +0 -3
- package/packages/eslint-config/library.js +0 -88
- package/packages/eslint-config/next.js +0 -85
- package/packages/eslint-config/package.json +0 -19
- package/packages/eslint-config/react-internal.js +0 -89
- package/packages/shared-components/.eslintrc.js +0 -10
- package/packages/shared-components/package.json +0 -22
- package/packages/shared-components/src/Actions/AddAction.tsx +0 -13
- package/packages/shared-components/src/Actions/CalendarAction.tsx +0 -13
- package/packages/shared-components/src/Actions/ConfigureAction.tsx +0 -13
- package/packages/shared-components/src/Actions/DeleteAction.tsx +0 -13
- package/packages/shared-components/src/Actions/DownloadAction.tsx +0 -13
- package/packages/shared-components/src/Actions/EditAction.tsx +0 -13
- package/packages/shared-components/src/Actions/HistoryAction.tsx +0 -13
- package/packages/shared-components/src/Actions/index.ts +0 -7
- package/packages/shared-components/src/AgGrid/ActionCell/ActionCell.tsx +0 -57
- package/packages/shared-components/src/AgGrid/ActionCell/Popover.tsx +0 -32
- package/packages/shared-components/src/AgGrid/AgGrid.tsx +0 -93
- package/packages/shared-components/src/AgGrid/LoadingCell.tsx +0 -5
- package/packages/shared-components/src/AgGrid/index.ts +0 -3
- package/packages/shared-components/src/AppBar/AppBar.styled.tsx +0 -25
- package/packages/shared-components/src/AppBar/AppBar.tsx +0 -20
- package/packages/shared-components/src/AppBar/index.ts +0 -1
- package/packages/shared-components/src/Breadcrumbs/Breadcrumbs.tsx +0 -76
- package/packages/shared-components/src/Breadcrumbs/index.ts +0 -1
- package/packages/shared-components/src/Button/ActionButton.tsx +0 -38
- package/packages/shared-components/src/Button/Button.tsx +0 -19
- package/packages/shared-components/src/Button/ButtonGroup.tsx +0 -37
- package/packages/shared-components/src/Button/index.ts +0 -3
- package/packages/shared-components/src/Card/AttendanceCard.tsx +0 -51
- package/packages/shared-components/src/Card/Card.tsx +0 -34
- package/packages/shared-components/src/Card/CardItem/CardItem.tsx +0 -33
- package/packages/shared-components/src/Card/CardItem/CardItemValue.tsx +0 -98
- package/packages/shared-components/src/Card/CardItem/index.ts +0 -2
- package/packages/shared-components/src/Card/ProfileCard/ProfileCard.tsx +0 -40
- package/packages/shared-components/src/Card/ProfileCard/ProfileCardItem/ProfileCardBody.tsx +0 -53
- package/packages/shared-components/src/Card/ProfileCard/ProfileCardItem/ProfileCardHeader.tsx +0 -96
- package/packages/shared-components/src/Card/index.ts +0 -6
- package/packages/shared-components/src/Charts/PieChart.tsx +0 -81
- package/packages/shared-components/src/Charts/Skeleton.tsx +0 -36
- package/packages/shared-components/src/Charts/index.ts +0 -1
- package/packages/shared-components/src/Chips/Chip.tsx +0 -26
- package/packages/shared-components/src/Chips/ChipWithBorder.tsx +0 -39
- package/packages/shared-components/src/Chips/FilterPill.tsx +0 -47
- package/packages/shared-components/src/Chips/index.ts +0 -3
- package/packages/shared-components/src/Dialog/BottomDialog.styled.tsx +0 -28
- package/packages/shared-components/src/Dialog/BottomDialog.tsx +0 -37
- package/packages/shared-components/src/Dialog/DeleteDialog.tsx +0 -48
- package/packages/shared-components/src/Dialog/Dialog.tsx +0 -61
- package/packages/shared-components/src/Dialog/index.ts +0 -3
- package/packages/shared-components/src/Drawer/Bullet.tsx +0 -12
- package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerMenuItem.tsx +0 -57
- package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerMenuItemList.tsx +0 -109
- package/packages/shared-components/src/Drawer/CloseDrawer/CloseDrawerSubMenuItemList.tsx +0 -124
- package/packages/shared-components/src/Drawer/CloseDrawer/MenuItem.tsx +0 -0
- package/packages/shared-components/src/Drawer/CloseDrawer/Popover.tsx +0 -45
- package/packages/shared-components/src/Drawer/CloseDrawer/Popper.tsx +0 -43
- package/packages/shared-components/src/Drawer/Drawer.styled.tsx +0 -51
- package/packages/shared-components/src/Drawer/Drawer.tsx +0 -55
- package/packages/shared-components/src/Drawer/MenuItem.tsx +0 -75
- package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerCollapse.tsx +0 -13
- package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerMenuItem.tsx +0 -46
- package/packages/shared-components/src/Drawer/OpenDrawer/OpenDrawerMenuItemList.tsx +0 -197
- package/packages/shared-components/src/Drawer/index.ts +0 -1
- package/packages/shared-components/src/FilterList/FilterList.tsx +0 -172
- package/packages/shared-components/src/FilterList/FilterListV2.tsx +0 -515
- package/packages/shared-components/src/FilterList/FilterPopup.tsx +0 -148
- package/packages/shared-components/src/FilterList/FilterPopupWrapper.tsx +0 -113
- package/packages/shared-components/src/FilterList/FilterTypeWrapper.tsx +0 -58
- package/packages/shared-components/src/FilterList/getFormData.ts +0 -29
- package/packages/shared-components/src/FilterList/index.ts +0 -5
- package/packages/shared-components/src/FormFields/Autocomplete/Autocomplete.tsx +0 -510
- package/packages/shared-components/src/FormFields/Autocomplete/Skeleton.tsx +0 -26
- package/packages/shared-components/src/FormFields/Autocomplete/index.ts +0 -1
- package/packages/shared-components/src/FormFields/CheckBox/CheckBox.styled.tsx +0 -67
- package/packages/shared-components/src/FormFields/CheckBox/CheckBox.tsx +0 -44
- package/packages/shared-components/src/FormFields/CheckBox/Skeleton.tsx +0 -12
- package/packages/shared-components/src/FormFields/CheckBox/index.ts +0 -1
- package/packages/shared-components/src/FormFields/DatePicker/DatePicker.tsx +0 -217
- package/packages/shared-components/src/FormFields/DatePicker/Skeleton.tsx +0 -28
- package/packages/shared-components/src/FormFields/DatePicker/index.ts +0 -1
- package/packages/shared-components/src/FormFields/DateRangePicker/DateRangePicker.tsx +0 -96
- package/packages/shared-components/src/FormFields/DateRangePicker/Skeleton.tsx +0 -38
- package/packages/shared-components/src/FormFields/DateRangePicker/index.ts +0 -1
- package/packages/shared-components/src/FormFields/DateTimePicker/DateTimePicker.tsx +0 -250
- package/packages/shared-components/src/FormFields/DateTimePicker/Skeleton.tsx +0 -24
- package/packages/shared-components/src/FormFields/DateTimePicker/index.ts +0 -1
- package/packages/shared-components/src/FormFields/FileUpload/FileNames.tsx +0 -32
- package/packages/shared-components/src/FormFields/FileUpload/FileUpload.styled.tsx +0 -22
- package/packages/shared-components/src/FormFields/FileUpload/FileUpload.tsx +0 -157
- package/packages/shared-components/src/FormFields/FileUpload/Skeleton.tsx +0 -21
- package/packages/shared-components/src/FormFields/FileUpload/UploadedFileName.tsx +0 -27
- package/packages/shared-components/src/FormFields/FileUpload/index.ts +0 -2
- package/packages/shared-components/src/FormFields/ImageUpload/ImageUpload.styled.tsx +0 -16
- package/packages/shared-components/src/FormFields/ImageUpload/ImageUpload.tsx +0 -181
- package/packages/shared-components/src/FormFields/ImageUpload/ImageUploadView.tsx +0 -65
- package/packages/shared-components/src/FormFields/ImageUpload/PhotoCaptureDialog.tsx +0 -74
- package/packages/shared-components/src/FormFields/ImageUpload/Skeleton.tsx +0 -31
- package/packages/shared-components/src/FormFields/ImageUpload/index.ts +0 -2
- package/packages/shared-components/src/FormFields/ListItemButton/ListItemButton.styled.tsx +0 -22
- package/packages/shared-components/src/FormFields/ListItemButton/ListItemButton.tsx +0 -52
- package/packages/shared-components/src/FormFields/ListItemButton/index.ts +0 -1
- package/packages/shared-components/src/FormFields/PasswordField/PasswordField.tsx +0 -50
- package/packages/shared-components/src/FormFields/PasswordField/index.ts +0 -1
- package/packages/shared-components/src/FormFields/RadioGroupField/RadioGroupField.tsx +0 -105
- package/packages/shared-components/src/FormFields/RadioGroupField/Skeleton.tsx +0 -26
- package/packages/shared-components/src/FormFields/RadioGroupField/index.ts +0 -1
- package/packages/shared-components/src/FormFields/SearchField/SearchField.tsx +0 -21
- package/packages/shared-components/src/FormFields/SearchField/index.ts +0 -1
- package/packages/shared-components/src/FormFields/Switch/Skeleton.tsx +0 -12
- package/packages/shared-components/src/FormFields/Switch/Switch.tsx +0 -33
- package/packages/shared-components/src/FormFields/Switch/index.ts +0 -1
- package/packages/shared-components/src/FormFields/TextField/Skeleton.tsx +0 -31
- package/packages/shared-components/src/FormFields/TextField/TextField.tsx +0 -92
- package/packages/shared-components/src/FormFields/TextField/index.ts +0 -1
- package/packages/shared-components/src/FormFields/TimeField/Skeleton.tsx +0 -24
- package/packages/shared-components/src/FormFields/TimeField/TimeField.tsx +0 -120
- package/packages/shared-components/src/FormFields/TimeField/index.ts +0 -1
- package/packages/shared-components/src/FormFields/TimePicker/Skeleton.tsx +0 -24
- package/packages/shared-components/src/FormFields/TimePicker/TimePicker.tsx +0 -168
- package/packages/shared-components/src/FormFields/TimePicker/index.ts +0 -1
- package/packages/shared-components/src/FormFields/index.ts +0 -13
- package/packages/shared-components/src/Indicator/Indicator.tsx +0 -18
- package/packages/shared-components/src/Indicator/SeverityIndicator.tsx +0 -34
- package/packages/shared-components/src/Indicator/index.ts +0 -2
- package/packages/shared-components/src/Layouts/FormContainer.tsx +0 -6
- package/packages/shared-components/src/Layouts/FormGridLayout.tsx +0 -27
- package/packages/shared-components/src/Layouts/FormRow/FormRow.styled.tsx +0 -39
- package/packages/shared-components/src/Layouts/FormRow/FormRow.tsx +0 -20
- package/packages/shared-components/src/Layouts/FormRow/index.ts +0 -1
- package/packages/shared-components/src/Layouts/FormSection.tsx +0 -22
- package/packages/shared-components/src/Layouts/index.ts +0 -4
- package/packages/shared-components/src/Loader/FacebookCircularProgress.tsx +0 -41
- package/packages/shared-components/src/Loader/index.ts +0 -1
- package/packages/shared-components/src/PadBox/PadBox.tsx +0 -21
- package/packages/shared-components/src/PadBox/index.ts +0 -1
- package/packages/shared-components/src/Pagination/Pagination.tsx +0 -42
- package/packages/shared-components/src/Pagination/index.ts +0 -1
- package/packages/shared-components/src/Stepper/Stepper.tsx +0 -54
- package/packages/shared-components/src/Stepper/StepperV2.tsx +0 -115
- package/packages/shared-components/src/Stepper/StepperV3.tsx +0 -72
- package/packages/shared-components/src/Stepper/index.ts +0 -3
- package/packages/shared-components/src/Svgs/AppLogo/AppLogoMedium.tsx +0 -65
- package/packages/shared-components/src/Svgs/AppLogo/AppLogoSmall.tsx +0 -48
- package/packages/shared-components/src/Svgs/ArrowUp.tsx +0 -11
- package/packages/shared-components/src/Svgs/Company/CompanyBanner.tsx +0 -480
- package/packages/shared-components/src/Svgs/Company/index.ts +0 -1
- package/packages/shared-components/src/Svgs/Drawer/SettingIcon.tsx +0 -31
- package/packages/shared-components/src/Svgs/Drawer/SvgBankConfig.tsx +0 -36
- package/packages/shared-components/src/Svgs/Drawer/SvgConfiguration.tsx +0 -16
- package/packages/shared-components/src/Svgs/Drawer/SvgPayroll.tsx +0 -32
- package/packages/shared-components/src/Svgs/Drawer/SvgsEmployees.tsx +0 -25
- package/packages/shared-components/src/Svgs/Drawer/SvgsOrganization.tsx +0 -36
- package/packages/shared-components/src/Svgs/Drawer/SvgsTransaction.tsx +0 -81
- package/packages/shared-components/src/Svgs/Drawer/index.ts +0 -7
- package/packages/shared-components/src/Svgs/FormAction.tsx +0 -118
- package/packages/shared-components/src/Svgs/ImportExcelSuccessIcon.tsx +0 -54
- package/packages/shared-components/src/Svgs/LogoIcon.tsx +0 -74
- package/packages/shared-components/src/Svgs/SvgAdd.tsx +0 -28
- package/packages/shared-components/src/Svgs/SvgCalendar.tsx +0 -89
- package/packages/shared-components/src/Svgs/SvgConfigure.tsx +0 -51
- package/packages/shared-components/src/Svgs/SvgDelete.tsx +0 -55
- package/packages/shared-components/src/Svgs/SvgDownload.tsx +0 -20
- package/packages/shared-components/src/Svgs/SvgEmail.tsx +0 -24
- package/packages/shared-components/src/Svgs/SvgFilterList.tsx +0 -19
- package/packages/shared-components/src/Svgs/SvgNoLogo.tsx +0 -66
- package/packages/shared-components/src/Svgs/SvgNoSign.tsx +0 -28
- package/packages/shared-components/src/Svgs/SvgPhone.tsx +0 -16
- package/packages/shared-components/src/Svgs/SvgsDrop.tsx +0 -44
- package/packages/shared-components/src/Svgs/SvgsEdit.tsx +0 -42
- package/packages/shared-components/src/Svgs/SvgsHistory.tsx +0 -40
- package/packages/shared-components/src/Svgs/SvgsHome.tsx +0 -18
- package/packages/shared-components/src/Svgs/SvgsIndicator.tsx +0 -24
- package/packages/shared-components/src/Svgs/index.ts +0 -14
- package/packages/shared-components/src/Tab/Skeleton.tsx +0 -15
- package/packages/shared-components/src/Tab/Tabs.tsx +0 -64
- package/packages/shared-components/src/Tab/index.ts +0 -1
- package/packages/shared-components/src/Timeline/AttendanceStatus.tsx +0 -56
- package/packages/shared-components/src/Timeline/Timeline.tsx +0 -171
- package/packages/shared-components/src/Timeline/TimelineTrackSegments.tsx +0 -130
- package/packages/shared-components/src/Timeline/index.ts +0 -2
- package/packages/shared-components/src/Toast/Toast.tsx +0 -59
- package/packages/shared-components/src/Toast/ToastBody.tsx +0 -26
- package/packages/shared-components/src/Toast/ToastFooterLink.tsx +0 -19
- package/packages/shared-components/src/Toast/Toaster.styled.tsx +0 -76
- package/packages/shared-components/src/Toast/Toaster.tsx +0 -21
- package/packages/shared-components/src/Toast/index.ts +0 -3
- package/packages/shared-components/src/Toast/toasts.tsx +0 -28
- package/packages/shared-components/src/Toast/types.ts +0 -13
- package/packages/shared-components/src/Tooltip/Tooltip.tsx +0 -36
- package/packages/shared-components/src/Tooltip/index.ts +0 -1
- package/packages/shared-components/src/UserProfileMenu/UserProfileMenu.styled.tsx +0 -33
- package/packages/shared-components/src/UserProfileMenu/UserProfileMenu.tsx +0 -168
- package/packages/shared-components/src/UserProfileMenu/index.ts +0 -1
- package/packages/shared-components/src/index.ts +0 -25
- package/packages/shared-components/src/utils/colorVariant.ts +0 -162
- package/packages/shared-components/src/utils/date.ts +0 -25
- package/packages/shared-components/src/utils/file.ts +0 -20
- package/packages/shared-components/src/utils/fileSizeValidate.ts +0 -5
- package/packages/shared-components/src/utils/index.ts +0 -9
- package/packages/shared-components/src/utils/theme/colorPalette.ts +0 -112
- package/packages/shared-components/src/utils/theme/colorPaletteUI.tsx +0 -44
- package/packages/shared-components/src/utils/theme/paletteDark.ts +0 -10
- package/packages/shared-components/src/utils/theme/paletteLight.ts +0 -31
- package/packages/shared-components/src/utils/theme/theme.ts +0 -297
- package/packages/shared-components/src/utils/theme/types.ts +0 -18
- package/packages/shared-components/src/utils/theme/typography.ts +0 -52
- package/packages/shared-components/src/utils/urlToNestedObject.ts +0 -9
- package/packages/shared-components/tsconfig.json +0 -8
- package/packages/shared-components/tsconfig.lint.json +0 -8
- package/packages/shared-components/turbo/generators/config.ts +0 -33
- package/packages/shared-components/turbo/generators/templates/component.hbs +0 -8
- package/packages/typescript-config/base.json +0 -20
- package/packages/typescript-config/nextjs.json +0 -13
- package/packages/typescript-config/package.json +0 -9
- package/packages/typescript-config/react-library.json +0 -8
- package/pnpm-workspace.yaml +0 -3
- package/turbo.json +0 -44
package/package.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codezee/sixtify-brahma",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"lint": "turbo lint",
|
|
6
6
|
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
|
7
7
|
"prepare": "husky install",
|
|
8
8
|
"build": "turbo build"
|
|
9
9
|
},
|
|
10
|
-
"main": "index.
|
|
10
|
+
"main": "packages/shared-components/dist/index.js",
|
|
11
|
+
"types": "packages/shared-components/dist/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"packages/shared-components/dist",
|
|
14
|
+
"apps/docs/storybook-static"
|
|
15
|
+
],
|
|
11
16
|
"devDependencies": {
|
|
12
17
|
"@commitlint/cli": "^19.3.0",
|
|
13
18
|
"@commitlint/config-conventional": "^19.2.2",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: Deploy Storybook to GitHub Pages
|
|
2
|
-
|
|
3
|
-
# Trigger the workflow on every push to the main branch
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- main # Adjust this to match your branch name
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
deploy:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
# Step 1: Check out the repository
|
|
15
|
-
- name: Checkout repository
|
|
16
|
-
uses: actions/checkout@v3
|
|
17
|
-
|
|
18
|
-
# Step 2: Set up Node.js (adjust the Node version if needed)
|
|
19
|
-
- name: Set up Node.js
|
|
20
|
-
uses: actions/setup-node@v3
|
|
21
|
-
with:
|
|
22
|
-
node-version: 20 # Use the Node.js version your project requires
|
|
23
|
-
|
|
24
|
-
- name: Install PNPM Globally
|
|
25
|
-
run: npm install -g pnpm
|
|
26
|
-
|
|
27
|
-
# Step 3: Install dependencies
|
|
28
|
-
- name: Install dependencies
|
|
29
|
-
run: pnpm install # Use `npm install` or `yarn install` if not using pnpm
|
|
30
|
-
|
|
31
|
-
# Step 4: Build the Storybook static files
|
|
32
|
-
- name: Build Storybook
|
|
33
|
-
run: pnpm run build # Adjust the path to your Storybook app
|
|
34
|
-
|
|
35
|
-
# Step 5: Deploy to GitHub Pages
|
|
36
|
-
- name: Deploy to GitHub Pages
|
|
37
|
-
uses: peaceiris/actions-gh-pages@v3
|
|
38
|
-
with:
|
|
39
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
40
|
-
publish_dir: apps/docs/storybook-static # Adjust to your static output directory
|
package/.husky/commit-msg
DELETED
package/.husky/pre-commit
DELETED
package/.husky/pre-push
DELETED
package/.lintstagedrc
DELETED
package/.prettierignore
DELETED
package/.prettierrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"arrowParens": "always",
|
|
3
|
-
"bracketSameLine": false,
|
|
4
|
-
"bracketSpacing": true,
|
|
5
|
-
"embeddedLanguageFormatting": "auto",
|
|
6
|
-
"endOfLine": "lf",
|
|
7
|
-
"htmlWhitespaceSensitivity": "css",
|
|
8
|
-
"insertPragma": false,
|
|
9
|
-
"jsxSingleQuote": false,
|
|
10
|
-
"parser": "typescript",
|
|
11
|
-
"printWidth": 80,
|
|
12
|
-
"proseWrap": "preserve",
|
|
13
|
-
"quoteProps": "as-needed",
|
|
14
|
-
"requirePragma": false,
|
|
15
|
-
"semi": true,
|
|
16
|
-
"singleAttributePerLine": false,
|
|
17
|
-
"singleQuote": false,
|
|
18
|
-
"tabWidth": 2,
|
|
19
|
-
"trailingComma": "es5",
|
|
20
|
-
"useTabs": false,
|
|
21
|
-
"vueIndentScriptAndStyle": false
|
|
22
|
-
}
|
package/.vscode/extensions.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
|
|
3
|
-
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
|
|
4
|
-
|
|
5
|
-
// List of extensions which should be recommended for users of this workspace.
|
|
6
|
-
"recommendations": [
|
|
7
|
-
"alefragnani.bookmarks",
|
|
8
|
-
"streetsidesoftware.code-spell-checker",
|
|
9
|
-
"naumovs.color-highlight",
|
|
10
|
-
"dbaeumer.vscode-eslint",
|
|
11
|
-
"eamodio.gitlens",
|
|
12
|
-
"wix.vscode-import-cost",
|
|
13
|
-
"unifiedjs.vscode-mdx",
|
|
14
|
-
"liviuschera.noctis",
|
|
15
|
-
"esbenp.prettier-vscode",
|
|
16
|
-
"tyriar.sort-lines",
|
|
17
|
-
"gruntfuggly.todo-tree",
|
|
18
|
-
"wayou.vscode-todo-highlight"
|
|
19
|
-
],
|
|
20
|
-
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
|
|
21
|
-
"unwantedRecommendations": []
|
|
22
|
-
}
|
package/.vscode/settings.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"eslint.workingDirectories": [
|
|
3
|
-
{
|
|
4
|
-
"mode": "auto"
|
|
5
|
-
}
|
|
6
|
-
],
|
|
7
|
-
"editor.formatOnSave": true,
|
|
8
|
-
"editor.codeActionsOnSave": {
|
|
9
|
-
"source.organizeImports": "explicit",
|
|
10
|
-
// "source.fixAll.eslint": "explicit"
|
|
11
|
-
},
|
|
12
|
-
"eslint.format.enable": true,
|
|
13
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
14
|
-
"files.associations": {
|
|
15
|
-
"*.env.*": "env",
|
|
16
|
-
}
|
|
17
|
-
}
|
package/apps/docs/.eslintrc.cjs
DELETED
package/apps/docs/.eslintrc.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { StorybookConfig } from "@storybook/nextjs";
|
|
2
|
-
|
|
3
|
-
import { join, dirname } from "path";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* This function is used to resolve the absolute path of a package.
|
|
7
|
-
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
|
|
8
|
-
*/
|
|
9
|
-
function getAbsolutePath(value: string): any {
|
|
10
|
-
return dirname(require.resolve(join(value, "package.json")));
|
|
11
|
-
}
|
|
12
|
-
const config: StorybookConfig = {
|
|
13
|
-
stories: ["../stories/*.stories.tsx", "../stories/**/*.stories.tsx"],
|
|
14
|
-
addons: [
|
|
15
|
-
getAbsolutePath("@storybook/addon-links"),
|
|
16
|
-
getAbsolutePath("@storybook/addon-essentials"),
|
|
17
|
-
],
|
|
18
|
-
framework: {
|
|
19
|
-
name: getAbsolutePath("@storybook/nextjs"),
|
|
20
|
-
options: {},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
export default config;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Preview } from "@storybook/react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ThemeProvider, createTheme } from "@mui/material";
|
|
4
|
-
import { Theme, appTheme } from "@repo/shared-components";
|
|
5
|
-
import "../public/globals.css";
|
|
6
|
-
|
|
7
|
-
const createdAppTheme = createTheme(appTheme(Theme.light));
|
|
8
|
-
|
|
9
|
-
export const decorators = [
|
|
10
|
-
(Story) => (
|
|
11
|
-
<ThemeProvider theme={createdAppTheme}>
|
|
12
|
-
<Story />
|
|
13
|
-
</ThemeProvider>
|
|
14
|
-
),
|
|
15
|
-
];
|
|
16
|
-
const preview: Preview = {
|
|
17
|
-
parameters: {
|
|
18
|
-
controls: {
|
|
19
|
-
matchers: {
|
|
20
|
-
color: /(background|color)$/i,
|
|
21
|
-
date: /Date$/i,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default preview;
|
package/apps/docs/next-env.d.ts
DELETED
package/apps/docs/package.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "docs",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"private": true,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "storybook dev",
|
|
8
|
-
"build": "storybook build",
|
|
9
|
-
"start": "serve storybook-static",
|
|
10
|
-
"deploy-storybook": "gh-pages -d storybook-static",
|
|
11
|
-
"clean": "rm -rf .turbo && rm -rf node_modules",
|
|
12
|
-
"lint": "eslint ./stories/*.stories.tsx --max-warnings 0"
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@repo/shared-components": "workspace:*",
|
|
16
|
-
"react": "^18.2.0",
|
|
17
|
-
"react-dom": "^18.2.0"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@repo/eslint-config": "workspace:*",
|
|
21
|
-
"@repo/typescript-config": "workspace:*",
|
|
22
|
-
"@storybook/addon-actions": "^8.2.6",
|
|
23
|
-
"@storybook/addon-essentials": "^8.2.6",
|
|
24
|
-
"@storybook/addon-links": "^8.2.6",
|
|
25
|
-
"@storybook/test": "^8.3.4",
|
|
26
|
-
"@storybook/nextjs": "^8.3.4",
|
|
27
|
-
"@storybook/react": "^8.2.6",
|
|
28
|
-
"@types/node": "^20",
|
|
29
|
-
"@types/react": "^18.2.0",
|
|
30
|
-
"@types/react-dom": "^18.2.0",
|
|
31
|
-
"eslint": "^8.57.0",
|
|
32
|
-
"eslint-config-next": "15.0.0-rc.0",
|
|
33
|
-
"postcss": "^8",
|
|
34
|
-
"serve": "^14.2.1",
|
|
35
|
-
"storybook": "^8.2.6",
|
|
36
|
-
"typescript": "^5.3.3"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@import "ag-grid-community/styles/ag-grid.css";
|
|
2
|
-
@import "ag-grid-community/styles/ag-theme-quartz.css";
|
|
3
|
-
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
4
|
-
@import 'react-date-range/dist/styles.css';
|
|
5
|
-
@import 'react-date-range/dist/theme/default.css';
|
|
6
|
-
|
|
7
|
-
body {
|
|
8
|
-
font-family: 'Poppins', sans-serif;
|
|
9
|
-
margin: 0;
|
|
10
|
-
height:100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ag-theme-quartz {
|
|
14
|
-
--ag-font-family: 'Poppins', sans-serif;
|
|
15
|
-
}
|
|
16
|
-
.ag-row .ag-cell {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
}
|
|
20
|
-
.ag-header-cell-text {
|
|
21
|
-
font-weight: 600;
|
|
22
|
-
}
|
|
23
|
-
.rdrDefinedRangesWrapper{
|
|
24
|
-
width:0px !important;
|
|
25
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AgGrid } from "@repo/shared-components";
|
|
2
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
-
import { ColDef } from "ag-grid-community";
|
|
4
|
-
|
|
5
|
-
const column: ColDef[] = [
|
|
6
|
-
{
|
|
7
|
-
headerName: "Id",
|
|
8
|
-
field: "id",
|
|
9
|
-
sortable: false,
|
|
10
|
-
width: 150,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
headerName: "name",
|
|
14
|
-
field: "name",
|
|
15
|
-
width: 150,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
headerName: "age",
|
|
19
|
-
field: "age",
|
|
20
|
-
width: 150,
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
const rowData = [
|
|
25
|
-
{ id: 1, name: "John", age: 25 },
|
|
26
|
-
{ id: 2, name: "Jane", age: 30 },
|
|
27
|
-
{ id: 3, name: "Bob", age: 40 },
|
|
28
|
-
];
|
|
29
|
-
|
|
30
|
-
const meta: Meta<typeof AgGrid> = {
|
|
31
|
-
title: "shared-component/AgGrid",
|
|
32
|
-
component: AgGrid,
|
|
33
|
-
tags: ["autodocs"],
|
|
34
|
-
argTypes: {
|
|
35
|
-
height: { control: "text" },
|
|
36
|
-
totalRecords: { control: "number" },
|
|
37
|
-
rowModelType: { control: "select", options: ["clientSide", "infinite"] },
|
|
38
|
-
ref: { control: false },
|
|
39
|
-
overlayNoRowsTemplate: { control: false },
|
|
40
|
-
},
|
|
41
|
-
args: {
|
|
42
|
-
rowData,
|
|
43
|
-
rowModelType: "clientSide",
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export default meta;
|
|
48
|
-
|
|
49
|
-
type Story = StoryObj<typeof AgGrid>;
|
|
50
|
-
|
|
51
|
-
export const DefaultAgGrid: Story = {
|
|
52
|
-
args: {
|
|
53
|
-
rowModelType: "clientSide",
|
|
54
|
-
totalRecords: 3,
|
|
55
|
-
},
|
|
56
|
-
render: (args) => {
|
|
57
|
-
return <AgGrid {...args} columnDefs={column} height="500px" />;
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const NoRecordsAgGridWithOverlay: Story = {
|
|
62
|
-
args: {
|
|
63
|
-
rowData: [],
|
|
64
|
-
overlayNoRowsTemplate: '<span class="no-rows">No records to display</span>',
|
|
65
|
-
},
|
|
66
|
-
render: (args) => {
|
|
67
|
-
return <AgGrid {...args} columnDefs={column} height="500px" />;
|
|
68
|
-
},
|
|
69
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Stack } from "@mui/material";
|
|
2
|
-
import { AppBar, Button } from "@repo/shared-components";
|
|
3
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof AppBar> = {
|
|
6
|
-
title: "shared-component/AppBar",
|
|
7
|
-
tags: ["autodocs"],
|
|
8
|
-
component: AppBar,
|
|
9
|
-
argTypes: {
|
|
10
|
-
drawerOpen: {
|
|
11
|
-
control: "boolean",
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
render: (args) => (
|
|
15
|
-
<AppBar {...args}>
|
|
16
|
-
<Stack gap="24px" direction="row" alignItems="center">
|
|
17
|
-
<Button>Home</Button>
|
|
18
|
-
<Button>About</Button>
|
|
19
|
-
<Button>Contact</Button>
|
|
20
|
-
</Stack>
|
|
21
|
-
</AppBar>
|
|
22
|
-
),
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export default meta;
|
|
26
|
-
|
|
27
|
-
type Story = StoryObj;
|
|
28
|
-
|
|
29
|
-
export const Default: Story = {
|
|
30
|
-
args: {
|
|
31
|
-
drawerOpen: false,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const DrawerOpen: Story = {
|
|
36
|
-
args: {
|
|
37
|
-
drawerOpen: true,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import FolderIcon from "@mui/icons-material/Folder";
|
|
2
|
-
import HomeIcon from "@mui/icons-material/Home";
|
|
3
|
-
import { Breadcrumbs } from "@repo/shared-components";
|
|
4
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
5
|
-
import { fn } from "@storybook/test";
|
|
6
|
-
|
|
7
|
-
type StoryProps = React.ComponentProps<typeof Breadcrumbs>;
|
|
8
|
-
|
|
9
|
-
const meta: Meta<StoryProps> = {
|
|
10
|
-
title: "shared-component/Breadcrumbs",
|
|
11
|
-
component: Breadcrumbs,
|
|
12
|
-
tags: ["autodocs"],
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export default meta;
|
|
16
|
-
|
|
17
|
-
type Story = StoryObj<typeof Breadcrumbs>;
|
|
18
|
-
|
|
19
|
-
export const TextOnly: Story = {
|
|
20
|
-
args: {
|
|
21
|
-
items: [
|
|
22
|
-
{ text: "Home", onClick: fn() },
|
|
23
|
-
{ text: "Products", onClick: fn() },
|
|
24
|
-
{ text: "Categories" },
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const WithIcons: Story = {
|
|
30
|
-
args: {
|
|
31
|
-
items: [
|
|
32
|
-
{ icon: <HomeIcon />, text: "Home", onClick: fn() },
|
|
33
|
-
{ icon: <FolderIcon />, text: "Documents", onClick: fn() },
|
|
34
|
-
{ text: "Details" },
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
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
|
-
{ icon: <HomeIcon />, value: "home", label: "Home", selected: true },
|
|
25
|
-
{
|
|
26
|
-
icon: <FavoriteIcon />,
|
|
27
|
-
value: "favorites",
|
|
28
|
-
label: "Favorites",
|
|
29
|
-
selected: false,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
icon: <SettingsIcon />,
|
|
33
|
-
value: "settings",
|
|
34
|
-
label: "Settings",
|
|
35
|
-
selected: false,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
onSelect: fn(),
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const NoSelectedButton: Story = {
|
|
43
|
-
args: {
|
|
44
|
-
renderButtons: [
|
|
45
|
-
{ icon: <HomeIcon />, value: "home", label: "Home", selected: false },
|
|
46
|
-
{
|
|
47
|
-
icon: <FavoriteIcon />,
|
|
48
|
-
value: "favorites",
|
|
49
|
-
label: "Favorites",
|
|
50
|
-
selected: false,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
icon: <SettingsIcon />,
|
|
54
|
-
value: "settings",
|
|
55
|
-
label: "Settings",
|
|
56
|
-
selected: false,
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
onSelect: fn(),
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const DisabledButtons: Story = {
|
|
64
|
-
args: {
|
|
65
|
-
renderButtons: [
|
|
66
|
-
{ icon: <HomeIcon />, value: "home", label: "Home", selected: false },
|
|
67
|
-
{
|
|
68
|
-
icon: <FavoriteIcon />,
|
|
69
|
-
value: "favorites",
|
|
70
|
-
label: "Favorites",
|
|
71
|
-
selected: false,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
icon: <SettingsIcon />,
|
|
75
|
-
value: "settings",
|
|
76
|
-
label: "Settings",
|
|
77
|
-
selected: false,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
onSelect: fn(),
|
|
81
|
-
},
|
|
82
|
-
decorators: [
|
|
83
|
-
() => (
|
|
84
|
-
<Stack direction="row" gap="10px">
|
|
85
|
-
<MuiButtonGroup aria-label="Disabled button group">
|
|
86
|
-
<Button variant="outlined" disabled>
|
|
87
|
-
Home
|
|
88
|
-
</Button>
|
|
89
|
-
<Button variant="outlined" disabled>
|
|
90
|
-
Favorites
|
|
91
|
-
</Button>
|
|
92
|
-
<Button variant="outlined" disabled>
|
|
93
|
-
Settings
|
|
94
|
-
</Button>
|
|
95
|
-
</MuiButtonGroup>
|
|
96
|
-
</Stack>
|
|
97
|
-
),
|
|
98
|
-
],
|
|
99
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
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
|
-
};
|