@jjlmoya/utils-diy 1.10.0 → 1.11.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-diy",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -280,41 +280,41 @@
280
280
  margin-bottom: 0;
281
281
  }
282
282
 
283
- :global(.theme-dark) .bc-input-panel {
283
+ .theme-dark .bc-input-panel {
284
284
  background: #18181b;
285
285
  border-color: rgba(51, 65, 85, 0.4);
286
286
  }
287
287
 
288
- :global(.theme-dark) .bc-panel-icon {
288
+ .theme-dark .bc-panel-icon {
289
289
  background: rgba(30, 58, 138, 0.3);
290
290
  }
291
291
 
292
- :global(.theme-dark) .bc-panel-title {
292
+ .theme-dark .bc-panel-title {
293
293
  color: #f1f5f9;
294
294
  }
295
295
 
296
- :global(.theme-dark) .bc-label {
296
+ .theme-dark .bc-label {
297
297
  color: #94a3b8;
298
298
  }
299
299
 
300
- :global(.theme-dark) .bc-input {
300
+ .theme-dark .bc-input {
301
301
  background: #27272a;
302
302
  color: #f1f5f9;
303
303
  }
304
304
 
305
- :global(.theme-dark) .bc-input:focus {
305
+ .theme-dark .bc-input:focus {
306
306
  border-color: #3b82f6;
307
307
  }
308
308
 
309
- :global(.theme-dark) .bc-unit-toggle {
309
+ .theme-dark .bc-unit-toggle {
310
310
  background: #27272a;
311
311
  }
312
312
 
313
- :global(.theme-dark) [data-bc-unit][data-bc-active='true'] {
313
+ .theme-dark [data-bc-unit][data-bc-active='true'] {
314
314
  background: #3f3f46;
315
315
  color: #f1f5f9;
316
316
  }
317
317
 
318
- :global(.theme-dark) .bc-blueprint {
318
+ .theme-dark .bc-blueprint {
319
319
  background: #0f172a;
320
320
  }
@@ -394,137 +394,137 @@
394
394
  color: #047857;
395
395
  }
396
396
 
397
- :global(.theme-dark) .cc-root {
397
+ .theme-dark .cc-root {
398
398
  background: linear-gradient(135deg, #0f172a, #1e293b);
399
399
  border-color: #334155;
400
400
  }
401
401
 
402
- :global(.theme-dark) .cc-label {
402
+ .theme-dark .cc-label {
403
403
  color: #fbbf24;
404
404
  }
405
405
 
406
- :global(.theme-dark) .cc-input {
406
+ .theme-dark .cc-input {
407
407
  background: #1e293b;
408
408
  border-color: #b45309;
409
409
  color: #f8fafc;
410
410
  }
411
411
 
412
- :global(.theme-dark) .cc-input:focus {
412
+ .theme-dark .cc-input:focus {
413
413
  border-color: #f59e0b;
414
414
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
415
415
  }
416
416
 
417
- :global(.theme-dark) .cc-slider {
417
+ .theme-dark .cc-slider {
418
418
  background: rgba(180, 83, 9, 0.3);
419
419
  }
420
420
 
421
- :global(.theme-dark) .cc-slider-val {
421
+ .theme-dark .cc-slider-val {
422
422
  color: #fbbf24;
423
423
  }
424
424
 
425
- :global(.theme-dark) .cc-slider-labels {
425
+ .theme-dark .cc-slider-labels {
426
426
  color: #d97706;
427
427
  }
428
428
 
429
- :global(.theme-dark) .cc-preset-terracota {
429
+ .theme-dark .cc-preset-terracota {
430
430
  background: rgba(249, 115, 22, 0.15);
431
431
  border-color: #c2410c;
432
432
  color: #fb923c;
433
433
  }
434
434
 
435
- :global(.theme-dark) .cc-preset-terracota:hover {
435
+ .theme-dark .cc-preset-terracota:hover {
436
436
  background: rgba(249, 115, 22, 0.25);
437
437
  }
438
438
 
439
- :global(.theme-dark) .cc-preset-gres {
439
+ .theme-dark .cc-preset-gres {
440
440
  background: rgba(245, 158, 11, 0.15);
441
441
  border-color: #b45309;
442
442
  color: #fbbf24;
443
443
  }
444
444
 
445
- :global(.theme-dark) .cc-preset-gres:hover {
445
+ .theme-dark .cc-preset-gres:hover {
446
446
  background: rgba(245, 158, 11, 0.25);
447
447
  }
448
448
 
449
- :global(.theme-dark) .cc-preset-porcelana {
449
+ .theme-dark .cc-preset-porcelana {
450
450
  background: rgba(220, 38, 38, 0.15);
451
451
  border-color: #991b1b;
452
452
  color: #f87171;
453
453
  }
454
454
 
455
- :global(.theme-dark) .cc-preset-porcelana:hover {
455
+ .theme-dark .cc-preset-porcelana:hover {
456
456
  background: rgba(220, 38, 38, 0.25);
457
457
  }
458
458
 
459
- :global(.theme-dark) .cc-result-box {
459
+ .theme-dark .cc-result-box {
460
460
  background: #1e293b;
461
461
  border-color: #b45309;
462
462
  }
463
463
 
464
- :global(.theme-dark) .cc-result-title {
464
+ .theme-dark .cc-result-title {
465
465
  color: #fbbf24;
466
466
  }
467
467
 
468
- :global(.theme-dark) .cc-result-label {
468
+ .theme-dark .cc-result-label {
469
469
  color: #94a3b8;
470
470
  }
471
471
 
472
- :global(.theme-dark) .cc-value-final {
472
+ .theme-dark .cc-value-final {
473
473
  color: #34d399;
474
474
  }
475
475
 
476
- :global(.theme-dark) .cc-value-loss {
476
+ .theme-dark .cc-value-loss {
477
477
  color: #f87171;
478
478
  }
479
479
 
480
- :global(.theme-dark) .cc-tip {
480
+ .theme-dark .cc-tip {
481
481
  background: rgba(180, 83, 9, 0.15);
482
482
  border-color: rgba(180, 83, 9, 0.4);
483
483
  color: #fbbf24;
484
484
  }
485
485
 
486
- :global(.theme-dark) .cc-panel-right {
486
+ .theme-dark .cc-panel-right {
487
487
  background: linear-gradient(135deg, #1e293b, #0f172a);
488
488
  }
489
489
 
490
- :global(.theme-dark) .cc-circle-initial {
490
+ .theme-dark .cc-circle-initial {
491
491
  border-color: #b45309;
492
492
  background: rgba(180, 83, 9, 0.1);
493
493
  }
494
494
 
495
- :global(.theme-dark) .cc-badge-initial {
495
+ .theme-dark .cc-badge-initial {
496
496
  background: #d97706;
497
497
  }
498
498
 
499
- :global(.theme-dark) .cc-circle-final {
499
+ .theme-dark .cc-circle-final {
500
500
  border-color: #10b981;
501
501
  background: rgba(16, 185, 129, 0.2);
502
502
  }
503
503
 
504
- :global(.theme-dark) .cc-viz-number {
504
+ .theme-dark .cc-viz-number {
505
505
  color: #6ee7b7;
506
506
  }
507
507
 
508
- :global(.theme-dark) .cc-viz-unit {
508
+ .theme-dark .cc-viz-unit {
509
509
  color: #34d399;
510
510
  }
511
511
 
512
- :global(.theme-dark) .cc-badge-loss {
512
+ .theme-dark .cc-badge-loss {
513
513
  background: #ef4444;
514
514
  }
515
515
 
516
- :global(.theme-dark) .cc-area-item {
516
+ .theme-dark .cc-area-item {
517
517
  background: rgba(30, 41, 59, 0.6);
518
518
  }
519
519
 
520
- :global(.theme-dark) .cc-area-label {
520
+ .theme-dark .cc-area-label {
521
521
  color: #94a3b8;
522
522
  }
523
523
 
524
- :global(.theme-dark) .cc-area-initial {
524
+ .theme-dark .cc-area-initial {
525
525
  color: #fbbf24;
526
526
  }
527
527
 
528
- :global(.theme-dark) .cc-area-final {
528
+ .theme-dark .cc-area-final {
529
529
  color: #34d399;
530
530
  }
@@ -29,7 +29,7 @@
29
29
  }
30
30
  }
31
31
 
32
- :global(.theme-dark) .cc-card {
32
+ .theme-dark .cc-card {
33
33
  background: rgba(15, 23, 42, 0.7);
34
34
  border: 1px solid rgba(255, 255, 255, 0.05);
35
35
  }
@@ -54,7 +54,7 @@
54
54
  color: #64748b;
55
55
  }
56
56
 
57
- :global(.theme-dark) .cc-mix-btn {
57
+ .theme-dark .cc-mix-btn {
58
58
  background: rgba(30, 41, 59, 0.5);
59
59
  }
60
60
 
@@ -76,7 +76,7 @@
76
76
  transform: translateY(-2px);
77
77
  }
78
78
 
79
- :global(.theme-dark) .cc-mix-btn.cc-active {
79
+ .theme-dark .cc-mix-btn.cc-active {
80
80
  background: rgba(34, 197, 94, 0.1);
81
81
  color: #4ade80;
82
82
  }
@@ -96,7 +96,7 @@
96
96
  align-self: flex-start;
97
97
  }
98
98
 
99
- :global(.theme-dark) .cc-mode-selector {
99
+ .theme-dark .cc-mode-selector {
100
100
  background: rgba(30, 41, 59, 0.8);
101
101
  }
102
102
 
@@ -126,7 +126,7 @@
126
126
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
127
127
  }
128
128
 
129
- :global(.theme-dark) .cc-mode-btn.cc-active {
129
+ .theme-dark .cc-mode-btn.cc-active {
130
130
  background: #1e293b;
131
131
  color: #fff;
132
132
  }
@@ -151,7 +151,7 @@
151
151
  flex-direction: column;
152
152
  }
153
153
 
154
- :global(.theme-dark) .cc-dims-panel.cc-active {
154
+ .theme-dark .cc-dims-panel.cc-active {
155
155
  background: rgba(30, 41, 59, 0.3);
156
156
  border-color: #334155;
157
157
  }
@@ -193,7 +193,7 @@
193
193
  outline: none;
194
194
  }
195
195
 
196
- :global(.theme-dark) .cc-dim-input-wrap input {
196
+ .theme-dark .cc-dim-input-wrap input {
197
197
  background: #0f172a;
198
198
  border-color: #1e293b;
199
199
  color: #fff;
@@ -239,7 +239,7 @@
239
239
  transition: all 0.2s ease;
240
240
  }
241
241
 
242
- :global(.theme-dark) .cc-vol-input-wrap input {
242
+ .theme-dark .cc-vol-input-wrap input {
243
243
  background: #0f172a;
244
244
  border-color: #1e293b;
245
245
  color: #fff;
@@ -277,7 +277,7 @@
277
277
  transition: all 0.2s ease;
278
278
  }
279
279
 
280
- :global(.theme-dark) .cc-binder-option {
280
+ .theme-dark .cc-binder-option {
281
281
  background: rgba(30, 41, 59, 0.5);
282
282
  }
283
283
 
@@ -287,7 +287,7 @@
287
287
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
288
288
  }
289
289
 
290
- :global(.theme-dark) .cc-binder-option.cc-active {
290
+ .theme-dark .cc-binder-option.cc-active {
291
291
  background: #1e293b;
292
292
  border-color: #10b981;
293
293
  }
@@ -331,7 +331,7 @@
331
331
  color: #1e293b;
332
332
  }
333
333
 
334
- :global(.theme-dark) .cc-binder-option.cc-active .cc-binder-label {
334
+ .theme-dark .cc-binder-option.cc-active .cc-binder-label {
335
335
  color: #fff;
336
336
  }
337
337
 
@@ -408,7 +408,7 @@
408
408
  transition: all 0.3s ease;
409
409
  }
410
410
 
411
- :global(.theme-dark) .cc-result-card {
411
+ .theme-dark .cc-result-card {
412
412
  background: #1e293b;
413
413
  border-color: #334155;
414
414
  }
@@ -431,7 +431,7 @@
431
431
  line-height: 1;
432
432
  }
433
433
 
434
- :global(.theme-dark) .cc-result-value {
434
+ .theme-dark .cc-result-value {
435
435
  color: #fff;
436
436
  }
437
437
 
@@ -449,7 +449,7 @@
449
449
  color: #475569;
450
450
  }
451
451
 
452
- :global(.theme-dark) .cc-result-label {
452
+ .theme-dark .cc-result-label {
453
453
  color: #94a3b8;
454
454
  }
455
455
 
@@ -462,7 +462,7 @@
462
462
  gap: 0.75rem;
463
463
  }
464
464
 
465
- :global(.theme-dark) .cc-proportions-banner {
465
+ .theme-dark .cc-proportions-banner {
466
466
  background: rgba(30, 41, 59, 0.3);
467
467
  }
468
468
 
@@ -489,7 +489,7 @@
489
489
  overflow: hidden;
490
490
  }
491
491
 
492
- :global(.theme-dark) .cc-proportion-bar {
492
+ .theme-dark .cc-proportion-bar {
493
493
  background: #1e293b;
494
494
  }
495
495
 
@@ -525,7 +525,7 @@
525
525
  color: #475569;
526
526
  }
527
527
 
528
- :global(.theme-dark) .cc-prop-label {
528
+ .theme-dark .cc-prop-label {
529
529
  color: #94a3b8;
530
530
  }
531
531
 
@@ -546,7 +546,7 @@
546
546
  line-height: 1.5;
547
547
  }
548
548
 
549
- :global(.theme-dark) .cc-info-banner {
549
+ .theme-dark .cc-info-banner {
550
550
  background: rgba(34, 197, 94, 0.1);
551
551
  color: #4ade80;
552
552
  }
@@ -34,7 +34,7 @@
34
34
  border: 1px solid #f1f5f9;
35
35
  }
36
36
 
37
- :global(.theme-dark) .co-card {
37
+ .theme-dark .co-card {
38
38
  background: #1e293b;
39
39
  border-color: #334155;
40
40
  }
@@ -49,7 +49,7 @@
49
49
  margin: 0 0 1rem;
50
50
  }
51
51
 
52
- :global(.theme-dark) .co-card-title {
52
+ .theme-dark .co-card-title {
53
53
  color: #fff;
54
54
  }
55
55
 
@@ -79,7 +79,7 @@
79
79
  margin-bottom: 1.5rem;
80
80
  }
81
81
 
82
- :global(.theme-dark) .co-mode-toggle {
82
+ .theme-dark .co-mode-toggle {
83
83
  background: rgba(30, 41, 59, 0.8);
84
84
  }
85
85
 
@@ -102,11 +102,11 @@
102
102
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
103
103
  }
104
104
 
105
- :global(.theme-dark) .co-mode-btn {
105
+ .theme-dark .co-mode-btn {
106
106
  color: #94a3b8;
107
107
  }
108
108
 
109
- :global(.theme-dark) .co-mode-btn.co-mode-active {
109
+ .theme-dark .co-mode-btn.co-mode-active {
110
110
  color: #fff;
111
111
  }
112
112
 
@@ -148,7 +148,7 @@
148
148
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
149
149
  }
150
150
 
151
- :global(.theme-dark) .co-input {
151
+ .theme-dark .co-input {
152
152
  background: #0f172a;
153
153
  border-color: #334155;
154
154
  color: #fff;
@@ -176,7 +176,7 @@
176
176
  height: 1.25rem;
177
177
  }
178
178
 
179
- :global(.theme-dark) .co-btn-add {
179
+ .theme-dark .co-btn-add {
180
180
  background: rgba(249, 115, 22, 0.15);
181
181
  color: #fb923c;
182
182
  }
@@ -249,7 +249,7 @@
249
249
  text-align: center;
250
250
  }
251
251
 
252
- :global(.theme-dark) .co-row-input {
252
+ .theme-dark .co-row-input {
253
253
  background: #0f172a;
254
254
  border-color: #334155;
255
255
  color: #fff;
@@ -300,7 +300,7 @@
300
300
  border: 1px solid #f1f5f9;
301
301
  }
302
302
 
303
- :global(.theme-dark) .co-stat-card {
303
+ .theme-dark .co-stat-card {
304
304
  background: #1e293b;
305
305
  border-color: #334155;
306
306
  }
@@ -321,7 +321,7 @@
321
321
  line-height: 1;
322
322
  }
323
323
 
324
- :global(.theme-dark) .co-stat-value {
324
+ .theme-dark .co-stat-value {
325
325
  color: #fff;
326
326
  }
327
327
 
@@ -329,7 +329,7 @@
329
329
  color: #ef4444;
330
330
  }
331
331
 
332
- :global(.theme-dark) .co-stat-red {
332
+ .theme-dark .co-stat-red {
333
333
  color: #f87171;
334
334
  }
335
335
 
@@ -337,7 +337,7 @@
337
337
  color: #22c55e;
338
338
  }
339
339
 
340
- :global(.theme-dark) .co-stat-green {
340
+ .theme-dark .co-stat-green {
341
341
  color: #4ade80;
342
342
  }
343
343
 
@@ -352,7 +352,7 @@
352
352
  min-height: 16rem;
353
353
  }
354
354
 
355
- :global(.co-empty-state) {
355
+ .co-empty-state {
356
356
  display: flex;
357
357
  align-items: center;
358
358
  justify-content: center;
@@ -363,19 +363,19 @@
363
363
  text-align: center;
364
364
  }
365
365
 
366
- :global(.co-bar-wrap) {
366
+ .co-bar-wrap {
367
367
  background: #f8fafc;
368
368
  border-radius: 0.5rem;
369
369
  padding: 0.75rem;
370
370
  border: 1px solid #f1f5f9;
371
371
  }
372
372
 
373
- :global(.theme-dark .co-bar-wrap) {
373
+ .theme-dark .co-bar-wrap {
374
374
  background: rgba(15, 23, 42, 0.5);
375
375
  border-color: #1e293b;
376
376
  }
377
377
 
378
- :global(.co-bar-hdr) {
378
+ .co-bar-hdr {
379
379
  display: flex;
380
380
  justify-content: space-between;
381
381
  font-size: 0.7rem;
@@ -384,7 +384,7 @@
384
384
  margin-bottom: 0.5rem;
385
385
  }
386
386
 
387
- :global(.co-bar) {
387
+ .co-bar {
388
388
  height: 3rem;
389
389
  background: #e2e8f0;
390
390
  border-radius: 0.25rem;
@@ -393,11 +393,11 @@
393
393
  position: relative;
394
394
  }
395
395
 
396
- :global(.theme-dark .co-bar) {
396
+ .theme-dark .co-bar {
397
397
  background: #334155;
398
398
  }
399
399
 
400
- :global(.co-seg) {
400
+ .co-seg {
401
401
  height: 100%;
402
402
  background: linear-gradient(to bottom, #fb923c, #ea580c);
403
403
  border-right: 1px solid rgba(255, 255, 255, 0.2);
@@ -411,31 +411,31 @@
411
411
  cursor: default;
412
412
  }
413
413
 
414
- :global(.co-panel-wrap) {
414
+ .co-panel-wrap {
415
415
  background: #f8fafc;
416
416
  border-radius: 0.5rem;
417
417
  padding: 0.75rem;
418
418
  border: 1px solid #f1f5f9;
419
419
  }
420
420
 
421
- :global(.theme-dark .co-panel-wrap) {
421
+ .theme-dark .co-panel-wrap {
422
422
  background: rgba(15, 23, 42, 0.5);
423
423
  border-color: #1e293b;
424
424
  }
425
425
 
426
- :global(.co-sheet) {
426
+ .co-sheet {
427
427
  position: relative;
428
428
  background: #e2e8f0;
429
429
  width: 100%;
430
430
  border: 1px solid #cbd5e1;
431
431
  }
432
432
 
433
- :global(.theme-dark .co-sheet) {
433
+ .theme-dark .co-sheet {
434
434
  background: #334155;
435
435
  border-color: #475569;
436
436
  }
437
437
 
438
- :global(.co-rect) {
438
+ .co-rect {
439
439
  position: absolute;
440
440
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
441
441
  border: 1px solid rgba(255, 255, 255, 0.4);
@@ -450,7 +450,7 @@
450
450
  transition: filter 0.15s ease;
451
451
  }
452
452
 
453
- :global(.co-rect:hover) {
453
+ .co-rect:hover {
454
454
  filter: brightness(1.1);
455
455
  }
456
456