@sentry/scraps 0.1.0 → 0.2.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.
Files changed (188) hide show
  1. package/README.md +13 -21
  2. package/dist/alert/alert.d.ts +25 -0
  3. package/dist/alert/alert.js +262 -0
  4. package/dist/alert/alertLink.d.ts +32 -0
  5. package/dist/alert/alertLink.js +94 -0
  6. package/dist/alert/index.d.ts +2 -0
  7. package/dist/alert/index.js +2 -0
  8. package/dist/backdrop/backdrop.d.ts +9 -0
  9. package/dist/backdrop/backdrop.js +28 -0
  10. package/dist/backdrop/index.d.ts +1 -0
  11. package/dist/backdrop/index.js +1 -0
  12. package/dist/badge/badge.d.ts +12 -0
  13. package/dist/badge/badge.js +80 -0
  14. package/dist/badge/featureBadge.d.ts +6 -0
  15. package/dist/badge/featureBadge.js +86 -0
  16. package/dist/badge/index.d.ts +3 -0
  17. package/dist/badge/index.js +3 -0
  18. package/dist/badge/tag.d.ts +15 -0
  19. package/dist/badge/tag.js +119 -0
  20. package/dist/boundaryContext.d.ts +2 -0
  21. package/dist/boundaryContext.js +5 -0
  22. package/dist/button/button.d.ts +3 -0
  23. package/dist/button/button.js +83 -0
  24. package/dist/button/buttonBar.d.ts +10 -0
  25. package/dist/button/buttonBar.js +135 -0
  26. package/dist/button/index.d.ts +5 -0
  27. package/dist/button/index.js +4 -0
  28. package/dist/button/linkButton.d.ts +3 -0
  29. package/dist/button/linkButton.js +110 -0
  30. package/dist/button/styles.d.ts +10 -0
  31. package/dist/button/styles.js +247 -0
  32. package/dist/button/types.d.ts +77 -0
  33. package/dist/button/types.js +0 -0
  34. package/dist/button/useButtonFunctionality.d.ts +5 -0
  35. package/dist/button/useButtonFunctionality.js +9 -0
  36. package/dist/checkbox/checkbox.d.ts +20 -0
  37. package/dist/checkbox/checkbox.js +193 -0
  38. package/dist/checkbox/index.d.ts +1 -0
  39. package/dist/checkbox/index.js +1 -0
  40. package/dist/chip/chip.d.ts +128 -0
  41. package/dist/chip/chip.js +364 -0
  42. package/dist/chip/index.d.ts +1 -0
  43. package/dist/chip/index.js +1 -0
  44. package/dist/code/inlineCode.d.ts +1 -0
  45. package/dist/datetime.d.ts +39 -0
  46. package/dist/datetime.js +20 -0
  47. package/dist/descriptionList/descriptionList.d.ts +69 -0
  48. package/dist/descriptionList/descriptionList.js +76 -0
  49. package/dist/descriptionList/index.d.ts +1 -0
  50. package/dist/descriptionList/index.js +1 -0
  51. package/dist/disclosure/disclosure.d.ts +37 -0
  52. package/dist/disclosure/disclosure.js +155 -0
  53. package/dist/disclosure/index.d.ts +1 -0
  54. package/dist/disclosure/index.js +1 -0
  55. package/dist/emptyState/emptyState.d.ts +10 -0
  56. package/dist/emptyState/emptyState.js +81 -0
  57. package/dist/emptyState/index.d.ts +1 -0
  58. package/dist/emptyState/index.js +1 -0
  59. package/dist/hotkey/hotkey.d.ts +22 -0
  60. package/dist/hotkey/hotkey.js +41 -0
  61. package/dist/hotkey/index.d.ts +4 -0
  62. package/dist/hotkey/index.js +3 -0
  63. package/dist/hotkey/kbd.d.ts +1 -0
  64. package/dist/hotkey/keyMappings.d.ts +23 -0
  65. package/dist/hotkey/keyMappings.js +223 -0
  66. package/dist/hotkey/useHotkeys.d.ts +47 -0
  67. package/dist/hotkey/useHotkeys.js +44 -0
  68. package/dist/image/image.d.ts +21 -0
  69. package/dist/image/image.js +20 -0
  70. package/dist/image/index.d.ts +1 -0
  71. package/dist/image/index.js +1 -0
  72. package/dist/info/index.d.ts +2 -0
  73. package/dist/info/index.js +2 -0
  74. package/dist/info/infoText.d.ts +15 -0
  75. package/dist/info/infoText.js +43 -0
  76. package/dist/info/infoTip.d.ts +10 -0
  77. package/dist/info/infoTip.js +54 -0
  78. package/dist/interactionStateLayer/index.d.ts +1 -0
  79. package/dist/interactionStateLayer/index.js +1 -0
  80. package/dist/interactionStateLayer/interactionStateLayer.d.ts +23 -0
  81. package/dist/interactionStateLayer/interactionStateLayer.js +67 -0
  82. package/dist/layout/flex.d.ts +1 -0
  83. package/dist/layout/grid.d.ts +1 -0
  84. package/dist/layout/index.d.ts +1 -1
  85. package/dist/layout/index.js +1 -1
  86. package/dist/layout/stack.d.ts +1 -0
  87. package/dist/layout/styles.d.ts +1 -1
  88. package/dist/layout/surface.d.ts +1 -0
  89. package/dist/link/index.d.ts +2 -0
  90. package/dist/link/index.js +2 -0
  91. package/dist/link/link.d.ts +43 -0
  92. package/dist/link/link.js +71 -0
  93. package/dist/link/linkBehaviorContext.d.ts +14 -0
  94. package/dist/link/linkBehaviorContext.js +31 -0
  95. package/dist/loader/indeterminateLoader.d.ts +1 -0
  96. package/dist/overlay.d.ts +59 -0
  97. package/dist/overlay.js +113 -0
  98. package/dist/overlayArrow.d.ts +9 -0
  99. package/dist/overlayArrow.js +55 -0
  100. package/dist/overlayPositioning.d.ts +61 -0
  101. package/dist/overlayPositioning.js +126 -0
  102. package/dist/panelProvider.d.ts +8 -0
  103. package/dist/panelProvider.js +20 -0
  104. package/dist/quote/quote.js +1 -1
  105. package/dist/radio/index.d.ts +1 -0
  106. package/dist/radio/index.js +1 -0
  107. package/dist/radio/radio.d.ts +9 -0
  108. package/dist/radio/radio.js +77 -0
  109. package/dist/renderToString.d.ts +2 -0
  110. package/dist/renderToString.js +25 -0
  111. package/dist/revealOnHover/index.d.ts +1 -0
  112. package/dist/revealOnHover/index.js +1 -0
  113. package/dist/revealOnHover/revealOnHover.d.ts +20 -0
  114. package/dist/revealOnHover/revealOnHover.js +62 -0
  115. package/dist/segmentedControl/index.d.ts +1 -0
  116. package/dist/segmentedControl/index.js +1 -0
  117. package/dist/segmentedControl/segmentedControl.d.ts +41 -0
  118. package/dist/segmentedControl/segmentedControl.js +217 -0
  119. package/dist/separator/separator.d.ts +4 -3
  120. package/dist/separator/separator.js +1 -1
  121. package/dist/sizeContext.d.ts +9 -0
  122. package/dist/sizeContext.js +13 -0
  123. package/dist/slider/index.d.ts +1 -0
  124. package/dist/slider/index.js +1 -0
  125. package/dist/slider/slider.d.ts +41 -0
  126. package/dist/slider/slider.js +386 -0
  127. package/dist/slot/index.d.ts +1 -0
  128. package/dist/slot/index.js +1 -0
  129. package/dist/slot/knownContexts.d.ts +1 -0
  130. package/dist/slot/knownContexts.js +7 -0
  131. package/dist/slot/slot.d.ts +26 -0
  132. package/dist/slot/slot.js +274 -0
  133. package/dist/statusIndicator/index.d.ts +1 -0
  134. package/dist/statusIndicator/index.js +1 -0
  135. package/dist/statusIndicator/statusIndicator.d.ts +24 -0
  136. package/dist/statusIndicator/statusIndicator.js +130 -0
  137. package/dist/switch/index.d.ts +1 -0
  138. package/dist/switch/index.js +1 -0
  139. package/dist/switch/switch.d.ts +6 -0
  140. package/dist/switch/switch.js +172 -0
  141. package/dist/text/heading.d.ts +1 -0
  142. package/dist/text/index.d.ts +1 -0
  143. package/dist/text/index.js +1 -0
  144. package/dist/text/prose.d.ts +8 -0
  145. package/dist/text/prose.js +45 -0
  146. package/dist/text/text.d.ts +1 -0
  147. package/dist/theme/dark.d.ts +129 -10
  148. package/dist/theme/dark.js +41 -13
  149. package/dist/theme/index.d.ts +3 -12
  150. package/dist/theme/index.js +2 -2
  151. package/dist/theme/light.d.ts +129 -10
  152. package/dist/theme/light.js +42 -14
  153. package/dist/theme/swatch.d.ts +27 -0
  154. package/dist/theme/swatch.js +37 -0
  155. package/dist/theme/theme.d.ts +648 -0
  156. package/dist/theme/theme.js +780 -0
  157. package/dist/theme/types.d.ts +1 -0
  158. package/dist/theme/useInvertedTheme.d.ts +1 -0
  159. package/dist/theme/useInvertedTheme.js +7 -0
  160. package/dist/tooltip/index.d.ts +2 -0
  161. package/dist/tooltip/index.js +2 -0
  162. package/dist/tooltip/tooltip.d.ts +166 -0
  163. package/dist/tooltip/tooltip.js +181 -0
  164. package/dist/tooltip/useDisabledTooltip.d.ts +22 -0
  165. package/dist/tooltip/useDisabledTooltip.js +24 -0
  166. package/dist/trackingContext.d.ts +34 -0
  167. package/dist/trackingContext.js +29 -0
  168. package/dist/translation/index.d.ts +4 -0
  169. package/dist/translation/index.js +4 -0
  170. package/dist/translation/translationContext.d.ts +6 -0
  171. package/dist/translation/translationContext.js +6 -0
  172. package/dist/translation/useTranslation.d.ts +1 -0
  173. package/dist/translation/useTranslation.js +6 -0
  174. package/dist/unreachable.d.ts +1 -0
  175. package/dist/unreachable.js +4 -0
  176. package/dist/useHoverOverlay.d.ts +113 -0
  177. package/dist/useHoverOverlay.js +370 -0
  178. package/dist/useIsInsideInteractiveElement.d.ts +6 -0
  179. package/dist/useIsInsideInteractiveElement.js +31 -0
  180. package/dist/useOverlay.d.ts +82 -0
  181. package/dist/useOverlay.js +216 -0
  182. package/dist/useScrollLock.d.ts +5 -0
  183. package/dist/useScrollLock.js +100 -0
  184. package/dist/useStableMergeRef.d.ts +9 -0
  185. package/dist/useStableMergeRef.js +18 -0
  186. package/package.json +193 -11
  187. package/dist/index.d.ts +0 -9
  188. package/dist/index.js +0 -9
