@reslide-dev/core 0.0.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/index.d.mts +340 -0
- package/dist/index.mjs +1261 -0
- package/package.json +41 -0
- package/src/themes/dark.css +86 -0
- package/src/themes/default.css +86 -0
- package/src/themes/print.css +58 -0
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@reslide-dev/core",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Framework-agnostic React presentation components",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"src/themes"
|
|
9
|
+
],
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./dist/index.mjs",
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "vp pack",
|
|
17
|
+
"dev": "vp pack --watch",
|
|
18
|
+
"test": "vp test"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@mdx-js/mdx": "^3.1.1"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@testing-library/dom": "catalog:",
|
|
25
|
+
"@testing-library/react": "catalog:",
|
|
26
|
+
"@types/react": "^19",
|
|
27
|
+
"@types/react-dom": "^19",
|
|
28
|
+
"jsdom": "catalog:",
|
|
29
|
+
"react": "^19.1.0",
|
|
30
|
+
"react-dom": "^19.1.0",
|
|
31
|
+
"vite-plus": "catalog:",
|
|
32
|
+
"vitest": "catalog:"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": "^19.0.0",
|
|
36
|
+
"react-dom": "^19.0.0"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--slide-bg: #0f172a;
|
|
3
|
+
--slide-text: #e2e8f0;
|
|
4
|
+
--slide-accent: #60a5fa;
|
|
5
|
+
--slide-section-text: #ffffff;
|
|
6
|
+
|
|
7
|
+
--mark-yellow: #854d0e;
|
|
8
|
+
--mark-orange: #9a3412;
|
|
9
|
+
--mark-red: #991b1b;
|
|
10
|
+
--mark-blue: #1e40af;
|
|
11
|
+
--mark-green: #166534;
|
|
12
|
+
--mark-purple: #6b21a8;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.reslide-deck {
|
|
16
|
+
font-family:
|
|
17
|
+
"Inter",
|
|
18
|
+
system-ui,
|
|
19
|
+
-apple-system,
|
|
20
|
+
sans-serif;
|
|
21
|
+
line-height: 1.6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.reslide-slide h1 {
|
|
25
|
+
font-size: 2.5rem;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
margin-bottom: 1rem;
|
|
28
|
+
line-height: 1.2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.reslide-slide h2 {
|
|
32
|
+
font-size: 1.75rem;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
margin-bottom: 0.75rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.reslide-slide h3 {
|
|
38
|
+
font-size: 1.25rem;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
margin-bottom: 0.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.reslide-slide p {
|
|
44
|
+
margin-bottom: 0.75rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.reslide-slide ul,
|
|
48
|
+
.reslide-slide ol {
|
|
49
|
+
padding-left: 1.5rem;
|
|
50
|
+
margin-bottom: 0.75rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.reslide-slide li {
|
|
54
|
+
margin-bottom: 0.25rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.reslide-slide code {
|
|
58
|
+
background: #1e293b;
|
|
59
|
+
padding: 0.15em 0.4em;
|
|
60
|
+
border-radius: 0.25em;
|
|
61
|
+
font-size: 0.9em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.reslide-slide pre {
|
|
65
|
+
background: #020617;
|
|
66
|
+
color: #e2e8f0;
|
|
67
|
+
padding: 1.25rem;
|
|
68
|
+
border-radius: 0.5rem;
|
|
69
|
+
overflow-x: auto;
|
|
70
|
+
margin-bottom: 1rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.reslide-slide pre code {
|
|
74
|
+
background: none;
|
|
75
|
+
padding: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.reslide-slide a {
|
|
79
|
+
color: var(--slide-accent);
|
|
80
|
+
text-decoration: underline;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.reslide-slide img {
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
border-radius: 0.5rem;
|
|
86
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--slide-bg: #ffffff;
|
|
3
|
+
--slide-text: #1a1a2e;
|
|
4
|
+
--slide-accent: #3b82f6;
|
|
5
|
+
--slide-section-text: #ffffff;
|
|
6
|
+
|
|
7
|
+
--mark-yellow: #fef08a;
|
|
8
|
+
--mark-orange: #fed7aa;
|
|
9
|
+
--mark-red: #fecaca;
|
|
10
|
+
--mark-blue: #bfdbfe;
|
|
11
|
+
--mark-green: #bbf7d0;
|
|
12
|
+
--mark-purple: #e9d5ff;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.reslide-deck {
|
|
16
|
+
font-family:
|
|
17
|
+
"Inter",
|
|
18
|
+
system-ui,
|
|
19
|
+
-apple-system,
|
|
20
|
+
sans-serif;
|
|
21
|
+
line-height: 1.6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.reslide-slide h1 {
|
|
25
|
+
font-size: 2.5rem;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
margin-bottom: 1rem;
|
|
28
|
+
line-height: 1.2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.reslide-slide h2 {
|
|
32
|
+
font-size: 1.75rem;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
margin-bottom: 0.75rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.reslide-slide h3 {
|
|
38
|
+
font-size: 1.25rem;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
margin-bottom: 0.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.reslide-slide p {
|
|
44
|
+
margin-bottom: 0.75rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.reslide-slide ul,
|
|
48
|
+
.reslide-slide ol {
|
|
49
|
+
padding-left: 1.5rem;
|
|
50
|
+
margin-bottom: 0.75rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.reslide-slide li {
|
|
54
|
+
margin-bottom: 0.25rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.reslide-slide code {
|
|
58
|
+
background: #f1f5f9;
|
|
59
|
+
padding: 0.15em 0.4em;
|
|
60
|
+
border-radius: 0.25em;
|
|
61
|
+
font-size: 0.9em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.reslide-slide pre {
|
|
65
|
+
background: #1e293b;
|
|
66
|
+
color: #e2e8f0;
|
|
67
|
+
padding: 1.25rem;
|
|
68
|
+
border-radius: 0.5rem;
|
|
69
|
+
overflow-x: auto;
|
|
70
|
+
margin-bottom: 1rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.reslide-slide pre code {
|
|
74
|
+
background: none;
|
|
75
|
+
padding: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.reslide-slide a {
|
|
79
|
+
color: var(--slide-accent);
|
|
80
|
+
text-decoration: underline;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.reslide-slide img {
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
border-radius: 0.5rem;
|
|
86
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Print stylesheet for reslide presentations.
|
|
3
|
+
* Import this to enable Ctrl+P / Cmd+P PDF export.
|
|
4
|
+
*
|
|
5
|
+
* Usage: import '@reslide/core/themes/print.css'
|
|
6
|
+
*
|
|
7
|
+
* This renders all slides vertically for printing,
|
|
8
|
+
* each slide on its own page at 16:9 aspect ratio.
|
|
9
|
+
*/
|
|
10
|
+
@media print {
|
|
11
|
+
/* Reset the deck for print layout */
|
|
12
|
+
.reslide-deck {
|
|
13
|
+
width: auto !important;
|
|
14
|
+
height: auto !important;
|
|
15
|
+
overflow: visible !important;
|
|
16
|
+
position: static !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Show all slides stacked vertically */
|
|
20
|
+
.reslide-slide {
|
|
21
|
+
page-break-after: always;
|
|
22
|
+
page-break-inside: avoid;
|
|
23
|
+
width: 100vw !important;
|
|
24
|
+
height: 56.25vw !important; /* 16:9 aspect ratio */
|
|
25
|
+
max-height: 100vh;
|
|
26
|
+
position: relative !important;
|
|
27
|
+
overflow: hidden !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Remove the last page break */
|
|
31
|
+
.reslide-slide:last-child {
|
|
32
|
+
page-break-after: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Hide UI elements */
|
|
36
|
+
.reslide-slide-number,
|
|
37
|
+
.reslide-overview,
|
|
38
|
+
.reslide-notes,
|
|
39
|
+
canvas {
|
|
40
|
+
display: none !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Show all click content */
|
|
44
|
+
.reslide-click {
|
|
45
|
+
opacity: 1 !important;
|
|
46
|
+
visibility: visible !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Ensure transition container shows content */
|
|
50
|
+
.reslide-transition-container {
|
|
51
|
+
position: static !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.reslide-transition-slide {
|
|
55
|
+
position: static !important;
|
|
56
|
+
animation: none !important;
|
|
57
|
+
}
|
|
58
|
+
}
|