@policystudio/policy-studio-ui-vue 1.1.90-beta.84 → 1.1.90-beta.86

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.
@@ -541,6 +541,39 @@ video {
541
541
  -webkit-font-feature-settings: "liga";
542
542
  -webkit-font-smoothing: antialiased;
543
543
  }
544
+ .psui-el-chips .psui-el-chips-text {
545
+ display: inline-flex;
546
+ flex-direction: column;
547
+ align-items: center;
548
+ justify-content: center;
549
+ position: relative;
550
+ }
551
+ .psui-el-chips .psui-el-chips-text::after {
552
+ content: attr(data-text);
553
+ }
554
+ .psui-el-chips .psui-el-chips-text::after {
555
+ pointer-events: none;
556
+ }
557
+ .psui-el-chips .psui-el-chips-text::after {
558
+ visibility: hidden;
559
+ }
560
+ .psui-el-chips .psui-el-chips-text::after {
561
+ height: 0px;
562
+ }
563
+ .psui-el-chips .psui-el-chips-text::after {
564
+ -webkit-user-select: none;
565
+ -moz-user-select: none;
566
+ user-select: none;
567
+ }
568
+ .psui-el-chips .psui-el-chips-text::after {
569
+ overflow: hidden;
570
+ }
571
+ .psui-el-chips .psui-el-chips-text::after {
572
+ white-space: nowrap;
573
+ }
574
+ .psui-el-chips .psui-el-chips-text::after {
575
+ font-weight: 700;
576
+ }
544
577
  .psui-el-chips label {
545
578
  display: flex;
546
579
  }
@@ -589,23 +622,26 @@ video {
589
622
  transition-duration: 150ms;
590
623
  }
591
624
  .psui-el-chips label {
592
- padding: 5px 8px 5px 6px;
625
+ padding: 5px 8px 5px 8px;
593
626
  }
594
627
  .psui-el-chips label:hover {
628
+ --tw-bg-opacity: 1;
629
+ background-color: rgb(236, 247, 251, var(--tw-bg-opacity, 1));
630
+ }
631
+ .psui-el-chips label:focus, .psui-el-chips label:active {
595
632
  --tw-border-opacity: 1;
596
633
  border-color: rgb(49, 143, 172, var(--tw-border-opacity, 1));
597
634
  }
598
- .psui-el-chips label:hover {
599
- --tw-text-opacity: 1;
600
- color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
601
- }
602
635
  .psui-el-chips label:focus, .psui-el-chips label:active {
603
636
  --tw-bg-opacity: 1;
604
637
  background-color: rgb(236, 247, 251, var(--tw-bg-opacity, 1));
605
638
  }
639
+ .psui-el-chips label:focus, .psui-el-chips label:active {
640
+ font-weight: 700;
641
+ }
606
642
  .psui-el-chips label:focus, .psui-el-chips label:active {
607
643
  --tw-text-opacity: 1;
608
- color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
644
+ color: rgb(0, 70, 95, var(--tw-text-opacity, 1));
609
645
  }
