@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/index.js
CHANGED
|
@@ -13,21 +13,21 @@ var reactQuery = require('react-query');
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
14
|
|
|
15
15
|
function _interopNamespace(e) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
if (e && e.__esModule) return e;
|
|
17
|
+
var n = Object.create(null);
|
|
18
|
+
if (e) {
|
|
19
|
+
Object.keys(e).forEach(function (k) {
|
|
20
|
+
if (k !== 'default') {
|
|
21
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return e[k]; }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
n["default"] = e;
|
|
30
|
+
return Object.freeze(n);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
@@ -36,46 +36,7 @@ var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto$1);
|
|
|
36
36
|
var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
|
|
37
37
|
var lottie__default = /*#__PURE__*/_interopDefaultLegacy(lottie);
|
|
38
38
|
|
|
39
|
-
function
|
|
40
|
-
var k, y, str='';
|
|
41
|
-
|
|
42
|
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
43
|
-
str += mix;
|
|
44
|
-
} else if (typeof mix === 'object') {
|
|
45
|
-
if (Array.isArray(mix)) {
|
|
46
|
-
for (k=0; k < mix.length; k++) {
|
|
47
|
-
if (mix[k]) {
|
|
48
|
-
if (y = toVal(mix[k])) {
|
|
49
|
-
str && (str += ' ');
|
|
50
|
-
str += y;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
} else {
|
|
55
|
-
for (k in mix) {
|
|
56
|
-
if (mix[k]) {
|
|
57
|
-
str && (str += ' ');
|
|
58
|
-
str += k;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return str;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function clsx () {
|
|
68
|
-
var i=0, tmp, x, str='';
|
|
69
|
-
while (i < arguments.length) {
|
|
70
|
-
if (tmp = arguments[i++]) {
|
|
71
|
-
if (x = toVal(tmp)) {
|
|
72
|
-
str && (str += ' ');
|
|
73
|
-
str += x;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return str;
|
|
78
|
-
}
|
|
39
|
+
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}
|
|
79
40
|
|
|
80
41
|
/*! *****************************************************************************
|
|
81
42
|
Copyright (c) Microsoft Corporation.
|
|
@@ -186,15 +147,6 @@ function __read(o, n) {
|
|
|
186
147
|
return ar;
|
|
187
148
|
}
|
|
188
149
|
|
|
189
|
-
/** @deprecated */
|
|
190
|
-
function __spreadArrays() {
|
|
191
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
192
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
193
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
194
|
-
r[k] = a[j];
|
|
195
|
-
return r;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
150
|
function __spreadArray(to, from, pack) {
|
|
199
151
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
200
152
|
if (ar || !(i in from)) {
|
|
@@ -246,6 +198,8 @@ iconMap['ic_attach_file'] = (React__default["default"].createElement("svg", { vi
|
|
|
246
198
|
React__default["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" })));
|
|
247
199
|
iconMap['ic_attachment'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
248
200
|
React__default["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" })));
|
|
201
|
+
iconMap['ic_auth_and_instruct'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
202
|
+
React__default["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" })));
|
|
249
203
|
iconMap['ic_balance_parcel'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
250
204
|
React__default["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" })));
|
|
251
205
|
iconMap['ic_blocked'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
@@ -254,6 +208,8 @@ iconMap['ic_border_color'] = (React__default["default"].createElement("svg", { x
|
|
|
254
208
|
React__default["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" })));
|
|
255
209
|
iconMap['ic_cancel_clear'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
256
210
|
React__default["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" })));
|
|
211
|
+
iconMap['ic_certify_and_sign'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
212
|
+
React__default["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" })));
|
|
257
213
|
iconMap['ic_change_password'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
258
214
|
React__default["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" })));
|
|
259
215
|
iconMap['ic_check'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
@@ -282,10 +238,14 @@ iconMap['ic_delete_outline'] = (React__default["default"].createElement("svg", {
|
|
|
282
238
|
React__default["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" })));
|
|
283
239
|
iconMap['ic_delete_solid'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
284
240
|
React__default["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" })));
|
|
241
|
+
iconMap['ic_dollar_round'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
242
|
+
React__default["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" })));
|
|
285
243
|
iconMap['ic_double_arrow_left'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
286
244
|
React__default["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" })));
|
|
287
245
|
iconMap['ic_double_arrow_right'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
288
246
|
React__default["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" })));
|
|
247
|
+
iconMap['ic_double_tick'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
248
|
+
React__default["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" })));
|
|
289
249
|
iconMap['ic_drag_handle'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
290
250
|
React__default["default"].createElement("path", { d: "M20 9H4v2h16V9ZM4 15h16v-2H4v2Z" })));
|
|
291
251
|
iconMap['ic_drag_indicator'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -330,6 +290,8 @@ iconMap['ic_insert_invitation'] = (React__default["default"].createElement("svg"
|
|
|
330
290
|
React__default["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" })));
|
|
331
291
|
iconMap['ic_insert_photo'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
332
292
|
React__default["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" })));
|
|
293
|
+
iconMap['ic_instruments_roles'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
294
|
+
React__default["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" })));
|
|
333
295
|
iconMap['ic_keyboard_arrow_down'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
334
296
|
React__default["default"].createElement("path", { d: "M7.406 8.297 12 12.891l4.594-4.594L18 9.703l-6 6-6-6z" })));
|
|
335
297
|
iconMap['ic_keyboard_arrow_left'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
@@ -382,6 +344,8 @@ iconMap['ic_navigate_next'] = (React__default["default"].createElement("svg", {
|
|
|
382
344
|
React__default["default"].createElement("path", { d: "m9.703 6 6 6-6 6-1.406-1.406L12.891 12 8.297 7.406z" })));
|
|
383
345
|
iconMap['ic_note_add'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
384
346
|
React__default["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" })));
|
|
347
|
+
iconMap['ic_notice_of_change'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
348
|
+
React__default["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" })));
|
|
385
349
|
iconMap['ic_numbered_list'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
386
350
|
React__default["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" })));
|
|
387
351
|
iconMap['ic_office_building_corporate'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -415,6 +379,8 @@ iconMap['ic_product_list'] = (React__default["default"].createElement("svg", { v
|
|
|
415
379
|
React__default["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" })));
|
|
416
380
|
iconMap['ic_publish'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
417
381
|
React__default["default"].createElement("path", { d: "M5 4h14v2H5zm0 10h4v6h6v-6h4l-7-7-7 7zm8-2v6h-2v-6H9.83L12 9.83 14.17 12H13z" })));
|
|
382
|
+
iconMap['ic_release'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
383
|
+
React__default["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" })));
|
|
418
384
|
iconMap['ic_remove_circle'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
419
385
|
React__default["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" })));
|
|
420
386
|
iconMap['ic_remove_circle_outline'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -446,8 +412,12 @@ iconMap['ic_ta_request_sent'] = (React__default["default"].createElement("svg",
|
|
|
446
412
|
React__default["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" })));
|
|
447
413
|
iconMap['ic_table_columns'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
448
414
|
React__default["default"].createElement("path", { d: "M10 18h5V5h-5v13Zm-6 0h5V5H4v13ZM16 5v13h5V5h-5Z" })));
|
|
415
|
+
iconMap['ic_tax_statement'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
416
|
+
React__default["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" })));
|
|
449
417
|
iconMap['ic_tick'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 11" },
|
|
450
418
|
React__default["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" })));
|
|
419
|
+
iconMap['ic_tick_and_cross'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
420
|
+
React__default["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" })));
|
|
451
421
|
iconMap['ic_timeline'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
452
422
|
React__default["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" })));
|
|
453
423
|
iconMap['ic_title_allocation_swap'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -495,7 +465,7 @@ var ICON_SIZES = {
|
|
|
495
465
|
md: 'LuiIcon--md',
|
|
496
466
|
lg: 'LuiIcon--lg',
|
|
497
467
|
xl: 'LuiIcon--xl',
|
|
498
|
-
ns: 'LuiIcon--noSize'
|
|
468
|
+
ns: 'LuiIcon--noSize'
|
|
499
469
|
};
|
|
500
470
|
var ICON_STATUS = {
|
|
501
471
|
none: '',
|
|
@@ -503,13 +473,13 @@ var ICON_STATUS = {
|
|
|
503
473
|
warning: 'LuiIcon--warning',
|
|
504
474
|
success: 'LuiIcon--success',
|
|
505
475
|
interactive: 'LuiIcon--interactive',
|
|
506
|
-
disabled: 'LuiIcon--disabled'
|
|
476
|
+
disabled: 'LuiIcon--disabled'
|
|
507
477
|
};
|
|
508
478
|
var LuiIcon = function (_a) {
|
|
509
479
|
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;
|
|
510
480
|
var iconSVG = ICONS[name];
|
|
511
481
|
if (!iconSVG) {
|
|
512
|
-
console.warn("<LuiIcon>: No icon found for: "
|
|
482
|
+
console.warn("<LuiIcon>: No icon found for: ".concat(iconSVG));
|
|
513
483
|
return null;
|
|
514
484
|
}
|
|
515
485
|
return (React__namespace.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));
|
|
@@ -528,21 +498,21 @@ function getMaterialIconForLevel(level) {
|
|
|
528
498
|
}
|
|
529
499
|
}
|
|
530
500
|
var LuiBanner = function (props) {
|
|
531
|
-
return (React__default["default"].createElement("div", { className: clsx('lui-msg-banner-container', props.className ? props.className
|
|
501
|
+
return (React__default["default"].createElement("div", { className: clsx('lui-msg-banner-container', props.className ? "".concat(props.className, "-bannerContainer") : '') },
|
|
532
502
|
React__default["default"].createElement(LuiBannerContent, { level: props.level, className: props.className }, props.children)));
|
|
533
503
|
};
|
|
534
504
|
var LuiBannerContent = function (props) {
|
|
535
505
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
536
|
-
return (React__default["default"].createElement("div", { className: clsx("lui-msg-"
|
|
537
|
-
React__default["default"].createElement(LuiIcon, { name: "ic_"
|
|
506
|
+
return (React__default["default"].createElement("div", { className: clsx("lui-msg-".concat(props.level, " lui-msg-dynamic-banner"), props.className) },
|
|
507
|
+
React__default["default"].createElement(LuiIcon, { name: "ic_".concat(materialIcon), alt: "".concat(props.level, " banner icon"), size: "lg", className: "lui-msg-status-icon" }),
|
|
538
508
|
React__default["default"].createElement("div", null, props.children)));
|
|
539
509
|
};
|
|
540
510
|
|
|
541
511
|
var LuiStaticMessage = function (props) {
|
|
542
512
|
var _a = React.useState(true), display = _a[0], setDisplay = _a[1];
|
|
543
513
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
544
|
-
return display ? (React__default["default"].createElement("div", { className: clsx("lui-msg-"
|
|
545
|
-
React__default["default"].createElement(LuiIcon, { name: "ic_"
|
|
514
|
+
return display ? (React__default["default"].createElement("div", { className: clsx("lui-msg-".concat(props.level), props.className), "data-testid": 'static-message-container' },
|
|
515
|
+
React__default["default"].createElement(LuiIcon, { name: "ic_".concat(materialIcon), alt: "".concat(props.level, " static icon"), size: "lg", className: "lui-msg-status-icon" }),
|
|
546
516
|
props.children,
|
|
547
517
|
(props.closable === undefined || props.closable) && (React__default["default"].createElement("button", { "aria-label": "Close dialog", onClick: function () {
|
|
548
518
|
setDisplay(false);
|
|
@@ -551,7 +521,7 @@ var LuiStaticMessage = function (props) {
|
|
|
551
521
|
};
|
|
552
522
|
|
|
553
523
|
var PlainButton = React__default["default"].forwardRef(function (props, ref) {
|
|
554
|
-
return (React__default["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-"
|
|
524
|
+
return (React__default["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));
|
|
555
525
|
});
|
|
556
526
|
var LuiButton = React__default["default"].forwardRef(function (props, ref) {
|
|
557
527
|
var _level = props.level ? props.level : 'primary';
|
|
@@ -562,8 +532,8 @@ var LuiButton = React__default["default"].forwardRef(function (props, ref) {
|
|
|
562
532
|
'data-testid': props['data-testid'],
|
|
563
533
|
name: props.name,
|
|
564
534
|
title: props.title,
|
|
565
|
-
className: clsx('lui-button', "lui-button-"
|
|
566
|
-
style: props.style
|
|
535
|
+
className: clsx('lui-button', "lui-button-".concat(props.level), "lui-button-".concat(props.size), props.className),
|
|
536
|
+
style: props.style
|
|
567
537
|
};
|
|
568
538
|
if (props.openInNewTab) {
|
|
569
539
|
aProps.target = '_blank';
|
|
@@ -620,7 +590,7 @@ var LuiToastMessage = function (_a) {
|
|
|
620
590
|
}
|
|
621
591
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
622
592
|
}, [display]);
|
|
623
|
-
return (React__default["default"].createElement("div", { role: "status", "data-testid": className, className: "lui-msg-"
|
|
593
|
+
return (React__default["default"].createElement("div", { role: "status", "data-testid": className, className: "lui-msg-".concat(level, " lui-msg-toast lui-msg-toast-dismissable ").concat(className) },
|
|
624
594
|
React__default["default"].createElement("i", { className: "lui-msg-status-icon material-icons-round" }, materialIcon),
|
|
625
595
|
children,
|
|
626
596
|
React__default["default"].createElement("button", { "aria-label": "Close dialog", type: type || 'button', onClick: function () {
|
|
@@ -632,7 +602,7 @@ var LuiToastMessage = function (_a) {
|
|
|
632
602
|
|
|
633
603
|
var UIMessagingContext = React.createContext({
|
|
634
604
|
// @ts-ignore
|
|
635
|
-
showMessage: function (props) { }
|
|
605
|
+
showMessage: function (props) { }
|
|
636
606
|
});
|
|
637
607
|
function useShowLUIMessage() {
|
|
638
608
|
return React.useContext(UIMessagingContext).showMessage;
|
|
@@ -739,10 +709,10 @@ var LuiSelectMenu = function (_a) {
|
|
|
739
709
|
};
|
|
740
710
|
var LuiSelectMenuItem = function (_a) {
|
|
741
711
|
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"]);
|
|
742
|
-
return (React__default["default"].createElement(reactMenu.MenuItem, __assign({}, rest, { className: clsx('lui-select-menuItem', "lui-select-menuItem--"
|
|
712
|
+
return (React__default["default"].createElement(reactMenu.MenuItem, __assign({}, rest, { className: clsx('lui-select-menuItem', "lui-select-menuItem--".concat(level ? level : 'primary'), rest.className), "data-testid": rest['data-testid'] }),
|
|
743
713
|
iconName ? (React__default["default"].createElement(LuiIcon, { className: "lui-select-icon", name: iconName, alt: iconAlt ? iconAlt : '', size: "md" })) : (''),
|
|
744
714
|
React__default["default"].createElement("p", { className: clsx('lui-select-menuItemText', {
|
|
745
|
-
'lui-select-menuItemText--noPadding': noPadding
|
|
715
|
+
'lui-select-menuItemText--noPadding': noPadding
|
|
746
716
|
}) }, rest.children)));
|
|
747
717
|
};
|
|
748
718
|
var LuiSelectSubMenuItem = function (_a) {
|
|
@@ -889,7 +859,7 @@ var LuiFilterMenu = function (props) {
|
|
|
889
859
|
|
|
890
860
|
var LuiTabsContext = React__default["default"].createContext({
|
|
891
861
|
activePanel: null,
|
|
892
|
-
setActivePanel: function () { }
|
|
862
|
+
setActivePanel: function () { }
|
|
893
863
|
});
|
|
894
864
|
var LuiTabs = function (props) {
|
|
895
865
|
var _a = React.useState(props.defaultPanel), activePanel = _a[0], setActivePanel = _a[1];
|
|
@@ -898,12 +868,12 @@ var LuiTabs = function (props) {
|
|
|
898
868
|
};
|
|
899
869
|
|
|
900
870
|
var LuiTab = function (props) {
|
|
901
|
-
return (React__default["default"].createElement("button", { className: clsx('LuiTab', props.active && 'LuiTab--active'), id: props.id, role: "tab", "aria-selected": props.active, "aria-controls": ""
|
|
871
|
+
return (React__default["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));
|
|
902
872
|
};
|
|
903
873
|
|
|
904
874
|
// import './LuiTabsGroup.scss';
|
|
905
875
|
var LuiTabsGroup = function (props) {
|
|
906
|
-
return (React__default["default"].createElement("div", { className: "LuiTabsGroup "
|
|
876
|
+
return (React__default["default"].createElement("div", { className: "LuiTabsGroup ".concat(props.justify ? 'LuiTabsGroup--justified' : ''), role: "tablist", "aria-label": props.ariaLabel }, props.children));
|
|
907
877
|
};
|
|
908
878
|
|
|
909
879
|
var LuiTabsPanel = function (_a) {
|
|
@@ -916,13 +886,13 @@ var LuiTabsPanel = function (_a) {
|
|
|
916
886
|
setShouldShow(true);
|
|
917
887
|
}
|
|
918
888
|
}, [active, shouldShow]);
|
|
919
|
-
return (React__default["default"].createElement("div", { className: clsx('LuiTabsPanel', active && 'LuiTabsPanel--active'), id: panel
|
|
889
|
+
return (React__default["default"].createElement("div", { className: clsx('LuiTabsPanel', active && 'LuiTabsPanel--active'), id: "".concat(panel, "-tab-panel"), role: "tabpanel", "aria-labelledby": "".concat(panel, "-tab") }, shouldShow ? children : null));
|
|
920
890
|
};
|
|
921
891
|
|
|
922
892
|
var LuiTabsPanelSwitch = function (props) {
|
|
923
893
|
var context = React.useContext(LuiTabsContext);
|
|
924
894
|
var active = context.activePanel === props.targetPanel;
|
|
925
|
-
return (React__default["default"].createElement(LuiTab, { id: props.targetPanel
|
|
895
|
+
return (React__default["default"].createElement(LuiTab, { id: "".concat(props.targetPanel, "-tab"), ariaControls: "".concat(props.targetPanel, "-tab-panel"), active: active, onClick: function () {
|
|
926
896
|
if (context.setActivePanel)
|
|
927
897
|
context.setActivePanel(props.targetPanel);
|
|
928
898
|
} }, props.children));
|
|
@@ -931,7 +901,7 @@ var LuiTabsPanelSwitch = function (props) {
|
|
|
931
901
|
function useDeprecatedWarning(componentName) {
|
|
932
902
|
React.useEffect(function () {
|
|
933
903
|
if (window.location.hostname.includes('localhost')) {
|
|
934
|
-
console.warn(componentName
|
|
904
|
+
console.warn("".concat(componentName, " will be deprecated in future versions of Lui. Please see the 'Current Deprecations' page in Lui docs."));
|
|
935
905
|
}
|
|
936
906
|
}, []);
|
|
937
907
|
}
|
|
@@ -941,7 +911,9 @@ function LuiFormikForm(props) {
|
|
|
941
911
|
// this spreads all keys, except className
|
|
942
912
|
var _a = __assign({}, props); _a.className; var formikProps = __rest(_a, ["className"]);
|
|
943
913
|
var classNames = clsx(props.className);
|
|
944
|
-
return (
|
|
914
|
+
return (
|
|
915
|
+
// @ts-ignore not fixing due this component being deprecated
|
|
916
|
+
React__default["default"].createElement(formik.Formik, __assign({}, formikProps),
|
|
945
917
|
React__default["default"].createElement("div", { className: classNames },
|
|
946
918
|
React__default["default"].createElement(formik.Form, null,
|
|
947
919
|
props.children,
|
|
@@ -953,9 +925,9 @@ styleInject(css_248z$5);
|
|
|
953
925
|
|
|
954
926
|
var LuiError = function (_a) {
|
|
955
927
|
var error = _a.error, className = _a.className;
|
|
956
|
-
return (React__default["default"].createElement("div", { className: "LuiError "
|
|
957
|
-
React__default["default"].createElement(LuiIcon, { className: "LuiError-errorIcon "
|
|
958
|
-
error && (React__default["default"].createElement("span", { className: "LuiError-errorText "
|
|
928
|
+
return (React__default["default"].createElement("div", { className: "LuiError ".concat(className, "-error") },
|
|
929
|
+
React__default["default"].createElement(LuiIcon, { className: "LuiError-errorIcon ".concat(className, "-errorIcon"), alt: 'Error', name: "ic_error", size: "md", status: "error" }),
|
|
930
|
+
error && (React__default["default"].createElement("span", { className: "LuiError-errorText ".concat(className, "-errorText") }, error))));
|
|
959
931
|
};
|
|
960
932
|
|
|
961
933
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
@@ -1059,14 +1031,14 @@ var LuiCheckboxInput = function (props) {
|
|
|
1059
1031
|
return (React__default["default"].createElement("div", { className: clsx('LuiCheckboxInput', {
|
|
1060
1032
|
'LuiCheckboxInput--isChecked': props.isChecked,
|
|
1061
1033
|
'LuiCheckboxInput--hasError': !!props.error,
|
|
1062
|
-
'LuiCheckboxInput--isDisabled': !!props.isDisabled
|
|
1034
|
+
'LuiCheckboxInput--isDisabled': !!props.isDisabled
|
|
1063
1035
|
}, props.className) },
|
|
1064
1036
|
React__default["default"].createElement("label", { htmlFor: id, className: "LuiCheckboxInput-group" },
|
|
1065
1037
|
props.mandatory && (React__default["default"].createElement("span", { "aria-label": "Required", className: "LuiCheckboxInput-mandatory" }, "*")),
|
|
1066
1038
|
React__default["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)),
|
|
1067
1039
|
React__default["default"].createElement("span", { className: "LuiCheckboxInput-label" },
|
|
1068
1040
|
props.label,
|
|
1069
|
-
React__default["default"].createElement(LuiIcon, { name: props.isIndeterminate ? 'ic_zoom_out' : 'ic_check', size: "md", alt: props.isIndeterminate ? 'Indeterminate Check' : 'Check', className: "LuiCheckboxInput-labelCheck" }))),
|
|
1041
|
+
React__default["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 }))),
|
|
1070
1042
|
props.error && (React__default["default"].createElement(LuiError, { className: "LuiCheckboxInput", error: props.error }))));
|
|
1071
1043
|
};
|
|
1072
1044
|
|
|
@@ -1097,7 +1069,7 @@ var LuiFileInputBox = function (props) {
|
|
|
1097
1069
|
var hasError = hasFileFormatError || props.showMustSelectFileError === true;
|
|
1098
1070
|
return (React__default["default"].createElement("div", { className: clsx('LuiFileInputBox-upload', hasError && 'LuiFileInputBox-upload-error'), style: { width: props.width || 320, height: props.height || 320 } },
|
|
1099
1071
|
React__default["default"].createElement("input", { role: "button", "aria-label": "File Upload", type: "file", className: "LuiFileInputBox-upload-input", accept: props.acceptedExtensions
|
|
1100
|
-
.map(function (extension) { return "."
|
|
1072
|
+
.map(function (extension) { return ".".concat(extension); })
|
|
1101
1073
|
.join(','), onChange: onChange }),
|
|
1102
1074
|
React__default["default"].createElement(React__default["default"].Fragment, null, hasError ? (React__default["default"].createElement("div", { className: "LuiFileInputBox-upload-container" },
|
|
1103
1075
|
React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
@@ -1154,7 +1126,7 @@ var extensionsAsHumanReadableList = function (extensions) {
|
|
|
1154
1126
|
return '';
|
|
1155
1127
|
if (extensions.length === 1)
|
|
1156
1128
|
return uppercaseExtensions[0];
|
|
1157
|
-
return uppercaseExtensions.slice(0, -1).join(', ')
|
|
1129
|
+
return "".concat(uppercaseExtensions.slice(0, -1).join(', '), " or ").concat(uppercaseExtensions[extensions.length - 1]);
|
|
1158
1130
|
};
|
|
1159
1131
|
|
|
1160
1132
|
var LuiSelectInput = function (props) {
|
|
@@ -1195,17 +1167,17 @@ var LuiRadioInput = function (props) {
|
|
|
1195
1167
|
var id = useGenerateOrDefaultId((_a = props.inputProps) === null || _a === void 0 ? void 0 : _a.id);
|
|
1196
1168
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1197
1169
|
React__default["default"].createElement("div", { className: clsx('LuiRadioInput', {
|
|
1198
|
-
'LuiRadioInput--hasError': props.error
|
|
1170
|
+
'LuiRadioInput--hasError': props.error
|
|
1199
1171
|
}) },
|
|
1200
1172
|
React__default["default"].createElement("fieldset", { className: 'LuiRadioInput-fieldset' },
|
|
1201
1173
|
props.legend && (React__default["default"].createElement("legend", { className: "LuiRadioInput-legend" }, props.legend)),
|
|
1202
1174
|
props.options.map(function (option, index) {
|
|
1203
|
-
var radioId = id
|
|
1175
|
+
var radioId = "".concat(id, "-").concat(index);
|
|
1204
1176
|
var isSelected = props.selectedValue === option;
|
|
1205
1177
|
var isDisabled = props.isOptionDisabled && props.isOptionDisabled(index);
|
|
1206
1178
|
return (React__default["default"].createElement("label", { htmlFor: radioId, className: clsx('LuiRadioInput-label', {
|
|
1207
1179
|
'LuiRadioInput-label--isDisabled': isDisabled,
|
|
1208
|
-
'LuiRadioInput-label--isSelected': isSelected
|
|
1180
|
+
'LuiRadioInput-label--isSelected': isSelected
|
|
1209
1181
|
}), key: radioId },
|
|
1210
1182
|
React__default["default"].createElement("input", __assign({ disabled: isDisabled, className: "LuiRadioInput-input", type: "radio", id: radioId, name: option, value: option, checked: isSelected, onChange: props.onChange }, props.inputProps)),
|
|
1211
1183
|
props.renderLabelFor ? props.renderLabelFor(option) : option));
|
|
@@ -1233,7 +1205,7 @@ function LuiFormikCheckbox(props) {
|
|
|
1233
1205
|
|
|
1234
1206
|
var LuiFormikFormLabel = function (props) {
|
|
1235
1207
|
useDeprecatedWarning('LuiFormikFormLabel');
|
|
1236
|
-
return (React__default["default"].createElement("div", { className: clsx('LuiFormLabel-wrapper', props.className && ""
|
|
1208
|
+
return (React__default["default"].createElement("div", { className: clsx('LuiFormLabel-wrapper', props.className && "".concat(props.className)) },
|
|
1237
1209
|
props.children,
|
|
1238
1210
|
React__default["default"].createElement("label", { className: "LuiFormLabel", htmlFor: props["for"] },
|
|
1239
1211
|
props.required && React__default["default"].createElement("span", { className: "lui-required-input-icon" }, "*"),
|
|
@@ -1254,7 +1226,7 @@ var LuiFormikTextInput = formik.connect(function (props) {
|
|
|
1254
1226
|
if (props.onValueChange) {
|
|
1255
1227
|
props.onValueChange({
|
|
1256
1228
|
value: event.target.value,
|
|
1257
|
-
formik: props.formik
|
|
1229
|
+
formik: props.formik
|
|
1258
1230
|
});
|
|
1259
1231
|
}
|
|
1260
1232
|
} }))) : (React__default["default"].createElement("textarea", __assign({ id: props.name, "data-testid": props.name }, field, { rows: 1 }, props.inputProps, { onChange: function (event) {
|
|
@@ -1263,12 +1235,12 @@ var LuiFormikTextInput = formik.connect(function (props) {
|
|
|
1263
1235
|
if (props.onValueChange) {
|
|
1264
1236
|
props.onValueChange({
|
|
1265
1237
|
value: event.target.value,
|
|
1266
|
-
formik: props.formik
|
|
1238
|
+
formik: props.formik
|
|
1267
1239
|
});
|
|
1268
1240
|
}
|
|
1269
1241
|
} })));
|
|
1270
1242
|
};
|
|
1271
|
-
return (React__default["default"].createElement("div", { className: clsx(props.className && ""
|
|
1243
|
+
return (React__default["default"].createElement("div", { className: clsx(props.className && "".concat(props.className)) },
|
|
1272
1244
|
props.label && (React__default["default"].createElement(LuiFormikFormLabel, { required: props.required, label: props.label, "for": props.name, tooltip: props.tooltip })),
|
|
1273
1245
|
props.helperInfo,
|
|
1274
1246
|
React__default["default"].createElement(formik.Field, { name: props.name, validate: props.validate }, function (_a) {
|
|
@@ -1477,7 +1449,7 @@ var LuiBearingInput = function (props) {
|
|
|
1477
1449
|
remainder += '0';
|
|
1478
1450
|
}
|
|
1479
1451
|
var minutes = parseInt(remainder.substr(0, 2));
|
|
1480
|
-
var seconds = parseFloat(remainder.substr(2, 2)
|
|
1452
|
+
var seconds = parseFloat("".concat(remainder.substr(2, 2), ".").concat(remainder.length > 4 ? remainder.substr(4, 2) : '0'));
|
|
1481
1453
|
return { sign: sign, degrees: degrees, minutes: minutes, seconds: seconds };
|
|
1482
1454
|
};
|
|
1483
1455
|
var validateBearing = function (bearing) {
|
|
@@ -1495,13 +1467,13 @@ var LuiBearingInput = function (props) {
|
|
|
1495
1467
|
var formatBearing = function (decimalIsh) {
|
|
1496
1468
|
var _a = parseBearing(decimalIsh), sign = _a.sign, degrees = _a.degrees, minutes = _a.minutes, seconds = _a.seconds;
|
|
1497
1469
|
var displaySign = degrees === 0 && minutes === 0 && seconds === 0 ? '' : sign;
|
|
1498
|
-
return displaySign
|
|
1470
|
+
return "".concat(displaySign, " ").concat(degrees, "\u00B0 ").concat(padToTwo(minutes), "' ").concat(padToTwo(seconds), "\"");
|
|
1499
1471
|
};
|
|
1500
1472
|
var onChange = function (event) {
|
|
1501
1473
|
var newValue = event.target.value;
|
|
1502
1474
|
if (newValue === '' ||
|
|
1503
1475
|
newValue === '-' ||
|
|
1504
|
-
newValue.match(RegExp("^-?[0-9]+(\\.[0-9]{0,"
|
|
1476
|
+
newValue.match(RegExp("^-?[0-9]+(\\.[0-9]{0,".concat(maxAfterDP, "})?$")))) {
|
|
1505
1477
|
props.onChange && props.onChange(event);
|
|
1506
1478
|
}
|
|
1507
1479
|
else {
|
|
@@ -25051,7 +25023,7 @@ var LuiLottieLight = function (_a) {
|
|
|
25051
25023
|
container: element.current,
|
|
25052
25024
|
rendererSettings: rendererSettings,
|
|
25053
25025
|
autoplay: autoplay,
|
|
25054
|
-
loop: loop
|
|
25026
|
+
loop: loop
|
|
25055
25027
|
});
|
|
25056
25028
|
}
|
|
25057
25029
|
return function () {
|
|
@@ -25066,7 +25038,7 @@ var LuiLottieLight = function (_a) {
|
|
|
25066
25038
|
var autoplay = !isChromatic();
|
|
25067
25039
|
var style = { height: 148, width: 148 };
|
|
25068
25040
|
var renderSettings = {
|
|
25069
|
-
preserveAspectRatio: 'xMidYMid slice'
|
|
25041
|
+
preserveAspectRatio: 'xMidYMid slice'
|
|
25070
25042
|
};
|
|
25071
25043
|
var LuiLoadingSpinnerBase = function (props) {
|
|
25072
25044
|
return (React__default["default"].createElement("div", { style: {
|
|
@@ -25075,7 +25047,7 @@ var LuiLoadingSpinnerBase = function (props) {
|
|
|
25075
25047
|
left: '50%',
|
|
25076
25048
|
zIndex: 1000,
|
|
25077
25049
|
marginLeft: '-74px',
|
|
25078
|
-
marginTop: '-74px'
|
|
25050
|
+
marginTop: '-74px'
|
|
25079
25051
|
}, "data-testid": "loading-spinner" },
|
|
25080
25052
|
React__default["default"].createElement(LuiLottieLight, { animationData: props.animationData, loop: true, autoplay: autoplay, rendererSettings: renderSettings, style: style })));
|
|
25081
25053
|
};
|
|
@@ -25090,17 +25062,17 @@ var LuiStatusSpinner = function (props) {
|
|
|
25090
25062
|
top: '50%',
|
|
25091
25063
|
left: '50%',
|
|
25092
25064
|
marginLeft: '-150px',
|
|
25093
|
-
marginTop: '74px'
|
|
25065
|
+
marginTop: '74px'
|
|
25094
25066
|
} },
|
|
25095
25067
|
React__default["default"].createElement("div", { style: {
|
|
25096
25068
|
textAlign: 'center',
|
|
25097
|
-
width: '300px'
|
|
25069
|
+
width: '300px'
|
|
25098
25070
|
} }, props.children))));
|
|
25099
25071
|
};
|
|
25100
25072
|
var LuiMiniSpinner = function (props) {
|
|
25101
25073
|
return (React__default["default"].createElement("div", __assign({}, props.divProps),
|
|
25102
25074
|
React__default["default"].createElement(LuiLottieLight, { animationData: loaderData, loop: true, autoplay: autoplay, rendererSettings: {
|
|
25103
|
-
preserveAspectRatio: 'xMidYMid slice'
|
|
25075
|
+
preserveAspectRatio: 'xMidYMid slice'
|
|
25104
25076
|
}, style: { height: props.size, width: props.size } })));
|
|
25105
25077
|
};
|
|
25106
25078
|
var LuiLoadingSpinner = function () {
|
|
@@ -25114,7 +25086,8 @@ var LuiLoadingSpinnerChristmas = function () {
|
|
|
25114
25086
|
};
|
|
25115
25087
|
// this function was extracted from chromatic/isChromatic. It was causing TS issues for the consumer
|
|
25116
25088
|
function isChromatic() {
|
|
25117
|
-
return !!((window === null || window === void 0 ? void 0 : window.navigator.userAgent.match(/Chromatic/)) ||
|
|
25089
|
+
return !!((window === null || window === void 0 ? void 0 : window.navigator.userAgent.match(/Chromatic/)) ||
|
|
25090
|
+
(window === null || window === void 0 ? void 0 : window.location.href.match(/chromatic=true/)));
|
|
25118
25091
|
}
|
|
25119
25092
|
|
|
25120
25093
|
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}";
|
|
@@ -25232,8 +25205,8 @@ var LuiLoadingIndicator = function () { return React__default["default"].createE
|
|
|
25232
25205
|
function LuiComboSelectActual(givenProps, ref) {
|
|
25233
25206
|
var props = Object.assign({
|
|
25234
25207
|
noOptionsMessage: function (i) {
|
|
25235
|
-
return "No options found containing '"
|
|
25236
|
-
}
|
|
25208
|
+
return "No options found containing '".concat(i.inputValue, "'");
|
|
25209
|
+
}
|
|
25237
25210
|
}, givenProps);
|
|
25238
25211
|
props.components = __assign({ LoadingIndicator: LuiLoadingIndicator }, props.components);
|
|
25239
25212
|
// box-shadow: "-8px 0px 0 0 #cc0000";
|
|
@@ -25243,12 +25216,12 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
25243
25216
|
control: function (provided, state) { return (__assign(__assign({}, provided), {
|
|
25244
25217
|
/* matches style of .LuiTextInput-input */
|
|
25245
25218
|
boxShadow: 'none', border: state.isFocused ? '1px solid #053d52' : '1px solid #b2b2b2', '&:hover, &:active': {
|
|
25246
|
-
borderColor: '#053d52'
|
|
25219
|
+
borderColor: '#053d52'
|
|
25247
25220
|
} })); },
|
|
25248
25221
|
dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: css_248z$4['fuscous'] })); },
|
|
25249
25222
|
indicatorSeparator: function (provided) { return (__assign(__assign({}, provided), { width: 0 })); },
|
|
25250
25223
|
input: function (provided) { return (__assign(__assign({}, provided), { height: '40px', minHeight: '40px', fontWeight: 400, input: {
|
|
25251
|
-
height: '38px !important'
|
|
25224
|
+
height: '38px !important'
|
|
25252
25225
|
} })); },
|
|
25253
25226
|
singleValue: function (provided) { return (__assign(__assign({}, provided), { color: '#414042', fontWeight: 400 })); },
|
|
25254
25227
|
placeholder: function (provided) { return (__assign(__assign({}, provided), {
|
|
@@ -25257,7 +25230,7 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
25257
25230
|
option: function (provided, _a) {
|
|
25258
25231
|
var isSelected = _a.isSelected;
|
|
25259
25232
|
return (__assign(__assign({}, provided), { color: css_248z$4['input-text'], backgroundColor: isSelected ? css_248z$4['selection'] : css_248z$4['white'] }));
|
|
25260
|
-
}
|
|
25233
|
+
}
|
|
25261
25234
|
} });
|
|
25262
25235
|
return (React__default["default"].createElement("label", { htmlFor: id, className: clsx('LuiComboSelect-label', props.error && 'hasError') },
|
|
25263
25236
|
React__default["default"].createElement("span", { className: clsx('LuiSelect-label-text', props.hideLabel ? 'LuiScreenReadersOnly' : '') }, props.label),
|
|
@@ -25347,7 +25320,7 @@ var buildHideClassDict = function (_a) {
|
|
|
25347
25320
|
'lui-hide-sm': inRange('sm'),
|
|
25348
25321
|
'lui-hide-md': inRange('md'),
|
|
25349
25322
|
'lui-hide-lg': inRange('lg'),
|
|
25350
|
-
'lui-hide-xl': inRange('xl')
|
|
25323
|
+
'lui-hide-xl': inRange('xl')
|
|
25351
25324
|
};
|
|
25352
25325
|
};
|
|
25353
25326
|
|
|
@@ -25367,7 +25340,7 @@ var LuiHeader = function (_a) {
|
|
|
25367
25340
|
'lui-header': true,
|
|
25368
25341
|
'lui-header-transparent': transparent,
|
|
25369
25342
|
'lui-header-small': size === 'small',
|
|
25370
|
-
'lui-header-sticky': sticky
|
|
25343
|
+
'lui-header-sticky': sticky
|
|
25371
25344
|
}) },
|
|
25372
25345
|
React__default["default"].createElement("div", { className: "lui-header-row" },
|
|
25373
25346
|
React__default["default"].createElement("div", { className: "lui-header-col" },
|
|
@@ -25387,7 +25360,7 @@ var LuiHeaderMenuItem = React.forwardRef(function (_a, ref) {
|
|
|
25387
25360
|
var resolvedIcon = !icon && !label ? 'menu' : icon;
|
|
25388
25361
|
return (React__default["default"].createElement("div", { className: menuItemClasses, ref: ref },
|
|
25389
25362
|
React__default["default"].createElement("div", { className: clsx('lui-header-menu-icon', onClick && 'clickable'), onClick: onClick, "data-testid": dataTestId },
|
|
25390
|
-
resolvedIcon && (React__default["default"].createElement("i", { className: "material-icons-round md-36" }, resolvedIcon)),
|
|
25363
|
+
resolvedIcon && (React__default["default"].createElement("i", { title: "Main menu", className: "material-icons-round md-36" }, resolvedIcon)),
|
|
25391
25364
|
label && React__default["default"].createElement("div", { className: "lui-menu-label" }, label),
|
|
25392
25365
|
badge && React__default["default"].createElement("div", { className: "badge" }, badge)),
|
|
25393
25366
|
children));
|
|
@@ -25395,7 +25368,7 @@ var LuiHeaderMenuItem = React.forwardRef(function (_a, ref) {
|
|
|
25395
25368
|
var LuiCloseableHeaderMenuContext = React.createContext({
|
|
25396
25369
|
isOpen: function () { return false; },
|
|
25397
25370
|
open: function () { },
|
|
25398
|
-
close: function () { }
|
|
25371
|
+
close: function () { }
|
|
25399
25372
|
});
|
|
25400
25373
|
var LuiCloseableHeaderMenuItem = function (_a) {
|
|
25401
25374
|
var open = _a.open, setOpen = _a.setOpen, props = __rest(_a, ["open", "setOpen"]);
|
|
@@ -25409,7 +25382,7 @@ var LuiCloseableHeaderMenuItem = function (_a) {
|
|
|
25409
25382
|
var menuControls = {
|
|
25410
25383
|
isOpen: function () { return open; },
|
|
25411
25384
|
open: function () { return setOpen(true); },
|
|
25412
|
-
close: function () { return setOpen(false); }
|
|
25385
|
+
close: function () { return setOpen(false); }
|
|
25413
25386
|
};
|
|
25414
25387
|
var menuItemProps = __assign({ onClick: function () { return menuControls.open(); } }, props);
|
|
25415
25388
|
return (React__default["default"].createElement(LuiCloseableHeaderMenuContext.Provider, { value: menuControls },
|
|
@@ -25442,8 +25415,7 @@ var LuiDrawerMenu = function (_a) {
|
|
|
25442
25415
|
var restOfProps = __rest(_a, []);
|
|
25443
25416
|
var children = restOfProps.children, _b = restOfProps.hasStickyHeader, hasStickyHeader = _b === void 0 ? true : _b, menuPropsCopy = __rest(restOfProps, ["children", "hasStickyHeader"]);
|
|
25444
25417
|
var _c = React.useState(false), open = _c[0], setOpen = _c[1];
|
|
25445
|
-
var closeableMenuProps = __assign(__assign({}, menuPropsCopy), { open: open,
|
|
25446
|
-
setOpen: setOpen, icon: open ? 'close' : 'menu', onClick: function () { return setOpen(!open); } });
|
|
25418
|
+
var closeableMenuProps = __assign(__assign({}, menuPropsCopy), { open: open, setOpen: setOpen, icon: open ? 'close' : 'menu', onClick: function () { return setOpen(!open); } });
|
|
25447
25419
|
React.useEffect(function () {
|
|
25448
25420
|
// Support for non-sticky headers. Scroll back to top when menu is opened
|
|
25449
25421
|
if (open && !hasStickyHeader) {
|
|
@@ -25460,7 +25432,7 @@ var LuiDrawerMenu = function (_a) {
|
|
|
25460
25432
|
return (React__default["default"].createElement(LuiCloseableHeaderMenuItem, __assign({}, closeableMenuProps),
|
|
25461
25433
|
React__default["default"].createElement("div", { className: clsx({
|
|
25462
25434
|
'lui-menu-drawer': true,
|
|
25463
|
-
'lui-menu-drawer-closed': !open
|
|
25435
|
+
'lui-menu-drawer-closed': !open
|
|
25464
25436
|
}), "data-testid": 'drawer', "aria-hidden": !open }, children)));
|
|
25465
25437
|
};
|
|
25466
25438
|
var LuiDropdownMenu = function (_a) {
|
|
@@ -25471,7 +25443,7 @@ var LuiDropdownMenu = function (_a) {
|
|
|
25471
25443
|
return (React__default["default"].createElement(LuiCloseableHeaderMenuItem, __assign({}, closeableMenuProps),
|
|
25472
25444
|
React__default["default"].createElement("div", { className: clsx({
|
|
25473
25445
|
'lui-menu-dropdown lui-box-shadow': true,
|
|
25474
|
-
'lui-menu-dropdown-closed': !open
|
|
25446
|
+
'lui-menu-dropdown-closed': !open
|
|
25475
25447
|
}), "data-testid": 'dropdown', "aria-hidden": !open },
|
|
25476
25448
|
children,
|
|
25477
25449
|
' ')));
|
|
@@ -27834,8 +27806,8 @@ function polyfill(Component) {
|
|
|
27834
27806
|
}
|
|
27835
27807
|
|
|
27836
27808
|
var reactLifecyclesCompat_es = /*#__PURE__*/Object.freeze({
|
|
27837
|
-
|
|
27838
|
-
|
|
27809
|
+
__proto__: null,
|
|
27810
|
+
polyfill: polyfill
|
|
27839
27811
|
});
|
|
27840
27812
|
|
|
27841
27813
|
var require$$6 = /*@__PURE__*/getAugmentedNamespace(reactLifecyclesCompat_es);
|
|
@@ -28194,7 +28166,7 @@ var LuiModal = function (props) {
|
|
|
28194
28166
|
}
|
|
28195
28167
|
}
|
|
28196
28168
|
return (React__default["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 && {
|
|
28197
|
-
parentSelector: props.appendToElement
|
|
28169
|
+
parentSelector: props.appendToElement
|
|
28198
28170
|
})),
|
|
28199
28171
|
React__default["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) },
|
|
28200
28172
|
props.headingText && (React__default["default"].createElement(LuiModalHeader, { headingText: props.headingText, onClose: props.onClose })),
|
|
@@ -28202,8 +28174,8 @@ var LuiModal = function (props) {
|
|
|
28202
28174
|
};
|
|
28203
28175
|
var LuiAlertModal = function (props) {
|
|
28204
28176
|
var materialIcon = getMaterialIconForLevel(props.level);
|
|
28205
|
-
return (React__default["default"].createElement(LuiModal, { key: props.key, shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick, onClose: props.onClose, className: clsx("lui-modal-"
|
|
28206
|
-
React__default["default"].createElement(LuiIcon, { name: "ic_"
|
|
28177
|
+
return (React__default["default"].createElement(LuiModal, { key: props.key, shouldCloseOnOverlayClick: props.shouldCloseOnOverlayClick, onClose: props.onClose, className: clsx("lui-modal-".concat(props.level), props.className), appendToElement: props.appendToElement },
|
|
28178
|
+
React__default["default"].createElement(LuiIcon, { name: "ic_".concat(materialIcon), alt: "".concat(props.level, " status icon"), size: "lg", className: "lui-msg-status-icon" }),
|
|
28207
28179
|
props.children));
|
|
28208
28180
|
};
|
|
28209
28181
|
var LuiAlertModalButtons = function (props) {
|
|
@@ -28393,7 +28365,7 @@ var LuiSearchInput = function (props) {
|
|
|
28393
28365
|
function moveUp() {
|
|
28394
28366
|
var items = flatten(results);
|
|
28395
28367
|
var takeNext = false;
|
|
28396
|
-
for (var _i = 0, _a =
|
|
28368
|
+
for (var _i = 0, _a = __spreadArray([], items, true).reverse(); _i < _a.length; _i++) {
|
|
28397
28369
|
var item = _a[_i];
|
|
28398
28370
|
if (item.id === selectedId) {
|
|
28399
28371
|
takeNext = true;
|
|
@@ -28473,7 +28445,7 @@ var LuiSearchInput = function (props) {
|
|
|
28473
28445
|
onClick: function () {
|
|
28474
28446
|
setInputValue('');
|
|
28475
28447
|
setResults([]);
|
|
28476
|
-
}
|
|
28448
|
+
}
|
|
28477
28449
|
} })) : null;
|
|
28478
28450
|
var searchIcon = (React__default["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(); } } }));
|
|
28479
28451
|
var typeMore = 'You need to type a few more characters';
|
|
@@ -28491,7 +28463,7 @@ var LuiSearchInput = function (props) {
|
|
|
28491
28463
|
return typeMore;
|
|
28492
28464
|
}
|
|
28493
28465
|
if (props.name)
|
|
28494
|
-
return "The "
|
|
28466
|
+
return "The ".concat(props.name, " could not be displayed or does not exist.");
|
|
28495
28467
|
else
|
|
28496
28468
|
return null;
|
|
28497
28469
|
}
|
|
@@ -28577,17 +28549,17 @@ var renderSelectMenu = function (items, onClick) { return (React__default["defau
|
|
|
28577
28549
|
return (React__default["default"].createElement(React__default["default"].Fragment, { key: item.value },
|
|
28578
28550
|
item.groupDivider ? React__default["default"].createElement(LuiSelectMenuDivider, null) : null,
|
|
28579
28551
|
item.groupTitle ? (React__default["default"].createElement(LuiSelectMenuHeader, null, item.groupTitle)) : null,
|
|
28580
|
-
React__default["default"].createElement(LuiSelectMenuItem, { "data-testid": "select-box-"
|
|
28552
|
+
React__default["default"].createElement(LuiSelectMenuItem, { "data-testid": "select-box-".concat(item.value), value: item.value, onClick: onClick, noPadding: true }, item.title)));
|
|
28581
28553
|
}))); };
|
|
28582
28554
|
|
|
28583
28555
|
var exampleSearchResults = [
|
|
28584
28556
|
{
|
|
28585
28557
|
id: 'DP44035-1',
|
|
28586
|
-
description: 'This is a example Newlands search result'
|
|
28558
|
+
description: 'This is a example Newlands search result'
|
|
28587
28559
|
},
|
|
28588
28560
|
{
|
|
28589
28561
|
id: 'DP44035-2',
|
|
28590
|
-
description: 'This is a example Newlands search result 2'
|
|
28562
|
+
description: 'This is a example Newlands search result 2'
|
|
28591
28563
|
},
|
|
28592
28564
|
];
|
|
28593
28565
|
var getDefaultOptions = function (input) {
|
|
@@ -28620,28 +28592,28 @@ var searchBoxOptions = [
|
|
|
28620
28592
|
disclaimer: 'This is a default disclaimer, add your own search options',
|
|
28621
28593
|
getOption: getDefaultOptions,
|
|
28622
28594
|
onSelectOption: defaultSelectOption,
|
|
28623
|
-
renderItem: defaultRenderItem
|
|
28595
|
+
renderItem: defaultRenderItem
|
|
28624
28596
|
},
|
|
28625
28597
|
{
|
|
28626
28598
|
value: 'titleReference',
|
|
28627
28599
|
title: 'Title Reference',
|
|
28628
28600
|
placeholderText: 'Enter a title reference e.g. TN117/154',
|
|
28629
28601
|
getOption: getDefaultOptions,
|
|
28630
|
-
onSelectOption: defaultSelectOption
|
|
28602
|
+
onSelectOption: defaultSelectOption
|
|
28631
28603
|
},
|
|
28632
28604
|
{
|
|
28633
28605
|
value: 'ownerName',
|
|
28634
28606
|
title: 'Registered Owner',
|
|
28635
28607
|
placeholderText: 'Enter owners name',
|
|
28636
28608
|
getOption: getDefaultOptions,
|
|
28637
|
-
onSelectOption: defaultSelectOption
|
|
28609
|
+
onSelectOption: defaultSelectOption
|
|
28638
28610
|
},
|
|
28639
28611
|
{
|
|
28640
28612
|
value: 'lgdId',
|
|
28641
28613
|
title: 'Legal Description',
|
|
28642
28614
|
placeholderText: 'Example: Lot 2 DP 1234',
|
|
28643
28615
|
getOption: getDefaultOptions,
|
|
28644
|
-
onSelectOption: defaultSelectOption
|
|
28616
|
+
onSelectOption: defaultSelectOption
|
|
28645
28617
|
},
|
|
28646
28618
|
{
|
|
28647
28619
|
value: 'parcelId',
|
|
@@ -28649,7 +28621,7 @@ var searchBoxOptions = [
|
|
|
28649
28621
|
placeholderText: 'Enter a parcel id e.g 93851642',
|
|
28650
28622
|
disclaimer: 'testdd2',
|
|
28651
28623
|
getOption: getDefaultOptions,
|
|
28652
|
-
onSelectOption: defaultSelectOption
|
|
28624
|
+
onSelectOption: defaultSelectOption
|
|
28653
28625
|
},
|
|
28654
28626
|
{
|
|
28655
28627
|
groupTitle: 'Survey',
|
|
@@ -28658,7 +28630,7 @@ var searchBoxOptions = [
|
|
|
28658
28630
|
title: 'Survey number',
|
|
28659
28631
|
placeholderText: 'Enter a survey number, e.g. DP 44035',
|
|
28660
28632
|
getOption: getDefaultOptions,
|
|
28661
|
-
onSelectOption: defaultSelectOption
|
|
28633
|
+
onSelectOption: defaultSelectOption
|
|
28662
28634
|
},
|
|
28663
28635
|
{
|
|
28664
28636
|
groupTitle: 'Instrument',
|
|
@@ -28667,7 +28639,7 @@ var searchBoxOptions = [
|
|
|
28667
28639
|
title: 'Instrument Number',
|
|
28668
28640
|
placeholderText: 'Example: 7723502.2',
|
|
28669
28641
|
getOption: getDefaultOptions,
|
|
28670
|
-
onSelectOption: defaultSelectOption
|
|
28642
|
+
onSelectOption: defaultSelectOption
|
|
28671
28643
|
},
|
|
28672
28644
|
];
|
|
28673
28645
|
var getDefaultSearchMenuOptions = function () {
|
|
@@ -28712,7 +28684,7 @@ var LOLUserContext = React__default["default"].createContext({
|
|
|
28712
28684
|
console.error('Called changeFirm before UserContext loaded', firmId);
|
|
28713
28685
|
},
|
|
28714
28686
|
isInternal: function () { return false; },
|
|
28715
|
-
hasAnyPrivilege: function () { return false; }
|
|
28687
|
+
hasAnyPrivilege: function () { return false; }
|
|
28716
28688
|
});
|
|
28717
28689
|
function LOLUserContextProvider(props) {
|
|
28718
28690
|
var _a = useGetUserInfo(), isLoading = _a.isLoading, data = _a.data, isError = _a.isError;
|
|
@@ -28793,7 +28765,7 @@ function LOLUserContextProvider(props) {
|
|
|
28793
28765
|
selectedFirm: selectedFirm,
|
|
28794
28766
|
changeFirm: changeFirm,
|
|
28795
28767
|
isInternal: isInternal,
|
|
28796
|
-
hasAnyPrivilege: hasAnyPrivilege
|
|
28768
|
+
hasAnyPrivilege: hasAnyPrivilege
|
|
28797
28769
|
} }, props.children));
|
|
28798
28770
|
}
|
|
28799
28771
|
else {
|
|
@@ -28822,8 +28794,8 @@ function useGetUserInfo() {
|
|
|
28822
28794
|
}); });
|
|
28823
28795
|
}
|
|
28824
28796
|
function reAuthUser() {
|
|
28825
|
-
var redirectPath = ""
|
|
28826
|
-
window.location.assign("/auth/login?redirectPath="
|
|
28797
|
+
var redirectPath = "".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash);
|
|
28798
|
+
window.location.assign("/auth/login?redirectPath=".concat(encodeURIComponent(redirectPath)));
|
|
28827
28799
|
}
|
|
28828
28800
|
function checkForStandardErrors(res) {
|
|
28829
28801
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -28880,7 +28852,7 @@ var LuiFilterContainer = function (props) {
|
|
|
28880
28852
|
return (React__default["default"].createElement("div", null,
|
|
28881
28853
|
showFilter && (React__default["default"].createElement("div", { className: 'LuiFilterContainer-filter-container LuiDeprecatedForms' },
|
|
28882
28854
|
isFilterClearable && (React__default["default"].createElement(ClearableLuiTextInput, { label: 'Filter', inputProps: {
|
|
28883
|
-
placeholder: 'Type to filter'
|
|
28855
|
+
placeholder: 'Type to filter'
|
|
28884
28856
|
}, hideLabel: true, onValueChange: function (value) { return setFilter(value); } })),
|
|
28885
28857
|
!isFilterClearable && (React__default["default"].createElement("input", { type: "text", placeholder: "Type to filter", value: filter, onChange: function (e) { return setFilter(e.target.value); } })))),
|
|
28886
28858
|
renderFunction(filterFunction(filter))));
|
|
@@ -28893,7 +28865,7 @@ var LOLGlobalClientRefContext = React__default["default"].createContext({
|
|
|
28893
28865
|
clientRef: '',
|
|
28894
28866
|
changeClientRef: function () {
|
|
28895
28867
|
// no-op
|
|
28896
|
-
}
|
|
28868
|
+
}
|
|
28897
28869
|
});
|
|
28898
28870
|
var LOLGlobalClientRefContextProvider = function (props) {
|
|
28899
28871
|
var useUserIdAsClientReference = props.useUserIdAsClientReference;
|
|
@@ -28938,7 +28910,7 @@ var LOLGlobalClientRefContextProvider = function (props) {
|
|
|
28938
28910
|
]);
|
|
28939
28911
|
return (React__default["default"].createElement(LOLGlobalClientRefContext.Provider, { value: {
|
|
28940
28912
|
clientRef: clientRef,
|
|
28941
|
-
changeClientRef: changeClientRef
|
|
28913
|
+
changeClientRef: changeClientRef
|
|
28942
28914
|
} }, props.children));
|
|
28943
28915
|
};
|
|
28944
28916
|
var GLOBAL_CLIENT_REFERENCE_KEY = 'globalClientReference';
|
|
@@ -28991,7 +28963,7 @@ var LOLFirmSwitcherMenuContent = function (_a) {
|
|
|
28991
28963
|
};
|
|
28992
28964
|
var FirmOption = function (_a) {
|
|
28993
28965
|
var _b = _a.value, id = _b.id, name = _b.name, onSelect = _a.onSelect, selected = _a.selected, disabled = _a.disabled;
|
|
28994
|
-
return (React__default["default"].createElement("div", { className: 'LOLFirmSwitcherMenu-option', onClick: function () { return onSelect(id); }, "aria-disabled": disabled, "data-testid": "firm-"
|
|
28966
|
+
return (React__default["default"].createElement("div", { className: 'LOLFirmSwitcherMenu-option', onClick: function () { return onSelect(id); }, "aria-disabled": disabled, "data-testid": "firm-".concat(id) },
|
|
28995
28967
|
React__default["default"].createElement("span", null, name),
|
|
28996
28968
|
selected && React__default["default"].createElement("i", { className: "material-icons-round" }, "check_circle")));
|
|
28997
28969
|
};
|
|
@@ -29051,13 +29023,13 @@ var LOLLogoutLink = function (props) {
|
|
|
29051
29023
|
case 3:
|
|
29052
29024
|
res = _b.sent();
|
|
29053
29025
|
if (res.status === 200) {
|
|
29054
|
-
window.location.assign("/auth/login?redirectPath="
|
|
29026
|
+
window.location.assign("/auth/login?redirectPath=".concat(redirectPathString));
|
|
29055
29027
|
}
|
|
29056
29028
|
return [2 /*return*/];
|
|
29057
29029
|
}
|
|
29058
29030
|
});
|
|
29059
29031
|
}); };
|
|
29060
|
-
return React__default["default"].createElement(LuiDrawerMenuOption, { label: "Logout "
|
|
29032
|
+
return React__default["default"].createElement(LuiDrawerMenuOption, { label: "Logout ".concat(user.id), onClick: logout });
|
|
29061
29033
|
};
|
|
29062
29034
|
|
|
29063
29035
|
var LOLUserLastLogin = function () {
|
|
@@ -29148,7 +29120,7 @@ function createLink(pathname, label, target, activeIcon, icon, anyPrivileges) {
|
|
|
29148
29120
|
activeIcon: activeIcon,
|
|
29149
29121
|
active: pathname.startsWith(target),
|
|
29150
29122
|
anyPrivileges: anyPrivileges,
|
|
29151
|
-
openExternally: true
|
|
29123
|
+
openExternally: true
|
|
29152
29124
|
};
|
|
29153
29125
|
}
|
|
29154
29126
|
var SEARCH_LABEL = 'Search';
|
|
@@ -29252,7 +29224,7 @@ var LOLCommonDrawerMenuAfterLinks = function (props) {
|
|
|
29252
29224
|
};
|
|
29253
29225
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
29254
29226
|
!isInternal() && (React__default["default"].createElement(LuiDrawerMenuOption, { label: "Change password", onClick: function () {
|
|
29255
|
-
gotoLink("/manage/my-preferences?redirectPath="
|
|
29227
|
+
gotoLink("/manage/my-preferences?redirectPath=".concat(encodeURIComponent(path)));
|
|
29256
29228
|
} })),
|
|
29257
29229
|
React__default["default"].createElement(LOLLogoutLink, { redirectPath: function () { return contextPath; } })));
|
|
29258
29230
|
};
|
|
@@ -32798,19 +32770,19 @@ var id = 0;
|
|
|
32798
32770
|
var getKey = function () { return id++; };
|
|
32799
32771
|
var LuiTooltip = function (props) {
|
|
32800
32772
|
var children = props.children, message = props.message, placement = props.placement, trigger = props.trigger, _a = props.animation, animation = _a === void 0 ? true : _a;
|
|
32801
|
-
var id = "LuiToolTip_"
|
|
32773
|
+
var id = "LuiToolTip_".concat(React.useMemo(getKey, []));
|
|
32802
32774
|
if (typeof message !== 'string') {
|
|
32803
32775
|
throw new Error('LuiTooltip message must be a string!');
|
|
32804
32776
|
}
|
|
32805
32777
|
React.useEffect(function () {
|
|
32806
|
-
tippy("#"
|
|
32778
|
+
tippy("#".concat(id), {
|
|
32807
32779
|
content: message,
|
|
32808
32780
|
arrow: true,
|
|
32809
32781
|
trigger: trigger,
|
|
32810
32782
|
theme: 'LUI',
|
|
32811
32783
|
placement: placement,
|
|
32812
32784
|
offset: [0, 24],
|
|
32813
|
-
animation: animation
|
|
32785
|
+
animation: animation
|
|
32814
32786
|
});
|
|
32815
32787
|
return function () {
|
|
32816
32788
|
var _a, _b;
|
|
@@ -32875,7 +32847,7 @@ var LuiSidePanelContainer = function (props) {
|
|
|
32875
32847
|
transition: 'width 0.2s ease',
|
|
32876
32848
|
boxShadow: '-0.1em 0 0.4em rgba(0, 0, 0, 0.2)',
|
|
32877
32849
|
padding: 0,
|
|
32878
|
-
zIndex: 3
|
|
32850
|
+
zIndex: 3
|
|
32879
32851
|
} },
|
|
32880
32852
|
children && (React__default["default"].createElement("button", { type: "button", "data-testid": "close", onClick: onClose, style: {
|
|
32881
32853
|
color: '#5e5e61',
|
|
@@ -32886,7 +32858,7 @@ var LuiSidePanelContainer = function (props) {
|
|
|
32886
32858
|
border: 'none',
|
|
32887
32859
|
display: 'flex',
|
|
32888
32860
|
cursor: 'pointer',
|
|
32889
|
-
borderBottomLeftRadius: '5px'
|
|
32861
|
+
borderBottomLeftRadius: '5px'
|
|
32890
32862
|
} },
|
|
32891
32863
|
React__default["default"].createElement(LuiIcon, { alt: "Close", name: "ic_clear", size: "lg", status: "interactive" }))),
|
|
32892
32864
|
children));
|
|
@@ -40471,7 +40443,7 @@ var LuiAccordicard = function (props) {
|
|
|
40471
40443
|
var _a = props.defaultToOpen, defaultToOpen = _a === void 0 ? false : _a, children = props.children, headerContent = props.headerContent;
|
|
40472
40444
|
var _b = React.useState(defaultToOpen), isOpen = _b[0], setIsOpen = _b[1];
|
|
40473
40445
|
var AccordicardContent = function () {
|
|
40474
|
-
return (React__default["default"].createElement(motion.div, { key: "content", initial: ['collapsed'], animate: "open", exit: "collapsed", variants: {
|
|
40446
|
+
return (React__default["default"].createElement(motion.div, { className: "LuiAccordicard-contentWrapper", key: "content", initial: ['collapsed'], animate: "open", exit: "collapsed", variants: {
|
|
40475
40447
|
open: {
|
|
40476
40448
|
opacity: 1,
|
|
40477
40449
|
height: 'auto',
|
|
@@ -40479,14 +40451,14 @@ var LuiAccordicard = function (props) {
|
|
|
40479
40451
|
opacity: {
|
|
40480
40452
|
delay: 0.1,
|
|
40481
40453
|
duration: 0.6,
|
|
40482
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40454
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40483
40455
|
},
|
|
40484
40456
|
height: {
|
|
40485
40457
|
delay: 0,
|
|
40486
40458
|
duration: 0.2,
|
|
40487
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40488
|
-
}
|
|
40489
|
-
}
|
|
40459
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40460
|
+
}
|
|
40461
|
+
}
|
|
40490
40462
|
},
|
|
40491
40463
|
collapsed: {
|
|
40492
40464
|
opacity: 0,
|
|
@@ -40495,19 +40467,21 @@ var LuiAccordicard = function (props) {
|
|
|
40495
40467
|
opacity: {
|
|
40496
40468
|
delay: 0,
|
|
40497
40469
|
duration: 0.2,
|
|
40498
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40470
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40499
40471
|
},
|
|
40500
40472
|
height: {
|
|
40501
40473
|
delay: 0.1,
|
|
40502
40474
|
duration: 0.2,
|
|
40503
|
-
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40504
|
-
}
|
|
40505
|
-
}
|
|
40506
|
-
}
|
|
40475
|
+
ease: [0.04, 0.62, 0.23, 0.98]
|
|
40476
|
+
}
|
|
40477
|
+
}
|
|
40478
|
+
}
|
|
40507
40479
|
} },
|
|
40508
40480
|
React__default["default"].createElement("div", { className: clsx('LuiAccordicard-content', isOpen ? 'LuiAccordicard-content--isOpen' : null) }, isOpen ? children : React__default["default"].createElement(React__default["default"].Fragment, null))));
|
|
40509
40481
|
};
|
|
40510
|
-
return (React__default["default"].createElement(motion.div, { initial: false, className: clsx('LuiAccordicard', props.className, isOpen ? 'LuiAccordicard--isOpen' : null) },
|
|
40482
|
+
return (React__default["default"].createElement(motion.div, { initial: false, className: clsx('LuiAccordicard', props.className, isOpen ? 'LuiAccordicard--isOpen' : null, props.warning ? 'LuiAccordicard--warning' : null) },
|
|
40483
|
+
props.warning && (React__default["default"].createElement("div", { className: "LuiAccordicard-sideBar" },
|
|
40484
|
+
React__default["default"].createElement(LuiIcon, { className: "LuiAccordicard-warningIcon", alt: "Accordicard warning", name: 'ic_warning', size: 'md' }))),
|
|
40511
40485
|
React__default["default"].createElement(motion.header, { layout: true, initial: false, className: "LuiAccordicard-header" },
|
|
40512
40486
|
React__default["default"].createElement("div", { className: "LuiAccordicard-headerContent" }, headerContent)),
|
|
40513
40487
|
React__default["default"].createElement(AnimatePresence, { initial: false }, isOpen && React__default["default"].createElement(AccordicardContent, null)),
|
|
@@ -40518,13 +40492,15 @@ var LuiAccordicard = function (props) {
|
|
|
40518
40492
|
var LuiAccordicardStatic = function (props) {
|
|
40519
40493
|
var _a = props.defaultToOpen, defaultToOpen = _a === void 0 ? false : _a, children = props.children, headerContent = props.headerContent;
|
|
40520
40494
|
var _b = React.useState(defaultToOpen), isOpen = _b[0], setIsOpen = _b[1];
|
|
40521
|
-
return (React__default["default"].createElement("div", { className: clsx('LuiAccordicardStatic', isOpen ? 'LuiAccordicardStatic--isOpen' : null, props.className) },
|
|
40495
|
+
return (React__default["default"].createElement("div", { className: clsx('LuiAccordicardStatic', isOpen ? 'LuiAccordicardStatic--isOpen' : null, props.warning ? 'LuiAccordicardStatic--warning' : null, props.className) },
|
|
40496
|
+
props.warning && (React__default["default"].createElement("div", { className: "LuiAccordicardStatic-sideBar" },
|
|
40497
|
+
React__default["default"].createElement(LuiIcon, { className: "LuiAccordicardStatic-warningIcon", alt: "Accordicard warning", name: 'ic_warning', size: 'md' }))),
|
|
40522
40498
|
React__default["default"].createElement("div", { className: "LuiAccordicardStatic-header" },
|
|
40523
40499
|
React__default["default"].createElement("div", { className: "LuiAccordicardStatic-headerContent" }, headerContent)),
|
|
40524
40500
|
React__default["default"].createElement("div", { className: clsx('LuiAccordicardStatic-contentWrapper', isOpen ? 'LuiAccordicardStatic-contentWrapper--isOpen' : null) },
|
|
40525
40501
|
React__default["default"].createElement("div", { className: clsx('LuiAccordicardStatic-content', isOpen ? 'LuiAccordicardStatic-content--isOpen' : null) }, isOpen ? children : React__default["default"].createElement(React__default["default"].Fragment, null))),
|
|
40526
40502
|
React__default["default"].createElement("button", { "aria-label": isOpen ? 'Expanded' : 'Closed', className: "LuiAccordicardStatic-trigger", onClick: function () { return setIsOpen(!isOpen); } },
|
|
40527
|
-
React__default["default"].createElement(LuiIcon, { className: clsx('LuiAccordicardStatic-chevron', isOpen ? 'LuiAccordicardStatic-chevron--isOpen' : null), name: 'ic_expand_more', alt: "expand", size: "md" }))));
|
|
40503
|
+
React__default["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" }))));
|
|
40528
40504
|
};
|
|
40529
40505
|
|
|
40530
40506
|
exports.FIRM_KEY = FIRM_KEY;
|