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

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.
@@ -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,283 @@
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
+ 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: '#f4f6f6',
23
+ 200: '#e4e7e9',
24
+ 300: '#c7cdd0',
25
+ 400: '#afb7bd',
26
+ 500: '#88929d',
27
+ 600: '#7f8a95',
28
+ 700: '#65707a',
29
+ 800: '#4b565f',
30
+ 900: '#2e373f',
31
+ 1000: '#1e252a',
32
+ 1100: '#171b1f',
33
+ 1200: '#101316'
34
+ },
35
+ blue: {
36
+ 100: '#edf7ff',
37
+ 200: '#d9eaf7',
38
+ 300: '#b3d0e7',
39
+ 400: '#92bbdb',
40
+ 500: '#5896c9',
41
+ 600: '#4b8ec5',
42
+ 700: '#1f73b7',
43
+ 800: '#18578b',
44
+ 900: '#103859',
45
+ 1000: '#0b253b',
46
+ 1100: '#081c2d',
47
+ 1200: '#061420'
48
+ },
49
+ red: {
50
+ 100: '#fff2f3',
51
+ 200: '#fde1e3',
52
+ 300: '#f5bfc4',
53
+ 400: '#f2a0a6',
54
+ 500: '#e76973',
55
+ 600: '#e35c67',
56
+ 700: '#cd3642',
57
+ 800: '#9d2933',
58
+ 900: '#6c1219',
59
+ 1000: '#431418',
60
+ 1100: '#2d1315',
61
+ 1200: '#1b1011'
62
+ },
63
+ yellow: {
64
+ 100: '#fff3e4',
65
+ 200: '#ffe2c2',
66
+ 300: '#ffc079',
67
+ 400: '#fba246',
68
+ 500: '#d87916',
69
+ 600: '#ce7117',
70
+ 700: '#ac5918',
71
+ 800: '#874114',
72
+ 900: '#512d17',
73
+ 1000: '#312016',
74
+ 1100: '#221913',
75
+ 1200: '#17120f'
76
+ },
77
+ green: {
78
+ 100: '#eef8f4',
79
+ 200: '#d7ede4',
80
+ 300: '#b4d3c6',
81
+ 400: '#91bfae',
82
+ 500: '#3fa17e',
83
+ 600: '#329974',
84
+ 700: '#037f52',
85
+ 800: '#186045',
86
+ 900: '#0b3e2b',
87
+ 1000: '#0c291e',
88
+ 1100: '#0b1e17',
89
+ 1200: '#0a1511'
90
+ },
91
+ kale: {
92
+ 100: '#ecf9f9',
93
+ 200: '#d8ebeb',
94
+ 300: '#b3d2d0',
95
+ 400: '#94bebd',
96
+ 500: '#5e9b9c',
97
+ 600: '#579394',
98
+ 700: '#40787a',
99
+ 800: '#275c5f',
100
+ 900: '#0a3c42',
101
+ 1000: '#02282d',
102
+ 1100: '#041e22',
103
+ 1200: '#061517'
104
+ },
105
+ fuschia: {
106
+ 100: '#fbf3f8',
107
+ 200: '#f6e2ef',
108
+ 300: '#ecc0dc',
109
+ 400: '#e3a2cc',
110
+ 500: '#d36faf',
111
+ 600: '#cf63a8',
112
+ 700: '#b34496',
113
+ 800: '#971688',
114
+ 900: '#640e59',
115
+ 1000: '#430a3d',
116
+ 1100: '#34072f',
117
+ 1200: '#260523',
118
+ M400: '#cf62a8',
119
+ M600: '#a8458c'
120
+ },
121
+ pink: {
122
+ 100: '#fcf4f5',
123
+ 200: '#f7e3e8',
124
+ 300: '#edc1ca',
125
+ 400: '#e4a5b3',
126
+ 500: '#d57388',
127
+ 600: '#e35b72',
128
+ 700: '#d62054',
129
+ 800: '#94304e',
130
+ 900: '#611f32',
131
+ 1000: '#401522',
132
+ 1100: '#31101a',
133
+ 1200: '#230b12',
134
+ M400: '#d57287',
135
+ M600: '#b23a5d'
136
+ },
137
+ crimson: {
138
+ 100: '#fbf4f3',
139
+ 200: '#f6e4e1',
140
+ 300: '#eac3bc',
141
+ 400: '#e1a89e',
142
+ 500: '#d1796a',
143
+ 600: '#cd6e5d',
144
+ 700: '#be4938',
145
+ 800: '#a32217',
146
+ 900: '#6b160f',
147
+ 1000: '#480f0a',
148
+ 1100: '#370c08',
149
+ 1200: '#280806',
150
+ M400: '#cc6c5b',
151
+ M600: '#b24a3c'
152
+ },
153
+ orange: {
154
+ 100: '#fdf3ed',
155
+ 200: '#f9e3d3',
156
+ 300: '#f2c39f',
157
+ 400: '#eda671',
158
+ 500: '#e2721e',
159
+ 600: '#d26e20',
160
+ 700: '#af5626',
161
+ 800: '#85421d',
162
+ 900: '#562b13',
163
+ 1000: '#3a1c0d',
164
+ 1100: '#2c150a',
165
+ 1200: '#1f0f07',
166
+ M400: '#d4772c',
167
+ M600: '#b35827'
168
+ },
169
+ lemon: {
170
+ 100: '#fff6cf',
171
+ 200: '#ffe682',
172
+ 300: '#ffc417',
173
+ 400: '#eda900',
174
+ 500: '#ba8900',
175
+ 600: '#b08100',
176
+ 700: '#8f6900',
177
+ 800: '#6d5000',
178
+ 900: '#463300',
179
+ 1000: '#2f2200',
180
+ 1100: '#231a00',
181
+ 1200: '#191200',
182
+ M400: '#e7a500',
183
+ M600: '#c38f00'
184
+ },
185
+ lime: {
186
+ 100: '#ebfae6',
187
+ 200: '#c9f2bd',
188
+ 300: '#88e270',
189
+ 400: '#4ecf2a',
190
+ 500: '#4da42a',
191
+ 600: '#489b20',
192
+ 700: '#3d7e19',
193
+ 800: '#385f23',
194
+ 900: '#243c16',
195
+ 1000: '#18280f',
196
+ 1100: '#121e0b',
197
+ 1200: '#0d1508',
198
+ M400: '#519e2d',
199
+ M600: '#47782c'
200
+ },
201
+ mint: {
202
+ 100: '#d6ffeb',
203
+ 200: '#83ffc3',
204
+ 300: '#00ea79',
205
+ 400: '#00d16d',
206
+ 500: '#00a756',
207
+ 600: '#279b65',
208
+ 700: '#2d7d55',
209
+ 800: '#225f41',
210
+ 900: '#163d2a',
211
+ 1000: '#0f291c',
212
+ 1100: '#0b1e15',
213
+ 1200: '#08150f',
214
+ M400: '#299c66',
215
+ M600: '#2e8057'
216
+ },
217
+ teal: {
218
+ 100: '#d6fefa',
219
+ 200: '#70fdef',
220
+ 300: '#03e5ce',
221
+ 400: '#03ccb8',
222
+ 500: '#02a392',
223
+ 600: '#1f998b',
224
+ 700: '#367a74',
225
+ 800: '#2e5c59',
226
+ 900: '#1e3b39',
227
+ 1000: '#142726',
228
+ 1100: '#0f1d1c',
229
+ 1200: '#0a1514',
230
+ M400: '#2d9e8f',
231
+ M600: '#3c7873'
232
+ },
233
+ azure: {
234
+ 100: '#f0f7fe',
235
+ 200: '#d7eafb',
236
+ 300: '#a8d1f7',
237
+ 400: '#7fbbf3',
238
+ 500: '#3795ed',
239
+ 600: '#598ad0',
240
+ 700: '#2770c4',
241
+ 800: '#2c5689',
242
+ 900: '#1d3758',
243
+ 1000: '#13253a',
244
+ 1100: '#0e1b2c',
245
+ 1200: '#0a131f',
246
+ M400: '#5f8dcf',
247
+ M600: '#3a70b2'
248
+ },
249
+ royal: {
250
+ 100: '#f5f6fc',
251
+ 200: '#e3e6f7',
252
+ 300: '#c5cbee',
253
+ 400: '#abb3e7',
254
+ 500: '#7f8cda',
255
+ 600: '#7182e1',
256
+ 700: '#4d67d3',
257
+ 800: '#1f40d8',
258
+ 900: '#142a8d',
259
+ 1000: '#0e1c5f',
260
+ 1100: '#0a1548',
261
+ 1200: '#070f34',
262
+ M400: '#7986d8',
263
+ M600: '#4b61c3'
264
+ },
265
+ purple: {
266
+ 100: '#f9f4fb',
267
+ 200: '#efe3f5',
268
+ 300: '#ddc3e9',
269
+ 400: '#cea8e0',
270
+ 500: '#b57acf',
271
+ 600: '#b16ecf',
272
+ 700: '#9256b1',
273
+ 800: '#722eb8',
274
+ 900: '#491b7f',
275
+ 1000: '#311256',
276
+ 1100: '#250e41',
277
+ 1200: '#1b0a2e',
278
+ M400: '#b072cc',
279
+ M600: '#9358b0'
280
+ }
281
+ };
282
+
283
+ 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,209 @@
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 palette = {
162
+ ...PALETTE
163
+ };
164
+ delete palette.product;
165
+ const shadowWidths = {
166
+ xs: '1px',
167
+ sm: '2px',
168
+ md: '3px'
169
+ };
170
+ const shadows = {
171
+ xs: color => `0 0 0 ${shadowWidths.xs} ${color}`,
172
+ sm: color => `0 0 0 ${shadowWidths.sm} ${color}`,
173
+ md: color => `0 0 0 ${shadowWidths.md} ${color}`,
174
+ lg: (offsetY, blurRadius, color) => `0 ${offsetY} ${blurRadius} 0 ${color}`
175
+ };
176
+ const space = {
177
+ base: BASE,
178
+ xxs: `${BASE}px`,
179
+ xs: `${BASE * 2}px`,
180
+ sm: `${BASE * 3}px`,
181
+ md: `${BASE * 5}px`,
182
+ lg: `${BASE * 8}px`,
183
+ xl: `${BASE * 10}px`,
184
+ xxl: `${BASE * 12}px`
185
+ };
186
+ const DEFAULT_THEME = {
187
+ borders,
188
+ borderRadii,
189
+ borderStyles,
190
+ borderWidths,
191
+ breakpoints,
192
+ colors: {
193
+ base: 'light',
194
+ ...colors
195
+ },
196
+ components: {},
197
+ fonts,
198
+ fontSizes,
199
+ fontWeights,
200
+ iconSizes,
201
+ lineHeights,
202
+ palette,
203
+ rtl: false,
204
+ shadowWidths,
205
+ shadows,
206
+ space
207
+ };
208
+
209
+ export { DEFAULT_THEME as default };
@@ -0,0 +1,26 @@
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 { getColor } from './utils/getColor.js';
14
+ export { getColorV8 } from './utils/getColorV8.js';
15
+ export { getFloatingPlacements } from './utils/getFloatingPlacements.js';
16
+ export { getFocusBoxShadow } from './utils/getFocusBoxShadow.js';
17
+ export { default as getLineHeight } from './utils/getLineHeight.js';
18
+ export { getMenuPosition } from './utils/getMenuPosition.js';
19
+ export { default as mediaQuery } from './utils/mediaQuery.js';
20
+ export { default as arrowStyles } from './utils/arrowStyles.js';
21
+ export { useDocument } from './utils/useDocument.js';
22
+ export { useWindow } from './utils/useWindow.js';
23
+ export { useText } from './utils/useText.js';
24
+ export { default as menuStyles } from './utils/menuStyles.js';
25
+ export { SELECTOR_FOCUS_VISIBLE, focusStyles } from './utils/focusStyles.js';
26
+ 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 };