@univerjs/preset-docs-drawing 1.0.0-alpha.2 → 1.0.0-alpha.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.
Files changed (44) hide show
  1. package/lib/cjs/index.js +23135 -1
  2. package/lib/cjs/locales/ar-SA.js +1 -1
  3. package/lib/cjs/locales/ca-ES.js +1 -1
  4. package/lib/cjs/locales/de-DE.js +1 -1
  5. package/lib/cjs/locales/en-US.js +1 -1
  6. package/lib/cjs/locales/es-ES.js +1 -1
  7. package/lib/cjs/locales/fa-IR.js +1 -1
  8. package/lib/cjs/locales/fr-FR.js +1 -1
  9. package/lib/cjs/locales/id-ID.js +1 -1
  10. package/lib/cjs/locales/it-IT.js +1 -1
  11. package/lib/cjs/locales/ja-JP.js +1 -1
  12. package/lib/cjs/locales/ko-KR.js +1 -1
  13. package/lib/cjs/locales/pl-PL.js +1 -1
  14. package/lib/cjs/locales/pt-BR.js +1 -1
  15. package/lib/cjs/locales/ru-RU.js +1 -1
  16. package/lib/cjs/locales/sk-SK.js +1 -1
  17. package/lib/cjs/locales/vi-VN.js +1 -1
  18. package/lib/cjs/locales/zh-CN.js +1 -1
  19. package/lib/cjs/locales/zh-HK.js +1 -1
  20. package/lib/cjs/locales/zh-TW.js +1 -1
  21. package/lib/cjs/{rolldown-runtime-C_NdSu1c.js → rolldown-runtime-fl3r8ClO.js} +7 -0
  22. package/lib/es/index.js +23129 -1
  23. package/lib/index.css +299 -0
  24. package/lib/index.js +23129 -1
  25. package/lib/types/locales/ar-SA.d.ts +45 -0
  26. package/lib/types/locales/ca-ES.d.ts +45 -0
  27. package/lib/types/locales/de-DE.d.ts +45 -0
  28. package/lib/types/locales/en-US.d.ts +45 -0
  29. package/lib/types/locales/es-ES.d.ts +45 -0
  30. package/lib/types/locales/fa-IR.d.ts +45 -0
  31. package/lib/types/locales/fr-FR.d.ts +45 -0
  32. package/lib/types/locales/id-ID.d.ts +45 -0
  33. package/lib/types/locales/it-IT.d.ts +45 -0
  34. package/lib/types/locales/ja-JP.d.ts +45 -0
  35. package/lib/types/locales/ko-KR.d.ts +45 -0
  36. package/lib/types/locales/pl-PL.d.ts +45 -0
  37. package/lib/types/locales/pt-BR.d.ts +45 -0
  38. package/lib/types/locales/ru-RU.d.ts +45 -0
  39. package/lib/types/locales/sk-SK.d.ts +45 -0
  40. package/lib/types/locales/vi-VN.d.ts +45 -0
  41. package/lib/types/locales/zh-CN.d.ts +45 -0
  42. package/lib/types/locales/zh-HK.d.ts +45 -0
  43. package/lib/types/locales/zh-TW.d.ts +45 -0
  44. package/package.json +8 -8
package/lib/index.css CHANGED
@@ -67,6 +67,10 @@
67
67
  box-sizing: border-box;
68
68
  }
69
69
 
70
+ .univer-block {
71
+ display: block;
72
+ }
73
+
70
74
  .univer-flex {
71
75
  display: flex;
72
76
  }
@@ -84,6 +88,25 @@
84
88
  height: 1rem;
85
89
  }
86
90
 
91
+ .univer-size-5 {
92
+ width: 1.25rem;
93
+ height: 1.25rem;
94
+ }
95
+
96
+ .univer-size-7 {
97
+ width: 1.75rem;
98
+ height: 1.75rem;
99
+ }
100
+
101
+ .univer-size-full {
102
+ width: 100%;
103
+ height: 100%;
104
+ }
105
+
106
+ .\!univer-h-7 {
107
+ height: 1.75rem !important;
108
+ }
109
+
87
110
  .univer-h-6 {
88
111
  height: 1.5rem;
89
112
  }
@@ -100,6 +123,18 @@
100
123
  height: 100%;
101
124
  }
102
125
 
