@skbkontur/icons 1.2.2 → 1.2.3-no-star-export.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 +4 -13
- package/README.md +1 -1
- package/esm/icons/index.d.ts +14 -14
- package/esm/icons/index.js +14 -14
- package/esm/index.d.ts +1 -2
- package/esm/index.js +0 -1
- package/esm/internal/Icon.d.ts +0 -2
- package/esm/internal/__tests__/getIconPosition.test.js +40 -0
- package/icons/index.d.ts +14 -14
- package/icons/index.js +14 -14
- package/index.d.ts +1 -2
- package/index.js +0 -2
- package/internal/Icon.d.ts +0 -2
- package/internal/__tests__/getIconPosition.test.js +42 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,32 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [1.2.
|
|
6
|
+
## [1.2.3](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.2.2...@skbkontur/icons@1.2.3) (2023-07-07)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @skbkontur/icons
|
|
9
9
|
|
|
10
|
+
## [1.2.2](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.2.1...@skbkontur/icons@1.2.2) (2023-07-07)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
**Note:** Version bump only for package @skbkontur/icons
|
|
13
13
|
|
|
14
14
|
## [1.2.1](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.2.0...@skbkontur/icons@1.2.1) (2023-07-05)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @skbkontur/icons
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
18
|
# [1.2.0](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.1.1...@skbkontur/icons@1.2.0) (2023-07-04)
|
|
23
19
|
|
|
24
|
-
|
|
25
20
|
### Features
|
|
26
21
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
- **icons:** add 2 new icons ([b3cc469](https://git.skbkontur.ru/ui/ui-parking/commits/b3cc469b24cc2156a5b0f24d55b17b6dd24d6d11))
|
|
32
23
|
|
|
33
24
|
## [1.1.1](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/icons@1.1.0...@skbkontur/icons@1.1.1) (2023-06-30)
|
|
34
25
|
|
package/README.md
CHANGED
package/esm/icons/index.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ export * from './ArrowAUpLeftIcon';
|
|
|
12
12
|
export * from './ArrowAUpRightIcon';
|
|
13
13
|
export * from './ArrowCDownIcon';
|
|
14
14
|
export * from './ArrowCLeftIcon';
|
|
15
|
-
export * from './ArrowCRightIcon';
|
|
16
|
-
export * from './ArrowCUpIcon';
|
|
17
15
|
export * from './ArrowCollapseCHClosedIcon';
|
|
18
16
|
export * from './ArrowCollapseCHOpenIcon';
|
|
19
17
|
export * from './ArrowCollapseCVClosedIcon';
|
|
@@ -22,6 +20,8 @@ export * from './ArrowCollapseTrianglesHClosedIcon';
|
|
|
22
20
|
export * from './ArrowCollapseTrianglesHOpenIcon';
|
|
23
21
|
export * from './ArrowCollapseTrianglesVClosedIcon';
|
|
24
22
|
export * from './ArrowCollapseTrianglesVOpenIcon';
|
|
23
|
+
export * from './ArrowCRightIcon';
|
|
24
|
+
export * from './ArrowCUpIcon';
|
|
25
25
|
export * from './ArrowDCornerDownLeftIcon';
|
|
26
26
|
export * from './ArrowDCornerDownRightIcon';
|
|
27
27
|
export * from './ArrowDCornerLeftDownIcon';
|
|
@@ -30,6 +30,14 @@ export * from './ArrowDCornerRightDownIcon';
|
|
|
30
30
|
export * from './ArrowDCornerRightUpIcon';
|
|
31
31
|
export * from './ArrowDCornerUpLeftIcon';
|
|
32
32
|
export * from './ArrowDCornerUpRightIcon';
|
|
33
|
+
export * from './ArrowDim1DiagLeftIcon';
|
|
34
|
+
export * from './ArrowDim1DiagRightIcon';
|
|
35
|
+
export * from './ArrowDim1HIcon';
|
|
36
|
+
export * from './ArrowDim1VIcon';
|
|
37
|
+
export * from './ArrowDim2DiagMaxRightIcon';
|
|
38
|
+
export * from './ArrowDim2DiagMinRightIcon';
|
|
39
|
+
export * from './ArrowDim4DiagMaxIcon';
|
|
40
|
+
export * from './ArrowDim4DiagMinIcon';
|
|
33
41
|
export * from './ArrowDRadiusDownLeftIcon';
|
|
34
42
|
export * from './ArrowDRadiusDownRightIcon';
|
|
35
43
|
export * from './ArrowDRadiusUpLeftIcon';
|
|
@@ -40,14 +48,6 @@ export * from './ArrowDUturnRightDownIcon';
|
|
|
40
48
|
export * from './ArrowDUturnRightUpIcon';
|
|
41
49
|
export * from './ArrowDUturnUpLeftIcon';
|
|
42
50
|
export * from './ArrowDUturnUpRightIcon';
|
|
43
|
-
export * from './ArrowDim1DiagLeftIcon';
|
|
44
|
-
export * from './ArrowDim1DiagRightIcon';
|
|
45
|
-
export * from './ArrowDim1HIcon';
|
|
46
|
-
export * from './ArrowDim1VIcon';
|
|
47
|
-
export * from './ArrowDim2DiagMaxRightIcon';
|
|
48
|
-
export * from './ArrowDim2DiagMinRightIcon';
|
|
49
|
-
export * from './ArrowDim4DiagMaxIcon';
|
|
50
|
-
export * from './ArrowDim4DiagMinIcon';
|
|
51
51
|
export * from './ArrowFigureACircleDownIcon';
|
|
52
52
|
export * from './ArrowFigureACircleLeftIcon';
|
|
53
53
|
export * from './ArrowFigureACircleRightIcon';
|
|
@@ -93,11 +93,11 @@ export * from './BlockIcon';
|
|
|
93
93
|
export * from './BookClosedGovIcon';
|
|
94
94
|
export * from './BookClosedHelpIcon';
|
|
95
95
|
export * from './BookClosedIcon';
|
|
96
|
+
export * from './BookmarkIcon';
|
|
96
97
|
export * from './BookNotepadIcon';
|
|
97
98
|
export * from './BookNotepadSpiralIcon';
|
|
98
99
|
export * from './BookOpenIcon';
|
|
99
100
|
export * from './BookOpenTextIcon';
|
|
100
|
-
export * from './BookmarkIcon';
|
|
101
101
|
export * from './BooksLibraryIcon';
|
|
102
102
|
export * from './BuildingGovIcon';
|
|
103
103
|
export * from './BuildingHomeIcon';
|
|
@@ -152,11 +152,11 @@ export * from './DocEditIcon';
|
|
|
152
152
|
export * from './DocIcon';
|
|
153
153
|
export * from './DocMinusIcon';
|
|
154
154
|
export * from './DocPlusIcon';
|
|
155
|
-
export * from './DocTextIcon';
|
|
156
|
-
export * from './DocXIcon';
|
|
157
155
|
export * from './DocsIcon';
|
|
158
156
|
export * from './DocsPlusIcon';
|
|
159
157
|
export * from './DocsTextIcon';
|
|
158
|
+
export * from './DocTextIcon';
|
|
159
|
+
export * from './DocXIcon';
|
|
160
160
|
export * from './EduHatIcon';
|
|
161
161
|
export * from './EyeClosedIcon';
|
|
162
162
|
export * from './EyeOffIcon';
|
|
@@ -191,8 +191,8 @@ export * from './FolderIcon';
|
|
|
191
191
|
export * from './FolderMinusIcon';
|
|
192
192
|
export * from './FolderPlusIcon';
|
|
193
193
|
export * from './FolderSharedIcon';
|
|
194
|
-
export * from './FolderXIcon';
|
|
195
194
|
export * from './FoldersIcon';
|
|
195
|
+
export * from './FolderXIcon';
|
|
196
196
|
export * from './FoodDrinkAlcoBottleWineIcon';
|
|
197
197
|
export * from './FoodDrinkAlcoGlassBeerIcon';
|
|
198
198
|
export * from './FoodDrinkAlcoGlassCocktailIcon';
|
package/esm/icons/index.js
CHANGED
|
@@ -12,8 +12,6 @@ export * from './ArrowAUpLeftIcon';
|
|
|
12
12
|
export * from './ArrowAUpRightIcon';
|
|
13
13
|
export * from './ArrowCDownIcon';
|
|
14
14
|
export * from './ArrowCLeftIcon';
|
|
15
|
-
export * from './ArrowCRightIcon';
|
|
16
|
-
export * from './ArrowCUpIcon';
|
|
17
15
|
export * from './ArrowCollapseCHClosedIcon';
|
|
18
16
|
export * from './ArrowCollapseCHOpenIcon';
|
|
19
17
|
export * from './ArrowCollapseCVClosedIcon';
|
|
@@ -22,6 +20,8 @@ export * from './ArrowCollapseTrianglesHClosedIcon';
|
|
|
22
20
|
export * from './ArrowCollapseTrianglesHOpenIcon';
|
|
23
21
|
export * from './ArrowCollapseTrianglesVClosedIcon';
|
|
24
22
|
export * from './ArrowCollapseTrianglesVOpenIcon';
|
|
23
|
+
export * from './ArrowCRightIcon';
|
|
24
|
+
export * from './ArrowCUpIcon';
|
|
25
25
|
export * from './ArrowDCornerDownLeftIcon';
|
|
26
26
|
export * from './ArrowDCornerDownRightIcon';
|
|
27
27
|
export * from './ArrowDCornerLeftDownIcon';
|
|
@@ -30,6 +30,14 @@ export * from './ArrowDCornerRightDownIcon';
|
|
|
30
30
|
export * from './ArrowDCornerRightUpIcon';
|
|
31
31
|
export * from './ArrowDCornerUpLeftIcon';
|
|
32
32
|
export * from './ArrowDCornerUpRightIcon';
|
|
33
|
+
export * from './ArrowDim1DiagLeftIcon';
|
|
34
|
+
export * from './ArrowDim1DiagRightIcon';
|
|
35
|
+
export * from './ArrowDim1HIcon';
|
|
36
|
+
export * from './ArrowDim1VIcon';
|
|
37
|
+
export * from './ArrowDim2DiagMaxRightIcon';
|
|
38
|
+
export * from './ArrowDim2DiagMinRightIcon';
|
|
39
|
+
export * from './ArrowDim4DiagMaxIcon';
|
|
40
|
+
export * from './ArrowDim4DiagMinIcon';
|
|
33
41
|
export * from './ArrowDRadiusDownLeftIcon';
|
|
34
42
|
export * from './ArrowDRadiusDownRightIcon';
|
|
35
43
|
export * from './ArrowDRadiusUpLeftIcon';
|
|
@@ -40,14 +48,6 @@ export * from './ArrowDUturnRightDownIcon';
|
|
|
40
48
|
export * from './ArrowDUturnRightUpIcon';
|
|
41
49
|
export * from './ArrowDUturnUpLeftIcon';
|
|
42
50
|
export * from './ArrowDUturnUpRightIcon';
|
|
43
|
-
export * from './ArrowDim1DiagLeftIcon';
|
|
44
|
-
export * from './ArrowDim1DiagRightIcon';
|
|
45
|
-
export * from './ArrowDim1HIcon';
|
|
46
|
-
export * from './ArrowDim1VIcon';
|
|
47
|
-
export * from './ArrowDim2DiagMaxRightIcon';
|
|
48
|
-
export * from './ArrowDim2DiagMinRightIcon';
|
|
49
|
-
export * from './ArrowDim4DiagMaxIcon';
|
|
50
|
-
export * from './ArrowDim4DiagMinIcon';
|
|
51
51
|
export * from './ArrowFigureACircleDownIcon';
|
|
52
52
|
export * from './ArrowFigureACircleLeftIcon';
|
|
53
53
|
export * from './ArrowFigureACircleRightIcon';
|
|
@@ -93,11 +93,11 @@ export * from './BlockIcon';
|
|
|
93
93
|
export * from './BookClosedGovIcon';
|
|
94
94
|
export * from './BookClosedHelpIcon';
|
|
95
95
|
export * from './BookClosedIcon';
|
|
96
|
+
export * from './BookmarkIcon';
|
|
96
97
|
export * from './BookNotepadIcon';
|
|
97
98
|
export * from './BookNotepadSpiralIcon';
|
|
98
99
|
export * from './BookOpenIcon';
|
|
99
100
|
export * from './BookOpenTextIcon';
|
|
100
|
-
export * from './BookmarkIcon';
|
|
101
101
|
export * from './BooksLibraryIcon';
|
|
102
102
|
export * from './BuildingGovIcon';
|
|
103
103
|
export * from './BuildingHomeIcon';
|
|
@@ -152,11 +152,11 @@ export * from './DocEditIcon';
|
|
|
152
152
|
export * from './DocIcon';
|
|
153
153
|
export * from './DocMinusIcon';
|
|
154
154
|
export * from './DocPlusIcon';
|
|
155
|
-
export * from './DocTextIcon';
|
|
156
|
-
export * from './DocXIcon';
|
|
157
155
|
export * from './DocsIcon';
|
|
158
156
|
export * from './DocsPlusIcon';
|
|
159
157
|
export * from './DocsTextIcon';
|
|
158
|
+
export * from './DocTextIcon';
|
|
159
|
+
export * from './DocXIcon';
|
|
160
160
|
export * from './EduHatIcon';
|
|
161
161
|
export * from './EyeClosedIcon';
|
|
162
162
|
export * from './EyeOffIcon';
|
|
@@ -191,8 +191,8 @@ export * from './FolderIcon';
|
|
|
191
191
|
export * from './FolderMinusIcon';
|
|
192
192
|
export * from './FolderPlusIcon';
|
|
193
193
|
export * from './FolderSharedIcon';
|
|
194
|
-
export * from './FolderXIcon';
|
|
195
194
|
export * from './FoldersIcon';
|
|
195
|
+
export * from './FolderXIcon';
|
|
196
196
|
export * from './FoodDrinkAlcoBottleWineIcon';
|
|
197
197
|
export * from './FoodDrinkAlcoGlassBeerIcon';
|
|
198
198
|
export * from './FoodDrinkAlcoGlassCocktailIcon';
|
package/esm/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { breakpoints, weights, IconDataTids, IconSize, IconName, IconWeight, IconSizes, IconProps, DEFAULT_ICON_SIZE, DEFAULT_ICON_WEIGHT, } from './internal/Icon';
|
|
1
|
+
export { breakpoints, weights, IconDataTids, IconSize, IconWeight, IconSizes, IconProps, DEFAULT_ICON_SIZE, DEFAULT_ICON_WEIGHT, } from './internal/Icon';
|
package/esm/index.js
CHANGED
package/esm/internal/Icon.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React, { AllHTMLAttributes, AriaAttributes } from 'react';
|
|
2
|
-
import * as allIcons from '../icons/index';
|
|
3
2
|
export declare const breakpoints: readonly [16, 20, 24, 32, 64];
|
|
4
3
|
export declare const weights: readonly ["light", "regular", "solid"];
|
|
5
4
|
export declare const MAX_LIGHT_POSITION = 1;
|
|
6
5
|
export declare const MAX_REGULAR_POSITION = 4;
|
|
7
6
|
export declare const MAX_SOLID_POSITION = 2;
|
|
8
|
-
export declare type IconName = keyof typeof allIcons;
|
|
9
7
|
export declare type IconSize = typeof breakpoints[number];
|
|
10
8
|
export declare type IconWeight = typeof weights[number];
|
|
11
9
|
export declare type IconSizes = Record<number, {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { getIconPosition } from '../getIconPosition';
|
|
2
|
+
describe('getIconPosition', function () {
|
|
3
|
+
it('should return 0 if no smaller number presented', function () {
|
|
4
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
5
|
+
var number = breakpoints[0] - 1;
|
|
6
|
+
expect(getIconPosition(number, breakpoints)).toBe(0);
|
|
7
|
+
});
|
|
8
|
+
it('should return 0 if the number equals the smallest number', function () {
|
|
9
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
10
|
+
var number = breakpoints[0];
|
|
11
|
+
expect(getIconPosition(number, breakpoints)).toBe(0);
|
|
12
|
+
});
|
|
13
|
+
it('should return 0 if the number is located between first and second number', function () {
|
|
14
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
15
|
+
var number = breakpoints[0] + 1;
|
|
16
|
+
expect(getIconPosition(number, breakpoints)).toBe(0);
|
|
17
|
+
});
|
|
18
|
+
it('should return 1 if the number is equal to the second number in the list', function () {
|
|
19
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
20
|
+
var number = breakpoints[1];
|
|
21
|
+
expect(getIconPosition(number, breakpoints)).toBe(1);
|
|
22
|
+
});
|
|
23
|
+
it('should return 1 if the number is located between second and second third number in the list', function () {
|
|
24
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
25
|
+
var number = breakpoints[1] + 1;
|
|
26
|
+
expect(getIconPosition(number, breakpoints)).toBe(1);
|
|
27
|
+
});
|
|
28
|
+
it('should return last index if the number equals the biggest number in list', function () {
|
|
29
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
30
|
+
var lastIndex = breakpoints.length - 1;
|
|
31
|
+
var number = breakpoints[lastIndex];
|
|
32
|
+
expect(getIconPosition(number, breakpoints)).toBe(lastIndex);
|
|
33
|
+
});
|
|
34
|
+
it('should return last index if the number is bigger than the biggest number in list', function () {
|
|
35
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
36
|
+
var lastIndex = breakpoints.length - 1;
|
|
37
|
+
var number = breakpoints[lastIndex] + 1;
|
|
38
|
+
expect(getIconPosition(number, breakpoints)).toBe(lastIndex);
|
|
39
|
+
});
|
|
40
|
+
});
|
package/icons/index.d.ts
CHANGED
|
@@ -12,8 +12,6 @@ export * from './ArrowAUpLeftIcon';
|
|
|
12
12
|
export * from './ArrowAUpRightIcon';
|
|
13
13
|
export * from './ArrowCDownIcon';
|
|
14
14
|
export * from './ArrowCLeftIcon';
|
|
15
|
-
export * from './ArrowCRightIcon';
|
|
16
|
-
export * from './ArrowCUpIcon';
|
|
17
15
|
export * from './ArrowCollapseCHClosedIcon';
|
|
18
16
|
export * from './ArrowCollapseCHOpenIcon';
|
|
19
17
|
export * from './ArrowCollapseCVClosedIcon';
|
|
@@ -22,6 +20,8 @@ export * from './ArrowCollapseTrianglesHClosedIcon';
|
|
|
22
20
|
export * from './ArrowCollapseTrianglesHOpenIcon';
|
|
23
21
|
export * from './ArrowCollapseTrianglesVClosedIcon';
|
|
24
22
|
export * from './ArrowCollapseTrianglesVOpenIcon';
|
|
23
|
+
export * from './ArrowCRightIcon';
|
|
24
|
+
export * from './ArrowCUpIcon';
|
|
25
25
|
export * from './ArrowDCornerDownLeftIcon';
|
|
26
26
|
export * from './ArrowDCornerDownRightIcon';
|
|
27
27
|
export * from './ArrowDCornerLeftDownIcon';
|
|
@@ -30,6 +30,14 @@ export * from './ArrowDCornerRightDownIcon';
|
|
|
30
30
|
export * from './ArrowDCornerRightUpIcon';
|
|
31
31
|
export * from './ArrowDCornerUpLeftIcon';
|
|
32
32
|
export * from './ArrowDCornerUpRightIcon';
|
|
33
|
+
export * from './ArrowDim1DiagLeftIcon';
|
|
34
|
+
export * from './ArrowDim1DiagRightIcon';
|
|
35
|
+
export * from './ArrowDim1HIcon';
|
|
36
|
+
export * from './ArrowDim1VIcon';
|
|
37
|
+
export * from './ArrowDim2DiagMaxRightIcon';
|
|
38
|
+
export * from './ArrowDim2DiagMinRightIcon';
|
|
39
|
+
export * from './ArrowDim4DiagMaxIcon';
|
|
40
|
+
export * from './ArrowDim4DiagMinIcon';
|
|
33
41
|
export * from './ArrowDRadiusDownLeftIcon';
|
|
34
42
|
export * from './ArrowDRadiusDownRightIcon';
|
|
35
43
|
export * from './ArrowDRadiusUpLeftIcon';
|
|
@@ -40,14 +48,6 @@ export * from './ArrowDUturnRightDownIcon';
|
|
|
40
48
|
export * from './ArrowDUturnRightUpIcon';
|
|
41
49
|
export * from './ArrowDUturnUpLeftIcon';
|
|
42
50
|
export * from './ArrowDUturnUpRightIcon';
|
|
43
|
-
export * from './ArrowDim1DiagLeftIcon';
|
|
44
|
-
export * from './ArrowDim1DiagRightIcon';
|
|
45
|
-
export * from './ArrowDim1HIcon';
|
|
46
|
-
export * from './ArrowDim1VIcon';
|
|
47
|
-
export * from './ArrowDim2DiagMaxRightIcon';
|
|
48
|
-
export * from './ArrowDim2DiagMinRightIcon';
|
|
49
|
-
export * from './ArrowDim4DiagMaxIcon';
|
|
50
|
-
export * from './ArrowDim4DiagMinIcon';
|
|
51
51
|
export * from './ArrowFigureACircleDownIcon';
|
|
52
52
|
export * from './ArrowFigureACircleLeftIcon';
|
|
53
53
|
export * from './ArrowFigureACircleRightIcon';
|
|
@@ -93,11 +93,11 @@ export * from './BlockIcon';
|
|
|
93
93
|
export * from './BookClosedGovIcon';
|
|
94
94
|
export * from './BookClosedHelpIcon';
|
|
95
95
|
export * from './BookClosedIcon';
|
|
96
|
+
export * from './BookmarkIcon';
|
|
96
97
|
export * from './BookNotepadIcon';
|
|
97
98
|
export * from './BookNotepadSpiralIcon';
|
|
98
99
|
export * from './BookOpenIcon';
|
|
99
100
|
export * from './BookOpenTextIcon';
|
|
100
|
-
export * from './BookmarkIcon';
|
|
101
101
|
export * from './BooksLibraryIcon';
|
|
102
102
|
export * from './BuildingGovIcon';
|
|
103
103
|
export * from './BuildingHomeIcon';
|
|
@@ -152,11 +152,11 @@ export * from './DocEditIcon';
|
|
|
152
152
|
export * from './DocIcon';
|
|
153
153
|
export * from './DocMinusIcon';
|
|
154
154
|
export * from './DocPlusIcon';
|
|
155
|
-
export * from './DocTextIcon';
|
|
156
|
-
export * from './DocXIcon';
|
|
157
155
|
export * from './DocsIcon';
|
|
158
156
|
export * from './DocsPlusIcon';
|
|
159
157
|
export * from './DocsTextIcon';
|
|
158
|
+
export * from './DocTextIcon';
|
|
159
|
+
export * from './DocXIcon';
|
|
160
160
|
export * from './EduHatIcon';
|
|
161
161
|
export * from './EyeClosedIcon';
|
|
162
162
|
export * from './EyeOffIcon';
|
|
@@ -191,8 +191,8 @@ export * from './FolderIcon';
|
|
|
191
191
|
export * from './FolderMinusIcon';
|
|
192
192
|
export * from './FolderPlusIcon';
|
|
193
193
|
export * from './FolderSharedIcon';
|
|
194
|
-
export * from './FolderXIcon';
|
|
195
194
|
export * from './FoldersIcon';
|
|
195
|
+
export * from './FolderXIcon';
|
|
196
196
|
export * from './FoodDrinkAlcoBottleWineIcon';
|
|
197
197
|
export * from './FoodDrinkAlcoGlassBeerIcon';
|
|
198
198
|
export * from './FoodDrinkAlcoGlassCocktailIcon';
|
package/icons/index.js
CHANGED
|
@@ -15,8 +15,6 @@ tslib_1.__exportStar(require("./ArrowAUpLeftIcon"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./ArrowAUpRightIcon"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./ArrowCDownIcon"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./ArrowCLeftIcon"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./ArrowCRightIcon"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./ArrowCUpIcon"), exports);
|
|
20
18
|
tslib_1.__exportStar(require("./ArrowCollapseCHClosedIcon"), exports);
|
|
21
19
|
tslib_1.__exportStar(require("./ArrowCollapseCHOpenIcon"), exports);
|
|
22
20
|
tslib_1.__exportStar(require("./ArrowCollapseCVClosedIcon"), exports);
|
|
@@ -25,6 +23,8 @@ tslib_1.__exportStar(require("./ArrowCollapseTrianglesHClosedIcon"), exports);
|
|
|
25
23
|
tslib_1.__exportStar(require("./ArrowCollapseTrianglesHOpenIcon"), exports);
|
|
26
24
|
tslib_1.__exportStar(require("./ArrowCollapseTrianglesVClosedIcon"), exports);
|
|
27
25
|
tslib_1.__exportStar(require("./ArrowCollapseTrianglesVOpenIcon"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ArrowCRightIcon"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ArrowCUpIcon"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./ArrowDCornerDownLeftIcon"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./ArrowDCornerDownRightIcon"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./ArrowDCornerLeftDownIcon"), exports);
|
|
@@ -33,6 +33,14 @@ tslib_1.__exportStar(require("./ArrowDCornerRightDownIcon"), exports);
|
|
|
33
33
|
tslib_1.__exportStar(require("./ArrowDCornerRightUpIcon"), exports);
|
|
34
34
|
tslib_1.__exportStar(require("./ArrowDCornerUpLeftIcon"), exports);
|
|
35
35
|
tslib_1.__exportStar(require("./ArrowDCornerUpRightIcon"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ArrowDim1DiagLeftIcon"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./ArrowDim1DiagRightIcon"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./ArrowDim1HIcon"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./ArrowDim1VIcon"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./ArrowDim2DiagMaxRightIcon"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./ArrowDim2DiagMinRightIcon"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./ArrowDim4DiagMaxIcon"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./ArrowDim4DiagMinIcon"), exports);
|
|
36
44
|
tslib_1.__exportStar(require("./ArrowDRadiusDownLeftIcon"), exports);
|
|
37
45
|
tslib_1.__exportStar(require("./ArrowDRadiusDownRightIcon"), exports);
|
|
38
46
|
tslib_1.__exportStar(require("./ArrowDRadiusUpLeftIcon"), exports);
|
|
@@ -43,14 +51,6 @@ tslib_1.__exportStar(require("./ArrowDUturnRightDownIcon"), exports);
|
|
|
43
51
|
tslib_1.__exportStar(require("./ArrowDUturnRightUpIcon"), exports);
|
|
44
52
|
tslib_1.__exportStar(require("./ArrowDUturnUpLeftIcon"), exports);
|
|
45
53
|
tslib_1.__exportStar(require("./ArrowDUturnUpRightIcon"), exports);
|
|
46
|
-
tslib_1.__exportStar(require("./ArrowDim1DiagLeftIcon"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./ArrowDim1DiagRightIcon"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./ArrowDim1HIcon"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./ArrowDim1VIcon"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./ArrowDim2DiagMaxRightIcon"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./ArrowDim2DiagMinRightIcon"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./ArrowDim4DiagMaxIcon"), exports);
|
|
53
|
-
tslib_1.__exportStar(require("./ArrowDim4DiagMinIcon"), exports);
|
|
54
54
|
tslib_1.__exportStar(require("./ArrowFigureACircleDownIcon"), exports);
|
|
55
55
|
tslib_1.__exportStar(require("./ArrowFigureACircleLeftIcon"), exports);
|
|
56
56
|
tslib_1.__exportStar(require("./ArrowFigureACircleRightIcon"), exports);
|
|
@@ -96,11 +96,11 @@ tslib_1.__exportStar(require("./BlockIcon"), exports);
|
|
|
96
96
|
tslib_1.__exportStar(require("./BookClosedGovIcon"), exports);
|
|
97
97
|
tslib_1.__exportStar(require("./BookClosedHelpIcon"), exports);
|
|
98
98
|
tslib_1.__exportStar(require("./BookClosedIcon"), exports);
|
|
99
|
+
tslib_1.__exportStar(require("./BookmarkIcon"), exports);
|
|
99
100
|
tslib_1.__exportStar(require("./BookNotepadIcon"), exports);
|
|
100
101
|
tslib_1.__exportStar(require("./BookNotepadSpiralIcon"), exports);
|
|
101
102
|
tslib_1.__exportStar(require("./BookOpenIcon"), exports);
|
|
102
103
|
tslib_1.__exportStar(require("./BookOpenTextIcon"), exports);
|
|
103
|
-
tslib_1.__exportStar(require("./BookmarkIcon"), exports);
|
|
104
104
|
tslib_1.__exportStar(require("./BooksLibraryIcon"), exports);
|
|
105
105
|
tslib_1.__exportStar(require("./BuildingGovIcon"), exports);
|
|
106
106
|
tslib_1.__exportStar(require("./BuildingHomeIcon"), exports);
|
|
@@ -155,11 +155,11 @@ tslib_1.__exportStar(require("./DocEditIcon"), exports);
|
|
|
155
155
|
tslib_1.__exportStar(require("./DocIcon"), exports);
|
|
156
156
|
tslib_1.__exportStar(require("./DocMinusIcon"), exports);
|
|
157
157
|
tslib_1.__exportStar(require("./DocPlusIcon"), exports);
|
|
158
|
-
tslib_1.__exportStar(require("./DocTextIcon"), exports);
|
|
159
|
-
tslib_1.__exportStar(require("./DocXIcon"), exports);
|
|
160
158
|
tslib_1.__exportStar(require("./DocsIcon"), exports);
|
|
161
159
|
tslib_1.__exportStar(require("./DocsPlusIcon"), exports);
|
|
162
160
|
tslib_1.__exportStar(require("./DocsTextIcon"), exports);
|
|
161
|
+
tslib_1.__exportStar(require("./DocTextIcon"), exports);
|
|
162
|
+
tslib_1.__exportStar(require("./DocXIcon"), exports);
|
|
163
163
|
tslib_1.__exportStar(require("./EduHatIcon"), exports);
|
|
164
164
|
tslib_1.__exportStar(require("./EyeClosedIcon"), exports);
|
|
165
165
|
tslib_1.__exportStar(require("./EyeOffIcon"), exports);
|
|
@@ -194,8 +194,8 @@ tslib_1.__exportStar(require("./FolderIcon"), exports);
|
|
|
194
194
|
tslib_1.__exportStar(require("./FolderMinusIcon"), exports);
|
|
195
195
|
tslib_1.__exportStar(require("./FolderPlusIcon"), exports);
|
|
196
196
|
tslib_1.__exportStar(require("./FolderSharedIcon"), exports);
|
|
197
|
-
tslib_1.__exportStar(require("./FolderXIcon"), exports);
|
|
198
197
|
tslib_1.__exportStar(require("./FoldersIcon"), exports);
|
|
198
|
+
tslib_1.__exportStar(require("./FolderXIcon"), exports);
|
|
199
199
|
tslib_1.__exportStar(require("./FoodDrinkAlcoBottleWineIcon"), exports);
|
|
200
200
|
tslib_1.__exportStar(require("./FoodDrinkAlcoGlassBeerIcon"), exports);
|
|
201
201
|
tslib_1.__exportStar(require("./FoodDrinkAlcoGlassCocktailIcon"), exports);
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { breakpoints, weights, IconDataTids, IconSize, IconName, IconWeight, IconSizes, IconProps, DEFAULT_ICON_SIZE, DEFAULT_ICON_WEIGHT, } from './internal/Icon';
|
|
1
|
+
export { breakpoints, weights, IconDataTids, IconSize, IconWeight, IconSizes, IconProps, DEFAULT_ICON_SIZE, DEFAULT_ICON_WEIGHT, } from './internal/Icon';
|
package/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./icons"), exports);
|
|
5
3
|
var Icon_1 = require("./internal/Icon");
|
|
6
4
|
Object.defineProperty(exports, "breakpoints", { enumerable: true, get: function () { return Icon_1.breakpoints; } });
|
|
7
5
|
Object.defineProperty(exports, "weights", { enumerable: true, get: function () { return Icon_1.weights; } });
|
package/internal/Icon.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React, { AllHTMLAttributes, AriaAttributes } from 'react';
|
|
2
|
-
import * as allIcons from '../icons/index';
|
|
3
2
|
export declare const breakpoints: readonly [16, 20, 24, 32, 64];
|
|
4
3
|
export declare const weights: readonly ["light", "regular", "solid"];
|
|
5
4
|
export declare const MAX_LIGHT_POSITION = 1;
|
|
6
5
|
export declare const MAX_REGULAR_POSITION = 4;
|
|
7
6
|
export declare const MAX_SOLID_POSITION = 2;
|
|
8
|
-
export declare type IconName = keyof typeof allIcons;
|
|
9
7
|
export declare type IconSize = typeof breakpoints[number];
|
|
10
8
|
export declare type IconWeight = typeof weights[number];
|
|
11
9
|
export declare type IconSizes = Record<number, {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var getIconPosition_1 = require("../getIconPosition");
|
|
4
|
+
describe('getIconPosition', function () {
|
|
5
|
+
it('should return 0 if no smaller number presented', function () {
|
|
6
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
7
|
+
var number = breakpoints[0] - 1;
|
|
8
|
+
expect(getIconPosition_1.getIconPosition(number, breakpoints)).toBe(0);
|
|
9
|
+
});
|
|
10
|
+
it('should return 0 if the number equals the smallest number', function () {
|
|
11
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
12
|
+
var number = breakpoints[0];
|
|
13
|
+
expect(getIconPosition_1.getIconPosition(number, breakpoints)).toBe(0);
|
|
14
|
+
});
|
|
15
|
+
it('should return 0 if the number is located between first and second number', function () {
|
|
16
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
17
|
+
var number = breakpoints[0] + 1;
|
|
18
|
+
expect(getIconPosition_1.getIconPosition(number, breakpoints)).toBe(0);
|
|
19
|
+
});
|
|
20
|
+
it('should return 1 if the number is equal to the second number in the list', function () {
|
|
21
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
22
|
+
var number = breakpoints[1];
|
|
23
|
+
expect(getIconPosition_1.getIconPosition(number, breakpoints)).toBe(1);
|
|
24
|
+
});
|
|
25
|
+
it('should return 1 if the number is located between second and second third number in the list', function () {
|
|
26
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
27
|
+
var number = breakpoints[1] + 1;
|
|
28
|
+
expect(getIconPosition_1.getIconPosition(number, breakpoints)).toBe(1);
|
|
29
|
+
});
|
|
30
|
+
it('should return last index if the number equals the biggest number in list', function () {
|
|
31
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
32
|
+
var lastIndex = breakpoints.length - 1;
|
|
33
|
+
var number = breakpoints[lastIndex];
|
|
34
|
+
expect(getIconPosition_1.getIconPosition(number, breakpoints)).toBe(lastIndex);
|
|
35
|
+
});
|
|
36
|
+
it('should return last index if the number is bigger than the biggest number in list', function () {
|
|
37
|
+
var breakpoints = [16, 20, 24, 32, 64];
|
|
38
|
+
var lastIndex = breakpoints.length - 1;
|
|
39
|
+
var number = breakpoints[lastIndex] + 1;
|
|
40
|
+
expect(getIconPosition_1.getIconPosition(number, breakpoints)).toBe(lastIndex);
|
|
41
|
+
});
|
|
42
|
+
});
|