@equinor/eds-core-react 0.14.0-dev.20210930

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 (224) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/core-react.cjs.js +18695 -0
  4. package/dist/core-react.esm.js +18625 -0
  5. package/dist/core-react.umd.js +18697 -0
  6. package/dist/types/components/Accordion/Accordion.d.ts +4 -0
  7. package/dist/types/components/Accordion/Accordion.tokens.d.ts +9 -0
  8. package/dist/types/components/Accordion/Accordion.types.d.ts +6 -0
  9. package/dist/types/components/Accordion/AccordionHeader.d.ts +35 -0
  10. package/dist/types/components/Accordion/AccordionHeaderTitle.d.ts +14 -0
  11. package/dist/types/components/Accordion/AccordionItem.d.ts +19 -0
  12. package/dist/types/components/Accordion/AccordionPanel.d.ts +18 -0
  13. package/dist/types/components/Accordion/index.d.ts +15 -0
  14. package/dist/types/components/Avatar/Avatar.d.ts +23 -0
  15. package/dist/types/components/Avatar/Avatar.tokens.d.ts +10 -0
  16. package/dist/types/components/Avatar/index.d.ts +1 -0
  17. package/dist/types/components/Banner/Banner.d.ts +7 -0
  18. package/dist/types/components/Banner/Banner.tokens.d.ts +9 -0
  19. package/dist/types/components/Banner/BannerActions.d.ts +11 -0
  20. package/dist/types/components/Banner/BannerIcon.d.ts +15 -0
  21. package/dist/types/components/Banner/BannerMessage.d.ts +10 -0
  22. package/dist/types/components/Banner/index.d.ts +12 -0
  23. package/dist/types/components/Breadcrumbs/Breadcrumb.d.ts +11 -0
  24. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +11 -0
  25. package/dist/types/components/Breadcrumbs/Breadcrumbs.tokens.d.ts +2 -0
  26. package/dist/types/components/Breadcrumbs/index.d.ts +8 -0
  27. package/dist/types/components/Button/Button.d.ts +43 -0
  28. package/dist/types/components/Button/Button.types.d.ts +12 -0
  29. package/dist/types/components/Button/InnerFullWidth.d.ts +2 -0
  30. package/dist/types/components/Button/index.d.ts +1 -0
  31. package/dist/types/components/Button/tokens/button.d.ts +2 -0
  32. package/dist/types/components/Button/tokens/contained.d.ts +4 -0
  33. package/dist/types/components/Button/tokens/ghost.d.ts +4 -0
  34. package/dist/types/components/Button/tokens/icon.d.ts +4 -0
  35. package/dist/types/components/Button/tokens/index.d.ts +8 -0
  36. package/dist/types/components/Button/tokens/outlined.d.ts +4 -0
  37. package/dist/types/components/Card/Card.d.ts +9 -0
  38. package/dist/types/components/Card/Card.tokens.d.ts +6 -0
  39. package/dist/types/components/Card/CardActions.d.ts +13 -0
  40. package/dist/types/components/Card/CardHeader.d.ts +3 -0
  41. package/dist/types/components/Card/CardHeaderTitle.d.ts +3 -0
  42. package/dist/types/components/Card/CardMedia.d.ts +9 -0
  43. package/dist/types/components/Card/index.d.ts +14 -0
  44. package/dist/types/components/Checkbox/Checkbox.d.ts +15 -0
  45. package/dist/types/components/Checkbox/Checkbox.tokens.d.ts +4 -0
  46. package/dist/types/components/Checkbox/Input.d.ts +12 -0
  47. package/dist/types/components/Checkbox/index.d.ts +1 -0
  48. package/dist/types/components/Chip/Chip.d.ts +17 -0
  49. package/dist/types/components/Chip/Chip.tokens.d.ts +8 -0
  50. package/dist/types/components/Chip/Icon.d.ts +6 -0
  51. package/dist/types/components/Chip/index.d.ts +1 -0
  52. package/dist/types/components/Combobox/Combobox.d.ts +55 -0
  53. package/dist/types/components/Combobox/Combobox.tokens.d.ts +3 -0
  54. package/dist/types/components/Combobox/index.d.ts +1 -0
  55. package/dist/types/components/Dialog/Actions.d.ts +3 -0
  56. package/dist/types/components/Dialog/CustomContent.d.ts +9 -0
  57. package/dist/types/components/Dialog/Dialog.d.ts +3 -0
  58. package/dist/types/components/Dialog/Dialog.tokens.d.ts +4 -0
  59. package/dist/types/components/Dialog/Title.d.ts +3 -0
  60. package/dist/types/components/Dialog/index.d.ts +12 -0
  61. package/dist/types/components/Divider/Divider.d.ts +17 -0
  62. package/dist/types/components/Divider/Divider.tokens.d.ts +12 -0
  63. package/dist/types/components/Divider/index.d.ts +1 -0
  64. package/dist/types/components/EdsProvider/eds.context.d.ts +15 -0
  65. package/dist/types/components/EdsProvider/index.d.ts +1 -0
  66. package/dist/types/components/Icon/Icon.d.ts +20 -0
  67. package/dist/types/components/Icon/Icon.types.d.ts +11 -0
  68. package/dist/types/components/Icon/index.d.ts +5 -0
  69. package/dist/types/components/Icon/library.d.ts +8 -0
  70. package/dist/types/components/Input/Input.d.ts +26 -0
  71. package/dist/types/components/Input/Input.tokens.d.ts +12 -0
  72. package/dist/types/components/Input/index.d.ts +1 -0
  73. package/dist/types/components/Label/Label.d.ts +11 -0
  74. package/dist/types/components/Label/Label.tokens.d.ts +4 -0
  75. package/dist/types/components/Label/index.d.ts +1 -0
  76. package/dist/types/components/List/List.d.ts +14 -0
  77. package/dist/types/components/List/List.tokens.d.ts +4 -0
  78. package/dist/types/components/List/ListItem.d.ts +4 -0
  79. package/dist/types/components/List/index.d.ts +8 -0
  80. package/dist/types/components/Menu/Menu.context.d.ts +15 -0
  81. package/dist/types/components/Menu/Menu.d.ts +27 -0
  82. package/dist/types/components/Menu/Menu.tokens.d.ts +4 -0
  83. package/dist/types/components/Menu/Menu.types.d.ts +1 -0
  84. package/dist/types/components/Menu/MenuItem.d.ts +21 -0
  85. package/dist/types/components/Menu/MenuList.d.ts +8 -0
  86. package/dist/types/components/Menu/MenuSection.d.ts +11 -0
  87. package/dist/types/components/Menu/index.d.ts +10 -0
  88. package/dist/types/components/Pagination/Pagination.d.ts +25 -0
  89. package/dist/types/components/Pagination/Pagination.tokens.d.ts +2 -0
  90. package/dist/types/components/Pagination/PaginationItem.d.ts +8 -0
  91. package/dist/types/components/Pagination/index.d.ts +1 -0
  92. package/dist/types/components/Pagination/paginationControl.d.ts +1 -0
  93. package/dist/types/components/Paper/Paper.d.ts +8 -0
  94. package/dist/types/components/Paper/Paper.tokens.d.ts +12 -0
  95. package/dist/types/components/Paper/index.d.ts +1 -0
  96. package/dist/types/components/Popover/Popover.d.ts +22 -0
  97. package/dist/types/components/Popover/Popover.tokens.d.ts +4 -0
  98. package/dist/types/components/Popover/PopoverContent.d.ts +3 -0
  99. package/dist/types/components/Popover/PopoverTitle.d.ts +3 -0
  100. package/dist/types/components/Popover/index.d.ts +10 -0
  101. package/dist/types/components/Progress/Circular/CircularProgress.d.ts +16 -0
  102. package/dist/types/components/Progress/Circular/CircularProgress.tokens.d.ts +8 -0
  103. package/dist/types/components/Progress/Dots/DotProgress.d.ts +11 -0
  104. package/dist/types/components/Progress/Dots/DotProgress.tokens.d.ts +5 -0
  105. package/dist/types/components/Progress/Linear/LinearProgress.d.ts +18 -0
  106. package/dist/types/components/Progress/Linear/LinearProgress.tokens.d.ts +7 -0
  107. package/dist/types/components/Progress/Star/StarProgress.d.ts +14 -0
  108. package/dist/types/components/Progress/Star/StarProgress.tokens.d.ts +2 -0
  109. package/dist/types/components/Progress/index.d.ts +15 -0
  110. package/dist/types/components/Radio/Radio.d.ts +10 -0
  111. package/dist/types/components/Radio/Radio.tokens.d.ts +4 -0
  112. package/dist/types/components/Radio/index.d.ts +1 -0
  113. package/dist/types/components/Scrim/Scrim.d.ts +15 -0
  114. package/dist/types/components/Scrim/Scrim.tokens.d.ts +2 -0
  115. package/dist/types/components/Scrim/index.d.ts +1 -0
  116. package/dist/types/components/Search/Search.d.ts +3 -0
  117. package/dist/types/components/Search/Search.tokens.d.ts +4 -0
  118. package/dist/types/components/Search/index.d.ts +1 -0
  119. package/dist/types/components/Select/MultiSelect/MultiSelect.d.ts +48 -0
  120. package/dist/types/components/Select/MultiSelect/index.d.ts +1 -0
  121. package/dist/types/components/Select/NativeSelect/NativeSelect.d.ts +29 -0
  122. package/dist/types/components/Select/NativeSelect/NativeSelect.tokens.d.ts +4 -0
  123. package/dist/types/components/Select/NativeSelect/index.d.ts +1 -0
  124. package/dist/types/components/Select/Select.tokens.d.ts +3 -0
  125. package/dist/types/components/Select/SingleSelect/SingleSelect.d.ts +48 -0
  126. package/dist/types/components/Select/SingleSelect/index.d.ts +1 -0
  127. package/dist/types/components/Select/commonStyles.d.ts +32 -0
  128. package/dist/types/components/Select/index.d.ts +3 -0
  129. package/dist/types/components/SideSheet/SideSheet.d.ts +21 -0
  130. package/dist/types/components/SideSheet/SideSheet.tokens.d.ts +10 -0
  131. package/dist/types/components/SideSheet/index.d.ts +1 -0
  132. package/dist/types/components/Slider/MinMax.d.ts +5 -0
  133. package/dist/types/components/Slider/Output.d.ts +9 -0
  134. package/dist/types/components/Slider/Slider.d.ts +49 -0
  135. package/dist/types/components/Slider/Slider.tokens.d.ts +4 -0
  136. package/dist/types/components/Slider/SliderInput.d.ts +21 -0
  137. package/dist/types/components/Slider/index.d.ts +1 -0
  138. package/dist/types/components/Snackbar/Snackbar.d.ts +21 -0
  139. package/dist/types/components/Snackbar/Snackbar.tokens.d.ts +4 -0
  140. package/dist/types/components/Snackbar/SnackbarAction.d.ts +5 -0
  141. package/dist/types/components/Snackbar/index.d.ts +8 -0
  142. package/dist/types/components/Switch/Switch.d.ts +12 -0
  143. package/dist/types/components/Switch/Switch.styles.d.ts +4 -0
  144. package/dist/types/components/Switch/Switch.tokens.d.ts +3 -0
  145. package/dist/types/components/Switch/SwitchDefault.d.ts +6 -0
  146. package/dist/types/components/Switch/SwitchSmall.d.ts +6 -0
  147. package/dist/types/components/Switch/index.d.ts +1 -0
  148. package/dist/types/components/Table/Body.d.ts +3 -0
  149. package/dist/types/components/Table/Caption.d.ts +4 -0
  150. package/dist/types/components/Table/Cell.d.ts +11 -0
  151. package/dist/types/components/Table/DataCell/DataCell.d.ts +8 -0
  152. package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +15 -0
  153. package/dist/types/components/Table/DataCell/index.d.ts +1 -0
  154. package/dist/types/components/Table/Head/Head.d.ts +9 -0
  155. package/dist/types/components/Table/Head/Head.tokens.d.ts +2 -0
  156. package/dist/types/components/Table/Head/index.d.ts +1 -0
  157. package/dist/types/components/Table/HeaderCell/HeaderCell.d.ts +5 -0
  158. package/dist/types/components/Table/HeaderCell/HeaderCell.tokens.d.ts +3 -0
  159. package/dist/types/components/Table/HeaderCell/index.d.ts +1 -0
  160. package/dist/types/components/Table/Inner.context.d.ts +7 -0
  161. package/dist/types/components/Table/Row/Row.d.ts +9 -0
  162. package/dist/types/components/Table/Row/Row.tokens.d.ts +2 -0
  163. package/dist/types/components/Table/Row/index.d.ts +1 -0
  164. package/dist/types/components/Table/Table.d.ts +3 -0
  165. package/dist/types/components/Table/Table.types.d.ts +2 -0
  166. package/dist/types/components/Table/index.d.ts +16 -0
  167. package/dist/types/components/TableOfContents/LinkItem.d.ts +3 -0
  168. package/dist/types/components/TableOfContents/TableOfContents.d.ts +14 -0
  169. package/dist/types/components/TableOfContents/TableOfContents.tokens.d.ts +4 -0
  170. package/dist/types/components/TableOfContents/index.d.ts +8 -0
  171. package/dist/types/components/Tabs/Tab.d.ts +13 -0
  172. package/dist/types/components/Tabs/TabList.d.ts +11 -0
  173. package/dist/types/components/Tabs/TabPanel.d.ts +10 -0
  174. package/dist/types/components/Tabs/TabPanels.d.ts +4 -0
  175. package/dist/types/components/Tabs/Tabs.context.d.ts +13 -0
  176. package/dist/types/components/Tabs/Tabs.d.ts +19 -0
  177. package/dist/types/components/Tabs/Tabs.tokens.d.ts +2 -0
  178. package/dist/types/components/Tabs/Tabs.types.d.ts +1 -0
  179. package/dist/types/components/Tabs/index.d.ts +14 -0
  180. package/dist/types/components/TextField/Field.d.ts +34 -0
  181. package/dist/types/components/TextField/HelperText/HelperText.d.ts +14 -0
  182. package/dist/types/components/TextField/HelperText/HelperText.token.d.ts +15 -0
  183. package/dist/types/components/TextField/HelperText/index.d.ts +1 -0
  184. package/dist/types/components/TextField/Icon/Icon.d.ts +13 -0
  185. package/dist/types/components/TextField/Icon/Icon.tokens.d.ts +14 -0
  186. package/dist/types/components/TextField/Icon/index.d.ts +1 -0
  187. package/dist/types/components/TextField/TextField.context.d.ts +17 -0
  188. package/dist/types/components/TextField/TextField.d.ts +37 -0
  189. package/dist/types/components/TextField/TextField.tokens.d.ts +10 -0
  190. package/dist/types/components/TextField/index.d.ts +1 -0
  191. package/dist/types/components/TextField/types.d.ts +6 -0
  192. package/dist/types/components/Textarea/Textarea.d.ts +30 -0
  193. package/dist/types/components/Textarea/index.d.ts +1 -0
  194. package/dist/types/components/Tooltip/Tooltip.d.ts +22 -0
  195. package/dist/types/components/Tooltip/Tooltip.tokens.d.ts +4 -0
  196. package/dist/types/components/Tooltip/index.d.ts +1 -0
  197. package/dist/types/components/TopBar/Actions.d.ts +3 -0
  198. package/dist/types/components/TopBar/CustomContent.d.ts +3 -0
  199. package/dist/types/components/TopBar/Header.d.ts +3 -0
  200. package/dist/types/components/TopBar/TopBar.d.ts +3 -0
  201. package/dist/types/components/TopBar/TopBar.tokens.d.ts +4 -0
  202. package/dist/types/components/TopBar/index.d.ts +12 -0
  203. package/dist/types/components/Typography/Typography.d.ts +15 -0
  204. package/dist/types/components/Typography/Typography.tokens.d.ts +453 -0
  205. package/dist/types/components/Typography/index.d.ts +1 -0
  206. package/dist/types/hooks/index.d.ts +8 -0
  207. package/dist/types/hooks/useAutoResize.d.ts +1 -0
  208. package/dist/types/hooks/useCombinedRefs.d.ts +3 -0
  209. package/dist/types/hooks/useGlobalKeyPress.d.ts +10 -0
  210. package/dist/types/hooks/useId.d.ts +1 -0
  211. package/dist/types/hooks/useMountedRef.d.ts +1 -0
  212. package/dist/types/hooks/useOutsideClick.d.ts +1 -0
  213. package/dist/types/hooks/usePopper.d.ts +12 -0
  214. package/dist/types/hooks/useToken.d.ts +7 -0
  215. package/dist/types/index.d.ts +35 -0
  216. package/dist/types/utils/index.d.ts +4 -0
  217. package/dist/types/utils/joinHandlers.d.ts +3 -0
  218. package/dist/types/utils/setReactInputValue.d.ts +7 -0
  219. package/dist/types/utils/templates/borders.d.ts +2 -0
  220. package/dist/types/utils/templates/common.d.ts +9 -0
  221. package/dist/types/utils/templates/focus.d.ts +2 -0
  222. package/dist/types/utils/templates/index.d.ts +7 -0
  223. package/package.json +111 -0
  224. package/src/index.ts +37 -0
