@livepeer/design-system 0.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordian.d.ts +4 -0
- package/dist/components/AlertDialog.d.ts +13 -0
- package/dist/components/Badge.d.ts +991 -0
- package/dist/components/Banner.d.ts +1 -0
- package/dist/components/Button.d.ts +1 -0
- package/dist/components/Card.d.ts +989 -0
- package/dist/components/Dialog.d.ts +12 -0
- package/dist/components/DropdownMenu.d.ts +3 -0
- package/dist/components/Label.d.ts +1 -0
- package/dist/components/Link.d.ts +989 -0
- package/dist/components/Promo.d.ts +1 -0
- package/dist/components/RadioCard.d.ts +998 -0
- package/dist/components/Select.d.ts +1 -0
- package/dist/components/Snackbar/SnackbarProvider.d.ts +15 -0
- package/dist/components/Snackbar/index.d.ts +2 -0
- package/dist/components/Snackbar/transitionStyles.d.ts +87 -0
- package/dist/components/Snackbar/useSnackbar.d.ts +5 -0
- package/dist/components/Switch.d.ts +1 -0
- package/dist/components/Table.d.ts +7904 -0
- package/dist/components/Tabs.d.ts +4 -0
- package/dist/components/Text.d.ts +1 -0
- package/dist/components/TextField.d.ts +1 -0
- package/dist/custom/AppBar.d.ts +993 -0
- package/dist/custom/Avatars.d.ts +1 -0
- package/dist/custom/DarkThemeButton.d.ts +1 -0
- package/dist/custom/Kbds.d.ts +1 -0
- package/dist/custom/Snackbar.d.ts +1 -0
- package/dist/custom/Toolbar.d.ts +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.es.js +2270 -0
- package/dist/index.js +2701 -0
- package/dist/stitches.config.d.ts +24 -0
- package/package.json +93 -0
package/dist/index.js
ADDED
@@ -0,0 +1,2701 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var designSystem = require('@modulz/design-system');
|
6
|
+
var tslib = require('tslib');
|
7
|
+
var React = require('react');
|
8
|
+
var colors = require('@radix-ui/colors');
|
9
|
+
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
10
|
+
var reactIcons = require('@radix-ui/react-icons');
|
11
|
+
var DialogPrimitive = require('@radix-ui/react-dialog');
|
12
|
+
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
13
|
+
var BaseLabel = require('@radix-ui/react-label');
|
14
|
+
var reactTransitionGroup = require('react-transition-group');
|
15
|
+
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
16
|
+
var reactHoverCard = require('@radix-ui/react-hover-card');
|
17
|
+
var reactAccessibleIcon = require('@radix-ui/react-accessible-icon');
|
18
|
+
var reactScrollArea = require('@radix-ui/react-scroll-area');
|
19
|
+
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
21
|
+
|
22
|
+
function _interopNamespace(e) {
|
23
|
+
if (e && e.__esModule) return e;
|
24
|
+
var n = Object.create(null);
|
25
|
+
if (e) {
|
26
|
+
Object.keys(e).forEach(function (k) {
|
27
|
+
if (k !== 'default') {
|
28
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
29
|
+
Object.defineProperty(n, k, d.get ? d : {
|
30
|
+
enumerable: true,
|
31
|
+
get: function () { return e[k]; }
|
32
|
+
});
|
33
|
+
}
|
34
|
+
});
|
35
|
+
}
|
36
|
+
n["default"] = e;
|
37
|
+
return Object.freeze(n);
|
38
|
+
}
|
39
|
+
|
40
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
41
|
+
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
42
|
+
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
43
|
+
var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
|
44
|
+
var BaseLabel__namespace = /*#__PURE__*/_interopNamespace(BaseLabel);
|
45
|
+
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
46
|
+
|
47
|
+
var fonts = {
|
48
|
+
body: "Inter, -apple-system, system-ui, sans-serif",
|
49
|
+
mono: "menlo, monospace",
|
50
|
+
};
|
51
|
+
var lightThemeColors = tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign({}, colors.gray), colors.mauve), colors.slate), colors.sage), colors.olive), colors.sand), colors.tomato), colors.red), colors.crimson), colors.pink), colors.plum), colors.purple), colors.violet), colors.indigo), colors.blue), colors.sky), colors.mint), colors.cyan), colors.teal), colors.green), colors.grass), colors.lime), colors.yellow), colors.amber), colors.orange), colors.brown), colors.bronze), colors.gold), colors.whiteA), colors.blackA);
|
52
|
+
var darkThemeColors = tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign(tslib.__assign({}, colors.grayDark), colors.mauveDark), colors.slateDark), colors.sageDark), colors.oliveDark), colors.sandDark), colors.tomatoDark), colors.redDark), colors.crimsonDark), colors.pinkDark), colors.plumDark), colors.purpleDark), colors.violetDark), colors.indigoDark), colors.blueDark), colors.skyDark), colors.mintDark), colors.cyanDark), colors.tealDark), colors.greenDark), colors.grassDark), colors.limeDark), colors.yellowDark), colors.amberDark), colors.orangeDark), colors.brownDark), colors.bronzeDark), colors.goldDark), colors.whiteA), colors.blackA);
|
53
|
+
var naturalPairings = {
|
54
|
+
tomato: "mauve",
|
55
|
+
red: "mauve",
|
56
|
+
crimson: "mauve",
|
57
|
+
pink: "mauve",
|
58
|
+
plum: "mauve",
|
59
|
+
purple: "mauve",
|
60
|
+
violet: "mauve",
|
61
|
+
indigo: "slate",
|
62
|
+
blue: "slate",
|
63
|
+
sky: "slate",
|
64
|
+
cyan: "slate",
|
65
|
+
teal: "sage",
|
66
|
+
mint: "sage",
|
67
|
+
green: "sage",
|
68
|
+
grass: "olive",
|
69
|
+
lime: "olive",
|
70
|
+
yellow: "sand",
|
71
|
+
amber: "sand",
|
72
|
+
orange: "sand",
|
73
|
+
brown: "sand",
|
74
|
+
};
|
75
|
+
function getThemes() {
|
76
|
+
var themes = {};
|
77
|
+
for (var _i = 0, _a = Object.entries(naturalPairings); _i < _a.length; _i++) {
|
78
|
+
var _b = _a[_i], primary = _b[0], neutral = _b[1];
|
79
|
+
themes["light-theme-".concat(primary)] = designSystem.createTheme("light-theme-".concat(primary), {
|
80
|
+
colors: tslib.__assign(tslib.__assign({}, lightThemeColors), {
|
81
|
+
// Semantic colors
|
82
|
+
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(neutral, "1"), neutral2: "$".concat(neutral, "2"), neutral3: "$".concat(neutral, "3"), neutral4: "$".concat(neutral, "4"), neutral5: "$".concat(neutral, "5"), neutral6: "$".concat(neutral, "6"), neutral7: "$".concat(neutral, "7"), neutral8: "$".concat(neutral, "8"), neutral9: "$".concat(neutral, "9"), neutral10: "$".concat(neutral, "10"), neutral11: "$".concat(neutral, "11"), neutral12: "$".concat(neutral, "12"), hiContrast: "$".concat(neutral, "12"), loContrast: "$whiteA12", canvas: "hsl(0 0% 93%)", panel: "$".concat(neutral, "2"), transparentPanel: "hsl(0 0% 0% / 97%)", shadowLight: "hsl(206 22% 7% / 35%)", shadowDark: "hsl(206 22% 7% / 20%)" }),
|
83
|
+
fonts: fonts,
|
84
|
+
});
|
85
|
+
themes["dark-theme-".concat(primary)] = designSystem.createTheme("dark-theme-".concat(primary), {
|
86
|
+
colors: tslib.__assign(tslib.__assign({}, darkThemeColors), {
|
87
|
+
// Semantic colors
|
88
|
+
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(neutral, "1"), neutral2: "$".concat(neutral, "2"), neutral3: "$".concat(neutral, "3"), neutral4: "$".concat(neutral, "4"), neutral5: "$".concat(neutral, "5"), neutral6: "$".concat(neutral, "6"), neutral7: "$".concat(neutral, "7"), neutral8: "$".concat(neutral, "8"), neutral9: "$".concat(neutral, "9"), neutral10: "$".concat(neutral, "10"), neutral11: "$".concat(neutral, "11"), neutral12: "$".concat(neutral, "12"), hiContrast: "$".concat(neutral, "12"), loContrast: "$".concat(neutral, "1"), canvas: "hsl(0 0% 15%)", panel: "$".concat(neutral, "2"), transparentPanel: "hsl(0 100% 100% / 97%)", shadowLight: "hsl(206 22% 7% / 35%)", shadowDark: "hsl(206 22% 7% / 20%)" }),
|
89
|
+
fonts: fonts,
|
90
|
+
});
|
91
|
+
}
|
92
|
+
return themes;
|
93
|
+
}
|
94
|
+
var themes = getThemes();
|
95
|
+
|
96
|
+
var _a$3;
|
97
|
+
var StyledAccordion = designSystem.styled(AccordionPrimitive__namespace.Root, {
|
98
|
+
boxShadow: "0 0 0 1px $colors$neutral6",
|
99
|
+
borderRadius: "$1",
|
100
|
+
});
|
101
|
+
var StyledPanel = designSystem.styled(AccordionPrimitive__namespace.Content, {
|
102
|
+
pt: "$0",
|
103
|
+
pb: "$5",
|
104
|
+
px: "$7",
|
105
|
+
backgroundColor: "$neutral2",
|
106
|
+
});
|
107
|
+
var StyledButton = designSystem.styled(AccordionPrimitive__namespace.Trigger, {
|
108
|
+
all: "unset",
|
109
|
+
boxSizing: "border-box",
|
110
|
+
userSelect: "none",
|
111
|
+
"&::before": {
|
112
|
+
boxSizing: "border-box",
|
113
|
+
},
|
114
|
+
"&::after": {
|
115
|
+
boxSizing: "border-box",
|
116
|
+
},
|
117
|
+
display: "flex",
|
118
|
+
alignItems: "center",
|
119
|
+
px: "$3",
|
120
|
+
py: "$4",
|
121
|
+
color: "$hiContrast",
|
122
|
+
width: "100%",
|
123
|
+
"@hover": {
|
124
|
+
"&:hover": {
|
125
|
+
backgroundColor: "$neutral2",
|
126
|
+
},
|
127
|
+
},
|
128
|
+
"&:focus": {
|
129
|
+
outline: "none",
|
130
|
+
},
|
131
|
+
svg: {
|
132
|
+
mr: "$3",
|
133
|
+
transition: "transform 175ms cubic-bezier(0.65, 0, 0.35, 1)",
|
134
|
+
},
|
135
|
+
'&[data-state="open"]': {
|
136
|
+
backgroundColor: "$neutral2",
|
137
|
+
svg: {
|
138
|
+
transform: "rotate(90deg)",
|
139
|
+
},
|
140
|
+
},
|
141
|
+
});
|
142
|
+
var StyledItem = designSystem.styled(AccordionPrimitive__namespace.Item, (_a$3 = {
|
143
|
+
// borderBottom: "1px solid $colors$neutral6",
|
144
|
+
"&:last-of-type": {
|
145
|
+
borderBottom: 0,
|
146
|
+
}
|
147
|
+
},
|
148
|
+
_a$3["&:first-of-type ".concat(StyledPanel)] = {
|
149
|
+
borderTopRightRadius: "$1",
|
150
|
+
borderTopLeftRadius: "$1",
|
151
|
+
},
|
152
|
+
_a$3["&:last-of-type ".concat(StyledPanel)] = {
|
153
|
+
borderBottomRightRadius: "$1",
|
154
|
+
borderBottomLeftRadius: "$1",
|
155
|
+
},
|
156
|
+
_a$3["&:first-of-type ".concat(StyledButton)] = {
|
157
|
+
borderTopRightRadius: "$1",
|
158
|
+
borderTopLeftRadius: "$1",
|
159
|
+
},
|
160
|
+
_a$3["&:last-of-type ".concat(StyledButton)] = {
|
161
|
+
borderBottomRightRadius: "$1",
|
162
|
+
borderBottomLeftRadius: "$1",
|
163
|
+
},
|
164
|
+
_a$3));
|
165
|
+
var StyledHeader = designSystem.styled(AccordionPrimitive__namespace.Header, {
|
166
|
+
all: "unset",
|
167
|
+
});
|
168
|
+
var AccordionButton = React__default["default"].forwardRef(function (_a, forwardedRef) {
|
169
|
+
var children = _a.children, props = tslib.__rest(_a, ["children"]);
|
170
|
+
return (React__default["default"].createElement(StyledHeader, null,
|
171
|
+
React__default["default"].createElement(StyledButton, tslib.__assign({}, props, { ref: forwardedRef }),
|
172
|
+
React__default["default"].createElement(reactIcons.ChevronRightIcon, null),
|
173
|
+
children)));
|
174
|
+
});
|
175
|
+
var Accordion = StyledAccordion;
|
176
|
+
var AccordionItem = StyledItem;
|
177
|
+
var AccordionPanel = StyledPanel;
|
178
|
+
|
179
|
+
var fadeIn$1 = designSystem.keyframes({
|
180
|
+
from: { opacity: 0 },
|
181
|
+
to: { opacity: 1 },
|
182
|
+
});
|
183
|
+
var scaleIn$1 = designSystem.keyframes({
|
184
|
+
from: { transform: "translate(-50%, -50%) scale(0.9)" },
|
185
|
+
to: { transform: "translate(-50%, -50%) scale(1)" },
|
186
|
+
});
|
187
|
+
var fadeout$1 = designSystem.keyframes({
|
188
|
+
from: { opacity: 1 },
|
189
|
+
to: { opacity: 0 },
|
190
|
+
});
|
191
|
+
var StyledOverlay$1 = designSystem.styled(DialogPrimitive__namespace.Overlay, {
|
192
|
+
position: "fixed",
|
193
|
+
top: 0,
|
194
|
+
right: 0,
|
195
|
+
bottom: 0,
|
196
|
+
left: 0,
|
197
|
+
backgroundColor: "rgba(0,0,0,.35)",
|
198
|
+
inset: 0,
|
199
|
+
variants: {
|
200
|
+
animation: {
|
201
|
+
true: {
|
202
|
+
'&[data-state="open"]': {
|
203
|
+
animation: "".concat(fadeIn$1, " 300ms ease-out"),
|
204
|
+
},
|
205
|
+
'&[data-state="closed"]': {
|
206
|
+
animation: "".concat(fadeout$1, " 200ms ease-out"),
|
207
|
+
},
|
208
|
+
},
|
209
|
+
},
|
210
|
+
},
|
211
|
+
});
|
212
|
+
function Dialog(_a) {
|
213
|
+
var children = _a.children, props = tslib.__rest(_a, ["children"]);
|
214
|
+
return (React__default["default"].createElement(DialogPrimitive__namespace.Root, tslib.__assign({}, props),
|
215
|
+
React__default["default"].createElement(StyledOverlay$1, { animation: true }),
|
216
|
+
children));
|
217
|
+
}
|
218
|
+
var StyledDialogContent = designSystem.styled(DialogPrimitive__namespace.Content, {
|
219
|
+
position: "fixed",
|
220
|
+
top: "50%",
|
221
|
+
left: "50%",
|
222
|
+
transform: "translate(-50%, -50%)",
|
223
|
+
maxHeight: "85vh",
|
224
|
+
padding: "$4",
|
225
|
+
marginTop: "-5vh",
|
226
|
+
backgroundColor: "$panel",
|
227
|
+
borderRadius: "$4",
|
228
|
+
boxShadow: "$colors$shadowLight 0px 10px 38px -10px, $colors$shadowDark 0px 10px 20px -15px",
|
229
|
+
color: "$black",
|
230
|
+
"&:focus": {
|
231
|
+
outline: "none",
|
232
|
+
},
|
233
|
+
variants: {
|
234
|
+
animation: {
|
235
|
+
fade: {
|
236
|
+
'&[data-state="open"]': {
|
237
|
+
animation: "".concat(fadeIn$1, " 300ms ease-out"),
|
238
|
+
},
|
239
|
+
'&[data-state="closed"]': {
|
240
|
+
animation: "".concat(fadeout$1, " 200ms ease-out"),
|
241
|
+
},
|
242
|
+
},
|
243
|
+
scale: {
|
244
|
+
animation: "".concat(fadeIn$1, " 300ms ease-out, ").concat(scaleIn$1, " 200ms ease-out"),
|
245
|
+
},
|
246
|
+
},
|
247
|
+
},
|
248
|
+
defaultVariants: {
|
249
|
+
animation: "scale",
|
250
|
+
},
|
251
|
+
});
|
252
|
+
var DialogContent = function (_a) {
|
253
|
+
var children = _a.children, _b = _a.animation, animation = _b === void 0 ? "scale" : _b, props = tslib.__rest(_a, ["children", "animation"]);
|
254
|
+
return (React__default["default"].createElement(StyledDialogContent, tslib.__assign({ animation: animation }, props), children));
|
255
|
+
};
|
256
|
+
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
257
|
+
var DialogTitle = DialogPrimitive__namespace.Title;
|
258
|
+
var DialogDescription = DialogPrimitive__namespace.Description;
|
259
|
+
var DialogClose = DialogPrimitive__namespace.Close;
|
260
|
+
|
261
|
+
var TabsTrigger = designSystem.styled(designSystem.TabsTrigger, {
|
262
|
+
color: "$neutral11",
|
263
|
+
bc: "transparent",
|
264
|
+
'&[data-state="active"]': {
|
265
|
+
borderColor: "$neutral6",
|
266
|
+
},
|
267
|
+
'&[data-orientation="vertical"]': {
|
268
|
+
'&[data-state="active"]': {
|
269
|
+
color: "$hiContrast",
|
270
|
+
borderColor: "$neutral6",
|
271
|
+
borderBottomColor: "transparent",
|
272
|
+
},
|
273
|
+
},
|
274
|
+
'&[data-orientation="horizontal"]': {
|
275
|
+
'&[data-state="active"]': {
|
276
|
+
color: "$hiContrast",
|
277
|
+
borderColor: "$neutral6",
|
278
|
+
borderBottomColor: "transparent",
|
279
|
+
},
|
280
|
+
},
|
281
|
+
});
|
282
|
+
var TabsList = designSystem.styled(designSystem.TabsList, {
|
283
|
+
"&:focus": {
|
284
|
+
boxShadow: "inset 0 0 0 1px $neutral8, 0 0 0 1px $neutral8",
|
285
|
+
},
|
286
|
+
'&[data-orientation="vertical"]': {
|
287
|
+
boxShadow: "inset -1px 0 0 $neutral6",
|
288
|
+
},
|
289
|
+
});
|
290
|
+
var TabsContent = designSystem.styled(designSystem.TabsContent, {
|
291
|
+
"&:focus": {
|
292
|
+
boxShadow: "inset 0 0 0 1px $neutral8, 0 0 0 1px $neutral8",
|
293
|
+
},
|
294
|
+
});
|
295
|
+
|
296
|
+
var fadeIn = designSystem.keyframes({
|
297
|
+
from: { opacity: 0 },
|
298
|
+
to: { opacity: 1 },
|
299
|
+
});
|
300
|
+
var scaleIn = designSystem.keyframes({
|
301
|
+
from: { transform: "translate(-50%, -50%) scale(0.9)" },
|
302
|
+
to: { transform: "translate(-50%, -50%) scale(1)" },
|
303
|
+
});
|
304
|
+
var fadeout = designSystem.keyframes({
|
305
|
+
from: { opacity: 1 },
|
306
|
+
to: { opacity: 0 },
|
307
|
+
});
|
308
|
+
var StyledOverlay = designSystem.styled(AlertDialogPrimitive__namespace.Overlay, {
|
309
|
+
position: "fixed",
|
310
|
+
top: 0,
|
311
|
+
right: 0,
|
312
|
+
bottom: 0,
|
313
|
+
left: 0,
|
314
|
+
backgroundColor: "rgba(0,0,0,.35)",
|
315
|
+
inset: 0,
|
316
|
+
variants: {
|
317
|
+
animation: {
|
318
|
+
true: {
|
319
|
+
'&[data-state="open"]': {
|
320
|
+
animation: "".concat(fadeIn, " 300ms ease-out"),
|
321
|
+
},
|
322
|
+
'&[data-state="closed"]': {
|
323
|
+
animation: "".concat(fadeout, " 200ms ease-out"),
|
324
|
+
},
|
325
|
+
},
|
326
|
+
},
|
327
|
+
},
|
328
|
+
});
|
329
|
+
function AlertDialog(_a) {
|
330
|
+
var children = _a.children, props = tslib.__rest(_a, ["children"]);
|
331
|
+
return (React__default["default"].createElement(AlertDialogPrimitive__namespace.Root, tslib.__assign({}, props),
|
332
|
+
React__default["default"].createElement(StyledOverlay, { animation: true }),
|
333
|
+
children));
|
334
|
+
}
|
335
|
+
var StyledAlertDialogContent = designSystem.styled(AlertDialogPrimitive__namespace.Content, {
|
336
|
+
position: "fixed",
|
337
|
+
top: "50%",
|
338
|
+
left: "50%",
|
339
|
+
transform: "translate(-50%, -50%)",
|
340
|
+
maxHeight: "85vh",
|
341
|
+
padding: "$4",
|
342
|
+
marginTop: "-5vh",
|
343
|
+
backgroundColor: "$panel",
|
344
|
+
borderRadius: "$4",
|
345
|
+
boxShadow: "$colors$shadowLight 0px 10px 38px -10px, $colors$shadowDark 0px 10px 20px -15px",
|
346
|
+
color: "$black",
|
347
|
+
"&:focus": {
|
348
|
+
outline: "none",
|
349
|
+
},
|
350
|
+
variants: {
|
351
|
+
animation: {
|
352
|
+
fade: {
|
353
|
+
'&[data-state="open"]': {
|
354
|
+
animation: "".concat(fadeIn, " 300ms ease-out"),
|
355
|
+
},
|
356
|
+
'&[data-state="closed"]': {
|
357
|
+
animation: "".concat(fadeout, " 200ms ease-out"),
|
358
|
+
},
|
359
|
+
},
|
360
|
+
scale: {
|
361
|
+
animation: "".concat(fadeIn, " 300ms ease-out, ").concat(scaleIn, " 200ms ease-out"),
|
362
|
+
},
|
363
|
+
},
|
364
|
+
},
|
365
|
+
defaultVariants: {
|
366
|
+
animation: "scale",
|
367
|
+
},
|
368
|
+
});
|
369
|
+
var AlertDialogContent = function (_a) {
|
370
|
+
var children = _a.children, _b = _a.animation, animation = _b === void 0 ? "scale" : _b, props = tslib.__rest(_a, ["children", "animation"]);
|
371
|
+
return (React__default["default"].createElement(StyledAlertDialogContent, tslib.__assign({ animation: animation }, props), children));
|
372
|
+
};
|
373
|
+
var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
|
374
|
+
var AlertDialogTitle = AlertDialogPrimitive__namespace.Title;
|
375
|
+
var AlertDialogDescription = AlertDialogPrimitive__namespace.Description;
|
376
|
+
var AlertDialogCancel = AlertDialogPrimitive__namespace.Cancel;
|
377
|
+
var AlertDialogAction = AlertDialogPrimitive__namespace.Action;
|
378
|
+
|
379
|
+
var DEFAULT_TAG$5 = "button";
|
380
|
+
var colorVariants = {};
|
381
|
+
var compoundVariants = [];
|
382
|
+
for (var color$1 in naturalPairings) {
|
383
|
+
colorVariants[color$1] = {
|
384
|
+
bc: "$".concat(color$1, "4"),
|
385
|
+
color: "$".concat(color$1, "11"),
|
386
|
+
"&:hover": { bc: "$".concat(color$1, "5") },
|
387
|
+
"&:active": { bc: "$".concat(color$1, "6") },
|
388
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
389
|
+
bc: "$".concat(color$1, "4"),
|
390
|
+
boxShadow: "inset 0 0 0 1px $colors$".concat(color$1, "8"),
|
391
|
+
},
|
392
|
+
};
|
393
|
+
compoundVariants.push({
|
394
|
+
variant: color$1,
|
395
|
+
ghost: "true",
|
396
|
+
css: {
|
397
|
+
bc: "transparent",
|
398
|
+
"&:hover": {
|
399
|
+
bc: "$".concat(color$1, "3"),
|
400
|
+
boxShadow: "none",
|
401
|
+
},
|
402
|
+
"&:active": {
|
403
|
+
bc: "$".concat(color$1, "4"),
|
404
|
+
},
|
405
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
406
|
+
bc: "$".concat(color$1, "4"),
|
407
|
+
boxShadow: "none",
|
408
|
+
},
|
409
|
+
},
|
410
|
+
});
|
411
|
+
}
|
412
|
+
var Button = designSystem.styled(DEFAULT_TAG$5, {
|
413
|
+
// Reset
|
414
|
+
all: "unset",
|
415
|
+
alignItems: "center",
|
416
|
+
boxSizing: "border-box",
|
417
|
+
userSelect: "none",
|
418
|
+
"&::before": {
|
419
|
+
boxSizing: "border-box",
|
420
|
+
},
|
421
|
+
"&::after": {
|
422
|
+
boxSizing: "border-box",
|
423
|
+
},
|
424
|
+
// Custom reset?
|
425
|
+
display: "inline-flex",
|
426
|
+
flexShrink: 0,
|
427
|
+
justifyContent: "center",
|
428
|
+
lineHeight: "1",
|
429
|
+
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
430
|
+
// Custom
|
431
|
+
height: "$5",
|
432
|
+
fontFamily: "$body",
|
433
|
+
fontSize: "$2",
|
434
|
+
fontWeight: 600,
|
435
|
+
fontVariantNumeric: "tabular-nums",
|
436
|
+
ai: "center",
|
437
|
+
cursor: "pointer",
|
438
|
+
px: "$3",
|
439
|
+
bc: "$neutral4",
|
440
|
+
borderRadius: "$2",
|
441
|
+
"&:hover": { bc: "$neutral5" },
|
442
|
+
"&:active": { bc: "$neutral6" },
|
443
|
+
"&:disabled": {
|
444
|
+
bc: "$neutral2",
|
445
|
+
color: "$neutral8",
|
446
|
+
cursor: "not-allowed",
|
447
|
+
},
|
448
|
+
variants: {
|
449
|
+
size: {
|
450
|
+
"1": {
|
451
|
+
borderRadius: "$2",
|
452
|
+
height: "$5",
|
453
|
+
px: "$2",
|
454
|
+
fontSize: "$1",
|
455
|
+
lineHeight: "$sizes$5",
|
456
|
+
},
|
457
|
+
"2": {
|
458
|
+
borderRadius: "$3",
|
459
|
+
height: "$5",
|
460
|
+
px: "$3",
|
461
|
+
py: "$3",
|
462
|
+
fontSize: "$2",
|
463
|
+
lineHeight: "$sizes$6",
|
464
|
+
},
|
465
|
+
"3": {
|
466
|
+
borderRadius: "$3",
|
467
|
+
height: "$6",
|
468
|
+
px: "$3",
|
469
|
+
fontSize: "$3",
|
470
|
+
lineHeight: "$sizes$6",
|
471
|
+
},
|
472
|
+
"4": {
|
473
|
+
borderRadius: "$4",
|
474
|
+
height: "$7",
|
475
|
+
px: "$4",
|
476
|
+
fontSize: "$4",
|
477
|
+
lineHeight: "$sizes$7",
|
478
|
+
},
|
479
|
+
},
|
480
|
+
variant: tslib.__assign(tslib.__assign({ primary: {
|
481
|
+
bc: "$primary4",
|
482
|
+
color: "$primary11",
|
483
|
+
"&:hover": { bc: "$primary5" },
|
484
|
+
"&:active": { bc: "$primary6" },
|
485
|
+
"&:disabled": {
|
486
|
+
bc: "$primary2",
|
487
|
+
color: "$primary8",
|
488
|
+
},
|
489
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
490
|
+
bc: "$primary4",
|
491
|
+
boxShadow: "inset 0 0 0 1px $colors$primary8",
|
492
|
+
},
|
493
|
+
}, neutral: {
|
494
|
+
bc: "$neutral4",
|
495
|
+
color: "$neutral11",
|
496
|
+
"&:hover": { bc: "$neutral5" },
|
497
|
+
"&:active": { bc: "$neutral6" },
|
498
|
+
"&:disabled": {
|
499
|
+
bc: "$neutral4",
|
500
|
+
color: "$neutral8",
|
501
|
+
},
|
502
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
503
|
+
bc: "$neutral4",
|
504
|
+
boxShadow: "inset 0 0 0 1px $colors$primary8",
|
505
|
+
},
|
506
|
+
} }, colorVariants), { transparentWhite: {
|
507
|
+
bc: "hsla(0,100%,100%,.2)",
|
508
|
+
color: "white",
|
509
|
+
"&:hover": {
|
510
|
+
bc: "hsla(0,100%,100%,.25)",
|
511
|
+
},
|
512
|
+
"&:active": {
|
513
|
+
bc: "hsla(0,100%,100%,.3)",
|
514
|
+
},
|
515
|
+
"&:disabled": {
|
516
|
+
bc: "hsla(0,100%,100%,.2)",
|
517
|
+
color: "white",
|
518
|
+
opacity: 0.4,
|
519
|
+
},
|
520
|
+
}, transparentBlack: {
|
521
|
+
bc: "hsla(0,0%,0%,.2)",
|
522
|
+
color: "black",
|
523
|
+
"&:hover": {
|
524
|
+
bc: "hsla(0,0%,0%,.25)",
|
525
|
+
},
|
526
|
+
"&:active": {
|
527
|
+
bc: "hsla(0,0%,0%,.3)",
|
528
|
+
},
|
529
|
+
} }),
|
530
|
+
ghost: {
|
531
|
+
true: {
|
532
|
+
bc: "transparent",
|
533
|
+
boxShadow: "none",
|
534
|
+
},
|
535
|
+
},
|
536
|
+
},
|
537
|
+
compoundVariants: tslib.__spreadArray([
|
538
|
+
{
|
539
|
+
variant: "primary",
|
540
|
+
ghost: "true",
|
541
|
+
css: {
|
542
|
+
bc: "transparent",
|
543
|
+
"&:hover": {
|
544
|
+
bc: "$primary3",
|
545
|
+
boxShadow: "none",
|
546
|
+
},
|
547
|
+
"&:active": {
|
548
|
+
bc: "$primary4",
|
549
|
+
},
|
550
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
551
|
+
bc: "$primary4",
|
552
|
+
boxShadow: "none",
|
553
|
+
},
|
554
|
+
},
|
555
|
+
},
|
556
|
+
{
|
557
|
+
variant: "neutral",
|
558
|
+
ghost: "true",
|
559
|
+
css: {
|
560
|
+
bc: "transparent",
|
561
|
+
color: "$neutral11",
|
562
|
+
"&:hover": {
|
563
|
+
bc: "$neutral3",
|
564
|
+
boxShadow: "none",
|
565
|
+
},
|
566
|
+
"&:active": {
|
567
|
+
bc: "$neutral4",
|
568
|
+
},
|
569
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
570
|
+
bc: "$neutral4",
|
571
|
+
boxShadow: "none",
|
572
|
+
},
|
573
|
+
},
|
574
|
+
}
|
575
|
+
], compoundVariants, true),
|
576
|
+
defaultVariants: {
|
577
|
+
size: "1",
|
578
|
+
variant: "neutral",
|
579
|
+
},
|
580
|
+
});
|
581
|
+
|
582
|
+
var _a$2;
|
583
|
+
var DEFAULT_TAG$4 = "a";
|
584
|
+
var Link = designSystem.styled(DEFAULT_TAG$4, (_a$2 = {
|
585
|
+
alignItems: "center",
|
586
|
+
gap: "$1",
|
587
|
+
flexShrink: 0,
|
588
|
+
outline: "none",
|
589
|
+
textDecorationLine: "none",
|
590
|
+
textUnderlineOffset: "3px",
|
591
|
+
textDecorationColor: "$neutral4",
|
592
|
+
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
593
|
+
lineHeight: "inherit",
|
594
|
+
"@hover": {
|
595
|
+
"&:hover": {
|
596
|
+
textDecorationLine: "underline",
|
597
|
+
},
|
598
|
+
},
|
599
|
+
"&:focus": {
|
600
|
+
outline: "none",
|
601
|
+
textDecorationLine: "none",
|
602
|
+
}
|
603
|
+
},
|
604
|
+
_a$2["& ".concat(designSystem.Text)] = {
|
605
|
+
color: "inherit",
|
606
|
+
},
|
607
|
+
_a$2.variants = {
|
608
|
+
variant: {
|
609
|
+
blue: {
|
610
|
+
color: "$blue11",
|
611
|
+
textDecorationColor: "$blue4",
|
612
|
+
"&:focus": {
|
613
|
+
outlineColor: "$blue8",
|
614
|
+
},
|
615
|
+
},
|
616
|
+
indigo: {
|
617
|
+
color: "$indigo11",
|
618
|
+
textDecorationColor: "$indigo4",
|
619
|
+
"&:focus": {
|
620
|
+
outlineColor: "$indigo8",
|
621
|
+
},
|
622
|
+
},
|
623
|
+
primary: {
|
624
|
+
color: "$primary11",
|
625
|
+
textDecorationColor: "$primary4",
|
626
|
+
"&:focus": {
|
627
|
+
outlineColor: "$primary8",
|
628
|
+
},
|
629
|
+
},
|
630
|
+
subtle: {
|
631
|
+
color: "$neutral11",
|
632
|
+
textDecorationColor: "$neutral4",
|
633
|
+
"&:focus": {
|
634
|
+
outlineColor: "$neutral8",
|
635
|
+
},
|
636
|
+
},
|
637
|
+
contrast: {
|
638
|
+
color: "$hiContrast",
|
639
|
+
textDecoration: "underline",
|
640
|
+
textDecorationColor: "$neutral4",
|
641
|
+
"@hover": {
|
642
|
+
"&:hover": {
|
643
|
+
textDecorationColor: "$neutral7",
|
644
|
+
},
|
645
|
+
},
|
646
|
+
"&:focus": {
|
647
|
+
outlineColor: "$neutral8",
|
648
|
+
},
|
649
|
+
},
|
650
|
+
},
|
651
|
+
},
|
652
|
+
_a$2.defaultVariants = {
|
653
|
+
variant: "contrast",
|
654
|
+
},
|
655
|
+
_a$2));
|
656
|
+
|
657
|
+
var DEFAULT_TAG$3 = designSystem.Box;
|
658
|
+
var Banner = designSystem.styled(DEFAULT_TAG$3, {
|
659
|
+
// Reset
|
660
|
+
boxSizing: "border-box",
|
661
|
+
"&::before": {
|
662
|
+
boxSizing: "border-box",
|
663
|
+
},
|
664
|
+
"&::after": {
|
665
|
+
boxSizing: "border-box",
|
666
|
+
},
|
667
|
+
display: "flex",
|
668
|
+
justifyContent: "center",
|
669
|
+
alignItems: "center",
|
670
|
+
gap: "$3",
|
671
|
+
variants: {
|
672
|
+
size: {
|
673
|
+
"1": {
|
674
|
+
py: "$1",
|
675
|
+
px: "$4",
|
676
|
+
},
|
677
|
+
},
|
678
|
+
variant: {
|
679
|
+
loContrast: {
|
680
|
+
backgroundColor: "$loContrast",
|
681
|
+
},
|
682
|
+
gray: {
|
683
|
+
backgroundColor: "$neutral3",
|
684
|
+
},
|
685
|
+
blue: {
|
686
|
+
backgroundColor: "$blue3",
|
687
|
+
},
|
688
|
+
green: {
|
689
|
+
backgroundColor: "$green3",
|
690
|
+
},
|
691
|
+
indigo: {
|
692
|
+
backgroundColor: "$indigo3",
|
693
|
+
},
|
694
|
+
violet: {
|
695
|
+
backgroundColor: "$violet3",
|
696
|
+
},
|
697
|
+
red: {
|
698
|
+
backgroundColor: "$red3",
|
699
|
+
},
|
700
|
+
},
|
701
|
+
rounded: {
|
702
|
+
true: {
|
703
|
+
borderRadius: "$pill",
|
704
|
+
},
|
705
|
+
},
|
706
|
+
border: {
|
707
|
+
true: {
|
708
|
+
borderRadius: "$pill",
|
709
|
+
},
|
710
|
+
},
|
711
|
+
},
|
712
|
+
compoundVariants: [
|
713
|
+
{
|
714
|
+
border: "true",
|
715
|
+
variant: "gray",
|
716
|
+
css: {
|
717
|
+
borderColor: "$neutral6",
|
718
|
+
},
|
719
|
+
},
|
720
|
+
{
|
721
|
+
border: "true",
|
722
|
+
variant: "blue",
|
723
|
+
css: {
|
724
|
+
borderColor: "$blue9",
|
725
|
+
},
|
726
|
+
},
|
727
|
+
{
|
728
|
+
border: "true",
|
729
|
+
variant: "indigo",
|
730
|
+
css: {
|
731
|
+
borderColor: "$indigo9",
|
732
|
+
},
|
733
|
+
},
|
734
|
+
{
|
735
|
+
border: "true",
|
736
|
+
variant: "violet",
|
737
|
+
css: {
|
738
|
+
borderColor: "$violet9",
|
739
|
+
},
|
740
|
+
},
|
741
|
+
{
|
742
|
+
border: "true",
|
743
|
+
variant: "loContrast",
|
744
|
+
css: {
|
745
|
+
borderColor: "$neutral6",
|
746
|
+
},
|
747
|
+
},
|
748
|
+
],
|
749
|
+
defaultVariants: {
|
750
|
+
size: "1",
|
751
|
+
variant: "gray",
|
752
|
+
},
|
753
|
+
});
|
754
|
+
|
755
|
+
var DEFAULT_TAG$2 = "div";
|
756
|
+
var Promo = designSystem.styled(DEFAULT_TAG$2, {
|
757
|
+
// Reset
|
758
|
+
boxSizing: "border-box",
|
759
|
+
"&::before": {
|
760
|
+
boxSizing: "border-box",
|
761
|
+
},
|
762
|
+
"&::after": {
|
763
|
+
boxSizing: "border-box",
|
764
|
+
},
|
765
|
+
p: "$4",
|
766
|
+
display: "flex",
|
767
|
+
flexDirection: "column",
|
768
|
+
borderRadius: "$4",
|
769
|
+
variants: {
|
770
|
+
size: {
|
771
|
+
"1": {
|
772
|
+
py: "$2",
|
773
|
+
px: "$3",
|
774
|
+
},
|
775
|
+
"2": {
|
776
|
+
py: "$3",
|
777
|
+
px: "$4",
|
778
|
+
},
|
779
|
+
"3": {
|
780
|
+
py: "$4",
|
781
|
+
px: "$5",
|
782
|
+
},
|
783
|
+
},
|
784
|
+
variant: {
|
785
|
+
loContrast: {
|
786
|
+
backgroundColor: "$loContrast",
|
787
|
+
},
|
788
|
+
subtle: {
|
789
|
+
backgroundColor: "$neutral2",
|
790
|
+
boxShadow: "0 0 0 1px $colors$neutral6",
|
791
|
+
},
|
792
|
+
blue: {
|
793
|
+
backgroundColor: "$blue2",
|
794
|
+
boxShadow: "0 0 0 1px $colors$blue6",
|
795
|
+
},
|
796
|
+
green: {
|
797
|
+
backgroundColor: "$green2",
|
798
|
+
boxShadow: "0 0 0 1px $colors$green6",
|
799
|
+
},
|
800
|
+
indigo: {
|
801
|
+
backgroundColor: "$indigo2",
|
802
|
+
boxShadow: "0 0 0 1px $colors$indigo6",
|
803
|
+
},
|
804
|
+
violet: {
|
805
|
+
backgroundColor: "$violet2",
|
806
|
+
boxShadow: "0 0 0 1px $colors$violet6",
|
807
|
+
},
|
808
|
+
red: {
|
809
|
+
backgroundColor: "$red2",
|
810
|
+
boxShadow: "0 0 0 1px $colors$red6",
|
811
|
+
},
|
812
|
+
},
|
813
|
+
rounded: {
|
814
|
+
true: {
|
815
|
+
borderRadius: "$pill",
|
816
|
+
},
|
817
|
+
},
|
818
|
+
border: {
|
819
|
+
true: {
|
820
|
+
borderRadius: "$pill",
|
821
|
+
},
|
822
|
+
},
|
823
|
+
},
|
824
|
+
compoundVariants: [
|
825
|
+
{
|
826
|
+
border: "true",
|
827
|
+
variant: "subtle",
|
828
|
+
css: {
|
829
|
+
borderColor: "$neutral6",
|
830
|
+
},
|
831
|
+
},
|
832
|
+
{
|
833
|
+
border: "true",
|
834
|
+
variant: "blue",
|
835
|
+
css: {
|
836
|
+
borderColor: "$blue11",
|
837
|
+
},
|
838
|
+
},
|
839
|
+
{
|
840
|
+
border: "true",
|
841
|
+
variant: "indigo",
|
842
|
+
css: {
|
843
|
+
borderColor: "$indigo11",
|
844
|
+
},
|
845
|
+
},
|
846
|
+
{
|
847
|
+
border: "true",
|
848
|
+
variant: "violet",
|
849
|
+
css: {
|
850
|
+
borderColor: "$violet11",
|
851
|
+
},
|
852
|
+
},
|
853
|
+
{
|
854
|
+
border: "true",
|
855
|
+
variant: "loContrast",
|
856
|
+
css: {
|
857
|
+
borderColor: "$neutral6",
|
858
|
+
},
|
859
|
+
},
|
860
|
+
],
|
861
|
+
defaultVariants: {
|
862
|
+
size: "1",
|
863
|
+
variant: "subtle",
|
864
|
+
},
|
865
|
+
});
|
866
|
+
|
867
|
+
var Label = designSystem.styled(BaseLabel__namespace.Root, {
|
868
|
+
fontSize: "$2",
|
869
|
+
});
|
870
|
+
|
871
|
+
var DEFAULT_TAG$1 = "span";
|
872
|
+
var Text = designSystem.styled(DEFAULT_TAG$1, {
|
873
|
+
// Reset
|
874
|
+
lineHeight: 1.5,
|
875
|
+
margin: "0",
|
876
|
+
fontWeight: 400,
|
877
|
+
fontVariantNumeric: "tabular-nums",
|
878
|
+
display: "block",
|
879
|
+
variants: {
|
880
|
+
size: {
|
881
|
+
"1": {
|
882
|
+
fontSize: "$1",
|
883
|
+
},
|
884
|
+
"2": {
|
885
|
+
fontSize: "$2",
|
886
|
+
},
|
887
|
+
"3": {
|
888
|
+
fontSize: "$3",
|
889
|
+
},
|
890
|
+
"4": {
|
891
|
+
fontSize: "$4",
|
892
|
+
},
|
893
|
+
"5": {
|
894
|
+
fontSize: "$5",
|
895
|
+
letterSpacing: "-.015em",
|
896
|
+
},
|
897
|
+
"6": {
|
898
|
+
fontSize: "$6",
|
899
|
+
letterSpacing: "-.016em",
|
900
|
+
},
|
901
|
+
"7": {
|
902
|
+
fontSize: "$7",
|
903
|
+
letterSpacing: "-.031em",
|
904
|
+
textIndent: "-.005em",
|
905
|
+
},
|
906
|
+
"8": {
|
907
|
+
fontSize: "$8",
|
908
|
+
letterSpacing: "-.034em",
|
909
|
+
textIndent: "-.018em",
|
910
|
+
},
|
911
|
+
"9": {
|
912
|
+
fontSize: "$9",
|
913
|
+
letterSpacing: "-.055em",
|
914
|
+
textIndent: "-.025em",
|
915
|
+
},
|
916
|
+
},
|
917
|
+
variant: {
|
918
|
+
red: {
|
919
|
+
color: "$red11",
|
920
|
+
},
|
921
|
+
crimson: {
|
922
|
+
color: "$crimson11",
|
923
|
+
},
|
924
|
+
pink: {
|
925
|
+
color: "$pink11",
|
926
|
+
},
|
927
|
+
purple: {
|
928
|
+
color: "$purple11",
|
929
|
+
},
|
930
|
+
violet: {
|
931
|
+
color: "$violet11",
|
932
|
+
},
|
933
|
+
indigo: {
|
934
|
+
color: "$indigo11",
|
935
|
+
},
|
936
|
+
blue: {
|
937
|
+
color: "$blue11",
|
938
|
+
},
|
939
|
+
cyan: {
|
940
|
+
color: "$cyan11",
|
941
|
+
},
|
942
|
+
teal: {
|
943
|
+
color: "$teal11",
|
944
|
+
},
|
945
|
+
green: {
|
946
|
+
color: "$green11",
|
947
|
+
},
|
948
|
+
lime: {
|
949
|
+
color: "$lime11",
|
950
|
+
},
|
951
|
+
yellow: {
|
952
|
+
color: "$yellow11",
|
953
|
+
},
|
954
|
+
orange: {
|
955
|
+
color: "$orange11",
|
956
|
+
},
|
957
|
+
gold: {
|
958
|
+
color: "$gold11",
|
959
|
+
},
|
960
|
+
bronze: {
|
961
|
+
color: "$bronze11",
|
962
|
+
},
|
963
|
+
gray: {
|
964
|
+
color: "$slate11",
|
965
|
+
},
|
966
|
+
primary: {
|
967
|
+
color: "$primary11",
|
968
|
+
},
|
969
|
+
neutral: {
|
970
|
+
color: "$neutral11",
|
971
|
+
},
|
972
|
+
contrast: {
|
973
|
+
color: "$hiContrast",
|
974
|
+
},
|
975
|
+
},
|
976
|
+
gradient: {
|
977
|
+
true: {
|
978
|
+
WebkitBackgroundClip: "text",
|
979
|
+
WebkitTextFillColor: "transparent",
|
980
|
+
},
|
981
|
+
},
|
982
|
+
},
|
983
|
+
compoundVariants: [
|
984
|
+
{
|
985
|
+
variant: "red",
|
986
|
+
gradient: "true",
|
987
|
+
css: {
|
988
|
+
background: "linear-gradient(to right, $red11, $crimson11)",
|
989
|
+
},
|
990
|
+
},
|
991
|
+
{
|
992
|
+
variant: "crimson",
|
993
|
+
gradient: "true",
|
994
|
+
css: {
|
995
|
+
background: "linear-gradient(to right, $crimson11, $pink11)",
|
996
|
+
},
|
997
|
+
},
|
998
|
+
{
|
999
|
+
variant: "pink",
|
1000
|
+
gradient: "true",
|
1001
|
+
css: {
|
1002
|
+
background: "linear-gradient(to right, $pink11, $purple11)",
|
1003
|
+
},
|
1004
|
+
},
|
1005
|
+
{
|
1006
|
+
variant: "purple",
|
1007
|
+
gradient: "true",
|
1008
|
+
css: {
|
1009
|
+
background: "linear-gradient(to right, $purple11, $violet11)",
|
1010
|
+
},
|
1011
|
+
},
|
1012
|
+
{
|
1013
|
+
variant: "violet",
|
1014
|
+
gradient: "true",
|
1015
|
+
css: {
|
1016
|
+
background: "linear-gradient(to right, $violet11, $indigo11)",
|
1017
|
+
},
|
1018
|
+
},
|
1019
|
+
{
|
1020
|
+
variant: "indigo",
|
1021
|
+
gradient: "true",
|
1022
|
+
css: {
|
1023
|
+
background: "linear-gradient(to right, $indigo11, $blue11)",
|
1024
|
+
},
|
1025
|
+
},
|
1026
|
+
{
|
1027
|
+
variant: "blue",
|
1028
|
+
gradient: "true",
|
1029
|
+
css: {
|
1030
|
+
background: "linear-gradient(to right, $blue11, $cyan11)",
|
1031
|
+
},
|
1032
|
+
},
|
1033
|
+
{
|
1034
|
+
variant: "cyan",
|
1035
|
+
gradient: "true",
|
1036
|
+
css: {
|
1037
|
+
background: "linear-gradient(to right, $cyan11, $teal11)",
|
1038
|
+
},
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
variant: "teal",
|
1042
|
+
gradient: "true",
|
1043
|
+
css: {
|
1044
|
+
background: "linear-gradient(to right, $teal11, $green11)",
|
1045
|
+
},
|
1046
|
+
},
|
1047
|
+
{
|
1048
|
+
variant: "green",
|
1049
|
+
gradient: "true",
|
1050
|
+
css: {
|
1051
|
+
background: "linear-gradient(to right, $green11, $lime11)",
|
1052
|
+
},
|
1053
|
+
},
|
1054
|
+
{
|
1055
|
+
variant: "lime",
|
1056
|
+
gradient: "true",
|
1057
|
+
css: {
|
1058
|
+
background: "linear-gradient(to right, $lime11, $yellow11)",
|
1059
|
+
},
|
1060
|
+
},
|
1061
|
+
{
|
1062
|
+
variant: "yellow",
|
1063
|
+
gradient: "true",
|
1064
|
+
css: {
|
1065
|
+
background: "linear-gradient(to right, $yellow11, $orange11)",
|
1066
|
+
},
|
1067
|
+
},
|
1068
|
+
{
|
1069
|
+
variant: "orange",
|
1070
|
+
gradient: "true",
|
1071
|
+
css: {
|
1072
|
+
background: "linear-gradient(to right, $orange11, $red11)",
|
1073
|
+
},
|
1074
|
+
},
|
1075
|
+
{
|
1076
|
+
variant: "gold",
|
1077
|
+
gradient: "true",
|
1078
|
+
css: {
|
1079
|
+
background: "linear-gradient(to right, $gold11, $gold9)",
|
1080
|
+
},
|
1081
|
+
},
|
1082
|
+
{
|
1083
|
+
variant: "bronze",
|
1084
|
+
gradient: "true",
|
1085
|
+
css: {
|
1086
|
+
background: "linear-gradient(to right, $bronze11, $bronze9)",
|
1087
|
+
},
|
1088
|
+
},
|
1089
|
+
{
|
1090
|
+
variant: "gray",
|
1091
|
+
gradient: "true",
|
1092
|
+
css: {
|
1093
|
+
background: "linear-gradient(to right, $gray11, $gray12)",
|
1094
|
+
},
|
1095
|
+
},
|
1096
|
+
{
|
1097
|
+
variant: "contrast",
|
1098
|
+
gradient: "true",
|
1099
|
+
css: {
|
1100
|
+
background: "linear-gradient(to right, $hiContrast, $gray12)",
|
1101
|
+
},
|
1102
|
+
},
|
1103
|
+
],
|
1104
|
+
defaultVariants: {
|
1105
|
+
size: "3",
|
1106
|
+
variant: "contrast",
|
1107
|
+
},
|
1108
|
+
});
|
1109
|
+
|
1110
|
+
var DEFAULT_TAG = "input";
|
1111
|
+
var StyledTextField = designSystem.styled(DEFAULT_TAG, {
|
1112
|
+
// Reset
|
1113
|
+
appearance: "none",
|
1114
|
+
borderWidth: "0",
|
1115
|
+
boxSizing: "border-box",
|
1116
|
+
fontFamily: "inherit",
|
1117
|
+
margin: "0",
|
1118
|
+
outline: "none",
|
1119
|
+
padding: "0",
|
1120
|
+
width: "100%",
|
1121
|
+
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
1122
|
+
lineHeight: "1",
|
1123
|
+
"&::before": {
|
1124
|
+
boxSizing: "border-box",
|
1125
|
+
},
|
1126
|
+
"&::after": {
|
1127
|
+
boxSizing: "border-box",
|
1128
|
+
},
|
1129
|
+
// Custom
|
1130
|
+
backgroundColor: "$loContrast",
|
1131
|
+
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
1132
|
+
color: "$hiContrast",
|
1133
|
+
fontVariantNumeric: "tabular-nums",
|
1134
|
+
"&:-webkit-autofill": {
|
1135
|
+
boxShadow: "inset 0 0 0 1px $colors$primary6, inset 0 0 0 100px $colors$primary3",
|
1136
|
+
},
|
1137
|
+
"&:-webkit-autofill::first-line": {
|
1138
|
+
fontFamily: "$body",
|
1139
|
+
color: "$hiContrast",
|
1140
|
+
},
|
1141
|
+
"&:focus": {
|
1142
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8",
|
1143
|
+
"&:-webkit-autofill": {
|
1144
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8, inset 0 0 0 100px $colors$primary3",
|
1145
|
+
},
|
1146
|
+
},
|
1147
|
+
"&::placeholder": {
|
1148
|
+
color: "$neutral9",
|
1149
|
+
},
|
1150
|
+
"&:disabled": {
|
1151
|
+
pointerEvents: "none",
|
1152
|
+
backgroundColor: "$neutral2",
|
1153
|
+
color: "$neutral8",
|
1154
|
+
cursor: "not-allowed",
|
1155
|
+
"&::placeholder": {
|
1156
|
+
color: "$neutral7",
|
1157
|
+
},
|
1158
|
+
},
|
1159
|
+
"&:read-only": {
|
1160
|
+
backgroundColor: "$neutral2",
|
1161
|
+
"&:focus": {
|
1162
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$neutral7",
|
1163
|
+
},
|
1164
|
+
},
|
1165
|
+
variants: {
|
1166
|
+
size: {
|
1167
|
+
"1": {
|
1168
|
+
borderRadius: "$1",
|
1169
|
+
height: "$5",
|
1170
|
+
fontSize: "$1",
|
1171
|
+
px: "$1",
|
1172
|
+
"&:-webkit-autofill::first-line": {
|
1173
|
+
fontSize: "$1",
|
1174
|
+
},
|
1175
|
+
},
|
1176
|
+
"2": {
|
1177
|
+
borderRadius: "$2",
|
1178
|
+
height: "$6",
|
1179
|
+
fontSize: "$3",
|
1180
|
+
px: "$2",
|
1181
|
+
"&:-webkit-autofill::first-line": {
|
1182
|
+
fontSize: "$3",
|
1183
|
+
},
|
1184
|
+
},
|
1185
|
+
"3": {
|
1186
|
+
borderRadius: "$2",
|
1187
|
+
height: "$7",
|
1188
|
+
fontSize: "$3",
|
1189
|
+
px: "$2",
|
1190
|
+
"&:-webkit-autofill::first-line": {
|
1191
|
+
fontSize: "$3",
|
1192
|
+
},
|
1193
|
+
},
|
1194
|
+
},
|
1195
|
+
variant: {
|
1196
|
+
ghost: {
|
1197
|
+
boxShadow: "none",
|
1198
|
+
backgroundColor: "transparent",
|
1199
|
+
"@hover": {
|
1200
|
+
"&:hover": {
|
1201
|
+
boxShadow: "inset 0 0 0 1px $colors$neutralA7",
|
1202
|
+
},
|
1203
|
+
},
|
1204
|
+
"&:focus": {
|
1205
|
+
backgroundColor: "$loContrast",
|
1206
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8",
|
1207
|
+
},
|
1208
|
+
"&:disabled": {
|
1209
|
+
backgroundColor: "transparent",
|
1210
|
+
},
|
1211
|
+
"&:read-only": {
|
1212
|
+
backgroundColor: "transparent",
|
1213
|
+
},
|
1214
|
+
},
|
1215
|
+
white: {
|
1216
|
+
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
1217
|
+
backgroundColor: "white",
|
1218
|
+
"@hover": {
|
1219
|
+
"&:hover": {
|
1220
|
+
boxShadow: "inset 0 0 0 1px $colors$neutralA7",
|
1221
|
+
},
|
1222
|
+
},
|
1223
|
+
"&:focus": {
|
1224
|
+
backgroundColor: "white",
|
1225
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$primary8, 0px 0px 0px 1px $colors$primary8",
|
1226
|
+
},
|
1227
|
+
"&::placeholder": {
|
1228
|
+
color: "$neutral9",
|
1229
|
+
},
|
1230
|
+
"&:disabled": {
|
1231
|
+
pointerEvents: "none",
|
1232
|
+
backgroundColor: "$neutral2",
|
1233
|
+
color: "$neutral8",
|
1234
|
+
cursor: "not-allowed",
|
1235
|
+
"&::placeholder": {
|
1236
|
+
color: "$neutral7",
|
1237
|
+
},
|
1238
|
+
},
|
1239
|
+
"&:read-only": {
|
1240
|
+
backgroundColor: "$neutral2",
|
1241
|
+
"&:focus": {
|
1242
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$neutral7",
|
1243
|
+
},
|
1244
|
+
},
|
1245
|
+
},
|
1246
|
+
},
|
1247
|
+
state: {
|
1248
|
+
invalid: {
|
1249
|
+
boxShadow: "inset 0 0 0 1px $colors$red7",
|
1250
|
+
"&:focus": {
|
1251
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$red8, 0px 0px 0px 1px $colors$red8",
|
1252
|
+
},
|
1253
|
+
},
|
1254
|
+
valid: {
|
1255
|
+
boxShadow: "inset 0 0 0 1px $colors$green7",
|
1256
|
+
"&:focus": {
|
1257
|
+
boxShadow: "inset 0px 0px 0px 1px $colors$green8, 0px 0px 0px 1px $colors$green8",
|
1258
|
+
},
|
1259
|
+
},
|
1260
|
+
},
|
1261
|
+
cursor: {
|
1262
|
+
default: {
|
1263
|
+
cursor: "default",
|
1264
|
+
"&:focus": {
|
1265
|
+
cursor: "text",
|
1266
|
+
},
|
1267
|
+
},
|
1268
|
+
text: {
|
1269
|
+
cursor: "text",
|
1270
|
+
},
|
1271
|
+
},
|
1272
|
+
},
|
1273
|
+
defaultVariants: {
|
1274
|
+
size: "1",
|
1275
|
+
},
|
1276
|
+
});
|
1277
|
+
var TextField = StyledTextField;
|
1278
|
+
|
1279
|
+
var Select = designSystem.styled(designSystem.Select, {
|
1280
|
+
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
1281
|
+
});
|
1282
|
+
|
1283
|
+
var Card = designSystem.styled("div", {
|
1284
|
+
appearance: "none",
|
1285
|
+
border: "none",
|
1286
|
+
boxSizing: "border-box",
|
1287
|
+
font: "inherit",
|
1288
|
+
lineHeight: "1",
|
1289
|
+
outline: "none",
|
1290
|
+
padding: 0,
|
1291
|
+
textAlign: "inherit",
|
1292
|
+
verticalAlign: "middle",
|
1293
|
+
WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
|
1294
|
+
backgroundColor: "$panel",
|
1295
|
+
display: "block",
|
1296
|
+
textDecoration: "none",
|
1297
|
+
color: "inherit",
|
1298
|
+
flexShrink: 0,
|
1299
|
+
borderRadius: "$3",
|
1300
|
+
position: "relative",
|
1301
|
+
"&::before": {
|
1302
|
+
boxSizing: "border-box",
|
1303
|
+
content: '""',
|
1304
|
+
position: "absolute",
|
1305
|
+
top: 0,
|
1306
|
+
right: 0,
|
1307
|
+
bottom: 0,
|
1308
|
+
left: 0,
|
1309
|
+
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.1)",
|
1310
|
+
borderRadius: "$3",
|
1311
|
+
pointerEvents: "none",
|
1312
|
+
},
|
1313
|
+
variants: {
|
1314
|
+
variant: {
|
1315
|
+
interactive: {
|
1316
|
+
"@hover": {
|
1317
|
+
"&:hover": {
|
1318
|
+
"&::before": {
|
1319
|
+
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.2)",
|
1320
|
+
},
|
1321
|
+
},
|
1322
|
+
},
|
1323
|
+
"&:focus": {
|
1324
|
+
"&::before": {
|
1325
|
+
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
1326
|
+
},
|
1327
|
+
},
|
1328
|
+
},
|
1329
|
+
ghost: {
|
1330
|
+
backgroundColor: "transparent",
|
1331
|
+
transition: "transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 25ms linear",
|
1332
|
+
willChange: "transform",
|
1333
|
+
"&::before": {
|
1334
|
+
boxShadow: "0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)",
|
1335
|
+
opacity: "0",
|
1336
|
+
transition: "all 200ms cubic-bezier(0.22, 1, 0.36, 1)",
|
1337
|
+
},
|
1338
|
+
"@hover": {
|
1339
|
+
"&:hover": {
|
1340
|
+
backgroundColor: "$panel",
|
1341
|
+
transform: "translateY(-2px)",
|
1342
|
+
"&::before": {
|
1343
|
+
opacity: "1",
|
1344
|
+
},
|
1345
|
+
},
|
1346
|
+
},
|
1347
|
+
"&:active": {
|
1348
|
+
transform: "translateY(0)",
|
1349
|
+
transition: "none",
|
1350
|
+
"&::before": {
|
1351
|
+
boxShadow: "0px 5px 16px -5px rgba(22, 23, 24, 0.35), 0px 5px 10px -7px rgba(22, 23, 24, 0.2)",
|
1352
|
+
opacity: "1",
|
1353
|
+
},
|
1354
|
+
},
|
1355
|
+
"&:focus": {
|
1356
|
+
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
1357
|
+
},
|
1358
|
+
},
|
1359
|
+
active: {
|
1360
|
+
transform: "translateY(0)",
|
1361
|
+
transition: "none",
|
1362
|
+
"&::before": {
|
1363
|
+
boxShadow: "0px 5px 16px -5px rgba(22, 23, 24, 0.35), 0px 5px 10px -7px rgba(22, 23, 24, 0.2)",
|
1364
|
+
opacity: "1",
|
1365
|
+
},
|
1366
|
+
"&:focus": {
|
1367
|
+
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
1368
|
+
},
|
1369
|
+
},
|
1370
|
+
},
|
1371
|
+
},
|
1372
|
+
});
|
1373
|
+
|
1374
|
+
var Badge = designSystem.styled("span", {
|
1375
|
+
// Reset
|
1376
|
+
alignItems: "center",
|
1377
|
+
appearance: "none",
|
1378
|
+
borderWidth: "0",
|
1379
|
+
boxSizing: "border-box",
|
1380
|
+
display: "inline-flex",
|
1381
|
+
flexShrink: 0,
|
1382
|
+
fontFamily: "inherit",
|
1383
|
+
justifyContent: "center",
|
1384
|
+
lineHeight: "1",
|
1385
|
+
verticalAlign: "middle",
|
1386
|
+
outline: "none",
|
1387
|
+
padding: "0",
|
1388
|
+
textDecoration: "none",
|
1389
|
+
userSelect: "none",
|
1390
|
+
WebkitTapHighlightColor: "rgba(0,0,0,0)",
|
1391
|
+
"&:disabled": {
|
1392
|
+
backgroundColor: "$slate3",
|
1393
|
+
pointerEvents: "none",
|
1394
|
+
color: "$slate8",
|
1395
|
+
},
|
1396
|
+
"&::before": {
|
1397
|
+
boxSizing: "border-box",
|
1398
|
+
content: '""',
|
1399
|
+
},
|
1400
|
+
"&::after": {
|
1401
|
+
boxSizing: "border-box",
|
1402
|
+
content: '""',
|
1403
|
+
},
|
1404
|
+
// Custom
|
1405
|
+
backgroundColor: "$slate3",
|
1406
|
+
borderRadius: "$pill",
|
1407
|
+
color: "$slate11",
|
1408
|
+
whiteSpace: "nowrap",
|
1409
|
+
fontVariantNumeric: "tabular-nums",
|
1410
|
+
variants: {
|
1411
|
+
size: {
|
1412
|
+
"1": {
|
1413
|
+
height: "$4",
|
1414
|
+
px: "$1",
|
1415
|
+
fontSize: "$1",
|
1416
|
+
},
|
1417
|
+
"2": {
|
1418
|
+
height: "$5",
|
1419
|
+
px: "$2",
|
1420
|
+
fontSize: "$2",
|
1421
|
+
},
|
1422
|
+
},
|
1423
|
+
variant: {
|
1424
|
+
neutral: {
|
1425
|
+
backgroundColor: "$neutral3",
|
1426
|
+
color: "$neutral11",
|
1427
|
+
"&:focus": {
|
1428
|
+
boxShadow: "inset 0 0 0 1px $colors$neutral8, 0 0 0 1px $colors$neutral8",
|
1429
|
+
},
|
1430
|
+
},
|
1431
|
+
primary: {
|
1432
|
+
backgroundColor: "$primary3",
|
1433
|
+
color: "$primary11",
|
1434
|
+
"&:focus": {
|
1435
|
+
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8",
|
1436
|
+
},
|
1437
|
+
},
|
1438
|
+
gray: {
|
1439
|
+
backgroundColor: "$slate3",
|
1440
|
+
color: "$slate11",
|
1441
|
+
"&:focus": {
|
1442
|
+
boxShadow: "inset 0 0 0 1px $colors$slate8, 0 0 0 1px $colors$slate8",
|
1443
|
+
},
|
1444
|
+
},
|
1445
|
+
red: {
|
1446
|
+
backgroundColor: "$red3",
|
1447
|
+
color: "$red11",
|
1448
|
+
"&:focus": {
|
1449
|
+
boxShadow: "inset 0 0 0 1px $colors$red8, 0 0 0 1px $colors$red8",
|
1450
|
+
},
|
1451
|
+
},
|
1452
|
+
crimson: {
|
1453
|
+
backgroundColor: "$crimson3",
|
1454
|
+
color: "$crimson11",
|
1455
|
+
"&:focus": {
|
1456
|
+
boxShadow: "inset 0 0 0 1px $colors$crimson8, 0 0 0 1px $colors$crimson8",
|
1457
|
+
},
|
1458
|
+
},
|
1459
|
+
pink: {
|
1460
|
+
backgroundColor: "$pink3",
|
1461
|
+
color: "$pink11",
|
1462
|
+
"&:focus": {
|
1463
|
+
boxShadow: "inset 0 0 0 1px $colors$pink8, 0 0 0 1px $colors$pink8",
|
1464
|
+
},
|
1465
|
+
},
|
1466
|
+
purple: {
|
1467
|
+
backgroundColor: "$purple3",
|
1468
|
+
color: "$purple11",
|
1469
|
+
"&:focus": {
|
1470
|
+
boxShadow: "inset 0 0 0 1px $colors$purple8, 0 0 0 1px $colors$purple8",
|
1471
|
+
},
|
1472
|
+
},
|
1473
|
+
violet: {
|
1474
|
+
backgroundColor: "$violet3",
|
1475
|
+
color: "$violet11",
|
1476
|
+
"&:focus": {
|
1477
|
+
boxShadow: "inset 0 0 0 1px $colors$violet8, 0 0 0 1px $colors$violet8",
|
1478
|
+
},
|
1479
|
+
},
|
1480
|
+
indigo: {
|
1481
|
+
backgroundColor: "$indigo3",
|
1482
|
+
color: "$indigo11",
|
1483
|
+
"&:focus": {
|
1484
|
+
boxShadow: "inset 0 0 0 1px $colors$indigo8, 0 0 0 1px $colors$indigo8",
|
1485
|
+
},
|
1486
|
+
},
|
1487
|
+
blue: {
|
1488
|
+
backgroundColor: "$blue3",
|
1489
|
+
color: "$blue11",
|
1490
|
+
"&:focus": {
|
1491
|
+
boxShadow: "inset 0 0 0 1px $colors$blue8, 0 0 0 1px $colors$blue8",
|
1492
|
+
},
|
1493
|
+
},
|
1494
|
+
cyan: {
|
1495
|
+
backgroundColor: "$cyan3",
|
1496
|
+
color: "$cyan11",
|
1497
|
+
"&:focus": {
|
1498
|
+
boxShadow: "inset 0 0 0 1px $colors$cyan8, 0 0 0 1px $colors$cyan8",
|
1499
|
+
},
|
1500
|
+
},
|
1501
|
+
teal: {
|
1502
|
+
backgroundColor: "$teal3",
|
1503
|
+
color: "$teal11",
|
1504
|
+
"&:focus": {
|
1505
|
+
boxShadow: "inset 0 0 0 1px $colors$teal8, 0 0 0 1px $colors$teal8",
|
1506
|
+
},
|
1507
|
+
},
|
1508
|
+
green: {
|
1509
|
+
backgroundColor: "$green3",
|
1510
|
+
color: "$green11",
|
1511
|
+
"&:focus": {
|
1512
|
+
boxShadow: "inset 0 0 0 1px $colors$green8, 0 0 0 1px $colors$green8",
|
1513
|
+
},
|
1514
|
+
},
|
1515
|
+
lime: {
|
1516
|
+
backgroundColor: "$lime3",
|
1517
|
+
color: "$lime11",
|
1518
|
+
"&:focus": {
|
1519
|
+
boxShadow: "inset 0 0 0 1px $colors$lime8, 0 0 0 1px $colors$lime8",
|
1520
|
+
},
|
1521
|
+
},
|
1522
|
+
yellow: {
|
1523
|
+
backgroundColor: "$yellow3",
|
1524
|
+
color: "$yellow11",
|
1525
|
+
"&:focus": {
|
1526
|
+
boxShadow: "inset 0 0 0 1px $colors$yellow8, 0 0 0 1px $colors$yellow8",
|
1527
|
+
},
|
1528
|
+
},
|
1529
|
+
orange: {
|
1530
|
+
backgroundColor: "$orange3",
|
1531
|
+
color: "$orange11",
|
1532
|
+
"&:focus": {
|
1533
|
+
boxShadow: "inset 0 0 0 1px $colors$orange8, 0 0 0 1px $colors$orange8",
|
1534
|
+
},
|
1535
|
+
},
|
1536
|
+
gold: {
|
1537
|
+
backgroundColor: "$gold3",
|
1538
|
+
color: "$gold11",
|
1539
|
+
"&:focus": {
|
1540
|
+
boxShadow: "inset 0 0 0 1px $colors$gold8, 0 0 0 1px $colors$gold8",
|
1541
|
+
},
|
1542
|
+
},
|
1543
|
+
bronze: {
|
1544
|
+
backgroundColor: "$bronze3",
|
1545
|
+
color: "$bronze11",
|
1546
|
+
"&:focus": {
|
1547
|
+
boxShadow: "inset 0 0 0 1px $colors$bronze8, 0 0 0 1px $colors$bronze8",
|
1548
|
+
},
|
1549
|
+
},
|
1550
|
+
},
|
1551
|
+
interactive: {
|
1552
|
+
true: {},
|
1553
|
+
},
|
1554
|
+
},
|
1555
|
+
compoundVariants: [
|
1556
|
+
{
|
1557
|
+
interactive: true,
|
1558
|
+
variant: "red",
|
1559
|
+
css: {
|
1560
|
+
"@hover": {
|
1561
|
+
"&:hover": {
|
1562
|
+
backgroundColor: "$red4",
|
1563
|
+
},
|
1564
|
+
},
|
1565
|
+
"&:active": {
|
1566
|
+
backgroundColor: "$red5",
|
1567
|
+
},
|
1568
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1569
|
+
backgroundColor: "$red5",
|
1570
|
+
},
|
1571
|
+
},
|
1572
|
+
},
|
1573
|
+
{
|
1574
|
+
interactive: true,
|
1575
|
+
variant: "crimson",
|
1576
|
+
css: {
|
1577
|
+
"@hover": {
|
1578
|
+
"&:hover": {
|
1579
|
+
backgroundColor: "$crimson4",
|
1580
|
+
},
|
1581
|
+
},
|
1582
|
+
"&:active": {
|
1583
|
+
backgroundColor: "$crimson5",
|
1584
|
+
},
|
1585
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1586
|
+
backgroundColor: "$crimson5",
|
1587
|
+
},
|
1588
|
+
},
|
1589
|
+
},
|
1590
|
+
{
|
1591
|
+
interactive: true,
|
1592
|
+
variant: "pink",
|
1593
|
+
css: {
|
1594
|
+
"@hover": {
|
1595
|
+
"&:hover": {
|
1596
|
+
backgroundColor: "$pink4",
|
1597
|
+
},
|
1598
|
+
},
|
1599
|
+
"&:active": {
|
1600
|
+
backgroundColor: "$pink5",
|
1601
|
+
},
|
1602
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1603
|
+
backgroundColor: "$pink5",
|
1604
|
+
},
|
1605
|
+
},
|
1606
|
+
},
|
1607
|
+
{
|
1608
|
+
interactive: true,
|
1609
|
+
variant: "purple",
|
1610
|
+
css: {
|
1611
|
+
"@hover": {
|
1612
|
+
"&:hover": {
|
1613
|
+
backgroundColor: "$purple4",
|
1614
|
+
},
|
1615
|
+
},
|
1616
|
+
"&:active": {
|
1617
|
+
backgroundColor: "$purple5",
|
1618
|
+
},
|
1619
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1620
|
+
backgroundColor: "$purple5",
|
1621
|
+
},
|
1622
|
+
},
|
1623
|
+
},
|
1624
|
+
{
|
1625
|
+
interactive: true,
|
1626
|
+
variant: "violet",
|
1627
|
+
css: {
|
1628
|
+
"@hover": {
|
1629
|
+
"&:hover": {
|
1630
|
+
backgroundColor: "$violet4",
|
1631
|
+
},
|
1632
|
+
},
|
1633
|
+
"&:active": {
|
1634
|
+
backgroundColor: "$violet5",
|
1635
|
+
},
|
1636
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1637
|
+
backgroundColor: "$violet5",
|
1638
|
+
},
|
1639
|
+
},
|
1640
|
+
},
|
1641
|
+
{
|
1642
|
+
interactive: true,
|
1643
|
+
variant: "indigo",
|
1644
|
+
css: {
|
1645
|
+
"@hover": {
|
1646
|
+
"&:hover": {
|
1647
|
+
backgroundColor: "$indigo4",
|
1648
|
+
},
|
1649
|
+
},
|
1650
|
+
"&:active": {
|
1651
|
+
backgroundColor: "$indigo5",
|
1652
|
+
},
|
1653
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1654
|
+
backgroundColor: "$indigo5",
|
1655
|
+
},
|
1656
|
+
},
|
1657
|
+
},
|
1658
|
+
{
|
1659
|
+
interactive: true,
|
1660
|
+
variant: "blue",
|
1661
|
+
css: {
|
1662
|
+
"@hover": {
|
1663
|
+
"&:hover": {
|
1664
|
+
backgroundColor: "$blue4",
|
1665
|
+
},
|
1666
|
+
},
|
1667
|
+
"&:active": {
|
1668
|
+
backgroundColor: "$blue5",
|
1669
|
+
},
|
1670
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1671
|
+
backgroundColor: "$blue5",
|
1672
|
+
},
|
1673
|
+
},
|
1674
|
+
},
|
1675
|
+
{
|
1676
|
+
interactive: true,
|
1677
|
+
variant: "cyan",
|
1678
|
+
css: {
|
1679
|
+
"@hover": {
|
1680
|
+
"&:hover": {
|
1681
|
+
backgroundColor: "$cyan4",
|
1682
|
+
},
|
1683
|
+
},
|
1684
|
+
"&:active": {
|
1685
|
+
backgroundColor: "$cyan5",
|
1686
|
+
},
|
1687
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1688
|
+
backgroundColor: "$cyan5",
|
1689
|
+
},
|
1690
|
+
},
|
1691
|
+
},
|
1692
|
+
{
|
1693
|
+
interactive: true,
|
1694
|
+
variant: "teal",
|
1695
|
+
css: {
|
1696
|
+
"@hover": {
|
1697
|
+
"&:hover": {
|
1698
|
+
backgroundColor: "$teal4",
|
1699
|
+
},
|
1700
|
+
},
|
1701
|
+
"&:active": {
|
1702
|
+
backgroundColor: "$teal5",
|
1703
|
+
},
|
1704
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1705
|
+
backgroundColor: "$teal5",
|
1706
|
+
},
|
1707
|
+
},
|
1708
|
+
},
|
1709
|
+
{
|
1710
|
+
interactive: true,
|
1711
|
+
variant: "green",
|
1712
|
+
css: {
|
1713
|
+
"@hover": {
|
1714
|
+
"&:hover": {
|
1715
|
+
backgroundColor: "$green4",
|
1716
|
+
},
|
1717
|
+
},
|
1718
|
+
"&:active": {
|
1719
|
+
backgroundColor: "$green5",
|
1720
|
+
},
|
1721
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1722
|
+
backgroundColor: "$green5",
|
1723
|
+
},
|
1724
|
+
},
|
1725
|
+
},
|
1726
|
+
{
|
1727
|
+
interactive: true,
|
1728
|
+
variant: "lime",
|
1729
|
+
css: {
|
1730
|
+
"@hover": {
|
1731
|
+
"&:hover": {
|
1732
|
+
backgroundColor: "$lime4",
|
1733
|
+
},
|
1734
|
+
},
|
1735
|
+
"&:active": {
|
1736
|
+
backgroundColor: "$lime5",
|
1737
|
+
},
|
1738
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1739
|
+
backgroundColor: "$lime5",
|
1740
|
+
},
|
1741
|
+
},
|
1742
|
+
},
|
1743
|
+
{
|
1744
|
+
interactive: true,
|
1745
|
+
variant: "yellow",
|
1746
|
+
css: {
|
1747
|
+
"@hover": {
|
1748
|
+
"&:hover": {
|
1749
|
+
backgroundColor: "$yellow4",
|
1750
|
+
},
|
1751
|
+
},
|
1752
|
+
"&:active": {
|
1753
|
+
backgroundColor: "$yellow5",
|
1754
|
+
},
|
1755
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1756
|
+
backgroundColor: "$yellow5",
|
1757
|
+
},
|
1758
|
+
},
|
1759
|
+
},
|
1760
|
+
{
|
1761
|
+
interactive: true,
|
1762
|
+
variant: "orange",
|
1763
|
+
css: {
|
1764
|
+
"@hover": {
|
1765
|
+
"&:hover": {
|
1766
|
+
backgroundColor: "$orange4",
|
1767
|
+
},
|
1768
|
+
},
|
1769
|
+
"&:active": {
|
1770
|
+
backgroundColor: "$orange5",
|
1771
|
+
},
|
1772
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1773
|
+
backgroundColor: "$orange5",
|
1774
|
+
},
|
1775
|
+
},
|
1776
|
+
},
|
1777
|
+
{
|
1778
|
+
interactive: true,
|
1779
|
+
variant: "gold",
|
1780
|
+
css: {
|
1781
|
+
"@hover": {
|
1782
|
+
"&:hover": {
|
1783
|
+
backgroundColor: "$gold4",
|
1784
|
+
},
|
1785
|
+
},
|
1786
|
+
"&:active": {
|
1787
|
+
backgroundColor: "$gold5",
|
1788
|
+
},
|
1789
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1790
|
+
backgroundColor: "$gold5",
|
1791
|
+
},
|
1792
|
+
},
|
1793
|
+
},
|
1794
|
+
{
|
1795
|
+
interactive: true,
|
1796
|
+
variant: "bronze",
|
1797
|
+
css: {
|
1798
|
+
"@hover": {
|
1799
|
+
"&:hover": {
|
1800
|
+
backgroundColor: "$bronze4",
|
1801
|
+
},
|
1802
|
+
},
|
1803
|
+
"&:active": {
|
1804
|
+
backgroundColor: "$bronze5",
|
1805
|
+
},
|
1806
|
+
'&[data-radix-popover-trigger][data-state="open"], &[data-radix-dropdown-menu-trigger][data-state="open"]': {
|
1807
|
+
backgroundColor: "$bronze5",
|
1808
|
+
},
|
1809
|
+
},
|
1810
|
+
},
|
1811
|
+
],
|
1812
|
+
defaultVariants: {
|
1813
|
+
size: "1",
|
1814
|
+
variant: "neutral",
|
1815
|
+
},
|
1816
|
+
});
|
1817
|
+
|
1818
|
+
var colorVairants = {};
|
1819
|
+
for (var color in naturalPairings) {
|
1820
|
+
colorVairants[color] = {
|
1821
|
+
"&:focus": {
|
1822
|
+
outline: "none",
|
1823
|
+
backgroundColor: "$".concat(color, "4"),
|
1824
|
+
color: "$hiContrast",
|
1825
|
+
},
|
1826
|
+
};
|
1827
|
+
}
|
1828
|
+
var DropdownMenuItem = designSystem.styled(designSystem.DropdownMenuItem, {
|
1829
|
+
variants: {
|
1830
|
+
color: tslib.__assign({ primary: {
|
1831
|
+
"&:focus": {
|
1832
|
+
outline: "none",
|
1833
|
+
backgroundColor: "$primary4",
|
1834
|
+
color: "$hiContrast",
|
1835
|
+
},
|
1836
|
+
} }, colorVairants),
|
1837
|
+
},
|
1838
|
+
defaultVariants: {
|
1839
|
+
color: "primary",
|
1840
|
+
},
|
1841
|
+
});
|
1842
|
+
var DropdownMenuRadioItem = designSystem.styled(designSystem.DropdownMenuRadioItem, {
|
1843
|
+
variants: {
|
1844
|
+
color: tslib.__assign({ primary: {
|
1845
|
+
"&:focus": {
|
1846
|
+
outline: "none",
|
1847
|
+
backgroundColor: "$primary4",
|
1848
|
+
color: "$hiContrast",
|
1849
|
+
},
|
1850
|
+
} }, colorVairants),
|
1851
|
+
},
|
1852
|
+
defaultVariants: {
|
1853
|
+
color: "primary",
|
1854
|
+
},
|
1855
|
+
});
|
1856
|
+
var DropdownMenuCheckboxItem = designSystem.styled(designSystem.DropdownMenuCheckboxItem, {
|
1857
|
+
variants: {
|
1858
|
+
color: tslib.__assign({ primary: {
|
1859
|
+
"&:focus": {
|
1860
|
+
outline: "none",
|
1861
|
+
backgroundColor: "$primary4",
|
1862
|
+
color: "$hiContrast",
|
1863
|
+
},
|
1864
|
+
} }, colorVairants),
|
1865
|
+
},
|
1866
|
+
defaultVariants: {
|
1867
|
+
color: "primary",
|
1868
|
+
},
|
1869
|
+
});
|
1870
|
+
|
1871
|
+
var transitionStyles = {
|
1872
|
+
".snackbar-enter": {
|
1873
|
+
opacity: 0,
|
1874
|
+
},
|
1875
|
+
".snackbar-exit-active": {
|
1876
|
+
opacity: 0,
|
1877
|
+
},
|
1878
|
+
".snackbar-enter-active": {
|
1879
|
+
opacity: 1,
|
1880
|
+
},
|
1881
|
+
".snackbar-enter-top-center": {
|
1882
|
+
transform: "translateY(-16px)",
|
1883
|
+
},
|
1884
|
+
".snackbar-enter-top-right": {
|
1885
|
+
transform: "translateY(-16px)",
|
1886
|
+
},
|
1887
|
+
".snackbar-exit-active-top-left": {
|
1888
|
+
transform: "translateY(-16px)",
|
1889
|
+
},
|
1890
|
+
".snackbar-exit-active-top-center": {
|
1891
|
+
transform: "translateY(-16px)",
|
1892
|
+
},
|
1893
|
+
".snackbar-exit-active-top-right": {
|
1894
|
+
transform: "translateY(-16px)",
|
1895
|
+
},
|
1896
|
+
".snackbar-enter-bottom-left": {
|
1897
|
+
transform: "translateY(16px)",
|
1898
|
+
},
|
1899
|
+
".snackbar-enter-bottom-center": {
|
1900
|
+
transform: "translateY(16px)",
|
1901
|
+
},
|
1902
|
+
".snackbar-enter-bottom-right": {
|
1903
|
+
transform: "translateY(16px)",
|
1904
|
+
},
|
1905
|
+
".snackbar-exit-active-bottom-left": {
|
1906
|
+
transform: "translateY(16px)",
|
1907
|
+
},
|
1908
|
+
".snackbar-exit-active-bottom-center": {
|
1909
|
+
transform: "translateY(16px)",
|
1910
|
+
},
|
1911
|
+
".snackbar-exit-active-bottom-right": {
|
1912
|
+
transform: "translateY(16px)",
|
1913
|
+
},
|
1914
|
+
".snackbar-enter-active-top-left": {
|
1915
|
+
transform: "translateY(0px)",
|
1916
|
+
},
|
1917
|
+
".snackbar-enter-active-top-center": {
|
1918
|
+
transform: "translateY(0px)",
|
1919
|
+
},
|
1920
|
+
".snackbar-enter-active-top-right": {
|
1921
|
+
transform: "translateY(0px)",
|
1922
|
+
},
|
1923
|
+
".snackbar-enter-active-bottom-left": {
|
1924
|
+
transform: "translateY(0px)",
|
1925
|
+
},
|
1926
|
+
".snackbar-enter-active-bottom-center": {
|
1927
|
+
transform: "translateY(0px)",
|
1928
|
+
},
|
1929
|
+
".snackbar-enter-active-bottom-right": {
|
1930
|
+
transform: "translateY(0px)",
|
1931
|
+
},
|
1932
|
+
".snackbar-wrapper-top-left": {
|
1933
|
+
justifyContent: "flex-start",
|
1934
|
+
top: "8px",
|
1935
|
+
},
|
1936
|
+
".snackbar-wrapper-top-center": {
|
1937
|
+
top: "8px",
|
1938
|
+
justifyContent: "center",
|
1939
|
+
},
|
1940
|
+
".snackbar-wrapper-top-right": {
|
1941
|
+
top: "8px",
|
1942
|
+
justifyContent: "flex-end",
|
1943
|
+
},
|
1944
|
+
".snackbar-wrapper-bottom-left": {
|
1945
|
+
bottom: "8px",
|
1946
|
+
justifyContent: "flex-start",
|
1947
|
+
},
|
1948
|
+
".snackbar-wrapper-bottom-center": {
|
1949
|
+
bottom: "8px",
|
1950
|
+
justifyContent: "center",
|
1951
|
+
},
|
1952
|
+
".snackbar-wrapper-bottom-right": {
|
1953
|
+
bottom: "8px",
|
1954
|
+
justifyContent: "flex-end",
|
1955
|
+
},
|
1956
|
+
};
|
1957
|
+
|
1958
|
+
// Snackbar default values
|
1959
|
+
var defaultPosition = "bottom-center";
|
1960
|
+
var defaultDuration = 5000;
|
1961
|
+
var defaultInterval = 250;
|
1962
|
+
var positions = [
|
1963
|
+
"top-left",
|
1964
|
+
"top-center",
|
1965
|
+
"top-right",
|
1966
|
+
"bottom-left",
|
1967
|
+
"bottom-center",
|
1968
|
+
"bottom-right",
|
1969
|
+
];
|
1970
|
+
// Context used by the hook useSnackbar() and HoC withSnackbar()
|
1971
|
+
var SnackbarContext = React.createContext({});
|
1972
|
+
var SnackbarProvider = function (_a) {
|
1973
|
+
var children = _a.children;
|
1974
|
+
// Current open state
|
1975
|
+
var _b = React.useState(false), open = _b[0], setOpen = _b[1];
|
1976
|
+
// Current timeout ID
|
1977
|
+
var _c = React.useState(null), timeoutId = _c[0], setTimeoutId = _c[1];
|
1978
|
+
// Snackbar's text
|
1979
|
+
var _d = React.useState(""), text = _d[0], setText = _d[1];
|
1980
|
+
// Snackbar's duration
|
1981
|
+
var _e = React.useState(defaultDuration), duration = _e[0], setDuration = _e[1];
|
1982
|
+
// Snackbar's position
|
1983
|
+
var _f = React.useState(defaultPosition), position = _f[0], setPosition = _f[1];
|
1984
|
+
// Custom styles for the snackbar itself
|
1985
|
+
var _g = React.useState({}), customStyles = _g[0], setCustomStyles = _g[1];
|
1986
|
+
// Custom styles for the close button
|
1987
|
+
var _h = React.useState({}), closeCustomStyles = _h[0], setCloseCustomStyles = _h[1];
|
1988
|
+
var triggerSnackbar = function (text, duration, position, style, closeStyle) {
|
1989
|
+
setText(text);
|
1990
|
+
setDuration(duration);
|
1991
|
+
setPosition(position);
|
1992
|
+
setCustomStyles(style);
|
1993
|
+
setCloseCustomStyles(closeStyle);
|
1994
|
+
setOpen(true);
|
1995
|
+
};
|
1996
|
+
// Manages all the snackbar's opening process
|
1997
|
+
var openSnackbar = function (text, duration, position, style, closeStyle) {
|
1998
|
+
// Closes the snackbar if it is already open
|
1999
|
+
if (open === true) {
|
2000
|
+
setOpen(false);
|
2001
|
+
setTimeout(function () {
|
2002
|
+
triggerSnackbar(text, duration, position, style, closeStyle);
|
2003
|
+
}, defaultInterval);
|
2004
|
+
}
|
2005
|
+
else {
|
2006
|
+
triggerSnackbar(text, duration, position, style, closeStyle);
|
2007
|
+
}
|
2008
|
+
};
|
2009
|
+
// Closes the snackbar just by setting the "open" state to false
|
2010
|
+
var closeSnackbar = function () {
|
2011
|
+
setOpen(false);
|
2012
|
+
};
|
2013
|
+
// Returns the Provider that must wrap the application
|
2014
|
+
return (React__default["default"].createElement(SnackbarContext.Provider, { value: { openSnackbar: openSnackbar, closeSnackbar: closeSnackbar } },
|
2015
|
+
children,
|
2016
|
+
React__default["default"].createElement(designSystem.Box, { css: transitionStyles },
|
2017
|
+
React__default["default"].createElement(reactTransitionGroup.CSSTransition, { in: open, timeout: 150, mountOnEnter: true, unmountOnExit: true,
|
2018
|
+
// Sets timeout to close the snackbar
|
2019
|
+
onEnter: function () {
|
2020
|
+
// @ts-ignore
|
2021
|
+
clearTimeout(timeoutId);
|
2022
|
+
// @ts-ignore
|
2023
|
+
setTimeoutId(setTimeout(function () { return setOpen(false); }, duration));
|
2024
|
+
},
|
2025
|
+
// Sets custom classNames based on "position"
|
2026
|
+
className: "snackbar-wrapper-".concat(position), classNames: {
|
2027
|
+
enter: "snackbar-enter snackbar-enter-".concat(position),
|
2028
|
+
enterActive: "snackbar-enter-active snackbar-enter-active-".concat(position),
|
2029
|
+
exitActive: "snackbar-exit-active snackbar-exit-active-".concat(position),
|
2030
|
+
} },
|
2031
|
+
React__default["default"].createElement(designSystem.Box, { css: {
|
2032
|
+
display: "flex",
|
2033
|
+
alignItems: "center",
|
2034
|
+
margin: "8px",
|
2035
|
+
position: "fixed",
|
2036
|
+
right: "0",
|
2037
|
+
left: "0",
|
2038
|
+
zIndex: "1",
|
2039
|
+
transition: "opacity 150ms, transform 150ms",
|
2040
|
+
pointerEvents: "none",
|
2041
|
+
justifyContent: "center",
|
2042
|
+
bottom: "8px",
|
2043
|
+
} },
|
2044
|
+
React__default["default"].createElement(designSystem.Box, { css: {
|
2045
|
+
display: "flex",
|
2046
|
+
alignItems: "center",
|
2047
|
+
justifyContent: "flex-start",
|
2048
|
+
borderRadius: "4px",
|
2049
|
+
minWidth: "334px",
|
2050
|
+
maxWidth: "672px",
|
2051
|
+
zIndex: 1000000,
|
2052
|
+
backgroundColor: "$panel",
|
2053
|
+
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)",
|
2054
|
+
WebkitFontSmoothing: "antialiased",
|
2055
|
+
MozOsxFontSmoothing: "grayscale",
|
2056
|
+
fontFamily: "sans-serif",
|
2057
|
+
fontSize: "14px",
|
2058
|
+
fontWeight: "400",
|
2059
|
+
color: "$hiContrast",
|
2060
|
+
letterSpacing: "0.25px",
|
2061
|
+
lineHeight: "20px",
|
2062
|
+
textAlign: "left",
|
2063
|
+
}, style: customStyles },
|
2064
|
+
React__default["default"].createElement(designSystem.Box, { css: {
|
2065
|
+
flexGrow: 1,
|
2066
|
+
padding: "14px 16px",
|
2067
|
+
margin: "0",
|
2068
|
+
pointerEvents: "auto",
|
2069
|
+
color: "$hiContrast",
|
2070
|
+
} }, text),
|
2071
|
+
React__default["default"].createElement(designSystem.Box, { as: "button", css: {
|
2072
|
+
lexShrink: "0",
|
2073
|
+
boxSizing: "border-box",
|
2074
|
+
display: "flex",
|
2075
|
+
alignItems: "center",
|
2076
|
+
justifyContent: "center",
|
2077
|
+
width: "36px",
|
2078
|
+
height: "36px",
|
2079
|
+
padding: "8px",
|
2080
|
+
margin: "0 8px 0 0",
|
2081
|
+
cursor: "pointer",
|
2082
|
+
position: "relative",
|
2083
|
+
pointerEvents: "auto",
|
2084
|
+
WebkitTapHighlightColor: "transparent",
|
2085
|
+
/* Reset button styles */
|
2086
|
+
outline: "none",
|
2087
|
+
backgroundColor: "transparent",
|
2088
|
+
border: "none",
|
2089
|
+
/* SVG icon properties */
|
2090
|
+
fontSize: "12px",
|
2091
|
+
color: "$hiContrast",
|
2092
|
+
"&:hover:before": {
|
2093
|
+
opacity: "0.08",
|
2094
|
+
},
|
2095
|
+
"&:before": {
|
2096
|
+
content: '""',
|
2097
|
+
backgroundColor: "$hiContrast",
|
2098
|
+
borderRadius: "50%",
|
2099
|
+
opacity: "0",
|
2100
|
+
position: "absolute",
|
2101
|
+
transition: "opacity 120ms linear",
|
2102
|
+
top: "0%",
|
2103
|
+
left: "0%",
|
2104
|
+
width: "100%",
|
2105
|
+
height: "100%",
|
2106
|
+
},
|
2107
|
+
}, onClick: closeSnackbar, style: closeCustomStyles },
|
2108
|
+
React__default["default"].createElement(CloseIcon, null))))))));
|
2109
|
+
};
|
2110
|
+
// CloseIcon SVG is styled with font properties
|
2111
|
+
var CloseIcon = function () { return (React__default["default"].createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 12 12" },
|
2112
|
+
React__default["default"].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" }))); };
|
2113
|
+
|
2114
|
+
// Custom hook to trigger the snackbar on function components
|
2115
|
+
var useSnackbar = function (_a) {
|
2116
|
+
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;
|
2117
|
+
var _f = React.useContext(SnackbarContext), openSnackbar = _f.openSnackbar, closeSnackbar = _f.closeSnackbar;
|
2118
|
+
// If no correct position is passed, 'bottom-center' is set
|
2119
|
+
if (!positions.includes(position)) {
|
2120
|
+
position = defaultPosition;
|
2121
|
+
}
|
2122
|
+
function open(text, duration) {
|
2123
|
+
if (text === void 0) { text = ""; }
|
2124
|
+
if (duration === void 0) { duration = defaultDuration; }
|
2125
|
+
openSnackbar(text, duration, position, style, closeStyle);
|
2126
|
+
}
|
2127
|
+
// Returns methods in hooks array way
|
2128
|
+
return [open, closeSnackbar];
|
2129
|
+
};
|
2130
|
+
|
2131
|
+
var Switch = designSystem.styled(designSystem.Switch, {
|
2132
|
+
bc: "$neutral5",
|
2133
|
+
"&:focus": {
|
2134
|
+
boxShadow: "0 0 0 2px $colors$neutral8",
|
2135
|
+
},
|
2136
|
+
'&[data-state="checked"]': {
|
2137
|
+
bc: "$primary9",
|
2138
|
+
"&:focus": {
|
2139
|
+
boxShadow: "0 0 0 2px $colors$primary8",
|
2140
|
+
},
|
2141
|
+
},
|
2142
|
+
});
|
2143
|
+
|
2144
|
+
var _a$1;
|
2145
|
+
designSystem.styled(RadioGroupPrimitive__namespace.Root, {
|
2146
|
+
display: "block",
|
2147
|
+
});
|
2148
|
+
var StyledRadioButton = designSystem.styled("div", {
|
2149
|
+
display: "flex",
|
2150
|
+
alignItems: "center",
|
2151
|
+
justifyContent: "center",
|
2152
|
+
borderRadius: "$round",
|
2153
|
+
width: 25,
|
2154
|
+
height: 25,
|
2155
|
+
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
2156
|
+
flexShrink: 0,
|
2157
|
+
mr: "$3",
|
2158
|
+
});
|
2159
|
+
var StyledRadioIndicator = designSystem.styled("div", {
|
2160
|
+
borderRadius: "$round",
|
2161
|
+
width: 15,
|
2162
|
+
height: 15,
|
2163
|
+
backgroundColor: "$primary9",
|
2164
|
+
transform: "scale(0)",
|
2165
|
+
});
|
2166
|
+
var StyledRadio = designSystem.styled(RadioGroupPrimitive__namespace.Item, {
|
2167
|
+
all: "unset",
|
2168
|
+
boxSizing: "border-box",
|
2169
|
+
userSelect: "none",
|
2170
|
+
"&::before": {
|
2171
|
+
boxSizing: "border-box",
|
2172
|
+
},
|
2173
|
+
"&::after": {
|
2174
|
+
boxSizing: "border-box",
|
2175
|
+
},
|
2176
|
+
display: "flex",
|
2177
|
+
alignItems: "center",
|
2178
|
+
borderRadius: "$2",
|
2179
|
+
boxShadow: "inset 0 0 0 1px $colors$neutral7",
|
2180
|
+
p: "$3",
|
2181
|
+
"@hover": {
|
2182
|
+
"&:hover": {
|
2183
|
+
boxShadow: "inset 0 0 0 1px $colors$neutral8",
|
2184
|
+
},
|
2185
|
+
},
|
2186
|
+
'&[data-state="checked"]': (_a$1 = {
|
2187
|
+
boxShadow: "inset 0 0 0 1px $colors$primary8, 0 0 0 1px $colors$primary8 !important"
|
2188
|
+
},
|
2189
|
+
_a$1["& ".concat(StyledRadioIndicator)] = {
|
2190
|
+
transform: "scale(1)",
|
2191
|
+
},
|
2192
|
+
_a$1),
|
2193
|
+
});
|
2194
|
+
var RadioCard = React__default["default"].forwardRef(function (props, forwardedRef) { return (React__default["default"].createElement(StyledRadio, tslib.__assign({}, props, { ref: forwardedRef }),
|
2195
|
+
React__default["default"].createElement(StyledRadioButton, null,
|
2196
|
+
React__default["default"].createElement(StyledRadioIndicator, null)),
|
2197
|
+
props.children)); });
|
2198
|
+
|
2199
|
+
var _a, _b, _c;
|
2200
|
+
var Caption = designSystem.styled("caption", {
|
2201
|
+
textAlign: "start",
|
2202
|
+
marginBottom: "$5",
|
2203
|
+
});
|
2204
|
+
var Tbody = designSystem.styled("tbody", {
|
2205
|
+
width: "100%",
|
2206
|
+
});
|
2207
|
+
var Tfoot = designSystem.styled("tfoot", {});
|
2208
|
+
var Tr = designSystem.styled("tr", {});
|
2209
|
+
var Th = designSystem.styled("th", {
|
2210
|
+
fontWeight: "unset",
|
2211
|
+
textAlign: "start",
|
2212
|
+
fontSize: "$2",
|
2213
|
+
py: "$2",
|
2214
|
+
borderBottom: "1px solid $neutral4",
|
2215
|
+
variants: {
|
2216
|
+
align: {
|
2217
|
+
start: {
|
2218
|
+
textAlign: "start",
|
2219
|
+
},
|
2220
|
+
center: {
|
2221
|
+
textAlign: "center",
|
2222
|
+
},
|
2223
|
+
end: {
|
2224
|
+
textAlign: "end",
|
2225
|
+
},
|
2226
|
+
},
|
2227
|
+
border: {
|
2228
|
+
solid: {
|
2229
|
+
borderBottom: "1px solid $neutral4",
|
2230
|
+
},
|
2231
|
+
dashed: {
|
2232
|
+
borderBottom: "1px dashed $neutral8",
|
2233
|
+
},
|
2234
|
+
},
|
2235
|
+
},
|
2236
|
+
defaultVariants: {
|
2237
|
+
align: "start",
|
2238
|
+
border: "solid",
|
2239
|
+
},
|
2240
|
+
});
|
2241
|
+
var Td = designSystem.styled("td", {
|
2242
|
+
py: "$2",
|
2243
|
+
borderBottom: "1px solid $neutral4",
|
2244
|
+
fontSize: "$2",
|
2245
|
+
variants: {
|
2246
|
+
align: {
|
2247
|
+
start: {
|
2248
|
+
textAlign: "start",
|
2249
|
+
},
|
2250
|
+
center: {
|
2251
|
+
textAlign: "center",
|
2252
|
+
},
|
2253
|
+
end: {
|
2254
|
+
textAlign: "end",
|
2255
|
+
},
|
2256
|
+
},
|
2257
|
+
border: {
|
2258
|
+
solid: {
|
2259
|
+
borderBottom: "1px solid $neutral4",
|
2260
|
+
},
|
2261
|
+
dashed: {
|
2262
|
+
borderBottom: "1px dashed $neutral8",
|
2263
|
+
},
|
2264
|
+
},
|
2265
|
+
},
|
2266
|
+
defaultVariants: {
|
2267
|
+
align: "start",
|
2268
|
+
border: "solid",
|
2269
|
+
},
|
2270
|
+
});
|
2271
|
+
var Thead = designSystem.styled("thead", (_a = {},
|
2272
|
+
_a["& ".concat(Th)] = {
|
2273
|
+
fontSize: "$1",
|
2274
|
+
color: "$gray11",
|
2275
|
+
},
|
2276
|
+
_a["& ".concat(Td)] = {
|
2277
|
+
fontSize: "$1",
|
2278
|
+
color: "$neutral11",
|
2279
|
+
},
|
2280
|
+
_a));
|
2281
|
+
var Table = designSystem.styled("table", {
|
2282
|
+
width: "100%",
|
2283
|
+
tableLayout: "fixed",
|
2284
|
+
borderSpacing: 0,
|
2285
|
+
variants: {
|
2286
|
+
striped: {
|
2287
|
+
true: (_b = {},
|
2288
|
+
_b["& ".concat(Tbody)] = (_c = {},
|
2289
|
+
_c["& ".concat(Tr)] = {
|
2290
|
+
"&:nth-child(odd)": {
|
2291
|
+
bc: "$neutral2",
|
2292
|
+
},
|
2293
|
+
},
|
2294
|
+
_c),
|
2295
|
+
_b),
|
2296
|
+
},
|
2297
|
+
},
|
2298
|
+
});
|
2299
|
+
|
2300
|
+
Object.defineProperty(exports, 'Alert', {
|
2301
|
+
enumerable: true,
|
2302
|
+
get: function () { return designSystem.Alert; }
|
2303
|
+
});
|
2304
|
+
Object.defineProperty(exports, 'AspectRatio', {
|
2305
|
+
enumerable: true,
|
2306
|
+
get: function () { return designSystem.AspectRatio; }
|
2307
|
+
});
|
2308
|
+
Object.defineProperty(exports, 'Avatar', {
|
2309
|
+
enumerable: true,
|
2310
|
+
get: function () { return designSystem.Avatar; }
|
2311
|
+
});
|
2312
|
+
Object.defineProperty(exports, 'AvatarGroup', {
|
2313
|
+
enumerable: true,
|
2314
|
+
get: function () { return designSystem.AvatarGroup; }
|
2315
|
+
});
|
2316
|
+
Object.defineProperty(exports, 'AvatarNestedItem', {
|
2317
|
+
enumerable: true,
|
2318
|
+
get: function () { return designSystem.AvatarNestedItem; }
|
2319
|
+
});
|
2320
|
+
Object.defineProperty(exports, 'Box', {
|
2321
|
+
enumerable: true,
|
2322
|
+
get: function () { return designSystem.Box; }
|
2323
|
+
});
|
2324
|
+
Object.defineProperty(exports, 'Checkbox', {
|
2325
|
+
enumerable: true,
|
2326
|
+
get: function () { return designSystem.Checkbox; }
|
2327
|
+
});
|
2328
|
+
Object.defineProperty(exports, 'Code', {
|
2329
|
+
enumerable: true,
|
2330
|
+
get: function () { return designSystem.Code; }
|
2331
|
+
});
|
2332
|
+
Object.defineProperty(exports, 'Container', {
|
2333
|
+
enumerable: true,
|
2334
|
+
get: function () { return designSystem.Container; }
|
2335
|
+
});
|
2336
|
+
Object.defineProperty(exports, 'ContextMenu', {
|
2337
|
+
enumerable: true,
|
2338
|
+
get: function () { return designSystem.ContextMenu; }
|
2339
|
+
});
|
2340
|
+
Object.defineProperty(exports, 'ContextMenuCheckboxItem', {
|
2341
|
+
enumerable: true,
|
2342
|
+
get: function () { return designSystem.ContextMenuCheckboxItem; }
|
2343
|
+
});
|
2344
|
+
Object.defineProperty(exports, 'ContextMenuContent', {
|
2345
|
+
enumerable: true,
|
2346
|
+
get: function () { return designSystem.ContextMenuContent; }
|
2347
|
+
});
|
2348
|
+
Object.defineProperty(exports, 'ContextMenuGroup', {
|
2349
|
+
enumerable: true,
|
2350
|
+
get: function () { return designSystem.ContextMenuGroup; }
|
2351
|
+
});
|
2352
|
+
Object.defineProperty(exports, 'ContextMenuItem', {
|
2353
|
+
enumerable: true,
|
2354
|
+
get: function () { return designSystem.ContextMenuItem; }
|
2355
|
+
});
|
2356
|
+
Object.defineProperty(exports, 'ContextMenuLabel', {
|
2357
|
+
enumerable: true,
|
2358
|
+
get: function () { return designSystem.ContextMenuLabel; }
|
2359
|
+
});
|
2360
|
+
Object.defineProperty(exports, 'ContextMenuRadioGroup', {
|
2361
|
+
enumerable: true,
|
2362
|
+
get: function () { return designSystem.ContextMenuRadioGroup; }
|
2363
|
+
});
|
2364
|
+
Object.defineProperty(exports, 'ContextMenuRadioItem', {
|
2365
|
+
enumerable: true,
|
2366
|
+
get: function () { return designSystem.ContextMenuRadioItem; }
|
2367
|
+
});
|
2368
|
+
Object.defineProperty(exports, 'ContextMenuSeparator', {
|
2369
|
+
enumerable: true,
|
2370
|
+
get: function () { return designSystem.ContextMenuSeparator; }
|
2371
|
+
});
|
2372
|
+
Object.defineProperty(exports, 'ContextMenuTrigger', {
|
2373
|
+
enumerable: true,
|
2374
|
+
get: function () { return designSystem.ContextMenuTrigger; }
|
2375
|
+
});
|
2376
|
+
Object.defineProperty(exports, 'ControlGroup', {
|
2377
|
+
enumerable: true,
|
2378
|
+
get: function () { return designSystem.ControlGroup; }
|
2379
|
+
});
|
2380
|
+
Object.defineProperty(exports, 'DesignSystemProvider', {
|
2381
|
+
enumerable: true,
|
2382
|
+
get: function () { return designSystem.DesignSystemProvider; }
|
2383
|
+
});
|
2384
|
+
Object.defineProperty(exports, 'DropdownMenu', {
|
2385
|
+
enumerable: true,
|
2386
|
+
get: function () { return designSystem.DropdownMenu; }
|
2387
|
+
});
|
2388
|
+
Object.defineProperty(exports, 'DropdownMenuContent', {
|
2389
|
+
enumerable: true,
|
2390
|
+
get: function () { return designSystem.DropdownMenuContent; }
|
2391
|
+
});
|
2392
|
+
Object.defineProperty(exports, 'DropdownMenuGroup', {
|
2393
|
+
enumerable: true,
|
2394
|
+
get: function () { return designSystem.DropdownMenuGroup; }
|
2395
|
+
});
|
2396
|
+
Object.defineProperty(exports, 'DropdownMenuLabel', {
|
2397
|
+
enumerable: true,
|
2398
|
+
get: function () { return designSystem.DropdownMenuLabel; }
|
2399
|
+
});
|
2400
|
+
Object.defineProperty(exports, 'DropdownMenuRadioGroup', {
|
2401
|
+
enumerable: true,
|
2402
|
+
get: function () { return designSystem.DropdownMenuRadioGroup; }
|
2403
|
+
});
|
2404
|
+
Object.defineProperty(exports, 'DropdownMenuSeparator', {
|
2405
|
+
enumerable: true,
|
2406
|
+
get: function () { return designSystem.DropdownMenuSeparator; }
|
2407
|
+
});
|
2408
|
+
Object.defineProperty(exports, 'DropdownMenuTrigger', {
|
2409
|
+
enumerable: true,
|
2410
|
+
get: function () { return designSystem.DropdownMenuTrigger; }
|
2411
|
+
});
|
2412
|
+
Object.defineProperty(exports, 'Flex', {
|
2413
|
+
enumerable: true,
|
2414
|
+
get: function () { return designSystem.Flex; }
|
2415
|
+
});
|
2416
|
+
Object.defineProperty(exports, 'Grid', {
|
2417
|
+
enumerable: true,
|
2418
|
+
get: function () { return designSystem.Grid; }
|
2419
|
+
});
|
2420
|
+
Object.defineProperty(exports, 'Heading', {
|
2421
|
+
enumerable: true,
|
2422
|
+
get: function () { return designSystem.Heading; }
|
2423
|
+
});
|
2424
|
+
Object.defineProperty(exports, 'IconButton', {
|
2425
|
+
enumerable: true,
|
2426
|
+
get: function () { return designSystem.IconButton; }
|
2427
|
+
});
|
2428
|
+
Object.defineProperty(exports, 'Image', {
|
2429
|
+
enumerable: true,
|
2430
|
+
get: function () { return designSystem.Image; }
|
2431
|
+
});
|
2432
|
+
Object.defineProperty(exports, 'Kbd', {
|
2433
|
+
enumerable: true,
|
2434
|
+
get: function () { return designSystem.Kbd; }
|
2435
|
+
});
|
2436
|
+
Object.defineProperty(exports, 'Menu', {
|
2437
|
+
enumerable: true,
|
2438
|
+
get: function () { return designSystem.Menu; }
|
2439
|
+
});
|
2440
|
+
Object.defineProperty(exports, 'MenuCheckboxItem', {
|
2441
|
+
enumerable: true,
|
2442
|
+
get: function () { return designSystem.MenuCheckboxItem; }
|
2443
|
+
});
|
2444
|
+
Object.defineProperty(exports, 'MenuGroup', {
|
2445
|
+
enumerable: true,
|
2446
|
+
get: function () { return designSystem.MenuGroup; }
|
2447
|
+
});
|
2448
|
+
Object.defineProperty(exports, 'MenuItem', {
|
2449
|
+
enumerable: true,
|
2450
|
+
get: function () { return designSystem.MenuItem; }
|
2451
|
+
});
|
2452
|
+
Object.defineProperty(exports, 'MenuLabel', {
|
2453
|
+
enumerable: true,
|
2454
|
+
get: function () { return designSystem.MenuLabel; }
|
2455
|
+
});
|
2456
|
+
Object.defineProperty(exports, 'MenuRadioGroup', {
|
2457
|
+
enumerable: true,
|
2458
|
+
get: function () { return designSystem.MenuRadioGroup; }
|
2459
|
+
});
|
2460
|
+
Object.defineProperty(exports, 'MenuRadioItem', {
|
2461
|
+
enumerable: true,
|
2462
|
+
get: function () { return designSystem.MenuRadioItem; }
|
2463
|
+
});
|
2464
|
+
Object.defineProperty(exports, 'MenuSeparator', {
|
2465
|
+
enumerable: true,
|
2466
|
+
get: function () { return designSystem.MenuSeparator; }
|
2467
|
+
});
|
2468
|
+
Object.defineProperty(exports, 'Overlay', {
|
2469
|
+
enumerable: true,
|
2470
|
+
get: function () { return designSystem.Overlay; }
|
2471
|
+
});
|
2472
|
+
Object.defineProperty(exports, 'Panel', {
|
2473
|
+
enumerable: true,
|
2474
|
+
get: function () { return designSystem.Panel; }
|
2475
|
+
});
|
2476
|
+
Object.defineProperty(exports, 'Paragraph', {
|
2477
|
+
enumerable: true,
|
2478
|
+
get: function () { return designSystem.Paragraph; }
|
2479
|
+
});
|
2480
|
+
Object.defineProperty(exports, 'Popover', {
|
2481
|
+
enumerable: true,
|
2482
|
+
get: function () { return designSystem.Popover; }
|
2483
|
+
});
|
2484
|
+
Object.defineProperty(exports, 'PopoverClose', {
|
2485
|
+
enumerable: true,
|
2486
|
+
get: function () { return designSystem.PopoverClose; }
|
2487
|
+
});
|
2488
|
+
Object.defineProperty(exports, 'PopoverContent', {
|
2489
|
+
enumerable: true,
|
2490
|
+
get: function () { return designSystem.PopoverContent; }
|
2491
|
+
});
|
2492
|
+
Object.defineProperty(exports, 'PopoverTrigger', {
|
2493
|
+
enumerable: true,
|
2494
|
+
get: function () { return designSystem.PopoverTrigger; }
|
2495
|
+
});
|
2496
|
+
Object.defineProperty(exports, 'Portal', {
|
2497
|
+
enumerable: true,
|
2498
|
+
get: function () { return designSystem.Portal; }
|
2499
|
+
});
|
2500
|
+
Object.defineProperty(exports, 'ProgressBar', {
|
2501
|
+
enumerable: true,
|
2502
|
+
get: function () { return designSystem.ProgressBar; }
|
2503
|
+
});
|
2504
|
+
Object.defineProperty(exports, 'Radio', {
|
2505
|
+
enumerable: true,
|
2506
|
+
get: function () { return designSystem.Radio; }
|
2507
|
+
});
|
2508
|
+
Object.defineProperty(exports, 'RadioCardGroup', {
|
2509
|
+
enumerable: true,
|
2510
|
+
get: function () { return designSystem.RadioCardGroup; }
|
2511
|
+
});
|
2512
|
+
Object.defineProperty(exports, 'RadioGroup', {
|
2513
|
+
enumerable: true,
|
2514
|
+
get: function () { return designSystem.RadioGroup; }
|
2515
|
+
});
|
2516
|
+
Object.defineProperty(exports, 'Section', {
|
2517
|
+
enumerable: true,
|
2518
|
+
get: function () { return designSystem.Section; }
|
2519
|
+
});
|
2520
|
+
Object.defineProperty(exports, 'Separator', {
|
2521
|
+
enumerable: true,
|
2522
|
+
get: function () { return designSystem.Separator; }
|
2523
|
+
});
|
2524
|
+
Object.defineProperty(exports, 'Sheet', {
|
2525
|
+
enumerable: true,
|
2526
|
+
get: function () { return designSystem.Sheet; }
|
2527
|
+
});
|
2528
|
+
Object.defineProperty(exports, 'SheetClose', {
|
2529
|
+
enumerable: true,
|
2530
|
+
get: function () { return designSystem.SheetClose; }
|
2531
|
+
});
|
2532
|
+
Object.defineProperty(exports, 'SheetContent', {
|
2533
|
+
enumerable: true,
|
2534
|
+
get: function () { return designSystem.SheetContent; }
|
2535
|
+
});
|
2536
|
+
Object.defineProperty(exports, 'SheetDescription', {
|
2537
|
+
enumerable: true,
|
2538
|
+
get: function () { return designSystem.SheetDescription; }
|
2539
|
+
});
|
2540
|
+
Object.defineProperty(exports, 'SheetTitle', {
|
2541
|
+
enumerable: true,
|
2542
|
+
get: function () { return designSystem.SheetTitle; }
|
2543
|
+
});
|
2544
|
+
Object.defineProperty(exports, 'SheetTrigger', {
|
2545
|
+
enumerable: true,
|
2546
|
+
get: function () { return designSystem.SheetTrigger; }
|
2547
|
+
});
|
2548
|
+
Object.defineProperty(exports, 'SimpleToggle', {
|
2549
|
+
enumerable: true,
|
2550
|
+
get: function () { return designSystem.SimpleToggle; }
|
2551
|
+
});
|
2552
|
+
Object.defineProperty(exports, 'Skeleton', {
|
2553
|
+
enumerable: true,
|
2554
|
+
get: function () { return designSystem.Skeleton; }
|
2555
|
+
});
|
2556
|
+
Object.defineProperty(exports, 'Slider', {
|
2557
|
+
enumerable: true,
|
2558
|
+
get: function () { return designSystem.Slider; }
|
2559
|
+
});
|
2560
|
+
Object.defineProperty(exports, 'Status', {
|
2561
|
+
enumerable: true,
|
2562
|
+
get: function () { return designSystem.Status; }
|
2563
|
+
});
|
2564
|
+
Object.defineProperty(exports, 'Sub', {
|
2565
|
+
enumerable: true,
|
2566
|
+
get: function () { return designSystem.Sub; }
|
2567
|
+
});
|
2568
|
+
Object.defineProperty(exports, 'Sup', {
|
2569
|
+
enumerable: true,
|
2570
|
+
get: function () { return designSystem.Sup; }
|
2571
|
+
});
|
2572
|
+
Object.defineProperty(exports, 'TabLink', {
|
2573
|
+
enumerable: true,
|
2574
|
+
get: function () { return designSystem.TabLink; }
|
2575
|
+
});
|
2576
|
+
Object.defineProperty(exports, 'Tabs', {
|
2577
|
+
enumerable: true,
|
2578
|
+
get: function () { return designSystem.Tabs; }
|
2579
|
+
});
|
2580
|
+
Object.defineProperty(exports, 'TextArea', {
|
2581
|
+
enumerable: true,
|
2582
|
+
get: function () { return designSystem.TextArea; }
|
2583
|
+
});
|
2584
|
+
Object.defineProperty(exports, 'Tooltip', {
|
2585
|
+
enumerable: true,
|
2586
|
+
get: function () { return designSystem.Tooltip; }
|
2587
|
+
});
|
2588
|
+
Object.defineProperty(exports, 'TreeItem', {
|
2589
|
+
enumerable: true,
|
2590
|
+
get: function () { return designSystem.TreeItem; }
|
2591
|
+
});
|
2592
|
+
Object.defineProperty(exports, 'VerifiedBadge', {
|
2593
|
+
enumerable: true,
|
2594
|
+
get: function () { return designSystem.VerifiedBadge; }
|
2595
|
+
});
|
2596
|
+
Object.defineProperty(exports, 'css', {
|
2597
|
+
enumerable: true,
|
2598
|
+
get: function () { return designSystem.css; }
|
2599
|
+
});
|
2600
|
+
Object.defineProperty(exports, 'getCssText', {
|
2601
|
+
enumerable: true,
|
2602
|
+
get: function () { return designSystem.getCssText; }
|
2603
|
+
});
|
2604
|
+
Object.defineProperty(exports, 'globalCss', {
|
2605
|
+
enumerable: true,
|
2606
|
+
get: function () { return designSystem.globalCss; }
|
2607
|
+
});
|
2608
|
+
Object.defineProperty(exports, 'keyframes', {
|
2609
|
+
enumerable: true,
|
2610
|
+
get: function () { return designSystem.keyframes; }
|
2611
|
+
});
|
2612
|
+
Object.defineProperty(exports, 'styled', {
|
2613
|
+
enumerable: true,
|
2614
|
+
get: function () { return designSystem.styled; }
|
2615
|
+
});
|
2616
|
+
Object.defineProperty(exports, 'HoverCardArrow', {
|
2617
|
+
enumerable: true,
|
2618
|
+
get: function () { return reactHoverCard.Arrow; }
|
2619
|
+
});
|
2620
|
+
Object.defineProperty(exports, 'HoverCardContent', {
|
2621
|
+
enumerable: true,
|
2622
|
+
get: function () { return reactHoverCard.Content; }
|
2623
|
+
});
|
2624
|
+
Object.defineProperty(exports, 'HoverCardRoot', {
|
2625
|
+
enumerable: true,
|
2626
|
+
get: function () { return reactHoverCard.Root; }
|
2627
|
+
});
|
2628
|
+
Object.defineProperty(exports, 'HoverCardTrigger', {
|
2629
|
+
enumerable: true,
|
2630
|
+
get: function () { return reactHoverCard.Trigger; }
|
2631
|
+
});
|
2632
|
+
Object.defineProperty(exports, 'AccessibleIcon', {
|
2633
|
+
enumerable: true,
|
2634
|
+
get: function () { return reactAccessibleIcon.AccessibleIcon; }
|
2635
|
+
});
|
2636
|
+
Object.defineProperty(exports, 'ScrollAreaCorner', {
|
2637
|
+
enumerable: true,
|
2638
|
+
get: function () { return reactScrollArea.Corner; }
|
2639
|
+
});
|
2640
|
+
Object.defineProperty(exports, 'ScrollAreaRoot', {
|
2641
|
+
enumerable: true,
|
2642
|
+
get: function () { return reactScrollArea.Root; }
|
2643
|
+
});
|
2644
|
+
Object.defineProperty(exports, 'ScrollAreaScrollbar', {
|
2645
|
+
enumerable: true,
|
2646
|
+
get: function () { return reactScrollArea.Scrollbar; }
|
2647
|
+
});
|
2648
|
+
Object.defineProperty(exports, 'ScrollAreaThumb', {
|
2649
|
+
enumerable: true,
|
2650
|
+
get: function () { return reactScrollArea.Thumb; }
|
2651
|
+
});
|
2652
|
+
Object.defineProperty(exports, 'ScrollAreaViewport', {
|
2653
|
+
enumerable: true,
|
2654
|
+
get: function () { return reactScrollArea.Viewport; }
|
2655
|
+
});
|
2656
|
+
exports.Accordion = Accordion;
|
2657
|
+
exports.AccordionButton = AccordionButton;
|
2658
|
+
exports.AccordionItem = AccordionItem;
|
2659
|
+
exports.AccordionPanel = AccordionPanel;
|
2660
|
+
exports.AlertDialog = AlertDialog;
|
2661
|
+
exports.AlertDialogAction = AlertDialogAction;
|
2662
|
+
exports.AlertDialogCancel = AlertDialogCancel;
|
2663
|
+
exports.AlertDialogContent = AlertDialogContent;
|
2664
|
+
exports.AlertDialogDescription = AlertDialogDescription;
|
2665
|
+
exports.AlertDialogTitle = AlertDialogTitle;
|
2666
|
+
exports.AlertDialogTrigger = AlertDialogTrigger;
|
2667
|
+
exports.Badge = Badge;
|
2668
|
+
exports.Banner = Banner;
|
2669
|
+
exports.Button = Button;
|
2670
|
+
exports.Caption = Caption;
|
2671
|
+
exports.Card = Card;
|
2672
|
+
exports.Dialog = Dialog;
|
2673
|
+
exports.DialogClose = DialogClose;
|
2674
|
+
exports.DialogContent = DialogContent;
|
2675
|
+
exports.DialogDescription = DialogDescription;
|
2676
|
+
exports.DialogTitle = DialogTitle;
|
2677
|
+
exports.DialogTrigger = DialogTrigger;
|
2678
|
+
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
2679
|
+
exports.DropdownMenuItem = DropdownMenuItem;
|
2680
|
+
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
2681
|
+
exports.Label = Label;
|
2682
|
+
exports.Link = Link;
|
2683
|
+
exports.Promo = Promo;
|
2684
|
+
exports.RadioCard = RadioCard;
|
2685
|
+
exports.Select = Select;
|
2686
|
+
exports.SnackbarProvider = SnackbarProvider;
|
2687
|
+
exports.Switch = Switch;
|
2688
|
+
exports.Table = Table;
|
2689
|
+
exports.TabsContent = TabsContent;
|
2690
|
+
exports.TabsList = TabsList;
|
2691
|
+
exports.TabsTrigger = TabsTrigger;
|
2692
|
+
exports.Tbody = Tbody;
|
2693
|
+
exports.Td = Td;
|
2694
|
+
exports.Text = Text;
|
2695
|
+
exports.TextField = TextField;
|
2696
|
+
exports.Tfoot = Tfoot;
|
2697
|
+
exports.Th = Th;
|
2698
|
+
exports.Thead = Thead;
|
2699
|
+
exports.Tr = Tr;
|
2700
|
+
exports.themes = themes;
|
2701
|
+
exports.useSnackbar = useSnackbar;
|