@datametria/vue-components 2.4.0 → 2.4.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.
@@ -498,22 +498,24 @@ watch(totalPages, (newTotal) => {
498
498
  <style scoped>
499
499
  .datametria-sortable-table {
500
500
  width: 100%;
501
- background: var(--dm-neutral-50, #ffffff);
501
+ background: var(--dm-bg-color, #ffffff);
502
502
  border-radius: var(--dm-radius-md, 0.375rem);
503
503
  box-shadow: var(--dm-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
504
504
  }
505
505
 
506
506
  .datametria-sortable-table__search {
507
507
  padding: var(--dm-spacing-4, 1rem);
508
- border-bottom: 1px solid var(--dm-neutral-100, #f3f4f6);
508
+ border-bottom: 1px solid var(--dm-border-color, #e5e7eb);
509
509
  }
510
510
 
511
511
  .datametria-sortable-table__search-input {
512
512
  width: 100%;
513
513
  padding: var(--dm-spacing-2, 0.5rem) var(--dm-spacing-4, 1rem);
514
- border: 1px solid var(--dm-neutral-200, #e5e7eb);
514
+ border: 1px solid var(--dm-border-color, #e5e7eb);
515
515
  border-radius: var(--dm-radius-md, 0.375rem);
516
516
  font-size: var(--dm-font-size-sm, 0.875rem);
517
+ background: var(--dm-bg-color, #ffffff);
518
+ color: var(--dm-text-primary, #111827);
517
519
  transition: all 0.2s ease;
518
520
  }
519
521
 
@@ -533,8 +535,8 @@ watch(totalPages, (newTotal) => {
533
535
  }
534
536
 
535
537
  .datametria-sortable-table__thead {
536
- background: var(--dm-neutral-50, #f9fafb);
537
- border-bottom: 2px solid var(--dm-neutral-200, #e5e7eb);
538
+ background: var(--dm-bg-secondary, #f9fafb);
539
+ border-bottom: 2px solid var(--dm-border-color, #e5e7eb);
538
540
  }
539
541
 
540
542
  .datametria-sortable-table__th {
@@ -542,7 +544,7 @@ watch(totalPages, (newTotal) => {
542
544
  text-align: left;
543
545
  font-size: var(--dm-font-size-sm, 0.875rem);
544
546
  font-weight: var(--dm-font-weight-semibold, 600);
545
- color: var(--dm-neutral-700, #374151);
547
+ color: var(--dm-text-primary, #374151);
546
548
  position: relative;
547
549
  }
548
550
 
@@ -552,7 +554,7 @@ watch(totalPages, (newTotal) => {
552
554
  }
553
555
 
554
556
  .datametria-sortable-table__th--sortable:hover {
555
- background: var(--dm-neutral-100, #f3f4f6);
557
+ background: var(--dm-bg-hover, #f3f4f6);
556
558
  }
557
559
 
558
560
  .datametria-sortable-table__th--sortable:focus-visible {
@@ -577,7 +579,7 @@ watch(totalPages, (newTotal) => {
577
579
  }
578
580
 
579
581
  .datametria-sortable-table__sort-icon--inactive {
580
- color: var(--dm-neutral-400, #9ca3af);
582
+ color: var(--dm-text-secondary, #9ca3af);
581
583
  opacity: 0.5;
582
584
  }
583
585
 
@@ -585,10 +587,12 @@ watch(totalPages, (newTotal) => {
585
587
  width: 100%;
586
588
  margin-top: var(--dm-spacing-2, 0.5rem);
587
589
  padding: var(--dm-spacing-2, 0.5rem);
588
- border: 1px solid var(--dm-neutral-200, #e5e7eb);
590
+ border: 1px solid var(--dm-border-color, #e5e7eb);
589
591
  border-radius: var(--dm-radius-md, 0.375rem);
590
592
  font-size: var(--dm-font-size-sm, 0.875rem);
591
593
  font-weight: 400;
594
+ background: var(--dm-bg-color, #ffffff);
595
+ color: var(--dm-text-primary, #111827);
592
596
  transition: all 0.2s ease;
593
597
  }
594
598
 
@@ -606,12 +610,13 @@ watch(totalPages, (newTotal) => {
606
610
  .datametria-sortable-table__multiselect-trigger {
607
611
  width: 100%;
608
612
  padding: var(--dm-spacing-2, 0.5rem);
609
- border: 1px solid var(--dm-neutral-200, #e5e7eb);
613
+ border: 1px solid var(--dm-border-color, #e5e7eb);
610
614
  border-radius: var(--dm-radius-md, 0.375rem);
611
615
  font-size: var(--dm-font-size-sm, 0.875rem);
612
616
  font-weight: 400;
613
617
  text-align: left;
614
- background: var(--dm-neutral-50, #ffffff);
618
+ background: var(--dm-bg-color, #ffffff);
619
+ color: var(--dm-text-primary, #111827);
615
620
  cursor: pointer;
616
621
  transition: all 0.2s ease;
617
622
  }
@@ -634,8 +639,8 @@ watch(totalPages, (newTotal) => {
634
639
  margin-top: var(--dm-spacing-1, 0.25rem);
635
640
  max-height: 200px;
636
641
  overflow-y: auto;
637
- background: var(--dm-neutral-50, #ffffff);
638
- border: 1px solid var(--dm-neutral-200, #e5e7eb);
642
+ background: var(--dm-bg-color, #ffffff);
643
+ border: 1px solid var(--dm-border-color, #e5e7eb);
639
644
  border-radius: var(--dm-radius-md, 0.375rem);
640
645
  box-shadow: var(--dm-shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
641
646
  z-index: 10;
@@ -647,12 +652,13 @@ watch(totalPages, (newTotal) => {
647
652
  gap: var(--dm-spacing-2, 0.5rem);
648
653
  padding: var(--dm-spacing-2, 0.5rem) var(--dm-spacing-3, 0.75rem);
649
654
  font-size: var(--dm-font-size-sm, 0.875rem);
655
+ color: var(--dm-text-primary, #111827);
650
656
  cursor: pointer;
651
657
  transition: background-color 0.2s ease;
652
658
  }
653
659
 
654
660
  .datametria-sortable-table__multiselect-option:hover {
655
- background: var(--dm-neutral-100, #f3f4f6);
661
+ background: var(--dm-bg-hover, #f3f4f6);
656
662
  }
657
663
 
658
664
  .datametria-sortable-table__multiselect-option input[type="checkbox"] {
@@ -660,16 +666,16 @@ watch(totalPages, (newTotal) => {
660
666
  }
661
667
 
662
668
  .datametria-sortable-table__tbody {
663
- background: var(--dm-neutral-50, #ffffff);
669
+ background: var(--dm-bg-color, #ffffff);
664
670
  }
665
671
 
666
672
  .datametria-sortable-table__tr {
667
- border-bottom: 1px solid var(--dm-neutral-100, #f3f4f6);
673
+ border-bottom: 1px solid var(--dm-border-color, #e5e7eb);
668
674
  transition: background-color 0.2s ease;
669
675
  }
670
676
 
671
677
  .datametria-sortable-table__tr:hover {
672
- background: var(--dm-neutral-50, #f9fafb);
678
+ background: var(--dm-bg-hover, #f9fafb);
673
679
  }
674
680
 
675
681
  .datametria-sortable-table__tr--selected {
@@ -679,7 +685,7 @@ watch(totalPages, (newTotal) => {
679
685
  .datametria-sortable-table__td {
680
686
  padding: var(--dm-spacing-3, 0.75rem) var(--dm-spacing-4, 1rem);
681
687
  font-size: var(--dm-font-size-sm, 0.875rem);
682
- color: var(--dm-neutral-900, #111827);
688
+ color: var(--dm-text-primary, #111827);
683
689
  }
684
690
 
685
691
  .datametria-sortable-table__td--checkbox {
@@ -690,7 +696,7 @@ watch(totalPages, (newTotal) => {
690
696
  .datametria-sortable-table__empty {
691
697
  padding: var(--dm-spacing-4, 1rem);
692
698
  text-align: center;
693
- color: var(--dm-neutral-500, #6b7280);
699
+ color: var(--dm-text-secondary, #6b7280);
694
700
  font-size: var(--dm-font-size-sm, 0.875rem);
695
701
  }
696
702
 
@@ -699,14 +705,14 @@ watch(totalPages, (newTotal) => {
699
705
  justify-content: space-between;
700
706
  align-items: center;
701
707
  padding: var(--dm-spacing-4, 1rem);
702
- border-top: 1px solid var(--dm-neutral-200, #e5e7eb);
708
+ border-top: 1px solid var(--dm-border-color, #e5e7eb);
703
709
  flex-wrap: wrap;
704
710
  gap: var(--dm-spacing-4, 1rem);
705
711
  }
706
712
 
707
713
  .datametria-sortable-table__pagination-info {
708
714
  font-size: var(--dm-font-size-sm, 0.875rem);
709
- color: var(--dm-neutral-600, #4b5563);
715
+ color: var(--dm-text-secondary, #4b5563);
710
716
  }
711
717
 
712
718
  .datametria-sortable-table__pagination-controls {
@@ -717,13 +723,13 @@ watch(totalPages, (newTotal) => {
717
723
 
718
724
  .datametria-sortable-table__page-size {
719
725
  padding: var(--dm-spacing-2, 0.5rem);
720
- border: 1px solid var(--dm-neutral-200, #e5e7eb);
726
+ border: 1px solid var(--dm-border-color, #e5e7eb);
721
727
  border-radius: var(--dm-radius-md, 0.375rem);
722
728
  font-size: var(--dm-font-size-sm, 0.875rem);
723
729
  cursor: pointer;
724
730
  transition: all 0.2s ease;
725
- background: var(--dm-neutral-50, #ffffff);
726
- color: var(--dm-neutral-900, #111827);
731
+ background: var(--dm-bg-color, #ffffff);
732
+ color: var(--dm-text-primary, #111827);
727
733
  }
728
734
 
729
735
  .datametria-sortable-table__page-size:focus {
@@ -734,17 +740,17 @@ watch(totalPages, (newTotal) => {
734
740
 
735
741
  .datametria-sortable-table__pagination-btn {
736
742
  padding: var(--dm-spacing-2, 0.5rem) var(--dm-spacing-3, 0.75rem);
737
- border: 1px solid var(--dm-neutral-200, #e5e7eb);
743
+ border: 1px solid var(--dm-border-color, #e5e7eb);
738
744
  border-radius: var(--dm-radius-md, 0.375rem);
739
- background: var(--dm-neutral-50, #ffffff);
740
- color: var(--dm-neutral-900, #111827);
745
+ background: var(--dm-bg-color, #ffffff);
746
+ color: var(--dm-text-primary, #111827);
741
747
  font-size: var(--dm-font-size-sm, 0.875rem);
742
748
  cursor: pointer;
743
749
  transition: all 0.2s ease;
744
750
  }
745
751
 
746
752
  .datametria-sortable-table__pagination-btn:hover:not(:disabled) {
747
- background: var(--dm-neutral-100, #f3f4f6);
753
+ background: var(--dm-bg-hover, #f3f4f6);
748
754
  border-color: var(--dm-primary, #0072CE);
749
755
  }
750
756
 
@@ -761,7 +767,7 @@ watch(totalPages, (newTotal) => {
761
767
  .datametria-sortable-table__pagination-pages {
762
768
  padding: 0 var(--dm-spacing-2, 0.5rem);
763
769
  font-size: var(--dm-font-size-sm, 0.875rem);
764
- color: var(--dm-neutral-600, #4b5563);
770
+ color: var(--dm-text-secondary, #4b5563);
765
771
  }
766
772
 
767
773
  input[type="checkbox"] {
@@ -129,7 +129,7 @@ const handleClick = () => {
129
129
  }
130
130
 
131
131
  .datametria-switch:focus-visible {
132
- outline: 2px solid var(--dm-color-primary, #0072ce);
132
+ outline: 2px solid var(--dm-primary, #0072ce);
133
133
  outline-offset: 2px;
134
134
  border-radius: 10px;
135
135
  }
@@ -149,37 +149,37 @@ defineExpose({
149
149
  width: 100%;
150
150
  font-size: inherit;
151
151
  font-family: inherit;
152
- color: var(--datametria-text-color, #303133);
153
- background-color: var(--datametria-bg-color, #ffffff);
154
- border: 1px solid var(--datametria-border-color, #dcdfe6);
152
+ color: var(--dm-text-primary, #303133);
153
+ background-color: var(--dm-bg-color, #ffffff);
154
+ border: 1px solid var(--dm-border-color, #dcdfe6);
155
155
  border-radius: 4px;
156
156
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
157
157
  }
158
158
 
159
159
  .datametria-textarea__inner:hover {
160
- border-color: var(--datametria-border-color-hover, #c0c4cc);
160
+ border-color: var(--dm-border-color, #c0c4cc);
161
161
  }
162
162
 
163
163
  .datametria-textarea__inner:focus {
164
164
  outline: none;
165
- border-color: var(--datametria-primary-color, #0072ce);
165
+ border-color: var(--dm-primary, #0072ce);
166
166
  }
167
167
 
168
168
  .datametria-textarea__inner::placeholder {
169
- color: var(--datametria-placeholder-color, #a8abb2);
169
+ color: var(--dm-text-secondary, #a8abb2);
170
170
  }
171
171
 
172
172
  .datametria-textarea__inner:disabled {
173
- background-color: var(--datametria-disabled-bg-color, #f5f7fa);
174
- border-color: var(--datametria-disabled-border-color, #e4e7ed);
175
- color: var(--datametria-disabled-text-color, #c0c4cc);
173
+ background-color: var(--dm-bg-disabled, #f5f7fa);
174
+ border-color: var(--dm-border-color, #e4e7ed);
175
+ color: var(--dm-text-secondary, #c0c4cc);
176
176
  cursor: not-allowed;
177
177
  }
178
178
 
179
179
  .datametria-textarea--disabled .datametria-textarea__inner {
180
- background-color: var(--datametria-disabled-bg-color, #f5f7fa);
181
- border-color: var(--datametria-disabled-border-color, #e4e7ed);
182
- color: var(--datametria-disabled-text-color, #c0c4cc);
180
+ background-color: var(--dm-bg-disabled, #f5f7fa);
181
+ border-color: var(--dm-border-color, #e4e7ed);
182
+ color: var(--dm-text-secondary, #c0c4cc);
183
183
  cursor: not-allowed;
184
184
  }
185
185
 
@@ -188,13 +188,13 @@ defineExpose({
188
188
  bottom: 8px;
189
189
  right: 12px;
190
190
  font-size: 12px;
191
- color: var(--datametria-info-color, #909399);
192
- background-color: var(--datametria-bg-color, #ffffff);
191
+ color: var(--dm-text-secondary, #909399);
192
+ background-color: var(--dm-bg-color, #ffffff);
193
193
  padding: 0 4px;
194
194
  }
195
195
 
196
196
  .datametria-textarea--focused .datametria-textarea__inner {
197
- border-color: var(--datametria-primary-color, #0072ce);
197
+ border-color: var(--dm-primary, #0072ce);
198
198
  }
199
199
 
200
200
  /* Dark Mode Support - Hybrid Approach */