math-main-components 0.0.183 → 0.0.185

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
@@ -9841,8 +9841,8 @@ function RadioButtons({ options, group, selected, onClick, width = "100%" }) {
9841
9841
  React__default["default"].createElement(SvgIcon, { iconName: "done", size: "20px" })))));
9842
9842
  }
9843
9843
 
9844
- var css_248z$8 = ".styles-module_container__RhsQe {\n margin-right: 8px;\n}\n.styles-module_container__RhsQe.styles-module_back__j0HkC {\n display: block;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 span {\n color: var(--foreground-1);\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0:hover {\n background: var(--background-1);\n}\n.styles-module_container__RhsQe .styles-module_label__bdjMh {\n display: none;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_label__bdjMh {\n display: block;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0 {\n flex-direction: row;\n gap: 5px;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0:hover {\n background: none;\n}\n\n@media (max-width: 800px) {\n .styles-module_container__RhsQe.styles-module_back__j0HkC {\n flex-basis: 100%;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_label__bdjMh {\n display: block;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0 {\n gap: 5px;\n width: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0:hover {\n background: none;\n }\n}";
9845
- var styles$8 = {"container":"styles-module_container__RhsQe","back":"styles-module_back__j0HkC","button":"styles-module_button__HuX-0","label":"styles-module_label__bdjMh","middle":"styles-module_middle__xg7RF"};
9844
+ var css_248z$8 = ".styles-module_container__RhsQe {\n margin-right: 8px;\n}\n.styles-module_container__RhsQe.styles-module_back__j0HkC {\n display: block;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 span {\n color: var(--foreground-1);\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0:hover {\n background: var(--background-1);\n}\n.styles-module_container__RhsQe .styles-module_label__bdjMh {\n display: none;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_label__bdjMh {\n display: block;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0 {\n flex-direction: row;\n gap: 5px;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0:hover {\n background: none;\n}\n\n@media (max-width: 800px) {\n .styles-module_container__RhsQe.styles-module_forward__Vjtye {\n flex-basis: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC {\n flex-basis: 100%;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_label__bdjMh {\n display: block;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0 {\n gap: 5px;\n width: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0:hover {\n background: none;\n }\n}";
9845
+ var styles$8 = {"container":"styles-module_container__RhsQe","back":"styles-module_back__j0HkC","button":"styles-module_button__HuX-0","label":"styles-module_label__bdjMh","middle":"styles-module_middle__xg7RF","forward":"styles-module_forward__Vjtye"};
9846
9846
  styleInject(css_248z$8);
9847
9847
 
9848
9848
  function RedirectButton({ id, type = "forward", onClick }) {
@@ -9858,7 +9858,12 @@ function RedirectButton({ id, type = "forward", onClick }) {
9858
9858
  case "middle": return "arrow_back";
9859
9859
  }
9860
9860
  };
9861
- return (React__default["default"].createElement("div", { className: [styles$8.container, styles$8[type]].join(" ") },
9861
+ return (React__default["default"].createElement("div", { className: [
9862
+ styles$8.container,
9863
+ type === "forward" ? styles$8.forward : styles$8.not_forward,
9864
+ type === "back" ? styles$8.back : styles$8.not_back,
9865
+ type === "middle" ? styles$8.middle : styles$8.not_middle
9866
+ ].join(" ") },
9862
9867
  React__default["default"].createElement("button", { onClick: onClickButton, className: styles$8.button, id: id },
9863
9868
  React__default["default"].createElement(SvgIcon, { iconName: getIcon() }),
9864
9869
  React__default["default"].createElement("span", { className: styles$8.label }, "Zur\u00FCck"))));
package/dist/index.d.ts CHANGED
@@ -52,7 +52,7 @@ export * from './types/Category';
52
52
  export * from './types/Course';
53
53
  export * from './types/Ebook';
54
54
  export * from './types/Feedback';
55
- export * from './types/HelpData';
55
+ export * from './types/Help';
56
56
  export * from './types/LicenseKey';
57
57
  export * from './types/Manager';
58
58
  export * from './types/Material';
package/dist/index.esm.js CHANGED
@@ -9815,8 +9815,8 @@ function RadioButtons({ options, group, selected, onClick, width = "100%" }) {
9815
9815
  React__default.createElement(SvgIcon, { iconName: "done", size: "20px" })))));
