@snack-uikit/icons 0.25.0 → 0.25.2-preview-bc9ca5dd.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/components/interface-icons/dragDrop/DragDropS.d.ts +9 -0
  3. package/dist/cjs/components/interface-icons/dragDrop/DragDropS.js +76 -0
  4. package/dist/cjs/components/interface-icons/dragDrop/DragDropXs.d.ts +9 -0
  5. package/dist/cjs/components/interface-icons/dragDrop/DragDropXs.js +76 -0
  6. package/dist/cjs/components/interface-icons/dragDrop/index.d.ts +8 -0
  7. package/dist/cjs/components/interface-icons/dragDrop/index.js +38 -0
  8. package/dist/cjs/components/interface-icons/index.d.ts +3 -1
  9. package/dist/cjs/components/interface-icons/index.js +19 -5
  10. package/dist/{esm/components/interface-icons/drag/DragXs.d.ts → cjs/components/interface-icons/pause/PauseS.d.ts} +2 -2
  11. package/dist/cjs/components/interface-icons/{drag/DragXs.js → pause/PauseS.js} +3 -3
  12. package/dist/cjs/components/interface-icons/pause/PauseXs.d.ts +9 -0
  13. package/dist/cjs/components/interface-icons/pause/PauseXs.js +76 -0
  14. package/dist/cjs/components/interface-icons/pause/index.d.ts +8 -0
  15. package/dist/cjs/components/interface-icons/pause/index.js +38 -0
  16. package/dist/cjs/components/interface-icons/{drag/DragS.d.ts → play/PlayS.d.ts} +2 -2
  17. package/dist/cjs/components/interface-icons/{drag/DragS.js → play/PlayS.js} +3 -3
  18. package/dist/cjs/components/interface-icons/{drag/DragXs.d.ts → play/PlayXs.d.ts} +2 -2
  19. package/dist/cjs/components/interface-icons/play/PlayXs.js +76 -0
  20. package/dist/cjs/components/interface-icons/{drag → play}/index.d.ts +2 -2
  21. package/dist/cjs/components/interface-icons/{drag → play}/index.js +6 -6
  22. package/dist/cjs/sprite/svg/sprite.symbol.svg +1 -1
  23. package/dist/esm/components/interface-icons/dragDrop/DragDropS.d.ts +9 -0
  24. package/dist/esm/components/interface-icons/dragDrop/DragDropS.js +29 -0
  25. package/dist/esm/components/interface-icons/dragDrop/DragDropXs.d.ts +9 -0
  26. package/dist/esm/components/interface-icons/dragDrop/DragDropXs.js +29 -0
  27. package/dist/esm/components/interface-icons/dragDrop/index.d.ts +8 -0
  28. package/dist/esm/components/interface-icons/dragDrop/index.js +22 -0
  29. package/dist/esm/components/interface-icons/index.d.ts +3 -1
  30. package/dist/esm/components/interface-icons/index.js +3 -1
  31. package/dist/esm/components/interface-icons/pause/PauseS.d.ts +9 -0
  32. package/dist/esm/components/interface-icons/{drag/DragXs.js → pause/PauseS.js} +3 -3
  33. package/dist/esm/components/interface-icons/pause/PauseXs.d.ts +9 -0
  34. package/dist/esm/components/interface-icons/pause/PauseXs.js +29 -0
  35. package/dist/esm/components/interface-icons/pause/index.d.ts +8 -0
  36. package/dist/esm/components/interface-icons/pause/index.js +22 -0
  37. package/dist/esm/components/interface-icons/{drag/DragS.d.ts → play/PlayS.d.ts} +2 -2
  38. package/dist/esm/components/interface-icons/{drag/DragS.js → play/PlayS.js} +3 -3
  39. package/dist/esm/components/interface-icons/play/PlayXs.d.ts +9 -0
  40. package/dist/esm/components/interface-icons/play/PlayXs.js +29 -0
  41. package/dist/esm/components/interface-icons/{drag → play}/index.d.ts +2 -2
  42. package/dist/esm/components/interface-icons/{drag → play}/index.js +4 -4
  43. package/dist/esm/sprite/svg/sprite.symbol.svg +1 -1
  44. package/package.json +2 -2
