@linzjs/lui 21.38.1 → 21.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/assets/icons/pointer_outlined.svg +1 -0
- package/dist/assets/svg-content.d.ts +1 -1
- package/dist/assets/svg-content.tsx +12 -0
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +9 -4
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/lui.esm.js
CHANGED
|
@@ -567,6 +567,8 @@ iconMap['ic_placeholder'] = (React__default.createElement("svg", { viewBox: "0 0
|
|
|
567
567
|
iconMap['ic_plan_generation'] = (React__default.createElement("svg", { viewBox: "0 0 24 24" },
|
|
568
568
|
React__default.createElement("g", null,
|
|
569
569
|
React__default.createElement("path", { d: "M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 14H3V6h18zm-6.5-7L11 15.51 8.5 12.5 5 17h14z" }))));
|
|
570
|
+
iconMap['ic_pointer_outlined'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
571
|
+
React__default.createElement("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M19.2254 15.7324L14.2019 10.7768L20 8.82125L4 3.99902L8.80221 19.999L10.7054 14.2212L15.7068 19.2657L19.2254 15.7324ZM10.1081 11.5323L15.707 17.2212L17.1676 15.7767L11.5244 10.1101L15.1537 8.91008L6.19107 6.22119L8.89093 15.2212L10.1081 11.5323Z", fill: "currentColor" })));
|
|
570
572
|
iconMap['ic_plus_one'] = (React__default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
571
573
|
React__default.createElement("g", null,
|
|
572
574
|
React__default.createElement("path", { d: "M10 8H8v4H4v2h4v4h2v-4h4v-2h-4V8Zm4.5-1.92V7.9l2.5-.5V18h2V5l-4.5 1.08Z" }))));
|
|
@@ -42235,6 +42237,11 @@ var LuiModalV2 = function (props) {
|
|
|
42235
42237
|
var showHelpButton = Boolean(props.helpLink);
|
|
42236
42238
|
var showButtons = showCloseButton || showHelpButton;
|
|
42237
42239
|
var showHeadingIcon = props.headingIcon && !props.isLoading;
|
|
42240
|
+
// this is here for the tests
|
|
42241
|
+
useEffect(function () {
|
|
42242
|
+
if (isProcess && !isTest)
|
|
42243
|
+
Modal.setAppElement('#root');
|
|
42244
|
+
}, []);
|
|
42238
42245
|
return (React__default.createElement(Modal, { key: props.key, isOpen: true,
|
|
42239
42246
|
// disble the `shouldClose` props as we handle them ourselves
|
|
42240
42247
|
shouldCloseOnOverlayClick: false, shouldCloseOnEsc: false, overlayClassName: "modal", className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim',
|
|
@@ -42275,10 +42282,8 @@ var HeaderTitle = function (props) {
|
|
|
42275
42282
|
return createPortal(React__default.createElement("h2", { className: clsx('lui-modal-v2-header-title lui-modal-v2-header-title-portal', props.className) }, props.children), target);
|
|
42276
42283
|
};
|
|
42277
42284
|
LuiModalV2.HeaderTitle = HeaderTitle;
|
|
42278
|
-
|
|
42279
|
-
var isTest =
|
|
42280
|
-
if (!isTest)
|
|
42281
|
-
Modal.setAppElement('#root');
|
|
42285
|
+
var isProcess = typeof process !== 'undefined';
|
|
42286
|
+
var isTest = isProcess && ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'test';
|
|
42282
42287
|
|
|
42283
42288
|
var LuiAlertModalV2 = function (props) {
|
|
42284
42289
|
var level = props.level, className = props.className, children = props.children, rest = __rest(props, ["level", "className", "children"]);
|