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":"typography.d.ts","sourceRoot":"","sources":["../../../src/styles/components/typography.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAU3C,qBAAa,wBAAwB;IACvB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,eAAe;IAE/C,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM;CA8OzD"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Typography styles
|
|
4
|
+
* Global typography for headings, paragraphs, links, lists, tables, etc.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.TypographyStyleGenerator = void 0;
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
class TypographyStyleGenerator {
|
|
10
|
+
constructor(globalVars) {
|
|
11
|
+
this.globalVars = globalVars;
|
|
12
|
+
}
|
|
13
|
+
generate(userOverrides) {
|
|
14
|
+
const defaults = {
|
|
15
|
+
linkColor: this.globalVars.linkColorLight,
|
|
16
|
+
linkColorDark: this.globalVars.linkColorDark,
|
|
17
|
+
linkHoverColor: '#000000',
|
|
18
|
+
linkHoverColorDark: '#FFFFFF',
|
|
19
|
+
};
|
|
20
|
+
const vars = (0, utils_1.mergeOverrides)(defaults, userOverrides, ['linkColor', 'linkColorDark', 'linkHoverColor', 'linkHoverColorDark']);
|
|
21
|
+
return `/* Typography */
|
|
22
|
+
h1, h2, h3, h4, h5, h6 {
|
|
23
|
+
font-family: ${this.globalVars.fontFamilyHeading};
|
|
24
|
+
color: ${this.globalVars.textPrimaryLight};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h1 {
|
|
28
|
+
font-size: 1.875rem;
|
|
29
|
+
line-height: 1.3;
|
|
30
|
+
letter-spacing: -0.01em;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
margin-top: 0;
|
|
33
|
+
margin-bottom: 1rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h2 {
|
|
37
|
+
font-size: 1.5rem;
|
|
38
|
+
line-height: 1.4;
|
|
39
|
+
letter-spacing: -0.01em;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
margin-top: 2rem;
|
|
42
|
+
margin-bottom: 0.75rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
h3 {
|
|
46
|
+
font-size: 1.25rem;
|
|
47
|
+
line-height: 1.5;
|
|
48
|
+
letter-spacing: -0.01em;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
margin-top: 1.5rem;
|
|
51
|
+
margin-bottom: 0.5rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
h4 {
|
|
55
|
+
font-size: 1.125rem;
|
|
56
|
+
line-height: 1.5;
|
|
57
|
+
letter-spacing: 0.01em;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
margin-top: 1.25rem;
|
|
60
|
+
margin-bottom: 0.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h5 {
|
|
64
|
+
font-size: 1rem;
|
|
65
|
+
line-height: 1.5;
|
|
66
|
+
letter-spacing: 0.01em;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
margin-top: 1rem;
|
|
69
|
+
margin-bottom: 0.5rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
h6 {
|
|
73
|
+
font-size: 0.875rem;
|
|
74
|
+
line-height: 1.5;
|
|
75
|
+
letter-spacing: 0.01em;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
margin-top: 1rem;
|
|
78
|
+
margin-bottom: 0.5rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
p {
|
|
82
|
+
font-size: 1rem;
|
|
83
|
+
line-height: 1.7;
|
|
84
|
+
font-weight: 400;
|
|
85
|
+
margin-top: 0;
|
|
86
|
+
margin-bottom: 1rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
a {
|
|
90
|
+
color: ${vars.linkColor};
|
|
91
|
+
font-weight: ${this.globalVars.fontWeightMedium};
|
|
92
|
+
text-decoration: underline;
|
|
93
|
+
transition: all 0.2s ease;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
a:hover {
|
|
97
|
+
color: ${vars.linkHoverColor};
|
|
98
|
+
font-weight: ${this.globalVars.fontWeightMedium};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
${(0, utils_1.darkMode)(` h1, h2, h3, h4, h5, h6 {
|
|
102
|
+
color: ${this.globalVars.textPrimaryDark};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
a {
|
|
106
|
+
color: ${vars.linkColorDark};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
a:hover {
|
|
110
|
+
color: ${vars.linkHoverColorDark};
|
|
111
|
+
}`)}
|
|
112
|
+
|
|
113
|
+
code, pre {
|
|
114
|
+
font-family: ${this.globalVars.fontFamilyMono};
|
|
115
|
+
font-size: ${this.globalVars.fontSizeSm};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
code {
|
|
119
|
+
background-color: ${this.globalVars.surfaceColorLight};
|
|
120
|
+
padding: 0.125rem 0.375rem;
|
|
121
|
+
border-radius: ${this.globalVars.borderRadiusSm};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
${(0, utils_1.darkMode)(` code {
|
|
125
|
+
background-color: ${this.globalVars.surfaceColorDark};
|
|
126
|
+
}`)}
|
|
127
|
+
|
|
128
|
+
pre {
|
|
129
|
+
background-color: ${this.globalVars.surfaceColorLight};
|
|
130
|
+
padding: ${this.globalVars.spacingMd};
|
|
131
|
+
border-radius: ${this.globalVars.borderRadiusMd};
|
|
132
|
+
overflow-x: auto;
|
|
133
|
+
margin-bottom: ${this.globalVars.spacingMd};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
${(0, utils_1.darkMode)(` pre {
|
|
137
|
+
background-color: ${this.globalVars.surfaceColorDark};
|
|
138
|
+
}`)}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
pre code {
|
|
142
|
+
background-color: transparent;
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
ul, ol {
|
|
147
|
+
padding-left: ${this.globalVars.spacingXl};
|
|
148
|
+
margin-bottom: 1.5rem;
|
|
149
|
+
line-height: 1.7;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
ul {
|
|
153
|
+
list-style: disc;
|
|
154
|
+
list-style-position: outside;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
ol {
|
|
158
|
+
list-style: decimal;
|
|
159
|
+
list-style-position: outside;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
ul ul {
|
|
163
|
+
list-style-type: circle;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
ul ul ul {
|
|
167
|
+
list-style-type: square;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
ol ol {
|
|
171
|
+
list-style-type: lower-alpha;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
ol ol ol {
|
|
175
|
+
list-style-type: lower-roman;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
li {
|
|
179
|
+
margin-bottom: ${this.globalVars.spacingSm};
|
|
180
|
+
line-height: 1.7;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
li p {
|
|
184
|
+
margin-bottom: ${this.globalVars.spacingSm};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
blockquote {
|
|
188
|
+
margin: ${this.globalVars.spacingMd} 0;
|
|
189
|
+
padding-left: ${this.globalVars.spacingMd};
|
|
190
|
+
border-left: 4px solid ${this.globalVars.borderColorLight};
|
|
191
|
+
color: ${this.globalVars.textSecondaryLight};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
${(0, utils_1.darkMode)(` blockquote {
|
|
195
|
+
border-left-color: ${this.globalVars.borderColorDark};
|
|
196
|
+
color: ${this.globalVars.textSecondaryDark};
|
|
197
|
+
}`)}
|
|
198
|
+
|
|
199
|
+
hr {
|
|
200
|
+
border: none;
|
|
201
|
+
border-top: 1px solid ${this.globalVars.borderColorLight};
|
|
202
|
+
margin: ${this.globalVars.spacingLg} 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
${(0, utils_1.darkMode)(` hr {
|
|
206
|
+
border-top-color: ${this.globalVars.borderColorDark};
|
|
207
|
+
}`)}
|
|
208
|
+
|
|
209
|
+
table {
|
|
210
|
+
width: 100%;
|
|
211
|
+
border-collapse: collapse;
|
|
212
|
+
margin-bottom: ${this.globalVars.spacingMd};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
th, td {
|
|
216
|
+
text-align: left;
|
|
217
|
+
padding: ${this.globalVars.spacingSm} ${this.globalVars.spacingMd};
|
|
218
|
+
border-bottom: 1px solid ${this.globalVars.borderColorLight};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
${(0, utils_1.darkMode)(` th, td {
|
|
222
|
+
border-bottom-color: ${this.globalVars.borderColorDark};
|
|
223
|
+
}`)}
|
|
224
|
+
|
|
225
|
+
th {
|
|
226
|
+
font-weight: ${this.globalVars.fontWeightSemibold};
|
|
227
|
+
background-color: ${this.globalVars.surfaceColorLight};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
${(0, utils_1.darkMode)(` th {
|
|
231
|
+
background-color: ${this.globalVars.surfaceColorDark};
|
|
232
|
+
}`)}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
img {
|
|
236
|
+
max-width: 100%;
|
|
237
|
+
height: auto;
|
|
238
|
+
display: block;
|
|
239
|
+
margin: ${this.globalVars.spacingMd} 0;
|
|
240
|
+
border-radius: ${this.globalVars.borderRadiusMd};
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
transition: transform 0.2s ease;
|
|
243
|
+
}`;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
exports.TypographyStyleGenerator = TypographyStyleGenerator;
|
|
247
|
+
//# sourceMappingURL=typography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.js","sourceRoot":"","sources":["../../../src/styles/components/typography.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,oCAAgE;AAShE,MAAa,wBAAwB;IACnC,YAAoB,UAA2B;QAA3B,eAAU,GAAV,UAAU,CAAiB;IAAG,CAAC;IAEnD,QAAQ,CAAC,aAAsC;QAC7C,MAAM,QAAQ,GAAwB;YACpC,SAAS,EAAE,IAAI,CAAC,UAAU,CA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are class UtilityStyleGenerator {
|
|
7
|
+
private globalVars;
|
|
8
|
+
constructor(globalVars: GlobalVariables);
|
|
9
|
+
generate(): string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=utility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/styles/components/utility.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3C,qBAAa,qBAAqB;IACpB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,eAAe;IAE/C,QAAQ,IAAI,MAAM;CAwNnB"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Utility styles
|
|
4
|
+
* Helper classes for common patterns
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.UtilityStyleGenerator = void 0;
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
class UtilityStyleGenerator {
|
|
10
|
+
constructor(globalVars) {
|
|
11
|
+
this.globalVars = globalVars;
|
|
12
|
+
}
|
|
13
|
+
generate() {
|
|
14
|
+
return `/* Utility Classes */
|
|
15
|
+
.loading {
|
|
16
|
+
text-align: center;
|
|
17
|
+
padding: ${this.globalVars.spacing2xl};
|
|
18
|
+
color: ${this.globalVars.textSecondaryLight};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
${(0, utils_1.darkMode)(` .loading {
|
|
22
|
+
color: ${this.globalVars.textSecondaryDark};
|
|
23
|
+
}`)}
|
|
24
|
+
|
|
25
|
+
.error {
|
|
26
|
+
color: ${this.globalVars.errorColorLight};
|
|
27
|
+
padding: ${this.globalVars.spacingMd};
|
|
28
|
+
background: ${this.globalVars.surfaceColorLight};
|
|
29
|
+
border-radius: ${this.globalVars.borderRadiusMd};
|
|
30
|
+
border-left: 4px solid ${this.globalVars.errorColorLight};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
${(0, utils_1.darkMode)(` .error {
|
|
34
|
+
color: ${this.globalVars.errorColorDark};
|
|
35
|
+
background: ${this.globalVars.surfaceColorDark};
|
|
36
|
+
border-left-color: ${this.globalVars.errorColorDark};
|
|
37
|
+
}`)}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
.table-wrapper {
|
|
41
|
+
overflow-x: auto;
|
|
42
|
+
margin-bottom: ${this.globalVars.spacingMd};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Image Modal/Lightbox */
|
|
46
|
+
.image-modal {
|
|
47
|
+
position: fixed;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
background-color: rgba(0, 0, 0, 0.9);
|
|
53
|
+
z-index: 9999;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
padding: ${this.globalVars.spacingXl};
|
|
58
|
+
cursor: zoom-out;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.image-modal img {
|
|
62
|
+
max-width: 90vw;
|
|
63
|
+
max-height: 90vh;
|
|
64
|
+
width: auto;
|
|
65
|
+
height: auto;
|
|
66
|
+
cursor: default;
|
|
67
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.image-modal-close {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: ${this.globalVars.spacingLg};
|
|
73
|
+
right: ${this.globalVars.spacingLg};
|
|
74
|
+
background: rgba(255, 255, 255, 0.1);
|
|
75
|
+
border: none;
|
|
76
|
+
color: white;
|
|
77
|
+
font-size: 32px;
|
|
78
|
+
width: 48px;
|
|
79
|
+
height: 48px;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
transition: background-color 0.2s ease;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.image-modal-close:hover {
|
|
89
|
+
background: rgba(255, 255, 255, 0.2);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Theme Toggle */
|
|
93
|
+
.theme-toggle {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
background: ${this.globalVars.surfaceColorLight};
|
|
98
|
+
border: 1px solid ${this.globalVars.borderColorLight};
|
|
99
|
+
border-radius: 12px;
|
|
100
|
+
padding: 8px;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
transition: all 0.2s ease;
|
|
103
|
+
width: 40px;
|
|
104
|
+
height: 40px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
${(0, utils_1.darkMode)(` .theme-toggle {
|
|
108
|
+
background: ${this.globalVars.surfaceColorDark};
|
|
109
|
+
border-color: ${this.globalVars.borderColorDark};
|
|
110
|
+
}`)}
|
|
111
|
+
|
|
112
|
+
.theme-toggle:hover {
|
|
113
|
+
background: ${this.globalVars.backgroundColorLight};
|
|
114
|
+
border-color: ${this.globalVars.primaryColorLight};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
${(0, utils_1.darkMode)(` .theme-toggle:hover {
|
|
118
|
+
background: ${this.globalVars.backgroundColorDark};
|
|
119
|
+
border-color: ${this.globalVars.primaryColorDark};
|
|
120
|
+
}`)}
|
|
121
|
+
|
|
122
|
+
.theme-toggle .theme-icon {
|
|
123
|
+
color: ${this.globalVars.textSecondaryLight};
|
|
124
|
+
transition: color 0.2s ease;
|
|
125
|
+
display: block;
|
|
126
|
+
flex-shrink: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
${(0, utils_1.darkMode)(` .theme-toggle .theme-icon {
|
|
130
|
+
color: ${this.globalVars.textSecondaryDark};
|
|
131
|
+
}`)}
|
|
132
|
+
|
|
133
|
+
.theme-toggle:hover .theme-icon {
|
|
134
|
+
color: ${this.globalVars.textPrimaryLight};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
${(0, utils_1.darkMode)(` .theme-toggle:hover .theme-icon {
|
|
138
|
+
color: ${this.globalVars.textPrimaryDark};
|
|
139
|
+
}`)}
|
|
140
|
+
|
|
141
|
+
@media (max-width: 480px) {
|
|
142
|
+
.theme-toggle {
|
|
143
|
+
width: 36px;
|
|
144
|
+
height: 36px;
|
|
145
|
+
padding: 6px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.theme-toggle .theme-icon {
|
|
149
|
+
width: 18px;
|
|
150
|
+
height: 18px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Page Navigation (Prev/Next) */
|
|
155
|
+
.page-navigation {
|
|
156
|
+
margin-top: ${this.globalVars.spacing2xl};
|
|
157
|
+
padding-top: ${this.globalVars.spacing2xl};
|
|
158
|
+
border-top: 1px solid ${this.globalVars.borderColorLight};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
${(0, utils_1.darkMode)(` .page-navigation {
|
|
162
|
+
border-top-color: ${this.globalVars.borderColorDark};
|
|
163
|
+
}`)}
|
|
164
|
+
|
|
165
|
+
.page-nav-container {
|
|
166
|
+
display: flex;
|
|
167
|
+
justify-content: space-between;
|
|
168
|
+
gap: ${this.globalVars.spacingMd};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.page-nav-link {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
gap: ${this.globalVars.spacingXs};
|
|
175
|
+
padding: ${this.globalVars.spacingMd};
|
|
176
|
+
border: 1px solid ${this.globalVars.borderColorLight};
|
|
177
|
+
border-radius: ${this.globalVars.borderRadiusMd};
|
|
178
|
+
text-decoration: none;
|
|
179
|
+
transition: all 0.2s ease;
|
|
180
|
+
flex: 1;
|
|
181
|
+
max-width: 45%;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
${(0, utils_1.darkMode)(` .page-nav-link {
|
|
185
|
+
border-color: ${this.globalVars.borderColorDark};
|
|
186
|
+
}`)}
|
|
187
|
+
|
|
188
|
+
.page-nav-link:hover {
|
|
189
|
+
background: ${this.globalVars.surfaceColorLight};
|
|
190
|
+
border-color: ${this.globalVars.primaryColorLight};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
${(0, utils_1.darkMode)(` .page-nav-link:hover {
|
|
194
|
+
background: ${this.globalVars.surfaceColorDark};
|
|
195
|
+
border-color: ${this.globalVars.primaryColorDark};
|
|
196
|
+
}`)}
|
|
197
|
+
|
|
198
|
+
.page-nav-prev {
|
|
199
|
+
text-align: left;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.page-nav-next {
|
|
203
|
+
text-align: right;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.page-nav-direction {
|
|
207
|
+
font-size: ${this.globalVars.fontSizeSm};
|
|
208
|
+
color: ${this.globalVars.textSecondaryLight};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
${(0, utils_1.darkMode)(` .page-nav-direction {
|
|
212
|
+
color: ${this.globalVars.textSecondaryDark};
|
|
213
|
+
}`)}
|
|
214
|
+
|
|
215
|
+
.page-nav-label {
|
|
216
|
+
font-weight: ${this.globalVars.fontWeightMedium};
|
|
217
|
+
color: ${this.globalVars.textPrimaryLight};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
${(0, utils_1.darkMode)(` .page-nav-label {
|
|
221
|
+
color: ${this.globalVars.textPrimaryDark};
|
|
222
|
+
}`)}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
.page-nav-spacer {
|
|
226
|
+
flex: 1;
|
|
227
|
+
}`;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
exports.UtilityStyleGenerator = UtilityStyleGenerator;
|
|
231
|
+
//# sourceMappingURL=utility.js.map
|
|
@@ -0,0 +1 @@
|
|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iBAGY,IAAI,CAAC,UAAU,CAAC,gBAAgB;WACtC,IAAI,CAAC,UAAU,CAAC,gBAAgB;;;EAGzC,IAAA,gBAAQ,EAAC;aACE,IAAI,CAAC,UAAU,CAAC,eAAe;IACxC,CAAC;;;;;EAKH,CAAC;IACD,CAAC;CACF;AA3ND,sDA2NC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for the styling system
|
|
3
|
+
* Defines interfaces for MORDOC style variables
|
|
4
|
+
*/
|
|
5
|
+
export interface GlobalVariables {
|
|
6
|
+
primaryColorLight: string;
|
|
7
|
+
primaryColorDark: string;
|
|
8
|
+
secondaryColorLight: string;
|
|
9
|
+
secondaryColorDark: string;
|
|
10
|
+
backgroundColorLight: string;
|
|
11
|
+
backgroundColorDark: string;
|
|
12
|
+
surfaceColorLight: string;
|
|
13
|
+
surfaceColorDark: string;
|
|
14
|
+
textPrimaryLight: string;
|
|
15
|
+
textPrimaryDark: string;
|
|
16
|
+
textSecondaryLight: string;
|
|
17
|
+
textSecondaryDark: string;
|
|
18
|
+
textDisabledLight: string;
|
|
19
|
+
textDisabledDark: string;
|
|
20
|
+
borderColorLight: string;
|
|
21
|
+
borderColorDark: string;
|
|
22
|
+
linkColorLight: string;
|
|
23
|
+
linkColorDark: string;
|
|
24
|
+
successColorLight: string;
|
|
25
|
+
successColorDark: string;
|
|
26
|
+
warningColorLight: string;
|
|
27
|
+
warningColorDark: string;
|
|
28
|
+
errorColorLight: string;
|
|
29
|
+
errorColorDark: string;
|
|
30
|
+
infoColorLight: string;
|
|
31
|
+
infoColorDark: string;
|
|
32
|
+
navTextColorLight: string;
|
|
33
|
+
navTextColorDark: string;
|
|
34
|
+
navHoverColorLight: string;
|
|
35
|
+
navHoverColorDark: string;
|
|
36
|
+
navActiveColorLight: string;
|
|
37
|
+
navActiveColorDark: string;
|
|
38
|
+
fontFamilyBase: string;
|
|
39
|
+
fontFamilyHeading: string;
|
|
40
|
+
fontFamilyMono: string;
|
|
41
|
+
spacingXs: string;
|
|
42
|
+
spacingSm: string;
|
|
43
|
+
spacingMd: string;
|
|
44
|
+
spacingLg: string;
|
|
45
|
+
spacingXl: string;
|
|
46
|
+
spacing2xl: string;
|
|
47
|
+
spacing3xl: string;
|
|
48
|
+
fontSizeXs: string;
|
|
49
|
+
fontSizeSm: string;
|
|
50
|
+
fontSizeBase: string;
|
|
51
|
+
fontSizeLg: string;
|
|
52
|
+
fontSizeXl: string;
|
|
53
|
+
fontSize2xl: string;
|
|
54
|
+
fontSize3xl: string;
|
|
55
|
+
fontSize4xl: string;
|
|
56
|
+
fontWeightNormal: number;
|
|
57
|
+
fontWeightMedium: number;
|
|
58
|
+
fontWeightSemibold: number;
|
|
59
|
+
fontWeightBold: number;
|
|
60
|
+
lineHeightTight: number;
|
|
61
|
+
lineHeightNormal: number;
|
|
62
|
+
lineHeightRelaxed: number;
|
|
63
|
+
borderRadiusSm: string;
|
|
64
|
+
borderRadiusMd: string;
|
|
65
|
+
borderRadiusLg: string;
|
|
66
|
+
borderRadiusFull: string;
|
|
67
|
+
containerWidthSm: string;
|
|
68
|
+
containerWidthMd: string;
|
|
69
|
+
containerWidthLg: string;
|
|
70
|
+
containerWidthXl: string;
|
|
71
|
+
headerHeight: string;
|
|
72
|
+
sidebarWidth: string;
|
|
73
|
+
sidebarCollapsedWidth: string;
|
|
74
|
+
}
|
|
75
|
+
export interface UserStyleOverrides {
|
|
76
|
+
global?: Record<string, string>;
|
|
77
|
+
components: Record<string, Record<string, string>>;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/styles/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,MAAM,WAAW,eAAe;IAE9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,C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AU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAGpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IAGvB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAGD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/styles/types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared utility functions for style generation
|
|
3
|
+
* Used by all component style generators
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Merge user overrides with defaults, respecting customizable keys whitelist
|
|
7
|
+
*/
|
|
8
|
+
export declare function mergeOverrides<T extends Record<string, any>>(defaults: T, userOverrides: Record<string, string> | undefined, customizableKeys: (keyof T)[]): T;
|
|
9
|
+
/**
|
|
10
|
+
* Wrap CSS in dark mode selector
|
|
11
|
+
*/
|
|
12
|
+
export declare function darkMode(css: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Generate media query for responsive styles
|
|
15
|
+
*/
|
|
16
|
+
export declare function mediaQuery(breakpoint: 'sm' | 'md' | 'lg' | 'xl', css: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Generate media query for system dark mode preference
|
|
19
|
+
*/
|
|
20
|
+
export declare function prefersDarkMode(css: string): string;
|
|
21
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1D,QAAQ,EAAE,CAAC,EACX,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACjD,gBAAgB,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAC5B,CAAC,CAcH;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CASrF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared utility functions for style generation
|
|
4
|
+
* Used by all component style generators
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.mergeOverrides = mergeOverrides;
|
|
8
|
+
exports.darkMode = darkMode;
|
|
9
|
+
exports.mediaQuery = mediaQuery;
|
|
10
|
+
exports.prefersDarkMode = prefersDarkMode;
|
|
11
|
+
/**
|
|
12
|
+
* Merge user overrides with defaults, respecting customizable keys whitelist
|
|
13
|
+
*/
|
|
14
|
+
function mergeOverrides(defaults, userOverrides, customizableKeys) {
|
|
15
|
+
if (!userOverrides) {
|
|
16
|
+
return defaults;
|
|
17
|
+
}
|
|
18
|
+
const merged = { ...defaults };
|
|
19
|
+
customizableKeys.forEach(key => {
|
|
20
|
+
if (userOverrides[key] !== undefined) {
|
|
21
|
+
merged[key] = userOverrides[key];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return merged;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Wrap CSS in dark mode selector
|
|
28
|
+
*/
|
|
29
|
+
function darkMode(css) {
|
|
30
|
+
return `[data-theme="dark"] {\n${css}\n}`;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Generate media query for responsive styles
|
|
34
|
+
*/
|
|
35
|
+
function mediaQuery(breakpoint, css) {
|
|
36
|
+
const breakpoints = {
|
|
37
|
+
sm: '640px',
|
|
38
|
+
md: '768px',
|
|
39
|
+
lg: '1024px',
|
|
40
|
+
xl: '1280px',
|
|
41
|
+
};
|
|
42
|
+
return `@media (max-width: ${breakpoints[breakpoint]}) {\n${css}\n}`;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Generate media query for system dark mode preference
|
|
46
|
+
*/
|
|
47
|
+
function prefersDarkMode(css) {
|
|
48
|
+
return `@media (prefers-color-scheme: dark) {\n :root:not([data-theme="light"]) {\n${css}\n }\n}`;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/styles/utils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAKH,wCAkBC;AAKD,4BAEC;AAKD,gCASC;AAKD,0CAEC;AAjDD;;GAEG;AACH,SAAgB,cAAc,CAC5B,QAAW,EACX,aAAiD,EACjD,gBAA6B;IAE7B,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,MAAM,GAAG,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE/B,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAC7B,IAAI,aAAa,CAAC,GAAa,CAAC,KAAK,SAAS,EAAE,CAAC;YAC/C,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAa,CAAQ,CAAC;QACpD,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,SAAgB,QAAQ,CAAC,GAAW;IAClC,OAAO,0BAA0B,GAAG,KAAK,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CAAC,UAAqC,EAAE,GAAW;IAC3E,MAAM,WAAW,GAAG;QAClB,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,QAAQ;KACb,CAAC;IAEF,OAAO,sBAAsB,WAAW,CAAC,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAC;AACvE,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,GAAW;IACzC,OAAO,+EAA+E,GAAG,UAAU,CAAC;AACtG,CAAC"}
|