@thecb/components 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +195 -149
- package/package.json +1 -1
- package/src/components/atoms/icons/WarningIconXS.js +60 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/atoms/jumbo/Jumbo.js +5 -5
- package/src/components/molecules/internal-user-info-form/InternalUserInfoForm.js +1 -2
package/dist/index.cjs.js
CHANGED
|
@@ -15431,6 +15431,52 @@ var CheckIcon = function CheckIcon() {
|
|
|
15431
15431
|
})))))));
|
|
15432
15432
|
};
|
|
15433
15433
|
|
|
15434
|
+
var WarningIconXS = function WarningIconXS() {
|
|
15435
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15436
|
+
width: "16px",
|
|
15437
|
+
height: "13px",
|
|
15438
|
+
viewBox: "0 0 16 13",
|
|
15439
|
+
version: "1.1",
|
|
15440
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15441
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15442
|
+
"aria-labelledby": "#warning-restricted-item",
|
|
15443
|
+
role: "img"
|
|
15444
|
+
}, /*#__PURE__*/React__default.createElement("title", {
|
|
15445
|
+
id: "warning-restricted-item"
|
|
15446
|
+
}, "Warning: restricted items cannot be selected"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
15447
|
+
d: "M11.0106463,4.4659633 C11.3063934,4.63914978 11.5526739,4.88543032 11.7258604,5.18117739 L16.7999622,13.846119 C17.3581267,14.7992854 17.0379144,16.0244612 16.0847481,16.5826257 C15.7781918,16.762142 15.4293522,16.8567653 15.0741018,16.8567653 L4.92589823,16.8567653 C3.82132873,16.8567653 2.92589823,15.9613348 2.92589823,14.8567653 C2.92589823,14.5015149 3.02052159,14.1526753 3.20003784,13.846119 L8.27413962,5.18117739 C8.83230416,4.22801102 10.0574799,3.90779877 11.0106463,4.4659633 Z M10.6666667,13.3333333 L9.33333333,13.3333333 L9.33333333,14.6666667 L10.6666667,14.6666667 L10.6666667,13.3333333 Z M10.6666667,6.66666667 L9.33333333,6.66666667 L9.33333333,12 L10.6666667,12 L10.6666667,6.66666667 Z",
|
|
15448
|
+
id: "WarningIconXs-path-1"
|
|
15449
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
15450
|
+
id: "WarningIconXs-SRV-2647---Workflow-$0-Balance",
|
|
15451
|
+
stroke: "none",
|
|
15452
|
+
strokeWidth: "1",
|
|
15453
|
+
fill: "none",
|
|
15454
|
+
fillRule: "evenodd"
|
|
15455
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15456
|
+
id: "WarningIconXs-11---Search-Results----Checked--Copy-6",
|
|
15457
|
+
transform: "translate(-135.000000, -483.000000)"
|
|
15458
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15459
|
+
id: "WarningIconXs-Group",
|
|
15460
|
+
transform: "translate(133.000000, 479.000000)"
|
|
15461
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
15462
|
+
id: "WarningIconXs-mask-2",
|
|
15463
|
+
fill: "white"
|
|
15464
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
15465
|
+
xlinkHref: "#WarningIconXs-path-1"
|
|
15466
|
+
})), /*#__PURE__*/React__default.createElement("use", {
|
|
15467
|
+
id: "WarningIconXs-Mask",
|
|
15468
|
+
fill: "#B34A00",
|
|
15469
|
+
fillRule: "nonzero",
|
|
15470
|
+
xlinkHref: "#WarningIconXs-path-1"
|
|
15471
|
+
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
15472
|
+
id: "WarningIconXs-Path",
|
|
15473
|
+
fill: "#B34A00",
|
|
15474
|
+
fillRule: "nonzero",
|
|
15475
|
+
mask: "url(#WarningIconXs-mask-2)",
|
|
15476
|
+
points: "-2.84217094e-14 -4.26325641e-14 20 -4.26325641e-14 20 20 -2.84217094e-14 20"
|
|
15477
|
+
})))));
|
|
15478
|
+
};
|
|
15479
|
+
|
|
15434
15480
|
var color$2 = "#15749D";
|
|
15435
15481
|
var hoverColor$1 = "#116285";
|
|
15436
15482
|
var activeColor$1 = "#0E506D";
|
|
@@ -21903,6 +21949,125 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
21903
21949
|
})));
|
|
21904
21950
|
};
|
|
21905
21951
|
|
|
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) {
|
|
21962
|
+
var fontSize = _ref.fontSize;
|
|
21963
|
+
return fontSize;
|
|
21964
|
+
}, function (_ref2) {
|
|
21965
|
+
var color = _ref2.color;
|
|
21966
|
+
return color;
|
|
21967
|
+
}, function (_ref3) {
|
|
21968
|
+
var weight = _ref3.weight;
|
|
21969
|
+
return weight;
|
|
21970
|
+
}, function (_ref4) {
|
|
21971
|
+
var margin = _ref4.margin;
|
|
21972
|
+
return margin;
|
|
21973
|
+
}, function (_ref5) {
|
|
21974
|
+
var textAlign = _ref5.textAlign;
|
|
21975
|
+
return textAlign;
|
|
21976
|
+
}, function (_ref6) {
|
|
21977
|
+
var fontFamily = _ref6.fontFamily;
|
|
21978
|
+
return fontFamily;
|
|
21979
|
+
}, function (_ref7) {
|
|
21980
|
+
var extraStyles = _ref7.extraStyles;
|
|
21981
|
+
return extraStyles;
|
|
21982
|
+
});
|
|
21983
|
+
|
|
21984
|
+
var fontSize$9 = {
|
|
21985
|
+
large: "1.5rem",
|
|
21986
|
+
small: "1.25rem"
|
|
21987
|
+
};
|
|
21988
|
+
var fontFamily$5 = {
|
|
21989
|
+
large: "Public Sans",
|
|
21990
|
+
small: "Public Sans"
|
|
21991
|
+
};
|
|
21992
|
+
var mobileFontSize$1 = {
|
|
21993
|
+
large: "1.5rem",
|
|
21994
|
+
small: "1.2142rem"
|
|
21995
|
+
};
|
|
21996
|
+
var fallbackValues$l = {
|
|
21997
|
+
fontFamily: fontFamily$5,
|
|
21998
|
+
fontSize: fontSize$9
|
|
21999
|
+
};
|
|
22000
|
+
var mobileFallbackValues$1 = {
|
|
22001
|
+
fontFamily: fontFamily$5,
|
|
22002
|
+
fontSize: mobileFontSize$1
|
|
22003
|
+
};
|
|
22004
|
+
var MOBILE_BREAKPOINT$1 = 768;
|
|
22005
|
+
|
|
22006
|
+
/*
|
|
22007
|
+
New responsive text component for Title elements
|
|
22008
|
+
Size is decoupled from tag
|
|
22009
|
+
Comes with two variants - "large" and "small"
|
|
22010
|
+
Large variant results in text that is 1.5rem (24px desktop, 21px mobile)
|
|
22011
|
+
Small variant results in text that is 1.25rem/1.2142rem (20px desktop, 17px mobile)
|
|
22012
|
+
|
|
22013
|
+
If you need a smaller text size, use the <Detail /> atom, which has smaller variants
|
|
22014
|
+
|
|
22015
|
+
Use the "as" prop to specify element type, can use any of: h1/h2/h3/h4/h5/h6/p
|
|
22016
|
+
If you need an inline text element (span), use the <Text /> atom
|
|
22017
|
+
The "as" value should be dictated by the structure of your page, not what font-size you want
|
|
22018
|
+
|
|
22019
|
+
Title / Detail both use slightly different desktop/mobile scales
|
|
22020
|
+
(Mobile scale is different to allow for design-friendly px values)
|
|
22021
|
+
Both atoms detect the presence of a mobile device on their own
|
|
22022
|
+
and apply the corresponding scale
|
|
22023
|
+
|
|
22024
|
+
Mobile breakpoint value is specified in Title.theme.js
|
|
22025
|
+
|
|
22026
|
+
If you want to disable mobile text scales (use the same rem scale for desktop/mobile), then use a theme in FCS to set both the "large" and "small" variants to use the same rem sizes. FCS themes override fallbacks defined in the .theme file
|
|
22027
|
+
*/
|
|
22028
|
+
|
|
22029
|
+
var isBelowBreakpoint$1 = window.innerWidth < MOBILE_BREAKPOINT$1;
|
|
22030
|
+
var isTouchDevice$2 = "ontouchstart" in window || navigator.maxTouchPoints > 1;
|
|
22031
|
+
var mobileDeviceDetected$1 = isBelowBreakpoint$1 && isTouchDevice$2;
|
|
22032
|
+
var fallbacks$1 = mobileDeviceDetected$1 ? mobileFallbackValues$1 : fallbackValues$l;
|
|
22033
|
+
|
|
22034
|
+
var Title = function Title(_ref) {
|
|
22035
|
+
var themeValues = _ref.themeValues,
|
|
22036
|
+
_ref$weight = _ref.weight,
|
|
22037
|
+
weight = _ref$weight === void 0 ? FONT_WEIGHT_REGULAR : _ref$weight,
|
|
22038
|
+
_ref$color = _ref.color,
|
|
22039
|
+
color = _ref$color === void 0 ? FIREFLY_GREY : _ref$color,
|
|
22040
|
+
_ref$margin = _ref.margin,
|
|
22041
|
+
margin = _ref$margin === void 0 ? 0 : _ref$margin,
|
|
22042
|
+
textAlign = _ref.textAlign,
|
|
22043
|
+
_ref$extraStyles = _ref.extraStyles,
|
|
22044
|
+
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
22045
|
+
className = _ref.className,
|
|
22046
|
+
_ref$variant = _ref.variant,
|
|
22047
|
+
variant = _ref$variant === void 0 ? "large" : _ref$variant,
|
|
22048
|
+
_ref$as = _ref.as,
|
|
22049
|
+
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
22050
|
+
dataQa = _ref.dataQa,
|
|
22051
|
+
children = _ref.children,
|
|
22052
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
22053
|
+
|
|
22054
|
+
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
22055
|
+
variant: variant,
|
|
22056
|
+
as: as,
|
|
22057
|
+
weight: weight,
|
|
22058
|
+
color: color,
|
|
22059
|
+
margin: margin,
|
|
22060
|
+
textAlign: textAlign,
|
|
22061
|
+
extraStyles: extraStyles,
|
|
22062
|
+
className: className,
|
|
22063
|
+
fontFamily: themeValues.fontFamily,
|
|
22064
|
+
fontSize: themeValues.fontSize,
|
|
22065
|
+
"data-qa": dataQa
|
|
22066
|
+
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
22067
|
+
};
|
|
22068
|
+
|
|
22069
|
+
var Title$1 = themeComponent(Title, "Title", fallbacks$1, "large");
|
|
22070
|
+
|
|
21906
22071
|
var Jumbo = function Jumbo(_ref) {
|
|
21907
22072
|
var showButton = _ref.showButton,
|
|
21908
22073
|
heading = _ref.heading,
|
|
@@ -21944,11 +22109,11 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
21944
22109
|
justify: isMobile && !showCartStatus ? "center" : showButton || showCartStatus ? "space-between" : "left",
|
|
21945
22110
|
align: "center",
|
|
21946
22111
|
nowrap: showCartStatus
|
|
21947
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
21948
|
-
variant: isMobile ? "
|
|
22112
|
+
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
22113
|
+
variant: isMobile ? "small" : "large",
|
|
22114
|
+
as: "h1",
|
|
21949
22115
|
color: "#ffffff",
|
|
21950
22116
|
className: "themeJumboHeading",
|
|
21951
|
-
themeJumboHeading: true,
|
|
21952
22117
|
extraStyles: showCartStatus && isMobile && "max-width: 60%;"
|
|
21953
22118
|
}, heading), subHeading && /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
21954
22119
|
variant: isMobile ? "h6" : "h2",
|
|
@@ -21975,7 +22140,7 @@ var fontWeight$4 = {
|
|
|
21975
22140
|
pL: "600",
|
|
21976
22141
|
h6: "700"
|
|
21977
22142
|
};
|
|
21978
|
-
var fallbackValues$
|
|
22143
|
+
var fallbackValues$m = {
|
|
21979
22144
|
fontWeight: fontWeight$4
|
|
21980
22145
|
};
|
|
21981
22146
|
|
|
@@ -22003,7 +22168,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
22003
22168
|
}, amount));
|
|
22004
22169
|
};
|
|
22005
22170
|
|
|
22006
|
-
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$
|
|
22171
|
+
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$m, "default");
|
|
22007
22172
|
|
|
22008
22173
|
var weightTitle = {
|
|
22009
22174
|
"default": "600",
|
|
@@ -22013,7 +22178,7 @@ var paragraphVariant = {
|
|
|
22013
22178
|
"default": "pL",
|
|
22014
22179
|
small: "pS"
|
|
22015
22180
|
};
|
|
22016
|
-
var fallbackValues$
|
|
22181
|
+
var fallbackValues$n = {
|
|
22017
22182
|
weightTitle: weightTitle,
|
|
22018
22183
|
paragraphVariant: paragraphVariant
|
|
22019
22184
|
};
|
|
@@ -22042,10 +22207,10 @@ var LineItem = function LineItem(_ref) {
|
|
|
22042
22207
|
}, amount));
|
|
22043
22208
|
};
|
|
22044
22209
|
|
|
22045
|
-
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$
|
|
22210
|
+
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$n, "default");
|
|
22046
22211
|
|
|
22047
22212
|
var color$8 = "#15749D";
|
|
22048
|
-
var fallbackValues$
|
|
22213
|
+
var fallbackValues$o = {
|
|
22049
22214
|
color: color$8
|
|
22050
22215
|
};
|
|
22051
22216
|
|
|
@@ -22059,16 +22224,16 @@ function _templateObject2$g() {
|
|
|
22059
22224
|
return data;
|
|
22060
22225
|
}
|
|
22061
22226
|
|
|
22062
|
-
function _templateObject$
|
|
22227
|
+
function _templateObject$u() {
|
|
22063
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"]);
|
|
22064
22229
|
|
|
22065
|
-
_templateObject$
|
|
22230
|
+
_templateObject$u = function _templateObject() {
|
|
22066
22231
|
return data;
|
|
22067
22232
|
};
|
|
22068
22233
|
|
|
22069
22234
|
return data;
|
|
22070
22235
|
}
|
|
22071
|
-
var SpinnerSvgAnimation = styled__default.svg(_templateObject$
|
|
22236
|
+
var SpinnerSvgAnimation = styled__default.svg(_templateObject$u(), function (_ref) {
|
|
22072
22237
|
var size = _ref.size;
|
|
22073
22238
|
return size;
|
|
22074
22239
|
}, function (_ref2) {
|
|
@@ -22097,7 +22262,7 @@ var Spinner$1 = function Spinner(_ref4) {
|
|
|
22097
22262
|
})));
|
|
22098
22263
|
};
|
|
22099
22264
|
|
|
22100
|
-
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$
|
|
22265
|
+
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$o);
|
|
22101
22266
|
|
|
22102
22267
|
var Loading = function Loading() {
|
|
22103
22268
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -22345,10 +22510,10 @@ function _templateObject2$h() {
|
|
|
22345
22510
|
return data;
|
|
22346
22511
|
}
|
|
22347
22512
|
|
|
22348
|
-
function _templateObject$
|
|
22513
|
+
function _templateObject$v() {
|
|
22349
22514
|
var data = _taggedTemplateLiteral(["", " is too short"]);
|
|
22350
22515
|
|
|
22351
|
-
_templateObject$
|
|
22516
|
+
_templateObject$v = function _templateObject() {
|
|
22352
22517
|
return data;
|
|
22353
22518
|
};
|
|
22354
22519
|
|
|
@@ -22394,7 +22559,7 @@ with interpolation.
|
|
|
22394
22559
|
*/
|
|
22395
22560
|
|
|
22396
22561
|
|
|
22397
|
-
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
|
|
22398
22563
|
// Neutral - has not been validated
|
|
22399
22564
|
// Invalid - has been validated and has an error
|
|
22400
22565
|
// Valid - has been validated and has no error
|
|
@@ -22519,7 +22684,7 @@ var height$1 = {
|
|
|
22519
22684
|
"default": "3rem",
|
|
22520
22685
|
large: "192px"
|
|
22521
22686
|
};
|
|
22522
|
-
var fallbackValues$
|
|
22687
|
+
var fallbackValues$p = {
|
|
22523
22688
|
color: color$9,
|
|
22524
22689
|
height: height$1
|
|
22525
22690
|
};
|
|
@@ -22612,12 +22777,12 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
22612
22777
|
}, text)))))))))));
|
|
22613
22778
|
};
|
|
22614
22779
|
|
|
22615
|
-
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$
|
|
22780
|
+
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$p, "default");
|
|
22616
22781
|
|
|
22617
22782
|
var backgroundColor$4 = {
|
|
22618
22783
|
"default": "".concat(WHITE)
|
|
22619
22784
|
};
|
|
22620
|
-
var fallbackValues$
|
|
22785
|
+
var fallbackValues$q = {
|
|
22621
22786
|
backgroundColor: backgroundColor$4
|
|
22622
22787
|
};
|
|
22623
22788
|
|
|
@@ -22645,25 +22810,25 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
22645
22810
|
}));
|
|
22646
22811
|
};
|
|
22647
22812
|
|
|
22648
|
-
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$
|
|
22813
|
+
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$q, "default");
|
|
22649
22814
|
|
|
22650
22815
|
var activeColor$4 = "".concat(MATISSE_BLUE);
|
|
22651
22816
|
var inactiveColor = "".concat(GREY_CHATEAU);
|
|
22652
|
-
var fallbackValues$
|
|
22817
|
+
var fallbackValues$r = {
|
|
22653
22818
|
activeColor: activeColor$4,
|
|
22654
22819
|
inactiveColor: inactiveColor
|
|
22655
22820
|
};
|
|
22656
22821
|
|
|
22657
|
-
function _templateObject$
|
|
22822
|
+
function _templateObject$w() {
|
|
22658
22823
|
var data = _taggedTemplateLiteral(["\n opacity: 0;\n position: absolute;\n cursor: ", ";\n"]);
|
|
22659
22824
|
|
|
22660
|
-
_templateObject$
|
|
22825
|
+
_templateObject$w = function _templateObject() {
|
|
22661
22826
|
return data;
|
|
22662
22827
|
};
|
|
22663
22828
|
|
|
22664
22829
|
return data;
|
|
22665
22830
|
}
|
|
22666
|
-
var HiddenRadioButton = styled__default.input(_templateObject$
|
|
22831
|
+
var HiddenRadioButton = styled__default.input(_templateObject$w(), function (_ref) {
|
|
22667
22832
|
var disabled = _ref.disabled;
|
|
22668
22833
|
return disabled ? "auto" : "pointer";
|
|
22669
22834
|
});
|
|
@@ -22745,12 +22910,12 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
22745
22910
|
})));
|
|
22746
22911
|
};
|
|
22747
22912
|
|
|
22748
|
-
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$
|
|
22913
|
+
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$r);
|
|
22749
22914
|
|
|
22750
22915
|
var border$2 = {
|
|
22751
22916
|
"default": "1px solid #caced8"
|
|
22752
22917
|
};
|
|
22753
|
-
var fallbackValues$
|
|
22918
|
+
var fallbackValues$s = {
|
|
22754
22919
|
border: border$2
|
|
22755
22920
|
};
|
|
22756
22921
|
|
|
@@ -22825,7 +22990,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
22825
22990
|
})))));
|
|
22826
22991
|
};
|
|
22827
22992
|
|
|
22828
|
-
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$
|
|
22993
|
+
var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$s, "default");
|
|
22829
22994
|
|
|
22830
22995
|
var borderColor$2 = {
|
|
22831
22996
|
"default": "".concat(GREY_CHATEAU)
|
|
@@ -22833,7 +22998,7 @@ var borderColor$2 = {
|
|
|
22833
22998
|
var borderSize = {
|
|
22834
22999
|
"default": "1px"
|
|
22835
23000
|
};
|
|
22836
|
-
var fallbackValues$
|
|
23001
|
+
var fallbackValues$t = {
|
|
22837
23002
|
borderColor: borderColor$2,
|
|
22838
23003
|
borderSize: borderSize
|
|
22839
23004
|
};
|
|
@@ -22850,7 +23015,7 @@ var SolidDivider = function SolidDivider(_ref) {
|
|
|
22850
23015
|
});
|
|
22851
23016
|
};
|
|
22852
23017
|
|
|
22853
|
-
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$
|
|
23018
|
+
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$t, "default");
|
|
22854
23019
|
|
|
22855
23020
|
var placeHolderOptionUS = {
|
|
22856
23021
|
text: "Please select state",
|
|
@@ -33425,125 +33590,6 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
33425
33590
|
});
|
|
33426
33591
|
};
|
|
33427
33592
|
|
|
33428
|
-
function _templateObject$w() {
|
|
33429
|
-
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"]);
|
|
33430
|
-
|
|
33431
|
-
_templateObject$w = function _templateObject() {
|
|
33432
|
-
return data;
|
|
33433
|
-
};
|
|
33434
|
-
|
|
33435
|
-
return data;
|
|
33436
|
-
}
|
|
33437
|
-
var TitleText = styled__default.h1(_templateObject$w(), function (_ref) {
|
|
33438
|
-
var fontSize = _ref.fontSize;
|
|
33439
|
-
return fontSize;
|
|
33440
|
-
}, function (_ref2) {
|
|
33441
|
-
var color = _ref2.color;
|
|
33442
|
-
return color;
|
|
33443
|
-
}, function (_ref3) {
|
|
33444
|
-
var weight = _ref3.weight;
|
|
33445
|
-
return weight;
|
|
33446
|
-
}, function (_ref4) {
|
|
33447
|
-
var margin = _ref4.margin;
|
|
33448
|
-
return margin;
|
|
33449
|
-
}, function (_ref5) {
|
|
33450
|
-
var textAlign = _ref5.textAlign;
|
|
33451
|
-
return textAlign;
|
|
33452
|
-
}, function (_ref6) {
|
|
33453
|
-
var fontFamily = _ref6.fontFamily;
|
|
33454
|
-
return fontFamily;
|
|
33455
|
-
}, function (_ref7) {
|
|
33456
|
-
var extraStyles = _ref7.extraStyles;
|
|
33457
|
-
return extraStyles;
|
|
33458
|
-
});
|
|
33459
|
-
|
|
33460
|
-
var fontSize$9 = {
|
|
33461
|
-
large: "1.5rem",
|
|
33462
|
-
small: "1.25rem"
|
|
33463
|
-
};
|
|
33464
|
-
var fontFamily$5 = {
|
|
33465
|
-
large: "Public Sans",
|
|
33466
|
-
small: "Public Sans"
|
|
33467
|
-
};
|
|
33468
|
-
var mobileFontSize$1 = {
|
|
33469
|
-
large: "1.5rem",
|
|
33470
|
-
small: "1.2142rem"
|
|
33471
|
-
};
|
|
33472
|
-
var fallbackValues$t = {
|
|
33473
|
-
fontFamily: fontFamily$5,
|
|
33474
|
-
fontSize: fontSize$9
|
|
33475
|
-
};
|
|
33476
|
-
var mobileFallbackValues$1 = {
|
|
33477
|
-
fontFamily: fontFamily$5,
|
|
33478
|
-
fontSize: mobileFontSize$1
|
|
33479
|
-
};
|
|
33480
|
-
var MOBILE_BREAKPOINT$1 = 768;
|
|
33481
|
-
|
|
33482
|
-
/*
|
|
33483
|
-
New responsive text component for Title elements
|
|
33484
|
-
Size is decoupled from tag
|
|
33485
|
-
Comes with two variants - "large" and "small"
|
|
33486
|
-
Large variant results in text that is 1.5rem (24px desktop, 21px mobile)
|
|
33487
|
-
Small variant results in text that is 1.25rem/1.2142rem (20px desktop, 17px mobile)
|
|
33488
|
-
|
|
33489
|
-
If you need a smaller text size, use the <Detail /> atom, which has smaller variants
|
|
33490
|
-
|
|
33491
|
-
Use the "as" prop to specify element type, can use any of: h1/h2/h3/h4/h5/h6/p
|
|
33492
|
-
If you need an inline text element (span), use the <Text /> atom
|
|
33493
|
-
The "as" value should be dictated by the structure of your page, not what font-size you want
|
|
33494
|
-
|
|
33495
|
-
Title / Detail both use slightly different desktop/mobile scales
|
|
33496
|
-
(Mobile scale is different to allow for design-friendly px values)
|
|
33497
|
-
Both atoms detect the presence of a mobile device on their own
|
|
33498
|
-
and apply the corresponding scale
|
|
33499
|
-
|
|
33500
|
-
Mobile breakpoint value is specified in Title.theme.js
|
|
33501
|
-
|
|
33502
|
-
If you want to disable mobile text scales (use the same rem scale for desktop/mobile), then use a theme in FCS to set both the "large" and "small" variants to use the same rem sizes. FCS themes override fallbacks defined in the .theme file
|
|
33503
|
-
*/
|
|
33504
|
-
|
|
33505
|
-
var isBelowBreakpoint$1 = window.innerWidth < MOBILE_BREAKPOINT$1;
|
|
33506
|
-
var isTouchDevice$2 = "ontouchstart" in window || navigator.maxTouchPoints > 1;
|
|
33507
|
-
var mobileDeviceDetected$1 = isBelowBreakpoint$1 && isTouchDevice$2;
|
|
33508
|
-
var fallbacks$1 = mobileDeviceDetected$1 ? mobileFallbackValues$1 : fallbackValues$t;
|
|
33509
|
-
|
|
33510
|
-
var Title = function Title(_ref) {
|
|
33511
|
-
var themeValues = _ref.themeValues,
|
|
33512
|
-
_ref$weight = _ref.weight,
|
|
33513
|
-
weight = _ref$weight === void 0 ? FONT_WEIGHT_REGULAR : _ref$weight,
|
|
33514
|
-
_ref$color = _ref.color,
|
|
33515
|
-
color = _ref$color === void 0 ? FIREFLY_GREY : _ref$color,
|
|
33516
|
-
_ref$margin = _ref.margin,
|
|
33517
|
-
margin = _ref$margin === void 0 ? 0 : _ref$margin,
|
|
33518
|
-
textAlign = _ref.textAlign,
|
|
33519
|
-
_ref$extraStyles = _ref.extraStyles,
|
|
33520
|
-
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
33521
|
-
className = _ref.className,
|
|
33522
|
-
_ref$variant = _ref.variant,
|
|
33523
|
-
variant = _ref$variant === void 0 ? "large" : _ref$variant,
|
|
33524
|
-
_ref$as = _ref.as,
|
|
33525
|
-
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
33526
|
-
dataQa = _ref.dataQa,
|
|
33527
|
-
children = _ref.children,
|
|
33528
|
-
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
33529
|
-
|
|
33530
|
-
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
33531
|
-
variant: variant,
|
|
33532
|
-
as: as,
|
|
33533
|
-
weight: weight,
|
|
33534
|
-
color: color,
|
|
33535
|
-
margin: margin,
|
|
33536
|
-
textAlign: textAlign,
|
|
33537
|
-
extraStyles: extraStyles,
|
|
33538
|
-
className: className,
|
|
33539
|
-
fontFamily: themeValues.fontFamily,
|
|
33540
|
-
fontSize: themeValues.fontSize,
|
|
33541
|
-
"data-qa": dataQa
|
|
33542
|
-
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
33543
|
-
};
|
|
33544
|
-
|
|
33545
|
-
var Title$1 = themeComponent(Title, "Title", fallbacks$1, "large");
|
|
33546
|
-
|
|
33547
33593
|
var onBackground = "".concat(MATISSE_BLUE);
|
|
33548
33594
|
var disabledBackground = "".concat(IRON_GREY);
|
|
33549
33595
|
var white = "".concat(WHITE);
|
|
@@ -37876,7 +37922,6 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37876
37922
|
roleDisabled = _ref.roleDisabled,
|
|
37877
37923
|
selectionDisabled = _ref.selectionDisabled,
|
|
37878
37924
|
formType = _ref.formType,
|
|
37879
|
-
isOktaUser = _ref.isOktaUser,
|
|
37880
37925
|
openChangePasswordForm = _ref.openChangePasswordForm,
|
|
37881
37926
|
firstName = _ref.firstName,
|
|
37882
37927
|
lastName = _ref.lastName;
|
|
@@ -37994,7 +38039,7 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37994
38039
|
return e.key === "Enter" && handleSubmit(e);
|
|
37995
38040
|
},
|
|
37996
38041
|
disabled: emailDisabled
|
|
37997
|
-
}), formType === PROFILE &&
|
|
38042
|
+
}), formType === PROFILE && /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
37998
38043
|
labelTextWhenNoError: "Password",
|
|
37999
38044
|
errorMessages: {},
|
|
38000
38045
|
field: {
|
|
@@ -42408,6 +42453,7 @@ exports.TypeaheadInput = TypeaheadInput;
|
|
|
42408
42453
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
42409
42454
|
exports.VoidedIcon = VoidedIcon;
|
|
42410
42455
|
exports.WalletIcon = WalletIcon$1;
|
|
42456
|
+
exports.WarningIconXS = WarningIconXS;
|
|
42411
42457
|
exports.WelcomeModule = WelcomeModule$1;
|
|
42412
42458
|
exports.WorkflowTile = WorkflowTile;
|
|
42413
42459
|
exports.cardRegistry = cardRegistry;
|
package/package.json
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const WarningIconXS = () => (
|
|
4
|
+
<svg
|
|
5
|
+
width="16px"
|
|
6
|
+
height="13px"
|
|
7
|
+
viewBox="0 0 16 13"
|
|
8
|
+
version="1.1"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
11
|
+
aria-labelledby="#warning-restricted-item"
|
|
12
|
+
role="img"
|
|
13
|
+
>
|
|
14
|
+
<title id="warning-restricted-item">
|
|
15
|
+
Warning: restricted items cannot be selected
|
|
16
|
+
</title>
|
|
17
|
+
<defs>
|
|
18
|
+
<path
|
|
19
|
+
d="M11.0106463,4.4659633 C11.3063934,4.63914978 11.5526739,4.88543032 11.7258604,5.18117739 L16.7999622,13.846119 C17.3581267,14.7992854 17.0379144,16.0244612 16.0847481,16.5826257 C15.7781918,16.762142 15.4293522,16.8567653 15.0741018,16.8567653 L4.92589823,16.8567653 C3.82132873,16.8567653 2.92589823,15.9613348 2.92589823,14.8567653 C2.92589823,14.5015149 3.02052159,14.1526753 3.20003784,13.846119 L8.27413962,5.18117739 C8.83230416,4.22801102 10.0574799,3.90779877 11.0106463,4.4659633 Z M10.6666667,13.3333333 L9.33333333,13.3333333 L9.33333333,14.6666667 L10.6666667,14.6666667 L10.6666667,13.3333333 Z M10.6666667,6.66666667 L9.33333333,6.66666667 L9.33333333,12 L10.6666667,12 L10.6666667,6.66666667 Z"
|
|
20
|
+
id="WarningIconXs-path-1"
|
|
21
|
+
></path>
|
|
22
|
+
</defs>
|
|
23
|
+
<g
|
|
24
|
+
id="WarningIconXs-SRV-2647---Workflow-$0-Balance"
|
|
25
|
+
stroke="none"
|
|
26
|
+
strokeWidth="1"
|
|
27
|
+
fill="none"
|
|
28
|
+
fillRule="evenodd"
|
|
29
|
+
>
|
|
30
|
+
<g
|
|
31
|
+
id="WarningIconXs-11---Search-Results----Checked--Copy-6"
|
|
32
|
+
transform="translate(-135.000000, -483.000000)"
|
|
33
|
+
>
|
|
34
|
+
<g
|
|
35
|
+
id="WarningIconXs-Group"
|
|
36
|
+
transform="translate(133.000000, 479.000000)"
|
|
37
|
+
>
|
|
38
|
+
<mask id="WarningIconXs-mask-2" fill="white">
|
|
39
|
+
<use xlinkHref="#WarningIconXs-path-1"></use>
|
|
40
|
+
</mask>
|
|
41
|
+
<use
|
|
42
|
+
id="WarningIconXs-Mask"
|
|
43
|
+
fill="#B34A00"
|
|
44
|
+
fillRule="nonzero"
|
|
45
|
+
xlinkHref="#WarningIconXs-path-1"
|
|
46
|
+
></use>
|
|
47
|
+
<polygon
|
|
48
|
+
id="WarningIconXs-Path"
|
|
49
|
+
fill="#B34A00"
|
|
50
|
+
fillRule="nonzero"
|
|
51
|
+
mask="url(#WarningIconXs-mask-2)"
|
|
52
|
+
points="-2.84217094e-14 -4.26325641e-14 20 -4.26325641e-14 20 20 -2.84217094e-14 20"
|
|
53
|
+
></polygon>
|
|
54
|
+
</g>
|
|
55
|
+
</g>
|
|
56
|
+
</g>
|
|
57
|
+
</svg>
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
export default WarningIconXS;
|
|
@@ -53,6 +53,7 @@ import PaymentSearchIcon from "./PaymentSearchIcon";
|
|
|
53
53
|
import ResetPasswordIcon from "./ResetPasswordIcon";
|
|
54
54
|
import PeriscopeFailedIcon from "./PeriscopeFailedIcon";
|
|
55
55
|
import CheckIcon from "./CheckIcon";
|
|
56
|
+
import WarningIconXS from "./WarningIconXS";
|
|
56
57
|
|
|
57
58
|
export {
|
|
58
59
|
AccountsIcon,
|
|
@@ -109,5 +110,6 @@ export {
|
|
|
109
110
|
PaymentSearchIcon,
|
|
110
111
|
ResetPasswordIcon,
|
|
111
112
|
PeriscopeFailedIcon,
|
|
112
|
-
CheckIcon
|
|
113
|
+
CheckIcon,
|
|
114
|
+
WarningIconXS
|
|
113
115
|
};
|
|
@@ -4,6 +4,7 @@ import { ThemeContext } from "styled-components";
|
|
|
4
4
|
import ButtonWithLink from "../button-with-link";
|
|
5
5
|
import { Box, Cluster, Center, Cover, Switcher } from "../layouts";
|
|
6
6
|
import Heading from "../heading";
|
|
7
|
+
import Title from "../title";
|
|
7
8
|
import withWindowSize from "../../withWindowSize";
|
|
8
9
|
|
|
9
10
|
const Jumbo = ({
|
|
@@ -49,16 +50,15 @@ const Jumbo = ({
|
|
|
49
50
|
align="center"
|
|
50
51
|
nowrap={showCartStatus}
|
|
51
52
|
>
|
|
52
|
-
<
|
|
53
|
-
variant={isMobile ? "
|
|
53
|
+
<Title
|
|
54
|
+
variant={isMobile ? "small" : "large"}
|
|
55
|
+
as="h1"
|
|
54
56
|
color="#ffffff"
|
|
55
57
|
className="themeJumboHeading"
|
|
56
|
-
themeJumboHeading
|
|
57
58
|
extraStyles={showCartStatus && isMobile && `max-width: 60%;`}
|
|
58
59
|
>
|
|
59
60
|
{heading}
|
|
60
|
-
</
|
|
61
|
-
|
|
61
|
+
</Title>
|
|
62
62
|
{subHeading && (
|
|
63
63
|
<Heading
|
|
64
64
|
variant={isMobile ? "h6" : "h2"}
|
|
@@ -52,7 +52,6 @@ const InternalUserInfoForm = ({
|
|
|
52
52
|
roleDisabled,
|
|
53
53
|
selectionDisabled,
|
|
54
54
|
formType,
|
|
55
|
-
isOktaUser,
|
|
56
55
|
openChangePasswordForm,
|
|
57
56
|
firstName,
|
|
58
57
|
lastName
|
|
@@ -172,7 +171,7 @@ const InternalUserInfoForm = ({
|
|
|
172
171
|
onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
|
|
173
172
|
disabled={emailDisabled}
|
|
174
173
|
/>
|
|
175
|
-
{formType === PROFILE &&
|
|
174
|
+
{formType === PROFILE && (
|
|
176
175
|
<FormInput
|
|
177
176
|
labelTextWhenNoError="Password"
|
|
178
177
|
errorMessages={{}}
|