@7shifts/sous-chef 3.73.1 → 3.75.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.
- package/dist/controls/ToolbarSelect/ToolbarSelect.d.ts +2 -2
- package/dist/index.css +13 -7
- package/dist/index.css.map +1 -1
- package/dist/index.js +25 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +25 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/typography/Text/constants.d.ts +1 -0
- package/dist/typography/Text/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7073,7 +7073,8 @@ var TEXT_TYPES = {
|
|
|
7073
7073
|
H3: 'h3',
|
|
7074
7074
|
H4: 'h4',
|
|
7075
7075
|
H5: 'h5',
|
|
7076
|
-
INSIGHT: 'insight'
|
|
7076
|
+
INSIGHT: 'insight',
|
|
7077
|
+
SPAN: 'span'
|
|
7077
7078
|
};
|
|
7078
7079
|
var FONT_EMPHASIS = {
|
|
7079
7080
|
BOLD: 'bold',
|
|
@@ -7090,7 +7091,7 @@ var ALIGNMENTS = {
|
|
|
7090
7091
|
JUSTIFY: 'justify'
|
|
7091
7092
|
};
|
|
7092
7093
|
|
|
7093
|
-
var styles$11 = {"text":"_6SgoN","text__body":"_SF95f","text__caption":"_HHohB","text__insight":"_xdhK0","text--bold":"_i2LHD","text--italic":"_NgSTT","text--underline":"_ouqVK","text--dotted-underline":"_zZ55-","text--monospace":"_Vi-V1","text--line-through":"_psV6T","text--align-left":"_tfSIf","text--align-right":"_AK1Nr","text--align-center":"_N-tR4","text--align-justify":"_LkMr0"};
|
|
7094
|
+
var styles$11 = {"text":"_6SgoN","text__body":"_SF95f","text__caption":"_HHohB","text__insight":"_xdhK0","text__span":"_yZbuO","text--bold":"_i2LHD","text--italic":"_NgSTT","text--underline":"_ouqVK","text--dotted-underline":"_zZ55-","text--monospace":"_Vi-V1","text--line-through":"_psV6T","text--align-left":"_tfSIf","text--align-right":"_AK1Nr","text--align-center":"_N-tR4","text--align-justify":"_LkMr0"};
|
|
7094
7095
|
|
|
7095
7096
|
var _excluded$o = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
7096
7097
|
var TextComponent = function TextComponent(_ref, ref) {
|
|
@@ -7115,7 +7116,7 @@ var TextComponent = function TextComponent(_ref, ref) {
|
|
|
7115
7116
|
color: getColor(color),
|
|
7116
7117
|
textWrap: textWrap
|
|
7117
7118
|
}, positionStyles),
|
|
7118
|
-
className: classnames__default["default"](styles$11['text'], (_classnames = {}, _classnames[styles$11['text--bold']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD), _classnames[styles$11['text--italic']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC), _classnames[styles$11['text--underline']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE), _classnames[styles$11['text--dotted-underline']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE), _classnames[styles$11['text--monospace']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE), _classnames[styles$11['text--line-through']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH), _classnames[styles$11['text--align-left']] = alignment === ALIGNMENTS.LEFT, _classnames[styles$11['text--align-right']] = alignment === ALIGNMENTS.RIGHT, _classnames[styles$11['text--align-center']] = alignment === ALIGNMENTS.CENTER, _classnames[styles$11['text--align-justify']] = alignment === ALIGNMENTS.JUSTIFY, _classnames[styles$11['text__body']] = as === TEXT_TYPES.BODY, _classnames[styles$11['text__insight']] = as === TEXT_TYPES.INSIGHT, _classnames[styles$11['text__caption']] = as === TEXT_TYPES.CAPTION, _classnames)),
|
|
7119
|
+
className: classnames__default["default"](styles$11['text'], (_classnames = {}, _classnames[styles$11['text--bold']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.BOLD), _classnames[styles$11['text--italic']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.ITALIC), _classnames[styles$11['text--underline']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.UNDERLINE), _classnames[styles$11['text--dotted-underline']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.DOTTED_UNDERLINE), _classnames[styles$11['text--monospace']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.MONOSPACE), _classnames[styles$11['text--line-through']] = emphasis == null ? void 0 : emphasis.includes(FONT_EMPHASIS.STRIKETHROUGH), _classnames[styles$11['text--align-left']] = alignment === ALIGNMENTS.LEFT, _classnames[styles$11['text--align-right']] = alignment === ALIGNMENTS.RIGHT, _classnames[styles$11['text--align-center']] = alignment === ALIGNMENTS.CENTER, _classnames[styles$11['text--align-justify']] = alignment === ALIGNMENTS.JUSTIFY, _classnames[styles$11['text__body']] = as === TEXT_TYPES.BODY, _classnames[styles$11['text__insight']] = as === TEXT_TYPES.INSIGHT, _classnames[styles$11['text__caption']] = as === TEXT_TYPES.CAPTION, _classnames[styles$11['text__span']] = as === TEXT_TYPES.SPAN, _classnames)),
|
|
7119
7120
|
'data-testid': testId
|
|
7120
7121
|
}, dataProps, {
|
|
7121
7122
|
ref: ref
|
|
@@ -10231,11 +10232,20 @@ function CustomMenu(_ref) {
|
|
|
10231
10232
|
size: "medium"
|
|
10232
10233
|
}), button || __('createOption')));
|
|
10233
10234
|
}
|
|
10234
|
-
|
|
10235
|
-
|
|
10235
|
+
// Assuming the button will be the Button component
|
|
10236
|
+
var overrideProps = {};
|
|
10237
|
+
if (!button.props.onClick) {
|
|
10238
|
+
overrideProps.onClick = function () {
|
|
10236
10239
|
return setShowFooter(true);
|
|
10237
|
-
}
|
|
10238
|
-
}
|
|
10240
|
+
};
|
|
10241
|
+
}
|
|
10242
|
+
if (!button.props.size) {
|
|
10243
|
+
overrideProps.size = "full-width";
|
|
10244
|
+
}
|
|
10245
|
+
if (!button.props.theme) {
|
|
10246
|
+
overrideProps.theme = "link-primary";
|
|
10247
|
+
}
|
|
10248
|
+
return React__default["default"].cloneElement(button, overrideProps);
|
|
10239
10249
|
};
|
|
10240
10250
|
var onCreateButton = function onCreateButton() {
|
|
10241
10251
|
if (textFieldRef.current && textFieldRef.current.value.trim() !== '' && onCreate) {
|
|
@@ -10291,7 +10301,9 @@ function CustomMenu(_ref) {
|
|
|
10291
10301
|
autoFocus: true,
|
|
10292
10302
|
defaultValue: inputDefaultValue
|
|
10293
10303
|
}), React__default["default"].createElement(Button, {
|
|
10294
|
-
onClick:
|
|
10304
|
+
onClick: function onClick() {
|
|
10305
|
+
onCreateButton();
|
|
10306
|
+
},
|
|
10295
10307
|
onKeyDown: function onKeyDown(e) {
|
|
10296
10308
|
e.stopPropagation();
|
|
10297
10309
|
}
|
|
@@ -10433,7 +10445,9 @@ var ToolbarSelect = function ToolbarSelect(_ref) {
|
|
|
10433
10445
|
menuShouldScrollIntoView = _ref.menuShouldScrollIntoView,
|
|
10434
10446
|
disabled = _ref.disabled,
|
|
10435
10447
|
prefix = _ref.prefix,
|
|
10436
|
-
testId = _ref.testId
|
|
10448
|
+
testId = _ref.testId,
|
|
10449
|
+
creatableButton = _ref.creatableButton,
|
|
10450
|
+
onCreate = _ref.onCreate;
|
|
10437
10451
|
return React__default["default"].createElement(SelectField, {
|
|
10438
10452
|
name: name,
|
|
10439
10453
|
value: value,
|
|
@@ -10446,6 +10460,8 @@ var ToolbarSelect = function ToolbarSelect(_ref) {
|
|
|
10446
10460
|
disabled: disabled,
|
|
10447
10461
|
prefix: prefix,
|
|
10448
10462
|
testId: testId,
|
|
10463
|
+
creatableButton: creatableButton,
|
|
10464
|
+
onCreate: onCreate,
|
|
10449
10465
|
asToolbarFilter: true
|
|
10450
10466
|
});
|
|
10451
10467
|
};
|