@zendeskgarden/react-tags 9.0.0-next.21 → 9.0.0-next.23

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.
@@ -10,7 +10,7 @@ import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME } from '@zendesk
10
10
  const COMPONENT_ID = 'tags.avatar';
11
11
  const StyledAvatar = styled(StyledBaseIcon).attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0-next.21'
13
+ 'data-garden-version': '9.0.0-next.23'
14
14
  }).withConfig({
15
15
  displayName: "StyledAvatar",
16
16
  componentId: "sc-3kdmgt-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
10
10
  const COMPONENT_ID = 'tags.close';
11
11
  const StyledClose = styled.button.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0-next.21'
13
+ 'data-garden-version': '9.0.0-next.23'
14
14
  }).withConfig({
15
15
  displayName: "StyledClose",
16
16
  componentId: "sc-d6lrpn-0"
@@ -185,7 +185,7 @@ const sizeStyles = props => {
185
185
  };
186
186
  const StyledTag = styled.div.attrs({
187
187
  'data-garden-id': COMPONENT_ID,
188
- 'data-garden-version': '9.0.0-next.21'
188
+ 'data-garden-version': '9.0.0-next.23'
189
189
  }).withConfig({
190
190
  displayName: "StyledTag",
191
191
  componentId: "sc-1jvbe03-0"
package/dist/index.cjs.js CHANGED
@@ -41,7 +41,7 @@ const SIZE = ['small', 'medium', 'large'];
41
41
  const COMPONENT_ID$2 = 'tags.avatar';
42
42
  const StyledAvatar = styled__default.default(reactTheming.StyledBaseIcon).attrs({
43
43
  'data-garden-id': COMPONENT_ID$2,
44
- 'data-garden-version': '9.0.0-next.21'
44
+ 'data-garden-version': '9.0.0-next.23'
45
45
  }).withConfig({
46
46
  displayName: "StyledAvatar",
47
47
  componentId: "sc-3kdmgt-0"
@@ -53,7 +53,7 @@ StyledAvatar.defaultProps = {
53
53
  const COMPONENT_ID$1 = 'tags.close';
54
54
  const StyledClose = styled__default.default.button.attrs({
55
55
  'data-garden-id': COMPONENT_ID$1,
56
- 'data-garden-version': '9.0.0-next.21'
56
+ 'data-garden-version': '9.0.0-next.23'
57
57
  }).withConfig({
58
58
  displayName: "StyledClose",
59
59
  componentId: "sc-d6lrpn-0"
@@ -237,7 +237,7 @@ const sizeStyles = props => {
237
237
  };
238
238
  const StyledTag = styled__default.default.div.attrs({
239
239
  'data-garden-id': COMPONENT_ID,
240
- 'data-garden-version': '9.0.0-next.21'
240
+ 'data-garden-version': '9.0.0-next.23'
241
241
  }).withConfig({
242
242
  displayName: "StyledTag",
243
243
  componentId: "sc-1jvbe03-0"
@@ -8,10 +8,12 @@ import React from 'react';
8
8
  import { ITagProps } from '../types';
9
9
  import { Close } from './Close';
10
10
  import { Avatar } from './Avatar';
11
+ declare const TagComponent: React.ForwardRefExoticComponent<ITagProps & React.RefAttributes<HTMLDivElement>>;
11
12
  /**
12
13
  * @extends HTMLAttributes<HTMLDivElement>
13
14
  */
14
- export declare const Tag: React.ForwardRefExoticComponent<ITagProps & React.RefAttributes<HTMLDivElement>> & {
15
+ export declare const Tag: typeof TagComponent & {
15
16
  Avatar: typeof Avatar;
16
17
  Close: typeof Close;
17
18
  };
19
+ export {};
@@ -4,7 +4,6 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- /// <reference types="react" />
8
7
  export declare const StyledAvatar: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
9
8
  'data-garden-id': string;
10
9
  'data-garden-version': string;
@@ -10,10 +10,13 @@ export interface ITagProps extends HTMLAttributes<HTMLDivElement> {
10
10
  /** Adjusts font size and padding */
11
11
  size?: (typeof SIZE)[number];
12
12
  /**
13
- * Sets the color of the tag. Refer to
14
- * theming [colors](components/theme-object#colors)
15
- * or [PALETTE](/components/palette#palette)
16
- * for available colors. Accepts any hex value.
13
+ * Sets the color of the tag. Refer to theming
14
+ * [colors](components/theme-object#colors) or
15
+ * [PALETTE](/components/palette#palette) for available colors. Use [primary
16
+ * hues](/design/color#primary-colors) `blue`, `green`, `grey`, `kale`,
17
+ * `red`, `yellow` or `primaryHue`, `successHue`, `neutralHue`, `chromeHue`,
18
+ * `dangerHue`, `warningHue` – to apply color based on light/dark mode.
19
+ * Accepts any hex value.
17
20
  */
18
21
  hue?: string;
19
22
  /** Applies pill styling */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-tags",
3
- "version": "9.0.0-next.21",
3
+ "version": "9.0.0-next.23",
4
4
  "description": "Components relating to tags in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@zendeskgarden/react-theming": ">=9.0.0-next",
30
- "react": ">=16.8.0",
31
- "react-dom": ">=16.8.0",
30
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
31
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
32
32
  "styled-components": "^5.3.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@zendeskgarden/react-theming": "^9.0.0-next.21",
36
- "@zendeskgarden/svg-icons": "7.1.1"
35
+ "@zendeskgarden/react-theming": "^9.0.0-next.23",
36
+ "@zendeskgarden/svg-icons": "7.2.0"
37
37
  },
38
38
  "keywords": [
39
39
  "components",
@@ -45,5 +45,5 @@
45
45
  "access": "public"
46
46
  },
47
47
  "zendeskgarden:src": "src/index.ts",
48
- "gitHead": "a245ce2b794ea65142174a6a1f855a111b2677a2"
48
+ "gitHead": "5e7d2ed69a1615e09406a3f9285359346bb90cc7"
49
49
  }