@popmenu/admin-ui 0.106.0 → 0.108.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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AlertDialogProps } from './AlertDialogProps';
|
|
3
|
-
export declare const AlertDialog: React.ForwardRefExoticComponent<Pick<AlertDialogProps, "severity" | "classes" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "container" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableBackdropClick" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "manager" | "onBackdropClick" | "onClose" | "onEscapeKeyDown" | "onRendered" | "open" | "innerRef" | "cancelButtonText" | "descriptionId" | "labelId" | "onCancel" | "onProceed" | "proceedButtonText" | "disabled" | "fullScreen" | "fullWidth" | "maxWidth" | "PaperComponent" | "PaperProps" | "scroll" | "TransitionComponent" | "transitionDuration" | "TransitionProps"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const AlertDialog: React.ForwardRefExoticComponent<Pick<AlertDialogProps, "severity" | "classes" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "container" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableBackdropClick" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "manager" | "onBackdropClick" | "onClose" | "onEscapeKeyDown" | "onRendered" | "open" | "innerRef" | "cancelButtonText" | "hideCancelButton" | "descriptionId" | "labelId" | "onCancel" | "onProceed" | "proceedButtonText" | "disabled" | "fullScreen" | "fullWidth" | "maxWidth" | "PaperComponent" | "PaperProps" | "scroll" | "TransitionComponent" | "transitionDuration" | "TransitionProps"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,6 +3,8 @@ import { DialogProps } from '@popmenu/common-ui';
|
|
|
3
3
|
export interface AlertDialogProps extends DialogProps {
|
|
4
4
|
/** Sets the text within the cancel button. */
|
|
5
5
|
cancelButtonText?: string;
|
|
6
|
+
/** Hides the cancel button. */
|
|
7
|
+
hideCancelButton?: boolean;
|
|
6
8
|
/** The id of the DOM node serving as the description for the AlertDialog. Required for accessibility standards. */
|
|
7
9
|
descriptionId: string;
|
|
8
10
|
/** The id of the DOM node serving as the label for the AlertDialog. Required for accessibility standards. */
|
package/build/index.es.js
CHANGED
|
@@ -214,6 +214,7 @@ var useIconStyles = makeStyles(function (_a) {
|
|
|
214
214
|
if (props.color) {
|
|
215
215
|
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
216
216
|
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
217
|
+
// @ts-expect-error - todo.
|
|
217
218
|
value = palette[color][variant];
|
|
218
219
|
}
|
|
219
220
|
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
@@ -462,6 +463,7 @@ var getBackground$1 = function (theme) { return function (props) {
|
|
|
462
463
|
}
|
|
463
464
|
else if (severity) {
|
|
464
465
|
var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
|
|
466
|
+
// @ts-expect-error - todo.
|
|
465
467
|
background = theme.palette[color][colorVariant];
|
|
466
468
|
}
|
|
467
469
|
return background;
|
|
@@ -540,14 +542,18 @@ var getCustomColor = function (theme, color) {
|
|
|
540
542
|
var isTextColor = color && ['textPrimary', 'textSecondary'].includes(color);
|
|
541
543
|
switch (true) {
|
|
542
544
|
case isCommonColor:
|
|
545
|
+
// @ts-expect-error - todo.
|
|
543
546
|
return theme.palette.common[color];
|
|
544
547
|
case Boolean(isGreyColor):
|
|
545
548
|
var scale = color.split('.')[1];
|
|
549
|
+
// @ts-expect-error - todo.
|
|
546
550
|
return theme.palette.grey[scale] || theme.palette.grey[900];
|
|
547
551
|
case Boolean(isSemanticColor):
|
|
548
552
|
var _a = color.split('.'), paletteKey = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
553
|
+
// @ts-expect-error - todo.
|
|
549
554
|
return theme.palette[paletteKey][variant];
|
|
550
555
|
case isTextColor:
|
|
556
|
+
// @ts-expect-error - todo.
|
|
551
557
|
return theme.palette.text[color.slice(4).toLowerCase()];
|
|
552
558
|
default:
|
|
553
559
|
return undefined;
|
|
@@ -605,9 +611,12 @@ Typography.defaultProps = defaultTypographyProps;
|
|
|
605
611
|
|
|
606
612
|
var getFadeStop = function (_a, typographyVariant) {
|
|
607
613
|
var typography = _a.typography;
|
|
614
|
+
// @ts-expect-error - todo.
|
|
608
615
|
return !isNaN(Number(typography[typographyVariant].lineHeight))
|
|
609
|
-
?
|
|
610
|
-
|
|
616
|
+
? // @ts-expect-error - todo.
|
|
617
|
+
typography[typographyVariant].lineHeight + "rem"
|
|
618
|
+
: // @ts-expect-error - todo.
|
|
619
|
+
typography[typographyVariant].lineHeight;
|
|
611
620
|
};
|
|
612
621
|
makeStyles(function (theme) { return ({
|
|
613
622
|
overlay: {
|
|
@@ -638,6 +647,7 @@ makeStyles(function (theme) { return ({
|
|
|
638
647
|
var textColor = props.textColor;
|
|
639
648
|
if (Object.values(SemanticColors).includes(textColor)) {
|
|
640
649
|
var _a = textColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
650
|
+
// @ts-expect-error - todo.
|
|
641
651
|
return theme.palette[semanticColor][shade];
|
|
642
652
|
}
|
|
643
653
|
else if (textColor) {
|
|
@@ -654,6 +664,7 @@ makeStyles(function (theme) { return ({
|
|
|
654
664
|
var dividerColor = props.dividerColor;
|
|
655
665
|
if (Object.values(SemanticColors).includes(dividerColor)) {
|
|
656
666
|
var _a = dividerColor.split('.'), semanticColor = _a[0], shade = _a[1];
|
|
667
|
+
// @ts-expect-error - todo.
|
|
657
668
|
return theme.palette[semanticColor][shade];
|
|
658
669
|
}
|
|
659
670
|
else if (dividerColor) {
|
|
@@ -1102,7 +1113,9 @@ var Alert = forwardRef(function (props, ref) {
|
|
|
1102
1113
|
validLink && React__default.createElement(Link, __assign$1({}, validLink)),
|
|
1103
1114
|
onClose && (React__default.createElement(IconButton, { onClick: onClose },
|
|
1104
1115
|
React__default.createElement(Icon, { icon: SvgX })))));
|
|
1105
|
-
return (React__default.createElement(CommonAlert, __assign$1({ ref: ref, classes: classes,
|
|
1116
|
+
return (React__default.createElement(CommonAlert, __assign$1({ ref: ref, classes: classes,
|
|
1117
|
+
// @ts-expect-error - todo.
|
|
1118
|
+
icon: React__default.createElement(Icon, { icon: severityIcons$1[severity], size: "extra-large" }), action: Action, variant: variant, severity: severity }, muiProps), children));
|
|
1106
1119
|
});
|
|
1107
1120
|
Alert.displayName = 'Alert';
|
|
1108
1121
|
|
|
@@ -1111,6 +1124,7 @@ var getColor = function (palette, props) {
|
|
|
1111
1124
|
var variant = props.variant;
|
|
1112
1125
|
var color = 'inherit';
|
|
1113
1126
|
if (['primary', 'info', 'success', 'warning', 'error'].includes(variant)) {
|
|
1127
|
+
// @ts-expect-error - todo.
|
|
1114
1128
|
color = palette[variant].contrastText;
|
|
1115
1129
|
}
|
|
1116
1130
|
if (variant === 'secondary') {
|
|
@@ -1141,6 +1155,7 @@ var getColorHover = function (palette, props) {
|
|
|
1141
1155
|
var getBackground = function (palette, props) {
|
|
1142
1156
|
var backgroundColor = 'inherit';
|
|
1143
1157
|
if (['info', 'success', 'warning', 'error'].includes(props.variant)) {
|
|
1158
|
+
// @ts-expect-error - todo.
|
|
1144
1159
|
backgroundColor = palette[props.variant].main;
|
|
1145
1160
|
}
|
|
1146
1161
|
if (props.variant === 'primary') {
|
|
@@ -1158,6 +1173,7 @@ var getBackground = function (palette, props) {
|
|
|
1158
1173
|
var getBackgroundHover = function (palette, props) {
|
|
1159
1174
|
var backgroundHoverColor = 'inherit';
|
|
1160
1175
|
if (['primary', 'info', 'success', 'warning', 'error'].includes(props.variant)) {
|
|
1176
|
+
// @ts-expect-error - todo.
|
|
1161
1177
|
backgroundHoverColor = palette[props.variant].dark;
|
|
1162
1178
|
}
|
|
1163
1179
|
if (props.variant === 'secondary') {
|
|
@@ -1306,7 +1322,7 @@ var severityIcons = {
|
|
|
1306
1322
|
success: SvgCheckCircle,
|
|
1307
1323
|
};
|
|
1308
1324
|
var AlertDialog = forwardRef(function (props, ref) {
|
|
1309
|
-
var _a = props.cancelButtonText, cancelButtonText = _a === void 0 ? 'cancel' : _a, children = props.children, labelId = props.labelId, descriptionId = props.descriptionId,
|
|
1325
|
+
var _a = props.cancelButtonText, cancelButtonText = _a === void 0 ? 'cancel' : _a, _b = props.hideCancelButton, hideCancelButton = _b === void 0 ? false : _b, children = props.children, labelId = props.labelId, descriptionId = props.descriptionId, _c = props.severity, severity = _c === void 0 ? 'info' : _c, _d = props.proceedButtonText, proceedButtonText = _d === void 0 ? 'proceed' : _d, _e = props.disabled, disabled = _e === void 0 ? false : _e, onClose = props.onClose, onCancel = props.onCancel, onProceed = props.onProceed, DialogProps = __rest$1(props, ["cancelButtonText", "hideCancelButton", "children", "labelId", "descriptionId", "severity", "proceedButtonText", "disabled", "onClose", "onCancel", "onProceed"]);
|
|
1310
1326
|
var classes = useAlertDialogStyles(props);
|
|
1311
1327
|
return (React__default.createElement(Dialog, __assign$1({ ref: ref, classes: { paper: classes.root }, maxWidth: "sm", fullWidth: true }, DialogProps),
|
|
1312
1328
|
React__default.createElement(Card, { classes: { root: classes.card }, role: "alertdialog", "aria-modal": "true", "aria-labelledby": labelId, "aria-describedby": descriptionId },
|
|
@@ -1317,7 +1333,7 @@ var AlertDialog = forwardRef(function (props, ref) {
|
|
|
1317
1333
|
React__default.createElement(Icon, { className: classes.icon, color: severity, icon: severityIcons[severity] }),
|
|
1318
1334
|
React__default.createElement(Box, { pl: 2, pr: 3 }, children))),
|
|
1319
1335
|
React__default.createElement(CardActions, { classes: { root: classes.cardActions } },
|
|
1320
|
-
React__default.createElement(Button, { onClick: onCancel, disabled: disabled, variant: "ghost" }, cancelButtonText),
|
|
1336
|
+
!hideCancelButton && (React__default.createElement(Button, { onClick: onCancel, disabled: disabled, variant: "ghost" }, cancelButtonText)),
|
|
1321
1337
|
React__default.createElement(Button, { onClick: onProceed, loading: disabled, variant: severity }, proceedButtonText)))));
|
|
1322
1338
|
});
|
|
1323
1339
|
AlertDialog.displayName = 'AlertDialog';
|
|
@@ -1342,6 +1358,7 @@ AlertTitle.displayName = 'AlertTitle';
|
|
|
1342
1358
|
var getBorderColor = function (palette, variant) {
|
|
1343
1359
|
var borderColor = 'inherit';
|
|
1344
1360
|
if (['primary', 'secondary', 'info', 'success', 'warning', 'error'].includes(variant)) {
|
|
1361
|
+
// @ts-expect-error - todo.
|
|
1345
1362
|
borderColor = palette[variant].light;
|
|
1346
1363
|
}
|
|
1347
1364
|
return borderColor;
|