126
+ .univer-min-h-0 {
127
+ min-height: 0;
128
+ }
129
+
130
+ .univer-min-h-16 {
131
+ min-height: 4rem;
132
+ }
133
+
134
+ .univer-w-0 {
135
+ width: 0;
136
+ }
137
+
103
138
  .univer-w-6 {
104
139
  width: 1.5rem;
105
140
  }
@@ -108,6 +143,10 @@
108
143
  width: 100%;
109
144
  }
110
145
 
146
+ .univer-min-w-0 {
147
+ min-width: 0;
148
+ }
149
+
111
150
  .univer-min-w-32 {
112
151
  min-width: 8rem;
113
152
  }
@@ -116,10 +155,26 @@
116
155
  min-width: 2.25rem;
117
156
  }
118
157
 
158
+ .univer-max-w-full {
159
+ max-width: 100%;
160
+ }
161
+
119
162
  .univer-flex-1 {
120
163
  flex: 1;
121
164
  }
122
165
 
166
+ .univer-shrink-0 {
167
+ flex-shrink: 0;
168
+ }
169
+
170
+ .univer-cursor-not-allowed {
171
+ cursor: not-allowed;
172
+ }
173
+
174
+ .univer-resize-none {
175
+ resize: none;
176
+ }
177
+
123
178
  .univer-grid-cols-2 {
124
179
  grid-template-columns: repeat(2, minmax(0, 1fr));
125
180
  }
@@ -128,6 +183,10 @@
128
183
  grid-template-columns: repeat(3, minmax(0, 1fr));
129
184
  }
130
185
 
186
+ .univer-flex-col {
187
+ flex-direction: column;
188
+ }
189
+
131
190
  .univer-items-center {
132
191
  align-items: center;
133
192
  }
@@ -136,14 +195,60 @@
136
195
  justify-content: center;
137
196
  }
138
197
 
198
+ .univer-justify-between {
199
+ justify-content: space-between;
200
+ }
201
+
202
+ .univer-gap-0\.5 {
203
+ gap: .125rem;
204
+ }
205
+
139
206
  .univer-gap-1 {
140
207
  gap: .25rem;
141
208
  }
142
209
 
210
+ .univer-gap-1\.5 {
211
+ gap: .375rem;
212
+ }
213
+
143
214
  .univer-gap-2 {
144
215
  gap: .5rem;
145
216
  }
146
217
 
218
+ .univer-gap-3 {
219
+ gap: .75rem;
220
+ }
221
+
222
+ .univer-overflow-hidden {
223
+ overflow: hidden;
224
+ }
225
+
226
+ .univer-overflow-y-auto {
227
+ overflow-y: auto;
228
+ }
229
+
230
+ .univer-overflow-x-hidden {
231
+ overflow-x: hidden;
232
+ }
233
+
234
+ .univer-truncate {
235
+ text-overflow: ellipsis;
236
+ white-space: nowrap;
237
+ overflow: hidden;
238
+ }
239
+
240
+ .univer-text-ellipsis {
241
+ text-overflow: ellipsis;
242
+ }
243
+
244
+ .univer-whitespace-nowrap {
245
+ white-space: nowrap;
246
+ }
247
+
248
+ .\!univer-rounded {
249
+ border-radius: .25rem !important;
250
+ }
251
+
147
252
  .univer-rounded {
148
253
  border-radius: .25rem;
149
254
  }
@@ -160,6 +265,14 @@
160
265
  border-width: 1px;
161
266
  }
162
267
 
268
+ .univer-border-0 {
269
+ border-width: 0;
270
+ }
271
+
272
+ .univer-border-t {
273
+ border-top-width: 1px;
274
+ }
275
+
163
276
  .univer-border-solid {
164
277
  border-style: solid;
165
278
  }
@@ -168,10 +281,18 @@
168
281
  border-style: none;
169
282
  }
170
283
 
284
+ .\!univer-border-transparent {
285
+ border-color: #0000 !important;
286
+ }
287
+
171
288
  .univer-border-gray-200 {
172
289
  border-color: var(--univer-gray-200);
173
290
  }
174
291
 
292
+ .univer-border-primary-500 {
293
+ border-color: var(--univer-primary-500);
294
+ }
295
+
175
296
  .\!univer-bg-gray-800 {
176
297
  background-color: var(--univer-gray-800) !important;
177
298
  }
@@ -180,6 +301,10 @@
180
301
  background-color: var(--univer-gray-900) !important;
181
302
  }
182
303
 
