@7shifts/sous-chef 3.66.0 → 3.67.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/index.modern.js
CHANGED
|
@@ -6131,7 +6131,7 @@ var SelectField$1 = {
|
|
|
6131
6131
|
createButton: "Create"
|
|
6132
6132
|
};
|
|
6133
6133
|
var HintModal$1 = {
|
|
6134
|
-
dontShowAgainLabel: "Don
|
|
6134
|
+
dontShowAgainLabel: "Don't remind me again"
|
|
6135
6135
|
};
|
|
6136
6136
|
var Calendar$1 = {
|
|
6137
6137
|
sunday: "Sunday",
|
|
@@ -8953,7 +8953,7 @@ const useLocalStorage = (key, initialValue) => {
|
|
|
8953
8953
|
|
|
8954
8954
|
var styles$F = {"hint-modal":"_NwD6V","hint-modal--after-open":"_4ofZb","hint-modal--before-close":"_hGoMD","hint-modal__overlay":"_iK5zl","hint-modal__image":"_V9hLa","hint-modal__body":"_oOqUg","hint-modal__close-button":"_5zcBK"};
|
|
8955
8955
|
|
|
8956
|
-
const _excluded$g = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "testId"];
|
|
8956
|
+
const _excluded$g = ["header", "children", "mediaUrl", "onClose", "modalId", "primaryButton", "secondaryButton", "testId"];
|
|
8957
8957
|
const HintModal = _ref => {
|
|
8958
8958
|
let {
|
|
8959
8959
|
header,
|
|
@@ -8962,13 +8962,14 @@ const HintModal = _ref => {
|
|
|
8962
8962
|
onClose,
|
|
8963
8963
|
modalId,
|
|
8964
8964
|
primaryButton,
|
|
8965
|
+
secondaryButton,
|
|
8965
8966
|
testId
|
|
8966
8967
|
} = _ref,
|
|
8967
8968
|
positionProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
8968
8969
|
const __ = useTranslation('HintModal');
|
|
8969
8970
|
const [doNotShowAgain, setDoNotShowAgain] = useState(false);
|
|
8970
8971
|
const [persistedDoNotShow, setPersistedDoNotShow] = useLocalStorage(modalId, false);
|
|
8971
|
-
const
|
|
8972
|
+
const primaryButtonUpdated = updateButtonProps$1(primaryButton, {
|
|
8972
8973
|
theme: primaryButton.props.theme || 'primary',
|
|
8973
8974
|
size: BUTTON_SIZES.MIN_WIDTH_100,
|
|
8974
8975
|
onClick: () => {
|
|
@@ -8976,6 +8977,14 @@ const HintModal = _ref => {
|
|
|
8976
8977
|
primaryButton.props.onClick();
|
|
8977
8978
|
}
|
|
8978
8979
|
});
|
|
8980
|
+
const secondaryButtonUpdated = secondaryButton ? updateButtonProps$1(secondaryButton, {
|
|
8981
|
+
theme: secondaryButton.props.theme || 'default',
|
|
8982
|
+
size: BUTTON_SIZES.MIN_WIDTH_100,
|
|
8983
|
+
onClick: () => {
|
|
8984
|
+
setPersistedDoNotShow(doNotShowAgain);
|
|
8985
|
+
secondaryButton.props.onClick();
|
|
8986
|
+
}
|
|
8987
|
+
}) : undefined;
|
|
8979
8988
|
const positionStyles = usePositionStyles(positionProps);
|
|
8980
8989
|
const style = {
|
|
8981
8990
|
overlay: _extends({}, positionStyles, {
|
|
@@ -9020,15 +9029,18 @@ const HintModal = _ref => {
|
|
|
9020
9029
|
space: 8
|
|
9021
9030
|
}, React__default.createElement(Text, {
|
|
9022
9031
|
as: "h3"
|
|
9023
|
-
}, header), React__default.createElement(Text, null, children)), React__default.createElement(
|
|
9024
|
-
|
|
9025
|
-
justifyContent: "space-between"
|
|
9032
|
+
}, header), React__default.createElement(Text, null, children)), React__default.createElement(Stack, {
|
|
9033
|
+
space: 32
|
|
9026
9034
|
}, React__default.createElement(CheckboxField, {
|
|
9027
9035
|
name: "hint-modal-do-not-show-checkbox",
|
|
9028
9036
|
checked: doNotShowAgain,
|
|
9029
9037
|
label: __('dontShowAgainLabel'),
|
|
9030
9038
|
onChange: () => setDoNotShowAgain(!doNotShowAgain)
|
|
9031
|
-
}),
|
|
9039
|
+
}), React__default.createElement(Inline, {
|
|
9040
|
+
alignItems: "center",
|
|
9041
|
+
justifyContent: "end",
|
|
9042
|
+
space: 8
|
|
9043
|
+
}, secondaryButtonUpdated, primaryButtonUpdated)))));
|
|
9032
9044
|
};
|
|
9033
9045
|
|
|
9034
9046
|
const DataTableCellElement = ({
|