UNPKG

@svelkit/scoped-baseline

Version:

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

91 lines (75 loc) 2.33 kB
'use strict'; const internal = require('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 = internal.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) { internal.update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[0], dirty, null, null); } } }, i: function intro(local) { if (current) return; internal.transition_in(default_slot, local); current = true; }, o: function outro(local) { internal.transition_out(default_slot, local); current = false; }, d: function destroy(detaching) { if (default_slot) default_slot.d(detaching); } }; internal.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; internal.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 internal.SvelteComponentDev { constructor(options) { super(options); internal.init(this, options, instance, create_fragment, internal.safe_not_equal, {}); internal.dispatch_dev("SvelteRegisterComponent", { component: this, tagName: "Scoped_baseline", options, id: create_fragment.name }); } } module.exports = Scoped_baseline; //# sourceMappingURL=scoped-baseline.js.map