@auth0/quantum-product 1.11.1 → 1.12.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.
@@ -1,2 +1,2 @@
1
- import { BreadcrumbsProps } from '@mui/material/Breadcrumbs';
2
- export declare const createMuiBreadcrumbsOverrides: import("../theme/create-component-overrides").ComponentOverrideCreator<BreadcrumbsProps<"nav", {}>, keyof import("@mui/material/Breadcrumbs").BreadcrumbsClasses>;
1
+ import { BreadcrumbsProps } from '@mui/material';
2
+ export declare const createMuiBreadcrumbsOverrides: import("../theme/create-component-overrides").ComponentOverrideCreator<BreadcrumbsProps<"nav", {}>, keyof import("@mui/material").BreadcrumbsClasses>;
@@ -1,15 +1,31 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  exports.createMuiBreadcrumbsOverrides = void 0;
15
+ var material_1 = require("@mui/material");
4
16
  var create_component_overrides_1 = require("../theme/create-component-overrides");
5
17
  exports.createMuiBreadcrumbsOverrides = (0, create_component_overrides_1.createComponentOverrides)(function (_a) {
6
- var tokens = _a.tokens;
18
+ var _b;
19
+ var mixins = _a.mixins, tokens = _a.tokens;
7
20
  return ({
8
21
  styleOverrides: {
9
22
  separator: {
10
23
  color: tokens.color_fg_decorative,
11
24
  fontSize: '0.875rem',
12
25
  },
26
+ root: (_b = {},
27
+ _b["& .".concat(material_1.buttonBaseClasses.root, ":focus")] = __assign({ outlineOffset: 2 }, mixins.focusRing()),
28
+ _b),
13
29
  },
14
30
  });
15
31
  });
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  exports.createMuiButtonOverrides = void 0;
4
15
  var Button_1 = require("@mui/material/Button");
@@ -210,9 +221,9 @@ exports.createMuiButtonOverrides = (0, create_component_overrides_1.createCompon
210
221
  {
211
222
  props: { color: 'danger' },
212
223
  style: (_b = {},
213
- _b["&:focus,&.".concat(Button_1.buttonClasses.focusVisible)] = mixins.focusRing({
224
+ _b["&:focus,&.".concat(Button_1.buttonClasses.focusVisible)] = __assign({ outlineOffset: 2 }, mixins.focusRing({
214
225
  color: tokens.color_border_focus_state_danger,
215
- }),
226
+ })),
216
227
  _b),
217
228
  },
218
229
  ],
@@ -227,6 +238,9 @@ exports.createMuiButtonOverrides = (0, create_component_overrides_1.createCompon
227
238
  backgroundColor: tokens.color_bg_button_disabled,
228
239
  borderColor: tokens.color_border_disabled,
229
240
  },
241
+ _c["&:focus,&.".concat(Button_1.buttonClasses.focusVisible)] = {
242
+ outlineOffset: 2,
243
+ },
230
244
  _c),
231
245
  fullWidth: {
232
246
  width: '100%',
@@ -91,5 +91,5 @@ exports.CardHeader = React.forwardRef(function (props, ref) {
91
91
  action: classes.action,
92
92
  avatar: classes.avatar,
93
93
  content: classes.content,
94
- }, title: React.createElement(Title, __assign({ variant: titleVariant, color: "textPrimary" }, { component: 'h2' }, { display: "block" }, titleTypographyProps, { className: (0, clsx_1.default)(classes.title, titleTypographyProps.className), ownerState: { size: size } }), title), subheader: subheader ? (React.createElement(text_1.Text, __assign({ variant: "body2", color: "textSecondary", component: "p" }, subheaderTypographyProps, { className: (0, clsx_1.default)(classes.subheader, subheaderTypographyProps.className) }), subheader)) : null }, cardProps, { disableTypography: true })));
94
+ }, title: React.createElement(Title, __assign({ variant: titleVariant, color: "textPrimary" }, { component: 'p' }, { role: "heading", display: "block" }, titleTypographyProps, { className: (0, clsx_1.default)(classes.title, titleTypographyProps.className), ownerState: { size: size } }), title), subheader: subheader ? (React.createElement(text_1.Text, __assign({ variant: "body2", color: "textSecondary", component: "p" }, subheaderTypographyProps, { className: (0, clsx_1.default)(classes.subheader, subheaderTypographyProps.className) }), subheader)) : null }, cardProps, { disableTypography: true })));
95
95
  });
