mordoc 0.1.1
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/README.md +240 -0
- package/bin/cli.js +81 -0
- package/dist/build/Builder.d.ts +91 -0
- package/dist/build/Builder.d.ts.map +1 -0
- package/dist/build/Builder.js +391 -0
- package/dist/build/Builder.js.map +1 -0
- package/dist/build/ClientBundler.d.ts +36 -0
- package/dist/build/ClientBundler.d.ts.map +1 -0
- package/dist/build/ClientBundler.js +132 -0
- package/dist/build/ClientBundler.js.map +1 -0
- package/dist/build/HtmlGenerator.d.ts +46 -0
- package/dist/build/HtmlGenerator.d.ts.map +1 -0
- package/dist/build/HtmlGenerator.js +200 -0
- package/dist/build/HtmlGenerator.js.map +1 -0
- package/dist/build/SearchIndexer.d.ts +31 -0
- package/dist/build/SearchIndexer.d.ts.map +1 -0
- package/dist/build/SearchIndexer.js +116 -0
- package/dist/build/SearchIndexer.js.map +1 -0
- package/dist/cli/build.d.ts +20 -0
- package/dist/cli/build.d.ts.map +1 -0
- package/dist/cli/build.js +111 -0
- package/dist/cli/build.js.map +1 -0
- package/dist/cli/create-app.d.ts +14 -0
- package/dist/cli/create-app.d.ts.map +1 -0
- package/dist/cli/create-app.js +216 -0
- package/dist/cli/create-app.js.map +1 -0
- package/dist/cli/dev.d.ts +20 -0
- package/dist/cli/dev.d.ts.map +1 -0
- package/dist/cli/dev.js +169 -0
- package/dist/cli/dev.js.map +1 -0
- package/dist/client/App.d.ts +17 -0
- package/dist/client/App.d.ts.map +1 -0
- package/dist/client/App.js +94 -0
- package/dist/client/App.js.map +1 -0
- package/dist/client/contexts/ConfigContext.d.ts +22 -0
- package/dist/client/contexts/ConfigContext.d.ts.map +1 -0
- package/dist/client/contexts/ConfigContext.js +27 -0
- package/dist/client/contexts/ConfigContext.js.map +1 -0
- package/dist/client/contexts/ContentContext.d.ts +31 -0
- package/dist/client/contexts/ContentContext.d.ts.map +1 -0
- package/dist/client/contexts/ContentContext.js +46 -0
- package/dist/client/contexts/ContentContext.js.map +1 -0
- package/dist/client/contexts/SearchContext.d.ts +38 -0
- package/dist/client/contexts/SearchContext.d.ts.map +1 -0
- package/dist/client/contexts/SearchContext.js +207 -0
- package/dist/client/contexts/SearchContext.js.map +1 -0
- package/dist/client/contexts/ThemeContext.d.ts +23 -0
- package/dist/client/contexts/ThemeContext.d.ts.map +1 -0
- package/dist/client/contexts/ThemeContext.js +62 -0
- package/dist/client/contexts/ThemeContext.js.map +1 -0
- package/dist/client/hooks/useContent.d.ts +12 -0
- package/dist/client/hooks/useContent.d.ts.map +1 -0
- package/dist/client/hooks/useContent.js +74 -0
- package/dist/client/hooks/useContent.js.map +1 -0
- package/dist/client/hooks/useNavigation.d.ts +15 -0
- package/dist/client/hooks/useNavigation.d.ts.map +1 -0
- package/dist/client/hooks/useNavigation.js +101 -0
- package/dist/client/hooks/useNavigation.js.map +1 -0
- package/dist/client/hooks/useSearch.d.ts +22 -0
- package/dist/client/hooks/useSearch.d.ts.map +1 -0
- package/dist/client/hooks/useSearch.js +64 -0
- package/dist/client/hooks/useSearch.js.map +1 -0
- package/dist/client/main.d.ts +5 -0
- package/dist/client/main.d.ts.map +1 -0
- package/dist/client/main.js +66 -0
- package/dist/client/main.js.map +1 -0
- package/dist/components/Callout.d.ts +9 -0
- package/dist/components/Callout.d.ts.map +1 -0
- package/dist/components/Callout.js +24 -0
- package/dist/components/Callout.js.map +1 -0
- package/dist/components/Card.d.ts +10 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Card.js +15 -0
- package/dist/components/Card.js.map +1 -0
- package/dist/components/CardGrid.d.ts +8 -0
- package/dist/components/CardGrid.d.ts.map +1 -0
- package/dist/components/CardGrid.js +9 -0
- package/dist/components/CardGrid.js.map +1 -0
- package/dist/components/CodeBlock.d.ts +24 -0
- package/dist/components/CodeBlock.d.ts.map +1 -0
- package/dist/components/CodeBlock.js +76 -0
- package/dist/components/CodeBlock.js.map +1 -0
- package/dist/components/ContentPage.d.ts +9 -0
- package/dist/components/ContentPage.d.ts.map +1 -0
- package/dist/components/ContentPage.js +36 -0
- package/dist/components/ContentPage.js.map +1 -0
- package/dist/components/Header.d.ts +14 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +30 -0
- package/dist/components/Header.js.map +1 -0
- package/dist/components/Heading.d.ts +16 -0
- package/dist/components/Heading.d.ts.map +1 -0
- package/dist/components/Heading.js +31 -0
- package/dist/components/Heading.js.map +1 -0
- package/dist/components/Image.d.ts +8 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/Image.js +24 -0
- package/dist/components/Image.js.map +1 -0
- package/dist/components/Layout.d.ts +14 -0
- package/dist/components/Layout.d.ts.map +1 -0
- package/dist/components/Layout.js +32 -0
- package/dist/components/Layout.js.map +1 -0
- package/dist/components/MarkdocRenderer.d.ts +15 -0
- package/dist/components/MarkdocRenderer.d.ts.map +1 -0
- package/dist/components/MarkdocRenderer.js +73 -0
- package/dist/components/MarkdocRenderer.js.map +1 -0
- package/dist/components/MobileMenu.d.ts +14 -0
- package/dist/components/MobileMenu.d.ts.map +1 -0
- package/dist/components/MobileMenu.js +45 -0
- package/dist/components/MobileMenu.js.map +1 -0
- package/dist/components/PageNavigation.d.ts +9 -0
- package/dist/components/PageNavigation.d.ts.map +1 -0
- package/dist/components/PageNavigation.js +23 -0
- package/dist/components/PageNavigation.js.map +1 -0
- package/dist/components/SearchModal.d.ts +9 -0
- package/dist/components/SearchModal.d.ts.map +1 -0
- package/dist/components/SearchModal.js +74 -0
- package/dist/components/SearchModal.js.map +1 -0
- package/dist/components/SideNav.d.ts +9 -0
- package/dist/components/SideNav.d.ts.map +1 -0
- package/dist/components/SideNav.js +66 -0
- package/dist/components/SideNav.js.map +1 -0
- package/dist/components/TableOfContents.d.ts +10 -0
- package/dist/components/TableOfContents.d.ts.map +1 -0
- package/dist/components/TableOfContents.js +151 -0
- package/dist/components/TableOfContents.js.map +1 -0
- package/dist/config/ConfigLoader.d.ts +50 -0
- package/dist/config/ConfigLoader.d.ts.map +1 -0
- package/dist/config/ConfigLoader.js +214 -0
- package/dist/config/ConfigLoader.js.map +1 -0
- package/dist/config/StyleCompiler.d.ts +17 -0
- package/dist/config/StyleCompiler.d.ts.map +1 -0
- package/dist/config/StyleCompiler.js +116 -0
- package/dist/config/StyleCompiler.js.map +1 -0
- package/dist/config/ThemeGenerator.d.ts +14 -0
- package/dist/config/ThemeGenerator.d.ts.map +1 -0
- package/dist/config/ThemeGenerator.js +129 -0
- package/dist/config/ThemeGenerator.js.map +1 -0
- package/dist/content/ContentLoader.d.ts +70 -0
- package/dist/content/ContentLoader.d.ts.map +1 -0
- package/dist/content/ContentLoader.js +146 -0
- package/dist/content/ContentLoader.js.map +1 -0
- package/dist/content/ContentProcessor.d.ts +84 -0
- package/dist/content/ContentProcessor.d.ts.map +1 -0
- package/dist/content/ContentProcessor.js +380 -0
- package/dist/content/ContentProcessor.js.map +1 -0
- package/dist/content/RouteManager.d.ts +69 -0
- package/dist/content/RouteManager.d.ts.map +1 -0
- package/dist/content/RouteManager.js +143 -0
- package/dist/content/RouteManager.js.map +1 -0
- package/dist/styles/components/callout.d.ts +11 -0
- package/dist/styles/components/callout.d.ts.map +1 -0
- package/dist/styles/components/callout.js +83 -0
- package/dist/styles/components/callout.js.map +1 -0
- package/dist/styles/components/card.d.ts +11 -0
- package/dist/styles/components/card.d.ts.map +1 -0
- package/dist/styles/components/card.js +179 -0
- package/dist/styles/components/card.js.map +1 -0
- package/dist/styles/components/codeblock.d.ts +11 -0
- package/dist/styles/components/codeblock.d.ts.map +1 -0
- package/dist/styles/components/codeblock.js +249 -0
- package/dist/styles/components/codeblock.js.map +1 -0
- package/dist/styles/components/content.d.ts +11 -0
- package/dist/styles/components/content.d.ts.map +1 -0
- package/dist/styles/components/content.js +198 -0
- package/dist/styles/components/content.js.map +1 -0
- package/dist/styles/components/fonts.d.ts +11 -0
- package/dist/styles/components/fonts.d.ts.map +1 -0
- package/dist/styles/components/fonts.js +34 -0
- package/dist/styles/components/fonts.js.map +1 -0
- package/dist/styles/components/header.d.ts +11 -0
- package/dist/styles/components/header.d.ts.map +1 -0
- package/dist/styles/components/header.js +293 -0
- package/dist/styles/components/header.js.map +1 -0
- package/dist/styles/components/heading.d.ts +11 -0
- package/dist/styles/components/heading.d.ts.map +1 -0
- package/dist/styles/components/heading.js +115 -0
- package/dist/styles/components/heading.js.map +1 -0
- package/dist/styles/components/layout.d.ts +11 -0
- package/dist/styles/components/layout.d.ts.map +1 -0
- package/dist/styles/components/layout.js +79 -0
- package/dist/styles/components/layout.js.map +1 -0
- package/dist/styles/components/mobilemenu.d.ts +11 -0
- package/dist/styles/components/mobilemenu.d.ts.map +1 -0
- package/dist/styles/components/mobilemenu.js +112 -0
- package/dist/styles/components/mobilemenu.js.map +1 -0
- package/dist/styles/components/reset.d.ts +11 -0
- package/dist/styles/components/reset.d.ts.map +1 -0
- package/dist/styles/components/reset.js +131 -0
- package/dist/styles/components/reset.js.map +1 -0
- package/dist/styles/components/searchmodal.d.ts +11 -0
- package/dist/styles/components/searchmodal.d.ts.map +1 -0
- package/dist/styles/components/searchmodal.js +333 -0
- package/dist/styles/components/searchmodal.js.map +1 -0
- package/dist/styles/components/sidenav.d.ts +11 -0
- package/dist/styles/components/sidenav.d.ts.map +1 -0
- package/dist/styles/components/sidenav.js +209 -0
- package/dist/styles/components/sidenav.js.map +1 -0
- package/dist/styles/components/toc.d.ts +11 -0
- package/dist/styles/components/toc.d.ts.map +1 -0
- package/dist/styles/components/toc.js +112 -0
- package/dist/styles/components/toc.js.map +1 -0
- package/dist/styles/components/typography.d.ts +11 -0
- package/dist/styles/components/typography.d.ts.map +1 -0
- package/dist/styles/components/typography.js +247 -0
- package/dist/styles/components/typography.js.map +1 -0
- package/dist/styles/components/utility.d.ts +11 -0
- package/dist/styles/components/utility.d.ts.map +1 -0
- package/dist/styles/components/utility.js +231 -0
- package/dist/styles/components/utility.js.map +1 -0
- package/dist/styles/types.d.ts +79 -0
- package/dist/styles/types.d.ts.map +1 -0
- package/dist/styles/types.js +7 -0
- package/dist/styles/types.js.map +1 -0
- package/dist/styles/utils.d.ts +21 -0
- package/dist/styles/utils.d.ts.map +1 -0
- package/dist/styles/utils.js +50 -0
- package/dist/styles/utils.js.map +1 -0
- package/dist/styles/variables/main.d.ts +15 -0
- package/dist/styles/variables/main.d.ts.map +1 -0
- package/dist/styles/variables/main.js +116 -0
- package/dist/styles/variables/main.js.map +1 -0
- package/dist/types/config.d.ts +43 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +7 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/content.d.ts +46 -0
- package/dist/types/content.d.ts.map +1 -0
- package/dist/types/content.js +7 -0
- package/dist/types/content.js.map +1 -0
- package/dist/types/navigation.d.ts +45 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/dist/types/navigation.js +7 -0
- package/dist/types/navigation.js.map +1 -0
- package/dist/utils/language-utils.d.ts +41 -0
- package/dist/utils/language-utils.d.ts.map +1 -0
- package/dist/utils/language-utils.js +79 -0
- package/dist/utils/language-utils.js.map +1 -0
- package/dist/utils/slugify.d.ts +20 -0
- package/dist/utils/slugify.d.ts.map +1 -0
- package/dist/utils/slugify.js +44 -0
- package/dist/utils/slugify.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../src/styles/components/heading.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,oCAAgE;AAOhE,MAAa,qBAAqB;IAChC,YAAoB,UAA2B;QAA3B,eAAU,GAAV,UAAU,CAAiB;IAAG,CAAC;IAEnD,QAAQ,CAAC,aAAsC;QAC7C,MAAM,QAAQ,GAAqB;YACjC,eAAe,EAAE,IAAI,CAAC,UAAU,CAAC,kBAAkB;YACnD,mBAAmB,EAAE,IAAI,CAAC,UAAU,CAAC,iBAAiB;SACvD,CAAC;QAEF,MAAM,IAAI,GAAG,IAAA,sBAAc,EACzB,QAAQ,EACR,aAAa,EACb,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,CAC3C,CAAC;QAEF,OAAO;;;4BAGiB,IAAI,CAAC,UAAU,CAAC,YAAY,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS;;;;;;;;;;WAU5E,IAAI,CAAC,eAAe;;;;;;mBAMZ,IAAI,CAAC,UAAU,CAAC,cAAc;;;EAG/C,IAAA,gBAAQ,EAAC;aACE,IAAI,CAAC,mBAAmB;IACjC,CAAC;;;;sBAIiB,IAAI,CAAC,UAAU,CAAC,iBAAiB;;;EAGrD,IAAA,gBAAQ,EAAC;wBACa,IAAI,CAAC,UAAU,CAAC,gBAAgB;IACpD,CAAC;;;;;;;;;;;;uBAYkB,IAAI,CAAC,eAAe;;;;EAIzC,IAAA,gBAAQ,EAAC;qBACU,IAAI,CAAC,mBAAmB;IACzC,CAAC;;;;;;;;;sBASiB,IAAI,CAAC,UAAU,CAAC,kBAAkB;WAC7C,IAAI,CAAC,UAAU,CAAC,oBAAoB;eAChC,IAAI,CAAC,UAAU,CAAC,UAAU;mBACtB,IAAI,CAAC,UAAU,CAAC,cAAc;;;iBAGhC,IAAI,CAAC,UAAU,CAAC,cAAc;iBAC9B,IAAI,CAAC,UAAU,CAAC,gBAAgB;;;EAG/C,IAAA,gBAAQ,EAAC;wBACa,IAAI,CAAC,UAAU,CAAC,iBAAiB;aAC5C,IAAI,CAAC,UAAU,CAAC,mBAAmB;IAC5C,CAAC;;;;;;;;;;;;;EAaH,IAAA,kBAAU,EAAC,IAAI,EAAE;;;;;;IAMf,CAAC,EAAE,CAAC;IACN,CAAC;CACF;AA7GD,sDA6GC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout styles
|
|
3
|
+
* Main layout structure, grid, and container styles
|
|
4
|
+
*/
|
|
5
|
+
import { GlobalVariables } from '../types';
|
|
6
|
+
export declare class LayoutStyleGenerator {
|
|
7
|
+
private globalVars;
|
|
8
|
+
constructor(globalVars: GlobalVariables);
|
|
9
|
+
generate(): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/styles/components/layout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,qBAAa,oBAAoB;IACnB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,eAAe;IAE/C,QAAQ,IAAI,MAAM;CAgEnB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Layout styles
|
|
4
|
+
* Main layout structure, grid, and container styles
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.LayoutStyleGenerator = void 0;
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
class LayoutStyleGenerator {
|
|
10
|
+
constructor(globalVars) {
|
|
11
|
+
this.globalVars = globalVars;
|
|
12
|
+
}
|
|
13
|
+
generate() {
|
|
14
|
+
return `/* Layout */
|
|
15
|
+
.layout {
|
|
16
|
+
height: 100vh;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.layout-container {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 1;
|
|
24
|
+
width: 100%;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
height: calc(100vh - ${this.globalVars.headerHeight});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.layout-sidebar {
|
|
30
|
+
width: 300px;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
height: 100%;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.layout-main {
|
|
37
|
+
flex: 1;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
height: 100%;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.layout-main-inner {
|
|
46
|
+
width: 100%;
|
|
47
|
+
max-width: 1400px;
|
|
48
|
+
padding: 3rem 1.5rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.container {
|
|
52
|
+
max-width: ${this.globalVars.containerWidthXl};
|
|
53
|
+
margin: 0 auto;
|
|
54
|
+
padding: 0 ${this.globalVars.spacingMd};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
${(0, utils_1.mediaQuery)('lg', ` .layout-sidebar {
|
|
58
|
+
width: 220px;
|
|
59
|
+
}`)}
|
|
60
|
+
|
|
61
|
+
${(0, utils_1.mediaQuery)('md', ` .layout-sidebar {
|
|
62
|
+
width: 200px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.layout-main-inner {
|
|
66
|
+
padding: ${this.globalVars.spacingMd};
|
|
67
|
+
}`)}
|
|
68
|
+
|
|
69
|
+
${(0, utils_1.mediaQuery)('sm', ` .layout-sidebar {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.layout-main-inner {
|
|
74
|
+
padding: ${this.globalVars.spacingMd} ${this.globalVars.spacingSm};
|
|
75
|
+
}`)}`;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.LayoutStyleGenerator = LayoutStyleGenerator;
|
|
79
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/styles/components/layout.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,oCAAsC;AAEtC,MAAa,oBAAoB;IAC/B,YAAoB,UAA2B;QAA3B,eAAU,GAAV,UAAU,CAAiB;IAAG,CAAC;IAEnD,QAAQ;QACN,OAAO;;;;;;;;;;;;yBAYc,IAAI,CAAC,UAAU,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;eA0BtC,IAAI,CAAC,UAAU,CAAC,gBAAgB;;eAEhC,IAAI,CAAC,UAAU,CAAC,SAAS;;;EAGtC,IAAA,kBAAU,EAAC,IAAI,EAAE;;IAEf,CAAC;;EAEH,IAAA,kBAAU,EAAC,IAAI,EAAE;;;;;eAKJ,IAAI,CAAC,UAAU,CAAC,SAAS;IACpC,CAAC;;EAEH,IAAA,kBAAU,EAAC,IAAI,EAAE;;;;;eAKJ,IAAI,CAAC,UAAU,CAAC,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS;IACjE,CAAC,EAAE,CAAC;IACN,CAAC;CACF;AAnED,oDAmEC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mobile menu styles
|
|
3
|
+
* Drawer and backdrop for mobile navigation
|
|
4
|
+
*/
|
|
5
|
+
import { GlobalVariables } from '../types';
|
|
6
|
+
export declare class MobileMenuStyleGenerator {
|
|
7
|
+
private globalVars;
|
|
8
|
+
constructor(globalVars: GlobalVariables);
|
|
9
|
+
generate(): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=mobilemenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobilemenu.d.ts","sourceRoot":"","sources":["../../../src/styles/components/mobilemenu.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,qBAAa,wBAAwB;IACvB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,eAAe;IAE/C,QAAQ,IAAI,MAAM;CAiGnB"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Mobile menu styles
|
|
4
|
+
* Drawer and backdrop for mobile navigation
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.MobileMenuStyleGenerator = void 0;
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
class MobileMenuStyleGenerator {
|
|
10
|
+
constructor(globalVars) {
|
|
11
|
+
this.globalVars = globalVars;
|
|
12
|
+
}
|
|
13
|
+
generate() {
|
|
14
|
+
return `/* Mobile Menu */
|
|
15
|
+
.mobile-menu-backdrop {
|
|
16
|
+
position: fixed;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
right: 0;
|
|
20
|
+
bottom: 0;
|
|
21
|
+
background: rgba(0, 0, 0, 0.5);
|
|
22
|
+
z-index: 90;
|
|
23
|
+
animation: fadeIn 0.2s ease;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes fadeIn {
|
|
27
|
+
from {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
to {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mobile-menu-drawer {
|
|
36
|
+
position: fixed;
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
bottom: 0;
|
|
40
|
+
width: 280px;
|
|
41
|
+
max-width: 85vw;
|
|
42
|
+
background: ${this.globalVars.backgroundColorLight};
|
|
43
|
+
z-index: 95;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
|
|
47
|
+
animation: slideIn 0.3s ease;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
${(0, utils_1.darkMode)(` .mobile-menu-drawer {
|
|
51
|
+
background: ${this.globalVars.backgroundColorDark};
|
|
52
|
+
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
|
|
53
|
+
}`)}
|
|
54
|
+
|
|
55
|
+
@keyframes slideIn {
|
|
56
|
+
from {
|
|
57
|
+
transform: translateX(-100%);
|
|
58
|
+
}
|
|
59
|
+
to {
|
|
60
|
+
transform: translateX(0);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.mobile-menu-header {
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: flex-end;
|
|
67
|
+
align-items: center;
|
|
68
|
+
padding: ${this.globalVars.spacingMd};
|
|
69
|
+
border-bottom: 1px solid ${this.globalVars.borderColorLight};
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
${(0, utils_1.darkMode)(` .mobile-menu-header {
|
|
74
|
+
border-bottom-color: ${this.globalVars.borderColorDark};
|
|
75
|
+
}`)}
|
|
76
|
+
|
|
77
|
+
.mobile-menu-close {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
width: 40px;
|
|
82
|
+
height: 40px;
|
|
83
|
+
padding: 0;
|
|
84
|
+
background: transparent;
|
|
85
|
+
border: none;
|
|
86
|
+
color: ${this.globalVars.textPrimaryLight};
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
border-radius: ${this.globalVars.borderRadiusMd};
|
|
89
|
+
transition: background-color 0.2s ease;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
${(0, utils_1.darkMode)(` .mobile-menu-close {
|
|
93
|
+
color: ${this.globalVars.textPrimaryDark};
|
|
94
|
+
}`)}
|
|
95
|
+
|
|
96
|
+
.mobile-menu-close:hover {
|
|
97
|
+
background: ${this.globalVars.surfaceColorLight};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
${(0, utils_1.darkMode)(` .mobile-menu-close:hover {
|
|
101
|
+
background: ${this.globalVars.surfaceColorDark};
|
|
102
|
+
}`)}
|
|
103
|
+
|
|
104
|
+
.mobile-menu-content {
|
|
105
|
+
flex: 1;
|
|
106
|
+
overflow-y: auto;
|
|
107
|
+
padding: ${this.globalVars.spacingMd};
|
|
108
|
+
}`;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.MobileMenuStyleGenerator = MobileMenuStyleGenerator;
|
|
112
|
+
//# sourceMappingURL=mobilemenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobilemenu.js","sourceRoot":"","sources":["../../../src/styles/components/mobilemenu.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,oCAAoC;AAEpC,MAAa,wBAAwB;IACnC,YAAoB,UAA2B;QAA3B,eAAU,GAAV,UAAU,CAAiB;IAAG,CAAC;IAEnD,QAAQ;QACN,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA4BK,IAAI,CAAC,UAAU,CAAC,oBAAoB;;;;;;;;EAQlD,IAAA,gBAAQ,EAAC;kBACO,IAAI,CAAC,UAAU,CAAC,mBAAmB;;IAEjD,CAAC;;;;;;;;;;;;;;;aAeQ,IAAI,CAAC,UAAU,CAAC,SAAS;6BACT,IAAI,CAAC,UAAU,CAAC,gBAAgB;;;;EAI3D,IAAA,gBAAQ,EAAC;2BACgB,IAAI,CAAC,UAAU,CAAC,eAAe;IACtD,CAAC;;;;;;;;;;;WAWM,IAAI,CAAC,UAAU,CAAC,gBAAgB;;mBAExB,IAAI,CAAC,UAAU,CAAC,cAAc;;;;EAI/C,IAAA,gBAAQ,EAAC;aACE,IAAI,CAAC,UAAU,CAAC,eAAe;IACxC,CAAC;;;gBAGW,IAAI,CAAC,UAAU,CAAC,iBAAiB;;;EAG/C,IAAA,gBAAQ,EAAC;kBACO,IAAI,CAAC,UAAU,CAAC,gBAAgB;IAC9C,CAAC;;;;;aAKQ,IAAI,CAAC,UAAU,CAAC,SAAS;EACpC,CAAC;IACD,CAAC;CACF;AApGD,4DAoGC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS Reset and base styles
|
|
3
|
+
* Normalizes browser defaults and sets up base element styling
|
|
4
|
+
*/
|
|
5
|
+
import { GlobalVariables } from '../types';
|
|
6
|
+
export declare class ResetStyleGenerator {
|
|
7
|
+
private globalVars;
|
|
8
|
+
constructor(globalVars: GlobalVariables);
|
|
9
|
+
generate(): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=reset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../../src/styles/components/reset.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,qBAAa,mBAAmB;IAClB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,eAAe;IAE/C,QAAQ,IAAI,MAAM;CAoHnB"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CSS Reset and base styles
|
|
4
|
+
* Normalizes browser defaults and sets up base element styling
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ResetStyleGenerator = void 0;
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
class ResetStyleGenerator {
|
|
10
|
+
constructor(globalVars) {
|
|
11
|
+
this.globalVars = globalVars;
|
|
12
|
+
}
|
|
13
|
+
generate() {
|
|
14
|
+
return `/* CSS Reset */
|
|
15
|
+
* {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
*::before,
|
|
22
|
+
*::after {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html {
|
|
27
|
+
-webkit-text-size-adjust: 100%;
|
|
28
|
+
-webkit-font-smoothing: antialiased;
|
|
29
|
+
-moz-osx-font-smoothing: grayscale;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
html, body {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
body {
|
|
39
|
+
font-family: ${this.globalVars.fontFamilyBase};
|
|
40
|
+
font-size: ${this.globalVars.fontSizeBase};
|
|
41
|
+
line-height: ${this.globalVars.lineHeightNormal};
|
|
42
|
+
font-weight: ${this.globalVars.fontWeightNormal};
|
|
43
|
+
color: ${this.globalVars.textPrimaryLight};
|
|
44
|
+
background-color: ${this.globalVars.backgroundColorLight};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
${(0, utils_1.darkMode)(` body {
|
|
48
|
+
color: ${this.globalVars.textPrimaryDark};
|
|
49
|
+
background-color: ${this.globalVars.backgroundColorDark};
|
|
50
|
+
}`)}
|
|
51
|
+
|
|
52
|
+
#root {
|
|
53
|
+
height: 100vh;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
img, picture, video, canvas, svg {
|
|
59
|
+
display: block;
|
|
60
|
+
max-width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
input, button, textarea, select {
|
|
64
|
+
font: inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
button {
|
|
68
|
+
background: none;
|
|
69
|
+
border: none;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
a {
|
|
74
|
+
color: inherit;
|
|
75
|
+
text-decoration: inherit;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
ul, ol {
|
|
79
|
+
list-style: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
h1, h2, h3, h4, h5, h6 {
|
|
83
|
+
font-size: inherit;
|
|
84
|
+
font-weight: inherit;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
p {
|
|
88
|
+
margin: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Scrollbar Styling - Cross-browser support */
|
|
92
|
+
* {
|
|
93
|
+
scrollbar-width: thin;
|
|
94
|
+
scrollbar-color: #999999 transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
${(0, utils_1.darkMode)(` * {
|
|
98
|
+
scrollbar-color: #515151 transparent;
|
|
99
|
+
}`)}
|
|
100
|
+
|
|
101
|
+
*::-webkit-scrollbar {
|
|
102
|
+
width: 12px;
|
|
103
|
+
height: 12px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
*::-webkit-scrollbar-track {
|
|
107
|
+
background: transparent;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
*::-webkit-scrollbar-thumb {
|
|
111
|
+
background-color: ${this.globalVars.textSecondaryLight};
|
|
112
|
+
border-radius: 6px;
|
|
113
|
+
border: 3px solid ${this.globalVars.backgroundColorLight};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
${(0, utils_1.darkMode)(` *::-webkit-scrollbar-thumb {
|
|
117
|
+
background-color: #6B7280;
|
|
118
|
+
border-color: ${this.globalVars.backgroundColorDark};
|
|
119
|
+
}`)}
|
|
120
|
+
|
|
121
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
122
|
+
background-color: ${this.globalVars.textPrimaryLight};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
${(0, utils_1.darkMode)(` *::-webkit-scrollbar-thumb:hover {
|
|
126
|
+
background-color: #9CA3AF;
|
|
127
|
+
}`)}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.ResetStyleGenerator = ResetStyleGenerator;
|
|
131
|
+
//# sourceMappingURL=reset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset.js","sourceRoot":"","sources":["../../../src/styles/components/reset.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,oCAAoC;AAEpC,MAAa,mBAAmB;IAC9B,YAAoB,UAA2B;QAA3B,eAAU,GAAV,UAAU,CAAiB;IAAG,CAAC;IAEnD,QAAQ;QACN,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBM,IAAI,CAAC,UAAU,CAAC,cAAc;eAChC,IAAI,CAAC,UAAU,CAAC,YAAY;iBAC1B,IAAI,CAAC,UAAU,CAAC,gBAAgB;iBAChC,IAAI,CAAC,UAAU,CAAC,gBAAgB;WACtC,IAAI,CAAC,UAAU,CAAC,gBAAgB;sBACrB,IAAI,CAAC,UAAU,CAAC,oBAAoB;;;EAGxD,IAAA,gBAAQ,EAAC;aACE,IAAI,CAAC,UAAU,CAAC,eAAe;wBACpB,IAAI,CAAC,UAAU,CAAC,mBAAmB;IACvD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CH,IAAA,gBAAQ,EAAC;;IAEP,CAAC;;;;;;;;;;;;sBAYiB,IAAI,CAAC,UAAU,CAAC,kBAAkB;;sBAElC,IAAI,CAAC,UAAU,CAAC,oBAAoB;;;EAGxD,IAAA,gBAAQ,EAAC;;oBAES,IAAI,CAAC,UAAU,CAAC,mBAAmB;IACnD,CAAC;;;sBAGiB,IAAI,CAAC,UAAU,CAAC,gBAAgB;;;EAGpD,IAAA,gBAAQ,EAAC;;IAEP,CAAC,EAAE,CAAC;IACN,CAAC;CACF;AAvHD,kDAuHC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Search modal styles
|
|
3
|
+
* Full-screen search overlay with results
|
|
4
|
+
*/
|
|
5
|
+
import { GlobalVariables } from '../types';
|
|
6
|
+
export declare class SearchModalStyleGenerator {
|
|
7
|
+
private globalVars;
|
|
8
|
+
constructor(globalVars: GlobalVariables);
|
|
9
|
+
generate(): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=searchmodal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchmodal.d.ts","sourceRoot":"","sources":["../../../src/styles/components/searchmodal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,qBAAa,yBAAyB;IACxB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,eAAe;IAE/C,QAAQ,IAAI,MAAM;CA+TnB"}
|