@leafygreen-ui/icon 13.2.2 → 13.3.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": "13.2.2",
3
+ "version": "13.3.0",
4
4
  "description": "LeafyGreen UI Kit Icons",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -26,9 +26,9 @@
26
26
  "commander": "^11.0.0",
27
27
  "ts-node": "^10.9.2",
28
28
  "xml2json": "^0.12.0",
29
- "@leafygreen-ui/lib": "^14.2.0",
30
29
  "@leafygreen-ui/palette": "^4.1.4",
31
- "@lg-tools/lint": "^2.1.0"
30
+ "@lg-tools/lint": "^2.1.1",
31
+ "@leafygreen-ui/lib": "^14.2.0"
32
32
  },
33
33
  "gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0",
34
34
  "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 18812b652dec3c87cd0064139d828f55
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 GuideProps extends LGGlyph.ComponentProps {}
12
+ const Guide = ({
13
+ className,
14
+ size = 16,
15
+ title,
16
+ ['aria-label']: ariaLabel,
17
+ ['aria-labelledby']: ariaLabelledby,
18
+ fill,
19
+ role = 'img',
20
+ ...props
21
+ }: GuideProps) => {
22
+ const fillStyle = css`
23
+ color: ${fill};
24
+ `;
25
+ const noFlexShrink = css`
26
+ flex-shrink: 0;
27
+ `;
28
+ const accessibleProps = generateAccessibleProps(role, 'Guide', {
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="M5.37041 4.32956C5.03839 4.32956 4.76923 4.61178 4.76923 4.95993C4.76923 5.30808 5.03839 5.5903 5.37041 5.5903H8.17592C8.50794 5.5903 8.7771 5.30808 8.7771 4.95993C8.7771 4.61178 8.50794 4.32956 8.17592 4.32956H5.37041Z" fill={'currentColor'} /><path d="M5.37041 6.4308C5.03839 6.4308 4.76923 6.71303 4.76923 7.06117C4.76923 7.40932 5.03839 7.69155 5.37041 7.69155H6.97356C7.30558 7.69155 7.57474 7.40932 7.57474 7.06117C7.57474 6.71303 7.30558 6.4308 6.97356 6.4308H5.37041Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M11.4956 2.86667V7.73074C12.952 8.2308 14 9.62499 14 11.2667C14 13.3285 12.3469 15 10.3077 15C8.97652 15 7.80987 14.2877 7.16021 13.2195H3.84615C2.82655 13.2195 2 12.3838 2 11.3529V2.86666C2 1.83573 2.82655 1 3.84615 1H9.64941C10.669 1 11.4956 1.83574 11.4956 2.86667ZM3.84615 2.86666L9.64941 2.86667L9.64941 7.59249C7.92428 7.9064 6.61538 9.43198 6.61538 11.2667C6.61538 11.2955 6.61571 11.3242 6.61635 11.3529H3.84615L3.84615 2.86666ZM10.8352 9.13333C10.8352 9.42789 10.599 9.66667 10.3077 9.66667C10.0164 9.66667 9.78022 9.42789 9.78022 9.13333C9.78022 8.83878 10.0164 8.6 10.3077 8.6C10.599 8.6 10.8352 8.83878 10.8352 9.13333ZM10.3077 10.2C10.599 10.2 10.8352 10.4388 10.8352 10.7333V12.8667H11.0989C11.2446 12.8667 11.3626 12.9861 11.3626 13.1333C11.3626 13.2806 11.2446 13.4 11.0989 13.4H9.51648C9.37083 13.4 9.25275 13.2806 9.25275 13.1333C9.25275 12.9861 9.37083 12.8667 9.51648 12.8667H9.78022V10.7333H9.51648C9.37083 10.7333 9.25275 10.6139 9.25275 10.4667C9.25275 10.3194 9.37083 10.2 9.51648 10.2H10.3077Z" fill={'currentColor'} /></svg>;
36
+ };
37
+ Guide.displayName = 'Guide';
38
+ Guide.isGlyph = true;
39
+ export default Guide;
@@ -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 dd1161fb99ad7a4495d5f8cbf225139b
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 ResourceProps extends LGGlyph.ComponentProps {}
12
+ const Resource = ({
13
+ className,
14
+ size = 16,
15
+ title,
16
+ ['aria-label']: ariaLabel,
17
+ ['aria-labelledby']: ariaLabelledby,
18
+ fill,
19
+ role = 'img',
20
+ ...props
21
+ }: ResourceProps) => {
22
+ const fillStyle = css`
23
+ color: ${fill};
24
+ `;
25
+ const noFlexShrink = css`
26
+ flex-shrink: 0;
27
+ `;
28
+ const accessibleProps = generateAccessibleProps(role, 'Resource', {
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 fillRule="evenodd" clipRule="evenodd" d="M6.09999 1.99998C5.71339 1.99998 5.39999 2.31338 5.39999 2.69998V13.3C5.39999 13.6866 5.71339 14 6.09999 14H8.19999C8.58659 14 8.89999 13.6866 8.89999 13.3V2.69998C8.89999 2.31338 8.58659 1.99998 8.19999 1.99998H6.09999ZM8.02499 2.99998H6.27499V3.99998H8.02499V2.99998ZM6.27499 4.99998H8.02499V5.49998H6.27499V4.99998ZM8.02499 12H6.27499V13H8.02499V12Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M9.84432 2.35808C9.46647 2.4399 9.22758 2.81229 9.31074 3.18984L11.5698 13.4468C11.653 13.8243 12.0267 14.0641 12.4046 13.9823L14.4557 13.5381C14.8335 13.4563 15.0724 13.0839 14.9893 12.7064L12.7302 2.44944C12.647 2.07189 12.2733 1.83215 11.8954 1.91396L9.84432 2.35808ZM11.9381 2.91964L10.2283 3.28984L10.4417 4.25852L12.1514 3.88832L11.9381 2.91964ZM10.6551 5.22735L12.3648 4.85715L12.4715 5.34149L10.7618 5.71169L10.6551 5.22735ZM13.8583 11.6377L12.1485 12.0079L12.3619 12.9766L14.0716 12.6064L13.8583 11.6377Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M2.09999 1.99998C1.71339 1.99998 1.39999 2.31338 1.39999 2.69998V13.3C1.39999 13.6866 1.71339 14 2.09999 14H4.19999C4.58659 14 4.89999 13.6866 4.89999 13.3V2.69998C4.89999 2.31338 4.58659 1.99998 4.19999 1.99998H2.09999ZM4.02499 2.99998H2.27499V3.99998H4.02499V2.99998ZM2.27499 4.99998H4.02499V5.49998H2.27499V4.99998ZM4.02499 12H2.27499V13H4.02499V12Z" fill={'currentColor'} /></svg>;
36
+ };
37
+ Resource.displayName = 'Resource';
38
+ Resource.isGlyph = true;
39
+ export default Resource;
@@ -0,0 +1,5 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5.37041 4.32956C5.03839 4.32956 4.76923 4.61178 4.76923 4.95993C4.76923 5.30808 5.03839 5.5903 5.37041 5.5903H8.17592C8.50794 5.5903 8.7771 5.30808 8.7771 4.95993C8.7771 4.61178 8.50794 4.32956 8.17592 4.32956H5.37041Z" fill="#000"/>
3
+ <path d="M5.37041 6.4308C5.03839 6.4308 4.76923 6.71303 4.76923 7.06117C4.76923 7.40932 5.03839 7.69155 5.37041 7.69155H6.97356C7.30558 7.69155 7.57474 7.40932 7.57474 7.06117C7.57474 6.71303 7.30558 6.4308 6.97356 6.4308H5.37041Z" fill="#000"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.4956 2.86667V7.73074C12.952 8.2308 14 9.62499 14 11.2667C14 13.3285 12.3469 15 10.3077 15C8.97652 15 7.80987 14.2877 7.16021 13.2195H3.84615C2.82655 13.2195 2 12.3838 2 11.3529V2.86666C2 1.83573 2.82655 1 3.84615 1H9.64941C10.669 1 11.4956 1.83574 11.4956 2.86667ZM3.84615 2.86666L9.64941 2.86667L9.64941 7.59249C7.92428 7.9064 6.61538 9.43198 6.61538 11.2667C6.61538 11.2955 6.61571 11.3242 6.61635 11.3529H3.84615L3.84615 2.86666ZM10.8352 9.13333C10.8352 9.42789 10.599 9.66667 10.3077 9.66667C10.0164 9.66667 9.78022 9.42789 9.78022 9.13333C9.78022 8.83878 10.0164 8.6 10.3077 8.6C10.599 8.6 10.8352 8.83878 10.8352 9.13333ZM10.3077 10.2C10.599 10.2 10.8352 10.4388 10.8352 10.7333V12.8667H11.0989C11.2446 12.8667 11.3626 12.9861 11.3626 13.1333C11.3626 13.2806 11.2446 13.4 11.0989 13.4H9.51648C9.37083 13.4 9.25275 13.2806 9.25275 13.1333C9.25275 12.9861 9.37083 12.8667 9.51648 12.8667H9.78022V10.7333H9.51648C9.37083 10.7333 9.25275 10.6139 9.25275 10.4667C9.25275 10.3194 9.37083 10.2 9.51648 10.2H10.3077Z" fill="#000"/>
5
+ </svg>
@@ -0,0 +1,5 @@
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="M6.09999 1.99998C5.71339 1.99998 5.39999 2.31338 5.39999 2.69998V13.3C5.39999 13.6866 5.71339 14 6.09999 14H8.19999C8.58659 14 8.89999 13.6866 8.89999 13.3V2.69998C8.89999 2.31338 8.58659 1.99998 8.19999 1.99998H6.09999ZM8.02499 2.99998H6.27499V3.99998H8.02499V2.99998ZM6.27499 4.99998H8.02499V5.49998H6.27499V4.99998ZM8.02499 12H6.27499V13H8.02499V12Z" fill="#000"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M9.84432 2.35808C9.46647 2.4399 9.22758 2.81229 9.31074 3.18984L11.5698 13.4468C11.653 13.8243 12.0267 14.0641 12.4046 13.9823L14.4557 13.5381C14.8335 13.4563 15.0724 13.0839 14.9893 12.7064L12.7302 2.44944C12.647 2.07189 12.2733 1.83215 11.8954 1.91396L9.84432 2.35808ZM11.9381 2.91964L10.2283 3.28984L10.4417 4.25852L12.1514 3.88832L11.9381 2.91964ZM10.6551 5.22735L12.3648 4.85715L12.4715 5.34149L10.7618 5.71169L10.6551 5.22735ZM13.8583 11.6377L12.1485 12.0079L12.3619 12.9766L14.0716 12.6064L13.8583 11.6377Z" fill="#000"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M2.09999 1.99998C1.71339 1.99998 1.39999 2.31338 1.39999 2.69998V13.3C1.39999 13.6866 1.71339 14 2.09999 14H4.19999C4.58659 14 4.89999 13.6866 4.89999 13.3V2.69998C4.89999 2.31338 4.58659 1.99998 4.19999 1.99998H2.09999ZM4.02499 2.99998H2.27499V3.99998H4.02499V2.99998ZM2.27499 4.99998H4.02499V5.49998H2.27499V4.99998ZM4.02499 12H2.27499V13H4.02499V12Z" fill="#000"/>
5
+ </svg>
@@ -76,6 +76,7 @@ import Function from './Function.svg';
76
76
  import Gauge from './Gauge.svg';
77
77
  import GlobeAmericas from './GlobeAmericas.svg';
78
78
  import GovernmentBuilding from './GovernmentBuilding.svg';
79
+ import Guide from './Guide.svg';
79
80
  import Hash from './Hash.svg';
80
81
  import HiddenSecondaryNode from './HiddenSecondaryNode.svg';
81
82
  import Highlight from './Highlight.svg';
@@ -130,6 +131,7 @@ import Refresh from './Refresh.svg';
130
131
  import Relationship from './Relationship.svg';
131
132
  import ReplicaSet from './ReplicaSet.svg';
132
133
  import Resize from './Resize.svg';
134
+ import Resource from './Resource.svg';
133
135
  import Return from './Return.svg';
134
136
  import Revert from './Revert.svg';
135
137
  import Router from './Router.svg';
@@ -253,6 +255,7 @@ const _glyphs = {
253
255
  Gauge,
254
256
  GlobeAmericas,
255
257
  GovernmentBuilding,
258
+ Guide,
256
259
  Hash,
257
260
  HiddenSecondaryNode,
258
261
  Highlight,
@@ -307,6 +310,7 @@ const _glyphs = {
307
310
  Relationship,
308
311
  ReplicaSet,
309
312
  Resize,
313
+ Resource,
310
314
  Return,
311
315
  Revert,
312
316
  Router,