@oslokommune/punkt-elements 12.31.2 → 12.32.7

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.
Files changed (181) hide show
  1. package/dist/alert-C2WKLFow.cjs +27 -0
  2. package/dist/alert-XGjypFHe.js +115 -0
  3. package/dist/alert.d.ts +32 -0
  4. package/dist/{backlink-CzpB-ih9.js → backlink-BX8HBhw5.js} +2 -2
  5. package/dist/{backlink-Dn4DfWVR.cjs → backlink-NJdC0FAO.cjs} +1 -1
  6. package/dist/backlink.d.ts +32 -0
  7. package/dist/{button-9NwGr-OS.js → button-Bn8jVB0f.js} +33 -33
  8. package/dist/{button-Beo3c7cx.cjs → button-Bpbh8A_a.cjs} +2 -2
  9. package/dist/button.d.ts +32 -0
  10. package/dist/{calendar-BbZNxsKY.js → calendar-BNHDEEwT.js} +20 -84
  11. package/dist/{calendar-CxBo98iI.cjs → calendar-Ds13AKr5.cjs} +4 -4
  12. package/dist/calendar.d.ts +32 -0
  13. package/dist/card-CEv3DL-o.js +94 -0
  14. package/dist/card-c5EEPaNh.cjs +28 -0
  15. package/dist/card.d.ts +32 -0
  16. package/dist/{checkbox-9Zjy_NU7.cjs → checkbox-DDBBDM85.cjs} +1 -1
  17. package/dist/{checkbox-CzDpR6_8.js → checkbox-DoMYxp83.js} +9 -9
  18. package/dist/checkbox.d.ts +32 -0
  19. package/dist/{class-map-DWtqmIRS.js → class-map-D4tSZX70.js} +2 -2
  20. package/dist/{class-map-Dj5mbCUg.cjs → class-map-DvBKxTiW.cjs} +1 -1
  21. package/dist/combobox-BflWORVa.cjs +115 -0
  22. package/dist/combobox-l7LmWQYu.js +491 -0
  23. package/dist/combobox.d.ts +47 -0
  24. package/dist/datepicker-Bkiyh5P5.cjs +153 -0
  25. package/dist/datepicker-nWd89NwP.js +449 -0
  26. package/dist/datepicker.d.ts +32 -0
  27. package/dist/directive-C7oCP5Bh.cjs +5 -0
  28. package/dist/directive-helpers-BmXIK-1b.js +45 -0
  29. package/dist/directive-helpers-donnvcEO.cjs +5 -0
  30. package/dist/{directive-B76A7YXI.js → directive-oAbCiebi.js} +4 -4
  31. package/dist/element-DJpGVXjq.cjs +238 -0
  32. package/dist/{element-C7XjZtLU.js → element-DiqKrDty.js} +8851 -8847
  33. package/dist/{helptext-CqnoPodd.js → helptext-DfRusn5R.js} +13 -13
  34. package/dist/{helptext-B9kxDc2b.cjs → helptext-aHD9icur.cjs} +2 -2
  35. package/dist/helptext.d.ts +32 -0
  36. package/dist/{icon-BEUgV9Wo.js → icon-BdY52BIt.js} +2 -2
  37. package/dist/{icon-BOKusjAA.cjs → icon-UtDKPH3R.cjs} +1 -1
  38. package/dist/icon.d.ts +32 -0
  39. package/dist/{if-defined-CpIkv1A4.cjs → if-defined-CoBDkDGb.cjs} +1 -1
  40. package/dist/{if-defined-eRX4e5zO.js → if-defined-DeANa4n5.js} +1 -1
  41. package/dist/index.d.ts +210 -15
  42. package/dist/{input-element-BK8UkQli.js → input-element-C4mmTk6h.js} +23 -20
  43. package/dist/input-element-VNai8bsq.cjs +1 -0
  44. package/dist/input-wrapper-8iKEzDRZ.js +40 -0
  45. package/dist/input-wrapper-DWOw7Yn-.cjs +52 -0
  46. package/dist/input-wrapper-EoSAbU-U.cjs +1 -0
  47. package/dist/input-wrapper-P_oEi6dk.js +185 -0
  48. package/dist/input-wrapper.d.ts +32 -0
  49. package/dist/link-D9dJ6F-R.js +73 -0
  50. package/dist/link-DBxXqsnP.cjs +8 -0
  51. package/dist/link.d.ts +32 -0
  52. package/dist/{linkcard-2WzDJPZz.cjs → linkcard-D5O1hR7N.cjs} +1 -1
  53. package/dist/{linkcard-CRpo3tiw.js → linkcard-DcEE9IVw.js} +4 -4
  54. package/dist/linkcard.d.ts +32 -0
  55. package/dist/listbox-CK1GmwCE.cjs +95 -0
  56. package/dist/listbox-CfJWJDrc.js +360 -0
  57. package/dist/listbox.d.ts +47 -0
  58. package/dist/{loader-B1edLWTg.js → loader-DZvOlXzI.js} +6 -6
  59. package/dist/{loader-DI74pe25.cjs → loader-SDXJp58K.cjs} +1 -1
  60. package/dist/loader.d.ts +32 -0
  61. package/dist/messagebox-Ce5e1gga.js +79 -0
  62. package/dist/messagebox-D2_-WZQG.cjs +12 -0
  63. package/dist/messagebox.d.ts +32 -0
  64. package/dist/modal-CCtUsYKk.cjs +33 -0
  65. package/dist/{modal-kPX8nO_L.js → modal-CdgIOp8Q.js} +51 -94
  66. package/dist/modal.d.ts +32 -0
  67. package/dist/pkt-alert.cjs +1 -1
  68. package/dist/pkt-alert.js +1 -1
  69. package/dist/pkt-backlink.cjs +1 -1
  70. package/dist/pkt-backlink.js +1 -1
  71. package/dist/pkt-button.cjs +1 -1
  72. package/dist/pkt-button.js +1 -1
  73. package/dist/pkt-calendar.cjs +1 -1
  74. package/dist/pkt-calendar.js +1 -1
  75. package/dist/pkt-card.cjs +1 -1
  76. package/dist/pkt-card.js +1 -1
  77. package/dist/pkt-checkbox.cjs +1 -1
  78. package/dist/pkt-checkbox.js +1 -1
  79. package/dist/pkt-combobox.cjs +1 -0
  80. package/dist/pkt-combobox.js +6 -0
  81. package/dist/pkt-datepicker.cjs +1 -1
  82. package/dist/pkt-datepicker.js +1 -1
  83. package/dist/pkt-helptext.cjs +1 -1
  84. package/dist/pkt-helptext.js +1 -1
  85. package/dist/pkt-icon.cjs +1 -1
  86. package/dist/pkt-icon.js +1 -1
  87. package/dist/pkt-index.cjs +3 -3
  88. package/dist/pkt-index.js +45 -43
  89. package/dist/pkt-input-wrapper.cjs +1 -1
  90. package/dist/pkt-input-wrapper.js +1 -1
  91. package/dist/pkt-link.cjs +1 -1
  92. package/dist/pkt-link.js +1 -1
  93. package/dist/pkt-linkcard.cjs +1 -1
  94. package/dist/pkt-linkcard.js +1 -1
  95. package/dist/pkt-listbox.cjs +1 -0
  96. package/dist/pkt-listbox.js +6 -0
  97. package/dist/pkt-loader.cjs +1 -1
  98. package/dist/pkt-loader.js +1 -1
  99. package/dist/pkt-messagebox.cjs +1 -1
  100. package/dist/pkt-messagebox.js +1 -1
  101. package/dist/pkt-modal.cjs +1 -1
  102. package/dist/pkt-modal.js +1 -1
  103. package/dist/pkt-options-controller-BkWE4pZe.js +38 -0
  104. package/dist/pkt-options-controller-TJ1apYGF.cjs +1 -0
  105. package/dist/pkt-progressbar.cjs +1 -1
  106. package/dist/pkt-progressbar.js +2 -2
  107. package/dist/pkt-radiobutton.cjs +1 -1
  108. package/dist/pkt-radiobutton.js +1 -1
  109. package/dist/pkt-select.cjs +1 -1
  110. package/dist/pkt-select.js +1 -1
  111. package/dist/pkt-slot-controller-BtVLTZb7.js +79 -0
  112. package/dist/pkt-slot-controller-plQxXRvV.cjs +1 -0
  113. package/dist/pkt-tag.cjs +1 -1
  114. package/dist/pkt-tag.js +1 -1
  115. package/dist/pkt-textarea.cjs +1 -1
  116. package/dist/pkt-textarea.js +1 -1
  117. package/dist/pkt-textinput.cjs +1 -1
  118. package/dist/pkt-textinput.js +1 -1
  119. package/dist/{progressbar-D0nxLqHu.js → progressbar-DvFz9KBo.js} +6 -6
  120. package/dist/{progressbar-B6A9UVXS.cjs → progressbar-jASTnhti.cjs} +1 -1
  121. package/dist/progressbar.d.ts +32 -0
  122. package/dist/{radiobutton-BWyQgR_x.cjs → radiobutton-C-Xd5sSq.cjs} +1 -1
  123. package/dist/{radiobutton-DLWjvLBO.js → radiobutton-D03aN4yn.js} +5 -5
  124. package/dist/radiobutton.d.ts +32 -0
  125. package/dist/ref-B70YZNXm.js +102 -0
  126. package/dist/ref-CLqTsViF.cjs +9 -0
  127. package/dist/repeat-CNLpCTun.js +61 -0
  128. package/dist/repeat-t2oms1o6.cjs +5 -0
  129. package/dist/select-BLDaK5Rd.js +118 -0
  130. package/dist/select-Dvds7MzS.cjs +49 -0
  131. package/dist/select.d.ts +32 -0
  132. package/dist/{state-HNj0_316.cjs → state-C4LdlTYO.cjs} +1 -1
  133. package/dist/{state-CDQk0DFQ.js → state-CDwPbiQj.js} +1 -1
  134. package/dist/tag-C52KeBmR.cjs +18 -0
  135. package/dist/{tag-CmFcSdOV.js → tag-DoS5S2Bq.js} +28 -77
  136. package/dist/tag.d.ts +32 -0
  137. package/dist/{textarea-BPqWCymU.js → textarea-C9EvdPGi.js} +18 -17
  138. package/dist/{textarea-VG-UTMLP.cjs → textarea-DJvNBmEL.cjs} +6 -6
  139. package/dist/textarea.d.ts +32 -0
  140. package/dist/{textinput-CEP7QA3E.cjs → textinput-Cg3ObBuw.cjs} +5 -4
  141. package/dist/{textinput-VD74aGzx.js → textinput-CxRSSYaN.js} +34 -33
  142. package/dist/textinput.d.ts +32 -0
  143. package/package.json +4 -4
  144. package/src/components/button/button.ts +3 -2
  145. package/src/components/combobox/combobox.ts +873 -0
  146. package/src/components/combobox/countrycodes.json +927 -0
  147. package/src/components/combobox/index.ts +6 -0
  148. package/src/components/datepicker/datepicker.ts +6 -4
  149. package/src/components/helptext/helptext.ts +1 -1
  150. package/src/components/index.ts +7 -0
  151. package/src/components/input-wrapper/input-wrapper.ts +42 -34
  152. package/src/components/listbox/index.ts +4 -0
  153. package/src/components/listbox/listbox.ts +474 -0
  154. package/src/components/select/select.ts +7 -0
  155. package/src/components/tag/tag.ts +1 -1
  156. package/src/components/textinput/textinput.ts +3 -2
  157. package/dist/alert-BDxxRqgi.cjs +0 -27
  158. package/dist/alert-D0S57u0r.js +0 -163
  159. package/dist/card-C63x_nll.cjs +0 -28
  160. package/dist/card-DQfNKnKl.js +0 -176
  161. package/dist/datepicker-CYUvRGhE.js +0 -663
  162. package/dist/datepicker-FuAL0uNU.cjs +0 -155
  163. package/dist/directive-C_VV3qwo.cjs +0 -5
  164. package/dist/element-CzFXQBoS.cjs +0 -238
  165. package/dist/input-element-Dtyuf6s8.cjs +0 -1
  166. package/dist/input-wrapper-Bo2_t6pA.cjs +0 -50
  167. package/dist/input-wrapper-Bw9tARAD.js +0 -125
  168. package/dist/input-wrapper-DaZZq8c0.js +0 -172
  169. package/dist/input-wrapper-jPnKsfEC.cjs +0 -1
  170. package/dist/link-1iq0Pmuf.cjs +0 -8
  171. package/dist/link-D3U0Jkz8.js +0 -109
  172. package/dist/messagebox-DQpEMkS2.cjs +0 -12
  173. package/dist/messagebox-KP-8-tA9.js +0 -114
  174. package/dist/modal-ytIJwfr3.cjs +0 -33
  175. package/dist/pkt-slot-controller-Clbye6cM.js +0 -85
  176. package/dist/pkt-slot-controller-Oc32unDk.cjs +0 -1
  177. package/dist/ref-2anvRHT4.cjs +0 -13
  178. package/dist/ref-DbOSDQbk.js +0 -143
  179. package/dist/select-CzuxXKll.js +0 -150
  180. package/dist/select-DZL6aa2s.cjs +0 -48
  181. package/dist/tag-BeLSOjNh.cjs +0 -18