9816
9816
  }
9817
9817
 
9818
- var css_248z$8 = ".styles-module_container__RhsQe {\n margin-right: 8px;\n}\n.styles-module_container__RhsQe.styles-module_back__j0HkC {\n display: block;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 span {\n color: var(--foreground-1);\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0:hover {\n background: var(--background-1);\n}\n.styles-module_container__RhsQe .styles-module_label__bdjMh {\n display: none;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_label__bdjMh {\n display: block;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0 {\n flex-direction: row;\n gap: 5px;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0:hover {\n background: none;\n}\n\n@media (max-width: 800px) {\n .styles-module_container__RhsQe.styles-module_back__j0HkC {\n flex-basis: 100%;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_label__bdjMh {\n display: block;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0 {\n gap: 5px;\n width: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0:hover {\n background: none;\n }\n}";
9819
- var styles$8 = {"container":"styles-module_container__RhsQe","back":"styles-module_back__j0HkC","button":"styles-module_button__HuX-0","label":"styles-module_label__bdjMh","middle":"styles-module_middle__xg7RF"};
9818
+ var css_248z$8 = ".styles-module_container__RhsQe {\n margin-right: 8px;\n}\n.styles-module_container__RhsQe.styles-module_back__j0HkC {\n display: block;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 span {\n color: var(--foreground-1);\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0:hover {\n background: var(--background-1);\n}\n.styles-module_container__RhsQe .styles-module_label__bdjMh {\n display: none;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_label__bdjMh {\n display: block;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0 {\n flex-direction: row;\n gap: 5px;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0:hover {\n background: none;\n}\n\n@media (max-width: 800px) {\n .styles-module_container__RhsQe.styles-module_forward__Vjtye {\n flex-basis: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC {\n flex-basis: 100%;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_label__bdjMh {\n display: block;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0 {\n gap: 5px;\n width: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0:hover {\n background: none;\n }\n}";
9819
+ var styles$8 = {"container":"styles-module_container__RhsQe","back":"styles-module_back__j0HkC","button":"styles-module_button__HuX-0","label":"styles-module_label__bdjMh","middle":"styles-module_middle__xg7RF","forward":"styles-module_forward__Vjtye"};
9820
9820
  styleInject(css_248z$8);
9821
9821
 
9822
9822
  function RedirectButton({ id, type = "forward", onClick }) {
@@ -9832,7 +9832,12 @@ function RedirectButton({ id, type = "forward", onClick }) {
9832
9832
  case "middle": return "arrow_back";
9833
9833
  }
9834
9834
  };
9835
- return (React__default.createElement("div", { className: [styles$8.container, styles$8[type]].join(" ") },
9835
+ return (React__default.createElement("div", { className: [
9836
+ styles$8.container,
9837
+ type === "forward" ? styles$8.forward : styles$8.not_forward,
9838
+ type === "back" ? styles$8.back : styles$8.not_back,
9839
+ type === "middle" ? styles$8.middle : styles$8.not_middle
9840
+ ].join(" ") },
9836
9841
  React__default.createElement("button", { onClick: onClickButton, className: styles$8.button, id: id },
9837
9842
  React__default.createElement(SvgIcon, { iconName: getIcon() }),
9838
9843
  React__default.createElement("span", { className: styles$8.label }, "Zur\u00FCck"))));
@@ -0,0 +1,21 @@
1
+ import { PortableTextBlock } from "sanity";
2
+ export type HelpCategory = {
3
+ _id: string;
4
+ _type: "helpCategory";
5
+ title: string;
6
+ };
7
+ export type HelpArticle = {
8
+ _id: string;
9
+ _type: "helpArticle";
10
+ title: string;
11
+ content: PortableTextBlock[];
12
+ categories: HelpCategory[];
13
+ };
14
+ export type HelpData = {
15
+ _id: string;
16
+ _type: "helpData";
17
+ title: string;
18
+ content: any;
19
+ openButtonText: string;
20
+ closeButtonText: string;
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.183",
3
+ "version": "0.0.185",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*"