@snack-uikit/icons 0.20.0 → 0.20.1
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 +44 -0
- package/dist/Sprite.d.ts +6 -0
- package/dist/Sprite.js +16 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/interface-icons/alarmFilled/AlarmFilledS.js +2 -2
- package/dist/components/interface-icons/alarmFilled/AlarmFilledXs.js +2 -2
- package/dist/components/interface-icons/arrowDown/ArrowDownS.js +2 -2
- package/dist/components/interface-icons/arrowDown/ArrowDownXs.js +2 -2
- package/dist/components/interface-icons/arrowLeft/ArrowLeftS.js +2 -2
- package/dist/components/interface-icons/arrowLeft/ArrowLeftXs.js +2 -2
- package/dist/components/interface-icons/arrowLinks/ArrowLinksS.js +2 -2
- package/dist/components/interface-icons/arrowLinks/ArrowLinksXs.js +2 -2
- package/dist/components/interface-icons/arrowRight/ArrowRightS.js +2 -2
- package/dist/components/interface-icons/arrowRight/ArrowRightXs.js +2 -2
- package/dist/components/interface-icons/arrowUp/ArrowUpS.js +2 -2
- package/dist/components/interface-icons/arrowUp/ArrowUpXs.js +2 -2
- package/dist/components/interface-icons/calendar/CalendarS.js +2 -2
- package/dist/components/interface-icons/calendar/CalendarXs.js +2 -2
- package/dist/components/interface-icons/check/CheckS.js +2 -2
- package/dist/components/interface-icons/check/CheckXs.js +2 -2
- package/dist/components/interface-icons/checkFilled/CheckFilledS.js +2 -2
- package/dist/components/interface-icons/checkFilled/CheckFilledXs.js +2 -2
- package/dist/components/interface-icons/chevronDown/ChevronDownS.js +2 -2
- package/dist/components/interface-icons/chevronDown/ChevronDownXs.js +2 -2
- package/dist/components/interface-icons/chevronLeft/ChevronLeftS.js +2 -2
- package/dist/components/interface-icons/chevronLeft/ChevronLeftXs.js +2 -2
- package/dist/components/interface-icons/chevronRight/ChevronRightS.js +2 -2
- package/dist/components/interface-icons/chevronRight/ChevronRightXs.js +2 -2
- package/dist/components/interface-icons/chevronUp/ChevronUpS.js +2 -2
- package/dist/components/interface-icons/chevronUp/ChevronUpXs.js +2 -2
- package/dist/components/interface-icons/copy/CopyS.js +2 -2
- package/dist/components/interface-icons/copy/CopyXs.js +2 -2
- package/dist/components/interface-icons/cross/CrossS.js +2 -2
- package/dist/components/interface-icons/cross/CrossXs.js +2 -2
- package/dist/components/interface-icons/crossFilled/CrossFilledS.js +2 -2
- package/dist/components/interface-icons/crossFilled/CrossFilledXs.js +2 -2
- package/dist/components/interface-icons/day/DayS.js +2 -2
- package/dist/components/interface-icons/download/DownloadS.js +2 -2
- package/dist/components/interface-icons/download/DownloadXs.js +2 -2
- package/dist/components/interface-icons/email/EmailS.js +2 -2
- package/dist/components/interface-icons/eye/EyeS.js +2 -2
- package/dist/components/interface-icons/eye/EyeXs.js +2 -2
- package/dist/components/interface-icons/eyeClosed/EyeClosedS.js +2 -2
- package/dist/components/interface-icons/eyeClosed/EyeClosedXs.js +2 -2
- package/dist/components/interface-icons/file/FileS.js +2 -2
- package/dist/components/interface-icons/file/FileXs.js +2 -2
- package/dist/components/interface-icons/filter/FilterS.js +2 -2
- package/dist/components/interface-icons/folder/FolderS.js +2 -2
- package/dist/components/interface-icons/folder/FolderXs.js +2 -2
- package/dist/components/interface-icons/folderOpen/FolderOpenS.js +2 -2
- package/dist/components/interface-icons/folderOpen/FolderOpenXs.js +2 -2
- package/dist/components/interface-icons/heart/HeartS.js +2 -2
- package/dist/components/interface-icons/heartFilled/HeartFilledS.js +2 -2
- package/dist/components/interface-icons/heartFilled/HeartFilledXs.js +2 -2
- package/dist/components/interface-icons/home/HomeS.js +2 -2
- package/dist/components/interface-icons/home/HomeXs.js +2 -2
- package/dist/components/interface-icons/infoFilled/InfoFilledS.js +2 -2
- package/dist/components/interface-icons/infoFilled/InfoFilledXs.js +2 -2
- package/dist/components/interface-icons/kebab/KebabS.js +2 -2
- package/dist/components/interface-icons/kebab/KebabXs.js +2 -2
- package/dist/components/interface-icons/minus/MinusS.js +2 -2
- package/dist/components/interface-icons/minus/MinusXs.js +2 -2
- package/dist/components/interface-icons/more/MoreS.js +2 -2
- package/dist/components/interface-icons/more/MoreXs.js +2 -2
- package/dist/components/interface-icons/night/NightS.js +2 -2
- package/dist/components/interface-icons/pinned/PinnedS.js +2 -2
- package/dist/components/interface-icons/pinned/PinnedXs.js +2 -2
- package/dist/components/interface-icons/placeholder/PlaceholderS.js +2 -2
- package/dist/components/interface-icons/placeholder/PlaceholderXs.js +2 -2
- package/dist/components/interface-icons/plus/PlusS.js +2 -2
- package/dist/components/interface-icons/plus/PlusXs.js +2 -2
- package/dist/components/interface-icons/question/QuestionS.js +2 -2
- package/dist/components/interface-icons/question/QuestionXs.js +2 -2
- package/dist/components/interface-icons/resize/ResizeS.js +2 -2
- package/dist/components/interface-icons/resize/ResizeXs.js +2 -2
- package/dist/components/interface-icons/search/SearchS.js +2 -2
- package/dist/components/interface-icons/search/SearchXs.js +2 -2
- package/dist/components/interface-icons/settings/SettingsS.js +2 -2
- package/dist/components/interface-icons/settings/SettingsXs.js +2 -2
- package/dist/components/interface-icons/star/StarS.js +2 -2
- package/dist/components/interface-icons/star/StarXs.js +2 -2
- package/dist/components/interface-icons/starFilled/StarFilledS.js +2 -2
- package/dist/components/interface-icons/starFilled/StarFilledXs.js +2 -2
- package/dist/components/interface-icons/trash/TrashS.js +2 -2
- package/dist/components/interface-icons/unPinned/UnPinnedS.js +2 -2
- package/dist/components/interface-icons/unPinned/UnPinnedXs.js +2 -2
- package/dist/components/interface-icons/update/UpdateS.js +2 -2
- package/dist/components/interface-icons/upload/UploadS.js +2 -2
- package/dist/components/interface-icons/upload/UploadXs.js +2 -2
- package/dist/components/interface-icons/warning/WarningS.js +2 -2
- package/dist/components/interface-icons/warning/WarningXs.js +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/sprite/svg/sprite.symbol.svg +1 -0
- package/package.json +15 -7
- package/src/Sprite.tsx +22 -0
- package/src/index.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## 0.20.1 (2024-02-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **FF-3802:** use svg sprite for icons ([09dbca4](https://github.com/cloud-ru-tech/snack-uikit/commit/09dbca42999ca8870171e2bbda39c019f030b2cb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 0.20.0 (2024-01-23)
|
|
7
18
|
|
|
8
19
|
|
package/README.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
## Installation
|
|
4
4
|
`npm i @snack-uikit/icons`
|
|
5
5
|
|
|
6
|
+
## Как подключить иконки в проект
|
|
7
|
+
|
|
8
|
+
1. Подключите `svg-inline-loader` в конфигурацию webpack-a:
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
import { SVG_SPRITE_WEBPACK_REG_EXP } from '@snack-uikit/icons';
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
module: {
|
|
15
|
+
rules: [
|
|
16
|
+
{
|
|
17
|
+
test: /\.symbol.svg$/,
|
|
18
|
+
use: 'svg-inline-loader'
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
...
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
2. Подключите спрайт с иконками в проект
|
|
27
|
+
|
|
28
|
+
```typescript jsx
|
|
29
|
+
import { Sprite, SpriteSVG } from '@snack-uikit/icons';
|
|
30
|
+
|
|
31
|
+
function App () {
|
|
32
|
+
return (
|
|
33
|
+
<>
|
|
34
|
+
<Sprite content={SpriteSVG} />
|
|
35
|
+
</>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
3. Используйте иконки как обычные реакт-компоненты:
|
|
41
|
+
|
|
42
|
+
```typescript jsx
|
|
43
|
+
import { ChevronLeftSVG } from '@snack-uikit/icons';
|
|
44
|
+
|
|
45
|
+
function MyComponent () {
|
|
46
|
+
return <div><ChevronLeftSVG /></div>
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
6
50
|
## Как добавить новую иконку
|
|
7
51
|
|
|
8
52
|
1. Добавьте новый svg-файл в соответсвующую коллекцию иконок в папке svgs (это может быть новый размер иконки). Далее все нужные файлы сгенерятся автоматически во время релиза пакета.
|
package/dist/Sprite.d.ts
ADDED
package/dist/Sprite.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useLayoutEffect, useState, memo } from 'react';
|
|
2
|
+
function SpriteInner({ content }) {
|
|
3
|
+
const [div] = useState(() => document.createElement('div'));
|
|
4
|
+
useLayoutEffect(() => {
|
|
5
|
+
div.style.display = 'none';
|
|
6
|
+
document.body.prepend(div);
|
|
7
|
+
return () => {
|
|
8
|
+
document.body.removeChild(div);
|
|
9
|
+
};
|
|
10
|
+
}, []);
|
|
11
|
+
useLayoutEffect(() => {
|
|
12
|
+
div.innerHTML = content;
|
|
13
|
+
}, [content]);
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
export const Sprite = memo(SpriteInner);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interface-icons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interface-icons';
|
|
@@ -14,7 +14,7 @@ const SvgAlarmFilledS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-alarm-filled-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgAlarmFilledS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgAlarmFilledS;
|
|
@@ -14,7 +14,7 @@ const SvgAlarmFilledXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-alarm-filled-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgAlarmFilledXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgAlarmFilledXs;
|
|
@@ -14,7 +14,7 @@ const SvgArrowDownS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-down-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowDownS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowDownS;
|
|
@@ -14,7 +14,7 @@ const SvgArrowDownXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-down-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowDownXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowDownXs;
|
|
@@ -14,7 +14,7 @@ const SvgArrowLeftS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-left-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowLeftS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowLeftS;
|
|
@@ -14,7 +14,7 @@ const SvgArrowLeftXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-left-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowLeftXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowLeftXs;
|
|
@@ -14,7 +14,7 @@ const SvgArrowLinksS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-links-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowLinksS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowLinksS;
|
|
@@ -14,7 +14,7 @@ const SvgArrowLinksXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-links-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowLinksXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowLinksXs;
|
|
@@ -14,7 +14,7 @@ const SvgArrowRightS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-right-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowRightS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowRightS;
|
|
@@ -14,7 +14,7 @@ const SvgArrowRightXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-right-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowRightXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowRightXs;
|
|
@@ -14,7 +14,7 @@ const SvgArrowUpS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-up-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowUpS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowUpS;
|
|
@@ -14,7 +14,7 @@ const SvgArrowUpXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-arrow-up-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgArrowUpXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgArrowUpXs;
|
|
@@ -14,7 +14,7 @@ const SvgCalendarS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-calendar-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgCalendarS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgCalendarS;
|
|
@@ -14,7 +14,7 @@ const SvgCalendarXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-calendar-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgCalendarXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgCalendarXs;
|
|
@@ -14,7 +14,7 @@ const SvgCheckS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-check-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgCheckS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgCheckS;
|
|
@@ -14,7 +14,7 @@ const SvgCheckXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-check-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgCheckXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgCheckXs;
|
|
@@ -14,7 +14,7 @@ const SvgCheckFilledS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-check-filled-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgCheckFilledS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgCheckFilledS;
|
|
@@ -14,7 +14,7 @@ const SvgCheckFilledXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-check-filled-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgCheckFilledXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgCheckFilledXs;
|
|
@@ -14,7 +14,7 @@ const SvgChevronDownS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-down-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronDownS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronDownS;
|
|
@@ -14,7 +14,7 @@ const SvgChevronDownXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-down-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronDownXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronDownXs;
|
|
@@ -14,7 +14,7 @@ const SvgChevronLeftS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-left-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronLeftS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronLeftS;
|
|
@@ -14,7 +14,7 @@ const SvgChevronLeftXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-left-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronLeftXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronLeftXs;
|
|
@@ -14,7 +14,7 @@ const SvgChevronRightS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-right-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronRightS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronRightS;
|
|
@@ -14,7 +14,7 @@ const SvgChevronRightXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-right-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronRightXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronRightXs;
|
|
@@ -14,7 +14,7 @@ const SvgChevronUpS = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-up-s';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronUpS = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": testId }, props, { children: _jsx("
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronUpS;
|
|
@@ -14,7 +14,7 @@ const SvgChevronUpXs = (_a) => {
|
|
|
14
14
|
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
15
|
props.width = undefined;
|
|
16
16
|
props.height = undefined;
|
|
17
|
-
const testId = '
|
|
17
|
+
const testId = '-chevron-up-xs';
|
|
18
18
|
const isCustomSize = typeof size === 'number';
|
|
19
19
|
if (isCustomSize) {
|
|
20
20
|
if (!props.style)
|
|
@@ -22,6 +22,6 @@ const SvgChevronUpXs = (_a) => {
|
|
|
22
22
|
props.style.width = size + 'px';
|
|
23
23
|
props.style.height = size + 'px';
|
|
24
24
|
}
|
|
25
|
-
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width:
|
|
25
|
+
return (_jsx("svg", Object.assign({ xmlns: 'http://www.w3.org/2000/svg', width: 24, height: 24, fill: 'currentColor', viewBox: '0 0 24 24', "data-test-id": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
26
|
};
|
|
27
27
|
export default SvgChevronUpXs;
|