@apify/docs-theme 1.0.2 → 1.0.4

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.
Files changed (36) hide show
  1. package/package.json +8 -6
  2. package/{img → src/img}/footer-apify-logo.svg +0 -0
  3. package/{img → src/img}/footer-open-source.svg +0 -0
  4. package/src/index.js +41 -0
  5. package/src/theme/ColorModeToggle/index.jsx +64 -0
  6. package/{theme → src/theme}/ColorModeToggle/styles.module.css +0 -0
  7. package/src/theme/DocSidebarItem/Link/index.jsx +62 -0
  8. package/src/theme/DocSidebarItem/Link/styles.module.css +3 -0
  9. package/src/theme/Footer/index.jsx +72 -0
  10. package/{theme → src/theme}/Footer/index.module.css +0 -0
  11. package/src/theme/Icon/DarkMode/index.jsx +11 -0
  12. package/src/theme/Icon/LightMode/index.jsx +28 -0
  13. package/src/theme/Navbar/Content/index.jsx +95 -0
  14. package/{theme → src/theme}/Navbar/Content/styles.module.css +0 -0
  15. package/src/theme/NavbarItem/ComponentTypes.jsx +101 -0
  16. package/src/theme/NavbarItem/NavbarNavLink.jsx +69 -0
  17. package/src/theme/NotFound.jsx +77 -0
  18. package/src/theme/custom.css +378 -0
  19. package/index.d.ts +0 -9
  20. package/index.js +0 -20
  21. package/theme/ColorModeToggle/index.d.ts +0 -8
  22. package/theme/ColorModeToggle/index.js +0 -38
  23. package/theme/Footer/index.d.ts +0 -4
  24. package/theme/Footer/index.js +0 -49
  25. package/theme/Icon/DarkMode/index.d.ts +0 -4
  26. package/theme/Icon/DarkMode/index.js +0 -11
  27. package/theme/Icon/LightMode/index.d.ts +0 -4
  28. package/theme/Icon/LightMode/index.js +0 -23
  29. package/theme/Navbar/Content/index.d.ts +0 -1
  30. package/theme/Navbar/Content/index.js +0 -60
  31. package/theme/NavbarItem/ComponentTypes.d.ts +0 -20
  32. package/theme/NavbarItem/ComponentTypes.js +0 -64
  33. package/theme/NavbarItem/NavbarNavLink.d.ts +0 -11
  34. package/theme/NavbarItem/NavbarNavLink.js +0 -42
  35. package/theme/NotFound.d.ts +0 -1
  36. package/theme/NotFound.js +0 -69
