doccupine 0.0.98 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -0
- package/dist/templates/components/MDXComponents.d.ts +1 -1
- package/dist/templates/components/MDXComponents.js +3 -1
- package/dist/templates/components/layout/Code.d.ts +1 -1
- package/dist/templates/components/layout/Code.js +228 -3
- package/dist/templates/mdx/code.mdx.d.ts +1 -1
- package/dist/templates/mdx/code.mdx.js +43 -1
- package/dist/templates/package.js +1 -1
- package/package.json +1 -1
- package/dist/index.test.d.ts +0 -1
- package/dist/index.test.js +0 -48
- package/dist/metadata.d.ts +0 -11
- package/dist/metadata.js +0 -52
- package/dist/templates/accordion.mdx.d.ts +0 -1
- package/dist/templates/accordion.mdx.js +0 -41
- package/dist/templates/api/theme/routes.d.ts +0 -1
- package/dist/templates/api/theme/routes.js +0 -28
- package/dist/templates/app/api/theme/routes.d.ts +0 -1
- package/dist/templates/app/api/theme/routes.js +0 -29
- package/dist/templates/app/error.d.ts +0 -1
- package/dist/templates/app/error.js +0 -45
- package/dist/templates/app/layout.d.ts +0 -34
- package/dist/templates/app/layout.js +0 -184
- package/dist/templates/callouts.mdx.d.ts +0 -1
- package/dist/templates/callouts.mdx.js +0 -57
- package/dist/templates/cards.mdx.d.ts +0 -1
- package/dist/templates/cards.mdx.js +0 -25
- package/dist/templates/click-outside.d.ts +0 -1
- package/dist/templates/click-outside.js +0 -28
- package/dist/templates/code.d.ts +0 -1
- package/dist/templates/code.js +0 -202
- package/dist/templates/code.mdx.d.ts +0 -1
- package/dist/templates/code.mdx.js +0 -46
- package/dist/templates/commands.mdx.d.ts +0 -1
- package/dist/templates/commands.mdx.js +0 -48
- package/dist/templates/components/ClickOutside.d.ts +0 -1
- package/dist/templates/components/ClickOutside.js +0 -29
- package/dist/templates/components/layout/ClientThemeProvider.d.ts +0 -1
- package/dist/templates/components/layout/ClientThemeProvider.js +0 -85
- package/dist/templates/components/layout/CopyButton.d.ts +0 -1
- package/dist/templates/components/layout/CopyButton.js +0 -85
- package/dist/templates/components/layout/RenderMarkdown.d.ts +0 -1
- package/dist/templates/components/layout/RenderMarkdown.js +0 -61
- package/dist/templates/components/layout/Stepts.d.ts +0 -1
- package/dist/templates/components/layout/Stepts.js +0 -114
- package/dist/templates/components/layout/ThemeToggle.d.ts +0 -1
- package/dist/templates/components/layout/ThemeToggle.js +0 -107
- package/dist/templates/constants.d.ts +0 -5
- package/dist/templates/constants.js +0 -5
- package/dist/templates/docs-components.d.ts +0 -1
- package/dist/templates/docs-components.js +0 -441
- package/dist/templates/docs.d.ts +0 -1
- package/dist/templates/docs.js +0 -48
- package/dist/templates/fields.mdx.d.ts +0 -1
- package/dist/templates/fields.mdx.js +0 -42
- package/dist/templates/footer.d.ts +0 -1
- package/dist/templates/footer.js +0 -9
- package/dist/templates/header.d.ts +0 -1
- package/dist/templates/header.js +0 -275
- package/dist/templates/home.d.ts +0 -1
- package/dist/templates/home.js +0 -74
- package/dist/templates/home.mdx.d.ts +0 -1
- package/dist/templates/home.mdx.js +0 -44
- package/dist/templates/homemdx.d.ts +0 -1
- package/dist/templates/homemdx.js +0 -59
- package/dist/templates/icon.d.ts +0 -1
- package/dist/templates/icon.js +0 -20
- package/dist/templates/icons.mdx.d.ts +0 -1
- package/dist/templates/icons.mdx.js +0 -44
- package/dist/templates/image-embeds.mdx.d.ts +0 -1
- package/dist/templates/image-embeds.mdx.js +0 -103
- package/dist/templates/layout.d.ts +0 -1
- package/dist/templates/layout.js +0 -69
- package/dist/templates/list-table.mdx.d.ts +0 -1
- package/dist/templates/list-table.mdx.js +0 -85
- package/dist/templates/mdx/config.mdx.d.ts +0 -1
- package/dist/templates/mdx/config.mdx.js +0 -47
- package/dist/templates/mdx/deployment.mdx.d.ts +0 -1
- package/dist/templates/mdx/deployment.mdx.js +0 -61
- package/dist/templates/mdx/image-embeds.mdx.d.ts +0 -1
- package/dist/templates/mdx/image-embeds.mdx.js +0 -95
- package/dist/templates/mdx/links.mdx.d.ts +0 -1
- package/dist/templates/mdx/links.mdx.js +0 -45
- package/dist/templates/mdx/list-and-tables.mdx.d.ts +0 -1
- package/dist/templates/mdx/list-and-tables.mdx.js +0 -78
- package/dist/templates/mdx/list-table.mdx.d.ts +0 -1
- package/dist/templates/mdx/list-table.mdx.js +0 -78
- package/dist/templates/mdx/platform/deployments.mdx.d.ts +0 -1
- package/dist/templates/mdx/platform/deployments.mdx.js +0 -36
- package/dist/templates/mdx/platform/sections-settings.mdx.d.ts +0 -1
- package/dist/templates/mdx/platform/sections-settings.mdx.js +0 -46
- package/dist/templates/mdx/stepts.mdx.d.ts +0 -1
- package/dist/templates/mdx/stepts.mdx.js +0 -60
- package/dist/templates/mdx/text.mdx.d.ts +0 -1
- package/dist/templates/mdx/text.mdx.js +0 -139
- package/dist/templates/middleware.d.ts +0 -1
- package/dist/templates/middleware.js +0 -28
- package/dist/templates/not-found.d.ts +0 -1
- package/dist/templates/not-found.js +0 -22
- package/dist/templates/pictograms.d.ts +0 -1
- package/dist/templates/pictograms.js +0 -67
- package/dist/templates/shared-styles.d.ts +0 -1
- package/dist/templates/shared-styles.js +0 -792
- package/dist/templates/structures.d.ts +0 -2
- package/dist/templates/structures.js +0 -208
- package/dist/templates/tabs.mdx.d.ts +0 -1
- package/dist/templates/tabs.mdx.js +0 -59
- package/dist/templates/text.mdx.d.ts +0 -1
- package/dist/templates/text.mdx.js +0 -142
- package/dist/templates/theme-toggle.d.ts +0 -1
- package/dist/templates/theme-toggle.js +0 -111
- package/dist/templates/theme.d.ts +0 -1
- package/dist/templates/theme.js +0 -307
- package/dist/templates/typography.d.ts +0 -1
- package/dist/templates/typography.js +0 -52
- package/dist/templates/update.mdx.d.ts +0 -1
- package/dist/templates/update.mdx.js +0 -58
package/dist/templates/theme.js
DELETED
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
export const themeTemplate = `"use client";
|
|
2
|
-
import customThemeJson from "@/theme.json";
|
|
3
|
-
|
|
4
|
-
interface CustomTheme {
|
|
5
|
-
default?: Partial<Colors>;
|
|
6
|
-
dark?: Partial<Colors>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const customTheme = customThemeJson as CustomTheme;
|
|
10
|
-
|
|
11
|
-
export const breakpoints: Breakpoints = {
|
|
12
|
-
xs: 0,
|
|
13
|
-
sm: 576,
|
|
14
|
-
md: 768,
|
|
15
|
-
lg: 992,
|
|
16
|
-
xl: 1200,
|
|
17
|
-
xxl: 1440,
|
|
18
|
-
xxxl: 1920,
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export function mq(minWidth: keyof Breakpoints) {
|
|
22
|
-
return \`@media screen and (min-width: \${breakpoints[minWidth]}px)\`;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const spacing: Spacing = {
|
|
26
|
-
maxWidth: { xs: "1280px", xxxl: "1440px" },
|
|
27
|
-
padding: { xs: "20px", lg: "40px" },
|
|
28
|
-
radius: { xs: "6px", lg: "12px", xl: "30px" },
|
|
29
|
-
gridGap: { xs: "20px", lg: "40px" },
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const colors: Colors = {
|
|
33
|
-
primaryLight: "#93c5fd",
|
|
34
|
-
primary: "#3b82f6",
|
|
35
|
-
primaryDark: "#1e40af",
|
|
36
|
-
|
|
37
|
-
secondaryLight: "#475569",
|
|
38
|
-
secondary: "#1e293b",
|
|
39
|
-
secondaryDark: "#020617",
|
|
40
|
-
|
|
41
|
-
tertiaryLight: "#ebccb9",
|
|
42
|
-
tertiary: "#816b5a",
|
|
43
|
-
tertiaryDark: "#675445",
|
|
44
|
-
|
|
45
|
-
grayLight: "#e5e7eb",
|
|
46
|
-
gray: "#9ca3af",
|
|
47
|
-
grayDark: "#4b5563",
|
|
48
|
-
|
|
49
|
-
success: "#84cc16",
|
|
50
|
-
error: "#ef4444",
|
|
51
|
-
warning: "#eab308",
|
|
52
|
-
info: "#06b6d4",
|
|
53
|
-
|
|
54
|
-
dark: "#000000",
|
|
55
|
-
light: "#ffffff",
|
|
56
|
-
|
|
57
|
-
...(customTheme.default ? (customTheme.default as Partial<Colors>) : {}),
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export const colorsDark: Colors = {
|
|
61
|
-
primaryLight: "#9bcaff",
|
|
62
|
-
primary: "#1e7ae0",
|
|
63
|
-
primaryDark: "#033d7e",
|
|
64
|
-
|
|
65
|
-
secondaryLight: "#a4b17b",
|
|
66
|
-
secondary: "#5c6e46",
|
|
67
|
-
secondaryDark: "#354c2b",
|
|
68
|
-
|
|
69
|
-
tertiaryLight: "#0B0E13",
|
|
70
|
-
tertiary: "#372414",
|
|
71
|
-
tertiaryDark: "",
|
|
72
|
-
|
|
73
|
-
grayLight: "#1a1a1a",
|
|
74
|
-
gray: "#454444",
|
|
75
|
-
grayDark: "#808080",
|
|
76
|
-
|
|
77
|
-
success: "#84cc16",
|
|
78
|
-
error: "#ef4444",
|
|
79
|
-
warning: "#eab308",
|
|
80
|
-
info: "#06b6d4",
|
|
81
|
-
|
|
82
|
-
dark: "#ffffff",
|
|
83
|
-
light: "#000000",
|
|
84
|
-
|
|
85
|
-
...(customTheme.dark ? (customTheme.dark as Partial<Colors>) : {}),
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export const shadows: Shadows = {
|
|
89
|
-
xs: "0px 4px 4px 0px rgba(18, 18, 18, 0.04), 0px 1px 3px 0px rgba(39, 41, 45, 0.02)",
|
|
90
|
-
sm: "0px 4px 4px 0px rgba(18, 18, 18, 0.08), 0px 1px 3px 0px rgba(39, 41, 45, 0.04)",
|
|
91
|
-
md: "0px 8px 8px 0px rgba(18, 18, 18, 0.16), 0px 2px 3px 0px rgba(39, 41, 45, 0.06)",
|
|
92
|
-
lg: "0px 16px 24px 0px rgba(18, 18, 18, 0.20), 0px 2px 3px 0px rgba(39, 41, 45, 0.08)",
|
|
93
|
-
xl: "0px 24px 32px 0px rgba(18, 18, 18, 0.24), 0px 2px 3px 0px rgba(39, 41, 45, 0.12)",
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export const shadowsDark: Shadows = {
|
|
97
|
-
xs: "0px 4px 4px 0px rgba(255, 255, 255, 0.04), 0px 1px 3px 0px rgba(255, 255, 255, 0.02)",
|
|
98
|
-
sm: "0px 4px 4px 0px rgba(255, 255, 255, 0.08), 0px 1px 3px 0px rgba(255, 255, 255, 0.04)",
|
|
99
|
-
md: "0px 8px 8px 0px rgba(255, 255, 255, 0.16), 0px 2px 3px 0px rgba(255, 255, 255, 0.06)",
|
|
100
|
-
lg: "0px 16px 24px 0px rgba(255, 255, 255, 0.20), 0px 2px 3px 0px rgba(255, 255, 255, 0.08)",
|
|
101
|
-
xl: "0px 24px 32px 0px rgba(255, 255, 255, 0.24), 0px 2px 3px 0px rgba(255, 255, 255, 0.12)",
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export const fonts: Fonts = {
|
|
105
|
-
text: "Inter",
|
|
106
|
-
head: "Inter",
|
|
107
|
-
mono: "Roboto Mono, monospace",
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const fontSizes: FontSizes = {
|
|
111
|
-
hero1: { xs: "72px", lg: "128px" },
|
|
112
|
-
hero2: { xs: "60px", lg: "96px" },
|
|
113
|
-
hero3: { xs: "36px", lg: "72px" },
|
|
114
|
-
|
|
115
|
-
h1: { xs: "40px", lg: "60px" },
|
|
116
|
-
h2: { xs: "30px", lg: "36px" },
|
|
117
|
-
h3: { xs: "28px", lg: "30px" },
|
|
118
|
-
h4: { xs: "24px", lg: "26px" },
|
|
119
|
-
h5: { xs: "18px", lg: "20px" },
|
|
120
|
-
h6: { xs: "16px", lg: "18px" },
|
|
121
|
-
|
|
122
|
-
text: { xs: "14px", lg: "16px" },
|
|
123
|
-
strong: { xs: "14px", lg: "16px" },
|
|
124
|
-
small: { xs: "12px", lg: "14px" },
|
|
125
|
-
|
|
126
|
-
blockquote: { xs: "16px", lg: "18px" },
|
|
127
|
-
code: { xs: "14px", lg: "16px" },
|
|
128
|
-
|
|
129
|
-
button: { xs: "16px", lg: "16px" },
|
|
130
|
-
buttonBig: { xs: "18px", lg: "18px" },
|
|
131
|
-
|
|
132
|
-
input: { xs: "16px", lg: "16px" },
|
|
133
|
-
inputBig: { xs: "18px", lg: "18px" },
|
|
134
|
-
inputSmall: { xs: "14px", lg: "14px" },
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
export const lineHeights: LineHeights = {
|
|
138
|
-
hero1: { xs: "1.1", lg: "1.1" },
|
|
139
|
-
hero2: { xs: "1.1", lg: "1.1" },
|
|
140
|
-
hero3: { xs: "1.17", lg: "1.1" },
|
|
141
|
-
|
|
142
|
-
h1: { xs: "1", lg: "1.07" },
|
|
143
|
-
h2: { xs: "1.2", lg: "1.2" },
|
|
144
|
-
h3: { xs: "1.3", lg: "1.5" },
|
|
145
|
-
h4: { xs: "1.3", lg: "1.5" },
|
|
146
|
-
h5: { xs: "1.6", lg: "1.5" },
|
|
147
|
-
h6: { xs: "1.6", lg: "1.6" },
|
|
148
|
-
|
|
149
|
-
text: { xs: "1.7", lg: "1.7" },
|
|
150
|
-
strong: { xs: "1.7", lg: "1.7" },
|
|
151
|
-
small: { xs: "1.7", lg: "1.7" },
|
|
152
|
-
|
|
153
|
-
blockquote: { xs: "1.7", lg: "1.7" },
|
|
154
|
-
code: { xs: "1.7", lg: "1.7" },
|
|
155
|
-
|
|
156
|
-
button: { xs: "1", lg: "1" },
|
|
157
|
-
buttonBig: { xs: "1", lg: "1" },
|
|
158
|
-
|
|
159
|
-
input: { xs: "1", lg: "1" },
|
|
160
|
-
inputBig: { xs: "1", lg: "1" },
|
|
161
|
-
inputSmall: { xs: "1.00", lg: "1.00" },
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
export const theme: Theme = {
|
|
165
|
-
breakpoints,
|
|
166
|
-
spacing,
|
|
167
|
-
colors,
|
|
168
|
-
shadows,
|
|
169
|
-
fonts,
|
|
170
|
-
fontSizes,
|
|
171
|
-
lineHeights,
|
|
172
|
-
isDark: false,
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
export const themeDark: Theme = {
|
|
176
|
-
breakpoints,
|
|
177
|
-
spacing,
|
|
178
|
-
colors: colorsDark,
|
|
179
|
-
shadows: shadowsDark,
|
|
180
|
-
fonts,
|
|
181
|
-
fontSizes,
|
|
182
|
-
lineHeights,
|
|
183
|
-
isDark: true,
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export interface Breakpoints<TNumber = number> {
|
|
187
|
-
xs: TNumber;
|
|
188
|
-
sm: TNumber;
|
|
189
|
-
md: TNumber;
|
|
190
|
-
lg: TNumber;
|
|
191
|
-
xl: TNumber;
|
|
192
|
-
xxl: TNumber;
|
|
193
|
-
xxxl: TNumber;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface Spacing<TString = string> {
|
|
197
|
-
maxWidth: { xs: TString; xxxl: TString };
|
|
198
|
-
padding: { xs: TString; lg: TString };
|
|
199
|
-
radius: { xs: TString; lg: TString; xl: TString };
|
|
200
|
-
gridGap: { xs: TString; lg: TString };
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface Colors<TString = string> {
|
|
204
|
-
primaryLight: TString;
|
|
205
|
-
primary: TString;
|
|
206
|
-
primaryDark: TString;
|
|
207
|
-
|
|
208
|
-
secondaryLight: TString;
|
|
209
|
-
secondary: TString;
|
|
210
|
-
secondaryDark: TString;
|
|
211
|
-
|
|
212
|
-
tertiaryLight: TString;
|
|
213
|
-
tertiary: TString;
|
|
214
|
-
tertiaryDark: TString;
|
|
215
|
-
|
|
216
|
-
grayLight: TString;
|
|
217
|
-
gray: TString;
|
|
218
|
-
grayDark: TString;
|
|
219
|
-
|
|
220
|
-
success: TString;
|
|
221
|
-
error: TString;
|
|
222
|
-
warning: TString;
|
|
223
|
-
info: TString;
|
|
224
|
-
|
|
225
|
-
dark: TString;
|
|
226
|
-
light: TString;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface Shadows<TString = string> {
|
|
230
|
-
xs: TString;
|
|
231
|
-
sm: TString;
|
|
232
|
-
md: TString;
|
|
233
|
-
lg: TString;
|
|
234
|
-
xl: TString;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface Fonts<TString = string> {
|
|
238
|
-
head: TString;
|
|
239
|
-
text: TString;
|
|
240
|
-
mono: TString;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface FontSizes<TString = string> {
|
|
244
|
-
hero1: { xs: TString; lg: TString };
|
|
245
|
-
hero2: { xs: TString; lg: TString };
|
|
246
|
-
hero3: { xs: TString; lg: TString };
|
|
247
|
-
|
|
248
|
-
h1: { xs: TString; lg: TString };
|
|
249
|
-
h2: { xs: TString; lg: TString };
|
|
250
|
-
h3: { xs: TString; lg: TString };
|
|
251
|
-
h4: { xs: TString; lg: TString };
|
|
252
|
-
h5: { xs: TString; lg: TString };
|
|
253
|
-
h6: { xs: TString; lg: TString };
|
|
254
|
-
|
|
255
|
-
text: { xs: TString; lg: TString };
|
|
256
|
-
strong: { xs: TString; lg: TString };
|
|
257
|
-
small: { xs: TString; lg: TString };
|
|
258
|
-
|
|
259
|
-
blockquote: { xs: TString; lg: TString };
|
|
260
|
-
code: { xs: TString; lg: TString };
|
|
261
|
-
|
|
262
|
-
button: { xs: TString; lg: TString };
|
|
263
|
-
buttonBig: { xs: TString; lg: TString };
|
|
264
|
-
|
|
265
|
-
input: { xs: TString; lg: TString };
|
|
266
|
-
inputBig: { xs: TString; lg: TString };
|
|
267
|
-
inputSmall: { xs: TString; lg: TString };
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export interface LineHeights<TString = string> {
|
|
271
|
-
hero1: { xs: TString; lg: TString };
|
|
272
|
-
hero2: { xs: TString; lg: TString };
|
|
273
|
-
hero3: { xs: TString; lg: TString };
|
|
274
|
-
|
|
275
|
-
h1: { xs: TString; lg: TString };
|
|
276
|
-
h2: { xs: TString; lg: TString };
|
|
277
|
-
h3: { xs: TString; lg: TString };
|
|
278
|
-
h4: { xs: TString; lg: TString };
|
|
279
|
-
h5: { xs: TString; lg: TString };
|
|
280
|
-
h6: { xs: TString; lg: TString };
|
|
281
|
-
|
|
282
|
-
text: { xs: TString; lg: TString };
|
|
283
|
-
strong: { xs: TString; lg: TString };
|
|
284
|
-
small: { xs: TString; lg: TString };
|
|
285
|
-
|
|
286
|
-
blockquote: { xs: TString; lg: TString };
|
|
287
|
-
code: { xs: TString; lg: TString };
|
|
288
|
-
|
|
289
|
-
button: { xs: TString; lg: TString };
|
|
290
|
-
buttonBig: { xs: TString; lg: TString };
|
|
291
|
-
|
|
292
|
-
input: { xs: TString; lg: TString };
|
|
293
|
-
inputBig: { xs: TString; lg: TString };
|
|
294
|
-
inputSmall: { xs: TString; lg: TString };
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
export interface Theme {
|
|
298
|
-
breakpoints: Breakpoints;
|
|
299
|
-
spacing: Spacing;
|
|
300
|
-
colors: Colors;
|
|
301
|
-
shadows: Shadows;
|
|
302
|
-
fonts: Fonts;
|
|
303
|
-
fontSizes: FontSizes;
|
|
304
|
-
lineHeights: LineHeights;
|
|
305
|
-
isDark: boolean;
|
|
306
|
-
}
|
|
307
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const typographyTemplate = "\n\"use client\";\nimport {\n styledH1,\n styledH2,\n styledH3,\n styledH4,\n styledH5,\n styledH6,\n styledText,\n Theme,\n} from \"cherry-styled-components/src/lib\";\nimport styled, { css } from \"styled-components\";\n\nconst StyledHeading = css`\n font-weight: 900;\n`; \n\nexport const StyledH1 = styled.h1<{ theme: Theme }>` \n ${StyledHeading};\n ${({ theme }) => styledH1(theme)}\n`; \n\nexport const StyledH2 = styled.h2<{ theme: Theme }>` \n ${StyledHeading};\n ${({ theme }) => styledH2(theme)}\n`; \n\nexport const StyledH3 = styled.h3<{ theme: Theme }>` \n ${StyledHeading};\n ${({ theme }) => styledH3(theme)}\n`; \n\nexport const StyledH4 = styled.h4<{ theme: Theme }>` \n ${StyledHeading};\n ${({ theme }) => styledH4(theme)}\n`; \n\nexport const StyledH5 = styled.h5<{ theme: Theme }>` \n ${StyledHeading};\n ${({ theme }) => styledH5(theme)}\n`; \n\nexport const StyledH6 = styled.h6<{ theme: Theme }>` \n ${StyledHeading};\n ${({ theme }) => styledH6(theme)}\n`; \n\nexport const StyledText = styled.p<{ theme: Theme }>` \n ${({ theme }) => styledText(theme)}\n`; \n";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export const typographyTemplate = `
|
|
2
|
-
"use client";
|
|
3
|
-
import {
|
|
4
|
-
styledH1,
|
|
5
|
-
styledH2,
|
|
6
|
-
styledH3,
|
|
7
|
-
styledH4,
|
|
8
|
-
styledH5,
|
|
9
|
-
styledH6,
|
|
10
|
-
styledText,
|
|
11
|
-
Theme,
|
|
12
|
-
} from "cherry-styled-components/src/lib";
|
|
13
|
-
import styled, { css } from "styled-components";
|
|
14
|
-
|
|
15
|
-
const StyledHeading = css\`
|
|
16
|
-
font-weight: 900;
|
|
17
|
-
\`;
|
|
18
|
-
|
|
19
|
-
export const StyledH1 = styled.h1<{ theme: Theme }>\`
|
|
20
|
-
\${StyledHeading};
|
|
21
|
-
\${({ theme }) => styledH1(theme)}
|
|
22
|
-
\`;
|
|
23
|
-
|
|
24
|
-
export const StyledH2 = styled.h2<{ theme: Theme }>\`
|
|
25
|
-
\${StyledHeading};
|
|
26
|
-
\${({ theme }) => styledH2(theme)}
|
|
27
|
-
\`;
|
|
28
|
-
|
|
29
|
-
export const StyledH3 = styled.h3<{ theme: Theme }>\`
|
|
30
|
-
\${StyledHeading};
|
|
31
|
-
\${({ theme }) => styledH3(theme)}
|
|
32
|
-
\`;
|
|
33
|
-
|
|
34
|
-
export const StyledH4 = styled.h4<{ theme: Theme }>\`
|
|
35
|
-
\${StyledHeading};
|
|
36
|
-
\${({ theme }) => styledH4(theme)}
|
|
37
|
-
\`;
|
|
38
|
-
|
|
39
|
-
export const StyledH5 = styled.h5<{ theme: Theme }>\`
|
|
40
|
-
\${StyledHeading};
|
|
41
|
-
\${({ theme }) => styledH5(theme)}
|
|
42
|
-
\`;
|
|
43
|
-
|
|
44
|
-
export const StyledH6 = styled.h6<{ theme: Theme }>\`
|
|
45
|
-
\${StyledHeading};
|
|
46
|
-
\${({ theme }) => styledH6(theme)}
|
|
47
|
-
\`;
|
|
48
|
-
|
|
49
|
-
export const StyledText = styled.p<{ theme: Theme }>\`
|
|
50
|
-
\${({ theme }) => styledText(theme)}
|
|
51
|
-
\`;
|
|
52
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const updateMdxTemplate = "---\ntitle: \"Update\"\ndescription: \"This is my first Doccupine project\"\ndate: \"2025-01-15\"\ncategory: \"Components\"\ncategoryOrder: 0\norder: 10\n---\n# Update\n\nEasily manage and present change history.\n\nThe `Update` component helps you display release notes, version details, and changelogs in a standardized format.\n\n<Update label=\"Example\" description=\"v0.0.1\">\n ## Example entry\n\n You can include anything here\u2014images, code snippets, or a bullet list of modifications.\n\n \n\n ### Key additions\n\n - Fully responsive layout\n - Individual anchor for each update\n - Automatic RSS feed entry generation\n</Update>\n\n## Update Usage\n\nYou can combine multiple `Update` components to build complete changelogs.\n\n~~~text\n<Update label=\"Example\" description=\"v0.0.1\">\n ## Example entry\n\n You can include anything here\u2014images, code snippets, or a bullet list of modifications.\n\n \n\n ### Key additions\n\n - Fully responsive layout\n - Individual anchor for each update\n - Automatic RSS feed entry generation\n</Update>\n~~~\n\n## Properties\n\n<Field value=\"label\" type=\"string\" required>\n The label of the update.\n</Field>\n\n<Field value=\"description\" type=\"string\" required>\n The description of the update.\n</Field>\n";
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
export const updateMdxTemplate = `---
|
|
2
|
-
title: "Update"
|
|
3
|
-
description: "This is my first Doccupine project"
|
|
4
|
-
date: "2025-01-15"
|
|
5
|
-
category: "Components"
|
|
6
|
-
categoryOrder: 0
|
|
7
|
-
order: 10
|
|
8
|
-
---
|
|
9
|
-
# Update
|
|
10
|
-
|
|
11
|
-
Easily manage and present change history.
|
|
12
|
-
|
|
13
|
-
The \`Update\` component helps you display release notes, version details, and changelogs in a standardized format.
|
|
14
|
-
|
|
15
|
-
<Update label="Example" description="v0.0.1">
|
|
16
|
-
## Example entry
|
|
17
|
-
|
|
18
|
-
You can include anything here—images, code snippets, or a bullet list of modifications.
|
|
19
|
-
|
|
20
|
-

|
|
21
|
-
|
|
22
|
-
### Key additions
|
|
23
|
-
|
|
24
|
-
- Fully responsive layout
|
|
25
|
-
- Individual anchor for each update
|
|
26
|
-
- Automatic RSS feed entry generation
|
|
27
|
-
</Update>
|
|
28
|
-
|
|
29
|
-
## Update Usage
|
|
30
|
-
|
|
31
|
-
You can combine multiple \`Update\` components to build complete changelogs.
|
|
32
|
-
|
|
33
|
-
~~~text
|
|
34
|
-
<Update label="Example" description="v0.0.1">
|
|
35
|
-
## Example entry
|
|
36
|
-
|
|
37
|
-
You can include anything here—images, code snippets, or a bullet list of modifications.
|
|
38
|
-
|
|
39
|
-

|
|
40
|
-
|
|
41
|
-
### Key additions
|
|
42
|
-
|
|
43
|
-
- Fully responsive layout
|
|
44
|
-
- Individual anchor for each update
|
|
45
|
-
- Automatic RSS feed entry generation
|
|
46
|
-
</Update>
|
|
47
|
-
~~~
|
|
48
|
-
|
|
49
|
-
## Properties
|
|
50
|
-
|
|
51
|
-
<Field value="label" type="string" required>
|
|
52
|
-
The label of the update.
|
|
53
|
-
</Field>
|
|
54
|
-
|
|
55
|
-
<Field value="description" type="string" required>
|
|
56
|
-
The description of the update.
|
|
57
|
-
</Field>
|
|
58
|
-
`;
|