@linzjs/lui 17.11.2 → 17.11.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.
@@ -35,6 +35,11 @@ $label-line-height: spacing.$unit-md;
35
35
  box-shadow: -8px 0px 0 0 colors.$error;
36
36
  border-radius: 4px;
37
37
  }
38
+
39
+ .hasWarning & {
40
+ box-shadow: -8px 0px 0 0 colors.$warning;
41
+ border-radius: 4px;
42
+ }
38
43
  }
39
44
 
40
45
  .LuiTextInput-passwordReveal {
@@ -86,6 +91,10 @@ $label-line-height: spacing.$unit-md;
86
91
  border-color: colors.$error;
87
92
  }
88
93
 
94
+ .hasWarning & {
95
+ border-color: colors.$warning;
96
+ }
97
+
89
98
  .isDisabled & {
90
99
  border-color: colors.$silver;
91
100
  background-color: colors.$lily;
@@ -113,10 +122,10 @@ $label-line-height: spacing.$unit-md;
113
122
  background-size: 16px 21px;
114
123
  }
115
124
 
116
- .LuiTextInput-error {
125
+ .LuiTextInput-error, .LuiTextInput-warning {
117
126
  @include fonts.font-semibold();
127
+ display: flex; // make sure we have a hanging indent with the icon
118
128
  position: relative;
119
- color: colors.$error;
120
129
  text-align: left;
121
130
  padding-left: 22px;
122
131
  font-size: forms.$label-font-size;
@@ -124,7 +133,11 @@ $label-line-height: spacing.$unit-md;
124
133
  margin-top: 2px;
125
134
  }
126
135
 
127
- .LuiTextInput-error-icon {
136
+ .LuiTextInput-error {
137
+ color: colors.$error;
138
+ }
139
+
140
+ .LuiTextInput-error-icon, .LuiTextInput-warning-icon {
128
141
  position: absolute;
129
142
  left: 0;
130
143
  top: 2px;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.11.2",
2
+ "version": "17.11.3",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",