@timmo001/groundwork-ui 0.9.0 → 0.9.1
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/custom-elements.json +6 -0
- package/package.json +1 -1
- package/src/gw-button.ts +4 -2
package/custom-elements.json
CHANGED
|
@@ -3250,12 +3250,18 @@
|
|
|
3250
3250
|
"kind": "field",
|
|
3251
3251
|
"name": "#lead",
|
|
3252
3252
|
"privacy": "private",
|
|
3253
|
+
"type": {
|
|
3254
|
+
"text": "HTMLSpanElement"
|
|
3255
|
+
},
|
|
3253
3256
|
"readonly": true
|
|
3254
3257
|
},
|
|
3255
3258
|
{
|
|
3256
3259
|
"kind": "field",
|
|
3257
3260
|
"name": "#text",
|
|
3258
3261
|
"privacy": "private",
|
|
3262
|
+
"type": {
|
|
3263
|
+
"text": "HTMLSpanElement"
|
|
3264
|
+
},
|
|
3259
3265
|
"readonly": true
|
|
3260
3266
|
},
|
|
3261
3267
|
{
|
package/package.json
CHANGED
package/src/gw-button.ts
CHANGED
|
@@ -366,7 +366,9 @@ export class GwButton extends GwElement {
|
|
|
366
366
|
|
|
367
367
|
readonly #swatch = h("span", { class: "swatch", "aria-hidden": "true" });
|
|
368
368
|
|
|
369
|
-
|
|
369
|
+
// Typed, since inferring through h() and the tag map that holds this
|
|
370
|
+
// element is circular for consumers that type-check the source
|
|
371
|
+
readonly #lead: HTMLSpanElement = h(
|
|
370
372
|
"span",
|
|
371
373
|
{ class: "lead" },
|
|
372
374
|
this.#icon,
|
|
@@ -375,7 +377,7 @@ export class GwButton extends GwElement {
|
|
|
375
377
|
h("span", { class: "ring" }),
|
|
376
378
|
);
|
|
377
379
|
|
|
378
|
-
readonly #text = h("span", { class: "text" }, h("slot"));
|
|
380
|
+
readonly #text: HTMLSpanElement = h("span", { class: "text" }, h("slot"));
|
|
379
381
|
|
|
380
382
|
readonly #over = h("span", { class: "ring over" });
|
|
381
383
|
|