@wizco/fenixds-core 1.1.0 → 1.2.1
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 +90 -9
- package/styles/scss/core.scss +1 -0
- package/styles/scss/forms.scss +10 -10
- package/styles/scss/tags.scss +95 -0
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.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "Raul Melo Fernandez",
|
package/styles/core.css
CHANGED
|
@@ -1285,7 +1285,7 @@ label.form-check, .form-check {
|
|
|
1285
1285
|
transition: all 0.3s;
|
|
1286
1286
|
container-type: inline-size;
|
|
1287
1287
|
overflow: hidden;
|
|
1288
|
-
min-width:
|
|
1288
|
+
min-width: max-content; }
|
|
1289
1289
|
.wco-form-upload:has(input[type="file"]:not(:disabled)):not(.wco-form-disabled):hover {
|
|
1290
1290
|
border-color: var(--wco-attachment-hover-color-border);
|
|
1291
1291
|
background-color: var(--wco-attachment-hover-color-bg); }
|
|
@@ -1387,14 +1387,14 @@ label.form-check, .form-check {
|
|
|
1387
1387
|
background-position: center;
|
|
1388
1388
|
background-repeat: no-repeat;
|
|
1389
1389
|
background-size: contain; }
|
|
1390
|
-
.helper-text.error
|
|
1391
|
-
|
|
1392
|
-
.helper-text.warning
|
|
1393
|
-
|
|
1394
|
-
.helper-text.success
|
|
1395
|
-
|
|
1396
|
-
.helper-text.info
|
|
1397
|
-
|
|
1390
|
+
.helper-text.error > :is(i, span:first-child) {
|
|
1391
|
+
color: var(--wco-color-danger-600); }
|
|
1392
|
+
.helper-text.warning > :is(i, span:first-child) {
|
|
1393
|
+
color: var(--wco-color-warning-600); }
|
|
1394
|
+
.helper-text.success > :is(i, span:first-child) {
|
|
1395
|
+
color: var(--wco-color-success-600); }
|
|
1396
|
+
.helper-text.info > :is(i, span:first-child) {
|
|
1397
|
+
color: var(--wco-color-info-600); }
|
|
1398
1398
|
|
|
1399
1399
|
.wco-chip {
|
|
1400
1400
|
--wco-chip-size: 21px;
|
|
@@ -1475,6 +1475,87 @@ label.form-check, .form-check {
|
|
|
1475
1475
|
flex-wrap: wrap;
|
|
1476
1476
|
gap: var(--wco-spacing-nano, 12px); }
|
|
1477
1477
|
|
|
1478
|
+
.wco-tag {
|
|
1479
|
+
--wco-tag-size: 29px;
|
|
1480
|
+
--wco-tag-spacing: var(--wco-spacing-quark) var(--wco-spacing-xxxs);
|
|
1481
|
+
--wco-tag-gap: var(--wco-spacing-nano, 8px);
|
|
1482
|
+
--wco-tag-color: var(--wco-color-neutral-700);
|
|
1483
|
+
--wco-tag-background-color: transparent;
|
|
1484
|
+
--wco-tag-border-radius: var(--wco-radius-lg, 24px);
|
|
1485
|
+
--wco-tag-border-color: var(--wco-color-neutral-700);
|
|
1486
|
+
--wco-tag-font-size: var(--wco-font-size-xxs, 14px);
|
|
1487
|
+
font-size: var(--wco-tag-font-size, 14px);
|
|
1488
|
+
color: var(--wco-tag-color, #333);
|
|
1489
|
+
background-color: var(--wco-tag-background-color, #fff);
|
|
1490
|
+
border: 1px solid var(--wco-tag-border-color);
|
|
1491
|
+
border-radius: var(--wco-tag-border-radius, 24px);
|
|
1492
|
+
gap: var(--wco-tag-gap, 4px);
|
|
1493
|
+
display: inline-flex;
|
|
1494
|
+
align-items: center;
|
|
1495
|
+
justify-content: center;
|
|
1496
|
+
padding: var(--wco-tag-spacing, 0 4px);
|
|
1497
|
+
min-height: var(--wco-tag-size, 24px);
|
|
1498
|
+
width: fit-content;
|
|
1499
|
+
font-style: normal;
|
|
1500
|
+
font-weight: 600;
|
|
1501
|
+
text-align: center;
|
|
1502
|
+
font-family: var(--wco-font-family);
|
|
1503
|
+
line-height: 150%;
|
|
1504
|
+
letter-spacing: 0.35px;
|
|
1505
|
+
text-wrap: nowrap; }
|
|
1506
|
+
.wco-tag span,
|
|
1507
|
+
.wco-tag i {
|
|
1508
|
+
--wco-tag-icon-size: var(--wco-icon-size-small);
|
|
1509
|
+
--wco-tag-icon-color: var(--wco-color-neutral-700);
|
|
1510
|
+
color: var(--wco-tag-icon-color);
|
|
1511
|
+
font-size: var(--wco-tag-icon-size, 14px); }
|
|
1512
|
+
|
|
1513
|
+
.tag-success {
|
|
1514
|
+
--wco-tag-color: var(--wco-color-success-700);
|
|
1515
|
+
--wco-tag-border-color: var(--wco-color-success-700);
|
|
1516
|
+
--wco-tag-background-color: var(--wco-color-success-50); }
|
|
1517
|
+
.tag-success span,
|
|
1518
|
+
.tag-success i {
|
|
1519
|
+
--wco-tag-icon-color: var(--wco-color-success-700); }
|
|
1520
|
+
|
|
1521
|
+
.tag-warning {
|
|
1522
|
+
--wco-tag-color: var(--wco-color-warning-700);
|
|
1523
|
+
--wco-tag-border-color: var(--wco-color-warning-700);
|
|
1524
|
+
--wco-tag-background-color: var(--wco-color-warning-50); }
|
|
1525
|
+
.tag-warning span,
|
|
1526
|
+
.tag-warning i {
|
|
1527
|
+
--wco-tag-icon-color: var(--wco-color-warning-700); }
|
|
1528
|
+
|
|
1529
|
+
.tag-error {
|
|
1530
|
+
--wco-tag-color: var(--wco-color-danger-700);
|
|
1531
|
+
--wco-tag-border-color: var(--wco-color-danger-700);
|
|
1532
|
+
--wco-tag-background-color: var(--wco-color-danger-50); }
|
|
1533
|
+
.tag-error span,
|
|
1534
|
+
.tag-error i {
|
|
1535
|
+
--wco-tag-icon-color: var(--wco-color-danger-700); }
|
|
1536
|
+
|
|
1537
|
+
.tag-info {
|
|
1538
|
+
--wco-tag-color: var(--wco-color-info-700);
|
|
1539
|
+
--wco-tag-border-color: var(--wco-color-info-700);
|
|
1540
|
+
--wco-tag-background-color: var(--wco-color-info-50); }
|
|
1541
|
+
.tag-info span,
|
|
1542
|
+
.tag-info i {
|
|
1543
|
+
--wco-tag-icon-color: var(--wco-color-info-700); }
|
|
1544
|
+
|
|
1545
|
+
.tag-disabled {
|
|
1546
|
+
--wco-tag-color: var(--wco-color-neutral-500);
|
|
1547
|
+
--wco-tag-border-color: var(--wco-color-neutral-500);
|
|
1548
|
+
--wco-tag-background-color: var(--wco-color-neutral-50);
|
|
1549
|
+
cursor: default; }
|
|
1550
|
+
.tag-disabled span,
|
|
1551
|
+
.tag-disabled i {
|
|
1552
|
+
--wco-tag-icon-color: var(--wco-color-neutral-500); }
|
|
1553
|
+
|
|
1554
|
+
.wco-group-tags {
|
|
1555
|
+
display: flex;
|
|
1556
|
+
flex-wrap: wrap;
|
|
1557
|
+
gap: var(--wco-spacing-nano, 12px); }
|
|
1558
|
+
|
|
1478
1559
|
.m-none {
|
|
1479
1560
|
margin: var(--wco-spacing-none); }
|
|
1480
1561
|
|
package/styles/scss/core.scss
CHANGED
package/styles/scss/forms.scss
CHANGED
|
@@ -604,7 +604,7 @@ label.form-check, .form-check {
|
|
|
604
604
|
transition: all 0.3s;
|
|
605
605
|
container-type: inline-size;
|
|
606
606
|
overflow: hidden;
|
|
607
|
-
min-width:
|
|
607
|
+
min-width: max-content;
|
|
608
608
|
&:has(input[type="file"]:not(:disabled)) {
|
|
609
609
|
&:not(.wco-form-disabled) {
|
|
610
610
|
&:hover {
|
|
@@ -741,17 +741,17 @@ label.form-check, .form-check {
|
|
|
741
741
|
background-position: center;
|
|
742
742
|
background-repeat: no-repeat;
|
|
743
743
|
background-size: contain;
|
|
744
|
+
}
|
|
745
|
+
&.error > :is(i, span:first-child) {
|
|
746
|
+
color: var(--wco-color-danger-600);
|
|
744
747
|
}
|
|
745
|
-
&.
|
|
746
|
-
|
|
748
|
+
&.warning > :is(i, span:first-child) {
|
|
749
|
+
color: var(--wco-color-warning-600);
|
|
747
750
|
}
|
|
748
|
-
&.
|
|
749
|
-
|
|
751
|
+
&.success > :is(i, span:first-child) {
|
|
752
|
+
color: var(--wco-color-success-600);
|
|
750
753
|
}
|
|
751
|
-
&.
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
&.info .icon {
|
|
755
|
-
background-image: url('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.83329 6.75H10.0833V6.5V4.83333V4.58333H9.83329H8.16663H7.91663V4.83333V6.5V6.75H8.16663H9.83329ZM0.916626 9C0.916626 4.53807 4.53803 0.916664 8.99996 0.916664C13.4619 0.916664 17.0833 4.53807 17.0833 9C17.0833 13.4619 13.4619 17.0833 8.99996 17.0833C4.53803 17.0833 0.916626 13.4619 0.916626 9ZM7.91663 12.3333C7.91663 12.9297 8.40356 13.4167 8.99996 13.4167C9.59636 13.4167 10.0833 12.9297 10.0833 12.3333V9C10.0833 8.40359 9.59636 7.91666 8.99996 7.91666C8.40356 7.91666 7.91663 8.40359 7.91663 9V12.3333Z" fill="%23175296" stroke="%23103A6B" stroke-width="0.5"/></svg>')
|
|
754
|
+
&.info > :is(i, span:first-child) {
|
|
755
|
+
color: var(--wco-color-info-600);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.wco-tag {
|
|
2
|
+
--wco-tag-size: 29px;
|
|
3
|
+
--wco-tag-spacing: var(--wco-spacing-quark) var(--wco-spacing-xxxs);
|
|
4
|
+
--wco-tag-gap: var(--wco-spacing-nano, 8px);
|
|
5
|
+
--wco-tag-color: var(--wco-color-neutral-700);
|
|
6
|
+
--wco-tag-background-color: transparent;
|
|
7
|
+
--wco-tag-border-radius: var(--wco-radius-lg, 24px);
|
|
8
|
+
--wco-tag-border-color: var(--wco-color-neutral-700);
|
|
9
|
+
--wco-tag-font-size: var(--wco-font-size-xxs, 14px);
|
|
10
|
+
font-size: var(--wco-tag-font-size, 14px);
|
|
11
|
+
color: var(--wco-tag-color, #333);
|
|
12
|
+
background-color: var(--wco-tag-background-color, #fff);
|
|
13
|
+
border: 1px solid var(--wco-tag-border-color);
|
|
14
|
+
border-radius: var(--wco-tag-border-radius, 24px);
|
|
15
|
+
gap: var(--wco-tag-gap, 4px);
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
padding: var(--wco-tag-spacing, 0 4px);
|
|
20
|
+
min-height: var(--wco-tag-size, 24px);
|
|
21
|
+
width: fit-content;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
text-align: center;
|
|
25
|
+
font-family: var(--wco-font-family);
|
|
26
|
+
line-height: 150%;
|
|
27
|
+
letter-spacing: 0.35px;
|
|
28
|
+
text-wrap: nowrap;
|
|
29
|
+
span,
|
|
30
|
+
i {
|
|
31
|
+
--wco-tag-icon-size: var(--wco-icon-size-small);
|
|
32
|
+
--wco-tag-icon-color: var(--wco-color-neutral-700);
|
|
33
|
+
color: var(--wco-tag-icon-color);
|
|
34
|
+
font-size: var(--wco-tag-icon-size, 14px);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tag {
|
|
39
|
+
&-success {
|
|
40
|
+
--wco-tag-color: var(--wco-color-success-700);
|
|
41
|
+
--wco-tag-border-color: var(--wco-color-success-700);
|
|
42
|
+
--wco-tag-background-color: var(--wco-color-success-50);
|
|
43
|
+
span,
|
|
44
|
+
i {
|
|
45
|
+
--wco-tag-icon-color: var(--wco-color-success-700);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-warning {
|
|
50
|
+
--wco-tag-color: var(--wco-color-warning-700);
|
|
51
|
+
--wco-tag-border-color: var(--wco-color-warning-700);
|
|
52
|
+
--wco-tag-background-color: var(--wco-color-warning-50);
|
|
53
|
+
span,
|
|
54
|
+
i {
|
|
55
|
+
--wco-tag-icon-color: var(--wco-color-warning-700);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-error {
|
|
60
|
+
--wco-tag-color: var(--wco-color-danger-700);
|
|
61
|
+
--wco-tag-border-color: var(--wco-color-danger-700);
|
|
62
|
+
--wco-tag-background-color: var(--wco-color-danger-50);
|
|
63
|
+
span,
|
|
64
|
+
i {
|
|
65
|
+
--wco-tag-icon-color: var(--wco-color-danger-700);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-info {
|
|
70
|
+
--wco-tag-color: var(--wco-color-info-700);
|
|
71
|
+
--wco-tag-border-color: var(--wco-color-info-700);
|
|
72
|
+
--wco-tag-background-color: var(--wco-color-info-50);
|
|
73
|
+
span,
|
|
74
|
+
i {
|
|
75
|
+
--wco-tag-icon-color: var(--wco-color-info-700);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-disabled {
|
|
80
|
+
--wco-tag-color: var(--wco-color-neutral-500);
|
|
81
|
+
--wco-tag-border-color: var(--wco-color-neutral-500);
|
|
82
|
+
--wco-tag-background-color: var(--wco-color-neutral-50);
|
|
83
|
+
cursor: default;
|
|
84
|
+
span,
|
|
85
|
+
i {
|
|
86
|
+
--wco-tag-icon-color: var(--wco-color-neutral-500);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.wco-group-tags {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-wrap: wrap;
|
|
94
|
+
gap: var(--wco-spacing-nano, 12px);
|
|
95
|
+
}
|