You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@spectrum-web-components/underlay

Package Overview
Dependencies
Maintainers
7
Versions
331
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/underlay - npm Package Compare versions

Comparing version

to
0.9.0

6

package.json
{
"name": "@spectrum-web-components/underlay",
"version": "0.9.0-devmode.0+7b0ea531e",
"version": "0.9.0",
"publishConfig": {

@@ -60,3 +60,3 @@ "access": "public"

"dependencies": {
"@spectrum-web-components/base": "^0.6.0",
"@spectrum-web-components/base": "^0.7.0",
"tslib": "^2.0.0"

@@ -73,3 +73,3 @@ },

],
"gitHead": "7b0ea531e9c7225c8964c5429bc5fd005618b80e"
"gitHead": "05c81318844160db3f8156144106e643507fef97"
}

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

import { Underlay } from "./src/Underlay.js";
customElements.define("sp-underlay", Underlay);
import{Underlay as e}from"./src/Underlay.js";customElements.define("sp-underlay",e);
//# sourceMappingURL=sp-underlay.js.map

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

export * from "./Underlay.js";
export*from"./Underlay.js";
//# sourceMappingURL=index.js.map

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

import { css } from "@spectrum-web-components/base";
const styles = css`
import{css as a}from"@spectrum-web-components/base";const i=a`
:host{opacity:0;pointer-events:none;transition:transform var(--spectrum-global-animation-duration-100,.13s) ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s) ease-in-out,visibility 0ms linear var(--spectrum-global-animation-duration-100,.13s);visibility:hidden}:host([open]){opacity:1;pointer-events:auto;transition-delay:0ms;visibility:visible}:host{--spectrum-dialog-confirm-background-entry-animation-delay:0ms;--spectrum-dialog-confirm-background-exit-animation-ease:cubic-bezier(0.5,0,1,1);--spectrum-dialog-confirm-background-entry-animation-ease:cubic-bezier(0,0,0.4,1)}:host{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(

@@ -22,4 +21,3 @@ --spectrum-dialog-confirm-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)

)}
`;
export default styles;
`;export default i;
//# sourceMappingURL=spectrum-underlay.css.js.map

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

import { css } from "@spectrum-web-components/base";
const styles = css`
import{css as a}from"@spectrum-web-components/base";const i=a`
:host{opacity:0;pointer-events:none;transition:transform var(--spectrum-global-animation-duration-100,.13s) ease-in-out,opacity var(--spectrum-global-animation-duration-100,.13s) ease-in-out,visibility 0ms linear var(--spectrum-global-animation-duration-100,.13s);visibility:hidden}:host([open]){opacity:1;pointer-events:auto;transition-delay:0ms;visibility:visible}:host{--spectrum-dialog-confirm-background-entry-animation-delay:0ms;--spectrum-dialog-confirm-background-exit-animation-ease:cubic-bezier(0.5,0,1,1);--spectrum-dialog-confirm-background-entry-animation-ease:cubic-bezier(0,0,0.4,1)}:host{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(

@@ -22,4 +21,3 @@ --spectrum-dialog-confirm-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)

)}
`;
export default styles;
`;export default i;
//# sourceMappingURL=underlay.css.js.map

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

var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __decorateClass = (decorators, target, key, kind) => {
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
for (var i = decorators.length - 1, decorator; i >= 0; i--)
if (decorator = decorators[i])
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
if (kind && result)
__defProp(target, key, result);
return result;
};
import {
html,
SpectrumElement
} from "@spectrum-web-components/base";
import { property } from "@spectrum-web-components/base/src/decorators.js";
import styles from "./underlay.css.js";
export class Underlay extends SpectrumElement {
constructor() {
super(...arguments);
this.open = false;
}
static get styles() {
return [styles];
}
render() {
return html``;
}
}
__decorateClass([
property({ type: Boolean, reflect: true })
], Underlay.prototype, "open", 2);
var u=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var m=(l,r,o,t)=>{for(var e=t>1?void 0:t?a(r,o):r,p=l.length-1,s;p>=0;p--)(s=l[p])&&(e=(t?s(r,o,e):s(e))||e);return t&&e&&u(r,o,e),e};import{html as i,SpectrumElement as c}from"@spectrum-web-components/base";import{property as n}from"@spectrum-web-components/base/src/decorators.js";import y from"./underlay.css.js";export class Underlay extends c{constructor(){super(...arguments);this.open=!1}static get styles(){return[y]}render(){return i``}}m([n({type:Boolean,reflect:!0})],Underlay.prototype,"open",2);
//# sourceMappingURL=Underlay.js.map

@@ -1,12 +0,4 @@

import { html } from "@spectrum-web-components/base";
import "@spectrum-web-components/underlay/sp-underlay.js";
export default {
title: "Underlay",
component: "sp-underlay"
};
export const Default = () => {
return html`
import{html as e}from"@spectrum-web-components/base";import"@spectrum-web-components/underlay/sp-underlay.js";export default{title:"Underlay",component:"sp-underlay"};export const Default=()=>e`
<sp-underlay open></sp-underlay>
`;
};
//# sourceMappingURL=underlay.stories.js.map

@@ -1,7 +0,4 @@

import "@spectrum-web-components/underlay/sp-underlay.js";
import { html } from "lit";
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
measureFixtureCreation(html`
import"@spectrum-web-components/underlay/sp-underlay.js";import{html as r}from"lit";import{measureFixtureCreation as e}from"../../../../test/benchmark/helpers.js";e(r`
<sp-underlay open></sp-underlay>
`);
//# sourceMappingURL=basic-test.js.map

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

import * as stories from "../stories/underlay.stories.js";
import { regressVisuals } from "../../../test/visual/test.js";
regressVisuals("UnderlayStories", stories);
import*as r from"../stories/underlay.stories.js";import{regressVisuals as s}from"../../../test/visual/test.js";s("UnderlayStories",r);
//# sourceMappingURL=underlay.test-vrt.js.map

@@ -1,16 +0,6 @@

import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
import "@spectrum-web-components/underlay/sp-underlay.js";
import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
describe("Underlay", () => {
testForLitDevWarnings(async () => await fixture(html`
import{elementUpdated as t,expect as l,fixture as a,html as r}from"@open-wc/testing";import"@spectrum-web-components/underlay/sp-underlay.js";import{testForLitDevWarnings as i}from"../../../test/testing-helpers.js";describe("Underlay",()=>{i(async()=>await a(r`
<sp-underlay></sp-underlay>
`));
it("loads default underlay accessibly", async () => {
const el = await fixture(html`
`)),it("loads default underlay accessibly",async()=>{const e=await a(r`
<sp-underlay></sp-underlay>
`);
await elementUpdated(el);
await expect(el).to.be.accessible();
});
});
`);await t(e),await l(e).to.be.accessible()})});
//# sourceMappingURL=underlay.test.js.map

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

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