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