@leafygreen-ui/icon 13.3.0 → 13.4.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/dist/Streaming.js +2 -0
- package/dist/Streaming.js.map +1 -0
- package/dist/esm/Streaming.js +2 -0
- package/dist/esm/Streaming.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/Streaming.d.ts +17 -0
- package/dist/generated/Streaming.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 +3 -3
- package/src/generated/Streaming.tsx +39 -0
- package/src/glyphs/Streaming.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": "13.
|
|
3
|
+
"version": "13.4.0",
|
|
4
4
|
"description": "LeafyGreen UI Kit Icons",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"commander": "^11.0.0",
|
|
27
27
|
"ts-node": "^10.9.2",
|
|
28
28
|
"xml2json": "^0.12.0",
|
|
29
|
+
"@leafygreen-ui/lib": "^14.2.0",
|
|
29
30
|
"@leafygreen-ui/palette": "^4.1.4",
|
|
30
|
-
"@lg-tools/lint": "^2.1.1"
|
|
31
|
-
"@leafygreen-ui/lib": "^14.2.0"
|
|
31
|
+
"@lg-tools/lint": "^2.1.1"
|
|
32
32
|
},
|
|
33
33
|
"gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0",
|
|
34
34
|
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/icon",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a generated file. Do not modify it manually.
|
|
3
|
+
*
|
|
4
|
+
* @script packages/icon/scripts/prebuild.ts
|
|
5
|
+
* @checksum fdb92a04a433e7421ad8fb5eec448f39
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { css, cx } from '@leafygreen-ui/emotion';
|
|
9
|
+
import { generateAccessibleProps, sizeMap } from '../glyphCommon';
|
|
10
|
+
import { LGGlyph } from '../types';
|
|
11
|
+
export interface StreamingProps extends LGGlyph.ComponentProps {}
|
|
12
|
+
const Streaming = ({
|
|
13
|
+
className,
|
|
14
|
+
size = 16,
|
|
15
|
+
title,
|
|
16
|
+
['aria-label']: ariaLabel,
|
|
17
|
+
['aria-labelledby']: ariaLabelledby,
|
|
18
|
+
fill,
|
|
19
|
+
role = 'img',
|
|
20
|
+
...props
|
|
21
|
+
}: StreamingProps) => {
|
|
22
|
+
const fillStyle = css`
|
|
23
|
+
color: ${fill};
|
|
24
|
+
`;
|
|
25
|
+
const noFlexShrink = css`
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
`;
|
|
28
|
+
const accessibleProps = generateAccessibleProps(role, 'Streaming', {
|
|
29
|
+
title,
|
|
30
|
+
['aria-label']: ariaLabel,
|
|
31
|
+
['aria-labelledby']: ariaLabelledby
|
|
32
|
+
});
|
|
33
|
+
return <svg className={cx({
|
|
34
|
+
[fillStyle]: fill != null
|
|
35
|
+
}, 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="M2.5 10.4141C2.8922 10.7317 3.38069 10.9884 3.90527 11.1934C4.42946 11.3981 5.01023 11.5551 5.60449 11.6719L6.6709 13.0303L6.74902 13.1211C7.10522 13.5042 7.61387 13.6279 8.06934 13.5117C8.17594 13.8813 8.40111 14.188 8.69043 14.4111C8.46086 14.4244 8.23023 14.4336 8 14.4336C5.28789 14.4336 2.5 13.5162 2.5 11.5811C2.5 11.4924 2.50071 11.4047 2.50195 11.3184C2.50071 11.2874 2.5 11.2559 2.5 11.2246V10.4141Z" fill={'currentColor'} /><path d="M2.5 6.74707C2.8922 7.0647 3.38069 7.3224 3.90527 7.52734C4.65821 7.82143 5.5268 8.02238 6.38672 8.13574L5.30371 9.5166L5.23242 9.61621C5.04168 9.90844 4.96849 10.2571 5.0127 10.5928C4.743 10.5179 4.48251 10.4353 4.23828 10.3398C3.68283 10.1228 3.23472 9.86299 2.93262 9.5752C2.636 9.29254 2.5 9.00426 2.5 8.7041V6.74707Z" fill={'currentColor'} /><path d="M13.5 8.7041C13.5 9.00426 13.364 9.29254 13.0674 9.5752C13.011 9.6289 12.9481 9.67979 12.8818 9.73145C12.6172 9.02397 11.9307 8.52864 11.1406 8.52832H9.10352C9.09331 8.41419 9.06716 8.30489 9.03223 8.2002C10.0743 8.11047 11.1714 7.888 12.0947 7.52734C12.6193 7.3224 13.1078 7.0647 13.5 6.74707V8.7041Z" fill={'currentColor'} /><path d="M8 1.59961C10.7121 1.59961 13.5 2.51696 13.5 4.45215C13.5 4.54147 13.4993 4.6287 13.498 4.71387C13.4993 4.74514 13.5 4.77701 13.5 4.80859V5.03711C13.5 5.33734 13.3642 5.62645 13.0674 5.90918C12.7653 6.19692 12.3171 6.45587 11.7617 6.67285C10.7051 7.08564 9.35706 7.30393 8.17676 7.32422C7.91253 7.23284 7.62448 7.22642 7.35449 7.30664C6.29674 7.24352 5.15722 7.03186 4.23828 6.67285C3.68294 6.45587 3.2347 6.19692 2.93262 5.90918C2.63584 5.62645 2.5 5.33734 2.5 5.03711V4.80859C2.5 4.77334 2.50038 4.73799 2.50195 4.70312C2.50037 4.6216 2.5 4.53771 2.5 4.45215C2.5 2.51696 5.28789 1.59961 8 1.59961Z" fill={'currentColor'} /><path d="M9.85893 12.2378H12.8902V11.3819C12.8902 11.029 13.3175 10.8656 13.5427 11.1324L14.9093 12.7505C15.0302 12.8937 15.0302 13.1063 14.9093 13.2495L13.5427 14.8676C13.3175 15.1344 12.8902 14.971 12.8902 14.6181V13.8125H9.85893C9.38455 13.8125 9 13.46 9 13.0252C9 12.5903 9.38455 12.2378 9.85893 12.2378Z" fill={'currentColor'} /><path d="M11.1411 11.2229H8.10982V12.1442C8.10982 12.524 7.68252 12.6998 7.45726 12.4127L6.09071 10.6711C5.96976 10.517 5.96976 10.2882 6.09071 10.1341L7.45726 8.39247C7.68252 8.10539 8.10982 8.28122 8.10982 8.661V9.5281H11.1411C11.6154 9.5281 12 9.90751 12 10.3755C12 10.8435 11.6154 11.2229 11.1411 11.2229Z" fill={'currentColor'} /></svg>;
|
|
36
|
+
};
|
|
37
|
+
Streaming.displayName = 'Streaming';
|
|
38
|
+
Streaming.isGlyph = true;
|
|
39
|
+
export default Streaming;
|
|
@@ -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="M2.5 10.4141C2.8922 10.7317 3.38069 10.9884 3.90527 11.1934C4.42946 11.3981 5.01023 11.5551 5.60449 11.6719L6.6709 13.0303L6.74902 13.1211C7.10522 13.5042 7.61387 13.6279 8.06934 13.5117C8.17594 13.8813 8.40111 14.188 8.69043 14.4111C8.46086 14.4244 8.23023 14.4336 8 14.4336C5.28789 14.4336 2.5 13.5162 2.5 11.5811C2.5 11.4924 2.50071 11.4047 2.50195 11.3184C2.50071 11.2874 2.5 11.2559 2.5 11.2246V10.4141Z" fill="#000"/>
|
|
3
|
+
<path d="M2.5 6.74707C2.8922 7.0647 3.38069 7.3224 3.90527 7.52734C4.65821 7.82143 5.5268 8.02238 6.38672 8.13574L5.30371 9.5166L5.23242 9.61621C5.04168 9.90844 4.96849 10.2571 5.0127 10.5928C4.743 10.5179 4.48251 10.4353 4.23828 10.3398C3.68283 10.1228 3.23472 9.86299 2.93262 9.5752C2.636 9.29254 2.5 9.00426 2.5 8.7041V6.74707Z" fill="#000"/>
|
|
4
|
+
<path d="M13.5 8.7041C13.5 9.00426 13.364 9.29254 13.0674 9.5752C13.011 9.6289 12.9481 9.67979 12.8818 9.73145C12.6172 9.02397 11.9307 8.52864 11.1406 8.52832H9.10352C9.09331 8.41419 9.06716 8.30489 9.03223 8.2002C10.0743 8.11047 11.1714 7.888 12.0947 7.52734C12.6193 7.3224 13.1078 7.0647 13.5 6.74707V8.7041Z" fill="#000"/>
|
|
5
|
+
<path d="M8 1.59961C10.7121 1.59961 13.5 2.51696 13.5 4.45215C13.5 4.54147 13.4993 4.6287 13.498 4.71387C13.4993 4.74514 13.5 4.77701 13.5 4.80859V5.03711C13.5 5.33734 13.3642 5.62645 13.0674 5.90918C12.7653 6.19692 12.3171 6.45587 11.7617 6.67285C10.7051 7.08564 9.35706 7.30393 8.17676 7.32422C7.91253 7.23284 7.62448 7.22642 7.35449 7.30664C6.29674 7.24352 5.15722 7.03186 4.23828 6.67285C3.68294 6.45587 3.2347 6.19692 2.93262 5.90918C2.63584 5.62645 2.5 5.33734 2.5 5.03711V4.80859C2.5 4.77334 2.50038 4.73799 2.50195 4.70312C2.50037 4.6216 2.5 4.53771 2.5 4.45215C2.5 2.51696 5.28789 1.59961 8 1.59961Z" fill="#000"/>
|
|
6
|
+
<path d="M9.85893 12.2378H12.8902V11.3819C12.8902 11.029 13.3175 10.8656 13.5427 11.1324L14.9093 12.7505C15.0302 12.8937 15.0302 13.1063 14.9093 13.2495L13.5427 14.8676C13.3175 15.1344 12.8902 14.971 12.8902 14.6181V13.8125H9.85893C9.38455 13.8125 9 13.46 9 13.0252C9 12.5903 9.38455 12.2378 9.85893 12.2378Z" fill="#000"/>
|
|
7
|
+
<path d="M11.1411 11.2229H8.10982V12.1442C8.10982 12.524 7.68252 12.6998 7.45726 12.4127L6.09071 10.6711C5.96976 10.517 5.96976 10.2882 6.09071 10.1341L7.45726 8.39247C7.68252 8.10539 8.10982 8.28122 8.10982 8.661V9.5281H11.1411C11.6154 9.5281 12 9.90751 12 10.3755C12 10.8435 11.6154 11.2229 11.1411 11.2229Z" fill="#000"/>
|
|
8
|
+
</svg>
|
package/src/glyphs/index.ts
CHANGED
|
@@ -151,6 +151,7 @@ import SplitHorizontal from './SplitHorizontal.svg';
|
|
|
151
151
|
import SplitVertical from './SplitVertical.svg';
|
|
152
152
|
import Stitch from './Stitch.svg';
|
|
153
153
|
import Stop from './Stop.svg';
|
|
154
|
+
import Streaming from './Streaming.svg';
|
|
154
155
|
import String from './String.svg';
|
|
155
156
|
import Sun from './Sun.svg';
|
|
156
157
|
import Support from './Support.svg';
|
|
@@ -330,6 +331,7 @@ const _glyphs = {
|
|
|
330
331
|
SplitVertical,
|
|
331
332
|
Stitch,
|
|
332
333
|
Stop,
|
|
334
|
+
Streaming,
|
|
333
335
|
String,
|
|
334
336
|
Sun,
|
|
335
337
|
Support,
|