@linzjs/lui 15.1.14 → 16.1.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 +26 -0
- package/README.md +2 -2
- package/dist/components/LuiFilterContainer/LuiFilterContainer.d.ts +1 -0
- package/dist/components/LuiFormElements/ClearableLuiTextInput/ClearableLuiTextInput.d.ts +14 -0
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.d.ts +1 -0
- package/dist/components/LuiIcon/LuiIcon.d.ts +2 -2
- package/dist/index.js +28 -7
- package/dist/index.js.map +1 -1
- package/dist/lui.css +122 -93
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +28 -7
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormElements/LuiTextInput/LuiTextInput.scss +10 -0
- package/dist/scss/Elements/Buttons/buttons.scss +67 -46
- package/dist/scss/Foundation/Variables/_LuiColors.scss +14 -4
- package/package.json +1 -1
|
@@ -92,6 +92,16 @@ $label-line-height: luiSpacing.$unit-md;
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
.LuiTextInput-iconPosition{
|
|
96
|
+
position: absolute;
|
|
97
|
+
right:7px;
|
|
98
|
+
top:17%;
|
|
99
|
+
|
|
100
|
+
svg {
|
|
101
|
+
fill: luiColors.$fuscous;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
95
105
|
.LuiTextInput-padlock-icon {
|
|
96
106
|
// base64 encoded version of `assets/icons/lock.svg`. referring to svg via it's path causes downstream import errors.
|
|
97
107
|
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAyMiI+PHBhdGggZD0iTTE0IDcuNUgxM1Y1LjVDMTMgMi43NCAxMC43NiAwLjUgOCAwLjVDNS4yNCAwLjUgMyAyLjc0IDMgNS41VjcuNUgyQzAuOSA3LjUgMCA4LjQgMCA5LjVWMTkuNUMwIDIwLjYgMC45IDIxLjUgMiAyMS41SDE0QzE1LjEgMjEuNSAxNiAyMC42IDE2IDE5LjVWOS41QzE2IDguNCAxNS4xIDcuNSAxNCA3LjVaTTggMTYuNUM2LjkgMTYuNSA2IDE1LjYgNiAxNC41QzYgMTMuNCA2LjkgMTIuNSA4IDEyLjVDOS4xIDEyLjUgMTAgMTMuNCAxMCAxNC41QzEwIDE1LjYgOS4xIDE2LjUgOCAxNi41Wk0xMS4xIDcuNUg0LjlWNS41QzQuOSAzLjc5IDYuMjkgMi40IDggMi40QzkuNzEgMi40IDExLjEgMy43OSAxMS4xIDUuNVY3LjVaIiBmaWxsPSIjNkI2OTY2IiAvPjwvc3ZnPg==');
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
@use "../../Foundation/Utilities" as *;
|
|
8
8
|
|
|
9
9
|
// button variables only used for this file
|
|
10
|
-
$strokeWeight:
|
|
10
|
+
$strokeWeight: 1px;
|
|
11
11
|
$reversed-btn-active-txt: rgba(255, 255, 255, 0.6);
|
|
12
12
|
$reversed-no-bg-btn-active-txt: rgba(255, 255, 255, 0.8);
|
|
13
13
|
$disabled-reversed-no-bg-btn-txt: rgba(255, 255, 255, 0.4);
|
|
14
|
-
$btnLine-height:
|
|
14
|
+
$btnLine-height: 24px;
|
|
15
15
|
|
|
16
16
|
// reset buttons and base styling for all
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ $btnLine-height: 40px;
|
|
|
20
20
|
font-size: 1rem;
|
|
21
21
|
line-height: $btnLine-height;
|
|
22
22
|
margin: 0;
|
|
23
|
-
padding:
|
|
23
|
+
padding: rem(7px) spacing.$unit-xs *2; //magic number to allow for 1px border to add to height
|
|
24
24
|
border: none;
|
|
25
25
|
border-radius: misc.$borderRadius;
|
|
26
26
|
transition: background-color 0.3s, color 0.3s, height 0.3s, border 0.3s,
|
|
@@ -107,7 +107,7 @@ button {
|
|
|
107
107
|
&:active:enabled {
|
|
108
108
|
background-color: $btnBgColActive;
|
|
109
109
|
cursor: pointer;
|
|
110
|
-
color: rgba($btnTxtColActive, 0.
|
|
110
|
+
color: rgba($btnTxtColActive, 0.9);
|
|
111
111
|
border: $strokeWeight solid $borderColActive;
|
|
112
112
|
-moz-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
|
|
113
113
|
-webkit-box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
|
|
@@ -132,10 +132,13 @@ a.lui-button {
|
|
|
132
132
|
text-align: center;
|
|
133
133
|
|
|
134
134
|
&.lui-button-icon-right {
|
|
135
|
-
padding:
|
|
135
|
+
padding: spacing.$unit-xxs spacing.$unit-xs spacing.$unit-xs spacing.$unit-sm; // magic numbers to account for border
|
|
136
136
|
|
|
137
|
-
i,
|
|
138
137
|
.LuiIcon {
|
|
138
|
+
margin: 3px 0 -7px 12px; // magic numbers to allow the resize to work but to be fixed by future LUI buttons
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
i {
|
|
139
142
|
position: relative;
|
|
140
143
|
top: 6px;
|
|
141
144
|
margin: 0 0 0 12px;
|
|
@@ -143,10 +146,13 @@ a.lui-button {
|
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
&.lui-button-icon {
|
|
146
|
-
padding:
|
|
149
|
+
padding: spacing.$unit-xxs spacing.$unit-xs*2 spacing.$unit-xs spacing.$unit-xs; // magic numbers to account for border
|
|
147
150
|
|
|
148
|
-
i,
|
|
149
151
|
.LuiIcon {
|
|
152
|
+
margin: 3px 12px -7px 0; // magic numbers to allow the resize to work but to be fixed by future LUI buttons
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
i {
|
|
150
156
|
position: relative;
|
|
151
157
|
top: 6px;
|
|
152
158
|
margin: 0 12px 0 0;
|
|
@@ -154,16 +160,16 @@ a.lui-button {
|
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
&-primary {
|
|
157
|
-
// var $btnTxtCol, $btnBgCol, $borderCol, $myStrokeWeight :
|
|
163
|
+
// var $btnTxtCol, $btnBgCol, $borderCol, $myStrokeWeight : 1px, $myBtnLineHeight : 22px
|
|
158
164
|
@include button-builder(#fff, colors.$sea, colors.$sea);
|
|
159
165
|
// var $btnTxtColHover, $btnBgColHover, $borderColHover, $btnTxtColActive, $btnBgColActive, $borderColActive
|
|
160
166
|
@include button-states-builder(
|
|
161
167
|
#fff,
|
|
162
|
-
colors.$
|
|
163
|
-
colors.$
|
|
168
|
+
colors.$primary-hover-btn,
|
|
169
|
+
colors.$primary-hover-btn,
|
|
164
170
|
$reversed-btn-active-txt,
|
|
165
|
-
colors.$
|
|
166
|
-
colors.$
|
|
171
|
+
colors.$primary-active-btn,
|
|
172
|
+
colors.$primary-active-btn
|
|
167
173
|
);
|
|
168
174
|
}
|
|
169
175
|
|
|
@@ -172,12 +178,12 @@ a.lui-button {
|
|
|
172
178
|
@include button-builder(colors.$sea, #fff, colors.$sea);
|
|
173
179
|
// var $btnTxtColHover, $btnBgColHover, $borderColHover, $btnTxtColActive, $btnBgColActive, $borderColActive
|
|
174
180
|
@include button-states-builder(
|
|
175
|
-
|
|
176
|
-
colors.$
|
|
177
|
-
colors.$
|
|
181
|
+
colors.$sea,
|
|
182
|
+
colors.$secondary-hover-btn,
|
|
183
|
+
colors.$sea,
|
|
178
184
|
$reversed-btn-active-txt,
|
|
179
|
-
colors.$
|
|
180
|
-
colors.$
|
|
185
|
+
colors.$secondary-active-btn,
|
|
186
|
+
colors.$secondary-active-btn
|
|
181
187
|
);
|
|
182
188
|
|
|
183
189
|
i,
|
|
@@ -210,11 +216,11 @@ a.lui-button {
|
|
|
210
216
|
// var $btnTxtColHover, $btnBgColHover, $borderColHover, $btnTxtColActive, $btnBgColActive, $borderColActive
|
|
211
217
|
@include button-states-builder(
|
|
212
218
|
#fff,
|
|
213
|
-
colors.$error-
|
|
214
|
-
colors.$error-
|
|
219
|
+
colors.$error-hover-btn,
|
|
220
|
+
colors.$error-hover-btn,
|
|
215
221
|
$reversed-btn-active-txt,
|
|
216
|
-
colors.$error-
|
|
217
|
-
colors.$error-
|
|
222
|
+
colors.$error-active-btn,
|
|
223
|
+
colors.$error-active-btn
|
|
218
224
|
);
|
|
219
225
|
}
|
|
220
226
|
|
|
@@ -273,7 +279,7 @@ a.lui-button {
|
|
|
273
279
|
margin: 0;
|
|
274
280
|
border-radius: 0; // remove border radius so the text underline via border bottom doesn't turn up at the ends
|
|
275
281
|
&:hover {
|
|
276
|
-
border-bottom:
|
|
282
|
+
border-bottom: 1px solid;
|
|
277
283
|
}
|
|
278
284
|
|
|
279
285
|
&:disabled {
|
|
@@ -353,7 +359,7 @@ a.lui-button {
|
|
|
353
359
|
svg * {
|
|
354
360
|
color: #fff;
|
|
355
361
|
}
|
|
356
|
-
&:disabled {
|
|
362
|
+
&:disabled, &:disabled:hover {
|
|
357
363
|
color: $disabled-reversed-no-bg-btn-txt;
|
|
358
364
|
|
|
359
365
|
i,
|
|
@@ -362,6 +368,13 @@ a.lui-button {
|
|
|
362
368
|
fill: $disabled-reversed-no-bg-btn-txt;
|
|
363
369
|
}
|
|
364
370
|
}
|
|
371
|
+
&:hover {
|
|
372
|
+
i,
|
|
373
|
+
svg * {
|
|
374
|
+
color: colors.$spray;
|
|
375
|
+
fill: colors.$spray;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
365
378
|
}
|
|
366
379
|
|
|
367
380
|
&-icon-only-link {
|
|
@@ -369,34 +382,41 @@ a.lui-button {
|
|
|
369
382
|
}
|
|
370
383
|
|
|
371
384
|
&.lui-button-sm {
|
|
372
|
-
line-height:
|
|
373
|
-
padding:
|
|
374
|
-
font-size: rem(14px);
|
|
385
|
+
line-height: 24px;
|
|
386
|
+
padding: rem(3px) spacing.$unit-xs;
|
|
375
387
|
|
|
376
388
|
&.lui-button-icon {
|
|
377
|
-
padding:
|
|
378
|
-
|
|
379
|
-
i,
|
|
389
|
+
padding: rem(2px) rem(8px) rem(2px) spacing.$unit-xxs;
|
|
390
|
+
|
|
380
391
|
.LuiIcon {
|
|
381
|
-
margin:
|
|
382
|
-
|
|
392
|
+
margin: 1px rem(4px) -5px 0; // magic numbers to allow the resize to work but to be fixed by future LUI buttons
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
i {
|
|
396
|
+
position: relative;
|
|
397
|
+
top: 6px;
|
|
398
|
+
margin: 0 12px 0 0;
|
|
383
399
|
}
|
|
384
400
|
}
|
|
385
401
|
|
|
386
402
|
&.lui-button-icon-right {
|
|
387
|
-
padding:
|
|
403
|
+
padding: rem(2px) spacing.$unit-xxs rem(2px) rem(8px);
|
|
388
404
|
|
|
389
|
-
i,
|
|
390
405
|
.LuiIcon {
|
|
391
|
-
margin:
|
|
392
|
-
|
|
406
|
+
margin: 1px 0 -5px rem(4px); // magic numbers to allow the resize to work but to be fixed by future LUI buttons
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
i {
|
|
410
|
+
position: relative;
|
|
411
|
+
top: 6px;
|
|
412
|
+
margin: 0 0 0 12px;
|
|
393
413
|
}
|
|
394
414
|
}
|
|
395
415
|
|
|
396
416
|
&.lui-button-reversed-no-bg {
|
|
397
417
|
i,
|
|
398
418
|
.LuiIcon {
|
|
399
|
-
font-size: 1.8rem;
|
|
419
|
+
// font-size: 1.8rem;
|
|
400
420
|
top: 9px !important;
|
|
401
421
|
}
|
|
402
422
|
}
|
|
@@ -404,24 +424,25 @@ a.lui-button {
|
|
|
404
424
|
|
|
405
425
|
// medium is not defined as that is the default button size
|
|
406
426
|
&.lui-button-lg {
|
|
407
|
-
//
|
|
408
|
-
line-height: 50px;
|
|
409
|
-
padding: 0 spacing.$unit-lg;
|
|
410
|
-
font-size: rem(18px);
|
|
427
|
+
padding: rem(11px) rem(18px); // magic numbers to account for border
|
|
411
428
|
|
|
412
429
|
&.lui-button-icon {
|
|
413
|
-
padding:
|
|
430
|
+
padding: rem(11px) spacing.$px rem(11px) spacing.$unit-sm; // magic numbers to account for border
|
|
414
431
|
|
|
415
432
|
i {
|
|
416
|
-
|
|
433
|
+
position: relative;
|
|
434
|
+
top: 6px;
|
|
435
|
+
margin: 0 rem(8px) 0 0;
|
|
417
436
|
}
|
|
418
437
|
}
|
|
419
438
|
|
|
420
439
|
&.lui-button-icon-right {
|
|
421
|
-
padding:
|
|
440
|
+
padding: rem(11px) spacing.$unit-sm rem(11px) spacing.$px; // magic numbers to account for border
|
|
422
441
|
|
|
423
442
|
i {
|
|
424
|
-
|
|
443
|
+
position: relative;
|
|
444
|
+
top: 6px;
|
|
445
|
+
margin: 0 0 0 rem(8px);
|
|
425
446
|
}
|
|
426
447
|
}
|
|
427
448
|
}
|
|
@@ -481,7 +502,6 @@ a.lui-button {
|
|
|
481
502
|
}
|
|
482
503
|
|
|
483
504
|
.lui-button {
|
|
484
|
-
padding: 0 spacing.$unit-xs;
|
|
485
505
|
background-color: #fff;
|
|
486
506
|
border-radius: 0;
|
|
487
507
|
border: 1px solid colors.$brand-primary;
|
|
@@ -520,6 +540,7 @@ a.lui-button {
|
|
|
520
540
|
color: colors.$disabled-color;
|
|
521
541
|
cursor: not-allowed;
|
|
522
542
|
}
|
|
543
|
+
|
|
523
544
|
}
|
|
524
545
|
|
|
525
546
|
&--radio {
|
|
@@ -110,11 +110,21 @@ $visited: $teal;
|
|
|
110
110
|
$selection: lighten($spray, 20%);
|
|
111
111
|
|
|
112
112
|
// restricted colours for btn hover states
|
|
113
|
-
$
|
|
114
|
-
$
|
|
115
|
-
|
|
113
|
+
$primary-hover-btn: #005678;
|
|
114
|
+
$primary-active-btn: $teal;
|
|
115
|
+
|
|
116
|
+
$secondary-hover-btn: $polar;
|
|
117
|
+
$secondary-active-btn: $sea;
|
|
118
|
+
|
|
119
|
+
$green-hover: #107c3a;
|
|
120
|
+
$green-active: #094A22;
|
|
121
|
+
$green-btn: $success;
|
|
122
|
+
|
|
123
|
+
$error-hover-btn: #8f0000;
|
|
124
|
+
$error-active-btn: #5a0000;
|
|
125
|
+
|
|
116
126
|
$txt-link: $electric;
|
|
117
|
-
|
|
127
|
+
|
|
118
128
|
|
|
119
129
|
//Restricted colours for spatial maps
|
|
120
130
|
$hot-pink: #f81bef;
|
package/package.json
CHANGED