@leafygreen-ui/icon 14.8.0 → 14.9.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafygreen-ui/icon",
3
- "version": "14.8.0",
3
+ "version": "14.9.0",
4
4
  "description": "LeafyGreen UI Kit Icons",
5
5
  "main": "./dist/umd/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "lodash": "^4.17.21",
32
32
  "@leafygreen-ui/emotion": "^5.2.0",
33
- "@leafygreen-ui/hooks": "^9.3.0"
33
+ "@leafygreen-ui/hooks": "^9.3.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@rollup/plugin-node-resolve": "15.1.0",
@@ -43,9 +43,9 @@
43
43
  "ts-node": "^10.9.2",
44
44
  "rollup-plugin-node-externals": "7.1.1",
45
45
  "xml2json": "^0.12.0",
46
- "@leafygreen-ui/lib": "^15.7.0",
47
46
  "@leafygreen-ui/palette": "^5.0.2",
48
47
  "@lg-tools/build": "^0.9.0",
48
+ "@leafygreen-ui/lib": "^15.7.0",
49
49
  "@lg-tools/lint": "^3.1.1",
50
50
  "@lg-tools/storybook-utils": "^0.3.4"
51
51
  },
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This is a generated file. Do not modify it manually.
3
+ *
4
+ * @script packages/icon/scripts/prebuild/index.ts
5
+ * @checksum 944a0b27355b0b2cc6ec9d8e75a02efa
6
+ */
7
+ import * as React from "react";
8
+ import { css, cx } from '@leafygreen-ui/emotion';
9
+ import { useIdAllocator } from '@leafygreen-ui/hooks';
10
+ import { generateAccessibleProps, sizeMap } from '../glyphCommon';
11
+ import { LGGlyph } from '../types';
12
+ export interface SearchNodeProps extends LGGlyph.ComponentProps {}
13
+ const SearchNode = ({
14
+ className,
15
+ size = 16,
16
+ title,
17
+ ['aria-label']: ariaLabel,
18
+ ['aria-labelledby']: ariaLabelledby,
19
+ fill,
20
+ role = 'img',
21
+ ...props
22
+ }: SearchNodeProps) => {
23
+ const titleId = useIdAllocator({
24
+ prefix: 'icon-title'
25
+ });
26
+ const fillStyle = css`
27
+ color: ${fill};
28
+ `;
29
+ const noFlexShrink = css`
30
+ flex-shrink: 0;
31
+ `;
32
+ const accessibleProps = generateAccessibleProps(role, 'SearchNode', {
33
+ title,
34
+ titleId,
35
+ ['aria-label']: ariaLabel,
36
+ ['aria-labelledby']: ariaLabelledby
37
+ });
38
+ return <svg className={cx({
39
+ [fillStyle]: fill != null
40
+ }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox="0 0 16 16">{title && <title id={titleId}>{title}</title>}<path fillRule="evenodd" clipRule="evenodd" d="M8.3883 9.2529C7.4312 9.8245 6.1735 9.6983 5.3492 8.8741C4.3758 7.9007 4.3758 6.3225 5.3492 5.3492C6.3225 4.3758 7.9007 4.3758 8.8741 5.3492C9.6983 6.1735 9.8245 7.4312 9.2529 8.3883L11.2018 10.3372C11.4405 10.5759 11.4405 10.9631 11.2018 11.2018C10.9631 11.4405 10.5759 11.4405 10.3372 11.2018L8.3883 9.2529ZM8.0095 8.0095C8.5053 7.5136 8.5053 6.7096 8.0095 6.2138C7.5136 5.7179 6.7096 5.7179 6.2138 6.2138C5.7179 6.7096 5.7179 7.5136 6.2138 8.0095C6.7096 8.5053 7.5136 8.5053 8.0095 8.0095Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8C1 4.134 4.134 1 8 1C11.866 1 15 4.134 15 8ZM13.5 8C13.5 11.0375 11.0375 13.5 8 13.5C4.9624 13.5 2.5 11.0375 2.5 8C2.5 4.9624 4.9624 2.5 8 2.5C11.0375 2.5 13.5 4.9624 13.5 8Z" fill={'currentColor'} /></svg>;
41
+ };
42
+ SearchNode.displayName = 'SearchNode';
43
+ SearchNode.isGlyph = true;
44
+ export default SearchNode;
@@ -143,6 +143,7 @@ export { default as Revert } from './Revert';
143
143
  export { default as Router } from './Router';
144
144
  export { default as Save } from './Save';
145
145
  export { default as SearchIndex } from './SearchIndex';
146
+ export { default as SearchNode } from './SearchNode';
146
147
  export { default as Secondary } from './Secondary';
147
148
  export { default as Serverless } from './Serverless';
148
149
  export { default as Settings } from './Settings';
@@ -0,0 +1,4 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8.3883 9.2529C7.4312 9.8245 6.1735 9.6983 5.3492 8.8741C4.3758 7.9007 4.3758 6.3225 5.3492 5.3492C6.3225 4.3758 7.9007 4.3758 8.8741 5.3492C9.6983 6.1735 9.8245 7.4312 9.2529 8.3883L11.2018 10.3372C11.4405 10.5759 11.4405 10.9631 11.2018 11.2018C10.9631 11.4405 10.5759 11.4405 10.3372 11.2018L8.3883 9.2529ZM8.0095 8.0095C8.5053 7.5136 8.5053 6.7096 8.0095 6.2138C7.5136 5.7179 6.7096 5.7179 6.2138 6.2138C5.7179 6.7096 5.7179 7.5136 6.2138 8.0095C6.7096 8.5053 7.5136 8.5053 8.0095 8.0095Z" fill="#000000"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8C1 4.134 4.134 1 8 1C11.866 1 15 4.134 15 8ZM13.5 8C13.5 11.0375 11.0375 13.5 8 13.5C4.9624 13.5 2.5 11.0375 2.5 8C2.5 4.9624 4.9624 2.5 8 2.5C11.0375 2.5 13.5 4.9624 13.5 8Z" fill="#000000"/>
4
+ </svg>
@@ -138,6 +138,7 @@ import Revert from './Revert.svg';
138
138
  import Router from './Router.svg';
139
139
  import Save from './Save.svg';
140
140
  import SearchIndex from './SearchIndex.svg';
141
+ import SearchNode from './SearchNode.svg';
141
142
  import Secondary from './Secondary.svg';
142
143
  import Serverless from './Serverless.svg';
143
144
  import Settings from './Settings.svg';
@@ -325,6 +326,7 @@ export const glyphs = {
325
326
  SMS,
326
327
  Save,
327
328
  SearchIndex,
329
+ SearchNode,
328
330
  Secondary,
329
331
  Serverless,
330
332
  Settings,