@leafygreen-ui/icon 11.24.0 → 11.25.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": "11.24.0",
3
+ "version": "11.25.0",
4
4
  "description": "LeafyGreen UI Kit Icons",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@leafygreen-ui/palette": "^4.0.7",
27
- "@leafygreen-ui/lib": "^12.0.0",
27
+ "@leafygreen-ui/lib": "^13.0.0",
28
28
  "@svgr/core": "^5.3.1",
29
29
  "@types/meow": "^6.0.0",
30
30
  "@types/xml2json": "^0.11.0",
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This is a generated file. Do not modify it manually.
3
+ *
4
+ * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
5
+ * @checksum 481f956d3f26c3bc1a4d26d1fa6d0897
6
+ */
7
+ import * as React from "react";
8
+ import PropTypes from 'prop-types';
9
+ import { css, cx } from '@leafygreen-ui/emotion';
10
+ import { generateAccessibleProps, sizeMap } from '../glyphCommon';
11
+ import { LGGlyph } from '../types';
12
+ export interface BooleanProps extends LGGlyph.ComponentProps {}
13
+ const Boolean = ({
14
+ className,
15
+ size = 16,
16
+ title,
17
+ ['aria-label']: ariaLabel,
18
+ ['aria-labelledby']: ariaLabelledby,
19
+ fill,
20
+ role = 'img',
21
+ ...props
22
+ }: BooleanProps) => {
23
+ const fillStyle = css`
24
+ color: ${fill};
25
+ `;
26
+ const noFlexShrink = css`
27
+ flex-shrink: 0;
28
+ `;
29
+ const accessibleProps = generateAccessibleProps(role, 'Boolean', {
30
+ title,
31
+ ['aria-label']: ariaLabel,
32
+ ['aria-labelledby']: ariaLabelledby
33
+ });
34
+ return <svg className={cx({
35
+ [fillStyle]: fill != null
36
+ }, 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="M8 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2ZM12 8C12 10.2091 10.2091 12 8 12V4C10.2091 4 12 5.79086 12 8Z" fill={'currentColor'} /></svg>;
37
+ };
38
+ Boolean.displayName = 'Boolean';
39
+ Boolean.isGlyph = true;
40
+ Boolean.propTypes = {
41
+ fill: PropTypes.string,
42
+ size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
43
+ className: PropTypes.string
44
+ };
45
+ export default Boolean;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This is a generated file. Do not modify it manually.
3
+ *
4
+ * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
5
+ * @checksum ae062790b82d82a5c11a37a16da576b4
6
+ */
7
+ import * as React from "react";
8
+ import PropTypes from 'prop-types';
9
+ import { css, cx } from '@leafygreen-ui/emotion';
10
+ import { generateAccessibleProps, sizeMap } from '../glyphCommon';
11
+ import { LGGlyph } from '../types';
12
+ export interface LightningBoltProps extends LGGlyph.ComponentProps {}
13
+ const LightningBolt = ({
14
+ className,
15
+ size = 16,
16
+ title,
17
+ ['aria-label']: ariaLabel,
18
+ ['aria-labelledby']: ariaLabelledby,
19
+ fill,
20
+ role = 'img',
21
+ ...props
22
+ }: LightningBoltProps) => {
23
+ const fillStyle = css`
24
+ color: ${fill};
25
+ `;
26
+ const noFlexShrink = css`
27
+ flex-shrink: 0;
28
+ `;
29
+ const accessibleProps = generateAccessibleProps(role, 'LightningBolt', {
30
+ title,
31
+ ['aria-label']: ariaLabel,
32
+ ['aria-labelledby']: ariaLabelledby
33
+ });
34
+ return <svg className={cx({
35
+ [fillStyle]: fill != null
36
+ }, 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="M9.22274 1.99296C9.22274 1.49561 8.56293 1.31233 8.30107 1.73667L4.07384 8.58696C3.87133 8.91513 4.10921 9.33717 4.49748 9.33717H6.77682L6.77682 14.0066C6.77682 14.504 7.43627 14.6879 7.69813 14.2635L11.9262 7.4118C12.1288 7.08363 11.8903 6.66244 11.5021 6.66244H9.22274V1.99296Z" fill={'currentColor'} /></svg>;
37
+ };
38
+ LightningBolt.displayName = 'LightningBolt';
39
+ LightningBolt.isGlyph = true;
40
+ LightningBolt.propTypes = {
41
+ fill: PropTypes.string,
42
+ size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
43
+ className: PropTypes.string
44
+ };
45
+ export default LightningBolt;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * This is a generated file. Do not modify it manually.
3
+ *
4
+ * @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
5
+ * @checksum 18153fd33ca7f9f7251f6cc9f4b3f9db
6
+ */
7
+ import * as React from "react";
8
+ import PropTypes from 'prop-types';
9
+ import { css, cx } from '@leafygreen-ui/emotion';
10
+ import { generateAccessibleProps, sizeMap } from '../glyphCommon';
11
+ import { LGGlyph } from '../types';
12
+ export interface StringProps extends LGGlyph.ComponentProps {}
13
+ const String = ({
14
+ className,
15
+ size = 16,
16
+ title,
17
+ ['aria-label']: ariaLabel,
18
+ ['aria-labelledby']: ariaLabelledby,
19
+ fill,
20
+ role = 'img',
21
+ ...props
22
+ }: StringProps) => {
23
+ const fillStyle = css`
24
+ color: ${fill};
25
+ `;
26
+ const noFlexShrink = css`
27
+ flex-shrink: 0;
28
+ `;
29
+ const accessibleProps = generateAccessibleProps(role, 'String', {
30
+ title,
31
+ ['aria-label']: ariaLabel,
32
+ ['aria-labelledby']: ariaLabelledby
33
+ });
34
+ return <svg className={cx({
35
+ [fillStyle]: fill != null
36
+ }, 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="M10.6897 14H5.31034L5.15987 13.8629V13.1086L5.31034 12.9714H5.91223C6.2884 12.9714 6.66458 12.6286 6.66458 12.2857V3.5H5.76176C3.7116 3.5 3.22257 4.22857 3.09091 5.32571L2.94044 5.46286H2.11285L2 5.32571L2.28213 2.13714L2.4326 2H13.5674L13.7179 2.13714L14 5.32571L13.8871 5.46286H13.0596L12.9091 5.32571C12.7774 4.22857 12.2884 3.5 10.2382 3.5H9.33542V12.2857C9.33542 12.6286 9.7116 12.9714 10.0878 12.9714H10.6897L10.8401 13.1086V13.8629L10.6897 14Z" fill={'currentColor'} /></svg>;
37
+ };
38
+ String.displayName = 'String';
39
+ String.isGlyph = true;
40
+ String.propTypes = {
41
+ fill: PropTypes.string,
42
+ size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
43
+ className: PropTypes.string
44
+ };
45
+ export default String;
@@ -0,0 +1,3 @@
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 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2ZM12 8C12 10.2091 10.2091 12 8 12V4C10.2091 4 12 5.79086 12 8Z" fill="#000"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.22274 1.99296C9.22274 1.49561 8.56293 1.31233 8.30107 1.73667L4.07384 8.58696C3.87133 8.91513 4.10921 9.33717 4.49748 9.33717H6.77682L6.77682 14.0066C6.77682 14.504 7.43627 14.6879 7.69813 14.2635L11.9262 7.4118C12.1288 7.08363 11.8903 6.66244 11.5021 6.66244H9.22274V1.99296Z" fill="#000000"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.6897 14H5.31034L5.15987 13.8629V13.1086L5.31034 12.9714H5.91223C6.2884 12.9714 6.66458 12.6286 6.66458 12.2857V3.5H5.76176C3.7116 3.5 3.22257 4.22857 3.09091 5.32571L2.94044 5.46286H2.11285L2 5.32571L2.28213 2.13714L2.4326 2H13.5674L13.7179 2.13714L14 5.32571L13.8871 5.46286H13.0596L12.9091 5.32571C12.7774 4.22857 12.2884 3.5 10.2382 3.5H9.33542V12.2857C9.33542 12.6286 9.7116 12.9714 10.0878 12.9714H10.6897L10.8401 13.1086V13.8629L10.6897 14Z" fill="#000"/>
3
+ </svg>
@@ -14,6 +14,7 @@ import ArrowUp from './ArrowUp.svg';
14
14
  import Beaker from './Beaker.svg';
15
15
  import Bell from './Bell.svg';
16
16
  import Biometric from './Biometric.svg';
17
+ import Boolean from './Boolean.svg';
17
18
  import Building from './Building.svg';
18
19
  import Bulb from './Bulb.svg';
19
20
  import Calendar from './Calendar.svg';
@@ -71,6 +72,7 @@ import InfoWithCircle from './InfoWithCircle.svg';
71
72
  import InviteUser from './InviteUser.svg';
72
73
  import Key from './Key.svg';
73
74
  import Laptop from './Laptop.svg';
75
+ import LightningBolt from './LightningBolt.svg';
74
76
  import Link from './Link.svg';
75
77
  import List from './List.svg';
76
78
  import Lock from './Lock.svg';
@@ -117,6 +119,7 @@ import Sparkle from './Sparkle.svg';
117
119
  import SplitHorizontal from './SplitHorizontal.svg';
118
120
  import SplitVertical from './SplitVertical.svg';
119
121
  import Stitch from './Stitch.svg';
122
+ import String from './String.svg';
120
123
  import Support from './Support.svg';
121
124
  import Sweep from './Sweep.svg';
122
125
  import Table from './Table.svg';
@@ -155,6 +158,7 @@ const _glyphs = {
155
158
  Beaker,
156
159
  Bell,
157
160
  Biometric,
161
+ Boolean,
158
162
  Building,
159
163
  Bulb,
160
164
  Calendar,
@@ -212,6 +216,7 @@ const _glyphs = {
212
216
  InviteUser,
213
217
  Key,
214
218
  Laptop,
219
+ LightningBolt,
215
220
  Link,
216
221
  List,
217
222
  Lock,
@@ -258,6 +263,7 @@ const _glyphs = {
258
263
  SplitHorizontal,
259
264
  SplitVertical,
260
265
  Stitch,
266
+ String,
261
267
  Support,
262
268
  Sweep,
263
269
  Table,