siam-ui-utils 3.1.0 → 3.1.1

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.
Files changed (93) hide show
  1. package/dist/CustomBootstrap.js +9 -9
  2. package/dist/_virtual/_commonjsHelpers.js +7 -7
  3. package/dist/_virtual/events.js +6 -6
  4. package/dist/_virtual/events2.js +5 -5
  5. package/dist/_virtual/index.js +8 -8
  6. package/dist/_virtual/index2.js +5 -5
  7. package/dist/assets/img/copiar.png.js +5 -5
  8. package/dist/assets/img/take-photo.jpg.js +5 -5
  9. package/dist/constants.js +9 -9
  10. package/dist/copy-link/index.js +60 -60
  11. package/dist/copy-link/styles.css +37 -37
  12. package/dist/custom-input/CustomInputCheckbox.js +37 -37
  13. package/dist/custom-input/CustomInputCurrency.js +84 -84
  14. package/dist/custom-input/CustomInputFile.js +47 -47
  15. package/dist/custom-input/CustomInputRadio.js +68 -68
  16. package/dist/custom-input/constant.js +5 -5
  17. package/dist/custom-input/index.js +12 -12
  18. package/dist/drag-and-dropzone/DropzoneComponent.js +83 -83
  19. package/dist/drag-and-dropzone/config.js +59 -59
  20. package/dist/drag-and-dropzone/index.js +39 -39
  21. package/dist/dropzone/Input.js +77 -77
  22. package/dist/dropzone/Layout.js +50 -50
  23. package/dist/dropzone/Preview.js +117 -117
  24. package/dist/dropzone/SubmitButton.js +34 -34
  25. package/dist/dropzone/assets/cancel.svg.js +5 -5
  26. package/dist/dropzone/assets/remove.svg.js +5 -5
  27. package/dist/dropzone/assets/restart.svg.js +5 -5
  28. package/dist/dropzone/index.js +514 -514
  29. package/dist/dropzone/utils.js +93 -93
  30. package/dist/dropzone-uploader/base/index.js +135 -135
  31. package/dist/dropzone-uploader/index.js +7 -7
  32. package/dist/dropzone-uploader/styled/index.js +148 -148
  33. package/dist/iconos/constants-svg.js +666 -666
  34. package/dist/iconos/icon-button-svg.js +50 -50
  35. package/dist/iconos/index.js +24 -24
  36. package/dist/iconos/styled-icon.js +26 -26
  37. package/dist/index.js +4 -4
  38. package/dist/intl-messages/index.js +11 -11
  39. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -8
  40. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -13
  41. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -8
  42. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -13
  43. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -9
  44. package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js +111 -111
  45. package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js +106 -106
  46. package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js +125 -125
  47. package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js +75 -75
  48. package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js +225 -225
  49. package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js +122 -122
  50. package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js +83 -83
  51. package/dist/node_modules/@neolution-ch/reactstrap/esm/utils.js +68 -68
  52. package/dist/node_modules/classnames/index.js +62 -62
  53. package/dist/node_modules/dom-helpers/esm/addClass.js +10 -10
  54. package/dist/node_modules/dom-helpers/esm/hasClass.js +8 -8
  55. package/dist/node_modules/dom-helpers/esm/removeClass.js +16 -16
  56. package/dist/node_modules/dropzone/dist/dropzone.js +1968 -1968
  57. package/dist/node_modules/events/events.js +372 -372
  58. package/dist/node_modules/just-extend/index.esm.js +43 -43
  59. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +275 -275
  60. package/dist/node_modules/react-transition-group/esm/Transition.js +441 -441
  61. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +146 -146
  62. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -6
  63. package/dist/node_modules/react-transition-group/esm/config.js +7 -7
  64. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +100 -100
  65. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -24
  66. package/dist/node_modules/react-transition-group/esm/utils/reflow.js +7 -7
  67. package/dist/react-notifications/Notification.js +73 -73
  68. package/dist/react-notifications/NotificationContainer.js +59 -59
  69. package/dist/react-notifications/NotificationManager.js +174 -174
  70. package/dist/react-notifications/Notifications.js +72 -72
  71. package/dist/react-notifications/constants.js +26 -26
  72. package/dist/react-notifications/index.js +11 -11
  73. package/dist/select/custom-select/constants.js +8 -8
  74. package/dist/select/custom-select/index.js +89 -89
  75. package/dist/select/custom-select-input/index.js +12 -12
  76. package/dist/select/index.js +9 -9
  77. package/dist/select/multi-select/badge-label-multi-select.js +29 -29
  78. package/dist/select/multi-select/index.css +36 -36
  79. package/dist/select/multi-select/index.js +170 -171
  80. package/dist/select/multi-select/index.js.map +1 -1
  81. package/dist/select/multi-select/styled-component.js +23 -23
  82. package/dist/timer/index.js +60 -60
  83. package/dist/timer/styles.css +58 -58
  84. package/dist/tomar-foto/index.js +62 -62
  85. package/dist/view-layout/button-editor.js +14 -14
  86. package/dist/view-layout/constants.js +11 -11
  87. package/dist/view-layout/editor-layer.js +28 -28
  88. package/dist/view-layout/index.js +53 -53
  89. package/dist/view-layout/slot-wrapper.js +39 -39
  90. package/dist/view-layout/styles.css +126 -126
  91. package/dist/where-by-room/index.js +20 -20
  92. package/dist/where-by-room/room.js +78 -78
  93. package/package.json +1 -4
@@ -1,122 +1,122 @@
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
+ 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,83 +1,83 @@
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
+ 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,68 +1,68 @@
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
+ 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