@thecb/components 9.0.4-beta.4 → 9.0.4
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 +8 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/alert/Alert.js +1 -1
- package/src/components/atoms/form-layouts/FormInput.js +25 -25
- package/src/components/molecules/partial-amount-form/PartialAmountForm.stories.js +0 -146
package/dist/index.cjs.js
CHANGED
|
@@ -18824,11 +18824,10 @@ var Alert = function Alert(_ref) {
|
|
|
18824
18824
|
borderColor: themeValues.border,
|
|
18825
18825
|
borderSize: noBorder ? "0px" : "1px",
|
|
18826
18826
|
boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
|
|
18827
|
-
extraStyles: extraStyles
|
|
18827
|
+
extraStyles: extraStyles,
|
|
18828
|
+
"aria-live": ariaLive
|
|
18828
18829
|
}, ariaAtomic !== null ? {
|
|
18829
18830
|
"aria-atomic": ariaAtomic
|
|
18830
|
-
} : {}, ariaLive !== null ? {
|
|
18831
|
-
"aria-live": ariaLive
|
|
18832
18831
|
} : {}, ariaRole !== null ? {
|
|
18833
18832
|
role: ariaRole
|
|
18834
18833
|
} : {}), maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
|
|
@@ -26078,23 +26077,22 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26078
26077
|
$extraStyles: extraStyles,
|
|
26079
26078
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26080
26079
|
autoComplete: autocompleteValue
|
|
26081
|
-
}, props))), /*#__PURE__*/React__default.createElement(
|
|
26082
|
-
role: "status",
|
|
26083
|
-
"aria-atomic": true
|
|
26084
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
26080
|
+
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26085
26081
|
direction: "row",
|
|
26086
|
-
justify: "space-between"
|
|
26082
|
+
justify: "space-between",
|
|
26083
|
+
"aria-live": "polite",
|
|
26084
|
+
"aria-atomic": true
|
|
26087
26085
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26088
26086
|
color: ERROR_COLOR,
|
|
26089
26087
|
variant: "pXS",
|
|
26090
26088
|
weight: themeValues.fontWeight,
|
|
26091
|
-
extraStyles: "word-break: break-word;\n
|
|
26089
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
26092
26090
|
id: createIdFromString(labelTextWhenNoError, "error message")
|
|
26093
26091
|
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
26094
26092
|
extraStyles: "height: ".concat(themeValues.lineHeight, ";")
|
|
26095
26093
|
}), !isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
|
|
26096
26094
|
padding: "0 0 0 auto"
|
|
26097
|
-
}, decorator)))
|
|
26095
|
+
}, decorator)));
|
|
26098
26096
|
};
|
|
26099
26097
|
|
|
26100
26098
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|