@leafygreen-ui/icon 11.27.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafygreen-ui/icon",
3
- "version": "11.27.1",
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",
@@ -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;
@@ -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>
@@ -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,