@docubook/create 1.16.1 → 2.0.0-beta.2
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/package.json +1 -1
- package/src/dist/app/docs/[[...slug]]/page.tsx +22 -11
- package/src/dist/app/layout.tsx +3 -0
- package/src/dist/app/page.tsx +6 -6
- package/src/dist/components/SearchModal.tsx +41 -37
- package/src/dist/components/context-popover.tsx +3 -2
- package/src/dist/components/contexts/theme-provider.tsx +1 -2
- package/src/dist/components/leftbar.tsx +1 -1
- package/src/dist/components/markdown/AccordionMdx.tsx +6 -6
- package/src/dist/components/markdown/CardGroupMdx.tsx +10 -2
- package/src/dist/components/markdown/CopyMdx.tsx +1 -1
- package/src/dist/components/markdown/FileTreeMdx.tsx +2 -2
- package/src/dist/components/markdown/ImageMdx.tsx +122 -18
- package/src/dist/components/markdown/NoteMdx.tsx +46 -29
- package/src/dist/components/markdown/PreMdx.tsx +1 -1
- package/src/dist/components/mob-toc.tsx +1 -1
- package/src/dist/components/scroll-to-top.tsx +1 -0
- package/src/dist/components/sublink.tsx +2 -1
- package/src/dist/components/theme-toggle.tsx +38 -37
- package/src/dist/components/ui/tabs.tsx +1 -1
- package/src/dist/eslint.config.mjs +35 -0
- package/src/dist/hooks/useScrollPosition.ts +6 -5
- package/src/dist/package.json +44 -39
- package/src/dist/postcss.config.js +1 -1
- package/src/dist/styles/globals.css +230 -111
- package/src/dist/tailwind.config.ts +107 -105
- package/src/dist/tsconfig.json +21 -6
- package/src/dist/components/ui/icon-cloud.tsx +0 -324
|
@@ -1,69 +1,189 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@plugin '@tailwindcss/typography';
|
|
3
3
|
|
|
4
|
-
@tailwind base;
|
|
5
|
-
@tailwind components;
|
|
6
|
-
@tailwind utilities;
|
|
7
4
|
|
|
8
|
-
@
|
|
9
|
-
|
|
10
|
-
@
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
5
|
+
@custom-variant dark (&:is(.dark *));
|
|
6
|
+
|
|
7
|
+
@utility container {
|
|
8
|
+
margin-inline: auto;
|
|
9
|
+
padding-inline: 2rem;
|
|
10
|
+
|
|
11
|
+
@media (width >=--theme(--breakpoint-sm)) {
|
|
12
|
+
max-width: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (width >=1440px) {
|
|
16
|
+
max-width: 1440px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@theme {
|
|
21
|
+
--color-border: hsl(var(--border));
|
|
22
|
+
--color-input: hsl(var(--input));
|
|
23
|
+
--color-ring: hsl(var(--ring));
|
|
24
|
+
--color-background: hsl(var(--background));
|
|
25
|
+
--color-foreground: hsl(var(--foreground));
|
|
26
|
+
|
|
27
|
+
--color-primary: hsl(var(--primary));
|
|
28
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
29
|
+
|
|
30
|
+
--color-secondary: hsl(var(--secondary));
|
|
31
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
32
|
+
|
|
33
|
+
--color-destructive: hsl(var(--destructive));
|
|
34
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
35
|
+
|
|
36
|
+
--color-muted: hsl(var(--muted));
|
|
37
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
38
|
+
|
|
39
|
+
--color-accent: hsl(var(--accent));
|
|
40
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
41
|
+
|
|
42
|
+
--color-popover: hsl(var(--popover));
|
|
43
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
44
|
+
|
|
45
|
+
--color-card: hsl(var(--card));
|
|
46
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
47
|
+
|
|
48
|
+
--color-sidebar: hsl(var(--sidebar-background));
|
|
49
|
+
--color-sidebar-foreground: hsl(var(--sidebar-foreground));
|
|
50
|
+
--color-sidebar-primary: hsl(var(--sidebar-primary));
|
|
51
|
+
--color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
|
|
52
|
+
--color-sidebar-accent: hsl(var(--sidebar-accent));
|
|
53
|
+
--color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
|
|
54
|
+
--color-sidebar-border: hsl(var(--sidebar-border));
|
|
55
|
+
--color-sidebar-ring: hsl(var(--sidebar-ring));
|
|
56
|
+
|
|
57
|
+
--radius-lg: var(--radius);
|
|
58
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
59
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
60
|
+
|
|
61
|
+
--font-code: var(--font-geist-mono);
|
|
62
|
+
--font-regular: var(--font-geist-sans);
|
|
63
|
+
|
|
64
|
+
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
65
|
+
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
66
|
+
--animate-shiny-text: shiny-text 8s infinite;
|
|
67
|
+
|
|
68
|
+
@keyframes accordion-down {
|
|
69
|
+
from {
|
|
70
|
+
height: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
to {
|
|
74
|
+
height: var(--radix-accordion-content-height);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@keyframes accordion-up {
|
|
79
|
+
from {
|
|
80
|
+
height: var(--radix-accordion-content-height);
|
|
38
81
|
}
|
|
39
82
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
--foreground: 210 30% 96%;
|
|
43
|
-
--card: 220 25% 15%;
|
|
44
|
-
--card-foreground: 210 30% 96%;
|
|
45
|
-
--popover: 220 25% 15%;
|
|
46
|
-
--popover-foreground: 210 30% 96%;
|
|
47
|
-
--primary: 210 100% 65%;
|
|
48
|
-
--primary-foreground: 220 25% 10%;
|
|
49
|
-
--secondary: 215 25% 20%;
|
|
50
|
-
--secondary-foreground: 210 30% 96%;
|
|
51
|
-
--muted: 215 20% 25%;
|
|
52
|
-
--muted-foreground: 215 20% 65%;
|
|
53
|
-
--accent: 200 100% 60%;
|
|
54
|
-
--accent-foreground: 0 0% 100%;
|
|
55
|
-
--destructive: 0 85% 70%;
|
|
56
|
-
--destructive-foreground: 0 0% 100%;
|
|
57
|
-
--border: 215 20% 25%;
|
|
58
|
-
--input: 215 20% 25%;
|
|
59
|
-
--ring: 210 100% 65%;
|
|
60
|
-
--chart-1: 210 100% 65%;
|
|
61
|
-
--chart-2: 200 100% 60%;
|
|
62
|
-
--chart-3: 220 90% 70%;
|
|
63
|
-
--chart-4: 190 100% 65%;
|
|
64
|
-
--chart-5: 230 90% 60%;
|
|
65
|
-
--line-number-color: rgba(255, 255, 255, 0.1);
|
|
83
|
+
to {
|
|
84
|
+
height: 0;
|
|
66
85
|
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes shiny-text {
|
|
89
|
+
|
|
90
|
+
0%,
|
|
91
|
+
90%,
|
|
92
|
+
100% {
|
|
93
|
+
background-position: calc(-100% - var(--shiny-width)) 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
30%,
|
|
97
|
+
60% {
|
|
98
|
+
background-position: calc(100% + var(--shiny-width)) 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/*
|
|
104
|
+
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
105
|
+
so we've added these compatibility styles to make sure everything still
|
|
106
|
+
looks the same as it did with Tailwind CSS v3.
|
|
107
|
+
|
|
108
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
109
|
+
color utility to any element that depends on these defaults.
|
|
110
|
+
*/
|
|
111
|
+
@layer base {
|
|
112
|
+
|
|
113
|
+
*,
|
|
114
|
+
::after,
|
|
115
|
+
::before,
|
|
116
|
+
::backdrop,
|
|
117
|
+
::file-selector-button {
|
|
118
|
+
border-color: var(--color-gray-200, currentcolor);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@utility animate-shine {
|
|
123
|
+
--animate-shine: shine var(--duration) infinite linear;
|
|
124
|
+
animation: var(--animate-shine);
|
|
125
|
+
background-size: 200% 200%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Modern Blue Theme */
|
|
129
|
+
@layer base {
|
|
130
|
+
:root {
|
|
131
|
+
--background: 210 40% 98%;
|
|
132
|
+
--foreground: 220 30% 15%;
|
|
133
|
+
--card: 0 0% 100%;
|
|
134
|
+
--card-foreground: 220 30% 15%;
|
|
135
|
+
--popover: 0 0% 100%;
|
|
136
|
+
--popover-foreground: 220 30% 15%;
|
|
137
|
+
--primary: 210 81% 56%;
|
|
138
|
+
/* #2281E3 */
|
|
139
|
+
--primary-foreground: 0 0% 100%;
|
|
140
|
+
--secondary: 210 30% 90%;
|
|
141
|
+
--secondary-foreground: 220 30% 15%;
|
|
142
|
+
--muted: 210 20% 92%;
|
|
143
|
+
--muted-foreground: 220 15% 50%;
|
|
144
|
+
--accent: 200 100% 40%;
|
|
145
|
+
--accent-foreground: 0 0% 100%;
|
|
146
|
+
--destructive: 0 85% 60%;
|
|
147
|
+
--destructive-foreground: 0 0% 100%;
|
|
148
|
+
--border: 210 20% 85%;
|
|
149
|
+
--input: 210 20% 85%;
|
|
150
|
+
--ring: 210 81% 56%;
|
|
151
|
+
--radius: 0.5rem;
|
|
152
|
+
--chart-1: 210 81% 56%;
|
|
153
|
+
--chart-2: 200 100% 40%;
|
|
154
|
+
--chart-3: 220 76% 60%;
|
|
155
|
+
--chart-4: 190 90% 50%;
|
|
156
|
+
--chart-5: 230 86% 45%;
|
|
157
|
+
--line-number-color: rgba(0, 0, 0, 0.05);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dark {
|
|
161
|
+
--background: 220 25% 10%;
|
|
162
|
+
--foreground: 210 30% 96%;
|
|
163
|
+
--card: 220 25% 15%;
|
|
164
|
+
--card-foreground: 210 30% 96%;
|
|
165
|
+
--popover: 220 25% 15%;
|
|
166
|
+
--popover-foreground: 210 30% 96%;
|
|
167
|
+
--primary: 210 100% 65%;
|
|
168
|
+
--primary-foreground: 220 25% 10%;
|
|
169
|
+
--secondary: 215 25% 20%;
|
|
170
|
+
--secondary-foreground: 210 30% 96%;
|
|
171
|
+
--muted: 215 20% 25%;
|
|
172
|
+
--muted-foreground: 215 20% 65%;
|
|
173
|
+
--accent: 200 100% 60%;
|
|
174
|
+
--accent-foreground: 0 0% 100%;
|
|
175
|
+
--destructive: 0 85% 70%;
|
|
176
|
+
--destructive-foreground: 0 0% 100%;
|
|
177
|
+
--border: 215 20% 25%;
|
|
178
|
+
--input: 215 20% 25%;
|
|
179
|
+
--ring: 210 100% 65%;
|
|
180
|
+
--chart-1: 210 100% 65%;
|
|
181
|
+
--chart-2: 200 100% 60%;
|
|
182
|
+
--chart-3: 220 90% 70%;
|
|
183
|
+
--chart-4: 190 100% 65%;
|
|
184
|
+
--chart-5: 230 90% 60%;
|
|
185
|
+
--line-number-color: rgba(255, 255, 255, 0.1);
|
|
186
|
+
}
|
|
67
187
|
}
|
|
68
188
|
|
|
69
189
|
@layer base {
|
|
@@ -76,67 +196,66 @@
|
|
|
76
196
|
}
|
|
77
197
|
}
|
|
78
198
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
199
|
+
@layer utilities {
|
|
200
|
+
.prose {
|
|
201
|
+
margin: 0 !important;
|
|
202
|
+
}
|
|
82
203
|
|
|
83
|
-
pre {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
204
|
+
pre {
|
|
205
|
+
padding: 2px 0 !important;
|
|
206
|
+
width: inherit !important;
|
|
207
|
+
overflow-x: auto;
|
|
208
|
+
}
|
|
88
209
|
|
|
89
|
-
pre>code {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
210
|
+
pre>code {
|
|
211
|
+
display: grid;
|
|
212
|
+
max-width: inherit !important;
|
|
213
|
+
padding: 14px 0 !important;
|
|
214
|
+
border: 0 !important;
|
|
215
|
+
}
|
|
95
216
|
|
|
96
|
-
.code-line {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
217
|
+
.code-line {
|
|
218
|
+
padding: 0.75px 16px;
|
|
219
|
+
@apply border-l-2 border-transparent;
|
|
220
|
+
}
|
|
100
221
|
|
|
101
|
-
.line-number::before {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
222
|
+
.line-number::before {
|
|
223
|
+
display: inline-block;
|
|
224
|
+
width: 1rem;
|
|
225
|
+
margin-right: 22px;
|
|
226
|
+
margin-left: -2px;
|
|
227
|
+
color: rgb(110, 110, 110);
|
|
228
|
+
content: attr(line);
|
|
229
|
+
font-size: 13.5px;
|
|
230
|
+
text-align: right;
|
|
231
|
+
}
|
|
111
232
|
|
|
112
|
-
.highlight-line {
|
|
113
|
-
|
|
114
|
-
}
|
|
233
|
+
.highlight-line {
|
|
234
|
+
@apply bg-primary/5 border-l-2 border-primary/30;
|
|
235
|
+
}
|
|
115
236
|
|
|
116
|
-
.rehype-code-title {
|
|
117
|
-
|
|
118
|
-
}
|
|
237
|
+
.rehype-code-title {
|
|
238
|
+
@apply px-2 -mb-8 w-full text-sm pb-5 font-medium mt-5 font-code;
|
|
239
|
+
}
|
|
119
240
|
|
|
120
|
-
.highlight-comp>code {
|
|
121
|
-
|
|
241
|
+
.highlight-comp>code {
|
|
242
|
+
background-color: transparent !important;
|
|
243
|
+
}
|
|
122
244
|
}
|
|
123
245
|
|
|
124
246
|
@layer utilities {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
background-
|
|
247
|
+
|
|
248
|
+
@keyframes shine {
|
|
249
|
+
0% {
|
|
250
|
+
background-position: 0% 0%;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
50% {
|
|
254
|
+
background-position: 100% 100%;
|
|
129
255
|
}
|
|
130
256
|
|
|
131
|
-
|
|
132
|
-
0%
|
|
133
|
-
background-position: 0% 0%;
|
|
134
|
-
}
|
|
135
|
-
50% {
|
|
136
|
-
background-position: 100% 100%;
|
|
137
|
-
}
|
|
138
|
-
100% {
|
|
139
|
-
background-position: 0% 0%;
|
|
140
|
-
}
|
|
257
|
+
100% {
|
|
258
|
+
background-position: 0% 0%;
|
|
141
259
|
}
|
|
142
260
|
}
|
|
261
|
+
}
|
|
@@ -1,111 +1,113 @@
|
|
|
1
1
|
import type { Config } from "tailwindcss";
|
|
2
|
+
import tailwindAnimate from "tailwindcss-animate";
|
|
3
|
+
import typography from "@tailwindcss/typography";
|
|
2
4
|
|
|
3
5
|
const config = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
6
|
+
darkMode: "class",
|
|
7
|
+
content: [
|
|
8
|
+
"./pages/**/*.{ts,tsx}",
|
|
9
|
+
"./components/**/*.{ts,tsx}",
|
|
10
|
+
"./app/**/*.{ts,tsx}",
|
|
11
|
+
"./src/**/*.{ts,tsx}",
|
|
12
|
+
],
|
|
13
|
+
prefix: "",
|
|
14
|
+
theme: {
|
|
15
|
+
container: {
|
|
16
|
+
center: true,
|
|
17
|
+
padding: '2rem',
|
|
18
|
+
screens: {
|
|
19
|
+
'2xl': '1440px'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
extend: {
|
|
23
|
+
colors: {
|
|
24
|
+
border: 'hsl(var(--border))',
|
|
25
|
+
input: 'hsl(var(--input))',
|
|
26
|
+
ring: 'hsl(var(--ring))',
|
|
27
|
+
background: 'hsl(var(--background))',
|
|
28
|
+
foreground: 'hsl(var(--foreground))',
|
|
29
|
+
primary: {
|
|
30
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
31
|
+
foreground: 'hsl(var(--primary-foreground))'
|
|
32
|
+
},
|
|
33
|
+
secondary: {
|
|
34
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
35
|
+
foreground: 'hsl(var(--secondary-foreground))'
|
|
36
|
+
},
|
|
37
|
+
destructive: {
|
|
38
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
39
|
+
foreground: 'hsl(var(--destructive-foreground))'
|
|
40
|
+
},
|
|
41
|
+
muted: {
|
|
42
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
43
|
+
foreground: 'hsl(var(--muted-foreground))'
|
|
44
|
+
},
|
|
45
|
+
accent: {
|
|
46
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
47
|
+
foreground: 'hsl(var(--accent-foreground))'
|
|
48
|
+
},
|
|
49
|
+
popover: {
|
|
50
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
51
|
+
foreground: 'hsl(var(--popover-foreground))'
|
|
52
|
+
},
|
|
53
|
+
card: {
|
|
54
|
+
DEFAULT: 'hsl(var(--card))',
|
|
55
|
+
foreground: 'hsl(var(--card-foreground))'
|
|
56
|
+
},
|
|
57
|
+
sidebar: {
|
|
58
|
+
DEFAULT: 'hsl(var(--sidebar-background))',
|
|
59
|
+
foreground: 'hsl(var(--sidebar-foreground))',
|
|
60
|
+
primary: 'hsl(var(--sidebar-primary))',
|
|
61
|
+
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
|
|
62
|
+
accent: 'hsl(var(--sidebar-accent))',
|
|
63
|
+
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
|
|
64
|
+
border: 'hsl(var(--sidebar-border))',
|
|
65
|
+
ring: 'hsl(var(--sidebar-ring))'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
borderRadius: {
|
|
69
|
+
lg: 'var(--radius)',
|
|
70
|
+
md: 'calc(var(--radius) - 2px)',
|
|
71
|
+
sm: 'calc(var(--radius) - 4px)'
|
|
72
|
+
},
|
|
73
|
+
fontFamily: {
|
|
74
|
+
code: ["var(--font-geist-mono)"],
|
|
75
|
+
regular: ["var(--font-geist-sans)"]
|
|
76
|
+
},
|
|
77
|
+
keyframes: {
|
|
78
|
+
'accordion-down': {
|
|
79
|
+
from: {
|
|
80
|
+
height: '0'
|
|
81
|
+
},
|
|
82
|
+
to: {
|
|
83
|
+
height: 'var(--radix-accordion-content-height)'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
'accordion-up': {
|
|
87
|
+
from: {
|
|
88
|
+
height: 'var(--radix-accordion-content-height)'
|
|
89
|
+
},
|
|
90
|
+
to: {
|
|
91
|
+
height: '0'
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
'shiny-text': {
|
|
95
|
+
'0%, 90%, 100%': {
|
|
96
|
+
'background-position': 'calc(-100% - var(--shiny-width)) 0'
|
|
97
|
+
},
|
|
98
|
+
'30%, 60%': {
|
|
99
|
+
'background-position': 'calc(100% + var(--shiny-width)) 0'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
animation: {
|
|
104
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
105
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
106
|
+
'shiny-text': 'shiny-text 8s infinite'
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
plugins: [tailwindAnimate, typography],
|
|
109
111
|
} satisfies Config;
|
|
110
112
|
|
|
111
113
|
export default config;
|
package/src/dist/tsconfig.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"lib": [
|
|
3
|
+
"lib": [
|
|
4
|
+
"dom",
|
|
5
|
+
"dom.iterable",
|
|
6
|
+
"esnext"
|
|
7
|
+
],
|
|
4
8
|
"allowJs": true,
|
|
5
9
|
"skipLibCheck": true,
|
|
6
10
|
"strict": true,
|
|
@@ -10,7 +14,7 @@
|
|
|
10
14
|
"moduleResolution": "bundler",
|
|
11
15
|
"resolveJsonModule": true,
|
|
12
16
|
"isolatedModules": true,
|
|
13
|
-
"jsx": "
|
|
17
|
+
"jsx": "react-jsx",
|
|
14
18
|
"incremental": true,
|
|
15
19
|
"plugins": [
|
|
16
20
|
{
|
|
@@ -18,9 +22,20 @@
|
|
|
18
22
|
}
|
|
19
23
|
],
|
|
20
24
|
"paths": {
|
|
21
|
-
"@/*": [
|
|
22
|
-
|
|
25
|
+
"@/*": [
|
|
26
|
+
"./*"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"target": "ES2017"
|
|
23
30
|
},
|
|
24
|
-
"include": [
|
|
25
|
-
|
|
31
|
+
"include": [
|
|
32
|
+
"next-env.d.ts",
|
|
33
|
+
"**/*.ts",
|
|
34
|
+
"**/*.tsx",
|
|
35
|
+
".next/types/**/*.ts",
|
|
36
|
+
".next/dev/types/**/*.ts"
|
|
37
|
+
],
|
|
38
|
+
"exclude": [
|
|
39
|
+
"node_modules"
|
|
40
|
+
]
|
|
26
41
|
}
|