@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
|
@@ -22,6 +22,150 @@ var ReactDOM = _interopDefault(require('react-dom'));
|
|
|
22
22
|
var Tabs = _interopDefault(require('react-responsive-tabs'));
|
|
23
23
|
|
|
24
24
|
const colors = {
|
|
25
|
+
// NEUTRALS
|
|
26
|
+
black: '#000000',
|
|
27
|
+
white: '#ffffff',
|
|
28
|
+
// GREY
|
|
29
|
+
grey50: '#F1F1F3',
|
|
30
|
+
grey100: '#E3E3E8',
|
|
31
|
+
grey150: '#D5D6DC',
|
|
32
|
+
grey200: '#C7C8D1',
|
|
33
|
+
grey300: '#ABACBA',
|
|
34
|
+
grey400: '#8F91A3',
|
|
35
|
+
grey500: '#73758C',
|
|
36
|
+
grey600: '#5C5E70',
|
|
37
|
+
grey700: '#454654',
|
|
38
|
+
grey800: '#2E2F38',
|
|
39
|
+
grey850: '#23232A',
|
|
40
|
+
grey900: '#17171C',
|
|
41
|
+
grey950: '#0C0C0E',
|
|
42
|
+
// BLUE
|
|
43
|
+
blue50: '#ECEDFC',
|
|
44
|
+
blue100: '#D9DCFA',
|
|
45
|
+
blue150: '#C6CAF7',
|
|
46
|
+
blue200: '#B3B9F4',
|
|
47
|
+
blue300: '#8E96EF',
|
|
48
|
+
blue400: '#6873E9',
|
|
49
|
+
blue500: '#4250E4',
|
|
50
|
+
blue600: '#3540B6',
|
|
51
|
+
blue700: '#283089',
|
|
52
|
+
blue800: '#1A205B',
|
|
53
|
+
blue850: '#141844',
|
|
54
|
+
blue900: '#0D102E',
|
|
55
|
+
blue950: '#070817',
|
|
56
|
+
// PURPLE
|
|
57
|
+
purple50: '#ECEAF6',
|
|
58
|
+
purple100: '#D9D4ED',
|
|
59
|
+
purple150: '#C7BFE4',
|
|
60
|
+
purple200: '#B4A9DB',
|
|
61
|
+
purple300: '#8E7FCA',
|
|
62
|
+
purple400: '#6954B8',
|
|
63
|
+
purple500: '#4329A6',
|
|
64
|
+
purple600: '#362185',
|
|
65
|
+
purple700: '#281964',
|
|
66
|
+
purple800: '#1B1042',
|
|
67
|
+
purple850: '#140C32',
|
|
68
|
+
purple900: '#0D0821',
|
|
69
|
+
purple950: '#070411',
|
|
70
|
+
// RED
|
|
71
|
+
red50: '#FDEEEE',
|
|
72
|
+
red100: '#FBDDDD',
|
|
73
|
+
red150: '#F9CDCD',
|
|
74
|
+
red200: '#F7BCBC',
|
|
75
|
+
red300: '#F39A9A',
|
|
76
|
+
red400: '#EF7979',
|
|
77
|
+
red500: '#EB5757',
|
|
78
|
+
red600: '#BC4646',
|
|
79
|
+
red700: '#8D3434',
|
|
80
|
+
red800: '#5E2323',
|
|
81
|
+
red850: '#471A1A',
|
|
82
|
+
red900: '#2F1111',
|
|
83
|
+
red950: '#180909',
|
|
84
|
+
// ORACLE
|
|
85
|
+
oracle50: '#F4F0FD',
|
|
86
|
+
oracle100: '#EAE1FB',
|
|
87
|
+
oracle150: '#DFD2FA',
|
|
88
|
+
oracle200: '#D5C3F8',
|
|
89
|
+
oracle300: '#C0A5F4',
|
|
90
|
+
oracle400: '#AB87F1',
|
|
91
|
+
oracle500: '#9669ED',
|
|
92
|
+
oracle600: '#7854BE',
|
|
93
|
+
oracle700: '#5A3F8E',
|
|
94
|
+
oracle800: '#3C2A5F',
|
|
95
|
+
oracle850: '#2D2047',
|
|
96
|
+
oracle900: '#1E152F',
|
|
97
|
+
oracle950: '#0F0B18',
|
|
98
|
+
// GREEN
|
|
99
|
+
green50: '#EBFCF7',
|
|
100
|
+
green100: '#D7F9EF',
|
|
101
|
+
green150: '#C2F6E6',
|
|
102
|
+
green200: '#AEF3DE',
|
|
103
|
+
green300: '#86ECCE',
|
|
104
|
+
green400: '#5DE6BD',
|
|
105
|
+
green500: '#35E0AD',
|
|
106
|
+
green600: '#2AB38A',
|
|
107
|
+
green700: '#208668',
|
|
108
|
+
green800: '#155A45',
|
|
109
|
+
green850: '#104334',
|
|
110
|
+
green900: '#0B2D23',
|
|
111
|
+
green950: '#051611',
|
|
112
|
+
// ORANGE
|
|
113
|
+
orange50: '#FFF0EA',
|
|
114
|
+
orange100: '#FFE1D5',
|
|
115
|
+
orange150: '#FFD2C0',
|
|
116
|
+
orange200: '#FFC3AB',
|
|
117
|
+
orange300: '#FFA680',
|
|
118
|
+
orange400: '#FF8856',
|
|
119
|
+
orange500: '#FF6A2C',
|
|
120
|
+
orange600: '#CC5523',
|
|
121
|
+
orange700: '#99401A',
|
|
122
|
+
orange800: '#662A12',
|
|
123
|
+
orange850: '#4D200D',
|
|
124
|
+
orange900: '#331509',
|
|
125
|
+
orange950: '#1A0B04',
|
|
126
|
+
// YELLOW
|
|
127
|
+
yellow50: '#FFFBEC',
|
|
128
|
+
yellow100: '#FFF7DA',
|
|
129
|
+
yellow150: '#FFF3C7',
|
|
130
|
+
yellow200: '#FFEFB5',
|
|
131
|
+
yellow300: '#FFE690',
|
|
132
|
+
yellow400: '#FFDE6B',
|
|
133
|
+
yellow500: '#FFD646',
|
|
134
|
+
yellow600: '#CCAB38',
|
|
135
|
+
yellow700: '#99802A',
|
|
136
|
+
yellow800: '#66561C',
|
|
137
|
+
yellow850: '#4D4015',
|
|
138
|
+
yellow900: '#332B0E',
|
|
139
|
+
yellow950: '#1A1507',
|
|
140
|
+
// PALE BLUE
|
|
141
|
+
paleBlue50: '#F3F9FD',
|
|
142
|
+
paleBlue100: '#E7F4FB',
|
|
143
|
+
paleBlue150: '#DBEEF9',
|
|
144
|
+
paleBlue200: '#CFE9F7',
|
|
145
|
+
paleBlue300: '#B7DDF4',
|
|
146
|
+
paleBlue400: '#9FD2F0',
|
|
147
|
+
paleBlue500: '#87C7EC',
|
|
148
|
+
paleBlue600: '#6C9FBD',
|
|
149
|
+
paleBlue700: '#51778E',
|
|
150
|
+
paleBlue800: '#36505E',
|
|
151
|
+
paleBlue850: '#293C47',
|
|
152
|
+
paleBlue900: '#1B282F',
|
|
153
|
+
paleBlue950: '#0E1418',
|
|
154
|
+
// PALE ORANGE
|
|
155
|
+
paleOrange50: '#FDF4EC',
|
|
156
|
+
paleOrange100: '#FCE9D9',
|
|
157
|
+
paleOrange150: '#FADEC6',
|
|
158
|
+
paleOrange200: '#F8D3B3',
|
|
159
|
+
paleOrange300: '#F5BE8C',
|
|
160
|
+
paleOrange400: '#F1A866',
|
|
161
|
+
paleOrange500: '#EE9240',
|
|
162
|
+
paleOrange600: '#BE7533',
|
|
163
|
+
paleOrange700: '#8F5826',
|
|
164
|
+
paleOrange800: '#5F3A1A',
|
|
165
|
+
paleOrange850: '#472C13',
|
|
166
|
+
paleOrange900: '#301D0D',
|
|
167
|
+
paleOrange950: '#180F06',
|
|
168
|
+
// OLD
|
|
25
169
|
normal: '#000000',
|
|
26
170
|
light: '#ffffff',
|
|
27
171
|
blue: '#4250e4',
|
|
@@ -31,7 +175,6 @@ const colors = {
|
|
|
31
175
|
red: '#ef5766',
|
|
32
176
|
lightRed: /*#__PURE__*/polished.lighten(0.25, '#ef5766'),
|
|
33
177
|
darkRed: /*#__PURE__*/polished.darken(0.19, '#ef5766'),
|
|
34
|
-
purple: '#4329a6',
|
|
35
178
|
lightPurple: /*#__PURE__*/polished.lighten(0.4, '#4329a6'),
|
|
36
179
|
darkPurple: /*#__PURE__*/polished.darken(0.15, '#4329a6'),
|
|
37
180
|
green: '#56cad7',
|
|
@@ -41,10 +184,25 @@ const colors = {
|
|
|
41
184
|
lightGrey: '#c4c7d3',
|
|
42
185
|
darkGrey: /*#__PURE__*/polished.darken(0.1, '#939393')
|
|
43
186
|
};
|
|
44
|
-
const
|
|
187
|
+
const colorHues = [50, 100, 150, 200, 300, 400, 500, 600, 700, 800, 850, 900, 950];
|
|
188
|
+
const typography = {
|
|
189
|
+
defaultFont: `"Space Grotesk", Verdana, Arial, Helvetica, sans-serif`,
|
|
190
|
+
defaultSize: '16px',
|
|
45
191
|
regular: 400,
|
|
46
192
|
medium: 500,
|
|
47
|
-
bold: 700
|
|
193
|
+
bold: 700,
|
|
194
|
+
letterSpacing: /*#__PURE__*/polished.rem('1px')
|
|
195
|
+
};
|
|
196
|
+
const button = {
|
|
197
|
+
height: /*#__PURE__*/polished.rem('42px'),
|
|
198
|
+
borderWidth: /*#__PURE__*/polished.rem('1px'),
|
|
199
|
+
borderRadius: /*#__PURE__*/polished.rem('8px'),
|
|
200
|
+
padding: /*#__PURE__*/polished.rem('28px'),
|
|
201
|
+
iconSpacing: /*#__PURE__*/polished.rem('8px'),
|
|
202
|
+
iconSize: /*#__PURE__*/polished.rem('16px')
|
|
203
|
+
};
|
|
204
|
+
const misc = {
|
|
205
|
+
transitionDuration: '0.3s'
|
|
48
206
|
};
|
|
49
207
|
|
|
50
208
|
const {
|
|
@@ -83,193 +241,96 @@ const AvatarImage = props => {
|
|
|
83
241
|
}));
|
|
84
242
|
};
|
|
85
243
|
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const element = document.querySelector(querySelector);
|
|
93
|
-
if (!element) return;
|
|
94
|
-
element.addEventListener('mousemove', event => {
|
|
95
|
-
var _ref, _ref2;
|
|
96
|
-
|
|
97
|
-
const target = event.target;
|
|
98
|
-
const x = (_ref = event.pageX - (target == null ? void 0 : target.offsetLeft)) != null ? _ref : 0;
|
|
99
|
-
const y = (_ref2 = event.pageY - (target == null ? void 0 : target.offsetTop)) != null ? _ref2 : 0;
|
|
100
|
-
element.style.setProperty('--x', `${x}px`);
|
|
101
|
-
element.style.setProperty('--y', `${y}px`);
|
|
102
|
-
});
|
|
103
|
-
}, [querySelector]);
|
|
104
|
-
};
|
|
244
|
+
const useColor = value => {
|
|
245
|
+
// @ts-ignore
|
|
246
|
+
const color = colors == null ? void 0 : colors[value];
|
|
247
|
+
const c = value.split(/([0-9]+)/).filter(Boolean);
|
|
248
|
+
const tint = c[0];
|
|
249
|
+
const hue = parseFloat(c[1]);
|
|
105
250
|
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
mouse: '(min-width: 538px) and (min-height: 720px)'
|
|
251
|
+
const getHoverColor = (tint, hue) => {
|
|
252
|
+
const indexCurrentHue = colorHues.indexOf(hue);
|
|
253
|
+
const indexIsLast = indexCurrentHue === colorHues.length - 1;
|
|
254
|
+
const indexHoverHue = indexIsLast ? indexCurrentHue - 1 : indexCurrentHue + 1; // @ts-ignore
|
|
255
|
+
|
|
256
|
+
const hoverColor = colors == null ? void 0 : colors[indexCurrentHue > -1 ? tint + colorHues[indexHoverHue] : tint];
|
|
257
|
+
return hoverColor != null ? hoverColor : colors.black;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
const hover = getHoverColor(tint, hue);
|
|
261
|
+
return {
|
|
262
|
+
color,
|
|
263
|
+
hover
|
|
264
|
+
};
|
|
121
265
|
};
|
|
122
266
|
|
|
123
|
-
const {
|
|
124
|
-
normal,
|
|
125
|
-
light,
|
|
126
|
-
grey: grey$1,
|
|
127
|
-
lightGrey,
|
|
128
|
-
darkGrey,
|
|
129
|
-
green,
|
|
130
|
-
darkGreen,
|
|
131
|
-
orange,
|
|
132
|
-
darkOrange,
|
|
133
|
-
red,
|
|
134
|
-
darkRed,
|
|
135
|
-
purple,
|
|
136
|
-
darkPurple,
|
|
137
|
-
blue,
|
|
138
|
-
darkBlue
|
|
139
|
-
} = colors;
|
|
140
|
-
const {
|
|
141
|
-
bold,
|
|
142
|
-
medium
|
|
143
|
-
} = fontWeight;
|
|
144
|
-
const pulseKeyframes = _styled.keyframes`
|
|
145
|
-
0% {
|
|
146
|
-
box-shadow: 0 0 ${/*#__PURE__*/polished.rem('10px')} 0 rgba(40, 40, 40, 0.3);
|
|
147
|
-
}
|
|
148
|
-
50% {
|
|
149
|
-
box-shadow: 0 0 ${/*#__PURE__*/polished.rem('10px')} 0 rgba(40, 40, 40, 0);
|
|
150
|
-
}
|
|
151
|
-
100% {
|
|
152
|
-
box-shadow: 0 0 ${/*#__PURE__*/polished.rem('10px')} 0 rgba(40, 40, 40, 0.3);
|
|
153
|
-
}
|
|
154
|
-
`;
|
|
155
267
|
const ButtonWrapper = /*#__PURE__*/_styled__default.button.withConfig({
|
|
156
268
|
displayName: "styles__ButtonWrapper",
|
|
157
269
|
componentId: "baestp-0"
|
|
158
|
-
})(["--
|
|
159
|
-
|
|
160
|
-
--hover: ${darkGreen};
|
|
161
|
-
`, props => props.color === 'orange' && _styled.css`
|
|
162
|
-
--button: ${orange};
|
|
163
|
-
--hover: ${darkOrange};
|
|
164
|
-
`, props => props.color === 'red' && _styled.css`
|
|
165
|
-
--button: ${red};
|
|
166
|
-
--hover: ${darkRed};
|
|
167
|
-
`, props => props.color === 'grey' && _styled.css`
|
|
168
|
-
--button: ${grey$1};
|
|
169
|
-
--hover: ${darkGrey};
|
|
170
|
-
`, props => props.color === 'blue' && _styled.css`
|
|
171
|
-
--button: ${blue};
|
|
172
|
-
--hover: ${darkBlue};
|
|
173
|
-
`, props => props.color === 'purple' && _styled.css`
|
|
174
|
-
--button: ${purple};
|
|
175
|
-
--hover: ${darkPurple};
|
|
176
|
-
`, props => props.color === 'white' && _styled.css`
|
|
177
|
-
--button: ${light};
|
|
178
|
-
--txt: ${normal};
|
|
179
|
-
--hover: ${lightGrey};
|
|
180
|
-
`, props => props.color === 'dark' && _styled.css`
|
|
181
|
-
--button: ${normal};
|
|
182
|
-
--hover: ${darkGrey};
|
|
183
|
-
`, props => props.color === 'pulse' && _styled.css`
|
|
184
|
-
--button: ${red};
|
|
185
|
-
--hover: ${darkRed};
|
|
186
|
-
animation: ${pulseKeyframes} 1s infinite;
|
|
187
|
-
`, props => props.color === 'magic' && _styled.css`
|
|
188
|
-
--button: ${light};
|
|
189
|
-
--hover: ${lightGrey};
|
|
190
|
-
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? props.circle ? polished.rem('36px') : 'min-content' : polished.rem('36px'), /*#__PURE__*/polished.rem('32px'), props => props.value ? props.circle ? 0 : `0 ${polished.rem('20px')}` : 0, device.l, props => props.value ? polished.rem('100px') : polished.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__*/polished.rem('20px'), /*#__PURE__*/polished.rem('20px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.color === 'magic' && _styled.css`
|
|
191
|
-
position: relative;
|
|
192
|
-
background-image: linear-gradient(to bottom right, #ef5867, #5031a8);
|
|
193
|
-
height: ${polished.rem('60px')};
|
|
194
|
-
padding: 0 ${polished.rem('40px')};
|
|
195
|
-
overflow: hidden;
|
|
196
|
-
|
|
197
|
-
span {
|
|
198
|
-
font-size: 1rem;
|
|
199
|
-
font-weight: ${bold};
|
|
200
|
-
}
|
|
270
|
+
})(["--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 => {
|
|
271
|
+
var _props$color;
|
|
201
272
|
|
|
202
|
-
|
|
203
|
-
|
|
273
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
274
|
+
}, props => {
|
|
275
|
+
var _props$txtColor;
|
|
204
276
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
top: var(--y);
|
|
209
|
-
width: var(--size);
|
|
210
|
-
height: var(--size);
|
|
211
|
-
background: radial-gradient(circle closest-side, #5031a8, transparent);
|
|
212
|
-
-webkit-transform: translate(-50%, -50%);
|
|
213
|
-
transform: translate(-50%, -50%);
|
|
214
|
-
-webkit-transition: width 0.2s ease, height 0.2s ease;
|
|
215
|
-
transition: width 0.2s ease, height 0.2s ease;
|
|
216
|
-
}
|
|
277
|
+
return useColor((_props$txtColor = props.txtColor) != null ? _props$txtColor : 'black').color;
|
|
278
|
+
}, props => {
|
|
279
|
+
var _props$color2;
|
|
217
280
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
`);
|
|
281
|
+
return props.color === 'white' ? colors.grey100 : props.color === 'black' ? colors.grey900 : useColor((_props$color2 = props.color) != null ? _props$color2 : 'black').hover;
|
|
282
|
+
}, 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 ? polished.rem('80px') : polished.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__*/polished.rem(typography.defaultSize), typography.medium, typography.letterSpacing, /*#__PURE__*/polished.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);
|
|
222
283
|
|
|
223
284
|
const Button = props => {
|
|
224
285
|
const {
|
|
225
286
|
variant = 'solid',
|
|
226
|
-
|
|
227
|
-
color = '
|
|
228
|
-
|
|
287
|
+
rounded = false,
|
|
288
|
+
color = 'purple500',
|
|
289
|
+
txtColor = 'white',
|
|
290
|
+
type,
|
|
229
291
|
className = 'button',
|
|
230
|
-
|
|
231
|
-
ariaLabel,
|
|
292
|
+
style,
|
|
232
293
|
action = () => {},
|
|
233
|
-
|
|
234
|
-
loading = false,
|
|
235
|
-
dataTestId,
|
|
236
|
-
eventId,
|
|
237
|
-
icon = '',
|
|
294
|
+
value = '',
|
|
238
295
|
iconPosition = 'left',
|
|
239
|
-
|
|
240
|
-
|
|
296
|
+
icon = '',
|
|
297
|
+
loading = false,
|
|
298
|
+
dataTestId = '',
|
|
299
|
+
eventId = '',
|
|
300
|
+
ariaLabel,
|
|
301
|
+
ariaHidden = false,
|
|
302
|
+
disabled = false
|
|
241
303
|
} = props;
|
|
242
|
-
useMouseMoveEffect({
|
|
243
|
-
querySelector
|
|
244
|
-
});
|
|
245
304
|
return /*#__PURE__*/React__default.createElement(ButtonWrapper, {
|
|
246
305
|
variant: variant,
|
|
306
|
+
rounded: rounded,
|
|
247
307
|
color: color,
|
|
248
|
-
|
|
308
|
+
txtColor: txtColor,
|
|
309
|
+
type: type,
|
|
249
310
|
className: className,
|
|
250
|
-
|
|
251
|
-
"aria-label": ariaLabel,
|
|
311
|
+
style: style,
|
|
252
312
|
onClick: action,
|
|
253
|
-
|
|
313
|
+
value: value,
|
|
314
|
+
iconPosition: iconPosition,
|
|
254
315
|
"data-testid": dataTestId,
|
|
255
316
|
"data-event": eventId,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
317
|
+
"aria-label": ariaLabel,
|
|
318
|
+
"aria-hidden": ariaHidden,
|
|
319
|
+
disabled: disabled || loading
|
|
259
320
|
}, loading ? /*#__PURE__*/React__default.createElement(Spinner, null) : icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
260
321
|
icon: icon
|
|
261
322
|
}) : null, value && /*#__PURE__*/React__default.createElement("span", null, value));
|
|
262
323
|
};
|
|
263
324
|
|
|
264
325
|
const {
|
|
265
|
-
normal
|
|
266
|
-
light
|
|
267
|
-
lightGrey
|
|
326
|
+
normal,
|
|
327
|
+
light,
|
|
328
|
+
lightGrey
|
|
268
329
|
} = colors;
|
|
269
330
|
const ActionsMenuStyle = /*#__PURE__*/_styled__default.div.withConfig({
|
|
270
331
|
displayName: "styles__ActionsMenuStyle",
|
|
271
332
|
componentId: "sc-1j5ogfi-0"
|
|
272
|
-
})(["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__*/polished.rem('1px'), lightGrey
|
|
333
|
+
})(["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__*/polished.rem('1px'), lightGrey, /*#__PURE__*/polished.rem('4px'), light, /*#__PURE__*/polished.rem('200px'), /*#__PURE__*/polished.rem('250px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.lighten(0.7, normal), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.lighten(0.7, normal), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.lighten(0.7, normal), /*#__PURE__*/polished.rem('45px'), props => props.visibleActions, /*#__PURE__*/polished.rem('1280px'), /*#__PURE__*/polished.rem('45px'), lightGrey, /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('20px'), normal);
|
|
273
334
|
|
|
274
335
|
function useVisible(initialIsVisible) {
|
|
275
336
|
const [isVisible, setIsVisible] = React.useState(initialIsVisible);
|
|
@@ -298,15 +359,20 @@ function useVisible(initialIsVisible) {
|
|
|
298
359
|
|
|
299
360
|
const ButtonDropdown = props => {
|
|
300
361
|
const {
|
|
301
|
-
className = 'button-dropdown',
|
|
302
362
|
variant = 'solid',
|
|
303
|
-
|
|
363
|
+
rounded = false,
|
|
364
|
+
color = 'purple500',
|
|
365
|
+
txtColor = 'white',
|
|
366
|
+
className = 'button-dropdown',
|
|
367
|
+
style,
|
|
368
|
+
actions = [],
|
|
304
369
|
value = '',
|
|
305
|
-
icon = '
|
|
370
|
+
icon = 'add',
|
|
371
|
+
dataTestId = 'action-button-dropdown',
|
|
372
|
+
eventId = '',
|
|
306
373
|
ariaLabel = '',
|
|
307
|
-
|
|
374
|
+
ariaHidden = false,
|
|
308
375
|
data = null,
|
|
309
|
-
dataTestId = 'action-button-dropdown',
|
|
310
376
|
startsOpen = false,
|
|
311
377
|
disabled = false
|
|
312
378
|
} = props;
|
|
@@ -322,20 +388,25 @@ const ButtonDropdown = props => {
|
|
|
322
388
|
if (visibleActions.length === 0) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
323
389
|
return /*#__PURE__*/React__default.createElement(ActionsMenuStyle, {
|
|
324
390
|
className: className,
|
|
391
|
+
style: style,
|
|
325
392
|
visibleActions: visibleActions.length,
|
|
326
393
|
ref: ref
|
|
327
394
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
328
395
|
variant: variant,
|
|
396
|
+
rounded: rounded,
|
|
329
397
|
color: color,
|
|
330
|
-
|
|
331
|
-
icon: icon,
|
|
332
|
-
iconPosition: "right",
|
|
333
|
-
ariaLabel: ariaLabel,
|
|
398
|
+
txtColor: txtColor,
|
|
334
399
|
action: evt => {
|
|
335
400
|
evt.preventDefault();
|
|
336
401
|
setIsVisible(!isVisible);
|
|
337
402
|
},
|
|
338
|
-
|
|
403
|
+
value: value,
|
|
404
|
+
iconPosition: "right",
|
|
405
|
+
icon: icon,
|
|
406
|
+
"data-testid": dataTestId,
|
|
407
|
+
"data-event": eventId,
|
|
408
|
+
ariaLabel: ariaLabel,
|
|
409
|
+
"aria-hidden": ariaHidden,
|
|
339
410
|
disabled: disabled
|
|
340
411
|
}), /*#__PURE__*/React__default.createElement("ul", {
|
|
341
412
|
"data-testid": 'ul-action-menu',
|
|
@@ -357,111 +428,42 @@ const ButtonDropdown = props => {
|
|
|
357
428
|
}, /*#__PURE__*/React__default.createElement("span", null, value))))));
|
|
358
429
|
};
|
|
359
430
|
|
|
360
|
-
const {
|
|
361
|
-
normal: normal$2,
|
|
362
|
-
light: light$2,
|
|
363
|
-
grey: grey$2,
|
|
364
|
-
lightGrey: lightGrey$2,
|
|
365
|
-
darkGrey: darkGrey$1,
|
|
366
|
-
green: green$1,
|
|
367
|
-
darkGreen: darkGreen$1,
|
|
368
|
-
orange: orange$1,
|
|
369
|
-
darkOrange: darkOrange$1,
|
|
370
|
-
red: red$1,
|
|
371
|
-
darkRed: darkRed$1,
|
|
372
|
-
purple: purple$1,
|
|
373
|
-
darkPurple: darkPurple$1,
|
|
374
|
-
blue: blue$1,
|
|
375
|
-
darkBlue: darkBlue$1
|
|
376
|
-
} = colors;
|
|
377
|
-
const {
|
|
378
|
-
bold: bold$1,
|
|
379
|
-
medium: medium$1
|
|
380
|
-
} = fontWeight;
|
|
381
431
|
const ButtonLinkStyle = /*#__PURE__*/_styled__default.a.withConfig({
|
|
382
432
|
displayName: "styles__ButtonLinkStyle",
|
|
383
433
|
componentId: "clge7v-0"
|
|
384
|
-
})(["--
|
|
385
|
-
|
|
386
|
-
--hover: ${darkGreen$1};
|
|
387
|
-
`, props => props.color === 'orange' && _styled.css`
|
|
388
|
-
--button: ${orange$1};
|
|
389
|
-
--hover: ${darkOrange$1};
|
|
390
|
-
`, props => props.color === 'red' && _styled.css`
|
|
391
|
-
--button: ${red$1};
|
|
392
|
-
--hover: ${darkRed$1};
|
|
393
|
-
`, props => props.color === 'grey' && _styled.css`
|
|
394
|
-
--button: ${grey$2};
|
|
395
|
-
--hover: ${darkGrey$1};
|
|
396
|
-
`, props => props.color === 'purple' && _styled.css`
|
|
397
|
-
--button: ${purple$1};
|
|
398
|
-
--hover: ${darkPurple$1};
|
|
399
|
-
`, props => props.color === 'white' && _styled.css`
|
|
400
|
-
--button: ${light$2};
|
|
401
|
-
--txt: ${normal$2};
|
|
402
|
-
--hover: ${lightGrey$2};
|
|
403
|
-
`, props => props.color === 'dark' && _styled.css`
|
|
404
|
-
--button: ${normal$2};
|
|
405
|
-
--hover: ${darkGrey$1};
|
|
406
|
-
`, props => props.color === 'blue' && _styled.css`
|
|
407
|
-
--button: ${blue$1};
|
|
408
|
-
--hover: ${darkBlue$1};
|
|
409
|
-
`, props => props.color === 'pulse' && _styled.css`
|
|
410
|
-
--button: ${red$1};
|
|
411
|
-
--hover: ${darkRed$1};
|
|
412
|
-
animation: ${pulseKeyframes} 1s infinite;
|
|
413
|
-
`, props => props.color === 'magic' && _styled.css`
|
|
414
|
-
--button: ${light$2};
|
|
415
|
-
--hover: ${lightGrey$2};
|
|
416
|
-
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? polished.rem('80px') : polished.rem('36px'), /*#__PURE__*/polished.rem('32px'), props => props.value ? `0 ${polished.rem('20px')}` : 0, device.l, props => props.value ? polished.rem('100px') : polished.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__*/polished.rem('20px'), /*#__PURE__*/polished.rem('20px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.color === 'magic' && _styled.css`
|
|
417
|
-
position: relative;
|
|
418
|
-
background-image: linear-gradient(to bottom right, #ef5867, #5031a8);
|
|
419
|
-
height: ${polished.rem('60px')};
|
|
420
|
-
padding: 0 ${polished.rem('40px')};
|
|
421
|
-
overflow: hidden;
|
|
422
|
-
|
|
423
|
-
span {
|
|
424
|
-
font-size: 1rem;
|
|
425
|
-
font-weight: ${bold$1};
|
|
426
|
-
}
|
|
434
|
+
})(["--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 => {
|
|
435
|
+
var _props$color;
|
|
427
436
|
|
|
428
|
-
|
|
429
|
-
|
|
437
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
438
|
+
}, props => {
|
|
439
|
+
var _props$txtColor;
|
|
430
440
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
top: var(--y);
|
|
435
|
-
width: var(--size);
|
|
436
|
-
height: var(--size);
|
|
437
|
-
background: radial-gradient(circle closest-side, #5031a8, transparent);
|
|
438
|
-
-webkit-transform: translate(-50%, -50%);
|
|
439
|
-
transform: translate(-50%, -50%);
|
|
440
|
-
-webkit-transition: width 0.2s ease, height 0.2s ease;
|
|
441
|
-
transition: width 0.2s ease, height 0.2s ease;
|
|
442
|
-
}
|
|
441
|
+
return useColor((_props$txtColor = props.txtColor) != null ? _props$txtColor : 'black').color;
|
|
442
|
+
}, props => {
|
|
443
|
+
var _props$color2;
|
|
443
444
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
`);
|
|
445
|
+
return props.color === 'white' ? colors.grey100 : props.color === 'black' ? colors.grey900 : useColor((_props$color2 = props.color) != null ? _props$color2 : 'black').hover;
|
|
446
|
+
}, 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 ? polished.rem('80px') : polished.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__*/polished.rem(typography.defaultSize), typography.medium, typography.letterSpacing, /*#__PURE__*/polished.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);
|
|
448
447
|
|
|
449
448
|
const ButtonLink = props => {
|
|
450
449
|
const {
|
|
451
450
|
variant = 'solid',
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
rounded = false,
|
|
452
|
+
color = 'purple500',
|
|
453
|
+
txtColor = 'white',
|
|
454
454
|
className = 'button-link',
|
|
455
|
+
style,
|
|
456
|
+
action = () => {},
|
|
455
457
|
url,
|
|
456
458
|
blank = false,
|
|
457
|
-
|
|
458
|
-
iconPosition = 'left',
|
|
459
|
+
rel = undefined,
|
|
459
460
|
value = '',
|
|
460
|
-
|
|
461
|
+
iconPosition = 'right',
|
|
462
|
+
icon = '',
|
|
461
463
|
dataTestId = '',
|
|
462
464
|
eventId = '',
|
|
463
|
-
|
|
464
|
-
|
|
465
|
+
ariaLabel = '',
|
|
466
|
+
ariaHidden = false
|
|
465
467
|
} = props;
|
|
466
468
|
|
|
467
469
|
const getRelationshipAttributes = () => {
|
|
@@ -469,41 +471,42 @@ const ButtonLink = props => {
|
|
|
469
471
|
return blank ? 'noopener noreferrer' : '';
|
|
470
472
|
};
|
|
471
473
|
|
|
472
|
-
useMouseMoveEffect({
|
|
473
|
-
querySelector
|
|
474
|
-
});
|
|
475
474
|
return /*#__PURE__*/React__default.createElement(ButtonLinkStyle, {
|
|
476
475
|
variant: variant,
|
|
476
|
+
rounded: rounded,
|
|
477
477
|
color: color,
|
|
478
|
+
txtColor: txtColor,
|
|
478
479
|
className: `button ${className}`,
|
|
480
|
+
style: style,
|
|
481
|
+
onClick: action,
|
|
479
482
|
href: url,
|
|
480
483
|
target: blank ? '_blank' : '',
|
|
484
|
+
rel: getRelationshipAttributes(),
|
|
481
485
|
value: value,
|
|
482
|
-
|
|
486
|
+
iconPosition: iconPosition,
|
|
483
487
|
"data-testid": dataTestId,
|
|
484
488
|
"data-event": eventId,
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
rel: getRelationshipAttributes()
|
|
489
|
+
"aria-label": ariaLabel,
|
|
490
|
+
"aria-hidden": ariaHidden
|
|
488
491
|
}, icon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
489
492
|
icon: icon
|
|
490
493
|
}), value && /*#__PURE__*/React__default.createElement("span", null, value));
|
|
491
494
|
};
|
|
492
495
|
|
|
493
496
|
const {
|
|
494
|
-
normal: normal$
|
|
495
|
-
light: light$
|
|
496
|
-
green
|
|
497
|
-
darkGreen
|
|
498
|
-
red
|
|
499
|
-
darkRed
|
|
500
|
-
grey: grey$
|
|
501
|
-
lightGrey: lightGrey$
|
|
497
|
+
normal: normal$1,
|
|
498
|
+
light: light$1,
|
|
499
|
+
green,
|
|
500
|
+
darkGreen,
|
|
501
|
+
red,
|
|
502
|
+
darkRed,
|
|
503
|
+
grey: grey$1,
|
|
504
|
+
lightGrey: lightGrey$1
|
|
502
505
|
} = colors;
|
|
503
506
|
const CheckboxWrapper = /*#__PURE__*/_styled__default.label.withConfig({
|
|
504
507
|
displayName: "styles__CheckboxWrapper",
|
|
505
508
|
componentId: "w5t014-0"
|
|
506
|
-
})(["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
|
|
509
|
+
})(["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);
|
|
507
510
|
const CheckboxLabel = /*#__PURE__*/_styled__default.span.withConfig({
|
|
508
511
|
displayName: "styles__CheckboxLabel",
|
|
509
512
|
componentId: "w5t014-1"
|
|
@@ -511,11 +514,11 @@ const CheckboxLabel = /*#__PURE__*/_styled__default.span.withConfig({
|
|
|
511
514
|
const CheckboxInput = /*#__PURE__*/_styled__default.input.withConfig({
|
|
512
515
|
displayName: "styles__CheckboxInput",
|
|
513
516
|
componentId: "w5t014-2"
|
|
514
|
-
})(["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
|
|
517
|
+
})(["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);
|
|
515
518
|
const Checkmark = /*#__PURE__*/_styled__default.span.withConfig({
|
|
516
519
|
displayName: "styles__Checkmark",
|
|
517
520
|
componentId: "w5t014-3"
|
|
518
|
-
})(["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__*/polished.rem('2px'), props => props.error ? red
|
|
521
|
+
})(["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__*/polished.rem('2px'), props => props.error ? red : grey$1, /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('9px'), light$1, /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('3px'));
|
|
519
522
|
|
|
520
523
|
const Checkbox = props => {
|
|
521
524
|
const {
|
|
@@ -549,16 +552,16 @@ const Checkbox = props => {
|
|
|
549
552
|
};
|
|
550
553
|
|
|
551
554
|
const {
|
|
552
|
-
light: light$
|
|
553
|
-
green: green$
|
|
554
|
-
darkGreen: darkGreen$
|
|
555
|
-
grey: grey$
|
|
556
|
-
lightGrey: lightGrey$
|
|
555
|
+
light: light$2,
|
|
556
|
+
green: green$1,
|
|
557
|
+
darkGreen: darkGreen$1,
|
|
558
|
+
grey: grey$2,
|
|
559
|
+
lightGrey: lightGrey$2
|
|
557
560
|
} = colors;
|
|
558
561
|
const CheckboxWrapper$1 = /*#__PURE__*/_styled__default.label.withConfig({
|
|
559
562
|
displayName: "styles__CheckboxWrapper",
|
|
560
563
|
componentId: "itly0z-0"
|
|
561
|
-
})(["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__*/polished.rem('3px'), props => props.disabled ? grey$
|
|
564
|
+
})(["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__*/polished.rem('3px'), props => props.disabled ? grey$2 : props.checked ? darkGreen$1 : grey$2, /*#__PURE__*/polished.rem('6px'), props => props.disabled ? lightGrey$2 : props.checked ? green$1 : light$2, /*#__PURE__*/polished.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);
|
|
562
565
|
const CheckboxLabel$1 = /*#__PURE__*/_styled__default.span.withConfig({
|
|
563
566
|
displayName: "styles__CheckboxLabel",
|
|
564
567
|
componentId: "itly0z-1"
|
|
@@ -566,11 +569,11 @@ const CheckboxLabel$1 = /*#__PURE__*/_styled__default.span.withConfig({
|
|
|
566
569
|
const CheckboxInput$1 = /*#__PURE__*/_styled__default.input.withConfig({
|
|
567
570
|
displayName: "styles__CheckboxInput",
|
|
568
571
|
componentId: "itly0z-2"
|
|
569
|
-
})(["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$
|
|
572
|
+
})(["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);
|
|
570
573
|
const Checkmark$1 = /*#__PURE__*/_styled__default.span.withConfig({
|
|
571
574
|
displayName: "styles__Checkmark",
|
|
572
575
|
componentId: "itly0z-3"
|
|
573
|
-
})(["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__*/polished.rem('10px'), /*#__PURE__*/polished.rem('2px'), grey$
|
|
576
|
+
})(["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__*/polished.rem('10px'), /*#__PURE__*/polished.rem('2px'), grey$2, light$2, /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('9px'), props => props.disabled ? light$2 : green$1, /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('3px'));
|
|
574
577
|
|
|
575
578
|
const CheckboxButton = props => {
|
|
576
579
|
const {
|
|
@@ -776,19 +779,20 @@ const icons = {
|
|
|
776
779
|
"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',
|
|
777
780
|
"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',
|
|
778
781
|
"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',
|
|
779
|
-
"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'
|
|
782
|
+
"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',
|
|
783
|
+
"arrow-external": "M6 6v5.663h9.542L6.666 21.796v4.183h4.628l9.222-10.917V26H26V6H6z"
|
|
780
784
|
};
|
|
781
785
|
|
|
782
786
|
const {
|
|
783
|
-
grey: grey$
|
|
784
|
-
lightGrey: lightGrey$
|
|
785
|
-
red: red$
|
|
786
|
-
|
|
787
|
+
grey: grey$3,
|
|
788
|
+
lightGrey: lightGrey$3,
|
|
789
|
+
red: red$1,
|
|
790
|
+
purple500
|
|
787
791
|
} = colors;
|
|
788
792
|
const TextFieldInputStyle = /*#__PURE__*/_styled__default.input.withConfig({
|
|
789
793
|
displayName: "styles__TextFieldInputStyle",
|
|
790
794
|
componentId: "sc-1hxcxbo-0"
|
|
791
|
-
})(["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 ${polished.rem('1px')} 0` : polished.rem('1px'), props => props.error ? red$
|
|
795
|
+
})(["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 ${polished.rem('1px')} 0` : polished.rem('1px'), props => props.error ? red$1 : grey$3, props => props.minimal ? 0 : '6px', props => props.minimal ? polished.rem('40px') : polished.rem('50px'), props => props.minimal ? 0 : polished.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 && _styled.css`
|
|
792
796
|
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>');
|
|
793
797
|
padding-left: ${props.minimal ? '40px' : '50px'};
|
|
794
798
|
background-repeat: no-repeat;
|
|
@@ -802,11 +806,11 @@ const TextFieldInputStyle = /*#__PURE__*/_styled__default.input.withConfig({
|
|
|
802
806
|
`);
|
|
803
807
|
|
|
804
808
|
const {
|
|
805
|
-
light: light$
|
|
806
|
-
grey: grey$
|
|
807
|
-
lightGrey: lightGrey$
|
|
808
|
-
red: red$
|
|
809
|
-
|
|
809
|
+
light: light$3,
|
|
810
|
+
grey: grey$4,
|
|
811
|
+
lightGrey: lightGrey$4,
|
|
812
|
+
red: red$2,
|
|
813
|
+
purple500: purple500$1
|
|
810
814
|
} = colors;
|
|
811
815
|
const Wrapper$1 = _styled__default.div`
|
|
812
816
|
position: relative;
|
|
@@ -814,7 +818,7 @@ const Wrapper$1 = _styled__default.div`
|
|
|
814
818
|
const TextAreaStyle = _styled__default.textarea`
|
|
815
819
|
border-width: ${props => props.minimal ? `0 0 ${polished.rem('1px')} 0` : polished.rem('1px')};
|
|
816
820
|
border-style: solid;
|
|
817
|
-
border-color: ${props => props.error ? red$
|
|
821
|
+
border-color: ${props => props.error ? red$2 : grey$4};
|
|
818
822
|
border-radius: ${props => props.minimal ? 0 : '6px'};
|
|
819
823
|
width: 100%;
|
|
820
824
|
height: ${props => props.height || polished.rem('100px')};
|
|
@@ -827,17 +831,17 @@ const TextAreaStyle = _styled__default.textarea`
|
|
|
827
831
|
resize: none;
|
|
828
832
|
|
|
829
833
|
&:focus {
|
|
830
|
-
border-color: ${
|
|
834
|
+
border-color: ${purple500$1};
|
|
831
835
|
outline: none;
|
|
832
836
|
}
|
|
833
837
|
|
|
834
838
|
&:disabled {
|
|
835
|
-
background-color: ${lightGrey$
|
|
836
|
-
color: ${grey$
|
|
839
|
+
background-color: ${lightGrey$4};
|
|
840
|
+
color: ${grey$4};
|
|
837
841
|
}
|
|
838
842
|
|
|
839
843
|
&:invalid {
|
|
840
|
-
border-color: ${red$
|
|
844
|
+
border-color: ${red$2};
|
|
841
845
|
outline: none;
|
|
842
846
|
box-shadow: none;
|
|
843
847
|
-webkit-box-shadow: none;
|
|
@@ -845,21 +849,21 @@ const TextAreaStyle = _styled__default.textarea`
|
|
|
845
849
|
}
|
|
846
850
|
|
|
847
851
|
&:required {
|
|
848
|
-
border-color: ${props => props.error ? red$
|
|
852
|
+
border-color: ${props => props.error ? red$2 : grey$4};
|
|
849
853
|
}
|
|
850
854
|
|
|
851
855
|
&::placeholder {
|
|
852
|
-
color: ${grey$
|
|
856
|
+
color: ${grey$4};
|
|
853
857
|
opacity: 1;
|
|
854
858
|
}
|
|
855
859
|
|
|
856
860
|
&:-ms-input-placeholder {
|
|
857
|
-
color: ${grey$
|
|
861
|
+
color: ${grey$4};
|
|
858
862
|
opacity: 1;
|
|
859
863
|
}
|
|
860
864
|
|
|
861
865
|
&::-ms-input-placeholder {
|
|
862
|
-
color: ${grey$
|
|
866
|
+
color: ${grey$4};
|
|
863
867
|
opacity: 1;
|
|
864
868
|
}
|
|
865
869
|
`;
|
|
@@ -867,28 +871,28 @@ const Count = _styled__default.div`
|
|
|
867
871
|
position: absolute;
|
|
868
872
|
top: ${props => props.minimal ? 0 : polished.rem('5px')};
|
|
869
873
|
right: ${props => props.minimal ? 0 : polished.rem('10px')};
|
|
870
|
-
background-color: ${/*#__PURE__*/polished.transparentize(0.15, light$
|
|
874
|
+
background-color: ${/*#__PURE__*/polished.transparentize(0.15, light$3)};
|
|
871
875
|
padding: 0 ${/*#__PURE__*/polished.rem('5px')};
|
|
872
876
|
|
|
873
877
|
span {
|
|
874
878
|
font-size: 0.75rem;
|
|
875
|
-
color: ${grey$
|
|
879
|
+
color: ${grey$4};
|
|
876
880
|
|
|
877
881
|
&.negative {
|
|
878
|
-
color: ${red$
|
|
882
|
+
color: ${red$2};
|
|
879
883
|
}
|
|
880
884
|
}
|
|
881
885
|
`;
|
|
882
886
|
|
|
883
887
|
const {
|
|
884
|
-
normal: normal$
|
|
885
|
-
grey: grey$
|
|
886
|
-
lightGrey: lightGrey$
|
|
887
|
-
red: red$
|
|
888
|
-
|
|
888
|
+
normal: normal$2,
|
|
889
|
+
grey: grey$5,
|
|
890
|
+
lightGrey: lightGrey$5,
|
|
891
|
+
red: red$3,
|
|
892
|
+
purple500: purple500$2
|
|
889
893
|
} = colors;
|
|
890
894
|
const SelectStyle = _styled__default.select`
|
|
891
|
-
border: ${/*#__PURE__*/polished.rem('1px')} solid ${props => props.error ? red$
|
|
895
|
+
border: ${/*#__PURE__*/polished.rem('1px')} solid ${props => props.error ? red$3 : grey$5};
|
|
892
896
|
border-radius: ${/*#__PURE__*/polished.rem('6px')};
|
|
893
897
|
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>");
|
|
894
898
|
background-position: calc(100% - 15px) center;
|
|
@@ -903,24 +907,24 @@ const SelectStyle = _styled__default.select`
|
|
|
903
907
|
transition-duration: 0.3s;
|
|
904
908
|
|
|
905
909
|
&:hover {
|
|
906
|
-
border-color: ${
|
|
910
|
+
border-color: ${purple500$2};
|
|
907
911
|
}
|
|
908
912
|
|
|
909
913
|
&:-moz-focusring {
|
|
910
914
|
color: transparent;
|
|
911
|
-
text-shadow: 0 0 0 ${normal$
|
|
915
|
+
text-shadow: 0 0 0 ${normal$2};
|
|
912
916
|
}
|
|
913
917
|
|
|
914
918
|
&:disabled {
|
|
915
|
-
background-color: ${lightGrey$
|
|
916
|
-
color: ${grey$
|
|
919
|
+
background-color: ${lightGrey$5};
|
|
920
|
+
color: ${grey$5};
|
|
917
921
|
pointer-events: none;
|
|
918
922
|
}
|
|
919
923
|
|
|
920
924
|
${props => props.minimal && _styled.css`
|
|
921
925
|
border: 0;
|
|
922
926
|
border-bottom: ${polished.rem('1px')} solid
|
|
923
|
-
${props => props.error ? red$
|
|
927
|
+
${props => props.error ? red$3 : grey$5};
|
|
924
928
|
border-radius: 0;
|
|
925
929
|
background-position: 100% center;
|
|
926
930
|
height: ${polished.rem('40px')};
|
|
@@ -928,19 +932,19 @@ const SelectStyle = _styled__default.select`
|
|
|
928
932
|
|
|
929
933
|
&:disabled {
|
|
930
934
|
background-color: transparent;
|
|
931
|
-
color: ${grey$
|
|
935
|
+
color: ${grey$5};
|
|
932
936
|
}
|
|
933
937
|
`}
|
|
934
938
|
`;
|
|
935
939
|
|
|
936
940
|
const {
|
|
937
|
-
green: green$
|
|
938
|
-
red: red$
|
|
941
|
+
green: green$2,
|
|
942
|
+
red: red$4
|
|
939
943
|
} = colors;
|
|
940
944
|
const ErrorStyle = /*#__PURE__*/_styled__default.span.withConfig({
|
|
941
945
|
displayName: "styles__ErrorStyle",
|
|
942
946
|
componentId: "sc-4e4ecc-0"
|
|
943
|
-
})(["display:block;font-size:0.7rem;color:", ";", " + &,", " + &,", " + &{margin-top:", ";}"], props => props.color === 'success' ? green$
|
|
947
|
+
})(["display:block;font-size:0.7rem;color:", ";", " + &,", " + &,", " + &{margin-top:", ";}"], props => props.color === 'success' ? green$2 : red$4, TextFieldInputStyle, TextAreaStyle, SelectStyle, /*#__PURE__*/polished.rem('5px'));
|
|
944
948
|
|
|
945
949
|
const ErrorField = props => {
|
|
946
950
|
const {
|
|
@@ -976,18 +980,18 @@ const Icon = props => {
|
|
|
976
980
|
};
|
|
977
981
|
|
|
978
982
|
const {
|
|
979
|
-
grey: grey$
|
|
983
|
+
grey: grey$6
|
|
980
984
|
} = colors;
|
|
981
985
|
const {
|
|
982
|
-
bold
|
|
983
|
-
} =
|
|
986
|
+
bold
|
|
987
|
+
} = typography;
|
|
984
988
|
const LabelStyle = /*#__PURE__*/_styled__default.label.withConfig({
|
|
985
989
|
displayName: "styles__LabelStyle",
|
|
986
990
|
componentId: "pbv9we-0"
|
|
987
|
-
})(["display:flex;align-items:center;font-size:0.75rem;font-weight:", ";color:", ";text-transform:uppercase;svg{width:auto;height:", ";}"], bold
|
|
991
|
+
})(["display:flex;align-items:center;font-size:0.75rem;font-weight:", ";color:", ";text-transform:uppercase;svg{width:auto;height:", ";}"], bold, grey$6, /*#__PURE__*/polished.rem('15px'));
|
|
988
992
|
|
|
989
993
|
const {
|
|
990
|
-
grey: grey$
|
|
994
|
+
grey: grey$7
|
|
991
995
|
} = colors;
|
|
992
996
|
|
|
993
997
|
const Label = props => {
|
|
@@ -1002,12 +1006,12 @@ const Label = props => {
|
|
|
1002
1006
|
style: style
|
|
1003
1007
|
}, value, kai ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1004
1008
|
icon: "kai",
|
|
1005
|
-
fill: grey$
|
|
1009
|
+
fill: grey$7
|
|
1006
1010
|
}) : null);
|
|
1007
1011
|
};
|
|
1008
1012
|
|
|
1009
1013
|
const {
|
|
1010
|
-
light: light$
|
|
1014
|
+
light: light$4
|
|
1011
1015
|
} = colors;
|
|
1012
1016
|
const rotation = _styled.keyframes`
|
|
1013
1017
|
from {
|
|
@@ -1020,15 +1024,15 @@ const rotation = _styled.keyframes`
|
|
|
1020
1024
|
const Loading = /*#__PURE__*/_styled__default.div.withConfig({
|
|
1021
1025
|
displayName: "styles__Loading",
|
|
1022
1026
|
componentId: "sxnx45-0"
|
|
1023
|
-
})(["border:", " solid hsla(0,0%,48%,0.5);border-top-color:", ";border-radius:50%;width:", ";height:", ";animation:", " 0.8s ease infinite;"], /*#__PURE__*/polished.rem('5px'), props => props.fill || light$
|
|
1027
|
+
})(["border:", " solid hsla(0,0%,48%,0.5);border-top-color:", ";border-radius:50%;width:", ";height:", ";animation:", " 0.8s ease infinite;"], /*#__PURE__*/polished.rem('5px'), props => props.fill || light$4, props => props.size || polished.rem('20px'), props => props.size || polished.rem('20px'), rotation);
|
|
1024
1028
|
|
|
1025
1029
|
const {
|
|
1026
|
-
grey: grey$
|
|
1030
|
+
grey: grey$8
|
|
1027
1031
|
} = colors;
|
|
1028
1032
|
|
|
1029
1033
|
const Spinner = props => {
|
|
1030
1034
|
const {
|
|
1031
|
-
fill = grey$
|
|
1035
|
+
fill = grey$8,
|
|
1032
1036
|
size = '20px',
|
|
1033
1037
|
className = 'spinner',
|
|
1034
1038
|
style
|
|
@@ -1041,48 +1045,24 @@ const Spinner = props => {
|
|
|
1041
1045
|
});
|
|
1042
1046
|
};
|
|
1043
1047
|
|
|
1044
|
-
const {
|
|
1045
|
-
normal: normal$5,
|
|
1046
|
-
light: light$7,
|
|
1047
|
-
grey: grey$b,
|
|
1048
|
-
green: green$5,
|
|
1049
|
-
orange: orange$2,
|
|
1050
|
-
red: red$7
|
|
1051
|
-
} = colors;
|
|
1052
|
-
const {
|
|
1053
|
-
bold: bold$3
|
|
1054
|
-
} = fontWeight;
|
|
1055
1048
|
const TagWrapper = /*#__PURE__*/_styled__default.span.withConfig({
|
|
1056
1049
|
displayName: "styles__TagWrapper",
|
|
1057
1050
|
componentId: "sc-1ghratr-0"
|
|
1058
|
-
})(["display:inline-block;border:", " solid
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
border-color: ${red$7};
|
|
1068
|
-
background-color: ${red$7};
|
|
1069
|
-
color: ${props.variant === 'solid' ? light$7 : red$7};
|
|
1070
|
-
`, props => props.color === 'grey' && _styled.css`
|
|
1071
|
-
border-color: ${grey$b};
|
|
1072
|
-
background-color: ${grey$b};
|
|
1073
|
-
color: ${props.variant === 'solid' ? light$7 : grey$b};
|
|
1074
|
-
`, props => props.color === 'light' && _styled.css`
|
|
1075
|
-
border-color: ${light$7};
|
|
1076
|
-
background-color: ${light$7};
|
|
1077
|
-
color: ${props.variant === 'solid' ? normal$5 : light$7};
|
|
1078
|
-
`, props => props.variant === 'outline' && _styled.css`
|
|
1079
|
-
background-color: transparent;
|
|
1080
|
-
`);
|
|
1051
|
+
})(["--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 => {
|
|
1052
|
+
var _props$color;
|
|
1053
|
+
|
|
1054
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
1055
|
+
}, props => {
|
|
1056
|
+
var _props$txtColor;
|
|
1057
|
+
|
|
1058
|
+
return useColor((_props$txtColor = props.txtColor) != null ? _props$txtColor : 'black').color;
|
|
1059
|
+
}, /*#__PURE__*/polished.rem('2px'), /*#__PURE__*/polished.rem('4px'), props => props.variant === 'solid' ? 'var(--bg)' : 'transparent', /*#__PURE__*/polished.rem('150px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('8px'), /*#__PURE__*/polished.rem('12px'), typography.medium, /*#__PURE__*/polished.rem('1px'));
|
|
1081
1060
|
|
|
1082
1061
|
const Tag = props => {
|
|
1083
1062
|
const {
|
|
1084
1063
|
variant = 'solid',
|
|
1085
|
-
color = '
|
|
1064
|
+
color = 'purple500',
|
|
1065
|
+
txtColor = 'white',
|
|
1086
1066
|
value,
|
|
1087
1067
|
className = 'tag',
|
|
1088
1068
|
style
|
|
@@ -1091,34 +1071,39 @@ const Tag = props => {
|
|
|
1091
1071
|
className: className,
|
|
1092
1072
|
variant: variant,
|
|
1093
1073
|
color: color,
|
|
1074
|
+
txtColor: txtColor,
|
|
1094
1075
|
style: style,
|
|
1095
1076
|
title: value
|
|
1096
1077
|
}, value);
|
|
1097
1078
|
};
|
|
1098
1079
|
|
|
1099
|
-
const {
|
|
1100
|
-
grey: grey$c,
|
|
1101
|
-
light: light$8
|
|
1102
|
-
} = colors;
|
|
1103
|
-
const {
|
|
1104
|
-
bold: bold$4
|
|
1105
|
-
} = fontWeight;
|
|
1106
1080
|
const TagWrapper$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
1107
1081
|
displayName: "styles__TagWrapper",
|
|
1108
1082
|
componentId: "db57da-0"
|
|
1109
|
-
})(["display:flex;border:", " solid
|
|
1083
|
+
})(["--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 => {
|
|
1084
|
+
var _props$color;
|
|
1085
|
+
|
|
1086
|
+
return useColor((_props$color = props.color) != null ? _props$color : 'black').color;
|
|
1087
|
+
}, props => {
|
|
1088
|
+
var _props$valueColor;
|
|
1089
|
+
|
|
1090
|
+
return useColor((_props$valueColor = props.valueColor) != null ? _props$valueColor : 'black').color;
|
|
1091
|
+
}, /*#__PURE__*/polished.rem('2px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('3px'), /*#__PURE__*/polished.rem('8px'), /*#__PURE__*/polished.rem('12px'), typography.medium, /*#__PURE__*/polished.rem('1px'), /*#__PURE__*/polished.rem('5px'));
|
|
1110
1092
|
|
|
1111
1093
|
const TagNumber = props => {
|
|
1112
1094
|
const {
|
|
1113
|
-
label,
|
|
1114
|
-
value,
|
|
1115
1095
|
className = 'tag-number',
|
|
1116
|
-
style
|
|
1096
|
+
style,
|
|
1097
|
+
color = 'purple500',
|
|
1098
|
+
valueColor = 'white',
|
|
1099
|
+
label,
|
|
1100
|
+
value
|
|
1117
1101
|
} = props;
|
|
1118
1102
|
return /*#__PURE__*/React__default.createElement(TagWrapper$1, {
|
|
1119
1103
|
className: className,
|
|
1120
1104
|
style: style,
|
|
1121
|
-
|
|
1105
|
+
color: color,
|
|
1106
|
+
valueColor: valueColor
|
|
1122
1107
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
1123
1108
|
className: "label"
|
|
1124
1109
|
}, label), /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -1252,10 +1237,11 @@ const Select = props => {
|
|
|
1252
1237
|
};
|
|
1253
1238
|
|
|
1254
1239
|
const {
|
|
1255
|
-
normal: normal$
|
|
1256
|
-
light: light$
|
|
1257
|
-
grey: grey$
|
|
1258
|
-
|
|
1240
|
+
normal: normal$3,
|
|
1241
|
+
light: light$5,
|
|
1242
|
+
grey: grey$9,
|
|
1243
|
+
lightGrey: lightGrey$6,
|
|
1244
|
+
purple500: purple500$3,
|
|
1259
1245
|
lightPurple
|
|
1260
1246
|
} = colors;
|
|
1261
1247
|
const SelectWrapper = _styled__default.div`
|
|
@@ -1265,16 +1251,16 @@ const SelectWrapper = _styled__default.div`
|
|
|
1265
1251
|
}
|
|
1266
1252
|
|
|
1267
1253
|
&__control {
|
|
1268
|
-
border-color: ${grey$
|
|
1254
|
+
border-color: ${grey$9};
|
|
1269
1255
|
min-height: ${/*#__PURE__*/polished.rem('50px')};
|
|
1270
1256
|
transition-duration: 0.3s;
|
|
1271
1257
|
|
|
1272
1258
|
&:hover {
|
|
1273
|
-
border-color: ${
|
|
1259
|
+
border-color: ${purple500$3};
|
|
1274
1260
|
}
|
|
1275
1261
|
|
|
1276
1262
|
&--is-focused {
|
|
1277
|
-
border-color: ${
|
|
1263
|
+
border-color: ${purple500$3};
|
|
1278
1264
|
box-shadow: none;
|
|
1279
1265
|
}
|
|
1280
1266
|
}
|
|
@@ -1285,15 +1271,15 @@ const SelectWrapper = _styled__default.div`
|
|
|
1285
1271
|
}
|
|
1286
1272
|
|
|
1287
1273
|
&__placeholder {
|
|
1288
|
-
color: ${grey$
|
|
1274
|
+
color: ${grey$9};
|
|
1289
1275
|
}
|
|
1290
1276
|
|
|
1291
1277
|
&__input {
|
|
1292
|
-
color: ${normal$
|
|
1278
|
+
color: ${normal$3};
|
|
1293
1279
|
}
|
|
1294
1280
|
|
|
1295
1281
|
&__single-value {
|
|
1296
|
-
color: ${normal$
|
|
1282
|
+
color: ${normal$3};
|
|
1297
1283
|
}
|
|
1298
1284
|
|
|
1299
1285
|
&__indicator {
|
|
@@ -1313,7 +1299,7 @@ const SelectWrapper = _styled__default.div`
|
|
|
1313
1299
|
}
|
|
1314
1300
|
|
|
1315
1301
|
&-separator {
|
|
1316
|
-
background-color: ${grey$
|
|
1302
|
+
background-color: ${grey$9};
|
|
1317
1303
|
}
|
|
1318
1304
|
}
|
|
1319
1305
|
|
|
@@ -1321,18 +1307,18 @@ const SelectWrapper = _styled__default.div`
|
|
|
1321
1307
|
transition-duration: 0.3s;
|
|
1322
1308
|
|
|
1323
1309
|
&:hover {
|
|
1324
|
-
background-color: ${
|
|
1325
|
-
color: ${light$
|
|
1310
|
+
background-color: ${purple500$3};
|
|
1311
|
+
color: ${light$5};
|
|
1326
1312
|
}
|
|
1327
1313
|
|
|
1328
1314
|
&--is-focused {
|
|
1329
|
-
background-color: ${
|
|
1330
|
-
color: ${light$
|
|
1315
|
+
background-color: ${purple500$3};
|
|
1316
|
+
color: ${light$5};
|
|
1331
1317
|
}
|
|
1332
1318
|
|
|
1333
1319
|
&--is-selected {
|
|
1334
1320
|
background-color: ${lightPurple};
|
|
1335
|
-
color: ${normal$
|
|
1321
|
+
color: ${normal$3};
|
|
1336
1322
|
}
|
|
1337
1323
|
}
|
|
1338
1324
|
}
|
|
@@ -1360,82 +1346,110 @@ const SelectWrapper = _styled__default.div`
|
|
|
1360
1346
|
|
|
1361
1347
|
.select__option--is-selected {
|
|
1362
1348
|
svg {
|
|
1363
|
-
fill: ${normal$
|
|
1349
|
+
fill: ${normal$3};
|
|
1364
1350
|
transition-duration: 0.3s;
|
|
1365
1351
|
}
|
|
1366
1352
|
}
|
|
1367
1353
|
|
|
1368
1354
|
.select__option--is-focused {
|
|
1369
1355
|
svg {
|
|
1370
|
-
fill: ${light$
|
|
1356
|
+
fill: ${light$5};
|
|
1371
1357
|
transition-duration: 0.3s;
|
|
1372
1358
|
}
|
|
1373
1359
|
}
|
|
1374
|
-
`;
|
|
1375
1360
|
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
value,
|
|
1384
|
-
clear = true,
|
|
1385
|
-
onChange = () => {},
|
|
1386
|
-
onInputChange = () => {},
|
|
1387
|
-
error,
|
|
1388
|
-
disabled = false,
|
|
1389
|
-
dataTestId
|
|
1390
|
-
} = props;
|
|
1391
|
-
const {
|
|
1392
|
-
Option
|
|
1393
|
-
} = Select$1.components;
|
|
1394
|
-
|
|
1395
|
-
const CustomSelectOption = (props, commonProps) => /*#__PURE__*/React__default.createElement(Option, Object.assign({}, props, commonProps), props.data.icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1396
|
-
icon: props.data.icon
|
|
1397
|
-
}) : props.data.customImage ? props.data.customImage : null, props.data.label);
|
|
1361
|
+
.select__option--is-disabled {
|
|
1362
|
+
pointer-events: none;
|
|
1363
|
+
}
|
|
1364
|
+
`;
|
|
1365
|
+
const SelectGroupLabel = _styled__default.span`
|
|
1366
|
+
font-size: ${/*#__PURE__*/polished.rem('12px')};
|
|
1367
|
+
color: ${lightGrey$6};
|
|
1398
1368
|
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1369
|
+
+ .tag {
|
|
1370
|
+
border-color: ${lightGrey$6};
|
|
1371
|
+
background-color: ${lightGrey$6};
|
|
1372
|
+
color: ${grey$9};
|
|
1373
|
+
}
|
|
1374
|
+
`;
|
|
1402
1375
|
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1376
|
+
const {
|
|
1377
|
+
Option
|
|
1378
|
+
} = Select$1.components;
|
|
1379
|
+
const FormatGroupLabel = ({
|
|
1380
|
+
label,
|
|
1381
|
+
options
|
|
1382
|
+
}) => {
|
|
1383
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1384
|
+
style: {
|
|
1385
|
+
display: 'flex',
|
|
1386
|
+
alignItems: 'center',
|
|
1387
|
+
justifyContent: 'space-between'
|
|
1388
|
+
}
|
|
1389
|
+
}, /*#__PURE__*/React__default.createElement(SelectGroupLabel, {
|
|
1390
|
+
className: "selective-options-group-label"
|
|
1391
|
+
}, label), /*#__PURE__*/React__default.createElement(Tag, {
|
|
1392
|
+
value: `${options == null ? void 0 : options.length}`
|
|
1393
|
+
}));
|
|
1394
|
+
};
|
|
1395
|
+
const CustomSelectOption = (props, commonProps) => /*#__PURE__*/React__default.createElement(Option, Object.assign({}, props, commonProps), props.data.icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1396
|
+
icon: props.data.icon
|
|
1397
|
+
}) : props.data.customImage ? props.data.customImage : null, props.data.label);
|
|
1398
|
+
const CustomSelectValue = props => /*#__PURE__*/React__default.createElement("div", null, props.data.icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
1399
|
+
icon: props.data.icon
|
|
1400
|
+
}) : props.data.customImage ? props.data.customImage : null, props.data.label);
|
|
1401
|
+
|
|
1402
|
+
const SelectInteractive = ({
|
|
1403
|
+
name,
|
|
1404
|
+
multi = false,
|
|
1405
|
+
search = true,
|
|
1406
|
+
placeholder,
|
|
1407
|
+
options,
|
|
1408
|
+
value,
|
|
1409
|
+
clear = true,
|
|
1410
|
+
error,
|
|
1411
|
+
disabled = false,
|
|
1412
|
+
formatGroupLabel = true,
|
|
1413
|
+
onChange = () => {},
|
|
1414
|
+
onInputChange = () => {},
|
|
1415
|
+
...rest
|
|
1416
|
+
}) => {
|
|
1417
|
+
return /*#__PURE__*/React__default.createElement(SelectWrapper, Object.assign({}, rest), /*#__PURE__*/React__default.createElement(Select$1__default, {
|
|
1408
1418
|
name: name,
|
|
1419
|
+
value: value,
|
|
1409
1420
|
isMulti: multi,
|
|
1410
|
-
isSearchable: search,
|
|
1411
|
-
isDisabled: disabled,
|
|
1412
|
-
placeholder: placeholder,
|
|
1413
1421
|
options: options,
|
|
1414
|
-
value: value,
|
|
1415
1422
|
isClearable: clear,
|
|
1416
|
-
|
|
1423
|
+
isDisabled: disabled,
|
|
1424
|
+
isSearchable: search,
|
|
1425
|
+
classNamePrefix: "select",
|
|
1426
|
+
placeholder: placeholder,
|
|
1427
|
+
className: "select-interactive",
|
|
1428
|
+
// @ts-ignore
|
|
1429
|
+
onChange: e => onChange(e != null ? e : []),
|
|
1417
1430
|
defaultMenuIsOpen: false,
|
|
1418
1431
|
onInputChange: onInputChange,
|
|
1419
1432
|
components: {
|
|
1420
1433
|
Option: CustomSelectOption,
|
|
1421
1434
|
SingleValue: CustomSelectValue
|
|
1422
|
-
}
|
|
1435
|
+
},
|
|
1436
|
+
formatGroupLabel: s => formatGroupLabel ? FormatGroupLabel == null ? void 0 : FormatGroupLabel(s) : undefined
|
|
1423
1437
|
}), error ? /*#__PURE__*/React__default.createElement(ErrorField, {
|
|
1424
1438
|
error: error
|
|
1425
1439
|
}) : null);
|
|
1426
1440
|
};
|
|
1427
1441
|
|
|
1428
1442
|
const {
|
|
1429
|
-
normal: normal$
|
|
1430
|
-
grey: grey$
|
|
1431
|
-
lightGrey: lightGrey$
|
|
1432
|
-
red: red$
|
|
1443
|
+
normal: normal$4,
|
|
1444
|
+
grey: grey$a,
|
|
1445
|
+
lightGrey: lightGrey$7,
|
|
1446
|
+
red: red$5,
|
|
1433
1447
|
lightRed
|
|
1434
1448
|
} = colors;
|
|
1435
1449
|
const Wrapper$2 = _styled__default.div`
|
|
1436
1450
|
border-width: ${/*#__PURE__*/polished.rem('1px')};
|
|
1437
1451
|
border-style: solid;
|
|
1438
|
-
border-color: ${props => props.error ? red$
|
|
1452
|
+
border-color: ${props => props.error ? red$5 : grey$a};
|
|
1439
1453
|
border-radius: ${/*#__PURE__*/polished.rem('6px')};
|
|
1440
1454
|
display: flex;
|
|
1441
1455
|
overflow: hidden;
|
|
@@ -1443,7 +1457,12 @@ const Wrapper$2 = _styled__default.div`
|
|
|
1443
1457
|
input {
|
|
1444
1458
|
flex: 1;
|
|
1445
1459
|
border: 0;
|
|
1446
|
-
color: ${props => props.error ? red$
|
|
1460
|
+
color: ${props => props.error ? red$5 : normal$4};
|
|
1461
|
+
|
|
1462
|
+
&:disabled {
|
|
1463
|
+
margin: 0;
|
|
1464
|
+
border-radius: 0;
|
|
1465
|
+
}
|
|
1447
1466
|
}
|
|
1448
1467
|
|
|
1449
1468
|
& + span {
|
|
@@ -1453,10 +1472,10 @@ const Wrapper$2 = _styled__default.div`
|
|
|
1453
1472
|
const Appendix = _styled__default.div`
|
|
1454
1473
|
border-width: ${props => props.position === 'left' ? `0 ${polished.rem('1px')} 0 0` : `0 0 0 ${polished.rem('1px')}`};
|
|
1455
1474
|
border-style: solid;
|
|
1456
|
-
border-color: ${props => props.error ? red$
|
|
1457
|
-
background-color: ${props => props.error ? lightRed : lightGrey$
|
|
1475
|
+
border-color: ${props => props.error ? red$5 : grey$a};
|
|
1476
|
+
background-color: ${props => props.error ? lightRed : lightGrey$7};
|
|
1458
1477
|
padding: 0 ${/*#__PURE__*/polished.rem('15px')};
|
|
1459
|
-
color: ${props => props.error ? red$
|
|
1478
|
+
color: ${props => props.error ? red$5 : grey$a};
|
|
1460
1479
|
line-height: ${/*#__PURE__*/polished.rem('48px')};
|
|
1461
1480
|
vertical-align: center;
|
|
1462
1481
|
overflow: hidden;
|
|
@@ -1530,8 +1549,25 @@ const TruncateLine = props => {
|
|
|
1530
1549
|
}, /*#__PURE__*/React__default.createElement("span", null, value));
|
|
1531
1550
|
};
|
|
1532
1551
|
|
|
1552
|
+
const size = {
|
|
1553
|
+
xs: '360px',
|
|
1554
|
+
s: '700px',
|
|
1555
|
+
m: '900px',
|
|
1556
|
+
l: '1280px',
|
|
1557
|
+
xl: '1600px'
|
|
1558
|
+
};
|
|
1559
|
+
const device = {
|
|
1560
|
+
xs: `(min-width: ${size.xs})`,
|
|
1561
|
+
s: `(min-width: ${size.s})`,
|
|
1562
|
+
m: `(min-width: ${size.m})`,
|
|
1563
|
+
l: `(min-width: ${size.l})`,
|
|
1564
|
+
xl: `(min-width: ${size.xl})`,
|
|
1565
|
+
touch: `(hover: none) and (pointer: coarse)`,
|
|
1566
|
+
mouse: '(min-width: 538px) and (min-height: 720px)'
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1533
1569
|
const {
|
|
1534
|
-
light: light$
|
|
1570
|
+
light: light$6
|
|
1535
1571
|
} = colors;
|
|
1536
1572
|
const Wrapper$3 = _styled__default.div`
|
|
1537
1573
|
position: relative;
|
|
@@ -1785,7 +1821,7 @@ const Wrapper$3 = _styled__default.div`
|
|
|
1785
1821
|
svg {
|
|
1786
1822
|
width: ${/*#__PURE__*/polished.rem('36px')};
|
|
1787
1823
|
height: ${/*#__PURE__*/polished.rem('36px')};
|
|
1788
|
-
fill: ${light$
|
|
1824
|
+
fill: ${light$6};
|
|
1789
1825
|
}
|
|
1790
1826
|
|
|
1791
1827
|
&.next {
|
|
@@ -1796,7 +1832,7 @@ const Wrapper$3 = _styled__default.div`
|
|
|
1796
1832
|
opacity: 1;
|
|
1797
1833
|
|
|
1798
1834
|
svg {
|
|
1799
|
-
fill: ${light$
|
|
1835
|
+
fill: ${light$6};
|
|
1800
1836
|
}
|
|
1801
1837
|
}
|
|
1802
1838
|
|
|
@@ -1821,7 +1857,7 @@ const Wrapper$3 = _styled__default.div`
|
|
|
1821
1857
|
position: relative;
|
|
1822
1858
|
display: inline-block;
|
|
1823
1859
|
border-radius: 999px;
|
|
1824
|
-
background-color: ${light$
|
|
1860
|
+
background-color: ${light$6};
|
|
1825
1861
|
width: ${/*#__PURE__*/polished.rem('15px')};
|
|
1826
1862
|
height: ${/*#__PURE__*/polished.rem('15px')};
|
|
1827
1863
|
opacity: 0.25;
|
|
@@ -1955,12 +1991,12 @@ const VideoPlayer = props => {
|
|
|
1955
1991
|
};
|
|
1956
1992
|
|
|
1957
1993
|
const {
|
|
1958
|
-
lightGrey: lightGrey$
|
|
1959
|
-
green: green$
|
|
1994
|
+
lightGrey: lightGrey$8,
|
|
1995
|
+
green: green$3
|
|
1960
1996
|
} = colors;
|
|
1961
1997
|
const {
|
|
1962
|
-
bold: bold$
|
|
1963
|
-
} =
|
|
1998
|
+
bold: bold$1
|
|
1999
|
+
} = typography;
|
|
1964
2000
|
const Wrapper$5 = _styled__default.div`
|
|
1965
2001
|
display: flex;
|
|
1966
2002
|
align-items: center;
|
|
@@ -1968,13 +2004,13 @@ const Wrapper$5 = _styled__default.div`
|
|
|
1968
2004
|
const Bar = _styled__default.div`
|
|
1969
2005
|
flex: 1;
|
|
1970
2006
|
border-radius: 999px;
|
|
1971
|
-
background-color: ${lightGrey$
|
|
2007
|
+
background-color: ${lightGrey$8};
|
|
1972
2008
|
height: ${/*#__PURE__*/polished.rem('10px')};
|
|
1973
2009
|
overflow: hidden;
|
|
1974
2010
|
`;
|
|
1975
2011
|
const Progress = _styled__default.div`
|
|
1976
2012
|
border-radius: 999px;
|
|
1977
|
-
background-color: ${green$
|
|
2013
|
+
background-color: ${green$3};
|
|
1978
2014
|
height: 100%;
|
|
1979
2015
|
width: ${props => props.progress ? `${props.progress}%` : 0};
|
|
1980
2016
|
transition-duration: 2s;
|
|
@@ -1982,7 +2018,7 @@ const Progress = _styled__default.div`
|
|
|
1982
2018
|
const Value = _styled__default.div`
|
|
1983
2019
|
margin-left: ${/*#__PURE__*/polished.rem('5px')};
|
|
1984
2020
|
font-size: 0.75rem;
|
|
1985
|
-
font-weight: ${bold$
|
|
2021
|
+
font-weight: ${bold$1};
|
|
1986
2022
|
`;
|
|
1987
2023
|
|
|
1988
2024
|
const ProgressBar = props => {
|
|
@@ -1996,9 +2032,9 @@ const ProgressBar = props => {
|
|
|
1996
2032
|
};
|
|
1997
2033
|
|
|
1998
2034
|
const {
|
|
1999
|
-
light: light$
|
|
2000
|
-
green: green$
|
|
2001
|
-
lightGrey: lightGrey$
|
|
2035
|
+
light: light$7,
|
|
2036
|
+
green: green$4,
|
|
2037
|
+
lightGrey: lightGrey$9
|
|
2002
2038
|
} = colors;
|
|
2003
2039
|
const Switcher = _styled__default.fieldset`
|
|
2004
2040
|
margin: 0;
|
|
@@ -2024,7 +2060,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2024
2060
|
width: ${/*#__PURE__*/polished.rem('40px')};
|
|
2025
2061
|
height: ${/*#__PURE__*/polished.rem('24px')};
|
|
2026
2062
|
border-radius: 999px;
|
|
2027
|
-
border: 2px solid ${light$
|
|
2063
|
+
border: 2px solid ${light$7};
|
|
2028
2064
|
position: relative;
|
|
2029
2065
|
opacity: ${props => props.disabled ? '0.5' : '1'};
|
|
2030
2066
|
|
|
@@ -2049,7 +2085,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2049
2085
|
}
|
|
2050
2086
|
|
|
2051
2087
|
&.switch-on:checked ~ .bg {
|
|
2052
|
-
background-color: ${green$
|
|
2088
|
+
background-color: ${green$4};
|
|
2053
2089
|
}
|
|
2054
2090
|
|
|
2055
2091
|
&.switch-off:checked ~ .switcher {
|
|
@@ -2057,7 +2093,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2057
2093
|
}
|
|
2058
2094
|
|
|
2059
2095
|
&.switch-off:checked ~ .bg {
|
|
2060
|
-
background-color: ${lightGrey$
|
|
2096
|
+
background-color: ${lightGrey$9};
|
|
2061
2097
|
}
|
|
2062
2098
|
}
|
|
2063
2099
|
|
|
@@ -2070,7 +2106,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2070
2106
|
width: ${/*#__PURE__*/polished.rem('16px')};
|
|
2071
2107
|
height: ${/*#__PURE__*/polished.rem('16px')};
|
|
2072
2108
|
border-radius: 50%;
|
|
2073
|
-
background-color: ${light$
|
|
2109
|
+
background-color: ${light$7};
|
|
2074
2110
|
transition: all 0.3s ease-out;
|
|
2075
2111
|
z-index: 2;
|
|
2076
2112
|
}
|
|
@@ -2085,7 +2121,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2085
2121
|
border-radius: 999px;
|
|
2086
2122
|
background-color: transparent;
|
|
2087
2123
|
transition: all 0.3s ease-out;
|
|
2088
|
-
background-color: ${lightGrey$
|
|
2124
|
+
background-color: ${lightGrey$9};
|
|
2089
2125
|
}
|
|
2090
2126
|
}
|
|
2091
2127
|
}
|
|
@@ -2173,14 +2209,14 @@ const Toggle = ({
|
|
|
2173
2209
|
};
|
|
2174
2210
|
|
|
2175
2211
|
const {
|
|
2176
|
-
red: red$
|
|
2177
|
-
grey: grey$
|
|
2178
|
-
lightGrey: lightGrey$
|
|
2179
|
-
darkGrey
|
|
2180
|
-
green: green$
|
|
2181
|
-
darkGreen: darkGreen$
|
|
2182
|
-
light: light$
|
|
2183
|
-
normal: normal$
|
|
2212
|
+
red: red$6,
|
|
2213
|
+
grey: grey$b,
|
|
2214
|
+
lightGrey: lightGrey$a,
|
|
2215
|
+
darkGrey,
|
|
2216
|
+
green: green$5,
|
|
2217
|
+
darkGreen: darkGreen$2,
|
|
2218
|
+
light: light$8,
|
|
2219
|
+
normal: normal$5
|
|
2184
2220
|
} = colors;
|
|
2185
2221
|
const Wrapper$6 = _styled__default.div`
|
|
2186
2222
|
input {
|
|
@@ -2196,9 +2232,9 @@ const Wrapper$6 = _styled__default.div`
|
|
|
2196
2232
|
margin-bottom: 0 !important;
|
|
2197
2233
|
border-width: ${props => props.minimal ? `0 0 ${polished.rem('1px')} 0` : polished.rem('1px')};
|
|
2198
2234
|
border-style: solid;
|
|
2199
|
-
border-color: ${props => props.error ? red$
|
|
2235
|
+
border-color: ${props => props.error ? red$6 : grey$b};
|
|
2200
2236
|
border-radius: ${props => props.minimal ? 0 : polished.rem('6px')};
|
|
2201
|
-
background-color: ${props => props.disabled ? lightGrey$
|
|
2237
|
+
background-color: ${props => props.disabled ? lightGrey$a : 'transparent'};
|
|
2202
2238
|
display: flex;
|
|
2203
2239
|
justify-content: space-between;
|
|
2204
2240
|
align-items: center;
|
|
@@ -2218,34 +2254,34 @@ const Wrapper$6 = _styled__default.div`
|
|
|
2218
2254
|
flex: 1;
|
|
2219
2255
|
display: block;
|
|
2220
2256
|
padding: ${props => props.minimal ? 0 : `0 ${polished.rem('10px')}`};
|
|
2221
|
-
color: ${props => props.disabled ? grey$
|
|
2257
|
+
color: ${props => props.disabled ? grey$b : normal$5};
|
|
2222
2258
|
white-space: nowrap;
|
|
2223
2259
|
overflow: hidden;
|
|
2224
2260
|
text-overflow: ellipsis;
|
|
2225
2261
|
}
|
|
2226
2262
|
|
|
2227
2263
|
&.button {
|
|
2228
|
-
border-left: ${props => props.minimal ? 0 : `${polished.rem('1px')} solid ${grey$
|
|
2229
|
-
background-color: ${props => props.minimal ? 'transparent' : props.disabled ? lightGrey$
|
|
2264
|
+
border-left: ${props => props.minimal ? 0 : `${polished.rem('1px')} solid ${grey$b}`};
|
|
2265
|
+
background-color: ${props => props.minimal ? 'transparent' : props.disabled ? lightGrey$a : green$5};
|
|
2230
2266
|
height: 100%;
|
|
2231
2267
|
padding: ${props => props.minimal ? `0 ${polished.rem('5px')} 0 ${polished.rem('20px')}` : `0 ${polished.rem('20px')}`};
|
|
2232
|
-
color: ${props => props.disabled ? grey$
|
|
2268
|
+
color: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2233
2269
|
transition-duration: 0.3s;
|
|
2234
2270
|
|
|
2235
2271
|
svg {
|
|
2236
2272
|
margin-right: ${/*#__PURE__*/polished.rem('8px')};
|
|
2237
2273
|
width: auto;
|
|
2238
2274
|
height: ${/*#__PURE__*/polished.rem('24px')};
|
|
2239
|
-
fill: ${props => props.disabled ? grey$
|
|
2275
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2240
2276
|
transition-duration: 0.3s;
|
|
2241
2277
|
}
|
|
2242
2278
|
|
|
2243
2279
|
&:hover {
|
|
2244
|
-
background-color: ${props => props.minimal ? 'transparent' : darkGreen$
|
|
2245
|
-
color: ${props => props.minimal ? darkGreen$
|
|
2280
|
+
background-color: ${props => props.minimal ? 'transparent' : darkGreen$2};
|
|
2281
|
+
color: ${props => props.minimal ? darkGreen$2 : light$8};
|
|
2246
2282
|
|
|
2247
2283
|
svg {
|
|
2248
|
-
fill: ${props => props.disabled ? grey$
|
|
2284
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGreen$2 : light$8};
|
|
2249
2285
|
}
|
|
2250
2286
|
}
|
|
2251
2287
|
}
|
|
@@ -2307,10 +2343,10 @@ const FilePicker = props => {
|
|
|
2307
2343
|
};
|
|
2308
2344
|
|
|
2309
2345
|
const {
|
|
2310
|
-
normal: normal$
|
|
2311
|
-
light: light$
|
|
2312
|
-
lightGrey: lightGrey$
|
|
2313
|
-
red: red$
|
|
2346
|
+
normal: normal$6,
|
|
2347
|
+
light: light$9,
|
|
2348
|
+
lightGrey: lightGrey$b,
|
|
2349
|
+
red: red$7
|
|
2314
2350
|
} = colors;
|
|
2315
2351
|
const ActionsMenuStyle$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2316
2352
|
displayName: "styles__ActionsMenuStyle",
|
|
@@ -2319,11 +2355,11 @@ const ActionsMenuStyle$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2319
2355
|
const List = /*#__PURE__*/_styled__default.ul.withConfig({
|
|
2320
2356
|
displayName: "styles__List",
|
|
2321
2357
|
componentId: "sc-1peafop-1"
|
|
2322
|
-
})(["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__*/polished.rem('1px'), lightGrey$
|
|
2358
|
+
})(["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__*/polished.rem('1px'), lightGrey$b, /*#__PURE__*/polished.rem('4px'), light$9, /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('200px'), /*#__PURE__*/polished.rem('250px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.lighten(0.7, normal$6), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.lighten(0.7, normal$6), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.lighten(0.7, normal$6), props => props.rowIndex != undefined && _styled.css`
|
|
2323
2359
|
--margin: ${`calc(${polished.rem('45px')} + ${polished.rem('50px')} * ${props.rowIndex} + ${polished.rem('42px')})`};
|
|
2324
2360
|
top: var(--margin);
|
|
2325
2361
|
right: ${polished.rem('5px')};
|
|
2326
|
-
`, /*#__PURE__*/polished.rem('45px'), lightGrey$
|
|
2362
|
+
`, /*#__PURE__*/polished.rem('45px'), lightGrey$b, /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('1px'), lightGrey$b, red$7, lightGrey$b, /*#__PURE__*/polished.rem('20px'), normal$6);
|
|
2327
2363
|
|
|
2328
2364
|
const ActionMenuList = props => {
|
|
2329
2365
|
const {
|
|
@@ -2396,13 +2432,13 @@ const ActionsMenu = props => {
|
|
|
2396
2432
|
};
|
|
2397
2433
|
|
|
2398
2434
|
const {
|
|
2399
|
-
light: light$
|
|
2400
|
-
grey: grey$
|
|
2435
|
+
light: light$a,
|
|
2436
|
+
grey: grey$c
|
|
2401
2437
|
} = colors;
|
|
2402
2438
|
const CardValueStyle = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2403
2439
|
displayName: "styles__CardValueStyle",
|
|
2404
2440
|
componentId: "sc-1ki7jdk-0"
|
|
2405
|
-
})(["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__*/polished.rem('1px'), grey$
|
|
2441
|
+
})(["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__*/polished.rem('1px'), grey$c, /*#__PURE__*/polished.rem('6px'), light$a, /*#__PURE__*/polished.rem('15px'), device.l, /*#__PURE__*/polished.rem('30px'), /*#__PURE__*/polished.rem('5px'));
|
|
2406
2442
|
const CardValueButtonWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2407
2443
|
displayName: "styles__CardValueButtonWrapper",
|
|
2408
2444
|
componentId: "sc-1ki7jdk-1"
|
|
@@ -2433,12 +2469,12 @@ const CardValue = props => {
|
|
|
2433
2469
|
};
|
|
2434
2470
|
|
|
2435
2471
|
const {
|
|
2436
|
-
grey: grey$
|
|
2437
|
-
light: light$
|
|
2472
|
+
grey: grey$d,
|
|
2473
|
+
light: light$b
|
|
2438
2474
|
} = colors;
|
|
2439
2475
|
const {
|
|
2440
|
-
bold: bold$
|
|
2441
|
-
} =
|
|
2476
|
+
bold: bold$2
|
|
2477
|
+
} = typography;
|
|
2442
2478
|
const EmptyTableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2443
2479
|
displayName: "styles__EmptyTableWrapper",
|
|
2444
2480
|
componentId: "sc-1dgsb9l-0"
|
|
@@ -2446,15 +2482,15 @@ const EmptyTableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2446
2482
|
const EmptyTableHead = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2447
2483
|
displayName: "styles__EmptyTableHead",
|
|
2448
2484
|
componentId: "sc-1dgsb9l-1"
|
|
2449
|
-
})(["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 ? polished.rem('1px') : `0 0 ${polished.rem('1px')} 0`, grey$
|
|
2485
|
+
})(["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 ? polished.rem('1px') : `0 0 ${polished.rem('1px')} 0`, grey$d, /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('50px'), bold$2, grey$d, /*#__PURE__*/polished.rem('15px'), bold$2, grey$d, device.s, device.m, device.l);
|
|
2450
2486
|
const EmptyTableBody = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2451
2487
|
displayName: "styles__EmptyTableBody",
|
|
2452
2488
|
componentId: "sc-1dgsb9l-2"
|
|
2453
|
-
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:0 0 ", " ", ";"], props => props.border ? `0 ${polished.rem('1px')} ${polished.rem('1px')} ${polished.rem('1px')}` : 0, grey$
|
|
2489
|
+
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:0 0 ", " ", ";"], props => props.border ? `0 ${polished.rem('1px')} ${polished.rem('1px')} ${polished.rem('1px')}` : 0, grey$d, /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'));
|
|
2454
2490
|
const EmptyTableRow = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2455
2491
|
displayName: "styles__EmptyTableRow",
|
|
2456
2492
|
componentId: "sc-1dgsb9l-3"
|
|
2457
|
-
})(["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__*/polished.rem('50px'), /*#__PURE__*/polished.rem('1px'), grey$
|
|
2493
|
+
})(["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__*/polished.rem('50px'), /*#__PURE__*/polished.rem('1px'), grey$d, /*#__PURE__*/polished.rem('15px'), device.s, device.m, device.l);
|
|
2458
2494
|
const EmptyTableCellText = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2459
2495
|
displayName: "styles__EmptyTableCellText",
|
|
2460
2496
|
componentId: "sc-1dgsb9l-4"
|
|
@@ -2462,7 +2498,7 @@ const EmptyTableCellText = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2462
2498
|
const EmptyTableOverlay = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2463
2499
|
displayName: "styles__EmptyTableOverlay",
|
|
2464
2500
|
componentId: "sc-1dgsb9l-5"
|
|
2465
|
-
})(["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__*/polished.rgba(light$
|
|
2501
|
+
})(["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__*/polished.rgba(light$b, 0), /*#__PURE__*/polished.rgba(light$b, 1), /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('15px'), grey$d);
|
|
2466
2502
|
|
|
2467
2503
|
const EmptyTable = props => {
|
|
2468
2504
|
let rows = [];
|
|
@@ -2522,31 +2558,31 @@ const ModalFooter = props => {
|
|
|
2522
2558
|
};
|
|
2523
2559
|
|
|
2524
2560
|
const {
|
|
2525
|
-
green: green$
|
|
2561
|
+
green: green$6,
|
|
2526
2562
|
lightGreen,
|
|
2527
|
-
darkGreen: darkGreen$
|
|
2528
|
-
grey: grey$
|
|
2529
|
-
lightGrey: lightGrey$
|
|
2530
|
-
darkGrey: darkGrey$
|
|
2531
|
-
red: red$
|
|
2563
|
+
darkGreen: darkGreen$3,
|
|
2564
|
+
grey: grey$e,
|
|
2565
|
+
lightGrey: lightGrey$c,
|
|
2566
|
+
darkGrey: darkGrey$1,
|
|
2567
|
+
red: red$8,
|
|
2532
2568
|
lightRed: lightRed$1,
|
|
2533
|
-
darkRed: darkRed$
|
|
2569
|
+
darkRed: darkRed$1
|
|
2534
2570
|
} = colors;
|
|
2535
2571
|
const Wrapper$7 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2536
2572
|
displayName: "styles__Wrapper",
|
|
2537
2573
|
componentId: "d2fn4g-0"
|
|
2538
|
-
})(["--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$
|
|
2539
|
-
--default: ${grey$
|
|
2540
|
-
--light: ${lightGrey$
|
|
2541
|
-
--dark: ${darkGrey$
|
|
2574
|
+
})(["--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' && _styled.css`
|
|
2575
|
+
--default: ${grey$e};
|
|
2576
|
+
--light: ${lightGrey$c};
|
|
2577
|
+
--dark: ${darkGrey$1};
|
|
2542
2578
|
`, props => props.color === 'green' && _styled.css`
|
|
2543
|
-
--default: ${green$
|
|
2579
|
+
--default: ${green$6};
|
|
2544
2580
|
--light: ${lightGreen};
|
|
2545
|
-
--dark: ${darkGreen$
|
|
2581
|
+
--dark: ${darkGreen$3};
|
|
2546
2582
|
`, props => props.color === 'red' && _styled.css`
|
|
2547
|
-
--default: ${red$
|
|
2583
|
+
--default: ${red$8};
|
|
2548
2584
|
--light: ${lightRed$1};
|
|
2549
|
-
--dark: ${darkRed$
|
|
2585
|
+
--dark: ${darkRed$1};
|
|
2550
2586
|
`, /*#__PURE__*/polished.rem('2px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('15px'), props => props.buttonValue && _styled.css`
|
|
2551
2587
|
button {
|
|
2552
2588
|
margin: ${polished.rem('30px')} 0 0 0;
|
|
@@ -2605,14 +2641,14 @@ function hasValue(value) {
|
|
|
2605
2641
|
}
|
|
2606
2642
|
|
|
2607
2643
|
const {
|
|
2608
|
-
normal: normal$
|
|
2609
|
-
light: light$
|
|
2610
|
-
grey: grey$
|
|
2611
|
-
lightGrey: lightGrey$
|
|
2644
|
+
normal: normal$7,
|
|
2645
|
+
light: light$c,
|
|
2646
|
+
grey: grey$f,
|
|
2647
|
+
lightGrey: lightGrey$d
|
|
2612
2648
|
} = colors;
|
|
2613
2649
|
const {
|
|
2614
|
-
bold: bold$
|
|
2615
|
-
} =
|
|
2650
|
+
bold: bold$3
|
|
2651
|
+
} = typography;
|
|
2616
2652
|
const TableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2617
2653
|
displayName: "styles__TableWrapper",
|
|
2618
2654
|
componentId: "vmoy3z-0"
|
|
@@ -2620,11 +2656,11 @@ const TableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2620
2656
|
const OverflowWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2621
2657
|
displayName: "styles__OverflowWrapper",
|
|
2622
2658
|
componentId: "vmoy3z-1"
|
|
2623
|
-
})(["@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__*/polished.rem('6px'), light$
|
|
2659
|
+
})(["@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__*/polished.rem('6px'), light$c, light$c, /*#__PURE__*/polished.rem('40px'), /*#__PURE__*/polished.rem('40px'), /*#__PURE__*/polished.rem('14px'), /*#__PURE__*/polished.rem('14px'));
|
|
2624
2660
|
const Table = /*#__PURE__*/_styled__default.table.withConfig({
|
|
2625
2661
|
displayName: "styles__Table",
|
|
2626
2662
|
componentId: "vmoy3z-2"
|
|
2627
|
-
})(["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$
|
|
2663
|
+
})(["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__*/polished.rem('6px'), /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), device.s, /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('1px'), grey$f, /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('15px'), device.s, /*#__PURE__*/polished.rem('1px'), /*#__PURE__*/polished.rem('-1px'), /*#__PURE__*/polished.rem('1px'), device.s, bold$3, grey$f, lightGrey$d, device.s, /*#__PURE__*/polished.rem('1px'), grey$f, /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('100px'), /*#__PURE__*/polished.rem('30px'), /*#__PURE__*/polished.rem('30px'), normal$7, grey$f, /*#__PURE__*/polished.rem('15px'), bold$3, /*#__PURE__*/polished.rem('20px'), /*#__PURE__*/polished.rem('20px'), /*#__PURE__*/polished.rem('10px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('36px'), /*#__PURE__*/polished.rem('-170px'), device.s, /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('1px'), grey$f, /*#__PURE__*/polished.rem('100px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('40px'));
|
|
2628
2664
|
|
|
2629
2665
|
const Table$1 = props => {
|
|
2630
2666
|
const {
|
|
@@ -2724,24 +2760,24 @@ const Table$1 = props => {
|
|
|
2724
2760
|
};
|
|
2725
2761
|
|
|
2726
2762
|
const {
|
|
2727
|
-
normal: normal$
|
|
2728
|
-
grey: grey$
|
|
2729
|
-
lightGrey: lightGrey$
|
|
2763
|
+
normal: normal$8,
|
|
2764
|
+
grey: grey$g,
|
|
2765
|
+
lightGrey: lightGrey$e
|
|
2730
2766
|
} = colors;
|
|
2731
2767
|
const {
|
|
2732
|
-
bold: bold$
|
|
2733
|
-
} =
|
|
2768
|
+
bold: bold$4
|
|
2769
|
+
} = typography;
|
|
2734
2770
|
const Table$2 = /*#__PURE__*/_styled__default.table.withConfig({
|
|
2735
2771
|
displayName: "styles__Table",
|
|
2736
2772
|
componentId: "sc-1p618q0-0"
|
|
2737
|
-
})(["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$
|
|
2773
|
+
})(["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__*/polished.rem('6px'), props => props.layout, /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), device.s, /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('1px'), grey$g, /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('15px'), device.s, /*#__PURE__*/polished.rem('1px'), /*#__PURE__*/polished.rem('-1px'), /*#__PURE__*/polished.rem('1px'), device.s, bold$4, grey$g, lightGrey$e, grey$g, device.s, /*#__PURE__*/polished.rem('1px'), grey$g, /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('30px'), /*#__PURE__*/polished.rem('30px'), grey$g, /*#__PURE__*/polished.rem('100px'), /*#__PURE__*/polished.rem('30px'), /*#__PURE__*/polished.rem('30px'), normal$8, grey$g, /*#__PURE__*/polished.rem('15px'), bold$4, /*#__PURE__*/polished.rem('20px'), /*#__PURE__*/polished.rem('20px'), /*#__PURE__*/polished.rem('10px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('36px'), /*#__PURE__*/polished.rem('-170px'), device.s, /*#__PURE__*/polished.rem('50px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('1px'), grey$g, /*#__PURE__*/polished.rem('100px'), /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('40px'));
|
|
2738
2774
|
const TableRow = /*#__PURE__*/_styled__default.tr.withConfig({
|
|
2739
2775
|
displayName: "styles__TableRow",
|
|
2740
2776
|
componentId: "sc-1p618q0-1"
|
|
2741
2777
|
})(["&[data-rbd-draggable-id='", "']{position:absolute;display:table;width:100%;}"], props => props.draggableId);
|
|
2742
2778
|
|
|
2743
2779
|
const {
|
|
2744
|
-
light: light$
|
|
2780
|
+
light: light$d
|
|
2745
2781
|
} = colors;
|
|
2746
2782
|
|
|
2747
2783
|
const TableDnD = props => {
|
|
@@ -2796,12 +2832,12 @@ const TableDnD = props => {
|
|
|
2796
2832
|
|
|
2797
2833
|
const getItemStyle = (isDragging, draggableStyle) => ({
|
|
2798
2834
|
userSelect: 'none',
|
|
2799
|
-
background: isDragging ? light$
|
|
2835
|
+
background: isDragging ? light$d : 'transparent',
|
|
2800
2836
|
...draggableStyle
|
|
2801
2837
|
});
|
|
2802
2838
|
|
|
2803
2839
|
const getListStyle = isDraggingOver => ({
|
|
2804
|
-
background: isDraggingOver ? light$
|
|
2840
|
+
background: isDraggingOver ? light$d : 'transparent'
|
|
2805
2841
|
});
|
|
2806
2842
|
|
|
2807
2843
|
return (
|
|
@@ -2900,14 +2936,14 @@ const TableDnD = props => {
|
|
|
2900
2936
|
};
|
|
2901
2937
|
|
|
2902
2938
|
const {
|
|
2903
|
-
normal: normal$
|
|
2904
|
-
grey: grey$
|
|
2905
|
-
red: red$
|
|
2939
|
+
normal: normal$9,
|
|
2940
|
+
grey: grey$h,
|
|
2941
|
+
red: red$9
|
|
2906
2942
|
} = colors;
|
|
2907
2943
|
const Wrapper$8 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2908
2944
|
displayName: "styles__Wrapper",
|
|
2909
2945
|
componentId: "mbja2a-0"
|
|
2910
|
-
})(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/polished.rem('5px'), props => props.error ? red$
|
|
2946
|
+
})(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/polished.rem('5px'), props => props.error ? red$9 : grey$h, props => props.error ? red$9 : normal$9, /*#__PURE__*/polished.rem('15px'));
|
|
2911
2947
|
|
|
2912
2948
|
const FormGroup = props => {
|
|
2913
2949
|
const {
|
|
@@ -2925,14 +2961,14 @@ const FormGroup = props => {
|
|
|
2925
2961
|
};
|
|
2926
2962
|
|
|
2927
2963
|
const {
|
|
2928
|
-
grey: grey$
|
|
2929
|
-
lightGrey: lightGrey$
|
|
2964
|
+
grey: grey$i,
|
|
2965
|
+
lightGrey: lightGrey$f,
|
|
2930
2966
|
lightRed: lightRed$2
|
|
2931
2967
|
} = colors;
|
|
2932
2968
|
const Wrapper$9 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2933
2969
|
displayName: "styles__Wrapper",
|
|
2934
2970
|
componentId: "sc-124afcu-0"
|
|
2935
|
-
})(["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__*/polished.rem('1px'), grey$
|
|
2971
|
+
})(["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__*/polished.rem('1px'), grey$i, /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('50px'), lightGrey$f);
|
|
2936
2972
|
const Input = /*#__PURE__*/_styled__default.input.withConfig({
|
|
2937
2973
|
displayName: "styles__Input",
|
|
2938
2974
|
componentId: "sc-124afcu-1"
|
|
@@ -2940,7 +2976,7 @@ const Input = /*#__PURE__*/_styled__default.input.withConfig({
|
|
|
2940
2976
|
const Button$1 = /*#__PURE__*/_styled__default.button.withConfig({
|
|
2941
2977
|
displayName: "styles__Button",
|
|
2942
2978
|
componentId: "sc-124afcu-2"
|
|
2943
|
-
})(["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__*/polished.rem('50px'), /*#__PURE__*/polished.rem('50px'), lightGrey$
|
|
2979
|
+
})(["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__*/polished.rem('50px'), /*#__PURE__*/polished.rem('50px'), lightGrey$f, /*#__PURE__*/polished.rem('1px'), grey$i, /*#__PURE__*/polished.rem('1px'), grey$i, /*#__PURE__*/polished.rem('20px'), grey$i, lightGrey$f);
|
|
2944
2980
|
|
|
2945
2981
|
const NumberInputSpinner = props => {
|
|
2946
2982
|
const {
|
|
@@ -3006,10 +3042,10 @@ const NumberInputSpinner = props => {
|
|
|
3006
3042
|
};
|
|
3007
3043
|
|
|
3008
3044
|
const {
|
|
3009
|
-
green: green$
|
|
3010
|
-
grey: grey$
|
|
3011
|
-
lightGrey: lightGrey$
|
|
3012
|
-
light: light$
|
|
3045
|
+
green: green$7,
|
|
3046
|
+
grey: grey$j,
|
|
3047
|
+
lightGrey: lightGrey$g,
|
|
3048
|
+
light: light$e
|
|
3013
3049
|
} = colors;
|
|
3014
3050
|
const Steps = /*#__PURE__*/_styled__default.ul.withConfig({
|
|
3015
3051
|
displayName: "styles__Steps",
|
|
@@ -3018,7 +3054,7 @@ const Steps = /*#__PURE__*/_styled__default.ul.withConfig({
|
|
|
3018
3054
|
const Step = /*#__PURE__*/_styled__default.li.withConfig({
|
|
3019
3055
|
displayName: "styles__Step",
|
|
3020
3056
|
componentId: "sc-1s2dhfy-1"
|
|
3021
|
-
})(["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__*/polished.rem('44px'), /*#__PURE__*/polished.rem('18px'), props => props.active ? green$
|
|
3057
|
+
})(["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__*/polished.rem('44px'), /*#__PURE__*/polished.rem('18px'), props => props.active ? green$7 : lightGrey$g, /*#__PURE__*/polished.rem('22px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('-15px'), /*#__PURE__*/polished.rem('18px'), props => props.active ? green$7 : lightGrey$g, /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('6px'), props => props.active ? green$7 : lightGrey$g, props => props.active ? light$e : grey$j, device.s);
|
|
3022
3058
|
|
|
3023
3059
|
const WizardSteps = props => {
|
|
3024
3060
|
const {
|
|
@@ -3039,13 +3075,13 @@ const WizardSteps = props => {
|
|
|
3039
3075
|
};
|
|
3040
3076
|
|
|
3041
3077
|
const {
|
|
3042
|
-
light: light$
|
|
3043
|
-
green: green$
|
|
3044
|
-
darkGreen: darkGreen$
|
|
3045
|
-
red: red$
|
|
3046
|
-
darkRed: darkRed$
|
|
3047
|
-
orange
|
|
3048
|
-
darkOrange
|
|
3078
|
+
light: light$f,
|
|
3079
|
+
green: green$8,
|
|
3080
|
+
darkGreen: darkGreen$4,
|
|
3081
|
+
red: red$a,
|
|
3082
|
+
darkRed: darkRed$2,
|
|
3083
|
+
orange,
|
|
3084
|
+
darkOrange
|
|
3049
3085
|
} = colors;
|
|
3050
3086
|
const Wrapper$a = _styled__default.div`
|
|
3051
3087
|
--shadow: 0 0 ${/*#__PURE__*/polished.rem('25px')} 0 rgba(40, 40, 40, 0.2);
|
|
@@ -3053,14 +3089,14 @@ const Wrapper$a = _styled__default.div`
|
|
|
3053
3089
|
position: fixed;
|
|
3054
3090
|
top: ${/*#__PURE__*/polished.rem('15px')};
|
|
3055
3091
|
right: 0;
|
|
3056
|
-
border: ${/*#__PURE__*/polished.rem('2px')} solid ${darkGreen$
|
|
3092
|
+
border: ${/*#__PURE__*/polished.rem('2px')} solid ${darkGreen$4};
|
|
3057
3093
|
border-radius: ${/*#__PURE__*/polished.rem('6px')};
|
|
3058
|
-
background-color: ${green$
|
|
3094
|
+
background-color: ${green$8};
|
|
3059
3095
|
width: ${/*#__PURE__*/polished.rem('300px')};
|
|
3060
3096
|
max-height: min-content;
|
|
3061
3097
|
display: flex;
|
|
3062
3098
|
padding: ${/*#__PURE__*/polished.rem('15px')};
|
|
3063
|
-
color: ${light$
|
|
3099
|
+
color: ${light$f};
|
|
3064
3100
|
-moz-box-shadow: var(--shadow);
|
|
3065
3101
|
-webkit-box-shadow: var(--shadow);
|
|
3066
3102
|
box-shadow: var(--shadow);
|
|
@@ -3071,7 +3107,7 @@ const Wrapper$a = _styled__default.div`
|
|
|
3071
3107
|
background-color: transparent;
|
|
3072
3108
|
|
|
3073
3109
|
svg {
|
|
3074
|
-
fill: ${darkGreen$
|
|
3110
|
+
fill: ${darkGreen$4};
|
|
3075
3111
|
}
|
|
3076
3112
|
}
|
|
3077
3113
|
|
|
@@ -3093,23 +3129,23 @@ const Wrapper$a = _styled__default.div`
|
|
|
3093
3129
|
}
|
|
3094
3130
|
|
|
3095
3131
|
${props => props.variant === 'orange' && _styled.css`
|
|
3096
|
-
border: ${polished.rem('2px')} solid ${darkOrange
|
|
3097
|
-
background-color: ${orange
|
|
3132
|
+
border: ${polished.rem('2px')} solid ${darkOrange};
|
|
3133
|
+
background-color: ${orange};
|
|
3098
3134
|
|
|
3099
3135
|
button {
|
|
3100
3136
|
svg {
|
|
3101
|
-
fill: ${darkOrange
|
|
3137
|
+
fill: ${darkOrange};
|
|
3102
3138
|
}
|
|
3103
3139
|
}
|
|
3104
3140
|
`}
|
|
3105
3141
|
|
|
3106
3142
|
${props => props.variant === 'red' && _styled.css`
|
|
3107
|
-
border: ${polished.rem('2px')} solid ${darkRed$
|
|
3108
|
-
background-color: ${red$
|
|
3143
|
+
border: ${polished.rem('2px')} solid ${darkRed$2};
|
|
3144
|
+
background-color: ${red$a};
|
|
3109
3145
|
|
|
3110
3146
|
button {
|
|
3111
3147
|
svg {
|
|
3112
|
-
fill: ${darkRed$
|
|
3148
|
+
fill: ${darkRed$2};
|
|
3113
3149
|
}
|
|
3114
3150
|
}
|
|
3115
3151
|
`}
|
|
@@ -3149,14 +3185,14 @@ const AlertNotification = props => {
|
|
|
3149
3185
|
};
|
|
3150
3186
|
|
|
3151
3187
|
const {
|
|
3152
|
-
normal: normal$
|
|
3153
|
-
light: light$
|
|
3154
|
-
blue
|
|
3155
|
-
lightGrey: lightGrey$
|
|
3188
|
+
normal: normal$a,
|
|
3189
|
+
light: light$g,
|
|
3190
|
+
blue,
|
|
3191
|
+
lightGrey: lightGrey$h
|
|
3156
3192
|
} = colors;
|
|
3157
3193
|
const {
|
|
3158
|
-
bold: bold$
|
|
3159
|
-
} =
|
|
3194
|
+
bold: bold$5
|
|
3195
|
+
} = typography;
|
|
3160
3196
|
const PaginationWrapper = _styled__default.div`
|
|
3161
3197
|
--size: ${/*#__PURE__*/polished.rem('30px')};
|
|
3162
3198
|
|
|
@@ -3197,18 +3233,18 @@ const PaginationWrapper = _styled__default.div`
|
|
|
3197
3233
|
display: flex;
|
|
3198
3234
|
justify-content: center;
|
|
3199
3235
|
align-items: center;
|
|
3200
|
-
color: ${normal$
|
|
3201
|
-
font-weight: ${bold$
|
|
3236
|
+
color: ${normal$a};
|
|
3237
|
+
font-weight: ${bold$5};
|
|
3202
3238
|
text-decoration: none;
|
|
3203
3239
|
|
|
3204
3240
|
&:hover {
|
|
3205
|
-
color: ${blue
|
|
3241
|
+
color: ${blue};
|
|
3206
3242
|
}
|
|
3207
3243
|
|
|
3208
3244
|
svg {
|
|
3209
3245
|
width: ${/*#__PURE__*/polished.rem('18px')};
|
|
3210
3246
|
height: auto;
|
|
3211
|
-
fill: ${blue
|
|
3247
|
+
fill: ${blue};
|
|
3212
3248
|
}
|
|
3213
3249
|
}
|
|
3214
3250
|
|
|
@@ -3216,18 +3252,18 @@ const PaginationWrapper = _styled__default.div`
|
|
|
3216
3252
|
pointer-events: none;
|
|
3217
3253
|
|
|
3218
3254
|
a {
|
|
3219
|
-
background-color: ${blue
|
|
3220
|
-
color: ${light$
|
|
3255
|
+
background-color: ${blue};
|
|
3256
|
+
color: ${light$g};
|
|
3221
3257
|
}
|
|
3222
3258
|
}
|
|
3223
3259
|
}
|
|
3224
3260
|
|
|
3225
3261
|
&.dark {
|
|
3226
3262
|
a {
|
|
3227
|
-
color: ${lightGrey$
|
|
3263
|
+
color: ${lightGrey$h};
|
|
3228
3264
|
|
|
3229
3265
|
&:hover {
|
|
3230
|
-
color: ${light$
|
|
3266
|
+
color: ${light$g};
|
|
3231
3267
|
}
|
|
3232
3268
|
}
|
|
3233
3269
|
}
|
|
@@ -3286,12 +3322,12 @@ const PaginationControl = props => {
|
|
|
3286
3322
|
};
|
|
3287
3323
|
|
|
3288
3324
|
const {
|
|
3289
|
-
normal: normal$
|
|
3290
|
-
green: green$
|
|
3325
|
+
normal: normal$b,
|
|
3326
|
+
green: green$9
|
|
3291
3327
|
} = colors;
|
|
3292
3328
|
const {
|
|
3293
|
-
bold: bold$
|
|
3294
|
-
} =
|
|
3329
|
+
bold: bold$6
|
|
3330
|
+
} = typography;
|
|
3295
3331
|
const Wrapper$b = _styled__default.div`
|
|
3296
3332
|
min-height: ${props => props.variant === 'default' ? '50vh' : 'inherit'};
|
|
3297
3333
|
display: flex;
|
|
@@ -3308,15 +3344,15 @@ const Wrapper$b = _styled__default.div`
|
|
|
3308
3344
|
|
|
3309
3345
|
> span {
|
|
3310
3346
|
margin-top: ${/*#__PURE__*/polished.rem('15px')};
|
|
3311
|
-
font-weight: ${bold$
|
|
3312
|
-
color: ${normal$
|
|
3347
|
+
font-weight: ${bold$6};
|
|
3348
|
+
color: ${normal$b};
|
|
3313
3349
|
|
|
3314
3350
|
a {
|
|
3315
|
-
color: ${normal$
|
|
3351
|
+
color: ${normal$b};
|
|
3316
3352
|
transition-duration: 0.3s;
|
|
3317
3353
|
|
|
3318
3354
|
&:hover {
|
|
3319
|
-
color: ${green$
|
|
3355
|
+
color: ${green$9};
|
|
3320
3356
|
}
|
|
3321
3357
|
}
|
|
3322
3358
|
}
|
|
@@ -3336,12 +3372,12 @@ const Error = props => {
|
|
|
3336
3372
|
};
|
|
3337
3373
|
|
|
3338
3374
|
const {
|
|
3339
|
-
normal: normal$
|
|
3340
|
-
green: green$
|
|
3375
|
+
normal: normal$c,
|
|
3376
|
+
green: green$a
|
|
3341
3377
|
} = colors;
|
|
3342
3378
|
const {
|
|
3343
|
-
bold: bold$
|
|
3344
|
-
} =
|
|
3379
|
+
bold: bold$7
|
|
3380
|
+
} = typography;
|
|
3345
3381
|
const Wrapper$c = _styled__default.div`
|
|
3346
3382
|
min-height: 50vh;
|
|
3347
3383
|
display: flex;
|
|
@@ -3358,15 +3394,15 @@ const Wrapper$c = _styled__default.div`
|
|
|
3358
3394
|
|
|
3359
3395
|
> div {
|
|
3360
3396
|
margin-top: ${/*#__PURE__*/polished.rem('15px')};
|
|
3361
|
-
font-weight: ${bold$
|
|
3362
|
-
color: ${normal$
|
|
3397
|
+
font-weight: ${bold$7};
|
|
3398
|
+
color: ${normal$c};
|
|
3363
3399
|
|
|
3364
3400
|
a {
|
|
3365
|
-
color: ${normal$
|
|
3401
|
+
color: ${normal$c};
|
|
3366
3402
|
transition-duration: 0.3s;
|
|
3367
3403
|
|
|
3368
3404
|
&:hover {
|
|
3369
|
-
color: ${green$
|
|
3405
|
+
color: ${green$a};
|
|
3370
3406
|
}
|
|
3371
3407
|
}
|
|
3372
3408
|
}
|
|
@@ -5334,12 +5370,12 @@ const DataWarning = props => {
|
|
|
5334
5370
|
};
|
|
5335
5371
|
|
|
5336
5372
|
const {
|
|
5337
|
-
normal: normal$
|
|
5338
|
-
green: green$
|
|
5339
|
-
darkGreen: darkGreen$
|
|
5340
|
-
grey: grey$
|
|
5341
|
-
lightGrey: lightGrey$
|
|
5342
|
-
red: red$
|
|
5373
|
+
normal: normal$d,
|
|
5374
|
+
green: green$b,
|
|
5375
|
+
darkGreen: darkGreen$5,
|
|
5376
|
+
grey: grey$k,
|
|
5377
|
+
lightGrey: lightGrey$i,
|
|
5378
|
+
red: red$b
|
|
5343
5379
|
} = colors;
|
|
5344
5380
|
const Wrapper$d = _styled__default.ul`
|
|
5345
5381
|
display: flex;
|
|
@@ -5362,11 +5398,11 @@ const Wrapper$d = _styled__default.ul`
|
|
|
5362
5398
|
}
|
|
5363
5399
|
|
|
5364
5400
|
input[type='radio']:checked ~ .check {
|
|
5365
|
-
border-color: ${darkGreen$
|
|
5401
|
+
border-color: ${darkGreen$5};
|
|
5366
5402
|
}
|
|
5367
5403
|
|
|
5368
5404
|
input[type='radio']:checked ~ .check::before {
|
|
5369
|
-
background-color: ${green$
|
|
5405
|
+
background-color: ${green$b};
|
|
5370
5406
|
}
|
|
5371
5407
|
|
|
5372
5408
|
& + span {
|
|
@@ -5389,7 +5425,7 @@ const Item = _styled__default.li`
|
|
|
5389
5425
|
padding-left: calc(var(--size) + 5px);
|
|
5390
5426
|
line-height: var(--size);
|
|
5391
5427
|
vertical-align: middle;
|
|
5392
|
-
color: ${props => props.error ? red$
|
|
5428
|
+
color: ${props => props.error ? red$b : null};
|
|
5393
5429
|
cursor: pointer;
|
|
5394
5430
|
z-index: 1;
|
|
5395
5431
|
}
|
|
@@ -5397,7 +5433,7 @@ const Item = _styled__default.li`
|
|
|
5397
5433
|
.check {
|
|
5398
5434
|
position: absolute;
|
|
5399
5435
|
top: 0;
|
|
5400
|
-
border: ${/*#__PURE__*/polished.rem('2px')} solid ${props => props.error ? red$
|
|
5436
|
+
border: ${/*#__PURE__*/polished.rem('2px')} solid ${props => props.error ? red$b : grey$k};
|
|
5401
5437
|
border-radius: 100%;
|
|
5402
5438
|
width: var(--size);
|
|
5403
5439
|
height: var(--size);
|
|
@@ -5416,21 +5452,21 @@ const Item = _styled__default.li`
|
|
|
5416
5452
|
}
|
|
5417
5453
|
|
|
5418
5454
|
&:hover .check {
|
|
5419
|
-
border-color: ${normal$
|
|
5455
|
+
border-color: ${normal$d};
|
|
5420
5456
|
}
|
|
5421
5457
|
|
|
5422
5458
|
${props => props.disabled && _styled.css`
|
|
5423
5459
|
label {
|
|
5424
|
-
color: ${grey$
|
|
5460
|
+
color: ${grey$k};
|
|
5425
5461
|
}
|
|
5426
5462
|
|
|
5427
5463
|
input[type='radio'] ~ .check,
|
|
5428
5464
|
input[type='radio']:checked ~ .check {
|
|
5429
|
-
border-color: ${lightGrey$
|
|
5465
|
+
border-color: ${lightGrey$i};
|
|
5430
5466
|
}
|
|
5431
5467
|
|
|
5432
5468
|
input[type='radio']:checked ~ .check::before {
|
|
5433
|
-
background-color: ${lightGrey$
|
|
5469
|
+
background-color: ${lightGrey$i};
|
|
5434
5470
|
}
|
|
5435
5471
|
|
|
5436
5472
|
&:hover {
|
|
@@ -5536,10 +5572,10 @@ const Wrapper$f = _styled__default.div`
|
|
|
5536
5572
|
}
|
|
5537
5573
|
`;
|
|
5538
5574
|
const {
|
|
5539
|
-
grey: grey$
|
|
5540
|
-
darkGrey: darkGrey$
|
|
5541
|
-
light: light$
|
|
5542
|
-
|
|
5575
|
+
grey: grey$l,
|
|
5576
|
+
darkGrey: darkGrey$2,
|
|
5577
|
+
light: light$h,
|
|
5578
|
+
purple500: purple500$4
|
|
5543
5579
|
} = colors;
|
|
5544
5580
|
const Field = _styled__default.div`
|
|
5545
5581
|
display: flex;
|
|
@@ -5553,7 +5589,7 @@ const Field = _styled__default.div`
|
|
|
5553
5589
|
outline: none;
|
|
5554
5590
|
|
|
5555
5591
|
+ button {
|
|
5556
|
-
background-color: ${
|
|
5592
|
+
background-color: ${purple500$4};
|
|
5557
5593
|
}
|
|
5558
5594
|
}
|
|
5559
5595
|
}
|
|
@@ -5566,7 +5602,7 @@ const Field = _styled__default.div`
|
|
|
5566
5602
|
button {
|
|
5567
5603
|
border: 0;
|
|
5568
5604
|
border-radius: 0 ${/*#__PURE__*/polished.rem('6px')} ${/*#__PURE__*/polished.rem('6px')} 0;
|
|
5569
|
-
background-color: ${grey$
|
|
5605
|
+
background-color: ${grey$l};
|
|
5570
5606
|
min-width: ${/*#__PURE__*/polished.rem('50px')};
|
|
5571
5607
|
height: ${/*#__PURE__*/polished.rem('50px')};
|
|
5572
5608
|
display: flex;
|
|
@@ -5582,12 +5618,12 @@ const Field = _styled__default.div`
|
|
|
5582
5618
|
width: auto;
|
|
5583
5619
|
min-width: ${/*#__PURE__*/polished.rem('20px')};
|
|
5584
5620
|
height: ${/*#__PURE__*/polished.rem('20px')};
|
|
5585
|
-
fill: ${light$
|
|
5621
|
+
fill: ${light$h};
|
|
5586
5622
|
transition: 0.3s;
|
|
5587
5623
|
}
|
|
5588
5624
|
|
|
5589
5625
|
&:hover {
|
|
5590
|
-
background-color: ${darkGrey$
|
|
5626
|
+
background-color: ${darkGrey$2};
|
|
5591
5627
|
}
|
|
5592
5628
|
|
|
5593
5629
|
&:disabled {
|
|
@@ -5595,7 +5631,7 @@ const Field = _styled__default.div`
|
|
|
5595
5631
|
opacity: 0.5;
|
|
5596
5632
|
|
|
5597
5633
|
&:hover {
|
|
5598
|
-
background-color: ${grey$
|
|
5634
|
+
background-color: ${grey$l};
|
|
5599
5635
|
pointer-events: none;
|
|
5600
5636
|
}
|
|
5601
5637
|
}
|
|
@@ -5641,23 +5677,23 @@ const FieldWidthButton = props => {
|
|
|
5641
5677
|
};
|
|
5642
5678
|
|
|
5643
5679
|
const {
|
|
5644
|
-
normal: normal$
|
|
5645
|
-
|
|
5646
|
-
grey: grey$
|
|
5647
|
-
lightGrey: lightGrey$
|
|
5648
|
-
light: light$
|
|
5680
|
+
normal: normal$e,
|
|
5681
|
+
purple500: purple500$5,
|
|
5682
|
+
grey: grey$m,
|
|
5683
|
+
lightGrey: lightGrey$j,
|
|
5684
|
+
light: light$i
|
|
5649
5685
|
} = colors;
|
|
5650
5686
|
const {
|
|
5651
|
-
bold: bold$
|
|
5652
|
-
} =
|
|
5687
|
+
bold: bold$8
|
|
5688
|
+
} = typography;
|
|
5653
5689
|
const Wrapper$g = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5654
5690
|
displayName: "styles__Wrapper",
|
|
5655
5691
|
componentId: "znznmm-0"
|
|
5656
|
-
})(["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__*/polished.rem('10px'), /*#__PURE__*/polished.rem('10px'), normal$
|
|
5692
|
+
})(["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__*/polished.rem('10px'), /*#__PURE__*/polished.rem('10px'), normal$e, /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('24px'), /*#__PURE__*/polished.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);
|
|
5657
5693
|
const More = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5658
5694
|
displayName: "styles__More",
|
|
5659
5695
|
componentId: "znznmm-1"
|
|
5660
|
-
})(["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__*/polished.rem('1px'), lightGrey$
|
|
5696
|
+
})(["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__*/polished.rem('1px'), lightGrey$j, /*#__PURE__*/polished.rem('4px'), light$i, /*#__PURE__*/polished.rem('5px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('15px'), lightGrey$j, normal$e, normal$e, /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('4px'), /*#__PURE__*/polished.rem('15px'));
|
|
5661
5697
|
|
|
5662
5698
|
const HorizontalNav = props => {
|
|
5663
5699
|
const [showMore, setShowMore] = React.useState(false);
|
|
@@ -5734,11 +5770,11 @@ const HorizontalNav = props => {
|
|
|
5734
5770
|
};
|
|
5735
5771
|
|
|
5736
5772
|
const {
|
|
5737
|
-
light: light$
|
|
5773
|
+
light: light$j
|
|
5738
5774
|
} = colors;
|
|
5739
5775
|
const {
|
|
5740
|
-
bold: bold$
|
|
5741
|
-
} =
|
|
5776
|
+
bold: bold$9
|
|
5777
|
+
} = typography;
|
|
5742
5778
|
const ModalOverlay = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5743
5779
|
displayName: "styles__ModalOverlay",
|
|
5744
5780
|
componentId: "sc-16r6vcc-0"
|
|
@@ -5750,11 +5786,11 @@ const ModalWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
5750
5786
|
const ModalContainer = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5751
5787
|
displayName: "styles__ModalContainer",
|
|
5752
5788
|
componentId: "sc-16r6vcc-2"
|
|
5753
|
-
})(["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$
|
|
5789
|
+
})(["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__*/polished.rem('15px'), device.s, /*#__PURE__*/polished.rem('30px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('860px'), /*#__PURE__*/polished.rem('1px'));
|
|
5754
5790
|
const ModalHeader = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5755
5791
|
displayName: "styles__ModalHeader",
|
|
5756
5792
|
componentId: "sc-16r6vcc-3"
|
|
5757
|
-
})(["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__*/polished.rem('30px'), bold$
|
|
5793
|
+
})(["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__*/polished.rem('30px'), bold$9, /*#__PURE__*/polished.rem('-18px'), /*#__PURE__*/polished.rem('-18px'), light$j, light$j, device.s);
|
|
5758
5794
|
|
|
5759
5795
|
const Modal = props => {
|
|
5760
5796
|
const {
|
|
@@ -5805,18 +5841,18 @@ const Modal = props => {
|
|
|
5805
5841
|
};
|
|
5806
5842
|
|
|
5807
5843
|
const {
|
|
5808
|
-
light: light$
|
|
5844
|
+
light: light$k
|
|
5809
5845
|
} = colors;
|
|
5810
5846
|
const {
|
|
5811
|
-
bold: bold$
|
|
5812
|
-
} =
|
|
5847
|
+
bold: bold$a
|
|
5848
|
+
} = typography;
|
|
5813
5849
|
const slideInLeft = _styled.keyframes`
|
|
5814
5850
|
from {
|
|
5815
|
-
transform:
|
|
5851
|
+
transform: translateX(100%);
|
|
5816
5852
|
}
|
|
5817
5853
|
|
|
5818
5854
|
to {
|
|
5819
|
-
transform:
|
|
5855
|
+
transform: translateX(0);
|
|
5820
5856
|
}
|
|
5821
5857
|
`;
|
|
5822
5858
|
const ModalOverlay$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
@@ -5830,11 +5866,11 @@ const ModalWrapper$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
5830
5866
|
const ModalContainer$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5831
5867
|
displayName: "styles__ModalContainer",
|
|
5832
5868
|
componentId: "sc-46huls-2"
|
|
5833
|
-
})(["position:
|
|
5869
|
+
})(["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__*/polished.rem('15px'), /*#__PURE__*/polished.timingFunctions('easeOutQuint'), slideInLeft, device.s, /*#__PURE__*/polished.rem('400px'), /*#__PURE__*/polished.rem('30px'));
|
|
5834
5870
|
const ModalHeader$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5835
5871
|
displayName: "styles__ModalHeader",
|
|
5836
5872
|
componentId: "sc-46huls-3"
|
|
5837
|
-
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/polished.rem('30px'), bold$
|
|
5873
|
+
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/polished.rem('30px'), bold$a);
|
|
5838
5874
|
const ModalContent = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5839
5875
|
displayName: "styles__ModalContent",
|
|
5840
5876
|
componentId: "sc-46huls-4"
|
|
@@ -5851,6 +5887,23 @@ const ModalDrawer = props => {
|
|
|
5851
5887
|
footerHidden = false,
|
|
5852
5888
|
zIndex = 10
|
|
5853
5889
|
} = props;
|
|
5890
|
+
React.useEffect(() => {
|
|
5891
|
+
const fixViewport = () => {
|
|
5892
|
+
let vh = window.innerHeight * 0.01;
|
|
5893
|
+
document.documentElement.style.setProperty('--vh', `${vh}px`);
|
|
5894
|
+
};
|
|
5895
|
+
|
|
5896
|
+
fixViewport();
|
|
5897
|
+
|
|
5898
|
+
if (typeof window !== 'undefined') {
|
|
5899
|
+
let vh = window.innerHeight * 0.01;
|
|
5900
|
+
document.documentElement.style.setProperty('--vh', `${vh}px`);
|
|
5901
|
+
window.addEventListener('resize', fixViewport);
|
|
5902
|
+
return () => window.removeEventListener('resize', fixViewport);
|
|
5903
|
+
}
|
|
5904
|
+
|
|
5905
|
+
return;
|
|
5906
|
+
}, []);
|
|
5854
5907
|
return isShowing ? /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ModalOverlay$1, {
|
|
5855
5908
|
zIndex: zIndex
|
|
5856
5909
|
}), /*#__PURE__*/React__default.createElement(ModalWrapper$1, {
|
|
@@ -5868,7 +5921,7 @@ const ModalDrawer = props => {
|
|
|
5868
5921
|
};
|
|
5869
5922
|
|
|
5870
5923
|
const {
|
|
5871
|
-
lightGrey: lightGrey$
|
|
5924
|
+
lightGrey: lightGrey$k
|
|
5872
5925
|
} = colors;
|
|
5873
5926
|
const Wrapper$h = _styled__default.div`
|
|
5874
5927
|
div {
|
|
@@ -5931,7 +5984,7 @@ const Wrapper$h = _styled__default.div`
|
|
|
5931
5984
|
|
|
5932
5985
|
.card {
|
|
5933
5986
|
position: relative;
|
|
5934
|
-
border: ${/*#__PURE__*/polished.rem('2px')} solid ${lightGrey$
|
|
5987
|
+
border: ${/*#__PURE__*/polished.rem('2px')} solid ${lightGrey$k};
|
|
5935
5988
|
border-radius: ${/*#__PURE__*/polished.rem('6px')};
|
|
5936
5989
|
width: ${/*#__PURE__*/polished.rem('300px')};
|
|
5937
5990
|
overflow: hidden;
|
|
@@ -5946,7 +5999,7 @@ const Wrapper$h = _styled__default.div`
|
|
|
5946
5999
|
margin: ${/*#__PURE__*/polished.rem('-45px')} 0 0 ${/*#__PURE__*/polished.rem('20px')};
|
|
5947
6000
|
width: ${/*#__PURE__*/polished.rem('90px')};
|
|
5948
6001
|
height: ${/*#__PURE__*/polished.rem('90px')};
|
|
5949
|
-
border: ${/*#__PURE__*/polished.rem('1px')} solid ${lightGrey$
|
|
6002
|
+
border: ${/*#__PURE__*/polished.rem('1px')} solid ${lightGrey$k};
|
|
5950
6003
|
border-radius: 999px;
|
|
5951
6004
|
}
|
|
5952
6005
|
|
|
@@ -6091,26 +6144,26 @@ const LoadingState = props => {
|
|
|
6091
6144
|
};
|
|
6092
6145
|
|
|
6093
6146
|
const {
|
|
6094
|
-
normal: normal$
|
|
6095
|
-
grey: grey$
|
|
6096
|
-
lightGrey: lightGrey$
|
|
6097
|
-
light: light$
|
|
6147
|
+
normal: normal$f,
|
|
6148
|
+
grey: grey$n,
|
|
6149
|
+
lightGrey: lightGrey$l,
|
|
6150
|
+
light: light$l
|
|
6098
6151
|
} = colors;
|
|
6099
6152
|
const Wrapper$i = _styled__default.div`
|
|
6100
6153
|
.tab {
|
|
6101
|
-
border-color: ${lightGrey$
|
|
6154
|
+
border-color: ${lightGrey$l};
|
|
6102
6155
|
|
|
6103
6156
|
&[aria-selected='true'] {
|
|
6104
6157
|
border-bottom: 0;
|
|
6105
6158
|
}
|
|
6106
6159
|
|
|
6107
6160
|
&[aria-selected='false'] {
|
|
6108
|
-
background-color: ${lightGrey$
|
|
6109
|
-
color: ${grey$
|
|
6161
|
+
background-color: ${lightGrey$l};
|
|
6162
|
+
color: ${grey$n};
|
|
6110
6163
|
transition-duration: 0.3s;
|
|
6111
6164
|
|
|
6112
6165
|
&:hover {
|
|
6113
|
-
color: ${normal$
|
|
6166
|
+
color: ${normal$f};
|
|
6114
6167
|
}
|
|
6115
6168
|
}
|
|
6116
6169
|
|
|
@@ -6125,8 +6178,8 @@ const Wrapper$i = _styled__default.div`
|
|
|
6125
6178
|
|
|
6126
6179
|
.panel {
|
|
6127
6180
|
border-radius: 0 ${/*#__PURE__*/polished.rem('6px')} ${/*#__PURE__*/polished.rem('6px')} ${/*#__PURE__*/polished.rem('6px')};
|
|
6128
|
-
border-color: ${lightGrey$
|
|
6129
|
-
background-color: ${light$
|
|
6181
|
+
border-color: ${lightGrey$l};
|
|
6182
|
+
background-color: ${light$l};
|
|
6130
6183
|
padding: ${/*#__PURE__*/polished.rem('30px')};
|
|
6131
6184
|
}
|
|
6132
6185
|
|
|
@@ -6146,7 +6199,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6146
6199
|
.RRT__tab {
|
|
6147
6200
|
background: #eee;
|
|
6148
6201
|
border-style: solid;
|
|
6149
|
-
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6202
|
+
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6150
6203
|
border-width: ${/*#__PURE__*/polished.rem('1px')} ${/*#__PURE__*/polished.rem('1px')} ${/*#__PURE__*/polished.rem('1px')} 0;
|
|
6151
6204
|
cursor: pointer;
|
|
6152
6205
|
z-index: 1;
|
|
@@ -6156,7 +6209,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6156
6209
|
|
|
6157
6210
|
.RRT__tab:focus {
|
|
6158
6211
|
outline: 0;
|
|
6159
|
-
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6212
|
+
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6160
6213
|
}
|
|
6161
6214
|
|
|
6162
6215
|
.RRT__accordion .RRT__tab {
|
|
@@ -6168,12 +6221,12 @@ const Wrapper$i = _styled__default.div`
|
|
|
6168
6221
|
}
|
|
6169
6222
|
|
|
6170
6223
|
.RRT__tab--selected {
|
|
6171
|
-
background: ${light$
|
|
6172
|
-
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6224
|
+
background: ${light$l};
|
|
6225
|
+
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)} ${/*#__PURE__*/polished.lighten(0.25, grey$n)} ${light$l};
|
|
6173
6226
|
}
|
|
6174
6227
|
|
|
6175
6228
|
.RRT__tab--selected:focus {
|
|
6176
|
-
background-color: ${light$
|
|
6229
|
+
background-color: ${light$l};
|
|
6177
6230
|
}
|
|
6178
6231
|
|
|
6179
6232
|
.RRT__tab--disabled {
|
|
@@ -6203,7 +6256,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6203
6256
|
.RRT__panel {
|
|
6204
6257
|
margin-top: ${/*#__PURE__*/polished.rem('-1px')};
|
|
6205
6258
|
padding: 1em;
|
|
6206
|
-
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6259
|
+
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6207
6260
|
}
|
|
6208
6261
|
|
|
6209
6262
|
.RRT__panel--hidden {
|
|
@@ -6215,8 +6268,8 @@ const Wrapper$i = _styled__default.div`
|
|
|
6215
6268
|
}
|
|
6216
6269
|
|
|
6217
6270
|
.RRT__showmore {
|
|
6218
|
-
background: ${lightGrey$
|
|
6219
|
-
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6271
|
+
background: ${lightGrey$l};
|
|
6272
|
+
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6220
6273
|
border-radius: 0 ${/*#__PURE__*/polished.rem('6px')} 0 0;
|
|
6221
6274
|
cursor: pointer;
|
|
6222
6275
|
z-index: 1;
|
|
@@ -6226,7 +6279,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6226
6279
|
}
|
|
6227
6280
|
|
|
6228
6281
|
.RRT__showmore--selected {
|
|
6229
|
-
background: ${light$
|
|
6282
|
+
background: ${light$l};
|
|
6230
6283
|
border-bottom: none;
|
|
6231
6284
|
}
|
|
6232
6285
|
|
|
@@ -6237,7 +6290,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6237
6290
|
}
|
|
6238
6291
|
|
|
6239
6292
|
.RRT__showmore-label--selected {
|
|
6240
|
-
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6293
|
+
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6241
6294
|
}
|
|
6242
6295
|
|
|
6243
6296
|
.RRT__showmore-list {
|