@7shifts/sous-chef 3.46.0 → 3.47.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.
@@ -7159,17 +7159,22 @@ var TextComponent = function TextComponent(_ref, ref) {
7159
7159
  color = _ref.color,
7160
7160
  testId = _ref.testId,
7161
7161
  textWrap = _ref.textWrap,
7162
- positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$2v);
7163
- var positionStyles = usePositionStyles(positionProps);
7164
- var elementProps = {
7162
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2v);
7163
+ var _getPositionProps = getPositionProps(rest),
7164
+ positionProps = _getPositionProps.positionProps,
7165
+ otherProps = _getPositionProps.otherProps;
7166
+ var _getDataProps = getDataProps(otherProps),
7167
+ dataProps = _getDataProps.dataProps;
7168
+ var elementProps = _extends({
7165
7169
  style: _extends({
7166
7170
  color: getColor(color),
7167
7171
  textWrap: textWrap
7168
- }, positionStyles),
7172
+ }, positionProps),
7169
7173
  className: classnames(styles$p['text'], (_classnames = {}, _classnames[styles$p['text--bold']] = emphasis === null || emphasis === void 0 ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD), _classnames[styles$p['text--italic']] = emphasis === null || emphasis === void 0 ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC), _classnames[styles$p['text--underline']] = emphasis === null || emphasis === void 0 ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE), _classnames[styles$p['text--monospace']] = emphasis === null || emphasis === void 0 ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE), _classnames[styles$p['text--align-left']] = alignment === ALIGNMENTS.LEFT, _classnames[styles$p['text--align-right']] = alignment === ALIGNMENTS.RIGHT, _classnames[styles$p['text--align-center']] = alignment === ALIGNMENTS.CENTER, _classnames[styles$p['text--align-justify']] = alignment === ALIGNMENTS.JUSTIFY, _classnames[styles$p['text__body']] = as === TEXT_TYPES.BODY, _classnames[styles$p['text__insight']] = as === TEXT_TYPES.INSIGHT, _classnames[styles$p['text__caption']] = as === TEXT_TYPES.CAPTION, _classnames)),
7170
- 'data-testid': testId,
7174
+ 'data-testid': testId
7175
+ }, dataProps, {
7171
7176
  ref: ref
7172
- };
7177
+ });
7173
7178
  var pTypes = [TEXT_TYPES.BODY, TEXT_TYPES.CAPTION, TEXT_TYPES.INSIGHT];
7174
7179
  var element = pTypes.includes(as) ? 'p' : as;
7175
7180
  return React__default.createElement(element, elementProps, children);