@moda/om 19.4.2 → 19.4.3
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/index.cjs.js +119 -140
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +119 -140
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1001,6 +1001,85 @@ var colorStringExports = colorString.exports;
|
|
|
1001
1001
|
__exportStar(helpers, exports);
|
|
1002
1002
|
})(dist$4);
|
|
1003
1003
|
|
|
1004
|
+
function _arrayLikeToArray(r, a) {
|
|
1005
|
+
(null == a || a > r.length) && (a = r.length);
|
|
1006
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
1007
|
+
return n;
|
|
1008
|
+
}
|
|
1009
|
+
function _arrayWithHoles(r) {
|
|
1010
|
+
if (Array.isArray(r)) return r;
|
|
1011
|
+
}
|
|
1012
|
+
function _arrayWithoutHoles(r) {
|
|
1013
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
1014
|
+
}
|
|
1015
|
+
function _createForOfIteratorHelper(r, e) {
|
|
1016
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1017
|
+
if (!t) {
|
|
1018
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) {
|
|
1019
|
+
t && (r = t);
|
|
1020
|
+
var n = 0,
|
|
1021
|
+
F = function () {};
|
|
1022
|
+
return {
|
|
1023
|
+
s: F,
|
|
1024
|
+
n: function () {
|
|
1025
|
+
return n >= r.length ? {
|
|
1026
|
+
done: !0
|
|
1027
|
+
} : {
|
|
1028
|
+
done: !1,
|
|
1029
|
+
value: r[n++]
|
|
1030
|
+
};
|
|
1031
|
+
},
|
|
1032
|
+
e: function (r) {
|
|
1033
|
+
throw r;
|
|
1034
|
+
},
|
|
1035
|
+
f: F
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1039
|
+
}
|
|
1040
|
+
var o,
|
|
1041
|
+
a = !0,
|
|
1042
|
+
u = !1;
|
|
1043
|
+
return {
|
|
1044
|
+
s: function () {
|
|
1045
|
+
t = t.call(r);
|
|
1046
|
+
},
|
|
1047
|
+
n: function () {
|
|
1048
|
+
var r = t.next();
|
|
1049
|
+
return a = r.done, r;
|
|
1050
|
+
},
|
|
1051
|
+
e: function (r) {
|
|
1052
|
+
u = !0, o = r;
|
|
1053
|
+
},
|
|
1054
|
+
f: function () {
|
|
1055
|
+
try {
|
|
1056
|
+
a || null == t.return || t.return();
|
|
1057
|
+
} finally {
|
|
1058
|
+
if (u) throw o;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
function _defineProperty$1(e, r, t) {
|
|
1064
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1065
|
+
value: t,
|
|
1066
|
+
enumerable: !0,
|
|
1067
|
+
configurable: !0,
|
|
1068
|
+
writable: !0
|
|
1069
|
+
}) : e[r] = t, e;
|
|
1070
|
+
}
|
|
1071
|
+
function _extends$1() {
|
|
1072
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
|
|
1073
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1074
|
+
var t = arguments[e];
|
|
1075
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
1076
|
+
}
|
|
1077
|
+
return n;
|
|
1078
|
+
}, _extends$1.apply(null, arguments);
|
|
1079
|
+
}
|
|
1080
|
+
function _iterableToArray(r) {
|
|
1081
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
1082
|
+
}
|
|
1004
1083
|
function _iterableToArrayLimit(r, l) {
|
|
1005
1084
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1006
1085
|
if (null != t) {
|
|
@@ -1028,6 +1107,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
1028
1107
|
return a;
|
|
1029
1108
|
}
|
|
1030
1109
|
}
|
|
1110
|
+
function _nonIterableRest() {
|
|
1111
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1112
|
+
}
|
|
1113
|
+
function _nonIterableSpread() {
|
|
1114
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1115
|
+
}
|
|
1116
|
+
function _objectDestructuringEmpty(t) {
|
|
1117
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
1118
|
+
}
|
|
1031
1119
|
function ownKeys(e, r) {
|
|
1032
1120
|
var t = Object.keys(e);
|
|
1033
1121
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1049,6 +1137,32 @@ function _objectSpread2(e) {
|
|
|
1049
1137
|
}
|
|
1050
1138
|
return e;
|
|
1051
1139
|
}
|
|
1140
|
+
function _objectWithoutProperties(e, t) {
|
|
1141
|
+
if (null == e) return {};
|
|
1142
|
+
var o,
|
|
1143
|
+
r,
|
|
1144
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
1145
|
+
if (Object.getOwnPropertySymbols) {
|
|
1146
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1147
|
+
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
1148
|
+
}
|
|
1149
|
+
return i;
|
|
1150
|
+
}
|
|
1151
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
1152
|
+
if (null == r) return {};
|
|
1153
|
+
var t = {};
|
|
1154
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
1155
|
+
if (e.indexOf(n) >= 0) continue;
|
|
1156
|
+
t[n] = r[n];
|
|
1157
|
+
}
|
|
1158
|
+
return t;
|
|
1159
|
+
}
|
|
1160
|
+
function _slicedToArray(r, e) {
|
|
1161
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
1162
|
+
}
|
|
1163
|
+
function _toConsumableArray(r) {
|
|
1164
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
1165
|
+
}
|
|
1052
1166
|
function _toPrimitive(t, r) {
|
|
1053
1167
|
if ("object" != typeof t || !t) return t;
|
|
1054
1168
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1072,147 +1186,12 @@ function _typeof$1(o) {
|
|
|
1072
1186
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1073
1187
|
}, _typeof$1(o);
|
|
1074
1188
|
}
|
|
1075
|
-
function
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
enumerable: true,
|
|
1081
|
-
configurable: true,
|
|
1082
|
-
writable: true
|
|
1083
|
-
});
|
|
1084
|
-
} else {
|
|
1085
|
-
obj[key] = value;
|
|
1086
|
-
}
|
|
1087
|
-
return obj;
|
|
1088
|
-
}
|
|
1089
|
-
function _extends$1() {
|
|
1090
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
1091
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1092
|
-
var source = arguments[i];
|
|
1093
|
-
for (var key in source) {
|
|
1094
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1095
|
-
target[key] = source[key];
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
return target;
|
|
1100
|
-
};
|
|
1101
|
-
return _extends$1.apply(this, arguments);
|
|
1102
|
-
}
|
|
1103
|
-
function _objectDestructuringEmpty(obj) {
|
|
1104
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
1105
|
-
}
|
|
1106
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1107
|
-
if (source == null) return {};
|
|
1108
|
-
var target = {};
|
|
1109
|
-
for (var key in source) {
|
|
1110
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1111
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1112
|
-
target[key] = source[key];
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
return target;
|
|
1116
|
-
}
|
|
1117
|
-
function _objectWithoutProperties(source, excluded) {
|
|
1118
|
-
if (source == null) return {};
|
|
1119
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
1120
|
-
var key, i;
|
|
1121
|
-
if (Object.getOwnPropertySymbols) {
|
|
1122
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
1123
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
1124
|
-
key = sourceSymbolKeys[i];
|
|
1125
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1126
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
1127
|
-
target[key] = source[key];
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
return target;
|
|
1131
|
-
}
|
|
1132
|
-
function _slicedToArray(arr, i) {
|
|
1133
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
1134
|
-
}
|
|
1135
|
-
function _toConsumableArray(arr) {
|
|
1136
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
1137
|
-
}
|
|
1138
|
-
function _arrayWithoutHoles(arr) {
|
|
1139
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
1140
|
-
}
|
|
1141
|
-
function _arrayWithHoles(arr) {
|
|
1142
|
-
if (Array.isArray(arr)) return arr;
|
|
1143
|
-
}
|
|
1144
|
-
function _iterableToArray(iter) {
|
|
1145
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1146
|
-
}
|
|
1147
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1148
|
-
if (!o) return;
|
|
1149
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1150
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1151
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1152
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1153
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1154
|
-
}
|
|
1155
|
-
function _arrayLikeToArray(arr, len) {
|
|
1156
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
1157
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1158
|
-
return arr2;
|
|
1159
|
-
}
|
|
1160
|
-
function _nonIterableSpread() {
|
|
1161
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1162
|
-
}
|
|
1163
|
-
function _nonIterableRest() {
|
|
1164
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1165
|
-
}
|
|
1166
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
1167
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1168
|
-
if (!it) {
|
|
1169
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
|
|
1170
|
-
if (it) o = it;
|
|
1171
|
-
var i = 0;
|
|
1172
|
-
var F = function () {};
|
|
1173
|
-
return {
|
|
1174
|
-
s: F,
|
|
1175
|
-
n: function () {
|
|
1176
|
-
if (i >= o.length) return {
|
|
1177
|
-
done: true
|
|
1178
|
-
};
|
|
1179
|
-
return {
|
|
1180
|
-
done: false,
|
|
1181
|
-
value: o[i++]
|
|
1182
|
-
};
|
|
1183
|
-
},
|
|
1184
|
-
e: function (e) {
|
|
1185
|
-
throw e;
|
|
1186
|
-
},
|
|
1187
|
-
f: F
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1189
|
+
function _unsupportedIterableToArray(r, a) {
|
|
1190
|
+
if (r) {
|
|
1191
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
1192
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
1193
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
1191
1194
|
}
|
|
1192
|
-
var normalCompletion = true,
|
|
1193
|
-
didErr = false,
|
|
1194
|
-
err;
|
|
1195
|
-
return {
|
|
1196
|
-
s: function () {
|
|
1197
|
-
it = it.call(o);
|
|
1198
|
-
},
|
|
1199
|
-
n: function () {
|
|
1200
|
-
var step = it.next();
|
|
1201
|
-
normalCompletion = step.done;
|
|
1202
|
-
return step;
|
|
1203
|
-
},
|
|
1204
|
-
e: function (e) {
|
|
1205
|
-
didErr = true;
|
|
1206
|
-
err = e;
|
|
1207
|
-
},
|
|
1208
|
-
f: function () {
|
|
1209
|
-
try {
|
|
1210
|
-
if (!normalCompletion && it.return != null) it.return();
|
|
1211
|
-
} finally {
|
|
1212
|
-
if (didErr) throw err;
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
1195
|
}
|
|
1217
1196
|
|
|
1218
1197
|
var isRenderProps = function isRenderProps(children) {
|