@obolnetwork/obol-ui 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +34 -0
  2. package/dist/components/atoms/Box/Box.d.ts +472 -0
  3. package/dist/components/atoms/Button/Button.d.ts +495 -0
  4. package/dist/components/atoms/Link/Link.d.ts +493 -0
  5. package/dist/components/atoms/LoadingButton/LoadingButton.d.ts +8 -0
  6. package/dist/components/atoms/Spin/Spin.d.ts +476 -0
  7. package/dist/components/atoms/SvgIcon/SvgIcon.d.ts +480 -0
  8. package/dist/components/atoms/Tabs/Tabs.d.ts +1890 -0
  9. package/dist/components/atoms/Text/Text.d.ts +503 -0
  10. package/dist/components/atoms/index.d.ts +7 -0
  11. package/dist/components/icons/ArrowForward.d.ts +2 -0
  12. package/dist/components/icons/Download.d.ts +2 -0
  13. package/dist/components/icons/OpenInNew.d.ts +2 -0
  14. package/dist/components/icons/index.d.ts +11 -0
  15. package/dist/components/icons/static-icons/CodeIcon.d.ts +1 -0
  16. package/dist/components/icons/static-icons/MenuIcon.d.ts +1 -0
  17. package/dist/components/icons/static-icons/PublicGoodIcon.d.ts +1 -0
  18. package/dist/components/icons/static-icons/TrustMinimisedIcon.d.ts +1 -0
  19. package/dist/components/icons/static-icons/obol/circle/ObolDarkCircle.d.ts +1 -0
  20. package/dist/components/icons/static-icons/obol/circle/ObolLightCircle.d.ts +1 -0
  21. package/dist/components/icons/static-icons/obol/circle/index.d.ts +2 -0
  22. package/dist/components/icons/static-icons/obol/horizontal/ObolDarkBgH.d.ts +1 -0
  23. package/dist/components/icons/static-icons/obol/horizontal/ObolLightBgH.d.ts +1 -0
  24. package/dist/components/icons/static-icons/obol/horizontal/ObolSolidDarkBgH.d.ts +1 -0
  25. package/dist/components/icons/static-icons/obol/horizontal/ObolSolidLightBgH.d.ts +1 -0
  26. package/dist/components/icons/static-icons/obol/horizontal/index.d.ts +4 -0
  27. package/dist/components/icons/static-icons/obol/mark/ObolDarkBgMark.d.ts +1 -0
  28. package/dist/components/icons/static-icons/obol/mark/ObolLightBgMark.d.ts +1 -0
  29. package/dist/components/icons/static-icons/obol/mark/ObolSolidDarkBgMark.d.ts +1 -0
  30. package/dist/components/icons/static-icons/obol/mark/ObolSolidLightBgMark.d.ts +1 -0
  31. package/dist/components/icons/static-icons/obol/mark/index.d.ts +4 -0
  32. package/dist/components/icons/static-icons/obol/vertical/ObolDarkBgV.d.ts +1 -0
  33. package/dist/components/icons/static-icons/obol/vertical/ObolLightBgV.d.ts +1 -0
  34. package/dist/components/icons/static-icons/obol/vertical/ObolSolidDarkBgV.d.ts +1 -0
  35. package/dist/components/icons/static-icons/obol/vertical/ObolSolidLightBgV.d.ts +1 -0
  36. package/dist/components/icons/static-icons/obol/vertical/index.d.ts +4 -0
  37. package/dist/components/molecules/Card/Card.d.ts +9 -0
  38. package/dist/components/molecules/index.d.ts +1 -0
  39. package/dist/components/organisms/HeroSection/HeroSection.d.ts +14 -0
  40. package/dist/components/organisms/hero-section/hero-section.d.ts +14 -0
  41. package/dist/components/organisms/index.d.ts +1 -0
  42. package/dist/components/utils/color-variants.d.ts +59 -0
  43. package/dist/components/utils/hooks/index.d.ts +1 -0
  44. package/dist/components/utils/hooks/use-media-query.d.ts +10 -0
  45. package/dist/components/utils/styles.d.ts +472 -0
  46. package/dist/components/utils/types.d.ts +13 -0
  47. package/dist/index.d.ts +6 -0
  48. package/dist/index.es.js +933 -0
  49. package/dist/index.js +1002 -0
  50. package/dist/scripts/figma-colors.d.ts +1 -0
  51. package/dist/stitches.config.d.ts +3199 -0
  52. package/package.json +55 -0
