@oslokommune/punkt-elements 19.4.0 → 19.5.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.
Files changed (171) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{accordion-CZ0O4c0_.cjs → accordion-5lSFQToJ.cjs} +6 -6
  3. package/dist/{accordion-DFcdonl-.js → accordion-BJh6X1Ek.js} +6 -6
  4. package/dist/{alert-BhvjSA5X.js → alert-C0PiYnot.js} +29 -36
  5. package/dist/alert-IaZzEgyI.cjs +39 -0
  6. package/dist/{backlink-Bw6IcRIo.cjs → backlink-BRqhwUr2.cjs} +1 -1
  7. package/dist/{backlink-DIdgvE2j.js → backlink-BslFewn-.js} +1 -1
  8. package/dist/{breadcrumbs-BfgCx3Xj.js → breadcrumbs-Cr3GugPv.js} +1 -1
  9. package/dist/{breadcrumbs-C10K1XLP.cjs → breadcrumbs-DG4i5UCh.cjs} +1 -1
  10. package/dist/{button-B5rWxfei.js → button-B78im4wB.js} +16 -16
  11. package/dist/button-BNVTj7nB.cjs +32 -0
  12. package/dist/{calendar-U8xkRdgF.js → calendar-BLaRXUBl.js} +1 -1
  13. package/dist/{calendar-D-Ow5DAp.cjs → calendar-TcxvS-1_.cjs} +1 -1
  14. package/dist/{card-D2YYPZr5.js → card-CYKhPUNI.js} +12 -12
  15. package/dist/{card-DW1uklP6.cjs → card-CaLEuumN.cjs} +10 -10
  16. package/dist/{checkbox-C0zLtnCI.cjs → checkbox-DIyi1Cya.cjs} +1 -1
  17. package/dist/{checkbox-B2O0fkh9.js → checkbox-DKeErDb5.js} +1 -1
  18. package/dist/{combobox-DpXTwNr4.js → combobox-BKnHg_-E.js} +30 -30
  19. package/dist/{combobox-BgduqUpf.cjs → combobox-C7FUvv5T.cjs} +22 -22
  20. package/dist/components/alert/alert.d.ts +0 -2
  21. package/dist/{consent-CbJG04C1.js → consent-CleJMbVH.js} +1 -1
  22. package/dist/{consent-DxpJLExu.cjs → consent-Dl-R0iC3.cjs} +1 -1
  23. package/dist/{datepicker-BLBimRTT.js → datepicker-COFEJpB4.js} +10 -10
  24. package/dist/{datepicker-53rj_Qqx.cjs → datepicker-CeUpoQuG.cjs} +27 -27
  25. package/dist/directives/slot-content.d.ts +36 -1
  26. package/dist/element-with-slot-D7sTqOr3.cjs +1 -0
  27. package/dist/{element-with-slot-FD826ooP.js → element-with-slot-DQv0cbbD.js} +80 -21
  28. package/dist/{fileupload-BxfBFhFt.js → fileupload-CUPl41uN.js} +32 -32
  29. package/dist/{fileupload-4wgr4iAi.cjs → fileupload-CaZGBvZr.cjs} +21 -21
  30. package/dist/{footer-CBkKAuvh.js → footer-DdLls3F-.js} +14 -14
  31. package/dist/{footer-DOp_9VdY.cjs → footer-vy9NqT65.cjs} +9 -9
  32. package/dist/{header-Cs4t2XMM.cjs → header-CgP3-6-b.cjs} +50 -50
  33. package/dist/{header-CF-Re0nT.js → header-Cq6INZmI.js} +56 -56
  34. package/dist/{header-menu-C9k9xG9V.js → header-menu-ANj5nL2M.js} +2 -2
  35. package/dist/{header-menu-BnqZagI6.cjs → header-menu-BfkCp8jw.cjs} +1 -1
  36. package/dist/{heading-BRHCV_5J.js → heading-CUrZvkrM.js} +1 -1
  37. package/dist/{heading-u9Arof4p.cjs → heading-zoz-QZJ9.cjs} +1 -1
  38. package/dist/{helptext-DYgeTMtA.cjs → helptext-BCkwSz1m.cjs} +2 -2
  39. package/dist/{helptext-sRC8EJqL.js → helptext-DCT_9dw1.js} +2 -2
  40. package/dist/icon-Dnv6LtPC.cjs +1 -0
  41. package/dist/{icon-DmRyYNlY.js → icon-JigbxxF7.js} +16 -12
  42. package/dist/{input-element-B1BntJeJ.js → input-element-5hsxasU3.js} +1 -1
  43. package/dist/{input-element-W6Gklt2E.cjs → input-element-Ctkz5fQk.cjs} +1 -1
  44. package/dist/{input-wrapper-CSPPa4uc.cjs → input-wrapper-Cf__-4E-.cjs} +28 -28
  45. package/dist/{input-wrapper-C1zXIKBU.js → input-wrapper-DACDx6Ie.js} +45 -45
  46. package/dist/{link-DcxVUj8s.js → link-CmZwAw5u.js} +2 -2
  47. package/dist/link-LO_5_La8.cjs +7 -0
  48. package/dist/{linkcard-MJFR7FLT.js → linkcard-CQluSyJJ.js} +8 -8
  49. package/dist/{linkcard-CWeR6t2a.cjs → linkcard-UKsxADrP.cjs} +3 -3
  50. package/dist/{listbox-DEzd-dxF.js → listbox-Ct9jIV_5.js} +8 -8
  51. package/dist/{listbox-BoBwzL4p.cjs → listbox-g-vHHLkD.cjs} +20 -20
  52. package/dist/{loader-SJ6NauNT.cjs → loader-C_PH05aw.cjs} +2 -2
  53. package/dist/{loader-CqFQoJlM.js → loader-DzctJ9jW.js} +2 -2
  54. package/dist/{messagebox-DsKi_rKn.js → messagebox-DPFBuisE.js} +2 -2
  55. package/dist/messagebox-JWKMJEFc.cjs +13 -0
  56. package/dist/{modal-DaerHpVi.cjs → modal-BymjMIJi.cjs} +2 -2
  57. package/dist/{modal-CJqe6y-V.js → modal-CELmA0-8.js} +2 -2
  58. package/dist/pkt-accordion.cjs +1 -1
  59. package/dist/pkt-accordion.js +1 -1
  60. package/dist/pkt-alert.cjs +1 -1
  61. package/dist/pkt-alert.js +1 -1
  62. package/dist/pkt-backlink.cjs +1 -1
  63. package/dist/pkt-backlink.js +1 -1
  64. package/dist/pkt-breadcrumbs.cjs +1 -1
  65. package/dist/pkt-breadcrumbs.js +1 -1
  66. package/dist/pkt-button.cjs +1 -1
  67. package/dist/pkt-button.js +1 -1
  68. package/dist/pkt-calendar.cjs +1 -1
  69. package/dist/pkt-calendar.js +1 -1
  70. package/dist/pkt-card.cjs +1 -1
  71. package/dist/pkt-card.js +1 -1
  72. package/dist/pkt-checkbox.cjs +1 -1
  73. package/dist/pkt-checkbox.js +1 -1
  74. package/dist/pkt-combobox.cjs +1 -1
  75. package/dist/pkt-combobox.js +1 -1
  76. package/dist/pkt-consent.cjs +1 -1
  77. package/dist/pkt-consent.js +1 -1
  78. package/dist/pkt-datepicker.cjs +1 -1
  79. package/dist/pkt-datepicker.js +1 -1
  80. package/dist/pkt-fileupload.cjs +1 -1
  81. package/dist/pkt-fileupload.js +1 -1
  82. package/dist/pkt-footer.cjs +1 -1
  83. package/dist/pkt-footer.js +1 -1
  84. package/dist/pkt-header-menu.cjs +1 -1
  85. package/dist/pkt-header-menu.js +1 -1
  86. package/dist/pkt-header.cjs +1 -1
  87. package/dist/pkt-header.js +1 -1
  88. package/dist/pkt-heading.cjs +1 -1
  89. package/dist/pkt-heading.js +1 -1
  90. package/dist/pkt-helptext.cjs +1 -1
  91. package/dist/pkt-helptext.js +1 -1
  92. package/dist/pkt-icon.cjs +1 -1
  93. package/dist/pkt-icon.js +1 -1
  94. package/dist/pkt-index.cjs +1 -1
  95. package/dist/pkt-index.js +34 -34
  96. package/dist/pkt-input-wrapper.cjs +1 -1
  97. package/dist/pkt-input-wrapper.js +1 -1
  98. package/dist/pkt-link.cjs +1 -1
  99. package/dist/pkt-link.js +1 -1
  100. package/dist/pkt-linkcard.cjs +1 -1
  101. package/dist/pkt-linkcard.js +1 -1
  102. package/dist/pkt-listbox.cjs +1 -1
  103. package/dist/pkt-listbox.js +1 -1
  104. package/dist/pkt-loader.cjs +1 -1
  105. package/dist/pkt-loader.js +1 -1
  106. package/dist/pkt-messagebox.cjs +1 -1
  107. package/dist/pkt-messagebox.js +1 -1
  108. package/dist/pkt-modal.cjs +1 -1
  109. package/dist/pkt-modal.js +1 -1
  110. package/dist/{pkt-options-controller-Dz-rYCG1.cjs → pkt-options-controller-CpEZcomb.cjs} +1 -1
  111. package/dist/{pkt-options-controller-sUzxHa5A.js → pkt-options-controller-D7l18Iw0.js} +1 -1
  112. package/dist/pkt-progressbar.cjs +1 -1
  113. package/dist/pkt-progressbar.js +1 -1
  114. package/dist/pkt-radiobutton.cjs +1 -1
  115. package/dist/pkt-radiobutton.js +1 -1
  116. package/dist/pkt-searchinput.cjs +1 -1
  117. package/dist/pkt-searchinput.js +1 -1
  118. package/dist/pkt-select.cjs +1 -1
  119. package/dist/pkt-select.js +1 -1
  120. package/dist/pkt-tabs.cjs +1 -1
  121. package/dist/pkt-tabs.js +1 -1
  122. package/dist/pkt-tag.cjs +1 -1
  123. package/dist/pkt-tag.js +1 -1
  124. package/dist/pkt-textarea.cjs +1 -1
  125. package/dist/pkt-textarea.js +1 -1
  126. package/dist/pkt-textinput.cjs +1 -1
  127. package/dist/pkt-textinput.js +1 -1
  128. package/dist/pkt-timepicker.cjs +1 -1
  129. package/dist/pkt-timepicker.js +1 -1
  130. package/dist/{progressbar-BrVlAcQI.cjs → progressbar-CIXNSwTy.cjs} +2 -3
  131. package/dist/{progressbar-Bd0DjiAb.js → progressbar-DH5lIBpx.js} +6 -4
  132. package/dist/{radiobutton-B0V-jSEX.js → radiobutton-DP791tUe.js} +1 -1
  133. package/dist/{radiobutton-Cv1BlwLV.cjs → radiobutton-oEYrBiT6.cjs} +1 -1
  134. package/dist/{searchinput-7-VVdkss.cjs → searchinput-CbClDE-d.cjs} +1 -1
  135. package/dist/{searchinput-CgzigmiI.js → searchinput-Co8tcq-l.js} +1 -1
  136. package/dist/{select-BbcGPmPs.js → select-B97S4g1v.js} +18 -18
  137. package/dist/{select---PCiwmy.cjs → select-QobXCtIL.cjs} +13 -13
  138. package/dist/shared-types/icon.d.ts +39 -0
  139. package/dist/shared-types/index.d.ts +2 -0
  140. package/dist/{tabs-B134M9k2.js → tabs-B8blHQrL.js} +18 -18
  141. package/dist/{tabs-Dw9E06fL.cjs → tabs-CjX-GWvM.cjs} +15 -15
  142. package/dist/tag-B5dUg7AD.cjs +27 -0
  143. package/dist/{tag-wYnHhHLK.js → tag-Bns7Xj1O.js} +11 -11
  144. package/dist/{textarea-BcgVLLTt.js → textarea-DgW0hRV5.js} +17 -17
  145. package/dist/{textarea-pA_xv8lI.cjs → textarea-ZMbtZNp3.cjs} +10 -10
  146. package/dist/{textinput-Czz2affL.cjs → textinput-DfT_1aGb.cjs} +10 -10
  147. package/dist/{textinput-Dpj1X5yr.js → textinput-s-qz2xSC.js} +15 -15
  148. package/dist/{timepicker-BwDZkSpo.cjs → timepicker-BAa_VEnf.cjs} +10 -10
  149. package/dist/{timepicker-CfQMZlaP.js → timepicker-Crj4isb9.js} +16 -16
  150. package/package.json +2 -2
  151. package/src/components/alert/alert.test.ts +15 -0
  152. package/src/components/alert/alert.ts +0 -12
  153. package/src/components/combobox/combobox.ts +3 -3
  154. package/src/components/datepicker/datepicker.ts +5 -5
  155. package/src/components/helptext/helptext-association.test.ts +79 -0
  156. package/src/components/icon/icon.ts +6 -6
  157. package/src/components/input-wrapper/input-wrapper.test.ts +49 -0
  158. package/src/components/input-wrapper/input-wrapper.ts +6 -4
  159. package/src/components/progressbar/progressbar.test.ts +19 -0
  160. package/src/components/progressbar/progressbar.ts +2 -6
  161. package/src/components/select/select.ts +3 -3
  162. package/src/components/textarea/textarea.ts +3 -3
  163. package/src/components/textinput/textinput.ts +3 -3
  164. package/src/components/timepicker/timepicker.ts +3 -3
  165. package/dist/alert-D1bQjZ7C.cjs +0 -40
  166. package/dist/button-CmNrMH-c.cjs +0 -32
  167. package/dist/element-with-slot-2PHu2w7O.cjs +0 -1
  168. package/dist/icon-CoBsgGUR.cjs +0 -1
  169. package/dist/link-EMsHusF7.cjs +0 -7
  170. package/dist/messagebox-D5GYIdjE.cjs +0 -13
  171. package/dist/tag-HTYKd-iG.cjs +0 -27
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./input-wrapper-CSPPa4uc.cjs");exports.PktInputWrapper=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./input-wrapper-Cf__-4E-.cjs");exports.PktInputWrapper=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./input-wrapper-C1zXIKBU.js";
1
+ import { n as e, t } from "./input-wrapper-DACDx6Ie.js";
2
2
  export { e as PktInputWrapper, t as default };
