@elastic/eui-theme-common 0.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 (196) hide show
  1. package/LICENSE.txt +6 -0
  2. package/README.md +11 -0
  3. package/lib/cjs/.tsbuildinfo +1 -0
  4. package/lib/cjs/global_styling/functions/index.d.ts +2 -0
  5. package/lib/cjs/global_styling/functions/index.d.ts.map +1 -0
  6. package/lib/cjs/global_styling/functions/index.js +22 -0
  7. package/lib/cjs/global_styling/functions/index.js.map +1 -0
  8. package/lib/cjs/global_styling/functions/size.d.ts +13 -0
  9. package/lib/cjs/global_styling/functions/size.d.ts.map +1 -0
  10. package/lib/cjs/global_styling/functions/size.js +42 -0
  11. package/lib/cjs/global_styling/functions/size.js.map +1 -0
  12. package/lib/cjs/global_styling/index.d.ts +4 -0
  13. package/lib/cjs/global_styling/index.d.ts.map +1 -0
  14. package/lib/cjs/global_styling/index.js +44 -0
  15. package/lib/cjs/global_styling/index.js.map +1 -0
  16. package/lib/cjs/global_styling/types.d.ts +66 -0
  17. package/lib/cjs/global_styling/types.d.ts.map +1 -0
  18. package/lib/cjs/global_styling/types.js +21 -0
  19. package/lib/cjs/global_styling/types.js.map +1 -0
  20. package/lib/cjs/global_styling/variables/_colors_vis.d.ts +13 -0
  21. package/lib/cjs/global_styling/variables/_colors_vis.d.ts.map +1 -0
  22. package/lib/cjs/global_styling/variables/_colors_vis.js +69 -0
  23. package/lib/cjs/global_styling/variables/_colors_vis.js.map +1 -0
  24. package/lib/cjs/global_styling/variables/animations.d.ts +36 -0
  25. package/lib/cjs/global_styling/variables/animations.d.ts.map +1 -0
  26. package/lib/cjs/global_styling/variables/animations.js +38 -0
  27. package/lib/cjs/global_styling/variables/animations.js.map +1 -0
  28. package/lib/cjs/global_styling/variables/borders.d.ts +61 -0
  29. package/lib/cjs/global_styling/variables/borders.d.ts.map +1 -0
  30. package/lib/cjs/global_styling/variables/borders.js +7 -0
  31. package/lib/cjs/global_styling/variables/borders.js.map +1 -0
  32. package/lib/cjs/global_styling/variables/breakpoint.d.ts +15 -0
  33. package/lib/cjs/global_styling/variables/breakpoint.d.ts.map +1 -0
  34. package/lib/cjs/global_styling/variables/breakpoint.js +23 -0
  35. package/lib/cjs/global_styling/variables/breakpoint.js.map +1 -0
  36. package/lib/cjs/global_styling/variables/buttons.d.ts +44 -0
  37. package/lib/cjs/global_styling/variables/buttons.d.ts.map +1 -0
  38. package/lib/cjs/global_styling/variables/buttons.js +7 -0
  39. package/lib/cjs/global_styling/variables/buttons.js.map +1 -0
  40. package/lib/cjs/global_styling/variables/colors.d.ts +245 -0
  41. package/lib/cjs/global_styling/variables/colors.d.ts.map +1 -0
  42. package/lib/cjs/global_styling/variables/colors.js +7 -0
  43. package/lib/cjs/global_styling/variables/colors.js.map +1 -0
  44. package/lib/cjs/global_styling/variables/components.d.ts +69 -0
  45. package/lib/cjs/global_styling/variables/components.d.ts.map +1 -0
  46. package/lib/cjs/global_styling/variables/components.js +7 -0
  47. package/lib/cjs/global_styling/variables/components.js.map +1 -0
  48. package/lib/cjs/global_styling/variables/forms.d.ts +20 -0
  49. package/lib/cjs/global_styling/variables/forms.d.ts.map +1 -0
  50. package/lib/cjs/global_styling/variables/forms.js +7 -0
  51. package/lib/cjs/global_styling/variables/forms.js.map +1 -0
  52. package/lib/cjs/global_styling/variables/index.d.ts +14 -0
  53. package/lib/cjs/global_styling/variables/index.d.ts.map +1 -0
  54. package/lib/cjs/global_styling/variables/index.js +154 -0
  55. package/lib/cjs/global_styling/variables/index.js.map +1 -0
  56. package/lib/cjs/global_styling/variables/levels.d.ts +39 -0
  57. package/lib/cjs/global_styling/variables/levels.d.ts.map +1 -0
  58. package/lib/cjs/global_styling/variables/levels.js +33 -0
  59. package/lib/cjs/global_styling/variables/levels.js.map +1 -0
  60. package/lib/cjs/global_styling/variables/shadow.d.ts +11 -0
  61. package/lib/cjs/global_styling/variables/shadow.d.ts.map +1 -0
  62. package/lib/cjs/global_styling/variables/shadow.js +27 -0
  63. package/lib/cjs/global_styling/variables/shadow.js.map +1 -0
  64. package/lib/cjs/global_styling/variables/size.d.ts +26 -0
  65. package/lib/cjs/global_styling/variables/size.d.ts.map +1 -0
  66. package/lib/cjs/global_styling/variables/size.js +17 -0
  67. package/lib/cjs/global_styling/variables/size.js.map +1 -0
  68. package/lib/cjs/global_styling/variables/states.d.ts +25 -0
  69. package/lib/cjs/global_styling/variables/states.d.ts.map +1 -0
  70. package/lib/cjs/global_styling/variables/states.js +7 -0
  71. package/lib/cjs/global_styling/variables/states.js.map +1 -0
  72. package/lib/cjs/global_styling/variables/typography.d.ts +93 -0
  73. package/lib/cjs/global_styling/variables/typography.d.ts.map +1 -0
  74. package/lib/cjs/global_styling/variables/typography.js +48 -0
  75. package/lib/cjs/global_styling/variables/typography.js.map +1 -0
  76. package/lib/cjs/index.d.ts +4 -0
  77. package/lib/cjs/index.d.ts.map +1 -0
  78. package/lib/cjs/index.js +44 -0
  79. package/lib/cjs/index.js.map +1 -0
  80. package/lib/cjs/types.d.ts +33 -0
  81. package/lib/cjs/types.d.ts.map +1 -0
  82. package/lib/cjs/types.js +7 -0
  83. package/lib/cjs/types.js.map +1 -0
  84. package/lib/cjs/utils.d.ts +104 -0
  85. package/lib/cjs/utils.d.ts.map +1 -0
  86. package/lib/cjs/utils.js +382 -0
  87. package/lib/cjs/utils.js.map +1 -0
  88. package/lib/cjs/utils.test.js +411 -0
  89. package/lib/cjs/utils.test.js.map +1 -0
  90. package/lib/esm/.tsbuildinfo +1 -0
  91. package/lib/esm/global_styling/functions/index.d.ts +1 -0
  92. package/lib/esm/global_styling/functions/index.js +9 -0
  93. package/lib/esm/global_styling/functions/index.js.map +1 -0
  94. package/lib/esm/global_styling/functions/size.d.ts +12 -0
  95. package/lib/esm/global_styling/functions/size.js +21 -0
  96. package/lib/esm/global_styling/functions/size.js.map +1 -0
  97. package/lib/esm/global_styling/index.d.ts +3 -0
  98. package/lib/esm/global_styling/index.js +11 -0
  99. package/lib/esm/global_styling/index.js.map +1 -0
  100. package/lib/esm/global_styling/types.d.ts +65 -0
  101. package/lib/esm/global_styling/types.js +13 -0
  102. package/lib/esm/global_styling/types.js.map +1 -0
  103. package/lib/esm/global_styling/variables/_colors_vis.d.ts +12 -0
  104. package/lib/esm/global_styling/variables/_colors_vis.js +60 -0
  105. package/lib/esm/global_styling/variables/_colors_vis.js.map +1 -0
  106. package/lib/esm/global_styling/variables/animations.d.ts +35 -0
  107. package/lib/esm/global_styling/variables/animations.js +25 -0
  108. package/lib/esm/global_styling/variables/animations.js.map +1 -0
  109. package/lib/esm/global_styling/variables/borders.d.ts +60 -0
  110. package/lib/esm/global_styling/variables/borders.js +9 -0
  111. package/lib/esm/global_styling/variables/borders.js.map +1 -0
  112. package/lib/esm/global_styling/variables/breakpoint.d.ts +14 -0
  113. package/lib/esm/global_styling/variables/breakpoint.js +9 -0
  114. package/lib/esm/global_styling/variables/breakpoint.js.map +1 -0
  115. package/lib/esm/global_styling/variables/buttons.d.ts +43 -0
  116. package/lib/esm/global_styling/variables/buttons.js +9 -0
  117. package/lib/esm/global_styling/variables/buttons.js.map +1 -0
  118. package/lib/esm/global_styling/variables/colors.d.ts +244 -0
  119. package/lib/esm/global_styling/variables/colors.js +9 -0
  120. package/lib/esm/global_styling/variables/colors.js.map +1 -0
  121. package/lib/esm/global_styling/variables/components.d.ts +68 -0
  122. package/lib/esm/global_styling/variables/components.js +9 -0
  123. package/lib/esm/global_styling/variables/components.js.map +1 -0
  124. package/lib/esm/global_styling/variables/forms.d.ts +19 -0
  125. package/lib/esm/global_styling/variables/forms.js +9 -0
  126. package/lib/esm/global_styling/variables/forms.js.map +1 -0
  127. package/lib/esm/global_styling/variables/index.d.ts +13 -0
  128. package/lib/esm/global_styling/variables/index.js +21 -0
  129. package/lib/esm/global_styling/variables/index.js.map +1 -0
  130. package/lib/esm/global_styling/variables/levels.d.ts +38 -0
  131. package/lib/esm/global_styling/variables/levels.js +34 -0
  132. package/lib/esm/global_styling/variables/levels.js.map +1 -0
  133. package/lib/esm/global_styling/variables/shadow.d.ts +10 -0
  134. package/lib/esm/global_styling/variables/shadow.js +19 -0
  135. package/lib/esm/global_styling/variables/shadow.js.map +1 -0
  136. package/lib/esm/global_styling/variables/size.d.ts +25 -0
  137. package/lib/esm/global_styling/variables/size.js +20 -0
  138. package/lib/esm/global_styling/variables/size.js.map +1 -0
  139. package/lib/esm/global_styling/variables/states.d.ts +24 -0
  140. package/lib/esm/global_styling/variables/states.js +9 -0
  141. package/lib/esm/global_styling/variables/states.js.map +1 -0
  142. package/lib/esm/global_styling/variables/typography.d.ts +92 -0
  143. package/lib/esm/global_styling/variables/typography.js +35 -0
  144. package/lib/esm/global_styling/variables/typography.js.map +1 -0
  145. package/lib/esm/index.d.ts +3 -0
  146. package/lib/esm/index.js +11 -0
  147. package/lib/esm/index.js.map +1 -0
  148. package/lib/esm/types.d.ts +32 -0
  149. package/lib/esm/types.js +9 -0
  150. package/lib/esm/types.js.map +1 -0
  151. package/lib/esm/utils.d.ts +103 -0
  152. package/lib/esm/utils.js +300 -0
  153. package/lib/esm/utils.js.map +1 -0
  154. package/lib/esm/utils.test.d.ts +1 -0
  155. package/lib/esm/utils.test.js +233 -0
  156. package/lib/esm/utils.test.js.map +1 -0
  157. package/licenses/ELASTIC-LICENSE-2.0.md +93 -0
  158. package/licenses/SSPL-LICENSE.md +557 -0
  159. package/package.json +78 -0
  160. package/src/global_styling/functions/_colors.scss +138 -0
  161. package/src/global_styling/functions/_index.scss +5 -0
  162. package/src/global_styling/functions/_math.scss +1 -0
  163. package/src/global_styling/functions/_math_pow.scss +82 -0
  164. package/src/global_styling/index.scss +18 -0
  165. package/src/global_styling/mixins/_button.scss +149 -0
  166. package/src/global_styling/mixins/_form.scss +273 -0
  167. package/src/global_styling/mixins/_helpers.scss +126 -0
  168. package/src/global_styling/mixins/_index.scss +14 -0
  169. package/src/global_styling/mixins/_link.scss +11 -0
  170. package/src/global_styling/mixins/_loading.scss +6 -0
  171. package/src/global_styling/mixins/_panel.scss +55 -0
  172. package/src/global_styling/mixins/_range.scss +62 -0
  173. package/src/global_styling/mixins/_responsive.scss +44 -0
  174. package/src/global_styling/mixins/_shadow.scss +108 -0
  175. package/src/global_styling/mixins/_size.scss +4 -0
  176. package/src/global_styling/mixins/_states.scss +50 -0
  177. package/src/global_styling/mixins/_tool_tip.scss +25 -0
  178. package/src/global_styling/mixins/_typography.scss +167 -0
  179. package/src/global_styling/react_date_picker/_date_picker.scss +772 -0
  180. package/src/global_styling/react_date_picker/_index.scss +2 -0
  181. package/src/global_styling/react_date_picker/_variables.scss +1 -0
  182. package/src/global_styling/utility/_animations.scss +55 -0
  183. package/src/global_styling/utility/_index.scss +1 -0
  184. package/src/global_styling/variables/_animations.scss +13 -0
  185. package/src/global_styling/variables/_borders.scss +11 -0
  186. package/src/global_styling/variables/_buttons.scss +18 -0
  187. package/src/global_styling/variables/_colors_vis.scss +72 -0
  188. package/src/global_styling/variables/_font_weight.scss +10 -0
  189. package/src/global_styling/variables/_form.scss +8 -0
  190. package/src/global_styling/variables/_index.scss +23 -0
  191. package/src/global_styling/variables/_responsive.scss +9 -0
  192. package/src/global_styling/variables/_shadows.scss +2 -0
  193. package/src/global_styling/variables/_size.scss +15 -0
  194. package/src/global_styling/variables/_states.scss +14 -0
  195. package/src/global_styling/variables/_typography.scss +75 -0
  196. package/src/global_styling/variables/_z_index.scss +34 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttons.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/buttons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,244 @@
