@taikai/rocket-kit 2.0.0 → 3.0.0-beta.1
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/README.md +12 -5
- package/dist/atoms/button/index.d.ts +10 -9
- package/dist/atoms/button/stories/button.stories.d.ts +57 -0
- 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 +9 -5
- package/dist/atoms/button-dropdown/stories/button-dropdown.stories.d.ts +56 -0
- package/dist/atoms/button-link/index.d.ts +11 -10
- package/dist/atoms/button-link/stories/button-link.stories.d.ts +58 -0
- package/dist/atoms/button-link/styles.d.ts +2 -1
- package/dist/atoms/select-interactive/components/index.d.ts +6 -0
- package/dist/atoms/select-interactive/index.d.ts +2 -1
- package/dist/atoms/select-interactive/stories/select-interactive.stories.d.ts +9 -9
- package/dist/atoms/select-interactive/styles.d.ts +1 -0
- package/dist/atoms/select-interactive/types.d.ts +34 -0
- package/dist/atoms/tag/index.d.ts +2 -1
- package/dist/atoms/tag/stories/tag.stories.d.ts +37 -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/rocket-kit.cjs.development.js +706 -653
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +190 -330
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +708 -655
- package/dist/rocket-kit.esm.js.map +1 -1
- package/dist/utils/hooks/use-color.d.ts +4 -0
- package/package.json +9 -9
- 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('36px') : 'min-content' : rem('36px'), /*#__PURE__*/rem('32px'), props => props.value ? props.circle ? 0 : `0 ${rem('20px')}` : 0, device.l, props => props.value ? rem('100px') : rem('36px'), 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{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.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('36px'), /*#__PURE__*/rem('32px'), props => props.value ? `0 ${rem('20px')}` : 0, device.l, props => props.value ? rem('100px') : rem('36px'), 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 = 'right',
|
|
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) ~ 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 : 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:", ";max-width:", ";padding:", " ", ";font-size:", ";font-weight:", ";letter-spacing:", ";line-height:1;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;"], 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('150px'), /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('8px'), /*#__PURE__*/rem('12px'), typography.medium, /*#__PURE__*/rem('1px'));
|
|
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,10 +1228,11 @@ const Select = props => {
|
|
|
1243
1228
|
};
|
|
1244
1229
|
|
|
1245
1230
|
const {
|
|
1246
|
-
normal: normal$
|
|
1247
|
-
light: light$
|
|
1248
|
-
grey: grey$
|
|
1249
|
-
|
|
1231
|
+
normal: normal$3,
|
|
1232
|
+
light: light$5,
|
|
1233
|
+
grey: grey$9,
|
|
1234
|
+
lightGrey: lightGrey$6,
|
|
1235
|
+
purple500: purple500$3,
|
|
1250
1236
|
lightPurple
|
|
1251
1237
|
} = colors;
|
|
1252
1238
|
const SelectWrapper = _styled.div`
|
|
@@ -1256,16 +1242,16 @@ const SelectWrapper = _styled.div`
|
|
|
1256
1242
|
}
|
|
1257
1243
|
|
|
1258
1244
|
&__control {
|
|
1259
|
-
border-color: ${grey$
|
|
1245
|
+
border-color: ${grey$9};
|
|
1260
1246
|
min-height: ${/*#__PURE__*/rem('50px')};
|
|
1261
1247
|
transition-duration: 0.3s;
|
|
1262
1248
|
|
|
1263
1249
|
&:hover {
|
|
1264
|
-
border-color: ${
|
|
1250
|
+
border-color: ${purple500$3};
|
|
1265
1251
|
}
|
|
1266
1252
|
|
|
1267
1253
|
&--is-focused {
|
|
1268
|
-
border-color: ${
|
|
1254
|
+
border-color: ${purple500$3};
|
|
1269
1255
|
box-shadow: none;
|
|
1270
1256
|
}
|
|
1271
1257
|
}
|
|
@@ -1276,15 +1262,15 @@ const SelectWrapper = _styled.div`
|
|
|
1276
1262
|
}
|
|
1277
1263
|
|
|
1278
1264
|
&__placeholder {
|
|
1279
|
-
color: ${grey$
|
|
1265
|
+
color: ${grey$9};
|
|
1280
1266
|
}
|
|
1281
1267
|
|
|
1282
1268
|
&__input {
|
|
1283
|
-
color: ${normal$
|
|
1269
|
+
color: ${normal$3};
|
|
1284
1270
|
}
|
|
1285
1271
|
|
|
1286
1272
|
&__single-value {
|
|
1287
|
-
color: ${normal$
|
|
1273
|
+
color: ${normal$3};
|
|
1288
1274
|
}
|
|
1289
1275
|
|
|
1290
1276
|
&__indicator {
|
|
@@ -1304,7 +1290,7 @@ const SelectWrapper = _styled.div`
|
|
|
1304
1290
|
}
|
|
1305
1291
|
|
|
1306
1292
|
&-separator {
|
|
1307
|
-
background-color: ${grey$
|
|
1293
|
+
background-color: ${grey$9};
|
|
1308
1294
|
}
|
|
1309
1295
|
}
|
|
1310
1296
|
|
|
@@ -1312,18 +1298,18 @@ const SelectWrapper = _styled.div`
|
|
|
1312
1298
|
transition-duration: 0.3s;
|
|
1313
1299
|
|
|
1314
1300
|
&:hover {
|
|
1315
|
-
background-color: ${
|
|
1316
|
-
color: ${light$
|
|
1301
|
+
background-color: ${purple500$3};
|
|
1302
|
+
color: ${light$5};
|
|
1317
1303
|
}
|
|
1318
1304
|
|
|
1319
1305
|
&--is-focused {
|
|
1320
|
-
background-color: ${
|
|
1321
|
-
color: ${light$
|
|
1306
|
+
background-color: ${purple500$3};
|
|
1307
|
+
color: ${light$5};
|
|
1322
1308
|
}
|
|
1323
1309
|
|
|
1324
1310
|
&--is-selected {
|
|
1325
1311
|
background-color: ${lightPurple};
|
|
1326
|
-
color: ${normal$
|
|
1312
|
+
color: ${normal$3};
|
|
1327
1313
|
}
|
|
1328
1314
|
}
|
|
1329
1315
|
}
|
|
@@ -1351,82 +1337,110 @@ const SelectWrapper = _styled.div`
|
|
|
1351
1337
|
|
|
1352
1338
|
.select__option--is-selected {
|
|
1353
1339
|
svg {
|
|
1354
|
-
fill: ${normal$
|
|
1340
|
+
fill: ${normal$3};
|
|
1355
1341
|
transition-duration: 0.3s;
|
|
1356
1342
|
}
|
|
1357
1343
|
}
|
|
1358
1344
|
|
|
1359
1345
|
.select__option--is-focused {
|
|
1360
1346
|
svg {
|
|
1361
|
-
fill: ${light$
|
|
1347
|
+
fill: ${light$5};
|
|
1362
1348
|
transition-duration: 0.3s;
|
|
1363
1349
|
}
|
|
1364
1350
|
}
|
|
1365
|
-
`;
|
|
1366
1351
|
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
value,
|
|
1375
|
-
clear = true,
|
|
1376
|
-
onChange = () => {},
|
|
1377
|
-
onInputChange = () => {},
|
|
1378
|
-
error,
|
|
1379
|
-
disabled = false,
|
|
1380
|
-
dataTestId
|
|
1381
|
-
} = props;
|
|
1382
|
-
const {
|
|
1383
|
-
Option
|
|
1384
|
-
} = components;
|
|
1385
|
-
|
|
1386
|
-
const CustomSelectOption = (props, commonProps) => /*#__PURE__*/React.createElement(Option, Object.assign({}, props, commonProps), props.data.icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
1387
|
-
icon: props.data.icon
|
|
1388
|
-
}) : props.data.customImage ? props.data.customImage : null, props.data.label);
|
|
1352
|
+
.select__option--is-disabled {
|
|
1353
|
+
pointer-events: none;
|
|
1354
|
+
}
|
|
1355
|
+
`;
|
|
1356
|
+
const SelectGroupLabel = _styled.span`
|
|
1357
|
+
font-size: ${/*#__PURE__*/rem('12px')};
|
|
1358
|
+
color: ${lightGrey$6};
|
|
1389
1359
|
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1360
|
+
+ .tag {
|
|
1361
|
+
border-color: ${lightGrey$6};
|
|
1362
|
+
background-color: ${lightGrey$6};
|
|
1363
|
+
color: ${grey$9};
|
|
1364
|
+
}
|
|
1365
|
+
`;
|
|
1393
1366
|
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1367
|
+
const {
|
|
1368
|
+
Option
|
|
1369
|
+
} = components;
|
|
1370
|
+
const FormatGroupLabel = ({
|
|
1371
|
+
label,
|
|
1372
|
+
options
|
|
1373
|
+
}) => {
|
|
1374
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1375
|
+
style: {
|
|
1376
|
+
display: 'flex',
|
|
1377
|
+
alignItems: 'center',
|
|
1378
|
+
justifyContent: 'space-between'
|
|
1379
|
+
}
|
|
1380
|
+
}, /*#__PURE__*/React.createElement(SelectGroupLabel, {
|
|
1381
|
+
className: "selective-options-group-label"
|
|
1382
|
+
}, label), /*#__PURE__*/React.createElement(Tag, {
|
|
1383
|
+
value: `${options == null ? void 0 : options.length}`
|
|
1384
|
+
}));
|
|
1385
|
+
};
|
|
1386
|
+
const CustomSelectOption = (props, commonProps) => /*#__PURE__*/React.createElement(Option, Object.assign({}, props, commonProps), props.data.icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
1387
|
+
icon: props.data.icon
|
|
1388
|
+
}) : props.data.customImage ? props.data.customImage : null, props.data.label);
|
|
1389
|
+
const CustomSelectValue = props => /*#__PURE__*/React.createElement("div", null, props.data.icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
1390
|
+
icon: props.data.icon
|
|
1391
|
+
}) : props.data.customImage ? props.data.customImage : null, props.data.label);
|
|
1392
|
+
|
|
1393
|
+
const SelectInteractive = ({
|
|
1394
|
+
name,
|
|
1395
|
+
multi = false,
|
|
1396
|
+
search = true,
|
|
1397
|
+
placeholder,
|
|
1398
|
+
options,
|
|
1399
|
+
value,
|
|
1400
|
+
clear = true,
|
|
1401
|
+
error,
|
|
1402
|
+
disabled = false,
|
|
1403
|
+
formatGroupLabel = true,
|
|
1404
|
+
onChange = () => {},
|
|
1405
|
+
onInputChange = () => {},
|
|
1406
|
+
...rest
|
|
1407
|
+
}) => {
|
|
1408
|
+
return /*#__PURE__*/React.createElement(SelectWrapper, Object.assign({}, rest), /*#__PURE__*/React.createElement(Select$1, {
|
|
1399
1409
|
name: name,
|
|
1410
|
+
value: value,
|
|
1400
1411
|
isMulti: multi,
|
|
1401
|
-
isSearchable: search,
|
|
1402
|
-
isDisabled: disabled,
|
|
1403
|
-
placeholder: placeholder,
|
|
1404
1412
|
options: options,
|
|
1405
|
-
value: value,
|
|
1406
1413
|
isClearable: clear,
|
|
1407
|
-
|
|
1414
|
+
isDisabled: disabled,
|
|
1415
|
+
isSearchable: search,
|
|
1416
|
+
classNamePrefix: "select",
|
|
1417
|
+
placeholder: placeholder,
|
|
1418
|
+
className: "select-interactive",
|
|
1419
|
+
// @ts-ignore
|
|
1420
|
+
onChange: e => onChange(e != null ? e : []),
|
|
1408
1421
|
defaultMenuIsOpen: false,
|
|
1409
1422
|
onInputChange: onInputChange,
|
|
1410
1423
|
components: {
|
|
1411
1424
|
Option: CustomSelectOption,
|
|
1412
1425
|
SingleValue: CustomSelectValue
|
|
1413
|
-
}
|
|
1426
|
+
},
|
|
1427
|
+
formatGroupLabel: s => formatGroupLabel ? FormatGroupLabel == null ? void 0 : FormatGroupLabel(s) : undefined
|
|
1414
1428
|
}), error ? /*#__PURE__*/React.createElement(ErrorField, {
|
|
1415
1429
|
error: error
|
|
1416
1430
|
}) : null);
|
|
1417
1431
|
};
|
|
1418
1432
|
|
|
1419
1433
|
const {
|
|
1420
|
-
normal: normal$
|
|
1421
|
-
grey: grey$
|
|
1422
|
-
lightGrey: lightGrey$
|
|
1423
|
-
red: red$
|
|
1434
|
+
normal: normal$4,
|
|
1435
|
+
grey: grey$a,
|
|
1436
|
+
lightGrey: lightGrey$7,
|
|
1437
|
+
red: red$5,
|
|
1424
1438
|
lightRed
|
|
1425
1439
|
} = colors;
|
|
1426
1440
|
const Wrapper$2 = _styled.div`
|
|
1427
1441
|
border-width: ${/*#__PURE__*/rem('1px')};
|
|
1428
1442
|
border-style: solid;
|
|
1429
|
-
border-color: ${props => props.error ? red$
|
|
1443
|
+
border-color: ${props => props.error ? red$5 : grey$a};
|
|
1430
1444
|
border-radius: ${/*#__PURE__*/rem('6px')};
|
|
1431
1445
|
display: flex;
|
|
1432
1446
|
overflow: hidden;
|
|
@@ -1434,7 +1448,12 @@ const Wrapper$2 = _styled.div`
|
|
|
1434
1448
|
input {
|
|
1435
1449
|
flex: 1;
|
|
1436
1450
|
border: 0;
|
|
1437
|
-
color: ${props => props.error ? red$
|
|
1451
|
+
color: ${props => props.error ? red$5 : normal$4};
|
|
1452
|
+
|
|
1453
|
+
&:disabled {
|
|
1454
|
+
margin: 0;
|
|
1455
|
+
border-radius: 0;
|
|
1456
|
+
}
|
|
1438
1457
|
}
|
|
1439
1458
|
|
|
1440
1459
|
& + span {
|
|
@@ -1444,10 +1463,10 @@ const Wrapper$2 = _styled.div`
|
|
|
1444
1463
|
const Appendix = _styled.div`
|
|
1445
1464
|
border-width: ${props => props.position === 'left' ? `0 ${rem('1px')} 0 0` : `0 0 0 ${rem('1px')}`};
|
|
1446
1465
|
border-style: solid;
|
|
1447
|
-
border-color: ${props => props.error ? red$
|
|
1448
|
-
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};
|
|
1449
1468
|
padding: 0 ${/*#__PURE__*/rem('15px')};
|
|
1450
|
-
color: ${props => props.error ? red$
|
|
1469
|
+
color: ${props => props.error ? red$5 : grey$a};
|
|
1451
1470
|
line-height: ${/*#__PURE__*/rem('48px')};
|
|
1452
1471
|
vertical-align: center;
|
|
1453
1472
|
overflow: hidden;
|
|
@@ -1521,8 +1540,25 @@ const TruncateLine = props => {
|
|
|
1521
1540
|
}, /*#__PURE__*/React.createElement("span", null, value));
|
|
1522
1541
|
};
|
|
1523
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
|
+
|
|
1524
1560
|
const {
|
|
1525
|
-
light: light$
|
|
1561
|
+
light: light$6
|
|
1526
1562
|
} = colors;
|
|
1527
1563
|
const Wrapper$3 = _styled.div`
|
|
1528
1564
|
position: relative;
|
|
@@ -1776,7 +1812,7 @@ const Wrapper$3 = _styled.div`
|
|
|
1776
1812
|
svg {
|
|
1777
1813
|
width: ${/*#__PURE__*/rem('36px')};
|
|
1778
1814
|
height: ${/*#__PURE__*/rem('36px')};
|
|
1779
|
-
fill: ${light$
|
|
1815
|
+
fill: ${light$6};
|
|
1780
1816
|
}
|
|
1781
1817
|
|
|
1782
1818
|
&.next {
|
|
@@ -1787,7 +1823,7 @@ const Wrapper$3 = _styled.div`
|
|
|
1787
1823
|
opacity: 1;
|
|
1788
1824
|
|
|
1789
1825
|
svg {
|
|
1790
|
-
fill: ${light$
|
|
1826
|
+
fill: ${light$6};
|
|
1791
1827
|
}
|
|
1792
1828
|
}
|
|
1793
1829
|
|
|
@@ -1812,7 +1848,7 @@ const Wrapper$3 = _styled.div`
|
|
|
1812
1848
|
position: relative;
|
|
1813
1849
|
display: inline-block;
|
|
1814
1850
|
border-radius: 999px;
|
|
1815
|
-
background-color: ${light$
|
|
1851
|
+
background-color: ${light$6};
|
|
1816
1852
|
width: ${/*#__PURE__*/rem('15px')};
|
|
1817
1853
|
height: ${/*#__PURE__*/rem('15px')};
|
|
1818
1854
|
opacity: 0.25;
|
|
@@ -1946,12 +1982,12 @@ const VideoPlayer = props => {
|
|
|
1946
1982
|
};
|
|
1947
1983
|
|
|
1948
1984
|
const {
|
|
1949
|
-
lightGrey: lightGrey$
|
|
1950
|
-
green: green$
|
|
1985
|
+
lightGrey: lightGrey$8,
|
|
1986
|
+
green: green$3
|
|
1951
1987
|
} = colors;
|
|
1952
1988
|
const {
|
|
1953
|
-
bold: bold$
|
|
1954
|
-
} =
|
|
1989
|
+
bold: bold$1
|
|
1990
|
+
} = typography;
|
|
1955
1991
|
const Wrapper$5 = _styled.div`
|
|
1956
1992
|
display: flex;
|
|
1957
1993
|
align-items: center;
|
|
@@ -1959,13 +1995,13 @@ const Wrapper$5 = _styled.div`
|
|
|
1959
1995
|
const Bar = _styled.div`
|
|
1960
1996
|
flex: 1;
|
|
1961
1997
|
border-radius: 999px;
|
|
1962
|
-
background-color: ${lightGrey$
|
|
1998
|
+
background-color: ${lightGrey$8};
|
|
1963
1999
|
height: ${/*#__PURE__*/rem('10px')};
|
|
1964
2000
|
overflow: hidden;
|
|
1965
2001
|
`;
|
|
1966
2002
|
const Progress = _styled.div`
|
|
1967
2003
|
border-radius: 999px;
|
|
1968
|
-
background-color: ${green$
|
|
2004
|
+
background-color: ${green$3};
|
|
1969
2005
|
height: 100%;
|
|
1970
2006
|
width: ${props => props.progress ? `${props.progress}%` : 0};
|
|
1971
2007
|
transition-duration: 2s;
|
|
@@ -1973,7 +2009,7 @@ const Progress = _styled.div`
|
|
|
1973
2009
|
const Value = _styled.div`
|
|
1974
2010
|
margin-left: ${/*#__PURE__*/rem('5px')};
|
|
1975
2011
|
font-size: 0.75rem;
|
|
1976
|
-
font-weight: ${bold$
|
|
2012
|
+
font-weight: ${bold$1};
|
|
1977
2013
|
`;
|
|
1978
2014
|
|
|
1979
2015
|
const ProgressBar = props => {
|
|
@@ -1987,9 +2023,9 @@ const ProgressBar = props => {
|
|
|
1987
2023
|
};
|
|
1988
2024
|
|
|
1989
2025
|
const {
|
|
1990
|
-
light: light$
|
|
1991
|
-
green: green$
|
|
1992
|
-
lightGrey: lightGrey$
|
|
2026
|
+
light: light$7,
|
|
2027
|
+
green: green$4,
|
|
2028
|
+
lightGrey: lightGrey$9
|
|
1993
2029
|
} = colors;
|
|
1994
2030
|
const Switcher = _styled.fieldset`
|
|
1995
2031
|
margin: 0;
|
|
@@ -2015,7 +2051,7 @@ const Switcher = _styled.fieldset`
|
|
|
2015
2051
|
width: ${/*#__PURE__*/rem('40px')};
|
|
2016
2052
|
height: ${/*#__PURE__*/rem('24px')};
|
|
2017
2053
|
border-radius: 999px;
|
|
2018
|
-
border: 2px solid ${light$
|
|
2054
|
+
border: 2px solid ${light$7};
|
|
2019
2055
|
position: relative;
|
|
2020
2056
|
opacity: ${props => props.disabled ? '0.5' : '1'};
|
|
2021
2057
|
|
|
@@ -2040,7 +2076,7 @@ const Switcher = _styled.fieldset`
|
|
|
2040
2076
|
}
|
|
2041
2077
|
|
|
2042
2078
|
&.switch-on:checked ~ .bg {
|
|
2043
|
-
background-color: ${green$
|
|
2079
|
+
background-color: ${green$4};
|
|
2044
2080
|
}
|
|
2045
2081
|
|
|
2046
2082
|
&.switch-off:checked ~ .switcher {
|
|
@@ -2048,7 +2084,7 @@ const Switcher = _styled.fieldset`
|
|
|
2048
2084
|
}
|
|
2049
2085
|
|
|
2050
2086
|
&.switch-off:checked ~ .bg {
|
|
2051
|
-
background-color: ${lightGrey$
|
|
2087
|
+
background-color: ${lightGrey$9};
|
|
2052
2088
|
}
|
|
2053
2089
|
}
|
|
2054
2090
|
|
|
@@ -2061,7 +2097,7 @@ const Switcher = _styled.fieldset`
|
|
|
2061
2097
|
width: ${/*#__PURE__*/rem('16px')};
|
|
2062
2098
|
height: ${/*#__PURE__*/rem('16px')};
|
|
2063
2099
|
border-radius: 50%;
|
|
2064
|
-
background-color: ${light$
|
|
2100
|
+
background-color: ${light$7};
|
|
2065
2101
|
transition: all 0.3s ease-out;
|
|
2066
2102
|
z-index: 2;
|
|
2067
2103
|
}
|
|
@@ -2076,7 +2112,7 @@ const Switcher = _styled.fieldset`
|
|
|
2076
2112
|
border-radius: 999px;
|
|
2077
2113
|
background-color: transparent;
|
|
2078
2114
|
transition: all 0.3s ease-out;
|
|
2079
|
-
background-color: ${lightGrey$
|
|
2115
|
+
background-color: ${lightGrey$9};
|
|
2080
2116
|
}
|
|
2081
2117
|
}
|
|
2082
2118
|
}
|
|
@@ -2164,14 +2200,14 @@ const Toggle = ({
|
|
|
2164
2200
|
};
|
|
2165
2201
|
|
|
2166
2202
|
const {
|
|
2167
|
-
red: red$
|
|
2168
|
-
grey: grey$
|
|
2169
|
-
lightGrey: lightGrey$
|
|
2170
|
-
darkGrey
|
|
2171
|
-
green: green$
|
|
2172
|
-
darkGreen: darkGreen$
|
|
2173
|
-
light: light$
|
|
2174
|
-
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
|
|
2175
2211
|
} = colors;
|
|
2176
2212
|
const Wrapper$6 = _styled.div`
|
|
2177
2213
|
input {
|
|
@@ -2187,9 +2223,9 @@ const Wrapper$6 = _styled.div`
|
|
|
2187
2223
|
margin-bottom: 0 !important;
|
|
2188
2224
|
border-width: ${props => props.minimal ? `0 0 ${rem('1px')} 0` : rem('1px')};
|
|
2189
2225
|
border-style: solid;
|
|
2190
|
-
border-color: ${props => props.error ? red$
|
|
2226
|
+
border-color: ${props => props.error ? red$6 : grey$b};
|
|
2191
2227
|
border-radius: ${props => props.minimal ? 0 : rem('6px')};
|
|
2192
|
-
background-color: ${props => props.disabled ? lightGrey$
|
|
2228
|
+
background-color: ${props => props.disabled ? lightGrey$a : 'transparent'};
|
|
2193
2229
|
display: flex;
|
|
2194
2230
|
justify-content: space-between;
|
|
2195
2231
|
align-items: center;
|
|
@@ -2209,34 +2245,34 @@ const Wrapper$6 = _styled.div`
|
|
|
2209
2245
|
flex: 1;
|
|
2210
2246
|
display: block;
|
|
2211
2247
|
padding: ${props => props.minimal ? 0 : `0 ${rem('10px')}`};
|
|
2212
|
-
color: ${props => props.disabled ? grey$
|
|
2248
|
+
color: ${props => props.disabled ? grey$b : normal$5};
|
|
2213
2249
|
white-space: nowrap;
|
|
2214
2250
|
overflow: hidden;
|
|
2215
2251
|
text-overflow: ellipsis;
|
|
2216
2252
|
}
|
|
2217
2253
|
|
|
2218
2254
|
&.button {
|
|
2219
|
-
border-left: ${props => props.minimal ? 0 : `${rem('1px')} solid ${grey$
|
|
2220
|
-
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};
|
|
2221
2257
|
height: 100%;
|
|
2222
2258
|
padding: ${props => props.minimal ? `0 ${rem('5px')} 0 ${rem('20px')}` : `0 ${rem('20px')}`};
|
|
2223
|
-
color: ${props => props.disabled ? grey$
|
|
2259
|
+
color: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2224
2260
|
transition-duration: 0.3s;
|
|
2225
2261
|
|
|
2226
2262
|
svg {
|
|
2227
2263
|
margin-right: ${/*#__PURE__*/rem('8px')};
|
|
2228
2264
|
width: auto;
|
|
2229
2265
|
height: ${/*#__PURE__*/rem('24px')};
|
|
2230
|
-
fill: ${props => props.disabled ? grey$
|
|
2266
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2231
2267
|
transition-duration: 0.3s;
|
|
2232
2268
|
}
|
|
2233
2269
|
|
|
2234
2270
|
&:hover {
|
|
2235
|
-
background-color: ${props => props.minimal ? 'transparent' : darkGreen$
|
|
2236
|
-
color: ${props => props.minimal ? darkGreen$
|
|
2271
|
+
background-color: ${props => props.minimal ? 'transparent' : darkGreen$2};
|
|
2272
|
+
color: ${props => props.minimal ? darkGreen$2 : light$8};
|
|
2237
2273
|
|
|
2238
2274
|
svg {
|
|
2239
|
-
fill: ${props => props.disabled ? grey$
|
|
2275
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGreen$2 : light$8};
|
|
2240
2276
|
}
|
|
2241
2277
|
}
|
|
2242
2278
|
}
|
|
@@ -2298,10 +2334,10 @@ const FilePicker = props => {
|
|
|
2298
2334
|
};
|
|
2299
2335
|
|
|
2300
2336
|
const {
|
|
2301
|
-
normal: normal$
|
|
2302
|
-
light: light$
|
|
2303
|
-
lightGrey: lightGrey$
|
|
2304
|
-
red: red$
|
|
2337
|
+
normal: normal$6,
|
|
2338
|
+
light: light$9,
|
|
2339
|
+
lightGrey: lightGrey$b,
|
|
2340
|
+
red: red$7
|
|
2305
2341
|
} = colors;
|
|
2306
2342
|
const ActionsMenuStyle$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
2307
2343
|
displayName: "styles__ActionsMenuStyle",
|
|
@@ -2310,11 +2346,11 @@ const ActionsMenuStyle$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2310
2346
|
const List = /*#__PURE__*/_styled.ul.withConfig({
|
|
2311
2347
|
displayName: "styles__List",
|
|
2312
2348
|
componentId: "sc-1peafop-1"
|
|
2313
|
-
})(["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`
|
|
2314
2350
|
--margin: ${`calc(${rem('45px')} + ${rem('50px')} * ${props.rowIndex} + ${rem('42px')})`};
|
|
2315
2351
|
top: var(--margin);
|
|
2316
2352
|
right: ${rem('5px')};
|
|
2317
|
-
`, /*#__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);
|
|
2318
2354
|
|
|
2319
2355
|
const ActionMenuList = props => {
|
|
2320
2356
|
const {
|
|
@@ -2387,13 +2423,13 @@ const ActionsMenu = props => {
|
|
|
2387
2423
|
};
|
|
2388
2424
|
|
|
2389
2425
|
const {
|
|
2390
|
-
light: light$
|
|
2391
|
-
grey: grey$
|
|
2426
|
+
light: light$a,
|
|
2427
|
+
grey: grey$c
|
|
2392
2428
|
} = colors;
|
|
2393
2429
|
const CardValueStyle = /*#__PURE__*/_styled.div.withConfig({
|
|
2394
2430
|
displayName: "styles__CardValueStyle",
|
|
2395
2431
|
componentId: "sc-1ki7jdk-0"
|
|
2396
|
-
})(["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'));
|
|
2397
2433
|
const CardValueButtonWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2398
2434
|
displayName: "styles__CardValueButtonWrapper",
|
|
2399
2435
|
componentId: "sc-1ki7jdk-1"
|
|
@@ -2424,12 +2460,12 @@ const CardValue = props => {
|
|
|
2424
2460
|
};
|
|
2425
2461
|
|
|
2426
2462
|
const {
|
|
2427
|
-
grey: grey$
|
|
2428
|
-
light: light$
|
|
2463
|
+
grey: grey$d,
|
|
2464
|
+
light: light$b
|
|
2429
2465
|
} = colors;
|
|
2430
2466
|
const {
|
|
2431
|
-
bold: bold$
|
|
2432
|
-
} =
|
|
2467
|
+
bold: bold$2
|
|
2468
|
+
} = typography;
|
|
2433
2469
|
const EmptyTableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2434
2470
|
displayName: "styles__EmptyTableWrapper",
|
|
2435
2471
|
componentId: "sc-1dgsb9l-0"
|
|
@@ -2437,15 +2473,15 @@ const EmptyTableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2437
2473
|
const EmptyTableHead = /*#__PURE__*/_styled.div.withConfig({
|
|
2438
2474
|
displayName: "styles__EmptyTableHead",
|
|
2439
2475
|
componentId: "sc-1dgsb9l-1"
|
|
2440
|
-
})(["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);
|
|
2441
2477
|
const EmptyTableBody = /*#__PURE__*/_styled.div.withConfig({
|
|
2442
2478
|
displayName: "styles__EmptyTableBody",
|
|
2443
2479
|
componentId: "sc-1dgsb9l-2"
|
|
2444
|
-
})(["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'));
|
|
2445
2481
|
const EmptyTableRow = /*#__PURE__*/_styled.div.withConfig({
|
|
2446
2482
|
displayName: "styles__EmptyTableRow",
|
|
2447
2483
|
componentId: "sc-1dgsb9l-3"
|
|
2448
|
-
})(["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);
|
|
2449
2485
|
const EmptyTableCellText = /*#__PURE__*/_styled.div.withConfig({
|
|
2450
2486
|
displayName: "styles__EmptyTableCellText",
|
|
2451
2487
|
componentId: "sc-1dgsb9l-4"
|
|
@@ -2453,7 +2489,7 @@ const EmptyTableCellText = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2453
2489
|
const EmptyTableOverlay = /*#__PURE__*/_styled.div.withConfig({
|
|
2454
2490
|
displayName: "styles__EmptyTableOverlay",
|
|
2455
2491
|
componentId: "sc-1dgsb9l-5"
|
|
2456
|
-
})(["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);
|
|
2457
2493
|
|
|
2458
2494
|
const EmptyTable = props => {
|
|
2459
2495
|
let rows = [];
|
|
@@ -2513,31 +2549,31 @@ const ModalFooter = props => {
|
|
|
2513
2549
|
};
|
|
2514
2550
|
|
|
2515
2551
|
const {
|
|
2516
|
-
green: green$
|
|
2552
|
+
green: green$6,
|
|
2517
2553
|
lightGreen,
|
|
2518
|
-
darkGreen: darkGreen$
|
|
2519
|
-
grey: grey$
|
|
2520
|
-
lightGrey: lightGrey$
|
|
2521
|
-
darkGrey: darkGrey$
|
|
2522
|
-
red: red$
|
|
2554
|
+
darkGreen: darkGreen$3,
|
|
2555
|
+
grey: grey$e,
|
|
2556
|
+
lightGrey: lightGrey$c,
|
|
2557
|
+
darkGrey: darkGrey$1,
|
|
2558
|
+
red: red$8,
|
|
2523
2559
|
lightRed: lightRed$1,
|
|
2524
|
-
darkRed: darkRed$
|
|
2560
|
+
darkRed: darkRed$1
|
|
2525
2561
|
} = colors;
|
|
2526
2562
|
const Wrapper$7 = /*#__PURE__*/_styled.div.withConfig({
|
|
2527
2563
|
displayName: "styles__Wrapper",
|
|
2528
2564
|
componentId: "d2fn4g-0"
|
|
2529
|
-
})(["--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$
|
|
2530
|
-
--default: ${grey$
|
|
2531
|
-
--light: ${lightGrey$
|
|
2532
|
-
--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};
|
|
2533
2569
|
`, props => props.color === 'green' && css`
|
|
2534
|
-
--default: ${green$
|
|
2570
|
+
--default: ${green$6};
|
|
2535
2571
|
--light: ${lightGreen};
|
|
2536
|
-
--dark: ${darkGreen$
|
|
2572
|
+
--dark: ${darkGreen$3};
|
|
2537
2573
|
`, props => props.color === 'red' && css`
|
|
2538
|
-
--default: ${red$
|
|
2574
|
+
--default: ${red$8};
|
|
2539
2575
|
--light: ${lightRed$1};
|
|
2540
|
-
--dark: ${darkRed$
|
|
2576
|
+
--dark: ${darkRed$1};
|
|
2541
2577
|
`, /*#__PURE__*/rem('2px'), /*#__PURE__*/rem('6px'), /*#__PURE__*/rem('15px'), props => props.buttonValue && css`
|
|
2542
2578
|
button {
|
|
2543
2579
|
margin: ${rem('30px')} 0 0 0;
|
|
@@ -2596,14 +2632,14 @@ function hasValue(value) {
|
|
|
2596
2632
|
}
|
|
2597
2633
|
|
|
2598
2634
|
const {
|
|
2599
|
-
normal: normal$
|
|
2600
|
-
light: light$
|
|
2601
|
-
grey: grey$
|
|
2602
|
-
lightGrey: lightGrey$
|
|
2635
|
+
normal: normal$7,
|
|
2636
|
+
light: light$c,
|
|
2637
|
+
grey: grey$f,
|
|
2638
|
+
lightGrey: lightGrey$d
|
|
2603
2639
|
} = colors;
|
|
2604
2640
|
const {
|
|
2605
|
-
bold: bold$
|
|
2606
|
-
} =
|
|
2641
|
+
bold: bold$3
|
|
2642
|
+
} = typography;
|
|
2607
2643
|
const TableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2608
2644
|
displayName: "styles__TableWrapper",
|
|
2609
2645
|
componentId: "vmoy3z-0"
|
|
@@ -2611,11 +2647,11 @@ const TableWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
|
2611
2647
|
const OverflowWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
2612
2648
|
displayName: "styles__OverflowWrapper",
|
|
2613
2649
|
componentId: "vmoy3z-1"
|
|
2614
|
-
})(["@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'));
|
|
2615
2651
|
const Table = /*#__PURE__*/_styled.table.withConfig({
|
|
2616
2652
|
displayName: "styles__Table",
|
|
2617
2653
|
componentId: "vmoy3z-2"
|
|
2618
|
-
})(["width:100%;border-width:", ";border-style:solid;border-color:", ";border-radius:", ";border-spacing:0;white-space:nowrap;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;> 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$
|
|
2654
|
+
})(["width:100%;border-width:", ";border-style:solid;border-color:", ";border-radius:", ";border-spacing:0;white-space:nowrap;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;> 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$f, /*#__PURE__*/rem('6px'), /*#__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, 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, /*#__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'));
|
|
2619
2655
|
|
|
2620
2656
|
const Table$1 = props => {
|
|
2621
2657
|
const {
|
|
@@ -2715,24 +2751,24 @@ const Table$1 = props => {
|
|
|
2715
2751
|
};
|
|
2716
2752
|
|
|
2717
2753
|
const {
|
|
2718
|
-
normal: normal$
|
|
2719
|
-
grey: grey$
|
|
2720
|
-
lightGrey: lightGrey$
|
|
2754
|
+
normal: normal$8,
|
|
2755
|
+
grey: grey$g,
|
|
2756
|
+
lightGrey: lightGrey$e
|
|
2721
2757
|
} = colors;
|
|
2722
2758
|
const {
|
|
2723
|
-
bold: bold$
|
|
2724
|
-
} =
|
|
2759
|
+
bold: bold$4
|
|
2760
|
+
} = typography;
|
|
2725
2761
|
const Table$2 = /*#__PURE__*/_styled.table.withConfig({
|
|
2726
2762
|
displayName: "styles__Table",
|
|
2727
2763
|
componentId: "sc-1p618q0-0"
|
|
2728
|
-
})(["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$
|
|
2764
|
+
})(["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'));
|
|
2729
2765
|
const TableRow = /*#__PURE__*/_styled.tr.withConfig({
|
|
2730
2766
|
displayName: "styles__TableRow",
|
|
2731
2767
|
componentId: "sc-1p618q0-1"
|
|
2732
2768
|
})(["&[data-rbd-draggable-id='", "']{position:absolute;display:table;width:100%;}"], props => props.draggableId);
|
|
2733
2769
|
|
|
2734
2770
|
const {
|
|
2735
|
-
light: light$
|
|
2771
|
+
light: light$d
|
|
2736
2772
|
} = colors;
|
|
2737
2773
|
|
|
2738
2774
|
const TableDnD = props => {
|
|
@@ -2787,12 +2823,12 @@ const TableDnD = props => {
|
|
|
2787
2823
|
|
|
2788
2824
|
const getItemStyle = (isDragging, draggableStyle) => ({
|
|
2789
2825
|
userSelect: 'none',
|
|
2790
|
-
background: isDragging ? light$
|
|
2826
|
+
background: isDragging ? light$d : 'transparent',
|
|
2791
2827
|
...draggableStyle
|
|
2792
2828
|
});
|
|
2793
2829
|
|
|
2794
2830
|
const getListStyle = isDraggingOver => ({
|
|
2795
|
-
background: isDraggingOver ? light$
|
|
2831
|
+
background: isDraggingOver ? light$d : 'transparent'
|
|
2796
2832
|
});
|
|
2797
2833
|
|
|
2798
2834
|
return (
|
|
@@ -2891,14 +2927,14 @@ const TableDnD = props => {
|
|
|
2891
2927
|
};
|
|
2892
2928
|
|
|
2893
2929
|
const {
|
|
2894
|
-
normal: normal$
|
|
2895
|
-
grey: grey$
|
|
2896
|
-
red: red$
|
|
2930
|
+
normal: normal$9,
|
|
2931
|
+
grey: grey$h,
|
|
2932
|
+
red: red$9
|
|
2897
2933
|
} = colors;
|
|
2898
2934
|
const Wrapper$8 = /*#__PURE__*/_styled.div.withConfig({
|
|
2899
2935
|
displayName: "styles__Wrapper",
|
|
2900
2936
|
componentId: "mbja2a-0"
|
|
2901
|
-
})(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/rem('5px'), props => props.error ? red$
|
|
2937
|
+
})(["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'));
|
|
2902
2938
|
|
|
2903
2939
|
const FormGroup = props => {
|
|
2904
2940
|
const {
|
|
@@ -2916,14 +2952,14 @@ const FormGroup = props => {
|
|
|
2916
2952
|
};
|
|
2917
2953
|
|
|
2918
2954
|
const {
|
|
2919
|
-
grey: grey$
|
|
2920
|
-
lightGrey: lightGrey$
|
|
2955
|
+
grey: grey$i,
|
|
2956
|
+
lightGrey: lightGrey$f,
|
|
2921
2957
|
lightRed: lightRed$2
|
|
2922
2958
|
} = colors;
|
|
2923
2959
|
const Wrapper$9 = /*#__PURE__*/_styled.div.withConfig({
|
|
2924
2960
|
displayName: "styles__Wrapper",
|
|
2925
2961
|
componentId: "sc-124afcu-0"
|
|
2926
|
-
})(["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$
|
|
2962
|
+
})(["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);
|
|
2927
2963
|
const Input = /*#__PURE__*/_styled.input.withConfig({
|
|
2928
2964
|
displayName: "styles__Input",
|
|
2929
2965
|
componentId: "sc-124afcu-1"
|
|
@@ -2931,7 +2967,7 @@ const Input = /*#__PURE__*/_styled.input.withConfig({
|
|
|
2931
2967
|
const Button$1 = /*#__PURE__*/_styled.button.withConfig({
|
|
2932
2968
|
displayName: "styles__Button",
|
|
2933
2969
|
componentId: "sc-124afcu-2"
|
|
2934
|
-
})(["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$
|
|
2970
|
+
})(["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);
|
|
2935
2971
|
|
|
2936
2972
|
const NumberInputSpinner = props => {
|
|
2937
2973
|
const {
|
|
@@ -2997,10 +3033,10 @@ const NumberInputSpinner = props => {
|
|
|
2997
3033
|
};
|
|
2998
3034
|
|
|
2999
3035
|
const {
|
|
3000
|
-
green: green$
|
|
3001
|
-
grey: grey$
|
|
3002
|
-
lightGrey: lightGrey$
|
|
3003
|
-
light: light$
|
|
3036
|
+
green: green$7,
|
|
3037
|
+
grey: grey$j,
|
|
3038
|
+
lightGrey: lightGrey$g,
|
|
3039
|
+
light: light$e
|
|
3004
3040
|
} = colors;
|
|
3005
3041
|
const Steps = /*#__PURE__*/_styled.ul.withConfig({
|
|
3006
3042
|
displayName: "styles__Steps",
|
|
@@ -3009,7 +3045,7 @@ const Steps = /*#__PURE__*/_styled.ul.withConfig({
|
|
|
3009
3045
|
const Step = /*#__PURE__*/_styled.li.withConfig({
|
|
3010
3046
|
displayName: "styles__Step",
|
|
3011
3047
|
componentId: "sc-1s2dhfy-1"
|
|
3012
|
-
})(["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$
|
|
3048
|
+
})(["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);
|
|
3013
3049
|
|
|
3014
3050
|
const WizardSteps = props => {
|
|
3015
3051
|
const {
|
|
@@ -3030,13 +3066,13 @@ const WizardSteps = props => {
|
|
|
3030
3066
|
};
|
|
3031
3067
|
|
|
3032
3068
|
const {
|
|
3033
|
-
light: light$
|
|
3034
|
-
green: green$
|
|
3035
|
-
darkGreen: darkGreen$
|
|
3036
|
-
red: red$
|
|
3037
|
-
darkRed: darkRed$
|
|
3038
|
-
orange
|
|
3039
|
-
darkOrange
|
|
3069
|
+
light: light$f,
|
|
3070
|
+
green: green$8,
|
|
3071
|
+
darkGreen: darkGreen$4,
|
|
3072
|
+
red: red$a,
|
|
3073
|
+
darkRed: darkRed$2,
|
|
3074
|
+
orange,
|
|
3075
|
+
darkOrange
|
|
3040
3076
|
} = colors;
|
|
3041
3077
|
const Wrapper$a = _styled.div`
|
|
3042
3078
|
--shadow: 0 0 ${/*#__PURE__*/rem('25px')} 0 rgba(40, 40, 40, 0.2);
|
|
@@ -3044,14 +3080,14 @@ const Wrapper$a = _styled.div`
|
|
|
3044
3080
|
position: fixed;
|
|
3045
3081
|
top: ${/*#__PURE__*/rem('15px')};
|
|
3046
3082
|
right: 0;
|
|
3047
|
-
border: ${/*#__PURE__*/rem('2px')} solid ${darkGreen$
|
|
3083
|
+
border: ${/*#__PURE__*/rem('2px')} solid ${darkGreen$4};
|
|
3048
3084
|
border-radius: ${/*#__PURE__*/rem('6px')};
|
|
3049
|
-
background-color: ${green$
|
|
3085
|
+
background-color: ${green$8};
|
|
3050
3086
|
width: ${/*#__PURE__*/rem('300px')};
|
|
3051
3087
|
max-height: min-content;
|
|
3052
3088
|
display: flex;
|
|
3053
3089
|
padding: ${/*#__PURE__*/rem('15px')};
|
|
3054
|
-
color: ${light$
|
|
3090
|
+
color: ${light$f};
|
|
3055
3091
|
-moz-box-shadow: var(--shadow);
|
|
3056
3092
|
-webkit-box-shadow: var(--shadow);
|
|
3057
3093
|
box-shadow: var(--shadow);
|
|
@@ -3062,7 +3098,7 @@ const Wrapper$a = _styled.div`
|
|
|
3062
3098
|
background-color: transparent;
|
|
3063
3099
|
|
|
3064
3100
|
svg {
|
|
3065
|
-
fill: ${darkGreen$
|
|
3101
|
+
fill: ${darkGreen$4};
|
|
3066
3102
|
}
|
|
3067
3103
|
}
|
|
3068
3104
|
|
|
@@ -3084,23 +3120,23 @@ const Wrapper$a = _styled.div`
|
|
|
3084
3120
|
}
|
|
3085
3121
|
|
|
3086
3122
|
${props => props.variant === 'orange' && css`
|
|
3087
|
-
border: ${rem('2px')} solid ${darkOrange
|
|
3088
|
-
background-color: ${orange
|
|
3123
|
+
border: ${rem('2px')} solid ${darkOrange};
|
|
3124
|
+
background-color: ${orange};
|
|
3089
3125
|
|
|
3090
3126
|
button {
|
|
3091
3127
|
svg {
|
|
3092
|
-
fill: ${darkOrange
|
|
3128
|
+
fill: ${darkOrange};
|
|
3093
3129
|
}
|
|
3094
3130
|
}
|
|
3095
3131
|
`}
|
|
3096
3132
|
|
|
3097
3133
|
${props => props.variant === 'red' && css`
|
|
3098
|
-
border: ${rem('2px')} solid ${darkRed$
|
|
3099
|
-
background-color: ${red$
|
|
3134
|
+
border: ${rem('2px')} solid ${darkRed$2};
|
|
3135
|
+
background-color: ${red$a};
|
|
3100
3136
|
|
|
3101
3137
|
button {
|
|
3102
3138
|
svg {
|
|
3103
|
-
fill: ${darkRed$
|
|
3139
|
+
fill: ${darkRed$2};
|
|
3104
3140
|
}
|
|
3105
3141
|
}
|
|
3106
3142
|
`}
|
|
@@ -3140,14 +3176,14 @@ const AlertNotification = props => {
|
|
|
3140
3176
|
};
|
|
3141
3177
|
|
|
3142
3178
|
const {
|
|
3143
|
-
normal: normal$
|
|
3144
|
-
light: light$
|
|
3145
|
-
blue
|
|
3146
|
-
lightGrey: lightGrey$
|
|
3179
|
+
normal: normal$a,
|
|
3180
|
+
light: light$g,
|
|
3181
|
+
blue,
|
|
3182
|
+
lightGrey: lightGrey$h
|
|
3147
3183
|
} = colors;
|
|
3148
3184
|
const {
|
|
3149
|
-
bold: bold$
|
|
3150
|
-
} =
|
|
3185
|
+
bold: bold$5
|
|
3186
|
+
} = typography;
|
|
3151
3187
|
const PaginationWrapper = _styled.div`
|
|
3152
3188
|
--size: ${/*#__PURE__*/rem('30px')};
|
|
3153
3189
|
|
|
@@ -3188,18 +3224,18 @@ const PaginationWrapper = _styled.div`
|
|
|
3188
3224
|
display: flex;
|
|
3189
3225
|
justify-content: center;
|
|
3190
3226
|
align-items: center;
|
|
3191
|
-
color: ${normal$
|
|
3192
|
-
font-weight: ${bold$
|
|
3227
|
+
color: ${normal$a};
|
|
3228
|
+
font-weight: ${bold$5};
|
|
3193
3229
|
text-decoration: none;
|
|
3194
3230
|
|
|
3195
3231
|
&:hover {
|
|
3196
|
-
color: ${blue
|
|
3232
|
+
color: ${blue};
|
|
3197
3233
|
}
|
|
3198
3234
|
|
|
3199
3235
|
svg {
|
|
3200
3236
|
width: ${/*#__PURE__*/rem('18px')};
|
|
3201
3237
|
height: auto;
|
|
3202
|
-
fill: ${blue
|
|
3238
|
+
fill: ${blue};
|
|
3203
3239
|
}
|
|
3204
3240
|
}
|
|
3205
3241
|
|
|
@@ -3207,18 +3243,18 @@ const PaginationWrapper = _styled.div`
|
|
|
3207
3243
|
pointer-events: none;
|
|
3208
3244
|
|
|
3209
3245
|
a {
|
|
3210
|
-
background-color: ${blue
|
|
3211
|
-
color: ${light$
|
|
3246
|
+
background-color: ${blue};
|
|
3247
|
+
color: ${light$g};
|
|
3212
3248
|
}
|
|
3213
3249
|
}
|
|
3214
3250
|
}
|
|
3215
3251
|
|
|
3216
3252
|
&.dark {
|
|
3217
3253
|
a {
|
|
3218
|
-
color: ${lightGrey$
|
|
3254
|
+
color: ${lightGrey$h};
|
|
3219
3255
|
|
|
3220
3256
|
&:hover {
|
|
3221
|
-
color: ${light$
|
|
3257
|
+
color: ${light$g};
|
|
3222
3258
|
}
|
|
3223
3259
|
}
|
|
3224
3260
|
}
|
|
@@ -3277,12 +3313,12 @@ const PaginationControl = props => {
|
|
|
3277
3313
|
};
|
|
3278
3314
|
|
|
3279
3315
|
const {
|
|
3280
|
-
normal: normal$
|
|
3281
|
-
green: green$
|
|
3316
|
+
normal: normal$b,
|
|
3317
|
+
green: green$9
|
|
3282
3318
|
} = colors;
|
|
3283
3319
|
const {
|
|
3284
|
-
bold: bold$
|
|
3285
|
-
} =
|
|
3320
|
+
bold: bold$6
|
|
3321
|
+
} = typography;
|
|
3286
3322
|
const Wrapper$b = _styled.div`
|
|
3287
3323
|
min-height: ${props => props.variant === 'default' ? '50vh' : 'inherit'};
|
|
3288
3324
|
display: flex;
|
|
@@ -3299,15 +3335,15 @@ const Wrapper$b = _styled.div`
|
|
|
3299
3335
|
|
|
3300
3336
|
> span {
|
|
3301
3337
|
margin-top: ${/*#__PURE__*/rem('15px')};
|
|
3302
|
-
font-weight: ${bold$
|
|
3303
|
-
color: ${normal$
|
|
3338
|
+
font-weight: ${bold$6};
|
|
3339
|
+
color: ${normal$b};
|
|
3304
3340
|
|
|
3305
3341
|
a {
|
|
3306
|
-
color: ${normal$
|
|
3342
|
+
color: ${normal$b};
|
|
3307
3343
|
transition-duration: 0.3s;
|
|
3308
3344
|
|
|
3309
3345
|
&:hover {
|
|
3310
|
-
color: ${green$
|
|
3346
|
+
color: ${green$9};
|
|
3311
3347
|
}
|
|
3312
3348
|
}
|
|
3313
3349
|
}
|
|
@@ -3327,12 +3363,12 @@ const Error = props => {
|
|
|
3327
3363
|
};
|
|
3328
3364
|
|
|
3329
3365
|
const {
|
|
3330
|
-
normal: normal$
|
|
3331
|
-
green: green$
|
|
3366
|
+
normal: normal$c,
|
|
3367
|
+
green: green$a
|
|
3332
3368
|
} = colors;
|
|
3333
3369
|
const {
|
|
3334
|
-
bold: bold$
|
|
3335
|
-
} =
|
|
3370
|
+
bold: bold$7
|
|
3371
|
+
} = typography;
|
|
3336
3372
|
const Wrapper$c = _styled.div`
|
|
3337
3373
|
min-height: 50vh;
|
|
3338
3374
|
display: flex;
|
|
@@ -3349,15 +3385,15 @@ const Wrapper$c = _styled.div`
|
|
|
3349
3385
|
|
|
3350
3386
|
> div {
|
|
3351
3387
|
margin-top: ${/*#__PURE__*/rem('15px')};
|
|
3352
|
-
font-weight: ${bold$
|
|
3353
|
-
color: ${normal$
|
|
3388
|
+
font-weight: ${bold$7};
|
|
3389
|
+
color: ${normal$c};
|
|
3354
3390
|
|
|
3355
3391
|
a {
|
|
3356
|
-
color: ${normal$
|
|
3392
|
+
color: ${normal$c};
|
|
3357
3393
|
transition-duration: 0.3s;
|
|
3358
3394
|
|
|
3359
3395
|
&:hover {
|
|
3360
|
-
color: ${green$
|
|
3396
|
+
color: ${green$a};
|
|
3361
3397
|
}
|
|
3362
3398
|
}
|
|
3363
3399
|
}
|
|
@@ -5325,12 +5361,12 @@ const DataWarning = props => {
|
|
|
5325
5361
|
};
|
|
5326
5362
|
|
|
5327
5363
|
const {
|
|
5328
|
-
normal: normal$
|
|
5329
|
-
green: green$
|
|
5330
|
-
darkGreen: darkGreen$
|
|
5331
|
-
grey: grey$
|
|
5332
|
-
lightGrey: lightGrey$
|
|
5333
|
-
red: red$
|
|
5364
|
+
normal: normal$d,
|
|
5365
|
+
green: green$b,
|
|
5366
|
+
darkGreen: darkGreen$5,
|
|
5367
|
+
grey: grey$k,
|
|
5368
|
+
lightGrey: lightGrey$i,
|
|
5369
|
+
red: red$b
|
|
5334
5370
|
} = colors;
|
|
5335
5371
|
const Wrapper$d = _styled.ul`
|
|
5336
5372
|
display: flex;
|
|
@@ -5353,11 +5389,11 @@ const Wrapper$d = _styled.ul`
|
|
|
5353
5389
|
}
|
|
5354
5390
|
|
|
5355
5391
|
input[type='radio']:checked ~ .check {
|
|
5356
|
-
border-color: ${darkGreen$
|
|
5392
|
+
border-color: ${darkGreen$5};
|
|
5357
5393
|
}
|
|
5358
5394
|
|
|
5359
5395
|
input[type='radio']:checked ~ .check::before {
|
|
5360
|
-
background-color: ${green$
|
|
5396
|
+
background-color: ${green$b};
|
|
5361
5397
|
}
|
|
5362
5398
|
|
|
5363
5399
|
& + span {
|
|
@@ -5380,7 +5416,7 @@ const Item = _styled.li`
|
|
|
5380
5416
|
padding-left: calc(var(--size) + 5px);
|
|
5381
5417
|
line-height: var(--size);
|
|
5382
5418
|
vertical-align: middle;
|
|
5383
|
-
color: ${props => props.error ? red$
|
|
5419
|
+
color: ${props => props.error ? red$b : null};
|
|
5384
5420
|
cursor: pointer;
|
|
5385
5421
|
z-index: 1;
|
|
5386
5422
|
}
|
|
@@ -5388,7 +5424,7 @@ const Item = _styled.li`
|
|
|
5388
5424
|
.check {
|
|
5389
5425
|
position: absolute;
|
|
5390
5426
|
top: 0;
|
|
5391
|
-
border: ${/*#__PURE__*/rem('2px')} solid ${props => props.error ? red$
|
|
5427
|
+
border: ${/*#__PURE__*/rem('2px')} solid ${props => props.error ? red$b : grey$k};
|
|
5392
5428
|
border-radius: 100%;
|
|
5393
5429
|
width: var(--size);
|
|
5394
5430
|
height: var(--size);
|
|
@@ -5407,21 +5443,21 @@ const Item = _styled.li`
|
|
|
5407
5443
|
}
|
|
5408
5444
|
|
|
5409
5445
|
&:hover .check {
|
|
5410
|
-
border-color: ${normal$
|
|
5446
|
+
border-color: ${normal$d};
|
|
5411
5447
|
}
|
|
5412
5448
|
|
|
5413
5449
|
${props => props.disabled && css`
|
|
5414
5450
|
label {
|
|
5415
|
-
color: ${grey$
|
|
5451
|
+
color: ${grey$k};
|
|
5416
5452
|
}
|
|
5417
5453
|
|
|
5418
5454
|
input[type='radio'] ~ .check,
|
|
5419
5455
|
input[type='radio']:checked ~ .check {
|
|
5420
|
-
border-color: ${lightGrey$
|
|
5456
|
+
border-color: ${lightGrey$i};
|
|
5421
5457
|
}
|
|
5422
5458
|
|
|
5423
5459
|
input[type='radio']:checked ~ .check::before {
|
|
5424
|
-
background-color: ${lightGrey$
|
|
5460
|
+
background-color: ${lightGrey$i};
|
|
5425
5461
|
}
|
|
5426
5462
|
|
|
5427
5463
|
&:hover {
|
|
@@ -5527,10 +5563,10 @@ const Wrapper$f = _styled.div`
|
|
|
5527
5563
|
}
|
|
5528
5564
|
`;
|
|
5529
5565
|
const {
|
|
5530
|
-
grey: grey$
|
|
5531
|
-
darkGrey: darkGrey$
|
|
5532
|
-
light: light$
|
|
5533
|
-
|
|
5566
|
+
grey: grey$l,
|
|
5567
|
+
darkGrey: darkGrey$2,
|
|
5568
|
+
light: light$h,
|
|
5569
|
+
purple500: purple500$4
|
|
5534
5570
|
} = colors;
|
|
5535
5571
|
const Field = _styled.div`
|
|
5536
5572
|
display: flex;
|
|
@@ -5544,7 +5580,7 @@ const Field = _styled.div`
|
|
|
5544
5580
|
outline: none;
|
|
5545
5581
|
|
|
5546
5582
|
+ button {
|
|
5547
|
-
background-color: ${
|
|
5583
|
+
background-color: ${purple500$4};
|
|
5548
5584
|
}
|
|
5549
5585
|
}
|
|
5550
5586
|
}
|
|
@@ -5557,7 +5593,7 @@ const Field = _styled.div`
|
|
|
5557
5593
|
button {
|
|
5558
5594
|
border: 0;
|
|
5559
5595
|
border-radius: 0 ${/*#__PURE__*/rem('6px')} ${/*#__PURE__*/rem('6px')} 0;
|
|
5560
|
-
background-color: ${grey$
|
|
5596
|
+
background-color: ${grey$l};
|
|
5561
5597
|
min-width: ${/*#__PURE__*/rem('50px')};
|
|
5562
5598
|
height: ${/*#__PURE__*/rem('50px')};
|
|
5563
5599
|
display: flex;
|
|
@@ -5573,12 +5609,12 @@ const Field = _styled.div`
|
|
|
5573
5609
|
width: auto;
|
|
5574
5610
|
min-width: ${/*#__PURE__*/rem('20px')};
|
|
5575
5611
|
height: ${/*#__PURE__*/rem('20px')};
|
|
5576
|
-
fill: ${light$
|
|
5612
|
+
fill: ${light$h};
|
|
5577
5613
|
transition: 0.3s;
|
|
5578
5614
|
}
|
|
5579
5615
|
|
|
5580
5616
|
&:hover {
|
|
5581
|
-
background-color: ${darkGrey$
|
|
5617
|
+
background-color: ${darkGrey$2};
|
|
5582
5618
|
}
|
|
5583
5619
|
|
|
5584
5620
|
&:disabled {
|
|
@@ -5586,7 +5622,7 @@ const Field = _styled.div`
|
|
|
5586
5622
|
opacity: 0.5;
|
|
5587
5623
|
|
|
5588
5624
|
&:hover {
|
|
5589
|
-
background-color: ${grey$
|
|
5625
|
+
background-color: ${grey$l};
|
|
5590
5626
|
pointer-events: none;
|
|
5591
5627
|
}
|
|
5592
5628
|
}
|
|
@@ -5632,23 +5668,23 @@ const FieldWidthButton = props => {
|
|
|
5632
5668
|
};
|
|
5633
5669
|
|
|
5634
5670
|
const {
|
|
5635
|
-
normal: normal$
|
|
5636
|
-
|
|
5637
|
-
grey: grey$
|
|
5638
|
-
lightGrey: lightGrey$
|
|
5639
|
-
light: light$
|
|
5671
|
+
normal: normal$e,
|
|
5672
|
+
purple500: purple500$5,
|
|
5673
|
+
grey: grey$m,
|
|
5674
|
+
lightGrey: lightGrey$j,
|
|
5675
|
+
light: light$i
|
|
5640
5676
|
} = colors;
|
|
5641
5677
|
const {
|
|
5642
|
-
bold: bold$
|
|
5643
|
-
} =
|
|
5678
|
+
bold: bold$8
|
|
5679
|
+
} = typography;
|
|
5644
5680
|
const Wrapper$g = /*#__PURE__*/_styled.div.withConfig({
|
|
5645
5681
|
displayName: "styles__Wrapper",
|
|
5646
5682
|
componentId: "znznmm-0"
|
|
5647
|
-
})(["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$
|
|
5683
|
+
})(["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);
|
|
5648
5684
|
const More = /*#__PURE__*/_styled.div.withConfig({
|
|
5649
5685
|
displayName: "styles__More",
|
|
5650
5686
|
componentId: "znznmm-1"
|
|
5651
|
-
})(["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$
|
|
5687
|
+
})(["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'));
|
|
5652
5688
|
|
|
5653
5689
|
const HorizontalNav = props => {
|
|
5654
5690
|
const [showMore, setShowMore] = useState(false);
|
|
@@ -5725,11 +5761,11 @@ const HorizontalNav = props => {
|
|
|
5725
5761
|
};
|
|
5726
5762
|
|
|
5727
5763
|
const {
|
|
5728
|
-
light: light$
|
|
5764
|
+
light: light$j
|
|
5729
5765
|
} = colors;
|
|
5730
5766
|
const {
|
|
5731
|
-
bold: bold$
|
|
5732
|
-
} =
|
|
5767
|
+
bold: bold$9
|
|
5768
|
+
} = typography;
|
|
5733
5769
|
const ModalOverlay = /*#__PURE__*/_styled.div.withConfig({
|
|
5734
5770
|
displayName: "styles__ModalOverlay",
|
|
5735
5771
|
componentId: "sc-16r6vcc-0"
|
|
@@ -5741,11 +5777,11 @@ const ModalWrapper = /*#__PURE__*/_styled.div.withConfig({
|
|
|
5741
5777
|
const ModalContainer = /*#__PURE__*/_styled.div.withConfig({
|
|
5742
5778
|
displayName: "styles__ModalContainer",
|
|
5743
5779
|
componentId: "sc-16r6vcc-2"
|
|
5744
|
-
})(["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$
|
|
5780
|
+
})(["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'));
|
|
5745
5781
|
const ModalHeader = /*#__PURE__*/_styled.div.withConfig({
|
|
5746
5782
|
displayName: "styles__ModalHeader",
|
|
5747
5783
|
componentId: "sc-16r6vcc-3"
|
|
5748
|
-
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;background-color:", ";z-index:1;&:hover{background-color:", ";}@media ", "{display:inherit;}}"], /*#__PURE__*/rem('30px'), bold$
|
|
5784
|
+
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;background-color:", ";z-index:1;&:hover{background-color:", ";}@media ", "{display:inherit;}}"], /*#__PURE__*/rem('30px'), bold$9, /*#__PURE__*/rem('-18px'), /*#__PURE__*/rem('-18px'), light$j, light$j, device.s);
|
|
5749
5785
|
|
|
5750
5786
|
const Modal = props => {
|
|
5751
5787
|
const {
|
|
@@ -5796,18 +5832,18 @@ const Modal = props => {
|
|
|
5796
5832
|
};
|
|
5797
5833
|
|
|
5798
5834
|
const {
|
|
5799
|
-
light: light$
|
|
5835
|
+
light: light$k
|
|
5800
5836
|
} = colors;
|
|
5801
5837
|
const {
|
|
5802
|
-
bold: bold$
|
|
5803
|
-
} =
|
|
5838
|
+
bold: bold$a
|
|
5839
|
+
} = typography;
|
|
5804
5840
|
const slideInLeft = keyframes`
|
|
5805
5841
|
from {
|
|
5806
|
-
transform:
|
|
5842
|
+
transform: translateX(100%);
|
|
5807
5843
|
}
|
|
5808
5844
|
|
|
5809
5845
|
to {
|
|
5810
|
-
transform:
|
|
5846
|
+
transform: translateX(0);
|
|
5811
5847
|
}
|
|
5812
5848
|
`;
|
|
5813
5849
|
const ModalOverlay$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
@@ -5821,11 +5857,11 @@ const ModalWrapper$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
|
5821
5857
|
const ModalContainer$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
5822
5858
|
displayName: "styles__ModalContainer",
|
|
5823
5859
|
componentId: "sc-46huls-2"
|
|
5824
|
-
})(["position:
|
|
5860
|
+
})(["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'));
|
|
5825
5861
|
const ModalHeader$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
5826
5862
|
displayName: "styles__ModalHeader",
|
|
5827
5863
|
componentId: "sc-46huls-3"
|
|
5828
|
-
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/rem('30px'), bold$
|
|
5864
|
+
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/rem('30px'), bold$a);
|
|
5829
5865
|
const ModalContent = /*#__PURE__*/_styled.div.withConfig({
|
|
5830
5866
|
displayName: "styles__ModalContent",
|
|
5831
5867
|
componentId: "sc-46huls-4"
|
|
@@ -5842,6 +5878,23 @@ const ModalDrawer = props => {
|
|
|
5842
5878
|
footerHidden = false,
|
|
5843
5879
|
zIndex = 10
|
|
5844
5880
|
} = props;
|
|
5881
|
+
useEffect(() => {
|
|
5882
|
+
const fixViewport = () => {
|
|
5883
|
+
let vh = window.innerHeight * 0.01;
|
|
5884
|
+
document.documentElement.style.setProperty('--vh', `${vh}px`);
|
|
5885
|
+
};
|
|
5886
|
+
|
|
5887
|
+
fixViewport();
|
|
5888
|
+
|
|
5889
|
+
if (typeof window !== 'undefined') {
|
|
5890
|
+
let vh = window.innerHeight * 0.01;
|
|
5891
|
+
document.documentElement.style.setProperty('--vh', `${vh}px`);
|
|
5892
|
+
window.addEventListener('resize', fixViewport);
|
|
5893
|
+
return () => window.removeEventListener('resize', fixViewport);
|
|
5894
|
+
}
|
|
5895
|
+
|
|
5896
|
+
return;
|
|
5897
|
+
}, []);
|
|
5845
5898
|
return isShowing ? /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalOverlay$1, {
|
|
5846
5899
|
zIndex: zIndex
|
|
5847
5900
|
}), /*#__PURE__*/React.createElement(ModalWrapper$1, {
|
|
@@ -5859,7 +5912,7 @@ const ModalDrawer = props => {
|
|
|
5859
5912
|
};
|
|
5860
5913
|
|
|
5861
5914
|
const {
|
|
5862
|
-
lightGrey: lightGrey$
|
|
5915
|
+
lightGrey: lightGrey$k
|
|
5863
5916
|
} = colors;
|
|
5864
5917
|
const Wrapper$h = _styled.div`
|
|
5865
5918
|
div {
|
|
@@ -5922,7 +5975,7 @@ const Wrapper$h = _styled.div`
|
|
|
5922
5975
|
|
|
5923
5976
|
.card {
|
|
5924
5977
|
position: relative;
|
|
5925
|
-
border: ${/*#__PURE__*/rem('2px')} solid ${lightGrey$
|
|
5978
|
+
border: ${/*#__PURE__*/rem('2px')} solid ${lightGrey$k};
|
|
5926
5979
|
border-radius: ${/*#__PURE__*/rem('6px')};
|
|
5927
5980
|
width: ${/*#__PURE__*/rem('300px')};
|
|
5928
5981
|
overflow: hidden;
|
|
@@ -5937,7 +5990,7 @@ const Wrapper$h = _styled.div`
|
|
|
5937
5990
|
margin: ${/*#__PURE__*/rem('-45px')} 0 0 ${/*#__PURE__*/rem('20px')};
|
|
5938
5991
|
width: ${/*#__PURE__*/rem('90px')};
|
|
5939
5992
|
height: ${/*#__PURE__*/rem('90px')};
|
|
5940
|
-
border: ${/*#__PURE__*/rem('1px')} solid ${lightGrey$
|
|
5993
|
+
border: ${/*#__PURE__*/rem('1px')} solid ${lightGrey$k};
|
|
5941
5994
|
border-radius: 999px;
|
|
5942
5995
|
}
|
|
5943
5996
|
|
|
@@ -6082,26 +6135,26 @@ const LoadingState = props => {
|
|
|
6082
6135
|
};
|
|
6083
6136
|
|
|
6084
6137
|
const {
|
|
6085
|
-
normal: normal$
|
|
6086
|
-
grey: grey$
|
|
6087
|
-
lightGrey: lightGrey$
|
|
6088
|
-
light: light$
|
|
6138
|
+
normal: normal$f,
|
|
6139
|
+
grey: grey$n,
|
|
6140
|
+
lightGrey: lightGrey$l,
|
|
6141
|
+
light: light$l
|
|
6089
6142
|
} = colors;
|
|
6090
6143
|
const Wrapper$i = _styled.div`
|
|
6091
6144
|
.tab {
|
|
6092
|
-
border-color: ${lightGrey$
|
|
6145
|
+
border-color: ${lightGrey$l};
|
|
6093
6146
|
|
|
6094
6147
|
&[aria-selected='true'] {
|
|
6095
6148
|
border-bottom: 0;
|
|
6096
6149
|
}
|
|
6097
6150
|
|
|
6098
6151
|
&[aria-selected='false'] {
|
|
6099
|
-
background-color: ${lightGrey$
|
|
6100
|
-
color: ${grey$
|
|
6152
|
+
background-color: ${lightGrey$l};
|
|
6153
|
+
color: ${grey$n};
|
|
6101
6154
|
transition-duration: 0.3s;
|
|
6102
6155
|
|
|
6103
6156
|
&:hover {
|
|
6104
|
-
color: ${normal$
|
|
6157
|
+
color: ${normal$f};
|
|
6105
6158
|
}
|
|
6106
6159
|
}
|
|
6107
6160
|
|
|
@@ -6116,8 +6169,8 @@ const Wrapper$i = _styled.div`
|
|
|
6116
6169
|
|
|
6117
6170
|
.panel {
|
|
6118
6171
|
border-radius: 0 ${/*#__PURE__*/rem('6px')} ${/*#__PURE__*/rem('6px')} ${/*#__PURE__*/rem('6px')};
|
|
6119
|
-
border-color: ${lightGrey$
|
|
6120
|
-
background-color: ${light$
|
|
6172
|
+
border-color: ${lightGrey$l};
|
|
6173
|
+
background-color: ${light$l};
|
|
6121
6174
|
padding: ${/*#__PURE__*/rem('30px')};
|
|
6122
6175
|
}
|
|
6123
6176
|
|
|
@@ -6137,7 +6190,7 @@ const Wrapper$i = _styled.div`
|
|
|
6137
6190
|
.RRT__tab {
|
|
6138
6191
|
background: #eee;
|
|
6139
6192
|
border-style: solid;
|
|
6140
|
-
border-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6193
|
+
border-color: ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6141
6194
|
border-width: ${/*#__PURE__*/rem('1px')} ${/*#__PURE__*/rem('1px')} ${/*#__PURE__*/rem('1px')} 0;
|
|
6142
6195
|
cursor: pointer;
|
|
6143
6196
|
z-index: 1;
|
|
@@ -6147,7 +6200,7 @@ const Wrapper$i = _styled.div`
|
|
|
6147
6200
|
|
|
6148
6201
|
.RRT__tab:focus {
|
|
6149
6202
|
outline: 0;
|
|
6150
|
-
background-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6203
|
+
background-color: ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6151
6204
|
}
|
|
6152
6205
|
|
|
6153
6206
|
.RRT__accordion .RRT__tab {
|
|
@@ -6159,12 +6212,12 @@ const Wrapper$i = _styled.div`
|
|
|
6159
6212
|
}
|
|
6160
6213
|
|
|
6161
6214
|
.RRT__tab--selected {
|
|
6162
|
-
background: ${light$
|
|
6163
|
-
border-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6215
|
+
background: ${light$l};
|
|
6216
|
+
border-color: ${/*#__PURE__*/lighten(0.25, grey$n)} ${/*#__PURE__*/lighten(0.25, grey$n)} ${light$l};
|
|
6164
6217
|
}
|
|
6165
6218
|
|
|
6166
6219
|
.RRT__tab--selected:focus {
|
|
6167
|
-
background-color: ${light$
|
|
6220
|
+
background-color: ${light$l};
|
|
6168
6221
|
}
|
|
6169
6222
|
|
|
6170
6223
|
.RRT__tab--disabled {
|
|
@@ -6194,7 +6247,7 @@ const Wrapper$i = _styled.div`
|
|
|
6194
6247
|
.RRT__panel {
|
|
6195
6248
|
margin-top: ${/*#__PURE__*/rem('-1px')};
|
|
6196
6249
|
padding: 1em;
|
|
6197
|
-
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$
|
|
6250
|
+
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6198
6251
|
}
|
|
6199
6252
|
|
|
6200
6253
|
.RRT__panel--hidden {
|
|
@@ -6206,8 +6259,8 @@ const Wrapper$i = _styled.div`
|
|
|
6206
6259
|
}
|
|
6207
6260
|
|
|
6208
6261
|
.RRT__showmore {
|
|
6209
|
-
background: ${lightGrey$
|
|
6210
|
-
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$
|
|
6262
|
+
background: ${lightGrey$l};
|
|
6263
|
+
border: ${/*#__PURE__*/rem('1px')} solid ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6211
6264
|
border-radius: 0 ${/*#__PURE__*/rem('6px')} 0 0;
|
|
6212
6265
|
cursor: pointer;
|
|
6213
6266
|
z-index: 1;
|
|
@@ -6217,7 +6270,7 @@ const Wrapper$i = _styled.div`
|
|
|
6217
6270
|
}
|
|
6218
6271
|
|
|
6219
6272
|
.RRT__showmore--selected {
|
|
6220
|
-
background: ${light$
|
|
6273
|
+
background: ${light$l};
|
|
6221
6274
|
border-bottom: none;
|
|
6222
6275
|
}
|
|
6223
6276
|
|
|
@@ -6228,7 +6281,7 @@ const Wrapper$i = _styled.div`
|
|
|
6228
6281
|
}
|
|
6229
6282
|
|
|
6230
6283
|
.RRT__showmore-label--selected {
|
|
6231
|
-
background-color: ${/*#__PURE__*/lighten(0.25, grey$
|
|
6284
|
+
background-color: ${/*#__PURE__*/lighten(0.25, grey$n)};
|
|
6232
6285
|
}
|
|
6233
6286
|
|
|
6234
6287
|
.RRT__showmore-list {
|