@taikai/rocket-kit 2.0.2 → 3.0.0-beta.2
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/atoms/button/index.d.ts +10 -9
- package/dist/atoms/button/stories/button.stories.d.ts +16 -9
- package/dist/atoms/button/styles.d.ts +2 -2
- package/dist/atoms/button/types.d.ts +2 -1
- package/dist/atoms/button-dropdown/index.d.ts +8 -4
- package/dist/atoms/button-dropdown/stories/button-dropdown.stories.d.ts +11 -2
- package/dist/atoms/button-link/index.d.ts +11 -10
- package/dist/atoms/button-link/stories/button-link.stories.d.ts +17 -12
- package/dist/atoms/button-link/styles.d.ts +2 -1
- package/dist/atoms/tag/index.d.ts +1 -0
- package/dist/atoms/tag/stories/tag.stories.d.ts +7 -0
- package/dist/atoms/tag/styles.d.ts +1 -0
- package/dist/atoms/tag/types.d.ts +2 -1
- package/dist/atoms/tag-number/index.d.ts +5 -2
- package/dist/atoms/tag-number/stories/tag-number.stories.d.ts +16 -0
- package/dist/atoms/tag-number/styles.d.ts +7 -1
- package/dist/ions/variables.d.ts +148 -2
- package/dist/molecules/table/index.d.ts +3 -0
- package/dist/molecules/table/stories/table.stories.d.ts +18 -0
- package/dist/molecules/table/styles.d.ts +4 -2
- package/dist/organisms/loading-state/index.d.ts +1 -4
- package/dist/organisms/loading-state/stories/loading-state.stories.d.ts +0 -3
- package/dist/organisms/loading-state/styles.d.ts +0 -1
- package/dist/rocket-kit.cjs.development.js +664 -671
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +351 -509
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +666 -673
- package/dist/rocket-kit.esm.js.map +1 -1
- package/dist/utils/hooks/use-color.d.ts +4 -0
- package/package.json +4 -4
- package/dist/utils/hooks/use-mouse-move-effect.d.ts +0 -5
package/dist/rocket-kit.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import Avatar from 'boring-avatars';
|
|
3
|
-
import _styled, {
|
|
3
|
+
import _styled, { css, keyframes } from 'styled-components';
|
|
4
4
|
import { darken, lighten, rem, transparentize, rgba, timingFunctions } from 'polished';
|
|
5
5
|
import Select$1, { components } from 'react-select';
|
|
6
6
|
import { Carousel } from 'react-responsive-carousel';
|
|
@@ -13,6 +13,150 @@ import ReactDOM from 'react-dom';
|
|
|
13
13
|
import Tabs from 'react-responsive-tabs';
|
|
14
14
|
|
|
15
15
|
const colors = {
|
|
16
|
+
// NEUTRALS
|
|
17
|
+
black: '#000000',
|
|
18
|
+
white: '#ffffff',
|
|
19
|
+
// GREY
|
|
20
|
+
grey50: '#F1F1F3',
|
|
21
|
+
grey100: '#E3E3E8',
|
|
22
|
+
grey150: '#D5D6DC',
|
|
23
|
+
grey200: '#C7C8D1',
|
|
24
|
+
grey300: '#ABACBA',
|
|
25
|
+
grey400: '#8F91A3',
|
|
26
|
+
grey500: '#73758C',
|
|
27
|
+
grey600: '#5C5E70',
|
|
28
|
+
grey700: '#454654',
|
|
29
|
+
grey800: '#2E2F38',
|
|
30
|
+
grey850: '#23232A',
|
|
31
|
+
grey900: '#17171C',
|
|
32
|
+
grey950: '#0C0C0E',
|
|
33
|
+
// BLUE
|
|
34
|
+
blue50: '#ECEDFC',
|
|
35
|
+
blue100: '#D9DCFA',
|
|
36
|
+
blue150: '#C6CAF7',
|
|
37
|
+
blue200: '#B3B9F4',
|
|
38
|
+
blue300: '#8E96EF',
|
|
39
|
+
blue400: '#6873E9',
|
|
40
|
+
blue500: '#4250E4',
|
|
41
|
+
blue600: '#3540B6',
|
|
42
|
+
blue700: '#283089',
|
|
43
|
+
blue800: '#1A205B',
|
|
44
|
+
blue850: '#141844',
|
|
45
|
+
blue900: '#0D102E',
|
|
46
|
+
blue950: '#070817',
|
|
47
|
+
// PURPLE
|
|
48
|
+
purple50: '#ECEAF6',
|
|
49
|
+
purple100: '#D9D4ED',
|
|
50
|
+
purple150: '#C7BFE4',
|
|
51
|
+
purple200: '#B4A9DB',
|
|
52
|
+
purple300: '#8E7FCA',
|
|
53
|
+
purple400: '#6954B8',
|
|
54
|
+
purple500: '#4329A6',
|
|
55
|
+
purple600: '#362185',
|
|
56
|
+
purple700: '#281964',
|
|
57
|
+
purple800: '#1B1042',
|
|
58
|
+
purple850: '#140C32',
|
|
59
|
+
purple900: '#0D0821',
|
|
60
|
+
purple950: '#070411',
|
|
61
|
+
// RED
|
|
62
|
+
red50: '#FDEEEE',
|
|
63
|
+
red100: '#FBDDDD',
|
|
64
|
+
red150: '#F9CDCD',
|
|
65
|
+
red200: '#F7BCBC',
|
|
66
|
+
red300: '#F39A9A',
|
|
67
|
+
red400: '#EF7979',
|
|
68
|
+
red500: '#EB5757',
|
|
69
|
+
red600: '#BC4646',
|
|
70
|
+
red700: '#8D3434',
|
|
71
|
+
red800: '#5E2323',
|
|
72
|
+
red850: '#471A1A',
|
|
73
|
+
red900: '#2F1111',
|
|
74
|
+
red950: '#180909',
|
|
75
|
+
// ORACLE
|
|
76
|
+
oracle50: '#F4F0FD',
|
|
77
|
+
oracle100: '#EAE1FB',
|
|
78
|
+
oracle150: '#DFD2FA',
|
|
79
|
+
oracle200: '#D5C3F8',
|
|
80
|
+
oracle300: '#C0A5F4',
|
|
81
|
+
oracle400: '#AB87F1',
|
|
82
|
+
oracle500: '#9669ED',
|
|
83
|
+
oracle600: '#7854BE',
|
|
84
|
+
oracle700: '#5A3F8E',
|
|
85
|
+
oracle800: '#3C2A5F',
|
|
86
|
+
oracle850: '#2D2047',
|
|
87
|
+
oracle900: '#1E152F',
|
|
88
|
+
oracle950: '#0F0B18',
|
|
89
|
+
// GREEN
|
|
90
|
+
green50: '#EBFCF7',
|
|
91
|
+
green100: '#D7F9EF',
|
|
92
|
+
green150: '#C2F6E6',
|
|
93
|
+
green200: '#AEF3DE',
|
|
94
|
+
green300: '#86ECCE',
|
|
95
|
+
green400: '#5DE6BD',
|
|
96
|
+
green500: '#35E0AD',
|
|
97
|
+
green600: '#2AB38A',
|
|
98
|
+
green700: '#208668',
|
|
99
|
+
green800: '#155A45',
|
|
100
|
+
green850: '#104334',
|
|
101
|
+
green900: '#0B2D23',
|
|
102
|
+
green950: '#051611',
|
|
103
|
+
// ORANGE
|
|
104
|
+
orange50: '#FFF0EA',
|
|
105
|
+
orange100: '#FFE1D5',
|
|
106
|
+
orange150: '#FFD2C0',
|
|
107
|
+
orange200: '#FFC3AB',
|
|
108
|
+
orange300: '#FFA680',
|
|
109
|
+
orange400: '#FF8856',
|
|
110
|
+
orange500: '#FF6A2C',
|
|
111
|
+
orange600: '#CC5523',
|
|
112
|
+
orange700: '#99401A',
|
|
113
|
+
orange800: '#662A12',
|
|
114
|
+
orange850: '#4D200D',
|
|
115
|
+
orange900: '#331509',
|
|
116
|
+
orange950: '#1A0B04',
|
|
117
|
+
// YELLOW
|
|
118
|
+
yellow50: '#FFFBEC',
|
|
119
|
+
yellow100: '#FFF7DA',
|
|
120
|
+
yellow150: '#FFF3C7',
|
|
121
|
+
yellow200: '#FFEFB5',
|
|
122
|
+
yellow300: '#FFE690',
|
|
123
|
+
yellow400: '#FFDE6B',
|
|
124
|
+
yellow500: '#FFD646',
|
|
125
|
+
yellow600: '#CCAB38',
|
|
126
|
+
yellow700: '#99802A',
|
|
127
|
+
yellow800: '#66561C',
|
|
128
|
+
yellow850: '#4D4015',
|
|
129
|
+
yellow900: '#332B0E',
|
|
130
|
+
yellow950: '#1A1507',
|
|
131
|
+
// PALE BLUE
|
|
132
|
+
paleBlue50: '#F3F9FD',
|
|
133
|
+
paleBlue100: '#E7F4FB',
|
|
134
|
+
paleBlue150: '#DBEEF9',
|
|
135
|
+
paleBlue200: '#CFE9F7',
|
|
136
|
+
paleBlue300: '#B7DDF4',
|
|
137
|
+
paleBlue400: '#9FD2F0',
|
|
138
|
+
paleBlue500: '#87C7EC',
|
|
139
|
+
paleBlue600: '#6C9FBD',
|
|
140
|
+
paleBlue700: '#51778E',
|
|
141
|
+
paleBlue800: '#36505E',
|
|
142
|
+
paleBlue850: '#293C47',
|
|
143
|
+
paleBlue900: '#1B282F',
|
|
144
|
+
paleBlue950: '#0E1418',
|
|
145
|
+
// PALE ORANGE
|
|
146
|
+
paleOrange50: '#FDF4EC',
|
|
147
|
+
paleOrange100: '#FCE9D9',
|
|
148
|
+
paleOrange150: '#FADEC6',
|
|
149
|
+
paleOrange200: '#F8D3B3',
|
|
150
|
+
paleOrange300: '#F5BE8C',
|
|
151
|
+
paleOrange400: '#F1A866',
|
|
152
|
+
paleOrange500: '#EE9240',
|
|
153
|
+
paleOrange600: '#BE7533',
|
|
154
|
+
paleOrange700: '#8F5826',
|
|
155
|
+
paleOrange800: '#5F3A1A',
|
|
156
|
+
paleOrange850: '#472C13',
|
|
157
|
+
paleOrange900: '#301D0D',
|
|
158
|
+
paleOrange950: '#180F06',
|
|
159
|
+
// OLD
|
|
16
160
|
normal: '#000000',
|
|
17
161
|
light: '#ffffff',
|
|
18
162
|
blue: '#4250e4',
|
|
@@ -22,7 +166,6 @@ const colors = {
|
|
|
22
166
|
red: '#ef5766',
|
|
23
167
|
lightRed: /*#__PURE__*/lighten(0.25, '#ef5766'),
|
|
24
168
|
darkRed: /*#__PURE__*/darken(0.19, '#ef5766'),
|
|
25
|
-
purple: '#4329a6',
|
|
26
169
|
lightPurple: /*#__PURE__*/lighten(0.4, '#4329a6'),
|
|
27
170
|
darkPurple: /*#__PURE__*/darken(0.15, '#4329a6'),
|
|
28
171
|
green: '#56cad7',
|
|
@@ -32,10 +175,25 @@ const colors = {
|
|
|
32
175
|
lightGrey: '#c4c7d3',
|
|
33
176
|
darkGrey: /*#__PURE__*/darken(0.1, '#939393')
|
|
34
177
|
};
|
|
35
|
-
const
|
|
178
|
+
const colorHues = [50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950];
|
|
179
|
+
const typography = {
|
|
180
|
+
defaultFont: `"Space Grotesk", Verdana, Arial, Helvetica, sans-serif`,
|
|
181
|
+
defaultSize: '16px',
|
|
36
182
|
regular: 400,
|
|
37
183
|
medium: 500,
|
|
38
|
-
bold: 700
|
|
184
|
+
bold: 700,
|
|
185
|
+
letterSpacing: /*#__PURE__*/rem('1px')
|
|
186
|
+
};
|
|
187
|
+
const button = {
|
|
188
|
+
height: /*#__PURE__*/rem('42px'),
|
|
189
|
+
borderWidth: /*#__PURE__*/rem('1px'),
|
|
190
|
+
borderRadius: /*#__PURE__*/rem('8px'),
|
|
191
|
+
padding: /*#__PURE__*/rem('28px'),
|
|
192
|
+
iconSpacing: /*#__PURE__*/rem('8px'),
|
|
193
|
+
iconSize: /*#__PURE__*/rem('16px')
|
|
194
|
+
};
|
|
195
|
+
const misc = {
|
|
196
|
+
transitionDuration: '0.3s'
|
|
39
197
|
};
|
|
40
198
|
|
|
41
199
|
const {
|
|
@@ -74,193 +232,96 @@ const AvatarImage = props => {
|
|
|
74
232
|
}));
|
|
75
233
|
};
|
|
76
234
|
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const element = document.querySelector(querySelector);
|
|
84
|
-
if (!element) return;
|
|
85
|
-
element.addEventListener('mousemove', event => {
|
|
86
|
-
var _ref, _ref2;
|
|
87
|
-
|
|
88
|
-
const target = event.target;
|
|
89
|
-
const x = (_ref = event.pageX - (target == null ? void 0 : target.offsetLeft)) != null ? _ref : 0;
|
|
90
|
-
const y = (_ref2 = event.pageY - (target == null ? void 0 : target.offsetTop)) != null ? _ref2 : 0;
|
|
91
|
-
element.style.setProperty('--x', `${x}px`);
|
|
92
|
-
element.style.setProperty('--y', `${y}px`);
|
|
93
|
-
});
|
|
94
|
-
}, [querySelector]);
|
|
95
|
-
};
|
|
235
|
+
const useColor = value => {
|
|
236
|
+
// @ts-ignore
|
|
237
|
+
const color = colors == null ? void 0 : colors[value];
|
|
238
|
+
const c = value.split(/([0-9]+)/).filter(Boolean);
|
|
239
|
+
const tint = c[0];
|
|
240
|
+
const hue = parseFloat(c[1]);
|
|
96
241
|
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
mouse: '(min-width: 538px) and (min-height: 720px)'
|
|
242
|
+
const getHoverColor = (tint, hue) => {
|
|
243
|
+
const indexCurrentHue = colorHues.indexOf(hue);
|
|
244
|
+
const indexIsLast = indexCurrentHue === colorHues.length - 1;
|
|
245
|
+
const indexHoverHue = indexIsLast ? indexCurrentHue - 1 : indexCurrentHue + 1; // @ts-ignore
|
|
246
|
+
|
|
247
|
+
const hoverColor = colors == null ? void 0 : colors[indexCurrentHue > -1 ? tint + colorHues[indexHoverHue] : tint];
|
|
248
|
+
return hoverColor != null ? hoverColor : colors.black;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
const hover = getHoverColor(tint, hue);
|
|
252
|
+
return {
|
|
253
|
+
color,
|
|
254
|
+
hover
|
|
255
|
+
};
|
|
112
256
|
};
|
|
113
257
|
|
|
114
|
-
const {
|
|
115
|
-
normal,
|
|
116
|
-
light,
|
|
117
|
-
grey: grey$1,
|
|
118
|
-
lightGrey,
|
|
119
|
-
darkGrey,
|
|
120
|
-
green,
|
|
121
|
-
darkGreen,
|
|
122
|
-
orange,
|
|
123
|
-
darkOrange,
|
|
124
|
-
red,
|
|
125
|
-
darkRed,
|
|
126
|
-
purple,
|
|
127
|
-
darkPurple,
|
|
128
|
-
blue,
|
|
129
|
-
darkBlue
|
|
130
|
-
} = colors;
|
|
131
|
-
const {
|
|
132
|
-
bold,
|
|
133
|
-
medium
|
|
134
|
-
} = fontWeight;
|
|
135
|
-
const pulseKeyframes = keyframes`
|
|
136
|
-
0% {
|
|
137
|
-
box-shadow: 0 0 ${/*#__PURE__*/rem('10px')} 0 rgba(40, 40, 40, 0.3);
|
|
138
|
-
}
|
|
139
|
-
50% {
|
|
140
|
-
box-shadow: 0 0 ${/*#__PURE__*/rem('10px')} 0 rgba(40, 40, 40, 0);
|
|
141
|
-
}
|
|
142
|
-
100% {
|
|
143
|
-
box-shadow: 0 0 ${/*#__PURE__*/rem('10px')} 0 rgba(40, 40, 40, 0.3);
|
|
144
|
-
}
|
|
145
|
-
`;
|
|
146
258
|
const ButtonWrapper = /*#__PURE__*/_styled.button.withConfig({
|
|
147
259
|
displayName: "styles__ButtonWrapper",
|
|
148
260
|
componentId: "baestp-0"
|
|
149
|
-
})(["--
|
|
150
|
-
|
|
151
|
-
--hover: ${darkGreen};
|
|
152
|
-
`, props => props.color === 'orange' && css`
|
|
153
|
-
--button: ${orange};
|
|
154
|
-
--hover: ${darkOrange};
|
|
155
|
-
`, props => props.color === 'red' && css`
|
|
156
|
-
--button: ${red};
|
|
157
|
-
--hover: ${darkRed};
|
|
158
|
-
`, props => props.color === 'grey' && css`
|
|
159
|
-
--button: ${grey$1};
|
|
160
|
-
--hover: ${darkGrey};
|
|
161
|
-
`, props => props.color === 'blue' && css`
|
|
162
|
-
--button: ${blue};
|
|
163
|
-
--hover: ${darkBlue};
|
|
164
|
-
`, props => props.color === 'purple' && css`
|
|
165
|
-
--button: ${purple};
|
|
166
|
-
--hover: ${darkPurple};
|
|
167
|
-
`, props => props.color === 'white' && css`
|
|
168
|
-
--button: ${light};
|
|
169
|
-
--txt: ${normal};
|
|
170
|
-
--hover: ${lightGrey};
|
|
171
|
-
`, props => props.color === 'dark' && css`
|
|
172
|
-
--button: ${normal};
|
|
173
|
-
--hover: ${darkGrey};
|
|
174
|
-
`, props => props.color === 'pulse' && css`
|
|
175
|
-
--button: ${red};
|
|
176
|
-
--hover: ${darkRed};
|
|
177
|
-
animation: ${pulseKeyframes} 1s infinite;
|
|
178
|
-
`, props => props.color === 'magic' && css`
|
|
179
|
-
--button: ${light};
|
|
180
|
-
--hover: ${lightGrey};
|
|
181
|
-
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? props.circle ? rem('32px') : 'min-content' : rem('32px'), /*#__PURE__*/rem('32px'), props => props.value ? props.circle ? 0 : `0 ${rem('20px')}` : 0, device.l, props => props.value ? rem('100px') : rem('32px'), props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? '5px' : 0, props => props.iconPosition === 'left' ? '5px' : 0, props => props.variant === 'solid' ? '' : 'var(--button)', medium, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('20px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.color === 'magic' && css`
|
|
182
|
-
position: relative;
|
|
183
|
-
background-image: linear-gradient(to bottom right, #ef5867, #5031a8);
|
|
184
|
-
height: ${rem('60px')};
|
|
185
|
-
padding: 0 ${rem('40px')};
|
|
186
|
-
overflow: hidden;
|
|
187
|
-
|
|
188
|
-
span {
|
|
189
|
-
font-size: 1rem;
|
|
190
|
-
font-weight: ${bold};
|
|
191
|
-
}
|
|
261
|
+
})(["--bg:", ";--txt:", ";--hover:", ";margin:0;border-width:", ";border-style:solid;border-color:var(--bg);border-radius:", ";background-color:", ";width:min-content;min-width:", ";height:", ";display:flex;justify-content:center;align-items:center;padding:", ";text-transform:uppercase;white-space:nowrap;text-decoration:none;transition-duration:", ";cursor:pointer;&:hover{border-color:", ";background-color:", ";span{color:", ";}svg{fill:", ";}}&:disabled{cursor:inherit;opacity:0.5;&:hover{background-color:", ";pointer-events:none;}}> *:not(:last-child){margin-left:", ";margin-right:", ";}.spinner{border-top-color:", ";}span{position:relative;font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";color:", ";pointer-events:none;transition-duration:", ";order:", ";}svg{order:", ";width:", ";height:", ";fill:", ";transition:", ";}"], props => {
|
|
262
|
+
var _props$color;
|
|
192
263
|
|
|
193
|
-
|
|
194
|
-
|
|
264
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
265
|
+
}, props => {
|
|
266
|
+
var _props$txtColor;
|
|
195
267
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
top: var(--y);
|
|
200
|
-
width: var(--size);
|
|
201
|
-
height: var(--size);
|
|
202
|
-
background: radial-gradient(circle closest-side, #5031a8, transparent);
|
|
203
|
-
-webkit-transform: translate(-50%, -50%);
|
|
204
|
-
transform: translate(-50%, -50%);
|
|
205
|
-
-webkit-transition: width 0.2s ease, height 0.2s ease;
|
|
206
|
-
transition: width 0.2s ease, height 0.2s ease;
|
|
207
|
-
}
|
|
268
|
+
return useColor((_props$txtColor = props.txtColor) != null ? _props$txtColor : 'black').color;
|
|
269
|
+
}, props => {
|
|
270
|
+
var _props$color2;
|
|
208
271
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
`);
|
|
272
|
+
return props.color === 'white' ? colors.grey100 : props.color === 'black' ? colors.grey900 : useColor((_props$color2 = props.color) != null ? _props$color2 : 'black').hover;
|
|
273
|
+
}, props => props.variant === 'outline' ? button.borderWidth : 0, props => props.variant === 'text' ? 0 : props.rounded ? '999px' : button.borderRadius, props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', props => props.value ? rem('80px') : rem('42px'), button.height, props => props.value ? `0 ${button.padding}` : 0, misc.transitionDuration, props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', props => props.iconPosition === 'right' ? button.iconSpacing : 0, props => props.iconPosition === 'left' ? button.iconSpacing : 0, props => props.variant === 'solid' ? '' : 'var(--button)', /*#__PURE__*/rem(typography.defaultSize), typography.medium, typography.letterSpacing, /*#__PURE__*/rem(typography.defaultSize), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration, props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, button.iconSize, button.iconSize, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration);
|
|
213
274
|
|
|
214
275
|
const Button = props => {
|
|
215
276
|
const {
|
|
216
277
|
variant = 'solid',
|
|
217
|
-
|
|
218
|
-
color = '
|
|
219
|
-
|
|
278
|
+
rounded = false,
|
|
279
|
+
color = 'purple500',
|
|
280
|
+
txtColor = 'white',
|
|
281
|
+
type,
|
|
220
282
|
className = 'button',
|
|
221
|
-
|
|
222
|
-
ariaLabel,
|
|
283
|
+
style,
|
|
223
284
|
action = () => {},
|
|
224
|
-
|
|
225
|
-
loading = false,
|
|
226
|
-
dataTestId,
|
|
227
|
-
eventId,
|
|
228
|
-
icon = '',
|
|
285
|
+
value = '',
|
|
229
286
|
iconPosition = 'left',
|
|
230
|
-
|
|
231
|
-
|
|
287
|
+
icon = '',
|
|
288
|
+
loading = false,
|
|
289
|
+
dataTestId = '',
|
|
290
|
+
eventId = '',
|
|
291
|
+
ariaLabel,
|
|
292
|
+
ariaHidden = false,
|
|
293
|
+
disabled = false
|
|
232
294
|
} = props;
|
|
233
|
-
useMouseMoveEffect({
|
|
234
|
-
querySelector
|
|
235
|
-
});
|
|
236
295
|
return /*#__PURE__*/React.createElement(ButtonWrapper, {
|
|
237
296
|
variant: variant,
|
|
297
|
+
rounded: rounded,
|
|
238
298
|
color: color,
|
|
239
|
-
|
|
299
|
+
txtColor: txtColor,
|
|
300
|
+
type: type,
|
|
240
301
|
className: className,
|
|
241
|
-
|
|
242
|
-
"aria-label": ariaLabel,
|
|
302
|
+
style: style,
|
|
243
303
|
onClick: action,
|
|
244
|
-
|
|
304
|
+
value: value,
|
|
305
|
+
iconPosition: iconPosition,
|
|
245
306
|
"data-testid": dataTestId,
|
|
246
307
|
"data-event": eventId,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
308
|
+
"aria-label": ariaLabel,
|
|
309
|
+
"aria-hidden": ariaHidden,
|
|
310
|
+
disabled: disabled || loading
|
|
250
311
|
}, loading ? /*#__PURE__*/React.createElement(Spinner, null) : icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
251
312
|
icon: icon
|
|
252
313
|
}) : null, value && /*#__PURE__*/React.createElement("span", null, value));
|
|
253
314
|
};
|
|
254
315
|
|
|
255
316
|
const {
|
|
256
|
-
normal
|
|
257
|
-
light
|
|
258
|
-
lightGrey
|
|
317
|
+
normal,
|
|
318
|
+
light,
|
|
319
|
+
lightGrey
|
|
259
320
|
} = colors;
|
|
260
321
|
const ActionsMenuStyle = /*#__PURE__*/_styled.div.withConfig({
|
|
261
322
|
displayName: "styles__ActionsMenuStyle",
|
|
262
323
|
componentId: "sc-1j5ogfi-0"
|
|
263
|
-
})(["position:relative;ul{position:absolute;opacity:0;top:0;margin:0;border:", " solid ", ";border-radius:", ";background-color:", ";min-width:", ";max-width:", ";height:0;max-height:none;padding:0;-moz-box-shadow:0 0 ", " 0 ", ";-webkit-box-shadow:0 0 ", " 0 ", ";box-shadow:0 0 ", " 0 ", ";overflow-y:hidden;z-index:1;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;transition-duration:0.25s;&.isOpen{opacity:1;height:calc(", " * ", " + 2px);max-height:", ";}li{list-style:none;min-height:", ";display:flex;transition-duration:0.3s;&:hover{background-color:", ";cursor:pointer;}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border-radius:0 0 ", " ", ";}a{width:100%;display:flex;align-items:center;padding:0 ", ";color:", ";text-decoration:none;white-space:nowrap;span{display:table-cell;overflow:hidden;text-overflow:ellipsis;}}}}"], /*#__PURE__*/rem('1px'), lightGrey
|
|
324
|
+
})(["position:relative;ul{position:absolute;opacity:0;top:0;margin:0;border:", " solid ", ";border-radius:", ";background-color:", ";min-width:", ";max-width:", ";height:0;max-height:none;padding:0;-moz-box-shadow:0 0 ", " 0 ", ";-webkit-box-shadow:0 0 ", " 0 ", ";box-shadow:0 0 ", " 0 ", ";overflow-y:hidden;z-index:1;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;transition-duration:0.25s;&.isOpen{opacity:1;height:calc(", " * ", " + 2px);max-height:", ";}li{list-style:none;min-height:", ";display:flex;transition-duration:0.3s;&:hover{background-color:", ";cursor:pointer;}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border-radius:0 0 ", " ", ";}a{width:100%;display:flex;align-items:center;padding:0 ", ";color:", ";text-decoration:none;white-space:nowrap;span{display:table-cell;overflow:hidden;text-overflow:ellipsis;}}}}"], /*#__PURE__*/rem('1px'), lightGrey, /*#__PURE__*/rem('4px'), light, /*#__PURE__*/rem('200px'), /*#__PURE__*/rem('250px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/lighten(0.7, normal), /*#__PURE__*/rem('15px'), /*#__PURE__*/lighten(0.7, normal), /*#__PURE__*/rem('15px'), /*#__PURE__*/lighten(0.7, normal), /*#__PURE__*/rem('45px'), props => props.visibleActions, /*#__PURE__*/rem('1280px'), /*#__PURE__*/rem('45px'), lightGrey, /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('20px'), normal);
|
|
264
325
|
|
|
265
326
|
function useVisible(initialIsVisible) {
|
|
266
327
|
const [isVisible, setIsVisible] = useState(initialIsVisible);
|
|
@@ -289,15 +350,20 @@ function useVisible(initialIsVisible) {
|
|
|
289
350
|
|
|
290
351
|
const ButtonDropdown = props => {
|
|
291
352
|
const {
|
|
292
|
-
className = 'button-dropdown',
|
|
293
353
|
variant = 'solid',
|
|
294
|
-
|
|
354
|
+
rounded = false,
|
|
355
|
+
color = 'purple500',
|
|
356
|
+
txtColor = 'white',
|
|
357
|
+
className = 'button-dropdown',
|
|
358
|
+
style,
|
|
359
|
+
actions = [],
|
|
295
360
|
value = '',
|
|
296
|
-
icon = '
|
|
361
|
+
icon = 'add',
|
|
362
|
+
dataTestId = 'action-button-dropdown',
|
|
363
|
+
eventId = '',
|
|
297
364
|
ariaLabel = '',
|
|
298
|
-
|
|
365
|
+
ariaHidden = false,
|
|
299
366
|
data = null,
|
|
300
|
-
dataTestId = 'action-button-dropdown',
|
|
301
367
|
startsOpen = false,
|
|
302
368
|
disabled = false
|
|
303
369
|
} = props;
|
|
@@ -313,20 +379,25 @@ const ButtonDropdown = props => {
|
|
|
313
379
|
if (visibleActions.length === 0) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
314
380
|
return /*#__PURE__*/React.createElement(ActionsMenuStyle, {
|
|
315
381
|
className: className,
|
|
382
|
+
style: style,
|
|
316
383
|
visibleActions: visibleActions.length,
|
|
317
384
|
ref: ref
|
|
318
385
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
319
386
|
variant: variant,
|
|
387
|
+
rounded: rounded,
|
|
320
388
|
color: color,
|
|
321
|
-
|
|
322
|
-
icon: icon,
|
|
323
|
-
iconPosition: "right",
|
|
324
|
-
ariaLabel: ariaLabel,
|
|
389
|
+
txtColor: txtColor,
|
|
325
390
|
action: evt => {
|
|
326
391
|
evt.preventDefault();
|
|
327
392
|
setIsVisible(!isVisible);
|
|
328
393
|
},
|
|
329
|
-
|
|
394
|
+
value: value,
|
|
395
|
+
iconPosition: "right",
|
|
396
|
+
icon: icon,
|
|
397
|
+
"data-testid": dataTestId,
|
|
398
|
+
"data-event": eventId,
|
|
399
|
+
ariaLabel: ariaLabel,
|
|
400
|
+
"aria-hidden": ariaHidden,
|
|
330
401
|
disabled: disabled
|
|
331
402
|
}), /*#__PURE__*/React.createElement("ul", {
|
|
332
403
|
"data-testid": 'ul-action-menu',
|
|
@@ -348,111 +419,42 @@ const ButtonDropdown = props => {
|
|
|
348
419
|
}, /*#__PURE__*/React.createElement("span", null, value))))));
|
|
349
420
|
};
|
|
350
421
|
|
|
351
|
-
const {
|
|
352
|
-
normal: normal$2,
|
|
353
|
-
light: light$2,
|
|
354
|
-
grey: grey$2,
|
|
355
|
-
lightGrey: lightGrey$2,
|
|
356
|
-
darkGrey: darkGrey$1,
|
|
357
|
-
green: green$1,
|
|
358
|
-
darkGreen: darkGreen$1,
|
|
359
|
-
orange: orange$1,
|
|
360
|
-
darkOrange: darkOrange$1,
|
|
361
|
-
red: red$1,
|
|
362
|
-
darkRed: darkRed$1,
|
|
363
|
-
purple: purple$1,
|
|
364
|
-
darkPurple: darkPurple$1,
|
|
365
|
-
blue: blue$1,
|
|
366
|
-
darkBlue: darkBlue$1
|
|
367
|
-
} = colors;
|
|
368
|
-
const {
|
|
369
|
-
bold: bold$1,
|
|
370
|
-
medium: medium$1
|
|
371
|
-
} = fontWeight;
|
|
372
422
|
const ButtonLinkStyle = /*#__PURE__*/_styled.a.withConfig({
|
|
373
423
|
displayName: "styles__ButtonLinkStyle",
|
|
374
424
|
componentId: "clge7v-0"
|
|
375
|
-
})(["--
|
|
376
|
-
|
|
377
|
-
--hover: ${darkGreen$1};
|
|
378
|
-
`, props => props.color === 'orange' && css`
|
|
379
|
-
--button: ${orange$1};
|
|
380
|
-
--hover: ${darkOrange$1};
|
|
381
|
-
`, props => props.color === 'red' && css`
|
|
382
|
-
--button: ${red$1};
|
|
383
|
-
--hover: ${darkRed$1};
|
|
384
|
-
`, props => props.color === 'grey' && css`
|
|
385
|
-
--button: ${grey$2};
|
|
386
|
-
--hover: ${darkGrey$1};
|
|
387
|
-
`, props => props.color === 'purple' && css`
|
|
388
|
-
--button: ${purple$1};
|
|
389
|
-
--hover: ${darkPurple$1};
|
|
390
|
-
`, props => props.color === 'white' && css`
|
|
391
|
-
--button: ${light$2};
|
|
392
|
-
--txt: ${normal$2};
|
|
393
|
-
--hover: ${lightGrey$2};
|
|
394
|
-
`, props => props.color === 'dark' && css`
|
|
395
|
-
--button: ${normal$2};
|
|
396
|
-
--hover: ${darkGrey$1};
|
|
397
|
-
`, props => props.color === 'blue' && css`
|
|
398
|
-
--button: ${blue$1};
|
|
399
|
-
--hover: ${darkBlue$1};
|
|
400
|
-
`, props => props.color === 'pulse' && css`
|
|
401
|
-
--button: ${red$1};
|
|
402
|
-
--hover: ${darkRed$1};
|
|
403
|
-
animation: ${pulseKeyframes} 1s infinite;
|
|
404
|
-
`, props => props.color === 'magic' && css`
|
|
405
|
-
--button: ${light$2};
|
|
406
|
-
--hover: ${lightGrey$2};
|
|
407
|
-
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? rem('80px') : rem('32px'), /*#__PURE__*/rem('32px'), props => props.value ? `0 ${rem('20px')}` : 0, device.l, props => props.value ? rem('100px') : rem('32px'), props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? '5px' : 0, props => props.iconPosition === 'left' ? '5px' : 0, medium$1, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('20px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.color === 'magic' && css`
|
|
408
|
-
position: relative;
|
|
409
|
-
background-image: linear-gradient(to bottom right, #ef5867, #5031a8);
|
|
410
|
-
height: ${rem('60px')};
|
|
411
|
-
padding: 0 ${rem('40px')};
|
|
412
|
-
overflow: hidden;
|
|
413
|
-
|
|
414
|
-
span {
|
|
415
|
-
font-size: 1rem;
|
|
416
|
-
font-weight: ${bold$1};
|
|
417
|
-
}
|
|
425
|
+
})(["--bg:", ";--txt:", ";--hover:", ";border-width:", ";border-style:solid;border-color:var(--bg);border-radius:", ";background-color:", ";width:min-content;min-width:", ";height:", ";display:flex;justify-content:center;align-items:center;padding:", ";text-transform:uppercase;white-space:nowrap;text-decoration:none;transition-duration:", ";cursor:pointer;&:hover{border-color:", ";background-color:", ";span{color:", ";}svg{fill:", ";}}> *:not(:last-child){margin-left:", ";margin-right:", ";}span{position:relative;font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";color:", ";pointer-events:none;transition-duration:", ";order:", ";}svg{order:", ";width:", ";height:", ";fill:", ";transition:", ";}"], props => {
|
|
426
|
+
var _props$color;
|
|
418
427
|
|
|
419
|
-
|
|
420
|
-
|
|
428
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
429
|
+
}, props => {
|
|
430
|
+
var _props$txtColor;
|
|
421
431
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
top: var(--y);
|
|
426
|
-
width: var(--size);
|
|
427
|
-
height: var(--size);
|
|
428
|
-
background: radial-gradient(circle closest-side, #5031a8, transparent);
|
|
429
|
-
-webkit-transform: translate(-50%, -50%);
|
|
430
|
-
transform: translate(-50%, -50%);
|
|
431
|
-
-webkit-transition: width 0.2s ease, height 0.2s ease;
|
|
432
|
-
transition: width 0.2s ease, height 0.2s ease;
|
|
433
|
-
}
|
|
432
|
+
return useColor((_props$txtColor = props.txtColor) != null ? _props$txtColor : 'black').color;
|
|
433
|
+
}, props => {
|
|
434
|
+
var _props$color2;
|
|
434
435
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
`);
|
|
436
|
+
return props.color === 'white' ? colors.grey100 : props.color === 'black' ? colors.grey900 : useColor((_props$color2 = props.color) != null ? _props$color2 : 'black').hover;
|
|
437
|
+
}, props => props.variant === 'outline' ? button.borderWidth : 0, props => props.variant === 'text' ? 0 : props.rounded ? '999px' : button.borderRadius, props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', props => props.value ? rem('80px') : rem('42px'), button.height, props => props.value ? `0 ${button.padding}` : 0, misc.transitionDuration, props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? button.iconSpacing : 0, props => props.iconPosition === 'left' ? button.iconSpacing : 0, /*#__PURE__*/rem(typography.defaultSize), typography.medium, typography.letterSpacing, /*#__PURE__*/rem(typography.defaultSize), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration, props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, button.iconSize, button.iconSize, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)', misc.transitionDuration);
|
|
439
438
|
|
|
440
439
|
const ButtonLink = props => {
|
|
441
440
|
const {
|
|
442
441
|
variant = 'solid',
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
rounded = false,
|
|
443
|
+
color = 'purple500',
|
|
444
|
+
txtColor = 'white',
|
|
445
445
|
className = 'button-link',
|
|
446
|
+
style,
|
|
447
|
+
action = () => {},
|
|
446
448
|
url,
|
|
447
449
|
blank = false,
|
|
448
|
-
|
|
449
|
-
iconPosition = 'left',
|
|
450
|
+
rel = undefined,
|
|
450
451
|
value = '',
|
|
451
|
-
|
|
452
|
+
iconPosition = 'left',
|
|
453
|
+
icon = '',
|
|
452
454
|
dataTestId = '',
|
|
453
455
|
eventId = '',
|
|
454
|
-
|
|
455
|
-
|
|
456
|
+
ariaLabel = '',
|
|
457
|
+
ariaHidden = false
|
|
456
458
|
} = props;
|
|
457
459
|
|
|
458
460
|
const getRelationshipAttributes = () => {
|
|
@@ -460,41 +462,42 @@ const ButtonLink = props => {
|
|
|
460
462
|
return blank ? 'noopener noreferrer' : '';
|
|
461
463
|
};
|
|
462
464
|
|
|
463
|
-
useMouseMoveEffect({
|
|
464
|
-
querySelector
|
|
465
|
-
});
|
|
466
465
|
return /*#__PURE__*/React.createElement(ButtonLinkStyle, {
|
|
467
466
|
variant: variant,
|
|
467
|
+
rounded: rounded,
|
|
468
468
|
color: color,
|
|
469
|
+
txtColor: txtColor,
|
|
469
470
|
className: `button ${className}`,
|
|
471
|
+
style: style,
|
|
472
|
+
onClick: action,
|
|
470
473
|
href: url,
|
|
471
474
|
target: blank ? '_blank' : '',
|
|
475
|
+
rel: getRelationshipAttributes(),
|
|
472
476
|
value: value,
|
|
473
|
-
|
|
477
|
+
iconPosition: iconPosition,
|
|
474
478
|
"data-testid": dataTestId,
|
|
475
479
|
"data-event": eventId,
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
rel: getRelationshipAttributes()
|
|
480
|
+
"aria-label": ariaLabel,
|
|
481
|
+
"aria-hidden": ariaHidden
|
|
479
482
|
}, icon && /*#__PURE__*/React.createElement(Icon, {
|
|
480
483
|
icon: icon
|
|
481
484
|
}), value && /*#__PURE__*/React.createElement("span", null, value));
|
|
482
485
|
};
|
|
483
486
|
|
|
484
487
|
const {
|
|
485
|
-
normal: normal$
|
|
486
|
-
light: light$
|
|
487
|
-
green
|
|
488
|
-
darkGreen
|
|
489
|
-
red
|
|
490
|
-
darkRed
|
|
491
|
-
grey: grey$
|
|
492
|
-
lightGrey: lightGrey$
|
|
488
|
+
normal: normal$1,
|
|
489
|
+
light: light$1,
|
|
490
|
+
green,
|
|
491
|
+
darkGreen,
|
|
492
|
+
red,
|
|
493
|
+
darkRed,
|
|
494
|
+
grey: grey$1,
|
|
495
|
+
lightGrey: lightGrey$1
|
|
493
496
|
} = colors;
|
|
494
497
|
const CheckboxWrapper = /*#__PURE__*/_styled.label.withConfig({
|
|
495
498
|
displayName: "styles__CheckboxWrapper",
|
|
496
499
|
componentId: "w5t014-0"
|
|
497
|
-
})(["display:flex;position:relative;padding-left:0;cursor:", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;&:hover input:not(:disabled) ~ span{border-color:", ";}span{color:", ";border-color:", ";}"], props => props.disabled ? 'auto' : 'pointer', props => props.error ? darkRed
|
|
500
|
+
})(["display:flex;position:relative;padding-left:0;cursor:", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;&:hover input:not(:disabled) ~ span{border-color:", ";}span{color:", ";border-color:", ";}"], props => props.disabled ? 'auto' : 'pointer', props => props.error ? darkRed : normal$1, props => props.disabled ? grey$1 : props.error ? red : null, props => props.error ? red : null);
|
|
498
501
|
const CheckboxLabel = /*#__PURE__*/_styled.span.withConfig({
|
|
499
502
|
displayName: "styles__CheckboxLabel",
|
|
500
503
|
componentId: "w5t014-1"
|
|
@@ -502,11 +505,11 @@ const CheckboxLabel = /*#__PURE__*/_styled.span.withConfig({
|
|
|
502
505
|
const CheckboxInput = /*#__PURE__*/_styled.input.withConfig({
|
|
503
506
|
displayName: "styles__CheckboxInput",
|
|
504
507
|
componentId: "w5t014-2"
|
|
505
|
-
})(["position:absolute;left:0;opacity:0;cursor:pointer;&:checked:not(:disabled) ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){border-color:", ";&:checked ~ span{border-color:", ";}}"], props => props.error ? red
|
|
508
|
+
})(["position:absolute;left:0;opacity:0;cursor:pointer;&:checked:not(:disabled)[aria-checked='true'] ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled[aria-checked='true'] ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){border-color:", ";&:checked ~ span{border-color:", ";}}"], props => props.error ? red : green, props => props.error ? darkRed : darkGreen, lightGrey$1, grey$1, lightGrey$1, light$1, props => props.error ? darkRed : darkGreen, props => props.error ? darkRed : darkGreen);
|
|
506
509
|
const Checkmark = /*#__PURE__*/_styled.span.withConfig({
|
|
507
510
|
displayName: "styles__Checkmark",
|
|
508
511
|
componentId: "w5t014-3"
|
|
509
|
-
})(["position:absolute;top:0;left:0;border:", " solid ", ";border-radius:100%;width:", ";height:", ";transition-duration:0.3s;&:after{content:'';position:absolute;display:none;top:", ";left:", ";width:", ";height:", ";border:solid ", ";border-width:0 ", " ", " 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}"], /*#__PURE__*/rem('2px'), props => props.error ? red
|
|
512
|
+
})(["position:absolute;top:0;left:0;border:", " solid ", ";border-radius:100%;width:", ";height:", ";transition-duration:0.3s;&:after{content:'';position:absolute;display:none;top:", ";left:", ";width:", ";height:", ";border:solid ", ";border-width:0 ", " ", " 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}"], /*#__PURE__*/rem('2px'), props => props.error ? red : grey$1, /*#__PURE__*/rem('24px'), /*#__PURE__*/rem('24px'), /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('9px'), light$1, /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('3px'));
|
|
510
513
|
|
|
511
514
|
const Checkbox = props => {
|
|
512
515
|
const {
|
|
@@ -540,16 +543,16 @@ const Checkbox = props => {
|
|
|
540
543
|
};
|
|
541
544
|
|
|
542
545
|
const {
|
|
543
|
-
light: light$
|
|
544
|
-
green: green$
|
|
545
|
-
darkGreen: darkGreen$
|
|
546
|
-
grey: grey$
|
|
547
|
-
lightGrey: lightGrey$
|
|
546
|
+
light: light$2,
|
|
547
|
+
green: green$1,
|
|
548
|
+
darkGreen: darkGreen$1,
|
|
549
|
+
grey: grey$2,
|
|
550
|
+
lightGrey: lightGrey$2
|
|
548
551
|
} = colors;
|
|
549
552
|
const CheckboxWrapper$1 = /*#__PURE__*/_styled.label.withConfig({
|
|
550
553
|
displayName: "styles__CheckboxWrapper",
|
|
551
554
|
componentId: "itly0z-0"
|
|
552
|
-
})(["border:", " solid ", ";border-radius:", ";background-color:", ";height:", ";display:flex;align-items:center;position:relative;cursor:", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition-duration:0.3s;&:hover input:not(:disabled) ~ span{border-color:", ";}&:hover{background-color:", ";}span{color:", ";transition-duration:0.3s;}"], /*#__PURE__*/rem('3px'), props => props.disabled ? grey$
|
|
555
|
+
})(["border:", " solid ", ";border-radius:", ";background-color:", ";height:", ";display:flex;align-items:center;position:relative;cursor:", ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition-duration:0.3s;&:hover input:not(:disabled) ~ span{border-color:", ";}&:hover{background-color:", ";}span{color:", ";transition-duration:0.3s;}"], /*#__PURE__*/rem('3px'), props => props.disabled ? grey$2 : props.checked ? darkGreen$1 : grey$2, /*#__PURE__*/rem('6px'), props => props.disabled ? lightGrey$2 : props.checked ? green$1 : light$2, /*#__PURE__*/rem('50px'), props => props.disabled ? 'auto' : 'pointer', grey$2, props => props.disabled ? lightGrey$2 : props.checked ? green$1 : lightGrey$2, props => props.disabled ? grey$2 : props.checked ? light$2 : null);
|
|
553
556
|
const CheckboxLabel$1 = /*#__PURE__*/_styled.span.withConfig({
|
|
554
557
|
displayName: "styles__CheckboxLabel",
|
|
555
558
|
componentId: "itly0z-1"
|
|
@@ -557,11 +560,11 @@ const CheckboxLabel$1 = /*#__PURE__*/_styled.span.withConfig({
|
|
|
557
560
|
const CheckboxInput$1 = /*#__PURE__*/_styled.input.withConfig({
|
|
558
561
|
displayName: "styles__CheckboxInput",
|
|
559
562
|
componentId: "itly0z-2"
|
|
560
|
-
})(["position:absolute;left:0;opacity:0;cursor:pointer;&:checked:not(:disabled) ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){&:checked ~ span{border-color:", ";}}"], light$
|
|
563
|
+
})(["position:absolute;left:0;opacity:0;cursor:pointer;&:checked:not(:disabled) ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){&:checked ~ span{border-color:", ";}}"], light$2, light$2, grey$2, grey$2, grey$2, lightGrey$2, light$2);
|
|
561
564
|
const Checkmark$1 = /*#__PURE__*/_styled.span.withConfig({
|
|
562
565
|
displayName: "styles__Checkmark",
|
|
563
566
|
componentId: "itly0z-3"
|
|
564
|
-
})(["position:absolute;left:", ";border:", " solid ", ";border-radius:999px;background-color:", ";width:", ";height:", ";transition-duration:0.3s;&:after{content:'';position:absolute;display:none;top:", ";left:", ";width:", ";height:", ";border:solid ", ";border-width:0 ", " ", " 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}"], /*#__PURE__*/rem('10px'), /*#__PURE__*/rem('2px'), grey$
|
|
567
|
+
})(["position:absolute;left:", ";border:", " solid ", ";border-radius:999px;background-color:", ";width:", ";height:", ";transition-duration:0.3s;&:after{content:'';position:absolute;display:none;top:", ";left:", ";width:", ";height:", ";border:solid ", ";border-width:0 ", " ", " 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}"], /*#__PURE__*/rem('10px'), /*#__PURE__*/rem('2px'), grey$2, light$2, /*#__PURE__*/rem('24px'), /*#__PURE__*/rem('24px'), /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('9px'), props => props.disabled ? light$2 : green$1, /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('3px'));
|
|
565
568
|
|
|
566
569
|
const CheckboxButton = props => {
|
|
567
570
|
const {
|
|
@@ -767,19 +770,20 @@ const icons = {
|
|
|
767
770
|
"moonbeam": 'M21.142 5.645c2.964 1.257 4.94 4.356 4.715 7.499-5.299 0-10.598 0.045-15.896-0.045 0-2.111 0.718-4.266 2.245-5.748 2.245-2.29 5.972-3.009 8.936-1.706z M20.917 25.852c0.314 0 0.584 0.18 0.584 0.404s-0.27 0.404-0.584 0.404h-8.532c-0.314 0-0.584-0.18-0.584-0.404s0.269-0.404 0.584-0.404h8.532z M10.544 26.661c0.322 0 0.584-0.261 0.584-0.584s-0.261-0.584-0.584-0.584c-0.322 0-0.584 0.261-0.584 0.584s0.261 0.584 0.584 0.584z M15.663 24.505c0.322 0 0.584-0.261 0.584-0.584s-0.261-0.584-0.584-0.584c-0.322 0-0.584 0.261-0.584 0.584s0.261 0.584 0.584 0.584z M25.677 23.338c0.314 0 0.584 0.269 0.584 0.584s-0.269 0.584-0.584 0.584h-8.352c-0.314 0-0.584-0.269-0.584-0.584s0.27-0.584 0.584-0.584h8.352z M4.706 22.35c0.322 0 0.584-0.261 0.584-0.584s-0.261-0.584-0.584-0.584c-0.322 0-0.584 0.261-0.584 0.584s0.261 0.584 0.584 0.584z M13.014 21.182c0.314 0 0.584 0.27 0.584 0.584s-0.27 0.584-0.584 0.584h-6.87c-0.314 0-0.584-0.27-0.584-0.584s0.269-0.584 0.584-0.584h6.87z M28.416 21.182c0.314 0 0.584 0.27 0.584 0.584s-0.269 0.584-0.584 0.584h-13.651c-0.314 0-0.584-0.27-0.584-0.584s0.269-0.584 0.584-0.584h13.651z M25.857 19.027c0.314 0 0.584 0.27 0.584 0.584s-0.269 0.584-0.584 0.584h-16.75c-0.314 0-0.584-0.27-0.584-0.584s0.269-0.584 0.584-0.584h16.75z M7.266 20.195c0.322 0 0.584-0.261 0.584-0.584s-0.261-0.584-0.584-0.584c-0.322 0-0.584 0.261-0.584 0.584s0.261 0.584 0.584 0.584z M22.354 16.916c0.314 0 0.584 0.269 0.584 0.584s-0.269 0.584-0.584 0.584h-16.75c-0.314 0-0.584-0.269-0.584-0.584s0.269-0.584 0.584-0.584h16.75z M3.584 18.084c0.322 0 0.584-0.261 0.584-0.584s-0.261-0.584-0.584-0.584c-0.322 0-0.584 0.261-0.584 0.584s0.261 0.584 0.584 0.584z M7.266 15.929c0.322 0 0.584-0.261 0.584-0.584s-0.261-0.584-0.584-0.584c-0.322 0-0.584 0.261-0.584 0.584s0.261 0.584 0.584 0.584z M27.473 14.761c0.314 0 0.584 0.27 0.584 0.584s-0.269 0.584-0.584 0.584h-18.231c-0.314 0-0.584-0.27-0.584-0.584s0.269-0.584 0.584-0.584h18.231z',
|
|
768
771
|
"solidity": 'M20.535 3l4.177 7.429h-8.357l-4.177 7.427-4.177-7.427 4.177-7.429h8.357zM16.398 21.571l4.177-7.427 4.18 7.427-4.18 7.429h-8.357l-4.177-7.429h8.357z',
|
|
769
772
|
"metamask": 'M27.043 16.037l1.128-1.32c0.006-0.012 0.008-0.025 0.008-0.038s-0.003-0.026-0.008-0.038c-0.001-0.013-0.005-0.025-0.012-0.036s-0.016-0.020-0.027-0.026l-0.415-0.299 0.722-0.66c0.005-0.012 0.008-0.025 0.008-0.038s-0.003-0.026-0.008-0.038c-0.001-0.014-0.005-0.027-0.012-0.039s-0.016-0.022-0.027-0.030l-0.514-0.399 0.706-0.537c0.011-0.009 0.021-0.021 0.027-0.034s0.010-0.028 0.011-0.042c0.002-0.015-0.001-0.031-0.008-0.044s-0.018-0.025-0.031-0.033l-0.484-0.376 0.837-4.053v-0.046l-1.274-3.838c-0.011-0.020-0.029-0.035-0.050-0.043s-0.044-0.009-0.066-0.003v0l-8.183 3.071h-6.778l-8.168-3.071h-0.077c-0.022 0.015-0.038 0.037-0.046 0.061l-1.274 3.838c-0.004 0.015-0.004 0.031 0 0.046l0.852 4.053-0.507 0.376c-0.012 0.009-0.022 0.020-0.029 0.034s-0.010 0.028-0.010 0.043c0.001 0.015 0.005 0.029 0.011 0.043s0.016 0.025 0.027 0.034l0.722 0.537-0.514 0.407c-0.011 0.008-0.020 0.018-0.027 0.030s-0.011 0.025-0.011 0.039c-0.007 0.025-0.007 0.052 0 0.077l0.714 0.66-0.415 0.299c-0.017 0.018-0.030 0.038-0.038 0.062-0.008 0.025-0.008 0.052 0 0.077l1.136 1.32-1.75 5.42c-0.004 0.009-0.005 0.018-0.005 0.027s0.002 0.018 0.005 0.027l1.635 5.588c0.003 0.012 0.008 0.024 0.015 0.034s0.017 0.019 0.027 0.025c0.011 0.006 0.023 0.011 0.035 0.012s0.025 0.001 0.037-0.003l5.688-1.535 1.090 0.89 2.303 1.535h4l2.303-1.574 1.067-0.875 5.696 1.535c0.025 0.007 0.053 0.004 0.076-0.009s0.040-0.035 0.047-0.060l1.643-5.588v-0.054l-1.812-5.42zM11.060 19.314c-0.018-0.008-0.034-0.020-0.045-0.037s-0.017-0.036-0.017-0.055c0-0.020 0.006-0.039 0.017-0.055s0.027-0.029 0.045-0.037l2.011-0.921c0.023-0.009 0.047-0.009 0.070 0s0.041 0.025 0.053 0.046l0.837 1.75c0.010 0.013 0.015 0.029 0.015 0.046s-0.005 0.033-0.015 0.046c-0.007 0.014-0.018 0.026-0.032 0.034s-0.029 0.012-0.045 0.012l-2.894-0.829zM18.222 26.146c-0.016 0.009-0.035 0.015-0.054 0.015s-0.037-0.005-0.054-0.015l-0.238-0.192h-3.746l-0.223 0.192c-0.020 0.008-0.042 0.008-0.061 0h-0.046c-0.017-0.011-0.031-0.025-0.040-0.043s-0.014-0.037-0.014-0.057l0.276-2.226c0.008-0.025 0.025-0.046 0.046-0.061l0.476-0.338c0.008-0.004 0.018-0.005 0.027-0.005s0.018 0.002 0.027 0.005h2.863l0.484 0.33c0.010 0.027 0.010 0.057 0 0.084v0l0.276 2.211c0.007 0.016 0.010 0.034 0.008 0.051s-0.007 0.034-0.016 0.049h0.008zM20.971 19.307l-2.863 0.844h-0.061c-0.009-0.025-0.009-0.052 0-0.077-0.003-0.018-0.003-0.036 0-0.054l0.837-1.758c0.014-0.021 0.034-0.037 0.058-0.045s0.049-0.009 0.073-0.001l2.019 0.921c0.019 0.008 0.034 0.023 0.044 0.041s0.013 0.039 0.010 0.059c-0.007 0.025-0.024 0.047-0.047 0.060s-0.050 0.016-0.076 0.009h0.008z',
|
|
770
|
-
"launch": 'M19.1153 6C18.4467 6 17.9048 6.54196 17.9048 7.2105C17.9048 7.87905 18.4467 8.42101 19.1153 8.42101H21.8671L13.4974 16.7907C13.0247 17.2634 13.0247 18.0299 13.4974 18.5026C13.9701 18.9753 14.7366 18.9753 15.2093 18.5026L23.579 10.1329V12.8847C23.579 13.5533 24.121 14.0952 24.7895 14.0952C25.458 14.0952 26 13.5533 26 12.8847V7.2105C26 6.54196 25.458 6 24.7895 6H19.1153Z M9.14146 8.16167C8.8816 8.16167 8.63239 8.26489 8.44864 8.44864C8.26489 8.63239 8.16167 8.8816 8.16167 9.14146V22.8585C8.16167 23.1184 8.26489 23.3676 8.44864 23.5514C8.63239 23.7351 8.8816 23.8383 9.14146 23.8383H22.8585C23.1184 23.8383 23.3676 23.7351 23.5514 23.5514C23.7351 23.3676 23.8383 23.1184 23.8383 22.8585V19.055C23.8383 18.5139 24.277 18.0752 24.8181 18.0752C25.3592 18.0752 25.7979 18.5139 25.7979 19.055V22.8585C25.7979 23.6381 25.4882 24.3858 24.937 24.937C24.3858 25.4882 23.6381 25.7979 22.8585 25.7979H9.14146C8.36189 25.7979 7.61424 25.4882 7.06301 24.937C6.51177 24.3858 6.20208 23.6381 6.20208 22.8585V9.14146C6.20208 8.36189 6.51177 7.61425 7.06301 7.06301C7.61425 6.51177 8.36189 6.20208 9.14146 6.20208H12.945C13.4861 6.20208 13.9248 6.64075 13.9248 7.18187C13.9248 7.723 13.4861 8.16167 12.945 8.16167H9.14146Z M6.92011 6.92011C7.50925 6.33097 8.30829 6 9.14146 6H12.945C13.5977 6 14.1268 6.52914 14.1268 7.18187C14.1268 7.83461 13.5977 8.36375 12.945 8.36375H9.14146C8.9352 8.36375 8.73738 8.44569 8.59153 8.59153C8.44568 8.73738 8.36375 8.9352 8.36375 9.14146V22.8585C8.36375 23.0648 8.44568 23.2626 8.59153 23.4085C8.73738 23.5543 8.9352 23.6363 9.14146 23.6363H22.8585C23.0648 23.6363 23.2626 23.5543 23.4085 23.4085C23.5543 23.2626 23.6363 23.0648 23.6363 22.8585V19.055C23.6363 18.4023 24.1654 17.8732 24.8181 17.8732C25.4709 17.8732 26 18.4023 26 19.055V22.8585C26 23.6917 25.669 24.4908 25.0799 25.0799C24.4908 25.669 23.6917 26 22.8585 26H9.14146C8.30829 26 7.50925 25.669 6.92011 25.0799C6.33097 24.4907 6 23.6917 6 22.8585V9.14146C6 8.30829 6.33097 7.50925 6.92011 6.92011ZM9.14146 6.40416C8.41548 6.40416 7.71924 6.69256 7.2059 7.2059C6.69256 7.71924 6.40416 8.41548 6.40416 9.14146V22.8585C6.40416 23.5845 6.69256 24.2808 7.2059 24.7941C7.71924 25.3074 8.41548 25.5958 9.14146 25.5958H22.8585C23.5845 25.5958 24.2808 25.3074 24.7941 24.7941C25.3074 24.2808 25.5958 23.5845 25.5958 22.8585V19.055C25.5958 18.6255 25.2476 18.2773 24.8181 18.2773C24.3886 18.2773 24.0404 18.6255 24.0404 19.055V22.8585C24.0404 23.172 23.9159 23.4726 23.6943 23.6943C23.4726 23.9159 23.172 24.0404 22.8585 24.0404H9.14146C8.82801 24.0404 8.52739 23.9159 8.30575 23.6943C8.0841 23.4726 7.95958 23.172 7.95958 22.8585V9.14146C7.95958 8.828 8.0841 8.52739 8.30575 8.30575C8.52739 8.0841 8.828 7.95958 9.14146 7.95958H12.945C13.3745 7.95958 13.7227 7.61139 13.7227 7.18187C13.7227 6.75236 13.3745 6.40416 12.945 6.40416H9.14146Z'
|
|
773
|
+
"launch": 'M19.1153 6C18.4467 6 17.9048 6.54196 17.9048 7.2105C17.9048 7.87905 18.4467 8.42101 19.1153 8.42101H21.8671L13.4974 16.7907C13.0247 17.2634 13.0247 18.0299 13.4974 18.5026C13.9701 18.9753 14.7366 18.9753 15.2093 18.5026L23.579 10.1329V12.8847C23.579 13.5533 24.121 14.0952 24.7895 14.0952C25.458 14.0952 26 13.5533 26 12.8847V7.2105C26 6.54196 25.458 6 24.7895 6H19.1153Z M9.14146 8.16167C8.8816 8.16167 8.63239 8.26489 8.44864 8.44864C8.26489 8.63239 8.16167 8.8816 8.16167 9.14146V22.8585C8.16167 23.1184 8.26489 23.3676 8.44864 23.5514C8.63239 23.7351 8.8816 23.8383 9.14146 23.8383H22.8585C23.1184 23.8383 23.3676 23.7351 23.5514 23.5514C23.7351 23.3676 23.8383 23.1184 23.8383 22.8585V19.055C23.8383 18.5139 24.277 18.0752 24.8181 18.0752C25.3592 18.0752 25.7979 18.5139 25.7979 19.055V22.8585C25.7979 23.6381 25.4882 24.3858 24.937 24.937C24.3858 25.4882 23.6381 25.7979 22.8585 25.7979H9.14146C8.36189 25.7979 7.61424 25.4882 7.06301 24.937C6.51177 24.3858 6.20208 23.6381 6.20208 22.8585V9.14146C6.20208 8.36189 6.51177 7.61425 7.06301 7.06301C7.61425 6.51177 8.36189 6.20208 9.14146 6.20208H12.945C13.4861 6.20208 13.9248 6.64075 13.9248 7.18187C13.9248 7.723 13.4861 8.16167 12.945 8.16167H9.14146Z M6.92011 6.92011C7.50925 6.33097 8.30829 6 9.14146 6H12.945C13.5977 6 14.1268 6.52914 14.1268 7.18187C14.1268 7.83461 13.5977 8.36375 12.945 8.36375H9.14146C8.9352 8.36375 8.73738 8.44569 8.59153 8.59153C8.44568 8.73738 8.36375 8.9352 8.36375 9.14146V22.8585C8.36375 23.0648 8.44568 23.2626 8.59153 23.4085C8.73738 23.5543 8.9352 23.6363 9.14146 23.6363H22.8585C23.0648 23.6363 23.2626 23.5543 23.4085 23.4085C23.5543 23.2626 23.6363 23.0648 23.6363 22.8585V19.055C23.6363 18.4023 24.1654 17.8732 24.8181 17.8732C25.4709 17.8732 26 18.4023 26 19.055V22.8585C26 23.6917 25.669 24.4908 25.0799 25.0799C24.4908 25.669 23.6917 26 22.8585 26H9.14146C8.30829 26 7.50925 25.669 6.92011 25.0799C6.33097 24.4907 6 23.6917 6 22.8585V9.14146C6 8.30829 6.33097 7.50925 6.92011 6.92011ZM9.14146 6.40416C8.41548 6.40416 7.71924 6.69256 7.2059 7.2059C6.69256 7.71924 6.40416 8.41548 6.40416 9.14146V22.8585C6.40416 23.5845 6.69256 24.2808 7.2059 24.7941C7.71924 25.3074 8.41548 25.5958 9.14146 25.5958H22.8585C23.5845 25.5958 24.2808 25.3074 24.7941 24.7941C25.3074 24.2808 25.5958 23.5845 25.5958 22.8585V19.055C25.5958 18.6255 25.2476 18.2773 24.8181 18.2773C24.3886 18.2773 24.0404 18.6255 24.0404 19.055V22.8585C24.0404 23.172 23.9159 23.4726 23.6943 23.6943C23.4726 23.9159 23.172 24.0404 22.8585 24.0404H9.14146C8.82801 24.0404 8.52739 23.9159 8.30575 23.6943C8.0841 23.4726 7.95958 23.172 7.95958 22.8585V9.14146C7.95958 8.828 8.0841 8.52739 8.30575 8.30575C8.52739 8.0841 8.828 7.95958 9.14146 7.95958H12.945C13.3745 7.95958 13.7227 7.61139 13.7227 7.18187C13.7227 6.75236 13.3745 6.40416 12.945 6.40416H9.14146Z',
|
|
774
|
+
"arrow-external": "M6 6v5.663h9.542L6.666 21.796v4.183h4.628l9.222-10.917V26H26V6H6z"
|
|
771
775
|
};
|
|
772
776
|
|
|
773
777
|
const {
|
|
774
|
-
grey: grey$
|
|
775
|
-
lightGrey: lightGrey$
|
|
776
|
-
red: red$
|
|
777
|
-
|
|
778
|
+
grey: grey$3,
|
|
779
|
+
lightGrey: lightGrey$3,
|
|
780
|
+
red: red$1,
|
|
781
|
+
purple500
|
|
778
782
|
} = colors;
|
|
779
783
|
const TextFieldInputStyle = /*#__PURE__*/_styled.input.withConfig({
|
|
780
784
|
displayName: "styles__TextFieldInputStyle",
|
|
781
785
|
componentId: "sc-1hxcxbo-0"
|
|
782
|
-
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:", ";height:", ";padding:", ";font-family:inherit;font-size:1rem;transition-duration:0.3s;&:focus{border-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";}&:invalid{border-color:", ";outline:none;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;}&:required{border-color:", ";}&::placeholder{color:", ";opacity:1;}&:-ms-input-placeholder{color:", ";opacity:1;}&::-ms-input-placeholder{color:", ";opacity:1;}", ""], props => props.minimal ? `0 0 ${rem('1px')} 0` : rem('1px'), props => props.error ? red$
|
|
786
|
+
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:", ";height:", ";padding:", ";font-family:inherit;font-size:1rem;transition-duration:0.3s;&:focus{border-color:", ";outline:none;}&:disabled{background-color:", ";color:", ";}&:invalid{border-color:", ";outline:none;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;}&:required{border-color:", ";}&::placeholder{color:", ";opacity:1;}&:-ms-input-placeholder{color:", ";opacity:1;}&::-ms-input-placeholder{color:", ";opacity:1;}", ""], props => props.minimal ? `0 0 ${rem('1px')} 0` : rem('1px'), props => props.error ? red$1 : grey$3, props => props.minimal ? 0 : '6px', props => props.minimal ? rem('40px') : rem('50px'), props => props.minimal ? 0 : rem('10px'), purple500, lightGrey$3, grey$3, red$1, props => props.error ? red$1 : grey$3, grey$3, grey$3, grey$3, props => props.icon && css`
|
|
783
787
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 32 32"><path style="fill:hsl(0, 0%, 58%)" d=${JSON.stringify(icons[props.icon])} /></svg>');
|
|
784
788
|
padding-left: ${props.minimal ? '40px' : '50px'};
|
|
785
789
|
background-repeat: no-repeat;
|
|
@@ -793,11 +797,11 @@ const TextFieldInputStyle = /*#__PURE__*/_styled.input.withConfig({
|
|
|
793
797
|
`);
|
|
794
798
|
|
|
795
799
|
const {
|
|
796
|
-
light: light$
|
|
797
|
-
grey: grey$
|
|
798
|
-
lightGrey: lightGrey$
|
|
799
|
-
red: red$
|
|
800
|
-
|
|
800
|
+
light: light$3,
|
|
801
|
+
grey: grey$4,
|
|
802
|
+
lightGrey: lightGrey$4,
|
|
803
|
+
red: red$2,
|
|
804
|
+
purple500: purple500$1
|
|
801
805
|
} = colors;
|
|
802
806
|
const Wrapper$1 = _styled.div`
|
|
803
807
|
position: relative;
|
|
@@ -805,7 +809,7 @@ const Wrapper$1 = _styled.div`
|
|
|
805
809
|
const TextAreaStyle = _styled.textarea`
|
|
806
810
|
border-width: ${props => props.minimal ? `0 0 ${rem('1px')} 0` : rem('1px')};
|
|
807
811
|
border-style: solid;
|
|
808
|
-
border-color: ${props => props.error ? red$
|
|
812
|
+
border-color: ${props => props.error ? red$2 : grey$4};
|
|
809
813
|
border-radius: ${props => props.minimal ? 0 : '6px'};
|
|
810
814
|
width: 100%;
|
|
811
815
|
height: ${props => props.height || rem('100px')};
|
|
@@ -818,17 +822,17 @@ const TextAreaStyle = _styled.textarea`
|
|
|
818
822
|
resize: none;
|
|
819
823
|
|
|
820
824
|
&:focus {
|
|
821
|
-
border-color: ${
|
|
825
|
+
border-color: ${purple500$1};
|
|
822
826
|
outline: none;
|
|
823
827
|
}
|
|
824
828
|
|
|
825
829
|
&:disabled {
|
|
826
|
-
background-color: ${lightGrey$
|
|
827
|
-
color: ${grey$
|
|
830
|
+
background-color: ${lightGrey$4};
|
|
831
|
+
color: ${grey$4};
|
|
828
832
|
}
|
|
829
833
|
|
|
830
834
|
&:invalid {
|
|
831
|
-
border-color: ${red$
|
|
835
|
+
border-color: ${red$2};
|
|
832
836
|
outline: none;
|
|
833
837
|
box-shadow: none;
|
|
834
838
|
-webkit-box-shadow: none;
|
|
@@ -836,21 +840,21 @@ const TextAreaStyle = _styled.textarea`
|
|
|
836
840
|
}
|
|
837
841
|
|
|
838
842
|
&:required {
|
|
839
|
-
border-color: ${props => props.error ? red$
|
|
843
|
+
border-color: ${props => props.error ? red$2 : grey$4};
|
|
840
844
|
}
|
|
841
845
|
|
|
842
846
|
&::placeholder {
|
|
843
|
-
color: ${grey$
|
|
847
|
+
color: ${grey$4};
|
|
844
848
|
opacity: 1;
|
|
845
849
|
}
|
|
846
850
|
|
|
847
851
|
&:-ms-input-placeholder {
|
|
848
|
-
color: ${grey$
|
|
852
|
+
color: ${grey$4};
|
|
849
853
|
opacity: 1;
|
|
850
854
|
}
|
|
851
855
|
|
|
852
856
|
&::-ms-input-placeholder {
|
|
853
|
-
color: ${grey$
|
|
857
|
+
color: ${grey$4};
|
|
854
858
|
opacity: 1;
|
|
855
859
|
}
|
|
856
860
|
`;
|
|
@@ -858,28 +862,28 @@ const Count = _styled.div`
|
|
|
858
862
|
position: absolute;
|
|
859
863
|
top: ${props => props.minimal ? 0 : rem('5px')};
|
|
860
864
|
right: ${props => props.minimal ? 0 : rem('10px')};
|
|
861
|
-
background-color: ${/*#__PURE__*/transparentize(0.15, light$
|
|
865
|
+
background-color: ${/*#__PURE__*/transparentize(0.15, light$3)};
|
|
862
866
|
padding: 0 ${/*#__PURE__*/rem('5px')};
|
|
863
867
|
|
|
864
868
|
span {
|
|
865
869
|
font-size: 0.75rem;
|
|
866
|
-
color: ${grey$
|
|
870
|
+
color: ${grey$4};
|
|
867
871
|
|
|
868
872
|
&.negative {
|
|
869
|
-
color: ${red$
|
|
873
|
+
color: ${red$2};
|
|
870
874
|
}
|
|
871
875
|
}
|
|
872
876
|
`;
|
|
873
877
|
|
|
874
878
|
const {
|
|
875
|
-
normal: normal$
|
|
876
|
-
grey: grey$
|
|
877
|
-
lightGrey: lightGrey$
|
|
878
|
-
red: red$
|
|
879
|
-
|
|
879
|
+
normal: normal$2,
|
|
880
|
+
grey: grey$5,
|
|
881
|
+
lightGrey: lightGrey$5,
|
|
882
|
+
red: red$3,
|
|
883
|
+
purple500: purple500$2
|
|
880
884
|
} = colors;
|
|
881
885
|
const SelectStyle = _styled.select`
|
|
882
|
-
border: ${/*#__PURE__*/rem('1px')} solid ${props => props.error ? red$
|
|
886
|
+
border: ${/*#__PURE__*/rem('1px')} solid ${props => props.error ? red$3 : grey$5};
|
|
883
887
|
border-radius: ${/*#__PURE__*/rem('6px')};
|
|
884
888
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path fill='hsl(0, 0%, 85%)' d='M10.827 12.387l5.173 5.173 5.173-5.173c0.52-0.52 1.36-0.52 1.88 0v0c0.52 0.52 0.52 1.36 0 1.88l-6.12 6.12c-0.52 0.52-1.36 0.52-1.88 0l-6.12-6.12c-0.52-0.52-0.52-1.36 0-1.88v0c0.52-0.507 1.373-0.52 1.893 0z'></path></svg>");
|
|
885
889
|
background-position: calc(100% - 15px) center;
|
|
@@ -894,24 +898,24 @@ const SelectStyle = _styled.select`
|
|
|
894
898
|
transition-duration: 0.3s;
|
|
895
899
|
|
|
896
900
|
&:hover {
|
|
897
|
-
border-color: ${
|
|
901
|
+
border-color: ${purple500$2};
|
|
898
902
|
}
|
|
899
903
|
|
|
900
904
|
&:-moz-focusring {
|
|
901
905
|
color: transparent;
|
|
902
|
-
text-shadow: 0 0 0 ${normal$
|
|
906
|
+
text-shadow: 0 0 0 ${normal$2};
|
|
903
907
|
}
|
|
904
908
|
|
|
905
909
|
&:disabled {
|
|
906
|
-
background-color: ${lightGrey$
|
|
907
|
-
color: ${grey$
|
|
910
|
+
background-color: ${lightGrey$5};
|
|
911
|
+
color: ${grey$5};
|
|
908
912
|
pointer-events: none;
|
|
909
913
|
}
|
|
910
914
|
|
|
911
915
|
${props => props.minimal && css`
|
|
912
916
|
border: 0;
|
|
913
917
|
border-bottom: ${rem('1px')} solid
|
|
914
|
-
${props => props.error ? red$
|
|
918
|
+
${props => props.error ? red$3 : grey$5};
|
|
915
919
|
border-radius: 0;
|
|
916
920
|
background-position: 100% center;
|
|
917
921
|
height: ${rem('40px')};
|
|
@@ -919,19 +923,19 @@ const SelectStyle = _styled.select`
|
|
|
919
923
|
|
|
920
924
|
&:disabled {
|
|
921
925
|
background-color: transparent;
|
|
922
|
-
color: ${grey$
|
|
926
|
+
color: ${grey$5};
|
|
923
927
|
}
|
|
924
928
|
`}
|
|
925
929
|
`;
|
|
926
930
|
|
|
927
931
|
const {
|
|
928
|
-
green: green$
|
|
929
|
-
red: red$
|
|
932
|
+
green: green$2,
|
|
933
|
+
red: red$4
|
|
930
934
|
} = colors;
|
|
931
935
|
const ErrorStyle = /*#__PURE__*/_styled.span.withConfig({
|
|
932
936
|
displayName: "styles__ErrorStyle",
|
|
933
937
|
componentId: "sc-4e4ecc-0"
|
|
934
|
-
})(["display:block;font-size:0.7rem;color:", ";", " + &,", " + &,", " + &{margin-top:", ";}"], props => props.color === 'success' ? green$
|
|
938
|
+
})(["display:block;font-size:0.7rem;color:", ";", " + &,", " + &,", " + &{margin-top:", ";}"], props => props.color === 'success' ? green$2 : red$4, TextFieldInputStyle, TextAreaStyle, SelectStyle, /*#__PURE__*/rem('5px'));
|
|
935
939
|
|
|
936
940
|
const ErrorField = props => {
|
|
937
941
|
const {
|
|
@@ -967,18 +971,18 @@ const Icon = props => {
|
|
|
967
971
|
};
|
|
968
972
|
|
|
969
973
|
const {
|
|
970
|
-
grey: grey$
|
|
974
|
+
grey: grey$6
|
|
971
975
|
} = colors;
|
|
972
976
|
const {
|
|
973
|
-
bold
|
|
974
|
-
} =
|
|
977
|
+
bold
|
|
978
|
+
} = typography;
|
|
975
979
|
const LabelStyle = /*#__PURE__*/_styled.label.withConfig({
|
|
976
980
|
displayName: "styles__LabelStyle",
|
|
977
981
|
componentId: "pbv9we-0"
|
|
978
|
-
})(["display:flex;align-items:center;font-size:0.75rem;font-weight:", ";color:", ";text-transform:uppercase;svg{width:auto;height:", ";}"], bold
|
|
982
|
+
})(["display:flex;align-items:center;font-size:0.75rem;font-weight:", ";color:", ";text-transform:uppercase;svg{width:auto;height:", ";}"], bold, grey$6, /*#__PURE__*/rem('15px'));
|
|
979
983
|
|
|
980
984
|
const {
|
|
981
|
-
grey: grey$
|
|
985
|
+
grey: grey$7
|
|
982
986
|
} = colors;
|
|
983
987
|
|
|
984
988
|
const Label = props => {
|
|
@@ -993,12 +997,12 @@ const Label = props => {
|
|
|
993
997
|
style: style
|
|
994
998
|
}, value, kai ? /*#__PURE__*/React.createElement(Icon, {
|
|
995
999
|
icon: "kai",
|
|
996
|
-
fill: grey$
|
|
1000
|
+
fill: grey$7
|
|
997
1001
|
}) : null);
|
|
998
1002
|
};
|
|
999
1003
|
|
|
1000
1004
|
const {
|
|
1001
|
-
light: light$
|
|
1005
|
+
light: light$4
|
|
1002
1006
|
} = colors;
|
|
1003
1007
|
const rotation = keyframes`
|
|
1004
1008
|
from {
|
|
@@ -1011,15 +1015,15 @@ const rotation = keyframes`
|
|
|
1011
1015
|
const Loading = /*#__PURE__*/_styled.div.withConfig({
|
|
1012
1016
|
displayName: "styles__Loading",
|
|
1013
1017
|
componentId: "sxnx45-0"
|
|
1014
|
-
})(["border:", " solid hsla(0,0%,48%,0.5);border-top-color:", ";border-radius:50%;width:", ";height:", ";animation:", " 0.8s ease infinite;"], /*#__PURE__*/rem('5px'), props => props.fill || light$
|
|
1018
|
+
})(["border:", " solid hsla(0,0%,48%,0.5);border-top-color:", ";border-radius:50%;width:", ";height:", ";animation:", " 0.8s ease infinite;"], /*#__PURE__*/rem('5px'), props => props.fill || light$4, props => props.size || rem('20px'), props => props.size || rem('20px'), rotation);
|
|
1015
1019
|
|
|
1016
1020
|
const {
|
|
1017
|
-
grey: grey$
|
|
1021
|
+
grey: grey$8
|
|
1018
1022
|
} = colors;
|
|
1019
1023
|
|
|
1020
1024
|
const Spinner = props => {
|
|
1021
1025
|
const {
|
|
1022
|
-
fill = grey$
|
|
1026
|
+
fill = grey$8,
|
|
1023
1027
|
size = '20px',
|
|
1024
1028
|
className = 'spinner',
|
|
1025
1029
|
style
|
|
@@ -1032,48 +1036,24 @@ const Spinner = props => {
|
|
|
1032
1036
|
});
|
|
1033
1037
|
};
|
|
1034
1038
|
|
|
1035
|
-
const {
|
|
1036
|
-
normal: normal$5,
|
|
1037
|
-
light: light$7,
|
|
1038
|
-
grey: grey$b,
|
|
1039
|
-
green: green$5,
|
|
1040
|
-
orange: orange$2,
|
|
1041
|
-
red: red$7
|
|
1042
|
-
} = colors;
|
|
1043
|
-
const {
|
|
1044
|
-
bold: bold$3
|
|
1045
|
-
} = fontWeight;
|
|
1046
1039
|
const TagWrapper = /*#__PURE__*/_styled.span.withConfig({
|
|
1047
1040
|
displayName: "styles__TagWrapper",
|
|
1048
1041
|
componentId: "sc-1ghratr-0"
|
|
1049
|
-
})(["display:inline-block;border:", " solid
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
border-color: ${red$7};
|
|
1059
|
-
background-color: ${red$7};
|
|
1060
|
-
color: ${props.variant === 'solid' ? light$7 : red$7};
|
|
1061
|
-
`, props => props.color === 'grey' && css`
|
|
1062
|
-
border-color: ${grey$b};
|
|
1063
|
-
background-color: ${grey$b};
|
|
1064
|
-
color: ${props.variant === 'solid' ? light$7 : grey$b};
|
|
1065
|
-
`, props => props.color === 'light' && css`
|
|
1066
|
-
border-color: ${light$7};
|
|
1067
|
-
background-color: ${light$7};
|
|
1068
|
-
color: ${props.variant === 'solid' ? normal$5 : light$7};
|
|
1069
|
-
`, props => props.variant === 'outline' && css`
|
|
1070
|
-
background-color: transparent;
|
|
1071
|
-
`);
|
|
1042
|
+
})(["--bg:", ";--txt:", ";display:inline-block;border:", " solid var(--bg);border-radius:", ";background-color:", ";padding:", " ", ";font-size:", ";font-weight:", ";text-transform:uppercase;letter-spacing:", ";line-height:1;color:", ";white-space:nowrap;"], props => {
|
|
1043
|
+
var _props$color;
|
|
1044
|
+
|
|
1045
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
1046
|
+
}, props => {
|
|
1047
|
+
var _props$txtColor;
|
|
1048
|
+
|
|
1049
|
+
return useColor((_props$txtColor = props.txtColor) != null ? _props$txtColor : 'black').color;
|
|
1050
|
+
}, /*#__PURE__*/rem('2px'), /*#__PURE__*/rem('4px'), props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('8px'), /*#__PURE__*/rem('12px'), typography.medium, /*#__PURE__*/rem('1px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)');
|
|
1072
1051
|
|
|
1073
1052
|
const Tag = props => {
|
|
1074
1053
|
const {
|
|
1075
1054
|
variant = 'solid',
|
|
1076
|
-
color = '
|
|
1055
|
+
color = 'purple500',
|
|
1056
|
+
txtColor = 'white',
|
|
1077
1057
|
value,
|
|
1078
1058
|
className = 'tag',
|
|
1079
1059
|
style
|
|
@@ -1082,34 +1062,39 @@ const Tag = props => {
|
|
|
1082
1062
|
className: className,
|
|
1083
1063
|
variant: variant,
|
|
1084
1064
|
color: color,
|
|
1065
|
+
txtColor: txtColor,
|
|
1085
1066
|
style: style,
|
|
1086
1067
|
title: value
|
|
1087
1068
|
}, value);
|
|
1088
1069
|
};
|
|
1089
1070
|
|
|
1090
|
-
const {
|
|
1091
|
-
grey: grey$c,
|
|
1092
|
-
light: light$8
|
|
1093
|
-
} = colors;
|
|
1094
|
-
const {
|
|
1095
|
-
bold: bold$4
|
|
1096
|
-
} = fontWeight;
|
|
1097
1071
|
const TagWrapper$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
1098
1072
|
displayName: "styles__TagWrapper",
|
|
1099
1073
|
componentId: "db57da-0"
|
|
1100
|
-
})(["display:flex;border:", " solid
|
|
1074
|
+
})(["--bg:", ";--valueColor:", ";display:flex;border:", " solid var(--bg);border-radius:", ";line-height:1;max-width:100%;width:max-content;overflow:hidden;span{display:inline-block;padding:", " ", ";font-size:", ";font-weight:", ";letter-spacing:", ";&.label{flex:1;color:var(--bg);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;}&.value{background-color:var(--bg);color:var(--valueColor);}}&:not(:first-child){margin-left:", ";}"], props => {
|
|
1075
|
+
var _props$color;
|
|
1076
|
+
|
|
1077
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
1078
|
+
}, props => {
|
|
1079
|
+
var _props$valueColor;
|
|
1080
|
+
|
|
1081
|
+
return useColor((_props$valueColor = props.valueColor) != null ? _props$valueColor : 'black').color;
|
|
1082
|
+
}, /*#__PURE__*/rem('2px'), /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('8px'), /*#__PURE__*/rem('12px'), typography.medium, /*#__PURE__*/rem('1px'), /*#__PURE__*/rem('5px'));
|
|
1101
1083
|
|
|
1102
1084
|
const TagNumber = props => {
|
|
1103
1085
|
const {
|
|
1104
|
-
label,
|
|
1105
|
-
value,
|
|
1106
1086
|
className = 'tag-number',
|
|
1107
|
-
style
|
|
1087
|
+
style,
|
|
1088
|
+
color = 'purple500',
|
|
1089
|
+
valueColor = 'white',
|
|
1090
|
+
label,
|
|
1091
|
+
value
|
|
1108
1092
|
} = props;
|
|
1109
1093
|
return /*#__PURE__*/React.createElement(TagWrapper$1, {
|
|
1110
1094
|
className: className,
|
|
1111
1095
|
style: style,
|
|
1112
|
-
|
|
1096
|
+
color: color,
|
|
1097
|
+
valueColor: valueColor
|
|
1113
1098
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1114
1099
|
className: "label"
|
|
1115
1100
|
}, label), /*#__PURE__*/React.createElement("span", {
|
|
@@ -1243,11 +1228,11 @@ const Select = props => {
|
|
|
1243
1228
|
};
|
|
1244
1229
|
|
|
1245
1230
|
const {
|
|
1246
|
-
normal: normal$
|
|
1247
|
-
light: light$
|
|
1248
|
-
grey: grey$
|
|
1249
|
-
lightGrey: lightGrey$
|
|
1250
|
-
|
|
1231
|
+
normal: normal$3,
|
|
1232
|
+
light: light$5,
|
|
1233
|
+
grey: grey$9,
|
|
1234
|
+
lightGrey: lightGrey$6,
|
|
1235
|
+
purple500: purple500$3,
|
|
1251
1236
|
lightPurple
|
|
1252
1237
|
} = colors;
|
|
1253
1238
|
const SelectWrapper = _styled.div`
|
|
@@ -1257,16 +1242,16 @@ const SelectWrapper = _styled.div`
|
|
|
1257
1242
|
}
|
|
1258
1243
|
|
|
1259
1244
|
&__control {
|
|
1260
|
-
border-color: ${grey$
|
|
1245
|
+
border-color: ${grey$9};
|
|
1261
1246
|
min-height: ${/*#__PURE__*/rem('50px')};
|
|
1262
1247
|
transition-duration: 0.3s;
|
|
1263
1248
|
|
|
1264
1249
|
&:hover {
|
|
1265
|
-
border-color: ${
|
|
1250
|
+
border-color: ${purple500$3};
|
|
1266
1251
|
}
|
|
1267
1252
|
|
|
1268
1253
|
&--is-focused {
|
|
1269
|
-
border-color: ${
|
|
1254
|
+
border-color: ${purple500$3};
|
|
1270
1255
|
box-shadow: none;
|
|
1271
1256
|
}
|
|
1272
1257
|
}
|
|
@@ -1277,15 +1262,15 @@ const SelectWrapper = _styled.div`
|
|
|
1277
1262
|
}
|
|
1278
1263
|
|
|
1279
1264
|
&__placeholder {
|
|
1280
|
-
color: ${grey$
|
|
1265
|
+
color: ${grey$9};
|
|
1281
1266
|
}
|
|
1282
1267
|
|
|
1283
1268
|
&__input {
|
|
1284
|
-
color: ${normal$
|
|
1269
|
+
color: ${normal$3};
|
|
1285
1270
|
}
|
|
1286
1271
|
|
|
1287
1272
|
&__single-value {
|
|
1288
|
-
color: ${normal$
|
|
1273
|
+
color: ${normal$3};
|
|
1289
1274
|
}
|
|
1290
1275
|
|
|
1291
1276
|
&__indicator {
|
|
@@ -1305,7 +1290,7 @@ const SelectWrapper = _styled.div`
|
|
|
1305
1290
|
}
|
|
1306
1291
|
|
|
1307
1292
|
&-separator {
|
|
1308
|
-
background-color: ${grey$
|
|
1293
|
+
background-color: ${grey$9};
|
|
1309
1294
|
}
|
|
1310
1295
|
}
|
|
1311
1296
|
|
|
@@ -1313,18 +1298,18 @@ const SelectWrapper = _styled.div`
|
|
|
1313
1298
|
transition-duration: 0.3s;
|
|
1314
1299
|
|
|
1315
1300
|
&:hover {
|
|
1316
|
-
background-color: ${
|
|
1317
|
-
color: ${light$
|
|
1301
|
+
background-color: ${purple500$3};
|
|
1302
|
+
color: ${light$5};
|
|
1318
1303
|
}
|
|
1319
1304
|
|
|
1320
1305
|
&--is-focused {
|
|
1321
|
-
background-color: ${
|
|
1322
|
-
color: ${light$
|
|
1306
|
+
background-color: ${purple500$3};
|
|
1307
|
+
color: ${light$5};
|
|
1323
1308
|
}
|
|
1324
1309
|
|
|
1325
1310
|
&--is-selected {
|
|
1326
1311
|
background-color: ${lightPurple};
|
|
1327
|
-
color: ${normal$
|
|
1312
|
+
color: ${normal$3};
|
|
1328
1313
|
}
|
|
1329
1314
|
}
|
|
1330
1315
|
}
|
|
@@ -1352,14 +1337,14 @@ const SelectWrapper = _styled.div`
|
|
|
1352
1337
|
|
|
1353
1338
|
.select__option--is-selected {
|
|
1354
1339
|
svg {
|
|
1355
|
-
fill: ${normal$
|
|
1340
|
+
fill: ${normal$3};
|
|
1356
1341
|
transition-duration: 0.3s;
|
|
1357
1342
|
}
|
|
1358
1343
|
}
|
|
1359
1344
|
|
|
1360
1345
|
.select__option--is-focused {
|
|
1361
1346
|
svg {
|
|
1362
|
-
fill: ${light$
|
|
1347
|
+
fill: ${light$5};
|
|
1363
1348
|
transition-duration: 0.3s;
|
|
1364
1349
|
}
|
|
1365
1350
|
}
|
|
@@ -1370,12 +1355,12 @@ const SelectWrapper = _styled.div`
|
|
|
1370
1355
|
`;
|
|
1371
1356
|
const SelectGroupLabel = _styled.span`
|
|
1372
1357
|
font-size: ${/*#__PURE__*/rem('12px')};
|
|
1373
|
-
color: ${lightGrey$
|
|
1358
|
+
color: ${lightGrey$6};
|
|
1374
1359
|
|
|
1375
1360
|
+ .tag {
|
|
1376
|
-
border-color: ${lightGrey$
|
|
1377
|
-
background-color: ${lightGrey$
|
|
1378
|
-
color: ${grey$
|
|
1361
|
+
border-color: ${lightGrey$6};
|
|
1362
|
+
background-color: ${lightGrey$6};
|
|
1363
|
+
color: ${grey$9};
|
|
1379
1364
|
}
|
|
1380
1365
|
`;
|
|
1381
1366
|
|
|
@@ -1446,16 +1431,16 @@ const SelectInteractive = ({
|
|
|
1446
1431
|
};
|
|
1447
1432
|
|
|
1448
1433
|
const {
|
|
1449
|
-
normal: normal$
|
|
1450
|
-
grey: grey$
|
|
1451
|
-
lightGrey: lightGrey$
|
|
1452
|
-
red: red$
|
|
1434
|
+
normal: normal$4,
|
|
1435
|
+
grey: grey$a,
|
|
1436
|
+
lightGrey: lightGrey$7,
|
|
1437
|
+
red: red$5,
|
|
1453
1438
|
lightRed
|
|
1454
1439
|
} = colors;
|
|
1455
1440
|
const Wrapper$2 = _styled.div`
|
|
1456
1441
|
border-width: ${/*#__PURE__*/rem('1px')};
|
|
1457
1442
|
border-style: solid;
|
|
1458
|
-
border-color: ${props => props.error ? red$
|
|
1443
|
+
border-color: ${props => props.error ? red$5 : grey$a};
|
|
1459
1444
|
border-radius: ${/*#__PURE__*/rem('6px')};
|
|
1460
1445
|
display: flex;
|
|
1461
1446
|
overflow: hidden;
|
|
@@ -1463,7 +1448,7 @@ const Wrapper$2 = _styled.div`
|
|
|
1463
1448
|
input {
|
|
1464
1449
|
flex: 1;
|
|
1465
1450
|
border: 0;
|
|
1466
|
-
color: ${props => props.error ? red$
|
|
1451
|
+
color: ${props => props.error ? red$5 : normal$4};
|
|
1467
1452
|
|
|
1468
1453
|
&:disabled {
|
|
1469
1454
|
margin: 0;
|
|
@@ -1478,10 +1463,10 @@ const Wrapper$2 = _styled.div`
|
|
|
1478
1463
|
const Appendix = _styled.div`
|
|
1479
1464
|
border-width: ${props => props.position === 'left' ? `0 ${rem('1px')} 0 0` : `0 0 0 ${rem('1px')}`};
|
|
1480
1465
|
border-style: solid;
|
|
1481
|
-
border-color: ${props => props.error ? red$
|
|
1482
|
-
background-color: ${props => props.error ? lightRed : lightGrey$
|
|
1466
|
+
border-color: ${props => props.error ? red$5 : grey$a};
|
|
1467
|
+
background-color: ${props => props.error ? lightRed : lightGrey$7};
|
|
1483
1468
|
padding: 0 ${/*#__PURE__*/rem('15px')};
|
|
1484
|
-
color: ${props => props.error ? red$
|
|
1469
|
+
color: ${props => props.error ? red$5 : grey$a};
|
|
1485
1470
|
line-height: ${/*#__PURE__*/rem('48px')};
|
|
1486
1471
|
vertical-align: center;
|
|
1487
1472
|
overflow: hidden;
|
|
@@ -1555,8 +1540,25 @@ const TruncateLine = props => {
|
|
|
1555
1540
|
}, /*#__PURE__*/React.createElement("span", null, value));
|
|
1556
1541
|
};
|
|
1557
1542
|
|
|
1543
|
+
const size = {
|
|
1544
|
+
xs: '360px',
|
|
1545
|
+
s: '700px',
|
|
1546
|
+
m: '900px',
|
|
1547
|
+
l: '1280px',
|
|
1548
|
+
xl: '1600px'
|
|
1549
|
+
};
|
|
1550
|
+
const device = {
|
|
1551
|
+
xs: `(min-width: ${size.xs})`,
|
|
1552
|
+
s: `(min-width: ${size.s})`,
|
|
1553
|
+
m: `(min-width: ${size.m})`,
|
|
1554
|
+
l: `(min-width: ${size.l})`,
|
|
1555
|
+
xl: `(min-width: ${size.xl})`,
|
|
1556
|
+
touch: `(hover: none) and (pointer: coarse)`,
|
|
1557
|
+
mouse: '(min-width: 538px) and (min-height: 720px)'
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1558
1560
|
const {
|
|
1559
|
-
light: light$
|
|
1561
|
+
light: light$6
|
|
1560
1562
|
} = colors;
|
|
1561
1563
|
const Wrapper$3 = _styled.div`
|
|
1562
1564
|
position: relative;
|
|
@@ -1810,7 +1812,7 @@ const Wrapper$3 = _styled.div`
|
|
|
1810
1812
|
svg {
|
|
1811
1813
|
width: ${/*#__PURE__*/rem('36px')};
|
|
1812
1814
|
height: ${/*#__PURE__*/rem('36px')};
|
|
1813
|
-
fill: ${light$
|
|
1815
|
+
fill: ${light$6};
|
|
1814
1816
|
}
|
|
1815
1817
|
|
|
1816
1818
|
&.next {
|
|
@@ -1821,7 +1823,7 @@ const Wrapper$3 = _styled.div`
|
|
|
1821
1823
|
opacity: 1;
|
|
1822
1824
|
|
|
1823
1825
|
svg {
|
|
1824
|
-
fill: ${light$
|
|
1826
|
+
fill: ${light$6};
|
|
1825
1827
|
}
|
|
1826
1828
|
}
|
|
1827
1829
|
|
|
@@ -1846,7 +1848,7 @@ const Wrapper$3 = _styled.div`
|
|
|
1846
1848
|
position: relative;
|
|
1847
1849
|
display: inline-block;
|
|
1848
1850
|
border-radius: 999px;
|
|
1849
|
-
background-color: ${light$
|
|
1851
|
+
background-color: ${light$6};
|
|
1850
1852
|
width: ${/*#__PURE__*/rem('15px')};
|
|
1851
1853
|
height: ${/*#__PURE__*/rem('15px')};
|
|
1852
1854
|
opacity: 0.25;
|
|
@@ -1980,12 +1982,12 @@ const VideoPlayer = props => {
|
|
|
1980
1982
|
};
|
|
1981
1983
|
|
|
1982
1984
|
const {
|
|
1983
|
-
lightGrey: lightGrey$
|
|
1984
|
-
green: green$
|
|
1985
|
+
lightGrey: lightGrey$8,
|
|
1986
|
+
green: green$3
|
|
1985
1987
|
} = colors;
|
|
1986
1988
|
const {
|
|
1987
|
-
bold: bold$
|
|
1988
|
-
} =
|
|
1989
|
+
bold: bold$1
|
|
1990
|
+
} = typography;
|
|
1989
1991
|
const Wrapper$5 = _styled.div`
|
|
1990
1992
|
display: flex;
|
|
1991
1993
|
align-items: center;
|
|
@@ -1993,13 +1995,13 @@ const Wrapper$5 = _styled.div`
|
|
|
1993
1995
|
const Bar = _styled.div`
|
|
1994
1996
|
flex: 1;
|
|
1995
1997
|
border-radius: 999px;
|
|
1996
|
-
background-color: ${lightGrey$
|
|
1998
|
+
background-color: ${lightGrey$8};
|
|
1997
1999
|
height: ${/*#__PURE__*/rem('10px')};
|
|
1998
2000
|
overflow: hidden;
|
|
1999
2001
|
`;
|
|
2000
2002
|
const Progress = _styled.div`
|
|
2001
2003
|
border-radius: 999px;
|
|
2002
|
-
background-color: ${green$
|
|
2004
|
+
background-color: ${green$3};
|
|
2003
2005
|
height: 100%;
|
|
2004
2006
|
width: ${props => props.progress ? `${props.progress}%` : 0};
|
|
2005
2007
|
transition-duration: 2s;
|
|
@@ -2007,7 +2009,7 @@ const Progress = _styled.div`
|
|
|
2007
2009
|
const Value = _styled.div`
|
|
2008
2010
|
margin-left: ${/*#__PURE__*/rem('5px')};
|
|
2009
2011
|
font-size: 0.75rem;
|
|
2010
|
-
font-weight: ${bold$
|
|
2012
|
+
font-weight: ${bold$1};
|
|
2011
2013
|
`;
|
|
2012
2014
|
|
|
2013
2015
|
const ProgressBar = props => {
|
|
@@ -2021,9 +2023,9 @@ const ProgressBar = props => {
|
|
|
2021
2023
|
};
|
|
2022
2024
|
|
|
2023
2025
|
const {
|
|
2024
|
-
light: light$
|
|
2025
|
-
green: green$
|
|
2026
|
-
lightGrey: lightGrey$
|
|
2026
|
+
light: light$7,
|
|
2027
|
+
green: green$4,
|
|
2028
|
+
lightGrey: lightGrey$9
|
|
2027
2029
|
} = colors;
|
|
2028
2030
|
const Switcher = _styled.fieldset`
|
|
2029
2031
|
margin: 0;
|
|
@@ -2049,7 +2051,7 @@ const Switcher = _styled.fieldset`
|
|
|
2049
2051
|
width: ${/*#__PURE__*/rem('40px')};
|
|
2050
2052
|
height: ${/*#__PURE__*/rem('24px')};
|
|
2051
2053
|
border-radius: 999px;
|
|
2052
|
-
border: 2px solid ${light$
|
|
2054
|
+
border: 2px solid ${light$7};
|
|
2053
2055
|
position: relative;
|
|
2054
2056
|
opacity: ${props => props.disabled ? '0.5' : '1'};
|
|
2055
2057
|
|
|
@@ -2074,7 +2076,7 @@ const Switcher = _styled.fieldset`
|
|
|
2074
2076
|
}
|
|
2075
2077
|
|
|
2076
2078
|
&.switch-on:checked ~ .bg {
|
|
2077
|
-
background-color: ${green$
|
|
2079
|
+
background-color: ${green$4};
|
|
2078
2080
|
}
|
|
2079
2081
|
|
|
2080
2082
|
&.switch-off:checked ~ .switcher {
|
|
@@ -2082,7 +2084,7 @@ const Switcher = _styled.fieldset`
|
|
|
2082
2084
|
}
|
|
2083
2085
|
|
|
2084
2086
|
&.switch-off:checked ~ .bg {
|
|
2085
|
-
background-color: ${lightGrey$
|
|
2087
|
+
background-color: ${lightGrey$9};
|
|
2086
2088
|
}
|
|
2087
2089
|
}
|
|
2088
2090
|
|
|
@@ -2095,7 +2097,7 @@ const Switcher = _styled.fieldset`
|
|
|
2095
2097
|
width: ${/*#__PURE__*/rem('16px')};
|
|
2096
2098
|
height: ${/*#__PURE__*/rem('16px')};
|
|
2097
2099
|
border-radius: 50%;
|
|
2098
|
-
background-color: ${light$
|
|
2100
|
+
background-color: ${light$7};
|
|
2099
2101
|
transition: all 0.3s ease-out;
|
|
2100
2102
|
z-index: 2;
|
|
2101
2103
|
}
|
|
@@ -2110,7 +2112,7 @@ const Switcher = _styled.fieldset`
|
|
|
2110
2112
|
border-radius: 999px;
|
|
2111
2113
|
background-color: transparent;
|
|
2112
2114
|
transition: all 0.3s ease-out;
|
|
2113
|
-
background-color: ${lightGrey$
|
|
2115
|
+
background-color: ${lightGrey$9};
|
|
2114
2116
|
}
|
|
2115
2117
|
}
|
|
2116
2118
|
}
|
|
@@ -2198,14 +2200,14 @@ const Toggle = ({
|
|
|
2198
2200
|
};
|
|
2199
2201
|
|
|
2200
2202
|
const {
|
|
2201
|
-
red: red$
|
|
2202
|
-
grey: grey$
|
|
2203
|
-
lightGrey: lightGrey$
|
|
2204
|
-
darkGrey
|
|
2205
|
-
green: green$
|
|
2206
|
-
darkGreen: darkGreen$
|
|
2207
|
-
light: light$
|
|
2208
|
-
normal: normal$
|
|
2203
|
+
red: red$6,
|
|
2204
|
+
grey: grey$b,
|
|
2205
|
+
lightGrey: lightGrey$a,
|
|
2206
|
+
darkGrey,
|
|
2207
|
+
green: green$5,
|
|
2208
|
+
darkGreen: darkGreen$2,
|
|
2209
|
+
light: light$8,
|
|
2210
|
+
normal: normal$5
|
|
2209
2211
|
} = colors;
|
|
2210
2212
|
const Wrapper$6 = _styled.div`
|
|
2211
2213
|
input {
|
|
@@ -2221,9 +2223,9 @@ const Wrapper$6 = _styled.div`
|
|
|
2221
2223
|
margin-bottom: 0 !important;
|
|
2222
2224
|
border-width: ${props => props.minimal ? `0 0 ${rem('1px')} 0` : rem('1px')};
|
|
2223
2225
|
border-style: solid;
|
|
2224
|
-
border-color: ${props => props.error ? red$
|
|
2226
|
+
border-color: ${props => props.error ? red$6 : grey$b};
|
|
2225
2227
|
border-radius: ${props => props.minimal ? 0 : rem('6px')};
|
|
2226
|
-
background-color: ${props => props.disabled ? lightGrey$
|
|
2228
|
+
background-color: ${props => props.disabled ? lightGrey$a : 'transparent'};
|
|
2227
2229
|
display: flex;
|
|
2228
2230
|
justify-content: space-between;
|
|
2229
2231
|
align-items: center;
|
|
@@ -2243,34 +2245,34 @@ const Wrapper$6 = _styled.div`
|
|
|
2243
2245
|
flex: 1;
|
|
2244
2246
|
display: block;
|
|
2245
2247
|
padding: ${props => props.minimal ? 0 : `0 ${rem('10px')}`};
|
|
2246
|
-
color: ${props => props.disabled ? grey$
|
|
2248
|
+
color: ${props => props.disabled ? grey$b : normal$5};
|
|
2247
2249
|
white-space: nowrap;
|
|
2248
2250
|
overflow: hidden;
|
|
2249
2251
|
text-overflow: ellipsis;
|
|
2250
2252
|
}
|
|
2251
2253
|
|
|
2252
2254
|
&.button {
|
|
2253
|
-
border-left: ${props => props.minimal ? 0 : `${rem('1px')} solid ${grey$
|
|
2254
|
-
background-color: ${props => props.minimal ? 'transparent' : props.disabled ? lightGrey$
|
|
2255
|
+
border-left: ${props => props.minimal ? 0 : `${rem('1px')} solid ${grey$b}`};
|
|
2256
|
+
background-color: ${props => props.minimal ? 'transparent' : props.disabled ? lightGrey$a : green$5};
|
|
2255
2257
|
height: 100%;
|
|
2256
2258
|
padding: ${props => props.minimal ? `0 ${rem('5px')} 0 ${rem('20px')}` : `0 ${rem('20px')}`};
|
|
2257
|
-
color: ${props => props.disabled ? grey$
|
|
2259
|
+
color: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2258
2260
|
transition-duration: 0.3s;
|
|
2259
2261
|
|
|
2260
2262
|
svg {
|
|
2261
2263
|
margin-right: ${/*#__PURE__*/rem('8px')};
|
|
2262
2264
|
width: auto;
|
|
2263
2265
|
height: ${/*#__PURE__*/rem('24px')};
|
|
2264
|
-
fill: ${props => props.disabled ? grey$
|
|
2266
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2265
2267
|
transition-duration: 0.3s;
|
|
2266
2268
|
}
|
|
2267
2269
|
|
|
2268
2270
|
&:hover {
|
|
2269
|
-
background-color: ${props => props.minimal ? 'transparent' : darkGreen$
|
|
2270
|
-
color: ${props => props.minimal ? darkGreen$
|
|
2271
|
+
background-color: ${props => props.minimal ? 'transparent' : darkGreen$2};
|
|
2272
|
+
color: ${props => props.minimal ? darkGreen$2 : light$8};
|
|
2271
2273
|
|
|
2272
2274
|
svg {
|
|
2273
|
-
fill: ${props => props.disabled ? grey$
|
|
2275
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGreen$2 : light$8};
|
|
2274
2276
|
}
|
|
2275
2277
|
}
|
|
2276
2278
|
}
|
|
@@ -2332,10 +2334,10 @@ const FilePicker = props => {
|
|
|
2332
2334
|
};
|
|
2333
2335
|
|
|
2334
2336
|
const {
|
|
2335
|
-
normal: normal$
|
|
2336
|
-
light: light$
|
|
2337
|
-
lightGrey: lightGrey$
|
|
2338
|
-
red: red$
|
|
2337
|
+
normal: normal$6,
|
|
2338
|
+
light: light$9,
|
|
2339
|
+
lightGrey: lightGrey$b,
|
|
2340
|
+
red: red$7
|
|
2339
2341
|
} = colors;
|
|
2340
2342
|
const ActionsMenuStyle$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
2341
2343
|
displayName: "styles__ActionsMenuStyle",
|
|
@@ -2344,11 +2346,11 @@ const ActionsMenuStyle$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2344
2346
|
const List = /*#__PURE__*/_styled.ul.withConfig({
|
|
2345
2347
|
displayName: "styles__List",
|
|
2346
2348
|
componentId: "sc-1peafop-1"
|
|
2347
|
-
})(["position:absolute;border:", " solid ", ";border-radius:", ";background-color:", ";margin-top:", ";min-width:", ";max-width:", ";padding:0;-moz-box-shadow:0 0 ", " 0 ", ";-webkit-box-shadow:0 0 ", " 0 ", ";box-shadow:0 0 ", " 0 ", ";z-index:1;", " li{list-style:none;min-height:", ";display:flex;transition-duration:0.3s;&:hover{background-color:", ";cursor:pointer;}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border-radius:0 0 ", " ", ";}&.danger{border-top:", " solid ", ";a{color:", ";}}&.disabled{a{color:", ";pointer-events:none;}&:hover{background-color:transparent;}}a{width:100%;display:flex;align-items:center;padding:0 ", ";color:", ";text-decoration:none;white-space:nowrap;span{display:table-cell;overflow:hidden;text-overflow:ellipsis;}}}"], /*#__PURE__*/rem('1px'), lightGrey$
|
|
2349
|
+
})(["position:absolute;border:", " solid ", ";border-radius:", ";background-color:", ";margin-top:", ";min-width:", ";max-width:", ";padding:0;-moz-box-shadow:0 0 ", " 0 ", ";-webkit-box-shadow:0 0 ", " 0 ", ";box-shadow:0 0 ", " 0 ", ";z-index:1;", " li{list-style:none;min-height:", ";display:flex;transition-duration:0.3s;&:hover{background-color:", ";cursor:pointer;}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border-radius:0 0 ", " ", ";}&.danger{border-top:", " solid ", ";a{color:", ";}}&.disabled{a{color:", ";pointer-events:none;}&:hover{background-color:transparent;}}a{width:100%;display:flex;align-items:center;padding:0 ", ";color:", ";text-decoration:none;white-space:nowrap;span{display:table-cell;overflow:hidden;text-overflow:ellipsis;}}}"], /*#__PURE__*/rem('1px'), lightGrey$b, /*#__PURE__*/rem('4px'), light$9, /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('200px'), /*#__PURE__*/rem('250px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/lighten(0.7, normal$6), /*#__PURE__*/rem('15px'), /*#__PURE__*/lighten(0.7, normal$6), /*#__PURE__*/rem('15px'), /*#__PURE__*/lighten(0.7, normal$6), props => props.rowIndex != undefined && css`
|
|
2348
2350
|
--margin: ${`calc(${rem('45px')} + ${rem('50px')} * ${props.rowIndex} + ${rem('42px')})`};
|
|
2349
2351
|
top: var(--margin);
|
|
2350
2352
|
right: ${rem('5px')};
|
|
2351
|
-
`, /*#__PURE__*/rem('45px'), lightGrey$
|
|
2353
|
+
`, /*#__PURE__*/rem('45px'), lightGrey$b, /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('1px'), lightGrey$b, red$7, lightGrey$b, /*#__PURE__*/rem('20px'), normal$6);
|
|
2352
2354
|
|
|
2353
2355
|
const ActionMenuList = props => {
|
|
2354
2356
|
const {
|
|
@@ -2421,13 +2423,13 @@ const ActionsMenu = props => {
|
|
|
2421
2423
|
};
|
|
2422
2424
|
|
|
2423
2425
|
const {
|
|
2424
|
-
light: light$
|
|
2425
|
-
grey: grey$
|
|
2426
|
+
light: light$a,
|
|
2427
|
+
grey: grey$c
|
|
2426
2428
|
} = colors;
|
|
2427
2429
|
const CardValueStyle = /*#__PURE__*/_styled.div.withConfig({
|
|
2428
2430
|
displayName: "styles__CardValueStyle",
|
|
2429
2431
|
componentId: "sc-1ki7jdk-0"
|
|
2430
|
-
})(["border:", " solid ", ";border-radius:", ";background-color:", ";display:flex;flex-direction:column;padding:", ";overflow-x:auto;@media ", "{padding:", ";}> span{display:block;margin-top:", ";font-size:2rem;font-weight:var(--bold,700);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"], /*#__PURE__*/rem('1px'), grey$
|
|
2432
|
+
})(["border:", " solid ", ";border-radius:", ";background-color:", ";display:flex;flex-direction:column;padding:", ";overflow-x:auto;@media ", "{padding:", ";}> span{display:block;margin-top:", ";font-size:2rem;font-weight:var(--bold,700);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"], /*#__PURE__*/rem('1px'), grey$c, /*#__PURE__*/rem('6px'), light$a, /*#__PURE__*/rem('15px'), device.l, /*#__PURE__*/rem('30px'), /*#__PURE__*/rem('5px'));
|
|
2431
2433
|
const CardValueButtonWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2432
2434
|
displayName: "styles__CardValueButtonWrapper",
|
|
2433
2435
|
componentId: "sc-1ki7jdk-1"
|
|
@@ -2458,12 +2460,12 @@ const CardValue = props => {
|
|
|
2458
2460
|
};
|
|
2459
2461
|
|
|
2460
2462
|
const {
|
|
2461
|
-
grey: grey$
|
|
2462
|
-
light: light$
|
|
2463
|
+
grey: grey$d,
|
|
2464
|
+
light: light$b
|
|
2463
2465
|
} = colors;
|
|
2464
2466
|
const {
|
|
2465
|
-
bold: bold$
|
|
2466
|
-
} =
|
|
2467
|
+
bold: bold$2
|
|
2468
|
+
} = typography;
|
|
2467
2469
|
const EmptyTableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2468
2470
|
displayName: "styles__EmptyTableWrapper",
|
|
2469
2471
|
componentId: "sc-1dgsb9l-0"
|
|
@@ -2471,15 +2473,15 @@ const EmptyTableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2471
2473
|
const EmptyTableHead = /*#__PURE__*/_styled.div.withConfig({
|
|
2472
2474
|
displayName: "styles__EmptyTableHead",
|
|
2473
2475
|
componentId: "sc-1dgsb9l-1"
|
|
2474
|
-
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:", " ", " 0 0;height:", ";display:flex;align-items:center;font-size:0.85rem;font-weight:", ";color:", ";text-transform:uppercase;> div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:none;flex:1;padding:0 ", ";font-size:0.85rem;font-weight:", ";color:", ";text-transform:uppercase;&:first-child,&:nth-child(2){display:initial;}@media ", "{&:nth-child(3){display:initial;}}@media ", "{&:nth-child(4){display:initial;}}@media ", "{display:initial;}}"], props => props.border ? rem('1px') : `0 0 ${rem('1px')} 0`, grey$
|
|
2476
|
+
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:", " ", " 0 0;height:", ";display:flex;align-items:center;font-size:0.85rem;font-weight:", ";color:", ";text-transform:uppercase;> div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:none;flex:1;padding:0 ", ";font-size:0.85rem;font-weight:", ";color:", ";text-transform:uppercase;&:first-child,&:nth-child(2){display:initial;}@media ", "{&:nth-child(3){display:initial;}}@media ", "{&:nth-child(4){display:initial;}}@media ", "{display:initial;}}"], props => props.border ? rem('1px') : `0 0 ${rem('1px')} 0`, grey$d, /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('50px'), bold$2, grey$d, /*#__PURE__*/rem('15px'), bold$2, grey$d, device.s, device.m, device.l);
|
|
2475
2477
|
const EmptyTableBody = /*#__PURE__*/_styled.div.withConfig({
|
|
2476
2478
|
displayName: "styles__EmptyTableBody",
|
|
2477
2479
|
componentId: "sc-1dgsb9l-2"
|
|
2478
|
-
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:0 0 ", " ", ";"], props => props.border ? `0 ${rem('1px')} ${rem('1px')} ${rem('1px')}` : 0, grey$
|
|
2480
|
+
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:0 0 ", " ", ";"], props => props.border ? `0 ${rem('1px')} ${rem('1px')} ${rem('1px')}` : 0, grey$d, /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('6px'));
|
|
2479
2481
|
const EmptyTableRow = /*#__PURE__*/_styled.div.withConfig({
|
|
2480
2482
|
displayName: "styles__EmptyTableRow",
|
|
2481
2483
|
componentId: "sc-1dgsb9l-3"
|
|
2482
|
-
})(["height:", ";display:flex;align-items:center;&:not(:last-child){border-bottom:", " solid ", ";}> div{display:none;flex:1;padding:0 ", ";&:first-child,&:nth-child(2){display:inherit;}@media ", "{&:nth-child(3){display:inherit;}}@media ", "{&:nth-child(4){display:inherit;}}@media ", "{display:inherit;}}"], /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('1px'), grey$
|
|
2484
|
+
})(["height:", ";display:flex;align-items:center;&:not(:last-child){border-bottom:", " solid ", ";}> div{display:none;flex:1;padding:0 ", ";&:first-child,&:nth-child(2){display:inherit;}@media ", "{&:nth-child(3){display:inherit;}}@media ", "{&:nth-child(4){display:inherit;}}@media ", "{display:inherit;}}"], /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('1px'), grey$d, /*#__PURE__*/rem('15px'), device.s, device.m, device.l);
|
|
2483
2485
|
const EmptyTableCellText = /*#__PURE__*/_styled.div.withConfig({
|
|
2484
2486
|
displayName: "styles__EmptyTableCellText",
|
|
2485
2487
|
componentId: "sc-1dgsb9l-4"
|
|
@@ -2487,7 +2489,7 @@ const EmptyTableCellText = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2487
2489
|
const EmptyTableOverlay = /*#__PURE__*/_styled.div.withConfig({
|
|
2488
2490
|
displayName: "styles__EmptyTableOverlay",
|
|
2489
2491
|
componentId: "sc-1dgsb9l-5"
|
|
2490
|
-
})(["position:absolute;bottom:0;background-image:linear-gradient( to bottom,", ",", " );width:100%;height:calc(100% - ", ");display:flex;justify-content:center;align-items:flex-end;padding:0 ", " ", " ", ";text-align:center;color:", ";"], /*#__PURE__*/rgba(light$
|
|
2492
|
+
})(["position:absolute;bottom:0;background-image:linear-gradient( to bottom,", ",", " );width:100%;height:calc(100% - ", ");display:flex;justify-content:center;align-items:flex-end;padding:0 ", " ", " ", ";text-align:center;color:", ";"], /*#__PURE__*/rgba(light$b, 0), /*#__PURE__*/rgba(light$b, 1), /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('15px'), grey$d);
|
|
2491
2493
|
|
|
2492
2494
|
const EmptyTable = props => {
|
|
2493
2495
|
let rows = [];
|
|
@@ -2547,31 +2549,31 @@ const ModalFooter = props => {
|
|
|
2547
2549
|
};
|
|
2548
2550
|
|
|
2549
2551
|
const {
|
|
2550
|
-
green: green$
|
|
2552
|
+
green: green$6,
|
|
2551
2553
|
lightGreen,
|
|
2552
|
-
darkGreen: darkGreen$
|
|
2553
|
-
grey: grey$
|
|
2554
|
-
lightGrey: lightGrey$
|
|
2555
|
-
darkGrey: darkGrey$
|
|
2556
|
-
red: red$
|
|
2554
|
+
darkGreen: darkGreen$3,
|
|
2555
|
+
grey: grey$e,
|
|
2556
|
+
lightGrey: lightGrey$c,
|
|
2557
|
+
darkGrey: darkGrey$1,
|
|
2558
|
+
red: red$8,
|
|
2557
2559
|
lightRed: lightRed$1,
|
|
2558
|
-
darkRed: darkRed$
|
|
2560
|
+
darkRed: darkRed$1
|
|
2559
2561
|
} = colors;
|
|
2560
2562
|
const Wrapper$7 = /*#__PURE__*/_styled.div.withConfig({
|
|
2561
2563
|
displayName: "styles__Wrapper",
|
|
2562
2564
|
componentId: "d2fn4g-0"
|
|
2563
|
-
})(["--default:", ";--light:", ";--dark:", ";", " ", " ", " border-width:", ";border-style:solid;border-color:var(--default);border-radius:", ";background-color:var(--light);padding:", ";div{&:first-child{flex:1;}p{margin:0;}}", ""], grey$
|
|
2564
|
-
--default: ${grey$
|
|
2565
|
-
--light: ${lightGrey$
|
|
2566
|
-
--dark: ${darkGrey$
|
|
2565
|
+
})(["--default:", ";--light:", ";--dark:", ";", " ", " ", " border-width:", ";border-style:solid;border-color:var(--default);border-radius:", ";background-color:var(--light);padding:", ";div{&:first-child{flex:1;}p{margin:0;}}", ""], grey$e, lightGrey$c, darkGrey$1, props => props.color === 'grey' && css`
|
|
2566
|
+
--default: ${grey$e};
|
|
2567
|
+
--light: ${lightGrey$c};
|
|
2568
|
+
--dark: ${darkGrey$1};
|
|
2567
2569
|
`, props => props.color === 'green' && css`
|
|
2568
|
-
--default: ${green$
|
|
2570
|
+
--default: ${green$6};
|
|
2569
2571
|
--light: ${lightGreen};
|
|
2570
|
-
--dark: ${darkGreen$
|
|
2572
|
+
--dark: ${darkGreen$3};
|
|
2571
2573
|
`, props => props.color === 'red' && css`
|
|
2572
|
-
--default: ${red$
|
|
2574
|
+
--default: ${red$8};
|
|
2573
2575
|
--light: ${lightRed$1};
|
|
2574
|
-
--dark: ${darkRed$
|
|
2576
|
+
--dark: ${darkRed$1};
|
|
2575
2577
|
`, /*#__PURE__*/rem('2px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('15px'), props => props.buttonValue && css`
|
|
2576
2578
|
button {
|
|
2577
2579
|
margin: ${rem('30px')} 0 0 0;
|
|
@@ -2630,14 +2632,14 @@ function hasValue(value) {
|
|
|
2630
2632
|
}
|
|
2631
2633
|
|
|
2632
2634
|
const {
|
|
2633
|
-
normal: normal$
|
|
2634
|
-
light: light$
|
|
2635
|
-
grey: grey$
|
|
2636
|
-
lightGrey: lightGrey$
|
|
2635
|
+
normal: normal$7,
|
|
2636
|
+
light: light$c,
|
|
2637
|
+
grey: grey$f,
|
|
2638
|
+
lightGrey: lightGrey$d
|
|
2637
2639
|
} = colors;
|
|
2638
2640
|
const {
|
|
2639
|
-
bold: bold$
|
|
2640
|
-
} =
|
|
2641
|
+
bold: bold$3
|
|
2642
|
+
} = typography;
|
|
2641
2643
|
const TableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2642
2644
|
displayName: "styles__TableWrapper",
|
|
2643
2645
|
componentId: "vmoy3z-0"
|
|
@@ -2645,21 +2647,46 @@ const TableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2645
2647
|
const OverflowWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2646
2648
|
displayName: "styles__OverflowWrapper",
|
|
2647
2649
|
componentId: "vmoy3z-1"
|
|
2648
|
-
})(["@media ", "{display:block;border-radius:", ";background:linear-gradient(to right,", " 30%,rgba(255,255,255,0)),linear-gradient(to right,rgba(255,255,255,0),", " 70%) 0 100%,radial-gradient( farthest-side at 0% 50%,rgba(0,0,0,0.2),rgba(0,0,0,0) ),radial-gradient( farthest-side at 100% 50%,rgba(0,0,0,0.2),rgba(0,0,0,0) ) 0 100%;background-repeat:no-repeat;background-color:#fff;background-size:", " 100%,", " 100%,", " 100%,", " 100%;background-position:0 0,100%,0 0,100%;background-attachment:local,local,scroll,scroll;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;}"], device.s, /*#__PURE__*/rem('6px'), light$
|
|
2650
|
+
})(["@media ", "{display:block;border-radius:", ";background:linear-gradient(to right,", " 30%,rgba(255,255,255,0)),linear-gradient(to right,rgba(255,255,255,0),", " 70%) 0 100%,radial-gradient( farthest-side at 0% 50%,rgba(0,0,0,0.2),rgba(0,0,0,0) ),radial-gradient( farthest-side at 100% 50%,rgba(0,0,0,0.2),rgba(0,0,0,0) ) 0 100%;background-repeat:no-repeat;background-color:#fff;background-size:", " 100%,", " 100%,", " 100%,", " 100%;background-position:0 0,100%,0 0,100%;background-attachment:local,local,scroll,scroll;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;}"], device.s, /*#__PURE__*/rem('6px'), light$c, light$c, /*#__PURE__*/rem('40px'), /*#__PURE__*/rem('40px'), /*#__PURE__*/rem('14px'), /*#__PURE__*/rem('14px'));
|
|
2649
2651
|
const Table = /*#__PURE__*/_styled.table.withConfig({
|
|
2650
2652
|
displayName: "styles__Table",
|
|
2651
2653
|
componentId: "vmoy3z-2"
|
|
2652
|
-
})(["width:100%;border-width:
|
|
2654
|
+
})(["width:100%;border-width:0;border-style:solid;border-color:", ";border-radius:", ";border-spacing:0;white-space:nowrap;@media ", "{border-width:", ";}th,td{height:", ";padding:0 ", ";&.center{text-align:center;> div{justify-content:center;}}&.right{text-align:right;> div{justify-content:flex-end;}}&.thin{@media ", "{max-width:min-content;}}&.kai{text-align:right;> div{justify-content:flex-end;}}&.avatar > div{display:flex;align-items:center;.avatar-img{margin-right:", ";}}}th{font-size:0.85rem;&:first-child{border-top-left-radius:", ";}&:last-child{border-top-right-radius:", ";}}tr{border:", " solid ", ";border-radius:", ";position:relative;&:not(:last-child){margin-bottom:", ";}@media ", "{border:0;}}thead{border:none;clip:rect(0 0 0 0);height:", ";margin:", ";overflow:hidden;padding:0;position:absolute;width:", ";@media ", "{display:contents;font-weight:", ";color:", ";text-transform:uppercase;text-align:left;}}tbody{tr{display:block;transition-duration:0.3s;&:hover{background-color:", ";td.menu{button{opacity:1;}}}@media ", "{display:table-row;}}td{border-top:", " solid ", ";height:inherit;min-height:", ";padding:", ";display:flex;justify-content:flex-end;align-items:center;> div{margin-left:", ";height:100%;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;text-align:right;> span{display:none;&:first-child,&:last-child{display:inherit;}}}img{min-width:", ";min-height:", ";}a{display:flex;align-items:center;color:", ";text-decoration-color:", ";}&:first-child{border:0;}&:before{position:absolute;left:", ";content:attr(data-label);font-weight:", ";text-transform:capitalize;", "}&.kai{svg{float:right;width:auto;min-width:", ";max-height:", ";}}.avatar-img{display:none;}.tag{margin:0;&:not(:first-child){display:none;}}&.menu{padding:0 ", " 0 0;button{margin-top:", ";transition:0.3s;}ul{top:", ";margin-left:", ";}}@media ", "{display:table-cell;height:", ";padding:0 ", ";> div{position:relative;margin-left:0;display:flex-start;justify-content:flex-start;text-align:left;> span{display:inherit;}}&:first-child{border-top:", " solid ", ";}&:before{content:'';}&.kai{max-width:", ";}.avatar-img{display:inherit;}.tag{&:not(:first-child){display:inherit;}&:not(:last-child){margin-right:", ";}}&.menu{width:", ";button{opacity:0;}}}}}"], grey$f, /*#__PURE__*/rem('6px'), device.s, props => props.border ? rem('1px') : '0', /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('15px'), device.s, /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('1px'), grey$f, /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('15px'), device.s, /*#__PURE__*/rem('1px'), /*#__PURE__*/rem('-1px'), /*#__PURE__*/rem('1px'), device.s, bold$3, grey$f, props => props.loadingState ? 'transparent' : lightGrey$d, device.s, /*#__PURE__*/rem('1px'), grey$f, /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('100px'), /*#__PURE__*/rem('30px'), /*#__PURE__*/rem('30px'), normal$7, grey$f, /*#__PURE__*/rem('15px'), bold$3, props => props.loadingState && css`
|
|
2655
|
+
width: ${rem('75px')};
|
|
2656
|
+
height: ${rem('15px')};
|
|
2657
|
+
background: #f6f7f8;
|
|
2658
|
+
background-image: -webkit-linear-gradient(
|
|
2659
|
+
left,
|
|
2660
|
+
#f6f7f8 0%,
|
|
2661
|
+
#edeef1 20%,
|
|
2662
|
+
#f6f7f8 40%,
|
|
2663
|
+
#f6f7f8 100%
|
|
2664
|
+
);
|
|
2665
|
+
background-repeat: no-repeat;
|
|
2666
|
+
background-size: ${rem('800px')} 100%;
|
|
2667
|
+
animation-fill-mode: forwards;
|
|
2668
|
+
animation-name: placeholderSkeleton;
|
|
2669
|
+
animation-timing-function: linear;
|
|
2670
|
+
animation-iteration-count: infinite;
|
|
2671
|
+
animation-duration: 1.5s;
|
|
2672
|
+
`, /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('10px'), /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('36px'), /*#__PURE__*/rem('-170px'), device.s, /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('1px'), grey$f, /*#__PURE__*/rem('100px'), /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('40px'));
|
|
2673
|
+
const SkeletonCell = /*#__PURE__*/_styled.div.withConfig({
|
|
2674
|
+
displayName: "styles__SkeletonCell",
|
|
2675
|
+
componentId: "vmoy3z-3"
|
|
2676
|
+
})(["@keyframes placeholderSkeleton{0%{background-position:", " 0;}100%{background-position:", " 0;}}width:100%;height:", " !important;background:#f6f7f8;background-image:-webkit-linear-gradient( left,#f6f7f8 0%,#edeef1 20%,#f6f7f8 40%,#f6f7f8 100% );background-repeat:no-repeat;background-size:", " 100%;animation-fill-mode:forwards;animation-name:placeholderSkeleton;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:1.5s;"], /*#__PURE__*/rem('-800px'), /*#__PURE__*/rem('800px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('800px'));
|
|
2653
2677
|
|
|
2654
2678
|
const Table$1 = props => {
|
|
2655
2679
|
const {
|
|
2656
|
-
border =
|
|
2680
|
+
border = true,
|
|
2657
2681
|
options,
|
|
2658
2682
|
values = [],
|
|
2659
2683
|
actions = [],
|
|
2660
2684
|
dataTestId = 'table-test-id',
|
|
2661
2685
|
menuDataTestId = 'table-action-menu',
|
|
2662
2686
|
actionMenuTestId = 'icon-button',
|
|
2687
|
+
loading = false,
|
|
2688
|
+
loadingColumns = 4,
|
|
2689
|
+
loadingRows = 20,
|
|
2663
2690
|
showEmpty = false,
|
|
2664
2691
|
emptyValue = 'No Data',
|
|
2665
2692
|
className = 'table',
|
|
@@ -2679,6 +2706,9 @@ const Table$1 = props => {
|
|
|
2679
2706
|
const hasActionMenu = actions.length > 0;
|
|
2680
2707
|
const validValues = values.filter(hasValue);
|
|
2681
2708
|
const hasValues = Array.isArray(values) && values.length > 0;
|
|
2709
|
+
const headSkeleton = /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(SkeletonCell, null));
|
|
2710
|
+
const cellSkeleton = /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement(SkeletonCell, null));
|
|
2711
|
+
const columnsSkeleton = columns.length > 0 ? columns.length : loadingColumns;
|
|
2682
2712
|
|
|
2683
2713
|
if (showEmpty && !hasValues) {
|
|
2684
2714
|
const columnHeaders = columns.map(column => column.value);
|
|
@@ -2693,8 +2723,11 @@ const Table$1 = props => {
|
|
|
2693
2723
|
border: border,
|
|
2694
2724
|
"data-testid": dataTestId,
|
|
2695
2725
|
className: className,
|
|
2696
|
-
style: style
|
|
2697
|
-
|
|
2726
|
+
style: style,
|
|
2727
|
+
loadingState: loading
|
|
2728
|
+
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, loading && !columns ? Array.from({
|
|
2729
|
+
length: loadingColumns
|
|
2730
|
+
}, () => headSkeleton) : columns.map(({
|
|
2698
2731
|
id = '',
|
|
2699
2732
|
className = '',
|
|
2700
2733
|
value = '',
|
|
@@ -2703,7 +2736,11 @@ const Table$1 = props => {
|
|
|
2703
2736
|
key: id,
|
|
2704
2737
|
className: className,
|
|
2705
2738
|
"data-testid": colDataTestId ? `th-${colDataTestId}` : null
|
|
2706
|
-
}, value)), hasActionMenu && /*#__PURE__*/React.createElement("th", null))), /*#__PURE__*/React.createElement("tbody", null,
|
|
2739
|
+
}, value)), !loading && hasActionMenu && /*#__PURE__*/React.createElement("th", null))), /*#__PURE__*/React.createElement("tbody", null, loading ? Array.from({
|
|
2740
|
+
length: loadingRows
|
|
2741
|
+
}, () => /*#__PURE__*/React.createElement("tr", null, Array.from({
|
|
2742
|
+
length: columnsSkeleton
|
|
2743
|
+
}, () => cellSkeleton))) : validValues.map((row, index) => /*#__PURE__*/React.createElement("tr", {
|
|
2707
2744
|
key: row.id,
|
|
2708
2745
|
"data-testid": `row-${dataTestId}`
|
|
2709
2746
|
}, columns.map(({
|
|
@@ -2749,24 +2786,24 @@ const Table$1 = props => {
|
|
|
2749
2786
|
};
|
|
2750
2787
|
|
|
2751
2788
|
const {
|
|
2752
|
-
normal: normal$
|
|
2753
|
-
grey: grey$
|
|
2754
|
-
lightGrey: lightGrey$
|
|
2789
|
+
normal: normal$8,
|
|
2790
|
+
grey: grey$g,
|
|
2791
|
+
lightGrey: lightGrey$e
|
|
2755
2792
|
} = colors;
|
|
2756
2793
|
const {
|
|
2757
|
-
bold: bold$
|
|
2758
|
-
} =
|
|
2794
|
+
bold: bold$4
|
|
2795
|
+
} = typography;
|
|
2759
2796
|
const Table$2 = /*#__PURE__*/_styled.table.withConfig({
|
|
2760
2797
|
displayName: "styles__Table",
|
|
2761
2798
|
componentId: "sc-1p618q0-0"
|
|
2762
|
-
})(["position:relative;width:100%;border-width:", ";border-style:solid;border-color:", ";border-radius:", ";border-spacing:0;white-space:nowrap;table-layout:", ";th,td{height:", ";padding:0 ", ";&.center{text-align:center;> div{justify-content:center;}}&.right{text-align:right;> div{justify-content:flex-end;}}&.thin{@media ", "{max-width:min-content;}}&.kai{text-align:right;> div{justify-content:flex-end;}}&.avatar > div{display:flex;align-items:center;.avatar-img{margin-right:", ";}}}th{font-size:0.85rem;&:first-child{border-top-left-radius:", ";}&:last-child{border-top-right-radius:", ";}}tr{border:", " solid ", ";border-radius:", ";position:relative;&:not(:last-child){margin-bottom:", ";}@media ", "{border:0;}}thead{border:none;clip:rect(0 0 0 0);height:", ";margin:", ";overflow:hidden;padding:0;position:absolute;width:", ";@media ", "{display:contents;font-weight:", ";color:", ";text-transform:uppercase;text-align:left;}}tbody{tr{display:block;transition-duration:0.3s;&:hover{background-color:", ";td{&.drag-handle{svg{fill:", ";}}&.menu{button{opacity:1;}}}}@media ", "{display:table-row;}}td{border-top:", " solid ", ";height:inherit;min-height:", ";padding:", ";display:flex;justify-content:flex-end;&.drag-handle{> div{width:min-content;}svg{width:", ";height:", ";fill:", ";transition-duration:0.3s;}}> div{margin-left:", ";height:100%;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;text-align:right;> span{display:none;&:first-child,&:last-child{display:inherit;}}}img{min-width:", ";min-height:", ";}a{display:flex;align-items:center;color:", ";text-decoration-color:", ";}&:first-child{border:0;}&:before{position:absolute;left:", ";content:attr(data-label);font-weight:", ";text-transform:capitalize;}&.kai{svg{float:right;width:auto;min-width:", ";max-height:", ";}}.avatar-img{display:none;}.tag{margin:0;&:not(:first-child){display:none;}}&.menu{padding:0 ", " 0 0;button{margin-top:", ";transition:0.3s;}ul{top:", ";margin-left:", ";}}@media ", "{display:table-cell;height:", ";padding:0 ", ";align-items:center;> div{position:relative;margin-left:0;display:flex-start;justify-content:flex-start;text-align:left;> span{display:inherit;}}&:first-child{border-top:", " solid ", ";}&:before{content:'';}&.kai{max-width:", ";}.avatar-img{display:inherit;}.tag{&:not(:first-child){display:inherit;}&:not(:last-child){margin-right:", ";}}&.menu{width:", ";button{opacity:0;}}}}}"], props => props.border ? '1px' : '0', grey$
|
|
2799
|
+
})(["position:relative;width:100%;border-width:", ";border-style:solid;border-color:", ";border-radius:", ";border-spacing:0;white-space:nowrap;table-layout:", ";th,td{height:", ";padding:0 ", ";&.center{text-align:center;> div{justify-content:center;}}&.right{text-align:right;> div{justify-content:flex-end;}}&.thin{@media ", "{max-width:min-content;}}&.kai{text-align:right;> div{justify-content:flex-end;}}&.avatar > div{display:flex;align-items:center;.avatar-img{margin-right:", ";}}}th{font-size:0.85rem;&:first-child{border-top-left-radius:", ";}&:last-child{border-top-right-radius:", ";}}tr{border:", " solid ", ";border-radius:", ";position:relative;&:not(:last-child){margin-bottom:", ";}@media ", "{border:0;}}thead{border:none;clip:rect(0 0 0 0);height:", ";margin:", ";overflow:hidden;padding:0;position:absolute;width:", ";@media ", "{display:contents;font-weight:", ";color:", ";text-transform:uppercase;text-align:left;}}tbody{tr{display:block;transition-duration:0.3s;&:hover{background-color:", ";td{&.drag-handle{svg{fill:", ";}}&.menu{button{opacity:1;}}}}@media ", "{display:table-row;}}td{border-top:", " solid ", ";height:inherit;min-height:", ";padding:", ";display:flex;justify-content:flex-end;&.drag-handle{> div{width:min-content;}svg{width:", ";height:", ";fill:", ";transition-duration:0.3s;}}> div{margin-left:", ";height:100%;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;text-align:right;> span{display:none;&:first-child,&:last-child{display:inherit;}}}img{min-width:", ";min-height:", ";}a{display:flex;align-items:center;color:", ";text-decoration-color:", ";}&:first-child{border:0;}&:before{position:absolute;left:", ";content:attr(data-label);font-weight:", ";text-transform:capitalize;}&.kai{svg{float:right;width:auto;min-width:", ";max-height:", ";}}.avatar-img{display:none;}.tag{margin:0;&:not(:first-child){display:none;}}&.menu{padding:0 ", " 0 0;button{margin-top:", ";transition:0.3s;}ul{top:", ";margin-left:", ";}}@media ", "{display:table-cell;height:", ";padding:0 ", ";align-items:center;> div{position:relative;margin-left:0;display:flex-start;justify-content:flex-start;text-align:left;> span{display:inherit;}}&:first-child{border-top:", " solid ", ";}&:before{content:'';}&.kai{max-width:", ";}.avatar-img{display:inherit;}.tag{&:not(:first-child){display:inherit;}&:not(:last-child){margin-right:", ";}}&.menu{width:", ";button{opacity:0;}}}}}"], props => props.border ? '1px' : '0', grey$g, /*#__PURE__*/rem('6px'), props => props.layout, /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('15px'), device.s, /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('1px'), grey$g, /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('15px'), device.s, /*#__PURE__*/rem('1px'), /*#__PURE__*/rem('-1px'), /*#__PURE__*/rem('1px'), device.s, bold$4, grey$g, lightGrey$e, grey$g, device.s, /*#__PURE__*/rem('1px'), grey$g, /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('30px'), /*#__PURE__*/rem('30px'), grey$g, /*#__PURE__*/rem('100px'), /*#__PURE__*/rem('30px'), /*#__PURE__*/rem('30px'), normal$8, grey$g, /*#__PURE__*/rem('15px'), bold$4, /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('10px'), /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('36px'), /*#__PURE__*/rem('-170px'), device.s, /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('1px'), grey$g, /*#__PURE__*/rem('100px'), /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('40px'));
|
|
2763
2800
|
const TableRow = /*#__PURE__*/_styled.tr.withConfig({
|
|
2764
2801
|
displayName: "styles__TableRow",
|
|
2765
2802
|
componentId: "sc-1p618q0-1"
|
|
2766
2803
|
})(["&[data-rbd-draggable-id='", "']{position:absolute;display:table;width:100%;}"], props => props.draggableId);
|
|
2767
2804
|
|
|
2768
2805
|
const {
|
|
2769
|
-
light: light$
|
|
2806
|
+
light: light$d
|
|
2770
2807
|
} = colors;
|
|
2771
2808
|
|
|
2772
2809
|
const TableDnD = props => {
|
|
@@ -2821,12 +2858,12 @@ const TableDnD = props => {
|
|
|
2821
2858
|
|
|
2822
2859
|
const getItemStyle = (isDragging, draggableStyle) => ({
|
|
2823
2860
|
userSelect: 'none',
|
|
2824
|
-
background: isDragging ? light$
|
|
2861
|
+
background: isDragging ? light$d : 'transparent',
|
|
2825
2862
|
...draggableStyle
|
|
2826
2863
|
});
|
|
2827
2864
|
|
|
2828
2865
|
const getListStyle = isDraggingOver => ({
|
|
2829
|
-
background: isDraggingOver ? light$
|
|
2866
|
+
background: isDraggingOver ? light$d : 'transparent'
|
|
2830
2867
|
});
|
|
2831
2868
|
|
|
2832
2869
|
return (
|
|
@@ -2925,14 +2962,14 @@ const TableDnD = props => {
|
|
|
2925
2962
|
};
|
|
2926
2963
|
|
|
2927
2964
|
const {
|
|
2928
|
-
normal: normal$
|
|
2929
|
-
grey: grey$
|
|
2930
|
-
red: red$
|
|
2965
|
+
normal: normal$9,
|
|
2966
|
+
grey: grey$h,
|
|
2967
|
+
red: red$9
|
|
2931
2968
|
} = colors;
|
|
2932
2969
|
const Wrapper$8 = /*#__PURE__*/_styled.div.withConfig({
|
|
2933
2970
|
displayName: "styles__Wrapper",
|
|
2934
2971
|
componentId: "mbja2a-0"
|
|
2935
|
-
})(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/rem('5px'), props => props.error ? red$
|
|
2972
|
+
})(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/rem('5px'), props => props.error ? red$9 : grey$h, props => props.error ? red$9 : normal$9, /*#__PURE__*/rem('15px'));
|
|
2936
2973
|
|
|
2937
2974
|
const FormGroup = props => {
|
|
2938
2975
|
const {
|
|
@@ -2950,14 +2987,14 @@ const FormGroup = props => {
|
|
|
2950
2987
|
};
|
|
2951
2988
|
|
|
2952
2989
|
const {
|
|
2953
|
-
grey: grey$
|
|
2954
|
-
lightGrey: lightGrey$
|
|
2990
|
+
grey: grey$i,
|
|
2991
|
+
lightGrey: lightGrey$f,
|
|
2955
2992
|
lightRed: lightRed$2
|
|
2956
2993
|
} = colors;
|
|
2957
2994
|
const Wrapper$9 = /*#__PURE__*/_styled.div.withConfig({
|
|
2958
2995
|
displayName: "styles__Wrapper",
|
|
2959
2996
|
componentId: "sc-124afcu-0"
|
|
2960
|
-
})(["border:", " solid ", ";border-radius:", ";max-width:max-content;height:", ";display:flex;overflow:hidden;button,input{&:disabled{cursor:inherit;background-color:", ";svg{opacity:0.25;}&:hover{pointer-events:none;}}}"], /*#__PURE__*/rem('1px'), grey$
|
|
2997
|
+
})(["border:", " solid ", ";border-radius:", ";max-width:max-content;height:", ";display:flex;overflow:hidden;button,input{&:disabled{cursor:inherit;background-color:", ";svg{opacity:0.25;}&:hover{pointer-events:none;}}}"], /*#__PURE__*/rem('1px'), grey$i, /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('50px'), lightGrey$f);
|
|
2961
2998
|
const Input = /*#__PURE__*/_styled.input.withConfig({
|
|
2962
2999
|
displayName: "styles__Input",
|
|
2963
3000
|
componentId: "sc-124afcu-1"
|
|
@@ -2965,7 +3002,7 @@ const Input = /*#__PURE__*/_styled.input.withConfig({
|
|
|
2965
3002
|
const Button$1 = /*#__PURE__*/_styled.button.withConfig({
|
|
2966
3003
|
displayName: "styles__Button",
|
|
2967
3004
|
componentId: "sc-124afcu-2"
|
|
2968
|
-
})(["width:", ";height:", ";border:0;background-color:", ";cursor:pointer;transition-duration:0.3s;&.remove-button{border-right:", " solid ", ";}&.add-button{border-left:", " solid ", ";}svg{width:auto;height:", ";fill:", ";}&:hover{background-color:", ";}"], /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('50px'), lightGrey$
|
|
3005
|
+
})(["width:", ";height:", ";border:0;background-color:", ";cursor:pointer;transition-duration:0.3s;&.remove-button{border-right:", " solid ", ";}&.add-button{border-left:", " solid ", ";}svg{width:auto;height:", ";fill:", ";}&:hover{background-color:", ";}"], /*#__PURE__*/rem('50px'), /*#__PURE__*/rem('50px'), lightGrey$f, /*#__PURE__*/rem('1px'), grey$i, /*#__PURE__*/rem('1px'), grey$i, /*#__PURE__*/rem('20px'), grey$i, lightGrey$f);
|
|
2969
3006
|
|
|
2970
3007
|
const NumberInputSpinner = props => {
|
|
2971
3008
|
const {
|
|
@@ -3031,10 +3068,10 @@ const NumberInputSpinner = props => {
|
|
|
3031
3068
|
};
|
|
3032
3069
|
|
|
3033
3070
|
const {
|
|
3034
|
-
green: green$
|
|
3035
|
-
grey: grey$
|
|
3036
|
-
lightGrey: lightGrey$
|
|
3037
|
-
light: light$
|
|
3071
|
+
green: green$7,
|
|
3072
|
+
grey: grey$j,
|
|
3073
|
+
lightGrey: lightGrey$g,
|
|
3074
|
+
light: light$e
|
|
3038
3075
|
} = colors;
|
|
3039
3076
|
const Steps = /*#__PURE__*/_styled.ul.withConfig({
|
|
3040
3077
|
displayName: "styles__Steps",
|
|
@@ -3043,7 +3080,7 @@ const Steps = /*#__PURE__*/_styled.ul.withConfig({
|
|
|
3043
3080
|
const Step = /*#__PURE__*/_styled.li.withConfig({
|
|
3044
3081
|
displayName: "styles__Step",
|
|
3045
3082
|
componentId: "sc-1s2dhfy-1"
|
|
3046
|
-
})(["list-style:none;flex:1;position:relative;height:", ";display:flex;justify-content:center;align-items:center;padding-right:", ";text-align:center;&:before,&:after{content:'';position:absolute;top:0;border:0 solid ", ";border-width:", " ", ";width:0;height:0;}&:before{left:", ";border-left-color:transparent;}&:after{left:calc(100% - ", ");border-color:transparent;border-left-color:", ";}&:first-child:before{border:none;}&:last-child:after{border:none;}&:first-child{overflow:hidden;> div{border-radius:", " 0 0 ", ";}}&:last-child{padding-right:0;> div{border-radius:0 ", " ", " 0;}}> div{background-color:", ";width:100%;height:100%;display:flex;justify-content:center;align-items:center;span{width:min-content;font-size:0.75rem;color:", ";@media ", "{width:100%;font-size:1rem;font-weight:700;}}}"], /*#__PURE__*/rem('44px'), /*#__PURE__*/rem('18px'), props => props.active ? green$
|
|
3083
|
+
})(["list-style:none;flex:1;position:relative;height:", ";display:flex;justify-content:center;align-items:center;padding-right:", ";text-align:center;&:before,&:after{content:'';position:absolute;top:0;border:0 solid ", ";border-width:", " ", ";width:0;height:0;}&:before{left:", ";border-left-color:transparent;}&:after{left:calc(100% - ", ");border-color:transparent;border-left-color:", ";}&:first-child:before{border:none;}&:last-child:after{border:none;}&:first-child{overflow:hidden;> div{border-radius:", " 0 0 ", ";}}&:last-child{padding-right:0;> div{border-radius:0 ", " ", " 0;}}> div{background-color:", ";width:100%;height:100%;display:flex;justify-content:center;align-items:center;span{width:min-content;font-size:0.75rem;color:", ";@media ", "{width:100%;font-size:1rem;font-weight:700;}}}"], /*#__PURE__*/rem('44px'), /*#__PURE__*/rem('18px'), props => props.active ? green$7 : lightGrey$g, /*#__PURE__*/rem('22px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('-15px'), /*#__PURE__*/rem('18px'), props => props.active ? green$7 : lightGrey$g, /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('6px'), props => props.active ? green$7 : lightGrey$g, props => props.active ? light$e : grey$j, device.s);
|
|
3047
3084
|
|
|
3048
3085
|
const WizardSteps = props => {
|
|
3049
3086
|
const {
|
|
@@ -3064,13 +3101,13 @@ const WizardSteps = props => {
|
|
|
3064
3101
|
};
|
|
3065
3102
|
|
|
3066
3103
|
const {
|
|
3067
|
-
light: light$
|
|
3068
|
-
green: green$
|
|
3069
|
-
darkGreen: darkGreen$
|
|
3070
|
-
red: red$
|
|
3071
|
-
darkRed: darkRed$
|
|
3072
|
-
orange
|
|
3073
|
-
darkOrange
|
|
3104
|
+
light: light$f,
|
|
3105
|
+
green: green$8,
|
|
3106
|
+
darkGreen: darkGreen$4,
|
|
3107
|
+
red: red$a,
|
|
3108
|
+
darkRed: darkRed$2,
|
|
3109
|
+
orange,
|
|
3110
|
+
darkOrange
|
|
3074
3111
|
} = colors;
|
|
3075
3112
|
const Wrapper$a = _styled.div`
|
|
3076
3113
|
--shadow: 0 0 ${/*#__PURE__*/rem('25px')} 0 rgba(40, 40, 40, 0.2);
|
|
@@ -3078,14 +3115,14 @@ const Wrapper$a = _styled.div`
|
|
|
3078
3115
|
position: fixed;
|
|
3079
3116
|
top: ${/*#__PURE__*/rem('15px')};
|
|
3080
3117
|
right: 0;
|
|
3081
|
-
border: ${/*#__PURE__*/rem('2px')} solid ${darkGreen$
|
|
3118
|
+
border: ${/*#__PURE__*/rem('2px')} solid ${darkGreen$4};
|
|
3082
3119
|
border-radius: ${/*#__PURE__*/rem('6px')};
|
|
3083
|
-
background-color: ${green$
|
|
3120
|
+
background-color: ${green$8};
|
|
3084
3121
|
width: ${/*#__PURE__*/rem('300px')};
|
|
3085
3122
|
max-height: min-content;
|
|
3086
3123
|
display: flex;
|
|
3087
3124
|
padding: ${/*#__PURE__*/rem('15px')};
|
|
3088
|
-
color: ${light$
|
|
3125
|
+
color: ${light$f};
|
|
3089
3126
|
-moz-box-shadow: var(--shadow);
|
|
3090
3127
|
-webkit-box-shadow: var(--shadow);
|
|
3091
3128
|
box-shadow: var(--shadow);
|
|
@@ -3096,7 +3133,7 @@ const Wrapper$a = _styled.div`
|
|
|
3096
3133
|
background-color: transparent;
|
|
3097
3134
|
|
|
3098
3135
|
svg {
|
|
3099
|
-
fill: ${darkGreen$
|
|
3136
|
+
fill: ${darkGreen$4};
|
|
3100
3137
|
}
|
|
3101
3138
|
}
|
|
3102
3139
|
|
|
@@ -3118,23 +3155,23 @@ const Wrapper$a = _styled.div`
|
|
|
3118
3155
|
}
|
|
3119
3156
|
|
|
3120
3157
|
${props => props.variant === 'orange' && css`
|
|
3121
|
-
border: ${rem('2px')} solid ${darkOrange
|
|
3122
|
-
background-color: ${orange
|
|
3158
|
+
border: ${rem('2px')} solid ${darkOrange};
|
|
3159
|
+
background-color: ${orange};
|
|
3123
3160
|
|
|
3124
3161
|
button {
|
|
3125
3162
|
svg {
|
|
3126
|
-
fill: ${darkOrange
|
|
3163
|
+
fill: ${darkOrange};
|
|
3127
3164
|
}
|
|
3128
3165
|
}
|
|
3129
3166
|
`}
|
|
3130
3167
|
|
|
3131
3168
|
${props => props.variant === 'red' && css`
|
|
3132
|
-
border: ${rem('2px')} solid ${darkRed$
|
|
3133
|
-
background-color: ${red$
|
|
3169
|
+
border: ${rem('2px')} solid ${darkRed$2};
|
|
3170
|
+
background-color: ${red$a};
|
|
3134
3171
|
|
|
3135
3172
|
button {
|
|
3136
3173
|
svg {
|
|
3137
|
-
fill: ${darkRed$
|
|
3174
|
+
fill: ${darkRed$2};
|
|
3138
3175
|
}
|
|
3139
3176
|
}
|
|
3140
3177
|
`}
|
|
@@ -3174,14 +3211,14 @@ const AlertNotification = props => {
|
|
|
3174
3211
|
};
|
|
3175
3212
|
|
|
3176
3213
|
const {
|
|
3177
|
-
normal: normal$
|
|
3178
|
-
light: light$
|
|
3179
|
-
blue
|
|
3180
|
-
lightGrey: lightGrey$
|
|
3214
|
+
normal: normal$a,
|
|
3215
|
+
light: light$g,
|
|
3216
|
+
blue,
|
|
3217
|
+
lightGrey: lightGrey$h
|
|
3181
3218
|
} = colors;
|
|
3182
3219
|
const {
|
|
3183
|
-
bold: bold$
|
|
3184
|
-
} =
|
|
3220
|
+
bold: bold$5
|
|
3221
|
+
} = typography;
|
|
3185
3222
|
const PaginationWrapper = _styled.div`
|
|
3186
3223
|
--size: ${/*#__PURE__*/rem('30px')};
|
|
3187
3224
|
|
|
@@ -3222,18 +3259,18 @@ const PaginationWrapper = _styled.div`
|
|
|
3222
3259
|
display: flex;
|
|
3223
3260
|
justify-content: center;
|
|
3224
3261
|
align-items: center;
|
|
3225
|
-
color: ${normal$
|
|
3226
|
-
font-weight: ${bold$
|
|
3262
|
+
color: ${normal$a};
|
|
3263
|
+
font-weight: ${bold$5};
|
|
3227
3264
|
text-decoration: none;
|
|
3228
3265
|
|
|
3229
3266
|
&:hover {
|
|
3230
|
-
color: ${blue
|
|
3267
|
+
color: ${blue};
|
|
3231
3268
|
}
|
|
3232
3269
|
|
|
3233
3270
|
svg {
|
|
3234
3271
|
width: ${/*#__PURE__*/rem('18px')};
|
|
3235
3272
|
height: auto;
|
|
3236
|
-
fill: ${blue
|
|
3273
|
+
fill: ${blue};
|
|
3237
3274
|
}
|
|
3238
3275
|
}
|
|
3239
3276
|
|
|
@@ -3241,18 +3278,18 @@ const PaginationWrapper = _styled.div`
|
|
|
3241
3278
|
pointer-events: none;
|
|
3242
3279
|
|
|
3243
3280
|
a {
|
|
3244
|
-
background-color: ${blue
|
|
3245
|
-
color: ${light$
|
|
3281
|
+
background-color: ${blue};
|
|
3282
|
+
color: ${light$g};
|
|
3246
3283
|
}
|
|
3247
3284
|
}
|
|
3248
3285
|
}
|
|
3249
3286
|
|
|
3250
3287
|
&.dark {
|
|
3251
3288
|
a {
|
|
3252
|
-
color: ${lightGrey$
|
|
3289
|
+
color: ${lightGrey$h};
|
|
3253
3290
|
|
|
3254
3291
|
&:hover {
|
|
3255
|
-
color: ${light$
|
|
3292
|
+
color: ${light$g};
|
|
3256
3293
|
}
|
|
3257
3294
|
}
|
|
3258
3295
|
}
|
|
@@ -3311,12 +3348,12 @@ const PaginationControl = props => {
|
|
|
3311
3348
|
};
|
|
3312
3349
|
|
|
3313
3350
|
const {
|
|
3314
|
-
normal: normal$
|
|
3315
|
-
green: green$
|
|
3351
|
+
normal: normal$b,
|
|
3352
|
+
green: green$9
|
|
3316
3353
|
} = colors;
|
|
3317
3354
|
const {
|
|
3318
|
-
bold: bold$
|
|
3319
|
-
} =
|
|
3355
|
+
bold: bold$6
|
|
3356
|
+
} = typography;
|
|
3320
3357
|
const Wrapper$b = _styled.div`
|
|
3321
3358
|
min-height: ${props => props.variant === 'default' ? '50vh' : 'inherit'};
|
|
3322
3359
|
display: flex;
|
|
@@ -3333,15 +3370,15 @@ const Wrapper$b = _styled.div`
|
|
|
3333
3370
|
|
|
3334
3371
|
> span {
|
|
3335
3372
|
margin-top: ${/*#__PURE__*/rem('15px')};
|
|
3336
|
-
font-weight: ${bold$
|
|
3337
|
-
color: ${normal$
|
|
3373
|
+
font-weight: ${bold$6};
|
|
3374
|
+
color: ${normal$b};
|
|
3338
3375
|
|
|
3339
3376
|
a {
|
|
3340
|
-
color: ${normal$
|
|
3377
|
+
color: ${normal$b};
|
|
3341
3378
|
transition-duration: 0.3s;
|
|
3342
3379
|
|
|
3343
3380
|
&:hover {
|
|
3344
|
-
color: ${green$
|
|
3381
|
+
color: ${green$9};
|
|
3345
3382
|
}
|
|
3346
3383
|
}
|
|
3347
3384
|
}
|
|
@@ -3361,12 +3398,12 @@ const Error = props => {
|
|
|
3361
3398
|
};
|
|
3362
3399
|
|
|
3363
3400
|
const {
|
|
3364
|
-
normal: normal$
|
|
3365
|
-
green: green$
|
|
3401
|
+
normal: normal$c,
|
|
3402
|
+
green: green$a
|
|
3366
3403
|
} = colors;
|
|
3367
3404
|
const {
|
|
3368
|
-
bold: bold$
|
|
3369
|
-
} =
|
|
3405
|
+
bold: bold$7
|
|
3406
|
+
} = typography;
|
|
3370
3407
|
const Wrapper$c = _styled.div`
|
|
3371
3408
|
min-height: 50vh;
|
|
3372
3409
|
display: flex;
|
|
@@ -3383,15 +3420,15 @@ const Wrapper$c = _styled.div`
|
|
|
3383
3420
|
|
|
3384
3421
|
> div {
|
|
3385
3422
|
margin-top: ${/*#__PURE__*/rem('15px')};
|
|
3386
|
-
font-weight: ${bold$
|
|
3387
|
-
color: ${normal$
|
|
3423
|
+
font-weight: ${bold$7};
|
|
3424
|
+
color: ${normal$c};
|
|
3388
3425
|
|
|
3389
3426
|
a {
|
|
3390
|
-
color: ${normal$
|
|
3427
|
+
color: ${normal$c};
|
|
3391
3428
|
transition-duration: 0.3s;
|
|
3392
3429
|
|
|
3393
3430
|
&:hover {
|
|
3394
|
-
color: ${green$
|
|
3431
|
+
color: ${green$a};
|
|
3395
3432
|
}
|
|
3396
3433
|
}
|
|
3397
3434
|
}
|
|
@@ -5359,12 +5396,12 @@ const DataWarning = props => {
|
|
|
5359
5396
|
};
|
|
5360
5397
|
|
|
5361
5398
|
const {
|
|
5362
|
-
normal: normal$
|
|
5363
|
-
green: green$
|
|
5364
|
-
darkGreen: darkGreen$
|
|
5365
|
-
grey: grey$
|
|
5366
|
-
lightGrey: lightGrey$
|
|
5367
|
-
red: red$
|
|
5399
|
+
normal: normal$d,
|
|
5400
|
+
green: green$b,
|
|
5401
|
+
darkGreen: darkGreen$5,
|
|
5402
|
+
grey: grey$k,
|
|
5403
|
+
lightGrey: lightGrey$i,
|
|
5404
|
+
red: red$b
|
|
5368
5405
|
} = colors;
|
|
5369
5406
|
const Wrapper$d = _styled.ul`
|
|
5370
5407
|
display: flex;
|
|
@@ -5387,11 +5424,11 @@ const Wrapper$d = _styled.ul`
|
|
|
5387
5424
|
}
|
|
5388
5425
|
|
|
5389
5426
|
input[type='radio']:checked ~ .check {
|
|
5390
|
-
border-color: ${darkGreen$
|
|
5427
|
+
border-color: ${darkGreen$5};
|
|
5391
5428
|
}
|
|
5392
5429
|
|
|
5393
5430
|
input[type='radio']:checked ~ .check::before {
|
|
5394
|
-
background-color: ${green$
|
|
5431
|
+
background-color: ${green$b};
|
|
5395
5432
|
}
|
|
5396
5433
|
|
|
5397
5434
|
& + span {
|
|
@@ -5414,7 +5451,7 @@ const Item = _styled.li`
|
|
|
5414
5451
|
padding-left: calc(var(--size) + 5px);
|
|
5415
5452
|
line-height: var(--size);
|
|
5416
5453
|
vertical-align: middle;
|
|
5417
|
-
color: ${props => props.error ? red$
|
|
5454
|
+
color: ${props => props.error ? red$b : null};
|
|
5418
5455
|
cursor: pointer;
|
|
5419
5456
|
z-index: 1;
|
|
5420
5457
|
}
|
|
@@ -5422,7 +5459,7 @@ const Item = _styled.li`
|
|
|
5422
5459
|
.check {
|
|
5423
5460
|
position: absolute;
|
|
5424
5461
|
top: 0;
|
|
5425
|
-
border: ${/*#__PURE__*/rem('2px')} solid ${props => props.error ? red$
|
|
5462
|
+
border: ${/*#__PURE__*/rem('2px')} solid ${props => props.error ? red$b : grey$k};
|
|
5426
5463
|
border-radius: 100%;
|
|
5427
5464
|
width: var(--size);
|
|
5428
5465
|
height: var(--size);
|
|
@@ -5441,21 +5478,21 @@ const Item = _styled.li`
|
|
|
5441
5478
|
}
|
|
5442
5479
|
|
|
5443
5480
|
&:hover .check {
|
|
5444
|
-
border-color: ${normal$
|
|
5481
|
+
border-color: ${normal$d};
|
|
5445
5482
|
}
|
|
5446
5483
|
|
|
5447
5484
|
${props => props.disabled && css`
|
|
5448
5485
|
label {
|
|
5449
|
-
color: ${grey$
|
|
5486
|
+
color: ${grey$k};
|
|
5450
5487
|
}
|
|
5451
5488
|
|
|
5452
5489
|
input[type='radio'] ~ .check,
|
|
5453
5490
|
input[type='radio']:checked ~ .check {
|
|
5454
|
-
border-color: ${lightGrey$
|
|
5491
|
+
border-color: ${lightGrey$i};
|
|
5455
5492
|
}
|
|
5456
5493
|
|
|
5457
5494
|
input[type='radio']:checked ~ .check::before {
|
|
5458
|
-
background-color: ${lightGrey$
|
|
5495
|
+
background-color: ${lightGrey$i};
|
|
5459
5496
|
}
|
|
5460
5497
|
|
|
5461
5498
|
&:hover {
|
|
@@ -5561,10 +5598,10 @@ const Wrapper$f = _styled.div`
|
|
|
5561
5598
|
}
|
|
5562
5599
|
`;
|
|
5563
5600
|
const {
|
|
5564
|
-
grey: grey$
|
|
5565
|
-
darkGrey: darkGrey$
|
|
5566
|
-
light: light$
|
|
5567
|
-
|
|
5601
|
+
grey: grey$l,
|
|
5602
|
+
darkGrey: darkGrey$2,
|
|
5603
|
+
light: light$h,
|
|
5604
|
+
purple500: purple500$4
|
|
5568
5605
|
} = colors;
|
|
5569
5606
|
const Field = _styled.div`
|
|
5570
5607
|
display: flex;
|
|
@@ -5578,7 +5615,7 @@ const Field = _styled.div`
|
|
|
5578
5615
|
outline: none;
|
|
5579
5616
|
|
|
5580
5617
|
+ button {
|
|
5581
|
-
background-color: ${
|
|
5618
|
+
background-color: ${purple500$4};
|
|
5582
5619
|
}
|
|
5583
5620
|
}
|
|
5584
5621
|
}
|
|
@@ -5591,7 +5628,7 @@ const Field = _styled.div`
|
|
|
5591
5628
|
button {
|
|
5592
5629
|
border: 0;
|
|
5593
5630
|
border-radius: 0 ${/*#__PURE__*/rem('6px')} ${/*#__PURE__*/rem('6px')} 0;
|
|
5594
|
-
background-color: ${grey$
|
|
5631
|
+
background-color: ${grey$l};
|
|
5595
5632
|
min-width: ${/*#__PURE__*/rem('50px')};
|
|
5596
5633
|
height: ${/*#__PURE__*/rem('50px')};
|
|
5597
5634
|
display: flex;
|
|
@@ -5607,12 +5644,12 @@ const Field = _styled.div`
|
|
|
5607
5644
|
width: auto;
|
|
5608
5645
|
min-width: ${/*#__PURE__*/rem('20px')};
|
|
5609
5646
|
height: ${/*#__PURE__*/rem('20px')};
|
|
5610
|
-
fill: ${light$
|
|
5647
|
+
fill: ${light$h};
|
|
5611
5648
|
transition: 0.3s;
|
|
5612
5649
|
}
|
|
5613
5650
|
|
|
5614
5651
|
&:hover {
|
|
5615
|
-
background-color: ${darkGrey$
|
|
5652
|
+
background-color: ${darkGrey$2};
|
|
5616
5653
|
}
|
|
5617
5654
|
|
|
5618
5655
|
&:disabled {
|
|
@@ -5620,7 +5657,7 @@ const Field = _styled.div`
|
|
|
5620
5657
|
opacity: 0.5;
|
|
5621
5658
|
|
|
5622
5659
|
&:hover {
|
|
5623
|
-
background-color: ${grey$
|
|
5660
|
+
background-color: ${grey$l};
|
|
5624
5661
|
pointer-events: none;
|
|
5625
5662
|
}
|
|
5626
5663
|
}
|
|
@@ -5666,23 +5703,23 @@ const FieldWidthButton = props => {
|
|
|
5666
5703
|
};
|
|
5667
5704
|
|
|
5668
5705
|
const {
|
|
5669
|
-
normal: normal$
|
|
5670
|
-
|
|
5671
|
-
grey: grey$
|
|
5672
|
-
lightGrey: lightGrey$
|
|
5673
|
-
light: light$
|
|
5706
|
+
normal: normal$e,
|
|
5707
|
+
purple500: purple500$5,
|
|
5708
|
+
grey: grey$m,
|
|
5709
|
+
lightGrey: lightGrey$j,
|
|
5710
|
+
light: light$i
|
|
5674
5711
|
} = colors;
|
|
5675
5712
|
const {
|
|
5676
|
-
bold: bold$
|
|
5677
|
-
} =
|
|
5713
|
+
bold: bold$8
|
|
5714
|
+
} = typography;
|
|
5678
5715
|
const Wrapper$g = /*#__PURE__*/_styled.div.withConfig({
|
|
5679
5716
|
displayName: "styles__Wrapper",
|
|
5680
5717
|
componentId: "znznmm-0"
|
|
5681
|
-
})(["display:flex;align-items:center;ul.menu{width:0;animation:showAnimation 1s forwards;animation-delay:0.5s;overflow:hidden;}@keyframes showAnimation{0%{width:0%;}100%{width:100%;}}ul{margin:0;max-width:max-content;padding:0;&.menu{display:flex;li:not(:last-child){margin-right:", ";}}li{position:relative;list-style:none;a{display:flex;align-items:center;padding:", ";color:", ";text-transform:capitalize;text-decoration:none;white-space:nowrap;transition-duration:0.3s;svg{margin-right:", ";width:auto;height:", ";min-width:", ";fill:", ";transition-duration:0.3s;}&:hover{color:", ";svg{fill:", ";}}}&.active{font-weight:", ";a{pointer-events:none;svg{fill:", ";}}}}}"], /*#__PURE__*/rem('10px'), /*#__PURE__*/rem('10px'), normal$
|
|
5718
|
+
})(["display:flex;align-items:center;ul.menu{width:0;animation:showAnimation 1s forwards;animation-delay:0.5s;overflow:hidden;}@keyframes showAnimation{0%{width:0%;}100%{width:100%;}}ul{margin:0;max-width:max-content;padding:0;&.menu{display:flex;li:not(:last-child){margin-right:", ";}}li{position:relative;list-style:none;a{display:flex;align-items:center;padding:", ";color:", ";text-transform:capitalize;text-decoration:none;white-space:nowrap;transition-duration:0.3s;svg{margin-right:", ";width:auto;height:", ";min-width:", ";fill:", ";transition-duration:0.3s;}&:hover{color:", ";svg{fill:", ";}}}&.active{font-weight:", ";a{pointer-events:none;svg{fill:", ";}}}}}"], /*#__PURE__*/rem('10px'), /*#__PURE__*/rem('10px'), normal$e, /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('24px'), /*#__PURE__*/rem('24px'), grey$m, props => props.customColor ? props.customColor : purple500$5, props => props.customColor ? props.customColor : purple500$5, bold$8, props => props.customColor ? props.customColor : purple500$5);
|
|
5682
5719
|
const More = /*#__PURE__*/_styled.div.withConfig({
|
|
5683
5720
|
displayName: "styles__More",
|
|
5684
5721
|
componentId: "znznmm-1"
|
|
5685
|
-
})(["position:relative;display:none;&.hide{display:initial;}ul{position:absolute;right:0;border:", " solid ", ";border-radius:", ";background-color:", ";margin-top:", ";padding:0;-moz-box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);-webkit-box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);z-index:1;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;&.more{display:none;}&.is-open{display:inherit;}li{list-style:none;transition-duration:0.3s;&:hover{background-color:", ";cursor:pointer;a{color:", ";svg{fill:", ";}}}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border-radius:0 0 ", " ", ";}a{width:100%;height:100%;padding:", ";}}}"], /*#__PURE__*/rem('1px'), lightGrey$
|
|
5722
|
+
})(["position:relative;display:none;&.hide{display:initial;}ul{position:absolute;right:0;border:", " solid ", ";border-radius:", ";background-color:", ";margin-top:", ";padding:0;-moz-box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);-webkit-box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);box-shadow:0 0 ", " 0 rgba(40,40,40,0.2);z-index:1;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;&.more{display:none;}&.is-open{display:inherit;}li{list-style:none;transition-duration:0.3s;&:hover{background-color:", ";cursor:pointer;a{color:", ";svg{fill:", ";}}}&:first-child{border-radius:", " ", " 0 0;}&:last-child{border-radius:0 0 ", " ", ";}a{width:100%;height:100%;padding:", ";}}}"], /*#__PURE__*/rem('1px'), lightGrey$j, /*#__PURE__*/rem('4px'), light$i, /*#__PURE__*/rem('5px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('15px'), /*#__PURE__*/rem('15px'), lightGrey$j, normal$e, normal$e, /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('4px'), /*#__PURE__*/rem('15px'));
|
|
5686
5723
|
|
|
5687
5724
|
const HorizontalNav = props => {
|
|
5688
5725
|
const [showMore, setShowMore] = useState(false);
|
|
@@ -5759,11 +5796,11 @@ const HorizontalNav = props => {
|
|
|
5759
5796
|
};
|
|
5760
5797
|
|
|
5761
5798
|
const {
|
|
5762
|
-
light: light$
|
|
5799
|
+
light: light$j
|
|
5763
5800
|
} = colors;
|
|
5764
5801
|
const {
|
|
5765
|
-
bold: bold$
|
|
5766
|
-
} =
|
|
5802
|
+
bold: bold$9
|
|
5803
|
+
} = typography;
|
|
5767
5804
|
const ModalOverlay = /*#__PURE__*/_styled.div.withConfig({
|
|
5768
5805
|
displayName: "styles__ModalOverlay",
|
|
5769
5806
|
componentId: "sc-16r6vcc-0"
|
|
@@ -5775,11 +5812,11 @@ const ModalWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
|
5775
5812
|
const ModalContainer = /*#__PURE__*/_styled.div.withConfig({
|
|
5776
5813
|
displayName: "styles__ModalContainer",
|
|
5777
5814
|
componentId: "sc-16r6vcc-2"
|
|
5778
|
-
})(["position:relative;background:", ";width:100%;min-height:0;padding:", ";word-wrap:break-word;transition-duration:0.3s;@media ", "{--spacing:", ";margin:var(--spacing);border-radius:", ";max-width:", ";padding:var(--spacing);&:after{content:'';position:absolute;bottom:calc(var(--spacing) * -1);width:", ";height:var(--spacing);}}"], light$
|
|
5815
|
+
})(["position:relative;background:", ";width:100%;min-height:0;padding:", ";word-wrap:break-word;transition-duration:0.3s;@media ", "{--spacing:", ";margin:var(--spacing);border-radius:", ";max-width:", ";padding:var(--spacing);&:after{content:'';position:absolute;bottom:calc(var(--spacing) * -1);width:", ";height:var(--spacing);}}"], light$j, /*#__PURE__*/rem('15px'), device.s, /*#__PURE__*/rem('30px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('860px'), /*#__PURE__*/rem('1px'));
|
|
5779
5816
|
const ModalHeader = /*#__PURE__*/_styled.div.withConfig({
|
|
5780
5817
|
displayName: "styles__ModalHeader",
|
|
5781
5818
|
componentId: "sc-16r6vcc-3"
|
|
5782
|
-
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;
|
|
5819
|
+
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;border:", " solid ", ";min-width:", ";height:", ";z-index:1;@media ", "{display:inherit;}}"], /*#__PURE__*/rem('30px'), bold$9, /*#__PURE__*/rem('-14px'), /*#__PURE__*/rem('-14px'), /*#__PURE__*/rem('2px'), colors.grey200, /*#__PURE__*/rem('28px'), /*#__PURE__*/rem('28px'), device.s);
|
|
5783
5820
|
|
|
5784
5821
|
const Modal = props => {
|
|
5785
5822
|
const {
|
|
@@ -5818,11 +5855,12 @@ const Modal = props => {
|
|
|
5818
5855
|
zIndex: zIndex,
|
|
5819
5856
|
className: "modal"
|
|
5820
5857
|
}, /*#__PURE__*/React.createElement(ModalHeader, null, title && /*#__PURE__*/React.createElement("h2", null, title), /*#__PURE__*/React.createElement(Button, {
|
|
5821
|
-
|
|
5822
|
-
|
|
5858
|
+
color: "white",
|
|
5859
|
+
txtColor: "grey200",
|
|
5823
5860
|
icon: "cross",
|
|
5824
5861
|
ariaLabel: "Close",
|
|
5825
|
-
action: hide
|
|
5862
|
+
action: hide,
|
|
5863
|
+
rounded: true
|
|
5826
5864
|
})), children, footer && /*#__PURE__*/React.createElement(ModalFooter, {
|
|
5827
5865
|
closeAction: hide,
|
|
5828
5866
|
closeValue: closeValue
|
|
@@ -5830,11 +5868,11 @@ const Modal = props => {
|
|
|
5830
5868
|
};
|
|
5831
5869
|
|
|
5832
5870
|
const {
|
|
5833
|
-
light: light$
|
|
5871
|
+
light: light$k
|
|
5834
5872
|
} = colors;
|
|
5835
5873
|
const {
|
|
5836
|
-
bold: bold$
|
|
5837
|
-
} =
|
|
5874
|
+
bold: bold$a
|
|
5875
|
+
} = typography;
|
|
5838
5876
|
const slideInLeft = keyframes`
|
|
5839
5877
|
from {
|
|
5840
5878
|
transform: translateX(100%);
|
|
@@ -5855,11 +5893,11 @@ const ModalWrapper$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
|
5855
5893
|
const ModalContainer$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
5856
5894
|
displayName: "styles__ModalContainer",
|
|
5857
5895
|
componentId: "sc-46huls-2"
|
|
5858
|
-
})(["position:fixed;right:0;background:", ";width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);display:flex;flex-direction:column;padding:", ";word-wrap:break-word;animation-timing-function:", ";animation-duration:1s;animation-fill-mode:forwards;transform:translateX(100%);animation-name:", ";overflow-y:auto;@media ", "{max-width:", ";padding:", ";}"], light$
|
|
5896
|
+
})(["position:fixed;right:0;background:", ";width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);display:flex;flex-direction:column;padding:", ";word-wrap:break-word;animation-timing-function:", ";animation-duration:1s;animation-fill-mode:forwards;transform:translateX(100%);animation-name:", ";overflow-y:auto;@media ", "{max-width:", ";padding:", ";}"], light$k, /*#__PURE__*/rem('15px'), /*#__PURE__*/timingFunctions('easeOutQuint'), slideInLeft, device.s, /*#__PURE__*/rem('400px'), /*#__PURE__*/rem('30px'));
|
|
5859
5897
|
const ModalHeader$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
5860
5898
|
displayName: "styles__ModalHeader",
|
|
5861
5899
|
componentId: "sc-46huls-3"
|
|
5862
|
-
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/rem('30px'), bold$
|
|
5900
|
+
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/rem('30px'), bold$a);
|
|
5863
5901
|
const ModalContent = /*#__PURE__*/_styled.div.withConfig({
|
|
5864
5902
|
displayName: "styles__ModalContent",
|
|
5865
5903
|
componentId: "sc-46huls-4"
|
|
@@ -5910,7 +5948,7 @@ const ModalDrawer = props => {
|
|
|
5910
5948
|
};
|
|
5911
5949
|
|
|
5912
5950
|
const {
|
|
5913
|
-
lightGrey: lightGrey$
|
|
5951
|
+
lightGrey: lightGrey$k
|
|
5914
5952
|
} = colors;
|
|
5915
5953
|
const Wrapper$h = _styled.div`
|
|
5916
5954
|
div {
|
|
@@ -5973,7 +6011,7 @@ const Wrapper$h = _styled.div`
|
|
|
5973
6011
|
|
|
5974
6012
|
.card {
|
|
5975
6013
|
position: relative;
|
|
5976
|
-
border: ${/*#__PURE__*/rem('2px')} solid ${lightGrey$
|
|
6014
|
+
border: ${/*#__PURE__*/rem('2px')} solid ${lightGrey$k};
|
|
5977
6015
|
border-radius: ${/*#__PURE__*/rem('6px')};
|
|
5978
6016
|
width: ${/*#__PURE__*/rem('300px')};
|
|
5979
6017
|
overflow: hidden;
|
|
@@ -5988,7 +6026,7 @@ const Wrapper$h = _styled.div`
|
|
|
5988
6026
|
margin: ${/*#__PURE__*/rem('-45px')} 0 0 ${/*#__PURE__*/rem('20px')};
|
|
5989
6027
|
width: ${/*#__PURE__*/rem('90px')};
|
|
5990
6028
|
height: ${/*#__PURE__*/rem('90px')};
|
|
5991
|
-
border: ${/*#__PURE__*/rem('1px')} solid ${lightGrey$
|
|
6029
|
+
border: ${/*#__PURE__*/rem('1px')} solid ${lightGrey$k};
|
|
5992
6030
|
border-radius: 999px;
|
|
5993
6031
|
}
|
|
5994
6032
|
|
|
@@ -6007,25 +6045,6 @@ const Wrapper$h = _styled.div`
|
|
|
6007
6045
|
}
|
|
6008
6046
|
}
|
|
6009
6047
|
`;
|
|
6010
|
-
const Table$3 = _styled.div`
|
|
6011
|
-
--columns: ${props => props.columnsNumber};
|
|
6012
|
-
|
|
6013
|
-
display: grid;
|
|
6014
|
-
grid-template-columns: repeat(4, 1fr);
|
|
6015
|
-
grid-template-columns: repeat(var(--columns), 1fr);
|
|
6016
|
-
grid-gap: ${/*#__PURE__*/rem('15px')};
|
|
6017
|
-
padding: ${/*#__PURE__*/rem('15px')};
|
|
6018
|
-
|
|
6019
|
-
.header {
|
|
6020
|
-
width: 50%;
|
|
6021
|
-
height: ${/*#__PURE__*/rem('15px')};
|
|
6022
|
-
}
|
|
6023
|
-
|
|
6024
|
-
.cell {
|
|
6025
|
-
width: 100%;
|
|
6026
|
-
height: ${/*#__PURE__*/rem('15px')};
|
|
6027
|
-
}
|
|
6028
|
-
`;
|
|
6029
6048
|
const Grid = _styled.div`
|
|
6030
6049
|
display: grid;
|
|
6031
6050
|
grid-template-columns: repeat(auto-fill, ${/*#__PURE__*/rem('300px')});
|
|
@@ -6038,15 +6057,10 @@ const LoadingState = props => {
|
|
|
6038
6057
|
type = 'text',
|
|
6039
6058
|
lines = 3,
|
|
6040
6059
|
cardsNumber = 4,
|
|
6041
|
-
header = true,
|
|
6042
|
-
columnsNumber = 4,
|
|
6043
|
-
rowsNumber = 3,
|
|
6044
6060
|
center = true
|
|
6045
6061
|
} = props;
|
|
6046
6062
|
let paragraphs = [];
|
|
6047
6063
|
let cards = [];
|
|
6048
|
-
let tableHeader = [];
|
|
6049
|
-
let columns = [];
|
|
6050
6064
|
let loadingType;
|
|
6051
6065
|
|
|
6052
6066
|
for (let i = 0; i < lines; i++) {
|
|
@@ -6077,20 +6091,6 @@ const LoadingState = props => {
|
|
|
6077
6091
|
})));
|
|
6078
6092
|
}
|
|
6079
6093
|
|
|
6080
|
-
for (let i = 0; i < columnsNumber; i++) {
|
|
6081
|
-
tableHeader.push( /*#__PURE__*/React.createElement("div", {
|
|
6082
|
-
key: i,
|
|
6083
|
-
className: "header"
|
|
6084
|
-
}));
|
|
6085
|
-
}
|
|
6086
|
-
|
|
6087
|
-
for (let i = 0; i < columnsNumber * rowsNumber; i++) {
|
|
6088
|
-
columns.push( /*#__PURE__*/React.createElement("div", {
|
|
6089
|
-
key: i,
|
|
6090
|
-
className: "cell"
|
|
6091
|
-
}));
|
|
6092
|
-
}
|
|
6093
|
-
|
|
6094
6094
|
switch (type) {
|
|
6095
6095
|
case 'text':
|
|
6096
6096
|
loadingType = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6106,13 +6106,6 @@ const LoadingState = props => {
|
|
|
6106
6106
|
}, cards);
|
|
6107
6107
|
break;
|
|
6108
6108
|
|
|
6109
|
-
case 'table':
|
|
6110
|
-
loadingType = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table$3, {
|
|
6111
|
-
className: "table",
|
|
6112
|
-
columnsNumber: columnsNumber
|
|
6113
|
-
}, header && tableHeader, columns));
|
|
6114
|
-
break;
|
|
6115
|
-
|
|
6116
6109
|
case 'value':
|
|
6117
6110
|
loadingType = /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
6118
6111
|
className: "value"
|
|
@@ -6133,26 +6126,26 @@ const LoadingState = props => {
|
|
|
6133
6126
|
};
|
|
6134
6127
|
|
|
6135
6128
|
const {
|
|
6136
|
-
normal: normal$
|
|
6137
|
-
grey: grey$
|
|
6138
|
-
lightGrey: lightGrey$
|
|
6139
|
-
light: light$
|
|
6129
|
+
normal: normal$f,
|
|
6130
|
+
grey: grey$n,
|
|
6131
|
+
lightGrey: lightGrey$l,
|
|
6132
|
+
light: light$l
|
|
6140
6133
|
} = colors;
|
|
6141
6134
|
const Wrapper$i = _styled.div`
|
|
6142
6135
|
.tab {
|
|
6143
|
-
border-color: ${lightGrey$
|
|
6136
|
+
border-color: ${lightGrey$l};
|
|
6144
6137
|
|
|
6145
6138
|
&[aria-selected='true'] {
|
|
6146
6139
|
border-bottom: 0;
|
|
6147
6140
|
}
|
|
6148
6141
|
|
|
6149
6142
|
&[aria-selected='false'] {
|
|
6150
|
-
background-color: ${lightGrey$
|
|
6151
|
-
color: ${grey$
|
|
6143
|
+
background-color: ${lightGrey$l};
|
|
6144
|
+
color: ${grey$n};
|
|
6152
6145
|
transition-duration: 0.3s;
|
|
6153
6146
|
|
|
6154
6147
|
&:hover {
|
|
6155
|
-
color: ${normal$
|
|
6148
|
+
color: ${normal$f};
|
|
6156
6149
|
}
|
|
6157
6150
|
}
|
|
6158
6151
|
|
|
@@ -6167,8 +6160,8 @@ const Wrapper$i = _styled.div`
|
|
|
6167
6160
|
|
|
6168
6161
|
.panel {
|
|
6169
6162
|
border-radius: 0 ${/*#__PURE__*/rem('6px')} ${/*#__PURE__*/rem('6px')} ${/*#__PURE__*/rem('6px')};
|
|
6170
|
-
border-color: ${lightGrey$
|
|
6171
|
-
background-color: ${light$
|
|
6163
|
+
border-color: ${lightGrey$l};
|
|
6164
|
+
background-color: ${light$l};
|
|
6172
6165
|
padding: ${/*#__PURE__*/rem('30px')};
|
|
6173
6166
|
}
|
|
6174
6167
|
|
|
@@ -6188,7 +6181,7 @@ const Wrapper$i = _styled.div`
|
|
|
6188
6181
|
.RRT__tab {
|
|
6189
6182
|
background: #eee;
|
|
6190
6183
|
border-style: solid;
|
|
6191
|
-
border-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6184
|
+
border-color: ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6192
6185
|
border-width: ${/*#__PURE__*/rem('1px')} ${/*#__PURE__*/rem('1px')} ${/*#__PURE__*/rem('1px')} 0;
|
|
6193
6186
|
cursor: pointer;
|
|
6194
6187
|
z-index: 1;
|
|
@@ -6198,7 +6191,7 @@ const Wrapper$i = _styled.div`
|
|
|
6198
6191
|
|
|
6199
6192
|
.RRT__tab:focus {
|
|
6200
6193
|
outline: 0;
|
|
6201
|
-
background-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6194
|
+
background-color: ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6202
6195
|
}
|
|
6203
6196
|
|
|
6204
6197
|
.RRT__accordion .RRT__tab {
|
|
@@ -6210,12 +6203,12 @@ const Wrapper$i = _styled.div`
|
|
|
6210
6203
|
}
|
|
6211
6204
|
|
|
6212
6205
|
.RRT__tab--selected {
|
|
6213
|
-
background: ${light$
|
|
6214
|
-
border-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6206
|
+
background: ${light$l};
|
|
6207
|
+
border-color: ${/*#__PURE__*/lighten(0.25, grey$n)} ${/*#__PURE__*/lighten(0.25, grey$n)} ${light$l};
|
|
6215
6208
|
}
|
|
6216
6209
|
|
|
6217
6210
|
.RRT__tab--selected:focus {
|
|
6218
|
-
background-color: ${light$
|
|
6211
|
+
background-color: ${light$l};
|
|
6219
6212
|
}
|
|
6220
6213
|
|
|
6221
6214
|
.RRT__tab--disabled {
|
|
@@ -6245,7 +6238,7 @@ const Wrapper$i = _styled.div`
|
|
|
6245
6238
|
.RRT__panel {
|
|
6246
6239
|
margin-top: ${/*#__PURE__*/rem('-1px')};
|
|
6247
6240
|
padding: 1em;
|
|
6248
|
-
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$
|
|
6241
|
+
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6249
6242
|
}
|
|
6250
6243
|
|
|
6251
6244
|
.RRT__panel--hidden {
|
|
@@ -6257,8 +6250,8 @@ const Wrapper$i = _styled.div`
|
|
|
6257
6250
|
}
|
|
6258
6251
|
|
|
6259
6252
|
.RRT__showmore {
|
|
6260
|
-
background: ${lightGrey$
|
|
6261
|
-
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$
|
|
6253
|
+
background: ${lightGrey$l};
|
|
6254
|
+
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6262
6255
|
border-radius: 0 ${/*#__PURE__*/rem('6px')} 0 0;
|
|
6263
6256
|
cursor: pointer;
|
|
6264
6257
|
z-index: 1;
|
|
@@ -6268,7 +6261,7 @@ const Wrapper$i = _styled.div`
|
|
|
6268
6261
|
}
|
|
6269
6262
|
|
|
6270
6263
|
.RRT__showmore--selected {
|
|
6271
|
-
background: ${light$
|
|
6264
|
+
background: ${light$l};
|
|
6272
6265
|
border-bottom: none;
|
|
6273
6266
|
}
|
|
6274
6267
|
|
|
@@ -6279,7 +6272,7 @@ const Wrapper$i = _styled.div`
|
|
|
6279
6272
|
}
|
|
6280
6273
|
|
|
6281
6274
|
.RRT__showmore-label--selected {
|
|
6282
|
-
background-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6275
|
+
background-color: ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6283
6276
|
}
|
|
6284
6277
|
|
|
6285
6278
|
.RRT__showmore-list {
|