@@ -0,0 +1,378 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600;700&display=swap');
2
+
3
+ html[data-theme='dark'] {
4
+ --ifm-navbar-background-color: #1a1b23;
5
+ --ifm-background-color: #1a1b23;
6
+ --ifm-background-surface-color: #242736;
7
+
8
+ --ifm-font-color-base: #f2f3fb;
9
+
10
+ --ifm-pre-background: #242736;
11
+
12
+ --ifm-color-primary: #5d9df1;
13
+ --ifm-link-color: #5d9df1;
14
+ --ifm-heading-color: #f2f3fb;
15
+ --ifm-navbar-link-color: #f2f3fb;
16
+
17
+ --docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.1);
18
+ --docsearch-text-color: #8d92af;
19
+ }
20
+
21
+ :root {
22
+ /* use default system font based on https://devhints.io/css-system-font-stack */
23
+ --ifm-font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
24
+ --ifm-heading-font-family: 'Lota Grotesque', sans-serif;
25
+ --ifm-font-weight-semibold: 600;
26
+ --ifm-font-color-base: #242736;
27
+
28
+ --ifm-navbar-item-padding-horizontal: 1.75rem;
29
+ --ifm-navbar-link-color: #41465d;
30
+ --ifm-navbar-shadow: none;
31
+
32
+ --ifm-heading-margin-top: var(--ifm-heading-margin-bottom);
33
+ --ifm-hero-background-color: transparent;
34
+
35
+ --ifm-code-background: var(--ifm-pre-background) !important;
36
+ --ifm-code-padding-horizontal: 0.4rem;
37
+ --ifm-code-padding-vertical: 0.2rem;
38
+
39
+ --ifm-color-primary-lightest: #5d9df1;
40
+ --ifm-color-primary-lighter: #3a87ee;
41
+ --ifm-color-primary-light: #2e80ed;
42
+ --ifm-color-primary: #1672eb;
43
+ --ifm-color-primary-dark: #1266d5;
44
+ --ifm-color-primary-darker: #1161c9;
45
+ --ifm-color-primary-darkest: #0e50a6;
46
+
47
+ --ifm-link-color: hsl(214, 84%, 50%);
48
+ --ifm-link-hover-color: hsl(214, 84%, 65%);
49
+ --ifm-link-hover-decoration: none;
50
+
51
+ --ifm-footer-background-color: #272c3d;
52
+ --ifm-footer-title-color: #f2f3fb;
53
+ --ifm-footer-link-color: #f2f3fb;
54
+ --max-layout-width: 1680px;
55
+
56
+ --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
57
+
58
+ --ifm-heading-color: #242736;
59
+ }
60
+
61
+ @font-face {
62
+ font-family: 'Lota Grotesque';
63
+ src: url('/font/lota.woff2') format('woff2'),
64
+ url('/font/lota.woff') format('woff');
65
+ font-weight: 600;
66
+ }
67
+
68
+ .footer__title {
69
+ font-size: 1.25rem;
70
+ font-weight: 600;
71
+ }
72
+
73
+ .footer__bottom a {
74
+ opacity: 0.75;
75
+ }
76
+
77
+ .footer__copyright {
78
+ color: var(--ifm-footer-title-color);
79
+ }
80
+
81
+ .navbar__title {
82
+ /* Replaced by SVG */
83
+ display: none;
84
+ }
85
+
86
+ .navbar__inner {
87
+ /* .container */
88
+ max-width: calc(var(--max-layout-width) - 32px);
89
+ padding: 0 var(--ifm-spacing-horizontal);
90
+ width: 100%;
91
+ }
92
+
93
+ .navbar__item.dropdown {
94
+ padding: 0;
95
+ }
96
+
97
+ .DocSearch-Button-Placeholder {
98
+ font-size: 14px !important;
99
+ }
100
+
101
+ html .DocSearch-Button {
102
+ border-radius: 6px !important;
103
+ font-weight: 400 !important;
104
+ background: #f9fafd;
105
+ border: 1px solid #c1c6dd;
106
+
107
+ /* Annoying, but needed */
108
+ /* https://stackoverflow.com/questions/26140050/why-is-font-family-not-inherited-in-button-tags-automatically/26140154 */
109
+ font-family: inherit;
110
+ }
111
+
112
+ html .DocSearch-Button .DocSearch-Search-Icon {
113
+ color: var(--docsearch-muted-color);
114
+ }
115
+
116
+ html[data-theme="dark"] .DocSearch-Button {
117
+ background: none;
118
+ border: 1px solid var(--docsearch-muted-color);
119
+ }
120
+
121
+ html[data-theme="dark"] .DocSearch-Button .DocSearch-Search-Icon {
122
+ color: var(--docsearch-muted-color);
123
+ }
124
+
125
+ .DocSearch-Button:hover {
126
+ box-shadow: none !important;
127
+ }
128
+
129
+ .navbar, .main-wrapper {
130
+ justify-content: center;
131
+ }
132
+
133
+ html.plugin-pages .main-wrapper {
134
+ overflow-x: hidden;
135
+ }
136
+
137
+ .main-wrapper > div {
138
+ max-width: var(--max-layout-width);
139
+ }
140
+
141
+ aside > div > a {
142
+ padding-left: 16px;
143
+ }
144
+
145
+ aside > div > a > b {
146
+ display: none;
147
+ }
148
+
149
+ .dropdown > .navbar__link::after {
150
+ border-color: currentColor;
151
+ border-style: solid;
152
+ border-width: 0.1em 0.1em 0 0;
153
+ content: '';
154
+ display: inline-block;
155
+ height: 0.4em;
156
+ left: 0.3em;
157
+ position: relative;
158
+ vertical-align: top;
159
+ width: 0.4em;
160
+ top: 9px;
161
+ transform: rotate(135deg);
162
+ }
163
+
164
+ .navbar .icon {
165
+ font-size: 0;
166
+ padding: 4px;
167
+ margin-left: 20px;
168
+ line-height: 0;
169
+ }
170
+
171
+ .navbar .icon::before {
172
+ content: '';
173
+ display: block;
174
+ width: 24px;
175
+ height: 24px;
176
+ background-size: cover;
177
+ }
178
+
179
+ .navbar .icon[href*=github]::before {
180
+ background-image: url('/static/img/github-brand.svg');
181
+ }
182
+
183
+ html[data-theme="dark"] .navbar .navbar__link[href*=github]:before {
184
+ background-image: url('/static/img/github-brand-dark.svg');
185
+ }
186
+
187
+ .navbar .icon[href*=discord]::before {
188
+ background-image: url('/static/img/discord-brand.svg');
189
+ }
190
+
191
+ html[data-theme="dark"] .navbar .navbar__link[href*=discord]:before {
192
+ background-image: url('/static/img/discord-brand-dark.svg');
193
+ }
194
+
195
+ .navbar svg[class*=iconExternalLink],
196
+ aside svg[class*=iconExternalLink] {
197
+ display: none;
198
+ }
199
+
200
+ header.hero div[class^=heroButtons] {
201
+ justify-content: inherit;
202
+ }
203
+
204
+ article .card h2 {
205
+ margin-top: 0;
206
+ }
207
+
208
+ .tsd-kind-icon,
209
+ .menu__link,
210
+ .table-of-contents__link {
211
+ text-overflow: ellipsis;
212
+ display: inline-block;
213
+ width: 100%;
214
+ overflow: hidden;
215
+ white-space: nowrap;
216
+ }
217
+
218
+ .menu__caret:before,
219
+ .menu__link--sublist:after {
220
+ float: right;
221
+ }
222
+
223
+ .table-of-contents__link {
224
+ height: 20px;
225
+ }
226
+
227
+ nav.navbar .dropdown__menu {
228
+ min-width: 6rem;
229
+ }
230
+
231
+ .navbar__logo {
232
+ width: 11rem;
233
+ height: 3rem;
234
+ padding: 10px 0;
235
+ }
236
+
237
+ .navbar__link.subnav {
238
+ font-size: 0.8em;
239
+ padding: 5px;
240
+ }
241
+
242
+ .main-wrapper a[class*='sidebarLogo'] img {
243
+ height: 3rem;
244
+ }
245
+
246
+ html.plugin-pages h2 {
247
+ font-size: 36px;
248
+ line-height: 48px;
249
+ }
250
+
251
+ html.plugin-docs .theme-doc-markdown {
252
+ font-size: 18px;
253
+ line-height: 32px;
254
+ }
255
+
256
+ html.plugin-docs .theme-doc-markdown h1 {
257
+ font-weight: 600;
258
+ font-size: 48px;
259
+ line-height: 64px;
260
+ color: #000;
261
+ }
262
+
263
+ html[data-theme='dark'].plugin-docs .theme-doc-markdown h1 {
264
+ color: #fff;
265
+ }
266
+
267
+ html.plugin-typedoc-api .theme-doc-markdown h1 {
268
+ color: #000;
269
+ }
270
+
271
+ html[data-theme='dark'].plugin-typedoc-api .theme-doc-markdown h1 {
272
+ color: #fff;
273
+ }
274
+
275
+ html.plugin-docs .theme-doc-markdown h2 {
276
+ font-size: 36px;
277
+ line-height: 48px;
278
+ }
279
+
280
+ html.plugin-docs .theme-doc-markdown h3 {
281
+ font-size: 28px;
282
+ line-height: 36px;
283
+ /*color: #242736;*/
284
+ }
285
+
286
+ .theme-doc-toc-desktop .table-of-contents {
287
+ font-size: 16px;
288
+ line-height: 24px;
289
+ }
290
+
291
+ .theme-doc-sidebar-menu .menu__link,
292
+ .theme-doc-toc-desktop .table-of-contents .toc-highlight {
293
+ height: auto;
294
+ color: #6f7490;
295
+ background: none;
296
+ }
297
+
298
+ .theme-doc-sidebar-menu .menu__link:hover {
299
+ background: inherit;
300
+ }
301
+
302
+ .theme-doc-sidebar-menu .menu__link {
303
+ font-weight: 400;
304
+ }
305
+
306
+ .theme-doc-sidebar-menu .menu__link--active {
307
+ font-weight: 700;
308
+ }
309
+
310
+ .theme-doc-sidebar-menu .menu__list-item-collapsible,
311
+ .theme-doc-sidebar-menu .menu__list-item-collapsible--active {
312
+ background: none;
313
+ }
314
+
315
+ .theme-doc-toc-desktop .table-of-contents .table-of-contents__link--active {
316
+ font-weight: 700;
317
+ }
318
+
319
+ html[data-theme='dark'] .theme-doc-sidebar-menu .menu__link,
320
+ html[data-theme='dark'] .theme-doc-toc-desktop .table-of-contents .toc-highlight {
321
+ color: #b3b8d2;
322
+ }
323
+
324
+ html[data-theme='dark'] .theme-doc-sidebar-menu .menu__link--active,
325
+ html[data-theme='dark'] .theme-doc-toc-desktop .table-of-contents .table-of-contents__link--active {
326
+ color: #f2f3fb;
327
+ }
328
+
329
+ .theme-doc-sidebar-menu .menu__link:hover,
330
+ .theme-doc-sidebar-menu .menu__link--active,
331
+ .theme-doc-toc-desktop .table-of-contents .table-of-contents__link:hover,
332
+ .theme-doc-toc-desktop .table-of-contents .table-of-contents__link--active {
333
+ color: #242736;
334
+ }
335
+
336
+ .hero {
337
+ position: relative;
338
+ }
339
+
340
+ .apiItemContainer .tsd-readme h1:first-child {
341
+ display: none;
342
+ }
343
+
344
+ @media (min-width: 997px) and (max-width: 1250px) {
345
+ .navbar__items--right a.icon {
346
+ display: none;
347
+ }
348
+ }
349
+
350
+ @media (min-width: 997px) and (max-width: 1130px) {
351
+ .navbar__link.changelog {
352
+ display: none;
353
+ }
354
+ }
355
+
356
+ @media (min-width: 997px) and (max-width: 1439px) {
357
+ footer .col--offset-9 {
358
+ --ifm-col-width: calc(4 / 12 * 100%);
359
+ margin-left: calc(8 / 12 * 100%);
360
+ }
361
+ }
362
+
363
+ html .theme-doc-sidebar-container {
364
+ border: 0;
365
+ }
366
+
367
+ html .theme-doc-sidebar-container button {
368
+ border: 0;
369
+ border-radius: 10px;
370
+ }
371
+
372
+ html .table-of-contents {
373
+ border-left: 0;
374
+ }
375
+
376
+ html .table-of-contents ul {
377
+ border-left: 2px solid #dfe2f5;
378
+ }
package/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export default function theme(context: any, opts: any): {
2
- name: string;
3
- getThemePath(): string;
4
- getTypeScriptThemePath(): string;
5
- contentLoaded({ content, actions }: {
6
- content: any;
7
- actions: any;
8
- }): Promise<void>;
9
- };
package/index.js DELETED
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function theme(context, opts) {
4
- return {
5
- name: "@apify/docs-theme",
6
- getThemePath() {
7
- return '../dist/theme';
8
- },
9
- getTypeScriptThemePath() {
10
- return '../src/theme';
11
- },
12
- async contentLoaded({ content, actions }) {
13
- const { setGlobalData } = actions;
14
- setGlobalData({
15
- opts,
16
- });
17
- },
18
- };
19
- }
20
- exports.default = theme;
@@ -1,8 +0,0 @@
1
- declare const _default: React.MemoExoticComponent<typeof ColorModeToggle>;
2
- export default _default;
3
- declare function ColorModeToggle({ className, value, onChange }: {
4
- className: any;
5
- value: any;
6
- onChange: any;
7
- }): JSX.Element;
8
- import React from "react";
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const clsx_1 = __importDefault(require("clsx"));
8
- const useIsBrowser_1 = __importDefault(require("@docusaurus/useIsBrowser"));
9
- const Translate_1 = require("@docusaurus/Translate");
10
- const LightMode_1 = __importDefault(require("../Icon/LightMode"));
11
- const DarkMode_1 = __importDefault(require("../Icon/DarkMode"));
12
- const styles_module_css_1 = __importDefault(require("./styles.module.css"));
13
- function ColorModeToggle({ className, value, onChange }) {
14
- const isBrowser = (0, useIsBrowser_1.default)();
15
- const title = (0, Translate_1.translate)({
16
- message: 'Switch between dark and light mode (currently {mode})',
17
- id: 'theme.colorToggle.ariaLabel',
18
- description: 'The ARIA label for the navbar color mode toggle',
19
- }, {
20
- mode: value === 'dark'
21
- ? (0, Translate_1.translate)({
22
- message: 'dark mode',
23
- id: 'theme.colorToggle.ariaLabel.mode.dark',
24
- description: 'The name for the dark color mode',
25
- })
26
- : (0, Translate_1.translate)({
27
- message: 'light mode',
28
- id: 'theme.colorToggle.ariaLabel.mode.light',
29
- description: 'The name for the light color mode',
30
- }),
31
- });
32
- return (react_1.default.createElement("div", { className: (0, clsx_1.default)(styles_module_css_1.default.toggle, className) },
33
- react_1.default.createElement("button", { className: (0, clsx_1.default)('clean-btn', styles_module_css_1.default.toggleButton, !isBrowser && styles_module_css_1.default.toggleButtonDisabled), type: "button", onClick: () => onChange(value === 'dark' ? 'light' : 'dark'), disabled: !isBrowser, title: title, "aria-label": title },
34
- react_1.default.createElement("span", null,
35
- react_1.default.createElement(LightMode_1.default, { className: (0, clsx_1.default)(styles_module_css_1.default.toggleIcon, styles_module_css_1.default.lightToggleIcon), width: 14, height: 14 }),
36
- react_1.default.createElement(DarkMode_1.default, { className: (0, clsx_1.default)(styles_module_css_1.default.toggleIcon, styles_module_css_1.default.darkToggleIcon), width: 14, height: 14 })))));
37
- }
38
- exports.default = react_1.default.memo(ColorModeToggle);
@@ -1,4 +0,0 @@
1
- declare const _default: React.MemoExoticComponent<typeof Footer>;
2
- export default _default;
3
- declare function Footer(): JSX.Element;
4
- import React from "react";
@@ -1,49 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const clsx_1 = __importDefault(require("clsx"));
8
- // eslint-disable-next-line import/no-extraneous-dependencies
9
- const theme_common_1 = require("@docusaurus/theme-common");
10
- const LinkItem_1 = __importDefault(require("@theme/Footer/LinkItem"));
11
- const index_module_css_1 = __importDefault(require("./index.module.css"));
12
- function FooterLinksColumn({ column }) {
13
- return (react_1.default.createElement(react_1.default.Fragment, null,
14
- react_1.default.createElement("div", { className: index_module_css_1.default.footerTitle }, column.title),
15
- react_1.default.createElement("ul", { className: (0, clsx_1.default)(index_module_css_1.default.footerItem, 'clean-list') }, column.items.map((item, i) => (react_1.default.createElement("li", { key: i, className: "footer__item" },
16
- react_1.default.createElement(LinkItem_1.default, { item: item })))))));
17
- }
18
- function Footer() {
19
- const { footer } = (0, theme_common_1.useThemeConfig)();
20
- if (!footer) {
21
- return null;
22
- }
23
- const { links, style } = footer;
24
- const OpenSourceIcon = require('../../img/footer-open-source.svg').default;
25
- const ApifyLogo = require('../../img/footer-apify-logo.svg').default;
26
- return (react_1.default.createElement("footer", { className: (0, clsx_1.default)(index_module_css_1.default.footer, style) },
27
- react_1.default.createElement("div", { className: "container padding-horiz--lg" },
28
- react_1.default.createElement("div", { className: "row" },
29
- react_1.default.createElement("div", { className: "col col--5" },
30
- react_1.default.createElement("div", { className: "row" },
31
- react_1.default.createElement("div", { className: "col col--6" },
32
- react_1.default.createElement(FooterLinksColumn, { column: links[0] })),
33
- react_1.default.createElement("div", { className: "col col--6" },
34
- react_1.default.createElement(FooterLinksColumn, { column: links[1] })))),
35
- react_1.default.createElement("div", { className: "col col--7" },
36
- react_1.default.createElement("div", { className: "row" },
37
- react_1.default.createElement("div", { className: "col col--3 col--offset-9" },
38
- react_1.default.createElement(FooterLinksColumn, { column: links[2] }))))),
39
- react_1.default.createElement("div", { className: "row padding-vert--md padding-top--lg" },
40
- react_1.default.createElement("div", { className: "col padding-vert--md col--6" },
41
- react_1.default.createElement("div", { className: index_module_css_1.default.freeAndOpenSource },
42
- react_1.default.createElement(OpenSourceIcon, { className: index_module_css_1.default.alignMiddle }),
43
- react_1.default.createElement("span", { className: index_module_css_1.default.alignMiddle }, "Blablabla, bla bla bla. This component is from the common theme!"))),
44
- react_1.default.createElement("div", { className: "col padding-vert--md col--6 text--right" },
45
- react_1.default.createElement("span", { className: index_module_css_1.default.builtBy },
46
- react_1.default.createElement("span", { className: index_module_css_1.default.alignMiddle }, "Built by"),
47
- react_1.default.createElement(ApifyLogo, { className: index_module_css_1.default.alignMiddle })))))));
48
- }
49
- exports.default = react_1.default.memo(Footer);
@@ -1,4 +0,0 @@
1
- declare const _default: React.MemoExoticComponent<typeof IconDarkMode>;
2
- export default _default;
3
- declare function IconDarkMode(props: any): JSX.Element;
4
- import React from "react";
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- function IconDarkMode(props) {
8
- return (react_1.default.createElement("svg", { viewBox: "0 0 13 12", width: 14, height: 14, ...props },
9
- react_1.default.createElement("path", { d: "M10.7001 6.39501C10.6215 7.24611 10.3021 8.05721 9.77927 8.7334C9.25646 9.40959 8.55189 9.92291 7.748 10.2133C6.9441 10.5036 6.07414 10.5591 5.2399 10.3731C4.40565 10.187 3.64164 9.76728 3.03726 9.1629C2.43287 8.55851 2.01312 7.7945 1.8271 6.96026C1.64108 6.12602 1.6965 5.25605 1.98688 4.45216C2.27725 3.64826 2.79056 2.94369 3.46675 2.42088C4.14294 1.89808 4.95404 1.57866 5.80515 1.50001C5.30685 2.17414 5.06707 3.00473 5.12941 3.84071C5.19175 4.6767 5.55208 5.46254 6.14485 6.05531C6.73762 6.64808 7.52346 7.0084 8.35944 7.07074C9.19542 7.13308 10.026 6.8933 10.7001 6.39501Z", stroke: "currentColor", fill: "transparent", strokeLinecap: "round", strokeLinejoin: "round" })));
10
- }
11
- exports.default = react_1.default.memo(IconDarkMode);
@@ -1,4 +0,0 @@
1
- declare const _default: React.MemoExoticComponent<typeof IconLightMode>;
2
- export default _default;
3
- declare function IconLightMode(props: any): JSX.Element;
4
- import React from "react";
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- function IconLightMode(props) {
8
- return (react_1.default.createElement("svg", { viewBox: "0 0 13 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: 14, height: 14, ...props },
9
- react_1.default.createElement("g", { clipPath: "url(#clip0_833_8168)" },
10
- react_1.default.createElement("path", { d: "M6.59998 8.49999C7.98069 8.49999 9.09998 7.3807 9.09998 5.99999C9.09998 4.61928 7.98069 3.49999 6.59998 3.49999C5.21926 3.49999 4.09998 4.61928 4.09998 5.99999C4.09998 7.3807 5.21926 8.49999 6.59998 8.49999Z", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
11
- react_1.default.createElement("path", { d: "M6.59985 0.5V1.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
12
- react_1.default.createElement("path", { d: "M6.59985 10.5V11.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
13
- react_1.default.createElement("path", { d: "M2.7099 2.11L3.4199 2.82", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
14
- react_1.default.createElement("path", { d: "M9.77991 9.17999L10.4899 9.88999", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
15
- react_1.default.createElement("path", { d: "M1.09998 6H2.09998", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
16
- react_1.default.createElement("path", { d: "M11.0999 6H12.0999", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
17
- react_1.default.createElement("path", { d: "M2.7099 9.88999L3.4199 9.17999", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
18
- react_1.default.createElement("path", { d: "M9.77991 2.82L10.4899 2.11", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })),
19
- react_1.default.createElement("defs", null,
20
- react_1.default.createElement("clipPath", { id: "clip0_833_8168" },
21
- react_1.default.createElement("rect", { width: "12", height: "12", fill: "white", transform: "translate(0.599976)" })))));
22
- }
23
- exports.default = react_1.default.memo(IconLightMode);
@@ -1 +0,0 @@
1
- export default function NavbarContent(): JSX.Element;
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const theme_common_1 = require("@docusaurus/theme-common");
8
- const useGlobalData_1 = require("@docusaurus/useGlobalData");
9
- const useDocusaurusContext_1 = __importDefault(require("@docusaurus/useDocusaurusContext"));
10
- const internal_1 = require("@docusaurus/theme-common/internal");
11
- const styles_module_css_1 = __importDefault(require("./styles.module.css"));
12
- const Logo_1 = __importDefault(require("@theme/Navbar/Logo"));
13
- const NavbarItem_1 = __importDefault(require("@theme/NavbarItem"));
14
- const ColorModeToggle_1 = __importDefault(require("@theme/Navbar/ColorModeToggle"));
15
- const Search_1 = __importDefault(require("@theme/Navbar/Search"));
16
- const SearchBar_1 = __importDefault(require("@theme/SearchBar"));
17
- const Toggle_1 = __importDefault(require("@theme/Navbar/MobileSidebar/Toggle"));
18
- function NavbarItems({ items }) {
19
- return (react_1.default.createElement(react_1.default.Fragment, null, items.map((item, i) => (react_1.default.createElement(NavbarItem_1.default, { ...item, key: i })))));
20
- }
21
- function NavbarContentLayout({ left, right }) {
22
- return (react_1.default.createElement("div", { className: "navbar__inner" },
23
- react_1.default.createElement("div", { className: "navbar__items" }, left),
24
- react_1.default.createElement("div", { className: "navbar__items navbar__items--right" }, right)));
25
- }
26
- function SubNavbar() {
27
- const { subNavbar } = (0, useGlobalData_1.usePluginData)('@apify/docs-theme').opts;
28
- const pageTitle = (0, useDocusaurusContext_1.default)().siteConfig.title;
29
- return (subNavbar ? (react_1.default.createElement("div", { className: "navbar__inner" },
30
- react_1.default.createElement("div", { className: "navbar__items" },
31
- react_1.default.createElement(NavbarItems, { items: [
32
- {
33
- label: pageTitle,
34
- to: '/',
35
- },
36
- ...subNavbar,
37
- ] })))) : null);
38
- }
39
- function NavbarContent() {
40
- const items = (0, theme_common_1.useThemeConfig)().navbar.items;
41
- const [leftItems, rightItems] = (0, internal_1.splitNavbarItems)(items);
42
- const searchBarItem = items.find((item) => item.type === 'search');
43
- return (react_1.default.createElement("div", { style: {
44
- width: "100%",
45
- height: "100%",
46
- alignItems: "center",
47
- display: "flex",
48
- flexDirection: "column",
49
- } },
50
- react_1.default.createElement(NavbarContentLayout, { left: react_1.default.createElement(react_1.default.Fragment, null,
51
- react_1.default.createElement(Toggle_1.default, null),
52
- react_1.default.createElement(Logo_1.default, null),
53
- react_1.default.createElement(NavbarItems, { items: leftItems })), right: react_1.default.createElement(react_1.default.Fragment, null,
54
- react_1.default.createElement(ColorModeToggle_1.default, { className: styles_module_css_1.default.colorModeToggle }),
55
- react_1.default.createElement(NavbarItems, { items: rightItems }),
56
- !searchBarItem && (react_1.default.createElement(Search_1.default, null,
57
- react_1.default.createElement(SearchBar_1.default, null)))) }),
58
- react_1.default.createElement(SubNavbar, null)));
59
- }
60
- exports.default = NavbarContent;
@@ -1,20 +0,0 @@
1
- export default ComponentTypes;
2
- declare const ComponentTypes: {
3
- default: any;
4
- localeDropdown: any;
5
- search: any;
6
- dropdown: any;
7
- html: any;
8
- 'custom-api': typeof ApiNavbarItem;
9
- doc: typeof DocNavbarItem;
10
- docSidebar: any;
11
- docsVersion: any;
12
- docsVersionDropdown: any;
13
- };
14
- declare function ApiNavbarItem(ctx: any): JSX.Element;
15
- declare function DocNavbarItem({ docId, label: staticLabel, docsPluginId, ...props }: {
16
- [x: string]: any;
17
- docId: any;
18
- label: any;
19
- docsPluginId: any;
20
- }): JSX.Element;