@snack-uikit/icons 0.25.1 → 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 (31) hide show
  1. package/dist/cjs/components/interface-icons/index.d.ts +2 -0
  2. package/dist/cjs/components/interface-icons/index.js +16 -2
  3. package/dist/cjs/components/interface-icons/pause/PauseS.d.ts +9 -0
  4. package/dist/cjs/components/interface-icons/pause/PauseS.js +76 -0
  5. package/dist/cjs/components/interface-icons/pause/PauseXs.d.ts +9 -0
  6. package/dist/cjs/components/interface-icons/pause/PauseXs.js +76 -0
  7. package/dist/cjs/components/interface-icons/pause/index.d.ts +8 -0
  8. package/dist/cjs/components/interface-icons/pause/index.js +38 -0
  9. package/dist/cjs/components/interface-icons/play/PlayS.d.ts +9 -0
  10. package/dist/cjs/components/interface-icons/play/PlayS.js +76 -0
  11. package/dist/cjs/components/interface-icons/play/PlayXs.d.ts +9 -0
  12. package/dist/cjs/components/interface-icons/play/PlayXs.js +76 -0
  13. package/dist/cjs/components/interface-icons/play/index.d.ts +8 -0
  14. package/dist/cjs/components/interface-icons/play/index.js +38 -0
  15. package/dist/cjs/sprite/svg/sprite.symbol.svg +1 -1
  16. package/dist/esm/components/interface-icons/index.d.ts +2 -0
  17. package/dist/esm/components/interface-icons/index.js +2 -0
  18. package/dist/esm/components/interface-icons/pause/PauseS.d.ts +9 -0
  19. package/dist/esm/components/interface-icons/pause/PauseS.js +29 -0
  20. package/dist/esm/components/interface-icons/pause/PauseXs.d.ts +9 -0
  21. package/dist/esm/components/interface-icons/pause/PauseXs.js +29 -0
  22. package/dist/esm/components/interface-icons/pause/index.d.ts +8 -0
  23. package/dist/esm/components/interface-icons/pause/index.js +22 -0
  24. package/dist/esm/components/interface-icons/play/PlayS.d.ts +9 -0
  25. package/dist/esm/components/interface-icons/play/PlayS.js +29 -0
  26. package/dist/esm/components/interface-icons/play/PlayXs.d.ts +9 -0
  27. package/dist/esm/components/interface-icons/play/PlayXs.js +29 -0
  28. package/dist/esm/components/interface-icons/play/index.d.ts +8 -0
  29. package/dist/esm/components/interface-icons/play/index.js +22 -0
  30. package/dist/esm/sprite/svg/sprite.symbol.svg +1 -1
  31. 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 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;
@@ -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 SvgPlayS: React.ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
9
+ export default SvgPlayS;
@@ -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 SvgPlayS = 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-s';
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 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;
@@ -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 PlaySVG: import("react").ForwardRefExoticComponent<Omit<ISvgIconProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
8
+ export default PlaySVG;
@@ -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 './PlayS';
14
+ import { default as XsSVG } from './PlayXs';
15
+ import { forwardRef } from 'react';
16
+ const PlaySVG = 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 PlaySVG;