package/card/card.js CHANGED
@@ -98,7 +98,7 @@ var Root = (0, styled_1.styled)(Card_1.default, {
98
98
  backgroundColor: (0, color_manipulator_1.fade)(theme.palette.action.hoverBackground, 0.1),
99
99
  boxShadow: theme.shadows[1],
100
100
  },
101
- '&:focus': __assign({ outline: 'none' }, theme.mixins.focusRing()),
101
+ '&:focus': __assign({ outlineOffset: 2 }, theme.mixins.focusRing()),
102
102
  }))), (ownerState.selectableButton && {
103
103
  cursor: 'pointer',
104
104
  transition: theme.transitions.create(['box-shadow', 'border-color'], {
@@ -27,7 +27,7 @@ var createMuiCheckboxOverrides = function (_a) {
27
27
  duration: transitions.duration.short,
28
28
  }),
29
29
  color: tokens.color_border_input,
30
- '&:focus-within svg': __assign({ borderRadius: 4 }, mixins.focusRing()),
30
+ '&:focus-within svg': __assign({ borderRadius: 4, outlineOffset: 2 }, mixins.focusRing()),
31
31
  },
32
32
  colorPrimary: (_b = {
33
33
  '&:hover,': {
@@ -40,11 +40,7 @@ exports.createMuiChipOverrides = (0, create_component_overrides_1.createComponen
40
40
  boxShadow: mixins.borderAsBoxShadow(tokens.color_border_button),
41
41
  backgroundColor: tokens.color_bg_link_hover,
42
42
  },
43
- '&:focus,&.Mui-focusVisible': {
44
- cursor: 'pointer',
45
- boxShadow: mixins.borderAsBoxShadow(tokens.color_border_button),
46
- backgroundColor: tokens.color_bg_link_hover,
47
- }
43
+ '&:focus,&.Mui-focusVisible': __assign({ cursor: 'pointer', boxShadow: mixins.borderAsBoxShadow(tokens.color_border_button), backgroundColor: tokens.color_bg_link_hover, outlineOffset: 2 }, mixins.focusRing())
48
44
  },
49
45
  _c["&.".concat(Chip_1.chipClasses.disabled)] = {
50
46
  opacity: 1,
package/chip/chip.js CHANGED
@@ -74,13 +74,7 @@ var Root = (0, styled_1.styled)(Chip_1.default, { name: exports.chipComponentNam
74
74
  boxShadow: theme.mixins.borderAsBoxShadow(theme.tokens.color_border_selected, 2),
75
75
  backgroundColor: theme.tokens.color_bg_selected_subtle_pressed,
76
76
  },
77
- _b["&:focus:not(&.".concat(Chip_1.chipClasses.disabled, "),&.Mui-focusVisible:not(&.").concat(Chip_1.chipClasses.disabled, ")")] = {
78
- backgroundColor: theme.tokens.color_bg_selected_subtle_hover,
79
- boxShadow: [
80
- theme.mixins.borderAsBoxShadow(theme.tokens.color_border_selected, 2),
81
- theme.mixins.focusRing().boxShadow,
82
- ],
83
- },
77
+ _b["&:focus:not(&.".concat(Chip_1.chipClasses.disabled, "),&.Mui-focusVisible:not(&.").concat(Chip_1.chipClasses.disabled, ")")] = __assign({ backgroundColor: theme.tokens.color_bg_selected_subtle_hover, boxShadow: theme.mixins.borderAsBoxShadow(theme.tokens.color_border_selected, 2) }, theme.mixins.focusRing()),
84
78
  _b[".".concat(Checkbox_1.checkboxClasses.colorPrimary, ".").concat(Checkbox_1.checkboxClasses.checked, ":not(.").concat(Checkbox_1.checkboxClasses.disabled, ")")] = {
85
79
  color: theme.tokens.color_bg_selected,
86
80
  },
@@ -6,4 +6,4 @@ export interface IDialogTitleProps extends Omit<DialogTitleProps, 'classes'> {
6
6
  onClose?(event: {}, reason: 'closeClick'): void;
7
7
  classes?: Partial<DialogTitleClasses>;
8
8
  }
9
- export declare const DialogTitle: React.ForwardRefExoticComponent<Pick<IDialogTitleProps, "p" | "slot" | "style" | "title" | "color" | "border" | "boxShadow" | "hidden" | "left" | "right" | "bottom" | "top" | "flex" | "position" | "padding" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "paddingBlock" | "paddingInline" | "className" | "classes" | "children" | "sx" | "variant" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "disableTypography" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "component" | "onClose"> & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const DialogTitle: React.ForwardRefExoticComponent<Pick<IDialogTitleProps, "p" | "slot" | "style" | "title" | "color" | "border" | "hidden" | "left" | "right" | "bottom" | "top" | "flex" | "position" | "padding" | "alignContent" | "alignItems" | "alignSelf" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "paddingBlock" | "paddingInline" | "className" | "classes" | "children" | "sx" | "variant" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "disableTypography" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "component" | "onClose"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,28 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { buttonBaseClasses } from '@mui/material';
1
13
  import { createComponentOverrides } from '../theme/create-component-overrides';
2
14
  export var createMuiBreadcrumbsOverrides = createComponentOverrides(function (_a) {
3
- var tokens = _a.tokens;
15
+ var _b;
16
+ var mixins = _a.mixins, tokens = _a.tokens;
4
17
  return ({
5
18
  styleOverrides: {
6
19
  separator: {
7
20
  color: tokens.color_fg_decorative,
8
21
  fontSize: '0.875rem',
9
22
  },
23
+ root: (_b = {},
24
+ _b["& .".concat(buttonBaseClasses.root, ":focus")] = __assign({ outlineOffset: 2 }, mixins.focusRing()),
25
+ _b),
10
26
  },
11
27
  });
12
28
  });
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { buttonClasses } from '@mui/material/Button';
2
13
  import { createComponentOverrides } from '../theme/create-component-overrides';
3
14
  export var createMuiButtonOverrides = createComponentOverrides(function (_a) {
@@ -207,9 +218,9 @@ export var createMuiButtonOverrides = createComponentOverrides(function (_a) {
207
218
  {
208
219
  props: { color: 'danger' },
209
220
  style: (_b = {},
210
- _b["&:focus,&.".concat(buttonClasses.focusVisible)] = mixins.focusRing({
221
+ _b["&:focus,&.".concat(buttonClasses.focusVisible)] = __assign({ outlineOffset: 2 }, mixins.focusRing({
211
222
  color: tokens.color_border_focus_state_danger,
212
- }),
223
+ })),
213
224
  _b),
214
225
  },
215
226
  ],
@@ -224,6 +235,9 @@ export var createMuiButtonOverrides = createComponentOverrides(function (_a) {
224
235
  backgroundColor: tokens.color_bg_button_disabled,
225
236
  borderColor: tokens.color_border_disabled,
226
237
  },
238
+ _c["&:focus,&.".concat(buttonClasses.focusVisible)] = {
239
+ outlineOffset: 2,
240
+ },
227
241
  _c),
228
242
  fullWidth: {
229
243
  width: '100%',
@@ -62,5 +62,5 @@ export var CardHeader = React.forwardRef(function (props, ref) {
62
62
  action: classes.action,
63
63
  avatar: classes.avatar,
64
64
  content: classes.content,
65
- }, title: React.createElement(Title, __assign({ variant: titleVariant, color: "textPrimary" }, { component: 'h2' }, { display: "block" }, titleTypographyProps, { className: clsx(classes.title, titleTypographyProps.className), ownerState: { size: size } }), title), subheader: subheader ? (React.createElement(Text, __assign({ variant: "body2", color: "textSecondary", component: "p" }, subheaderTypographyProps, { className: clsx(classes.subheader, subheaderTypographyProps.className) }), subheader)) : null }, cardProps, { disableTypography: true })));
65
+ }, title: React.createElement(Title, __assign({ variant: titleVariant, color: "textPrimary" }, { component: 'p' }, { role: "heading", display: "block" }, titleTypographyProps, { className: clsx(classes.title, titleTypographyProps.className), ownerState: { size: size } }), title), subheader: subheader ? (React.createElement(Text, __assign({ variant: "body2", color: "textSecondary", component: "p" }, subheaderTypographyProps, { className: clsx(classes.subheader, subheaderTypographyProps.className) }), subheader)) : null }, cardProps, { disableTypography: true })));
66
66
  });
