@tn-pulse-suivi/notion-ui-comps 1.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.
@@ -0,0 +1,352 @@
1
+ :root {
2
+ /******************
3
+ Basics
4
+ ******************/
5
+ overflow-wrap: break-word;
6
+ text-size-adjust: none;
7
+ text-rendering: optimizeLegibility;
8
+ -webkit-font-smoothing: antialiased;
9
+ -moz-osx-font-smoothing: grayscale;
10
+ /******************
11
+ Colors variables
12
+ ******************/
13
+ /* Gray alpha (light mode) */
14
+ --tt-gray-light-a-50: rgba(56, 56, 56, 0.04);
15
+ --tt-gray-light-a-100: rgba(15, 22, 36, 0.05);
16
+ --tt-gray-light-a-200: rgba(37, 39, 45, 0.1);
17
+ --tt-gray-light-a-300: rgba(47, 50, 55, 0.2);
18
+ --tt-gray-light-a-400: rgba(40, 44, 51, 0.42);
19
+ --tt-gray-light-a-500: rgba(52, 55, 60, 0.64);
20
+ --tt-gray-light-a-600: rgba(36, 39, 46, 0.78);
21
+ --tt-gray-light-a-700: rgba(35, 37, 42, 0.87);
22
+ --tt-gray-light-a-800: rgba(30, 32, 36, 0.95);
23
+ --tt-gray-light-a-900: rgba(29, 30, 32, 0.98);
24
+ /* Gray (light mode) */
25
+ --tt-gray-light-50: rgba(250, 250, 250, 1);
26
+ --tt-gray-light-100: rgba(244, 244, 245, 1);
27
+ --tt-gray-light-200: rgba(234, 234, 235, 1);
28
+ --tt-gray-light-300: rgba(213, 214, 215, 1);
29
+ --tt-gray-light-400: rgba(166, 167, 171, 1);
30
+ --tt-gray-light-500: rgba(125, 127, 130, 1);
31
+ --tt-gray-light-600: rgba(83, 86, 90, 1);
32
+ --tt-gray-light-700: rgba(64, 65, 69, 1);
33
+ --tt-gray-light-800: rgba(44, 45, 48, 1);
34
+ --tt-gray-light-900: rgba(34, 35, 37, 1);
35
+ /* Gray alpha (dark mode) */
36
+ --tt-gray-dark-a-50: rgba(232, 232, 253, 0.05);
37
+ --tt-gray-dark-a-100: rgba(231, 231, 243, 0.07);
38
+ --tt-gray-dark-a-200: rgba(238, 238, 246, 0.11);
39
+ --tt-gray-dark-a-300: rgba(239, 239, 245, 0.22);
40
+ --tt-gray-dark-a-400: rgba(244, 244, 255, 0.37);
41
+ --tt-gray-dark-a-500: rgba(236, 238, 253, 0.5);
42
+ --tt-gray-dark-a-600: rgba(247, 247, 253, 0.64);
43
+ --tt-gray-dark-a-700: rgba(251, 251, 254, 0.75);
44
+ --tt-gray-dark-a-800: rgba(253, 253, 253, 0.88);
45
+ --tt-gray-dark-a-900: rgba(255, 255, 255, 0.96);
46
+ /* Gray (dark mode) */
47
+ --tt-gray-dark-50: rgba(25, 25, 26, 1);
48
+ --tt-gray-dark-100: rgba(32, 32, 34, 1);
49
+ --tt-gray-dark-200: rgba(45, 45, 47, 1);
50
+ --tt-gray-dark-300: rgba(70, 70, 73, 1);
51
+ --tt-gray-dark-400: rgba(99, 99, 105, 1);
52
+ --tt-gray-dark-500: rgba(124, 124, 131, 1);
53
+ --tt-gray-dark-600: rgba(163, 163, 168, 1);
54
+ --tt-gray-dark-700: rgba(192, 192, 195, 1);
55
+ --tt-gray-dark-800: rgba(224, 224, 225, 1);
56
+ --tt-gray-dark-900: rgba(245, 245, 245, 1);
57
+ /* Brand colors */
58
+ --tt-brand-color-50: rgba(239, 238, 255, 1);
59
+ --tt-brand-color-100: rgba(222, 219, 255, 1);
60
+ --tt-brand-color-200: rgba(195, 189, 255, 1);
61
+ --tt-brand-color-300: rgba(157, 138, 255, 1);
62
+ --tt-brand-color-400: rgba(122, 82, 255, 1);
63
+ --tt-brand-color-500: rgba(98, 41, 255, 1);
64
+ --tt-brand-color-600: rgba(84, 0, 229, 1);
65
+ --tt-brand-color-700: rgba(75, 0, 204, 1);
66
+ --tt-brand-color-800: rgba(56, 0, 153, 1);
67
+ --tt-brand-color-900: rgba(43, 25, 102, 1);
68
+ --tt-brand-color-950: hsla(257, 100%, 9%, 1);
69
+ /* Green */
70
+ --tt-color-green-inc-5: hsla(129, 100%, 97%, 1);
71
+ --tt-color-green-inc-4: hsla(129, 100%, 92%, 1);
72
+ --tt-color-green-inc-3: hsla(131, 100%, 86%, 1);
73
+ --tt-color-green-inc-2: hsla(133, 98%, 78%, 1);
74
+ --tt-color-green-inc-1: hsla(137, 99%, 70%, 1);
75
+ --tt-color-green-base: hsla(147, 99%, 50%, 1);
76
+ --tt-color-green-dec-1: hsla(147, 97%, 41%, 1);
77
+ --tt-color-green-dec-2: hsla(146, 98%, 32%, 1);
78
+ --tt-color-green-dec-3: hsla(146, 100%, 24%, 1);
79
+ --tt-color-green-dec-4: hsla(144, 100%, 16%, 1);
80
+ --tt-color-green-dec-5: hsla(140, 100%, 9%, 1);
81
+ /* Yellow */
82
+ --tt-color-yellow-inc-5: hsla(50, 100%, 97%, 1);
83
+ --tt-color-yellow-inc-4: hsla(50, 100%, 91%, 1);
84
+ --tt-color-yellow-inc-3: hsla(50, 100%, 84%, 1);
85
+ --tt-color-yellow-inc-2: hsla(50, 100%, 77%, 1);
86
+ --tt-color-yellow-inc-1: hsla(50, 100%, 68%, 1);
87
+ --tt-color-yellow-base: hsla(52, 100%, 50%, 1);
88
+ --tt-color-yellow-dec-1: hsla(52, 100%, 41%, 1);
89
+ --tt-color-yellow-dec-2: hsla(52, 100%, 32%, 1);
90
+ --tt-color-yellow-dec-3: hsla(52, 100%, 24%, 1);
91
+ --tt-color-yellow-dec-4: hsla(51, 100%, 16%, 1);
92
+ --tt-color-yellow-dec-5: hsla(50, 100%, 9%, 1);
93
+ /* Red */
94
+ --tt-color-red-inc-5: hsla(11, 100%, 96%, 1);
95
+ --tt-color-red-inc-4: hsla(11, 100%, 88%, 1);
96
+ --tt-color-red-inc-3: hsla(10, 100%, 80%, 1);
97
+ --tt-color-red-inc-2: hsla(9, 100%, 73%, 1);
98
+ --tt-color-red-inc-1: hsla(7, 100%, 64%, 1);
99
+ --tt-color-red-base: hsla(7, 100%, 54%, 1);
100
+ --tt-color-red-dec-1: hsla(7, 100%, 41%, 1);
101
+ --tt-color-red-dec-2: hsla(5, 100%, 32%, 1);
102
+ --tt-color-red-dec-3: hsla(4, 100%, 24%, 1);
103
+ --tt-color-red-dec-4: hsla(3, 100%, 16%, 1);
104
+ --tt-color-red-dec-5: hsla(1, 100%, 9%, 1);
105
+ /* Basic colors */
106
+ --white: rgba(255, 255, 255, 1);
107
+ --black: rgba(14, 14, 17, 1);
108
+ --transparent: rgba(255, 255, 255, 0);
109
+ /******************
110
+ Shadow variables
111
+ ******************/
112
+ /* Shadows Light */
113
+ --tt-shadow-elevated-md:
114
+ 0px 16px 48px 0px rgba(17, 24, 39, 0.04),
115
+ 0px 12px 24px 0px rgba(17, 24, 39, 0.04),
116
+ 0px 6px 8px 0px rgba(17, 24, 39, 0.02),
117
+ 0px 2px 3px 0px rgba(17, 24, 39, 0.02);
118
+ /**************************************************
119
+ Radius variables
120
+ **************************************************/
121
+ --tt-radius-xxs: 0.125rem; /* 2px */
122
+ --tt-radius-xs: 0.25rem; /* 4px */
123
+ --tt-radius-sm: 0.375rem; /* 6px */
124
+ --tt-radius-md: 0.5rem; /* 8px */
125
+ --tt-radius-lg: 0.75rem; /* 12px */
126
+ --tt-radius-xl: 1rem; /* 16px */
127
+ /**************************************************
128
+ Transition variables
129
+ **************************************************/
130
+ --tt-transition-duration-short: 0.1s;
131
+ --tt-transition-duration-default: 0.2s;
132
+ --tt-transition-duration-long: 0.64s;
133
+ --tt-transition-easing-default: cubic-bezier(0.46, 0.03, 0.52, 0.96);
134
+ --tt-transition-easing-cubic: cubic-bezier(0.65, 0.05, 0.36, 1);
135
+ --tt-transition-easing-quart: cubic-bezier(0.77, 0, 0.18, 1);
136
+ --tt-transition-easing-circ: cubic-bezier(0.79, 0.14, 0.15, 0.86);
137
+ --tt-transition-easing-back: cubic-bezier(0.68, -0.55, 0.27, 1.55);
138
+ /******************
139
+ Contrast variables
140
+ ******************/
141
+ --tt-accent-contrast: 8%;
142
+ --tt-destructive-contrast: 8%;
143
+ --tt-foreground-contrast: 8%;
144
+ }
145
+ :root,
146
+ :root *,
147
+ :root ::before,
148
+ :root ::after {
149
+ box-sizing: border-box;
150
+ transition: none var(--tt-transition-duration-default) var(--tt-transition-easing-default);
151
+ }
152
+
153
+ :root {
154
+ /**************************************************
155
+ Global colors
156
+ **************************************************/
157
+ /* Global colors - Light mode */
158
+ --tt-bg-color: var(--white);
159
+ --tt-border-color: var(--tt-gray-light-a-200);
160
+ --tt-border-color-tint: var(--tt-gray-light-a-100);
161
+ --tt-sidebar-bg-color: var(--tt-gray-light-100);
162
+ --tt-scrollbar-color: var(--tt-gray-light-a-200);
163
+ --tt-cursor-color: var(--tt-brand-color-500);
164
+ --tt-selection-color: rgba(157, 138, 255, 0.2);
165
+ --tt-card-bg-color: var(--white);
166
+ --tt-card-border-color: var(--tt-gray-light-a-100);
167
+ }
168
+
169
+ /* Global colors - Dark mode */
170
+ .dark {
171
+ --tt-bg-color: var(--black);
172
+ --tt-border-color: var(--tt-gray-dark-a-200);
173
+ --tt-border-color-tint: var(--tt-gray-dark-a-100);
174
+ --tt-sidebar-bg-color: var(--tt-gray-dark-100);
175
+ --tt-scrollbar-color: var(--tt-gray-dark-a-200);
176
+ --tt-cursor-color: var(--tt-brand-color-400);
177
+ --tt-selection-color: rgba(122, 82, 255, 0.2);
178
+ --tt-card-bg-color: var(--tt-gray-dark-50);
179
+ --tt-card-border-color: var(--tt-gray-dark-a-50);
180
+ --tt-shadow-elevated-md:
181
+ 0px 16px 48px 0px rgba(0, 0, 0, 0.5), 0px 12px 24px 0px rgba(0, 0, 0, 0.24),
182
+ 0px 6px 8px 0px rgba(0, 0, 0, 0.22), 0px 2px 3px 0px rgba(0, 0, 0, 0.12);
183
+ }
184
+
185
+ /* Text colors */
186
+ :root {
187
+ --tt-color-text-gray: hsl(45, 2%, 46%);
188
+ --tt-color-text-brown: hsl(19, 31%, 47%);
189
+ --tt-color-text-orange: hsl(30, 89%, 45%);
190
+ --tt-color-text-yellow: hsl(38, 62%, 49%);
191
+ --tt-color-text-green: hsl(148, 32%, 39%);
192
+ --tt-color-text-blue: hsl(202, 54%, 43%);
193
+ --tt-color-text-purple: hsl(274, 32%, 54%);
194
+ --tt-color-text-pink: hsl(328, 49%, 53%);
195
+ --tt-color-text-red: hsl(2, 62%, 55%);
196
+ --tt-color-text-gray-contrast: hsla(39, 26%, 26%, 0.15);
197
+ --tt-color-text-brown-contrast: hsla(18, 43%, 69%, 0.35);
198
+ --tt-color-text-orange-contrast: hsla(24, 73%, 55%, 0.27);
199
+ --tt-color-text-yellow-contrast: hsla(44, 82%, 59%, 0.39);
200
+ --tt-color-text-green-contrast: hsla(126, 29%, 60%, 0.27);
201
+ --tt-color-text-blue-contrast: hsla(202, 54%, 59%, 0.27);
202
+ --tt-color-text-purple-contrast: hsla(274, 37%, 64%, 0.27);
203
+ --tt-color-text-pink-contrast: hsla(331, 60%, 71%, 0.27);
204
+ --tt-color-text-red-contrast: hsla(8, 79%, 79%, 0.4);
205
+ }
206
+
207
+ .dark {
208
+ --tt-color-text-gray: hsl(0, 0%, 61%);
209
+ --tt-color-text-brown: hsl(18, 35%, 58%);
210
+ --tt-color-text-orange: hsl(25, 53%, 53%);
211
+ --tt-color-text-yellow: hsl(36, 54%, 55%);
212
+ --tt-color-text-green: hsl(145, 32%, 47%);
213
+ --tt-color-text-blue: hsl(202, 64%, 52%);
214
+ --tt-color-text-purple: hsl(270, 55%, 62%);
215
+ --tt-color-text-pink: hsl(329, 57%, 58%);
216
+ --tt-color-text-red: hsl(1, 69%, 60%);
217
+ --tt-color-text-gray-contrast: hsla(0, 0%, 100%, 0.09);
218
+ --tt-color-text-brown-contrast: hsla(17, 45%, 50%, 0.25);
219
+ --tt-color-text-orange-contrast: hsla(27, 82%, 53%, 0.2);
220
+ --tt-color-text-yellow-contrast: hsla(35, 49%, 47%, 0.2);
221
+ --tt-color-text-green-contrast: hsla(151, 55%, 39%, 0.2);
222
+ --tt-color-text-blue-contrast: hsla(202, 54%, 43%, 0.2);
223
+ --tt-color-text-purple-contrast: hsla(271, 56%, 60%, 0.18);
224
+ --tt-color-text-pink-contrast: hsla(331, 67%, 58%, 0.22);
225
+ --tt-color-text-red-contrast: hsla(0, 67%, 60%, 0.25);
226
+ }
227
+
228
+ /* Highlight colors */
229
+ :root {
230
+ --tt-color-highlight-yellow: #fef9c3;
231
+ --tt-color-highlight-green: #dcfce7;
232
+ --tt-color-highlight-blue: #e0f2fe;
233
+ --tt-color-highlight-purple: #f3e8ff;
234
+ --tt-color-highlight-red: #ffe4e6;
235
+ --tt-color-highlight-gray: rgb(248, 248, 247);
236
+ --tt-color-highlight-brown: rgb(244, 238, 238);
237
+ --tt-color-highlight-orange: rgb(251, 236, 221);
238
+ --tt-color-highlight-pink: rgb(252, 241, 246);
239
+ --tt-color-highlight-yellow-contrast: #fbe604;
240
+ --tt-color-highlight-green-contrast: #c7fad8;
241
+ --tt-color-highlight-blue-contrast: #ceeafd;
242
+ --tt-color-highlight-purple-contrast: #e4ccff;
243
+ --tt-color-highlight-red-contrast: #ffccd0;
244
+ --tt-color-highlight-gray-contrast: rgba(84, 72, 49, 0.15);
245
+ --tt-color-highlight-brown-contrast: rgba(210, 162, 141, 0.35);
246
+ --tt-color-highlight-orange-contrast: rgba(224, 124, 57, 0.27);
247
+ --tt-color-highlight-pink-contrast: rgba(225, 136, 179, 0.27);
248
+ }
249
+
250
+ .dark {
251
+ --tt-color-highlight-yellow: #6b6524;
252
+ --tt-color-highlight-green: #509568;
253
+ --tt-color-highlight-blue: #6e92aa;
254
+ --tt-color-highlight-purple: #583e74;
255
+ --tt-color-highlight-red: #743e42;
256
+ --tt-color-highlight-gray: rgb(47, 47, 47);
257
+ --tt-color-highlight-brown: rgb(74, 50, 40);
258
+ --tt-color-highlight-orange: rgb(92, 59, 35);
259
+ --tt-color-highlight-pink: rgb(78, 44, 60);
260
+ --tt-color-highlight-yellow-contrast: #58531e;
261
+ --tt-color-highlight-green-contrast: #47855d;
262
+ --tt-color-highlight-blue-contrast: #5e86a1;
263
+ --tt-color-highlight-purple-contrast: #4c3564;
264
+ --tt-color-highlight-red-contrast: #643539;
265
+ --tt-color-highlight-gray-contrast: rgba(255, 255, 255, 0.094);
266
+ --tt-color-highlight-brown-contrast: rgba(184, 101, 69, 0.25);
267
+ --tt-color-highlight-orange-contrast: rgba(233, 126, 37, 0.2);
268
+ --tt-color-highlight-pink-contrast: rgba(220, 76, 145, 0.22);
269
+ }
270
+
271
+ @keyframes fadeIn {
272
+ from {
273
+ opacity: 0;
274
+ }
275
+ to {
276
+ opacity: 1;
277
+ }
278
+ }
279
+ @keyframes fadeOut {
280
+ from {
281
+ opacity: 1;
282
+ }
283
+ to {
284
+ opacity: 0;
285
+ }
286
+ }
287
+ @keyframes zoomIn {
288
+ from {
289
+ transform: scale(0.95);
290
+ }
291
+ to {
292
+ transform: scale(1);
293
+ }
294
+ }
295
+ @keyframes zoomOut {
296
+ from {
297
+ transform: scale(1);
298
+ }
299
+ to {
300
+ transform: scale(0.95);
301
+ }
302
+ }
303
+ @keyframes zoom {
304
+ 0% {
305
+ opacity: 0;
306
+ transform: scale(0.95);
307
+ }
308
+ 100% {
309
+ opacity: 1;
310
+ transform: scale(1);
311
+ }
312
+ }
313
+ @keyframes slideFromTop {
314
+ from {
315
+ transform: translateY(-0.5rem);
316
+ }
317
+ to {
318
+ transform: translateY(0);
319
+ }
320
+ }
321
+ @keyframes slideFromRight {
322
+ from {
323
+ transform: translateX(0.5rem);
324
+ }
325
+ to {
326
+ transform: translateX(0);
327
+ }
328
+ }
329
+ @keyframes slideFromLeft {
330
+ from {
331
+ transform: translateX(-0.5rem);
332
+ }
333
+ to {
334
+ transform: translateX(0);
335
+ }
336
+ }
337
+ @keyframes slideFromBottom {
338
+ from {
339
+ transform: translateY(0.5rem);
340
+ }
341
+ to {
342
+ transform: translateY(0);
343
+ }
344
+ }
345
+ @keyframes spin {
346
+ from {
347
+ transform: rotate(0deg);
348
+ }
349
+ to {
350
+ transform: rotate(360deg);
351
+ }
352
+ }
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@tn-pulse-suivi/notion-ui-comps",
3
+ "version": "1.0.1",
4
+ "description": "Private notion-style Tiptap UI components",
5
+ "type": "module",
6
+
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+
11
+ "files": ["dist"],
12
+
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs"
18
+ },
19
+ "./*": {
20
+ "types": "./dist/*.d.ts",
21
+ "import": "./dist/*.js",
22
+ "require": "./dist/*.cjs"
23
+ }
24
+ },
25
+
26
+ "sideEffects": ["*.scss", "*.css"],
27
+
28
+ "scripts": {
29
+ "build": "tsup && node build-styles.mjs",
30
+ "prepare": "npm run build"
31
+ },
32
+
33
+ "peerDependencies": {
34
+ "react": "^18.0.0",
35
+ "react-dom": "^18.0.0",
36
+ "@tiptap/core": "^3.0.0",
37
+ "@tiptap/react": "^3.0.0",
38
+ "@tiptap-pro/provider": "^3.0.0",
39
+ "react-hotkeys-hook": "*",
40
+ "@ariakit/react": "*"
41
+ },
42
+
43
+ "dependencies": {
44
+ "@floating-ui/react": "^0.27.16",
45
+ "@fortawesome/react-fontawesome": "^3.1.1",
46
+ "@hocuspocus/provider": "^3.2.0",
47
+ "@mui/icons-material": "^7.3.6",
48
+ "@mui/material": "^5.9.3",
49
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
50
+ "@radix-ui/react-popover": "^1.1.15",
51
+ "i18next": "^24.2.2",
52
+ "lodash.isequal": "^4.5.0",
53
+ "lodash.throttle": "^4.1.1",
54
+ "prosemirror-commands": "^1.5.0",
55
+ "prosemirror-schema-list": "^1.2.2",
56
+ "prosemirror-tables": "^1.8.5",
57
+ "react-i18next": "^15.4.1",
58
+ "react-resizable": "^3.0.5",
59
+ "resize-observer-polyfill": "^1.5.1",
60
+ "tss-react": "^3.7.1",
61
+ "ulid": "^2.3.0",
62
+ "y-protocols": "^1.0.7",
63
+ "katex": "^0.16.4",
64
+ "yjs": "^13.6.28"
65
+ },
66
+
67
+ "devDependencies": {
68
+ "@types/node": "^25.5.0",
69
+ "sass": "^1.98.0",
70
+ "tsup": "^8.5.1",
71
+ "typescript": "^5.9.3"
72
+ },
73
+
74
+ "author": "Ahmed Feki",
75
+ "license": "ISC",
76
+ "private": false
77
+ }