agroptima-design-system 0.3.0 → 0.3.2
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
CHANGED
package/src/atoms/Button.scss
CHANGED
package/src/atoms/Input.scss
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.input-group {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
|
-
gap:
|
|
8
|
+
gap: config.$space-2x;
|
|
9
9
|
|
|
10
10
|
.input {
|
|
11
11
|
padding-left: 12px;
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.left-icon {
|
|
97
|
-
top: 0.
|
|
97
|
+
top: 0.9rem;
|
|
98
98
|
left: 0.7rem;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.password-icon {
|
|
102
|
-
top: 0.
|
|
102
|
+
top: 0.9rem;
|
|
103
103
|
right: 0.7rem;
|
|
104
104
|
}
|
|
105
105
|
}
|
package/src/icons/show-off.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g clip-path="url(#show-off)"><path d="M10 4.5a8.956 8.956 0 0 1 8.085 5.042 8.843 8.843 0 0 1-2.21 2.86l1.293 1.292a10.818 10.818 0 0 0 2.915-4.152C18.498 5.518 14.583 2.667 10 2.667c-1.164 0-2.282.183-3.337.522l1.513 1.513c.596-.12 1.2-.202 1.824-.202Zm-.98 1.045 1.897 1.897c.522.23.944.651 1.173 1.174l1.898 1.897a4.29 4.29 0 0 0 .128-.98c.009-2.274-1.843-4.116-4.116-4.116-.34 0-.66.046-.98.128ZM.842 2.547l2.456 2.457A10.76 10.76 0 0 0-.083 9.542c1.585 4.024 5.5 6.875 10.083 6.875 1.393 0 2.732-.266 3.96-.752l3.135 3.135 1.293-1.293L2.134 1.247l-1.291 1.3Zm6.875 6.875 2.392 2.393a.458.458 0 0 1-.11.018 2.292 2.292 0 0 1-2.292-2.291c0-.046.01-.074.01-.12ZM4.6 6.306 6.205 7.91a4.217 4.217 0 0 0-.33 1.632 4.131 4.131 0 0 0 5.748 3.795l.898.898c-.807.22-1.65.348-2.521.348a8.956 8.956 0 0 1-8.085-5.041 9.077 9.077 0 0 1 2.686-3.236Z" fill="#444"/></g><defs><clipPath id="show-off"><path fill="#fff" d="M0 0h20v20H0z"/></clipPath></defs></svg>
|
package/src/icons/show.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g clip-path="url(#show)"><path d="M10 4.5a8.956 8.956 0 0 1 8.085 5.042A8.956 8.956 0 0 1 10 14.583a8.956 8.956 0 0 1-8.085-5.041A8.956 8.956 0 0 1 10 4.5Zm0-1.833c-4.583 0-8.498 2.85-10.083 6.875 1.585 4.024 5.5 6.875 10.083 6.875s8.497-2.851 10.083-6.875C18.498 5.518 14.583 2.667 10 2.667Zm0 4.583a2.293 2.293 0 1 1-.002 4.585A2.293 2.293 0 0 1 10 7.25Zm0-1.833a4.131 4.131 0 0 0-4.125 4.125A4.131 4.131 0 0 0 10 13.667a4.131 4.131 0 0 0 4.125-4.125A4.131 4.131 0 0 0 10 5.417Z" fill="#444"/></g><defs><clipPath id="show"><path fill="#fff" d="M0 0h20v20H0z"/></clipPath></defs></svg>
|
|
@@ -30,6 +30,7 @@ $font-primary: $font-base-stretch $text-base-style $font-base-weight #{$text-bas
|
|
|
30
30
|
font-variant: $text-base-style;
|
|
31
31
|
font-weight: 400;
|
|
32
32
|
font-family: $font-base-family;
|
|
33
|
+
font-size: 1em;
|
|
33
34
|
color: color_alias.$neutral-color-1000;
|
|
34
35
|
}
|
|
35
36
|
@mixin input-placeholder-text {
|
|
@@ -37,6 +38,7 @@ $font-primary: $font-base-stretch $text-base-style $font-base-weight #{$text-bas
|
|
|
37
38
|
font-variant: $text-base-style;
|
|
38
39
|
font-weight: 400;
|
|
39
40
|
font-family: $font-base-family;
|
|
41
|
+
font-size: 1em;
|
|
40
42
|
color: color_alias.$neutral-color-400;
|
|
41
43
|
// We shouldn't define a font-size for the placeholder: https://stackoverflow.com/questions/30916387/placeholder-font-size-bigger-than-16px
|
|
42
44
|
}
|
|
@@ -3,6 +3,16 @@ import { Meta } from "@storybook/addon-docs";
|
|
|
3
3
|
<Meta title="Changelog" />
|
|
4
4
|
# Changelog
|
|
5
5
|
|
|
6
|
+
## 0.3.2
|
|
7
|
+
|
|
8
|
+
- Updated show and show-off icons.
|
|
9
|
+
|
|
10
|
+
## 0.3.1
|
|
11
|
+
|
|
12
|
+
- Fixed input height not matching other components'.
|
|
13
|
+
- Updated input's icons positions due to the input height change.
|
|
14
|
+
- Fixed button height to not fill the whole available space.
|
|
15
|
+
|
|
6
16
|
## 0.3.0
|
|
7
17
|
|
|
8
18
|
- Empty State component is added to Storybook.
|