@learnmd/default-theme 0.0.1-beta.0 → 0.0.2-beta.0
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/components/CatalogViewer.d.ts +3 -1
- package/dist/components/CatalogViewer.d.ts.map +1 -1
- package/dist/components/CatalogViewer.js +18 -3
- package/dist/components/CatalogViewer.js.map +1 -1
- package/dist/components/CourseOverview.d.ts +11 -0
- package/dist/components/CourseOverview.d.ts.map +1 -0
- package/dist/components/CourseOverview.js +21 -0
- package/dist/components/CourseOverview.js.map +1 -0
- package/dist/components/CourseViewer.d.ts +3 -1
- package/dist/components/CourseViewer.d.ts.map +1 -1
- package/dist/components/CourseViewer.js +89 -17
- package/dist/components/CourseViewer.js.map +1 -1
- package/dist/components/ProfileViewer.d.ts.map +1 -1
- package/dist/components/ProfileViewer.js +22 -6
- package/dist/components/ProfileViewer.js.map +1 -1
- package/dist/components/Quiz.d.ts +3 -1
- package/dist/components/Quiz.d.ts.map +1 -1
- package/dist/components/Quiz.js +5 -3
- package/dist/components/Quiz.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/layouts/CourseLayout.d.ts.map +1 -1
- package/dist/layouts/CourseLayout.js +2 -11
- package/dist/layouts/CourseLayout.js.map +1 -1
- package/dist/layouts/MainLayout.d.ts +5 -1
- package/dist/layouts/MainLayout.d.ts.map +1 -1
- package/dist/layouts/MainLayout.js +19 -3
- package/dist/layouts/MainLayout.js.map +1 -1
- package/dist/styles/output.css +143 -55
- package/package.json +5 -4
- package/dist/components/Callout.test.d.ts +0 -2
- package/dist/components/Callout.test.d.ts.map +0 -1
- package/dist/components/Callout.test.js +0 -24
- package/dist/components/Callout.test.js.map +0 -1
- package/dist/components/Quiz.test.d.ts +0 -2
- package/dist/components/Quiz.test.d.ts.map +0 -1
- package/dist/components/Quiz.test.js +0 -48
- package/dist/components/Quiz.test.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CourseLayout.js","sourceRoot":"","sources":["../../src/layouts/CourseLayout.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CourseLayout.js","sourceRoot":"","sources":["../../src/layouts/CourseLayout.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA2BtC,MAAM,UAAU,YAAY,CAAC,EAC3B,QAAQ,EACR,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,kBAAkB,GAAG,IAAI,EACzB,YAAY,GAAG,IAAI,EACnB,cAAc,GAAG,IAAI,EACrB,MAAM,GACY;IAClB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CACpD,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CACrC,CAAC;IAEF,MAAM,YAAY,GAAG,CAAC,QAAgB,EAAE,EAAE;QACxC,kBAAkB,CAAC,CAAC,IAAI,EAAE,EAAE;YAC1B,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;YAC3B,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACvB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;Y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AAC,CAAC,CAAC,CACF,eAAO,CACR,IACG,CACP,CAAC;AACJ,CAAC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -12,7 +12,11 @@ export interface HeaderProps {
|
|
|
12
12
|
showSearch?: boolean;
|
|
13
13
|
showLanguageSwitcher?: boolean;
|
|
14
14
|
actions?: ReactNode;
|
|
15
|
+
navigation?: {
|
|
16
|
+
label: string | Record<string, string>;
|
|
17
|
+
path: string;
|
|
18
|
+
}[];
|
|
15
19
|
}
|
|
16
|
-
export declare function Header({ logo, title, showThemeToggle, showLanguageSwitcher, actions, }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function Header({ logo, title, showThemeToggle, showLanguageSwitcher, actions, navigation: manualNavigation, }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
21
|
export default MainLayout;
|
|
18
22
|
//# sourceMappingURL=MainLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/MainLayout.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MainLayout.d.ts","sourceRoot":"","sources":["../../src/layouts/MainLayout.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAMxD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,WAAW,2CAMnD;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzE;AAED,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,KAAK,EACL,eAAsB,EACtB,oBAA2B,EAC3B,OAAO,EACP,UAAU,EAAE,gBAAgB,GAC7B,EAAE,WAAW,2CAkGb;AA2CD,eAAe,UAAU,CAAC"}
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { ThemeProvider, useTheme } from '../hooks';
|
|
3
|
+
import { ThemeProvider, useTheme, useI18n } from '../hooks';
|
|
4
|
+
import { LanguageSwitcher } from '../components/LanguageSwitcher';
|
|
5
|
+
import { useLearnMD } from '@learnmd/core';
|
|
6
|
+
import { Link } from 'react-router-dom';
|
|
4
7
|
export function MainLayout({ children }) {
|
|
5
8
|
return (_jsx(ThemeProvider, { children: _jsx("div", { className: "min-h-screen bg-[rgb(var(--bg-primary))]", children: children }) }));
|
|
6
9
|
}
|
|
7
|
-
export function Header({ logo, title, showThemeToggle = true, showLanguageSwitcher =
|
|
10
|
+
export function Header({ logo, title, showThemeToggle = true, showLanguageSwitcher = true, actions, navigation: manualNavigation, }) {
|
|
8
11
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
9
|
-
|
|
12
|
+
const { currentLanguage } = useI18n();
|
|
13
|
+
const { config } = useLearnMD();
|
|
14
|
+
const navigation = manualNavigation || config.navigation || [];
|
|
15
|
+
return (_jsxs("header", { className: "sticky top-0 z-40 bg-[rgb(var(--bg-primary))]/95 backdrop-blur border-b border-[rgb(var(--border-color))]", children: [_jsx("div", { className: "container mx-auto px-4", children: _jsxs("div", { className: "flex items-center justify-between h-16", children: [_jsxs("div", { className: "flex items-center gap-4", children: [logo || (_jsxs(Link, { to: "/", className: "flex items-center gap-2", children: [_jsx("span", { className: "text-2xl", children: "\uD83D\uDCDA" }), _jsx("span", { className: "font-bold text-xl", children: "LearnMD" })] })), title && (_jsxs("span", { className: "hidden md:block text-[rgb(var(--text-secondary))]", children: ["/ ", title] })), navigation.length > 0 && (_jsx("nav", { className: "hidden md:flex items-center gap-6 ml-6 text-sm font-medium", children: navigation.map((item, idx) => {
|
|
16
|
+
const label = typeof item.label === 'string'
|
|
17
|
+
? item.label
|
|
18
|
+
: item.label[currentLanguage] || Object.values(item.label)[0];
|
|
19
|
+
return (_jsx(Link, { to: item.path, className: "text-[rgb(var(--text-secondary))] hover:text-[rgb(var(--text-primary))] transition-colors", children: label }, idx));
|
|
20
|
+
}) }))] }), _jsxs("div", { className: "flex items-center gap-2 md:gap-4", children: [actions, _jsx(Link, { to: "/profile", className: "p-2 rounded-lg flex items-center justify-center hover:bg-[rgb(var(--bg-tertiary))] text-[rgb(var(--text-secondary))] hover:text-[rgb(var(--text-primary))] transition-colors", title: "User Profile", children: _jsx("svg", { className: "w-5 h-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" }) }) }), showLanguageSwitcher && (_jsx("div", { className: "hidden md:block", children: _jsx(LanguageSwitcher, {}) })), showThemeToggle && _jsx(ThemeToggle, {}), _jsx("button", { className: "md:hidden p-2", onClick: () => setIsMobileMenuOpen(!isMobileMenuOpen), children: _jsx("svg", { className: "w-6 h-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: isMobileMenuOpen ? (_jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" })) : (_jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 6h16M4 12h16M4 18h16" })) }) })] })] }) }), isMobileMenuOpen && (_jsx("div", { className: "md:hidden border-t border-[rgb(var(--border-color))]", children: _jsx("nav", { className: "px-4 py-4 space-y-2", children: navigation.map((item, idx) => {
|
|
21
|
+
const label = typeof item.label === 'string'
|
|
22
|
+
? item.label
|
|
23
|
+
: item.label[currentLanguage] || Object.values(item.label)[0];
|
|
24
|
+
return (_jsx(Link, { to: item.path, onClick: () => setIsMobileMenuOpen(false), className: "block py-2 text-[rgb(var(--text-secondary))] hover:text-[rgb(var(--text-primary))]", children: label }, idx));
|
|
25
|
+
}) }) }))] }));
|
|
10
26
|
}
|
|
11
27
|
function ThemeToggle() {
|
|
12
28
|
const [mounted, setMounted] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainLayout.js","sourceRoot":"","sources":["../../src/layouts/MainLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"MainLayout.js","sourceRoot":"","sources":["../../src/layouts/MainLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAQxC,MAAM,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAe;IAClD,OAAO,CACL,KAAC,aAAa,cACZ,cAAK,SAAS,EA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Aa,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,cAAK,SAAS,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,EAAC,cAAc,YAC5E,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,uJAAuJ,GACzJ,GACE,CACP,CAAC,CAAC,CAAC,CACF,cAAK,SAAS,EAAC,SAAS,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,EAAC,cAAc,YAC5E,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,uFAAuF,GACzF,GACE,CACP,GACM,CACV,CAAC;AACJ,CAAC;AAED,eAAe,UAAU,CAAC"}
|
package/dist/styles/output.css
CHANGED
|
@@ -859,6 +859,10 @@ body {
|
|
|
859
859
|
margin-bottom: 0.25rem;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
+
.mb-12 {
|
|
863
|
+
margin-bottom: 3rem;
|
|
864
|
+
}
|
|
865
|
+
|
|
862
866
|
.mb-2 {
|
|
863
867
|
margin-bottom: 0.5rem;
|
|
864
868
|
}
|
|
@@ -891,8 +895,8 @@ body {
|
|
|
891
895
|
margin-left: 1rem;
|
|
892
896
|
}
|
|
893
897
|
|
|
894
|
-
.ml-
|
|
895
|
-
margin-left:
|
|
898
|
+
.ml-6 {
|
|
899
|
+
margin-left: 1.5rem;
|
|
896
900
|
}
|
|
897
901
|
|
|
898
902
|
.ml-auto {
|
|
@@ -923,6 +927,10 @@ body {
|
|
|
923
927
|
margin-top: 0.5rem;
|
|
924
928
|
}
|
|
925
929
|
|
|
930
|
+
.mt-3 {
|
|
931
|
+
margin-top: 0.75rem;
|
|
932
|
+
}
|
|
933
|
+
|
|
926
934
|
.line-clamp-2 {
|
|
927
935
|
overflow: hidden;
|
|
928
936
|
display: -webkit-box;
|
|
@@ -934,6 +942,10 @@ body {
|
|
|
934
942
|
display: block;
|
|
935
943
|
}
|
|
936
944
|
|
|
945
|
+
.inline-block {
|
|
946
|
+
display: inline-block;
|
|
947
|
+
}
|
|
948
|
+
|
|
937
949
|
.flex {
|
|
938
950
|
display: flex;
|
|
939
951
|
}
|
|
@@ -1022,6 +1034,11 @@ body {
|
|
|
1022
1034
|
height: 2rem;
|
|
1023
1035
|
}
|
|
1024
1036
|
|
|
1037
|
+
.h-fit {
|
|
1038
|
+
height: -moz-fit-content;
|
|
1039
|
+
height: fit-content;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1025
1042
|
.h-full {
|
|
1026
1043
|
height: 100%;
|
|
1027
1044
|
}
|
|
@@ -1106,8 +1123,8 @@ body {
|
|
|
1106
1123
|
min-width: 0px;
|
|
1107
1124
|
}
|
|
1108
1125
|
|
|
1109
|
-
.max-w-
|
|
1110
|
-
max-width:
|
|
1126
|
+
.max-w-4xl {
|
|
1127
|
+
max-width: 56rem;
|
|
1111
1128
|
}
|
|
1112
1129
|
|
|
1113
1130
|
.max-w-5xl {
|
|
@@ -1122,6 +1139,10 @@ body {
|
|
|
1122
1139
|
max-width: 100%;
|
|
1123
1140
|
}
|
|
1124
1141
|
|
|
1142
|
+
.max-w-none {
|
|
1143
|
+
max-width: none;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1125
1146
|
.flex-1 {
|
|
1126
1147
|
flex: 1 1 0%;
|
|
1127
1148
|
}
|
|
@@ -1204,6 +1225,14 @@ body {
|
|
|
1204
1225
|
cursor: zoom-out;
|
|
1205
1226
|
}
|
|
1206
1227
|
|
|
1228
|
+
.list-inside {
|
|
1229
|
+
list-style-position: inside;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
.list-disc {
|
|
1233
|
+
list-style-type: disc;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1207
1236
|
.grid-cols-1 {
|
|
1208
1237
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
1209
1238
|
}
|
|
@@ -1216,6 +1245,10 @@ body {
|
|
|
1216
1245
|
flex-direction: column;
|
|
1217
1246
|
}
|
|
1218
1247
|
|
|
1248
|
+
.flex-wrap {
|
|
1249
|
+
flex-wrap: wrap;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1219
1252
|
.items-start {
|
|
1220
1253
|
align-items: flex-start;
|
|
1221
1254
|
}
|
|
@@ -1256,6 +1289,10 @@ body {
|
|
|
1256
1289
|
gap: 1.5rem;
|
|
1257
1290
|
}
|
|
1258
1291
|
|
|
1292
|
+
.gap-8 {
|
|
1293
|
+
gap: 2rem;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1259
1296
|
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1260
1297
|
--tw-space-y-reverse: 0;
|
|
1261
1298
|
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -1286,6 +1323,12 @@ body {
|
|
|
1286
1323
|
margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
|
|
1287
1324
|
}
|
|
1288
1325
|
|
|
1326
|
+
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
|
|
1327
|
+
--tw-space-y-reverse: 0;
|
|
1328
|
+
margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1329
|
+
margin-bottom: calc(2rem * var(--tw-space-y-reverse));
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1289
1332
|
.overflow-hidden {
|
|
1290
1333
|
overflow: hidden;
|
|
1291
1334
|
}
|
|
@@ -1456,6 +1499,10 @@ body {
|
|
|
1456
1499
|
background-color: rgb(var(--bg-primary) / 0.95);
|
|
1457
1500
|
}
|
|
1458
1501
|
|
|
1502
|
+
.bg-\[rgb\(var\(--bg-secondary\)\)\] {
|
|
1503
|
+
background-color: rgb(var(--bg-secondary));
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1459
1506
|
.bg-\[rgb\(var\(--bg-tertiary\)\)\] {
|
|
1460
1507
|
background-color: rgb(var(--bg-tertiary));
|
|
1461
1508
|
}
|
|
@@ -1464,6 +1511,10 @@ body {
|
|
|
1464
1511
|
background-color: rgb(var(--border-color));
|
|
1465
1512
|
}
|
|
1466
1513
|
|
|
1514
|
+
.bg-\[rgb\(var\(--color-primary-100\)\)\] {
|
|
1515
|
+
background-color: rgb(var(--color-primary-100));
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1467
1518
|
.bg-\[rgb\(var\(--color-primary-50\)\)\] {
|
|
1468
1519
|
background-color: rgb(var(--color-primary-50));
|
|
1469
1520
|
}
|
|
@@ -1545,11 +1596,6 @@ body {
|
|
|
1545
1596
|
background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
|
|
1546
1597
|
}
|
|
1547
1598
|
|
|
1548
|
-
.bg-gray-50 {
|
|
1549
|
-
--tw-bg-opacity: 1;
|
|
1550
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
1599
|
.bg-rose-100 {
|
|
1554
1600
|
--tw-bg-opacity: 1;
|
|
1555
1601
|
background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1));
|
|
@@ -1609,9 +1655,9 @@ body {
|
|
|
1609
1655
|
padding: 2rem;
|
|
1610
1656
|
}
|
|
1611
1657
|
|
|
1612
|
-
.px-
|
|
1613
|
-
padding-left: 0.
|
|
1614
|
-
padding-right: 0.
|
|
1658
|
+
.px-2 {
|
|
1659
|
+
padding-left: 0.5rem;
|
|
1660
|
+
padding-right: 0.5rem;
|
|
1615
1661
|
}
|
|
1616
1662
|
|
|
1617
1663
|
.px-3 {
|
|
@@ -1683,10 +1729,22 @@ body {
|
|
|
1683
1729
|
padding-bottom: 0.5rem;
|
|
1684
1730
|
}
|
|
1685
1731
|
|
|
1732
|
+
.pb-24 {
|
|
1733
|
+
padding-bottom: 6rem;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
.pb-4 {
|
|
1737
|
+
padding-bottom: 1rem;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1686
1740
|
.pb-6 {
|
|
1687
1741
|
padding-bottom: 1.5rem;
|
|
1688
1742
|
}
|
|
1689
1743
|
|
|
1744
|
+
.pb-8 {
|
|
1745
|
+
padding-bottom: 2rem;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1690
1748
|
.pl-1 {
|
|
1691
1749
|
padding-left: 0.25rem;
|
|
1692
1750
|
}
|
|
@@ -1695,10 +1753,6 @@ body {
|
|
|
1695
1753
|
padding-left: 2.5rem;
|
|
1696
1754
|
}
|
|
1697
1755
|
|
|
1698
|
-
.pl-4 {
|
|
1699
|
-
padding-left: 1rem;
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
1756
|
.pr-4 {
|
|
1703
1757
|
padding-right: 1rem;
|
|
1704
1758
|
}
|
|
@@ -1707,6 +1761,10 @@ body {
|
|
|
1707
1761
|
padding-top: 1rem;
|
|
1708
1762
|
}
|
|
1709
1763
|
|
|
1764
|
+
.pt-8 {
|
|
1765
|
+
padding-top: 2rem;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1710
1768
|
.text-left {
|
|
1711
1769
|
text-align: left;
|
|
1712
1770
|
}
|
|
@@ -1733,6 +1791,11 @@ body {
|
|
|
1733
1791
|
line-height: 2.25rem;
|
|
1734
1792
|
}
|
|
1735
1793
|
|
|
1794
|
+
.text-4xl {
|
|
1795
|
+
font-size: 2.25rem;
|
|
1796
|
+
line-height: 2.5rem;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1736
1799
|
.text-5xl {
|
|
1737
1800
|
font-size: 3rem;
|
|
1738
1801
|
line-height: 1;
|
|
@@ -1814,6 +1877,14 @@ body {
|
|
|
1814
1877
|
color: rgb(var(--color-primary-500));
|
|
1815
1878
|
}
|
|
1816
1879
|
|
|
1880
|
+
.text-\[rgb\(var\(--color-primary-600\)\)\] {
|
|
1881
|
+
color: rgb(var(--color-primary-600));
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
.text-\[rgb\(var\(--color-primary-800\)\)\] {
|
|
1885
|
+
color: rgb(var(--color-primary-800));
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1817
1888
|
.text-\[rgb\(var\(--error\)\)\] {
|
|
1818
1889
|
color: rgb(var(--error));
|
|
1819
1890
|
}
|
|
@@ -1870,11 +1941,6 @@ body {
|
|
|
1870
1941
|
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
1871
1942
|
}
|
|
1872
1943
|
|
|
1873
|
-
.text-gray-700 {
|
|
1874
|
-
--tw-text-opacity: 1;
|
|
1875
|
-
color: rgb(55 65 81 / var(--tw-text-opacity, 1));
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
1944
|
.text-rose-600 {
|
|
1879
1945
|
--tw-text-opacity: 1;
|
|
1880
1946
|
color: rgb(225 29 72 / var(--tw-text-opacity, 1));
|
|
@@ -1915,11 +1981,6 @@ body {
|
|
|
1915
1981
|
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
1916
1982
|
}
|
|
1917
1983
|
|
|
1918
|
-
.text-yellow-400 {
|
|
1919
|
-
--tw-text-opacity: 1;
|
|
1920
|
-
color: rgb(250 204 21 / var(--tw-text-opacity, 1));
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
1984
|
.opacity-0 {
|
|
1924
1985
|
opacity: 0;
|
|
1925
1986
|
}
|
|
@@ -2177,16 +2238,28 @@ body {
|
|
|
2177
2238
|
font-weight: 600;
|
|
2178
2239
|
}
|
|
2179
2240
|
|
|
2241
|
+
.last\:border-0:last-child {
|
|
2242
|
+
border-width: 0px;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2180
2245
|
.last\:border-b-0:last-child {
|
|
2181
2246
|
border-bottom-width: 0px;
|
|
2182
2247
|
}
|
|
2183
2248
|
|
|
2249
|
+
.last\:pb-0:last-child {
|
|
2250
|
+
padding-bottom: 0px;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2184
2253
|
.hover\:scale-105:hover {
|
|
2185
2254
|
--tw-scale-x: 1.05;
|
|
2186
2255
|
--tw-scale-y: 1.05;
|
|
2187
2256
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2188
2257
|
}
|
|
2189
2258
|
|
|
2259
|
+
.hover\:border-\[rgb\(var\(--color-primary-500\)\)\]:hover {
|
|
2260
|
+
border-color: rgb(var(--color-primary-500));
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2190
2263
|
.hover\:border-emerald-400:hover {
|
|
2191
2264
|
--tw-border-opacity: 1;
|
|
2192
2265
|
border-color: rgb(52 211 153 / var(--tw-border-opacity, 1));
|
|
@@ -2197,6 +2270,10 @@ body {
|
|
|
2197
2270
|
border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
|
|
2198
2271
|
}
|
|
2199
2272
|
|
|
2273
|
+
.hover\:bg-\[rgb\(var\(--bg-secondary\)\)\]:hover {
|
|
2274
|
+
background-color: rgb(var(--bg-secondary));
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2200
2277
|
.hover\:bg-\[rgb\(var\(--bg-tertiary\)\)\]:hover {
|
|
2201
2278
|
background-color: rgb(var(--bg-tertiary));
|
|
2202
2279
|
}
|
|
@@ -2234,13 +2311,16 @@ body {
|
|
|
2234
2311
|
background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));
|
|
2235
2312
|
}
|
|
2236
2313
|
|
|
2237
|
-
.hover\:text-\[rgb\(var\(--
|
|
2238
|
-
color: rgb(var(--
|
|
2314
|
+
.hover\:text-\[rgb\(var\(--color-primary-500\)\)\]:hover {
|
|
2315
|
+
color: rgb(var(--color-primary-500));
|
|
2239
2316
|
}
|
|
2240
2317
|
|
|
2241
|
-
.hover\:text-
|
|
2242
|
-
--
|
|
2243
|
-
|
|
2318
|
+
.hover\:text-\[rgb\(var\(--text-primary\)\)\]:hover {
|
|
2319
|
+
color: rgb(var(--text-primary));
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
.hover\:text-\[rgb\(var\(--text-secondary\)\)\]:hover {
|
|
2323
|
+
color: rgb(var(--text-secondary));
|
|
2244
2324
|
}
|
|
2245
2325
|
|
|
2246
2326
|
.hover\:text-slate-900:hover {
|
|
@@ -2258,9 +2338,8 @@ body {
|
|
|
2258
2338
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2259
2339
|
}
|
|
2260
2340
|
|
|
2261
|
-
.focus\:border-
|
|
2262
|
-
|
|
2263
|
-
border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
|
|
2341
|
+
.focus\:border-\[rgb\(var\(--color-primary-500\)\)\]:focus {
|
|
2342
|
+
border-color: rgb(var(--color-primary-500));
|
|
2264
2343
|
}
|
|
2265
2344
|
|
|
2266
2345
|
.focus\:ring-2:focus {
|
|
@@ -2269,9 +2348,8 @@ body {
|
|
|
2269
2348
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2270
2349
|
}
|
|
2271
2350
|
|
|
2272
|
-
.focus\:ring-
|
|
2273
|
-
--tw-ring-
|
|
2274
|
-
--tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity, 1));
|
|
2351
|
+
.focus\:ring-\[rgb\(var\(--color-primary-500\)\)\]:focus {
|
|
2352
|
+
--tw-ring-color: rgb(var(--color-primary-500));
|
|
2275
2353
|
}
|
|
2276
2354
|
|
|
2277
2355
|
.disabled\:cursor-not-allowed:disabled {
|
|
@@ -2338,11 +2416,6 @@ body {
|
|
|
2338
2416
|
border-color: rgb(159 18 57 / 0.5);
|
|
2339
2417
|
}
|
|
2340
2418
|
|
|
2341
|
-
.dark\:bg-\[\#1b1b1d\]:is(.dark *) {
|
|
2342
|
-
--tw-bg-opacity: 1;
|
|
2343
|
-
background-color: rgb(27 27 29 / var(--tw-bg-opacity, 1));
|
|
2344
|
-
}
|
|
2345
|
-
|
|
2346
2419
|
.dark\:bg-\[\#1c1e21\]:is(.dark *) {
|
|
2347
2420
|
--tw-bg-opacity: 1;
|
|
2348
2421
|
background-color: rgb(28 30 33 / var(--tw-bg-opacity, 1));
|
|
@@ -2353,9 +2426,8 @@ body {
|
|
|
2353
2426
|
background-color: rgb(32 33 36 / var(--tw-bg-opacity, 1));
|
|
2354
2427
|
}
|
|
2355
2428
|
|
|
2356
|
-
.dark\:bg-\[
|
|
2357
|
-
--
|
|
2358
|
-
background-color: rgb(36 37 38 / var(--tw-bg-opacity, 1));
|
|
2429
|
+
.dark\:bg-\[rgb\(var\(--color-primary-900\)\)\]:is(.dark *) {
|
|
2430
|
+
background-color: rgb(var(--color-primary-900));
|
|
2359
2431
|
}
|
|
2360
2432
|
|
|
2361
2433
|
.dark\:bg-\[rgb\(var\(--color-primary-900\)\)\]\/30:is(.dark *) {
|
|
@@ -2370,11 +2442,6 @@ body {
|
|
|
2370
2442
|
background-color: rgb(30 58 138 / 0.2);
|
|
2371
2443
|
}
|
|
2372
2444
|
|
|
2373
|
-
.dark\:bg-emerald-900:is(.dark *) {
|
|
2374
|
-
--tw-bg-opacity: 1;
|
|
2375
|
-
background-color: rgb(6 78 59 / var(--tw-bg-opacity, 1));
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
2445
|
.dark\:bg-emerald-900\/10:is(.dark *) {
|
|
2379
2446
|
background-color: rgb(6 78 59 / 0.1);
|
|
2380
2447
|
}
|
|
@@ -2401,11 +2468,6 @@ body {
|
|
|
2401
2468
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
|
|
2402
2469
|
}
|
|
2403
2470
|
|
|
2404
|
-
.dark\:bg-gray-900:is(.dark *) {
|
|
2405
|
-
--tw-bg-opacity: 1;
|
|
2406
|
-
background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
2471
|
.dark\:bg-rose-900\/10:is(.dark *) {
|
|
2410
2472
|
background-color: rgb(136 19 55 / 0.1);
|
|
2411
2473
|
}
|
|
@@ -2423,6 +2485,10 @@ body {
|
|
|
2423
2485
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
2424
2486
|
}
|
|
2425
2487
|
|
|
2488
|
+
.dark\:text-\[rgb\(var\(--color-primary-400\)\)\]:is(.dark *) {
|
|
2489
|
+
color: rgb(var(--color-primary-400));
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2426
2492
|
.dark\:text-amber-400:is(.dark *) {
|
|
2427
2493
|
--tw-text-opacity: 1;
|
|
2428
2494
|
color: rgb(251 191 36 / var(--tw-text-opacity, 1));
|
|
@@ -2513,7 +2579,25 @@ body {
|
|
|
2513
2579
|
color: rgb(243 244 246 / var(--tw-text-opacity, 1));
|
|
2514
2580
|
}
|
|
2515
2581
|
|
|
2582
|
+
@media (min-width: 640px) {
|
|
2583
|
+
.sm\:w-auto {
|
|
2584
|
+
width: auto;
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
.sm\:flex-row {
|
|
2588
|
+
flex-direction: row;
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2516
2592
|
@media (min-width: 768px) {
|
|
2593
|
+
.md\:col-span-1 {
|
|
2594
|
+
grid-column: span 1 / span 1;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
.md\:col-span-2 {
|
|
2598
|
+
grid-column: span 2 / span 2;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2517
2601
|
.md\:block {
|
|
2518
2602
|
display: block;
|
|
2519
2603
|
}
|
|
@@ -2537,6 +2621,10 @@ body {
|
|
|
2537
2621
|
.md\:grid-cols-4 {
|
|
2538
2622
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
2539
2623
|
}
|
|
2624
|
+
|
|
2625
|
+
.md\:gap-4 {
|
|
2626
|
+
gap: 1rem;
|
|
2627
|
+
}
|
|
2540
2628
|
}
|
|
2541
2629
|
|
|
2542
2630
|
@media (min-width: 1024px) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learnmd/default-theme",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-beta.0",
|
|
4
4
|
"description": "Default theme for LearnMD courses",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@mdx-js/react": "^3.0.1",
|
|
24
24
|
"react": ">=18.0.0",
|
|
25
25
|
"react-dom": ">=18.0.0",
|
|
26
|
-
"react-router-dom": "^7.13.1",
|
|
27
26
|
"zustand": "^4.5.0",
|
|
28
|
-
"@learnmd/core": "0.0.
|
|
27
|
+
"@learnmd/core": "0.0.2-beta.0",
|
|
28
|
+
"@learnmd/plugin-pdf": "0.0.2-beta.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testing-library/jest-dom": "^6.4.2",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=18.0.0",
|
|
48
|
-
"react-dom": ">=18.0.0"
|
|
48
|
+
"react-dom": ">=18.0.0",
|
|
49
|
+
"react-router-dom": ">=6.4.0"
|
|
49
50
|
},
|
|
50
51
|
"keywords": [
|
|
51
52
|
"learnmd",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.test.d.ts","sourceRoot":"","sources":["../../src/components/Callout.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { render, screen } from '@testing-library/react';
|
|
3
|
-
import { describe, it, expect } from 'vitest';
|
|
4
|
-
import Callout from './Callout';
|
|
5
|
-
describe('Callout', () => {
|
|
6
|
-
it('should render children content', () => {
|
|
7
|
-
render(_jsx(Callout, { children: "Test Content" }));
|
|
8
|
-
expect(screen.getByText('Test Content')).toBeDefined();
|
|
9
|
-
});
|
|
10
|
-
it('should render with correct title', () => {
|
|
11
|
-
render(_jsx(Callout, { title: "Custom Title", children: "Content" }));
|
|
12
|
-
expect(screen.getByText('Custom Title')).toBeDefined();
|
|
13
|
-
});
|
|
14
|
-
it('should apply correct classes based on type', () => {
|
|
15
|
-
const { container } = render(_jsx(Callout, { type: "danger", children: "Danger Content" }));
|
|
16
|
-
// Check for rose classes (danger)
|
|
17
|
-
expect(container.firstChild).toHaveClass('bg-rose-50');
|
|
18
|
-
});
|
|
19
|
-
it('should render default title if none provided', () => {
|
|
20
|
-
render(_jsx(Callout, { type: "warning", children: "Warning Content" }));
|
|
21
|
-
expect(screen.getByText('Warning')).toBeDefined();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=Callout.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Callout.test.js","sourceRoot":"","sources":["../../src/components/Callout.test.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,KAAC,OAAO,+BAAuB,CAAC,CAAC;QACxC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,KAAC,OAAO,IAAC,KAAK,EAAC,cAAc,wBAAkB,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,+BAAyB,CAAC,CAAC;QAC9E,kCAAkC;QAClC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,CAAC,KAAC,OAAO,IAAC,IAAI,EAAC,SAAS,gCAA0B,CAAC,CAAC;QAC1D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Quiz.test.d.ts","sourceRoot":"","sources":["../../src/components/Quiz.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
-
import { describe, it, expect, vi } from 'vitest';
|
|
4
|
-
import Quiz from './Quiz';
|
|
5
|
-
describe('Quiz', () => {
|
|
6
|
-
const mockQuestions = [
|
|
7
|
-
{
|
|
8
|
-
id: 'q1',
|
|
9
|
-
type: 'multiple-choice',
|
|
10
|
-
question: 'What is 1+1?',
|
|
11
|
-
options: [
|
|
12
|
-
{ id: '1', label: '1' },
|
|
13
|
-
{ id: '2', label: '2' },
|
|
14
|
-
],
|
|
15
|
-
correctAnswer: '2',
|
|
16
|
-
explanation: 'Math basic',
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
it('should render the first question', () => {
|
|
20
|
-
render(_jsx(Quiz, { id: "quiz-1", questions: mockQuestions }));
|
|
21
|
-
expect(screen.getByText('What is 1+1?')).toBeDefined();
|
|
22
|
-
expect(screen.getByText('Question 1 of 1')).toBeDefined();
|
|
23
|
-
});
|
|
24
|
-
it('should allow selecting and submitting an answer', () => {
|
|
25
|
-
const onComplete = vi.fn();
|
|
26
|
-
render(_jsx(Quiz, { id: "quiz-1", questions: mockQuestions, onComplete: onComplete }));
|
|
27
|
-
// Select answer
|
|
28
|
-
const option = screen.getByText('2');
|
|
29
|
-
fireEvent.click(option);
|
|
30
|
-
// Submit
|
|
31
|
-
const submitBtn = screen.getByText('Submit Answer');
|
|
32
|
-
fireEvent.click(submitBtn);
|
|
33
|
-
// The results view is shown immediately for the last question
|
|
34
|
-
expect(onComplete).toHaveBeenCalledWith(expect.objectContaining({
|
|
35
|
-
score: 100,
|
|
36
|
-
passed: true
|
|
37
|
-
}));
|
|
38
|
-
expect(screen.getByText('Congratulations!')).toBeDefined();
|
|
39
|
-
});
|
|
40
|
-
it('should show results on completion', () => {
|
|
41
|
-
render(_jsx(Quiz, { id: "quiz-1", questions: mockQuestions }));
|
|
42
|
-
fireEvent.click(screen.getByText('2'));
|
|
43
|
-
fireEvent.click(screen.getByText('Submit Answer'));
|
|
44
|
-
expect(screen.getByText('Congratulations!')).toBeDefined();
|
|
45
|
-
expect(screen.getByText('100%')).toBeDefined();
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
//# sourceMappingURL=Quiz.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Quiz.test.js","sourceRoot":"","sources":["../../src/components/Quiz.test.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAA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