@7shifts/sous-chef 3.87.0-beta.1 → 3.87.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/actions/Button/Button.d.ts +12 -1
- package/dist/actions/PaginationControls/PaginationControls.d.ts +5 -0
- package/dist/core/SousChefProvider/context/ProviderConfigContext.d.ts +0 -1
- package/dist/feedback/InlineBanner/InlineBanner.d.ts +7 -0
- package/dist/feedback/MicroBanner/MicroBanner.d.ts +7 -1
- package/dist/forms/PhoneField/usePhoneField.d.ts +0 -1
- package/dist/forms/SelectField/useSelectField.d.ts +0 -1
- package/dist/forms/TextField/useTextField.d.ts +0 -1
- package/dist/forms/hooks/useDateFieldControllers.d.ts +0 -1
- package/dist/forms/hooks/useMultiSelectFieldControllers.d.ts +0 -1
- package/dist/forms/hooks/usePhoneFieldControllers.d.ts +0 -1
- package/dist/forms/hooks/useRangeFieldControllers.d.ts +0 -1
- package/dist/forms/hooks/useSelectFieldControllers.d.ts +0 -1
- package/dist/foundation/tokens/color/color-constants.d.ts +3 -0
- package/dist/foundation/tokens/color/color-types.d.ts +1 -1
- package/dist/foundation/types.d.ts +40 -10
- package/dist/hooks/usePositionStyles.d.ts +0 -1
- package/dist/i18n/TranslationsContext.d.ts +0 -1
- package/dist/index.css +67 -128
- package/dist/index.css.map +1 -1
- package/dist/index.js +10 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -11
- package/dist/index.modern.js.map +1 -1
- package/dist/lists/DataTable/DataTableContext.d.ts +0 -1
- package/dist/lists/hooks/useDataTableScrollState.d.ts +0 -1
- package/dist/overlay/KebabMenu/types.d.ts +0 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +3 -0
- package/dist/overlay/hooks/useListKeyboardNavigation/types.d.ts +0 -1
- package/dist/utils/elements.d.ts +0 -1
- package/dist/utils/types.d.ts +0 -1
- package/package.json +15 -18
package/dist/index.modern.js
CHANGED
|
@@ -184,6 +184,9 @@ const COLORS = {
|
|
|
184
184
|
'warning-on-container-variant': 'var(--color-warning-on-container-variant)',
|
|
185
185
|
'shadow-overlay': 'var(--color-shadow-overlay)',
|
|
186
186
|
'shadow-active': 'var(--color-shadow-active)',
|
|
187
|
+
'hover-inverse': 'var(--color-hover-inverse)',
|
|
188
|
+
'hover-lighten': 'var(--color-hover-lighten)',
|
|
189
|
+
'hover-darken': 'var(--color-hover-darken)',
|
|
187
190
|
'brand-neutrals-caviar-dynamic': 'var(--color-brand-neutrals-caviar-dynamic)',
|
|
188
191
|
'brand-neutrals-chefscoat-dynamic': 'var(--color-brand-neutrals-chefscoat-dynamic)'
|
|
189
192
|
};
|
|
@@ -10673,7 +10676,7 @@ const getSelectStyles = ({
|
|
|
10673
10676
|
width: _asToolbarFilter ? 'fit-content' : undefined,
|
|
10674
10677
|
margin: 0,
|
|
10675
10678
|
':hover': _asToolbarFilter ? {
|
|
10676
|
-
backgroundColor:
|
|
10679
|
+
backgroundColor: `linear-gradient(0deg, var(--color-hover-darken) 0%, var(--color-hover-darken) 100%), ${COLORS['surface-color']};`
|
|
10677
10680
|
} : 'none'
|
|
10678
10681
|
});
|
|
10679
10682
|
},
|
|
@@ -11218,7 +11221,7 @@ const DateFilter = ({
|
|
|
11218
11221
|
}));
|
|
11219
11222
|
};
|
|
11220
11223
|
|
|
11221
|
-
var styles$o = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"
|
|
11224
|
+
var styles$o = {"segmented-control":"_RezMY","segmented-control__button":"_lehFG","segmented-control__button--selected":"_Fr5kb"};
|
|
11222
11225
|
|
|
11223
11226
|
const SegmentedControl = ({
|
|
11224
11227
|
options,
|
|
@@ -11229,22 +11232,17 @@ const SegmentedControl = ({
|
|
|
11229
11232
|
const isSelected = option => {
|
|
11230
11233
|
return option === value;
|
|
11231
11234
|
};
|
|
11232
|
-
const isLastElement = index => {
|
|
11233
|
-
return index === options.length - 1;
|
|
11234
|
-
};
|
|
11235
11235
|
return React__default.createElement("div", {
|
|
11236
11236
|
className: styles$o['segmented-control'],
|
|
11237
11237
|
"data-testid": testId
|
|
11238
|
-
}, options.map(
|
|
11238
|
+
}, options.map(option => React__default.createElement(React__default.Fragment, {
|
|
11239
11239
|
key: option
|
|
11240
11240
|
}, React__default.createElement("button", {
|
|
11241
11241
|
onClick: () => onChange(option),
|
|
11242
11242
|
className: classnames(styles$o['segmented-control__button'], {
|
|
11243
11243
|
[styles$o['segmented-control__button--selected']]: isSelected(option)
|
|
11244
11244
|
})
|
|
11245
|
-
}, option)
|
|
11246
|
-
className: classnames(styles$o['segmented-control__divider'])
|
|
11247
|
-
}))));
|
|
11245
|
+
}, option))));
|
|
11248
11246
|
};
|
|
11249
11247
|
|
|
11250
11248
|
var styles$n = {"form--standard-size":"_8-Ykj"};
|
|
@@ -13254,7 +13252,7 @@ const TimeRangeField = ({
|
|
|
13254
13252
|
})));
|
|
13255
13253
|
};
|
|
13256
13254
|
|
|
13257
|
-
var styles$9 = {"currency-field__mask-display":"_ddacu","currency-field__mask-display--disabled":"_o1-zA"};
|
|
13255
|
+
var styles$9 = {"currency-field":"_GyYnE","currency-field__mask-display":"_ddacu","currency-field__mask-display--disabled":"_o1-zA"};
|
|
13258
13256
|
|
|
13259
13257
|
const CURRENCY_DISPLAY_DEFAULT_MARGIN = 8;
|
|
13260
13258
|
const CURRENCY_DISPLAY_MARGIN_BUFFER = 1;
|
|
@@ -13319,7 +13317,8 @@ const CurrencyFieldElement = (_ref, forwardedRef) => {
|
|
|
13319
13317
|
onFocus: e => {
|
|
13320
13318
|
setShowMask(false);
|
|
13321
13319
|
inputProps.onFocus(e);
|
|
13322
|
-
}
|
|
13320
|
+
},
|
|
13321
|
+
className: classnames(inputProps.className, styles$9['currency-field'])
|
|
13323
13322
|
}))), showMask && !!inputProps.value && React__default.createElement("div", {
|
|
13324
13323
|
className: classnames(styles$9['currency-field__mask-display'], {
|
|
13325
13324
|
[styles$9['currency-field__mask-display--disabled']]: inputProps.disabled
|