@auth0/quantum-product 1.7.0 → 1.9.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/alert/alert.js +2 -2
- package/copy-button/copy-button.d.ts +4 -1
- package/copy-button/copy-button.js +3 -27
- package/data-table/data-table-row.js +1 -1
- package/description-block/description-block.js +1 -1
- package/dialog/dialog-title/dialog-title.js +1 -1
- package/esm/alert/alert.js +3 -3
- package/esm/copy-button/copy-button.js +3 -27
- package/esm/data-table/data-table-row.js +1 -1
- package/esm/description-block/description-block.js +1 -1
- package/esm/dialog/dialog-title/dialog-title.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/foundations/token-tables.js +3 -3
- package/esm/icon/index.js +381 -34
- package/esm/icon-button/icon-button.js +8 -4
- package/esm/label/label.js +35 -1
- package/esm/page/page-header/page-header-classes.js +1 -0
- package/esm/page/page-header/page-header.js +11 -2
- package/esm/pagination/pager/pager.js +2 -2
- package/esm/panel/panel/panel.js +1 -1
- package/esm/panel/panel-header/panel-header.js +4 -1
- package/esm/select/select.js +1 -1
- package/esm/sidebar/sidebar-link/sidebar-link.js +16 -23
- package/esm/tabs/tab/tab.js +13 -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.js +1 -1
- package/foundations/token-tables.js +2 -2
- package/icon/index.d.ts +366 -34
- package/icon/index.js +400 -68
- package/icon-button/icon-button.d.ts +5 -0
- package/icon-button/icon-button.js +9 -5
- package/label/label.d.ts +11 -2
- package/label/label.js +58 -1
- package/package.json +3 -3
- 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/pagination/pager/pager.js +2 -2
- package/panel/panel/panel.js +1 -1
- package/panel/panel-header/panel-header.js +4 -1
- package/select/select.js +1 -1
- package/sidebar/sidebar-link/sidebar-link.d.ts +5 -2
- package/sidebar/sidebar-link/sidebar-link.js +16 -23
- package/tabs/tab/tab.d.ts +6 -2
- package/tabs/tab/tab.js +13 -2
- 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/alert/alert.js
CHANGED
|
@@ -180,7 +180,7 @@ var AlertAction = (0, styled_1.styled)('div', {
|
|
|
180
180
|
});
|
|
181
181
|
var defaultIconMapping = {
|
|
182
182
|
warning: React.createElement(icon_1.AlertTriangleIcon, null),
|
|
183
|
-
danger: React.createElement(icon_1.
|
|
183
|
+
danger: React.createElement(icon_1.AlertDiamondIcon, null),
|
|
184
184
|
success: React.createElement(icon_1.CheckCircleIcon, null),
|
|
185
185
|
info: React.createElement(icon_1.InfoIcon, null),
|
|
186
186
|
default: React.createElement(icon_1.FileTextIcon, null),
|
|
@@ -216,6 +216,6 @@ exports.Alert = React.forwardRef(function (props, ref) {
|
|
|
216
216
|
!!title && React.createElement(AlertTitle, { className: classes.title }, title),
|
|
217
217
|
React.createElement(AlertMessage, { className: classes.message }, message || children)),
|
|
218
218
|
hasAction && (React.createElement(AlertAction, { className: classes.action }, action ||
|
|
219
|
-
(showCloseButton && (React.createElement(icon_button_1.IconButton, { color: "inherit", size: "small", variant: "link", "aria-label": closeText, onClick: onClose },
|
|
219
|
+
(showCloseButton && (React.createElement(icon_button_1.IconButton, { label: "close button", color: "inherit", size: "small", variant: "link", "aria-label": closeText, onClick: onClose },
|
|
220
220
|
React.createElement(icon_1.XIcon, null))))))));
|
|
221
221
|
});
|
|
@@ -4,7 +4,10 @@ export declare type ICopyButtonProps = IIconButtonProps;
|
|
|
4
4
|
export declare const CopyButton: React.ForwardRefExoticComponent<{
|
|
5
5
|
variant?: "link" | "outlined" | "contained" | undefined;
|
|
6
6
|
shape?: "default" | "circular" | undefined;
|
|
7
|
+
tooltipPlacement?: "left" | "right" | "bottom" | "top" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | undefined;
|
|
8
|
+
onTooltipClose?: ((event: Event | React.SyntheticEvent<Element, Event>) => void) | undefined;
|
|
7
9
|
href?: string | undefined;
|
|
10
|
+
label: string;
|
|
8
11
|
target?: string | undefined;
|
|
9
12
|
} & {
|
|
10
13
|
children?: React.ReactNode;
|
|
@@ -31,4 +34,4 @@ export declare const CopyButton: React.ForwardRefExoticComponent<{
|
|
|
31
34
|
tabIndex?: number | undefined;
|
|
32
35
|
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
33
36
|
touchRippleRef?: React.Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
34
|
-
}, "classes"> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "color" | "action" | "disabled" | "size" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "edge" | "target" | "shape"> & React.RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
}, "classes"> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "label" | "ref" | "color" | "action" | "disabled" | "size" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "edge" | "target" | "shape" | "tooltipPlacement" | "onTooltipClose"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -33,17 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
33
22
|
__setModuleDefault(result, mod);
|
|
34
23
|
return result;
|
|
35
24
|
};
|
|
36
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
-
var t = {};
|
|
38
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
-
t[p] = s[p];
|
|
40
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
-
t[p[i]] = s[p[i]];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
25
|
var __read = (this && this.__read) || function (o, n) {
|
|
48
26
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
49
27
|
if (!m) return o;
|
|
@@ -65,9 +43,8 @@ exports.CopyButton = void 0;
|
|
|
65
43
|
var React = __importStar(require("react"));
|
|
66
44
|
var icon_1 = require("../icon");
|
|
67
45
|
var icon_button_1 = require("../icon-button");
|
|
68
|
-
var tooltip_1 = require("../tooltip");
|
|
69
46
|
exports.CopyButton = React.forwardRef(function (_a, ref) {
|
|
70
|
-
var onClick = _a.onClick
|
|
47
|
+
var onClick = _a.onClick;
|
|
71
48
|
var _b = __read(React.useState(false), 2), pressed = _b[0], setPressed = _b[1];
|
|
72
49
|
React.useEffect(function () {
|
|
73
50
|
if (!pressed) {
|
|
@@ -87,7 +64,6 @@ exports.CopyButton = React.forwardRef(function (_a, ref) {
|
|
|
87
64
|
var handleClose = function () { return setPressed(false); };
|
|
88
65
|
// use title as the key to force a mount/unmount of the tooltip. This drives the feedback transition.
|
|
89
66
|
var title = pressed ? 'Copied!' : 'Copy';
|
|
90
|
-
return (React.createElement(
|
|
91
|
-
React.createElement(
|
|
92
|
-
React.createElement(icon_1.CopyIcon, null))));
|
|
67
|
+
return (React.createElement(icon_button_1.IconButton, { key: title, label: title, onTooltipClose: handleClose, ref: ref, tooltipPlacement: "top", onClick: handleClick },
|
|
68
|
+
React.createElement(icon_1.CopyIcon, null)));
|
|
93
69
|
});
|
|
@@ -106,7 +106,7 @@ function DataTableRow(props) {
|
|
|
106
106
|
}
|
|
107
107
|
return hideHeader ? (React.createElement(table_1.TableCell, { width: column.width, key: colIndex, align: column.align, padding: column.padding }, content)) : (React.createElement(table_1.TableCell, { key: colIndex, align: column.align, padding: column.padding }, content));
|
|
108
108
|
}),
|
|
109
|
-
!!renderItemDetails && (React.createElement(table_1.TableCell, { padding: "checkbox", align: "right" }, !!detailsContent && (React.createElement(icon_button_1.IconButton, { onClick: function () { return setIsExpanded(!isExpanded); }, variant: "link" }, isExpanded ? React.createElement(icon_1.ChevronUpIcon, null) : React.createElement(icon_1.ChevronDownIcon, null)))))),
|
|
109
|
+
!!renderItemDetails && (React.createElement(table_1.TableCell, { padding: "checkbox", align: "right" }, !!detailsContent && (React.createElement(icon_button_1.IconButton, { onClick: function () { return setIsExpanded(!isExpanded); }, variant: "link", label: isExpanded ? 'Chevron up button' : 'chevron down button' }, isExpanded ? React.createElement(icon_1.ChevronUpIcon, null) : React.createElement(icon_1.ChevronDownIcon, null)))))),
|
|
110
110
|
!!detailsContent && (React.createElement(Row, { ownerState: { expanded: true } },
|
|
111
111
|
React.createElement(table_1.TableCell, { padding: "none", colSpan: columns.length + 1 },
|
|
112
112
|
React.createElement(collapse_1.Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true },
|
|
@@ -93,5 +93,5 @@ exports.DescriptionBlock = React.forwardRef(function (props, ref) {
|
|
|
93
93
|
!!label && inlinelayout && ':')),
|
|
94
94
|
React.createElement(Content, null,
|
|
95
95
|
code ? (React.createElement(code_1.Code, __assign({ title: typeof description === 'string' ? description : undefined, sx: { maxWidth: 300 }, variant: "code2", noWrap: true }, descriptionTypographyProps), description)) : (React.createElement(text_1.Text, __assign({ component: "span", variant: "body2" }, descriptionTypographyProps), description)),
|
|
96
|
-
!!onCopy && React.createElement(CopyAction, { size: "small", onClick: onCopy }))));
|
|
96
|
+
!!onCopy && React.createElement(CopyAction, { label: "copy", size: "small", onClick: onCopy }))));
|
|
97
97
|
});
|
|
@@ -72,6 +72,6 @@ exports.DialogTitle = React.forwardRef(function (props, ref) {
|
|
|
72
72
|
var classes = (0, classes_1.useMergedClasses)(dialog_title_classes_1.dialogTitleClasses, dialog_title_classes_1.getDialogTitleUtilityClass, propClasses);
|
|
73
73
|
return (React.createElement(exports.Root, __assign({}, dialogTitleProps, { className: (0, clsx_1.default)(classes.root, className), ref: ref }),
|
|
74
74
|
disableTypography ? (children) : (React.createElement(text_1.Text, { id: id, className: classes.title, variant: "h5", color: "textPrimary" }, children)),
|
|
75
|
-
!!onClose && (React.createElement(icon_button_1.IconButton, { shape: "circular", variant: "contained", "aria-label": "Close", size: "small", className: classes.closeButton, onClick: function (event) { return onClose(event, 'closeClick'); } },
|
|
75
|
+
!!onClose && (React.createElement(icon_button_1.IconButton, { shape: "circular", variant: "contained", "aria-label": "Close", size: "small", className: classes.closeButton, onClick: function (event) { return onClose(event, 'closeClick'); }, label: "close button" },
|
|
76
76
|
React.createElement(icon_1.XIcon, null)))));
|
|
77
77
|
});
|
package/esm/alert/alert.js
CHANGED
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
|
-
import {
|
|
24
|
+
import { AlertDiamondIcon, AlertTriangleIcon, CheckCircleIcon, FileTextIcon, InfoIcon, XIcon } from '../icon';
|
|
25
25
|
import { IconButton, iconButtonClasses } from '../icon-button';
|
|
26
26
|
import { buttonClasses } from '../button';
|
|
27
27
|
import { composeClasses } from '../styles/classes';
|
|
@@ -151,7 +151,7 @@ var AlertAction = styled('div', {
|
|
|
151
151
|
});
|
|
152
152
|
var defaultIconMapping = {
|
|
153
153
|
warning: React.createElement(AlertTriangleIcon, null),
|
|
154
|
-
danger: React.createElement(
|
|
154
|
+
danger: React.createElement(AlertDiamondIcon, null),
|
|
155
155
|
success: React.createElement(CheckCircleIcon, null),
|
|
156
156
|
info: React.createElement(InfoIcon, null),
|
|
157
157
|
default: React.createElement(FileTextIcon, null),
|
|
@@ -187,6 +187,6 @@ export var Alert = React.forwardRef(function (props, ref) {
|
|
|
187
187
|
!!title && React.createElement(AlertTitle, { className: classes.title }, title),
|
|
188
188
|
React.createElement(AlertMessage, { className: classes.message }, message || children)),
|
|
189
189
|
hasAction && (React.createElement(AlertAction, { className: classes.action }, action ||
|
|
190
|
-
(showCloseButton && (React.createElement(IconButton, { color: "inherit", size: "small", variant: "link", "aria-label": closeText, onClick: onClose },
|
|
190
|
+
(showCloseButton && (React.createElement(IconButton, { label: "close button", color: "inherit", size: "small", variant: "link", "aria-label": closeText, onClick: onClose },
|
|
191
191
|
React.createElement(XIcon, null))))))));
|
|
192
192
|
});
|
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
1
|
var __read = (this && this.__read) || function (o, n) {
|
|
24
2
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
25
3
|
if (!m) return o;
|
|
@@ -39,9 +17,8 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
39
17
|
import * as React from 'react';
|
|
40
18
|
import { CopyIcon } from '../icon';
|
|
41
19
|
import { IconButton } from '../icon-button';
|
|
42
|
-
import { Tooltip } from '../tooltip';
|
|
43
20
|
export var CopyButton = React.forwardRef(function (_a, ref) {
|
|
44
|
-
var onClick = _a.onClick
|
|
21
|
+
var onClick = _a.onClick;
|
|
45
22
|
var _b = __read(React.useState(false), 2), pressed = _b[0], setPressed = _b[1];
|
|
46
23
|
React.useEffect(function () {
|
|
47
24
|
if (!pressed) {
|
|
@@ -61,7 +38,6 @@ export var CopyButton = React.forwardRef(function (_a, ref) {
|
|
|
61
38
|
var handleClose = function () { return setPressed(false); };
|
|
62
39
|
// use title as the key to force a mount/unmount of the tooltip. This drives the feedback transition.
|
|
63
40
|
var title = pressed ? 'Copied!' : 'Copy';
|
|
64
|
-
return (React.createElement(
|
|
65
|
-
React.createElement(
|
|
66
|
-
React.createElement(CopyIcon, null))));
|
|
41
|
+
return (React.createElement(IconButton, { key: title, label: title, onTooltipClose: handleClose, ref: ref, tooltipPlacement: "top", onClick: handleClick },
|
|
42
|
+
React.createElement(CopyIcon, null)));
|
|
67
43
|
});
|
|
@@ -79,7 +79,7 @@ export function DataTableRow(props) {
|
|
|
79
79
|
}
|
|
80
80
|
return hideHeader ? (React.createElement(TableCell, { width: column.width, key: colIndex, align: column.align, padding: column.padding }, content)) : (React.createElement(TableCell, { key: colIndex, align: column.align, padding: column.padding }, content));
|
|
81
81
|
}),
|
|
82
|
-
!!renderItemDetails && (React.createElement(TableCell, { padding: "checkbox", align: "right" }, !!detailsContent && (React.createElement(IconButton, { onClick: function () { return setIsExpanded(!isExpanded); }, variant: "link" }, isExpanded ? React.createElement(ChevronUpIcon, null) : React.createElement(ChevronDownIcon, null)))))),
|
|
82
|
+
!!renderItemDetails && (React.createElement(TableCell, { padding: "checkbox", align: "right" }, !!detailsContent && (React.createElement(IconButton, { onClick: function () { return setIsExpanded(!isExpanded); }, variant: "link", label: isExpanded ? 'Chevron up button' : 'chevron down button' }, isExpanded ? React.createElement(ChevronUpIcon, null) : React.createElement(ChevronDownIcon, null)))))),
|
|
83
83
|
!!detailsContent && (React.createElement(Row, { ownerState: { expanded: true } },
|
|
84
84
|
React.createElement(TableCell, { padding: "none", colSpan: columns.length + 1 },
|
|
85
85
|
React.createElement(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true },
|
|
@@ -67,5 +67,5 @@ export var DescriptionBlock = React.forwardRef(function (props, ref) {
|
|
|
67
67
|
!!label && inlinelayout && ':')),
|
|
68
68
|
React.createElement(Content, null,
|
|
69
69
|
code ? (React.createElement(Code, __assign({ title: typeof description === 'string' ? description : undefined, sx: { maxWidth: 300 }, variant: "code2", noWrap: true }, descriptionTypographyProps), description)) : (React.createElement(Text, __assign({ component: "span", variant: "body2" }, descriptionTypographyProps), description)),
|
|
70
|
-
!!onCopy && React.createElement(CopyAction, { size: "small", onClick: onCopy }))));
|
|
70
|
+
!!onCopy && React.createElement(CopyAction, { label: "copy", size: "small", onClick: onCopy }))));
|
|
71
71
|
});
|
|
@@ -43,6 +43,6 @@ export var DialogTitle = React.forwardRef(function (props, ref) {
|
|
|
43
43
|
var classes = useMergedClasses(dialogTitleClasses, getDialogTitleUtilityClass, propClasses);
|
|
44
44
|
return (React.createElement(Root, __assign({}, dialogTitleProps, { className: clsx(classes.root, className), ref: ref }),
|
|
45
45
|
disableTypography ? (children) : (React.createElement(Text, { id: id, className: classes.title, variant: "h5", color: "textPrimary" }, children)),
|
|
46
|
-
!!onClose && (React.createElement(IconButton, { shape: "circular", variant: "contained", "aria-label": "Close", size: "small", className: classes.closeButton, onClick: function (event) { return onClose(event, 'closeClick'); } },
|
|
46
|
+
!!onClose && (React.createElement(IconButton, { shape: "circular", variant: "contained", "aria-label": "Close", size: "small", className: classes.closeButton, onClick: function (event) { return onClose(event, 'closeClick'); }, label: "close button" },
|
|
47
47
|
React.createElement(XIcon, null)))));
|
|
48
48
|
});
|
|
@@ -22,7 +22,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import * as React from 'react';
|
|
24
24
|
import { useFormLayoutContext } from '../form';
|
|
25
|
+
import { Label } from '../label';
|
|
25
26
|
import { RowLayout } from '../row-layout';
|
|
27
|
+
import { StackLayout } from '../stack-layout';
|
|
26
28
|
import { styled } from '../styled';
|
|
27
29
|
import { fieldSetClasses, fieldSetComponentName, getFieldSetUtilityClass } from './field-set-classes';
|
|
28
30
|
import { Text } from '../text';
|
|
@@ -53,8 +55,14 @@ var LabelContent = styled(RowLayout, {
|
|
|
53
55
|
display: 'none',
|
|
54
56
|
},
|
|
55
57
|
});
|
|
58
|
+
var AvailabilityLabel = styled(Label, { name: fieldSetComponentName, slot: 'AvailabilityLabel' })(function (_a) {
|
|
59
|
+
var theme = _a.theme;
|
|
60
|
+
return ({
|
|
61
|
+
marginLeft: theme.spacing(1),
|
|
62
|
+
});
|
|
63
|
+
});
|
|
56
64
|
export var FieldSet = React.forwardRef(function (props, ref) {
|
|
57
|
-
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"]);
|
|
65
|
+
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"]);
|
|
58
66
|
var layoutContext = useFormLayoutContext().layout;
|
|
59
67
|
var classes = useMergedClasses(fieldSetClasses, getFieldSetUtilityClass, props.classes);
|
|
60
68
|
var layout = propLayout || layoutContext;
|
|
@@ -63,7 +71,9 @@ export var FieldSet = React.forwardRef(function (props, ref) {
|
|
|
63
71
|
};
|
|
64
72
|
return (React.createElement(Root, __assign({ ref: ref, ownerState: ownerState, className: clsx(classes.root, className) }, rootProps),
|
|
65
73
|
React.createElement(LabelContent, { gutter: 0.5, className: classes.labelContent },
|
|
66
|
-
|
|
74
|
+
React.createElement(StackLayout, { gutter: 0 },
|
|
75
|
+
!!label && (React.createElement(Text, { variant: "subtitle1", color: "textPrimary", component: "legend", className: classes.labelText }, label)),
|
|
76
|
+
!!label && !!productReleaseStage && (React.createElement(AvailabilityLabel, { className: classes.availabilityLabel, productReleaseStage: productReleaseStage, productReleaseStageAbbr: false }))),
|
|
67
77
|
!!description && (React.createElement(Text, { variant: "body2", color: "textSecondary", className: classes.descriptionText }, description))),
|
|
68
78
|
React.createElement(RowLayout, { gutter: margin === 'dense' ? 2 : 3, className: classes.contentWrapper }, children)));
|
|
69
79
|
});
|
|
@@ -29,7 +29,7 @@ import { paperClasses } from '../paper';
|
|
|
29
29
|
export var floatingPanelComponentName = 'QuantumFloatingPanel';
|
|
30
30
|
var CloseButton = function (_a) {
|
|
31
31
|
var onCloseButtonClick = _a.onCloseButtonClick;
|
|
32
|
-
return (React.createElement(StyledIconButton, { variant: "outlined", shape: "circular", size: "small", onClick: onCloseButtonClick },
|
|
32
|
+
return (React.createElement(StyledIconButton, { label: "close", variant: "outlined", shape: "circular", size: "small", onClick: onCloseButtonClick },
|
|
33
33
|
React.createElement(XIcon, null)));
|
|
34
34
|
};
|
|
35
35
|
var StyledIconButton = styled(IconButton, { name: floatingPanelComponentName, slot: 'CloseButton' })(function (_a) {
|
|
@@ -23,7 +23,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
23
23
|
}
|
|
24
24
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
25
25
|
};
|
|
26
|
-
import { Avatar, AvatarBlock, Code, DataTable } from '@auth0/quantum-product';
|
|
26
|
+
import { Avatar, AvatarBlock, Code, DataTable, Box } from '@auth0/quantum-product';
|
|
27
27
|
import * as React from 'react';
|
|
28
28
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
29
29
|
var tokensJSON = require('../../../quantum-tokens/old/json/tokens.json');
|
|
@@ -87,7 +87,7 @@ export var TypographyTokens = function (_a) {
|
|
|
87
87
|
title: 'Value',
|
|
88
88
|
render: function (_a) {
|
|
89
89
|
var item = _a.item;
|
|
90
|
-
return (React.createElement("pre",
|
|
90
|
+
return (React.createElement(Box, { component: "pre", sx: { typography: 'code2', width: 350, whiteSpace: 'pre-wrap' } }, JSON.stringify(item.value, null, 2)));
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
{ field: 'cssVariable', title: 'CSS Token', render: function (_a) {
|
|
@@ -115,7 +115,7 @@ export var TypographyGlobalTokens = 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(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) {
|