@thecb/components 11.3.5 → 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 +168 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.esm.js +168 -29
- 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/dist/index.cjs.js
CHANGED
|
@@ -25288,6 +25288,145 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
25288
25288
|
};
|
|
25289
25289
|
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$n, "default");
|
|
25290
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
|
+
|
|
25291
25430
|
var fontSize$7 = {
|
|
25292
25431
|
"default": "1rem",
|
|
25293
25432
|
radio: "1.0625rem"
|
|
@@ -25566,7 +25705,7 @@ var fallbackValues$r = {
|
|
|
25566
25705
|
fontSize: fontSize$8
|
|
25567
25706
|
};
|
|
25568
25707
|
|
|
25569
|
-
var _excluded$
|
|
25708
|
+
var _excluded$E = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25570
25709
|
var Heading = function Heading(_ref) {
|
|
25571
25710
|
var themeValues = _ref.themeValues,
|
|
25572
25711
|
_ref$weight = _ref.weight,
|
|
@@ -25585,7 +25724,7 @@ var Heading = function Heading(_ref) {
|
|
|
25585
25724
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
25586
25725
|
dataQa = _ref.dataQa,
|
|
25587
25726
|
children = _ref.children,
|
|
25588
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25727
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
25589
25728
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
25590
25729
|
variant: variant,
|
|
25591
25730
|
as: as,
|
|
@@ -25865,11 +26004,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
25865
26004
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
25866
26005
|
};
|
|
25867
26006
|
|
|
25868
|
-
var _excluded$
|
|
26007
|
+
var _excluded$F = ["version"];
|
|
25869
26008
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
25870
26009
|
var _ref$version = _ref.version,
|
|
25871
26010
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
25872
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26011
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
25873
26012
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
25874
26013
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
25875
26014
|
};
|
|
@@ -25947,7 +26086,7 @@ var Loading = function Loading() {
|
|
|
25947
26086
|
})))));
|
|
25948
26087
|
};
|
|
25949
26088
|
|
|
25950
|
-
var _excluded$
|
|
26089
|
+
var _excluded$G = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
25951
26090
|
var NavFooter = function NavFooter(_ref) {
|
|
25952
26091
|
var leftContent = _ref.leftContent,
|
|
25953
26092
|
rightContent = _ref.rightContent,
|
|
@@ -25962,7 +26101,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
25962
26101
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
25963
26102
|
isMobile = _ref.isMobile,
|
|
25964
26103
|
footerWidth = _ref.footerWidth,
|
|
25965
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26104
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
25966
26105
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
25967
26106
|
padding: footerPadding,
|
|
25968
26107
|
background: backgroundColor,
|
|
@@ -25993,7 +26132,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
25993
26132
|
}, rightContent)))))));
|
|
25994
26133
|
};
|
|
25995
26134
|
|
|
25996
|
-
var _excluded$
|
|
26135
|
+
var _excluded$H = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
25997
26136
|
var NavHeader = function NavHeader(_ref) {
|
|
25998
26137
|
var leftContent = _ref.leftContent,
|
|
25999
26138
|
rightContent = _ref.rightContent,
|
|
@@ -26002,7 +26141,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
26002
26141
|
isMobile = _ref.isMobile,
|
|
26003
26142
|
backgroundColor = _ref.backgroundColor,
|
|
26004
26143
|
headerWidth = _ref.headerWidth,
|
|
26005
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26144
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
26006
26145
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26007
26146
|
padding: "0 16px 4px",
|
|
26008
26147
|
background: backgroundColor,
|
|
@@ -37862,7 +38001,7 @@ var LoadingPill = styled__default.span.withConfig({
|
|
|
37862
38001
|
return backgroundColor;
|
|
37863
38002
|
}, shineFrames);
|
|
37864
38003
|
|
|
37865
|
-
var _excluded$
|
|
38004
|
+
var _excluded$I = ["minWidth", "maxWidth", "exactWidth", "height", "margin", "backgroundColor", "foregroundColor"];
|
|
37866
38005
|
var LoadingLine = function LoadingLine(_ref) {
|
|
37867
38006
|
var minWidth = _ref.minWidth,
|
|
37868
38007
|
maxWidth = _ref.maxWidth,
|
|
@@ -37876,7 +38015,7 @@ var LoadingLine = function LoadingLine(_ref) {
|
|
|
37876
38015
|
backgroundColor = _ref$backgroundColor === void 0 ? SEASHELL_WHITE : _ref$backgroundColor,
|
|
37877
38016
|
_ref$foregroundColor = _ref.foregroundColor,
|
|
37878
38017
|
foregroundColor = _ref$foregroundColor === void 0 ? ALABASTER_WHITE : _ref$foregroundColor,
|
|
37879
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38018
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
37880
38019
|
var calculatedWidth = Math.floor(Math.random() * (parseInt(maxWidth) - parseInt(minWidth) + 1) + parseInt(minWidth));
|
|
37881
38020
|
return /*#__PURE__*/React__default.createElement(LoadingPill, _extends({
|
|
37882
38021
|
"aria-label": "loading",
|
|
@@ -43953,11 +44092,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
43953
44092
|
};
|
|
43954
44093
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
43955
44094
|
|
|
43956
|
-
var _excluded$
|
|
44095
|
+
var _excluded$J = ["version"];
|
|
43957
44096
|
var Modal$3 = function Modal(_ref) {
|
|
43958
44097
|
var _ref$version = _ref.version,
|
|
43959
44098
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
43960
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
44099
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
43961
44100
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
43962
44101
|
return /*#__PURE__*/React__default.createElement(ModalControl, rest);
|
|
43963
44102
|
};
|
|
@@ -46187,7 +46326,7 @@ var fallbackValues$Q = {
|
|
|
46187
46326
|
labeledAmountTotal: labeledAmountTotal
|
|
46188
46327
|
};
|
|
46189
46328
|
|
|
46190
|
-
var _excluded$
|
|
46329
|
+
var _excluded$K = ["amount"],
|
|
46191
46330
|
_excluded2$1 = ["amount"];
|
|
46192
46331
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
46193
46332
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -46430,7 +46569,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
46430
46569
|
return fee.amount > 0;
|
|
46431
46570
|
}).map(function (_ref5) {
|
|
46432
46571
|
var amount = _ref5.amount,
|
|
46433
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
46572
|
+
rest = _objectWithoutProperties(_ref5, _excluded$K);
|
|
46434
46573
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
46435
46574
|
amount: displayCurrency(amount)
|
|
46436
46575
|
});
|
|
@@ -46867,11 +47006,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
46867
47006
|
}, errorMessage))))));
|
|
46868
47007
|
};
|
|
46869
47008
|
|
|
46870
|
-
var _excluded$
|
|
47009
|
+
var _excluded$L = ["version"];
|
|
46871
47010
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
46872
47011
|
var _ref$version = _ref.version,
|
|
46873
47012
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
46874
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47013
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
46875
47014
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
46876
47015
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
46877
47016
|
};
|
|
@@ -47679,7 +47818,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
47679
47818
|
}, section.content))));
|
|
47680
47819
|
};
|
|
47681
47820
|
|
|
47682
|
-
var _excluded$
|
|
47821
|
+
var _excluded$M = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
47683
47822
|
|
|
47684
47823
|
/**
|
|
47685
47824
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -47729,7 +47868,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
47729
47868
|
_ref$groupedSections = _ref.groupedSections,
|
|
47730
47869
|
groupedSections = _ref$groupedSections === void 0 ? [] : _ref$groupedSections,
|
|
47731
47870
|
borderOverride = _ref.borderOverride,
|
|
47732
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47871
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
47733
47872
|
var _useState = React.useState(null),
|
|
47734
47873
|
_useState2 = _slicedToArray(_useState, 2),
|
|
47735
47874
|
focused = _useState2[0],
|
|
@@ -48424,7 +48563,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
48424
48563
|
};
|
|
48425
48564
|
var Timeout$1 = withWindowSize(Timeout);
|
|
48426
48565
|
|
|
48427
|
-
var _excluded$
|
|
48566
|
+
var _excluded$N = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
48428
48567
|
var VARIANTS = {
|
|
48429
48568
|
SUCCESS: "success",
|
|
48430
48569
|
ERROR: "error"
|
|
@@ -48453,7 +48592,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
48453
48592
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
48454
48593
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
48455
48594
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
48456
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48595
|
+
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
48457
48596
|
var screenReaderMessageRef = React.useRef();
|
|
48458
48597
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
48459
48598
|
React.useEffect(function () {
|
|
@@ -48636,7 +48775,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
|
48636
48775
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
48637
48776
|
});
|
|
48638
48777
|
|
|
48639
|
-
var _excluded$
|
|
48778
|
+
var _excluded$O = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
48640
48779
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
48641
48780
|
var id = _ref.id,
|
|
48642
48781
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -48652,7 +48791,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
48652
48791
|
hoverStyles = _ref.hoverStyles,
|
|
48653
48792
|
activeStyles = _ref.activeStyles,
|
|
48654
48793
|
extraStyles = _ref.extraStyles,
|
|
48655
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48794
|
+
rest = _objectWithoutProperties(_ref, _excluded$O);
|
|
48656
48795
|
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
48657
48796
|
id: id,
|
|
48658
48797
|
role: "menuItem",
|
|
@@ -48891,7 +49030,7 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
48891
49030
|
});
|
|
48892
49031
|
});
|
|
48893
49032
|
|
|
48894
|
-
var _excluded$
|
|
49033
|
+
var _excluded$P = ["width", "height", "color"];
|
|
48895
49034
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
48896
49035
|
var _ref$width = _ref.width,
|
|
48897
49036
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -48899,7 +49038,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
48899
49038
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
48900
49039
|
_ref$color = _ref.color,
|
|
48901
49040
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
48902
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
49041
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
48903
49042
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
48904
49043
|
width: width,
|
|
48905
49044
|
height: height,
|
|
@@ -49046,7 +49185,7 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
49046
49185
|
}));
|
|
49047
49186
|
};
|
|
49048
49187
|
|
|
49049
|
-
var _excluded$
|
|
49188
|
+
var _excluded$Q = ["width", "height", "color"];
|
|
49050
49189
|
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
49051
49190
|
var _ref$width = _ref.width,
|
|
49052
49191
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -49054,7 +49193,7 @@ var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
|
49054
49193
|
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
49055
49194
|
_ref$color = _ref.color,
|
|
49056
49195
|
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
49057
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
49196
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
49058
49197
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
49059
49198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
49060
49199
|
width: width,
|
|
@@ -49750,7 +49889,7 @@ var fallbackValues$11 = {
|
|
|
49750
49889
|
justifyContent: justifyContent
|
|
49751
49890
|
};
|
|
49752
49891
|
|
|
49753
|
-
var _excluded$
|
|
49892
|
+
var _excluded$R = ["variant", "imageUrl", "isMobile", "theme", "extraStyles"],
|
|
49754
49893
|
_excluded2$2 = ["theme", "isMobile"],
|
|
49755
49894
|
_excluded3 = ["theme", "isMobile"],
|
|
49756
49895
|
_excluded4 = ["theme", "isMobile"];
|
|
@@ -49773,7 +49912,7 @@ var HeroContainer = styled__default(function (_ref2) {
|
|
|
49773
49912
|
isMobile = _ref2.isMobile,
|
|
49774
49913
|
theme = _ref2.theme,
|
|
49775
49914
|
extraStyles = _ref2.extraStyles,
|
|
49776
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
49915
|
+
props = _objectWithoutProperties(_ref2, _excluded$R);
|
|
49777
49916
|
return /*#__PURE__*/React__default.createElement(Box, props);
|
|
49778
49917
|
}).withConfig({
|
|
49779
49918
|
displayName: "HeroImagestyled__HeroContainer",
|
|
@@ -50501,6 +50640,7 @@ exports.FormInput = FormInput$1;
|
|
|
50501
50640
|
exports.FormInputColumn = FormInputColumn;
|
|
50502
50641
|
exports.FormInputRow = FormInputRow;
|
|
50503
50642
|
exports.FormSelect = FormSelect$1;
|
|
50643
|
+
exports.FormTextarea = FormTextarea$1;
|
|
50504
50644
|
exports.FormattedAddress = FormattedAddress$1;
|
|
50505
50645
|
exports.FormattedBankAccount = FormattedBankAccount$1;
|
|
50506
50646
|
exports.FormattedCreditCard = FormattedCreditCard$1;
|