Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@responsive-ui/icon

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@responsive-ui/icon - npm Package Compare versions

Comparing version 1.0.4-alpha to 1.0.7-alpha.0

22

lib/cjs/index.js

@@ -22,3 +22,2 @@ 'use strict';

}
function append(target, node) {

@@ -66,3 +65,4 @@ target.appendChild(node);

if (callbacks) {
callbacks.slice().forEach(fn => fn(event));
// @ts-ignore
callbacks.slice().forEach(fn => fn.call(this, event));
}

@@ -180,3 +180,3 @@ }

}
function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
const parent_component = current_component;

@@ -198,8 +198,10 @@ set_current_component(component);

after_update: [],
context: new Map(parent_component ? parent_component.$$.context : options.context || []),
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
// everything else
callbacks: blank_object(),
dirty,
skip_bound: false
skip_bound: false,
root: options.target || parent_component.$$.root
};
append_styles && append_styles($$.root);
let ready = false;

@@ -267,3 +269,3 @@ $$.ctx = instance

/* components/icon/src/Icon.svelte generated by Svelte v3.38.2 */
/* components/icon/src/Icon.svelte generated by Svelte v3.44.0 */

@@ -627,9 +629,9 @@ function create_if_block_5(ctx) {

function click_handler(event) {
bubble($$self, event);
bubble.call(this, $$self, event);
}
$$self.$$set = $$props => {
if ("stroke" in $$props) $$invalidate(0, stroke = $$props.stroke);
if ("type" in $$props) $$invalidate(1, type = $$props.type);
if ("style" in $$props) $$invalidate(2, style = $$props.style);
if ('stroke' in $$props) $$invalidate(0, stroke = $$props.stroke);
if ('type' in $$props) $$invalidate(1, type = $$props.type);
if ('style' in $$props) $$invalidate(2, style = $$props.style);
};

@@ -636,0 +638,0 @@

@@ -20,3 +20,2 @@ function noop() { }

}
function append(target, node) {

@@ -64,3 +63,4 @@ target.appendChild(node);

if (callbacks) {
callbacks.slice().forEach(fn => fn(event));
// @ts-ignore
callbacks.slice().forEach(fn => fn.call(this, event));
}

@@ -178,3 +178,3 @@ }

}
function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
const parent_component = current_component;

@@ -196,8 +196,10 @@ set_current_component(component);

after_update: [],
context: new Map(parent_component ? parent_component.$$.context : options.context || []),
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
// everything else
callbacks: blank_object(),
dirty,
skip_bound: false
skip_bound: false,
root: options.target || parent_component.$$.root
};
append_styles && append_styles($$.root);
let ready = false;

@@ -265,3 +267,3 @@ $$.ctx = instance

/* components/icon/src/Icon.svelte generated by Svelte v3.38.2 */
/* components/icon/src/Icon.svelte generated by Svelte v3.44.0 */

@@ -625,9 +627,9 @@ function create_if_block_5(ctx) {

function click_handler(event) {
bubble($$self, event);
bubble.call(this, $$self, event);
}
$$self.$$set = $$props => {
if ("stroke" in $$props) $$invalidate(0, stroke = $$props.stroke);
if ("type" in $$props) $$invalidate(1, type = $$props.type);
if ("style" in $$props) $$invalidate(2, style = $$props.style);
if ('stroke' in $$props) $$invalidate(0, stroke = $$props.stroke);
if ('type' in $$props) $$invalidate(1, type = $$props.type);
if ('style' in $$props) $$invalidate(2, style = $$props.style);
};

@@ -645,2 +647,2 @@

export default Icon;
export { Icon as default };

@@ -23,3 +23,2 @@ var Icon = (function () {

}
function append(target, node) {

@@ -67,3 +66,4 @@ target.appendChild(node);

if (callbacks) {
callbacks.slice().forEach(fn => fn(event));
// @ts-ignore
callbacks.slice().forEach(fn => fn.call(this, event));
}

@@ -181,3 +181,3 @@ }

}
function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
const parent_component = current_component;

@@ -199,8 +199,10 @@ set_current_component(component);

after_update: [],
context: new Map(parent_component ? parent_component.$$.context : options.context || []),
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
// everything else
callbacks: blank_object(),
dirty,
skip_bound: false
skip_bound: false,
root: options.target || parent_component.$$.root
};
append_styles && append_styles($$.root);
let ready = false;