@@ -1,40 +1,41 @@
1
- import { x as p, E as h, n as o, a as $ } from "./element-C7XjZtLU.js";
2
- import { o as c } from "./if-defined-eRX4e5zO.js";
3
- import { r as f } from "./state-CDQk0DFQ.js";
4
- import { e as d, n as m } from "./ref-DbOSDQbk.js";
5
- import { e as g } from "./class-map-DWtqmIRS.js";
6
- import { P as x } from "./input-element-BK8UkQli.js";
7
- import { P as y } from "./pkt-slot-controller-Clbye6cM.js";
8
- import "./input-wrapper-DaZZq8c0.js";
9
- import "./icon-BEUgV9Wo.js";
10
- var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, n = (i, e, r, t) => {
11
- for (var a = t > 1 ? void 0 : t ? b(e, r) : e, l = i.length - 1, u; l >= 0; l--)
12
- (u = i[l]) && (a = (t ? u(e, r, a) : u(a)) || a);
13
- return t && a && v(e, r, a), a;
1
+ import { E as p, x as h, n as o, a as $ } from "./element-DiqKrDty.js";
2
+ import { o as c } from "./if-defined-DeANa4n5.js";
3
+ import { r as f } from "./state-CDwPbiQj.js";
4
+ import { e as d, n as m } from "./ref-B70YZNXm.js";
5
+ import { e as g } from "./class-map-D4tSZX70.js";
6
+ import { P as x } from "./input-element-C4mmTk6h.js";
7
+ import { P as y } from "./pkt-slot-controller-BtVLTZb7.js";
8
+ import "./input-wrapper-P_oEi6dk.js";
9
+ import "./icon-BdY52BIt.js";
10
+ var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, n = (e, i, r, t) => {
11
+ for (var a = t > 1 ? void 0 : t ? b(i, r) : i, l = e.length - 1, u; l >= 0; l--)
12
+ (u = e[l]) && (a = (t ? u(i, r, a) : u(a)) || a);
13
+ return t && a && v(i, r, a), a;
14
14
  };
15
15
  let s = class extends x {
16
16
  constructor() {
17
- super(), this.inputRef = d(), this.helptextSlot = d(), this.value = "", this.type = "text", this.size = null, this.autocomplete = "off", this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new y(this, this.helptextSlot);
17
+ super(), this.inputRef = d(), this.helptextSlot = d(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new y(this, this.helptextSlot);
18
18
  }
19
- attributeChangedCallback(i, e, r) {
20
- i === "value" && this.value !== e && (this.counterCurrent = r ? r.length : 0, this.valueChanged(r, e)), super.attributeChangedCallback(i, e, r);
19
+ attributeChangedCallback(e, i, r) {
20
+ e === "value" && this.value !== i && (this.counterCurrent = r ? r.length : 0, this.valueChanged(r, i)), super.attributeChangedCallback(e, i, r);
21
21
  }
22
- updated(i) {
23
- var e;
24
- super.updated(i), i.has("value") && (this.counterCurrent = ((e = this.value) == null ? void 0 : e.length) || 0, this.valueChanged(this.value, i.get("value"))), i.has("id") && !this.name && this.id && (this.name = this.id);
22
+ updated(e) {
23
+ var i;
24
+ super.updated(e), e.has("value") && (this.counterCurrent = ((i = this.value) == null ? void 0 : i.length) || 0, this.valueChanged(this.value, e.get("value"))), e.has("id") && !this.name && this.id && (this.name = this.id);
25
25
  }
26
26
  render() {
27
- const i = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, e = g({
27
+ const e = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, i = g({
28
28
  "pkt-input": !0,
29
29
  "pkt-input--fullwidth": this.fullwidth,
30
30
  "pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
31
31
  }), r = this.ariaLabelledby || `${this.id}-input-label`;
32
- return p`
32
+ return h`
33
33
  <pkt-input-wrapper
34
34
  label="${this.label}"
35
35
  ?counter=${this.counter}
36
36
  ?disabled=${this.disabled}
37
37
  ?hasError=${this.hasError}
38
+ ?hasFieldset=${this.hasFieldset}
38
39
  ?inline=${this.inline}
39
40
  ?optionalTag=${this.optionalTag}
40
41
  ?required=${this.required}
@@ -54,20 +55,20 @@ let s = class extends x {
54
55
  >
55
56
  <div class="pkt-contents" ${m(this.helptextSlot)} name="helptext" slot="helptext"></div>
56
57
  <div class="pkt-input__container">
57
- ${this.prefix ? p`<div class="pkt-input-prefix">${this.prefix}</div>` : h}
58
+ ${this.prefix ? h`<div class="pkt-input-prefix">${this.prefix}</div>` : p}
58
59
  <input
59
60
  ${m(this.inputRef)}
60
- class=${e}
61
+ class=${i}
61
62
  type=${this.type}
62
63
  name=${(this.name || this.id) + "-input"}
63
64
  id=${this.id + "-input"}
64
65
  placeholder=${c(this.placeholder)}
65
66
  aria-labelledby=${r}
66
- autocomplete=${this.autocomplete}
67
+ autocomplete=${this.autocomplete || "off"}
67
68
  minlength=${c(this.minlength)}
68
69
  maxlength=${c(this.maxlength)}
69
70
  ?readonly=${this.readonly}
70
- size=${this.size || h}
71
+ size=${this.size || p}
71
72
  .value=${this.value}
72
73
  ?disabled=${this.disabled}
73
74
  aria-invalid=${this.hasError}
@@ -85,19 +86,19 @@ let s = class extends x {
85
86
  this.value = t.target.value, this.onBlur(), t.stopImmediatePropagation();
86
87
  }}
87
88
  />
88
- ${this.suffix ? p`<div class="pkt-input-suffix">
89
+ ${this.suffix ? h`<div class="pkt-input-suffix">
89
90
  ${this.suffix}
90
- ${this.iconNameRight ? p`<pkt-icon
91
+ ${this.iconNameRight ? h`<pkt-icon
91
92
  class="pkt-input-suffix-icon"
92
93
  name=${this.iconNameRight}
93
- ></pkt-icon>` : h}
94
- ${i ? p`<pkt-icon
94
+ ></pkt-icon>` : p}
95
+ ${e ? h`<pkt-icon
95
96
  class="pkt-input-suffix-icon"
96
97
  name="magnifying-glass-big"
97
- ></pkt-icon>` : h}
98
- </div>` : h}
99
- ${!this.suffix && this.iconNameRight ? p`<pkt-icon class="pkt-input-icon" name=${this.iconNameRight}></pkt-icon>` : h}
100
- ${!this.suffix && i ? p`<pkt-icon class="pkt-input-icon" name="magnifying-glass-big"></pkt-icon>` : h}
98
+ ></pkt-icon>` : p}
99
+ </div>` : p}
100
+ ${!this.suffix && this.iconNameRight ? h`<pkt-icon class="pkt-input-icon" name=${this.iconNameRight}></pkt-icon>` : p}
101
+ ${!this.suffix && e ? h`<pkt-icon class="pkt-input-icon" name="magnifying-glass-big"></pkt-icon>` : p}
101
102
  </div>
102
103
  </pkt-input-wrapper>
103
104
  `;
@@ -1,6 +1,13 @@
1
1
  export { }
2
2
 
3
3
 
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'pkt-combobox': PktCombobox & HTMLSelectElement;
7
+ }
8
+ }
9
+
10
+
4
11
  declare global {
5
12
  interface HTMLElementTagNameMap {
6
13
  'pkt-icon': PktIcon;
@@ -8,6 +15,31 @@ declare global {
8
15
  }
9
16
 
10
17
 
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ 'pkt-listbox': PktListbox;
21
+ }
22
+ }
23
+
24
+
25
+ /**
26
+ * Pkt Select is a wrapper for the native select element using the pkt-input-wrapper component.
27
+ *
28
+ * The component will prioritize options passed as a prop over options passed as children if both are provided.
29
+ * This is to allow for dynamic options that might change in the case of both children/slot and props are provided.
30
+ *
31
+ * @slot (default) - Options to be rendered as children
32
+ * @prop {TSelectOption[]} options - Options to be rendered as children
33
+ *
34
+ *
35
+ */
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'pkt-select': PktSelect & HTMLSelectElement;
39
+ }
40
+ }
41
+
42
+
11
43
  declare global {
12
44
  interface Window {
13
45
  pktTz: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-elements",
3
- "version": "12.31.2",
3
+ "version": "12.32.7",
4
4
  "description": "Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -30,10 +30,10 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@oslokommune/punkt-assets": "^12.30.1",
33
- "@oslokommune/punkt-css": "^12.31.0",
33
+ "@oslokommune/punkt-css": "^12.32.1",
34
34
  "sass": "^1.78.0",
35
35
  "typescript": "^5.6.2",
36
- "vite": "^5.4.4",
36
+ "vite": "^5.4.18",
37
37
  "vite-plugin-dts": "^4.2.1",
38
38
  "vite-plugin-web-components-hmr": "^0.1.3"
39
39
  },
@@ -57,5 +57,5 @@
57
57
  "url": "https://github.com/oslokommune/punkt/issues"
58
58
  },
59
59
  "license": "MIT",
60
- "gitHead": "bb030d6ba98fa9e45a95cf3092d95b46a750a730"
60
+ "gitHead": "001ce7fd764b33b5f4c7d90ad5418a62a4d780a6"
61
61
  }
@@ -47,6 +47,7 @@ export interface IPktButton {
47
47
  export class PktButton extends PktElement<IPktButton> implements IPktButton {
48
48
  static formAssociated = true
49
49
  private internals = this.attachInternals()
50
+ slotController: PktSlotController
50
51
  defaultSlot: Ref<HTMLElement> = createRef()
51
52
 
52
53
  constructor() {
@@ -94,7 +95,7 @@ export class PktButton extends PktElement<IPktButton> implements IPktButton {
94
95
  this.setAttribute('tabindex', '0')
95
96
  }
96
97
  if (this.getAttribute('aria-disabled') !== 'false') {
97
- this.setAttribute('aria-disabled', 'false')
98
+ this.removeAttribute('aria-disabled')
98
99
  }
99
100
  }
100
101
  if (this.isLoading) {
@@ -114,7 +115,7 @@ export class PktButton extends PktElement<IPktButton> implements IPktButton {
114
115
 
115
116
  render() {
116
117
  return html`
117
- <div class="pkt-btn__element-content">
118
+ <div class="pkt-contents">
118
119
  ${this.isLoading
119
120
  ? html`<pkt-icon
120
121
  class="pkt-btn__icon pkt-btn__spinner"