1
+ import { ColorModeSwitch, StrictColorModeSwitch } from '../types';
2
+ /**
3
+ * Top 5 colors
4
+ */
5
+ export declare type _EuiThemeBrandColors = {
6
+ /**
7
+ * Main brand color and used for most **call to actions** like buttons and links.
8
+ */
9
+ primary: ColorModeSwitch;
10
+ /**
11
+ * Pulls attention to key indicators like **notifications** or number of selections.
12
+ */
13
+ accent: ColorModeSwitch;
14
+ /**
15
+ * Secondary attention indicator with lower priority.
16
+ */
17
+ accentSecondary: ColorModeSwitch;
18
+ /**
19
+ * Used for **positive** messages/graphics and additive actions.
20
+ */
21
+ success: ColorModeSwitch;
22
+ /**
23
+ * Used for **warnings** and actions that have a potential to be destructive.
24
+ */
25
+ warning: ColorModeSwitch;
26
+ /**
27
+ * Used for **negative** messages/graphics like errors and destructive actions.
28
+ */
29
+ danger: ColorModeSwitch;
30
+ };
31
+ /**
32
+ * Every brand color must have a contrast computed text equivelant
33
+ */
34
+ export declare type _EuiThemeBrandTextColors = {
35
+ /**
36
+ * Typically computed against `colors.primary`
37
+ * @deprecated - use `textPrimary` instead
38
+ */
39
+ primaryText: ColorModeSwitch;
40
+ /**
41
+ * Typically computed against `colors.accent`
42
+ * @deprecated - use `textAccent` instead
43
+ */
44
+ accentText: ColorModeSwitch;
45
+ /**
46
+ * Typically computed against `colors.success`
47
+ * @deprecated - use `textSuccess` instead
48
+ */
49
+ successText: ColorModeSwitch;
50
+ /**
51
+ * Typically computed against `colors.warning`
52
+ * @deprecated - use `textWarning` instead
53
+ */
54
+ warningText: ColorModeSwitch;
55
+ /**
56
+ * Typically computed against `colors.danger`
57
+ * @deprecated - use `textDanger` instead
58
+ */
59
+ dangerText: ColorModeSwitch;
60
+ textPrimary: ColorModeSwitch;
61
+ textAccent: ColorModeSwitch;
62
+ textAccentSecondary: ColorModeSwitch;
63
+ textSuccess: ColorModeSwitch;
64
+ textWarning: ColorModeSwitch;
65
+ textDanger: ColorModeSwitch;
66
+ };
67
+ export declare type _EuiThemeShadeColors = {
68
+ /**
69
+ * Used as the background color of primary **page content and panels** including modals and flyouts.
70
+ * @deprecated - use `white`
71
+ */
72
+ emptyShade: ColorModeSwitch;
73
+ /**
74
+ * Used to lightly shade areas that contain **secondary content** or contain panel-like components.
75
+ * @deprecated - use specific semantic color tokens instead
76
+ */
77
+ lightestShade: ColorModeSwitch;
78
+ /**
79
+ * Used for most **borders** and dividers (horizontal rules).
80
+ * @deprecated - use specific semantic color tokens instead
81
+ */
82
+ lightShade: ColorModeSwitch;
83
+ /**
84
+ * The middle gray for all themes; this is the base for `colors.subdued`.
85
+ * @deprecated - use specific semantic color tokens instead
86
+ */
87
+ mediumShade: ColorModeSwitch;
88
+ /**
89
+ * Slightly subtle graphic color
90
+ * @deprecated - use specific semantic color tokens instead
91
+ */
92
+ darkShade: ColorModeSwitch;
93
+ /**
94
+ * Used as the **text** color and the background color for **inverted components** like tooltips and the control bar.
95
+ * @deprecated - use specific semantic color tokens instead
96
+ */
97
+ darkestShade: ColorModeSwitch;
98
+ /**
99
+ * The opposite of `emptyShade`
100
+ * @deprecated - use`black`
101
+ */
102
+ fullShade: ColorModeSwitch;
103
+ };
104
+ export declare type _EuiThemeTextColors = {
105
+ /**
106
+ * Computed against `colors.darkestShade`
107
+ * @deprecated - use `textParagraph` instead
108
+ */
109
+ text: ColorModeSwitch;
110
+ /**
111
+ * Computed against `colors.text`
112
+ * @deprecated - use `textHeading` instead
113
+ */
114
+ title: ColorModeSwitch;
115
+ /**
116
+ * Computed against `colors.mediumShade`
117
+ * @deprecated - use `textSubdued` instead
118
+ */
119
+ subduedText: ColorModeSwitch;
120
+ /**
121
+ * Computed against `colors.primaryText`
122
+ */
123
+ link: ColorModeSwitch;
124
+ textParagraph: ColorModeSwitch;
125
+ textHeading: ColorModeSwitch;
126
+ textSubdued: ColorModeSwitch;
127
+ textDisabled: ColorModeSwitch;
128
+ textInverse: ColorModeSwitch;
129
+ };
130
+ export declare type _EuiThemeSpecialColors = {
131
+ /**
132
+ * The background color for the **whole window (body)** and is a computed value of `colors.lightestShade`.
133
+ * Provides denominator (background) value for **contrast calculations**.
134
+ * @deprecated - use backgroundPage instead
135
+ */
136
+ body: ColorModeSwitch;
137
+ /**
138
+ * Used to **highlight text** when matching against search strings
139
+ */
140
+ highlight: ColorModeSwitch;
141
+ /**
142
+ * Computed against `colors.darkestShade`
143
+ * @deprecated - use specific semantic tokens instead (e.g. backgroundDisabled, borderDisabled etc)
144
+ */
145
+ disabled: ColorModeSwitch;
146
+ /**
147
+ * Computed against `colors.disabled`
148
+ * @deprecated - use textDisabled instead
149
+ */
150
+ disabledText: ColorModeSwitch;
151
+ /**
152
+ * The base color for shadows that gets `transparentized`
153
+ * at a value based on the `colorMode` and then layered.
154
+ * @deprecated - use specific shadow tokens instead
155
+ */
156
+ shadow: ColorModeSwitch;
157
+ };
158
+ export declare type _EuiThemeBackgroundColors = {
159
+ backgroundBasePrimary: ColorModeSwitch;
160
+ backgroundBaseAccent: ColorModeSwitch;
161
+ backgroundBaseAccentSecondary: ColorModeSwitch;
162
+ backgroundBaseSuccess: ColorModeSwitch;
163
+ backgroundBaseWarning: ColorModeSwitch;
164
+ backgroundBaseDanger: ColorModeSwitch;
165
+ backgroundBaseSubdued: ColorModeSwitch;
166
+ backgroundBasePlain: ColorModeSwitch;
167
+ backgroundBaseDisabled: ColorModeSwitch;
168
+ backgroundBaseFormsPrepend: ColorModeSwitch;
169
+ backgroundBaseFormsControlDisabled: ColorModeSwitch;
170
+ backgroundBaseInteractiveHover: ColorModeSwitch;
171
+ backgroundBaseInteractiveSelect: ColorModeSwitch;
172
+ backgroundBaseInteractiveOverlay: ColorModeSwitch;
173
+ backgroundBaseSkeletonEdge: ColorModeSwitch;
174
+ backgroundBaseSkeletonMiddle: ColorModeSwitch;
175
+ backgroundLightPrimary: ColorModeSwitch;
176
+ backgroundLightAccent: ColorModeSwitch;
177
+ backgroundLightAccentSecondary: ColorModeSwitch;
178
+ backgroundLightSuccess: ColorModeSwitch;
179
+ backgroundLightWarning: ColorModeSwitch;
180
+ backgroundLightDanger: ColorModeSwitch;
181
+ backgroundLightText: ColorModeSwitch;
182
+ backgroundFilledPrimary: ColorModeSwitch;
183
+ backgroundFilledAccent: ColorModeSwitch;
184
+ backgroundFilledAccentSecondary: ColorModeSwitch;
185
+ backgroundFilledSuccess: ColorModeSwitch;
186
+ backgroundFilledWarning: ColorModeSwitch;
187
+ backgroundFilledDanger: ColorModeSwitch;
188
+ backgroundFilledText: ColorModeSwitch;
189
+ };
190
+ /** TODO: remove once usages are re-mapped */
191
+ export declare type _EuiThemeTransparentBackgroundColors = {
192
+ /** @deprecated */
193
+ backgroundTransparent: string;
194
+ /** @deprecated */
195
+ backgroundTransparentPrimary: ColorModeSwitch;
196
+ /** @deprecated */
197
+ backgroundTransparentAccent: ColorModeSwitch;
198
+ /** @deprecated */
199
+ backgroundTransparentAccentSecondary: ColorModeSwitch;
200
+ /** @deprecated */
201
+ backgroundTransparentSuccess: ColorModeSwitch;
202
+ /** @deprecated */
203
+ backgroundTransparentWarning: ColorModeSwitch;
204
+ /** @deprecated */
205
+ backgroundTransparentDanger: ColorModeSwitch;
206
+ /** @deprecated */
207
+ backgroundTransparentSubdued: ColorModeSwitch;
208
+ /** @deprecated */
209
+ backgroundTransparentPlain: ColorModeSwitch;
210
+ };
211
+ export declare type _EuiThemeBorderColors = {
212
+ borderBasePrimary: ColorModeSwitch;
213
+ borderBaseAccent: ColorModeSwitch;
214
+ borderBaseAccentSecondary: ColorModeSwitch;
215
+ borderBaseSuccess: ColorModeSwitch;
216
+ borderBaseWarning: ColorModeSwitch;
217
+ borderBaseDanger: ColorModeSwitch;
218
+ borderBasePlain: ColorModeSwitch;
219
+ borderBaseSubdued: ColorModeSwitch;
220
+ borderBaseDisabled: ColorModeSwitch;
221
+ borderBaseFloating: ColorModeSwitch;
222
+ borderBaseFormsColorSwatch: ColorModeSwitch;
223
+ borderBaseFormsControl: ColorModeSwitch;
224
+ borderStrongPrimary: ColorModeSwitch;
225
+ borderStrongAccent: ColorModeSwitch;
226
+ borderStrongAccentSecondary: ColorModeSwitch;
227
+ borderStrongSuccess: ColorModeSwitch;
228
+ borderStrongWarning: ColorModeSwitch;
229
+ borderStrongDanger: ColorModeSwitch;
230
+ };
231
+ export declare type _EuiThemeConstantColors = {
232
+ /**
233
+ * Purest **white**
234
+ * @deprecated
235
+ */
236
+ ghost: string;
237
+ /**
238
+ * Purest **black**
239
+ * @deprecated
240
+ */
241
+ ink: string;
242
+ };
243
+ export declare type _EuiThemeColorsMode = _EuiThemeBrandColors & _EuiThemeBrandTextColors & _EuiThemeShadeColors & _EuiThemeSpecialColors & _EuiThemeTextColors & _EuiThemeBackgroundColors & _EuiThemeTransparentBackgroundColors & _EuiThemeBorderColors;
244
+ export declare type _EuiThemeColors = StrictColorModeSwitch<_EuiThemeColorsMode> & _EuiThemeConstantColors;
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/colors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,68 @@
1
+ import { ColorModeSwitch, StrictColorModeSwitch } from '../types';
2
+ import { _EuiThemeButtonColors } from './buttons';
3
+ import { _EuiThemeFormColors } from './forms';
4
+ export declare type _EuiThemeComponentColors = {
5
+ buttonGroupBorderColor: ColorModeSwitch;
6
+ buttonGroupBorderColorSelected: ColorModeSwitch;
7
+ badgeBackgroundSubdued: ColorModeSwitch;
8
+ badgeBorderColorHollow: ColorModeSwitch;
9
+ badgeIconButtonBackgroundHover: ColorModeSwitch;
10
+ bottomBarBackground: ColorModeSwitch;
11
+ breadcrumbsApplicationBackground: ColorModeSwitch;
12
+ breadcrumbsApplicationColor: ColorModeSwitch;
13
+ collapsibleNavGroupBackground: ColorModeSwitch;
14
+ collapsibleNavGroupBackgroundDark: ColorModeSwitch;
15
+ dataGridVerticalLineBorderColor: ColorModeSwitch;
16
+ dataGridRowBackgroundStriped: ColorModeSwitch;
17
+ dataGridRowBackgroundHover: ColorModeSwitch;
18
+ dragDropDraggingBackground: ColorModeSwitch;
19
+ dragDropDraggingOverBackground: ColorModeSwitch;
20
+ headerBackground: ColorModeSwitch;
21
+ headerDarkBackground: ColorModeSwitch;
22
+ headerDarkSearchBorderColor: ColorModeSwitch;
23
+ headerDarkSectionItemBackgroundFocus: ColorModeSwitch;
24
+ filterSelectItemBackgroundFocusDisabled: ColorModeSwitch;
25
+ flyoutCloseButtonInsideBackground: ColorModeSwitch;
26
+ keyPadMenuItemBackgroundDisabledSelect: ColorModeSwitch;
27
+ listGroupItemBackgroundPrimaryActive: ColorModeSwitch;
28
+ listGroupItemBackgroundSubduedActive: ColorModeSwitch;
29
+ listGroupItemBackgroundHover: ColorModeSwitch;
30
+ listGroupItemBackgroundPrimaryHover: ColorModeSwitch;
31
+ markBackground: ColorModeSwitch;
32
+ markdownFormatTableBorderColor: ColorModeSwitch;
33
+ popoverPanelBackground: ColorModeSwitch;
34
+ popoverFooterBorderColor: ColorModeSwitch;
35
+ scrollbarTrackColor: ColorModeSwitch;
36
+ sideNavItemEmphasizedBackground: ColorModeSwitch;
37
+ selectableListItemBorderColor: ColorModeSwitch;
38
+ superDatePickerBackgroundSuccees: ColorModeSwitch;
39
+ switchBackgroundOn: ColorModeSwitch;
40
+ switchBackgroundOff: ColorModeSwitch;
41
+ switchUncompressedBackgroundDisabled: ColorModeSwitch;
42
+ switchCompressedBackgroundDisabled: ColorModeSwitch;
43
+ switchMiniBackgroundDisabled: ColorModeSwitch;
44
+ switchThumbBackgroundDisabled: ColorModeSwitch;
45
+ switchThumbBorderOn: ColorModeSwitch;
46
+ switchThumbBorderOff: ColorModeSwitch;
47
+ switchIconDisabled: ColorModeSwitch;
48
+ tableRowBackgroundHover: ColorModeSwitch;
49
+ tableRowBackgroundSelected: ColorModeSwitch;
50
+ tableRowBackgroundSelectedHover: ColorModeSwitch;
51
+ tableRowInteractiveBackgroundHover: ColorModeSwitch;
52
+ tableRowInteractiveBackgroundFocus: ColorModeSwitch;
53
+ tableCellSortableIconColor: ColorModeSwitch;
54
+ tooltipBackground: ColorModeSwitch;
55
+ tooltipBorder: ColorModeSwitch;
56
+ tooltipBorderFloating: ColorModeSwitch;
57
+ tourFooterBackground: ColorModeSwitch;
58
+ treeViewItemBackgroundHover: ColorModeSwitch;
59
+ };
60
+ export declare type _EuiThemeComponents = {
61
+ buttons: StrictColorModeSwitch<_EuiThemeButtonColors>;
62
+ forms: StrictColorModeSwitch<_EuiThemeFormColors>;
63
+ /**
64
+ * internal-only key that holds temporary tokens used while migrating themes
65
+ */
66
+ LIGHT: _EuiThemeComponentColors;
67
+ DARK: _EuiThemeComponentColors;
68
+ };
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/components.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,19 @@
1
+ import { ColorModeSwitch } from '../types';
2
+ export declare type _EuiThemeFormColors = {
3
+ background: ColorModeSwitch;
4
+ backgroundDisabled: ColorModeSwitch;
5
+ backgroundReadOnly: ColorModeSwitch;
6
+ backgroundFocused: ColorModeSwitch;
7
+ backgroundAutofilled: ColorModeSwitch;
8
+ prependBackground: ColorModeSwitch;
9
+ border: ColorModeSwitch;
10
+ borderAutofilled: ColorModeSwitch;
11
+ controlBorder: ColorModeSwitch;
12
+ controlBorderSelected: ColorModeSwitch;
13
+ controlBorderDisabled: ColorModeSwitch;
14
+ controlBackgroundUnselected: ColorModeSwitch;
15
+ controlBackgroundDisabled: ColorModeSwitch;
16
+ colorHasPlaceholder: ColorModeSwitch;
17
+ colorDisabled: ColorModeSwitch;
18
+ iconDisabled: ColorModeSwitch;
19
+ };
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=forms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forms.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/forms.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,13 @@
1
+ export * from './animations';
2
+ export * from './borders';
3
+ export * from './breakpoint';
4
+ export * from './colors';
5
+ export * from './_colors_vis';
6
+ export * from './levels';
7
+ export * from './size';
8
+ export * from './shadow';
9
+ export * from './states';
10
+ export * from './typography';
11
+ export * from './buttons';
12
+ export * from './forms';
13
+ export * from './components';
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ export * from './animations';
9
+ export * from './borders';
10
+ export * from './breakpoint';
11
+ export * from './colors';
12
+ export * from './_colors_vis';
13
+ export * from './levels';
14
+ export * from './size';
15
+ export * from './shadow';
16
+ export * from './states';
17
+ export * from './typography';
18
+ export * from './buttons';
19
+ export * from './forms';
20
+ export * from './components';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { CSSProperties } from 'react';
2
+ /**
3
+ * Z-Index
4
+ *
5
+ * Remember that z-index is relative to parent and based on the stacking context.
6
+ * z-indexes only compete against other z-indexes when they exist as children of
7
+ * that shared parent.
8
+ *
9
+ * That means a popover with a settings of 2, will still show above a modal
10
+ * with a setting of 100, if it is within that modal and not besides it.
11
+ *
12
+ * Generally that means it's a good idea to consider things added to this file
13
+ * as competitive only as siblings.
14
+ *
15
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
16
+ */
17
+ export declare const EuiThemeLevels: readonly ["toast", "modal", "mask", "navigation", "menu", "header", "flyout", "maskBelowHeader", "content"];
18
+ export declare type _EuiThemeLevel = (typeof EuiThemeLevels)[number];
19
+ export declare type _EuiThemeLevels = {
20
+ /** - Default value: 9000 */
21
+ toast: NonNullable<CSSProperties['zIndex']>;
22
+ /** - Default value: 8000 */
23
+ modal: NonNullable<CSSProperties['zIndex']>;
24
+ /** - Default value: 6000 */
25
+ mask: NonNullable<CSSProperties['zIndex']>;
26
+ /** - Default value: 6000 */
27
+ navigation: NonNullable<CSSProperties['zIndex']>;
28
+ /** - Default value: 2000 */
29
+ menu: NonNullable<CSSProperties['zIndex']>;
30
+ /** - Default value: 1000 */
31
+ header: NonNullable<CSSProperties['zIndex']>;
32
+ /** - Default value: 1000 */
33
+ flyout: NonNullable<CSSProperties['zIndex']>;
34
+ /** - Default value: 1000 */
35
+ maskBelowHeader: NonNullable<CSSProperties['zIndex']>;
36
+ /** - Default value: 0 */
37
+ content: NonNullable<CSSProperties['zIndex']>;
38
+ };
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ /**
9
+ * Z-Index
10
+ *
11
+ * Remember that z-index is relative to parent and based on the stacking context.
12
+ * z-indexes only compete against other z-indexes when they exist as children of
13
+ * that shared parent.
14
+ *
15
+ * That means a popover with a settings of 2, will still show above a modal
16
+ * with a setting of 100, if it is within that modal and not besides it.
17
+ *
18
+ * Generally that means it's a good idea to consider things added to this file
19
+ * as competitive only as siblings.
20
+ *
21
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
22
+ */
23
+ export const EuiThemeLevels = [
24
+ 'toast',
25
+ 'modal',
26
+ 'mask',
27
+ 'navigation',
28
+ 'menu',
29
+ 'header',
30
+ 'flyout',
31
+ 'maskBelowHeader',
32
+ 'content',
33
+ ];
34
+ //# sourceMappingURL=levels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"levels.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/levels.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO;IACP,OAAO;IACP,MAAM;IACN,YAAY;IACZ,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,iBAAiB;IACjB,SAAS;CACD,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const EuiThemeShadowSizes: readonly ["xs", "s", "m", "l", "xl"];
2
+ export declare type _EuiThemeShadowSize = (typeof EuiThemeShadowSizes)[number];
3
+ /**
4
+ * Shadow t-shirt sizes descriptions
5
+ */
6
+ export declare const _EuiShadowSizesDescriptions: Record<_EuiThemeShadowSize, string>;
7
+ export interface _EuiThemeShadowCustomColor {
8
+ color?: string;
9
+ property?: 'box-shadow' | 'filter';
10
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ export const EuiThemeShadowSizes = ['xs', 's', 'm', 'l', 'xl'];
9
+ /**
10
+ * Shadow t-shirt sizes descriptions
11
+ */
12
+ export const _EuiShadowSizesDescriptions = {
13
+ xs: 'Very subtle shadow used on small components.',
14
+ s: 'Adds subtle depth, usually used in conjunction with a border.',
15
+ m: 'Used on small sized portalled content like popovers.',
16
+ l: 'Primary shadow used in most cases to add visible depth.',
17
+ xl: 'Very large shadows used for large portalled style containers like modals and flyouts.',
18
+ };
19
+ //# sourceMappingURL=shadow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shadow.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/shadow.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAU,CAAC;AAIxE;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GACtC;IACE,EAAE,EAAE,8CAA8C;IAClD,CAAC,EAAE,+DAA+D;IAClE,CAAC,EAAE,sDAAsD;IACzD,CAAC,EAAE,yDAAyD;IAC5D,EAAE,EAAE,uFAAuF;CAC5F,CAAC"}
@@ -0,0 +1,25 @@
1
+ export declare type _EuiThemeBase = number;
2
+ export declare const EuiThemeSizes: readonly ["xxs", "xs", "s", "m", "base", "l", "xl", "xxl", "xxxl", "xxxxl"];
3
+ export declare type _EuiThemeSize = (typeof EuiThemeSizes)[number];
4
+ export declare type _EuiThemeSizes = {
5
+ /** - Default value: 2px */
6
+ xxs: string;
7
+ /** - Default value: 4px */
8
+ xs: string;
9
+ /** - Default value: 8px */
10
+ s: string;
11
+ /** - Default value: 12px */
12
+ m: string;
13
+ /** - Default value: 16px */
14
+ base: string;
15
+ /** - Default value: 24px */
16
+ l: string;
17
+ /** - Default value: 32px */
18
+ xl: string;
19
+ /** - Default value: 40px */
20
+ xxl: string;
21
+ /** - Default value: 48px */
22
+ xxxl: string;
23
+ /** - Default value: 64px */
24
+ xxxxl: string;
25
+ };
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ export const EuiThemeSizes = [
9
+ 'xxs',
10
+ 'xs',
11
+ 's',
12
+ 'm',
13
+ 'base',
14
+ 'l',
15
+ 'xl',
16
+ 'xxl',
17
+ 'xxxl',
18
+ 'xxxxl',
19
+ ];
20
+ //# sourceMappingURL=size.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"size.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/size.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK;IACL,IAAI;IACJ,GAAG;IACH,GAAG;IACH,MAAM;IACN,GAAG;IACH,IAAI;IACJ,KAAK;IACL,MAAM;IACN,OAAO;CACC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { CSSProperties } from 'react';
2
+ import { ColorModeSwitch } from '../types';
3
+ export interface _EuiThemeFocus {
4
+ /**
5
+ * Default color of the focus ring, some components may override this property
6
+ * - Default value: currentColor
7
+ */
8
+ color: ColorModeSwitch;
9
+ /**
10
+ * Thickness of the outline
11
+ * - Default value: 2px
12
+ */
13
+ width: CSSProperties['borderWidth'];
14
+ /**
15
+ * Used to transparentize the focus background color
16
+ * - Default value: { LIGHT: 0.1, DARK: 0.2 }
17
+ */
18
+ transparency: ColorModeSwitch<number>;
19
+ /**
20
+ * Default focus background color. Not all components set a background color on focus
21
+ * - Default value: `colors.primary` computed with `focus.transparency`
22
+ */
23
+ backgroundColor: ColorModeSwitch;
24
+ }
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=states.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"states.js","sourceRoot":"","sources":["../../../../src/global_styling/variables/states.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}