@@ -0,0 +1,29 @@
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
+ // DO NOT EDIT IT MANUALLY
14
+ import * as React from 'react';
15
+ const SvgDragDropXs = React.forwardRef((_a, ref) => {
16
+ var { size = 24 } = _a, props = __rest(_a, ["size"]);
17
+ props.width = undefined;
18
+ props.height = undefined;
19
+ const testId = '-drag-drop-xs';
20
+ const isCustomSize = typeof size === 'number';
21
+ if (isCustomSize) {
22
+ if (!props.style)
23
+ props.style = {};
24
+ props.style.width = size + 'px';
25
+ props.style.height = size + 'px';
26
+ }
27
+ return (_jsx("svg", Object.assign({ ref: ref, 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) }) })));
28
+ });
29
+ export default SvgDragDropXs;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
3
+ className?: string;
4
+ size?: number;
5
+ style?: React.CSSProperties;
6
+ }
7
+ declare const DragDropSVG: import("react").ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
8
+ export default DragDropSVG;
@@ -0,0 +1,22 @@
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 './DragDropS';
14
+ import { default as XsSVG } from './DragDropXs';
15
+ import { forwardRef } from 'react';
16
+ const DragDropSVG = forwardRef((_a, ref) => {
17
+ var { size = 24 } = _a, props = __rest(_a, ["size"]);
18
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
+ // @ts-ignore
20
+ return Number(size) >= 20 ? _jsx(SSVG, Object.assign({ ref: ref, size: size }, props)) : _jsx(XsSVG, Object.assign({ ref: ref, size: size }, props));
21
+ });
22
+ export default DragDropSVG;
@@ -16,7 +16,7 @@ export { default as CrossSVG } from './cross';
16
16
  export { default as CrossFilledSVG } from './crossFilled';
17
17
  export { default as DaySVG } from './day';
18
18
  export { default as DownloadSVG } from './download';
19
- export { default as DragSVG } from './drag';
19
+ export { default as DragDropSVG } from './dragDrop';
20
20
  export { default as EmailSVG } from './email';
21
21
  export { default as EyeSVG } from './eye';
22
22
  export { default as EyeClosedSVG } from './eyeClosed';
@@ -34,8 +34,10 @@ export { default as LaptopPhoneSVG } from './laptopPhone';
34
34
  export { default as MinusSVG } from './minus';
35
35
  export { default as MoreSVG } from './more';
36
36
  export { default as NightSVG } from './night';
37
+ export { default as PauseSVG } from './pause';
37
38
  export { default as PinnedSVG } from './pinned';
38
39
  export { default as PlaceholderSVG } from './placeholder';
40
+ export { default as PlaySVG } from './play';
39
41
  export { default as PlusSVG } from './plus';
40
42
  export { default as QuestionSVG } from './question';
41
43
  export { default as ResizeSVG } from './resize';
@@ -16,7 +16,7 @@ export { default as CrossSVG } from './cross';
16
16
  export { default as CrossFilledSVG } from './crossFilled';
17
17
  export { default as DaySVG } from './day';
18
18
  export { default as DownloadSVG } from './download';
19
- export { default as DragSVG } from './drag';
19
+ export { default as DragDropSVG } from './dragDrop';
20
20
  export { default as EmailSVG } from './email';
21
21
  export { default as EyeSVG } from './eye';
22
22
  export { default as EyeClosedSVG } from './eyeClosed';
@@ -34,8 +34,10 @@ export { default as LaptopPhoneSVG } from './laptopPhone';
34
34
  export { default as MinusSVG } from './minus';
35
35
  export { default as MoreSVG } from './more';
36
36
  export { default as NightSVG } from './night';
37
+ export { default as PauseSVG } from './pause';
37
38
  export { default as PinnedSVG } from './pinned';
38
39
  export { default as PlaceholderSVG } from './placeholder';
40
+ export { default as PlaySVG } from './play';
39
41
  export { default as PlusSVG } from './plus';
40
42
  export { default as QuestionSVG } from './question';
41
43
  export { default as ResizeSVG } from './resize';
@@ -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?: number;
6
+ style?: React.CSSProperties;
7
+ }
8
+ declare const SvgPauseS: React.ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
+ export default SvgPauseS;
@@ -12,11 +12,11 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  // DO NOT EDIT IT MANUALLY
14
14
  import * as React from 'react';
