@thecb/components 5.0.0-beta.13 → 5.0.0-beta.2
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/.eslintrc.json +29 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +18 -0
- package/.github/stale.yml +17 -0
- package/.github/workflows/bump-version.yml +30 -0
- package/.github/workflows/create-release/build-body.sh +35 -0
- package/.github/workflows/create-release.yml +52 -0
- package/.github/workflows/disabled-workflows/publish-update.yml +73 -0
- package/.prettierignore +3 -0
- package/.storybook/main.js +4 -0
- package/.storybook/page.js +64 -0
- package/.storybook/themes/apc.theme.js +1 -0
- package/.storybook/themes/index.js +2 -0
- package/.storybook/themes/sf.theme.js +1 -0
- package/.tool-versions +1 -0
- package/dist/index.cjs.js +1476 -677
- package/package.json +4 -9
- package/rollup.config.js +53 -0
- package/src/components/molecules/modal/Modal.js +1 -1
- package/src/deprecated/utility/__tests__/safeConcat.spec.js +28 -30
- package/src/deprecated/utility/__tests__/validateKeyType.spec.js +49 -65
- package/src/deprecated/utility/index.js +2 -2
- package/src/deprecated/utility/safeConcat.js +3 -3
- package/src/deprecated/utility/validateKeyType.js +6 -4
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -41581
- package/dist/index.esm.js.map +0 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
- package/src/deprecated/.DS_Store +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -12,44 +12,6 @@ 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
|
-
|
|
53
15
|
function _typeof(obj) {
|
|
54
16
|
"@babel/helpers - typeof";
|
|
55
17
|
|
|
@@ -99,6 +61,40 @@ function _extends() {
|
|
|
99
61
|
return _extends.apply(this, arguments);
|
|
100
62
|
}
|
|
101
63
|
|
|
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
|
+
|
|
102
98
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
103
99
|
if (source == null) return {};
|
|
104
100
|
var target = {};
|
|
@@ -164,21 +160,18 @@ function _arrayWithHoles(arr) {
|
|
|
164
160
|
}
|
|
165
161
|
|
|
166
162
|
function _iterableToArray(iter) {
|
|
167
|
-
if (typeof Symbol !== "undefined" &&
|
|
163
|
+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
|
168
164
|
}
|
|
169
165
|
|
|
170
166
|
function _iterableToArrayLimit(arr, i) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
if (_i == null) return;
|
|
167
|
+
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
|
174
168
|
var _arr = [];
|
|
175
169
|
var _n = true;
|
|
176
170
|
var _d = false;
|
|
177
|
-
|
|
178
|
-
var _s, _e;
|
|
171
|
+
var _e = undefined;
|
|
179
172
|
|
|
180
173
|
try {
|
|
181
|
-
for (_i =
|
|
174
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
182
175
|
_arr.push(_s.value);
|
|
183
176
|
|
|
184
177
|
if (i && _arr.length === i) break;
|
|
@@ -4642,7 +4635,6 @@ var fallbackValues = {
|
|
|
4642
4635
|
fontSize: fontSize
|
|
4643
4636
|
};
|
|
4644
4637
|
|
|
4645
|
-
var _excluded = ["variant"];
|
|
4646
4638
|
/*
|
|
4647
4639
|
themeContext: { name: "default", values: {JSON_THEME_VALUES_HERE} }
|
|
4648
4640
|
|
|
@@ -4743,7 +4735,7 @@ var themeComponent = function themeComponent(component, componentThemeId, fallba
|
|
|
4743
4735
|
|
|
4744
4736
|
var _ref7$variant = _ref7.variant,
|
|
4745
4737
|
variant = _ref7$variant === void 0 ? defaultVariant : _ref7$variant,
|
|
4746
|
-
props = _objectWithoutProperties(_ref7,
|
|
4738
|
+
props = _objectWithoutProperties(_ref7, ["variant"]);
|
|
4747
4739
|
|
|
4748
4740
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
4749
4741
|
var metadata = (_themeContext$metadat = themeContext === null || themeContext === void 0 ? void 0 : themeContext.metadata) !== null && _themeContext$metadat !== void 0 ? _themeContext$metadat : {};
|
|
@@ -4985,10 +4977,36 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
4985
4977
|
ERROR_COLOR: ERROR_COLOR
|
|
4986
4978
|
});
|
|
4987
4979
|
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4980
|
+
function _templateObject3() {
|
|
4981
|
+
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
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) {
|
|
4992
5010
|
var fontSize = _ref.fontSize;
|
|
4993
5011
|
return fontSize;
|
|
4994
5012
|
}, function (_ref2) {
|
|
@@ -5002,11 +5020,11 @@ var TextSpan = styled__default.span.withConfig({
|
|
|
5002
5020
|
return color;
|
|
5003
5021
|
}, function (_ref5) {
|
|
5004
5022
|
var hoverStyles = _ref5.hoverStyles;
|
|
5005
|
-
return styled.css(
|
|
5023
|
+
return styled.css(_templateObject2(), hoverStyles);
|
|
5006
5024
|
}, ROYAL_BLUE, function (_ref6) {
|
|
5007
5025
|
var disabled = _ref6.disabled,
|
|
5008
5026
|
disabledStyles = _ref6.disabledStyles;
|
|
5009
|
-
return disabled && styled.css(
|
|
5027
|
+
return disabled && styled.css(_templateObject3(), disabledStyles);
|
|
5010
5028
|
}, function (_ref7) {
|
|
5011
5029
|
var extraStyles = _ref7.extraStyles;
|
|
5012
5030
|
return extraStyles;
|
|
@@ -5014,6 +5032,10 @@ var TextSpan = styled__default.span.withConfig({
|
|
|
5014
5032
|
|
|
5015
5033
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5016
5034
|
|
|
5035
|
+
function unwrapExports (x) {
|
|
5036
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5017
5039
|
function createCommonjsModule(fn, module) {
|
|
5018
5040
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
5019
5041
|
}
|
|
@@ -6125,8 +6147,6 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6125
6147
|
checkDeniedCards: checkDeniedCards
|
|
6126
6148
|
});
|
|
6127
6149
|
|
|
6128
|
-
var _excluded$1 = ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
6129
|
-
|
|
6130
6150
|
var Text = function Text(_ref) {
|
|
6131
6151
|
var themeValues = _ref.themeValues,
|
|
6132
6152
|
_ref$weight = _ref.weight,
|
|
@@ -6141,7 +6161,7 @@ var Text = function Text(_ref) {
|
|
|
6141
6161
|
as = _ref.as,
|
|
6142
6162
|
dataQa = _ref.dataQa,
|
|
6143
6163
|
children = _ref.children,
|
|
6144
|
-
rest = _objectWithoutProperties(_ref,
|
|
6164
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"]);
|
|
6145
6165
|
|
|
6146
6166
|
return /*#__PURE__*/React__default.createElement(TextSpan, _extends({
|
|
6147
6167
|
fontSize: themeValues.fontSize,
|
|
@@ -6159,7 +6179,75 @@ var Text = function Text(_ref) {
|
|
|
6159
6179
|
|
|
6160
6180
|
var Text$1 = themeComponent(Text, "Text", fallbackValues, "p");
|
|
6161
6181
|
|
|
6162
|
-
|
|
6182
|
+
function _templateObject7() {
|
|
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
|
+
};
|
|
6248
|
+
|
|
6249
|
+
return data;
|
|
6250
|
+
}
|
|
6163
6251
|
/*
|
|
6164
6252
|
The child span selector on hover styles targets the text inside of buttons when a button is hovered,
|
|
6165
6253
|
as long as the box wrapper has an "as" prop equal to "button"
|
|
@@ -6188,16 +6276,13 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6188
6276
|
hiddenStyles = _ref.hiddenStyles,
|
|
6189
6277
|
ariaControls = _ref.ariaControls,
|
|
6190
6278
|
ariaLabel = _ref.ariaLabel,
|
|
6191
|
-
props = _objectWithoutProperties(_ref,
|
|
6279
|
+
props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"]);
|
|
6192
6280
|
|
|
6193
6281
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
6194
6282
|
"aria-controls": ariaControls,
|
|
6195
6283
|
"aria-label": ariaLabel
|
|
6196
6284
|
}, props));
|
|
6197
|
-
})
|
|
6198
|
-
displayName: "Boxstyled__BoxWrapper",
|
|
6199
|
-
componentId: "sc-1f9ij0d-0"
|
|
6200
|
-
})(["position:relative;box-sizing:border-box;padding:", ";border:", ";box-shadow:", ";background-color:", ";min-height:", ";", " min-width:", ";max-width:", ";color:", ";border-radius:", ";border-width:", ";border:", ";text-align:", ";&:hover{", "}&:focus{", "}&:active{", "}&:disabled{", "}& *{color:", ";}", " ", ""], function (_ref2) {
|
|
6285
|
+
})(_templateObject$1(), function (_ref2) {
|
|
6201
6286
|
var padding = _ref2.padding;
|
|
6202
6287
|
return padding;
|
|
6203
6288
|
}, function (_ref3) {
|
|
@@ -6241,31 +6326,30 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6241
6326
|
}, function (_ref15) {
|
|
6242
6327
|
var hoverStyles = _ref15.hoverStyles,
|
|
6243
6328
|
as = _ref15.as;
|
|
6244
|
-
return styled.css(
|
|
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
6330
|
}, function (_ref16) {
|
|
6246
6331
|
var as = _ref16.as;
|
|
6247
|
-
return styled.css(
|
|
6332
|
+
return styled.css(_templateObject3$1(), ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
6248
6333
|
}, function (_ref17) {
|
|
6249
6334
|
var activeStyles = _ref17.activeStyles,
|
|
6250
6335
|
as = _ref17.as;
|
|
6251
|
-
return styled.css(
|
|
6336
|
+
return styled.css(_templateObject4(), activeStyles, as === "button" ? " > * > span {\n ".concat(activeStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6252
6337
|
}, function (_ref18) {
|
|
6253
6338
|
var disabledStyles = _ref18.disabledStyles,
|
|
6254
6339
|
as = _ref18.as;
|
|
6255
|
-
return styled.css(
|
|
6340
|
+
return styled.css(_templateObject5(), disabledStyles, as === "button" ? " > * > span {\n ".concat(disabledStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6256
6341
|
}, function (_ref19) {
|
|
6257
6342
|
var color = _ref19.color;
|
|
6258
6343
|
return color;
|
|
6259
6344
|
}, function (_ref20) {
|
|
6260
6345
|
var hiddenStyles = _ref20.hiddenStyles;
|
|
6261
|
-
return hiddenStyles && styled.css(
|
|
6346
|
+
return hiddenStyles && styled.css(_templateObject6());
|
|
6262
6347
|
}, function (_ref21) {
|
|
6263
6348
|
var extraStyles = _ref21.extraStyles;
|
|
6264
|
-
return styled.css(
|
|
6349
|
+
return styled.css(_templateObject7(), extraStyles);
|
|
6265
6350
|
});
|
|
6266
6351
|
/* eslint-enable no-unused-vars */
|
|
6267
6352
|
|
|
6268
|
-
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"];
|
|
6269
6353
|
/*
|
|
6270
6354
|
Box component to create generic boxes
|
|
6271
6355
|
Supply padding, border, background, and color values
|
|
@@ -6307,7 +6391,7 @@ var Box = function Box(_ref) {
|
|
|
6307
6391
|
extraStyles = _ref.extraStyles,
|
|
6308
6392
|
dataQa = _ref.dataQa,
|
|
6309
6393
|
children = _ref.children,
|
|
6310
|
-
rest = _objectWithoutProperties(_ref,
|
|
6394
|
+
rest = _objectWithoutProperties(_ref, ["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"]);
|
|
6311
6395
|
|
|
6312
6396
|
return /*#__PURE__*/React__default.createElement(BoxWrapper, _extends({
|
|
6313
6397
|
padding: padding,
|
|
@@ -6343,10 +6427,16 @@ var Box = function Box(_ref) {
|
|
|
6343
6427
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6344
6428
|
};
|
|
6345
6429
|
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6430
|
+
function _templateObject$2() {
|
|
6431
|
+
var data = _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"]);
|
|
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) {
|
|
6350
6440
|
var maxWidth = _ref.maxWidth;
|
|
6351
6441
|
return maxWidth;
|
|
6352
6442
|
}, function (_ref2) {
|
|
@@ -6360,7 +6450,6 @@ var CenterWrapper = styled__default.div.withConfig({
|
|
|
6360
6450
|
return intrinsic ? "\n display: flex;\n flex-direction: column;\n align-items: center;\n " : "";
|
|
6361
6451
|
});
|
|
6362
6452
|
|
|
6363
|
-
var _excluded$4 = ["maxWidth", "gutters", "intrinsic", "children"];
|
|
6364
6453
|
/*
|
|
6365
6454
|
Component to horizontally center itself (with auto right and left margins)
|
|
6366
6455
|
Use intrinsic prop if you want its children that are narrower than the max-width
|
|
@@ -6373,7 +6462,7 @@ var Center = function Center(_ref) {
|
|
|
6373
6462
|
_ref$intrinsic = _ref.intrinsic,
|
|
6374
6463
|
intrinsic = _ref$intrinsic === void 0 ? false : _ref$intrinsic,
|
|
6375
6464
|
children = _ref.children,
|
|
6376
|
-
rest = _objectWithoutProperties(_ref,
|
|
6465
|
+
rest = _objectWithoutProperties(_ref, ["maxWidth", "gutters", "intrinsic", "children"]);
|
|
6377
6466
|
|
|
6378
6467
|
return /*#__PURE__*/React__default.createElement(CenterWrapper, _extends({
|
|
6379
6468
|
maxWidth: maxWidth,
|
|
@@ -6382,18 +6471,33 @@ var Center = function Center(_ref) {
|
|
|
6382
6471
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6383
6472
|
};
|
|
6384
6473
|
|
|
6385
|
-
|
|
6474
|
+
function _templateObject2$2() {
|
|
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"]);
|
|
6476
|
+
|
|
6477
|
+
_templateObject2$2 = function _templateObject2() {
|
|
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
6493
|
/* eslint-disable no-unused-vars */
|
|
6387
6494
|
|
|
6388
6495
|
var ClusterWrapper = styled__default(function (_ref) {
|
|
6389
6496
|
var overflow = _ref.overflow,
|
|
6390
|
-
props = _objectWithoutProperties(_ref,
|
|
6497
|
+
props = _objectWithoutProperties(_ref, ["overflow"]);
|
|
6391
6498
|
|
|
6392
6499
|
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6393
|
-
})
|
|
6394
|
-
displayName: "Clusterstyled__ClusterWrapper",
|
|
6395
|
-
componentId: "sc-1dkqsm7-0"
|
|
6396
|
-
})(["overflow:", ";box-sizing:border-box;justify-self:", ";align-self:", ";flex-grow:", ";", ";"], function (_ref2) {
|
|
6500
|
+
})(_templateObject$3(), function (_ref2) {
|
|
6397
6501
|
var overflow = _ref2.overflow;
|
|
6398
6502
|
return overflow ? "visible" : "hidden";
|
|
6399
6503
|
}, function (_ref3) {
|
|
@@ -6409,10 +6513,7 @@ var ClusterWrapper = styled__default(function (_ref) {
|
|
|
6409
6513
|
var extraStyles = _ref6.extraStyles;
|
|
6410
6514
|
return extraStyles;
|
|
6411
6515
|
});
|
|
6412
|
-
var ClusterInnerWrapper = styled__default.div
|
|
6413
|
-
displayName: "Clusterstyled__ClusterInnerWrapper",
|
|
6414
|
-
componentId: "sc-1dkqsm7-1"
|
|
6415
|
-
})(["box-sizing:border-box;display:flex;flex-wrap:", ";justify-content:", ";align-items:", ";margin:calc(", " / 2 * -1);min-height:", ";min-width:", ";> *{margin:calc(", " / 2);}"], function (_ref7) {
|
|
6516
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref7) {
|
|
6416
6517
|
var nowrap = _ref7.nowrap;
|
|
6417
6518
|
return nowrap ? "nowrap" : "wrap";
|
|
6418
6519
|
}, function (_ref8) {
|
|
@@ -6435,7 +6536,6 @@ var ClusterInnerWrapper = styled__default.div.withConfig({
|
|
|
6435
6536
|
return childGap;
|
|
6436
6537
|
});
|
|
6437
6538
|
|
|
6438
|
-
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
|
|
6439
6539
|
/*
|
|
6440
6540
|
Cluster components suit any groups of elements that differ in
|
|
6441
6541
|
length and are liable to wrap. Buttons that appear together at the
|
|
@@ -6459,7 +6559,7 @@ var Cluster = function Cluster(_ref) {
|
|
|
6459
6559
|
flexGrow = _ref.flexGrow,
|
|
6460
6560
|
extraStyles = _ref.extraStyles,
|
|
6461
6561
|
children = _ref.children,
|
|
6462
|
-
rest = _objectWithoutProperties(_ref,
|
|
6562
|
+
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"]);
|
|
6463
6563
|
|
|
6464
6564
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
6465
6565
|
overflow: overflow
|
|
@@ -6478,10 +6578,16 @@ var Cluster = function Cluster(_ref) {
|
|
|
6478
6578
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6479
6579
|
};
|
|
6480
6580
|
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6581
|
+
function _templateObject$4() {
|
|
6582
|
+
var data = _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"]);
|
|
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) {
|
|
6485
6591
|
var columnGap = _ref.columnGap;
|
|
6486
6592
|
return columnGap;
|
|
6487
6593
|
}, function (_ref2) {
|
|
@@ -6500,8 +6606,6 @@ var GridWrapper = styled__default.div.withConfig({
|
|
|
6500
6606
|
return maxColWidth;
|
|
6501
6607
|
});
|
|
6502
6608
|
|
|
6503
|
-
var _excluded$7 = ["columnGap", "minColWidth", "maxColWidth", "children"];
|
|
6504
|
-
|
|
6505
6609
|
var Grid = function Grid(_ref) {
|
|
6506
6610
|
var columnGap = _ref.columnGap,
|
|
6507
6611
|
_ref$minColWidth = _ref.minColWidth,
|
|
@@ -6509,7 +6613,7 @@ var Grid = function Grid(_ref) {
|
|
|
6509
6613
|
_ref$maxColWidth = _ref.maxColWidth,
|
|
6510
6614
|
maxColWidth = _ref$maxColWidth === void 0 ? "1fr" : _ref$maxColWidth,
|
|
6511
6615
|
children = _ref.children,
|
|
6512
|
-
rest = _objectWithoutProperties(_ref,
|
|
6616
|
+
rest = _objectWithoutProperties(_ref, ["columnGap", "minColWidth", "maxColWidth", "children"]);
|
|
6513
6617
|
|
|
6514
6618
|
var ref = React.useRef();
|
|
6515
6619
|
|
|
@@ -6537,11 +6641,26 @@ var Grid = function Grid(_ref) {
|
|
|
6537
6641
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6538
6642
|
};
|
|
6539
6643
|
|
|
6540
|
-
|
|
6541
|
-
var
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6644
|
+
function _templateObject2$3() {
|
|
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
|
+
};
|
|
6660
|
+
|
|
6661
|
+
return data;
|
|
6662
|
+
}
|
|
6663
|
+
var SidebarWrapper = styled__default.div(_templateObject$5(), function (_ref) {
|
|
6545
6664
|
var fullHeight = _ref.fullHeight;
|
|
6546
6665
|
return fullHeight ? "height: 100%;" : "";
|
|
6547
6666
|
});
|
|
@@ -6552,13 +6671,10 @@ function (_ref2) {
|
|
|
6552
6671
|
contentMinWidth = _ref2.contentMinWidth,
|
|
6553
6672
|
minHeight = _ref2.minHeight,
|
|
6554
6673
|
fullHeight = _ref2.fullHeight,
|
|
6555
|
-
props = _objectWithoutProperties(_ref2,
|
|
6674
|
+
props = _objectWithoutProperties(_ref2, ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"]);
|
|
6556
6675
|
|
|
6557
6676
|
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6558
|
-
})
|
|
6559
|
-
displayName: "Sidebarstyled__SidebarInnerWrapper",
|
|
6560
|
-
componentId: "sc-1bbn2or-1"
|
|
6561
|
-
})(["display:flex;flex-wrap:wrap;box-sizing:border-box;margin:calc(", " / 2 * -1);> *{margin:calc(", " / 2);flex-grow:1;", ";", "}", " ", ""], function (_ref3) {
|
|
6677
|
+
})(_templateObject2$3(), function (_ref3) {
|
|
6562
6678
|
var childGap = _ref3.childGap;
|
|
6563
6679
|
return childGap;
|
|
6564
6680
|
}, function (_ref4) {
|
|
@@ -6580,7 +6696,6 @@ function (_ref2) {
|
|
|
6580
6696
|
return fullHeight ? "min-height: 100%;" : "";
|
|
6581
6697
|
});
|
|
6582
6698
|
|
|
6583
|
-
var _excluded$9 = ["childGap", "width", "sidebarOnRight", "contentMinWidth", "fullHeight", "minHeight", "children"];
|
|
6584
6699
|
/*
|
|
6585
6700
|
Component to assist in creating layouts with some element and a sidebar next to it
|
|
6586
6701
|
Sidebar takes a width value, this is the ideal target with, and what the sidebar
|
|
@@ -6606,7 +6721,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
6606
6721
|
fullHeight = _ref$fullHeight === void 0 ? false : _ref$fullHeight,
|
|
6607
6722
|
minHeight = _ref.minHeight,
|
|
6608
6723
|
children = _ref.children,
|
|
6609
|
-
rest = _objectWithoutProperties(_ref,
|
|
6724
|
+
rest = _objectWithoutProperties(_ref, ["childGap", "width", "sidebarOnRight", "contentMinWidth", "fullHeight", "minHeight", "children"]);
|
|
6610
6725
|
|
|
6611
6726
|
return /*#__PURE__*/React__default.createElement(SidebarWrapper, _extends({
|
|
6612
6727
|
fullHeight: fullHeight,
|
|
@@ -6621,10 +6736,16 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
6621
6736
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6622
6737
|
};
|
|
6623
6738
|
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6739
|
+
function _templateObject$6() {
|
|
6740
|
+
var data = _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"]);
|
|
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) {
|
|
6628
6749
|
var direction = _ref.direction;
|
|
6629
6750
|
return direction;
|
|
6630
6751
|
}, function (_ref2) {
|
|
@@ -6643,7 +6764,6 @@ var StackWrapper = styled__default.div.withConfig({
|
|
|
6643
6764
|
return bottomItem ? "\n > :nth-child(".concat(bottomItem, ") {\n ").concat(direction === "row" ? "margin-left: auto;" : "margin-top: auto;", "\n }\n ") : "";
|
|
6644
6765
|
});
|
|
6645
6766
|
|
|
6646
|
-
var _excluded$a = ["childGap", "bottomItem", "fullHeight", "children", "direction", "justify"];
|
|
6647
6767
|
/*
|
|
6648
6768
|
Component to impose margin-top between a list of child elements
|
|
6649
6769
|
Useful for things like sidebars and button lists
|
|
@@ -6664,7 +6784,7 @@ var Stack = function Stack(_ref) {
|
|
|
6664
6784
|
_ref$direction = _ref.direction,
|
|
6665
6785
|
direction = _ref$direction === void 0 ? "column" : _ref$direction,
|
|
6666
6786
|
justify = _ref.justify,
|
|
6667
|
-
rest = _objectWithoutProperties(_ref,
|
|
6787
|
+
rest = _objectWithoutProperties(_ref, ["childGap", "bottomItem", "fullHeight", "children", "direction", "justify"]);
|
|
6668
6788
|
|
|
6669
6789
|
return /*#__PURE__*/React__default.createElement(StackWrapper, _extends({
|
|
6670
6790
|
childGap: childGap,
|
|
@@ -6675,10 +6795,16 @@ var Stack = function Stack(_ref) {
|
|
|
6675
6795
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6676
6796
|
};
|
|
6677
6797
|
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6798
|
+
function _templateObject$7() {
|
|
6799
|
+
var data = _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"]);
|
|
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) {
|
|
6682
6808
|
var minHeight = _ref.minHeight;
|
|
6683
6809
|
return minHeight;
|
|
6684
6810
|
}, function (_ref2) {
|
|
@@ -6701,7 +6827,6 @@ var CoverOuterContainer = styled__default.div.withConfig({
|
|
|
6701
6827
|
return centerOverride ? "> :nth-child(2) {margin-top: 0; margin-bottom: auto;}" : "> :nth-child(2) {margin-top: auto; margin-bottom: auto;}";
|
|
6702
6828
|
});
|
|
6703
6829
|
|
|
6704
|
-
var _excluded$b = ["minHeight", "childGap", "padding", "fillCenter", "singleChild", "centerOverride", "children"];
|
|
6705
6830
|
/*
|
|
6706
6831
|
The Cover component is used when you want to have one center element
|
|
6707
6832
|
and an optional top/header element and/or an optional bottom/footer element.
|
|
@@ -6731,7 +6856,7 @@ var Cover = function Cover(_ref) {
|
|
|
6731
6856
|
singleChild = _ref.singleChild,
|
|
6732
6857
|
centerOverride = _ref.centerOverride,
|
|
6733
6858
|
children = _ref.children,
|
|
6734
|
-
rest = _objectWithoutProperties(_ref,
|
|
6859
|
+
rest = _objectWithoutProperties(_ref, ["minHeight", "childGap", "padding", "fillCenter", "singleChild", "centerOverride", "children"]);
|
|
6735
6860
|
|
|
6736
6861
|
return /*#__PURE__*/React__default.createElement(CoverOuterContainer, _extends({
|
|
6737
6862
|
minHeight: minHeight,
|
|
@@ -6742,16 +6867,21 @@ var Cover = function Cover(_ref) {
|
|
|
6742
6867
|
}, 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));
|
|
6743
6868
|
};
|
|
6744
6869
|
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6870
|
+
function _templateObject$8() {
|
|
6871
|
+
var data = _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"]);
|
|
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) {
|
|
6749
6880
|
var numerator = _ref.numerator,
|
|
6750
6881
|
denominator = _ref.denominator;
|
|
6751
6882
|
return "calc((".concat(numerator, " / ").concat(denominator, ") * 100%)");
|
|
6752
6883
|
});
|
|
6753
6884
|
|
|
6754
|
-
var _excluded$c = ["numerator", "denominator", "children"];
|
|
6755
6885
|
/*
|
|
6756
6886
|
The Frame component is used for cropping content to a specific aspect ratio.
|
|
6757
6887
|
The aspect ratio is supplied by the numerator and denominator props.
|
|
@@ -6771,7 +6901,7 @@ var Frame = function Frame(_ref) {
|
|
|
6771
6901
|
_ref$denominator = _ref.denominator,
|
|
6772
6902
|
denominator = _ref$denominator === void 0 ? 1 : _ref$denominator,
|
|
6773
6903
|
children = _ref.children,
|
|
6774
|
-
rest = _objectWithoutProperties(_ref,
|
|
6904
|
+
rest = _objectWithoutProperties(_ref, ["numerator", "denominator", "children"]);
|
|
6775
6905
|
|
|
6776
6906
|
return /*#__PURE__*/React__default.createElement(FrameOuterContainer, _extends({
|
|
6777
6907
|
numerator: numerator,
|
|
@@ -6779,14 +6909,37 @@ var Frame = function Frame(_ref) {
|
|
|
6779
6909
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
6780
6910
|
};
|
|
6781
6911
|
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6912
|
+
function _templateObject3$2() {
|
|
6913
|
+
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
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) {
|
|
6790
6943
|
var padding = _ref.padding;
|
|
6791
6944
|
return padding;
|
|
6792
6945
|
}, function (_ref2) {
|
|
@@ -6815,10 +6968,9 @@ var SwitcherInnerContainer = styled__default.div.withConfig({
|
|
|
6815
6968
|
return maxChildren ? "> :nth-last-child(".concat(maxChildren + 1, "), > :nth-last-child(").concat(maxChildren + 1, ") ~ * {\n flex-basis: 100%;\n }") : "";
|
|
6816
6969
|
}, function (_ref9) {
|
|
6817
6970
|
var extraStyles = _ref9.extraStyles;
|
|
6818
|
-
return styled.css(
|
|
6971
|
+
return styled.css(_templateObject3$2(), extraStyles);
|
|
6819
6972
|
});
|
|
6820
6973
|
|
|
6821
|
-
var _excluded$d = ["breakpoint", "childGap", "largeChild", "largeChildSize", "maxChildren", "maxChildrenOnly", "padding", "children", "extraStyles", "constrainMobile"];
|
|
6822
6974
|
/*
|
|
6823
6975
|
The Switcher is a component that is used to toggle between wide and narrow
|
|
6824
6976
|
layouts based on the size of the surrounding container. In the wide layout,
|
|
@@ -6867,7 +7019,7 @@ var Switcher = function Switcher(_ref) {
|
|
|
6867
7019
|
extraStyles = _ref.extraStyles,
|
|
6868
7020
|
_ref$constrainMobile = _ref.constrainMobile,
|
|
6869
7021
|
constrainMobile = _ref$constrainMobile === void 0 ? false : _ref$constrainMobile,
|
|
6870
|
-
rest = _objectWithoutProperties(_ref,
|
|
7022
|
+
rest = _objectWithoutProperties(_ref, ["breakpoint", "childGap", "largeChild", "largeChildSize", "maxChildren", "maxChildrenOnly", "padding", "children", "extraStyles", "constrainMobile"]);
|
|
6871
7023
|
|
|
6872
7024
|
return /*#__PURE__*/React__default.createElement(SwitcherOuterContainer, null, /*#__PURE__*/React__default.createElement(SwitcherInnerContainer, _extends({
|
|
6873
7025
|
breakpoint: breakpoint,
|
|
@@ -6882,10 +7034,16 @@ var Switcher = function Switcher(_ref) {
|
|
|
6882
7034
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6883
7035
|
};
|
|
6884
7036
|
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
7037
|
+
function _templateObject$a() {
|
|
7038
|
+
var data = _taggedTemplateLiteral(["\n position: ", ";\n top: ", ";\n left: ", ";\n display: ", ";\n\n ", "\n\n ", "\n ", ";\n"]);
|
|
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) {
|
|
6889
7047
|
var fixed = _ref.fixed;
|
|
6890
7048
|
return fixed ? "fixed" : "absolute";
|
|
6891
7049
|
}, function (_ref2) {
|
|
@@ -6910,7 +7068,6 @@ var ImposterWrapper = styled__default.div.withConfig({
|
|
|
6910
7068
|
return extraStyles;
|
|
6911
7069
|
});
|
|
6912
7070
|
|
|
6913
|
-
var _excluded$e = ["fixed", "verticalMargin", "horizontalMargin", "breakout", "top", "left", "centered", "visible", "children"];
|
|
6914
7071
|
/*
|
|
6915
7072
|
The imposter is used to position content over a parent node.
|
|
6916
7073
|
Great for tooltips, modals, dialogs, etc.
|
|
@@ -6949,7 +7106,7 @@ var Imposter = function Imposter(_ref) {
|
|
|
6949
7106
|
_ref$visible = _ref.visible,
|
|
6950
7107
|
visible = _ref$visible === void 0 ? true : _ref$visible,
|
|
6951
7108
|
children = _ref.children,
|
|
6952
|
-
rest = _objectWithoutProperties(_ref,
|
|
7109
|
+
rest = _objectWithoutProperties(_ref, ["fixed", "verticalMargin", "horizontalMargin", "breakout", "top", "left", "centered", "visible", "children"]);
|
|
6953
7110
|
|
|
6954
7111
|
return /*#__PURE__*/React__default.createElement(ImposterWrapper, _extends({
|
|
6955
7112
|
fixed: fixed,
|
|
@@ -12025,10 +12182,16 @@ if (typeof window !== "undefined") {
|
|
|
12025
12182
|
}
|
|
12026
12183
|
}
|
|
12027
12184
|
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
|
|
12031
|
-
|
|
12185
|
+
function _templateObject$b() {
|
|
12186
|
+
var data = _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"]);
|
|
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) {
|
|
12032
12195
|
var position = _ref.position;
|
|
12033
12196
|
return position;
|
|
12034
12197
|
}, function (_ref2) {
|
|
@@ -12093,7 +12256,6 @@ var MotionWrapper = styled__default(motion.div).withConfig({
|
|
|
12093
12256
|
return extraStyles;
|
|
12094
12257
|
});
|
|
12095
12258
|
|
|
12096
|
-
var _excluded$f = ["position", "padding", "children"];
|
|
12097
12259
|
/*
|
|
12098
12260
|
Catch-all component for creating animations with Framer Motion library
|
|
12099
12261
|
Wraps the framer motion "motion.div" with styled components and allows for passing
|
|
@@ -12135,7 +12297,7 @@ var Motion = function Motion(_ref) {
|
|
|
12135
12297
|
_ref$padding = _ref.padding,
|
|
12136
12298
|
padding = _ref$padding === void 0 ? "0" : _ref$padding,
|
|
12137
12299
|
children = _ref.children,
|
|
12138
|
-
rest = _objectWithoutProperties(_ref,
|
|
12300
|
+
rest = _objectWithoutProperties(_ref, ["position", "padding", "children"]);
|
|
12139
12301
|
|
|
12140
12302
|
return /*#__PURE__*/React__default.createElement(MotionWrapper, _extends({
|
|
12141
12303
|
position: position,
|
|
@@ -12143,10 +12305,16 @@ var Motion = function Motion(_ref) {
|
|
|
12143
12305
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null)));
|
|
12144
12306
|
};
|
|
12145
12307
|
|
|
12146
|
-
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12308
|
+
function _templateObject$c() {
|
|
12309
|
+
var data = _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"]);
|
|
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) {
|
|
12150
12318
|
var disableScroll = _ref.disableScroll;
|
|
12151
12319
|
return disableScroll ? "hidden" : "auto";
|
|
12152
12320
|
}, function (_ref2) {
|
|
@@ -12166,8 +12334,6 @@ var ReelStyled = styled__default.div.withConfig({
|
|
|
12166
12334
|
return childWidth;
|
|
12167
12335
|
});
|
|
12168
12336
|
|
|
12169
|
-
var _excluded$g = ["childGap", "height", "childWidth", "padding", "justifyContent", "disableScroll", "children"];
|
|
12170
|
-
|
|
12171
12337
|
var Reel = function Reel(_ref) {
|
|
12172
12338
|
var _ref$childGap = _ref.childGap,
|
|
12173
12339
|
childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
|
|
@@ -12182,7 +12348,7 @@ var Reel = function Reel(_ref) {
|
|
|
12182
12348
|
_ref$disableScroll = _ref.disableScroll,
|
|
12183
12349
|
disableScroll = _ref$disableScroll === void 0 ? false : _ref$disableScroll,
|
|
12184
12350
|
children = _ref.children,
|
|
12185
|
-
rest = _objectWithoutProperties(_ref,
|
|
12351
|
+
rest = _objectWithoutProperties(_ref, ["childGap", "height", "childWidth", "padding", "justifyContent", "disableScroll", "children"]);
|
|
12186
12352
|
|
|
12187
12353
|
return /*#__PURE__*/React__default.createElement(ReelStyled, _extends({
|
|
12188
12354
|
childGap: childGap,
|
|
@@ -12397,6 +12563,25 @@ var fallbackValues$1 = {
|
|
|
12397
12563
|
activeColor: activeColor
|
|
12398
12564
|
};
|
|
12399
12565
|
|
|
12566
|
+
function _templateObject2$5() {
|
|
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
|
+
}
|
|
12400
12585
|
var rotate = posed.div({
|
|
12401
12586
|
fixed: {
|
|
12402
12587
|
rotate: "0deg"
|
|
@@ -12412,14 +12597,8 @@ var rotate = posed.div({
|
|
|
12412
12597
|
}
|
|
12413
12598
|
}
|
|
12414
12599
|
});
|
|
12415
|
-
var SpinnerContainer = styled__default.div
|
|
12416
|
-
|
|
12417
|
-
componentId: "sc-jphte-0"
|
|
12418
|
-
})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;"]);
|
|
12419
|
-
var SpinnerIconWrapper = styled__default(rotate).withConfig({
|
|
12420
|
-
displayName: "Spinner__SpinnerIconWrapper",
|
|
12421
|
-
componentId: "sc-jphte-1"
|
|
12422
|
-
})(["width:", "px;height:", "px;"], function (_ref) {
|
|
12600
|
+
var SpinnerContainer = styled__default.div(_templateObject$d());
|
|
12601
|
+
var SpinnerIconWrapper = styled__default(rotate)(_templateObject2$5(), function (_ref) {
|
|
12423
12602
|
var isMobile = _ref.isMobile;
|
|
12424
12603
|
return isMobile ? "18" : "21";
|
|
12425
12604
|
}, function (_ref2) {
|
|
@@ -12462,7 +12641,25 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12462
12641
|
}))))));
|
|
12463
12642
|
};
|
|
12464
12643
|
|
|
12465
|
-
|
|
12644
|
+
function _templateObject2$6() {
|
|
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
|
+
};
|
|
12660
|
+
|
|
12661
|
+
return data;
|
|
12662
|
+
}
|
|
12466
12663
|
var rotate$1 = posed.div({
|
|
12467
12664
|
fixed: {
|
|
12468
12665
|
rotate: "0deg"
|
|
@@ -12478,14 +12675,8 @@ var rotate$1 = posed.div({
|
|
|
12478
12675
|
}
|
|
12479
12676
|
}
|
|
12480
12677
|
});
|
|
12481
|
-
var SpinnerContainer$1 = styled__default.div
|
|
12482
|
-
|
|
12483
|
-
componentId: "sc-1ffs4ga-0"
|
|
12484
|
-
})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;"]);
|
|
12485
|
-
var SpinnerIconWrapper$1 = styled__default(rotate$1).withConfig({
|
|
12486
|
-
displayName: "ButtonWithAction__SpinnerIconWrapper",
|
|
12487
|
-
componentId: "sc-1ffs4ga-1"
|
|
12488
|
-
})([""]);
|
|
12678
|
+
var SpinnerContainer$1 = styled__default.div(_templateObject$e());
|
|
12679
|
+
var SpinnerIconWrapper$1 = styled__default(rotate$1)(_templateObject2$6());
|
|
12489
12680
|
|
|
12490
12681
|
var Spinner = function Spinner(_ref) {
|
|
12491
12682
|
var isMobile = _ref.isMobile;
|
|
@@ -12530,7 +12721,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12530
12721
|
extraStyles = _ref2$extraStyles === void 0 ? "" : _ref2$extraStyles,
|
|
12531
12722
|
tabIndex = _ref2.tabIndex,
|
|
12532
12723
|
children = _ref2.children,
|
|
12533
|
-
rest = _objectWithoutProperties(_ref2,
|
|
12724
|
+
rest = _objectWithoutProperties(_ref2, ["action", "variant", "text", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"]);
|
|
12534
12725
|
|
|
12535
12726
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
12536
12727
|
var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
|
|
@@ -13506,14 +13697,27 @@ var GenericCard = function GenericCard() {
|
|
|
13506
13697
|
})))));
|
|
13507
13698
|
};
|
|
13508
13699
|
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13700
|
+
function _templateObject2$7() {
|
|
13701
|
+
var data = _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"]);
|
|
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);
|
|
13517
13721
|
var CHECKING = "CHECKING";
|
|
13518
13722
|
var SAVINGS = "SAVINGS";
|
|
13519
13723
|
|
|
@@ -15791,10 +15995,16 @@ var Alert = function Alert(_ref) {
|
|
|
15791
15995
|
|
|
15792
15996
|
var Alert$1 = themeComponent(Alert, "Alert", fallbackValues$4, "info");
|
|
15793
15997
|
|
|
15794
|
-
|
|
15795
|
-
|
|
15796
|
-
|
|
15797
|
-
|
|
15998
|
+
function _templateObject$g() {
|
|
15999
|
+
var data = _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"]);
|
|
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) {
|
|
15798
16008
|
var fontSize = _ref.fontSize;
|
|
15799
16009
|
return fontSize;
|
|
15800
16010
|
}, function (_ref2) {
|
|
@@ -15834,8 +16044,6 @@ var fallbackValues$5 = {
|
|
|
15834
16044
|
fontSize: fontSize$1
|
|
15835
16045
|
};
|
|
15836
16046
|
|
|
15837
|
-
var _excluded$i = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
15838
|
-
|
|
15839
16047
|
var Heading = function Heading(_ref) {
|
|
15840
16048
|
var themeValues = _ref.themeValues,
|
|
15841
16049
|
_ref$weight = _ref.weight,
|
|
@@ -15854,7 +16062,7 @@ var Heading = function Heading(_ref) {
|
|
|
15854
16062
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
15855
16063
|
dataQa = _ref.dataQa,
|
|
15856
16064
|
children = _ref.children,
|
|
15857
|
-
rest = _objectWithoutProperties(_ref,
|
|
16065
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
15858
16066
|
|
|
15859
16067
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
15860
16068
|
variant: variant,
|
|
@@ -16727,13 +16935,11 @@ var fallbackValues$7 = {
|
|
|
16727
16935
|
linkColor: linkColor
|
|
16728
16936
|
};
|
|
16729
16937
|
|
|
16730
|
-
var _excluded$j = ["variant", "themeValues", "children"];
|
|
16731
|
-
|
|
16732
16938
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
16733
16939
|
var variant = _ref.variant,
|
|
16734
16940
|
themeValues = _ref.themeValues,
|
|
16735
16941
|
children = _ref.children,
|
|
16736
|
-
props = _objectWithoutProperties(_ref,
|
|
16942
|
+
props = _objectWithoutProperties(_ref, ["variant", "themeValues", "children"]);
|
|
16737
16943
|
|
|
16738
16944
|
var shadowRegistry = {
|
|
16739
16945
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
@@ -16791,7 +16997,15 @@ var fallbackValues$9 = {
|
|
|
16791
16997
|
externalLinkColor: externalLinkColor
|
|
16792
16998
|
};
|
|
16793
16999
|
|
|
16794
|
-
|
|
17000
|
+
function _templateObject$h() {
|
|
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"]);
|
|
17002
|
+
|
|
17003
|
+
_templateObject$h = function _templateObject() {
|
|
17004
|
+
return data;
|
|
17005
|
+
};
|
|
17006
|
+
|
|
17007
|
+
return data;
|
|
17008
|
+
}
|
|
16795
17009
|
/*
|
|
16796
17010
|
The extracting of props and the disabling of the eslint rule is to stop React from complaining about
|
|
16797
17011
|
unrecognized DOM attributes.
|
|
@@ -16803,13 +17017,10 @@ var StyledExternalLink = styled__default(function (_ref) {
|
|
|
16803
17017
|
var hoverColor = _ref.hoverColor,
|
|
16804
17018
|
activeColor = _ref.activeColor,
|
|
16805
17019
|
extrastyles = _ref.extrastyles,
|
|
16806
|
-
props = _objectWithoutProperties(_ref,
|
|
17020
|
+
props = _objectWithoutProperties(_ref, ["hoverColor", "activeColor", "extrastyles"]);
|
|
16807
17021
|
|
|
16808
17022
|
return /*#__PURE__*/React__default.createElement("a", props);
|
|
16809
|
-
})
|
|
16810
|
-
displayName: "ExternalLinkstyled__StyledExternalLink",
|
|
16811
|
-
componentId: "sc-m1q2m2-0"
|
|
16812
|
-
})(["display:flex;font-size:", ";color:", ";font-weight:", ";font-family:", ";line-height:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
|
|
17023
|
+
})(_templateObject$h(), function (_ref2) {
|
|
16813
17024
|
var size = _ref2.size;
|
|
16814
17025
|
return size;
|
|
16815
17026
|
}, function (_ref3) {
|
|
@@ -16872,7 +17083,15 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
16872
17083
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
16873
17084
|
};
|
|
16874
17085
|
|
|
16875
|
-
|
|
17086
|
+
function _templateObject$i() {
|
|
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"]);
|
|
17088
|
+
|
|
17089
|
+
_templateObject$i = function _templateObject() {
|
|
17090
|
+
return data;
|
|
17091
|
+
};
|
|
17092
|
+
|
|
17093
|
+
return data;
|
|
17094
|
+
}
|
|
16876
17095
|
/*
|
|
16877
17096
|
The extracting of props and the disabling of the eslint rule is to stop React from complaining about
|
|
16878
17097
|
unrecognized DOM attributes.
|
|
@@ -16886,13 +17105,10 @@ var StyledInternalLink = styled__default(function (_ref) {
|
|
|
16886
17105
|
active = _ref.active,
|
|
16887
17106
|
color = _ref.color,
|
|
16888
17107
|
extrastyles = _ref.extrastyles,
|
|
16889
|
-
props = _objectWithoutProperties(_ref,
|
|
17108
|
+
props = _objectWithoutProperties(_ref, ["hoverColor", "activeColor", "active", "color", "extrastyles"]);
|
|
16890
17109
|
|
|
16891
17110
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, props);
|
|
16892
|
-
})
|
|
16893
|
-
displayName: "InternalLinkstyled__StyledInternalLink",
|
|
16894
|
-
componentId: "sc-cuqxud-0"
|
|
16895
|
-
})(["display:flex;color:", ";font-weight:", ";line-height:", ";font-size:", ";font-family:", ";margin:", ";&:hover{color:", ";text-decoration:underline;}&:focus{outline:3px solid ", ";outline-offset:2px;}&:active{text-decoration:underline;color:", ";}", ""], function (_ref2) {
|
|
17111
|
+
})(_templateObject$i(), function (_ref2) {
|
|
16896
17112
|
var color = _ref2.color,
|
|
16897
17113
|
active = _ref2.active,
|
|
16898
17114
|
activeColor = _ref2.activeColor;
|
|
@@ -18567,8 +18783,6 @@ _curry2(function test(pattern, str) {
|
|
|
18567
18783
|
|
|
18568
18784
|
var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
|
|
18569
18785
|
|
|
18570
|
-
var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
|
|
18571
|
-
|
|
18572
18786
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
18573
18787
|
var _ref$url = _ref.url,
|
|
18574
18788
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -18580,7 +18794,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
18580
18794
|
linkExtraStyles = _ref.linkExtraStyles,
|
|
18581
18795
|
_ref$newTab = _ref.newTab,
|
|
18582
18796
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
18583
|
-
otherProps = _objectWithoutProperties(_ref,
|
|
18797
|
+
otherProps = _objectWithoutProperties(_ref, ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"]);
|
|
18584
18798
|
|
|
18585
18799
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
18586
18800
|
var children = _ref2.children,
|
|
@@ -18636,10 +18850,16 @@ var fallbackValues$a = {
|
|
|
18636
18850
|
fontSize: fontSize$4
|
|
18637
18851
|
};
|
|
18638
18852
|
|
|
18639
|
-
|
|
18640
|
-
|
|
18641
|
-
|
|
18642
|
-
|
|
18853
|
+
function _templateObject$j() {
|
|
18854
|
+
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 margin: ", ";\n\n ", "\n"]);
|
|
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) {
|
|
18643
18863
|
var fontSize = _ref.fontSize;
|
|
18644
18864
|
return fontSize;
|
|
18645
18865
|
}, function (_ref2) {
|
|
@@ -18659,8 +18879,6 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
18659
18879
|
return extraStyles;
|
|
18660
18880
|
});
|
|
18661
18881
|
|
|
18662
|
-
var _excluded$n = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
18663
|
-
|
|
18664
18882
|
var Paragraph = function Paragraph(_ref) {
|
|
18665
18883
|
var themeValues = _ref.themeValues,
|
|
18666
18884
|
_ref$weight = _ref.weight,
|
|
@@ -18674,7 +18892,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
18674
18892
|
dataQa = _ref.dataQa,
|
|
18675
18893
|
children = _ref.children,
|
|
18676
18894
|
as = _ref.as,
|
|
18677
|
-
rest = _objectWithoutProperties(_ref,
|
|
18895
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"]);
|
|
18678
18896
|
|
|
18679
18897
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
18680
18898
|
weight: weight,
|
|
@@ -18937,33 +19155,127 @@ var fallbackValues$c = {
|
|
|
18937
19155
|
disabledCheckedStyles: disabledCheckedStyles
|
|
18938
19156
|
};
|
|
18939
19157
|
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
19158
|
+
function _templateObject11() {
|
|
19159
|
+
var data = _taggedTemplateLiteral(["\n ", " ", "\n "]);
|
|
19160
|
+
|
|
19161
|
+
_templateObject11 = function _templateObject11() {
|
|
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) {
|
|
18952
19270
|
var disabled = _ref.disabled,
|
|
18953
19271
|
disabledCheckColor = _ref.disabledCheckColor,
|
|
18954
19272
|
checkColor = _ref.checkColor;
|
|
18955
|
-
return disabled ? styled.css(
|
|
19273
|
+
return disabled ? styled.css(_templateObject4$1(), disabledCheckColor) : styled.css(_templateObject5$1(), checkColor);
|
|
18956
19274
|
});
|
|
18957
19275
|
var HiddenCheckbox = styled__default.input.attrs({
|
|
18958
19276
|
type: "checkbox"
|
|
18959
|
-
})
|
|
18960
|
-
|
|
18961
|
-
componentId: "sc-36kqbv-3"
|
|
18962
|
-
})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
|
|
18963
|
-
var StyledCheckbox = styled__default.div.withConfig({
|
|
18964
|
-
displayName: "Checkbox__StyledCheckbox",
|
|
18965
|
-
componentId: "sc-36kqbv-4"
|
|
18966
|
-
})(["display:inline-block;margin-right:16px;width:24px;height:24px;border-radius:2px;transition:all 150ms;", "{visibility:", ";}", ";"], CheckboxIcon, function (_ref2) {
|
|
19277
|
+
})(_templateObject6$1());
|
|
19278
|
+
var StyledCheckbox = styled__default.div(_templateObject7$1(), CheckboxIcon, function (_ref2) {
|
|
18967
19279
|
var checked = _ref2.checked;
|
|
18968
19280
|
return checked ? "visible" : "hidden";
|
|
18969
19281
|
}, function (_ref3) {
|
|
@@ -18977,7 +19289,7 @@ var StyledCheckbox = styled__default.div.withConfig({
|
|
|
18977
19289
|
errorStyles = _ref3.errorStyles,
|
|
18978
19290
|
disabledStyles = _ref3.disabledStyles,
|
|
18979
19291
|
disabledCheckedStyles = _ref3.disabledCheckedStyles;
|
|
18980
|
-
return error ? styled.css(
|
|
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);
|
|
18981
19293
|
});
|
|
18982
19294
|
|
|
18983
19295
|
var Checkbox = function Checkbox(_ref4) {
|
|
@@ -19102,25 +19414,38 @@ to the one generated by name-that-color.
|
|
|
19102
19414
|
var PEWTER_GREY$1 = "#DFE1E4";
|
|
19103
19415
|
var MARINER_BLUE$1 = "#2E75D2";
|
|
19104
19416
|
|
|
19417
|
+
function _templateObject2$9() {
|
|
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
|
+
}
|
|
19105
19436
|
var defaultTheme = {
|
|
19106
19437
|
theme: {
|
|
19107
19438
|
accentColor: MARINER_BLUE$1,
|
|
19108
19439
|
inactiveColor: PEWTER_GREY$1
|
|
19109
19440
|
}
|
|
19110
19441
|
};
|
|
19111
|
-
var RadioButtonBorder = styled__default.div
|
|
19112
|
-
displayName: "radio-button__RadioButtonBorder",
|
|
19113
|
-
componentId: "sc-8odgi0-0"
|
|
19114
|
-
})(["height:24px;width:24px;border:1px solid ", ";border-radius:12px;display:flex;justify-content:center;align-items:center;margin:10px;min-width:24px;min-height:24px;"], function (_ref) {
|
|
19442
|
+
var RadioButtonBorder = styled__default.div(_templateObject$l(), function (_ref) {
|
|
19115
19443
|
var isSelected = _ref.isSelected,
|
|
19116
19444
|
theme = _ref.theme;
|
|
19117
19445
|
return isSelected ? theme.accentColor : theme.inactiveColor;
|
|
19118
19446
|
});
|
|
19119
19447
|
RadioButtonBorder.defaultProps = defaultTheme;
|
|
19120
|
-
var RadioButtonCenter = styled__default.div
|
|
19121
|
-
displayName: "radio-button__RadioButtonCenter",
|
|
19122
|
-
componentId: "sc-8odgi0-1"
|
|
19123
|
-
})(["height:16px;width:16px;background-color:", ";border-radius:8px;"], function (_ref2) {
|
|
19448
|
+
var RadioButtonCenter = styled__default.div(_templateObject2$9(), function (_ref2) {
|
|
19124
19449
|
var theme = _ref2.theme;
|
|
19125
19450
|
return theme.accentColor;
|
|
19126
19451
|
});
|
|
@@ -19136,18 +19461,38 @@ var RadioButton = function RadioButton(_ref3) {
|
|
|
19136
19461
|
}, isSelected && /*#__PURE__*/React__default.createElement(RadioButtonCenter, null));
|
|
19137
19462
|
};
|
|
19138
19463
|
|
|
19139
|
-
|
|
19140
|
-
|
|
19141
|
-
|
|
19142
|
-
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19149
|
-
|
|
19150
|
-
|
|
19464
|
+
function _templateObject3$4() {
|
|
19465
|
+
var data = _taggedTemplateLiteral(["\n position: relative;\n z-index: 5;\n &:focus {\n outline: none;\n }\n"]);
|
|
19466
|
+
|
|
19467
|
+
_templateObject3$4 = function _templateObject3() {
|
|
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());
|
|
19151
19496
|
|
|
19152
19497
|
var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
19153
19498
|
var text = _ref.text,
|
|
@@ -19290,27 +19635,57 @@ var fallbackValues$e = {
|
|
|
19290
19635
|
hoverColor: hoverColor$3
|
|
19291
19636
|
};
|
|
19292
19637
|
|
|
19293
|
-
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
|
|
19638
|
+
function _templateObject4$2() {
|
|
19639
|
+
var data = _taggedTemplateLiteral(["\n border: none;\n background-color: ", ";\n font-size: 16px;\n height: 24px;\n"]);
|
|
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) {
|
|
19297
19678
|
var open = _ref.open;
|
|
19298
19679
|
return open ? "transform: rotate(-180deg)" : "";
|
|
19299
19680
|
});
|
|
19300
|
-
var DropdownContentWrapper = styled__default.div
|
|
19301
|
-
displayName: "Dropdown__DropdownContentWrapper",
|
|
19302
|
-
componentId: "sc-pn6m0h-1"
|
|
19303
|
-
})(["transform-origin:0 0;border:1px solid ", ";border-radius:2px;background-color:", ";padding:8px 0 8px;position:absolute;width:", ";min-width:100%;max-height:", ";overflow-y:scroll;z-index:1;box-sizing:border-box;&:focus{outline:none;}"], GREY_CHATEAU, WHITE, function (_ref2) {
|
|
19681
|
+
var DropdownContentWrapper = styled__default.div(_templateObject2$b(), GREY_CHATEAU, WHITE, function (_ref2) {
|
|
19304
19682
|
var widthFitOptions = _ref2.widthFitOptions;
|
|
19305
19683
|
return widthFitOptions ? "fit-content" : "100%";
|
|
19306
19684
|
}, function (_ref3) {
|
|
19307
19685
|
var maxHeight = _ref3.maxHeight;
|
|
19308
19686
|
return maxHeight || "400px";
|
|
19309
19687
|
});
|
|
19310
|
-
var DropdownItemWrapper = styled__default.div
|
|
19311
|
-
displayName: "Dropdown__DropdownItemWrapper",
|
|
19312
|
-
componentId: "sc-pn6m0h-2"
|
|
19313
|
-
})(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
|
|
19688
|
+
var DropdownItemWrapper = styled__default.div(_templateObject3$5(), function (_ref4) {
|
|
19314
19689
|
var selected = _ref4.selected,
|
|
19315
19690
|
themeValues = _ref4.themeValues;
|
|
19316
19691
|
return selected ? themeValues.selectedColor : WHITE;
|
|
@@ -19328,10 +19703,7 @@ var DropdownItemWrapper = styled__default.div.withConfig({
|
|
|
19328
19703
|
themeValues = _ref7.themeValues;
|
|
19329
19704
|
return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
|
|
19330
19705
|
});
|
|
19331
|
-
var SearchInput = styled__default.input
|
|
19332
|
-
displayName: "Dropdown__SearchInput",
|
|
19333
|
-
componentId: "sc-pn6m0h-3"
|
|
19334
|
-
})(["border:none;background-color:", ";font-size:16px;height:24px;"], function (_ref8) {
|
|
19706
|
+
var SearchInput = styled__default.input(_templateObject4$2(), function (_ref8) {
|
|
19335
19707
|
var themeValues = _ref8.themeValues;
|
|
19336
19708
|
return themeValues.hoverColor && themeValues.hoverColor;
|
|
19337
19709
|
});
|
|
@@ -19551,14 +19923,37 @@ var Dropdown = function Dropdown(_ref9) {
|
|
|
19551
19923
|
|
|
19552
19924
|
var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
|
|
19553
19925
|
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19926
|
+
function _templateObject3$6() {
|
|
19927
|
+
var data = _taggedTemplateLiteral([""]);
|
|
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) {
|
|
19562
19957
|
var field = _ref.field,
|
|
19563
19958
|
showErrors = _ref.showErrors;
|
|
19564
19959
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : GHOST_GREY;
|
|
@@ -19569,10 +19964,7 @@ var SelectField = styled__default.select.withConfig({
|
|
|
19569
19964
|
var themeValues = _ref3.themeValues;
|
|
19570
19965
|
return themeValues.color && themeValues.color;
|
|
19571
19966
|
}, MATISSE_BLUE);
|
|
19572
|
-
var SelectOption = styled__default.option
|
|
19573
|
-
displayName: "FormSelectstyled__SelectOption",
|
|
19574
|
-
componentId: "sc-hkrqrv-2"
|
|
19575
|
-
})([""]);
|
|
19967
|
+
var SelectOption = styled__default.option(_templateObject3$6());
|
|
19576
19968
|
|
|
19577
19969
|
var linkColor$1 = {
|
|
19578
19970
|
"default": "".concat(MATISSE_BLUE),
|
|
@@ -20476,10 +20868,16 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
20476
20868
|
});
|
|
20477
20869
|
};
|
|
20478
20870
|
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20871
|
+
function _templateObject$p() {
|
|
20872
|
+
var data = _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"]);
|
|
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) {
|
|
20483
20881
|
var fontSize = _ref.fontSize;
|
|
20484
20882
|
return fontSize;
|
|
20485
20883
|
}, function (_ref2) {
|
|
@@ -20530,7 +20928,6 @@ var mobileFallbackValues = {
|
|
|
20530
20928
|
};
|
|
20531
20929
|
var MOBILE_BREAKPOINT = 768;
|
|
20532
20930
|
|
|
20533
|
-
var _excluded$o = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
20534
20931
|
/*
|
|
20535
20932
|
New responsive text component for Detail elements
|
|
20536
20933
|
(Block level text elements which are smaller than "Title" elements)
|
|
@@ -20580,7 +20977,7 @@ var Detail = function Detail(_ref) {
|
|
|
20580
20977
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
20581
20978
|
dataQa = _ref.dataQa,
|
|
20582
20979
|
children = _ref.children,
|
|
20583
|
-
rest = _objectWithoutProperties(_ref,
|
|
20980
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
20584
20981
|
|
|
20585
20982
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
20586
20983
|
variant: variant,
|
|
@@ -20671,283 +21068,303 @@ var DisplayCard = function DisplayCard(_ref) {
|
|
|
20671
21068
|
}) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
|
|
20672
21069
|
};
|
|
20673
21070
|
|
|
20674
|
-
function
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
21071
|
+
var src = createCommonjsModule(function (module, exports) {
|
|
21072
|
+
(function (global, factory) {
|
|
21073
|
+
factory(exports, React__default) ;
|
|
21074
|
+
}(commonjsGlobal, function (exports, React) {
|
|
21075
|
+
var React__default = 'default' in React ? React['default'] : React;
|
|
20678
21076
|
|
|
20679
|
-
|
|
20680
|
-
|
|
20681
|
-
|
|
21077
|
+
function _extends() {
|
|
21078
|
+
_extends = Object.assign || function (target) {
|
|
21079
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
21080
|
+
var source = arguments[i];
|
|
21081
|
+
|
|
21082
|
+
for (var key in source) {
|
|
21083
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21084
|
+
target[key] = source[key];
|
|
21085
|
+
}
|
|
20682
21086
|
}
|
|
20683
21087
|
}
|
|
20684
|
-
}
|
|
20685
21088
|
|
|
20686
|
-
|
|
20687
|
-
|
|
20688
|
-
|
|
20689
|
-
return _extends$2.apply(this, arguments);
|
|
20690
|
-
}
|
|
20691
|
-
|
|
20692
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
20693
|
-
if (source == null) return {};
|
|
20694
|
-
var target = {};
|
|
20695
|
-
var sourceKeys = Object.keys(source);
|
|
20696
|
-
var key, i;
|
|
21089
|
+
return target;
|
|
21090
|
+
};
|
|
20697
21091
|
|
|
20698
|
-
|
|
20699
|
-
key = sourceKeys[i];
|
|
20700
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
20701
|
-
target[key] = source[key];
|
|
21092
|
+
return _extends.apply(this, arguments);
|
|
20702
21093
|
}
|
|
20703
21094
|
|
|
20704
|
-
|
|
20705
|
-
}
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
20711
|
-
|
|
20712
|
-
var key, i;
|
|
20713
|
-
|
|
20714
|
-
if (Object.getOwnPropertySymbols) {
|
|
20715
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
21095
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
21096
|
+
if (source == null) return {};
|
|
21097
|
+
var target = {};
|
|
21098
|
+
var sourceKeys = Object.keys(source);
|
|
21099
|
+
var key, i;
|
|
20716
21100
|
|
|
20717
|
-
for (i = 0; i <
|
|
20718
|
-
key =
|
|
21101
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
21102
|
+
key = sourceKeys[i];
|
|
20719
21103
|
if (excluded.indexOf(key) >= 0) continue;
|
|
20720
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
20721
21104
|
target[key] = source[key];
|
|
20722
21105
|
}
|
|
21106
|
+
|
|
21107
|
+
return target;
|
|
20723
21108
|
}
|
|
20724
21109
|
|
|
20725
|
-
|
|
20726
|
-
}
|
|
21110
|
+
function _objectWithoutProperties(source, excluded) {
|
|
21111
|
+
if (source == null) return {};
|
|
20727
21112
|
|
|
20728
|
-
|
|
20729
|
-
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
|
|
20730
|
-
}
|
|
21113
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
20731
21114
|
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
21115
|
+
var key, i;
|
|
21116
|
+
|
|
21117
|
+
if (Object.getOwnPropertySymbols) {
|
|
21118
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
20735
21119
|
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
21120
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
21121
|
+
key = sourceSymbolKeys[i];
|
|
21122
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
21123
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
21124
|
+
target[key] = source[key];
|
|
21125
|
+
}
|
|
21126
|
+
}
|
|
20739
21127
|
|
|
20740
|
-
return
|
|
21128
|
+
return target;
|
|
20741
21129
|
}
|
|
20742
|
-
}
|
|
20743
21130
|
|
|
20744
|
-
function
|
|
20745
|
-
|
|
20746
|
-
}
|
|
21131
|
+
function _slicedToArray(arr, i) {
|
|
21132
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
|
|
21133
|
+
}
|
|
20747
21134
|
|
|
20748
|
-
function
|
|
20749
|
-
|
|
20750
|
-
}
|
|
21135
|
+
function _toConsumableArray(arr) {
|
|
21136
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
21137
|
+
}
|
|
21138
|
+
|
|
21139
|
+
function _arrayWithoutHoles(arr) {
|
|
21140
|
+
if (Array.isArray(arr)) {
|
|
21141
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
20751
21142
|
|
|
20752
|
-
|
|
20753
|
-
|
|
20754
|
-
return;
|
|
21143
|
+
return arr2;
|
|
21144
|
+
}
|
|
20755
21145
|
}
|
|
20756
21146
|
|
|
20757
|
-
|
|
20758
|
-
|
|
20759
|
-
|
|
20760
|
-
var _e = undefined;
|
|
21147
|
+
function _arrayWithHoles(arr) {
|
|
21148
|
+
if (Array.isArray(arr)) return arr;
|
|
21149
|
+
}
|
|
20761
21150
|
|
|
20762
|
-
|
|
20763
|
-
|
|
20764
|
-
|
|
21151
|
+
function _iterableToArray(iter) {
|
|
21152
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
21153
|
+
}
|
|
20765
21154
|
|
|
20766
|
-
|
|
21155
|
+
function _iterableToArrayLimit(arr, i) {
|
|
21156
|
+
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
|
|
21157
|
+
return;
|
|
20767
21158
|
}
|
|
20768
|
-
|
|
20769
|
-
|
|
20770
|
-
|
|
20771
|
-
|
|
21159
|
+
|
|
21160
|
+
var _arr = [];
|
|
21161
|
+
var _n = true;
|
|
21162
|
+
var _d = false;
|
|
21163
|
+
var _e = undefined;
|
|
21164
|
+
|
|
20772
21165
|
try {
|
|
20773
|
-
|
|
21166
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
21167
|
+
_arr.push(_s.value);
|
|
21168
|
+
|
|
21169
|
+
if (i && _arr.length === i) break;
|
|
21170
|
+
}
|
|
21171
|
+
} catch (err) {
|
|
21172
|
+
_d = true;
|
|
21173
|
+
_e = err;
|
|
20774
21174
|
} finally {
|
|
20775
|
-
|
|
21175
|
+
try {
|
|
21176
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
21177
|
+
} finally {
|
|
21178
|
+
if (_d) throw _e;
|
|
21179
|
+
}
|
|
20776
21180
|
}
|
|
21181
|
+
|
|
21182
|
+
return _arr;
|
|
20777
21183
|
}
|
|
20778
21184
|
|
|
20779
|
-
|
|
20780
|
-
|
|
21185
|
+
function _nonIterableSpread() {
|
|
21186
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
21187
|
+
}
|
|
20781
21188
|
|
|
20782
|
-
function
|
|
20783
|
-
|
|
20784
|
-
}
|
|
21189
|
+
function _nonIterableRest() {
|
|
21190
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
21191
|
+
}
|
|
20785
21192
|
|
|
20786
|
-
function
|
|
20787
|
-
|
|
20788
|
-
}
|
|
21193
|
+
var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
|
|
21194
|
+
return _toConsumableArray(new Set(formats.join("").split(formatChar).join("").split("")));
|
|
21195
|
+
};
|
|
21196
|
+
var format = function format(formatter) {
|
|
21197
|
+
return function (value) {
|
|
21198
|
+
var usedFormat = formatter.formats[value.length];
|
|
20789
21199
|
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
}
|
|
20793
|
-
var format$1 = function format(formatter) {
|
|
20794
|
-
return function (value) {
|
|
20795
|
-
var usedFormat = formatter.formats[value.length];
|
|
21200
|
+
if (!usedFormat) {
|
|
21201
|
+
return value;
|
|
21202
|
+
}
|
|
20796
21203
|
|
|
20797
|
-
|
|
20798
|
-
|
|
20799
|
-
|
|
21204
|
+
var formatPieces = usedFormat.split(formatter.formatChar);
|
|
21205
|
+
var valuePieces = value.split("");
|
|
21206
|
+
var zipped = formatPieces.map(function (v, i) {
|
|
21207
|
+
return v + (valuePieces[i] || "");
|
|
21208
|
+
});
|
|
21209
|
+
return zipped.join("");
|
|
21210
|
+
};
|
|
21211
|
+
};
|
|
20800
21212
|
|
|
20801
|
-
|
|
20802
|
-
var
|
|
20803
|
-
var
|
|
20804
|
-
|
|
21213
|
+
var countDelims = function countDelims(formatter, index) {
|
|
21214
|
+
var count = 0;
|
|
21215
|
+
var format = formatter.formats[index];
|
|
21216
|
+
if (!format) return 0;
|
|
21217
|
+
formatter.uniqueDelimiters.forEach(function (delim) {
|
|
21218
|
+
return count += format.split(delim).length - 1;
|
|
20805
21219
|
});
|
|
20806
|
-
return
|
|
21220
|
+
return count;
|
|
20807
21221
|
};
|
|
20808
|
-
};
|
|
20809
21222
|
|
|
20810
|
-
var
|
|
20811
|
-
|
|
20812
|
-
|
|
20813
|
-
|
|
20814
|
-
|
|
20815
|
-
return count += format.split(delim).length - 1;
|
|
20816
|
-
});
|
|
20817
|
-
return count;
|
|
20818
|
-
};
|
|
21223
|
+
var unformat = function unformat(formatter) {
|
|
21224
|
+
return function (formattedValue, formatIndex) {
|
|
21225
|
+
if (formatIndex >= formatter.formats.length) {
|
|
21226
|
+
return formattedValue;
|
|
21227
|
+
}
|
|
20819
21228
|
|
|
20820
|
-
var
|
|
20821
|
-
|
|
20822
|
-
|
|
20823
|
-
|
|
20824
|
-
}
|
|
21229
|
+
var format = formatter.formats[formatIndex];
|
|
21230
|
+
return formattedValue.split("").filter(function (_, i) {
|
|
21231
|
+
return !(format[i] != formatter.formatChar);
|
|
21232
|
+
}).join("");
|
|
21233
|
+
};
|
|
21234
|
+
};
|
|
21235
|
+
var inject = function inject(baseString) {
|
|
21236
|
+
return function (start, end, newString) {
|
|
21237
|
+
return baseString.substring(0, start) + newString + baseString.substring(end);
|
|
21238
|
+
};
|
|
21239
|
+
};
|
|
21240
|
+
var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
|
|
21241
|
+
var maxFormatExceeded = rawValue.length >= formatter.formats.length;
|
|
20825
21242
|
|
|
20826
|
-
|
|
20827
|
-
|
|
20828
|
-
|
|
20829
|
-
|
|
21243
|
+
if (maxFormatExceeded) {
|
|
21244
|
+
return formattedIndex;
|
|
21245
|
+
} else {
|
|
21246
|
+
var formatString = formatter.formats[rawValue.length];
|
|
21247
|
+
var beforeString = formatString.slice(0, formattedIndex);
|
|
21248
|
+
return beforeString.split("").filter(function (c) {
|
|
21249
|
+
return c === formatter.formatChar;
|
|
21250
|
+
}).length;
|
|
21251
|
+
}
|
|
20830
21252
|
};
|
|
20831
|
-
|
|
20832
|
-
var
|
|
20833
|
-
|
|
20834
|
-
|
|
21253
|
+
var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
|
|
21254
|
+
var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
|
|
21255
|
+
// This is done so the component doesn't assume that any added chars will be kept
|
|
21256
|
+
// (i.e. if an external constraint is applied)
|
|
21257
|
+
|
|
21258
|
+
if (maxFormatExceeded) {
|
|
21259
|
+
var delims = countDelims(formatter, rawValue.length - 1);
|
|
21260
|
+
return delims > 0 && !del ? rawIndex + delims - 1 : rawIndex;
|
|
21261
|
+
} else {
|
|
21262
|
+
return formatter.formats[rawValue.length].split(formatter.formatChar).slice(0, rawIndex).reduce(function (acc, curr) {
|
|
21263
|
+
return curr.length + acc;
|
|
21264
|
+
}, 0) + rawIndex;
|
|
21265
|
+
}
|
|
20835
21266
|
};
|
|
20836
|
-
};
|
|
20837
|
-
var formattedToUnformattedIndex = function formattedToUnformattedIndex(formattedIndex, rawValue, formatter) {
|
|
20838
|
-
var maxFormatExceeded = rawValue.length >= formatter.formats.length;
|
|
20839
21267
|
|
|
20840
|
-
|
|
20841
|
-
return
|
|
20842
|
-
|
|
20843
|
-
|
|
20844
|
-
|
|
20845
|
-
|
|
20846
|
-
|
|
20847
|
-
}).length;
|
|
20848
|
-
}
|
|
20849
|
-
};
|
|
20850
|
-
var unformattedToFormattedIndex = function unformattedToFormattedIndex(rawIndex, rawValue, formatter, del) {
|
|
20851
|
-
var maxFormatExceeded = rawValue.length >= formatter.formats.length; // If forced to stay formatted, offset by delims - 1
|
|
20852
|
-
// This is done so the component doesn't assume that any added chars will be kept
|
|
20853
|
-
// (i.e. if an external constraint is applied)
|
|
21268
|
+
var createFormat = function createFormat(formats, formatChar) {
|
|
21269
|
+
return {
|
|
21270
|
+
uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
|
|
21271
|
+
formats: formats,
|
|
21272
|
+
formatChar: formatChar
|
|
21273
|
+
};
|
|
21274
|
+
};
|
|
20854
21275
|
|
|
20855
|
-
|
|
20856
|
-
var
|
|
20857
|
-
|
|
20858
|
-
|
|
20859
|
-
|
|
20860
|
-
return curr.length + acc;
|
|
20861
|
-
}, 0) + rawIndex;
|
|
20862
|
-
}
|
|
20863
|
-
};
|
|
21276
|
+
var FormattedInput = function FormattedInput(_ref) {
|
|
21277
|
+
var value = _ref.value,
|
|
21278
|
+
formatter = _ref.formatter,
|
|
21279
|
+
_onChange = _ref.onChange,
|
|
21280
|
+
props = _objectWithoutProperties(_ref, ["value", "formatter", "onChange"]);
|
|
20864
21281
|
|
|
20865
|
-
var
|
|
20866
|
-
return {
|
|
20867
|
-
uniqueDelimiters: getUniqueFormatDelimiters(formats, formatChar),
|
|
20868
|
-
formats: formats,
|
|
20869
|
-
formatChar: formatChar
|
|
20870
|
-
};
|
|
20871
|
-
};
|
|
21282
|
+
var inputEl = React.useRef(null);
|
|
20872
21283
|
|
|
20873
|
-
var
|
|
20874
|
-
|
|
20875
|
-
|
|
20876
|
-
|
|
20877
|
-
|
|
21284
|
+
var _useState = React.useState({
|
|
21285
|
+
selectionStart: 0,
|
|
21286
|
+
selectionEnd: 0,
|
|
21287
|
+
rawValue: value,
|
|
21288
|
+
"delete": false,
|
|
21289
|
+
formattedValue: format(formatter)(value)
|
|
21290
|
+
}),
|
|
21291
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21292
|
+
state = _useState2[0],
|
|
21293
|
+
setState = _useState2[1];
|
|
20878
21294
|
|
|
20879
|
-
|
|
21295
|
+
React.useLayoutEffect(function () {
|
|
21296
|
+
// A lot of the work here is cursor manipulation
|
|
21297
|
+
if (inputEl.current && inputEl.current === document.activeElement) {
|
|
21298
|
+
inputEl.current.setSelectionRange(state.selectionStart, state.selectionEnd);
|
|
21299
|
+
}
|
|
21300
|
+
});
|
|
21301
|
+
return React__default.createElement("input", _extends({}, props, {
|
|
21302
|
+
ref: inputEl,
|
|
21303
|
+
value: format(formatter)(value),
|
|
21304
|
+
onKeyDown: function onKeyDown(event) {
|
|
21305
|
+
// Keep track of the state of the input before onChange, including if user is hitting delete
|
|
21306
|
+
setState({
|
|
21307
|
+
rawValue: value,
|
|
21308
|
+
selectionStart: event.target.selectionStart,
|
|
21309
|
+
selectionEnd: event.target.selectionEnd,
|
|
21310
|
+
"delete": event.key === "Backspace" || event.key === "Delete",
|
|
21311
|
+
formattedValue: event.target.value
|
|
21312
|
+
});
|
|
21313
|
+
},
|
|
21314
|
+
onChange: function onChange(event) {
|
|
21315
|
+
/* At the beginning of onChange, event.target.value is a concat of the previous formatted value
|
|
21316
|
+
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
21317
|
+
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
21318
|
+
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
21319
|
+
* old unformatted value.
|
|
21320
|
+
*/
|
|
21321
|
+
var injectionLength = event.target.value.length - state.formattedValue.length;
|
|
21322
|
+
var end = state.selectionStart === state.selectionEnd ? state.selectionStart + injectionLength : state.selectionEnd - 1;
|
|
21323
|
+
var injection = event.target.value.substring(state.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
21324
|
+
// Need to find where to put it
|
|
20880
21325
|
|
|
20881
|
-
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
rawValue: value,
|
|
20885
|
-
"delete": false,
|
|
20886
|
-
formattedValue: format$1(formatter)(value)
|
|
20887
|
-
}),
|
|
20888
|
-
_useState2 = _slicedToArray$1(_useState, 2),
|
|
20889
|
-
state = _useState2[0],
|
|
20890
|
-
setState = _useState2[1];
|
|
21326
|
+
var rawInjectionPointStart = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter);
|
|
21327
|
+
var rawInjectionPointEnd = formattedToUnformattedIndex(state.selectionEnd, state.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
21328
|
+
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
20891
21329
|
|
|
20892
|
-
|
|
20893
|
-
|
|
20894
|
-
|
|
20895
|
-
|
|
20896
|
-
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20902
|
-
|
|
20903
|
-
|
|
20904
|
-
|
|
20905
|
-
|
|
20906
|
-
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20910
|
-
|
|
20911
|
-
|
|
20912
|
-
|
|
20913
|
-
* and an unformatted injection at the start, end, or in the middle (maybe a deletion). To prepare
|
|
20914
|
-
* the unformatted value for the user's onChange, the formatted string and unformatted injection need
|
|
20915
|
-
* to be separated, then unformat the formatted string, then insert (or delete) the injection from the
|
|
20916
|
-
* old unformatted value.
|
|
20917
|
-
*/
|
|
20918
|
-
var injectionLength = event.target.value.length - state.formattedValue.length;
|
|
20919
|
-
var end = state.selectionStart === state.selectionEnd ? state.selectionStart + injectionLength : state.selectionEnd - 1;
|
|
20920
|
-
var injection = event.target.value.substring(state.selectionStart, end); // Injection is the new unformatted piece of the input
|
|
20921
|
-
// Need to find where to put it
|
|
20922
|
-
|
|
20923
|
-
var rawInjectionPointStart = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter);
|
|
20924
|
-
var rawInjectionPointEnd = formattedToUnformattedIndex(state.selectionEnd, state.rawValue, formatter); // Unformat the previous formatted value for injection
|
|
20925
|
-
// Using the relevant format string, strips away chars not marked with the formatChar
|
|
20926
|
-
|
|
20927
|
-
var unformattedOldValue = unformat(formatter)(state.formattedValue, state.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
20928
|
-
|
|
20929
|
-
var injectIntoOldValue = inject(unformattedOldValue);
|
|
20930
|
-
var unformattedNewValue = state["delete"] ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
20931
|
-
var lengthDifference = unformattedNewValue.length - state.rawValue.length;
|
|
20932
|
-
var rawIndex = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
20933
|
-
// Applied by useLayoutEffect
|
|
20934
|
-
|
|
20935
|
-
var newFormattedCursorPosition = state.selectionStart == state.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, state["delete"]) : state["delete"] ? state.selectionStart : state.selectionEnd;
|
|
20936
|
-
setState({
|
|
20937
|
-
selectionStart: newFormattedCursorPosition,
|
|
20938
|
-
selectionEnd: newFormattedCursorPosition,
|
|
20939
|
-
rawValue: state.rawValue,
|
|
20940
|
-
"delete": false,
|
|
20941
|
-
formattedValue: state.formattedValue
|
|
20942
|
-
}); // Apply the external onChange function to the raw underlying string
|
|
20943
|
-
// This is where the user generally updates the input value
|
|
20944
|
-
|
|
20945
|
-
if (_onChange) {
|
|
20946
|
-
_onChange(unformattedNewValue);
|
|
21330
|
+
var unformattedOldValue = unformat(formatter)(state.formattedValue, state.rawValue.length); // Edit the previous unformatted value (either add, update or delete)
|
|
21331
|
+
|
|
21332
|
+
var injectIntoOldValue = inject(unformattedOldValue);
|
|
21333
|
+
var unformattedNewValue = state["delete"] ? rawInjectionPointStart === rawInjectionPointEnd ? injectIntoOldValue(rawInjectionPointStart - 1, rawInjectionPointStart, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, "") : injectIntoOldValue(rawInjectionPointStart, rawInjectionPointEnd, injection);
|
|
21334
|
+
var lengthDifference = unformattedNewValue.length - state.rawValue.length;
|
|
21335
|
+
var rawIndex = formattedToUnformattedIndex(state.selectionStart, state.rawValue, formatter) + lengthDifference; // Find the new cursor position for the potential formatted value
|
|
21336
|
+
// Applied by useLayoutEffect
|
|
21337
|
+
|
|
21338
|
+
var newFormattedCursorPosition = state.selectionStart == state.selectionEnd ? unformattedToFormattedIndex(rawIndex, unformattedNewValue, formatter, state["delete"]) : state["delete"] ? state.selectionStart : state.selectionEnd;
|
|
21339
|
+
setState({
|
|
21340
|
+
selectionStart: newFormattedCursorPosition,
|
|
21341
|
+
selectionEnd: newFormattedCursorPosition,
|
|
21342
|
+
rawValue: state.rawValue,
|
|
21343
|
+
"delete": false,
|
|
21344
|
+
formattedValue: state.formattedValue
|
|
21345
|
+
}); // Apply the external onChange function to the raw underlying string
|
|
21346
|
+
// This is where the user generally updates the input value
|
|
21347
|
+
|
|
21348
|
+
if (_onChange) {
|
|
21349
|
+
_onChange(unformattedNewValue);
|
|
21350
|
+
}
|
|
20947
21351
|
}
|
|
20948
|
-
}
|
|
20949
|
-
}
|
|
20950
|
-
|
|
21352
|
+
}));
|
|
21353
|
+
};
|
|
21354
|
+
|
|
21355
|
+
exports.FormattedInput = FormattedInput;
|
|
21356
|
+
exports.createFormat = createFormat;
|
|
21357
|
+
exports.format = format;
|
|
21358
|
+
|
|
21359
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
21360
|
+
|
|
21361
|
+
}));
|
|
21362
|
+
});
|
|
21363
|
+
|
|
21364
|
+
unwrapExports(src);
|
|
21365
|
+
var src_1 = src.FormattedInput;
|
|
21366
|
+
var src_2 = src.createFormat;
|
|
21367
|
+
var src_3 = src.format;
|
|
20951
21368
|
|
|
20952
21369
|
var linkColor$2 = {
|
|
20953
21370
|
"default": "".concat(MATISSE_BLUE),
|
|
@@ -21013,12 +21430,66 @@ var fallbackValues$i = {
|
|
|
21013
21430
|
formFooterPanel: formFooterPanel
|
|
21014
21431
|
};
|
|
21015
21432
|
|
|
21016
|
-
|
|
21017
|
-
|
|
21018
|
-
|
|
21019
|
-
|
|
21020
|
-
|
|
21021
|
-
}
|
|
21433
|
+
function _templateObject6$2() {
|
|
21434
|
+
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
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"]);
|
|
21485
|
+
|
|
21486
|
+
_templateObject$q = function _templateObject() {
|
|
21487
|
+
return data;
|
|
21488
|
+
};
|
|
21489
|
+
|
|
21490
|
+
return data;
|
|
21491
|
+
}
|
|
21492
|
+
var InputField = styled__default.input(_templateObject$q(), function (_ref) {
|
|
21022
21493
|
var field = _ref.field,
|
|
21023
21494
|
showErrors = _ref.showErrors,
|
|
21024
21495
|
themeValues = _ref.themeValues;
|
|
@@ -21038,22 +21509,19 @@ var InputField = styled__default.input.withConfig({
|
|
|
21038
21509
|
return background && "background: ".concat(themeValues.inputBackgroundColor, " url(").concat(background, ") no-repeat right 0.5rem center;");
|
|
21039
21510
|
}, ROYAL_BLUE, function (_ref6) {
|
|
21040
21511
|
var disabled = _ref6.disabled;
|
|
21041
|
-
return disabled && styled.css(
|
|
21512
|
+
return disabled && styled.css(_templateObject2$d());
|
|
21042
21513
|
}, function (_ref7) {
|
|
21043
21514
|
var extraStyles = _ref7.extraStyles;
|
|
21044
|
-
return styled.css(
|
|
21515
|
+
return styled.css(_templateObject3$7(), extraStyles);
|
|
21045
21516
|
}); // eslint-disable-next-line no-unused-vars
|
|
21046
21517
|
|
|
21047
21518
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
21048
21519
|
var showErrors = _ref8.showErrors,
|
|
21049
21520
|
themeValues = _ref8.themeValues,
|
|
21050
|
-
props = _objectWithoutProperties(_ref8,
|
|
21521
|
+
props = _objectWithoutProperties(_ref8, ["showErrors", "themeValues"]);
|
|
21051
21522
|
|
|
21052
|
-
return /*#__PURE__*/React__default.createElement(
|
|
21053
|
-
})
|
|
21054
|
-
displayName: "FormInput__FormattedInputField",
|
|
21055
|
-
componentId: "sc-l094r1-1"
|
|
21056
|
-
})(["border:1px solid ", ";border-radius:2px;height:", ";width:100%;padding:1rem;min-width:100px;margin:0;box-sizing:border-box;position:relative;font-size:1.1rem;line-height:2rem;font-weight:", ";background-color:", ";color:", ";box-shadow:none;&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref9) {
|
|
21523
|
+
return /*#__PURE__*/React__default.createElement(src_1, props);
|
|
21524
|
+
})(_templateObject4$3(), function (_ref9) {
|
|
21057
21525
|
var field = _ref9.field,
|
|
21058
21526
|
showErrors = _ref9.showErrors,
|
|
21059
21527
|
themeValues = _ref9.themeValues;
|
|
@@ -21069,10 +21537,10 @@ var FormattedInputField = styled__default(function (_ref8) {
|
|
|
21069
21537
|
return themeValues.color && themeValues.color;
|
|
21070
21538
|
}, ROYAL_BLUE, function (_ref13) {
|
|
21071
21539
|
var disabled = _ref13.disabled;
|
|
21072
|
-
return disabled && styled.css(
|
|
21540
|
+
return disabled && styled.css(_templateObject5$2());
|
|
21073
21541
|
}, function (_ref14) {
|
|
21074
21542
|
var extraStyles = _ref14.extraStyles;
|
|
21075
|
-
return styled.css(
|
|
21543
|
+
return styled.css(_templateObject6$2(), extraStyles);
|
|
21076
21544
|
});
|
|
21077
21545
|
|
|
21078
21546
|
var FormInput = function FormInput(_ref15) {
|
|
@@ -21097,7 +21565,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
21097
21565
|
background = _ref15.background,
|
|
21098
21566
|
customHeight = _ref15.customHeight,
|
|
21099
21567
|
extraStyles = _ref15.extraStyles,
|
|
21100
|
-
props = _objectWithoutProperties(_ref15,
|
|
21568
|
+
props = _objectWithoutProperties(_ref15, ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "extraStyles"]);
|
|
21101
21569
|
|
|
21102
21570
|
var _useState = React.useState(false),
|
|
21103
21571
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -21205,8 +21673,6 @@ var FormInput = function FormInput(_ref15) {
|
|
|
21205
21673
|
|
|
21206
21674
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$i, "default");
|
|
21207
21675
|
|
|
21208
|
-
var _excluded$q = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
21209
|
-
|
|
21210
21676
|
var FormInputRow = function FormInputRow(_ref) {
|
|
21211
21677
|
var _ref$breakpoint = _ref.breakpoint,
|
|
21212
21678
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -21215,7 +21681,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
21215
21681
|
largeChild = _ref.largeChild,
|
|
21216
21682
|
largeChildSize = _ref.largeChildSize,
|
|
21217
21683
|
children = _ref.children,
|
|
21218
|
-
rest = _objectWithoutProperties(_ref,
|
|
21684
|
+
rest = _objectWithoutProperties(_ref, ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"]);
|
|
21219
21685
|
|
|
21220
21686
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
21221
21687
|
padding: "0"
|
|
@@ -21227,14 +21693,12 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
21227
21693
|
}, children));
|
|
21228
21694
|
};
|
|
21229
21695
|
|
|
21230
|
-
var _excluded$r = ["childGap", "bottomItem", "children"];
|
|
21231
|
-
|
|
21232
21696
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
21233
21697
|
var _ref$childGap = _ref.childGap,
|
|
21234
21698
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
21235
21699
|
bottomItem = _ref.bottomItem,
|
|
21236
21700
|
children = _ref.children,
|
|
21237
|
-
rest = _objectWithoutProperties(_ref,
|
|
21701
|
+
rest = _objectWithoutProperties(_ref, ["childGap", "bottomItem", "children"]);
|
|
21238
21702
|
|
|
21239
21703
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
21240
21704
|
childGap: childGap,
|
|
@@ -21242,12 +21706,10 @@ var FormInputColumn = function FormInputColumn(_ref) {
|
|
|
21242
21706
|
}, rest), children);
|
|
21243
21707
|
};
|
|
21244
21708
|
|
|
21245
|
-
var _excluded$s = ["themeValues", "children"];
|
|
21246
|
-
|
|
21247
21709
|
var FormContainer = function FormContainer(_ref) {
|
|
21248
21710
|
var themeValues = _ref.themeValues,
|
|
21249
21711
|
children = _ref.children,
|
|
21250
|
-
rest = _objectWithoutProperties(_ref,
|
|
21712
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "children"]);
|
|
21251
21713
|
|
|
21252
21714
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
21253
21715
|
isMobile = _useContext.isMobile;
|
|
@@ -21349,17 +21811,30 @@ var fallbackValues$k = {
|
|
|
21349
21811
|
autopayTextColor: autopayTextColor
|
|
21350
21812
|
};
|
|
21351
21813
|
|
|
21814
|
+
function _templateObject2$e() {
|
|
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
|
+
}
|
|
21352
21833
|
var ACTIVE = "ACTIVE";
|
|
21353
21834
|
var EXPIRING_SOON = "EXPIRING_SOON";
|
|
21354
21835
|
var EXPIRED = "EXPIRED";
|
|
21355
|
-
var CreditCardWrapper = styled__default.div
|
|
21356
|
-
|
|
21357
|
-
componentId: "sc-s0ta5l-0"
|
|
21358
|
-
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
21359
|
-
var CCIconWrapper = styled__default.div.withConfig({
|
|
21360
|
-
displayName: "FormattedCreditCard__CCIconWrapper",
|
|
21361
|
-
componentId: "sc-s0ta5l-1"
|
|
21362
|
-
})(["margin-right:16px;width:30px;height:auto;display:flex;"]);
|
|
21836
|
+
var CreditCardWrapper = styled__default.div(_templateObject$r());
|
|
21837
|
+
var CCIconWrapper = styled__default.div(_templateObject2$e());
|
|
21363
21838
|
|
|
21364
21839
|
var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
21365
21840
|
var lastFour = _ref.lastFour,
|
|
@@ -21412,18 +21887,38 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
21412
21887
|
|
|
21413
21888
|
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$k);
|
|
21414
21889
|
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21890
|
+
function _templateObject3$8() {
|
|
21891
|
+
var data = _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"]);
|
|
21892
|
+
|
|
21893
|
+
_templateObject3$8 = function _templateObject3() {
|
|
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) {
|
|
21427
21922
|
var inactiveColor = _ref.inactiveColor;
|
|
21428
21923
|
return inactiveColor;
|
|
21429
21924
|
}, function (_ref2) {
|
|
@@ -21454,10 +21949,16 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
21454
21949
|
})));
|
|
21455
21950
|
};
|
|
21456
21951
|
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21952
|
+
function _templateObject$t() {
|
|
21953
|
+
var data = _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"]);
|
|
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) {
|
|
21461
21962
|
var fontSize = _ref.fontSize;
|
|
21462
21963
|
return fontSize;
|
|
21463
21964
|
}, function (_ref2) {
|
|
@@ -21502,7 +22003,6 @@ var mobileFallbackValues$1 = {
|
|
|
21502
22003
|
};
|
|
21503
22004
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
21504
22005
|
|
|
21505
|
-
var _excluded$t = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
21506
22006
|
/*
|
|
21507
22007
|
New responsive text component for Title elements
|
|
21508
22008
|
Size is decoupled from tag
|
|
@@ -21549,7 +22049,7 @@ var Title = function Title(_ref) {
|
|
|
21549
22049
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
21550
22050
|
dataQa = _ref.dataQa,
|
|
21551
22051
|
children = _ref.children,
|
|
21552
|
-
rest = _objectWithoutProperties(_ref,
|
|
22052
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
21553
22053
|
|
|
21554
22054
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
21555
22055
|
variant: variant,
|
|
@@ -21714,10 +22214,26 @@ var fallbackValues$o = {
|
|
|
21714
22214
|
color: color$8
|
|
21715
22215
|
};
|
|
21716
22216
|
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
|
|
22217
|
+
function _templateObject2$g() {
|
|
22218
|
+
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n line-height: 1;\n"]);
|
|
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) {
|
|
21721
22237
|
var size = _ref.size;
|
|
21722
22238
|
return size;
|
|
21723
22239
|
}, function (_ref2) {
|
|
@@ -21727,10 +22243,7 @@ var SpinnerSvgAnimation = styled__default.svg.withConfig({
|
|
|
21727
22243
|
var color = _ref3.color;
|
|
21728
22244
|
return color;
|
|
21729
22245
|
});
|
|
21730
|
-
var SpinnerContainer$2 = styled__default.div
|
|
21731
|
-
displayName: "Spinner__SpinnerContainer",
|
|
21732
|
-
componentId: "sc-vhupl9-1"
|
|
21733
|
-
})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:center;line-height:1;"]);
|
|
22246
|
+
var SpinnerContainer$2 = styled__default.div(_templateObject2$g());
|
|
21734
22247
|
|
|
21735
22248
|
var Spinner$1 = function Spinner(_ref4) {
|
|
21736
22249
|
var _ref4$size = _ref4.size,
|
|
@@ -21765,8 +22278,6 @@ var Loading = function Loading() {
|
|
|
21765
22278
|
})))));
|
|
21766
22279
|
};
|
|
21767
22280
|
|
|
21768
|
-
var _excluded$u = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
21769
|
-
|
|
21770
22281
|
var NavFooter = function NavFooter(_ref) {
|
|
21771
22282
|
var leftContent = _ref.leftContent,
|
|
21772
22283
|
rightContent = _ref.rightContent,
|
|
@@ -21781,7 +22292,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
21781
22292
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
21782
22293
|
isMobile = _ref.isMobile,
|
|
21783
22294
|
footerWidth = _ref.footerWidth,
|
|
21784
|
-
rest = _objectWithoutProperties(_ref,
|
|
22295
|
+
rest = _objectWithoutProperties(_ref, ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"]);
|
|
21785
22296
|
|
|
21786
22297
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
21787
22298
|
padding: footerPadding,
|
|
@@ -21813,8 +22324,6 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
21813
22324
|
}, rightContent)))))));
|
|
21814
22325
|
};
|
|
21815
22326
|
|
|
21816
|
-
var _excluded$v = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
21817
|
-
|
|
21818
22327
|
var NavHeader = function NavHeader(_ref) {
|
|
21819
22328
|
var leftContent = _ref.leftContent,
|
|
21820
22329
|
rightContent = _ref.rightContent,
|
|
@@ -21823,7 +22332,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
21823
22332
|
isMobile = _ref.isMobile,
|
|
21824
22333
|
backgroundColor = _ref.backgroundColor,
|
|
21825
22334
|
headerWidth = _ref.headerWidth,
|
|
21826
|
-
rest = _objectWithoutProperties(_ref,
|
|
22335
|
+
rest = _objectWithoutProperties(_ref, ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"]);
|
|
21827
22336
|
|
|
21828
22337
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
21829
22338
|
padding: "0 16px 4px",
|
|
@@ -21849,7 +22358,167 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
21849
22358
|
}, rightContent))))));
|
|
21850
22359
|
};
|
|
21851
22360
|
|
|
21852
|
-
var
|
|
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
|
+
}
|
|
21853
22522
|
|
|
21854
22523
|
var MIN_LENGTH_ERROR = "error/HAS_LENGTH";
|
|
21855
22524
|
var MAX_LENGTH_ERROR = "max_length_error";
|
|
@@ -21890,7 +22559,7 @@ with interpolation.
|
|
|
21890
22559
|
*/
|
|
21891
22560
|
|
|
21892
22561
|
|
|
21893
|
-
var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject
|
|
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
|
|
21894
22563
|
// Neutral - has not been validated
|
|
21895
22564
|
// Invalid - has been validated and has an error
|
|
21896
22565
|
// Valid - has been validated and has no error
|
|
@@ -22150,10 +22819,16 @@ var fallbackValues$r = {
|
|
|
22150
22819
|
inactiveColor: inactiveColor
|
|
22151
22820
|
};
|
|
22152
22821
|
|
|
22153
|
-
|
|
22154
|
-
|
|
22155
|
-
|
|
22156
|
-
|
|
22822
|
+
function _templateObject$w() {
|
|
22823
|
+
var data = _taggedTemplateLiteral(["\n opacity: 0;\n position: absolute;\n cursor: ", ";\n"]);
|
|
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) {
|
|
22157
22832
|
var disabled = _ref.disabled;
|
|
22158
22833
|
return disabled ? "auto" : "pointer";
|
|
22159
22834
|
});
|
|
@@ -32931,20 +33606,53 @@ var fallbackValues$u = {
|
|
|
32931
33606
|
leftLabelStyles: leftLabelStyles
|
|
32932
33607
|
};
|
|
32933
33608
|
|
|
32934
|
-
|
|
32935
|
-
|
|
32936
|
-
|
|
32937
|
-
|
|
33609
|
+
function _templateObject4$5() {
|
|
33610
|
+
var data = _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"]);
|
|
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) {
|
|
32938
33649
|
var disabled = _ref.disabled;
|
|
32939
33650
|
return disabled ? "auto" : "pointer";
|
|
32940
33651
|
}, function (_ref2) {
|
|
32941
33652
|
var isMobile = _ref2.isMobile;
|
|
32942
33653
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
32943
33654
|
});
|
|
32944
|
-
var VisibleSwitchComponent = styled__default.label
|
|
32945
|
-
displayName: "ToggleSwitch__VisibleSwitchComponent",
|
|
32946
|
-
componentId: "sc-1t51u6v-1"
|
|
32947
|
-
})(["width:48px;height:24px;border-radius:48px;border:none;position:relative;box-sizing:border-box;cursor:", ";display:inline-block;&:hover{box-shadow:", ";}&:focus{box-shadow:0px 2px 5px 0px rgba(0,0,0,0.5);}", ""], function (_ref3) {
|
|
33655
|
+
var VisibleSwitchComponent = styled__default.label(_templateObject2$i(), function (_ref3) {
|
|
32948
33656
|
var disabled = _ref3.disabled;
|
|
32949
33657
|
return disabled ? "auto" : "pointer";
|
|
32950
33658
|
}, function (_ref4) {
|
|
@@ -32954,14 +33662,8 @@ var VisibleSwitchComponent = styled__default.label.withConfig({
|
|
|
32954
33662
|
var isMobile = _ref5.isMobile;
|
|
32955
33663
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
32956
33664
|
});
|
|
32957
|
-
var ToggleSwitchMiddleRingComponent = styled__default.div
|
|
32958
|
-
|
|
32959
|
-
componentId: "sc-1t51u6v-2"
|
|
32960
|
-
})(["position:absolute;width:20px;height:20px;border:none;border-radius:50%;box-sizing:border-box;"]);
|
|
32961
|
-
var ToggleSwitchInnerRingComponent = styled__default.div.withConfig({
|
|
32962
|
-
displayName: "ToggleSwitch__ToggleSwitchInnerRingComponent",
|
|
32963
|
-
componentId: "sc-1t51u6v-3"
|
|
32964
|
-
})(["position:absolute;width:14px;height:14px;top:3px;left:3px;right:3px;bottom:3px;border-radius:50%;box-sizing:border-box;"]);
|
|
33665
|
+
var ToggleSwitchMiddleRingComponent = styled__default.div(_templateObject3$a());
|
|
33666
|
+
var ToggleSwitchInnerRingComponent = styled__default.div(_templateObject4$5());
|
|
32965
33667
|
|
|
32966
33668
|
var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
32967
33669
|
var _ref6$isOn = _ref6.isOn,
|
|
@@ -33110,10 +33812,16 @@ var themeValues = {
|
|
|
33110
33812
|
focusBorder: focusBorder
|
|
33111
33813
|
};
|
|
33112
33814
|
|
|
33113
|
-
|
|
33114
|
-
|
|
33115
|
-
|
|
33116
|
-
|
|
33815
|
+
function _templateObject$y() {
|
|
33816
|
+
var data = _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"]);
|
|
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);
|
|
33117
33825
|
|
|
33118
33826
|
var TypeaheadInput = function TypeaheadInput(_ref) {
|
|
33119
33827
|
var handleChange = _ref.handleChange,
|
|
@@ -33177,6 +33885,7 @@ const createValidator = (type, error) => {
|
|
|
33177
33885
|
return validator;
|
|
33178
33886
|
};
|
|
33179
33887
|
|
|
33888
|
+
console.log("dayjs", dayjs_min);
|
|
33180
33889
|
dayjs_min.extend(customParseFormat);
|
|
33181
33890
|
dayjs_min.extend(isSameOrBefore);
|
|
33182
33891
|
dayjs_min.extend(isSameOrAfter);
|
|
@@ -34841,11 +35550,11 @@ var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "
|
|
|
34841
35550
|
var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
|
|
34842
35551
|
var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
|
|
34843
35552
|
var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
|
|
34844
|
-
var zipFormat =
|
|
34845
|
-
var creditCardFormat =
|
|
34846
|
-
var expirationDateFormat =
|
|
34847
|
-
var phoneFormat =
|
|
34848
|
-
var moneyFormat =
|
|
35553
|
+
var zipFormat = src_2(zipFormats, formatDelimiter);
|
|
35554
|
+
var creditCardFormat = src_2(creditCardFormats, formatDelimiter);
|
|
35555
|
+
var expirationDateFormat = src_2(expirationDateFormats, formatDelimiter);
|
|
35556
|
+
var phoneFormat = src_2(phoneFormats, formatDelimiter);
|
|
35557
|
+
var moneyFormat = src_2(moneyFormats, formatDelimiter);
|
|
34849
35558
|
|
|
34850
35559
|
var formats = /*#__PURE__*/Object.freeze({
|
|
34851
35560
|
__proto__: null,
|
|
@@ -35310,20 +36019,33 @@ EditNameForm.reducer = reducer$2;
|
|
|
35310
36019
|
EditNameForm.mapStateToProps = mapStateToProps$3;
|
|
35311
36020
|
EditNameForm.mapDispatchToProps = mapDispatchToProps$2;
|
|
35312
36021
|
|
|
35313
|
-
|
|
35314
|
-
|
|
35315
|
-
|
|
35316
|
-
|
|
36022
|
+
function _templateObject2$j() {
|
|
36023
|
+
var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n"]);
|
|
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) {
|
|
35317
36042
|
var disabled = _ref.disabled;
|
|
35318
36043
|
return disabled ? "rgba(246, 246, 249, 0.7)" : WHITE;
|
|
35319
36044
|
}, GHOST_GREY, function (_ref2) {
|
|
35320
36045
|
var listItemSize = _ref2.listItemSize;
|
|
35321
36046
|
return listItemSize === "big" ? "120px" : "72px";
|
|
35322
36047
|
});
|
|
35323
|
-
var EditableListItemControls = styled__default.div
|
|
35324
|
-
displayName: "EditableListstyled__EditableListItemControls",
|
|
35325
|
-
componentId: "sc-10ehkz7-1"
|
|
35326
|
-
})(["display:flex;justify-content:space-evenly;align-items:center;"]);
|
|
36048
|
+
var EditableListItemControls = styled__default.div(_templateObject2$j());
|
|
35327
36049
|
|
|
35328
36050
|
var ACTIVE$1 = "ACTIVE";
|
|
35329
36051
|
var EXPIRED$1 = "EXPIRED";
|
|
@@ -35379,9 +36101,9 @@ var EditableList = function EditableList(_ref) {
|
|
|
35379
36101
|
|
|
35380
36102
|
var expiredItem = (_item$expirationStatu = item === null || item === void 0 ? void 0 : item.expirationStatus) !== null && _item$expirationStatu !== void 0 ? _item$expirationStatu : ACTIVE$1;
|
|
35381
36103
|
return /*#__PURE__*/React__default.createElement(EditableListItem, {
|
|
35382
|
-
listItemSize: !!item.id && autoPayMethods
|
|
36104
|
+
listItemSize: !!item.id && (autoPayMethods === null || autoPayMethods === void 0 ? void 0 : autoPayMethods.some(function (methodID) {
|
|
35383
36105
|
return methodID === item.id;
|
|
35384
|
-
}) ? "big" : listItemSize,
|
|
36106
|
+
})) ? "big" : listItemSize,
|
|
35385
36107
|
key: item.id || item,
|
|
35386
36108
|
disabled: expiredItem === EXPIRED$1
|
|
35387
36109
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -35433,17 +36155,100 @@ var EditableList = function EditableList(_ref) {
|
|
|
35433
36155
|
}))));
|
|
35434
36156
|
};
|
|
35435
36157
|
|
|
35436
|
-
|
|
35437
|
-
|
|
35438
|
-
|
|
35439
|
-
|
|
36158
|
+
function _templateObject9$2() {
|
|
36159
|
+
var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex: 1;\n width: 100%;\n"]);
|
|
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) {
|
|
35440
36248
|
var hide = _ref.hide;
|
|
35441
36249
|
return hide ? "none" : "flex";
|
|
35442
36250
|
});
|
|
35443
|
-
var EditableTableListItem = styled__default.div
|
|
35444
|
-
displayName: "EditableTablestyled__EditableTableListItem",
|
|
35445
|
-
componentId: "sc-fd3i2a-1"
|
|
35446
|
-
})(["width:100%;display:flex;", ";align-items:", ";flex-direction:", ";flex:1;", ";"], function (_ref2) {
|
|
36251
|
+
var EditableTableListItem = styled__default.div(_templateObject2$k(), function (_ref2) {
|
|
35447
36252
|
var isMobile = _ref2.isMobile;
|
|
35448
36253
|
return isMobile && "justify-content: center";
|
|
35449
36254
|
}, function (_ref3) {
|
|
@@ -35456,32 +36261,17 @@ var EditableTableListItem = styled__default.div.withConfig({
|
|
|
35456
36261
|
var isMobile = _ref5.isMobile;
|
|
35457
36262
|
return isMobile ? "padding: 1rem 0.5rem" : "padding: 0 0.5rem";
|
|
35458
36263
|
});
|
|
35459
|
-
var EditableListItemControls$1 = styled__default.div
|
|
35460
|
-
|
|
35461
|
-
componentId: "sc-fd3i2a-2"
|
|
35462
|
-
})(["display:flex;justify-content:space-evenly;align-items:center;"]);
|
|
35463
|
-
var EditableListAction = styled__default.div.withConfig({
|
|
35464
|
-
displayName: "EditableTablestyled__EditableListAction",
|
|
35465
|
-
componentId: "sc-fd3i2a-3"
|
|
35466
|
-
})(["color:", ";align-items:center;font-size:1rem;padding-right:1rem;cursor:pointer;display:", ";"], MATISSE_BLUE, function (_ref6) {
|
|
36264
|
+
var EditableListItemControls$1 = styled__default.div(_templateObject3$b());
|
|
36265
|
+
var EditableListAction = styled__default.div(_templateObject4$6(), MATISSE_BLUE, function (_ref6) {
|
|
35467
36266
|
var hide = _ref6.hide;
|
|
35468
36267
|
return hide ? "none" : "flex";
|
|
35469
36268
|
});
|
|
35470
|
-
var ItemWrapper = styled__default.div
|
|
35471
|
-
|
|
35472
|
-
componentId: "sc-fd3i2a-4"
|
|
35473
|
-
})(["display:flex;flex-direction:row;flex:1;width:100%;border-bottom:1px solid ", ";"], GHOST_GREY);
|
|
35474
|
-
var ActionWrapper = styled__default.div.withConfig({
|
|
35475
|
-
displayName: "EditableTablestyled__ActionWrapper",
|
|
35476
|
-
componentId: "sc-fd3i2a-5"
|
|
35477
|
-
})(["display:flex;align-self:center;justify-content:flex-end;", ";flex:1;"], function (_ref7) {
|
|
36269
|
+
var ItemWrapper = styled__default.div(_templateObject5$4(), GHOST_GREY);
|
|
36270
|
+
var ActionWrapper = styled__default.div(_templateObject6$4(), function (_ref7) {
|
|
35478
36271
|
var isMobile = _ref7.isMobile;
|
|
35479
36272
|
return isMobile && "display: none";
|
|
35480
36273
|
});
|
|
35481
|
-
var TableItemKey = styled__default.div
|
|
35482
|
-
displayName: "EditableTablestyled__TableItemKey",
|
|
35483
|
-
componentId: "sc-fd3i2a-6"
|
|
35484
|
-
})(["display:flex;", ";", ";", ";font-size:", ";color:", ";"], function (_ref8) {
|
|
36274
|
+
var TableItemKey = styled__default.div(_templateObject7$3(), function (_ref8) {
|
|
35485
36275
|
var isMobile = _ref8.isMobile;
|
|
35486
36276
|
return !isMobile && "flex: 1";
|
|
35487
36277
|
}, function (_ref9) {
|
|
@@ -35494,10 +36284,7 @@ var TableItemKey = styled__default.div.withConfig({
|
|
|
35494
36284
|
var isMobile = _ref11.isMobile;
|
|
35495
36285
|
return isMobile ? "1rem" : "1.125rem";
|
|
35496
36286
|
}, STORM_GREY);
|
|
35497
|
-
var TableItemValue = styled__default.div
|
|
35498
|
-
displayName: "EditableTablestyled__TableItemValue",
|
|
35499
|
-
componentId: "sc-fd3i2a-7"
|
|
35500
|
-
})(["display:flex;", ";", ";", ";font-size:", ";color:", ";"], function (_ref12) {
|
|
36287
|
+
var TableItemValue = styled__default.div(_templateObject8$2(), function (_ref12) {
|
|
35501
36288
|
var isMobile = _ref12.isMobile;
|
|
35502
36289
|
return !isMobile && "flex: 1";
|
|
35503
36290
|
}, function (_ref13) {
|
|
@@ -35510,10 +36297,7 @@ var TableItemValue = styled__default.div.withConfig({
|
|
|
35510
36297
|
var isMobile = _ref15.isMobile;
|
|
35511
36298
|
return isMobile ? "1.125rem" : "1.0625rem";
|
|
35512
36299
|
}, BRIGHT_GREY);
|
|
35513
|
-
var TableWrapper = styled__default.div
|
|
35514
|
-
displayName: "EditableTablestyled__TableWrapper",
|
|
35515
|
-
componentId: "sc-fd3i2a-8"
|
|
35516
|
-
})(["display:flex;flex-direction:row;flex:1;width:100%;"]);
|
|
36300
|
+
var TableWrapper = styled__default.div(_templateObject9$2());
|
|
35517
36301
|
|
|
35518
36302
|
var EditableTable = function EditableTable(_ref) {
|
|
35519
36303
|
var title = _ref.title,
|
|
@@ -38669,7 +39453,7 @@ Styling accomplished with our atoms / layout primitives
|
|
|
38669
39453
|
|
|
38670
39454
|
Cancel button will (for now) always use hideModal as its action
|
|
38671
39455
|
Continue button takes an action, if you want to navigate to
|
|
38672
|
-
a different route (as with a link) connect() and use "push" from
|
|
39456
|
+
a different route (as with a link) connect() and use "push" from connected-react-router
|
|
38673
39457
|
*/
|
|
38674
39458
|
|
|
38675
39459
|
var getApplicationNode = function getApplicationNode() {
|
|
@@ -38956,6 +39740,15 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
38956
39740
|
|
|
38957
39741
|
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$y, "profile");
|
|
38958
39742
|
|
|
39743
|
+
function _templateObject$B() {
|
|
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
|
+
}
|
|
38959
39752
|
var menu = posed.div({
|
|
38960
39753
|
invisible: {
|
|
38961
39754
|
left: "-100vw",
|
|
@@ -38986,10 +39779,7 @@ var menu = posed.div({
|
|
|
38986
39779
|
}
|
|
38987
39780
|
}
|
|
38988
39781
|
});
|
|
38989
|
-
var ImposterMenu = styled__default(menu)
|
|
38990
|
-
displayName: "NavMenuMobile__ImposterMenu",
|
|
38991
|
-
componentId: "sc-1pf0qp7-0"
|
|
38992
|
-
})(["position:fixed;top:72px;"]);
|
|
39782
|
+
var ImposterMenu = styled__default(menu)(_templateObject$B());
|
|
38993
39783
|
|
|
38994
39784
|
var NavMenuMobile = function NavMenuMobile(_ref) {
|
|
38995
39785
|
var id = _ref.id,
|
|
@@ -39722,9 +40512,6 @@ var fallbackValues$A = {
|
|
|
39722
40512
|
labeledAmountTotal: labeledAmountTotal
|
|
39723
40513
|
};
|
|
39724
40514
|
|
|
39725
|
-
var _excluded$w = ["amount"],
|
|
39726
|
-
_excluded2$1 = ["amount"];
|
|
39727
|
-
|
|
39728
40515
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
39729
40516
|
var lineItemElems = _ref.lineItemElems,
|
|
39730
40517
|
feeElems = _ref.feeElems,
|
|
@@ -39813,7 +40600,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
39813
40600
|
return fee.amount > 0;
|
|
39814
40601
|
}).map(function (_ref5) {
|
|
39815
40602
|
var amount = _ref5.amount,
|
|
39816
|
-
rest = _objectWithoutProperties(_ref5,
|
|
40603
|
+
rest = _objectWithoutProperties(_ref5, ["amount"]);
|
|
39817
40604
|
|
|
39818
40605
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
39819
40606
|
amount: displayCurrency(amount)
|
|
@@ -39822,7 +40609,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
39822
40609
|
|
|
39823
40610
|
var lineItems = _lineItems.map(function (_ref6) {
|
|
39824
40611
|
var amount = _ref6.amount,
|
|
39825
|
-
rest = _objectWithoutProperties(_ref6,
|
|
40612
|
+
rest = _objectWithoutProperties(_ref6, ["amount"]);
|
|
39826
40613
|
|
|
39827
40614
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
39828
40615
|
amount: displayCurrency(amount)
|
|
@@ -40367,7 +41154,7 @@ var PhoneForm = function PhoneForm(_ref) {
|
|
|
40367
41154
|
field: fields.phone,
|
|
40368
41155
|
fieldActions: actions.fields.phone,
|
|
40369
41156
|
showErrors: showErrors,
|
|
40370
|
-
formatter:
|
|
41157
|
+
formatter: src_2(phoneFormats, formatDelimiter),
|
|
40371
41158
|
onKeyUp: function onKeyUp(e) {
|
|
40372
41159
|
return e.key === "Enter" && handleSubmit(e);
|
|
40373
41160
|
},
|
|
@@ -40409,6 +41196,15 @@ var fallbackValues$C = {
|
|
|
40409
41196
|
focusStyles: focusStyles
|
|
40410
41197
|
};
|
|
40411
41198
|
|
|
41199
|
+
function _templateObject$C() {
|
|
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
|
+
}
|
|
40412
41208
|
/*
|
|
40413
41209
|
Takes an array of section objects, each object should look like:
|
|
40414
41210
|
{
|
|
@@ -40505,10 +41301,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
40505
41301
|
}
|
|
40506
41302
|
};
|
|
40507
41303
|
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 ");
|
|
40508
|
-
var RightIcon = styled__default.img
|
|
40509
|
-
displayName: "RadioSection__RightIcon",
|
|
40510
|
-
componentId: "sc-uema02-0"
|
|
40511
|
-
})(["height:", ";width:", ";", " transition:opacity 0.3s ease;"], function (_ref2) {
|
|
41304
|
+
var RightIcon = styled__default.img(_templateObject$C(), function (_ref2) {
|
|
40512
41305
|
var isMobile = _ref2.isMobile;
|
|
40513
41306
|
return isMobile ? "14px" : "18px";
|
|
40514
41307
|
}, function (_ref3) {
|
|
@@ -41225,10 +42018,16 @@ var fallbackValues$G = {
|
|
|
41225
42018
|
imageBackgroundColor: imageBackgroundColor
|
|
41226
42019
|
};
|
|
41227
42020
|
|
|
41228
|
-
|
|
41229
|
-
|
|
41230
|
-
|
|
41231
|
-
|
|
42021
|
+
function _templateObject$D() {
|
|
42022
|
+
var data = _taggedTemplateLiteral(["\n width: auto;\n height: 215px;\n"]);
|
|
42023
|
+
|
|
42024
|
+
_templateObject$D = function _templateObject() {
|
|
42025
|
+
return data;
|
|
42026
|
+
};
|
|
42027
|
+
|
|
42028
|
+
return data;
|
|
42029
|
+
}
|
|
42030
|
+
var WelcomeImage = styled__default.img(_templateObject$D());
|
|
41232
42031
|
|
|
41233
42032
|
var WelcomeModule = function WelcomeModule(_ref) {
|
|
41234
42033
|
var heading = _ref.heading,
|