@linzjs/lui 18.6.1 → 18.7.0

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.
@@ -48,6 +48,10 @@
48
48
  border-color: colors.$error;
49
49
  }
50
50
 
51
+ .hasWarning & {
52
+ border-color: colors.$warning;
53
+ }
54
+
51
55
  .isDisabled & {
52
56
  border-color: colors.$silver;
53
57
  background-color: colors.$lily;
@@ -66,18 +70,28 @@
66
70
 
67
71
  .LuiSelect-wrapper {
68
72
  position: relative;
73
+
74
+ &:before {
75
+ content: '';
76
+ display: block;
77
+ position: absolute;
78
+ width: spacing.$unit-sm;
79
+ top: 0;
80
+ bottom: 0;
81
+ left: -6px;
82
+ border-radius: MiscVars.$borderRadius 0 0 MiscVars.$borderRadius;
83
+ z-index: -1;
84
+ }
85
+
69
86
  .hasError & {
70
87
  &:before {
71
- content: '';
72
- display: block;
73
- position: absolute;
74
- width: spacing.$unit-sm;
75
- top: 0;
76
- bottom: 0;
77
- left: -6px;
78
88
  background-color: colors.$error;
79
- border-radius: MiscVars.$borderRadius 0 0 MiscVars.$borderRadius;
80
- z-index: -1;
89
+ }
90
+ }
91
+
92
+ .hasWarning & {
93
+ &:before {
94
+ background-color: colors.$warning;
81
95
  }
82
96
  }
83
97
  }
@@ -90,11 +104,10 @@
90
104
  pointer-events: none;
91
105
  }
92
106
 
93
- .LuiSelect-error {
107
+ %LuiSelect-shared {
94
108
  position: relative;
95
109
  display: flex;
96
110
  @include fonts.font-semibold;
97
- color: colors.$error;
98
111
  text-align: left;
99
112
  padding-left: spacing.$unit-md;
100
113
  font-size: rem.rem(14px);
@@ -102,7 +115,17 @@
102
115
  margin-top: spacing.$unit-xxs;
103
116
  }
104
117
 
105
- .LuiSelect-error-icon {
118
+ .LuiSelect-error {
119
+ @extend %LuiSelect-shared;
120
+ color: colors.$error;
121
+ }
122
+
123
+ .LuiSelect-warning {
124
+ @extend %LuiSelect-shared;
125
+ color: colors.$charcoal;
126
+ }
127
+
128
+ .LuiSelect-error-icon, .LuiSelect-warning-icon {
106
129
  position: absolute;
107
130
  left: 0;
108
131
  top: 2px;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "18.6.1",
2
+ "version": "18.7.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",