@zendeskgarden/react-theming 9.0.0-next.8 → 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.
@@ -9,11 +9,9 @@ declare const PALETTE: {
9
9
  white: string;
10
10
  product: {
11
11
  support: string;
12
- message: string;
13
12
  explore: string;
14
13
  gather: string;
15
14
  guide: string;
16
- connect: string;
17
15
  chat: string;
18
16
  talk: string;
19
17
  sell: string;
@@ -115,8 +113,6 @@ declare const PALETTE: {
115
113
  1000: string;
116
114
  1100: string;
117
115
  1200: string;
118
- M400: string;
119
- M600: string;
120
116
  };
121
117
  pink: {
122
118
  100: string;
@@ -131,8 +127,6 @@ declare const PALETTE: {
131
127
  1000: string;
132
128
  1100: string;
133
129
  1200: string;
134
- M400: string;
135
- M600: string;
136
130
  };
137
131
  crimson: {
138
132
  100: string;
@@ -147,8 +141,6 @@ declare const PALETTE: {
147
141
  1000: string;
148
142
  1100: string;
149
143
  1200: string;
150
- M400: string;
151
- M600: string;
152
144
  };
153
145
  orange: {
154
146
  100: string;
@@ -163,8 +155,6 @@ declare const PALETTE: {
163
155
  1000: string;
164
156
  1100: string;
165
157
  1200: string;
166
- M400: string;
167
- M600: string;
168
158
  };
169
159
  lemon: {
170
160
  100: string;
@@ -179,8 +169,6 @@ declare const PALETTE: {
179
169
  1000: string;
180
170
  1100: string;
181
171
  1200: string;
182
- M400: string;
183
- M600: string;
184
172
  };
185
173
  lime: {
186
174
  100: string;
@@ -195,8 +183,6 @@ declare const PALETTE: {
195
183
  1000: string;
196
184
  1100: string;
197
185
  1200: string;
198
- M400: string;
199
- M600: string;
200
186
  };
201
187
  mint: {
202
188
  100: string;
@@ -211,8 +197,6 @@ declare const PALETTE: {
211
197
  1000: string;
212
198
  1100: string;
213
199
  1200: string;
214
- M400: string;
215
- M600: string;
216
200
  };
217
201
  teal: {
218
202
  100: string;
@@ -227,8 +211,6 @@ declare const PALETTE: {
227
211
  1000: string;
228
212
  1100: string;
229
213
  1200: string;
230
- M400: string;
231
- M600: string;
232
214
  };
233
215
  azure: {
234
216
  100: string;
@@ -243,8 +225,6 @@ declare const PALETTE: {
243
225
  1000: string;
244
226
  1100: string;
245
227
  1200: string;
246
- M400: string;
247
- M600: string;
248
228
  };
249
229
  royal: {
250
230
  100: string;
@@ -259,8 +239,6 @@ declare const PALETTE: {
259
239
  1000: string;
260
240
  1100: string;
261
241
  1200: string;
262
- M400: string;
263
- M600: string;
264
242
  };
265
243
  purple: {
266
244
  100: string;
@@ -275,8 +253,6 @@ declare const PALETTE: {
275
253
  1000: string;
276
254
  1100: string;
277
255
  1200: string;
278
- M400: string;
279
- M600: string;
280
256
  };
281
257
  };
282
258
  export default PALETTE;
@@ -10,6 +10,7 @@ export { default as PALETTE } from './elements/palette';
10
10
  export { default as PALETTE_V8 } from './elements/palette/v8';
11
11
  export { default as retrieveComponentStyles } from './utils/retrieveComponentStyles';
12
12
  export { getArrowPosition } from './utils/getArrowPosition';
13
+ export { getCheckeredBackground } from './utils/getCheckeredBackground';
13
14
  export { getColor } from './utils/getColor';
14
15
  export { getColorV8 } from './utils/getColorV8';
15
16
  export { getFloatingPlacements } from './utils/getFloatingPlacements';
@@ -23,4 +24,5 @@ export { useWindow } from './utils/useWindow';
23
24
  export { useText } from './utils/useText';
24
25
  export { default as menuStyles } from './utils/menuStyles';
25
26
  export { focusStyles, SELECTOR_FOCUS_VISIBLE } from './utils/focusStyles';
26
- export { ARROW_POSITION, MENU_POSITION, PLACEMENT, type IGardenTheme, type IThemeProviderProps, type ArrowPosition, type ColorParameters, type FocusBoxShadowParameters, type FocusStylesParameters, type MenuPosition, type Placement } from './types';
27
+ export { StyledBaseIcon } from './utils/StyledBaseIcon';
28
+ export { ARROW_POSITION, MENU_POSITION, PLACEMENT, type IGardenTheme, type IThemeProviderProps, type ArrowPosition, type CheckeredBackgroundParameters, type ColorParameters, type FocusBoxShadowParameters, type FocusStylesParameters, type MenuPosition, type Placement } from './types';
@@ -11,6 +11,13 @@ export declare const MENU_POSITION: readonly ["top", "right", "bottom", "left"];
11
11
  export type MenuPosition = (typeof MENU_POSITION)[number];
12
12
  export declare const PLACEMENT: readonly ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "end", "end-top", "end-bottom", "start", "start-top", "start-bottom"];
13
13
  export type Placement = (typeof PLACEMENT)[number];
14
+ export type CheckeredBackgroundParameters = {
15
+ overlay?: string;
16
+ positionY?: number;
17
+ repeat?: 'repeat' | 'repeat-x';
18
+ size: number;
19
+ theme: IGardenTheme;
20
+ };
14
21
  export type ColorParameters = {
15
22
  dark?: {
16
23
  hue?: string;
@@ -131,6 +138,7 @@ export interface IGardenTheme {
131
138
  xxl: string;
132
139
  xxxl: string;
133
140
  };
141
+ opacity: Record<number, number>;
134
142
  palette: Record<string, Hue>;
135
143
  shadowWidths: {
136
144
  xs: string;
@@ -0,0 +1,8 @@
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
+ export declare const StyledBaseIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, any, {}, never>;
@@ -0,0 +1,20 @@
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 { CheckeredBackgroundParameters } from '../types';
8
+ /**
9
+ * Get a checkered background image.
10
+ *
11
+ * @param {Object} options.theme Provides information for pattern color and LTR/RTL layout
12
+ * @param {number} options.size The pixel size of the checkered pattern
13
+ * @param {string} [options.overlay] Optional
14
+ * [color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) with transparency or
15
+ * [`linear-gradient()`](https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient)
16
+ * overlay to apply on top of the checkered pattern
17
+ * @param {number} [options.positionY=0] Optional vertical position for starting the pattern (default `0`)
18
+ * @param {string} [options.repeat='repeat'] Optional repeat value for the pattern; either `'repeat'` or `'repeat-x'` (default `'repeat'`)
19
+ */
20
+ export declare const getCheckeredBackground: ({ theme, size, overlay, positionY, repeat }: CheckeredBackgroundParameters) => string;
@@ -12,7 +12,7 @@ import { ColorParameters } from '../types';
12
12
  * `shade`, `offset`, and `transparency` are used as fallbacks to determine the
13
13
  * color.
14
14
  *
15
- * @param {Object} [options.theme] Provides values used to resolve the desired color
15
+ * @param {Object} options.theme Provides values used to resolve the desired color
16
16
  * @param {string} [options.variable] A variable key (i.e. `'background.default'`) used to resolve a color value for the theme color base
17
17
  * @param {Object} [options.dark] An object with `hue`, `shade`, `offset`, and `transparency` values to be used in dark mode
18
18
  * @param {Object} [options.light] An object with `hue`, `shade`, `offset`, and `transparency` values to be used in light mode
@@ -25,6 +25,6 @@ import { ColorParameters } from '../types';
25
25
  * - `'chromeHue'` = `theme.colors.chromeHue`
26
26
  * @param {number} [options.shade] A hue shade
27
27
  * @param {number} [options.offset] A positive or negative value to adjust the shade
28
- * @param {number} [options.transparency] An alpha-channel value between 0 and 1
28
+ * @param {number} [options.transparency] A `theme.opacity` key or an alpha-channel value between 0 and 1
29
29
  */
30
30
  export declare const getColor: (({ dark, hue, light, offset, shade, theme, transparency, variable }: ColorParameters) => string) & import("lodash").MemoizedFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-theming",
3
- "version": "9.0.0-next.8",
3
+ "version": "9.0.0-next.9",
4
4
  "description": "Theming utilities and components within the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -48,5 +48,5 @@
48
48
  "access": "public"
49
49
  },
50
50
  "zendeskgarden:src": "src/index.ts",
51
- "gitHead": "a3d6534843d5a4f5cb60b52bc67264f3230f2da0"
51
+ "gitHead": "771281b562d376a6aee04b0cd71dd888b3ae4a1d"
52
52
  }