math-main-components 0.0.164 → 0.0.166
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/index.cjs.js +3 -3
- package/dist/index.d.ts +8 -6
- package/dist/index.esm.js +3 -3
- package/dist/types/Category.d.ts +2 -2
- package/dist/types/Course.d.ts +1 -0
- package/dist/types/Ebook.d.ts +1 -1
- package/dist/types/Material.d.ts +1 -1
- package/dist/types/Movie.d.ts +1 -1
- package/dist/types/Theory.d.ts +17 -0
- package/dist/types/Why.d.ts +17 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -9338,7 +9338,7 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exi
|
|
9338
9338
|
: childrenToRender.map((child) => React.cloneElement(child))));
|
9339
9339
|
};
|
9340
9340
|
|
9341
|
-
function Icon({ id, iconName, size = "24px", color
|
9341
|
+
function Icon({ id, iconName, size = "24px", color, onClick }) {
|
9342
9342
|
return (React__default["default"].createElement("span", { onClick: onClick, className: "material-symbols", id: id, style: { fontSize: size, color: color } }, iconName));
|
9343
9343
|
}
|
9344
9344
|
function SvgIcon({ animate = false, toggle = false, ...props }) {
|
@@ -9346,7 +9346,7 @@ function SvgIcon({ animate = false, toggle = false, ...props }) {
|
|
9346
9346
|
return React__default["default"].createElement(Icon, { ...props });
|
9347
9347
|
}
|
9348
9348
|
return (React__default["default"].createElement(AnimatePresence, { initial: false, mode: "wait" },
|
9349
|
-
React__default["default"].createElement(motion.div, { key: toggle ? "minus" : "plus", initial: {
|
9349
|
+
React__default["default"].createElement(motion.div, { key: toggle ? "minus" : "plus", style: { display: "flex", alignItems: "center" }, initial: {
|
9350
9350
|
rotate: toggle ? -90 : 90,
|
9351
9351
|
}, animate: {
|
9352
9352
|
zIndex: 1,
|
@@ -9364,7 +9364,7 @@ function SvgIcon({ animate = false, toggle = false, ...props }) {
|
|
9364
9364
|
duration: 0.15,
|
9365
9365
|
ease: "circIn",
|
9366
9366
|
},
|
9367
|
-
}
|
9367
|
+
} },
|
9368
9368
|
React__default["default"].createElement(Icon, { ...props }))));
|
9369
9369
|
}
|
9370
9370
|
|
package/dist/index.d.ts
CHANGED
@@ -32,12 +32,18 @@ export * from './components/Table';
|
|
32
32
|
export * from './components/Tabs';
|
33
33
|
export * from './components/TextWithIcon';
|
34
34
|
export * from './components/UsageCard';
|
35
|
+
export * from './types/marketing/About';
|
35
36
|
export * from './types/marketing/BenefitForIndividual';
|
36
37
|
export * from './types/marketing/BenefitForSchool';
|
38
|
+
export * from './types/marketing/Concept';
|
39
|
+
export * from './types/marketing/Content';
|
40
|
+
export * from './types/marketing/Faq';
|
37
41
|
export * from './types/marketing/Feature';
|
38
42
|
export * from './types/marketing/FooterLink';
|
43
|
+
export * from './types/marketing/Home';
|
39
44
|
export * from './types/marketing/News';
|
40
45
|
export * from './types/marketing/Pricing';
|
46
|
+
export * from './types/marketing/StaticPage';
|
41
47
|
export * from './types/marketing/Website';
|
42
48
|
export * from './types/Calculator';
|
43
49
|
export * from './types/Category';
|
@@ -53,12 +59,8 @@ export * from './types/Organization';
|
|
53
59
|
export * from './types/Product';
|
54
60
|
export * from './types/S3File';
|
55
61
|
export * from './types/Subscription';
|
62
|
+
export * from './types/Theory';
|
56
63
|
export * from './types/UploadSignature';
|
57
64
|
export * from './types/Usage';
|
58
65
|
export * from './types/User';
|
59
|
-
export * from './types/
|
60
|
-
export * from './types/marketing/Concept';
|
61
|
-
export * from './types/marketing/Content';
|
62
|
-
export * from './types/marketing/Faq';
|
63
|
-
export * from './types/marketing/Home';
|
64
|
-
export * from './types/marketing/StaticPage';
|
66
|
+
export * from './types/Why';
|
package/dist/index.esm.js
CHANGED
@@ -9312,7 +9312,7 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, exi
|
|
9312
9312
|
: childrenToRender.map((child) => cloneElement(child))));
|
9313
9313
|
};
|
9314
9314
|
|
9315
|
-
function Icon({ id, iconName, size = "24px", color
|
9315
|
+
function Icon({ id, iconName, size = "24px", color, onClick }) {
|
9316
9316
|
return (React__default.createElement("span", { onClick: onClick, className: "material-symbols", id: id, style: { fontSize: size, color: color } }, iconName));
|
9317
9317
|
}
|
9318
9318
|
function SvgIcon({ animate = false, toggle = false, ...props }) {
|
@@ -9320,7 +9320,7 @@ function SvgIcon({ animate = false, toggle = false, ...props }) {
|
|
9320
9320
|
return React__default.createElement(Icon, { ...props });
|
9321
9321
|
}
|
9322
9322
|
return (React__default.createElement(AnimatePresence, { initial: false, mode: "wait" },
|
9323
|
-
React__default.createElement(motion.div, { key: toggle ? "minus" : "plus", initial: {
|
9323
|
+
React__default.createElement(motion.div, { key: toggle ? "minus" : "plus", style: { display: "flex", alignItems: "center" }, initial: {
|
9324
9324
|
rotate: toggle ? -90 : 90,
|
9325
9325
|
}, animate: {
|
9326
9326
|
zIndex: 1,
|
@@ -9338,7 +9338,7 @@ function SvgIcon({ animate = false, toggle = false, ...props }) {
|
|
9338
9338
|
duration: 0.15,
|
9339
9339
|
ease: "circIn",
|
9340
9340
|
},
|
9341
|
-
}
|
9341
|
+
} },
|
9342
9342
|
React__default.createElement(Icon, { ...props }))));
|
9343
9343
|
}
|
9344
9344
|
|
package/dist/types/Category.d.ts
CHANGED
package/dist/types/Course.d.ts
CHANGED
package/dist/types/Ebook.d.ts
CHANGED
package/dist/types/Material.d.ts
CHANGED
package/dist/types/Movie.d.ts
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
import { PortableTextBlock } from "sanity";
|
2
|
+
import { Category } from "./Category";
|
3
|
+
export type Theory = {
|
4
|
+
_id: string;
|
5
|
+
_type: 'theory';
|
6
|
+
previewImage: {
|
7
|
+
asset: {
|
8
|
+
_ref: string;
|
9
|
+
_type: string;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
title: string;
|
13
|
+
author: string;
|
14
|
+
categories: Category[];
|
15
|
+
shortDescription: string;
|
16
|
+
content: PortableTextBlock[];
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { PortableTextBlock } from "sanity";
|
2
|
+
import { Category } from "./Category";
|
3
|
+
export type Why = {
|
4
|
+
_id: string;
|
5
|
+
_type: 'why';
|
6
|
+
previewImage: {
|
7
|
+
asset: {
|
8
|
+
_ref: string;
|
9
|
+
_type: string;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
title: string;
|
13
|
+
author: string;
|
14
|
+
categories: Category[];
|
15
|
+
shortDescription: string;
|
16
|
+
content: PortableTextBlock[];
|
17
|
+
};
|