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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -60,6 +60,7 @@
60
60
  }
61
61
 
62
62
  display: inline-flex;
63
+ height: fit-content;
63
64
  background: var(--color-bg);
64
65
  border: 1px solid transparent;
65
66
  padding: config.$space-2x config.$space-3x;
@@ -5,7 +5,7 @@
5
5
  .input-group {
6
6
  display: flex;
7
7
  flex-direction: column;
8
- gap: 0.625rem;
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.75rem;
97
+ top: 0.9rem;
98
98
  left: 0.7rem;
99
99
  }
100
100
 
101
101
  .password-icon {
102
- top: 0.75rem;
102
+ top: 0.9rem;
103
103
  right: 0.7rem;
104
104
  }
105
105
  }
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.005 5.579c2.51 0 4.547 2.004 4.547 4.474a4.28 4.28 0 0 1-.327 1.637l2.655 2.613a10.58 10.58 0 0 0 3.12-4.25c-1.573-3.928-5.457-6.71-10.005-6.71-1.273 0-2.492.223-3.62.625L8.34 5.901a4.477 4.477 0 0 1 1.665-.322ZM.91 3.136l2.073 2.04.419.412A10.58 10.58 0 0 0 0 10.053c1.573 3.927 5.457 6.71 10.005 6.71 1.41 0 2.755-.268 3.983-.751l.382.375L17.035 19l1.155-1.136L2.065 2 .91 3.136Zm5.03 4.948 1.409 1.387a2.486 2.486 0 0 0-.073.582c0 1.485 1.219 2.684 2.729 2.684.2 0 .4-.027.59-.072l1.41 1.387a4.568 4.568 0 0 1-2 .474c-2.51 0-4.548-2.004-4.548-4.473 0-.707.182-1.37.482-1.969Zm3.919-.698 2.865 2.819.018-.143c0-1.486-1.219-2.685-2.728-2.685l-.155.01Z" fill="#444"/></svg>
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>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 3C5.455 3 1.573 5.903 0 10c1.573 4.097 5.455 7 10 7 4.546 0 8.427-2.903 10-7-1.573-4.097-5.454-7-10-7Zm0 11.667c-2.51 0-4.545-2.091-4.545-4.667 0-2.576 2.036-4.667 4.545-4.667 2.51 0 4.546 2.091 4.546 4.667 0 2.576-2.037 4.667-4.546 4.667ZM10 7.2c-1.51 0-2.727 1.25-2.727 2.8 0 1.55 1.218 2.8 2.727 2.8 1.51 0 2.727-1.25 2.727-2.8 0-1.55-1.218-2.8-2.727-2.8Z" fill="#444"/></svg>
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.