@leafygreen-ui/icon 11.25.1 → 11.26.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 +11 -0
- package/README.md +7 -7
- package/dist/Calendar.js +1 -1
- package/dist/Calendar.js.map +1 -1
- package/dist/Camera.js +2 -0
- package/dist/Camera.js.map +1 -0
- package/dist/Cap.js +2 -0
- package/dist/Cap.js.map +1 -0
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/Calendar.js.map +1 -1
- package/dist/esm/Camera.js +2 -0
- package/dist/esm/Camera.js.map +1 -0
- package/dist/esm/Cap.js +2 -0
- package/dist/esm/Cap.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/generated/Calendar.d.ts +1 -1
- package/dist/generated/Camera.d.ts +23 -0
- package/dist/generated/Camera.d.ts.map +1 -0
- package/dist/generated/Cap.d.ts +23 -0
- package/dist/generated/Cap.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 +1 -1
- package/src/generated/Calendar.tsx +2 -2
- package/src/generated/Camera.tsx +45 -0
- package/src/generated/Cap.tsx +45 -0
- package/src/glyphs/Calendar.svg +4 -2
- package/src/glyphs/Camera.svg +4 -0
- package/src/glyphs/Cap.svg +5 -0
- package/src/glyphs/index.ts +4 -0
- package/stories.js +1 -1
package/package.json
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 9d2337c4c60492aa85c4c4caede7fc3e
|
|
6
6
|
*/
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -33,7 +33,7 @@ const Calendar = ({
|
|
|
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
|
|
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 2C4 1.44772 4.44772 1 5 1C5.55228 1 6 1.44772 6 2V3C6 3.55228 5.55228 4 5 4C4.44772 4 4 3.55228 4 3V2Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M9 3H7C7 4.10457 6.10457 5 5 5C3.89543 5 3 4.10457 3 3C1.89543 3 1 3.89543 1 5V12C1 13.1046 1.89543 14 3 14H13C14.1046 14 15 13.1046 15 12V5C15 3.89543 14.1046 3 13 3C13 4.10457 12.1046 5 11 5C9.89543 5 9 4.10457 9 3ZM12 7H9V10H12V7Z" fill={'currentColor'} /><path d="M10 3C10 3.55228 10.4477 4 11 4C11.5523 4 12 3.55228 12 3V2C12 1.44772 11.5523 1 11 1C10.4477 1 10 1.44772 10 2V3Z" fill={'currentColor'} /></svg>;
|
|
37
37
|
};
|
|
38
38
|
Calendar.displayName = 'Calendar';
|
|
39
39
|
Calendar.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 d204b80c1087162281077a3039b0f498
|
|
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 CameraProps extends LGGlyph.ComponentProps {}
|
|
13
|
+
const Camera = ({
|
|
14
|
+
className,
|
|
15
|
+
size = 16,
|
|
16
|
+
title,
|
|
17
|
+
['aria-label']: ariaLabel,
|
|
18
|
+
['aria-labelledby']: ariaLabelledby,
|
|
19
|
+
fill,
|
|
20
|
+
role = 'img',
|
|
21
|
+
...props
|
|
22
|
+
}: CameraProps) => {
|
|
23
|
+
const fillStyle = css`
|
|
24
|
+
color: ${fill};
|
|
25
|
+
`;
|
|
26
|
+
const noFlexShrink = css`
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
`;
|
|
29
|
+
const accessibleProps = generateAccessibleProps(role, 'Camera', {
|
|
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.25 8.5C10.25 9.74264 9.24264 10.75 8 10.75C6.75736 10.75 5.75 9.74264 5.75 8.5C5.75 7.25736 6.75736 6.25 8 6.25C9.24264 6.25 10.25 7.25736 10.25 8.5Z" fill={'currentColor'} /><path fillRule="evenodd" clipRule="evenodd" d="M4.58541 3.32918C4.8395 2.821 5.35889 2.5 5.92705 2.5H10.0729C10.6411 2.5 11.1605 2.821 11.4146 3.32918L11.7236 3.94721C11.893 4.286 12.2393 4.5 12.618 4.5H13.5C14.3284 4.5 15 5.17157 15 6V12C15 12.8284 14.3284 13.5 13.5 13.5H2.5C1.67157 13.5 1 12.8284 1 12V6C1 5.17157 1.67157 4.5 2.5 4.5H3.38197C3.76074 4.5 4.107 4.286 4.27639 3.94721L4.58541 3.32918ZM11.5 8.5C11.5 10.433 9.933 12 8 12C6.067 12 4.5 10.433 4.5 8.5C4.5 6.567 6.067 5 8 5C9.933 5 11.5 6.567 11.5 8.5Z" fill={'currentColor'} /></svg>;
|
|
37
|
+
};
|
|
38
|
+
Camera.displayName = 'Camera';
|
|
39
|
+
Camera.isGlyph = true;
|
|
40
|
+
Camera.propTypes = {
|
|
41
|
+
fill: PropTypes.string,
|
|
42
|
+
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
43
|
+
className: PropTypes.string
|
|
44
|
+
};
|
|
45
|
+
export default Camera;
|
|
@@ -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 2e7ecb7e84d0149540b3bfdfb0b8931f
|
|
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 CapProps extends LGGlyph.ComponentProps {}
|
|
13
|
+
const Cap = ({
|
|
14
|
+
className,
|
|
15
|
+
size = 16,
|
|
16
|
+
title,
|
|
17
|
+
['aria-label']: ariaLabel,
|
|
18
|
+
['aria-labelledby']: ariaLabelledby,
|
|
19
|
+
fill,
|
|
20
|
+
role = 'img',
|
|
21
|
+
...props
|
|
22
|
+
}: CapProps) => {
|
|
23
|
+
const fillStyle = css`
|
|
24
|
+
color: ${fill};
|
|
25
|
+
`;
|
|
26
|
+
const noFlexShrink = css`
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
`;
|
|
29
|
+
const accessibleProps = generateAccessibleProps(role, 'Cap', {
|
|
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="M2.96929 8.00791V10.3071C2.96929 10.3383 2.96986 10.3693 2.97099 10.4002C2.96986 10.4862 2.96929 10.5734 2.96929 10.6618C2.96929 12.5877 5.50373 13.5 7.96929 13.5C10.4348 13.5 12.9693 12.5877 12.9693 10.6618C12.9693 10.5773 12.9686 10.4938 12.9672 10.4113C12.9686 10.3767 12.9693 10.342 12.9693 10.3071V8.00118L8.70622 9.78705C8.20883 9.99541 7.64838 9.99409 7.15198 9.78338L2.96929 8.00791Z" fill={'currentColor'} /><path d="M7.56463 2.58331C7.81791 2.4729 8.10559 2.47221 8.3594 2.5814L14.7092 5.31304C15.1145 5.4874 15.1118 6.06303 14.7048 6.23351L8.35054 8.89542C8.10185 8.9996 7.82162 8.99894 7.57343 8.89358L1.30463 6.23261C0.90058 6.0611 0.897823 5.48941 1.3002 5.31401L7.56463 2.58331Z" fill={'currentColor'} /><path d="M13.9693 7.62582V9.10335C13.6704 9.27626 13.4693 9.59943 13.4693 9.96957C13.4693 10.5219 13.917 10.9696 14.4693 10.9696C15.0216 10.9696 15.4693 10.5219 15.4693 9.96957C15.4693 9.59943 15.2682 9.27626 14.9693 9.10336V7.20691L13.9693 7.62582Z" fill={'currentColor'} /></svg>;
|
|
37
|
+
};
|
|
38
|
+
Cap.displayName = 'Cap';
|
|
39
|
+
Cap.isGlyph = true;
|
|
40
|
+
Cap.propTypes = {
|
|
41
|
+
fill: PropTypes.string,
|
|
42
|
+
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
43
|
+
className: PropTypes.string
|
|
44
|
+
};
|
|
45
|
+
export default Cap;
|
package/src/glyphs/Calendar.svg
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<path
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M4 2C4 1.44772 4.44772 1 5 1C5.55228 1 6 1.44772 6 2V3C6 3.55228 5.55228 4 5 4C4.44772 4 4 3.55228 4 3V2Z" fill="#000"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9 3H7C7 4.10457 6.10457 5 5 5C3.89543 5 3 4.10457 3 3C1.89543 3 1 3.89543 1 5V12C1 13.1046 1.89543 14 3 14H13C14.1046 14 15 13.1046 15 12V5C15 3.89543 14.1046 3 13 3C13 4.10457 12.1046 5 11 5C9.89543 5 9 4.10457 9 3ZM12 7H9V10H12V7Z" fill="#000"/>
|
|
4
|
+
<path d="M10 3C10 3.55228 10.4477 4 11 4C11.5523 4 12 3.55228 12 3V2C12 1.44772 11.5523 1 11 1C10.4477 1 10 1.44772 10 2V3Z" fill="#000"/>
|
|
3
5
|
</svg>
|
|
@@ -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.25 8.5C10.25 9.74264 9.24264 10.75 8 10.75C6.75736 10.75 5.75 9.74264 5.75 8.5C5.75 7.25736 6.75736 6.25 8 6.25C9.24264 6.25 10.25 7.25736 10.25 8.5Z" fill="#000"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.58541 3.32918C4.8395 2.821 5.35889 2.5 5.92705 2.5H10.0729C10.6411 2.5 11.1605 2.821 11.4146 3.32918L11.7236 3.94721C11.893 4.286 12.2393 4.5 12.618 4.5H13.5C14.3284 4.5 15 5.17157 15 6V12C15 12.8284 14.3284 13.5 13.5 13.5H2.5C1.67157 13.5 1 12.8284 1 12V6C1 5.17157 1.67157 4.5 2.5 4.5H3.38197C3.76074 4.5 4.107 4.286 4.27639 3.94721L4.58541 3.32918ZM11.5 8.5C11.5 10.433 9.933 12 8 12C6.067 12 4.5 10.433 4.5 8.5C4.5 6.567 6.067 5 8 5C9.933 5 11.5 6.567 11.5 8.5Z" fill="#000"/>
|
|
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="M2.96929 8.00791V10.3071C2.96929 10.3383 2.96986 10.3693 2.97099 10.4002C2.96986 10.4862 2.96929 10.5734 2.96929 10.6618C2.96929 12.5877 5.50373 13.5 7.96929 13.5C10.4348 13.5 12.9693 12.5877 12.9693 10.6618C12.9693 10.5773 12.9686 10.4938 12.9672 10.4113C12.9686 10.3767 12.9693 10.342 12.9693 10.3071V8.00118L8.70622 9.78705C8.20883 9.99541 7.64838 9.99409 7.15198 9.78338L2.96929 8.00791Z" fill="#000"/>
|
|
3
|
+
<path d="M7.56463 2.58331C7.81791 2.4729 8.10559 2.47221 8.3594 2.5814L14.7092 5.31304C15.1145 5.4874 15.1118 6.06303 14.7048 6.23351L8.35054 8.89542C8.10185 8.9996 7.82162 8.99894 7.57343 8.89358L1.30463 6.23261C0.90058 6.0611 0.897823 5.48941 1.3002 5.31401L7.56463 2.58331Z" fill="#000"/>
|
|
4
|
+
<path d="M13.9693 7.62582V9.10335C13.6704 9.27626 13.4693 9.59943 13.4693 9.96957C13.4693 10.5219 13.917 10.9696 14.4693 10.9696C15.0216 10.9696 15.4693 10.5219 15.4693 9.96957C15.4693 9.59943 15.2682 9.27626 14.9693 9.10336V7.20691L13.9693 7.62582Z" fill="#000"/>
|
|
5
|
+
</svg>
|
package/src/glyphs/index.ts
CHANGED
|
@@ -18,6 +18,8 @@ import Boolean from './Boolean.svg';
|
|
|
18
18
|
import Building from './Building.svg';
|
|
19
19
|
import Bulb from './Bulb.svg';
|
|
20
20
|
import Calendar from './Calendar.svg';
|
|
21
|
+
import Camera from './Camera.svg';
|
|
22
|
+
import Cap from './Cap.svg';
|
|
21
23
|
import CaretDown from './CaretDown.svg';
|
|
22
24
|
import CaretLeft from './CaretLeft.svg';
|
|
23
25
|
import CaretRight from './CaretRight.svg';
|
|
@@ -162,6 +164,8 @@ const _glyphs = {
|
|
|
162
164
|
Building,
|
|
163
165
|
Bulb,
|
|
164
166
|
Calendar,
|
|
167
|
+
Camera,
|
|
168
|
+
Cap,
|
|
165
169
|
CaretDown,
|
|
166
170
|
CaretLeft,
|
|
167
171
|
CaretRight,
|