@auth0/quantum-product 1.8.0 → 1.10.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.d.ts +20 -2
- package/alert/alert.d.ts +1 -1
- package/alert/alert.js +1 -1
- package/app-bar/app-bar-button/app-bar-button.d.ts +0 -4
- package/app-bar/app-bar-button/app-bar-button.js +3 -3
- package/app-bar/app-bar-icon-button/app-bar-icon-button.d.ts +0 -5
- package/app-bar/app-bar-icon-button/app-bar-icon-button.js +4 -4
- package/app-layout/app-layout-classes.d.ts +1 -1
- package/autocomplete/autocomplete-overrides.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar-block/avatar-block-classes.d.ts +1 -1
- package/avatar-block/avatar-block.d.ts +2 -2
- package/banner/banner.d.ts +0 -1
- package/banner/banner.js +3 -3
- package/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/button/button-overrides.js +3 -3
- package/card/card.d.ts +0 -2
- package/card/card.js +3 -3
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox-field/checkbox-field.d.ts +1 -1
- package/chip/chip.d.ts +1 -1
- package/code/code.d.ts +0 -1
- package/code/code.js +3 -3
- package/content/content.js +2 -1
- package/copy-button/copy-button.d.ts +1 -26
- package/danger-zone/danger-zone-item/danger-zone-item.d.ts +0 -3
- package/danger-zone/danger-zone-item/danger-zone-item.js +7 -7
- package/danger-zone/danger-zone-item-action/danger-zone-item-action.d.ts +1 -2
- package/danger-zone/danger-zone-item-action/danger-zone-item-action.js +3 -3
- package/description-block/description-block.d.ts +1 -2
- package/description-block/description-block.js +3 -3
- package/dialog/dialog-content/dialog-content-overrides.js +0 -3
- package/dialog/dialog-title/dialog-title.d.ts +1 -2
- package/dialog/dialog-title/dialog-title.js +3 -3
- package/dialog/dialog.d.ts +2 -3
- package/dialog/dialog.js +3 -3
- package/dropdown-menu/dropdown-menu-divider/dropdown-menu-divider.d.ts +1 -1
- package/dropdown-menu/dropdown-menu-list/dropdown-menu-list.d.ts +1 -1
- package/dropdown-menu/dropdown-menu-list-item/dropdown-menu-list-item.d.ts +1 -1
- package/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/empty-state/empty-state.d.ts +0 -1
- package/empty-state/empty-state.js +3 -3
- package/esm/alert/alert.js +2 -2
- package/esm/app-bar/app-bar-button/app-bar-button.js +1 -1
- package/esm/app-bar/app-bar-icon-button/app-bar-icon-button.js +2 -2
- package/esm/autocomplete/autocomplete-overrides.js +1 -1
- package/esm/banner/banner.js +1 -1
- package/esm/button/button-overrides.js +3 -3
- package/esm/card/card.js +1 -1
- package/esm/code/code.js +1 -1
- package/esm/content/content.js +2 -1
- package/esm/danger-zone/danger-zone-item/danger-zone-item.js +3 -3
- package/esm/danger-zone/danger-zone-item-action/danger-zone-item-action.js +1 -1
- package/esm/description-block/description-block.js +1 -1
- package/esm/dialog/dialog-content/dialog-content-overrides.js +0 -3
- package/esm/dialog/dialog-title/dialog-title.js +1 -1
- package/esm/dialog/dialog.js +1 -1
- package/esm/empty-state/empty-state.js +1 -1
- package/esm/field-set/field-set-classes.js +1 -0
- package/esm/field-set/field-set.js +12 -2
- package/esm/floating-panel/floating-panel.js +1 -1
- package/esm/form/form-label/form-label-overrides.js +1 -1
- package/esm/foundations/token-tables.js +3 -3
- package/esm/gallery-layout/gallery-layout.js +1 -1
- package/esm/icon/index.js +381 -34
- package/esm/icon-button/icon-button.js +1 -1
- package/esm/input/input-label/input-label-overrides.js +1 -1
- package/esm/input/input.js +1 -1
- package/esm/label/label.js +35 -1
- package/esm/link/link.js +1 -1
- package/esm/logo/logo.js +1 -1
- package/esm/page/page-header/page-header-classes.js +1 -0
- package/esm/page/page-header/page-header.js +11 -2
- package/esm/panel/panel-header/panel-header.js +4 -1
- package/esm/sidebar/sidebar-link/sidebar-link.js +16 -23
- package/esm/stack-layout/stack-layout.js +1 -1
- package/esm/styles/classes.js +3 -3
- package/esm/switch/switch.js +1 -1
- package/esm/tabs/tab/tab-override.js +2 -2
- package/esm/tabs/tab/tab.js +13 -2
- package/esm/test-utils.js +1 -0
- package/esm/theme/create-components.js +17 -5
- package/expansion-panel/expansion-panel.d.ts +2 -2
- package/field-set/field-set-classes.d.ts +1 -1
- package/field-set/field-set-classes.js +1 -0
- package/field-set/field-set.d.ts +5 -4
- package/field-set/field-set.js +12 -2
- package/floating-panel/floating-panel.d.ts +0 -2
- package/floating-panel/floating-panel.js +3 -3
- package/form/form-control-label/form-control-label-classes.d.ts +1 -1
- package/form/form-control-label/form-control-label.d.ts +1 -1
- package/form/form-field/form-field.d.ts +1 -1
- package/form/form-label/form-label-overrides.js +1 -1
- package/foundations/token-tables.js +2 -2
- package/gallery-layout/gallery-layout.d.ts +0 -1
- package/gallery-layout/gallery-layout.js +3 -3
- package/icon/index.d.ts +366 -34
- package/icon/index.js +400 -68
- package/icon-button/icon-button.js +1 -1
- package/image-preview-field/image-preview-field.d.ts +1 -1
- package/input/input-adornment/input-adornment.d.ts +1 -1
- package/input/input-label/input-label-overrides.js +1 -1
- package/input/input.d.ts +1 -7
- package/input/input.js +3 -3
- package/label/label.d.ts +11 -2
- package/label/label.js +58 -1
- package/link/link.js +1 -1
- package/logo/logo.d.ts +1 -5
- package/logo/logo.js +3 -3
- package/package.json +7 -7
- package/page/page-header/page-header-classes.d.ts +1 -1
- package/page/page-header/page-header-classes.js +1 -0
- package/page/page-header/page-header.d.ts +3 -1
- package/page/page-header/page-header.js +11 -2
- package/panel/panel/panel.d.ts +1 -1
- package/panel/panel-header/panel-header.js +4 -1
- package/promo-banner/promo-banner.d.ts +1 -1
- package/radio/radio.d.ts +1 -1
- package/radio-field/radio-field.d.ts +1 -1
- package/select/select-field/select-field.d.ts +1 -1
- package/selectable-card/selectable-card-group/selectable-card-group.d.ts +1 -1
- package/sidebar/sidebar-link/sidebar-link.d.ts +5 -2
- package/sidebar/sidebar-link/sidebar-link.js +16 -23
- package/sidebar/sidebar-new.d.ts +1 -1
- package/sidebar/sidebar-old.d.ts +1 -1
- package/sidebar/sidebar.d.ts +1 -1
- package/stack-layout/stack-layout.d.ts +0 -1
- package/stack-layout/stack-layout.js +3 -3
- package/stepper/step-label/step-label.d.ts +1 -1
- package/styles/classes.d.ts +3 -3
- package/styles/classes.js +6 -9
- package/switch/switch-field/switch-field.d.ts +1 -1
- package/switch/switch.d.ts +1 -1
- package/switch/switch.js +1 -1
- package/table/table-sort-label/index.d.ts +1 -1
- package/tabs/tab/tab-override.js +2 -2
- package/tabs/tab/tab.d.ts +6 -2
- package/tabs/tab/tab.js +13 -2
- package/test-utils.d.ts +1 -1
- package/test-utils.js +1 -0
- package/text-field/text-field.d.ts +1 -1
- package/theme/create-components.js +17 -5
- package/toast/toast.d.ts +1 -1
- package/use-media-query/index.d.ts +1 -1
- package/esm/icon/apis.js +0 -34
- package/esm/icon/application-plus.js +0 -30
- package/esm/icon/arrows-h.js +0 -31
- package/esm/icon/border-pill.js +0 -29
- package/esm/icon/border-rounded.js +0 -29
- package/esm/icon/border-sharp.js +0 -29
- package/esm/icon/bot.js +0 -33
- package/esm/icon/browsers.js +0 -32
- package/esm/icon/bug.js +0 -38
- package/esm/icon/building.js +0 -30
- package/esm/icon/cash.js +0 -29
- package/esm/icon/clipboard-check.js +0 -31
- package/esm/icon/enterprise.js +0 -29
- package/esm/icon/feather-icons.js +0 -294
- package/esm/icon/folder-cancel.js +0 -30
- package/esm/icon/font.js +0 -29
- package/esm/icon/help.js +0 -29
- package/esm/icon/hooks.js +0 -34
- package/esm/icon/hosted-pages.js +0 -33
- package/esm/icon/id-tag.js +0 -34
- package/esm/icon/integration.js +0 -33
- package/esm/icon/layout-bottom.js +0 -29
- package/esm/icon/layout-center.js +0 -29
- package/esm/icon/layout-left.js +0 -29
- package/esm/icon/layout-right.js +0 -29
- package/esm/icon/layout-top.js +0 -29
- package/esm/icon/megaphone.js +0 -30
- package/esm/icon/page-background.js +0 -30
- package/esm/icon/paint-brush.js +0 -29
- package/esm/icon/paint.js +0 -29
- package/esm/icon/recovery-code.js +0 -30
- package/esm/icon/web-authn.js +0 -29
- package/esm/icon/webauthn-platform.js +0 -29
- package/esm/icon/widget.js +0 -29
- package/icon/apis.d.ts +0 -2
- package/icon/apis.js +0 -61
- package/icon/application-plus.d.ts +0 -2
- package/icon/application-plus.js +0 -57
- package/icon/arrows-h.d.ts +0 -2
- package/icon/arrows-h.js +0 -58
- package/icon/border-pill.d.ts +0 -2
- package/icon/border-pill.js +0 -56
- package/icon/border-rounded.d.ts +0 -2
- package/icon/border-rounded.js +0 -56
- package/icon/border-sharp.d.ts +0 -2
- package/icon/border-sharp.js +0 -56
- package/icon/bot.d.ts +0 -2
- package/icon/bot.js +0 -60
- package/icon/browsers.d.ts +0 -2
- package/icon/browsers.js +0 -59
- package/icon/bug.d.ts +0 -2
- package/icon/bug.js +0 -65
- package/icon/building.d.ts +0 -2
- package/icon/building.js +0 -57
- package/icon/cash.d.ts +0 -2
- package/icon/cash.js +0 -56
- package/icon/clipboard-check.d.ts +0 -2
- package/icon/clipboard-check.js +0 -58
- package/icon/enterprise.d.ts +0 -2
- package/icon/enterprise.js +0 -56
- package/icon/feather-icons.d.ts +0 -284
- package/icon/feather-icons.js +0 -302
- package/icon/folder-cancel.d.ts +0 -2
- package/icon/folder-cancel.js +0 -57
- package/icon/font.d.ts +0 -2
- package/icon/font.js +0 -56
- package/icon/help.d.ts +0 -2
- package/icon/help.js +0 -56
- package/icon/hooks.d.ts +0 -2
- package/icon/hooks.js +0 -61
- package/icon/hosted-pages.d.ts +0 -2
- package/icon/hosted-pages.js +0 -60
- package/icon/id-tag.d.ts +0 -2
- package/icon/id-tag.js +0 -61
- package/icon/integration.d.ts +0 -2
- package/icon/integration.js +0 -60
- package/icon/layout-bottom.d.ts +0 -2
- package/icon/layout-bottom.js +0 -56
- package/icon/layout-center.d.ts +0 -2
- package/icon/layout-center.js +0 -56
- package/icon/layout-left.d.ts +0 -2
- package/icon/layout-left.js +0 -56
- package/icon/layout-right.d.ts +0 -2
- package/icon/layout-right.js +0 -56
- package/icon/layout-top.d.ts +0 -2
- package/icon/layout-top.js +0 -56
- package/icon/megaphone.d.ts +0 -2
- package/icon/megaphone.js +0 -57
- package/icon/page-background.d.ts +0 -2
- package/icon/page-background.js +0 -57
- package/icon/paint-brush.d.ts +0 -2
- package/icon/paint-brush.js +0 -56
- package/icon/paint.d.ts +0 -2
- package/icon/paint.js +0 -56
- package/icon/recovery-code.d.ts +0 -2
- package/icon/recovery-code.js +0 -57
- package/icon/web-authn.d.ts +0 -2
- package/icon/web-authn.js +0 -56
- package/icon/webauthn-platform.d.ts +0 -2
- package/icon/webauthn-platform.js +0 -56
- package/icon/widget.d.ts +0 -2
- package/icon/widget.js +0 -56
package/esm/input/input.js
CHANGED
|
@@ -36,7 +36,7 @@ export var getMaskedInputProps = function (masked, inputProps) {
|
|
|
36
36
|
}
|
|
37
37
|
return maskedProps;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
var Root = styled(MuiOutlinedInput, { slot: 'Root', name: 'QuantumInput' })(function (_a) {
|
|
40
40
|
var theme = _a.theme, multiline = _a.multiline, ownerState = _a.ownerState;
|
|
41
41
|
return __assign({}, (ownerState.code && __assign(__assign({}, theme.typography.code1), { lineHeight: !multiline ? theme.typography.input.lineHeight : undefined })));
|
|
42
42
|
});
|
package/esm/label/label.js
CHANGED
|
@@ -9,9 +9,39 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import * as React from 'react';
|
|
12
13
|
import { rootShouldForwardProp, styled } from '../styled';
|
|
13
14
|
export var labelComponentName = 'QuantumLabel';
|
|
14
|
-
|
|
15
|
+
var getReleaseStageLabelProps = function (productReleaseStage, productReleaseStageAbbr) {
|
|
16
|
+
var labelProps = {
|
|
17
|
+
color: 'default',
|
|
18
|
+
variant: 'default',
|
|
19
|
+
};
|
|
20
|
+
switch (productReleaseStage) {
|
|
21
|
+
case 'new':
|
|
22
|
+
case 'generalAvailability':
|
|
23
|
+
labelProps.variant = 'filled';
|
|
24
|
+
labelProps.children = 'New';
|
|
25
|
+
labelProps.color = 'primary';
|
|
26
|
+
break;
|
|
27
|
+
case 'beta':
|
|
28
|
+
labelProps.children = 'Beta';
|
|
29
|
+
labelProps.color = 'primary';
|
|
30
|
+
break;
|
|
31
|
+
case 'first':
|
|
32
|
+
case 'early':
|
|
33
|
+
case 'earlyAccess':
|
|
34
|
+
labelProps.color = 'primary';
|
|
35
|
+
productReleaseStageAbbr ? (labelProps.children = 'Early') : (labelProps.children = 'Early Access');
|
|
36
|
+
break;
|
|
37
|
+
case 'deprecated':
|
|
38
|
+
labelProps.color = 'warning';
|
|
39
|
+
labelProps.children = 'Deprecated';
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
return labelProps;
|
|
43
|
+
};
|
|
44
|
+
var StyledLabel = styled('span', {
|
|
15
45
|
name: labelComponentName,
|
|
16
46
|
slot: 'Root',
|
|
17
47
|
shouldForwardProp: function (prop) { return rootShouldForwardProp(prop) && prop !== 'color' && prop !== 'variant'; },
|
|
@@ -67,3 +97,7 @@ export var Label = styled('span', {
|
|
|
67
97
|
color: theme.tokens.color_fg_on_state_danger,
|
|
68
98
|
})))));
|
|
69
99
|
});
|
|
100
|
+
export var Label = React.forwardRef(function (props, ref) {
|
|
101
|
+
var productReleaseStage = props.productReleaseStage, _a = props.productReleaseStageAbbr, productReleaseStageAbbr = _a === void 0 ? true : _a;
|
|
102
|
+
return (React.createElement(StyledLabel, __assign({ ref: ref }, getReleaseStageLabelProps(productReleaseStage, productReleaseStageAbbr), props)));
|
|
103
|
+
});
|
package/esm/link/link.js
CHANGED
package/esm/logo/logo.js
CHANGED
|
@@ -27,7 +27,7 @@ import { composeClasses } from '../styles/classes';
|
|
|
27
27
|
import { getLogoUtilityClass, logoComponentName } from './logo-classes';
|
|
28
28
|
import clsx from '../utils/clsx';
|
|
29
29
|
import { useThemeProps } from '../theme/use-theme-props';
|
|
30
|
-
|
|
30
|
+
var Root = styled('div', {
|
|
31
31
|
name: logoComponentName,
|
|
32
32
|
slot: 'Root',
|
|
33
33
|
})(function (_a) {
|
|
@@ -26,6 +26,7 @@ import { AvatarBlock } from '../../avatar-block';
|
|
|
26
26
|
import { usePageContext } from '../page-context';
|
|
27
27
|
import { RowLayout } from '../../row-layout';
|
|
28
28
|
import { styled } from '../../styled';
|
|
29
|
+
import { Label } from '../../label';
|
|
29
30
|
import { useMergedClasses } from '../../styles/classes';
|
|
30
31
|
import { Text } from '../../text';
|
|
31
32
|
import { StackLayout, StackLayoutItem } from '../../stack-layout';
|
|
@@ -56,6 +57,12 @@ export var Actions = styled('div', {
|
|
|
56
57
|
gap: theme.spacing(2),
|
|
57
58
|
});
|
|
58
59
|
});
|
|
60
|
+
var AvailabilityLabel = styled(Label, { name: pageHeaderComponentName, slot: 'AvailabilityLabel' })(function (_a) {
|
|
61
|
+
var theme = _a.theme;
|
|
62
|
+
return ({
|
|
63
|
+
marginLeft: theme.spacing(1),
|
|
64
|
+
});
|
|
65
|
+
});
|
|
59
66
|
var StyledStackLayout = styled(StackLayout, { name: pageHeaderComponentName, slot: 'StackLayout' })(function (_a) {
|
|
60
67
|
var theme = _a.theme, ownerState = _a.ownerState;
|
|
61
68
|
return ({
|
|
@@ -65,7 +72,7 @@ var StyledStackLayout = styled(StackLayout, { name: pageHeaderComponentName, slo
|
|
|
65
72
|
});
|
|
66
73
|
export var PageHeader = React.forwardRef(function (props, ref) {
|
|
67
74
|
var _a = usePageContext(), fullWidthContext = _a.fullWidth, compactContext = _a.compact;
|
|
68
|
-
var breadcrumbs = props.breadcrumbs, startActions = props.startActions, className = props.className, fullWidthProp = props.fullWidth, compactProp = props.compact, title = props.title, _b = props.titleTypographyProps, titleTypographyProps = _b === void 0 ? {} : _b, description = props.description, _c = props.descriptionTypographyProps, descriptionTypographyProps = _c === void 0 ? {} : _c, metadata = props.metadata, _d = props.metadataTypographyProps, metadataTypographyProps = _d === void 0 ? {} : _d, actions = props.actions, avatar = props.avatar, children = props.children, rootProps = __rest(props, ["breadcrumbs", "startActions", "className", "fullWidth", "compact", "title", "titleTypographyProps", "description", "descriptionTypographyProps", "metadata", "metadataTypographyProps", "actions", "avatar", "children"]);
|
|
75
|
+
var breadcrumbs = props.breadcrumbs, startActions = props.startActions, className = props.className, fullWidthProp = props.fullWidth, compactProp = props.compact, title = props.title, _b = props.titleTypographyProps, titleTypographyProps = _b === void 0 ? {} : _b, description = props.description, _c = props.descriptionTypographyProps, descriptionTypographyProps = _c === void 0 ? {} : _c, metadata = props.metadata, _d = props.metadataTypographyProps, metadataTypographyProps = _d === void 0 ? {} : _d, actions = props.actions, avatar = props.avatar, children = props.children, productReleaseStage = props.productReleaseStage, productReleaseStageAbbr = props.productReleaseStageAbbr, rootProps = __rest(props, ["breadcrumbs", "startActions", "className", "fullWidth", "compact", "title", "titleTypographyProps", "description", "descriptionTypographyProps", "metadata", "metadataTypographyProps", "actions", "avatar", "children", "productReleaseStage", "productReleaseStageAbbr"]);
|
|
69
76
|
var classes = useMergedClasses(pageHeaderClasses, getPageHeaderUtilityClass, props.classes);
|
|
70
77
|
var fullWidth = fullWidthProp || fullWidthContext;
|
|
71
78
|
var compact = compactProp || compactContext;
|
|
@@ -77,6 +84,8 @@ export var PageHeader = React.forwardRef(function (props, ref) {
|
|
|
77
84
|
React.createElement(AvatarBlock, { size: compact ? 'medium' : 'large', classes: {
|
|
78
85
|
root: classes.avatarBlock,
|
|
79
86
|
avatar: classes.avatar,
|
|
80
|
-
}, avatar: avatar && React.createElement(AvatarContext.Provider, { value: { size: 'large' } }, avatar), titleTypographyProps: __assign({ variant: compact ? 'h5' : 'h3', component: 'h1', className: classes.title }, titleTypographyProps), title:
|
|
87
|
+
}, avatar: avatar && React.createElement(AvatarContext.Provider, { value: { size: 'large' } }, avatar), titleTypographyProps: __assign({ variant: compact ? 'h5' : 'h3', component: 'h1', className: classes.title }, titleTypographyProps), title: React.createElement(React.Fragment, null,
|
|
88
|
+
title,
|
|
89
|
+
!!productReleaseStage && (React.createElement(AvailabilityLabel, { className: classes.availabilityLabel, productReleaseStageAbbr: false, productReleaseStage: productReleaseStage }))), description: metadata, descriptionTypographyProps: __assign({ component: 'div', className: classes.metadata }, metadataTypographyProps), TitleBlockProps: { gutter: 0.5 }, endAdornment: !!actions && (React.createElement(Actions, { className: classes.actions, sx: { flex: 'none' } }, actions)) }))),
|
|
81
90
|
!!description && (React.createElement(Text, __assign({ variant: "body2", color: "textSecondary", component: "p", className: classes.description }, descriptionTypographyProps), description))));
|
|
82
91
|
});
|
|
@@ -32,13 +32,16 @@ var Root = styled('div')(function (_a) {
|
|
|
32
32
|
var theme = _a.theme, ownerState = _a.ownerState;
|
|
33
33
|
return ({
|
|
34
34
|
display: 'flex',
|
|
35
|
+
alignItems: 'flex-start',
|
|
35
36
|
padding: theme.spacing(3, ownerState.isCloseButtonVisible ? 9 : 3, 2, 3),
|
|
36
37
|
gap: theme.spacing(2),
|
|
37
38
|
flexGrow: 0,
|
|
38
39
|
flexShrink: 0,
|
|
39
40
|
});
|
|
40
41
|
});
|
|
41
|
-
var Content = styled('div')({
|
|
42
|
+
var Content = styled('div')({
|
|
43
|
+
flex: 1,
|
|
44
|
+
});
|
|
42
45
|
var EndAdornment = styled('div')(function (_a) {
|
|
43
46
|
var theme = _a.theme;
|
|
44
47
|
return ({
|
|
@@ -102,33 +102,26 @@ var Decoration = styled('span', { name: sidebarLinkComponentName, slot: 'Decorat
|
|
|
102
102
|
marginLeft: theme.spacing(1),
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
|
-
var getFeatureAvailabilityLabelProps = function (featureAvailability) {
|
|
106
|
-
var labelProps = {
|
|
107
|
-
color: 'primary',
|
|
108
|
-
variant: 'default',
|
|
109
|
-
};
|
|
110
|
-
switch (featureAvailability) {
|
|
111
|
-
case 'beta':
|
|
112
|
-
labelProps.children = 'Beta';
|
|
113
|
-
break;
|
|
114
|
-
// First Availability has been replaced by Early Access
|
|
115
|
-
case 'first':
|
|
116
|
-
case 'early':
|
|
117
|
-
labelProps.children = 'Early';
|
|
118
|
-
break;
|
|
119
|
-
case 'new':
|
|
120
|
-
labelProps.variant = 'filled';
|
|
121
|
-
labelProps.children = 'New';
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
return labelProps;
|
|
125
|
-
};
|
|
126
105
|
export var SidebarLink = React.forwardRef(function (props, ref) {
|
|
127
|
-
var title = props.title, startIcon = props.startIcon, endIcon = props.endIcon, featureAvailability = props.featureAvailability, className = props.className, decoration = props.decoration, titleId = props.titleId, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.variant, variant = _b === void 0 ? 'primary' : _b, _c = props.component, LinkComponent = _c === void 0 ? 'a' : _c, propClasses = props.classes, children = props.children, sx = props.sx, propOnClick = props.onClick, _d = props.shouldCollapseSidebarOnClick, shouldCollapseSidebarOnClick = _d === void 0 ? true : _d, linkProps = __rest(props, ["title", "startIcon", "endIcon", "featureAvailability", "className", "decoration", "titleId", "isActive", "variant", "component", "classes", "children", "sx", "onClick", "shouldCollapseSidebarOnClick"]);
|
|
106
|
+
var title = props.title, startIcon = props.startIcon, endIcon = props.endIcon, featureAvailability = props.featureAvailability, productReleaseStage = props.productReleaseStage, className = props.className, decoration = props.decoration, titleId = props.titleId, _a = props.isActive, isActive = _a === void 0 ? false : _a, _b = props.variant, variant = _b === void 0 ? 'primary' : _b, _c = props.component, LinkComponent = _c === void 0 ? 'a' : _c, propClasses = props.classes, children = props.children, sx = props.sx, propOnClick = props.onClick, _d = props.shouldCollapseSidebarOnClick, shouldCollapseSidebarOnClick = _d === void 0 ? true : _d, linkProps = __rest(props, ["title", "startIcon", "endIcon", "featureAvailability", "productReleaseStage", "className", "decoration", "titleId", "isActive", "variant", "component", "classes", "children", "sx", "onClick", "shouldCollapseSidebarOnClick"]);
|
|
128
107
|
var theme = useTheme();
|
|
129
108
|
var isLargeScreen = useMediaQuery(theme.breakpoints.up('lg'));
|
|
130
109
|
var sidebarCtx = useSidebarContext();
|
|
131
110
|
var classes = useMergedClasses(sidebarLinkClasses, getSidebarLinkUtilityClass, propClasses);
|
|
111
|
+
var mapReleaseStageProps = function (prop) {
|
|
112
|
+
switch (prop) {
|
|
113
|
+
case 'early':
|
|
114
|
+
case 'first':
|
|
115
|
+
return 'earlyAccess';
|
|
116
|
+
case 'new':
|
|
117
|
+
return 'generalAvailability';
|
|
118
|
+
case 'default':
|
|
119
|
+
return '';
|
|
120
|
+
default:
|
|
121
|
+
return prop;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
var releaseProp = featureAvailability ? mapReleaseStageProps(featureAvailability) : productReleaseStage;
|
|
132
125
|
var handleClick = function (event) {
|
|
133
126
|
if (propOnClick) {
|
|
134
127
|
propOnClick(event);
|
|
@@ -141,7 +134,7 @@ export var SidebarLink = React.forwardRef(function (props, ref) {
|
|
|
141
134
|
React.createElement(Link, __assign({ ref: ref, as: LinkComponent, title: typeof title === 'string' ? title : undefined, ownerState: { isActive: isActive, variant: variant }, className: classes.link, "aria-current": isActive ? 'page' : undefined, onClick: handleClick }, linkProps),
|
|
142
135
|
React.createElement(StartIcon, { className: clsx(classes.icon, classes.startIcon) }, startIcon),
|
|
143
136
|
React.createElement(Title, { id: titleId, className: sidebarLinkClasses.title }, title),
|
|
144
|
-
!!
|
|
137
|
+
!!releaseProp && React.createElement(AvailabilityLabel, { className: classes.availabilityLabel, productReleaseStage: releaseProp }),
|
|
145
138
|
!!decoration && React.createElement(Decoration, { className: classes.decoration }, decoration),
|
|
146
139
|
!!endIcon && React.createElement(EndIcon, { className: clsx(classes.icon, classes.endIcon) }, endIcon)),
|
|
147
140
|
children));
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import { styled } from '../styled';
|
|
25
25
|
var stackLayoutComponentName = 'QuantumStackLayout';
|
|
26
|
-
|
|
26
|
+
var Root = styled('div', {
|
|
27
27
|
name: stackLayoutComponentName,
|
|
28
28
|
slot: 'Root',
|
|
29
29
|
})({
|
package/esm/styles/classes.js
CHANGED
|
@@ -9,10 +9,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
export { default as generateUtilityClasses } from '@mui/base/generateUtilityClasses';
|
|
14
|
-
import composeClasses from '@mui/base/composeClasses';
|
|
12
|
+
import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
|
|
15
13
|
import * as React from 'react';
|
|
14
|
+
export { generateUtilityClass } from '@mui/base/generateUtilityClass';
|
|
15
|
+
export { generateUtilityClasses } from '@mui/base/generateUtilityClasses';
|
|
16
16
|
export { composeClasses };
|
|
17
17
|
export function useMergedClasses(allClasses, getUtilityClass, propClasses) {
|
|
18
18
|
if (propClasses === void 0) { propClasses = {}; }
|
package/esm/switch/switch.js
CHANGED
|
@@ -39,7 +39,7 @@ var StyledFormControlLabel = styled(BaseFormControlLabel, {
|
|
|
39
39
|
lineHeight: theme.typography.pxToRem(SwitchHeight),
|
|
40
40
|
minWidth: noWrap ? 0 : undefined,
|
|
41
41
|
marginLeft: theme.spacing(2),
|
|
42
|
-
'& > *:first-
|
|
42
|
+
'& > *:first-of-type': {
|
|
43
43
|
marginLeft: 0,
|
|
44
44
|
},
|
|
45
45
|
}, _b), (labelPlacement === 'start' && (_c = {},
|
|
@@ -18,7 +18,7 @@ export var createMuiTabOverrides = function (_a) {
|
|
|
18
18
|
{
|
|
19
19
|
props: { fullWidth: true },
|
|
20
20
|
style: {
|
|
21
|
-
'&:first-
|
|
21
|
+
'&:first-of-type': {
|
|
22
22
|
marginLeft: spacing(3),
|
|
23
23
|
},
|
|
24
24
|
},
|
|
@@ -34,7 +34,7 @@ export var createMuiTabOverrides = function (_a) {
|
|
|
34
34
|
_b[breakpoints.up('sm')] = {
|
|
35
35
|
minWidth: 'unset',
|
|
36
36
|
},
|
|
37
|
-
_b['&:first-
|
|
37
|
+
_b['&:first-of-type'] = {
|
|
38
38
|
marginLeft: 0,
|
|
39
39
|
},
|
|
40
40
|
_b),
|
package/esm/tabs/tab/tab.js
CHANGED
|
@@ -22,9 +22,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import MuiTab from '@mui/material/Tab';
|
|
25
|
+
import { Label } from '../../label';
|
|
26
|
+
import { StackLayout } from '../../stack-layout';
|
|
27
|
+
import { styled } from '../../styled';
|
|
25
28
|
import { useTabsContext } from '../tabs-context';
|
|
29
|
+
var AvailabilityLabel = styled(Label)(function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return ({
|
|
32
|
+
marginLeft: theme.spacing(1),
|
|
33
|
+
});
|
|
34
|
+
});
|
|
26
35
|
export var Tab = React.forwardRef(function (_a, ref) {
|
|
27
|
-
var value = _a.value, tabProps = __rest(_a, ["value"]);
|
|
36
|
+
var value = _a.value, productReleaseStage = _a.productReleaseStage, label = _a.label, tabProps = __rest(_a, ["value", "productReleaseStage", "label"]);
|
|
28
37
|
var _b = useTabsContext(), getTabProps = _b.getTabProps, fullWidth = _b.fullWidth;
|
|
29
|
-
return React.createElement(MuiTab, __assign({ ref: ref }, getTabProps(value), { value: value
|
|
38
|
+
return (React.createElement(MuiTab, __assign({ ref: ref }, getTabProps(value), { value: value, label: React.createElement(StackLayout, { gutter: 0 },
|
|
39
|
+
label,
|
|
40
|
+
productReleaseStage && React.createElement(AvailabilityLabel, { productReleaseStage: productReleaseStage })) }, tabProps, { fullWidth: fullWidth })));
|
|
30
41
|
});
|
package/esm/test-utils.js
CHANGED
|
@@ -33,6 +33,7 @@ export * from '@testing-library/react';
|
|
|
33
33
|
// eslint-disable-next-line import/export
|
|
34
34
|
export { customRender as render, faker, createClassNameGetter };
|
|
35
35
|
export function runBaseTests(Component, baseProps, _a) {
|
|
36
|
+
if (baseProps === void 0) { baseProps = {}; }
|
|
36
37
|
var _b = _a === void 0 ? {} : _a, _c = _b.overridable, overridable = _c === void 0 ? true : _c;
|
|
37
38
|
test('spreads additional props to the element', function () {
|
|
38
39
|
var testId = faker.random.alphaNumeric();
|
|
@@ -121,32 +121,44 @@ export var createComponents = function (_a) {
|
|
|
121
121
|
styleOverrides: {
|
|
122
122
|
root: (_b = {
|
|
123
123
|
borderColor: options.palette.neutral[200],
|
|
124
|
-
'& > *:first-
|
|
124
|
+
'& > *:first-of-type > svg': {
|
|
125
125
|
stroke: options.palette.neutral[900],
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
_b["".concat(toggleButtonClasses.selected)] = {
|
|
129
129
|
backgroundColor: options.palette.neutral[50],
|
|
130
|
-
'& > *:first-
|
|
130
|
+
'& > *:first-of-type > svg': {
|
|
131
131
|
stroke: options.palette.primary.main,
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
134
|
_b["".concat(toggleButtonClasses.disabled)] = {
|
|
135
|
-
'& > *:first-
|
|
135
|
+
'& > *:first-of-type > svg': {
|
|
136
136
|
stroke: options.palette.neutral[200],
|
|
137
137
|
},
|
|
138
138
|
},
|
|
139
139
|
_b),
|
|
140
140
|
sizeSmall: {
|
|
141
141
|
minWidth: 'unset',
|
|
142
|
-
fontSize: options.typography.
|
|
142
|
+
fontSize: options.typography.pxToRem(16),
|
|
143
|
+
height: options.typography.pxToRem(32),
|
|
144
|
+
width: options.typography.pxToRem(32),
|
|
143
145
|
padding: options.spacing(1.25, 1.125),
|
|
144
|
-
'& > *:first-
|
|
146
|
+
'& > *:first-of-type': {
|
|
145
147
|
fontSize: '1rem',
|
|
146
148
|
height: '1em',
|
|
147
149
|
width: '1em',
|
|
148
150
|
},
|
|
149
151
|
},
|
|
152
|
+
sizeMedium: {
|
|
153
|
+
fontSize: options.typography.pxToRem(20),
|
|
154
|
+
height: options.typography.pxToRem(34),
|
|
155
|
+
width: options.typography.pxToRem(34),
|
|
156
|
+
},
|
|
157
|
+
sizeLarge: {
|
|
158
|
+
fontSize: options.typography.pxToRem(24),
|
|
159
|
+
height: options.typography.pxToRem(48),
|
|
160
|
+
width: options.typography.pxToRem(48),
|
|
161
|
+
},
|
|
150
162
|
},
|
|
151
163
|
},
|
|
152
164
|
MuiTooltip: createMuiTooltipOverrides(options),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AccordionProps } from '@mui/material/Accordion';
|
|
2
2
|
export declare type IExpansionPanelProps = AccordionProps;
|
|
3
|
-
export declare const ExpansionPanel: import("styled-components").StyledComponent<
|
|
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
|
-
export declare const fieldSetClasses: Record<"root" | "labelContent" | "labelText" | "descriptionText" | "contentWrapper", string>;
|
|
3
|
+
export declare const fieldSetClasses: Record<"root" | "availabilityLabel" | "labelContent" | "labelText" | "descriptionText" | "contentWrapper", string>;
|
|
4
4
|
export declare type FieldSetClasses = typeof fieldSetClasses;
|
|
5
5
|
export declare type FieldSetClassKey = keyof FieldSetClasses;
|
package/field-set/field-set.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IFormLayoutProps } from '../form';
|
|
3
|
+
import { ILabelProps } from '../label';
|
|
3
4
|
import { IStyledComponentProps } from '../styled';
|
|
4
5
|
import { FieldSetClasses } from './field-set-classes';
|
|
5
6
|
export declare type IFieldSetOwnerState = Pick<IFieldSetProps, 'layout'>;
|
|
6
7
|
export declare type IFieldSetProps = IStyledComponentProps<{
|
|
7
|
-
props: Pick<IFormLayoutProps, 'layout'> & {
|
|
8
|
+
props: Pick<IFormLayoutProps, 'layout'> & Pick<ILabelProps, 'productReleaseStage'> & {
|
|
8
9
|
label?: React.ReactNode;
|
|
9
10
|
description?: React.ReactNode;
|
|
10
11
|
/** specifies the spacing between the fields */
|
|
@@ -16,7 +17,7 @@ export declare type IFieldSetProps = IStyledComponentProps<{
|
|
|
16
17
|
};
|
|
17
18
|
defaultComponent: 'fieldset';
|
|
18
19
|
}>;
|
|
19
|
-
export declare const FieldSet: React.ForwardRefExoticComponent<Pick<IFormLayoutProps, "layout"> & {
|
|
20
|
+
export declare const FieldSet: React.ForwardRefExoticComponent<Pick<IFormLayoutProps, "layout"> & Pick<ILabelProps, "productReleaseStage"> & {
|
|
20
21
|
label?: React.ReactNode;
|
|
21
22
|
description?: React.ReactNode;
|
|
22
23
|
/** specifies the spacing between the fields */
|
|
@@ -24,5 +25,5 @@ export declare const FieldSet: React.ForwardRefExoticComponent<Pick<IFormLayoutP
|
|
|
24
25
|
/**
|
|
25
26
|
* Override or extend the styles applied to the component.
|
|
26
27
|
*/
|
|
27
|
-
classes?: Partial<Record<"root" | "labelContent" | "labelText" | "descriptionText" | "contentWrapper", string>> | undefined;
|
|
28
|
-
} & Omit<React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "label" | "ref" | "layout" | "margin" | "classes" | "description"> & import("../styled").IStyledCommonProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
28
|
+
classes?: Partial<Record<"root" | "availabilityLabel" | "labelContent" | "labelText" | "descriptionText" | "contentWrapper", string>> | undefined;
|
|
29
|
+
} & Omit<React.DetailedHTMLProps<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "label" | "ref" | "layout" | "margin" | "classes" | "productReleaseStage" | "description"> & import("../styled").IStyledCommonProps & React.RefAttributes<HTMLFieldSetElement>>;
|
package/field-set/field-set.js
CHANGED
|
@@ -51,7 +51,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
exports.FieldSet = void 0;
|
|
52
52
|
var React = __importStar(require("react"));
|
|
53
53
|
var form_1 = require("../form");
|
|
54
|
+
var label_1 = require("../label");
|
|
54
55
|
var row_layout_1 = require("../row-layout");
|
|
56
|
+
var stack_layout_1 = require("../stack-layout");
|
|
55
57
|
var styled_1 = require("../styled");
|
|
56
58
|
var field_set_classes_1 = require("./field-set-classes");
|
|
57
59
|
var text_1 = require("../text");
|
|
@@ -82,8 +84,14 @@ var LabelContent = (0, styled_1.styled)(row_layout_1.RowLayout, {
|
|
|
82
84
|
display: 'none',
|
|
83
85
|
},
|
|
84
86
|
});
|
|
87
|
+
var AvailabilityLabel = (0, styled_1.styled)(label_1.Label, { name: field_set_classes_1.fieldSetComponentName, slot: 'AvailabilityLabel' })(function (_a) {
|
|
88
|
+
var theme = _a.theme;
|
|
89
|
+
return ({
|
|
90
|
+
marginLeft: theme.spacing(1),
|
|
91
|
+
});
|
|
92
|
+
});
|
|
85
93
|
exports.FieldSet = React.forwardRef(function (props, ref) {
|
|
86
|
-
var label = props.label, propLayout = props.layout, description = props.description, children = props.children, _a = props.margin, margin = _a === void 0 ? 'default' : _a, className = props.className, rootProps = __rest(props, ["label", "layout", "description", "children", "margin", "className"]);
|
|
94
|
+
var label = props.label, propLayout = props.layout, description = props.description, children = props.children, _a = props.margin, margin = _a === void 0 ? 'default' : _a, className = props.className, productReleaseStage = props.productReleaseStage, rootProps = __rest(props, ["label", "layout", "description", "children", "margin", "className", "productReleaseStage"]);
|
|
87
95
|
var layoutContext = (0, form_1.useFormLayoutContext)().layout;
|
|
88
96
|
var classes = (0, classes_1.useMergedClasses)(field_set_classes_1.fieldSetClasses, field_set_classes_1.getFieldSetUtilityClass, props.classes);
|
|
89
97
|
var layout = propLayout || layoutContext;
|
|
@@ -92,7 +100,9 @@ exports.FieldSet = React.forwardRef(function (props, ref) {
|
|
|
92
100
|
};
|
|
93
101
|
return (React.createElement(Root, __assign({ ref: ref, ownerState: ownerState, className: (0, clsx_1.default)(classes.root, className) }, rootProps),
|
|
94
102
|
React.createElement(LabelContent, { gutter: 0.5, className: classes.labelContent },
|
|
95
|
-
|
|
103
|
+
React.createElement(stack_layout_1.StackLayout, { gutter: 0 },
|
|
104
|
+
!!label && (React.createElement(text_1.Text, { variant: "subtitle1", color: "textPrimary", component: "legend", className: classes.labelText }, label)),
|
|
105
|
+
!!label && !!productReleaseStage && (React.createElement(AvailabilityLabel, { className: classes.availabilityLabel, productReleaseStage: productReleaseStage, productReleaseStageAbbr: false }))),
|
|
96
106
|
!!description && (React.createElement(text_1.Text, { variant: "body2", color: "textSecondary", className: classes.descriptionText }, description))),
|
|
97
107
|
React.createElement(row_layout_1.RowLayout, { gutter: margin === 'dense' ? 2 : 3, className: classes.contentWrapper }, children)));
|
|
98
108
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IStyledComponentProps } from '../styled';
|
|
3
|
-
import { Drawer } from '../drawer';
|
|
4
3
|
export declare const floatingPanelComponentName = "QuantumFloatingPanel";
|
|
5
4
|
export interface IFloatingPanelOwnerState {
|
|
6
5
|
panelWidth?: number;
|
|
@@ -18,5 +17,4 @@ export declare type IFloatingPanelProps = IStyledComponentProps<{
|
|
|
18
17
|
children: React.ReactNode;
|
|
19
18
|
defaultComponent: 'div';
|
|
20
19
|
}>;
|
|
21
|
-
export declare const Root: import("styled-components").StyledComponent<typeof Drawer, import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme> & IFloatingPanelOwnerState & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | keyof IFloatingPanelOwnerState> & import("../styled").IStyledCommonProps, never>;
|
|
22
20
|
export declare const FloatingPanel: React.ForwardRefExoticComponent<IFloatingPanelOwnerState & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | keyof IFloatingPanelOwnerState> & import("../styled").IStyledCommonProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -45,7 +45,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
45
45
|
return t;
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.FloatingPanel = exports.
|
|
48
|
+
exports.FloatingPanel = exports.floatingPanelComponentName = void 0;
|
|
49
49
|
var React = __importStar(require("react"));
|
|
50
50
|
var styled_1 = require("../styled");
|
|
51
51
|
var icon_button_1 = require("../icon-button");
|
|
@@ -71,7 +71,7 @@ var SubContainer = (0, styled_1.styled)('div', { name: exports.floatingPanelComp
|
|
|
71
71
|
display: 'flex',
|
|
72
72
|
width: 0,
|
|
73
73
|
});
|
|
74
|
-
|
|
74
|
+
var Root = (0, styled_1.styled)(drawer_1.Drawer, { name: exports.floatingPanelComponentName, slot: 'Root' })(function (_a) {
|
|
75
75
|
var _b;
|
|
76
76
|
var theme = _a.theme, panelWidth = _a.panelWidth, elevated = _a.elevated, topOffset = _a.topOffset, anchor = _a.anchor;
|
|
77
77
|
var boxShadowStyle = elevated ? theme.shadows[2] : 'none';
|
|
@@ -88,7 +88,7 @@ exports.Root = (0, styled_1.styled)(drawer_1.Drawer, { name: exports.floatingPan
|
|
|
88
88
|
});
|
|
89
89
|
exports.FloatingPanel = React.forwardRef(function (_a, ref) {
|
|
90
90
|
var _b = _a.panelWidth, panelWidth = _b === void 0 ? 360 : _b, _c = _a.closeOnOutsideClick, closeOnOutsideClick = _c === void 0 ? true : _c, _d = _a.showCloseButton, showCloseButton = _d === void 0 ? true : _d, open = _a.open, _e = _a.elevated, elevated = _e === void 0 ? true : _e, topOffset = _a.topOffset, position = _a.position, onClose = _a.onClose, children = _a.children, rootProps = __rest(_a, ["panelWidth", "closeOnOutsideClick", "showCloseButton", "open", "elevated", "topOffset", "position", "onClose", "children"]);
|
|
91
|
-
return (React.createElement(
|
|
91
|
+
return (React.createElement(Root, __assign({ ref: ref, panelWidth: panelWidth, open: open, anchor: position, onClose: onClose, elevated: elevated, topOffset: topOffset, hideBackdrop: !closeOnOutsideClick, BackdropProps: { invisible: true } }, rootProps),
|
|
92
92
|
children,
|
|
93
93
|
showCloseButton && (React.createElement(SubContainer, null,
|
|
94
94
|
React.createElement(CloseButton, { onCloseButtonClick: onClose })))));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const formControlLabelComponentName: "QuantumFormControlLabel";
|
|
2
2
|
export declare function getFormControlLabelUtilityClass(slot: string): string;
|
|
3
|
-
export declare const formControlLabelClasses: Record<"label" | "
|
|
3
|
+
export declare const formControlLabelClasses: Record<"label" | "container" | "root" | "decoration" | "helperText" | "labelContainer" | "controlLabel", string>;
|
|
4
4
|
export declare type FormControlLabelClasses = typeof formControlLabelClasses;
|
|
5
5
|
export declare type FormControlLabelClassKey = keyof FormControlLabelClasses;
|
|
@@ -12,4 +12,4 @@ export interface IFormControlLabelProps extends Omit<FormControlLabelProps, 'lab
|
|
|
12
12
|
classes?: Partial<FormControlLabelClasses>;
|
|
13
13
|
}
|
|
14
14
|
export declare type IFormControlLabelOwnerState = Pick<IFormControlLabelProps, 'noWrap' | 'height'>;
|
|
15
|
-
export declare const FormControlLabel: React.ForwardRefExoticComponent<Pick<IFormControlLabelProps, "form" | "label" | "slot" | "style" | "title" | "color" | "disabled" | "hidden" | "height" | "translate" | "className" | "classes" | "sx" | "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" | "componentsProps" | "
|
|
15
|
+
export declare const FormControlLabel: React.ForwardRefExoticComponent<Pick<IFormControlLabelProps, "form" | "label" | "slot" | "style" | "title" | "color" | "disabled" | "hidden" | "height" | "translate" | "className" | "classes" | "sx" | "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" | "componentsProps" | "slotProps" | "value" | "name" | "disableTypography" | "noWrap" | "required" | "htmlFor" | "decoration" | "inputRef" | "checked" | "helperText" | "control" | "labelPlacement" | "HelperTextProps"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -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<Pick<IFormFieldProps, "label" | "slot" | "style" | "title" | "error" | "disabled" | "hidden" | "size" | "translate" | "margin" | "className" | "classes" | "children" | "sx" | "key" | "defaultChecked" | "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" | "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" | "
|
|
32
|
+
export declare const FormField: React.ForwardRefExoticComponent<Pick<IFormFieldProps, "label" | "slot" | "style" | "title" | "error" | "disabled" | "hidden" | "size" | "translate" | "margin" | "className" | "classes" | "children" | "sx" | "key" | "defaultChecked" | "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" | "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" | "name" | "fullWidth" | "component" | "focused" | "hiddenLabel" | "required" | "readOnly" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "ErrorHelperTextProps"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -115,7 +115,7 @@ var TypographyTokens = function (_a) {
|
|
|
115
115
|
title: 'Value',
|
|
116
116
|
render: function (_a) {
|
|
117
117
|
var item = _a.item;
|
|
118
|
-
return (React.createElement("pre",
|
|
118
|
+
return (React.createElement(quantum_product_1.Box, { component: "pre", sx: { typography: 'code2', width: 350, whiteSpace: 'pre-wrap' } }, JSON.stringify(item.value, null, 2)));
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
{ field: 'cssVariable', title: 'CSS Token', render: function (_a) {
|
|
@@ -144,7 +144,7 @@ var TypographyGlobalTokens = function (_a) {
|
|
|
144
144
|
title: 'Value',
|
|
145
145
|
render: function (_a) {
|
|
146
146
|
var item = _a.item;
|
|
147
|
-
return (React.createElement("pre",
|
|
147
|
+
return (React.createElement(quantum_product_1.Box, { component: "pre", sx: { typography: 'code2', width: 350, whiteSpace: 'pre-wrap' } }, JSON.stringify(item.value, null, 2)));
|
|
148
148
|
},
|
|
149
149
|
},
|
|
150
150
|
{ field: 'cssVariable', title: 'CSS Token', render: function (_a) {
|