@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,4 +1,4 @@
|
|
|
1
1
|
import MuiAccordionDetails, { AccordionDetailsProps } from '@mui/material/AccordionDetails';
|
|
2
2
|
export declare const AccordionDetailsComponentName: "QuantumAcccordionDetails";
|
|
3
|
-
export
|
|
3
|
+
export type IAccordionDetailsProps = AccordionDetailsProps;
|
|
4
4
|
export declare const AccordionDetails: import("styled-components").StyledComponent<typeof MuiAccordionDetails, import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme>, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AccordionSummaryProps } from '@mui/material/AccordionSummary';
|
|
2
2
|
export declare const AccordionSummaryComponentName: "QuantumAcccordionSummary";
|
|
3
|
-
export
|
|
3
|
+
export type IAccordionSummaryProps = AccordionSummaryProps;
|
|
4
4
|
export declare const AccordionSummary: import("styled-components").StyledComponent<import("@mui/material").ExtendButtonBase<import("@mui/material/AccordionSummary").AccordionSummaryTypeMap<{}, "div">>, import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme>, never>;
|
package/accordion/accordion.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AccordionProps as MuiAccordionProps } from '@mui/material/Accordion';
|
|
3
3
|
export declare const AccordionComponentName: "QuantumAcccordion";
|
|
4
|
-
export
|
|
4
|
+
export type IAccordionProps = MuiAccordionProps;
|
|
5
5
|
export declare const Accordion: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/Accordion").AccordionTypeMap<{}, "div">>, import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme> & {
|
|
6
|
-
children:
|
|
6
|
+
children: NonNullable<import("react").ReactNode>;
|
|
7
7
|
classes?: Partial<import("@mui/material/Accordion").AccordionClasses> | undefined;
|
|
8
8
|
defaultExpanded?: boolean | undefined;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
@@ -15,8 +15,8 @@ export declare const Accordion: import("styled-components").StyledComponent<impo
|
|
|
15
15
|
children?: import("react").ReactElement<any, any> | undefined;
|
|
16
16
|
}> | undefined;
|
|
17
17
|
TransitionProps?: import("@mui/material/transitions").TransitionProps | undefined;
|
|
18
|
-
} & import("@mui/material/Accordion").AccordionSlotsAndSlotProps & Omit<import("@mui/material").PaperOwnProps, "classes" | "onChange"> & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
18
|
+
} & import("@mui/material/Accordion").AccordionSlotsAndSlotProps & Omit<import("@mui/material").PaperOwnProps, "classes" | "onChange"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
19
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
20
20
|
}, "disabled" | "expanded" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "elevation" | "sx" | "variant" | "onChange" | "TransitionComponent" | "disableGutters" | "defaultExpanded" | "TransitionProps" | keyof import("@mui/material/Accordion").AccordionSlotsAndSlotProps> & {
|
|
21
|
-
component?: import("react").ElementType<any> | undefined;
|
|
21
|
+
component?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
22
|
}, never>;
|
package/alert/alert-classes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const alertComponentName: "QuantumAlert";
|
|
2
2
|
export declare function getAlertUtilityClass(slot: string): string;
|
|
3
3
|
export declare const alertClasses: Record<"title" | "action" | "content" | "icon" | "root" | "message", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type AlertClasses = typeof alertClasses;
|
|
5
|
+
export type AlertClassKey = keyof AlertClasses;
|
package/alert/alert.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IStyledComponentProps } from '../styled';
|
|
3
3
|
import { AlertClasses } from './alert-classes';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
export type AlertSeverityType = 'default' | 'success' | 'info' | 'danger' | 'warning';
|
|
5
|
+
export type AlertVariantType = 'standard' | 'outlined';
|
|
6
|
+
export type IAlertProps = IStyledComponentProps<{
|
|
7
7
|
props: {
|
|
8
8
|
/**
|
|
9
9
|
* The action to display. It renders after the message, at the end of the alert.
|
|
@@ -74,7 +74,7 @@ export declare type IAlertProps = IStyledComponentProps<{
|
|
|
74
74
|
};
|
|
75
75
|
defaultComponent: 'div';
|
|
76
76
|
}>;
|
|
77
|
-
export
|
|
77
|
+
export type IAlertOwnerState = Pick<IAlertProps, 'severity' | 'variant' | 'elevation'>;
|
|
78
78
|
export declare const Alert: React.ForwardRefExoticComponent<{
|
|
79
79
|
/**
|
|
80
80
|
* The action to display. It renders after the message, at the end of the alert.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IStyledComponentProps } from '../../styled';
|
|
3
3
|
export declare const AppBarActionsComponentName: "QuantumAppBarActions";
|
|
4
|
-
export
|
|
4
|
+
export type IAppBarActionsProps = IStyledComponentProps<{
|
|
5
5
|
props: {
|
|
6
6
|
disableSpacing?: boolean;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { IButtonProps } from '../../button';
|
|
3
3
|
import { ExtendButton, IExtendButtonTypeMap } from '../../button/button';
|
|
4
4
|
import { OverrideProps } from '../../overridable-component';
|
|
5
|
-
|
|
5
|
+
type IAppBarButtonTypeMap<P = {}, D extends React.ElementType = 'button'> = IExtendButtonTypeMap<{
|
|
6
6
|
props: P & {
|
|
7
7
|
color?: never;
|
|
8
8
|
variant?: 'outlined' | 'link';
|
|
@@ -13,6 +13,6 @@ declare type IAppBarButtonTypeMap<P = {}, D extends React.ElementType = 'button'
|
|
|
13
13
|
};
|
|
14
14
|
defaultComponent: D;
|
|
15
15
|
}>;
|
|
16
|
-
export
|
|
16
|
+
export type IAppBarButtonProps<ElementType extends React.ElementType = IAppBarButtonTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<IAppBarButtonTypeMap<AdditionalProps, ElementType>, ElementType>;
|
|
17
17
|
export declare const AppBarButton: ExtendButton<IAppBarButtonTypeMap<{}, "button">>;
|
|
18
18
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IStyledComponentProps } from '../../styled';
|
|
2
2
|
export declare const AppBarContentComponentName: "QuantumAppBarContent";
|
|
3
|
-
export
|
|
3
|
+
export type IAppBarContentProps = IStyledComponentProps<{
|
|
4
4
|
props: {};
|
|
5
5
|
defaultComponent: 'div';
|
|
6
6
|
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IDividerProps } from '../../divider';
|
|
2
|
-
export
|
|
2
|
+
export type IAppBarDividerProps = IDividerProps;
|
|
3
3
|
export declare const AppBarDivider: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").DividerTypeMap<{}, "hr">>, import("../..").ITheme, import("@mui/system").MUIStyledCommonProps<import("../..").ITheme>, never>;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { IExtendIconButtonTypeMap, ExtendIconButton } from '../../icon-button/icon-button';
|
|
3
3
|
import { IIconButtonProps } from '../../icon-button';
|
|
4
4
|
import { OverrideProps } from '../../overridable-component';
|
|
5
|
-
|
|
5
|
+
type IAppBarIconButtonTypeMap<P = {}, D extends React.ElementType = 'button'> = IExtendIconButtonTypeMap<{
|
|
6
6
|
props: P & {
|
|
7
7
|
color?: never;
|
|
8
8
|
size?: never;
|
|
@@ -14,6 +14,6 @@ declare type IAppBarIconButtonTypeMap<P = {}, D extends React.ElementType = 'but
|
|
|
14
14
|
};
|
|
15
15
|
defaultComponent: D;
|
|
16
16
|
}>;
|
|
17
|
-
export
|
|
17
|
+
export type IAppBarIconButtonProps<ElementType extends React.ElementType = IAppBarIconButtonTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<IAppBarIconButtonTypeMap<AdditionalProps, ElementType>, ElementType>;
|
|
18
18
|
export declare const AppBarIconButton: ExtendIconButton<IAppBarIconButtonTypeMap<{}, "button">>;
|
|
19
19
|
export {};
|
package/app-bar/app-bar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const appLayoutComponentName: "QuantumAppLayout";
|
|
2
|
-
export
|
|
2
|
+
export type AppLayoutSlotKey = 'root' | 'main' | 'container' | 'content';
|
|
3
3
|
export declare function getAppLayoutUtilityClass(slot: string): string;
|
|
4
4
|
export declare const appLayoutClasses: Record<"main" | "content" | "container" | "root", string>;
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type AppLayoutClasses = typeof appLayoutClasses;
|
|
6
|
+
export type AppLayoutClassKey = keyof AppLayoutClasses;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IStyledComponentProps } from '../styled';
|
|
3
|
-
export
|
|
3
|
+
export type IAppLayoutProps = IStyledComponentProps<{
|
|
4
4
|
props: {
|
|
5
5
|
appBar?: React.ReactNode;
|
|
6
6
|
sidebar?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const avatarComponentName: "QuantumAvatar";
|
|
2
2
|
export declare function getAvatarUtilityClass(slot: string): string;
|
|
3
3
|
export declare const avatarClasses: Record<"img" | "root" | "fallbackIcon", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type AvatarClasses = typeof avatarClasses;
|
|
5
|
+
export type AvatarClassKey = keyof AvatarClasses;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type AvatarSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
+
export type AvatarType = 'user' | 'resource' | 'logo';
|
|
4
|
+
export type AvatarVariant = 'circular' | 'rounded' | 'square';
|
|
5
5
|
export interface IAvatarContextValue {
|
|
6
6
|
/** The size of the avatar */
|
|
7
7
|
size?: AvatarSize;
|
package/avatar/avatar.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AvatarSize, AvatarVariant } from './avatar-context';
|
|
|
5
5
|
import { IAvatarImageProps } from './use-avatar-image';
|
|
6
6
|
import { AvatarClasses } from './avatar-classes';
|
|
7
7
|
import { ColorName } from '../theme/colors';
|
|
8
|
-
export
|
|
8
|
+
export type IAvatarProps = IStyledComponentProps<{
|
|
9
9
|
props: IAvatarImageProps & {
|
|
10
10
|
color?: 'default' | 'primary' | 'warning' | 'danger' | 'success' | 'info' | ColorName;
|
|
11
11
|
/** Provides an alt attribute for the rendered `img` element. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const avatarBlockComponentName: "QuantumAvatarBlock";
|
|
2
|
-
export
|
|
2
|
+
export type AvatarBlockSlotKey = 'root' | 'avatar' | 'titleBlock' | 'endAdornment';
|
|
3
3
|
export declare function getAvatarBlockUtilityClass(slot: string): string;
|
|
4
4
|
export declare const avatarBlockClasses: Record<"root" | "avatar" | "endAdornment" | "titleBlock", string>;
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type AvatarBlockClasses = typeof avatarBlockClasses;
|
|
6
|
+
export type AvatarBlockClassKey = keyof AvatarBlockClasses;
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { IStyledComponentProps } from '../styled';
|
|
3
3
|
import { ITitleBlockProps } from '../title-block';
|
|
4
4
|
import { AvatarBlockClasses } from './avatar-block-classes';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type AvatarBlockSize = 'medium' | 'large';
|
|
6
|
+
export type IAvatarBlockProps = IStyledComponentProps<{
|
|
7
7
|
props: Pick<ITitleBlockProps, 'title' | 'description' | 'titleTypographyProps' | 'descriptionTypographyProps'> & {
|
|
8
8
|
avatar?: React.ReactNode;
|
|
9
9
|
size?: 'medium' | 'large';
|
package/badge/badge.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import MuiBadge, { BadgeProps as MuiBadgeProps } from '@mui/material/Badge';
|
|
2
2
|
export declare const badgeComponentName: "QuantumBadge";
|
|
3
|
-
export
|
|
3
|
+
export type IBadgeProps = MuiBadgeProps;
|
|
4
4
|
export declare const Badge: typeof MuiBadge;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const bannerComponentName: "QuantumBanner";
|
|
2
2
|
export declare function getBannerUtilityClass(slot: string): string;
|
|
3
3
|
export declare const bannerClasses: Record<"content" | "root", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type BannerClasses = typeof bannerClasses;
|
|
5
|
+
export type BannerClassKey = keyof BannerClasses;
|
package/banner/banner.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface IBannerContentOwnerState {
|
|
|
5
5
|
padding?: number;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type IBannerProps = IStyledComponentProps<{
|
|
9
9
|
props: IBannerContentOwnerState;
|
|
10
10
|
defaultComponent: 'div';
|
|
11
11
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const BreadcrumbsItemComponentName: "QuantumBreadcrumbsItem";
|
|
2
2
|
export declare function getBreadcrumbsItemUtilityClass(slot: string): string;
|
|
3
3
|
export declare const breadcrumbsItemClasses: Record<"label" | "icon" | "root" | "endIcon" | "startIcon" | "current", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type BreadcrumbsItemClasses = typeof breadcrumbsItemClasses;
|
|
5
|
+
export type BreadcrumbsItemClassKey = keyof BreadcrumbsItemClasses;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BreadcrumbsItemClasses } from './breadcrumbs-item-classes';
|
|
3
3
|
import { OverrideProps } from '../../overridable-component';
|
|
4
4
|
import { ExtendLink, IExtendLinkTypeMap } from '../../link/link';
|
|
5
|
-
|
|
5
|
+
type BreadcrumbsItemTypeMap<P = {}, D extends React.ElementType = 'a'> = IExtendLinkTypeMap<{
|
|
6
6
|
props: P & {
|
|
7
7
|
/**
|
|
8
8
|
* Override or extend the styles applied to the component.
|
|
@@ -19,6 +19,6 @@ declare type BreadcrumbsItemTypeMap<P = {}, D extends React.ElementType = 'a'> =
|
|
|
19
19
|
};
|
|
20
20
|
defaultComponent: D;
|
|
21
21
|
}>;
|
|
22
|
-
export
|
|
22
|
+
export type IBreadcrumbsItemProps<D extends React.ElementType = BreadcrumbsItemTypeMap['defaultComponent'], P = {}> = OverrideProps<BreadcrumbsItemTypeMap<P, D>, D>;
|
|
23
23
|
export declare const BreadcrumbsItem: ExtendLink<BreadcrumbsItemTypeMap<{}, "a">>;
|
|
24
24
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BreadcrumbsProps } from '@mui/material
|
|
2
|
-
export declare const createMuiBreadcrumbsOverrides: import("../theme/create-component-overrides").ComponentOverrideCreator<BreadcrumbsProps<"nav", {}>, keyof import("@mui/material
|
|
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
|
|
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
|
});
|
|
@@ -5,4 +5,4 @@ export interface IBreadcrumbsProps extends BreadcrumbsProps {
|
|
|
5
5
|
/** alternative to using children and rendering the BreadcrumbsItems */
|
|
6
6
|
items?: IBreadcrumbsItemProps[];
|
|
7
7
|
}
|
|
8
|
-
export declare const Breadcrumbs: React.ForwardRefExoticComponent<
|
|
8
|
+
export declare const Breadcrumbs: React.ForwardRefExoticComponent<Omit<IBreadcrumbsProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -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%',
|
package/button/button.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export interface IExtendButtonTypeMap<M extends OverridableTypeMap> {
|
|
|
22
22
|
} ? Omit<IButtonTypeMap['props'], 'classes'> : IButtonTypeMap['props']);
|
|
23
23
|
defaultComponent: M['defaultComponent'];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
export
|
|
25
|
+
export type ExtendButton<M extends OverridableTypeMap> = ((props: OverrideProps<IExtendButtonTypeMap<M>, 'button'>) => JSX.Element) & OverridableComponent<IExtendButtonTypeMap<M>>;
|
|
26
|
+
export type IButtonProps<D extends React.ElementType = IButtonTypeMap['defaultComponent'], P = {}> = OverrideProps<IButtonTypeMap<P, D>, D>;
|
|
27
27
|
export declare const Button: OverridableComponent<IButtonTypeMap<{}, "button">>;
|
|
28
28
|
declare module '@mui/material/Button' {
|
|
29
29
|
interface ButtonPropsColorOverrides {
|
package/card/card-context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const cardHeaderComponentName: "QuantumCardHeader";
|
|
2
2
|
export declare function getCardHeaderUtilityClass(slot: string): string;
|
|
3
3
|
export declare const cardHeaderClasses: Record<"title" | "action" | "content" | "root" | "avatar" | "subheader", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type CardHeaderClasses = typeof cardHeaderClasses;
|
|
5
|
+
export type CardHeaderClassKey = keyof CardHeaderClasses;
|
|
@@ -3,7 +3,7 @@ import { ICardContextValue } from '../card-context';
|
|
|
3
3
|
import { IStyledComponentProps } from '../../styled';
|
|
4
4
|
import { ITextProps } from '../../text';
|
|
5
5
|
import { CardHeaderClasses } from './card-header-classes';
|
|
6
|
-
export
|
|
6
|
+
export type ICardHeaderProps = IStyledComponentProps<{
|
|
7
7
|
props: Partial<ICardContextValue> & {
|
|
8
8
|
/**
|
|
9
9
|
* The action to display in the card header.
|
|
@@ -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: '
|
|
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.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export interface ICardTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
20
20
|
};
|
|
21
21
|
defaultComponent: D;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type ICardProps<D extends React.ElementType = ICardTypeMap['defaultComponent'], P = {}> = OverrideProps<ICardTypeMap<P, D>, D>;
|
|
24
24
|
export declare const Card: OverridableComponent<ICardTypeMap<{}, "div">>;
|
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({
|
|
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'], {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const checkboxComponentName: "QuantumCheckbox";
|
|
2
2
|
export declare function getCheckboxUtilityClass(slot: string): string;
|
|
3
3
|
export declare const checkboxClasses: Record<"checkbox" | "root" | "rootSpan", string>;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type CheckboxClasses = typeof checkboxClasses;
|
|
5
|
+
export type CheckboxClassKey = keyof CheckboxClasses;
|
|
@@ -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,': {
|
package/checkbox/checkbox.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export interface ICheckboxProps extends Omit<CheckboxProps, 'color' | 'size' | '
|
|
|
12
12
|
decoration?: React.ReactNode;
|
|
13
13
|
classes?: Partial<CheckboxClasses>;
|
|
14
14
|
}
|
|
15
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<
|
|
15
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<Omit<ICheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement | HTMLLabelElement>>;
|
|
@@ -2,14 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import { ICheckboxProps as QuantumCheckboxProps } from '../checkbox';
|
|
3
3
|
import { IFormGroupProps } from '../form/form-group';
|
|
4
4
|
import { IFormFieldProps } from '../form/form-field';
|
|
5
|
-
export
|
|
5
|
+
export type ICheckboxFieldProps = Pick<IFormGroupProps, 'row'> & Omit<IFormFieldProps, 'onChange'> & {
|
|
6
6
|
options: (ICheckboxOptionProps | boolean)[];
|
|
7
7
|
CheckboxProps?: ICheckboxOptionProps;
|
|
8
8
|
FormGroupProps?: IFormGroupProps;
|
|
9
9
|
value?: string[] | Record<string, boolean>;
|
|
10
10
|
onChange?: (...event: any[]) => void;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ICheckboxOptionProps = QuantumCheckboxProps & {
|
|
13
13
|
label: React.ReactNode;
|
|
14
14
|
};
|
|
15
|
-
export declare const CheckboxField: React.ForwardRefExoticComponent<
|
|
15
|
+
export declare const CheckboxField: React.ForwardRefExoticComponent<Omit<ICheckboxFieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
package/chip/chip-overrides.js
CHANGED
|
@@ -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.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export declare const chipComponentName: "QuantumChip";
|
|
|
4
4
|
export interface IChipProps extends Omit<ChipProps, 'color' | 'variant'> {
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const Chip: React.ForwardRefExoticComponent<
|
|
7
|
+
export declare const Chip: React.ForwardRefExoticComponent<Omit<IChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
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
|
},
|
package/code/code.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { IStyledComponentProps } from '../styled';
|
|
3
3
|
import { ITextProps } from '../text';
|
|
4
4
|
export declare const CodeComponentName: "QuantumCode";
|
|
5
|
-
export
|
|
5
|
+
export type ICodeProps = IStyledComponentProps<{
|
|
6
6
|
props: {
|
|
7
7
|
variant?: 'code1' | 'code2';
|
|
8
8
|
noWrap?: ITextProps['noWrap'];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IStyledComponentProps } from '../styled';
|
|
3
3
|
import { ILayoutComponentProps } from '../utils/layouts';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type ColumnLayoutDistribution = '1/2 1/2' | '1/3 1/3 1/3' | '2/3 1/3' | '1/3 2/3' | '1/4 1/4 1/4 1/4' | '2/4 1/4 1/4' | '1/4 2/4 1/4' | '1/4 1/4 2/4' | '3/4 1/4' | '1/4 3/4';
|
|
5
|
+
export type IColumnLayoutProps = IStyledComponentProps<{
|
|
6
6
|
props: ILayoutComponentProps & {
|
|
7
7
|
distribution?: ColumnLayoutDistribution;
|
|
8
8
|
};
|