@linzjs/lui 17.11.2 → 17.12.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/CHANGELOG.md +21 -0
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.d.ts +1 -0
- package/dist/components/LuiListBox/LuiListBox.d.ts +22 -11
- package/dist/components/LuiListBox/LuiListBoxGroup.d.ts +10 -0
- package/dist/components/LuiListBox/LuiListBoxItem.d.ts +4 -5
- package/dist/components/LuiListBox/useLuiListBox.d.ts +3 -0
- package/dist/index.js +154 -54
- package/dist/index.js.map +1 -1
- package/dist/lui.css +14 -3
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +154 -54
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormElements/LuiTextInput/LuiTextInput.scss +16 -3
- package/package.json +1 -1
- package/dist/components/LuiListBox/Renderers/DefaultItemRenderer.d.ts +0 -3
- package/dist/components/LuiListBox/helpers.d.ts +0 -3
|
@@ -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
|
|
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,3 +0,0 @@
|
|
|
1
|
-
import { ListProps } from '@react-stately/list';
|
|
2
|
-
import { ILuiListBoxProps, ItemWithKey } from './LuiListBox';
|
|
3
|
-
export declare function mapToAriaListBoxProps<T extends object>({ selectionMode, selectionBehavior, items, value, onChange, ariaProps, getKey, }: ILuiListBoxProps<T>): ListProps<ItemWithKey<T>>;
|