@popmenu/ordering-ui 0.128.0 → 0.129.1

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.
Files changed (33) hide show
  1. package/build/cjs/components/MenuTabGroup/MenuTabGroup.styles.d.ts +1 -0
  2. package/build/cjs/components/Switch/Switch.d.ts +1 -1
  3. package/build/cjs/index.js +135 -13
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.js +2 -2
  6. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.js.map +1 -1
  7. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.styles.js +5 -1
  8. package/build/esm/components/DishCheckoutCard/DishCheckoutCard.styles.js.map +1 -1
  9. package/build/esm/components/MenuDropdown/MenuDropdown.js +3 -2
  10. package/build/esm/components/MenuDropdown/MenuDropdown.js.map +1 -1
  11. package/build/esm/components/MenuDropdown/MenuDropdown.styles.js +1 -1
  12. package/build/esm/components/MenuDropdown/MenuDropdown.styles.js.map +1 -1
  13. package/build/esm/components/MenuTab/MenuTab.js +1 -1
  14. package/build/esm/components/MenuTab/MenuTab.js.map +1 -1
  15. package/build/esm/components/MenuTab/MenuTab.styles.js +7 -0
  16. package/build/esm/components/MenuTab/MenuTab.styles.js.map +1 -1
  17. package/build/esm/components/MenuTabGroup/MenuTabGroup.js +5 -1
  18. package/build/esm/components/MenuTabGroup/MenuTabGroup.js.map +1 -1
  19. package/build/esm/components/MenuTabGroup/MenuTabGroup.styles.d.ts +1 -0
  20. package/build/esm/components/MenuTabGroup/MenuTabGroup.styles.js +50 -0
  21. package/build/esm/components/MenuTabGroup/MenuTabGroup.styles.js.map +1 -0
  22. package/build/esm/components/SelectableChip/SelectableChip.styles.js +4 -0
  23. package/build/esm/components/SelectableChip/SelectableChip.styles.js.map +1 -1
  24. package/build/esm/components/Switch/Switch.d.ts +1 -1
  25. package/build/esm/components/Switch/Switch.js +9 -3
  26. package/build/esm/components/Switch/Switch.js.map +1 -1
  27. package/build/esm/theme/overrides.js +49 -3
  28. package/build/esm/theme/overrides.js.map +1 -1
  29. package/build/esm/theme/palette.js +1 -1
  30. package/build/esm/theme/palette.js.map +1 -1
  31. package/build/esm/theme/props.js +7 -0
  32. package/build/esm/theme/props.js.map +1 -1
  33. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ export declare const useMenuTabGroupStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
