@wizco/fenixds-core 1.5.1 → 1.5.3
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/package.json +1 -1
- package/styles/core.css +51 -6
- package/styles/scss/forms.scss +3 -1
- package/styles/scss/tags.scss +79 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wizco/fenixds-core",
|
|
3
3
|
"description": "Fenix design system é um produto da Wiz com ativos de design e código de front-end para ajudar as equipes na criação dos seus produtos.",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "Raul Melo Fernandez",
|
package/styles/core.css
CHANGED
|
@@ -1057,13 +1057,14 @@ a.btn {
|
|
|
1057
1057
|
right: 19px;
|
|
1058
1058
|
transform: translateY(-50%);
|
|
1059
1059
|
width: min-content;
|
|
1060
|
-
height:
|
|
1060
|
+
height: min-content;
|
|
1061
1061
|
border-left: 6px solid transparent;
|
|
1062
1062
|
border-right: 6px solid transparent;
|
|
1063
1063
|
border-top: 6px solid var(--wco-color-primary-600);
|
|
1064
1064
|
background-size: 30px;
|
|
1065
1065
|
background-position: center;
|
|
1066
|
-
background-repeat: no-repeat;
|
|
1066
|
+
background-repeat: no-repeat;
|
|
1067
|
+
pointer-events: none; }
|
|
1067
1068
|
.wco-form-field:has(select + i):after,
|
|
1068
1069
|
.form-field:has(select + i):after {
|
|
1069
1070
|
display: none; }
|
|
@@ -1291,7 +1292,8 @@ label.form-check, .form-check {
|
|
|
1291
1292
|
transition: all 0.3s;
|
|
1292
1293
|
container-type: inline-size;
|
|
1293
1294
|
overflow: hidden;
|
|
1294
|
-
min-width: max-content;
|
|
1295
|
+
min-width: max-content;
|
|
1296
|
+
position: relative; }
|
|
1295
1297
|
.wco-form-upload:has(input[type="file"]:not(:disabled)):not(.wco-form-disabled):hover {
|
|
1296
1298
|
border-color: var(--wco-attachment-hover-color-border);
|
|
1297
1299
|
background-color: var(--wco-attachment-hover-color-bg); }
|
|
@@ -1490,6 +1492,8 @@ label.form-check, .form-check {
|
|
|
1490
1492
|
--wco-tag-border-radius: var(--wco-radius-lg, 24px);
|
|
1491
1493
|
--wco-tag-border-color: var(--wco-color-neutral-700);
|
|
1492
1494
|
--wco-tag-font-size: var(--wco-font-size-xxs, 14px);
|
|
1495
|
+
--wco-tag-icon-size: var(--wco-icon-size-small);
|
|
1496
|
+
--wco-tag-icon-color: var(--wco-color-neutral-700);
|
|
1493
1497
|
font-size: var(--wco-tag-font-size, 14px);
|
|
1494
1498
|
color: var(--wco-tag-color, #333);
|
|
1495
1499
|
background-color: var(--wco-tag-background-color, #fff);
|
|
@@ -1511,10 +1515,34 @@ label.form-check, .form-check {
|
|
|
1511
1515
|
text-wrap: nowrap; }
|
|
1512
1516
|
.wco-tag span,
|
|
1513
1517
|
.wco-tag i {
|
|
1514
|
-
--wco-tag-icon-size: var(--wco-icon-size-small);
|
|
1515
|
-
--wco-tag-icon-color: var(--wco-color-neutral-700);
|
|
1516
1518
|
color: var(--wco-tag-icon-color);
|
|
1517
|
-
font-size: var(--wco-tag-icon-size, 14px);
|
|
1519
|
+
font-size: var(--wco-tag-icon-size, 14px);
|
|
1520
|
+
line-height: 150%; }
|
|
1521
|
+
.wco-tag.tag-icon-toggle {
|
|
1522
|
+
position: relative;
|
|
1523
|
+
padding-inline-end: calc(var(--wco-spacing-xxxs) + 2px); }
|
|
1524
|
+
.wco-tag.tag-icon-toggle > i, .wco-tag.tag-icon-toggle > span, .wco-tag.tag-icon-toggle > button {
|
|
1525
|
+
position: absolute;
|
|
1526
|
+
right: -4px;
|
|
1527
|
+
height: 100%;
|
|
1528
|
+
opacity: 0;
|
|
1529
|
+
display: inline-flex;
|
|
1530
|
+
align-items: center;
|
|
1531
|
+
width: min-content;
|
|
1532
|
+
visibility: hidden;
|
|
1533
|
+
--wco-tag-icon-size: calc(var(--wco-tag-font-size) - 2px);
|
|
1534
|
+
transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, right 0.2s ease-in-out; }
|
|
1535
|
+
.wco-tag.tag-icon-toggle:has(button:last-child):hover > button {
|
|
1536
|
+
cursor: pointer;
|
|
1537
|
+
opacity: 1;
|
|
1538
|
+
visibility: visible;
|
|
1539
|
+
right: 2px; }
|
|
1540
|
+
.wco-tag.tag-icon-toggle:is(button, a):not(:disabled) {
|
|
1541
|
+
cursor: pointer; }
|
|
1542
|
+
.wco-tag.tag-icon-toggle:is(button, a):not(:disabled):hover i, .wco-tag.tag-icon-toggle:is(button, a):not(:disabled):hover span {
|
|
1543
|
+
opacity: 1;
|
|
1544
|
+
visibility: visible;
|
|
1545
|
+
right: 2px; }
|
|
1518
1546
|
|
|
1519
1547
|
.tag-success {
|
|
1520
1548
|
--wco-tag-color: var(--wco-color-success-700);
|
|
@@ -1557,6 +1585,23 @@ label.form-check, .form-check {
|
|
|
1557
1585
|
.tag-disabled i {
|
|
1558
1586
|
--wco-tag-icon-color: var(--wco-color-neutral-500); }
|
|
1559
1587
|
|
|
1588
|
+
.tag-basic {
|
|
1589
|
+
--wco-tag-size: 28px;
|
|
1590
|
+
--wco-tag-spacing: var(--wco-spacing-quark) var(--wco-spacing-xxxs);
|
|
1591
|
+
--wco-tag-gap: var(--wco-spacing-quark, 4px);
|
|
1592
|
+
--wco-tag-color: var(--wco-color-neutral-900);
|
|
1593
|
+
--wco-tag-background-color: var(--wco-color-neutral-100);
|
|
1594
|
+
--wco-tag-border-radius: var(--wco-radius-nano, 8px);
|
|
1595
|
+
--wco-tag-border-color: transparent; }
|
|
1596
|
+
.tag-basic span, .tag-basic i {
|
|
1597
|
+
font-size: calc(var(--wco-tag-font-size) - 2px); }
|
|
1598
|
+
.tag-basic:is(button):disabled {
|
|
1599
|
+
--wco-tag-background-color: var(--wco-color-neutral-300); }
|
|
1600
|
+
.tag-basic:not(.tag-icon-toggle):has(i:last-child) {
|
|
1601
|
+
padding-right: var(--wco-spacing-quark); }
|
|
1602
|
+
.tag-basic:not(.tag-icon-toggle):has(i:first-child) {
|
|
1603
|
+
padding-left: var(--wco-spacing-quark); }
|
|
1604
|
+
|
|
1560
1605
|
.wco-group-tags {
|
|
1561
1606
|
display: flex;
|
|
1562
1607
|
flex-wrap: wrap;
|
package/styles/scss/forms.scss
CHANGED
|
@@ -310,13 +310,14 @@
|
|
|
310
310
|
right: 19px;
|
|
311
311
|
transform: translateY(-50%);
|
|
312
312
|
width: min-content;
|
|
313
|
-
height:
|
|
313
|
+
height: min-content;
|
|
314
314
|
border-left: 6px solid transparent;
|
|
315
315
|
border-right: 6px solid transparent;
|
|
316
316
|
border-top: 6px solid var(--wco-color-primary-600);
|
|
317
317
|
background-size: 30px;
|
|
318
318
|
background-position: center;
|
|
319
319
|
background-repeat: no-repeat;
|
|
320
|
+
pointer-events: none;
|
|
320
321
|
}
|
|
321
322
|
|
|
322
323
|
}
|
|
@@ -611,6 +612,7 @@ label.form-check, .form-check {
|
|
|
611
612
|
container-type: inline-size;
|
|
612
613
|
overflow: hidden;
|
|
613
614
|
min-width: max-content;
|
|
615
|
+
position: relative;
|
|
614
616
|
&:has(input[type="file"]:not(:disabled)) {
|
|
615
617
|
&:not(.wco-form-disabled) {
|
|
616
618
|
&:hover {
|
package/styles/scss/tags.scss
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
--wco-tag-border-radius: var(--wco-radius-lg, 24px);
|
|
8
8
|
--wco-tag-border-color: var(--wco-color-neutral-700);
|
|
9
9
|
--wco-tag-font-size: var(--wco-font-size-xxs, 14px);
|
|
10
|
+
--wco-tag-icon-size: var(--wco-icon-size-small);
|
|
11
|
+
--wco-tag-icon-color: var(--wco-color-neutral-700);
|
|
10
12
|
font-size: var(--wco-tag-font-size, 14px);
|
|
11
13
|
color: var(--wco-tag-color, #333);
|
|
12
14
|
background-color: var(--wco-tag-background-color, #fff);
|
|
@@ -28,14 +30,60 @@
|
|
|
28
30
|
text-wrap: nowrap;
|
|
29
31
|
span,
|
|
30
32
|
i {
|
|
31
|
-
--wco-tag-icon-size: var(--wco-icon-size-small);
|
|
32
|
-
--wco-tag-icon-color: var(--wco-color-neutral-700);
|
|
33
33
|
color: var(--wco-tag-icon-color);
|
|
34
34
|
font-size: var(--wco-tag-icon-size, 14px);
|
|
35
|
+
line-height: 150%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
//////////////////////////////////////
|
|
41
|
+
/// Comportamento do ícone hiden/show
|
|
42
|
+
//////////////////////////////////////
|
|
43
|
+
&.tag-icon-toggle {
|
|
44
|
+
position: relative;
|
|
45
|
+
padding-inline-end: calc(var(--wco-spacing-xxxs) + 2px);
|
|
46
|
+
> i, > span, > button {
|
|
47
|
+
position: absolute;
|
|
48
|
+
right: -4px;
|
|
49
|
+
height: 100%;
|
|
50
|
+
opacity: 0;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
width: min-content;
|
|
54
|
+
visibility: hidden;
|
|
55
|
+
--wco-tag-icon-size: calc(var(--wco-tag-font-size) - 2px);
|
|
56
|
+
transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, right 0.2s ease-in-out;
|
|
57
|
+
}
|
|
58
|
+
&:has(button:last-child) {
|
|
59
|
+
&:hover {
|
|
60
|
+
> button {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
opacity: 1;
|
|
63
|
+
visibility: visible;
|
|
64
|
+
right: 2px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
&:is(button, a) {
|
|
69
|
+
&:not(:disabled) {
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
&:hover {
|
|
72
|
+
i, span {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
visibility: visible;
|
|
75
|
+
right: 2px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
35
80
|
}
|
|
36
81
|
}
|
|
37
82
|
|
|
38
83
|
.tag {
|
|
84
|
+
//////////
|
|
85
|
+
// COLORS
|
|
86
|
+
//////////
|
|
39
87
|
&-success {
|
|
40
88
|
--wco-tag-color: var(--wco-color-success-700);
|
|
41
89
|
--wco-tag-border-color: var(--wco-color-success-700);
|
|
@@ -86,6 +134,35 @@
|
|
|
86
134
|
--wco-tag-icon-color: var(--wco-color-neutral-500);
|
|
87
135
|
}
|
|
88
136
|
}
|
|
137
|
+
|
|
138
|
+
//////////
|
|
139
|
+
// SIZES
|
|
140
|
+
//////////
|
|
141
|
+
&-basic {
|
|
142
|
+
--wco-tag-size: 28px;
|
|
143
|
+
--wco-tag-spacing: var(--wco-spacing-quark) var(--wco-spacing-xxxs);
|
|
144
|
+
--wco-tag-gap: var(--wco-spacing-quark, 4px);
|
|
145
|
+
--wco-tag-color: var(--wco-color-neutral-900);
|
|
146
|
+
--wco-tag-background-color: var(--wco-color-neutral-100);
|
|
147
|
+
--wco-tag-border-radius: var(--wco-radius-nano, 8px);
|
|
148
|
+
--wco-tag-border-color: transparent;
|
|
149
|
+
span, i {
|
|
150
|
+
font-size: calc(var(--wco-tag-font-size) - 2px);
|
|
151
|
+
}
|
|
152
|
+
&:is(button) {
|
|
153
|
+
&:disabled {
|
|
154
|
+
--wco-tag-background-color: var(--wco-color-neutral-300);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
&:not(.tag-icon-toggle){
|
|
158
|
+
&:has(i:last-child) {
|
|
159
|
+
padding-right: var(--wco-spacing-quark);
|
|
160
|
+
}
|
|
161
|
+
&:has(i:first-child) {
|
|
162
|
+
padding-left: var(--wco-spacing-quark);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
89
166
|
}
|
|
90
167
|
|
|
91
168
|
.wco-group-tags {
|