siam-ui-utils 3.1.5 → 3.2.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/dist/CustomBootstrap.js +9 -2
- package/dist/CustomBootstrap.js.map +1 -1
- package/dist/copy-link/index.js +3 -3
- package/dist/copy-link/index.js.map +1 -1
- package/dist/custom-input/CustomInputCheckbox.js +30 -12
- package/dist/custom-input/CustomInputCheckbox.js.map +1 -1
- package/dist/custom-input/CustomInputCurrency.js +1 -1
- package/dist/custom-input/CustomInputCurrency.js.map +1 -1
- package/dist/custom-input/CustomInputFile.js +28 -19
- package/dist/custom-input/CustomInputFile.js.map +1 -1
- package/dist/custom-input/CustomInputRadio.js +31 -47
- package/dist/custom-input/CustomInputRadio.js.map +1 -1
- package/dist/custom-input/index.css +25 -167
- package/dist/drag-and-dropzone/config.js +52 -51
- package/dist/drag-and-dropzone/config.js.map +1 -1
- package/dist/drag-and-dropzone/index.css +271 -276
- package/dist/drag-and-dropzone/index.js +30 -16
- package/dist/drag-and-dropzone/index.js.map +1 -1
- package/dist/dropzone-uploader/styled/index.css +165 -348
- package/dist/dropzone-uploader/styled/index.js +71 -60
- package/dist/dropzone-uploader/styled/index.js.map +1 -1
- package/dist/react-notifications/NotificationManager.js +14 -0
- package/dist/react-notifications/NotificationManager.js.map +1 -0
- package/dist/react-notifications/index.js +2 -1
- package/dist/react-notifications/index.js.map +1 -1
- package/dist/select/custom-select/index.js +59 -10
- package/dist/select/custom-select/index.js.map +1 -1
- package/dist/select/multi-select/index.js +6 -3
- package/dist/select/multi-select/index.js.map +1 -1
- package/dist/select/multi-select/styled-component.js +1 -1
- package/dist/select/multi-select/styled-component.js.map +1 -1
- package/dist/tomar-foto/index.js +1 -1
- package/dist/tomar-foto/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -7
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/index.js +0 -8
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Badge.js +0 -77
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Badge.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js +0 -111
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js +0 -106
- package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js +0 -125
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js +0 -75
- package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js +0 -225
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js +0 -122
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js +0 -83
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js.map +0 -1
- package/dist/node_modules/@neolution-ch/reactstrap/esm/utils.js +0 -68
- package/dist/node_modules/@neolution-ch/reactstrap/esm/utils.js.map +0 -1
- package/dist/node_modules/classnames/index.js +0 -62
- package/dist/node_modules/classnames/index.js.map +0 -1
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import classNames from "../../../../_virtual/index.js";
|
|
4
|
-
import { isObject, mapToCssModules, tagPropType } from "./utils.js";
|
|
5
|
-
var _excluded = ["className", "cssModule", "hidden", "widths", "tag", "check", "size", "for"];
|
|
6
|
-
function _extends() {
|
|
7
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
-
var source = arguments[i];
|
|
10
|
-
for (var key in source) {
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
-
target[key] = source[key];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
18
|
-
return _extends.apply(this, arguments);
|
|
19
|
-
}
|
|
20
|
-
function _defineProperty(obj, key, value) {
|
|
21
|
-
if (key in obj) {
|
|
22
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
23
|
-
} else {
|
|
24
|
-
obj[key] = value;
|
|
25
|
-
}
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
function _objectWithoutProperties(source, excluded) {
|
|
29
|
-
if (source == null) return {};
|
|
30
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
31
|
-
var key, i;
|
|
32
|
-
if (Object.getOwnPropertySymbols) {
|
|
33
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
34
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
35
|
-
key = sourceSymbolKeys[i];
|
|
36
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
37
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
38
|
-
target[key] = source[key];
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return target;
|
|
42
|
-
}
|
|
43
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
44
|
-
if (source == null) return {};
|
|
45
|
-
var target = {};
|
|
46
|
-
var sourceKeys = Object.keys(source);
|
|
47
|
-
var key, i;
|
|
48
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
49
|
-
key = sourceKeys[i];
|
|
50
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
51
|
-
target[key] = source[key];
|
|
52
|
-
}
|
|
53
|
-
return target;
|
|
54
|
-
}
|
|
55
|
-
var colWidths = ["xs", "sm", "md", "lg", "xl", "xxl"];
|
|
56
|
-
var stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
|
|
57
|
-
var columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.number, PropTypes.shape({
|
|
58
|
-
size: stringOrNumberProp,
|
|
59
|
-
order: stringOrNumberProp,
|
|
60
|
-
offset: stringOrNumberProp
|
|
61
|
-
})]);
|
|
62
|
-
var propTypes = {
|
|
63
|
-
children: PropTypes.node,
|
|
64
|
-
hidden: PropTypes.bool,
|
|
65
|
-
check: PropTypes.bool,
|
|
66
|
-
size: PropTypes.string,
|
|
67
|
-
"for": PropTypes.string,
|
|
68
|
-
tag: tagPropType,
|
|
69
|
-
className: PropTypes.string,
|
|
70
|
-
cssModule: PropTypes.object,
|
|
71
|
-
xs: columnProps,
|
|
72
|
-
sm: columnProps,
|
|
73
|
-
md: columnProps,
|
|
74
|
-
lg: columnProps,
|
|
75
|
-
xl: columnProps,
|
|
76
|
-
xxl: columnProps,
|
|
77
|
-
widths: PropTypes.array
|
|
78
|
-
};
|
|
79
|
-
var getColumnSizeClass = function getColumnSizeClass2(isXs, colWidth, colSize) {
|
|
80
|
-
if (colSize === true || colSize === "") {
|
|
81
|
-
return isXs ? "col" : "col-".concat(colWidth);
|
|
82
|
-
}
|
|
83
|
-
if (colSize === "auto") {
|
|
84
|
-
return isXs ? "col-auto" : "col-".concat(colWidth, "-auto");
|
|
85
|
-
}
|
|
86
|
-
return isXs ? "col-".concat(colSize) : "col-".concat(colWidth, "-").concat(colSize);
|
|
87
|
-
};
|
|
88
|
-
function Label(props) {
|
|
89
|
-
var className = props.className, cssModule = props.cssModule, hidden = props.hidden, _props$widths = props.widths, widths = _props$widths === void 0 ? colWidths : _props$widths, _props$tag = props.tag, Tag = _props$tag === void 0 ? "label" : _props$tag, check = props.check, size = props.size, htmlFor = props["for"], attributes = _objectWithoutProperties(props, _excluded);
|
|
90
|
-
var colClasses = [];
|
|
91
|
-
widths.forEach(function(colWidth, i) {
|
|
92
|
-
var columnProp = props[colWidth];
|
|
93
|
-
delete attributes[colWidth];
|
|
94
|
-
if (!columnProp && columnProp !== "") {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
var isXs = !i;
|
|
98
|
-
var colClass;
|
|
99
|
-
if (isObject(columnProp)) {
|
|
100
|
-
var _classNames;
|
|
101
|
-
var colSizeInterfix = isXs ? "-" : "-".concat(colWidth, "-");
|
|
102
|
-
colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);
|
|
103
|
-
colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty(_classNames, colClass, columnProp.size || columnProp.size === ""), _defineProperty(_classNames, "order".concat(colSizeInterfix).concat(columnProp.order), columnProp.order || columnProp.order === 0), _defineProperty(_classNames, "offset".concat(colSizeInterfix).concat(columnProp.offset), columnProp.offset || columnProp.offset === 0), _classNames))), cssModule);
|
|
104
|
-
} else {
|
|
105
|
-
colClass = getColumnSizeClass(isXs, colWidth, columnProp);
|
|
106
|
-
colClasses.push(colClass);
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
var colFormLabel = size || colClasses.length;
|
|
110
|
-
var formLabel = !(check || colFormLabel);
|
|
111
|
-
var classes = mapToCssModules(classNames(className, hidden ? "visually-hidden" : false, check ? "form-check-label" : false, size ? "col-form-label-".concat(size) : false, colClasses, colFormLabel ? "col-form-label" : false, formLabel ? "form-label" : false), cssModule);
|
|
112
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
113
|
-
htmlFor
|
|
114
|
-
}, attributes, {
|
|
115
|
-
className: classes
|
|
116
|
-
}));
|
|
117
|
-
}
|
|
118
|
-
Label.propTypes = propTypes;
|
|
119
|
-
export {
|
|
120
|
-
Label as default
|
|
121
|
-
};
|
|
122
|
-
//# sourceMappingURL=Label.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sources":["../../../../../node_modules/@neolution-ch/reactstrap/esm/Label.js"],"sourcesContent":["var _excluded = [\"className\", \"cssModule\", \"hidden\", \"widths\", \"tag\", \"check\", \"size\", \"for\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType, isObject } from './utils';\nvar colWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];\nvar stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);\nvar columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.number, PropTypes.shape({\n size: stringOrNumberProp,\n order: stringOrNumberProp,\n offset: stringOrNumberProp\n})]);\nvar propTypes = {\n children: PropTypes.node,\n hidden: PropTypes.bool,\n check: PropTypes.bool,\n size: PropTypes.string,\n \"for\": PropTypes.string,\n tag: tagPropType,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n xs: columnProps,\n sm: columnProps,\n md: columnProps,\n lg: columnProps,\n xl: columnProps,\n xxl: columnProps,\n widths: PropTypes.array\n};\nvar getColumnSizeClass = function getColumnSizeClass(isXs, colWidth, colSize) {\n if (colSize === true || colSize === '') {\n return isXs ? 'col' : \"col-\".concat(colWidth);\n }\n if (colSize === 'auto') {\n return isXs ? 'col-auto' : \"col-\".concat(colWidth, \"-auto\");\n }\n return isXs ? \"col-\".concat(colSize) : \"col-\".concat(colWidth, \"-\").concat(colSize);\n};\nfunction Label(props) {\n var className = props.className,\n cssModule = props.cssModule,\n hidden = props.hidden,\n _props$widths = props.widths,\n widths = _props$widths === void 0 ? colWidths : _props$widths,\n _props$tag = props.tag,\n Tag = _props$tag === void 0 ? 'label' : _props$tag,\n check = props.check,\n size = props.size,\n htmlFor = props[\"for\"],\n attributes = _objectWithoutProperties(props, _excluded);\n var colClasses = [];\n widths.forEach(function (colWidth, i) {\n var columnProp = props[colWidth];\n delete attributes[colWidth];\n if (!columnProp && columnProp !== '') {\n return;\n }\n var isXs = !i;\n var colClass;\n if (isObject(columnProp)) {\n var _classNames;\n var colSizeInterfix = isXs ? '-' : \"-\".concat(colWidth, \"-\");\n colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);\n colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty(_classNames, colClass, columnProp.size || columnProp.size === ''), _defineProperty(_classNames, \"order\".concat(colSizeInterfix).concat(columnProp.order), columnProp.order || columnProp.order === 0), _defineProperty(_classNames, \"offset\".concat(colSizeInterfix).concat(columnProp.offset), columnProp.offset || columnProp.offset === 0), _classNames))), cssModule);\n } else {\n colClass = getColumnSizeClass(isXs, colWidth, columnProp);\n colClasses.push(colClass);\n }\n });\n var colFormLabel = size || colClasses.length;\n var formLabel = !(check || colFormLabel);\n var classes = mapToCssModules(classNames(className, hidden ? 'visually-hidden' : false, check ? 'form-check-label' : false, size ? \"col-form-label-\".concat(size) : false, colClasses, colFormLabel ? 'col-form-label' : false, formLabel ? 'form-label' : false), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({\n htmlFor: htmlFor\n }, attributes, {\n className: classes\n }));\n}\nLabel.propTypes = propTypes;\nexport default Label;"],"names":["getColumnSizeClass"],"mappings":";;;;AAAA,IAAI,YAAY,CAAC,aAAa,aAAa,UAAU,UAAU,OAAO,SAAS,QAAQ,KAAK;AAC5F,SAAS,WAAW;AAAE,aAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAU,QAAQ;AAAE,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AAAE,UAAI,SAAS,UAAU,CAAC;AAAG,eAAS,OAAO,QAAQ;AAAE,YAAI,OAAO,UAAU,eAAe,KAAK,QAAQ,GAAG,GAAG;AAAE,iBAAO,GAAG,IAAI,OAAO,GAAG;AAAA,QAAG;AAAA,MAAE;AAAA,IAAE;AAAE,WAAO;AAAA,EAAQ;AAAG,SAAO,SAAS,MAAM,MAAM,SAAS;AAAG;AAClV,SAAS,gBAAgB,KAAK,KAAK,OAAO;AAAE,MAAI,OAAO,KAAK;AAAE,WAAO,eAAe,KAAK,KAAK,EAAE,OAAc,YAAY,MAAM,cAAc,MAAM,UAAU,KAAI,CAAE;AAAA,EAAG,OAAO;AAAE,QAAI,GAAG,IAAI;AAAA,EAAO;AAAE,SAAO;AAAK;AAChN,SAAS,yBAAyB,QAAQ,UAAU;AAAE,MAAI,UAAU,KAAM,QAAO,CAAA;AAAI,MAAI,SAAS,8BAA8B,QAAQ,QAAQ;AAAG,MAAI,KAAK;AAAG,MAAI,OAAO,uBAAuB;AAAE,QAAI,mBAAmB,OAAO,sBAAsB,MAAM;AAAG,SAAK,IAAI,GAAG,IAAI,iBAAiB,QAAQ,KAAK;AAAE,YAAM,iBAAiB,CAAC;AAAG,UAAI,SAAS,QAAQ,GAAG,KAAK,EAAG;AAAU,UAAI,CAAC,OAAO,UAAU,qBAAq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MAAI,eAAe,QAAQ,WAAW;AACtC,MAAI,YAAY,EAAE,SAAS;AAC3B,MAAI,UAAU,gBAAgB,WAAW,WAAW,SAAS,oBAAoB,OAAO,QAAQ,qBAAqB,OAAO,OAAO,kBAAkB,OAAO,IAAI,IAAI,OAAO,YAAY,eAAe,mBAAmB,OAAO,YAAY,eAAe,KAAK,GAAG,SAAS;AAC5Q,SAAoB,sBAAM,cAAc,KAAK,SAAS;AAAA,IACpD;AAAA,EACJ,GAAK,YAAY;AAAA,IACb,WAAW;AAAA,EACf,CAAG,CAAC;AACJ;AACA,MAAM,YAAY;","x_google_ignoreList":[0]}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import classNames from "../../../../_virtual/index.js";
|
|
4
|
-
import { mapToCssModules, deprecated, tagPropType } from "./utils.js";
|
|
5
|
-
var _excluded = ["className", "cssModule", "noGutters", "tag", "widths"];
|
|
6
|
-
function _extends() {
|
|
7
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
8
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
-
var source = arguments[i];
|
|
10
|
-
for (var key in source) {
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
-
target[key] = source[key];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
18
|
-
return _extends.apply(this, arguments);
|
|
19
|
-
}
|
|
20
|
-
function _objectWithoutProperties(source, excluded) {
|
|
21
|
-
if (source == null) return {};
|
|
22
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
23
|
-
var key, i;
|
|
24
|
-
if (Object.getOwnPropertySymbols) {
|
|
25
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
26
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
27
|
-
key = sourceSymbolKeys[i];
|
|
28
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
29
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
30
|
-
target[key] = source[key];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return target;
|
|
34
|
-
}
|
|
35
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
36
|
-
if (source == null) return {};
|
|
37
|
-
var target = {};
|
|
38
|
-
var sourceKeys = Object.keys(source);
|
|
39
|
-
var key, i;
|
|
40
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
41
|
-
key = sourceKeys[i];
|
|
42
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
43
|
-
target[key] = source[key];
|
|
44
|
-
}
|
|
45
|
-
return target;
|
|
46
|
-
}
|
|
47
|
-
var rowColWidths = ["xs", "sm", "md", "lg", "xl", "xxl"];
|
|
48
|
-
var rowColsPropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
|
|
49
|
-
var propTypes = {
|
|
50
|
-
tag: tagPropType,
|
|
51
|
-
noGutters: deprecated(PropTypes.bool, "Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),
|
|
52
|
-
className: PropTypes.string,
|
|
53
|
-
cssModule: PropTypes.object,
|
|
54
|
-
xs: rowColsPropType,
|
|
55
|
-
sm: rowColsPropType,
|
|
56
|
-
md: rowColsPropType,
|
|
57
|
-
lg: rowColsPropType,
|
|
58
|
-
xl: rowColsPropType,
|
|
59
|
-
xxl: rowColsPropType,
|
|
60
|
-
widths: PropTypes.array
|
|
61
|
-
};
|
|
62
|
-
function Row(props) {
|
|
63
|
-
var className = props.className, cssModule = props.cssModule, noGutters = props.noGutters, _props$tag = props.tag, Tag = _props$tag === void 0 ? "div" : _props$tag, _props$widths = props.widths, widths = _props$widths === void 0 ? rowColWidths : _props$widths, attributes = _objectWithoutProperties(props, _excluded);
|
|
64
|
-
var colClasses = [];
|
|
65
|
-
widths.forEach(function(colWidth, i) {
|
|
66
|
-
var colSize = props[colWidth];
|
|
67
|
-
delete attributes[colWidth];
|
|
68
|
-
if (!colSize) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
var isXs = !i;
|
|
72
|
-
colClasses.push(isXs ? "row-cols-".concat(colSize) : "row-cols-".concat(colWidth, "-").concat(colSize));
|
|
73
|
-
});
|
|
74
|
-
var classes = mapToCssModules(classNames(className, noGutters ? "gx-0" : null, "row", colClasses), cssModule);
|
|
75
|
-
return /* @__PURE__ */ React.createElement(Tag, _extends({}, attributes, {
|
|
76
|
-
className: classes
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
Row.propTypes = propTypes;
|
|
80
|
-
export {
|
|
81
|
-
Row as default
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=Row.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Row.js","sources":["../../../../../node_modules/@neolution-ch/reactstrap/esm/Row.js"],"sourcesContent":["var _excluded = [\"className\", \"cssModule\", \"noGutters\", \"tag\", \"widths\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType, deprecated } from './utils';\nvar rowColWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];\nvar rowColsPropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);\nvar propTypes = {\n tag: tagPropType,\n noGutters: deprecated(PropTypes.bool, 'Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/'),\n className: PropTypes.string,\n cssModule: PropTypes.object,\n xs: rowColsPropType,\n sm: rowColsPropType,\n md: rowColsPropType,\n lg: rowColsPropType,\n xl: rowColsPropType,\n xxl: rowColsPropType,\n widths: PropTypes.array\n};\nfunction Row(props) {\n var className = props.className,\n cssModule = props.cssModule,\n noGutters = props.noGutters,\n _props$tag = props.tag,\n Tag = _props$tag === void 0 ? 'div' : _props$tag,\n _props$widths = props.widths,\n widths = _props$widths === void 0 ? rowColWidths : _props$widths,\n attributes = _objectWithoutProperties(props, _excluded);\n var colClasses = [];\n widths.forEach(function (colWidth, i) {\n var colSize = props[colWidth];\n delete attributes[colWidth];\n if (!colSize) {\n return;\n }\n var isXs = !i;\n colClasses.push(isXs ? \"row-cols-\".concat(colSize) : \"row-cols-\".concat(colWidth, \"-\").concat(colSize));\n });\n var classes = mapToCssModules(classNames(className, noGutters ? 'gx-0' : null, 'row', colClasses), cssModule);\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes\n }));\n}\nRow.propTypes = propTypes;\nexport default Row;"],"names":[],"mappings":";;;;AAAA,IAAI,YAAY,CAAC,aAAa,aAAa,aAAa,OAAO,QAAQ;AACvE,SAAS,WAAW;AAAE,aAAW,OAAO,SAAS,OAAO,OAAO,SAAS,SAAU,QAAQ;AAAE,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AAAE,UAAI,SAAS,UAAU,CAAC;AAAG,eAAS,OAAO,QAAQ;AAAE,YAAI,OAAO,UAAU,e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rB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,QAAQ,UAAU;AACpB;AACA,SAAS,IAAI,OAAO;AAClB,MAAI,YAAY,MAAM,WACpB,YAAY,MAAM,WAClB,YAAY,MAAM,WAClB,aAAa,MAAM,KACnB,MAAM,eAAe,SAAS,QAAQ,YACtC,gBAAgB,MAAM,QACtB,SAAS,kBAAkB,SAAS,eAAe,eACnD,aAAa,yBAAyB,OAAO,SAAS;AACxD,MAAI,aAAa,CAAA;AACjB,SAAO,QAAQ,SAAU,UAAU,GAAG;AACpC,QAAI,UAAU,MAAM,QAAQ;AAC5B,WAAO,WAAW,QAAQ;AAC1B,QAAI,CAAC,SAAS;AACZ;AAAA,IACF;AACA,QAAI,OAAO,CAAC;AACZ,eAAW,KAAK,OAAO,YAAY,OAAO,OAAO,IAAI,YAAY,OAAO,UAAU,GAAG,EAAE,OAAO,OAAO,CAAC;AAAA,EACxG,CAAC;AACD,MAAI,UAAU,gBAAgB,WAAW,WAAW,YAAY,SAAS,MAAM,OAAO,UAAU,GAAG,SAAS;AAC5G,SAAoB,sBAAM,cAAc,KAAK,SAAS,CAAA,GAAI,YAAY;AAAA,IACpE,WAAW;AAAA,EACf,CAAG,CAAC;AACJ;AACA,IAAI,YAAY;","x_google_ignoreList":[0]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
function _typeof(obj) {
|
|
3
|
-
"@babel/helpers - typeof";
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
5
|
-
return typeof obj2;
|
|
6
|
-
} : function(obj2) {
|
|
7
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
8
|
-
}, _typeof(obj);
|
|
9
|
-
}
|
|
10
|
-
var globalCssModule;
|
|
11
|
-
function mapToCssModules() {
|
|
12
|
-
var className = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
13
|
-
var cssModule = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : globalCssModule;
|
|
14
|
-
if (!cssModule) return className;
|
|
15
|
-
return className.split(" ").map(function(c) {
|
|
16
|
-
return cssModule[c] || c;
|
|
17
|
-
}).join(" ");
|
|
18
|
-
}
|
|
19
|
-
var warned = {};
|
|
20
|
-
function warnOnce(message) {
|
|
21
|
-
if (!warned[message]) {
|
|
22
|
-
if (typeof console !== "undefined") {
|
|
23
|
-
console.error(message);
|
|
24
|
-
}
|
|
25
|
-
warned[message] = true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function deprecated(propType, explanation) {
|
|
29
|
-
return function validate(props, propName, componentName) {
|
|
30
|
-
if (props[propName] !== null && typeof props[propName] !== "undefined") {
|
|
31
|
-
warnOnce('"'.concat(propName, '" property of "').concat(componentName, '" has been deprecated.\n').concat(explanation));
|
|
32
|
-
}
|
|
33
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
34
|
-
rest[_key - 3] = arguments[_key];
|
|
35
|
-
}
|
|
36
|
-
return propType.apply(void 0, [props, propName, componentName].concat(rest));
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
var Element = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && window.Element || function() {
|
|
40
|
-
};
|
|
41
|
-
function DOMElement(props, propName, componentName) {
|
|
42
|
-
if (!(props[propName] instanceof Element)) {
|
|
43
|
-
return new Error("Invalid prop `" + propName + "` supplied to `" + componentName + "`. Expected prop to be an instance of Element. Validation failed.");
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
PropTypes.oneOfType([PropTypes.string, PropTypes.func, DOMElement, PropTypes.shape({
|
|
47
|
-
current: PropTypes.any
|
|
48
|
-
})]);
|
|
49
|
-
var tagPropType = PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.shape({
|
|
50
|
-
$$typeof: PropTypes.symbol,
|
|
51
|
-
render: PropTypes.func
|
|
52
|
-
}), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.shape({
|
|
53
|
-
$$typeof: PropTypes.symbol,
|
|
54
|
-
render: PropTypes.func
|
|
55
|
-
})]))]);
|
|
56
|
-
function isObject(value) {
|
|
57
|
-
var type = _typeof(value);
|
|
58
|
-
return value != null && (type === "object" || type === "function");
|
|
59
|
-
}
|
|
60
|
-
export {
|
|
61
|
-
DOMElement,
|
|
62
|
-
deprecated,
|
|
63
|
-
isObject,
|
|
64
|
-
mapToCssModules,
|
|
65
|
-
tagPropType,
|
|
66
|
-
warnOnce
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../../node_modules/@neolution-ch/reactstrap/esm/utils.js"],"sourcesContent":["function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nimport PropTypes from 'prop-types';\n\n// https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/js/src/modal.js#L436-L443\nexport function getScrollbarWidth() {\n var scrollDiv = document.createElement('div');\n // .modal-scrollbar-measure styles // https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/scss/_modal.scss#L106-L113\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.width = '50px';\n scrollDiv.style.height = '50px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarWidth;\n}\nexport function setScrollbarWidth(padding) {\n document.body.style.paddingRight = padding > 0 ? \"\".concat(padding, \"px\") : null;\n}\nexport function isBodyOverflowing() {\n return document.body.clientWidth < window.innerWidth;\n}\nexport function getOriginalBodyPadding() {\n var style = window.getComputedStyle(document.body, null);\n return parseInt(style && style.getPropertyValue('padding-right') || 0, 10);\n}\nexport function conditionallyUpdateScrollbar() {\n var scrollbarWidth = getScrollbarWidth();\n // https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.6/js/src/modal.js#L433\n var fixedContent = document.querySelectorAll('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top')[0];\n var bodyPadding = fixedContent ? parseInt(fixedContent.style.paddingRight || 0, 10) : 0;\n if (isBodyOverflowing()) {\n setScrollbarWidth(bodyPadding + scrollbarWidth);\n }\n}\nvar globalCssModule;\nexport function setGlobalCssModule(cssModule) {\n globalCssModule = cssModule;\n}\nexport function mapToCssModules() {\n var className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var cssModule = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalCssModule;\n if (!cssModule) return className;\n return className.split(' ').map(function (c) {\n return cssModule[c] || c;\n }).join(' ');\n}\n\n/**\n * Returns a new object with the key/value pairs from `obj` that are not in the array `omitKeys`.\n */\nexport function omit(obj, omitKeys) {\n var result = {};\n Object.keys(obj).forEach(function (key) {\n if (omitKeys.indexOf(key) === -1) {\n result[key] = obj[key];\n }\n });\n return result;\n}\n\n/**\n * Returns a filtered copy of an object with only the specified keys.\n */\nexport function pick(obj, keys) {\n var pickKeys = Array.isArray(keys) ? keys : [keys];\n var length = pickKeys.length;\n var key;\n var result = {};\n while (length > 0) {\n length -= 1;\n key = pickKeys[length];\n result[key] = obj[key];\n }\n return result;\n}\nvar warned = {};\nexport function warnOnce(message) {\n if (!warned[message]) {\n /* istanbul ignore else */\n if (typeof console !== 'undefined') {\n console.error(message); // eslint-disable-line no-console\n }\n\n warned[message] = true;\n }\n}\nexport function deprecated(propType, explanation) {\n return function validate(props, propName, componentName) {\n if (props[propName] !== null && typeof props[propName] !== 'undefined') {\n warnOnce(\"\\\"\".concat(propName, \"\\\" property of \\\"\").concat(componentName, \"\\\" has been deprecated.\\n\").concat(explanation));\n }\n for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = arguments[_key];\n }\n return propType.apply(void 0, [props, propName, componentName].concat(rest));\n };\n}\n\n// Shim Element if needed (e.g. in Node environment)\nvar Element = (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === 'object' && window.Element || function () {};\nexport function DOMElement(props, propName, componentName) {\n if (!(props[propName] instanceof Element)) {\n return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`. Expected prop to be an instance of Element. Validation failed.');\n }\n}\nexport var targetPropType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, DOMElement, PropTypes.shape({\n current: PropTypes.any\n})]);\nexport var tagPropType = PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.shape({\n $$typeof: PropTypes.symbol,\n render: PropTypes.func\n}), PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.shape({\n $$typeof: PropTypes.symbol,\n render: PropTypes.func\n})]))]);\n\n// These are all setup to match what is in the bootstrap _variables.scss\n// https://github.com/twbs/bootstrap/blob/v4-dev/scss/_variables.scss\nexport var TransitionTimeouts = {\n Fade: 150,\n // $transition-fade\n Collapse: 350,\n // $transition-collapse\n Modal: 300,\n // $modal-transition\n Carousel: 600,\n // $carousel-transition\n Offcanvas: 300 // $offcanvas-transition\n};\n\n// Duplicated Transition.propType keys to ensure that Reactstrap builds\n// for distribution properly exclude these keys for nested child HTML attributes\n// since `react-transition-group` removes propTypes in production builds.\nexport var TransitionPropTypeKeys = ['in', 'mountOnEnter', 'unmountOnExit', 'appear', 'enter', 'exit', 'timeout', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'];\nexport var TransitionStatuses = {\n ENTERING: 'entering',\n ENTERED: 'entered',\n EXITING: 'exiting',\n EXITED: 'exited'\n};\nexport var keyCodes = {\n esc: 27,\n space: 32,\n enter: 13,\n tab: 9,\n up: 38,\n down: 40,\n home: 36,\n end: 35,\n n: 78,\n p: 80\n};\nexport var PopperPlacements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];\nexport var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nexport function isReactRefObj(target) {\n if (target && _typeof(target) === 'object') {\n return 'current' in target;\n }\n return false;\n}\nfunction getTag(value) {\n if (value == null) {\n return value === undefined ? '[object Undefined]' : '[object Null]';\n }\n return Object.prototype.toString.call(value);\n}\nexport function isObject(value) {\n var type = _typeof(value);\n return value != null && (type === 'object' || type === 'function');\n}\nexport function toNumber(value) {\n var type = _typeof(value);\n var NAN = 0 / 0;\n if (type === 'number') {\n return value;\n }\n if (type === 'symbol' || type === 'object' && getTag(value) === '[object Symbol]') {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf === 'function' ? value.valueOf() : value;\n value = isObject(other) ? \"\".concat(other) : other;\n }\n if (type !== 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(/^\\s+|\\s+$/g, '');\n var isBinary = /^0b[01]+$/i.test(value);\n return isBinary || /^0o[0-7]+$/i.test(value) ? parseInt(value.slice(2), isBinary ? 2 : 8) : /^[-+]0x[0-9a-f]+$/i.test(value) ? NAN : +value;\n}\nexport function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n var tag = getTag(value);\n return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object Proxy]';\n}\nexport function findDOMElements(target) {\n if (isReactRefObj(target)) {\n return target.current;\n }\n if (isFunction(target)) {\n return target();\n }\n if (typeof target === 'string' && canUseDOM) {\n var selection = document.querySelectorAll(target);\n if (!selection.length) {\n selection = document.querySelectorAll(\"#\".concat(target));\n }\n if (!selection.length) {\n throw new Error(\"The target '\".concat(target, \"' could not be identified in the dom, tip: check spelling\"));\n }\n return selection;\n }\n return target;\n}\nexport function isArrayOrNodeList(els) {\n if (els === null) {\n return false;\n }\n return Array.isArray(els) || canUseDOM && typeof els.length === 'number';\n}\nexport function getTarget(target, allElements) {\n var els = findDOMElements(target);\n if (allElements) {\n if (isArrayOrNodeList(els)) {\n return els;\n }\n if (els === null) {\n return [];\n }\n return [els];\n }\n if (isArrayOrNodeList(els)) {\n return els[0];\n }\n return els;\n}\nexport var defaultToggleEvents = ['touchstart', 'click'];\nexport function addMultipleEventListeners(_els, handler, _events, useCapture) {\n var els = _els;\n if (!isArrayOrNodeList(els)) {\n els = [els];\n }\n var events = _events;\n if (typeof events === 'string') {\n events = events.split(/\\s+/);\n }\n if (!isArrayOrNodeList(els) || typeof handler !== 'function' || !Array.isArray(events)) {\n throw new Error(\"\\n The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\\n The second must be a function.\\n The third is a string or an array of strings that represents DOM events\\n \");\n }\n Array.prototype.forEach.call(events, function (event) {\n Array.prototype.forEach.call(els, function (el) {\n el.addEventListener(event, handler, useCapture);\n });\n });\n return function removeEvents() {\n Array.prototype.forEach.call(events, function (event) {\n Array.prototype.forEach.call(els, function (el) {\n el.removeEventListener(event, handler, useCapture);\n });\n });\n };\n}\nexport var focusableElements = ['a[href]', 'area[href]', 'input:not([disabled]):not([type=hidden])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'object', 'embed', '[tabindex]:not(.modal):not(.offcanvas)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'];\nexport function addDefaultProps(defaultProps, props) {\n if (!defaultProps || !props) return props;\n var result = _objectSpread({}, props);\n Object.keys(defaultProps).forEach(function (key) {\n if (result[key] === undefined) {\n result[key] = defaultProps[key];\n }\n if (Object.keys(defaultProps[key] || {}).length > 0 && _typeof(defaultProps[key]) === 'object') {\n addDefaultProps(defaultProps[key], result);\n }\n });\n return result;\n}"],"names":["obj"],"mappings":";AAGA,SAAS,QAAQ,KAAK;AAAE;AAA2B,SAAO,UAAU,cAAc,OAAO,UAAU,YAAY,OAAO,OAAO,WAAW,SAAUA,MAAK;AAAE,WAAO,OAAOA;AAAA,EAAK,IAAI,SAAUA,MAAK;AAAE,WAAOA,QAAO,cAAc,OAAO,UAAUA,KAAI,gBAAgB,UAAUA,SAAQ,OAAO,YAAY,WAAW,OAAOA;AAAA,EAAK,GAAG,QAAQ,GAAG;AAAG;AAoC/U,IAAI;AAIG,SAAS,kBAAkB;AAChC,MAAI,YAAY,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAY,UAAU,CAAC,IAAI;AACpF,MAAI,YAAY,UAAU,SAAS,KAAK,UAAU,CAAC,MAAM,SAAY,UAAU,CAAC,IAAI;AACpF,MAAI,CAAC,UAAW,QAAO;AACvB,SAAO,UAAU,MAAM,GAAG,EAAE,IAAI,SAAU,GAAG;AAC3C,WAAO,UAAU,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ACpB,QAAQ,UAAU;AACpB,CAAC,GAAG,UAAU,QAAQ,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,QAAQ,UAAU,MAAM;AAAA,EAC3F,UAAU,UAAU;AAAA,EACpB,QAAQ,UAAU;AACpB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAoDC,SAAS,SAAS,OAAO;AAC9B,MAAI,OAAO,QAAQ,KAAK;AACxB,SAAO,SAAS,SAAS,SAAS,YAAY,SAAS;AACzD;","x_google_ignoreList":[0]}
|
|
@@ -1,62 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;AAOA,KAAC,WAAY;AAGZ,UAAI,SAAS,CAAA,EAAG;AAEhB,eAAS,aAAc;AACtB,YAAI,UAAU;AAEd,iBAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AAC1C,cAAI,MAAM,UAAU,CAAC;AACrB,cAAI,KAAK;AACR,sBAAU,YAAY,SAAS,WAAW,GAAG,CAAC;AAAA,UAClD;AAAA,QACA;AAEE,eAAO;AAAA,MACT;AAEC,eAAS,WAAY,KAAK;AACzB,YAAI,OAAO,QAAQ,YAAY,OAAO,QAAQ,UAAU;AACvD,iBAAO;AAAA,QACV;AAEE,YAAI,OAAO,QAAQ,UAAU;AAC5B,iBAAO;AAAA,QACV;AAEE,YAAI,MAAM,QAAQ,GAAG,GAAG;AACvB,iBAAO,WAAW,MAAM,MAAM,GAAG;AAAA,QACpC;AAEE,YAAI,IAAI,aAAa,OAAO,UAAU,YAAY,CAAC,IAAI,SAAS,SAAQ,EAAG,SAAS,eAAe,GAAG;AACrG,iBAAO,IAAI,SAAQ;AAAA,QACtB;AAEE,YAAI,UAAU;AAEd,iBAAS,OAAO,KAAK;AACpB,cAAI,OAAO,KAAK,KAAK,GAAG,KAAK,IAAI,GAAG,GAAG;AACtC,sBAAU,YAAY,SAAS,GAAG;AAAA,UACtC;AAAA,QACA;AAEE,eAAO;AAAA,MACT;AAEC,eAAS,YAAa,OAAO,UAAU;AACtC,YAAI,CAAC,UAAU;AACd,iBAAO;AAAA,QACV;AAEE,YAAI,OAAO;AACV,iBAAO,QAAQ,MAAM;AAAA,QACxB;AAEE,eAAO,QAAQ;AAAA,MACjB;AAEC,UAAqC,OAAO,SAAS;AACpD,mBAAW,UAAU;AACrB,yBAAiB;AAAA,MACnB,OAKQ;AACN,eAAO,aAAa;AAAA,MACtB;AAAA,IACA;;;;","x_google_ignoreList":[0]}
|