@taikai/rocket-kit 2.0.2 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/button/index.d.ts +10 -9
- package/dist/atoms/button/stories/button.stories.d.ts +16 -9
- package/dist/atoms/button/styles.d.ts +2 -2
- package/dist/atoms/button/types.d.ts +2 -1
- package/dist/atoms/button-dropdown/index.d.ts +8 -4
- package/dist/atoms/button-dropdown/stories/button-dropdown.stories.d.ts +11 -2
- package/dist/atoms/button-link/index.d.ts +11 -10
- package/dist/atoms/button-link/stories/button-link.stories.d.ts +17 -12
- package/dist/atoms/button-link/styles.d.ts +2 -1
- package/dist/atoms/tag/index.d.ts +1 -0
- package/dist/atoms/tag/stories/tag.stories.d.ts +7 -0
- package/dist/atoms/tag/styles.d.ts +1 -0
- package/dist/atoms/tag/types.d.ts +2 -1
- package/dist/atoms/tag-number/index.d.ts +5 -2
- package/dist/atoms/tag-number/stories/tag-number.stories.d.ts +16 -0
- package/dist/atoms/tag-number/styles.d.ts +7 -1
- package/dist/ions/variables.d.ts +148 -2
- package/dist/molecules/table/index.d.ts +3 -0
- package/dist/molecules/table/stories/table.stories.d.ts +18 -0
- package/dist/molecules/table/styles.d.ts +4 -2
- package/dist/organisms/loading-state/index.d.ts +1 -4
- package/dist/organisms/loading-state/stories/loading-state.stories.d.ts +0 -3
- package/dist/organisms/loading-state/styles.d.ts +0 -1
- package/dist/rocket-kit.cjs.development.js +664 -671
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +351 -509
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +666 -673
- package/dist/rocket-kit.esm.js.map +1 -1
- package/dist/utils/hooks/use-color.d.ts +4 -0
- package/package.json +4 -4
- package/dist/utils/hooks/use-mouse-move-effect.d.ts +0 -5
|
@@ -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('32px') : 'min-content' : polished.rem('32px'), /*#__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('32px'), props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? '5px' : 0, props => props.iconPosition === 'left' ? '5px' : 0, props => props.variant === 'solid' ? '' : 'var(--button)', medium, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, /*#__PURE__*/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{background-color:", ";pointer-events:none;}}> *:not(:last-child){margin-left:", ";margin-right:", ";}.spinner{border-top-color:", ";}span{position:relative;font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";color:", ";pointer-events:none;transition-duration:", ";order:", ";}svg{order:", ";width:", ";height:", ";fill:", ";transition:", ";}"], props => {
|
|
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.variant === 'solid' ? 'var(--bg)' : 'transparent', props => props.iconPosition === 'right' ? button.iconSpacing : 0, props => props.iconPosition === 'left' ? button.iconSpacing : 0, props => props.variant === 'solid' ? '' : 'var(--button)', /*#__PURE__*/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('32px'), /*#__PURE__*/polished.rem('32px'), props => props.value ? `0 ${polished.rem('20px')}` : 0, device.l, props => props.value ? polished.rem('100px') : polished.rem('32px'), props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? '5px' : 0, props => props.iconPosition === 'left' ? '5px' : 0, medium$1, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, /*#__PURE__*/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 = 'left',
|
|
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)[aria-checked='true'] ~ span{background-color:", ";border-color:", ";&:after{display:block;}}&:checked:disabled[aria-checked='true'] ~ span{border-color:transparent;background-color:", ";color:", ";&:after{display:block;}}&:not(:checked):disabled ~ span{border-color:", ";background-color:", ";}&:hover:not(:disabled){border-color:", ";&:checked ~ span{border-color:", ";}}"], props => props.error ? red : green, props => props.error ? darkRed : darkGreen, lightGrey$1, grey$1, lightGrey$1, light$1, props => props.error ? darkRed : darkGreen, props => props.error ? darkRed : darkGreen);
|
|
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:", ";padding:", " ", ";font-size:", ";font-weight:", ";text-transform:uppercase;letter-spacing:", ";line-height:1;color:", ";white-space:nowrap;"], 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('3px'), /*#__PURE__*/polished.rem('8px'), /*#__PURE__*/polished.rem('12px'), typography.medium, /*#__PURE__*/polished.rem('1px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--bg)');
|
|
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,11 +1237,11 @@ const Select = props => {
|
|
|
1252
1237
|
};
|
|
1253
1238
|
|
|
1254
1239
|
const {
|
|
1255
|
-
normal: normal$
|
|
1256
|
-
light: light$
|
|
1257
|
-
grey: grey$
|
|
1258
|
-
lightGrey: lightGrey$
|
|
1259
|
-
|
|
1240
|
+
normal: normal$3,
|
|
1241
|
+
light: light$5,
|
|
1242
|
+
grey: grey$9,
|
|
1243
|
+
lightGrey: lightGrey$6,
|
|
1244
|
+
purple500: purple500$3,
|
|
1260
1245
|
lightPurple
|
|
1261
1246
|
} = colors;
|
|
1262
1247
|
const SelectWrapper = _styled__default.div`
|
|
@@ -1266,16 +1251,16 @@ const SelectWrapper = _styled__default.div`
|
|
|
1266
1251
|
}
|
|
1267
1252
|
|
|
1268
1253
|
&__control {
|
|
1269
|
-
border-color: ${grey$
|
|
1254
|
+
border-color: ${grey$9};
|
|
1270
1255
|
min-height: ${/*#__PURE__*/polished.rem('50px')};
|
|
1271
1256
|
transition-duration: 0.3s;
|
|
1272
1257
|
|
|
1273
1258
|
&:hover {
|
|
1274
|
-
border-color: ${
|
|
1259
|
+
border-color: ${purple500$3};
|
|
1275
1260
|
}
|
|
1276
1261
|
|
|
1277
1262
|
&--is-focused {
|
|
1278
|
-
border-color: ${
|
|
1263
|
+
border-color: ${purple500$3};
|
|
1279
1264
|
box-shadow: none;
|
|
1280
1265
|
}
|
|
1281
1266
|
}
|
|
@@ -1286,15 +1271,15 @@ const SelectWrapper = _styled__default.div`
|
|
|
1286
1271
|
}
|
|
1287
1272
|
|
|
1288
1273
|
&__placeholder {
|
|
1289
|
-
color: ${grey$
|
|
1274
|
+
color: ${grey$9};
|
|
1290
1275
|
}
|
|
1291
1276
|
|
|
1292
1277
|
&__input {
|
|
1293
|
-
color: ${normal$
|
|
1278
|
+
color: ${normal$3};
|
|
1294
1279
|
}
|
|
1295
1280
|
|
|
1296
1281
|
&__single-value {
|
|
1297
|
-
color: ${normal$
|
|
1282
|
+
color: ${normal$3};
|
|
1298
1283
|
}
|
|
1299
1284
|
|
|
1300
1285
|
&__indicator {
|
|
@@ -1314,7 +1299,7 @@ const SelectWrapper = _styled__default.div`
|
|
|
1314
1299
|
}
|
|
1315
1300
|
|
|
1316
1301
|
&-separator {
|
|
1317
|
-
background-color: ${grey$
|
|
1302
|
+
background-color: ${grey$9};
|
|
1318
1303
|
}
|
|
1319
1304
|
}
|
|
1320
1305
|
|
|
@@ -1322,18 +1307,18 @@ const SelectWrapper = _styled__default.div`
|
|
|
1322
1307
|
transition-duration: 0.3s;
|
|
1323
1308
|
|
|
1324
1309
|
&:hover {
|
|
1325
|
-
background-color: ${
|
|
1326
|
-
color: ${light$
|
|
1310
|
+
background-color: ${purple500$3};
|
|
1311
|
+
color: ${light$5};
|
|
1327
1312
|
}
|
|
1328
1313
|
|
|
1329
1314
|
&--is-focused {
|
|
1330
|
-
background-color: ${
|
|
1331
|
-
color: ${light$
|
|
1315
|
+
background-color: ${purple500$3};
|
|
1316
|
+
color: ${light$5};
|
|
1332
1317
|
}
|
|
1333
1318
|
|
|
1334
1319
|
&--is-selected {
|
|
1335
1320
|
background-color: ${lightPurple};
|
|
1336
|
-
color: ${normal$
|
|
1321
|
+
color: ${normal$3};
|
|
1337
1322
|
}
|
|
1338
1323
|
}
|
|
1339
1324
|
}
|
|
@@ -1361,14 +1346,14 @@ const SelectWrapper = _styled__default.div`
|
|
|
1361
1346
|
|
|
1362
1347
|
.select__option--is-selected {
|
|
1363
1348
|
svg {
|
|
1364
|
-
fill: ${normal$
|
|
1349
|
+
fill: ${normal$3};
|
|
1365
1350
|
transition-duration: 0.3s;
|
|
1366
1351
|
}
|
|
1367
1352
|
}
|
|
1368
1353
|
|
|
1369
1354
|
.select__option--is-focused {
|
|
1370
1355
|
svg {
|
|
1371
|
-
fill: ${light$
|
|
1356
|
+
fill: ${light$5};
|
|
1372
1357
|
transition-duration: 0.3s;
|
|
1373
1358
|
}
|
|
1374
1359
|
}
|
|
@@ -1379,12 +1364,12 @@ const SelectWrapper = _styled__default.div`
|
|
|
1379
1364
|
`;
|
|
1380
1365
|
const SelectGroupLabel = _styled__default.span`
|
|
1381
1366
|
font-size: ${/*#__PURE__*/polished.rem('12px')};
|
|
1382
|
-
color: ${lightGrey$
|
|
1367
|
+
color: ${lightGrey$6};
|
|
1383
1368
|
|
|
1384
1369
|
+ .tag {
|
|
1385
|
-
border-color: ${lightGrey$
|
|
1386
|
-
background-color: ${lightGrey$
|
|
1387
|
-
color: ${grey$
|
|
1370
|
+
border-color: ${lightGrey$6};
|
|
1371
|
+
background-color: ${lightGrey$6};
|
|
1372
|
+
color: ${grey$9};
|
|
1388
1373
|
}
|
|
1389
1374
|
`;
|
|
1390
1375
|
|
|
@@ -1455,16 +1440,16 @@ const SelectInteractive = ({
|
|
|
1455
1440
|
};
|
|
1456
1441
|
|
|
1457
1442
|
const {
|
|
1458
|
-
normal: normal$
|
|
1459
|
-
grey: grey$
|
|
1460
|
-
lightGrey: lightGrey$
|
|
1461
|
-
red: red$
|
|
1443
|
+
normal: normal$4,
|
|
1444
|
+
grey: grey$a,
|
|
1445
|
+
lightGrey: lightGrey$7,
|
|
1446
|
+
red: red$5,
|
|
1462
1447
|
lightRed
|
|
1463
1448
|
} = colors;
|
|
1464
1449
|
const Wrapper$2 = _styled__default.div`
|
|
1465
1450
|
border-width: ${/*#__PURE__*/polished.rem('1px')};
|
|
1466
1451
|
border-style: solid;
|
|
1467
|
-
border-color: ${props => props.error ? red$
|
|
1452
|
+
border-color: ${props => props.error ? red$5 : grey$a};
|
|
1468
1453
|
border-radius: ${/*#__PURE__*/polished.rem('6px')};
|
|
1469
1454
|
display: flex;
|
|
1470
1455
|
overflow: hidden;
|
|
@@ -1472,7 +1457,7 @@ const Wrapper$2 = _styled__default.div`
|
|
|
1472
1457
|
input {
|
|
1473
1458
|
flex: 1;
|
|
1474
1459
|
border: 0;
|
|
1475
|
-
color: ${props => props.error ? red$
|
|
1460
|
+
color: ${props => props.error ? red$5 : normal$4};
|
|
1476
1461
|
|
|
1477
1462
|
&:disabled {
|
|
1478
1463
|
margin: 0;
|
|
@@ -1487,10 +1472,10 @@ const Wrapper$2 = _styled__default.div`
|
|
|
1487
1472
|
const Appendix = _styled__default.div`
|
|
1488
1473
|
border-width: ${props => props.position === 'left' ? `0 ${polished.rem('1px')} 0 0` : `0 0 0 ${polished.rem('1px')}`};
|
|
1489
1474
|
border-style: solid;
|
|
1490
|
-
border-color: ${props => props.error ? red$
|
|
1491
|
-
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};
|
|
1492
1477
|
padding: 0 ${/*#__PURE__*/polished.rem('15px')};
|
|
1493
|
-
color: ${props => props.error ? red$
|
|
1478
|
+
color: ${props => props.error ? red$5 : grey$a};
|
|
1494
1479
|
line-height: ${/*#__PURE__*/polished.rem('48px')};
|
|
1495
1480
|
vertical-align: center;
|
|
1496
1481
|
overflow: hidden;
|
|
@@ -1564,8 +1549,25 @@ const TruncateLine = props => {
|
|
|
1564
1549
|
}, /*#__PURE__*/React__default.createElement("span", null, value));
|
|
1565
1550
|
};
|
|
1566
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
|
+
|
|
1567
1569
|
const {
|
|
1568
|
-
light: light$
|
|
1570
|
+
light: light$6
|
|
1569
1571
|
} = colors;
|
|
1570
1572
|
const Wrapper$3 = _styled__default.div`
|
|
1571
1573
|
position: relative;
|
|
@@ -1819,7 +1821,7 @@ const Wrapper$3 = _styled__default.div`
|
|
|
1819
1821
|
svg {
|
|
1820
1822
|
width: ${/*#__PURE__*/polished.rem('36px')};
|
|
1821
1823
|
height: ${/*#__PURE__*/polished.rem('36px')};
|
|
1822
|
-
fill: ${light$
|
|
1824
|
+
fill: ${light$6};
|
|
1823
1825
|
}
|
|
1824
1826
|
|
|
1825
1827
|
&.next {
|
|
@@ -1830,7 +1832,7 @@ const Wrapper$3 = _styled__default.div`
|
|
|
1830
1832
|
opacity: 1;
|
|
1831
1833
|
|
|
1832
1834
|
svg {
|
|
1833
|
-
fill: ${light$
|
|
1835
|
+
fill: ${light$6};
|
|
1834
1836
|
}
|
|
1835
1837
|
}
|
|
1836
1838
|
|
|
@@ -1855,7 +1857,7 @@ const Wrapper$3 = _styled__default.div`
|
|
|
1855
1857
|
position: relative;
|
|
1856
1858
|
display: inline-block;
|
|
1857
1859
|
border-radius: 999px;
|
|
1858
|
-
background-color: ${light$
|
|
1860
|
+
background-color: ${light$6};
|
|
1859
1861
|
width: ${/*#__PURE__*/polished.rem('15px')};
|
|
1860
1862
|
height: ${/*#__PURE__*/polished.rem('15px')};
|
|
1861
1863
|
opacity: 0.25;
|
|
@@ -1989,12 +1991,12 @@ const VideoPlayer = props => {
|
|
|
1989
1991
|
};
|
|
1990
1992
|
|
|
1991
1993
|
const {
|
|
1992
|
-
lightGrey: lightGrey$
|
|
1993
|
-
green: green$
|
|
1994
|
+
lightGrey: lightGrey$8,
|
|
1995
|
+
green: green$3
|
|
1994
1996
|
} = colors;
|
|
1995
1997
|
const {
|
|
1996
|
-
bold: bold$
|
|
1997
|
-
} =
|
|
1998
|
+
bold: bold$1
|
|
1999
|
+
} = typography;
|
|
1998
2000
|
const Wrapper$5 = _styled__default.div`
|
|
1999
2001
|
display: flex;
|
|
2000
2002
|
align-items: center;
|
|
@@ -2002,13 +2004,13 @@ const Wrapper$5 = _styled__default.div`
|
|
|
2002
2004
|
const Bar = _styled__default.div`
|
|
2003
2005
|
flex: 1;
|
|
2004
2006
|
border-radius: 999px;
|
|
2005
|
-
background-color: ${lightGrey$
|
|
2007
|
+
background-color: ${lightGrey$8};
|
|
2006
2008
|
height: ${/*#__PURE__*/polished.rem('10px')};
|
|
2007
2009
|
overflow: hidden;
|
|
2008
2010
|
`;
|
|
2009
2011
|
const Progress = _styled__default.div`
|
|
2010
2012
|
border-radius: 999px;
|
|
2011
|
-
background-color: ${green$
|
|
2013
|
+
background-color: ${green$3};
|
|
2012
2014
|
height: 100%;
|
|
2013
2015
|
width: ${props => props.progress ? `${props.progress}%` : 0};
|
|
2014
2016
|
transition-duration: 2s;
|
|
@@ -2016,7 +2018,7 @@ const Progress = _styled__default.div`
|
|
|
2016
2018
|
const Value = _styled__default.div`
|
|
2017
2019
|
margin-left: ${/*#__PURE__*/polished.rem('5px')};
|
|
2018
2020
|
font-size: 0.75rem;
|
|
2019
|
-
font-weight: ${bold$
|
|
2021
|
+
font-weight: ${bold$1};
|
|
2020
2022
|
`;
|
|
2021
2023
|
|
|
2022
2024
|
const ProgressBar = props => {
|
|
@@ -2030,9 +2032,9 @@ const ProgressBar = props => {
|
|
|
2030
2032
|
};
|
|
2031
2033
|
|
|
2032
2034
|
const {
|
|
2033
|
-
light: light$
|
|
2034
|
-
green: green$
|
|
2035
|
-
lightGrey: lightGrey$
|
|
2035
|
+
light: light$7,
|
|
2036
|
+
green: green$4,
|
|
2037
|
+
lightGrey: lightGrey$9
|
|
2036
2038
|
} = colors;
|
|
2037
2039
|
const Switcher = _styled__default.fieldset`
|
|
2038
2040
|
margin: 0;
|
|
@@ -2058,7 +2060,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2058
2060
|
width: ${/*#__PURE__*/polished.rem('40px')};
|
|
2059
2061
|
height: ${/*#__PURE__*/polished.rem('24px')};
|
|
2060
2062
|
border-radius: 999px;
|
|
2061
|
-
border: 2px solid ${light$
|
|
2063
|
+
border: 2px solid ${light$7};
|
|
2062
2064
|
position: relative;
|
|
2063
2065
|
opacity: ${props => props.disabled ? '0.5' : '1'};
|
|
2064
2066
|
|
|
@@ -2083,7 +2085,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2083
2085
|
}
|
|
2084
2086
|
|
|
2085
2087
|
&.switch-on:checked ~ .bg {
|
|
2086
|
-
background-color: ${green$
|
|
2088
|
+
background-color: ${green$4};
|
|
2087
2089
|
}
|
|
2088
2090
|
|
|
2089
2091
|
&.switch-off:checked ~ .switcher {
|
|
@@ -2091,7 +2093,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2091
2093
|
}
|
|
2092
2094
|
|
|
2093
2095
|
&.switch-off:checked ~ .bg {
|
|
2094
|
-
background-color: ${lightGrey$
|
|
2096
|
+
background-color: ${lightGrey$9};
|
|
2095
2097
|
}
|
|
2096
2098
|
}
|
|
2097
2099
|
|
|
@@ -2104,7 +2106,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2104
2106
|
width: ${/*#__PURE__*/polished.rem('16px')};
|
|
2105
2107
|
height: ${/*#__PURE__*/polished.rem('16px')};
|
|
2106
2108
|
border-radius: 50%;
|
|
2107
|
-
background-color: ${light$
|
|
2109
|
+
background-color: ${light$7};
|
|
2108
2110
|
transition: all 0.3s ease-out;
|
|
2109
2111
|
z-index: 2;
|
|
2110
2112
|
}
|
|
@@ -2119,7 +2121,7 @@ const Switcher = _styled__default.fieldset`
|
|
|
2119
2121
|
border-radius: 999px;
|
|
2120
2122
|
background-color: transparent;
|
|
2121
2123
|
transition: all 0.3s ease-out;
|
|
2122
|
-
background-color: ${lightGrey$
|
|
2124
|
+
background-color: ${lightGrey$9};
|
|
2123
2125
|
}
|
|
2124
2126
|
}
|
|
2125
2127
|
}
|
|
@@ -2207,14 +2209,14 @@ const Toggle = ({
|
|
|
2207
2209
|
};
|
|
2208
2210
|
|
|
2209
2211
|
const {
|
|
2210
|
-
red: red$
|
|
2211
|
-
grey: grey$
|
|
2212
|
-
lightGrey: lightGrey$
|
|
2213
|
-
darkGrey
|
|
2214
|
-
green: green$
|
|
2215
|
-
darkGreen: darkGreen$
|
|
2216
|
-
light: light$
|
|
2217
|
-
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
|
|
2218
2220
|
} = colors;
|
|
2219
2221
|
const Wrapper$6 = _styled__default.div`
|
|
2220
2222
|
input {
|
|
@@ -2230,9 +2232,9 @@ const Wrapper$6 = _styled__default.div`
|
|
|
2230
2232
|
margin-bottom: 0 !important;
|
|
2231
2233
|
border-width: ${props => props.minimal ? `0 0 ${polished.rem('1px')} 0` : polished.rem('1px')};
|
|
2232
2234
|
border-style: solid;
|
|
2233
|
-
border-color: ${props => props.error ? red$
|
|
2235
|
+
border-color: ${props => props.error ? red$6 : grey$b};
|
|
2234
2236
|
border-radius: ${props => props.minimal ? 0 : polished.rem('6px')};
|
|
2235
|
-
background-color: ${props => props.disabled ? lightGrey$
|
|
2237
|
+
background-color: ${props => props.disabled ? lightGrey$a : 'transparent'};
|
|
2236
2238
|
display: flex;
|
|
2237
2239
|
justify-content: space-between;
|
|
2238
2240
|
align-items: center;
|
|
@@ -2252,34 +2254,34 @@ const Wrapper$6 = _styled__default.div`
|
|
|
2252
2254
|
flex: 1;
|
|
2253
2255
|
display: block;
|
|
2254
2256
|
padding: ${props => props.minimal ? 0 : `0 ${polished.rem('10px')}`};
|
|
2255
|
-
color: ${props => props.disabled ? grey$
|
|
2257
|
+
color: ${props => props.disabled ? grey$b : normal$5};
|
|
2256
2258
|
white-space: nowrap;
|
|
2257
2259
|
overflow: hidden;
|
|
2258
2260
|
text-overflow: ellipsis;
|
|
2259
2261
|
}
|
|
2260
2262
|
|
|
2261
2263
|
&.button {
|
|
2262
|
-
border-left: ${props => props.minimal ? 0 : `${polished.rem('1px')} solid ${grey$
|
|
2263
|
-
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};
|
|
2264
2266
|
height: 100%;
|
|
2265
2267
|
padding: ${props => props.minimal ? `0 ${polished.rem('5px')} 0 ${polished.rem('20px')}` : `0 ${polished.rem('20px')}`};
|
|
2266
|
-
color: ${props => props.disabled ? grey$
|
|
2268
|
+
color: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2267
2269
|
transition-duration: 0.3s;
|
|
2268
2270
|
|
|
2269
2271
|
svg {
|
|
2270
2272
|
margin-right: ${/*#__PURE__*/polished.rem('8px')};
|
|
2271
2273
|
width: auto;
|
|
2272
2274
|
height: ${/*#__PURE__*/polished.rem('24px')};
|
|
2273
|
-
fill: ${props => props.disabled ? grey$
|
|
2275
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGrey : light$8};
|
|
2274
2276
|
transition-duration: 0.3s;
|
|
2275
2277
|
}
|
|
2276
2278
|
|
|
2277
2279
|
&:hover {
|
|
2278
|
-
background-color: ${props => props.minimal ? 'transparent' : darkGreen$
|
|
2279
|
-
color: ${props => props.minimal ? darkGreen$
|
|
2280
|
+
background-color: ${props => props.minimal ? 'transparent' : darkGreen$2};
|
|
2281
|
+
color: ${props => props.minimal ? darkGreen$2 : light$8};
|
|
2280
2282
|
|
|
2281
2283
|
svg {
|
|
2282
|
-
fill: ${props => props.disabled ? grey$
|
|
2284
|
+
fill: ${props => props.disabled ? grey$b : props.minimal ? darkGreen$2 : light$8};
|
|
2283
2285
|
}
|
|
2284
2286
|
}
|
|
2285
2287
|
}
|
|
@@ -2341,10 +2343,10 @@ const FilePicker = props => {
|
|
|
2341
2343
|
};
|
|
2342
2344
|
|
|
2343
2345
|
const {
|
|
2344
|
-
normal: normal$
|
|
2345
|
-
light: light$
|
|
2346
|
-
lightGrey: lightGrey$
|
|
2347
|
-
red: red$
|
|
2346
|
+
normal: normal$6,
|
|
2347
|
+
light: light$9,
|
|
2348
|
+
lightGrey: lightGrey$b,
|
|
2349
|
+
red: red$7
|
|
2348
2350
|
} = colors;
|
|
2349
2351
|
const ActionsMenuStyle$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2350
2352
|
displayName: "styles__ActionsMenuStyle",
|
|
@@ -2353,11 +2355,11 @@ const ActionsMenuStyle$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2353
2355
|
const List = /*#__PURE__*/_styled__default.ul.withConfig({
|
|
2354
2356
|
displayName: "styles__List",
|
|
2355
2357
|
componentId: "sc-1peafop-1"
|
|
2356
|
-
})(["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`
|
|
2357
2359
|
--margin: ${`calc(${polished.rem('45px')} + ${polished.rem('50px')} * ${props.rowIndex} + ${polished.rem('42px')})`};
|
|
2358
2360
|
top: var(--margin);
|
|
2359
2361
|
right: ${polished.rem('5px')};
|
|
2360
|
-
`, /*#__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);
|
|
2361
2363
|
|
|
2362
2364
|
const ActionMenuList = props => {
|
|
2363
2365
|
const {
|
|
@@ -2430,13 +2432,13 @@ const ActionsMenu = props => {
|
|
|
2430
2432
|
};
|
|
2431
2433
|
|
|
2432
2434
|
const {
|
|
2433
|
-
light: light$
|
|
2434
|
-
grey: grey$
|
|
2435
|
+
light: light$a,
|
|
2436
|
+
grey: grey$c
|
|
2435
2437
|
} = colors;
|
|
2436
2438
|
const CardValueStyle = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2437
2439
|
displayName: "styles__CardValueStyle",
|
|
2438
2440
|
componentId: "sc-1ki7jdk-0"
|
|
2439
|
-
})(["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'));
|
|
2440
2442
|
const CardValueButtonWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2441
2443
|
displayName: "styles__CardValueButtonWrapper",
|
|
2442
2444
|
componentId: "sc-1ki7jdk-1"
|
|
@@ -2467,12 +2469,12 @@ const CardValue = props => {
|
|
|
2467
2469
|
};
|
|
2468
2470
|
|
|
2469
2471
|
const {
|
|
2470
|
-
grey: grey$
|
|
2471
|
-
light: light$
|
|
2472
|
+
grey: grey$d,
|
|
2473
|
+
light: light$b
|
|
2472
2474
|
} = colors;
|
|
2473
2475
|
const {
|
|
2474
|
-
bold: bold$
|
|
2475
|
-
} =
|
|
2476
|
+
bold: bold$2
|
|
2477
|
+
} = typography;
|
|
2476
2478
|
const EmptyTableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2477
2479
|
displayName: "styles__EmptyTableWrapper",
|
|
2478
2480
|
componentId: "sc-1dgsb9l-0"
|
|
@@ -2480,15 +2482,15 @@ const EmptyTableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2480
2482
|
const EmptyTableHead = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2481
2483
|
displayName: "styles__EmptyTableHead",
|
|
2482
2484
|
componentId: "sc-1dgsb9l-1"
|
|
2483
|
-
})(["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);
|
|
2484
2486
|
const EmptyTableBody = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2485
2487
|
displayName: "styles__EmptyTableBody",
|
|
2486
2488
|
componentId: "sc-1dgsb9l-2"
|
|
2487
|
-
})(["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'));
|
|
2488
2490
|
const EmptyTableRow = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2489
2491
|
displayName: "styles__EmptyTableRow",
|
|
2490
2492
|
componentId: "sc-1dgsb9l-3"
|
|
2491
|
-
})(["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);
|
|
2492
2494
|
const EmptyTableCellText = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2493
2495
|
displayName: "styles__EmptyTableCellText",
|
|
2494
2496
|
componentId: "sc-1dgsb9l-4"
|
|
@@ -2496,7 +2498,7 @@ const EmptyTableCellText = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2496
2498
|
const EmptyTableOverlay = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2497
2499
|
displayName: "styles__EmptyTableOverlay",
|
|
2498
2500
|
componentId: "sc-1dgsb9l-5"
|
|
2499
|
-
})(["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);
|
|
2500
2502
|
|
|
2501
2503
|
const EmptyTable = props => {
|
|
2502
2504
|
let rows = [];
|
|
@@ -2556,31 +2558,31 @@ const ModalFooter = props => {
|
|
|
2556
2558
|
};
|
|
2557
2559
|
|
|
2558
2560
|
const {
|
|
2559
|
-
green: green$
|
|
2561
|
+
green: green$6,
|
|
2560
2562
|
lightGreen,
|
|
2561
|
-
darkGreen: darkGreen$
|
|
2562
|
-
grey: grey$
|
|
2563
|
-
lightGrey: lightGrey$
|
|
2564
|
-
darkGrey: darkGrey$
|
|
2565
|
-
red: red$
|
|
2563
|
+
darkGreen: darkGreen$3,
|
|
2564
|
+
grey: grey$e,
|
|
2565
|
+
lightGrey: lightGrey$c,
|
|
2566
|
+
darkGrey: darkGrey$1,
|
|
2567
|
+
red: red$8,
|
|
2566
2568
|
lightRed: lightRed$1,
|
|
2567
|
-
darkRed: darkRed$
|
|
2569
|
+
darkRed: darkRed$1
|
|
2568
2570
|
} = colors;
|
|
2569
2571
|
const Wrapper$7 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2570
2572
|
displayName: "styles__Wrapper",
|
|
2571
2573
|
componentId: "d2fn4g-0"
|
|
2572
|
-
})(["--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$
|
|
2573
|
-
--default: ${grey$
|
|
2574
|
-
--light: ${lightGrey$
|
|
2575
|
-
--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};
|
|
2576
2578
|
`, props => props.color === 'green' && _styled.css`
|
|
2577
|
-
--default: ${green$
|
|
2579
|
+
--default: ${green$6};
|
|
2578
2580
|
--light: ${lightGreen};
|
|
2579
|
-
--dark: ${darkGreen$
|
|
2581
|
+
--dark: ${darkGreen$3};
|
|
2580
2582
|
`, props => props.color === 'red' && _styled.css`
|
|
2581
|
-
--default: ${red$
|
|
2583
|
+
--default: ${red$8};
|
|
2582
2584
|
--light: ${lightRed$1};
|
|
2583
|
-
--dark: ${darkRed$
|
|
2585
|
+
--dark: ${darkRed$1};
|
|
2584
2586
|
`, /*#__PURE__*/polished.rem('2px'), /*#__PURE__*/polished.rem('6px'), /*#__PURE__*/polished.rem('15px'), props => props.buttonValue && _styled.css`
|
|
2585
2587
|
button {
|
|
2586
2588
|
margin: ${polished.rem('30px')} 0 0 0;
|
|
@@ -2639,14 +2641,14 @@ function hasValue(value) {
|
|
|
2639
2641
|
}
|
|
2640
2642
|
|
|
2641
2643
|
const {
|
|
2642
|
-
normal: normal$
|
|
2643
|
-
light: light$
|
|
2644
|
-
grey: grey$
|
|
2645
|
-
lightGrey: lightGrey$
|
|
2644
|
+
normal: normal$7,
|
|
2645
|
+
light: light$c,
|
|
2646
|
+
grey: grey$f,
|
|
2647
|
+
lightGrey: lightGrey$d
|
|
2646
2648
|
} = colors;
|
|
2647
2649
|
const {
|
|
2648
|
-
bold: bold$
|
|
2649
|
-
} =
|
|
2650
|
+
bold: bold$3
|
|
2651
|
+
} = typography;
|
|
2650
2652
|
const TableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2651
2653
|
displayName: "styles__TableWrapper",
|
|
2652
2654
|
componentId: "vmoy3z-0"
|
|
@@ -2654,21 +2656,46 @@ const TableWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
2654
2656
|
const OverflowWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2655
2657
|
displayName: "styles__OverflowWrapper",
|
|
2656
2658
|
componentId: "vmoy3z-1"
|
|
2657
|
-
})(["@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'));
|
|
2658
2660
|
const Table = /*#__PURE__*/_styled__default.table.withConfig({
|
|
2659
2661
|
displayName: "styles__Table",
|
|
2660
2662
|
componentId: "vmoy3z-2"
|
|
2661
|
-
})(["width:100%;border-width:
|
|
2663
|
+
})(["width:100%;border-width:0;border-style:solid;border-color:", ";border-radius:", ";border-spacing:0;white-space:nowrap;@media ", "{border-width:", ";}th,td{height:", ";padding:0 ", ";&.center{text-align:center;> div{justify-content:center;}}&.right{text-align:right;> div{justify-content:flex-end;}}&.thin{@media ", "{max-width:min-content;}}&.kai{text-align:right;> div{justify-content:flex-end;}}&.avatar > div{display:flex;align-items:center;.avatar-img{margin-right:", ";}}}th{font-size:0.85rem;&:first-child{border-top-left-radius:", ";}&:last-child{border-top-right-radius:", ";}}tr{border:", " solid ", ";border-radius:", ";position:relative;&:not(:last-child){margin-bottom:", ";}@media ", "{border:0;}}thead{border:none;clip:rect(0 0 0 0);height:", ";margin:", ";overflow:hidden;padding:0;position:absolute;width:", ";@media ", "{display:contents;font-weight:", ";color:", ";text-transform:uppercase;text-align:left;}}tbody{tr{display:block;transition-duration:0.3s;&:hover{background-color:", ";td.menu{button{opacity:1;}}}@media ", "{display:table-row;}}td{border-top:", " solid ", ";height:inherit;min-height:", ";padding:", ";display:flex;justify-content:flex-end;align-items:center;> div{margin-left:", ";height:100%;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;text-align:right;> span{display:none;&:first-child,&:last-child{display:inherit;}}}img{min-width:", ";min-height:", ";}a{display:flex;align-items:center;color:", ";text-decoration-color:", ";}&:first-child{border:0;}&:before{position:absolute;left:", ";content:attr(data-label);font-weight:", ";text-transform:capitalize;", "}&.kai{svg{float:right;width:auto;min-width:", ";max-height:", ";}}.avatar-img{display:none;}.tag{margin:0;&:not(:first-child){display:none;}}&.menu{padding:0 ", " 0 0;button{margin-top:", ";transition:0.3s;}ul{top:", ";margin-left:", ";}}@media ", "{display:table-cell;height:", ";padding:0 ", ";> div{position:relative;margin-left:0;display:flex-start;justify-content:flex-start;text-align:left;> span{display:inherit;}}&:first-child{border-top:", " solid ", ";}&:before{content:'';}&.kai{max-width:", ";}.avatar-img{display:inherit;}.tag{&:not(:first-child){display:inherit;}&:not(:last-child){margin-right:", ";}}&.menu{width:", ";button{opacity:0;}}}}}"], grey$f, /*#__PURE__*/polished.rem('6px'), device.s, props => props.border ? polished.rem('1px') : '0', /*#__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, props => props.loadingState ? 'transparent' : 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, props => props.loadingState && _styled.css`
|
|
2664
|
+
width: ${polished.rem('75px')};
|
|
2665
|
+
height: ${polished.rem('15px')};
|
|
2666
|
+
background: #f6f7f8;
|
|
2667
|
+
background-image: -webkit-linear-gradient(
|
|
2668
|
+
left,
|
|
2669
|
+
#f6f7f8 0%,
|
|
2670
|
+
#edeef1 20%,
|
|
2671
|
+
#f6f7f8 40%,
|
|
2672
|
+
#f6f7f8 100%
|
|
2673
|
+
);
|
|
2674
|
+
background-repeat: no-repeat;
|
|
2675
|
+
background-size: ${polished.rem('800px')} 100%;
|
|
2676
|
+
animation-fill-mode: forwards;
|
|
2677
|
+
animation-name: placeholderSkeleton;
|
|
2678
|
+
animation-timing-function: linear;
|
|
2679
|
+
animation-iteration-count: infinite;
|
|
2680
|
+
animation-duration: 1.5s;
|
|
2681
|
+
`, /*#__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'));
|
|
2682
|
+
const SkeletonCell = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2683
|
+
displayName: "styles__SkeletonCell",
|
|
2684
|
+
componentId: "vmoy3z-3"
|
|
2685
|
+
})(["@keyframes placeholderSkeleton{0%{background-position:", " 0;}100%{background-position:", " 0;}}width:100%;height:", " !important;background:#f6f7f8;background-image:-webkit-linear-gradient( left,#f6f7f8 0%,#edeef1 20%,#f6f7f8 40%,#f6f7f8 100% );background-repeat:no-repeat;background-size:", " 100%;animation-fill-mode:forwards;animation-name:placeholderSkeleton;animation-timing-function:linear;animation-iteration-count:infinite;animation-duration:1.5s;"], /*#__PURE__*/polished.rem('-800px'), /*#__PURE__*/polished.rem('800px'), /*#__PURE__*/polished.rem('15px'), /*#__PURE__*/polished.rem('800px'));
|
|
2662
2686
|
|
|
2663
2687
|
const Table$1 = props => {
|
|
2664
2688
|
const {
|
|
2665
|
-
border =
|
|
2689
|
+
border = true,
|
|
2666
2690
|
options,
|
|
2667
2691
|
values = [],
|
|
2668
2692
|
actions = [],
|
|
2669
2693
|
dataTestId = 'table-test-id',
|
|
2670
2694
|
menuDataTestId = 'table-action-menu',
|
|
2671
2695
|
actionMenuTestId = 'icon-button',
|
|
2696
|
+
loading = false,
|
|
2697
|
+
loadingColumns = 4,
|
|
2698
|
+
loadingRows = 20,
|
|
2672
2699
|
showEmpty = false,
|
|
2673
2700
|
emptyValue = 'No Data',
|
|
2674
2701
|
className = 'table',
|
|
@@ -2688,6 +2715,9 @@ const Table$1 = props => {
|
|
|
2688
2715
|
const hasActionMenu = actions.length > 0;
|
|
2689
2716
|
const validValues = values.filter(hasValue);
|
|
2690
2717
|
const hasValues = Array.isArray(values) && values.length > 0;
|
|
2718
|
+
const headSkeleton = /*#__PURE__*/React__default.createElement("th", null, /*#__PURE__*/React__default.createElement(SkeletonCell, null));
|
|
2719
|
+
const cellSkeleton = /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(SkeletonCell, null));
|
|
2720
|
+
const columnsSkeleton = columns.length > 0 ? columns.length : loadingColumns;
|
|
2691
2721
|
|
|
2692
2722
|
if (showEmpty && !hasValues) {
|
|
2693
2723
|
const columnHeaders = columns.map(column => column.value);
|
|
@@ -2702,8 +2732,11 @@ const Table$1 = props => {
|
|
|
2702
2732
|
border: border,
|
|
2703
2733
|
"data-testid": dataTestId,
|
|
2704
2734
|
className: className,
|
|
2705
|
-
style: style
|
|
2706
|
-
|
|
2735
|
+
style: style,
|
|
2736
|
+
loadingState: loading
|
|
2737
|
+
}, /*#__PURE__*/React__default.createElement("thead", null, /*#__PURE__*/React__default.createElement("tr", null, loading && !columns ? Array.from({
|
|
2738
|
+
length: loadingColumns
|
|
2739
|
+
}, () => headSkeleton) : columns.map(({
|
|
2707
2740
|
id = '',
|
|
2708
2741
|
className = '',
|
|
2709
2742
|
value = '',
|
|
@@ -2712,7 +2745,11 @@ const Table$1 = props => {
|
|
|
2712
2745
|
key: id,
|
|
2713
2746
|
className: className,
|
|
2714
2747
|
"data-testid": colDataTestId ? `th-${colDataTestId}` : null
|
|
2715
|
-
}, value)), hasActionMenu && /*#__PURE__*/React__default.createElement("th", null))), /*#__PURE__*/React__default.createElement("tbody", null,
|
|
2748
|
+
}, value)), !loading && hasActionMenu && /*#__PURE__*/React__default.createElement("th", null))), /*#__PURE__*/React__default.createElement("tbody", null, loading ? Array.from({
|
|
2749
|
+
length: loadingRows
|
|
2750
|
+
}, () => /*#__PURE__*/React__default.createElement("tr", null, Array.from({
|
|
2751
|
+
length: columnsSkeleton
|
|
2752
|
+
}, () => cellSkeleton))) : validValues.map((row, index) => /*#__PURE__*/React__default.createElement("tr", {
|
|
2716
2753
|
key: row.id,
|
|
2717
2754
|
"data-testid": `row-${dataTestId}`
|
|
2718
2755
|
}, columns.map(({
|
|
@@ -2758,24 +2795,24 @@ const Table$1 = props => {
|
|
|
2758
2795
|
};
|
|
2759
2796
|
|
|
2760
2797
|
const {
|
|
2761
|
-
normal: normal$
|
|
2762
|
-
grey: grey$
|
|
2763
|
-
lightGrey: lightGrey$
|
|
2798
|
+
normal: normal$8,
|
|
2799
|
+
grey: grey$g,
|
|
2800
|
+
lightGrey: lightGrey$e
|
|
2764
2801
|
} = colors;
|
|
2765
2802
|
const {
|
|
2766
|
-
bold: bold$
|
|
2767
|
-
} =
|
|
2803
|
+
bold: bold$4
|
|
2804
|
+
} = typography;
|
|
2768
2805
|
const Table$2 = /*#__PURE__*/_styled__default.table.withConfig({
|
|
2769
2806
|
displayName: "styles__Table",
|
|
2770
2807
|
componentId: "sc-1p618q0-0"
|
|
2771
|
-
})(["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$
|
|
2808
|
+
})(["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'));
|
|
2772
2809
|
const TableRow = /*#__PURE__*/_styled__default.tr.withConfig({
|
|
2773
2810
|
displayName: "styles__TableRow",
|
|
2774
2811
|
componentId: "sc-1p618q0-1"
|
|
2775
2812
|
})(["&[data-rbd-draggable-id='", "']{position:absolute;display:table;width:100%;}"], props => props.draggableId);
|
|
2776
2813
|
|
|
2777
2814
|
const {
|
|
2778
|
-
light: light$
|
|
2815
|
+
light: light$d
|
|
2779
2816
|
} = colors;
|
|
2780
2817
|
|
|
2781
2818
|
const TableDnD = props => {
|
|
@@ -2830,12 +2867,12 @@ const TableDnD = props => {
|
|
|
2830
2867
|
|
|
2831
2868
|
const getItemStyle = (isDragging, draggableStyle) => ({
|
|
2832
2869
|
userSelect: 'none',
|
|
2833
|
-
background: isDragging ? light$
|
|
2870
|
+
background: isDragging ? light$d : 'transparent',
|
|
2834
2871
|
...draggableStyle
|
|
2835
2872
|
});
|
|
2836
2873
|
|
|
2837
2874
|
const getListStyle = isDraggingOver => ({
|
|
2838
|
-
background: isDraggingOver ? light$
|
|
2875
|
+
background: isDraggingOver ? light$d : 'transparent'
|
|
2839
2876
|
});
|
|
2840
2877
|
|
|
2841
2878
|
return (
|
|
@@ -2934,14 +2971,14 @@ const TableDnD = props => {
|
|
|
2934
2971
|
};
|
|
2935
2972
|
|
|
2936
2973
|
const {
|
|
2937
|
-
normal: normal$
|
|
2938
|
-
grey: grey$
|
|
2939
|
-
red: red$
|
|
2974
|
+
normal: normal$9,
|
|
2975
|
+
grey: grey$h,
|
|
2976
|
+
red: red$9
|
|
2940
2977
|
} = colors;
|
|
2941
2978
|
const Wrapper$8 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2942
2979
|
displayName: "styles__Wrapper",
|
|
2943
2980
|
componentId: "mbja2a-0"
|
|
2944
|
-
})(["display:inline-block;> label{margin-bottom:", ";color:", ";span{color:", ";}}&:not(:last-child){margin-bottom:", ";}"], /*#__PURE__*/polished.rem('5px'), props => props.error ? red$
|
|
2981
|
+
})(["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'));
|
|
2945
2982
|
|
|
2946
2983
|
const FormGroup = props => {
|
|
2947
2984
|
const {
|
|
@@ -2959,14 +2996,14 @@ const FormGroup = props => {
|
|
|
2959
2996
|
};
|
|
2960
2997
|
|
|
2961
2998
|
const {
|
|
2962
|
-
grey: grey$
|
|
2963
|
-
lightGrey: lightGrey$
|
|
2999
|
+
grey: grey$i,
|
|
3000
|
+
lightGrey: lightGrey$f,
|
|
2964
3001
|
lightRed: lightRed$2
|
|
2965
3002
|
} = colors;
|
|
2966
3003
|
const Wrapper$9 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
2967
3004
|
displayName: "styles__Wrapper",
|
|
2968
3005
|
componentId: "sc-124afcu-0"
|
|
2969
|
-
})(["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$
|
|
3006
|
+
})(["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);
|
|
2970
3007
|
const Input = /*#__PURE__*/_styled__default.input.withConfig({
|
|
2971
3008
|
displayName: "styles__Input",
|
|
2972
3009
|
componentId: "sc-124afcu-1"
|
|
@@ -2974,7 +3011,7 @@ const Input = /*#__PURE__*/_styled__default.input.withConfig({
|
|
|
2974
3011
|
const Button$1 = /*#__PURE__*/_styled__default.button.withConfig({
|
|
2975
3012
|
displayName: "styles__Button",
|
|
2976
3013
|
componentId: "sc-124afcu-2"
|
|
2977
|
-
})(["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$
|
|
3014
|
+
})(["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);
|
|
2978
3015
|
|
|
2979
3016
|
const NumberInputSpinner = props => {
|
|
2980
3017
|
const {
|
|
@@ -3040,10 +3077,10 @@ const NumberInputSpinner = props => {
|
|
|
3040
3077
|
};
|
|
3041
3078
|
|
|
3042
3079
|
const {
|
|
3043
|
-
green: green$
|
|
3044
|
-
grey: grey$
|
|
3045
|
-
lightGrey: lightGrey$
|
|
3046
|
-
light: light$
|
|
3080
|
+
green: green$7,
|
|
3081
|
+
grey: grey$j,
|
|
3082
|
+
lightGrey: lightGrey$g,
|
|
3083
|
+
light: light$e
|
|
3047
3084
|
} = colors;
|
|
3048
3085
|
const Steps = /*#__PURE__*/_styled__default.ul.withConfig({
|
|
3049
3086
|
displayName: "styles__Steps",
|
|
@@ -3052,7 +3089,7 @@ const Steps = /*#__PURE__*/_styled__default.ul.withConfig({
|
|
|
3052
3089
|
const Step = /*#__PURE__*/_styled__default.li.withConfig({
|
|
3053
3090
|
displayName: "styles__Step",
|
|
3054
3091
|
componentId: "sc-1s2dhfy-1"
|
|
3055
|
-
})(["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$
|
|
3092
|
+
})(["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);
|
|
3056
3093
|
|
|
3057
3094
|
const WizardSteps = props => {
|
|
3058
3095
|
const {
|
|
@@ -3073,13 +3110,13 @@ const WizardSteps = props => {
|
|
|
3073
3110
|
};
|
|
3074
3111
|
|
|
3075
3112
|
const {
|
|
3076
|
-
light: light$
|
|
3077
|
-
green: green$
|
|
3078
|
-
darkGreen: darkGreen$
|
|
3079
|
-
red: red$
|
|
3080
|
-
darkRed: darkRed$
|
|
3081
|
-
orange
|
|
3082
|
-
darkOrange
|
|
3113
|
+
light: light$f,
|
|
3114
|
+
green: green$8,
|
|
3115
|
+
darkGreen: darkGreen$4,
|
|
3116
|
+
red: red$a,
|
|
3117
|
+
darkRed: darkRed$2,
|
|
3118
|
+
orange,
|
|
3119
|
+
darkOrange
|
|
3083
3120
|
} = colors;
|
|
3084
3121
|
const Wrapper$a = _styled__default.div`
|
|
3085
3122
|
--shadow: 0 0 ${/*#__PURE__*/polished.rem('25px')} 0 rgba(40, 40, 40, 0.2);
|
|
@@ -3087,14 +3124,14 @@ const Wrapper$a = _styled__default.div`
|
|
|
3087
3124
|
position: fixed;
|
|
3088
3125
|
top: ${/*#__PURE__*/polished.rem('15px')};
|
|
3089
3126
|
right: 0;
|
|
3090
|
-
border: ${/*#__PURE__*/polished.rem('2px')} solid ${darkGreen$
|
|
3127
|
+
border: ${/*#__PURE__*/polished.rem('2px')} solid ${darkGreen$4};
|
|
3091
3128
|
border-radius: ${/*#__PURE__*/polished.rem('6px')};
|
|
3092
|
-
background-color: ${green$
|
|
3129
|
+
background-color: ${green$8};
|
|
3093
3130
|
width: ${/*#__PURE__*/polished.rem('300px')};
|
|
3094
3131
|
max-height: min-content;
|
|
3095
3132
|
display: flex;
|
|
3096
3133
|
padding: ${/*#__PURE__*/polished.rem('15px')};
|
|
3097
|
-
color: ${light$
|
|
3134
|
+
color: ${light$f};
|
|
3098
3135
|
-moz-box-shadow: var(--shadow);
|
|
3099
3136
|
-webkit-box-shadow: var(--shadow);
|
|
3100
3137
|
box-shadow: var(--shadow);
|
|
@@ -3105,7 +3142,7 @@ const Wrapper$a = _styled__default.div`
|
|
|
3105
3142
|
background-color: transparent;
|
|
3106
3143
|
|
|
3107
3144
|
svg {
|
|
3108
|
-
fill: ${darkGreen$
|
|
3145
|
+
fill: ${darkGreen$4};
|
|
3109
3146
|
}
|
|
3110
3147
|
}
|
|
3111
3148
|
|
|
@@ -3127,23 +3164,23 @@ const Wrapper$a = _styled__default.div`
|
|
|
3127
3164
|
}
|
|
3128
3165
|
|
|
3129
3166
|
${props => props.variant === 'orange' && _styled.css`
|
|
3130
|
-
border: ${polished.rem('2px')} solid ${darkOrange
|
|
3131
|
-
background-color: ${orange
|
|
3167
|
+
border: ${polished.rem('2px')} solid ${darkOrange};
|
|
3168
|
+
background-color: ${orange};
|
|
3132
3169
|
|
|
3133
3170
|
button {
|
|
3134
3171
|
svg {
|
|
3135
|
-
fill: ${darkOrange
|
|
3172
|
+
fill: ${darkOrange};
|
|
3136
3173
|
}
|
|
3137
3174
|
}
|
|
3138
3175
|
`}
|
|
3139
3176
|
|
|
3140
3177
|
${props => props.variant === 'red' && _styled.css`
|
|
3141
|
-
border: ${polished.rem('2px')} solid ${darkRed$
|
|
3142
|
-
background-color: ${red$
|
|
3178
|
+
border: ${polished.rem('2px')} solid ${darkRed$2};
|
|
3179
|
+
background-color: ${red$a};
|
|
3143
3180
|
|
|
3144
3181
|
button {
|
|
3145
3182
|
svg {
|
|
3146
|
-
fill: ${darkRed$
|
|
3183
|
+
fill: ${darkRed$2};
|
|
3147
3184
|
}
|
|
3148
3185
|
}
|
|
3149
3186
|
`}
|
|
@@ -3183,14 +3220,14 @@ const AlertNotification = props => {
|
|
|
3183
3220
|
};
|
|
3184
3221
|
|
|
3185
3222
|
const {
|
|
3186
|
-
normal: normal$
|
|
3187
|
-
light: light$
|
|
3188
|
-
blue
|
|
3189
|
-
lightGrey: lightGrey$
|
|
3223
|
+
normal: normal$a,
|
|
3224
|
+
light: light$g,
|
|
3225
|
+
blue,
|
|
3226
|
+
lightGrey: lightGrey$h
|
|
3190
3227
|
} = colors;
|
|
3191
3228
|
const {
|
|
3192
|
-
bold: bold$
|
|
3193
|
-
} =
|
|
3229
|
+
bold: bold$5
|
|
3230
|
+
} = typography;
|
|
3194
3231
|
const PaginationWrapper = _styled__default.div`
|
|
3195
3232
|
--size: ${/*#__PURE__*/polished.rem('30px')};
|
|
3196
3233
|
|
|
@@ -3231,18 +3268,18 @@ const PaginationWrapper = _styled__default.div`
|
|
|
3231
3268
|
display: flex;
|
|
3232
3269
|
justify-content: center;
|
|
3233
3270
|
align-items: center;
|
|
3234
|
-
color: ${normal$
|
|
3235
|
-
font-weight: ${bold$
|
|
3271
|
+
color: ${normal$a};
|
|
3272
|
+
font-weight: ${bold$5};
|
|
3236
3273
|
text-decoration: none;
|
|
3237
3274
|
|
|
3238
3275
|
&:hover {
|
|
3239
|
-
color: ${blue
|
|
3276
|
+
color: ${blue};
|
|
3240
3277
|
}
|
|
3241
3278
|
|
|
3242
3279
|
svg {
|
|
3243
3280
|
width: ${/*#__PURE__*/polished.rem('18px')};
|
|
3244
3281
|
height: auto;
|
|
3245
|
-
fill: ${blue
|
|
3282
|
+
fill: ${blue};
|
|
3246
3283
|
}
|
|
3247
3284
|
}
|
|
3248
3285
|
|
|
@@ -3250,18 +3287,18 @@ const PaginationWrapper = _styled__default.div`
|
|
|
3250
3287
|
pointer-events: none;
|
|
3251
3288
|
|
|
3252
3289
|
a {
|
|
3253
|
-
background-color: ${blue
|
|
3254
|
-
color: ${light$
|
|
3290
|
+
background-color: ${blue};
|
|
3291
|
+
color: ${light$g};
|
|
3255
3292
|
}
|
|
3256
3293
|
}
|
|
3257
3294
|
}
|
|
3258
3295
|
|
|
3259
3296
|
&.dark {
|
|
3260
3297
|
a {
|
|
3261
|
-
color: ${lightGrey$
|
|
3298
|
+
color: ${lightGrey$h};
|
|
3262
3299
|
|
|
3263
3300
|
&:hover {
|
|
3264
|
-
color: ${light$
|
|
3301
|
+
color: ${light$g};
|
|
3265
3302
|
}
|
|
3266
3303
|
}
|
|
3267
3304
|
}
|
|
@@ -3320,12 +3357,12 @@ const PaginationControl = props => {
|
|
|
3320
3357
|
};
|
|
3321
3358
|
|
|
3322
3359
|
const {
|
|
3323
|
-
normal: normal$
|
|
3324
|
-
green: green$
|
|
3360
|
+
normal: normal$b,
|
|
3361
|
+
green: green$9
|
|
3325
3362
|
} = colors;
|
|
3326
3363
|
const {
|
|
3327
|
-
bold: bold$
|
|
3328
|
-
} =
|
|
3364
|
+
bold: bold$6
|
|
3365
|
+
} = typography;
|
|
3329
3366
|
const Wrapper$b = _styled__default.div`
|
|
3330
3367
|
min-height: ${props => props.variant === 'default' ? '50vh' : 'inherit'};
|
|
3331
3368
|
display: flex;
|
|
@@ -3342,15 +3379,15 @@ const Wrapper$b = _styled__default.div`
|
|
|
3342
3379
|
|
|
3343
3380
|
> span {
|
|
3344
3381
|
margin-top: ${/*#__PURE__*/polished.rem('15px')};
|
|
3345
|
-
font-weight: ${bold$
|
|
3346
|
-
color: ${normal$
|
|
3382
|
+
font-weight: ${bold$6};
|
|
3383
|
+
color: ${normal$b};
|
|
3347
3384
|
|
|
3348
3385
|
a {
|
|
3349
|
-
color: ${normal$
|
|
3386
|
+
color: ${normal$b};
|
|
3350
3387
|
transition-duration: 0.3s;
|
|
3351
3388
|
|
|
3352
3389
|
&:hover {
|
|
3353
|
-
color: ${green$
|
|
3390
|
+
color: ${green$9};
|
|
3354
3391
|
}
|
|
3355
3392
|
}
|
|
3356
3393
|
}
|
|
@@ -3370,12 +3407,12 @@ const Error = props => {
|
|
|
3370
3407
|
};
|
|
3371
3408
|
|
|
3372
3409
|
const {
|
|
3373
|
-
normal: normal$
|
|
3374
|
-
green: green$
|
|
3410
|
+
normal: normal$c,
|
|
3411
|
+
green: green$a
|
|
3375
3412
|
} = colors;
|
|
3376
3413
|
const {
|
|
3377
|
-
bold: bold$
|
|
3378
|
-
} =
|
|
3414
|
+
bold: bold$7
|
|
3415
|
+
} = typography;
|
|
3379
3416
|
const Wrapper$c = _styled__default.div`
|
|
3380
3417
|
min-height: 50vh;
|
|
3381
3418
|
display: flex;
|
|
@@ -3392,15 +3429,15 @@ const Wrapper$c = _styled__default.div`
|
|
|
3392
3429
|
|
|
3393
3430
|
> div {
|
|
3394
3431
|
margin-top: ${/*#__PURE__*/polished.rem('15px')};
|
|
3395
|
-
font-weight: ${bold$
|
|
3396
|
-
color: ${normal$
|
|
3432
|
+
font-weight: ${bold$7};
|
|
3433
|
+
color: ${normal$c};
|
|
3397
3434
|
|
|
3398
3435
|
a {
|
|
3399
|
-
color: ${normal$
|
|
3436
|
+
color: ${normal$c};
|
|
3400
3437
|
transition-duration: 0.3s;
|
|
3401
3438
|
|
|
3402
3439
|
&:hover {
|
|
3403
|
-
color: ${green$
|
|
3440
|
+
color: ${green$a};
|
|
3404
3441
|
}
|
|
3405
3442
|
}
|
|
3406
3443
|
}
|
|
@@ -5368,12 +5405,12 @@ const DataWarning = props => {
|
|
|
5368
5405
|
};
|
|
5369
5406
|
|
|
5370
5407
|
const {
|
|
5371
|
-
normal: normal$
|
|
5372
|
-
green: green$
|
|
5373
|
-
darkGreen: darkGreen$
|
|
5374
|
-
grey: grey$
|
|
5375
|
-
lightGrey: lightGrey$
|
|
5376
|
-
red: red$
|
|
5408
|
+
normal: normal$d,
|
|
5409
|
+
green: green$b,
|
|
5410
|
+
darkGreen: darkGreen$5,
|
|
5411
|
+
grey: grey$k,
|
|
5412
|
+
lightGrey: lightGrey$i,
|
|
5413
|
+
red: red$b
|
|
5377
5414
|
} = colors;
|
|
5378
5415
|
const Wrapper$d = _styled__default.ul`
|
|
5379
5416
|
display: flex;
|
|
@@ -5396,11 +5433,11 @@ const Wrapper$d = _styled__default.ul`
|
|
|
5396
5433
|
}
|
|
5397
5434
|
|
|
5398
5435
|
input[type='radio']:checked ~ .check {
|
|
5399
|
-
border-color: ${darkGreen$
|
|
5436
|
+
border-color: ${darkGreen$5};
|
|
5400
5437
|
}
|
|
5401
5438
|
|
|
5402
5439
|
input[type='radio']:checked ~ .check::before {
|
|
5403
|
-
background-color: ${green$
|
|
5440
|
+
background-color: ${green$b};
|
|
5404
5441
|
}
|
|
5405
5442
|
|
|
5406
5443
|
& + span {
|
|
@@ -5423,7 +5460,7 @@ const Item = _styled__default.li`
|
|
|
5423
5460
|
padding-left: calc(var(--size) + 5px);
|
|
5424
5461
|
line-height: var(--size);
|
|
5425
5462
|
vertical-align: middle;
|
|
5426
|
-
color: ${props => props.error ? red$
|
|
5463
|
+
color: ${props => props.error ? red$b : null};
|
|
5427
5464
|
cursor: pointer;
|
|
5428
5465
|
z-index: 1;
|
|
5429
5466
|
}
|
|
@@ -5431,7 +5468,7 @@ const Item = _styled__default.li`
|
|
|
5431
5468
|
.check {
|
|
5432
5469
|
position: absolute;
|
|
5433
5470
|
top: 0;
|
|
5434
|
-
border: ${/*#__PURE__*/polished.rem('2px')} solid ${props => props.error ? red$
|
|
5471
|
+
border: ${/*#__PURE__*/polished.rem('2px')} solid ${props => props.error ? red$b : grey$k};
|
|
5435
5472
|
border-radius: 100%;
|
|
5436
5473
|
width: var(--size);
|
|
5437
5474
|
height: var(--size);
|
|
@@ -5450,21 +5487,21 @@ const Item = _styled__default.li`
|
|
|
5450
5487
|
}
|
|
5451
5488
|
|
|
5452
5489
|
&:hover .check {
|
|
5453
|
-
border-color: ${normal$
|
|
5490
|
+
border-color: ${normal$d};
|
|
5454
5491
|
}
|
|
5455
5492
|
|
|
5456
5493
|
${props => props.disabled && _styled.css`
|
|
5457
5494
|
label {
|
|
5458
|
-
color: ${grey$
|
|
5495
|
+
color: ${grey$k};
|
|
5459
5496
|
}
|
|
5460
5497
|
|
|
5461
5498
|
input[type='radio'] ~ .check,
|
|
5462
5499
|
input[type='radio']:checked ~ .check {
|
|
5463
|
-
border-color: ${lightGrey$
|
|
5500
|
+
border-color: ${lightGrey$i};
|
|
5464
5501
|
}
|
|
5465
5502
|
|
|
5466
5503
|
input[type='radio']:checked ~ .check::before {
|
|
5467
|
-
background-color: ${lightGrey$
|
|
5504
|
+
background-color: ${lightGrey$i};
|
|
5468
5505
|
}
|
|
5469
5506
|
|
|
5470
5507
|
&:hover {
|
|
@@ -5570,10 +5607,10 @@ const Wrapper$f = _styled__default.div`
|
|
|
5570
5607
|
}
|
|
5571
5608
|
`;
|
|
5572
5609
|
const {
|
|
5573
|
-
grey: grey$
|
|
5574
|
-
darkGrey: darkGrey$
|
|
5575
|
-
light: light$
|
|
5576
|
-
|
|
5610
|
+
grey: grey$l,
|
|
5611
|
+
darkGrey: darkGrey$2,
|
|
5612
|
+
light: light$h,
|
|
5613
|
+
purple500: purple500$4
|
|
5577
5614
|
} = colors;
|
|
5578
5615
|
const Field = _styled__default.div`
|
|
5579
5616
|
display: flex;
|
|
@@ -5587,7 +5624,7 @@ const Field = _styled__default.div`
|
|
|
5587
5624
|
outline: none;
|
|
5588
5625
|
|
|
5589
5626
|
+ button {
|
|
5590
|
-
background-color: ${
|
|
5627
|
+
background-color: ${purple500$4};
|
|
5591
5628
|
}
|
|
5592
5629
|
}
|
|
5593
5630
|
}
|
|
@@ -5600,7 +5637,7 @@ const Field = _styled__default.div`
|
|
|
5600
5637
|
button {
|
|
5601
5638
|
border: 0;
|
|
5602
5639
|
border-radius: 0 ${/*#__PURE__*/polished.rem('6px')} ${/*#__PURE__*/polished.rem('6px')} 0;
|
|
5603
|
-
background-color: ${grey$
|
|
5640
|
+
background-color: ${grey$l};
|
|
5604
5641
|
min-width: ${/*#__PURE__*/polished.rem('50px')};
|
|
5605
5642
|
height: ${/*#__PURE__*/polished.rem('50px')};
|
|
5606
5643
|
display: flex;
|
|
@@ -5616,12 +5653,12 @@ const Field = _styled__default.div`
|
|
|
5616
5653
|
width: auto;
|
|
5617
5654
|
min-width: ${/*#__PURE__*/polished.rem('20px')};
|
|
5618
5655
|
height: ${/*#__PURE__*/polished.rem('20px')};
|
|
5619
|
-
fill: ${light$
|
|
5656
|
+
fill: ${light$h};
|
|
5620
5657
|
transition: 0.3s;
|
|
5621
5658
|
}
|
|
5622
5659
|
|
|
5623
5660
|
&:hover {
|
|
5624
|
-
background-color: ${darkGrey$
|
|
5661
|
+
background-color: ${darkGrey$2};
|
|
5625
5662
|
}
|
|
5626
5663
|
|
|
5627
5664
|
&:disabled {
|
|
@@ -5629,7 +5666,7 @@ const Field = _styled__default.div`
|
|
|
5629
5666
|
opacity: 0.5;
|
|
5630
5667
|
|
|
5631
5668
|
&:hover {
|
|
5632
|
-
background-color: ${grey$
|
|
5669
|
+
background-color: ${grey$l};
|
|
5633
5670
|
pointer-events: none;
|
|
5634
5671
|
}
|
|
5635
5672
|
}
|
|
@@ -5675,23 +5712,23 @@ const FieldWidthButton = props => {
|
|
|
5675
5712
|
};
|
|
5676
5713
|
|
|
5677
5714
|
const {
|
|
5678
|
-
normal: normal$
|
|
5679
|
-
|
|
5680
|
-
grey: grey$
|
|
5681
|
-
lightGrey: lightGrey$
|
|
5682
|
-
light: light$
|
|
5715
|
+
normal: normal$e,
|
|
5716
|
+
purple500: purple500$5,
|
|
5717
|
+
grey: grey$m,
|
|
5718
|
+
lightGrey: lightGrey$j,
|
|
5719
|
+
light: light$i
|
|
5683
5720
|
} = colors;
|
|
5684
5721
|
const {
|
|
5685
|
-
bold: bold$
|
|
5686
|
-
} =
|
|
5722
|
+
bold: bold$8
|
|
5723
|
+
} = typography;
|
|
5687
5724
|
const Wrapper$g = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5688
5725
|
displayName: "styles__Wrapper",
|
|
5689
5726
|
componentId: "znznmm-0"
|
|
5690
|
-
})(["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$
|
|
5727
|
+
})(["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);
|
|
5691
5728
|
const More = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5692
5729
|
displayName: "styles__More",
|
|
5693
5730
|
componentId: "znznmm-1"
|
|
5694
|
-
})(["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$
|
|
5731
|
+
})(["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'));
|
|
5695
5732
|
|
|
5696
5733
|
const HorizontalNav = props => {
|
|
5697
5734
|
const [showMore, setShowMore] = React.useState(false);
|
|
@@ -5768,11 +5805,11 @@ const HorizontalNav = props => {
|
|
|
5768
5805
|
};
|
|
5769
5806
|
|
|
5770
5807
|
const {
|
|
5771
|
-
light: light$
|
|
5808
|
+
light: light$j
|
|
5772
5809
|
} = colors;
|
|
5773
5810
|
const {
|
|
5774
|
-
bold: bold$
|
|
5775
|
-
} =
|
|
5811
|
+
bold: bold$9
|
|
5812
|
+
} = typography;
|
|
5776
5813
|
const ModalOverlay = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5777
5814
|
displayName: "styles__ModalOverlay",
|
|
5778
5815
|
componentId: "sc-16r6vcc-0"
|
|
@@ -5784,11 +5821,11 @@ const ModalWrapper = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
5784
5821
|
const ModalContainer = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5785
5822
|
displayName: "styles__ModalContainer",
|
|
5786
5823
|
componentId: "sc-16r6vcc-2"
|
|
5787
|
-
})(["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$
|
|
5824
|
+
})(["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'));
|
|
5788
5825
|
const ModalHeader = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5789
5826
|
displayName: "styles__ModalHeader",
|
|
5790
5827
|
componentId: "sc-16r6vcc-3"
|
|
5791
|
-
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;
|
|
5828
|
+
})(["display:flex;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}button{display:none;position:absolute;top:0;right:0;margin:", " ", " 0 0;border:", " solid ", ";min-width:", ";height:", ";z-index:1;@media ", "{display:inherit;}}"], /*#__PURE__*/polished.rem('30px'), bold$9, /*#__PURE__*/polished.rem('-14px'), /*#__PURE__*/polished.rem('-14px'), /*#__PURE__*/polished.rem('2px'), colors.grey200, /*#__PURE__*/polished.rem('28px'), /*#__PURE__*/polished.rem('28px'), device.s);
|
|
5792
5829
|
|
|
5793
5830
|
const Modal = props => {
|
|
5794
5831
|
const {
|
|
@@ -5827,11 +5864,12 @@ const Modal = props => {
|
|
|
5827
5864
|
zIndex: zIndex,
|
|
5828
5865
|
className: "modal"
|
|
5829
5866
|
}, /*#__PURE__*/React__default.createElement(ModalHeader, null, title && /*#__PURE__*/React__default.createElement("h2", null, title), /*#__PURE__*/React__default.createElement(Button, {
|
|
5830
|
-
|
|
5831
|
-
|
|
5867
|
+
color: "white",
|
|
5868
|
+
txtColor: "grey200",
|
|
5832
5869
|
icon: "cross",
|
|
5833
5870
|
ariaLabel: "Close",
|
|
5834
|
-
action: hide
|
|
5871
|
+
action: hide,
|
|
5872
|
+
rounded: true
|
|
5835
5873
|
})), children, footer && /*#__PURE__*/React__default.createElement(ModalFooter, {
|
|
5836
5874
|
closeAction: hide,
|
|
5837
5875
|
closeValue: closeValue
|
|
@@ -5839,11 +5877,11 @@ const Modal = props => {
|
|
|
5839
5877
|
};
|
|
5840
5878
|
|
|
5841
5879
|
const {
|
|
5842
|
-
light: light$
|
|
5880
|
+
light: light$k
|
|
5843
5881
|
} = colors;
|
|
5844
5882
|
const {
|
|
5845
|
-
bold: bold$
|
|
5846
|
-
} =
|
|
5883
|
+
bold: bold$a
|
|
5884
|
+
} = typography;
|
|
5847
5885
|
const slideInLeft = _styled.keyframes`
|
|
5848
5886
|
from {
|
|
5849
5887
|
transform: translateX(100%);
|
|
@@ -5864,11 +5902,11 @@ const ModalWrapper$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
|
5864
5902
|
const ModalContainer$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5865
5903
|
displayName: "styles__ModalContainer",
|
|
5866
5904
|
componentId: "sc-46huls-2"
|
|
5867
|
-
})(["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$
|
|
5905
|
+
})(["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'));
|
|
5868
5906
|
const ModalHeader$1 = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5869
5907
|
displayName: "styles__ModalHeader",
|
|
5870
5908
|
componentId: "sc-46huls-3"
|
|
5871
|
-
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/polished.rem('30px'), bold$
|
|
5909
|
+
})(["top:0;h2{margin:0 0 ", " 0;font-size:2rem;font-weight:", ";}"], /*#__PURE__*/polished.rem('30px'), bold$a);
|
|
5872
5910
|
const ModalContent = /*#__PURE__*/_styled__default.div.withConfig({
|
|
5873
5911
|
displayName: "styles__ModalContent",
|
|
5874
5912
|
componentId: "sc-46huls-4"
|
|
@@ -5919,7 +5957,7 @@ const ModalDrawer = props => {
|
|
|
5919
5957
|
};
|
|
5920
5958
|
|
|
5921
5959
|
const {
|
|
5922
|
-
lightGrey: lightGrey$
|
|
5960
|
+
lightGrey: lightGrey$k
|
|
5923
5961
|
} = colors;
|
|
5924
5962
|
const Wrapper$h = _styled__default.div`
|
|
5925
5963
|
div {
|
|
@@ -5982,7 +6020,7 @@ const Wrapper$h = _styled__default.div`
|
|
|
5982
6020
|
|
|
5983
6021
|
.card {
|
|
5984
6022
|
position: relative;
|
|
5985
|
-
border: ${/*#__PURE__*/polished.rem('2px')} solid ${lightGrey$
|
|
6023
|
+
border: ${/*#__PURE__*/polished.rem('2px')} solid ${lightGrey$k};
|
|
5986
6024
|
border-radius: ${/*#__PURE__*/polished.rem('6px')};
|
|
5987
6025
|
width: ${/*#__PURE__*/polished.rem('300px')};
|
|
5988
6026
|
overflow: hidden;
|
|
@@ -5997,7 +6035,7 @@ const Wrapper$h = _styled__default.div`
|
|
|
5997
6035
|
margin: ${/*#__PURE__*/polished.rem('-45px')} 0 0 ${/*#__PURE__*/polished.rem('20px')};
|
|
5998
6036
|
width: ${/*#__PURE__*/polished.rem('90px')};
|
|
5999
6037
|
height: ${/*#__PURE__*/polished.rem('90px')};
|
|
6000
|
-
border: ${/*#__PURE__*/polished.rem('1px')} solid ${lightGrey$
|
|
6038
|
+
border: ${/*#__PURE__*/polished.rem('1px')} solid ${lightGrey$k};
|
|
6001
6039
|
border-radius: 999px;
|
|
6002
6040
|
}
|
|
6003
6041
|
|
|
@@ -6016,25 +6054,6 @@ const Wrapper$h = _styled__default.div`
|
|
|
6016
6054
|
}
|
|
6017
6055
|
}
|
|
6018
6056
|
`;
|
|
6019
|
-
const Table$3 = _styled__default.div`
|
|
6020
|
-
--columns: ${props => props.columnsNumber};
|
|
6021
|
-
|
|
6022
|
-
display: grid;
|
|
6023
|
-
grid-template-columns: repeat(4, 1fr);
|
|
6024
|
-
grid-template-columns: repeat(var(--columns), 1fr);
|
|
6025
|
-
grid-gap: ${/*#__PURE__*/polished.rem('15px')};
|
|
6026
|
-
padding: ${/*#__PURE__*/polished.rem('15px')};
|
|
6027
|
-
|
|
6028
|
-
.header {
|
|
6029
|
-
width: 50%;
|
|
6030
|
-
height: ${/*#__PURE__*/polished.rem('15px')};
|
|
6031
|
-
}
|
|
6032
|
-
|
|
6033
|
-
.cell {
|
|
6034
|
-
width: 100%;
|
|
6035
|
-
height: ${/*#__PURE__*/polished.rem('15px')};
|
|
6036
|
-
}
|
|
6037
|
-
`;
|
|
6038
6057
|
const Grid = _styled__default.div`
|
|
6039
6058
|
display: grid;
|
|
6040
6059
|
grid-template-columns: repeat(auto-fill, ${/*#__PURE__*/polished.rem('300px')});
|
|
@@ -6047,15 +6066,10 @@ const LoadingState = props => {
|
|
|
6047
6066
|
type = 'text',
|
|
6048
6067
|
lines = 3,
|
|
6049
6068
|
cardsNumber = 4,
|
|
6050
|
-
header = true,
|
|
6051
|
-
columnsNumber = 4,
|
|
6052
|
-
rowsNumber = 3,
|
|
6053
6069
|
center = true
|
|
6054
6070
|
} = props;
|
|
6055
6071
|
let paragraphs = [];
|
|
6056
6072
|
let cards = [];
|
|
6057
|
-
let tableHeader = [];
|
|
6058
|
-
let columns = [];
|
|
6059
6073
|
let loadingType;
|
|
6060
6074
|
|
|
6061
6075
|
for (let i = 0; i < lines; i++) {
|
|
@@ -6086,20 +6100,6 @@ const LoadingState = props => {
|
|
|
6086
6100
|
})));
|
|
6087
6101
|
}
|
|
6088
6102
|
|
|
6089
|
-
for (let i = 0; i < columnsNumber; i++) {
|
|
6090
|
-
tableHeader.push( /*#__PURE__*/React__default.createElement("div", {
|
|
6091
|
-
key: i,
|
|
6092
|
-
className: "header"
|
|
6093
|
-
}));
|
|
6094
|
-
}
|
|
6095
|
-
|
|
6096
|
-
for (let i = 0; i < columnsNumber * rowsNumber; i++) {
|
|
6097
|
-
columns.push( /*#__PURE__*/React__default.createElement("div", {
|
|
6098
|
-
key: i,
|
|
6099
|
-
className: "cell"
|
|
6100
|
-
}));
|
|
6101
|
-
}
|
|
6102
|
-
|
|
6103
6103
|
switch (type) {
|
|
6104
6104
|
case 'text':
|
|
6105
6105
|
loadingType = /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -6115,13 +6115,6 @@ const LoadingState = props => {
|
|
|
6115
6115
|
}, cards);
|
|
6116
6116
|
break;
|
|
6117
6117
|
|
|
6118
|
-
case 'table':
|
|
6119
|
-
loadingType = /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Table$3, {
|
|
6120
|
-
className: "table",
|
|
6121
|
-
columnsNumber: columnsNumber
|
|
6122
|
-
}, header && tableHeader, columns));
|
|
6123
|
-
break;
|
|
6124
|
-
|
|
6125
6118
|
case 'value':
|
|
6126
6119
|
loadingType = /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
6127
6120
|
className: "value"
|
|
@@ -6142,26 +6135,26 @@ const LoadingState = props => {
|
|
|
6142
6135
|
};
|
|
6143
6136
|
|
|
6144
6137
|
const {
|
|
6145
|
-
normal: normal$
|
|
6146
|
-
grey: grey$
|
|
6147
|
-
lightGrey: lightGrey$
|
|
6148
|
-
light: light$
|
|
6138
|
+
normal: normal$f,
|
|
6139
|
+
grey: grey$n,
|
|
6140
|
+
lightGrey: lightGrey$l,
|
|
6141
|
+
light: light$l
|
|
6149
6142
|
} = colors;
|
|
6150
6143
|
const Wrapper$i = _styled__default.div`
|
|
6151
6144
|
.tab {
|
|
6152
|
-
border-color: ${lightGrey$
|
|
6145
|
+
border-color: ${lightGrey$l};
|
|
6153
6146
|
|
|
6154
6147
|
&[aria-selected='true'] {
|
|
6155
6148
|
border-bottom: 0;
|
|
6156
6149
|
}
|
|
6157
6150
|
|
|
6158
6151
|
&[aria-selected='false'] {
|
|
6159
|
-
background-color: ${lightGrey$
|
|
6160
|
-
color: ${grey$
|
|
6152
|
+
background-color: ${lightGrey$l};
|
|
6153
|
+
color: ${grey$n};
|
|
6161
6154
|
transition-duration: 0.3s;
|
|
6162
6155
|
|
|
6163
6156
|
&:hover {
|
|
6164
|
-
color: ${normal$
|
|
6157
|
+
color: ${normal$f};
|
|
6165
6158
|
}
|
|
6166
6159
|
}
|
|
6167
6160
|
|
|
@@ -6176,8 +6169,8 @@ const Wrapper$i = _styled__default.div`
|
|
|
6176
6169
|
|
|
6177
6170
|
.panel {
|
|
6178
6171
|
border-radius: 0 ${/*#__PURE__*/polished.rem('6px')} ${/*#__PURE__*/polished.rem('6px')} ${/*#__PURE__*/polished.rem('6px')};
|
|
6179
|
-
border-color: ${lightGrey$
|
|
6180
|
-
background-color: ${light$
|
|
6172
|
+
border-color: ${lightGrey$l};
|
|
6173
|
+
background-color: ${light$l};
|
|
6181
6174
|
padding: ${/*#__PURE__*/polished.rem('30px')};
|
|
6182
6175
|
}
|
|
6183
6176
|
|
|
@@ -6197,7 +6190,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6197
6190
|
.RRT__tab {
|
|
6198
6191
|
background: #eee;
|
|
6199
6192
|
border-style: solid;
|
|
6200
|
-
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6193
|
+
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6201
6194
|
border-width: ${/*#__PURE__*/polished.rem('1px')} ${/*#__PURE__*/polished.rem('1px')} ${/*#__PURE__*/polished.rem('1px')} 0;
|
|
6202
6195
|
cursor: pointer;
|
|
6203
6196
|
z-index: 1;
|
|
@@ -6207,7 +6200,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6207
6200
|
|
|
6208
6201
|
.RRT__tab:focus {
|
|
6209
6202
|
outline: 0;
|
|
6210
|
-
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6203
|
+
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6211
6204
|
}
|
|
6212
6205
|
|
|
6213
6206
|
.RRT__accordion .RRT__tab {
|
|
@@ -6219,12 +6212,12 @@ const Wrapper$i = _styled__default.div`
|
|
|
6219
6212
|
}
|
|
6220
6213
|
|
|
6221
6214
|
.RRT__tab--selected {
|
|
6222
|
-
background: ${light$
|
|
6223
|
-
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6215
|
+
background: ${light$l};
|
|
6216
|
+
border-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)} ${/*#__PURE__*/polished.lighten(0.25, grey$n)} ${light$l};
|
|
6224
6217
|
}
|
|
6225
6218
|
|
|
6226
6219
|
.RRT__tab--selected:focus {
|
|
6227
|
-
background-color: ${light$
|
|
6220
|
+
background-color: ${light$l};
|
|
6228
6221
|
}
|
|
6229
6222
|
|
|
6230
6223
|
.RRT__tab--disabled {
|
|
@@ -6254,7 +6247,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6254
6247
|
.RRT__panel {
|
|
6255
6248
|
margin-top: ${/*#__PURE__*/polished.rem('-1px')};
|
|
6256
6249
|
padding: 1em;
|
|
6257
|
-
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6250
|
+
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6258
6251
|
}
|
|
6259
6252
|
|
|
6260
6253
|
.RRT__panel--hidden {
|
|
@@ -6266,8 +6259,8 @@ const Wrapper$i = _styled__default.div`
|
|
|
6266
6259
|
}
|
|
6267
6260
|
|
|
6268
6261
|
.RRT__showmore {
|
|
6269
|
-
background: ${lightGrey$
|
|
6270
|
-
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6262
|
+
background: ${lightGrey$l};
|
|
6263
|
+
border: ${/*#__PURE__*/polished.rem('1px')} solid ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6271
6264
|
border-radius: 0 ${/*#__PURE__*/polished.rem('6px')} 0 0;
|
|
6272
6265
|
cursor: pointer;
|
|
6273
6266
|
z-index: 1;
|
|
@@ -6277,7 +6270,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6277
6270
|
}
|
|
6278
6271
|
|
|
6279
6272
|
.RRT__showmore--selected {
|
|
6280
|
-
background: ${light$
|
|
6273
|
+
background: ${light$l};
|
|
6281
6274
|
border-bottom: none;
|
|
6282
6275
|
}
|
|
6283
6276
|
|
|
@@ -6288,7 +6281,7 @@ const Wrapper$i = _styled__default.div`
|
|
|
6288
6281
|
}
|
|
6289
6282
|
|
|
6290
6283
|
.RRT__showmore-label--selected {
|
|
6291
|
-
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$
|
|
6284
|
+
background-color: ${/*#__PURE__*/polished.lighten(0.25, grey$n)};
|
|
6292
6285
|
}
|
|
6293
6286
|
|
|
6294
6287
|
.RRT__showmore-list {
|