@campxdev/react-blueprint 1.1.7 → 1.1.9
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/.vscode/settings.json +5 -1
- package/craco.config.js +18 -0
- package/package.json +6 -5
- package/src/AppContent.tsx +6 -6
- package/src/assets/fonts/heebo/index.ts +2 -2
- package/src/assets/fonts/poppins/index.ts +5 -5
- package/src/assets/images/gif/confirmation-alert.gif +0 -0
- package/src/assets/images/gif/delete-confirmation-alert.gif +0 -0
- package/src/assets/images/gif/index.ts +11 -0
- package/src/assets/images/gif/upload-file.gif +0 -0
- package/src/assets/images/gif/uploading-file.gif +0 -0
- package/src/assets/images/svg/index.ts +5 -21
- package/src/components/Assets/ErrorPages/InternalServerError.tsx +7 -7
- package/src/components/Assets/ErrorPages/NoInternetConnection.tsx +7 -7
- package/src/components/Assets/ErrorPages/NoItemFound.tsx +7 -7
- package/src/components/Assets/ErrorPages/PageNotFound.tsx +5 -5
- package/src/components/Assets/ErrorPages/UnAuthorized.tsx +6 -6
- package/src/components/Assets/ErrorPages/styles.tsx +15 -15
- package/src/components/Assets/Icons/IconComponents/AcademicIcon.tsx +7 -1
- package/src/components/Assets/Icons/IconComponents/ActiveDevicesIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/AdminIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/AdministratorIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/AlertFilledIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ArrowBackIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/AttachmentIcon.tsx +32 -0
- package/src/components/Assets/Icons/IconComponents/BulbIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/CampxFullLogoIcon.tsx +3 -3
- package/src/components/Assets/Icons/IconComponents/CampxIcon.tsx +2 -2
- package/src/components/Assets/Icons/IconComponents/CareerIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/CheckedCheckBoxIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/CheckedRadioIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ClogWheelIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/CollapseIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/CrossIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/DashBoardIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/DeleteIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/DeviceIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/DocumentIcon.tsx +52 -0
- package/src/components/Assets/Icons/IconComponents/DownloadIcon.tsx +52 -0
- package/src/components/Assets/Icons/IconComponents/EditIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ExamResultIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ExcelIcon.tsx +56 -0
- package/src/components/Assets/Icons/IconComponents/ExpandIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ExportIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/FilterIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/HelpIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/HomeIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ImageIcon.tsx +44 -0
- package/src/components/Assets/Icons/IconComponents/InfoFilledIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/InfoIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/InstitutionsIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/LeftIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/LocationIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/LogoutIcon.tsx +2 -2
- package/src/components/Assets/Icons/IconComponents/NavigationIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/NoteIcon.tsx +7 -1
- package/src/components/Assets/Icons/IconComponents/NotificationIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/PdfIcon.tsx +52 -0
- package/src/components/Assets/Icons/IconComponents/ProductFeaturesIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ProfileIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/RedirectIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/RedoIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/RightIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/SaveIcon.tsx +39 -39
- package/src/components/Assets/Icons/IconComponents/SearchIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ShareIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/SuccessFilledIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/TicketsIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/UncheckCheckBoxIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/UncheckedRadioIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/ViewIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/VisibiityOffIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/VisibilityIcon.tsx +1 -1
- package/src/components/Assets/Icons/IconComponents/WarningFilledIcon.tsx +1 -1
- package/src/components/Assets/Icons/Icons.tsx +12 -0
- package/src/components/Assets/export.ts +6 -6
- package/src/components/Charts/BarChart/BarChart.tsx +17 -19
- package/src/components/Charts/LineChart/LineChart.tsx +12 -14
- package/src/components/Charts/PieChart/PieChart.tsx +8 -8
- package/src/components/Charts/TreeMap/TreeMap.tsx +15 -15
- package/src/components/Charts/export.ts +4 -4
- package/src/components/Charts/types/types.ts +3 -3
- package/src/components/DataDisplay/Accordion/Accordion.tsx +2 -0
- package/src/components/DataDisplay/Avatar/Avatar.tsx +14 -3
- package/src/components/DataDisplay/Card/Card.tsx +18 -18
- package/src/components/DataDisplay/Card/styles.tsx +24 -25
- package/src/components/DataDisplay/Chips/Chips.tsx +14 -14
- package/src/components/DataDisplay/DataTable/DataTable.tsx +4 -1
- package/src/components/DataDisplay/DataTable/TablePagination.tsx +10 -10
- package/src/components/DataDisplay/SidePanel/SidePanel.tsx +1 -1
- package/src/components/DataDisplay/Typography/Typography.tsx +1 -1
- package/src/components/Feedback/Alert/Alert.tsx +8 -8
- package/src/components/Feedback/Snackbar/Snackbar.tsx +27 -27
- package/src/components/Feedback/Spinner/Spinner.tsx +2 -2
- package/src/components/Feedback/Tooltip/Tooltip.tsx +6 -6
- package/src/components/Feedback/Tutorial/Tutorial.tsx +45 -45
- package/src/components/Feedback/export.ts +5 -0
- package/src/components/Image/Image.tsx +8 -8
- package/src/components/Input/Button/Button.tsx +2 -2
- package/src/components/Input/DatePicker/DatePicker.tsx +18 -4
- package/src/components/Input/FormActions/FormActions.tsx +15 -4
- package/src/components/Input/FormControlWrapper/FormControlWrapper.tsx +20 -5
- package/src/components/Input/HelpButton/HelpButton.stories.tsx +9 -9
- package/src/components/Input/HelpButton/HelpButton.tsx +4 -4
- package/src/components/Input/IconButtons/IconButtons/DeleteButton.tsx +2 -2
- package/src/components/Input/IconButtons/IconButtons/EditButton.tsx +2 -2
- package/src/components/Input/IconButtons/IconButtons/RedirectButton.tsx +2 -2
- package/src/components/Input/IconButtons/IconButtons/ViewButton.tsx +2 -2
- package/src/components/Input/LabelWrapper/LabelWrapper.tsx +5 -5
- package/src/components/Input/MultiCheckBox/MultiCheckBox.tsx +6 -6
- package/src/components/Input/OtpInput/OtpInput.tsx +17 -17
- package/src/components/Input/PasswordField/PasswordField.tsx +8 -8
- package/src/components/Input/RadioGroup/RadioGroup.tsx +5 -5
- package/src/components/Input/SearchBar/SearchBar.tsx +20 -20
- package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +5 -5
- package/src/components/Input/SingleSelect/SingleSelect.tsx +39 -6
- package/src/components/Input/Switch/Switch.tsx +1 -1
- package/src/components/Input/TextField/TextField.tsx +3 -3
- package/src/components/Input/TimePicker/TimePicker.tsx +18 -4
- package/src/components/Input/components/FetchingOptionsLoader.tsx +3 -3
- package/src/components/Input/styles.tsx +6 -6
- package/src/components/Layout/AppHeader/AppHeader.tsx +10 -12
- package/src/components/Layout/AppHeader/AppHeaderActions/CogWheelMenu.tsx +5 -5
- package/src/components/Layout/AppHeader/AppHeaderActions/HeaderActions.tsx +6 -6
- package/src/components/Layout/AppHeader/AppHeaderActions/SwitchInstitution.tsx +37 -37
- package/src/components/Layout/AppHeader/AppHeaderActions/UserBox.tsx +28 -28
- package/src/components/Layout/AppHeader/styles/styles.tsx +24 -24
- package/src/components/Layout/PageHeader/PageHeader.tsx +8 -3
- package/src/components/Layout/TabsLayout/Tabs.tsx +16 -16
- package/src/components/Layout/TabsLayout/TabsLayout.tsx +6 -6
- package/src/components/Layout/export.ts +4 -0
- package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +35 -23
- package/src/components/Navigation/ConfirmDialog/ConfirmDialog.tsx +74 -0
- package/src/components/Navigation/Dialog/Dialog.tsx +33 -0
- package/src/components/Navigation/DialogButton/DialogButton.tsx +17 -81
- package/src/components/Navigation/DropDownMenu/DropDownButton.tsx +4 -4
- package/src/components/Navigation/DropDownMenu/DropDownIcon.tsx +4 -4
- package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +8 -8
- package/src/components/Navigation/DropDownMenu/DropdownMenuItem.tsx +3 -3
- package/src/components/Navigation/DropDownMenu/styles.tsx +13 -13
- package/src/components/Navigation/PreviewFiles/PreviewFiles.tsx +165 -0
- package/src/components/Navigation/Sidebar/Components.tsx +18 -18
- package/src/components/Navigation/Sidebar/MenuItem.tsx +1 -1
- package/src/components/Navigation/Sidebar/SubMenuItem.tsx +2 -1
- package/src/components/Navigation/Sidebar/interfaces.ts +1 -1
- package/src/components/Navigation/Sidebar/styles.tsx +64 -64
- package/src/components/Navigation/Stepper/Stepper.tsx +5 -5
- package/src/components/Navigation/Stepper/StepperComponents.tsx +15 -15
- package/src/components/Navigation/TabsContainer/TabsContainer.tsx +4 -4
- package/src/components/Navigation/UploadDialog/LoadingUploadDialogContainer.tsx +23 -0
- package/src/components/Navigation/UploadDialog/Styles.tsx +34 -0
- package/src/components/Navigation/UploadDialog/UploadDialog.tsx +143 -0
- package/src/components/Navigation/UploadDialog/UploadDialogContainer.tsx +82 -0
- package/src/components/Navigation/export.ts +13 -0
- package/src/components/export.ts +7 -7
- package/src/contexts/Providers.tsx +2 -2
- package/src/index.tsx +2 -2
- package/src/store/activeStore.ts +1 -1
- package/src/stories/Assets/Icons.stories.tsx +6 -6
- package/src/stories/Charts/BarChart.stories.tsx +56 -56
- package/src/stories/Charts/LineChart.stories.tsx +49 -49
- package/src/stories/Charts/PieChart.stories.tsx +53 -53
- package/src/stories/Charts/Treemap.stories.tsx +122 -122
- package/src/stories/DataDisplay/AccordionGroup.stories.tsx +11 -12
- package/src/stories/DataDisplay/Card.stories.tsx +34 -34
- package/src/stories/DataDisplay/Chips.stories.tsx +10 -10
- package/src/stories/DataDisplay/CircularAvatar.stories.tsx +6 -6
- package/src/stories/DataDisplay/DataTable.stories.tsx +32 -32
- package/src/stories/DataDisplay/SidePanel.stories.tsx +14 -14
- package/src/stories/DataDisplay/SquareAvatar.stories.tsx +15 -15
- package/src/stories/DesignSystem/colorTokens.stories.tsx +10 -10
- package/src/stories/DesignSystem/typography.stories.tsx +19 -19
- package/src/stories/Feedback/Alert.stories.tsx +9 -9
- package/src/stories/Feedback/Snackbar.stories.tsx +11 -11
- package/src/stories/Feedback/Spinner.stories.tsx +4 -4
- package/src/stories/Feedback/Tooltip.stories.tsx +5 -5
- package/src/stories/Feedback/Tutorial.stories.tsx +13 -13
- package/src/stories/Input/Button.stories.tsx +26 -26
- package/src/stories/Input/DatePicker.stories.tsx +48 -8
- package/src/stories/Input/IconButtons.stories.tsx +6 -6
- package/src/stories/Input/MultiCheckBox.stories.tsx +15 -15
- package/src/stories/Input/OtpInput.stories.tsx +5 -5
- package/src/stories/Input/Password.stories.tsx +7 -7
- package/src/stories/Input/RadioGroup.stories.tsx +14 -14
- package/src/stories/Input/SearchBar.stories.tsx +10 -10
- package/src/stories/Input/SingleCheckBox.stories.tsx +7 -7
- package/src/stories/Input/SingleSelect.stories.tsx +47 -47
- package/src/stories/Input/Switch.stories.tsx +22 -22
- package/src/stories/Input/TextField.stories.tsx +47 -47
- package/src/stories/Input/TimePicker.stories.tsx +44 -7
- package/src/stories/Layout/AppHeader.stories.tsx +13 -13
- package/src/stories/Layout/TabsLayout.stories.tsx +24 -24
- package/src/stories/Navigation/ConfirmDialog.stories.tsx +90 -0
- package/src/stories/Navigation/DialogButton.stories.tsx +38 -45
- package/src/stories/Navigation/DropDownMenu.stories.tsx +24 -24
- package/src/stories/Navigation/FloatingSidebar.stories.tsx +23 -23
- package/src/stories/Navigation/ImportDialog.stories.tsx +45 -0
- package/src/stories/Navigation/PreviewFiles.stories.tsx +80 -0
- package/src/stories/Navigation/Stepper.stories.tsx +15 -15
- package/src/stories/Navigation/TabsContainer.stories.tsx +11 -11
- package/src/themes/MuiThemeProvider.tsx +3 -3
- package/src/themes/colorTokens/colorPalette.tsx +38 -38
- package/src/themes/colorTokens/darkColorTokens.tsx +1 -1
- package/src/themes/colorTokens/lightColorTokens.ts +1 -1
- package/src/themes/commonTheme.ts +13 -3
- package/src/themes/customCssBaseline.ts +2 -2
- package/src/themes/darkTheme.ts +4 -4
- package/src/themes/export.ts +3 -3
- package/src/themes/lightTheme.ts +4 -4
- package/src/utils/constants.ts +5 -5
- package/src/utils/logout.ts +8 -8
- package/tsconfig.json +2 -6
- package/src/assets/images/admin.png +0 -0
- package/src/assets/images/campx_logo__full_primary.png +0 -0
- package/src/assets/images/collegex.png +0 -0
- package/src/assets/images/commutex.png +0 -0
- package/src/assets/images/enrollx.png +0 -0
- package/src/assets/images/examx.png +0 -0
- package/src/assets/images/hostelx copy.png +0 -0
- package/src/assets/images/hostelx.png +0 -0
- package/src/assets/images/index.ts +0 -25
- package/src/assets/images/payx.png +0 -0
- package/src/assets/images/pepolex.png +0 -0
- package/src/assets/images/svg/campx-logo.svg +0 -32
- package/src/assets/images/svg/commutex_small.svg +0 -11
- package/src/assets/images/svg/enroll_logo.svg +0 -9
- package/src/assets/images/svg/exams_small.svg +0 -12
- package/src/assets/images/svg/help-icon.svg +0 -8
- package/src/assets/images/svg/hostel_small.svg +0 -13
- package/src/assets/images/svg/payx_small.svg +0 -16
- package/src/assets/images/svg/people_small.svg +0 -9
- package/src/assets/images/svg/squareSmall.svg +0 -9
- package/src/assets/images/svg/square_small.svg +0 -9
- package/src/components/Feedback/exports.ts +0 -5
- package/src/components/Layout/exports.ts +0 -4
- package/src/components/Navigation/exports.ts +0 -10
- package/src/stories/Navigation/Breadcrumbs.stories.tsx +0 -34
- package/src/utils/applications.ts +0 -140
- package/src/utils/campxAxios.ts +0 -18
- package/src/utils/imageMap.ts +0 -22
|
@@ -1,211 +1,211 @@
|
|
|
1
|
-
import { Meta } from
|
|
2
|
-
import TreeMap from
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import TreeMap from '../../components/Charts/TreeMap/TreeMap';
|
|
3
3
|
|
|
4
4
|
const data = [
|
|
5
5
|
{
|
|
6
|
-
name:
|
|
6
|
+
name: 'axis',
|
|
7
7
|
children: [
|
|
8
|
-
{ name:
|
|
9
|
-
{ name:
|
|
10
|
-
{ name:
|
|
11
|
-
{ name:
|
|
12
|
-
{ name:
|
|
8
|
+
{ name: 'Axes', size: 1302 },
|
|
9
|
+
{ name: 'Axis', size: 24593 },
|
|
10
|
+
{ name: 'AxisGridLine', size: 652 },
|
|
11
|
+
{ name: 'AxisLabel', size: 636 },
|
|
12
|
+
{ name: 'CartesianAxes', size: 6703 },
|
|
13
13
|
],
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
name:
|
|
16
|
+
name: 'controls',
|
|
17
17
|
children: [
|
|
18
|
-
{ name:
|
|
19
|
-
{ name:
|
|
20
|
-
{ name:
|
|
21
|
-
{ name:
|
|
22
|
-
{ name:
|
|
23
|
-
{ name:
|
|
24
|
-
{ name:
|
|
25
|
-
{ name:
|
|
26
|
-
{ name:
|
|
27
|
-
{ name:
|
|
28
|
-
{ name:
|
|
18
|
+
{ name: 'AnchorControl', size: 2138 },
|
|
19
|
+
{ name: 'ClickControl', size: 3824 },
|
|
20
|
+
{ name: 'Control', size: 1353 },
|
|
21
|
+
{ name: 'ControlList', size: 4665 },
|
|
22
|
+
{ name: 'DragControl', size: 2649 },
|
|
23
|
+
{ name: 'ExpandControl', size: 2832 },
|
|
24
|
+
{ name: 'HoverControl', size: 4896 },
|
|
25
|
+
{ name: 'IControl', size: 763 },
|
|
26
|
+
{ name: 'PanZoomControl', size: 5222 },
|
|
27
|
+
{ name: 'SelectionControl', size: 7862 },
|
|
28
|
+
{ name: 'TooltipControl', size: 8435 },
|
|
29
29
|
],
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
name:
|
|
32
|
+
name: 'data',
|
|
33
33
|
children: [
|
|
34
|
-
{ name:
|
|
35
|
-
{ name:
|
|
36
|
-
{ name:
|
|
37
|
-
{ name:
|
|
38
|
-
{ name:
|
|
34
|
+
{ name: 'Data', size: 20544 },
|
|
35
|
+
{ name: 'DataList', size: 19788 },
|
|
36
|
+
{ name: 'DataSprite', size: 10349 },
|
|
37
|
+
{ name: 'EdgeSprite', size: 3301 },
|
|
38
|
+
{ name: 'NodeSprite', size: 19382 },
|
|
39
39
|
{
|
|
40
|
-
name:
|
|
40
|
+
name: 'render',
|
|
41
41
|
children: [
|
|
42
|
-
{ name:
|
|
43
|
-
{ name:
|
|
44
|
-
{ name:
|
|
45
|
-
{ name:
|
|
42
|
+
{ name: 'ArrowType', size: 698 },
|
|
43
|
+
{ name: 'EdgeRenderer', size: 5569 },
|
|
44
|
+
{ name: 'IRenderer', size: 353 },
|
|
45
|
+
{ name: 'ShapeRenderer', size: 2247 },
|
|
46
46
|
],
|
|
47
47
|
},
|
|
48
|
-
{ name:
|
|
49
|
-
{ name:
|
|
50
|
-
{ name:
|
|
48
|
+
{ name: 'ScaleBinding', size: 11275 },
|
|
49
|
+
{ name: 'Tree', size: 7147 },
|
|
50
|
+
{ name: 'TreeBuilder', size: 9930 },
|
|
51
51
|
],
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
name:
|
|
54
|
+
name: 'events',
|
|
55
55
|
children: [
|
|
56
|
-
{ name:
|
|
57
|
-
{ name:
|
|
58
|
-
{ name:
|
|
59
|
-
{ name:
|
|
56
|
+
{ name: 'DataEvent', size: 7313 },
|
|
57
|
+
{ name: 'SelectionEvent', size: 6880 },
|
|
58
|
+
{ name: 'TooltipEvent', size: 3701 },
|
|
59
|
+
{ name: 'VisualizationEvent', size: 2117 },
|
|
60
60
|
],
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
name:
|
|
63
|
+
name: 'legend',
|
|
64
64
|
children: [
|
|
65
|
-
{ name:
|
|
66
|
-
{ name:
|
|
67
|
-
{ name:
|
|
65
|
+
{ name: 'Legend', size: 20859 },
|
|
66
|
+
{ name: 'LegendItem', size: 4614 },
|
|
67
|
+
{ name: 'LegendRange', size: 10530 },
|
|
68
68
|
],
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
name:
|
|
71
|
+
name: 'operator',
|
|
72
72
|
children: [
|
|
73
73
|
{
|
|
74
|
-
name:
|
|
74
|
+
name: 'distortion',
|
|
75
75
|
children: [
|
|
76
|
-
{ name:
|
|
77
|
-
{ name:
|
|
78
|
-
{ name:
|
|
76
|
+
{ name: 'BifocalDistortion', size: 4461 },
|
|
77
|
+
{ name: 'Distortion', size: 6314 },
|
|
78
|
+
{ name: 'FisheyeDistortion', size: 3444 },
|
|
79
79
|
],
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
name:
|
|
82
|
+
name: 'encoder',
|
|
83
83
|
children: [
|
|
84
|
-
{ name:
|
|
85
|
-
{ name:
|
|
86
|
-
{ name:
|
|
87
|
-
{ name:
|
|
88
|
-
{ name:
|
|
84
|
+
{ name: 'ColorEncoder', size: 3179 },
|
|
85
|
+
{ name: 'Encoder', size: 4060 },
|
|
86
|
+
{ name: 'PropertyEncoder', size: 4138 },
|
|
87
|
+
{ name: 'ShapeEncoder', size: 1690 },
|
|
88
|
+
{ name: 'SizeEncoder', size: 1830 },
|
|
89
89
|
],
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
name:
|
|
92
|
+
name: 'filter',
|
|
93
93
|
children: [
|
|
94
|
-
{ name:
|
|
95
|
-
{ name:
|
|
96
|
-
{ name:
|
|
94
|
+
{ name: 'FisheyeTreeFilter', size: 5219 },
|
|
95
|
+
{ name: 'GraphDistanceFilter', size: 3165 },
|
|
96
|
+
{ name: 'VisibilityFilter', size: 3509 },
|
|
97
97
|
],
|
|
98
98
|
},
|
|
99
|
-
{ name:
|
|
99
|
+
{ name: 'IOperator', size: 1286 },
|
|
100
100
|
{
|
|
101
|
-
name:
|
|
101
|
+
name: 'label',
|
|
102
102
|
children: [
|
|
103
|
-
{ name:
|
|
104
|
-
{ name:
|
|
105
|
-
{ name:
|
|
103
|
+
{ name: 'Labeler', size: 9956 },
|
|
104
|
+
{ name: 'RadialLabeler', size: 3899 },
|
|
105
|
+
{ name: 'StackedAreaLabeler', size: 3202 },
|
|
106
106
|
],
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
|
-
name:
|
|
109
|
+
name: 'layout',
|
|
110
110
|
children: [
|
|
111
|
-
{ name:
|
|
112
|
-
{ name:
|
|
113
|
-
{ name:
|
|
114
|
-
{ name:
|
|
115
|
-
{ name:
|
|
116
|
-
{ name:
|
|
117
|
-
{ name:
|
|
118
|
-
{ name:
|
|
119
|
-
{ name:
|
|
120
|
-
{ name:
|
|
121
|
-
{ name:
|
|
122
|
-
{ name:
|
|
123
|
-
{ name:
|
|
124
|
-
{ name:
|
|
125
|
-
{ name:
|
|
111
|
+
{ name: 'AxisLayout', size: 6725 },
|
|
112
|
+
{ name: 'BundledEdgeRouter', size: 3727 },
|
|
113
|
+
{ name: 'CircleLayout', size: 9317 },
|
|
114
|
+
{ name: 'CirclePackingLayout', size: 12003 },
|
|
115
|
+
{ name: 'DendrogramLayout', size: 4853 },
|
|
116
|
+
{ name: 'ForceDirectedLayout', size: 8411 },
|
|
117
|
+
{ name: 'IcicleTreeLayout', size: 4864 },
|
|
118
|
+
{ name: 'IndentedTreeLayout', size: 3174 },
|
|
119
|
+
{ name: 'Layout', size: 7881 },
|
|
120
|
+
{ name: 'NodeLinkTreeLayout', size: 12870 },
|
|
121
|
+
{ name: 'PieLayout', size: 2728 },
|
|
122
|
+
{ name: 'RadialTreeLayout', size: 12348 },
|
|
123
|
+
{ name: 'RandomLayout', size: 870 },
|
|
124
|
+
{ name: 'StackedAreaLayout', size: 9121 },
|
|
125
|
+
{ name: 'TreeMapLayout', size: 9191 },
|
|
126
126
|
],
|
|
127
127
|
},
|
|
128
|
-
{ name:
|
|
129
|
-
{ name:
|
|
130
|
-
{ name:
|
|
131
|
-
{ name:
|
|
132
|
-
{ name:
|
|
128
|
+
{ name: 'Operator', size: 2490 },
|
|
129
|
+
{ name: 'OperatorList', size: 5248 },
|
|
130
|
+
{ name: 'OperatorSequence', size: 4190 },
|
|
131
|
+
{ name: 'OperatorSwitch', size: 2581 },
|
|
132
|
+
{ name: 'SortOperator', size: 2023 },
|
|
133
133
|
],
|
|
134
134
|
},
|
|
135
135
|
];
|
|
136
136
|
|
|
137
137
|
const COLORS = [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
'#8889DD',
|
|
139
|
+
'#9597E4',
|
|
140
|
+
'#8DC77B',
|
|
141
|
+
'#A5D297',
|
|
142
|
+
'#E2CF45',
|
|
143
|
+
'#F8C12D',
|
|
144
144
|
];
|
|
145
145
|
|
|
146
146
|
export default {
|
|
147
|
-
title:
|
|
147
|
+
title: 'Charts/TreeMap',
|
|
148
148
|
component: TreeMap,
|
|
149
149
|
argTypes: {
|
|
150
150
|
title: {
|
|
151
|
-
control:
|
|
152
|
-
description:
|
|
151
|
+
control: 'text',
|
|
152
|
+
description: 'Title of the TreeMap',
|
|
153
153
|
},
|
|
154
154
|
titleSx: {
|
|
155
|
-
control:
|
|
156
|
-
description:
|
|
155
|
+
control: 'object',
|
|
156
|
+
description: 'Styling for the title',
|
|
157
157
|
},
|
|
158
158
|
dataKey: {
|
|
159
|
-
control:
|
|
160
|
-
description:
|
|
159
|
+
control: 'text',
|
|
160
|
+
description: 'Key for the data value',
|
|
161
161
|
},
|
|
162
162
|
width: {
|
|
163
|
-
control:
|
|
164
|
-
description:
|
|
163
|
+
control: 'number',
|
|
164
|
+
description: 'Width of the TreeMap',
|
|
165
165
|
},
|
|
166
166
|
height: {
|
|
167
|
-
control:
|
|
168
|
-
description:
|
|
167
|
+
control: 'number',
|
|
168
|
+
description: 'Height of the TreeMap',
|
|
169
169
|
},
|
|
170
170
|
margin: {
|
|
171
|
-
control:
|
|
172
|
-
description:
|
|
171
|
+
control: 'object',
|
|
172
|
+
description: 'Margin around the TreeMap',
|
|
173
173
|
},
|
|
174
174
|
aspectRatio: {
|
|
175
|
-
control:
|
|
176
|
-
description:
|
|
175
|
+
control: 'number',
|
|
176
|
+
description: 'Aspect ratio of the TreeMap',
|
|
177
177
|
},
|
|
178
178
|
fill: {
|
|
179
|
-
control:
|
|
180
|
-
description:
|
|
179
|
+
control: 'color',
|
|
180
|
+
description: 'Fill color for the TreeMap',
|
|
181
181
|
},
|
|
182
182
|
stroke: {
|
|
183
|
-
control:
|
|
184
|
-
description:
|
|
183
|
+
control: 'color',
|
|
184
|
+
description: 'Stroke color for the TreeMap',
|
|
185
185
|
},
|
|
186
186
|
colors: {
|
|
187
|
-
control: { type:
|
|
188
|
-
description:
|
|
187
|
+
control: { type: 'object' },
|
|
188
|
+
description: 'Array of colors for the TreeMap',
|
|
189
189
|
},
|
|
190
190
|
showToolTip: {
|
|
191
|
-
control:
|
|
192
|
-
description:
|
|
191
|
+
control: 'boolean',
|
|
192
|
+
description: 'Toggle tooltip visibility',
|
|
193
193
|
},
|
|
194
194
|
isAnimationActive: {
|
|
195
|
-
control:
|
|
196
|
-
description:
|
|
195
|
+
control: 'boolean',
|
|
196
|
+
description: 'Toggle animation',
|
|
197
197
|
},
|
|
198
198
|
animationEasing: {
|
|
199
|
-
control:
|
|
200
|
-
description:
|
|
199
|
+
control: 'text',
|
|
200
|
+
description: 'Animation easing',
|
|
201
201
|
},
|
|
202
202
|
treeMapStyle: {
|
|
203
|
-
control:
|
|
204
|
-
description:
|
|
203
|
+
control: 'object',
|
|
204
|
+
description: 'Styling for the TreeMap',
|
|
205
205
|
},
|
|
206
206
|
containerSx: {
|
|
207
|
-
control:
|
|
208
|
-
description:
|
|
207
|
+
control: 'object',
|
|
208
|
+
description: 'Styling for the container',
|
|
209
209
|
},
|
|
210
210
|
},
|
|
211
211
|
} as Meta<typeof TreeMap>;
|
|
@@ -218,7 +218,7 @@ export const Default = () => {
|
|
|
218
218
|
height={600}
|
|
219
219
|
data={data}
|
|
220
220
|
colors={COLORS}
|
|
221
|
-
dataKey={
|
|
221
|
+
dataKey={'size'}
|
|
222
222
|
/>
|
|
223
223
|
);
|
|
224
224
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import ImageList from '@mui/material
|
|
2
|
-
import ImageListItem from '@mui/material/ImageListItem';
|
|
1
|
+
import { ImageList, ImageListItem } from '@mui/material';
|
|
3
2
|
import { Meta, StoryObj } from '@storybook/react/*';
|
|
4
|
-
import { AccordionGroup } from '../../components/
|
|
3
|
+
import { AccordionGroup } from '../../components/export';
|
|
5
4
|
|
|
6
5
|
const StandardImageList = () => {
|
|
7
6
|
return (
|
|
@@ -71,15 +70,6 @@ const itemData = [
|
|
|
71
70
|
},
|
|
72
71
|
];
|
|
73
72
|
|
|
74
|
-
const meta: Meta<typeof AccordionGroup> = {
|
|
75
|
-
title: 'DataDisplay/Accordion',
|
|
76
|
-
component: AccordionGroup,
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export default meta;
|
|
80
|
-
|
|
81
|
-
type Story = StoryObj<typeof AccordionGroup>;
|
|
82
|
-
|
|
83
73
|
const primaryData = [
|
|
84
74
|
{
|
|
85
75
|
title: 'Accordion 1',
|
|
@@ -122,6 +112,15 @@ const SecondaryData = [
|
|
|
122
112
|
},
|
|
123
113
|
];
|
|
124
114
|
|
|
115
|
+
const meta: Meta<typeof AccordionGroup> = {
|
|
116
|
+
title: 'DataDisplay/AccordionGroup',
|
|
117
|
+
component: AccordionGroup,
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export default meta;
|
|
121
|
+
|
|
122
|
+
type Story = StoryObj<typeof AccordionGroup>;
|
|
123
|
+
|
|
125
124
|
export const Primary: Story = {
|
|
126
125
|
args: { data: primaryData },
|
|
127
126
|
};
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { Meta } from
|
|
2
|
-
import { Card, CardProps } from
|
|
3
|
-
import { Stack } from
|
|
4
|
-
import { GridMenuIcon } from
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { Card, CardProps } from '../../components/DataDisplay/Card/Card';
|
|
3
|
+
import { Stack } from '@mui/material';
|
|
4
|
+
import { GridMenuIcon } from '@mui/x-data-grid';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title:
|
|
7
|
+
title: 'DataDisplay/Card',
|
|
8
8
|
component: Card,
|
|
9
|
-
tags: [
|
|
9
|
+
tags: ['autodocs'],
|
|
10
10
|
argTypes: {},
|
|
11
11
|
} as Meta<typeof Card>;
|
|
12
12
|
|
|
13
13
|
export const Standard = {
|
|
14
14
|
render: (args: CardProps) => <Card {...args} />,
|
|
15
15
|
args: {
|
|
16
|
-
title:
|
|
16
|
+
title: 'Academic Administrator WS',
|
|
17
17
|
caption:
|
|
18
|
-
|
|
18
|
+
'A centralized hub designed to streamline and manage administrative tasks efficiently.',
|
|
19
19
|
fields: [
|
|
20
20
|
{
|
|
21
|
-
title:
|
|
22
|
-
value:
|
|
21
|
+
title: 'Start year / End Year',
|
|
22
|
+
value: '2024 / 2028',
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
title:
|
|
26
|
-
value:
|
|
25
|
+
title: 'Current Sem',
|
|
26
|
+
value: '1',
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
title:
|
|
30
|
-
value:
|
|
29
|
+
title: 'Total Students',
|
|
30
|
+
value: '1324',
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
33
|
footer: {
|
|
34
|
-
buttonText:
|
|
34
|
+
buttonText: 'View Details',
|
|
35
35
|
onClick: () => alert(`Details Viewed`),
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
export const StandardWithImage = {
|
|
40
40
|
render: (args: CardProps) => (
|
|
41
|
-
<Stack flexDirection={
|
|
42
|
-
<Card {...args} /> <Card {...args} /> <Card {...args} />{
|
|
41
|
+
<Stack flexDirection={'row'} gap={'20px'}>
|
|
42
|
+
<Card {...args} /> <Card {...args} /> <Card {...args} />{' '}
|
|
43
43
|
</Stack>
|
|
44
44
|
),
|
|
45
45
|
|
|
46
46
|
args: {
|
|
47
|
-
title:
|
|
48
|
-
caption:
|
|
49
|
-
status:
|
|
47
|
+
title: 'ECE 2024 - 25',
|
|
48
|
+
caption: 'Started on July 24, 2024',
|
|
49
|
+
status: 'Active',
|
|
50
50
|
fields: [
|
|
51
51
|
{
|
|
52
|
-
title:
|
|
53
|
-
value:
|
|
52
|
+
title: 'Start year / End Year',
|
|
53
|
+
value: '2024 / 2028',
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
title:
|
|
57
|
-
value:
|
|
56
|
+
title: 'Current Sem',
|
|
57
|
+
value: '1',
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
title:
|
|
61
|
-
value:
|
|
60
|
+
title: 'Total Students',
|
|
61
|
+
value: '1324',
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
title:
|
|
65
|
-
value:
|
|
64
|
+
title: 'Total Students',
|
|
65
|
+
value: '1324',
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
title:
|
|
69
|
-
value:
|
|
68
|
+
title: 'Total Students',
|
|
69
|
+
value: '1324',
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
72
|
footer: {
|
|
73
|
-
buttonText:
|
|
73
|
+
buttonText: 'View Details',
|
|
74
74
|
onClick: () => alert(`Details Viewed`),
|
|
75
75
|
},
|
|
76
76
|
imageSrc:
|
|
77
|
-
|
|
77
|
+
'https://i.pinimg.com/564x/aa/a5/90/aaa5903de24897afa5b07fd9f4092866.jpg',
|
|
78
78
|
moreOptions: true,
|
|
79
79
|
},
|
|
80
80
|
};
|
|
@@ -82,7 +82,7 @@ export const StandardWithImage = {
|
|
|
82
82
|
export const Statistic = {
|
|
83
83
|
render: (args: CardProps) => <Card {...args} />,
|
|
84
84
|
args: {
|
|
85
|
-
title:
|
|
86
|
-
caption:
|
|
85
|
+
title: 'ECE 2024 - 25',
|
|
86
|
+
caption: 'Started on July 24, 2024',
|
|
87
87
|
},
|
|
88
88
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Meta } from
|
|
2
|
-
import { useState } from
|
|
3
|
-
import Chips from
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import Chips from '../../components/DataDisplay/Chips/Chips';
|
|
4
4
|
|
|
5
5
|
const sampleChips = [
|
|
6
6
|
{
|
|
7
|
-
label:
|
|
7
|
+
label: 'Chip1',
|
|
8
8
|
value: 1,
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
label:
|
|
11
|
+
label: 'Chip2',
|
|
12
12
|
value: 2,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
label:
|
|
15
|
+
label: 'Chip3',
|
|
16
16
|
value: 3,
|
|
17
17
|
},
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
|
-
title:
|
|
21
|
+
title: 'DataDisplay/Chips',
|
|
22
22
|
component: Chips,
|
|
23
|
-
tags: [
|
|
23
|
+
tags: ['autodocs'],
|
|
24
24
|
argTypes: {},
|
|
25
25
|
} as Meta<typeof Chips>;
|
|
26
26
|
|
|
27
27
|
export const Default = {
|
|
28
28
|
render: () => {
|
|
29
|
-
const [selected, setSelected] = useState<string | number | string[]>(
|
|
29
|
+
const [selected, setSelected] = useState<string | number | string[]>('');
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
32
|
<Chips
|
|
@@ -43,7 +43,7 @@ export const Default = {
|
|
|
43
43
|
|
|
44
44
|
export const ClickableChip = {
|
|
45
45
|
render: () => {
|
|
46
|
-
const [selected, setSelected] = useState<string | number | string[]>(
|
|
46
|
+
const [selected, setSelected] = useState<string | number | string[]>('');
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
49
|
<Chips
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// Import React and other necessary elements
|
|
2
2
|
|
|
3
|
-
import { Meta } from
|
|
3
|
+
import { Meta } from '@storybook/react';
|
|
4
4
|
import {
|
|
5
5
|
CircularAvatar,
|
|
6
6
|
CircularAvatarProps,
|
|
7
|
-
} from
|
|
7
|
+
} from '../../components/DataDisplay/Avatar/Avatar';
|
|
8
8
|
|
|
9
9
|
// Define the default export with Meta type including the component type
|
|
10
10
|
export default {
|
|
11
|
-
title:
|
|
11
|
+
title: 'DataDisplay/CircularAvatar',
|
|
12
12
|
component: CircularAvatar,
|
|
13
|
-
tags: [
|
|
13
|
+
tags: ['autodocs'],
|
|
14
14
|
argTypes: {},
|
|
15
15
|
} as Meta<typeof CircularAvatar>;
|
|
16
16
|
|
|
@@ -18,13 +18,13 @@ export default {
|
|
|
18
18
|
export const withText = {
|
|
19
19
|
render: (args: CircularAvatarProps) => <CircularAvatar {...args} />,
|
|
20
20
|
args: {
|
|
21
|
-
text:
|
|
21
|
+
text: 'Sh auy',
|
|
22
22
|
},
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export const withImage = {
|
|
26
26
|
render: (args: CircularAvatarProps) => <CircularAvatar {...args} />,
|
|
27
27
|
args: {
|
|
28
|
-
src:
|
|
28
|
+
src: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyNzM3ODF8MHwxfGFsbHwxfHx8fHx8fHwxNjM4MjM2MDg0&ixlib=rb-1.2.1&q=80&w=400',
|
|
29
29
|
},
|
|
30
30
|
};
|