siam-ui-utils 3.0.28 → 3.0.30
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/dist/CustomBootstrap.js +9 -9
- package/dist/_virtual/_commonjsHelpers.js +7 -7
- package/dist/_virtual/events.js +6 -6
- package/dist/_virtual/events2.js +5 -5
- package/dist/_virtual/index.js +8 -8
- package/dist/_virtual/index2.js +5 -5
- package/dist/_virtual/react-dropzone.js +8 -8
- package/dist/_virtual/react-dropzone2.js +5 -5
- package/dist/assets/img/copiar.png.js +5 -5
- package/dist/assets/img/take-photo.jpg.js +5 -5
- package/dist/constants.js +9 -9
- package/dist/copy-link/index.js +60 -60
- package/dist/copy-link/styles.css +37 -37
- package/dist/custom-input/CustomInputCheckbox.js +36 -36
- package/dist/custom-input/CustomInputCurrency.js +85 -85
- package/dist/custom-input/CustomInputFile.js +46 -46
- package/dist/custom-input/CustomInputRadio.js +67 -67
- package/dist/custom-input/constant.js +5 -5
- package/dist/custom-input/index.js +12 -14
- package/dist/custom-input/index.js.map +1 -1
- package/dist/drag-and-dropzone/config.js +59 -59
- package/dist/drag-and-dropzone/index.js +39 -39
- package/dist/dropzone/Input.js +77 -77
- package/dist/dropzone/Layout.js +50 -50
- package/dist/dropzone/Preview.js +117 -117
- package/dist/dropzone/SubmitButton.js +34 -34
- package/dist/dropzone/assets/cancel.svg.js +5 -5
- package/dist/dropzone/assets/remove.svg.js +5 -5
- package/dist/dropzone/assets/restart.svg.js +5 -5
- package/dist/dropzone/index.js +514 -514
- package/dist/dropzone/utils.js +93 -93
- package/dist/dropzone-uploader/base/index.js +135 -135
- package/dist/dropzone-uploader/index.js +7 -7
- package/dist/dropzone-uploader/styled/index.js +149 -149
- package/dist/iconos/constants-svg.js +666 -666
- package/dist/iconos/icon-button-svg.js +50 -50
- package/dist/iconos/index.js +24 -24
- package/dist/iconos/styled-icon.js +26 -26
- package/dist/index.js +4 -4
- package/dist/intl-messages/index.js +11 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -9
- package/dist/node_modules/classnames/index.js +62 -62
- package/dist/node_modules/dom-helpers/esm/addClass.js +10 -10
- package/dist/node_modules/dom-helpers/esm/hasClass.js +8 -8
- package/dist/node_modules/dom-helpers/esm/removeClass.js +16 -16
- package/dist/node_modules/events/events.js +372 -372
- package/dist/node_modules/react-dropzone-component/dist/react-dropzone.js +1023 -1023
- package/dist/node_modules/react-multi-select-component/dist/esm/index.js +178 -178
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +275 -275
- package/dist/node_modules/react-transition-group/esm/Transition.js +441 -441
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +146 -146
- package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -6
- package/dist/node_modules/react-transition-group/esm/config.js +7 -7
- package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +100 -100
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -24
- package/dist/node_modules/react-transition-group/esm/utils/reflow.js +7 -7
- package/dist/react-notifications/Notification.js +73 -73
- package/dist/react-notifications/NotificationContainer.js +59 -59
- package/dist/react-notifications/NotificationManager.js +174 -174
- package/dist/react-notifications/Notifications.js +72 -72
- package/dist/react-notifications/constants.js +26 -26
- package/dist/react-notifications/index.js +11 -11
- package/dist/select/custom-select/constants.js +8 -8
- package/dist/select/custom-select/index.js +90 -90
- package/dist/select/custom-select-input/index.js +12 -12
- package/dist/select/index.js +9 -9
- package/dist/select/multi-select/badge-label-multi-select.js +29 -29
- package/dist/select/multi-select/index.css +23 -23
- package/dist/select/multi-select/index.js +63 -63
- package/dist/select/multi-select/styled-component.js +24 -24
- package/dist/timer/index.js +60 -60
- package/dist/timer/styles.css +58 -58
- package/dist/tomar-foto/index.js +62 -62
- package/dist/view-layout/button-editor.js +14 -14
- package/dist/view-layout/constants.js +11 -11
- package/dist/view-layout/editor-layer.js +28 -28
- package/dist/view-layout/index.js +53 -53
- package/dist/view-layout/slot-wrapper.js +39 -39
- package/dist/view-layout/styles.css +126 -126
- package/dist/where-by-room/index.js +20 -20
- package/dist/where-by-room/room.js +78 -78
- package/package.json +1 -1
- package/dist/_virtual/browser.js +0 -8
- package/dist/_virtual/browser.js.map +0 -1
- package/dist/_virtual/warning.js +0 -8
- package/dist/_virtual/warning.js.map +0 -1
- package/dist/custom-input/customInputMask/children-wrapper.js +0 -12
- package/dist/custom-input/customInputMask/children-wrapper.js.map +0 -1
- package/dist/custom-input/customInputMask/constants.js +0 -19
- package/dist/custom-input/customInputMask/constants.js.map +0 -1
- package/dist/custom-input/customInputMask/hooks.js +0 -159
- package/dist/custom-input/customInputMask/hooks.js.map +0 -1
- package/dist/custom-input/customInputMask/index.js +0 -184
- package/dist/custom-input/customInputMask/index.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/defer.js +0 -11
- package/dist/custom-input/customInputMask/utils/defer.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/helpers.js +0 -42
- package/dist/custom-input/customInputMask/utils/helpers.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/input.js +0 -25
- package/dist/custom-input/customInputMask/utils/input.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/mask.js +0 -220
- package/dist/custom-input/customInputMask/utils/mask.js.map +0 -1
- package/dist/custom-input/customInputMask/utils/parse-mask.js +0 -72
- package/dist/custom-input/customInputMask/utils/parse-mask.js.map +0 -1
- package/dist/custom-input/customInputMask/validate-props.js +0 -35
- package/dist/custom-input/customInputMask/validate-props.js.map +0 -1
- package/dist/node_modules/invariant/browser.js +0 -39
- package/dist/node_modules/invariant/browser.js.map +0 -1
- package/dist/node_modules/warning/warning.js +0 -51
- package/dist/node_modules/warning/warning.js.map +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useRef, useEffect } from "react";
|
|
3
|
-
import { withTheme } from "styled-components";
|
|
4
|
-
import { Icon } from "./styled-icon.js";
|
|
5
|
-
const useSvgToReactEncoded = (svg) => {
|
|
6
|
-
const svgWrapperRef = useRef();
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
svgWrapperRef.current.innerHTML = svg;
|
|
9
|
-
}, [svg]);
|
|
10
|
-
return svgWrapperRef;
|
|
11
|
-
};
|
|
12
|
-
const IconButtonSvg = (props) => {
|
|
13
|
-
const {
|
|
14
|
-
sublabel = "",
|
|
15
|
-
onClick = () => {
|
|
16
|
-
},
|
|
17
|
-
onTouchStart = () => {
|
|
18
|
-
},
|
|
19
|
-
svg,
|
|
20
|
-
svgOver,
|
|
21
|
-
height = "3rem",
|
|
22
|
-
width = "3rem",
|
|
23
|
-
title
|
|
24
|
-
} = props || {};
|
|
25
|
-
const [svgActive, setSvgActive] = useState(svg);
|
|
26
|
-
const svgWrapperRef = useSvgToReactEncoded(svgActive);
|
|
27
|
-
return /* @__PURE__ */ jsxs(
|
|
28
|
-
Icon,
|
|
29
|
-
{
|
|
30
|
-
title,
|
|
31
|
-
display: sublabel !== "" ? "block" : "none",
|
|
32
|
-
onClick,
|
|
33
|
-
onTouchStart,
|
|
34
|
-
onMouseOver: () => setSvgActive(svgOver || svg),
|
|
35
|
-
onMouseOut: () => setSvgActive(svg),
|
|
36
|
-
width,
|
|
37
|
-
height,
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ jsx("div", { ref: svgWrapperRef }),
|
|
40
|
-
/* @__PURE__ */ jsx("label", { children: sublabel })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
IconButtonSvg.defaultProps = { theme: {} };
|
|
46
|
-
const _t = withTheme(IconButtonSvg);
|
|
47
|
-
export {
|
|
48
|
-
_t as IconButtonSvg
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=icon-button-svg.js.map
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect } from "react";
|
|
3
|
+
import { withTheme } from "styled-components";
|
|
4
|
+
import { Icon } from "./styled-icon.js";
|
|
5
|
+
const useSvgToReactEncoded = (svg) => {
|
|
6
|
+
const svgWrapperRef = useRef();
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
svgWrapperRef.current.innerHTML = svg;
|
|
9
|
+
}, [svg]);
|
|
10
|
+
return svgWrapperRef;
|
|
11
|
+
};
|
|
12
|
+
const IconButtonSvg = (props) => {
|
|
13
|
+
const {
|
|
14
|
+
sublabel = "",
|
|
15
|
+
onClick = () => {
|
|
16
|
+
},
|
|
17
|
+
onTouchStart = () => {
|
|
18
|
+
},
|
|
19
|
+
svg,
|
|
20
|
+
svgOver,
|
|
21
|
+
height = "3rem",
|
|
22
|
+
width = "3rem",
|
|
23
|
+
title
|
|
24
|
+
} = props || {};
|
|
25
|
+
const [svgActive, setSvgActive] = useState(svg);
|
|
26
|
+
const svgWrapperRef = useSvgToReactEncoded(svgActive);
|
|
27
|
+
return /* @__PURE__ */ jsxs(
|
|
28
|
+
Icon,
|
|
29
|
+
{
|
|
30
|
+
title,
|
|
31
|
+
display: sublabel !== "" ? "block" : "none",
|
|
32
|
+
onClick,
|
|
33
|
+
onTouchStart,
|
|
34
|
+
onMouseOver: () => setSvgActive(svgOver || svg),
|
|
35
|
+
onMouseOut: () => setSvgActive(svg),
|
|
36
|
+
width,
|
|
37
|
+
height,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx("div", { ref: svgWrapperRef }),
|
|
40
|
+
/* @__PURE__ */ jsx("label", { children: sublabel })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
IconButtonSvg.defaultProps = { theme: {} };
|
|
46
|
+
const _t = withTheme(IconButtonSvg);
|
|
47
|
+
export {
|
|
48
|
+
_t as IconButtonSvg
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=icon-button-svg.js.map
|
package/dist/iconos/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { anularAyuda, contactoBarraSup, continuar, delegacionMenuLateral, delegacionesVerde, descarga, descargaOver, mailRojo, pagosMenuLateral, passwordEyeOpenSvg, passwordEyeSvg, pdfImage, telefonoCeleste, telefonoConsulta, telefonoEmergencia, telefonoExequial, telefonoSalud, whatAppIcon } from "./constants-svg.js";
|
|
2
|
-
import { IconButtonSvg } from "./icon-button-svg.js";
|
|
3
|
-
export {
|
|
4
|
-
IconButtonSvg,
|
|
5
|
-
anularAyuda,
|
|
6
|
-
contactoBarraSup,
|
|
7
|
-
continuar,
|
|
8
|
-
delegacionMenuLateral,
|
|
9
|
-
delegacionesVerde,
|
|
10
|
-
descarga,
|
|
11
|
-
descargaOver,
|
|
12
|
-
mailRojo,
|
|
13
|
-
pagosMenuLateral,
|
|
14
|
-
passwordEyeOpenSvg,
|
|
15
|
-
passwordEyeSvg,
|
|
16
|
-
pdfImage,
|
|
17
|
-
telefonoCeleste,
|
|
18
|
-
telefonoConsulta,
|
|
19
|
-
telefonoEmergencia,
|
|
20
|
-
telefonoExequial,
|
|
21
|
-
telefonoSalud,
|
|
22
|
-
whatAppIcon
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { anularAyuda, contactoBarraSup, continuar, delegacionMenuLateral, delegacionesVerde, descarga, descargaOver, mailRojo, pagosMenuLateral, passwordEyeOpenSvg, passwordEyeSvg, pdfImage, telefonoCeleste, telefonoConsulta, telefonoEmergencia, telefonoExequial, telefonoSalud, whatAppIcon } from "./constants-svg.js";
|
|
2
|
+
import { IconButtonSvg } from "./icon-button-svg.js";
|
|
3
|
+
export {
|
|
4
|
+
IconButtonSvg,
|
|
5
|
+
anularAyuda,
|
|
6
|
+
contactoBarraSup,
|
|
7
|
+
continuar,
|
|
8
|
+
delegacionMenuLateral,
|
|
9
|
+
delegacionesVerde,
|
|
10
|
+
descarga,
|
|
11
|
+
descargaOver,
|
|
12
|
+
mailRojo,
|
|
13
|
+
pagosMenuLateral,
|
|
14
|
+
passwordEyeOpenSvg,
|
|
15
|
+
passwordEyeSvg,
|
|
16
|
+
pdfImage,
|
|
17
|
+
telefonoCeleste,
|
|
18
|
+
telefonoConsulta,
|
|
19
|
+
telefonoEmergencia,
|
|
20
|
+
telefonoExequial,
|
|
21
|
+
telefonoSalud,
|
|
22
|
+
whatAppIcon
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { styled } from "styled-components";
|
|
3
|
-
const IconDiv = (props) => /* @__PURE__ */ jsx("div", { ...props });
|
|
4
|
-
const Icon = styled(IconDiv)`
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
svg {
|
|
10
|
-
margin: 0.1rem;
|
|
11
|
-
margin-right: 0.1rem;
|
|
12
|
-
margin-top: 0.1rem;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
color: red;
|
|
15
|
-
width: ${(props) => props.width || "3rem"};
|
|
16
|
-
height: ${(props) => props.height || props.width || "3rem"};
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
19
|
-
label {
|
|
20
|
-
display: ${(props) => props.display || "none"};
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
23
|
-
export {
|
|
24
|
-
Icon
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=styled-icon.js.map
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from "styled-components";
|
|
3
|
+
const IconDiv = (props) => /* @__PURE__ */ jsx("div", { ...props });
|
|
4
|
+
const Icon = styled(IconDiv)`
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
svg {
|
|
10
|
+
margin: 0.1rem;
|
|
11
|
+
margin-right: 0.1rem;
|
|
12
|
+
margin-top: 0.1rem;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
color: red;
|
|
15
|
+
width: ${(props) => props.width || "3rem"};
|
|
16
|
+
height: ${(props) => props.height || props.width || "3rem"};
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
label {
|
|
20
|
+
display: ${(props) => props.display || "none"};
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
export {
|
|
24
|
+
Icon
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=styled-icon.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
console.error(
|
|
2
|
-
'\n⚠️ ERROR: Import desde "siam-ui-utils" no está permitido.\n Usa imports modulares como:\n import { createField } from "siam-ui-utils/custom-input"\n'
|
|
3
|
-
);
|
|
4
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
console.error(
|
|
2
|
+
'\n⚠️ ERROR: Import desde "siam-ui-utils" no está permitido.\n Usa imports modulares como:\n import { createField } from "siam-ui-utils/custom-input"\n'
|
|
3
|
+
);
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { injectIntl, FormattedMessage } from "react-intl";
|
|
3
|
-
const InjectMessage = (props) => /* @__PURE__ */ jsx(FormattedMessage, { ...props });
|
|
4
|
-
const IntlMessages = injectIntl(InjectMessage, {
|
|
5
|
-
withRef: false
|
|
6
|
-
});
|
|
7
|
-
export {
|
|
8
|
-
IntlMessages,
|
|
9
|
-
IntlMessages as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { injectIntl, FormattedMessage } from "react-intl";
|
|
3
|
+
const InjectMessage = (props) => /* @__PURE__ */ jsx(FormattedMessage, { ...props });
|
|
4
|
+
const IntlMessages = injectIntl(InjectMessage, {
|
|
5
|
+
withRef: false
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
IntlMessages,
|
|
9
|
+
IntlMessages as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
function _assertThisInitialized(e) {
|
|
2
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3
|
-
return e;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
_assertThisInitialized as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=assertThisInitialized.js.map
|
|
1
|
+
function _assertThisInitialized(e) {
|
|
2
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3
|
+
return e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
_assertThisInitialized as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=assertThisInitialized.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
-
var t = arguments[e];
|
|
5
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6
|
-
}
|
|
7
|
-
return n;
|
|
8
|
-
}, _extends.apply(null, arguments);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
_extends as default
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=extends.js.map
|
|
1
|
+
function _extends() {
|
|
2
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
+
var t = arguments[e];
|
|
5
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6
|
+
}
|
|
7
|
+
return n;
|
|
8
|
+
}, _extends.apply(null, arguments);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
_extends as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=extends.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _setPrototypeOf from "./setPrototypeOf.js";
|
|
2
|
-
function _inheritsLoose(t, o) {
|
|
3
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
_inheritsLoose as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=inheritsLoose.js.map
|
|
1
|
+
import _setPrototypeOf from "./setPrototypeOf.js";
|
|
2
|
+
function _inheritsLoose(t, o) {
|
|
3
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
_inheritsLoose as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=inheritsLoose.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
2
|
-
if (null == r) return {};
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
5
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
6
|
-
t[n] = r[n];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
_objectWithoutPropertiesLoose as default
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=objectWithoutPropertiesLoose.js.map
|
|
1
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
2
|
+
if (null == r) return {};
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
5
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
6
|
+
t[n] = r[n];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
_objectWithoutPropertiesLoose as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=objectWithoutPropertiesLoose.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _setPrototypeOf(t, e) {
|
|
2
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
3
|
-
return t2.__proto__ = e2, t2;
|
|
4
|
-
}, _setPrototypeOf(t, e);
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
7
|
-
_setPrototypeOf as default
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=setPrototypeOf.js.map
|
|
1
|
+
function _setPrototypeOf(t, e) {
|
|
2
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
3
|
+
return t2.__proto__ = e2, t2;
|
|
4
|
+
}, _setPrototypeOf(t, e);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
_setPrototypeOf as default
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=setPrototypeOf.js.map
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { __module as classnames } from "../../_virtual/index2.js";
|
|
2
|
-
var hasRequiredClassnames;
|
|
3
|
-
function requireClassnames() {
|
|
4
|
-
if (hasRequiredClassnames) return classnames.exports;
|
|
5
|
-
hasRequiredClassnames = 1;
|
|
6
|
-
(function(module) {
|
|
7
|
-
(function() {
|
|
8
|
-
var hasOwn = {}.hasOwnProperty;
|
|
9
|
-
function classNames() {
|
|
10
|
-
var classes = "";
|
|
11
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
12
|
-
var arg = arguments[i];
|
|
13
|
-
if (arg) {
|
|
14
|
-
classes = appendClass(classes, parseValue(arg));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return classes;
|
|
18
|
-
}
|
|
19
|
-
function parseValue(arg) {
|
|
20
|
-
if (typeof arg === "string" || typeof arg === "number") {
|
|
21
|
-
return arg;
|
|
22
|
-
}
|
|
23
|
-
if (typeof arg !== "object") {
|
|
24
|
-
return "";
|
|
25
|
-
}
|
|
26
|
-
if (Array.isArray(arg)) {
|
|
27
|
-
return classNames.apply(null, arg);
|
|
28
|
-
}
|
|
29
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
30
|
-
return arg.toString();
|
|
31
|
-
}
|
|
32
|
-
var classes = "";
|
|
33
|
-
for (var key in arg) {
|
|
34
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
35
|
-
classes = appendClass(classes, key);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return classes;
|
|
39
|
-
}
|
|
40
|
-
function appendClass(value, newClass) {
|
|
41
|
-
if (!newClass) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
if (value) {
|
|
45
|
-
return value + " " + newClass;
|
|
46
|
-
}
|
|
47
|
-
return value + newClass;
|
|
48
|
-
}
|
|
49
|
-
if (module.exports) {
|
|
50
|
-
classNames.default = classNames;
|
|
51
|
-
module.exports = classNames;
|
|
52
|
-
} else {
|
|
53
|
-
window.classNames = classNames;
|
|
54
|
-
}
|
|
55
|
-
})();
|
|
56
|
-
})(classnames);
|
|
57
|
-
return classnames.exports;
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
requireClassnames as __require
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { __module as classnames } from "../../_virtual/index2.js";
|
|
2
|
+
var hasRequiredClassnames;
|
|
3
|
+
function requireClassnames() {
|
|
4
|
+
if (hasRequiredClassnames) return classnames.exports;
|
|
5
|
+
hasRequiredClassnames = 1;
|
|
6
|
+
(function(module) {
|
|
7
|
+
(function() {
|
|
8
|
+
var hasOwn = {}.hasOwnProperty;
|
|
9
|
+
function classNames() {
|
|
10
|
+
var classes = "";
|
|
11
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
12
|
+
var arg = arguments[i];
|
|
13
|
+
if (arg) {
|
|
14
|
+
classes = appendClass(classes, parseValue(arg));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return classes;
|
|
18
|
+
}
|
|
19
|
+
function parseValue(arg) {
|
|
20
|
+
if (typeof arg === "string" || typeof arg === "number") {
|
|
21
|
+
return arg;
|
|
22
|
+
}
|
|
23
|
+
if (typeof arg !== "object") {
|
|
24
|
+
return "";
|
|
25
|
+
}
|
|
26
|
+
if (Array.isArray(arg)) {
|
|
27
|
+
return classNames.apply(null, arg);
|
|
28
|
+
}
|
|
29
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
30
|
+
return arg.toString();
|
|
31
|
+
}
|
|
32
|
+
var classes = "";
|
|
33
|
+
for (var key in arg) {
|
|
34
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
35
|
+
classes = appendClass(classes, key);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return classes;
|
|
39
|
+
}
|
|
40
|
+
function appendClass(value, newClass) {
|
|
41
|
+
if (!newClass) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
if (value) {
|
|
45
|
+
return value + " " + newClass;
|
|
46
|
+
}
|
|
47
|
+
return value + newClass;
|
|
48
|
+
}
|
|
49
|
+
if (module.exports) {
|
|
50
|
+
classNames.default = classNames;
|
|
51
|
+
module.exports = classNames;
|
|
52
|
+
} else {
|
|
53
|
+
window.classNames = classNames;
|
|
54
|
+
}
|
|
55
|
+
})();
|
|
56
|
+
})(classnames);
|
|
57
|
+
return classnames.exports;
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
requireClassnames as __require
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import hasClass from "./hasClass.js";
|
|
2
|
-
function addClass(element, className) {
|
|
3
|
-
if (element.classList) element.classList.add(className);
|
|
4
|
-
else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
|
|
5
|
-
else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
addClass as default
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=addClass.js.map
|
|
1
|
+
import hasClass from "./hasClass.js";
|
|
2
|
+
function addClass(element, className) {
|
|
3
|
+
if (element.classList) element.classList.add(className);
|
|
4
|
+
else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
|
|
5
|
+
else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
addClass as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=addClass.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
function hasClass(element, className) {
|
|
2
|
-
if (element.classList) return !!className && element.classList.contains(className);
|
|
3
|
-
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
hasClass as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=hasClass.js.map
|
|
1
|
+
function hasClass(element, className) {
|
|
2
|
+
if (element.classList) return !!className && element.classList.contains(className);
|
|
3
|
+
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
hasClass as default
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=hasClass.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
function replaceClassName(origClass, classToRemove) {
|
|
2
|
-
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
3
|
-
}
|
|
4
|
-
function removeClass(element, className) {
|
|
5
|
-
if (element.classList) {
|
|
6
|
-
element.classList.remove(className);
|
|
7
|
-
} else if (typeof element.className === "string") {
|
|
8
|
-
element.className = replaceClassName(element.className, className);
|
|
9
|
-
} else {
|
|
10
|
-
element.setAttribute("class", replaceClassName(element.className && element.className.baseVal || "", className));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
removeClass as default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=removeClass.js.map
|
|
1
|
+
function replaceClassName(origClass, classToRemove) {
|
|
2
|
+
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
3
|
+
}
|
|
4
|
+
function removeClass(element, className) {
|
|
5
|
+
if (element.classList) {
|
|
6
|
+
element.classList.remove(className);
|
|
7
|
+
} else if (typeof element.className === "string") {
|
|
8
|
+
element.className = replaceClassName(element.className, className);
|
|
9
|
+
} else {
|
|
10
|
+
element.setAttribute("class", replaceClassName(element.className && element.className.baseVal || "", className));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
removeClass as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=removeClass.js.map
|