@superdispatch/ui-lab 0.31.0 → 0.32.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/dist-node/index.js +93 -93
- package/dist-node/index.js.map +1 -1
- package/dist-src/alert/Alert.js +2 -2
- package/dist-src/banner/Banner.js +4 -4
- package/dist-src/box/Box.js +2 -2
- package/dist-src/button/Button.js +53 -53
- package/dist-src/button-area/ButtonArea.js +2 -2
- package/dist-src/description-item/DescriptionItem.js +2 -2
- package/dist-src/description-line-item/DescriptionLineItem.js +2 -2
- package/dist-src/file-drop-zone/FileDropZone.js +2 -2
- package/dist-src/file-list-item/FileListItem.js +2 -2
- package/dist-src/navbar/NavbarAccordion.js +3 -3
- package/dist-src/navbar/NavbarAvatar.js +2 -2
- package/dist-src/navbar/NavbarBottomBar.js +4 -4
- package/dist-src/navbar/NavbarItem.js +3 -3
- package/dist-src/navbar/NavbarList.js +4 -4
- package/dist-src/navbar/NavbarMenu.js +7 -7
- package/dist-src/sidebar/Sidebar.js +3 -3
- package/dist-src/sidebar/SidebarMenuItem.js +3 -3
- package/dist-src/text-box/TextBox.js +11 -11
- package/dist-web/index.js +94 -94
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-web/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckCircle, Info, Error as Error$1, Warning, Image, Refresh, Delete, Menu, ExpandMore, MenuOpen, ArrowBack, OpenInNew } from '@material-ui/icons';
|
|
2
2
|
import { Alert as Alert$1 } from '@material-ui/lab';
|
|
3
|
-
import {
|
|
3
|
+
import { ColorV2, parseResponsiveProp, isColorPropV2, parseSpaceProp, Stack, Inline, mergeRefs, useUID, isEmptyReactNode, Columns, Column, CardButton, useResponsiveValue, useCollapseBreakpoint } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef, useState, useEffect, Children, useRef, useLayoutEffect, Suspense, memo, useContext, createContext, useMemo, createElement } from 'react';
|
|
5
5
|
import styled, { css, keyframes } from 'styled-components';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -21,7 +21,7 @@ function colorMixin(textColor, iconColor, backgroundColor, buttonHoverColor) {
|
|
|
21
21
|
var StyledAlert = /*#__PURE__*/styled(Alert$1).withConfig({
|
|
22
22
|
displayName: "Alert__StyledAlert",
|
|
23
23
|
componentId: "SD__sc-1j6qebb-0"
|
|
24
|
-
})(["&.MuiAlert-outlinedSuccess{", ";}&.MuiAlert-outlinedInfo{", ";}&.MuiAlert-outlinedWarning{", ";}&.MuiAlert-outlinedError{", ";}& .MuiAlert-icon{opacity:1;padding:8px 0;font-size:24px;}& .MuiAlert-action{display:block;padding-top:5px;margin-right:-3px;& .MuiIconButton-root{& .MuiSvgIcon-root{font-size:24px;}}}"], /*#__PURE__*/colorMixin(
|
|
24
|
+
})(["&.MuiAlert-outlinedSuccess{", ";}&.MuiAlert-outlinedInfo{", ";}&.MuiAlert-outlinedWarning{", ";}&.MuiAlert-outlinedError{", ";}& .MuiAlert-icon{opacity:1;padding:8px 0;font-size:24px;}& .MuiAlert-action{display:block;padding-top:5px;margin-right:-3px;& .MuiIconButton-root{& .MuiSvgIcon-root{font-size:24px;}}}"], /*#__PURE__*/colorMixin(ColorV2.Green500, ColorV2.Green300, ColorV2.Green50, ColorV2.Green400), /*#__PURE__*/colorMixin(ColorV2.Blue500, ColorV2.Blue300, ColorV2.Blue50, ColorV2.Blue400), /*#__PURE__*/colorMixin(ColorV2.Yellow500, ColorV2.Yellow300, ColorV2.Yellow50, ColorV2.Yellow400), /*#__PURE__*/colorMixin(ColorV2.Red500, ColorV2.Red300, ColorV2.Red50, ColorV2.Red400));
|
|
25
25
|
function toMaterialSeverity(severity) {
|
|
26
26
|
return severity === 'info' ? 'info' : severity === 'caution' ? 'warning' : severity === 'critical' ? 'error' : 'success';
|
|
27
27
|
}
|
|
@@ -53,10 +53,10 @@ if (process.env.NODE_ENV !== "production") Alert.displayName = "Alert";
|
|
|
53
53
|
var _excluded = ["children"],
|
|
54
54
|
_excluded2 = ["in"];
|
|
55
55
|
function enterMixin(border) {
|
|
56
|
-
return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"],
|
|
56
|
+
return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"], ColorV2.Dark500, ColorV2.White, border);
|
|
57
57
|
}
|
|
58
58
|
function enterAnimation(border) {
|
|
59
|
-
return keyframes(["0%{min-height:0;color:", ";background-color:", ";}50%{min-height:56px;color:", ";background-color:", ";}70%{min-height:56px;color:", ";background-color:", ";}100%{", "}"],
|
|
59
|
+
return keyframes(["0%{min-height:0;color:", ";background-color:", ";}50%{min-height:56px;color:", ";background-color:", ";}70%{min-height:56px;color:", ";background-color:", ";}100%{", "}"], ColorV2.White, ColorV2.Dark500, ColorV2.White, ColorV2.Dark500, ColorV2.White, ColorV2.Dark500, enterMixin(border));
|
|
60
60
|
}
|
|
61
61
|
var CustomTransition = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
62
62
|
var {
|
|
@@ -80,7 +80,7 @@ var BannerContent = /*#__PURE__*/styled(CustomTransition).withConfig({
|
|
|
80
80
|
var {
|
|
81
81
|
border = 'bottom'
|
|
82
82
|
} = _ref2;
|
|
83
|
-
return css(["height:0;width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;color:", ";background-color:", ";&-enter-active{animation:", " 2s 1s forwards;}&-enter-done{", ";}&-exit{", ";}&-exit-active{min-height:0;transition:min-height 2s 1s;}"],
|
|
83
|
+
return css(["height:0;width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;color:", ";background-color:", ";&-enter-active{animation:", " 2s 1s forwards;}&-enter-done{", ";}&-exit{", ";}&-exit-active{min-height:0;transition:min-height 2s 1s;}"], ColorV2.White, ColorV2.White, enterAnimation(border), enterMixin(border), enterMixin(border));
|
|
84
84
|
});
|
|
85
85
|
var Banner = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
86
86
|
var {
|
|
@@ -120,7 +120,7 @@ function createRuleNormalizer(rules) {
|
|
|
120
120
|
//
|
|
121
121
|
|
|
122
122
|
function normalizeColor(input) {
|
|
123
|
-
return
|
|
123
|
+
return isColorPropV2(input) ? ColorV2[input] : undefined;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
//
|
|
@@ -264,7 +264,7 @@ var _excluded$1 = ["icon", "children", "variant", "active", "disabled", "fullWid
|
|
|
264
264
|
var ButtonRoot = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
265
265
|
displayName: "ButtonArea__ButtonRoot",
|
|
266
266
|
componentId: "SD__sc-1czum63-0"
|
|
267
|
-
})(["padding:12px 32px;border-width:1px;border-radius:4px;border-style:solid;border-color:", ";color:", ";background-color:", ";& svg{color:inherit;font-size:24px;}&[data-full-width='true']{width:100%;}&[data-disabled='true']{color:", ";border-color:", ";}&[data-variant='success']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}&[data-variant='danger']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}"],
|
|
267
|
+
})(["padding:12px 32px;border-width:1px;border-radius:4px;border-style:solid;border-color:", ";color:", ";background-color:", ";& svg{color:inherit;font-size:24px;}&[data-full-width='true']{width:100%;}&[data-disabled='true']{color:", ";border-color:", ";}&[data-variant='success']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}&[data-variant='danger']{&:hover{color:", ";box-shadow:0 0 0 2px ", ";border-color:", ";}&[data-active='true']{color:", ";border-color:", ";background-color:", ";}}"], ColorV2.Silver500, ColorV2.Dark100, ColorV2.White, ColorV2.Silver500, ColorV2.Silver400, ColorV2.Green300, ColorV2.Green100, ColorV2.Green300, ColorV2.Green300, ColorV2.Green300, ColorV2.Green50, ColorV2.Red300, ColorV2.Red100, ColorV2.Red300, ColorV2.Red300, ColorV2.Red300, ColorV2.Red50);
|
|
268
268
|
var ButtonArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
269
269
|
var {
|
|
270
270
|
icon,
|
|
@@ -309,15 +309,15 @@ function createButtonVariables(size, _ref) {
|
|
|
309
309
|
paddingY = size === 'large' ? 8 : size === 'small' ? 2 : 6,
|
|
310
310
|
paddingXMobile = size === 'large' ? 64 : 24,
|
|
311
311
|
paddingYMobile = size === 'large' ? 14 : size === 'small' ? 4 : 10,
|
|
312
|
-
textColor =
|
|
312
|
+
textColor = ColorV2.Transparent,
|
|
313
313
|
textColorHovered = textColor,
|
|
314
314
|
textColorDisabled = textColor,
|
|
315
315
|
iconColor = textColor,
|
|
316
|
-
outlineColor =
|
|
317
|
-
borderColor =
|
|
316
|
+
outlineColor = ColorV2.Transparent,
|
|
317
|
+
borderColor = ColorV2.Transparent,
|
|
318
318
|
borderColorHovered = borderColor,
|
|
319
319
|
borderColorDisabled = borderColor,
|
|
320
|
-
backgroundColor =
|
|
320
|
+
backgroundColor = ColorV2.Transparent,
|
|
321
321
|
backgroundColorHovered = backgroundColor,
|
|
322
322
|
backgroundColorActive = backgroundColorHovered,
|
|
323
323
|
backgroundColorDisabled = backgroundColor
|
|
@@ -347,13 +347,13 @@ function createButtonVariables(size, _ref) {
|
|
|
347
347
|
}
|
|
348
348
|
function getDefaultVariables(size) {
|
|
349
349
|
return createButtonVariables(size, {
|
|
350
|
-
textColor:
|
|
351
|
-
outlineColor:
|
|
352
|
-
backgroundColor:
|
|
353
|
-
textColorHovered:
|
|
354
|
-
backgroundColorHovered:
|
|
355
|
-
backgroundColorActive:
|
|
356
|
-
backgroundColorDisabled:
|
|
350
|
+
textColor: ColorV2.White,
|
|
351
|
+
outlineColor: ColorV2.Blue30,
|
|
352
|
+
backgroundColor: ColorV2.Blue300,
|
|
353
|
+
textColorHovered: ColorV2.White,
|
|
354
|
+
backgroundColorHovered: ColorV2.Blue500,
|
|
355
|
+
backgroundColorActive: ColorV2.Blue400,
|
|
356
|
+
backgroundColorDisabled: ColorV2.Blue30
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function getPrimaryVariables(size) {
|
|
@@ -361,62 +361,62 @@ function getPrimaryVariables(size) {
|
|
|
361
361
|
}
|
|
362
362
|
function getNeutralVariables(size) {
|
|
363
363
|
return createButtonVariables(size, {
|
|
364
|
-
textColor:
|
|
365
|
-
borderColor:
|
|
366
|
-
outlineColor:
|
|
367
|
-
backgroundColor:
|
|
368
|
-
textColorHovered:
|
|
369
|
-
borderColorHovered:
|
|
370
|
-
backgroundColorHovered:
|
|
371
|
-
backgroundColorActive:
|
|
372
|
-
textColorDisabled:
|
|
373
|
-
iconColor:
|
|
364
|
+
textColor: ColorV2.Dark500,
|
|
365
|
+
borderColor: ColorV2.Silver500,
|
|
366
|
+
outlineColor: ColorV2.Blue30,
|
|
367
|
+
backgroundColor: ColorV2.White,
|
|
368
|
+
textColorHovered: ColorV2.Blue500,
|
|
369
|
+
borderColorHovered: ColorV2.Blue500,
|
|
370
|
+
backgroundColorHovered: ColorV2.Blue50,
|
|
371
|
+
backgroundColorActive: ColorV2.Blue75,
|
|
372
|
+
textColorDisabled: ColorV2.Silver500,
|
|
373
|
+
iconColor: ColorV2.Dark100
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
function getCriticalVariables(size) {
|
|
377
377
|
return createButtonVariables(size, {
|
|
378
|
-
textColor:
|
|
379
|
-
borderColor:
|
|
380
|
-
outlineColor:
|
|
381
|
-
backgroundColor:
|
|
382
|
-
backgroundColorHovered:
|
|
383
|
-
backgroundColorActive:
|
|
384
|
-
textColorDisabled:
|
|
385
|
-
borderColorDisabled:
|
|
386
|
-
backgroundColorDisabled:
|
|
378
|
+
textColor: ColorV2.Red500,
|
|
379
|
+
borderColor: ColorV2.Red500,
|
|
380
|
+
outlineColor: ColorV2.Red30,
|
|
381
|
+
backgroundColor: ColorV2.Red50,
|
|
382
|
+
backgroundColorHovered: ColorV2.Red75,
|
|
383
|
+
backgroundColorActive: ColorV2.Red10,
|
|
384
|
+
textColorDisabled: ColorV2.Red30,
|
|
385
|
+
borderColorDisabled: ColorV2.Red30,
|
|
386
|
+
backgroundColorDisabled: ColorV2.Red50
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
function getTextVariables(size) {
|
|
390
390
|
return createButtonVariables(size, {
|
|
391
|
-
textColor:
|
|
392
|
-
outlineColor:
|
|
393
|
-
textColorHovered:
|
|
394
|
-
backgroundColorHovered:
|
|
395
|
-
backgroundColorActive:
|
|
396
|
-
textColorDisabled:
|
|
391
|
+
textColor: ColorV2.Blue500,
|
|
392
|
+
outlineColor: ColorV2.Blue30,
|
|
393
|
+
textColorHovered: ColorV2.Blue500,
|
|
394
|
+
backgroundColorHovered: ColorV2.Blue50,
|
|
395
|
+
backgroundColorActive: ColorV2.Blue75,
|
|
396
|
+
textColorDisabled: ColorV2.Blue30
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
function getInvertedVariables(size) {
|
|
400
400
|
return createButtonVariables(size, {
|
|
401
|
-
textColor:
|
|
402
|
-
outlineColor:
|
|
403
|
-
backgroundColor:
|
|
404
|
-
textColorHovered:
|
|
405
|
-
backgroundColorHovered:
|
|
406
|
-
backgroundColorActive:
|
|
407
|
-
textColorDisabled:
|
|
408
|
-
backgroundColorDisabled:
|
|
401
|
+
textColor: ColorV2.White,
|
|
402
|
+
outlineColor: ColorV2.White40,
|
|
403
|
+
backgroundColor: ColorV2.White20,
|
|
404
|
+
textColorHovered: ColorV2.White,
|
|
405
|
+
backgroundColorHovered: ColorV2.White40,
|
|
406
|
+
backgroundColorActive: ColorV2.White20,
|
|
407
|
+
textColorDisabled: ColorV2.White50,
|
|
408
|
+
backgroundColorDisabled: ColorV2.White08
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
function getSuccessVariables(size) {
|
|
412
412
|
return createButtonVariables(size, {
|
|
413
|
-
textColor:
|
|
414
|
-
outlineColor:
|
|
415
|
-
backgroundColor:
|
|
416
|
-
backgroundColorHovered:
|
|
417
|
-
backgroundColorActive:
|
|
418
|
-
textColorDisabled:
|
|
419
|
-
backgroundColorDisabled:
|
|
413
|
+
textColor: ColorV2.White,
|
|
414
|
+
outlineColor: ColorV2.Green30,
|
|
415
|
+
backgroundColor: ColorV2.Green300,
|
|
416
|
+
backgroundColorHovered: ColorV2.Green500,
|
|
417
|
+
backgroundColorActive: ColorV2.Green500,
|
|
418
|
+
textColorDisabled: ColorV2.White,
|
|
419
|
+
backgroundColorDisabled: ColorV2.Green30
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
var ButtonRoot$1 = /*#__PURE__*/styled.button.withConfig({
|
|
@@ -430,7 +430,7 @@ var ButtonRoot$1 = /*#__PURE__*/styled.button.withConfig({
|
|
|
430
430
|
fullWidth
|
|
431
431
|
} = _ref2;
|
|
432
432
|
var variables = variant === 'primary' ? getPrimaryVariables(size) : variant === 'neutral' ? getNeutralVariables(size) : variant === 'critical' ? getCriticalVariables(size) : variant === 'text' ? getTextVariables(size) : variant === 'inverted' ? getInvertedVariables(size) : variant === 'success' ? getSuccessVariables(size) : getDefaultVariables(size);
|
|
433
|
-
return css(JSON.parse('["border:0;margin:0;outline:0;position:relative;vertical-align:middle;cursor:pointer;text-decoration:none;&[aria-disabled=\'true\']{cursor:default;pointer-events:none;}-moz-appearance:none;&::-moz-focus-inner{border-style:none;}-webkit-appearance:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;@media print{-webkit-print-color-adjust:exact;}--button-visibility:visible;--button-text-color:",";--button-border-color:",";--button-outline-color:",";--button-background-color:",";--button-icon-color:",";--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;","{--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;}&[aria-disabled=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";--button-icon-color:",";&[aria-busy=\'true\']{--button-visibility:hidden;}}&[aria-disabled=\'false\']{&[aria-expanded=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";--button-icon-color:",";}&,&[aria-expanded=\'true\']{&:focus{--button-outline-color:",";}@media (hover:hover) and (pointer:fine){&:hover{--button-text-color:",";--button-border-color:",";--button-background-color:",";span{svg{fill:",";}}}}&:active{--button-background-color:",";}}}display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:",";border-radius:4px;font-family:",";font-weight:",";color:var(--button-text-color);background-color:var(--button-background-color);font-size:var(--button-font-size);line-height:var(--button-line-height);padding:var(--button-padding-y) var(--button-padding-x);box-shadow:inset 0 0 0 1px var(--button-border-color),0 0 0 2px var(--button-outline-color);transition:",";"]'), variables.textColor, variables.borderColor,
|
|
433
|
+
return css(JSON.parse('["border:0;margin:0;outline:0;position:relative;vertical-align:middle;cursor:pointer;text-decoration:none;&[aria-disabled=\'true\']{cursor:default;pointer-events:none;}-moz-appearance:none;&::-moz-focus-inner{border-style:none;}-webkit-appearance:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;@media print{-webkit-print-color-adjust:exact;}--button-visibility:visible;--button-text-color:",";--button-border-color:",";--button-outline-color:",";--button-background-color:",";--button-icon-color:",";--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;","{--button-padding-x:","px;--button-padding-y:","px;--button-font-size:","px;--button-line-height:","px;}&[aria-disabled=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";--button-icon-color:",";&[aria-busy=\'true\']{--button-visibility:hidden;}}&[aria-disabled=\'false\']{&[aria-expanded=\'true\']{--button-text-color:",";--button-border-color:",";--button-background-color:",";--button-icon-color:",";}&,&[aria-expanded=\'true\']{&:focus{--button-outline-color:",";}@media (hover:hover) and (pointer:fine){&:hover{--button-text-color:",";--button-border-color:",";--button-background-color:",";span{svg{fill:",";}}}}&:active{--button-background-color:",";}}}display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:",";border-radius:4px;font-family:",";font-weight:",";color:var(--button-text-color);background-color:var(--button-background-color);font-size:var(--button-font-size);line-height:var(--button-line-height);padding:var(--button-padding-y) var(--button-padding-x);box-shadow:inset 0 0 0 1px var(--button-border-color),0 0 0 2px var(--button-outline-color);transition:",";"]'), variables.textColor, variables.borderColor, ColorV2.Transparent, variables.backgroundColor, variables.iconColor, variables.paddingXMobile, variables.paddingYMobile, variables.fontSizeMobile, variables.lineHeightMobile, theme.breakpoints.up('sm'), variables.paddingX, variables.paddingY, variables.fontSize, variables.lineHeight, variables.textColorDisabled, variables.borderColorDisabled, variables.backgroundColorDisabled, variables.textColorDisabled, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.textColorHovered, variables.outlineColor, variables.textColorHovered, variables.borderColorHovered, variables.backgroundColorHovered, variables.textColorHovered, variables.backgroundColorActive, fullWidth ? '100%' : 'auto', theme.typography.fontFamily, theme.typography.fontWeightBold, theme.transitions.create(['color', 'box-shadow', 'background-color']));
|
|
434
434
|
});
|
|
435
435
|
var ButtonLabel = /*#__PURE__*/styled.span.withConfig({
|
|
436
436
|
displayName: "Button__ButtonLabel",
|
|
@@ -658,16 +658,16 @@ function mergeStyles(styles) {
|
|
|
658
658
|
var _excluded$4 = ["variant", "as", "align", "color", "display", "noWrap", "wrapOverflow"];
|
|
659
659
|
var normalizeTextColor = /*#__PURE__*/createRuleNormalizer({
|
|
660
660
|
inherit: 'inherit',
|
|
661
|
-
primary:
|
|
662
|
-
secondary:
|
|
663
|
-
'light-gray':
|
|
664
|
-
white:
|
|
665
|
-
blue:
|
|
666
|
-
green:
|
|
667
|
-
purple:
|
|
668
|
-
red:
|
|
669
|
-
teal:
|
|
670
|
-
yellow:
|
|
661
|
+
primary: ColorV2.Dark500,
|
|
662
|
+
secondary: ColorV2.Dark300,
|
|
663
|
+
'light-gray': ColorV2.Dark100,
|
|
664
|
+
white: ColorV2.White,
|
|
665
|
+
blue: ColorV2.Blue500,
|
|
666
|
+
green: ColorV2.Green500,
|
|
667
|
+
purple: ColorV2.Purple500,
|
|
668
|
+
red: ColorV2.Red500,
|
|
669
|
+
teal: ColorV2.Teal500,
|
|
670
|
+
yellow: ColorV2.Yellow500
|
|
671
671
|
});
|
|
672
672
|
var VARIANT_TYPE_MAPPING = {
|
|
673
673
|
'heading-1': 'h1',
|
|
@@ -780,7 +780,7 @@ var DescriptionItemIcon = /*#__PURE__*/styled.div.withConfig({
|
|
|
780
780
|
var {
|
|
781
781
|
theme
|
|
782
782
|
} = _ref;
|
|
783
|
-
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"],
|
|
783
|
+
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], ColorV2.Dark100, descriptionItemIconMixin(20), theme.breakpoints.up('sm'), descriptionItemIconMixin(16));
|
|
784
784
|
});
|
|
785
785
|
var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
786
786
|
var {
|
|
@@ -833,7 +833,7 @@ if (process.env.NODE_ENV !== "production") DescriptionItem.displayName = "Descri
|
|
|
833
833
|
var DottedLine = /*#__PURE__*/styled.div.withConfig({
|
|
834
834
|
displayName: "DescriptionLineItem__DottedLine",
|
|
835
835
|
componentId: "SD__sc-1ixx5h8-0"
|
|
836
|
-
})(["border-bottom:1px dotted ", ";margin:0px 8px;height:7px;"],
|
|
836
|
+
})(["border-bottom:1px dotted ", ";margin:0px 8px;height:7px;"], ColorV2.Silver400);
|
|
837
837
|
var DescriptionLineItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
838
838
|
var {
|
|
839
839
|
title,
|
|
@@ -879,7 +879,7 @@ var StyledCardButton = /*#__PURE__*/styled(CardButton).withConfig({
|
|
|
879
879
|
status
|
|
880
880
|
} = _ref;
|
|
881
881
|
return {
|
|
882
|
-
backgroundColor: status === 'active' ?
|
|
882
|
+
backgroundColor: status === 'active' ? ColorV2.Blue50 : undefined
|
|
883
883
|
};
|
|
884
884
|
});
|
|
885
885
|
function UploadRejection(_ref2) {
|
|
@@ -1075,7 +1075,7 @@ var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1075
1075
|
size: "small",
|
|
1076
1076
|
children: /*#__PURE__*/jsx(CheckCircle, {
|
|
1077
1077
|
fontSize: "small",
|
|
1078
|
-
htmlColor:
|
|
1078
|
+
htmlColor: ColorV2.Green300
|
|
1079
1079
|
})
|
|
1080
1080
|
}) : canDelete ? /*#__PURE__*/jsx(Tooltip, {
|
|
1081
1081
|
title: "Delete",
|
|
@@ -1151,11 +1151,11 @@ var _excluded$7 = ["active", "hasBadge"];
|
|
|
1151
1151
|
var StyledBottomNavigation = /*#__PURE__*/styled(BottomNavigation).withConfig({
|
|
1152
1152
|
displayName: "NavbarBottomBar__StyledBottomNavigation",
|
|
1153
1153
|
componentId: "SD__sc-9z6v3k-0"
|
|
1154
|
-
})(["background:", ";"],
|
|
1154
|
+
})(["background:", ";"], ColorV2.Dark500);
|
|
1155
1155
|
var StyledBottomNavigationAction = /*#__PURE__*/styled(BottomNavigationAction).withConfig({
|
|
1156
1156
|
displayName: "NavbarBottomBar__StyledBottomNavigationAction",
|
|
1157
1157
|
componentId: "SD__sc-9z6v3k-1"
|
|
1158
|
-
})(["&&{background:#1b2638;color:", ";padding:6px 0 8px;line-height:20px;}&:first-child{padding-left:12px;}&:last-child{padding-right:12px;}&.Mui-selected{color:", ";.MuiBottomNavigationAction-label{font-size:0.75rem;}}"],
|
|
1158
|
+
})(["&&{background:#1b2638;color:", ";padding:6px 0 8px;line-height:20px;}&:first-child{padding-left:12px;}&:last-child{padding-right:12px;}&.Mui-selected{color:", ";.MuiBottomNavigationAction-label{font-size:0.75rem;}}"], ColorV2.Silver500, ColorV2.White);
|
|
1159
1159
|
var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
1160
1160
|
displayName: "NavbarBottomBar__IconWrapper",
|
|
1161
1161
|
componentId: "SD__sc-9z6v3k-2"
|
|
@@ -1163,7 +1163,7 @@ var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
1163
1163
|
var IconLabel = /*#__PURE__*/styled.div.withConfig({
|
|
1164
1164
|
displayName: "NavbarBottomBar__IconLabel",
|
|
1165
1165
|
componentId: "SD__sc-9z6v3k-3"
|
|
1166
|
-
})(["display:flex;align-items:center;justify-content:center;font-size:12px;border-radius:50%;color:", ";background:", ";position:absolute;top:0;right:0;width:8px;height:8px;"],
|
|
1166
|
+
})(["display:flex;align-items:center;justify-content:center;font-size:12px;border-radius:50%;color:", ";background:", ";position:absolute;top:0;right:0;width:8px;height:8px;"], ColorV2.White, ColorV2.Red300);
|
|
1167
1167
|
function NavbarBottomBar(_ref) {
|
|
1168
1168
|
var {
|
|
1169
1169
|
items,
|
|
@@ -1215,7 +1215,7 @@ function NavbarBottomBar(_ref) {
|
|
|
1215
1215
|
var NavbarBadge = /*#__PURE__*/styled.span.withConfig({
|
|
1216
1216
|
displayName: "NavbarItem__NavbarBadge",
|
|
1217
1217
|
componentId: "SD__sc-1pvzq3w-0"
|
|
1218
|
-
})(["flex-shrink:0;padding:4px 6px;min-width:20px;line-height:12px;font-size:12px;font-weight:400;border-radius:10px;text-align:center;background:#131c2a;&[data-variant='primary']{color:", ";background:", ";}&[data-variant='danger']{color:", ";background:", ";}"],
|
|
1218
|
+
})(["flex-shrink:0;padding:4px 6px;min-width:20px;line-height:12px;font-size:12px;font-weight:400;border-radius:10px;text-align:center;background:#131c2a;&[data-variant='primary']{color:", ";background:", ";}&[data-variant='danger']{color:", ";background:", ";}"], ColorV2.White, ColorV2.Blue300, ColorV2.White, ColorV2.Red500);
|
|
1219
1219
|
var NavbarLabel = /*#__PURE__*/styled.span.withConfig({
|
|
1220
1220
|
displayName: "NavbarItem__NavbarLabel",
|
|
1221
1221
|
componentId: "SD__sc-1pvzq3w-1"
|
|
@@ -1223,7 +1223,7 @@ var NavbarLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
1223
1223
|
var NavbarItemRoot = /*#__PURE__*/styled.div.withConfig({
|
|
1224
1224
|
displayName: "NavbarItem__NavbarItemRoot",
|
|
1225
1225
|
componentId: "SD__sc-1pvzq3w-2"
|
|
1226
|
-
})(["width:100%;display:flex;align-items:center;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;padding:8px 16px;border-left:4px solid transparent;&:hover,&[aria-current],&[data-active='true']{color:", ";background-color:#2f394a;border-left-color:", ";}"],
|
|
1226
|
+
})(["width:100%;display:flex;align-items:center;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;padding:8px 16px;border-left:4px solid transparent;&:hover,&[aria-current],&[data-active='true']{color:", ";background-color:#2f394a;border-left-color:", ";}"], ColorV2.White, ColorV2.Blue300);
|
|
1227
1227
|
var IconWrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
1228
1228
|
displayName: "NavbarItem__IconWrapper",
|
|
1229
1229
|
componentId: "SD__sc-1pvzq3w-3"
|
|
@@ -1269,11 +1269,11 @@ var NavbarAccordionLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
1269
1269
|
var NavbarAccordionRoot = /*#__PURE__*/styled(Accordion).withConfig({
|
|
1270
1270
|
displayName: "NavbarAccordion__NavbarAccordionRoot",
|
|
1271
1271
|
componentId: "SD__sc-1s7g3kw-1"
|
|
1272
|
-
})(["width:100%;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;background-color:#1b2638;&[aria-current]{background-color:#2f394a;color:", ";}&.MuiAccordion-root:before{background-color:#1b2638;}&.MuiPaper-elevation0{border:0px;}&[data-gutter]{margin-top:16px;}&[data-gutter].MuiAccordion-root.Mui-expanded{margin-top:16px;}"],
|
|
1272
|
+
})(["width:100%;color:#c2c4c9;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;outline:none;cursor:pointer;background-color:#1b2638;&[aria-current]{background-color:#2f394a;color:", ";}&.MuiAccordion-root:before{background-color:#1b2638;}&.MuiPaper-elevation0{border:0px;}&[data-gutter]{margin-top:16px;}&[data-gutter].MuiAccordion-root.Mui-expanded{margin-top:16px;}"], ColorV2.White);
|
|
1273
1273
|
var NavbarAccordionSummary = /*#__PURE__*/styled(AccordionSummary).withConfig({
|
|
1274
1274
|
displayName: "NavbarAccordion__NavbarAccordionSummary",
|
|
1275
1275
|
componentId: "SD__sc-1s7g3kw-2"
|
|
1276
|
-
})(["border-left:4px solid transparent;padding-left:20px;&.MuiAccordionSummary-root{max-height:40px;min-height:40px;}&.MuiAccordionSummary-content{align-items:center;}&:hover,&[aria-current],&[data-active='true']{color:", ";background-color:#2f394a;border-left-color:", ";}&[data-expanded='false']{.MuiAccordionSummary-expandIcon{display:none;}}"],
|
|
1276
|
+
})(["border-left:4px solid transparent;padding-left:20px;&.MuiAccordionSummary-root{max-height:40px;min-height:40px;}&.MuiAccordionSummary-content{align-items:center;}&:hover,&[aria-current],&[data-active='true']{color:", ";background-color:#2f394a;border-left-color:", ";}&[data-expanded='false']{.MuiAccordionSummary-expandIcon{display:none;}}"], ColorV2.White, ColorV2.Blue300);
|
|
1277
1277
|
var IconWrapper$2 = /*#__PURE__*/styled.div.withConfig({
|
|
1278
1278
|
displayName: "NavbarAccordion__IconWrapper",
|
|
1279
1279
|
componentId: "SD__sc-1s7g3kw-3"
|
|
@@ -1370,7 +1370,7 @@ var Wrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
1370
1370
|
var ExpandIconButton = /*#__PURE__*/styled(IconButton).withConfig({
|
|
1371
1371
|
displayName: "NavbarList__ExpandIconButton",
|
|
1372
1372
|
componentId: "SD__sc-19zrmxc-2"
|
|
1373
|
-
})(["color:", ";&&:focus{background-color:inherit;}"],
|
|
1373
|
+
})(["color:", ";&&:focus{background-color:inherit;}"], ColorV2.Silver500);
|
|
1374
1374
|
var Footer = /*#__PURE__*/styled.div.withConfig({
|
|
1375
1375
|
displayName: "NavbarList__Footer",
|
|
1376
1376
|
componentId: "SD__sc-19zrmxc-3"
|
|
@@ -1378,7 +1378,7 @@ var Footer = /*#__PURE__*/styled.div.withConfig({
|
|
|
1378
1378
|
var Root = /*#__PURE__*/styled.div.withConfig({
|
|
1379
1379
|
displayName: "NavbarList__Root",
|
|
1380
1380
|
componentId: "SD__sc-19zrmxc-4"
|
|
1381
|
-
})(["color:inherit;background-color:unset;border-left:unset;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;padding:8px 16px;svg{font-size:24px;color:", ";}"],
|
|
1381
|
+
})(["color:inherit;background-color:unset;border-left:unset;font-size:14px;font-weight:400;line-height:20px;text-decoration:none;padding:8px 16px;svg{font-size:24px;color:", ";}"], ColorV2.Dark100);
|
|
1382
1382
|
function NavbarMenuItem(_ref4) {
|
|
1383
1383
|
var {
|
|
1384
1384
|
label,
|
|
@@ -1401,7 +1401,7 @@ function NavbarMenuItem(_ref4) {
|
|
|
1401
1401
|
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
1402
1402
|
displayName: "NavbarList__Content",
|
|
1403
1403
|
componentId: "SD__sc-19zrmxc-5"
|
|
1404
|
-
})(["height:100%;min-height:50px;overflow-y:auto;overflow-x:hidden;&[aria-expanded='false']{", ",", "{display:none;}}&::-webkit-scrollbar{width:10px;height:10px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:100vw;margin-bottom:100px;}"], NavbarBadge, NavbarLabel,
|
|
1404
|
+
})(["height:100%;min-height:50px;overflow-y:auto;overflow-x:hidden;&[aria-expanded='false']{", ",", "{display:none;}}&::-webkit-scrollbar{width:10px;height:10px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-thumb{background-color:", ";border-radius:100vw;margin-bottom:100px;}"], NavbarBadge, NavbarLabel, ColorV2.Dark300);
|
|
1405
1405
|
function NavbarList(_ref5) {
|
|
1406
1406
|
var {
|
|
1407
1407
|
header,
|
|
@@ -1545,7 +1545,7 @@ var _excluded$8 = ["title", "subtitle", "children"];
|
|
|
1545
1545
|
var StyledTypography = /*#__PURE__*/styled(Typography).withConfig({
|
|
1546
1546
|
displayName: "NavbarAvatar__StyledTypography",
|
|
1547
1547
|
componentId: "SD__sc-19q2zd0-0"
|
|
1548
|
-
})(["color:", ";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&:hover{color:", ";}"],
|
|
1548
|
+
})(["color:", ";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&:hover{color:", ";}"], ColorV2.Silver500, ColorV2.White);
|
|
1549
1549
|
function NavbarAvatar(_ref) {
|
|
1550
1550
|
var {
|
|
1551
1551
|
title,
|
|
@@ -1587,20 +1587,20 @@ function NavbarAvatar(_ref) {
|
|
|
1587
1587
|
var Divider = /*#__PURE__*/styled.div.withConfig({
|
|
1588
1588
|
displayName: "NavbarMenu__Divider",
|
|
1589
1589
|
componentId: "SD__sc-1c8icpt-0"
|
|
1590
|
-
})(["border-bottom:1px solid ", ";margin:8px -16px;"],
|
|
1590
|
+
})(["border-bottom:1px solid ", ";margin:8px -16px;"], ColorV2.Silver400);
|
|
1591
1591
|
var StyledMenuItem = /*#__PURE__*/styled(MenuItem).withConfig({
|
|
1592
1592
|
displayName: "NavbarMenu__StyledMenuItem",
|
|
1593
1593
|
componentId: "SD__sc-1c8icpt-1"
|
|
1594
|
-
})(["& svg{font-size:24px;color:", ";}"],
|
|
1594
|
+
})(["& svg{font-size:24px;color:", ";}"], ColorV2.Dark100);
|
|
1595
1595
|
var Wrapper$1 = /*#__PURE__*/styled.div.withConfig({
|
|
1596
1596
|
displayName: "NavbarMenu__Wrapper",
|
|
1597
1597
|
componentId: "SD__sc-1c8icpt-2"
|
|
1598
|
-
})(["width:100%;padding:8px 16px;cursor:pointer;background:", ";border-left:4px solid ", ";&:hover{border-left-color:", ";background:", ";}"],
|
|
1598
|
+
})(["width:100%;padding:8px 16px;cursor:pointer;background:", ";border-left:4px solid ", ";&:hover{border-left-color:", ";background:", ";}"], ColorV2.Dark400, _ref => {
|
|
1599
1599
|
var {
|
|
1600
1600
|
active
|
|
1601
1601
|
} = _ref;
|
|
1602
|
-
return active ?
|
|
1603
|
-
},
|
|
1602
|
+
return active ? ColorV2.Blue300 : 'transparent';
|
|
1603
|
+
}, ColorV2.Blue300, ColorV2.Dark400);
|
|
1604
1604
|
function NavbarMenu(_ref2) {
|
|
1605
1605
|
var {
|
|
1606
1606
|
items,
|
|
@@ -1643,7 +1643,7 @@ function NavbarMenu(_ref2) {
|
|
|
1643
1643
|
verticalAlign: "center",
|
|
1644
1644
|
children: [item.icon, /*#__PURE__*/jsx(Typography, {
|
|
1645
1645
|
style: {
|
|
1646
|
-
color:
|
|
1646
|
+
color: ColorV2.Dark500
|
|
1647
1647
|
},
|
|
1648
1648
|
children: item.label
|
|
1649
1649
|
})]
|
|
@@ -1657,11 +1657,11 @@ function NavbarMenu(_ref2) {
|
|
|
1657
1657
|
var SidebarRoot = /*#__PURE__*/styled.aside.withConfig({
|
|
1658
1658
|
displayName: "Sidebar__SidebarRoot",
|
|
1659
1659
|
componentId: "SD__sc-b77o22-0"
|
|
1660
|
-
})(["top:0;position:sticky;overflow-y:auto;overflow-x:hidden;height:100vh;background-color:", ";border-right:1px solid ", ";"],
|
|
1660
|
+
})(["top:0;position:sticky;overflow-y:auto;overflow-x:hidden;height:100vh;background-color:", ";border-right:1px solid ", ";"], ColorV2.White, ColorV2.Silver400);
|
|
1661
1661
|
var SidebarHeader = /*#__PURE__*/styled.div.withConfig({
|
|
1662
1662
|
displayName: "Sidebar__SidebarHeader",
|
|
1663
1663
|
componentId: "SD__sc-b77o22-1"
|
|
1664
|
-
})(["top:0;z-index:2;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"],
|
|
1664
|
+
})(["top:0;z-index:2;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"], ColorV2.White);
|
|
1665
1665
|
var SidebarTitle = /*#__PURE__*/styled.div.withConfig({
|
|
1666
1666
|
displayName: "Sidebar__SidebarTitle",
|
|
1667
1667
|
componentId: "SD__sc-b77o22-2"
|
|
@@ -1924,12 +1924,12 @@ var SidebarMenuItemRoot = /*#__PURE__*/styled.div.withConfig({
|
|
|
1924
1924
|
hasAvatar
|
|
1925
1925
|
} = _ref;
|
|
1926
1926
|
var height = hasAvatar ? 48 : 40;
|
|
1927
|
-
return css(["position:relative;& > .MuiButtonBase-root{width:100%;display:flex;justify-content:flex-start;padding-left:24px;padding-right:24px;height:", "px;max-height:", "px;&[aria-current='true']{background-color:", ";box-shadow:inset 4px 0 0 ", ";}&:hover{background-color:", ";}}"], height, height,
|
|
1927
|
+
return css(["position:relative;& > .MuiButtonBase-root{width:100%;display:flex;justify-content:flex-start;padding-left:24px;padding-right:24px;height:", "px;max-height:", "px;&[aria-current='true']{background-color:", ";box-shadow:inset 4px 0 0 ", ";}&:hover{background-color:", ";}}"], height, height, ColorV2.Silver200, ColorV2.Blue300, ColorV2.Silver200);
|
|
1928
1928
|
});
|
|
1929
1929
|
var SidebarMenuItemBadge = /*#__PURE__*/styled.div.withConfig({
|
|
1930
1930
|
displayName: "SidebarMenuItem__SidebarMenuItemBadge",
|
|
1931
1931
|
componentId: "SD__sc-1sb5zqa-1"
|
|
1932
|
-
})(["font-size:12px;font-weight:500;line-height:16px;padding-left:4px;padding-right:4px;border-radius:100px;color:", ";background-color:", ";"],
|
|
1932
|
+
})(["font-size:12px;font-weight:500;line-height:16px;padding-left:4px;padding-right:4px;border-radius:100px;color:", ";background-color:", ";"], ColorV2.Dark500, ColorV2.Silver400);
|
|
1933
1933
|
var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
1934
1934
|
var {
|
|
1935
1935
|
action,
|