UNPKG

@svelkit/scoped-baseline

Version:

> A scoped baseline component to progressively kickstart an elegant, consistent, and simple baseline to build upon.

89 lines (74 loc) 2.34 kB
import { SvelteComponentDev, init, safe_not_equal, dispatch_dev, create_slot, validate_slots, update_slot, transition_in, transition_out } from 'svelte/internal'; /* src/scoped-baseline.svelte generated by Svelte v3.24.0 */ function create_fragment(ctx) { let current; const default_slot_template = /*$$slots*/ ctx[1].default; const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[0], null); const block = { c: function create() { if (default_slot) default_slot.c(); }, l: function claim(nodes) { throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option"); }, m: function mount(target, anchor) { if (default_slot) { default_slot.m(target, anchor); } current = true; }, p: function update(ctx, [dirty]) { if (default_slot) { if (default_slot.p && dirty & /*$$scope*/ 1) { update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[0], dirty, null, null); } } }, i: function intro(local) { if (current) return; transition_in(default_slot, local); current = true; }, o: function outro(local) { transition_out(default_slot, local); current = false; }, d: function destroy(detaching) { if (default_slot) default_slot.d(detaching); } }; dispatch_dev("SvelteRegisterBlock", { block, id: create_fragment.name, type: "component", source: "", ctx }); return block; } function instance($$self, $$props, $$invalidate) { const writable_props = []; Object.keys($$props).forEach(key => { if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<Scoped_baseline> was created with unknown prop '${key}'`); }); let { $$slots = {}, $$scope } = $$props; validate_slots("Scoped_baseline", $$slots, ['default']); $$self.$set = $$props => { if ("$$scope" in $$props) $$invalidate(0, $$scope = $$props.$$scope); }; return [$$scope, $$slots]; } class Scoped_baseline extends SvelteComponentDev { constructor(options) { super(options); init(this, options, instance, create_fragment, safe_not_equal, {}); dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Scoped_baseline", options, id: create_fragment.name }); } } export default Scoped_baseline; //# sourceMappingURL=scoped-baseline.js.map