package/esm/card/card.js CHANGED
@@ -69,7 +69,7 @@ var Root = styled(MuiCard, {
69
69
  backgroundColor: fade(theme.palette.action.hoverBackground, 0.1),
70
70
  boxShadow: theme.shadows[1],
71
71
  },
72
- '&:focus': __assign({ outline: 'none' }, theme.mixins.focusRing()),
72
+ '&:focus': __assign({ outlineOffset: 2 }, theme.mixins.focusRing()),
73
73
  }))), (ownerState.selectableButton && {
74
74
  cursor: 'pointer',
75
75
  transition: theme.transitions.create(['box-shadow', 'border-color'], {
@@ -24,7 +24,7 @@ export var createMuiCheckboxOverrides = function (_a) {
24
24
  duration: transitions.duration.short,
25
25
  }),
26
26
  color: tokens.color_border_input,
27
- '&:focus-within svg': __assign({ borderRadius: 4 }, mixins.focusRing()),
27
+ '&:focus-within svg': __assign({ borderRadius: 4, outlineOffset: 2 }, mixins.focusRing()),
28
28
  },
29
29
  colorPrimary: (_b = {
30
30
  '&:hover,': {
@@ -37,11 +37,7 @@ export var createMuiChipOverrides = createComponentOverrides(function (_a) {
37
37
  boxShadow: mixins.borderAsBoxShadow(tokens.color_border_button),
38
38
  backgroundColor: tokens.color_bg_link_hover,
39
39
  },
40
- '&:focus,&.Mui-focusVisible': {
41
- cursor: 'pointer',
42
- boxShadow: mixins.borderAsBoxShadow(tokens.color_border_button),
43
- backgroundColor: tokens.color_bg_link_hover,
44
- }
40
+ '&:focus,&.Mui-focusVisible': __assign({ cursor: 'pointer', boxShadow: mixins.borderAsBoxShadow(tokens.color_border_button), backgroundColor: tokens.color_bg_link_hover, outlineOffset: 2 }, mixins.focusRing())
45
41
  },
46
42
  _c["&.".concat(chipClasses.disabled)] = {
47
43
  opacity: 1,
package/esm/chip/chip.js CHANGED
@@ -48,13 +48,7 @@ var Root = styled(MuiChip, { name: chipComponentName, slot: 'Root' })(function (
48
48
  boxShadow: theme.mixins.borderAsBoxShadow(theme.tokens.color_border_selected, 2),
49
49
  backgroundColor: theme.tokens.color_bg_selected_subtle_pressed,
50
50
  },
51
- _b["&:focus:not(&.".concat(chipClasses.disabled, "),&.Mui-focusVisible:not(&.").concat(chipClasses.disabled, ")")] = {
52
- backgroundColor: theme.tokens.color_bg_selected_subtle_hover,
53
- boxShadow: [
54
- theme.mixins.borderAsBoxShadow(theme.tokens.color_border_selected, 2),
55
- theme.mixins.focusRing().boxShadow,
56
- ],
57
- },
51
+ _b["&:focus:not(&.".concat(chipClasses.disabled, "),&.Mui-focusVisible:not(&.").concat(chipClasses.disabled, ")")] = __assign({ backgroundColor: theme.tokens.color_bg_selected_subtle_hover, boxShadow: theme.mixins.borderAsBoxShadow(theme.tokens.color_border_selected, 2) }, theme.mixins.focusRing()),
58
52
  _b[".".concat(checkboxClasses.colorPrimary, ".").concat(checkboxClasses.checked, ":not(.").concat(checkboxClasses.disabled, ")")] = {
59
53
  color: theme.tokens.color_bg_selected,
60
54
  },
@@ -1,8 +1,19 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { createComponentOverrides } from '../theme/create-component-overrides';
2
13
  import { iconButtonClasses } from '@mui/material/IconButton';
3
14
  export var createMuiIconButtonOverrides = createComponentOverrides(function (_a) {
4
- var _b;
5
- var typography = _a.typography, tokens = _a.tokens;
15
+ var _b, _c, _d, _e;
16
+ var mixins = _a.mixins, typography = _a.typography, tokens = _a.tokens;
6
17
  return {
7
18
  defaultProps: {},
8
19
  styleOverrides: {
@@ -12,6 +23,9 @@ export var createMuiIconButtonOverrides = createComponentOverrides(function (_a)
12
23
  backgroundColor: tokens.color_bg_button_disabled,
13
24
  borderColor: tokens.color_border_disabled,
14
25
  },
26
+ _b["&:focus,&.Mui-focusVisible"] = {
27
+ outlineOffset: 2,
28
+ },
15
29
  _b),
16
30
  },
17
31
  variants: [
@@ -66,17 +80,21 @@ export var createMuiIconButtonOverrides = createComponentOverrides(function (_a)
66
80
  },
67
81
  {
68
82
  props: { color: 'danger' },
69
- style: {
70
- color: tokens.color_fg_link_danger,
71
- '&:hover,&.Mui-hover': {
72
- color: tokens.color_fg_link_danger_hover,
73
- backgroundColor: tokens.color_bg_link_danger_hover,
74
- },
75
- '&:active,&.Mui-active': {
76
- color: tokens.color_fg_link_danger_pressed,
77
- backgroundColor: tokens.color_bg_link_danger_pressed,
78
- },
79
- },
83
+ style: (_c = {
84
+ color: tokens.color_fg_link_danger,
85
+ '&:hover,&.Mui-hover': {
86
+ color: tokens.color_fg_link_danger_hover,
87
+ backgroundColor: tokens.color_bg_link_danger_hover,
88
+ },
89
+ '&:active,&.Mui-active': {
90
+ color: tokens.color_fg_link_danger_pressed,
91
+ backgroundColor: tokens.color_bg_link_danger_pressed,
92
+ }
93
+ },
94
+ _c["&:focus,&.Mui-focusVisible"] = __assign({ outlineOffset: 2 }, mixins.focusRing({
95
+ color: tokens.color_border_focus_state_danger,
96
+ })),
97
+ _c),
80
98
  },
81
99
  {
82
100
  props: { variant: 'contained', color: 'primary' },
@@ -95,18 +113,22 @@ export var createMuiIconButtonOverrides = createComponentOverrides(function (_a)
95
113
  },
96
114
  {
97
115
  props: { variant: 'contained', color: 'danger' },
98
- style: {
99
- backgroundColor: tokens.color_bg_button_danger,
100
- color: tokens.color_fg_on_button_danger,
101
- '&:hover,&.Mui-hover': {
102
- color: tokens.color_fg_on_button_danger,
103
- backgroundColor: tokens.color_bg_button_danger_hover,
104
- },
105
- '&:active,&.Mui-active': {
116
+ style: (_d = {
117
+ backgroundColor: tokens.color_bg_button_danger,
106
118
  color: tokens.color_fg_on_button_danger,
107
- backgroundColor: tokens.color_bg_button_danger_pressed,
108
- },
109
- },
119
+ '&:hover,&.Mui-hover': {
120
+ color: tokens.color_fg_on_button_danger,
121
+ backgroundColor: tokens.color_bg_button_danger_hover,
122
+ },
123
+ '&:active,&.Mui-active': {
124
+ color: tokens.color_fg_on_button_danger,
125
+ backgroundColor: tokens.color_bg_button_danger_pressed,
126
+ }
127
+ },
128
+ _d["&:focus,&.Mui-focusVisible"] = __assign({ outlineOffset: 2 }, mixins.focusRing({
129
+ color: tokens.color_border_focus_state_danger,
130
+ })),
131
+ _d),
110
132
  },
111
133
  {
112
134
  props: { variant: 'contained', color: 'default' },
@@ -162,6 +184,14 @@ export var createMuiIconButtonOverrides = createComponentOverrides(function (_a)
162
184
  },
163
185
  },
164
186
  },
187
+ {
188
+ props: { variant: 'outlined', color: 'danger' },
189
+ style: (_e = {},
190
+ _e["&:focus,&.Mui-focusVisible"] = __assign({ outlineOffset: 2 }, mixins.focusRing({
191
+ color: tokens.color_border_focus_state_danger,
192
+ })),
193
+ _e),
194
+ },
165
195
  {
166
196
  props: { variant: 'link', color: 'default' },
167
197
  style: {
@@ -1,18 +1,7 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { outlinedInputClasses } from '@mui/material/OutlinedInput';
13
2
  export var createMuiOutlinedInputOverrides = function (_a) {
14
3
  var _b, _c, _d, _e;
15
- var spacing = _a.spacing, transitions = _a.transitions, mixins = _a.mixins, tokens = _a.tokens;
4
+ var spacing = _a.spacing, transitions = _a.transitions, tokens = _a.tokens;
16
5
  return {
17
6
  defaultProps: {
18
7
  color: 'primary',
@@ -37,13 +26,19 @@ export var createMuiOutlinedInputOverrides = function (_a) {
37
26
  _b["&:hover .".concat(outlinedInputClasses.notchedOutline)] = {
38
27
  borderColor: tokens.color_border_input_hover,
39
28
  },
40
- _b["&.".concat(outlinedInputClasses.focused, " .").concat(outlinedInputClasses.notchedOutline)] = __assign({ borderWidth: 2, borderColor: tokens.color_border_focus_bold }, mixins.focusRing()),
41
- _b["&.".concat(outlinedInputClasses.focused, ":hover .").concat(outlinedInputClasses.notchedOutline)] = __assign({ borderColor: tokens.color_border_focus_bold }, mixins.focusRing()),
29
+ _b["&.".concat(outlinedInputClasses.focused, " .").concat(outlinedInputClasses.notchedOutline)] = {
30
+ borderWidth: 2,
31
+ borderColor: tokens.color_border_focus,
32
+ },
33
+ _b["&.".concat(outlinedInputClasses.focused, ":hover .").concat(outlinedInputClasses.notchedOutline)] = {
34
+ borderColor: tokens.color_border_focus,
35
+ },
42
36
  _b["&.".concat(outlinedInputClasses.error, " .").concat(outlinedInputClasses.notchedOutline)] = {
43
37
  borderColor: tokens.color_border_state_danger,
44
- borderWidth: 2,
45
38
  },
46
- _b["&.".concat(outlinedInputClasses.error, "&.").concat(outlinedInputClasses.focused, " .").concat(outlinedInputClasses.notchedOutline)] = __assign({ borderColor: tokens.color_border_state_danger }, mixins.focusRing({ color: tokens.color_border_focus_state_danger })),
39
+ _b["&.".concat(outlinedInputClasses.error, "&.").concat(outlinedInputClasses.focused, " .").concat(outlinedInputClasses.notchedOutline)] = {
40
+ borderColor: tokens.color_border_focus_state_danger,
41
+ },
47
42
  _b),
48
43
  notchedOutline: {
49
44
  top: 0,
@@ -24,7 +24,7 @@ export var createMuiRadioOverrides = function (_a) {
24
24
  duration: transitions.duration.short,
25
25
  }),
26
26
  color: tokens.color_border_input,
27
- '&:focus-within svg': __assign({ borderRadius: '50%' }, mixins.focusRing()),
27
+ '&:focus-within svg': __assign({ borderRadius: '50%', outlineOffset: 2 }, mixins.focusRing()),
28
28
  // switch base is overriding this. Resetting it here.
29
29
  '&&': {
30
30
  padding: 0,
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { switchClasses } from '@mui/material/Switch';
2
13
  var SWITCH_DIMENSIONS = {
3
14
  heightPx: 24,
@@ -19,7 +30,7 @@ export var createMuiSwitchOverrides = function (_a) {
19
30
  padding: 0,
20
31
  overflow: 'visible',
21
32
  '&:focus-within,&.Mui-focused': (_b = {},
22
- _b["& .".concat(switchClasses.track)] = mixins.focusRing(),
33
+ _b["& .".concat(switchClasses.track)] = __assign({ outlineOffset: 2 }, mixins.focusRing()),
23
34
  _b),
24
35
  },
25
36
  colorPrimary: (_c = {
@@ -1,18 +1,7 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { tabClasses } from '@mui/material/Tab';
13
2
  export var createMuiTabOverrides = function (_a) {
14
3
  var _b, _c;
15
- var tokens = _a.tokens, spacing = _a.spacing, breakpoints = _a.breakpoints, typography = _a.typography, mixins = _a.mixins;
4
+ var tokens = _a.tokens, spacing = _a.spacing, breakpoints = _a.breakpoints, typography = _a.typography;
16
5
  return {
17
6
  variants: [
18
7
  {
@@ -45,7 +34,9 @@ export var createMuiTabOverrides = function (_a) {
45
34
  _c['&:hover'] = {
46
35
  color: tokens.color_fg_selected,
47
36
  },
48
- _c['&:focus-visible'] = __assign({}, mixins.focusRing({ type: 'inset' })),
37
+ _c['&:focus-visible'] = {
38
+ boxShadow: "0 0 0 2px ".concat(tokens.color_border_focus, " inset"),
39
+ },
49
40
  _c.color = tokens.color_fg_link_subtle,
50
41
  _c.fontWeight = typography.fontWeightRegular,
51
42
  _c),
@@ -9,7 +9,7 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- import { alpha, getContrastRatio } from '../styles/color-manipulator';
12
+ import { getContrastRatio } from '../styles/color-manipulator';
13
13
  import { shadeMap } from './colors';
14
14
  export var createMixins = function (_a) {
15
15
  var palette = _a.palette, tokens = _a.tokens, _b = _a.overrides, overrides = _b === void 0 ? {} : _b;
@@ -37,10 +37,9 @@ export var createMixins = function (_a) {
37
37
  };
38
38
  var focusRing = function (options) {
39
39
  if (options === void 0) { options = {}; }
40
- var _a = options.color, color = _a === void 0 ? tokens.color_border_focus_bold : _a, _b = options.type, type = _b === void 0 ? 'default' : _b, _c = options.opacity, opacity = _c === void 0 ? palette.mode === 'light' ? 0.25 : 0.5 : _c;
41
- var shadow = "".concat(opacity === 1 ? color : alpha(color, opacity), " 0px 0px 0px 0.25em");
40
+ var _a = options.color, color = _a === void 0 ? tokens.color_border_focus : _a;
42
41
  return {
43
- boxShadow: type === 'default' ? shadow : "inset ".concat(shadow),
42
+ outline: "2px solid ".concat(color),
44
43
  };
45
44
  };
46
45
  var borderAsBoxShadow = function (color, width) {
@@ -58,7 +57,7 @@ export var createMixins = function (_a) {
58
57
  },
59
58
  hover: hoverStyles,
60
59
  active: hoverStyles,
61
- focus: __assign({ color: tokens.color_fg_inverse_static }, focusRing({ color: tokens.color_border_focus_inverse_static, opacity: 1 })),
60
+ focus: __assign({ color: tokens.color_fg_inverse_static }, focusRing({ color: tokens.color_border_focus_inverse_static })),
62
61
  };
63
62
  };
64
63
  var getColorModeValue = function (_a) {