@zendeskgarden/react-theming 9.0.0-next.7 → 9.0.0-next.9

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 (34) hide show
  1. package/dist/esm/elements/ThemeProvider.js +24 -0
  2. package/dist/esm/elements/palette/index.js +259 -0
  3. package/dist/esm/elements/palette/v8.js +149 -0
  4. package/dist/esm/elements/theme/index.js +224 -0
  5. package/dist/esm/index.js +28 -0
  6. package/dist/esm/types/index.js +11 -0
  7. package/dist/esm/utils/StyledBaseIcon.js +22 -0
  8. package/dist/esm/utils/arrowStyles.js +64 -0
  9. package/dist/esm/utils/focusStyles.js +43 -0
  10. package/dist/esm/utils/getArrowPosition.js +35 -0
  11. package/dist/esm/utils/getCheckeredBackground.js +40 -0
  12. package/dist/esm/utils/getColor.js +153 -0
  13. package/dist/esm/utils/getColorV8.js +72 -0
  14. package/dist/esm/utils/getFloatingPlacements.js +58 -0
  15. package/dist/esm/utils/getFocusBoxShadow.js +45 -0
  16. package/dist/esm/utils/getLineHeight.js +22 -0
  17. package/dist/esm/utils/getMenuPosition.js +11 -0
  18. package/dist/esm/utils/mediaQuery.js +56 -0
  19. package/dist/esm/utils/menuStyles.js +63 -0
  20. package/dist/esm/utils/retrieveComponentStyles.js +19 -0
  21. package/dist/esm/utils/useDocument.js +21 -0
  22. package/dist/esm/utils/useText.js +29 -0
  23. package/dist/esm/utils/useWindow.js +21 -0
  24. package/dist/index.cjs.js +372 -262
  25. package/dist/typings/elements/palette/index.d.ts +0 -24
  26. package/dist/typings/index.d.ts +3 -1
  27. package/dist/typings/types/index.d.ts +43 -1
  28. package/dist/typings/utils/StyledBaseIcon.d.ts +8 -0
  29. package/dist/typings/utils/focusStyles.d.ts +1 -8
  30. package/dist/typings/utils/getCheckeredBackground.d.ts +20 -0
  31. package/dist/typings/utils/getColor.d.ts +3 -24
  32. package/dist/typings/utils/getFocusBoxShadow.d.ts +6 -20
  33. package/package.json +3 -3
  34. package/dist/index.esm.js +0 -1145
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import React from 'react';
8
+ import { ThemeProvider as ThemeProvider$1 } from 'styled-components';
9
+ import DEFAULT_THEME from './theme/index.js';
10
+
11
+ const ThemeProvider = _ref => {
12
+ let {
13
+ theme,
14
+ ...other
15
+ } = _ref;
16
+ return React.createElement(ThemeProvider$1, Object.assign({
17
+ theme: theme
18
+ }, other));
19
+ };
20
+ ThemeProvider.defaultProps = {
21
+ theme: DEFAULT_THEME
22
+ };
23
+
24
+ export { ThemeProvider };
@@ -0,0 +1,259 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ const PALETTE = {
8
+ black: '#000',
9
+ white: '#fff',
10
+ product: {
11
+ support: '#00a656',
12
+ explore: '#30aabc',
13
+ gather: '#f6c8be',
14
+ guide: '#eb4962',
15
+ chat: '#f79a3e',
16
+ talk: '#efc93d',
17
+ sell: '#c38f00'
18
+ },
19
+ grey: {
20
+ 100: '#f8f9f9',
21
+ 200: '#e8eaec',
22
+ 300: '#d8dcde',
23
+ 400: '#b0b8be',
24
+ 500: '#919ca5',
25
+ 600: '#848f99',
26
+ 700: '#5c6970',
27
+ 800: '#39434b',
28
+ 900: '#293239',
29
+ 1000: '#1c2227',
30
+ 1100: '#151a1e',
31
+ 1200: '#0a0d0e'
32
+ },
33
+ blue: {
34
+ 100: '#edf7ff',
35
+ 200: '#ddecf8',
36
+ 300: '#cce0f1',
37
+ 400: '#93bcdc',
38
+ 500: '#66a0cd',
39
+ 600: '#2694d6',
40
+ 700: '#1f73b7',
41
+ 800: '#13456d',
42
+ 900: '#0f3655',
43
+ 1000: '#0a2338',
44
+ 1100: '#061420',
45
+ 1200: '#040d15'
46
+ },
47
+ red: {
48
+ 100: '#fff2f3',
49
+ 200: '#fee3e5',
50
+ 300: '#f5d5d8',
51
+ 400: '#f2a1a8',
52
+ 500: '#ea7881',
53
+ 600: '#eb5c69',
54
+ 700: '#cd3642',
55
+ 800: '#7e1d25',
56
+ 900: '#671219',
57
+ 1000: '#3d1418',
58
+ 1100: '#1d1011',
59
+ 1200: '#100b0c'
60
+ },
61
+ yellow: {
62
+ 100: '#fff3e4',
63
+ 200: '#ffe6cb',
64
+ 300: '#fed6a9',
65
+ 400: '#fca347',
66
+ 500: '#e38215',
67
+ 600: '#d67305',
68
+ 700: '#ac5918',
69
+ 800: '#673515',
70
+ 900: '#4c2c17',
71
+ 1000: '#2d1e15',
72
+ 1100: '#18120f',
73
+ 1200: '#0e0c0b'
74
+ },
75
+ green: {
76
+ 100: '#eef8f4',
77
+ 200: '#daeee6',
78
+ 300: '#cae3d9',
79
+ 400: '#94c1b0',
80
+ 500: '#4eab89',
81
+ 600: '#26a178',
82
+ 700: '#037f52',
83
+ 800: '#104b35',
84
+ 900: '#0b3b29',
85
+ 1000: '#0c261c',
86
+ 1100: '#0a1511',
87
+ 1200: '#080d0c'
88
+ },
89
+ kale: {
90
+ 100: '#ecf9f9',
91
+ 200: '#daeded',
92
+ 300: '#cbe2e1',
93
+ 400: '#97bfbf',
94
+ 500: '#6ba4a5',
95
+ 600: '#4a9999',
96
+ 700: '#40787a',
97
+ 800: '#16494f',
98
+ 900: '#063940',
99
+ 1000: '#03252a',
100
+ 1100: '#061517',
101
+ 1200: '#060e0e'
102
+ },
103
+ fuschia: {
104
+ 100: '#fbf3f8',
105
+ 200: '#f7e6f1',
106
+ 300: '#f2d5e7',
107
+ 400: '#e3a4cc',
108
+ 500: '#d77db7',
109
+ 600: '#d16aac',
110
+ 700: '#b34496',
111
+ 800: '#78116c',
112
+ 900: '#5a0d51',
113
+ 1000: '#3f0939',
114
+ 1100: '#31072c',
115
+ 1200: '#1b0418'
116
+ },
117
+ pink: {
118
+ 100: '#fcf3f4',
119
+ 200: '#f7e5e8',
120
+ 300: '#f3d6dc',
121
+ 400: '#e5a6b4',
122
+ 500: '#d98193',
123
+ 600: '#d96b81',
124
+ 700: '#d62054',
125
+ 800: '#75263d',
126
+ 900: '#561d2e',
127
+ 1000: '#3c141f',
128
+ 1100: '#2e0f18',
129
+ 1200: '#17080c'
130
+ },
131
+ crimson: {
132
+ 100: '#fbf3f2',
133
+ 200: '#f7e7e4',
134
+ 300: '#f1d7d2',
135
+ 400: '#e2aaa0',
136
+ 500: '#d58678',
137
+ 600: '#cf7464',
138
+ 700: '#be4938',
139
+ 800: '#811b12',
140
+ 900: '#61140d',
141
+ 1000: '#440e09',
142
+ 1100: '#340b07',
143
+ 1200: '#1c0604'
144
+ },
145
+ orange: {
146
+ 100: '#fdf3ed',
147
+ 200: '#fae7d8',
148
+ 300: '#f7d7be',
149
+ 400: '#eda875',
150
+ 500: '#e58035',
151
+ 600: '#d57428',
152
+ 700: '#af5626',
153
+ 800: '#693317',
154
+ 900: '#4d2711',
155
+ 1000: '#361a0c',
156
+ 1100: '#291409',
157
+ 1200: '#150a04'
158
+ },
159
+ lemon: {
160
+ 100: '#fff7d4',
161
+ 200: '#ffea97',
162
+ 300: '#ffdc4f',
163
+ 400: '#efab00',
164
+ 500: '#c79100',
165
+ 600: '#b68500',
166
+ 700: '#8f6900',
167
+ 800: '#563e00',
168
+ 900: '#3f2e00',
169
+ 1000: '#2b2000',
170
+ 1100: '#221800',
171
+ 1200: '#110c00'
172
+ },
173
+ lime: {
174
+ 100: '#ecfae7',
175
+ 200: '#d1f3c7',
176
+ 300: '#b3eda3',
177
+ 400: '#4fd12b',
178
+ 500: '#45b025',
179
+ 600: '#509f2d',
180
+ 700: '#3d7e19',
181
+ 800: '#2c491b',
182
+ 900: '#203614',
183
+ 1000: '#16250e',
184
+ 1100: '#111d0a',
185
+ 1200: '#090e05'
186
+ },
187
+ mint: {
188
+ 100: '#d6ffeb',
189
+ 200: '#9affce',
190
+ 300: '#0afe89',
191
+ 400: '#00d26d',
192
+ 500: '#01b15c',
193
+ 600: '#16a260',
194
+ 700: '#2d7e55',
195
+ 800: '#1b4b33',
196
+ 900: '#143726',
197
+ 1000: '#0e261a',
198
+ 1100: '#0b1d14',
199
+ 1200: '#050e0a'
200
+ },
201
+ teal: {
202
+ 100: '#d4fefa',
203
+ 200: '#88fdf1',
204
+ 300: '#0bf8e1',
205
+ 400: '#03cdb8',
206
+ 500: '#02ad9c',
207
+ 600: '#2a9d8f',
208
+ 700: '#367a74',
209
+ 800: '#254846',
210
+ 900: '#1b3534',
211
+ 1000: '#122423',
212
+ 1100: '#0e1c1a',
213
+ 1200: '#070d0d'
214
+ },
215
+ azure: {
216
+ 100: '#eff7fe',
217
+ 200: '#d9ecfc',
218
+ 300: '#c4e0fa',
219
+ 400: '#82bcf4',
220
+ 500: '#4b9fee',
221
+ 600: '#3191ea',
222
+ 700: '#2770c3',
223
+ 800: '#23446b',
224
+ 900: '#1a3250',
225
+ 1000: '#122238',
226
+ 1100: '#0e1a2a',
227
+ 1200: '#070d14'
228
+ },
229
+ royal: {
230
+ 100: '#f4f5fc',
231
+ 200: '#e7e9f8',
232
+ 300: '#d8dcf4',
233
+ 400: '#acb4e7',
234
+ 500: '#8a96dd',
235
+ 600: '#7a88d9',
236
+ 700: '#4c67d3',
237
+ 800: '#1833ab',
238
+ 900: '#122680',
239
+ 1000: '#0d1a5a',
240
+ 1100: '#0a1445',
241
+ 1200: '#050a25'
242
+ },
243
+ purple: {
244
+ 100: '#f9f3fb',
245
+ 200: '#f2e7f6',
246
+ 300: '#e9d8f1',
247
+ 400: '#d0a9e0',
248
+ 500: '#bb86d3',
249
+ 600: '#b276cd',
250
+ 700: '#9256b1',
251
+ 800: '#58209a',
252
+ 900: '#411973',
253
+ 1000: '#2e1150',
254
+ 1100: '#230d3f',
255
+ 1200: '#120720'
256
+ }
257
+ };
258
+
259
+ export { PALETTE as default };
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ const PALETTE_V8 = {
8
+ black: '#000',
9
+ white: '#fff',
10
+ product: {
11
+ support: '#00a656',
12
+ message: '#37b8af',
13
+ explore: '#30aabc',
14
+ gather: '#f6c8be',
15
+ guide: '#eb4962',
16
+ connect: '#ff6224',
17
+ chat: '#f79a3e',
18
+ talk: '#efc93d',
19
+ sell: '#c38f00'
20
+ },
21
+ grey: {
22
+ 100: '#f8f9f9',
23
+ 200: '#e9ebed',
24
+ 300: '#d8dcde',
25
+ 400: '#c2c8cc',
26
+ 500: '#87929d',
27
+ 600: '#68737d',
28
+ 700: '#49545c',
29
+ 800: '#2f3941'
30
+ },
31
+ blue: {
32
+ 100: '#edf7ff',
33
+ 200: '#cee2f2',
34
+ 300: '#adcce4',
35
+ 400: '#5293c7',
36
+ 500: '#337fbd',
37
+ 600: '#1f73b7',
38
+ 700: '#144a75',
39
+ 800: '#0f3554'
40
+ },
41
+ red: {
42
+ 100: '#fff0f1',
43
+ 200: '#f5d5d8',
44
+ 300: '#f5b5ba',
45
+ 400: '#e35b66',
46
+ 500: '#d93f4c',
47
+ 600: '#cc3340',
48
+ 700: '#8c232c',
49
+ 800: '#681219'
50
+ },
51
+ yellow: {
52
+ 100: '#fff7ed',
53
+ 200: '#ffeedb',
54
+ 300: '#fed6a8',
55
+ 400: '#ffb057',
56
+ 500: '#f79a3e',
57
+ 600: '#ed8f1c',
58
+ 700: '#ad5918',
59
+ 800: '#703815'
60
+ },
61
+ green: {
62
+ 100: '#edf8f4',
63
+ 200: '#d1e8df',
64
+ 300: '#aecfc2',
65
+ 400: '#5eae91',
66
+ 500: '#228f67',
67
+ 600: '#038153',
68
+ 700: '#186146',
69
+ 800: '#0b3b29'
70
+ },
71
+ kale: {
72
+ 100: '#f5fcfc',
73
+ 200: '#daeded',
74
+ 300: '#bdd9d7',
75
+ 400: '#90bbbb',
76
+ 500: '#498283',
77
+ 600: '#17494d',
78
+ 700: '#03363d',
79
+ 800: '#012b30'
80
+ },
81
+ fuschia: {
82
+ 400: '#d653c2',
83
+ 600: '#a81897',
84
+ M400: '#cf62a8',
85
+ M600: '#a8458c'
86
+ },
87
+ pink: {
88
+ 400: '#ec4d63',
89
+ 600: '#d42054',
90
+ M400: '#d57287',
91
+ M600: '#b23a5d'
92
+ },
93
+ crimson: {
94
+ 400: '#e34f32',
95
+ 600: '#c72a1c',
96
+ M400: '#cc6c5b',
97
+ M600: '#b24a3c'
98
+ },
99
+ orange: {
100
+ 400: '#de701d',
101
+ 600: '#bf5000',
102
+ M400: '#d4772c',
103
+ M600: '#b35827'
104
+ },
105
+ lemon: {
106
+ 400: '#ffd424',
107
+ 600: '#ffbb10',
108
+ M400: '#e7a500',
109
+ M600: '#c38f00'
110
+ },
111
+ lime: {
112
+ 400: '#43b324',
113
+ 600: '#2e8200',
114
+ M400: '#519e2d',
115
+ M600: '#47782c'
116
+ },
117
+ mint: {
118
+ 400: '#00a656',
119
+ 600: '#058541',
120
+ M400: '#299c66',
121
+ M600: '#2e8057'
122
+ },
123
+ teal: {
124
+ 400: '#02a191',
125
+ 600: '#028079',
126
+ M400: '#2d9e8f',
127
+ M600: '#3c7873'
128
+ },
129
+ azure: {
130
+ 400: '#3091ec',
131
+ 600: '#1371d6',
132
+ M400: '#5f8dcf',
133
+ M600: '#3a70b2'
134
+ },
135
+ royal: {
136
+ 400: '#5d7df5',
137
+ 600: '#3353e2',
138
+ M400: '#7986d8',
139
+ M600: '#4b61c3'
140
+ },
141
+ purple: {
142
+ 400: '#b552e2',
143
+ 600: '#6a27b8',
144
+ M400: '#b072cc',
145
+ M600: '#9358b0'
146
+ }
147
+ };
148
+
149
+ export { PALETTE_V8 as default };
@@ -0,0 +1,224 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import PALETTE from '../palette/index.js';
8
+
9
+ const BASE = 4;
10
+ const borderRadii = {
11
+ sm: `${BASE / 2}px`,
12
+ md: `${BASE}px`
13
+ };
14
+ const borderStyles = {
15
+ solid: 'solid'
16
+ };
17
+ const borderWidths = {
18
+ sm: '1px',
19
+ md: '3px'
20
+ };
21
+ const borders = {
22
+ sm: `${borderWidths.sm} ${borderStyles.solid}`,
23
+ md: `${borderWidths.md} ${borderStyles.solid}`
24
+ };
25
+ const breakpoints = {
26
+ xs: '0px',
27
+ sm: `${BASE * 144}px`,
28
+ md: `${BASE * 192}px`,
29
+ lg: `${BASE * 248}px`,
30
+ xl: `${BASE * 300}px`
31
+ };
32
+ const colors = {
33
+ primaryHue: 'blue',
34
+ dangerHue: 'red',
35
+ warningHue: 'yellow',
36
+ successHue: 'green',
37
+ neutralHue: 'grey',
38
+ chromeHue: 'kale',
39
+ variables: {
40
+ dark: {
41
+ background: {
42
+ default: 'neutralHue.1100',
43
+ raised: 'neutralHue.1000',
44
+ recessed: 'neutralHue.1200',
45
+ subtle: 'neutralHue.1000',
46
+ emphasis: 'neutralHue.600',
47
+ primary: 'primaryHue.900',
48
+ success: 'successHue.1000',
49
+ warning: 'warningHue.1000',
50
+ danger: 'dangerHue.1000',
51
+ primaryEmphasis: 'primaryHue.600',
52
+ successEmphasis: 'successHue.600',
53
+ warningEmphasis: 'warningHue.600',
54
+ dangerEmphasis: 'dangerHue.600'
55
+ },
56
+ border: {
57
+ default: 'neutralHue.800',
58
+ emphasis: 'neutralHue.600',
59
+ subtle: 'neutralHue.900',
60
+ success: 'successHue.800',
61
+ warning: 'warningHue.800',
62
+ danger: 'dangerHue.800',
63
+ primaryEmphasis: 'primaryHue.600',
64
+ successEmphasis: 'successHue.600',
65
+ warningEmphasis: 'warningHue.600',
66
+ dangerEmphasis: 'dangerHue.600'
67
+ },
68
+ foreground: {
69
+ default: 'neutralHue.300',
70
+ subtle: 'neutralHue.500',
71
+ onEmphasis: 'neutralHue.1100',
72
+ primary: 'primaryHue.600',
73
+ success: 'successHue.400',
74
+ warning: 'warningHue.400',
75
+ danger: 'dangerHue.400',
76
+ successEmphasis: 'successHue.300',
77
+ warningEmphasis: 'warningHue.300',
78
+ dangerEmphasis: 'dangerHue.300'
79
+ }
80
+ },
81
+ light: {
82
+ background: {
83
+ default: 'palette.white',
84
+ raised: 'palette.white',
85
+ recessed: 'neutralHue.100',
86
+ subtle: 'neutralHue.100',
87
+ emphasis: 'neutralHue.700',
88
+ primary: 'primaryHue.100',
89
+ success: 'successHue.100',
90
+ warning: 'warningHue.100',
91
+ danger: 'dangerHue.100',
92
+ primaryEmphasis: 'primaryHue.700',
93
+ successEmphasis: 'successHue.700',
94
+ warningEmphasis: 'warningHue.700',
95
+ dangerEmphasis: 'dangerHue.700'
96
+ },
97
+ border: {
98
+ default: 'neutralHue.300',
99
+ emphasis: 'neutralHue.600',
100
+ subtle: 'neutralHue.200',
101
+ success: 'successHue.300',
102
+ warning: 'warningHue.300',
103
+ danger: 'dangerHue.300',
104
+ primaryEmphasis: 'primaryHue.700',
105
+ successEmphasis: 'successHue.700',
106
+ warningEmphasis: 'warningHue.700',
107
+ dangerEmphasis: 'dangerHue.700'
108
+ },
109
+ foreground: {
110
+ default: 'neutralHue.900',
111
+ subtle: 'neutralHue.700',
112
+ onEmphasis: 'palette.white',
113
+ primary: 'primaryHue.700',
114
+ success: 'successHue.700',
115
+ warning: 'warningHue.700',
116
+ danger: 'dangerHue.700',
117
+ successEmphasis: 'successHue.900',
118
+ warningEmphasis: 'warningHue.900',
119
+ dangerEmphasis: 'dangerHue.900'
120
+ }
121
+ }
122
+ }
123
+ };
124
+ const fonts = {
125
+ mono: ['SFMono-Regular' , 'Consolas' , '"Liberation Mono"' , 'Menlo', 'Courier', 'monospace'].join(','),
126
+ system: ['system-ui' , '-apple-system' , 'BlinkMacSystemFont' , '"Segoe UI"' , 'Roboto' , 'Oxygen-Sans' , 'Ubuntu' , 'Cantarell' , '"Helvetica Neue"', 'Arial', 'sans-serif'].join(',')
127
+ };
128
+ const fontSizes = {
129
+ xs: '10px',
130
+ sm: '12px',
131
+ md: '14px',
132
+ lg: '18px',
133
+ xl: '22px',
134
+ xxl: '26px',
135
+ xxxl: '36px'
136
+ };
137
+ const fontWeights = {
138
+ thin: 100,
139
+ extralight: 200,
140
+ light: 300,
141
+ regular: 400,
142
+ medium: 500,
143
+ semibold: 600,
144
+ bold: 700,
145
+ extrabold: 800,
146
+ black: 900
147
+ };
148
+ const iconSizes = {
149
+ sm: '12px',
150
+ md: '16px',
151
+ lg: '26px'
152
+ };
153
+ const lineHeights = {
154
+ sm: `${BASE * 4}px`,
155
+ md: `${BASE * 5}px`,
156
+ lg: `${BASE * 6}px`,
157
+ xl: `${BASE * 7}px`,
158
+ xxl: `${BASE * 8}px`,
159
+ xxxl: `${BASE * 11}px`
160
+ };
161
+ const opacity = {
162
+ 100: 0.08,
163
+ 200: 0.16,
164
+ 300: 0.24,
165
+ 400: 0.32,
166
+ 500: 0.4,
167
+ 600: 0.48,
168
+ 700: 0.56,
169
+ 800: 0.64,
170
+ 900: 0.72,
171
+ 1000: 0.8,
172
+ 1100: 0.88,
173
+ 1200: 0.96
174
+ };
175
+ const palette = {
176
+ ...PALETTE
177
+ };
178
+ delete palette.product;
179
+ const shadowWidths = {
180
+ xs: '1px',
181
+ sm: '2px',
182
+ md: '3px'
183
+ };
184
+ const shadows = {
185
+ xs: color => `0 0 0 ${shadowWidths.xs} ${color}`,
186
+ sm: color => `0 0 0 ${shadowWidths.sm} ${color}`,
187
+ md: color => `0 0 0 ${shadowWidths.md} ${color}`,
188
+ lg: (offsetY, blurRadius, color) => `0 ${offsetY} ${blurRadius} 0 ${color}`
189
+ };
190
+ const space = {
191
+ base: BASE,
192
+ xxs: `${BASE}px`,
193
+ xs: `${BASE * 2}px`,
194
+ sm: `${BASE * 3}px`,
195
+ md: `${BASE * 5}px`,
196
+ lg: `${BASE * 8}px`,
197
+ xl: `${BASE * 10}px`,
198
+ xxl: `${BASE * 12}px`
199
+ };
200
+ const DEFAULT_THEME = {
201
+ borders,
202
+ borderRadii,
203
+ borderStyles,
204
+ borderWidths,
205
+ breakpoints,
206
+ colors: {
207
+ base: 'light',
208
+ ...colors
209
+ },
210
+ components: {},
211
+ fonts,
212
+ fontSizes,
213
+ fontWeights,
214
+ iconSizes,
215
+ lineHeights,
216
+ opacity,
217
+ palette,
218
+ rtl: false,
219
+ shadowWidths,
220
+ shadows,
221
+ space
222
+ };
223
+
224
+ export { DEFAULT_THEME as default };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ export { ThemeProvider } from './elements/ThemeProvider.js';
8
+ export { default as DEFAULT_THEME } from './elements/theme/index.js';
9
+ export { default as PALETTE } from './elements/palette/index.js';
10
+ export { default as PALETTE_V8 } from './elements/palette/v8.js';
11
+ export { default as retrieveComponentStyles } from './utils/retrieveComponentStyles.js';
12
+ export { getArrowPosition } from './utils/getArrowPosition.js';
13
+ export { getCheckeredBackground } from './utils/getCheckeredBackground.js';
14
+ export { getColor } from './utils/getColor.js';
15
+ export { getColorV8 } from './utils/getColorV8.js';
16
+ export { getFloatingPlacements } from './utils/getFloatingPlacements.js';
17
+ export { getFocusBoxShadow } from './utils/getFocusBoxShadow.js';
18
+ export { default as getLineHeight } from './utils/getLineHeight.js';
19
+ export { getMenuPosition } from './utils/getMenuPosition.js';
20
+ export { default as mediaQuery } from './utils/mediaQuery.js';
21
+ export { default as arrowStyles } from './utils/arrowStyles.js';
22
+ export { useDocument } from './utils/useDocument.js';
23
+ export { useWindow } from './utils/useWindow.js';
24
+ export { useText } from './utils/useText.js';
25
+ export { default as menuStyles } from './utils/menuStyles.js';
26
+ export { SELECTOR_FOCUS_VISIBLE, focusStyles } from './utils/focusStyles.js';
27
+ export { StyledBaseIcon } from './utils/StyledBaseIcon.js';
28
+ export { ARROW_POSITION, MENU_POSITION, PLACEMENT } from './types/index.js';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ const ARROW_POSITION = ['top', 'top-left', 'top-right', 'right', 'right-top', 'right-bottom', 'bottom', 'bottom-left', 'bottom-right', 'left', 'left-top', 'left-bottom'];
8
+ const MENU_POSITION = ['top', 'right', 'bottom', 'left'];
9
+ const PLACEMENT = ['top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'end', 'end-top', 'end-bottom', 'start', 'start-top', 'start-bottom'];
10
+
11
+ export { ARROW_POSITION, MENU_POSITION, PLACEMENT };