@thecb/components 11.10.4-beta.0 → 11.10.4-beta.1

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.esm.js CHANGED
@@ -25938,7 +25938,8 @@ var FormInput = function FormInput(_ref15) {
25938
25938
  minWidth: "100%"
25939
25939
  }, /*#__PURE__*/React__default.createElement(Cluster, {
25940
25940
  justify: "space-between",
25941
- align: "center"
25941
+ align: "center",
25942
+ overflow: true
25942
25943
  }, labelDisplayOverride ? labelDisplayOverride : /*#__PURE__*/React__default.createElement(Text$1, {
25943
25944
  as: "label",
25944
25945
  color: themeValues.labelColor,
@@ -25946,22 +25947,16 @@ var FormInput = function FormInput(_ref15) {
25946
25947
  fontWeight: themeValues.fontWeight,
25947
25948
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
25948
25949
  id: createIdFromString(labelTextWhenNoError)
25949
- }, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
25950
- variant: labelTextVariant,
25951
- color: themeValues.linkColor,
25952
- weight: themeValues.fontWeight,
25953
- hoverStyles: themeValues.hoverFocusStyles,
25954
- extraStyles: "text-decoration: underline; cursor: pointer; &:focus { outline-offset: -2px; }",
25955
- onClick: function onClick() {
25950
+ }, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25951
+ variant: "smallGhost",
25952
+ text: showPassword ? "Hide" : "Show",
25953
+ action: function action() {
25956
25954
  return setShowPassword(!showPassword);
25957
25955
  },
25958
- tabIndex: "0",
25959
25956
  "aria-label": showPassword ? "Hide Password" : "Show password",
25960
- "aria-live": "polite",
25961
- onKeyPress: function onKeyPress(e) {
25962
- return e.key === "Enter" && setShowPassword(!showPassword);
25963
- }
25964
- }, showPassword ? "Hide" : "Show"), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
25957
+ extraStyles: "margin: 0; min-width: auto;",
25958
+ textExtraStyles: "color: ".concat(themeValues.linkColor, ";")
25959
+ }), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
25965
25960
  padding: "0 0 0 auto"
25966
25961
  }, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
25967
25962
  padding: "0"