package/dist/pkt-link.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./link-EMsHusF7.cjs");exports.PktLink=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./link-LO_5_La8.cjs");exports.PktLink=e.n,exports.default=e.t;
package/dist/pkt-link.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./link-DcxVUj8s.js";
1
+ import { n as e, t } from "./link-CmZwAw5u.js";
2
2
  export { e as PktLink, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./linkcard-CWeR6t2a.cjs");exports.PktLinkCard=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./linkcard-UKsxADrP.cjs");exports.PktLinkCard=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./linkcard-MJFR7FLT.js";
1
+ import { n as e, t } from "./linkcard-CQluSyJJ.js";
2
2
  export { e as PktLinkCard, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./listbox-BoBwzL4p.cjs");exports.PktListbox=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./listbox-g-vHHLkD.cjs");exports.PktListbox=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./listbox-DEzd-dxF.js";
1
+ import { n as e, t } from "./listbox-Ct9jIV_5.js";
2
2
  export { e as PktListbox, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./loader-SJ6NauNT.cjs");exports.PktLoader=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./loader-C_PH05aw.cjs");exports.PktLoader=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./loader-CqFQoJlM.js";
1
+ import { n as e, t } from "./loader-DzctJ9jW.js";
2
2
  export { e as PktLoader, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./messagebox-D5GYIdjE.cjs");exports.PktMessagebox=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./messagebox-JWKMJEFc.cjs");exports.PktMessagebox=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./messagebox-DsKi_rKn.js";
1
+ import { n as e, t } from "./messagebox-DPFBuisE.js";
2
2
  export { e as PktMessagebox, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./modal-DaerHpVi.cjs");exports.PktModal=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./modal-BymjMIJi.cjs");exports.PktModal=e.n,exports.default=e.t;
package/dist/pkt-modal.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./modal-CJqe6y-V.js";
1
+ import { n as e, t } from "./modal-CELmA0-8.js";
2
2
  export { e as PktModal, t as default };
