@policystudio/policy-studio-ui-vue 1.1.90-beta.64 → 1.1.90-beta.66
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,111 @@ 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));
|
|
565
|
+
}
|
|
566
|
+
.psui-el-chips label {
|
|
567
|
+
--tw-bg-opacity: 1;
|
|
568
|
+
background-color: rgb(255 255 255/var(--tw-bg-opacity));
|
|
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));
|
|
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));
|
|
597
|
+
}
|
|
598
|
+
.psui-el-chips label:hover {
|
|
599
|
+
--tw-text-opacity: 1;
|
|
600
|
+
color: rgb(49 143 172/var(--tw-text-opacity));
|
|
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));
|
|
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));
|
|
609
|
+
}
|
|
610
|
+
.psui-el-chips label.checked {
|
|
611
|
+
--tw-border-opacity: 1;
|
|
612
|
+
border-color: rgb(49 143 172/var(--tw-border-opacity));
|
|
613
|
+
}
|
|
614
|
+
.psui-el-chips label.checked {
|
|
615
|
+
--tw-bg-opacity: 1;
|
|
616
|
+
background-color: rgb(236 247 251/var(--tw-bg-opacity));
|
|
617
|
+
}
|
|
618
|
+
.psui-el-chips label.checked {
|
|
619
|
+
--tw-text-opacity: 1;
|
|
620
|
+
color: rgb(0 70 95/var(--tw-text-opacity));
|
|
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
|
+
}
|
|
544
649
|
.psui-el-chips.type-checkbox, .psui-el-chips.type-radio {
|
|
545
650
|
font-size: 14px;
|
|
546
651
|
}
|
|
@@ -559,6 +664,10 @@ video {
|
|
|
559
664
|
.psui-el-chips.type-checkbox input, .psui-el-chips.type-radio input {
|
|
560
665
|
clip: rect(0, 0, 0, 0);
|
|
561
666
|
}
|
|
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));
|
|
670
|
+
}
|
|
562
671
|
.psui-el-chips.type-checkbox input:checked + label, .psui-el-chips.type-radio input:checked + label {
|
|
563
672
|
--tw-bg-opacity: 1;
|
|
564
673
|
background-color: rgb(224 239 246/var(--tw-bg-opacity));
|
|
@@ -589,37 +698,6 @@ video {
|
|
|
589
698
|
--tw-text-opacity: 1;
|
|
590
699
|
color: rgb(100 181 206/var(--tw-text-opacity));
|
|
591
700
|
}
|
|
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));
|
|
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));
|
|
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
|
-
}
|
|
623
701
|
.psui-el-chips.type-checkbox label:before, .psui-el-chips.type-radio label:before {
|
|
624
702
|
display: inline-block;
|
|
625
703
|
}
|
|
@@ -665,69 +743,6 @@ video {
|
|
|
665
743
|
.psui-el-chips.type-radio label:before {
|
|
666
744
|
content: "radio_button_unchecked";
|
|
667
745
|
}
|
|
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));
|
|
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));
|
|
710
|
-
}
|
|
711
|
-
.psui-el-chips.type-button label:hover {
|
|
712
|
-
--tw-text-opacity: 1;
|
|
713
|
-
color: rgb(49 143 172/var(--tw-text-opacity));
|
|
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));
|
|
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));
|
|
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));
|
|
726
|
-
}
|
|
727
|
-
.psui-el-chips.type-button label.checked {
|
|
728
|
-
--tw-text-opacity: 1;
|
|
729
|
-
color: rgb(49 143 172/var(--tw-text-opacity));
|
|
730
|
-
}
|
|
731
746
|
.psui-el-chips.type-button.layout-with-icon label {
|
|
732
747
|
display: flex;
|
|
733
748
|
}
|
|
@@ -828,10 +843,7 @@ video {
|
|
|
828
843
|
background-color: rgb(49 143 172/var(--tw-bg-opacity));
|
|
829
844
|
}
|
|
830
845
|
.psui-el-chips.type-button.layout-rich .psui-el-chips-icon {
|
|
831
|
-
font-size:
|
|
832
|
-
}
|
|
833
|
-
.psui-el-chips.type-button.layout-rich .psui-el-chips-icon-prepend {
|
|
834
|
-
margin-right: 0.5rem;
|
|
846
|
+
font-size: 16px;
|
|
835
847
|
}
|
|
836
848
|
.psui-el-chips.type-button.layout-rich .psui-el-chips-icon-prepend {
|
|
837
849
|
display: flex;
|
|
@@ -859,9 +871,6 @@ video {
|
|
|
859
871
|
--tw-text-opacity: 1;
|
|
860
872
|
color: rgb(255 255 255/var(--tw-text-opacity));
|
|
861
873
|
}
|
|
862
|
-
.psui-el-chips.type-button.layout-rich .psui-el-chips-close {
|
|
863
|
-
margin-left: 0.5rem;
|
|
864
|
-
}
|
|
865
874
|
.psui-el-chips.type-button.layout-rich .psui-el-chips-close {
|
|
866
875
|
display: flex;
|
|
867
876
|
}
|
package/package.json
CHANGED
|
@@ -7,6 +7,42 @@
|
|
|
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
|
+
|
|
10
46
|
&.type-checkbox,
|
|
11
47
|
&.type-radio {
|
|
12
48
|
font-size: 14px;
|
|
@@ -18,7 +54,7 @@
|
|
|
18
54
|
|
|
19
55
|
&:checked {
|
|
20
56
|
+ label {
|
|
21
|
-
@apply psui-text-blue-60 psui-bg-blue-20;
|
|
57
|
+
@apply psui-text-blue-60 psui-bg-blue-20 psui-border-blue-60;
|
|
22
58
|
|
|
23
59
|
&.layout-disabled {
|
|
24
60
|
@apply psui-bg-gray-20 psui-text-gray-40 psui-cursor-default;
|
|
@@ -36,8 +72,6 @@
|
|
|
36
72
|
}
|
|
37
73
|
|
|
38
74
|
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;
|
|
41
75
|
|
|
42
76
|
&:before {
|
|
43
77
|
@apply psui-inline-block psui-text-gray-30 psui-cursor-pointer psui-transition-all;
|
|
@@ -90,23 +124,6 @@
|
|
|
90
124
|
}
|
|
91
125
|
|
|
92
126
|
&.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
|
-
|
|
109
|
-
}
|
|
110
127
|
|
|
111
128
|
&.layout-with-icon {
|
|
112
129
|
label {
|
|
@@ -156,15 +173,15 @@
|
|
|
156
173
|
}
|
|
157
174
|
|
|
158
175
|
.psui-el-chips-icon {
|
|
159
|
-
font-size:
|
|
176
|
+
font-size: 16px;
|
|
160
177
|
|
|
161
178
|
&-prepend {
|
|
162
|
-
@apply psui-bg-gray-30 psui-rounded-full psui-text-white psui-
|
|
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;
|
|
163
180
|
}
|
|
164
181
|
}
|
|
165
182
|
|
|
166
183
|
.psui-el-chips-close {
|
|
167
|
-
@apply psui-text-gray-40 psui-flex psui-items-center psui-justify-center
|
|
184
|
+
@apply psui-text-gray-40 psui-flex psui-items-center psui-justify-center;
|
|
168
185
|
}
|
|
169
186
|
}
|
|
170
187
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}"
|
|
11
11
|
@mouseover="isHovering = true"
|
|
12
12
|
@mouseleave="isHovering = false"
|
|
13
|
-
@click
|
|
13
|
+
@click="emit('click')"
|
|
14
14
|
>
|
|
15
15
|
<input
|
|
16
16
|
@change="onChange"
|
|
@@ -23,11 +23,15 @@
|
|
|
23
23
|
<label
|
|
24
24
|
:disabled="disabled"
|
|
25
25
|
:for="getInputId"
|
|
26
|
-
:class="
|
|
26
|
+
:class="[
|
|
27
|
+
{'checked': checked && type === 'button', 'layout-disabled': layout === 'disabled'},
|
|
28
|
+
`icon-position-${iconPosition}`
|
|
29
|
+
]"
|
|
27
30
|
>
|
|
28
31
|
<i
|
|
29
32
|
v-if="icon"
|
|
30
33
|
class="psui-el-chips-icon psui-el-chips-icon-prepend"
|
|
34
|
+
:class="{ 'is-rotated': rotableIcon }"
|
|
31
35
|
>{{ icon }}</i>
|
|
32
36
|
{{ label }}
|
|
33
37
|
<button
|
|
@@ -82,6 +86,15 @@ const props = defineProps({
|
|
|
82
86
|
/**
|
|
83
87
|
* It sets if the button was checked or not checked.
|
|
84
88
|
*/
|
|
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
|
+
},
|
|
85
98
|
checked: {
|
|
86
99
|
type: Boolean,
|
|
87
100
|
default: false,
|