@policystudio/policy-studio-ui-vue 1.1.90-beta.69 → 1.1.90-beta.71

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,111 +541,6 @@ video {
541
541
  -webkit-font-feature-settings: "liga";
542
542
  -webkit-font-smoothing: antialiased;
543
543
  }
544
- .psui-el-chips label {
545
- display: flex;
546
- }
547
- .psui-el-chips label {
548
- cursor: pointer;
549
- }
550
- .psui-el-chips label {
551
- align-items: center;
552
- }
553
- .psui-el-chips label {
554
- justify-content: center;
555
- }
556
- .psui-el-chips label {
557
- border-radius: 0.25rem;
558
- }
559
- .psui-el-chips label {
560
- border-width: 1px;
561
- }
562
- .psui-el-chips label {
563
- --tw-border-opacity: 1;
564
- border-color: rgb(162, 172, 183, var(--tw-border-opacity, 1));
565
- }
566
- .psui-el-chips label {
567
- --tw-bg-opacity: 1;
568
- background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
569
- }
570
- .psui-el-chips label {
571
- padding-top: 0.25rem;
572
- padding-bottom: 0.25rem;
573
- }
574
- .psui-el-chips label {
575
- padding-left: 0.75rem;
576
- padding-right: 0.75rem;
577
- }
578
- .psui-el-chips label {
579
- font-size: 14px;
580
- line-height: 130%;
581
- }
582
- .psui-el-chips label {
583
- --tw-text-opacity: 1;
584
- color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
585
- }
586
- .psui-el-chips label {
587
- transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
588
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
589
- transition-duration: 150ms;
590
- }
591
- .psui-el-chips label {
592
- padding: 5px 6px 5px 8px;
593
- }
594
- .psui-el-chips label:hover {
595
- --tw-border-opacity: 1;
596
- border-color: rgb(49, 143, 172, var(--tw-border-opacity, 1));
597
- }
598
- .psui-el-chips label:hover {
599
- --tw-text-opacity: 1;
600
- color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
601
- }
602
- .psui-el-chips label:focus, .psui-el-chips label:active {
603
- --tw-bg-opacity: 1;
604
- background-color: rgb(224, 239, 246, var(--tw-bg-opacity, 1));
605
- }
606
- .psui-el-chips label:focus, .psui-el-chips label:active {
607
- --tw-text-opacity: 1;
608
- color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
609
- }
610
- .psui-el-chips label.checked {
611
- --tw-border-opacity: 1;
612
- border-color: rgb(49, 143, 172, var(--tw-border-opacity, 1));
613
- }
614
- .psui-el-chips label.checked {
615
- --tw-bg-opacity: 1;
616
- background-color: rgb(236, 247, 251, var(--tw-bg-opacity, 1));
617
- }
618
- .psui-el-chips label.checked {
619
- --tw-text-opacity: 1;
620
- color: rgb(0, 70, 95, var(--tw-text-opacity, 1));
621
- }
622
- .psui-el-chips label.icon-position-right {
623
- flex-direction: row-reverse;
624
- }
625
- .psui-el-chips label.icon-position-right .psui-el-chips-icon {
626
- margin-left: 0.25rem;
627
- }
628
- .psui-el-chips .psui-el-chips-icon {
629
- font-family: "Material Icons Round";
630
- font-weight: normal;
631
- font-style: normal;
632
- font-size: 24px;
633
- line-height: 1;
634
- letter-spacing: normal;
635
- text-transform: none;
636
- display: inline-block;
637
- white-space: nowrap;
638
- word-wrap: normal;
639
- direction: ltr;
640
- -webkit-font-feature-settings: "liga";
641
- -webkit-font-smoothing: antialiased;
642
- }
643
- .psui-el-chips .psui-el-chips-icon {
644
- font-size: 16px;
645
- }
646
- .psui-el-chips .psui-el-chips-icon.is-rotated {
647
- transform: rotate(180deg);
648
- }
649
544
  .psui-el-chips.type-checkbox, .psui-el-chips.type-radio {
650
545
  font-size: 14px;
651
546
  }
@@ -664,10 +559,6 @@ video {
664
559
  .psui-el-chips.type-checkbox input, .psui-el-chips.type-radio input {
665
560
  clip: rect(0, 0, 0, 0);
666
561
  }
667
- .psui-el-chips.type-checkbox input:checked + label, .psui-el-chips.type-radio input:checked + label {
668
- --tw-border-opacity: 1;
669
- border-color: rgb(49, 143, 172, var(--tw-border-opacity, 1));
670
- }
671
562
  .psui-el-chips.type-checkbox input:checked + label, .psui-el-chips.type-radio input:checked + label {
672
563
  --tw-bg-opacity: 1;
673
564
  background-color: rgb(224, 239, 246, var(--tw-bg-opacity, 1));
@@ -698,6 +589,37 @@ video {
698
589
  --tw-text-opacity: 1;
699
590
  color: rgb(100, 181, 206, var(--tw-text-opacity, 1));
700
591
  }
592
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
593
+ display: flex;
594
+ }
595
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
596
+ cursor: pointer;
597
+ }
598
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
599
+ align-items: center;
600
+ }
601
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
602
+ justify-content: center;
603
+ }
604
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
605
+ border-radius: 0.25rem;
606
+ }
607
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
608
+ --tw-bg-opacity: 1;
609
+ background-color: rgb(243, 246, 249, var(--tw-bg-opacity, 1));
610
+ }
611
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
612
+ --tw-text-opacity: 1;
613
+ color: rgb(121, 132, 144, var(--tw-text-opacity, 1));
614
+ }
615
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
616
+ transition-property: all;
617
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
618
+ transition-duration: 150ms;
619
+ }
620
+ .psui-el-chips.type-checkbox label, .psui-el-chips.type-radio label {
621
+ padding: 4px 8px 4px 6px;
622
+ }
701
623
  .psui-el-chips.type-checkbox label:before, .psui-el-chips.type-radio label:before {
702
624
  display: inline-block;
703
625
  }
