math-main-components 0.0.166 → 0.0.168

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
@@ -9432,7 +9432,7 @@ function Button({ id, text, iconName, iconFill = "white", type = "blue", onClick
9432
9432
  return (React__default["default"].createElement("div", { className: styles$t.container },
9433
9433
  React__default["default"].createElement("button", { className: [styles$t.button, styles$t[type], (text && !iconName) ? styles$t.onlyText : "", (!text && iconName) ? styles$t.onlyIcon : ""].join(" "), onClick: onClickButton, id: id },
9434
9434
  text,
9435
- iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName, color: iconFill }))));
9435
+ iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName }))));
9436
9436
  }
9437
9437
 
9438
9438
  var css_248z$s = ".styles-module_card__bOd85 {\n background: var(--background-2);\n border: 1px solid var(--border-2);\n border-radius: 18px;\n transition: 0.2s ease;\n padding: 18px 14px;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n cursor: pointer;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding-top: 30px;\n}\n.styles-module_card__bOd85 span {\n color: var(--foreground-3);\n}\n.styles-module_card__bOd85:hover {\n transform: scale(1.01);\n box-shadow: none;\n background: none;\n}\n.styles-module_card__bOd85 h2 {\n margin-top: 0;\n color: var(--foreground-3);\n font-weight: 400;\n font-size: 18px;\n}";
package/dist/index.esm.js CHANGED
@@ -9406,7 +9406,7 @@ function Button({ id, text, iconName, iconFill = "white", type = "blue", onClick
9406
9406
  return (React__default.createElement("div", { className: styles$t.container },
9407
9407
  React__default.createElement("button", { className: [styles$t.button, styles$t[type], (text && !iconName) ? styles$t.onlyText : "", (!text && iconName) ? styles$t.onlyIcon : ""].join(" "), onClick: onClickButton, id: id },
9408
9408
  text,
9409
- iconName && React__default.createElement(SvgIcon, { iconName: iconName, color: iconFill }))));
9409
+ iconName && React__default.createElement(SvgIcon, { iconName: iconName }))));
9410
9410
  }
9411
9411
 
9412
9412
  var css_248z$s = ".styles-module_card__bOd85 {\n background: var(--background-2);\n border: 1px solid var(--border-2);\n border-radius: 18px;\n transition: 0.2s ease;\n padding: 18px 14px;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n cursor: pointer;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding-top: 30px;\n}\n.styles-module_card__bOd85 span {\n color: var(--foreground-3);\n}\n.styles-module_card__bOd85:hover {\n transform: scale(1.01);\n box-shadow: none;\n background: none;\n}\n.styles-module_card__bOd85 h2 {\n margin-top: 0;\n color: var(--foreground-3);\n font-weight: 400;\n font-size: 18px;\n}";
@@ -3,7 +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
+ type: "course";
7
7
  title: string;
8
8
  description: JSONContent;
9
9
  content: Object;
@@ -18,6 +18,7 @@ export type Course = {
18
18
  };
19
19
  export type CourseAnnouncement = {
20
20
  id: string;
21
+ type: "courseAnnouncement";
21
22
  author: User;
22
23
  authorId: string;
23
24
  course: Course;
@@ -29,7 +30,8 @@ export type CourseAnnouncement = {
29
30
  export type CourseAnnouncementAssetType = "file" | "calculator" | "movie" | "material" | "ebook" | "test" | "link";
30
31
  export type CourseAnnouncementAsset = {
31
32
  id?: string;
32
- type: CourseAnnouncementAssetType;
33
+ type: "courseAnnouncementAsset";
34
+ contentType: CourseAnnouncementAssetType;
33
35
  link: string;
34
36
  text: string;
35
37
  file?: File;
@@ -42,6 +44,7 @@ export type CourseAnnouncementAsset = {
42
44
  };
43
45
  export type CourseMessage = {
44
46
  id: string;
47
+ type: "courseMessage";
45
48
  author: User;
46
49
  authorId: string;
47
50
  course: Course;
@@ -53,6 +56,7 @@ export type CourseMessage = {
53
56
  };
54
57
  export type CourseParticipant = {
55
58
  id: string;
59
+ type: "courseParticipant";
56
60
  role: string;
57
61
  createdAt: string;
58
62
  updatedAt: string;
@@ -61,6 +65,7 @@ export type CourseParticipant = {
61
65
  };
62
66
  export type CoursePin = {
63
67
  id: string;
68
+ type: "coursePin";
64
69
  subscriptionPin: string;
65
70
  amountOfUses: number;
66
71
  maxAmountOfUses: number;
@@ -1,6 +1,7 @@
1
1
  import { User } from "./User";
2
2
  export type Feedback = {
3
3
  id: string;
4
+ type: "feedback";
4
5
  user: User;
5
6
  userId: number;
6
7
  message: string;
@@ -1,6 +1,7 @@
1
1
  import { Product } from "./Product";
2
2
  export type LicenseKey = {
3
3
  id: string;
4
+ type: "licenseKey";
4
5
  product: Product;
5
6
  productId: string;
6
7
  pricePayedEuro: number;
@@ -1,5 +1,6 @@
1
1
  export type Log = {
2
2
  id: string;
3
+ type: "logData";
3
4
  title: string;
4
5
  message: string;
5
6
  httpCode?: number;
@@ -1,5 +1,6 @@
1
1
  export type Manager = {
2
2
  id: string;
3
+ type: "manager";
3
4
  username: string;
4
5
  firstName: string;
5
6
  lastName: string;
@@ -1,6 +1,7 @@
1
1
  import { User } from "./User";
2
2
  export type Organization = {
3
3
  id: string;
4
+ type: "organization";
4
5
  name: string;
5
6
  website: string;
6
7
  place: string;
@@ -18,6 +18,7 @@ export type SubscriptionStatus = "active" | "trialing" | "canceled" | "unpaid";
18
18
  export type SubscriptionType = "monthly" | "yearly";
19
19
  export type Subscription = {
20
20
  id: string;
21
+ type: "subscription";
21
22
  organization?: Organization;
22
23
  organizationId: string;
23
24
  product?: Product;
@@ -2,6 +2,7 @@ import { Course } from "./Course";
2
2
  import { Organization } from "./Organization";
3
3
  export type User = {
4
4
  id: string;
5
+ type: "user";
5
6
  email: string;
6
7
  username: string;
7
8
  firstName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.166",
3
+ "version": "0.0.168",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*"