15
- const SvgDragXs = React.forwardRef((_a, ref) => {
15
+ const SvgPauseS = React.forwardRef((_a, ref) => {
16
16
  var { size = 24 } = _a, props = __rest(_a, ["size"]);
17
17
  props.width = undefined;
18
18
  props.height = undefined;
19
- const testId = '-drag-xs';
19
+ const testId = '-pause-s';
20
20
  const isCustomSize = typeof size === 'number';
21
21
  if (isCustomSize) {
22
22
  if (!props.style)
@@ -26,4 +26,4 @@ const SvgDragXs = React.forwardRef((_a, ref) => {
26
26
  }
27
27
  return (_jsx("svg", Object.assign({ ref: ref, 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) }) })));
28
28
  });
29
- export default SvgDragXs;
29
+ export default SvgPauseS;
@@ -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?: number;
6
+ style?: React.CSSProperties;
7
+ }
8
+ declare const SvgPauseXs: React.ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
+ export default SvgPauseXs;
@@ -0,0 +1,29 @@
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
+ // DO NOT EDIT IT MANUALLY
14
+ import * as React from 'react';
15
+ const SvgPauseXs = React.forwardRef((_a, ref) => {
16
+ var { size = 24 } = _a, props = __rest(_a, ["size"]);
17
+ props.width = undefined;
18
+ props.height = undefined;
19
+ const testId = '-pause-xs';
20
+ const isCustomSize = typeof size === 'number';
21
+ if (isCustomSize) {
22
+ if (!props.style)
23
+ props.style = {};
24
+ props.style.width = size + 'px';
25
+ props.style.height = size + 'px';
26
+ }
27
+ return (_jsx("svg", Object.assign({ ref: ref, 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) }) })));
28
+ });
29
+ export default SvgPauseXs;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
3
+ className?: string;
4
+ size?: number;
5
+ style?: React.CSSProperties;
6
+ }
7
+ declare const PauseSVG: import("react").ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
8
+ export default PauseSVG;
@@ -0,0 +1,22 @@
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 './PauseS';
14
+ import { default as XsSVG } from './PauseXs';
15
+ import { forwardRef } from 'react';
16
+ const PauseSVG = forwardRef((_a, ref) => {
17
+ var { size = 24 } = _a, props = __rest(_a, ["size"]);
18
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
+ // @ts-ignore
20
+ return Number(size) >= 20 ? _jsx(SSVG, Object.assign({ ref: ref, size: size }, props)) : _jsx(XsSVG, Object.assign({ ref: ref, size: size }, props));
21
+ });
22
+ export default PauseSVG;
@@ -5,5 +5,5 @@ export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
5
5
  size?: number;
6
6
  style?: React.CSSProperties;
7
7
  }
8
- declare const SvgDragS: React.ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
- export default SvgDragS;
8
+ declare const SvgPlayS: React.ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
+ export default SvgPlayS;
@@ -12,11 +12,11 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  // DO NOT EDIT IT MANUALLY
14
14
  import * as React from 'react';
15
- const SvgDragS = React.forwardRef((_a, ref) => {
15
+ const SvgPlayS = React.forwardRef((_a, ref) => {
16
16
  var { size = 24 } = _a, props = __rest(_a, ["size"]);
17
17
  props.width = undefined;
18
18
  props.height = undefined;
19
- const testId = '-drag-s';
19
+ const testId = '-play-s';
20
20
  const isCustomSize = typeof size === 'number';
21
21
  if (isCustomSize) {
22
22
  if (!props.style)
@@ -26,4 +26,4 @@ const SvgDragS = React.forwardRef((_a, ref) => {
26
26
  }
27
27
  return (_jsx("svg", Object.assign({ ref: ref, 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) }) })));
28
28
  });
29
- export default SvgDragS;
29
+ export default SvgPlayS;
@@ -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?: number;
6
+ style?: React.CSSProperties;
7
+ }
8
+ declare const SvgPlayXs: React.ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
+ export default SvgPlayXs;
@@ -0,0 +1,29 @@
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
+ // DO NOT EDIT IT MANUALLY
14
+ import * as React from 'react';
15
+ const SvgPlayXs = React.forwardRef((_a, ref) => {
16
+ var { size = 24 } = _a, props = __rest(_a, ["size"]);
17
+ props.width = undefined;
18
+ props.height = undefined;
19
+ const testId = '-play-xs';
20
+ const isCustomSize = typeof size === 'number';
21
+ if (isCustomSize) {
22
+ if (!props.style)
23
+ props.style = {};
24
+ props.style.width = size + 'px';
25
+ props.style.height = size + 'px';
26
+ }
27
+ return (_jsx("svg", Object.assign({ ref: ref, 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) }) })));
28
+ });
29
+ export default SvgPlayXs;
@@ -4,5 +4,5 @@ export interface ISvgIconProps extends SVGProps<SVGSVGElement> {
4
4
  size?: number;
5
5
  style?: React.CSSProperties;
6
6
  }
7
- declare const DragSVG: import("react").ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
8
- export default DragSVG;
7
+ declare const PlaySVG: import("react").ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
8
+ export default PlaySVG;
@@ -10,13 +10,13 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { default as SSVG } from './DragS';
14
- import { default as XsSVG } from './DragXs';
13
+ import { default as SSVG } from './PlayS';
14
+ import { default as XsSVG } from './PlayXs';
15
15
  import { forwardRef } from 'react';
16
- const DragSVG = forwardRef((_a, ref) => {
16
+ const PlaySVG = forwardRef((_a, ref) => {
17
17
  var { size = 24 } = _a, props = __rest(_a, ["size"]);
18
18
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
19
19
  // @ts-ignore
20
20
  return Number(size) >= 20 ? _jsx(SSVG, Object.assign({ ref: ref, size: size }, props)) : _jsx(XsSVG, Object.assign({ ref: ref, size: size }, props));
21
21
  });
22
- export default DragSVG;
22
+ export default PlaySVG;