@thecb/components 5.0.0-beta.2 → 5.0.0-beta.5
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 +284 -1213
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -12,6 +12,44 @@ var theme = _interopDefault(require('styled-theming'));
|
|
|
12
12
|
var reactRouterDom = require('react-router-dom');
|
|
13
13
|
var reactDom = _interopDefault(require('react-dom'));
|
|
14
14
|
|
|
15
|
+
function ownKeys(object, enumerableOnly) {
|
|
16
|
+
var keys = Object.keys(object);
|
|
17
|
+
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
|
|
21
|
+
if (enumerableOnly) {
|
|
22
|
+
symbols = symbols.filter(function (sym) {
|
|
23
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
keys.push.apply(keys, symbols);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return keys;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _objectSpread2(target) {
|
|
34
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
35
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
36
|
+
|
|
37
|
+
if (i % 2) {
|
|
38
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
39
|
+
_defineProperty(target, key, source[key]);
|
|
40
|
+
});
|
|
41
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
42
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
43
|
+
} else {
|
|
44
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
45
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return target;
|
|
51
|
+
}
|
|
52
|
+
|
|
15
53
|
function _typeof(obj) {
|
|
16
54
|
"@babel/helpers - typeof";
|
|
17
55
|
|
|
@@ -61,40 +99,6 @@ function _extends() {
|
|
|
61
99
|
return _extends.apply(this, arguments);
|
|
62
100
|
}
|
|
63
101
|
|
|
64
|
-
function ownKeys(object, enumerableOnly) {
|
|
65
|
-
var keys = Object.keys(object);
|
|
66
|
-
|
|
67
|
-
if (Object.getOwnPropertySymbols) {
|
|
68
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
69
|
-
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
70
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
71
|
-
});
|
|
72
|
-
keys.push.apply(keys, symbols);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
return keys;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function _objectSpread2(target) {
|
|
79
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
80
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
81
|
-
|
|
82
|
-
if (i % 2) {
|
|
83
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
84
|
-
_defineProperty(target, key, source[key]);
|
|
85
|
-
});
|
|
86
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
87
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
88
|
-
} else {
|
|
89
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
90
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return target;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
102
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
99
103
|
if (source == null) return {};
|
|
100
104
|
var target = {};
|
|
@@ -160,18 +164,21 @@ function _arrayWithHoles(arr) {
|
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
function _iterableToArray(iter) {
|
|
163
|
-
if (typeof Symbol !== "undefined" && Symbol.iterator
|
|
167
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
164
168
|
}
|
|
165
169
|
|
|
166
170
|
function _iterableToArrayLimit(arr, i) {
|
|
167
|
-
|
|
171
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
172
|
+
|
|
173
|
+
if (_i == null) return;
|
|
168
174
|
var _arr = [];
|
|
169
175
|
var _n = true;
|
|
170
176
|
var _d = false;
|
|
171
|
-
|
|
177
|
+
|
|
178
|
+
var _s, _e;
|
|
172
179
|
|
|
173
180
|
try {
|
|
174
|
-
for (
|
|
181
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
175
182
|
_arr.push(_s.value);
|
|
176
183
|
|
|
177
184
|
if (i && _arr.length === i) break;
|
|
@@ -4635,6 +4642,7 @@ var fallbackValues = {
|
|
|
4635
4642
|
fontSize: fontSize
|
|
4636
4643
|
};
|
|
4637
4644
|
|
|
4645
|
+
var _excluded = ["variant"];
|
|
4638
4646
|
/*
|
|
4639
4647
|
themeContext: { name: "default", values: {JSON_THEME_VALUES_HERE} }
|
|
4640
4648
|
|
|
@@ -4735,7 +4743,7 @@ var themeComponent = function themeComponent(component, componentThemeId, fallba
|
|
|
4735
4743
|
|
|
4736
4744
|
var _ref7$variant = _ref7.variant,
|
|
4737
4745
|
variant = _ref7$variant === void 0 ? defaultVariant : _ref7$variant,
|
|
4738
|
-
props = _objectWithoutProperties(_ref7,
|
|
4746
|
+
props = _objectWithoutProperties(_ref7, _excluded);
|
|
4739
4747
|
|
|
4740
4748
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
4741
4749
|
var metadata = (_themeContext$metadat = themeContext === null || themeContext === void 0 ? void 0 : themeContext.metadata) !== null && _themeContext$metadat !== void 0 ? _themeContext$metadat : {};
|
|
@@ -4977,36 +4985,8 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
4977
4985
|
ERROR_COLOR: ERROR_COLOR
|
|
4978
4986
|
});
|
|
4979
4987
|
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
_templateObject3 = function _templateObject3() {
|
|
4984
|
-
return data;
|
|
4985
|
-
};
|
|
4986
|
-
|
|
4987
|
-
return data;
|
|
4988
|
-
}
|
|
4989
|
-
|
|
4990
|
-
function _templateObject2() {
|
|
4991
|
-
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
4992
|
-
|
|
4993
|
-
_templateObject2 = function _templateObject2() {
|
|
4994
|
-
return data;
|
|
4995
|
-
};
|
|
4996
|
-
|
|
4997
|
-
return data;
|
|
4998
|
-
}
|
|
4999
|
-
|
|
5000
|
-
function _templateObject() {
|
|
5001
|
-
var data = _taggedTemplateLiteral(["\n --font-size: ", ";\n font-size: var(--font-size);\n line-height: calc(1.5 * var(--font-size));\n font-weight: ", ";\n font-family: ", ";\n color: ", ";\n\n &:hover {\n ", "\n }\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n\n ", "\n"]);
|
|
5002
|
-
|
|
5003
|
-
_templateObject = function _templateObject() {
|
|
5004
|
-
return data;
|
|
5005
|
-
};
|
|
5006
|
-
|
|
5007
|
-
return data;
|
|
5008
|
-
}
|
|
5009
|
-
var TextSpan = styled__default.span(_templateObject(), function (_ref) {
|
|
4988
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
4989
|
+
var TextSpan = styled__default.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n --font-size: ", ";\n font-size: var(--font-size);\n line-height: calc(1.5 * var(--font-size));\n font-weight: ", ";\n font-family: ", ";\n color: ", ";\n\n &:hover {\n ", "\n }\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
5010
4990
|
var fontSize = _ref.fontSize;
|
|
5011
4991
|
return fontSize;
|
|
5012
4992
|
}, function (_ref2) {
|
|
@@ -5020,11 +5000,11 @@ var TextSpan = styled__default.span(_templateObject(), function (_ref) {
|
|
|
5020
5000
|
return color;
|
|
5021
5001
|
}, function (_ref5) {
|
|
5022
5002
|
var hoverStyles = _ref5.hoverStyles;
|
|
5023
|
-
return styled.css(_templateObject2(), hoverStyles);
|
|
5003
|
+
return styled.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n "])), hoverStyles);
|
|
5024
5004
|
}, ROYAL_BLUE, function (_ref6) {
|
|
5025
5005
|
var disabled = _ref6.disabled,
|
|
5026
5006
|
disabledStyles = _ref6.disabledStyles;
|
|
5027
|
-
return disabled && styled.css(_templateObject3(), disabledStyles);
|
|
5007
|
+
return disabled && styled.css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n "])), disabledStyles);
|
|
5028
5008
|
}, function (_ref7) {
|
|
5029
5009
|
var extraStyles = _ref7.extraStyles;
|
|
5030
5010
|
return extraStyles;
|
|
@@ -6147,6 +6127,8 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6147
6127
|
checkDeniedCards: checkDeniedCards
|
|
6148
6128
|
});
|
|
6149
6129
|
|
|
6130
|
+
var _excluded$1 = ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
6131
|
+
|
|
6150
6132
|
var Text = function Text(_ref) {
|
|
6151
6133
|
var themeValues = _ref.themeValues,
|
|
6152
6134
|
_ref$weight = _ref.weight,
|
|
@@ -6161,7 +6143,7 @@ var Text = function Text(_ref) {
|
|
|
6161
6143
|
as = _ref.as,
|
|
6162
6144
|
dataQa = _ref.dataQa,
|
|
6163
6145
|
children = _ref.children,
|
|
6164
|
-
rest = _objectWithoutProperties(_ref,
|
|
6146
|
+
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
6165
6147
|
|
|
6166
6148
|
return /*#__PURE__*/React__default.createElement(TextSpan, _extends({
|
|
6167
6149
|
fontSize: themeValues.fontSize,
|
|
@@ -6179,75 +6161,9 @@ var Text = function Text(_ref) {
|
|
|
6179
6161
|
|
|
6180
6162
|
var Text$1 = themeComponent(Text, "Text", fallbackValues, "p");
|
|
6181
6163
|
|
|
6182
|
-
|
|
6183
|
-
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
6184
|
-
|
|
6185
|
-
_templateObject7 = function _templateObject7() {
|
|
6186
|
-
return data;
|
|
6187
|
-
};
|
|
6188
|
-
|
|
6189
|
-
return data;
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
|
-
function _templateObject6() {
|
|
6193
|
-
var data = _taggedTemplateLiteral(["\n display: none;\n "]);
|
|
6194
|
-
|
|
6195
|
-
_templateObject6 = function _templateObject6() {
|
|
6196
|
-
return data;
|
|
6197
|
-
};
|
|
6198
|
-
|
|
6199
|
-
return data;
|
|
6200
|
-
}
|
|
6201
|
-
|
|
6202
|
-
function _templateObject5() {
|
|
6203
|
-
var data = _taggedTemplateLiteral(["\n ", "\n ", "\n "]);
|
|
6204
|
-
|
|
6205
|
-
_templateObject5 = function _templateObject5() {
|
|
6206
|
-
return data;
|
|
6207
|
-
};
|
|
6208
|
-
|
|
6209
|
-
return data;
|
|
6210
|
-
}
|
|
6211
|
-
|
|
6212
|
-
function _templateObject4() {
|
|
6213
|
-
var data = _taggedTemplateLiteral(["\n ", "\n ", "\n "]);
|
|
6214
|
-
|
|
6215
|
-
_templateObject4 = function _templateObject4() {
|
|
6216
|
-
return data;
|
|
6217
|
-
};
|
|
6218
|
-
|
|
6219
|
-
return data;
|
|
6220
|
-
}
|
|
6221
|
-
|
|
6222
|
-
function _templateObject3$1() {
|
|
6223
|
-
var data = _taggedTemplateLiteral(["\n outline: 3px solid ", ";\n outline-offset: 2px;\n ", "\n "]);
|
|
6224
|
-
|
|
6225
|
-
_templateObject3$1 = function _templateObject3() {
|
|
6226
|
-
return data;
|
|
6227
|
-
};
|
|
6228
|
-
|
|
6229
|
-
return data;
|
|
6230
|
-
}
|
|
6231
|
-
|
|
6232
|
-
function _templateObject2$1() {
|
|
6233
|
-
var data = _taggedTemplateLiteral(["\n ", "\n ", "\n "]);
|
|
6234
|
-
|
|
6235
|
-
_templateObject2$1 = function _templateObject2() {
|
|
6236
|
-
return data;
|
|
6237
|
-
};
|
|
6238
|
-
|
|
6239
|
-
return data;
|
|
6240
|
-
}
|
|
6241
|
-
|
|
6242
|
-
function _templateObject$1() {
|
|
6243
|
-
var data = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n padding: ", ";\n border: ", ";\n box-shadow: ", ";\n background-color: ", ";\n min-height: ", ";\n ", "\n min-width: ", ";\n max-width: ", ";\n color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border: ", ";\n text-align: ", ";\n\n &:hover {\n ", "\n }\n\n &:focus {\n ", "\n }\n\n &:active {\n ", "\n }\n\n &:disabled {\n ", "\n }\n\n & * {\n color: ", ";\n }\n\n ", "\n ", "\n"]);
|
|
6244
|
-
|
|
6245
|
-
_templateObject$1 = function _templateObject() {
|
|
6246
|
-
return data;
|
|
6247
|
-
};
|
|
6164
|
+
var _excluded$2 = ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"];
|
|
6248
6165
|
|
|
6249
|
-
|
|
6250
|
-
}
|
|
6166
|
+
var _templateObject$1, _templateObject2$1, _templateObject3$1, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
6251
6167
|
/*
|
|
6252
6168
|
The child span selector on hover styles targets the text inside of buttons when a button is hovered,
|
|
6253
6169
|
as long as the box wrapper has an "as" prop equal to "button"
|
|
@@ -6276,13 +6192,13 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6276
6192
|
hiddenStyles = _ref.hiddenStyles,
|
|
6277
6193
|
ariaControls = _ref.ariaControls,
|
|
6278
6194
|
ariaLabel = _ref.ariaLabel,
|
|
6279
|
-
props = _objectWithoutProperties(_ref,
|
|
6195
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
6280
6196
|
|
|
6281
6197
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
6282
6198
|
"aria-controls": ariaControls,
|
|
6283
6199
|
"aria-label": ariaLabel
|
|
6284
6200
|
}, props));
|
|
6285
|
-
})(_templateObject$1(), function (_ref2) {
|
|
6201
|
+
})(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n padding: ", ";\n border: ", ";\n box-shadow: ", ";\n background-color: ", ";\n min-height: ", ";\n ", "\n min-width: ", ";\n max-width: ", ";\n color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border: ", ";\n text-align: ", ";\n\n &:hover {\n ", "\n }\n\n &:focus {\n ", "\n }\n\n &:active {\n ", "\n }\n\n &:disabled {\n ", "\n }\n\n & * {\n color: ", ";\n }\n\n ", "\n ", "\n"])), function (_ref2) {
|
|
6286
6202
|
var padding = _ref2.padding;
|
|
6287
6203
|
return padding;
|
|
6288
6204
|
}, function (_ref3) {
|
|
@@ -6326,30 +6242,31 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6326
6242
|
}, function (_ref15) {
|
|
6327
6243
|
var hoverStyles = _ref15.hoverStyles,
|
|
6328
6244
|
as = _ref15.as;
|
|
6329
|
-
return styled.css(_templateObject2$1(), hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6245
|
+
return styled.css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n ", "\n ", "\n "])), hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6330
6246
|
}, function (_ref16) {
|
|
6331
6247
|
var as = _ref16.as;
|
|
6332
|
-
return styled.css(_templateObject3$1(), ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
6248
|
+
return styled.css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteral(["\n outline: 3px solid ", ";\n outline-offset: 2px;\n ", "\n "])), ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
6333
6249
|
}, function (_ref17) {
|
|
6334
6250
|
var activeStyles = _ref17.activeStyles,
|
|
6335
6251
|
as = _ref17.as;
|
|
6336
|
-
return styled.css(_templateObject4(), activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6252
|
+
return styled.css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", "\n ", "\n "])), activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6337
6253
|
}, function (_ref18) {
|
|
6338
6254
|
var disabledStyles = _ref18.disabledStyles,
|
|
6339
6255
|
as = _ref18.as;
|
|
6340
|
-
return styled.css(_templateObject5(), disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6256
|
+
return styled.css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", "\n ", "\n "])), disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6341
6257
|
}, function (_ref19) {
|
|
6342
6258
|
var color = _ref19.color;
|
|
6343
6259
|
return color;
|
|
6344
6260
|
}, function (_ref20) {
|
|
6345
6261
|
var hiddenStyles = _ref20.hiddenStyles;
|
|
6346
|
-
return hiddenStyles && styled.css(_templateObject6());
|
|
6262
|
+
return hiddenStyles && styled.css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: none;\n "])));
|
|
6347
6263
|
}, function (_ref21) {
|
|
6348
6264
|
var extraStyles = _ref21.extraStyles;
|
|
6349
|
-
return styled.css(_templateObject7(), extraStyles);
|
|
6265
|
+
return styled.css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", "\n "])), extraStyles);
|
|
6350
6266
|
});
|
|
6351
6267
|
/* eslint-enable no-unused-vars */
|
|
6352
6268
|
|
|
6269
|
+
var _excluded$3 = ["padding", "borderSize", "borderColor", "borderRadius", "boxShadow", "background", "color", "minHeight", "width", "minWidth", "maxWidth", "borderWidthOverride", "border", "textAlign", "hoverStyles", "activeStyles", "disabledStyles", "variant", "as", "onClick", "onKeyDown", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur", "onTouchEnd", "theme", "hiddenStyles", "extraStyles", "dataQa", "children"];
|
|
6353
6270
|
/*
|
|
6354
6271
|
Box component to create generic boxes
|
|
6355
6272
|
Supply padding, border, background, and color values
|
|
@@ -6391,7 +6308,7 @@ var Box = function Box(_ref) {
|
|
|
6391
6308
|
extraStyles = _ref.extraStyles,
|
|
6392
6309
|
dataQa = _ref.dataQa,
|
|
6393
6310
|
children = _ref.children,
|
|
6394
|
-
rest = _objectWithoutProperties(_ref,
|
|
6311
|
+
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
6395
6312
|
|
|
6396
6313
|
return /*#__PURE__*/React__default.createElement(BoxWrapper, _extends({
|
|
6397
6314
|
padding: padding,
|
|
@@ -6427,16 +6344,8 @@ var Box = function Box(_ref) {
|
|
|
6427
6344
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6428
6345
|
};
|
|
6429
6346
|
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
_templateObject$2 = function _templateObject() {
|
|
6434
|
-
return data;
|
|
6435
|
-
};
|
|
6436
|
-
|
|
6437
|
-
return data;
|
|
6438
|
-
}
|
|
6439
|
-
var CenterWrapper = styled__default.div(_templateObject$2(), function (_ref) {
|
|
6347
|
+
var _templateObject$2;
|
|
6348
|
+
var CenterWrapper = styled__default.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n box-sizing: content-box;\n margin-left: auto;\n margin-right: auto;\n max-width: ", ";\n padding-left: ", ";\n padding-right: ", ";\n ", ";\n"])), function (_ref) {
|
|
6440
6349
|
var maxWidth = _ref.maxWidth;
|
|
6441
6350
|
return maxWidth;
|
|
6442
6351
|
}, function (_ref2) {
|
|
@@ -6450,6 +6359,7 @@ var CenterWrapper = styled__default.div(_templateObject$2(), function (_ref) {
|
|
|
6450
6359
|
return intrinsic ? "\n display: flex;\n flex-direction: column;\n align-items: center;\n " : "";
|
|
6451
6360
|
});
|
|
6452
6361
|
|
|
6362
|
+
var _excluded$4 = ["maxWidth", "gutters", "intrinsic", "children"];
|
|
6453
6363
|
/*
|
|
6454
6364
|
Component to horizontally center itself (with auto right and left margins)
|
|
6455
6365
|
Use intrinsic prop if you want its children that are narrower than the max-width
|
|
@@ -6462,7 +6372,7 @@ var Center = function Center(_ref) {
|
|
|
6462
6372
|
_ref$intrinsic = _ref.intrinsic,
|
|
6463
6373
|
intrinsic = _ref$intrinsic === void 0 ? false : _ref$intrinsic,
|
|
6464
6374
|
children = _ref.children,
|
|
6465
|
-
rest = _objectWithoutProperties(_ref,
|
|
6375
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
6466
6376
|
|
|
6467
6377
|
return /*#__PURE__*/React__default.createElement(CenterWrapper, _extends({
|
|
6468
6378
|
maxWidth: maxWidth,
|
|
@@ -6471,33 +6381,17 @@ var Center = function Center(_ref) {
|
|
|
6471
6381
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6472
6382
|
};
|
|
6473
6383
|
|
|
6474
|
-
|
|
6475
|
-
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap: ", ";\n justify-content: ", ";\n align-items: ", ";\n margin: calc(", " / 2 * -1);\n min-height: ", ";\n min-width: ", ";\n > * {\n margin: calc(", " / 2);\n }\n"]);
|
|
6384
|
+
var _excluded$5 = ["overflow"];
|
|
6476
6385
|
|
|
6477
|
-
|
|
6478
|
-
return data;
|
|
6479
|
-
};
|
|
6480
|
-
|
|
6481
|
-
return data;
|
|
6482
|
-
}
|
|
6483
|
-
|
|
6484
|
-
function _templateObject$3() {
|
|
6485
|
-
var data = _taggedTemplateLiteral(["\n overflow: ", ";\n box-sizing: border-box;\n justify-self: ", ";\n align-self: ", ";\n flex-grow: ", ";\n ", ";\n"]);
|
|
6486
|
-
|
|
6487
|
-
_templateObject$3 = function _templateObject() {
|
|
6488
|
-
return data;
|
|
6489
|
-
};
|
|
6490
|
-
|
|
6491
|
-
return data;
|
|
6492
|
-
}
|
|
6386
|
+
var _templateObject$3, _templateObject2$2;
|
|
6493
6387
|
/* eslint-disable no-unused-vars */
|
|
6494
6388
|
|
|
6495
6389
|
var ClusterWrapper = styled__default(function (_ref) {
|
|
6496
6390
|
var overflow = _ref.overflow,
|
|
6497
|
-
props = _objectWithoutProperties(_ref,
|
|
6391
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
6498
6392
|
|
|
6499
6393
|
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6500
|
-
})(_templateObject$3(), function (_ref2) {
|
|
6394
|
+
})(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n overflow: ", ";\n box-sizing: border-box;\n justify-self: ", ";\n align-self: ", ";\n flex-grow: ", ";\n ", ";\n"])), function (_ref2) {
|
|
6501
6395
|
var overflow = _ref2.overflow;
|
|
6502
6396
|
return overflow ? "visible" : "hidden";
|
|
6503
6397
|
}, function (_ref3) {
|
|
@@ -6513,7 +6407,7 @@ var ClusterWrapper = styled__default(function (_ref) {
|
|
|
6513
6407
|
var extraStyles = _ref6.extraStyles;
|
|
6514
6408
|
return extraStyles;
|
|
6515
6409
|
});
|
|
6516
|
-
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref7) {
|
|
6410
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap: ", ";\n justify-content: ", ";\n align-items: ", ";\n margin: calc(", " / 2 * -1);\n min-height: ", ";\n min-width: ", ";\n > * {\n margin: calc(", " / 2);\n }\n"])), function (_ref7) {
|
|
6517
6411
|
var nowrap = _ref7.nowrap;
|
|
6518
6412
|
return nowrap ? "nowrap" : "wrap";
|
|
6519
6413
|
}, function (_ref8) {
|
|
@@ -6536,6 +6430,7 @@ var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_r
|
|
|
6536
6430
|
return childGap;
|
|
6537
6431
|
});
|
|
6538
6432
|
|
|
6433
|
+
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
|
|
6539
6434
|
/*
|
|
6540
6435
|
Cluster components suit any groups of elements that differ in
|
|
6541
6436
|
length and are liable to wrap. Buttons that appear together at the
|
|
@@ -6559,7 +6454,7 @@ var Cluster = function Cluster(_ref) {
|
|
|
6559
6454
|
flexGrow = _ref.flexGrow,
|
|
6560
6455
|
extraStyles = _ref.extraStyles,
|
|
6561
6456
|
children = _ref.children,
|
|
6562
|
-
rest = _objectWithoutProperties(_ref,
|
|
6457
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
6563
6458
|
|
|
6564
6459
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
6565
6460
|
overflow: overflow
|
|
@@ -6578,16 +6473,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
6578
6473
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6579
6474
|
};
|
|
6580
6475
|
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
_templateObject$4 = function _templateObject() {
|
|
6585
|
-
return data;
|
|
6586
|
-
};
|
|
6587
|
-
|
|
6588
|
-
return data;
|
|
6589
|
-
}
|
|
6590
|
-
var GridWrapper = styled__default.div(_templateObject$4(), function (_ref) {
|
|
6476
|
+
var _templateObject$4;
|
|
6477
|
+
var GridWrapper = styled__default.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n display: grid;\n grid-gap: ", ";\n grid-template-columns: ", ";\n\n @supports (width: min(", ", 100%)) {\n & {\n grid-template-columns: repeat(\n auto-fill,\n minmax(\n ", ",\n ", "\n )\n );\n }\n }\n"])), function (_ref) {
|
|
6591
6478
|
var columnGap = _ref.columnGap;
|
|
6592
6479
|
return columnGap;
|
|
6593
6480
|
}, function (_ref2) {
|
|
@@ -6606,6 +6493,8 @@ var GridWrapper = styled__default.div(_templateObject$4(), function (_ref) {
|
|
|
6606
6493
|
return maxColWidth;
|
|
6607
6494
|
});
|
|
6608
6495
|
|
|
6496
|
+
var _excluded$7 = ["columnGap", "minColWidth", "maxColWidth", "children"];
|
|
6497
|
+
|
|
6609
6498
|
var Grid = function Grid(_ref) {
|
|
6610
6499
|
var columnGap = _ref.columnGap,
|
|
6611
6500
|
_ref$minColWidth = _ref.minColWidth,
|
|
@@ -6613,7 +6502,7 @@ var Grid = function Grid(_ref) {
|
|
|
6613
6502
|
_ref$maxColWidth = _ref.maxColWidth,
|
|
6614
6503
|
maxColWidth = _ref$maxColWidth === void 0 ? "1fr" : _ref$maxColWidth,
|
|
6615
6504
|
children = _ref.children,
|
|
6616
|
-
rest = _objectWithoutProperties(_ref,
|
|
6505
|
+
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
6617
6506
|
|
|
6618
6507
|
var ref = React.useRef();
|
|
6619
6508
|
|
|
@@ -6641,26 +6530,10 @@ var Grid = function Grid(_ref) {
|
|
|
6641
6530
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6642
6531
|
};
|
|
6643
6532
|
|
|
6644
|
-
|
|
6645
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n box-sizing: border-box;\n margin: calc(", " / 2 * -1);\n\n > * {\n margin: calc(", " / 2);\n flex-grow: 1;\n ", ";\n ", "\n }\n\n ", "\n\n ", "\n"]);
|
|
6646
|
-
|
|
6647
|
-
_templateObject2$3 = function _templateObject2() {
|
|
6648
|
-
return data;
|
|
6649
|
-
};
|
|
6650
|
-
|
|
6651
|
-
return data;
|
|
6652
|
-
}
|
|
6653
|
-
|
|
6654
|
-
function _templateObject$5() {
|
|
6655
|
-
var data = _taggedTemplateLiteral(["\n overflow: visible;\n box-sizing: border-box;\n\n ", "\n"]);
|
|
6656
|
-
|
|
6657
|
-
_templateObject$5 = function _templateObject() {
|
|
6658
|
-
return data;
|
|
6659
|
-
};
|
|
6533
|
+
var _excluded$8 = ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"];
|
|
6660
6534
|
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
var SidebarWrapper = styled__default.div(_templateObject$5(), function (_ref) {
|
|
6535
|
+
var _templateObject$5, _templateObject2$3;
|
|
6536
|
+
var SidebarWrapper = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n overflow: visible;\n box-sizing: border-box;\n\n ", "\n"])), function (_ref) {
|
|
6664
6537
|
var fullHeight = _ref.fullHeight;
|
|
6665
6538
|
return fullHeight ? "height: 100%;" : "";
|
|
6666
6539
|
});
|
|
@@ -6671,10 +6544,10 @@ function (_ref2) {
|
|
|
6671
6544
|
contentMinWidth = _ref2.contentMinWidth,
|
|
6672
6545
|
minHeight = _ref2.minHeight,
|
|
6673
6546
|
fullHeight = _ref2.fullHeight,
|
|
6674
|
-
props = _objectWithoutProperties(_ref2,
|
|
6547
|
+
props = _objectWithoutProperties(_ref2, _excluded$8);
|
|
6675
6548
|
|
|
6676
6549
|
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6677
|
-
})(_templateObject2$3(), function (_ref3) {
|
|
6550
|
+
})(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n box-sizing: border-box;\n margin: calc(", " / 2 * -1);\n\n > * {\n margin: calc(", " / 2);\n flex-grow: 1;\n ", ";\n ", "\n }\n\n ", "\n\n ", "\n"])), function (_ref3) {
|
|
6678
6551
|
var childGap = _ref3.childGap;
|
|
6679
6552
|
return childGap;
|
|
6680
6553
|
}, function (_ref4) {
|
|
@@ -6696,6 +6569,7 @@ function (_ref2) {
|
|
|
6696
6569
|
return fullHeight ? "min-height: 100%;" : "";
|
|
6697
6570
|
});
|
|
6698
6571
|
|
|
6572
|
+
var _excluded$9 = ["childGap", "width", "sidebarOnRight", "contentMinWidth", "fullHeight", "minHeight", "children"];
|
|
6699
6573
|
/*
|
|
6700
6574
|
Component to assist in creating layouts with some element and a sidebar next to it
|
|
6701
6575
|
Sidebar takes a width value, this is the ideal target with, and what the sidebar
|
|
@@ -6721,7 +6595,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
6721
6595
|
fullHeight = _ref$fullHeight === void 0 ? false : _ref$fullHeight,
|
|
6722
6596
|
minHeight = _ref.minHeight,
|
|
6723
6597
|
children = _ref.children,
|
|
6724
|
-
rest = _objectWithoutProperties(_ref,
|
|
6598
|
+
rest = _objectWithoutProperties(_ref, _excluded$9);
|
|
6725
6599
|
|
|
6726
6600
|
return /*#__PURE__*/React__default.createElement(SidebarWrapper, _extends({
|
|
6727
6601
|
fullHeight: fullHeight,
|
|
@@ -6736,16 +6610,8 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
6736
6610
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6737
6611
|
};
|
|
6738
6612
|
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
_templateObject$6 = function _templateObject() {
|
|
6743
|
-
return data;
|
|
6744
|
-
};
|
|
6745
|
-
|
|
6746
|
-
return data;
|
|
6747
|
-
}
|
|
6748
|
-
var StackWrapper = styled__default.div(_templateObject$6(), function (_ref) {
|
|
6613
|
+
var _templateObject$6;
|
|
6614
|
+
var StackWrapper = styled__default.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-direction: ", ";\n justify-content: ", ";\n height: ", ";\n\n > * {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n > * + * {\n ", "\n }\n\n ", ";\n"])), function (_ref) {
|
|
6749
6615
|
var direction = _ref.direction;
|
|
6750
6616
|
return direction;
|
|
6751
6617
|
}, function (_ref2) {
|
|
@@ -6764,6 +6630,7 @@ var StackWrapper = styled__default.div(_templateObject$6(), function (_ref) {
|
|
|
6764
6630
|
return bottomItem ? "\n > :nth-child(".concat(bottomItem, ") {\n ").concat(direction === "row" ? "margin-left: auto;" : "margin-top: auto;", "\n }\n ") : "";
|
|
6765
6631
|
});
|
|
6766
6632
|
|
|
6633
|
+
var _excluded$a = ["childGap", "bottomItem", "fullHeight", "children", "direction", "justify"];
|
|
6767
6634
|
/*
|
|
6768
6635
|
Component to impose margin-top between a list of child elements
|
|
6769
6636
|
Useful for things like sidebars and button lists
|
|
@@ -6784,7 +6651,7 @@ var Stack = function Stack(_ref) {
|
|
|
6784
6651
|
_ref$direction = _ref.direction,
|
|
6785
6652
|
direction = _ref$direction === void 0 ? "column" : _ref$direction,
|
|
6786
6653
|
justify = _ref.justify,
|
|
6787
|
-
rest = _objectWithoutProperties(_ref,
|
|
6654
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
6788
6655
|
|
|
6789
6656
|
return /*#__PURE__*/React__default.createElement(StackWrapper, _extends({
|
|
6790
6657
|
childGap: childGap,
|
|
@@ -6795,16 +6662,8 @@ var Stack = function Stack(_ref) {
|
|
|
6795
6662
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6796
6663
|
};
|
|
6797
6664
|
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
_templateObject$7 = function _templateObject() {
|
|
6802
|
-
return data;
|
|
6803
|
-
};
|
|
6804
|
-
|
|
6805
|
-
return data;
|
|
6806
|
-
}
|
|
6807
|
-
var CoverOuterContainer = styled__default.div(_templateObject$7(), function (_ref) {
|
|
6665
|
+
var _templateObject$7;
|
|
6666
|
+
var CoverOuterContainer = styled__default.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n min-height: ", ";\n padding: ", ";\n min-width: ", ";\n\n > * {\n margin-top: ", ";\n margin-bottom: ", ";\n }\n\n > :first-child {\n margin-top: 0;\n }\n\n ", "\n\n ", "\n\n > :last-child {\n margin-bottom: 0;\n }\n"])), function (_ref) {
|
|
6808
6667
|
var minHeight = _ref.minHeight;
|
|
6809
6668
|
return minHeight;
|
|
6810
6669
|
}, function (_ref2) {
|
|
@@ -6827,6 +6686,7 @@ var CoverOuterContainer = styled__default.div(_templateObject$7(), function (_re
|
|
|
6827
6686
|
return centerOverride ? "> :nth-child(2) {margin-top: 0; margin-bottom: auto;}" : "> :nth-child(2) {margin-top: auto; margin-bottom: auto;}";
|
|
6828
6687
|
});
|
|
6829
6688
|
|
|
6689
|
+
var _excluded$b = ["minHeight", "childGap", "padding", "fillCenter", "singleChild", "centerOverride", "children"];
|
|
6830
6690
|
/*
|
|
6831
6691
|
The Cover component is used when you want to have one center element
|
|
6832
6692
|
and an optional top/header element and/or an optional bottom/footer element.
|
|
@@ -6856,7 +6716,7 @@ var Cover = function Cover(_ref) {
|
|
|
6856
6716
|
singleChild = _ref.singleChild,
|
|
6857
6717
|
centerOverride = _ref.centerOverride,
|
|
6858
6718
|
children = _ref.children,
|
|
6859
|
-
rest = _objectWithoutProperties(_ref,
|
|
6719
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
6860
6720
|
|
|
6861
6721
|
return /*#__PURE__*/React__default.createElement(CoverOuterContainer, _extends({
|
|
6862
6722
|
minHeight: minHeight,
|
|
@@ -6867,21 +6727,14 @@ var Cover = function Cover(_ref) {
|
|
|
6867
6727
|
}, rest), singleChild ? /*#__PURE__*/React__default.createElement("div", null) : /*#__PURE__*/React__default.createElement(React.Fragment, null), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)), singleChild ? /*#__PURE__*/React__default.createElement("div", null) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
|
|
6868
6728
|
};
|
|
6869
6729
|
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
_templateObject$8 = function _templateObject() {
|
|
6874
|
-
return data;
|
|
6875
|
-
};
|
|
6876
|
-
|
|
6877
|
-
return data;
|
|
6878
|
-
}
|
|
6879
|
-
var FrameOuterContainer = styled__default.div(_templateObject$8(), function (_ref) {
|
|
6730
|
+
var _templateObject$8;
|
|
6731
|
+
var FrameOuterContainer = styled__default.div(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n padding-bottom: ", ";\n position: relative;\n\n > * {\n overflow: hidden;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n > img,\n > video {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n"])), function (_ref) {
|
|
6880
6732
|
var numerator = _ref.numerator,
|
|
6881
6733
|
denominator = _ref.denominator;
|
|
6882
6734
|
return "calc((".concat(numerator, " / ").concat(denominator, ") * 100%)");
|
|
6883
6735
|
});
|
|
6884
6736
|
|
|
6737
|
+
var _excluded$c = ["numerator", "denominator", "children"];
|
|
6885
6738
|
/*
|
|
6886
6739
|
The Frame component is used for cropping content to a specific aspect ratio.
|
|
6887
6740
|
The aspect ratio is supplied by the numerator and denominator props.
|
|
@@ -6901,7 +6754,7 @@ var Frame = function Frame(_ref) {
|
|
|
6901
6754
|
_ref$denominator = _ref.denominator,
|
|
6902
6755
|
denominator = _ref$denominator === void 0 ? 1 : _ref$denominator,
|
|
6903
6756
|
children = _ref.children,
|
|
6904
|
-
rest = _objectWithoutProperties(_ref,
|
|
6757
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
6905
6758
|
|
|
6906
6759
|
return /*#__PURE__*/React__default.createElement(FrameOuterContainer, _extends({
|
|
6907
6760
|
numerator: numerator,
|
|
@@ -6909,37 +6762,9 @@ var Frame = function Frame(_ref) {
|
|
|
6909
6762
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6910
6763
|
};
|
|
6911
6764
|
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
_templateObject3$2 = function _templateObject3() {
|
|
6916
|
-
return data;
|
|
6917
|
-
};
|
|
6918
|
-
|
|
6919
|
-
return data;
|
|
6920
|
-
}
|
|
6921
|
-
|
|
6922
|
-
function _templateObject2$4() {
|
|
6923
|
-
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n overflow: hidden;\n padding: ", ";\n margin: ", ";\n ", "\n\n > * {\n flex-grow: 1;\n ", ";\n ", "\n ", "\n }\n\n ", "\n\n ", "\n\n ", "\n"]);
|
|
6924
|
-
|
|
6925
|
-
_templateObject2$4 = function _templateObject2() {
|
|
6926
|
-
return data;
|
|
6927
|
-
};
|
|
6928
|
-
|
|
6929
|
-
return data;
|
|
6930
|
-
}
|
|
6931
|
-
|
|
6932
|
-
function _templateObject$9() {
|
|
6933
|
-
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: block;\n"]);
|
|
6934
|
-
|
|
6935
|
-
_templateObject$9 = function _templateObject() {
|
|
6936
|
-
return data;
|
|
6937
|
-
};
|
|
6938
|
-
|
|
6939
|
-
return data;
|
|
6940
|
-
}
|
|
6941
|
-
var SwitcherOuterContainer = styled__default.div(_templateObject$9());
|
|
6942
|
-
var SwitcherInnerContainer = styled__default.div(_templateObject2$4(), function (_ref) {
|
|
6765
|
+
var _templateObject$9, _templateObject2$4, _templateObject3$2;
|
|
6766
|
+
var SwitcherOuterContainer = styled__default.div(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: block;\n"])));
|
|
6767
|
+
var SwitcherInnerContainer = styled__default.div(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n flex-wrap: wrap;\n overflow: hidden;\n padding: ", ";\n margin: ", ";\n ", "\n\n > * {\n flex-grow: 1;\n ", ";\n ", "\n ", "\n }\n\n ", "\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
6943
6768
|
var padding = _ref.padding;
|
|
6944
6769
|
return padding;
|
|
6945
6770
|
}, function (_ref2) {
|
|
@@ -6968,9 +6793,10 @@ var SwitcherInnerContainer = styled__default.div(_templateObject2$4(), function
|
|
|
6968
6793
|
return maxChildren ? "> :nth-last-child(".concat(maxChildren + 1, "), > :nth-last-child(").concat(maxChildren + 1, ") ~ * {\n flex-basis: 100%;\n }") : "";
|
|
6969
6794
|
}, function (_ref9) {
|
|
6970
6795
|
var extraStyles = _ref9.extraStyles;
|
|
6971
|
-
return styled.css(_templateObject3$2(), extraStyles);
|
|
6796
|
+
return styled.css(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral(["\n ", "\n "])), extraStyles);
|
|
6972
6797
|
});
|
|
6973
6798
|
|
|
6799
|
+
var _excluded$d = ["breakpoint", "childGap", "largeChild", "largeChildSize", "maxChildren", "maxChildrenOnly", "padding", "children", "extraStyles", "constrainMobile"];
|
|
6974
6800
|
/*
|
|
6975
6801
|
The Switcher is a component that is used to toggle between wide and narrow
|
|
6976
6802
|
layouts based on the size of the surrounding container. In the wide layout,
|
|
@@ -7019,7 +6845,7 @@ var Switcher = function Switcher(_ref) {
|
|
|
7019
6845
|
extraStyles = _ref.extraStyles,
|
|
7020
6846
|
_ref$constrainMobile = _ref.constrainMobile,
|
|
7021
6847
|
constrainMobile = _ref$constrainMobile === void 0 ? false : _ref$constrainMobile,
|
|
7022
|
-
rest = _objectWithoutProperties(_ref,
|
|
6848
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
7023
6849
|
|
|
7024
6850
|
return /*#__PURE__*/React__default.createElement(SwitcherOuterContainer, null, /*#__PURE__*/React__default.createElement(SwitcherInnerContainer, _extends({
|
|
7025
6851
|
breakpoint: breakpoint,
|
|
@@ -7034,16 +6860,8 @@ var Switcher = function Switcher(_ref) {
|
|
|
7034
6860
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
7035
6861
|
};
|
|
7036
6862
|
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
_templateObject$a = function _templateObject() {
|
|
7041
|
-
return data;
|
|
7042
|
-
};
|
|
7043
|
-
|
|
7044
|
-
return data;
|
|
7045
|
-
}
|
|
7046
|
-
var ImposterWrapper = styled__default.div(_templateObject$a(), function (_ref) {
|
|
6863
|
+
var _templateObject$a;
|
|
6864
|
+
var ImposterWrapper = styled__default.div(_templateObject$a || (_templateObject$a = _taggedTemplateLiteral(["\n position: ", ";\n top: ", ";\n left: ", ";\n display: ", ";\n\n ", "\n\n ", "\n ", ";\n"])), function (_ref) {
|
|
7047
6865
|
var fixed = _ref.fixed;
|
|
7048
6866
|
return fixed ? "fixed" : "absolute";
|
|
7049
6867
|
}, function (_ref2) {
|
|
@@ -7068,6 +6886,7 @@ var ImposterWrapper = styled__default.div(_templateObject$a(), function (_ref) {
|
|
|
7068
6886
|
return extraStyles;
|
|
7069
6887
|
});
|
|
7070
6888
|
|
|
6889
|
+
var _excluded$e = ["fixed", "verticalMargin", "horizontalMargin", "breakout", "top", "left", "centered", "visible", "children"];
|
|
7071
6890
|
/*
|
|
7072
6891
|
The imposter is used to position content over a parent node.
|
|
7073
6892
|
Great for tooltips, modals, dialogs, etc.
|
|
@@ -7106,7 +6925,7 @@ var Imposter = function Imposter(_ref) {
|
|
|
7106
6925
|
_ref$visible = _ref.visible,
|
|
7107
6926
|
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
7108
6927
|
children = _ref.children,
|
|
7109
|
-
rest = _objectWithoutProperties(_ref,
|
|
6928
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
7110
6929
|
|
|
7111
6930
|
return /*#__PURE__*/React__default.createElement(ImposterWrapper, _extends({
|
|
7112
6931
|
fixed: fixed,
|
|
@@ -12182,16 +12001,8 @@ if (typeof window !== "undefined") {
|
|
|
12182
12001
|
}
|
|
12183
12002
|
}
|
|
12184
12003
|
|
|
12185
|
-
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
_templateObject$b = function _templateObject() {
|
|
12189
|
-
return data;
|
|
12190
|
-
};
|
|
12191
|
-
|
|
12192
|
-
return data;
|
|
12193
|
-
}
|
|
12194
|
-
var MotionWrapper = styled__default(motion.div)(_templateObject$b(), function (_ref) {
|
|
12004
|
+
var _templateObject$b;
|
|
12005
|
+
var MotionWrapper = styled__default(motion.div)(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n position: ", ";\n display: ", ";\n box-sizing: border-box;\n padding: ", ";\n border: ", ";\n border-color: ", ";\n border-size: ", ";\n border-style: ", ";\n border-width: ", ";\n border-radius: ", ";\n background-color: ", ";\n box-shadow: ", ";\n min-height: ", ";\n min-width: ", ";\n height: ", ";\n width: ", ";\n text-align: ", ";\n margin: ", ";\n\n &:hover,\n &:focus {\n ", ";\n }\n\n &:active {\n ", ";\n }\n\n &:disabled {\n ", ";\n }\n\n ", ";\n"])), function (_ref) {
|
|
12195
12006
|
var position = _ref.position;
|
|
12196
12007
|
return position;
|
|
12197
12008
|
}, function (_ref2) {
|
|
@@ -12256,6 +12067,7 @@ var MotionWrapper = styled__default(motion.div)(_templateObject$b(), function (_
|
|
|
12256
12067
|
return extraStyles;
|
|
12257
12068
|
});
|
|
12258
12069
|
|
|
12070
|
+
var _excluded$f = ["position", "padding", "children"];
|
|
12259
12071
|
/*
|
|
12260
12072
|
Catch-all component for creating animations with Framer Motion library
|
|
12261
12073
|
Wraps the framer motion "motion.div" with styled components and allows for passing
|
|
@@ -12297,7 +12109,7 @@ var Motion = function Motion(_ref) {
|
|
|
12297
12109
|
_ref$padding = _ref.padding,
|
|
12298
12110
|
padding = _ref$padding === void 0 ? "0" : _ref$padding,
|
|
12299
12111
|
children = _ref.children,
|
|
12300
|
-
rest = _objectWithoutProperties(_ref,
|
|
12112
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
12301
12113
|
|
|
12302
12114
|
return /*#__PURE__*/React__default.createElement(MotionWrapper, _extends({
|
|
12303
12115
|
position: position,
|
|
@@ -12305,16 +12117,8 @@ var Motion = function Motion(_ref) {
|
|
|
12305
12117
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
12306
12118
|
};
|
|
12307
12119
|
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
_templateObject$c = function _templateObject() {
|
|
12312
|
-
return data;
|
|
12313
|
-
};
|
|
12314
|
-
|
|
12315
|
-
return data;
|
|
12316
|
-
}
|
|
12317
|
-
var ReelStyled = styled__default.div(_templateObject$c(), function (_ref) {
|
|
12120
|
+
var _templateObject$c;
|
|
12121
|
+
var ReelStyled = styled__default.div(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral(["\n display: flex;\n overflow-x: ", ";\n padding: ", ";\n height: ", ";\n justify-content: ", ";\n\n > * + * {\n margin-left: ", ";\n }\n\n > * {\n flex: 0 0 ", ";\n }\n"])), function (_ref) {
|
|
12318
12122
|
var disableScroll = _ref.disableScroll;
|
|
12319
12123
|
return disableScroll ? "hidden" : "auto";
|
|
12320
12124
|
}, function (_ref2) {
|
|
@@ -12334,6 +12138,8 @@ var ReelStyled = styled__default.div(_templateObject$c(), function (_ref) {
|
|
|
12334
12138
|
return childWidth;
|
|
12335
12139
|
});
|
|
12336
12140
|
|
|
12141
|
+
var _excluded$g = ["childGap", "height", "childWidth", "padding", "justifyContent", "disableScroll", "children"];
|
|
12142
|
+
|
|
12337
12143
|
var Reel = function Reel(_ref) {
|
|
12338
12144
|
var _ref$childGap = _ref.childGap,
|
|
12339
12145
|
childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
|
|
@@ -12348,7 +12154,7 @@ var Reel = function Reel(_ref) {
|
|
|
12348
12154
|
_ref$disableScroll = _ref.disableScroll,
|
|
12349
12155
|
disableScroll = _ref$disableScroll === void 0 ? false : _ref$disableScroll,
|
|
12350
12156
|
children = _ref.children,
|
|
12351
|
-
rest = _objectWithoutProperties(_ref,
|
|
12157
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
12352
12158
|
|
|
12353
12159
|
return /*#__PURE__*/React__default.createElement(ReelStyled, _extends({
|
|
12354
12160
|
childGap: childGap,
|
|
@@ -12563,25 +12369,7 @@ var fallbackValues$1 = {
|
|
|
12563
12369
|
activeColor: activeColor
|
|
12564
12370
|
};
|
|
12565
12371
|
|
|
12566
|
-
|
|
12567
|
-
var data = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n"]);
|
|
12568
|
-
|
|
12569
|
-
_templateObject2$5 = function _templateObject2() {
|
|
12570
|
-
return data;
|
|
12571
|
-
};
|
|
12572
|
-
|
|
12573
|
-
return data;
|
|
12574
|
-
}
|
|
12575
|
-
|
|
12576
|
-
function _templateObject$d() {
|
|
12577
|
-
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n"]);
|
|
12578
|
-
|
|
12579
|
-
_templateObject$d = function _templateObject() {
|
|
12580
|
-
return data;
|
|
12581
|
-
};
|
|
12582
|
-
|
|
12583
|
-
return data;
|
|
12584
|
-
}
|
|
12372
|
+
var _templateObject$d, _templateObject2$5;
|
|
12585
12373
|
var rotate = posed.div({
|
|
12586
12374
|
fixed: {
|
|
12587
12375
|
rotate: "0deg"
|
|
@@ -12597,8 +12385,8 @@ var rotate = posed.div({
|
|
|
12597
12385
|
}
|
|
12598
12386
|
}
|
|
12599
12387
|
});
|
|
12600
|
-
var SpinnerContainer = styled__default.div(_templateObject$d());
|
|
12601
|
-
var SpinnerIconWrapper = styled__default(rotate)(_templateObject2$5(), function (_ref) {
|
|
12388
|
+
var SpinnerContainer = styled__default.div(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n"])));
|
|
12389
|
+
var SpinnerIconWrapper = styled__default(rotate)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n"])), function (_ref) {
|
|
12602
12390
|
var isMobile = _ref.isMobile;
|
|
12603
12391
|
return isMobile ? "18" : "21";
|
|
12604
12392
|
}, function (_ref2) {
|
|
@@ -12641,25 +12429,9 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12641
12429
|
}))))));
|
|
12642
12430
|
};
|
|
12643
12431
|
|
|
12644
|
-
|
|
12645
|
-
var data = _taggedTemplateLiteral([""]);
|
|
12646
|
-
|
|
12647
|
-
_templateObject2$6 = function _templateObject2() {
|
|
12648
|
-
return data;
|
|
12649
|
-
};
|
|
12650
|
-
|
|
12651
|
-
return data;
|
|
12652
|
-
}
|
|
12653
|
-
|
|
12654
|
-
function _templateObject$e() {
|
|
12655
|
-
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n"]);
|
|
12656
|
-
|
|
12657
|
-
_templateObject$e = function _templateObject() {
|
|
12658
|
-
return data;
|
|
12659
|
-
};
|
|
12432
|
+
var _excluded$h = ["action", "variant", "text", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"];
|
|
12660
12433
|
|
|
12661
|
-
|
|
12662
|
-
}
|
|
12434
|
+
var _templateObject$e, _templateObject2$6;
|
|
12663
12435
|
var rotate$1 = posed.div({
|
|
12664
12436
|
fixed: {
|
|
12665
12437
|
rotate: "0deg"
|
|
@@ -12675,8 +12447,8 @@ var rotate$1 = posed.div({
|
|
|
12675
12447
|
}
|
|
12676
12448
|
}
|
|
12677
12449
|
});
|
|
12678
|
-
var SpinnerContainer$1 = styled__default.div(_templateObject$e());
|
|
12679
|
-
var SpinnerIconWrapper$1 = styled__default(rotate$1)(_templateObject2$6());
|
|
12450
|
+
var SpinnerContainer$1 = styled__default.div(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n"])));
|
|
12451
|
+
var SpinnerIconWrapper$1 = styled__default(rotate$1)(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral([""])));
|
|
12680
12452
|
|
|
12681
12453
|
var Spinner = function Spinner(_ref) {
|
|
12682
12454
|
var isMobile = _ref.isMobile;
|
|
@@ -12721,7 +12493,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12721
12493
|
extraStyles = _ref2$extraStyles === void 0 ? "" : _ref2$extraStyles,
|
|
12722
12494
|
tabIndex = _ref2.tabIndex,
|
|
12723
12495
|
children = _ref2.children,
|
|
12724
|
-
rest = _objectWithoutProperties(_ref2,
|
|
12496
|
+
rest = _objectWithoutProperties(_ref2, _excluded$h);
|
|
12725
12497
|
|
|
12726
12498
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
12727
12499
|
var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
|
|
@@ -13697,27 +13469,9 @@ var GenericCard = function GenericCard() {
|
|
|
13697
13469
|
})))));
|
|
13698
13470
|
};
|
|
13699
13471
|
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
13703
|
-
_templateObject2$7 = function _templateObject2() {
|
|
13704
|
-
return data;
|
|
13705
|
-
};
|
|
13706
|
-
|
|
13707
|
-
return data;
|
|
13708
|
-
}
|
|
13709
|
-
|
|
13710
|
-
function _templateObject$f() {
|
|
13711
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]);
|
|
13712
|
-
|
|
13713
|
-
_templateObject$f = function _templateObject() {
|
|
13714
|
-
return data;
|
|
13715
|
-
};
|
|
13716
|
-
|
|
13717
|
-
return data;
|
|
13718
|
-
}
|
|
13719
|
-
var BankItemWrapper = styled__default.div(_templateObject$f());
|
|
13720
|
-
var BankAccountText = styled__default.h4(_templateObject2$7(), CHARADE_GREY);
|
|
13472
|
+
var _templateObject$f, _templateObject2$7;
|
|
13473
|
+
var BankItemWrapper = styled__default.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"])));
|
|
13474
|
+
var BankAccountText = styled__default.h4(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5rem;\n text-align: left;\n margin-right: 0.5rem;\n display: inline-block;\n"])), CHARADE_GREY);
|
|
13721
13475
|
var CHECKING = "CHECKING";
|
|
13722
13476
|
var SAVINGS = "SAVINGS";
|
|
13723
13477
|
|
|
@@ -15995,16 +15749,8 @@ var Alert = function Alert(_ref) {
|
|
|
15995
15749
|
|
|
15996
15750
|
var Alert$1 = themeComponent(Alert, "Alert", fallbackValues$4, "info");
|
|
15997
15751
|
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
_templateObject$g = function _templateObject() {
|
|
16002
|
-
return data;
|
|
16003
|
-
};
|
|
16004
|
-
|
|
16005
|
-
return data;
|
|
16006
|
-
}
|
|
16007
|
-
var HeadingText = styled__default.h1(_templateObject$g(), function (_ref) {
|
|
15752
|
+
var _templateObject$g;
|
|
15753
|
+
var HeadingText = styled__default.h1(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n --font-size: ", ";\n font-size: var(--font-size);\n line-height: calc(1.5 * var(--font-size));\n color: ", ";\n font-weight: ", ";\n margin: ", ";\n text-align: ", ";\n font-family: ", ";\n\n ", ";\n"])), function (_ref) {
|
|
16008
15754
|
var fontSize = _ref.fontSize;
|
|
16009
15755
|
return fontSize;
|
|
16010
15756
|
}, function (_ref2) {
|
|
@@ -16044,6 +15790,8 @@ var fallbackValues$5 = {
|
|
|
16044
15790
|
fontSize: fontSize$1
|
|
16045
15791
|
};
|
|
16046
15792
|
|
|
15793
|
+
var _excluded$i = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
15794
|
+
|
|
16047
15795
|
var Heading = function Heading(_ref) {
|
|
16048
15796
|
var themeValues = _ref.themeValues,
|
|
16049
15797
|
_ref$weight = _ref.weight,
|
|
@@ -16062,7 +15810,7 @@ var Heading = function Heading(_ref) {
|
|
|
16062
15810
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
16063
15811
|
dataQa = _ref.dataQa,
|
|
16064
15812
|
children = _ref.children,
|
|
16065
|
-
rest = _objectWithoutProperties(_ref,
|
|
15813
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
16066
15814
|
|
|
16067
15815
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
16068
15816
|
variant: variant,
|
|
@@ -16935,11 +16683,13 @@ var fallbackValues$7 = {
|
|
|
16935
16683
|
linkColor: linkColor
|
|
16936
16684
|
};
|
|
16937
16685
|
|
|
16686
|
+
var _excluded$j = ["variant", "themeValues", "children"];
|
|
16687
|
+
|
|
16938
16688
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
16939
16689
|
var variant = _ref.variant,
|
|
16940
16690
|
themeValues = _ref.themeValues,
|
|
16941
16691
|
children = _ref.children,
|
|
16942
|
-
props = _objectWithoutProperties(_ref,
|
|
16692
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
16943
16693
|
|
|
16944
16694
|
var shadowRegistry = {
|
|
16945
16695
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
@@ -16997,15 +16747,9 @@ var fallbackValues$9 = {
|
|
|
16997
16747
|
externalLinkColor: externalLinkColor
|
|
16998
16748
|
};
|
|
16999
16749
|
|
|
17000
|
-
|
|
17001
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n font-size: ", ";\n color: ", ";\n font-weight: ", ";\n font-family: ", ";\n line-height: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n &:active {\n text-decoration: underline;\n color: ", ";\n }\n\n ", "\n"]);
|
|
16750
|
+
var _excluded$k = ["hoverColor", "activeColor", "extrastyles"];
|
|
17002
16751
|
|
|
17003
|
-
|
|
17004
|
-
return data;
|
|
17005
|
-
};
|
|
17006
|
-
|
|
17007
|
-
return data;
|
|
17008
|
-
}
|
|
16752
|
+
var _templateObject$h;
|
|
17009
16753
|
/*
|
|
17010
16754
|
The extracting of props and the disabling of the eslint rule is to stop React from complaining about
|
|
17011
16755
|
unrecognized DOM attributes.
|
|
@@ -17017,10 +16761,10 @@ var StyledExternalLink = styled__default(function (_ref) {
|
|
|
17017
16761
|
var hoverColor = _ref.hoverColor,
|
|
17018
16762
|
activeColor = _ref.activeColor,
|
|
17019
16763
|
extrastyles = _ref.extrastyles,
|
|
17020
|
-
props = _objectWithoutProperties(_ref,
|
|
16764
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
17021
16765
|
|
|
17022
16766
|
return /*#__PURE__*/React__default.createElement("a", props);
|
|
17023
|
-
})(_templateObject$h(), function (_ref2) {
|
|
16767
|
+
})(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral(["\n display: flex;\n font-size: ", ";\n color: ", ";\n font-weight: ", ";\n font-family: ", ";\n line-height: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n &:active {\n text-decoration: underline;\n color: ", ";\n }\n\n ", "\n"])), function (_ref2) {
|
|
17024
16768
|
var size = _ref2.size;
|
|
17025
16769
|
return size;
|
|
17026
16770
|
}, function (_ref3) {
|
|
@@ -17083,15 +16827,9 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
17083
16827
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
17084
16828
|
};
|
|
17085
16829
|
|
|
17086
|
-
|
|
17087
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n color: ", ";\n font-weight: ", ";\n line-height: ", ";\n font-size: ", ";\n font-family: ", ";\n margin: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n &:active {\n text-decoration: underline;\n color: ", ";\n }\n\n ", "\n"]);
|
|
16830
|
+
var _excluded$l = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
17088
16831
|
|
|
17089
|
-
|
|
17090
|
-
return data;
|
|
17091
|
-
};
|
|
17092
|
-
|
|
17093
|
-
return data;
|
|
17094
|
-
}
|
|
16832
|
+
var _templateObject$i;
|
|
17095
16833
|
/*
|
|
17096
16834
|
The extracting of props and the disabling of the eslint rule is to stop React from complaining about
|
|
17097
16835
|
unrecognized DOM attributes.
|
|
@@ -17105,10 +16843,10 @@ var StyledInternalLink = styled__default(function (_ref) {
|
|
|
17105
16843
|
active = _ref.active,
|
|
17106
16844
|
color = _ref.color,
|
|
17107
16845
|
extrastyles = _ref.extrastyles,
|
|
17108
|
-
props = _objectWithoutProperties(_ref,
|
|
16846
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
17109
16847
|
|
|
17110
16848
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, props);
|
|
17111
|
-
})(_templateObject$i(), function (_ref2) {
|
|
16849
|
+
})(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n display: flex;\n color: ", ";\n font-weight: ", ";\n line-height: ", ";\n font-size: ", ";\n font-family: ", ";\n margin: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n &:active {\n text-decoration: underline;\n color: ", ";\n }\n\n ", "\n"])), function (_ref2) {
|
|
17112
16850
|
var color = _ref2.color,
|
|
17113
16851
|
active = _ref2.active,
|
|
17114
16852
|
activeColor = _ref2.activeColor;
|
|
@@ -18783,6 +18521,8 @@ _curry2(function test(pattern, str) {
|
|
|
18783
18521
|
|
|
18784
18522
|
var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
|
|
18785
18523
|
|
|
18524
|
+
var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
|
|
18525
|
+
|
|
18786
18526
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
18787
18527
|
var _ref$url = _ref.url,
|
|
18788
18528
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -18794,7 +18534,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
18794
18534
|
linkExtraStyles = _ref.linkExtraStyles,
|
|
18795
18535
|
_ref$newTab = _ref.newTab,
|
|
18796
18536
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
18797
|
-
otherProps = _objectWithoutProperties(_ref,
|
|
18537
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
18798
18538
|
|
|
18799
18539
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
18800
18540
|
var children = _ref2.children,
|
|
@@ -18850,16 +18590,8 @@ var fallbackValues$a = {
|
|
|
18850
18590
|
fontSize: fontSize$4
|
|
18851
18591
|
};
|
|
18852
18592
|
|
|
18853
|
-
|
|
18854
|
-
|
|
18855
|
-
|
|
18856
|
-
_templateObject$j = function _templateObject() {
|
|
18857
|
-
return data;
|
|
18858
|
-
};
|
|
18859
|
-
|
|
18860
|
-
return data;
|
|
18861
|
-
}
|
|
18862
|
-
var ParagraphText = styled__default.p(_templateObject$j(), function (_ref) {
|
|
18593
|
+
var _templateObject$j;
|
|
18594
|
+
var ParagraphText = styled__default.p(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n --font-size: ", ";\n font-size: var(--font-size);\n line-height: calc(1.5 * var(--font-size));\n font-weight: ", ";\n font-family: ", ";\n color: ", ";\n margin: ", ";\n\n ", "\n"])), function (_ref) {
|
|
18863
18595
|
var fontSize = _ref.fontSize;
|
|
18864
18596
|
return fontSize;
|
|
18865
18597
|
}, function (_ref2) {
|
|
@@ -18879,6 +18611,8 @@ var ParagraphText = styled__default.p(_templateObject$j(), function (_ref) {
|
|
|
18879
18611
|
return extraStyles;
|
|
18880
18612
|
});
|
|
18881
18613
|
|
|
18614
|
+
var _excluded$n = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
18615
|
+
|
|
18882
18616
|
var Paragraph = function Paragraph(_ref) {
|
|
18883
18617
|
var themeValues = _ref.themeValues,
|
|
18884
18618
|
_ref$weight = _ref.weight,
|
|
@@ -18892,7 +18626,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
18892
18626
|
dataQa = _ref.dataQa,
|
|
18893
18627
|
children = _ref.children,
|
|
18894
18628
|
as = _ref.as,
|
|
18895
|
-
rest = _objectWithoutProperties(_ref,
|
|
18629
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
18896
18630
|
|
|
18897
18631
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
18898
18632
|
weight: weight,
|
|
@@ -19155,127 +18889,19 @@ var fallbackValues$c = {
|
|
|
19155
18889
|
disabledCheckedStyles: disabledCheckedStyles
|
|
19156
18890
|
};
|
|
19157
18891
|
|
|
19158
|
-
|
|
19159
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19162
|
-
return data;
|
|
19163
|
-
};
|
|
19164
|
-
|
|
19165
|
-
return data;
|
|
19166
|
-
}
|
|
19167
|
-
|
|
19168
|
-
function _templateObject10() {
|
|
19169
|
-
var data = _taggedTemplateLiteral(["\n ", " ", "\n "]);
|
|
19170
|
-
|
|
19171
|
-
_templateObject10 = function _templateObject10() {
|
|
19172
|
-
return data;
|
|
19173
|
-
};
|
|
19174
|
-
|
|
19175
|
-
return data;
|
|
19176
|
-
}
|
|
19177
|
-
|
|
19178
|
-
function _templateObject9() {
|
|
19179
|
-
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
19180
|
-
|
|
19181
|
-
_templateObject9 = function _templateObject9() {
|
|
19182
|
-
return data;
|
|
19183
|
-
};
|
|
19184
|
-
|
|
19185
|
-
return data;
|
|
19186
|
-
}
|
|
19187
|
-
|
|
19188
|
-
function _templateObject8() {
|
|
19189
|
-
var data = _taggedTemplateLiteral(["\n ", " ", "\n "]);
|
|
19190
|
-
|
|
19191
|
-
_templateObject8 = function _templateObject8() {
|
|
19192
|
-
return data;
|
|
19193
|
-
};
|
|
19194
|
-
|
|
19195
|
-
return data;
|
|
19196
|
-
}
|
|
19197
|
-
|
|
19198
|
-
function _templateObject7$1() {
|
|
19199
|
-
var data = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: 16px;\n width: 24px;\n height: 24px;\n border-radius: 2px;\n transition: all 150ms;\n\n ", " {\n visibility: ", ";\n }\n\n ", ";\n"]);
|
|
19200
|
-
|
|
19201
|
-
_templateObject7$1 = function _templateObject7() {
|
|
19202
|
-
return data;
|
|
19203
|
-
};
|
|
19204
|
-
|
|
19205
|
-
return data;
|
|
19206
|
-
}
|
|
19207
|
-
|
|
19208
|
-
function _templateObject6$1() {
|
|
19209
|
-
var data = _taggedTemplateLiteral(["\n border: 0;\n clip: rect(0 0 0 0);\n clippath: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"]);
|
|
19210
|
-
|
|
19211
|
-
_templateObject6$1 = function _templateObject6() {
|
|
19212
|
-
return data;
|
|
19213
|
-
};
|
|
19214
|
-
|
|
19215
|
-
return data;
|
|
19216
|
-
}
|
|
19217
|
-
|
|
19218
|
-
function _templateObject5$1() {
|
|
19219
|
-
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
19220
|
-
|
|
19221
|
-
_templateObject5$1 = function _templateObject5() {
|
|
19222
|
-
return data;
|
|
19223
|
-
};
|
|
19224
|
-
|
|
19225
|
-
return data;
|
|
19226
|
-
}
|
|
19227
|
-
|
|
19228
|
-
function _templateObject4$1() {
|
|
19229
|
-
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
19230
|
-
|
|
19231
|
-
_templateObject4$1 = function _templateObject4() {
|
|
19232
|
-
return data;
|
|
19233
|
-
};
|
|
19234
|
-
|
|
19235
|
-
return data;
|
|
19236
|
-
}
|
|
19237
|
-
|
|
19238
|
-
function _templateObject3$3() {
|
|
19239
|
-
var data = _taggedTemplateLiteral(["\n fill: none;\n stroke-width: 2px;\n stroke: ", ";\n"]);
|
|
19240
|
-
|
|
19241
|
-
_templateObject3$3 = function _templateObject3() {
|
|
19242
|
-
return data;
|
|
19243
|
-
};
|
|
19244
|
-
|
|
19245
|
-
return data;
|
|
19246
|
-
}
|
|
19247
|
-
|
|
19248
|
-
function _templateObject2$8() {
|
|
19249
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"]);
|
|
19250
|
-
|
|
19251
|
-
_templateObject2$8 = function _templateObject2() {
|
|
19252
|
-
return data;
|
|
19253
|
-
};
|
|
19254
|
-
|
|
19255
|
-
return data;
|
|
19256
|
-
}
|
|
19257
|
-
|
|
19258
|
-
function _templateObject$k() {
|
|
19259
|
-
var data = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n"]);
|
|
19260
|
-
|
|
19261
|
-
_templateObject$k = function _templateObject() {
|
|
19262
|
-
return data;
|
|
19263
|
-
};
|
|
19264
|
-
|
|
19265
|
-
return data;
|
|
19266
|
-
}
|
|
19267
|
-
var CheckboxContainer = styled__default.div(_templateObject$k());
|
|
19268
|
-
var CheckboxLabelContainer = styled__default.label(_templateObject2$8());
|
|
19269
|
-
var CheckboxIcon = styled__default.svg(_templateObject3$3(), function (_ref) {
|
|
18892
|
+
var _templateObject$k, _templateObject2$8, _templateObject3$3, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
18893
|
+
var CheckboxContainer = styled__default.div(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n"])));
|
|
18894
|
+
var CheckboxLabelContainer = styled__default.label(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
18895
|
+
var CheckboxIcon = styled__default.svg(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n fill: none;\n stroke-width: 2px;\n stroke: ", ";\n"])), function (_ref) {
|
|
19270
18896
|
var disabled = _ref.disabled,
|
|
19271
18897
|
disabledCheckColor = _ref.disabledCheckColor,
|
|
19272
18898
|
checkColor = _ref.checkColor;
|
|
19273
|
-
return disabled ? styled.css(_templateObject4$1(), disabledCheckColor) : styled.css(_templateObject5$1(), checkColor);
|
|
18899
|
+
return disabled ? styled.css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n ", "\n "])), disabledCheckColor) : styled.css(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n ", "\n "])), checkColor);
|
|
19274
18900
|
});
|
|
19275
18901
|
var HiddenCheckbox = styled__default.input.attrs({
|
|
19276
18902
|
type: "checkbox"
|
|
19277
|
-
})(_templateObject6$1());
|
|
19278
|
-
var StyledCheckbox = styled__default.div(_templateObject7$1(), CheckboxIcon, function (_ref2) {
|
|
18903
|
+
})(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteral(["\n border: 0;\n clip: rect(0 0 0 0);\n clippath: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"])));
|
|
18904
|
+
var StyledCheckbox = styled__default.div(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: 16px;\n width: 24px;\n height: 24px;\n border-radius: 2px;\n transition: all 150ms;\n\n ", " {\n visibility: ", ";\n }\n\n ", ";\n"])), CheckboxIcon, function (_ref2) {
|
|
19279
18905
|
var checked = _ref2.checked;
|
|
19280
18906
|
return checked ? "visible" : "hidden";
|
|
19281
18907
|
}, function (_ref3) {
|
|
@@ -19289,7 +18915,7 @@ var StyledCheckbox = styled__default.div(_templateObject7$1(), CheckboxIcon, fun
|
|
|
19289
18915
|
errorStyles = _ref3.errorStyles,
|
|
19290
18916
|
disabledStyles = _ref3.disabledStyles,
|
|
19291
18917
|
disabledCheckedStyles = _ref3.disabledCheckedStyles;
|
|
19292
|
-
return error ? styled.css(_templateObject8(), errorStyles, focused && focusedStyles) : disabled ? styled.css(_templateObject9(), checked ? disabledCheckedStyles : disabledStyles) : checked ? styled.css(_templateObject10(), checkedStyles, focused && focusedStyles) : styled.css(_templateObject11(), defaultStyles, focused && focusedStyles);
|
|
18918
|
+
return error ? styled.css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", " ", "\n "])), errorStyles, focused && focusedStyles) : disabled ? styled.css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n ", "\n "])), checked ? disabledCheckedStyles : disabledStyles) : checked ? styled.css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n ", " ", "\n "])), checkedStyles, focused && focusedStyles) : styled.css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n ", " ", "\n "])), defaultStyles, focused && focusedStyles);
|
|
19293
18919
|
});
|
|
19294
18920
|
|
|
19295
18921
|
var Checkbox = function Checkbox(_ref4) {
|
|
@@ -19414,38 +19040,20 @@ to the one generated by name-that-color.
|
|
|
19414
19040
|
var PEWTER_GREY$1 = "#DFE1E4";
|
|
19415
19041
|
var MARINER_BLUE$1 = "#2E75D2";
|
|
19416
19042
|
|
|
19417
|
-
|
|
19418
|
-
var data = _taggedTemplateLiteral(["\n height: 16px;\n width: 16px;\n background-color: ", ";\n border-radius: 8px;\n"]);
|
|
19419
|
-
|
|
19420
|
-
_templateObject2$9 = function _templateObject2() {
|
|
19421
|
-
return data;
|
|
19422
|
-
};
|
|
19423
|
-
|
|
19424
|
-
return data;
|
|
19425
|
-
}
|
|
19426
|
-
|
|
19427
|
-
function _templateObject$l() {
|
|
19428
|
-
var data = _taggedTemplateLiteral(["\n height: 24px;\n width: 24px;\n border: 1px solid\n ", ";\n border-radius: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 10px;\n min-width: 24px;\n min-height: 24px;\n"]);
|
|
19429
|
-
|
|
19430
|
-
_templateObject$l = function _templateObject() {
|
|
19431
|
-
return data;
|
|
19432
|
-
};
|
|
19433
|
-
|
|
19434
|
-
return data;
|
|
19435
|
-
}
|
|
19043
|
+
var _templateObject$l, _templateObject2$9;
|
|
19436
19044
|
var defaultTheme = {
|
|
19437
19045
|
theme: {
|
|
19438
19046
|
accentColor: MARINER_BLUE$1,
|
|
19439
19047
|
inactiveColor: PEWTER_GREY$1
|
|
19440
19048
|
}
|
|
19441
19049
|
};
|
|
19442
|
-
var RadioButtonBorder = styled__default.div(_templateObject$l(), function (_ref) {
|
|
19050
|
+
var RadioButtonBorder = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n height: 24px;\n width: 24px;\n border: 1px solid\n ", ";\n border-radius: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 10px;\n min-width: 24px;\n min-height: 24px;\n"])), function (_ref) {
|
|
19443
19051
|
var isSelected = _ref.isSelected,
|
|
19444
19052
|
theme = _ref.theme;
|
|
19445
19053
|
return isSelected ? theme.accentColor : theme.inactiveColor;
|
|
19446
19054
|
});
|
|
19447
19055
|
RadioButtonBorder.defaultProps = defaultTheme;
|
|
19448
|
-
var RadioButtonCenter = styled__default.div(_templateObject2$9(), function (_ref2) {
|
|
19056
|
+
var RadioButtonCenter = styled__default.div(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral(["\n height: 16px;\n width: 16px;\n background-color: ", ";\n border-radius: 8px;\n"])), function (_ref2) {
|
|
19449
19057
|
var theme = _ref2.theme;
|
|
19450
19058
|
return theme.accentColor;
|
|
19451
19059
|
});
|
|
@@ -19461,38 +19069,10 @@ var RadioButton = function RadioButton(_ref3) {
|
|
|
19461
19069
|
}, isSelected && /*#__PURE__*/React__default.createElement(RadioButtonCenter, null));
|
|
19462
19070
|
};
|
|
19463
19071
|
|
|
19464
|
-
|
|
19465
|
-
|
|
19466
|
-
|
|
19467
|
-
|
|
19468
|
-
return data;
|
|
19469
|
-
};
|
|
19470
|
-
|
|
19471
|
-
return data;
|
|
19472
|
-
}
|
|
19473
|
-
|
|
19474
|
-
function _templateObject2$a() {
|
|
19475
|
-
var data = _taggedTemplateLiteral(["\n opacity: 0;\n position: absolute;\n z-index: -2;\n cursor: pointer;\n"]);
|
|
19476
|
-
|
|
19477
|
-
_templateObject2$a = function _templateObject2() {
|
|
19478
|
-
return data;
|
|
19479
|
-
};
|
|
19480
|
-
|
|
19481
|
-
return data;
|
|
19482
|
-
}
|
|
19483
|
-
|
|
19484
|
-
function _templateObject$m() {
|
|
19485
|
-
var data = _taggedTemplateLiteral(["\n width: 2rem;\n"]);
|
|
19486
|
-
|
|
19487
|
-
_templateObject$m = function _templateObject() {
|
|
19488
|
-
return data;
|
|
19489
|
-
};
|
|
19490
|
-
|
|
19491
|
-
return data;
|
|
19492
|
-
}
|
|
19493
|
-
var CheckboxItemIcon = styled__default.img(_templateObject$m());
|
|
19494
|
-
var HiddenCheckboxInput = styled__default.input(_templateObject2$a());
|
|
19495
|
-
var CheckboxLabel = styled__default.label(_templateObject3$4());
|
|
19072
|
+
var _templateObject$m, _templateObject2$a, _templateObject3$4;
|
|
19073
|
+
var CheckboxItemIcon = styled__default.img(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n width: 2rem;\n"])));
|
|
19074
|
+
var HiddenCheckboxInput = styled__default.input(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n opacity: 0;\n position: absolute;\n z-index: -2;\n cursor: pointer;\n"])));
|
|
19075
|
+
var CheckboxLabel = styled__default.label(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n position: relative;\n z-index: 5;\n &:focus {\n outline: none;\n }\n"])));
|
|
19496
19076
|
|
|
19497
19077
|
var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
19498
19078
|
var text = _ref.text,
|
|
@@ -19635,57 +19215,19 @@ var fallbackValues$e = {
|
|
|
19635
19215
|
hoverColor: hoverColor$3
|
|
19636
19216
|
};
|
|
19637
19217
|
|
|
19638
|
-
|
|
19639
|
-
|
|
19640
|
-
|
|
19641
|
-
_templateObject4$2 = function _templateObject4() {
|
|
19642
|
-
return data;
|
|
19643
|
-
};
|
|
19644
|
-
|
|
19645
|
-
return data;
|
|
19646
|
-
}
|
|
19647
|
-
|
|
19648
|
-
function _templateObject3$5() {
|
|
19649
|
-
var data = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-width: 0px;\n border-color: transparent;\n box-shadow: none;\n padding: 1rem;\n box-sizing: border-box;\n width: 100%;\n cursor: ", ";\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n outline: none;\n }\n"]);
|
|
19650
|
-
|
|
19651
|
-
_templateObject3$5 = function _templateObject3() {
|
|
19652
|
-
return data;
|
|
19653
|
-
};
|
|
19654
|
-
|
|
19655
|
-
return data;
|
|
19656
|
-
}
|
|
19657
|
-
|
|
19658
|
-
function _templateObject2$b() {
|
|
19659
|
-
var data = _taggedTemplateLiteral(["\n transform-origin: 0 0;\n border: 1px solid ", ";\n border-radius: 2px;\n background-color: ", ";\n padding: 8px 0 8px;\n position: absolute;\n width: ", ";\n min-width: 100%;\n max-height: ", ";\n overflow-y: scroll;\n z-index: 1;\n box-sizing: border-box;\n &:focus {\n outline: none;\n }\n"]);
|
|
19660
|
-
|
|
19661
|
-
_templateObject2$b = function _templateObject2() {
|
|
19662
|
-
return data;
|
|
19663
|
-
};
|
|
19664
|
-
|
|
19665
|
-
return data;
|
|
19666
|
-
}
|
|
19667
|
-
|
|
19668
|
-
function _templateObject$n() {
|
|
19669
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n transition: transform 0.3s ease;\n ", "\n"]);
|
|
19670
|
-
|
|
19671
|
-
_templateObject$n = function _templateObject() {
|
|
19672
|
-
return data;
|
|
19673
|
-
};
|
|
19674
|
-
|
|
19675
|
-
return data;
|
|
19676
|
-
}
|
|
19677
|
-
var IconWrapper = styled__default.div(_templateObject$n(), function (_ref) {
|
|
19218
|
+
var _templateObject$n, _templateObject2$b, _templateObject3$5, _templateObject4$2;
|
|
19219
|
+
var IconWrapper = styled__default.div(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n transition: transform 0.3s ease;\n ", "\n"])), function (_ref) {
|
|
19678
19220
|
var open = _ref.open;
|
|
19679
19221
|
return open ? "transform: rotate(-180deg)" : "";
|
|
19680
19222
|
});
|
|
19681
|
-
var DropdownContentWrapper = styled__default.div(_templateObject2$b(), GREY_CHATEAU, WHITE, function (_ref2) {
|
|
19223
|
+
var DropdownContentWrapper = styled__default.div(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n transform-origin: 0 0;\n border: 1px solid ", ";\n border-radius: 2px;\n background-color: ", ";\n padding: 8px 0 8px;\n position: absolute;\n width: ", ";\n min-width: 100%;\n max-height: ", ";\n overflow-y: scroll;\n z-index: 1;\n box-sizing: border-box;\n &:focus {\n outline: none;\n }\n"])), GREY_CHATEAU, WHITE, function (_ref2) {
|
|
19682
19224
|
var widthFitOptions = _ref2.widthFitOptions;
|
|
19683
19225
|
return widthFitOptions ? "fit-content" : "100%";
|
|
19684
19226
|
}, function (_ref3) {
|
|
19685
19227
|
var maxHeight = _ref3.maxHeight;
|
|
19686
19228
|
return maxHeight || "400px";
|
|
19687
19229
|
});
|
|
19688
|
-
var DropdownItemWrapper = styled__default.div(_templateObject3$5(), function (_ref4) {
|
|
19230
|
+
var DropdownItemWrapper = styled__default.div(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-width: 0px;\n border-color: transparent;\n box-shadow: none;\n padding: 1rem;\n box-sizing: border-box;\n width: 100%;\n cursor: ", ";\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n outline: none;\n }\n"])), function (_ref4) {
|
|
19689
19231
|
var selected = _ref4.selected,
|
|
19690
19232
|
themeValues = _ref4.themeValues;
|
|
19691
19233
|
return selected ? themeValues.selectedColor : WHITE;
|
|
@@ -19703,7 +19245,7 @@ var DropdownItemWrapper = styled__default.div(_templateObject3$5(), function (_r
|
|
|
19703
19245
|
themeValues = _ref7.themeValues;
|
|
19704
19246
|
return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
|
|
19705
19247
|
});
|
|
19706
|
-
var SearchInput = styled__default.input(_templateObject4$2(), function (_ref8) {
|
|
19248
|
+
var SearchInput = styled__default.input(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteral(["\n border: none;\n background-color: ", ";\n font-size: 16px;\n height: 24px;\n"])), function (_ref8) {
|
|
19707
19249
|
var themeValues = _ref8.themeValues;
|
|
19708
19250
|
return themeValues.hoverColor && themeValues.hoverColor;
|
|
19709
19251
|
});
|
|
@@ -19923,37 +19465,9 @@ var Dropdown = function Dropdown(_ref9) {
|
|
|
19923
19465
|
|
|
19924
19466
|
var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
|
|
19925
19467
|
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
_templateObject3$6 = function _templateObject3() {
|
|
19930
|
-
return data;
|
|
19931
|
-
};
|
|
19932
|
-
|
|
19933
|
-
return data;
|
|
19934
|
-
}
|
|
19935
|
-
|
|
19936
|
-
function _templateObject2$c() {
|
|
19937
|
-
var data = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 2px;\n height: 48px;\n width: 100%;\n padding: 0.75rem 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n font-family: Public Sans;\n line-height: 2rem;\n font-weight: ", ";\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n"]);
|
|
19938
|
-
|
|
19939
|
-
_templateObject2$c = function _templateObject2() {
|
|
19940
|
-
return data;
|
|
19941
|
-
};
|
|
19942
|
-
|
|
19943
|
-
return data;
|
|
19944
|
-
}
|
|
19945
|
-
|
|
19946
|
-
function _templateObject$o() {
|
|
19947
|
-
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n > * + * {\n margin-top: 0.25rem;\n }\n"]);
|
|
19948
|
-
|
|
19949
|
-
_templateObject$o = function _templateObject() {
|
|
19950
|
-
return data;
|
|
19951
|
-
};
|
|
19952
|
-
|
|
19953
|
-
return data;
|
|
19954
|
-
}
|
|
19955
|
-
var SelectContainer = styled__default.div(_templateObject$o());
|
|
19956
|
-
var SelectField = styled__default.select(_templateObject2$c(), function (_ref) {
|
|
19468
|
+
var _templateObject$o, _templateObject2$c, _templateObject3$6;
|
|
19469
|
+
var SelectContainer = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n > * + * {\n margin-top: 0.25rem;\n }\n"])));
|
|
19470
|
+
var SelectField = styled__default.select(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 2px;\n height: 48px;\n width: 100%;\n padding: 0.75rem 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n font-family: Public Sans;\n line-height: 2rem;\n font-weight: ", ";\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n"])), function (_ref) {
|
|
19957
19471
|
var field = _ref.field,
|
|
19958
19472
|
showErrors = _ref.showErrors;
|
|
19959
19473
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : GHOST_GREY;
|
|
@@ -19964,7 +19478,7 @@ var SelectField = styled__default.select(_templateObject2$c(), function (_ref) {
|
|
|
19964
19478
|
var themeValues = _ref3.themeValues;
|
|
19965
19479
|
return themeValues.color && themeValues.color;
|
|
19966
19480
|
}, MATISSE_BLUE);
|
|
19967
|
-
var SelectOption = styled__default.option(_templateObject3$6());
|
|
19481
|
+
var SelectOption = styled__default.option(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral([""])));
|
|
19968
19482
|
|
|
19969
19483
|
var linkColor$1 = {
|
|
19970
19484
|
"default": "".concat(MATISSE_BLUE),
|
|
@@ -20868,16 +20382,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
20868
20382
|
});
|
|
20869
20383
|
};
|
|
20870
20384
|
|
|
20871
|
-
|
|
20872
|
-
|
|
20873
|
-
|
|
20874
|
-
_templateObject$p = function _templateObject() {
|
|
20875
|
-
return data;
|
|
20876
|
-
};
|
|
20877
|
-
|
|
20878
|
-
return data;
|
|
20879
|
-
}
|
|
20880
|
-
var DetailText = styled__default.p(_templateObject$p(), function (_ref) {
|
|
20385
|
+
var _templateObject$p;
|
|
20386
|
+
var DetailText = styled__default.p(_templateObject$p || (_templateObject$p = _taggedTemplateLiteral(["\n font-size: ", ";\n line-height: 1.5;\n color: ", ";\n font-weight: ", ";\n margin: ", ";\n text-align: ", ";\n font-family: ", ";\n\n ", ";\n"])), function (_ref) {
|
|
20881
20387
|
var fontSize = _ref.fontSize;
|
|
20882
20388
|
return fontSize;
|
|
20883
20389
|
}, function (_ref2) {
|
|
@@ -20928,6 +20434,7 @@ var mobileFallbackValues = {
|
|
|
20928
20434
|
};
|
|
20929
20435
|
var MOBILE_BREAKPOINT = 768;
|
|
20930
20436
|
|
|
20437
|
+
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
20931
20438
|
/*
|
|
20932
20439
|
New responsive text component for Detail elements
|
|
20933
20440
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -20977,7 +20484,7 @@ var Detail = function Detail(_ref) {
|
|
|
20977
20484
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
20978
20485
|
dataQa = _ref.dataQa,
|
|
20979
20486
|
children = _ref.children,
|
|
20980
|
-
rest = _objectWithoutProperties(_ref,
|
|
20487
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
20981
20488
|
|
|
20982
20489
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
20983
20490
|
variant: variant,
|
|
@@ -21430,66 +20937,11 @@ var fallbackValues$i = {
|
|
|
21430
20937
|
formFooterPanel: formFooterPanel
|
|
21431
20938
|
};
|
|
21432
20939
|
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
_templateObject6$2 = function _templateObject6() {
|
|
21437
|
-
return data;
|
|
21438
|
-
};
|
|
21439
|
-
|
|
21440
|
-
return data;
|
|
21441
|
-
}
|
|
21442
|
-
|
|
21443
|
-
function _templateObject5$2() {
|
|
21444
|
-
var data = _taggedTemplateLiteral(["\n color: #6e727e;\n background-color: #f7f7f7;\n "]);
|
|
21445
|
-
|
|
21446
|
-
_templateObject5$2 = function _templateObject5() {
|
|
21447
|
-
return data;
|
|
21448
|
-
};
|
|
21449
|
-
|
|
21450
|
-
return data;
|
|
21451
|
-
}
|
|
21452
|
-
|
|
21453
|
-
function _templateObject4$3() {
|
|
21454
|
-
var data = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 2px;\n height: ", ";\n width: 100%;\n padding: 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n line-height: 2rem;\n font-weight: ", ";\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n\n ", "\n"]);
|
|
21455
|
-
|
|
21456
|
-
_templateObject4$3 = function _templateObject4() {
|
|
21457
|
-
return data;
|
|
21458
|
-
};
|
|
21459
|
-
|
|
21460
|
-
return data;
|
|
21461
|
-
}
|
|
21462
|
-
|
|
21463
|
-
function _templateObject3$7() {
|
|
21464
|
-
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
21465
|
-
|
|
21466
|
-
_templateObject3$7 = function _templateObject3() {
|
|
21467
|
-
return data;
|
|
21468
|
-
};
|
|
21469
|
-
|
|
21470
|
-
return data;
|
|
21471
|
-
}
|
|
21472
|
-
|
|
21473
|
-
function _templateObject2$d() {
|
|
21474
|
-
var data = _taggedTemplateLiteral(["\n color: #6e727e;\n background-color: #f7f7f7;\n "]);
|
|
21475
|
-
|
|
21476
|
-
_templateObject2$d = function _templateObject2() {
|
|
21477
|
-
return data;
|
|
21478
|
-
};
|
|
21479
|
-
|
|
21480
|
-
return data;
|
|
21481
|
-
}
|
|
21482
|
-
|
|
21483
|
-
function _templateObject$q() {
|
|
21484
|
-
var data = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 2px;\n height: ", ";\n width: 100%;\n padding: 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n font-family: Public Sans;\n line-height: 2rem;\n font-weight: ", ";\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n ", "\n transition: background 0.3s ease;\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n\n ", "\n"]);
|
|
20940
|
+
var _excluded$p = ["showErrors", "themeValues"],
|
|
20941
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "extraStyles"];
|
|
21485
20942
|
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
};
|
|
21489
|
-
|
|
21490
|
-
return data;
|
|
21491
|
-
}
|
|
21492
|
-
var InputField = styled__default.input(_templateObject$q(), function (_ref) {
|
|
20943
|
+
var _templateObject$q, _templateObject2$d, _templateObject3$7, _templateObject4$3, _templateObject5$2, _templateObject6$2;
|
|
20944
|
+
var InputField = styled__default.input(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 2px;\n height: ", ";\n width: 100%;\n padding: 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n font-family: Public Sans;\n line-height: 2rem;\n font-weight: ", ";\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n ", "\n transition: background 0.3s ease;\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
21493
20945
|
var field = _ref.field,
|
|
21494
20946
|
showErrors = _ref.showErrors,
|
|
21495
20947
|
themeValues = _ref.themeValues;
|
|
@@ -21509,19 +20961,19 @@ var InputField = styled__default.input(_templateObject$q(), function (_ref) {
|
|
|
21509
20961
|
return background && "background: ".concat(themeValues.inputBackgroundColor, " url(").concat(background, ") no-repeat right 0.5rem center;");
|
|
21510
20962
|
}, ROYAL_BLUE, function (_ref6) {
|
|
21511
20963
|
var disabled = _ref6.disabled;
|
|
21512
|
-
return disabled && styled.css(_templateObject2$d());
|
|
20964
|
+
return disabled && styled.css(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n color: #6e727e;\n background-color: #f7f7f7;\n "])));
|
|
21513
20965
|
}, function (_ref7) {
|
|
21514
20966
|
var extraStyles = _ref7.extraStyles;
|
|
21515
|
-
return styled.css(_templateObject3$7(), extraStyles);
|
|
20967
|
+
return styled.css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n ", "\n "])), extraStyles);
|
|
21516
20968
|
}); // eslint-disable-next-line no-unused-vars
|
|
21517
20969
|
|
|
21518
20970
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
21519
20971
|
var showErrors = _ref8.showErrors,
|
|
21520
20972
|
themeValues = _ref8.themeValues,
|
|
21521
|
-
props = _objectWithoutProperties(_ref8,
|
|
20973
|
+
props = _objectWithoutProperties(_ref8, _excluded$p);
|
|
21522
20974
|
|
|
21523
20975
|
return /*#__PURE__*/React__default.createElement(src_1, props);
|
|
21524
|
-
})(_templateObject4$3(), function (_ref9) {
|
|
20976
|
+
})(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 2px;\n height: ", ";\n width: 100%;\n padding: 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n line-height: 2rem;\n font-weight: ", ";\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n\n &:focus {\n outline: 3px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n\n ", "\n"])), function (_ref9) {
|
|
21525
20977
|
var field = _ref9.field,
|
|
21526
20978
|
showErrors = _ref9.showErrors,
|
|
21527
20979
|
themeValues = _ref9.themeValues;
|
|
@@ -21537,10 +20989,10 @@ var FormattedInputField = styled__default(function (_ref8) {
|
|
|
21537
20989
|
return themeValues.color && themeValues.color;
|
|
21538
20990
|
}, ROYAL_BLUE, function (_ref13) {
|
|
21539
20991
|
var disabled = _ref13.disabled;
|
|
21540
|
-
return disabled && styled.css(_templateObject5$2());
|
|
20992
|
+
return disabled && styled.css(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral(["\n color: #6e727e;\n background-color: #f7f7f7;\n "])));
|
|
21541
20993
|
}, function (_ref14) {
|
|
21542
20994
|
var extraStyles = _ref14.extraStyles;
|
|
21543
|
-
return styled.css(_templateObject6$2(), extraStyles);
|
|
20995
|
+
return styled.css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral(["\n ", "\n "])), extraStyles);
|
|
21544
20996
|
});
|
|
21545
20997
|
|
|
21546
20998
|
var FormInput = function FormInput(_ref15) {
|
|
@@ -21565,7 +21017,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
21565
21017
|
background = _ref15.background,
|
|
21566
21018
|
customHeight = _ref15.customHeight,
|
|
21567
21019
|
extraStyles = _ref15.extraStyles,
|
|
21568
|
-
props = _objectWithoutProperties(_ref15,
|
|
21020
|
+
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
21569
21021
|
|
|
21570
21022
|
var _useState = React.useState(false),
|
|
21571
21023
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -21673,6 +21125,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
21673
21125
|
|
|
21674
21126
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$i, "default");
|
|
21675
21127
|
|
|
21128
|
+
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
21129
|
+
|
|
21676
21130
|
var FormInputRow = function FormInputRow(_ref) {
|
|
21677
21131
|
var _ref$breakpoint = _ref.breakpoint,
|
|
21678
21132
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -21681,7 +21135,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
21681
21135
|
largeChild = _ref.largeChild,
|
|
21682
21136
|
largeChildSize = _ref.largeChildSize,
|
|
21683
21137
|
children = _ref.children,
|
|
21684
|
-
rest = _objectWithoutProperties(_ref,
|
|
21138
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
21685
21139
|
|
|
21686
21140
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
21687
21141
|
padding: "0"
|
|
@@ -21693,12 +21147,14 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
21693
21147
|
}, children));
|
|
21694
21148
|
};
|
|
21695
21149
|
|
|
21150
|
+
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
21151
|
+
|
|
21696
21152
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
21697
21153
|
var _ref$childGap = _ref.childGap,
|
|
21698
21154
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
21699
21155
|
bottomItem = _ref.bottomItem,
|
|
21700
21156
|
children = _ref.children,
|
|
21701
|
-
rest = _objectWithoutProperties(_ref,
|
|
21157
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
21702
21158
|
|
|
21703
21159
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
21704
21160
|
childGap: childGap,
|
|
@@ -21706,10 +21162,12 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
21706
21162
|
}, rest), children);
|
|
21707
21163
|
};
|
|
21708
21164
|
|
|
21165
|
+
var _excluded$s = ["themeValues", "children"];
|
|
21166
|
+
|
|
21709
21167
|
var FormContainer = function FormContainer(_ref) {
|
|
21710
21168
|
var themeValues = _ref.themeValues,
|
|
21711
21169
|
children = _ref.children,
|
|
21712
|
-
rest = _objectWithoutProperties(_ref,
|
|
21170
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
21713
21171
|
|
|
21714
21172
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
21715
21173
|
isMobile = _useContext.isMobile;
|
|
@@ -21811,30 +21269,12 @@ var fallbackValues$k = {
|
|
|
21811
21269
|
autopayTextColor: autopayTextColor
|
|
21812
21270
|
};
|
|
21813
21271
|
|
|
21814
|
-
|
|
21815
|
-
var data = _taggedTemplateLiteral(["\n margin-right: 16px;\n width: 30px;\n height: auto;\n display: flex;\n"]);
|
|
21816
|
-
|
|
21817
|
-
_templateObject2$e = function _templateObject2() {
|
|
21818
|
-
return data;
|
|
21819
|
-
};
|
|
21820
|
-
|
|
21821
|
-
return data;
|
|
21822
|
-
}
|
|
21823
|
-
|
|
21824
|
-
function _templateObject$r() {
|
|
21825
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"]);
|
|
21826
|
-
|
|
21827
|
-
_templateObject$r = function _templateObject() {
|
|
21828
|
-
return data;
|
|
21829
|
-
};
|
|
21830
|
-
|
|
21831
|
-
return data;
|
|
21832
|
-
}
|
|
21272
|
+
var _templateObject$r, _templateObject2$e;
|
|
21833
21273
|
var ACTIVE = "ACTIVE";
|
|
21834
21274
|
var EXPIRING_SOON = "EXPIRING_SOON";
|
|
21835
21275
|
var EXPIRED = "EXPIRED";
|
|
21836
|
-
var CreditCardWrapper = styled__default.div(_templateObject$r());
|
|
21837
|
-
var CCIconWrapper = styled__default.div(_templateObject2$e());
|
|
21276
|
+
var CreditCardWrapper = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n"])));
|
|
21277
|
+
var CCIconWrapper = styled__default.div(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n margin-right: 16px;\n width: 30px;\n height: auto;\n display: flex;\n"])));
|
|
21838
21278
|
|
|
21839
21279
|
var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
21840
21280
|
var lastFour = _ref.lastFour,
|
|
@@ -21887,38 +21327,10 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
21887
21327
|
|
|
21888
21328
|
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$k);
|
|
21889
21329
|
|
|
21890
|
-
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
|
|
21894
|
-
return data;
|
|
21895
|
-
};
|
|
21896
|
-
|
|
21897
|
-
return data;
|
|
21898
|
-
}
|
|
21899
|
-
|
|
21900
|
-
function _templateObject2$f() {
|
|
21901
|
-
var data = _taggedTemplateLiteral(["\n width: 34px;\n height: 34px;\n display: inline-block;\n position: relative;\n"]);
|
|
21902
|
-
|
|
21903
|
-
_templateObject2$f = function _templateObject2() {
|
|
21904
|
-
return data;
|
|
21905
|
-
};
|
|
21906
|
-
|
|
21907
|
-
return data;
|
|
21908
|
-
}
|
|
21909
|
-
|
|
21910
|
-
function _templateObject$s() {
|
|
21911
|
-
var data = _taggedTemplateLiteral(["\n padding: 8px;\n display: inline-block;\n cursor: pointer;\n transition-property: opacity;\n transition-duration: 0.15s;\n transition-timing-function: linear;\n font: inherit;\n color: inherit;\n text-transform: none;\n background-color: transparent;\n border: 0;\n margin: 0;\n overflow: visible;\n\n &:focus {\n outline: none;\n }\n"]);
|
|
21912
|
-
|
|
21913
|
-
_templateObject$s = function _templateObject() {
|
|
21914
|
-
return data;
|
|
21915
|
-
};
|
|
21916
|
-
|
|
21917
|
-
return data;
|
|
21918
|
-
}
|
|
21919
|
-
var Hamburger = styled__default.button(_templateObject$s());
|
|
21920
|
-
var HamburgerBox = styled__default.span(_templateObject2$f());
|
|
21921
|
-
var HamburgerInner = styled__default.span(_templateObject3$8(), function (_ref) {
|
|
21330
|
+
var _templateObject$s, _templateObject2$f, _templateObject3$8;
|
|
21331
|
+
var Hamburger = styled__default.button(_templateObject$s || (_templateObject$s = _taggedTemplateLiteral(["\n padding: 8px;\n display: inline-block;\n cursor: pointer;\n transition-property: opacity;\n transition-duration: 0.15s;\n transition-timing-function: linear;\n font: inherit;\n color: inherit;\n text-transform: none;\n background-color: transparent;\n border: 0;\n margin: 0;\n overflow: visible;\n\n &:focus {\n outline: none;\n }\n"])));
|
|
21332
|
+
var HamburgerBox = styled__default.span(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\n width: 34px;\n height: 34px;\n display: inline-block;\n position: relative;\n"])));
|
|
21333
|
+
var HamburgerInner = styled__default.span(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n display: block;\n top: auto;\n bottom: 6px;\n left: 2px;\n transition-duration: 0.13s;\n transition-delay: 0.13s;\n transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n margin-top: 12px;\n background-color: ", ";\n\n &, &::before, &::after {\n background-color: ", ";\n width: 30px;\n height: 3px;\n position: absolute;\n transition-property: transform;\n transition-duration: 0.15s;\n transition-timing-function: ease;\n }\n\n &::before, &::after {\n content: \"\";\n display: block;\n }\n\n &::before {\n top: -10px;\n transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);\n }\n\n &::after {\n bottom: -10px;\n top: -20px;\n transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n opacity 0.1s linear;\n }\n\n &.active, &.active::before, &.active::after {\n background-color: ", ";\n }\n\n &.active {\n transform: translate3d(0, -10px, 0) rotate(-45deg);\n transition-delay: 0.22s;\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n\n &.active::after {\n top: 0;\n opacity: 0;\n transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n opacity: 0.1s 0.22s linear;\n }\n\n &.active::before {\n top: 0;\n transform: rotate(-90deg);\n transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n"])), function (_ref) {
|
|
21922
21334
|
var inactiveColor = _ref.inactiveColor;
|
|
21923
21335
|
return inactiveColor;
|
|
21924
21336
|
}, function (_ref2) {
|
|
@@ -21949,16 +21361,8 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
21949
21361
|
})));
|
|
21950
21362
|
};
|
|
21951
21363
|
|
|
21952
|
-
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
_templateObject$t = function _templateObject() {
|
|
21956
|
-
return data;
|
|
21957
|
-
};
|
|
21958
|
-
|
|
21959
|
-
return data;
|
|
21960
|
-
}
|
|
21961
|
-
var TitleText = styled__default.h1(_templateObject$t(), function (_ref) {
|
|
21364
|
+
var _templateObject$t;
|
|
21365
|
+
var TitleText = styled__default.h1(_templateObject$t || (_templateObject$t = _taggedTemplateLiteral(["\n font-size: ", ";\n line-height: 1.5;\n color: ", ";\n font-weight: ", ";\n margin: ", ";\n text-align: ", ";\n font-family: ", ";\n\n ", ";\n"])), function (_ref) {
|
|
21962
21366
|
var fontSize = _ref.fontSize;
|
|
21963
21367
|
return fontSize;
|
|
21964
21368
|
}, function (_ref2) {
|
|
@@ -22003,6 +21407,7 @@ var mobileFallbackValues$1 = {
|
|
|
22003
21407
|
};
|
|
22004
21408
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
22005
21409
|
|
|
21410
|
+
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
22006
21411
|
/*
|
|
22007
21412
|
New responsive text component for Title elements
|
|
22008
21413
|
Size is decoupled from tag
|
|
@@ -22049,7 +21454,7 @@ var Title = function Title(_ref) {
|
|
|
22049
21454
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
22050
21455
|
dataQa = _ref.dataQa,
|
|
22051
21456
|
children = _ref.children,
|
|
22052
|
-
rest = _objectWithoutProperties(_ref,
|
|
21457
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
22053
21458
|
|
|
22054
21459
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
22055
21460
|
variant: variant,
|
|
@@ -22214,26 +21619,8 @@ var fallbackValues$o = {
|
|
|
22214
21619
|
color: color$8
|
|
22215
21620
|
};
|
|
22216
21621
|
|
|
22217
|
-
|
|
22218
|
-
|
|
22219
|
-
|
|
22220
|
-
_templateObject2$g = function _templateObject2() {
|
|
22221
|
-
return data;
|
|
22222
|
-
};
|
|
22223
|
-
|
|
22224
|
-
return data;
|
|
22225
|
-
}
|
|
22226
|
-
|
|
22227
|
-
function _templateObject$u() {
|
|
22228
|
-
var data = _taggedTemplateLiteral(["\n animation: rotate 2s linear infinite;\n margin: -25px 0 0 -25px;\n width: ", "px;\n height: ", "px;\n & .path {\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n }\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"]);
|
|
22229
|
-
|
|
22230
|
-
_templateObject$u = function _templateObject() {
|
|
22231
|
-
return data;
|
|
22232
|
-
};
|
|
22233
|
-
|
|
22234
|
-
return data;
|
|
22235
|
-
}
|
|
22236
|
-
var SpinnerSvgAnimation = styled__default.svg(_templateObject$u(), function (_ref) {
|
|
21622
|
+
var _templateObject$u, _templateObject2$g;
|
|
21623
|
+
var SpinnerSvgAnimation = styled__default.svg(_templateObject$u || (_templateObject$u = _taggedTemplateLiteral(["\n animation: rotate 2s linear infinite;\n margin: -25px 0 0 -25px;\n width: ", "px;\n height: ", "px;\n & .path {\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n }\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"])), function (_ref) {
|
|
22237
21624
|
var size = _ref.size;
|
|
22238
21625
|
return size;
|
|
22239
21626
|
}, function (_ref2) {
|
|
@@ -22243,7 +21630,7 @@ var SpinnerSvgAnimation = styled__default.svg(_templateObject$u(), function (_re
|
|
|
22243
21630
|
var color = _ref3.color;
|
|
22244
21631
|
return color;
|
|
22245
21632
|
});
|
|
22246
|
-
var SpinnerContainer$2 = styled__default.div(_templateObject2$g());
|
|
21633
|
+
var SpinnerContainer$2 = styled__default.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n line-height: 1;\n"])));
|
|
22247
21634
|
|
|
22248
21635
|
var Spinner$1 = function Spinner(_ref4) {
|
|
22249
21636
|
var _ref4$size = _ref4.size,
|
|
@@ -22278,6 +21665,8 @@ var Loading = function Loading() {
|
|
|
22278
21665
|
})))));
|
|
22279
21666
|
};
|
|
22280
21667
|
|
|
21668
|
+
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
21669
|
+
|
|
22281
21670
|
var NavFooter = function NavFooter(_ref) {
|
|
22282
21671
|
var leftContent = _ref.leftContent,
|
|
22283
21672
|
rightContent = _ref.rightContent,
|
|
@@ -22292,7 +21681,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
22292
21681
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
22293
21682
|
isMobile = _ref.isMobile,
|
|
22294
21683
|
footerWidth = _ref.footerWidth,
|
|
22295
|
-
rest = _objectWithoutProperties(_ref,
|
|
21684
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
22296
21685
|
|
|
22297
21686
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
22298
21687
|
padding: footerPadding,
|
|
@@ -22324,6 +21713,8 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
22324
21713
|
}, rightContent)))))));
|
|
22325
21714
|
};
|
|
22326
21715
|
|
|
21716
|
+
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
21717
|
+
|
|
22327
21718
|
var NavHeader = function NavHeader(_ref) {
|
|
22328
21719
|
var leftContent = _ref.leftContent,
|
|
22329
21720
|
rightContent = _ref.rightContent,
|
|
@@ -22332,7 +21723,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
22332
21723
|
isMobile = _ref.isMobile,
|
|
22333
21724
|
backgroundColor = _ref.backgroundColor,
|
|
22334
21725
|
headerWidth = _ref.headerWidth,
|
|
22335
|
-
rest = _objectWithoutProperties(_ref,
|
|
21726
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
22336
21727
|
|
|
22337
21728
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
22338
21729
|
padding: "0 16px 4px",
|
|
@@ -22358,167 +21749,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
22358
21749
|
}, rightContent))))));
|
|
22359
21750
|
};
|
|
22360
21751
|
|
|
22361
|
-
var _DEFAULT_ERROR_MESSAG;
|
|
22362
|
-
|
|
22363
|
-
function _templateObject16() {
|
|
22364
|
-
var data = _taggedTemplateLiteral(["", " is not a valid option"]);
|
|
22365
|
-
|
|
22366
|
-
_templateObject16 = function _templateObject16() {
|
|
22367
|
-
return data;
|
|
22368
|
-
};
|
|
22369
|
-
|
|
22370
|
-
return data;
|
|
22371
|
-
}
|
|
22372
|
-
|
|
22373
|
-
function _templateObject15() {
|
|
22374
|
-
var data = _taggedTemplateLiteral(["", " must match ", ""]);
|
|
22375
|
-
|
|
22376
|
-
_templateObject15 = function _templateObject15() {
|
|
22377
|
-
return data;
|
|
22378
|
-
};
|
|
22379
|
-
|
|
22380
|
-
return data;
|
|
22381
|
-
}
|
|
22382
|
-
|
|
22383
|
-
function _templateObject14() {
|
|
22384
|
-
var data = _taggedTemplateLiteral(["", " is too low"]);
|
|
22385
|
-
|
|
22386
|
-
_templateObject14 = function _templateObject14() {
|
|
22387
|
-
return data;
|
|
22388
|
-
};
|
|
22389
|
-
|
|
22390
|
-
return data;
|
|
22391
|
-
}
|
|
22392
|
-
|
|
22393
|
-
function _templateObject13() {
|
|
22394
|
-
var data = _taggedTemplateLiteral(["", " is too high"]);
|
|
22395
|
-
|
|
22396
|
-
_templateObject13 = function _templateObject13() {
|
|
22397
|
-
return data;
|
|
22398
|
-
};
|
|
22399
|
-
|
|
22400
|
-
return data;
|
|
22401
|
-
}
|
|
22402
|
-
|
|
22403
|
-
function _templateObject12() {
|
|
22404
|
-
var data = _taggedTemplateLiteral(["", " is required"]);
|
|
22405
|
-
|
|
22406
|
-
_templateObject12 = function _templateObject12() {
|
|
22407
|
-
return data;
|
|
22408
|
-
};
|
|
22409
|
-
|
|
22410
|
-
return data;
|
|
22411
|
-
}
|
|
22412
|
-
|
|
22413
|
-
function _templateObject11$1() {
|
|
22414
|
-
var data = _taggedTemplateLiteral(["", " must be only letters"]);
|
|
22415
|
-
|
|
22416
|
-
_templateObject11$1 = function _templateObject11() {
|
|
22417
|
-
return data;
|
|
22418
|
-
};
|
|
22419
|
-
|
|
22420
|
-
return data;
|
|
22421
|
-
}
|
|
22422
|
-
|
|
22423
|
-
function _templateObject10$1() {
|
|
22424
|
-
var data = _taggedTemplateLiteral(["", " must be only numbers"]);
|
|
22425
|
-
|
|
22426
|
-
_templateObject10$1 = function _templateObject10() {
|
|
22427
|
-
return data;
|
|
22428
|
-
};
|
|
22429
|
-
|
|
22430
|
-
return data;
|
|
22431
|
-
}
|
|
22432
|
-
|
|
22433
|
-
function _templateObject9$1() {
|
|
22434
|
-
var data = _taggedTemplateLiteral(["", " needs a special character"]);
|
|
22435
|
-
|
|
22436
|
-
_templateObject9$1 = function _templateObject9() {
|
|
22437
|
-
return data;
|
|
22438
|
-
};
|
|
22439
|
-
|
|
22440
|
-
return data;
|
|
22441
|
-
}
|
|
22442
|
-
|
|
22443
|
-
function _templateObject8$1() {
|
|
22444
|
-
var data = _taggedTemplateLiteral(["", " needs a lowercase letter"]);
|
|
22445
|
-
|
|
22446
|
-
_templateObject8$1 = function _templateObject8() {
|
|
22447
|
-
return data;
|
|
22448
|
-
};
|
|
22449
|
-
|
|
22450
|
-
return data;
|
|
22451
|
-
}
|
|
22452
|
-
|
|
22453
|
-
function _templateObject7$2() {
|
|
22454
|
-
var data = _taggedTemplateLiteral(["", " needs an uppercase letter"]);
|
|
22455
|
-
|
|
22456
|
-
_templateObject7$2 = function _templateObject7() {
|
|
22457
|
-
return data;
|
|
22458
|
-
};
|
|
22459
|
-
|
|
22460
|
-
return data;
|
|
22461
|
-
}
|
|
22462
|
-
|
|
22463
|
-
function _templateObject6$3() {
|
|
22464
|
-
var data = _taggedTemplateLiteral(["", " needs a number"]);
|
|
22465
|
-
|
|
22466
|
-
_templateObject6$3 = function _templateObject6() {
|
|
22467
|
-
return data;
|
|
22468
|
-
};
|
|
22469
|
-
|
|
22470
|
-
return data;
|
|
22471
|
-
}
|
|
22472
|
-
|
|
22473
|
-
function _templateObject5$3() {
|
|
22474
|
-
var data = _taggedTemplateLiteral(["", " is not a valid email address"]);
|
|
22475
|
-
|
|
22476
|
-
_templateObject5$3 = function _templateObject5() {
|
|
22477
|
-
return data;
|
|
22478
|
-
};
|
|
22479
|
-
|
|
22480
|
-
return data;
|
|
22481
|
-
}
|
|
22482
|
-
|
|
22483
|
-
function _templateObject4$4() {
|
|
22484
|
-
var data = _taggedTemplateLiteral(["", " is not a valid length"]);
|
|
22485
|
-
|
|
22486
|
-
_templateObject4$4 = function _templateObject4() {
|
|
22487
|
-
return data;
|
|
22488
|
-
};
|
|
22489
|
-
|
|
22490
|
-
return data;
|
|
22491
|
-
}
|
|
22492
|
-
|
|
22493
|
-
function _templateObject3$9() {
|
|
22494
|
-
var data = _taggedTemplateLiteral(["", " is not the right length"]);
|
|
22495
|
-
|
|
22496
|
-
_templateObject3$9 = function _templateObject3() {
|
|
22497
|
-
return data;
|
|
22498
|
-
};
|
|
22499
|
-
|
|
22500
|
-
return data;
|
|
22501
|
-
}
|
|
22502
|
-
|
|
22503
|
-
function _templateObject2$h() {
|
|
22504
|
-
var data = _taggedTemplateLiteral(["", " is too long"]);
|
|
22505
|
-
|
|
22506
|
-
_templateObject2$h = function _templateObject2() {
|
|
22507
|
-
return data;
|
|
22508
|
-
};
|
|
22509
|
-
|
|
22510
|
-
return data;
|
|
22511
|
-
}
|
|
22512
|
-
|
|
22513
|
-
function _templateObject$v() {
|
|
22514
|
-
var data = _taggedTemplateLiteral(["", " is too short"]);
|
|
22515
|
-
|
|
22516
|
-
_templateObject$v = function _templateObject() {
|
|
22517
|
-
return data;
|
|
22518
|
-
};
|
|
22519
|
-
|
|
22520
|
-
return data;
|
|
22521
|
-
}
|
|
21752
|
+
var _templateObject$v, _templateObject2$h, _templateObject3$9, _templateObject4$4, _templateObject5$3, _templateObject6$3, _templateObject7$2, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _DEFAULT_ERROR_MESSAG;
|
|
22522
21753
|
|
|
22523
21754
|
var MIN_LENGTH_ERROR = "error/HAS_LENGTH";
|
|
22524
21755
|
var MAX_LENGTH_ERROR = "max_length_error";
|
|
@@ -22559,7 +21790,7 @@ with interpolation.
|
|
|
22559
21790
|
*/
|
|
22560
21791
|
|
|
22561
21792
|
|
|
22562
|
-
var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$v(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$4(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EMAIL_ERROR, genErrorMessage(_templateObject5$3(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_NUMBER_ERROR, genErrorMessage(_templateObject6$3(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_UPPERCASE_LETTER_ERROR, genErrorMessage(_templateObject7$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_LOWERCASE_LETTER_ERROR, genErrorMessage(_templateObject8$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_SPECIAL_CHARACTER_ERROR, genErrorMessage(_templateObject9$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_NUMBERS_ERROR, genErrorMessage(_templateObject10$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_LETTERS_ERROR, genErrorMessage(_templateObject11$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, REQUIRED_FIELD_ERROR, genErrorMessage(_templateObject12(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_GREATER_THAN_ERROR, genErrorMessage(_templateObject13(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_LESS_THAN_ERROR, genErrorMessage(_templateObject14(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MATCHES_FIELD_ERROR, genErrorMessage(_templateObject15(), "fieldLabel", "matchField")), _defineProperty(_DEFAULT_ERROR_MESSAG, VALID_SELECT_OPTION_ERROR, genErrorMessage(_templateObject16(), "fieldLabel")), _DEFAULT_ERROR_MESSAG); // Constants to represent an input's state
|
|
21793
|
+
var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$v || (_templateObject$v = _taggedTemplateLiteral(["", " is too short"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteral(["", " is too long"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteral(["", " is not the right length"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteral(["", " is not a valid length"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EMAIL_ERROR, genErrorMessage(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral(["", " is not a valid email address"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_NUMBER_ERROR, genErrorMessage(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteral(["", " needs a number"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_UPPERCASE_LETTER_ERROR, genErrorMessage(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteral(["", " needs an uppercase letter"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_LOWERCASE_LETTER_ERROR, genErrorMessage(_templateObject8$1 || (_templateObject8$1 = _taggedTemplateLiteral(["", " needs a lowercase letter"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_SPECIAL_CHARACTER_ERROR, genErrorMessage(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteral(["", " needs a special character"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_NUMBERS_ERROR, genErrorMessage(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteral(["", " must be only numbers"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_LETTERS_ERROR, genErrorMessage(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteral(["", " must be only letters"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, REQUIRED_FIELD_ERROR, genErrorMessage(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["", " is required"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_GREATER_THAN_ERROR, genErrorMessage(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["", " is too high"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_LESS_THAN_ERROR, genErrorMessage(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["", " is too low"])), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MATCHES_FIELD_ERROR, genErrorMessage(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["", " must match ", ""])), "fieldLabel", "matchField")), _defineProperty(_DEFAULT_ERROR_MESSAG, VALID_SELECT_OPTION_ERROR, genErrorMessage(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["", " is not a valid option"])), "fieldLabel")), _DEFAULT_ERROR_MESSAG); // Constants to represent an input's state
|
|
22563
21794
|
// Neutral - has not been validated
|
|
22564
21795
|
// Invalid - has been validated and has an error
|
|
22565
21796
|
// Valid - has been validated and has no error
|
|
@@ -22819,16 +22050,8 @@ var fallbackValues$r = {
|
|
|
22819
22050
|
inactiveColor: inactiveColor
|
|
22820
22051
|
};
|
|
22821
22052
|
|
|
22822
|
-
|
|
22823
|
-
|
|
22824
|
-
|
|
22825
|
-
_templateObject$w = function _templateObject() {
|
|
22826
|
-
return data;
|
|
22827
|
-
};
|
|
22828
|
-
|
|
22829
|
-
return data;
|
|
22830
|
-
}
|
|
22831
|
-
var HiddenRadioButton = styled__default.input(_templateObject$w(), function (_ref) {
|
|
22053
|
+
var _templateObject$w;
|
|
22054
|
+
var HiddenRadioButton = styled__default.input(_templateObject$w || (_templateObject$w = _taggedTemplateLiteral(["\n opacity: 0;\n position: absolute;\n cursor: ", ";\n"])), function (_ref) {
|
|
22832
22055
|
var disabled = _ref.disabled;
|
|
22833
22056
|
return disabled ? "auto" : "pointer";
|
|
22834
22057
|
});
|
|
@@ -33606,53 +32829,15 @@ var fallbackValues$u = {
|
|
|
33606
32829
|
leftLabelStyles: leftLabelStyles
|
|
33607
32830
|
};
|
|
33608
32831
|
|
|
33609
|
-
|
|
33610
|
-
|
|
33611
|
-
|
|
33612
|
-
_templateObject4$5 = function _templateObject4() {
|
|
33613
|
-
return data;
|
|
33614
|
-
};
|
|
33615
|
-
|
|
33616
|
-
return data;
|
|
33617
|
-
}
|
|
33618
|
-
|
|
33619
|
-
function _templateObject3$a() {
|
|
33620
|
-
var data = _taggedTemplateLiteral(["\n position: absolute;\n width: 20px;\n height: 20px;\n border: none;\n border-radius: 50%;\n box-sizing: border-box;\n"]);
|
|
33621
|
-
|
|
33622
|
-
_templateObject3$a = function _templateObject3() {
|
|
33623
|
-
return data;
|
|
33624
|
-
};
|
|
33625
|
-
|
|
33626
|
-
return data;
|
|
33627
|
-
}
|
|
33628
|
-
|
|
33629
|
-
function _templateObject2$i() {
|
|
33630
|
-
var data = _taggedTemplateLiteral(["\n width: 48px;\n height: 24px;\n border-radius: 48px;\n border: none;\n position: relative;\n box-sizing: border-box;\n cursor: ", ";\n display: inline-block;\n\n &:hover {\n box-shadow: ", ";\n }\n\n &:focus {\n box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);\n }\n\n ", "\n"]);
|
|
33631
|
-
|
|
33632
|
-
_templateObject2$i = function _templateObject2() {
|
|
33633
|
-
return data;
|
|
33634
|
-
};
|
|
33635
|
-
|
|
33636
|
-
return data;
|
|
33637
|
-
}
|
|
33638
|
-
|
|
33639
|
-
function _templateObject$x() {
|
|
33640
|
-
var data = _taggedTemplateLiteral(["\n opacity: 0;\n position: absolute;\n cursor: ", ";\n height: 24px;\n width: 50px;\n ", "\n"]);
|
|
33641
|
-
|
|
33642
|
-
_templateObject$x = function _templateObject() {
|
|
33643
|
-
return data;
|
|
33644
|
-
};
|
|
33645
|
-
|
|
33646
|
-
return data;
|
|
33647
|
-
}
|
|
33648
|
-
var HiddenToggleSwitchBox = styled__default.input(_templateObject$x(), function (_ref) {
|
|
32832
|
+
var _templateObject$x, _templateObject2$i, _templateObject3$a, _templateObject4$5;
|
|
32833
|
+
var HiddenToggleSwitchBox = styled__default.input(_templateObject$x || (_templateObject$x = _taggedTemplateLiteral(["\n opacity: 0;\n position: absolute;\n cursor: ", ";\n height: 24px;\n width: 50px;\n ", "\n"])), function (_ref) {
|
|
33649
32834
|
var disabled = _ref.disabled;
|
|
33650
32835
|
return disabled ? "auto" : "pointer";
|
|
33651
32836
|
}, function (_ref2) {
|
|
33652
32837
|
var isMobile = _ref2.isMobile;
|
|
33653
32838
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
33654
32839
|
});
|
|
33655
|
-
var VisibleSwitchComponent = styled__default.label(_templateObject2$i(), function (_ref3) {
|
|
32840
|
+
var VisibleSwitchComponent = styled__default.label(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n width: 48px;\n height: 24px;\n border-radius: 48px;\n border: none;\n position: relative;\n box-sizing: border-box;\n cursor: ", ";\n display: inline-block;\n\n &:hover {\n box-shadow: ", ";\n }\n\n &:focus {\n box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);\n }\n\n ", "\n"])), function (_ref3) {
|
|
33656
32841
|
var disabled = _ref3.disabled;
|
|
33657
32842
|
return disabled ? "auto" : "pointer";
|
|
33658
32843
|
}, function (_ref4) {
|
|
@@ -33662,8 +32847,8 @@ var VisibleSwitchComponent = styled__default.label(_templateObject2$i(), functio
|
|
|
33662
32847
|
var isMobile = _ref5.isMobile;
|
|
33663
32848
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
33664
32849
|
});
|
|
33665
|
-
var ToggleSwitchMiddleRingComponent = styled__default.div(_templateObject3$a());
|
|
33666
|
-
var ToggleSwitchInnerRingComponent = styled__default.div(_templateObject4$5());
|
|
32850
|
+
var ToggleSwitchMiddleRingComponent = styled__default.div(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteral(["\n position: absolute;\n width: 20px;\n height: 20px;\n border: none;\n border-radius: 50%;\n box-sizing: border-box;\n"])));
|
|
32851
|
+
var ToggleSwitchInnerRingComponent = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteral(["\n position: absolute;\n width: 14px;\n height: 14px;\n top: 3px;\n left: 3px;\n right: 3px;\n bottom: 3px;\n border-radius: 50%;\n box-sizing: border-box;\n"])));
|
|
33667
32852
|
|
|
33668
32853
|
var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
33669
32854
|
var _ref6$isOn = _ref6.isOn,
|
|
@@ -33812,16 +32997,8 @@ var themeValues = {
|
|
|
33812
32997
|
focusBorder: focusBorder
|
|
33813
32998
|
};
|
|
33814
32999
|
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
_templateObject$y = function _templateObject() {
|
|
33819
|
-
return data;
|
|
33820
|
-
};
|
|
33821
|
-
|
|
33822
|
-
return data;
|
|
33823
|
-
}
|
|
33824
|
-
var TypeaheadInputWrapper = styled__default.div(_templateObject$y(), themeValues.background, themeValues.background, themeValues.black, themeValues.focusBorder);
|
|
33000
|
+
var _templateObject$y;
|
|
33001
|
+
var TypeaheadInputWrapper = styled__default.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteral(["\n display: flex;\n align-content: center;\n align-items: center;\n background: ", ";\n\n input {\n border: 0;\n height: 72px;\n width: 100%;\n padding: 1.5rem;\n padding-left: 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n line-height: 2rem;\n font-weight: 400;\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n border: 1px solid transparent;\n\n &:focus {\n border: 1px solid ", ";\n }\n }\n"])), themeValues.background, themeValues.background, themeValues.black, themeValues.focusBorder);
|
|
33825
33002
|
|
|
33826
33003
|
var TypeaheadInput = function TypeaheadInput(_ref) {
|
|
33827
33004
|
var handleChange = _ref.handleChange,
|
|
@@ -33869,14 +33046,32 @@ var customParseFormat = createCommonjsModule$1(function (module, exports) {
|
|
|
33869
33046
|
!function(t,e){module.exports=e();}(commonjsGlobal$1,(function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,o={},s=function(t){return (t=+t)+(t>68?1900:2e3)};var a=function(t){return function(e){this[t]=+e;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t);}],u=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},h=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},d={A:[i,function(t){this.afternoon=h(t,!1);}],a:[i,function(t){this.afternoon=h(t,!0);}],S:[/\d/,function(t){this.milliseconds=100*+t;}],SS:[n,function(t){this.milliseconds=10*+t;}],SSS:[/\d{3}/,function(t){this.milliseconds=+t;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.substr(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(t){this.year=s(t);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),a=s.length,f=0;f<a;f+=1){var u=s[f],h=d[u],c=h&&h[0],l=h&&h[1];s[f]=l?{regex:c,parser:l}:u.replace(/^\[|\]$/g,"");}return function(t){for(var e={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,u=t.substr(r),h=o.exec(u)[0];f.call(e,h),t=t.replace(h,"");}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon;}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(s=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,s=t.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],u=!0===s[3],h=f||u,d=s[2];u&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=c(e)(t),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,u=r.seconds,h=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=u||0,g=h||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(t){return new Date("")}}(e,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),h&&e!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,t);};}}));
|
|
33870
33047
|
});
|
|
33871
33048
|
|
|
33049
|
+
var customParseFormat$1 = /*#__PURE__*/Object.freeze({
|
|
33050
|
+
__proto__: null,
|
|
33051
|
+
'default': customParseFormat,
|
|
33052
|
+
__moduleExports: customParseFormat
|
|
33053
|
+
});
|
|
33054
|
+
|
|
33872
33055
|
var isSameOrBefore = createCommonjsModule$1(function (module, exports) {
|
|
33873
33056
|
!function(e,i){module.exports=i();}(commonjsGlobal$1,(function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)};}}));
|
|
33874
33057
|
});
|
|
33875
33058
|
|
|
33059
|
+
var isSameOrBefore$1 = /*#__PURE__*/Object.freeze({
|
|
33060
|
+
__proto__: null,
|
|
33061
|
+
'default': isSameOrBefore,
|
|
33062
|
+
__moduleExports: isSameOrBefore
|
|
33063
|
+
});
|
|
33064
|
+
|
|
33876
33065
|
var isSameOrAfter = createCommonjsModule$1(function (module, exports) {
|
|
33877
33066
|
!function(e,t){module.exports=t();}(commonjsGlobal$1,(function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};}}));
|
|
33878
33067
|
});
|
|
33879
33068
|
|
|
33069
|
+
var isSameOrAfter$1 = /*#__PURE__*/Object.freeze({
|
|
33070
|
+
__proto__: null,
|
|
33071
|
+
'default': isSameOrAfter,
|
|
33072
|
+
__moduleExports: isSameOrAfter
|
|
33073
|
+
});
|
|
33074
|
+
|
|
33880
33075
|
/* eslint-disable no-unused-vars */
|
|
33881
33076
|
|
|
33882
33077
|
const createValidator = (type, error) => {
|
|
@@ -33886,9 +33081,12 @@ const createValidator = (type, error) => {
|
|
|
33886
33081
|
};
|
|
33887
33082
|
|
|
33888
33083
|
console.log("dayjs", dayjs_min);
|
|
33889
|
-
dayjs_min
|
|
33890
|
-
|
|
33891
|
-
|
|
33084
|
+
const extendedDayjs = dayjs_min
|
|
33085
|
+
.extend(customParseFormat$1)
|
|
33086
|
+
.extend(isSameOrBefore$1)
|
|
33087
|
+
.extend(isSameOrAfter$1);
|
|
33088
|
+
console.log("extended", extendedDayjs);
|
|
33089
|
+
console.log("old dayjs", dayjs_min);
|
|
33892
33090
|
|
|
33893
33091
|
let validatorFns = {};
|
|
33894
33092
|
|
|
@@ -36019,33 +35217,15 @@ EditNameForm.reducer = reducer$2;
|
|
|
36019
35217
|
EditNameForm.mapStateToProps = mapStateToProps$3;
|
|
36020
35218
|
EditNameForm.mapDispatchToProps = mapDispatchToProps$2;
|
|
36021
35219
|
|
|
36022
|
-
|
|
36023
|
-
|
|
36024
|
-
|
|
36025
|
-
_templateObject2$j = function _templateObject2() {
|
|
36026
|
-
return data;
|
|
36027
|
-
};
|
|
36028
|
-
|
|
36029
|
-
return data;
|
|
36030
|
-
}
|
|
36031
|
-
|
|
36032
|
-
function _templateObject$z() {
|
|
36033
|
-
var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n background: ", ";\n border-color: ", ";\n height: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1.5rem;\n :not(:last-child),\n :not(:first-child) {\n box-shadow: inset 0px -1px 0px 0px rgb(202, 206, 216);\n }\n :first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n }\n :last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n box-shadow: none;\n }\n"]);
|
|
36034
|
-
|
|
36035
|
-
_templateObject$z = function _templateObject() {
|
|
36036
|
-
return data;
|
|
36037
|
-
};
|
|
36038
|
-
|
|
36039
|
-
return data;
|
|
36040
|
-
}
|
|
36041
|
-
var EditableListItem = styled__default.div(_templateObject$z(), function (_ref) {
|
|
35220
|
+
var _templateObject$z, _templateObject2$j;
|
|
35221
|
+
var EditableListItem = styled__default.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteral(["\n box-sizing: border-box;\n background: ", ";\n border-color: ", ";\n height: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1.5rem;\n :not(:last-child),\n :not(:first-child) {\n box-shadow: inset 0px -1px 0px 0px rgb(202, 206, 216);\n }\n :first-child {\n border-top-left-radius: 3px;\n border-top-right-radius: 3px;\n }\n :last-child {\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n box-shadow: none;\n }\n"])), function (_ref) {
|
|
36042
35222
|
var disabled = _ref.disabled;
|
|
36043
35223
|
return disabled ? "rgba(246, 246, 249, 0.7)" : WHITE;
|
|
36044
35224
|
}, GHOST_GREY, function (_ref2) {
|
|
36045
35225
|
var listItemSize = _ref2.listItemSize;
|
|
36046
35226
|
return listItemSize === "big" ? "120px" : "72px";
|
|
36047
35227
|
});
|
|
36048
|
-
var EditableListItemControls = styled__default.div(_templateObject2$j());
|
|
35228
|
+
var EditableListItemControls = styled__default.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n"])));
|
|
36049
35229
|
|
|
36050
35230
|
var ACTIVE$1 = "ACTIVE";
|
|
36051
35231
|
var EXPIRED$1 = "EXPIRED";
|
|
@@ -36101,9 +35281,9 @@ var EditableList = function EditableList(_ref) {
|
|
|
36101
35281
|
|
|
36102
35282
|
var expiredItem = (_item$expirationStatu = item === null || item === void 0 ? void 0 : item.expirationStatus) !== null && _item$expirationStatu !== void 0 ? _item$expirationStatu : ACTIVE$1;
|
|
36103
35283
|
return /*#__PURE__*/React__default.createElement(EditableListItem, {
|
|
36104
|
-
listItemSize: !!item.id &&
|
|
35284
|
+
listItemSize: !!item.id && autoPayMethods !== null && autoPayMethods !== void 0 && autoPayMethods.some(function (methodID) {
|
|
36105
35285
|
return methodID === item.id;
|
|
36106
|
-
})
|
|
35286
|
+
}) ? "big" : listItemSize,
|
|
36107
35287
|
key: item.id || item,
|
|
36108
35288
|
disabled: expiredItem === EXPIRED$1
|
|
36109
35289
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -36155,100 +35335,12 @@ var EditableList = function EditableList(_ref) {
|
|
|
36155
35335
|
}))));
|
|
36156
35336
|
};
|
|
36157
35337
|
|
|
36158
|
-
|
|
36159
|
-
|
|
36160
|
-
|
|
36161
|
-
_templateObject9$2 = function _templateObject9() {
|
|
36162
|
-
return data;
|
|
36163
|
-
};
|
|
36164
|
-
|
|
36165
|
-
return data;
|
|
36166
|
-
}
|
|
36167
|
-
|
|
36168
|
-
function _templateObject8$2() {
|
|
36169
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n ", ";\n ", ";\n ", ";\n font-size: ", ";\n color: ", ";\n"]);
|
|
36170
|
-
|
|
36171
|
-
_templateObject8$2 = function _templateObject8() {
|
|
36172
|
-
return data;
|
|
36173
|
-
};
|
|
36174
|
-
|
|
36175
|
-
return data;
|
|
36176
|
-
}
|
|
36177
|
-
|
|
36178
|
-
function _templateObject7$3() {
|
|
36179
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n ", ";\n ", ";\n ", ";\n font-size: ", ";\n color: ", ";\n"]);
|
|
36180
|
-
|
|
36181
|
-
_templateObject7$3 = function _templateObject7() {
|
|
36182
|
-
return data;
|
|
36183
|
-
};
|
|
36184
|
-
|
|
36185
|
-
return data;
|
|
36186
|
-
}
|
|
36187
|
-
|
|
36188
|
-
function _templateObject6$4() {
|
|
36189
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n align-self: center;\n justify-content: flex-end;\n ", ";\n flex: 1;\n"]);
|
|
36190
|
-
|
|
36191
|
-
_templateObject6$4 = function _templateObject6() {
|
|
36192
|
-
return data;
|
|
36193
|
-
};
|
|
36194
|
-
|
|
36195
|
-
return data;
|
|
36196
|
-
}
|
|
36197
|
-
|
|
36198
|
-
function _templateObject5$4() {
|
|
36199
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex: 1;\n width: 100%;\n border-bottom: 1px solid ", ";\n"]);
|
|
36200
|
-
|
|
36201
|
-
_templateObject5$4 = function _templateObject5() {
|
|
36202
|
-
return data;
|
|
36203
|
-
};
|
|
36204
|
-
|
|
36205
|
-
return data;
|
|
36206
|
-
}
|
|
36207
|
-
|
|
36208
|
-
function _templateObject4$6() {
|
|
36209
|
-
var data = _taggedTemplateLiteral(["\n color: ", ";\n align-items: center;\n font-size: 1rem;\n padding-right: 1rem;\n cursor: pointer;\n display: ", ";\n"]);
|
|
36210
|
-
|
|
36211
|
-
_templateObject4$6 = function _templateObject4() {
|
|
36212
|
-
return data;
|
|
36213
|
-
};
|
|
36214
|
-
|
|
36215
|
-
return data;
|
|
36216
|
-
}
|
|
36217
|
-
|
|
36218
|
-
function _templateObject3$b() {
|
|
36219
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n"]);
|
|
36220
|
-
|
|
36221
|
-
_templateObject3$b = function _templateObject3() {
|
|
36222
|
-
return data;
|
|
36223
|
-
};
|
|
36224
|
-
|
|
36225
|
-
return data;
|
|
36226
|
-
}
|
|
36227
|
-
|
|
36228
|
-
function _templateObject2$k() {
|
|
36229
|
-
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n ", ";\n align-items: ", ";\n flex-direction: ", ";\n flex: 1;\n ", ";\n"]);
|
|
36230
|
-
|
|
36231
|
-
_templateObject2$k = function _templateObject2() {
|
|
36232
|
-
return data;
|
|
36233
|
-
};
|
|
36234
|
-
|
|
36235
|
-
return data;
|
|
36236
|
-
}
|
|
36237
|
-
|
|
36238
|
-
function _templateObject$A() {
|
|
36239
|
-
var data = _taggedTemplateLiteral(["\n display: ", ";\n flex-direction: column;\n flex: 1;\n"]);
|
|
36240
|
-
|
|
36241
|
-
_templateObject$A = function _templateObject() {
|
|
36242
|
-
return data;
|
|
36243
|
-
};
|
|
36244
|
-
|
|
36245
|
-
return data;
|
|
36246
|
-
}
|
|
36247
|
-
var EditableTableContainer = styled__default.div(_templateObject$A(), function (_ref) {
|
|
35338
|
+
var _templateObject$A, _templateObject2$k, _templateObject3$b, _templateObject4$6, _templateObject5$4, _templateObject6$4, _templateObject7$3, _templateObject8$2, _templateObject9$2;
|
|
35339
|
+
var EditableTableContainer = styled__default.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteral(["\n display: ", ";\n flex-direction: column;\n flex: 1;\n"])), function (_ref) {
|
|
36248
35340
|
var hide = _ref.hide;
|
|
36249
35341
|
return hide ? "none" : "flex";
|
|
36250
35342
|
});
|
|
36251
|
-
var EditableTableListItem = styled__default.div(_templateObject2$k(), function (_ref2) {
|
|
35343
|
+
var EditableTableListItem = styled__default.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n ", ";\n align-items: ", ";\n flex-direction: ", ";\n flex: 1;\n ", ";\n"])), function (_ref2) {
|
|
36252
35344
|
var isMobile = _ref2.isMobile;
|
|
36253
35345
|
return isMobile && "justify-content: center";
|
|
36254
35346
|
}, function (_ref3) {
|
|
@@ -36261,17 +35353,17 @@ var EditableTableListItem = styled__default.div(_templateObject2$k(), function (
|
|
|
36261
35353
|
var isMobile = _ref5.isMobile;
|
|
36262
35354
|
return isMobile ? "padding: 1rem 0.5rem" : "padding: 0 0.5rem";
|
|
36263
35355
|
});
|
|
36264
|
-
var EditableListItemControls$1 = styled__default.div(_templateObject3$b());
|
|
36265
|
-
var EditableListAction = styled__default.div(_templateObject4$6(), MATISSE_BLUE, function (_ref6) {
|
|
35356
|
+
var EditableListItemControls$1 = styled__default.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n"])));
|
|
35357
|
+
var EditableListAction = styled__default.div(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral(["\n color: ", ";\n align-items: center;\n font-size: 1rem;\n padding-right: 1rem;\n cursor: pointer;\n display: ", ";\n"])), MATISSE_BLUE, function (_ref6) {
|
|
36266
35358
|
var hide = _ref6.hide;
|
|
36267
35359
|
return hide ? "none" : "flex";
|
|
36268
35360
|
});
|
|
36269
|
-
var ItemWrapper = styled__default.div(_templateObject5$4(), GHOST_GREY);
|
|
36270
|
-
var ActionWrapper = styled__default.div(_templateObject6$4(), function (_ref7) {
|
|
35361
|
+
var ItemWrapper = styled__default.div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex: 1;\n width: 100%;\n border-bottom: 1px solid ", ";\n"])), GHOST_GREY);
|
|
35362
|
+
var ActionWrapper = styled__default.div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteral(["\n display: flex;\n align-self: center;\n justify-content: flex-end;\n ", ";\n flex: 1;\n"])), function (_ref7) {
|
|
36271
35363
|
var isMobile = _ref7.isMobile;
|
|
36272
35364
|
return isMobile && "display: none";
|
|
36273
35365
|
});
|
|
36274
|
-
var TableItemKey = styled__default.div(_templateObject7$3(), function (_ref8) {
|
|
35366
|
+
var TableItemKey = styled__default.div(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteral(["\n display: flex;\n ", ";\n ", ";\n ", ";\n font-size: ", ";\n color: ", ";\n"])), function (_ref8) {
|
|
36275
35367
|
var isMobile = _ref8.isMobile;
|
|
36276
35368
|
return !isMobile && "flex: 1";
|
|
36277
35369
|
}, function (_ref9) {
|
|
@@ -36284,7 +35376,7 @@ var TableItemKey = styled__default.div(_templateObject7$3(), function (_ref8) {
|
|
|
36284
35376
|
var isMobile = _ref11.isMobile;
|
|
36285
35377
|
return isMobile ? "1rem" : "1.125rem";
|
|
36286
35378
|
}, STORM_GREY);
|
|
36287
|
-
var TableItemValue = styled__default.div(_templateObject8$2(), function (_ref12) {
|
|
35379
|
+
var TableItemValue = styled__default.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteral(["\n display: flex;\n ", ";\n ", ";\n ", ";\n font-size: ", ";\n color: ", ";\n"])), function (_ref12) {
|
|
36288
35380
|
var isMobile = _ref12.isMobile;
|
|
36289
35381
|
return !isMobile && "flex: 1";
|
|
36290
35382
|
}, function (_ref13) {
|
|
@@ -36297,7 +35389,7 @@ var TableItemValue = styled__default.div(_templateObject8$2(), function (_ref12)
|
|
|
36297
35389
|
var isMobile = _ref15.isMobile;
|
|
36298
35390
|
return isMobile ? "1.125rem" : "1.0625rem";
|
|
36299
35391
|
}, BRIGHT_GREY);
|
|
36300
|
-
var TableWrapper = styled__default.div(_templateObject9$2());
|
|
35392
|
+
var TableWrapper = styled__default.div(_templateObject9$2 || (_templateObject9$2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex: 1;\n width: 100%;\n"])));
|
|
36301
35393
|
|
|
36302
35394
|
var EditableTable = function EditableTable(_ref) {
|
|
36303
35395
|
var title = _ref.title,
|
|
@@ -39740,15 +38832,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
39740
38832
|
|
|
39741
38833
|
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$y, "profile");
|
|
39742
38834
|
|
|
39743
|
-
|
|
39744
|
-
var data = _taggedTemplateLiteral(["\n position: fixed;\n top: 72px;\n"]);
|
|
39745
|
-
|
|
39746
|
-
_templateObject$B = function _templateObject() {
|
|
39747
|
-
return data;
|
|
39748
|
-
};
|
|
39749
|
-
|
|
39750
|
-
return data;
|
|
39751
|
-
}
|
|
38835
|
+
var _templateObject$B;
|
|
39752
38836
|
var menu = posed.div({
|
|
39753
38837
|
invisible: {
|
|
39754
38838
|
left: "-100vw",
|
|
@@ -39779,7 +38863,7 @@ var menu = posed.div({
|
|
|
39779
38863
|
}
|
|
39780
38864
|
}
|
|
39781
38865
|
});
|
|
39782
|
-
var ImposterMenu = styled__default(menu)(_templateObject$B());
|
|
38866
|
+
var ImposterMenu = styled__default(menu)(_templateObject$B || (_templateObject$B = _taggedTemplateLiteral(["\n position: fixed;\n top: 72px;\n"])));
|
|
39783
38867
|
|
|
39784
38868
|
var NavMenuMobile = function NavMenuMobile(_ref) {
|
|
39785
38869
|
var id = _ref.id,
|
|
@@ -40512,6 +39596,9 @@ var fallbackValues$A = {
|
|
|
40512
39596
|
labeledAmountTotal: labeledAmountTotal
|
|
40513
39597
|
};
|
|
40514
39598
|
|
|
39599
|
+
var _excluded$w = ["amount"],
|
|
39600
|
+
_excluded2$1 = ["amount"];
|
|
39601
|
+
|
|
40515
39602
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
40516
39603
|
var lineItemElems = _ref.lineItemElems,
|
|
40517
39604
|
feeElems = _ref.feeElems,
|
|
@@ -40600,7 +39687,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
40600
39687
|
return fee.amount > 0;
|
|
40601
39688
|
}).map(function (_ref5) {
|
|
40602
39689
|
var amount = _ref5.amount,
|
|
40603
|
-
rest = _objectWithoutProperties(_ref5,
|
|
39690
|
+
rest = _objectWithoutProperties(_ref5, _excluded$w);
|
|
40604
39691
|
|
|
40605
39692
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
40606
39693
|
amount: displayCurrency(amount)
|
|
@@ -40609,7 +39696,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
40609
39696
|
|
|
40610
39697
|
var lineItems = _lineItems.map(function (_ref6) {
|
|
40611
39698
|
var amount = _ref6.amount,
|
|
40612
|
-
rest = _objectWithoutProperties(_ref6,
|
|
39699
|
+
rest = _objectWithoutProperties(_ref6, _excluded2$1);
|
|
40613
39700
|
|
|
40614
39701
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
40615
39702
|
amount: displayCurrency(amount)
|
|
@@ -41196,15 +40283,7 @@ var fallbackValues$C = {
|
|
|
41196
40283
|
focusStyles: focusStyles
|
|
41197
40284
|
};
|
|
41198
40285
|
|
|
41199
|
-
|
|
41200
|
-
var data = _taggedTemplateLiteral(["\n height: ", ";\n width: ", ";\n ", "\n transition: opacity 0.3s ease;\n "]);
|
|
41201
|
-
|
|
41202
|
-
_templateObject$C = function _templateObject() {
|
|
41203
|
-
return data;
|
|
41204
|
-
};
|
|
41205
|
-
|
|
41206
|
-
return data;
|
|
41207
|
-
}
|
|
40286
|
+
var _templateObject$C;
|
|
41208
40287
|
/*
|
|
41209
40288
|
Takes an array of section objects, each object should look like:
|
|
41210
40289
|
{
|
|
@@ -41301,7 +40380,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
41301
40380
|
}
|
|
41302
40381
|
};
|
|
41303
40382
|
var borderStyles = "\n border-width: 0 0 1px 0;\n border-color: ".concat(themeValues.borderColor, ";\n border-style: solid;\n border-radius: 0px;\n transform-origin: 100% 0;\n\n &:last-child {\n border-width: 0;\n }\n ");
|
|
41304
|
-
var RightIcon = styled__default.img(_templateObject$C(), function (_ref2) {
|
|
40383
|
+
var RightIcon = styled__default.img(_templateObject$C || (_templateObject$C = _taggedTemplateLiteral(["\n height: ", ";\n width: ", ";\n ", "\n transition: opacity 0.3s ease;\n "])), function (_ref2) {
|
|
41305
40384
|
var isMobile = _ref2.isMobile;
|
|
41306
40385
|
return isMobile ? "14px" : "18px";
|
|
41307
40386
|
}, function (_ref3) {
|
|
@@ -42018,16 +41097,8 @@ var fallbackValues$G = {
|
|
|
42018
41097
|
imageBackgroundColor: imageBackgroundColor
|
|
42019
41098
|
};
|
|
42020
41099
|
|
|
42021
|
-
|
|
42022
|
-
|
|
42023
|
-
|
|
42024
|
-
_templateObject$D = function _templateObject() {
|
|
42025
|
-
return data;
|
|
42026
|
-
};
|
|
42027
|
-
|
|
42028
|
-
return data;
|
|
42029
|
-
}
|
|
42030
|
-
var WelcomeImage = styled__default.img(_templateObject$D());
|
|
41100
|
+
var _templateObject$D;
|
|
41101
|
+
var WelcomeImage = styled__default.img(_templateObject$D || (_templateObject$D = _taggedTemplateLiteral(["\n width: auto;\n height: 215px;\n"])));
|
|
42031
41102
|
|
|
42032
41103
|
var WelcomeModule = function WelcomeModule(_ref) {
|
|
42033
41104
|
var heading = _ref.heading,
|