@@ -1 +1 @@
1
- const e=require("./element-with-slot-2PHu2w7O.cjs");var t=class{constructor(e){this.nodes=[],this.options=[],this.generation=0,this.host=e,this.host.addController(this),this.nodes=[],this.options=[],this.observer=new MutationObserver(e=>this.handleMutations(e))}hostConnected(){this.nodes=[],Array.from(this.host.childNodes).forEach(e=>{(e.nodeName===`OPTION`||e.nodeName===`DATA`)&&this.addNode(e)}),this.createOptions(),this.observer.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`disabled`,`selected`,`value`],attributeOldValue:!0,characterData:!0})}hostDisconnected(){this.observer.disconnect()}addNode(e){(e.nodeName===`OPTION`||e.nodeName===`DATA`)&&(e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-skip`)&&e.setAttribute(`data-hidden`,`true`),!e.hasAttribute(`hidden`)&&e.hasAttribute(`data-skip`)&&e.hasAttribute(`data-hidden`)&&e.removeAttribute(`data-hidden`),e.setAttribute(`class`,`pkt-hide`),e.setAttribute(`data-skip`,`true`),e.setAttribute(`hidden`,`true`),this.nodes.includes(e)||this.nodes.push(e))}createOptions(){this.options=this.nodes.map(e=>({value:e.hasAttribute(`value`)?e.getAttribute(`value`)??``:e.textContent??``,label:e.textContent||e.getAttribute(`value`)||``,selected:e.hasAttribute(`selected`),disabled:e.hasAttribute(`disabled`),hidden:e.hasAttribute(`data-hidden`)})),this.generation++,this.host.requestUpdate()}handleMutations(t){let n=!1;t.forEach(t=>{if(t.type===`childList`){if(t.target!==this.host){let r=t.target;e.i(r)&&r.parentNode===this.host&&(n=!0);return}t.addedNodes.forEach(t=>{e.i(t)&&(this.addNode(t),n=!0)}),t.removedNodes.forEach(t=>{e.i(t)&&(this.nodes=this.nodes.filter(e=>e!==t),n=!0)})}if(t.type===`attributes`){let r=t.target;if(!e.i(r)||r.parentNode!==this.host||t.attributeName&&r.getAttribute(t.attributeName)===t.oldValue)return;this.addNode(r),n=!0}if(t.type===`characterData`){let r=t.target.parentElement;r&&e.i(r)&&r.parentNode===this.host&&(n=!0)}}),n&&this.createOptions()}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
1
+ const e=require("./element-with-slot-D7sTqOr3.cjs");var t=class{constructor(e){this.nodes=[],this.options=[],this.generation=0,this.host=e,this.host.addController(this),this.nodes=[],this.options=[],this.observer=new MutationObserver(e=>this.handleMutations(e))}hostConnected(){this.nodes=[],Array.from(this.host.childNodes).forEach(e=>{(e.nodeName===`OPTION`||e.nodeName===`DATA`)&&this.addNode(e)}),this.createOptions(),this.observer.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`disabled`,`selected`,`value`],attributeOldValue:!0,characterData:!0})}hostDisconnected(){this.observer.disconnect()}addNode(e){(e.nodeName===`OPTION`||e.nodeName===`DATA`)&&(e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-skip`)&&e.setAttribute(`data-hidden`,`true`),!e.hasAttribute(`hidden`)&&e.hasAttribute(`data-skip`)&&e.hasAttribute(`data-hidden`)&&e.removeAttribute(`data-hidden`),e.setAttribute(`class`,`pkt-hide`),e.setAttribute(`data-skip`,`true`),e.setAttribute(`hidden`,`true`),this.nodes.includes(e)||this.nodes.push(e))}createOptions(){this.options=this.nodes.map(e=>({value:e.hasAttribute(`value`)?e.getAttribute(`value`)??``:e.textContent??``,label:e.textContent||e.getAttribute(`value`)||``,selected:e.hasAttribute(`selected`),disabled:e.hasAttribute(`disabled`),hidden:e.hasAttribute(`data-hidden`)})),this.generation++,this.host.requestUpdate()}handleMutations(t){let n=!1;t.forEach(t=>{if(t.type===`childList`){if(t.target!==this.host){let r=t.target;e.a(r)&&r.parentNode===this.host&&(n=!0);return}t.addedNodes.forEach(t=>{e.a(t)&&(this.addNode(t),n=!0)}),t.removedNodes.forEach(t=>{e.a(t)&&(this.nodes=this.nodes.filter(e=>e!==t),n=!0)})}if(t.type===`attributes`){let r=t.target;if(!e.a(r)||r.parentNode!==this.host||t.attributeName&&r.getAttribute(t.attributeName)===t.oldValue)return;this.addNode(r),n=!0}if(t.type===`characterData`){let r=t.target.parentElement;r&&e.a(r)&&r.parentNode===this.host&&(n=!0)}}),n&&this.createOptions()}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -1,4 +1,4 @@
1
- import { i as e } from "./element-with-slot-FD826ooP.js";
1
+ import { a as e } from "./element-with-slot-DQv0cbbD.js";
2
2
  //#region src/controllers/pkt-options-controller.ts
3
3
  var t = class {
4
4
  constructor(e) {
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./progressbar-BrVlAcQI.cjs");exports.PktProgressbar=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./progressbar-CIXNSwTy.cjs");exports.PktProgressbar=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./progressbar-Bd0DjiAb.js";
1
+ import { n as e, t } from "./progressbar-DH5lIBpx.js";
2
2
  export { e as PktProgressbar, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./radiobutton-Cv1BlwLV.cjs");exports.PktRadioButton=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./radiobutton-oEYrBiT6.cjs");exports.PktRadioButton=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./radiobutton-B0V-jSEX.js";
1
+ import { n as e, t } from "./radiobutton-DP791tUe.js";
2
2
  export { e as PktRadioButton, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./searchinput-7-VVdkss.cjs");exports.PktSearchInput=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./searchinput-CbClDE-d.cjs");exports.PktSearchInput=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./searchinput-CgzigmiI.js";
1
+ import { n as e, t } from "./searchinput-Co8tcq-l.js";
2
2
  export { e as PktSearchInput, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./select---PCiwmy.cjs");exports.PktSelect=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./select-QobXCtIL.cjs");exports.PktSelect=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./select-BbcGPmPs.js";
1
+ import { n as e, t } from "./select-B97S4g1v.js";
2
2
  export { e as PktSelect, t as default };
package/dist/pkt-tabs.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tabs-Dw9E06fL.cjs");exports.PktTabItem=e.n,exports.PktTabs=e.r,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tabs-CjX-GWvM.cjs");exports.PktTabItem=e.n,exports.PktTabs=e.r,exports.default=e.t;
package/dist/pkt-tabs.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./tabs-B134M9k2.js";
1
+ import { n as e, r as t, t as n } from "./tabs-B8blHQrL.js";
2
2
  export { e as PktTabItem, t as PktTabs, n as default };
package/dist/pkt-tag.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tag-HTYKd-iG.cjs");exports.PktTag=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./tag-B5dUg7AD.cjs");exports.PktTag=e.n,exports.default=e.t;
package/dist/pkt-tag.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./tag-wYnHhHLK.js";
1
+ import { n as e, t } from "./tag-Bns7Xj1O.js";
2
2
  export { e as PktTag, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textarea-pA_xv8lI.cjs");exports.PktTextarea=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textarea-ZMbtZNp3.cjs");exports.PktTextarea=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./textarea-BcgVLLTt.js";
1
+ import { n as e, t } from "./textarea-DgW0hRV5.js";
2
2
  export { e as PktTextarea, t as default };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textinput-Czz2affL.cjs");exports.PktTextinput=e.n,exports.default=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./textinput-DfT_1aGb.cjs");exports.PktTextinput=e.n,exports.default=e.t;
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./textinput-Dpj1X5yr.js";
1
+ import { n as e, t } from "./textinput-s-qz2xSC.js";
2
2
  export { e as PktTextinput, t as default };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./timepicker-BwDZkSpo.cjs");exports.PktTimepicker=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./timepicker-BAa_VEnf.cjs");exports.PktTimepicker=e.t;
@@ -1,2 +1,2 @@
1
- import { t as e } from "./timepicker-CfQMZlaP.js";
1
+ import { t as e } from "./timepicker-Crj4isb9.js";
2
2
  export { e as PktTimepicker };