@@ -0,0 +1,453 @@
1
+ import { ComponentToken } from '@equinor/eds-tokens';
2
+ import type { TypographyTokens } from '@equinor/eds-tokens';
3
+ declare const typography: {
4
+ heading: {
5
+ h1_bold: {
6
+ color: string;
7
+ fontFamily: string;
8
+ fontSize: string;
9
+ fontWeight: number;
10
+ lineHeight: string;
11
+ textAlign: string;
12
+ };
13
+ h1: {
14
+ color: string;
15
+ fontFamily: string;
16
+ fontSize: string;
17
+ fontWeight: number;
18
+ lineHeight: string;
19
+ textAlign: string;
20
+ };
21
+ h2: {
22
+ color: string;
23
+ fontFamily: string;
24
+ fontSize: string;
25
+ fontWeight: number;
26
+ lineHeight: string;
27
+ textAlign: string;
28
+ };
29
+ h3: {
30
+ color: string;
31
+ fontFamily: string;
32
+ fontSize: string;
33
+ fontWeight: number;
34
+ lineHeight: string;
35
+ textAlign: string;
36
+ };
37
+ h4: {
38
+ color: string;
39
+ fontFamily: string;
40
+ fontSize: string;
41
+ fontWeight: number;
42
+ lineHeight: string;
43
+ textAlign: string;
44
+ };
45
+ h5: {
46
+ color: string;
47
+ fontFamily: string;
48
+ fontSize: string;
49
+ fontWeight: number;
50
+ letterSpacing: string;
51
+ lineHeight: string;
52
+ textAlign: string;
53
+ };
54
+ h6: {
55
+ color: string;
56
+ fontFamily: string;
57
+ fontSize: string;
58
+ fontWeight: number;
59
+ letterSpacing: string;
60
+ lineHeight: string;
61
+ textAlign: string;
62
+ };
63
+ };
64
+ navigation: {
65
+ menu_title: {
66
+ color: string;
67
+ fontFamily: string;
68
+ fontSize: string;
69
+ fontWeight: number;
70
+ letterSpacing: string;
71
+ lineHeight: string;
72
+ textAlign: string;
73
+ };
74
+ menu_tabs: {
75
+ color: string;
76
+ fontFamily: string;
77
+ fontSize: string;
78
+ fontWeight: number;
79
+ letterSpacing: string;
80
+ lineHeight: string;
81
+ textAlign: string;
82
+ };
83
+ label: {
84
+ color: string;
85
+ fontFamily: string;
86
+ fontSize: string;
87
+ fontWeight: number;
88
+ lineHeight: string;
89
+ textAlign: string;
90
+ };
91
+ drawer_active: {
92
+ color: string;
93
+ fontFamily: string;
94
+ fontSize: string;
95
+ fontWeight: number;
96
+ letterSpacing: string;
97
+ lineHeight: string;
98
+ textAlign: string;
99
+ };
100
+ drawer_inactive: {
101
+ color: string;
102
+ fontFamily: string;
103
+ fontSize: string;
104
+ fontWeight: number;
105
+ letterSpacing: string;
106
+ lineHeight: string;
107
+ textAlign: string;
108
+ };
109
+ button: {
110
+ color: string;
111
+ fontFamily: string;
112
+ fontSize: string;
113
+ fontWeight: number;
114
+ lineHeight: string;
115
+ textAlign: string;
116
+ };
117
+ breadcrumb: {
118
+ color: string;
119
+ fontFamily: string;
120
+ fontSize: string;
121
+ fontWeight: number;
122
+ lineHeight: string;
123
+ textAlign: string;
124
+ };
125
+ breadcrumb_hover: {
126
+ color: string;
127
+ fontFamily: string;
128
+ fontSize: string;
129
+ fontWeight: number;
130
+ lineHeight: string;
131
+ textDecoration: string;
132
+ textAlign: string;
133
+ };
134
+ menu_title_hover: {
135
+ color: string;
136
+ fontFamily: string;
137
+ fontSize: string;
138
+ fontWeight: number;
139
+ letterSpacing: string;
140
+ lineHeight: string;
141
+ textAlign: string;
142
+ };
143
+ };
144
+ input: {
145
+ label: {
146
+ color: string;
147
+ fontFamily: string;
148
+ fontSize: string;
149
+ fontWeight: number;
150
+ lineHeight: string;
151
+ textAlign: string;
152
+ };
153
+ text: {
154
+ color: string;
155
+ fontFamily: string;
156
+ fontSize: string;
157
+ fontWeight: number;
158
+ letterSpacing: string;
159
+ lineHeight: string;
160
+ textAlign: string;
161
+ };
162
+ text_monospaced: {
163
+ fontFeature: string;
164
+ color: string;
165
+ fontFamily: string;
166
+ fontSize: string;
167
+ fontWeight: number;
168
+ letterSpacing: string;
169
+ lineHeight: string;
170
+ textAlign: string;
171
+ };
172
+ helper: {
173
+ color: string;
174
+ fontFamily: string;
175
+ fontSize: string;
176
+ fontWeight: number;
177
+ letterSpacing: string;
178
+ lineHeight: string;
179
+ textAlign: string;
180
+ };
181
+ };
182
+ paragraph: {
183
+ body_short_italic: {
184
+ color: string;
185
+ fontFamily: string;
186
+ fontSize: string;
187
+ fontWeight: number;
188
+ lineHeight: string;
189
+ fontStyle: string;
190
+ textAlign: string;
191
+ };
192
+ caption: {
193
+ color: string;
194
+ fontFamily: string;
195
+ fontSize: string;
196
+ fontWeight: number;
197
+ lineHeight: string;
198
+ textAlign: string;
199
+ };
200
+ meta: {
201
+ color: string;
202
+ fontFamily: string;
203
+ fontSize: string;
204
+ fontWeight: number;
205
+ lineHeight: string;
206
+ textAlign: string;
207
+ };
208
+ body_short: {
209
+ color: string;
210
+ fontFamily: string;
211
+ fontSize: string;
212
+ fontWeight: number;
213
+ lineHeight: string;
214
+ textAlign: string;
215
+ };
216
+ body_short_bold_italic: {
217
+ color: string;
218
+ fontFamily: string;
219
+ fontSize: string;
220
+ fontWeight: number;
221
+ lineHeight: string;
222
+ fontStyle: string;
223
+ textAlign: string;
224
+ };
225
+ body_short_bold: {
226
+ color: string;
227
+ fontFamily: string;
228
+ fontSize: string;
229
+ fontWeight: number;
230
+ lineHeight: string;
231
+ textAlign: string;
232
+ };
233
+ body_short_link: {
234
+ color: string;
235
+ fontFamily: string;
236
+ fontSize: string;
237
+ fontWeight: number;
238
+ lineHeight: string;
239
+ textDecoration: string;
240
+ textAlign: string;
241
+ };
242
+ overline: {
243
+ color: string;
244
+ fontFamily: string;
245
+ fontSize: string;
246
+ fontWeight: number;
247
+ letterSpacing: string;
248
+ lineHeight: string;
249
+ textTransform: string;
250
+ textAlign: string;
251
+ };
252
+ ingress: {
253
+ color: string;
254
+ fontFamily: string;
255
+ fontSize: string;
256
+ fontWeight: number;
257
+ lineHeight: string;
258
+ textAlign: string;
259
+ };
260
+ body_long: {
261
+ color: string;
262
+ fontFamily: string;
263
+ fontSize: string;
264
+ fontWeight: number;
265
+ lineHeight: string;
266
+ textAlign: string;
267
+ };
268
+ body_long_link: {
269
+ color: string;
270
+ fontFamily: string;
271
+ fontSize: string;
272
+ fontWeight: number;
273
+ lineHeight: string;
274
+ textDecoration: string;
275
+ textAlign: string;
276
+ };
277
+ body_long_italic: {
278
+ color: string;
279
+ fontFamily: string;
280
+ fontSize: string;
281
+ fontWeight: number;
282
+ lineHeight: string;
283
+ fontStyle: string;
284
+ textAlign: string;
285
+ };
286
+ body_long_bold: {
287
+ color: string;
288
+ fontFamily: string;
289
+ fontSize: string;
290
+ fontWeight: number;
291
+ lineHeight: string;
292
+ textAlign: string;
293
+ };
294
+ body_long_bold_italic: {
295
+ color: string;
296
+ fontFamily: string;
297
+ fontSize: string;
298
+ fontWeight: number;
299
+ lineHeight: string;
300
+ fontStyle: string;
301
+ textAlign: string;
302
+ };
303
+ };
304
+ table: {
305
+ cell_header: {
306
+ color: string;
307
+ fontFamily: string;
308
+ fontSize: string;
309
+ fontWeight: number;
310
+ lineHeight: string;
311
+ textAlign: string;
312
+ };
313
+ cell_text: {
314
+ color: string;
315
+ fontFamily: string;
316
+ fontSize: string;
317
+ fontWeight: number;
318
+ lineHeight: string;
319
+ textAlign: string;
320
+ };
321
+ cell_text_bold: {
322
+ color: string;
323
+ fontFamily: string;
324
+ fontSize: string;
325
+ fontWeight: number;
326
+ lineHeight: string;
327
+ textAlign: string;
328
+ };
329
+ cell_text_link: {
330
+ color: string;
331
+ fontFamily: string;
332
+ fontSize: string;
333
+ fontWeight: number;
334
+ lineHeight: string;
335
+ textDecoration: string;
336
+ textAlign: string;
337
+ };
338
+ cell_numeric_monospaced: {
339
+ fontFeature: string;
340
+ color: string;
341
+ fontFamily: string;
342
+ fontSize: string;
343
+ fontWeight: number;
344
+ lineHeight: string;
345
+ textAlign: string;
346
+ };
347
+ };
348
+ _modes: {
349
+ compact: {
350
+ table: {
351
+ cell_header: {
352
+ color: string;
353
+ fontFamily: string;
354
+ fontSize: string;
355
+ fontWeight: number;
356
+ lineHeight: string;
357
+ textAlign: string;
358
+ };
359
+ cell_text: {
360
+ color: string;
361
+ fontFamily: string;
362
+ fontSize: string;
363
+ fontWeight: number;
364
+ lineHeight: string;
365
+ textAlign: string;
366
+ };
367
+ cell_text_bold: {
368
+ color: string;
369
+ fontFamily: string;
370
+ fontSize: string;
371
+ fontWeight: number;
372
+ lineHeight: string;
373
+ textAlign: string;
374
+ };
375
+ cell_text_link: {
376
+ color: string;
377
+ fontFamily: string;
378
+ fontSize: string;
379
+ fontWeight: number;
380
+ lineHeight: string;
381
+ textDecoration: string;
382
+ textAlign: string;
383
+ };
384
+ cell_numeric_monospaced: {
385
+ fontFeature: string;
386
+ color: string;
387
+ fontFamily: string;
388
+ fontSize: string;
389
+ fontWeight: number;
390
+ lineHeight: string;
391
+ textAlign: string;
392
+ };
393
+ };
394
+ };
395
+ };
396
+ ui: {
397
+ tooltip: {
398
+ color: string;
399
+ fontFamily: string;
400
+ fontSize: string;
401
+ fontWeight: number;
402
+ lineHeight: string;
403
+ textAlign: string;
404
+ };
405
+ snackbar: {
406
+ color: string;
407
+ fontFamily: string;
408
+ fontSize: string;
409
+ fontWeight: number;
410
+ lineHeight: string;
411
+ textAlign: string;
412
+ };
413
+ accordion_header: {
414
+ color: string;
415
+ fontFamily: string;
416
+ fontSize: string;
417
+ fontWeight: number;
418
+ lineHeight: string;
419
+ textAlign: string;
420
+ };
421
+ chip__badge: {
422
+ color: string;
423
+ fontFamily: string;
424
+ fontSize: string;
425
+ fontWeight: number;
426
+ lineHeight: string;
427
+ textAlign: string;
428
+ };
429
+ chart: {
430
+ color: string;
431
+ fontFamily: string;
432
+ fontSize: string;
433
+ fontWeight: number;
434
+ lineHeight: string;
435
+ textAlign: string;
436
+ };
437
+ };
438
+ };
439
+ declare const colors: {
440
+ primary: string;
441
+ secondary: string;
442
+ danger: string;
443
+ warning: string;
444
+ success: string;
445
+ disabled: string;
446
+ };
447
+ export declare type QuickTypographyVariants = TypographyTokens['heading'] | TypographyTokens['paragraph'];
448
+ declare const quickVariants: QuickTypographyVariants;
449
+ declare type TypographyVariants = keyof TypographyTokens['heading'] | keyof TypographyTokens['paragraph'] | keyof TypographyTokens['navigation'] | keyof TypographyTokens['input'] | keyof TypographyTokens['ui'] | keyof TypographyTokens['table'];
450
+ declare type ColorVariants = 'primary' | 'secondary' | 'danger' | 'warning' | 'success' | 'disabled';
451
+ declare type TypographyGroups = keyof typeof typography;
452
+ declare const link: ComponentToken;
453
+ export { typography, colors, quickVariants, TypographyVariants, ColorVariants, TypographyGroups, link, };
@@ -0,0 +1 @@
1
+ export * from './Typography';
@@ -0,0 +1,8 @@
1
+ export { useOutsideClick } from './useOutsideClick';
2
+ export { useCombinedRefs } from './useCombinedRefs';
3
+ export * from './usePopper';
4
+ export { useGlobalKeyPress } from './useGlobalKeyPress';
5
+ export { useId } from './useId';
6
+ export { useIsMounted } from './useMountedRef';
7
+ export { useAutoResize } from './useAutoResize';
8
+ export * from './useToken';
@@ -0,0 +1 @@
1
+ export declare const useAutoResize: (targetEl: HTMLElement, maxHeight?: number) => void;
@@ -0,0 +1,3 @@
1
+ import type { RefCallback, Ref } from 'react';
2
+ /** Returns a memoized function that calls passed refs sequentially with passed element */
3
+ export declare const useCombinedRefs: <T extends HTMLElement>(...refs: Ref<T>[]) => (instance: T) => void;
@@ -0,0 +1,10 @@
1
+ declare enum KEY {
2
+ Escape = "Escape",
3
+ Enter = "Enter",
4
+ Tab = "Tab",
5
+ ArrowDown = "ArrowDown",
6
+ ArrowUp = "ArrowUp"
7
+ }
8
+ declare type KEYTYPES = keyof typeof KEY;
9
+ export declare const useGlobalKeyPress: (targetKey: KEYTYPES, callback: (e: KeyboardEvent) => void) => void;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const useId: (idOverride: string, type?: string) => string;
@@ -0,0 +1 @@
1
+ export declare const useIsMounted: () => boolean;
@@ -0,0 +1 @@
1
+ export declare const useOutsideClick: (el: HTMLElement, callback: (e: MouseEvent) => void) => void;
@@ -0,0 +1,12 @@
1
+ import type { CSSProperties } from 'react';
2
+ export declare type Placement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
3
+ export declare const usePopper: (anchorEl: HTMLElement, popperEl: HTMLElement, arrowRef?: HTMLElement | string, placement?: Placement, offset?: number) => {
4
+ styles: {
5
+ [key: string]: CSSProperties;
6
+ };
7
+ attributes: {
8
+ [key: string]: {
9
+ [key: string]: string;
10
+ };
11
+ };
12
+ };
@@ -0,0 +1,7 @@
1
+ import type { ComponentToken } from '@equinor/eds-tokens';
2
+ import type { Density } from '../components/EdsProvider';
3
+ declare type UseToken = (options: {
4
+ density: Density;
5
+ }, token: ComponentToken) => () => ComponentToken;
6
+ export declare const useToken: UseToken;
7
+ export {};
@@ -0,0 +1,35 @@
1
+ import 'focus-visible';
2
+ export * from './components/Button';
3
+ export * from './components/Typography';
4
+ export * from './components/Table';
5
+ export * from './components/Divider';
6
+ export * from './components/TextField';
7
+ export * from './components/Icon';
8
+ export * from './components/List';
9
+ export * from './components/Accordion';
10
+ export * from './components/Tabs';
11
+ export * from './components/Card';
12
+ export * from './components/TopBar';
13
+ export * from './components/Dialog';
14
+ export * from './components/Scrim';
15
+ export * from './components/TableOfContents';
16
+ export * from './components/SideSheet';
17
+ export * from './components/Chip';
18
+ export * from './components/Avatar';
19
+ export * from './components/Search';
20
+ export * from './components/Slider';
21
+ export * from './components/Tooltip';
22
+ export * from './components/Snackbar';
23
+ export * from './components/Popover';
24
+ export * from './components/Banner';
25
+ export * from './components/Progress';
26
+ export * from './components/Breadcrumbs';
27
+ export * from './components/Menu';
28
+ export * from './components/Pagination';
29
+ export * from './components/Select';
30
+ export * from './components/Label';
31
+ export * from './components/Input';
32
+ export * from './components/Checkbox';
33
+ export * from './components/Radio';
34
+ export * from './components/Switch';
35
+ export * from './components/EdsProvider';
@@ -0,0 +1,4 @@
1
+ export * from './templates';
2
+ export { joinHandlers } from './joinHandlers';
3
+ export { setReactInputValue } from './setReactInputValue';
4
+ export declare const trimSpaces: (text: string) => string;
@@ -0,0 +1,3 @@
1
+ declare type Callback<T> = (e: T) => void;
2
+ export declare const joinHandlers: <T>(handler1?: Callback<T>, handler2?: Callback<T>) => Callback<T>;
3
+ export {};
@@ -0,0 +1,7 @@
1
+ declare type ReactInternalHack = {
2
+ _valueTracker?: {
3
+ setValue: (a: string) => void;
4
+ };
5
+ };
6
+ export declare const setReactInputValue: (input: HTMLInputElement & ReactInternalHack, value: string) => void;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { Borders } from '@equinor/eds-tokens';
2
+ export declare const bordersTemplate: (border: Borders) => import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1,9 @@
1
+ import type { FlattenSimpleInterpolation } from 'styled-components';
2
+ export declare type StyledCSS = FlattenSimpleInterpolation;
3
+ declare type Shorthand = (token: {
4
+ width?: string | number;
5
+ style?: string;
6
+ color?: string;
7
+ }) => string;
8
+ export declare const shorthand: Shorthand;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Outline } from '@equinor/eds-tokens';
2
+ export declare const outlineTemplate: (outline: Outline) => import("styled-components").FlattenSimpleInterpolation;
@@ -0,0 +1,7 @@
1
+ import type { FlattenSimpleInterpolation } from 'styled-components';
2
+ import type { Typography, Border, Spacing } from '@equinor/eds-tokens';
3
+ export * from './borders';
4
+ export * from './focus';
5
+ export declare const typographyTemplate: (typography: Partial<Typography>, link?: boolean) => string;
6
+ export declare const spacingsTemplate: ({ left, right, top, bottom, }: Spacing) => FlattenSimpleInterpolation;
7
+ export declare const boxshadowTemplate: (border: Border) => FlattenSimpleInterpolation;