@@ -743,6 +665,69 @@ video {
743
665
  .psui-el-chips.type-radio label:before {
744
666
  content: "radio_button_unchecked";
745
667
  }
668
+ .psui-el-chips.type-button label {
669
+ display: flex;
670
+ }
671
+ .psui-el-chips.type-button label {
672
+ cursor: pointer;
673
+ }
674
+ .psui-el-chips.type-button label {
675
+ align-items: center;
676
+ }
677
+ .psui-el-chips.type-button label {
678
+ justify-content: center;
679
+ }
680
+ .psui-el-chips.type-button label {
681
+ border-radius: 0.25rem;
682
+ }
683
+ .psui-el-chips.type-button label {
684
+ padding-top: 0.25rem;
685
+ padding-bottom: 0.25rem;
686
+ }
687
+ .psui-el-chips.type-button label {
688
+ padding-left: 0.75rem;
689
+ padding-right: 0.75rem;
690
+ }
691
+ .psui-el-chips.type-button label {
692
+ font-size: 14px;
693
+ line-height: 130%;
694
+ }
695
+ .psui-el-chips.type-button label {
696
+ --tw-text-opacity: 1;
697
+ color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
698
+ }
699
+ .psui-el-chips.type-button label {
700
+ transition-property: all;
701
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
702
+ transition-duration: 150ms;
703
+ }
704
+ .psui-el-chips.type-button label {
705
+ background-color: #F6F7F8;
706
+ }
707
+ .psui-el-chips.type-button label:hover {
708
+ --tw-bg-opacity: 1;
709
+ background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
710
+ }
711
+ .psui-el-chips.type-button label:hover {
712
+ --tw-text-opacity: 1;
713
+ color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
714
+ }
715
+ .psui-el-chips.type-button label:focus, .psui-el-chips.type-button label:active {
716
+ --tw-bg-opacity: 1;
717
+ background-color: rgb(224, 239, 246, var(--tw-bg-opacity, 1));
718
+ }
719
+ .psui-el-chips.type-button label:focus, .psui-el-chips.type-button label:active {
720
+ --tw-text-opacity: 1;
721
+ color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
722
+ }
723
+ .psui-el-chips.type-button label.checked {
724
+ --tw-bg-opacity: 1;
725
+ background-color: rgb(224, 239, 246, var(--tw-bg-opacity, 1));
726
+ }
727
+ .psui-el-chips.type-button label.checked {
728
+ --tw-text-opacity: 1;
729
+ color: rgb(49, 143, 172, var(--tw-text-opacity, 1));
730
+ }
746
731
  .psui-el-chips.type-button.layout-with-icon label {
747
732
  display: flex;
748
733
  }
@@ -843,7 +828,10 @@ video {
843
828
  background-color: rgb(49, 143, 172, var(--tw-bg-opacity, 1));
844
829
  }
845
830
  .psui-el-chips.type-button.layout-rich .psui-el-chips-icon {
846
- font-size: 16px;
831
+ font-size: 18px;
832
+ }
833
+ .psui-el-chips.type-button.layout-rich .psui-el-chips-icon-prepend {
834
+ margin-right: 0.5rem;
847
835
  }
848
836
  .psui-el-chips.type-button.layout-rich .psui-el-chips-icon-prepend {
849
837
  display: flex;
@@ -871,6 +859,9 @@ video {
871
859
  --tw-text-opacity: 1;
872
860
  color: rgb(255, 255, 255, var(--tw-text-opacity, 1));
873
861
  }
862
+ .psui-el-chips.type-button.layout-rich .psui-el-chips-close {
863
+ margin-left: 0.5rem;
864
+ }
874
865
  .psui-el-chips.type-button.layout-rich .psui-el-chips-close {
875
866
  display: flex;
876
867
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.1.90-beta.69",
3
+ "version": "1.1.90-beta.71",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -7,42 +7,6 @@
7
7
  @apply psui-icon;
8
8
  }
9
9
 
10
- label {
11
- @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 6px 5px 8px;
13
-
14
- &:hover {
15
- @apply psui-text-blue-60 psui-border-blue-60;
16
- }
17
-
18
- &:focus,
19
- &:active {
20
- @apply psui-text-blue-60 psui-bg-blue-20;
21
- }
22
-
23
- &.checked {
24
- @apply psui-text-blue-70 psui-bg-blue-10 psui-border-blue-60;
25
- }
26
-
27
- &.icon-position-right {
28
- @apply psui-flex-row-reverse;
29
-
30
- .psui-el-chips-icon {
31
- @apply psui-ml-1;
32
- }
33
- }
34
-
35
- }
36
-
37
- .psui-el-chips-icon {
38
- @apply psui-icon;
39
- font-size: 16px;
40
-
41
- &.is-rotated {
42
- transform: rotate(180deg);
43
- }
44
- }
45
-
46
10
  &.type-checkbox,
47
11
  &.type-radio {
48
12
  font-size: 14px;
@@ -54,7 +18,7 @@
54
18
 
55
19
  &:checked {
56
20
  + label {
57
- @apply psui-text-blue-60 psui-bg-blue-20 psui-border-blue-60;
21
+ @apply psui-text-blue-60 psui-bg-blue-20;
58
22
 
59
23
  &.layout-disabled {
60
24
  @apply psui-bg-gray-20 psui-text-gray-40 psui-cursor-default;
@@ -72,6 +36,8 @@
72
36
  }
73
37
 
74
38
  label {
39
+ @apply psui-flex psui-items-center psui-justify-center psui-text-gray-50 psui-bg-gray-10 psui-transition-all psui-cursor-pointer psui-rounded;
40
+ padding: 4px 8px 4px 6px;
75
41
 
76
42
  &:before {
77
43
  @apply psui-inline-block psui-text-gray-30 psui-cursor-pointer psui-transition-all;
@@ -124,6 +90,22 @@
124
90
  }
125
91
 
126
92
  &.type-button {
93
+ label {
94
+ @apply psui-flex psui-items-center psui-justify-center psui-text-gray-60 psui-transition-all psui-cursor-pointer psui-rounded psui-py-1 psui-px-3 psui-text-small;
95
+ background-color: #F6F7F8;
96
+ &:hover {
97
+ @apply psui-text-blue-60 psui-bg-white;
98
+ }
99
+
100
+ &:focus,
101
+ &:active {
102
+ @apply psui-text-blue-60 psui-bg-blue-20;
103
+ }
104
+
105
+ &.checked {
106
+ @apply psui-text-blue-60 psui-bg-blue-20;
107
+ }
108
+ }
127
109
 
128
110
  &.layout-with-icon {
129
111
  label {
@@ -173,15 +155,15 @@
173
155
  }
174
156
 
175
157
  .psui-el-chips-icon {
176
- font-size: 16px;
158
+ font-size: 18px;
177
159
 
178
160
  &-prepend {
179
- @apply psui-bg-gray-30 psui-rounded-full psui-text-white psui-w-6 psui-h-6 psui-flex psui-items-center psui-justify-center;
161
+ @apply psui-bg-gray-30 psui-rounded-full psui-text-white psui-mr-2 psui-w-6 psui-h-6 psui-flex psui-items-center psui-justify-center;
180
162
  }
181
163
  }
182
164
 
183
165
  .psui-el-chips-close {
184
- @apply psui-text-gray-40 psui-flex psui-items-center psui-justify-center;
166
+ @apply psui-text-gray-40 psui-flex psui-items-center psui-justify-center psui-ml-2;
185
167
  }
186
168
  }
187
169
  }
@@ -23,15 +23,11 @@
23
23
  <label
24
24
  :disabled="disabled"
25
25
  :for="getInputId"
26
- :class="[
27
- {'checked': checked && type === 'button', 'layout-disabled': layout === 'disabled'},
28
- `icon-position-${iconPosition}`
29
- ]"
26
+ :class="{'checked': checked && type === 'button', 'layout-disabled': layout === 'disabled'}"
30
27
  >
31
28
  <i
32
29
  v-if="icon"
33
30
  class="psui-el-chips-icon psui-el-chips-icon-prepend"
34
- :class="{ 'is-rotated': rotableIcon }"
35
31
  >{{ icon }}</i>
36
32
  {{ label }}
37
33
  <button
@@ -86,15 +82,6 @@ const props = defineProps({
86
82
  /**
87
83
  * It sets if the button was checked or not checked.
88
84
  */
89
- iconPosition: {
90
- type: String,
91
- default: 'left',
92
- validator: (value) => ['left', 'right'].includes(value)
93
- },
94
- rotableIcon:{
95
- type: Boolean,
96
- defaul: false
97
- },
98
85
  checked: {
99
86
  type: Boolean,
100
87
  default: false,
@@ -40,7 +40,7 @@ const props = defineProps({
40
40
  theme: {
41
41
  type: String,
42
42
  default: 'informative',
43
- validator: (value) => ['informative', 'success', 'alert', 'disabled'].includes(value),
43
+ validator: (value) => ['informative', 'success', 'alert', 'gray', 'disabled'].includes(value),
44
44
  },
45
45
  /**
46
46
  * It set the which will be displayed when component is rendered.