@policystudio/policy-studio-ui-vue 1.2.0-access.16 → 1.2.0-access.18
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/dist/css/psui_styles_output.css +44 -24
- package/package.json +1 -1
- package/src/assets/scss/components/PsAccordion.scss +19 -28
- package/src/assets/scss/components/PsButton.scss +1 -1
- package/src/assets/scss/components/PsTabHeader.scss +124 -134
- package/src/components/buttons/PsButton.vue +14 -4
- package/tailwind.config.js +10 -2
|
@@ -1013,7 +1013,7 @@ video {
|
|
|
1013
1013
|
outline: none;
|
|
1014
1014
|
}
|
|
1015
1015
|
.psui-el-tab-header button:focus-visible {
|
|
1016
|
-
outline: 2px solid #
|
|
1016
|
+
outline: 2px solid #2563eb;
|
|
1017
1017
|
outline-offset: 2px;
|
|
1018
1018
|
border-radius: 6px;
|
|
1019
1019
|
}
|
|
@@ -1172,7 +1172,7 @@ video {
|
|
|
1172
1172
|
position: relative;
|
|
1173
1173
|
}
|
|
1174
1174
|
.psui-el-tab-header.layout-underline button {
|
|
1175
|
-
font-weight:
|
|
1175
|
+
font-weight: 500;
|
|
1176
1176
|
}
|
|
1177
1177
|
.psui-el-tab-header.layout-underline button {
|
|
1178
1178
|
--tw-text-opacity: 1;
|
|
@@ -1290,8 +1290,8 @@ video {
|
|
|
1290
1290
|
justify-content: space-between;
|
|
1291
1291
|
}
|
|
1292
1292
|
.psui-el-accordion-item-header {
|
|
1293
|
-
padding-top:
|
|
1294
|
-
padding-bottom:
|
|
1293
|
+
padding-top: 10px;
|
|
1294
|
+
padding-bottom: 10px;
|
|
1295
1295
|
}
|
|
1296
1296
|
.psui-el-accordion-item-header-wrapper {
|
|
1297
1297
|
display: flex;
|
|
@@ -1320,17 +1320,13 @@ video {
|
|
|
1320
1320
|
.psui-el-accordion-item-header-wrapper {
|
|
1321
1321
|
transition: cubic-bezier(0.17, 0.67, 0.83, 0.67) 250ms;
|
|
1322
1322
|
}
|
|
1323
|
-
.psui-el-accordion-item-header-wrapper:hover .psui-el-accordion-item-icon {
|
|
1324
|
-
--tw-text-opacity: 1 !important;
|
|
1325
|
-
color: rgb(18, 121, 153, var(--tw-text-opacity, 1)) !important;
|
|
1326
|
-
}
|
|
1327
|
-
.psui-el-accordion-item-header-wrapper:hover .psui-el-accordion-item-title {
|
|
1328
|
-
--tw-text-opacity: 1;
|
|
1329
|
-
color: rgb(18, 121, 153, var(--tw-text-opacity, 1));
|
|
1330
|
-
}
|
|
1331
1323
|
.psui-el-accordion-item-title {
|
|
1332
1324
|
margin-right: auto;
|
|
1333
1325
|
}
|
|
1326
|
+
.psui-el-accordion-item-icon {
|
|
1327
|
+
--tw-text-opacity: 1;
|
|
1328
|
+
color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
|
|
1329
|
+
}
|
|
1334
1330
|
.psui-el-accordion-item-icon {
|
|
1335
1331
|
font-family: "Material Icons Round";
|
|
1336
1332
|
font-weight: normal;
|
|
@@ -1351,6 +1347,14 @@ video {
|
|
|
1351
1347
|
width: 20px;
|
|
1352
1348
|
transition: transform 0.4s ease-in-out;
|
|
1353
1349
|
}
|
|
1350
|
+
.psui-el-accordion-item:hover .psui-el-accordion-item-header-wrapper {
|
|
1351
|
+
--tw-text-opacity: 1;
|
|
1352
|
+
color: rgb(18, 121, 153, var(--tw-text-opacity, 1));
|
|
1353
|
+
}
|
|
1354
|
+
.psui-el-accordion-item:not(:hover) .psui-el-accordion-item-header-wrapper .psui-el-accordion-item-title {
|
|
1355
|
+
--tw-text-opacity: 1;
|
|
1356
|
+
color: rgb(40, 50, 59, var(--tw-text-opacity, 1));
|
|
1357
|
+
}
|
|
1354
1358
|
.psui-el-accordion.layout-big .psui-el-accordion-item-header, .psui-el-accordion.layout-big .psui-el-accordion-item-content {
|
|
1355
1359
|
padding-left: 1rem;
|
|
1356
1360
|
}
|
|
@@ -1362,7 +1366,7 @@ video {
|
|
|
1362
1366
|
line-height: 24px;
|
|
1363
1367
|
}
|
|
1364
1368
|
.psui-el-accordion.layout-big .psui-el-accordion-item-title {
|
|
1365
|
-
font-weight:
|
|
1369
|
+
font-weight: 500;
|
|
1366
1370
|
}
|
|
1367
1371
|
.psui-el-accordion.layout-big .psui-el-accordion-item-icon {
|
|
1368
1372
|
--tw-text-opacity: 1;
|
|
@@ -1373,7 +1377,7 @@ video {
|
|
|
1373
1377
|
line-height: 20px;
|
|
1374
1378
|
}
|
|
1375
1379
|
.psui-el-accordion.layout-medium .psui-el-accordion-item-title {
|
|
1376
|
-
font-weight:
|
|
1380
|
+
font-weight: 500;
|
|
1377
1381
|
}
|
|
1378
1382
|
.psui-el-accordion.layout-medium .psui-el-accordion-item-icon {
|
|
1379
1383
|
--tw-text-opacity: 1;
|
|
@@ -1382,14 +1386,6 @@ video {
|
|
|
1382
1386
|
.psui-el-accordion.layout-medium .psui-el-accordion-item.status-opened .psui-el-accordion-item-icon {
|
|
1383
1387
|
transform: rotate(180deg);
|
|
1384
1388
|
}
|
|
1385
|
-
.psui-el-accordion .psui-el-accordion-item.status-opened .psui-el-accordion-item-header .psui-el-accordion-item-header-wrapper .psui-el-accordion-item-icon {
|
|
1386
|
-
--tw-text-opacity: 1;
|
|
1387
|
-
color: rgb(18, 121, 153, var(--tw-text-opacity, 1));
|
|
1388
|
-
}
|
|
1389
|
-
.psui-el-accordion .psui-el-accordion-item.status-opened .psui-el-accordion-item-header .psui-el-accordion-item-header-wrapper .psui-el-accordion-item-title {
|
|
1390
|
-
--tw-text-opacity: 1;
|
|
1391
|
-
color: rgb(18, 121, 153, var(--tw-text-opacity, 1));
|
|
1392
|
-
}
|
|
1393
1389
|
.psui-el-accordion .psui-el-accordion-item-content {
|
|
1394
1390
|
margin-bottom: 1.25rem;
|
|
1395
1391
|
}
|
|
@@ -1609,7 +1605,7 @@ video {
|
|
|
1609
1605
|
font-family: inherit;
|
|
1610
1606
|
}
|
|
1611
1607
|
.psui-el-button span {
|
|
1612
|
-
font-weight:
|
|
1608
|
+
font-weight: 500;
|
|
1613
1609
|
}
|
|
1614
1610
|
.psui-el-button span {
|
|
1615
1611
|
line-height: 130%;
|
|
@@ -4882,7 +4878,7 @@ video {
|
|
|
4882
4878
|
font-size: 12px;
|
|
4883
4879
|
}
|
|
4884
4880
|
.psui-el-mini-tag span {
|
|
4885
|
-
font-weight:
|
|
4881
|
+
font-weight: 500;
|
|
4886
4882
|
}
|
|
4887
4883
|
.psui-el-mini-tag span {
|
|
4888
4884
|
line-height: 16px;
|
|
@@ -6537,10 +6533,22 @@ video {
|
|
|
6537
6533
|
height: 0.5rem;
|
|
6538
6534
|
}
|
|
6539
6535
|
|
|
6536
|
+
.psui-h-3\.5 {
|
|
6537
|
+
height: 0.875rem;
|
|
6538
|
+
}
|
|
6539
|
+
|
|
6540
|
+
.psui-h-4 {
|
|
6541
|
+
height: 1rem;
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6540
6544
|
.psui-h-5 {
|
|
6541
6545
|
height: 1.25rem;
|
|
6542
6546
|
}
|
|
6543
6547
|
|
|
6548
|
+
.psui-h-\[18px\] {
|
|
6549
|
+
height: 18px;
|
|
6550
|
+
}
|
|
6551
|
+
|
|
6544
6552
|
.psui-h-full {
|
|
6545
6553
|
height: 100%;
|
|
6546
6554
|
}
|
|
@@ -6549,6 +6557,14 @@ video {
|
|
|
6549
6557
|
width: 0.5rem;
|
|
6550
6558
|
}
|
|
6551
6559
|
|
|
6560
|
+
.psui-w-3\.5 {
|
|
6561
|
+
width: 0.875rem;
|
|
6562
|
+
}
|
|
6563
|
+
|
|
6564
|
+
.psui-w-4 {
|
|
6565
|
+
width: 1rem;
|
|
6566
|
+
}
|
|
6567
|
+
|
|
6552
6568
|
.psui-w-48 {
|
|
6553
6569
|
width: 12rem;
|
|
6554
6570
|
}
|
|
@@ -6557,6 +6573,10 @@ video {
|
|
|
6557
6573
|
width: 1.25rem;
|
|
6558
6574
|
}
|
|
6559
6575
|
|
|
6576
|
+
.psui-w-\[18px\] {
|
|
6577
|
+
width: 18px;
|
|
6578
|
+
}
|
|
6579
|
+
|
|
6560
6580
|
.psui-w-auto {
|
|
6561
6581
|
width: auto;
|
|
6562
6582
|
}
|
package/package.json
CHANGED
|
@@ -25,21 +25,11 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&-header {
|
|
28
|
-
@apply psui-flex psui-justify-between psui-items-center;
|
|
29
|
-
|
|
30
|
-
padding-bottom: 16px;
|
|
28
|
+
@apply psui-flex psui-justify-between psui-items-center psui-py-[10px];
|
|
29
|
+
|
|
31
30
|
|
|
32
31
|
&-wrapper {
|
|
33
32
|
@apply psui-flex psui-items-start psui-justify-between psui-w-full psui-cursor-pointer psui-transition-all transition-default psui-text-gray-80;
|
|
34
|
-
|
|
35
|
-
&:hover {
|
|
36
|
-
.psui-el-accordion-item-icon {
|
|
37
|
-
@apply psui-text-blue-60 !important;
|
|
38
|
-
}
|
|
39
|
-
.psui-el-accordion-item-title{
|
|
40
|
-
@apply psui-text-blue-60;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
33
|
}
|
|
44
34
|
}
|
|
45
35
|
|
|
@@ -48,12 +38,26 @@
|
|
|
48
38
|
}
|
|
49
39
|
|
|
50
40
|
&-icon {
|
|
51
|
-
@apply psui-icon;
|
|
41
|
+
@apply psui-icon psui-text-gray-60;
|
|
52
42
|
font-size: 20px;
|
|
53
43
|
width: 20px;
|
|
54
44
|
transition: transform 0.4s ease-in-out;
|
|
55
45
|
}
|
|
56
46
|
|
|
47
|
+
&:hover {
|
|
48
|
+
.psui-el-accordion-item-header-wrapper {
|
|
49
|
+
@apply psui-text-blue-60;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:not(:hover) {
|
|
54
|
+
.psui-el-accordion-item-header-wrapper {
|
|
55
|
+
.psui-el-accordion-item-title {
|
|
56
|
+
@apply psui-text-gray-80;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
&.layout-big {
|
|
@@ -62,7 +66,7 @@
|
|
|
62
66
|
@apply psui-pl-4 psui-pr-4;
|
|
63
67
|
}
|
|
64
68
|
&-title {
|
|
65
|
-
@apply psui-text-18 psui-font-
|
|
69
|
+
@apply psui-text-18 psui-font-semibold;
|
|
66
70
|
}
|
|
67
71
|
&-icon {
|
|
68
72
|
@apply psui-text-gray-30
|
|
@@ -73,7 +77,7 @@
|
|
|
73
77
|
&.layout-medium {
|
|
74
78
|
.psui-el-accordion-item {
|
|
75
79
|
&-title {
|
|
76
|
-
@apply psui-text-14 psui-font-
|
|
80
|
+
@apply psui-text-14 psui-font-semibold;
|
|
77
81
|
}
|
|
78
82
|
&-icon {
|
|
79
83
|
@apply psui-text-gray-60;
|
|
@@ -86,19 +90,6 @@
|
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
|
-
|
|
90
|
-
.psui-el-accordion-item {
|
|
91
|
-
&.status-opened .psui-el-accordion-item-header {
|
|
92
|
-
.psui-el-accordion-item-header-wrapper {
|
|
93
|
-
.psui-el-accordion-item-icon {
|
|
94
|
-
@apply psui-text-blue-60;
|
|
95
|
-
}
|
|
96
|
-
.psui-el-accordion-item-title{
|
|
97
|
-
@apply psui-text-blue-60;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
93
|
|
|
103
94
|
.psui-el-accordion-item-content {
|
|
104
95
|
@apply psui-list-none psui-text-gray-60 psui-mb-5;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
@layer components{
|
|
2
|
-
|
|
1
|
+
@layer components {
|
|
3
2
|
.psui-el-tab-header {
|
|
4
3
|
@apply psui-flex psui-space-x-1;
|
|
5
4
|
|
|
6
5
|
button {
|
|
7
6
|
@apply transition-default psui-text-14;
|
|
8
|
-
|
|
7
|
+
|
|
9
8
|
&.status-disabled {
|
|
10
9
|
@apply psui-cursor-not-allowed;
|
|
11
10
|
}
|
|
@@ -15,146 +14,141 @@
|
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
&:focus-visible {
|
|
18
|
-
outline: 2px solid #
|
|
19
|
-
outline-offset: 2px;
|
|
20
|
-
border-radius: 6px;
|
|
17
|
+
outline: 2px solid #2563eb;
|
|
18
|
+
outline-offset: 2px;
|
|
19
|
+
border-radius: 6px;
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
&.status-disabled {
|
|
25
24
|
.psui-el-input-wrapper {
|
|
26
|
-
@apply psui-bg-gray-20 psui-border-gray-20
|
|
25
|
+
@apply psui-bg-gray-20 psui-border-gray-20;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/* Layout Policy Design */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
@apply psui-text-gray-60;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.status-active {
|
|
54
|
-
@apply psui-border-blue-60;
|
|
55
|
-
|
|
56
|
-
&:after {
|
|
57
|
-
@apply psui-opacity-100;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
> div {
|
|
61
|
-
@apply psui-text-blue-60;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
> span {
|
|
65
|
-
@apply psui-font-bold psui-text-gray-70;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
> div {
|
|
70
|
-
@apply psui-text-gray-50 psui-mr-1;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
> span {
|
|
74
|
-
line-height: 120%;
|
|
75
|
-
font-size: 14px;
|
|
76
|
-
@apply psui-text-gray-60 psui-font-bold;
|
|
77
|
-
}
|
|
30
|
+
&.layout-policy-design {
|
|
31
|
+
button {
|
|
32
|
+
padding: 8px 2px 7px 0px;
|
|
33
|
+
margin-right: 8px;
|
|
34
|
+
@apply psui-flex psui-items-center psui-relative;
|
|
35
|
+
|
|
36
|
+
&:not(:first-child) {
|
|
37
|
+
margin-left: 8px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:after {
|
|
41
|
+
content: '';
|
|
42
|
+
@apply psui-transition-all psui-h-[3px] psui-block psui-w-full psui-absolute psui-bottom-0 psui-left-0 psui-opacity-0 psui-bg-blue-60;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
> div {
|
|
47
|
+
@apply psui-text-gray-60;
|
|
78
48
|
}
|
|
79
49
|
}
|
|
80
|
-
|
|
81
50
|
|
|
51
|
+
&.status-active {
|
|
52
|
+
@apply psui-border-blue-60;
|
|
53
|
+
|
|
54
|
+
&:after {
|
|
55
|
+
@apply psui-opacity-100;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
> div {
|
|
59
|
+
@apply psui-text-blue-60;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
> span {
|
|
63
|
+
@apply psui-font-bold psui-text-gray-70;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
> div {
|
|
68
|
+
@apply psui-text-gray-50 psui-mr-1;
|
|
69
|
+
}
|
|
82
70
|
|
|
71
|
+
> span {
|
|
72
|
+
line-height: 120%;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
@apply psui-text-gray-60 psui-font-bold;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
83
78
|
/* ----------------------------------------- */
|
|
84
79
|
|
|
85
80
|
/* Layout Standard */
|
|
86
81
|
/* ----------------------------------------- */
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
&.layout-standard {
|
|
83
|
+
@apply psui-rounded-md;
|
|
89
84
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
85
|
+
.psui-el-tooltip {
|
|
86
|
+
&:not(:last-child) {
|
|
87
|
+
margin-right: 20px;
|
|
94
88
|
}
|
|
95
|
-
|
|
96
|
-
button {
|
|
97
|
-
@apply psui-bg-gray-10 psui-text-gray-60;
|
|
98
|
-
padding: 6px 12px;
|
|
99
|
-
box-shadow: inset 0px 0px 8px rgba(40, 50, 59, 0.05);
|
|
89
|
+
}
|
|
100
90
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
91
|
+
button {
|
|
92
|
+
@apply psui-bg-gray-10 psui-text-gray-60;
|
|
93
|
+
padding: 6px 12px;
|
|
94
|
+
box-shadow: inset 0px 0px 8px rgba(40, 50, 59, 0.05);
|
|
104
95
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
96
|
+
&:not(:last-child) {
|
|
97
|
+
margin-right: 1px;
|
|
98
|
+
}
|
|
108
99
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
100
|
+
&:first-child {
|
|
101
|
+
@apply psui-rounded-l;
|
|
102
|
+
}
|
|
112
103
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
104
|
+
&:last-child {
|
|
105
|
+
@apply psui-rounded-r;
|
|
106
|
+
}
|
|
117
107
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
108
|
+
&:hover {
|
|
109
|
+
@apply psui-text-blue-60;
|
|
110
|
+
box-shadow: inset 0px 0px 8px rgba(40, 50, 59, 0.05);
|
|
111
|
+
}
|
|
121
112
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
&.status-active {
|
|
114
|
+
@apply psui-text-white psui-bg-blue-60 psui-font-bold;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.status-disabled:hover {
|
|
118
|
+
@apply psui-text-gray-60;
|
|
125
119
|
}
|
|
126
120
|
}
|
|
121
|
+
}
|
|
127
122
|
/* ----------------------------------------- Layout Standard */
|
|
128
|
-
|
|
123
|
+
|
|
129
124
|
/* Layout Underline */
|
|
130
125
|
/* ----------------------------------------- */
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
126
|
+
&.layout-underline {
|
|
127
|
+
.psui-el-tooltip {
|
|
128
|
+
&:not(:last-child) {
|
|
129
|
+
margin-right: 20px;
|
|
136
130
|
}
|
|
131
|
+
}
|
|
137
132
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
button {
|
|
134
|
+
@apply psui-text-gray-80 psui-font-semibold psui-relative;
|
|
135
|
+
padding: 8px 0;
|
|
141
136
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
&:hover {
|
|
138
|
+
@apply psui-text-blue-60;
|
|
139
|
+
}
|
|
145
140
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
&:not(:last-child) {
|
|
142
|
+
margin-right: 8px;
|
|
143
|
+
}
|
|
149
144
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
145
|
+
&.status-enable:hover {
|
|
146
|
+
@apply psui-text-blue-60;
|
|
147
|
+
}
|
|
153
148
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
psui-content-['']
|
|
149
|
+
&.status-active {
|
|
150
|
+
&::after {
|
|
151
|
+
@apply psui-content-['']
|
|
158
152
|
psui-absolute
|
|
159
153
|
psui-bottom-0
|
|
160
154
|
psui-left-0
|
|
@@ -163,46 +157,42 @@
|
|
|
163
157
|
psui-rounded-tl-[20px]
|
|
164
158
|
psui-rounded-tr-[20px]
|
|
165
159
|
psui-bg-blue-60;
|
|
166
|
-
}
|
|
167
160
|
}
|
|
168
161
|
}
|
|
169
162
|
}
|
|
163
|
+
}
|
|
170
164
|
/* ----------------------------------------- Layout Underline */
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
|
|
173
166
|
/* Layout Folder */
|
|
174
167
|
/* ----------------------------------------- */
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
margin-right: 20px;
|
|
180
|
-
}
|
|
168
|
+
&.layout-folder {
|
|
169
|
+
.psui-el-tooltip {
|
|
170
|
+
&:not(:last-child) {
|
|
171
|
+
margin-right: 20px;
|
|
181
172
|
}
|
|
173
|
+
}
|
|
182
174
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
175
|
+
button {
|
|
176
|
+
@apply psui-bg-gray-10 psui-text-gray-50 psui-rounded-t;
|
|
177
|
+
padding: 9px 12px;
|
|
186
178
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
179
|
+
&:hover {
|
|
180
|
+
@apply psui-text-blue-60;
|
|
181
|
+
}
|
|
190
182
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
183
|
+
&:not(:last-child) {
|
|
184
|
+
margin-right: 4px;
|
|
185
|
+
}
|
|
194
186
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
187
|
+
&.status-enable:hover {
|
|
188
|
+
@apply psui-text-gray-60;
|
|
189
|
+
}
|
|
198
190
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
191
|
+
&.status-active {
|
|
192
|
+
@apply psui-text-blue-60 psui-font-bold psui-bg-white;
|
|
202
193
|
}
|
|
203
194
|
}
|
|
195
|
+
}
|
|
204
196
|
/* ----------------------------------------- Layout Folder */
|
|
205
|
-
|
|
206
197
|
}
|
|
207
|
-
|
|
208
|
-
}
|
|
198
|
+
}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
>
|
|
15
15
|
<svg
|
|
16
16
|
v-if="loading && showLoadingLeft"
|
|
17
|
-
class="psui-animate-spin psui-
|
|
18
|
-
:class="iconLeft ? 'icon-left-side' : 'psui-mr-2'"
|
|
17
|
+
class="psui-animate-spin psui-text-black"
|
|
18
|
+
:class="[loadingSizeClass, iconLeft ? 'icon-left-side' : 'psui-mr-2']"
|
|
19
19
|
xmlns="http://www.w3.org/2000/svg"
|
|
20
20
|
fill="none"
|
|
21
21
|
viewBox="0 0 24 24"
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
|
|
46
46
|
<svg
|
|
47
47
|
v-if="loading && showLoadingRight"
|
|
48
|
-
class="psui-animate-spin psui-
|
|
49
|
-
:class="iconRight ? 'icon-right-side' : 'psui-ml-2'"
|
|
48
|
+
class="psui-animate-spin psui-text-black"
|
|
49
|
+
:class="[loadingSizeClass, iconRight ? 'icon-right-side' : 'psui-ml-2']"
|
|
50
50
|
xmlns="http://www.w3.org/2000/svg"
|
|
51
51
|
fill="none"
|
|
52
52
|
viewBox="0 0 24 24"
|
|
@@ -157,6 +157,16 @@ const showLoadingRight = computed(() => {
|
|
|
157
157
|
return false
|
|
158
158
|
})
|
|
159
159
|
|
|
160
|
+
const loadingSizeClass = computed(() => {
|
|
161
|
+
const sizeMap = {
|
|
162
|
+
compact: 'psui-h-3.5 psui-w-3.5',
|
|
163
|
+
small: 'psui-h-4 psui-w-4',
|
|
164
|
+
medium: 'psui-h-[18px] psui-w-[18px]',
|
|
165
|
+
big: 'psui-h-5 psui-w-5',
|
|
166
|
+
}
|
|
167
|
+
return sizeMap[props.size] || sizeMap.big
|
|
168
|
+
})
|
|
169
|
+
|
|
160
170
|
const getComponentClass = computed(() => {
|
|
161
171
|
const classes = [`layout-${props.layout}`, `size-${props.size}`]
|
|
162
172
|
|
package/tailwind.config.js
CHANGED
|
@@ -9,6 +9,10 @@ const sizeMap = {
|
|
|
9
9
|
28: ['28px', { lineHeight: '36px' }]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
const customFontWeights = {
|
|
13
|
+
'medium': 500,
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
export default {
|
|
13
17
|
prefix: 'psui-',
|
|
14
18
|
content: ['./index.html', './src/**/*.vue', './src/**/*.js', './src/**/*.ts', './src/**/*.jsx', './src/**/*.tsx'],
|
|
@@ -132,7 +136,10 @@ export default {
|
|
|
132
136
|
inset: {
|
|
133
137
|
'-1': '-1rem',
|
|
134
138
|
'-2': '-0.5rem'
|
|
135
|
-
}
|
|
139
|
+
},
|
|
140
|
+
fontWeight: {
|
|
141
|
+
'semibold': customFontWeights['medium'],
|
|
142
|
+
},
|
|
136
143
|
},
|
|
137
144
|
screens: {
|
|
138
145
|
sm: '640px',
|
|
@@ -140,7 +147,8 @@ export default {
|
|
|
140
147
|
lg: '1024px',
|
|
141
148
|
xl: '1280px',
|
|
142
149
|
'2xl': '1536px'
|
|
143
|
-
}
|
|
150
|
+
},
|
|
151
|
+
|
|
144
152
|
},
|
|
145
153
|
variants: {
|
|
146
154
|
boxShadow: ['active'],
|