@@ -0,0 +1,495 @@
1
+ /// <reference types="react" />
2
+ import * as Stitches from "@stitches/react";
3
+ export declare const Button: import("@stitches/react/types/styled-component").StyledComponent<"button", {
4
+ color?: "coordinate" | "test" | "create" | "primary" | "secondary" | undefined;
5
+ ghost?: boolean | "true" | undefined;
6
+ fullWidth?: boolean | "true" | undefined;
7
+ outlined?: boolean | "true" | undefined;
8
+ variant?: "nav" | "tx" | undefined;
9
+ }, {
10
+ motion: "(prefers-reduced-motion)";
11
+ hover: "(any-hover: hover)";
12
+ dark: "(prefers-color-scheme: dark)";
13
+ light: "(prefers-color-scheme: light)";
14
+ xs: "(max-width: 520px)";
15
+ sm: "(max-width: 900px)";
16
+ md: "(max-width: 1200px)";
17
+ lg: "(max-width: 1800px)";
18
+ }, import("@stitches/react/types/css-util").CSS<{
19
+ motion: "(prefers-reduced-motion)";
20
+ hover: "(any-hover: hover)";
21
+ dark: "(prefers-color-scheme: dark)";
22
+ light: "(prefers-color-scheme: light)";
23
+ xs: "(max-width: 520px)";
24
+ sm: "(max-width: 900px)";
25
+ md: "(max-width: 1200px)";
26
+ lg: "(max-width: 1800px)";
27
+ }, {
28
+ colors: {
29
+ white: string;
30
+ black: string;
31
+ lightBackground: string;
32
+ obolBlue: string;
33
+ primaryBgDefault: string;
34
+ primaryBgDefaultHover: string;
35
+ primaryTextDefault: string;
36
+ secondaryBgDefault: string;
37
+ secondaryBgHover: string;
38
+ grayBgDefault: string;
39
+ gray2BgDefault: string;
40
+ neutralDark: string;
41
+ navButtonBgDefault: string;
42
+ navButtonBgHover: string;
43
+ cardBackgroundDark: string;
44
+ cardBackgroundLight: string;
45
+ textMiddle: string;
46
+ textLight: string;
47
+ textTabHover: string;
48
+ textTabInactive: string;
49
+ textGreenDark: string;
50
+ textGreenLight: string;
51
+ textGreen1: string;
52
+ textGreen2: string;
53
+ textGreen3: string;
54
+ textGreenHover: string;
55
+ textCreateHover: string;
56
+ textGrayHover: string;
57
+ txButton: string;
58
+ obolGreen: string;
59
+ obolGreenHover: string;
60
+ obolGreenLight: string;
61
+ obolDarkDark: string;
62
+ obolDisabled: string;
63
+ linkButtonHover: string;
64
+ coordinate: string;
65
+ coordinateHover: string;
66
+ test: string;
67
+ testHover: string;
68
+ create: string;
69
+ createHover: string;
70
+ light: string;
71
+ body: string;
72
+ muted: string;
73
+ menu: string;
74
+ bg01: string;
75
+ bg02: string;
76
+ bg03: string;
77
+ bg04: string;
78
+ bg05: string;
79
+ };
80
+ space: {
81
+ 1: string;
82
+ 2: string;
83
+ xxxs: string;
84
+ xxs: string;
85
+ xs: string;
86
+ sm: string;
87
+ md: string;
88
+ lg: string;
89
+ xl: string;
90
+ "2xl": string;
91
+ "3xl": string;
92
+ "4xl": string;
93
+ "5xl": string;
94
+ "6xl": string;
95
+ "7xl": string;
96
+ };
97
+ sizes: {
98
+ 1: string;
99
+ 2: string;
100
+ xxxs: string;
101
+ xxs: string;
102
+ xs: string;
103
+ sm: string;
104
+ md: string;
105
+ lg: string;
106
+ xl: string;
107
+ "2xl": string;
108
+ "3xl": string;
109
+ "4xl": string;
110
+ "5xl": string;
111
+ "6xl": string;
112
+ "7xl": string;
113
+ max: string;
114
+ min: string;
115
+ full: string;
116
+ };
117
+ radii: {
118
+ 1: string;
119
+ 2: string;
120
+ 3: string;
121
+ 4: string;
122
+ 5: string;
123
+ round: string;
124
+ pill: string;
125
+ };
126
+ fontSizes: {
127
+ 1: string;
128
+ 2: string;
129
+ 3: string;
130
+ 4: string;
131
+ 5: string;
132
+ 6: string;
133
+ 7: string;
134
+ 8: string;
135
+ 9: string;
136
+ 10: string;
137
+ };
138
+ fontWeights: {
139
+ hairline: number;
140
+ thin: number;
141
+ light: number;
142
+ normal: number;
143
+ medium: number;
144
+ semibold: number;
145
+ bold: number;
146
+ extrabold: number;
147
+ black: number;
148
+ };
149
+ lineHeights: {
150
+ normal: string;
151
+ none: number;
152
+ shorter: number;
153
+ short: number;
154
+ base: number;
155
+ tall: number;
156
+ tall2: number;
157
+ taller: string;
158
+ };
159
+ letterSpacings: {
160
+ tighter: string;
161
+ tight: string;
162
+ normal: string;
163
+ wide: string;
164
+ wider: string;
165
+ widest: string;
166
+ };
167
+ borderWidths: unknown;
168
+ borderStyles: unknown;
169
+ shadows: unknown;
170
+ zIndices: unknown;
171
+ transitions: unknown;
172
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
173
+ p: (value: {
174
+ readonly [Stitches.$$PropertyValue]: "padding";
175
+ }) => {
176
+ padding: {
177
+ readonly [Stitches.$$PropertyValue]: "padding";
178
+ };
179
+ };
180
+ pt: (value: {
181
+ readonly [Stitches.$$PropertyValue]: "paddingTop";
182
+ }) => {
183
+ paddingTop: {
184
+ readonly [Stitches.$$PropertyValue]: "paddingTop";
185
+ };
186
+ };
187
+ pr: (value: {
188
+ readonly [Stitches.$$PropertyValue]: "paddingRight";
189
+ }) => {
190
+ paddingRight: {
191
+ readonly [Stitches.$$PropertyValue]: "paddingRight";
192
+ };
193
+ };
194
+ pb: (value: {
195
+ readonly [Stitches.$$PropertyValue]: "paddingBottom";
196
+ }) => {
197
+ paddingBottom: {
198
+ readonly [Stitches.$$PropertyValue]: "paddingBottom";
199
+ };
200
+ };
201
+ pl: (value: {
202
+ readonly [Stitches.$$PropertyValue]: "paddingLeft";
203
+ }) => {
204
+ paddingLeft: {
205
+ readonly [Stitches.$$PropertyValue]: "paddingLeft";
206
+ };
207
+ };
208
+ px: (value: {
209
+ readonly [Stitches.$$PropertyValue]: "paddingLeft";
210
+ }) => {
211
+ paddingLeft: {
212
+ readonly [Stitches.$$PropertyValue]: "paddingLeft";
213
+ };
214
+ paddingRight: {
215
+ readonly [Stitches.$$PropertyValue]: "paddingLeft";
216
+ };
217
+ };
218
+ py: (value: {
219
+ readonly [Stitches.$$PropertyValue]: "paddingTop";
220
+ }) => {
221
+ paddingTop: {
222
+ readonly [Stitches.$$PropertyValue]: "paddingTop";
223
+ };
224
+ paddingBottom: {
225
+ readonly [Stitches.$$PropertyValue]: "paddingTop";
226
+ };
227
+ };
228
+ m: (value: {
229
+ readonly [Stitches.$$PropertyValue]: "margin";
230
+ }) => {
231
+ margin: {
232
+ readonly [Stitches.$$PropertyValue]: "margin";
233
+ };
234
+ };
235
+ mt: (value: {
236
+ readonly [Stitches.$$PropertyValue]: "marginTop";
237
+ }) => {
238
+ marginTop: {
239
+ readonly [Stitches.$$PropertyValue]: "marginTop";
240
+ };
241
+ };
242
+ mr: (value: {
243
+ readonly [Stitches.$$PropertyValue]: "marginRight";
244
+ }) => {
245
+ marginRight: {
246
+ readonly [Stitches.$$PropertyValue]: "marginRight";
247
+ };
248
+ };
249
+ mb: (value: {
250
+ readonly [Stitches.$$PropertyValue]: "marginBottom";
251
+ }) => {
252
+ marginBottom: {
253
+ readonly [Stitches.$$PropertyValue]: "marginBottom";
254
+ };
255
+ };
256
+ ml: (value: {
257
+ readonly [Stitches.$$PropertyValue]: "marginLeft";
258
+ }) => {
259
+ marginLeft: {
260
+ readonly [Stitches.$$PropertyValue]: "marginLeft";
261
+ };
262
+ };
263
+ mx: (value: {
264
+ readonly [Stitches.$$PropertyValue]: "marginLeft";
265
+ }) => {
266
+ marginLeft: {
267
+ readonly [Stitches.$$PropertyValue]: "marginLeft";
268
+ };
269
+ marginRight: {
270
+ readonly [Stitches.$$PropertyValue]: "marginLeft";
271
+ };
272
+ };
273
+ my: (value: {
274
+ readonly [Stitches.$$PropertyValue]: "marginTop";
275
+ }) => {
276
+ marginTop: {
277
+ readonly [Stitches.$$PropertyValue]: "marginTop";
278
+ };
279
+ marginBottom: {
280
+ readonly [Stitches.$$PropertyValue]: "marginTop";
281
+ };
282
+ };
283
+ ta: (value: {
284
+ readonly [Stitches.$$PropertyValue]: "textAlign";
285
+ }) => {
286
+ textAlign: {
287
+ readonly [Stitches.$$PropertyValue]: "textAlign";
288
+ };
289
+ };
290
+ fd: (value: {
291
+ readonly [Stitches.$$PropertyValue]: "flexDirection";
292
+ }) => {
293
+ flexDirection: {
294
+ readonly [Stitches.$$PropertyValue]: "flexDirection";
295
+ };
296
+ };
297
+ fw: (value: {
298
+ readonly [Stitches.$$PropertyValue]: "flexWrap";
299
+ }) => {
300
+ flexWrap: {
301
+ readonly [Stitches.$$PropertyValue]: "flexWrap";
302
+ };
303
+ };
304
+ ai: (value: {
305
+ readonly [Stitches.$$PropertyValue]: "alignItems";
306
+ }) => {
307
+ alignItems: {
308
+ readonly [Stitches.$$PropertyValue]: "alignItems";
309
+ };
310
+ };
311
+ ac: (value: {
312
+ readonly [Stitches.$$PropertyValue]: "alignContent";
313
+ }) => {
314
+ alignContent: {
315
+ readonly [Stitches.$$PropertyValue]: "alignContent";
316
+ };
317
+ };
318
+ jc: (value: {
319
+ readonly [Stitches.$$PropertyValue]: "justifyContent";
320
+ }) => {
321
+ justifyContent: {
322
+ readonly [Stitches.$$PropertyValue]: "justifyContent";
323
+ };
324
+ };
325
+ as: (value: {
326
+ readonly [Stitches.$$PropertyValue]: "alignSelf";
327
+ }) => {
328
+ alignSelf: {
329
+ readonly [Stitches.$$PropertyValue]: "alignSelf";
330
+ };
331
+ };
332
+ fg: (value: {
333
+ readonly [Stitches.$$PropertyValue]: "flexGrow";
334
+ }) => {
335
+ flexGrow: {
336
+ readonly [Stitches.$$PropertyValue]: "flexGrow";
337
+ };
338
+ };
339
+ fs: (value: {
340
+ readonly [Stitches.$$PropertyValue]: "flexShrink";
341
+ }) => {
342
+ flexShrink: {
343
+ readonly [Stitches.$$PropertyValue]: "flexShrink";
344
+ };
345
+ };
346
+ fb: (value: {
347
+ readonly [Stitches.$$PropertyValue]: "flexBasis";
348
+ }) => {
349
+ flexBasis: {
350
+ readonly [Stitches.$$PropertyValue]: "flexBasis";
351
+ };
352
+ };
353
+ bc: (value: {
354
+ readonly [Stitches.$$PropertyValue]: "backgroundColor";
355
+ }) => {
356
+ backgroundColor: {
357
+ readonly [Stitches.$$PropertyValue]: "backgroundColor";
358
+ };
359
+ };
360
+ br: (value: {
361
+ readonly [Stitches.$$PropertyValue]: "borderRadius";
362
+ }) => {
363
+ borderRadius: {
364
+ readonly [Stitches.$$PropertyValue]: "borderRadius";
365
+ };
366
+ };
367
+ btrr: (value: {
368
+ readonly [Stitches.$$PropertyValue]: "borderTopRightRadius";
369
+ }) => {
370
+ borderTopRightRadius: {
371
+ readonly [Stitches.$$PropertyValue]: "borderTopRightRadius";
372
+ };
373
+ };
374
+ bbrr: (value: {
375
+ readonly [Stitches.$$PropertyValue]: "borderBottomRightRadius";
376
+ }) => {
377
+ borderBottomRightRadius: {
378
+ readonly [Stitches.$$PropertyValue]: "borderBottomRightRadius";
379
+ };
380
+ };
381
+ bblr: (value: {
382
+ readonly [Stitches.$$PropertyValue]: "borderBottomLeftRadius";
383
+ }) => {
384
+ borderBottomLeftRadius: {
385
+ readonly [Stitches.$$PropertyValue]: "borderBottomLeftRadius";
386
+ };
387
+ };
388
+ btlr: (value: {
389
+ readonly [Stitches.$$PropertyValue]: "borderTopLeftRadius";
390
+ }) => {
391
+ borderTopLeftRadius: {
392
+ readonly [Stitches.$$PropertyValue]: "borderTopLeftRadius";
393
+ };
394
+ };
395
+ bs: (value: {
396
+ readonly [Stitches.$$PropertyValue]: "boxShadow";
397
+ }) => {
398
+ boxShadow: {
399
+ readonly [Stitches.$$PropertyValue]: "boxShadow";
400
+ };
401
+ };
402
+ lh: (value: {
403
+ readonly [Stitches.$$PropertyValue]: "lineHeight";
404
+ }) => {
405
+ lineHeight: {
406
+ readonly [Stitches.$$PropertyValue]: "lineHeight";
407
+ };
408
+ };
409
+ ox: (value: {
410
+ readonly [Stitches.$$PropertyValue]: "overflowX";
411
+ }) => {
412
+ overflowX: {
413
+ readonly [Stitches.$$PropertyValue]: "overflowX";
414
+ };
415
+ };
416
+ oy: (value: {
417
+ readonly [Stitches.$$PropertyValue]: "overflowY";
418
+ }) => {
419
+ overflowY: {
420
+ readonly [Stitches.$$PropertyValue]: "overflowY";
421
+ };
422
+ };
423
+ pe: (value: {
424
+ readonly [Stitches.$$PropertyValue]: "pointerEvents";
425
+ }) => {
426
+ pointerEvents: {
427
+ readonly [Stitches.$$PropertyValue]: "pointerEvents";
428
+ };
429
+ };
430
+ us: (value: {
431
+ readonly [Stitches.$$PropertyValue]: "userSelect";
432
+ }) => {
433
+ WebkitUserSelect: {
434
+ readonly [Stitches.$$PropertyValue]: "userSelect";
435
+ };
436
+ userSelect: {
437
+ readonly [Stitches.$$PropertyValue]: "userSelect";
438
+ };
439
+ };
440
+ userSelect: (value: {
441
+ readonly [Stitches.$$PropertyValue]: "userSelect";
442
+ }) => {
443
+ WebkitUserSelect: {
444
+ readonly [Stitches.$$PropertyValue]: "userSelect";
445
+ };
446
+ userSelect: {
447
+ readonly [Stitches.$$PropertyValue]: "userSelect";
448
+ };
449
+ };
450
+ size: (value: {
451
+ readonly [Stitches.$$PropertyValue]: "width";
452
+ }) => {
453
+ width: {
454
+ readonly [Stitches.$$PropertyValue]: "width";
455
+ };
456
+ height: {
457
+ readonly [Stitches.$$PropertyValue]: "width";
458
+ };
459
+ };
460
+ appearance: (value: {
461
+ readonly [Stitches.$$PropertyValue]: "appearance";
462
+ }) => {
463
+ WebkitAppearance: {
464
+ readonly [Stitches.$$PropertyValue]: "appearance";
465
+ };
466
+ appearance: {
467
+ readonly [Stitches.$$PropertyValue]: "appearance";
468
+ };
469
+ };
470
+ backgroundClip: (value: {
471
+ readonly [Stitches.$$PropertyValue]: "backgroundClip";
472
+ }) => {
473
+ WebkitBackgroundClip: {
474
+ readonly [Stitches.$$PropertyValue]: "backgroundClip";
475
+ };
476
+ backgroundClip: {
477
+ readonly [Stitches.$$PropertyValue]: "backgroundClip";
478
+ };
479
+ };
480
+ }>>;
481
+ declare type ComponentVariants = Stitches.VariantProps<typeof Button>;
482
+ export declare type ComponentProps = ComponentVariants & {
483
+ loading?: boolean;
484
+ };
485
+ export declare const ButtonStory: (props: Omit<ComponentProps, "color" | "ghost" | "fullWidth" | "outlined" | "variant"> & {
486
+ color?: "coordinate" | "test" | "create" | "primary" | "secondary" | undefined;
487
+ ghost?: boolean | undefined;
488
+ fullWidth?: boolean | undefined;
489
+ outlined?: boolean | undefined;
490
+ variant?: "nav" | "tx" | undefined;
491
+ } & {
492
+ children?: import("react").ReactNode;
493
+ disabled?: boolean | undefined;
494
+ }) => JSX.Element;
495
+ export {};