@aurodesignsystem-dev/auro-popover 0.0.0-pr102.2 → 0.0.0-pr106.0
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 +418 -0
- package/NOTICE +2 -0
- package/README.md +16 -50
- package/demo/api.html +63 -0
- package/demo/api.js +19 -0
- package/demo/api.md +63 -2
- package/demo/api.min.js +19 -382
- package/demo/auro-popover.min.js +2177 -0
- package/demo/index.html +57 -0
- package/demo/index.js +4 -0
- package/demo/index.md +1 -1
- package/demo/index.min.js +2 -385
- package/dist/auro-popover-CqCc1tbB.js +13 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +1 -0
- package/dist/registered.js +1 -0
- package/package.json +41 -129
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/dist/auro-popover.d.ts +0 -80
- package/dist/auro-popover.d.ts.map +0 -1
- package/dist/auro-popover__bundled.js +0 -384
- package/dist/color-css.d.ts +0 -3
- package/dist/color-css.d.ts.map +0 -1
- package/dist/layoverVersion.d.ts +0 -3
- package/dist/layoverVersion.d.ts.map +0 -1
- package/dist/style-css.d.ts +0 -3
- package/dist/style-css.d.ts.map +0 -1
- package/dist/tokens-css.d.ts +0 -3
- package/dist/tokens-css.d.ts.map +0 -1
- package/index.js +0 -3
- package/packageScripts/postinstall.mjs +0 -28
- package/src/auro-popover.js +0 -165
- package/src/color-css.js +0 -2
- package/src/layoverVersion.js +0 -1
- package/src/style-css.js +0 -2
- package/src/tokens-css.js +0 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
# Semantic Release Automated Changelog
|
|
2
|
+
|
|
3
|
+
## [5.1.2](https://github.com/AlaskaAirlines/auro-popover/compare/v5.1.1...v5.1.2) (2025-08-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update auro-library to latest version ([35f1dd3](https://github.com/AlaskaAirlines/auro-popover/commit/35f1dd3ec0e9b7d3cd417a6aa88c6ee49b9797b6))
|
|
9
|
+
|
|
10
|
+
## [5.1.1](https://github.com/AlaskaAirlines/auro-popover/compare/v5.1.0...v5.1.1) (2025-08-11)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* auro library was causing aqua scan failures ([d2ec10b](https://github.com/AlaskaAirlines/auro-popover/commit/d2ec10bfe14b450a43043d972369747b3ef33432))
|
|
16
|
+
|
|
17
|
+
# [5.1.0](https://github.com/AlaskaAirlines/auro-popover/compare/v5.0.2...v5.1.0) (2025-07-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update docs head content ([3cfece6](https://github.com/AlaskaAirlines/auro-popover/commit/3cfece62d2a477d7adbe7525836c89f3d49bc9ef))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* add themeable type tokens ([24fe5ed](https://github.com/AlaskaAirlines/auro-popover/commit/24fe5edc7e15df9e3f643f7c506c4b72b944b424))
|
|
28
|
+
|
|
29
|
+
## [5.0.2](https://github.com/AlaskaAirlines/auro-popover/compare/v5.0.1...v5.0.2) (2025-04-10)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Performance Improvements
|
|
33
|
+
|
|
34
|
+
* update color tokens for theming [#99](https://github.com/AlaskaAirlines/auro-popover/issues/99) ([ef8bd9b](https://github.com/AlaskaAirlines/auro-popover/commit/ef8bd9b58b3f373060a565c26c0015329b41a6e8))
|
|
35
|
+
* update dependencies and tsconfig ([08c93e1](https://github.com/AlaskaAirlines/auro-popover/commit/08c93e1a2041c9629dd5a7c5a055c7127b9f04cf))
|
|
36
|
+
|
|
37
|
+
## [5.0.1](https://github.com/AlaskaAirlines/auro-popover/compare/v5.0.0...v5.0.1) (2025-04-09)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Performance Improvements
|
|
41
|
+
|
|
42
|
+
* add wca script for docs api ([a554650](https://github.com/AlaskaAirlines/auro-popover/commit/a5546506cb170ec4c1b3e888f0a0933b3f3e96f6))
|
|
43
|
+
|
|
44
|
+
# [5.0.0](https://github.com/AlaskaAirlines/auro-popover/compare/v4.1.3...v5.0.0) (2025-02-28)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
* feat!: move peer dependencies to "real" dependencies ([7750a60](https://github.com/AlaskaAirlines/auro-popover/commit/7750a60bc6f2de9718fa061208d560cd903f0400))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### BREAKING CHANGES
|
|
51
|
+
|
|
52
|
+
* last change was breaking _on a patch version_ because of peer dependencies
|
|
53
|
+
|
|
54
|
+
Summary:
|
|
55
|
+
Our current build process relies on peer dependencies being present, but
|
|
56
|
+
the peer dependency pipeline is causing far more issues than it's worth.
|
|
57
|
+
Why not just make them regular dependencies? This is what this PR does :)
|
|
58
|
+
|
|
59
|
+
## [4.1.3](https://github.com/AlaskaAirlines/auro-popover/compare/v4.1.2...v4.1.3) (2025-02-08)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Performance Improvements
|
|
63
|
+
|
|
64
|
+
* update dependencies ([d6f7bf1](https://github.com/AlaskaAirlines/auro-popover/commit/d6f7bf133c1f49901402c998e6c02a3be20a0832))
|
|
65
|
+
* update mixin per updated npm spec ([57cf09a](https://github.com/AlaskaAirlines/auro-popover/commit/57cf09a7fe5cbcc17d990720694ecb183593dafe))
|
|
66
|
+
|
|
67
|
+
## [4.1.2](https://github.com/AlaskaAirlines/auro-popover/compare/v4.1.1...v4.1.2) (2024-12-22)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Performance Improvements
|
|
71
|
+
|
|
72
|
+
* change master to main branch ([044c1b3](https://github.com/AlaskaAirlines/auro-popover/commit/044c1b3bb8434109eea5e0fe44448591f72cb3ff))
|
|
73
|
+
* update node to version 22 ([91365f1](https://github.com/AlaskaAirlines/auro-popover/commit/91365f1c8c8a0eb83c64bd95be03cfa6a8c17299))
|
|
74
|
+
|
|
75
|
+
## [4.1.1](https://github.com/AlaskaAirlines/auro-popover/compare/v4.1.0...v4.1.1) (2024-11-12)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Bug Fixes
|
|
79
|
+
|
|
80
|
+
* update markdown partial pathing to consume new auro lib [#84](https://github.com/AlaskaAirlines/auro-popover/issues/84) ([caf1c9c](https://github.com/AlaskaAirlines/auro-popover/commit/caf1c9c399c36c92fc07294bec7886558687fd99))
|
|
81
|
+
|
|
82
|
+
# [4.1.0](https://github.com/AlaskaAirlines/auro-popover/compare/v4.0.1...v4.1.0) (2024-10-23)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Features
|
|
86
|
+
|
|
87
|
+
* **api:** add register static method [#82](https://github.com/AlaskaAirlines/auro-popover/issues/82) ([2ac3681](https://github.com/AlaskaAirlines/auro-popover/commit/2ac36812dd149815740db6862829eea688f2ef37))
|
|
88
|
+
|
|
89
|
+
## [4.0.1](https://github.com/AlaskaAirlines/auro-popover/compare/v4.0.0...v4.0.1) (2024-10-04)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Bug Fixes
|
|
93
|
+
|
|
94
|
+
* resolve dependency issue ([9f98fcf](https://github.com/AlaskaAirlines/auro-popover/commit/9f98fcfd343a3b965abcf8036e50d154dd83d602))
|
|
95
|
+
|
|
96
|
+
# [4.0.0](https://github.com/AlaskaAirlines/auro-popover/compare/v3.2.3...v4.0.0) (2024-09-30)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
* **popover:** update styles to reconfigure trigger and box-shadow ([6228987](https://github.com/AlaskaAirlines/auro-popover/commit/6228987f20f68c0dfdfef5a007d1a7cc554f307a))
|
|
102
|
+
* resolve minor color theming issues ([f547a63](https://github.com/AlaskaAirlines/auro-popover/commit/f547a63130d2ebd932b6dbc84dd3304bfa49bca0))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Features
|
|
106
|
+
|
|
107
|
+
* refactor color token structure with tier 3 tokens [#63](https://github.com/AlaskaAirlines/auro-popover/issues/63) ([e9906cf](https://github.com/AlaskaAirlines/auro-popover/commit/e9906cf4fc5495f19534fc74930d08de2c4f613f))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Performance Improvements
|
|
111
|
+
|
|
112
|
+
* refactor custom component registration config ([083e22c](https://github.com/AlaskaAirlines/auro-popover/commit/083e22c8737c212ba7f19010fdd94b4883afb768))
|
|
113
|
+
* replace hardcoded size values with design tokens ([ae404c3](https://github.com/AlaskaAirlines/auro-popover/commit/ae404c350f5c85bec262f90e8c1676b8f4f3815f))
|
|
114
|
+
* update dependencies ([8c81954](https://github.com/AlaskaAirlines/auro-popover/commit/8c81954daa7e8ae55f7cee310e3d3edf8e27bc1e))
|
|
115
|
+
* update deps and add name as attribute when custom registered ([100e6cc](https://github.com/AlaskaAirlines/auro-popover/commit/100e6cc6c1ea84d71174fe54e63dab1138576d90))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### BREAKING CHANGES
|
|
119
|
+
|
|
120
|
+
* trigger major release for color theme support #63
|
|
121
|
+
|
|
122
|
+
## [3.2.3](https://github.com/AlaskaAirlines/auro-popover/compare/v3.2.2...v3.2.3) (2024-03-20)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Bug Fixes
|
|
126
|
+
|
|
127
|
+
* **dom:** move event and private attr to new lifecycle function [#69](https://github.com/AlaskaAirlines/auro-popover/issues/69) ([eb801a4](https://github.com/AlaskaAirlines/auro-popover/commit/eb801a44a3433865432dcc164b26b70857892f4b))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Performance Improvements
|
|
131
|
+
|
|
132
|
+
* **deps:** update dependencies ([de81bee](https://github.com/AlaskaAirlines/auro-popover/commit/de81beea66faca6b8d3610a193a9a85a2d4ff90c))
|
|
133
|
+
|
|
134
|
+
## [3.2.2](https://github.com/AlaskaAirlines/auro-popover/compare/v3.2.1...v3.2.2) (2024-03-18)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Performance Improvements
|
|
138
|
+
|
|
139
|
+
* update popper.js install method ([6f0ebc4](https://github.com/AlaskaAirlines/auro-popover/commit/6f0ebc480cf21e12e79aca1f25c0edb15b4347fe))
|
|
140
|
+
|
|
141
|
+
## [3.2.1](https://github.com/AlaskaAirlines/auro-popover/compare/v3.2.0...v3.2.1) (2024-03-08)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
### Performance Improvements
|
|
145
|
+
|
|
146
|
+
* **ignores:** update ignore files ([1fbac91](https://github.com/AlaskaAirlines/auro-popover/commit/1fbac91cc2c35d4b68f5d093a8d34092a7ac07cc))
|
|
147
|
+
|
|
148
|
+
# [3.2.0](https://github.com/AlaskaAirlines/auro-popover/compare/v3.1.5...v3.2.0) (2024-03-08)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Features
|
|
152
|
+
|
|
153
|
+
* **boundary:** add boundary property for overflow ([3c8d14a](https://github.com/AlaskaAirlines/auro-popover/commit/3c8d14aa8bee29ffaa15ff524deefe71d8a6962d))
|
|
154
|
+
* **examples:** implement example js system ([1839404](https://github.com/AlaskaAirlines/auro-popover/commit/183940462bd9d5dac0e67778f74ccbf91fe7378b))
|
|
155
|
+
* **mouseover:** improve handling of showing popover on mouseover ([3e80158](https://github.com/AlaskaAirlines/auro-popover/commit/3e801584b70796ab0749d4d2c9654dc586d948eb))
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Performance Improvements
|
|
159
|
+
|
|
160
|
+
* **surge:** add surge demo workflow ([bc340f2](https://github.com/AlaskaAirlines/auro-popover/commit/bc340f262fbfbbd9297d26043897e3ec586f48f5))
|
|
161
|
+
|
|
162
|
+
## [3.1.5](https://github.com/AlaskaAirlines/auro-popover/compare/v3.1.4...v3.1.5) (2024-02-13)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Performance Improvements
|
|
166
|
+
|
|
167
|
+
* update auro dependencies ([ae9b214](https://github.com/AlaskaAirlines/auro-popover/commit/ae9b21474831077573b920f807929cdf28fb2d64))
|
|
168
|
+
|
|
169
|
+
## [3.1.4](https://github.com/AlaskaAirlines/auro-popover/compare/v3.1.3...v3.1.4) (2024-02-01)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Bug Fixes
|
|
173
|
+
|
|
174
|
+
* address accessibility linting error ([dbe69c5](https://github.com/AlaskaAirlines/auro-popover/commit/dbe69c59915ac2083264e862f288478b63e920ae))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Performance Improvements
|
|
178
|
+
|
|
179
|
+
* alaskaairux ref updates ([1a0ad1c](https://github.com/AlaskaAirlines/auro-popover/commit/1a0ad1cdc02d3b648d4058aa9fb62fe12bfae244))
|
|
180
|
+
|
|
181
|
+
## [3.1.3](https://github.com/AlaskaAirlines/auro-popover/compare/v3.1.2...v3.1.3) (2024-01-27)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Performance Improvements
|
|
185
|
+
|
|
186
|
+
* update index per SSR support ([82f73a5](https://github.com/AlaskaAirlines/auro-popover/commit/82f73a5c5a28271a4d4310cefd544c5d4a2aa1c9))
|
|
187
|
+
|
|
188
|
+
## [3.1.2](https://github.com/AlaskaAirlines/auro-popover/compare/v3.1.1...v3.1.2) (2024-01-23)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### Performance Improvements
|
|
192
|
+
|
|
193
|
+
* update core dependency reference ([61d0f85](https://github.com/AlaskaAirlines/auro-popover/commit/61d0f85c28cf47dd731f247bf71b58e8dd162485))
|
|
194
|
+
|
|
195
|
+
## [3.1.1](https://github.com/AlaskaAirlines/auro-popover/compare/v3.1.0...v3.1.1) (2024-01-23)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### Performance Improvements
|
|
199
|
+
|
|
200
|
+
* update package dependencies and npm config ([ab922d3](https://github.com/AlaskaAirlines/auro-popover/commit/ab922d377cffa095ad5b1ff5455be35067fd1407))
|
|
201
|
+
|
|
202
|
+
# [3.1.0](https://github.com/AlaskaAirlines/auro-popover/compare/v3.0.0...v3.1.0) (2024-01-19)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Bug Fixes
|
|
206
|
+
|
|
207
|
+
* remove unnecessary dependency ([c269949](https://github.com/AlaskaAirlines/auro-popover/commit/c269949cc37b092aca8c46fe0b8709867f6728f8))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Features
|
|
211
|
+
|
|
212
|
+
* update SSR support capability ([42ba36b](https://github.com/AlaskaAirlines/auro-popover/commit/42ba36b9e9bd236c582a5739d4d53c5f94ec7b11))
|
|
213
|
+
|
|
214
|
+
# [3.0.0](https://github.com/AlaskaAirlines/auro-popover/compare/v2.3.0...v3.0.0) (2024-01-18)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Bug Fixes
|
|
218
|
+
|
|
219
|
+
* **branch:** update branch reference [#57](https://github.com/AlaskaAirlines/auro-popover/issues/57) ([8e24246](https://github.com/AlaskaAirlines/auro-popover/commit/8e242465ebb79b73e3fe593403911553751dc825))
|
|
220
|
+
* **docs:** update use case markdown punctuation ([015cfd0](https://github.com/AlaskaAirlines/auro-popover/commit/015cfd027884ca7e58d86ced4dbbb6519d209921))
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Performance Improvements
|
|
224
|
+
|
|
225
|
+
* **dep:** remove focus-visible support ([f474fb9](https://github.com/AlaskaAirlines/auro-popover/commit/f474fb9307eaf63bb9d8c2e11f969ae7c19385e6))
|
|
226
|
+
* **modernize:** modernize repo and dependencies [#55](https://github.com/AlaskaAirlines/auro-popover/issues/55) ([45837d8](https://github.com/AlaskaAirlines/auro-popover/commit/45837d84d08ee627901bb385ed5b40a49b029f81))
|
|
227
|
+
* **ssr:** update to support ssr [#54](https://github.com/AlaskaAirlines/auro-popover/issues/54) ([761af89](https://github.com/AlaskaAirlines/auro-popover/commit/761af89a40bb750b328f180e9a6e6729d9a347d8))
|
|
228
|
+
* **tokens:** update to use new design tokens [#50](https://github.com/AlaskaAirlines/auro-popover/issues/50) ([f49c0cb](https://github.com/AlaskaAirlines/auro-popover/commit/f49c0cbfa17bae592845b1a6696a66cda7bf1390))
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### BREAKING CHANGES
|
|
232
|
+
|
|
233
|
+
* **modernize:** update namespace to @aurodesignsystem
|
|
234
|
+
|
|
235
|
+
# [2.3.0](https://github.com/AlaskaAirlines/auro-popover/compare/v2.2.1...v2.3.0) (2023-12-05)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Features
|
|
239
|
+
|
|
240
|
+
* **disabled:** add disabled attribute [#52](https://github.com/AlaskaAirlines/auro-popover/issues/52) ([46bc919](https://github.com/AlaskaAirlines/auro-popover/commit/46bc9196cd23350ab37a10b0318b42c5dd374149))
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
### Performance Improvements
|
|
244
|
+
|
|
245
|
+
* **csspart:** add csspart to popover ([a6e49d2](https://github.com/AlaskaAirlines/auro-popover/commit/a6e49d2bd8e502b7abdc88914d178a9134c63bf1))
|
|
246
|
+
|
|
247
|
+
## [2.2.1](https://github.com/AlaskaAirlines/auro-popover/compare/v2.2.0...v2.2.1) (2023-06-01)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
### Bug Fixes
|
|
251
|
+
|
|
252
|
+
* **popper:** update namespace to avoid collision [#195](https://github.com/AlaskaAirlines/auro-popover/issues/195) ([06722e4](https://github.com/AlaskaAirlines/auro-popover/commit/06722e489d7183ae6d2f746ae6a23731813eaadb))
|
|
253
|
+
|
|
254
|
+
# [2.2.0](https://github.com/AlaskaAirlines/auro-popover/compare/v2.1.2...v2.2.0) (2021-08-30)
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Features
|
|
258
|
+
|
|
259
|
+
* fallback to slotted trigger when query fails [#28](https://github.com/AlaskaAirlines/auro-popover/issues/28) ([cd106c2](https://github.com/AlaskaAirlines/auro-popover/commit/cd106c283e461998e06ceb5aa31b624556240910))
|
|
260
|
+
|
|
261
|
+
## [2.1.2](https://github.com/AlaskaAirlines/auro-popover/compare/v2.1.1...v2.1.2) (2021-07-12)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Bug Fixes
|
|
265
|
+
|
|
266
|
+
* **styles:** prevent content inheritance ([55c5771](https://github.com/AlaskaAirlines/auro-popover/commit/55c57714356ffc875e182de9d302f0b35c2b2445))
|
|
267
|
+
|
|
268
|
+
## [2.1.1](https://github.com/AlaskaAirlines/auro-popover/compare/v2.1.0...v2.1.1) (2021-07-08)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### Bug Fixes
|
|
272
|
+
|
|
273
|
+
* find trigger in another shadow root ([dfeb35d](https://github.com/AlaskaAirlines/auro-popover/commit/dfeb35d02e41db2c7151b3de4fe679be450d97aa))
|
|
274
|
+
|
|
275
|
+
# [2.1.0](https://github.com/AlaskaAirlines/auro-popover/compare/v2.0.0...v2.1.0) (2021-05-03)
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### Features
|
|
279
|
+
|
|
280
|
+
* [#26](https://github.com/AlaskaAirlines/auro-popover/issues/26) and [#24](https://github.com/AlaskaAirlines/auro-popover/issues/24) add new 'removeSpace' UI attribute ([78f8a50](https://github.com/AlaskaAirlines/auro-popover/commit/78f8a507d2668cfbff119508ac45841aebcad1b4))
|
|
281
|
+
|
|
282
|
+
# [2.0.0](https://github.com/AlaskaAirlines/auro-popover/compare/v1.6.0...v2.0.0) (2021-04-16)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### chore
|
|
286
|
+
|
|
287
|
+
* update packages ([3080e7f](https://github.com/AlaskaAirlines/auro-popover/commit/3080e7f2fd48827933ac45dccb2de9e3e01ab04e))
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
### BREAKING CHANGES
|
|
291
|
+
|
|
292
|
+
* This update is designating a breaking change
|
|
293
|
+
as the previous commit removed the STICKY feature, but was
|
|
294
|
+
not tagged correctly for the major change in API support
|
|
295
|
+
|
|
296
|
+
# [1.6.0](https://github.com/AlaskaAirlines/auro-popover/compare/v1.5.0...v1.6.0) (2021-04-16)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### Features
|
|
300
|
+
|
|
301
|
+
* remove sticky and change hidden SCSS ([15ed409](https://github.com/AlaskaAirlines/auro-popover/commit/15ed409a67d826f04c74fa444cd083f204637698))
|
|
302
|
+
|
|
303
|
+
# [1.5.0](https://github.com/AlaskaAirlines/auro-popover/compare/v1.4.2...v1.5.0) (2021-03-26)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### Features
|
|
307
|
+
|
|
308
|
+
* persist popover content on content hover ([e51d8f0](https://github.com/AlaskaAirlines/auro-popover/commit/e51d8f0609056015a612dc4178ede194f28ecf8f))
|
|
309
|
+
|
|
310
|
+
## [1.4.2](https://github.com/AlaskaAirlines/auro-popover/compare/v1.4.1...v1.4.2) (2021-02-22)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
### Bug Fixes
|
|
314
|
+
|
|
315
|
+
* improve placement experience between devices ([81d095f](https://github.com/AlaskaAirlines/auro-popover/commit/81d095fa78197815b8b3d89855ba0c23c8ecb968))
|
|
316
|
+
|
|
317
|
+
## [1.4.1](https://github.com/AlaskaAirlines/auro-popover/compare/v1.4.0...v1.4.1) (2021-02-21)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
### Bug Fixes
|
|
321
|
+
|
|
322
|
+
* set max-width for popover ([24c410b](https://github.com/AlaskaAirlines/auro-popover/commit/24c410bf970989566aec90415fba76b63eee140a))
|
|
323
|
+
|
|
324
|
+
# [1.4.0](https://github.com/AlaskaAirlines/auro-popover/compare/v1.3.1...v1.4.0) (2021-02-21)
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
### Features
|
|
328
|
+
|
|
329
|
+
* apply sticky feature by default on mobile devices ([8ea278c](https://github.com/AlaskaAirlines/auro-popover/commit/8ea278c1d87cf27606ab1ba270251ca74a066ac4))
|
|
330
|
+
|
|
331
|
+
## [1.3.1](https://github.com/AlaskaAirlines/auro-popover/compare/v1.3.0...v1.3.1) (2021-02-12)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
### Bug Fixes
|
|
335
|
+
|
|
336
|
+
* clean up document event listener ([de234a0](https://github.com/AlaskaAirlines/auro-popover/commit/de234a06b90a1a1c62eb00e28fa8be9c888d5148))
|
|
337
|
+
|
|
338
|
+
# [1.3.0](https://github.com/AlaskaAirlines/auro-popover/compare/v1.2.0...v1.3.0) (2021-02-11)
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
### Bug Fixes
|
|
342
|
+
|
|
343
|
+
* renamed a variable, updated its description ([756dbb4](https://github.com/AlaskaAirlines/auro-popover/commit/756dbb44caf9e10daae7e39a45a6a16d8e01f641))
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
### Features
|
|
347
|
+
|
|
348
|
+
* added sticky functionality to auro-popover ([85a2758](https://github.com/AlaskaAirlines/auro-popover/commit/85a2758ccba4efd5482c2fe11c7f0e6f2fecab70))
|
|
349
|
+
* implemented Dale's PR changes ([ad51f2d](https://github.com/AlaskaAirlines/auro-popover/commit/ad51f2d3dca49447e3bb2434333864ea7a825e34))
|
|
350
|
+
* in demo.me, auro-popover with a sticky attribute moved into its own block ([fcabbad](https://github.com/AlaskaAirlines/auro-popover/commit/fcabbad99fceec9520f406a073b10441b911220d))
|
|
351
|
+
* modified behavior of interaction events of auro-popover ([9a1164d](https://github.com/AlaskaAirlines/auro-popover/commit/9a1164dcc1b16618f5f583e6cbfa5b15a247786a))
|
|
352
|
+
* updated the Develpment section, copied some of wc-generator readme ([4b7662a](https://github.com/AlaskaAirlines/auro-popover/commit/4b7662af8ab479850a8edf11e5c7bfa38e60c99d))
|
|
353
|
+
|
|
354
|
+
# [1.2.0](https://github.com/AlaskaAirlines/auro-popover/compare/v1.1.2...v1.2.0) (2021-01-21)
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
### Features
|
|
358
|
+
|
|
359
|
+
* update bundeled build ([8f3ddf4](https://github.com/AlaskaAirlines/auro-popover/commit/8f3ddf43a5ea4d92e31fdc3323837181372bac17))
|
|
360
|
+
|
|
361
|
+
## [1.1.2](https://github.com/AlaskaAirlines/auro-popover/compare/v1.1.1...v1.1.2) (2020-08-21)
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
### Bug Fixes
|
|
365
|
+
|
|
366
|
+
* adds support for shadowRoot target elements ([0650c46](https://github.com/AlaskaAirlines/auro-popover/commit/0650c46711714be96fe5a0fc2e0de8ec9b771b63))
|
|
367
|
+
* target button ([066d457](https://github.com/AlaskaAirlines/auro-popover/commit/066d457e0d1cb6f5700e2675551ed60241a91a42))
|
|
368
|
+
|
|
369
|
+
## [1.1.1](https://github.com/AlaskaAirlines/auro-popover/compare/v1.1.0...v1.1.1) (2020-08-20)
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### Bug Fixes
|
|
373
|
+
|
|
374
|
+
* removing escape function to address runtime error ([4040ba3](https://github.com/AlaskaAirlines/auro-popover/commit/4040ba3f825c930feeb15b25157e770cd3cd66b4))
|
|
375
|
+
|
|
376
|
+
# [1.1.0](https://github.com/AlaskaAirlines/auro-popover/compare/v1.0.2...v1.1.0) (2020-08-19)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Features
|
|
380
|
+
|
|
381
|
+
* update a11y model ([7a6ad46](https://github.com/AlaskaAirlines/auro-popover/commit/7a6ad461031c4f58d0b7557d01dc1e80eb121824))
|
|
382
|
+
|
|
383
|
+
## [1.0.2](https://github.com/AlaskaAirlines/auro-popover/compare/v1.0.1...v1.0.2) (2020-08-18)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### Bug Fixes
|
|
387
|
+
|
|
388
|
+
* patch numeric IDs ([490a7d6](https://github.com/AlaskaAirlines/auro-popover/commit/490a7d6b005e14b94fb389a049e7dcdaf6005e89))
|
|
389
|
+
|
|
390
|
+
## [1.0.1](https://github.com/AlaskaAirlines/auro-popover/compare/v1.0.0...v1.0.1) (2020-08-18)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
### Bug Fixes
|
|
394
|
+
|
|
395
|
+
* update display style for popover ([1f1a5e8](https://github.com/AlaskaAirlines/auro-popover/commit/1f1a5e8fd1d96a8a2193a31c544c6e71798247be))
|
|
396
|
+
|
|
397
|
+
# 1.0.0 (2020-08-18)
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
### Bug Fixes
|
|
401
|
+
|
|
402
|
+
* achieve eslint happiness ([d60001b](https://github.com/AlaskaAirlines/auro-popover/commit/d60001b23e403b8f21a936549367c533f3572098))
|
|
403
|
+
* add placement test ([d8a6699](https://github.com/AlaskaAirlines/auro-popover/commit/d8a66999fa45eada4278cfc2fab5340647d2e94f))
|
|
404
|
+
* buildless environments ([c0ba257](https://github.com/AlaskaAirlines/auro-popover/commit/c0ba257248684e029819ce6e3c5f135bb35ea9e3))
|
|
405
|
+
* cleanup popper constructor ([bbb9e0c](https://github.com/AlaskaAirlines/auro-popover/commit/bbb9e0c58102f5ba982f4d49c2d4eb86eec8fb10))
|
|
406
|
+
* eslint rules ([6156749](https://github.com/AlaskaAirlines/auro-popover/commit/61567498536a1e25355cdeda5554f32a7c353868))
|
|
407
|
+
* modify test events to fire correctly ([06b0b78](https://github.com/AlaskaAirlines/auro-popover/commit/06b0b78beeec74276578d1229d69d4c5fed361f6))
|
|
408
|
+
* popover sticky open ([e512343](https://github.com/AlaskaAirlines/auro-popover/commit/e5123431270a9e6258f78ff696cec197c088d699))
|
|
409
|
+
* remove process fro mtests ([fee8e7b](https://github.com/AlaskaAirlines/auro-popover/commit/fee8e7bac9b340bf04ca57afa80587c55520ec8e))
|
|
410
|
+
* remove unused var ([3981693](https://github.com/AlaskaAirlines/auro-popover/commit/3981693076bdc1979af85759b8f829db2a5de146))
|
|
411
|
+
* removes default generator features ([2ac1581](https://github.com/AlaskaAirlines/auro-popover/commit/2ac1581546d4845220c62e4cac06f49803e36d11))
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
### Features
|
|
415
|
+
|
|
416
|
+
* add auro-hyperlink demo ([1366989](https://github.com/AlaskaAirlines/auro-popover/commit/13669895a81f53293603076df086653b8d88aaa7))
|
|
417
|
+
* change role to alert ([48d87c1](https://github.com/AlaskaAirlines/auro-popover/commit/48d87c12d573b0fa3b0c9d0dc76355d2a897ffa3))
|
|
418
|
+
* most work for auro-popover initial commit ([dd2f3e5](https://github.com/AlaskaAirlines/auro-popover/commit/dd2f3e51e479753931b3aee3552c8e3f6c921518))
|
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ The README.md file is a compiled document. No edits should be made directly to t
|
|
|
4
4
|
README.md is created by running `npm run build:docs`.
|
|
5
5
|
|
|
6
6
|
This file is generated based on a template fetched from
|
|
7
|
-
`https://raw.githubusercontent.com/AlaskaAirlines/
|
|
8
|
-
and copied to `./componentDocs/README.md` each time the
|
|
7
|
+
`https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/README.md`
|
|
8
|
+
and copied to `./componentDocs/README.md` each time the docs are compiled.
|
|
9
9
|
|
|
10
10
|
The following sections are editable by making changes to the following files:
|
|
11
11
|
|
|
@@ -32,14 +32,14 @@ See for more information as how to install and full API for the `<auro-popover>`
|
|
|
32
32
|
|
|
33
33
|
## UI development browser support
|
|
34
34
|
|
|
35
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/browserSupport.md) -->
|
|
36
36
|
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
37
37
|
|
|
38
38
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
39
39
|
|
|
40
40
|
## Install
|
|
41
41
|
|
|
42
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
42
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentInstall.md) -->
|
|
43
43
|
[](https://github.com/AlaskaAirlines/auro-popover/actions/workflows/testPublish.yml)
|
|
44
44
|
[](https://www.npmjs.com/package/@aurodesignsystem/auro-popover)
|
|
45
45
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -49,24 +49,22 @@ For the most up to date information on [UI development browser support](https://
|
|
|
49
49
|
$ npm i @aurodesignsystem/auro-popover
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Installing as a direct, dev or peer dependency is up to the user installing the package. If you are unsure as to what type of dependency you should use, consider reading this [stack overflow](https://stackoverflow.com/questions/18875674/whats-the-difference-between-dependencies-devdependencies-and-peerdependencies) answer.
|
|
53
|
-
|
|
54
52
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
55
53
|
|
|
56
54
|
### Design Token CSS Custom Property dependency
|
|
57
55
|
|
|
58
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
56
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/designTokens.md) -->
|
|
59
57
|
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
60
58
|
|
|
61
59
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
62
60
|
|
|
63
61
|
### Define dependency in project component
|
|
64
62
|
|
|
65
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
63
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImportDescription.md) -->
|
|
66
64
|
Defining the component dependency within each component that is using the `<auro-popover>` component.
|
|
67
65
|
|
|
68
66
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
69
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
67
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/componentImport.md) -->
|
|
70
68
|
|
|
71
69
|
```js
|
|
72
70
|
import "@aurodesignsystem/auro-popover";
|
|
@@ -91,23 +89,13 @@ import "@aurodesignsystem/auro-popover";
|
|
|
91
89
|
```
|
|
92
90
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
93
91
|
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleInstallDescription.md) -->
|
|
97
|
-
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. See -- `auro-popover__bundled.js` for modern browsers. Legacy browsers such as IE11 are no longer supported.
|
|
98
|
-
|
|
99
|
-
**WARNING!** When installing into your application environment, DO NOT use `@latest` for the requested version. Risks include unknown MAJOR version releases and instant adoption of any new features and possible bugs without developer knowledge. The `@latest` wildcard should NEVER be used for production customer-facing applications. You have been warned.
|
|
92
|
+
## Use CDN
|
|
100
93
|
|
|
101
|
-
<!-- AURO-GENERATED-CONTENT:
|
|
102
|
-
|
|
103
|
-
### Bundle example code
|
|
94
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/usage/bundleInstallDescription.md) -->
|
|
95
|
+
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
104
96
|
|
|
105
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) -->
|
|
106
|
-
|
|
107
97
|
```html
|
|
108
|
-
<
|
|
109
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@/dist/bundled/essentials.css" />
|
|
110
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-popover@5.1.0/dist/auro-popover__bundled.js" type="module"></script>
|
|
98
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-popover@latest/+esm"></script>
|
|
111
99
|
```
|
|
112
100
|
|
|
113
101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -146,7 +134,7 @@ The `auro-popover` element should be used in situations where users may:
|
|
|
146
134
|
|
|
147
135
|
## Development
|
|
148
136
|
|
|
149
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
137
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/developmentDescription.md) -->
|
|
150
138
|
In order to develop against this project, if you are not part of the core team, you will be required to fork the project prior to submitting a pull request.
|
|
151
139
|
|
|
152
140
|
Please be sure to review the [contribution guidelines](https://auro.alaskaair.com/contributing) for this project. Please make sure to **pay special attention** to the **conventional commits** section of the document.
|
|
@@ -155,42 +143,20 @@ Please be sure to review the [contribution guidelines](https://auro.alaskaair.co
|
|
|
155
143
|
|
|
156
144
|
### Start development environment
|
|
157
145
|
|
|
158
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
146
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/localhost.md) -->
|
|
159
147
|
Once the project has been cloned to your local resource and you have installed all the dependencies you will need to open a shell session to run the **dev server**.
|
|
160
148
|
|
|
161
149
|
```shell
|
|
162
150
|
$ npm run dev
|
|
163
151
|
```
|
|
164
152
|
|
|
165
|
-
Open [localhost:8000](http://localhost:8000/)
|
|
166
|
-
|
|
167
|
-
If running separate sessions is preferred, please run the following commands in individual terminal shells.
|
|
168
|
-
|
|
169
|
-
```shell
|
|
170
|
-
$ npm run build:watch
|
|
171
|
-
|
|
172
|
-
$ npm run serve
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
153
|
+
Open [localhost:8000](http://localhost:8000/)
|
|
176
154
|
|
|
177
|
-
### API generation
|
|
178
|
-
|
|
179
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/api.md) -->
|
|
180
|
-
The custom element API file is generated in the build and committed back to the repo with a version change. If the API doc has changed without a version change, author's are to run `npm run build:api` to generate the doc and commit to version control.
|
|
181
|
-
|
|
182
155
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
183
156
|
|
|
184
157
|
### Testing
|
|
185
158
|
|
|
186
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/
|
|
187
|
-
Automated tests are required for every Auro component. See `.\test\auro-popover.test.js` for the tests for this component. Run `npm test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
188
|
-
|
|
189
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
190
|
-
|
|
191
|
-
### Bundled assets
|
|
192
|
-
|
|
193
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/bundles.md) -->
|
|
194
|
-
Bundled assets are only generated in the remote and not merged back to this repo. To review and/or test a bundled asset locally, run `$ npm run bundler` to generate assets.
|
|
159
|
+
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/auro-templates/main/templates/default/partials/development/testing.md) -->
|
|
160
|
+
Automated tests are required for every Auro component. See `.\test\auro-popover.test.js` for the tests for this component. Run `npm run test` to run the tests and check code coverage. Tests must pass and meet a certain coverage threshold to commit. See [the testing documentation](https://auro.alaskaair.com/support/tests) for more details.
|
|
195
161
|
|
|
196
162
|
<!-- AURO-GENERATED-CONTENT:END -->
|
package/demo/api.html
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3
|
+
See LICENSE in the project root for license information.
|
|
4
|
+
|
|
5
|
+
HTML in this document is standardized and NOT to be edited.
|
|
6
|
+
All demo code should be added/edited in ./demo/api.md
|
|
7
|
+
|
|
8
|
+
With the exception of adding custom elements if needed for the demo.
|
|
9
|
+
|
|
10
|
+
----------------------- DO NOT EDIT -----------------------------
|
|
11
|
+
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
<!DOCTYPE html>
|
|
15
|
+
<html lang="en">
|
|
16
|
+
<head>
|
|
17
|
+
<meta charset="UTF-8" />
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
+
<title>Auro Web Component Demo | auro-popover</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-popover's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
35
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
36
|
+
</head>
|
|
37
|
+
<body class="auro-markdown">
|
|
38
|
+
<main></main>
|
|
39
|
+
|
|
40
|
+
<script type="module">
|
|
41
|
+
import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
|
|
42
|
+
import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
|
|
43
|
+
fetch('./api.md')
|
|
44
|
+
.then((response) => response.text())
|
|
45
|
+
.then((text) => {
|
|
46
|
+
const rawHtml = marked.parse(text);
|
|
47
|
+
document.querySelector('main').innerHTML = rawHtml;
|
|
48
|
+
Prism.highlightAll();
|
|
49
|
+
});
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
53
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
|
|
54
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-alert@latest/dist/auro-alert__bundled.js" type="module"></script>
|
|
55
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
|
|
56
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/dist/auro-hyperlink__bundled.js" type="module"></script>
|
|
57
|
+
|
|
58
|
+
<script type="module" data-demo-script="true">
|
|
59
|
+
import { initExamples } from "./api.min.js"
|
|
60
|
+
initExamples();
|
|
61
|
+
</script>
|
|
62
|
+
</body>
|
|
63
|
+
</html>
|
package/demo/api.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { boundaryExample } from "../apiExamples/boundary";
|
|
2
|
+
import "../src/registered";
|
|
3
|
+
|
|
4
|
+
export function initExamples(initCount) {
|
|
5
|
+
// biome-ignore lint: no-unused-vars
|
|
6
|
+
initCount = initCount || 0;
|
|
7
|
+
|
|
8
|
+
try {
|
|
9
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
10
|
+
boundaryExample();
|
|
11
|
+
} catch (_err) {
|
|
12
|
+
if (initCount <= 20) {
|
|
13
|
+
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
14
|
+
setTimeout(() => {
|
|
15
|
+
initExamples(initCount + 1);
|
|
16
|
+
}, 100);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|