@linzjs/lui 17.11.1 → 17.12.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.
- 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 +153 -53
- package/dist/index.js.map +1 -1
- package/dist/lui.css +20 -3
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +153 -53
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormElements/LuiTextInput/LuiTextInput.scss +16 -3
- package/dist/scss/Components/Messaging/messaging.scss +8 -0
- 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;
|
|
@@ -101,6 +101,10 @@
|
|
|
101
101
|
@include box-shadow;
|
|
102
102
|
background: colors.$white;
|
|
103
103
|
min-height: rem(48px);
|
|
104
|
+
|
|
105
|
+
+ .lui-msg-dynamic-banner {
|
|
106
|
+
margin-top: 0;
|
|
107
|
+
}
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
.lui-msg-status-icon {
|
|
@@ -123,6 +127,10 @@
|
|
|
123
127
|
padding: spacing.$unit-sm;
|
|
124
128
|
}
|
|
125
129
|
}
|
|
130
|
+
// when multiple banners appear stacked on top of each other, reduce the space between
|
|
131
|
+
+ .lui-msg-banner-container {
|
|
132
|
+
padding-top: 0 !important;
|
|
133
|
+
}
|
|
126
134
|
}
|
|
127
135
|
|
|
128
136
|
.lui-msg-banner-container {
|
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>>;
|