@linzjs/lui 16.2.7 → 16.3.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 +21 -0
- package/dist/assets/icons/add_adopt.svg +1 -0
- package/dist/assets/icons/log_out.svg +1 -0
- package/dist/assets/icons/parcels_existing.svg +1 -1
- package/dist/assets/icons/parcels_new.svg +1 -1
- package/dist/assets/svg-content.tsx +14 -2
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +8 -5
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# [16.3.0](https://github.com/linz/lui/compare/v16.2.9...v16.3.0) (2022-05-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **LuiCheckboxInput:** Adds indeterminate state for checkbox ([#656](https://github.com/linz/lui/issues/656)) ([e55d806](https://github.com/linz/lui/commit/e55d8061e2d9e04fdde1c80fadca3c77bf9d7436))
|
|
7
|
+
|
|
8
|
+
## [16.2.9](https://github.com/linz/lui/compare/v16.2.8...v16.2.9) (2022-04-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **LuiShadow:** LuiShadow will be exported in the index.tsx ([#654](https://github.com/linz/lui/issues/654)) ([b188613](https://github.com/linz/lui/commit/b18861316e693138880177b0a1311b9effd7e3c4))
|
|
14
|
+
|
|
15
|
+
## [16.2.8](https://github.com/linz/lui/compare/v16.2.7...v16.2.8) (2022-04-13)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* LuiExport update 130422 ([#650](https://github.com/linz/lui/issues/650)) ([8484081](https://github.com/linz/lui/commit/84840817e6acaa239e0d956ac58d458981d42982))
|
|
21
|
+
|
|
1
22
|
## [16.2.7](https://github.com/linz/lui/compare/v16.2.6...v16.2.7) (2022-04-03)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16H5V5h14v14Zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4v4Z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m17 8-1.41 1.41L17.17 11H9v2h8.17l-1.58 1.58L17 16l4-4-4-4ZM5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5V5Z" /></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 11h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2ZM5 21h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2ZM13 5v4c0 1.1.9 2 2 2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2ZM15 21h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2Z" fill="#000"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3 3v8h8V3H3Zm6 6H5V5h4v4Zm-6 4v8h8v-8H3Zm6 6H5v-4h4v4Zm4-16v8h8V3h-8Zm6 6h-4V5h4v4Zm-6 4v8h8v-8h-8Zm6 6h-4v-4h4v4Z" /></svg>
|
|
@@ -27,6 +27,12 @@ iconMap['ic_add'] = (
|
|
|
27
27
|
</svg>
|
|
28
28
|
);
|
|
29
29
|
|
|
30
|
+
iconMap['ic_add_adopt'] = (
|
|
31
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
32
|
+
<path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16H5V5h14v14Zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4v4Z" />
|
|
33
|
+
</svg>
|
|
34
|
+
);
|
|
35
|
+
|
|
30
36
|
iconMap['ic_add_area_interest'] = (
|
|
31
37
|
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
32
38
|
<path d="M5 14H3v4c0 1.1.9 2 2 2h4v-2H5v-4Zm0-8h4V4H5c-1.1 0-2 .9-2 2v4h2V6Zm14-2h-4v2h4v4h2V6c0-1.1-.9-2-2-2Zm0 14h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4Zm-3.98-7H13V8.98c0-.54-.44-.98-.98-.98h-.03c-.55 0-.99.44-.99.98V11H8.99c-.54 0-.98.44-.99.98v.03c0 .55.44.99.99.99H11v2.01c0 .54.44.99.99.98h.03c.54 0 .98-.44.98-.98V13h2.02c.54 0 .98-.44.98-.98v-.04c0-.54-.44-.98-.98-.98Z" />
|
|
@@ -408,6 +414,12 @@ iconMap['ic_lock'] = (
|
|
|
408
414
|
</svg>
|
|
409
415
|
);
|
|
410
416
|
|
|
417
|
+
iconMap['ic_log_out'] = (
|
|
418
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
419
|
+
<path d="m17 8-1.41 1.41L17.17 11H9v2h8.17l-1.58 1.58L17 16l4-4-4-4ZM5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5V5Z" />
|
|
420
|
+
</svg>
|
|
421
|
+
);
|
|
422
|
+
|
|
411
423
|
iconMap['ic_manage_adjust'] = (
|
|
412
424
|
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
413
425
|
<path d="M13.02 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.42-1.43a7.941 7.941 0 0 1-3.9 1.62ZM4.03 12c0-4.05 3.03-7.41 6.95-7.93V2.05C5.95 2.58 2.03 6.84 2.03 12c0 5.16 3.92 9.42 8.95 9.95v-2.02c-3.92-.52-6.95-3.88-6.95-7.93Zm15.92-1h2.02c-.2-2.01-1-3.84-2.21-5.32l-1.43 1.43c.86 1.1 1.44 2.43 1.62 3.89Zm-1.61-6.74a9.981 9.981 0 0 0-5.32-2.21v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43Zm-.01 12.64 1.43 1.42A9.949 9.949 0 0 0 21.97 13h-2.02a7.941 7.941 0 0 1-1.62 3.9Z" />
|
|
@@ -485,13 +497,13 @@ iconMap['ic_order_history'] = (
|
|
|
485
497
|
|
|
486
498
|
iconMap['ic_parcels_existing'] = (
|
|
487
499
|
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
488
|
-
<path d="
|
|
500
|
+
<path d="M5 11h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2ZM5 21h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2ZM13 5v4c0 1.1.9 2 2 2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2ZM15 21h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2Z" />
|
|
489
501
|
</svg>
|
|
490
502
|
);
|
|
491
503
|
|
|
492
504
|
iconMap['ic_parcels_new'] = (
|
|
493
505
|
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
494
|
-
<path d="
|
|
506
|
+
<path d="M3 3v8h8V3H3Zm6 6H5V5h4v4Zm-6 4v8h8v-8H3Zm6 6H5v-4h4v4Zm4-16v8h8V3h-8Zm6 6h-4V5h4v4Zm-6 4v8h8v-8h-8Zm6 6h-4v-4h4v4Z" />
|
|
495
507
|
</svg>
|
|
496
508
|
);
|
|
497
509
|
|
|
@@ -5,6 +5,7 @@ export interface LuiCheckboxProps {
|
|
|
5
5
|
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
6
|
isChecked: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
|
+
isIndeterminate?: boolean;
|
|
8
9
|
error?: string;
|
|
9
10
|
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
10
11
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,3 +49,4 @@ export { LOLCommonDrawerMenu, LOLCommonDrawerMenuAfterLinks, LOLDrawerMenu, } fr
|
|
|
49
49
|
export { LuiTooltip, ILuiTooltipProperties, } from './components/LuiTooltip/LuiTooltip';
|
|
50
50
|
export * from './hooks';
|
|
51
51
|
export { LuiBadge } from './components/LuiBadge/LuiBadge';
|
|
52
|
+
export { LuiShadow } from './components/LuiShadow/LuiShadow';
|
package/dist/index.js
CHANGED
|
@@ -156,6 +156,8 @@ iconMap['ic_account_circle'] = (React__default["default"].createElement("svg", {
|
|
|
156
156
|
React__default["default"].createElement("path", { d: "M12 19.219q1.594 0 3.352-.938T18 15.984q-.047-1.313-2.109-2.203T12 12.89t-3.891.867T6 15.984q.891 1.359 2.648 2.297t3.352.938zm0-14.203q-1.219 0-2.109.891T9 8.016t.891 2.109 2.109.891 2.109-.891T15 8.016t-.891-2.109T12 5.016zm0-3q4.125 0 7.055 2.93t2.93 7.055-2.93 7.055T12 21.986t-7.055-2.93-2.93-7.055 2.93-7.055T12 2.016z" })));
|
|
157
157
|
iconMap['ic_add'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
158
158
|
React__default["default"].createElement("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z" })));
|
|
159
|
+
iconMap['ic_add_adopt'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
160
|
+
React__default["default"].createElement("path", { d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16H5V5h14v14Zm-8-2h2v-4h4v-2h-4V7h-2v4H7v2h4v4Z" })));
|
|
159
161
|
iconMap['ic_add_area_interest'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
160
162
|
React__default["default"].createElement("path", { d: "M5 14H3v4c0 1.1.9 2 2 2h4v-2H5v-4Zm0-8h4V4H5c-1.1 0-2 .9-2 2v4h2V6Zm14-2h-4v2h4v4h2V6c0-1.1-.9-2-2-2Zm0 14h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4Zm-3.98-7H13V8.98c0-.54-.44-.98-.98-.98h-.03c-.55 0-.99.44-.99.98V11H8.99c-.54 0-.98.44-.99.98v.03c0 .55.44.99.99.99H11v2.01c0 .54.44.99.99.98h.03c.54 0 .98-.44.98-.98V13h2.02c.54 0 .98-.44.98-.98v-.04c0-.54-.44-.98-.98-.98Z" })));
|
|
161
163
|
iconMap['ic_add_circle'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -285,6 +287,8 @@ iconMap['ic_locate'] = (React__default["default"].createElement("svg", { viewBox
|
|
|
285
287
|
React__default["default"].createElement("path", { d: "M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4Zm8.94 3A8.994 8.994 0 0 0 13 3.06V2c0-.55-.45-1-1-1s-1 .45-1 1v1.06A8.994 8.994 0 0 0 3.06 11H2c-.55 0-1 .45-1 1s.45 1 1 1h1.06A8.994 8.994 0 0 0 11 20.94V22c0 .55.45 1 1 1s1-.45 1-1v-1.06A8.994 8.994 0 0 0 20.94 13H22c.55 0 1-.45 1-1s-.45-1-1-1h-1.06ZM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7Z" })));
|
|
286
288
|
iconMap['ic_lock'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 22" },
|
|
287
289
|
React__default["default"].createElement("path", { d: "M14 7.5h-1v-2c0-2.76-2.24-5-5-5s-5 2.24-5 5v2H2c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-10c0-1.1-.9-2-2-2Zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm3.1-9H4.9v-2c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2Z" })));
|
|
290
|
+
iconMap['ic_log_out'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
291
|
+
React__default["default"].createElement("path", { d: "m17 8-1.41 1.41L17.17 11H9v2h8.17l-1.58 1.58L17 16l4-4-4-4ZM5 5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7v-2H5V5Z" })));
|
|
288
292
|
iconMap['ic_manage_adjust'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
289
293
|
React__default["default"].createElement("path", { d: "M13.02 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.42-1.43a7.941 7.941 0 0 1-3.9 1.62ZM4.03 12c0-4.05 3.03-7.41 6.95-7.93V2.05C5.95 2.58 2.03 6.84 2.03 12c0 5.16 3.92 9.42 8.95 9.95v-2.02c-3.92-.52-6.95-3.88-6.95-7.93Zm15.92-1h2.02c-.2-2.01-1-3.84-2.21-5.32l-1.43 1.43c.86 1.1 1.44 2.43 1.62 3.89Zm-1.61-6.74a9.981 9.981 0 0 0-5.32-2.21v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43Zm-.01 12.64 1.43 1.42A9.949 9.949 0 0 0 21.97 13h-2.02a7.941 7.941 0 0 1-1.62 3.9Z" }),
|
|
290
294
|
React__default["default"].createElement("path", { d: "M12 7c2.1 0 4 1.61 4 4.1 0 1.66-1.33 3.63-4 5.9-2.67-2.27-4-4.24-4-5.9C8 8.61 9.9 7 12 7Zm-1.07 3.93a1.071 1.071 0 0 0 2.14 0 1.071 1.071 0 0 0-2.14 0Z" })));
|
|
@@ -313,9 +317,9 @@ iconMap['ic_order_history'] = (React__default["default"].createElement("svg", {
|
|
|
313
317
|
React__default["default"].createElement("path", { d: "M6 19h4.813c.237.732.6 1.407 1.063 2H5c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v7.232a6.456 6.456 0 0 0-2-.656V5H6v14Z" }),
|
|
314
318
|
React__default["default"].createElement("path", { d: "M12 17c0-2.76 2.24-5 5-5s5 2.24 5 5-2.24 5-5 5-5-2.24-5-5Zm4.64.35L18.29 19a.495.495 0 1 0 .7-.7l-1.5-1.5v-2.29c0-.28-.22-.5-.5-.5s-.5.22-.5.5V17c0 .13.06.26.15.35Z" })));
|
|
315
319
|
iconMap['ic_parcels_existing'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
316
|
-
React__default["default"].createElement("path", { d: "
|
|
320
|
+
React__default["default"].createElement("path", { d: "M5 11h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2ZM5 21h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2ZM13 5v4c0 1.1.9 2 2 2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2ZM15 21h4c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2Z" })));
|
|
317
321
|
iconMap['ic_parcels_new'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
318
|
-
React__default["default"].createElement("path", { d: "
|
|
322
|
+
React__default["default"].createElement("path", { d: "M3 3v8h8V3H3Zm6 6H5V5h4v4Zm-6 4v8h8v-8H3Zm6 6H5v-4h4v4Zm4-16v8h8V3h-8Zm6 6h-4V5h4v4Zm-6 4v8h8v-8h-8Zm6 6h-4v-4h4v4Z" })));
|
|
319
323
|
iconMap['ic_pen_and_paper_sign'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
320
324
|
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" })));
|
|
321
325
|
iconMap['ic_people_outline'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -896,8 +900,7 @@ var LuiCheckboxInput = function (props) {
|
|
|
896
900
|
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)),
|
|
897
901
|
React__default["default"].createElement("span", { className: "LuiCheckboxInput-label" },
|
|
898
902
|
props.label,
|
|
899
|
-
' ',
|
|
900
|
-
React__default["default"].createElement(LuiIcon, { name: "ic_check", size: "md", alt: "Check", className: "LuiCheckboxInput-labelCheck" }))),
|
|
903
|
+
React__default["default"].createElement(LuiIcon, { name: props.isIndeterminate ? 'ic_zoom_out' : 'ic_check', size: "md", alt: props.isIndeterminate ? 'Indeterminate Check' : 'Check', className: "LuiCheckboxInput-labelCheck" }))),
|
|
901
904
|
props.error && (React__default["default"].createElement(LuiError, { className: "LuiCheckboxInput", error: props.error }))));
|
|
902
905
|
};
|
|
903
906
|
|
|
@@ -59890,6 +59893,7 @@ exports.LuiMiniSpinner = LuiMiniSpinner;
|
|
|
59890
59893
|
exports.LuiModal = LuiModal;
|
|
59891
59894
|
exports.LuiRadioInput = LuiRadioInput;
|
|
59892
59895
|
exports.LuiSelectInput = LuiSelectInput;
|
|
59896
|
+
exports.LuiShadow = LuiShadow;
|
|
59893
59897
|
exports.LuiStaticMessage = LuiStaticMessage;
|
|
59894
59898
|
exports.LuiStatusSpinner = LuiStatusSpinner;
|
|
59895
59899
|
exports.LuiTab = LuiTab;
|