304
+ .\!univer-bg-transparent {
305
+ background-color: #0000 !important;
306
+ }
307
+
183
308
  .univer-bg-gray-100 {
184
309
  background-color: var(--univer-gray-100);
185
310
  }
@@ -208,6 +333,19 @@
208
333
  padding: .25rem;
209
334
  }
210
335
 
336
+ .univer-p-2 {
337
+ padding: .5rem;
338
+ }
339
+
340
+ .univer-p-3 {
341
+ padding: .75rem;
342
+ }
343
+
344
+ .\!univer-px-1 {
345
+ padding-left: .25rem !important;
346
+ padding-right: .25rem !important;
347
+ }
348
+
211
349
  .univer-px-1 {
212
350
  padding-left: .25rem;
213
351
  padding-right: .25rem;
@@ -233,6 +371,23 @@
233
371
  padding-bottom: .5rem;
234
372
  }
235
373
 
374
+ .univer-py-6 {
375
+ padding-top: 1.5rem;
376
+ padding-bottom: 1.5rem;
377
+ }
378
+
379
+ .univer-pr-1\.5 {
380
+ padding-right: .375rem;
381
+ }
382
+
383
+ .univer-pt-1 {
384
+ padding-top: .25rem;
385
+ }
386
+
387
+ .univer-pt-3 {
388
+ padding-top: .75rem;
389
+ }
390
+
236
391
  .univer-text-left {
237
392
  text-align: left;
238
393
  }
@@ -241,6 +396,10 @@
241
396
  text-align: center;
242
397
  }
243
398
 
399
+ .univer-text-\[10px\] {
400
+ font-size: 10px;
401
+ }
402
+
244
403
  .univer-text-sm {
245
404
  font-size: .875rem;
246
405
  line-height: 1.25rem;
@@ -251,6 +410,18 @@
251
410
  line-height: 1rem;
252
411
  }
253
412
 
413
+ .univer-font-medium {
414
+ font-weight: 500;
415
+ }
416
+
417
+ .univer-font-semibold {
418
+ font-weight: 600;
419
+ }
420
+
421
+ .univer-uppercase {
422
+ text-transform: uppercase;
423
+ }
424
+
254
425
  .\!univer-text-primary-300 {
255
426
  color: var(--univer-primary-300) !important;
256
427
  }
@@ -259,6 +430,10 @@
259
430
  color: var(--univer-gray-400);
260
431
  }
261
432
 
433
+ .univer-text-gray-500 {
434
+ color: var(--univer-gray-500);
435
+ }
436
+
262
437
  .univer-text-gray-600 {
263
438
  color: var(--univer-gray-600);
264
439
  }
@@ -275,6 +450,21 @@
275
450
  color: var(--univer-primary-600);
276
451
  }
277
452
 
453
+ .univer-opacity-50 {
454
+ opacity: .5;
455
+ }
456
+
457
+ .univer-opacity-70 {
458
+ opacity: .7;
459
+ }
460
+
461
+ .\!univer-shadow-none {
462
+ --univer-tw-shadow: 0 0 #0000 !important;
463
+ --univer-tw-shadow-colored: 0 0 #0000 !important;
464
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000 !important;
465
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow) !important;
466
+ }
467
+
278
468
  .univer-shadow-lg {
279
469
  --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
280
470
  --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
@@ -289,24 +479,101 @@
289
479
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
290
480
  }
291
481
 
482
+ .univer-outline-none {
483
+ outline-offset: 2px;
484
+ outline: 2px solid #0000;
485
+ }
486
+
292
487
  .univer-transition-colors {
293
488
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
294
489
  transition-duration: .15s;
295
490
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
296
491
  }
297
492
 
493
+ .univer-transition-transform {
494
+ transition-property: transform;
495
+ transition-duration: .15s;
496
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
497
+ }
498
+
298
499
  .hover\:univer-bg-gray-100:hover {
299
500
  background-color: var(--univer-gray-100);
300
501
  }
301
502
 
