@leafygreen-ui/icon 11.23.0 → 11.24.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/CHANGELOG.md +6 -0
- package/README.md +7 -7
- package/dist/Colon.js +2 -0
- package/dist/Colon.js.map +1 -0
- package/dist/TimeSeriesCollection.js +2 -0
- package/dist/TimeSeriesCollection.js.map +1 -0
- package/dist/esm/Colon.js +2 -0
- package/dist/esm/Colon.js.map +1 -0
- package/dist/esm/TimeSeriesCollection.js +2 -0
- package/dist/esm/TimeSeriesCollection.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/Colon.d.ts +23 -0
- package/dist/generated/Colon.d.ts.map +1 -0
- package/dist/generated/TimeSeriesCollection.d.ts +23 -0
- package/dist/generated/TimeSeriesCollection.d.ts.map +1 -0
- package/dist/glyphs/index.d.ts +9 -1
- package/dist/glyphs/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/generated/Colon.tsx +45 -0
- package/src/generated/TimeSeriesCollection.tsx +45 -0
- package/src/glyphs/Colon.svg +4 -0
- package/src/glyphs/TimeSeriesCollection.svg +5 -0
- package/src/glyphs/index.ts +4 -0
- package/stories.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafygreen-ui/icon",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.24.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": "^
|
|
27
|
+
"@leafygreen-ui/lib": "^12.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 7f32401256260ec3b5cbee7348a1663c
|
|
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 ColonProps extends LGGlyph.ComponentProps {}
|
|
13
|
+
const Colon = ({
|
|
14
|
+
className,
|
|
15
|
+
size = 16,
|
|
16
|
+
title,
|
|
17
|
+
['aria-label']: ariaLabel,
|
|
18
|
+
['aria-labelledby']: ariaLabelledby,
|
|
19
|
+
fill,
|
|
20
|
+
role = 'img',
|
|
21
|
+
...props
|
|
22
|
+
}: ColonProps) => {
|
|
23
|
+
const fillStyle = css`
|
|
24
|
+
color: ${fill};
|
|
25
|
+
`;
|
|
26
|
+
const noFlexShrink = css`
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
`;
|
|
29
|
+
const accessibleProps = generateAccessibleProps(role, 'Colon', {
|
|
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 4.5C10 5.60457 9.10457 6.5 8 6.5C6.89543 6.5 6 5.60457 6 4.5C6 3.39543 6.89543 2.5 8 2.5C9.10457 2.5 10 3.39543 10 4.5Z" fill={'currentColor'} /><path d="M10 11.5C10 12.6046 9.10457 13.5 8 13.5C6.89543 13.5 6 12.6046 6 11.5C6 10.3954 6.89543 9.5 8 9.5C9.10457 9.5 10 10.3954 10 11.5Z" fill={'currentColor'} /></svg>;
|
|
37
|
+
};
|
|
38
|
+
Colon.displayName = 'Colon';
|
|
39
|
+
Colon.isGlyph = true;
|
|
40
|
+
Colon.propTypes = {
|
|
41
|
+
fill: PropTypes.string,
|
|
42
|
+
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
43
|
+
className: PropTypes.string
|
|
44
|
+
};
|
|
45
|
+
export default Colon;
|
|
@@ -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 49eef07057b19edf94e1e4502386a268
|
|
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 TimeSeriesCollectionProps extends LGGlyph.ComponentProps {}
|
|
13
|
+
const TimeSeriesCollection = ({
|
|
14
|
+
className,
|
|
15
|
+
size = 16,
|
|
16
|
+
title,
|
|
17
|
+
['aria-label']: ariaLabel,
|
|
18
|
+
['aria-labelledby']: ariaLabelledby,
|
|
19
|
+
fill,
|
|
20
|
+
role = 'img',
|
|
21
|
+
...props
|
|
22
|
+
}: TimeSeriesCollectionProps) => {
|
|
23
|
+
const fillStyle = css`
|
|
24
|
+
color: ${fill};
|
|
25
|
+
`;
|
|
26
|
+
const noFlexShrink = css`
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
`;
|
|
29
|
+
const accessibleProps = generateAccessibleProps(role, 'TimeSeriesCollection', {
|
|
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="M13.6 10.3826H15C15.6 10.3826 16 10.8816 16 11.4805C16 12.0794 15.6 12.4787 15 12.4787H14.1L12.6 14.5748C12.4 14.8742 12 15.0738 11.6 14.974C11.2 14.8742 10.9 14.5748 10.8 14.1755L10.4 12.4787L10 13.6764C9.9 13.9759 9.5 14.2753 9.1 14.2753H8C7.4 14.2753 7 13.8761 7 13.2772C7 12.6783 7.4 12.279 8 12.279H8.4L9.8 8.58591C9.9 8.18665 10.4 7.98702 10.8 7.98702C11.2 7.98702 11.6 8.38628 11.7 8.68572L12.3 11.4805L12.8 10.7818C13 10.5822 13.3 10.3826 13.6 10.3826Z" fill={'currentColor'} /><path d="M1.92857 1C1.41574 1 1 1.40964 1 1.91497V11.0646C1 11.57 1.41574 11.9796 1.92857 11.9796H5.84028C5.94099 11.8068 6.06518 11.6437 6.21434 11.4948C6.53603 11.1737 6.92403 10.9685 7.33247 10.8644L8.37506 8.11411C8.58323 7.43691 9.08123 7.02881 9.48162 6.81567C9.90517 6.59019 10.376 6.4898 10.8 6.4898C11.4819 6.4898 12.0142 6.81318 12.3314 7.08112C12.6494 7.34973 12.9659 7.74184 13.123 8.21226L13.1493 8.29092L13.2818 8.90808C13.3842 8.8934 13.4904 8.88535 13.6 8.88535H14V3.7449C14 3.23958 13.5843 2.82993 13.0714 2.82993H7.5C6.98716 2.82993 6.57143 2.42029 6.57143 1.91497C6.57143 1.40964 6.15569 1 5.64286 1H1.92857Z" fill={'currentColor'} /><path d="M10.9494 8.00476C10.9275 7.99966 10.9055 7.9956 10.8835 7.99266L10.9494 8.00476Z" fill={'currentColor'} /></svg>;
|
|
37
|
+
};
|
|
38
|
+
TimeSeriesCollection.displayName = 'TimeSeriesCollection';
|
|
39
|
+
TimeSeriesCollection.isGlyph = true;
|
|
40
|
+
TimeSeriesCollection.propTypes = {
|
|
41
|
+
fill: PropTypes.string,
|
|
42
|
+
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
43
|
+
className: PropTypes.string
|
|
44
|
+
};
|
|
45
|
+
export default TimeSeriesCollection;
|
|
@@ -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 d="M10 4.5C10 5.60457 9.10457 6.5 8 6.5C6.89543 6.5 6 5.60457 6 4.5C6 3.39543 6.89543 2.5 8 2.5C9.10457 2.5 10 3.39543 10 4.5Z" fill="#000000"/>
|
|
3
|
+
<path d="M10 11.5C10 12.6046 9.10457 13.5 8 13.5C6.89543 13.5 6 12.6046 6 11.5C6 10.3954 6.89543 9.5 8 9.5C9.10457 9.5 10 10.3954 10 11.5Z" fill="#000000"/>
|
|
4
|
+
</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 d="M13.6 10.3826H15C15.6 10.3826 16 10.8816 16 11.4805C16 12.0794 15.6 12.4787 15 12.4787H14.1L12.6 14.5748C12.4 14.8742 12 15.0738 11.6 14.974C11.2 14.8742 10.9 14.5748 10.8 14.1755L10.4 12.4787L10 13.6764C9.9 13.9759 9.5 14.2753 9.1 14.2753H8C7.4 14.2753 7 13.8761 7 13.2772C7 12.6783 7.4 12.279 8 12.279H8.4L9.8 8.58591C9.9 8.18665 10.4 7.98702 10.8 7.98702C11.2 7.98702 11.6 8.38628 11.7 8.68572L12.3 11.4805L12.8 10.7818C13 10.5822 13.3 10.3826 13.6 10.3826Z" fill="#000000"/>
|
|
3
|
+
<path d="M1.92857 1C1.41574 1 1 1.40964 1 1.91497V11.0646C1 11.57 1.41574 11.9796 1.92857 11.9796H5.84028C5.94099 11.8068 6.06518 11.6437 6.21434 11.4948C6.53603 11.1737 6.92403 10.9685 7.33247 10.8644L8.37506 8.11411C8.58323 7.43691 9.08123 7.02881 9.48162 6.81567C9.90517 6.59019 10.376 6.4898 10.8 6.4898C11.4819 6.4898 12.0142 6.81318 12.3314 7.08112C12.6494 7.34973 12.9659 7.74184 13.123 8.21226L13.1493 8.29092L13.2818 8.90808C13.3842 8.8934 13.4904 8.88535 13.6 8.88535H14V3.7449C14 3.23958 13.5843 2.82993 13.0714 2.82993H7.5C6.98716 2.82993 6.57143 2.42029 6.57143 1.91497C6.57143 1.40964 6.15569 1 5.64286 1H1.92857Z" fill="#000000"/>
|
|
4
|
+
<path d="M10.9494 8.00476C10.9275 7.99966 10.9055 7.9956 10.8835 7.99266L10.9494 8.00476Z" fill="#000000"/>
|
|
5
|
+
</svg>
|
package/src/glyphs/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ import Clone from './Clone.svg';
|
|
|
35
35
|
import Cloud from './Cloud.svg';
|
|
36
36
|
import Code from './Code.svg';
|
|
37
37
|
import CodeBlock from './CodeBlock.svg';
|
|
38
|
+
import Colon from './Colon.svg';
|
|
38
39
|
import Connect from './Connect.svg';
|
|
39
40
|
import Copy from './Copy.svg';
|
|
40
41
|
import CreditCard from './CreditCard.svg';
|
|
@@ -123,6 +124,7 @@ import Tag from './Tag.svg';
|
|
|
123
124
|
import ThumbsDown from './ThumbsDown.svg';
|
|
124
125
|
import ThumbsUp from './ThumbsUp.svg';
|
|
125
126
|
import TimeSeries from './TimeSeries.svg';
|
|
127
|
+
import TimeSeriesCollection from './TimeSeriesCollection.svg';
|
|
126
128
|
import Trash from './Trash.svg';
|
|
127
129
|
import Undo from './Undo.svg';
|
|
128
130
|
import University from './University.svg';
|
|
@@ -174,6 +176,7 @@ const _glyphs = {
|
|
|
174
176
|
Cloud,
|
|
175
177
|
Code,
|
|
176
178
|
CodeBlock,
|
|
179
|
+
Colon,
|
|
177
180
|
Connect,
|
|
178
181
|
Copy,
|
|
179
182
|
CreditCard,
|
|
@@ -262,6 +265,7 @@ const _glyphs = {
|
|
|
262
265
|
ThumbsDown,
|
|
263
266
|
ThumbsUp,
|
|
264
267
|
TimeSeries,
|
|
268
|
+
TimeSeriesCollection,
|
|
265
269
|
Trash,
|
|
266
270
|
Undo,
|
|
267
271
|
University,
|