@linzjs/lui 15.1.8 → 15.1.9
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 +7 -0
- package/dist/components/LuiBanner/LuiBanner.d.ts +1 -0
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.d.ts +1 -0
- package/dist/index.js +59 -59
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +44 -44
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [15.1.9](https://github.com/linz/lui/compare/v15.1.8...v15.1.9) (2022-03-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* adding classname things to banner and checkbox ([#613](https://github.com/linz/lui/issues/613)) ([b8c097e](https://github.com/linz/lui/commit/b8c097e9d33c4ed2479e6780295ad55c79bde63c))
|
|
7
|
+
|
|
1
8
|
## [15.1.8](https://github.com/linz/lui/compare/v15.1.7...v15.1.8) (2022-03-09)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
declare type Props = {
|
|
3
3
|
level: 'success' | 'info' | 'warning' | 'error';
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const LuiBanner: (props: Props) => JSX.Element;
|
|
7
8
|
export declare const LuiBannerContent: (props: Props) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -11,29 +11,70 @@ var reactQuery = require('react-query');
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
if (e && e.__esModule) return e;
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
Object.keys(e).forEach(function (k) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return e[k]; }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
n["default"] = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
32
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
33
|
var lottie__default = /*#__PURE__*/_interopDefaultLegacy(lottie);
|
|
34
34
|
|
|
35
|
+
function toVal(mix) {
|
|
36
|
+
var k, y, str='';
|
|
37
|
+
|
|
38
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
39
|
+
str += mix;
|
|
40
|
+
} else if (typeof mix === 'object') {
|
|
41
|
+
if (Array.isArray(mix)) {
|
|
42
|
+
for (k=0; k < mix.length; k++) {
|
|
43
|
+
if (mix[k]) {
|
|
44
|
+
if (y = toVal(mix[k])) {
|
|
45
|
+
str && (str += ' ');
|
|
46
|
+
str += y;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
for (k in mix) {
|
|
52
|
+
if (mix[k]) {
|
|
53
|
+
str && (str += ' ');
|
|
54
|
+
str += k;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return str;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function clsx () {
|
|
64
|
+
var i=0, tmp, x, str='';
|
|
65
|
+
while (i < arguments.length) {
|
|
66
|
+
if (tmp = arguments[i++]) {
|
|
67
|
+
if (x = toVal(tmp)) {
|
|
68
|
+
str && (str += ' ');
|
|
69
|
+
str += x;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return str;
|
|
74
|
+
}
|
|
75
|
+
|
|
35
76
|
var LuiBanner = function (props) {
|
|
36
|
-
return (React__default["default"].createElement("div", { className:
|
|
77
|
+
return (React__default["default"].createElement("div", { className: clsx('lui-msg-banner-container', props.className) },
|
|
37
78
|
React__default["default"].createElement(LuiBannerContent, { level: props.level }, props.children)));
|
|
38
79
|
};
|
|
39
80
|
var LuiBannerContent = function (props) {
|
|
@@ -143,47 +184,6 @@ function __generator(thisArg, body) {
|
|
|
143
184
|
}
|
|
144
185
|
}
|
|
145
186
|
|
|
146
|
-
function toVal(mix) {
|
|
147
|
-
var k, y, str='';
|
|
148
|
-
|
|
149
|
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
150
|
-
str += mix;
|
|
151
|
-
} else if (typeof mix === 'object') {
|
|
152
|
-
if (Array.isArray(mix)) {
|
|
153
|
-
for (k=0; k < mix.length; k++) {
|
|
154
|
-
if (mix[k]) {
|
|
155
|
-
if (y = toVal(mix[k])) {
|
|
156
|
-
str && (str += ' ');
|
|
157
|
-
str += y;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
} else {
|
|
162
|
-
for (k in mix) {
|
|
163
|
-
if (mix[k]) {
|
|
164
|
-
str && (str += ' ');
|
|
165
|
-
str += k;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
return str;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function clsx () {
|
|
175
|
-
var i=0, tmp, x, str='';
|
|
176
|
-
while (i < arguments.length) {
|
|
177
|
-
if (tmp = arguments[i++]) {
|
|
178
|
-
if (x = toVal(tmp)) {
|
|
179
|
-
str && (str += ' ');
|
|
180
|
-
str += x;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return str;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
187
|
var PlainButton = React__default["default"].forwardRef(function (props, ref) {
|
|
188
188
|
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-" + props.level, "lui-button-" + props.size, props.className), "data-testid": props['data-testid'], style: props.style, ref: ref }), props.children));
|
|
189
189
|
});
|
|
@@ -55281,8 +55281,8 @@ function polyfill(Component) {
|
|
|
55281
55281
|
}
|
|
55282
55282
|
|
|
55283
55283
|
var reactLifecyclesCompat_es = /*#__PURE__*/Object.freeze({
|
|
55284
|
-
|
|
55285
|
-
|
|
55284
|
+
__proto__: null,
|
|
55285
|
+
polyfill: polyfill
|
|
55286
55286
|
});
|
|
55287
55287
|
|
|
55288
55288
|
var require$$6 = /*@__PURE__*/getAugmentedNamespace(reactLifecyclesCompat_es);
|