@vtmn/svelte
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -75,10 +75,2 @@ (function (global, factory) { | ||
} | ||
function compute_rest_props(props, keys) { | ||
const rest = {}; | ||
keys = new Set(keys); | ||
for (const k in props) | ||
if (!keys.has(k) && k[0] !== '$') | ||
rest[k] = props[k]; | ||
return rest; | ||
} | ||
@@ -658,3 +650,3 @@ // Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM | ||
}, | ||
/*$$restProps*/ ctx[5] | ||
/*$$props*/ ctx[5] | ||
]; | ||
@@ -754,3 +746,3 @@ | ||
].join(" "))) && { class: button_class_value }, | ||
dirty & /*$$restProps*/ 32 && /*$$restProps*/ ctx[5] | ||
dirty & /*$$props*/ 32 && /*$$props*/ ctx[5] | ||
])); | ||
@@ -777,4 +769,2 @@ }, | ||
function instance($$self, $$props, $$invalidate) { | ||
const omit_props_names = ["variant","size","iconLeft","iconRight","iconAlone"]; | ||
let $$restProps = compute_rest_props($$props, omit_props_names); | ||
let { $$slots: slots = {}, $$scope } = $$props; | ||
@@ -788,4 +778,3 @@ let { variant = "primary" } = $$props; | ||
$$self.$$set = $$new_props => { | ||
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props)); | ||
$$invalidate(5, $$restProps = compute_rest_props($$props, omit_props_names)); | ||
$$invalidate(5, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); | ||
if ("variant" in $$new_props) $$invalidate(0, variant = $$new_props.variant); | ||
@@ -799,3 +788,4 @@ if ("size" in $$new_props) $$invalidate(1, size = $$new_props.size); | ||
return [variant, size, iconLeft, iconRight, iconAlone, $$restProps, $$scope, slots]; | ||
$$props = exclude_internal_props($$props); | ||
return [variant, size, iconLeft, iconRight, iconAlone, $$props, $$scope, slots]; | ||
} | ||
@@ -802,0 +792,0 @@ |
@@ -75,10 +75,2 @@ (function (global, factory) { | ||
} | ||
function compute_rest_props(props, keys) { | ||
const rest = {}; | ||
keys = new Set(keys); | ||
for (const k in props) | ||
if (!keys.has(k) && k[0] !== '$') | ||
rest[k] = props[k]; | ||
return rest; | ||
} | ||
@@ -506,3 +498,3 @@ // Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM | ||
}, | ||
/*$$restProps*/ ctx[3] | ||
/*$$props*/ ctx[3] | ||
]; | ||
@@ -545,3 +537,3 @@ | ||
].filter(Boolean).join(" "))) && { class: a_class_value }, | ||
dirty & /*$$restProps*/ 8 && /*$$restProps*/ ctx[3] | ||
dirty & /*$$props*/ 8 && /*$$props*/ ctx[3] | ||
])); | ||
@@ -566,4 +558,2 @@ }, | ||
function instance($$self, $$props, $$invalidate) { | ||
const omit_props_names = ["size","standalone","iconAlong"]; | ||
let $$restProps = compute_rest_props($$props, omit_props_names); | ||
let { $$slots: slots = {}, $$scope } = $$props; | ||
@@ -575,4 +565,3 @@ let { size = "medium" } = $$props; | ||
$$self.$$set = $$new_props => { | ||
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props)); | ||
$$invalidate(3, $$restProps = compute_rest_props($$props, omit_props_names)); | ||
$$invalidate(3, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); | ||
if ("size" in $$new_props) $$invalidate(0, size = $$new_props.size); | ||
@@ -584,3 +573,4 @@ if ("standalone" in $$new_props) $$invalidate(1, standalone = $$new_props.standalone); | ||
return [size, standalone, iconAlong, $$restProps, $$scope, slots]; | ||
$$props = exclude_internal_props($$props); | ||
return [size, standalone, iconAlong, $$props, $$scope, slots]; | ||
} | ||
@@ -587,0 +577,0 @@ |
@@ -39,10 +39,2 @@ (function (global, factory) { | ||
} | ||
function compute_rest_props(props, keys) { | ||
const rest = {}; | ||
keys = new Set(keys); | ||
for (const k in props) | ||
if (!keys.has(k) && k[0] !== '$') | ||
rest[k] = props[k]; | ||
return rest; | ||
} | ||
@@ -519,3 +511,3 @@ // Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM | ||
{ placeholder: /*placeholder*/ ctx[2] }, | ||
/*$$restProps*/ ctx[7] | ||
/*$$props*/ ctx[7] | ||
]; | ||
@@ -571,3 +563,3 @@ | ||
dirty & /*placeholder*/ 4 && { placeholder: /*placeholder*/ ctx[2] }, | ||
dirty & /*$$restProps*/ 128 && /*$$restProps*/ ctx[7] | ||
dirty & /*$$props*/ 128 && /*$$props*/ ctx[7] | ||
])); | ||
@@ -605,4 +597,2 @@ | ||
function instance($$self, $$props, $$invalidate) { | ||
const omit_props_names = ["identifier","labelText","placeholder","disabled","helperText","valid","error"]; | ||
let $$restProps = compute_rest_props($$props, omit_props_names); | ||
let { identifier } = $$props; | ||
@@ -617,4 +607,3 @@ let { labelText } = $$props; | ||
$$self.$$set = $$new_props => { | ||
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props)); | ||
$$invalidate(7, $$restProps = compute_rest_props($$props, omit_props_names)); | ||
$$invalidate(7, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); | ||
if ("identifier" in $$new_props) $$invalidate(0, identifier = $$new_props.identifier); | ||
@@ -629,2 +618,4 @@ if ("labelText" in $$new_props) $$invalidate(1, labelText = $$new_props.labelText); | ||
$$props = exclude_internal_props($$props); | ||
return [ | ||
@@ -638,3 +629,3 @@ identifier, | ||
error, | ||
$$restProps | ||
$$props | ||
]; | ||
@@ -641,0 +632,0 @@ } |
{ | ||
"name": "@vtmn/svelte", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "Decathlon Design System - Vitamin Svelte library", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
], | ||
"gitHead": "a2b93eeb8175744d47a861d71400598c36a572d9" | ||
"gitHead": "332918cf5f284aab4501478e6a1ec8344562ed30" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168971
4405