@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.modern.js
CHANGED
|
@@ -7220,7 +7220,8 @@ const TEXT_TYPES = {
|
|
|
7220
7220
|
H3: 'h3',
|
|
7221
7221
|
H4: 'h4',
|
|
7222
7222
|
H5: 'h5',
|
|
7223
|
-
INSIGHT: 'insight'
|
|
7223
|
+
INSIGHT: 'insight',
|
|
7224
|
+
SPAN: 'span'
|
|
7224
7225
|
};
|
|
7225
7226
|
const FONT_EMPHASIS = {
|
|
7226
7227
|
BOLD: 'bold',
|
|
@@ -7237,7 +7238,7 @@ const ALIGNMENTS = {
|
|
|
7237
7238
|
JUSTIFY: 'justify'
|
|
7238
7239
|
};
|
|
7239
7240
|
|
|
7240
|
-
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"};
|
|
7241
|
+
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"};
|
|
7241
7242
|
|
|
7242
7243
|
const _excluded$o = ["children", "as", "emphasis", "alignment", "color", "testId", "textWrap"];
|
|
7243
7244
|
const TextComponent = (_ref, ref) => {
|
|
@@ -7277,7 +7278,8 @@ const TextComponent = (_ref, ref) => {
|
|
|
7277
7278
|
[styles$11['text--align-justify']]: alignment === ALIGNMENTS.JUSTIFY,
|
|
7278
7279
|
[styles$11['text__body']]: as === TEXT_TYPES.BODY,
|
|
7279
7280
|
[styles$11['text__insight']]: as === TEXT_TYPES.INSIGHT,
|
|
7280
|
-
[styles$11['text__caption']]: as === TEXT_TYPES.CAPTION
|
|
7281
|
+
[styles$11['text__caption']]: as === TEXT_TYPES.CAPTION,
|
|
7282
|
+
[styles$11['text__span']]: as === TEXT_TYPES.SPAN
|
|
7281
7283
|
}),
|
|
7282
7284
|
'data-testid': testId
|
|
7283
7285
|
}, dataProps, {
|
|
@@ -10420,9 +10422,18 @@ function CustomMenu(_ref) {
|
|
|
10420
10422
|
size: "medium"
|
|
10421
10423
|
}), button || __('createOption')));
|
|
10422
10424
|
}
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10425
|
+
// Assuming the button will be the Button component
|
|
10426
|
+
const overrideProps = {};
|
|
10427
|
+
if (!button.props.onClick) {
|
|
10428
|
+
overrideProps.onClick = () => setShowFooter(true);
|
|
10429
|
+
}
|
|
10430
|
+
if (!button.props.size) {
|
|
10431
|
+
overrideProps.size = "full-width";
|
|
10432
|
+
}
|
|
10433
|
+
if (!button.props.theme) {
|
|
10434
|
+
overrideProps.theme = "link-primary";
|
|
10435
|
+
}
|
|
10436
|
+
return React__default.cloneElement(button, overrideProps);
|
|
10426
10437
|
};
|
|
10427
10438
|
const onCreateButton = () => {
|
|
10428
10439
|
if (textFieldRef.current && textFieldRef.current.value.trim() !== '' && onCreate) {
|
|
@@ -10474,7 +10485,9 @@ function CustomMenu(_ref) {
|
|
|
10474
10485
|
autoFocus: true,
|
|
10475
10486
|
defaultValue: inputDefaultValue
|
|
10476
10487
|
}), React__default.createElement(Button, {
|
|
10477
|
-
onClick:
|
|
10488
|
+
onClick: () => {
|
|
10489
|
+
onCreateButton();
|
|
10490
|
+
},
|
|
10478
10491
|
onKeyDown: e => {
|
|
10479
10492
|
e.stopPropagation();
|
|
10480
10493
|
}
|
|
@@ -10610,7 +10623,9 @@ const ToolbarSelect = ({
|
|
|
10610
10623
|
menuShouldScrollIntoView,
|
|
10611
10624
|
disabled,
|
|
10612
10625
|
prefix,
|
|
10613
|
-
testId
|
|
10626
|
+
testId,
|
|
10627
|
+
creatableButton,
|
|
10628
|
+
onCreate
|
|
10614
10629
|
}) => {
|
|
10615
10630
|
return React__default.createElement(SelectField, {
|
|
10616
10631
|
name: name,
|
|
@@ -10624,6 +10639,8 @@ const ToolbarSelect = ({
|
|
|
10624
10639
|
disabled: disabled,
|
|
10625
10640
|
prefix: prefix,
|
|
10626
10641
|
testId: testId,
|
|
10642
|
+
creatableButton: creatableButton,
|
|
10643
|
+
onCreate: onCreate,
|
|
10627
10644
|
asToolbarFilter: true
|
|
10628
10645
|
});
|
|
10629
10646
|
};
|