@pushwoosh/kit-icons 2.0.23 → 2.0.25

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.
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export declare const AssetMap: {
3
+ medium: {
4
+ filled: null;
5
+ lined: null;
6
+ };
7
+ small: {
8
+ filled: null;
9
+ lined: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement>>;
10
+ };
11
+ };
@@ -0,0 +1,14 @@
1
+ /* eslint quote-props: off */
2
+ /* eslint @typescript-eslint/comma-dangle: off */
3
+
4
+ import HostSmallLinedIcon from "./name_host_size_small_view_lined.js";
5
+ export const AssetMap = {
6
+ 'medium': {
7
+ 'filled': null,
8
+ 'lined': null
9
+ },
10
+ 'small': {
11
+ 'filled': null,
12
+ 'lined': HostSmallLinedIcon
13
+ }
14
+ };
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ const NameHostSizeSmallViewLinedSvg = props => /*#__PURE__*/React.createElement("svg", Object.assign({
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: 16,
5
+ height: 16,
6
+ fill: "none"
7
+ }, props), /*#__PURE__*/React.createElement("path", {
8
+ fill: "currentColor",
9
+ fillRule: "evenodd",
10
+ d: "M4.371 1.25h7.258c.395 0 .736 0 1.017.023.297.024.592.078.875.222.424.216.768.56.984.984.144.283.198.578.222.875.023.28.023.622.023 1.017v.258c0 .395 0 .736-.023 1.017-.024.297-.078.592-.222.875a2.25 2.25 0 0 1-.984.984c-.283.144-.578.198-.875.222a13 13 0 0 1-1.017.023H4.37c-.395 0-.736 0-1.017-.023-.297-.024-.592-.078-.875-.222a2.25 2.25 0 0 1-.984-.984c-.144-.283-.198-.578-.222-.875-.023-.28-.023-.622-.023-1.017V4.37c0-.395 0-.736.023-1.017.024-.297.078-.592.222-.875a2.25 2.25 0 0 1 .984-.984c.283-.144.578-.198.875-.222.28-.023.622-.023 1.017-.023m-.895 1.518c-.204.017-.28.045-.316.064a.75.75 0 0 0-.328.328c-.02.037-.047.112-.064.316-.017.212-.018.492-.018.924v.2c0 .432 0 .712.018.924.017.204.045.28.064.316a.75.75 0 0 0 .328.328c.037.02.112.047.316.064.212.017.492.018.924.018h7.2c.432 0 .712 0 .924-.018.204-.017.28-.045.317-.064a.75.75 0 0 0 .327-.328c.02-.037.047-.112.064-.316.017-.212.018-.492.018-.924v-.2c0-.432 0-.712-.018-.924-.017-.204-.045-.28-.064-.316a.75.75 0 0 0-.327-.328c-.038-.02-.113-.047-.317-.064a13 13 0 0 0-.924-.018H4.4c-.432 0-.712 0-.924.018M4.4 8.25h-.029c-.395 0-.736 0-1.017.023-.297.024-.592.078-.875.222a2.25 2.25 0 0 0-.984.984c-.144.283-.198.578-.222.875-.023.28-.023.622-.023 1.017v.258c0 .395 0 .736.023 1.017.024.297.078.592.222.875.216.424.56.768.984.984.283.144.578.198.875.222.28.023.622.023 1.017.023h7.258c.395 0 .736 0 1.017-.023.297-.024.592-.078.875-.222a2.25 2.25 0 0 0 .984-.984c.144-.283.198-.578.222-.875.023-.28.023-.622.023-1.017v-.258c0-.395 0-.736-.023-1.017-.024-.297-.078-.592-.222-.875a2.25 2.25 0 0 0-.984-.984c-.283-.144-.578-.198-.875-.222-.28-.023-.622-.023-1.017-.023H4.4M3.16 9.832c.037-.02.112-.047.316-.064.212-.017.492-.018.924-.018h7.2c.432 0 .712 0 .924.018.204.017.28.045.317.064a.75.75 0 0 1 .327.327c.02.038.047.113.064.317.017.212.018.492.018.924v.2c0 .432 0 .712-.018.924-.017.204-.045.28-.064.317a.75.75 0 0 1-.327.327c-.038.02-.113.047-.317.064-.212.017-.492.018-.924.018H4.4c-.432 0-.712 0-.924-.018-.204-.017-.28-.045-.316-.064a.75.75 0 0 1-.328-.327c-.02-.038-.047-.113-.064-.317a13 13 0 0 1-.018-.924v-.2c0-.432 0-.712.018-.924.017-.204.045-.28.064-.317a.75.75 0 0 1 .328-.327M4.5 12.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2",
11
+ clipRule: "evenodd"
12
+ }));
13
+ export default NameHostSizeSmallViewLinedSvg;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { HostIconProps } from './host-icon.types';
3
+ export declare function HostIcon(props: HostIconProps): JSX.Element | null;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { IconBox } from '../icon.styles';
3
+ import { AssetMap } from './assets';
4
+ export function HostIcon(props) {
5
+ const {
6
+ boxRef,
7
+ size,
8
+ view,
9
+ ...rest
10
+ } = props;
11
+ const Icon = AssetMap[size][view];
12
+ if (Icon == null) {
13
+ console.error('[HostIcon]: Icon not found!');
14
+ return React.createElement(IconBox, {
15
+ ...rest,
16
+ size: size,
17
+ ref: boxRef
18
+ });
19
+ }
20
+ return React.createElement(IconBox, {
21
+ ...rest,
22
+ size: size,
23
+ ref: boxRef
24
+ }, React.createElement(Icon, null));
25
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type HostIconProps = Omit<JSX.IntrinsicElements['div'], 'ref'> & {
3
+ readonly boxRef?: React.Ref<HTMLDivElement>;
4
+ readonly size: 'medium' | 'small';
5
+ readonly view: 'filled' | 'lined';
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './host-icon.component';
2
+ export * from './host-icon.types';
@@ -0,0 +1,2 @@
1
+ export * from './host-icon.component';
2
+ export * from './host-icon.types';
package/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export * from './funnel-icon';
44
44
  export * from './help-round-icon';
45
45
  export * from './history-icon';
46
46
  export * from './home-icon';
47
+ export * from './host-icon';
47
48
  export * from './image-icon';
48
49
  export * from './industry-icon';
49
50
  export * from './infinity-icon';
package/index.js CHANGED
@@ -44,6 +44,7 @@ export * from './funnel-icon';
44
44
  export * from './help-round-icon';
45
45
  export * from './history-icon';
46
46
  export * from './home-icon';
47
+ export * from './host-icon';
47
48
  export * from './image-icon';
48
49
  export * from './industry-icon';
49
50
  export * from './infinity-icon';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-icons",
3
- "version": "2.0.23",
3
+ "version": "2.0.25",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -7,7 +7,7 @@ const NameWhatsappSizeMediumViewFilledSvg = props => /*#__PURE__*/React.createEl
7
7
  }, props), /*#__PURE__*/React.createElement("path", {
8
8
  fill: "currentColor",
9
9
  fillRule: "evenodd",
10
- d: "M3.25 10.25c0-2.828 0-4.243.879-5.121.878-.879 2.293-.879 5.121-.879h5.5c2.828 0 4.243 0 5.121.879.879.878.879 2.293.879 5.121v1.5c0 2.828 0 4.243-.879 5.121-.878.879-2.293.879-5.121.879h-3.828l-3.1 2.157c-.69.48-1.035.72-1.304.58-.268-.141-.268-.561-.268-1.4v-1.413c-.975-.096-1.631-.313-2.121-.803-.879-.878-.879-2.293-.879-5.121zm3.648-1.864a1.1 1.1 0 0 0-1.1 1.1v1.2a1.1 1.1 0 0 0 1.1 1.1h.9v1.001h-2v1.2h2.1a1.1 1.1 0 0 0 1.1-1.1v-1.2a1.1 1.1 0 0 0-1.1-1.1h-.9v-1h2v-1.2h-2.1m8.112 1.1a1.1 1.1 0 0 1 1.1-1.1h2.1v1.2h-2v1h.9a1.1 1.1 0 0 1 1.1 1.1v1.201a1.1 1.1 0 0 1-1.1 1.1h-2.1v-1.2h2v-1h-.9a1.1 1.1 0 0 1-1.1-1.1zm-3.807 3.901v-2.31l.271.508.53.99.529-.99.271-.508v2.91h1.2V8.88c0-.676-.904-.903-1.223-.306l-.777 1.455-.778-1.455c-.319-.597-1.223-.37-1.223.306v5.107h1.2z",
10
+ d: "M6.708 4.719A9 9 0 1 1 8.19 20.143l-5.115 1.734a.75.75 0 0 1-.951-.951l1.734-5.115a9 9 0 0 1 2.85-11.092m9.921 10.949v-1.39a.927.927 0 0 0-.796-.94 6 6 0 0 1-1.301-.324.93.93 0 0 0-.977.209l-.589.588a7.4 7.4 0 0 1-2.778-2.779l.588-.588a.93.93 0 0 0 .208-.977 6 6 0 0 1-.324-1.301.926.926 0 0 0-.926-.797h-1.39a.926.926 0 0 0-.92 1.01 9.16 9.16 0 0 0 1.421 4.015 9 9 0 0 0 2.778 2.778 9.2 9.2 0 0 0 3.997 1.422.927.927 0 0 0 1.01-.926",
11
11
  clipRule: "evenodd"
12
12
  }));