@@ -268,3 +270,3 @@ $$.ctx = instance

/* components/icon/src/Icon.svelte generated by Svelte v3.38.2 */
/* components/icon/src/Icon.svelte generated by Svelte v3.44.0 */

@@ -628,9 +630,9 @@ function create_if_block_5(ctx) {

function click_handler(event) {
bubble($$self, event);
bubble.call(this, $$self, event);
}
$$self.$$set = $$props => {
if ("stroke" in $$props) $$invalidate(0, stroke = $$props.stroke);
if ("type" in $$props) $$invalidate(1, type = $$props.type);
if ("style" in $$props) $$invalidate(2, style = $$props.style);
if ('stroke' in $$props) $$invalidate(0, stroke = $$props.stroke);
if ('type' in $$props) $$invalidate(1, type = $$props.type);
if ('style' in $$props) $$invalidate(2, style = $$props.style);
};

@@ -650,2 +652,2 @@

}());
})();

@@ -1,1 +0,1 @@

!function(){function n(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function t(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function e(n,t){return(e=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,e){return!e||"object"!==r(e)&&"function"!=typeof e?t(n):e}function i(n){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function c(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function u(n,t){if(n){if("string"==typeof n)return c(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(n,t):void 0}}function l(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null!=e){var r,o,i=[],c=!0,u=!1;try{for(e=e.call(n);!(c=(r=e.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(n){u=!0,o=n}finally{try{c||null==e.return||e.return()}finally{if(u)throw o}}return i}}(n,t)||u(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(n){return function(n){if(Array.isArray(n))return c(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||u(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function s(){}function y(n){return n()}function p(){return Object.create(null)}function v(n){n.forEach(y)}function h(n){return"function"==typeof n}function d(n,t){return n!=n?t==t:n!==t||n&&"object"===r(n)||"function"==typeof n}function m(n,t){n.appendChild(t)}function w(n,t,e){n.insertBefore(t,e||null)}function x(n){n.parentNode.removeChild(n)}function g(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function b(n,t,e){null==e?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function k(n){return Array.from(n.childNodes)}function $(n,t,e,r){n.style.setProperty(t,e,r?"important":"")}var S;function A(n){S=n}var _=[],j=[],O=[],E=[],L=Promise.resolve(),B=!1;function P(n){O.push(n)}var R=!1,C=new Set;function I(){if(!R){R=!0;do{for(var n=0;n<_.length;n+=1){var t=_[n];A(t),M(t.$$)}for(A(null),_.length=0;j.length;)j.pop()();for(var e=0;e<O.length;e+=1){var r=O[e];C.has(r)||(C.add(r),r())}O.length=0}while(_.length);for(;E.length;)E.pop()();B=!1,R=!1,C.clear()}}function M(n){if(null!==n.fragment){n.update(),v(n.before_update);var t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(P)}}var z=new Set;function H(n,t){n&&n.i&&(z.delete(n),n.i(t))}function N(n,t,e,r){var o=n.$$,i=o.fragment,c=o.on_mount,u=o.on_destroy,l=o.after_update;i&&i.m(t,e),r||P((function(){var t=c.map(y).filter(h);u?u.push.apply(u,f(t)):v(t),n.$$.on_mount=[]})),l.forEach(P)}function T(n,t){-1===n.$$.dirty[0]&&(_.push(n),B||(B=!0,L.then(I)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function V(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,r=i(n);if(t){var c=i(this).constructor;e=Reflect.construct(r,arguments,c)}else e=r.apply(this,arguments);return o(this,e)}}function U(n){var t,e;return{c:function(){t=g("svg"),b(e=g("path"),"d","M1.119 16.841a1.118 1.118 0 01-1.111-1.127c0-.619.492-1.111\n 1.111-1.111h13.475V1.127A1.133 1.133 0 0115.722 0c.619 0 1.111.508 1.111\n 1.127v13.476h13.475c.619 0 1.127.492 1.127 1.111s-.508 1.127-1.127\n 1.127H16.833v13.476c0 .619-.492 1.127-1.111 1.127a1.131 1.131 0\n 01-1.127-1.127V16.841H1.119z"),b(e,"fill",n[0]),b(t,"version","1.1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"x","0"),b(t,"y","0"),b(t,"width","100%"),b(t,"height","100%"),b(t,"viewBox","0 0 31.444 31.444"),b(t,"xml:space","preserve"),b(t,"class","svelte-2o8tyv")},m:function(n,r){w(n,t,r),m(t,e)},p:function(n,t){1&t&&b(e,"fill",n[0])},d:function(n){n&&x(t)}}}function q(n){var t,e;return{c:function(){t=g("svg"),b(e=g("path"),"d","M1.111 16.832A1.117 1.117 0 010 15.706c0-.619.492-1.111\n 1.111-1.111H30.3c.619 0 1.127.492 1.127 1.111s-.508 1.127-1.127\n 1.127H1.111z"),b(e,"fill",n[0]),b(t,"version","1.1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"x","0"),b(t,"y","0"),b(t,"width","100%"),b(t,"height","100%"),b(t,"viewBox","0 0 31.427 31.427"),b(t,"xml:space","preserve"),b(t,"class","svelte-2o8tyv")},m:function(n,r){w(n,t,r),m(t,e)},p:function(n,t){1&t&&b(e,"fill",n[0])},d:function(n){n&&x(t)}}}function D(n){var t,e,r;return{c:function(){t=g("svg"),e=g("g"),b(r=g("path"),"d","M617.858,370.896L221.513,9.705c-13.006-12.94-34.099-12.94-47.105,0c-13.006,12.939-13.006,33.934,0,46.874\n l372.447,339.438L174.441,735.454c-13.006,12.94-13.006,33.935,0,46.874s34.099,12.939,47.104,0l396.346-361.191\n c6.932-6.898,9.904-16.043,9.441-25.087C627.763,386.972,624.792,377.828,617.858,370.896z"),b(t,"version","1.1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"x","0px"),b(t,"y","0px"),b(t,"stroke",n[0]),b(t,"width","100%"),b(t,"height","100%"),b(t,"viewBox","0 0 792.033 792.033"),$(t,"enable-background","new 0 0 792.033 792.033"),b(t,"xml:space","preserve"),b(t,"class","svelte-2o8tyv")},m:function(n,o){w(n,t,o),m(t,e),m(e,r)},p:function(n,e){1&e&&b(t,"stroke",n[0])},d:function(n){n&&x(t)}}}function F(n){var t,e,r,o,i;return{c:function(){t=g("svg"),e=g("g"),r=g("circle"),o=g("circle"),i=g("circle"),b(r,"cx","42.667"),b(r,"cy","213.333"),b(r,"r","42.667"),b(o,"cx","213.333"),b(o,"cy","213.333"),b(o,"r","42.667"),b(i,"cx","384"),b(i,"cy","213.333"),b(i,"r","42.667"),b(t,"version","1.1"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"width","100%"),b(t,"height","100%"),b(t,"viewBox","0 0 426.667 426.667"),$(t,"enable-background","new 0 0 426.667 426.667"),b(t,"xml:space","preserve"),b(t,"class","svelte-2o8tyv")},m:function(n,c){w(n,t,c),m(t,e),m(e,r),m(e,o),m(e,i)},p:s,d:function(n){n&&x(t)}}}function G(n){var t,e,r,o,i,c,u,l,f,a;return{c:function(){t=g("svg"),e=g("line"),r=g("line"),o=g("line"),i=g("line"),c=g("line"),u=g("line"),l=g("line"),f=g("line"),a=g("line"),b(e,"x1","4"),b(e,"y1","21"),b(e,"x2","4"),b(e,"y2","14"),b(r,"x1","4"),b(r,"y1","10"),b(r,"x2","4"),b(r,"y2","3"),b(o,"x1","12"),b(o,"y1","21"),b(o,"x2","12"),b(o,"y2","12"),b(i,"x1","12"),b(i,"y1","8"),b(i,"x2","12"),b(i,"y2","3"),b(c,"x1","20"),b(c,"y1","21"),b(c,"x2","20"),b(c,"y2","16"),b(u,"x1","20"),b(u,"y1","12"),b(u,"x2","20"),b(u,"y2","3"),b(l,"x1","1"),b(l,"y1","14"),b(l,"x2","7"),b(l,"y2","14"),b(f,"x1","9"),b(f,"y1","8"),b(f,"x2","15"),b(f,"y2","8"),b(a,"x1","17"),b(a,"y1","16"),b(a,"x2","23"),b(a,"y2","16"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"viewBox","0 0 24 24"),b(t,"fill","none"),b(t,"stroke",n[0]),b(t,"stroke-width","2"),b(t,"stroke-linecap","round"),b(t,"stroke-linejoin","round"),b(t,"class","svelte-2o8tyv")},m:function(n,s){w(n,t,s),m(t,e),m(t,r),m(t,o),m(t,i),m(t,c),m(t,u),m(t,l),m(t,f),m(t,a)},p:function(n,e){1&e&&b(t,"stroke",n[0])},d:function(n){n&&x(t)}}}function J(n){var t,e,r;return{c:function(){t=g("svg"),e=g("g"),b(r=g("path"),"d","M228.929,205.01L404.596,29.343c6.78-6.548,6.968-17.352,0.42-24.132c-6.548-6.78-17.352-6.968-24.132-0.42\n c-0.142,0.137-0.282,0.277-0.42,0.42L204.796,180.878L29.129,5.21c-6.78-6.548-17.584-6.36-24.132,0.42\n c-6.388,6.614-6.388,17.099,0,23.713L180.664,205.01L4.997,380.677c-6.663,6.664-6.663,17.468,0,24.132\n c6.664,6.662,17.468,6.662,24.132,0l175.667-175.667l175.667,175.667c6.78,6.548,17.584,6.36,24.132-0.42\n c6.387-6.614,6.387-17.099,0-23.712L228.929,205.01z"),b(t,"xmlns","http://www.w3.org/2000/svg"),b(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(t,"x","0px"),b(t,"y","0px"),b(t,"viewBox","0 0 408 408"),$(t,"enable-background","new 0 0 408 408"),b(t,"xml:space","preserve"),b(t,"class","svelte-2o8tyv")},m:function(n,o){w(n,t,o),m(t,e),m(e,r)},p:s,d:function(n){n&&x(t)}}}function K(n){var t,e,r;function o(n,t){return"x"===n[1]?J:"filter"===n[1]?G:"more"===n[1]?F:"right-arrow"===n[1]?D:"minus"==n[1]?q:"plus"==n[1]?U:void 0}var i=o(n),c=i&&i(n);return{c:function(){var e;e="span",t=document.createElement(e),c&&c.c(),b(t,"class","responsive-ui-icon svelte-2o8tyv"),b(t,"style",n[2])},m:function(o,i){var u,l,f,a;w(o,t,i),c&&c.m(t,null),e||(u=t,l="click",f=n[3],u.addEventListener(l,f,a),r=function(){return u.removeEventListener(l,f,a)},e=!0)},p:function(n,e){var r=l(e,1)[0];i===(i=o(n))&&c?c.p(n,r):(c&&c.d(1),(c=i&&i(n))&&(c.c(),c.m(t,null))),4&r&&b(t,"style",n[2])},i:s,o:s,d:function(n){n&&x(t),c&&c.d(),e=!1,r()}}}function Q(n,t,e){var r=t.stroke,o=void 0===r?"#000":r,i=t.type,c=void 0===i?"":i,u=t.style,l=void 0===u?"":u;return n.$$set=function(n){"stroke"in n&&e(0,o=n.stroke),"type"in n&&e(1,c=n.type),"style"in n&&e(2,l=n.style)},[o,c,l,function(t){!function(n,t){var e=n.$$.callbacks[t.type];e&&e.slice().forEach((function(n){return n(t)}))}(n,t)}]}}();
!function(){function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},e(t,n)}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n(t)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function u(t,n){if(t){if("string"==typeof t)return c(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,n):void 0}}function l(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],c=!0,u=!1;try{for(e=e.call(t);!(c=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);c=!0);}catch(t){u=!0,o=t}finally{try{c||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||u(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(){}function p(t){return t()}function y(){return Object.create(null)}function v(t){t.forEach(p)}function d(t){return"function"==typeof t}function h(t,n){return t!=t?n==n:t!==n||t&&"object"===r(t)||"function"==typeof t}function m(t,n){t.appendChild(n)}function g(t,n,e){t.insertBefore(n,e||null)}function w(t){t.parentNode.removeChild(t)}function x(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function b(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function $(t){return Array.from(t.childNodes)}function k(t,n,e,r){t.style.setProperty(n,e,r?"important":"")}var _;function S(t){_=t}function j(t,n){var e=this,r=t.$$.callbacks[n.type];r&&r.slice().forEach((function(t){return t.call(e,n)}))}var E=[],O=[],A=[],L=[],B=Promise.resolve(),P=!1;function M(t){A.push(t)}var R=!1,C=new Set;function I(){if(!R){R=!0;do{for(var t=0;t<E.length;t+=1){var n=E[t];S(n),T(n.$$)}for(S(null),E.length=0;O.length;)O.pop()();for(var e=0;e<A.length;e+=1){var r=A[e];C.has(r)||(C.add(r),r())}A.length=0}while(E.length);for(;L.length;)L.pop()();P=!1,R=!1,C.clear()}}function T(t){if(null!==t.fragment){t.update(),v(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(M)}}var z=new Set;function H(t,n){t&&t.i&&(z.delete(t),t.i(n))}function N(t,n,e,r){var o=t.$$,i=o.fragment,c=o.on_mount,u=o.on_destroy,l=o.after_update;i&&i.m(n,e),r||M((function(){var n=c.map(p).filter(d);u?u.push.apply(u,a(n)):v(n),t.$$.on_mount=[]})),l.forEach(M)}function V(t,n){-1===t.$$.dirty[0]&&(E.push(t),P||(P=!0,B.then(I)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function q(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=i(t);if(n){var c=i(this).constructor;e=Reflect.construct(r,arguments,c)}else e=r.apply(this,arguments);return o(this,e)}}function D(t){var n,e;return{c:function(){n=x("svg"),b(e=x("path"),"d","M1.119 16.841a1.118 1.118 0 01-1.111-1.127c0-.619.492-1.111\n 1.111-1.111h13.475V1.127A1.133 1.133 0 0115.722 0c.619 0 1.111.508 1.111\n 1.127v13.476h13.475c.619 0 1.127.492 1.127 1.111s-.508 1.127-1.127\n 1.127H16.833v13.476c0 .619-.492 1.127-1.111 1.127a1.131 1.131 0\n 01-1.127-1.127V16.841H1.119z"),b(e,"fill",t[0]),b(n,"version","1.1"),b(n,"xmlns","http://www.w3.org/2000/svg"),b(n,"x","0"),b(n,"y","0"),b(n,"width","100%"),b(n,"height","100%"),b(n,"viewBox","0 0 31.444 31.444"),b(n,"xml:space","preserve"),b(n,"class","svelte-2o8tyv")},m:function(t,r){g(t,n,r),m(n,e)},p:function(t,n){1&n&&b(e,"fill",t[0])},d:function(t){t&&w(n)}}}function U(t){var n,e;return{c:function(){n=x("svg"),b(e=x("path"),"d","M1.111 16.832A1.117 1.117 0 010 15.706c0-.619.492-1.111\n 1.111-1.111H30.3c.619 0 1.127.492 1.127 1.111s-.508 1.127-1.127\n 1.127H1.111z"),b(e,"fill",t[0]),b(n,"version","1.1"),b(n,"xmlns","http://www.w3.org/2000/svg"),b(n,"x","0"),b(n,"y","0"),b(n,"width","100%"),b(n,"height","100%"),b(n,"viewBox","0 0 31.427 31.427"),b(n,"xml:space","preserve"),b(n,"class","svelte-2o8tyv")},m:function(t,r){g(t,n,r),m(n,e)},p:function(t,n){1&n&&b(e,"fill",t[0])},d:function(t){t&&w(n)}}}function F(t){var n,e,r;return{c:function(){n=x("svg"),e=x("g"),b(r=x("path"),"d","M617.858,370.896L221.513,9.705c-13.006-12.94-34.099-12.94-47.105,0c-13.006,12.939-13.006,33.934,0,46.874\n l372.447,339.438L174.441,735.454c-13.006,12.94-13.006,33.935,0,46.874s34.099,12.939,47.104,0l396.346-361.191\n c6.932-6.898,9.904-16.043,9.441-25.087C627.763,386.972,624.792,377.828,617.858,370.896z"),b(n,"version","1.1"),b(n,"xmlns","http://www.w3.org/2000/svg"),b(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(n,"x","0px"),b(n,"y","0px"),b(n,"stroke",t[0]),b(n,"width","100%"),b(n,"height","100%"),b(n,"viewBox","0 0 792.033 792.033"),k(n,"enable-background","new 0 0 792.033 792.033"),b(n,"xml:space","preserve"),b(n,"class","svelte-2o8tyv")},m:function(t,o){g(t,n,o),m(n,e),m(e,r)},p:function(t,e){1&e&&b(n,"stroke",t[0])},d:function(t){t&&w(n)}}}function G(t){var n,e,r,o,i;return{c:function(){n=x("svg"),e=x("g"),r=x("circle"),o=x("circle"),i=x("circle"),b(r,"cx","42.667"),b(r,"cy","213.333"),b(r,"r","42.667"),b(o,"cx","213.333"),b(o,"cy","213.333"),b(o,"r","42.667"),b(i,"cx","384"),b(i,"cy","213.333"),b(i,"r","42.667"),b(n,"version","1.1"),b(n,"xmlns","http://www.w3.org/2000/svg"),b(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(n,"width","100%"),b(n,"height","100%"),b(n,"viewBox","0 0 426.667 426.667"),k(n,"enable-background","new 0 0 426.667 426.667"),b(n,"xml:space","preserve"),b(n,"class","svelte-2o8tyv")},m:function(t,c){g(t,n,c),m(n,e),m(e,r),m(e,o),m(e,i)},p:s,d:function(t){t&&w(n)}}}function J(t){var n,e,r,o,i,c,u,l,a,f;return{c:function(){n=x("svg"),e=x("line"),r=x("line"),o=x("line"),i=x("line"),c=x("line"),u=x("line"),l=x("line"),a=x("line"),f=x("line"),b(e,"x1","4"),b(e,"y1","21"),b(e,"x2","4"),b(e,"y2","14"),b(r,"x1","4"),b(r,"y1","10"),b(r,"x2","4"),b(r,"y2","3"),b(o,"x1","12"),b(o,"y1","21"),b(o,"x2","12"),b(o,"y2","12"),b(i,"x1","12"),b(i,"y1","8"),b(i,"x2","12"),b(i,"y2","3"),b(c,"x1","20"),b(c,"y1","21"),b(c,"x2","20"),b(c,"y2","16"),b(u,"x1","20"),b(u,"y1","12"),b(u,"x2","20"),b(u,"y2","3"),b(l,"x1","1"),b(l,"y1","14"),b(l,"x2","7"),b(l,"y2","14"),b(a,"x1","9"),b(a,"y1","8"),b(a,"x2","15"),b(a,"y2","8"),b(f,"x1","17"),b(f,"y1","16"),b(f,"x2","23"),b(f,"y2","16"),b(n,"xmlns","http://www.w3.org/2000/svg"),b(n,"viewBox","0 0 24 24"),b(n,"fill","none"),b(n,"stroke",t[0]),b(n,"stroke-width","2"),b(n,"stroke-linecap","round"),b(n,"stroke-linejoin","round"),b(n,"class","svelte-2o8tyv")},m:function(t,s){g(t,n,s),m(n,e),m(n,r),m(n,o),m(n,i),m(n,c),m(n,u),m(n,l),m(n,a),m(n,f)},p:function(t,e){1&e&&b(n,"stroke",t[0])},d:function(t){t&&w(n)}}}function K(t){var n,e,r;return{c:function(){n=x("svg"),e=x("g"),b(r=x("path"),"d","M228.929,205.01L404.596,29.343c6.78-6.548,6.968-17.352,0.42-24.132c-6.548-6.78-17.352-6.968-24.132-0.42\n c-0.142,0.137-0.282,0.277-0.42,0.42L204.796,180.878L29.129,5.21c-6.78-6.548-17.584-6.36-24.132,0.42\n c-6.388,6.614-6.388,17.099,0,23.713L180.664,205.01L4.997,380.677c-6.663,6.664-6.663,17.468,0,24.132\n c6.664,6.662,17.468,6.662,24.132,0l175.667-175.667l175.667,175.667c6.78,6.548,17.584,6.36,24.132-0.42\n c6.387-6.614,6.387-17.099,0-23.712L228.929,205.01z"),b(n,"xmlns","http://www.w3.org/2000/svg"),b(n,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(n,"x","0px"),b(n,"y","0px"),b(n,"viewBox","0 0 408 408"),k(n,"enable-background","new 0 0 408 408"),b(n,"xml:space","preserve"),b(n,"class","svelte-2o8tyv")},m:function(t,o){g(t,n,o),m(n,e),m(e,r)},p:s,d:function(t){t&&w(n)}}}function Q(t){var n,e,r;function o(t,n){return"x"===t[1]?K:"filter"===t[1]?J:"more"===t[1]?G:"right-arrow"===t[1]?F:"minus"==t[1]?U:"plus"==t[1]?D:void 0}var i=o(t),c=i&&i(t);return{c:function(){var e;e="span",n=document.createElement(e),c&&c.c(),b(n,"class","responsive-ui-icon svelte-2o8tyv"),b(n,"style",t[2])},m:function(o,i){var u,l,a,f;g(o,n,i),c&&c.m(n,null),e||(u=n,l="click",a=t[3],u.addEventListener(l,a,f),r=function(){return u.removeEventListener(l,a,f)},e=!0)},p:function(t,e){var r=l(e,1)[0];i===(i=o(t))&&c?c.p(t,r):(c&&c.d(1),(c=i&&i(t))&&(c.c(),c.m(n,null))),4&r&&b(n,"style",t[2])},i:s,o:s,d:function(t){t&&w(n),c&&c.d(),e=!1,r()}}}function W(t,n,e){var r=n.stroke,o=void 0===r?"#000":r,i=n.type,c=void 0===i?"":i,u=n.style,l=void 0===u?"":u;return t.$$set=function(t){"stroke"in t&&e(0,o=t.stroke),"type"in t&&e(1,c=t.type),"style"in t&&e(2,l=t.style)},[o,c,l,function(n){j.call(this,t,n)}]}var X=function(r){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&e(t,n)}(i,r);var o=q(i);function i(e){var r;return t(this,i),function(t,n,e,r,o,i,c){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=_;S(t);var a=t.$$={fragment:null,ctx:null,props:i,update:s,not_equal:o,bound:y(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:y(),dirty:u,skip_bound:!1,root:n.target||l.$$.root};c&&c(a.root);var f=!1;if(a.ctx=e?e(t,n.props||{},(function(n,e){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:e;return a.ctx&&o(a.ctx[n],a.ctx[n]=r)&&(!a.skip_bound&&a.bound[n]&&a.bound[n](r),f&&V(t,n)),e})):[],a.update(),f=!0,v(a.before_update),a.fragment=!!r&&r(a.ctx),n.target){if(n.hydrate){var p=$(n.target);a.fragment&&a.fragment.l(p),p.forEach(w)}else a.fragment&&a.fragment.c();n.intro&&H(t.$$.fragment),N(t,n.target,n.anchor,n.customElement),I()}S(l)}(n(r=o.call(this)),e,W,Q,h,{stroke:0,type:1,style:2}),r}return i}(function(){function n(){t(this,n)}var e,r,o;return e=n,(r=[{key:"$destroy",value:function(){var t,n;t=1,null!==(n=this.$$).fragment&&(v(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]),this.$destroy=s}},{key:"$on",value:function(t,n){var e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),function(){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}}},{key:"$set",value:function(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&f(e.prototype,r),o&&f(e,o),n}())}();
{
"name": "@responsive-ui/icon",
"version": "1.0.4-alpha",
"version": "1.0.7-alpha.0",
"description": "A icon component of responsive-ui.",
"author": "Si3nLoong <sianloong90@gmail.com> (https://github.com/si3nloong)",
"homepage": "https://github.com/wetix/responsive-ui/blob/master/components/icon#README.md",
"homepage": "https://github.com/wetix/responsive-ui/blob/main/components/icon#README.md",
"license": "MIT",

@@ -48,3 +48,3 @@ "main": "lib/cjs/index.js",

},
"gitHead": "0b68dfad9c872a1058b926f61ae5b7a33c441e22"
"gitHead": "3fde8242766d6298122a874e2415ced21cd78f27"
}

@@ -0,1 +1,2 @@

# @responsive-ui/icon

@@ -9,9 +10,9 @@

[![npm](https://img.shields.io/npm/v/@responsive-ui/icon.svg)](https://www.npmjs.com/package/@responsive-ui/icon)
[![Bundle Size](https://badgen.net/bundlephobia/minzip/%40responsive-ui%2Ficon)](https://bundlephobia.com/result?p=@responsive-ui/icon)
[![Bundle Size](https://badgen.net/bundlephobia/minzip/%40responsive-ui%2Ficon)](https://bundlephobia.com/result?p=%40responsive-ui%2Ficon)
[![download](https://img.shields.io/npm/dw/@responsive-ui/icon.svg)](https://www.npmjs.com/package/@responsive-ui/icon)
[![LICENCE](https://img.shields.io/github/license/wetix/responsive-ui)](https://github.com/wetix/responsive-ui/blob/master/LICENSE)
[![LICENCE](https://img.shields.io/github/license/wetix/responsive-ui)](https://github.com/wetix/responsive-ui/blob/main/LICENSE)
</p>
## Install
## 🔨 Install

@@ -28,45 +29,12 @@ ```console

## Look and Feel
## 🔋 Sponsors
<img src="https://user-images.githubusercontent.com/28108597/104583469-20cb1880-569c-11eb-9dc6-956efc1ea542.png"
alt="@responsive-ui/button" />
<img src="https://asset.wetix.my/images/logo/wetix.png" alt="WeTix" width="200px">
## Properties, Events & Slots
## 📄 License
```ts
interface IconProps {
type: string;
stroke?: string;
style?: string;
}
[@responsive-ui/accordion](https://github.com/wetix/responsive-ui/tree/main/components/accordion) is 100% free and open-source, under the [MIT license](https://github.com/wetix/responsive-ui/blob/main/LICENSE).
interface IconEvents {
click?: any;
}
## 🎉 Big Thanks To
declare class Icon extends SvelteComponentTyped<IconProps, IconEvents> {}
```
## Example
```svelte
<script>
import Icon from '@responsive-ui/icon';
</script>
<Icon type="filter" />
```
[Try it yourself in Svelte Repl](https://svelte.dev/repl/4c61a7751527430181dbfd478a54a263?version=latest)
## Sponsors
<img src="https://asset.wetix.my/images/logo/wetix.png" alt="WeTix" width="240px">
## License
[@responsive-ui/icon](https://github.com/wetix/responsive-ui/tree/master/components/icon) is 100% free and open-source, under the [MIT license](https://github.com/wetix/responsive-ui/blob/master/LICENSE).
## Big Thanks To
Thanks to these awesome companies for their support of Open Source developers ❤

@@ -73,0 +41,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc