@ultraviolet/ui 1.3.1 → 1.4.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/index.d.ts +69 -44
- package/dist/src/components/ActionBar/index.js +7 -12
- package/dist/src/components/Alert/index.js +1 -1
- package/dist/src/components/Badge/index.js +3 -3
- package/dist/src/components/Bullet/index.js +52 -83
- package/dist/src/components/Button/index.js +5 -5
- package/dist/src/components/Carousel/index.js +30 -27
- package/dist/src/components/Checkbox/index.js +3 -3
- package/dist/src/components/CopyButton/index.js +15 -73
- package/dist/src/components/EmptyState/index.js +1 -1
- package/dist/src/components/List/Row.js +3 -0
- package/dist/src/components/NumberInput/index.js +1 -1
- package/dist/src/components/Radio/index.js +4 -4
- package/dist/src/components/SelectInput/index.js +1 -1
- package/dist/src/components/SelectableCard/index.js +34 -29
- package/dist/src/components/Snippet/index.js +4 -4
- package/dist/src/components/Stepper/index.js +43 -96
- package/dist/src/components/Table/index.js +1 -1
- package/dist/src/components/Tabs/Tab.js +14 -17
- package/dist/src/components/Tabs/index.js +1 -1
- package/dist/src/components/TagInput/index.js +2 -2
- package/dist/src/components/TextInput/index.js +1 -1
- package/dist/src/components/Toggle/index.js +3 -3
- package/dist/src/components/VerificationCode/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,62 +1,9 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
1
|
import useClipboard from 'react-use-clipboard';
|
|
3
|
-
import {
|
|
4
|
-
import { Tooltip } from '../Tooltip/index.js';
|
|
2
|
+
import { Button } from '../Button/index.js';
|
|
5
3
|
import { jsx } from '@emotion/react/jsx-runtime';
|
|
6
4
|
|
|
7
5
|
const COPY_DURATION = 2500;
|
|
8
|
-
const
|
|
9
|
-
small: 32,
|
|
10
|
-
large: 48
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* TODO: replace when buttonV2 will be available
|
|
15
|
-
*/
|
|
16
|
-
const StyledButton = /*#__PURE__*/_styled('button', {
|
|
17
|
-
shouldForwardProp: prop => !['size', 'sentiment', 'noBorder'].includes(prop),
|
|
18
|
-
target: "e1qa6uyd0"
|
|
19
|
-
})("width:", _ref => {
|
|
20
|
-
let {
|
|
21
|
-
size
|
|
22
|
-
} = _ref;
|
|
23
|
-
return size;
|
|
24
|
-
}, "px;height:", _ref2 => {
|
|
25
|
-
let {
|
|
26
|
-
size
|
|
27
|
-
} = _ref2;
|
|
28
|
-
return size;
|
|
29
|
-
}, "px;background:transparent;color:", _ref3 => {
|
|
30
|
-
let {
|
|
31
|
-
theme,
|
|
32
|
-
sentiment
|
|
33
|
-
} = _ref3;
|
|
34
|
-
return sentiment === 'primary' ? theme.colors.primary.textWeak : theme.colors.neutral.text;
|
|
35
|
-
}, ";border:", _ref4 => {
|
|
36
|
-
let {
|
|
37
|
-
theme,
|
|
38
|
-
noBorder,
|
|
39
|
-
sentiment
|
|
40
|
-
} = _ref4;
|
|
41
|
-
return noBorder ? 'none' : `1px solid ${theme.colors[sentiment].borderWeak}`;
|
|
42
|
-
}, ";border-radius:", _ref5 => {
|
|
43
|
-
let {
|
|
44
|
-
theme
|
|
45
|
-
} = _ref5;
|
|
46
|
-
return theme.radii.default;
|
|
47
|
-
}, ";display:flex;cursor:pointer;align-items:center;justify-content:center;outline:none;&:hover{background:", _ref6 => {
|
|
48
|
-
let {
|
|
49
|
-
theme,
|
|
50
|
-
sentiment
|
|
51
|
-
} = _ref6;
|
|
52
|
-
return theme.colors[sentiment].backgroundWeakHover;
|
|
53
|
-
}, ";}&active,&:focus{box-shadow:", _ref7 => {
|
|
54
|
-
let {
|
|
55
|
-
theme
|
|
56
|
-
} = _ref7;
|
|
57
|
-
return theme.shadows.focusPrimary;
|
|
58
|
-
}, ";}");
|
|
59
|
-
const CopyButton = _ref8 => {
|
|
6
|
+
const CopyButton = _ref => {
|
|
60
7
|
let {
|
|
61
8
|
size = 'small',
|
|
62
9
|
value,
|
|
@@ -66,27 +13,22 @@ const CopyButton = _ref8 => {
|
|
|
66
13
|
noBorder,
|
|
67
14
|
className,
|
|
68
15
|
'data-testid': dataTestId
|
|
69
|
-
} =
|
|
16
|
+
} = _ref;
|
|
70
17
|
const [isCopied, setCopied] = useClipboard(value, {
|
|
71
18
|
successDuration: COPY_DURATION
|
|
72
19
|
});
|
|
73
|
-
return jsx(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
children: jsx(Icon, {
|
|
85
|
-
name: isCopied ? 'check' : 'copy-content',
|
|
86
|
-
size: 16
|
|
87
|
-
})
|
|
88
|
-
})
|
|
20
|
+
return jsx(Button, {
|
|
21
|
+
type: "button",
|
|
22
|
+
onClick: setCopied,
|
|
23
|
+
size: size,
|
|
24
|
+
sentiment: sentiment,
|
|
25
|
+
variant: noBorder ? 'ghost' : 'outlined',
|
|
26
|
+
className: className,
|
|
27
|
+
"data-testid": dataTestId,
|
|
28
|
+
"aria-label": "Copy",
|
|
29
|
+
icon: isCopied ? 'check' : 'copy-content',
|
|
30
|
+
tooltip: isCopied ? copiedText : copyText
|
|
89
31
|
});
|
|
90
32
|
};
|
|
91
33
|
|
|
92
|
-
export { CopyButton
|
|
34
|
+
export { CopyButton };
|
|
@@ -44,7 +44,7 @@ const Container = /*#__PURE__*/_styled(Stack, {
|
|
|
44
44
|
bordered
|
|
45
45
|
} = _ref3;
|
|
46
46
|
return bordered ? `
|
|
47
|
-
border: 1px solid ${theme.colors.neutral.
|
|
47
|
+
border: 1px solid ${theme.colors.neutral.border};
|
|
48
48
|
border-radius: ${theme.radii.default};
|
|
49
49
|
` : null;
|
|
50
50
|
}, ";");
|
|
@@ -96,7 +96,7 @@ const StyledContainer = /*#__PURE__*/_styled('div', {
|
|
|
96
96
|
let {
|
|
97
97
|
theme
|
|
98
98
|
} = _ref12;
|
|
99
|
-
return theme.colors.neutral.
|
|
99
|
+
return theme.colors.neutral.background;
|
|
100
100
|
}, ";display:flex;flex-direction:row;align-items:center;align-self:stretch;font-weight:500;height:", _ref13 => {
|
|
101
101
|
let {
|
|
102
102
|
size
|
|
@@ -8,7 +8,7 @@ const InnerCircleRing = /*#__PURE__*/_styled("circle", {
|
|
|
8
8
|
let {
|
|
9
9
|
theme
|
|
10
10
|
} = _ref;
|
|
11
|
-
return theme.colors.neutral.
|
|
11
|
+
return theme.colors.neutral.borderStrong;
|
|
12
12
|
}, ";");
|
|
13
13
|
const RadioMark = /*#__PURE__*/_styled("circle", {
|
|
14
14
|
target: "ehkrmld3"
|
|
@@ -60,7 +60,7 @@ const StyledIcon = /*#__PURE__*/_styled("svg", {
|
|
|
60
60
|
let {
|
|
61
61
|
theme
|
|
62
62
|
} = _ref7;
|
|
63
|
-
return theme.colors.neutral.
|
|
63
|
+
return theme.colors.neutral.borderStrong;
|
|
64
64
|
}, ";", InnerCircleRing, "{fill:", _ref8 => {
|
|
65
65
|
let {
|
|
66
66
|
theme
|
|
@@ -167,12 +167,12 @@ const RadioContainer = /*#__PURE__*/_styled("div", {
|
|
|
167
167
|
let {
|
|
168
168
|
theme
|
|
169
169
|
} = _ref27;
|
|
170
|
-
return theme.colors.neutral.
|
|
170
|
+
return theme.colors.neutral.borderStrongDisabled;
|
|
171
171
|
}, ";", InnerCircleRing, "{fill:", _ref28 => {
|
|
172
172
|
let {
|
|
173
173
|
theme
|
|
174
174
|
} = _ref28;
|
|
175
|
-
return theme.colors.neutral.
|
|
175
|
+
return theme.colors.neutral.backgroundDisabled;
|
|
176
176
|
}, ";}}}");
|
|
177
177
|
const Radio = /*#__PURE__*/forwardRef((_ref29, ref) => {
|
|
178
178
|
let {
|
|
@@ -73,7 +73,7 @@ const getSelectStyles = _ref5 => {
|
|
|
73
73
|
return {
|
|
74
74
|
control: (provided, state) => ({
|
|
75
75
|
...provided,
|
|
76
|
-
backgroundColor: state.isDisabled ? theme.colors.neutral.backgroundDisabled : theme.colors.neutral.
|
|
76
|
+
backgroundColor: state.isDisabled ? theme.colors.neutral.backgroundDisabled : theme.colors.neutral.background,
|
|
77
77
|
borderColor: error ? theme.colors.danger.border : theme.colors.neutral.borderWeak,
|
|
78
78
|
borderRadius: '4px',
|
|
79
79
|
borderStyle: 'solid',
|
|
@@ -17,83 +17,88 @@ const Container = /*#__PURE__*/_styled("div", {
|
|
|
17
17
|
theme
|
|
18
18
|
} = _ref2;
|
|
19
19
|
return theme.radii.default;
|
|
20
|
-
}, ";transition:border-color 200ms ease,box-shadow 200ms ease;cursor:pointer;
|
|
20
|
+
}, ";transition:border-color 200ms ease,box-shadow 200ms ease;cursor:pointer;background:", _ref3 => {
|
|
21
21
|
let {
|
|
22
22
|
theme
|
|
23
23
|
} = _ref3;
|
|
24
|
-
return theme.colors.neutral.
|
|
25
|
-
}, ";
|
|
24
|
+
return theme.colors.neutral.background;
|
|
25
|
+
}, ";border:1px solid ", _ref4 => {
|
|
26
26
|
let {
|
|
27
27
|
theme
|
|
28
28
|
} = _ref4;
|
|
29
|
-
return theme.colors.neutral.
|
|
30
|
-
}, "
|
|
29
|
+
return theme.colors.neutral.borderWeak;
|
|
30
|
+
}, ";color:", _ref5 => {
|
|
31
31
|
let {
|
|
32
32
|
theme
|
|
33
33
|
} = _ref5;
|
|
34
|
-
return theme.colors.
|
|
35
|
-
}, "
|
|
34
|
+
return theme.colors.neutral.text;
|
|
35
|
+
}, ";&[data-checked='true']{border:1px solid ", _ref6 => {
|
|
36
36
|
let {
|
|
37
37
|
theme
|
|
38
38
|
} = _ref6;
|
|
39
|
-
return theme.colors.
|
|
40
|
-
}, ";}&[data-
|
|
39
|
+
return theme.colors.primary.borderWeak;
|
|
40
|
+
}, ";}&[data-error='true']{border:1px solid ", _ref7 => {
|
|
41
41
|
let {
|
|
42
42
|
theme
|
|
43
43
|
} = _ref7;
|
|
44
|
-
return theme.colors.
|
|
45
|
-
}, ";
|
|
44
|
+
return theme.colors.danger.border;
|
|
45
|
+
}, ";}&[data-disabled='true']{border:1px solid ", _ref8 => {
|
|
46
46
|
let {
|
|
47
47
|
theme
|
|
48
48
|
} = _ref8;
|
|
49
|
-
return theme.colors.neutral.
|
|
50
|
-
}, ";
|
|
49
|
+
return theme.colors.neutral.borderWeakDisabled;
|
|
50
|
+
}, ";color:", _ref9 => {
|
|
51
51
|
let {
|
|
52
52
|
theme
|
|
53
53
|
} = _ref9;
|
|
54
|
-
return theme.colors.neutral.
|
|
55
|
-
}, ";
|
|
54
|
+
return theme.colors.neutral.textDisabled;
|
|
55
|
+
}, ";background:", _ref10 => {
|
|
56
56
|
let {
|
|
57
57
|
theme
|
|
58
58
|
} = _ref10;
|
|
59
|
-
return theme.colors.
|
|
60
|
-
}, "
|
|
59
|
+
return theme.colors.neutral.backgroundDisabled;
|
|
60
|
+
}, ";cursor:not-allowed;}&:hover,&:focus-within,&:active{&:not([data-error='true']):not([data-disabled='true']){border:1px solid ", _ref11 => {
|
|
61
61
|
let {
|
|
62
62
|
theme
|
|
63
63
|
} = _ref11;
|
|
64
|
+
return theme.colors.primary.borderWeak;
|
|
65
|
+
}, ";&[data-cheked='false']{box-shadow:", _ref12 => {
|
|
66
|
+
let {
|
|
67
|
+
theme
|
|
68
|
+
} = _ref12;
|
|
64
69
|
return theme.shadows.hoverPrimary;
|
|
65
70
|
}, ";}}}");
|
|
66
71
|
const StyledElement = element => /*#__PURE__*/_styled(element, {
|
|
67
72
|
shouldForwardProp: prop => !['showTick', 'hasLabel'].includes(prop),
|
|
68
73
|
target: "e1s5n3hj0"
|
|
69
|
-
})("display:inline-flex;align-items:start;&[data-checked='true']{color:",
|
|
74
|
+
})("display:inline-flex;align-items:start;&[data-checked='true']{color:", _ref13 => {
|
|
70
75
|
let {
|
|
71
76
|
theme
|
|
72
|
-
} =
|
|
77
|
+
} = _ref13;
|
|
73
78
|
return theme.colors.primary.textWeak;
|
|
74
|
-
}, ";}&[data-error='true']{color:",
|
|
79
|
+
}, ";}&[data-error='true']{color:", _ref14 => {
|
|
75
80
|
let {
|
|
76
81
|
theme
|
|
77
|
-
} =
|
|
82
|
+
} = _ref14;
|
|
78
83
|
return theme.colors.danger.text;
|
|
79
|
-
}, ";}&[aria-disabled='true']{color:",
|
|
84
|
+
}, ";}&[aria-disabled='true']{color:", _ref15 => {
|
|
80
85
|
let {
|
|
81
86
|
theme
|
|
82
|
-
} =
|
|
87
|
+
} = _ref15;
|
|
83
88
|
return theme.colors.neutral.textDisabled;
|
|
84
|
-
}, ";}input+svg{",
|
|
89
|
+
}, ";}input+svg{", _ref16 => {
|
|
85
90
|
let {
|
|
86
91
|
showTick
|
|
87
|
-
} =
|
|
92
|
+
} = _ref16;
|
|
88
93
|
return !showTick ? `display: none;` : null;
|
|
89
|
-
}, ";}label{",
|
|
94
|
+
}, ";}label{", _ref17 => {
|
|
90
95
|
let {
|
|
91
96
|
showTick,
|
|
92
97
|
hasLabel
|
|
93
|
-
} =
|
|
98
|
+
} = _ref17;
|
|
94
99
|
return !showTick && !hasLabel ? `display: none;` : null;
|
|
95
100
|
}, ";}");
|
|
96
|
-
const SelectableCard = /*#__PURE__*/forwardRef((
|
|
101
|
+
const SelectableCard = /*#__PURE__*/forwardRef((_ref18, ref) => {
|
|
97
102
|
let {
|
|
98
103
|
name,
|
|
99
104
|
value,
|
|
@@ -111,7 +116,7 @@ const SelectableCard = /*#__PURE__*/forwardRef((_ref17, ref) => {
|
|
|
111
116
|
id,
|
|
112
117
|
label,
|
|
113
118
|
'data-testid': dataTestId
|
|
114
|
-
} =
|
|
119
|
+
} = _ref18;
|
|
115
120
|
const Element = useMemo(() => StyledElement(type === 'radio' ? Radio : Checkbox), [type]);
|
|
116
121
|
const innerRef = useRef(null);
|
|
117
122
|
return jsx(Tooltip, {
|
|
@@ -72,7 +72,7 @@ const Container = /*#__PURE__*/_styled('div', {
|
|
|
72
72
|
let {
|
|
73
73
|
theme
|
|
74
74
|
} = _ref8;
|
|
75
|
-
return theme.colors.neutral.
|
|
75
|
+
return theme.colors.neutral.backgroundWeak;
|
|
76
76
|
}, ";border-radius:", _ref9 => {
|
|
77
77
|
let {
|
|
78
78
|
theme
|
|
@@ -102,7 +102,7 @@ const ButtonContainer = /*#__PURE__*/_styled('div', {
|
|
|
102
102
|
let {
|
|
103
103
|
theme
|
|
104
104
|
} = _ref11;
|
|
105
|
-
return theme.colors.neutral.
|
|
105
|
+
return theme.colors.neutral.backgroundWeak;
|
|
106
106
|
}, ";border-radius:", _ref12 => {
|
|
107
107
|
let {
|
|
108
108
|
theme
|
|
@@ -113,7 +113,7 @@ const ButtonContainer = /*#__PURE__*/_styled('div', {
|
|
|
113
113
|
multiline,
|
|
114
114
|
theme
|
|
115
115
|
} = _ref13;
|
|
116
|
-
return !multiline ? `box-shadow: -27px 0 19px -11px ${theme.colors.neutral.
|
|
116
|
+
return !multiline ? `box-shadow: -27px 0 19px -11px ${theme.colors.neutral.backgroundWeak}` : '';
|
|
117
117
|
}, ";");
|
|
118
118
|
const ShowMoreContainer = /*#__PURE__*/_styled('div', {
|
|
119
119
|
shouldForwardProp: prop => !['showMore'].includes(prop),
|
|
@@ -124,7 +124,7 @@ const ShowMoreContainer = /*#__PURE__*/_styled('div', {
|
|
|
124
124
|
showMore
|
|
125
125
|
} = _ref14;
|
|
126
126
|
return !showMore ? `0px -22px 19px -6px
|
|
127
|
-
${theme.colors.neutral.
|
|
127
|
+
${theme.colors.neutral.backgroundWeak}` : 'none';
|
|
128
128
|
}, ";");
|
|
129
129
|
const StyledButton = /*#__PURE__*/_styled("button", {
|
|
130
130
|
target: "e1q0gj902"
|
|
@@ -2,7 +2,7 @@ import _styled from '@emotion/styled/base';
|
|
|
2
2
|
import { keyframes, css } from '@emotion/react';
|
|
3
3
|
import { Children, Fragment } from 'react';
|
|
4
4
|
import flattenChildren from 'react-flatten-children';
|
|
5
|
-
import {
|
|
5
|
+
import { Bullet } from '../Bullet/index.js';
|
|
6
6
|
import { Text } from '../Text/index.js';
|
|
7
7
|
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ const loadingAnimation = keyframes`
|
|
|
16
16
|
}
|
|
17
17
|
`;
|
|
18
18
|
const StyledStepContainer = /*#__PURE__*/_styled("div", {
|
|
19
|
-
target: "
|
|
19
|
+
target: "e19ft7rb3"
|
|
20
20
|
})(process.env.NODE_ENV === "production" ? {
|
|
21
21
|
name: "b8wmnj",
|
|
22
22
|
styles: "display:flex;flex-direction:column;align-items:center;justify-content:flex-start"
|
|
@@ -25,150 +25,97 @@ const StyledStepContainer = /*#__PURE__*/_styled("div", {
|
|
|
25
25
|
styles: "display:flex;flex-direction:column;align-items:center;justify-content:flex-start",
|
|
26
26
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
27
27
|
});
|
|
28
|
-
const StyledStep = /*#__PURE__*/_styled('div', {
|
|
29
|
-
shouldForwardProp: prop => !['temporal'].includes(prop),
|
|
30
|
-
target: "e19ft7rb4"
|
|
31
|
-
})("border-radius:", _ref => {
|
|
32
|
-
let {
|
|
33
|
-
theme
|
|
34
|
-
} = _ref;
|
|
35
|
-
return theme.radii.circle;
|
|
36
|
-
}, ";display:flex;align-items:center;justify-content:center;color:", _ref2 => {
|
|
37
|
-
let {
|
|
38
|
-
temporal,
|
|
39
|
-
theme
|
|
40
|
-
} = _ref2;
|
|
41
|
-
if (temporal === 'previous') return theme.colors.success.text;
|
|
42
|
-
if (temporal === 'current') return theme.colors.primary.text;
|
|
43
|
-
return theme.colors.neutral.textWeak;
|
|
44
|
-
}, ";background-color:", _ref3 => {
|
|
45
|
-
let {
|
|
46
|
-
temporal,
|
|
47
|
-
theme
|
|
48
|
-
} = _ref3;
|
|
49
|
-
if (temporal === 'previous') return theme.colors.success.background;
|
|
50
|
-
if (temporal === 'current') return theme.colors.primary.background;
|
|
51
|
-
return 'transparent';
|
|
52
|
-
}, ";border:", _ref4 => {
|
|
53
|
-
let {
|
|
54
|
-
temporal,
|
|
55
|
-
theme
|
|
56
|
-
} = _ref4;
|
|
57
|
-
return temporal === 'next' ? `1px solid ${theme.colors.neutral.borderWeak}` : null;
|
|
58
|
-
}, ";");
|
|
59
28
|
const StyledText = /*#__PURE__*/_styled(Text, {
|
|
60
|
-
target: "e19ft7rb3"
|
|
61
|
-
})("margin-top:", _ref5 => {
|
|
62
|
-
let {
|
|
63
|
-
theme
|
|
64
|
-
} = _ref5;
|
|
65
|
-
return theme.space['1'];
|
|
66
|
-
}, ";");
|
|
67
|
-
const StyledIcon = /*#__PURE__*/_styled(Icon, {
|
|
68
29
|
target: "e19ft7rb2"
|
|
69
|
-
})("
|
|
30
|
+
})("margin-top:", _ref => {
|
|
70
31
|
let {
|
|
71
32
|
theme
|
|
72
|
-
} =
|
|
73
|
-
return theme.
|
|
33
|
+
} = _ref;
|
|
34
|
+
return theme.space['1'];
|
|
74
35
|
}, ";");
|
|
75
36
|
const loadingStyle = /*#__PURE__*/css("animation:", loadingAnimation, " 1s linear infinite;");
|
|
76
37
|
const StyledLine = /*#__PURE__*/_styled("div", {
|
|
77
38
|
target: "e19ft7rb1"
|
|
78
|
-
})("border-radius:",
|
|
39
|
+
})("border-radius:", _ref2 => {
|
|
79
40
|
let {
|
|
80
41
|
theme
|
|
81
|
-
} =
|
|
42
|
+
} = _ref2;
|
|
82
43
|
return theme.radii.default;
|
|
83
|
-
}, ";flex-grow:1;border-radius:",
|
|
44
|
+
}, ";flex-grow:1;border-radius:", _ref3 => {
|
|
84
45
|
let {
|
|
85
46
|
theme
|
|
86
|
-
} =
|
|
47
|
+
} = _ref3;
|
|
87
48
|
return theme.radii.default;
|
|
88
|
-
}, ";background-color:",
|
|
49
|
+
}, ";background-color:", _ref4 => {
|
|
89
50
|
let {
|
|
90
51
|
theme
|
|
91
|
-
} =
|
|
92
|
-
return theme.colors.neutral.
|
|
93
|
-
}, ";position:relative;::after{content:'';position:absolute;left:0;top:0;height:100%;border-radius:",
|
|
52
|
+
} = _ref4;
|
|
53
|
+
return theme.colors.neutral.backgroundStrong;
|
|
54
|
+
}, ";position:relative;::after{content:'';position:absolute;left:0;top:0;height:100%;border-radius:", _ref5 => {
|
|
94
55
|
let {
|
|
95
56
|
theme
|
|
96
|
-
} =
|
|
57
|
+
} = _ref5;
|
|
97
58
|
return theme.radii.default;
|
|
98
|
-
}, ";background-color:",
|
|
59
|
+
}, ";background-color:", _ref6 => {
|
|
99
60
|
let {
|
|
100
61
|
theme
|
|
101
|
-
} =
|
|
102
|
-
return theme.colors.
|
|
103
|
-
}, ";",
|
|
62
|
+
} = _ref6;
|
|
63
|
+
return theme.colors.primary.backgroundStrong;
|
|
64
|
+
}, ";", _ref7 => {
|
|
104
65
|
let {
|
|
105
66
|
temporal
|
|
106
|
-
} =
|
|
67
|
+
} = _ref7;
|
|
107
68
|
return temporal === 'previous' && `width: 100%;`;
|
|
108
|
-
}, " ",
|
|
69
|
+
}, " ", _ref8 => {
|
|
109
70
|
let {
|
|
110
71
|
temporal,
|
|
111
72
|
animated
|
|
112
|
-
} =
|
|
73
|
+
} = _ref8;
|
|
113
74
|
return temporal === 'current' && animated && loadingStyle;
|
|
114
75
|
}, ";}");
|
|
115
76
|
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
116
77
|
target: "e19ft7rb0"
|
|
117
|
-
})("display:flex;flex-direction:row;justify-content:center;align-items:flex-start;gap:0 ",
|
|
78
|
+
})("display:flex;flex-direction:row;justify-content:center;align-items:flex-start;gap:0 ", _ref9 => {
|
|
118
79
|
let {
|
|
119
80
|
theme
|
|
120
|
-
} =
|
|
81
|
+
} = _ref9;
|
|
121
82
|
return theme.space['1'];
|
|
122
|
-
}, ";",
|
|
83
|
+
}, ";", StyledStepContainer, "{width:", _ref10 => {
|
|
123
84
|
let {
|
|
124
85
|
theme
|
|
125
|
-
} =
|
|
126
|
-
return theme.space['4'];
|
|
127
|
-
}, ";width:", _ref16 => {
|
|
128
|
-
let {
|
|
129
|
-
theme
|
|
130
|
-
} = _ref16;
|
|
131
|
-
return theme.space['4'];
|
|
132
|
-
}, ";}", StyledStepContainer, "{width:", _ref17 => {
|
|
133
|
-
let {
|
|
134
|
-
theme
|
|
135
|
-
} = _ref17;
|
|
86
|
+
} = _ref10;
|
|
136
87
|
return theme.space['4'];
|
|
137
|
-
}, ";white-space:nowrap;}", StyledLine, "{height:",
|
|
88
|
+
}, ";white-space:nowrap;}", StyledLine, "{height:", _ref11 => {
|
|
138
89
|
let {
|
|
139
90
|
theme
|
|
140
|
-
} =
|
|
91
|
+
} = _ref11;
|
|
141
92
|
return theme.space['0.5'];
|
|
142
|
-
}, ";margin-top:",
|
|
93
|
+
}, ";margin-top:", _ref12 => {
|
|
143
94
|
let {
|
|
144
95
|
theme
|
|
145
|
-
} =
|
|
96
|
+
} = _ref12;
|
|
146
97
|
return theme.space['2'];
|
|
147
|
-
}, ";margin-bottom:",
|
|
98
|
+
}, ";margin-bottom:", _ref13 => {
|
|
148
99
|
let {
|
|
149
100
|
theme
|
|
150
|
-
} =
|
|
101
|
+
} = _ref13;
|
|
151
102
|
return theme.space['2'];
|
|
152
103
|
}, ";}");
|
|
153
|
-
const StepperNumbers =
|
|
104
|
+
const StepperNumbers = _ref14 => {
|
|
154
105
|
let {
|
|
155
106
|
temporal,
|
|
156
107
|
children,
|
|
157
108
|
CurrentStep
|
|
158
|
-
} =
|
|
109
|
+
} = _ref14;
|
|
159
110
|
return jsxs(StyledStepContainer, {
|
|
160
|
-
children: [jsx(
|
|
161
|
-
temporal:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}) : jsx(StyledIcon, {
|
|
169
|
-
name: "check",
|
|
170
|
-
size: 20
|
|
171
|
-
})
|
|
111
|
+
children: [jsx(Bullet, {
|
|
112
|
+
sentiment: temporal === 'next' ? 'neutral' : 'primary',
|
|
113
|
+
...(temporal === 'previous' ? {
|
|
114
|
+
icon: 'check'
|
|
115
|
+
} : {
|
|
116
|
+
text: CurrentStep.toString()
|
|
117
|
+
}),
|
|
118
|
+
prominence: temporal !== 'current' ? 'default' : 'strong'
|
|
172
119
|
}), jsx(StyledText, {
|
|
173
120
|
as: "span",
|
|
174
121
|
variant: "bodySmall",
|
|
@@ -177,14 +124,14 @@ const StepperNumbers = _ref21 => {
|
|
|
177
124
|
})]
|
|
178
125
|
});
|
|
179
126
|
};
|
|
180
|
-
const Stepper =
|
|
127
|
+
const Stepper = _ref15 => {
|
|
181
128
|
let {
|
|
182
129
|
children,
|
|
183
130
|
selected = 0,
|
|
184
131
|
animated = false,
|
|
185
132
|
className,
|
|
186
133
|
'data-testid': dataTestId
|
|
187
|
-
} =
|
|
134
|
+
} = _ref15;
|
|
188
135
|
const lastStep = Children.count(children) - 1;
|
|
189
136
|
return jsx(StyledContainer, {
|
|
190
137
|
className: className,
|
|
@@ -22,7 +22,7 @@ const StyledTable = /*#__PURE__*/_styled('table', {
|
|
|
22
22
|
} = _ref;
|
|
23
23
|
return `
|
|
24
24
|
${stripped ? `& tbody tr:nth-of-type(even) {
|
|
25
|
-
background: ${theme.colors.neutral.
|
|
25
|
+
background: ${theme.colors.neutral.backgroundWeak};
|
|
26
26
|
}` : ''}
|
|
27
27
|
|
|
28
28
|
${bordered ? `& tbody tr {
|
|
@@ -29,7 +29,8 @@ const BadgeContainer = /*#__PURE__*/_styled("span", {
|
|
|
29
29
|
} = _ref3;
|
|
30
30
|
return theme.space['1'];
|
|
31
31
|
}, ";display:flex;");
|
|
32
|
-
const StyledTabButton = /*#__PURE__*/_styled(
|
|
32
|
+
const StyledTabButton = /*#__PURE__*/_styled('button', {
|
|
33
|
+
shouldForwardProp: prop => !['isSelected'].includes(prop),
|
|
33
34
|
target: "e1hzf7cr0"
|
|
34
35
|
})("display:flex;flex-direction:row;padding:", _ref4 => {
|
|
35
36
|
let {
|
|
@@ -45,7 +46,7 @@ const StyledTabButton = /*#__PURE__*/_styled("button", {
|
|
|
45
46
|
let {
|
|
46
47
|
theme
|
|
47
48
|
} = _ref6;
|
|
48
|
-
return theme.colors.neutral.
|
|
49
|
+
return theme.colors.neutral.border;
|
|
49
50
|
}, ";outline:none;font-size:", _ref7 => {
|
|
50
51
|
let {
|
|
51
52
|
theme
|
|
@@ -91,23 +92,18 @@ const StyledTabButton = /*#__PURE__*/_styled("button", {
|
|
|
91
92
|
theme
|
|
92
93
|
} = _ref15;
|
|
93
94
|
return theme.colors.primary.borderWeak;
|
|
94
|
-
}, ";", StyledBadge, "{
|
|
95
|
+
}, ";", StyledBadge, "{", _ref16 => {
|
|
95
96
|
let {
|
|
97
|
+
isSelected,
|
|
96
98
|
theme
|
|
97
99
|
} = _ref16;
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return theme.colors.primary.background;
|
|
104
|
-
}, ";color:", _ref18 => {
|
|
105
|
-
let {
|
|
106
|
-
theme
|
|
107
|
-
} = _ref18;
|
|
108
|
-
return theme.colors.primary.text;
|
|
100
|
+
return !isSelected ? `
|
|
101
|
+
background-color: ${theme.colors.primary.background};
|
|
102
|
+
border-color: ${theme.colors.primary.background};
|
|
103
|
+
color: ${theme.colors.primary.text};
|
|
104
|
+
` : null;
|
|
109
105
|
}, ";}}}&[aria-disabled='true'],&:disabled{cursor:not-allowed;filter:grayscale(1) opacity(50%);}");
|
|
110
|
-
const Tab = /*#__PURE__*/forwardRef((
|
|
106
|
+
const Tab = /*#__PURE__*/forwardRef((_ref17, ref) => {
|
|
111
107
|
let {
|
|
112
108
|
as,
|
|
113
109
|
badge,
|
|
@@ -120,7 +116,7 @@ const Tab = /*#__PURE__*/forwardRef((_ref19, ref) => {
|
|
|
120
116
|
onKeyDown,
|
|
121
117
|
tooltip,
|
|
122
118
|
...props
|
|
123
|
-
} =
|
|
119
|
+
} = _ref17;
|
|
124
120
|
const {
|
|
125
121
|
selected,
|
|
126
122
|
onChange
|
|
@@ -149,10 +145,11 @@ const Tab = /*#__PURE__*/forwardRef((_ref19, ref) => {
|
|
|
149
145
|
onKeyDown?.(event);
|
|
150
146
|
if (!event.defaultPrevented && !disabled && value) onChange(value);
|
|
151
147
|
},
|
|
148
|
+
isSelected: isSelected,
|
|
152
149
|
...props,
|
|
153
150
|
children: [children, typeof counter === 'number' || typeof counter === 'string' ? jsx(StyledBadge, {
|
|
154
151
|
sentiment: isSelected ? 'primary' : 'neutral',
|
|
155
|
-
prominence: isSelected ? '
|
|
152
|
+
prominence: isSelected ? 'strong' : 'default',
|
|
156
153
|
size: "medium",
|
|
157
154
|
children: counter
|
|
158
155
|
}) : null, badge ? jsx(BadgeContainer, {
|
|
@@ -43,7 +43,7 @@ const TabsContainer = /*#__PURE__*/_styled("div", {
|
|
|
43
43
|
let {
|
|
44
44
|
theme
|
|
45
45
|
} = _ref6;
|
|
46
|
-
return theme.colors.neutral.
|
|
46
|
+
return theme.colors.neutral.border;
|
|
47
47
|
}, ";}&::-webkit-scrollbar{display:none;}");
|
|
48
48
|
const SHADOW_THRESHOLD = 10;
|
|
49
49
|
const Tabs = _ref7 => {
|
|
@@ -85,7 +85,7 @@ const TagInputContainer = /*#__PURE__*/_styled('div', {
|
|
|
85
85
|
colors
|
|
86
86
|
}
|
|
87
87
|
} = _ref4;
|
|
88
|
-
return colors.neutral.
|
|
88
|
+
return colors.neutral.background;
|
|
89
89
|
}, ";", _ref5 => {
|
|
90
90
|
let {
|
|
91
91
|
variant,
|
|
@@ -112,7 +112,7 @@ const StyledInput = /*#__PURE__*/_styled("input", {
|
|
|
112
112
|
colors
|
|
113
113
|
}
|
|
114
114
|
} = _ref7;
|
|
115
|
-
return colors.neutral.
|
|
115
|
+
return colors.neutral.background;
|
|
116
116
|
}, ";&::placeholder{color:", _ref8 => {
|
|
117
117
|
let {
|
|
118
118
|
theme: {
|