@leafygreen-ui/icon 11.27.0 → 11.28.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 +12 -0
- package/README.md +7 -7
- package/dist/Database.js +1 -1
- package/dist/Database.js.map +1 -1
- package/dist/HorizontalDrag.js +2 -0
- package/dist/HorizontalDrag.js.map +1 -0
- package/dist/esm/Database.js +1 -1
- package/dist/esm/Database.js.map +1 -1
- package/dist/esm/HorizontalDrag.js +2 -0
- package/dist/esm/HorizontalDrag.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/Database.d.ts +1 -1
- package/dist/generated/HorizontalDrag.d.ts +23 -0
- package/dist/generated/HorizontalDrag.d.ts.map +1 -0
- package/dist/glyphs/index.d.ts +5 -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/Database.tsx +2 -2
- package/src/generated/HorizontalDrag.tsx +45 -0
- package/src/glyphs/Database.svg +4 -4
- package/src/glyphs/HorizontalDrag.svg +8 -0
- package/src/glyphs/index.ts +2 -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.28.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": "^13.
|
|
27
|
+
"@leafygreen-ui/lib": "^13.2.0",
|
|
28
28
|
"@svgr/core": "^5.3.1",
|
|
29
29
|
"@types/meow": "^6.0.0",
|
|
30
30
|
"@types/xml2json": "^0.11.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This is a generated file. Do not modify it manually.
|
|
3
3
|
*
|
|
4
4
|
* @script ./node_modules/.bin/ts-node packages/icon/scripts/build.ts
|
|
5
|
-
* @checksum
|
|
5
|
+
* @checksum 1a3d381274cc44c597a9dea43b6dfd30
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -33,7 +33,7 @@ const Database = ({
|
|
|
33
33
|
});
|
|
34
34
|
return <svg className={cx({
|
|
35
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="
|
|
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.5 4.45183C13.5 4.54132 13.4994 4.6287 13.4981 4.71402C13.4994 4.7453 13.5 4.77673 13.5 4.80831V5.03747C13.5 5.3377 13.364 5.62601 13.0672 5.90874C12.7651 6.19655 12.3171 6.45605 11.7616 6.67306C10.6519 7.10662 9.22074 7.32913 8 7.32913C6.77926 7.32913 5.34814 7.10662 4.23838 6.67306C3.68291 6.45605 3.23494 6.19655 2.93283 5.90874C2.63605 5.62601 2.5 5.3377 2.5 5.03747V4.80831C2.5 4.77292 2.5008 4.73772 2.50239 4.70273C2.5008 4.62111 2.5 4.53749 2.5 4.45183C2.5 2.51664 5.28789 1.59998 8 1.59998C10.7121 1.59998 13.5 2.51664 13.5 4.45183Z" fill={'currentColor'} /><path d="M2.5 6.74736V8.70414C2.5 9.00437 2.63605 9.29268 2.93283 9.57541C3.23494 9.86322 3.68291 10.1227 4.23838 10.3397C5.34814 10.7733 6.77926 10.9958 8 10.9958C9.22074 10.9958 10.6519 10.7733 11.7616 10.3397C12.3171 10.1227 12.7651 9.86322 13.0672 9.57541C13.364 9.29268 13.5 9.00437 13.5 8.70414V6.74736C13.1078 7.06499 12.6198 7.32193 12.0952 7.52688C10.8586 8.00998 9.31057 8.2458 8 8.2458C6.68943 8.2458 5.14138 8.00998 3.90481 7.52688C3.38022 7.32193 2.8922 7.06499 2.5 6.74736Z" fill={'currentColor'} /><path d="M12.0952 11.1935C12.6198 10.9886 13.1078 10.7317 13.5 10.414V11.225C13.5 11.2601 13.4992 11.295 13.4977 11.3297C13.4992 11.4126 13.5 11.4965 13.5 11.5814C13.5 13.5166 10.7121 14.4333 8 14.4333C5.28789 14.4333 2.5 13.5166 2.5 11.5814C2.5 11.4926 2.50063 11.405 2.50188 11.3185C2.50063 11.2875 2.5 11.2563 2.5 11.225V10.414C2.8922 10.7317 3.38022 10.9886 3.90481 11.1935C5.14138 11.6766 6.68943 11.9125 8 11.9125C9.31057 11.9125 10.8586 11.6767 12.0952 11.1935Z" fill={'currentColor'} /></svg>;
|
|
37
37
|
};
|
|
38
38
|
Database.displayName = 'Database';
|
|
39
39
|
Database.isGlyph = true;
|
|
@@ -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 1526003ef4d9aa0d0b75b6f1a902aa04
|
|
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 HorizontalDragProps extends LGGlyph.ComponentProps {}
|
|
13
|
+
const HorizontalDrag = ({
|
|
14
|
+
className,
|
|
15
|
+
size = 16,
|
|
16
|
+
title,
|
|
17
|
+
['aria-label']: ariaLabel,
|
|
18
|
+
['aria-labelledby']: ariaLabelledby,
|
|
19
|
+
fill,
|
|
20
|
+
role = 'img',
|
|
21
|
+
...props
|
|
22
|
+
}: HorizontalDragProps) => {
|
|
23
|
+
const fillStyle = css`
|
|
24
|
+
color: ${fill};
|
|
25
|
+
`;
|
|
26
|
+
const noFlexShrink = css`
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
`;
|
|
29
|
+
const accessibleProps = generateAccessibleProps(role, 'HorizontalDrag', {
|
|
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="M4 9C4.55228 9 5 9.44772 5 10C5 10.5523 4.55228 11 4 11C3.44772 11 3 10.5523 3 10C3 9.44772 3.44772 9 4 9Z" fill={'currentColor'} /><path d="M4 5C4.55228 5 5 5.4477 5 6C5 6.55228 4.55228 7 4 7C3.44772 7 3 6.55228 3 6C3 5.4477 3.44772 5 4 5Z" fill={'currentColor'} /><path d="M8 9C8.55228 9 9 9.44772 9 10C9 10.5523 8.55228 11 8 11C7.44772 11 7 10.5523 7 10C7 9.44772 7.44772 9 8 9Z" fill={'currentColor'} /><path d="M12 9C12.5523 9 13 9.44772 13 10C13 10.5523 12.5523 11 12 11C11.4477 11 11 10.5523 11 10C11 9.44772 11.4477 9 12 9Z" fill={'currentColor'} /><path d="M8 5C8.55228 5 9 5.4477 9 6C9 6.55228 8.55228 7 8 7C7.44772 7 7 6.55228 7 6C7 5.4477 7.44772 5 8 5Z" fill={'currentColor'} /><path d="M12 5C12.5523 5 13 5.4477 13 6C13 6.55228 12.5523 7 12 7C11.4477 7 11 6.55228 11 6C11 5.4477 11.4477 5 12 5Z" fill={'currentColor'} /></svg>;
|
|
37
|
+
};
|
|
38
|
+
HorizontalDrag.displayName = 'HorizontalDrag';
|
|
39
|
+
HorizontalDrag.isGlyph = true;
|
|
40
|
+
HorizontalDrag.propTypes = {
|
|
41
|
+
fill: PropTypes.string,
|
|
42
|
+
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
43
|
+
className: PropTypes.string
|
|
44
|
+
};
|
|
45
|
+
export default HorizontalDrag;
|
package/src/glyphs/Database.svg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"
|
|
2
|
-
<path d="
|
|
3
|
-
<path d="M2 6.
|
|
4
|
-
<path d="M12.
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
2
|
+
<path d="M13.5 4.45183C13.5 4.54132 13.4994 4.6287 13.4981 4.71402C13.4994 4.7453 13.5 4.77673 13.5 4.80831V5.03747C13.5 5.3377 13.364 5.62601 13.0672 5.90874C12.7651 6.19655 12.3171 6.45605 11.7616 6.67306C10.6519 7.10662 9.22074 7.32913 8 7.32913C6.77926 7.32913 5.34814 7.10662 4.23838 6.67306C3.68291 6.45605 3.23494 6.19655 2.93283 5.90874C2.63605 5.62601 2.5 5.3377 2.5 5.03747V4.80831C2.5 4.77292 2.5008 4.73772 2.50239 4.70273C2.5008 4.62111 2.5 4.53749 2.5 4.45183C2.5 2.51664 5.28789 1.59998 8 1.59998C10.7121 1.59998 13.5 2.51664 13.5 4.45183Z" fill="#000"/>
|
|
3
|
+
<path d="M2.5 6.74736V8.70414C2.5 9.00437 2.63605 9.29268 2.93283 9.57541C3.23494 9.86322 3.68291 10.1227 4.23838 10.3397C5.34814 10.7733 6.77926 10.9958 8 10.9958C9.22074 10.9958 10.6519 10.7733 11.7616 10.3397C12.3171 10.1227 12.7651 9.86322 13.0672 9.57541C13.364 9.29268 13.5 9.00437 13.5 8.70414V6.74736C13.1078 7.06499 12.6198 7.32193 12.0952 7.52688C10.8586 8.00998 9.31057 8.2458 8 8.2458C6.68943 8.2458 5.14138 8.00998 3.90481 7.52688C3.38022 7.32193 2.8922 7.06499 2.5 6.74736Z" fill="#000"/>
|
|
4
|
+
<path d="M12.0952 11.1935C12.6198 10.9886 13.1078 10.7317 13.5 10.414V11.225C13.5 11.2601 13.4992 11.295 13.4977 11.3297C13.4992 11.4126 13.5 11.4965 13.5 11.5814C13.5 13.5166 10.7121 14.4333 8 14.4333C5.28789 14.4333 2.5 13.5166 2.5 11.5814C2.5 11.4926 2.50063 11.405 2.50188 11.3185C2.50063 11.2875 2.5 11.2563 2.5 11.225V10.414C2.8922 10.7317 3.38022 10.9886 3.90481 11.1935C5.14138 11.6766 6.68943 11.9125 8 11.9125C9.31057 11.9125 10.8586 11.6767 12.0952 11.1935Z" fill="#000"/>
|
|
5
5
|
</svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4 9C4.55228 9 5 9.44772 5 10C5 10.5523 4.55228 11 4 11C3.44772 11 3 10.5523 3 10C3 9.44772 3.44772 9 4 9Z" fill="#000"/>
|
|
3
|
+
<path d="M4 5C4.55228 5 5 5.4477 5 6C5 6.55228 4.55228 7 4 7C3.44772 7 3 6.55228 3 6C3 5.4477 3.44772 5 4 5Z" fill="#000"/>
|
|
4
|
+
<path d="M8 9C8.55228 9 9 9.44772 9 10C9 10.5523 8.55228 11 8 11C7.44772 11 7 10.5523 7 10C7 9.44772 7.44772 9 8 9Z" fill="#000"/>
|
|
5
|
+
<path d="M12 9C12.5523 9 13 9.44772 13 10C13 10.5523 12.5523 11 12 11C11.4477 11 11 10.5523 11 10C11 9.44772 11.4477 9 12 9Z" fill="#000"/>
|
|
6
|
+
<path d="M8 5C8.55228 5 9 5.4477 9 6C9 6.55228 8.55228 7 8 7C7.44772 7 7 6.55228 7 6C7 5.4477 7.44772 5 8 5Z" fill="#000"/>
|
|
7
|
+
<path d="M12 5C12.5523 5 13 5.4477 13 6C13 6.55228 12.5523 7 12 7C11.4477 7 11 6.55228 11 6C11 5.4477 11.4477 5 12 5Z" fill="#000"/>
|
|
8
|
+
</svg>
|
package/src/glyphs/index.ts
CHANGED
|
@@ -69,6 +69,7 @@ import GovernmentBuilding from './GovernmentBuilding.svg';
|
|
|
69
69
|
import Hash from './Hash.svg';
|
|
70
70
|
import Highlight from './Highlight.svg';
|
|
71
71
|
import Home from './Home.svg';
|
|
72
|
+
import HorizontalDrag from './HorizontalDrag.svg';
|
|
72
73
|
import Import from './Import.svg';
|
|
73
74
|
import ImportantWithCircle from './ImportantWithCircle.svg';
|
|
74
75
|
import InfoWithCircle from './InfoWithCircle.svg';
|
|
@@ -216,6 +217,7 @@ const _glyphs = {
|
|
|
216
217
|
Hash,
|
|
217
218
|
Highlight,
|
|
218
219
|
Home,
|
|
220
|
+
HorizontalDrag,
|
|
219
221
|
Import,
|
|
220
222
|
ImportantWithCircle,
|
|
221
223
|
InfoWithCircle,
|