13
13
  export default NameWhatsappSizeMediumViewFilledSvg;
@@ -7,7 +7,7 @@ const NameWhatsappSizeMediumViewLinedSvg = props => /*#__PURE__*/React.createEle
7
7
  }, props), /*#__PURE__*/React.createElement("path", {
8
8
  fill: "currentColor",
9
9
  fillRule: "evenodd",
10
- d: "M4.97 5.97c.057-.057.159-.128.484-.172.347-.046.818-.048 1.546-.048h10c.728 0 1.2.002 1.546.048.325.044.427.115.484.172s.128.159.172.484c.046.347.048.818.048 1.546v6c0 .728-.002 1.2-.048 1.546-.044.325-.115.427-.172.484s-.159.128-.484.172c-.347.046-.818.048-1.546.048h-6a.75.75 0 0 0-.45.15l-2.8 2.1V17a.75.75 0 0 0-.75-.75c-.728 0-1.2-.002-1.546-.048-.325-.044-.427-.115-.484-.172s-.128-.159-.172-.484c-.046-.347-.048-.818-.048-1.546V8c0-.728.002-1.2.048-1.546.044-.325.115-.427.172-.484M7 4.25h-.05c-.664 0-1.237 0-1.696.062-.491.066-.963.215-1.345.597s-.531.854-.597 1.345c-.062.459-.062 1.032-.062 1.697v6.099c0 .664 0 1.237.062 1.696.066.492.215.963.597 1.345s.854.531 1.345.597c.289.04.623.054.996.059V20a.75.75 0 0 0 1.2.6l3.8-2.85h5.8c.664 0 1.237 0 1.696-.062.492-.066.963-.215 1.345-.597s.531-.854.597-1.345c.062-.459.062-1.032.062-1.697V7.95c0-.664 0-1.237-.062-1.696-.066-.491-.215-.963-.597-1.345s-.854-.531-1.345-.597c-.459-.062-1.032-.062-1.697-.062H7m-.102 4.13a1.1 1.1 0 0 0-1.1 1.1v1.2a1.1 1.1 0 0 0 1.1 1.1h.9v1.001h-2v1.2h2.1a1.1 1.1 0 0 0 1.1-1.1v-1.2a1.1 1.1 0 0 0-1.1-1.1h-.9v-1h2v-1.2h-2.1m8.1 1.1a1.1 1.1 0 0 1 1.1-1.1h2.1v1.2h-2v1h.9a1.1 1.1 0 0 1 1.1 1.1v1.201a1.1 1.1 0 0 1-1.1 1.1h-2.1v-1.2h2v-1h-.9a1.1 1.1 0 0 1-1.1-1.1zm-3.8 3.9v-2.306l.271.508.53.988.528-.988.272-.508v2.906H14v-5.1c0-.676-.904-.903-1.223-.307l-.778 1.454-.777-1.454c-.32-.596-1.223-.37-1.223.307v5.1h1.2z",
10
+ d: "M12.708 3.02a9 9 0 0 0-8.85 12.79l-1.734 5.116a.75.75 0 0 0 .951.951l5.115-1.734A9 9 0 1 0 12.708 3.02M7.591 5.931a7.5 7.5 0 1 1 .994 12.735.75.75 0 0 0-.583-.043l-3.97 1.346 1.346-3.97a.75.75 0 0 0-.043-.583A7.5 7.5 0 0 1 7.59 5.931m8.63 9.41v-1.266a.845.845 0 0 0-.725-.856 5.4 5.4 0 0 1-1.186-.296.84.84 0 0 0-.89.19l-.537.536a6.75 6.75 0 0 1-2.532-2.532l.535-.537a.84.84 0 0 0 .19-.89 5.4 5.4 0 0 1-.295-1.186.844.844 0 0 0-.844-.726H8.67a.844.844 0 0 0-.84.92 8.35 8.35 0 0 0 1.295 3.66 8.2 8.2 0 0 0 2.533 2.532 8.35 8.35 0 0 0 3.643 1.296.847.847 0 0 0 .92-.844",
11
11
  clipRule: "evenodd"
12
12
  }));
