@docubook/markdown 2.0.0-beta.1 → 2.0.0-beta.3
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/components/AccordionMdx.d.ts +10 -0
- package/dist/components/AccordionsMdx.d.ts +6 -0
- package/dist/components/Callout.d.ts +12 -0
- package/dist/components/CardMdx.d.ts +16 -0
- package/dist/components/CardsMdx.d.ts +8 -0
- package/dist/components/CodeBlockMdx.d.ts +10 -0
- package/dist/components/ImageMdx.d.ts +7 -0
- package/dist/components/LinkMdx.d.ts +3 -0
- package/dist/components/MermaidMdx.d.ts +10 -0
- package/dist/components/StepperMdx.d.ts +16 -0
- package/dist/components/TableMdx.d.ts +8 -0
- package/dist/components/TabsMdx.d.ts +12 -0
- package/dist/components/TooltipMdx.d.ts +14 -0
- package/dist/components/TreeMdx.d.ts +8 -0
- package/dist/components/YoutubeMdx.d.ts +6 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.js +41707 -2275
- package/dist/index.js.map +1 -1
- package/dist/registry/index.d.ts +3 -0
- package/dist/utils/AccordionGroupContext.d.ts +7 -0
- package/dist/utils/CopyButton.d.ts +5 -0
- package/dist/utils/ExpandableCode.d.ts +10 -0
- package/dist/utils/Icon.d.ts +5 -0
- package/package.json +5 -5
- package/styles.css +10 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
type ExpandableCodeProps = {
|
|
3
|
+
isExpandable: boolean;
|
|
4
|
+
totalLines: number;
|
|
5
|
+
preContent: ReactNode;
|
|
6
|
+
preProps: Record<string, unknown>;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function ExpandableCode({ isExpandable, totalLines, preContent, preProps, className, }: ExpandableCodeProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docubook/markdown",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"description": "Portable MDX components and framework adapters for DocuBook",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react": ">=18",
|
|
44
44
|
"react-dom": ">=18",
|
|
45
45
|
"react-icons": "^5.0.0",
|
|
46
|
-
"@docubook/core": "^2.0.0-beta.
|
|
46
|
+
"@docubook/core": "^2.0.0-beta.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"react": "^19.2.7",
|
|
56
56
|
"react-dom": "^19.2.7",
|
|
57
57
|
"react-icons": "^5.0.0",
|
|
58
|
-
"
|
|
59
|
-
"typescript": "^
|
|
58
|
+
"vite": "^8.2.1",
|
|
59
|
+
"typescript": "^7.0.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
|
-
"build": "rm -rf dist tsconfig.tsbuildinfo &&
|
|
62
|
+
"build": "rm -rf dist tsconfig.tsbuildinfo && vite build && tsc -p tsconfig.build.json",
|
|
63
63
|
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
64
64
|
"test": "vitest run",
|
|
65
65
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
package/styles.css
CHANGED
|
@@ -39,13 +39,16 @@
|
|
|
39
39
|
.prose .contains-task-list {
|
|
40
40
|
list-style-type: none !important;
|
|
41
41
|
list-style: none !important;
|
|
42
|
+
/* Override both physical and logical padding from @tailwindcss/typography */
|
|
42
43
|
padding-left: 0 !important;
|
|
44
|
+
padding-inline-start: 0 !important;
|
|
43
45
|
margin-left: 0 !important;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.contains-task-list .contains-task-list,
|
|
47
49
|
.prose .contains-task-list .contains-task-list {
|
|
48
50
|
padding-left: 1.5rem !important;
|
|
51
|
+
padding-inline-start: 1.5rem !important;
|
|
49
52
|
margin-top: 0.25rem !important;
|
|
50
53
|
margin-bottom: 0.25rem !important;
|
|
51
54
|
}
|
|
@@ -55,13 +58,18 @@
|
|
|
55
58
|
list-style-type: none !important;
|
|
56
59
|
list-style: none !important;
|
|
57
60
|
padding-left: 0 !important;
|
|
61
|
+
padding-inline-start: 0 !important;
|
|
58
62
|
margin-top: 0.35rem;
|
|
59
63
|
margin-bottom: 0.35rem;
|
|
60
64
|
}
|
|
61
65
|
|
|
66
|
+
/* content:none hides ::marker (valid); display:none is ignored on ::marker */
|
|
62
67
|
.contains-task-list > .task-list-item::marker,
|
|
68
|
+
.prose .contains-task-list > .task-list-item::marker {
|
|
69
|
+
content: none !important;
|
|
70
|
+
}
|
|
71
|
+
/* ::before fallback for browsers that don't use ::marker */
|
|
63
72
|
.contains-task-list > .task-list-item::before,
|
|
64
|
-
.prose .contains-task-list > .task-list-item::marker,
|
|
65
73
|
.prose .contains-task-list > .task-list-item::before {
|
|
66
74
|
content: none !important;
|
|
67
75
|
display: none !important;
|
|
@@ -96,6 +104,7 @@
|
|
|
96
104
|
|
|
97
105
|
.task-list-item > input[type="checkbox"]:checked::after {
|
|
98
106
|
content: "";
|
|
107
|
+
display: block;
|
|
99
108
|
width: 0.3rem;
|
|
100
109
|
height: 0.55rem;
|
|
101
110
|
border-right: 2px solid hsl(var(--primary-foreground, 210 40% 98%));
|