@spectrum-web-components/underlay 0.8.5 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +0 -57
- package/package.json +4 -4
- package/src/Underlay.js.map +1 -1
- package/src/spectrum-underlay.css.js +1 -1
- package/src/spectrum-underlay.css.js.map +1 -1
- package/src/underlay.css.js +1 -1
- package/src/underlay.css.js.map +1 -1
- package/test/benchmark/basic-test.js +18 -0
- package/test/benchmark/basic-test.js.map +1 -0
- package/test/underlay.test-vrt.js +15 -0
- package/test/underlay.test-vrt.js.map +1 -0
- package/test/underlay.test.js +23 -0
- package/test/underlay.test.js.map +1 -0
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ When leveraging an `<sp-underlay>` in conjunction with overlay content, place it
|
|
|
55
55
|
</sp-button>
|
|
56
56
|
|
|
57
57
|
<sp-underlay></sp-underlay>
|
|
58
|
-
<sp-dialog size="
|
|
58
|
+
<sp-dialog size="s">
|
|
59
59
|
<h1 slot="heading">Hello, I'm an overlay!</h1>
|
|
60
60
|
<p>Enjoy your day...</p>
|
|
61
61
|
<sp-button
|
package/custom-elements.json
CHANGED
|
@@ -66,63 +66,6 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"kind": "javascript-module",
|
|
72
|
-
"path": "src/index.ts",
|
|
73
|
-
"declarations": [],
|
|
74
|
-
"exports": [
|
|
75
|
-
{
|
|
76
|
-
"kind": "js",
|
|
77
|
-
"name": "*",
|
|
78
|
-
"declaration": {
|
|
79
|
-
"name": "*",
|
|
80
|
-
"package": "./Underlay.js"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"kind": "javascript-module",
|
|
87
|
-
"path": "src/spectrum-underlay.css.ts",
|
|
88
|
-
"declarations": [
|
|
89
|
-
{
|
|
90
|
-
"kind": "variable",
|
|
91
|
-
"name": "styles",
|
|
92
|
-
"default": "css`\n: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(\n--spectrum-dialog-confirm-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-ease,var(--spectrum-global-animation-linear)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)\n),visibility 0ms linear calc(var(\n--spectrum-dialog-confirm-background-exit-animation-delay,\nvar(--spectrum-global-animation-duration-200)\n) + var(\n--spectrum-dialog-confirm-background-exit-animation-duration,\nvar(--spectrum-global-animation-duration-300)\n));z-index:1}:host([open]){transition:opacity var(\n--spectrum-dialog-confirm-background-entry-animation-duration,var(--spectrum-global-animation-duration-600)\n) var(\n--spectrum-dialog-confirm-background-entry-animation-ease,var(--spectrum-global-animation-linear)\n) var(--spectrum-dialog-confirm-background-entry-animation-delay,0ms)}:host{background:var(\n--spectrum-dialog-confirm-overlay-background-color,var(--spectrum-alias-background-color-modal-overlay)\n)}\n`"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"exports": [
|
|
96
|
-
{
|
|
97
|
-
"kind": "js",
|
|
98
|
-
"name": "default",
|
|
99
|
-
"declaration": {
|
|
100
|
-
"name": "styles",
|
|
101
|
-
"module": "src/spectrum-underlay.css.ts"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"kind": "javascript-module",
|
|
108
|
-
"path": "src/underlay.css.ts",
|
|
109
|
-
"declarations": [
|
|
110
|
-
{
|
|
111
|
-
"kind": "variable",
|
|
112
|
-
"name": "styles",
|
|
113
|
-
"default": "css`\n: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(\n--spectrum-dialog-confirm-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-ease,var(--spectrum-global-animation-linear)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)\n),visibility 0ms linear calc(var(\n--spectrum-dialog-confirm-background-exit-animation-delay,\nvar(--spectrum-global-animation-duration-200)\n) + var(\n--spectrum-dialog-confirm-background-exit-animation-duration,\nvar(--spectrum-global-animation-duration-300)\n));z-index:1}:host([open]){transition:opacity var(\n--spectrum-dialog-confirm-background-entry-animation-duration,var(--spectrum-global-animation-duration-600)\n) var(\n--spectrum-dialog-confirm-background-entry-animation-ease,var(--spectrum-global-animation-linear)\n) var(--spectrum-dialog-confirm-background-entry-animation-delay,0ms)}:host{background:var(\n--spectrum-dialog-confirm-overlay-background-color,var(--spectrum-alias-background-color-modal-overlay)\n)}\n`"
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
"exports": [
|
|
117
|
-
{
|
|
118
|
-
"kind": "js",
|
|
119
|
-
"name": "default",
|
|
120
|
-
"declaration": {
|
|
121
|
-
"name": "styles",
|
|
122
|
-
"module": "src/underlay.css.ts"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
69
|
}
|
|
127
70
|
]
|
|
128
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/underlay",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"lit-html"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@spectrum-web-components/base": "^0.5.
|
|
47
|
+
"@spectrum-web-components/base": "^0.5.7",
|
|
48
48
|
"tslib": "^2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@spectrum-css/underlay": "^2.0.
|
|
51
|
+
"@spectrum-css/underlay": "^2.0.29"
|
|
52
52
|
},
|
|
53
53
|
"types": "./src/index.d.ts",
|
|
54
54
|
"customElements": "custom-elements.json",
|
|
55
55
|
"sideEffects": [
|
|
56
56
|
"./sp-*.js"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "275ee61b152ac3eed0cd1603d8eab2aec90876a0"
|
|
59
59
|
}
|
package/src/Underlay.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Underlay.js","sourceRoot":"","sources":["Underlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EACJ,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,eAAe;IAA7C;;QAMW,SAAI,GAAG,KAAK,CAAC;IAKxB,CAAC;IAVU,MAAM,
|
|
1
|
+
{"version":3,"file":"Underlay.js","sourceRoot":"","sources":["Underlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EACJ,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAEvC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,eAAe;IAA7C;;QAMW,SAAI,GAAG,KAAK,CAAC;IAKxB,CAAC;IAVU,MAAM,KAAc,MAAM;QAC7B,OAAO,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;IAKkB,MAAM;QACrB,OAAO,IAAI,CAAA,EAAE,CAAC;IAClB,CAAC;CACJ;AALG;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCACvB","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from './underlay.css.js';\n\n/**\n * @element sp-underlay\n */\nexport class Underlay extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n protected override render(): TemplateResult {\n return html``;\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright
|
|
2
|
+
Copyright 2022 Adobe. All rights reserved.
|
|
3
3
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spectrum-underlay.css.js","sourceRoot":"","sources":["spectrum-underlay.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright
|
|
1
|
+
{"version":3,"file":"spectrum-underlay.css.js","sourceRoot":"","sources":["spectrum-underlay.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n: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(\n--spectrum-dialog-confirm-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-ease,var(--spectrum-global-animation-linear)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)\n),visibility 0ms linear calc(var(\n--spectrum-dialog-confirm-background-exit-animation-delay,\nvar(--spectrum-global-animation-duration-200)\n) + var(\n--spectrum-dialog-confirm-background-exit-animation-duration,\nvar(--spectrum-global-animation-duration-300)\n));z-index:1}:host([open]){transition:opacity var(\n--spectrum-dialog-confirm-background-entry-animation-duration,var(--spectrum-global-animation-duration-600)\n) var(\n--spectrum-dialog-confirm-background-entry-animation-ease,var(--spectrum-global-animation-linear)\n) var(--spectrum-dialog-confirm-background-entry-animation-delay,0ms)}:host{background:var(\n--spectrum-dialog-confirm-overlay-background-color,var(--spectrum-alias-background-color-modal-overlay)\n)}\n`;\nexport default styles;"]}
|
package/src/underlay.css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright
|
|
2
|
+
Copyright 2022 Adobe. All rights reserved.
|
|
3
3
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
5
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
package/src/underlay.css.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"underlay.css.js","sourceRoot":"","sources":["underlay.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright
|
|
1
|
+
{"version":3,"file":"underlay.css.js","sourceRoot":"","sources":["underlay.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n: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(\n--spectrum-dialog-confirm-background-exit-animation-duration,var(--spectrum-global-animation-duration-300)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-ease,var(--spectrum-global-animation-linear)\n) var(\n--spectrum-dialog-confirm-background-exit-animation-delay,var(--spectrum-global-animation-duration-200)\n),visibility 0ms linear calc(var(\n--spectrum-dialog-confirm-background-exit-animation-delay,\nvar(--spectrum-global-animation-duration-200)\n) + var(\n--spectrum-dialog-confirm-background-exit-animation-duration,\nvar(--spectrum-global-animation-duration-300)\n));z-index:1}:host([open]){transition:opacity var(\n--spectrum-dialog-confirm-background-entry-animation-duration,var(--spectrum-global-animation-duration-600)\n) var(\n--spectrum-dialog-confirm-background-entry-animation-ease,var(--spectrum-global-animation-linear)\n) var(--spectrum-dialog-confirm-background-entry-animation-delay,0ms)}:host{background:var(\n--spectrum-dialog-confirm-overlay-background-color,var(--spectrum-alias-background-color-modal-overlay)\n)}\n`;\nexport default styles;"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import '@spectrum-web-components/underlay/sp-underlay.js';
|
|
13
|
+
import { html } from 'lit';
|
|
14
|
+
import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';
|
|
15
|
+
measureFixtureCreation(html `
|
|
16
|
+
<sp-underlay open></sp-underlay>
|
|
17
|
+
`);
|
|
18
|
+
//# sourceMappingURL=basic-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basic-test.js","sourceRoot":"","sources":["basic-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,kDAAkD,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E,sBAAsB,CAAC,IAAI,CAAA;;CAE1B,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/underlay/sp-underlay.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-underlay open></sp-underlay>\n`);\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import * as stories from '../stories/underlay.stories.js';
|
|
13
|
+
import { regressVisuals } from '../../../test/visual/test.js';
|
|
14
|
+
regressVisuals('UnderlayStories', stories);
|
|
15
|
+
//# sourceMappingURL=underlay.test-vrt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"underlay.test-vrt.js","sourceRoot":"","sources":["underlay.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/underlay.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('UnderlayStories', stories);\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
|
|
13
|
+
import '../sp-underlay.js';
|
|
14
|
+
describe('Underlay', () => {
|
|
15
|
+
it('loads default underlay accessibly', async () => {
|
|
16
|
+
const el = await fixture(html `
|
|
17
|
+
<sp-underlay></sp-underlay>
|
|
18
|
+
`);
|
|
19
|
+
await elementUpdated(el);
|
|
20
|
+
await expect(el).to.be.accessible();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=underlay.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"underlay.test.js","sourceRoot":"","sources":["underlay.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,mBAAmB,CAAC;AAG3B,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACtB,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,EAAE,GAAG,MAAM,OAAO,CACpB,IAAI,CAAA;;aAEH,CACJ,CAAC;QAEF,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '../sp-underlay.js';\nimport { Underlay } from '../';\n\ndescribe('Underlay', () => {\n it('loads default underlay accessibly', async () => {\n const el = await fixture<Underlay>(\n html`\n <sp-underlay></sp-underlay>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"]}
|