@univerjs/preset-sheets-conditional-formatting 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/index.css CHANGED
@@ -31,10 +31,6 @@
31
31
  margin-bottom: .625rem;
32
32
  }
33
33
 
34
- .univer-mb-1 {
35
- margin-bottom: .25rem;
36
- }
37
-
38
34
  .univer-mb-2 {
39
35
  margin-bottom: .5rem;
40
36
  }
@@ -43,30 +39,18 @@
43
39
  margin-bottom: .625rem;
44
40
  }
45
41
 
46
- .univer-mb-3 {
47
- margin-bottom: .75rem;
42
+ .univer-mb-4 {
43
+ margin-bottom: 1rem;
48
44
  }
49
45
 
50
46
  .univer-ml-1 {
51
47
  margin-left: .25rem;
52
48
  }
53
49
 
54
- .univer-ml-2 {
55
- margin-left: .5rem;
56
- }
57
-
58
50
  .univer-ml-3 {
59
51
  margin-left: .75rem;
60
52
  }
61
53
 
62
- .univer-ml-6 {
63
- margin-left: 1.5rem;
64
- }
65
-
66
- .univer-mr-2 {
67
- margin-right: .5rem;
68
- }
69
-
70
54
  .univer-mt-0 {
71
55
  margin-top: 0;
72
56
  }
@@ -218,10 +202,22 @@
218
202
  justify-content: space-between;
219
203
  }
220
204
 
205
+ .univer-gap-0\.5 {
206
+ gap: .125rem;
207
+ }
208
+
209
+ .univer-gap-1 {
210
+ gap: .25rem;
211
+ }
212
+
221
213
  .univer-gap-2 {
222
214
  gap: .5rem;
223
215
  }
224
216
 
217
+ .univer-gap-3 {
218
+ gap: .75rem;
219
+ }
220
+
225
221
  .univer-gap-4 {
226
222
  gap: 1rem;
227
223
  }
@@ -260,6 +256,10 @@
260
256
  border-width: 1px;
261
257
  }
262
258
 
259
+ .univer-border-0 {
260
+ border-width: 0;
261
+ }
262
+
263
263
  .univer-border-solid {
264
264
  border-style: solid;
265
265
  }
@@ -276,6 +276,14 @@
276
276
  background-color: var(--univer-gray-100);
277
277
  }
278
278
 
279
+ .univer-bg-primary-50 {
280
+ background-color: var(--univer-primary-50);
281
+ }
282
+
283
+ .univer-bg-transparent {
284
+ background-color: #0000;
285
+ }
286
+
279
287
  .univer-bg-white {
280
288
  background-color: var(--univer-white);
281
289
  }
@@ -288,6 +296,10 @@
288
296
  padding: .25rem;
289
297
  }
290
298
 
299
+ .univer-p-3 {
300
+ padding: .75rem;
301
+ }
302
+
291
303
  .univer-p-4 {
292
304
  padding: 1rem;
293
305
  }
@@ -297,6 +309,11 @@
297
309
  padding-right: .25rem;
298
310
  }
299
311
 
312
+ .univer-px-2 {
313
+ padding-left: .5rem;
314
+ padding-right: .5rem;
315
+ }
316
+
300
317
  .univer-px-4 {
301
318
  padding-left: 1rem;
302
319
  padding-right: 1rem;
@@ -312,10 +329,6 @@
312
329
  padding-bottom: 1rem;
313
330
  }
314
331
 
315
- .univer-pl-1 {
316
- padding-left: .25rem;
317
- }
318
-
319
332
  .univer-pl-5 {
320
333
  padding-left: 1.25rem;
321
334
  }
@@ -362,6 +375,10 @@
362
375
  color: var(--univer-gray-400);
363
376
  }
364
377
 
378
+ .univer-text-gray-500 {
379
+ color: var(--univer-gray-500);
380
+ }
381
+
365
382
  .univer-text-gray-600 {
366
383
  color: var(--univer-gray-600);
367
384
  }
@@ -374,6 +391,22 @@
374
391
  color: var(--univer-red-500);
375
392
  }
