@redsift/design-system-legacy 7.0.2 → 7.1.1-alpha.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/index.js +15 -0
- package/index.js.map +1 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -113,6 +113,7 @@ function _objectSpread2(target) {
|
|
|
113
113
|
return target;
|
|
114
114
|
}
|
|
115
115
|
function _defineProperty(obj, key, value) {
|
|
116
|
+
key = _toPropertyKey(key);
|
|
116
117
|
if (key in obj) {
|
|
117
118
|
Object.defineProperty(obj, key, {
|
|
118
119
|
value: value,
|
|
@@ -166,6 +167,20 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
166
167
|
}
|
|
167
168
|
return target;
|
|
168
169
|
}
|
|
170
|
+
function _toPrimitive(input, hint) {
|
|
171
|
+
if (typeof input !== "object" || input === null) return input;
|
|
172
|
+
var prim = input[Symbol.toPrimitive];
|
|
173
|
+
if (prim !== undefined) {
|
|
174
|
+
var res = prim.call(input, hint || "default");
|
|
175
|
+
if (typeof res !== "object") return res;
|
|
176
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
177
|
+
}
|
|
178
|
+
return (hint === "string" ? String : Number)(input);
|
|
179
|
+
}
|
|
180
|
+
function _toPropertyKey(arg) {
|
|
181
|
+
var key = _toPrimitive(arg, "string");
|
|
182
|
+
return typeof key === "symbol" ? key : String(key);
|
|
183
|
+
}
|
|
169
184
|
|
|
170
185
|
const _excluded$n = ["isLoading", "children", "color", "hoverColor", "flat", "flatIcon", "raised", "outlined", "loaderStyles", "danger", "white", "onClick", "type"];
|
|
171
186
|
const spin = keyframes`
|