@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/dist/lui.esm.js
CHANGED
|
@@ -5,8 +5,49 @@ import { Formik, Form, useFormikContext, Field, getIn, connect, ErrorMessage, us
|
|
|
5
5
|
import lottie from 'lottie-web/build/player/lottie_light';
|
|
6
6
|
import { useQuery } from 'react-query';
|
|
7
7
|
|
|
8
|
+
function toVal(mix) {
|
|
9
|
+
var k, y, str='';
|
|
10
|
+
|
|
11
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
12
|
+
str += mix;
|
|
13
|
+
} else if (typeof mix === 'object') {
|
|
14
|
+
if (Array.isArray(mix)) {
|
|
15
|
+
for (k=0; k < mix.length; k++) {
|
|
16
|
+
if (mix[k]) {
|
|
17
|
+
if (y = toVal(mix[k])) {
|
|
18
|
+
str && (str += ' ');
|
|
19
|
+
str += y;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
} else {
|
|
24
|
+
for (k in mix) {
|
|
25
|
+
if (mix[k]) {
|
|
26
|
+
str && (str += ' ');
|
|
27
|
+
str += k;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return str;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function clsx () {
|
|
37
|
+
var i=0, tmp, x, str='';
|
|
38
|
+
while (i < arguments.length) {
|
|
39
|
+
if (tmp = arguments[i++]) {
|
|
40
|
+
if (x = toVal(tmp)) {
|
|
41
|
+
str && (str += ' ');
|
|
42
|
+
str += x;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return str;
|
|
47
|
+
}
|
|
48
|
+
|
|
8
49
|
var LuiBanner = function (props) {
|
|
9
|
-
return (React__default.createElement("div", { className:
|
|
50
|
+
return (React__default.createElement("div", { className: clsx('lui-msg-banner-container', props.className) },
|
|
10
51
|
React__default.createElement(LuiBannerContent, { level: props.level }, props.children)));
|
|
11
52
|
};
|
|
12
53
|
var LuiBannerContent = function (props) {
|
|
@@ -116,47 +157,6 @@ function __generator(thisArg, body) {
|
|
|
116
157
|
}
|
|
117
158
|
}
|
|
118
159
|
|
|
119
|
-
function toVal(mix) {
|
|
120
|
-
var k, y, str='';
|
|
121
|
-
|
|
122
|
-
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
123
|
-
str += mix;
|
|
124
|
-
} else if (typeof mix === 'object') {
|
|
125
|
-
if (Array.isArray(mix)) {
|
|
126
|
-
for (k=0; k < mix.length; k++) {
|
|
127
|
-
if (mix[k]) {
|
|
128
|
-
if (y = toVal(mix[k])) {
|
|
129
|
-
str && (str += ' ');
|
|
130
|
-
str += y;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
} else {
|
|
135
|
-
for (k in mix) {
|
|
136
|
-
if (mix[k]) {
|
|
137
|
-
str && (str += ' ');
|
|
138
|
-
str += k;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return str;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function clsx () {
|
|
148
|
-
var i=0, tmp, x, str='';
|
|
149
|
-
while (i < arguments.length) {
|
|
150
|
-
if (tmp = arguments[i++]) {
|
|
151
|
-
if (x = toVal(tmp)) {
|
|
152
|
-
str && (str += ' ');
|
|
153
|
-
str += x;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return str;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
160
|
var PlainButton = React__default.forwardRef(function (props, ref) {
|
|
161
161
|
return (React__default.createElement("button", __assign({}, props.buttonProps, { type: props.type, title: props.title, disabled: props.disabled, name: props.name, onClick: props.onClick, className: clsx('lui-button', "lui-button-" + props.level, "lui-button-" + props.size, props.className), "data-testid": props['data-testid'], style: props.style, ref: ref }), props.children));
|
|
162
162
|
});
|
|
@@ -55254,8 +55254,8 @@ function polyfill(Component) {
|
|
|
55254
55254
|
}
|
|
55255
55255
|
|
|
55256
55256
|
var reactLifecyclesCompat_es = /*#__PURE__*/Object.freeze({
|
|
55257
|
-
|
|
55258
|
-
|
|
55257
|
+
__proto__: null,
|
|
55258
|
+
polyfill: polyfill
|
|
55259
55259
|
});
|
|
55260
55260
|
|
|
55261
55261
|
var require$$6 = /*@__PURE__*/getAugmentedNamespace(reactLifecyclesCompat_es);
|