376
393
 
394
+ .univer-outline-none {
395
+ outline-offset: 2px;
396
+ outline: 2px solid #0000;
397
+ }
398
+
399
+ .univer-ring-1 {
400
+ --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);
401
+ --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);
402
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
403
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
404
+ }
405
+
406
+ .univer-ring-primary-600 {
407
+ --univer-tw-ring-color: var(--univer-primary-600);
408
+ }
409
+
377
410
  .univer-transition-all {
378
411
  transition-property: all;
379
412
  transition-duration: .15s;
@@ -386,6 +419,10 @@
386
419
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
387
420
  }
388
421
 
422
+ .last\:univer-mb-0:last-child {
423
+ margin-bottom: 0;
424
+ }
425
+
389
426
  .univer-group:hover .group-hover\:univer-flex {
390
427
  display: flex;
391
428
  }
@@ -402,14 +439,45 @@
402
439
  background-color: var(--univer-gray-200);
403
440
  }
404
441
 
442
+ .focus-visible\:univer-ring-2:focus-visible {
443
+ --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);
444
+ --univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(2px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color);
445
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
446
+ box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
447
+ }
448
+
449
+ .focus-visible\:univer-ring-primary-600:focus-visible {
450
+ --univer-tw-ring-color: var(--univer-primary-600);
451
+ }
452
+
453
+ .rtl\:univer-grid-flow-dense:where([dir="rtl"], [dir="rtl"] *) {
454
+ grid-auto-flow: dense;
455
+ }
456
+
457
+ .rtl\:univer-flex-row-reverse:where([dir="rtl"], [dir="rtl"] *) {
458
+ flex-direction: row-reverse;
459
+ }
460
+
461
+ .rtl\:univer-justify-end:where([dir="rtl"], [dir="rtl"] *) {
462
+ justify-content: flex-end;
463
+ }
464
+
405
465
  .dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
406
466
  background-color: var(--univer-gray-700) !important;
407
467
  }
408
468
 
469
+ .dark\:\!univer-bg-primary-900:where(.univer-dark, .univer-dark *) {
470
+ background-color: var(--univer-primary-900) !important;
471
+ }
472
+
409
473
  .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
410
474
  color: var(--univer-gray-200) !important;
411
475
  }
412
476
 
477
+ .dark\:\!univer-text-gray-400:where(.univer-dark, .univer-dark *) {
478
+ color: var(--univer-gray-400) !important;
479
+ }
480
+
413
481
  .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
414
482
  color: var(--univer-white) !important;
415
483
  }
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
@@ -36,6 +36,7 @@ declare const _default: {
36
36
  and: string;
37
37
  when: string;
38
38
  onlyShowIcon: string;
39
+ noCellIcon: string;
39
40
  };
40
41
  symbol: {
41
42
  greaterThan: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-conditional-formatting",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.4",
4
4
  "private": false,
5
5
  "description": "Preset for conditional formatting in Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -56,17 +56,17 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/sheets-conditional-formatting-ui": "1.0.0-alpha.2",
60
- "@univerjs/sheets-conditional-formatting": "1.0.0-alpha.2"
59
+ "@univerjs/sheets-conditional-formatting": "1.0.0-alpha.4",
60
+ "@univerjs/sheets-conditional-formatting-ui": "1.0.0-alpha.4"
61
61
  },
62
62
  "devDependencies": {
63
63
  "react": "18.3.1",
64
64
  "react-dom": "18.3.1",
65
65
  "rxjs": "^7.8.2",
66
66
  "typescript": "^6.0.3",
67
- "@univerjs-infra/shared": "1.0.0-alpha.2",
68
- "@univerjs/core": "1.0.0-alpha.2",
69
- "@univerjs/presets": "1.0.0-alpha.2"
67
+ "@univerjs/core": "1.0.0-alpha.4",
68
+ "@univerjs/presets": "1.0.0-alpha.4",
69
+ "@univerjs-infra/shared": "1.0.0-alpha.4"
70
70
  },
71
71
  "scripts": {
72
72
  "build:bundle": "univer-cli preset build --cleanup",