503
+ .hover\:univer-bg-gray-50:hover {
504
+ background-color: var(--univer-gray-50);
505
+ }
506
+
507
+ .hover\:univer-text-gray-600:hover {
508
+ color: var(--univer-gray-600);
509
+ }
510
+
511
+ .hover\:univer-text-gray-900:hover {
512
+ color: var(--univer-gray-900);
513
+ }
514
+
515
+ .focus\:\!univer-border-primary-500:focus {
516
+ border-color: var(--univer-primary-500) !important;
517
+ }
518
+
519
+ .focus\:univer-border-primary-500:focus {
520
+ border-color: var(--univer-primary-500);
521
+ }
522
+
523
+ .focus\:\!univer-bg-white:focus {
524
+ background-color: var(--univer-white) !important;
525
+ }
526
+
527
+ .focus\:\!univer-ring-1:focus {
528
+ --univer-tw-ring-offset-shadow: var(--univer-tw-ring-inset) 0 0 0 var(--univer-tw-ring-offset-width) var(--univer-tw-ring-offset-color) !important;
529
+ --univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(1px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color) !important;
530
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000 !important;
531
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000) !important;
532
+ }
533
+
534
+ .focus\:univer-ring-1:focus {
535
+ --univer-tw-ring-offset-shadow: var(--univer-tw-ring-inset) 0 0 0 var(--univer-tw-ring-offset-width) var(--univer-tw-ring-offset-color);
536
+ --univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(1px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color);
537
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
538
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
539
+ }
540
+
541
+ .focus\:\!univer-ring-primary-100:focus {
542
+ --univer-tw-ring-color: var(--univer-primary-100) !important;
543
+ }
544
+
545
+ .focus\:univer-ring-primary-100:focus {
546
+ --univer-tw-ring-color: var(--univer-primary-100);
547
+ }
548
+
549
+ .disabled\:univer-cursor-default:disabled {
550
+ cursor: default;
551
+ }
552
+
302
553
  .disabled\:univer-cursor-not-allowed:disabled {
303
554
  cursor: not-allowed;
304
555
  }
305
556
 
557
+ .disabled\:\!univer-bg-transparent:disabled {
558
+ background-color: #0000 !important;
559
+ }
560
+
561
+ .disabled\:univer-opacity-100:disabled {
562
+ opacity: 1;
563
+ }
564
+
306
565
  .disabled\:univer-opacity-40:disabled {
307
566
  opacity: .4;
308
567
  }
309
568
 
569
+ .disabled\:univer-opacity-70:disabled {
570
+ opacity: .7;
571
+ }
572
+
573
+ .disabled\:hover\:univer-bg-transparent:hover:disabled {
574
+ background-color: #0000;
575
+ }
576
+
310
577
  .dark\:\!univer-border-gray-700:where(.univer-dark, .univer-dark *) {
311
578
  border-color: var(--univer-gray-700) !important;
312
579
  }
@@ -331,6 +598,22 @@
331
598
  color: var(--univer-gray-200) !important;
332
599
  }
333
600
 
601
+ .dark\:\!univer-text-gray-300:where(.univer-dark, .univer-dark *) {
602
+ color: var(--univer-gray-300) !important;
603
+ }
604
+
605
+ .dark\:\!univer-text-gray-400:where(.univer-dark, .univer-dark *) {
606
+ color: var(--univer-gray-400) !important;
607
+ }
608
+
609
+ .dark\:\!univer-text-gray-500:where(.univer-dark, .univer-dark *) {
610
+ color: var(--univer-gray-500) !important;
611
+ }
612
+
613
+ .dark\:\!univer-text-primary-200:where(.univer-dark, .univer-dark *) {
614
+ color: var(--univer-primary-200) !important;
615
+ }
616
+
334
617
  .dark\:\!univer-text-primary-300:where(.univer-dark, .univer-dark *) {
335
618
  color: var(--univer-primary-300) !important;
336
619
  }
@@ -347,6 +630,22 @@
347
630
  background-color: var(--univer-gray-800) !important;
348
631
  }
349
632
 
633
+ .dark\:hover\:\!univer-text-gray-100:hover:where(.univer-dark, .univer-dark *) {
634
+ color: var(--univer-gray-100) !important;
635
+ }
636
+
637
+ .dark\:hover\:\!univer-text-gray-300:hover:where(.univer-dark, .univer-dark *) {
638
+ color: var(--univer-gray-300) !important;
639
+ }
640
+
641
+ .dark\:focus\:\!univer-bg-gray-900:focus:where(.univer-dark, .univer-dark *) {
642
+ background-color: var(--univer-gray-900) !important;
643
+ }
644
+
645
+ .dark\:focus\:\!univer-ring-primary-900:focus:where(.univer-dark, .univer-dark *) {
646
+ --univer-tw-ring-color: var(--univer-primary-900) !important;
647
+ }
648
+
350
649
  .\[\&\>div\]\:univer-grid > div {
351
650
  display: grid;
352
651
  }