@digigov/react-icons 1.0.0-rc
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/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
- package/AccessibilityIcon/config.d.ts +8 -0
- package/AccessibilityIcon/config.js +31 -0
- package/AccessibilityIcon/index.d.ts +4 -0
- package/AccessibilityIcon/index.js +24 -0
- package/AccessibilityIcon/index.test.d.ts +1 -0
- package/AccessibilityIcon/index.test.js +137 -0
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/ArrowIcon/config.d.ts +6 -0
- package/ArrowIcon/config.js +39 -0
- package/ArrowIcon/index.d.ts +4 -0
- package/ArrowIcon/index.js +24 -0
- package/ArrowIcon/index.test.d.ts +1 -0
- package/ArrowIcon/index.test.js +39 -0
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/BurgerIcon/config.d.ts +6 -0
- package/BurgerIcon/config.js +45 -0
- package/BurgerIcon/index.d.ts +4 -0
- package/BurgerIcon/index.js +24 -0
- package/BurgerIcon/index.test.d.ts +1 -0
- package/BurgerIcon/index.test.js +56 -0
- package/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/CaretIcon/config.d.ts +6 -0
- package/CaretIcon/config.js +39 -0
- package/CaretIcon/index.d.ts +4 -0
- package/CaretIcon/index.js +24 -0
- package/CaretIcon/index.test.d.ts +1 -0
- package/CaretIcon/index.test.js +39 -0
- package/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/CheckIcon/config.d.ts +8 -0
- package/CheckIcon/config.js +23 -0
- package/CheckIcon/index.d.ts +4 -0
- package/CheckIcon/index.js +24 -0
- package/CheckIcon/index.test.d.ts +1 -0
- package/CheckIcon/index.test.js +129 -0
- package/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/CloseIcon/config.d.ts +8 -0
- package/CloseIcon/config.js +23 -0
- package/CloseIcon/index.d.ts +4 -0
- package/CloseIcon/index.js +24 -0
- package/CloseIcon/index.test.d.ts +1 -0
- package/CloseIcon/index.test.js +15 -0
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/GlobeIcon/config.d.ts +8 -0
- package/GlobeIcon/config.js +23 -0
- package/GlobeIcon/index.d.ts +4 -0
- package/GlobeIcon/index.js +24 -0
- package/GlobeIcon/index.test.d.ts +1 -0
- package/GlobeIcon/index.test.js +39 -0
- package/LICENSE +0 -0
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/MoreVertIcon/config.d.ts +8 -0
- package/MoreVertIcon/config.js +37 -0
- package/MoreVertIcon/index.d.ts +4 -0
- package/MoreVertIcon/index.js +24 -0
- package/MoreVertIcon/index.test.d.ts +1 -0
- package/MoreVertIcon/index.test.js +129 -0
- package/README.md +0 -0
- package/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/SearchIcon/config.d.ts +8 -0
- package/SearchIcon/config.js +23 -0
- package/SearchIcon/index.d.ts +4 -0
- package/SearchIcon/index.js +24 -0
- package/SearchIcon/index.test.d.ts +1 -0
- package/SearchIcon/index.test.js +15 -0
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/UncheckIcon/config.d.ts +8 -0
- package/UncheckIcon/config.js +23 -0
- package/UncheckIcon/index.d.ts +4 -0
- package/UncheckIcon/index.js +24 -0
- package/UncheckIcon/index.test.d.ts +1 -0
- package/UncheckIcon/index.test.js +129 -0
- package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
- package/es/AccessibilityIcon/config.js +19 -0
- package/es/AccessibilityIcon/index.js +9 -0
- package/es/AccessibilityIcon/index.test.js +131 -0
- package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/es/ArrowIcon/config.js +27 -0
- package/es/ArrowIcon/index.js +9 -0
- package/es/ArrowIcon/index.test.js +33 -0
- package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/es/BurgerIcon/config.js +32 -0
- package/es/BurgerIcon/index.js +9 -0
- package/es/BurgerIcon/index.test.js +50 -0
- package/es/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/es/CaretIcon/config.js +27 -0
- package/es/CaretIcon/index.js +9 -0
- package/es/CaretIcon/index.test.js +33 -0
- package/es/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/es/CheckIcon/config.js +11 -0
- package/es/CheckIcon/index.js +9 -0
- package/es/CheckIcon/index.test.js +123 -0
- package/es/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/es/CloseIcon/config.js +11 -0
- package/es/CloseIcon/index.js +9 -0
- package/es/CloseIcon/index.test.js +9 -0
- package/es/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/es/GlobeIcon/config.js +11 -0
- package/es/GlobeIcon/index.js +9 -0
- package/es/GlobeIcon/index.test.js +33 -0
- package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/es/MoreVertIcon/config.js +25 -0
- package/es/MoreVertIcon/index.js +9 -0
- package/es/MoreVertIcon/index.test.js +123 -0
- package/es/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/es/SearchIcon/config.js +11 -0
- package/es/SearchIcon/index.js +9 -0
- package/es/SearchIcon/index.test.js +9 -0
- package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/es/UncheckIcon/config.js +11 -0
- package/es/UncheckIcon/index.js +9 -0
- package/es/UncheckIcon/index.test.js +123 -0
- package/es/icons.js +11 -0
- package/es/index.js +10 -0
- package/es/registry.js +42 -0
- package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
- package/esm/AccessibilityIcon/config.js +19 -0
- package/esm/AccessibilityIcon/index.js +9 -0
- package/esm/AccessibilityIcon/index.test.js +131 -0
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/esm/ArrowIcon/config.js +27 -0
- package/esm/ArrowIcon/index.js +9 -0
- package/esm/ArrowIcon/index.test.js +33 -0
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/esm/BurgerIcon/config.js +32 -0
- package/esm/BurgerIcon/index.js +9 -0
- package/esm/BurgerIcon/index.test.js +50 -0
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/esm/CaretIcon/config.js +27 -0
- package/esm/CaretIcon/index.js +9 -0
- package/esm/CaretIcon/index.test.js +33 -0
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/esm/CheckIcon/config.js +11 -0
- package/esm/CheckIcon/index.js +9 -0
- package/esm/CheckIcon/index.test.js +123 -0
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/esm/CloseIcon/config.js +11 -0
- package/esm/CloseIcon/index.js +9 -0
- package/esm/CloseIcon/index.test.js +9 -0
- package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/esm/GlobeIcon/config.js +11 -0
- package/esm/GlobeIcon/index.js +9 -0
- package/esm/GlobeIcon/index.test.js +33 -0
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/esm/MoreVertIcon/config.js +25 -0
- package/esm/MoreVertIcon/index.js +9 -0
- package/esm/MoreVertIcon/index.test.js +123 -0
- package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/esm/SearchIcon/config.js +11 -0
- package/esm/SearchIcon/index.js +9 -0
- package/esm/SearchIcon/index.test.js +9 -0
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/esm/UncheckIcon/config.js +11 -0
- package/esm/UncheckIcon/index.js +9 -0
- package/esm/UncheckIcon/index.test.js +123 -0
- package/esm/icons.js +11 -0
- package/esm/index.js +10 -0
- package/esm/registry.js +42 -0
- package/icons.d.ts +32 -0
- package/icons.js +135 -0
- package/index.d.ts +10 -0
- package/index.js +135 -0
- package/package.json +25 -0
- package/registry.d.ts +15 -0
- package/registry.js +67 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
- package/src/AccessibilityIcon/config.tsx +22 -0
- package/src/AccessibilityIcon/index.test.tsx +57 -0
- package/src/AccessibilityIcon/index.tsx +10 -0
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/src/ArrowIcon/config.tsx +29 -0
- package/src/ArrowIcon/index.test.tsx +20 -0
- package/src/ArrowIcon/index.tsx +8 -0
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
- package/src/BurgerIcon/config.tsx +25 -0
- package/src/BurgerIcon/index.test.tsx +26 -0
- package/src/BurgerIcon/index.tsx +8 -0
- package/src/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
- package/src/CaretIcon/config.tsx +21 -0
- package/src/CaretIcon/index.test.tsx +20 -0
- package/src/CaretIcon/index.tsx +8 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/src/CheckIcon/config.tsx +15 -0
- package/src/CheckIcon/index.test.tsx +50 -0
- package/src/CheckIcon/index.tsx +8 -0
- package/src/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/src/CloseIcon/config.tsx +15 -0
- package/src/CloseIcon/index.test.tsx +8 -0
- package/src/CloseIcon/index.tsx +8 -0
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
- package/src/GlobeIcon/config.tsx +26 -0
- package/src/GlobeIcon/index.test.tsx +19 -0
- package/src/GlobeIcon/index.tsx +8 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
- package/src/MoreVertIcon/config.tsx +17 -0
- package/src/MoreVertIcon/index.test.tsx +50 -0
- package/src/MoreVertIcon/index.tsx +8 -0
- package/src/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
- package/src/SearchIcon/config.tsx +15 -0
- package/src/SearchIcon/index.test.tsx +8 -0
- package/src/SearchIcon/index.tsx +8 -0
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
- package/src/UncheckIcon/config.tsx +15 -0
- package/src/UncheckIcon/index.test.tsx +50 -0
- package/src/UncheckIcon/index.tsx +8 -0
- package/src/icons.ts +34 -0
- package/src/index.ts +10 -0
- package/src/registry.js +47 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MoreVertType {}
|
|
4
|
+
|
|
5
|
+
export function moreVert(): React.ReactElement {
|
|
6
|
+
return (
|
|
7
|
+
<>
|
|
8
|
+
<circle cx="12" cy="5" r="2" />
|
|
9
|
+
<circle cx="12" cy="12" r="2" />
|
|
10
|
+
<circle cx="12" cy="19" r="2" />
|
|
11
|
+
</>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
moreVert.props = [];
|
|
16
|
+
|
|
17
|
+
export default moreVert;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import MoreVertIcon from '@digigov/react-icons/MoreVertIcon';
|
|
5
|
+
|
|
6
|
+
it('renders the MoreVertIcon with no props', () => {
|
|
7
|
+
expect(mount(<MoreVertIcon />)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
it('renders the MoreVertIcon with prop size=s', () => {
|
|
10
|
+
expect(mount(<MoreVertIcon size="sm" />)).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it('renders the MoreVertIcon with prop size=m', () => {
|
|
13
|
+
expect(mount(<MoreVertIcon size="md" />)).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
it('renders the MoreVertIcon with prop size=l', () => {
|
|
16
|
+
expect(mount(<MoreVertIcon size="lg" />)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
it('renders the MoreVertIcon with prop size=xl', () => {
|
|
19
|
+
expect(mount(<MoreVertIcon size="xl" />)).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
it('renders the MoreVertIcon with prop variant=dark', () => {
|
|
22
|
+
expect(mount(<MoreVertIcon variant="dark" />)).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
it('renders the MoreVertIcon with prop variant=light', () => {
|
|
25
|
+
expect(mount(<MoreVertIcon variant="light" />)).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it('renders the MoreVertIcon with prop variant=gray', () => {
|
|
28
|
+
expect(mount(<MoreVertIcon variant="gray" />)).toMatchSnapshot();
|
|
29
|
+
});
|
|
30
|
+
it('renders the MoreVertIcon with prop variant=primary', () => {
|
|
31
|
+
expect(mount(<MoreVertIcon variant="primary" />)).toMatchSnapshot();
|
|
32
|
+
});
|
|
33
|
+
it('renders the MoreVertIcon with prop variant=success', () => {
|
|
34
|
+
expect(mount(<MoreVertIcon variant="success" />)).toMatchSnapshot();
|
|
35
|
+
});
|
|
36
|
+
it('renders the MoreVertIcon with prop variant=warning', () => {
|
|
37
|
+
expect(mount(<MoreVertIcon variant="warning" />)).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
it('renders the MoreVertIcon with prop variant=error', () => {
|
|
40
|
+
expect(mount(<MoreVertIcon variant="error" />)).toMatchSnapshot();
|
|
41
|
+
});
|
|
42
|
+
it('renders the MoreVertIcon with prop variant=focus', () => {
|
|
43
|
+
expect(mount(<MoreVertIcon variant="focus" />)).toMatchSnapshot();
|
|
44
|
+
});
|
|
45
|
+
it('renders the MoreVertIcon with prop variant=warning and size=s', () => {
|
|
46
|
+
expect(mount(<MoreVertIcon variant="warning" size="sm" />)).toMatchSnapshot();
|
|
47
|
+
});
|
|
48
|
+
it('renders the MoreVertIcon with prop variant=error and size= xl', () => {
|
|
49
|
+
expect(mount(<MoreVertIcon variant="warning" size="xl" />)).toMatchSnapshot();
|
|
50
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the SearchIcon with no props 1`] = `
|
|
4
|
+
<SearchIcon>
|
|
5
|
+
<ForwardRef(Icon)
|
|
6
|
+
icon="search"
|
|
7
|
+
>
|
|
8
|
+
<ForwardRef(SvgIcon)
|
|
9
|
+
className="govgr-svg-icon--search"
|
|
10
|
+
>
|
|
11
|
+
<ForwardRef(Base)
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
as="svg"
|
|
14
|
+
className="govgr-svg-icon--search govgr-svg-icon"
|
|
15
|
+
focusable="false"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
>
|
|
18
|
+
<svg
|
|
19
|
+
aria-hidden="true"
|
|
20
|
+
className="govgr-svg-icon--search govgr-svg-icon"
|
|
21
|
+
focusable="false"
|
|
22
|
+
viewBox="0 0 24 24"
|
|
23
|
+
>
|
|
24
|
+
<search>
|
|
25
|
+
<path
|
|
26
|
+
d="M22,19.9l-5.4-5.4c0.9-1.3,1.4-2.8,1.4-4.5c0-4.4-3.6-8-8-8s-8,3.6-8,8s3.6,8,8,8c1.7,0,3.2-0.5,4.5-1.4l5.4,5.4L22,19.9z M10,15c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S12.8,15,10,15z"
|
|
27
|
+
/>
|
|
28
|
+
</search>
|
|
29
|
+
</svg>
|
|
30
|
+
</ForwardRef(Base)>
|
|
31
|
+
</ForwardRef(SvgIcon)>
|
|
32
|
+
</ForwardRef(Icon)>
|
|
33
|
+
</SearchIcon>
|
|
34
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SearchType {}
|
|
4
|
+
|
|
5
|
+
export function search(): React.ReactElement {
|
|
6
|
+
return (
|
|
7
|
+
<>
|
|
8
|
+
<path d="M22,19.9l-5.4-5.4c0.9-1.3,1.4-2.8,1.4-4.5c0-4.4-3.6-8-8-8s-8,3.6-8,8s3.6,8,8,8c1.7,0,3.2-0.5,4.5-1.4l5.4,5.4L22,19.9z M10,15c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S12.8,15,10,15z" />
|
|
9
|
+
</>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
search.props = [];
|
|
14
|
+
|
|
15
|
+
export default search;
|