@trafilea/afrodita-components 6.33.4 → 6.33.5

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/build/index.d.ts CHANGED
@@ -3499,7 +3499,7 @@ interface BaseButtonProps {
3499
3499
  id?: string;
3500
3500
  }
3501
3501
 
3502
- declare type BaseProps = Pick<BaseButtonProps, 'disabled' | 'type' | 'onClick'>;
3502
+ declare type BaseProps = Pick<BaseButtonProps, 'disabled' | 'type' | 'onClick' | 'testId'>;
3503
3503
  interface TextButtonProps$1 extends BaseProps {
3504
3504
  text: string;
3505
3505
  LeadingIcon?: IconType;
@@ -3508,7 +3508,7 @@ interface TextButtonProps$1 extends BaseProps {
3508
3508
  size?: ComponentSize;
3509
3509
  uppercase?: boolean;
3510
3510
  }
3511
- declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, uppercase, onClick, }: TextButtonProps$1) => _emotion_react_jsx_runtime.JSX.Element;
3511
+ declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, uppercase, onClick, testId, }: TextButtonProps$1) => _emotion_react_jsx_runtime.JSX.Element;
3512
3512
 
3513
3513
  declare const Text: ({ variant, children, testId, asSpan, ...allProps }: TextProps) => _emotion_react_jsx_runtime.JSX.Element;
3514
3514
  declare type TextHeroProps = {
@@ -19956,10 +19956,10 @@ var getIconFill = function (theme, disabled, iconColor) {
19956
19956
  return theme.colors.shades['550'].color;
19957
19957
  };
19958
19958
  var TextButton = function (_a) {
19959
- var text = _a.text, LeadingIcon = _a.LeadingIcon, TrailingIcon = _a.TrailingIcon, iconColor = _a.iconColor, disabled = _a.disabled, type = _a.type, _b = _a.size, size = _b === void 0 ? ComponentSize.Medium : _b, _c = _a.uppercase, uppercase = _c === void 0 ? true : _c, onClick = _a.onClick;
19959
+ var text = _a.text, LeadingIcon = _a.LeadingIcon, TrailingIcon = _a.TrailingIcon, iconColor = _a.iconColor, disabled = _a.disabled, type = _a.type, _b = _a.size, size = _b === void 0 ? ComponentSize.Medium : _b, _c = _a.uppercase, uppercase = _c === void 0 ? true : _c, onClick = _a.onClick, testId = _a.testId;
19960
19960
  var theme = useTheme();
19961
19961
  var iconFill = getIconFill(theme, disabled, iconColor);
19962
- return (jsx(BaseButton, __assign$1({ renderLeading: withContainer(iconFill, true, LeadingIcon), renderTrailing: withContainer(iconFill, false, TrailingIcon), disabled: disabled, type: type, onClick: onClick, css: textButtonStyles(theme, size), uppercase: uppercase }, { children: text }), void 0));
19962
+ return (jsx(BaseButton, __assign$1({ renderLeading: withContainer(iconFill, true, LeadingIcon), renderTrailing: withContainer(iconFill, false, TrailingIcon), disabled: disabled, type: type, onClick: onClick, css: textButtonStyles(theme, size), uppercase: uppercase, testId: testId }, { children: text }), void 0));
19963
19963
  };
19964
19964
  var templateObject_1$q;
19965
19965
 
package/build/index.js CHANGED
@@ -19982,10 +19982,10 @@ var getIconFill = function (theme, disabled, iconColor) {
19982
19982
  return theme.colors.shades['550'].color;
19983
19983
  };
19984
19984
  var TextButton = function (_a) {
19985
- var text = _a.text, LeadingIcon = _a.LeadingIcon, TrailingIcon = _a.TrailingIcon, iconColor = _a.iconColor, disabled = _a.disabled, type = _a.type, _b = _a.size, size = _b === void 0 ? exports.ComponentSize.Medium : _b, _c = _a.uppercase, uppercase = _c === void 0 ? true : _c, onClick = _a.onClick;
19985
+ var text = _a.text, LeadingIcon = _a.LeadingIcon, TrailingIcon = _a.TrailingIcon, iconColor = _a.iconColor, disabled = _a.disabled, type = _a.type, _b = _a.size, size = _b === void 0 ? exports.ComponentSize.Medium : _b, _c = _a.uppercase, uppercase = _c === void 0 ? true : _c, onClick = _a.onClick, testId = _a.testId;
19986
19986
  var theme = useTheme();
19987
19987
  var iconFill = getIconFill(theme, disabled, iconColor);
19988
- return (jsx(BaseButton, __assign$1({ renderLeading: withContainer(iconFill, true, LeadingIcon), renderTrailing: withContainer(iconFill, false, TrailingIcon), disabled: disabled, type: type, onClick: onClick, css: textButtonStyles(theme, size), uppercase: uppercase }, { children: text }), void 0));
19988
+ return (jsx(BaseButton, __assign$1({ renderLeading: withContainer(iconFill, true, LeadingIcon), renderTrailing: withContainer(iconFill, false, TrailingIcon), disabled: disabled, type: type, onClick: onClick, css: textButtonStyles(theme, size), uppercase: uppercase, testId: testId }, { children: text }), void 0));
19989
19989
  };
19990
19990
  var templateObject_1$q;
19991
19991
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "6.33.4",
6
+ "version": "6.33.5",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",