@spectrum-web-components/underlay 1.9.1-nightly.20251028225812 → 1.9.1-nightly.20251029132910
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/package.json +71 -71
- package/CHANGELOG.md +0 -489
- package/src/Underlay.d.ts +0 -27
- package/src/Underlay.dev.js +0 -50
- package/src/Underlay.dev.js.map +0 -7
- package/src/Underlay.js +0 -2
- package/src/Underlay.js.map +0 -7
- package/src/index.d.ts +0 -12
- package/src/index.dev.js +0 -3
- package/src/index.dev.js.map +0 -7
- package/src/index.js +0 -2
- package/src/index.js.map +0 -7
- package/src/spectrum-underlay.css.d.ts +0 -2
- package/src/spectrum-underlay.css.dev.js +0 -7
- package/src/spectrum-underlay.css.dev.js.map +0 -7
- package/src/underlay-overrides.css.d.ts +0 -2
- package/src/underlay-overrides.css.dev.js +0 -7
- package/src/underlay-overrides.css.dev.js.map +0 -7
- package/src/underlay.css.d.ts +0 -2
- package/src/underlay.css.dev.js +0 -7
- package/src/underlay.css.dev.js.map +0 -7
- package/stories/underlay.stories.js +0 -13
- package/stories/underlay.stories.js.map +0 -7
- package/test/benchmark/basic-test.js +0 -8
- package/test/benchmark/basic-test.js.map +0 -7
- package/test/underlay-memory.test.js +0 -8
- package/test/underlay-memory.test.js.map +0 -7
- package/test/underlay.test-vrt.js +0 -5
- package/test/underlay.test-vrt.js.map +0 -7
- package/test/underlay.test.js +0 -32
- package/test/underlay.test.js.map +0 -7
package/package.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
"description": "",
|
|
8
|
-
"license": "Apache-2.0",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/adobe/spectrum-web-components.git",
|
|
12
|
-
"directory": "1st-gen/packages/underlay"
|
|
13
|
-
},
|
|
14
|
-
"author": "Adobe",
|
|
15
|
-
"homepage": "https://opensource.adobe.com/spectrum-web-components/components/underlay",
|
|
16
|
-
"bugs": {
|
|
17
|
-
"url": "https://github.com/adobe/spectrum-web-components/issues"
|
|
18
|
-
},
|
|
19
|
-
"main": "./src/index.js",
|
|
20
|
-
"module": "./src/index.js",
|
|
21
|
-
"type": "module",
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"development": "./src/index.dev.js",
|
|
25
|
-
"default": "./src/index.js"
|
|
2
|
+
"name": "@spectrum-web-components/underlay",
|
|
3
|
+
"version": "1.9.1-nightly.20251029132910",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
26
6
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
7
|
+
"description": "",
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/adobe/spectrum-web-components.git",
|
|
12
|
+
"directory": "1st-gen/packages/underlay"
|
|
31
13
|
},
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
14
|
+
"author": "Adobe",
|
|
15
|
+
"homepage": "https://opensource.adobe.com/spectrum-web-components/components/underlay",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/adobe/spectrum-web-components/issues"
|
|
35
18
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
19
|
+
"main": "./src/index.js",
|
|
20
|
+
"module": "./src/index.js",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"development": "./src/index.dev.js",
|
|
25
|
+
"default": "./src/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
"./src/Underlay.js": {
|
|
29
|
+
"development": "./src/Underlay.dev.js",
|
|
30
|
+
"default": "./src/Underlay.js"
|
|
31
|
+
},
|
|
32
|
+
"./src/index.js": {
|
|
33
|
+
"development": "./src/index.dev.js",
|
|
34
|
+
"default": "./src/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./src/underlay-overrides.css.js": "./src/underlay-overrides.css.js",
|
|
37
|
+
"./src/underlay.css.js": "./src/underlay.css.js",
|
|
38
|
+
"./sp-underlay.js": {
|
|
39
|
+
"development": "./sp-underlay.dev.js",
|
|
40
|
+
"default": "./sp-underlay.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"**/*.d.ts",
|
|
48
|
+
"**/*.js",
|
|
49
|
+
"**/*.js.map",
|
|
50
|
+
"custom-elements.json",
|
|
51
|
+
"!stories/",
|
|
52
|
+
"!test/"
|
|
53
|
+
],
|
|
54
|
+
"keywords": [
|
|
55
|
+
"design-system",
|
|
56
|
+
"spectrum",
|
|
57
|
+
"adobe",
|
|
58
|
+
"adobe-spectrum",
|
|
59
|
+
"web components",
|
|
60
|
+
"web-components",
|
|
61
|
+
"lit-element",
|
|
62
|
+
"lit-html",
|
|
63
|
+
"component",
|
|
64
|
+
"css"
|
|
65
|
+
],
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@spectrum-web-components/base": "1.9.1-nightly.20251029132910"
|
|
68
|
+
},
|
|
69
|
+
"types": "./src/index.d.ts",
|
|
70
|
+
"customElements": "custom-elements.json",
|
|
71
|
+
"sideEffects": [
|
|
72
|
+
"./sp-*.js",
|
|
73
|
+
"./**/*.dev.js"
|
|
74
|
+
]
|
|
75
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,489 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
## 1.9.1-nightly.20251028225812
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies []:
|
|
8
|
-
- @spectrum-web-components/base@1.9.1-nightly.20251028225812
|
|
9
|
-
|
|
10
|
-
## 1.9.0
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- Updated dependencies []:
|
|
15
|
-
- @spectrum-web-components/base@1.9.0
|
|
16
|
-
|
|
17
|
-
## 1.8.0
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- Updated dependencies []:
|
|
22
|
-
- @spectrum-web-components/base@1.8.0
|
|
23
|
-
|
|
24
|
-
## 1.7.0
|
|
25
|
-
|
|
26
|
-
### Patch Changes
|
|
27
|
-
|
|
28
|
-
- Updated dependencies []:
|
|
29
|
-
- @spectrum-web-components/base@1.7.0
|
|
30
|
-
|
|
31
|
-
## 1.6.0
|
|
32
|
-
|
|
33
|
-
### Patch Changes
|
|
34
|
-
|
|
35
|
-
- Updated dependencies []:
|
|
36
|
-
- @spectrum-web-components/base@1.6.0
|
|
37
|
-
|
|
38
|
-
## 1.5.0
|
|
39
|
-
|
|
40
|
-
### Patch Changes
|
|
41
|
-
|
|
42
|
-
- [#5271](https://github.com/adobe/spectrum-web-components/pull/5271) [`165a904`](https://github.com/adobe/spectrum-web-components/commit/165a904bd01fddea922fe87b181bbf41281f81f0) Thanks [@renovate](https://github.com/apps/renovate)! - Remove unnecessary system theme references to reduce complexity for components that don't need the additional mapping layer.
|
|
43
|
-
|
|
44
|
-
- Updated dependencies []:
|
|
45
|
-
- @spectrum-web-components/base@1.5.0
|
|
46
|
-
|
|
47
|
-
## 1.4.0
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- Updated dependencies []:
|
|
52
|
-
- @spectrum-web-components/base@1.4.0
|
|
53
|
-
|
|
54
|
-
## 1.3.0
|
|
55
|
-
|
|
56
|
-
### Patch Changes
|
|
57
|
-
|
|
58
|
-
- Updated dependencies []:
|
|
59
|
-
- @spectrum-web-components/base@1.3.0
|
|
60
|
-
|
|
61
|
-
All notable changes to this project will be documented in this file.
|
|
62
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
63
|
-
|
|
64
|
-
# [1.2.0](https://github.com/adobe/spectrum-web-components/compare/v1.1.2...v1.2.0) (2025-02-27)
|
|
65
|
-
|
|
66
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
67
|
-
|
|
68
|
-
## [1.1.2](https://github.com/adobe/spectrum-web-components/compare/v1.1.1...v1.1.2) (2025-02-12)
|
|
69
|
-
|
|
70
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
71
|
-
|
|
72
|
-
## [1.1.1](https://github.com/adobe/spectrum-web-components/compare/v1.1.0...v1.1.1) (2025-01-29)
|
|
73
|
-
|
|
74
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
75
|
-
|
|
76
|
-
# [1.1.0](https://github.com/adobe/spectrum-web-components/compare/v1.0.3...v1.1.0) (2025-01-29)
|
|
77
|
-
|
|
78
|
-
### Bug Fixes
|
|
79
|
-
|
|
80
|
-
- lock prerelease versions for Spectrum CSS ([#5014](https://github.com/adobe/spectrum-web-components/issues/5014)) ([8aa7734](https://github.com/adobe/spectrum-web-components/commit/8aa77342f169b75ecbd1c07a2a1050860b182822))
|
|
81
|
-
|
|
82
|
-
## [1.0.1](https://github.com/adobe/spectrum-web-components/compare/v1.0.0...v1.0.1) (2024-11-11)
|
|
83
|
-
|
|
84
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
85
|
-
|
|
86
|
-
# [1.0.0](https://github.com/adobe/spectrum-web-components/compare/v0.49.0...v1.0.0) (2024-10-31)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
89
|
-
|
|
90
|
-
# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)
|
|
91
|
-
|
|
92
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
93
|
-
|
|
94
|
-
## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)
|
|
95
|
-
|
|
96
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
97
|
-
|
|
98
|
-
# [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17)
|
|
99
|
-
|
|
100
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
101
|
-
|
|
102
|
-
## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03)
|
|
103
|
-
|
|
104
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
105
|
-
|
|
106
|
-
## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27)
|
|
107
|
-
|
|
108
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
109
|
-
|
|
110
|
-
# [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
113
|
-
|
|
114
|
-
# [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08)
|
|
115
|
-
|
|
116
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
117
|
-
|
|
118
|
-
# [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
121
|
-
|
|
122
|
-
# [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15)
|
|
123
|
-
|
|
124
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
125
|
-
|
|
126
|
-
# [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11)
|
|
127
|
-
|
|
128
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
129
|
-
|
|
130
|
-
## [0.42.5](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.42.5) (2024-05-24)
|
|
131
|
-
|
|
132
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
133
|
-
|
|
134
|
-
## [0.42.4](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.4) (2024-05-14)
|
|
135
|
-
|
|
136
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
137
|
-
|
|
138
|
-
## [0.42.3](https://github.com/adobe/spectrum-web-components/compare/v0.42.2...v0.42.3) (2024-05-01)
|
|
139
|
-
|
|
140
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
141
|
-
|
|
142
|
-
## [0.42.2](https://github.com/adobe/spectrum-web-components/compare/v0.42.1...v0.42.2) (2024-04-03)
|
|
143
|
-
|
|
144
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
145
|
-
|
|
146
|
-
## [0.42.1](https://github.com/adobe/spectrum-web-components/compare/v0.42.0...v0.42.1) (2024-04-02)
|
|
147
|
-
|
|
148
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
149
|
-
|
|
150
|
-
# [0.42.0](https://github.com/adobe/spectrum-web-components/compare/v0.41.2...v0.42.0) (2024-03-19)
|
|
151
|
-
|
|
152
|
-
### Features
|
|
153
|
-
|
|
154
|
-
- **asset:** use core tokens ([99e76f4](https://github.com/adobe/spectrum-web-components/commit/99e76f4d32e990960b7fa2f0613ed4144adc4f6e))
|
|
155
|
-
|
|
156
|
-
## [0.41.2](https://github.com/adobe/spectrum-web-components/compare/v0.41.1...v0.41.2) (2024-03-05)
|
|
157
|
-
|
|
158
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
159
|
-
|
|
160
|
-
## [0.41.1](https://github.com/adobe/spectrum-web-components/compare/v0.41.0...v0.41.1) (2024-02-22)
|
|
161
|
-
|
|
162
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
163
|
-
|
|
164
|
-
# [0.41.0](https://github.com/adobe/spectrum-web-components/compare/v0.40.5...v0.41.0) (2024-02-13)
|
|
165
|
-
|
|
166
|
-
### Bug Fixes
|
|
167
|
-
|
|
168
|
-
- **tray:** only allow "click" events when they "pointerdown"ed on the Underlay ([#4020](https://github.com/adobe/spectrum-web-components/issues/4020)) ([4f9aa4a](https://github.com/adobe/spectrum-web-components/commit/4f9aa4aac837fc56ab1876aa693bd9d82f0ba26f))
|
|
169
|
-
|
|
170
|
-
## [0.40.5](https://github.com/adobe/spectrum-web-components/compare/v0.40.4...v0.40.5) (2024-02-05)
|
|
171
|
-
|
|
172
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
173
|
-
|
|
174
|
-
## [0.40.4](https://github.com/adobe/spectrum-web-components/compare/v0.40.3...v0.40.4) (2024-01-29)
|
|
175
|
-
|
|
176
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
177
|
-
|
|
178
|
-
## [0.40.3](https://github.com/adobe/spectrum-web-components/compare/v0.40.2...v0.40.3) (2024-01-11)
|
|
179
|
-
|
|
180
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
181
|
-
|
|
182
|
-
## [0.40.2](https://github.com/adobe/spectrum-web-components/compare/v0.40.1...v0.40.2) (2023-12-18)
|
|
183
|
-
|
|
184
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
185
|
-
|
|
186
|
-
## [0.40.1](https://github.com/adobe/spectrum-web-components/compare/v0.40.0...v0.40.1) (2023-12-05)
|
|
187
|
-
|
|
188
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
189
|
-
|
|
190
|
-
# [0.40.0](https://github.com/adobe/spectrum-web-components/compare/v0.39.4...v0.40.0) (2023-11-16)
|
|
191
|
-
|
|
192
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
193
|
-
|
|
194
|
-
## [0.39.4](https://github.com/adobe/spectrum-web-components/compare/v0.39.3...v0.39.4) (2023-11-02)
|
|
195
|
-
|
|
196
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
197
|
-
|
|
198
|
-
## [0.39.3](https://github.com/adobe/spectrum-web-components/compare/v0.39.2...v0.39.3) (2023-10-18)
|
|
199
|
-
|
|
200
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
201
|
-
|
|
202
|
-
## [0.39.2](https://github.com/adobe/spectrum-web-components/compare/v0.39.1...v0.39.2) (2023-10-13)
|
|
203
|
-
|
|
204
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
205
|
-
|
|
206
|
-
## [0.39.1](https://github.com/adobe/spectrum-web-components/compare/v0.39.0...v0.39.1) (2023-10-06)
|
|
207
|
-
|
|
208
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
209
|
-
|
|
210
|
-
# [0.39.0](https://github.com/adobe/spectrum-web-components/compare/v0.38.0...v0.39.0) (2023-09-25)
|
|
211
|
-
|
|
212
|
-
### Features
|
|
213
|
-
|
|
214
|
-
- **underlay:** use core tokens ([9c555ab](https://github.com/adobe/spectrum-web-components/commit/9c555ab6afba738e8ac34ccda196d4775e97e30d))
|
|
215
|
-
|
|
216
|
-
# [0.38.0](https://github.com/adobe/spectrum-web-components/compare/v0.37.0...v0.38.0) (2023-09-05)
|
|
217
|
-
|
|
218
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
219
|
-
|
|
220
|
-
# [0.37.0](https://github.com/adobe/spectrum-web-components/compare/v0.36.0...v0.37.0) (2023-08-18)
|
|
221
|
-
|
|
222
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
223
|
-
|
|
224
|
-
# [0.36.0](https://github.com/adobe/spectrum-web-components/compare/v0.35.0...v0.36.0) (2023-08-18)
|
|
225
|
-
|
|
226
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
227
|
-
|
|
228
|
-
# [0.35.0](https://github.com/adobe/spectrum-web-components/compare/v0.34.0...v0.35.0) (2023-07-31)
|
|
229
|
-
|
|
230
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
231
|
-
|
|
232
|
-
# [0.34.0](https://github.com/adobe/spectrum-web-components/compare/v0.33.2...v0.34.0) (2023-07-11)
|
|
233
|
-
|
|
234
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
235
|
-
|
|
236
|
-
## [0.33.2](https://github.com/adobe/spectrum-web-components/compare/v0.33.1...v0.33.2) (2023-06-14)
|
|
237
|
-
|
|
238
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
239
|
-
|
|
240
|
-
# [0.33.0](https://github.com/adobe/spectrum-web-components/compare/v0.32.0...v0.33.0) (2023-06-08)
|
|
241
|
-
|
|
242
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
243
|
-
|
|
244
|
-
# [0.32.0](https://github.com/adobe/spectrum-web-components/compare/v0.31.0...v0.32.0) (2023-06-01)
|
|
245
|
-
|
|
246
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
247
|
-
|
|
248
|
-
# [0.31.0](https://github.com/adobe/spectrum-web-components/compare/v0.30.0...v0.31.0) (2023-05-17)
|
|
249
|
-
|
|
250
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
251
|
-
|
|
252
|
-
# 0.30.0 (2023-05-03)
|
|
253
|
-
|
|
254
|
-
### Bug Fixes
|
|
255
|
-
|
|
256
|
-
- include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
|
|
257
|
-
- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
|
|
258
|
-
- stop merging selectors in a way that alters the cascade ([369388f](https://github.com/adobe/spectrum-web-components/commit/369388f8cc147543891087991c569f849ddb9b38))
|
|
259
|
-
- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
|
|
260
|
-
- update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8))
|
|
261
|
-
- update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937))
|
|
262
|
-
- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
|
|
263
|
-
|
|
264
|
-
### Features
|
|
265
|
-
|
|
266
|
-
- add dialog, dialog-wrapped, and underlay elements ([3df9050](https://github.com/adobe/spectrum-web-components/commit/3df9050f65bd3a95f9b986aa728cfc1a2eaee432))
|
|
267
|
-
- adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4))
|
|
268
|
-
- include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
|
|
269
|
-
- leverage "exports" field in package.json ([321abd7](https://github.com/adobe/spectrum-web-components/commit/321abd7b7e78ccd9157cff75a1fa3dbd06e81f79))
|
|
270
|
-
- shared pkg versions, devmode define warning, registry-conflicts docs ([6e49565](https://github.com/adobe/spectrum-web-components/commit/6e4956519b845fa8127f8032948b625c252ef7a6))
|
|
271
|
-
- **underlay:** update spectrum css input ([edf1a4b](https://github.com/adobe/spectrum-web-components/commit/edf1a4b780b83b99ae054fad7d547fba99c2c7dc))
|
|
272
|
-
- update to Spectrum CSS v3.0.0 ([e8b3d8f](https://github.com/adobe/spectrum-web-components/commit/e8b3d8f75c77c04b4d7af126b91b0f6ad2a40742))
|
|
273
|
-
- use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
|
|
274
|
-
|
|
275
|
-
## [0.9.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.8...@spectrum-web-components/underlay@0.9.9) (2023-04-24)
|
|
276
|
-
|
|
277
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
278
|
-
|
|
279
|
-
## [0.9.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.7...@spectrum-web-components/underlay@0.9.8) (2023-04-05)
|
|
280
|
-
|
|
281
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
282
|
-
|
|
283
|
-
## [0.9.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.6...@spectrum-web-components/underlay@0.9.7) (2023-03-22)
|
|
284
|
-
|
|
285
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
286
|
-
|
|
287
|
-
## [0.9.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.5...@spectrum-web-components/underlay@0.9.6) (2023-02-08)
|
|
288
|
-
|
|
289
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
290
|
-
|
|
291
|
-
## [0.9.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.4...@spectrum-web-components/underlay@0.9.5) (2023-01-23)
|
|
292
|
-
|
|
293
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
294
|
-
|
|
295
|
-
## [0.9.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.3...@spectrum-web-components/underlay@0.9.4) (2023-01-09)
|
|
296
|
-
|
|
297
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
298
|
-
|
|
299
|
-
## [0.9.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.2...@spectrum-web-components/underlay@0.9.3) (2022-12-08)
|
|
300
|
-
|
|
301
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
302
|
-
|
|
303
|
-
## [0.9.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.1...@spectrum-web-components/underlay@0.9.2) (2022-11-21)
|
|
304
|
-
|
|
305
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
306
|
-
|
|
307
|
-
## [0.9.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.9.0...@spectrum-web-components/underlay@0.9.1) (2022-11-14)
|
|
308
|
-
|
|
309
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
310
|
-
|
|
311
|
-
# [0.9.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.11...@spectrum-web-components/underlay@0.9.0) (2022-08-09)
|
|
312
|
-
|
|
313
|
-
### Features
|
|
314
|
-
|
|
315
|
-
- include all Dev Mode files in side effects ([f70817c](https://github.com/adobe/spectrum-web-components/commit/f70817cc15db6dcf5cc1de2d82b4f7b0c80b1251))
|
|
316
|
-
|
|
317
|
-
## [0.8.11](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.10...@spectrum-web-components/underlay@0.8.11) (2022-08-04)
|
|
318
|
-
|
|
319
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
320
|
-
|
|
321
|
-
## [0.8.10](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.9...@spectrum-web-components/underlay@0.8.10) (2022-07-18)
|
|
322
|
-
|
|
323
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
324
|
-
|
|
325
|
-
## [0.8.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.8...@spectrum-web-components/underlay@0.8.9) (2022-06-29)
|
|
326
|
-
|
|
327
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
328
|
-
|
|
329
|
-
## [0.8.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.7...@spectrum-web-components/underlay@0.8.8) (2022-06-07)
|
|
330
|
-
|
|
331
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
332
|
-
|
|
333
|
-
## [0.8.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.6...@spectrum-web-components/underlay@0.8.7) (2022-05-12)
|
|
334
|
-
|
|
335
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
336
|
-
|
|
337
|
-
## [0.8.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.5...@spectrum-web-components/underlay@0.8.6) (2022-04-21)
|
|
338
|
-
|
|
339
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
340
|
-
|
|
341
|
-
## [0.8.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.4...@spectrum-web-components/underlay@0.8.5) (2022-03-08)
|
|
342
|
-
|
|
343
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
344
|
-
|
|
345
|
-
## [0.8.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.3...@spectrum-web-components/underlay@0.8.4) (2022-03-04)
|
|
346
|
-
|
|
347
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
348
|
-
|
|
349
|
-
## [0.8.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.2...@spectrum-web-components/underlay@0.8.3) (2022-02-22)
|
|
350
|
-
|
|
351
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
352
|
-
|
|
353
|
-
## [0.8.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.1...@spectrum-web-components/underlay@0.8.2) (2022-01-26)
|
|
354
|
-
|
|
355
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
356
|
-
|
|
357
|
-
## [0.8.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.8.0...@spectrum-web-components/underlay@0.8.1) (2021-12-13)
|
|
358
|
-
|
|
359
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
360
|
-
|
|
361
|
-
# [0.8.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.7.1...@spectrum-web-components/underlay@0.8.0) (2021-11-08)
|
|
362
|
-
|
|
363
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
364
|
-
|
|
365
|
-
## [0.7.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.7.0...@spectrum-web-components/underlay@0.7.1) (2021-11-08)
|
|
366
|
-
|
|
367
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
368
|
-
|
|
369
|
-
# [0.7.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.9...@spectrum-web-components/underlay@0.7.0) (2021-11-02)
|
|
370
|
-
|
|
371
|
-
### Features
|
|
372
|
-
|
|
373
|
-
- adopt DNA@7 base Spectrum CSS ([e08cafd](https://github.com/adobe/spectrum-web-components/commit/e08cafda9f1b33b0163fbe5ba66754806be8f9e4))
|
|
374
|
-
|
|
375
|
-
## [0.6.9](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.8...@spectrum-web-components/underlay@0.6.9) (2021-09-20)
|
|
376
|
-
|
|
377
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
378
|
-
|
|
379
|
-
## [0.6.8](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.7...@spectrum-web-components/underlay@0.6.8) (2021-08-17)
|
|
380
|
-
|
|
381
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
382
|
-
|
|
383
|
-
## [0.6.7](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.6...@spectrum-web-components/underlay@0.6.7) (2021-07-22)
|
|
384
|
-
|
|
385
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
386
|
-
|
|
387
|
-
## [0.6.6](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.5...@spectrum-web-components/underlay@0.6.6) (2021-06-16)
|
|
388
|
-
|
|
389
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
390
|
-
|
|
391
|
-
## [0.6.5](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.4...@spectrum-web-components/underlay@0.6.5) (2021-05-12)
|
|
392
|
-
|
|
393
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
394
|
-
|
|
395
|
-
## [0.6.4](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.3...@spectrum-web-components/underlay@0.6.4) (2021-04-09)
|
|
396
|
-
|
|
397
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
398
|
-
|
|
399
|
-
## [0.6.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.2...@spectrum-web-components/underlay@0.6.3) (2021-03-29)
|
|
400
|
-
|
|
401
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
402
|
-
|
|
403
|
-
## [0.6.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.1...@spectrum-web-components/underlay@0.6.2) (2021-03-22)
|
|
404
|
-
|
|
405
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
406
|
-
|
|
407
|
-
## [0.6.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.6.0...@spectrum-web-components/underlay@0.6.1) (2021-03-05)
|
|
408
|
-
|
|
409
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
410
|
-
|
|
411
|
-
# [0.6.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.5.1...@spectrum-web-components/underlay@0.6.0) (2021-03-04)
|
|
412
|
-
|
|
413
|
-
### Features
|
|
414
|
-
|
|
415
|
-
- use latest exports specification ([a7ecf4b](https://github.com/adobe/spectrum-web-components/commit/a7ecf4b6da7996f36a8a89f62cc2384709497008))
|
|
416
|
-
|
|
417
|
-
## [0.5.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.5.0...@spectrum-web-components/underlay@0.5.1) (2021-02-11)
|
|
418
|
-
|
|
419
|
-
### Bug Fixes
|
|
420
|
-
|
|
421
|
-
- update to latest spectrum-css packages ([a5ca19f](https://github.com/adobe/spectrum-web-components/commit/a5ca19f67d5b3f0951667c4441d4d977bf1e0937))
|
|
422
|
-
|
|
423
|
-
# [0.5.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.3.3...@spectrum-web-components/underlay@0.5.0) (2021-01-21)
|
|
424
|
-
|
|
425
|
-
### Bug Fixes
|
|
426
|
-
|
|
427
|
-
- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
|
|
428
|
-
- stop merging selectors in a way that alters the cascade ([369388f](https://github.com/adobe/spectrum-web-components/commit/369388f8cc147543891087991c569f849ddb9b38))
|
|
429
|
-
- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
|
|
430
|
-
- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
|
|
431
|
-
|
|
432
|
-
### Features
|
|
433
|
-
|
|
434
|
-
- **underlay:** update spectrum css input ([edf1a4b](https://github.com/adobe/spectrum-web-components/commit/edf1a4b780b83b99ae054fad7d547fba99c2c7dc))
|
|
435
|
-
|
|
436
|
-
# [0.4.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.3.3...@spectrum-web-components/underlay@0.4.0) (2021-01-13)
|
|
437
|
-
|
|
438
|
-
### Bug Fixes
|
|
439
|
-
|
|
440
|
-
- include the "types" entry in package.json files ([b432f59](https://github.com/adobe/spectrum-web-components/commit/b432f5982b3b79f80af12f6d0312cbe2285e608b))
|
|
441
|
-
- stop merging selectors in a way that alters the cascade ([369388f](https://github.com/adobe/spectrum-web-components/commit/369388f8cc147543891087991c569f849ddb9b38))
|
|
442
|
-
- update latest Spectrum CSS beta releases ([d8d3acc](https://github.com/adobe/spectrum-web-components/commit/d8d3acc86de31e58219db6ba2a9d045b83cbe103))
|
|
443
|
-
- use latest @spectrum-css/\* versions ([c35eb86](https://github.com/adobe/spectrum-web-components/commit/c35eb86defd89a0c36b5ea186f6d40f20851b5e5))
|
|
444
|
-
|
|
445
|
-
### Features
|
|
446
|
-
|
|
447
|
-
- **underlay:** update spectrum css input ([edf1a4b](https://github.com/adobe/spectrum-web-components/commit/edf1a4b780b83b99ae054fad7d547fba99c2c7dc))
|
|
448
|
-
|
|
449
|
-
## [0.3.3](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.3.2...@spectrum-web-components/underlay@0.3.3) (2020-10-12)
|
|
450
|
-
|
|
451
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
452
|
-
|
|
453
|
-
## [0.3.2](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.3.1...@spectrum-web-components/underlay@0.3.2) (2020-10-12)
|
|
454
|
-
|
|
455
|
-
### Bug Fixes
|
|
456
|
-
|
|
457
|
-
- include default export in the "exports" fields ([f32407d](https://github.com/adobe/spectrum-web-components/commit/f32407d7bbfd18e72c35b6f27740549e79957858))
|
|
458
|
-
|
|
459
|
-
## [0.3.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.3.0...@spectrum-web-components/underlay@0.3.1) (2020-09-25)
|
|
460
|
-
|
|
461
|
-
### Bug Fixes
|
|
462
|
-
|
|
463
|
-
- update side effect listings ([8160d3a](https://github.com/adobe/spectrum-web-components/commit/8160d3ab2c4f5ea11ac40897a5cf1fdaa357f4a8))
|
|
464
|
-
|
|
465
|
-
# [0.3.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.2.1...@spectrum-web-components/underlay@0.3.0) (2020-08-31)
|
|
466
|
-
|
|
467
|
-
### Features
|
|
468
|
-
|
|
469
|
-
- update to Spectrum CSS v3.0.0 ([e8b3d8f](https://github.com/adobe/spectrum-web-components/commit/e8b3d8f75c77c04b4d7af126b91b0f6ad2a40742))
|
|
470
|
-
|
|
471
|
-
## [0.2.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.2.0...@spectrum-web-components/underlay@0.2.1) (2020-08-19)
|
|
472
|
-
|
|
473
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
474
|
-
|
|
475
|
-
# [0.2.0](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.1.1...@spectrum-web-components/underlay@0.2.0) (2020-07-17)
|
|
476
|
-
|
|
477
|
-
### Features
|
|
478
|
-
|
|
479
|
-
- leverage "exports" field in package.json ([321abd7](https://github.com/adobe/spectrum-web-components/commit/321abd7b7e78ccd9157cff75a1fa3dbd06e81f79))
|
|
480
|
-
|
|
481
|
-
## [0.1.1](https://github.com/adobe/spectrum-web-components/compare/@spectrum-web-components/underlay@0.1.0...@spectrum-web-components/underlay@0.1.1) (2020-06-08)
|
|
482
|
-
|
|
483
|
-
**Note:** Version bump only for package @spectrum-web-components/underlay
|
|
484
|
-
|
|
485
|
-
# 0.1.0 (2020-05-12)
|
|
486
|
-
|
|
487
|
-
### Features
|
|
488
|
-
|
|
489
|
-
- add dialog, dialog-wrapped, and underlay elements ([3df9050](https://github.com/adobe/spectrum-web-components/commit/3df9050f65bd3a95f9b986aa728cfc1a2eaee432))
|
package/src/Underlay.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 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 { CSSResultArray, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
|
|
13
|
-
/**
|
|
14
|
-
* @element sp-underlay
|
|
15
|
-
*
|
|
16
|
-
* @fires close - When the underlay is "clicked" and the consuming pattern should chose whether to close based on that interaction
|
|
17
|
-
*/
|
|
18
|
-
export declare class Underlay extends SpectrumElement {
|
|
19
|
-
static get styles(): CSSResultArray;
|
|
20
|
-
private canClick;
|
|
21
|
-
open: boolean;
|
|
22
|
-
click(): void;
|
|
23
|
-
protected handlePointerdown(): void;
|
|
24
|
-
protected handlePointerup(): void;
|
|
25
|
-
protected render(): TemplateResult;
|
|
26
|
-
protected firstUpdated(): void;
|
|
27
|
-
}
|
package/src/Underlay.dev.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
5
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
6
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7
|
-
if (decorator = decorators[i])
|
|
8
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9
|
-
if (kind && result) __defProp(target, key, result);
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
import {
|
|
13
|
-
html,
|
|
14
|
-
SpectrumElement
|
|
15
|
-
} from "@spectrum-web-components/base";
|
|
16
|
-
import { property } from "@spectrum-web-components/base/src/decorators.js";
|
|
17
|
-
import styles from "./underlay.css.js";
|
|
18
|
-
export class Underlay extends SpectrumElement {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.canClick = false;
|
|
22
|
-
this.open = false;
|
|
23
|
-
}
|
|
24
|
-
static get styles() {
|
|
25
|
-
return [styles];
|
|
26
|
-
}
|
|
27
|
-
click() {
|
|
28
|
-
this.dispatchEvent(new Event("close"));
|
|
29
|
-
}
|
|
30
|
-
handlePointerdown() {
|
|
31
|
-
this.canClick = true;
|
|
32
|
-
}
|
|
33
|
-
handlePointerup() {
|
|
34
|
-
if (this.canClick) {
|
|
35
|
-
this.click();
|
|
36
|
-
}
|
|
37
|
-
this.canClick = false;
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return html``;
|
|
41
|
-
}
|
|
42
|
-
firstUpdated() {
|
|
43
|
-
this.addEventListener("pointerdown", this.handlePointerdown);
|
|
44
|
-
this.addEventListener("pointerup", this.handlePointerup);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
__decorateClass([
|
|
48
|
-
property({ type: Boolean, reflect: true })
|
|
49
|
-
], Underlay.prototype, "open", 2);
|
|
50
|
-
//# sourceMappingURL=Underlay.dev.js.map
|
package/src/Underlay.dev.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["Underlay.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing 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 *\n * @fires close - When the underlay is \"clicked\" and the consuming pattern should chose whether to close based on that interaction\n */\nexport class Underlay extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n private canClick = false;\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n public override click(): void {\n this.dispatchEvent(new Event('close'));\n }\n\n protected handlePointerdown(): void {\n this.canClick = true;\n }\n\n protected handlePointerup(): void {\n if (this.canClick) {\n this.click();\n }\n this.canClick = false;\n }\n\n protected override render(): TemplateResult {\n return html``;\n }\n\n protected override firstUpdated(): void {\n this.addEventListener('pointerdown', this.handlePointerdown);\n this.addEventListener('pointerup', this.handlePointerup);\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAEG;AACP,SAAS,gBAAgB;AAEzB,OAAO,YAAY;AAOZ,aAAM,iBAAiB,gBAAgB;AAAA,EAAvC;AAAA;AAKH,SAAQ,WAAW;AAGnB,SAAO,OAAO;AAAA;AAAA,EAPd,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAOgB,QAAc;AAC1B,SAAK,cAAc,IAAI,MAAM,OAAO,CAAC;AAAA,EACzC;AAAA,EAEU,oBAA0B;AAChC,SAAK,WAAW;AAAA,EACpB;AAAA,EAEU,kBAAwB;AAC9B,QAAI,KAAK,UAAU;AACf,WAAK,MAAM;AAAA,IACf;AACA,SAAK,WAAW;AAAA,EACpB;AAAA,EAEmB,SAAyB;AACxC,WAAO;AAAA,EACX;AAAA,EAEmB,eAAqB;AACpC,SAAK,iBAAiB,eAAe,KAAK,iBAAiB;AAC3D,SAAK,iBAAiB,aAAa,KAAK,eAAe;AAAA,EAC3D;AACJ;AAzBW;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,KAAK,CAAC;AAAA,GAPjC,SAQF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/src/Underlay.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var s=(i,t,o,r)=>{for(var e=r>1?void 0:r?p(t,o):t,n=i.length-1,l;n>=0;n--)(l=i[n])&&(e=(r?l(t,o,e):l(e))||e);return r&&e&&d(t,o,e),e};import{html as c,SpectrumElement as a}from"@spectrum-web-components/base";import{property as h}from"@spectrum-web-components/base/src/decorators.js";import u from"./underlay.css.js";export class Underlay extends a{constructor(){super(...arguments);this.canClick=!1;this.open=!1}static get styles(){return[u]}click(){this.dispatchEvent(new Event("close"))}handlePointerdown(){this.canClick=!0}handlePointerup(){this.canClick&&this.click(),this.canClick=!1}render(){return c``}firstUpdated(){this.addEventListener("pointerdown",this.handlePointerdown),this.addEventListener("pointerup",this.handlePointerup)}}s([h({type:Boolean,reflect:!0})],Underlay.prototype,"open",2);
|
|
2
|
-
//# sourceMappingURL=Underlay.js.map
|
package/src/Underlay.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["Underlay.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing 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 *\n * @fires close - When the underlay is \"clicked\" and the consuming pattern should chose whether to close based on that interaction\n */\nexport class Underlay extends SpectrumElement {\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n private canClick = false;\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n public override click(): void {\n this.dispatchEvent(new Event('close'));\n }\n\n protected handlePointerdown(): void {\n this.canClick = true;\n }\n\n protected handlePointerup(): void {\n if (this.canClick) {\n this.click();\n }\n this.canClick = false;\n }\n\n protected override render(): TemplateResult {\n return html``;\n }\n\n protected override firstUpdated(): void {\n this.addEventListener('pointerdown', this.handlePointerdown);\n this.addEventListener('pointerup', this.handlePointerup);\n }\n}\n"],
|
|
5
|
-
"mappings": "qNAYA,OAEI,QAAAA,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDAEzB,OAAOC,MAAY,oBAOZ,aAAM,iBAAiBF,CAAgB,CAAvC,kCAKH,KAAQ,SAAW,GAGnB,KAAO,KAAO,GAPd,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAM,CAClB,CAOgB,OAAc,CAC1B,KAAK,cAAc,IAAI,MAAM,OAAO,CAAC,CACzC,CAEU,mBAA0B,CAChC,KAAK,SAAW,EACpB,CAEU,iBAAwB,CAC1B,KAAK,UACL,KAAK,MAAM,EAEf,KAAK,SAAW,EACpB,CAEmB,QAAyB,CACxC,OAAOH,GACX,CAEmB,cAAqB,CACpC,KAAK,iBAAiB,cAAe,KAAK,iBAAiB,EAC3D,KAAK,iBAAiB,YAAa,KAAK,eAAe,CAC3D,CACJ,CAzBWI,EAAA,CADNF,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAPjC,SAQF",
|
|
6
|
-
"names": ["html", "SpectrumElement", "property", "styles", "__decorateClass"]
|
|
7
|
-
}
|
package/src/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 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
|
-
export * from './Underlay.js';
|
package/src/index.dev.js
DELETED
package/src/index.dev.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport * from './Underlay.dev.js'\n"],
|
|
5
|
-
"mappings": ";AAWA,cAAc;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/src/index.js
DELETED
package/src/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["index.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport * from './Underlay.js';\n"],
|
|
5
|
-
"mappings": "aAWA,WAAc",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { css } from "@spectrum-web-components/base";
|
|
3
|
-
const styles = css`
|
|
4
|
-
:host{--spectrum-underlay-background-exit-animation-duration:var(--mod-underlay-background-exit-animation-duration,var(--spectrum-animation-duration-300));--spectrum-underlay-background-exit-animation-ease:var(--mod-underlay-background-exit-animation-ease,var(--spectrum-animation-ease-in));--spectrum-underlay-background-exit-animation-delay:var(--mod-underlay-background-exit-animation-delay,var(--spectrum-animation-duration-200));--spectrum-underlay-background-entry-animation-duration:var(--mod-underlay-background-entry-animation-duration,var(--spectrum-animation-duration-600));--spectrum-underlay-background-entry-animation-ease:var(--mod-underlay-background-entry-animation-ease,var(--spectrum-animation-ease-out));--spectrum-underlay-background-entry-animation-delay:var(--mod-underlay-background-entry-animation-delay,var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0)));--spectrum-underlay-background-color:var(--mod-underlay-background-color,rgba(var(--spectrum-black-rgb),var(--spectrum-overlay-opacity)));pointer-events:none;visibility:hidden;opacity:0;background-color:var(--spectrum-underlay-background-color);z-index:1;transition:opacity var(--spectrum-underlay-background-exit-animation-duration)var(--spectrum-underlay-background-exit-animation-ease)var(--spectrum-underlay-background-exit-animation-delay),visibility 0s linear calc(var(--spectrum-underlay-background-exit-animation-delay) + var(--spectrum-underlay-background-exit-animation-duration));position:fixed;inset-block:0;inset-inline:0;overflow:hidden}:host([open]){pointer-events:auto;visibility:visible;opacity:1;transition:opacity var(--spectrum-underlay-background-entry-animation-duration)var(--spectrum-underlay-background-entry-animation-ease)var(--spectrum-underlay-background-entry-animation-delay);transition-delay:var(--spectrum-underlay-background-entry-animation-delay)}
|
|
5
|
-
`;
|
|
6
|
-
export default styles;
|
|
7
|
-
//# sourceMappingURL=spectrum-underlay.css.dev.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["spectrum-underlay.css.ts"],
|
|
4
|
-
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-underlay-background-exit-animation-duration:var(--mod-underlay-background-exit-animation-duration,var(--spectrum-animation-duration-300));--spectrum-underlay-background-exit-animation-ease:var(--mod-underlay-background-exit-animation-ease,var(--spectrum-animation-ease-in));--spectrum-underlay-background-exit-animation-delay:var(--mod-underlay-background-exit-animation-delay,var(--spectrum-animation-duration-200));--spectrum-underlay-background-entry-animation-duration:var(--mod-underlay-background-entry-animation-duration,var(--spectrum-animation-duration-600));--spectrum-underlay-background-entry-animation-ease:var(--mod-underlay-background-entry-animation-ease,var(--spectrum-animation-ease-out));--spectrum-underlay-background-entry-animation-delay:var(--mod-underlay-background-entry-animation-delay,var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0)));--spectrum-underlay-background-color:var(--mod-underlay-background-color,rgba(var(--spectrum-black-rgb),var(--spectrum-overlay-opacity)));pointer-events:none;visibility:hidden;opacity:0;background-color:var(--spectrum-underlay-background-color);z-index:1;transition:opacity var(--spectrum-underlay-background-exit-animation-duration)var(--spectrum-underlay-background-exit-animation-ease)var(--spectrum-underlay-background-exit-animation-delay),visibility 0s linear calc(var(--spectrum-underlay-background-exit-animation-delay) + var(--spectrum-underlay-background-exit-animation-duration));position:fixed;inset-block:0;inset-inline:0;overflow:hidden}:host([open]){pointer-events:auto;visibility:visible;opacity:1;transition:opacity var(--spectrum-underlay-background-entry-animation-duration)var(--spectrum-underlay-background-entry-animation-ease)var(--spectrum-underlay-background-entry-animation-delay);transition-delay:var(--spectrum-underlay-background-entry-animation-delay)}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["underlay-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n \n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/src/underlay.css.d.ts
DELETED
package/src/underlay.css.dev.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { css } from "@spectrum-web-components/base";
|
|
3
|
-
const styles = css`
|
|
4
|
-
:host{--spectrum-underlay-background-exit-animation-duration:var(--mod-underlay-background-exit-animation-duration,var(--spectrum-animation-duration-300));--spectrum-underlay-background-exit-animation-ease:var(--mod-underlay-background-exit-animation-ease,var(--spectrum-animation-ease-in));--spectrum-underlay-background-exit-animation-delay:var(--mod-underlay-background-exit-animation-delay,var(--spectrum-animation-duration-200));--spectrum-underlay-background-entry-animation-duration:var(--mod-underlay-background-entry-animation-duration,var(--spectrum-animation-duration-600));--spectrum-underlay-background-entry-animation-ease:var(--mod-underlay-background-entry-animation-ease,var(--spectrum-animation-ease-out));--spectrum-underlay-background-entry-animation-delay:var(--mod-underlay-background-entry-animation-delay,var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0)));--spectrum-underlay-background-color:var(--mod-underlay-background-color,rgba(var(--spectrum-black-rgb),var(--spectrum-overlay-opacity)));pointer-events:none;visibility:hidden;opacity:0;background-color:var(--spectrum-underlay-background-color);z-index:1;transition:opacity var(--spectrum-underlay-background-exit-animation-duration)var(--spectrum-underlay-background-exit-animation-ease)var(--spectrum-underlay-background-exit-animation-delay),visibility 0s linear calc(var(--spectrum-underlay-background-exit-animation-delay) + var(--spectrum-underlay-background-exit-animation-duration));position:fixed;inset-block:0;inset-inline:0;overflow:hidden}:host([open]){pointer-events:auto;visibility:visible;opacity:1;transition:opacity var(--spectrum-underlay-background-entry-animation-duration)var(--spectrum-underlay-background-entry-animation-ease)var(--spectrum-underlay-background-entry-animation-delay);transition-delay:var(--spectrum-underlay-background-entry-animation-delay)}
|
|
5
|
-
`;
|
|
6
|
-
export default styles;
|
|
7
|
-
//# sourceMappingURL=underlay.css.dev.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["underlay.css.ts"],
|
|
4
|
-
"sourcesContent": ["import { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-underlay-background-exit-animation-duration:var(--mod-underlay-background-exit-animation-duration,var(--spectrum-animation-duration-300));--spectrum-underlay-background-exit-animation-ease:var(--mod-underlay-background-exit-animation-ease,var(--spectrum-animation-ease-in));--spectrum-underlay-background-exit-animation-delay:var(--mod-underlay-background-exit-animation-delay,var(--spectrum-animation-duration-200));--spectrum-underlay-background-entry-animation-duration:var(--mod-underlay-background-entry-animation-duration,var(--spectrum-animation-duration-600));--spectrum-underlay-background-entry-animation-ease:var(--mod-underlay-background-entry-animation-ease,var(--spectrum-animation-ease-out));--spectrum-underlay-background-entry-animation-delay:var(--mod-underlay-background-entry-animation-delay,var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0)));--spectrum-underlay-background-color:var(--mod-underlay-background-color,rgba(var(--spectrum-black-rgb),var(--spectrum-overlay-opacity)));pointer-events:none;visibility:hidden;opacity:0;background-color:var(--spectrum-underlay-background-color);z-index:1;transition:opacity var(--spectrum-underlay-background-exit-animation-duration)var(--spectrum-underlay-background-exit-animation-ease)var(--spectrum-underlay-background-exit-animation-delay),visibility 0s linear calc(var(--spectrum-underlay-background-exit-animation-delay) + var(--spectrum-underlay-background-exit-animation-duration));position:fixed;inset-block:0;inset-inline:0;overflow:hidden}:host([open]){pointer-events:auto;visibility:visible;opacity:1;transition:opacity var(--spectrum-underlay-background-entry-animation-duration)var(--spectrum-underlay-background-entry-animation-ease)var(--spectrum-underlay-background-entry-animation-delay);transition-delay:var(--spectrum-underlay-background-entry-animation-delay)}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { html } from "@spectrum-web-components/base";
|
|
3
|
-
import "@spectrum-web-components/underlay/sp-underlay.js";
|
|
4
|
-
export default {
|
|
5
|
-
title: "Underlay",
|
|
6
|
-
component: "sp-underlay"
|
|
7
|
-
};
|
|
8
|
-
export const Default = () => {
|
|
9
|
-
return html`
|
|
10
|
-
<sp-underlay open></sp-underlay>
|
|
11
|
-
`;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=underlay.stories.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["underlay.stories.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/underlay/sp-underlay.js';\n\nexport default {\n title: 'Underlay',\n component: 'sp-underlay',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-underlay open></sp-underlay>\n `;\n};\n"],
|
|
5
|
-
"mappings": ";AAYA,SAAS,YAA4B;AAErC,OAAO;AAEP,eAAe;AAAA,EACX,OAAO;AAAA,EACP,WAAW;AACf;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAGX;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import "@spectrum-web-components/underlay/sp-underlay.js";
|
|
3
|
-
import { html } from "lit";
|
|
4
|
-
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
|
5
|
-
measureFixtureCreation(html`
|
|
6
|
-
<sp-underlay open></sp-underlay>
|
|
7
|
-
`);
|
|
8
|
-
//# sourceMappingURL=basic-test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["basic-test.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing 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"],
|
|
5
|
-
"mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA,CAEtB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { html } from "@open-wc/testing";
|
|
3
|
-
import "@spectrum-web-components/underlay/sp-underlay.js";
|
|
4
|
-
import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
|
|
5
|
-
testForMemoryLeaks(html`
|
|
6
|
-
<sp-underlay></sp-underlay>
|
|
7
|
-
`);
|
|
8
|
-
//# sourceMappingURL=underlay-memory.test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["underlay-memory.test.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { html } from '@open-wc/testing';\nimport '@spectrum-web-components/underlay/sp-underlay.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(html`\n <sp-underlay></sp-underlay>\n`);\n"],
|
|
5
|
-
"mappings": ";AAYA,SAAS,YAAY;AACrB,OAAO;AACP,SAAS,0BAA0B;AAEnC,mBAAmB;AAAA;AAAA,CAElB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["underlay.test-vrt.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport * as stories from '../stories/underlay.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('UnderlayStories', stories as unknown as TestsType);\n"],
|
|
5
|
-
"mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,mBAAmB,OAA+B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/test/underlay.test.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
|
|
3
|
-
import "@spectrum-web-components/underlay/sp-underlay.js";
|
|
4
|
-
import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
|
|
5
|
-
import { spy } from "sinon";
|
|
6
|
-
describe("Underlay", () => {
|
|
7
|
-
testForLitDevWarnings(
|
|
8
|
-
async () => await fixture(html`
|
|
9
|
-
<sp-underlay></sp-underlay>
|
|
10
|
-
`)
|
|
11
|
-
);
|
|
12
|
-
it("loads default underlay accessibly", async () => {
|
|
13
|
-
const el = await fixture(html`
|
|
14
|
-
<sp-underlay></sp-underlay>
|
|
15
|
-
`);
|
|
16
|
-
await elementUpdated(el);
|
|
17
|
-
await expect(el).to.be.accessible();
|
|
18
|
-
});
|
|
19
|
-
it("fires a close event when clicked", async () => {
|
|
20
|
-
const el = await fixture(html`
|
|
21
|
-
<sp-underlay></sp-underlay>
|
|
22
|
-
`);
|
|
23
|
-
await elementUpdated(el);
|
|
24
|
-
const closeSpy = spy();
|
|
25
|
-
el.addEventListener("close", () => closeSpy());
|
|
26
|
-
expect(closeSpy.callCount).to.equal(0);
|
|
27
|
-
el.dispatchEvent(new PointerEvent("pointerdown", { button: 0 }));
|
|
28
|
-
el.dispatchEvent(new PointerEvent("pointerup"));
|
|
29
|
-
expect(closeSpy.callCount).to.equal(1);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=underlay.test.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["underlay.test.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * Copyright 2025 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '@spectrum-web-components/underlay/sp-underlay.js';\nimport { Underlay } from '@spectrum-web-components/underlay';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\nimport { spy } from 'sinon';\n\ndescribe('Underlay', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<Underlay>(html`\n <sp-underlay></sp-underlay>\n `)\n );\n it('loads default underlay accessibly', async () => {\n const el = await fixture<Underlay>(html`\n <sp-underlay></sp-underlay>\n `);\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n\n it('fires a close event when clicked', async () => {\n const el = await fixture<Underlay>(html`\n <sp-underlay></sp-underlay>\n `);\n\n await elementUpdated(el);\n const closeSpy = spy();\n el.addEventListener('close', () => closeSpy());\n expect(closeSpy.callCount).to.equal(0);\n\n el.dispatchEvent(new PointerEvent('pointerdown', { button: 0 }));\n el.dispatchEvent(new PointerEvent('pointerup'));\n\n expect(closeSpy.callCount).to.equal(1);\n });\n});\n"],
|
|
5
|
-
"mappings": ";AAYA,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AAEtD,OAAO;AAEP,SAAS,6BAA6B;AACtC,SAAS,WAAW;AAEpB,SAAS,YAAY,MAAM;AACvB;AAAA,IACI,YACI,MAAM,QAAkB;AAAA;AAAA,aAEvB;AAAA,EACT;AACA,KAAG,qCAAqC,YAAY;AAChD,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA,SAElC;AAED,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AAED,KAAG,oCAAoC,YAAY;AAC/C,UAAM,KAAK,MAAM,QAAkB;AAAA;AAAA,SAElC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,WAAW,IAAI;AACrB,OAAG,iBAAiB,SAAS,MAAM,SAAS,CAAC;AAC7C,WAAO,SAAS,SAAS,EAAE,GAAG,MAAM,CAAC;AAErC,OAAG,cAAc,IAAI,aAAa,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,OAAG,cAAc,IAAI,aAAa,WAAW,CAAC;AAE9C,WAAO,SAAS,SAAS,EAAE,GAAG,MAAM,CAAC;AAAA,EACzC,CAAC;AACL,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|