@auth0/quantum-product 1.11.1 → 2.0.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/accordion/accordion-details.d.ts +1 -1
- package/accordion/accordion-summary.d.ts +1 -1
- package/accordion/accordion.d.ts +4 -4
- package/alert/alert-classes.d.ts +2 -2
- package/alert/alert.d.ts +4 -4
- package/app-bar/app-bar-actions/app-bar-actions.d.ts +1 -1
- package/app-bar/app-bar-button/app-bar-button.d.ts +2 -2
- package/app-bar/app-bar-content/app-bar-content.d.ts +1 -1
- package/app-bar/app-bar-divider/app-bar-divider.d.ts +1 -1
- package/app-bar/app-bar-icon-button/app-bar-icon-button.d.ts +2 -2
- package/app-bar/app-bar.d.ts +1 -1
- package/app-layout/app-layout-classes.d.ts +3 -3
- package/app-layout/app-layout.d.ts +1 -1
- package/avatar/avatar-classes.d.ts +2 -2
- package/avatar/avatar-context.d.ts +3 -3
- package/avatar/avatar.d.ts +1 -1
- package/avatar-block/avatar-block-classes.d.ts +3 -3
- package/avatar-block/avatar-block.d.ts +2 -2
- package/badge/badge.d.ts +1 -1
- package/banner/banner-classes.d.ts +2 -2
- package/banner/banner.d.ts +1 -1
- package/breadcrumbs/breadcrumbs-item/breadcrumbs-item-classes.d.ts +2 -2
- package/breadcrumbs/breadcrumbs-item/breadcrumbs-item.d.ts +2 -2
- package/breadcrumbs/breadcrumbs-overrides.d.ts +2 -2
- package/breadcrumbs/breadcrumbs-overrides.js +17 -1
- package/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/button/button-overrides.js +16 -2
- package/button/button.d.ts +2 -2
- package/card/card-context.d.ts +1 -1
- package/card/card-header/card-header-classes.d.ts +2 -2
- package/card/card-header/card-header.d.ts +1 -1
- package/card/card-header/card-header.js +1 -1
- package/card/card.d.ts +1 -1
- package/card/card.js +1 -1
- package/checkbox/checkbox-classes.d.ts +2 -2
- package/checkbox/checkbox-overrides.js +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox-field/checkbox-field.d.ts +3 -3
- package/chip/chip-overrides.js +1 -5
- package/chip/chip.d.ts +1 -1
- package/chip/chip.js +1 -7
- package/code/code.d.ts +1 -1
- package/column-layout/column-layout.d.ts +2 -2
- package/config-block/config-block-classes.d.ts +2 -2
- package/config-block/config-block.d.ts +2 -1
- package/copy-button/copy-button.d.ts +1 -1
- package/danger-zone/danger-zone-item/danger-zone-item.d.ts +1 -1
- package/danger-zone/danger-zone-item-action/danger-zone-item-action.d.ts +2 -2
- package/data-table/data-table-row.d.ts +1 -1
- package/data-table/data-table-types.d.ts +4 -4
- package/data-table/data-table.d.ts +1 -1
- package/description-block/description-block.d.ts +1 -1
- package/dialog/dialog-title/dialog-title-classes.d.ts +2 -2
- package/dialog/dialog-title/dialog-title.d.ts +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/divider/index.d.ts +1 -1
- package/dropdown-menu/dropdown-menu-classes.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-divider/dropdown-menu-divider.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-group/dropdown-menu-group-classes.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-item/dropdown-menu-item.d.ts +1 -1
- package/dropdown-menu/dropdown-menu-list/dropdown-menu-list.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-list-item/dropdown-menu-list-item-classes.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-list-item/dropdown-menu-list-item.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-search/dropdown-menu-search-classes.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-search/dropdown-menu-search.d.ts +2 -2
- package/dropdown-menu/dropdown-menu-state/dropdown-menu-state.d.ts +2 -2
- package/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/empty-state/empty-state-action/empty-state-action.d.ts +1 -1
- package/empty-state/empty-state-classes.d.ts +2 -2
- package/esm/breadcrumbs/breadcrumbs-overrides.js +17 -1
- package/esm/button/button-overrides.js +16 -2
- package/esm/card/card-header/card-header.js +1 -1
- package/esm/card/card.js +1 -1
- package/esm/checkbox/checkbox-overrides.js +1 -1
- package/esm/chip/chip-overrides.js +1 -5
- package/esm/chip/chip.js +1 -7
- package/esm/icon-button/icon-button-overrides.js +54 -24
- package/esm/input/outlined-input-overrides.js +11 -16
- package/esm/radio/radio-overrides.js +1 -1
- package/esm/switch/switch-overrides.js +12 -1
- package/esm/tabs/tab/tab-override.js +4 -13
- package/esm/theme/create-mixins.js +4 -5
- package/expansion-panel/expansion-panel-details.d.ts +1 -1
- package/expansion-panel/expansion-panel-header.d.ts +1 -1
- package/expansion-panel/expansion-panel-summary.d.ts +1 -1
- package/expansion-panel/expansion-panel.d.ts +1 -1
- package/field-set/field-set-classes.d.ts +2 -2
- package/field-set/field-set.d.ts +2 -2
- package/floating-panel/floating-panel.d.ts +1 -1
- package/form/form-actions/form-actions-classes.d.ts +2 -2
- package/form/form-actions/form-actions.d.ts +2 -2
- package/form/form-control-label/form-control-label-classes.d.ts +2 -2
- package/form/form-control-label/form-control-label.d.ts +2 -2
- package/form/form-field/form-field-classes.d.ts +2 -2
- package/form/form-field/form-field.d.ts +2 -2
- package/form/form-helper-text/index.d.ts +1 -1
- package/form/form-layout/form-layout-context.d.ts +1 -1
- package/foundations/token-tables.d.ts +5 -5
- package/gallery-layout/gallery-layout-item/gallery-layout-item.d.ts +1 -1
- package/gallery-layout/gallery-layout.d.ts +2 -2
- package/icon/index.d.ts +344 -344
- package/icon/types.d.ts +1 -1
- package/icon-button/icon-button-overrides.js +54 -24
- package/icon-button/icon-button.d.ts +3 -3
- package/identicons/common.d.ts +1 -1
- package/identicons/icons/icon-access-token.d.ts +2 -2
- package/identicons/icons/icon-account-takeover.d.ts +2 -2
- package/identicons/icons/icon-actions.d.ts +2 -2
- package/identicons/icons/icon-activity.d.ts +2 -2
- package/identicons/icons/icon-advanced-options.d.ts +2 -2
- package/identicons/icons/icon-anticipation.d.ts +2 -2
- package/identicons/icons/icon-api-related.d.ts +2 -2
- package/identicons/icons/icon-api.d.ts +2 -2
- package/identicons/icons/icon-applications.d.ts +2 -2
- package/identicons/icons/icon-attributes.d.ts +2 -2
- package/identicons/icons/icon-auth0-authorization-server.d.ts +2 -2
- package/identicons/icons/icon-auth0-dashboard.d.ts +2 -2
- package/identicons/icons/icon-auth0-logo-dark.d.ts +2 -2
- package/identicons/icons/icon-auth0-logo-light.d.ts +2 -2
- package/identicons/icons/icon-authentication-a.d.ts +2 -2
- package/identicons/icons/icon-authentication-b.d.ts +2 -2
- package/identicons/icons/icon-authorization-server.d.ts +2 -2
- package/identicons/icons/icon-backend.d.ts +2 -2
- package/identicons/icons/icon-biometrics.d.ts +2 -2
- package/identicons/icons/icon-bot-detection.d.ts +2 -2
- package/identicons/icons/icon-boundary-protocol.d.ts +2 -2
- package/identicons/icons/icon-branding.d.ts +2 -2
- package/identicons/icons/icon-breached-password.d.ts +2 -2
- package/identicons/icons/icon-browser.d.ts +2 -2
- package/identicons/icons/icon-brute-force.d.ts +2 -2
- package/identicons/icons/icon-certificate.d.ts +2 -2
- package/identicons/icons/icon-cli-script.d.ts +2 -2
- package/identicons/icons/icon-cloud.d.ts +2 -2
- package/identicons/icons/icon-consistency.d.ts +2 -2
- package/identicons/icons/icon-cookies.d.ts +2 -2
- package/identicons/icons/icon-credential-application.d.ts +2 -2
- package/identicons/icons/icon-credential-stuffing.d.ts +2 -2
- package/identicons/icons/icon-credential-user.d.ts +2 -2
- package/identicons/icons/icon-customization.d.ts +2 -2
- package/identicons/icons/icon-dashboard.d.ts +2 -2
- package/identicons/icons/icon-database.d.ts +2 -2
- package/identicons/icons/icon-desktop-app.d.ts +2 -2
- package/identicons/icons/icon-device-biometrics.d.ts +2 -2
- package/identicons/icons/icon-efficiency.d.ts +2 -2
- package/identicons/icons/icon-empathy.d.ts +2 -2
- package/identicons/icons/icon-enterprise-directory.d.ts +2 -2
- package/identicons/icons/icon-extensions.d.ts +2 -2
- package/identicons/icons/icon-fine-grained-authorization.d.ts +2 -2
- package/identicons/icons/icon-getting-started.d.ts +2 -2
- package/identicons/icons/icon-guardian-push-notification.d.ts +2 -2
- package/identicons/icons/icon-help.d.ts +2 -2
- package/identicons/icons/icon-id-token.d.ts +2 -2
- package/identicons/icons/icon-identifier-first.d.ts +2 -2
- package/identicons/icons/icon-identifier-password.d.ts +2 -2
- package/identicons/icons/icon-integrations-marketplace.d.ts +2 -2
- package/identicons/icons/icon-ip-throttling.d.ts +2 -2
- package/identicons/icons/icon-login-customization.d.ts +2 -2
- package/identicons/icons/icon-login.d.ts +2 -2
- package/identicons/icons/icon-logout-token.d.ts +2 -2
- package/identicons/icons/icon-logs.d.ts +2 -2
- package/identicons/icons/icon-mail-message-a.d.ts +2 -2
- package/identicons/icons/icon-mail-message-b.d.ts +2 -2
- package/identicons/icons/icon-marketplace-approved.d.ts +2 -2
- package/identicons/icons/icon-marketplace-create.d.ts +2 -2
- package/identicons/icons/icon-mobile-app.d.ts +2 -2
- package/identicons/icons/icon-monitoring.d.ts +2 -2
- package/identicons/icons/icon-multifactor.d.ts +2 -2
- package/identicons/icons/icon-multiple-failed-logins.d.ts +2 -2
- package/identicons/icons/icon-one-time-password.d.ts +2 -2
- package/identicons/icons/icon-organizations.d.ts +2 -2
- package/identicons/icons/icon-phone-message-a.d.ts +2 -2
- package/identicons/icons/icon-phone-message-b.d.ts +2 -2
- package/identicons/icons/icon-pipeline-a.d.ts +2 -2
- package/identicons/icons/icon-pipeline-b.d.ts +2 -2
- package/identicons/icons/icon-refresh-token.d.ts +2 -2
- package/identicons/icons/icon-sdk.d.ts +2 -2
- package/identicons/icons/icon-security.d.ts +2 -2
- package/identicons/icons/icon-server.d.ts +2 -2
- package/identicons/icons/icon-settings.d.ts +2 -2
- package/identicons/icons/icon-social-providers.d.ts +2 -2
- package/identicons/icons/icon-spa.d.ts +2 -2
- package/identicons/icons/icon-teams.d.ts +2 -2
- package/identicons/icons/icon-tenant.d.ts +2 -2
- package/identicons/icons/icon-user-database.d.ts +2 -2
- package/identicons/icons/icon-user-management.d.ts +2 -2
- package/identicons/icons/icon-user.d.ts +2 -2
- package/identicons/icons/icon-users.d.ts +2 -2
- package/identicons/icons/icon-video.d.ts +2 -2
- package/identicons/icons/icon-web-app.d.ts +2 -2
- package/identicons/icons/icon-webauthn.d.ts +2 -2
- package/illustrations/common.d.ts +1 -1
- package/illustrations/components/experienced-user.d.ts +2 -2
- package/illustrations/components/new-auth0-user-a.d.ts +2 -2
- package/illustrations/components/notifications.d.ts +2 -2
- package/illustrations/components/roles.d.ts +2 -2
- package/illustrations/components/single-sign-on.d.ts +2 -2
- package/illustrations/components/streams-logs.d.ts +2 -2
- package/illustrations/components/users.d.ts +2 -2
- package/image/image.d.ts +2 -2
- package/image-preview-field/image-preview-field.d.ts +2 -1
- package/input/input-adornment/input-adornment.d.ts +1 -1
- package/input/input.d.ts +2 -2
- package/input/outlined-input-overrides.js +11 -16
- package/label/label.d.ts +2 -2
- package/link/link-classes.d.ts +2 -2
- package/link/link.d.ts +3 -3
- package/logo/logo-classes.d.ts +2 -2
- package/logo/logo.d.ts +3 -3
- package/overridable-component.d.ts +2 -2
- package/package.json +2 -2
- package/page/page-header/page-header-classes.d.ts +2 -2
- package/page/page-header/page-header.d.ts +1 -1
- package/page/page.d.ts +1 -1
- package/pagination/pager/pager-classes.d.ts +2 -2
- package/pagination/pagination-classes.d.ts +2 -2
- package/pagination/pagination.d.ts +1 -1
- package/panel/panel/panel-classes.d.ts +2 -2
- package/panel/panel/panel.d.ts +2 -2
- package/panel/panel-body/panel-body.d.ts +1 -1
- package/panel/panel-context.d.ts +3 -3
- package/panel/panel-footer/panel-footer.d.ts +1 -1
- package/panel/panel-header/panel-header-classes.d.ts +2 -2
- package/panel/panel-header/panel-header.d.ts +2 -2
- package/panel/panel-layout/panel-layout-classes.d.ts +2 -2
- package/panel/panel-layout/panel-layout.d.ts +1 -1
- package/promo-banner/promo-banner-classes.d.ts +2 -2
- package/promo-banner/promo-banner.d.ts +1 -1
- package/pulsing-dot/pulsing-dot.d.ts +2 -2
- package/quantum-provider/quantum-context.d.ts +1 -1
- package/radio/radio-classes.d.ts +2 -2
- package/radio/radio-overrides.js +1 -1
- package/radio/radio.d.ts +1 -1
- package/radio-field/radio-field.d.ts +3 -3
- package/region/flags.d.ts +6 -6
- package/region/region-classes.d.ts +2 -2
- package/region/region.d.ts +3 -3
- package/row-layout/row-layout.d.ts +1 -1
- package/select/select-classes.d.ts +2 -2
- package/select/select-menu/select-menu.d.ts +1 -1
- package/select/select-menu-actions/select-menu-actions.d.ts +1 -1
- package/select/select-menu-body/select-menu-body.d.ts +1 -1
- package/select/select-menu-header/select-menu-header.d.ts +1 -1
- package/select/select-options.d.ts +2 -2
- package/selectable-card/selectable-card-classes.d.ts +2 -2
- package/selectable-card/selectable-card-group/selectable-card-group-classes.d.ts +2 -2
- package/selectable-card/selectable-card-group/selectable-card-group.d.ts +2 -1
- package/selectable-card/selectable-card.d.ts +2 -2
- package/sidebar/sidebar-banner/sidebar-banner.d.ts +1 -1
- package/sidebar/sidebar-classes.d.ts +2 -2
- package/sidebar/sidebar-items/sidebar-items.d.ts +1 -1
- package/sidebar/sidebar-link/sidebar-link-classes.d.ts +2 -2
- package/sidebar/sidebar-link/sidebar-link.d.ts +1 -1
- package/sidebar/sidebar-menu/sidebar-menu-classes.d.ts +2 -2
- package/sidebar/sidebar-menu/sidebar-menu.d.ts +1 -1
- package/sidebar/sidebar-new.d.ts +1 -1
- package/sidebar/sidebar-old.d.ts +1 -1
- package/sidebar/sidebar.d.ts +1 -1
- package/spinner/spinner-classes.d.ts +2 -2
- package/spinner/spinner.d.ts +1 -1
- package/stack-layout/stack-layout-item/stack-layout-item.d.ts +1 -1
- package/stack-layout/stack-layout.d.ts +1 -1
- package/status/status-dot/status-dot-classes.d.ts +2 -2
- package/status/status-dot/status-dot.d.ts +2 -2
- package/status/status-icon/status-icon-classes.d.ts +2 -2
- package/status/status-icon/status-icon.d.ts +3 -3
- package/stepper/step-label/step-label.d.ts +1 -1
- package/styled.d.ts +2 -2
- package/svg-icon/svg-icon.d.ts +1 -1
- package/switch/switch-classes.d.ts +2 -2
- package/switch/switch-field/switch-field.d.ts +3 -2
- package/switch/switch-overrides.js +12 -1
- package/switch/switch.d.ts +1 -1
- package/table/table-empty-state/table-empty-state.d.ts +1 -1
- package/table/table-loading-state/table-loading-state-classes.d.ts +2 -2
- package/table/table-loading-state/table-loading-state.d.ts +1 -1
- package/table/table-sort-label/index.d.ts +2 -2
- package/tabs/tab/tab-override.js +4 -13
- package/tabs/tab/tab.d.ts +2 -2
- package/tabs/tab-list/tab-list.d.ts +1 -1
- package/tabs/tab-panel/tab-panel.d.ts +1 -1
- package/tabs/tabs.d.ts +1 -0
- package/text/index.d.ts +1 -1
- package/theme/colors.d.ts +4 -4
- package/theme/create-component-overrides.d.ts +1 -1
- package/theme/create-components.d.ts +1 -1
- package/theme/create-layout.d.ts +1 -1
- package/theme/create-mixins.d.ts +1 -1
- package/theme/create-mixins.js +3 -4
- package/theme/create-palette.d.ts +7 -7
- package/theme/create-theme.d.ts +2 -2
- package/theme/create-typography.d.ts +2 -2
- package/theme/tokens.d.ts +15 -15
- package/title-block/title-block-classes.d.ts +3 -3
- package/toast/toast-classes.d.ts +2 -2
- package/toast/toast.d.ts +1 -1
- package/utils/layouts.d.ts +1 -1
- package/utils/responsive-style-value.d.ts +2 -2
|
@@ -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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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)] =
|
|
41
|
-
|
|
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)] =
|
|
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
|
|
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'] =
|
|
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 {
|
|
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.
|
|
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
|
-
|
|
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
|
|
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) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import AccordionDetails, { AccordionDetailsProps } from '@mui/material/AccordionDetails';
|
|
2
|
-
export
|
|
2
|
+
export type IExpansionPanelDetailsProps = AccordionDetailsProps;
|
|
3
3
|
export declare const ExpansionPanelDetails: import("styled-components").StyledComponent<typeof AccordionDetails, import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme>, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ICardHeaderProps } from '../card';
|
|
3
|
-
export
|
|
3
|
+
export type IExpansionPanelHeaderProps = ICardHeaderProps;
|
|
4
4
|
export declare const ExpansionPanelHeader: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Partial<import("../card").ICardContextValue> & {
|
|
5
5
|
action?: import("react").ReactNode;
|
|
6
6
|
avatar?: import("react").ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AccordionSummaryProps } from '@mui/material/AccordionSummary';
|
|
2
|
-
export
|
|
2
|
+
export type IExpansionPanelSummaryProps = AccordionSummaryProps;
|
|
3
3
|
export declare const ExpansionPanelSummary: import("styled-components").StyledComponent<import("@mui/material").ExtendButtonBase<import("@mui/material/AccordionSummary").AccordionSummaryTypeMap<{}, "div">>, import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme>, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AccordionProps } from '@mui/material/Accordion';
|
|
2
|
-
export
|
|
2
|
+
export type IExpansionPanelProps = AccordionProps;
|
|
3
3
|
export declare const ExpansionPanel: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/Accordion").AccordionTypeMap<{}, "div">>, import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme>, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const fieldSetComponentName: "QuantumFieldSet";
|
|
2
2
|
export declare function getFieldSetUtilityClass(slot: string): string;
|
|
3
3
|
export declare const fieldSetClasses: Record<"root" | "availabilityLabel" | "labelContent" | "labelText" | "descriptionText" | "contentWrapper", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type FieldSetClasses = typeof fieldSetClasses;
|
|
5
|
+
export type FieldSetClassKey = keyof FieldSetClasses;
|
package/field-set/field-set.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { IFormLayoutProps } from '../form';
|
|
|
3
3
|
import { ILabelProps } from '../label';
|
|
4
4
|
import { IStyledComponentProps } from '../styled';
|
|
5
5
|
import { FieldSetClasses } from './field-set-classes';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type IFieldSetOwnerState = Pick<IFieldSetProps, 'layout'>;
|
|
7
|
+
export type IFieldSetProps = IStyledComponentProps<{
|
|
8
8
|
props: Pick<IFormLayoutProps, 'layout'> & Pick<ILabelProps, 'productReleaseStage'> & {
|
|
9
9
|
label?: React.ReactNode;
|
|
10
10
|
description?: React.ReactNode;
|
|
@@ -12,7 +12,7 @@ export interface IFloatingPanelOwnerState {
|
|
|
12
12
|
onClose?: (() => void) | undefined;
|
|
13
13
|
open: boolean;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type IFloatingPanelProps = IStyledComponentProps<{
|
|
16
16
|
props: IFloatingPanelOwnerState;
|
|
17
17
|
children: React.ReactNode;
|
|
18
18
|
defaultComponent: 'div';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const formActionsComponentName: "QuantumFormActions";
|
|
2
2
|
export declare function getFormActionsUtilityClass(slot: string): string;
|
|
3
3
|
export declare const formActionsClasses: Record<"root" | "actions", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type FormActionsClasses = typeof formActionsClasses;
|
|
5
|
+
export type FormActionsClassKey = keyof FormActionsClasses;
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { IFormLayoutProps } from '../form-layout';
|
|
3
3
|
import { IStyledComponentProps } from '../../styled';
|
|
4
4
|
import { FormActionsClasses } from './form-actions-classes';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type IFormActionsOwnerState = Pick<IFormActionsProps, 'layout' | 'disableSpacing'>;
|
|
6
|
+
export type IFormActionsProps = IStyledComponentProps<{
|
|
7
7
|
props: Pick<IFormLayoutProps, 'layout'> & {
|
|
8
8
|
disableSpacing?: boolean;
|
|
9
9
|
classes?: Partial<FormActionsClasses>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const formControlLabelComponentName: "QuantumFormControlLabel";
|
|
2
2
|
export declare function getFormControlLabelUtilityClass(slot: string): string;
|
|
3
3
|
export declare const formControlLabelClasses: Record<"label" | "container" | "root" | "decoration" | "helperText" | "labelContainer" | "controlLabel", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type FormControlLabelClasses = typeof formControlLabelClasses;
|
|
5
|
+
export type FormControlLabelClassKey = keyof FormControlLabelClasses;
|
|
@@ -11,5 +11,5 @@ export interface IFormControlLabelProps extends Omit<FormControlLabelProps, 'lab
|
|
|
11
11
|
decoration?: React.ReactNode;
|
|
12
12
|
classes?: Partial<FormControlLabelClasses>;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
15
|
-
export declare const FormControlLabel: React.ForwardRefExoticComponent<
|
|
14
|
+
export type IFormControlLabelOwnerState = Pick<IFormControlLabelProps, 'noWrap' | 'height'>;
|
|
15
|
+
export declare const FormControlLabel: React.ForwardRefExoticComponent<Omit<IFormControlLabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const formFieldComponentName: "QuantumFormField";
|
|
2
2
|
export declare function getFormFieldUtilityClass(slot: string): string;
|
|
3
3
|
export declare const formFieldClasses: Record<"label" | "error" | "root" | "helperText", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type FormFieldClasses = typeof formFieldClasses;
|
|
5
|
+
export type FormFieldClassKey = keyof FormFieldClasses;
|
|
@@ -8,7 +8,7 @@ export interface IFormControlRenderProps {
|
|
|
8
8
|
helperTextId?: string;
|
|
9
9
|
errorTextId?: string;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type FormControlRenderer = (props: IFormControlRenderProps) => React.ReactNode;
|
|
12
12
|
export interface IFormFieldProps extends Omit<IFormControlProps, 'onChange' | 'defaultValue' | 'color' | 'error' | 'children'> {
|
|
13
13
|
name?: string;
|
|
14
14
|
/** Props applied to the [`FormHelperText`](/api/form-helper-text/) element. */
|
|
@@ -29,4 +29,4 @@ export interface IFormFieldProps extends Omit<IFormControlProps, 'onChange' | 'd
|
|
|
29
29
|
children?: React.ReactNode | FormControlRenderer;
|
|
30
30
|
classes?: Partial<FormFieldClasses>;
|
|
31
31
|
}
|
|
32
|
-
export declare const FormField: React.ForwardRefExoticComponent<
|
|
32
|
+
export declare const FormField: React.ForwardRefExoticComponent<Omit<IFormFieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FormHelperTextProps } from '@mui/material/FormHelperText';
|
|
3
|
-
export
|
|
3
|
+
export type IFormHelperTextProps = Omit<FormHelperTextProps, 'variant'>;
|
|
4
4
|
export declare const FormHelperText: import("react").ComponentType<FormHelperTextProps<"p", {}>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ColorTokens: () => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ColorTokens: () => React.JSX.Element;
|
|
3
3
|
export declare const ThemeTokens: ({ mode }: {
|
|
4
4
|
mode: 'light' | 'dark';
|
|
5
|
-
}) => JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
6
|
export declare const TypographyTokens: ({ variant }: {
|
|
7
7
|
variant: any;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export declare const TypographyGlobalTokens: ({ variant }: {
|
|
10
10
|
variant: any;
|
|
11
|
-
}) => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -7,9 +7,9 @@ export declare const gallerylayoutSizes: {
|
|
|
7
7
|
medium: string;
|
|
8
8
|
large: string;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type GalleryLayoutSize = keyof typeof gallerylayoutSizes;
|
|
11
11
|
export declare const getValueForGalleryLayoutSize: (size: GalleryLayoutSize | null) => string | null;
|
|
12
|
-
export
|
|
12
|
+
export type IGalleryLayoutProps = IStyledComponentProps<{
|
|
13
13
|
props: ILayoutComponentProps & {
|
|
14
14
|
size?: ResponsiveStyleValue<GalleryLayoutSize>;
|
|
15
15
|
};
|