@univerjs/sheets-formula-ui 1.0.0-alpha.2 → 1.0.0-alpha.4
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/lib/cjs/index.js +886 -411
- package/lib/es/index.js +890 -416
- package/lib/index.css +75 -0
- package/lib/index.js +890 -416
- package/lib/types/index.d.ts +1 -0
- package/lib/types/views/formula-editor/formula-embed-integration.service.d.ts +59 -0
- package/lib/types/views/formula-editor/hooks/use-focus.d.ts +11 -0
- package/lib/types/views/formula-editor/hooks/use-formula-selection.d.ts +22 -0
- package/lib/types/views/formula-editor/hooks/use-highlight.d.ts +10 -3
- package/lib/types/views/formula-editor/hooks/use-left-and-right-arrow.d.ts +8 -1
- package/lib/types/views/formula-editor/hooks/use-refactor-effect.d.ts +1 -1
- package/lib/types/views/formula-editor/hooks/use-sheet-selection-change.d.ts +33 -0
- package/lib/types/views/formula-editor/index.d.ts +2 -1
- package/lib/umd/index.js +4 -3
- package/package.json +15 -15
package/lib/index.css
CHANGED
|
@@ -42,6 +42,11 @@
|
|
|
42
42
|
margin-bottom: .5rem;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
.univer-my-3 {
|
|
46
|
+
margin-top: .75rem;
|
|
47
|
+
margin-bottom: .75rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
.univer-mb-0 {
|
|
46
51
|
margin-bottom: 0;
|
|
47
52
|
}
|
|
@@ -74,6 +79,10 @@
|
|
|
74
79
|
margin-top: .25rem;
|
|
75
80
|
}
|
|
76
81
|
|
|
82
|
+
.univer-mt-1\.5 {
|
|
83
|
+
margin-top: .375rem;
|
|
84
|
+
}
|
|
85
|
+
|
|
77
86
|
.univer-mt-2 {
|
|
78
87
|
margin-top: .5rem;
|
|
79
88
|
}
|
|
@@ -82,6 +91,10 @@
|
|
|
82
91
|
margin-top: .75rem;
|
|
83
92
|
}
|
|
84
93
|
|
|
94
|
+
.univer-mt-4 {
|
|
95
|
+
margin-top: 1rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
85
98
|
.univer-box-border {
|
|
86
99
|
box-sizing: border-box;
|
|
87
100
|
}
|
|
@@ -194,6 +207,10 @@
|
|
|
194
207
|
gap: .5rem;
|
|
195
208
|
}
|
|
196
209
|
|
|
210
|
+
.univer-gap-3 {
|
|
211
|
+
gap: .75rem;
|
|
212
|
+
}
|
|
213
|
+
|
|
197
214
|
.univer-gap-4 {
|
|
198
215
|
gap: 1rem;
|
|
199
216
|
}
|
|
@@ -232,10 +249,18 @@
|
|
|
232
249
|
border-radius: .25rem;
|
|
233
250
|
}
|
|
234
251
|
|
|
252
|
+
.univer-rounded-full {
|
|
253
|
+
border-radius: 9999px;
|
|
254
|
+
}
|
|
255
|
+
|
|
235
256
|
.univer-rounded-lg {
|
|
236
257
|
border-radius: .5rem;
|
|
237
258
|
}
|
|
238
259
|
|
|
260
|
+
.univer-rounded-md {
|
|
261
|
+
border-radius: .375rem;
|
|
262
|
+
}
|
|
263
|
+
|
|
239
264
|
.univer-rounded-none {
|
|
240
265
|
border-radius: 0;
|
|
241
266
|
}
|
|
@@ -265,10 +290,22 @@
|
|
|
265
290
|
background-color: var(--univer-gray-600) !important;
|
|
266
291
|
}
|
|
267
292
|
|
|
293
|
+
.univer-bg-gray-100 {
|
|
294
|
+
background-color: var(--univer-gray-100);
|
|
295
|
+
}
|
|
296
|
+
|
|
268
297
|
.univer-bg-gray-200 {
|
|
269
298
|
background-color: var(--univer-gray-200);
|
|
270
299
|
}
|
|
271
300
|
|
|
301
|
+
.univer-bg-gray-50 {
|
|
302
|
+
background-color: var(--univer-gray-50);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.univer-bg-primary-50 {
|
|
306
|
+
background-color: var(--univer-primary-50);
|
|
307
|
+
}
|
|
308
|
+
|
|
272
309
|
.univer-bg-primary-600 {
|
|
273
310
|
background-color: var(--univer-primary-600);
|
|
274
311
|
}
|
|
@@ -302,6 +339,11 @@
|
|
|
302
339
|
padding-right: .5rem;
|
|
303
340
|
}
|
|
304
341
|
|
|
342
|
+
.univer-px-3 {
|
|
343
|
+
padding-left: .75rem;
|
|
344
|
+
padding-right: .75rem;
|
|
345
|
+
}
|
|
346
|
+
|
|
305
347
|
.univer-px-4 {
|
|
306
348
|
padding-left: 1rem;
|
|
307
349
|
padding-right: 1rem;
|
|
@@ -317,6 +359,11 @@
|
|
|
317
359
|
padding-right: 1.75rem;
|
|
318
360
|
}
|
|
319
361
|
|
|
362
|
+
.univer-py-0\.5 {
|
|
363
|
+
padding-top: .125rem;
|
|
364
|
+
padding-bottom: .125rem;
|
|
365
|
+
}
|
|
366
|
+
|
|
320
367
|
.univer-py-1 {
|
|
321
368
|
padding-top: .25rem;
|
|
322
369
|
padding-bottom: .25rem;
|
|
@@ -340,6 +387,10 @@
|
|
|
340
387
|
padding-top: 0;
|
|
341
388
|
}
|
|
342
389
|
|
|
390
|
+
.univer-font-mono {
|
|
391
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
|
|
392
|
+
}
|
|
393
|
+
|
|
343
394
|
.univer-text-base {
|
|
344
395
|
font-size: 1rem;
|
|
345
396
|
line-height: 1.5rem;
|
|
@@ -363,6 +414,14 @@
|
|
|
363
414
|
font-weight: 500;
|
|
364
415
|
}
|
|
365
416
|
|
|
417
|
+
.univer-font-semibold {
|
|
418
|
+
font-weight: 600;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.univer-leading-4 {
|
|
422
|
+
line-height: 1rem;
|
|
423
|
+
}
|
|
424
|
+
|
|
366
425
|
.univer-leading-5 {
|
|
367
426
|
line-height: 1.25rem;
|
|
368
427
|
}
|
|
@@ -452,10 +511,22 @@
|
|
|
452
511
|
background-color: var(--univer-gray-600) !important;
|
|
453
512
|
}
|
|
454
513
|
|
|
514
|
+
.dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
|
|
515
|
+
background-color: var(--univer-gray-700) !important;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.dark\:\!univer-bg-gray-800:where(.univer-dark, .univer-dark *) {
|
|
519
|
+
background-color: var(--univer-gray-800) !important;
|
|
520
|
+
}
|
|
521
|
+
|
|
455
522
|
.dark\:\!univer-bg-gray-900:where(.univer-dark, .univer-dark *) {
|
|
456
523
|
background-color: var(--univer-gray-900) !important;
|
|
457
524
|
}
|
|
458
525
|
|
|
526
|
+
.dark\:\!univer-bg-primary-900:where(.univer-dark, .univer-dark *) {
|
|
527
|
+
background-color: var(--univer-primary-900) !important;
|
|
528
|
+
}
|
|
529
|
+
|
|
459
530
|
.dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
|
|
460
531
|
color: var(--univer-gray-200) !important;
|
|
461
532
|
}
|
|
@@ -464,6 +535,10 @@
|
|
|
464
535
|
color: var(--univer-gray-300) !important;
|
|
465
536
|
}
|
|
466
537
|
|
|
538
|
+
.dark\:\!univer-text-primary-200:where(.univer-dark, .univer-dark *) {
|
|
539
|
+
color: var(--univer-primary-200) !important;
|
|
540
|
+
}
|
|
541
|
+
|
|
467
542
|
.dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
|
|
468
543
|
color: var(--univer-white) !important;
|
|
469
544
|
}
|