@superdispatch/ui-lab 0.31.1 → 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-src/alert/Alert.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckCircle, Error, Info, Warning } from '@material-ui/icons';
|
|
2
2
|
import { Alert as MaterialAlert } from '@material-ui/lab';
|
|
3
|
-
import {
|
|
3
|
+
import { ColorV2 } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -10,7 +10,7 @@ function colorMixin(textColor, iconColor, backgroundColor, buttonHoverColor) {
|
|
|
10
10
|
var StyledAlert = /*#__PURE__*/styled(MaterialAlert).withConfig({
|
|
11
11
|
displayName: "Alert__StyledAlert",
|
|
12
12
|
componentId: "SD__sc-1j6qebb-0"
|
|
13
|
-
})(["&.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(
|
|
13
|
+
})(["&.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));
|
|
14
14
|
function toMaterialSeverity(severity) {
|
|
15
15
|
return severity === 'info' ? 'info' : severity === 'caution' ? 'warning' : severity === 'critical' ? 'error' : 'success';
|
|
16
16
|
}
|
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children"],
|
|
4
4
|
_excluded2 = ["in"];
|
|
5
|
-
import {
|
|
5
|
+
import { ColorV2 } from '@superdispatch/ui';
|
|
6
6
|
import { forwardRef, useEffect, useState } from 'react';
|
|
7
7
|
import { CSSTransition } from 'react-transition-group';
|
|
8
8
|
// eslint-disable-next-line import/no-internal-modules
|
|
@@ -10,10 +10,10 @@ import { CSSTransition } from 'react-transition-group';
|
|
|
10
10
|
import styled, { css, keyframes } from 'styled-components';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
function enterMixin(border) {
|
|
13
|
-
return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"],
|
|
13
|
+
return css(["min-height:56px;color:", ";background-color:", ";border-", ":1px #dfe3e8 solid;"], ColorV2.Dark500, ColorV2.White, border);
|
|
14
14
|
}
|
|
15
15
|
function enterAnimation(border) {
|
|
16
|
-
return keyframes(["0%{min-height:0;color:", ";background-color:", ";}50%{min-height:56px;color:", ";background-color:", ";}70%{min-height:56px;color:", ";background-color:", ";}100%{", "}"],
|
|
16
|
+
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));
|
|
17
17
|
}
|
|
18
18
|
var CustomTransition = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
19
19
|
var {
|
|
@@ -37,7 +37,7 @@ var BannerContent = /*#__PURE__*/styled(CustomTransition).withConfig({
|
|
|
37
37
|
var {
|
|
38
38
|
border = 'bottom'
|
|
39
39
|
} = _ref2;
|
|
40
|
-
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;}"],
|
|
40
|
+
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));
|
|
41
41
|
});
|
|
42
42
|
export var Banner = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
43
43
|
var {
|
package/dist-src/box/Box.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColorV2, isColorPropV2, parseResponsiveProp, parseSpaceProp } from '@superdispatch/ui';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { createRuleNormalizer } from "../utils/RuleNormalizer.js";
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ import { createRuleNormalizer } from "../utils/RuleNormalizer.js";
|
|
|
7
7
|
//
|
|
8
8
|
|
|
9
9
|
function normalizeColor(input) {
|
|
10
|
-
return
|
|
10
|
+
return isColorPropV2(input) ? ColorV2[input] : undefined;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
//
|
|
@@ -4,7 +4,7 @@ var _excluded = ["children", "endIcon", "startIcon", "tabIndex", "active", "pend
|
|
|
4
4
|
_excluded2 = ["type"],
|
|
5
5
|
_excluded3 = ["href", "target"];
|
|
6
6
|
import { CircularProgress } from '@material-ui/core';
|
|
7
|
-
import {
|
|
7
|
+
import { ColorV2 } from '@superdispatch/ui';
|
|
8
8
|
import { forwardRef } from 'react';
|
|
9
9
|
import styled, { css } from 'styled-components';
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -18,15 +18,15 @@ function createButtonVariables(size, _ref) {
|
|
|
18
18
|
paddingY = size === 'large' ? 8 : size === 'small' ? 2 : 6,
|
|
19
19
|
paddingXMobile = size === 'large' ? 64 : 24,
|
|
20
20
|
paddingYMobile = size === 'large' ? 14 : size === 'small' ? 4 : 10,
|
|
21
|
-
textColor =
|
|
21
|
+
textColor = ColorV2.Transparent,
|
|
22
22
|
textColorHovered = textColor,
|
|
23
23
|
textColorDisabled = textColor,
|
|
24
24
|
iconColor = textColor,
|
|
25
|
-
outlineColor =
|
|
26
|
-
borderColor =
|
|
25
|
+
outlineColor = ColorV2.Transparent,
|
|
26
|
+
borderColor = ColorV2.Transparent,
|
|
27
27
|
borderColorHovered = borderColor,
|
|
28
28
|
borderColorDisabled = borderColor,
|
|
29
|
-
backgroundColor =
|
|
29
|
+
backgroundColor = ColorV2.Transparent,
|
|
30
30
|
backgroundColorHovered = backgroundColor,
|
|
31
31
|
backgroundColorActive = backgroundColorHovered,
|
|
32
32
|
backgroundColorDisabled = backgroundColor
|
|
@@ -56,13 +56,13 @@ function createButtonVariables(size, _ref) {
|
|
|
56
56
|
}
|
|
57
57
|
function getDefaultVariables(size) {
|
|
58
58
|
return createButtonVariables(size, {
|
|
59
|
-
textColor:
|
|
60
|
-
outlineColor:
|
|
61
|
-
backgroundColor:
|
|
62
|
-
textColorHovered:
|
|
63
|
-
backgroundColorHovered:
|
|
64
|
-
backgroundColorActive:
|
|
65
|
-
backgroundColorDisabled:
|
|
59
|
+
textColor: ColorV2.White,
|
|
60
|
+
outlineColor: ColorV2.Blue30,
|
|
61
|
+
backgroundColor: ColorV2.Blue300,
|
|
62
|
+
textColorHovered: ColorV2.White,
|
|
63
|
+
backgroundColorHovered: ColorV2.Blue500,
|
|
64
|
+
backgroundColorActive: ColorV2.Blue400,
|
|
65
|
+
backgroundColorDisabled: ColorV2.Blue30
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
function getPrimaryVariables(size) {
|
|
@@ -70,62 +70,62 @@ function getPrimaryVariables(size) {
|
|
|
70
70
|
}
|
|
71
71
|
function getNeutralVariables(size) {
|
|
72
72
|
return createButtonVariables(size, {
|
|
73
|
-
textColor:
|
|
74
|
-
borderColor:
|
|
75
|
-
outlineColor:
|
|
76
|
-
backgroundColor:
|
|
77
|
-
textColorHovered:
|
|
78
|
-
borderColorHovered:
|
|
79
|
-
backgroundColorHovered:
|
|
80
|
-
backgroundColorActive:
|
|
81
|
-
textColorDisabled:
|
|
82
|
-
iconColor:
|
|
73
|
+
textColor: ColorV2.Dark500,
|
|
74
|
+
borderColor: ColorV2.Silver500,
|
|
75
|
+
outlineColor: ColorV2.Blue30,
|
|
76
|
+
backgroundColor: ColorV2.White,
|
|
77
|
+
textColorHovered: ColorV2.Blue500,
|
|
78
|
+
borderColorHovered: ColorV2.Blue500,
|
|
79
|
+
backgroundColorHovered: ColorV2.Blue50,
|
|
80
|
+
backgroundColorActive: ColorV2.Blue75,
|
|
81
|
+
textColorDisabled: ColorV2.Silver500,
|
|
82
|
+
iconColor: ColorV2.Dark100
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
function getCriticalVariables(size) {
|
|
86
86
|
return createButtonVariables(size, {
|
|
87
|
-
textColor:
|
|
88
|
-
borderColor:
|
|
89
|
-
outlineColor:
|
|
90
|
-
backgroundColor:
|
|
91
|
-
backgroundColorHovered:
|
|
92
|
-
backgroundColorActive:
|
|
93
|
-
textColorDisabled:
|
|
94
|
-
borderColorDisabled:
|
|
95
|
-
backgroundColorDisabled:
|
|
87
|
+
textColor: ColorV2.Red500,
|
|
88
|
+
borderColor: ColorV2.Red500,
|
|
89
|
+
outlineColor: ColorV2.Red30,
|
|
90
|
+
backgroundColor: ColorV2.Red50,
|
|
91
|
+
backgroundColorHovered: ColorV2.Red75,
|
|
92
|
+
backgroundColorActive: ColorV2.Red10,
|
|
93
|
+
textColorDisabled: ColorV2.Red30,
|
|
94
|
+
borderColorDisabled: ColorV2.Red30,
|
|
95
|
+
backgroundColorDisabled: ColorV2.Red50
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
function getTextVariables(size) {
|
|
99
99
|
return createButtonVariables(size, {
|
|
100
|
-
textColor:
|
|
101
|
-
outlineColor:
|
|
102
|
-
textColorHovered:
|
|
103
|
-
backgroundColorHovered:
|
|
104
|
-
backgroundColorActive:
|
|
105
|
-
textColorDisabled:
|
|
100
|
+
textColor: ColorV2.Blue500,
|
|
101
|
+
outlineColor: ColorV2.Blue30,
|
|
102
|
+
textColorHovered: ColorV2.Blue500,
|
|
103
|
+
backgroundColorHovered: ColorV2.Blue50,
|
|
104
|
+
backgroundColorActive: ColorV2.Blue75,
|
|
105
|
+
textColorDisabled: ColorV2.Blue30
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
function getInvertedVariables(size) {
|
|
109
109
|
return createButtonVariables(size, {
|
|
110
|
-
textColor:
|
|
111
|
-
outlineColor:
|
|
112
|
-
backgroundColor:
|
|
113
|
-
textColorHovered:
|
|
114
|
-
backgroundColorHovered:
|
|
115
|
-
backgroundColorActive:
|
|
116
|
-
textColorDisabled:
|
|
117
|
-
backgroundColorDisabled:
|
|
110
|
+
textColor: ColorV2.White,
|
|
111
|
+
outlineColor: ColorV2.White40,
|
|
112
|
+
backgroundColor: ColorV2.White20,
|
|
113
|
+
textColorHovered: ColorV2.White,
|
|
114
|
+
backgroundColorHovered: ColorV2.White40,
|
|
115
|
+
backgroundColorActive: ColorV2.White20,
|
|
116
|
+
textColorDisabled: ColorV2.White50,
|
|
117
|
+
backgroundColorDisabled: ColorV2.White08
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
function getSuccessVariables(size) {
|
|
121
121
|
return createButtonVariables(size, {
|
|
122
|
-
textColor:
|
|
123
|
-
outlineColor:
|
|
124
|
-
backgroundColor:
|
|
125
|
-
backgroundColorHovered:
|
|
126
|
-
backgroundColorActive:
|
|
127
|
-
textColorDisabled:
|
|
128
|
-
backgroundColorDisabled:
|
|
122
|
+
textColor: ColorV2.White,
|
|
123
|
+
outlineColor: ColorV2.Green30,
|
|
124
|
+
backgroundColor: ColorV2.Green300,
|
|
125
|
+
backgroundColorHovered: ColorV2.Green500,
|
|
126
|
+
backgroundColorActive: ColorV2.Green500,
|
|
127
|
+
textColorDisabled: ColorV2.White,
|
|
128
|
+
backgroundColorDisabled: ColorV2.Green30
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
var ButtonRoot = /*#__PURE__*/styled.button.withConfig({
|
|
@@ -139,7 +139,7 @@ var ButtonRoot = /*#__PURE__*/styled.button.withConfig({
|
|
|
139
139
|
fullWidth
|
|
140
140
|
} = _ref2;
|
|
141
141
|
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);
|
|
142
|
-
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,
|
|
142
|
+
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']));
|
|
143
143
|
});
|
|
144
144
|
var ButtonLabel = /*#__PURE__*/styled.span.withConfig({
|
|
145
145
|
displayName: "Button__ButtonLabel",
|
|
@@ -2,14 +2,14 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["icon", "children", "variant", "active", "disabled", "fullWidth"];
|
|
4
4
|
import { ButtonBase, Typography } from '@material-ui/core';
|
|
5
|
-
import {
|
|
5
|
+
import { ColorV2, Stack } from '@superdispatch/ui';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
var ButtonRoot = /*#__PURE__*/styled(ButtonBase).withConfig({
|
|
10
10
|
displayName: "ButtonArea__ButtonRoot",
|
|
11
11
|
componentId: "SD__sc-1czum63-0"
|
|
12
|
-
})(["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:", ";}}"],
|
|
12
|
+
})(["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);
|
|
13
13
|
export var ButtonArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
14
14
|
var {
|
|
15
15
|
icon,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColorV2, Column, Columns, Inline, isEmptyReactNode, useUID } from '@superdispatch/ui';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
import { TextBox } from "../text-box/TextBox.js";
|
|
@@ -13,7 +13,7 @@ var DescriptionItemIcon = /*#__PURE__*/styled.div.withConfig({
|
|
|
13
13
|
var {
|
|
14
14
|
theme
|
|
15
15
|
} = _ref;
|
|
16
|
-
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"],
|
|
16
|
+
return css(["display:flex;align-items:center;& > .MuiSvgIcon-root{color:", ";}", ";", "{", ";}"], ColorV2.Dark100, descriptionItemIconMixin(20), theme.breakpoints.up('sm'), descriptionItemIconMixin(16));
|
|
17
17
|
});
|
|
18
18
|
export var DescriptionItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
19
19
|
var {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColorV2, Column, Columns } from '@superdispatch/ui';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
export var DottedLine = /*#__PURE__*/styled.div.withConfig({
|
|
6
6
|
displayName: "DescriptionLineItem__DottedLine",
|
|
7
7
|
componentId: "SD__sc-1ixx5h8-0"
|
|
8
|
-
})(["border-bottom:1px dotted ", ";margin:0px 8px;height:7px;"],
|
|
8
|
+
})(["border-bottom:1px dotted ", ";margin:0px 8px;height:7px;"], ColorV2.Silver400);
|
|
9
9
|
export var DescriptionLineItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
10
10
|
var {
|
|
11
11
|
title,
|
|
@@ -4,7 +4,7 @@ var _excluded = ["disabled", "children", "hintText", "startIcon", "fallback", "a
|
|
|
4
4
|
import { CircularProgress, SvgIcon } from '@material-ui/core';
|
|
5
5
|
import { Error } from '@material-ui/icons';
|
|
6
6
|
import { mdiUpload } from '@mdi/js';
|
|
7
|
-
import { CardButton,
|
|
7
|
+
import { CardButton, ColorV2, Column, Columns } from '@superdispatch/ui';
|
|
8
8
|
import { forwardRef, Suspense } from 'react';
|
|
9
9
|
import Dropzone from 'react-dropzone';
|
|
10
10
|
import styled from 'styled-components';
|
|
@@ -30,7 +30,7 @@ var StyledCardButton = /*#__PURE__*/styled(CardButton).withConfig({
|
|
|
30
30
|
status
|
|
31
31
|
} = _ref;
|
|
32
32
|
return {
|
|
33
|
-
backgroundColor: status === 'active' ?
|
|
33
|
+
backgroundColor: status === 'active' ? ColorV2.Blue50 : undefined
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
36
|
function UploadRejection(_ref2) {
|
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
|
2
2
|
import { CircularProgress, IconButton, Link, SvgIcon, Tooltip } from '@material-ui/core';
|
|
3
3
|
import { CheckCircle, Delete, Error, Image, Refresh } from '@material-ui/icons';
|
|
4
4
|
import { mdiFilePdfBox, mdiTextBox } from '@mdi/js';
|
|
5
|
-
import {
|
|
5
|
+
import { ColorV2, Column, Columns, useResponsiveValue, useUID } from '@superdispatch/ui';
|
|
6
6
|
import { forwardRef, memo, useState } from 'react';
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -112,7 +112,7 @@ export var FileListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
112
112
|
size: "small",
|
|
113
113
|
children: /*#__PURE__*/_jsx(CheckCircle, {
|
|
114
114
|
fontSize: "small",
|
|
115
|
-
htmlColor:
|
|
115
|
+
htmlColor: ColorV2.Green300
|
|
116
116
|
})
|
|
117
117
|
}) : canDelete ? /*#__PURE__*/_jsx(Tooltip, {
|
|
118
118
|
title: "Delete",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import { Accordion, AccordionSummary } from '@material-ui/core';
|
|
3
3
|
import { ExpandMore } from '@material-ui/icons';
|
|
4
|
-
import {
|
|
4
|
+
import { ColorV2, useUID } from '@superdispatch/ui';
|
|
5
5
|
import { useEffect, useMemo, useState, createElement as _createElement } from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { useNavbarContext } from "./NavbarContext.js";
|
|
@@ -14,11 +14,11 @@ export var NavbarAccordionLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
14
14
|
var NavbarAccordionRoot = /*#__PURE__*/styled(Accordion).withConfig({
|
|
15
15
|
displayName: "NavbarAccordion__NavbarAccordionRoot",
|
|
16
16
|
componentId: "SD__sc-1s7g3kw-1"
|
|
17
|
-
})(["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;}"],
|
|
17
|
+
})(["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);
|
|
18
18
|
var NavbarAccordionSummary = /*#__PURE__*/styled(AccordionSummary).withConfig({
|
|
19
19
|
displayName: "NavbarAccordion__NavbarAccordionSummary",
|
|
20
20
|
componentId: "SD__sc-1s7g3kw-2"
|
|
21
|
-
})(["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;}}"],
|
|
21
|
+
})(["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);
|
|
22
22
|
var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "NavbarAccordion__IconWrapper",
|
|
24
24
|
componentId: "SD__sc-1s7g3kw-3"
|
|
@@ -2,14 +2,14 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["title", "subtitle", "children"];
|
|
4
4
|
import { Avatar, Typography } from '@material-ui/core';
|
|
5
|
-
import {
|
|
5
|
+
import { ColorV2, Column, Columns, Stack } from '@superdispatch/ui';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { useNavbarContext } from "./NavbarContext.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
var StyledTypography = /*#__PURE__*/styled(Typography).withConfig({
|
|
10
10
|
displayName: "NavbarAvatar__StyledTypography",
|
|
11
11
|
componentId: "SD__sc-19q2zd0-0"
|
|
12
|
-
})(["color:", ";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&:hover{color:", ";}"],
|
|
12
|
+
})(["color:", ";text-overflow:ellipsis;white-space:nowrap;overflow:hidden;&:hover{color:", ";}"], ColorV2.Silver500, ColorV2.White);
|
|
13
13
|
export function NavbarAvatar(_ref) {
|
|
14
14
|
var {
|
|
15
15
|
title,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["active", "hasBadge"];
|
|
4
4
|
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
|
5
5
|
import { Menu } from '@material-ui/icons';
|
|
6
|
-
import {
|
|
6
|
+
import { ColorV2 } from '@superdispatch/ui';
|
|
7
7
|
import { useMemo, createElement as _createElement } from 'react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { useNavbarContext } from "./NavbarContext.js";
|
|
@@ -11,11 +11,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
var StyledBottomNavigation = /*#__PURE__*/styled(BottomNavigation).withConfig({
|
|
12
12
|
displayName: "NavbarBottomBar__StyledBottomNavigation",
|
|
13
13
|
componentId: "SD__sc-9z6v3k-0"
|
|
14
|
-
})(["background:", ";"],
|
|
14
|
+
})(["background:", ";"], ColorV2.Dark500);
|
|
15
15
|
var StyledBottomNavigationAction = /*#__PURE__*/styled(BottomNavigationAction).withConfig({
|
|
16
16
|
displayName: "NavbarBottomBar__StyledBottomNavigationAction",
|
|
17
17
|
componentId: "SD__sc-9z6v3k-1"
|
|
18
|
-
})(["&&{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;}}"],
|
|
18
|
+
})(["&&{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);
|
|
19
19
|
var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "NavbarBottomBar__IconWrapper",
|
|
21
21
|
componentId: "SD__sc-9z6v3k-2"
|
|
@@ -23,7 +23,7 @@ var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
23
23
|
var IconLabel = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "NavbarBottomBar__IconLabel",
|
|
25
25
|
componentId: "SD__sc-9z6v3k-3"
|
|
26
|
-
})(["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;"],
|
|
26
|
+
})(["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);
|
|
27
27
|
export function NavbarBottomBar(_ref) {
|
|
28
28
|
var {
|
|
29
29
|
items,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColorV2, useUID } from '@superdispatch/ui';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
4
|
export var NavbarBadge = /*#__PURE__*/styled.span.withConfig({
|
|
5
5
|
displayName: "NavbarItem__NavbarBadge",
|
|
6
6
|
componentId: "SD__sc-1pvzq3w-0"
|
|
7
|
-
})(["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:", ";}"],
|
|
7
|
+
})(["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);
|
|
8
8
|
export var NavbarLabel = /*#__PURE__*/styled.span.withConfig({
|
|
9
9
|
displayName: "NavbarItem__NavbarLabel",
|
|
10
10
|
componentId: "SD__sc-1pvzq3w-1"
|
|
@@ -12,7 +12,7 @@ export var NavbarLabel = /*#__PURE__*/styled.span.withConfig({
|
|
|
12
12
|
var NavbarItemRoot = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
displayName: "NavbarItem__NavbarItemRoot",
|
|
14
14
|
componentId: "SD__sc-1pvzq3w-2"
|
|
15
|
-
})(["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:", ";}"],
|
|
15
|
+
})(["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);
|
|
16
16
|
var IconWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "NavbarItem__IconWrapper",
|
|
18
18
|
componentId: "SD__sc-1pvzq3w-3"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import { IconButton } from '@material-ui/core';
|
|
3
3
|
import { Menu as MenuIcon, MenuOpen } from '@material-ui/icons';
|
|
4
|
-
import {
|
|
4
|
+
import { ColorV2, Inline, useResponsiveValue } from '@superdispatch/ui';
|
|
5
5
|
import { useMemo, createElement as _createElement } from 'react';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
import { NavbarAccordion } from "./NavbarAccordion.js";
|
|
@@ -34,7 +34,7 @@ var Wrapper = /*#__PURE__*/styled.div.withConfig({
|
|
|
34
34
|
var ExpandIconButton = /*#__PURE__*/styled(IconButton).withConfig({
|
|
35
35
|
displayName: "NavbarList__ExpandIconButton",
|
|
36
36
|
componentId: "SD__sc-19zrmxc-2"
|
|
37
|
-
})(["color:", ";&&:focus{background-color:inherit;}"],
|
|
37
|
+
})(["color:", ";&&:focus{background-color:inherit;}"], ColorV2.Silver500);
|
|
38
38
|
var Footer = /*#__PURE__*/styled.div.withConfig({
|
|
39
39
|
displayName: "NavbarList__Footer",
|
|
40
40
|
componentId: "SD__sc-19zrmxc-3"
|
|
@@ -42,7 +42,7 @@ var Footer = /*#__PURE__*/styled.div.withConfig({
|
|
|
42
42
|
var Root = /*#__PURE__*/styled.div.withConfig({
|
|
43
43
|
displayName: "NavbarList__Root",
|
|
44
44
|
componentId: "SD__sc-19zrmxc-4"
|
|
45
|
-
})(["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:", ";}"],
|
|
45
|
+
})(["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);
|
|
46
46
|
export function NavbarMenuItem(_ref4) {
|
|
47
47
|
var {
|
|
48
48
|
label,
|
|
@@ -65,7 +65,7 @@ export function NavbarMenuItem(_ref4) {
|
|
|
65
65
|
var Content = /*#__PURE__*/styled.div.withConfig({
|
|
66
66
|
displayName: "NavbarList__Content",
|
|
67
67
|
componentId: "SD__sc-19zrmxc-5"
|
|
68
|
-
})(["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,
|
|
68
|
+
})(["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);
|
|
69
69
|
export function NavbarList(_ref5) {
|
|
70
70
|
var {
|
|
71
71
|
header,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Menu, MenuItem, Typography } from '@material-ui/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ColorV2, Inline } from '@superdispatch/ui';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import { useNavbarContext } from "./NavbarContext.js";
|
|
@@ -7,20 +7,20 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
7
7
|
var Divider = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "NavbarMenu__Divider",
|
|
9
9
|
componentId: "SD__sc-1c8icpt-0"
|
|
10
|
-
})(["border-bottom:1px solid ", ";margin:8px -16px;"],
|
|
10
|
+
})(["border-bottom:1px solid ", ";margin:8px -16px;"], ColorV2.Silver400);
|
|
11
11
|
var StyledMenuItem = /*#__PURE__*/styled(MenuItem).withConfig({
|
|
12
12
|
displayName: "NavbarMenu__StyledMenuItem",
|
|
13
13
|
componentId: "SD__sc-1c8icpt-1"
|
|
14
|
-
})(["& svg{font-size:24px;color:", ";}"],
|
|
14
|
+
})(["& svg{font-size:24px;color:", ";}"], ColorV2.Dark100);
|
|
15
15
|
var Wrapper = /*#__PURE__*/styled.div.withConfig({
|
|
16
16
|
displayName: "NavbarMenu__Wrapper",
|
|
17
17
|
componentId: "SD__sc-1c8icpt-2"
|
|
18
|
-
})(["width:100%;padding:8px 16px;cursor:pointer;background:", ";border-left:4px solid ", ";&:hover{border-left-color:", ";background:", ";}"],
|
|
18
|
+
})(["width:100%;padding:8px 16px;cursor:pointer;background:", ";border-left:4px solid ", ";&:hover{border-left-color:", ";background:", ";}"], ColorV2.Dark400, _ref => {
|
|
19
19
|
var {
|
|
20
20
|
active
|
|
21
21
|
} = _ref;
|
|
22
|
-
return active ?
|
|
23
|
-
},
|
|
22
|
+
return active ? ColorV2.Blue300 : 'transparent';
|
|
23
|
+
}, ColorV2.Blue300, ColorV2.Dark400);
|
|
24
24
|
export function NavbarMenu(_ref2) {
|
|
25
25
|
var {
|
|
26
26
|
items,
|
|
@@ -63,7 +63,7 @@ export function NavbarMenu(_ref2) {
|
|
|
63
63
|
verticalAlign: "center",
|
|
64
64
|
children: [item.icon, /*#__PURE__*/_jsx(Typography, {
|
|
65
65
|
style: {
|
|
66
|
-
color:
|
|
66
|
+
color: ColorV2.Dark500
|
|
67
67
|
},
|
|
68
68
|
children: item.label
|
|
69
69
|
})]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColorV2, Column, Columns, useUID } from '@superdispatch/ui';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { TextBox } from "../text-box/TextBox.js";
|
|
@@ -6,11 +6,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
var SidebarRoot = /*#__PURE__*/styled.aside.withConfig({
|
|
7
7
|
displayName: "Sidebar__SidebarRoot",
|
|
8
8
|
componentId: "SD__sc-b77o22-0"
|
|
9
|
-
})(["top:0;position:sticky;overflow-y:auto;overflow-x:hidden;height:100vh;background-color:", ";border-right:1px solid ", ";"],
|
|
9
|
+
})(["top:0;position:sticky;overflow-y:auto;overflow-x:hidden;height:100vh;background-color:", ";border-right:1px solid ", ";"], ColorV2.White, ColorV2.Silver400);
|
|
10
10
|
var SidebarHeader = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "Sidebar__SidebarHeader",
|
|
12
12
|
componentId: "SD__sc-b77o22-1"
|
|
13
|
-
})(["top:0;z-index:2;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"],
|
|
13
|
+
})(["top:0;z-index:2;position:sticky;padding-left:24px;padding-right:24px;padding-bottom:8px;background-color:", ";"], ColorV2.White);
|
|
14
14
|
var SidebarTitle = /*#__PURE__*/styled.div.withConfig({
|
|
15
15
|
displayName: "Sidebar__SidebarTitle",
|
|
16
16
|
componentId: "SD__sc-b77o22-2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonBase } from '@material-ui/core';
|
|
2
2
|
import { OpenInNew } from '@material-ui/icons';
|
|
3
|
-
import {
|
|
3
|
+
import { ColorV2, Column, Columns, Inline, mergeRefs } from '@superdispatch/ui';
|
|
4
4
|
import { forwardRef, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { TextBox } from "../text-box/TextBox.js";
|
|
@@ -15,12 +15,12 @@ var SidebarMenuItemRoot = /*#__PURE__*/styled.div.withConfig({
|
|
|
15
15
|
hasAvatar
|
|
16
16
|
} = _ref;
|
|
17
17
|
var height = hasAvatar ? 48 : 40;
|
|
18
|
-
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,
|
|
18
|
+
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);
|
|
19
19
|
});
|
|
20
20
|
var SidebarMenuItemBadge = /*#__PURE__*/styled.div.withConfig({
|
|
21
21
|
displayName: "SidebarMenuItem__SidebarMenuItemBadge",
|
|
22
22
|
componentId: "SD__sc-1sb5zqa-1"
|
|
23
|
-
})(["font-size:12px;font-weight:500;line-height:16px;padding-left:4px;padding-right:4px;border-radius:100px;color:", ";background-color:", ";"],
|
|
23
|
+
})(["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);
|
|
24
24
|
export var SidebarMenuItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
25
25
|
var {
|
|
26
26
|
action,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["variant", "as", "align", "color", "display", "noWrap", "wrapOverflow"];
|
|
4
|
-
import {
|
|
4
|
+
import { ColorV2, parseResponsiveProp } from '@superdispatch/ui';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import styled, { css } from 'styled-components';
|
|
7
7
|
import { mergeStyles } from "../utils/mergeStyles.js";
|
|
@@ -9,16 +9,16 @@ import { createRuleNormalizer } from "../utils/RuleNormalizer.js";
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
var normalizeTextColor = /*#__PURE__*/createRuleNormalizer({
|
|
11
11
|
inherit: 'inherit',
|
|
12
|
-
primary:
|
|
13
|
-
secondary:
|
|
14
|
-
'light-gray':
|
|
15
|
-
white:
|
|
16
|
-
blue:
|
|
17
|
-
green:
|
|
18
|
-
purple:
|
|
19
|
-
red:
|
|
20
|
-
teal:
|
|
21
|
-
yellow:
|
|
12
|
+
primary: ColorV2.Dark500,
|
|
13
|
+
secondary: ColorV2.Dark300,
|
|
14
|
+
'light-gray': ColorV2.Dark100,
|
|
15
|
+
white: ColorV2.White,
|
|
16
|
+
blue: ColorV2.Blue500,
|
|
17
|
+
green: ColorV2.Green500,
|
|
18
|
+
purple: ColorV2.Purple500,
|
|
19
|
+
red: ColorV2.Red500,
|
|
20
|
+
teal: ColorV2.Teal500,
|
|
21
|
+
yellow: ColorV2.Yellow500
|
|
22
22
|
});
|
|
23
23
|
var VARIANT_TYPE_MAPPING = {
|
|
24
24
|
'heading-1': 'h1',
|