@@ -1,6 +1,5 @@
1
- const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs");require("./icon-CoBsgGUR.cjs");const r=require("./ref-Emu5PNxk.cjs"),i=require("./utils-63cRpWut.cjs");var a=`important`,o=` !`+a,s=e.f(class extends e.p{constructor(t){if(super(t),t.type!==e.m.ATTRIBUTE||t.name!==`style`||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(t,[n]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(n)),this.render(n);for(let e of this.ft)n[e]??(this.ft.delete(e),e.includes(`-`)?r.removeProperty(e):r[e]=null);for(let e in n){let t=n[e];if(t!=null){this.ft.add(e);let n=typeof t==`string`&&t.endsWith(o);e.includes(`-`)||n?r.setProperty(e,n?t.slice(0,-11):t,n?a:``):r[e]=t}}return e.g}}),c=class extends e.t{constructor(){super(),this.ariaLabel=null,this.ariaLabelledby=null,this.ariaValueText=null,this.ariaLive=`polite`,this.id=i.n(),this.role=`progressbar`,this.skin=`dark-blue`,this.statusPlacement=`following`,this.statusType=`none`,this.title=``,this.titlePosition=`left`,this.valueCurrent=0,this.valueMax=100,this.valueMin=0,this.labelWidth=0,this.progressbarId=this.id,this.resolvedRole=`progressbar`,this.labelRef=r.t(),this.progressBarRef=r.t()}willUpdate(e){super.willUpdate(e),this.hasAttribute(`id`)?(this.progressbarId=this.getAttribute(`id`)||this.progressbarId,this.removeAttribute(`id`)):this.id&&(this.progressbarId=this.id);let t=this.getAttribute(`role`);t?(this.resolvedRole=t,this.removeAttribute(`role`)):this.role&&(this.resolvedRole=this.role)}updated(e){super.updated(e),e.has(`valueCurrent`)&&this.labelRef.value&&(this.labelWidth=this.labelRef.value.getBoundingClientRect().width||0)}render(){let i=this.statusType!==`none`,a=this.valueMax-this.valueMin,o=this.valueCurrent/a*100,c=this.statusType===`fraction`?Math.round(o):Math.round((this.valueCurrent-this.valueMin)/(this.valueMax-this.valueMin)*100),l=`${this.valueCurrent} av ${a}`,u=this.statusType===`fraction`&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||``,d=this.ariaLabel?void 0:this.ariaLabelledby||`${this.progressbarId}-title`,f=t.t({"pkt-progressbar__bar":!0,[`pkt-progressbar__bar--${this.skin}`]:!!this.skin}),p=t.t({"pkt-progressbar__title":!0,"pkt-progressbar__title-center":this.titlePosition===`center`}),m=t.t({"pkt-progressbar__status":!0,"pkt-progressbar__status--center":this.statusPlacement===`center`}),h=t.t({"pkt-progressbar__status-placement--following":this.statusPlacement===`following`,"pkt-progressbar__status-placement--center":this.statusPlacement===`center`,"pkt-progressbar__status-placement--left":this.statusPlacement===`left`});return e._`<div
1
+ const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs");require("./icon-Dnv6LtPC.cjs");const n=require("./if-defined-2mkIDgOm.cjs"),r=require("./ref-Emu5PNxk.cjs"),i=require("./utils-63cRpWut.cjs");var a=`important`,o=` !`+a,s=e.f(class extends e.p{constructor(t){if(super(t),t.type!==e.m.ATTRIBUTE||t.name!==`style`||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(t,[n]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(n)),this.render(n);for(let e of this.ft)n[e]??(this.ft.delete(e),e.includes(`-`)?r.removeProperty(e):r[e]=null);for(let e in n){let t=n[e];if(t!=null){this.ft.add(e);let n=typeof t==`string`&&t.endsWith(o);e.includes(`-`)||n?r.setProperty(e,n?t.slice(0,-11):t,n?a:``):r[e]=t}}return e.g}}),c=class extends e.t{constructor(){super(),this.ariaLabel=null,this.ariaLabelledby=null,this.ariaValueText=null,this.ariaLive=`polite`,this.id=i.n(),this.role=`progressbar`,this.skin=`dark-blue`,this.statusPlacement=`following`,this.statusType=`none`,this.title=``,this.titlePosition=`left`,this.valueCurrent=0,this.valueMax=100,this.valueMin=0,this.labelWidth=0,this.progressbarId=this.id,this.resolvedRole=`progressbar`,this.labelRef=r.t(),this.progressBarRef=r.t()}willUpdate(e){super.willUpdate(e),this.id&&(this.progressbarId=this.id);let t=this.getAttribute(`role`);t?(this.resolvedRole=t,this.removeAttribute(`role`)):this.role&&(this.resolvedRole=this.role)}updated(e){super.updated(e),e.has(`valueCurrent`)&&this.labelRef.value&&(this.labelWidth=this.labelRef.value.getBoundingClientRect().width||0)}render(){let i=this.statusType!==`none`,a=this.valueMax-this.valueMin,o=this.valueCurrent/a*100,c=this.statusType===`fraction`?Math.round(o):Math.round((this.valueCurrent-this.valueMin)/(this.valueMax-this.valueMin)*100),l=`${this.valueCurrent} av ${a}`,u=this.statusType===`fraction`&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||``,d=this.ariaLabel?void 0:this.ariaLabelledby||`${this.progressbarId}-title`,f=t.t({"pkt-progressbar__bar":!0,[`pkt-progressbar__bar--${this.skin}`]:!!this.skin}),p=t.t({"pkt-progressbar__title":!0,"pkt-progressbar__title-center":this.titlePosition===`center`}),m=t.t({"pkt-progressbar__status":!0,"pkt-progressbar__status--center":this.statusPlacement===`center`}),h=t.t({"pkt-progressbar__status-placement--following":this.statusPlacement===`following`,"pkt-progressbar__status-placement--center":this.statusPlacement===`center`,"pkt-progressbar__status-placement--left":this.statusPlacement===`left`});return e._`<div
2
2
  ${r.n(this.progressBarRef)}
3
- id=${this.progressbarId}
4
3
  role=${this.resolvedRole}
5
4
  aria-live=${n.t(this.ariaLive||void 0)}
6
5
  aria-atomic="true"
@@ -28,4 +27,4 @@ const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),
28
27
  </span>
29
28
  </div>`:e.h}
30
29
  </div>
31
- </div>`}};e.n([e.u({type:String})],c.prototype,`ariaLabel`,void 0),e.n([e.u({type:String,reflect:!0})],c.prototype,`ariaLabelledby`,void 0),e.n([e.u({type:String,reflect:!0})],c.prototype,`ariaValueText`,void 0),e.n([e.u({type:String})],c.prototype,`ariaLive`,void 0),e.n([e.u({type:String})],c.prototype,`id`,void 0),e.n([e.u({type:String})],c.prototype,`role`,void 0),e.n([e.u({type:String})],c.prototype,`skin`,void 0),e.n([e.u({type:String})],c.prototype,`statusPlacement`,void 0),e.n([e.u({type:String})],c.prototype,`statusType`,void 0),e.n([e.u({type:String,reflect:!0})],c.prototype,`title`,void 0),e.n([e.u({type:String})],c.prototype,`titlePosition`,void 0),e.n([e.u({type:Number,reflect:!0})],c.prototype,`valueCurrent`,void 0),e.n([e.u({type:Number})],c.prototype,`valueMax`,void 0),e.n([e.u({type:Number})],c.prototype,`valueMin`,void 0),e.n([e.l()],c.prototype,`labelWidth`,void 0),e.n([e.l()],c.prototype,`progressbarId`,void 0),e.n([e.l()],c.prototype,`resolvedRole`,void 0);try{e.d(`pkt-progressbar`)(c)}catch{console.warn(`Forsøker å definere <pkt-progressbar>, men den er allerede definert`)}var l=c;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
30
+ </div>`}};e.n([e.u({type:String})],c.prototype,`ariaLabel`,void 0),e.n([e.u({type:String,reflect:!0})],c.prototype,`ariaLabelledby`,void 0),e.n([e.u({type:String,reflect:!0})],c.prototype,`ariaValueText`,void 0),e.n([e.u({type:String})],c.prototype,`ariaLive`,void 0),e.n([e.u({type:String,reflect:!0})],c.prototype,`id`,void 0),e.n([e.u({type:String})],c.prototype,`role`,void 0),e.n([e.u({type:String})],c.prototype,`skin`,void 0),e.n([e.u({type:String})],c.prototype,`statusPlacement`,void 0),e.n([e.u({type:String})],c.prototype,`statusType`,void 0),e.n([e.u({type:String,reflect:!0})],c.prototype,`title`,void 0),e.n([e.u({type:String})],c.prototype,`titlePosition`,void 0),e.n([e.u({type:Number,reflect:!0})],c.prototype,`valueCurrent`,void 0),e.n([e.u({type:Number})],c.prototype,`valueMax`,void 0),e.n([e.u({type:Number})],c.prototype,`valueMin`,void 0),e.n([e.l()],c.prototype,`labelWidth`,void 0),e.n([e.l()],c.prototype,`progressbarId`,void 0),e.n([e.l()],c.prototype,`resolvedRole`,void 0);try{e.d(`pkt-progressbar`)(c)}catch{console.warn(`Forsøker å definere <pkt-progressbar>, men den er allerede definert`)}var l=c;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -1,7 +1,7 @@
1
1
  import { _ as e, d as t, f as n, g as r, h as i, l as a, m as o, n as s, p as c, t as l, u } from "./element-mwwC2Rra.js";
2
2
  import { t as d } from "./class-map-C4hdfSfY.js";
3
+ import "./icon-JigbxxF7.js";
3
4
  import { t as f } from "./if-defined-Bebu3LXY.js";
4
- import "./icon-DmRyYNlY.js";
5
5
  import { n as p, t as m } from "./ref-CCSGk4MP.js";
6
6
  import { n as h } from "./utils-BwF4QSrq.js";
7
7
  //#region ../../node_modules/lit-html/directives/style-map.js
@@ -34,7 +34,7 @@ var g = "important", _ = " !" + g, v = n(class extends c {
34
34
  super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = "polite", this.id = h(), this.role = "progressbar", this.skin = "dark-blue", this.statusPlacement = "following", this.statusType = "none", this.title = "", this.titlePosition = "left", this.valueCurrent = 0, this.valueMax = 100, this.valueMin = 0, this.labelWidth = 0, this.progressbarId = this.id, this.resolvedRole = "progressbar", this.labelRef = m(), this.progressBarRef = m();
35
35
  }
36
36
  willUpdate(e) {
37
- super.willUpdate(e), this.hasAttribute("id") ? (this.progressbarId = this.getAttribute("id") || this.progressbarId, this.removeAttribute("id")) : this.id && (this.progressbarId = this.id);
37
+ super.willUpdate(e), this.id && (this.progressbarId = this.id);
38
38
  let t = this.getAttribute("role");
39
39
  t ? (this.resolvedRole = t, this.removeAttribute("role")) : this.role && (this.resolvedRole = this.role);
40
40
  }
@@ -58,7 +58,6 @@ var g = "important", _ = " !" + g, v = n(class extends c {
58
58
  });
59
59
  return e`<div