13
13
  export default NameWhatsappSizeMediumViewLinedSvg;
@@ -7,7 +7,7 @@ const NameWhatsappSizeSmallViewFilledSvg = props => /*#__PURE__*/React.createEle
7
7
  }, props), /*#__PURE__*/React.createElement("path", {
8
8
  fill: "currentColor",
9
9
  fillRule: "evenodd",
10
- d: "M1 6c0-1.886 0-2.828.586-3.414S3.114 2 5 2h6c1.886 0 2.828 0 3.414.586S15 4.114 15 6v3c0 1.886 0 2.828-.586 3.414S12.886 13 11 13H8l-3.235 2.022A.5.5 0 0 1 4 14.598V13h1c-1.886 0-2.828 0-3.414-.586S1 10.886 1 9zm3.528-1.001a1 1 0 0 0-1 1V7a1 1 0 0 0 1 1h.394v1H3.528v1h1.394a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-.394V5.999h1.394v-1H4.528m5.55.998a1 1 0 0 1 1-1h1.394v1h-1.394v1h.394a1 1 0 0 1 1 1V9a1 1 0 0 1-1 1h-1.394v-1h1.394V7.998h-.394a1 1 0 0 1-1-1zM7.498 9.5V6.716l.11.143.395.51.396-.51.11-.143V10h1V5.401a.55.55 0 0 0-.984-.337l-.522.672-.52-.672a.55.55 0 0 0-.985.337v4.6h1z",
10
+ d: "M3.899 2.357a6.975 6.975 0 1 1 1.216 11.985l-3.79 1.285a.75.75 0 0 1-.951-.951l1.285-3.79a6.975 6.975 0 0 1 2.24-8.529m7.564 8.387v-1.04a.693.693 0 0 0-.596-.703 4.5 4.5 0 0 1-.973-.242.69.69 0 0 0-.731.156l-.44.44a5.54 5.54 0 0 1-2.078-2.079l.44-.44a.69.69 0 0 0 .155-.73 4.5 4.5 0 0 1-.242-.974.69.69 0 0 0-.693-.596h-1.04a.693.693 0 0 0-.688.755c.113 1.07.478 2.1 1.063 3.004a6.76 6.76 0 0 0 2.078 2.078c.9.583 1.924.948 2.99 1.064a.694.694 0 0 0 .755-.693",
11
11
  clipRule: "evenodd"
12
12
  }));
