@leafygreen-ui/icon 12.3.0 → 12.5.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/Pause.js +1 -1
- package/dist/Pause.js.map +1 -1
- package/dist/Stop.js +2 -0
- package/dist/Stop.js.map +1 -0
- package/dist/esm/Pause.js +1 -1
- package/dist/esm/Pause.js.map +1 -1
- package/dist/esm/Stop.js +2 -0
- package/dist/esm/Stop.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/Pause.d.ts +1 -1
- package/dist/generated/Stop.d.ts +23 -0
- package/dist/generated/Stop.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.d.ts +1 -1
- package/dist/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/Pause.tsx +2 -2
- package/src/generated/Stop.tsx +45 -0
- package/src/glyphs/Pause.svg +2 -2
- package/src/glyphs/Stop.svg +3 -0
- package/src/glyphs/index.ts +2 -0
- package/src/index.ts +1 -1
- package/stories.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafygreen-ui/icon",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.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.10",
|
|
27
|
-
"@leafygreen-ui/lib": "^13.
|
|
27
|
+
"@leafygreen-ui/lib": "^13.5.0",
|
|
28
28
|
"@svgr/core": "^5.3.1",
|
|
29
29
|
"@types/meow": "^6.0.0",
|
|
30
30
|
"@types/xml2json": "^0.11.0",
|
package/src/generated/Pause.tsx
CHANGED
|
@@ -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 6539d57af969d965e0b7d9c2ccc4a8e5
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -33,7 +33,7 @@ const Pause = ({
|
|
|
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="M3.5 3.83333C3.5 3.3731 3.94771 3 4.5 3H5.5C6.05228 3 6.5 3.3731 6.5 3.83333V12.1667C6.5 12.6269 6.05228 13 5.5 13H4.5C3.94771 13 3.5 12.6269 3.5 12.1667V3.83333Z" fill={'currentColor'} /><path d="M9.5 3.83333C9.5 3.3731 9.94772 3 10.5 3H11.5C12.0523 3 12.5 3.3731 12.5 3.83333V12.1667C12.5 12.6269 12.0523 13 11.5 13H10.5C9.94771 13 9.5 12.6269 9.5 12.1667V3.83333Z" fill={'currentColor'} /></svg>;
|
|
37
37
|
};
|
|
38
38
|
Pause.displayName = 'Pause';
|
|
39
39
|
Pause.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 8fa0bd749a3579e6df014458bb30c547
|
|
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 StopProps extends LGGlyph.ComponentProps {}
|
|
13
|
+
const Stop = ({
|
|
14
|
+
className,
|
|
15
|
+
size = 16,
|
|
16
|
+
title,
|
|
17
|
+
['aria-label']: ariaLabel,
|
|
18
|
+
['aria-labelledby']: ariaLabelledby,
|
|
19
|
+
fill,
|
|
20
|
+
role = 'img',
|
|
21
|
+
...props
|
|
22
|
+
}: StopProps) => {
|
|
23
|
+
const fillStyle = css`
|
|
24
|
+
color: ${fill};
|
|
25
|
+
`;
|
|
26
|
+
const noFlexShrink = css`
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
`;
|
|
29
|
+
const accessibleProps = generateAccessibleProps(role, 'Stop', {
|
|
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"><rect x={3} y={3} width={10} height={10} rx={1} fill={'currentColor'} /></svg>;
|
|
37
|
+
};
|
|
38
|
+
Stop.displayName = 'Stop';
|
|
39
|
+
Stop.isGlyph = true;
|
|
40
|
+
Stop.propTypes = {
|
|
41
|
+
fill: PropTypes.string,
|
|
42
|
+
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
43
|
+
className: PropTypes.string
|
|
44
|
+
};
|
|
45
|
+
export default Stop;
|
package/src/glyphs/Pause.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="
|
|
3
|
-
<path d="
|
|
2
|
+
<path d="M3.5 3.83333C3.5 3.3731 3.94771 3 4.5 3H5.5C6.05228 3 6.5 3.3731 6.5 3.83333V12.1667C6.5 12.6269 6.05228 13 5.5 13H4.5C3.94771 13 3.5 12.6269 3.5 12.1667V3.83333Z" fill="#000"/>
|
|
3
|
+
<path d="M9.5 3.83333C9.5 3.3731 9.94772 3 10.5 3H11.5C12.0523 3 12.5 3.3731 12.5 3.83333V12.1667C12.5 12.6269 12.0523 13 11.5 13H10.5C9.94771 13 9.5 12.6269 9.5 12.1667V3.83333Z" fill="#000"/>
|
|
4
4
|
</svg>
|
package/src/glyphs/index.ts
CHANGED
|
@@ -133,6 +133,7 @@ import Sparkle from './Sparkle.svg';
|
|
|
133
133
|
import SplitHorizontal from './SplitHorizontal.svg';
|
|
134
134
|
import SplitVertical from './SplitVertical.svg';
|
|
135
135
|
import Stitch from './Stitch.svg';
|
|
136
|
+
import Stop from './Stop.svg';
|
|
136
137
|
import String from './String.svg';
|
|
137
138
|
import Sun from './Sun.svg';
|
|
138
139
|
import Support from './Support.svg';
|
|
@@ -292,6 +293,7 @@ const _glyphs = {
|
|
|
292
293
|
SplitHorizontal,
|
|
293
294
|
SplitVertical,
|
|
294
295
|
Stitch,
|
|
296
|
+
Stop,
|
|
295
297
|
String,
|
|
296
298
|
Sun,
|
|
297
299
|
Support,
|
package/src/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { createGlyphComponent } from './createGlyphComponent';
|
|
|
2
2
|
export type { IconProps } from './createIconComponent';
|
|
3
3
|
export { createIconComponent } from './createIconComponent';
|
|
4
4
|
export { Size } from './glyphCommon';
|
|
5
|
-
export { glyphs } from './glyphs';
|
|
5
|
+
export { type GlyphName, glyphs } from './glyphs';
|
|
6
6
|
export { Icon as default } from './Icon';
|
|
7
7
|
export { isComponentGlyph } from './isComponentGlyph';
|
|
8
8
|
export { LGGlyph } from './types';
|