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