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 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 = "black", onClick }) {
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
- }, style: { display: "flex", alignItems: "center" } },
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/marketing/About';
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 = "black", onClick }) {
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
- }, style: { display: "flex", alignItems: "center" } },
9341
+ } },
9342
9342
  React__default.createElement(Icon, { ...props }))));
9343
9343
  }
9344
9344
 
@@ -8,6 +8,6 @@ export type Category = {
8
8
  hasWhy: boolean;
9
9
  hasCalculators: boolean;
10
10
  hasPoster: boolean;
11
- childrenCategories: Category[];
12
- relatedCategories: Category[];
11
+ childrenCategories?: Category[];
12
+ relatedCategories?: Category[];
13
13
  };
@@ -3,6 +3,7 @@ import { Organization } from "./Organization";
3
3
  import { User } from "./User";
4
4
  export type Course = {
5
5
  id: string;
6
+ _type?: string;
6
7
  title: string;
7
8
  description: JSONContent;
8
9
  content: Object;
@@ -18,6 +18,6 @@ export type Ebook = {
18
18
  fileUrl?: string;
19
19
  description: PortableTextBlock[];
20
20
  shortDescription: string;
21
- categories: Category[];
21
+ categories?: Category[];
22
22
  product?: Product;
23
23
  };
@@ -10,11 +10,11 @@ export type Material = {
10
10
  fileCategory: string;
11
11
  shortDescription: string;
12
12
  description: string;
13
+ categories?: Category[];
13
14
  previewImage: {
14
15
  asset: {
15
16
  _ref: string;
16
17
  _type: string;
17
18
  };
18
19
  };
19
- categories: Category[];
20
20
  };
@@ -17,5 +17,5 @@ export type Movie = {
17
17
  fileUrl?: string;
18
18
  shortDescription: string;
19
19
  description: PortableTextBlock[];
20
- categories: Category[];
20
+ categories?: Category[];
21
21
  };
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.164",
3
+ "version": "0.0.166",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*"