@7shifts/sous-chef 3.47.0 → 3.47.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.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7163,13 +7163,14 @@ var TextComponent = function TextComponent(_ref, ref) {
|
|
|
7163
7163
|
var _getPositionProps = getPositionProps(rest),
|
|
7164
7164
|
positionProps = _getPositionProps.positionProps,
|
|
7165
7165
|
otherProps = _getPositionProps.otherProps;
|
|
7166
|
+
var positionStyles = usePositionStyles(positionProps);
|
|
7166
7167
|
var _getDataProps = getDataProps(otherProps),
|
|
7167
7168
|
dataProps = _getDataProps.dataProps;
|
|
7168
7169
|
var elementProps = _extends({
|
|
7169
7170
|
style: _extends({
|
|
7170
7171
|
color: getColor(color),
|
|
7171
7172
|
textWrap: textWrap
|
|
7172
|
-
},
|
|
7173
|
+
}, positionStyles),
|
|
7173
7174
|
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)),
|
|
7174
7175
|
'data-testid': testId
|
|
7175
7176
|
}, dataProps, {
|