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

@responsive-ui/button

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@responsive-ui/button - npm Package Compare versions

Comparing version 0.10.10 to 0.11.0

25

lib/cjs/index.js

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

set_current_component(component);
const prop_values = options.props || {};
const $$ = component.$$ = {

@@ -332,3 +331,3 @@ fragment: null,

$$.ctx = instance
? instance(component, prop_values, (i, ret, ...rest) => {
? instance(component, options.props || {}, (i, ret, ...rest) => {
const value = rest.length ? rest[0] : ret;

@@ -393,3 +392,3 @@ if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {

/* components/button/src/Button.svelte generated by Svelte v3.32.0 */
/* components/button/src/Button.svelte generated by Svelte v3.32.2 */

@@ -401,3 +400,3 @@ function fallback_block(ctx) {

c() {
t = text(/*title*/ ctx[2]);
t = text(/*label*/ ctx[2]);
},

@@ -408,3 +407,3 @@ m(target, anchor) {

p(ctx, dirty) {
if (dirty & /*title*/ 4) set_data(t, /*title*/ ctx[2]);
if (dirty & /*label*/ 4) set_data(t, /*label*/ ctx[2]);
},

@@ -448,3 +447,3 @@ d(detaching) {

toggle_class(button, "responsive-ui-button--outline", /*outline*/ ctx[4]);
toggle_class(button, "svelte-gobocx", true);
toggle_class(button, "svelte-h8fis4", true);
},

@@ -472,3 +471,3 @@ m(target, anchor) {

} else {
if (default_slot_or_fallback && default_slot_or_fallback.p && dirty & /*title*/ 4) {
if (default_slot_or_fallback && default_slot_or_fallback.p && dirty & /*label*/ 4) {
default_slot_or_fallback.p(ctx, dirty);

@@ -486,3 +485,3 @@ }

toggle_class(button, "responsive-ui-button--outline", /*outline*/ ctx[4]);
toggle_class(button, "svelte-gobocx", true);
toggle_class(button, "svelte-h8fis4", true);
},

@@ -509,3 +508,3 @@ i(local) {

function instance($$self, $$props, $$invalidate) {
const omit_props_names = ["class","ref","title","type","outline","disabled"];
const omit_props_names = ["class","ref","label","type","outline","disabled"];
let $$restProps = compute_rest_props($$props, omit_props_names);

@@ -515,3 +514,3 @@ let { $$slots: slots = {}, $$scope } = $$props;

let { ref = null } = $$props;
let { title = "" } = $$props;
let { label = "" } = $$props;
let { type = "button" } = $$props;

@@ -537,3 +536,3 @@ let { outline = false } = $$props;

if ("ref" in $$new_props) $$invalidate(0, ref = $$new_props.ref);
if ("title" in $$new_props) $$invalidate(2, title = $$new_props.title);
if ("label" in $$new_props) $$invalidate(2, label = $$new_props.label);
if ("type" in $$new_props) $$invalidate(3, type = $$new_props.type);

@@ -548,3 +547,3 @@ if ("outline" in $$new_props) $$invalidate(4, outline = $$new_props.outline);

className,
title,
label,
type,

@@ -568,3 +567,3 @@ outline,

ref: 0,
title: 2,
label: 2,
type: 3,

@@ -571,0 +570,0 @@ outline: 4,

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

set_current_component(component);
const prop_values = options.props || {};
const $$ = component.$$ = {

@@ -330,3 +329,3 @@ fragment: null,

$$.ctx = instance
? instance(component, prop_values, (i, ret, ...rest) => {
? instance(component, options.props || {}, (i, ret, ...rest) => {
const value = rest.length ? rest[0] : ret;

@@ -391,3 +390,3 @@ if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {

/* components/button/src/Button.svelte generated by Svelte v3.32.0 */
/* components/button/src/Button.svelte generated by Svelte v3.32.2 */

@@ -399,3 +398,3 @@ function fallback_block(ctx) {

c() {
t = text(/*title*/ ctx[2]);
t = text(/*label*/ ctx[2]);
},

@@ -406,3 +405,3 @@ m(target, anchor) {

p(ctx, dirty) {
if (dirty & /*title*/ 4) set_data(t, /*title*/ ctx[2]);
if (dirty & /*label*/ 4) set_data(t, /*label*/ ctx[2]);
},

@@ -446,3 +445,3 @@ d(detaching) {

toggle_class(button, "responsive-ui-button--outline", /*outline*/ ctx[4]);
toggle_class(button, "svelte-gobocx", true);
toggle_class(button, "svelte-h8fis4", true);
},

@@ -470,3 +469,3 @@ m(target, anchor) {

} else {
if (default_slot_or_fallback && default_slot_or_fallback.p && dirty & /*title*/ 4) {
if (default_slot_or_fallback && default_slot_or_fallback.p && dirty & /*label*/ 4) {
default_slot_or_fallback.p(ctx, dirty);

@@ -484,3 +483,3 @@ }

toggle_class(button, "responsive-ui-button--outline", /*outline*/ ctx[4]);
toggle_class(button, "svelte-gobocx", true);
toggle_class(button, "svelte-h8fis4", true);
},

@@ -507,3 +506,3 @@ i(local) {

function instance($$self, $$props, $$invalidate) {
const omit_props_names = ["class","ref","title","type","outline","disabled"];
const omit_props_names = ["class","ref","label","type","outline","disabled"];
let $$restProps = compute_rest_props($$props, omit_props_names);

@@ -513,3 +512,3 @@ let { $$slots: slots = {}, $$scope } = $$props;

let { ref = null } = $$props;
let { title = "" } = $$props;
let { label = "" } = $$props;
let { type = "button" } = $$props;

@@ -535,3 +534,3 @@ let { outline = false } = $$props;

if ("ref" in $$new_props) $$invalidate(0, ref = $$new_props.ref);
if ("title" in $$new_props) $$invalidate(2, title = $$new_props.title);
if ("label" in $$new_props) $$invalidate(2, label = $$new_props.label);
if ("type" in $$new_props) $$invalidate(3, type = $$new_props.type);

@@ -546,3 +545,3 @@ if ("outline" in $$new_props) $$invalidate(4, outline = $$new_props.outline);

className,
title,
label,
type,

@@ -566,3 +565,3 @@ outline,

ref: 0,
title: 2,
label: 2,
type: 3,

@@ -569,0 +568,0 @@ outline: 4,

@@ -310,3 +310,2 @@ var Button = (function () {

set_current_component(component);
const prop_values = options.props || {};
const $$ = component.$$ = {

@@ -333,3 +332,3 @@ fragment: null,

$$.ctx = instance
? instance(component, prop_values, (i, ret, ...rest) => {
? instance(component, options.props || {}, (i, ret, ...rest) => {
const value = rest.length ? rest[0] : ret;

@@ -394,3 +393,3 @@ if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {

/* components/button/src/Button.svelte generated by Svelte v3.32.0 */
/* components/button/src/Button.svelte generated by Svelte v3.32.2 */

@@ -402,3 +401,3 @@ function fallback_block(ctx) {

c() {
t = text(/*title*/ ctx[2]);
t = text(/*label*/ ctx[2]);
},

@@ -409,3 +408,3 @@ m(target, anchor) {

p(ctx, dirty) {
if (dirty & /*title*/ 4) set_data(t, /*title*/ ctx[2]);
if (dirty & /*label*/ 4) set_data(t, /*label*/ ctx[2]);
},

@@ -449,3 +448,3 @@ d(detaching) {

toggle_class(button, "responsive-ui-button--outline", /*outline*/ ctx[4]);
toggle_class(button, "svelte-gobocx", true);
toggle_class(button, "svelte-h8fis4", true);
},

@@ -473,3 +472,3 @@ m(target, anchor) {

} else {
if (default_slot_or_fallback && default_slot_or_fallback.p && dirty & /*title*/ 4) {
if (default_slot_or_fallback && default_slot_or_fallback.p && dirty & /*label*/ 4) {
default_slot_or_fallback.p(ctx, dirty);

@@ -487,3 +486,3 @@ }

toggle_class(button, "responsive-ui-button--outline", /*outline*/ ctx[4]);
toggle_class(button, "svelte-gobocx", true);
toggle_class(button, "svelte-h8fis4", true);
},

@@ -510,3 +509,3 @@ i(local) {

function instance($$self, $$props, $$invalidate) {
const omit_props_names = ["class","ref","title","type","outline","disabled"];
const omit_props_names = ["class","ref","label","type","outline","disabled"];
let $$restProps = compute_rest_props($$props, omit_props_names);

@@ -516,3 +515,3 @@ let { $$slots: slots = {}, $$scope } = $$props;

let { ref = null } = $$props;
let { title = "" } = $$props;
let { label = "" } = $$props;
let { type = "button" } = $$props;

@@ -538,3 +537,3 @@ let { outline = false } = $$props;

if ("ref" in $$new_props) $$invalidate(0, ref = $$new_props.ref);
if ("title" in $$new_props) $$invalidate(2, title = $$new_props.title);
if ("label" in $$new_props) $$invalidate(2, label = $$new_props.label);
if ("type" in $$new_props) $$invalidate(3, type = $$new_props.type);

@@ -549,3 +548,3 @@ if ("outline" in $$new_props) $$invalidate(4, outline = $$new_props.outline);

className,
title,
label,
type,

@@ -569,3 +568,3 @@ outline,

ref: 0,
title: 2,
label: 2,
type: 3,

@@ -572,0 +571,0 @@ outline: 4,

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

!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})(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})(t)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?n(t):e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(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 f(t,n){if(t){if("string"==typeof t)return u(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)?u(t,n):void 0}}function c(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],r=!0,o=!1,i=void 0;try{for(var u,f=t[Symbol.iterator]();!(r=(u=f.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==f.return||f.return()}finally{if(o)throw i}}return e}}(t,n)||f(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 u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(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 l(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 d(t,n){for(var e in n)t[e]=n[e];return t}function v(t){return t()}function p(){return Object.create(null)}function y(t){t.forEach(v)}function b(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,e,r){return t[1]&&r?d(e.ctx.slice(),t[1](r(n))):e.ctx}function g(t,n,e,o,i,u,f){var c=function(t,n,e,o){if(t[2]&&o){var i=t[2](o(e));if(void 0===n.dirty)return i;if("object"===r(i)){for(var u=[],f=Math.max(n.dirty.length,i.length),c=0;c<f;c+=1)u[c]=n.dirty[c]|i[c];return u}return n.dirty|i}return n.dirty}(n,o,i,u);if(c){var a=m(n,e,o,f);t.p(a,c)}}function $(t,n){var e={};for(var r in n=new Set(n),t)n.has(r)||"$"===r[0]||(e[r]=t[r]);return e}function _(t,n,e){t.insertBefore(n,e||null)}function S(t){t.parentNode.removeChild(t)}function w(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function j(t,n){var e=Object.getOwnPropertyDescriptors(t.__proto__);for(var r in n)null==n[r]?t.removeAttribute(r):"style"===r?t.style.cssText=n[r]:"__value"===r?t.value=t[r]=n[r]:e[r]&&e[r].set?t[r]=n[r]:w(t,r,n[r])}function O(t){return Array.from(t.childNodes)}function A(t,n,e){t.classList[e?"add":"remove"](n)}var x;function E(t){x=t}var P=[],R=[],T=[],I=[],k=Promise.resolve(),C=!1;function D(t){T.push(t)}var L=!1,N=new Set;function M(){if(!L){L=!0;do{for(var t=0;t<P.length;t+=1){var n=P[t];E(n),B(n.$$)}for(E(null),P.length=0;R.length;)R.pop()();for(var e=0;e<T.length;e+=1){var r=T[e];N.has(r)||(N.add(r),r())}T.length=0}while(P.length);for(;I.length;)I.pop()();C=!1,L=!1,N.clear()}}function B(t){if(null!==t.fragment){t.update(),y(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(D)}}var U=new Set;function q(t,n){t&&t.i&&(U.delete(t),t.i(n))}function z(t,n,e){var r=t.$$,o=r.fragment,i=r.on_mount,u=r.on_destroy,f=r.after_update;o&&o.m(n,e),D((function(){var n=i.map(v).filter(b);u?u.push.apply(u,a(n)):y(n),t.$$.on_mount=[]})),f.forEach(D)}function F(t,n){-1===t.$$.dirty[0]&&(P.push(t),C||(C=!0,k.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function G(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=i(t);if(n){var u=i(this).constructor;e=Reflect.construct(r,arguments,u)}else e=r.apply(this,arguments);return o(this,e)}}function H(t){var n;return{c:function(){var e;e=t[2],n=document.createTextNode(e)},m:function(t,e){_(t,n,e)},p:function(t,e){4&e&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(n,t[2])},d:function(t){t&&S(n)}}}function J(t){for(var n,e,r,o,i,u=t[8].default,f=function(t,n,e,r){if(t){var o=m(t,n,e,r);return t[0](o)}}(u,t,t[7],null),a=f||H(t),l=[t[6],{class:e="responsive-ui-button "+t[1]},{type:t[3]},{disabled:t[5]}],s={},v=0;v<l.length;v+=1)s=d(s,l[v]);return{c:function(){var e;e="button",n=document.createElement(e),a&&a.c(),j(n,s),A(n,"responsive-ui-button--outline",t[4]),A(n,"svelte-gobocx",!0)},m:function(e,u){var f,c,l,s;_(e,n,u),a&&a.m(n,null),t[10](n),r=!0,o||(f=n,c="click",l=t[9],f.addEventListener(c,l,s),i=function(){return f.removeEventListener(c,l,s)},o=!0)},p:function(t,o){var i=c(o,1)[0];f?f.p&&128&i&&g(f,u,t,t[7],i,null,null):a&&a.p&&4&i&&a.p(t,i),j(n,s=function(t,n){for(var e={},r={},o={$$scope:1},i=t.length;i--;){var u=t[i],f=n[i];if(f){for(var c in u)c in f||(r[c]=1);for(var a in f)o[a]||(e[a]=f[a],o[a]=1);t[i]=f}else for(var l in u)o[l]=1}for(var s in r)s in e||(e[s]=void 0);return e}(l,[64&i&&t[6],(!r||2&i&&e!==(e="responsive-ui-button "+t[1]))&&{class:e},(!r||8&i)&&{type:t[3]},(!r||32&i)&&{disabled:t[5]}])),A(n,"responsive-ui-button--outline",t[4]),A(n,"svelte-gobocx",!0)},i:function(t){r||(q(a,t),r=!0)},o:function(t){!function(t,n,e,r){if(t&&t.o){if(U.has(t))return;U.add(t),(void 0).c.push((function(){U.delete(t),r&&(e&&t.d(1),r())})),t.o(n)}}(a,t),r=!1},d:function(e){e&&S(n),a&&a.d(e),t[10](null),o=!1,i()}}}function K(t,n,e){var r=["class","ref","title","type","outline","disabled"],o=$(n,r),i=n,u=i.$$slots,f=void 0===u?{}:u,c=i.$$scope,a=n.class,l=void 0===a?"":a,s=n.ref,v=void 0===s?null:s,p=n.title,y=void 0===p?"":p,b=n.type,h=void 0===b?"button":b,m=n.outline,g=void 0!==m&&m,_=n.disabled,S=void 0!==_&&_;return t.$$set=function(t){n=d(d({},n),function(t){var n={};for(var e in t)"$"!==e[0]&&(n[e]=t[e]);return n}(t)),e(6,o=$(n,r)),"class"in t&&e(1,l=t.class),"ref"in t&&e(0,v=t.ref),"title"in t&&e(2,y=t.title),"type"in t&&e(3,h=t.type),"outline"in t&&e(4,g=t.outline),"disabled"in t&&e(5,S=t.disabled),"$$scope"in t&&e(7,c=t.$$scope)},[v,l,y,h,g,S,o,c,f,function(n){!function(t,n){var e=t.$$.callbacks[n.type];e&&e.slice().forEach((function(t){return t(n)}))}(t,n)},function(t){R[t?"unshift":"push"]((function(){e(0,v=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})(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})(t)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?n(t):e}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(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 f(t,n){if(t){if("string"==typeof t)return u(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)?u(t,n):void 0}}function c(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],r=!0,o=!1,i=void 0;try{for(var u,f=t[Symbol.iterator]();!(r=(u=f.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==f.return||f.return()}finally{if(o)throw i}}return e}}(t,n)||f(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 u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(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 l(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 d(t,n){for(var e in n)t[e]=n[e];return t}function v(t){return t()}function p(){return Object.create(null)}function y(t){t.forEach(v)}function b(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,e,r){return t[1]&&r?d(e.ctx.slice(),t[1](r(n))):e.ctx}function $(t,n,e,o,i,u,f){var c=function(t,n,e,o){if(t[2]&&o){var i=t[2](o(e));if(void 0===n.dirty)return i;if("object"===r(i)){for(var u=[],f=Math.max(n.dirty.length,i.length),c=0;c<f;c+=1)u[c]=n.dirty[c]|i[c];return u}return n.dirty|i}return n.dirty}(n,o,i,u);if(c){var a=m(n,e,o,f);t.p(a,c)}}function g(t,n){var e={};for(var r in n=new Set(n),t)n.has(r)||"$"===r[0]||(e[r]=t[r]);return e}function _(t,n,e){t.insertBefore(n,e||null)}function S(t){t.parentNode.removeChild(t)}function w(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function j(t,n){var e=Object.getOwnPropertyDescriptors(t.__proto__);for(var r in n)null==n[r]?t.removeAttribute(r):"style"===r?t.style.cssText=n[r]:"__value"===r?t.value=t[r]=n[r]:e[r]&&e[r].set?t[r]=n[r]:w(t,r,n[r])}function O(t){return Array.from(t.childNodes)}function A(t,n,e){t.classList[e?"add":"remove"](n)}var E;function x(t){E=t}var P=[],R=[],T=[],I=[],k=Promise.resolve(),C=!1;function D(t){T.push(t)}var L=!1,N=new Set;function M(){if(!L){L=!0;do{for(var t=0;t<P.length;t+=1){var n=P[t];x(n),B(n.$$)}for(x(null),P.length=0;R.length;)R.pop()();for(var e=0;e<T.length;e+=1){var r=T[e];N.has(r)||(N.add(r),r())}T.length=0}while(P.length);for(;I.length;)I.pop()();C=!1,L=!1,N.clear()}}function B(t){if(null!==t.fragment){t.update(),y(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(D)}}var U=new Set;function q(t,n){t&&t.i&&(U.delete(t),t.i(n))}function z(t,n,e){var r=t.$$,o=r.fragment,i=r.on_mount,u=r.on_destroy,f=r.after_update;o&&o.m(n,e),D((function(){var n=i.map(v).filter(b);u?u.push.apply(u,a(n)):y(n),t.$$.on_mount=[]})),f.forEach(D)}function F(t,n){-1===t.$$.dirty[0]&&(P.push(t),C||(C=!0,k.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function G(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=i(t);if(n){var u=i(this).constructor;e=Reflect.construct(r,arguments,u)}else e=r.apply(this,arguments);return o(this,e)}}function H(t){var n;return{c:function(){var e;e=t[2],n=document.createTextNode(e)},m:function(t,e){_(t,n,e)},p:function(t,e){4&e&&function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(n,t[2])},d:function(t){t&&S(n)}}}function J(t){for(var n,e,r,o,i,u=t[8].default,f=function(t,n,e,r){if(t){var o=m(t,n,e,r);return t[0](o)}}(u,t,t[7],null),a=f||H(t),l=[t[6],{class:e="responsive-ui-button "+t[1]},{type:t[3]},{disabled:t[5]}],s={},v=0;v<l.length;v+=1)s=d(s,l[v]);return{c:function(){var e;e="button",n=document.createElement(e),a&&a.c(),j(n,s),A(n,"responsive-ui-button--outline",t[4]),A(n,"svelte-h8fis4",!0)},m:function(e,u){var f,c,l,s;_(e,n,u),a&&a.m(n,null),t[10](n),r=!0,o||(f=n,c="click",l=t[9],f.addEventListener(c,l,s),i=function(){return f.removeEventListener(c,l,s)},o=!0)},p:function(t,o){var i=c(o,1)[0];f?f.p&&128&i&&$(f,u,t,t[7],i,null,null):a&&a.p&&4&i&&a.p(t,i),j(n,s=function(t,n){for(var e={},r={},o={$$scope:1},i=t.length;i--;){var u=t[i],f=n[i];if(f){for(var c in u)c in f||(r[c]=1);for(var a in f)o[a]||(e[a]=f[a],o[a]=1);t[i]=f}else for(var l in u)o[l]=1}for(var s in r)s in e||(e[s]=void 0);return e}(l,[64&i&&t[6],(!r||2&i&&e!==(e="responsive-ui-button "+t[1]))&&{class:e},(!r||8&i)&&{type:t[3]},(!r||32&i)&&{disabled:t[5]}])),A(n,"responsive-ui-button--outline",t[4]),A(n,"svelte-h8fis4",!0)},i:function(t){r||(q(a,t),r=!0)},o:function(t){!function(t,n,e,r){if(t&&t.o){if(U.has(t))return;U.add(t),(void 0).c.push((function(){U.delete(t),r&&(e&&t.d(1),r())})),t.o(n)}}(a,t),r=!1},d:function(e){e&&S(n),a&&a.d(e),t[10](null),o=!1,i()}}}function K(t,n,e){var r=["class","ref","label","type","outline","disabled"],o=g(n,r),i=n,u=i.$$slots,f=void 0===u?{}:u,c=i.$$scope,a=n.class,l=void 0===a?"":a,s=n.ref,v=void 0===s?null:s,p=n.label,y=void 0===p?"":p,b=n.type,h=void 0===b?"button":b,m=n.outline,$=void 0!==m&&m,_=n.disabled,S=void 0!==_&&_;return t.$$set=function(t){n=d(d({},n),function(t){var n={};for(var e in t)"$"!==e[0]&&(n[e]=t[e]);return n}(t)),e(6,o=g(n,r)),"class"in t&&e(1,l=t.class),"ref"in t&&e(0,v=t.ref),"label"in t&&e(2,y=t.label),"type"in t&&e(3,h=t.type),"outline"in t&&e(4,$=t.outline),"disabled"in t&&e(5,S=t.disabled),"$$scope"in t&&e(7,c=t.$$scope)},[v,l,y,h,$,S,o,c,f,function(n){!function(t,n){var e=t.$$.callbacks[n.type];e&&e.slice().forEach((function(t){return t(n)}))}(t,n)},function(t){R[t?"unshift":"push"]((function(){e(0,v=t)}))}]}}();
{
"name": "@responsive-ui/button",
"version": "0.10.10",
"version": "0.11.0",
"description": "A button component of responsive-ui.",

@@ -48,3 +48,3 @@ "author": "Si3nLoong <sianloong90@gmail.com> (https://github.com/si3nloong)",

},
"gitHead": "0e8f7a80fc0162c7f6d03edfc051ec816cdf8db8"
"gitHead": "3599a6c7dd632c74d96328a4ccfe9d0deec33fb1"
}

Sorry, the diff of this file is not supported yet

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