boltdocs 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SearchDialog-YOXMFGH6.mjs → SearchDialog-6Z7CUAYJ.mjs} +8 -1
- package/dist/{SearchDialog-UOAW6IR3.css → SearchDialog-GOZ6X53X.css} +129 -14
- package/dist/{chunk-MULKZFVN.mjs → chunk-SFVOGJ2W.mjs} +269 -165
- package/dist/client/index.css +129 -14
- package/dist/client/index.d.mts +5 -7
- package/dist/client/index.d.ts +5 -7
- package/dist/client/index.js +586 -337
- package/dist/client/index.mjs +106 -5
- package/dist/client/ssr.css +129 -14
- package/dist/client/ssr.d.mts +1 -1
- package/dist/client/ssr.d.ts +1 -1
- package/dist/client/ssr.js +378 -230
- package/dist/client/ssr.mjs +1 -1
- package/dist/node/index.d.mts +2 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.js +4 -1
- package/dist/node/index.mjs +4 -1
- package/dist/{types-CviV0GbX.d.ts → types-BbceAHA0.d.mts} +2 -0
- package/dist/{types-CviV0GbX.d.mts → types-BbceAHA0.d.ts} +2 -0
- package/package.json +1 -1
- package/src/client/app/index.tsx +8 -7
- package/src/client/theme/components/mdx/Table.tsx +108 -10
- package/src/client/theme/components/mdx/mdx-components.css +79 -0
- package/src/client/theme/styles/variables.css +24 -0
- package/src/client/theme/ui/ErrorBoundary/ErrorBoundary.tsx +46 -0
- package/src/client/theme/ui/ErrorBoundary/index.ts +1 -0
- package/src/client/theme/ui/Layout/Layout.tsx +8 -1
- package/src/client/theme/ui/Navbar/Tabs.tsx +37 -12
- package/src/client/theme/ui/Navbar/navbar.css +26 -18
- package/src/client/theme/ui/OnThisPage/OnThisPage.tsx +1 -8
- package/src/client/theme/ui/ProgressBar/ProgressBar.css +17 -0
- package/src/client/theme/ui/ProgressBar/ProgressBar.tsx +51 -0
- package/src/client/theme/ui/ProgressBar/index.ts +1 -0
- package/src/client/theme/ui/SearchDialog/SearchDialog.tsx +11 -1
- package/src/client/types.ts +2 -0
- package/src/node/routes/index.ts +1 -0
- package/src/node/routes/parser.ts +11 -0
- package/src/node/routes/types.ts +2 -0
package/dist/client/index.css
CHANGED
|
@@ -55,6 +55,28 @@
|
|
|
55
55
|
color: #94a3b8;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
/* src/client/theme/ui/ProgressBar/ProgressBar.css */
|
|
59
|
+
.boltdocs-progress-container {
|
|
60
|
+
position: fixed;
|
|
61
|
+
top: 0;
|
|
62
|
+
left: 0;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 2px;
|
|
65
|
+
z-index: 1000;
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
background: transparent;
|
|
68
|
+
}
|
|
69
|
+
.boltdocs-progress-bar {
|
|
70
|
+
height: 100%;
|
|
71
|
+
background:
|
|
72
|
+
linear-gradient(
|
|
73
|
+
90deg,
|
|
74
|
+
var(--ld-color-primary),
|
|
75
|
+
var(--ld-gradient-to, var(--ld-color-primary)));
|
|
76
|
+
box-shadow: 0 0 8px var(--ld-color-primary-glow);
|
|
77
|
+
transition: width 0.1s ease-out;
|
|
78
|
+
}
|
|
79
|
+
|
|
58
80
|
/* src/client/theme/styles/variables.css */
|
|
59
81
|
:root[data-theme=light],
|
|
60
82
|
:root.theme-light {
|
|
@@ -185,6 +207,23 @@
|
|
|
185
207
|
--ld-radius-md: 8px;
|
|
186
208
|
--ld-radius-lg: 12px;
|
|
187
209
|
--ld-radius-full: 9999px;
|
|
210
|
+
scrollbar-width: thin;
|
|
211
|
+
scrollbar-color: var(--ld-border-strong) transparent;
|
|
212
|
+
}
|
|
213
|
+
*::-webkit-scrollbar {
|
|
214
|
+
width: 6px;
|
|
215
|
+
height: 6px;
|
|
216
|
+
}
|
|
217
|
+
*::-webkit-scrollbar-track {
|
|
218
|
+
background: transparent;
|
|
219
|
+
}
|
|
220
|
+
*::-webkit-scrollbar-thumb {
|
|
221
|
+
background-color: var(--ld-border-strong);
|
|
222
|
+
border-radius: 20px;
|
|
223
|
+
border: transparent;
|
|
224
|
+
}
|
|
225
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
226
|
+
background-color: var(--ld-text-dim);
|
|
188
227
|
}
|
|
189
228
|
|
|
190
229
|
/* src/client/theme/ui/Layout/base.css */
|
|
@@ -476,11 +515,21 @@ a {
|
|
|
476
515
|
height: 18px;
|
|
477
516
|
}
|
|
478
517
|
.boltdocs-tabs-container {
|
|
479
|
-
|
|
518
|
+
position: relative;
|
|
480
519
|
background: var(--ld-navbar-bg);
|
|
481
520
|
padding: 0;
|
|
482
521
|
height: 46px;
|
|
483
522
|
}
|
|
523
|
+
.boltdocs-tabs-container::after {
|
|
524
|
+
content: "";
|
|
525
|
+
position: absolute;
|
|
526
|
+
bottom: 0px;
|
|
527
|
+
left: 0;
|
|
528
|
+
right: 0;
|
|
529
|
+
height: 1px;
|
|
530
|
+
background: var(--ld-border-subtle);
|
|
531
|
+
z-index: 10;
|
|
532
|
+
}
|
|
484
533
|
.boltdocs-tabs {
|
|
485
534
|
max-width: 1440px;
|
|
486
535
|
margin: 0 auto;
|
|
@@ -489,6 +538,8 @@ a {
|
|
|
489
538
|
overflow-x: auto;
|
|
490
539
|
scrollbar-width: none;
|
|
491
540
|
padding: 0 1.5rem;
|
|
541
|
+
position: relative;
|
|
542
|
+
height: 100%;
|
|
492
543
|
}
|
|
493
544
|
.boltdocs-tabs::-webkit-scrollbar {
|
|
494
545
|
display: none;
|
|
@@ -507,6 +558,7 @@ a {
|
|
|
507
558
|
align-items: center;
|
|
508
559
|
gap: 0.6rem;
|
|
509
560
|
opacity: 0.7;
|
|
561
|
+
z-index: 20;
|
|
510
562
|
}
|
|
511
563
|
.boltdocs-tab-item:hover {
|
|
512
564
|
color: var(--ld-text-main);
|
|
@@ -534,24 +586,21 @@ a {
|
|
|
534
586
|
opacity: 1;
|
|
535
587
|
text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
|
|
536
588
|
}
|
|
537
|
-
.boltdocs-tab-
|
|
538
|
-
content: "";
|
|
589
|
+
.boltdocs-tab-indicator {
|
|
539
590
|
position: absolute;
|
|
540
591
|
bottom: 0px;
|
|
541
592
|
left: 0;
|
|
542
|
-
right: 0;
|
|
543
593
|
height: 3px;
|
|
544
|
-
background: var(--ld-primary);
|
|
594
|
+
background: var(--ld-color-primary);
|
|
545
595
|
border-radius: 2px 2px 0 0;
|
|
546
|
-
box-shadow: 0
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
transform: scaleX(1);
|
|
596
|
+
box-shadow: 0 -2px 15px var(--ld-color-primary-glow);
|
|
597
|
+
transition:
|
|
598
|
+
transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
|
|
599
|
+
width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
|
|
600
|
+
opacity 0.3s ease;
|
|
601
|
+
z-index: 100;
|
|
602
|
+
pointer-events: none;
|
|
603
|
+
transform-origin: left;
|
|
555
604
|
}
|
|
556
605
|
|
|
557
606
|
/* src/client/theme/ui/Sidebar/sidebar.css */
|
|
@@ -1837,7 +1886,12 @@ a {
|
|
|
1837
1886
|
border-radius: var(--ld-radius-lg);
|
|
1838
1887
|
overflow: hidden;
|
|
1839
1888
|
background: var(--ld-bg-soft);
|
|
1889
|
+
display: flex;
|
|
1890
|
+
flex-direction: column;
|
|
1891
|
+
}
|
|
1892
|
+
.ld-table-wrapper {
|
|
1840
1893
|
overflow-x: auto;
|
|
1894
|
+
scrollbar-width: thin;
|
|
1841
1895
|
}
|
|
1842
1896
|
.ld-table {
|
|
1843
1897
|
width: 100%;
|
|
@@ -1857,6 +1911,30 @@ a {
|
|
|
1857
1911
|
font-size: 0.8125rem;
|
|
1858
1912
|
text-transform: uppercase;
|
|
1859
1913
|
letter-spacing: 0.04em;
|
|
1914
|
+
white-space: nowrap;
|
|
1915
|
+
}
|
|
1916
|
+
.ld-table-header--sortable {
|
|
1917
|
+
cursor: pointer;
|
|
1918
|
+
transition: background-color 0.2s;
|
|
1919
|
+
}
|
|
1920
|
+
.ld-table-header--sortable:hover {
|
|
1921
|
+
background-color: var(--ld-bg-soft);
|
|
1922
|
+
}
|
|
1923
|
+
.ld-table-header-content {
|
|
1924
|
+
display: flex;
|
|
1925
|
+
align-items: center;
|
|
1926
|
+
gap: 0.5rem;
|
|
1927
|
+
}
|
|
1928
|
+
.ld-table-sort-icon {
|
|
1929
|
+
opacity: 0.8;
|
|
1930
|
+
color: var(--ld-color-primary);
|
|
1931
|
+
transition: opacity 0.2s;
|
|
1932
|
+
}
|
|
1933
|
+
.ld-table-sort-icon--hidden {
|
|
1934
|
+
opacity: 0;
|
|
1935
|
+
}
|
|
1936
|
+
.ld-table-header--sortable:hover .ld-table-sort-icon--hidden {
|
|
1937
|
+
opacity: 0.3;
|
|
1860
1938
|
}
|
|
1861
1939
|
.ld-table td {
|
|
1862
1940
|
padding: 0.875rem 1rem;
|
|
@@ -1872,6 +1950,43 @@ a {
|
|
|
1872
1950
|
background: rgba(255, 255, 255, 0.05);
|
|
1873
1951
|
border-radius: 4px;
|
|
1874
1952
|
}
|
|
1953
|
+
.ld-table-pagination {
|
|
1954
|
+
display: flex;
|
|
1955
|
+
align-items: center;
|
|
1956
|
+
justify-content: space-between;
|
|
1957
|
+
padding: 0.75rem 1rem;
|
|
1958
|
+
background: var(--ld-bg-mute);
|
|
1959
|
+
border-top: 1px solid var(--ld-border-subtle);
|
|
1960
|
+
font-size: 0.75rem;
|
|
1961
|
+
color: var(--ld-text-dim);
|
|
1962
|
+
}
|
|
1963
|
+
.ld-table-pagination-controls {
|
|
1964
|
+
display: flex;
|
|
1965
|
+
align-items: center;
|
|
1966
|
+
gap: 0.25rem;
|
|
1967
|
+
}
|
|
1968
|
+
.ld-table-pagination-btn {
|
|
1969
|
+
display: flex;
|
|
1970
|
+
align-items: center;
|
|
1971
|
+
justify-content: center;
|
|
1972
|
+
width: 1.75rem;
|
|
1973
|
+
height: 1.75rem;
|
|
1974
|
+
border-radius: var(--ld-radius-md);
|
|
1975
|
+
border: 1px solid var(--ld-border-subtle);
|
|
1976
|
+
background: var(--ld-bg-soft);
|
|
1977
|
+
color: var(--ld-text-muted);
|
|
1978
|
+
cursor: pointer;
|
|
1979
|
+
transition: all 0.2s;
|
|
1980
|
+
}
|
|
1981
|
+
.ld-table-pagination-btn:hover:not(:disabled) {
|
|
1982
|
+
background: var(--ld-bg-mute);
|
|
1983
|
+
color: var(--ld-text-main);
|
|
1984
|
+
border-color: var(--ld-border-strong);
|
|
1985
|
+
}
|
|
1986
|
+
.ld-table-pagination-btn:disabled {
|
|
1987
|
+
opacity: 0.4;
|
|
1988
|
+
cursor: not-allowed;
|
|
1989
|
+
}
|
|
1875
1990
|
|
|
1876
1991
|
/* src/client/theme/components/PackageManagerTabs/pkg-tabs.css */
|
|
1877
1992
|
.pkg-tabs-wrapper {
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as BoltdocsConfig } from '../config-D68h41CA.mjs';
|
|
2
2
|
export { a as BoltdocsThemeConfig } from '../config-D68h41CA.mjs';
|
|
3
|
-
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-
|
|
3
|
+
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-BbceAHA0.mjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import 'vite';
|
|
@@ -349,12 +349,10 @@ interface TableProps {
|
|
|
349
349
|
data?: (string | React.ReactNode)[][];
|
|
350
350
|
children?: React.ReactNode;
|
|
351
351
|
className?: string;
|
|
352
|
+
sortable?: boolean;
|
|
353
|
+
paginated?: boolean;
|
|
354
|
+
pageSize?: number;
|
|
352
355
|
}
|
|
353
|
-
|
|
354
|
-
* A consistent, themed table component for documentation.
|
|
355
|
-
* Can be used by passing structured 'headers' and 'data' props,
|
|
356
|
-
* or by wrapping standard <thead>/<tbody> elements.
|
|
357
|
-
*/
|
|
358
|
-
declare function Table({ headers, data, children, className, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
356
|
+
declare function Table({ headers, data, children, className, sortable, paginated, pageSize, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
359
357
|
|
|
360
358
|
export { Admonition, type AdmonitionProps, BackgroundGradient, Badge, type BadgeProps, BoltdocsConfig, Breadcrumbs, Button, type ButtonProps, Card, type CardProps, Cards, type CardsProps, CodeBlock, ComponentRoute, CreateBoltdocsAppOptions, Danger, FileTree, type FileTreeProps, Head, InfoBox, List, type ListProps, Loading, Navbar, NotFound, Note, OnThisPage, Playground, Sidebar, Tab, type TabProps, Table, type TableProps, Tabs, type TabsProps, ThemeLayout, Tip, Video, Warning, createBoltdocsApp };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as BoltdocsConfig } from '../config-D68h41CA.js';
|
|
2
2
|
export { a as BoltdocsThemeConfig } from '../config-D68h41CA.js';
|
|
3
|
-
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-
|
|
3
|
+
import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-BbceAHA0.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import 'vite';
|
|
@@ -349,12 +349,10 @@ interface TableProps {
|
|
|
349
349
|
data?: (string | React.ReactNode)[][];
|
|
350
350
|
children?: React.ReactNode;
|
|
351
351
|
className?: string;
|
|
352
|
+
sortable?: boolean;
|
|
353
|
+
paginated?: boolean;
|
|
354
|
+
pageSize?: number;
|
|
352
355
|
}
|
|
353
|
-
|
|
354
|
-
* A consistent, themed table component for documentation.
|
|
355
|
-
* Can be used by passing structured 'headers' and 'data' props,
|
|
356
|
-
* or by wrapping standard <thead>/<tbody> elements.
|
|
357
|
-
*/
|
|
358
|
-
declare function Table({ headers, data, children, className, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
356
|
+
declare function Table({ headers, data, children, className, sortable, paginated, pageSize, }: TableProps): react_jsx_runtime.JSX.Element;
|
|
359
357
|
|
|
360
358
|
export { Admonition, type AdmonitionProps, BackgroundGradient, Badge, type BadgeProps, BoltdocsConfig, Breadcrumbs, Button, type ButtonProps, Card, type CardProps, Cards, type CardsProps, CodeBlock, ComponentRoute, CreateBoltdocsAppOptions, Danger, FileTree, type FileTreeProps, Head, InfoBox, List, type ListProps, Loading, Navbar, NotFound, Note, OnThisPage, Playground, Sidebar, Tab, type TabProps, Table, type TableProps, Tabs, type TabsProps, ThemeLayout, Tip, Video, Warning, createBoltdocsApp };
|