60
60
  ${p(this.progressBarRef)}
61
- id=${this.progressbarId}
62
61
  role=${this.resolvedRole}
63
62
  aria-live=${f(this.ariaLive || void 0)}
64
63
  aria-atomic="true"
@@ -98,7 +97,10 @@ s([u({ type: String })], y.prototype, "ariaLabel", void 0), s([u({
98
97
  })], y.prototype, "ariaLabelledby", void 0), s([u({
99
98
  type: String,
100
99
  reflect: !0
101
- })], y.prototype, "ariaValueText", void 0), s([u({ type: String })], y.prototype, "ariaLive", void 0), s([u({ type: String })], y.prototype, "id", void 0), s([u({ type: String })], y.prototype, "role", void 0), s([u({ type: String })], y.prototype, "skin", void 0), s([u({ type: String })], y.prototype, "statusPlacement", void 0), s([u({ type: String })], y.prototype, "statusType", void 0), s([u({
100
+ })], y.prototype, "ariaValueText", void 0), s([u({ type: String })], y.prototype, "ariaLive", void 0), s([u({
101
+ type: String,
102
+ reflect: !0
103
+ })], y.prototype, "id", void 0), s([u({ type: String })], y.prototype, "role", void 0), s([u({ type: String })], y.prototype, "skin", void 0), s([u({ type: String })], y.prototype, "statusPlacement", void 0), s([u({ type: String })], y.prototype, "statusType", void 0), s([u({
102
104
  type: String,
103
105
  reflect: !0
104
106
  })], y.prototype, "title", void 0), s([u({ type: String })], y.prototype, "titlePosition", void 0), s([u({
@@ -1,7 +1,7 @@
1
1
  import { _ as e, d as t, h as n, l as r, n as i, u as a } from "./element-mwwC2Rra.js";
2
2
  import { t as o } from "./class-map-C4hdfSfY.js";
3
3
  import { n as s, t as c } from "./ref-CCSGk4MP.js";
4
- import { t as l } from "./input-element-B1BntJeJ.js";
4
+ import { t as l } from "./input-element-5hsxasU3.js";
5
5
  //#region src/components/radiobutton/radiobutton.ts
6
6
  var u = class extends l {
7
7
  constructor(...e) {
@@ -1,4 +1,4 @@
1
- const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./ref-Emu5PNxk.cjs"),r=require("./input-element-W6Gklt2E.cjs");var i=class extends r.t{constructor(...e){super(...e),this.inputRef=n.t(),this.value=``,this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=null,this.type=`radio`,this.tagText=null,this.optionalTag=!1,this.requiredTag=!1,this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,t,n){e===`defaultChecked`&&(this._checked=this.defaultChecked),e===`checked`&&(this._checked=this.checked===``||this.checked===`true`||this.checked===!0),super.attributeChangedCallback(e,t,n)}render(){let r=t.t({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),i=t.t({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),a=t.t({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--disabled":this.disabled,"pkt-sr-only":this.hideLabel}),o=`pkt-tag pkt-tag--small pkt-tag--thin-text`,s=this.pktStrings.get(`forms`),c=()=>e._`
1
+ const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./ref-Emu5PNxk.cjs"),r=require("./input-element-Ctkz5fQk.cjs");var i=class extends r.t{constructor(...e){super(...e),this.inputRef=n.t(),this.value=``,this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=null,this.type=`radio`,this.tagText=null,this.optionalTag=!1,this.requiredTag=!1,this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(e,t,n){e===`defaultChecked`&&(this._checked=this.defaultChecked),e===`checked`&&(this._checked=this.checked===``||this.checked===`true`||this.checked===!0),super.attributeChangedCallback(e,t,n)}render(){let r=t.t({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),i=t.t({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),a=t.t({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--disabled":this.disabled,"pkt-sr-only":this.hideLabel}),o=`pkt-tag pkt-tag--small pkt-tag--thin-text`,s=this.pktStrings.get(`forms`),c=()=>e._`
2
2
  ${this.tagText?e._`<span class=${o+` pkt-tag--gray`}>${this.tagText}</span>`:e.h}
3
3
  ${this.optionalTag?e._`<span class=${o+` pkt-tag--blue-light`}
4
4
  >${this.optionalText??s.optional}</span
@@ -1,4 +1,4 @@
1
- const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs"),n=require("./if-defined-2mkIDgOm.cjs");require("./icon-CoBsgGUR.cjs");const r=require("./utils-63cRpWut.cjs"),i=require("./focus-modality-controller-C1ocyv2J.cjs");var a=class extends e.t{constructor(...e){super(...e),this.appearance=`local`,this.inputSize=`medium`,this.disabled=!1,this.fullwidth=!1,this.id=r.n(),this.value=``,this.focusModality=new i.t(this,`.pkt-searchinput`)}willUpdate(e){super.willUpdate(e);let t=this.getAttribute(`aria-label`);t&&(this.inputAriaLabel=t,this.removeAttribute(`aria-label`))}get suggestionsId(){return`${this.id}-suggestions`}dispatchSearch(){this.dispatchEvent(new CustomEvent(`pkt-search`,{detail:{value:this.value},bubbles:!0,composed:!0}))}onInput(e){let t=e.target;this.value=t.value}onInputKeydown(e){e.key===`Enter`&&(this.action||e.preventDefault(),this.dispatchSearch())}onSearchClick(e){this.action||e.preventDefault(),this.dispatchSearch()}onSuggestionClick(e,t,n){let r=new CustomEvent(`pkt-suggestion-click`,{detail:{index:n,suggestion:t},bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(r)||e.preventDefault()}renderSuggestion(t,n){let r=e._`
1
+ const e=require("./element-BOmr9YLv.cjs"),t=require("./class-map-Drv0_anQ.cjs");require("./icon-Dnv6LtPC.cjs");const n=require("./if-defined-2mkIDgOm.cjs"),r=require("./utils-63cRpWut.cjs"),i=require("./focus-modality-controller-C1ocyv2J.cjs");var a=class extends e.t{constructor(...e){super(...e),this.appearance=`local`,this.inputSize=`medium`,this.disabled=!1,this.fullwidth=!1,this.id=r.n(),this.value=``,this.focusModality=new i.t(this,`.pkt-searchinput`)}willUpdate(e){super.willUpdate(e);let t=this.getAttribute(`aria-label`);t&&(this.inputAriaLabel=t,this.removeAttribute(`aria-label`))}get suggestionsId(){return`${this.id}-suggestions`}dispatchSearch(){this.dispatchEvent(new CustomEvent(`pkt-search`,{detail:{value:this.value},bubbles:!0,composed:!0}))}onInput(e){let t=e.target;this.value=t.value}onInputKeydown(e){e.key===`Enter`&&(this.action||e.preventDefault(),this.dispatchSearch())}onSearchClick(e){this.action||e.preventDefault(),this.dispatchSearch()}onSuggestionClick(e,t,n){let r=new CustomEvent(`pkt-suggestion-click`,{detail:{index:n,suggestion:t},bubbles:!0,composed:!0,cancelable:!0});this.dispatchEvent(r)||e.preventDefault()}renderSuggestion(t,n){let r=e._`
2
2
  ${t.title?e._`<h3 class="pkt-searchinput__suggestion-title">${t.title}</h3>`:e.h}
3
3
  ${t.text?e._`<p class="pkt-searchinput__suggestion-text">${t.text}</p>`:e.h}
4
4
  `;return t.href?e._`<a
@@ -1,7 +1,7 @@
1
1
  import { _ as e, d as t, h as n, l as r, n as i, t as a, u as o } from "./element-mwwC2Rra.js";
2
2
  import { t as s } from "./class-map-C4hdfSfY.js";
3
+ import "./icon-JigbxxF7.js";
3
4
  import { t as c } from "./if-defined-Bebu3LXY.js";
4
- import "./icon-DmRyYNlY.js";
5
5
  import { n as l } from "./utils-BwF4QSrq.js";
6
6
  import { t as u } from "./focus-modality-controller-Dc2S-KqR.js";
7
7
  //#region src/components/searchinput/searchinput.ts
@@ -1,10 +1,10 @@
1
1
  import { _ as e, d as t, l as n, n as r, u as i } from "./element-mwwC2Rra.js";
2
- import { t as a } from "./if-defined-Bebu3LXY.js";
3
- import { r as o } from "./element-with-slot-FD826ooP.js";
2
+ import { n as a } from "./element-with-slot-DQv0cbbD.js";
3
+ import { t as o } from "./if-defined-Bebu3LXY.js";
4
4
  import { n as s, t as c } from "./ref-CCSGk4MP.js";
5
- import { t as l } from "./input-element-B1BntJeJ.js";
6
- import { t as u } from "./pkt-options-controller-sUzxHa5A.js";
7
- import { r as d } from "./input-wrapper-C1zXIKBU.js";
5
+ import { t as l } from "./input-element-5hsxasU3.js";
6
+ import { t as u } from "./pkt-options-controller-D7l18Iw0.js";
7
+ import { r as d } from "./input-wrapper-DACDx6Ie.js";
8
8
  //#region src/base-elements/options-input-element.ts
9
9
  var f = class extends l {
10
10
  constructor(...e) {
@@ -91,6 +91,7 @@ var p = class extends f {
91
91
  let t = `pkt-input pkt-input--${this.inputSize} ${this.fullwidth ? "pkt-input--fullwidth" : ""}`;
92
92
  return e`
93
93
  <pkt-input-wrapper
94
+ ${a(this, ["helptext"])}
94
95
  .strings=${this.strings}
95
96
  .size=${this.inputSize}
96
97
  ?disabled=${this.disabled}
@@ -101,27 +102,27 @@ var p = class extends f {
101
102
  ?requiredTag=${this.requiredTag}
102
103
  useWrapper=${this.useWrapper}
103
104
  .ariaDescribedby=${this.ariaDescribedby}
104
- errorMessage=${a(this.errorMessage)}
105
+ errorMessage=${o(this.errorMessage)}
105
106
  forId=${this.id + "-input"}
106
- helptext=${a(this.helptext)}
107
- helptextDropdown=${a(this.helptextDropdown)}
108
- helptextDropdownButton=${a(this.helptextDropdownButton)}
109
- label=${a(this.label)}
110
- optionalText=${a(this.optionalText)}
111
- requiredText=${a(this.requiredText)}
112
- tagText=${a(this.tagText)}
107
+ helptext=${o(this.helptext)}
108
+ helptextDropdown=${o(this.helptextDropdown)}
109
+ helptextDropdownButton=${o(this.helptextDropdownButton)}
110
+ label=${o(this.label)}
111
+ optionalText=${o(this.optionalText)}
112
+ requiredText=${o(this.requiredText)}
113
+ tagText=${o(this.tagText)}
113
114
  >
114
115
  <select
115
116
  class=${t}
116
117
  aria-invalid=${this.hasError}
117
- aria-errormessage=${a(this.hasError ? `${this.id}-input-error` : void 0)}
118
- aria-describedby=${a(d({
118
+ aria-errormessage=${o(this.hasError ? `${this.id}-input-error` : void 0)}
119
+ aria-describedby=${o(d({
119
120
  id: this.id + "-input",
120
- hasHelptext: !!this.helptext,
121
+ hasHelptext: !!this.helptext || this.hasSlotContent("helptext"),
121
122
  hasCounter: !1,
122
123
  ariaDescribedby: this.ariaDescribedby
123
124
  }))}
124
- aria-labelledby=${a(this.ariaLabelledby)}
125
+ aria-labelledby=${o(this.ariaLabelledby)}
125
126
  ?disabled=${this.disabled}
126
127
  id=${this.id + "-input"}
127
128
  name=${(this.name || this.id) + "-input"}
@@ -148,7 +149,6 @@ var p = class extends f {
148
149
  ${t.label}
149
150
  </option>`) : ""}
150
151
  </select>
151
- <div class="pkt-contents" slot="helptext">${o(this, "helptext")}</div>
152
152
  </pkt-input-wrapper>
153
153
  `;
154
154
  }
@@ -1,5 +1,6 @@
1
- const e=require("./element-BOmr9YLv.cjs"),t=require("./if-defined-2mkIDgOm.cjs"),n=require("./element-with-slot-2PHu2w7O.cjs"),r=require("./ref-Emu5PNxk.cjs"),i=require("./input-element-W6Gklt2E.cjs"),a=require("./pkt-options-controller-Dz-rYCG1.cjs"),o=require("./input-wrapper-CSPPa4uc.cjs");var s=class extends i.t{constructor(...e){super(...e),this._optionsProp=[],this._options=[]}get options(){return this._options.map(e=>({...e,selected:this.isOptionSelected(e)}))}set options(e){this._optionsProp=e,this.requestUpdate(`_optionsProp`,this._options)}isOptionSelected(e){return Array.isArray(this.value)?this.value.includes(e.value):e.value===this.value}findOptionByValue(e){return this._options.find(t=>t.value===e)}getSelectedOptions(){return this._options.filter(e=>this.isOptionSelected(e))}parseOptions(){let e=this._optionsProp.length>0,t=this.optionsController?.nodes?.length&&this.optionsController.nodes.length>0;e?this._options=this._optionsProp:t&&(this._options=this.optionsController.options)}willUpdate(e){super.willUpdate(e),this.parseOptions()}};e.n([e.u({type:Array,attribute:`options`})],s.prototype,`_optionsProp`,void 0),e.n([e.l()],s.prototype,`_options`,void 0);var c=class extends s{constructor(){super(),this.inputRef=r.t(),this.value=``,this.selectedIndex=-1,this.selectedOptions=void 0,this.optionsController=new a.t(this)}connectedCallback(){super.connectedCallback(),this.parseOptions(),this._options.forEach(e=>{e.selected&&!this.value&&(this.value=e.value)})}add(e,t){let n={value:e.value||e.text,label:e.text||e.value,selected:e.selected,disabled:e.disabled};if(t===void 0)this._options.push(n);else if(typeof t==`number`)this._options.splice(t,0,n);else{let e=t.value||t.text,r=this._options.findIndex(t=>t.value===e);r>=0?this._options.splice(r,0,n):this._options.push(n)}e.selected&&(this.value=e.value||e.text,this.selectedIndex=this._options.findIndex(e=>e.value===this.value)),this.requestUpdate()}remove(e){typeof e==`number`&&(this.selectedIndex===e&&(this.value=this._options[0]?.value||``),this._options.splice(e,1),this.requestUpdate())}item(e){return this.inputRef.value?.item(e)}namedItem(e){return this.inputRef.value?.namedItem(e)}showPicker(){this.inputRef.value&&`showPicker`in this.inputRef.value&&this.inputRef.value.showPicker()}attributeChangedCallback(e,t,n){e===`options`&&(this._options=n?JSON.parse(n):[]),e===`value`&&this.value!==t&&(this.selectedIndex=this.touched?this.returnNumberOrNull(this.inputRef.value?.selectedIndex):this._options.findIndex(e=>e.value===n),this.selectedOptions=this.inputRef.value?.selectedOptions,this.valueChanged(n,t)),super.attributeChangedCallback(e,t,n)}update(e){super.update(e),e.has(`_optionsProp`)&&this._optionsProp.length>0&&(this._options=this._optionsProp,this.requestUpdate(`_options`),!this.value&&this._options.length>0&&(this.value=this._options[0].value,this.selectedIndex=0)),e.has(`value`)&&this.value!==e.get(`value`)&&(this.selectedIndex=this.touched?this.returnNumberOrNull(this.inputRef.value?.selectedIndex):this._options.findIndex(e=>e.value===this.value),this.selectedOptions=this.inputRef.value?.selectedOptions,this.valueChanged(this.value,e.get(`value`))),e.has(`id`)&&!this.name&&this.id&&(this.name=this.id)}firstUpdated(e){super.firstUpdated(e),this.classList.add(`pkt-select`),this._optionsProp.length&&(this._options=this._optionsProp),!this.value&&this._options.length>0?(this.value=this._options[0].value,this.selectedIndex=0):this.selectedIndex=this._options.findIndex(e=>e.value===this.value),this.selectedOptions=this.inputRef.value?.selectedOptions}render(){let i=`pkt-input pkt-input--${this.inputSize} ${this.fullwidth?`pkt-input--fullwidth`:``}`;return e._`
1
+ const e=require("./element-BOmr9YLv.cjs"),t=require("./element-with-slot-D7sTqOr3.cjs"),n=require("./if-defined-2mkIDgOm.cjs"),r=require("./ref-Emu5PNxk.cjs"),i=require("./input-element-Ctkz5fQk.cjs"),a=require("./pkt-options-controller-CpEZcomb.cjs"),o=require("./input-wrapper-Cf__-4E-.cjs");var s=class extends i.t{constructor(...e){super(...e),this._optionsProp=[],this._options=[]}get options(){return this._options.map(e=>({...e,selected:this.isOptionSelected(e)}))}set options(e){this._optionsProp=e,this.requestUpdate(`_optionsProp`,this._options)}isOptionSelected(e){return Array.isArray(this.value)?this.value.includes(e.value):e.value===this.value}findOptionByValue(e){return this._options.find(t=>t.value===e)}getSelectedOptions(){return this._options.filter(e=>this.isOptionSelected(e))}parseOptions(){let e=this._optionsProp.length>0,t=this.optionsController?.nodes?.length&&this.optionsController.nodes.length>0;e?this._options=this._optionsProp:t&&(this._options=this.optionsController.options)}willUpdate(e){super.willUpdate(e),this.parseOptions()}};e.n([e.u({type:Array,attribute:`options`})],s.prototype,`_optionsProp`,void 0),e.n([e.l()],s.prototype,`_options`,void 0);var c=class extends s{constructor(){super(),this.inputRef=r.t(),this.value=``,this.selectedIndex=-1,this.selectedOptions=void 0,this.optionsController=new a.t(this)}connectedCallback(){super.connectedCallback(),this.parseOptions(),this._options.forEach(e=>{e.selected&&!this.value&&(this.value=e.value)})}add(e,t){let n={value:e.value||e.text,label:e.text||e.value,selected:e.selected,disabled:e.disabled};if(t===void 0)this._options.push(n);else if(typeof t==`number`)this._options.splice(t,0,n);else{let e=t.value||t.text,r=this._options.findIndex(t=>t.value===e);r>=0?this._options.splice(r,0,n):this._options.push(n)}e.selected&&(this.value=e.value||e.text,this.selectedIndex=this._options.findIndex(e=>e.value===this.value)),this.requestUpdate()}remove(e){typeof e==`number`&&(this.selectedIndex===e&&(this.value=this._options[0]?.value||``),this._options.splice(e,1),this.requestUpdate())}item(e){return this.inputRef.value?.item(e)}namedItem(e){return this.inputRef.value?.namedItem(e)}showPicker(){this.inputRef.value&&`showPicker`in this.inputRef.value&&this.inputRef.value.showPicker()}attributeChangedCallback(e,t,n){e===`options`&&(this._options=n?JSON.parse(n):[]),e===`value`&&this.value!==t&&(this.selectedIndex=this.touched?this.returnNumberOrNull(this.inputRef.value?.selectedIndex):this._options.findIndex(e=>e.value===n),this.selectedOptions=this.inputRef.value?.selectedOptions,this.valueChanged(n,t)),super.attributeChangedCallback(e,t,n)}update(e){super.update(e),e.has(`_optionsProp`)&&this._optionsProp.length>0&&(this._options=this._optionsProp,this.requestUpdate(`_options`),!this.value&&this._options.length>0&&(this.value=this._options[0].value,this.selectedIndex=0)),e.has(`value`)&&this.value!==e.get(`value`)&&(this.selectedIndex=this.touched?this.returnNumberOrNull(this.inputRef.value?.selectedIndex):this._options.findIndex(e=>e.value===this.value),this.selectedOptions=this.inputRef.value?.selectedOptions,this.valueChanged(this.value,e.get(`value`))),e.has(`id`)&&!this.name&&this.id&&(this.name=this.id)}firstUpdated(e){super.firstUpdated(e),this.classList.add(`pkt-select`),this._optionsProp.length&&(this._options=this._optionsProp),!this.value&&this._options.length>0?(this.value=this._options[0].value,this.selectedIndex=0):this.selectedIndex=this._options.findIndex(e=>e.value===this.value),this.selectedOptions=this.inputRef.value?.selectedOptions}render(){let i=`pkt-input pkt-input--${this.inputSize} ${this.fullwidth?`pkt-input--fullwidth`:``}`;return e._`
2
2
  <pkt-input-wrapper
3
+ ${t.n(this,[`helptext`])}
3
4
  .strings=${this.strings}
4
5
  .size=${this.inputSize}
5
6
  ?disabled=${this.disabled}
@@ -10,22 +11,22 @@ const e=require("./element-BOmr9YLv.cjs"),t=require("./if-defined-2mkIDgOm.cjs")
10
11
  ?requiredTag=${this.requiredTag}
11
12
  useWrapper=${this.useWrapper}
12
13
  .ariaDescribedby=${this.ariaDescribedby}
13
- errorMessage=${t.t(this.errorMessage)}
14
+ errorMessage=${n.t(this.errorMessage)}
14
15
  forId=${this.id+`-input`}
15
- helptext=${t.t(this.helptext)}
16
- helptextDropdown=${t.t(this.helptextDropdown)}
17
- helptextDropdownButton=${t.t(this.helptextDropdownButton)}
18
- label=${t.t(this.label)}
19
- optionalText=${t.t(this.optionalText)}
20
- requiredText=${t.t(this.requiredText)}
21
- tagText=${t.t(this.tagText)}
16
+ helptext=${n.t(this.helptext)}
17
+ helptextDropdown=${n.t(this.helptextDropdown)}
18
+ helptextDropdownButton=${n.t(this.helptextDropdownButton)}
19
+ label=${n.t(this.label)}
20
+ optionalText=${n.t(this.optionalText)}
21
+ requiredText=${n.t(this.requiredText)}
22
+ tagText=${n.t(this.tagText)}
22
23
  >
23
24
  <select
24
25
  class=${i}
25
26
  aria-invalid=${this.hasError}
26
- aria-errormessage=${t.t(this.hasError?`${this.id}-input-error`:void 0)}
27
- aria-describedby=${t.t(o.r({id:this.id+`-input`,hasHelptext:!!this.helptext,hasCounter:!1,ariaDescribedby:this.ariaDescribedby}))}
28
- aria-labelledby=${t.t(this.ariaLabelledby)}
27
+ aria-errormessage=${n.t(this.hasError?`${this.id}-input-error`:void 0)}
28
+ aria-describedby=${n.t(o.r({id:this.id+`-input`,hasHelptext:!!this.helptext||this.hasSlotContent(`helptext`),hasCounter:!1,ariaDescribedby:this.ariaDescribedby}))}
29
+ aria-labelledby=${n.t(this.ariaLabelledby)}
29
30
  ?disabled=${this.disabled}
30
31
  id=${this.id+`-input`}
31
32
  name=${(this.name||this.id)+`-input`}
@@ -44,6 +45,5 @@ const e=require("./element-BOmr9YLv.cjs"),t=require("./if-defined-2mkIDgOm.cjs")
44
45
  ${t.label}
45
46
  </option>`):``}
46
47
  </select>
47
- <div class="pkt-contents" slot="helptext">${n.r(this,`helptext`)}</div>
48
48
  </pkt-input-wrapper>
49
49
  `}returnNumberOrNull(e){return e==null||isNaN(e)?null:e}};e.n([e.u({type:String})],c.prototype,`value`,void 0);try{e.d(`pkt-select`)(c)}catch{console.warn(`Forsøker å definere <pkt-select>, men den er allerede definert`)}var l=c;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -0,0 +1,39 @@
1
+ /**
2
+ * icon.ts
3
+ *
4
+ * Type definitions for pkt-icon.
5
+ * Used by React, Elements, and typed component specs.
6
+ */
7
+ import type { Booleanish } from './booleanish';
8
+ /** Default CDN path for icons. Overridden globally by `window.pktIconPath`. */
9
+ export declare const ICON_DEFAULT_PATH = "https://punkt-cdn.oslo.kommune.no/latest/icons/";
10
+ /** Icon size modifier classes — shared runtime source for types, specs, and Preview. */
11
+ export declare const ICON_SIZE_CLASSES: readonly ['pkt-icon--small', 'pkt-icon--medium', 'pkt-icon--large'];
12
+ export type TIconSizeClass = (typeof ICON_SIZE_CLASSES)[number];
13
+ /**
14
+ * Icon props shared by React and Elements.
15
+ *
16
+ * @remarks Elements narrows `name` to `PktIconName` and takes `aria-hidden`/`aria-label`
17
+ * as string attributes.
18
+ */
19
+ export interface IPktIconBase {
20
+ name?: string;
21
+ path?: string;
22
+ ariaHidden?: Booleanish;
23
+ ariaLabel?: string;
24
+ }
25
+ /**
26
+ * Documented Icon props. `className` is not a component prop but the size class
27
+ * (`className` in React, `class` in Elements), documented so Preview can offer it.
28
+ */
29
+ export type IIconSpecProps = Pick<IPktIconBase, 'name' | 'path' | 'ariaHidden' | 'ariaLabel'> & {
30
+ className?: TIconSizeClass;
31
+ };
32
+ /**
33
+ * Default values for pkt-icon. Single source of truth for both frameworks.
34
+ * `path` is only the fallback — `window.pktIconPath` wins when set.
35
+ */
36
+ export declare const ICON_DEFAULTS: {
37
+ readonly name: '';
38
+ readonly path: "https://punkt-cdn.oslo.kommune.no/latest/icons/";
39
+ };
@@ -15,6 +15,8 @@ export { CHECKBOX_LABEL_POSITIONS, CHECKBOX_DEFAULTS } from './checkbox';
15
15
  export type { TCheckboxLabelPosition, IPktCheckboxBase, ICheckboxSpecProps } from './checkbox';
16
16
  export { CONSENT_TRIGGER_TYPES, CONSENT_TRIGGER_TYPE_OPTIONS, CONSENT_DEFAULTS } from './consent';
17
17
  export type { TPktConsentTriggerType, IConsentItem, IConsentValue, ICookieConsentEvent, TConsentDetailsMap, TCookieEventHandler, ICookieEvents, ICookieBannerApi, IPktConsentBase, IConsentSpecProps, } from './consent';
18
+ export { ICON_DEFAULT_PATH, ICON_SIZE_CLASSES, ICON_DEFAULTS } from './icon';
19
+ export type { TIconSizeClass, IPktIconBase, IIconSpecProps } from './icon';
18
20
  export { LAYOUT_DIRECTIONS } from './layout';
19
21
  export type { TLayout, TVerticalPosition, THorizontalPosition, TPosition, TPositionWithCenter, } from './layout';
20
22
  export type { THTMLButtonType, TSelectionMode } from './form';
@@ -1,10 +1,10 @@
1
1
  import { _ as e, d as t, l as n, n as r, u as i } from "./element-mwwC2Rra.js";
2
- import { t as a } from "./if-defined-Bebu3LXY.js";
3
- import { r as o, t as s } from "./element-with-slot-FD826ooP.js";
2
+ import { i as a, t as o } from "./element-with-slot-DQv0cbbD.js";
3
+ import { t as s } from "./if-defined-Bebu3LXY.js";
4
4
  import { n as c, r as l, t as u } from "./consume-BDnMAp2g.js";
5
5
  import { n as d, t as f } from "./ref-CCSGk4MP.js";
6
6
  //#region src/components/tabs/tabs-context.ts
7
- var p = l(Symbol("pkt-tabs-context")), m = class extends s {
7
+ var p = l(Symbol("pkt-tabs-context")), m = class extends o {
8
8
  constructor(...e) {
9
9
  super(...e), this.arrowNav = !0, this.disableArrowNav = !1, this.separatorIconName = "", this.separatorIconPath = "", this.tabRefs = [], this.disabledMap = {}, this.tabCount = 0, this.context = {
10
10
  useArrowNav: this.useArrowNav,
@@ -81,7 +81,7 @@ var p = l(Symbol("pkt-tabs-context")), m = class extends s {
81
81
  let t = this.useArrowNav ? "tablist" : "navigation", n = this.separatorIconName || this.separatorIconPath ? "pkt-tabs pkt-tabs--with-separator" : "pkt-tabs";
82
82
  return e`
83
83
  <div class=${n}>
84
- <div class="pkt-tabs__list" role=${t}>${o(this)}</div>
84
+ <div class="pkt-tabs__list" role=${t}>${a(this)}</div>
85
85
  </div>
86
86
  `;
87
87
  }
@@ -110,7 +110,7 @@ try {
110
110
  }
111
111
  //#endregion
112
112
  //#region src/components/tabs/tabitem.ts
113
- var h = class extends s {
113
+ var h = class extends o {
114
114
  constructor() {
115
115
  super(), this.active = !1, this.disabled = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = f();
116
116
  }
@@ -137,21 +137,21 @@ var h = class extends s {
137
137
  this.context && this.context.handleKeyUp(e, this.index);
138
138
  }
139
139
  render() {
140
- let t = this.context?.useArrowNav ?? !0, n = this.active && !this.disabled, r = [n ? "active" : "", this.disabled ? "pkt-tabs__item--disabled" : ""].filter(Boolean).join(" "), i = t ? "tab" : void 0, s = t ? n : void 0, c = this.disabled ? -1 : n || !t ? void 0 : -1, l = `pkt-icon--small ${this.icon === "check" ? "pkt-tabs__status-icon" : ""}`, u = e`
140
+ let t = this.context?.useArrowNav ?? !0, n = this.active && !this.disabled, r = [n ? "active" : "", this.disabled ? "pkt-tabs__item--disabled" : ""].filter(Boolean).join(" "), i = t ? "tab" : void 0, o = t ? n : void 0, c = this.disabled ? -1 : n || !t ? void 0 : -1, l = `pkt-icon--small ${this.icon === "check" ? "pkt-tabs__status-icon" : ""}`, u = e`
141
141
  ${this.icon ? e`<pkt-icon name=${this.icon} class=${l}></pkt-icon>` : ""}
142
- <span>${o(this)}</span>
142
+ <span>${a(this)}</span>
143
143
  ${this.tag ? e`<pkt-tag skin=${this.tagSkin} size="small">${this.tag}</pkt-tag>` : ""}
144
144
  `;
145
145
  return this.href ? e`
146
146
  <a
147
147
  ${d(this.elementRef)}
148
- href=${a(this.disabled ? void 0 : this.href)}
148
+ href=${s(this.disabled ? void 0 : this.href)}
149
149
  class="pkt-tabs__link ${r}"
150
- role=${a(i)}
151
- aria-selected=${a(s)}
152
- aria-disabled=${a(this.disabled ? "true" : void 0)}
153
- aria-controls=${a(this.controls || void 0)}
154
- tabindex=${a(c)}
150
+ role=${s(i)}
151
+ aria-selected=${s(o)}
152
+ aria-disabled=${s(this.disabled ? "true" : void 0)}
153
+ aria-controls=${s(this.controls || void 0)}
154
+ tabindex=${s(c)}
155
155
  @click=${this.handleClick}
156
156
  @keydown=${this.handleKeyDown}
157
157
  >
@@ -163,11 +163,11 @@ var h = class extends s {
163
163
  type="button"
164
164
  class="pkt-tabs__button pkt-link-button ${r}"
165
165
  ?disabled=${this.disabled}
166
- aria-disabled=${a(this.disabled ? "true" : void 0)}
167
- role=${a(i)}
168
- aria-selected=${a(s)}
169
- aria-controls=${a(this.controls || void 0)}
170
- tabindex=${a(c)}
166
+ aria-disabled=${s(this.disabled ? "true" : void 0)}
167
+ role=${s(i)}
168
+ aria-selected=${s(o)}
169
+ aria-controls=${s(this.controls || void 0)}
170
+ tabindex=${s(c)}
171
171
  @click=${this.handleClick}
172
172
  @keydown=${this.handleKeyDown}
173
173
  >