@snack-uikit/icons 0.19.2 → 0.20.1-preview-3f90b7f1.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 +44 -0
- package/dist/Sprite.d.ts +6 -0
- package/dist/Sprite.js +18 -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.d.ts +9 -0
- package/dist/components/interface-icons/arrowLeft/ArrowLeftS.js +27 -0
- package/dist/components/interface-icons/arrowLeft/ArrowLeftXs.d.ts +9 -0
- package/dist/components/interface-icons/arrowLeft/ArrowLeftXs.js +27 -0
- package/dist/components/interface-icons/arrowLeft/index.d.ts +8 -0
- package/dist/components/interface-icons/arrowLeft/index.js +19 -0
- 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.d.ts +9 -0
- package/dist/components/interface-icons/arrowRight/ArrowRightS.js +27 -0
- package/dist/components/interface-icons/arrowRight/ArrowRightXs.d.ts +9 -0
- package/dist/components/interface-icons/arrowRight/ArrowRightXs.js +27 -0
- package/dist/components/interface-icons/arrowRight/index.d.ts +8 -0
- package/dist/components/interface-icons/arrowRight/index.js +19 -0
- 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/index.d.ts +2 -0
- package/dist/components/interface-icons/index.js +2 -0
- 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/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/sprite/svg/sprite.symbol.svg +1 -0
- package/package.json +15 -7
- package/src/Sprite.tsx +24 -0
- package/src/constants.ts +1 -0
- package/src/index.ts +4 -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.0 (2024-01-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **FF-4133:** add arrowLeft and arrowRight icons ([86d9c14](https://github.com/cloud-ru-tech/snack-uikit/commit/86d9c1488685409f3bda2df63793c201b38acbb4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.19.2 (2023-12-18)
|
|
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: SVG_SPRITE_WEBPACK_REG_EXP, // /\.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,18 @@
|
|
|
1
|
+
import { useLayoutEffect, useState, memo } from 'react';
|
|
2
|
+
// via external object - <object data={Sprite} aria-label={'sprite'}/>
|
|
3
|
+
// but need to provide a link inside icons
|
|
4
|
+
function SpriteInner({ content }) {
|
|
5
|
+
const [div] = useState(() => document.createElement('div'));
|
|
6
|
+
useLayoutEffect(() => {
|
|
7
|
+
div.style.display = 'none';
|
|
8
|
+
document.body.prepend(div);
|
|
9
|
+
return () => {
|
|
10
|
+
document.body.removeChild(div);
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
useLayoutEffect(() => {
|
|
14
|
+
div.innerHTML = content;
|
|
15
|
+
}, [content]);
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: string | number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const SvgArrowLeftS: ({ size, ...props }: ISvgIconProps) => React.ReactElement | null;
|
|
9
|
+
export default SvgArrowLeftS;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const SvgArrowLeftS = (_a) => {
|
|
14
|
+
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
|
+
props.width = undefined;
|
|
16
|
+
props.height = undefined;
|
|
17
|
+
const testId = '-arrow-left-s';
|
|
18
|
+
const isCustomSize = typeof size === 'number';
|
|
19
|
+
if (isCustomSize) {
|
|
20
|
+
if (!props.style)
|
|
21
|
+
props.style = {};
|
|
22
|
+
props.style.width = size + 'px';
|
|
23
|
+
props.style.height = size + 'px';
|
|
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": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
|
+
};
|
|
27
|
+
export default SvgArrowLeftS;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: string | number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const SvgArrowLeftXs: ({ size, ...props }: ISvgIconProps) => React.ReactElement | null;
|
|
9
|
+
export default SvgArrowLeftXs;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const SvgArrowLeftXs = (_a) => {
|
|
14
|
+
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
|
+
props.width = undefined;
|
|
16
|
+
props.height = undefined;
|
|
17
|
+
const testId = '-arrow-left-xs';
|
|
18
|
+
const isCustomSize = typeof size === 'number';
|
|
19
|
+
if (isCustomSize) {
|
|
20
|
+
if (!props.style)
|
|
21
|
+
props.style = {};
|
|
22
|
+
props.style.width = size + 'px';
|
|
23
|
+
props.style.height = size + 'px';
|
|
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": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
|
+
};
|
|
27
|
+
export default SvgArrowLeftXs;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
declare const ArrowLeftSVG: ({ size, ...props }: ISvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ArrowLeftSVG;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { default as SSVG } from './ArrowLeftS';
|
|
14
|
+
import { default as XsSVG } from './ArrowLeftXs';
|
|
15
|
+
const ArrowLeftSVG = (_a) => {
|
|
16
|
+
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
17
|
+
return Number(size) >= 20 ? _jsx(SSVG, Object.assign({ size: size }, props)) : _jsx(XsSVG, Object.assign({ size: size }, props));
|
|
18
|
+
};
|
|
19
|
+
export default ArrowLeftSVG;
|
|
@@ -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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: string | number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const SvgArrowRightS: ({ size, ...props }: ISvgIconProps) => React.ReactElement | null;
|
|
9
|
+
export default SvgArrowRightS;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const SvgArrowRightS = (_a) => {
|
|
14
|
+
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
|
+
props.width = undefined;
|
|
16
|
+
props.height = undefined;
|
|
17
|
+
const testId = '-arrow-right-s';
|
|
18
|
+
const isCustomSize = typeof size === 'number';
|
|
19
|
+
if (isCustomSize) {
|
|
20
|
+
if (!props.style)
|
|
21
|
+
props.style = {};
|
|
22
|
+
props.style.width = size + 'px';
|
|
23
|
+
props.style.height = size + 'px';
|
|
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": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
|
+
};
|
|
27
|
+
export default SvgArrowRightS;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: string | number;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const SvgArrowRightXs: ({ size, ...props }: ISvgIconProps) => React.ReactElement | null;
|
|
9
|
+
export default SvgArrowRightXs;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const SvgArrowRightXs = (_a) => {
|
|
14
|
+
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
15
|
+
props.width = undefined;
|
|
16
|
+
props.height = undefined;
|
|
17
|
+
const testId = '-arrow-right-xs';
|
|
18
|
+
const isCustomSize = typeof size === 'number';
|
|
19
|
+
if (isCustomSize) {
|
|
20
|
+
if (!props.style)
|
|
21
|
+
props.style = {};
|
|
22
|
+
props.style.width = size + 'px';
|
|
23
|
+
props.style.height = size + 'px';
|
|
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": 'icon' + testId }, props, { children: _jsx("use", { href: '#snack-uikit-' + testId.substring(1) }) })));
|
|
26
|
+
};
|
|
27
|
+
export default SvgArrowRightXs;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
declare const ArrowRightSVG: ({ size, ...props }: ISvgIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ArrowRightSVG;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { default as SSVG } from './ArrowRightS';
|
|
14
|
+
import { default as XsSVG } from './ArrowRightXs';
|
|
15
|
+
const ArrowRightSVG = (_a) => {
|
|
16
|
+
var { size = 24 } = _a, props = __rest(_a, ["size"]);
|
|
17
|
+
return Number(size) >= 20 ? _jsx(SSVG, Object.assign({ size: size }, props)) : _jsx(XsSVG, Object.assign({ size: size }, props));
|
|
18
|
+
};
|
|
19
|
+
export default ArrowRightSVG;
|
|
@@ -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;
|