13
13
  export default NameWhatsappSizeSmallViewFilledSvg;
@@ -7,7 +7,7 @@ const NameWhatsappSizeSmallViewLinedSvg = props => /*#__PURE__*/React.createElem
7
7
  }, props), /*#__PURE__*/React.createElement("path", {
8
8
  fill: "currentColor",
9
9
  fillRule: "evenodd",
10
- d: "M2.97 3.97c.057-.057.159-.128.484-.172.347-.046.818-.048 1.546-.048h6c.728 0 1.2.002 1.546.048.325.044.427.115.484.172s.128.159.172.484c.046.347.048.818.048 1.546v3c0 .728-.002 1.2-.048 1.546-.044.325-.115.427-.172.484s-.159.128-.484.172c-.347.046-.818.048-1.546.048H7.773l-.189.126-1.834 1.223V11.25H5c-.728 0-1.2-.002-1.546-.048-.325-.044-.427-.115-.484-.172s-.128-.159-.172-.484C2.752 10.199 2.75 9.728 2.75 9V6c0-.728.002-1.2.048-1.546.044-.325.115-.427.172-.484M5 2.25h-.05c-.664 0-1.237 0-1.696.062-.491.066-.963.215-1.345.597s-.531.854-.597 1.345c-.062.459-.062 1.032-.062 1.697V9.05c0 .664 0 1.237.062 1.696.066.492.215.963.597 1.345s.854.531 1.345.597c.289.04.623.054.996.059v1.066a.85.85 0 0 0 1.321.707l-.416-.624.417.624 2.655-1.77h2.823c.664 0 1.237 0 1.696-.062.492-.066.963-.215 1.345-.597s.531-.853.597-1.345c.062-.459.062-1.032.062-1.697V5.95c0-.664 0-1.237-.062-1.696-.066-.491-.215-.963-.597-1.345s-.853-.531-1.345-.597c-.459-.062-1.032-.062-1.697-.062H5m-.472 2.749a1 1 0 0 0-1 1V7a1 1 0 0 0 1 1h.394v1H3.528v1h1.394a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-.394V5.999h1.394v-1H4.528m5.55.998a1 1 0 0 1 1-1h1.394v1h-1.394v1h.394a1 1 0 0 1 1 1V9a1 1 0 0 1-1 1h-1.394v-1h1.394V7.998h-.394a1 1 0 0 1-1-1zM7.498 9.5V6.716l.11.143.396.51.395-.51.11-.143V10h1V5.401a.55.55 0 0 0-.984-.337l-.521.672-.522-.672a.55.55 0 0 0-.984.337v4.6h1z",
10
+ d: "M8.549 1.04a6.975 6.975 0 0 0-6.89 9.846l-1.285 3.79a.75.75 0 0 0 .95.951l3.791-1.285A6.975 6.975 0 1 0 8.549 1.041M4.782 3.57a5.475 5.475 0 1 1 .725 9.296.75.75 0 0 0-.583-.043l-2.642.896.896-2.642a.75.75 0 0 0-.043-.584A5.475 5.475 0 0 1 4.782 3.57m6.465 7v-.973a.65.65 0 0 0-.558-.66 4.2 4.2 0 0 1-.913-.227.65.65 0 0 0-.685.146l-.412.413A5.2 5.2 0 0 1 6.73 7.32l.412-.413a.65.65 0 0 0 .146-.685 4.2 4.2 0 0 1-.227-.912.65.65 0 0 0-.65-.558H5.44a.65.65 0 0 0-.646.707 6.4 6.4 0 0 0 .996 2.815 6.3 6.3 0 0 0 1.948 1.948 6.4 6.4 0 0 0 2.802.997.65.65 0 0 0 .708-.65",
11
11
  clipRule: "evenodd"
12
12
  }));
13
13
  export default NameWhatsappSizeSmallViewLinedSvg;