@auth0/quantum-product 1.9.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.d.ts +20 -2
- package/alert/alert.d.ts +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/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/floating-panel/floating-panel.js +1 -1
- package/esm/form/form-label/form-label-overrides.js +1 -1
- package/esm/gallery-layout/gallery-layout.js +1 -1
- 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/link/link.js +1 -1
- package/esm/logo/logo.js +1 -1
- 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/test-utils.js +1 -0
- package/esm/theme/create-components.js +17 -5
- package/expansion-panel/expansion-panel.d.ts +2 -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/gallery-layout/gallery-layout.d.ts +0 -1
- package/gallery-layout/gallery-layout.js +3 -3
- package/icon/index.d.ts +343 -343
- 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/link/link.js +1 -1
- package/logo/logo.d.ts +1 -5
- package/logo/logo.js +3 -3
- package/package.json +5 -5
- package/panel/panel/panel.d.ts +1 -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-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/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
|
@@ -26,7 +26,7 @@ import { styled } from '../../styled';
|
|
|
26
26
|
import { DangerZoneItemAction } from '../danger-zone-item-action';
|
|
27
27
|
import { TitleBlock } from '../../title-block';
|
|
28
28
|
var dangerZoneItemComponentName = 'QuantumDangerZoneItem';
|
|
29
|
-
|
|
29
|
+
var Root = styled('li', {
|
|
30
30
|
name: dangerZoneItemComponentName,
|
|
31
31
|
slot: 'Root',
|
|
32
32
|
})(function (_a) {
|
|
@@ -40,7 +40,7 @@ export var Root = styled('li', {
|
|
|
40
40
|
borderRadius: theme.shape.borderRadius,
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
|
-
|
|
43
|
+
var StyledTitleBlock = styled(TitleBlock, {
|
|
44
44
|
name: dangerZoneItemComponentName,
|
|
45
45
|
slot: 'TitleBlock',
|
|
46
46
|
})(function (_a) {
|
|
@@ -50,7 +50,7 @@ export var StyledTitleBlock = styled(TitleBlock, {
|
|
|
50
50
|
marginRight: theme.spacing(3),
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
-
|
|
53
|
+
var ActionContainer = styled('div', {
|
|
54
54
|
name: dangerZoneItemComponentName,
|
|
55
55
|
slot: 'ActionContainer',
|
|
56
56
|
})(function () { return ({
|
|
@@ -13,7 +13,7 @@ import * as React from 'react';
|
|
|
13
13
|
import { Button } from '../../button';
|
|
14
14
|
import { styled } from '../../styled';
|
|
15
15
|
export var dangerZoneItemActionComponentName = 'QuantumDangerZoneItemAction';
|
|
16
|
-
|
|
16
|
+
var Root = styled(Button, {
|
|
17
17
|
name: dangerZoneItemActionComponentName,
|
|
18
18
|
slot: 'Root',
|
|
19
19
|
})({
|
|
@@ -26,7 +26,7 @@ import { CopyButton } from '../copy-button';
|
|
|
26
26
|
import { styled } from '../styled';
|
|
27
27
|
import { Text } from '../text';
|
|
28
28
|
var descriptionBlockComponentName = 'QuantumDescriptionBlock';
|
|
29
|
-
|
|
29
|
+
var Root = styled('div', {
|
|
30
30
|
name: descriptionBlockComponentName,
|
|
31
31
|
slot: 'Root',
|
|
32
32
|
})(function (_a) {
|
|
@@ -30,7 +30,7 @@ import { useMergedClasses } from '../../styles/classes';
|
|
|
30
30
|
import clsx from '../../utils/clsx';
|
|
31
31
|
import { dialogTitleClasses, getDialogTitleUtilityClass } from './dialog-title-classes';
|
|
32
32
|
var dialogTitleComponentName = 'QuantumDialogTitle';
|
|
33
|
-
|
|
33
|
+
var Root = styled(MuiDialogTitle, {
|
|
34
34
|
name: dialogTitleComponentName,
|
|
35
35
|
slot: 'Root',
|
|
36
36
|
})({
|
package/esm/dialog/dialog.js
CHANGED
|
@@ -29,7 +29,7 @@ import { DialogTitle } from './dialog-title';
|
|
|
29
29
|
import { useId } from '../utils/use-id';
|
|
30
30
|
import { styled } from '../styled';
|
|
31
31
|
export var dialogComponentName = 'QuantumDialog';
|
|
32
|
-
|
|
32
|
+
var Root = styled(MuiDialog, {
|
|
33
33
|
name: dialogComponentName,
|
|
34
34
|
slot: 'Root',
|
|
35
35
|
})(function (_a) {
|
|
@@ -30,7 +30,7 @@ import { Text } from '../text';
|
|
|
30
30
|
import { emptyStateClasses, emptyStateComponentName, getEmptyStateUtilityClass, } from './empty-state-classes';
|
|
31
31
|
import { useMergedClasses } from '../styles/classes';
|
|
32
32
|
import clsx from '../utils/clsx';
|
|
33
|
-
|
|
33
|
+
var Root = styled(RowLayout, {
|
|
34
34
|
name: emptyStateComponentName,
|
|
35
35
|
slot: 'Root',
|
|
36
36
|
})({});
|
|
@@ -45,7 +45,7 @@ var SubContainer = styled('div', { name: floatingPanelComponentName, slot: 'SubC
|
|
|
45
45
|
display: 'flex',
|
|
46
46
|
width: 0,
|
|
47
47
|
});
|
|
48
|
-
|
|
48
|
+
var Root = styled(Drawer, { name: floatingPanelComponentName, slot: 'Root' })(function (_a) {
|
|
49
49
|
var _b;
|
|
50
50
|
var theme = _a.theme, panelWidth = _a.panelWidth, elevated = _a.elevated, topOffset = _a.topOffset, anchor = _a.anchor;
|
|
51
51
|
var boxShadowStyle = elevated ? theme.shadows[2] : 'none';
|
|
@@ -31,7 +31,7 @@ export var gallerylayoutSizes = {
|
|
|
31
31
|
export var getValueForGalleryLayoutSize = function (size) {
|
|
32
32
|
return size ? gallerylayoutSizes[size] : null;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
var Root = styled('ul', {
|
|
35
35
|
name: 'QuantumGalleryLayout',
|
|
36
36
|
slot: 'Root',
|
|
37
37
|
})({
|
|
@@ -43,7 +43,7 @@ var StyledIconButton = styled(MuiIconButton, {
|
|
|
43
43
|
}) }, _b["&.".concat(iconButtonClasses.disabled)] = {
|
|
44
44
|
backgroundColor: theme.palette.action.disabledBackground,
|
|
45
45
|
color: theme.tokens.color_fg_default,
|
|
46
|
-
}, _b['& > svg
|
|
46
|
+
}, _b['& > svg'] = {
|
|
47
47
|
height: '1em',
|
|
48
48
|
width: '1em',
|
|
49
49
|
}, _b)), (ownerState.shape === 'circular' && {
|
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/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) {
|
|
@@ -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/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,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>>;
|
|
@@ -15,7 +15,6 @@ export declare type IGalleryLayoutProps = IStyledComponentProps<{
|
|
|
15
15
|
};
|
|
16
16
|
defaultComponent: 'ul';
|
|
17
17
|
}>;
|
|
18
|
-
export declare const Root: import("styled-components").StyledComponent<"ul", import("..").ITheme, import("@mui/system").MUIStyledCommonProps<import("..").ITheme>, never>;
|
|
19
18
|
export declare const GalleryLayout: React.ForwardRefExoticComponent<ILayoutComponentProps & {
|
|
20
19
|
size?: ResponsiveStyleValue<"small" | "medium" | "large"> | undefined;
|
|
21
20
|
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref" | "size" | keyof ILayoutComponentProps> & import("../styled").IStyledCommonProps & React.RefAttributes<HTMLUListElement>>;
|
|
@@ -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.GalleryLayout = exports.
|
|
48
|
+
exports.GalleryLayout = exports.getValueForGalleryLayoutSize = exports.gallerylayoutSizes = void 0;
|
|
49
49
|
var React = __importStar(require("react"));
|
|
50
50
|
var styled_1 = require("../styled");
|
|
51
51
|
var responsive_style_value_1 = require("../utils/responsive-style-value");
|
|
@@ -58,7 +58,7 @@ var getValueForGalleryLayoutSize = function (size) {
|
|
|
58
58
|
return size ? exports.gallerylayoutSizes[size] : null;
|
|
59
59
|
};
|
|
60
60
|
exports.getValueForGalleryLayoutSize = getValueForGalleryLayoutSize;
|
|
61
|
-
|
|
61
|
+
var Root = (0, styled_1.styled)('ul', {
|
|
62
62
|
name: 'QuantumGalleryLayout',
|
|
63
63
|
slot: 'Root',
|
|
64
64
|
})({
|
|
@@ -69,5 +69,5 @@ exports.Root = (0, styled_1.styled)('ul', {
|
|
|
69
69
|
});
|
|
70
70
|
exports.GalleryLayout = React.forwardRef(function (_a, ref) {
|
|
71
71
|
var component = _a.component, asProp = _a.as, _b = _a.gutter, gutter = _b === void 0 ? 3 : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, children = _a.children, sx = _a.sx, rootProps = __rest(_a, ["component", "as", "gutter", "size", "children", "sx"]);
|
|
72
|
-
return (React.createElement(
|
|
72
|
+
return (React.createElement(Root, __assign({ as: asProp || component || 'ul', ref: ref, sx: __assign({ display: 'grid', gridTemplateColumns: (0, responsive_style_value_1.mapResponsiveStyleValue)(size, exports.getValueForGalleryLayoutSize), gap: gutter }, sx) }, rootProps), children));
|
|
73
73
|
});
|