@@ -1 +1 @@
1
- export declare const Switch: import("react").ComponentType<Pick<import("@material-ui/core").SwitchProps, "className" | "style" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "disableFocusRipple" | "size" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "checked" | "readOnly" | "required" | "icon" | "edge" | "inputProps" | "inputRef" | "checkedIcon"> & import("@material-ui/core").StyledComponentProps<"track" | "checked" | "switchBase" | "thumb">>;
1
+ export declare const Switch: import("react").ComponentType<Pick<import("@material-ui/core").SwitchProps, "className" | "style" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "disableFocusRipple" | "size" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "checked" | "readOnly" | "required" | "icon" | "edge" | "inputProps" | "inputRef" | "checkedIcon"> & import("@material-ui/core").StyledComponentProps<"root" | "track" | "checked" | "switchBase" | "thumb">>;
@@ -265,8 +265,15 @@ const MenuItem = React.forwardRef((props, ref) => {
265
265
  MenuItem.displayName = 'MenuItem';
266
266
 
267
267
  const useMenuTabStyles = core.makeStyles(({ palette, spacing }) => ({
268
+ icon: {
269
+ minWidth: spacing(2.5),
270
+ },
268
271
  root: ({ isUnavailable }) => ({
269
272
  color: isUnavailable ? `${palette.grey[700]} !important` : 'inherit',
273
+ '&.MuiTab-labelIcon': {
274
+ minHeight: 'unset',
275
+ },
276
+ maxWidth: spacing(29.5),
270
277
  '& > .MuiTab-wrapper': {
271
278
  flexDirection: 'row-reverse',
272
279
  gridGap: spacing(1),
@@ -283,12 +290,61 @@ const MenuTab = (props) => {
283
290
  const classes = useMenuTabStyles({ isUnavailable });
284
291
  return (React.createElement(core.Tab, { "data-tab-for-section-id": value, classes: {
285
292
  root: classes.root,
286
- }, icon: isUnavailable ? React.createElement(commonUi.Icon, { icon: webIcons.Clock, size: "large" }) : undefined, ...props }));
293
+ }, icon: isUnavailable ? React.createElement(commonUi.Icon, { icon: webIcons.Clock, size: "large", className: classes.icon }) : undefined, ...props }));
287
294
  };
288
295
 
296
+ const useMenuTabGroupStyles = core.makeStyles(() => ({
297
+ root: {
298
+ position: 'relative' /* Establish positioning context */,
299
+ overflow: 'hidden' /* Prevent scroll buttons from overflowing */,
300
+ '& .MuiTabScrollButton-root': {
301
+ position: 'absolute',
302
+ zIndex: '1',
303
+ backgroundColor: 'white',
304
+ height: '100%' /* Inherit full height of parent */,
305
+ top: '0',
306
+ display: 'flex',
307
+ alignItems: 'center',
308
+ justifyContent: 'center',
309
+ width: '40px',
310
+ opacity: 1,
311
+ /* Position scroller buttons and add gradient to inner sections */
312
+ '&:first-child': {
313
+ left: 0,
314
+ background: 'linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) calc(100% - 8px), rgba(255, 255, 255, 0) 100%)',
315
+ },
316
+ '&:last-child': {
317
+ right: 0,
318
+ background: 'linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) calc(100% - 8px), rgba(255, 255, 255, 0) 100%)',
319
+ },
320
+ /* Ensure tab container fills height */
321
+ '& .MuiSvgIcon-root': {
322
+ height: '24px',
323
+ width: '24px',
324
+ },
325
+ },
326
+ /* Adjust scroller to prevent tabs from being hidden */
327
+ '.MuiTabs-scroller': {
328
+ padding: '0 40px' /* Match scroll button width */,
329
+ height: '100%' /* Ensure it fills parent height */,
330
+ },
331
+ /* Ensure tab container fills height */
332
+ '.MuiTabs-flexContainer': {
333
+ height: '100%',
334
+ },
335
+ /* Remove buttons when scroll is all the way to the left or right */
336
+ '& .MuiTabScrollButton-root.Mui-disabled': {
337
+ display: 'none',
338
+ },
339
+ },
340
+ }));
341
+
289
342
  const MenuTabGroup = (props) => {
290
343
  const { children, ...muiProps } = props;
291
- return (React.createElement(core.Tabs, { scrollButtons: "on", variant: "scrollable", ...muiProps }, children));
344
+ const classes = useMenuTabGroupStyles();
345
+ return (React.createElement(core.Tabs, { scrollButtons: "on", variant: "scrollable", classes: {
346
+ root: classes.root,
347
+ }, ...muiProps }, children));
292
348
  };
293
349
 
294
350
  const OrderingAppContext = React.createContext(null);
@@ -347,7 +403,11 @@ const useDishCheckoutCardStyles = core.makeStyles((theme) => ({
347
403
  },
348
404
  select: {
349
405
  paddingLeft: 'unset',
350
- borderRadius: '25px',
406
+ borderRadius: 20,
407
+ '& .MuiSelect-root.MuiSelect-select': {
408
+ borderRadius: 20,
409
+ outlineOffset: 1,
410
+ },
351
411
  '& fieldset': {
352
412
  borderColor: theme.palette.grey[700],
353
413
  },
@@ -423,14 +483,14 @@ const DishCheckoutCard = ({ id, borderBottom, name, quantity, modifierGroups, on
423
483
  React.createElement(commonUi.Box, { display: "flex", gridGap: 3 },
424
484
  src && React.createElement("img", { src: src, alt: "", className: classes.img }),
425
485
  React.createElement(commonUi.Box, { flexGrow: 1 },
426
- React.createElement(commonUi.Typography, { variant: "h2", className: classes.name }, name),
486
+ React.createElement(commonUi.Typography, { component: "p", variant: "h2", className: classes.name }, name),
427
487
  modifierGroups && formatModifiers(modifierGroups),
428
488
  specialInstructions && React.createElement(commonUi.Typography, { variant: "body2" },
429
489
  "\"",
430
490
  specialInstructions,
431
491
  "\"")),
432
492
  React.createElement(commonUi.Box, { display: "flex", gridGap: 1, height: "100%", alignItems: "center" },
433
- React.createElement(Button, { "aria-label": messages.ariaEdit, disabled: disabled, className: classes.editButton, variant: "text", onClick: onEdit }, messages.edit),
493
+ React.createElement(Button, { "aria-label": messages.ariaEdit, disabled: disabled, className: classes.editButton, variant: "text", color: "inherit", onClick: onEdit }, messages.edit),
434
494
  React.createElement(commonUi.IconButton, { "aria-label": messages.ariaDelete, disabled: disabled, onClick: onDelete, classes: { root: classes.deleteButton } },
435
495
  React.createElement(commonUi.Icon, { icon: webIcons.Trash, size: "large" })))),
436
496
  React.createElement(commonUi.Box, { display: "flex", gridGap: 16, alignItems: "center" },
@@ -901,7 +961,7 @@ const useMenuDropdownStyles = core.makeStyles((theme) => ({
901
961
  select: {
902
962
  '& .MuiSelect-root': {
903
963
  '&:focus': {
904
- outline: '2px solid #0076CB',
964
+ outline: `2px solid ${theme.palette.info.main}`,
905
965
  borderRadius: 8,
906
966
  },
907
967
  color: '#212121',
@@ -921,6 +981,7 @@ const useMenuDropdownStyles = core.makeStyles((theme) => ({
921
981
 
922
982
  const MenuDropdown = (props) => {
923
983
  const { menuOptions, onSelect, selectedOptionId } = props;
984
+ const theme = core.useTheme();
924
985
  const classes = useMenuDropdownStyles(props);
925
986
  const [open, setOpen] = React.useState(false);
926
987
  const isMobile = core.useMediaQuery((theme) => theme.breakpoints.down('md'));
@@ -928,7 +989,7 @@ const MenuDropdown = (props) => {
928
989
  React.createElement("label", { id: "menu-dropdown-label", className: "sr-only" }, props.label),
929
990
  React.createElement(core.Select, { SelectDisplayProps: { 'aria-labelledby': 'menu-dropdown-label', 'aria-expanded': open }, value: selectedOptionId, onOpen: () => setOpen(true), onClose: () => setOpen(false), disableUnderline: true, onChange: (event) => onSelect(event.target.value), fullWidth: true, open: open, startAdornment: React.createElement(core.InputAdornment, { position: "start", onClick: () => setOpen(true) },
930
991
  React.createElement(commonUi.Icon, { icon: webIcons.RestaurantMenu, size: isMobile ? 'extra-large' : 'large' })), IconComponent: () => (React.createElement(core.InputAdornment, { position: "end", onClick: () => setOpen(true) },
931
- React.createElement(commonUi.Icon, { color: "#0076CB", icon: open ? webIcons.ChevronUp : webIcons.ChevronDown, size: "large" }))), MenuProps: {
992
+ React.createElement(commonUi.Icon, { color: theme.palette.info.main, icon: open ? webIcons.ChevronUp : webIcons.ChevronDown, size: "large" }))), MenuProps: {
932
993
  disablePortal: true,
933
994
  anchorOrigin: {
934
995
  vertical: 'bottom',
@@ -1021,6 +1082,9 @@ const useSelectableChipStyles = core.makeStyles((theme) => ({
1021
1082
  opacity: 'unset',
1022
1083
  textTransform: 'none',
1023
1084
  textAlign: 'left',
1085
+ '&:hover': {
1086
+ boxShadow: '0px 0px 0px 1px #757575',
1087
+ },
1024
1088
  '&::-webkit-scrollbar': {
1025
1089
  display: 'none',
1026
1090
  },
@@ -1031,6 +1095,7 @@ const useSelectableChipStyles = core.makeStyles((theme) => ({
1031
1095
  fontWeight: 400,
1032
1096
  '&:hover': {
1033
1097
  background: theme.palette.grey[100],
1098
+ boxShadow: 'none',
1034
1099
  },
1035
1100
  },
1036
1101
  },
@@ -1155,9 +1220,15 @@ const DialogSection = (props) => {
1155
1220
  };
1156
1221
 
1157
1222
  const Switch = core.withStyles(({ palette }) => ({
1223
+ root: {
1224
+ '& .Mui-focusVisible': {
1225
+ outline: `2px solid ${palette.info.main} !important`,
1226
+ outlineOffset: -6,
1227
+ },
1228
+ },
1158
1229
  checked: {
1159
1230
  '& $thumb': {
1160
- backgroundColor: palette.success.main,
1231
+ backgroundColor: core.darken(palette.success.main, 0.1),
1161
1232
  },
1162
1233
  '&& + $track': {
1163
1234
  backgroundColor: palette.success.main,
@@ -1165,7 +1236,7 @@ const Switch = core.withStyles(({ palette }) => ({
1165
1236
  },
1166
1237
  },
1167
1238
  switchBase: {
1168
- color: palette.grey[300],
1239
+ color: palette.grey[600],
1169
1240
  },
1170
1241
  thumb: {},
1171
1242
  track: {},
@@ -1269,7 +1340,7 @@ const palette = {
1269
1340
  },
1270
1341
  info: {
1271
1342
  light: '#52B7FF',
1272
- main: '#0076CB',
1343
+ main: '#0071C2',
1273
1344
  dark: '#164B54',
1274
1345
  },
1275
1346
  success: {
@@ -1296,10 +1367,24 @@ const overrides = {
1296
1367
  borderRadius: 32,
1297
1368
  textTransform: 'none',
1298
1369
  padding: '18px 16px',
1370
+ '&$disableElevation:hover': {
1371
+ boxShadow: '0px 0px 0px 1px #757575',
1372
+ },
1373
+ },
1374
+ containedPrimary: {
1375
+ outlineOffset: 1,
1299
1376
  },
1300
1377
  outlined: {},
1301
1378
  textPrimary: {
1302
- color: '#0076CB',
1379
+ color: palette.info.main,
1380
+ },
1381
+ disableElevation: {},
1382
+ },
1383
+ MuiIconButton: {
1384
+ root: {
1385
+ '&:hover': {
1386
+ boxShadow: '0px 0px 0px 1px #757575',
1387
+ },
1303
1388
  },
1304
1389
  },
1305
1390
  MuiDialogTitle: {
@@ -1339,12 +1424,42 @@ const overrides = {
1339
1424
  minWidth: 'unset',
1340
1425
  },
1341
1426
  },
1427
+ MuiTextField: {
1428
+ root: {
1429
+ '& .MuiOutlinedInput-notchedOutline': {
1430
+ borderColor: '#757575',
1431
+ },
1432
+ },
1433
+ },
1434
+ MuiInputLabel: {
1435
+ root: {
1436
+ color: '#757575',
1437
+ },
1438
+ },
1439
+ MuiCheckbox: {
1440
+ root: {
1441
+ '&.Mui-focusVisible': {
1442
+ outline: `2px solid ${palette.info.main} !important`,
1443
+ },
1444
+ },
1445
+ },
1446
+ MuiInputBase: {
1447
+ input: {
1448
+ '&:focus': {
1449
+ outlineOffset: -8,
1450
+ },
1451
+ '&$inputMultiline:focus': {
1452
+ outlineOffset: 6,
1453
+ borderRadius: 2,
1454
+ },
1455
+ },
1456
+ inputMultiline: {},
1457
+ },
1342
1458
  MuiCssBaseline: {
1343
1459
  '@global': {
1344
1460
  '*:focus-visible, a:focus-visible': {
1345
1461
  '&': {
1346
- outline: '2px solid #0076CB !important',
1347
- outlineOffset: -4,
1462
+ outline: `2px solid ${palette.info.main} !important`,
1348
1463
  borderRadius: 8,
1349
1464
  },
1350
1465
  },
@@ -1366,10 +1481,17 @@ const overrides = {
1366
1481
  const props = {
1367
1482
  MuiButton: {
1368
1483
  disableElevation: true,
1484
+ disableFocusRipple: true,
1369
1485
  },
1370
1486
  MuiDialogTitle: {
1371
1487
  disableTypography: true,
1372
1488
  },
1489
+ MuiIconButton: {
1490
+ disableFocusRipple: true,
1491
+ },
1492
+ MuiTab: {
1493
+ disableFocusRipple: true,
1494
+ },
1373
1495
  };
1374
1496
 
1375
1497
  const fonts = ['"Poppins"', '"sans-serif"'];