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

choco-web-components-test

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choco-web-components-test - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/ChocoButton.cjs

44

dist/ChocoCard.js

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

import { c as P, S as Q, i as R, f as A, s as T, a as U, b as j, e as b, d as z, g as F, h as f, j as G, k as B, l as v, t as u, m as k, n as H, u as q, o as C, p as S, q as D, r as V, v as I } from "./index-13d75ad4.js";
import { c as P, S as Q, i as R, f as E, s as T, a as U, h as C, k as b, l as z, C as F, m as f, n as G, b as A, q as v, t as u, d as k, x as H, u as q, r as j, v as S, g as B, D as V, w as I } from "./index-e4da763c.js";
function W(t) {

@@ -11,3 +11,3 @@ U(t, "svelte-kpg3sm", ".choco-card.svelte-kpg3sm.svelte-kpg3sm{position:relative}.choco-card__top.svelte-kpg3sm.svelte-kpg3sm{position:absolute;z-index:10;top:0.5rem;right:0.5rem;left:0.5rem}.choco-card__img-wrapper.svelte-kpg3sm.svelte-kpg3sm{position:relative;width:100%;margin-bottom:0.5rem;overflow:hidden;background:#dbdbdb;border-radius:1.5rem}.choco-card__img-wrapper.svelte-kpg3sm img.svelte-kpg3sm{display:block;width:100%;height:100%;object-fit:cover}.choco-card__overlay.svelte-kpg3sm.svelte-kpg3sm{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:100%;padding:0 1rem;line-height:1;font-weight:900;color:#fff;text-align:center}.choco-card__overlay-container.svelte-kpg3sm.svelte-kpg3sm{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;border-radius:1.5rem;background:linear-gradient(180deg, rgba(0, 0, 0, 0.6) 35.75%, #000 109.5%)}.choco-card__title.svelte-kpg3sm.svelte-kpg3sm{font-size:1.125rem;line-height:1.25rem;margin-bottom:0.25rem;font-weight:900}.choco-card__description.svelte-kpg3sm.svelte-kpg3sm{font-size:0.75rem;line-height:0.875rem;font-weight:500}");

t[5].top
), l = j(
), l = C(
r,

@@ -24,3 +24,3 @@ t,

m(s, i) {
B(s, e, i), l && l.m(e, null), a = !0;
A(s, e, i), l && l.m(e, null), a = !0;
},

@@ -41,3 +41,3 @@ p(s, i) {

x
) : C(
) : j(
/*$$scope*/

@@ -56,3 +56,3 @@ s[4]

d(s) {
s && D(e), l && l.d(s);
s && B(e), l && l.d(s);
}

@@ -66,3 +66,3 @@ };

t[5].overlay
), s = j(
), s = C(
l,

@@ -79,3 +79,3 @@ t,

m(i, d) {
B(i, e, d), v(e, a), s && s.m(a, null), r = !0;
A(i, e, d), v(e, a), s && s.m(a, null), r = !0;
},

@@ -96,3 +96,3 @@ p(i, d) {

Z
) : C(
) : j(
/*$$scope*/

@@ -111,3 +111,3 @@ i[4]

d(i) {
i && D(e), s && s.d(i);
i && B(e), s && s.d(i);
}

@@ -127,3 +127,3 @@ };

t[5].title
), p = j(
), p = C(
$,

@@ -134,7 +134,7 @@ t,

K
), E = (
), D = (
/*#slots*/
t[5].description
), h = j(
E,
), h = C(
D,
t,

@@ -161,3 +161,3 @@ /*$$scope*/

m(o, _) {
B(o, e, _), c && c.m(e, null), v(e, a), v(e, r), v(r, l), v(r, i), n && n.m(r, null), v(e, d), v(e, w), p && p.m(w, null), v(e, m), v(e, y), h && h.m(y, null), g = !0;
A(o, e, _), c && c.m(e, null), v(e, a), v(e, r), v(r, l), v(r, i), n && n.m(r, null), v(e, d), v(e, w), p && p.m(w, null), v(e, m), v(e, y), h && h.m(y, null), g = !0;
},

@@ -200,3 +200,3 @@ p(o, [_]) {

Y
) : C(
) : j(
/*$$scope*/

@@ -209,3 +209,3 @@ o[4]

h,
E,
D,
o,

@@ -215,3 +215,3 @@ /*$$scope*/

g ? S(
E,
D,
/*$$scope*/

@@ -221,3 +221,3 @@ o[4],

X
) : C(
) : j(
/*$$scope*/

@@ -236,3 +236,3 @@ o[4]

d(o) {
o && D(e), c && c.d(), n && n.d(), p && p.d(o), h && h.d(o);
o && B(e), c && c.d(), n && n.d(), p && p.d(o), h && h.d(o);
}

@@ -257,3 +257,3 @@ };

set image(e) {
this.$$set({ image: e }), A();
this.$$set({ image: e }), E();
}

@@ -264,3 +264,3 @@ get alt() {

set alt(e) {
this.$$set({ alt: e }), A();
this.$$set({ alt: e }), E();
}

@@ -271,3 +271,3 @@ get height() {

set height(e) {
this.$$set({ height: e }), A();
this.$$set({ height: e }), E();
}

@@ -274,0 +274,0 @@ }

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

import { c as g, S as y, i as w, f as m, s as C, a as q, b as z, e as p, d, w as S, h as x, k as E, l as i, x as j, y as A, u as B, o as D, p as F, t as G, m as H, q as I, z as J } from "./index-13d75ad4.js";
import { c as g, S as y, i as w, f as m, s as C, a as q, h as E, k as b, l as d, E as S, m as x, b as z, q as u, F, G, u as H, r as j, v as A, t as B, d as D, g as I, H as J } from "./index-e4da763c.js";
function K(s) {

@@ -6,7 +6,7 @@ q(s, "svelte-1u2sf0x", '.choco-checkbox.svelte-1u2sf0x.svelte-1u2sf0x.svelte-1u2sf0x{position:relative;display:inline-flex;align-items:center}.choco-checkbox.svelte-1u2sf0x.svelte-1u2sf0x.svelte-1u2sf0x:active{outline:0}.choco-checkbox.svelte-1u2sf0x input[type=checkbox].svelte-1u2sf0x.svelte-1u2sf0x{position:absolute;width:0;height:0;opacity:0}.choco-checkbox__mark.svelte-1u2sf0x.svelte-1u2sf0x.svelte-1u2sf0x{position:relative;flex-shrink:0;margin-right:0.5rem;width:30px;height:30px;border:2px solid #000;border-radius:0.5rem}.choco-checkbox__mark.svelte-1u2sf0x.svelte-1u2sf0x.svelte-1u2sf0x:after{content:"";position:absolute;left:8.5px;top:2px;width:10px;height:18px;display:none;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg)}.choco-checkbox__text.svelte-1u2sf0x.svelte-1u2sf0x.svelte-1u2sf0x{font-size:1rem;line-height:1.125rem;font-weight:500}.choco-checkbox.svelte-1u2sf0x input[type=checkbox].svelte-1u2sf0x:checked~.choco-checkbox__mark.svelte-1u2sf0x{background-color:var(--primary);border-color:var(--primary)}.choco-checkbox.svelte-1u2sf0x input[type=checkbox].svelte-1u2sf0x:checked~.choco-checkbox__mark.svelte-1u2sf0x:after{display:block}');

function L(s) {
let e, l, b, n, r, u, h, o, c, v, k;
let e, l, v, n, r, i, h, o, c, p, k;
const _ = (
/*#slots*/
s[3].default
), a = z(
), a = E(
_,

@@ -20,10 +20,10 @@ s,

c() {
e = p("label"), l = p("input"), b = d(), n = p("span"), r = d(), u = p("span"), h = S(
e = b("label"), l = b("input"), v = d(), n = b("span"), r = d(), i = b("span"), h = S(
/*label*/
s[0]
), o = d(), a && a.c(), x(l, "type", "checkbox"), l.value = /*value*/
s[1], x(l, "class", "svelte-1u2sf0x"), x(n, "class", "choco-checkbox__mark svelte-1u2sf0x"), x(u, "class", "choco-checkbox__text svelte-1u2sf0x"), x(e, "class", "choco-checkbox svelte-1u2sf0x");
), o = d(), a && a.c(), x(l, "type", "checkbox"), l.value = /*val*/
s[1], x(l, "class", "svelte-1u2sf0x"), x(n, "class", "choco-checkbox__mark svelte-1u2sf0x"), x(i, "class", "choco-checkbox__text svelte-1u2sf0x"), x(e, "class", "choco-checkbox svelte-1u2sf0x");
},
m(t, f) {
E(t, e, f), i(e, l), i(e, b), i(e, n), i(e, r), i(e, u), i(u, h), i(e, o), a && a.m(e, null), c = !0, v || (k = j(
z(t, e, f), u(e, l), u(e, v), u(e, n), u(e, r), u(e, i), u(i, h), u(e, o), a && a.m(e, null), c = !0, p || (k = F(
l,

@@ -33,9 +33,9 @@ "input",

s[4]
), v = !0);
), p = !0);
},
p(t, [f]) {
(!c || f & /*value*/
2) && (l.value = /*value*/
(!c || f & /*val*/
2) && (l.value = /*val*/
t[1]), (!c || f & /*label*/
1) && A(
1) && G(
h,

@@ -45,3 +45,3 @@ /*label*/

), a && a.p && (!c || f & /*$$scope*/
4) && B(
4) && H(
a,

@@ -52,3 +52,3 @@ _,

t[2],
c ? F(
c ? A(
_,

@@ -59,3 +59,3 @@ /*$$scope*/

null
) : D(
) : j(
/*$$scope*/

@@ -68,9 +68,9 @@ t[2]

i(t) {
c || (G(a, t), c = !0);
c || (B(a, t), c = !0);
},
o(t) {
H(a, t), c = !1;
D(a, t), c = !1;
},
d(t) {
t && I(e), a && a.d(t), v = !1, k();
t && I(e), a && a.d(t), p = !1, k();
}

@@ -80,3 +80,3 @@ };

function M(s, e, l) {
let { $$slots: b = {}, $$scope: n } = e, { label: r = "", value: u } = e;
let { $$slots: v = {}, $$scope: n } = e, { label: r = "" } = e, { val: i } = e;
function h(o) {

@@ -86,8 +86,8 @@ J.call(this, s, o);

return s.$$set = (o) => {
"label" in o && l(0, r = o.label), "value" in o && l(1, u = o.value), "$$scope" in o && l(2, n = o.$$scope);
}, [r, u, n, b, h];
"label" in o && l(0, r = o.label), "val" in o && l(1, i = o.val), "$$scope" in o && l(2, n = o.$$scope);
}, [r, i, n, v, h];
}
class N extends y {
constructor(e) {
super(), w(this, e, M, L, C, { label: 0, value: 1 }, K);
super(), w(this, e, M, L, C, { label: 0, val: 1 }, K);
}

@@ -100,12 +100,12 @@ get label() {

}
get value() {
get val() {
return this.$$.ctx[1];
}
set value(e) {
this.$$set({ value: e }), m();
set val(e) {
this.$$set({ val: e }), m();
}
}
customElements.define("choco-checkbox", g(N, { label: {}, value: {} }, ["default"], [], !0));
customElements.define("choco-checkbox", g(N, { label: {}, val: {} }, ["default"], [], !0));
export {
N as default
};
{
"name": "choco-web-components-test",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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