610
646
  .psui-el-chips label.checked {
611
647
  --tw-border-opacity: 1;
@@ -615,9 +651,6 @@ video {
615
651
  --tw-bg-opacity: 1;
616
652
  background-color: rgb(236, 247, 251, var(--tw-bg-opacity, 1));
617
653
  }
618
- .psui-el-chips label.checked {
619
- font-weight: 700;
620
- }
621
654
  .psui-el-chips label.checked {
622
655
  --tw-text-opacity: 1;
623
656
  color: rgb(0, 70, 95, var(--tw-text-opacity, 1));
@@ -670,21 +703,6 @@ video {
670
703
  .psui-el-chips.type-checkbox input, .psui-el-chips.type-radio input {
671
704
  clip: rect(0, 0, 0, 0);
672
705
  }
673
- .psui-el-chips.type-checkbox input:checked + label, .psui-el-chips.type-radio input:checked + label {
674
- --tw-border-opacity: 1;
675
- border-color: rgb(49, 143, 172, var(--tw-border-opacity, 1));
676
- }
677
- .psui-el-chips.type-checkbox input:checked + label, .psui-el-chips.type-radio input:checked + label {
678
- --tw-bg-opacity: 1;
679
- background-color: rgb(236, 247, 251, var(--tw-bg-opacity, 1));
680
- }
681
- .psui-el-chips.type-checkbox input:checked + label, .psui-el-chips.type-radio input:checked + label {
682
- font-weight: 700;
683
- }
684
- .psui-el-chips.type-checkbox input:checked + label, .psui-el-chips.type-radio input:checked + label {
685
- --tw-text-opacity: 1;
686
- color: rgb(0, 70, 95, var(--tw-text-opacity, 1));
687
- }
688
706
  .psui-el-chips.type-checkbox input:checked + label.layout-disabled, .psui-el-chips.type-radio input:checked + label.layout-disabled {
689
707
  cursor: default;
690
708
  }
@@ -709,7 +727,7 @@ video {
709
727
  }
710
728
  .psui-el-chips.type-checkbox input:checked + label:hover, .psui-el-chips.type-radio input:checked + label:hover {
711
729
  --tw-text-opacity: 1;
712
- color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
730
+ color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
713
731
  }
714
732
  .psui-el-chips.type-checkbox label:before, .psui-el-chips.type-radio label:before {
715
733
  display: inline-block;
@@ -719,7 +737,7 @@ video {
719
737
  }
720
738
  .psui-el-chips.type-checkbox label:before, .psui-el-chips.type-radio label:before {
721
739
  --tw-text-opacity: 1;
722
- color: rgb(214, 221, 229, var(--tw-text-opacity, 1));
740
+ color: rgb(121, 132, 144, var(--tw-text-opacity, 1));
723
741
  }
724
742
  .psui-el-chips.type-checkbox label:before, .psui-el-chips.type-radio label:before {
725
743
  transition-property: all;
@@ -734,15 +752,7 @@ video {
734
752
  }
735
753
  .psui-el-chips.type-checkbox label:hover, .psui-el-chips.type-radio label:hover {
736
754
  --tw-bg-opacity: 1;
737
- background-color: rgb(243, 246, 249, var(--tw-bg-opacity, 1));
738
- }
739
- .psui-el-chips.type-checkbox label:hover, .psui-el-chips.type-radio label:hover {
740
- --tw-text-opacity: 1;
741
- color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
742
- }
743
- .psui-el-chips.type-checkbox label:hover:before, .psui-el-chips.type-radio label:hover:before {
744
- --tw-text-opacity: 1;
745
- color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
755
+ background-color: rgb(236, 247, 251, var(--tw-bg-opacity, 1));
746
756
  }
747
757
  .psui-el-chips.type-checkbox input:checked + label:before {
748
758
  content: "check_box";
@@ -1784,9 +1794,6 @@ video {
1784
1794
  font-size: 12px;
1785
1795
  line-height: 130%;
1786
1796
  }
1787
- .psui-el-card-infos-title {
1788
- font-weight: 700;
1789
- }
1790
1797
  .psui-el-card-infos-title {
1791
1798
  --tw-text-opacity: 1;
1792
1799
  color: rgb(162, 172, 183, var(--tw-text-opacity, 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.84",
3
+ "version": "1.1.90-beta.86",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -4,7 +4,7 @@
4
4
  @apply psui-border psui-border-gray-20 psui-rounded-md psui-flex psui-flex-col psui-items-center psui-justify-center psui-px-3 psui-py-2 psui-cursor-pointer;
5
5
 
6
6
  &-title {
7
- @apply psui-flex psui-text-xsmall psui-font-bold psui-text-gray-40 psui-mb-1;
7
+ @apply psui-flex psui-text-xsmall psui-text-gray-40 psui-mb-1;
8
8
  }
9
9
 
10
10
  &-content {
@@ -3,25 +3,39 @@
3
3
  .psui-el-chips {
4
4
  @apply psui-inline-flex psui-relative;
5
5
 
6
+
6
7
  &-icon {
7
8
  @apply psui-icon;
8
9
  }
9
10
 
11
+ .psui-el-chips-text {
12
+ display: inline-flex;
13
+ flex-direction: column;
14
+ align-items: center;
15
+ justify-content: center;
16
+ position: relative;
17
+
18
+ &::after {
19
+ content: attr(data-text);
20
+ @apply psui-font-bold psui-h-0 psui-invisible psui-overflow-hidden psui-select-none psui-pointer-events-none psui-whitespace-nowrap;
21
+ }
22
+ }
23
+
10
24
  label {
11
25
  @apply psui-flex psui-bg-white psui-items-center psui-justify-center psui-text-gray-60 psui-transition-colors psui-cursor-pointer psui-rounded psui-py-1 psui-px-3 psui-text-small psui-border psui-border-gray-40;
12
- padding: 5px 8px 5px 6px;
26
+ padding: 5px 8px 5px 8px;
13
27
 
14
28
  &:hover {
15
- @apply psui-text-blue-60 psui-border-blue-60;
29
+ @apply psui-bg-blue-10;
16
30
  }
17
31
 
18
32
  &:focus,
19
33
  &:active {
20
- @apply psui-text-blue-60 psui-bg-blue-10;
34
+ @apply psui-text-blue-70 psui-bg-blue-10 psui-border-blue-60 psui-font-bold;
21
35
  }
22
36
 
23
37
  &.checked {
24
- @apply psui-text-blue-70 psui-bg-blue-10 psui-border-blue-60 psui-font-bold;
38
+ @apply psui-text-blue-70 psui-bg-blue-10 psui-border-blue-60;
25
39
  }
26
40
 
27
41
  &.icon-position-right {
@@ -55,8 +69,6 @@
55
69
 
56
70
  &:checked {
57
71
  + label {
58
- @apply psui-text-blue-70 psui-bg-blue-10 psui-border-blue-60 psui-font-bold;
59
-
60
72
  &.layout-disabled {
61
73
  @apply psui-bg-gray-20 psui-text-gray-40 psui-cursor-default;
62
74
 
@@ -70,7 +82,7 @@
70
82
  }
71
83
 
72
84
  &:hover {
73
- @apply psui-text-blue-60;
85
+ @apply psui-text-gray-60;
74
86
  }
75
87
  }
76
88
  }
@@ -79,7 +91,7 @@
79
91
  label {
80
92
 
81
93
  &:before {
82
- @apply psui-inline-block psui-text-gray-30 psui-cursor-pointer psui-transition-all;
94
+ @apply psui-inline-block psui-text-gray-50 psui-cursor-pointer psui-transition-all;
83
95
  content: '';
84
96
  font-family: 'Material Icons Round';
85
97
  font-size: 18px;
@@ -87,10 +99,8 @@
87
99
  }
88
100
 
89
101
  &:hover {
90
- @apply psui-text-blue-60 psui-bg-gray-10;
91
- &:before {
92
- @apply psui-text-blue-60;
93
- }
102
+ @apply psui-bg-blue-10;
103
+
94
104
  }
95
105
  }
96
106
  }
@@ -4,14 +4,14 @@
4
4
  @click="onClick()"
5
5
  >
6
6
  <h5 class="psui-el-card-infos-title">
7
- <span :class="[titleColor, 'psui-mr-1']">{{ title }}</span>
7
+ <span :class="[titleClass, 'psui-mr-1']">{{ title }}</span>
8
8
  <slot name="subtitle">
9
- <span :class="subtitleColor">{{ subtitle }}</span>
9
+ <span :class="subtitleClass">{{ subtitle }}</span>
10
10
  </slot>
11
11
  </h5>
12
12
  <div class="psui-el-card-infos-content">
13
13
  <span class="psui-el-card-infos-icon material-icons-round">{{ icon }}</span>
14
- <h5 class="psui-text-gray-80">
14
+ <h5 :class="totalClass">
15
15
  {{ total }}
16
16
  </h5>
17
17
  </div>
@@ -49,18 +49,25 @@ defineProps({
49
49
  default: '',
50
50
  },
51
51
  /**
52
- * It sets the color class for the title text.
52
+ * It sets the class for the title text (color, font-weight, font-size, etc.).
53
53
  */
54
- titleColor: {
54
+ titleClass: {
55
55
  type: String,
56
- default: 'psui-text-gray-60',
56
+ default: 'psui-text-gray-60 psui-font-bold',
57
57
  },
58
58
  /**
59
- * It sets the color class for the subtitle text.
59
+ * It sets the class for the subtitle text (color, font-weight, font-size, etc.).
60
60
  */
61
- subtitleColor: {
61
+ subtitleClass: {
62
62
  type: String,
63
- default: 'psui-text-gray-40',
63
+ default: 'psui-text-gray-40 psui-font-bold',
64
+ },
65
+ /**
66
+ * It sets the class for the total text (color, font-weight, font-size, etc.).
67
+ */
68
+ totalClass: {
69
+ type: String,
70
+ default: 'psui-text-gray-80',
64
71
  },
65
72
  })
66
73
 
@@ -33,7 +33,13 @@
33
33
  class="psui-el-chips-icon psui-el-chips-icon-prepend"
34
34
  :class="{ 'is-rotated': rotableIcon }"
35
35
  >{{ icon }}</i>
36
- {{ label }}
36
+ <span
37
+ class="psui-el-chips-text"
38
+ :data-text="label"
39
+ >
40
+ {{ label }}
41
+ </span>
42
+
37
43
  <button
38
44
  @click="onClose"
39
45
  v-if="layout === 'rich'"