@livepeer/design-system 1.1.1 → 1.1.2

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