@linzjs/lui 17.10.0 → 17.10.3
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 +11 -0
- package/dist/assets/icons/auth_and_instruct.svg +1 -0
- package/dist/assets/icons/certify_and_sign.svg +1 -0
- package/dist/assets/icons/dollar_round.svg +1 -0
- package/dist/assets/icons/double_tick.svg +1 -0
- package/dist/assets/icons/instruments_roles.svg +1 -0
- package/dist/assets/icons/notice_of_change.svg +1 -0
- package/dist/assets/icons/release.svg +3 -0
- package/dist/assets/icons/tax_statement.svg +1 -0
- package/dist/assets/icons/tick_and_cross.svg +1 -0
- package/dist/assets/svg-content.tsx +54 -0
- package/dist/components/LuiAccordicard/LuiAccordicard.d.ts +1 -0
- package/dist/components/LuiAccordicardStatic/LuiAccordicardStatic.d.ts +1 -0
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.d.ts +1 -0
- package/dist/components/LuiForms/LuiComboSelect/LuiComboSelect.d.ts +2 -2
- package/dist/components/LuiTabs/LuiTab/LuiTab.d.ts +1 -0
- package/dist/components/lol/MockBackendUtils.d.ts +85 -85
- package/dist/components/lol/handlers.d.ts +10 -10
- package/dist/index.js +148 -172
- package/dist/index.js.map +1 -1
- package/dist/lui.css +82 -15
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +133 -157
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/ContextMenu/context-menu.scss +5 -8
- package/dist/scss/Components/LuiAccordicard/LuiAccordicard.scss +40 -2
- package/dist/scss/Components/LuiAccordicardStatic/LuiAccordicardStatic.scss +40 -2
- package/dist/scss/Components/Messaging/messaging.scss +2 -2
- package/dist/scss/Components/Modal/modal.scss +2 -2
- package/package.json +4 -4
package/dist/lui.esm.js
CHANGED
|
@@ -7,46 +7,7 @@ import require$$1, { createPortal } from 'react-dom';
|
|
|
7
7
|
import lottie from 'lottie-web/build/player/lottie_light';
|
|
8
8
|
import { useQuery } from 'react-query';
|
|
9
9
|
|
|
10
|
-
function
|
|
11
|
-
var k, y, str='';
|
|
12
|
-
|
|
13
|
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
14
|
-
str += mix;
|
|
15
|
-
} else if (typeof mix === 'object') {
|
|
16
|
-
if (Array.isArray(mix)) {
|
|
17
|
-
for (k=0; k < mix.length; k++) {
|
|
18
|
-
if (mix[k]) {
|
|
19
|
-
if (y = toVal(mix[k])) {
|
|
20
|
-
str && (str += ' ');
|
|
21
|
-
str += y;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
} else {
|
|
26
|
-
for (k in mix) {
|
|
27
|
-
if (mix[k]) {
|
|
28
|
-
str && (str += ' ');
|
|
29
|
-
str += k;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return str;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function clsx () {
|
|
39
|
-
var i=0, tmp, x, str='';
|
|
40
|
-
while (i < arguments.length) {
|
|
41
|
-
if (tmp = arguments[i++]) {
|
|
42
|
-
if (x = toVal(tmp)) {
|
|
43
|
-
str && (str += ' ');
|
|
44
|
-
str += x;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return str;
|
|
49
|
-
}
|
|
10
|
+
function r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r$2(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r$2(e))&&(n&&(n+=" "),n+=t);return n}
|
|
50
11
|
|
|
51
12
|
/*! *****************************************************************************
|
|
52
13
|
Copyright (c) Microsoft Corporation.
|
|
@@ -157,15 +118,6 @@ function __read(o, n) {
|
|
|
157
118
|
return ar;
|
|
158
119
|
}
|
|
159
120
|
|
|
160
|
-
/** @deprecated */
|
|
161
|
-
function __spreadArrays() {
|
|
162
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
163
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
164
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
165
|
-
r[k] = a[j];
|
|
166
|
-
return r;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
121
|
function __spreadArray(to, from, pack) {
|
|
170
122
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
171
123
|
if (ar || !(i in from)) {
|
|
@@ -217,6 +169,8 @@ iconMap['ic_attach_file'] = (React__default.createElement("svg", { viewBox: "0 0
|
|
|
217
169
|
React__default.createElement("path", { d: "m19.571 10.586-8.132 8.132a3.999 3.999 0 0 1-5.657 0 3.999 3.999 0 0 1 0-5.657l8.84-8.84a2.501 2.501 0 0 1 3.535 3.536l-7.425 7.425a1.003 1.003 0 0 1-1.414 0 1.003 1.003 0 0 1 0-1.414l6.717-6.718-1.06-1.06-6.718 6.717a2.501 2.501 0 0 0 3.536 3.536l7.425-7.425a3.999 3.999 0 0 0 0-5.657 3.999 3.999 0 0 0-5.657 0L4.72 12a5.497 5.497 0 0 0 0 7.778 5.497 5.497 0 0 0 7.779 0l8.132-8.131-1.06-1.061Z" })));
|
|
218
170
|
iconMap['ic_attachment'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
219
171
|
React__default.createElement("path", { d: "M2.016 12.023c0-1.531.531-2.836 1.594-3.914C4.673 7.03 5.97 6.492 7.501 6.492h10.5c1.094 0 2.032.398 2.813 1.195.781.797 1.172 1.742 1.172 2.836 0 1.094-.39 2.032-1.172 2.813-.781.781-1.719 1.172-2.813 1.172H9.517a2.472 2.472 0 0 1-1.781-.727c-.5-.485-.75-1.07-.75-1.758 0-.687.25-1.281.75-1.781s1.094-.75 1.781-.75h7.5v2.016H9.423c-.281 0-.422.164-.422.492 0 .328.14.492.422.492h8.578c.531 0 1-.195 1.406-.586.406-.39.609-.852.609-1.383s-.203-1-.609-1.406c-.406-.406-.875-.61-1.406-.61h-10.5c-.969 0-1.797.345-2.484 1.032a3.386 3.386 0 0 0-1.031 2.484c0 .969.344 1.789 1.031 2.46a3.425 3.425 0 0 0 2.484 1.009h9.516v2.016H7.501c-1.531 0-2.828-.531-3.891-1.594-1.063-1.063-1.594-2.36-1.594-3.891Z" })));
|
|
172
|
+
iconMap['ic_auth_and_instruct'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
173
|
+
React__default.createElement("path", { d: "m12.69 17.403 1.059 1.053c-.215.13-.456.194-.724.194a.825.825 0 0 1-.528-.162.528.528 0 0 1-.206-.437c0-.134.036-.252.107-.354.071-.103.168-.2.292-.294Zm.6-1.268a.477.477 0 0 0 .146-.346.33.33 0 0 0-.115-.266.443.443 0 0 0-.296-.098.51.51 0 0 0-.337.102.356.356 0 0 0-.123.29c0 .188.101.394.303.62a1.89 1.89 0 0 0 .421-.302Zm-5.912-1.311a73.182 73.182 0 0 1-.696 2.33h1.403c-.36-1.16-.564-1.817-.61-1.97a5.627 5.627 0 0 1-.097-.36ZM21.222 8v12c0 1.1-.9 2-2 2H5.212c-1.1 0-1.99-.9-1.99-2l.01-16c0-1.1.89-2 1.99-2h10l6 6ZM9.978 19.393 8.07 13.988H6.675l-1.9 5.405h1.23l.39-1.281h1.962l.39 1.281h1.23Zm5.927.01-.96-.935c.17-.21.322-.452.456-.725.134-.273.24-.554.316-.84h-1.014c-.111.39-.242.71-.393.96l-.906-.884c.328-.19.565-.389.712-.598.146-.21.22-.441.22-.694a.887.887 0 0 0-.356-.739c-.237-.184-.553-.276-.949-.276-.415 0-.746.1-.994.297a.951.951 0 0 0-.371.782c0 .197.036.38.108.547.073.167.189.342.348.525-.313.178-.533.37-.662.575a1.374 1.374 0 0 0-.193.745c0 .406.152.729.456.967.304.238.716.357 1.235.357.512 0 .972-.141 1.378-.424l.367.36h1.202Zm3.08-5.393h-1.142v5.383h1.142V14.01ZM19.222 9h-5V4h-9v8h14V9Z" })));
|
|
220
174
|
iconMap['ic_balance_parcel'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
221
175
|
React__default.createElement("path", { d: "M23 15h-2v2h2v-2Zm0-4h-2v2h2v-2Zm0 8h-2v2c1 0 2-1 2-2ZM15 3h-2v2h2V3Zm8 4h-2v2h2V7Zm-2-4v2h2c0-1-1-2-2-2ZM3 21h8v-6H1v4c0 1.1.9 2 2 2ZM3 7H1v2h2V7Zm12 12h-2v2h2v-2Zm4-16h-2v2h2V3Zm0 16h-2v2h2v-2ZM3 3C2 3 1 4 1 5h2V3Zm0 8H1v2h2v-2Zm8-8H9v2h2V3ZM7 3H5v2h2V3Z" })));
|
|
222
176
|
iconMap['ic_blocked'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
@@ -225,6 +179,8 @@ iconMap['ic_border_color'] = (React__default.createElement("svg", { xmlns: "http
|
|
|
225
179
|
React__default.createElement("path", { d: "M0 20.016h24V24H0v-3.984zM20.719 4.031 18.75 6 15 2.25 16.969.281Q17.25 0 17.672 0t.703.281l2.344 2.344q.281.281.281.703t-.281.703zm-2.953 2.953L7.735 17.015h-3.75v-3.75L14.016 3.234z" })));
|
|
226
180
|
iconMap['ic_cancel_clear'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
227
181
|
React__default.createElement("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2Zm4.3 14.3a.996.996 0 0 1-1.41 0L12 13.41 9.11 16.3a.996.996 0 1 1-1.41-1.41L10.59 12 7.7 9.11A.996.996 0 1 1 9.11 7.7L12 10.59l2.89-2.89a.996.996 0 1 1 1.41 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41Z" })));
|
|
182
|
+
iconMap['ic_certify_and_sign'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
183
|
+
React__default.createElement("path", { d: "M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4H9Zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2a2.7 2.7 0 0 1-1.92.8c-.47 0-.93-.12-1.33-.34ZM19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8v11Z" })));
|
|
228
184
|
iconMap['ic_change_password'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
229
185
|
React__default.createElement("path", { d: "M12.65 10a5.998 5.998 0 0 0-6.88-3.88c-2.29.46-4.15 2.29-4.63 4.58A6.006 6.006 0 0 0 7 18a5.99 5.99 0 0 0 5.65-4H17v2c0 1.1.9 2 2 2s2-.9 2-2v-2c1.1 0 2-.9 2-2s-.9-2-2-2h-8.35ZM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z" })));
|
|
230
186
|
iconMap['ic_check'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
@@ -253,10 +209,14 @@ iconMap['ic_delete_outline'] = (React__default.createElement("svg", { viewBox: "
|
|
|
253
209
|
React__default.createElement("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10ZM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1Zm6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5Z" })));
|
|
254
210
|
iconMap['ic_delete_solid'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
255
211
|
React__default.createElement("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12ZM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4Z" })));
|
|
212
|
+
iconMap['ic_dollar_round'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
213
|
+
React__default.createElement("path", { d: "M11.778 2c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5h-2.33v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64h-1.72c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42Z" })));
|
|
256
214
|
iconMap['ic_double_arrow_left'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
257
215
|
React__default.createElement("path", { d: "M18.29 17.29a.996.996 0 0 0 0-1.41L14.42 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L12.3 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.38.38 1.01.38 1.4-.01Z M11.7 17.29a.996.996 0 0 0 0-1.41L7.83 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L5.71 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.38.38 1.01.38 1.4-.01Z" })));
|
|
258
216
|
iconMap['ic_double_arrow_right'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
259
217
|
React__default.createElement("path", { d: "M5.7 6.71a.996.996 0 0 0 0 1.41L9.58 12 5.7 15.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L7.12 6.71c-.39-.39-1.03-.39-1.42 0Z M12.29 6.71a.996.996 0 0 0 0 1.41L16.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L13.7 6.7c-.38-.38-1.02-.38-1.41.01Z" })));
|
|
218
|
+
iconMap['ic_double_tick'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
219
|
+
React__default.createElement("path", { d: "m18 7-1.41-1.41-6.34 6.34 1.41 1.41L18 7Zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41ZM.41 13.41 6 19l1.41-1.41L1.83 12 .41 13.41Z" })));
|
|
260
220
|
iconMap['ic_drag_handle'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
261
221
|
React__default.createElement("path", { d: "M20 9H4v2h16V9ZM4 15h16v-2H4v2Z" })));
|
|
262
222
|
iconMap['ic_drag_indicator'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -301,6 +261,8 @@ iconMap['ic_insert_invitation'] = (React__default.createElement("svg", { xmlns:
|
|
|
301
261
|
React__default.createElement("path", { d: "M18.984 19.992V9.023H5.015v10.969h13.969zm-3-18H18v2.016h.984q.797 0 1.406.609t.609 1.406v13.969q0 .797-.609 1.406t-1.406.609H5.015q-.844 0-1.43-.586t-.586-1.43V6.022q0-.797.586-1.406t1.43-.609h.984V1.991h2.016v2.016h7.969V1.991zm1.032 11.016v5.016H12v-5.016h5.016z" })));
|
|
302
262
|
iconMap['ic_insert_photo'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
303
263
|
React__default.createElement("path", { d: "M8.484 13.5 5.015 18h13.969l-4.5-6-3.469 4.5zM21 18.984q0 .797-.609 1.406t-1.406.609H5.016q-.797 0-1.406-.609t-.609-1.406V5.015q0-.797.609-1.406T5.016 3h13.969q.797 0 1.406.609T21 5.015v13.969z" })));
|
|
264
|
+
iconMap['ic_instruments_roles'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
265
|
+
React__default.createElement("path", { d: "M9 12c1.93 0 3.5-1.57 3.5-3.5S10.93 5 9 5 5.5 6.57 5.5 8.5 7.07 12 9 12Zm0-5c.83 0 1.5.67 1.5 1.5S9.83 10 9 10s-1.5-.67-1.5-1.5S8.17 7 9 7Zm.05 10H4.77c.99-.5 2.7-1 4.23-1 .11 0 .23.01.34.01.34-.73.93-1.33 1.64-1.81-.73-.13-1.42-.2-1.98-.2-2.34 0-7 1.17-7 3.5V19h7v-1.5c0-.17.02-.34.05-.5Zm7.45-2.5c-1.84 0-5.5 1.01-5.5 3V19h11v-1.5c0-1.99-3.66-3-5.5-3Zm1.21-1.82c.76-.43 1.29-1.24 1.29-2.18a2.5 2.5 0 0 0-5 0c0 .94.53 1.75 1.29 2.18.36.2.77.32 1.21.32.44 0 .85-.12 1.21-.32Z" })));
|
|
304
266
|
iconMap['ic_keyboard_arrow_down'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
305
267
|
React__default.createElement("path", { d: "M7.406 8.297 12 12.891l4.594-4.594L18 9.703l-6 6-6-6z" })));
|
|
306
268
|
iconMap['ic_keyboard_arrow_left'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
@@ -353,6 +315,8 @@ iconMap['ic_navigate_next'] = (React__default.createElement("svg", { xmlns: "htt
|
|
|
353
315
|
React__default.createElement("path", { d: "m9.703 6 6 6-6 6-1.406-1.406L12.891 12 8.297 7.406z" })));
|
|
354
316
|
iconMap['ic_note_add'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
355
317
|
React__default.createElement("path", { d: "M13 11h-2v3H8v2h3v3h2v-3h3v-2h-3v-3Zm1-9H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6Zm4 18H6V4h7v5h5v11Z" })));
|
|
318
|
+
iconMap['ic_notice_of_change'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
319
|
+
React__default.createElement("path", { d: "M15 2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V8l-6-6ZM5 12V4h9v5h5v3H5Zm11.601 3.96a.891.891 0 0 1 .78-.412c.22 0 .425.03.616.092.192.062.383.137.574.227L19 14.765a3.684 3.684 0 0 0-1.605-.365c-.513 0-.959.11-1.34.33a2.17 2.17 0 0 0-.87.935c-.202.406-.302.878-.302 1.414 0 .857.208 1.513.624 1.966.418.454 1.018.68 1.8.68.545 0 1.034-.095 1.466-.287v-1.183c-.217.09-.433.167-.648.23a2.329 2.329 0 0 1-.666.096c-.758 0-1.138-.498-1.138-1.495 0-.48.094-.855.28-1.127Zm-6.669 3.694H8.097l-1.892-3.649h-.032c.045.574.067 1.012.067 1.315v2.334H5v-5.18h1.828l1.885 3.6h.021c-.033-.522-.05-.941-.05-1.258v-2.341h1.248v5.18Zm4.57-2.015c0 .656-.178 1.169-.532 1.537-.352.366-.846.55-1.481.55-.61 0-1.095-.188-1.456-.564-.36-.375-.539-.883-.539-1.523 0-.655.176-1.163.528-1.524.354-.364.85-.546 1.488-.546.395 0 .743.084 1.045.252.303.168.535.409.698.723.166.311.248.676.248 1.095Zm-2.601 0c0 .344.046.608.138.79.092.18.247.269.464.269.215 0 .366-.09.454-.27.09-.181.134-.445.134-.79 0-.342-.045-.6-.134-.775-.09-.175-.244-.263-.461-.263-.213 0-.365.088-.457.263-.092.172-.138.43-.138.776Z" })));
|
|
356
320
|
iconMap['ic_numbered_list'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
357
321
|
React__default.createElement("path", { d: "M21 16h-2c-.28 0-.5.22-.5.5s.22.5.5.5h1.5v.5H20c-.28 0-.5.22-.5.5s.22.5.5.5h.5v.5H19c-.28 0-.5.22-.5.5s.22.5.5.5h2c.28 0 .5-.22.5-.5v-3c0-.28-.22-.5-.5-.5zM19 5h.5v2.5c0 .28.22.5.5.5s.5-.22.5-.5v-3c0-.28-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5zm2.5 5.72v-.22c0-.28-.22-.5-.5-.5h-2c-.28 0-.5.22-.5.5s.22.5.5.5h1.3l-1.68 1.96a.49.49 0 0 0-.12.32v.22c0 .28.22.5.5.5h2c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1.3l1.68-1.96a.49.49 0 0 0 .12-.32zM15.5 5h-12c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1zm0 12h-12c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1zm0-6h-12c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1z" })));
|
|
358
322
|
iconMap['ic_office_building_corporate'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -386,6 +350,8 @@ iconMap['ic_product_list'] = (React__default.createElement("svg", { viewBox: "0
|
|
|
386
350
|
React__default.createElement("path", { d: "M12 9h4c.55 0 1-.45 1-1s-.45-1-1-1h-4c-.55 0-1 .45-1 1s.45 1 1 1Zm0 4h4c.55 0 1-.45 1-1s-.45-1-1-1h-4c-.55 0-1 .45-1 1s.45 1 1 1Zm0 4h4c.55 0 1-.45 1-1s-.45-1-1-1h-4c-.55 0-1 .45-1 1s.45 1 1 1ZM7 7h2v2H7V7Zm0 4h2v2H7v-2Zm0 4h2v2H7v-2ZM20 3H4c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1Zm-1 16H5V5h14v14Z" })));
|
|
387
351
|
iconMap['ic_publish'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
388
352
|
React__default.createElement("path", { d: "M5 4h14v2H5zm0 10h4v6h6v-6h4l-7-7-7 7zm8-2v6h-2v-6H9.83L12 9.83 14.17 12H13z" })));
|
|
353
|
+
iconMap['ic_release'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
354
|
+
React__default.createElement("path", { d: "M17.8 9.5H16.3V20H12.4L11.8 21.5H17.8V9.5ZM17 2.5H5.80002V7.5H7.30002V4H15.6L17 2.5ZM18.8 17.5H21.3C22.1 17.5 22.8 16.8 22.8 16V9.5C22.8 9.1 22.6 8.7 22.4 8.4L17.5 3.5L16.7 4.3C16.5 4.5 16.4 4.8 16.4 5.1V5.3L17 8.5H18.8V17.5ZM11.8 13.5H6.60002L7.30002 10.3V10.1C7.30002 9.8 7.20002 9.5 7.00002 9.3L6.20002 8.5L1.30002 13.4C1.00002 13.7 0.900024 14.1 0.900024 14.5V21C0.900024 21.8 1.60002 22.5 2.40002 22.5H9.00002C9.60002 22.5 10.1 22.1 10.4 21.6L12.7 16.3C12.8 16.1 12.8 15.9 12.8 15.8V14.6C12.8 13.9 12.3 13.5 11.8 13.5Z" })));
|
|
389
355
|
iconMap['ic_remove_circle'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
390
356
|
React__default.createElement("path", { d: "M17.016 12.984v-1.969H6.985v1.969h10.031ZM12 2.016c2.75 0 5.102.977 7.055 2.93 1.953 1.953 2.93 4.305 2.93 7.055s-.977 5.102-2.93 7.055c-1.953 1.953-4.305 2.93-7.055 2.93s-5.102-.977-7.055-2.93c-1.953-1.953-2.93-4.305-2.93-7.055s.977-5.102 2.93-7.055C6.898 2.993 9.25 2.016 12 2.016Z" })));
|
|
391
357
|
iconMap['ic_remove_circle_outline'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -417,8 +383,12 @@ iconMap['ic_ta_request_sent'] = (React__default.createElement("svg", { viewBox:
|
|
|
417
383
|
React__default.createElement("path", { d: "M12 8V6.41c0-.89 1.08-1.34 1.71-.71l5.59 5.59c.39.39.39 1.02 0 1.41l-5.59 5.59c-.63.63-1.71.19-1.71-.7V16H5c-.55 0-1-.45-1-1V9c0-.55.45-1 1-1h7Z" })));
|
|
418
384
|
iconMap['ic_table_columns'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
419
385
|
React__default.createElement("path", { d: "M10 18h5V5h-5v13Zm-6 0h5V5H4v13ZM16 5v13h5V5h-5Z" })));
|
|
386
|
+
iconMap['ic_tax_statement'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
387
|
+
React__default.createElement("path", { d: "M14.667 2.5h-10c-1.1 0-1.99.9-1.99 2l-.01 16c0 1.1.89 2 1.99 2h14.01c1.1 0 2-.9 2-2v-12l-6-6ZM8.928 15.625h-1.32v4.224H6.145v-4.224H4.82v-1.197h4.108v1.197Zm4.435 4.224h-1.005l-.278-.557h-.03c-.195.243-.394.409-.597.497-.202.09-.464.134-.786.134-.395 0-.707-.119-.934-.356-.227-.238-.341-.57-.341-1.001 0-.447.156-.78.467-1 .312-.218.762-.341 1.353-.368l.701-.023v-.058c0-.347-.17-.52-.511-.52-.307 0-.696.104-1.168.312l-.42-.957c.49-.252 1.108-.378 1.854-.378.54 0 .956.133 1.252.4.295.268.443.64.443 1.12v2.755Zm3.585 0-.708-1.276-.704 1.276h-1.65l1.353-2.144-1.283-2.057h1.647l.637 1.18.653-1.18h1.65l-1.316 2.057 1.368 2.144h-1.647Zm1.719-7.349h-14v-8h9v5h5v3Zm-7.08 5.488.334-.015v.326a.554.554 0 0 1-.188.434.653.653 0 0 1-.45.167c-.274 0-.412-.13-.412-.386 0-.334.239-.509.716-.526Z" })));
|
|
420
388
|
iconMap['ic_tick'] = (React__default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 11" },
|
|
421
389
|
React__default.createElement("path", { d: "M.297 4.934a1.013 1.013 0 0 1 1.344-.078l.088.078L5.254 8.46 12.219.353a1.013 1.013 0 0 1 1.334-.18l.094.072c.394.338.464.914.18 1.334l-.072.094-7.676 8.935a1.013 1.013 0 0 1-1.398.134l-.087-.078L.297 6.367a1.013 1.013 0 0 1 0-1.433Z" })));
|
|
390
|
+
iconMap['ic_tick_and_cross'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
391
|
+
React__default.createElement("path", { d: "M16.54 11 13 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41L16.54 11ZM11 7H2v2h9V7Zm10 6.41L19.59 12 17 14.59 14.41 12 13 13.41 15.59 16 13 18.59 14.41 20 17 17.41 19.59 20 21 18.59 18.41 16 21 13.41ZM11 15H2v2h9v-2Z" })));
|
|
422
392
|
iconMap['ic_timeline'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
423
393
|
React__default.createElement("path", { d: "M23 8c0 1.1-.9 2-2 2a1.7 1.7 0 0 1-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56A1.7 1.7 0 0 1 19 8c0-1.1.9-2 2-2s2 .9 2 2Z" })));
|
|
424
394
|
iconMap['ic_title_allocation_swap'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -466,7 +436,7 @@ var ICON_SIZES = {
|
|
|
466
436
|
md: 'LuiIcon--md',
|
|
467
437
|
lg: 'LuiIcon--lg',
|
|
468
438
|
xl: 'LuiIcon--xl',
|
|
469
|
-
ns: 'LuiIcon--noSize'
|
|
439
|
+
ns: 'LuiIcon--noSize'
|
|
470
440
|
};
|
|
471
441
|
var ICON_STATUS = {
|
|
472
442
|
none: '',
|
|
@@ -474,13 +444,13 @@ var ICON_STATUS = {
|
|
|
474
444
|
warning: 'LuiIcon--warning',
|
|
475
445
|
success: 'LuiIcon--success',
|
|
476
446
|
interactive: 'LuiIcon--interactive',
|
|
477
|
-
disabled: 'LuiIcon--disabled'
|
|
447
|
+
disabled: 'LuiIcon--disabled'
|
|
478
448
|
};
|
|
479
449
|
var LuiIcon = function (_a) {
|
|
480
450
|
var name = _a.name, className = _a.className, _b = _a.size, size = _b === void 0 ? 'ns' : _b, title = _a.title, alt = _a.alt, _c = _a.status, status = _c === void 0 ? 'none' : _c, spanProps = _a.spanProps;
|
|
481
451
|
var iconSVG = ICONS[name];
|
|
482
452
|
if (!iconSVG) {
|
|
483
|
-
console.warn("<LuiIcon>: No icon found for: "
|
|
453
|
+
console.warn("<LuiIcon>: No icon found for: ".concat(iconSVG));
|
|
484
454
|
return null;
|
|
485
455
|
}
|
|
486
456
|
return (React.createElement("span", __assign({ className: clsx('LuiIcon', className, size && ICON_SIZES[size], status && ICON_STATUS[status]), "data-icon": name, title: title, "aria-label": alt }, spanProps), iconSVG));
|
|
@@ -499,21 +469,21 @@ function getMaterialIconForLevel(level) {
|
|
|
499
469
|
}
|
|
500
470
|
}
|
|
501
471
|
var LuiBanner = function (props) {
|
|
502
|
-
return (React__default.createElement("div", { className: clsx('lui-msg-banner-container', props.className ? props.className
|
|
472
|
+
return (React__default.createElement("div", { className: clsx('lui-msg-banner-container', props.className ? "".concat(props.className, "-bannerContainer") : '') },
|
|
503
473
|
React__default.createElement(LuiBannerContent, { level: props.level, className: props.className }, props.children)));
|
|
504
474
|
};
|
|
505
475
|
var LuiBannerContent = function (props) {
|
|
506
476
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
507
|
-
return (React__default.createElement("div", { className: clsx("lui-msg-"
|
|
508
|
-
React__default.createElement(LuiIcon, { name: "ic_"
|
|
477
|
+
return (React__default.createElement("div", { className: clsx("lui-msg-".concat(props.level, " lui-msg-dynamic-banner"), props.className) },
|
|
478
|
+
React__default.createElement(LuiIcon, { name: "ic_".concat(materialIcon), alt: "".concat(props.level, " banner icon"), size: "lg", className: "lui-msg-status-icon" }),
|
|
509
479
|
React__default.createElement("div", null, props.children)));
|
|
510
480
|
};
|
|
511
481
|
|
|
512
482
|
var LuiStaticMessage = function (props) {
|
|
513
483
|
var _a = useState(true), display = _a[0], setDisplay = _a[1];
|
|
514
484
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
515
|
-
return display ? (React__default.createElement("div", { className: clsx("lui-msg-"
|
|
516
|
-
React__default.createElement(LuiIcon, { name: "ic_"
|
|
485
|
+
return display ? (React__default.createElement("div", { className: clsx("lui-msg-".concat(props.level), props.className), "data-testid": 'static-message-container' },
|
|
486
|
+
React__default.createElement(LuiIcon, { name: "ic_".concat(materialIcon), alt: "".concat(props.level, " static icon"), size: "lg", className: "lui-msg-status-icon" }),
|
|
517
487
|
props.children,
|
|
518
488
|
(props.closable === undefined || props.closable) && (React__default.createElement("button", { "aria-label": "Close dialog", onClick: function () {
|
|
519
489
|
setDisplay(false);
|
|
@@ -522,7 +492,7 @@ var LuiStaticMessage = function (props) {
|
|
|
522
492
|
};
|
|
523
493
|
|
|
524
494
|
var PlainButton = React__default.forwardRef(function (props, ref) {
|
|
525
|
-
return (React__default.createElement("button", __assign({}, props.buttonProps, { type: props.type, title: props.title, disabled: props.disabled, name: props.name, onClick: props.onClick, className: clsx('lui-button', "lui-button-"
|
|
495
|
+
return (React__default.createElement("button", __assign({}, props.buttonProps, { type: props.type, title: props.title, disabled: props.disabled, name: props.name, onClick: props.onClick, className: clsx('lui-button', "lui-button-".concat(props.level), "lui-button-".concat(props.size), props.className), "data-testid": props['data-testid'], style: props.style, ref: ref }), props.children));
|
|
526
496
|
});
|
|
527
497
|
var LuiButton = React__default.forwardRef(function (props, ref) {
|
|
528
498
|
var _level = props.level ? props.level : 'primary';
|
|
@@ -533,8 +503,8 @@ var LuiButton = React__default.forwardRef(function (props, ref) {
|
|
|
533
503
|
'data-testid': props['data-testid'],
|
|
534
504
|
name: props.name,
|
|
535
505
|
title: props.title,
|
|
536
|
-
className: clsx('lui-button', "lui-button-"
|
|
537
|
-
style: props.style
|
|
506
|
+
className: clsx('lui-button', "lui-button-".concat(props.level), "lui-button-".concat(props.size), props.className),
|
|
507
|
+
style: props.style
|
|
538
508
|
};
|
|
539
509
|
if (props.openInNewTab) {
|
|
540
510
|
aProps.target = '_blank';
|
|
@@ -591,7 +561,7 @@ var LuiToastMessage = function (_a) {
|
|
|
591
561
|
}
|
|
592
562
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
593
563
|
}, [display]);
|
|
594
|
-
return (React__default.createElement("div", { role: "status", "data-testid": className, className: "lui-msg-"
|
|
564
|
+
return (React__default.createElement("div", { role: "status", "data-testid": className, className: "lui-msg-".concat(level, " lui-msg-toast lui-msg-toast-dismissable ").concat(className) },
|
|
595
565
|
React__default.createElement("i", { className: "lui-msg-status-icon material-icons-round" }, materialIcon),
|
|
596
566
|
children,
|
|
597
567
|
React__default.createElement("button", { "aria-label": "Close dialog", type: type || 'button', onClick: function () {
|
|
@@ -603,7 +573,7 @@ var LuiToastMessage = function (_a) {
|
|
|
603
573
|
|
|
604
574
|
var UIMessagingContext = createContext({
|
|
605
575
|
// @ts-ignore
|
|
606
|
-
showMessage: function (props) { }
|
|
576
|
+
showMessage: function (props) { }
|
|
607
577
|
});
|
|
608
578
|
function useShowLUIMessage() {
|
|
609
579
|
return useContext(UIMessagingContext).showMessage;
|
|
@@ -710,10 +680,10 @@ var LuiSelectMenu = function (_a) {
|
|
|
710
680
|
};
|
|
711
681
|
var LuiSelectMenuItem = function (_a) {
|
|
712
682
|
var iconName = _a.iconName, iconAlt = _a.iconAlt, level = _a.level, _b = _a.noPadding, noPadding = _b === void 0 ? false : _b, rest = __rest(_a, ["iconName", "iconAlt", "level", "noPadding"]);
|
|
713
|
-
return (React__default.createElement(MenuItem, __assign({}, rest, { className: clsx('lui-select-menuItem', "lui-select-menuItem--"
|
|
683
|
+
return (React__default.createElement(MenuItem, __assign({}, rest, { className: clsx('lui-select-menuItem', "lui-select-menuItem--".concat(level ? level : 'primary'), rest.className), "data-testid": rest['data-testid'] }),
|
|
714
684
|
iconName ? (React__default.createElement(LuiIcon, { className: "lui-select-icon", name: iconName, alt: iconAlt ? iconAlt : '', size: "md" })) : (''),
|
|
715
685
|
React__default.createElement("p", { className: clsx('lui-select-menuItemText', {
|
|
716
|
-
'lui-select-menuItemText--noPadding': noPadding
|
|
686
|
+
'lui-select-menuItemText--noPadding': noPadding
|
|
717
687
|
}) }, rest.children)));
|
|
718
688
|
};
|
|
719
689
|
var LuiSelectSubMenuItem = function (_a) {
|
|
@@ -860,7 +830,7 @@ var LuiFilterMenu = function (props) {
|
|
|
860
830
|
|
|
861
831
|
var LuiTabsContext = React__default.createContext({
|
|
862
832
|
activePanel: null,
|
|
863
|
-
setActivePanel: function () { }
|
|
833
|
+
setActivePanel: function () { }
|
|
864
834
|
});
|
|
865
835
|
var LuiTabs = function (props) {
|
|
866
836
|
var _a = useState(props.defaultPanel), activePanel = _a[0], setActivePanel = _a[1];
|
|
@@ -869,12 +839,12 @@ var LuiTabs = function (props) {
|
|
|
869
839
|
};
|
|
870
840
|
|
|
871
841
|
var LuiTab = function (props) {
|
|
872
|
-
return (React__default.createElement("button", { className: clsx('LuiTab', props.active && 'LuiTab--active'), id: props.id, role: "tab", "aria-selected": props.active, "aria-controls": ""
|
|
842
|
+
return (React__default.createElement("button", { className: clsx('LuiTab', props.active && 'LuiTab--active'), id: props.id, role: "tab", "aria-selected": props.active, "aria-controls": "".concat(props.ariaControls), title: props.titleAttribute, onClick: props.onClick }, props.children));
|
|
873
843
|
};
|
|
874
844
|
|
|
875
845
|
// import './LuiTabsGroup.scss';
|
|
876
846
|
var LuiTabsGroup = function (props) {
|
|
877
|
-
return (React__default.createElement("div", { className: "LuiTabsGroup "
|
|
847
|
+
return (React__default.createElement("div", { className: "LuiTabsGroup ".concat(props.justify ? 'LuiTabsGroup--justified' : ''), role: "tablist", "aria-label": props.ariaLabel }, props.children));
|
|
878
848
|
};
|
|
879
849
|
|
|
880
850
|
var LuiTabsPanel = function (_a) {
|
|
@@ -887,13 +857,13 @@ var LuiTabsPanel = function (_a) {
|
|
|
887
857
|
setShouldShow(true);
|
|
888
858
|
}
|
|
889
859
|
}, [active, shouldShow]);
|
|
890
|
-
return (React__default.createElement("div", { className: clsx('LuiTabsPanel', active && 'LuiTabsPanel--active'), id: panel
|
|
860
|
+
return (React__default.createElement("div", { className: clsx('LuiTabsPanel', active && 'LuiTabsPanel--active'), id: "".concat(panel, "-tab-panel"), role: "tabpanel", "aria-labelledby": "".concat(panel, "-tab") }, shouldShow ? children : null));
|
|
891
861
|
};
|
|
892
862
|
|
|
893
863
|
var LuiTabsPanelSwitch = function (props) {
|
|
894
864
|
var context = useContext(LuiTabsContext);
|
|
895
865
|
var active = context.activePanel === props.targetPanel;
|
|
896
|
-
return (React__default.createElement(LuiTab, { id: props.targetPanel
|
|
866
|
+
return (React__default.createElement(LuiTab, { id: "".concat(props.targetPanel, "-tab"), ariaControls: "".concat(props.targetPanel, "-tab-panel"), active: active, onClick: function () {
|
|
897
867
|
if (context.setActivePanel)
|
|
898
868
|
context.setActivePanel(props.targetPanel);
|
|
899
869
|
} }, props.children));
|
|
@@ -902,7 +872,7 @@ var LuiTabsPanelSwitch = function (props) {
|
|
|
902
872
|
function useDeprecatedWarning(componentName) {
|
|
903
873
|
useEffect(function () {
|
|
904
874
|
if (window.location.hostname.includes('localhost')) {
|
|
905
|
-
console.warn(componentName
|
|
875
|
+
console.warn("".concat(componentName, " will be deprecated in future versions of Lui. Please see the 'Current Deprecations' page in Lui docs."));
|
|
906
876
|
}
|
|
907
877
|
}, []);
|
|
908
878
|
}
|
|
@@ -912,7 +882,9 @@ function LuiFormikForm(props) {
|
|
|
912
882
|
// this spreads all keys, except className
|
|
913
883
|
var _a = __assign({}, props); _a.className; var formikProps = __rest(_a, ["className"]);
|
|
914
884
|
var classNames = clsx(props.className);
|
|
915
|
-
return (
|
|
885
|
+
return (
|
|
886
|
+
// @ts-ignore not fixing due this component being deprecated
|
|
887
|
+
React__default.createElement(Formik, __assign({}, formikProps),
|
|
916
888
|
React__default.createElement("div", { className: classNames },
|
|
917
889
|
React__default.createElement(Form, null,
|
|
918
890
|
props.children,
|
|
@@ -924,9 +896,9 @@ styleInject(css_248z$5);
|
|
|
924
896
|
|
|
925
897
|
var LuiError = function (_a) {
|
|
926
898
|
var error = _a.error, className = _a.className;
|
|
927
|
-
return (React__default.createElement("div", { className: "LuiError "
|
|
928
|
-
React__default.createElement(LuiIcon, { className: "LuiError-errorIcon "
|
|
929
|
-
error && (React__default.createElement("span", { className: "LuiError-errorText "
|
|
899
|
+
return (React__default.createElement("div", { className: "LuiError ".concat(className, "-error") },
|
|
900
|
+
React__default.createElement(LuiIcon, { className: "LuiError-errorIcon ".concat(className, "-errorIcon"), alt: 'Error', name: "ic_error", size: "md", status: "error" }),
|
|
901
|
+
error && (React__default.createElement("span", { className: "LuiError-errorText ".concat(className, "-errorText") }, error))));
|
|
930
902
|
};
|
|
931
903
|
|
|
932
904
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
@@ -1030,14 +1002,14 @@ var LuiCheckboxInput = function (props) {
|
|
|
1030
1002
|
return (React__default.createElement("div", { className: clsx('LuiCheckboxInput', {
|
|
1031
1003
|
'LuiCheckboxInput--isChecked': props.isChecked,
|
|
1032
1004
|
'LuiCheckboxInput--hasError': !!props.error,
|
|
1033
|
-
'LuiCheckboxInput--isDisabled': !!props.isDisabled
|
|
1005
|
+
'LuiCheckboxInput--isDisabled': !!props.isDisabled
|
|
1034
1006
|
}, props.className) },
|
|
1035
1007
|
React__default.createElement("label", { htmlFor: id, className: "LuiCheckboxInput-group" },
|
|
1036
1008
|
props.mandatory && (React__default.createElement("span", { "aria-label": "Required", className: "LuiCheckboxInput-mandatory" }, "*")),
|
|
1037
1009
|
React__default.createElement("input", __assign({ className: clsx('LuiCheckboxInput-input'), id: id, type: "checkbox", value: props.value, onChange: props.onChange, checked: props.isChecked, disabled: props.isDisabled }, props.inputProps)),
|
|
1038
1010
|
React__default.createElement("span", { className: "LuiCheckboxInput-label" },
|
|
1039
1011
|
props.label,
|
|
1040
|
-
React__default.createElement(LuiIcon, { name: props.isIndeterminate ? 'ic_zoom_out' : 'ic_check', size: "md", alt: props.isIndeterminate ? 'Indeterminate Check' : 'Check', className: "LuiCheckboxInput-labelCheck" }))),
|
|
1012
|
+
React__default.createElement(LuiIcon, { name: props.isIndeterminate ? 'ic_zoom_out' : 'ic_check', size: "md", alt: props.isIndeterminate ? 'Indeterminate Check' : 'Check', className: "LuiCheckboxInput-labelCheck", title: props.titleAttribute }))),
|
|
1041
1013
|
props.error && (React__default.createElement(LuiError, { className: "LuiCheckboxInput", error: props.error }))));
|
|
1042
1014
|
};
|
|
1043
1015
|
|
|
@@ -1068,7 +1040,7 @@ var LuiFileInputBox = function (props) {
|
|
|
1068
1040
|
var hasError = hasFileFormatError || props.showMustSelectFileError === true;
|
|
1069
1041
|
return (React__default.createElement("div", { className: clsx('LuiFileInputBox-upload', hasError && 'LuiFileInputBox-upload-error'), style: { width: props.width || 320, height: props.height || 320 } },
|
|
1070
1042
|
React__default.createElement("input", { role: "button", "aria-label": "File Upload", type: "file", className: "LuiFileInputBox-upload-input", accept: props.acceptedExtensions
|
|
1071
|
-
.map(function (extension) { return "."
|
|
1043
|
+
.map(function (extension) { return ".".concat(extension); })
|
|
1072
1044
|
.join(','), onChange: onChange }),
|
|
1073
1045
|
React__default.createElement(React__default.Fragment, null, hasError ? (React__default.createElement("div", { className: "LuiFileInputBox-upload-container" },
|
|
1074
1046
|
React__default.createElement(React__default.Fragment, null,
|
|
@@ -1125,7 +1097,7 @@ var extensionsAsHumanReadableList = function (extensions) {
|
|
|
1125
1097
|
return '';
|
|
1126
1098
|
if (extensions.length === 1)
|
|
1127
1099
|
return uppercaseExtensions[0];
|
|
1128
|
-
return uppercaseExtensions.slice(0, -1).join(', ')
|
|
1100
|
+
return "".concat(uppercaseExtensions.slice(0, -1).join(', '), " or ").concat(uppercaseExtensions[extensions.length - 1]);
|
|
1129
1101
|
};
|
|
1130
1102
|
|
|
1131
1103
|
var LuiSelectInput = function (props) {
|
|
@@ -1166,17 +1138,17 @@ var LuiRadioInput = function (props) {
|
|
|
1166
1138
|
var id = useGenerateOrDefaultId((_a = props.inputProps) === null || _a === void 0 ? void 0 : _a.id);
|
|
1167
1139
|
return (React__default.createElement(React__default.Fragment, null,
|
|
1168
1140
|
React__default.createElement("div", { className: clsx('LuiRadioInput', {
|
|
1169
|
-
'LuiRadioInput--hasError': props.error
|
|
1141
|
+
'LuiRadioInput--hasError': props.error
|
|
1170
1142
|
}) },
|
|
1171
1143
|
React__default.createElement("fieldset", { className: 'LuiRadioInput-fieldset' },
|
|
1172
1144
|
props.legend && (React__default.createElement("legend", { className: "LuiRadioInput-legend" }, props.legend)),
|
|
1173
1145
|
props.options.map(function (option, index) {
|
|
1174
|
-
var radioId = id
|
|
1146
|
+
var radioId = "".concat(id, "-").concat(index);
|
|
1175
1147
|
var isSelected = props.selectedValue === option;
|
|
1176
1148
|
var isDisabled = props.isOptionDisabled && props.isOptionDisabled(index);
|
|
1177
1149
|
return (React__default.createElement("label", { htmlFor: radioId, className: clsx('LuiRadioInput-label', {
|
|
1178
1150
|
'LuiRadioInput-label--isDisabled': isDisabled,
|
|
1179
|
-
'LuiRadioInput-label--isSelected': isSelected
|
|
1151
|
+
'LuiRadioInput-label--isSelected': isSelected
|
|
1180
1152
|
}), key: radioId },
|
|
1181
1153
|
React__default.createElement("input", __assign({ disabled: isDisabled, className: "LuiRadioInput-input", type: "radio", id: radioId, name: option, value: option, checked: isSelected, onChange: props.onChange }, props.inputProps)),
|
|
1182
1154
|
props.renderLabelFor ? props.renderLabelFor(option) : option));
|
|
@@ -1204,7 +1176,7 @@ function LuiFormikCheckbox(props) {
|
|
|
1204
1176
|
|
|
1205
1177
|
var LuiFormikFormLabel = function (props) {
|
|
1206
1178
|
useDeprecatedWarning('LuiFormikFormLabel');
|
|
1207
|
-
return (React__default.createElement("div", { className: clsx('LuiFormLabel-wrapper', props.className && ""
|
|
1179
|
+
return (React__default.createElement("div", { className: clsx('LuiFormLabel-wrapper', props.className && "".concat(props.className)) },
|
|
1208
1180
|
props.children,
|
|
1209
1181
|
React__default.createElement("label", { className: "LuiFormLabel", htmlFor: props["for"] },
|
|
1210
1182
|
props.required && React__default.createElement("span", { className: "lui-required-input-icon" }, "*"),
|
|
@@ -1225,7 +1197,7 @@ var LuiFormikTextInput = connect(function (props) {
|
|
|
1225
1197
|
if (props.onValueChange) {
|
|
1226
1198
|
props.onValueChange({
|
|
1227
1199
|
value: event.target.value,
|
|
1228
|
-
formik: props.formik
|
|
1200
|
+
formik: props.formik
|
|
1229
1201
|
});
|
|
1230
1202
|
}
|
|
1231
1203
|
} }))) : (React__default.createElement("textarea", __assign({ id: props.name, "data-testid": props.name }, field, { rows: 1 }, props.inputProps, { onChange: function (event) {
|
|
@@ -1234,12 +1206,12 @@ var LuiFormikTextInput = connect(function (props) {
|
|
|
1234
1206
|
if (props.onValueChange) {
|
|
1235
1207
|
props.onValueChange({
|
|
1236
1208
|
value: event.target.value,
|
|
1237
|
-
formik: props.formik
|
|
1209
|
+
formik: props.formik
|
|
1238
1210
|
});
|
|
1239
1211
|
}
|
|
1240
1212
|
} })));
|
|
1241
1213
|
};
|
|
1242
|
-
return (React__default.createElement("div", { className: clsx(props.className && ""
|
|
1214
|
+
return (React__default.createElement("div", { className: clsx(props.className && "".concat(props.className)) },
|
|
1243
1215
|
props.label && (React__default.createElement(LuiFormikFormLabel, { required: props.required, label: props.label, "for": props.name, tooltip: props.tooltip })),
|
|
1244
1216
|
props.helperInfo,
|
|
1245
1217
|
React__default.createElement(Field, { name: props.name, validate: props.validate }, function (_a) {
|
|
@@ -1448,7 +1420,7 @@ var LuiBearingInput = function (props) {
|
|
|
1448
1420
|
remainder += '0';
|
|
1449
1421
|
}
|
|
1450
1422
|
var minutes = parseInt(remainder.substr(0, 2));
|
|
1451
|
-
var seconds = parseFloat(remainder.substr(2, 2)
|
|
1423
|
+
var seconds = parseFloat("".concat(remainder.substr(2, 2), ".").concat(remainder.length > 4 ? remainder.substr(4, 2) : '0'));
|
|
1452
1424
|
return { sign: sign, degrees: degrees, minutes: minutes, seconds: seconds };
|
|
1453
1425
|
};
|
|
1454
1426
|
var validateBearing = function (bearing) {
|
|
@@ -1466,13 +1438,13 @@ var LuiBearingInput = function (props) {
|
|
|
1466
1438
|
var formatBearing = function (decimalIsh) {
|
|
1467
1439
|
var _a = parseBearing(decimalIsh), sign = _a.sign, degrees = _a.degrees, minutes = _a.minutes, seconds = _a.seconds;
|
|
1468
1440
|
var displaySign = degrees === 0 && minutes === 0 && seconds === 0 ? '' : sign;
|
|
1469
|
-
return displaySign
|
|
1441
|
+
return "".concat(displaySign, " ").concat(degrees, "\u00B0 ").concat(padToTwo(minutes), "' ").concat(padToTwo(seconds), "\"");
|
|
1470
1442
|
};
|
|
1471
1443
|
var onChange = function (event) {
|
|
1472
1444
|
var newValue = event.target.value;
|
|
1473
1445
|
if (newValue === '' ||
|
|
1474
1446
|
newValue === '-' ||
|
|
1475
|
-
newValue.match(RegExp("^-?[0-9]+(\\.[0-9]{0,"
|
|
1447
|
+
newValue.match(RegExp("^-?[0-9]+(\\.[0-9]{0,".concat(maxAfterDP, "})?$")))) {
|
|
1476
1448
|
props.onChange && props.onChange(event);
|
|
1477
1449
|
}
|
|
1478
1450
|
else {
|
|
@@ -25022,7 +24994,7 @@ var LuiLottieLight = function (_a) {
|
|
|
25022
24994
|
container: element.current,
|
|
25023
24995
|
rendererSettings: rendererSettings,
|
|
25024
24996
|
autoplay: autoplay,
|
|
25025
|
-
loop: loop
|
|
24997
|
+
loop: loop
|
|
25026
24998
|
});
|
|
25027
24999
|
}
|
|
25028
25000
|
return function () {
|
|
@@ -25037,7 +25009,7 @@ var LuiLottieLight = function (_a) {
|
|
|
25037
25009
|
var autoplay = !isChromatic();
|
|
25038
25010
|
var style = { height: 148, width: 148 };
|
|
25039
25011
|
var renderSettings = {
|
|
25040
|
-
preserveAspectRatio: 'xMidYMid slice'
|
|
25012
|
+
preserveAspectRatio: 'xMidYMid slice'
|
|
25041
25013
|
};
|
|
25042
25014
|
var LuiLoadingSpinnerBase = function (props) {
|
|
25043
25015
|
return (React__default.createElement("div", { style: {
|
|
@@ -25046,7 +25018,7 @@ var LuiLoadingSpinnerBase = function (props) {
|
|
|
25046
25018
|
left: '50%',
|
|
25047
25019
|
zIndex: 1000,
|
|
25048
25020
|
marginLeft: '-74px',
|
|
25049
|
-
marginTop: '-74px'
|
|
25021
|
+
marginTop: '-74px'
|
|
25050
25022
|
}, "data-testid": "loading-spinner" },
|
|
25051
25023
|
React__default.createElement(LuiLottieLight, { animationData: props.animationData, loop: true, autoplay: autoplay, rendererSettings: renderSettings, style: style })));
|
|
25052
25024
|
};
|
|
@@ -25061,17 +25033,17 @@ var LuiStatusSpinner = function (props) {
|
|
|
25061
25033
|
top: '50%',
|
|
25062
25034
|
left: '50%',
|
|
25063
25035
|
marginLeft: '-150px',
|
|
25064
|
-
marginTop: '74px'
|
|
25036
|
+
marginTop: '74px'
|
|
25065
25037
|
} },
|
|
25066
25038
|
React__default.createElement("div", { style: {
|
|
25067
25039
|
textAlign: 'center',
|
|
25068
|
-
width: '300px'
|
|
25040
|
+
width: '300px'
|
|
25069
25041
|
} }, props.children))));
|
|
25070
25042
|
};
|
|
25071
25043
|
var LuiMiniSpinner = function (props) {
|
|
25072
25044
|
return (React__default.createElement("div", __assign({}, props.divProps),
|
|
25073
25045
|
React__default.createElement(LuiLottieLight, { animationData: loaderData, loop: true, autoplay: autoplay, rendererSettings: {
|
|
25074
|
-
preserveAspectRatio: 'xMidYMid slice'
|
|
25046
|
+
preserveAspectRatio: 'xMidYMid slice'
|
|
25075
25047
|
}, style: { height: props.size, width: props.size } })));
|
|
25076
25048
|
};
|
|
25077
25049
|
var LuiLoadingSpinner = function () {
|
|
@@ -25085,7 +25057,8 @@ var LuiLoadingSpinnerChristmas = function () {
|
|
|
25085
25057
|
};
|
|
25086
25058
|
// this function was extracted from chromatic/isChromatic. It was causing TS issues for the consumer
|
|
25087
25059
|
function isChromatic() {
|
|
25088
|
-
return !!((window === null || window === void 0 ? void 0 : window.navigator.userAgent.match(/Chromatic/)) ||
|
|
25060
|
+
return !!((window === null || window === void 0 ? void 0 : window.navigator.userAgent.match(/Chromatic/)) ||
|
|
25061
|
+
(window === null || window === void 0 ? void 0 : window.location.href.match(/chromatic=true/)));
|
|
25089
25062
|
}
|
|
25090
25063
|
|
|
25091
25064
|
var css_248z$4 = ":export {\n charcoal: #2a292c;\n fuscous: #6b6966;\n gray: #989189;\n silver: #beb9b4;\n lily: #eaeaea;\n hint: #f9f9f9;\n snow: #ffffff;\n white: #ffffff;\n teal: #00425d;\n sea: #007198;\n electric: #0096cc;\n spray: #73c8e1;\n polar: #e2f3f7;\n sherpa: #004b50;\n surfie: #017a76;\n persian: #00a599;\n downy: #73cdc8;\n iceberg: #dcf5f0;\n sacramento: #004e32;\n salem: #08814d;\n pigment: #0aa245;\n granny: #9bd79b;\n panache: #e9fae7;\n brand-primary: #004b50;\n brand-secondary: #017a76;\n error: #cc0000;\n error-bg: #f5cccc;\n error-focus: #5a0000;\n warning: #ea6a2e;\n warning-bg: #fbdfd2;\n warning-focus: #b33a01;\n success: #0aa245;\n success-bg: #e9fae7;\n info: #3a7cdf;\n info-bg: #d8e5f9;\n visited: #00425d;\n green-hover: #107c3a;\n green-active: #094a22;\n green-btn: #0aa245;\n txt-link: #0096cc;\n primary-hover-btn: #005678;\n selection: #c7e9f3;\n heading-color: #017a76;\n heading-color--secondary: #2a292c;\n base-type-color: #2a292c;\n input-text: #2a292c;\n input-placeholder: #6b6966;\n input-placeholder-when-disabled: #989189;\n base-icon-color: #007198;\n disabled-color: #989189;\n disabled-color-dark: #6b6966;\n linz-color-primary: #023d48;\n linz-color-primary-hover: #01818a;\n linz-color-tertiary: #e1e44a;\n linz-color-tertiary-hover: #cdcf59;\n color-test-pink: #f09;\n linz-linear-gradient-blue: linear-gradient(70deg, #00425d 12%, #007198 100%);\n linz-linear-gradient-teal: linear-gradient(270deg, #00a599 1%, #73cdc8 100%);\n}";
|
|
@@ -25203,8 +25176,8 @@ var LuiLoadingIndicator = function () { return React__default.createElement(LuiM
|
|
|
25203
25176
|
function LuiComboSelectActual(givenProps, ref) {
|
|
25204
25177
|
var props = Object.assign({
|
|
25205
25178
|
noOptionsMessage: function (i) {
|
|
25206
|
-
return "No options found containing '"
|
|
25207
|
-
}
|
|
25179
|
+
return "No options found containing '".concat(i.inputValue, "'");
|
|
25180
|
+
}
|
|
25208
25181
|
}, givenProps);
|
|
25209
25182
|
props.components = __assign({ LoadingIndicator: LuiLoadingIndicator }, props.components);
|
|
25210
25183
|
// box-shadow: "-8px 0px 0 0 #cc0000";
|
|
@@ -25214,12 +25187,12 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
25214
25187
|
control: function (provided, state) { return (__assign(__assign({}, provided), {
|
|
25215
25188
|
/* matches style of .LuiTextInput-input */
|
|
25216
25189
|
boxShadow: 'none', border: state.isFocused ? '1px solid #053d52' : '1px solid #b2b2b2', '&:hover, &:active': {
|
|
25217
|
-
borderColor: '#053d52'
|
|
25190
|
+
borderColor: '#053d52'
|
|
25218
25191
|
} })); },
|
|
25219
25192
|
dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: css_248z$4['fuscous'] })); },
|
|
25220
25193
|
indicatorSeparator: function (provided) { return (__assign(__assign({}, provided), { width: 0 })); },
|
|
25221
25194
|
input: function (provided) { return (__assign(__assign({}, provided), { height: '40px', minHeight: '40px', fontWeight: 400, input: {
|
|
25222
|
-
height: '38px !important'
|
|
25195
|
+
height: '38px !important'
|
|
25223
25196
|
} })); },
|
|
25224
25197
|
singleValue: function (provided) { return (__assign(__assign({}, provided), { color: '#414042', fontWeight: 400 })); },
|
|
25225
25198
|
placeholder: function (provided) { return (__assign(__assign({}, provided), {
|
|
@@ -25228,7 +25201,7 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
25228
25201
|
option: function (provided, _a) {
|
|
25229
25202
|
var isSelected = _a.isSelected;
|
|
25230
25203
|
return (__assign(__assign({}, provided), { color: css_248z$4['input-text'], backgroundColor: isSelected ? css_248z$4['selection'] : css_248z$4['white'] }));
|
|
25231
|
-
}
|
|
25204
|
+
}
|
|
25232
25205
|
} });
|
|
25233
25206
|
return (React__default.createElement("label", { htmlFor: id, className: clsx('LuiComboSelect-label', props.error && 'hasError') },
|
|
25234
25207
|
React__default.createElement("span", { className: clsx('LuiSelect-label-text', props.hideLabel ? 'LuiScreenReadersOnly' : '') }, props.label),
|
|
@@ -25318,7 +25291,7 @@ var buildHideClassDict = function (_a) {
|
|
|
25318
25291
|
'lui-hide-sm': inRange('sm'),
|
|
25319
25292
|
'lui-hide-md': inRange('md'),
|
|
25320
25293
|
'lui-hide-lg': inRange('lg'),
|
|
25321
|
-
'lui-hide-xl': inRange('xl')
|
|
25294
|
+
'lui-hide-xl': inRange('xl')
|
|
25322
25295
|
};
|
|
25323
25296
|
};
|
|
25324
25297
|
|
|
@@ -25338,7 +25311,7 @@ var LuiHeader = function (_a) {
|
|
|
25338
25311
|
'lui-header': true,
|
|
25339
25312
|
'lui-header-transparent': transparent,
|
|
25340
25313
|
'lui-header-small': size === 'small',
|
|
25341
|
-
'lui-header-sticky': sticky
|
|
25314
|
+
'lui-header-sticky': sticky
|
|
25342
25315
|
}) },
|
|
25343
25316
|
React__default.createElement("div", { className: "lui-header-row" },
|
|
25344
25317
|
React__default.createElement("div", { className: "lui-header-col" },
|
|
@@ -25358,7 +25331,7 @@ var LuiHeaderMenuItem = forwardRef(function (_a, ref) {
|
|
|
25358
25331
|
var resolvedIcon = !icon && !label ? 'menu' : icon;
|
|
25359
25332
|
return (React__default.createElement("div", { className: menuItemClasses, ref: ref },
|
|
25360
25333
|
React__default.createElement("div", { className: clsx('lui-header-menu-icon', onClick && 'clickable'), onClick: onClick, "data-testid": dataTestId },
|
|
25361
|
-
resolvedIcon && (React__default.createElement("i", { className: "material-icons-round md-36" }, resolvedIcon)),
|
|
25334
|
+
resolvedIcon && (React__default.createElement("i", { title: "Main menu", className: "material-icons-round md-36" }, resolvedIcon)),
|
|
25362
25335
|
label && React__default.createElement("div", { className: "lui-menu-label" }, label),
|
|
25363
25336
|
badge && React__default.createElement("div", { className: "badge" }, badge)),
|
|
25364
25337
|
children));
|
|
@@ -25366,7 +25339,7 @@ var LuiHeaderMenuItem = forwardRef(function (_a, ref) {
|
|
|
25366
25339
|
var LuiCloseableHeaderMenuContext = createContext({
|
|
25367
25340
|
isOpen: function () { return false; },
|
|
25368
25341
|
open: function () { },
|
|
25369
|
-
close: function () { }
|
|
25342
|
+
close: function () { }
|
|
25370
25343
|
});
|
|
25371
25344
|
var LuiCloseableHeaderMenuItem = function (_a) {
|
|
25372
25345
|
var open = _a.open, setOpen = _a.setOpen, props = __rest(_a, ["open", "setOpen"]);
|
|
@@ -25380,7 +25353,7 @@ var LuiCloseableHeaderMenuItem = function (_a) {
|
|
|
25380
25353
|
var menuControls = {
|
|
25381
25354
|
isOpen: function () { return open; },
|
|
25382
25355
|
open: function () { return setOpen(true); },
|
|
25383
|
-
close: function () { return setOpen(false); }
|
|
25356
|
+
close: function () { return setOpen(false); }
|
|
25384
25357
|
};
|
|
25385
25358
|
var menuItemProps = __assign({ onClick: function () { return menuControls.open(); } }, props);
|
|
25386
25359
|
return (React__default.createElement(LuiCloseableHeaderMenuContext.Provider, { value: menuControls },
|
|
@@ -25413,8 +25386,7 @@ var LuiDrawerMenu = function (_a) {
|
|
|
25413
25386
|
var restOfProps = __rest(_a, []);
|
|
25414
25387
|
var children = restOfProps.children, _b = restOfProps.hasStickyHeader, hasStickyHeader = _b === void 0 ? true : _b, menuPropsCopy = __rest(restOfProps, ["children", "hasStickyHeader"]);
|
|
25415
25388
|
var _c = useState(false), open = _c[0], setOpen = _c[1];
|
|
25416
|
-
var closeableMenuProps = __assign(__assign({}, menuPropsCopy), { open: open,
|
|
25417
|
-
setOpen: setOpen, icon: open ? 'close' : 'menu', onClick: function () { return setOpen(!open); } });
|
|
25389
|
+
var closeableMenuProps = __assign(__assign({}, menuPropsCopy), { open: open, setOpen: setOpen, icon: open ? 'close' : 'menu', onClick: function () { return setOpen(!open); } });
|
|
25418
25390
|
useEffect(function () {
|
|
25419
25391
|
// Support for non-sticky headers. Scroll back to top when menu is opened
|
|
25420
25392
|
if (open && !hasStickyHeader) {
|
|
@@ -25431,7 +25403,7 @@ var LuiDrawerMenu = function (_a) {
|
|
|
25431
25403
|
return (React__default.createElement(LuiCloseableHeaderMenuItem, __assign({}, closeableMenuProps),
|
|
25432
25404
|
React__default.createElement("div", { className: clsx({
|
|
25433
25405
|
'lui-menu-drawer': true,
|
|
25434
|
-
'lui-menu-drawer-closed': !open
|
|
25406
|
+
'lui-menu-drawer-closed': !open
|
|
25435
25407
|
}), "data-testid": 'drawer', "aria-hidden": !open }, children)));
|
|
25436
25408
|
};
|
|
25437
25409
|
var LuiDropdownMenu = function (_a) {
|
|
@@ -25442,7 +25414,7 @@ var LuiDropdownMenu = function (_a) {
|
|
|
25442
25414
|
return (React__default.createElement(LuiCloseableHeaderMenuItem, __assign({}, closeableMenuProps),
|
|
25443
25415
|
React__default.createElement("div", { className: clsx({
|
|
25444
25416
|
'lui-menu-dropdown lui-box-shadow': true,
|
|
25445
|
-
'lui-menu-dropdown-closed': !open
|
|
25417
|
+
'lui-menu-dropdown-closed': !open
|
|
25446
25418
|
}), "data-testid": 'dropdown', "aria-hidden": !open },
|
|
25447
25419
|
children,
|
|
25448
25420
|
' ')));
|
|
@@ -27805,8 +27777,8 @@ function polyfill(Component) {
|
|
|
27805
27777
|
}
|
|
27806
27778
|
|
|
27807
27779
|
var reactLifecyclesCompat_es = /*#__PURE__*/Object.freeze({
|
|
27808
|
-
|
|
27809
|
-
|
|
27780
|
+
__proto__: null,
|
|
27781
|
+
polyfill: polyfill
|
|
27810
27782
|
});
|
|
27811
27783
|
|
|
27812
27784
|
var require$$6 = /*@__PURE__*/getAugmentedNamespace(reactLifecyclesCompat_es);
|
|
@@ -28165,7 +28137,7 @@ var LuiModal = function (props) {
|
|
|
28165
28137
|
}
|
|
28166
28138
|
}
|
|
28167
28139
|
return (React__default.createElement(Modal, __assign({ key: props.key, isOpen: true, shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick, onRequestClose: props.onClose, overlayClassName: "modal", className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim', ariaHideApp: !isTest }, (props.appendToElement && {
|
|
28168
|
-
parentSelector: props.appendToElement
|
|
28140
|
+
parentSelector: props.appendToElement
|
|
28169
28141
|
})),
|
|
28170
28142
|
React__default.createElement("div", { ref: node, className: clsx('lui-modal lui-box-shadow', props.maxWidth && 'lui-max-width', props.headingText && 'lui-modal-no-padding', props.className) },
|
|
28171
28143
|
props.headingText && (React__default.createElement(LuiModalHeader, { headingText: props.headingText, onClose: props.onClose })),
|
|
@@ -28173,8 +28145,8 @@ var LuiModal = function (props) {
|
|
|
28173
28145
|
};
|
|
28174
28146
|
var LuiAlertModal = function (props) {
|
|
28175
28147
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
28176
|
-
return (React__default.createElement(LuiModal, { key: props.key, shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick, onClose: props.onClose, className: clsx("lui-modal-"
|
|
28177
|
-
React__default.createElement(LuiIcon, { name: "ic_"
|
|
28148
|
+
return (React__default.createElement(LuiModal, { key: props.key, shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick, onClose: props.onClose, className: clsx("lui-modal-".concat(props.level), props.className), appendToElement: props.appendToElement },
|
|
28149
|
+
React__default.createElement(LuiIcon, { name: "ic_".concat(materialIcon), alt: "".concat(props.level, " status icon"), size: "lg", className: "lui-msg-status-icon" }),
|
|
28178
28150
|
props.children));
|
|
28179
28151
|
};
|
|
28180
28152
|
var LuiAlertModalButtons = function (props) {
|
|
@@ -28364,7 +28336,7 @@ var LuiSearchInput = function (props) {
|
|
|
28364
28336
|
function moveUp() {
|
|
28365
28337
|
var items = flatten(results);
|
|
28366
28338
|
var takeNext = false;
|
|
28367
|
-
for (var _i = 0, _a =
|
|
28339
|
+
for (var _i = 0, _a = __spreadArray([], items, true).reverse(); _i < _a.length; _i++) {
|
|
28368
28340
|
var item = _a[_i];
|
|
28369
28341
|
if (item.id === selectedId) {
|
|
28370
28342
|
takeNext = true;
|
|
@@ -28444,7 +28416,7 @@ var LuiSearchInput = function (props) {
|
|
|
28444
28416
|
onClick: function () {
|
|
28445
28417
|
setInputValue('');
|
|
28446
28418
|
setResults([]);
|
|
28447
|
-
}
|
|
28419
|
+
}
|
|
28448
28420
|
} })) : null;
|
|
28449
28421
|
var searchIcon = (React__default.createElement(LuiIcon, { className: 'LuiSearchInput-startIconPosition', name: "ic_search", size: "md", alt: "search", spanProps: { onClick: function () { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } } }));
|
|
28450
28422
|
var typeMore = 'You need to type a few more characters';
|
|
@@ -28462,7 +28434,7 @@ var LuiSearchInput = function (props) {
|
|
|
28462
28434
|
return typeMore;
|
|
28463
28435
|
}
|
|
28464
28436
|
if (props.name)
|
|
28465
|
-
return "The "
|
|
28437
|
+
return "The ".concat(props.name, " could not be displayed or does not exist.");
|
|
28466
28438
|
else
|
|
28467
28439
|
return null;
|
|
28468
28440
|
}
|
|
@@ -28548,17 +28520,17 @@ var renderSelectMenu = function (items, onClick) { return (React__default.create
|
|
|
28548
28520
|
return (React__default.createElement(React__default.Fragment, { key: item.value },
|
|
28549
28521
|
item.groupDivider ? React__default.createElement(LuiSelectMenuDivider, null) : null,
|
|
28550
28522
|
item.groupTitle ? (React__default.createElement(LuiSelectMenuHeader, null, item.groupTitle)) : null,
|
|
28551
|
-
React__default.createElement(LuiSelectMenuItem, { "data-testid": "select-box-"
|
|
28523
|
+
React__default.createElement(LuiSelectMenuItem, { "data-testid": "select-box-".concat(item.value), value: item.value, onClick: onClick, noPadding: true }, item.title)));
|
|
28552
28524
|
}))); };
|
|
28553
28525
|
|
|
28554
28526
|
var exampleSearchResults = [
|
|
28555
28527
|
{
|
|
28556
28528
|
id: 'DP44035-1',
|
|
28557
|
-
description: 'This is a example Newlands search result'
|
|
28529
|
+
description: 'This is a example Newlands search result'
|
|
28558
28530
|
},
|
|
28559
28531
|
{
|
|
28560
28532
|
id: 'DP44035-2',
|
|
28561
|
-
description: 'This is a example Newlands search result 2'
|
|
28533
|
+
description: 'This is a example Newlands search result 2'
|
|
28562
28534
|
},
|
|
28563
28535
|
];
|
|
28564
28536
|
var getDefaultOptions = function (input) {
|
|
@@ -28591,28 +28563,28 @@ var searchBoxOptions = [
|
|
|
28591
28563
|
disclaimer: 'This is a default disclaimer, add your own search options',
|
|
28592
28564
|
getOption: getDefaultOptions,
|
|
28593
28565
|
onSelectOption: defaultSelectOption,
|
|
28594
|
-
renderItem: defaultRenderItem
|
|
28566
|
+
renderItem: defaultRenderItem
|
|
28595
28567
|
},
|
|
28596
28568
|
{
|
|
28597
28569
|
value: 'titleReference',
|
|
28598
28570
|
title: 'Title Reference',
|
|
28599
28571
|
placeholderText: 'Enter a title reference e.g. TN117/154',
|
|
28600
28572
|
getOption: getDefaultOptions,
|
|
28601
|
-
onSelectOption: defaultSelectOption
|
|
28573
|
+
onSelectOption: defaultSelectOption
|
|
28602
28574
|
},
|
|
28603
28575
|
{
|
|
28604
28576
|
value: 'ownerName',
|
|
28605
28577
|
title: 'Registered Owner',
|
|
28606
28578
|
placeholderText: 'Enter owners name',
|
|
28607
28579
|
getOption: getDefaultOptions,
|
|
28608
|
-
onSelectOption: defaultSelectOption
|
|
28580
|
+
onSelectOption: defaultSelectOption
|
|
28609
28581
|
},
|
|
28610
28582
|
{
|
|
28611
28583
|
value: 'lgdId',
|
|
28612
28584
|
title: 'Legal Description',
|
|
28613
28585
|
placeholderText: 'Example: Lot 2 DP 1234',
|
|
28614
28586
|
getOption: getDefaultOptions,
|
|
28615
|
-
onSelectOption: defaultSelectOption
|
|
28587
|
+
onSelectOption: defaultSelectOption
|
|
28616
28588
|
},
|
|
28617
28589
|
{
|
|
28618
28590
|
value: 'parcelId',
|
|
@@ -28620,7 +28592,7 @@ var searchBoxOptions = [
|
|
|
28620
28592
|
placeholderText: 'Enter a parcel id e.g 93851642',
|
|
28621
28593
|
disclaimer: 'testdd2',
|
|
28622
28594
|
getOption: getDefaultOptions,
|
|
28623
|
-
onSelectOption: defaultSelectOption
|
|
28595
|
+
onSelectOption: defaultSelectOption
|
|
28624
28596
|
},
|
|
28625
28597
|
{
|
|
28626
28598
|
groupTitle: 'Survey',
|
|
@@ -28629,7 +28601,7 @@ var searchBoxOptions = [
|
|
|
28629
28601
|
title: 'Survey number',
|
|
28630
28602
|
placeholderText: 'Enter a survey number, e.g. DP 44035',
|
|
28631
28603
|
getOption: getDefaultOptions,
|
|
28632
|
-
onSelectOption: defaultSelectOption
|
|
28604
|
+
onSelectOption: defaultSelectOption
|
|
28633
28605
|
},
|
|
28634
28606
|
{
|
|
28635
28607
|
groupTitle: 'Instrument',
|
|
@@ -28638,7 +28610,7 @@ var searchBoxOptions = [
|
|
|
28638
28610
|
title: 'Instrument Number',
|
|
28639
28611
|
placeholderText: 'Example: 7723502.2',
|
|
28640
28612
|
getOption: getDefaultOptions,
|
|
28641
|
-
onSelectOption: defaultSelectOption
|
|
28613
|
+
onSelectOption: defaultSelectOption
|
|
28642
28614
|
},
|
|
28643
28615
|
];
|
|
28644
28616
|
var getDefaultSearchMenuOptions = function () {
|
|
@@ -28683,7 +28655,7 @@ var LOLUserContext = React__default.createContext({
|
|
|
28683
28655
|
console.error('Called changeFirm before UserContext loaded', firmId);
|
|
28684
28656
|
},
|
|
28685
28657
|
isInternal: function () { return false; },
|
|
28686
|
-
hasAnyPrivilege: function () { return false; }
|
|
28658
|
+
hasAnyPrivilege: function () { return false; }
|
|
28687
28659
|
});
|
|
28688
28660
|
function LOLUserContextProvider(props) {
|
|
28689
28661
|
var _a = useGetUserInfo(), isLoading = _a.isLoading, data = _a.data, isError = _a.isError;
|
|
@@ -28764,7 +28736,7 @@ function LOLUserContextProvider(props) {
|
|
|
28764
28736
|
selectedFirm: selectedFirm,
|
|
28765
28737
|
changeFirm: changeFirm,
|
|
28766
28738
|
isInternal: isInternal,
|
|
28767
|
-
hasAnyPrivilege: hasAnyPrivilege
|
|
28739
|
+
hasAnyPrivilege: hasAnyPrivilege
|
|
28768
28740
|
} }, props.children));
|
|
28769
28741
|
}
|
|
28770
28742
|
else {
|
|
@@ -28793,8 +28765,8 @@ function useGetUserInfo() {
|
|
|
28793
28765
|
}); });
|
|
28794
28766
|
}
|
|
28795
28767
|
function reAuthUser() {
|
|
28796
|
-
var redirectPath = ""
|
|
28797
|
-
window.location.assign("/auth/login?redirectPath="
|
|
28768
|
+
var redirectPath = "".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash);
|
|
28769
|
+
window.location.assign("/auth/login?redirectPath=".concat(encodeURIComponent(redirectPath)));
|
|
28798
28770
|
}
|
|
28799
28771
|
function checkForStandardErrors(res) {
|
|
28800
28772
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -28851,7 +28823,7 @@ var LuiFilterContainer = function (props) {
|
|
|
28851
28823
|
return (React__default.createElement("div", null,
|
|
28852
28824
|
showFilter && (React__default.createElement("div", { className: 'LuiFilterContainer-filter-container LuiDeprecatedForms' },
|
|
28853
28825
|
isFilterClearable && (React__default.createElement(ClearableLuiTextInput, { label: 'Filter', inputProps: {
|
|
28854
|
-
placeholder: 'Type to filter'
|
|
28826
|
+
placeholder: 'Type to filter'
|
|
28855
28827
|
}, hideLabel: true, onValueChange: function (value) { return setFilter(value); } })),
|
|
28856
28828
|
!isFilterClearable && (React__default.createElement("input", { type: "text", placeholder: "Type to filter", value: filter, onChange: function (e) { return setFilter(e.target.value); } })))),
|
|
28857
28829
|
renderFunction(filterFunction(filter))));
|
|
@@ -28864,7 +28836,7 @@ var LOLGlobalClientRefContext = React__default.createContext({
|
|
|
28864
28836
|
clientRef: '',
|
|
28865
28837
|
changeClientRef: function () {
|
|
28866
28838
|
// no-op
|
|
28867
|
-
}
|
|
28839
|
+
}
|
|
28868
28840
|
});
|
|
28869
28841
|
var LOLGlobalClientRefContextProvider = function (props) {
|
|
28870
28842
|
var useUserIdAsClientReference = props.useUserIdAsClientReference;
|
|
@@ -28909,7 +28881,7 @@ var LOLGlobalClientRefContextProvider = function (props) {
|
|
|
28909
28881
|
]);
|
|
28910
28882
|
return (React__default.createElement(LOLGlobalClientRefContext.Provider, { value: {
|
|
28911
28883
|
clientRef: clientRef,
|
|
28912
|
-
changeClientRef: changeClientRef
|
|
28884
|
+
changeClientRef: changeClientRef
|
|
28913
28885
|
} }, props.children));
|
|
28914
28886
|
};
|
|
28915
28887
|
var GLOBAL_CLIENT_REFERENCE_KEY = 'globalClientReference';
|
|
@@ -28962,7 +28934,7 @@ var LOLFirmSwitcherMenuContent = function (_a) {
|
|
|
28962
28934
|
};
|
|
28963
28935
|
var FirmOption = function (_a) {
|
|
28964
28936
|
var _b = _a.value, id = _b.id, name = _b.name, onSelect = _a.onSelect, selected = _a.selected, disabled = _a.disabled;
|
|
28965
|
-
return (React__default.createElement("div", { className: 'LOLFirmSwitcherMenu-option', onClick: function () { return onSelect(id); }, "aria-disabled": disabled, "data-testid": "firm-"
|
|
28937
|
+
return (React__default.createElement("div", { className: 'LOLFirmSwitcherMenu-option', onClick: function () { return onSelect(id); }, "aria-disabled": disabled, "data-testid": "firm-".concat(id) },
|
|
28966
28938
|
React__default.createElement("span", null, name),
|
|
28967
28939
|
selected && React__default.createElement("i", { className: "material-icons-round" }, "check_circle")));
|
|
28968
28940
|
};
|
|
@@ -29022,13 +28994,13 @@ var LOLLogoutLink = function (props) {
|
|
|
29022
28994
|
case 3:
|
|
29023
28995
|
res = _b.sent();
|
|
29024
28996
|
if (res.status === 200) {
|
|
29025
|
-
window.location.assign("/auth/login?redirectPath="
|
|
28997
|
+
window.location.assign("/auth/login?redirectPath=".concat(redirectPathString));
|
|
29026
28998
|
}
|
|
29027
28999
|
return [2 /*return*/];
|
|
29028
29000
|
}
|
|
29029
29001
|
});
|
|
29030
29002
|
}); };
|
|
29031
|
-
return React__default.createElement(LuiDrawerMenuOption, { label: "Logout "
|
|
29003
|
+
return React__default.createElement(LuiDrawerMenuOption, { label: "Logout ".concat(user.id), onClick: logout });
|
|
29032
29004
|
};
|
|
29033
29005
|
|
|
29034
29006
|
var LOLUserLastLogin = function () {
|
|
@@ -29119,7 +29091,7 @@ function createLink(pathname, label, target, activeIcon, icon, anyPrivileges) {
|
|
|
29119
29091
|
activeIcon: activeIcon,
|
|
29120
29092
|
active: pathname.startsWith(target),
|
|
29121
29093
|
anyPrivileges: anyPrivileges,
|
|
29122
|
-
openExternally: true
|
|
29094
|
+
openExternally: true
|
|
29123
29095
|
};
|
|
29124
29096
|
}
|
|
29125
29097
|
var SEARCH_LABEL = 'Search';
|
|
@@ -29223,7 +29195,7 @@ var LOLCommonDrawerMenuAfterLinks = function (props) {
|
|
|
29223
29195
|
};
|
|
29224
29196
|
return (React__default.createElement(React__default.Fragment, null,
|
|
29225
29197
|
!isInternal() && (React__default.createElement(LuiDrawerMenuOption, { label: "Change password", onClick: function () {
|
|
29226
|
-
gotoLink("/manage/my-preferences?redirectPath="
|
|
29198
|
+
gotoLink("/manage/my-preferences?redirectPath=".concat(encodeURIComponent(path)));
|
|
29227
29199
|
} })),
|
|
29228
29200
|
React__default.createElement(LOLLogoutLink, { redirectPath: function () { return contextPath; } })));
|
|
29229
29201
|
};
|
|
@@ -32769,19 +32741,19 @@ var id = 0;
|
|
|
32769
32741
|
var getKey = function () { return id++; };
|
|
32770
32742
|
var LuiTooltip = function (props) {
|
|
32771
32743
|
var children = props.children, message = props.message, placement = props.placement, trigger = props.trigger, _a = props.animation, animation = _a === void 0 ? true : _a;
|
|
32772
|
-
var id = "LuiToolTip_"
|
|
32744
|
+
var id = "LuiToolTip_".concat(useMemo(getKey, []));
|
|
32773
32745
|
if (typeof message !== 'string') {
|
|
32774
32746
|
throw new Error('LuiTooltip message must be a string!');
|
|
32775
32747
|
}
|
|
32776
32748
|
useEffect(function () {
|
|
32777
|
-
tippy("#"
|
|
32749
|
+
tippy("#".concat(id), {
|
|
32778
32750
|
content: message,
|
|
32779
32751
|
arrow: true,
|
|
32780
32752
|
trigger: trigger,
|
|
32781
32753
|
theme: 'LUI',
|
|
32782
32754
|
placement: placement,
|
|
32783
32755
|
offset: [0, 24],
|
|
32784
|
-
animation: animation
|
|
32756
|
+
animation: animation
|
|
32785
32757
|
});
|
|
32786
32758
|
return function () {
|
|
32787
32759
|
var _a, _b;
|
|
@@ -32846,7 +32818,7 @@ var LuiSidePanelContainer = function (props) {
|
|
|
32846
32818
|
transition: 'width 0.2s ease',
|
|
32847
32819
|
boxShadow: '-0.1em 0 0.4em rgba(0, 0, 0, 0.2)',
|
|
32848
32820
|
padding: 0,
|
|
32849
|
-
zIndex: 3
|
|
32821
|
+
zIndex: 3
|
|
32850
32822
|
} },
|
|
32851
32823
|
children && (React__default.createElement("button", { type: "button", "data-testid": "close", onClick: onClose, style: {
|
|
32852
32824
|
color: '#5e5e61',
|
|
@@ -32857,7 +32829,7 @@ var LuiSidePanelContainer = function (props) {
|
|
|
32857
32829
|
border: 'none',
|
|
32858
32830
|
display: 'flex',
|
|
32859
32831
|
cursor: 'pointer',
|
|
32860
|
-
borderBottomLeftRadius: '5px'
|
|
32832
|
+
borderBottomLeftRadius: '5px'
|
|
32861
32833
|
} },
|
|
32862
32834
|
React__default.createElement(LuiIcon, { alt: "Close", name: "ic_clear", size: "lg", status: "interactive" }))),
|
|
32863
32835
|
children));
|
|
@@ -40442,7 +40414,7 @@ var LuiAccordicard = function (props) {
|
|
|
40442
40414
|
var _a = props.defaultToOpen, defaultToOpen = _a === void 0 ? false : _a, children = props.children, headerContent = props.headerContent;
|
|
40443
40415
|
var _b = useState(defaultToOpen), isOpen = _b[0], setIsOpen = _b[1];
|
|
40444
40416
|
var AccordicardContent = function () {
|
|
40445
|
-
return (React__default.createElement(motion.div, { key: "content", initial: ['collapsed'], animate: "open", exit: "collapsed", variants: {
|
|
40417
|
+
return (React__default.createElement(motion.div, { className: "LuiAccordicard-contentWrapper", key: "content", initial: ['collapsed'], animate: "open", exit: "collapsed", variants: {
|
|
40446
40418
|
open: {
|
|
40447
40419
|
opacity: 1,
|
|
40448
40420
|
height: 'auto',
|
|
@@ -40450,14 +40422,14 @@ var LuiAccordicard = function (props) {
|
|
|
40450
40422
|
opacity: {
|
|
40451
40423
|
delay: 0.1,
|
|
40452
40424
|
duration: 0.6,
|
|
40453
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40425
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40454
40426
|
},
|
|
40455
40427
|
height: {
|
|
40456
40428
|
delay: 0,
|
|
40457
40429
|
duration: 0.2,
|
|
40458
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40459
|
-
}
|
|
40460
|
-
}
|
|
40430
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40431
|
+
}
|
|
40432
|
+
}
|
|
40461
40433
|
},
|
|
40462
40434
|
collapsed: {
|
|
40463
40435
|
opacity: 0,
|
|
@@ -40466,19 +40438,21 @@ var LuiAccordicard = function (props) {
|
|
|
40466
40438
|
opacity: {
|
|
40467
40439
|
delay: 0,
|
|
40468
40440
|
duration: 0.2,
|
|
40469
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40441
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40470
40442
|
},
|
|
40471
40443
|
height: {
|
|
40472
40444
|
delay: 0.1,
|
|
40473
40445
|
duration: 0.2,
|
|
40474
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40475
|
-
}
|
|
40476
|
-
}
|
|
40477
|
-
}
|
|
40446
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40447
|
+
}
|
|
40448
|
+
}
|
|
40449
|
+
}
|
|
40478
40450
|
} },
|
|
40479
40451
|
React__default.createElement("div", { className: clsx('LuiAccordicard-content', isOpen ? 'LuiAccordicard-content--isOpen' : null) }, isOpen ? children : React__default.createElement(React__default.Fragment, null))));
|
|
40480
40452
|
};
|
|
40481
|
-
return (React__default.createElement(motion.div, { initial: false, className: clsx('LuiAccordicard', props.className, isOpen ? 'LuiAccordicard--isOpen' : null) },
|
|
40453
|
+
return (React__default.createElement(motion.div, { initial: false, className: clsx('LuiAccordicard', props.className, isOpen ? 'LuiAccordicard--isOpen' : null, props.warning ? 'LuiAccordicard--warning' : null) },
|
|
40454
|
+
props.warning && (React__default.createElement("div", { className: "LuiAccordicard-sideBar" },
|
|
40455
|
+
React__default.createElement(LuiIcon, { className: "LuiAccordicard-warningIcon", alt: "Accordicard warning", name: 'ic_warning', size: 'md' }))),
|
|
40482
40456
|
React__default.createElement(motion.header, { layout: true, initial: false, className: "LuiAccordicard-header" },
|
|
40483
40457
|
React__default.createElement("div", { className: "LuiAccordicard-headerContent" }, headerContent)),
|
|
40484
40458
|
React__default.createElement(AnimatePresence, { initial: false }, isOpen && React__default.createElement(AccordicardContent, null)),
|
|
@@ -40489,13 +40463,15 @@ var LuiAccordicard = function (props) {
|
|
|
40489
40463
|
var LuiAccordicardStatic = function (props) {
|
|
40490
40464
|
var _a = props.defaultToOpen, defaultToOpen = _a === void 0 ? false : _a, children = props.children, headerContent = props.headerContent;
|
|
40491
40465
|
var _b = useState(defaultToOpen), isOpen = _b[0], setIsOpen = _b[1];
|
|
40492
|
-
return (React__default.createElement("div", { className: clsx('LuiAccordicardStatic', isOpen ? 'LuiAccordicardStatic--isOpen' : null, props.className) },
|
|
40466
|
+
return (React__default.createElement("div", { className: clsx('LuiAccordicardStatic', isOpen ? 'LuiAccordicardStatic--isOpen' : null, props.warning ? 'LuiAccordicardStatic--warning' : null, props.className) },
|
|
40467
|
+
props.warning && (React__default.createElement("div", { className: "LuiAccordicardStatic-sideBar" },
|
|
40468
|
+
React__default.createElement(LuiIcon, { className: "LuiAccordicardStatic-warningIcon", alt: "Accordicard warning", name: 'ic_warning', size: 'md' }))),
|
|
40493
40469
|
React__default.createElement("div", { className: "LuiAccordicardStatic-header" },
|
|
40494
40470
|
React__default.createElement("div", { className: "LuiAccordicardStatic-headerContent" }, headerContent)),
|
|
40495
40471
|
React__default.createElement("div", { className: clsx('LuiAccordicardStatic-contentWrapper', isOpen ? 'LuiAccordicardStatic-contentWrapper--isOpen' : null) },
|
|
40496
40472
|
React__default.createElement("div", { className: clsx('LuiAccordicardStatic-content', isOpen ? 'LuiAccordicardStatic-content--isOpen' : null) }, isOpen ? children : React__default.createElement(React__default.Fragment, null))),
|
|
40497
40473
|
React__default.createElement("button", { "aria-label": isOpen ? 'Expanded' : 'Closed', className: "LuiAccordicardStatic-trigger", onClick: function () { return setIsOpen(!isOpen); } },
|
|
40498
|
-
React__default.createElement(LuiIcon, { className: clsx('LuiAccordicardStatic-chevron', isOpen ? 'LuiAccordicardStatic-chevron--isOpen' : null), name: 'ic_expand_more', alt: "expand", size: "md" }))));
|
|
40474
|
+
React__default.createElement(LuiIcon, { className: clsx('LuiAccordicardStatic-chevron', isOpen ? 'LuiAccordicardStatic-chevron--isOpen' : null), name: 'ic_expand_more', alt: "expand", title: "Expand and collapse panel", size: "md" }))));
|
|
40499
40475
|
};
|
|
40500
40476
|
|
|
40501
40477
|
export { FIRM_KEY, FIRM_NAME_KEY, GLOBAL_CLIENT_REFERENCE_KEY, LOLActiveFirmMessage, LOLAuthorisedLink, LOLCommonDrawerMenu, LOLCommonDrawerMenuAfterLinks, LOLDrawerMenu, LOLFirmSwitcherMenu, LOLGlobalClientRefContext, LOLGlobalClientRefContextProvider, LOLLogoutLink, LOLSearchBox, LOLUserContext, LOLUserContextProvider, LOLUserLastLogin, LuiAccordicard, LuiAccordicardStatic, LuiAlertModal, LuiAlertModalButtons, LuiBadge, LuiBanner, LuiBannerContent, LuiBearingFormikInput, LuiBearingInput, LuiButton, LuiButtonGroup, LuiCheckboxInput, LuiCloseableHeaderMenuContext, LuiCloseableHeaderMenuItem, LuiComboSelect, LuiControlledMenu, LuiDrawerMenu, LuiDrawerMenuDivider, LuiDrawerMenuOption, LuiDrawerMenuOptions, LuiDrawerMenuSection, LuiDropdownMenu, LuiErrorPage, LuiExpandableBanner, LuiFileInputBox, LuiFilterContainer, LuiFilterMenu, LuiFooter, LuiFormSectionHeader, LuiFormikCheckbox, LuiFormikForm, LuiFormikFormLabel, LuiFormikFormSubmitButton, LuiFormikRadioButton, LuiFormikRadioGroup, LuiFormikSelect, LuiFormikTextInput, LuiHeader, LuiHeaderMenuItem, LuiIcon, LuiLoadingSpinner, LuiLoadingSpinnerChristmas, LuiLoadingSpinnerEaster, LuiMenu, LuiMenuCloseButton, LuiMessagingContextProvider, LuiMiniSpinner, LuiModal, LuiRadioInput, LuiSearchBox, LuiSearchInput, LuiSelectDataMenu, LuiSelectInput, LuiSelectMenu, LuiSelectMenuItem, LuiSelectSubMenuItem, LuiShadow, LuiSidePanel, LuiSidePanelProvider, LuiStaticMessage, LuiStatusSpinner, LuiSwitchButton, LuiTab, LuiTabs, LuiTabsContext, LuiTabsGroup, LuiTabsPanel, LuiTabsPanelSwitch, LuiTextAreaInput, LuiTextInput, LuiToastMessage, LuiTooltip, LuiUpdatesSplashModal, getDefaultSearchMenuOptions, isChromatic, useClickedOutsideElement, useLOLGlobalClientRefContext, useLOLUserContext, useShowLUIMessage };
|