@thecb/components 11.3.5-beta.0 → 11.4.0-beta.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 +172 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.esm.js +172 -31
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/form-layouts/FormTextarea.js +208 -0
- package/src/components/atoms/form-layouts/FormTextarea.mdx +48 -0
- package/src/components/atoms/form-layouts/FormTextarea.stories.js +265 -0
- package/src/components/atoms/form-layouts/index.d.ts +28 -0
- package/src/components/atoms/form-layouts/index.js +3 -1
- package/src/util/general.js +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -1728,9 +1728,11 @@ var createIdFromString = function createIdFromString(text, postscript) {
|
|
|
1728
1728
|
var formatIdString = function formatIdString(str) {
|
|
1729
1729
|
return str && typeof str === "string" ? str.trim().replace(/\s+/g, "-") : "";
|
|
1730
1730
|
};
|
|
1731
|
-
var
|
|
1731
|
+
var textIdSegment = formatIdString(text === null || text === void 0 ? void 0 : text.toString());
|
|
1732
1732
|
var postscriptId = formatIdString(postscript === null || postscript === void 0 ? void 0 : postscript.toString());
|
|
1733
|
-
|
|
1733
|
+
var postscriptIdSegment = postscriptId ? "-".concat(postscriptId) : "";
|
|
1734
|
+
var uniqueIdSegment = unique ? createUniqueId() : "";
|
|
1735
|
+
return "".concat(textIdSegment).concat(postscriptIdSegment).concat(uniqueIdSegment);
|
|
1734
1736
|
}
|
|
1735
1737
|
};
|
|
1736
1738
|
var safeChildren = function safeChildren(children) {
|
|
@@ -25286,6 +25288,145 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
25286
25288
|
};
|
|
25287
25289
|
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$n, "default");
|
|
25288
25290
|
|
|
25291
|
+
var _excluded$D = ["ariaLabelledBy", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "helperModal", "field", "fieldActions", "showErrors", "themeValues", "customHeight", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant", "resize", "rows", "cols", "placeholder", "maxLength"];
|
|
25292
|
+
var TextareaField = styled__default.textarea.withConfig({
|
|
25293
|
+
displayName: "FormTextarea__TextareaField",
|
|
25294
|
+
componentId: "sc-94tlb0-0"
|
|
25295
|
+
})(["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;font-family:Public Sans;line-height:1.5rem;font-weight:", ";background-color:", ";color:", ";box-shadow:none;resize:", ";transition:background 0.3s ease;&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
|
|
25296
|
+
var field = _ref.field,
|
|
25297
|
+
showErrors = _ref.showErrors,
|
|
25298
|
+
themeValues = _ref.themeValues;
|
|
25299
|
+
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : themeValues.borderColor;
|
|
25300
|
+
}, function (_ref2) {
|
|
25301
|
+
var $customHeight = _ref2.$customHeight;
|
|
25302
|
+
return $customHeight ? $customHeight : "auto";
|
|
25303
|
+
}, FONT_WEIGHT_REGULAR, function (_ref3) {
|
|
25304
|
+
var themeValues = _ref3.themeValues;
|
|
25305
|
+
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
25306
|
+
}, function (_ref4) {
|
|
25307
|
+
var themeValues = _ref4.themeValues;
|
|
25308
|
+
return themeValues.color && themeValues.color;
|
|
25309
|
+
}, function (_ref5) {
|
|
25310
|
+
var resize = _ref5.resize;
|
|
25311
|
+
return resize || "vertical";
|
|
25312
|
+
}, ROYAL_BLUE, function (_ref6) {
|
|
25313
|
+
var disabled = _ref6.disabled;
|
|
25314
|
+
return disabled && styled.css(["color:#6e727e;background-color:#f7f7f7;"]);
|
|
25315
|
+
}, function (_ref7) {
|
|
25316
|
+
var $extraStyles = _ref7.$extraStyles;
|
|
25317
|
+
return styled.css(["", ""], $extraStyles);
|
|
25318
|
+
});
|
|
25319
|
+
var FormTextarea = function FormTextarea(_ref8) {
|
|
25320
|
+
var _ref8$ariaLabelledBy = _ref8.ariaLabelledBy,
|
|
25321
|
+
ariaLabelledBy = _ref8$ariaLabelledBy === void 0 ? undefined : _ref8$ariaLabelledBy,
|
|
25322
|
+
_ref8$labelDisplayOve = _ref8.labelDisplayOverride,
|
|
25323
|
+
labelDisplayOverride = _ref8$labelDisplayOve === void 0 ? null : _ref8$labelDisplayOve,
|
|
25324
|
+
_ref8$labelTextWhenNo = _ref8.labelTextWhenNoError,
|
|
25325
|
+
labelTextWhenNoError = _ref8$labelTextWhenNo === void 0 ? "" : _ref8$labelTextWhenNo,
|
|
25326
|
+
errorMessages = _ref8.errorMessages,
|
|
25327
|
+
_ref8$helperModal = _ref8.helperModal,
|
|
25328
|
+
helperModal = _ref8$helperModal === void 0 ? false : _ref8$helperModal,
|
|
25329
|
+
field = _ref8.field,
|
|
25330
|
+
fieldActions = _ref8.fieldActions,
|
|
25331
|
+
showErrors = _ref8.showErrors,
|
|
25332
|
+
themeValues = _ref8.themeValues,
|
|
25333
|
+
customHeight = _ref8.customHeight,
|
|
25334
|
+
extraStyles = _ref8.extraStyles,
|
|
25335
|
+
removeFromValue = _ref8.removeFromValue,
|
|
25336
|
+
_ref8$dataQa = _ref8.dataQa,
|
|
25337
|
+
dataQa = _ref8$dataQa === void 0 ? null : _ref8$dataQa,
|
|
25338
|
+
_ref8$isRequired = _ref8.isRequired,
|
|
25339
|
+
isRequired = _ref8$isRequired === void 0 ? false : _ref8$isRequired,
|
|
25340
|
+
errorFieldExtraStyles = _ref8.errorFieldExtraStyles,
|
|
25341
|
+
_ref8$showFieldErrorR = _ref8.showFieldErrorRow,
|
|
25342
|
+
showFieldErrorRow = _ref8$showFieldErrorR === void 0 ? true : _ref8$showFieldErrorR,
|
|
25343
|
+
_ref8$labelTextVarian = _ref8.labelTextVariant,
|
|
25344
|
+
labelTextVariant = _ref8$labelTextVarian === void 0 ? "pS" : _ref8$labelTextVarian,
|
|
25345
|
+
_ref8$errorTextVarian = _ref8.errorTextVariant,
|
|
25346
|
+
errorTextVariant = _ref8$errorTextVarian === void 0 ? "pXS" : _ref8$errorTextVarian,
|
|
25347
|
+
_ref8$resize = _ref8.resize,
|
|
25348
|
+
resize = _ref8$resize === void 0 ? "vertical" : _ref8$resize,
|
|
25349
|
+
_ref8$rows = _ref8.rows,
|
|
25350
|
+
rows = _ref8$rows === void 0 ? 5 : _ref8$rows,
|
|
25351
|
+
cols = _ref8.cols,
|
|
25352
|
+
placeholder = _ref8.placeholder,
|
|
25353
|
+
maxLength = _ref8.maxLength,
|
|
25354
|
+
props = _objectWithoutProperties(_ref8, _excluded$D);
|
|
25355
|
+
var setValue = function setValue(value) {
|
|
25356
|
+
if (removeFromValue !== undefined) {
|
|
25357
|
+
return fieldActions.set(value.replace(removeFromValue, ""));
|
|
25358
|
+
}
|
|
25359
|
+
return fieldActions.set(value);
|
|
25360
|
+
};
|
|
25361
|
+
return /*#__PURE__*/React__default.createElement(Stack, {
|
|
25362
|
+
childGap: "0.25rem"
|
|
25363
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
25364
|
+
padding: "0"
|
|
25365
|
+
}, helperModal ? /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25366
|
+
justify: "space-between",
|
|
25367
|
+
align: "center"
|
|
25368
|
+
}, labelDisplayOverride ? labelDisplayOverride : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25369
|
+
as: "label",
|
|
25370
|
+
color: themeValues.labelColor,
|
|
25371
|
+
variant: labelTextVariant,
|
|
25372
|
+
weight: themeValues.fontWeight,
|
|
25373
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
25374
|
+
id: createIdFromString(labelTextWhenNoError)
|
|
25375
|
+
}, labelTextWhenNoError), helperModal()) : /*#__PURE__*/React__default.createElement(Box, {
|
|
25376
|
+
padding: "0",
|
|
25377
|
+
minWidth: "100%"
|
|
25378
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
25379
|
+
justify: "space-between",
|
|
25380
|
+
align: "center"
|
|
25381
|
+
}, labelDisplayOverride ? labelDisplayOverride : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25382
|
+
as: "label",
|
|
25383
|
+
color: themeValues.labelColor,
|
|
25384
|
+
variant: labelTextVariant,
|
|
25385
|
+
fontWeight: themeValues.fontWeight,
|
|
25386
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
25387
|
+
id: createIdFromString(labelTextWhenNoError)
|
|
25388
|
+
}, labelTextWhenNoError)))), /*#__PURE__*/React__default.createElement(Box, {
|
|
25389
|
+
padding: "0"
|
|
25390
|
+
}, /*#__PURE__*/React__default.createElement(TextareaField, _extends({
|
|
25391
|
+
"aria-labelledby": ariaLabelledBy === undefined ? createIdFromString(labelTextWhenNoError) : ariaLabelledBy,
|
|
25392
|
+
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
25393
|
+
"aria-invalid": field.dirty && field.hasErrors || field.hasErrors && showErrors,
|
|
25394
|
+
onChange: function onChange(e) {
|
|
25395
|
+
return setValue(e.target.value);
|
|
25396
|
+
},
|
|
25397
|
+
onBlur: function onBlur(e) {
|
|
25398
|
+
return handleOnBlur(e.target.value);
|
|
25399
|
+
},
|
|
25400
|
+
value: field.rawValue,
|
|
25401
|
+
field: field,
|
|
25402
|
+
showErrors: showErrors,
|
|
25403
|
+
themeValues: themeValues,
|
|
25404
|
+
$customHeight: customHeight,
|
|
25405
|
+
$extraStyles: extraStyles,
|
|
25406
|
+
"data-qa": dataQa || labelTextWhenNoError,
|
|
25407
|
+
required: isRequired,
|
|
25408
|
+
resize: resize,
|
|
25409
|
+
rows: rows,
|
|
25410
|
+
cols: cols,
|
|
25411
|
+
placeholder: placeholder,
|
|
25412
|
+
maxLength: maxLength
|
|
25413
|
+
}, props))), showFieldErrorRow && /*#__PURE__*/React__default.createElement(Stack, {
|
|
25414
|
+
direction: "row",
|
|
25415
|
+
justify: "space-between",
|
|
25416
|
+
"aria-live": "polite",
|
|
25417
|
+
"aria-atomic": true
|
|
25418
|
+
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25419
|
+
color: ERROR_COLOR,
|
|
25420
|
+
variant: errorTextVariant,
|
|
25421
|
+
weight: themeValues.fontWeight,
|
|
25422
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }\n ".concat(errorFieldExtraStyles, ";"),
|
|
25423
|
+
id: createIdFromString(labelTextWhenNoError, "error message")
|
|
25424
|
+
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
25425
|
+
extraStyles: "height: ".concat(themeValues.lineHeight, "; ").concat(errorFieldExtraStyles, ";")
|
|
25426
|
+
})));
|
|
25427
|
+
};
|
|
25428
|
+
var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$n, "default");
|
|
25429
|
+
|
|
25289
25430
|
var fontSize$7 = {
|
|
25290
25431
|
"default": "1rem",
|
|
25291
25432
|
radio: "1.0625rem"
|
|
@@ -25564,7 +25705,7 @@ var fallbackValues$r = {
|
|
|
25564
25705
|
fontSize: fontSize$8
|
|
25565
25706
|
};
|
|
25566
25707
|
|
|
25567
|
-
var _excluded$
|
|
25708
|
+
var _excluded$E = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25568
25709
|
var Heading = function Heading(_ref) {
|
|
25569
25710
|
var themeValues = _ref.themeValues,
|
|
25570
25711
|
_ref$weight = _ref.weight,
|
|
@@ -25583,7 +25724,7 @@ var Heading = function Heading(_ref) {
|
|
|
25583
25724
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
25584
25725
|
dataQa = _ref.dataQa,
|
|
25585
25726
|
children = _ref.children,
|
|
25586
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25727
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
25587
25728
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
25588
25729
|
variant: variant,
|
|
25589
25730
|
as: as,
|
|
@@ -25863,11 +26004,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
25863
26004
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
25864
26005
|
};
|
|
25865
26006
|
|
|
25866
|
-
var _excluded$
|
|
26007
|
+
var _excluded$F = ["version"];
|
|
25867
26008
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
25868
26009
|
var _ref$version = _ref.version,
|
|
25869
26010
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
25870
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26011
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
25871
26012
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
25872
26013
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
25873
26014
|
};
|
|
@@ -25945,7 +26086,7 @@ var Loading = function Loading() {
|
|
|
25945
26086
|
})))));
|
|
25946
26087
|
};
|
|
25947
26088
|
|
|
25948
|
-
var _excluded$
|
|
26089
|
+
var _excluded$G = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
25949
26090
|
var NavFooter = function NavFooter(_ref) {
|
|
25950
26091
|
var leftContent = _ref.leftContent,
|
|
25951
26092
|
rightContent = _ref.rightContent,
|
|
@@ -25960,7 +26101,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
25960
26101
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
25961
26102
|
isMobile = _ref.isMobile,
|
|
25962
26103
|
footerWidth = _ref.footerWidth,
|
|
25963
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26104
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
25964
26105
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
25965
26106
|
padding: footerPadding,
|
|
25966
26107
|
background: backgroundColor,
|
|
@@ -25991,7 +26132,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
25991
26132
|
}, rightContent)))))));
|
|
25992
26133
|
};
|
|
25993
26134
|
|
|
25994
|
-
var _excluded$
|
|
26135
|
+
var _excluded$H = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
25995
26136
|
var NavHeader = function NavHeader(_ref) {
|
|
25996
26137
|
var leftContent = _ref.leftContent,
|
|
25997
26138
|
rightContent = _ref.rightContent,
|
|
@@ -26000,7 +26141,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26000
26141
|
isMobile = _ref.isMobile,
|
|
26001
26142
|
backgroundColor = _ref.backgroundColor,
|
|
26002
26143
|
headerWidth = _ref.headerWidth,
|
|
26003
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26144
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
26004
26145
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26005
26146
|
padding: "0 16px 4px",
|
|
26006
26147
|
background: backgroundColor,
|
|
@@ -37860,7 +38001,7 @@ var LoadingPill = styled__default.span.withConfig({
|
|
|
37860
38001
|
return backgroundColor;
|
|
37861
38002
|
}, shineFrames);
|
|
37862
38003
|
|
|
37863
|
-
var _excluded$
|
|
38004
|
+
var _excluded$I = ["minWidth", "maxWidth", "exactWidth", "height", "margin", "backgroundColor", "foregroundColor"];
|
|
37864
38005
|
var LoadingLine = function LoadingLine(_ref) {
|
|
37865
38006
|
var minWidth = _ref.minWidth,
|
|
37866
38007
|
maxWidth = _ref.maxWidth,
|
|
@@ -37874,7 +38015,7 @@ var LoadingLine = function LoadingLine(_ref) {
|
|
|
37874
38015
|
backgroundColor = _ref$backgroundColor === void 0 ? SEASHELL_WHITE : _ref$backgroundColor,
|
|
37875
38016
|
_ref$foregroundColor = _ref.foregroundColor,
|
|
37876
38017
|
foregroundColor = _ref$foregroundColor === void 0 ? ALABASTER_WHITE : _ref$foregroundColor,
|
|
37877
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38018
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
37878
38019
|
var calculatedWidth = Math.floor(Math.random() * (parseInt(maxWidth) - parseInt(minWidth) + 1) + parseInt(minWidth));
|
|
37879
38020
|
return /*#__PURE__*/React__default.createElement(LoadingPill, _extends({
|
|
37880
38021
|
"aria-label": "loading",
|
|
@@ -43951,11 +44092,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
43951
44092
|
};
|
|
43952
44093
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
43953
44094
|
|
|
43954
|
-
var _excluded$
|
|
44095
|
+
var _excluded$J = ["version"];
|
|
43955
44096
|
var Modal$3 = function Modal(_ref) {
|
|
43956
44097
|
var _ref$version = _ref.version,
|
|
43957
44098
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
43958
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
44099
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
43959
44100
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
43960
44101
|
return /*#__PURE__*/React__default.createElement(ModalControl, rest);
|
|
43961
44102
|
};
|
|
@@ -46185,7 +46326,7 @@ var fallbackValues$Q = {
|
|
|
46185
46326
|
labeledAmountTotal: labeledAmountTotal
|
|
46186
46327
|
};
|
|
46187
46328
|
|
|
46188
|
-
var _excluded$
|
|
46329
|
+
var _excluded$K = ["amount"],
|
|
46189
46330
|
_excluded2$1 = ["amount"];
|
|
46190
46331
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
46191
46332
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -46428,7 +46569,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
46428
46569
|
return fee.amount > 0;
|
|
46429
46570
|
}).map(function (_ref5) {
|
|
46430
46571
|
var amount = _ref5.amount,
|
|
46431
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
46572
|
+
rest = _objectWithoutProperties(_ref5, _excluded$K);
|
|
46432
46573
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
46433
46574
|
amount: displayCurrency(amount)
|
|
46434
46575
|
});
|
|
@@ -46865,11 +47006,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
46865
47006
|
}, errorMessage))))));
|
|
46866
47007
|
};
|
|
46867
47008
|
|
|
46868
|
-
var _excluded$
|
|
47009
|
+
var _excluded$L = ["version"];
|
|
46869
47010
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
46870
47011
|
var _ref$version = _ref.version,
|
|
46871
47012
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46872
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47013
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
46873
47014
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
46874
47015
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
46875
47016
|
};
|
|
@@ -47677,7 +47818,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
47677
47818
|
}, section.content))));
|
|
47678
47819
|
};
|
|
47679
47820
|
|
|
47680
|
-
var _excluded$
|
|
47821
|
+
var _excluded$M = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
47681
47822
|
|
|
47682
47823
|
/**
|
|
47683
47824
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -47727,7 +47868,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
47727
47868
|
_ref$groupedSections = _ref.groupedSections,
|
|
47728
47869
|
groupedSections = _ref$groupedSections === void 0 ? [] : _ref$groupedSections,
|
|
47729
47870
|
borderOverride = _ref.borderOverride,
|
|
47730
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47871
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
47731
47872
|
var _useState = React.useState(null),
|
|
47732
47873
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47733
47874
|
focused = _useState2[0],
|
|
@@ -48422,7 +48563,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
48422
48563
|
};
|
|
48423
48564
|
var Timeout$1 = withWindowSize(Timeout);
|
|
48424
48565
|
|
|
48425
|
-
var _excluded$
|
|
48566
|
+
var _excluded$N = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
48426
48567
|
var VARIANTS = {
|
|
48427
48568
|
SUCCESS: "success",
|
|
48428
48569
|
ERROR: "error"
|
|
@@ -48451,7 +48592,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
48451
48592
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
48452
48593
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
48453
48594
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
48454
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48595
|
+
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
48455
48596
|
var screenReaderMessageRef = React.useRef();
|
|
48456
48597
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
48457
48598
|
React.useEffect(function () {
|
|
@@ -48634,7 +48775,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
|
48634
48775
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
48635
48776
|
});
|
|
48636
48777
|
|
|
48637
|
-
var _excluded$
|
|
48778
|
+
var _excluded$O = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
48638
48779
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
48639
48780
|
var id = _ref.id,
|
|
48640
48781
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -48650,7 +48791,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
48650
48791
|
hoverStyles = _ref.hoverStyles,
|
|
48651
48792
|
activeStyles = _ref.activeStyles,
|
|
48652
48793
|
extraStyles = _ref.extraStyles,
|
|
48653
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48794
|
+
rest = _objectWithoutProperties(_ref, _excluded$O);
|
|
48654
48795
|
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
48655
48796
|
id: id,
|
|
48656
48797
|
role: "menuItem",
|
|
@@ -48889,7 +49030,7 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
48889
49030
|
});
|
|
48890
49031
|
});
|
|
48891
49032
|
|
|
48892
|
-
var _excluded$
|
|
49033
|
+
var _excluded$P = ["width", "height", "color"];
|
|
48893
49034
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
48894
49035
|
var _ref$width = _ref.width,
|
|
48895
49036
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -48897,7 +49038,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
48897
49038
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
48898
49039
|
_ref$color = _ref.color,
|
|
48899
49040
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
48900
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
49041
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
48901
49042
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
48902
49043
|
width: width,
|
|
48903
49044
|
height: height,
|
|
@@ -49044,7 +49185,7 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
49044
49185
|
}));
|
|
49045
49186
|
};
|
|
49046
49187
|
|
|
49047
|
-
var _excluded$
|
|
49188
|
+
var _excluded$Q = ["width", "height", "color"];
|
|
49048
49189
|
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
49049
49190
|
var _ref$width = _ref.width,
|
|
49050
49191
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -49052,7 +49193,7 @@ var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
|
49052
49193
|
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
49053
49194
|
_ref$color = _ref.color,
|
|
49054
49195
|
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
49055
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
49196
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
49056
49197
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
49057
49198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49058
49199
|
width: width,
|
|
@@ -49748,7 +49889,7 @@ var fallbackValues$11 = {
|
|
|
49748
49889
|
justifyContent: justifyContent
|
|
49749
49890
|
};
|
|
49750
49891
|
|
|
49751
|
-
var _excluded$
|
|
49892
|
+
var _excluded$R = ["variant", "imageUrl", "isMobile", "theme", "extraStyles"],
|
|
49752
49893
|
_excluded2$2 = ["theme", "isMobile"],
|
|
49753
49894
|
_excluded3 = ["theme", "isMobile"],
|
|
49754
49895
|
_excluded4 = ["theme", "isMobile"];
|
|
@@ -49771,7 +49912,7 @@ var HeroContainer = styled__default(function (_ref2) {
|
|
|
49771
49912
|
isMobile = _ref2.isMobile,
|
|
49772
49913
|
theme = _ref2.theme,
|
|
49773
49914
|
extraStyles = _ref2.extraStyles,
|
|
49774
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
49915
|
+
props = _objectWithoutProperties(_ref2, _excluded$R);
|
|
49775
49916
|
return /*#__PURE__*/React__default.createElement(Box, props);
|
|
49776
49917
|
}).withConfig({
|
|
49777
49918
|
displayName: "HeroImagestyled__HeroContainer",
|
|
@@ -50499,6 +50640,7 @@ exports.FormInput = FormInput$1;
|
|
|
50499
50640
|
exports.FormInputColumn = FormInputColumn;
|
|
50500
50641
|
exports.FormInputRow = FormInputRow;
|
|
50501
50642
|
exports.FormSelect = FormSelect$1;
|
|
50643
|
+
exports.FormTextarea = FormTextarea$1;
|
|
50502
50644
|
exports.FormattedAddress = FormattedAddress$1;
|
|
50503
50645
|
exports.FormattedBankAccount = FormattedBankAccount$1;
|
|
50504
50646
|
exports.FormattedCreditCard = FormattedCreditCard$1;
|