@spectrum-web-components/contextual-help 1.9.0 → 1.9.1-nightly.20251028214328
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/CHANGELOG.md +183 -0
- package/package.json +78 -78
- package/custom-elements.json +0 -252
- package/sp-contextual-help.d.ts +0 -17
- package/sp-contextual-help.dev.js +0 -4
- package/sp-contextual-help.dev.js.map +0 -7
- package/sp-contextual-help.js +0 -2
- package/sp-contextual-help.js.map +0 -7
- package/src/ContextualHelp.d.ts +0 -62
- package/src/ContextualHelp.dev.js +0 -141
- package/src/ContextualHelp.dev.js.map +0 -7
- package/src/ContextualHelp.js +0 -45
- package/src/ContextualHelp.js.map +0 -7
- package/src/contextual-help-overrides.css.d.ts +0 -2
- package/src/contextual-help-overrides.css.dev.js +0 -7
- package/src/contextual-help-overrides.css.dev.js.map +0 -7
- package/src/contextual-help-overrides.css.js +0 -4
- package/src/contextual-help-overrides.css.js.map +0 -7
- package/src/contextual-help.css.d.ts +0 -2
- package/src/contextual-help.css.dev.js +0 -7
- package/src/contextual-help.css.dev.js.map +0 -7
- package/src/contextual-help.css.js +0 -4
- package/src/contextual-help.css.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-contextual-help.css.d.ts +0 -2
- package/src/spectrum-contextual-help.css.dev.js +0 -7
- package/src/spectrum-contextual-help.css.dev.js.map +0 -7
- package/src/spectrum-contextual-help.css.js +0 -4
- package/src/spectrum-contextual-help.css.js.map +0 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## 1.9.1-nightly.20251028214328
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @spectrum-web-components/base@1.9.1-nightly.20251028214328
|
|
9
|
+
- @spectrum-web-components/dialog@1.9.1-nightly.20251028214328
|
|
10
|
+
- @spectrum-web-components/action-button@1.9.1-nightly.20251028214328
|
|
11
|
+
- @spectrum-web-components/icons-workflow@1.9.1-nightly.20251028214328
|
|
12
|
+
- @spectrum-web-components/overlay@1.9.1-nightly.20251028214328
|
|
13
|
+
- @spectrum-web-components/popover@1.9.1-nightly.20251028214328
|
|
14
|
+
- @spectrum-web-components/reactive-controllers@1.9.1-nightly.20251028214328
|
|
15
|
+
|
|
16
|
+
## 1.9.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`bdf54c1`](https://github.com/adobe/spectrum-web-components/commit/bdf54c1bc6d3eb20da1a1bf3b40650e6ab1ba399), [`7d23140`](https://github.com/adobe/spectrum-web-components/commit/7d23140c21f0006ddea8a5cf39478ff36acbfbb8)]:
|
|
21
|
+
- @spectrum-web-components/icons-workflow@1.9.0
|
|
22
|
+
- @spectrum-web-components/reactive-controllers@1.9.0
|
|
23
|
+
- @spectrum-web-components/action-button@1.9.0
|
|
24
|
+
- @spectrum-web-components/dialog@1.9.0
|
|
25
|
+
- @spectrum-web-components/overlay@1.9.0
|
|
26
|
+
- @spectrum-web-components/popover@1.9.0
|
|
27
|
+
- @spectrum-web-components/base@1.9.0
|
|
28
|
+
|
|
29
|
+
## 1.8.0
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [#5690](https://github.com/adobe/spectrum-web-components/pull/5690) [`99ab45e`](https://github.com/adobe/spectrum-web-components/commit/99ab45ea77ae5870b2170c1860c67a70e9a5d66a) Thanks [@5t3ph](https://github.com/5t3ph)! - Fixed a typo in the default `info` variant label from "Informations" to "Information".
|
|
34
|
+
|
|
35
|
+
Additionally, added package dependency for `@spectrum-web-components/reactive-controllers@1.7.0`.
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [[`14486d6`](https://github.com/adobe/spectrum-web-components/commit/14486d620e88976c794225edb54eaca8392015c7), [`ee1bae6`](https://github.com/adobe/spectrum-web-components/commit/ee1bae6f9a7401dc31ebc84e4e27f9d39be692d1), [`14486d6`](https://github.com/adobe/spectrum-web-components/commit/14486d620e88976c794225edb54eaca8392015c7)]:
|
|
38
|
+
- @spectrum-web-components/overlay@1.8.0
|
|
39
|
+
- @spectrum-web-components/popover@1.8.0
|
|
40
|
+
- @spectrum-web-components/action-button@1.8.0
|
|
41
|
+
- @spectrum-web-components/dialog@1.8.0
|
|
42
|
+
- @spectrum-web-components/icons-workflow@1.8.0
|
|
43
|
+
- @spectrum-web-components/base@1.8.0
|
|
44
|
+
- @spectrum-web-components/reactive-controllers@1.8.0
|
|
45
|
+
|
|
46
|
+
## 1.7.0
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [[`a646ae8`](https://github.com/adobe/spectrum-web-components/commit/a646ae8b0e652308d359226740d2cb189e492e45), [`c1669d2`](https://github.com/adobe/spectrum-web-components/commit/c1669d2dc5e1ceeb84486ce49a428f86a3173caa)]:
|
|
51
|
+
- @spectrum-web-components/overlay@1.7.0
|
|
52
|
+
- @spectrum-web-components/action-button@1.7.0
|
|
53
|
+
- @spectrum-web-components/popover@1.7.0
|
|
54
|
+
- @spectrum-web-components/dialog@1.7.0
|
|
55
|
+
- @spectrum-web-components/icons-workflow@1.7.0
|
|
56
|
+
- @spectrum-web-components/base@1.7.0
|
|
57
|
+
|
|
58
|
+
## 1.6.0
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [[`03a4439`](https://github.com/adobe/spectrum-web-components/commit/03a443946b760aedc668630f33ac660443ff915e), [`f6cebbd`](https://github.com/adobe/spectrum-web-components/commit/f6cebbd90008a2abb1232c355ae06e8566086093), [`53f3769`](https://github.com/adobe/spectrum-web-components/commit/53f3769f07b6e7853a8a4c0dc63b21fe14cf3d4b)]:
|
|
63
|
+
- @spectrum-web-components/popover@1.6.0
|
|
64
|
+
- @spectrum-web-components/icons-workflow@1.6.0
|
|
65
|
+
- @spectrum-web-components/overlay@1.6.0
|
|
66
|
+
- @spectrum-web-components/dialog@1.6.0
|
|
67
|
+
- @spectrum-web-components/action-button@1.6.0
|
|
68
|
+
- @spectrum-web-components/base@1.6.0
|
|
69
|
+
|
|
70
|
+
## 1.5.0
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- Updated dependencies [[`8f8735c`](https://github.com/adobe/spectrum-web-components/commit/8f8735c9ec3eac3b6473424c78257cb46ee17f70), [`6c58f50`](https://github.com/adobe/spectrum-web-components/commit/6c58f50f7b1f5489c11e0d3484e3f4a9d576f1c8)]:
|
|
75
|
+
- @spectrum-web-components/overlay@1.5.0
|
|
76
|
+
- @spectrum-web-components/action-button@1.5.0
|
|
77
|
+
- @spectrum-web-components/dialog@1.5.0
|
|
78
|
+
- @spectrum-web-components/popover@1.5.0
|
|
79
|
+
- @spectrum-web-components/icons-workflow@1.5.0
|
|
80
|
+
- @spectrum-web-components/base@1.5.0
|
|
81
|
+
|
|
82
|
+
## 1.4.0
|
|
83
|
+
|
|
84
|
+
### Minor Changes
|
|
85
|
+
|
|
86
|
+
- [#5140](https://github.com/adobe/spectrum-web-components/pull/5140) [`3cca7ea`](https://github.com/adobe/spectrum-web-components/commit/3cca7eacf127c3fd759953db38a2b5a561bfb8dc) Thanks [@TarunAdobe](https://github.com/TarunAdobe)! - Contextual help now supports a custom maximum width to be set using the `--mod-spectrum-contextual-help-popover-maximum-width` custom property.
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- Updated dependencies [[`72dbe62`](https://github.com/adobe/spectrum-web-components/commit/72dbe629cddfc57171eaaadf7206df47c19d3c98), [`46cd782`](https://github.com/adobe/spectrum-web-components/commit/46cd7828f65491fc08790e5ba0aec412ee89199d), [`70f5f6f`](https://github.com/adobe/spectrum-web-components/commit/70f5f6f3a97b530fb20f9f5ee049e9a8c124b02d)]:
|
|
91
|
+
- @spectrum-web-components/action-button@1.4.0
|
|
92
|
+
- @spectrum-web-components/overlay@1.4.0
|
|
93
|
+
- @spectrum-web-components/popover@1.4.0
|
|
94
|
+
- @spectrum-web-components/dialog@1.4.0
|
|
95
|
+
- @spectrum-web-components/icons-workflow@1.4.0
|
|
96
|
+
- @spectrum-web-components/base@1.4.0
|
|
97
|
+
|
|
98
|
+
## 1.3.0
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- Updated dependencies [[`468314f`](https://github.com/adobe/spectrum-web-components/commit/468314f45cf5fedb2e9029da210a5886260abca9)]:
|
|
103
|
+
- @spectrum-web-components/dialog@1.3.0
|
|
104
|
+
- @spectrum-web-components/overlay@1.3.0
|
|
105
|
+
- @spectrum-web-components/popover@1.3.0
|
|
106
|
+
- @spectrum-web-components/action-button@1.3.0
|
|
107
|
+
- @spectrum-web-components/icons-workflow@1.3.0
|
|
108
|
+
- @spectrum-web-components/base@1.3.0
|
|
109
|
+
|
|
110
|
+
All notable changes to this project will be documented in this file.
|
|
111
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
112
|
+
|
|
113
|
+
# [1.2.0](https://github.com/adobe/spectrum-web-components/compare/v1.1.2...v1.2.0) (2025-02-27)
|
|
114
|
+
|
|
115
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
116
|
+
|
|
117
|
+
## [1.1.2](https://github.com/adobe/spectrum-web-components/compare/v1.1.1...v1.1.2) (2025-02-12)
|
|
118
|
+
|
|
119
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
120
|
+
|
|
121
|
+
## [1.1.1](https://github.com/adobe/spectrum-web-components/compare/v1.1.0...v1.1.1) (2025-01-29)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
124
|
+
|
|
125
|
+
# [1.1.0](https://github.com/adobe/spectrum-web-components/compare/v1.0.3...v1.1.0) (2025-01-29)
|
|
126
|
+
|
|
127
|
+
### Bug Fixes
|
|
128
|
+
|
|
129
|
+
- 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))
|
|
130
|
+
|
|
131
|
+
## [1.0.3](https://github.com/adobe/spectrum-web-components/compare/v1.0.1...v1.0.3) (2024-12-09)
|
|
132
|
+
|
|
133
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
134
|
+
|
|
135
|
+
## [1.0.1](https://github.com/adobe/spectrum-web-components/compare/v1.0.0...v1.0.1) (2024-11-11)
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
138
|
+
|
|
139
|
+
# [1.0.0](https://github.com/adobe/spectrum-web-components/compare/v0.49.0...v1.0.0) (2024-10-31)
|
|
140
|
+
|
|
141
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
142
|
+
|
|
143
|
+
# [0.49.0](https://github.com/adobe/spectrum-web-components/compare/v0.48.1...v0.49.0) (2024-10-15)
|
|
144
|
+
|
|
145
|
+
### Features
|
|
146
|
+
|
|
147
|
+
- add `static-color` to replace `static` ([#4808](https://github.com/adobe/spectrum-web-components/issues/4808)) ([43cf086](https://github.com/adobe/spectrum-web-components/commit/43cf0865d902346568c755650f53410c7788f2a1))
|
|
148
|
+
|
|
149
|
+
## [0.48.1](https://github.com/adobe/spectrum-web-components/compare/v0.48.0...v0.48.1) (2024-10-01)
|
|
150
|
+
|
|
151
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
152
|
+
|
|
153
|
+
# [0.48.0](https://github.com/adobe/spectrum-web-components/compare/v0.47.2...v0.48.0) (2024-09-17)
|
|
154
|
+
|
|
155
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
156
|
+
|
|
157
|
+
## [0.47.2](https://github.com/adobe/spectrum-web-components/compare/v0.47.1...v0.47.2) (2024-09-03)
|
|
158
|
+
|
|
159
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
160
|
+
|
|
161
|
+
## [0.47.1](https://github.com/adobe/spectrum-web-components/compare/v0.47.0...v0.47.1) (2024-08-27)
|
|
162
|
+
|
|
163
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
164
|
+
|
|
165
|
+
# [0.47.0](https://github.com/adobe/spectrum-web-components/compare/v0.46.0...v0.47.0) (2024-08-20)
|
|
166
|
+
|
|
167
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
168
|
+
|
|
169
|
+
# [0.46.0](https://github.com/adobe/spectrum-web-components/compare/v0.45.0...v0.46.0) (2024-08-08)
|
|
170
|
+
|
|
171
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
172
|
+
|
|
173
|
+
# [0.45.0](https://github.com/adobe/spectrum-web-components/compare/v0.44.0...v0.45.0) (2024-07-30)
|
|
174
|
+
|
|
175
|
+
**Note:** Version bump only for package @spectrum-web-components/contextual-help
|
|
176
|
+
|
|
177
|
+
# [0.44.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.44.0) (2024-07-15)
|
|
178
|
+
|
|
179
|
+
# [0.43.0](https://github.com/adobe/spectrum-web-components/compare/v0.42.4...v0.43.0) (2024-06-11)
|
|
180
|
+
|
|
181
|
+
### Features
|
|
182
|
+
|
|
183
|
+
- **contextual-help:** add contextual help pattern ([#4285](https://github.com/adobe/spectrum-web-components/issues/4285)) ([a259aa3](https://github.com/adobe/spectrum-web-components/commit/a259aa35ee4e8a7fba7afb21e806f13bffceeaf3))
|
package/package.json
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "@spectrum-web-components/contextual-help",
|
|
3
|
+
"version": "1.9.1-nightly.20251028214328",
|
|
4
|
+
"description": "Web component implementation of a Spectrum design ContextualHelp",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Adobe",
|
|
7
|
+
"homepage": "https://adobe.github.io/spectrum-web-components/components/contextual-help",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/adobe/spectrum-web-components.git",
|
|
11
|
+
"directory": "1st-gen/packages/contextual-help"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/adobe/spectrum-web-components/issues"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"default": "./src/index.js",
|
|
20
|
+
"development": "./src/index.dev.js"
|
|
12
21
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
22
|
+
"./package.json": "./package.json",
|
|
23
|
+
"./sp-contextual-help.js": {
|
|
24
|
+
"default": "./sp-contextual-help.js",
|
|
25
|
+
"development": "./sp-contextual-help.dev.js"
|
|
15
26
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"default": "./src/index.js",
|
|
20
|
-
"development": "./src/index.dev.js"
|
|
21
|
-
},
|
|
22
|
-
"./package.json": "./package.json",
|
|
23
|
-
"./sp-contextual-help.js": {
|
|
24
|
-
"default": "./sp-contextual-help.js",
|
|
25
|
-
"development": "./sp-contextual-help.dev.js"
|
|
26
|
-
},
|
|
27
|
-
"./src/ContextualHelp.js": {
|
|
28
|
-
"default": "./src/ContextualHelp.js",
|
|
29
|
-
"development": "./src/ContextualHelp.dev.js"
|
|
30
|
-
},
|
|
31
|
-
"./src/contextual-help-overrides.css.js": "./src/contextual-help-overrides.css.js",
|
|
32
|
-
"./src/contextual-help.css.js": "./src/contextual-help.css.js",
|
|
33
|
-
"./src/index.js": {
|
|
34
|
-
"default": "./src/index.js",
|
|
35
|
-
"development": "./src/index.dev.js"
|
|
36
|
-
}
|
|
27
|
+
"./src/ContextualHelp.js": {
|
|
28
|
+
"default": "./src/ContextualHelp.js",
|
|
29
|
+
"development": "./src/ContextualHelp.dev.js"
|
|
37
30
|
},
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
31
|
+
"./src/contextual-help-overrides.css.js": "./src/contextual-help-overrides.css.js",
|
|
32
|
+
"./src/contextual-help.css.js": "./src/contextual-help.css.js",
|
|
33
|
+
"./src/index.js": {
|
|
34
|
+
"default": "./src/index.js",
|
|
35
|
+
"development": "./src/index.dev.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"main": "./src/index.js",
|
|
39
|
+
"module": "./src/index.js",
|
|
40
|
+
"files": [
|
|
41
|
+
"**/*.d.ts",
|
|
42
|
+
"**/*.js",
|
|
43
|
+
"**/*.js.map",
|
|
44
|
+
"custom-elements.json",
|
|
45
|
+
"!stories/",
|
|
46
|
+
"!test/"
|
|
47
|
+
],
|
|
48
|
+
"scripts": {
|
|
49
|
+
"test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
|
|
50
|
+
},
|
|
51
|
+
"sideEffects": [
|
|
52
|
+
"./sp-*.js",
|
|
53
|
+
"./**/*.dev.js",
|
|
54
|
+
"./**/*.dev.js"
|
|
55
|
+
],
|
|
56
|
+
"types": "./src/index.d.ts",
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@spectrum-web-components/action-button": "1.9.1-nightly.20251028214328",
|
|
59
|
+
"@spectrum-web-components/base": "1.9.1-nightly.20251028214328",
|
|
60
|
+
"@spectrum-web-components/dialog": "1.9.1-nightly.20251028214328",
|
|
61
|
+
"@spectrum-web-components/icons-workflow": "1.9.1-nightly.20251028214328",
|
|
62
|
+
"@spectrum-web-components/overlay": "1.9.1-nightly.20251028214328",
|
|
63
|
+
"@spectrum-web-components/popover": "1.9.1-nightly.20251028214328",
|
|
64
|
+
"@spectrum-web-components/reactive-controllers": "1.9.1-nightly.20251028214328"
|
|
65
|
+
},
|
|
66
|
+
"keywords": [
|
|
67
|
+
"design-system",
|
|
68
|
+
"spectrum",
|
|
69
|
+
"adobe",
|
|
70
|
+
"adobe-spectrum",
|
|
71
|
+
"web components",
|
|
72
|
+
"web-components",
|
|
73
|
+
"lit-element",
|
|
74
|
+
"lit-html",
|
|
75
|
+
"component",
|
|
76
|
+
"css"
|
|
77
|
+
],
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"access": "public"
|
|
80
|
+
},
|
|
81
|
+
"customElements": "custom-elements.json"
|
|
82
|
+
}
|
package/custom-elements.json
DELETED
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.0.0",
|
|
3
|
-
"readme": "",
|
|
4
|
-
"modules": [
|
|
5
|
-
{
|
|
6
|
-
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-contextual-help.js",
|
|
8
|
-
"declarations": [],
|
|
9
|
-
"exports": [
|
|
10
|
-
{
|
|
11
|
-
"kind": "custom-element-definition",
|
|
12
|
-
"name": "sp-contextual-help",
|
|
13
|
-
"declaration": {
|
|
14
|
-
"name": "ContextualHelp",
|
|
15
|
-
"module": "/src/ContextualHelp.js"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"kind": "javascript-module",
|
|
22
|
-
"path": "src/ContextualHelp.js",
|
|
23
|
-
"declarations": [
|
|
24
|
-
{
|
|
25
|
-
"kind": "variable",
|
|
26
|
-
"name": "DEFAULT_ARIA_LABELS",
|
|
27
|
-
"type": {
|
|
28
|
-
"text": "{\n help: 'Help',\n info: 'Information',\n}"
|
|
29
|
-
},
|
|
30
|
-
"default": "{ help: 'Help', info: 'Information', }"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"kind": "class",
|
|
34
|
-
"description": "Spectrum Contextual help provides additional information about\nthe state of either an adjacent component or an entire view.",
|
|
35
|
-
"name": "ContextualHelp",
|
|
36
|
-
"slots": [
|
|
37
|
-
{
|
|
38
|
-
"description": "content to display as the heading of the popover",
|
|
39
|
-
"name": "heading"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"description": "content to display in the popover",
|
|
43
|
-
"name": "Text"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"description": "link to additional informations",
|
|
47
|
-
"name": "link"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"members": [
|
|
51
|
-
{
|
|
52
|
-
"kind": "field",
|
|
53
|
-
"name": "isMobile",
|
|
54
|
-
"privacy": "public",
|
|
55
|
-
"default": "new MatchMediaController(this, IS_MOBILE)"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"kind": "field",
|
|
59
|
-
"name": "label",
|
|
60
|
-
"type": {
|
|
61
|
-
"text": "string | undefined"
|
|
62
|
-
},
|
|
63
|
-
"privacy": "public",
|
|
64
|
-
"description": "Provides an accessible name for the action button trigger.",
|
|
65
|
-
"parameters": [
|
|
66
|
-
{
|
|
67
|
-
"name": "label",
|
|
68
|
-
"type": {
|
|
69
|
-
"text": "String"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"attribute": "label"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"kind": "field",
|
|
77
|
-
"name": "variant",
|
|
78
|
-
"type": {
|
|
79
|
-
"text": "'info' | 'help'"
|
|
80
|
-
},
|
|
81
|
-
"privacy": "public",
|
|
82
|
-
"default": "'info'",
|
|
83
|
-
"description": "The `variant` property applies specific styling on the action button trigger.",
|
|
84
|
-
"parameters": [
|
|
85
|
-
{
|
|
86
|
-
"name": "variant",
|
|
87
|
-
"type": {
|
|
88
|
-
"text": "String"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"attribute": "variant"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"kind": "field",
|
|
96
|
-
"name": "placement",
|
|
97
|
-
"type": {
|
|
98
|
-
"text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
|
|
99
|
-
},
|
|
100
|
-
"privacy": "public",
|
|
101
|
-
"default": "'bottom-start'",
|
|
102
|
-
"attribute": "placement",
|
|
103
|
-
"reflects": true
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"kind": "field",
|
|
107
|
-
"name": "offset",
|
|
108
|
-
"type": {
|
|
109
|
-
"text": "number | [number, number]"
|
|
110
|
-
},
|
|
111
|
-
"privacy": "public",
|
|
112
|
-
"default": "0",
|
|
113
|
-
"description": "The `offset` property accepts either a single number, to\ndefine the offset of the Popover along the main axis from\nthe action button, or 2-tuple, to define the offset along the\nmain axis and the cross axis.",
|
|
114
|
-
"attribute": "offset"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"kind": "field",
|
|
118
|
-
"name": "open",
|
|
119
|
-
"type": {
|
|
120
|
-
"text": "boolean"
|
|
121
|
-
},
|
|
122
|
-
"default": "false",
|
|
123
|
-
"attribute": "open"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"kind": "field",
|
|
127
|
-
"name": "buttonAriaLabel",
|
|
128
|
-
"type": {
|
|
129
|
-
"text": "string"
|
|
130
|
-
},
|
|
131
|
-
"privacy": "public",
|
|
132
|
-
"readonly": true
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"kind": "method",
|
|
136
|
-
"name": "renderOverlayContent",
|
|
137
|
-
"privacy": "private",
|
|
138
|
-
"return": {
|
|
139
|
-
"type": {
|
|
140
|
-
"text": "TemplateResult"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"kind": "method",
|
|
146
|
-
"name": "handleSlottableRequest",
|
|
147
|
-
"privacy": "private",
|
|
148
|
-
"return": {
|
|
149
|
-
"type": {
|
|
150
|
-
"text": "void"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"parameters": [
|
|
154
|
-
{
|
|
155
|
-
"name": "event",
|
|
156
|
-
"type": {
|
|
157
|
-
"text": "SlottableRequestEvent"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
"attributes": [
|
|
164
|
-
{
|
|
165
|
-
"name": "placement",
|
|
166
|
-
"type": {
|
|
167
|
-
"text": "\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\""
|
|
168
|
-
},
|
|
169
|
-
"default": "'bottom-start'",
|
|
170
|
-
"fieldName": "placement",
|
|
171
|
-
"attribute": "placement"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "label",
|
|
175
|
-
"type": {
|
|
176
|
-
"text": "string | undefined"
|
|
177
|
-
},
|
|
178
|
-
"description": "Provides an accessible name for the action button trigger.",
|
|
179
|
-
"parameters": [
|
|
180
|
-
{
|
|
181
|
-
"name": "label",
|
|
182
|
-
"type": {
|
|
183
|
-
"text": "String"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"fieldName": "label"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "variant",
|
|
191
|
-
"type": {
|
|
192
|
-
"text": "'info' | 'help'"
|
|
193
|
-
},
|
|
194
|
-
"default": "'info'",
|
|
195
|
-
"description": "The `variant` property applies specific styling on the action button trigger.",
|
|
196
|
-
"parameters": [
|
|
197
|
-
{
|
|
198
|
-
"name": "variant",
|
|
199
|
-
"type": {
|
|
200
|
-
"text": "String"
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
],
|
|
204
|
-
"fieldName": "variant"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"name": "offset",
|
|
208
|
-
"type": {
|
|
209
|
-
"text": "number | [number, number]"
|
|
210
|
-
},
|
|
211
|
-
"default": "0",
|
|
212
|
-
"description": "The `offset` property accepts either a single number, to\ndefine the offset of the Popover along the main axis from\nthe action button, or 2-tuple, to define the offset along the\nmain axis and the cross axis.",
|
|
213
|
-
"fieldName": "offset"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"name": "open",
|
|
217
|
-
"type": {
|
|
218
|
-
"text": "boolean"
|
|
219
|
-
},
|
|
220
|
-
"default": "false",
|
|
221
|
-
"fieldName": "open"
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"superclass": {
|
|
225
|
-
"name": "SpectrumElement",
|
|
226
|
-
"package": "@spectrum-web-components/base"
|
|
227
|
-
},
|
|
228
|
-
"tagName": "sp-contextual-help",
|
|
229
|
-
"customElement": true
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
"exports": [
|
|
233
|
-
{
|
|
234
|
-
"kind": "js",
|
|
235
|
-
"name": "DEFAULT_ARIA_LABELS",
|
|
236
|
-
"declaration": {
|
|
237
|
-
"name": "DEFAULT_ARIA_LABELS",
|
|
238
|
-
"module": "src/ContextualHelp.js"
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"kind": "js",
|
|
243
|
-
"name": "ContextualHelp",
|
|
244
|
-
"declaration": {
|
|
245
|
-
"name": "ContextualHelp",
|
|
246
|
-
"module": "src/ContextualHelp.js"
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
]
|
|
252
|
-
}
|
package/sp-contextual-help.d.ts
DELETED
|
@@ -1,17 +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 { ContextualHelp } from './src/ContextualHelp.js';
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
'sp-contextual-help': ContextualHelp;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["sp-contextual-help.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 */\nimport { ContextualHelp } from './src/ContextualHelp.dev.js'\n\ncustomElements.define('sp-contextual-help', ContextualHelp);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-contextual-help': ContextualHelp;\n }\n}\n"],
|
|
5
|
-
"mappings": ";AAWA,SAAS,sBAAsB;AAE/B,eAAe,OAAO,sBAAsB,cAAc;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/sp-contextual-help.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["sp-contextual-help.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 */\nimport { ContextualHelp } from './src/ContextualHelp.js';\n\ncustomElements.define('sp-contextual-help', ContextualHelp);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-contextual-help': ContextualHelp;\n }\n}\n"],
|
|
5
|
-
"mappings": "aAWA,OAAS,kBAAAA,MAAsB,0BAE/B,eAAe,OAAO,qBAAsBA,CAAc",
|
|
6
|
-
"names": ["ContextualHelp"]
|
|
7
|
-
}
|
package/src/ContextualHelp.d.ts
DELETED
|
@@ -1,62 +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
|
-
import '@spectrum-web-components/action-button/sp-action-button.js';
|
|
14
|
-
import '@spectrum-web-components/overlay/sp-overlay.js';
|
|
15
|
-
import '@spectrum-web-components/icons-workflow/icons/sp-icon-help-outline.js';
|
|
16
|
-
import '@spectrum-web-components/icons-workflow/icons/sp-icon-info-outline.js';
|
|
17
|
-
import type { Placement } from '@spectrum-web-components/overlay/src/overlay-types.js';
|
|
18
|
-
import { MatchMediaController } from '@spectrum-web-components/reactive-controllers/src/MatchMedia.js';
|
|
19
|
-
export declare const DEFAULT_ARIA_LABELS: {
|
|
20
|
-
readonly help: "Help";
|
|
21
|
-
readonly info: "Information";
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Spectrum Contextual help provides additional information about
|
|
25
|
-
* the state of either an adjacent component or an entire view.
|
|
26
|
-
* @element sp-contextual-help
|
|
27
|
-
*
|
|
28
|
-
* @slot heading - content to display as the heading of the popover
|
|
29
|
-
* @slot Text content to display in the popover
|
|
30
|
-
* @slot link - link to additional informations
|
|
31
|
-
*/
|
|
32
|
-
export declare class ContextualHelp extends SpectrumElement {
|
|
33
|
-
isMobile: MatchMediaController;
|
|
34
|
-
static get styles(): CSSResultArray;
|
|
35
|
-
/**
|
|
36
|
-
* Provides an accessible name for the action button trigger.
|
|
37
|
-
* @param {String} label
|
|
38
|
-
*/
|
|
39
|
-
label?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The `variant` property applies specific styling on the action button trigger.
|
|
42
|
-
* @param {String} variant
|
|
43
|
-
*/
|
|
44
|
-
variant: 'info' | 'help';
|
|
45
|
-
/**
|
|
46
|
-
* @type {"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"}
|
|
47
|
-
* @attr
|
|
48
|
-
*/
|
|
49
|
-
placement?: Placement;
|
|
50
|
-
/**
|
|
51
|
-
* The `offset` property accepts either a single number, to
|
|
52
|
-
* define the offset of the Popover along the main axis from
|
|
53
|
-
* the action button, or 2-tuple, to define the offset along the
|
|
54
|
-
* main axis and the cross axis.
|
|
55
|
-
*/
|
|
56
|
-
offset: number | [number, number];
|
|
57
|
-
open: boolean;
|
|
58
|
-
get buttonAriaLabel(): string;
|
|
59
|
-
private renderOverlayContent;
|
|
60
|
-
private handleSlottableRequest;
|
|
61
|
-
protected render(): TemplateResult;
|
|
62
|
-
}
|
|
@@ -1,141 +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
|
-
render,
|
|
15
|
-
SpectrumElement
|
|
16
|
-
} from "@spectrum-web-components/base";
|
|
17
|
-
import "@spectrum-web-components/action-button/sp-action-button.js";
|
|
18
|
-
import "@spectrum-web-components/overlay/sp-overlay.js";
|
|
19
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-help-outline.js";
|
|
20
|
-
import "@spectrum-web-components/icons-workflow/icons/sp-icon-info-outline.js";
|
|
21
|
-
import { property } from "@spectrum-web-components/base/src/decorators.js";
|
|
22
|
-
import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
|
|
23
|
-
import {
|
|
24
|
-
removeSlottableRequest
|
|
25
|
-
} from "@spectrum-web-components/overlay/src/slottable-request-event.js";
|
|
26
|
-
import {
|
|
27
|
-
IS_MOBILE,
|
|
28
|
-
MatchMediaController
|
|
29
|
-
} from "@spectrum-web-components/reactive-controllers/src/MatchMedia.js";
|
|
30
|
-
import styles from "./contextual-help.css.js";
|
|
31
|
-
export const DEFAULT_ARIA_LABELS = {
|
|
32
|
-
help: "Help",
|
|
33
|
-
info: "Information"
|
|
34
|
-
};
|
|
35
|
-
export class ContextualHelp extends SpectrumElement {
|
|
36
|
-
constructor() {
|
|
37
|
-
super(...arguments);
|
|
38
|
-
this.isMobile = new MatchMediaController(this, IS_MOBILE);
|
|
39
|
-
this.variant = "info";
|
|
40
|
-
this.placement = "bottom-start";
|
|
41
|
-
this.offset = 0;
|
|
42
|
-
this.open = false;
|
|
43
|
-
}
|
|
44
|
-
static get styles() {
|
|
45
|
-
return [styles];
|
|
46
|
-
}
|
|
47
|
-
get buttonAriaLabel() {
|
|
48
|
-
if (this.label) {
|
|
49
|
-
return this.label;
|
|
50
|
-
} else {
|
|
51
|
-
if (this.variant === "help") {
|
|
52
|
-
return DEFAULT_ARIA_LABELS.help;
|
|
53
|
-
}
|
|
54
|
-
return DEFAULT_ARIA_LABELS.info;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
renderOverlayContent() {
|
|
58
|
-
if (this.isMobile.matches) {
|
|
59
|
-
import("@spectrum-web-components/dialog/sp-dialog-base.js");
|
|
60
|
-
import("@spectrum-web-components/dialog/sp-dialog.js");
|
|
61
|
-
return html`
|
|
62
|
-
<sp-dialog-base underlay>
|
|
63
|
-
<sp-dialog dismissable size="s">
|
|
64
|
-
<slot name="heading" slot="heading"></slot>
|
|
65
|
-
<slot></slot>
|
|
66
|
-
<slot name="link"></slot>
|
|
67
|
-
</sp-dialog>
|
|
68
|
-
</sp-dialog-base>
|
|
69
|
-
`;
|
|
70
|
-
} else {
|
|
71
|
-
import("@spectrum-web-components/popover/sp-popover.js");
|
|
72
|
-
return html`
|
|
73
|
-
<sp-popover class="popover">
|
|
74
|
-
<section>
|
|
75
|
-
<slot name="heading"></slot>
|
|
76
|
-
<slot></slot>
|
|
77
|
-
<slot name="link"></slot>
|
|
78
|
-
</section>
|
|
79
|
-
</sp-popover>
|
|
80
|
-
`;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
handleSlottableRequest(event) {
|
|
84
|
-
event.stopPropagation();
|
|
85
|
-
if (event.data === removeSlottableRequest) {
|
|
86
|
-
this.open = false;
|
|
87
|
-
render(void 0, event.target);
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
this.open = true;
|
|
91
|
-
const template = this.renderOverlayContent();
|
|
92
|
-
render(template, event.target);
|
|
93
|
-
}
|
|
94
|
-
render() {
|
|
95
|
-
const actualPlacement = this.isMobile.matches ? void 0 : this.placement;
|
|
96
|
-
return html`
|
|
97
|
-
<sp-action-button
|
|
98
|
-
quiet
|
|
99
|
-
size="s"
|
|
100
|
-
id="trigger"
|
|
101
|
-
aria-label=${this.buttonAriaLabel}
|
|
102
|
-
.active=${this.open}
|
|
103
|
-
>
|
|
104
|
-
${this.variant === "help" ? html`
|
|
105
|
-
<sp-icon-help-outline
|
|
106
|
-
slot="icon"
|
|
107
|
-
></sp-icon-help-outline>
|
|
108
|
-
` : html`
|
|
109
|
-
<sp-icon-info-outline
|
|
110
|
-
slot="icon"
|
|
111
|
-
></sp-icon-info-outline>
|
|
112
|
-
`}
|
|
113
|
-
</sp-action-button>
|
|
114
|
-
<sp-overlay
|
|
115
|
-
trigger="trigger@click"
|
|
116
|
-
placement=${ifDefined(actualPlacement)}
|
|
117
|
-
type=${this.isMobile.matches ? "modal" : "auto"}
|
|
118
|
-
receives-focus="true"
|
|
119
|
-
.offset=${this.offset}
|
|
120
|
-
@slottable-request=${this.handleSlottableRequest}
|
|
121
|
-
?open=${this.open}
|
|
122
|
-
></sp-overlay>
|
|
123
|
-
`;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
__decorateClass([
|
|
127
|
-
property()
|
|
128
|
-
], ContextualHelp.prototype, "label", 2);
|
|
129
|
-
__decorateClass([
|
|
130
|
-
property()
|
|
131
|
-
], ContextualHelp.prototype, "variant", 2);
|
|
132
|
-
__decorateClass([
|
|
133
|
-
property({ reflect: true })
|
|
134
|
-
], ContextualHelp.prototype, "placement", 2);
|
|
135
|
-
__decorateClass([
|
|
136
|
-
property({ type: Number })
|
|
137
|
-
], ContextualHelp.prototype, "offset", 2);
|
|
138
|
-
__decorateClass([
|
|
139
|
-
property({ type: Boolean })
|
|
140
|
-
], ContextualHelp.prototype, "open", 2);
|
|
141
|
-
//# sourceMappingURL=ContextualHelp.dev.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["ContextualHelp.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 */\nimport {\n CSSResultArray,\n html,\n render,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/overlay/sp-overlay.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help-outline.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info-outline.js';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport type { Placement } from '@spectrum-web-components/overlay/src/overlay-types.js';\nimport {\n removeSlottableRequest,\n SlottableRequestEvent,\n} from '@spectrum-web-components/overlay/src/slottable-request-event.js';\nimport {\n IS_MOBILE,\n MatchMediaController,\n} from '@spectrum-web-components/reactive-controllers/src/MatchMedia.js';\nimport styles from './contextual-help.css.js';\n\nexport const DEFAULT_ARIA_LABELS = {\n help: 'Help',\n info: 'Information',\n} as const;\n\n/**\n * Spectrum Contextual help provides additional information about\n * the state of either an adjacent component or an entire view.\n * @element sp-contextual-help\n *\n * @slot heading - content to display as the heading of the popover\n * @slot Text content to display in the popover\n * @slot link - link to additional informations\n */\nexport class ContextualHelp extends SpectrumElement {\n public isMobile = new MatchMediaController(this, IS_MOBILE);\n\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n /**\n * Provides an accessible name for the action button trigger.\n * @param {String} label\n */\n @property()\n public label?: string;\n\n /**\n * The `variant` property applies specific styling on the action button trigger.\n * @param {String} variant\n */\n @property()\n public variant: 'info' | 'help' = 'info';\n\n /**\n * @type {\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\"}\n * @attr\n */\n @property({ reflect: true })\n public placement?: Placement = 'bottom-start';\n\n /**\n * The `offset` property accepts either a single number, to\n * define the offset of the Popover along the main axis from\n * the action button, or 2-tuple, to define the offset along the\n * main axis and the cross axis.\n */\n @property({ type: Number })\n public offset: number | [number, number] = 0;\n\n @property({ type: Boolean })\n open = false;\n\n public get buttonAriaLabel(): string {\n if (this.label) {\n return this.label;\n } else {\n if (this.variant === 'help') {\n return DEFAULT_ARIA_LABELS.help;\n }\n return DEFAULT_ARIA_LABELS.info;\n }\n }\n\n private renderOverlayContent(): TemplateResult {\n if (this.isMobile.matches) {\n import('@spectrum-web-components/dialog/sp-dialog-base.js');\n import('@spectrum-web-components/dialog/sp-dialog.js');\n\n return html`\n <sp-dialog-base underlay>\n <sp-dialog dismissable size=\"s\">\n <slot name=\"heading\" slot=\"heading\"></slot>\n <slot></slot>\n <slot name=\"link\"></slot>\n </sp-dialog>\n </sp-dialog-base>\n `;\n } else {\n import('@spectrum-web-components/popover/sp-popover.js');\n\n return html`\n <sp-popover class=\"popover\">\n <section>\n <slot name=\"heading\"></slot>\n <slot></slot>\n <slot name=\"link\"></slot>\n </section>\n </sp-popover>\n `;\n }\n }\n\n private handleSlottableRequest(event: SlottableRequestEvent): void {\n event.stopPropagation();\n\n if (event.data === removeSlottableRequest) {\n this.open = false;\n render(undefined, event.target as HTMLElement);\n return;\n }\n\n this.open = true;\n const template = this.renderOverlayContent();\n render(template, event.target as HTMLElement);\n }\n\n protected override render(): TemplateResult {\n /* c8 ignore next 3 */\n const actualPlacement = this.isMobile.matches\n ? undefined\n : this.placement;\n\n return html`\n <sp-action-button\n quiet\n size=\"s\"\n id=\"trigger\"\n aria-label=${this.buttonAriaLabel}\n .active=${this.open}\n >\n ${this.variant === 'help'\n ? html`\n <sp-icon-help-outline\n slot=\"icon\"\n ></sp-icon-help-outline>\n `\n : html`\n <sp-icon-info-outline\n slot=\"icon\"\n ></sp-icon-info-outline>\n `}\n </sp-action-button>\n <sp-overlay\n trigger=\"trigger@click\"\n placement=${ifDefined(actualPlacement)}\n type=${this.isMobile.matches ? 'modal' : 'auto'}\n receives-focus=\"true\"\n .offset=${this.offset}\n @slottable-request=${this.handleSlottableRequest}\n ?open=${this.open}\n ></sp-overlay>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;AAWA;AAAA,EAEI;AAAA,EACA;AAAA,EACA;AAAA,OAEG;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAE1B;AAAA,EACI;AAAA,OAEG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP,OAAO,YAAY;AAEZ,aAAM,sBAAsB;AAAA,EAC/B,MAAM;AAAA,EACN,MAAM;AACV;AAWO,aAAM,uBAAuB,gBAAgB;AAAA,EAA7C;AAAA;AACH,SAAO,WAAW,IAAI,qBAAqB,MAAM,SAAS;AAkB1D,SAAO,UAA2B;AAOlC,SAAO,YAAwB;AAS/B,SAAO,SAAoC;AAG3C,gBAAO;AAAA;AAAA,EAnCP,WAA2B,SAAyB;AAChD,WAAO,CAAC,MAAM;AAAA,EAClB;AAAA,EAmCA,IAAW,kBAA0B;AACjC,QAAI,KAAK,OAAO;AACZ,aAAO,KAAK;AAAA,IAChB,OAAO;AACH,UAAI,KAAK,YAAY,QAAQ;AACzB,eAAO,oBAAoB;AAAA,MAC/B;AACA,aAAO,oBAAoB;AAAA,IAC/B;AAAA,EACJ;AAAA,EAEQ,uBAAuC;AAC3C,QAAI,KAAK,SAAS,SAAS;AACvB,aAAO,mDAAmD;AAC1D,aAAO,8CAA8C;AAErD,aAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASX,OAAO;AACH,aAAO,gDAAgD;AAEvD,aAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASX;AAAA,EACJ;AAAA,EAEQ,uBAAuB,OAAoC;AAC/D,UAAM,gBAAgB;AAEtB,QAAI,MAAM,SAAS,wBAAwB;AACvC,WAAK,OAAO;AACZ,aAAO,QAAW,MAAM,MAAqB;AAC7C;AAAA,IACJ;AAEA,SAAK,OAAO;AACZ,UAAM,WAAW,KAAK,qBAAqB;AAC3C,WAAO,UAAU,MAAM,MAAqB;AAAA,EAChD;AAAA,EAEmB,SAAyB;AAExC,UAAM,kBAAkB,KAAK,SAAS,UAChC,SACA,KAAK;AAEX,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA,6BAKc,KAAK,eAAe;AAAA,0BACvB,KAAK,IAAI;AAAA;AAAA,kBAEjB,KAAK,YAAY,SACb;AAAA;AAAA;AAAA;AAAA,0BAKA;AAAA;AAAA;AAAA;AAAA,uBAIC;AAAA;AAAA;AAAA;AAAA,4BAIK,UAAU,eAAe,CAAC;AAAA,uBAC/B,KAAK,SAAS,UAAU,UAAU,MAAM;AAAA;AAAA,0BAErC,KAAK,MAAM;AAAA,qCACA,KAAK,sBAAsB;AAAA,wBACxC,KAAK,IAAI;AAAA;AAAA;AAAA,EAG7B;AACJ;AAvHW;AAAA,EADN,SAAS;AAAA,GAXD,eAYF;AAOA;AAAA,EADN,SAAS;AAAA,GAlBD,eAmBF;AAOA;AAAA,EADN,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,GAzBlB,eA0BF;AASA;AAAA,EADN,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAlCjB,eAmCF;AAGP;AAAA,EADC,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GArClB,eAsCT;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/src/ContextualHelp.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var i=(n,s,e,o)=>{for(var t=o>1?void 0:o?u(s,e):s,a=n.length-1,p;a>=0;a--)(p=n[a])&&(t=(o?p(s,e,t):p(t))||t);return o&&t&&c(s,e,t),t};import{html as r,render as m,SpectrumElement as b}from"@spectrum-web-components/base";import"@spectrum-web-components/action-button/sp-action-button.js";import"@spectrum-web-components/overlay/sp-overlay.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-help-outline.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-info-outline.js";import{property as l}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as h}from"@spectrum-web-components/base/src/directives.js";import{removeSlottableRequest as f}from"@spectrum-web-components/overlay/src/slottable-request-event.js";import{IS_MOBILE as d,MatchMediaController as g}from"@spectrum-web-components/reactive-controllers/src/MatchMedia.js";import v from"./contextual-help.css.js";export const DEFAULT_ARIA_LABELS={help:"Help",info:"Information"};export class ContextualHelp extends b{constructor(){super(...arguments);this.isMobile=new g(this,d);this.variant="info";this.placement="bottom-start";this.offset=0;this.open=!1}static get styles(){return[v]}get buttonAriaLabel(){return this.label?this.label:this.variant==="help"?DEFAULT_ARIA_LABELS.help:DEFAULT_ARIA_LABELS.info}renderOverlayContent(){return this.isMobile.matches?(import("@spectrum-web-components/dialog/sp-dialog-base.js"),import("@spectrum-web-components/dialog/sp-dialog.js"),r`
|
|
2
|
-
<sp-dialog-base underlay>
|
|
3
|
-
<sp-dialog dismissable size="s">
|
|
4
|
-
<slot name="heading" slot="heading"></slot>
|
|
5
|
-
<slot></slot>
|
|
6
|
-
<slot name="link"></slot>
|
|
7
|
-
</sp-dialog>
|
|
8
|
-
</sp-dialog-base>
|
|
9
|
-
`):(import("@spectrum-web-components/popover/sp-popover.js"),r`
|
|
10
|
-
<sp-popover class="popover">
|
|
11
|
-
<section>
|
|
12
|
-
<slot name="heading"></slot>
|
|
13
|
-
<slot></slot>
|
|
14
|
-
<slot name="link"></slot>
|
|
15
|
-
</section>
|
|
16
|
-
</sp-popover>
|
|
17
|
-
`)}handleSlottableRequest(e){if(e.stopPropagation(),e.data===f){this.open=!1,m(void 0,e.target);return}this.open=!0;const o=this.renderOverlayContent();m(o,e.target)}render(){const e=this.isMobile.matches?void 0:this.placement;return r`
|
|
18
|
-
<sp-action-button
|
|
19
|
-
quiet
|
|
20
|
-
size="s"
|
|
21
|
-
id="trigger"
|
|
22
|
-
aria-label=${this.buttonAriaLabel}
|
|
23
|
-
.active=${this.open}
|
|
24
|
-
>
|
|
25
|
-
${this.variant==="help"?r`
|
|
26
|
-
<sp-icon-help-outline
|
|
27
|
-
slot="icon"
|
|
28
|
-
></sp-icon-help-outline>
|
|
29
|
-
`:r`
|
|
30
|
-
<sp-icon-info-outline
|
|
31
|
-
slot="icon"
|
|
32
|
-
></sp-icon-info-outline>
|
|
33
|
-
`}
|
|
34
|
-
</sp-action-button>
|
|
35
|
-
<sp-overlay
|
|
36
|
-
trigger="trigger@click"
|
|
37
|
-
placement=${h(e)}
|
|
38
|
-
type=${this.isMobile.matches?"modal":"auto"}
|
|
39
|
-
receives-focus="true"
|
|
40
|
-
.offset=${this.offset}
|
|
41
|
-
@slottable-request=${this.handleSlottableRequest}
|
|
42
|
-
?open=${this.open}
|
|
43
|
-
></sp-overlay>
|
|
44
|
-
`}}i([l()],ContextualHelp.prototype,"label",2),i([l()],ContextualHelp.prototype,"variant",2),i([l({reflect:!0})],ContextualHelp.prototype,"placement",2),i([l({type:Number})],ContextualHelp.prototype,"offset",2),i([l({type:Boolean})],ContextualHelp.prototype,"open",2);
|
|
45
|
-
//# sourceMappingURL=ContextualHelp.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["ContextualHelp.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 */\nimport {\n CSSResultArray,\n html,\n render,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/overlay/sp-overlay.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-help-outline.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-info-outline.js';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport type { Placement } from '@spectrum-web-components/overlay/src/overlay-types.js';\nimport {\n removeSlottableRequest,\n SlottableRequestEvent,\n} from '@spectrum-web-components/overlay/src/slottable-request-event.js';\nimport {\n IS_MOBILE,\n MatchMediaController,\n} from '@spectrum-web-components/reactive-controllers/src/MatchMedia.js';\nimport styles from './contextual-help.css.js';\n\nexport const DEFAULT_ARIA_LABELS = {\n help: 'Help',\n info: 'Information',\n} as const;\n\n/**\n * Spectrum Contextual help provides additional information about\n * the state of either an adjacent component or an entire view.\n * @element sp-contextual-help\n *\n * @slot heading - content to display as the heading of the popover\n * @slot Text content to display in the popover\n * @slot link - link to additional informations\n */\nexport class ContextualHelp extends SpectrumElement {\n public isMobile = new MatchMediaController(this, IS_MOBILE);\n\n public static override get styles(): CSSResultArray {\n return [styles];\n }\n\n /**\n * Provides an accessible name for the action button trigger.\n * @param {String} label\n */\n @property()\n public label?: string;\n\n /**\n * The `variant` property applies specific styling on the action button trigger.\n * @param {String} variant\n */\n @property()\n public variant: 'info' | 'help' = 'info';\n\n /**\n * @type {\"top\" | \"top-start\" | \"top-end\" | \"right\" | \"right-start\" | \"right-end\" | \"bottom\" | \"bottom-start\" | \"bottom-end\" | \"left\" | \"left-start\" | \"left-end\"}\n * @attr\n */\n @property({ reflect: true })\n public placement?: Placement = 'bottom-start';\n\n /**\n * The `offset` property accepts either a single number, to\n * define the offset of the Popover along the main axis from\n * the action button, or 2-tuple, to define the offset along the\n * main axis and the cross axis.\n */\n @property({ type: Number })\n public offset: number | [number, number] = 0;\n\n @property({ type: Boolean })\n open = false;\n\n public get buttonAriaLabel(): string {\n if (this.label) {\n return this.label;\n } else {\n if (this.variant === 'help') {\n return DEFAULT_ARIA_LABELS.help;\n }\n return DEFAULT_ARIA_LABELS.info;\n }\n }\n\n private renderOverlayContent(): TemplateResult {\n if (this.isMobile.matches) {\n import('@spectrum-web-components/dialog/sp-dialog-base.js');\n import('@spectrum-web-components/dialog/sp-dialog.js');\n\n return html`\n <sp-dialog-base underlay>\n <sp-dialog dismissable size=\"s\">\n <slot name=\"heading\" slot=\"heading\"></slot>\n <slot></slot>\n <slot name=\"link\"></slot>\n </sp-dialog>\n </sp-dialog-base>\n `;\n } else {\n import('@spectrum-web-components/popover/sp-popover.js');\n\n return html`\n <sp-popover class=\"popover\">\n <section>\n <slot name=\"heading\"></slot>\n <slot></slot>\n <slot name=\"link\"></slot>\n </section>\n </sp-popover>\n `;\n }\n }\n\n private handleSlottableRequest(event: SlottableRequestEvent): void {\n event.stopPropagation();\n\n if (event.data === removeSlottableRequest) {\n this.open = false;\n render(undefined, event.target as HTMLElement);\n return;\n }\n\n this.open = true;\n const template = this.renderOverlayContent();\n render(template, event.target as HTMLElement);\n }\n\n protected override render(): TemplateResult {\n /* c8 ignore next 3 */\n const actualPlacement = this.isMobile.matches\n ? undefined\n : this.placement;\n\n return html`\n <sp-action-button\n quiet\n size=\"s\"\n id=\"trigger\"\n aria-label=${this.buttonAriaLabel}\n .active=${this.open}\n >\n ${this.variant === 'help'\n ? html`\n <sp-icon-help-outline\n slot=\"icon\"\n ></sp-icon-help-outline>\n `\n : html`\n <sp-icon-info-outline\n slot=\"icon\"\n ></sp-icon-info-outline>\n `}\n </sp-action-button>\n <sp-overlay\n trigger=\"trigger@click\"\n placement=${ifDefined(actualPlacement)}\n type=${this.isMobile.matches ? 'modal' : 'auto'}\n receives-focus=\"true\"\n .offset=${this.offset}\n @slottable-request=${this.handleSlottableRequest}\n ?open=${this.open}\n ></sp-overlay>\n `;\n }\n}\n"],
|
|
5
|
-
"mappings": "qNAWA,OAEI,QAAAA,EACA,UAAAC,EACA,mBAAAC,MAEG,gCACP,MAAO,6DACP,MAAO,iDACP,MAAO,wEACP,MAAO,wEACP,OAAS,YAAAC,MAAgB,kDACzB,OAAS,aAAAC,MAAiB,kDAE1B,OACI,0BAAAC,MAEG,kEACP,OACI,aAAAC,EACA,wBAAAC,MACG,kEACP,OAAOC,MAAY,2BAEZ,aAAM,oBAAsB,CAC/B,KAAM,OACN,KAAM,aACV,EAWO,aAAM,uBAAuBN,CAAgB,CAA7C,kCACH,KAAO,SAAW,IAAIK,EAAqB,KAAMD,CAAS,EAkB1D,KAAO,QAA2B,OAOlC,KAAO,UAAwB,eAS/B,KAAO,OAAoC,EAG3C,UAAO,GAnCP,WAA2B,QAAyB,CAChD,MAAO,CAACE,CAAM,CAClB,CAmCA,IAAW,iBAA0B,CACjC,OAAI,KAAK,MACE,KAAK,MAER,KAAK,UAAY,OACV,oBAAoB,KAExB,oBAAoB,IAEnC,CAEQ,sBAAuC,CAC3C,OAAI,KAAK,SAAS,SACd,OAAO,mDAAmD,EAC1D,OAAO,8CAA8C,EAE9CR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAUP,OAAO,gDAAgD,EAEhDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAUf,CAEQ,uBAAuBS,EAAoC,CAG/D,GAFAA,EAAM,gBAAgB,EAElBA,EAAM,OAASJ,EAAwB,CACvC,KAAK,KAAO,GACZJ,EAAO,OAAWQ,EAAM,MAAqB,EAC7C,MACJ,CAEA,KAAK,KAAO,GACZ,MAAMC,EAAW,KAAK,qBAAqB,EAC3CT,EAAOS,EAAUD,EAAM,MAAqB,CAChD,CAEmB,QAAyB,CAExC,MAAME,EAAkB,KAAK,SAAS,QAChC,OACA,KAAK,UAEX,OAAOX;AAAA;AAAA;AAAA;AAAA;AAAA,6BAKc,KAAK,eAAe;AAAA,0BACvB,KAAK,IAAI;AAAA;AAAA,kBAEjB,KAAK,UAAY,OACbA;AAAA;AAAA;AAAA;AAAA,wBAKAA;AAAA;AAAA;AAAA;AAAA,uBAIC;AAAA;AAAA;AAAA;AAAA,4BAIKI,EAAUO,CAAe,CAAC;AAAA,uBAC/B,KAAK,SAAS,QAAU,QAAU,MAAM;AAAA;AAAA,0BAErC,KAAK,MAAM;AAAA,qCACA,KAAK,sBAAsB;AAAA,wBACxC,KAAK,IAAI;AAAA;AAAA,SAG7B,CACJ,CAvHWC,EAAA,CADNT,EAAS,GAXD,eAYF,qBAOAS,EAAA,CADNT,EAAS,GAlBD,eAmBF,uBAOAS,EAAA,CADNT,EAAS,CAAE,QAAS,EAAK,CAAC,GAzBlB,eA0BF,yBASAS,EAAA,CADNT,EAAS,CAAE,KAAM,MAAO,CAAC,GAlCjB,eAmCF,sBAGPS,EAAA,CADCT,EAAS,CAAE,KAAM,OAAQ,CAAC,GArClB,eAsCT",
|
|
6
|
-
"names": ["html", "render", "SpectrumElement", "property", "ifDefined", "removeSlottableRequest", "IS_MOBILE", "MatchMediaController", "styles", "event", "template", "actualPlacement", "__decorateClass"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["contextual-help-overrides.css.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 */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n \n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["contextual-help-overrides.css.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 */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n \n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
|
-
"names": ["css", "styles"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
import { css } from "@spectrum-web-components/base";
|
|
3
|
-
const styles = css`
|
|
4
|
-
.popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}:host{display:inline-block}::slotted([slot=link]){display:block}
|
|
5
|
-
`;
|
|
6
|
-
export default styles;
|
|
7
|
-
//# sourceMappingURL=contextual-help.css.dev.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["contextual-help.css.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 */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}:host{display:inline-block}::slotted([slot=link]){display:block}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
|
|
2
|
-
.popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}:host{display:inline-block}::slotted([slot=link]){display:block}
|
|
3
|
-
`;export default o;
|
|
4
|
-
//# sourceMappingURL=contextual-help.css.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["contextual-help.css.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 */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}:host{display:inline-block}::slotted([slot=link]){display:block}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
|
-
"names": ["css", "styles"]
|
|
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 './ContextualHelp.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 './ContextualHelp.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 './ContextualHelp.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
|
-
.popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}
|
|
5
|
-
`;
|
|
6
|
-
export default styles;
|
|
7
|
-
//# sourceMappingURL=spectrum-contextual-help.css.dev.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["spectrum-contextual-help.css.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 */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";import{css as t}from"@spectrum-web-components/base";const e=t`
|
|
2
|
-
.popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}
|
|
3
|
-
`;export default e;
|
|
4
|
-
//# sourceMappingURL=spectrum-contextual-help.css.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["spectrum-contextual-help.css.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 */\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .popover{min-inline-size:var(--mod-spectrum-contextual-help-minimum-width,var(--spectrum-contextual-help-minimum-width));padding-block:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));padding-inline:var(--mod-spectrum-contextual-help-padding,var(--spectrum-spacing-400));font-size:var(--mod-spectrum-contextual-help-body-size,var(--spectrum-contextual-help-body-size));color:var(--highcontrast-contextual-help-body-color,var(--mod-contextual-help-body-color,var(--spectrum-body-color)));max-inline-size:var(--mod-spectrum-contextual-help-popover-maximum-width);position:relative}.popover .body,.popover ::slotted([slot=heading]){margin:0}.popover ::slotted([slot=heading]){font-size:var(--mod-spectrum-contextual-help-heading-size,var(--spectrum-contextual-help-title-size));color:var(--highcontrast-contextual-help-heading-color,var(--mod-contextual-help-heading-color,var(--spectrum-heading-color)));margin-block-end:var(--mod-spectrum-contextual-help-content-spacing,var(--spectrum-contextual-help-content-spacing))}::slotted([slot=link]){margin-block-start:var(--mod-spectrum-contextual-help-link-spacing,var(--spectrum-spacing-300))}@media (forced-colors:active){:host{--highcontrast-contextual-help-heading-color:CanvasText;--highcontrast-contextual-help-body-color:CanvasText}}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
|
-
"names": ["css", "styles"]
|
|
7
|
-
}
|