@cgi-learning-hub/ui 1.14.0-dev.1785507581 → 1.14.0-dev.1786115279
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.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{src-G-BmjM2S.js → src-Cthoqhel.js} +216 -216
- package/dist/tiptap/index.cjs.js +1 -1
- package/dist/tiptap/index.es.js +1 -1
- package/dist/tiptap/styles.css +673 -0
- package/package.json +6 -3
package/dist/tiptap/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-Dml93F6T.cjs");
|
|
3
3
|
let react = require("react");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
let _mui_material_styles = require("@mui/material/styles");
|
package/dist/tiptap/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as IconButton, It as Tooltip, Lt as Typography, Nt as ToggleButton, W as InputBase, Zt as DeleteRounded_default, et as Menu, hn as clsx, j as Divider, ln as SvgIcon_default, mt as Stack, ot as Popover, tt as MenuItem, u as Badge } from "../src-
|
|
1
|
+
import { H as IconButton, It as Tooltip, Lt as Typography, Nt as ToggleButton, W as InputBase, Zt as DeleteRounded_default, et as Menu, hn as clsx, j as Divider, ln as SvgIcon_default, mt as Stack, ot as Popover, tt as MenuItem, u as Badge } from "../src-Cthoqhel.js";
|
|
2
2
|
import { Fragment, forwardRef, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@keyframes fadeIn {
|
|
3
|
+
from {
|
|
4
|
+
opacity: 0;
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
@keyframes fadeOut {
|
|
11
|
+
from {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
@keyframes zoomIn {
|
|
19
|
+
from {
|
|
20
|
+
transform: scale(0.95);
|
|
21
|
+
}
|
|
22
|
+
to {
|
|
23
|
+
transform: scale(1);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@keyframes zoomOut {
|
|
27
|
+
from {
|
|
28
|
+
transform: scale(1);
|
|
29
|
+
}
|
|
30
|
+
to {
|
|
31
|
+
transform: scale(0.95);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
@keyframes zoom {
|
|
35
|
+
0% {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: scale(0.95);
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transform: scale(1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@keyframes slideFromTop {
|
|
45
|
+
from {
|
|
46
|
+
transform: translateY(-0.5rem);
|
|
47
|
+
}
|
|
48
|
+
to {
|
|
49
|
+
transform: translateY(0);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
@keyframes slideFromRight {
|
|
53
|
+
from {
|
|
54
|
+
transform: translateX(0.5rem);
|
|
55
|
+
}
|
|
56
|
+
to {
|
|
57
|
+
transform: translateX(0);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@keyframes slideFromLeft {
|
|
61
|
+
from {
|
|
62
|
+
transform: translateX(-0.5rem);
|
|
63
|
+
}
|
|
64
|
+
to {
|
|
65
|
+
transform: translateX(0);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@keyframes slideFromBottom {
|
|
69
|
+
from {
|
|
70
|
+
transform: translateY(0.5rem);
|
|
71
|
+
}
|
|
72
|
+
to {
|
|
73
|
+
transform: translateY(0);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@keyframes spin {
|
|
77
|
+
from {
|
|
78
|
+
transform: rotate(0deg);
|
|
79
|
+
}
|
|
80
|
+
to {
|
|
81
|
+
transform: rotate(360deg);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
:root {
|
|
85
|
+
/******************
|
|
86
|
+
Basics
|
|
87
|
+
******************/
|
|
88
|
+
overflow-wrap: break-word;
|
|
89
|
+
/* iOS WebKit only honors the -webkit- prefixed form */
|
|
90
|
+
-webkit-text-size-adjust: none;
|
|
91
|
+
text-size-adjust: none;
|
|
92
|
+
text-rendering: optimizeLegibility;
|
|
93
|
+
-webkit-font-smoothing: antialiased;
|
|
94
|
+
-moz-osx-font-smoothing: grayscale;
|
|
95
|
+
/******************
|
|
96
|
+
Colors variables
|
|
97
|
+
******************/
|
|
98
|
+
/* Gray alpha (light mode) */
|
|
99
|
+
--tt-gray-light-a-50: rgba(56, 56, 56, 0.04);
|
|
100
|
+
--tt-gray-light-a-100: rgba(15, 22, 36, 0.05);
|
|
101
|
+
--tt-gray-light-a-200: rgba(37, 39, 45, 0.1);
|
|
102
|
+
--tt-gray-light-a-300: rgba(47, 50, 55, 0.2);
|
|
103
|
+
--tt-gray-light-a-400: rgba(40, 44, 51, 0.42);
|
|
104
|
+
--tt-gray-light-a-500: rgba(52, 55, 60, 0.64);
|
|
105
|
+
--tt-gray-light-a-600: rgba(36, 39, 46, 0.78);
|
|
106
|
+
--tt-gray-light-a-700: rgba(35, 37, 42, 0.87);
|
|
107
|
+
--tt-gray-light-a-800: rgba(30, 32, 36, 0.95);
|
|
108
|
+
--tt-gray-light-a-900: rgba(29, 30, 32, 0.98);
|
|
109
|
+
/* Gray (light mode) */
|
|
110
|
+
--tt-gray-light-50: rgba(250, 250, 250, 1);
|
|
111
|
+
--tt-gray-light-100: rgba(244, 244, 245, 1);
|
|
112
|
+
--tt-gray-light-200: rgba(234, 234, 235, 1);
|
|
113
|
+
--tt-gray-light-300: rgba(213, 214, 215, 1);
|
|
114
|
+
--tt-gray-light-400: rgba(166, 167, 171, 1);
|
|
115
|
+
--tt-gray-light-500: rgba(125, 127, 130, 1);
|
|
116
|
+
--tt-gray-light-600: rgba(83, 86, 90, 1);
|
|
117
|
+
--tt-gray-light-700: rgba(64, 65, 69, 1);
|
|
118
|
+
--tt-gray-light-800: rgba(44, 45, 48, 1);
|
|
119
|
+
--tt-gray-light-900: rgba(34, 35, 37, 1);
|
|
120
|
+
/* Gray alpha (dark mode) */
|
|
121
|
+
--tt-gray-dark-a-50: rgba(232, 232, 253, 0.05);
|
|
122
|
+
--tt-gray-dark-a-100: rgba(231, 231, 243, 0.07);
|
|
123
|
+
--tt-gray-dark-a-200: rgba(238, 238, 246, 0.11);
|
|
124
|
+
--tt-gray-dark-a-300: rgba(239, 239, 245, 0.22);
|
|
125
|
+
--tt-gray-dark-a-400: rgba(244, 244, 255, 0.37);
|
|
126
|
+
--tt-gray-dark-a-500: rgba(236, 238, 253, 0.5);
|
|
127
|
+
--tt-gray-dark-a-600: rgba(247, 247, 253, 0.64);
|
|
128
|
+
--tt-gray-dark-a-700: rgba(251, 251, 254, 0.75);
|
|
129
|
+
--tt-gray-dark-a-800: rgba(253, 253, 253, 0.88);
|
|
130
|
+
--tt-gray-dark-a-900: rgba(255, 255, 255, 0.96);
|
|
131
|
+
/* Gray (dark mode) */
|
|
132
|
+
--tt-gray-dark-50: rgba(25, 25, 26, 1);
|
|
133
|
+
--tt-gray-dark-100: rgba(32, 32, 34, 1);
|
|
134
|
+
--tt-gray-dark-200: rgba(45, 45, 47, 1);
|
|
135
|
+
--tt-gray-dark-300: rgba(70, 70, 73, 1);
|
|
136
|
+
--tt-gray-dark-400: rgba(99, 99, 105, 1);
|
|
137
|
+
--tt-gray-dark-500: rgba(124, 124, 131, 1);
|
|
138
|
+
--tt-gray-dark-600: rgba(163, 163, 168, 1);
|
|
139
|
+
--tt-gray-dark-700: rgba(192, 192, 195, 1);
|
|
140
|
+
--tt-gray-dark-800: rgba(224, 224, 225, 1);
|
|
141
|
+
--tt-gray-dark-900: rgba(245, 245, 245, 1);
|
|
142
|
+
/* Brand colors */
|
|
143
|
+
--tt-brand-color-50: rgba(239, 238, 255, 1);
|
|
144
|
+
--tt-brand-color-100: rgba(222, 219, 255, 1);
|
|
145
|
+
--tt-brand-color-200: rgba(195, 189, 255, 1);
|
|
146
|
+
--tt-brand-color-300: rgba(157, 138, 255, 1);
|
|
147
|
+
--tt-brand-color-400: rgba(122, 82, 255, 1);
|
|
148
|
+
--tt-brand-color-500: rgba(98, 41, 255, 1);
|
|
149
|
+
--tt-brand-color-600: rgba(84, 0, 229, 1);
|
|
150
|
+
--tt-brand-color-700: rgba(75, 0, 204, 1);
|
|
151
|
+
--tt-brand-color-800: rgba(56, 0, 153, 1);
|
|
152
|
+
--tt-brand-color-900: rgba(43, 25, 102, 1);
|
|
153
|
+
--tt-brand-color-950: hsla(257, 100%, 9%, 1);
|
|
154
|
+
/* Green */
|
|
155
|
+
--tt-color-green-inc-5: hsla(129, 100%, 97%, 1);
|
|
156
|
+
--tt-color-green-inc-4: hsla(129, 100%, 92%, 1);
|
|
157
|
+
--tt-color-green-inc-3: hsla(131, 100%, 86%, 1);
|
|
158
|
+
--tt-color-green-inc-2: hsla(133, 98%, 78%, 1);
|
|
159
|
+
--tt-color-green-inc-1: hsla(137, 99%, 70%, 1);
|
|
160
|
+
--tt-color-green-base: hsla(147, 99%, 50%, 1);
|
|
161
|
+
--tt-color-green-dec-1: hsla(147, 97%, 41%, 1);
|
|
162
|
+
--tt-color-green-dec-2: hsla(146, 98%, 32%, 1);
|
|
163
|
+
--tt-color-green-dec-3: hsla(146, 100%, 24%, 1);
|
|
164
|
+
--tt-color-green-dec-4: hsla(144, 100%, 16%, 1);
|
|
165
|
+
--tt-color-green-dec-5: hsla(140, 100%, 9%, 1);
|
|
166
|
+
/* Yellow */
|
|
167
|
+
--tt-color-yellow-inc-5: hsla(50, 100%, 97%, 1);
|
|
168
|
+
--tt-color-yellow-inc-4: hsla(50, 100%, 91%, 1);
|
|
169
|
+
--tt-color-yellow-inc-3: hsla(50, 100%, 84%, 1);
|
|
170
|
+
--tt-color-yellow-inc-2: hsla(50, 100%, 77%, 1);
|
|
171
|
+
--tt-color-yellow-inc-1: hsla(50, 100%, 68%, 1);
|
|
172
|
+
--tt-color-yellow-base: hsla(52, 100%, 50%, 1);
|
|
173
|
+
--tt-color-yellow-dec-1: hsla(52, 100%, 41%, 1);
|
|
174
|
+
--tt-color-yellow-dec-2: hsla(52, 100%, 32%, 1);
|
|
175
|
+
--tt-color-yellow-dec-3: hsla(52, 100%, 24%, 1);
|
|
176
|
+
--tt-color-yellow-dec-4: hsla(51, 100%, 16%, 1);
|
|
177
|
+
--tt-color-yellow-dec-5: hsla(50, 100%, 9%, 1);
|
|
178
|
+
/* Red */
|
|
179
|
+
--tt-color-red-inc-5: hsla(11, 100%, 96%, 1);
|
|
180
|
+
--tt-color-red-inc-4: hsla(11, 100%, 88%, 1);
|
|
181
|
+
--tt-color-red-inc-3: hsla(10, 100%, 80%, 1);
|
|
182
|
+
--tt-color-red-inc-2: hsla(9, 100%, 73%, 1);
|
|
183
|
+
--tt-color-red-inc-1: hsla(7, 100%, 64%, 1);
|
|
184
|
+
--tt-color-red-base: hsla(7, 100%, 54%, 1);
|
|
185
|
+
--tt-color-red-dec-1: hsla(7, 100%, 41%, 1);
|
|
186
|
+
--tt-color-red-dec-2: hsla(5, 100%, 32%, 1);
|
|
187
|
+
--tt-color-red-dec-3: hsla(4, 100%, 24%, 1);
|
|
188
|
+
--tt-color-red-dec-4: hsla(3, 100%, 16%, 1);
|
|
189
|
+
--tt-color-red-dec-5: hsla(1, 100%, 9%, 1);
|
|
190
|
+
/* Basic colors */
|
|
191
|
+
--white: rgba(255, 255, 255, 1);
|
|
192
|
+
--black: rgba(14, 14, 17, 1);
|
|
193
|
+
--transparent: rgba(255, 255, 255, 0);
|
|
194
|
+
/******************
|
|
195
|
+
Shadow variables
|
|
196
|
+
******************/
|
|
197
|
+
/* Shadows Light */
|
|
198
|
+
--tt-shadow-elevated-md:
|
|
199
|
+
0px 16px 48px 0px rgba(17, 24, 39, 0.04),
|
|
200
|
+
0px 12px 24px 0px rgba(17, 24, 39, 0.04),
|
|
201
|
+
0px 6px 8px 0px rgba(17, 24, 39, 0.02),
|
|
202
|
+
0px 2px 3px 0px rgba(17, 24, 39, 0.02);
|
|
203
|
+
/**************************************************
|
|
204
|
+
Radius variables
|
|
205
|
+
**************************************************/
|
|
206
|
+
--tt-radius-xxs: 0.125rem; /* 2px */
|
|
207
|
+
--tt-radius-xs: 0.25rem; /* 4px */
|
|
208
|
+
--tt-radius-sm: 0.375rem; /* 6px */
|
|
209
|
+
--tt-radius-md: 0.5rem; /* 8px */
|
|
210
|
+
--tt-radius-lg: 0.75rem; /* 12px */
|
|
211
|
+
--tt-radius-xl: 1rem; /* 16px */
|
|
212
|
+
/**************************************************
|
|
213
|
+
Transition variables
|
|
214
|
+
**************************************************/
|
|
215
|
+
--tt-transition-duration-short: 0.1s;
|
|
216
|
+
--tt-transition-duration-default: 0.2s;
|
|
217
|
+
--tt-transition-duration-long: 0.64s;
|
|
218
|
+
--tt-transition-easing-default: cubic-bezier(0.46, 0.03, 0.52, 0.96);
|
|
219
|
+
--tt-transition-easing-cubic: cubic-bezier(0.65, 0.05, 0.36, 1);
|
|
220
|
+
--tt-transition-easing-quart: cubic-bezier(0.77, 0, 0.18, 1);
|
|
221
|
+
--tt-transition-easing-circ: cubic-bezier(0.79, 0.14, 0.15, 0.86);
|
|
222
|
+
--tt-transition-easing-back: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
223
|
+
/******************
|
|
224
|
+
Contrast variables
|
|
225
|
+
******************/
|
|
226
|
+
--tt-accent-contrast: 8%;
|
|
227
|
+
--tt-destructive-contrast: 8%;
|
|
228
|
+
--tt-foreground-contrast: 8%;
|
|
229
|
+
}
|
|
230
|
+
:root,
|
|
231
|
+
:root *,
|
|
232
|
+
:root ::before,
|
|
233
|
+
:root ::after {
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
transition: none var(--tt-transition-duration-default) var(--tt-transition-easing-default);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:root {
|
|
239
|
+
/**************************************************
|
|
240
|
+
Global colors
|
|
241
|
+
**************************************************/
|
|
242
|
+
/* Global colors - Light mode */
|
|
243
|
+
--tt-bg-color: var(--white);
|
|
244
|
+
--tt-border-color: var(--tt-gray-light-a-200);
|
|
245
|
+
--tt-border-color-tint: var(--tt-gray-light-a-100);
|
|
246
|
+
--tt-sidebar-bg-color: var(--tt-gray-light-100);
|
|
247
|
+
--tt-scrollbar-color: var(--tt-gray-light-a-200);
|
|
248
|
+
--tt-cursor-color: var(--tt-brand-color-500);
|
|
249
|
+
--tt-selection-color: rgba(157, 138, 255, 0.2);
|
|
250
|
+
--tt-card-bg-color: var(--white);
|
|
251
|
+
--tt-card-border-color: var(--tt-gray-light-a-100);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.tiptap.ProseMirror {
|
|
255
|
+
--blockquote-bg-color: var(--theme-palette-grey-900);
|
|
256
|
+
}
|
|
257
|
+
.dark .tiptap.ProseMirror {
|
|
258
|
+
--blockquote-bg-color: var(--theme-palette-grey-100);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* =====================
|
|
262
|
+
BLOCKQUOTE
|
|
263
|
+
===================== */
|
|
264
|
+
.tiptap.ProseMirror blockquote {
|
|
265
|
+
position: relative;
|
|
266
|
+
padding-left: 1em;
|
|
267
|
+
padding-top: 0.375em;
|
|
268
|
+
padding-bottom: 0.375em;
|
|
269
|
+
margin: 1.5rem 0;
|
|
270
|
+
}
|
|
271
|
+
.tiptap.ProseMirror blockquote p {
|
|
272
|
+
margin-top: 0;
|
|
273
|
+
}
|
|
274
|
+
.tiptap.ProseMirror blockquote::before, .tiptap.ProseMirror blockquote.is-empty::before {
|
|
275
|
+
position: absolute;
|
|
276
|
+
bottom: 0;
|
|
277
|
+
left: 0;
|
|
278
|
+
top: 0;
|
|
279
|
+
height: 100%;
|
|
280
|
+
width: 0.25em;
|
|
281
|
+
background-color: var(--blockquote-bg-color);
|
|
282
|
+
content: "";
|
|
283
|
+
border-radius: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.tiptap.ProseMirror {
|
|
287
|
+
--tt-inline-code-bg-color: var(--theme-palette-grey-100);
|
|
288
|
+
--tt-inline-code-text-color: var(--theme-palette-grey-700);
|
|
289
|
+
--tt-inline-code-border-color: var(--theme-palette-grey-200);
|
|
290
|
+
--tt-codeblock-bg: var(--theme-palette-grey-50);
|
|
291
|
+
--tt-codeblock-text: var(--theme-palette-grey-800);
|
|
292
|
+
--tt-codeblock-border: var(--theme-palette-grey-200);
|
|
293
|
+
}
|
|
294
|
+
.dark .tiptap.ProseMirror {
|
|
295
|
+
--tt-inline-code-bg-color: var(--tt-gray-dark-a-100);
|
|
296
|
+
--tt-inline-code-text-color: var(--tt-gray-dark-a-700);
|
|
297
|
+
--tt-inline-code-border-color: var(--tt-gray-dark-a-200);
|
|
298
|
+
--tt-codeblock-bg: var(--tt-gray-dark-a-50);
|
|
299
|
+
--tt-codeblock-text: var(--tt-gray-dark-a-800);
|
|
300
|
+
--tt-codeblock-border: var(--tt-gray-dark-a-200);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* =====================
|
|
304
|
+
CODE FORMATTING
|
|
305
|
+
===================== */
|
|
306
|
+
.tiptap.ProseMirror code {
|
|
307
|
+
background-color: var(--tt-inline-code-bg-color);
|
|
308
|
+
color: var(--tt-inline-code-text-color);
|
|
309
|
+
border: 1px solid var(--tt-inline-code-border-color);
|
|
310
|
+
font-family: "JetBrains Mono NL", monospace;
|
|
311
|
+
font-size: 0.875em;
|
|
312
|
+
line-height: 1.4;
|
|
313
|
+
border-radius: 6px/0.375rem;
|
|
314
|
+
padding: 0.1em 0.2em;
|
|
315
|
+
}
|
|
316
|
+
.tiptap.ProseMirror pre {
|
|
317
|
+
background-color: var(--tt-codeblock-bg);
|
|
318
|
+
color: var(--tt-codeblock-text);
|
|
319
|
+
border: 1px solid var(--tt-codeblock-border);
|
|
320
|
+
margin-top: 1.5em;
|
|
321
|
+
margin-bottom: 1.5em;
|
|
322
|
+
padding: 1em;
|
|
323
|
+
font-size: 1rem;
|
|
324
|
+
border-radius: 6px/0.375rem;
|
|
325
|
+
}
|
|
326
|
+
.tiptap.ProseMirror pre code {
|
|
327
|
+
background-color: transparent;
|
|
328
|
+
border: none;
|
|
329
|
+
border-radius: 0;
|
|
330
|
+
-webkit-text-fill-color: inherit;
|
|
331
|
+
color: inherit;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.tiptap.ProseMirror {
|
|
335
|
+
--tt-checklist-bg-color: var(--tt-gray-light-a-100);
|
|
336
|
+
--tt-checklist-bg-active-color: var(--tt-gray-light-a-900);
|
|
337
|
+
--tt-checklist-border-color: var(--tt-gray-light-a-200);
|
|
338
|
+
--tt-checklist-border-active-color: var(--tt-gray-light-a-900);
|
|
339
|
+
--tt-checklist-check-icon-color: var(--white);
|
|
340
|
+
--tt-checklist-text-active: var(--tt-gray-light-a-500);
|
|
341
|
+
}
|
|
342
|
+
.dark .tiptap.ProseMirror {
|
|
343
|
+
--tt-checklist-bg-color: var(--tt-gray-dark-a-100);
|
|
344
|
+
--tt-checklist-bg-active-color: var(--tt-gray-dark-a-900);
|
|
345
|
+
--tt-checklist-border-color: var(--tt-gray-dark-a-200);
|
|
346
|
+
--tt-checklist-border-active-color: var(--tt-gray-dark-a-900);
|
|
347
|
+
--tt-checklist-check-icon-color: var(--black);
|
|
348
|
+
--tt-checklist-text-active: var(--tt-gray-dark-a-500);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* =====================
|
|
352
|
+
LISTS
|
|
353
|
+
===================== */
|
|
354
|
+
.tiptap.ProseMirror ol,
|
|
355
|
+
.tiptap.ProseMirror ul {
|
|
356
|
+
margin-top: 1.5em;
|
|
357
|
+
margin-bottom: 1.5em;
|
|
358
|
+
padding-left: 1.5em;
|
|
359
|
+
}
|
|
360
|
+
.tiptap.ProseMirror ol:first-child,
|
|
361
|
+
.tiptap.ProseMirror ul:first-child {
|
|
362
|
+
margin-top: 0;
|
|
363
|
+
}
|
|
364
|
+
.tiptap.ProseMirror ol:last-child,
|
|
365
|
+
.tiptap.ProseMirror ul:last-child {
|
|
366
|
+
margin-bottom: 0;
|
|
367
|
+
}
|
|
368
|
+
.tiptap.ProseMirror ol ol,
|
|
369
|
+
.tiptap.ProseMirror ol ul,
|
|
370
|
+
.tiptap.ProseMirror ul ol,
|
|
371
|
+
.tiptap.ProseMirror ul ul {
|
|
372
|
+
margin-top: 0;
|
|
373
|
+
margin-bottom: 0;
|
|
374
|
+
}
|
|
375
|
+
.tiptap.ProseMirror li p:not(:first-child):not(td p):not(th p) {
|
|
376
|
+
margin-top: 0;
|
|
377
|
+
line-height: 1.6;
|
|
378
|
+
}
|
|
379
|
+
.tiptap.ProseMirror ol {
|
|
380
|
+
list-style: decimal;
|
|
381
|
+
}
|
|
382
|
+
.tiptap.ProseMirror ol ol {
|
|
383
|
+
list-style: lower-alpha;
|
|
384
|
+
}
|
|
385
|
+
.tiptap.ProseMirror ol ol ol {
|
|
386
|
+
list-style: lower-roman;
|
|
387
|
+
}
|
|
388
|
+
.tiptap.ProseMirror ol ol ol ol {
|
|
389
|
+
list-style: decimal;
|
|
390
|
+
}
|
|
391
|
+
.tiptap.ProseMirror ol ol ol ol ol {
|
|
392
|
+
list-style: lower-alpha;
|
|
393
|
+
}
|
|
394
|
+
.tiptap.ProseMirror ol ol ol ol ol ol {
|
|
395
|
+
list-style: lower-roman;
|
|
396
|
+
}
|
|
397
|
+
.tiptap.ProseMirror ol ol ol ol ol ol ol {
|
|
398
|
+
list-style: decimal;
|
|
399
|
+
}
|
|
400
|
+
.tiptap.ProseMirror ol ol ol ol ol ol ol ol {
|
|
401
|
+
list-style: lower-alpha;
|
|
402
|
+
}
|
|
403
|
+
.tiptap.ProseMirror ol ol ol ol ol ol ol ol ol {
|
|
404
|
+
list-style: lower-roman;
|
|
405
|
+
}
|
|
406
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) {
|
|
407
|
+
list-style: disc;
|
|
408
|
+
}
|
|
409
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul {
|
|
410
|
+
list-style: circle;
|
|
411
|
+
}
|
|
412
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul {
|
|
413
|
+
list-style: square;
|
|
414
|
+
}
|
|
415
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul ul {
|
|
416
|
+
list-style: disc;
|
|
417
|
+
}
|
|
418
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul ul ul {
|
|
419
|
+
list-style: circle;
|
|
420
|
+
}
|
|
421
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul ul ul ul {
|
|
422
|
+
list-style: square;
|
|
423
|
+
}
|
|
424
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul ul ul ul ul {
|
|
425
|
+
list-style: disc;
|
|
426
|
+
}
|
|
427
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul ul ul ul ul ul {
|
|
428
|
+
list-style: circle;
|
|
429
|
+
}
|
|
430
|
+
.tiptap.ProseMirror ul:not([data-type=taskList]) ul ul ul ul ul ul ul ul {
|
|
431
|
+
list-style: square;
|
|
432
|
+
}
|
|
433
|
+
.tiptap.ProseMirror ul[data-type=taskList] {
|
|
434
|
+
padding-left: 0.25em;
|
|
435
|
+
}
|
|
436
|
+
.tiptap.ProseMirror ul[data-type=taskList] li {
|
|
437
|
+
display: flex;
|
|
438
|
+
flex-direction: row;
|
|
439
|
+
align-items: flex-start;
|
|
440
|
+
}
|
|
441
|
+
.tiptap.ProseMirror ul[data-type=taskList] li:not(:has(> p:first-child)) {
|
|
442
|
+
list-style-type: none;
|
|
443
|
+
}
|
|
444
|
+
.tiptap.ProseMirror ul[data-type=taskList] li[data-checked=true] > div > p {
|
|
445
|
+
opacity: 0.5;
|
|
446
|
+
text-decoration: line-through;
|
|
447
|
+
}
|
|
448
|
+
.tiptap.ProseMirror ul[data-type=taskList] li[data-checked=true] > div > p span {
|
|
449
|
+
text-decoration: line-through;
|
|
450
|
+
}
|
|
451
|
+
.tiptap.ProseMirror ul[data-type=taskList] li label {
|
|
452
|
+
position: relative;
|
|
453
|
+
padding-top: 0.375rem;
|
|
454
|
+
padding-right: 0.5rem;
|
|
455
|
+
}
|
|
456
|
+
.tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox] {
|
|
457
|
+
position: absolute;
|
|
458
|
+
opacity: 0;
|
|
459
|
+
width: 0;
|
|
460
|
+
height: 0;
|
|
461
|
+
}
|
|
462
|
+
.tiptap.ProseMirror ul[data-type=taskList] li label span {
|
|
463
|
+
display: block;
|
|
464
|
+
width: 1em;
|
|
465
|
+
height: 1em;
|
|
466
|
+
border: 1px solid var(--tt-checklist-border-color);
|
|
467
|
+
border-radius: var(--tt-radius-xs, 0.25rem);
|
|
468
|
+
position: relative;
|
|
469
|
+
cursor: pointer;
|
|
470
|
+
background-color: var(--tt-checklist-bg-color);
|
|
471
|
+
transition: background-color 80ms ease-out, border-color 80ms ease-out;
|
|
472
|
+
}
|
|
473
|
+
.tiptap.ProseMirror ul[data-type=taskList] li label span::before {
|
|
474
|
+
content: "";
|
|
475
|
+
position: absolute;
|
|
476
|
+
left: 50%;
|
|
477
|
+
top: 50%;
|
|
478
|
+
transform: translate(-50%, -50%);
|
|
479
|
+
width: 0.75em;
|
|
480
|
+
height: 0.75em;
|
|
481
|
+
background-color: var(--tt-checklist-check-icon-color);
|
|
482
|
+
opacity: 0;
|
|
483
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
|
|
484
|
+
mask: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
|
|
485
|
+
}
|
|
486
|
+
.tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox]:checked + span {
|
|
487
|
+
background: var(--tt-checklist-bg-active-color);
|
|
488
|
+
border-color: var(--tt-checklist-border-active-color);
|
|
489
|
+
}
|
|
490
|
+
.tiptap.ProseMirror ul[data-type=taskList] li label input[type=checkbox]:checked + span::before {
|
|
491
|
+
opacity: 1;
|
|
492
|
+
}
|
|
493
|
+
.tiptap.ProseMirror ul[data-type=taskList] li div {
|
|
494
|
+
flex: 1 1 0%;
|
|
495
|
+
min-width: 0;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.tiptap.ProseMirror {
|
|
499
|
+
--tt-collaboration-carets-label: var(--tt-gray-light-900);
|
|
500
|
+
--link-text-color: var(--tt-brand-color-500);
|
|
501
|
+
--placeholder-color: var(--tt-gray-light-a-400);
|
|
502
|
+
--tiptap-ai-insertion-color: var(--tt-brand-color-600);
|
|
503
|
+
}
|
|
504
|
+
.dark .tiptap.ProseMirror {
|
|
505
|
+
--tt-collaboration-carets-label: var(--tt-gray-dark-100);
|
|
506
|
+
--link-text-color: var(--tt-brand-color-400);
|
|
507
|
+
--placeholder-color: var(--tt-gray-dark-a-400);
|
|
508
|
+
--tiptap-ai-insertion-color: var(--tt-brand-color-400);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* Ensure each top-level node has relative positioning
|
|
512
|
+
so absolutely positioned placeholders work correctly */
|
|
513
|
+
.tiptap.ProseMirror > * {
|
|
514
|
+
position: relative;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/* =====================
|
|
518
|
+
CORE EDITOR STYLES
|
|
519
|
+
===================== */
|
|
520
|
+
.tiptap.ProseMirror {
|
|
521
|
+
white-space: pre-wrap;
|
|
522
|
+
outline: none;
|
|
523
|
+
caret-color: var(--tt-cursor-color);
|
|
524
|
+
}
|
|
525
|
+
.tiptap.ProseMirror p:not(:first-child):not(td p):not(th p) {
|
|
526
|
+
margin-top: 20px;
|
|
527
|
+
}
|
|
528
|
+
.tiptap.ProseMirror p:not(td p):not(th p) {
|
|
529
|
+
font-size: 1rem;
|
|
530
|
+
line-height: 1.6;
|
|
531
|
+
font-weight: normal;
|
|
532
|
+
}
|
|
533
|
+
.tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) ::selection {
|
|
534
|
+
background-color: var(--tt-selection-color);
|
|
535
|
+
}
|
|
536
|
+
.tiptap.ProseMirror:not(.readonly):not(.ProseMirror-hideselection) .selection::selection {
|
|
537
|
+
background: transparent;
|
|
538
|
+
}
|
|
539
|
+
.tiptap.ProseMirror .selection {
|
|
540
|
+
display: inline;
|
|
541
|
+
background-color: var(--tt-selection-color);
|
|
542
|
+
}
|
|
543
|
+
.tiptap.ProseMirror .ProseMirror-selectednode:not(img):not(pre):not(.react-renderer) {
|
|
544
|
+
border-radius: var(--tt-radius-md);
|
|
545
|
+
background-color: var(--tt-selection-color);
|
|
546
|
+
}
|
|
547
|
+
.tiptap.ProseMirror .ProseMirror-hideselection {
|
|
548
|
+
caret-color: transparent;
|
|
549
|
+
}
|
|
550
|
+
.tiptap.ProseMirror.resize-cursor {
|
|
551
|
+
cursor: ew-resize;
|
|
552
|
+
cursor: col-resize;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* =====================
|
|
556
|
+
TEXT DECORATION
|
|
557
|
+
===================== */
|
|
558
|
+
.tiptap.ProseMirror a span {
|
|
559
|
+
text-decoration: underline;
|
|
560
|
+
}
|
|
561
|
+
.tiptap.ProseMirror s span {
|
|
562
|
+
text-decoration: line-through;
|
|
563
|
+
}
|
|
564
|
+
.tiptap.ProseMirror u span {
|
|
565
|
+
text-decoration: underline;
|
|
566
|
+
}
|
|
567
|
+
.tiptap.ProseMirror .tiptap-ai-insertion {
|
|
568
|
+
color: var(--tiptap-ai-insertion-color);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/* =====================
|
|
572
|
+
COLLABORATION
|
|
573
|
+
===================== */
|
|
574
|
+
.tiptap.ProseMirror .collaboration-carets__caret {
|
|
575
|
+
border-right: 1px solid transparent;
|
|
576
|
+
border-left: 1px solid transparent;
|
|
577
|
+
pointer-events: none;
|
|
578
|
+
margin-left: -1px;
|
|
579
|
+
margin-right: -1px;
|
|
580
|
+
position: relative;
|
|
581
|
+
word-break: normal;
|
|
582
|
+
}
|
|
583
|
+
.tiptap.ProseMirror .collaboration-carets__label {
|
|
584
|
+
color: var(--tt-collaboration-carets-label);
|
|
585
|
+
border-radius: 0.25rem;
|
|
586
|
+
border-bottom-left-radius: 0;
|
|
587
|
+
font-size: 0.75rem;
|
|
588
|
+
font-weight: 600;
|
|
589
|
+
left: -1px;
|
|
590
|
+
line-height: 1;
|
|
591
|
+
padding: 0.125rem 0.375rem;
|
|
592
|
+
position: absolute;
|
|
593
|
+
top: -1.3em;
|
|
594
|
+
user-select: none;
|
|
595
|
+
white-space: nowrap;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/* =====================
|
|
599
|
+
EMOJI
|
|
600
|
+
===================== */
|
|
601
|
+
.tiptap.ProseMirror [data-type=emoji] img {
|
|
602
|
+
display: inline-block;
|
|
603
|
+
width: 1.25em;
|
|
604
|
+
height: 1.25em;
|
|
605
|
+
cursor: text;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/* =====================
|
|
609
|
+
LINKS
|
|
610
|
+
===================== */
|
|
611
|
+
.tiptap.ProseMirror a {
|
|
612
|
+
color: var(--link-text-color);
|
|
613
|
+
text-decoration: underline;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/* =====================
|
|
617
|
+
MENTION
|
|
618
|
+
===================== */
|
|
619
|
+
.tiptap.ProseMirror [data-type=mention] {
|
|
620
|
+
display: inline-block;
|
|
621
|
+
color: var(--tt-brand-color-500);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/* =====================
|
|
625
|
+
PLACEHOLDER
|
|
626
|
+
===================== */
|
|
627
|
+
.is-empty:not(.with-slash)[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
|
|
628
|
+
content: attr(data-placeholder);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.is-empty.with-slash[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child)::before {
|
|
632
|
+
content: "Write, type '/' for commands…";
|
|
633
|
+
font-style: italic;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak:only-child):before {
|
|
637
|
+
pointer-events: none;
|
|
638
|
+
height: 0;
|
|
639
|
+
position: absolute;
|
|
640
|
+
width: 100%;
|
|
641
|
+
text-align: inherit;
|
|
642
|
+
left: 0;
|
|
643
|
+
right: 0;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.is-empty[data-placeholder]:has(> .ProseMirror-trailingBreak):before {
|
|
647
|
+
color: var(--placeholder-color);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/* =====================
|
|
651
|
+
DROPCURSOR
|
|
652
|
+
===================== */
|
|
653
|
+
.prosemirror-dropcursor-block,
|
|
654
|
+
.prosemirror-dropcursor-inline {
|
|
655
|
+
background: var(--tt-brand-color-400) !important;
|
|
656
|
+
border-radius: 0.25rem;
|
|
657
|
+
margin-left: -1px;
|
|
658
|
+
margin-right: -1px;
|
|
659
|
+
width: 100%;
|
|
660
|
+
height: 0.188rem;
|
|
661
|
+
cursor: grabbing;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/* =====================
|
|
665
|
+
INDENT
|
|
666
|
+
===================== */
|
|
667
|
+
.tiptap.ProseMirror {
|
|
668
|
+
--tt-indent-unit: 24px;
|
|
669
|
+
}
|
|
670
|
+
.tiptap.ProseMirror [data-indent] {
|
|
671
|
+
transition: margin-left 0.2s ease-in-out;
|
|
672
|
+
margin-left: calc(var(--tt-indent-unit) * var(--tt-indent-level, 0));
|
|
673
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.14.0-dev.
|
|
3
|
+
"version": "1.14.0-dev.1786115279",
|
|
4
4
|
"description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cgi-learning-hub",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"import": "./dist/tiptap/index.es.js",
|
|
27
27
|
"require": "./dist/tiptap/index.cjs.js"
|
|
28
28
|
},
|
|
29
|
-
"./index.css": "./dist/ui.css"
|
|
29
|
+
"./index.css": "./dist/ui.css",
|
|
30
|
+
"./tiptap/styles.css": "./dist/tiptap/styles.css"
|
|
30
31
|
},
|
|
31
32
|
"main": "dist/index.cjs.js",
|
|
32
33
|
"module": "dist/index.es.js",
|
|
@@ -76,7 +77,9 @@
|
|
|
76
77
|
"sass-embedded": "^1.100.0"
|
|
77
78
|
},
|
|
78
79
|
"scripts": {
|
|
79
|
-
"build": "vite build",
|
|
80
|
+
"build:js": "vite build",
|
|
81
|
+
"build:css": "sass src/tiptap/styles/index.scss dist/tiptap/styles.css --no-source-map",
|
|
82
|
+
"build": "pnpm run build:js && pnpm run build:css",
|
|
80
83
|
"watch": "vite build --watch"
|
|
81
84
|
}
|
|
82
85
|
}
|