@@ -0,0 +1,648 @@
1
+ /**
2
+ * This file is the source of truth for the theme,
3
+ * it is roughly split into the following sections:
4
+ *
5
+ * - Theme helpers (color generation and aliases)
6
+ * - Common type definitions for certain fields like button kinds and variants
7
+ * - Light and dark theme definitions
8
+ * - Theme type exports
9
+ */
10
+ import type { CSSProperties } from 'react';
11
+ import { type Transition } from 'framer-motion';
12
+ import { darkTheme as baseDarkTheme } from './dark.js';
13
+ import { lightTheme as baseLightTheme } from './light.js';
14
+ import { type Swatch } from './swatch.js';
15
+ import type { MotionDuration } from './types.js';
16
+ type MotionDefinition = Record<MotionDuration, string>;
17
+ type ScrapsTheme = {
18
+ [Key in keyof typeof baseLightTheme]: (typeof baseLightTheme)[Key] | (typeof baseDarkTheme)[Key];
19
+ };
20
+ export interface SentryTheme extends ScrapsTheme, Omit<typeof lightThemeDefinition, keyof ScrapsTheme | 'chart'> {
21
+ chart: {
22
+ getColorPalette: ReturnType<typeof makeChartColorPalette>;
23
+ };
24
+ swatch: Swatch;
25
+ }
26
+ declare const CHART_PALETTE_LIGHT: readonly [readonly ["#7553FF"], readonly ["#7553FF", "#3A1873"], readonly ["#7553FF", "#3A1873", "#F0369A"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838", "#FFD00E"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769"]];
27
+ declare const CHART_PALETTE_DARK: readonly [readonly ["#7553FF"], readonly ["#7553FF", "#50219C"], readonly ["#7553FF", "#50219C", "#F0369A"], readonly ["#7553FF", "#50219C", "#F0369A", "#FF9838"], readonly ["#7553FF", "#50219C", "#F0369A", "#FF9838", "#FFD00E"], readonly ["#7553FF", "#50219C", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5D3EB2"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5D3EB2", "#50219C"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5D3EB2", "#50219C", "#7C2282"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A"], readonly ["#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5D3EB2", "#50219C", "#7C2282", "#B0009C", "#F0369A", "#FA6769"]];
28
+ type ChartColorPalette = typeof CHART_PALETTE_LIGHT | typeof CHART_PALETTE_DARK;
29
+ type ColorLength = (typeof CHART_PALETTE_LIGHT | typeof CHART_PALETTE_DARK)['length'];
30
+ type TupleOf<N extends number, A extends unknown[] = []> = A['length'] extends N ? A : TupleOf<N, [...A, A['length']]>;
31
+ type ValidLengthArgument = TupleOf<ColorLength>[number];
32
+ /**
33
+ * Returns the color palette for a given number of series.
34
+ * If length argument is statically analyzable, the return type will be narrowed
35
+ * to the specific color palette index.
36
+ * @TODO(jonasbadalic) Clarify why we return length+1. For a given length of 1, we should
37
+ * return a single color, not two colors. It smells like either a bug or off by one error.
38
+ * @param length - The number of series to return a color palette for?
39
+ */
40
+ declare function makeChartColorPalette<T extends ChartColorPalette>(palette: T): <Length extends ValidLengthArgument>(length: Length | number | 'all') => T[Length];
41
+ declare const lightThemeDefinition: {
42
+ /**
43
+ * @deprecated do not use this.
44
+ */
45
+ level: {
46
+ orange: "#FF9838";
47
+ };
48
+ chart: {
49
+ getColorPalette: <Length extends ValidLengthArgument>(length: number | "all" | Length) => (readonly [readonly ["#7553FF"], readonly ["#7553FF", "#3A1873"], readonly ["#7553FF", "#3A1873", "#F0369A"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838", "#FFD00E"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800", "#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769"]])[Length];
50
+ };
51
+ swatch: {
52
+ get(input: string): {
53
+ background: string;
54
+ content: string;
55
+ };
56
+ values(): IterableIterator<string>;
57
+ };
58
+ colors: {
59
+ black: string;
60
+ white: string;
61
+ surface500: string;
62
+ surface400: string;
63
+ surface300: string;
64
+ surface200: string;
65
+ surface100: string;
66
+ gray800: string;
67
+ gray700: string;
68
+ gray600: string;
69
+ gray500: string;
70
+ gray400: string;
71
+ gray300: string;
72
+ gray200: string;
73
+ gray100: string;
74
+ blue700: string;
75
+ blue600: string;
76
+ blue500: string;
77
+ blue400: string;
78
+ blue300: string;
79
+ blue200: string;
80
+ blue100: string;
81
+ pink700: string;
82
+ pink600: string;
83
+ pink500: string;
84
+ pink400: string;
85
+ pink300: string;
86
+ pink200: string;
87
+ pink100: string;
88
+ red700: string;
89
+ red600: string;
90
+ red500: string;
91
+ red400: string;
92
+ red300: string;
93
+ red200: string;
94
+ red100: string;
95
+ yellow700: string;
96
+ yellow600: string;
97
+ yellow500: string;
98
+ yellow400: string;
99
+ yellow300: string;
100
+ yellow200: string;
101
+ yellow100: string;
102
+ green700: string;
103
+ green600: string;
104
+ green500: string;
105
+ green400: string;
106
+ green300: string;
107
+ green200: string;
108
+ green100: string;
109
+ chonk: {
110
+ blue400: string;
111
+ pink400: string;
112
+ red400: string;
113
+ yellow400: string;
114
+ green400: string;
115
+ };
116
+ };
117
+ visuallyHidden: import("@emotion/react").SerializedStyles;
118
+ focusRing: (baseShadow?: string) => {
119
+ outline: string;
120
+ boxShadow: string;
121
+ };
122
+ shadow: {
123
+ low: string;
124
+ medium: string;
125
+ high: string;
126
+ };
127
+ tokens: {
128
+ background: {
129
+ primary: string;
130
+ secondary: string;
131
+ tertiary: string;
132
+ overlay: string;
133
+ accent: {
134
+ vibrant: string;
135
+ };
136
+ promotion: {
137
+ vibrant: string;
138
+ };
139
+ danger: {
140
+ vibrant: string;
141
+ };
142
+ warning: {
143
+ vibrant: string;
144
+ };
145
+ success: {
146
+ vibrant: string;
147
+ };
148
+ transparent: {
149
+ neutral: {
150
+ muted: string;
151
+ };
152
+ accent: {
153
+ muted: string;
154
+ };
155
+ promotion: {
156
+ muted: string;
157
+ };
158
+ danger: {
159
+ muted: string;
160
+ };
161
+ warning: {
162
+ muted: string;
163
+ };
164
+ success: {
165
+ muted: string;
166
+ };
167
+ };
168
+ };
169
+ border: {
170
+ primary: string;
171
+ secondary: string;
172
+ neutral: {
173
+ muted: string;
174
+ moderate: string;
175
+ vibrant: string;
176
+ };
177
+ accent: {
178
+ muted: string;
179
+ moderate: string;
180
+ vibrant: string;
181
+ };
182
+ promotion: {
183
+ muted: string;
184
+ moderate: string;
185
+ vibrant: string;
186
+ };
187
+ danger: {
188
+ muted: string;
189
+ moderate: string;
190
+ vibrant: string;
191
+ };
192
+ warning: {
193
+ muted: string;
194
+ moderate: string;
195
+ vibrant: string;
196
+ };
197
+ success: {
198
+ muted: string;
199
+ moderate: string;
200
+ vibrant: string;
201
+ };
202
+ onVibrant: {
203
+ light: string;
204
+ dark: string;
205
+ };
206
+ transparent: {
207
+ neutral: {
208
+ muted: string;
209
+ moderate: string;
210
+ vibrant: string;
211
+ };
212
+ accent: {
213
+ muted: string;
214
+ moderate: string;
215
+ vibrant: string;
216
+ };
217
+ promotion: {
218
+ muted: string;
219
+ moderate: string;
220
+ vibrant: string;
221
+ };
222
+ danger: {
223
+ muted: string;
224
+ moderate: string;
225
+ vibrant: string;
226
+ };
227
+ warning: {
228
+ muted: string;
229
+ moderate: string;
230
+ vibrant: string;
231
+ };
232
+ success: {
233
+ muted: string;
234
+ moderate: string;
235
+ vibrant: string;
236
+ };
237
+ };
238
+ };
239
+ content: {
240
+ primary: string;
241
+ secondary: string;
242
+ accent: string;
243
+ promotion: string;
244
+ danger: string;
245
+ warning: string;
246
+ success: string;
247
+ disabled: string;
248
+ headings: string;
249
+ onVibrant: {
250
+ light: string;
251
+ dark: string;
252
+ };
253
+ };
254
+ dataviz: {
255
+ categorical: readonly [readonly ["#7553FF"], readonly ["#7553FF", "#3A1873"], readonly ["#7553FF", "#3A1873", "#F0369A"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838", "#FFD00E"], readonly ["#7553FF", "#3A1873", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#67C800"], readonly ["#7553FF", "#5533B2", "#3A1873", "#7C2282", "#B82D90", "#F0369A", "#FA6769", "#FF9838", "#FFD00E", "#BACE05", "#67C800"]];
256
+ semantic: {
257
+ neutral: string;
258
+ accent: "#7553FF";
259
+ good: string;
260
+ meh: string;
261
+ bad: string;
262
+ release: string;
263
+ other: string;
264
+ };
265
+ sequential: {
266
+ magma: {
267
+ series5: readonly [string, "#FFD00E", "#FF9838", "#F0369A", "#7553FF"];
268
+ series6: readonly [string, "#FFD00E", "#FA6769", string, "#7C2282", "#3A1873"];
269
+ series7: readonly [string, "#FFD00E", "#FF9838", string, string, "#7C2282", "#3A1873"];
270
+ };
271
+ };
272
+ };
273
+ elevation: {
274
+ high: string;
275
+ low: string;
276
+ };
277
+ focus: {
278
+ default: string;
279
+ invalid: string;
280
+ onVibrant: {
281
+ light: string;
282
+ dark: string;
283
+ };
284
+ };
285
+ graphics: {
286
+ neutral: {
287
+ muted: string;
288
+ moderate: string;
289
+ vibrant: string;
290
+ };
291
+ accent: {
292
+ muted: string;
293
+ moderate: string;
294
+ vibrant: string;
295
+ };
296
+ promotion: {
297
+ muted: string;
298
+ moderate: string;
299
+ vibrant: string;
300
+ };
301
+ danger: {
302
+ muted: string;
303
+ moderate: string;
304
+ vibrant: string;
305
+ };
306
+ warning: {
307
+ muted: string;
308
+ moderate: string;
309
+ vibrant: string;
310
+ };
311
+ success: {
312
+ muted: string;
313
+ moderate: string;
314
+ vibrant: string;
315
+ };
316
+ };
317
+ interactive: {
318
+ chonky: {
319
+ debossed: {
320
+ neutral: {
321
+ content: {
322
+ primary: string;
323
+ secondary: string;
324
+ danger: string;
325
+ };
326
+ background: string;
327
+ chonk: string;
328
+ };
329
+ accent: {
330
+ background: string;
331
+ chonk: string;
332
+ };
333
+ };
334
+ embossed: {
335
+ neutral: {
336
+ content: {
337
+ primary: string;
338
+ secondary: string;
339
+ accent: string;
340
+ };
341
+ background: string;
342
+ chonk: string;
343
+ };
344
+ accent: {
345
+ content: string;
346
+ background: string;
347
+ chonk: string;
348
+ };
349
+ promotion: {
350
+ content: string;
351
+ background: string;
352
+ chonk: string;
353
+ };
354
+ danger: {
355
+ content: string;
356
+ background: string;
357
+ chonk: string;
358
+ };
359
+ warning: {
360
+ content: string;
361
+ background: string;
362
+ chonk: string;
363
+ };
364
+ success: {
365
+ content: string;
366
+ background: string;
367
+ chonk: string;
368
+ };
369
+ };
370
+ };
371
+ disabled: string;
372
+ link: {
373
+ neutral: {
374
+ rest: string;
375
+ hover: string;
376
+ active: string;
377
+ };
378
+ accent: {
379
+ rest: string;
380
+ hover: string;
381
+ active: string;
382
+ };
383
+ };
384
+ transparent: {
385
+ neutral: {
386
+ border: string;
387
+ content: {
388
+ primary: string;
389
+ secondary: string;
390
+ headings: string;
391
+ };
392
+ background: {
393
+ rest: string;
394
+ hover: string;
395
+ active: string;
396
+ };
397
+ };
398
+ accent: {
399
+ border: string;
400
+ content: {
401
+ primary: string;
402
+ secondary: string;
403
+ headings: string;
404
+ };
405
+ background: {
406
+ rest: string;
407
+ hover: string;
408
+ active: string;
409
+ };
410
+ selected: {
411
+ background: {
412
+ rest: string;
413
+ hover: string;
414
+ active: string;
415
+ };
416
+ };
417
+ };
418
+ };
419
+ };
420
+ syntax: {
421
+ base: string;
422
+ codeBackground: string;
423
+ comment: string;
424
+ function: string;
425
+ hightlightAccent: string;
426
+ hightlightBackground: string;
427
+ inlineCode: string;
428
+ keyWord: string;
429
+ operator: string;
430
+ property: string;
431
+ punctuation: string;
432
+ selector: string;
433
+ variable: string;
434
+ ansi: {
435
+ black: string;
436
+ blue: string;
437
+ brightBlack: string;
438
+ brightBlue: string;
439
+ brightCyan: string;
440
+ brightGreen: string;
441
+ brightMagenta: string;
442
+ brightRed: string;
443
+ brightWhite: string;
444
+ brightYellow: string;
445
+ cyan: string;
446
+ green: string;
447
+ magenta: string;
448
+ red: string;
449
+ white: string;
450
+ yellow: string;
451
+ };
452
+ };
453
+ };
454
+ font: {
455
+ size: {
456
+ xs: "11px";
457
+ sm: "12px";
458
+ md: "14px";
459
+ lg: "16px";
460
+ xl: "20px";
461
+ '2xl': "24px";
462
+ '3xl': "32px";
463
+ '4xl': "40px";
464
+ };
465
+ weight: {
466
+ sans: {
467
+ regular: 400;
468
+ medium: 500;
469
+ };
470
+ mono: {
471
+ regular: 425;
472
+ medium: 500;
473
+ };
474
+ };
475
+ family: {
476
+ sans: "Rubik, 'Avenir Next', sans-serif";
477
+ mono: "'Roboto Mono', Monaco, Consolas, 'Courier New', monospace";
478
+ };
479
+ lineHeight: {
480
+ compressed: 1;
481
+ default: 1.2;
482
+ comfortable: 1.4;
483
+ fixed: "1rem";
484
+ };
485
+ };
486
+ space: {
487
+ '0': "0px";
488
+ '2xs': "2px";
489
+ xs: "4px";
490
+ sm: "6px";
491
+ md: "8px";
492
+ lg: "12px";
493
+ xl: "16px";
494
+ '2xl': "24px";
495
+ '3xl': "32px";
496
+ };
497
+ size: {
498
+ '2xs': "48px";
499
+ xs: "64px";
500
+ sm: "80px";
501
+ md: "128px";
502
+ lg: "256px";
503
+ xl: "512px";
504
+ '2xl': "640px";
505
+ '3xl': "768px";
506
+ '4xl': "960px";
507
+ '5xl': "1024px";
508
+ '6xl': "1280px";
509
+ '7xl': "1440px";
510
+ };
511
+ border: {
512
+ '0': "0px";
513
+ md: "1px";
514
+ lg: "1.5px";
515
+ xl: "2px";
516
+ '2xl': "4px";
517
+ };
518
+ radius: {
519
+ '0': "0px";
520
+ '2xs': "3px";
521
+ xs: "4px";
522
+ sm: "5px";
523
+ md: "6px";
524
+ lg: "8px";
525
+ xl: "12px";
526
+ '2xl': "16px";
527
+ full: "999px";
528
+ };
529
+ elevation: {
530
+ sm: "1px";
531
+ md: "2px";
532
+ lg: "4px";
533
+ xl: "6px";
534
+ };
535
+ breakpoints: {
536
+ '2xs': "0px";
537
+ xs: "500px";
538
+ sm: "800px";
539
+ md: "992px";
540
+ lg: "1200px";
541
+ xl: "1440px";
542
+ '2xl': "2560px";
543
+ };
544
+ container: {
545
+ zero: "0px";
546
+ '3xs': "320px";
547
+ '2xs': "384px";
548
+ xs: "448px";
549
+ sm: "512px";
550
+ md: "576px";
551
+ lg: "640px";
552
+ xl: "768px";
553
+ '2xl': "896px";
554
+ '3xl': "1024px";
555
+ '4xl': "1152px";
556
+ '5xl': "1280px";
557
+ };
558
+ motion: {
559
+ smooth: MotionDefinition;
560
+ snap: MotionDefinition;
561
+ enter: MotionDefinition;
562
+ exit: MotionDefinition;
563
+ spring: MotionDefinition;
564
+ framer: {
565
+ smooth: Record<MotionDuration, Transition>;
566
+ snap: Record<MotionDuration, Transition>;
567
+ enter: Record<MotionDuration, Transition>;
568
+ exit: Record<MotionDuration, Transition>;
569
+ spring: Record<MotionDuration, Transition>;
570
+ };
571
+ };
572
+ zIndex: {
573
+ readonly initial: 1;
574
+ readonly truncationFullValue: 10;
575
+ readonly header: 1000;
576
+ readonly dropdown: 1001;
577
+ readonly stickyHeader: 1002;
578
+ readonly widgetBuilderDrawer: 1016;
579
+ readonly sidebarPanel: 1019;
580
+ readonly sidebar: 1020;
581
+ readonly sentryErrorEmbed: 1090;
582
+ readonly drawer: 9999;
583
+ readonly modal: 10000;
584
+ readonly toast: 10001;
585
+ readonly hovercard: 10002;
586
+ readonly tooltip: 10003;
587
+ };
588
+ form: {
589
+ readonly md: {
590
+ readonly height: "36px";
591
+ readonly minHeight: "36px";
592
+ readonly fontSize: "0.875rem";
593
+ readonly lineHeight: "1rem";
594
+ readonly paddingLeft: 16;
595
+ readonly paddingRight: 16;
596
+ readonly paddingTop: 12;
597
+ readonly paddingBottom: 12;
598
+ readonly borderRadius: "8px";
599
+ };
600
+ readonly sm: {
601
+ readonly height: "32px";
602
+ readonly minHeight: "32px";
603
+ readonly fontSize: "0.875rem";
604
+ readonly lineHeight: "1rem";
605
+ readonly paddingLeft: 12;
606
+ readonly paddingRight: 12;
607
+ readonly paddingTop: 8;
608
+ readonly paddingBottom: 8;
609
+ readonly borderRadius: "6px";
610
+ };
611
+ readonly xs: {
612
+ readonly height: "28px";
613
+ readonly minHeight: "28px";
614
+ readonly fontSize: "0.75rem";
615
+ readonly lineHeight: "1rem";
616
+ readonly paddingLeft: 8;
617
+ readonly paddingRight: 8;
618
+ readonly paddingTop: 6;
619
+ readonly paddingBottom: 6;
620
+ readonly borderRadius: "5px";
621
+ };
622
+ };
623
+ type: "light" | "dark";
624
+ };
625
+ /**
626
+ * @deprecated use useTheme hook instead of directly importing the theme. If you require a theme for your tests, use ThemeFixture.
627
+ */
628
+ export declare const lightTheme: SentryTheme;
629
+ /**
630
+ * @deprecated use useTheme hook instead of directly importing the theme. If you require a theme for your tests, use ThemeFixture.
631
+ */
632
+ export declare const darkTheme: SentryTheme;
633
+ declare module '@emotion/react' {
634
+ /**
635
+ * Configure Emotion to use our theme
636
+ */
637
+ interface Theme extends SentryTheme {
638
+ }
639
+ }
640
+ export type StrictCSSObject = {
641
+ [K in keyof CSSProperties]?: CSSProperties[K];
642
+ } & Partial<{
643
+ [key: `&${string}`]: StrictCSSObject;
644
+ [key: `> ${string}:last-child`]: StrictCSSObject;
645
+ [key: `> ${string}:first-child`]: StrictCSSObject;
646
+ [key: `--${string}`]: string;
647
+ }>;
648
+ export {};