@linzjs/lui 15.0.4 → 15.0.7
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/assets/icons/add.svg +1 -1
- package/dist/assets/icons/add_area_interest.svg +1 -1
- package/dist/assets/icons/annotations.svg +1 -1
- package/dist/assets/icons/arrow_drop_right.svg +1 -5
- package/dist/assets/icons/attach_file.svg +1 -1
- package/dist/assets/icons/attachment.svg +1 -1
- package/dist/assets/icons/change_password.svg +1 -0
- package/dist/assets/icons/check_circle.svg +1 -1
- package/dist/assets/icons/check_circle_outline.svg +1 -1
- package/dist/assets/icons/checklist.svg +1 -1
- package/dist/assets/icons/columns.svg +1 -1
- package/dist/assets/icons/control_point.svg +1 -11
- package/dist/assets/icons/copy.svg +1 -5
- package/dist/assets/icons/delete_outline.svg +1 -1
- package/dist/assets/icons/delete_solid.svg +1 -1
- package/dist/assets/icons/drag_handle.svg +1 -1
- package/dist/assets/icons/enabled_users.svg +1 -1
- package/dist/assets/icons/error.svg +1 -1
- package/dist/assets/icons/error_outline.svg +1 -1
- package/dist/assets/icons/feedback_lightbulb.svg +1 -0
- package/dist/assets/icons/fullscreen_frame.svg +1 -1
- package/dist/assets/icons/grid_view.svg +1 -1
- package/dist/assets/icons/history.svg +1 -1
- package/dist/assets/icons/hourglass.svg +1 -0
- package/dist/assets/icons/info.svg +1 -1
- package/dist/assets/icons/info_outline.svg +1 -1
- package/dist/assets/icons/launch_new window_open.svg +1 -1
- package/dist/assets/icons/layers.svg +1 -1
- package/dist/assets/icons/line_arc.svg +1 -1
- package/dist/assets/icons/line_irregular.svg +1 -1
- package/dist/assets/icons/line_vector.svg +1 -1
- package/dist/assets/icons/link.svg +1 -5
- package/dist/assets/icons/list_add.svg +1 -1
- package/dist/assets/icons/locate.svg +1 -1
- package/dist/assets/icons/lock.svg +1 -1
- package/dist/assets/icons/manage_adjust.svg +1 -1
- package/dist/assets/icons/mark_linking.svg +1 -1
- package/dist/assets/icons/marks.svg +1 -1
- package/dist/assets/icons/menu.svg +1 -5
- package/dist/assets/icons/minimise.svg +1 -0
- package/dist/assets/icons/more_vert.svg +1 -5
- package/dist/assets/icons/note_add.svg +1 -1
- package/dist/assets/icons/numbered_list.svg +1 -0
- package/dist/assets/icons/office_building_corporate.svg +1 -1
- package/dist/assets/icons/order_history.svg +1 -1
- package/dist/assets/icons/parcels_existing.svg +1 -1
- package/dist/assets/icons/parcels_new.svg +1 -1
- package/dist/assets/icons/pen_and_paper_sign.svg +1 -1
- package/dist/assets/icons/people_outline.svg +1 -1
- package/dist/assets/icons/person.svg +1 -1
- package/dist/assets/icons/person_add.svg +1 -1
- package/dist/assets/icons/picker.svg +1 -1
- package/dist/assets/icons/polygon selection.svg +1 -1
- package/dist/assets/icons/pre_validation.svg +1 -1
- package/dist/assets/icons/product list.svg +1 -1
- package/dist/assets/icons/publish.svg +1 -3
- package/dist/assets/icons/remove_circle.svg +1 -1
- package/dist/assets/icons/remove_circle_outline.svg +1 -1
- package/dist/assets/icons/requisitions.svg +1 -1
- package/dist/assets/icons/round selection.svg +1 -1
- package/dist/assets/icons/save_download.svg +1 -0
- package/dist/assets/icons/saved_area_interest.svg +1 -1
- package/dist/assets/icons/send_email_dart.svg +1 -1
- package/dist/assets/icons/square selection.svg +1 -1
- package/dist/assets/icons/submit.svg +1 -1
- package/dist/assets/icons/survey_report.svg +1 -1
- package/dist/assets/icons/ta_request_sent.svg +1 -1
- package/dist/assets/icons/table_columns.svg +1 -1
- package/dist/assets/icons/tick.svg +1 -3
- package/dist/assets/icons/timeline.svg +1 -1
- package/dist/assets/icons/title_allocation_swap.svg +1 -1
- package/dist/assets/icons/tune_setting_configure.svg +1 -1
- package/dist/assets/icons/unlink.svg +1 -5
- package/dist/assets/icons/upload.svg +1 -1
- package/dist/assets/icons/view.svg +1 -1
- package/dist/assets/icons/view_list.svg +1 -1
- package/dist/assets/icons/view_quilt.svg +1 -1
- package/dist/assets/icons/view_sidebar.svg +1 -1
- package/dist/assets/icons/visiblity_off.svg +1 -0
- package/dist/assets/icons/warning.svg +1 -1
- package/dist/assets/icons/warning_outline.svg +1 -1
- package/dist/assets/icons/waves.svg +1 -1
- package/dist/assets/icons/xml_file.svg +1 -1
- package/dist/assets/icons/zoom_centre.svg +1 -5
- package/dist/assets/icons/zoom_out.svg +1 -1
- package/dist/assets/icons/zoom_previous.svg +1 -1
- package/dist/assets/svg-content.tsx +74 -44
- package/dist/components/LuiButton/LuiButton.d.ts +6 -3
- package/dist/components/LuiIcon/LuiIcon.d.ts +2 -3
- package/dist/index.js +46 -44
- package/dist/index.js.map +1 -1
- package/dist/lui.css +55 -34
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +46 -44
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.scss +15 -28
- package/dist/scss/Components/LuiFormElements/LuiRadioInput/LuiRadioInput.scss +7 -3
- package/dist/scss/Elements/Buttons/buttons.scss +20 -9
- package/dist/scss/Elements/Forms/FormComponents/RadiosCheckboxes.scss +1 -2
- package/dist/scss/Foundation/Variables/_LuiColors.scss +2 -1
- package/package.json +3 -3
|
@@ -57,24 +57,6 @@ $border-size: 2px;
|
|
|
57
57
|
z-index: -1;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
// say hello to the fake input
|
|
61
|
-
.LuiCheckboxInput-label::after {
|
|
62
|
-
// Plug in your icon here
|
|
63
|
-
// font-size: 18px;
|
|
64
|
-
// line-height: 10px;
|
|
65
|
-
// content: ' ';
|
|
66
|
-
// display: block;
|
|
67
|
-
// text-align: center;
|
|
68
|
-
// color: transparent;
|
|
69
|
-
// width: $checkbox-size;
|
|
70
|
-
// height: $checkbox-size;
|
|
71
|
-
// // border: 3px solid white;
|
|
72
|
-
// box-shadow: 0 0 0 2px #053d52;
|
|
73
|
-
// margin-right: 12px;
|
|
74
|
-
// margin-top: 3px;
|
|
75
|
-
// border-radius: 2px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
60
|
.LuiCheckboxInput-label::before {
|
|
79
61
|
// Plug in your icon here
|
|
80
62
|
font-size: 18px;
|
|
@@ -128,18 +110,23 @@ $border-size: 2px;
|
|
|
128
110
|
border-color: luiColors.$error;
|
|
129
111
|
}
|
|
130
112
|
|
|
131
|
-
.LuiCheckboxInput
|
|
132
|
-
.LuiCheckboxInput
|
|
133
|
-
|
|
134
|
-
|
|
113
|
+
.LuiCheckboxInput--isDisabled:checked + .LuiCheckboxInput-label,
|
|
114
|
+
.LuiCheckboxInput-input:checked:disabled + .LuiCheckboxInput-label {
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
&::before {
|
|
117
|
+
color: white;
|
|
118
|
+
background-color: luiColors.$disabled-color;
|
|
119
|
+
border-color: luiColors.$disabled-color;
|
|
120
|
+
}
|
|
135
121
|
}
|
|
136
122
|
|
|
137
|
-
.LuiCheckboxInput
|
|
138
|
-
.LuiCheckboxInput
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
123
|
+
.LuiCheckboxInput--isDisabled + .LuiCheckboxInput-label,
|
|
124
|
+
.LuiCheckboxInput-input:disabled + .LuiCheckboxInput-label {
|
|
125
|
+
cursor: not-allowed;
|
|
126
|
+
&::before {
|
|
127
|
+
background-color: luiColors.$disabled-bg-color;
|
|
128
|
+
border-color: luiColors.$disabled-color-dark;
|
|
129
|
+
}
|
|
143
130
|
}
|
|
144
131
|
|
|
145
132
|
// ============
|
|
@@ -57,11 +57,15 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&--isDisabled {
|
|
60
|
-
color: luiColors.$
|
|
60
|
+
color: luiColors.$disabled-color;
|
|
61
|
+
cursor: not-allowed;
|
|
61
62
|
|
|
62
63
|
&:before {
|
|
63
|
-
background-color: luiColors.$
|
|
64
|
-
border-color: luiColors.$
|
|
64
|
+
background-color: luiColors.$disabled-bg-color;
|
|
65
|
+
border-color: luiColors.$disabled-color-dark;
|
|
66
|
+
}
|
|
67
|
+
&:after {
|
|
68
|
+
background-color: luiColors.$disabled-color-dark;
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
}
|
|
@@ -90,13 +90,13 @@ button {
|
|
|
90
90
|
|
|
91
91
|
&:disabled {
|
|
92
92
|
color: colors.$disabled-color;
|
|
93
|
-
background: colors.$
|
|
94
|
-
border-color: colors.$
|
|
93
|
+
background: colors.$disabled-bg-color;
|
|
94
|
+
border-color: colors.$disabled-color-dark;
|
|
95
95
|
|
|
96
96
|
i,
|
|
97
97
|
svg * {
|
|
98
|
-
color: colors.$disabled-color;
|
|
99
|
-
fill: colors.$disabled-color;
|
|
98
|
+
color: colors.$disabled-color-dark;
|
|
99
|
+
fill: colors.$disabled-color-dark;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
&:hover {
|
|
@@ -277,7 +277,7 @@ a.lui-button {
|
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
&:disabled {
|
|
280
|
-
color: colors.$
|
|
280
|
+
color: colors.$disabled-color;
|
|
281
281
|
background: none;
|
|
282
282
|
border: 0;
|
|
283
283
|
text-decoration: none;
|
|
@@ -307,15 +307,15 @@ a.lui-button {
|
|
|
307
307
|
font-weight: inherit;
|
|
308
308
|
|
|
309
309
|
&:disabled {
|
|
310
|
-
color: colors.$
|
|
310
|
+
color: colors.$disabled-color;
|
|
311
311
|
background: none;
|
|
312
312
|
border: 0;
|
|
313
313
|
text-decoration: none;
|
|
314
314
|
|
|
315
315
|
i,
|
|
316
316
|
svg * {
|
|
317
|
-
color: colors.$
|
|
318
|
-
fill: colors.$
|
|
317
|
+
color: colors.$disabled-color;
|
|
318
|
+
fill: colors.$disabled-color;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
@@ -462,7 +462,7 @@ a.lui-button {
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
&-text-sizing {
|
|
465
|
-
//
|
|
465
|
+
//remove flexbox so they can just be inline buttons. Flexbox wasn't allowing the buttons to be sized by their content (flex shrink made a mess of things)
|
|
466
466
|
display: inline-block;
|
|
467
467
|
font-size: 0;
|
|
468
468
|
|
|
@@ -496,6 +496,11 @@ a.lui-button {
|
|
|
496
496
|
box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
|
|
497
497
|
color: colors.$white;
|
|
498
498
|
text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
|
|
499
|
+
//style selected button when disabled
|
|
500
|
+
&:disabled {
|
|
501
|
+
background-color: colors.$disabled-color;
|
|
502
|
+
color: colors.$white;
|
|
503
|
+
}
|
|
499
504
|
}
|
|
500
505
|
|
|
501
506
|
&:hover {
|
|
@@ -509,6 +514,12 @@ a.lui-button {
|
|
|
509
514
|
// make sure the button sits above the others so the outline is not cut off on focus
|
|
510
515
|
position: relative;
|
|
511
516
|
}
|
|
517
|
+
&:disabled {
|
|
518
|
+
background-color: colors.$disabled-bg-color;
|
|
519
|
+
border: 1px solid colors.$disabled-color-dark;
|
|
520
|
+
color: colors.$disabled-color;
|
|
521
|
+
cursor: not-allowed;
|
|
522
|
+
}
|
|
512
523
|
}
|
|
513
524
|
|
|
514
525
|
&--radio {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
border: forms.$input-border-width solid colors.$gray;
|
|
31
31
|
background-color: colors.$lily;
|
|
32
32
|
+ label {
|
|
33
|
-
color: colors.$
|
|
33
|
+
color: colors.$disabled-color;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
color: #fff;
|
|
88
88
|
font-size: forms.$checkbox-icon-font-size;
|
|
89
89
|
line-height: forms.$checkbox-icon-line-height;
|
|
90
|
-
vertical-align: middle;
|
|
91
90
|
}
|
|
92
91
|
&:disabled {
|
|
93
92
|
background: colors.$disabled-color-dark;
|
|
@@ -126,7 +126,8 @@ $input-text: $charcoal;
|
|
|
126
126
|
$input-placeholder: $fuscous;
|
|
127
127
|
$input-placeholder-when-disabled: $gray;
|
|
128
128
|
$base-icon-color: $sea;
|
|
129
|
-
$disabled-color: $
|
|
129
|
+
$disabled-color: $fuscous;
|
|
130
|
+
$disabled-bg-color: $lily;
|
|
130
131
|
$disabled-color-dark: $gray;
|
|
131
132
|
$input-focus: $teal;
|
|
132
133
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "15.0.
|
|
2
|
+
"version": "15.0.7",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"html-loader": "^1.1.0",
|
|
115
115
|
"husky": "^4.3.0",
|
|
116
116
|
"jest-axe": "^3.5.0",
|
|
117
|
-
"jest-canvas-mock": "2.
|
|
117
|
+
"jest-canvas-mock": "2.3.1",
|
|
118
118
|
"msw": "^0.22.2",
|
|
119
119
|
"npm-run-all": "^4.1.5",
|
|
120
120
|
"pretty-quick": "^3.1.1",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"size-limit": "^7.0.8",
|
|
135
135
|
"style-loader": "^1.3.0",
|
|
136
136
|
"stylelint-config-standard": "^25.0.0",
|
|
137
|
-
"stylelint-scss": "^
|
|
137
|
+
"stylelint-scss": "^4.1.0",
|
|
138
138
|
"stylelint-suitcss": "^5.0.0",
|
|
139
139
|
"typescript": "^3.9.7",
|
|
140
140
|
"whatwg-fetch": "^3.4.1",
|