@campxdev/react-blueprint 2.2.7 → 2.2.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/dist/cjs/index.js +1 -1
- package/dist/cjs/types/src/components/Assets/Icons/IconComponents/ChallansIcon.d.ts +4 -0
- package/dist/cjs/types/src/components/Assets/Icons/Icons.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Assets/Icons/IconComponents/ChallansIcon.d.ts +4 -0
- package/dist/esm/types/src/components/Assets/Icons/Icons.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +2 -1
- package/src/components/Assets/Icons/IconComponents/ChallansIcon.tsx +57 -0
- package/src/components/Assets/Icons/Icons.tsx +4 -1
- package/src/components/Layout/AppLayout/AppLayout.tsx +1 -1
|
@@ -9,6 +9,7 @@ export interface IconProps {
|
|
|
9
9
|
export type IconComponent = FC<IconProps>;
|
|
10
10
|
export type IconsType = {
|
|
11
11
|
AcademicFeesIcon: IconComponent;
|
|
12
|
+
ChallansIcon: IconComponent;
|
|
12
13
|
AcademicsIcon: IconComponent;
|
|
13
14
|
AccordionArrow: IconComponent;
|
|
14
15
|
ActiveDevicesIcon: IconComponent;
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campxdev/react-blueprint",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.9",
|
|
4
4
|
"description": "React UI component library for CampX applications",
|
|
5
5
|
"author": "CampX",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"start": "react-scripts --max_old_space_size=4096 start",
|
|
29
29
|
"build": "NODE_OPTIONS='--max-old-space-size=4096' rollup -c --bundleConfigAsCjs",
|
|
30
|
+
"yalc:w": "copy package.json package.json.backup && node -e \"const fs=require('fs'); const pkg=JSON.parse(fs.readFileSync('./package.json')); pkg.main='export.ts'; pkg.module='export.ts'; pkg.types='export.ts'; pkg.exports={'.':'./export.ts'}; delete pkg.scripts.prepare; fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));\" && yalc publish --push --sig --no-scripts && move /Y package.json.backup package.json",
|
|
30
31
|
"yalc:dev": "cp package.json package.json.backup && node -e \"const fs=require('fs'); const pkg=JSON.parse(fs.readFileSync('./package.json')); pkg.main='export.ts'; pkg.module='export.ts'; pkg.types='export.ts'; pkg.exports={'.':'./export.ts'}; delete pkg.scripts.prepare; fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));\" && yalc publish --push --sig --no-scripts && mv package.json.backup package.json",
|
|
31
32
|
"test": "react-scripts test",
|
|
32
33
|
"storybook": "NODE_OPTIONS='--max-old-space-size=4096' storybook dev -p 6006",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useTheme } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export const ChallansIcon = ({
|
|
4
|
+
color,
|
|
5
|
+
size = 16,
|
|
6
|
+
}: {
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
}) => {
|
|
10
|
+
const theme = useTheme();
|
|
11
|
+
color = color ?? theme.palette.text.primary;
|
|
12
|
+
return (
|
|
13
|
+
<svg
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
width={size}
|
|
16
|
+
height={size}
|
|
17
|
+
viewBox="0 0 24 24"
|
|
18
|
+
>
|
|
19
|
+
<g
|
|
20
|
+
id="vuesax_outline_receipt-2"
|
|
21
|
+
data-name="vuesax/outline/receipt-2"
|
|
22
|
+
transform="translate(-492 -380)"
|
|
23
|
+
>
|
|
24
|
+
<g id="receipt-2">
|
|
25
|
+
<path
|
|
26
|
+
id="Vector"
|
|
27
|
+
d="M9.26,21.49A2.59,2.59,0,0,1,7.2,20.38L6.18,19.04a1.081,1.081,0,0,0-.79-.46,1.133,1.133,0,0,0-.85.37,3.448,3.448,0,0,1-2.49,1.34,1.816,1.816,0,0,1-1.37-.7.862.862,0,0,1-.11-.19A8.837,8.837,0,0,1,0,15.71V5.79A8.868,8.868,0,0,1,.57,2.1a.619.619,0,0,1,.11-.17,1.8,1.8,0,0,1,1.36-.72A3.417,3.417,0,0,1,4.53,2.54a1.064,1.064,0,0,0,.85.38,1.081,1.081,0,0,0,.79-.46L7.19,1.11A2.59,2.59,0,0,1,9.25,0a2.59,2.59,0,0,1,2.06,1.11l1.01,1.34a1.082,1.082,0,0,0,.81.47,1.11,1.11,0,0,0,.85-.38,3.455,3.455,0,0,1,2.41-1.33,1.79,1.79,0,0,1,1.44.72.784.784,0,0,1,.11.18,8.837,8.837,0,0,1,.57,3.69v9.92a8.868,8.868,0,0,1-.57,3.69.776.776,0,0,1-.16.24,1.748,1.748,0,0,1-1.39.65,3.455,3.455,0,0,1-2.41-1.33,1.025,1.025,0,0,0-1.66.09L11.31,20.4A2.591,2.591,0,0,1,9.26,21.49ZM5.34,17.07h.13a2.56,2.56,0,0,1,1.9,1.06l1.02,1.35a1,1,0,0,0,1.72.01l1.01-1.34a2.513,2.513,0,0,1,3.94-.21c.74.79,1.19.85,1.31.85a.316.316,0,0,0,.22-.08,7.8,7.8,0,0,0,.4-3V5.79a7.95,7.95,0,0,0-.4-2.98.271.271,0,0,0-.22-.1c-.12,0-.57.06-1.31.85a2.587,2.587,0,0,1-2.02.85,2.618,2.618,0,0,1-1.93-1.06L10.1,2.01a1,1,0,0,0-1.72,0L7.36,3.37a2.549,2.549,0,0,1-1.9,1.05,2.612,2.612,0,0,1-2.02-.84c-.61-.66-1.08-.88-1.34-.87a.288.288,0,0,0-.21.1,7.95,7.95,0,0,0-.4,2.98v9.92a7.975,7.975,0,0,0,.4,2.99.356.356,0,0,0,.21.1c.25.01.72-.21,1.33-.86A2.617,2.617,0,0,1,5.34,17.07Z"
|
|
28
|
+
transform="translate(494.24 381.26)"
|
|
29
|
+
fill={color}
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
id="Vector-2"
|
|
33
|
+
data-name="Vector"
|
|
34
|
+
d="M8.75,1.5h-8A.755.755,0,0,1,0,.75.755.755,0,0,1,.75,0h8A.755.755,0,0,1,9.5.75.755.755,0,0,1,8.75,1.5Z"
|
|
35
|
+
transform="translate(499.25 389.5)"
|
|
36
|
+
fill={color}
|
|
37
|
+
/>
|
|
38
|
+
<path
|
|
39
|
+
id="Vector-3"
|
|
40
|
+
data-name="Vector"
|
|
41
|
+
d="M6.75,1.5h-6A.755.755,0,0,1,0,.75.755.755,0,0,1,.75,0h6A.755.755,0,0,1,7.5.75.755.755,0,0,1,6.75,1.5Z"
|
|
42
|
+
transform="translate(499.25 393)"
|
|
43
|
+
fill={color}
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
id="Vector-4"
|
|
47
|
+
data-name="Vector"
|
|
48
|
+
d="M0,0H24V24H0Z"
|
|
49
|
+
transform="translate(492 380)"
|
|
50
|
+
fill="none"
|
|
51
|
+
opacity="0"
|
|
52
|
+
/>
|
|
53
|
+
</g>
|
|
54
|
+
</g>
|
|
55
|
+
</svg>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
@@ -107,6 +107,7 @@ import { MentorsIcon } from './IconComponents/MentorsIcon';
|
|
|
107
107
|
import { MinusSquare } from './IconComponents/MinusSquare';
|
|
108
108
|
import { MoreVertIcon } from './IconComponents/MoreVertIcon';
|
|
109
109
|
import { NavigationIcon } from './IconComponents/NavigationIcon';
|
|
110
|
+
import { NewSmsIcon } from './IconComponents/NewSmsIcon';
|
|
110
111
|
import { NominalSheetsIcon } from './IconComponents/NominalSheetsIcon';
|
|
111
112
|
import { NoteIcon } from './IconComponents/NoteIcon';
|
|
112
113
|
import { NoticeBoardIcon } from './IconComponents/NoticeBoardIcon';
|
|
@@ -169,9 +170,9 @@ import { VisibilityIcon } from './IconComponents/VisibilityIcon';
|
|
|
169
170
|
import { WarningFilledIcon } from './IconComponents/WarningFilledIcon';
|
|
170
171
|
import { WhatsappIcon } from './IconComponents/WhatsappIcon';
|
|
171
172
|
import { WorkFlowDocsIcon } from './IconComponents/WorkflowdocsIcon';
|
|
172
|
-
import { NewSmsIcon } from './IconComponents/NewSmsIcon';
|
|
173
173
|
|
|
174
174
|
import { FC, MouseEvent } from 'react';
|
|
175
|
+
import { ChallansIcon } from './IconComponents/ChallansIcon';
|
|
175
176
|
|
|
176
177
|
export interface IconProps {
|
|
177
178
|
color?: string;
|
|
@@ -185,6 +186,7 @@ export type IconComponent = FC<IconProps>;
|
|
|
185
186
|
// Type for the entire Icons object
|
|
186
187
|
export type IconsType = {
|
|
187
188
|
AcademicFeesIcon: IconComponent;
|
|
189
|
+
ChallansIcon: IconComponent;
|
|
188
190
|
AcademicsIcon: IconComponent;
|
|
189
191
|
AccordionArrow: IconComponent;
|
|
190
192
|
ActiveDevicesIcon: IconComponent;
|
|
@@ -361,6 +363,7 @@ export type IconsType = {
|
|
|
361
363
|
export const Icons: IconsType = {
|
|
362
364
|
AcademicFeesIcon,
|
|
363
365
|
AcademicsIcon,
|
|
366
|
+
ChallansIcon,
|
|
364
367
|
AccordionArrow,
|
|
365
368
|
ActiveDevicesIcon,
|
|
366
369
|
ActivitylogsIcon,
|
|
@@ -53,7 +53,7 @@ const AppLayoutContainer = styled(Stack)(({ theme }: { theme?: any }) => ({
|
|
|
53
53
|
flexDirection: 'column',
|
|
54
54
|
backgroundColor: theme.palette.surface.defaultBackground,
|
|
55
55
|
height: '100vh',
|
|
56
|
-
overflow: '
|
|
56
|
+
overflow: 'scroll',
|
|
57
57
|
}));
|
|
58
58
|
|
|
59
59
|
const MainContent = styled(Box)(({ theme }: { theme?: any }) => ({
|