@leafygreen-ui/icon 14.1.1 → 14.2.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.1.1",
3
+ "version": "14.2.0",
4
4
  "description": "LeafyGreen UI Kit Icons",
5
5
  "main": "./dist/umd/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -24,9 +24,9 @@
24
24
  "p-queue": "^8.1.0",
25
25
  "fs-extra": "11.1.1",
26
26
  "@leafygreen-ui/lib": "^15.2.0",
27
+ "@leafygreen-ui/palette": "^5.0.0",
27
28
  "@lg-tools/build": "^0.8.0",
28
- "@lg-tools/lint": "^3.0.0",
29
- "@leafygreen-ui/palette": "^5.0.0"
29
+ "@lg-tools/lint": "^3.0.0"
30
30
  },
31
31
  "gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0",
32
32
  "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/icon",
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This is a generated file. Do not modify it manually.
3
+ *
4
+ * @script packages/icon/scripts/prebuild.ts
5
+ * @checksum a48c17f2c48df0b38a9d9985cfddd889
6
+ */
7
+ import * as React from "react";
8
+ import { css, cx } from '@leafygreen-ui/emotion';
9
+ import { generateAccessibleProps, sizeMap } from '../glyphCommon';
10
+ import { LGGlyph } from '../types';
11
+ export interface AIModelProps extends LGGlyph.ComponentProps {}
12
+ const AIModel = ({
13
+ className,
14
+ size = 16,
15
+ title,
16
+ ['aria-label']: ariaLabel,
17
+ ['aria-labelledby']: ariaLabelledby,
18
+ fill,
19
+ role = 'img',
20
+ ...props
21
+ }: AIModelProps) => {
22
+ const fillStyle = css`
23
+ color: ${fill};
24
+ `;
25
+ const noFlexShrink = css`
26
+ flex-shrink: 0;
27
+ `;
28
+ const accessibleProps = generateAccessibleProps(role, 'AIModel', {
29
+ title,
30
+ ['aria-label']: ariaLabel,
31
+ ['aria-labelledby']: ariaLabelledby
32
+ });
33
+ return <svg className={cx({
34
+ [fillStyle]: fill != null
35
+ }, 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"><path d="M13.5625 5.30957V10.6895L8 13.4414L2.4375 10.6895V5.30957L8 2.55762L13.5625 5.30957Z" stroke={'currentColor'} /><path d="M8 2L8 14" stroke={'currentColor'} strokeWidth={0.5} /><path d="M3.09998 10.8594L12.5324 5.19998" stroke={'currentColor'} strokeWidth={0.5} strokeLinecap="round" /><path d="M3.19995 5.20001L12.6324 10.8595" stroke={'currentColor'} strokeWidth={0.5} strokeLinecap="round" /><circle cx={8} cy={2.75} r={1.75} fill={'currentColor'} /><circle cx={8} cy={2.75} r={1.75} stroke={'currentColor'} /><circle cx={8} cy={13.25} r={1.75} fill={'currentColor'} /><circle cx={8} cy={13.25} r={1.75} stroke={'currentColor'} /><circle cx={8} cy={8} r={1.75} fill={'currentColor'} /><circle cx={8} cy={8} r={1.75} stroke={'currentColor'} /><circle cx={13.25} cy={5} r={1.75} fill={'currentColor'} /><circle cx={13.25} cy={5} r={1.75} stroke={'currentColor'} /><circle cx={13.25} cy={10.75} r={1.75} fill={'currentColor'} /><circle cx={13.25} cy={10.75} r={1.75} stroke={'currentColor'} /><circle cx={2.75} cy={10.75} r={1.75} fill={'currentColor'} /><circle cx={2.75} cy={10.75} r={1.75} stroke={'currentColor'} /><circle cx={2.75} cy={5} r={1.75} fill={'currentColor'} /><circle cx={2.75} cy={5} r={1.75} stroke={'currentColor'} /></svg>;
36
+ };
37
+ AIModel.displayName = 'AIModel';
38
+ AIModel.isGlyph = true;
39
+ export default AIModel;
@@ -0,0 +1,20 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.5625 5.30957V10.6895L8 13.4414L2.4375 10.6895V5.30957L8 2.55762L13.5625 5.30957Z" stroke="#000"/>
3
+ <path d="M8 2L8 14" stroke="#000" stroke-width="0.5"/>
4
+ <path d="M3.09998 10.8594L12.5324 5.19998" stroke="#000" stroke-width="0.5" stroke-linecap="round"/>
5
+ <path d="M3.19995 5.20001L12.6324 10.8595" stroke="#000" stroke-width="0.5" stroke-linecap="round"/>
6
+ <circle cx="8" cy="2.75" r="1.75" fill="#000"/>
7
+ <circle cx="8" cy="2.75" r="1.75" stroke="#000"/>
8
+ <circle cx="8" cy="13.25" r="1.75" fill="#000"/>
9
+ <circle cx="8" cy="13.25" r="1.75" stroke="#000"/>
10
+ <circle cx="8" cy="8" r="1.75" fill="#000"/>
11
+ <circle cx="8" cy="8" r="1.75" stroke="#000"/>
12
+ <circle cx="13.25" cy="5" r="1.75" fill="#000"/>
13
+ <circle cx="13.25" cy="5" r="1.75" stroke="#000"/>
14
+ <circle cx="13.25" cy="10.75" r="1.75" fill="#000"/>
15
+ <circle cx="13.25" cy="10.75" r="1.75" stroke="#000"/>
16
+ <circle cx="2.75" cy="10.75" r="1.75" fill="#000"/>
17
+ <circle cx="2.75" cy="10.75" r="1.75" stroke="#000"/>
18
+ <circle cx="2.75" cy="5" r="1.75" fill="#000"/>
19
+ <circle cx="2.75" cy="5" r="1.75" stroke="#000"/>
20
+ </svg>
@@ -1,9 +1,10 @@
1
1
  import { createGlyphComponent } from '../createGlyphComponent';
2
2
  import { LGGlyph } from '../types';
3
3
 
4
- // Glyphs
5
4
  import ActivityFeed from './ActivityFeed.svg';
6
5
  import AddFile from './AddFile.svg';
6
+ // Glyphs
7
+ import AIModel from './AIModel.svg';
7
8
  import AllProducts from './AllProducts.svg';
8
9
  import AnalyticsNode from './AnalyticsNode.svg';
9
10
  import Apps from './Apps.svg';
@@ -183,6 +184,7 @@ import X from './X.svg';
183
184
  import XWithCircle from './XWithCircle.svg';
184
185
 
185
186
  const _glyphs = {
187
+ AIModel,
186
188
  ActivityFeed,
187
189
  AddFile,
188
190
  AllProducts,