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
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { envExampleTemplate } from "./env.example.js";
|
|
2
|
-
import { gitignoreTemplate } from "./gitignore.js";
|
|
3
|
-
import { eslintConfigTemplate } from "./eslint.config.js";
|
|
4
|
-
import { nextConfigTemplate } from "./next.config.js";
|
|
5
|
-
import { packageJsonTemplate } from "./package.js";
|
|
6
|
-
import { prettierrcTemplate } from "./prettierrc.js";
|
|
7
|
-
import { prettierignoreTemplate } from "./prettierignore.js";
|
|
8
|
-
import { proxyTemplate } from "./proxy.js";
|
|
9
|
-
import { tsconfigTemplate } from "./tsconfig.js";
|
|
10
|
-
import { mcpRoutesTemplate } from "./app/api/mcp/route.js";
|
|
11
|
-
import { ragRoutesTemplate } from "./app/api/rag/route.js";
|
|
12
|
-
import { routesTemplate } from "./app/api/theme/routes.js";
|
|
13
|
-
import { notFoundTemplate } from "./app/not-found.js";
|
|
14
|
-
import { themeTemplate } from "./app/theme.js";
|
|
15
|
-
import { chatTemplate } from "./components/Chat.js";
|
|
16
|
-
import { clickOutsideTemplate } from "./components/ClickOutside.js";
|
|
17
|
-
import { docsTemplate } from "./components/Docs.js";
|
|
18
|
-
import { docsSideBarTemplate } from "./components/DocsSideBar.js";
|
|
19
|
-
import { mdxComponentsTemplate } from "./components/MDXComponents.js";
|
|
20
|
-
import { sectionNavProviderTemplate } from "./components/SectionNavProvider.js";
|
|
21
|
-
import { sideBarTemplate } from "./components/SideBar.js";
|
|
22
|
-
import { sectionBarTemplate } from "./components/layout/SectionBar.js";
|
|
23
|
-
import { accordionTemplate } from "./components/layout/Accordion.js";
|
|
24
|
-
import { actionBarTemplate } from "./components/layout/ActionBar.js";
|
|
25
|
-
import { buttonTemplate } from "./components/layout/Button.js";
|
|
26
|
-
import { calloutTemplate } from "./components/layout/Callout.js";
|
|
27
|
-
import { cardTemplate } from "./components/layout/Card.js";
|
|
28
|
-
import { cherryThemeProviderTemplate } from "./components/layout/CherryThemeProvider.js";
|
|
29
|
-
import { clientThemeProviderTemplate } from "./components/layout/ClientThemeProvider.js";
|
|
30
|
-
import { codeTemplate } from "./components/layout/Code.js";
|
|
31
|
-
import { columnsTemplate } from "./components/layout/Columns.js";
|
|
32
|
-
import { demoThemeTemplate } from "./components/layout/DemoTheme.js";
|
|
33
|
-
import { docsComponentsTemplate } from "./components/layout/DocsComponents.js";
|
|
34
|
-
import { docsNavigationTemplate } from "./components/layout/DocsNavigation.js";
|
|
35
|
-
import { fieldTemplate } from "./components/layout/Field.js";
|
|
36
|
-
import { footerTemplate } from "./components/layout/Footer.js";
|
|
37
|
-
import { globalStylesTemplate } from "./components/layout/GlobalStyles.js";
|
|
38
|
-
import { headerTemplate } from "./components/layout/Header.js";
|
|
39
|
-
import { iconTemplate } from "./components/layout/Icon.js";
|
|
40
|
-
import { pictogramsTemplate } from "./components/layout/Pictograms.js";
|
|
41
|
-
import { sharedStyledTemplate } from "./components/layout/SharedStyles.js";
|
|
42
|
-
import { staticLinksTemplate } from "./components/layout/StaticLinks.js";
|
|
43
|
-
import { stepsTemplate } from "./components/layout/Steps.js";
|
|
44
|
-
import { tabsTemplate } from "./components/layout/Tabs.js";
|
|
45
|
-
import { themeToggleTemplate } from "./components/layout/ThemeToggle.js";
|
|
46
|
-
import { typographyTemplate } from "./components/layout/Typography.js";
|
|
47
|
-
import { updateTemplate } from "./components/layout/Update.js";
|
|
48
|
-
import { mcpIndexTemplate } from "./services/mcp/index.js";
|
|
49
|
-
import { mcpServerTemplate } from "./services/mcp/server.js";
|
|
50
|
-
import { mcpToolsTemplate } from "./services/mcp/tools.js";
|
|
51
|
-
import { mcpTypesTemplate } from "./services/mcp/types.js";
|
|
52
|
-
import { llmConfigTemplate } from "./services/llm/config.js";
|
|
53
|
-
import { llmFactoryTemplate } from "./services/llm/factory.js";
|
|
54
|
-
import { llmIndexTemplate } from "./services/llm/index.js";
|
|
55
|
-
import { llmTypesTemplate } from "./services/llm/types.js";
|
|
56
|
-
import { styledDTemplate } from "./types/styled.js";
|
|
57
|
-
import { orderNavItemsTemplate } from "./utils/orderNavItems.js";
|
|
58
|
-
import { rateLimitTemplate } from "./utils/rateLimit.js";
|
|
59
|
-
import { brandingTemplate } from "./utils/branding.js";
|
|
60
|
-
import { configTemplate } from "./utils/config.js";
|
|
61
|
-
import { accordionMdxTemplate } from "./mdx/accordion.mdx.js";
|
|
62
|
-
import { aiAssistantMdxTemplate } from "./mdx/ai-assistant.mdx.js";
|
|
63
|
-
import { buttonsMdxTemplate } from "./mdx/buttons.mdx.js";
|
|
64
|
-
import { calloutsMdxTemplate } from "./mdx/callouts.mdx.js";
|
|
65
|
-
import { cardsMdxTemplate } from "./mdx/cards.mdx.js";
|
|
66
|
-
import { codeMdxTemplate } from "./mdx/code.mdx.js";
|
|
67
|
-
import { columnsMdxTemplate } from "./mdx/columns.mdx.js";
|
|
68
|
-
import { commandsMdxTemplate } from "./mdx/commands.mdx.js";
|
|
69
|
-
import { deploymentMdxTemplate } from "./mdx/deployment.mdx.js";
|
|
70
|
-
import { fieldsMdxTemplate } from "./mdx/fields.mdx.js";
|
|
71
|
-
import { fontsMdxTemplate } from "./mdx/fonts.mdx.js";
|
|
72
|
-
import { globalsMdxTemplate } from "./mdx/globals.mdx.js";
|
|
73
|
-
import { headersAndTextMdxTemplate } from "./mdx/headers-and-text.mdx.js";
|
|
74
|
-
import { iconsMdxTemplate } from "./mdx/icons.mdx.js";
|
|
75
|
-
import { imageAndEmbedsMdxTemplate } from "./mdx/image-and-embeds.mdx.js";
|
|
76
|
-
import { indexMdxTemplate } from "./mdx/index.mdx.js";
|
|
77
|
-
import { footerLinksMdxTemplate } from "./mdx/footer-links.mdx.js";
|
|
78
|
-
import { listAndTablesMdxTemplate } from "./mdx/list-and-tables.mdx.js";
|
|
79
|
-
import { mediaAndAssetsMdxTemplate } from "./mdx/media-and-assets.mdx.js";
|
|
80
|
-
import { mcpMdxTemplate } from "./mdx/model-context-protocol.mdx.js";
|
|
81
|
-
import { navigationMdxTemplate } from "./mdx/navigation.mdx.js";
|
|
82
|
-
import { sectionsMdxTemplate } from "./mdx/sections.mdx.js";
|
|
83
|
-
import { stepsMdxTemplate } from "./mdx/steps.mdx.js";
|
|
84
|
-
import { tabsMdxTemplate } from "./mdx/tabs.mdx.js";
|
|
85
|
-
import { themeMdxTemplate } from "./mdx/theme.mdx.js";
|
|
86
|
-
import { updateMdxTemplate } from "./mdx/update.mdx.js";
|
|
87
|
-
import { platformIndexMdxTemplate } from "./mdx/platform/index.mdx.js";
|
|
88
|
-
import { platformFileEditorMdxTemplate } from "./mdx/platform/file-editor.mdx.js";
|
|
89
|
-
import { platformPublishingMdxTemplate } from "./mdx/platform/publishing.mdx.js";
|
|
90
|
-
import { platformCreatingAProjectMdxTemplate } from "./mdx/platform/creating-a-project.mdx.js";
|
|
91
|
-
import { platformSiteSettingsMdxTemplate } from "./mdx/platform/site-settings.mdx.js";
|
|
92
|
-
import { platformThemeSettingsMdxTemplate } from "./mdx/platform/theme-settings.mdx.js";
|
|
93
|
-
import { platformNavigationSettingsMdxTemplate } from "./mdx/platform/navigation-settings.mdx.js";
|
|
94
|
-
import { platformSectionsSettingsMdxTemplate } from "./mdx/platform/sections-settings.mdx.js";
|
|
95
|
-
import { platformFontsSettingsMdxTemplate } from "./mdx/platform/fonts-settings.mdx.js";
|
|
96
|
-
import { platformExternalLinksMdxTemplate } from "./mdx/platform/external-links.mdx.js";
|
|
97
|
-
import { platformAiAssistantMdxTemplate } from "./mdx/platform/ai-assistant.mdx.js";
|
|
98
|
-
import { platformCustomDomainsMdxTemplate } from "./mdx/platform/custom-domains.mdx.js";
|
|
99
|
-
import { platformDeploymentsMdxTemplate } from "./mdx/platform/deployments.mdx.js";
|
|
100
|
-
import { platformTeamMembersMdxTemplate } from "./mdx/platform/team-members.mdx.js";
|
|
101
|
-
import { platformBillingMdxTemplate } from "./mdx/platform/billing.mdx.js";
|
|
102
|
-
import { platformProjectSettingsMdxTemplate } from "./mdx/platform/project-settings.mdx.js";
|
|
103
|
-
export const appStructure = {
|
|
104
|
-
".env.example": envExampleTemplate,
|
|
105
|
-
".gitignore": gitignoreTemplate,
|
|
106
|
-
".prettierrc": prettierrcTemplate,
|
|
107
|
-
".prettierignore": prettierignoreTemplate,
|
|
108
|
-
"eslint.config.mjs": eslintConfigTemplate,
|
|
109
|
-
"next.config.ts": nextConfigTemplate,
|
|
110
|
-
"package.json": packageJsonTemplate,
|
|
111
|
-
"proxy.ts": proxyTemplate,
|
|
112
|
-
"tsconfig.json": tsconfigTemplate,
|
|
113
|
-
"app/not-found.tsx": notFoundTemplate,
|
|
114
|
-
"app/theme.ts": themeTemplate,
|
|
115
|
-
"app/api/mcp/route.ts": mcpRoutesTemplate,
|
|
116
|
-
"app/api/rag/route.ts": ragRoutesTemplate,
|
|
117
|
-
"app/api/theme/route.ts": routesTemplate,
|
|
118
|
-
"services/mcp/index.ts": mcpIndexTemplate,
|
|
119
|
-
"services/mcp/server.ts": mcpServerTemplate,
|
|
120
|
-
"services/mcp/tools.ts": mcpToolsTemplate,
|
|
121
|
-
"services/mcp/types.ts": mcpTypesTemplate,
|
|
122
|
-
"services/llm/config.ts": llmConfigTemplate,
|
|
123
|
-
"services/llm/factory.ts": llmFactoryTemplate,
|
|
124
|
-
"services/llm/index.ts": llmIndexTemplate,
|
|
125
|
-
"services/llm/types.ts": llmTypesTemplate,
|
|
126
|
-
"types/styled.d.ts": styledDTemplate,
|
|
127
|
-
"utils/branding.ts": brandingTemplate,
|
|
128
|
-
"utils/orderNavItems.ts": orderNavItemsTemplate,
|
|
129
|
-
"utils/rateLimit.ts": rateLimitTemplate,
|
|
130
|
-
"utils/config.ts": configTemplate,
|
|
131
|
-
"components/Chat.tsx": chatTemplate,
|
|
132
|
-
"components/ClickOutside.ts": clickOutsideTemplate,
|
|
133
|
-
"components/Docs.tsx": docsTemplate,
|
|
134
|
-
"components/DocsSideBar.tsx": docsSideBarTemplate,
|
|
135
|
-
"components/MDXComponents.tsx": mdxComponentsTemplate,
|
|
136
|
-
"components/SectionNavProvider.tsx": sectionNavProviderTemplate,
|
|
137
|
-
"components/SideBar.tsx": sideBarTemplate,
|
|
138
|
-
"components/layout/Accordion.tsx": accordionTemplate,
|
|
139
|
-
"components/layout/ActionBar.tsx": actionBarTemplate,
|
|
140
|
-
"components/layout/Button.tsx": buttonTemplate,
|
|
141
|
-
"components/layout/Callout.tsx": calloutTemplate,
|
|
142
|
-
"components/layout/Card.tsx": cardTemplate,
|
|
143
|
-
"components/layout/CherryThemeProvider.tsx": cherryThemeProviderTemplate,
|
|
144
|
-
"components/layout/ClientThemeProvider.tsx": clientThemeProviderTemplate,
|
|
145
|
-
"components/layout/Code.tsx": codeTemplate,
|
|
146
|
-
"components/layout/Columns.tsx": columnsTemplate,
|
|
147
|
-
"components/layout/DemoTheme.tsx": demoThemeTemplate,
|
|
148
|
-
"components/layout/DocsComponents.tsx": docsComponentsTemplate,
|
|
149
|
-
"components/layout/DocsNavigation.tsx": docsNavigationTemplate,
|
|
150
|
-
"components/layout/SectionBar.tsx": sectionBarTemplate,
|
|
151
|
-
"components/layout/Field.tsx": fieldTemplate,
|
|
152
|
-
"components/layout/Footer.tsx": footerTemplate,
|
|
153
|
-
"components/layout/GlobalStyles.ts": globalStylesTemplate,
|
|
154
|
-
"components/layout/Header.tsx": headerTemplate,
|
|
155
|
-
"components/layout/Icon.tsx": iconTemplate,
|
|
156
|
-
"components/layout/Pictograms.tsx": pictogramsTemplate,
|
|
157
|
-
"components/layout/SharedStyled.ts": sharedStyledTemplate,
|
|
158
|
-
"components/layout/StaticLinks.tsx": staticLinksTemplate,
|
|
159
|
-
"components/layout/Steps.tsx": stepsTemplate,
|
|
160
|
-
"components/layout/Tabs.tsx": tabsTemplate,
|
|
161
|
-
"components/layout/ThemeToggle.tsx": themeToggleTemplate,
|
|
162
|
-
"components/layout/Typography.ts": typographyTemplate,
|
|
163
|
-
"components/layout/Update.tsx": updateTemplate,
|
|
164
|
-
};
|
|
165
|
-
export const startingDocsStructure = {
|
|
166
|
-
"accordion.mdx": accordionMdxTemplate,
|
|
167
|
-
"ai-assistant.mdx": aiAssistantMdxTemplate,
|
|
168
|
-
"buttons.mdx": buttonsMdxTemplate,
|
|
169
|
-
"callouts.mdx": calloutsMdxTemplate,
|
|
170
|
-
"cards.mdx": cardsMdxTemplate,
|
|
171
|
-
"code.mdx": codeMdxTemplate,
|
|
172
|
-
"columns.mdx": columnsMdxTemplate,
|
|
173
|
-
"commands.mdx": commandsMdxTemplate,
|
|
174
|
-
"deployment.mdx": deploymentMdxTemplate,
|
|
175
|
-
"fields.mdx": fieldsMdxTemplate,
|
|
176
|
-
"fonts.mdx": fontsMdxTemplate,
|
|
177
|
-
"globals.mdx": globalsMdxTemplate,
|
|
178
|
-
"headers-and-text.mdx": headersAndTextMdxTemplate,
|
|
179
|
-
"icons.mdx": iconsMdxTemplate,
|
|
180
|
-
"image-and-embeds.mdx": imageAndEmbedsMdxTemplate,
|
|
181
|
-
"index.mdx": indexMdxTemplate,
|
|
182
|
-
"footer-links.mdx": footerLinksMdxTemplate,
|
|
183
|
-
"lists-and-tables.mdx": listAndTablesMdxTemplate,
|
|
184
|
-
"media-and-assets.mdx": mediaAndAssetsMdxTemplate,
|
|
185
|
-
"model-context-protocol.mdx": mcpMdxTemplate,
|
|
186
|
-
"navigation.mdx": navigationMdxTemplate,
|
|
187
|
-
"sections.mdx": sectionsMdxTemplate,
|
|
188
|
-
"steps.mdx": stepsMdxTemplate,
|
|
189
|
-
"tabs.mdx": tabsMdxTemplate,
|
|
190
|
-
"theme.mdx": themeMdxTemplate,
|
|
191
|
-
"update.mdx": updateMdxTemplate,
|
|
192
|
-
"platform/index.mdx": platformIndexMdxTemplate,
|
|
193
|
-
"platform/file-editor.mdx": platformFileEditorMdxTemplate,
|
|
194
|
-
"platform/publishing.mdx": platformPublishingMdxTemplate,
|
|
195
|
-
"platform/creating-a-project.mdx": platformCreatingAProjectMdxTemplate,
|
|
196
|
-
"platform/site-settings.mdx": platformSiteSettingsMdxTemplate,
|
|
197
|
-
"platform/theme-settings.mdx": platformThemeSettingsMdxTemplate,
|
|
198
|
-
"platform/navigation-settings.mdx": platformNavigationSettingsMdxTemplate,
|
|
199
|
-
"platform/sections-settings.mdx": platformSectionsSettingsMdxTemplate,
|
|
200
|
-
"platform/fonts-settings.mdx": platformFontsSettingsMdxTemplate,
|
|
201
|
-
"platform/external-links.mdx": platformExternalLinksMdxTemplate,
|
|
202
|
-
"platform/ai-assistant.mdx": platformAiAssistantMdxTemplate,
|
|
203
|
-
"platform/custom-domains.mdx": platformCustomDomainsMdxTemplate,
|
|
204
|
-
"platform/deployments.mdx": platformDeploymentsMdxTemplate,
|
|
205
|
-
"platform/team-members.mdx": platformTeamMembersMdxTemplate,
|
|
206
|
-
"platform/billing.mdx": platformBillingMdxTemplate,
|
|
207
|
-
"platform/project-settings.mdx": platformProjectSettingsMdxTemplate,
|
|
208
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const tabsMdxTemplate = "---\ntitle: \"Tabs\"\ndescription: \"Doccupine CLI commands\"\ndate: \"2025-01-15\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 5\n---\n# Tabs\nUse the Tabs component to display different content sections in a switchable panel layout.\n\nTabs are useful for grouping related information while keeping the interface tidy. You can create as many tabs as needed, and each one can hold other components, text, or code snippets.\n\n## Tabs Usage\nYou can use the Tabs component directly within your MDX files without any import. The following example shows a basic usage:\n\n~~~mdx\n<Tabs>\n <TabContent title=\"First tab\">\n \u261D\uFE0F This is the content shown only when the first tab is active.\n\n Tabs can include all kinds of components. For example, a simple Java program:\n ```java\n class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello, World!\");\n }\n }\n ```\n </TabContent>\n <TabContent title=\"Second tab\">\n \u270C\uFE0F Content inside this second tab is separate from the first.\n </TabContent>\n <TabContent title=\"Third tab\">\n \uD83D\uDCAA This third tab contains its own unique content.\n </TabContent>\n</Tabs>\n~~~\n\n<Tabs>\n <TabContent title=\"First tab\">\n \u261D\uFE0F This is the content shown only when the first tab is active.\n\n Tabs can include all kinds of components. For example, a simple Java program:\n ```java\n class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello, World!\");\n }\n }\n ```\n </TabContent>\n <TabContent title=\"Second tab\" icon=\"leaf\">\n \u270C\uFE0F Content inside this second tab is separate from the first.\n </TabContent>\n <TabContent title=\"Third tab\">\n \uD83D\uDCAA This third tab contains its own unique content.\n </TabContent>\n</Tabs>";
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export const tabsMdxTemplate = `---
|
|
2
|
-
title: "Tabs"
|
|
3
|
-
description: "Doccupine CLI commands"
|
|
4
|
-
date: "2025-01-15"
|
|
5
|
-
category: "Components"
|
|
6
|
-
categoryOrder: 1
|
|
7
|
-
order: 5
|
|
8
|
-
---
|
|
9
|
-
# Tabs
|
|
10
|
-
Use the Tabs component to display different content sections in a switchable panel layout.
|
|
11
|
-
|
|
12
|
-
Tabs are useful for grouping related information while keeping the interface tidy. You can create as many tabs as needed, and each one can hold other components, text, or code snippets.
|
|
13
|
-
|
|
14
|
-
## Tabs Usage
|
|
15
|
-
You can use the Tabs component directly within your MDX files without any import. The following example shows a basic usage:
|
|
16
|
-
|
|
17
|
-
~~~mdx
|
|
18
|
-
<Tabs>
|
|
19
|
-
<TabContent title="First tab">
|
|
20
|
-
☝️ This is the content shown only when the first tab is active.
|
|
21
|
-
|
|
22
|
-
Tabs can include all kinds of components. For example, a simple Java program:
|
|
23
|
-
\`\`\`java
|
|
24
|
-
class HelloWorld {
|
|
25
|
-
public static void main(String[] args) {
|
|
26
|
-
System.out.println("Hello, World!");
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
\`\`\`
|
|
30
|
-
</TabContent>
|
|
31
|
-
<TabContent title="Second tab">
|
|
32
|
-
✌️ Content inside this second tab is separate from the first.
|
|
33
|
-
</TabContent>
|
|
34
|
-
<TabContent title="Third tab">
|
|
35
|
-
💪 This third tab contains its own unique content.
|
|
36
|
-
</TabContent>
|
|
37
|
-
</Tabs>
|
|
38
|
-
~~~
|
|
39
|
-
|
|
40
|
-
<Tabs>
|
|
41
|
-
<TabContent title="First tab">
|
|
42
|
-
☝️ This is the content shown only when the first tab is active.
|
|
43
|
-
|
|
44
|
-
Tabs can include all kinds of components. For example, a simple Java program:
|
|
45
|
-
\`\`\`java
|
|
46
|
-
class HelloWorld {
|
|
47
|
-
public static void main(String[] args) {
|
|
48
|
-
System.out.println("Hello, World!");
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
\`\`\`
|
|
52
|
-
</TabContent>
|
|
53
|
-
<TabContent title="Second tab" icon="leaf">
|
|
54
|
-
✌️ Content inside this second tab is separate from the first.
|
|
55
|
-
</TabContent>
|
|
56
|
-
<TabContent title="Third tab">
|
|
57
|
-
💪 This third tab contains its own unique content.
|
|
58
|
-
</TabContent>
|
|
59
|
-
</Tabs>`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const textMdxTemplate = "---\ntitle: \"Headers and Text\"\ndescription: \"Doccupine CLI commands\"\ndate: \"2025-01-15\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 1\n---\n# Headers and Text\nLearn how to structure and style your content with headers, formatting, and links.\n\n## Headers\nHeaders define the hierarchy of your content and automatically generate navigation anchors. They also appear in the table of contents, helping readers quickly scan through documentation.\n\n### Creating headers\nAdd `#` symbols before text to create headers at various levels:\n\n```text\n## Main section header\n### Subsection header\n#### Nested subsection header\n```\n\n## Text Formatting\nMarkdown text styling is supported for emphasis, highlighting, and readability.\n\n### Basic formatting\nUse these common syntax options:\n\n- Bold: `**bold text**` \u2192 **bold text**\n- Italic: `*italic text*` \u2192 *italic text*\n- Strikethrough: `~~strikethrough~~` \u2192 ~~strikethrough~~\n\n### Combining formats\nYou can mix multiple styles at once for clarity:\n\n```text\n**_bold and italic_**\n**~~bold and strikethrough~~**\n*~~italic and strikethrough~~**\n```\n\n## Superscript and subscript\nFor formulas, notes, or variables, use HTML tags:\n\n- Superscript `X<sup>2</sup>` \u2192 X<sup>2</sup>\n- Subscript `H<sub>2</sub>O` \u2192 H<sub>2</sub>O\n\n## Links\nLinks connect users to internal pages or external resources. Always use descriptive link text for better accessibility.\n\n### Internal links\nReference other docs with root-relative paths:\n\n```text\n[Getting Started](/)\n[Commands](/commands)\n```\n\n- [Getting Started](/)\n- [Commands](/commands)\n\n### External links\nPoint to external pages by including full URLs:\n\n```text\n[Markdown Guide](https://www.markdownguide.org/)\n```\n\n[Markdown Guide](https://www.markdownguide.org/)\n\n## Blockquotes\nBlockquotes are used to visually highlight key information, quotations, or examples.\n\n### Single line blockquotes\nPrefix text with `>` for a single-line blockquote:\n\n```text\n> Highlighted message or quote\n```\n\n> Highlighted message or quote\n\n### Multi-line blockquotes\nFor larger quotes spanning more than one paragraph:\n\n```text\n> This is a blockquote that spans multiple lines.\n> It can include several paragraphs of text.\n> Each new line starts with a `>` symbol.\n```\n\n> This is a blockquote that spans multiple lines.\n> It can include several paragraphs of text.\n> Each new line starts with a `>` symbol.\n\n## Line Breaks and Spacing\nControl spacing to improve readability and layout.\n\n### Paragraph breaks\nSeparate paragraphs with blank lines:\n\n```text\nFirst paragraph.\n\nSecond paragraph.\n```\n\nFirst paragraph.\n\nSecond paragraph.\n\n## Manual line breaks\nFor shorter breaks inside the same paragraph, use `<br />`:\n\n```text\nThis is one line.<br />\nThis is the next line.\n```\n\nThis is one line.<br />\nThis is the next line.\n\n# Best Practices\n\n## Organizing content\n\n- Use headers to establish hierarchy\n- Maintain logical order (avoid skipping levels, e.g., H2 \u2192 H4)\n- Always write meaningful, descriptive headers\n\n## Formatting text\n\n- Use **bold** for key emphasis only\n- Use *italics* for emphasis or technical terms\n- Limit formatting combinations to maintain readability\n\n## Links\n\n- Avoid vague text like \u201Cclick here\u201D\n- Prefer root-relative paths for internal links\n- Regularly validate links to ensure they are not broken";
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
export const textMdxTemplate = `---
|
|
2
|
-
title: "Headers and Text"
|
|
3
|
-
description: "Doccupine CLI commands"
|
|
4
|
-
date: "2025-01-15"
|
|
5
|
-
category: "Components"
|
|
6
|
-
categoryOrder: 1
|
|
7
|
-
order: 1
|
|
8
|
-
---
|
|
9
|
-
# Headers and Text
|
|
10
|
-
Learn how to structure and style your content with headers, formatting, and links.
|
|
11
|
-
|
|
12
|
-
## Headers
|
|
13
|
-
Headers define the hierarchy of your content and automatically generate navigation anchors. They also appear in the table of contents, helping readers quickly scan through documentation.
|
|
14
|
-
|
|
15
|
-
### Creating headers
|
|
16
|
-
Add \`#\` symbols before text to create headers at various levels:
|
|
17
|
-
|
|
18
|
-
\`\`\`text
|
|
19
|
-
## Main section header
|
|
20
|
-
### Subsection header
|
|
21
|
-
#### Nested subsection header
|
|
22
|
-
\`\`\`
|
|
23
|
-
|
|
24
|
-
## Text Formatting
|
|
25
|
-
Markdown text styling is supported for emphasis, highlighting, and readability.
|
|
26
|
-
|
|
27
|
-
### Basic formatting
|
|
28
|
-
Use these common syntax options:
|
|
29
|
-
|
|
30
|
-
- Bold: \`**bold text**\` → **bold text**
|
|
31
|
-
- Italic: \`*italic text*\` → *italic text*
|
|
32
|
-
- Strikethrough: \`~~strikethrough~~\` → ~~strikethrough~~
|
|
33
|
-
|
|
34
|
-
### Combining formats
|
|
35
|
-
You can mix multiple styles at once for clarity:
|
|
36
|
-
|
|
37
|
-
\`\`\`text
|
|
38
|
-
**_bold and italic_**
|
|
39
|
-
**~~bold and strikethrough~~**
|
|
40
|
-
*~~italic and strikethrough~~**
|
|
41
|
-
\`\`\`
|
|
42
|
-
|
|
43
|
-
## Superscript and subscript
|
|
44
|
-
For formulas, notes, or variables, use HTML tags:
|
|
45
|
-
|
|
46
|
-
- Superscript \`X<sup>2</sup>\` → X<sup>2</sup>
|
|
47
|
-
- Subscript \`H<sub>2</sub>O\` → H<sub>2</sub>O
|
|
48
|
-
|
|
49
|
-
## Links
|
|
50
|
-
Links connect users to internal pages or external resources. Always use descriptive link text for better accessibility.
|
|
51
|
-
|
|
52
|
-
### Internal links
|
|
53
|
-
Reference other docs with root-relative paths:
|
|
54
|
-
|
|
55
|
-
\`\`\`text
|
|
56
|
-
[Getting Started](/)
|
|
57
|
-
[Commands](/commands)
|
|
58
|
-
\`\`\`
|
|
59
|
-
|
|
60
|
-
- [Getting Started](/)
|
|
61
|
-
- [Commands](/commands)
|
|
62
|
-
|
|
63
|
-
### External links
|
|
64
|
-
Point to external pages by including full URLs:
|
|
65
|
-
|
|
66
|
-
\`\`\`text
|
|
67
|
-
[Markdown Guide](https://www.markdownguide.org/)
|
|
68
|
-
\`\`\`
|
|
69
|
-
|
|
70
|
-
[Markdown Guide](https://www.markdownguide.org/)
|
|
71
|
-
|
|
72
|
-
## Blockquotes
|
|
73
|
-
Blockquotes are used to visually highlight key information, quotations, or examples.
|
|
74
|
-
|
|
75
|
-
### Single line blockquotes
|
|
76
|
-
Prefix text with \`>\` for a single-line blockquote:
|
|
77
|
-
|
|
78
|
-
\`\`\`text
|
|
79
|
-
> Highlighted message or quote
|
|
80
|
-
\`\`\`
|
|
81
|
-
|
|
82
|
-
> Highlighted message or quote
|
|
83
|
-
|
|
84
|
-
### Multi-line blockquotes
|
|
85
|
-
For larger quotes spanning more than one paragraph:
|
|
86
|
-
|
|
87
|
-
\`\`\`text
|
|
88
|
-
> This is a blockquote that spans multiple lines.
|
|
89
|
-
> It can include several paragraphs of text.
|
|
90
|
-
> Each new line starts with a \`>\` symbol.
|
|
91
|
-
\`\`\`
|
|
92
|
-
|
|
93
|
-
> This is a blockquote that spans multiple lines.
|
|
94
|
-
> It can include several paragraphs of text.
|
|
95
|
-
> Each new line starts with a \`>\` symbol.
|
|
96
|
-
|
|
97
|
-
## Line Breaks and Spacing
|
|
98
|
-
Control spacing to improve readability and layout.
|
|
99
|
-
|
|
100
|
-
### Paragraph breaks
|
|
101
|
-
Separate paragraphs with blank lines:
|
|
102
|
-
|
|
103
|
-
\`\`\`text
|
|
104
|
-
First paragraph.
|
|
105
|
-
|
|
106
|
-
Second paragraph.
|
|
107
|
-
\`\`\`
|
|
108
|
-
|
|
109
|
-
First paragraph.
|
|
110
|
-
|
|
111
|
-
Second paragraph.
|
|
112
|
-
|
|
113
|
-
## Manual line breaks
|
|
114
|
-
For shorter breaks inside the same paragraph, use \`<br />\`:
|
|
115
|
-
|
|
116
|
-
\`\`\`text
|
|
117
|
-
This is one line.<br />
|
|
118
|
-
This is the next line.
|
|
119
|
-
\`\`\`
|
|
120
|
-
|
|
121
|
-
This is one line.<br />
|
|
122
|
-
This is the next line.
|
|
123
|
-
|
|
124
|
-
# Best Practices
|
|
125
|
-
|
|
126
|
-
## Organizing content
|
|
127
|
-
|
|
128
|
-
- Use headers to establish hierarchy
|
|
129
|
-
- Maintain logical order (avoid skipping levels, e.g., H2 → H4)
|
|
130
|
-
- Always write meaningful, descriptive headers
|
|
131
|
-
|
|
132
|
-
## Formatting text
|
|
133
|
-
|
|
134
|
-
- Use **bold** for key emphasis only
|
|
135
|
-
- Use *italics* for emphasis or technical terms
|
|
136
|
-
- Limit formatting combinations to maintain readability
|
|
137
|
-
|
|
138
|
-
## Links
|
|
139
|
-
|
|
140
|
-
- Avoid vague text like “click here”
|
|
141
|
-
- Prefer root-relative paths for internal links
|
|
142
|
-
- Regularly validate links to ensure they are not broken`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const themeToggleTemplate = "\n\"use client\";\nimport { Theme, resetButton, ThemeContext } from \"cherry-styled-components/src/lib\";\nimport React, { useContext, useEffect } from \"react\";\nimport styled, { css, useTheme } from \"styled-components\";\nimport { useSearchParams } from \"next/navigation\";\nimport { theme as themeLight, themeDark } from \"@/app/theme\";\nimport { Icon } from \"@/app/components/layout/Icon\";\n\nconst StyledThemeToggle = styled.button<{ theme: Theme; $hidden?: boolean }>`\n ${resetButton}\n width: 24px;\n height: 24px;\n border-radius: 50%;\n display: flex;\n position: relative;\n margin: auto 0;\n transform: scale(1);\n\n ${({ $hidden }) =>\n $hidden &&\n css`\n display: none;\n `}\n\n & svg {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) translateY(0);\n margin: auto;\n transition: all 0.3s ease;\n\n &.lucide-sun {\n ${({ theme }) =>\n theme.isDark &&\n `opacity: 0;\n\t\t\ttransform: translate(-50%, -50%) translateY(10px);`}\n }\n\n &.lucide-moon-star {\n ${({ theme }) =>\n !theme.isDark &&\n `opacity: 0;\n\t\t\ttransform: translate(-50%, -50%) translateY(10px);`}\n }\n }\n\n & svg[stroke] {\n stroke: ${({ theme }) => theme.colors.primary};\n }\n\n @media (hover: hover) {\n &:hover {\n transform: scale(1.05);\n color: ${({ theme }) =>\n theme.isDark ? theme.colors.primaryLight : theme.colors.primaryDark};\n Toggle & svg[stroke] {\n stroke: ${({ theme }) =>\n theme.isDark ? theme.colors.primaryLight : theme.colors.primaryDark};\n }\n }\n }\n\n &:active {\n transform: scale(0.97);\n }\n`;\n\nfunction ToggleTheme({ $hidden }: { $hidden?: boolean }) {\n const theme = useTheme() as Theme;\n const { setTheme } = useContext(ThemeContext);\n\n const searchParams = useSearchParams();\n const themeParam = searchParams.get(\"theme\");\n\n useEffect(() => {\n if (themeParam === \"light\") {\n setTheme(themeLight);\n localStorage.theme = \"light\";\n } else if (themeParam === \"dark\") {\n setTheme(themeDark);\n localStorage.theme = \"dark\";\n }\n }, [themeParam, setTheme]);\n\n return (\n <StyledThemeToggle\n onClick={() => {\n if (theme.isDark) {\n setTheme(themeLight);\n localStorage.theme = \"light\";\n } else {\n setTheme(themeDark);\n localStorage.theme = \"dark\";\n }\n }}\n $hidden={$hidden}\n aria-label=\"Toggle Theme\"\n >\n <Icon name=\"MoonStar\" className=\"dark\" />\n <Icon name=\"Sun\" className=\"light\" />\n </StyledThemeToggle>\n );\n}\n\nexport { ToggleTheme };\n";
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
export const themeToggleTemplate = `
|
|
2
|
-
"use client";
|
|
3
|
-
import { Theme, resetButton, ThemeContext } from "cherry-styled-components/src/lib";
|
|
4
|
-
import React, { useContext, useEffect } from "react";
|
|
5
|
-
import styled, { css, useTheme } from "styled-components";
|
|
6
|
-
import { useSearchParams } from "next/navigation";
|
|
7
|
-
import { theme as themeLight, themeDark } from "@/app/theme";
|
|
8
|
-
import { Icon } from "@/app/components/layout/Icon";
|
|
9
|
-
|
|
10
|
-
const StyledThemeToggle = styled.button<{ theme: Theme; $hidden?: boolean }>\`
|
|
11
|
-
\${resetButton}
|
|
12
|
-
width: 24px;
|
|
13
|
-
height: 24px;
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
display: flex;
|
|
16
|
-
position: relative;
|
|
17
|
-
margin: auto 0;
|
|
18
|
-
transform: scale(1);
|
|
19
|
-
|
|
20
|
-
\${({ $hidden }) =>
|
|
21
|
-
$hidden &&
|
|
22
|
-
css\`
|
|
23
|
-
display: none;
|
|
24
|
-
\`}
|
|
25
|
-
|
|
26
|
-
& svg {
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
object-fit: contain;
|
|
30
|
-
position: absolute;
|
|
31
|
-
top: 50%;
|
|
32
|
-
left: 50%;
|
|
33
|
-
transform: translate(-50%, -50%) translateY(0);
|
|
34
|
-
margin: auto;
|
|
35
|
-
transition: all 0.3s ease;
|
|
36
|
-
|
|
37
|
-
&.lucide-sun {
|
|
38
|
-
\${({ theme }) =>
|
|
39
|
-
theme.isDark &&
|
|
40
|
-
\`opacity: 0;
|
|
41
|
-
transform: translate(-50%, -50%) translateY(10px);\`}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.lucide-moon-star {
|
|
45
|
-
\${({ theme }) =>
|
|
46
|
-
!theme.isDark &&
|
|
47
|
-
\`opacity: 0;
|
|
48
|
-
transform: translate(-50%, -50%) translateY(10px);\`}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
& svg[stroke] {
|
|
53
|
-
stroke: \${({ theme }) => theme.colors.primary};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (hover: hover) {
|
|
57
|
-
&:hover {
|
|
58
|
-
transform: scale(1.05);
|
|
59
|
-
color: \${({ theme }) =>
|
|
60
|
-
theme.isDark ? theme.colors.primaryLight : theme.colors.primaryDark};
|
|
61
|
-
Toggle & svg[stroke] {
|
|
62
|
-
stroke: \${({ theme }) =>
|
|
63
|
-
theme.isDark ? theme.colors.primaryLight : theme.colors.primaryDark};
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:active {
|
|
69
|
-
transform: scale(0.97);
|
|
70
|
-
}
|
|
71
|
-
\`;
|
|
72
|
-
|
|
73
|
-
function ToggleTheme({ $hidden }: { $hidden?: boolean }) {
|
|
74
|
-
const theme = useTheme() as Theme;
|
|
75
|
-
const { setTheme } = useContext(ThemeContext);
|
|
76
|
-
|
|
77
|
-
const searchParams = useSearchParams();
|
|
78
|
-
const themeParam = searchParams.get("theme");
|
|
79
|
-
|
|
80
|
-
useEffect(() => {
|
|
81
|
-
if (themeParam === "light") {
|
|
82
|
-
setTheme(themeLight);
|
|
83
|
-
localStorage.theme = "light";
|
|
84
|
-
} else if (themeParam === "dark") {
|
|
85
|
-
setTheme(themeDark);
|
|
86
|
-
localStorage.theme = "dark";
|
|
87
|
-
}
|
|
88
|
-
}, [themeParam, setTheme]);
|
|
89
|
-
|
|
90
|
-
return (
|
|
91
|
-
<StyledThemeToggle
|
|
92
|
-
onClick={() => {
|
|
93
|
-
if (theme.isDark) {
|
|
94
|
-
setTheme(themeLight);
|
|
95
|
-
localStorage.theme = "light";
|
|
96
|
-
} else {
|
|
97
|
-
setTheme(themeDark);
|
|
98
|
-
localStorage.theme = "dark";
|
|
99
|
-
}
|
|
100
|
-
}}
|
|
101
|
-
$hidden={$hidden}
|
|
102
|
-
aria-label="Toggle Theme"
|
|
103
|
-
>
|
|
104
|
-
<Icon name="MoonStar" className="dark" />
|
|
105
|
-
<Icon name="Sun" className="light" />
|
|
106
|
-
</StyledThemeToggle>
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export { ToggleTheme };
|
|
111
|
-
`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const themeTemplate = "\"use client\";\nexport const breakpoints: Breakpoints = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1440,\n xxxl: 1920,\n};\n\nexport function mq(minWidth: keyof Breakpoints) {\n return `@media screen and (min-width: ${breakpoints[minWidth]}px)`;\n}\n\nexport const spacing: Spacing = {\n maxWidth: { xs: \"1280px\", xxxl: \"1440px\" },\n padding: { xs: \"20px\", lg: \"40px\" },\n radius: { xs: \"6px\", lg: \"12px\", xl: \"30px\" },\n gridGap: { xs: \"20px\", lg: \"40px\" },\n};\n\nexport const colors: Colors = {\n primaryLight: \"#93c5fd\",\n primary: \"#3b82f6\",\n primaryDark: \"#1e40af\",\n\n secondaryLight: \"#475569\",\n secondary: \"#1e293b\",\n secondaryDark: \"#020617\",\n\n tertiaryLight: \"#ebccb9\",\n tertiary: \"#816b5a\",\n tertiaryDark: \"#675445\",\n\n grayLight: \"#e5e7eb\",\n gray: \"#9ca3af\",\n grayDark: \"#4b5563\",\n\n success: \"#84cc16\",\n error: \"#ef4444\",\n warning: \"#eab308\",\n info: \"#06b6d4\",\n\n dark: \"#000000\",\n light: \"#ffffff\",\n};\n\nexport const colorsDark: Colors = {\n primaryLight: \"#9bcaff\",\n primary: \"#1e7ae0\",\n primaryDark: \"#033d7e\",\n\n secondaryLight: \"#a4b17b\",\n secondary: \"#5c6e46\",\n secondaryDark: \"#354c2b\",\n\n tertiaryLight: \"#0B0E13\",\n tertiary: \"#372414\",\n tertiaryDark: \"\",\n\n grayLight: \"#1a1a1a\",\n gray: \"#454444\",\n grayDark: \"#808080\",\n\n success: \"#84cc16\",\n error: \"#ef4444\",\n warning: \"#eab308\",\n info: \"#06b6d4\",\n\n dark: \"#ffffff\",\n light: \"#000000\",\n};\n\nexport const shadows: Shadows = {\n xs: \"0px 4px 4px 0px rgba(18, 18, 18, 0.04), 0px 1px 3px 0px rgba(39, 41, 45, 0.02)\",\n sm: \"0px 4px 4px 0px rgba(18, 18, 18, 0.08), 0px 1px 3px 0px rgba(39, 41, 45, 0.04)\",\n md: \"0px 8px 8px 0px rgba(18, 18, 18, 0.16), 0px 2px 3px 0px rgba(39, 41, 45, 0.06)\",\n lg: \"0px 16px 24px 0px rgba(18, 18, 18, 0.20), 0px 2px 3px 0px rgba(39, 41, 45, 0.08)\",\n xl: \"0px 24px 32px 0px rgba(18, 18, 18, 0.24), 0px 2px 3px 0px rgba(39, 41, 45, 0.12)\",\n};\n\nexport const shadowsDark: Shadows = {\n xs: \"0px 4px 4px 0px rgba(255, 255, 255, 0.04), 0px 1px 3px 0px rgba(255, 255, 255, 0.02)\",\n sm: \"0px 4px 4px 0px rgba(255, 255, 255, 0.08), 0px 1px 3px 0px rgba(255, 255, 255, 0.04)\",\n md: \"0px 8px 8px 0px rgba(255, 255, 255, 0.16), 0px 2px 3px 0px rgba(255, 255, 255, 0.06)\",\n lg: \"0px 16px 24px 0px rgba(255, 255, 255, 0.20), 0px 2px 3px 0px rgba(255, 255, 255, 0.08)\",\n xl: \"0px 24px 32px 0px rgba(255, 255, 255, 0.24), 0px 2px 3px 0px rgba(255, 255, 255, 0.12)\",\n};\n\nexport const fonts: Fonts = {\n text: \"Inter\",\n head: \"Inter\",\n mono: \"Roboto Mono, monospace\",\n};\n\nexport const fontSizes: FontSizes = {\n hero1: { xs: \"72px\", lg: \"128px\" },\n hero2: { xs: \"60px\", lg: \"96px\" },\n hero3: { xs: \"36px\", lg: \"72px\" },\n\n h1: { xs: \"40px\", lg: \"60px\" },\n h2: { xs: \"30px\", lg: \"36px\" },\n h3: { xs: \"28px\", lg: \"30px\" },\n h4: { xs: \"24px\", lg: \"26px\" },\n h5: { xs: \"18px\", lg: \"20px\" },\n h6: { xs: \"16px\", lg: \"18px\" },\n\n text: { xs: \"14px\", lg: \"16px\" },\n strong: { xs: \"14px\", lg: \"16px\" },\n small: { xs: \"12px\", lg: \"14px\" },\n\n blockquote: { xs: \"16px\", lg: \"18px\" },\n code: { xs: \"14px\", lg: \"16px\" },\n\n button: { xs: \"16px\", lg: \"16px\" },\n buttonBig: { xs: \"18px\", lg: \"18px\" },\n\n input: { xs: \"16px\", lg: \"16px\" },\n inputBig: { xs: \"18px\", lg: \"18px\" },\n};\n\nexport const lineHeights: LineHeights = {\n hero1: { xs: \"1.1\", lg: \"1.1\" },\n hero2: { xs: \"1.1\", lg: \"1.1\" },\n hero3: { xs: \"1.17\", lg: \"1.1\" },\n\n h1: { xs: \"1\", lg: \"1.07\" },\n h2: { xs: \"1.2\", lg: \"1.2\" },\n h3: { xs: \"1.3\", lg: \"1.5\" },\n h4: { xs: \"1.3\", lg: \"1.5\" },\n h5: { xs: \"1.6\", lg: \"1.5\" },\n h6: { xs: \"1.6\", lg: \"1.6\" },\n\n text: { xs: \"1.7\", lg: \"1.7\" },\n strong: { xs: \"1.7\", lg: \"1.7\" },\n small: { xs: \"1.7\", lg: \"1.7\" },\n\n blockquote: { xs: \"1.7\", lg: \"1.7\" },\n code: { xs: \"1.7\", lg: \"1.7\" },\n\n button: { xs: \"1\", lg: \"1\" },\n buttonBig: { xs: \"1\", lg: \"1\" },\n\n input: { xs: \"1\", lg: \"1\" },\n inputBig: { xs: \"1\", lg: \"1\" },\n};\n\nexport const theme: Theme = {\n breakpoints,\n spacing,\n colors,\n shadows,\n fonts,\n fontSizes,\n lineHeights,\n isDark: false,\n};\n\nexport const themeDark: Theme = {\n breakpoints,\n spacing,\n colors: colorsDark,\n shadows: shadowsDark,\n fonts,\n fontSizes,\n lineHeights,\n isDark: true,\n};\n\nexport interface Breakpoints<TNumber = number> {\n xs: TNumber;\n sm: TNumber;\n md: TNumber;\n lg: TNumber;\n xl: TNumber;\n xxl: TNumber;\n xxxl: TNumber;\n}\n\nexport interface Spacing<TString = string> {\n maxWidth: { xs: TString; xxxl: TString };\n padding: { xs: TString; lg: TString };\n radius: { xs: TString; lg: TString; xl: TString };\n gridGap: { xs: TString; lg: TString };\n}\n\nexport interface Colors<TString = string> {\n primaryLight: TString;\n primary: TString;\n primaryDark: TString;\n\n secondaryLight: TString;\n secondary: TString;\n secondaryDark: TString;\n\n tertiaryLight: TString;\n tertiary: TString;\n tertiaryDark: TString;\n\n grayLight: TString;\n gray: TString;\n grayDark: TString;\n\n success: TString;\n error: TString;\n warning: TString;\n info: TString;\n\n dark: TString;\n light: TString;\n}\n\ninterface Shadows<TString = string> {\n xs: TString;\n sm: TString;\n md: TString;\n lg: TString;\n xl: TString;\n}\n\nexport interface Fonts<TString = string> {\n head: TString;\n text: TString;\n mono: TString;\n}\n\nexport interface FontSizes<TString = string> {\n hero1: { xs: TString; lg: TString };\n hero2: { xs: TString; lg: TString };\n hero3: { xs: TString; lg: TString };\n\n h1: { xs: TString; lg: TString };\n h2: { xs: TString; lg: TString };\n h3: { xs: TString; lg: TString };\n h4: { xs: TString; lg: TString };\n h5: { xs: TString; lg: TString };\n h6: { xs: TString; lg: TString };\n\n text: { xs: TString; lg: TString };\n strong: { xs: TString; lg: TString };\n small: { xs: TString; lg: TString };\n\n blockquote: { xs: TString; lg: TString };\n code: { xs: TString; lg: TString };\n\n button: { xs: TString; lg: TString };\n buttonBig: { xs: TString; lg: TString };\n\n input: { xs: TString; lg: TString };\n inputBig: { xs: TString; lg: TString };\n}\n\nexport interface LineHeights<TString = string> {\n hero1: { xs: TString; lg: TString };\n hero2: { xs: TString; lg: TString };\n hero3: { xs: TString; lg: TString };\n\n h1: { xs: TString; lg: TString };\n h2: { xs: TString; lg: TString };\n h3: { xs: TString; lg: TString };\n h4: { xs: TString; lg: TString };\n h5: { xs: TString; lg: TString };\n h6: { xs: TString; lg: TString };\n\n text: { xs: TString; lg: TString };\n strong: { xs: TString; lg: TString };\n small: { xs: TString; lg: TString };\n\n blockquote: { xs: TString; lg: TString };\n code: { xs: TString; lg: TString };\n\n button: { xs: TString; lg: TString };\n buttonBig: { xs: TString; lg: TString };\n\n input: { xs: TString; lg: TString };\n inputBig: { xs: TString; lg: TString };\n}\n\nexport interface Theme {\n breakpoints: Breakpoints;\n spacing: Spacing;\n colors: Colors;\n shadows: Shadows;\n fonts: Fonts;\n fontSizes: FontSizes;\n lineHeights: LineHeights;\n isDark: boolean;\n}\n";
|