@7shifts/sous-chef 3.87.0-beta.1 → 3.87.0-beta.2
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/foundation/tokens/color/color-constants.d.ts +3 -0
- package/dist/foundation/tokens/color/color-types.d.ts +1 -1
- package/dist/index.css +58 -126
- package/dist/index.css.map +1 -1
- package/dist/index.js +7 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -9
- package/dist/index.modern.js.map +1 -1
- package/dist/overlay/Tooltip/Tooltip.d.ts +3 -0
- package/package.json +1 -1
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"};
|