@livepeer/design-system 1.1.0-0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +30 -30
- package/dist/components/Accordion.d.ts +0 -1512
- package/dist/components/Alert.d.ts +0 -752
- package/dist/components/AlertDialog.d.ts +0 -15
- package/dist/components/AppBar.d.ts +0 -755
- package/dist/components/Avatar.d.ts +0 -2270
- package/dist/components/Badge.d.ts +0 -753
- package/dist/components/Banner.d.ts +0 -754
- package/dist/components/Box.d.ts +0 -749
- package/dist/components/Button.d.ts +0 -753
- package/dist/components/Card.d.ts +0 -751
- package/dist/components/Checkbox.d.ts +0 -761
- package/dist/components/Code.d.ts +0 -751
- package/dist/components/Container.d.ts +0 -751
- package/dist/components/ContextMenu.d.ts +0 -3766
- package/dist/components/ControlGroup.d.ts +0 -749
- package/dist/components/DesignSystemProvider.d.ts +0 -9
- package/dist/components/Dialog.d.ts +0 -18
- package/dist/components/DropdownMenu.d.ts +0 -6016
- package/dist/components/Flex.d.ts +0 -755
- package/dist/components/Grid.d.ts +0 -757
- package/dist/components/Heading.d.ts +0 -14
- package/dist/components/IconButton.d.ts +0 -753
- package/dist/components/Image.d.ts +0 -749
- package/dist/components/Kbd.d.ts +0 -752
- package/dist/components/Label.d.ts +0 -755
- package/dist/components/Link.d.ts +0 -751
- package/dist/components/Menu.d.ts +0 -10498
- package/dist/components/Overlay.d.ts +0 -1498
- package/dist/components/Panel.d.ts +0 -1498
- package/dist/components/Paragraph.d.ts +0 -14
- package/dist/components/Popover.d.ts +0 -13
- package/dist/components/ProgressBar.d.ts +0 -761
- package/dist/components/Promo.d.ts +0 -754
- package/dist/components/Radio.d.ts +0 -1510
- package/dist/components/RadioCard.d.ts +0 -758
- package/dist/components/RadioGrid.d.ts +0 -1500
- package/dist/components/Scrollbar.d.ts +0 -6
- package/dist/components/Section.d.ts +0 -751
- package/dist/components/Select.d.ts +0 -1504
- package/dist/components/Separator.d.ts +0 -753
- package/dist/components/Sheet.d.ts +0 -766
- package/dist/components/SimpleToggle.d.ts +0 -753
- package/dist/components/Skeleton.d.ts +0 -751
- package/dist/components/Slider.d.ts +0 -758
- package/dist/components/Snackbar/SnackbarProvider.d.ts +0 -15
- package/dist/components/Snackbar/index.d.ts +0 -2
- package/dist/components/Snackbar/transitionStyles.d.ts +0 -87
- package/dist/components/Snackbar/useSnackbar.d.ts +0 -5
- package/dist/components/Status.d.ts +0 -752
- package/dist/components/Sub.d.ts +0 -749
- package/dist/components/Sup.d.ts +0 -749
- package/dist/components/Switch.d.ts +0 -1509
- package/dist/components/TabLink.d.ts +0 -751
- package/dist/components/Table.d.ts +0 -6000
- package/dist/components/Tabs.d.ts +0 -4500
- package/dist/components/Text.d.ts +0 -753
- package/dist/components/TextArea.d.ts +0 -753
- package/dist/components/TextField.d.ts +0 -754
- package/dist/components/Tooltip.d.ts +0 -10
- package/dist/components/TreeItem.d.ts +0 -751
- package/dist/components/VerifiedBadge.d.ts +0 -762
- package/dist/custom/AppBar.d.ts +0 -755
- package/dist/custom/Avatars.d.ts +0 -2
- package/dist/custom/DarkThemeButton.d.ts +0 -2
- package/dist/custom/Kbds.d.ts +0 -2
- package/dist/custom/Snackbar.d.ts +0 -2
- package/dist/custom/Toolbar.d.ts +0 -2
- package/dist/index.d.ts +0 -61
- package/dist/index.es.js +0 -4912
- package/dist/index.js +0 -5127
- package/dist/stitches.config.d.ts +0 -6321
package/dist/index.es.js
DELETED
@@ -1,4912 +0,0 @@
|
|
1
|
-
export { AccessibleIcon } from '@radix-ui/react-accessible-icon';
|
2
|
-
export { AspectRatio } from '@radix-ui/react-aspect-ratio';
|
3
|
-
export { Arrow as HoverCardArrow, Content as HoverCardContent, Root as HoverCardRoot, Trigger as HoverCardTrigger } from '@radix-ui/react-hover-card';
|
4
|
-
export { Portal } from '@radix-ui/react-portal';
|
5
|
-
export { Corner as ScrollAreaCorner, Root as ScrollAreaRoot, Scrollbar as ScrollAreaScrollbar, Thumb as ScrollAreaThumb, Viewport as ScrollAreaViewport } from '@radix-ui/react-scroll-area';
|
6
|
-
import { __assign, __spreadArray, __rest } from 'tslib';
|
7
|
-
import React, { createContext, useState, useContext } from 'react';
|
8
|
-
import { createStitches } from '@stitches/react';
|
9
|
-
import { gray, mauve, slate, sage, olive, sand, tomato, red, crimson, pink, plum, purple, violet, indigo, blue, sky, mint, cyan, teal, green, grass, lime, yellow, amber, orange, brown, bronze, gold, whiteA, blackA, grayDark, mauveDark, slateDark, sageDark, oliveDark, sandDark, tomatoDark, redDark, crimsonDark, pinkDark, plumDark, purpleDark, violetDark, indigoDark, blueDark, skyDark, mintDark, cyanDark, tealDark, greenDark, grassDark, limeDark, yellowDark, amberDark, orangeDark, brownDark, bronzeDark, goldDark } from '@radix-ui/colors';
|
10
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
11
|
-
import { ChevronDownIcon, CheckIcon, CaretSortIcon, Cross1Icon } from '@radix-ui/react-icons';
|
12
|
-
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
13
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
14
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
15
|
-
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
16
|
-
import * as MenuPrimitive from '@radix-ui/react-menu';
|
17
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
18
|
-
import { TooltipProvider } from '@radix-ui/react-tooltip';
|
19
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
20
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
21
|
-
import merge from 'lodash.merge';
|
22
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
23
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
24
|
-
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
25
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
26
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
27
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
28
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
29
|
-
import { CSSTransition } from 'react-transition-group';
|
30
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
31
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
32
|
-
|
33
|
-
var _a$8;
|
34
|
-
var fonts = {
|
35
|
-
body: "Inter, -apple-system, system-ui, sans-serif",
|
36
|
-
mono: "menlo, monospace",
|
37
|
-
};
|
38
|
-
var styled = (_a$8 = createStitches({
|
39
|
-
theme: {
|
40
|
-
colors: __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, gray), mauve), slate), sage), olive), sand), tomato), red), crimson), pink), plum), purple), violet), indigo), blue), sky), mint), cyan), teal), green), grass), lime), yellow), amber), orange), brown), bronze), gold), whiteA), blackA), {
|
41
|
-
// Semantic colors
|
42
|
-
hiContrast: "$slate12",
|
43
|
-
// loContrast: '$slate1',
|
44
|
-
loContrast: "white", canvas: "hsl(0 0% 93%)", panel: "white", transparentPanel: "hsl(0 0% 0% / 97%)", shadowLight: "hsl(206 22% 7% / 35%)", shadowDark: "hsl(206 22% 7% / 20%)" }),
|
45
|
-
fonts: {
|
46
|
-
untitled: "Untitled Sans, -apple-system, system-ui, sans-serif",
|
47
|
-
mono: "Söhne Mono, menlo, monospace",
|
48
|
-
},
|
49
|
-
space: {
|
50
|
-
1: "5px",
|
51
|
-
2: "10px",
|
52
|
-
3: "15px",
|
53
|
-
4: "20px",
|
54
|
-
5: "25px",
|
55
|
-
6: "35px",
|
56
|
-
7: "45px",
|
57
|
-
8: "65px",
|
58
|
-
9: "80px",
|
59
|
-
},
|
60
|
-
sizes: {
|
61
|
-
1: "5px",
|
62
|
-
2: "10px",
|
63
|
-
3: "15px",
|
64
|
-
4: "20px",
|
65
|
-
5: "25px",
|
66
|
-
6: "35px",
|
67
|
-
7: "45px",
|
68
|
-
8: "65px",
|
69
|
-
9: "80px",
|
70
|
-
},
|
71
|
-
// space: {
|
72
|
-
// 1: '4px',
|
73
|
-
// 2: '8px',
|
74
|
-
// 3: '16px',
|
75
|
-
// 4: '20px',
|
76
|
-
// 5: '24px',
|
77
|
-
// 6: '32px',
|
78
|
-
// 7: '48px',
|
79
|
-
// 8: '64px',
|
80
|
-
// 9: '80px',
|
81
|
-
// },
|
82
|
-
// sizes: {
|
83
|
-
// 1: '4px',
|
84
|
-
// 2: '8px',
|
85
|
-
// 3: '16px',
|
86
|
-
// 4: '20px',
|
87
|
-
// 5: '24px',
|
88
|
-
// 6: '32px',
|
89
|
-
// 7: '48px',
|
90
|
-
// 8: '64px',
|
91
|
-
// 9: '80px',
|
92
|
-
// },
|
93
|
-
fontSizes: {
|
94
|
-
1: "12px",
|
95
|
-
2: "13px",
|
96
|
-
3: "15px",
|
97
|
-
4: "17px",
|
98
|
-
5: "19px",
|
99
|
-
6: "21px",
|
100
|
-
7: "27px",
|
101
|
-
8: "35px",
|
102
|
-
9: "59px",
|
103
|
-
},
|
104
|
-
// fontSizes: {
|
105
|
-
// 1: '11px',
|
106
|
-
// 2: '12px',
|
107
|
-
// 3: '15px',
|
108
|
-
// 4: '17px',
|
109
|
-
// 5: '20px',
|
110
|
-
// 6: '22px',
|
111
|
-
// 7: '28px',
|
112
|
-
// 8: '36px',
|
113
|
-
// 9: '60px',
|
114
|
-
// },
|
115
|
-
radii: {
|
116
|
-
1: "4px",
|
117
|
-
2: "6px",
|
118
|
-
3: "8px",
|
119
|
-
4: "12px",
|
120
|
-
round: "50%",
|
121
|
-
pill: "9999px",
|
122
|
-
},
|
123
|
-
zIndices: {
|
124
|
-
1: "100",
|
125
|
-
2: "200",
|
126
|
-
3: "300",
|
127
|
-
4: "400",
|
128
|
-
max: "999",
|
129
|
-
},
|
130
|
-
},
|
131
|
-
media: {
|
132
|
-
bp1: "(min-width: 520px)",
|
133
|
-
bp2: "(min-width: 900px)",
|
134
|
-
bp3: "(min-width: 1200px)",
|
135
|
-
bp4: "(min-width: 1800px)",
|
136
|
-
motion: "(prefers-reduced-motion)",
|
137
|
-
hover: "(any-hover: hover)",
|
138
|
-
dark: "(prefers-color-scheme: dark)",
|
139
|
-
light: "(prefers-color-scheme: light)",
|
140
|
-
},
|
141
|
-
utils: {
|
142
|
-
p: function (value) { return ({
|
143
|
-
padding: value,
|
144
|
-
}); },
|
145
|
-
pt: function (value) { return ({
|
146
|
-
paddingTop: value,
|
147
|
-
}); },
|
148
|
-
pr: function (value) { return ({
|
149
|
-
paddingRight: value,
|
150
|
-
}); },
|
151
|
-
pb: function (value) { return ({
|
152
|
-
paddingBottom: value,
|
153
|
-
}); },
|
154
|
-
pl: function (value) { return ({
|
155
|
-
paddingLeft: value,
|
156
|
-
}); },
|
157
|
-
px: function (value) { return ({
|
158
|
-
paddingLeft: value,
|
159
|
-
paddingRight: value,
|
160
|
-
}); },
|
161
|
-
py: function (value) { return ({
|
162
|
-
paddingTop: value,
|
163
|
-
paddingBottom: value,
|
164
|
-
}); },
|
165
|
-
m: function (value) { return ({
|
166
|
-
margin: value,
|
167
|
-
}); },
|
168
|
-
mt: function (value) { return ({
|
169
|
-
marginTop: value,
|
170
|
-
}); },
|
171
|
-
mr: function (value) { return ({
|
172
|
-
marginRight: value,
|
173
|
-
}); },
|
174
|
-
mb: function (value) { return ({
|
175
|
-
marginBottom: value,
|
176
|
-
}); },
|
177
|
-
ml: function (value) { return ({
|
178
|
-
marginLeft: value,
|
179
|
-
}); },
|
180
|
-
mx: function (value) { return ({
|
181
|
-
marginLeft: value,
|
182
|
-
marginRight: value,
|
183
|
-
}); },
|
184
|
-
my: function (value) { return ({
|
185
|
-
marginTop: value,
|
186
|
-
marginBottom: value,
|
187
|
-
}); },
|
188
|
-
ta: function (value) { return ({ textAlign: value }); },
|
189
|
-
fd: function (value) { return ({
|
190
|
-
flexDirection: value,
|
191
|
-
}); },
|
192
|
-
fw: function (value) { return ({ flexWrap: value }); },
|
193
|
-
ai: function (value) { return ({
|
194
|
-
alignItems: value,
|
195
|
-
}); },
|
196
|
-
ac: function (value) { return ({
|
197
|
-
alignContent: value,
|
198
|
-
}); },
|
199
|
-
jc: function (value) { return ({
|
200
|
-
justifyContent: value,
|
201
|
-
}); },
|
202
|
-
as: function (value) { return ({ alignSelf: value }); },
|
203
|
-
fg: function (value) { return ({ flexGrow: value }); },
|
204
|
-
fs: function (value) { return ({
|
205
|
-
flexShrink: value,
|
206
|
-
}); },
|
207
|
-
fb: function (value) { return ({ flexBasis: value }); },
|
208
|
-
bc: function (value) { return ({
|
209
|
-
backgroundColor: value,
|
210
|
-
}); },
|
211
|
-
br: function (value) { return ({
|
212
|
-
borderRadius: value,
|
213
|
-
}); },
|
214
|
-
btrr: function (value) { return ({
|
215
|
-
borderTopRightRadius: value,
|
216
|
-
}); },
|
217
|
-
bbrr: function (value) { return ({
|
218
|
-
borderBottomRightRadius: value,
|
219
|
-
}); },
|
220
|
-
bblr: function (value) { return ({
|
221
|
-
borderBottomLeftRadius: value,
|
222
|
-
}); },
|
223
|
-
btlr: function (value) { return ({
|
224
|
-
borderTopLeftRadius: value,
|
225
|
-
}); },
|
226
|
-
bs: function (value) { return ({ boxShadow: value }); },
|
227
|
-
lh: function (value) { return ({
|
228
|
-
lineHeight: value,
|
229
|
-
}); },
|
230
|
-
ox: function (value) { return ({ overflowX: value }); },
|
231
|
-
oy: function (value) { return ({ overflowY: value }); },
|
232
|
-
pe: function (value) { return ({
|
233
|
-
pointerEvents: value,
|
234
|
-
}); },
|
235
|
-
us: function (value) { return ({
|
236
|
-
WebkitUserSelect: value,
|
237
|
-
userSelect: value,
|
238
|
-
}); },
|
239
|
-
userSelect: function (value) { return ({
|
240
|
-
WebkitUserSelect: value,
|
241
|
-
userSelect: value,
|
242
|
-
}); },
|
243
|
-
size: function (value) { return ({
|
244
|
-
width: value,
|
245
|
-
height: value,
|
246
|
-
}); },
|
247
|
-
appearance: function (value) { return ({
|
248
|
-
WebkitAppearance: value,
|
249
|
-
appearance: value,
|
250
|
-
}); },
|
251
|
-
backgroundClip: function (value) { return ({
|
252
|
-
WebkitBackgroundClip: value,
|
253
|
-
backgroundClip: value,
|
254
|
-
}); },
|
255
|
-
},
|
256
|
-
}), _a$8.styled), css = _a$8.css; _a$8.theme; var createTheme = _a$8.createTheme, getCssText = _a$8.getCssText, globalCss = _a$8.globalCss, keyframes = _a$8.keyframes, config = _a$8.config; _a$8.reset;
|
257
|
-
createTheme("dark-theme", {
|
258
|
-
colors: __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, grayDark), mauveDark), slateDark), sageDark), oliveDark), sandDark), tomatoDark), redDark), crimsonDark), pinkDark), plumDark), purpleDark), violetDark), indigoDark), blueDark), skyDark), mintDark), cyanDark), tealDark), greenDark), grassDark), limeDark), yellowDark), amberDark), orangeDark), brownDark), bronzeDark), goldDark), {
|
259
|
-
// Semantic colors
|
260
|
-
hiContrast: "$slate12", loContrast: "$slate1", canvas: "hsl(0 0% 15%)", panel: "$slate3", transparentPanel: "hsl(0 100% 100% / 97%)", shadowLight: "hsl(206 22% 7% / 35%)", shadowDark: "hsl(206 22% 7% / 20%)" }),
|
261
|
-
});
|
262
|
-
var lightThemeColors = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, gray), mauve), slate), sage), olive), sand), tomato), red), crimson), pink), plum), purple), violet), indigo), blue), sky), mint), cyan), teal), green), grass), lime), yellow), amber), orange), brown), bronze), gold), whiteA), blackA);
|
263
|
-
var darkThemeColors = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, grayDark), mauveDark), slateDark), sageDark), oliveDark), sandDark), tomatoDark), redDark), crimsonDark), pinkDark), plumDark), purpleDark), violetDark), indigoDark), blueDark), skyDark), mintDark), cyanDark), tealDark), greenDark), grassDark), limeDark), yellowDark), amberDark), orangeDark), brownDark), bronzeDark), goldDark), whiteA), blackA);
|
264
|
-
var naturalPairingsKeys = [
|
265
|
-
"gray",
|
266
|
-
"tomato",
|
267
|
-
"red",
|
268
|
-
"crimson",
|
269
|
-
"pink",
|
270
|
-
"plum",
|
271
|
-
"purple",
|
272
|
-
"violet",
|
273
|
-
"indigo",
|
274
|
-
"blue",
|
275
|
-
"sky",
|
276
|
-
"cyan",
|
277
|
-
"teal",
|
278
|
-
"mint",
|
279
|
-
"green",
|
280
|
-
"grass",
|
281
|
-
"lime",
|
282
|
-
"yellow",
|
283
|
-
"amber",
|
284
|
-
"orange",
|
285
|
-
"brown",
|
286
|
-
];
|
287
|
-
var naturalPairings = {
|
288
|
-
tomato: "mauve",
|
289
|
-
red: "mauve",
|
290
|
-
crimson: "mauve",
|
291
|
-
pink: "mauve",
|
292
|
-
plum: "mauve",
|
293
|
-
purple: "mauve",
|
294
|
-
violet: "mauve",
|
295
|
-
indigo: "slate",
|
296
|
-
blue: "slate",
|
297
|
-
sky: "slate",
|
298
|
-
cyan: "slate",
|
299
|
-
teal: "sage",
|
300
|
-
mint: "sage",
|
301
|
-
green: "sage",
|
302
|
-
grass: "olive",
|
303
|
-
lime: "olive",
|
304
|
-
yellow: "sand",
|
305
|
-
amber: "sand",
|
306
|
-
orange: "sand",
|
307
|
-
brown: "sand",
|
308
|
-
gray: "sand",
|
309
|
-
};
|
310
|
-
__spreadArray(__spreadArray([], naturalPairingsKeys.map(function (e) { return "light-theme-".concat(e); }), true), naturalPairingsKeys.map(function (e) { return "dark-theme-".concat(e); }), true);
|
311
|
-
// TODO fix this typing
|
312
|
-
var getThemes = function () {
|
313
|
-
var themes = naturalPairingsKeys.reduce(function (prev, primary) {
|
314
|
-
var _a;
|
315
|
-
return (__assign(__assign({}, prev), (_a = {}, _a["light-theme-".concat(primary)] = createTheme("light-theme-".concat(primary), {
|
316
|
-
colors: __assign(__assign({}, lightThemeColors), {
|
317
|
-
// Semantic colors
|
318
|
-
primary1: "$".concat(primary, "1"), primary2: "$".concat(primary, "2"), primary3: "$".concat(primary, "3"), primary4: "$".concat(primary, "4"), primary5: "$".concat(primary, "5"), primary6: "$".concat(primary, "6"), primary7: "$".concat(primary, "7"), primary8: "$".concat(primary, "8"), primary9: "$".concat(primary, "9"), primary10: "$".concat(primary, "10"), primary11: "$".concat(primary, "11"), primary12: "$".concat(primary, "12"), neutral1: "$".concat(naturalPairings[primary], "1"), neutral2: "$".concat(naturalPairings[primary], "2"), neutral3: "$".concat(naturalPairings[primary], "3"), neutral4: "$".concat(naturalPairings[primary], "4"), neutral5: "$".concat(naturalPairings[primary], "5"), neutral6: "$".concat(naturalPairings[primary], "6"), neutral7: "$".concat(naturalPairings[primary], "7"), neutral8: "$".concat(naturalPairings[primary], "8"), neutral9: "$".concat(naturalPairings[primary], "9"), neutral10: "$".concat(naturalPairings[primary], "10"), neutral11: "$".concat(naturalPairings[primary], "11"), neutral12: "$".concat(naturalPairings[primary], "12"), hiContrast: "$".concat(naturalPairings[primary], "12"), loContrast: "$whiteA12", canvas: "hsl(0 0% 93%)", panel: "$".concat(naturalPairings[primary], "2"), transparentPanel: "hsl(0 0% 0% / 97%)", shadowLight: "hsl(206 22% 7% / 35%)", shadowDark: "hsl(206 22% 7% / 20%)" }),
|
319
|
-
fonts: fonts,
|
320
|
-
}), _a["dark-theme-".concat(primary)] = createTheme("dark-theme-".concat(primary), {
|
321
|
-
colors: __assign(__assign({}, darkThemeColors), {
|
322
|
-
// Semantic colors
|
323
|
-
primary1: "$".concat(primary, "1"), primary2: "$".concat(primary, "2"), primary3: "$".concat(primary, "3"), primary4: "$".concat(primary, "4"), primary5: "$".concat(primary, "5"), primary6: "$".concat(primary, "6"), primary7: "$".concat(primary, "7"), primary8: "$".concat(primary, "8"), primary9: "$".concat(primary, "9"), primary10: "$".concat(primary, "10"), primary11: "$".concat(primary, "11"), primary12: "$".concat(primary, "12"), neutral1: "$".concat(naturalPairings[primary], "1"), neutral2: "$".concat(naturalPairings[primary], "2"), neutral3: "$".concat(naturalPairings[primary], "3"), neutral4: "$".concat(naturalPairings[primary], "4"), neutral5: "$".concat(naturalPairings[primary], "5"), neutral6: "$".concat(naturalPairings[primary], "6"), neutral7: "$".concat(naturalPairings[primary], "7"), neutral8: "$".concat(naturalPairings[primary], "8"), neutral9: "$".concat(naturalPairings[primary], "9"), neutral10: "$".concat(naturalPairings[primary], "10"), neutral11: "$".concat(naturalPairings[primary], "11"), neutral12: "$".concat(naturalPairings[primary], "12"), hiContrast: "$".concat(naturalPairings[primary], "12"), loContrast: "$".concat(naturalPairings[primary], "1"), canvas: "hsl(0 0% 15%)", panel: "$".concat(naturalPairings[primary], "2"), transparentPanel: "hsl(0 100% 100% / 97%)", shadowLight: "hsl(206 22% 7% / 35%)", shadowDark: "hsl(206 22% 7% / 20%)" }),
|
324
|
-
fonts: fonts,
|
325
|
-
}), _a)));
|
326
|
-
}, {});
|
327
|
-
return themes;
|
328
|
-
};
|
329
|
-
|
330
|
-
var StyledAccordion = styled(AccordionPrimitive.Root, {
|
331
|
-
boxShadow: "0 0 0 1px $colors$neutral6",
|
332
|
-
borderRadius: "$1",
|
333
|
-
});
|
334
|
-
var Accordion = React.forwardRef(function (_a, forwardedRef) {
|
335
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
336
|
-
return (React.createElement(StyledAccordion, __assign({ ref: forwardedRef }, props, (props.type === "single" ? { collapsible: true } : {})), children));
|
337
|
-
});
|
338
|
-
Accordion.displayName = "Accordion";
|
339
|
-
var StyledItem = styled(AccordionPrimitive.Item, {
|
340
|
-
borderTop: "1px solid $colors$slate6",
|
341
|
-
"&:last-of-type": {
|
342
|
-
borderBottom: "1px solid $colors$slate6",
|
343
|
-
},
|
344
|
-
});
|
345
|
-
var StyledHeader = styled(AccordionPrimitive.Header, {
|
346
|
-
all: "unset",
|
347
|
-
});
|
348
|
-
var StyledTrigger = styled(AccordionPrimitive.Trigger, {
|
349
|
-
all: "unset",
|
350
|
-
boxSizing: "border-box",
|
351
|
-
userSelect: "none",
|
352
|
-
"&::before": {
|
353
|
-
boxSizing: "border-box",
|
354
|
-
},
|
355
|
-
"&::after": {
|
356
|
-
boxSizing: "border-box",
|
357
|
-
},
|
358
|
-
display: "flex",
|
359
|
-
alignItems: "center",
|
360
|
-
justifyContent: "space-between",
|
361
|
-
p: "$2",
|
362
|
-
color: "$hiContrast",
|
363
|
-
width: "100%",
|
364
|
-
cursor: "pointer",
|
365
|
-
"@hover": {
|
366
|
-
"&:hover": {
|
367
|
-
backgroundColor: "$slate2",
|
368
|
-
},
|
369
|
-
},
|
370
|
-
"&:focus": {
|
371
|
-
outline: "none",
|
372
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
|
373
|
-
},
|
374
|
-
svg: {
|
375
|
-
transition: "transform 175ms cubic-bezier(0.65, 0, 0.35, 1)",
|
376
|
-
},
|
377
|
-
'&[data-state="open"]': {
|
378
|
-
svg: {
|
379
|
-
transform: "rotate(180deg)",
|
380
|
-
},
|
381
|
-
},
|
382
|
-
});
|
383
|
-
var AccordionTrigger = React.forwardRef(function (_a, forwardedRef) {
|
384
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
385
|
-
return (React.createElement(StyledHeader, null,
|
386
|
-
React.createElement(StyledTrigger, __assign({}, props, { ref: forwardedRef }),
|
387
|
-
children,
|
388
|
-
React.createElement(ChevronDownIcon, null))));
|
389
|
-
});
|
390
|
-
AccordionTrigger.displayName = "AccordionTrigger";
|
391
|
-
var StyledContent$5 = styled(AccordionPrimitive.Content, {
|
392
|
-
p: "$2",
|
393
|
-
});
|
394
|
-
var AccordionItem = StyledItem;
|
395
|
-
var AccordionContent = StyledContent$5;
|
396
|
-
|
397
|
-
var Alert = styled("div", {
|
398
|
-
// Reset
|
399
|
-
boxSizing: "border-box",
|
400
|
-
"&::before": {
|
401
|
-
boxSizing: "border-box",
|
402
|
-
},
|
403
|
-
"&::after": {
|
404
|
-
boxSizing: "border-box",
|
405
|
-
},
|
406
|
-
border: "1px solid",
|
407
|
-
borderRadius: "$2",
|
408
|
-
variants: {
|
409
|
-
size: {
|
410
|
-
"1": {
|
411
|
-
p: "$3",
|
412
|
-
},
|
413
|
-
},
|
414
|
-
variant: {
|
415
|
-
loContrast: {
|
416
|
-
backgroundColor: "$loContrast",
|
417
|
-
borderColor: "$slate6",
|
418
|
-
},
|
419
|
-
gray: {
|
420
|
-
backgroundColor: "$slate2",
|
421
|
-
borderColor: "$slate6",
|
422
|
-
},
|
423
|
-
blue: {
|
424
|
-
backgroundColor: "$blue2",
|
425
|
-
borderColor: "$blue6",
|
426
|
-
},
|
427
|
-
green: {
|
428
|
-
backgroundColor: "$green2",
|
429
|
-
borderColor: "$green6",
|
430
|
-
},
|
431
|
-
red: {
|
432
|
-
backgroundColor: "$red2",
|
433
|
-
borderColor: "$red6",
|
434
|
-
},
|
435
|
-
},
|
436
|
-
},
|
437
|
-
defaultVariants: {
|
438
|
-
size: "1",
|
439
|
-
variant: "gray",
|
440
|
-
},
|
441
|
-
});
|
442
|
-
|
443
|
-
var overlayStyles = css({
|
444
|
-
backgroundColor: "rgba(0, 0, 0, .15)",
|
445
|
-
});
|
446
|
-
var Overlay = styled("div", overlayStyles);
|
447
|
-
|
448
|
-
var panelStyles = css({
|
449
|
-
backgroundColor: "$panel",
|
450
|
-
borderRadius: "$3",
|
451
|
-
boxShadow: "$colors$shadowLight 0px 10px 38px -10px, $colors$shadowDark 0px 10px 20px -15px",
|
452
|
-
});
|
453
|
-
var Panel = styled("div", panelStyles);
|
454
|
-
|
455
|
-
var fadeIn$2 = keyframes({
|
456
|
-
from: { opacity: 0 },
|
457
|
-
to: { opacity: 1 },
|
458
|
-
});
|
459
|
-
var scaleIn$1 = keyframes({
|
460
|
-
from: { transform: "translate(-50%, -50%) scale(0.9)" },
|
461
|
-
to: { transform: "translate(-50%, -50%) scale(1)" },
|
462
|
-
});
|
463
|
-
var fadeout$1 = keyframes({
|
464
|
-
from: { opacity: 1 },
|
465
|
-
to: { opacity: 0 },
|
466
|
-
});
|
467
|
-
var StyledOverlay$2 = styled(AlertDialogPrimitive.Overlay, overlayStyles, {
|
468
|
-
position: "fixed",
|
469
|
-
top: 0,
|
470
|
-
right: 0,
|
471
|
-
bottom: 0,
|
472
|
-
left: 0,
|
473
|
-
backgroundColor: "rgba(0,0,0,.35)",
|
474
|
-
inset: 0,
|
475
|
-
zIndex: 1000,
|
476
|
-
variants: {
|
477
|
-
animation: {
|
478
|
-
true: {
|
479
|
-
'&[data-state="open"]': {
|
480
|
-
animation: "".concat(fadeIn$2, " 300ms ease-out"),
|
481
|
-
},
|
482
|
-
'&[data-state="closed"]': {
|
483
|
-
animation: "".concat(fadeout$1, " 200ms ease-out"),
|
484
|
-
},
|
485
|
-
},
|
486
|
-
},
|
487
|
-
},
|
488
|
-
});
|
489
|
-
function AlertDialog(_a) {
|
490
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
491
|
-
return (React.createElement(AlertDialogPrimitive.Root, __assign({}, props),
|
492
|
-
React.createElement(StyledOverlay$2, { animation: true }),
|
493
|
-
children));
|
494
|
-
}
|
495
|
-
var StyledAlertDialogContent = styled(AlertDialogPrimitive.Content, panelStyles, {
|
496
|
-
position: "fixed",
|
497
|
-
top: "50%",
|
498
|
-
left: "50%",
|
499
|
-
transform: "translate(-50%, -50%)",
|
500
|
-
minWidth: 200,
|
501
|
-
maxHeight: "85vh",
|
502
|
-
padding: "$4",
|
503
|
-
marginTop: "-5vh",
|
504
|
-
backgroundColor: "$panel",
|
505
|
-
borderRadius: "$4",
|
506
|
-
boxShadow: "$colors$shadowLight 0px 10px 38px -10px, $colors$shadowDark 0px 10px 20px -15px",
|
507
|
-
color: "$black",
|
508
|
-
zIndex: 1001,
|
509
|
-
"&:focus": {
|
510
|
-
outline: "none",
|
511
|
-
},
|
512
|
-
variants: {
|
513
|
-
animation: {
|
514
|
-
fade: {
|
515
|
-
'&[data-state="open"]': {
|
516
|
-
animation: "".concat(fadeIn$2, " 300ms ease-out"),
|
517
|
-
},
|
518
|
-
'&[data-state="closed"]': {
|
519
|
-
animation: "".concat(fadeout$1, " 200ms ease-out"),
|
520
|
-
},
|
521
|
-
},
|
522
|
-
scale: {
|
523
|
-
animation: "".concat(fadeIn$2, " 300ms ease-out, ").concat(scaleIn$1, " 200ms ease-out"),
|
524
|
-
},
|
525
|
-
},
|
526
|
-
},
|
527
|
-
defaultVariants: {
|
528
|
-
animation: "scale",
|
529
|
-
},
|
530
|
-
});
|
531
|
-
var AlertDialogContent = function (_a) {
|
532
|
-
var children = _a.children, _b = _a.animation, animation = _b === void 0 ? "scale" : _b, props = __rest(_a, ["children", "animation"]);
|
533
|
-
return (React.createElement(StyledAlertDialogContent, __assign({ animation: animation }, props, { style: { overflow: 'auto' } }), children));
|
534
|
-
};
|
535
|
-
var AlertDialogTitle = AlertDialogPrimitive.Title;
|
536
|
-
var AlertDialogDescription = AlertDialogPrimitive.Description;
|
537
|
-
var AlertDialogAction = AlertDialogPrimitive.Action;
|
538
|
-
var AlertDialogCancel = AlertDialogPrimitive.Cancel;
|
539
|
-
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
540
|
-
|
541
|
-
var Box = styled("div", {
|
542
|
-
// Reset
|
543
|
-
boxSizing: "border-box",
|
544
|
-
});
|
545
|
-
|
546
|
-
var Status = styled("div", {
|
547
|
-
borderRadius: "50%",
|
548
|
-
flexShrink: 0,
|
549
|
-
variants: {
|
550
|
-
size: {
|
551
|
-
"1": {
|
552
|
-
width: 5,
|
553
|
-
height: 5,
|
554
|
-
},
|
555
|
-
"2": {
|
556
|
-
width: 9,
|
557
|
-
height: 9,
|
558
|
-
},
|
559
|
-
},
|
560
|
-
variant: {
|
561
|
-
gray: {
|
562
|
-
backgroundColor: "$slate7",
|
563
|
-
},
|
564
|
-
blue: {
|
565
|
-
backgroundColor: "$blue9",
|
566
|
-
},
|
567
|
-
green: {
|
568
|
-
backgroundColor: "$green9",
|
569
|
-
},
|
570
|
-
yellow: {
|
571
|
-
backgroundColor: "$yellow9",
|
572
|
-
},
|
573
|
-
red: {
|
574
|
-
backgroundColor: "$red9",
|
575
|
-
},
|
576
|
-
},
|
577
|
-
},
|
578
|
-
defaultVariants: {
|
579
|
-
size: "2",
|
580
|
-
variant: "gray",
|
581
|
-
},
|
582
|
-
});
|
583
|
-
|
584
|
-
var _a$7;
|
585
|
-
var StyledAvatar = styled(AvatarPrimitive.Root, {
|
586
|
-
alignItems: "center",
|
587
|
-
justifyContent: "center",
|
588
|
-
verticalAlign: "middle",
|
589
|
-
overflow: "hidden",
|
590
|
-
userSelect: "none",
|
591
|
-
boxSizing: "border-box",
|
592
|
-
display: "flex",
|
593
|
-
flexShrink: 0,
|
594
|
-
position: "relative",
|
595
|
-
border: "none",
|
596
|
-
fontFamily: "inherit",
|
597
|
-
lineHeight: "1",
|
598
|
-
margin: "0",
|
599
|
-
outline: "none",
|
600
|
-
padding: "0",
|
601
|
-
fontWeight: "500",
|
602
|
-
color: "$hiContrast",
|
603
|
-
"&::before": {
|
604
|
-
content: '""',
|
605
|
-
position: "absolute",
|
606
|
-
top: 0,
|
607
|
-
right: 0,
|
608
|
-
bottom: 0,
|
609
|
-
left: 0,
|
610
|
-
borderRadius: "inherit",
|
611
|
-
boxShadow: "inset 0px 0px 1px rgba(0, 0, 0, 0.12)",
|
612
|
-
},
|
613
|
-
variants: {
|
614
|
-
size: {
|
615
|
-
"1": {
|
616
|
-
width: "$3",
|
617
|
-
height: "$3",
|
618
|
-
},
|
619
|
-
"2": {
|
620
|
-
width: "$5",
|
621
|
-
height: "$5",
|
622
|
-
},
|
623
|
-
"3": {
|
624
|
-
width: "$6",
|
625
|
-
height: "$6",
|
626
|
-
},
|
627
|
-
"4": {
|
628
|
-
width: "$7",
|
629
|
-
height: "$7",
|
630
|
-
},
|
631
|
-
"5": {
|
632
|
-
width: "$8",
|
633
|
-
height: "$8",
|
634
|
-
},
|
635
|
-
"6": {
|
636
|
-
width: "$9",
|
637
|
-
height: "$9",
|
638
|
-
},
|
639
|
-
},
|
640
|
-
variant: {
|
641
|
-
hiContrast: {
|
642
|
-
backgroundColor: "$hiContrast",
|
643
|
-
color: "$loContrast",
|
644
|
-
},
|
645
|
-
gray: {
|
646
|
-
backgroundColor: "$slate5",
|
647
|
-
},
|
648
|
-
tomato: {
|
649
|
-
backgroundColor: "$tomato5",
|
650
|
-
},
|
651
|
-
red: {
|
652
|
-
backgroundColor: "$red5",
|
653
|
-
},
|
654
|
-
crimson: {
|
655
|
-
backgroundColor: "$crimson5",
|
656
|
-
},
|
657
|
-
pink: {
|
658
|
-
backgroundColor: "$pink5",
|
659
|
-
},
|
660
|
-
plum: {
|
661
|
-
backgroundColor: "$plum5",
|
662
|
-
},
|
663
|
-
purple: {
|
664
|
-
backgroundColor: "$purple5",
|
665
|
-
},
|
666
|
-
violet: {
|
667
|
-
backgroundColor: "$violet5",
|
668
|
-
},
|
669
|
-
indigo: {
|
670
|
-
backgroundColor: "$indigo5",
|
671
|
-
},
|
672
|
-
blue: {
|
673
|
-
backgroundColor: "$blue5",
|
674
|
-
},
|
675
|
-
cyan: {
|
676
|
-
backgroundColor: "$cyan5",
|
677
|
-
},
|
678
|
-
teal: {
|
679
|
-
backgroundColor: "$teal5",
|
680
|
-
},
|
681
|
-
green: {
|
682
|
-
backgroundColor: "$green5",
|
683
|
-
},
|
684
|
-
grass: {
|
685
|
-
backgroundColor: "$grass5",
|
686
|
-
},
|
687
|
-
brown: {
|
688
|
-
backgroundColor: "$brown5",
|
689
|
-
},
|
690
|
-
bronze: {
|
691
|
-
backgroundColor: "$bronze5",
|
692
|
-
},
|
693
|
-
gold: {
|
694
|
-
backgroundColor: "$gold5",
|
695
|
-
},
|
696
|
-
sky: {
|
697
|
-
backgroundColor: "$sky5",
|
698
|
-
},
|
699
|
-
mint: {
|
700
|
-
backgroundColor: "$mint5",
|
701
|
-
},
|
702
|
-
lime: {
|
703
|
-
backgroundColor: "$lime5",
|
704
|
-
},
|
705
|
-
yellow: {
|
706
|
-
backgroundColor: "$yellow5",
|
707
|
-
},
|
708
|
-
amber: {
|
709
|
-
backgroundColor: "$amber5",
|
710
|
-
},
|
711
|
-
orange: {
|
712
|
-
backgroundColor: "$orange5",
|
713
|
-
},
|
714
|
-
},
|
715
|
-
shape: {
|
716
|
-
square: {
|
717
|
-
borderRadius: "$2",
|
718
|
-
},
|
719
|
-
circle: {
|
720
|
-
borderRadius: "50%",
|
721
|
-
},
|
722
|
-
},
|
723
|
-
inactive: {
|
724
|
-
true: {
|
725
|
-
opacity: ".3",
|
726
|
-
},
|
727
|
-
},
|
728
|
-
interactive: {
|
729
|
-
true: {
|
730
|
-
"&::after": {
|
731
|
-
content: '""',
|
732
|
-
position: "absolute",
|
733
|
-
top: "0",
|
734
|
-
right: "0",
|
735
|
-
bottom: "0",
|
736
|
-
left: "0",
|
737
|
-
backgroundColor: "rgba(0,0,0,.08)",
|
738
|
-
opacity: "0",
|
739
|
-
pointerEvents: "none",
|
740
|
-
transition: "opacity 25ms linear",
|
741
|
-
},
|
742
|
-
"@hover": {
|
743
|
-
"&:hover": {
|
744
|
-
"&::after": {
|
745
|
-
opacity: "1",
|
746
|
-
},
|
747
|
-
},
|
748
|
-
},
|
749
|
-
'&[data-state="open"]': {
|
750
|
-
"&::after": {
|
751
|
-
backgroundColor: "rgba(0,0,0,.12)",
|
752
|
-
opacity: "1",
|
753
|
-
},
|
754
|
-
},
|
755
|
-
},
|
756
|
-
},
|
757
|
-
},
|
758
|
-
defaultVariants: {
|
759
|
-
size: "2",
|
760
|
-
variant: "gray",
|
761
|
-
shape: "circle",
|
762
|
-
},
|
763
|
-
});
|
764
|
-
var StyledAvatarImage = styled(AvatarPrimitive.Image, {
|
765
|
-
display: "flex",
|
766
|
-
objectFit: "cover",
|
767
|
-
boxSizing: "border-box",
|
768
|
-
height: "100%",
|
769
|
-
verticalAlign: "middle",
|
770
|
-
width: "100%",
|
771
|
-
});
|
772
|
-
var StyledAvatarFallback = styled(AvatarPrimitive.Fallback, {
|
773
|
-
textTransform: "uppercase",
|
774
|
-
variants: {
|
775
|
-
size: {
|
776
|
-
"1": {
|
777
|
-
fontSize: "10px",
|
778
|
-
lineHeight: "15px",
|
779
|
-
},
|
780
|
-
"2": {
|
781
|
-
fontSize: "$3",
|
782
|
-
},
|
783
|
-
"3": {
|
784
|
-
fontSize: "$6",
|
785
|
-
},
|
786
|
-
"4": {
|
787
|
-
fontSize: "$7",
|
788
|
-
},
|
789
|
-
"5": {
|
790
|
-
fontSize: "$8",
|
791
|
-
},
|
792
|
-
"6": {
|
793
|
-
fontSize: "$9",
|
794
|
-
},
|
795
|
-
},
|
796
|
-
},
|
797
|
-
defaultVariants: {
|
798
|
-
size: "2",
|
799
|
-
},
|
800
|
-
});
|
801
|
-
var AvatarNestedItem = styled("div", {
|
802
|
-
boxShadow: "0 0 0 2px $colors$loContrast",
|
803
|
-
borderRadius: "50%",
|
804
|
-
});
|
805
|
-
var AvatarGroup = styled("div", (_a$7 = {
|
806
|
-
display: "flex",
|
807
|
-
flexDirection: "row-reverse"
|
808
|
-
},
|
809
|
-
_a$7["& ".concat(AvatarNestedItem, ":nth-child(n+2)")] = {
|
810
|
-
marginRight: "-$1",
|
811
|
-
},
|
812
|
-
_a$7));
|
813
|
-
var Avatar = React.forwardRef(function (_a, forwardedRef) {
|
814
|
-
var alt = _a.alt, src = _a.src, fallback = _a.fallback, size = _a.size, variant = _a.variant, shape = _a.shape, css = _a.css, status = _a.status, props = __rest(_a, ["alt", "src", "fallback", "size", "variant", "shape", "css", "status"]);
|
815
|
-
return (React.createElement(Box, { css: __assign(__assign({}, css), { position: "relative", height: "fit-content", width: "fit-content" }) },
|
816
|
-
React.createElement(StyledAvatar, __assign({}, props, { ref: forwardedRef, size: size, variant: variant, shape: shape }),
|
817
|
-
React.createElement(StyledAvatarImage, { alt: alt, src: src }),
|
818
|
-
React.createElement(StyledAvatarFallback, { size: size }, fallback)),
|
819
|
-
status && (React.createElement(Box, { css: {
|
820
|
-
position: "absolute",
|
821
|
-
bottom: "0",
|
822
|
-
right: "0",
|
823
|
-
boxShadow: "0 0 0 3px $colors$loContrast",
|
824
|
-
borderRadius: "$round",
|
825
|
-
mr: "-3px",
|
826
|
-
mb: "-3px",
|
827
|
-
} },
|
828
|
-
React.createElement(Status, { size: size && size > 2 ? "2" : "1", variant: status })))));
|
829
|
-
});
|
830
|
-
Avatar.displayName = "Avatar";
|
831
|
-
|
832
|
-
var Badge = styled("span", {
|
833
|
-
// Reset
|
834
|
-
alignItems: "center",
|
835
|
-
appearance: "none",
|
836
|
-
borderWidth: "0",
|
837
|
-
boxSizing: "border-box",
|
838
|
-
display: "inline-flex",
|
839
|
-
flexShrink: 0,
|
840
|
-
fontFamily: "inherit",
|
841
|
-
justifyContent: "center",
|
842
|
-
lineHeight: "1",
|
843
|
-
verticalAlign: "middle",
|
844
|
-
outline: "none",
|
845
|
-
padding: "0",
|
846
|
-
textDecoration: "none",
|
847
|
-
userSelect: "none",
|
848
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
849
|
-
"&:disabled": {
|
850
|
-
backgroundColor: "$slate3",
|
851
|
-
pointerEvents: "none",
|
852
|
-
color: "$slate8",
|
853
|
-
},
|
854
|
-
"&::before": {
|
855
|
-
boxSizing: "border-box",
|
856
|
-
content: '""',
|
857
|
-
},
|
858
|
-
"&::after": {
|
859
|
-
boxSizing: "border-box",
|
860
|
-
content: '""',
|
861
|
-
},
|
862
|
-
// Custom
|
863
|
-
backgroundColor: "$slate3",
|
864
|
-
borderRadius: "$pill",
|
865
|
-
color: "$slate11",
|
866
|
-
whiteSpace: "nowrap",
|
867
|
-
variants: {
|
868
|
-
size: {
|
869
|
-
"1": {
|
870
|
-
height: "$4",
|
871
|
-
px: "$1",
|
872
|
-
fontSize: "$1",
|
873
|
-
},
|
874
|
-
"2": {
|
875
|
-
height: "$5",
|
876
|
-
px: "$2",
|
877
|
-
fontSize: "$2",
|
878
|
-
},
|
879
|
-
},
|
880
|
-
variant: {
|
881
|
-
neutral: {
|
882
|
-
backgroundColor: "$neutral3",
|
883
|
-
color: "$neutral11",
|
884
|
-
"&:focus": {
|
885
|
-
boxShadow: "inset 0 0 0 1px $colors$neutral8, 0 0 0 1px $colors$neutral8",
|
886
|
-
},
|
887
|
-
},
|
888
|
-
primary: {
|
889
|
-
backgroundColor: "$primary3",
|
890
|
-
color: "$primary11",
|
891
|
-
"&:focus": {
|
892
|
-
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
893
|
-
},
|
894
|
-
},
|
895
|
-
gray: {
|
896
|
-
backgroundColor: "$slate3",
|
897
|
-
color: "$slate11",
|
898
|
-
"&:focus": {
|
899
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
|
900
|
-
},
|
901
|
-
},
|
902
|
-
red: {
|
903
|
-
backgroundColor: "$red3",
|
904
|
-
color: "$red11",
|
905
|
-
"&:focus": {
|
906
|
-
boxShadow: "inset 0 0 0 1px $colors$red8, 0 0 0 1px $colors$red8",
|
907
|
-
},
|
908
|
-
},
|
909
|
-
crimson: {
|
910
|
-
backgroundColor: "$crimson3",
|
911
|
-
color: "$crimson11",
|
912
|
-
"&:focus": {
|
913
|
-
boxShadow: "inset 0 0 0 1px $colors$crimson8, 0 0 0 1px $colors$crimson8",
|
914
|
-
},
|
915
|
-
},
|
916
|
-
pink: {
|
917
|
-
backgroundColor: "$pink3",
|
918
|
-
color: "$pink11",
|
919
|
-
"&:focus": {
|
920
|
-
boxShadow: "inset 0 0 0 1px $colors$pink8, 0 0 0 1px $colors$pink8",
|
921
|
-
},
|
922
|
-
},
|
923
|
-
purple: {
|
924
|
-
backgroundColor: "$purple3",
|
925
|
-
color: "$purple11",
|
926
|
-
"&:focus": {
|
927
|
-
boxShadow: "inset 0 0 0 1px $colors$purple8, 0 0 0 1px $colors$purple8",
|
928
|
-
},
|
929
|
-
},
|
930
|
-
violet: {
|
931
|
-
backgroundColor: "$violet3",
|
932
|
-
color: "$violet11",
|
933
|
-
"&:focus": {
|
934
|
-
boxShadow: "inset 0 0 0 1px $colors$violet8, 0 0 0 1px $colors$violet8",
|
935
|
-
},
|
936
|
-
},
|
937
|
-
indigo: {
|
938
|
-
backgroundColor: "$indigo3",
|
939
|
-
color: "$indigo11",
|
940
|
-
"&:focus": {
|
941
|
-
boxShadow: "inset 0 0 0 1px $colors$indigo8, 0 0 0 1px $colors$indigo8",
|
942
|
-
},
|
943
|
-
},
|
944
|
-
blue: {
|
945
|
-
backgroundColor: "$blue3",
|
946
|
-
color: "$blue11",
|
947
|
-
"&:focus": {
|
948
|
-
boxShadow: "inset 0 0 0 1px $colors$blue8, 0 0 0 1px $colors$blue8",
|
949
|
-
},
|
950
|
-
},
|
951
|
-
cyan: {
|
952
|
-
backgroundColor: "$cyan3",
|
953
|
-
color: "$cyan11",
|
954
|
-
"&:focus": {
|
955
|
-
boxShadow: "inset 0 0 0 1px $colors$cyan8, 0 0 0 1px $colors$cyan8",
|
956
|
-
},
|
957
|
-
},
|
958
|
-
teal: {
|
959
|
-
backgroundColor: "$teal3",
|
960
|
-
color: "$teal11",
|
961
|
-
"&:focus": {
|
962
|
-
boxShadow: "inset 0 0 0 1px $colors$teal8, 0 0 0 1px $colors$teal8",
|
963
|
-
},
|
964
|
-
},
|
965
|
-
green: {
|
966
|
-
backgroundColor: "$green3",
|
967
|
-
color: "$green11",
|
968
|
-
"&:focus": {
|
969
|
-
boxShadow: "inset 0 0 0 1px $colors$green8, 0 0 0 1px $colors$green8",
|
970
|
-
},
|
971
|
-
},
|
972
|
-
lime: {
|
973
|
-
backgroundColor: "$lime3",
|
974
|
-
color: "$lime11",
|
975
|
-
"&:focus": {
|
976
|
-
boxShadow: "inset 0 0 0 1px $colors$lime8, 0 0 0 1px $colors$lime8",
|
977
|
-
},
|
978
|
-
},
|
979
|
-
yellow: {
|
980
|
-
backgroundColor: "$yellow3",
|
981
|
-
color: "$yellow11",
|
982
|
-
"&:focus": {
|
983
|
-
boxShadow: "inset 0 0 0 1px $colors$yellow8, 0 0 0 1px $colors$yellow8",
|
984
|
-
},
|
985
|
-
},
|
986
|
-
orange: {
|
987
|
-
backgroundColor: "$orange3",
|
988
|
-
color: "$orange11",
|
989
|
-
"&:focus": {
|
990
|
-
boxShadow: "inset 0 0 0 1px $colors$orange8, 0 0 0 1px $colors$orange8",
|
991
|
-
},
|
992
|
-
},
|
993
|
-
gold: {
|
994
|
-
backgroundColor: "$gold3",
|
995
|
-
color: "$gold11",
|
996
|
-
"&:focus": {
|
997
|
-
boxShadow: "inset 0 0 0 1px $colors$gold8, 0 0 0 1px $colors$gold8",
|
998
|
-
},
|
999
|
-
},
|
1000
|
-
bronze: {
|
1001
|
-
backgroundColor: "$bronze3",
|
1002
|
-
color: "$bronze11",
|
1003
|
-
"&:focus": {
|
1004
|
-
boxShadow: "inset 0 0 0 1px $colors$bronze8, 0 0 0 1px $colors$bronze8",
|
1005
|
-
},
|
1006
|
-
},
|
1007
|
-
},
|
1008
|
-
interactive: {
|
1009
|
-
true: {},
|
1010
|
-
},
|
1011
|
-
},
|
1012
|
-
compoundVariants: [
|
1013
|
-
{
|
1014
|
-
interactive: true,
|
1015
|
-
variant: "red",
|
1016
|
-
css: {
|
1017
|
-
"@hover": {
|
1018
|
-
"&:hover": {
|
1019
|
-
backgroundColor: "$red4",
|
1020
|
-
},
|
1021
|
-
},
|
1022
|
-
"&:active": {
|
1023
|
-
backgroundColor: "$red5",
|
1024
|
-
},
|
1025
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1026
|
-
backgroundColor: "$red5",
|
1027
|
-
},
|
1028
|
-
},
|
1029
|
-
},
|
1030
|
-
{
|
1031
|
-
interactive: true,
|
1032
|
-
variant: "crimson",
|
1033
|
-
css: {
|
1034
|
-
"@hover": {
|
1035
|
-
"&:hover": {
|
1036
|
-
backgroundColor: "$crimson4",
|
1037
|
-
},
|
1038
|
-
},
|
1039
|
-
"&:active": {
|
1040
|
-
backgroundColor: "$crimson5",
|
1041
|
-
},
|
1042
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1043
|
-
backgroundColor: "$crimson5",
|
1044
|
-
},
|
1045
|
-
},
|
1046
|
-
},
|
1047
|
-
{
|
1048
|
-
interactive: true,
|
1049
|
-
variant: "pink",
|
1050
|
-
css: {
|
1051
|
-
"@hover": {
|
1052
|
-
"&:hover": {
|
1053
|
-
backgroundColor: "$pink4",
|
1054
|
-
},
|
1055
|
-
},
|
1056
|
-
"&:active": {
|
1057
|
-
backgroundColor: "$pink5",
|
1058
|
-
},
|
1059
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1060
|
-
backgroundColor: "$pink5",
|
1061
|
-
},
|
1062
|
-
},
|
1063
|
-
},
|
1064
|
-
{
|
1065
|
-
interactive: true,
|
1066
|
-
variant: "purple",
|
1067
|
-
css: {
|
1068
|
-
"@hover": {
|
1069
|
-
"&:hover": {
|
1070
|
-
backgroundColor: "$purple4",
|
1071
|
-
},
|
1072
|
-
},
|
1073
|
-
"&:active": {
|
1074
|
-
backgroundColor: "$purple5",
|
1075
|
-
},
|
1076
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1077
|
-
backgroundColor: "$purple5",
|
1078
|
-
},
|
1079
|
-
},
|
1080
|
-
},
|
1081
|
-
{
|
1082
|
-
interactive: true,
|
1083
|
-
variant: "violet",
|
1084
|
-
css: {
|
1085
|
-
"@hover": {
|
1086
|
-
"&:hover": {
|
1087
|
-
backgroundColor: "$violet4",
|
1088
|
-
},
|
1089
|
-
},
|
1090
|
-
"&:active": {
|
1091
|
-
backgroundColor: "$violet5",
|
1092
|
-
},
|
1093
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1094
|
-
backgroundColor: "$violet5",
|
1095
|
-
},
|
1096
|
-
},
|
1097
|
-
},
|
1098
|
-
{
|
1099
|
-
interactive: true,
|
1100
|
-
variant: "indigo",
|
1101
|
-
css: {
|
1102
|
-
"@hover": {
|
1103
|
-
"&:hover": {
|
1104
|
-
backgroundColor: "$indigo4",
|
1105
|
-
},
|
1106
|
-
},
|
1107
|
-
"&:active": {
|
1108
|
-
backgroundColor: "$indigo5",
|
1109
|
-
},
|
1110
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1111
|
-
backgroundColor: "$indigo5",
|
1112
|
-
},
|
1113
|
-
},
|
1114
|
-
},
|
1115
|
-
{
|
1116
|
-
interactive: true,
|
1117
|
-
variant: "blue",
|
1118
|
-
css: {
|
1119
|
-
"@hover": {
|
1120
|
-
"&:hover": {
|
1121
|
-
backgroundColor: "$blue4",
|
1122
|
-
},
|
1123
|
-
},
|
1124
|
-
"&:active": {
|
1125
|
-
backgroundColor: "$blue5",
|
1126
|
-
},
|
1127
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1128
|
-
backgroundColor: "$blue5",
|
1129
|
-
},
|
1130
|
-
},
|
1131
|
-
},
|
1132
|
-
{
|
1133
|
-
interactive: true,
|
1134
|
-
variant: "cyan",
|
1135
|
-
css: {
|
1136
|
-
"@hover": {
|
1137
|
-
"&:hover": {
|
1138
|
-
backgroundColor: "$cyan4",
|
1139
|
-
},
|
1140
|
-
},
|
1141
|
-
"&:active": {
|
1142
|
-
backgroundColor: "$cyan5",
|
1143
|
-
},
|
1144
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1145
|
-
backgroundColor: "$cyan5",
|
1146
|
-
},
|
1147
|
-
},
|
1148
|
-
},
|
1149
|
-
{
|
1150
|
-
interactive: true,
|
1151
|
-
variant: "teal",
|
1152
|
-
css: {
|
1153
|
-
"@hover": {
|
1154
|
-
"&:hover": {
|
1155
|
-
backgroundColor: "$teal4",
|
1156
|
-
},
|
1157
|
-
},
|
1158
|
-
"&:active": {
|
1159
|
-
backgroundColor: "$teal5",
|
1160
|
-
},
|
1161
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1162
|
-
backgroundColor: "$teal5",
|
1163
|
-
},
|
1164
|
-
},
|
1165
|
-
},
|
1166
|
-
{
|
1167
|
-
interactive: true,
|
1168
|
-
variant: "green",
|
1169
|
-
css: {
|
1170
|
-
"@hover": {
|
1171
|
-
"&:hover": {
|
1172
|
-
backgroundColor: "$green4",
|
1173
|
-
},
|
1174
|
-
},
|
1175
|
-
"&:active": {
|
1176
|
-
backgroundColor: "$green5",
|
1177
|
-
},
|
1178
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1179
|
-
backgroundColor: "$green5",
|
1180
|
-
},
|
1181
|
-
},
|
1182
|
-
},
|
1183
|
-
{
|
1184
|
-
interactive: true,
|
1185
|
-
variant: "lime",
|
1186
|
-
css: {
|
1187
|
-
"@hover": {
|
1188
|
-
"&:hover": {
|
1189
|
-
backgroundColor: "$lime4",
|
1190
|
-
},
|
1191
|
-
},
|
1192
|
-
"&:active": {
|
1193
|
-
backgroundColor: "$lime5",
|
1194
|
-
},
|
1195
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1196
|
-
backgroundColor: "$lime5",
|
1197
|
-
},
|
1198
|
-
},
|
1199
|
-
},
|
1200
|
-
{
|
1201
|
-
interactive: true,
|
1202
|
-
variant: "yellow",
|
1203
|
-
css: {
|
1204
|
-
"@hover": {
|
1205
|
-
"&:hover": {
|
1206
|
-
backgroundColor: "$yellow4",
|
1207
|
-
},
|
1208
|
-
},
|
1209
|
-
"&:active": {
|
1210
|
-
backgroundColor: "$yellow5",
|
1211
|
-
},
|
1212
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1213
|
-
backgroundColor: "$yellow5",
|
1214
|
-
},
|
1215
|
-
},
|
1216
|
-
},
|
1217
|
-
{
|
1218
|
-
interactive: true,
|
1219
|
-
variant: "orange",
|
1220
|
-
css: {
|
1221
|
-
"@hover": {
|
1222
|
-
"&:hover": {
|
1223
|
-
backgroundColor: "$orange4",
|
1224
|
-
},
|
1225
|
-
},
|
1226
|
-
"&:active": {
|
1227
|
-
backgroundColor: "$orange5",
|
1228
|
-
},
|
1229
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1230
|
-
backgroundColor: "$orange5",
|
1231
|
-
},
|
1232
|
-
},
|
1233
|
-
},
|
1234
|
-
{
|
1235
|
-
interactive: true,
|
1236
|
-
variant: "gold",
|
1237
|
-
css: {
|
1238
|
-
"@hover": {
|
1239
|
-
"&:hover": {
|
1240
|
-
backgroundColor: "$gold4",
|
1241
|
-
},
|
1242
|
-
},
|
1243
|
-
"&:active": {
|
1244
|
-
backgroundColor: "$gold5",
|
1245
|
-
},
|
1246
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1247
|
-
backgroundColor: "$gold5",
|
1248
|
-
},
|
1249
|
-
},
|
1250
|
-
},
|
1251
|
-
{
|
1252
|
-
interactive: true,
|
1253
|
-
variant: "bronze",
|
1254
|
-
css: {
|
1255
|
-
"@hover": {
|
1256
|
-
"&:hover": {
|
1257
|
-
backgroundColor: "$bronze4",
|
1258
|
-
},
|
1259
|
-
},
|
1260
|
-
"&:active": {
|
1261
|
-
backgroundColor: "$bronze5",
|
1262
|
-
},
|
1263
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1264
|
-
backgroundColor: "$bronze5",
|
1265
|
-
},
|
1266
|
-
},
|
1267
|
-
},
|
1268
|
-
],
|
1269
|
-
defaultVariants: {
|
1270
|
-
size: "1",
|
1271
|
-
variant: "neutral",
|
1272
|
-
},
|
1273
|
-
});
|
1274
|
-
|
1275
|
-
var Banner = styled("div", {
|
1276
|
-
// Reset
|
1277
|
-
boxSizing: "border-box",
|
1278
|
-
"&::before": {
|
1279
|
-
boxSizing: "border-box",
|
1280
|
-
},
|
1281
|
-
"&::after": {
|
1282
|
-
boxSizing: "border-box",
|
1283
|
-
},
|
1284
|
-
display: "flex",
|
1285
|
-
justifyContent: "center",
|
1286
|
-
alignItems: "center",
|
1287
|
-
gap: "$3",
|
1288
|
-
variants: {
|
1289
|
-
size: {
|
1290
|
-
"1": {
|
1291
|
-
py: "$1",
|
1292
|
-
px: "$4",
|
1293
|
-
},
|
1294
|
-
},
|
1295
|
-
variant: {
|
1296
|
-
loContrast: {
|
1297
|
-
backgroundColor: "$loContrast",
|
1298
|
-
},
|
1299
|
-
gray: {
|
1300
|
-
backgroundColor: "$neutral3",
|
1301
|
-
},
|
1302
|
-
blue: {
|
1303
|
-
backgroundColor: "$blue3",
|
1304
|
-
},
|
1305
|
-
green: {
|
1306
|
-
backgroundColor: "$green3",
|
1307
|
-
},
|
1308
|
-
indigo: {
|
1309
|
-
backgroundColor: "$indigo3",
|
1310
|
-
},
|
1311
|
-
violet: {
|
1312
|
-
backgroundColor: "$violet3",
|
1313
|
-
},
|
1314
|
-
red: {
|
1315
|
-
backgroundColor: "$red3",
|
1316
|
-
},
|
1317
|
-
},
|
1318
|
-
rounded: {
|
1319
|
-
true: {
|
1320
|
-
borderRadius: "$pill",
|
1321
|
-
},
|
1322
|
-
},
|
1323
|
-
border: {
|
1324
|
-
true: {
|
1325
|
-
borderRadius: "$pill",
|
1326
|
-
},
|
1327
|
-
},
|
1328
|
-
},
|
1329
|
-
compoundVariants: [
|
1330
|
-
{
|
1331
|
-
border: "true",
|
1332
|
-
variant: "gray",
|
1333
|
-
css: {
|
1334
|
-
borderColor: "$neutral6",
|
1335
|
-
},
|
1336
|
-
},
|
1337
|
-
{
|
1338
|
-
border: "true",
|
1339
|
-
variant: "blue",
|
1340
|
-
css: {
|
1341
|
-
borderColor: "$blue9",
|
1342
|
-
},
|
1343
|
-
},
|
1344
|
-
{
|
1345
|
-
border: "true",
|
1346
|
-
variant: "indigo",
|
1347
|
-
css: {
|
1348
|
-
borderColor: "$indigo9",
|
1349
|
-
},
|
1350
|
-
},
|
1351
|
-
{
|
1352
|
-
border: "true",
|
1353
|
-
variant: "violet",
|
1354
|
-
css: {
|
1355
|
-
borderColor: "$violet9",
|
1356
|
-
},
|
1357
|
-
},
|
1358
|
-
{
|
1359
|
-
border: "true",
|
1360
|
-
variant: "loContrast",
|
1361
|
-
css: {
|
1362
|
-
borderColor: "$neutral6",
|
1363
|
-
},
|
1364
|
-
},
|
1365
|
-
],
|
1366
|
-
defaultVariants: {
|
1367
|
-
size: "1",
|
1368
|
-
variant: "gray",
|
1369
|
-
},
|
1370
|
-
});
|
1371
|
-
|
1372
|
-
var colorVariants$1 = {};
|
1373
|
-
var compoundVariants = [];
|
1374
|
-
for (var _i$1 = 0, naturalPairingsKeys_1$1 = naturalPairingsKeys; _i$1 < naturalPairingsKeys_1$1.length; _i$1++) {
|
1375
|
-
var color$1 = naturalPairingsKeys_1$1[_i$1];
|
1376
|
-
colorVariants$1[color$1] = {
|
1377
|
-
bc: "$".concat(color$1, "4"),
|
1378
|
-
color: "$".concat(color$1, "11"),
|
1379
|
-
"&:hover": { bc: "$".concat(color$1, "5") },
|
1380
|
-
"&:active": { bc: "$".concat(color$1, "6") },
|
1381
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1382
|
-
bc: "$".concat(color$1, "4"),
|
1383
|
-
boxShadow: "inset 0 0 0 1px $colors$".concat(color$1, "8"),
|
1384
|
-
},
|
1385
|
-
};
|
1386
|
-
compoundVariants.push({
|
1387
|
-
variant: color$1,
|
1388
|
-
ghost: "true",
|
1389
|
-
css: {
|
1390
|
-
bc: "transparent",
|
1391
|
-
"&:hover": {
|
1392
|
-
bc: "$".concat(color$1, "3"),
|
1393
|
-
boxShadow: "none",
|
1394
|
-
},
|
1395
|
-
"&:active": {
|
1396
|
-
bc: "$".concat(color$1, "4"),
|
1397
|
-
},
|
1398
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1399
|
-
bc: "$".concat(color$1, "4"),
|
1400
|
-
boxShadow: "none",
|
1401
|
-
},
|
1402
|
-
},
|
1403
|
-
});
|
1404
|
-
}
|
1405
|
-
var Button = styled("button", {
|
1406
|
-
// Reset
|
1407
|
-
all: "unset",
|
1408
|
-
alignItems: "center",
|
1409
|
-
boxSizing: "border-box",
|
1410
|
-
userSelect: "none",
|
1411
|
-
"&::before": {
|
1412
|
-
boxSizing: "border-box",
|
1413
|
-
},
|
1414
|
-
"&::after": {
|
1415
|
-
boxSizing: "border-box",
|
1416
|
-
},
|
1417
|
-
// Custom reset?
|
1418
|
-
display: "inline-flex",
|
1419
|
-
flexShrink: 0,
|
1420
|
-
justifyContent: "center",
|
1421
|
-
lineHeight: "1",
|
1422
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
1423
|
-
// Custom
|
1424
|
-
height: "$5",
|
1425
|
-
fontFamily: "$body",
|
1426
|
-
fontSize: "$2",
|
1427
|
-
fontWeight: 600,
|
1428
|
-
ai: "center",
|
1429
|
-
cursor: "pointer",
|
1430
|
-
px: "$3",
|
1431
|
-
bc: "$neutral4",
|
1432
|
-
borderRadius: "$2",
|
1433
|
-
"&:hover": { bc: "$neutral5" },
|
1434
|
-
"&:active": { bc: "$neutral6" },
|
1435
|
-
"&:disabled": {
|
1436
|
-
opacity: 0.5,
|
1437
|
-
cursor: "not-allowed",
|
1438
|
-
},
|
1439
|
-
variants: {
|
1440
|
-
size: {
|
1441
|
-
"1": {
|
1442
|
-
borderRadius: "$2",
|
1443
|
-
height: "$5",
|
1444
|
-
px: "$2",
|
1445
|
-
fontSize: "$1",
|
1446
|
-
lineHeight: "$sizes$5",
|
1447
|
-
},
|
1448
|
-
"2": {
|
1449
|
-
borderRadius: "$3",
|
1450
|
-
height: "$5",
|
1451
|
-
px: "$3",
|
1452
|
-
py: "$3",
|
1453
|
-
fontSize: "$2",
|
1454
|
-
lineHeight: "$sizes$6",
|
1455
|
-
},
|
1456
|
-
"3": {
|
1457
|
-
borderRadius: "$3",
|
1458
|
-
height: "$6",
|
1459
|
-
px: "$3",
|
1460
|
-
fontSize: "$3",
|
1461
|
-
lineHeight: "$sizes$6",
|
1462
|
-
},
|
1463
|
-
"4": {
|
1464
|
-
borderRadius: "$4",
|
1465
|
-
height: "$7",
|
1466
|
-
px: "$4",
|
1467
|
-
fontSize: "$4",
|
1468
|
-
lineHeight: "$sizes$7",
|
1469
|
-
},
|
1470
|
-
},
|
1471
|
-
variant: __assign(__assign({ primary: {
|
1472
|
-
bc: "$primary4",
|
1473
|
-
color: "$primary11",
|
1474
|
-
"&:hover": { bc: "$primary5" },
|
1475
|
-
"&:active": { bc: "$primary6" },
|
1476
|
-
"&:disabled": {
|
1477
|
-
opacity: 0.5,
|
1478
|
-
},
|
1479
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1480
|
-
bc: "$primary4",
|
1481
|
-
boxShadow: "inset 0 0 0 1px $colors$primary8",
|
1482
|
-
},
|
1483
|
-
}, neutral: {
|
1484
|
-
bc: "$neutral4",
|
1485
|
-
color: "$neutral11",
|
1486
|
-
"&:hover": { bc: "$neutral5" },
|
1487
|
-
"&:active": { bc: "$neutral6" },
|
1488
|
-
"&:disabled": {
|
1489
|
-
opacity: 0.5,
|
1490
|
-
},
|
1491
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1492
|
-
bc: "$neutral4",
|
1493
|
-
boxShadow: "inset 0 0 0 1px $colors$primary8",
|
1494
|
-
},
|
1495
|
-
} }, colorVariants$1), { transparentWhite: {
|
1496
|
-
bc: "hsla(0,100%,100%,.2)",
|
1497
|
-
color: "white",
|
1498
|
-
"&:hover": {
|
1499
|
-
bc: "hsla(0,100%,100%,.25)",
|
1500
|
-
},
|
1501
|
-
"&:active": {
|
1502
|
-
bc: "hsla(0,100%,100%,.3)",
|
1503
|
-
},
|
1504
|
-
"&:disabled": {
|
1505
|
-
opacity: 0.5,
|
1506
|
-
},
|
1507
|
-
}, transparentBlack: {
|
1508
|
-
bc: "hsla(0,0%,0%,.2)",
|
1509
|
-
color: "black",
|
1510
|
-
"&:hover": {
|
1511
|
-
bc: "hsla(0,0%,0%,.25)",
|
1512
|
-
},
|
1513
|
-
"&:active": {
|
1514
|
-
bc: "hsla(0,0%,0%,.3)",
|
1515
|
-
},
|
1516
|
-
} }),
|
1517
|
-
ghost: {
|
1518
|
-
true: {
|
1519
|
-
bc: "transparent",
|
1520
|
-
boxShadow: "none",
|
1521
|
-
},
|
1522
|
-
},
|
1523
|
-
},
|
1524
|
-
compoundVariants: __spreadArray([
|
1525
|
-
{
|
1526
|
-
variant: "primary",
|
1527
|
-
ghost: "true",
|
1528
|
-
css: {
|
1529
|
-
bc: "transparent",
|
1530
|
-
"&:hover": {
|
1531
|
-
bc: "$primary3",
|
1532
|
-
boxShadow: "none",
|
1533
|
-
},
|
1534
|
-
"&:active": {
|
1535
|
-
bc: "$primary4",
|
1536
|
-
},
|
1537
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1538
|
-
bc: "$primary4",
|
1539
|
-
boxShadow: "none",
|
1540
|
-
},
|
1541
|
-
},
|
1542
|
-
},
|
1543
|
-
{
|
1544
|
-
variant: "neutral",
|
1545
|
-
ghost: "true",
|
1546
|
-
css: {
|
1547
|
-
bc: "transparent",
|
1548
|
-
color: "$neutral11",
|
1549
|
-
"&:hover": {
|
1550
|
-
bc: "$neutral3",
|
1551
|
-
boxShadow: "none",
|
1552
|
-
},
|
1553
|
-
"&:active": {
|
1554
|
-
bc: "$neutral4",
|
1555
|
-
},
|
1556
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1557
|
-
bc: "$neutral4",
|
1558
|
-
boxShadow: "none",
|
1559
|
-
},
|
1560
|
-
},
|
1561
|
-
}
|
1562
|
-
], compoundVariants, true),
|
1563
|
-
defaultVariants: {
|
1564
|
-
size: "1",
|
1565
|
-
variant: "neutral",
|
1566
|
-
},
|
1567
|
-
});
|
1568
|
-
|
1569
|
-
var Card = styled("div", {
|
1570
|
-
appearance: "none",
|
1571
|
-
border: "none",
|
1572
|
-
boxSizing: "border-box",
|
1573
|
-
font: "inherit",
|
1574
|
-
lineHeight: "1",
|
1575
|
-
outline: "none",
|
1576
|
-
padding: 0,
|
1577
|
-
textAlign: "inherit",
|
1578
|
-
verticalAlign: "middle",
|
1579
|
-
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
|
1580
|
-
backgroundColor: "$panel",
|
1581
|
-
display: "block",
|
1582
|
-
textDecoration: "none",
|
1583
|
-
color: "inherit",
|
1584
|
-
flexShrink: 0,
|
1585
|
-
borderRadius: "$3",
|
1586
|
-
position: "relative",
|
1587
|
-
"&::before": {
|
1588
|
-
boxSizing: "border-box",
|
1589
|
-
content: '""',
|
1590
|
-
position: "absolute",
|
1591
|
-
top: 0,
|
1592
|
-
right: 0,
|
1593
|
-
bottom: 0,
|
1594
|
-
left: 0,
|
1595
|
-
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.1)",
|
1596
|
-
borderRadius: "$3",
|
1597
|
-
pointerEvents: "none",
|
1598
|
-
},
|
1599
|
-
variants: {
|
1600
|
-
variant: {
|
1601
|
-
interactive: {
|
1602
|
-
"@hover": {
|
1603
|
-
"&:hover": {
|
1604
|
-
"&::before": {
|
1605
|
-
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.2)",
|
1606
|
-
},
|
1607
|
-
},
|
1608
|
-
},
|
1609
|
-
"&:focus": {
|
1610
|
-
"&::before": {
|
1611
|
-
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
1612
|
-
},
|
1613
|
-
},
|
1614
|
-
},
|
1615
|
-
ghost: {
|
1616
|
-
backgroundColor: "transparent",
|
1617
|
-
transition: "transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 25ms linear",
|
1618
|
-
willChange: "transform",
|
1619
|
-
"&::before": {
|
1620
|
-
boxShadow: "0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",
|
1621
|
-
opacity: "0",
|
1622
|
-
transition: "all 200ms cubic-bezier(0.22, 1, 0.36, 1)",
|
1623
|
-
},
|
1624
|
-
"@hover": {
|
1625
|
-
"&:hover": {
|
1626
|
-
backgroundColor: "$panel",
|
1627
|
-
transform: "translateY(-2px)",
|
1628
|
-
"&::before": {
|
1629
|
-
opacity: "1",
|
1630
|
-
},
|
1631
|
-
},
|
1632
|
-
},
|
1633
|
-
"&:active": {
|
1634
|
-
transform: "translateY(0)",
|
1635
|
-
transition: "none",
|
1636
|
-
"&::before": {
|
1637
|
-
boxShadow: "0px 5px 16px -5px rgba(22, 23, 24, 0.35), 0px 5px 10px -7px rgba(22, 23, 24, 0.2)",
|
1638
|
-
opacity: "1",
|
1639
|
-
},
|
1640
|
-
},
|
1641
|
-
"&:focus": {
|
1642
|
-
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
1643
|
-
},
|
1644
|
-
},
|
1645
|
-
active: {
|
1646
|
-
transform: "translateY(0)",
|
1647
|
-
transition: "none",
|
1648
|
-
"&::before": {
|
1649
|
-
boxShadow: "0px 5px 16px -5px rgba(22, 23, 24, 0.35), 0px 5px 10px -7px rgba(22, 23, 24, 0.2)",
|
1650
|
-
opacity: "1",
|
1651
|
-
},
|
1652
|
-
"&:focus": {
|
1653
|
-
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
1654
|
-
},
|
1655
|
-
},
|
1656
|
-
},
|
1657
|
-
},
|
1658
|
-
});
|
1659
|
-
|
1660
|
-
var StyledCheckbox = styled(CheckboxPrimitive.Root, {
|
1661
|
-
all: "unset",
|
1662
|
-
boxSizing: "border-box",
|
1663
|
-
userSelect: "none",
|
1664
|
-
"&::before": {
|
1665
|
-
boxSizing: "border-box",
|
1666
|
-
},
|
1667
|
-
"&::after": {
|
1668
|
-
boxSizing: "border-box",
|
1669
|
-
},
|
1670
|
-
alignItems: "center",
|
1671
|
-
appearance: "none",
|
1672
|
-
display: "inline-flex",
|
1673
|
-
justifyContent: "center",
|
1674
|
-
lineHeight: "1",
|
1675
|
-
margin: "0",
|
1676
|
-
outline: "none",
|
1677
|
-
padding: "0",
|
1678
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
1679
|
-
color: "$hiContrast",
|
1680
|
-
boxShadow: "inset 0 0 0 1px $colors$slate7",
|
1681
|
-
overflow: "hidden",
|
1682
|
-
"@hover": {
|
1683
|
-
"&:hover": {
|
1684
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8",
|
1685
|
-
},
|
1686
|
-
},
|
1687
|
-
"&:focus": {
|
1688
|
-
outline: "none",
|
1689
|
-
borderColor: "$red7",
|
1690
|
-
boxShadow: "inset 0 0 0 1px $colors$blue9, 0 0 0 1px $colors$blue9",
|
1691
|
-
},
|
1692
|
-
variants: {
|
1693
|
-
size: {
|
1694
|
-
"1": {
|
1695
|
-
width: "$3",
|
1696
|
-
height: "$3",
|
1697
|
-
borderRadius: "$1",
|
1698
|
-
},
|
1699
|
-
"2": {
|
1700
|
-
width: "$5",
|
1701
|
-
height: "$5",
|
1702
|
-
borderRadius: "$2",
|
1703
|
-
},
|
1704
|
-
},
|
1705
|
-
},
|
1706
|
-
defaultVariants: {
|
1707
|
-
size: "1",
|
1708
|
-
},
|
1709
|
-
});
|
1710
|
-
var StyledIndicator$1 = styled(CheckboxPrimitive.Indicator, {
|
1711
|
-
alignItems: "center",
|
1712
|
-
display: "flex",
|
1713
|
-
height: "100%",
|
1714
|
-
justifyContent: "center",
|
1715
|
-
width: "100%",
|
1716
|
-
});
|
1717
|
-
var Checkbox = React.forwardRef(function (props, forwardedRef) { return (React.createElement(StyledCheckbox, __assign({}, props, { ref: forwardedRef }),
|
1718
|
-
React.createElement(StyledIndicator$1, null,
|
1719
|
-
React.createElement(CheckIcon, null)))); });
|
1720
|
-
Checkbox.displayName = "Checkbox";
|
1721
|
-
|
1722
|
-
var Code = styled("code", {
|
1723
|
-
fontFamily: "$mono",
|
1724
|
-
fontSize: "max(12px, 85%)",
|
1725
|
-
whiteSpace: "nowrap",
|
1726
|
-
padding: "0 3px 2px 3px",
|
1727
|
-
variants: {
|
1728
|
-
variant: {
|
1729
|
-
gray: {
|
1730
|
-
backgroundColor: "$slate3",
|
1731
|
-
color: "$slate11",
|
1732
|
-
},
|
1733
|
-
violet: {
|
1734
|
-
backgroundColor: "$violet3",
|
1735
|
-
color: "$violet11",
|
1736
|
-
},
|
1737
|
-
},
|
1738
|
-
},
|
1739
|
-
defaultVariants: {
|
1740
|
-
variant: "violet",
|
1741
|
-
},
|
1742
|
-
});
|
1743
|
-
|
1744
|
-
var Container = styled("div", {
|
1745
|
-
// Reset
|
1746
|
-
boxSizing: "border-box",
|
1747
|
-
flexShrink: 0,
|
1748
|
-
// Custom
|
1749
|
-
ml: "auto",
|
1750
|
-
mr: "auto",
|
1751
|
-
px: "$5",
|
1752
|
-
variants: {
|
1753
|
-
size: {
|
1754
|
-
"1": {
|
1755
|
-
maxWidth: "430px",
|
1756
|
-
},
|
1757
|
-
"2": {
|
1758
|
-
maxWidth: "715px",
|
1759
|
-
},
|
1760
|
-
"3": {
|
1761
|
-
maxWidth: "1145px",
|
1762
|
-
},
|
1763
|
-
"4": {
|
1764
|
-
maxWidth: "1440px",
|
1765
|
-
},
|
1766
|
-
"5": {
|
1767
|
-
maxWidth: "1600px",
|
1768
|
-
},
|
1769
|
-
"6": {
|
1770
|
-
maxWidth: "1920px",
|
1771
|
-
},
|
1772
|
-
"7": {
|
1773
|
-
maxWidth: "none",
|
1774
|
-
},
|
1775
|
-
},
|
1776
|
-
},
|
1777
|
-
defaultVariants: {
|
1778
|
-
size: "4",
|
1779
|
-
},
|
1780
|
-
});
|
1781
|
-
|
1782
|
-
var Flex = styled("div", {
|
1783
|
-
boxSizing: "border-box",
|
1784
|
-
display: "flex",
|
1785
|
-
variants: {
|
1786
|
-
direction: {
|
1787
|
-
row: {
|
1788
|
-
flexDirection: "row",
|
1789
|
-
},
|
1790
|
-
column: {
|
1791
|
-
flexDirection: "column",
|
1792
|
-
},
|
1793
|
-
rowReverse: {
|
1794
|
-
flexDirection: "row-reverse",
|
1795
|
-
},
|
1796
|
-
columnReverse: {
|
1797
|
-
flexDirection: "column-reverse",
|
1798
|
-
},
|
1799
|
-
},
|
1800
|
-
align: {
|
1801
|
-
start: {
|
1802
|
-
alignItems: "flex-start",
|
1803
|
-
},
|
1804
|
-
center: {
|
1805
|
-
alignItems: "center",
|
1806
|
-
},
|
1807
|
-
end: {
|
1808
|
-
alignItems: "flex-end",
|
1809
|
-
},
|
1810
|
-
stretch: {
|
1811
|
-
alignItems: "stretch",
|
1812
|
-
},
|
1813
|
-
baseline: {
|
1814
|
-
alignItems: "baseline",
|
1815
|
-
},
|
1816
|
-
},
|
1817
|
-
justify: {
|
1818
|
-
start: {
|
1819
|
-
justifyContent: "flex-start",
|
1820
|
-
},
|
1821
|
-
center: {
|
1822
|
-
justifyContent: "center",
|
1823
|
-
},
|
1824
|
-
end: {
|
1825
|
-
justifyContent: "flex-end",
|
1826
|
-
},
|
1827
|
-
between: {
|
1828
|
-
justifyContent: "space-between",
|
1829
|
-
},
|
1830
|
-
},
|
1831
|
-
wrap: {
|
1832
|
-
noWrap: {
|
1833
|
-
flexWrap: "nowrap",
|
1834
|
-
},
|
1835
|
-
wrap: {
|
1836
|
-
flexWrap: "wrap",
|
1837
|
-
},
|
1838
|
-
wrapReverse: {
|
1839
|
-
flexWrap: "wrap-reverse",
|
1840
|
-
},
|
1841
|
-
},
|
1842
|
-
gap: {
|
1843
|
-
1: {
|
1844
|
-
gap: "$1",
|
1845
|
-
},
|
1846
|
-
2: {
|
1847
|
-
gap: "$2",
|
1848
|
-
},
|
1849
|
-
3: {
|
1850
|
-
gap: "$3",
|
1851
|
-
},
|
1852
|
-
4: {
|
1853
|
-
gap: "$4",
|
1854
|
-
},
|
1855
|
-
5: {
|
1856
|
-
gap: "$5",
|
1857
|
-
},
|
1858
|
-
6: {
|
1859
|
-
gap: "$6",
|
1860
|
-
},
|
1861
|
-
7: {
|
1862
|
-
gap: "$7",
|
1863
|
-
},
|
1864
|
-
8: {
|
1865
|
-
gap: "$8",
|
1866
|
-
},
|
1867
|
-
9: {
|
1868
|
-
gap: "$9",
|
1869
|
-
},
|
1870
|
-
},
|
1871
|
-
},
|
1872
|
-
defaultVariants: {
|
1873
|
-
direction: "row",
|
1874
|
-
align: "stretch",
|
1875
|
-
justify: "start",
|
1876
|
-
wrap: "noWrap",
|
1877
|
-
},
|
1878
|
-
});
|
1879
|
-
|
1880
|
-
var baseItemCss = css({
|
1881
|
-
display: "flex",
|
1882
|
-
alignItems: "center",
|
1883
|
-
justifyContent: "space-between",
|
1884
|
-
fontFamily: "$untitled",
|
1885
|
-
fontSize: "$1",
|
1886
|
-
fontVariantNumeric: "tabular-nums",
|
1887
|
-
lineHeight: "1",
|
1888
|
-
cursor: "default",
|
1889
|
-
userSelect: "none",
|
1890
|
-
whiteSpace: "nowrap",
|
1891
|
-
height: "$5",
|
1892
|
-
px: "$5",
|
1893
|
-
});
|
1894
|
-
var itemCss = css(baseItemCss, {
|
1895
|
-
position: "relative",
|
1896
|
-
color: "$hiContrast",
|
1897
|
-
"&[data-highlighted]": {
|
1898
|
-
outline: "none",
|
1899
|
-
backgroundColor: "$blue9",
|
1900
|
-
color: "white",
|
1901
|
-
},
|
1902
|
-
"&[data-disabled]": {
|
1903
|
-
color: "$slate9",
|
1904
|
-
},
|
1905
|
-
});
|
1906
|
-
var labelCss = css(baseItemCss, {
|
1907
|
-
color: "$slate11",
|
1908
|
-
});
|
1909
|
-
var menuCss = css({
|
1910
|
-
boxSizing: "border-box",
|
1911
|
-
minWidth: 120,
|
1912
|
-
py: "$1",
|
1913
|
-
});
|
1914
|
-
var separatorCss = css({
|
1915
|
-
height: 1,
|
1916
|
-
my: "$1",
|
1917
|
-
backgroundColor: "$slate6",
|
1918
|
-
});
|
1919
|
-
var Menu = styled(MenuPrimitive.Root, menuCss);
|
1920
|
-
styled(MenuPrimitive.Content, panelStyles);
|
1921
|
-
var MenuSeparator = styled(MenuPrimitive.Separator, separatorCss);
|
1922
|
-
var MenuItem = styled(MenuPrimitive.Item, itemCss);
|
1923
|
-
var StyledMenuRadioItem = styled(MenuPrimitive.RadioItem, itemCss);
|
1924
|
-
var MenuRadioItem = React.forwardRef(function (_a, forwardedRef) {
|
1925
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
1926
|
-
return (React.createElement(StyledMenuRadioItem, __assign({}, props, { ref: forwardedRef }),
|
1927
|
-
React.createElement(Box, { as: "span", css: { position: "absolute", left: "$1" } },
|
1928
|
-
React.createElement(MenuPrimitive.ItemIndicator, null,
|
1929
|
-
React.createElement(Flex, { css: {
|
1930
|
-
width: "$3",
|
1931
|
-
height: "$3",
|
1932
|
-
alignItems: "center",
|
1933
|
-
justifyContent: "center",
|
1934
|
-
} },
|
1935
|
-
React.createElement(Box, { css: {
|
1936
|
-
width: "$1",
|
1937
|
-
height: "$1",
|
1938
|
-
backgroundColor: "currentColor",
|
1939
|
-
borderRadius: "$round",
|
1940
|
-
} })))),
|
1941
|
-
children));
|
1942
|
-
});
|
1943
|
-
MenuRadioItem.displayName = "MenuRadioItem";
|
1944
|
-
var StyledMenuCheckboxItem = styled(MenuPrimitive.CheckboxItem, itemCss);
|
1945
|
-
var MenuCheckboxItem = React.forwardRef(function (_a, forwardedRef) {
|
1946
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
1947
|
-
return (React.createElement(StyledMenuCheckboxItem, __assign({}, props, { ref: forwardedRef }),
|
1948
|
-
React.createElement(Box, { as: "span", css: { position: "absolute", left: "$1" } },
|
1949
|
-
React.createElement(MenuPrimitive.ItemIndicator, null,
|
1950
|
-
React.createElement(CheckIcon, null))),
|
1951
|
-
children));
|
1952
|
-
});
|
1953
|
-
MenuCheckboxItem.displayName = "MenuCheckboxItem";
|
1954
|
-
var MenuLabel = styled(MenuPrimitive.Label, labelCss);
|
1955
|
-
var MenuRadioGroup = styled(MenuPrimitive.RadioGroup, {});
|
1956
|
-
var MenuGroup = styled(MenuPrimitive.Group, {});
|
1957
|
-
|
1958
|
-
var ContextMenu = ContextMenuPrimitive.Root;
|
1959
|
-
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
1960
|
-
var StyledContent$4 = styled(ContextMenuPrimitive.Content, menuCss, panelStyles);
|
1961
|
-
var ContextMenuContent = React.forwardRef(function (props, forwardedRef) { return (React.createElement(ContextMenuPrimitive.Portal, null,
|
1962
|
-
React.createElement(StyledContent$4, __assign({}, props, { ref: forwardedRef })))); });
|
1963
|
-
ContextMenuContent.displayName = "ContextMenuContent";
|
1964
|
-
var ContextMenuItem = styled(ContextMenuPrimitive.Item, itemCss);
|
1965
|
-
var ContextMenuGroup = styled(ContextMenuPrimitive.Group, {});
|
1966
|
-
var ContextMenuLabel = styled(ContextMenuPrimitive.Label, labelCss);
|
1967
|
-
var ContextMenuSeparator = styled(ContextMenuPrimitive.Separator, separatorCss);
|
1968
|
-
var StyledContextMenuCheckboxItem = styled(ContextMenuPrimitive.CheckboxItem, itemCss);
|
1969
|
-
var ContextMenuCheckboxItem = React.forwardRef(function (_a, forwardedRef) {
|
1970
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
1971
|
-
return (React.createElement(StyledContextMenuCheckboxItem, __assign({}, props, { ref: forwardedRef }),
|
1972
|
-
React.createElement(Box, { as: "span", css: { position: "absolute", left: "$1" } },
|
1973
|
-
React.createElement(ContextMenuPrimitive.ItemIndicator, null,
|
1974
|
-
React.createElement(CheckIcon, null))),
|
1975
|
-
children));
|
1976
|
-
});
|
1977
|
-
ContextMenuCheckboxItem.displayName = "ContextMenuCheckboxItem";
|
1978
|
-
var ContextMenuRadioGroup = styled(ContextMenuPrimitive.RadioGroup, {});
|
1979
|
-
var StyledContextMenuRadioItem = styled(ContextMenuPrimitive.RadioItem, itemCss);
|
1980
|
-
var ContextMenuRadioItem = React.forwardRef(function (_a, forwardedRef) {
|
1981
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
1982
|
-
return (React.createElement(StyledContextMenuRadioItem, __assign({}, props, { ref: forwardedRef }),
|
1983
|
-
React.createElement(Box, { as: "span", css: { position: "absolute", left: "$1" } },
|
1984
|
-
React.createElement(ContextMenuPrimitive.ItemIndicator, null,
|
1985
|
-
React.createElement(Flex, { css: {
|
1986
|
-
width: "$3",
|
1987
|
-
height: "$3",
|
1988
|
-
alignItems: "center",
|
1989
|
-
justifyContent: "center",
|
1990
|
-
} },
|
1991
|
-
React.createElement(Box, { css: {
|
1992
|
-
width: "$1",
|
1993
|
-
height: "$1",
|
1994
|
-
backgroundColor: "currentColor",
|
1995
|
-
borderRadius: "$round",
|
1996
|
-
} })))),
|
1997
|
-
children));
|
1998
|
-
});
|
1999
|
-
ContextMenuRadioItem.displayName = "ContextMenuRadioItem";
|
2000
|
-
|
2001
|
-
var StyledTextField = styled("input", {
|
2002
|
-
// Reset
|
2003
|
-
appearance: "none",
|
2004
|
-
borderWidth: "0",
|
2005
|
-
boxSizing: "border-box",
|
2006
|
-
fontFamily: "inherit",
|
2007
|
-
margin: "0",
|
2008
|
-
outline: "none",
|
2009
|
-
padding: "0",
|
2010
|
-
width: "100%",
|
2011
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
2012
|
-
lineHeight: "1",
|
2013
|
-
"&::before": {
|
2014
|
-
boxSizing: "border-box",
|
2015
|
-
},
|
2016
|
-
"&::after": {
|
2017
|
-
boxSizing: "border-box",
|
2018
|
-
},
|
2019
|
-
// Custom
|
2020
|
-
backgroundColor: "$loContrast",
|
2021
|
-
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
2022
|
-
color: "$hiContrast",
|
2023
|
-
"&:-webkit-autofill": {
|
2024
|
-
boxShadow: "inset 0 0 0 1px $colors$primary6, inset 0 0 0 100px $colors$primary3",
|
2025
|
-
},
|
2026
|
-
"&:-webkit-autofill::first-line": {
|
2027
|
-
fontFamily: "$body",
|
2028
|
-
color: "$hiContrast",
|
2029
|
-
},
|
2030
|
-
"&:focus": {
|
2031
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8",
|
2032
|
-
"&:-webkit-autofill": {
|
2033
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8, inset 0 0 0 100px $colors$primary3",
|
2034
|
-
},
|
2035
|
-
},
|
2036
|
-
"&::placeholder": {
|
2037
|
-
color: "$neutral9",
|
2038
|
-
},
|
2039
|
-
"&:disabled": {
|
2040
|
-
pointerEvents: "none",
|
2041
|
-
backgroundColor: "$neutral2",
|
2042
|
-
color: "$neutral8",
|
2043
|
-
cursor: "not-allowed",
|
2044
|
-
"&::placeholder": {
|
2045
|
-
color: "$neutral7",
|
2046
|
-
},
|
2047
|
-
},
|
2048
|
-
"&:read-only": {
|
2049
|
-
backgroundColor: "$neutral2",
|
2050
|
-
"&:focus": {
|
2051
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$neutral7",
|
2052
|
-
},
|
2053
|
-
},
|
2054
|
-
variants: {
|
2055
|
-
size: {
|
2056
|
-
"1": {
|
2057
|
-
borderRadius: "$1",
|
2058
|
-
height: "$5",
|
2059
|
-
fontSize: "$1",
|
2060
|
-
px: "$1",
|
2061
|
-
"&:-webkit-autofill::first-line": {
|
2062
|
-
fontSize: "$1",
|
2063
|
-
},
|
2064
|
-
},
|
2065
|
-
"2": {
|
2066
|
-
borderRadius: "$2",
|
2067
|
-
height: "$6",
|
2068
|
-
fontSize: "$3",
|
2069
|
-
px: "$2",
|
2070
|
-
"&:-webkit-autofill::first-line": {
|
2071
|
-
fontSize: "$3",
|
2072
|
-
},
|
2073
|
-
},
|
2074
|
-
"3": {
|
2075
|
-
borderRadius: "$2",
|
2076
|
-
height: "$7",
|
2077
|
-
fontSize: "$3",
|
2078
|
-
px: "$2",
|
2079
|
-
"&:-webkit-autofill::first-line": {
|
2080
|
-
fontSize: "$3",
|
2081
|
-
},
|
2082
|
-
},
|
2083
|
-
},
|
2084
|
-
variant: {
|
2085
|
-
ghost: {
|
2086
|
-
boxShadow: "none",
|
2087
|
-
backgroundColor: "transparent",
|
2088
|
-
"@hover": {
|
2089
|
-
"&:hover": {
|
2090
|
-
boxShadow: "inset 0 0 0 1px $colors$neutralA7",
|
2091
|
-
},
|
2092
|
-
},
|
2093
|
-
"&:focus": {
|
2094
|
-
backgroundColor: "$loContrast",
|
2095
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8",
|
2096
|
-
},
|
2097
|
-
"&:disabled": {
|
2098
|
-
backgroundColor: "transparent",
|
2099
|
-
},
|
2100
|
-
"&:read-only": {
|
2101
|
-
backgroundColor: "transparent",
|
2102
|
-
},
|
2103
|
-
},
|
2104
|
-
white: {
|
2105
|
-
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
2106
|
-
backgroundColor: "white",
|
2107
|
-
"@hover": {
|
2108
|
-
"&:hover": {
|
2109
|
-
boxShadow: "inset 0 0 0 1px $colors$neutralA7",
|
2110
|
-
},
|
2111
|
-
},
|
2112
|
-
"&:focus": {
|
2113
|
-
backgroundColor: "white",
|
2114
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8",
|
2115
|
-
},
|
2116
|
-
"&::placeholder": {
|
2117
|
-
color: "$neutral9",
|
2118
|
-
},
|
2119
|
-
"&:disabled": {
|
2120
|
-
pointerEvents: "none",
|
2121
|
-
backgroundColor: "$neutral2",
|
2122
|
-
color: "$neutral8",
|
2123
|
-
cursor: "not-allowed",
|
2124
|
-
"&::placeholder": {
|
2125
|
-
color: "$neutral7",
|
2126
|
-
},
|
2127
|
-
},
|
2128
|
-
"&:read-only": {
|
2129
|
-
backgroundColor: "$neutral2",
|
2130
|
-
"&:focus": {
|
2131
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$neutral7",
|
2132
|
-
},
|
2133
|
-
},
|
2134
|
-
},
|
2135
|
-
},
|
2136
|
-
state: {
|
2137
|
-
invalid: {
|
2138
|
-
boxShadow: "inset 0 0 0 1px $colors$red7",
|
2139
|
-
"&:focus": {
|
2140
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$red8, 0px 0px 0px 1px $colors$red8",
|
2141
|
-
},
|
2142
|
-
},
|
2143
|
-
valid: {
|
2144
|
-
boxShadow: "inset 0 0 0 1px $colors$green7",
|
2145
|
-
"&:focus": {
|
2146
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$green8, 0px 0px 0px 1px $colors$green8",
|
2147
|
-
},
|
2148
|
-
},
|
2149
|
-
},
|
2150
|
-
cursor: {
|
2151
|
-
default: {
|
2152
|
-
cursor: "default",
|
2153
|
-
"&:focus": {
|
2154
|
-
cursor: "text",
|
2155
|
-
},
|
2156
|
-
},
|
2157
|
-
text: {
|
2158
|
-
cursor: "text",
|
2159
|
-
},
|
2160
|
-
},
|
2161
|
-
},
|
2162
|
-
defaultVariants: {
|
2163
|
-
size: "1",
|
2164
|
-
},
|
2165
|
-
});
|
2166
|
-
var TextField = StyledTextField;
|
2167
|
-
|
2168
|
-
var SelectWrapper = styled("div", {
|
2169
|
-
backgroundColor: "$loContrast",
|
2170
|
-
borderRadius: "$2",
|
2171
|
-
boxShadow: "inset 0 0 0 1px $colors$slate7",
|
2172
|
-
color: "$hiContrast",
|
2173
|
-
fontFamily: "$untitled",
|
2174
|
-
fontSize: "$1",
|
2175
|
-
fontVariantNumeric: "tabular-nums",
|
2176
|
-
fontWeight: 400,
|
2177
|
-
height: "$5",
|
2178
|
-
flexShrink: 0,
|
2179
|
-
"&:focus-within": {
|
2180
|
-
zIndex: 1,
|
2181
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
2182
|
-
},
|
2183
|
-
});
|
2184
|
-
var StyledSelect = styled("select", {
|
2185
|
-
appearance: "none",
|
2186
|
-
backgroundColor: "transparent",
|
2187
|
-
border: "none",
|
2188
|
-
borderRadius: "inherit",
|
2189
|
-
color: "inherit",
|
2190
|
-
font: "inherit",
|
2191
|
-
outline: "none",
|
2192
|
-
width: "100%",
|
2193
|
-
height: "100%",
|
2194
|
-
pl: "$1",
|
2195
|
-
pr: "$3",
|
2196
|
-
lineHeight: "25px",
|
2197
|
-
});
|
2198
|
-
var StyledCaretSortIcon = styled(CaretSortIcon, {
|
2199
|
-
position: "absolute",
|
2200
|
-
pointerEvents: "none",
|
2201
|
-
display: "inline",
|
2202
|
-
// Use margins instead of top/left to avoid setting "position: relative" on parent,
|
2203
|
-
// which would make stacking context tricky with Select used in a control group.
|
2204
|
-
marginTop: 5,
|
2205
|
-
marginLeft: -16,
|
2206
|
-
});
|
2207
|
-
var SelectBase = React.forwardRef(function (_a, forwardedRef) {
|
2208
|
-
var css = _a.css, props = __rest(_a, ["css"]);
|
2209
|
-
return (React.createElement(SelectWrapper, { css: css },
|
2210
|
-
React.createElement(StyledSelect, __assign({ ref: forwardedRef }, props)),
|
2211
|
-
React.createElement(StyledCaretSortIcon, null)));
|
2212
|
-
});
|
2213
|
-
SelectBase.toString = function () { return ".".concat(SelectWrapper.className); };
|
2214
|
-
SelectBase.displayName = "Select";
|
2215
|
-
var Select = styled(SelectBase, {
|
2216
|
-
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
2217
|
-
});
|
2218
|
-
|
2219
|
-
var _a$6;
|
2220
|
-
var ControlGroup = styled("div", (_a$6 = {
|
2221
|
-
display: "flex",
|
2222
|
-
// Make sure ControlGroup and its children don't affect normal stacking order
|
2223
|
-
position: "relative",
|
2224
|
-
zIndex: 0
|
2225
|
-
},
|
2226
|
-
_a$6["& ".concat(Button)] = {
|
2227
|
-
borderRadius: 0,
|
2228
|
-
boxShadow: "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
|
2229
|
-
"&:hover": {
|
2230
|
-
boxShadow: "-1px 0 $colors$slate8, inset 0 1px $colors$slate8, inset -1px 0 $colors$slate8, inset 0 -1px $colors$slate8",
|
2231
|
-
},
|
2232
|
-
"&:focus": {
|
2233
|
-
zIndex: 1,
|
2234
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
|
2235
|
-
},
|
2236
|
-
"&:first-child": {
|
2237
|
-
borderTopLeftRadius: "$1",
|
2238
|
-
borderBottomLeftRadius: "$1",
|
2239
|
-
boxShadow: "inset 0 0 0 1px $colors$slate7",
|
2240
|
-
"&:hover": {
|
2241
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8",
|
2242
|
-
},
|
2243
|
-
"&:focus": {
|
2244
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
|
2245
|
-
},
|
2246
|
-
},
|
2247
|
-
"&:last-child": {
|
2248
|
-
borderTopRightRadius: "$1",
|
2249
|
-
borderBottomRightRadius: "$1",
|
2250
|
-
boxShadow: "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
|
2251
|
-
"&:focus": {
|
2252
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
|
2253
|
-
},
|
2254
|
-
},
|
2255
|
-
},
|
2256
|
-
_a$6["& ".concat(TextField)] = {
|
2257
|
-
borderRadius: 0,
|
2258
|
-
boxShadow: "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
|
2259
|
-
"&:focus": {
|
2260
|
-
zIndex: 1,
|
2261
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
2262
|
-
},
|
2263
|
-
"&:first-child": {
|
2264
|
-
borderTopLeftRadius: "$1",
|
2265
|
-
borderBottomLeftRadius: "$1",
|
2266
|
-
boxShadow: "inset 0 0 0 1px $colors$slate7",
|
2267
|
-
"&:focus": {
|
2268
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
2269
|
-
},
|
2270
|
-
},
|
2271
|
-
"&:last-child": {
|
2272
|
-
borderTopRightRadius: "$1",
|
2273
|
-
borderBottomRightRadius: "$1",
|
2274
|
-
boxShadow: "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
|
2275
|
-
"&:focus": {
|
2276
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
2277
|
-
},
|
2278
|
-
},
|
2279
|
-
},
|
2280
|
-
_a$6["& ".concat(Select)] = {
|
2281
|
-
borderRadius: 0,
|
2282
|
-
boxShadow: "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
|
2283
|
-
"&:focus-within": {
|
2284
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
2285
|
-
},
|
2286
|
-
"&:first-child": {
|
2287
|
-
borderTopLeftRadius: "$1",
|
2288
|
-
borderBottomLeftRadius: "$1",
|
2289
|
-
boxShadow: "inset 0 0 0 1px $colors$slate7",
|
2290
|
-
"&:focus-within": {
|
2291
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
2292
|
-
},
|
2293
|
-
},
|
2294
|
-
"&:last-child": {
|
2295
|
-
borderTopRightRadius: "$1",
|
2296
|
-
borderBottomRightRadius: "$1",
|
2297
|
-
boxShadow: "inset 0 1px $colors$slate7, inset -1px 0 $colors$slate7, inset 0 -1px $colors$slate7",
|
2298
|
-
"&:focus-within": {
|
2299
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
2300
|
-
},
|
2301
|
-
},
|
2302
|
-
},
|
2303
|
-
_a$6));
|
2304
|
-
|
2305
|
-
var DesignSystemProvider = function (props) {
|
2306
|
-
return React.createElement(TooltipProvider, __assign({}, props));
|
2307
|
-
};
|
2308
|
-
|
2309
|
-
var IconButton = styled("button", {
|
2310
|
-
// Reset
|
2311
|
-
alignItems: "center",
|
2312
|
-
appearance: "none",
|
2313
|
-
borderWidth: "0",
|
2314
|
-
boxSizing: "border-box",
|
2315
|
-
display: "inline-flex",
|
2316
|
-
flexShrink: 0,
|
2317
|
-
fontFamily: "inherit",
|
2318
|
-
fontSize: "14px",
|
2319
|
-
justifyContent: "center",
|
2320
|
-
lineHeight: "1",
|
2321
|
-
outline: "none",
|
2322
|
-
padding: "0",
|
2323
|
-
textDecoration: "none",
|
2324
|
-
userSelect: "none",
|
2325
|
-
WebkitTapHighlightColor: "transparent",
|
2326
|
-
color: "$hiContrast",
|
2327
|
-
"&::before": {
|
2328
|
-
boxSizing: "border-box",
|
2329
|
-
},
|
2330
|
-
"&::after": {
|
2331
|
-
boxSizing: "border-box",
|
2332
|
-
},
|
2333
|
-
backgroundColor: "$loContrast",
|
2334
|
-
border: "1px solid $slate7",
|
2335
|
-
"@hover": {
|
2336
|
-
"&:hover": {
|
2337
|
-
borderColor: "$slate8",
|
2338
|
-
},
|
2339
|
-
},
|
2340
|
-
"&:active": {
|
2341
|
-
backgroundColor: "$slate2",
|
2342
|
-
},
|
2343
|
-
"&:focus": {
|
2344
|
-
borderColor: "$slate8",
|
2345
|
-
boxShadow: "0 0 0 1px $colors$slate8",
|
2346
|
-
},
|
2347
|
-
"&:disabled": {
|
2348
|
-
pointerEvents: "none",
|
2349
|
-
backgroundColor: "transparent",
|
2350
|
-
color: "$slate6",
|
2351
|
-
},
|
2352
|
-
variants: {
|
2353
|
-
size: {
|
2354
|
-
"1": {
|
2355
|
-
borderRadius: "$1",
|
2356
|
-
height: "$5",
|
2357
|
-
width: "$5",
|
2358
|
-
},
|
2359
|
-
"2": {
|
2360
|
-
borderRadius: "$2",
|
2361
|
-
height: "$6",
|
2362
|
-
width: "$6",
|
2363
|
-
},
|
2364
|
-
"3": {
|
2365
|
-
borderRadius: "$2",
|
2366
|
-
height: "$7",
|
2367
|
-
width: "$7",
|
2368
|
-
},
|
2369
|
-
"4": {
|
2370
|
-
borderRadius: "$3",
|
2371
|
-
height: "$8",
|
2372
|
-
width: "$8",
|
2373
|
-
},
|
2374
|
-
},
|
2375
|
-
variant: {
|
2376
|
-
ghost: {
|
2377
|
-
backgroundColor: "transparent",
|
2378
|
-
borderWidth: "0",
|
2379
|
-
"@hover": {
|
2380
|
-
"&:hover": {
|
2381
|
-
backgroundColor: "$slateA3",
|
2382
|
-
},
|
2383
|
-
},
|
2384
|
-
"&:focus": {
|
2385
|
-
boxShadow: "inset 0 0 0 1px $colors$slateA8, 0 0 0 1px $colors$slateA8",
|
2386
|
-
},
|
2387
|
-
"&:active": {
|
2388
|
-
backgroundColor: "$slateA4",
|
2389
|
-
},
|
2390
|
-
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
2391
|
-
backgroundColor: "$slateA4",
|
2392
|
-
},
|
2393
|
-
},
|
2394
|
-
raised: {
|
2395
|
-
boxShadow: "0 0 transparent, 0 16px 32px hsl(206deg 12% 5% / 25%), 0 3px 5px hsl(0deg 0% 0% / 10%)",
|
2396
|
-
"@hover": {
|
2397
|
-
"&:hover": {
|
2398
|
-
boxShadow: "0 0 transparent, 0 16px 32px hsl(206deg 12% 5% / 25%), 0 3px 5px hsl(0deg 0% 0% / 10%)",
|
2399
|
-
},
|
2400
|
-
},
|
2401
|
-
"&:focus": {
|
2402
|
-
borderColor: "$slate8",
|
2403
|
-
boxShadow: "0 0 0 1px $colors$slate8, 0 16px 32px hsl(206deg 12% 5% / 25%), 0 3px 5px hsl(0deg 0% 0% / 10%)",
|
2404
|
-
},
|
2405
|
-
"&:active": {
|
2406
|
-
backgroundColor: "$slate4",
|
2407
|
-
},
|
2408
|
-
},
|
2409
|
-
},
|
2410
|
-
state: {
|
2411
|
-
active: {
|
2412
|
-
backgroundColor: "$slate4",
|
2413
|
-
boxShadow: "inset 0 0 0 1px hsl(206,10%,76%)",
|
2414
|
-
"@hover": {
|
2415
|
-
"&:hover": {
|
2416
|
-
boxShadow: "inset 0 0 0 1px hsl(206,10%,76%)",
|
2417
|
-
},
|
2418
|
-
},
|
2419
|
-
"&:active": {
|
2420
|
-
backgroundColor: "$slate4",
|
2421
|
-
},
|
2422
|
-
},
|
2423
|
-
waiting: {
|
2424
|
-
backgroundColor: "$slate4",
|
2425
|
-
boxShadow: "inset 0 0 0 1px hsl(206,10%,76%)",
|
2426
|
-
"@hover": {
|
2427
|
-
"&:hover": {
|
2428
|
-
boxShadow: "inset 0 0 0 1px hsl(206,10%,76%)",
|
2429
|
-
},
|
2430
|
-
},
|
2431
|
-
"&:active": {
|
2432
|
-
backgroundColor: "$slate4",
|
2433
|
-
},
|
2434
|
-
},
|
2435
|
-
},
|
2436
|
-
},
|
2437
|
-
defaultVariants: {
|
2438
|
-
size: "1",
|
2439
|
-
variant: "ghost",
|
2440
|
-
},
|
2441
|
-
});
|
2442
|
-
|
2443
|
-
var fadeIn$1 = keyframes({
|
2444
|
-
from: { opacity: 0 },
|
2445
|
-
to: { opacity: 1 },
|
2446
|
-
});
|
2447
|
-
var scaleIn = keyframes({
|
2448
|
-
from: { transform: "translate(-50%, -50%) scale(0.9)" },
|
2449
|
-
to: { transform: "translate(-50%, -50%) scale(1)" },
|
2450
|
-
});
|
2451
|
-
var fadeout = keyframes({
|
2452
|
-
from: { opacity: 1 },
|
2453
|
-
to: { opacity: 0 },
|
2454
|
-
});
|
2455
|
-
var StyledOverlay$1 = styled(DialogPrimitive.Overlay, overlayStyles, {
|
2456
|
-
position: "fixed",
|
2457
|
-
top: 0,
|
2458
|
-
right: 0,
|
2459
|
-
bottom: 0,
|
2460
|
-
left: 0,
|
2461
|
-
backgroundColor: "rgba(0,0,0,.35)",
|
2462
|
-
inset: 0,
|
2463
|
-
zIndex: 1000,
|
2464
|
-
variants: {
|
2465
|
-
animation: {
|
2466
|
-
true: {
|
2467
|
-
'&[data-state="open"]': {
|
2468
|
-
animation: "".concat(fadeIn$1, " 300ms ease-out"),
|
2469
|
-
},
|
2470
|
-
'&[data-state="closed"]': {
|
2471
|
-
animation: "".concat(fadeout, " 200ms ease-out"),
|
2472
|
-
},
|
2473
|
-
},
|
2474
|
-
},
|
2475
|
-
},
|
2476
|
-
});
|
2477
|
-
function Dialog(_a) {
|
2478
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
2479
|
-
return (React.createElement(DialogPrimitive.Root, __assign({}, props),
|
2480
|
-
React.createElement(StyledOverlay$1, { animation: true }),
|
2481
|
-
children));
|
2482
|
-
}
|
2483
|
-
var StyledDialogContent = styled(DialogPrimitive.Content, panelStyles, {
|
2484
|
-
position: "fixed",
|
2485
|
-
top: "50%",
|
2486
|
-
left: "50%",
|
2487
|
-
transform: "translate(-50%, -50%)",
|
2488
|
-
maxHeight: "85vh",
|
2489
|
-
padding: "$4",
|
2490
|
-
marginTop: "-5vh",
|
2491
|
-
backgroundColor: "$panel",
|
2492
|
-
borderRadius: "$4",
|
2493
|
-
boxShadow: "$colors$shadowLight 0px 10px 38px -10px, $colors$shadowDark 0px 10px 20px -15px",
|
2494
|
-
color: "$black",
|
2495
|
-
zIndex: 1001,
|
2496
|
-
"&:focus": {
|
2497
|
-
outline: "none",
|
2498
|
-
},
|
2499
|
-
// Among other things, prevents text alignment inconsistencies when dialog can't be centered in the viewport evenly.
|
2500
|
-
// Affects animated and non-animated dialogs alike.
|
2501
|
-
willChange: "transform",
|
2502
|
-
variants: {
|
2503
|
-
animation: {
|
2504
|
-
fade: {
|
2505
|
-
'&[data-state="open"]': {
|
2506
|
-
animation: "".concat(fadeIn$1, " 300ms ease-out"),
|
2507
|
-
},
|
2508
|
-
'&[data-state="closed"]': {
|
2509
|
-
animation: "".concat(fadeout, " 200ms ease-out"),
|
2510
|
-
},
|
2511
|
-
},
|
2512
|
-
scale: {
|
2513
|
-
animation: "".concat(fadeIn$1, " 300ms ease-out, ").concat(scaleIn, " 200ms ease-out"),
|
2514
|
-
},
|
2515
|
-
},
|
2516
|
-
},
|
2517
|
-
defaultVariants: {
|
2518
|
-
animation: "scale",
|
2519
|
-
},
|
2520
|
-
});
|
2521
|
-
var StyledCloseButton$1 = styled(DialogPrimitive.Close, {
|
2522
|
-
position: "absolute",
|
2523
|
-
top: "$2",
|
2524
|
-
right: "$2",
|
2525
|
-
cursor: "pointer"
|
2526
|
-
});
|
2527
|
-
var DialogContent = React.forwardRef(function (_a, forwardedRef) {
|
2528
|
-
var children = _a.children; _a.animation; var props = __rest(_a, ["children", "animation"]);
|
2529
|
-
return (React.createElement(DialogPrimitive.Portal, null,
|
2530
|
-
React.createElement(StyledOverlay$1, null),
|
2531
|
-
React.createElement(StyledDialogContent, __assign({}, props, { ref: forwardedRef, style: { overflow: 'auto' } }),
|
2532
|
-
children,
|
2533
|
-
React.createElement(StyledCloseButton$1, { asChild: true },
|
2534
|
-
React.createElement(IconButton, { variant: "ghost" },
|
2535
|
-
React.createElement(Cross1Icon, null))))));
|
2536
|
-
});
|
2537
|
-
DialogContent.displayName = "DialogContent";
|
2538
|
-
var DialogTrigger = DialogPrimitive.Trigger;
|
2539
|
-
var DialogTitle = DialogPrimitive.Title;
|
2540
|
-
var DialogDescription = DialogPrimitive.Description;
|
2541
|
-
var DialogClose = DialogPrimitive.Close;
|
2542
|
-
|
2543
|
-
var colorVariants = {};
|
2544
|
-
for (var _i = 0, naturalPairingsKeys_1 = naturalPairingsKeys; _i < naturalPairingsKeys_1.length; _i++) {
|
2545
|
-
var color = naturalPairingsKeys_1[_i];
|
2546
|
-
colorVariants[color] = {
|
2547
|
-
"&:focus": {
|
2548
|
-
outline: "none",
|
2549
|
-
backgroundColor: "$".concat(color, "4"),
|
2550
|
-
color: "$hiContrast",
|
2551
|
-
},
|
2552
|
-
};
|
2553
|
-
}
|
2554
|
-
var DropdownMenuItemBase = styled(DropdownMenuPrimitive.Item, itemCss);
|
2555
|
-
var DropdownMenu = DropdownMenuPrimitive.Root;
|
2556
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
2557
|
-
var StyledContent$3 = styled(DropdownMenuPrimitive.Content, menuCss, panelStyles);
|
2558
|
-
var DropdownMenuContent = React.forwardRef(function (props, forwardedRef) { return (React.createElement(DropdownMenuPrimitive.Portal, null,
|
2559
|
-
React.createElement(StyledContent$3, __assign({}, props, { ref: forwardedRef })))); });
|
2560
|
-
DropdownMenuContent.displayName = "DropdownMenuContent";
|
2561
|
-
var DropdownMenuGroup = styled(DropdownMenuPrimitive.Group, {});
|
2562
|
-
var DropdownMenuLabel = styled(DropdownMenuPrimitive.Label, labelCss);
|
2563
|
-
var DropdownMenuSeparator = styled(DropdownMenuPrimitive.Separator, separatorCss);
|
2564
|
-
var StyledDropdownMenuCheckboxItem = styled(DropdownMenuPrimitive.CheckboxItem, itemCss);
|
2565
|
-
var DropdownMenuCheckboxItemBase = React.forwardRef(function (_a, forwardedRef) {
|
2566
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
2567
|
-
return (React.createElement(StyledDropdownMenuCheckboxItem, __assign({}, props, { ref: forwardedRef }),
|
2568
|
-
React.createElement(Box, { as: "span", css: { position: "absolute", left: "$1" } },
|
2569
|
-
React.createElement(DropdownMenuPrimitive.ItemIndicator, null,
|
2570
|
-
React.createElement(CheckIcon, null))),
|
2571
|
-
children));
|
2572
|
-
});
|
2573
|
-
DropdownMenuCheckboxItemBase.displayName = "DropdownMenuCheckboxItemBase";
|
2574
|
-
var DropdownMenuRadioGroup = styled(DropdownMenuPrimitive.RadioGroup, {});
|
2575
|
-
var StyledDropdownMenuRadioItem = styled(DropdownMenuPrimitive.RadioItem, itemCss);
|
2576
|
-
var DropdownMenuRadioItemBase = React.forwardRef(function (_a, forwardedRef) {
|
2577
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
2578
|
-
return (React.createElement(StyledDropdownMenuRadioItem, __assign({}, props, { ref: forwardedRef }),
|
2579
|
-
React.createElement(Box, { as: "span", css: { position: "absolute", left: "$1" } },
|
2580
|
-
React.createElement(DropdownMenuPrimitive.ItemIndicator, null,
|
2581
|
-
React.createElement(Flex, { css: {
|
2582
|
-
width: "$3",
|
2583
|
-
height: "$3",
|
2584
|
-
alignItems: "center",
|
2585
|
-
justifyContent: "center",
|
2586
|
-
} },
|
2587
|
-
React.createElement(Box, { css: {
|
2588
|
-
width: "$1",
|
2589
|
-
height: "$1",
|
2590
|
-
backgroundColor: "currentColor",
|
2591
|
-
borderRadius: "$round",
|
2592
|
-
} })))),
|
2593
|
-
children));
|
2594
|
-
});
|
2595
|
-
DropdownMenuRadioItemBase.displayName = "DropdownMenuRadioItemBase";
|
2596
|
-
var DropdownMenuItem = styled(DropdownMenuItemBase, {
|
2597
|
-
variants: {
|
2598
|
-
color: __assign({ primary: {
|
2599
|
-
"&:focus": {
|
2600
|
-
outline: "none",
|
2601
|
-
backgroundColor: "$primary4",
|
2602
|
-
color: "$hiContrast",
|
2603
|
-
},
|
2604
|
-
} }, colorVariants),
|
2605
|
-
},
|
2606
|
-
defaultVariants: {
|
2607
|
-
color: "primary",
|
2608
|
-
},
|
2609
|
-
});
|
2610
|
-
var DropdownMenuRadioItem = styled(DropdownMenuRadioItemBase, {
|
2611
|
-
variants: {
|
2612
|
-
color: __assign({ primary: {
|
2613
|
-
"&:focus": {
|
2614
|
-
outline: "none",
|
2615
|
-
backgroundColor: "$primary4",
|
2616
|
-
color: "$hiContrast",
|
2617
|
-
},
|
2618
|
-
} }, colorVariants),
|
2619
|
-
},
|
2620
|
-
defaultVariants: {
|
2621
|
-
color: "primary",
|
2622
|
-
},
|
2623
|
-
});
|
2624
|
-
var DropdownMenuCheckboxItem = styled(DropdownMenuCheckboxItemBase, {
|
2625
|
-
variants: {
|
2626
|
-
color: __assign({ primary: {
|
2627
|
-
"&:focus": {
|
2628
|
-
outline: "none",
|
2629
|
-
backgroundColor: "$primary4",
|
2630
|
-
color: "$hiContrast",
|
2631
|
-
},
|
2632
|
-
} }, colorVariants),
|
2633
|
-
},
|
2634
|
-
defaultVariants: {
|
2635
|
-
color: "primary",
|
2636
|
-
},
|
2637
|
-
});
|
2638
|
-
|
2639
|
-
var Grid = styled("div", {
|
2640
|
-
boxSizing: "border-box",
|
2641
|
-
display: "grid",
|
2642
|
-
variants: {
|
2643
|
-
align: {
|
2644
|
-
start: {
|
2645
|
-
alignItems: "start",
|
2646
|
-
},
|
2647
|
-
center: {
|
2648
|
-
alignItems: "center",
|
2649
|
-
},
|
2650
|
-
end: {
|
2651
|
-
alignItems: "end",
|
2652
|
-
},
|
2653
|
-
stretch: {
|
2654
|
-
alignItems: "stretch",
|
2655
|
-
},
|
2656
|
-
baseline: {
|
2657
|
-
alignItems: "baseline",
|
2658
|
-
},
|
2659
|
-
},
|
2660
|
-
justify: {
|
2661
|
-
start: {
|
2662
|
-
justifyContent: "start",
|
2663
|
-
},
|
2664
|
-
center: {
|
2665
|
-
justifyContent: "center",
|
2666
|
-
},
|
2667
|
-
end: {
|
2668
|
-
justifyContent: "end",
|
2669
|
-
},
|
2670
|
-
between: {
|
2671
|
-
justifyContent: "space-between",
|
2672
|
-
},
|
2673
|
-
},
|
2674
|
-
flow: {
|
2675
|
-
row: {
|
2676
|
-
gridAutoFlow: "row",
|
2677
|
-
},
|
2678
|
-
column: {
|
2679
|
-
gridAutoFlow: "column",
|
2680
|
-
},
|
2681
|
-
dense: {
|
2682
|
-
gridAutoFlow: "dense",
|
2683
|
-
},
|
2684
|
-
rowDense: {
|
2685
|
-
gridAutoFlow: "row dense",
|
2686
|
-
},
|
2687
|
-
columnDense: {
|
2688
|
-
gridAutoFlow: "column dense",
|
2689
|
-
},
|
2690
|
-
},
|
2691
|
-
columns: {
|
2692
|
-
1: {
|
2693
|
-
gridTemplateColumns: "repeat(1, 1fr)",
|
2694
|
-
},
|
2695
|
-
2: {
|
2696
|
-
gridTemplateColumns: "repeat(2, 1fr)",
|
2697
|
-
},
|
2698
|
-
3: {
|
2699
|
-
gridTemplateColumns: "repeat(3, 1fr)",
|
2700
|
-
},
|
2701
|
-
4: {
|
2702
|
-
gridTemplateColumns: "repeat(4, 1fr)",
|
2703
|
-
},
|
2704
|
-
},
|
2705
|
-
gap: {
|
2706
|
-
1: {
|
2707
|
-
gap: "$1",
|
2708
|
-
},
|
2709
|
-
2: {
|
2710
|
-
gap: "$2",
|
2711
|
-
},
|
2712
|
-
3: {
|
2713
|
-
gap: "$3",
|
2714
|
-
},
|
2715
|
-
4: {
|
2716
|
-
gap: "$4",
|
2717
|
-
},
|
2718
|
-
5: {
|
2719
|
-
gap: "$5",
|
2720
|
-
},
|
2721
|
-
6: {
|
2722
|
-
gap: "$6",
|
2723
|
-
},
|
2724
|
-
7: {
|
2725
|
-
gap: "$7",
|
2726
|
-
},
|
2727
|
-
8: {
|
2728
|
-
gap: "$8",
|
2729
|
-
},
|
2730
|
-
9: {
|
2731
|
-
gap: "$9",
|
2732
|
-
},
|
2733
|
-
},
|
2734
|
-
gapX: {
|
2735
|
-
1: {
|
2736
|
-
columnGap: "$1",
|
2737
|
-
},
|
2738
|
-
2: {
|
2739
|
-
columnGap: "$2",
|
2740
|
-
},
|
2741
|
-
3: {
|
2742
|
-
columnGap: "$3",
|
2743
|
-
},
|
2744
|
-
4: {
|
2745
|
-
columnGap: "$4",
|
2746
|
-
},
|
2747
|
-
5: {
|
2748
|
-
columnGap: "$5",
|
2749
|
-
},
|
2750
|
-
6: {
|
2751
|
-
columnGap: "$6",
|
2752
|
-
},
|
2753
|
-
7: {
|
2754
|
-
columnGap: "$7",
|
2755
|
-
},
|
2756
|
-
8: {
|
2757
|
-
columnGap: "$8",
|
2758
|
-
},
|
2759
|
-
9: {
|
2760
|
-
columnGap: "$9",
|
2761
|
-
},
|
2762
|
-
},
|
2763
|
-
gapY: {
|
2764
|
-
1: {
|
2765
|
-
rowGap: "$1",
|
2766
|
-
},
|
2767
|
-
2: {
|
2768
|
-
rowGap: "$2",
|
2769
|
-
},
|
2770
|
-
3: {
|
2771
|
-
rowGap: "$3",
|
2772
|
-
},
|
2773
|
-
4: {
|
2774
|
-
rowGap: "$4",
|
2775
|
-
},
|
2776
|
-
5: {
|
2777
|
-
rowGap: "$5",
|
2778
|
-
},
|
2779
|
-
6: {
|
2780
|
-
rowGap: "$6",
|
2781
|
-
},
|
2782
|
-
7: {
|
2783
|
-
rowGap: "$7",
|
2784
|
-
},
|
2785
|
-
8: {
|
2786
|
-
rowGap: "$8",
|
2787
|
-
},
|
2788
|
-
9: {
|
2789
|
-
rowGap: "$9",
|
2790
|
-
},
|
2791
|
-
},
|
2792
|
-
},
|
2793
|
-
});
|
2794
|
-
|
2795
|
-
var Text = styled("span", {
|
2796
|
-
// Reset
|
2797
|
-
lineHeight: 1.5,
|
2798
|
-
margin: "0",
|
2799
|
-
fontWeight: 400,
|
2800
|
-
display: "block",
|
2801
|
-
variants: {
|
2802
|
-
size: {
|
2803
|
-
"1": {
|
2804
|
-
fontSize: "$1",
|
2805
|
-
},
|
2806
|
-
"2": {
|
2807
|
-
fontSize: "$2",
|
2808
|
-
},
|
2809
|
-
"3": {
|
2810
|
-
fontSize: "$3",
|
2811
|
-
},
|
2812
|
-
"4": {
|
2813
|
-
fontSize: "$4",
|
2814
|
-
},
|
2815
|
-
"5": {
|
2816
|
-
fontSize: "$5",
|
2817
|
-
letterSpacing: "-.015em",
|
2818
|
-
},
|
2819
|
-
"6": {
|
2820
|
-
fontSize: "$6",
|
2821
|
-
letterSpacing: "-.016em",
|
2822
|
-
},
|
2823
|
-
"7": {
|
2824
|
-
fontSize: "$7",
|
2825
|
-
letterSpacing: "-.031em",
|
2826
|
-
textIndent: "-.005em",
|
2827
|
-
},
|
2828
|
-
"8": {
|
2829
|
-
fontSize: "$8",
|
2830
|
-
letterSpacing: "-.034em",
|
2831
|
-
textIndent: "-.018em",
|
2832
|
-
},
|
2833
|
-
"9": {
|
2834
|
-
fontSize: "$9",
|
2835
|
-
letterSpacing: "-.055em",
|
2836
|
-
textIndent: "-.025em",
|
2837
|
-
},
|
2838
|
-
},
|
2839
|
-
variant: {
|
2840
|
-
red: {
|
2841
|
-
color: "$red11",
|
2842
|
-
},
|
2843
|
-
crimson: {
|
2844
|
-
color: "$crimson11",
|
2845
|
-
},
|
2846
|
-
pink: {
|
2847
|
-
color: "$pink11",
|
2848
|
-
},
|
2849
|
-
purple: {
|
2850
|
-
color: "$purple11",
|
2851
|
-
},
|
2852
|
-
violet: {
|
2853
|
-
color: "$violet11",
|
2854
|
-
},
|
2855
|
-
indigo: {
|
2856
|
-
color: "$indigo11",
|
2857
|
-
},
|
2858
|
-
blue: {
|
2859
|
-
color: "$blue11",
|
2860
|
-
},
|
2861
|
-
cyan: {
|
2862
|
-
color: "$cyan11",
|
2863
|
-
},
|
2864
|
-
teal: {
|
2865
|
-
color: "$teal11",
|
2866
|
-
},
|
2867
|
-
green: {
|
2868
|
-
color: "$green11",
|
2869
|
-
},
|
2870
|
-
lime: {
|
2871
|
-
color: "$lime11",
|
2872
|
-
},
|
2873
|
-
yellow: {
|
2874
|
-
color: "$yellow11",
|
2875
|
-
},
|
2876
|
-
orange: {
|
2877
|
-
color: "$orange11",
|
2878
|
-
},
|
2879
|
-
gold: {
|
2880
|
-
color: "$gold11",
|
2881
|
-
},
|
2882
|
-
bronze: {
|
2883
|
-
color: "$bronze11",
|
2884
|
-
},
|
2885
|
-
gray: {
|
2886
|
-
color: "$slate11",
|
2887
|
-
},
|
2888
|
-
primary: {
|
2889
|
-
color: "$primary11",
|
2890
|
-
},
|
2891
|
-
neutral: {
|
2892
|
-
color: "$neutral11",
|
2893
|
-
},
|
2894
|
-
contrast: {
|
2895
|
-
color: "$hiContrast",
|
2896
|
-
},
|
2897
|
-
},
|
2898
|
-
gradient: {
|
2899
|
-
true: {
|
2900
|
-
WebkitBackgroundClip: "text",
|
2901
|
-
WebkitTextFillColor: "transparent",
|
2902
|
-
},
|
2903
|
-
},
|
2904
|
-
},
|
2905
|
-
compoundVariants: [
|
2906
|
-
{
|
2907
|
-
variant: "red",
|
2908
|
-
gradient: "true",
|
2909
|
-
css: {
|
2910
|
-
background: "linear-gradient(to right, $red11, $crimson11)",
|
2911
|
-
},
|
2912
|
-
},
|
2913
|
-
{
|
2914
|
-
variant: "crimson",
|
2915
|
-
gradient: "true",
|
2916
|
-
css: {
|
2917
|
-
background: "linear-gradient(to right, $crimson11, $pink11)",
|
2918
|
-
},
|
2919
|
-
},
|
2920
|
-
{
|
2921
|
-
variant: "pink",
|
2922
|
-
gradient: "true",
|
2923
|
-
css: {
|
2924
|
-
background: "linear-gradient(to right, $pink11, $purple11)",
|
2925
|
-
},
|
2926
|
-
},
|
2927
|
-
{
|
2928
|
-
variant: "purple",
|
2929
|
-
gradient: "true",
|
2930
|
-
css: {
|
2931
|
-
background: "linear-gradient(to right, $purple11, $violet11)",
|
2932
|
-
},
|
2933
|
-
},
|
2934
|
-
{
|
2935
|
-
variant: "violet",
|
2936
|
-
gradient: "true",
|
2937
|
-
css: {
|
2938
|
-
background: "linear-gradient(to right, $violet11, $indigo11)",
|
2939
|
-
},
|
2940
|
-
},
|
2941
|
-
{
|
2942
|
-
variant: "indigo",
|
2943
|
-
gradient: "true",
|
2944
|
-
css: {
|
2945
|
-
background: "linear-gradient(to right, $indigo11, $blue11)",
|
2946
|
-
},
|
2947
|
-
},
|
2948
|
-
{
|
2949
|
-
variant: "blue",
|
2950
|
-
gradient: "true",
|
2951
|
-
css: {
|
2952
|
-
background: "linear-gradient(to right, $blue11, $cyan11)",
|
2953
|
-
},
|
2954
|
-
},
|
2955
|
-
{
|
2956
|
-
variant: "cyan",
|
2957
|
-
gradient: "true",
|
2958
|
-
css: {
|
2959
|
-
background: "linear-gradient(to right, $cyan11, $teal11)",
|
2960
|
-
},
|
2961
|
-
},
|
2962
|
-
{
|
2963
|
-
variant: "teal",
|
2964
|
-
gradient: "true",
|
2965
|
-
css: {
|
2966
|
-
background: "linear-gradient(to right, $teal11, $green11)",
|
2967
|
-
},
|
2968
|
-
},
|
2969
|
-
{
|
2970
|
-
variant: "green",
|
2971
|
-
gradient: "true",
|
2972
|
-
css: {
|
2973
|
-
background: "linear-gradient(to right, $green11, $lime11)",
|
2974
|
-
},
|
2975
|
-
},
|
2976
|
-
{
|
2977
|
-
variant: "lime",
|
2978
|
-
gradient: "true",
|
2979
|
-
css: {
|
2980
|
-
background: "linear-gradient(to right, $lime11, $yellow11)",
|
2981
|
-
},
|
2982
|
-
},
|
2983
|
-
{
|
2984
|
-
variant: "yellow",
|
2985
|
-
gradient: "true",
|
2986
|
-
css: {
|
2987
|
-
background: "linear-gradient(to right, $yellow11, $orange11)",
|
2988
|
-
},
|
2989
|
-
},
|
2990
|
-
{
|
2991
|
-
variant: "orange",
|
2992
|
-
gradient: "true",
|
2993
|
-
css: {
|
2994
|
-
background: "linear-gradient(to right, $orange11, $red11)",
|
2995
|
-
},
|
2996
|
-
},
|
2997
|
-
{
|
2998
|
-
variant: "gold",
|
2999
|
-
gradient: "true",
|
3000
|
-
css: {
|
3001
|
-
background: "linear-gradient(to right, $gold11, $gold9)",
|
3002
|
-
},
|
3003
|
-
},
|
3004
|
-
{
|
3005
|
-
variant: "bronze",
|
3006
|
-
gradient: "true",
|
3007
|
-
css: {
|
3008
|
-
background: "linear-gradient(to right, $bronze11, $bronze9)",
|
3009
|
-
},
|
3010
|
-
},
|
3011
|
-
{
|
3012
|
-
variant: "gray",
|
3013
|
-
gradient: "true",
|
3014
|
-
css: {
|
3015
|
-
background: "linear-gradient(to right, $gray11, $gray12)",
|
3016
|
-
},
|
3017
|
-
},
|
3018
|
-
{
|
3019
|
-
variant: "contrast",
|
3020
|
-
gradient: "true",
|
3021
|
-
css: {
|
3022
|
-
background: "linear-gradient(to right, $hiContrast, $gray12)",
|
3023
|
-
},
|
3024
|
-
},
|
3025
|
-
],
|
3026
|
-
defaultVariants: {
|
3027
|
-
size: "3",
|
3028
|
-
variant: "contrast",
|
3029
|
-
},
|
3030
|
-
});
|
3031
|
-
|
3032
|
-
var DEFAULT_TAG$1 = "h1";
|
3033
|
-
var Heading = React.forwardRef(function (props, forwardedRef) {
|
3034
|
-
// '2' here is the default heading size variant
|
3035
|
-
var _a = props.size, size = _a === void 0 ? "1" : _a, textProps = __rest(props, ["size"]);
|
3036
|
-
// This is the mapping of Heading Variants to Text variants
|
3037
|
-
var textSize = {
|
3038
|
-
1: { "@initial": "4", "@bp2": "5" },
|
3039
|
-
2: { "@initial": "6", "@bp2": "7" },
|
3040
|
-
3: { "@initial": "7", "@bp2": "8" },
|
3041
|
-
4: { "@initial": "8", "@bp2": "9" },
|
3042
|
-
};
|
3043
|
-
// This is the mapping of Heading Variants to Text css
|
3044
|
-
var textCss = {
|
3045
|
-
1: { fontWeight: 500, lineHeight: "20px", "@bp2": { lineHeight: "23px" } },
|
3046
|
-
2: { fontWeight: 500, lineHeight: "25px", "@bp2": { lineHeight: "30px" } },
|
3047
|
-
3: { fontWeight: 500, lineHeight: "33px", "@bp2": { lineHeight: "41px" } },
|
3048
|
-
4: { fontWeight: 500, lineHeight: "35px", "@bp2": { lineHeight: "55px" } },
|
3049
|
-
};
|
3050
|
-
return (React.createElement(Text, __assign({ as: DEFAULT_TAG$1 }, textProps, { ref: forwardedRef, size: textSize[size], css: __assign({ fontVariantNumeric: "proportional-nums" }, merge(textCss[size], props.css)) })));
|
3051
|
-
});
|
3052
|
-
Heading.displayName = "Heading";
|
3053
|
-
|
3054
|
-
var Image = styled("img", {
|
3055
|
-
// Reset
|
3056
|
-
verticalAlign: "middle",
|
3057
|
-
maxWidth: "100%",
|
3058
|
-
});
|
3059
|
-
|
3060
|
-
var Kbd = styled("kbd", {
|
3061
|
-
boxSizing: "border-box",
|
3062
|
-
display: "inline-flex",
|
3063
|
-
alignItems: "center",
|
3064
|
-
justifyContent: "center",
|
3065
|
-
backgroundColor: "$loContrast",
|
3066
|
-
flexShrink: 0,
|
3067
|
-
color: "$hiContrast",
|
3068
|
-
userSelect: "none",
|
3069
|
-
cursor: "default",
|
3070
|
-
whiteSpace: "nowrap",
|
3071
|
-
boxShadow: "\n inset 0 0.5px rgba(255, 255, 255, 0.1),\n inset 0 1px 5px $colors$slate2,\n 0px 0px 0px 0.5px $colors$slate8,\n 0px 2px 1px -1px $colors$slate8,\n 0 1px $colors$slate8",
|
3072
|
-
textShadow: "0 0 1px rgba(255, 255, 255, 0.5)",
|
3073
|
-
fontFamily: "inherit",
|
3074
|
-
fontWeight: 400,
|
3075
|
-
lineHeight: "1.5",
|
3076
|
-
mx: "2px",
|
3077
|
-
variants: {
|
3078
|
-
size: {
|
3079
|
-
"1": {
|
3080
|
-
borderRadius: "$1",
|
3081
|
-
px: "0.3em",
|
3082
|
-
height: "$3",
|
3083
|
-
minWidth: "1.6em",
|
3084
|
-
fontSize: "$1",
|
3085
|
-
lineHeight: "$spaces$3",
|
3086
|
-
},
|
3087
|
-
"2": {
|
3088
|
-
borderRadius: "$2",
|
3089
|
-
px: "0.5em",
|
3090
|
-
height: "$5",
|
3091
|
-
minWidth: "2em",
|
3092
|
-
fontSize: "$2",
|
3093
|
-
lineHeight: "$spaces$5",
|
3094
|
-
},
|
3095
|
-
},
|
3096
|
-
width: {
|
3097
|
-
shift: {
|
3098
|
-
width: "4em",
|
3099
|
-
justifyContent: "flex-start",
|
3100
|
-
},
|
3101
|
-
command: {
|
3102
|
-
width: "3em",
|
3103
|
-
justifyContent: "flex-end",
|
3104
|
-
},
|
3105
|
-
space: {
|
3106
|
-
width: "8em",
|
3107
|
-
},
|
3108
|
-
},
|
3109
|
-
},
|
3110
|
-
compoundVariants: [
|
3111
|
-
{
|
3112
|
-
size: "1",
|
3113
|
-
width: "shift",
|
3114
|
-
css: {
|
3115
|
-
width: "3em",
|
3116
|
-
},
|
3117
|
-
},
|
3118
|
-
{
|
3119
|
-
size: "1",
|
3120
|
-
width: "command",
|
3121
|
-
css: {
|
3122
|
-
width: "2.5em",
|
3123
|
-
},
|
3124
|
-
},
|
3125
|
-
{
|
3126
|
-
size: "1",
|
3127
|
-
width: "space",
|
3128
|
-
css: {
|
3129
|
-
width: "5em",
|
3130
|
-
},
|
3131
|
-
},
|
3132
|
-
],
|
3133
|
-
defaultVariants: {
|
3134
|
-
size: "2",
|
3135
|
-
},
|
3136
|
-
});
|
3137
|
-
|
3138
|
-
var Label = styled(LabelPrimitive.Root, Text, {
|
3139
|
-
fontSize: "$2",
|
3140
|
-
display: "inline-block",
|
3141
|
-
verticalAlign: "middle",
|
3142
|
-
cursor: "default",
|
3143
|
-
});
|
3144
|
-
|
3145
|
-
var _a$5;
|
3146
|
-
var Link = styled("a", (_a$5 = {
|
3147
|
-
alignItems: "center",
|
3148
|
-
gap: "$1",
|
3149
|
-
flexShrink: 0,
|
3150
|
-
outline: "none",
|
3151
|
-
textDecorationLine: "none",
|
3152
|
-
textUnderlineOffset: "3px",
|
3153
|
-
textDecorationColor: "$neutral4",
|
3154
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
3155
|
-
lineHeight: "inherit",
|
3156
|
-
"@hover": {
|
3157
|
-
"&:hover": {
|
3158
|
-
textDecorationLine: "underline",
|
3159
|
-
},
|
3160
|
-
},
|
3161
|
-
"&:focus": {
|
3162
|
-
outline: "none",
|
3163
|
-
textDecorationLine: "none",
|
3164
|
-
}
|
3165
|
-
},
|
3166
|
-
_a$5["& ".concat(Text)] = {
|
3167
|
-
color: "inherit",
|
3168
|
-
},
|
3169
|
-
_a$5.variants = {
|
3170
|
-
variant: {
|
3171
|
-
blue: {
|
3172
|
-
color: "$blue11",
|
3173
|
-
textDecorationColor: "$blue4",
|
3174
|
-
"&:focus": {
|
3175
|
-
outlineColor: "$blue8",
|
3176
|
-
},
|
3177
|
-
},
|
3178
|
-
indigo: {
|
3179
|
-
color: "$indigo11",
|
3180
|
-
textDecorationColor: "$indigo4",
|
3181
|
-
"&:focus": {
|
3182
|
-
outlineColor: "$indigo8",
|
3183
|
-
},
|
3184
|
-
},
|
3185
|
-
primary: {
|
3186
|
-
color: "$primary11",
|
3187
|
-
textDecorationColor: "$primary4",
|
3188
|
-
"&:focus": {
|
3189
|
-
outlineColor: "$primary8",
|
3190
|
-
},
|
3191
|
-
},
|
3192
|
-
subtle: {
|
3193
|
-
color: "$neutral11",
|
3194
|
-
textDecorationColor: "$neutral4",
|
3195
|
-
"&:focus": {
|
3196
|
-
outlineColor: "$neutral8",
|
3197
|
-
},
|
3198
|
-
},
|
3199
|
-
contrast: {
|
3200
|
-
color: "$hiContrast",
|
3201
|
-
textDecoration: "underline",
|
3202
|
-
textDecorationColor: "$neutral4",
|
3203
|
-
"@hover": {
|
3204
|
-
"&:hover": {
|
3205
|
-
textDecorationColor: "$neutral7",
|
3206
|
-
},
|
3207
|
-
},
|
3208
|
-
"&:focus": {
|
3209
|
-
outlineColor: "$neutral8",
|
3210
|
-
},
|
3211
|
-
},
|
3212
|
-
},
|
3213
|
-
},
|
3214
|
-
_a$5.defaultVariants = {
|
3215
|
-
variant: "contrast",
|
3216
|
-
},
|
3217
|
-
_a$5));
|
3218
|
-
|
3219
|
-
var DEFAULT_TAG = "p";
|
3220
|
-
var Paragraph = React.forwardRef(function (props, forwardedRef) {
|
3221
|
-
// '2' here is the default Paragraph size variant
|
3222
|
-
var _a = props.size, size = _a === void 0 ? "1" : _a, textProps = __rest(props, ["size"]);
|
3223
|
-
// This is the mapping of Paragraph Variants to Text variants
|
3224
|
-
var textSize = {
|
3225
|
-
1: { "@initial": "3", "@bp2": "4" },
|
3226
|
-
2: { "@initial": "5", "@bp2": "6" },
|
3227
|
-
};
|
3228
|
-
// This is the mapping of Paragraph Variants to Text css
|
3229
|
-
var textCss = {
|
3230
|
-
1: { lineHeight: "25px", "@bp2": { lineHeight: "27px" } },
|
3231
|
-
2: {
|
3232
|
-
color: "$slate11",
|
3233
|
-
lineHeight: "27px",
|
3234
|
-
"@bp2": { lineHeight: "30px" },
|
3235
|
-
},
|
3236
|
-
};
|
3237
|
-
return (React.createElement(Text, __assign({ as: DEFAULT_TAG }, textProps, { ref: forwardedRef, size: textSize[size], css: __assign({}, merge(textCss[size], props.css)) })));
|
3238
|
-
});
|
3239
|
-
Paragraph.displayName = "Paragraph";
|
3240
|
-
|
3241
|
-
var Popover = PopoverPrimitive.Root;
|
3242
|
-
var PopoverTrigger = PopoverPrimitive.Trigger;
|
3243
|
-
var StyledContent$2 = styled(PopoverPrimitive.Content, panelStyles, {
|
3244
|
-
minWidth: 200,
|
3245
|
-
minHeight: "$6",
|
3246
|
-
maxWidth: 265,
|
3247
|
-
"&:focus": {
|
3248
|
-
outline: "none",
|
3249
|
-
},
|
3250
|
-
});
|
3251
|
-
var PopoverContent = React.forwardRef(function (_a, fowardedRef) {
|
3252
|
-
var children = _a.children, hideArrow = _a.hideArrow, props = __rest(_a, ["children", "hideArrow"]);
|
3253
|
-
return (React.createElement(PopoverPrimitive.Portal, null,
|
3254
|
-
React.createElement(StyledContent$2, __assign({ sideOffset: 0 }, props, { ref: fowardedRef }),
|
3255
|
-
children,
|
3256
|
-
!hideArrow && (React.createElement(Box, { css: { color: "$panel" } },
|
3257
|
-
React.createElement(PopoverPrimitive.Arrow, { width: 11, height: 5, style: { fill: "currentColor" } }))))));
|
3258
|
-
});
|
3259
|
-
PopoverContent.displayName = "PopoverContent";
|
3260
|
-
var PopoverClose = PopoverPrimitive.Close;
|
3261
|
-
|
3262
|
-
var indeterminateProgress = keyframes({
|
3263
|
-
"0%": {
|
3264
|
-
transform: "scaleX(1) translateX(-100%)",
|
3265
|
-
transformOrigin: "left",
|
3266
|
-
},
|
3267
|
-
"50%": {
|
3268
|
-
transform: "scaleX(1) translateX(1000%)",
|
3269
|
-
transformOrigin: "left",
|
3270
|
-
},
|
3271
|
-
"100%": {
|
3272
|
-
transform: "scaleX(1) translateX(2000%)",
|
3273
|
-
transformOrigin: "left",
|
3274
|
-
},
|
3275
|
-
});
|
3276
|
-
var StyledProgressBar = styled(ProgressPrimitive.Root, {
|
3277
|
-
boxSizing: "border-box",
|
3278
|
-
position: "relative",
|
3279
|
-
height: "$1",
|
3280
|
-
overflow: "hidden",
|
3281
|
-
borderRadius: "$pill",
|
3282
|
-
'&[data-state="indeterminate"]': {
|
3283
|
-
backgroundColor: "$slate4",
|
3284
|
-
"&::after": {
|
3285
|
-
animationName: indeterminateProgress,
|
3286
|
-
animationDuration: "1500ms",
|
3287
|
-
animationIterationCount: "infinite",
|
3288
|
-
animationTimingFunction: "cubic-bezier(0.65, 0, 0.35, 1)",
|
3289
|
-
backgroundColor: "$slate7",
|
3290
|
-
boxSizing: "border-box",
|
3291
|
-
borderRadius: "$pill",
|
3292
|
-
content: '""',
|
3293
|
-
position: "absolute",
|
3294
|
-
top: 0,
|
3295
|
-
bottom: 0,
|
3296
|
-
left: 0,
|
3297
|
-
width: "5%",
|
3298
|
-
},
|
3299
|
-
},
|
3300
|
-
variants: {
|
3301
|
-
variant: {
|
3302
|
-
gray: {
|
3303
|
-
background: "$slate8",
|
3304
|
-
},
|
3305
|
-
blue: {
|
3306
|
-
backgroundColor: "$blue9",
|
3307
|
-
},
|
3308
|
-
gradient: {
|
3309
|
-
backgroundImage: "linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 50%, rgba(252,176,69,1) 100%)",
|
3310
|
-
},
|
3311
|
-
},
|
3312
|
-
},
|
3313
|
-
defaultVariants: {
|
3314
|
-
variant: "gray",
|
3315
|
-
},
|
3316
|
-
});
|
3317
|
-
var ProgressBarIndicator = styled(ProgressPrimitive.Indicator, {
|
3318
|
-
boxSizing: "border-box",
|
3319
|
-
position: "absolute",
|
3320
|
-
top: 0,
|
3321
|
-
right: 0,
|
3322
|
-
bottom: 0,
|
3323
|
-
left: 0,
|
3324
|
-
width: "100%",
|
3325
|
-
backgroundColor: "$slate4",
|
3326
|
-
transition: "transform 150ms cubic-bezier(0.65, 0, 0.35, 1)",
|
3327
|
-
});
|
3328
|
-
var ProgressBar = React.forwardRef(function (_a, forwardedRef) {
|
3329
|
-
var value = _a.value, _b = _a.max, max = _b === void 0 ? 100 : _b, props = __rest(_a, ["value", "max"]);
|
3330
|
-
var percentage = value != null ? Math.round((value / max) * 100) : null;
|
3331
|
-
return (React.createElement(StyledProgressBar, __assign({}, props, { ref: forwardedRef, value: value, max: max }),
|
3332
|
-
React.createElement(ProgressBarIndicator, { style: { transform: "translateX(".concat(percentage, "%)") } })));
|
3333
|
-
});
|
3334
|
-
ProgressBar.displayName = "ProgressBar";
|
3335
|
-
|
3336
|
-
var Promo = styled("div", {
|
3337
|
-
// Reset
|
3338
|
-
boxSizing: "border-box",
|
3339
|
-
"&::before": {
|
3340
|
-
boxSizing: "border-box",
|
3341
|
-
},
|
3342
|
-
"&::after": {
|
3343
|
-
boxSizing: "border-box",
|
3344
|
-
},
|
3345
|
-
p: "$4",
|
3346
|
-
display: "flex",
|
3347
|
-
flexDirection: "column",
|
3348
|
-
borderRadius: "$4",
|
3349
|
-
variants: {
|
3350
|
-
size: {
|
3351
|
-
"1": {
|
3352
|
-
py: "$2",
|
3353
|
-
px: "$3",
|
3354
|
-
},
|
3355
|
-
"2": {
|
3356
|
-
py: "$3",
|
3357
|
-
px: "$4",
|
3358
|
-
},
|
3359
|
-
"3": {
|
3360
|
-
py: "$4",
|
3361
|
-
px: "$5",
|
3362
|
-
},
|
3363
|
-
},
|
3364
|
-
variant: {
|
3365
|
-
loContrast: {
|
3366
|
-
backgroundColor: "$loContrast",
|
3367
|
-
},
|
3368
|
-
subtle: {
|
3369
|
-
backgroundColor: "$neutral2",
|
3370
|
-
boxShadow: "0 0 0 1px $colors$neutral6",
|
3371
|
-
},
|
3372
|
-
blue: {
|
3373
|
-
backgroundColor: "$blue2",
|
3374
|
-
boxShadow: "0 0 0 1px $colors$blue6",
|
3375
|
-
},
|
3376
|
-
green: {
|
3377
|
-
backgroundColor: "$green2",
|
3378
|
-
boxShadow: "0 0 0 1px $colors$green6",
|
3379
|
-
},
|
3380
|
-
indigo: {
|
3381
|
-
backgroundColor: "$indigo2",
|
3382
|
-
boxShadow: "0 0 0 1px $colors$indigo6",
|
3383
|
-
},
|
3384
|
-
violet: {
|
3385
|
-
backgroundColor: "$violet2",
|
3386
|
-
boxShadow: "0 0 0 1px $colors$violet6",
|
3387
|
-
},
|
3388
|
-
red: {
|
3389
|
-
backgroundColor: "$red2",
|
3390
|
-
boxShadow: "0 0 0 1px $colors$red6",
|
3391
|
-
},
|
3392
|
-
},
|
3393
|
-
rounded: {
|
3394
|
-
true: {
|
3395
|
-
borderRadius: "$pill",
|
3396
|
-
},
|
3397
|
-
},
|
3398
|
-
border: {
|
3399
|
-
true: {
|
3400
|
-
borderRadius: "$pill",
|
3401
|
-
},
|
3402
|
-
},
|
3403
|
-
},
|
3404
|
-
compoundVariants: [
|
3405
|
-
{
|
3406
|
-
border: "true",
|
3407
|
-
variant: "subtle",
|
3408
|
-
css: {
|
3409
|
-
borderColor: "$neutral6",
|
3410
|
-
},
|
3411
|
-
},
|
3412
|
-
{
|
3413
|
-
border: "true",
|
3414
|
-
variant: "blue",
|
3415
|
-
css: {
|
3416
|
-
borderColor: "$blue11",
|
3417
|
-
},
|
3418
|
-
},
|
3419
|
-
{
|
3420
|
-
border: "true",
|
3421
|
-
variant: "indigo",
|
3422
|
-
css: {
|
3423
|
-
borderColor: "$indigo11",
|
3424
|
-
},
|
3425
|
-
},
|
3426
|
-
{
|
3427
|
-
border: "true",
|
3428
|
-
variant: "violet",
|
3429
|
-
css: {
|
3430
|
-
borderColor: "$violet11",
|
3431
|
-
},
|
3432
|
-
},
|
3433
|
-
{
|
3434
|
-
border: "true",
|
3435
|
-
variant: "loContrast",
|
3436
|
-
css: {
|
3437
|
-
borderColor: "$neutral6",
|
3438
|
-
},
|
3439
|
-
},
|
3440
|
-
],
|
3441
|
-
defaultVariants: {
|
3442
|
-
size: "1",
|
3443
|
-
variant: "subtle",
|
3444
|
-
},
|
3445
|
-
});
|
3446
|
-
|
3447
|
-
var _a$4;
|
3448
|
-
var RadioGroup = styled(RadioGroupPrimitive.Root, {
|
3449
|
-
display: "flex",
|
3450
|
-
});
|
3451
|
-
var StyledIndicator = styled(RadioGroupPrimitive.Indicator, {
|
3452
|
-
alignItems: "center",
|
3453
|
-
display: "flex",
|
3454
|
-
height: "100%",
|
3455
|
-
justifyContent: "center",
|
3456
|
-
width: "100%",
|
3457
|
-
position: "relative",
|
3458
|
-
"&::after": {
|
3459
|
-
content: '""',
|
3460
|
-
display: "block",
|
3461
|
-
width: "7px",
|
3462
|
-
height: "7px",
|
3463
|
-
borderRadius: "50%",
|
3464
|
-
backgroundColor: "$blue9",
|
3465
|
-
},
|
3466
|
-
});
|
3467
|
-
var StyledRadio$1 = styled(RadioGroupPrimitive.Item, {
|
3468
|
-
all: "unset",
|
3469
|
-
boxSizing: "border-box",
|
3470
|
-
userSelect: "none",
|
3471
|
-
"&::before": {
|
3472
|
-
boxSizing: "border-box",
|
3473
|
-
},
|
3474
|
-
"&::after": {
|
3475
|
-
boxSizing: "border-box",
|
3476
|
-
},
|
3477
|
-
alignItems: "center",
|
3478
|
-
appearance: "none",
|
3479
|
-
display: "inline-flex",
|
3480
|
-
justifyContent: "center",
|
3481
|
-
lineHeight: "1",
|
3482
|
-
margin: "0",
|
3483
|
-
outline: "none",
|
3484
|
-
padding: "0",
|
3485
|
-
textDecoration: "none",
|
3486
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
3487
|
-
borderRadius: "50%",
|
3488
|
-
color: "$hiContrast",
|
3489
|
-
boxShadow: "inset 0 0 0 1px $colors$slate7",
|
3490
|
-
overflow: "hidden",
|
3491
|
-
"@hover": {
|
3492
|
-
"&:hover": {
|
3493
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8",
|
3494
|
-
},
|
3495
|
-
},
|
3496
|
-
"&:focus": {
|
3497
|
-
outline: "none",
|
3498
|
-
borderColor: "$red7",
|
3499
|
-
boxShadow: "inset 0 0 0 1px $colors$blue9, 0 0 0 1px $colors$blue9",
|
3500
|
-
},
|
3501
|
-
variants: {
|
3502
|
-
size: {
|
3503
|
-
"1": {
|
3504
|
-
width: "$3",
|
3505
|
-
height: "$3",
|
3506
|
-
},
|
3507
|
-
"2": (_a$4 = {
|
3508
|
-
width: "$5",
|
3509
|
-
height: "$5"
|
3510
|
-
},
|
3511
|
-
_a$4["& ".concat(StyledIndicator)] = {
|
3512
|
-
"&::after": {
|
3513
|
-
width: "$3",
|
3514
|
-
height: "$3",
|
3515
|
-
},
|
3516
|
-
},
|
3517
|
-
_a$4),
|
3518
|
-
},
|
3519
|
-
},
|
3520
|
-
defaultVariants: {
|
3521
|
-
size: "1",
|
3522
|
-
},
|
3523
|
-
});
|
3524
|
-
var Radio = React.forwardRef(function (props, forwardedRef) { return (React.createElement(StyledRadio$1, __assign({}, props, { ref: forwardedRef }),
|
3525
|
-
React.createElement(StyledIndicator, null))); });
|
3526
|
-
Radio.displayName = "Radio";
|
3527
|
-
|
3528
|
-
var _a$3;
|
3529
|
-
var RadioCardGroup = styled(RadioGroupPrimitive.Root, {
|
3530
|
-
display: "block",
|
3531
|
-
});
|
3532
|
-
var StyledRadioButton = styled("div", {
|
3533
|
-
display: "flex",
|
3534
|
-
alignItems: "center",
|
3535
|
-
justifyContent: "center",
|
3536
|
-
borderRadius: "$round",
|
3537
|
-
width: 25,
|
3538
|
-
height: 25,
|
3539
|
-
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
3540
|
-
flexShrink: 0,
|
3541
|
-
mr: "$3",
|
3542
|
-
});
|
3543
|
-
var StyledRadioIndicator = styled("div", {
|
3544
|
-
borderRadius: "$round",
|
3545
|
-
width: 15,
|
3546
|
-
height: 15,
|
3547
|
-
backgroundColor: "$primary9",
|
3548
|
-
transform: "scale(0)",
|
3549
|
-
});
|
3550
|
-
var StyledRadio = styled(RadioGroupPrimitive.Item, {
|
3551
|
-
all: "unset",
|
3552
|
-
boxSizing: "border-box",
|
3553
|
-
userSelect: "none",
|
3554
|
-
"&::before": {
|
3555
|
-
boxSizing: "border-box",
|
3556
|
-
},
|
3557
|
-
"&::after": {
|
3558
|
-
boxSizing: "border-box",
|
3559
|
-
},
|
3560
|
-
display: "flex",
|
3561
|
-
alignItems: "center",
|
3562
|
-
borderRadius: "$2",
|
3563
|
-
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
3564
|
-
p: "$3",
|
3565
|
-
"@hover": {
|
3566
|
-
"&:hover": {
|
3567
|
-
boxShadow: "inset 0 0 0 1px $colors$neutral8",
|
3568
|
-
},
|
3569
|
-
},
|
3570
|
-
'&[data-state="checked"]': (_a$3 = {
|
3571
|
-
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8 !important"
|
3572
|
-
},
|
3573
|
-
_a$3["& ".concat(StyledRadioIndicator)] = {
|
3574
|
-
transform: "scale(1)",
|
3575
|
-
},
|
3576
|
-
_a$3),
|
3577
|
-
});
|
3578
|
-
var RadioCard = React.forwardRef(function (props, forwardedRef) { return (React.createElement(StyledRadio, __assign({}, props, { ref: forwardedRef }),
|
3579
|
-
React.createElement(StyledRadioButton, null,
|
3580
|
-
React.createElement(StyledRadioIndicator, null)),
|
3581
|
-
props.children)); });
|
3582
|
-
RadioCard.displayName = "RadioCard";
|
3583
|
-
|
3584
|
-
var Section = styled("section", {
|
3585
|
-
// Reset
|
3586
|
-
boxSizing: "border-box",
|
3587
|
-
flexShrink: 0,
|
3588
|
-
"&::before": {
|
3589
|
-
boxSizing: "border-box",
|
3590
|
-
content: '""',
|
3591
|
-
},
|
3592
|
-
"&::after": {
|
3593
|
-
boxSizing: "border-box",
|
3594
|
-
content: '""',
|
3595
|
-
},
|
3596
|
-
variants: {
|
3597
|
-
size: {
|
3598
|
-
"1": {
|
3599
|
-
py: "$3",
|
3600
|
-
},
|
3601
|
-
"2": {
|
3602
|
-
py: "$5",
|
3603
|
-
},
|
3604
|
-
"3": {
|
3605
|
-
py: "$9",
|
3606
|
-
},
|
3607
|
-
},
|
3608
|
-
},
|
3609
|
-
defaultVariants: {
|
3610
|
-
size: "3",
|
3611
|
-
},
|
3612
|
-
});
|
3613
|
-
|
3614
|
-
var Separator = styled(SeparatorPrimitive.Root, {
|
3615
|
-
border: "none",
|
3616
|
-
margin: 0,
|
3617
|
-
flexShrink: 0,
|
3618
|
-
backgroundColor: "$slate6",
|
3619
|
-
cursor: "default",
|
3620
|
-
variants: {
|
3621
|
-
size: {
|
3622
|
-
"1": {
|
3623
|
-
'&[data-orientation="horizontal"]': {
|
3624
|
-
height: "1px",
|
3625
|
-
width: "$3",
|
3626
|
-
},
|
3627
|
-
'&[data-orientation="vertical"]': {
|
3628
|
-
width: "1px",
|
3629
|
-
height: "$3",
|
3630
|
-
},
|
3631
|
-
},
|
3632
|
-
"2": {
|
3633
|
-
'&[data-orientation="horizontal"]': {
|
3634
|
-
height: "1px",
|
3635
|
-
width: "$7",
|
3636
|
-
},
|
3637
|
-
'&[data-orientation="vertical"]': {
|
3638
|
-
width: "1px",
|
3639
|
-
height: "$7",
|
3640
|
-
},
|
3641
|
-
},
|
3642
|
-
},
|
3643
|
-
},
|
3644
|
-
defaultVariants: {
|
3645
|
-
size: "1",
|
3646
|
-
},
|
3647
|
-
});
|
3648
|
-
|
3649
|
-
var Sheet = DialogPrimitive.Root;
|
3650
|
-
var SheetTrigger = DialogPrimitive.Trigger;
|
3651
|
-
var fadeIn = keyframes({
|
3652
|
-
from: { opacity: "0" },
|
3653
|
-
to: { opacity: "1" },
|
3654
|
-
});
|
3655
|
-
var fadeOut = keyframes({
|
3656
|
-
from: { opacity: "1" },
|
3657
|
-
to: { opacity: "0" },
|
3658
|
-
});
|
3659
|
-
var StyledOverlay = styled(DialogPrimitive.Overlay, overlayStyles, {
|
3660
|
-
position: "fixed",
|
3661
|
-
top: 0,
|
3662
|
-
right: 0,
|
3663
|
-
bottom: 0,
|
3664
|
-
left: 0,
|
3665
|
-
'&[data-state="open"]': {
|
3666
|
-
animation: "".concat(fadeIn, " 150ms cubic-bezier(0.22, 1, 0.36, 1)"),
|
3667
|
-
},
|
3668
|
-
'&[data-state="closed"]': {
|
3669
|
-
animation: "".concat(fadeOut, " 150ms cubic-bezier(0.22, 1, 0.36, 1)"),
|
3670
|
-
},
|
3671
|
-
});
|
3672
|
-
var slideIn = keyframes({
|
3673
|
-
from: { transform: "$$transformValue" },
|
3674
|
-
to: { transform: "translate3d(0,0,0)" },
|
3675
|
-
});
|
3676
|
-
var slideOut = keyframes({
|
3677
|
-
from: { transform: "translate3d(0,0,0)" },
|
3678
|
-
to: { transform: "$$transformValue" },
|
3679
|
-
});
|
3680
|
-
var StyledContent$1 = styled(DialogPrimitive.Content, {
|
3681
|
-
backgroundColor: "$panel",
|
3682
|
-
boxShadow: "$colors$shadowLight 0 0 38px -10px, $colors$shadowDark 0 0 35px -15px",
|
3683
|
-
position: "fixed",
|
3684
|
-
top: 0,
|
3685
|
-
bottom: 0,
|
3686
|
-
width: 250,
|
3687
|
-
// Among other things, prevents text alignment inconsistencies when dialog can't be centered in the viewport evenly.
|
3688
|
-
// Affects animated and non-animated dialogs alike.
|
3689
|
-
willChange: "transform",
|
3690
|
-
// '&:focus': {
|
3691
|
-
// outline: 'none',
|
3692
|
-
// },
|
3693
|
-
'&[data-state="open"]': {
|
3694
|
-
animation: "".concat(slideIn, " 150ms cubic-bezier(0.22, 1, 0.36, 1)"),
|
3695
|
-
},
|
3696
|
-
'&[data-state="closed"]': {
|
3697
|
-
animation: "".concat(slideOut, " 150ms cubic-bezier(0.22, 1, 0.36, 1)"),
|
3698
|
-
},
|
3699
|
-
variants: {
|
3700
|
-
side: {
|
3701
|
-
top: {
|
3702
|
-
$$transformValue: "translate3d(0,-100%,0)",
|
3703
|
-
width: "100%",
|
3704
|
-
height: 300,
|
3705
|
-
bottom: "auto",
|
3706
|
-
},
|
3707
|
-
right: {
|
3708
|
-
$$transformValue: "translate3d(100%,0,0)",
|
3709
|
-
right: 0,
|
3710
|
-
},
|
3711
|
-
bottom: {
|
3712
|
-
$$transformValue: "translate3d(0,100%,0)",
|
3713
|
-
width: "100%",
|
3714
|
-
height: 300,
|
3715
|
-
bottom: 0,
|
3716
|
-
top: "auto",
|
3717
|
-
},
|
3718
|
-
left: {
|
3719
|
-
$$transformValue: "translate3d(-100%,0,0)",
|
3720
|
-
left: 0,
|
3721
|
-
},
|
3722
|
-
},
|
3723
|
-
},
|
3724
|
-
defaultVariants: {
|
3725
|
-
side: "right",
|
3726
|
-
},
|
3727
|
-
});
|
3728
|
-
var StyledCloseButton = styled(DialogPrimitive.Close, {
|
3729
|
-
position: "absolute",
|
3730
|
-
top: "$2",
|
3731
|
-
right: "$2",
|
3732
|
-
});
|
3733
|
-
var SheetContent = React.forwardRef(function (_a, forwardedRef) {
|
3734
|
-
var children = _a.children, props = __rest(_a, ["children"]);
|
3735
|
-
return (React.createElement(DialogPrimitive.Portal, null,
|
3736
|
-
React.createElement(StyledOverlay, null),
|
3737
|
-
React.createElement(StyledContent$1, __assign({}, props, { ref: forwardedRef }),
|
3738
|
-
children,
|
3739
|
-
React.createElement(StyledCloseButton, { asChild: true },
|
3740
|
-
React.createElement(IconButton, { variant: "ghost" },
|
3741
|
-
React.createElement(Cross1Icon, null))))));
|
3742
|
-
});
|
3743
|
-
SheetContent.displayName = "SheetContent";
|
3744
|
-
var SheetClose = DialogPrimitive.Close;
|
3745
|
-
var SheetTitle = DialogPrimitive.Title;
|
3746
|
-
var SheetDescription = DialogPrimitive.Description;
|
3747
|
-
|
3748
|
-
var SimpleToggle = styled(TogglePrimitive.Root, {
|
3749
|
-
// Reset
|
3750
|
-
alignItems: "center",
|
3751
|
-
appearance: "none",
|
3752
|
-
borderWidth: "0",
|
3753
|
-
boxSizing: "border-box",
|
3754
|
-
display: "inline-flex",
|
3755
|
-
flexShrink: 0,
|
3756
|
-
fontFamily: "inherit",
|
3757
|
-
fontSize: "14px",
|
3758
|
-
justifyContent: "center",
|
3759
|
-
lineHeight: "1",
|
3760
|
-
outline: "none",
|
3761
|
-
padding: "0",
|
3762
|
-
textDecoration: "none",
|
3763
|
-
userSelect: "none",
|
3764
|
-
WebkitTapHighlightColor: "transparent",
|
3765
|
-
color: "$hiContrast",
|
3766
|
-
"&::before": {
|
3767
|
-
boxSizing: "border-box",
|
3768
|
-
},
|
3769
|
-
"&::after": {
|
3770
|
-
boxSizing: "border-box",
|
3771
|
-
},
|
3772
|
-
height: "$5",
|
3773
|
-
width: "$5",
|
3774
|
-
backgroundColor: "transparent",
|
3775
|
-
"@hover": {
|
3776
|
-
"&:hover": {
|
3777
|
-
backgroundColor: "$slateA3",
|
3778
|
-
},
|
3779
|
-
},
|
3780
|
-
"&:active": {
|
3781
|
-
backgroundColor: "$slateA4",
|
3782
|
-
},
|
3783
|
-
"&:focus": {
|
3784
|
-
boxShadow: "inset 0 0 0 1px $slateA8, 0 0 0 1px $slateA8",
|
3785
|
-
zIndex: 1,
|
3786
|
-
},
|
3787
|
-
'&[data-state="on"]': {
|
3788
|
-
backgroundColor: "$slateA5",
|
3789
|
-
"@hover": {
|
3790
|
-
"&:hover": {
|
3791
|
-
backgroundColor: "$slateA5",
|
3792
|
-
},
|
3793
|
-
},
|
3794
|
-
"&:active": {
|
3795
|
-
backgroundColor: "$slateA7",
|
3796
|
-
},
|
3797
|
-
},
|
3798
|
-
variants: {
|
3799
|
-
shape: {
|
3800
|
-
circle: {
|
3801
|
-
borderRadius: "$round",
|
3802
|
-
},
|
3803
|
-
square: {
|
3804
|
-
borderRadius: "$1",
|
3805
|
-
},
|
3806
|
-
},
|
3807
|
-
},
|
3808
|
-
});
|
3809
|
-
|
3810
|
-
var pulse = keyframes({
|
3811
|
-
"0%": { opacity: 0 },
|
3812
|
-
"100%": { opacity: "100%" },
|
3813
|
-
});
|
3814
|
-
var Skeleton = styled("div", {
|
3815
|
-
backgroundColor: "$slate4",
|
3816
|
-
position: "relative",
|
3817
|
-
overflow: "hidden",
|
3818
|
-
"&::after": {
|
3819
|
-
animationName: "".concat(pulse),
|
3820
|
-
animationDuration: "500ms",
|
3821
|
-
animationDirection: "alternate",
|
3822
|
-
animationIterationCount: "infinite",
|
3823
|
-
animationTimingFunction: "ease-in-out",
|
3824
|
-
backgroundColor: "$slate6",
|
3825
|
-
borderRadius: "inherit",
|
3826
|
-
bottom: 0,
|
3827
|
-
content: '""',
|
3828
|
-
left: 0,
|
3829
|
-
position: "absolute",
|
3830
|
-
right: 0,
|
3831
|
-
top: 0,
|
3832
|
-
},
|
3833
|
-
variants: {
|
3834
|
-
variant: {
|
3835
|
-
avatar1: {
|
3836
|
-
borderRadius: "$round",
|
3837
|
-
height: "$3",
|
3838
|
-
width: "$3",
|
3839
|
-
},
|
3840
|
-
avatar2: {
|
3841
|
-
borderRadius: "$round",
|
3842
|
-
height: "$5",
|
3843
|
-
width: "$5",
|
3844
|
-
},
|
3845
|
-
avatar3: {
|
3846
|
-
borderRadius: "$round",
|
3847
|
-
height: "$6",
|
3848
|
-
width: "$6",
|
3849
|
-
},
|
3850
|
-
avatar4: {
|
3851
|
-
borderRadius: "$round",
|
3852
|
-
height: "$7",
|
3853
|
-
width: "$7",
|
3854
|
-
},
|
3855
|
-
avatar5: {
|
3856
|
-
borderRadius: "$round",
|
3857
|
-
height: "$8",
|
3858
|
-
width: "$8",
|
3859
|
-
},
|
3860
|
-
avatar6: {
|
3861
|
-
borderRadius: "$round",
|
3862
|
-
height: "$9",
|
3863
|
-
width: "$9",
|
3864
|
-
},
|
3865
|
-
text: {
|
3866
|
-
height: "$1",
|
3867
|
-
},
|
3868
|
-
title: {
|
3869
|
-
height: "$5",
|
3870
|
-
},
|
3871
|
-
heading: {
|
3872
|
-
height: "$3",
|
3873
|
-
},
|
3874
|
-
button: {
|
3875
|
-
borderRadius: "$1",
|
3876
|
-
height: "$5",
|
3877
|
-
width: "$8",
|
3878
|
-
},
|
3879
|
-
},
|
3880
|
-
},
|
3881
|
-
defaultVariants: {
|
3882
|
-
variant: "text",
|
3883
|
-
},
|
3884
|
-
});
|
3885
|
-
|
3886
|
-
var _a$2;
|
3887
|
-
var SliderTrack = styled(SliderPrimitive.Track, {
|
3888
|
-
position: "relative",
|
3889
|
-
flexGrow: 1,
|
3890
|
-
backgroundColor: "$slate7",
|
3891
|
-
borderRadius: "$pill",
|
3892
|
-
'&[data-orientation="horizontal"]': {
|
3893
|
-
height: 2,
|
3894
|
-
},
|
3895
|
-
'&[data-orientation="vertical"]': {
|
3896
|
-
width: 2,
|
3897
|
-
height: 100,
|
3898
|
-
},
|
3899
|
-
});
|
3900
|
-
var SliderRange = styled(SliderPrimitive.Range, {
|
3901
|
-
position: "absolute",
|
3902
|
-
background: "$blue9",
|
3903
|
-
borderRadius: "inherit",
|
3904
|
-
'&[data-orientation="horizontal"]': {
|
3905
|
-
height: "100%",
|
3906
|
-
},
|
3907
|
-
'&[data-orientation="vertical"]': {
|
3908
|
-
width: "100%",
|
3909
|
-
},
|
3910
|
-
});
|
3911
|
-
var SliderThumb = styled(SliderPrimitive.Thumb, {
|
3912
|
-
position: "relative",
|
3913
|
-
display: "block",
|
3914
|
-
width: 15,
|
3915
|
-
height: 15,
|
3916
|
-
outline: "none",
|
3917
|
-
opacity: "0",
|
3918
|
-
backgroundColor: "white",
|
3919
|
-
boxShadow: "0 0 1px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.15)",
|
3920
|
-
borderRadius: "$round",
|
3921
|
-
"&::after": {
|
3922
|
-
content: '""',
|
3923
|
-
position: "absolute",
|
3924
|
-
top: 0,
|
3925
|
-
right: 0,
|
3926
|
-
bottom: 0,
|
3927
|
-
left: 0,
|
3928
|
-
zIndex: -2,
|
3929
|
-
backgroundColor: "hsla(0,0%,0%,.035)",
|
3930
|
-
transform: "scale(1)",
|
3931
|
-
borderRadius: "$round",
|
3932
|
-
transition: "transform 200ms cubic-bezier(0.22, 1, 0.36, 1)",
|
3933
|
-
},
|
3934
|
-
"&:focus": {
|
3935
|
-
"&::after": {
|
3936
|
-
transform: "scale(2)",
|
3937
|
-
},
|
3938
|
-
},
|
3939
|
-
});
|
3940
|
-
var StyledSlider = styled(SliderPrimitive.Root, {
|
3941
|
-
position: "relative",
|
3942
|
-
display: "flex",
|
3943
|
-
alignItems: "center",
|
3944
|
-
flexShrink: 0,
|
3945
|
-
userSelect: "none",
|
3946
|
-
touchAction: "none",
|
3947
|
-
height: 15,
|
3948
|
-
flexGrow: 1,
|
3949
|
-
'&[data-orientation="vertical"]': {
|
3950
|
-
flexDirection: "column",
|
3951
|
-
width: 15,
|
3952
|
-
},
|
3953
|
-
"@hover": {
|
3954
|
-
"&:hover": (_a$2 = {},
|
3955
|
-
_a$2["& ".concat(SliderTrack)] = {
|
3956
|
-
backgroundColor: "$slate8",
|
3957
|
-
},
|
3958
|
-
_a$2["& ".concat(SliderThumb)] = {
|
3959
|
-
opacity: "1",
|
3960
|
-
},
|
3961
|
-
_a$2),
|
3962
|
-
},
|
3963
|
-
});
|
3964
|
-
var Slider = React.forwardRef(function (props, forwardedRef) {
|
3965
|
-
var hasRange = Array.isArray(props.defaultValue || props.value);
|
3966
|
-
var thumbsArray = hasRange
|
3967
|
-
? props.defaultValue || props.value
|
3968
|
-
: [props.defaultValue || props.value];
|
3969
|
-
return (React.createElement(StyledSlider, __assign({}, props, { ref: forwardedRef }),
|
3970
|
-
React.createElement(SliderTrack, null,
|
3971
|
-
React.createElement(SliderRange, null)),
|
3972
|
-
thumbsArray.map(function (_, i) { return (React.createElement(SliderThumb, { key: i })); })));
|
3973
|
-
});
|
3974
|
-
Slider.displayName = "Slider";
|
3975
|
-
|
3976
|
-
var transitionStyles = {
|
3977
|
-
".snackbar-enter": {
|
3978
|
-
opacity: 0,
|
3979
|
-
},
|
3980
|
-
".snackbar-exit-active": {
|
3981
|
-
opacity: 0,
|
3982
|
-
},
|
3983
|
-
".snackbar-enter-active": {
|
3984
|
-
opacity: 1,
|
3985
|
-
},
|
3986
|
-
".snackbar-enter-top-center": {
|
3987
|
-
transform: "translateY(-16px)",
|
3988
|
-
},
|
3989
|
-
".snackbar-enter-top-right": {
|
3990
|
-
transform: "translateY(-16px)",
|
3991
|
-
},
|
3992
|
-
".snackbar-exit-active-top-left": {
|
3993
|
-
transform: "translateY(-16px)",
|
3994
|
-
},
|
3995
|
-
".snackbar-exit-active-top-center": {
|
3996
|
-
transform: "translateY(-16px)",
|
3997
|
-
},
|
3998
|
-
".snackbar-exit-active-top-right": {
|
3999
|
-
transform: "translateY(-16px)",
|
4000
|
-
},
|
4001
|
-
".snackbar-enter-bottom-left": {
|
4002
|
-
transform: "translateY(16px)",
|
4003
|
-
},
|
4004
|
-
".snackbar-enter-bottom-center": {
|
4005
|
-
transform: "translateY(16px)",
|
4006
|
-
},
|
4007
|
-
".snackbar-enter-bottom-right": {
|
4008
|
-
transform: "translateY(16px)",
|
4009
|
-
},
|
4010
|
-
".snackbar-exit-active-bottom-left": {
|
4011
|
-
transform: "translateY(16px)",
|
4012
|
-
},
|
4013
|
-
".snackbar-exit-active-bottom-center": {
|
4014
|
-
transform: "translateY(16px)",
|
4015
|
-
},
|
4016
|
-
".snackbar-exit-active-bottom-right": {
|
4017
|
-
transform: "translateY(16px)",
|
4018
|
-
},
|
4019
|
-
".snackbar-enter-active-top-left": {
|
4020
|
-
transform: "translateY(0px)",
|
4021
|
-
},
|
4022
|
-
".snackbar-enter-active-top-center": {
|
4023
|
-
transform: "translateY(0px)",
|
4024
|
-
},
|
4025
|
-
".snackbar-enter-active-top-right": {
|
4026
|
-
transform: "translateY(0px)",
|
4027
|
-
},
|
4028
|
-
".snackbar-enter-active-bottom-left": {
|
4029
|
-
transform: "translateY(0px)",
|
4030
|
-
},
|
4031
|
-
".snackbar-enter-active-bottom-center": {
|
4032
|
-
transform: "translateY(0px)",
|
4033
|
-
},
|
4034
|
-
".snackbar-enter-active-bottom-right": {
|
4035
|
-
transform: "translateY(0px)",
|
4036
|
-
},
|
4037
|
-
".snackbar-wrapper-top-left": {
|
4038
|
-
justifyContent: "flex-start",
|
4039
|
-
top: "8px",
|
4040
|
-
},
|
4041
|
-
".snackbar-wrapper-top-center": {
|
4042
|
-
top: "8px",
|
4043
|
-
justifyContent: "center",
|
4044
|
-
},
|
4045
|
-
".snackbar-wrapper-top-right": {
|
4046
|
-
top: "8px",
|
4047
|
-
justifyContent: "flex-end",
|
4048
|
-
},
|
4049
|
-
".snackbar-wrapper-bottom-left": {
|
4050
|
-
bottom: "8px",
|
4051
|
-
justifyContent: "flex-start",
|
4052
|
-
},
|
4053
|
-
".snackbar-wrapper-bottom-center": {
|
4054
|
-
bottom: "8px",
|
4055
|
-
justifyContent: "center",
|
4056
|
-
},
|
4057
|
-
".snackbar-wrapper-bottom-right": {
|
4058
|
-
bottom: "8px",
|
4059
|
-
justifyContent: "flex-end",
|
4060
|
-
},
|
4061
|
-
};
|
4062
|
-
|
4063
|
-
// type coercion for bad typing in lib
|
4064
|
-
var CSSTransitionTyped = CSSTransition;
|
4065
|
-
// Snackbar default values
|
4066
|
-
var defaultPosition = "bottom-center";
|
4067
|
-
var defaultDuration = 5000;
|
4068
|
-
var defaultInterval = 250;
|
4069
|
-
var positions = [
|
4070
|
-
"top-left",
|
4071
|
-
"top-center",
|
4072
|
-
"top-right",
|
4073
|
-
"bottom-left",
|
4074
|
-
"bottom-center",
|
4075
|
-
"bottom-right",
|
4076
|
-
];
|
4077
|
-
// Context used by the hook useSnackbar() and HoC withSnackbar()
|
4078
|
-
var SnackbarContext = createContext({});
|
4079
|
-
var SnackbarProvider = function (_a) {
|
4080
|
-
var children = _a.children;
|
4081
|
-
// Current open state
|
4082
|
-
var _b = useState(false), open = _b[0], setOpen = _b[1];
|
4083
|
-
// Current timeout ID
|
4084
|
-
var _c = useState(null), timeoutId = _c[0], setTimeoutId = _c[1];
|
4085
|
-
// Snackbar's text
|
4086
|
-
var _d = useState(""), text = _d[0], setText = _d[1];
|
4087
|
-
// Snackbar's duration
|
4088
|
-
var _e = useState(defaultDuration), duration = _e[0], setDuration = _e[1];
|
4089
|
-
// Snackbar's position
|
4090
|
-
var _f = useState(defaultPosition), position = _f[0], setPosition = _f[1];
|
4091
|
-
// Custom styles for the snackbar itself
|
4092
|
-
var _g = useState({}), customStyles = _g[0], setCustomStyles = _g[1];
|
4093
|
-
// Custom styles for the close button
|
4094
|
-
var _h = useState({}), closeCustomStyles = _h[0], setCloseCustomStyles = _h[1];
|
4095
|
-
var triggerSnackbar = function (text, duration, position, style, closeStyle) {
|
4096
|
-
setText(text);
|
4097
|
-
setDuration(duration);
|
4098
|
-
setPosition(position);
|
4099
|
-
setCustomStyles(style);
|
4100
|
-
setCloseCustomStyles(closeStyle);
|
4101
|
-
setOpen(true);
|
4102
|
-
};
|
4103
|
-
// Manages all the snackbar's opening process
|
4104
|
-
var openSnackbar = function (text, duration, position, style, closeStyle) {
|
4105
|
-
// Closes the snackbar if it is already open
|
4106
|
-
if (open === true) {
|
4107
|
-
setOpen(false);
|
4108
|
-
setTimeout(function () {
|
4109
|
-
triggerSnackbar(text, duration, position, style, closeStyle);
|
4110
|
-
}, defaultInterval);
|
4111
|
-
}
|
4112
|
-
else {
|
4113
|
-
triggerSnackbar(text, duration, position, style, closeStyle);
|
4114
|
-
}
|
4115
|
-
};
|
4116
|
-
// Closes the snackbar just by setting the "open" state to false
|
4117
|
-
var closeSnackbar = function () {
|
4118
|
-
setOpen(false);
|
4119
|
-
};
|
4120
|
-
// Returns the Provider that must wrap the application
|
4121
|
-
return (React.createElement(SnackbarContext.Provider, { value: { openSnackbar: openSnackbar, closeSnackbar: closeSnackbar } },
|
4122
|
-
children,
|
4123
|
-
React.createElement(Box, { css: transitionStyles },
|
4124
|
-
React.createElement(CSSTransitionTyped, { in: open, timeout: 150, mountOnEnter: true, unmountOnExit: true,
|
4125
|
-
// Sets timeout to close the snackbar
|
4126
|
-
onEnter: function () {
|
4127
|
-
// @ts-ignore
|
4128
|
-
clearTimeout(timeoutId);
|
4129
|
-
// @ts-ignore
|
4130
|
-
setTimeoutId(setTimeout(function () { return setOpen(false); }, duration));
|
4131
|
-
},
|
4132
|
-
// Sets custom classNames based on "position"
|
4133
|
-
className: "snackbar-wrapper-".concat(position), classNames: {
|
4134
|
-
enter: "snackbar-enter snackbar-enter-".concat(position),
|
4135
|
-
enterActive: "snackbar-enter-active snackbar-enter-active-".concat(position),
|
4136
|
-
exitActive: "snackbar-exit-active snackbar-exit-active-".concat(position),
|
4137
|
-
} },
|
4138
|
-
React.createElement(Box, { css: {
|
4139
|
-
display: "flex",
|
4140
|
-
alignItems: "center",
|
4141
|
-
margin: "8px",
|
4142
|
-
position: "fixed",
|
4143
|
-
right: "0",
|
4144
|
-
left: "0",
|
4145
|
-
zIndex: "1",
|
4146
|
-
transition: "opacity 150ms, transform 150ms",
|
4147
|
-
pointerEvents: "none",
|
4148
|
-
justifyContent: "center",
|
4149
|
-
bottom: "8px",
|
4150
|
-
} },
|
4151
|
-
React.createElement(Box, { css: {
|
4152
|
-
display: "flex",
|
4153
|
-
alignItems: "center",
|
4154
|
-
justifyContent: "flex-start",
|
4155
|
-
borderRadius: "4px",
|
4156
|
-
minWidth: "334px",
|
4157
|
-
maxWidth: "672px",
|
4158
|
-
zIndex: 1000000,
|
4159
|
-
backgroundColor: "$panel",
|
4160
|
-
boxShadow: "0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12)",
|
4161
|
-
WebkitFontSmoothing: "antialiased",
|
4162
|
-
MozOsxFontSmoothing: "grayscale",
|
4163
|
-
fontFamily: "sans-serif",
|
4164
|
-
fontSize: "14px",
|
4165
|
-
fontWeight: "400",
|
4166
|
-
color: "$hiContrast",
|
4167
|
-
letterSpacing: "0.25px",
|
4168
|
-
lineHeight: "20px",
|
4169
|
-
textAlign: "left",
|
4170
|
-
}, style: customStyles },
|
4171
|
-
React.createElement(Box, { css: {
|
4172
|
-
flexGrow: 1,
|
4173
|
-
padding: "14px 16px",
|
4174
|
-
margin: "0",
|
4175
|
-
pointerEvents: "auto",
|
4176
|
-
color: "$hiContrast",
|
4177
|
-
} }, text),
|
4178
|
-
React.createElement(Box, { as: "button", css: {
|
4179
|
-
lexShrink: "0",
|
4180
|
-
boxSizing: "border-box",
|
4181
|
-
display: "flex",
|
4182
|
-
alignItems: "center",
|
4183
|
-
justifyContent: "center",
|
4184
|
-
width: "36px",
|
4185
|
-
height: "36px",
|
4186
|
-
padding: "8px",
|
4187
|
-
margin: "0 8px 0 0",
|
4188
|
-
cursor: "pointer",
|
4189
|
-
position: "relative",
|
4190
|
-
pointerEvents: "auto",
|
4191
|
-
WebkitTapHighlightColor: "transparent",
|
4192
|
-
/* Reset button styles */
|
4193
|
-
outline: "none",
|
4194
|
-
backgroundColor: "transparent",
|
4195
|
-
border: "none",
|
4196
|
-
/* SVG icon properties */
|
4197
|
-
fontSize: "12px",
|
4198
|
-
color: "$hiContrast",
|
4199
|
-
"&:hover:before": {
|
4200
|
-
opacity: "0.08",
|
4201
|
-
},
|
4202
|
-
"&:before": {
|
4203
|
-
content: '""',
|
4204
|
-
backgroundColor: "$hiContrast",
|
4205
|
-
borderRadius: "50%",
|
4206
|
-
opacity: "0",
|
4207
|
-
position: "absolute",
|
4208
|
-
transition: "opacity 120ms linear",
|
4209
|
-
top: "0%",
|
4210
|
-
left: "0%",
|
4211
|
-
width: "100%",
|
4212
|
-
height: "100%",
|
4213
|
-
},
|
4214
|
-
}, onClick: closeSnackbar, style: closeCustomStyles },
|
4215
|
-
React.createElement(CloseIcon, null))))))));
|
4216
|
-
};
|
4217
|
-
// CloseIcon SVG is styled with font properties
|
4218
|
-
var CloseIcon = function () { return (React.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 12 12" },
|
4219
|
-
React.createElement("path", { fill: "currentColor", d: "M11.73 1.58L7.31 6l4.42 4.42-1.06 1.06-4.42-4.42-4.42 4.42-1.06-1.06L5.19 6 .77 1.58 1.83.52l4.42 4.42L10.67.52z", fillRule: "evenodd" }))); };
|
4220
|
-
|
4221
|
-
// Custom hook to trigger the snackbar on function components
|
4222
|
-
var useSnackbar = function (_a) {
|
4223
|
-
var _b = _a === void 0 ? {} : _a, _c = _b.position, position = _c === void 0 ? defaultPosition : _c, _d = _b.style, style = _d === void 0 ? {} : _d, _e = _b.closeStyle, closeStyle = _e === void 0 ? {} : _e;
|
4224
|
-
var _f = useContext(SnackbarContext), openSnackbar = _f.openSnackbar, closeSnackbar = _f.closeSnackbar;
|
4225
|
-
// If no correct position is passed, 'bottom-center' is set
|
4226
|
-
if (!positions.includes(position)) {
|
4227
|
-
position = defaultPosition;
|
4228
|
-
}
|
4229
|
-
function open(text, duration) {
|
4230
|
-
if (text === void 0) { text = ""; }
|
4231
|
-
if (duration === void 0) { duration = defaultDuration; }
|
4232
|
-
openSnackbar(text, duration, position, style, closeStyle);
|
4233
|
-
}
|
4234
|
-
// Returns methods in hooks array way
|
4235
|
-
return [open, closeSnackbar];
|
4236
|
-
};
|
4237
|
-
|
4238
|
-
var Sub = styled("sub", {
|
4239
|
-
fontFeatureSettings: '"subs"',
|
4240
|
-
fontSize: "100%",
|
4241
|
-
lineHeight: "1",
|
4242
|
-
verticalAlign: "baseline",
|
4243
|
-
});
|
4244
|
-
|
4245
|
-
var Sup = styled("sup", {
|
4246
|
-
fontFeatureSettings: '"sups"',
|
4247
|
-
fontSize: "100%",
|
4248
|
-
lineHeight: "1",
|
4249
|
-
verticalAlign: "baseline",
|
4250
|
-
});
|
4251
|
-
|
4252
|
-
var _a$1;
|
4253
|
-
var StyledThumb = styled(SwitchPrimitive.Thumb, {
|
4254
|
-
position: "absolute",
|
4255
|
-
left: 0,
|
4256
|
-
width: 13,
|
4257
|
-
height: 13,
|
4258
|
-
backgroundColor: "white",
|
4259
|
-
borderRadius: "$round",
|
4260
|
-
boxShadow: "rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;",
|
4261
|
-
transition: "transform 100ms cubic-bezier(0.22, 1, 0.36, 1)",
|
4262
|
-
transform: "translateX(1px)",
|
4263
|
-
willChange: "transform",
|
4264
|
-
'&[data-state="checked"]': {
|
4265
|
-
transform: "translateX(11px)",
|
4266
|
-
},
|
4267
|
-
});
|
4268
|
-
var StyledSwitch = styled(SwitchPrimitive.Root, {
|
4269
|
-
all: "unset",
|
4270
|
-
boxSizing: "border-box",
|
4271
|
-
userSelect: "none",
|
4272
|
-
"&::before": {
|
4273
|
-
boxSizing: "border-box",
|
4274
|
-
},
|
4275
|
-
"&::after": {
|
4276
|
-
boxSizing: "border-box",
|
4277
|
-
},
|
4278
|
-
// Reset
|
4279
|
-
alignItems: "center",
|
4280
|
-
display: "inline-flex",
|
4281
|
-
justifyContent: "center",
|
4282
|
-
lineHeight: "1",
|
4283
|
-
margin: "0",
|
4284
|
-
outline: "none",
|
4285
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
4286
|
-
backgroundColor: "$slate5",
|
4287
|
-
borderRadius: "$pill",
|
4288
|
-
position: "relative",
|
4289
|
-
"&:focus": {
|
4290
|
-
boxShadow: "0 0 0 2px $colors$slate8",
|
4291
|
-
},
|
4292
|
-
'&[data-state="checked"]': {
|
4293
|
-
backgroundColor: "$blue9",
|
4294
|
-
"&:focus": {
|
4295
|
-
boxShadow: "0 0 0 2px $colors$blue8",
|
4296
|
-
},
|
4297
|
-
},
|
4298
|
-
variants: {
|
4299
|
-
size: {
|
4300
|
-
"1": {
|
4301
|
-
width: "$5",
|
4302
|
-
height: "$3",
|
4303
|
-
},
|
4304
|
-
"2": (_a$1 = {
|
4305
|
-
width: "$7",
|
4306
|
-
height: "$5"
|
4307
|
-
},
|
4308
|
-
_a$1["& ".concat(StyledThumb)] = {
|
4309
|
-
width: 21,
|
4310
|
-
height: 21,
|
4311
|
-
transform: "translateX(2px)",
|
4312
|
-
'&[data-state="checked"]': {
|
4313
|
-
transform: "translateX(22px)",
|
4314
|
-
},
|
4315
|
-
},
|
4316
|
-
_a$1),
|
4317
|
-
},
|
4318
|
-
},
|
4319
|
-
defaultVariants: {
|
4320
|
-
size: "1",
|
4321
|
-
},
|
4322
|
-
});
|
4323
|
-
var SwitchBase = React.forwardRef(function (props, forwardedRef) { return (React.createElement(StyledSwitch, __assign({}, props, { ref: forwardedRef }),
|
4324
|
-
React.createElement(StyledThumb, null))); });
|
4325
|
-
SwitchBase.displayName = "Switch";
|
4326
|
-
var Switch = styled(SwitchBase, {
|
4327
|
-
bc: "$neutral5",
|
4328
|
-
"&:focus": {
|
4329
|
-
boxShadow: "0 0 0 2px $colors$neutral8",
|
4330
|
-
},
|
4331
|
-
'&[data-state="checked"]': {
|
4332
|
-
bc: "$primary9",
|
4333
|
-
"&:focus": {
|
4334
|
-
boxShadow: "0 0 0 2px $colors$primary8",
|
4335
|
-
},
|
4336
|
-
},
|
4337
|
-
});
|
4338
|
-
|
4339
|
-
var _a, _b, _c;
|
4340
|
-
var Caption = styled("caption", {
|
4341
|
-
textAlign: "start",
|
4342
|
-
marginBottom: "$5",
|
4343
|
-
});
|
4344
|
-
var Tbody = styled("tbody", {
|
4345
|
-
width: "100%",
|
4346
|
-
});
|
4347
|
-
var Tfoot = styled("tfoot", {});
|
4348
|
-
var Tr = styled("tr", {});
|
4349
|
-
var Th = styled("th", {
|
4350
|
-
fontWeight: "unset",
|
4351
|
-
textAlign: "start",
|
4352
|
-
fontSize: "$2",
|
4353
|
-
py: "$2",
|
4354
|
-
borderBottom: "1px solid $neutral4",
|
4355
|
-
variants: {
|
4356
|
-
align: {
|
4357
|
-
start: {
|
4358
|
-
textAlign: "start",
|
4359
|
-
},
|
4360
|
-
center: {
|
4361
|
-
textAlign: "center",
|
4362
|
-
},
|
4363
|
-
end: {
|
4364
|
-
textAlign: "end",
|
4365
|
-
},
|
4366
|
-
},
|
4367
|
-
border: {
|
4368
|
-
solid: {
|
4369
|
-
borderBottom: "1px solid $neutral4",
|
4370
|
-
},
|
4371
|
-
dashed: {
|
4372
|
-
borderBottom: "1px dashed $neutral8",
|
4373
|
-
},
|
4374
|
-
},
|
4375
|
-
},
|
4376
|
-
defaultVariants: {
|
4377
|
-
align: "start",
|
4378
|
-
border: "solid",
|
4379
|
-
},
|
4380
|
-
});
|
4381
|
-
var Td = styled("td", {
|
4382
|
-
py: "$2",
|
4383
|
-
borderBottom: "1px solid $neutral4",
|
4384
|
-
fontSize: "$2",
|
4385
|
-
variants: {
|
4386
|
-
align: {
|
4387
|
-
start: {
|
4388
|
-
textAlign: "start",
|
4389
|
-
},
|
4390
|
-
center: {
|
4391
|
-
textAlign: "center",
|
4392
|
-
},
|
4393
|
-
end: {
|
4394
|
-
textAlign: "end",
|
4395
|
-
},
|
4396
|
-
},
|
4397
|
-
border: {
|
4398
|
-
solid: {
|
4399
|
-
borderBottom: "1px solid $neutral4",
|
4400
|
-
},
|
4401
|
-
dashed: {
|
4402
|
-
borderBottom: "1px dashed $neutral8",
|
4403
|
-
},
|
4404
|
-
},
|
4405
|
-
},
|
4406
|
-
defaultVariants: {
|
4407
|
-
align: "start",
|
4408
|
-
border: "solid",
|
4409
|
-
},
|
4410
|
-
});
|
4411
|
-
var Thead = styled("thead", (_a = {},
|
4412
|
-
_a["& ".concat(Th)] = {
|
4413
|
-
fontSize: "$1",
|
4414
|
-
color: "$gray11",
|
4415
|
-
},
|
4416
|
-
_a["& ".concat(Td)] = {
|
4417
|
-
fontSize: "$1",
|
4418
|
-
color: "$neutral11",
|
4419
|
-
},
|
4420
|
-
_a));
|
4421
|
-
var Table = styled("table", {
|
4422
|
-
width: "100%",
|
4423
|
-
tableLayout: "fixed",
|
4424
|
-
borderSpacing: 0,
|
4425
|
-
variants: {
|
4426
|
-
striped: {
|
4427
|
-
true: (_b = {},
|
4428
|
-
_b["& ".concat(Tbody)] = (_c = {},
|
4429
|
-
_c["& ".concat(Tr)] = {
|
4430
|
-
"&:nth-child(odd)": {
|
4431
|
-
bc: "$neutral2",
|
4432
|
-
},
|
4433
|
-
},
|
4434
|
-
_c),
|
4435
|
-
_b),
|
4436
|
-
},
|
4437
|
-
},
|
4438
|
-
});
|
4439
|
-
|
4440
|
-
var TabLink = styled("a", {
|
4441
|
-
position: "relative",
|
4442
|
-
flexShrink: 0,
|
4443
|
-
height: "$6",
|
4444
|
-
display: "inline-flex",
|
4445
|
-
lineHeight: 1,
|
4446
|
-
fontSize: "$1",
|
4447
|
-
px: "$3",
|
4448
|
-
userSelect: "none",
|
4449
|
-
outline: "none",
|
4450
|
-
alignItems: "center",
|
4451
|
-
justifyContent: "center",
|
4452
|
-
color: "$slate11",
|
4453
|
-
textDecoration: "none",
|
4454
|
-
"@hover": {
|
4455
|
-
"&:hover": {
|
4456
|
-
color: "$hiContrast",
|
4457
|
-
},
|
4458
|
-
},
|
4459
|
-
"&:focus": {
|
4460
|
-
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
|
4461
|
-
},
|
4462
|
-
variants: {
|
4463
|
-
active: {
|
4464
|
-
true: {
|
4465
|
-
color: "$hiContrast",
|
4466
|
-
cursor: "default",
|
4467
|
-
"&::after": {
|
4468
|
-
position: "absolute",
|
4469
|
-
content: '""',
|
4470
|
-
left: 0,
|
4471
|
-
bottom: 0,
|
4472
|
-
width: "100%",
|
4473
|
-
height: 2,
|
4474
|
-
backgroundColor: "$blue9",
|
4475
|
-
},
|
4476
|
-
},
|
4477
|
-
},
|
4478
|
-
},
|
4479
|
-
});
|
4480
|
-
|
4481
|
-
var Tabs = styled(TabsPrimitive.Root, {
|
4482
|
-
display: "flex",
|
4483
|
-
'&[data-orientation="horizontal"]': {
|
4484
|
-
flexDirection: "column",
|
4485
|
-
},
|
4486
|
-
});
|
4487
|
-
var TabsTriggerBase = styled(TabsPrimitive.Trigger, {
|
4488
|
-
flexShrink: 0,
|
4489
|
-
height: "$5",
|
4490
|
-
display: "inline-flex",
|
4491
|
-
lineHeight: 1,
|
4492
|
-
fontSize: "$1",
|
4493
|
-
px: "$2",
|
4494
|
-
userSelect: "none",
|
4495
|
-
outline: "none",
|
4496
|
-
alignItems: "center",
|
4497
|
-
justifyContent: "center",
|
4498
|
-
color: "$slate11",
|
4499
|
-
border: "1px solid transparent",
|
4500
|
-
borderTopLeftRadius: "$2",
|
4501
|
-
borderTopRightRadius: "$2",
|
4502
|
-
zIndex: "10",
|
4503
|
-
"@hover": {
|
4504
|
-
"&:hover": {
|
4505
|
-
color: "$hiContrast",
|
4506
|
-
},
|
4507
|
-
},
|
4508
|
-
'&[data-state="active"]': {
|
4509
|
-
color: "$hiContrast",
|
4510
|
-
borderColor: "$slate6",
|
4511
|
-
borderBottomColor: "transparent",
|
4512
|
-
},
|
4513
|
-
'&[data-orientation="vertical"]': {
|
4514
|
-
justifyContent: "flex-start",
|
4515
|
-
borderTopRightRadius: 0,
|
4516
|
-
borderBottomLeftRadius: "$2",
|
4517
|
-
borderBottomColor: "transparent",
|
4518
|
-
'&[data-state="active"]': {
|
4519
|
-
borderBottomColor: "$slate6",
|
4520
|
-
borderRightColor: "transparent",
|
4521
|
-
},
|
4522
|
-
},
|
4523
|
-
});
|
4524
|
-
var StyledTabsListBase = styled(TabsPrimitive.List, {
|
4525
|
-
flexShrink: 0,
|
4526
|
-
display: "flex",
|
4527
|
-
"&:focus": {
|
4528
|
-
outline: "none",
|
4529
|
-
boxShadow: "inset 0 0 0 1px $slate8, 0 0 0 1px $slate8",
|
4530
|
-
},
|
4531
|
-
'&[data-orientation="vertical"]': {
|
4532
|
-
flexDirection: "column",
|
4533
|
-
boxShadow: "inset -1px 0 0 $slate6",
|
4534
|
-
},
|
4535
|
-
});
|
4536
|
-
var TabsListBase = React.forwardRef(function (props, forwardedRef) { return (React.createElement(React.Fragment, null,
|
4537
|
-
React.createElement(StyledTabsListBase, __assign({}, props, { ref: forwardedRef })),
|
4538
|
-
React.createElement(Separator, null))); });
|
4539
|
-
TabsListBase.displayName = "TabsListBase";
|
4540
|
-
var TabsContentBase = styled(TabsPrimitive.Content, {
|
4541
|
-
flexGrow: 1,
|
4542
|
-
"&:focus": {
|
4543
|
-
outline: "none",
|
4544
|
-
boxShadow: "inset 0 0 0 1px $slate8, 0 0 0 1px $slate8",
|
4545
|
-
},
|
4546
|
-
});
|
4547
|
-
var TabsTrigger = styled(TabsTriggerBase, {
|
4548
|
-
color: "$neutral11",
|
4549
|
-
bc: "transparent",
|
4550
|
-
'&[data-state="active"]': {
|
4551
|
-
borderColor: "$neutral6",
|
4552
|
-
},
|
4553
|
-
'&[data-orientation="vertical"]': {
|
4554
|
-
'&[data-state="active"]': {
|
4555
|
-
color: "$hiContrast",
|
4556
|
-
borderColor: "$neutral6",
|
4557
|
-
borderBottomColor: "transparent",
|
4558
|
-
},
|
4559
|
-
},
|
4560
|
-
'&[data-orientation="horizontal"]': {
|
4561
|
-
'&[data-state="active"]': {
|
4562
|
-
color: "$hiContrast",
|
4563
|
-
borderColor: "$neutral6",
|
4564
|
-
borderBottomColor: "transparent",
|
4565
|
-
},
|
4566
|
-
},
|
4567
|
-
});
|
4568
|
-
var TabsList = styled(TabsListBase, {
|
4569
|
-
"&:focus": {
|
4570
|
-
boxShadow: "inset 0 0 0 1px $neutral8, 0 0 0 1px $neutral8",
|
4571
|
-
},
|
4572
|
-
'&[data-orientation="vertical"]': {
|
4573
|
-
boxShadow: "inset -1px 0 0 $neutral6",
|
4574
|
-
},
|
4575
|
-
});
|
4576
|
-
var TabsContent = styled(TabsContentBase, {
|
4577
|
-
"&:focus": {
|
4578
|
-
boxShadow: "inset 0 0 0 1px $neutral8, 0 0 0 1px $neutral8",
|
4579
|
-
},
|
4580
|
-
});
|
4581
|
-
|
4582
|
-
var TextArea = styled("textarea", {
|
4583
|
-
// Reset
|
4584
|
-
appearance: "none",
|
4585
|
-
borderWidth: "0",
|
4586
|
-
fontFamily: "inherit",
|
4587
|
-
margin: "0",
|
4588
|
-
outline: "none",
|
4589
|
-
padding: "$1",
|
4590
|
-
width: "100%",
|
4591
|
-
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
4592
|
-
backgroundColor: "$loContrast",
|
4593
|
-
boxShadow: "inset 0 0 0 1px $colors$slate7",
|
4594
|
-
color: "$hiContrast",
|
4595
|
-
fontVariantNumeric: "tabular-nums",
|
4596
|
-
position: "relative",
|
4597
|
-
minHeight: 80,
|
4598
|
-
resize: "vertical",
|
4599
|
-
"&:focus": {
|
4600
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",
|
4601
|
-
zIndex: "1",
|
4602
|
-
},
|
4603
|
-
"&::placeholder": {
|
4604
|
-
color: "$slate9",
|
4605
|
-
},
|
4606
|
-
"&:disabled": {
|
4607
|
-
pointerEvents: "none",
|
4608
|
-
backgroundColor: "$slate2",
|
4609
|
-
color: "$slate8",
|
4610
|
-
cursor: "not-allowed",
|
4611
|
-
resize: "none",
|
4612
|
-
"&::placeholder": {
|
4613
|
-
color: "$slate7",
|
4614
|
-
},
|
4615
|
-
},
|
4616
|
-
"&:read-only": {
|
4617
|
-
backgroundColor: "$slate2",
|
4618
|
-
"&:focus": {
|
4619
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$slate7",
|
4620
|
-
},
|
4621
|
-
},
|
4622
|
-
variants: {
|
4623
|
-
size: {
|
4624
|
-
"1": {
|
4625
|
-
borderRadius: "$1",
|
4626
|
-
fontSize: "$1",
|
4627
|
-
lineHeight: "16px",
|
4628
|
-
px: "$1",
|
4629
|
-
},
|
4630
|
-
"2": {
|
4631
|
-
borderRadius: "$1",
|
4632
|
-
fontSize: "$2",
|
4633
|
-
lineHeight: "20px",
|
4634
|
-
px: "$1",
|
4635
|
-
},
|
4636
|
-
"3": {
|
4637
|
-
borderRadius: "$2",
|
4638
|
-
fontSize: "$3",
|
4639
|
-
lineHeight: "23px",
|
4640
|
-
px: "$2",
|
4641
|
-
},
|
4642
|
-
},
|
4643
|
-
state: {
|
4644
|
-
invalid: {
|
4645
|
-
boxShadow: "inset 0 0 0 1px $colors$red7",
|
4646
|
-
"&:focus": {
|
4647
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$red8, 0px 0px 0px 1px $colors$red8",
|
4648
|
-
},
|
4649
|
-
},
|
4650
|
-
valid: {
|
4651
|
-
boxShadow: "inset 0 0 0 1px $colors$green7",
|
4652
|
-
"&:focus": {
|
4653
|
-
boxShadow: "inset 0px 0px 0px 1px $colors$green8, 0px 0px 0px 1px $colors$green8",
|
4654
|
-
},
|
4655
|
-
},
|
4656
|
-
},
|
4657
|
-
cursor: {
|
4658
|
-
default: {
|
4659
|
-
cursor: "default",
|
4660
|
-
"&:focus": {
|
4661
|
-
cursor: "text",
|
4662
|
-
},
|
4663
|
-
},
|
4664
|
-
text: {
|
4665
|
-
cursor: "text",
|
4666
|
-
},
|
4667
|
-
},
|
4668
|
-
},
|
4669
|
-
defaultVariants: {
|
4670
|
-
size: "1",
|
4671
|
-
},
|
4672
|
-
});
|
4673
|
-
|
4674
|
-
var StyledContent = styled(TooltipPrimitive.Content, {
|
4675
|
-
backgroundColor: "$transparentPanel",
|
4676
|
-
borderRadius: "$1",
|
4677
|
-
padding: "$1 $2",
|
4678
|
-
variants: {
|
4679
|
-
multiline: {
|
4680
|
-
true: {
|
4681
|
-
maxWidth: 250,
|
4682
|
-
pb: 7,
|
4683
|
-
},
|
4684
|
-
},
|
4685
|
-
},
|
4686
|
-
});
|
4687
|
-
function Tooltip(_a) {
|
4688
|
-
var children = _a.children, content = _a.content, open = _a.open, defaultOpen = _a.defaultOpen, onOpenChange = _a.onOpenChange, delayDuration = _a.delayDuration, disableHoverableContent = _a.disableHoverableContent, multiline = _a.multiline, props = __rest(_a, ["children", "content", "open", "defaultOpen", "onOpenChange", "delayDuration", "disableHoverableContent", "multiline"]);
|
4689
|
-
var rootProps = {
|
4690
|
-
open: open,
|
4691
|
-
defaultOpen: defaultOpen,
|
4692
|
-
onOpenChange: onOpenChange,
|
4693
|
-
delayDuration: delayDuration,
|
4694
|
-
disableHoverableContent: disableHoverableContent,
|
4695
|
-
};
|
4696
|
-
return (React.createElement(TooltipPrimitive.Root, __assign({}, rootProps),
|
4697
|
-
React.createElement(TooltipPrimitive.Trigger, { asChild: true }, children),
|
4698
|
-
React.createElement(TooltipPrimitive.Portal, null,
|
4699
|
-
React.createElement(StyledContent, __assign({ side: "top", align: "center", sideOffset: 5 }, props, { multiline: multiline }),
|
4700
|
-
React.createElement(Text, { size: "1", as: "p", css: {
|
4701
|
-
color: "$loContrast",
|
4702
|
-
lineHeight: multiline ? "20px" : undefined,
|
4703
|
-
} }, content),
|
4704
|
-
React.createElement(Box, { css: { color: "$transparentExtreme" } },
|
4705
|
-
React.createElement(TooltipPrimitive.Arrow, { width: 11, height: 5, style: { fill: "currentColor" } }))))));
|
4706
|
-
}
|
4707
|
-
|
4708
|
-
var TreeItem = styled("div", {
|
4709
|
-
// Reset
|
4710
|
-
alignItems: "center",
|
4711
|
-
boxSizing: "border-box",
|
4712
|
-
display: "flex",
|
4713
|
-
lineHeight: "1",
|
4714
|
-
userSelect: "none",
|
4715
|
-
WebkitTapHighlightColor: "transparent",
|
4716
|
-
"&:disabled": {
|
4717
|
-
pointerEvents: "none",
|
4718
|
-
},
|
4719
|
-
"&::before": {
|
4720
|
-
boxSizing: "border-box",
|
4721
|
-
},
|
4722
|
-
"&::after": {
|
4723
|
-
boxSizing: "border-box",
|
4724
|
-
},
|
4725
|
-
// Custom
|
4726
|
-
height: "29px",
|
4727
|
-
px: "$2",
|
4728
|
-
fontSize: "$1",
|
4729
|
-
color: "$hiContrast",
|
4730
|
-
variants: {
|
4731
|
-
variant: {
|
4732
|
-
gray: {
|
4733
|
-
backgroundColor: "$slate3",
|
4734
|
-
"&:hover": {
|
4735
|
-
backgroundColor: "$slate4",
|
4736
|
-
},
|
4737
|
-
"&:active": {
|
4738
|
-
backgroundColor: "$slate5",
|
4739
|
-
},
|
4740
|
-
},
|
4741
|
-
red: {
|
4742
|
-
backgroundColor: "$red3",
|
4743
|
-
"&:hover": {
|
4744
|
-
backgroundColor: "$red4",
|
4745
|
-
},
|
4746
|
-
"&:active": {
|
4747
|
-
backgroundColor: "$red5",
|
4748
|
-
},
|
4749
|
-
},
|
4750
|
-
crimson: {
|
4751
|
-
backgroundColor: "$crimson3",
|
4752
|
-
"&:hover": {
|
4753
|
-
backgroundColor: "$crimson4",
|
4754
|
-
},
|
4755
|
-
"&:active": {
|
4756
|
-
backgroundColor: "$crimson5",
|
4757
|
-
},
|
4758
|
-
},
|
4759
|
-
pink: {
|
4760
|
-
backgroundColor: "$pink3",
|
4761
|
-
"&:hover": {
|
4762
|
-
backgroundColor: "$pink4",
|
4763
|
-
},
|
4764
|
-
"&:active": {
|
4765
|
-
backgroundColor: "$pink5",
|
4766
|
-
},
|
4767
|
-
},
|
4768
|
-
purple: {
|
4769
|
-
backgroundColor: "$purple3",
|
4770
|
-
"&:hover": {
|
4771
|
-
backgroundColor: "$purple4",
|
4772
|
-
},
|
4773
|
-
"&:active": {
|
4774
|
-
backgroundColor: "$purple5",
|
4775
|
-
},
|
4776
|
-
},
|
4777
|
-
violet: {
|
4778
|
-
backgroundColor: "$violet3",
|
4779
|
-
"&:hover": {
|
4780
|
-
backgroundColor: "$violet4",
|
4781
|
-
},
|
4782
|
-
"&:active": {
|
4783
|
-
backgroundColor: "$violet5",
|
4784
|
-
},
|
4785
|
-
},
|
4786
|
-
indigo: {
|
4787
|
-
backgroundColor: "$indigo3",
|
4788
|
-
"&:hover": {
|
4789
|
-
backgroundColor: "$indigo4",
|
4790
|
-
},
|
4791
|
-
"&:active": {
|
4792
|
-
backgroundColor: "$indigo5",
|
4793
|
-
},
|
4794
|
-
},
|
4795
|
-
blue: {
|
4796
|
-
backgroundColor: "$blue3",
|
4797
|
-
"&:hover": {
|
4798
|
-
backgroundColor: "$blue4",
|
4799
|
-
},
|
4800
|
-
"&:active": {
|
4801
|
-
backgroundColor: "$blue5",
|
4802
|
-
},
|
4803
|
-
},
|
4804
|
-
cyan: {
|
4805
|
-
backgroundColor: "$cyan3",
|
4806
|
-
"&:hover": {
|
4807
|
-
backgroundColor: "$cyan4",
|
4808
|
-
},
|
4809
|
-
"&:active": {
|
4810
|
-
backgroundColor: "$cyan5",
|
4811
|
-
},
|
4812
|
-
},
|
4813
|
-
teal: {
|
4814
|
-
backgroundColor: "$teal3",
|
4815
|
-
"&:hover": {
|
4816
|
-
backgroundColor: "$teal4",
|
4817
|
-
},
|
4818
|
-
"&:active": {
|
4819
|
-
backgroundColor: "$teal5",
|
4820
|
-
},
|
4821
|
-
},
|
4822
|
-
green: {
|
4823
|
-
backgroundColor: "$green3",
|
4824
|
-
"&:hover": {
|
4825
|
-
backgroundColor: "$green4",
|
4826
|
-
},
|
4827
|
-
"&:active": {
|
4828
|
-
backgroundColor: "$green5",
|
4829
|
-
},
|
4830
|
-
},
|
4831
|
-
lime: {
|
4832
|
-
backgroundColor: "$lime3",
|
4833
|
-
"&:hover": {
|
4834
|
-
backgroundColor: "$lime4",
|
4835
|
-
},
|
4836
|
-
"&:active": {
|
4837
|
-
backgroundColor: "$lime5",
|
4838
|
-
},
|
4839
|
-
},
|
4840
|
-
yellow: {
|
4841
|
-
backgroundColor: "$yellow3",
|
4842
|
-
"&:hover": {
|
4843
|
-
backgroundColor: "$yellow4",
|
4844
|
-
},
|
4845
|
-
"&:active": {
|
4846
|
-
backgroundColor: "$yellow5",
|
4847
|
-
},
|
4848
|
-
},
|
4849
|
-
amber: {
|
4850
|
-
backgroundColor: "$amber3",
|
4851
|
-
"&:hover": {
|
4852
|
-
backgroundColor: "$amber4",
|
4853
|
-
},
|
4854
|
-
"&:active": {
|
4855
|
-
backgroundColor: "$amber5",
|
4856
|
-
},
|
4857
|
-
},
|
4858
|
-
orange: {
|
4859
|
-
backgroundColor: "$orange3",
|
4860
|
-
"&:hover": {
|
4861
|
-
backgroundColor: "$orange4",
|
4862
|
-
},
|
4863
|
-
"&:active": {
|
4864
|
-
backgroundColor: "$orange5",
|
4865
|
-
},
|
4866
|
-
},
|
4867
|
-
gold: {
|
4868
|
-
backgroundColor: "$gold3",
|
4869
|
-
"&:hover": {
|
4870
|
-
backgroundColor: "$gold4",
|
4871
|
-
},
|
4872
|
-
"&:active": {
|
4873
|
-
backgroundColor: "$gold5",
|
4874
|
-
},
|
4875
|
-
},
|
4876
|
-
brown: {
|
4877
|
-
backgroundColor: "$brown3",
|
4878
|
-
"&:hover": {
|
4879
|
-
backgroundColor: "$brown4",
|
4880
|
-
},
|
4881
|
-
"&:active": {
|
4882
|
-
backgroundColor: "$brown5",
|
4883
|
-
},
|
4884
|
-
},
|
4885
|
-
bronze: {
|
4886
|
-
backgroundColor: "$bronze3",
|
4887
|
-
"&:hover": {
|
4888
|
-
backgroundColor: "$bronze4",
|
4889
|
-
},
|
4890
|
-
"&:active": {
|
4891
|
-
backgroundColor: "$bronze5",
|
4892
|
-
},
|
4893
|
-
},
|
4894
|
-
},
|
4895
|
-
},
|
4896
|
-
});
|
4897
|
-
|
4898
|
-
var StyledVerifiedBadge = styled("div", Flex, {
|
4899
|
-
alignItems: "center",
|
4900
|
-
backgroundColor: "$blue9",
|
4901
|
-
borderRadius: "$round",
|
4902
|
-
color: "white",
|
4903
|
-
flexShrink: 0,
|
4904
|
-
justifyContent: "center",
|
4905
|
-
width: "$3",
|
4906
|
-
height: "$3",
|
4907
|
-
});
|
4908
|
-
var VerifiedBadge = React.forwardRef(function (props, forwardedRef) { return (React.createElement(StyledVerifiedBadge, __assign({}, props, { ref: forwardedRef }),
|
4909
|
-
React.createElement(CheckIcon, null))); });
|
4910
|
-
VerifiedBadge.displayName = "VerifiedBadge";
|
4911
|
-
|
4912
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarGroup, AvatarNestedItem, Badge, Banner, Box, Button, Caption, Card, Checkbox, Code, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuTrigger, ControlGroup, DesignSystemProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, Flex, Grid, Heading, IconButton, Image, Kbd, Label, Link, Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuLabel, MenuRadioGroup, MenuRadioItem, MenuSeparator, Overlay, Panel, Paragraph, Popover, PopoverClose, PopoverContent, PopoverTrigger, ProgressBar, Promo, Radio, RadioCard, RadioCardGroup, RadioGroup, Section, Select, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetTitle, SheetTrigger, SimpleToggle, Skeleton, Slider, SnackbarProvider, Status, Sub, Sup, Switch, TabLink, Table, Tabs, TabsContent, TabsList, TabsTrigger, Tbody, Td, Text, TextArea, TextField, Tfoot, Th, Thead, Tooltip, Tr, TreeItem, VerifiedBadge, config, css, getCssText, getThemes, globalCss, keyframes, styled, useSnackbar };
|