@statistikzh/leu 0.27.0 → 0.28.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.
Files changed (202) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/.storybook/main.ts +1 -1
  3. package/.storybook/preview.ts +6 -4
  4. package/.storybook/static/global.css +5 -0
  5. package/CHANGELOG.md +23 -0
  6. package/dist/{Accordion-DLsqXcK8.js → Accordion-D9kLsiBW.js} +1 -1
  7. package/dist/Accordion.d.ts +1 -1
  8. package/dist/Accordion.js +2 -2
  9. package/dist/{Button-BgNUxmo_.d.ts → Button-DcuvEVkC.d.ts} +14 -12
  10. package/dist/{Button-BSyDL_cV.js → Button-DyNVOHCd.js} +90 -82
  11. package/dist/Button.d.ts +1 -1
  12. package/dist/Button.js +4 -4
  13. package/dist/{ButtonGroup-BmSvl-Oc.js → ButtonGroup-MEh4vb5a.js} +2 -2
  14. package/dist/ButtonGroup.d.ts +1 -1
  15. package/dist/ButtonGroup.js +5 -5
  16. package/dist/{ChartWrapper-CvDvQsd5.js → ChartWrapper-DAl91BIN.js} +2 -2
  17. package/dist/ChartWrapper.d.ts +3 -3
  18. package/dist/ChartWrapper.js +3 -3
  19. package/dist/{Checkbox-Cl_X6gBJ.js → Checkbox-CGGyUW9U.js} +2 -2
  20. package/dist/Checkbox.d.ts +3 -3
  21. package/dist/Checkbox.js +3 -3
  22. package/dist/{CheckboxGroup-BKhOmZYX.js → CheckboxGroup-DXt5iMdj.js} +2 -2
  23. package/dist/CheckboxGroup.d.ts +1 -1
  24. package/dist/CheckboxGroup.js +4 -4
  25. package/dist/{Chip-McVP3N_x.js → Chip-BGs71WGH.js} +1 -1
  26. package/dist/{Chip-DLKM9P7v.d.ts → Chip-DVGjEPJE.d.ts} +1 -1
  27. package/dist/Chip.d.ts +1 -1
  28. package/dist/Chip.js +2 -2
  29. package/dist/{ChipGroup-Ta8Ht4jc.d.ts → ChipGroup-BK5BYM0X.d.ts} +2 -2
  30. package/dist/{ChipGroup-DUGavZeU.js → ChipGroup-BcGyusP-.js} +1 -1
  31. package/dist/ChipGroup.d.ts +1 -1
  32. package/dist/ChipGroup.js +3 -3
  33. package/dist/{ChipLink-BAxyQO2M.d.ts → ChipLink-BdG2o-nk.d.ts} +1 -1
  34. package/dist/ChipLink.d.ts +1 -1
  35. package/dist/ChipLink.js +2 -2
  36. package/dist/{ChipRemovable-DBjwt0CH.d.ts → ChipRemovable-CCwSQTAL.d.ts} +2 -2
  37. package/dist/ChipRemovable.d.ts +1 -1
  38. package/dist/ChipRemovable.js +3 -3
  39. package/dist/{ChipSelectable-CMJNcE4U.d.ts → ChipSelectable-BQ3VLVi5.d.ts} +1 -1
  40. package/dist/ChipSelectable.d.ts +1 -1
  41. package/dist/ChipSelectable.js +2 -2
  42. package/dist/{Dialog-BlDd4T2u.js → Dialog-BzuyL1U3.js} +2 -2
  43. package/dist/Dialog.d.ts +3 -3
  44. package/dist/Dialog.js +3 -3
  45. package/dist/{Dropdown-BLxSIe6p.js → Dropdown-plyBTM15.js} +5 -5
  46. package/dist/Dropdown.d.ts +6 -6
  47. package/dist/Dropdown.js +8 -8
  48. package/dist/{FileInput-DntYrpZ-.js → FileInput-BT3Fe-0J.js} +4 -4
  49. package/dist/FileInput.d.ts +5 -5
  50. package/dist/FileInput.js +6 -6
  51. package/dist/{Icon-Op80LrrO.d.ts → Icon-CUfh3eb3.d.ts} +1 -1
  52. package/dist/{Icon-CbZXpyHU.js → Icon-D83qesg5.js} +1 -1
  53. package/dist/Icon.d.ts +1 -1
  54. package/dist/Icon.js +2 -2
  55. package/dist/{Input-DBXX7ev8.js → Input-D7zS50oz.js} +2 -2
  56. package/dist/{Input-CeaAOB4p.d.ts → Input-fEiQvGDF.d.ts} +3 -3
  57. package/dist/Input.d.ts +1 -1
  58. package/dist/Input.js +3 -3
  59. package/dist/{LeuElement-k4RjIeoG.js → LeuElement-DQI8cqZV.js} +1 -1
  60. package/dist/{Menu-Cu8eIF1T.js → Menu-DRU1LiMM.js} +2 -2
  61. package/dist/{Menu-CQdx1ef3.d.ts → Menu-Z2b7dsB5.d.ts} +2 -2
  62. package/dist/Menu.d.ts +1 -1
  63. package/dist/Menu.js +4 -4
  64. package/dist/{MenuItem-Cs3KFhJm.js → MenuItem-DCttylRO.js} +2 -2
  65. package/dist/{MenuItem-QcgnRk_7.d.ts → MenuItem-LY4TRIho.d.ts} +2 -2
  66. package/dist/MenuItem.d.ts +1 -1
  67. package/dist/MenuItem.js +3 -3
  68. package/dist/{Message-C6Zlk_2p.js → Message-0NxnKEqw.js} +2 -2
  69. package/dist/Message.d.ts +2 -2
  70. package/dist/Message.js +3 -3
  71. package/dist/{Pagination-CqkHh-Vd.d.ts → Pagination-9eZ8WMvR.d.ts} +4 -4
  72. package/dist/{Pagination-CB2eVlXk.js → Pagination-CIy7YvWE.js} +4 -4
  73. package/dist/Pagination.d.ts +1 -1
  74. package/dist/Pagination.js +6 -6
  75. package/dist/{Placeholder-DHMexMhK.js → Placeholder-Dol_X5Hp.js} +1 -1
  76. package/dist/Placeholder.d.ts +1 -1
  77. package/dist/Placeholder.js +2 -2
  78. package/dist/{Popup-Btgm2a3D.d.ts → Popup-B5iDSLIO.d.ts} +1 -1
  79. package/dist/{Popup-8jhVy8gB.js → Popup-nJrJHGSy.js} +1 -1
  80. package/dist/Popup.d.ts +1 -1
  81. package/dist/Popup.js +2 -2
  82. package/dist/{ProgressBar-CG0_lHfS.js → ProgressBar-Dmq9veqU.js} +1 -1
  83. package/dist/ProgressBar.d.ts +1 -1
  84. package/dist/ProgressBar.js +2 -2
  85. package/dist/{Radio-DG3xqP3s.js → Radio-W5ck_IJI.js} +1 -1
  86. package/dist/Radio.d.ts +1 -1
  87. package/dist/Radio.js +2 -2
  88. package/dist/{RadioGroup-BKCp9ICX.js → RadioGroup-De5x2YCO.js} +2 -2
  89. package/dist/RadioGroup.d.ts +1 -1
  90. package/dist/RadioGroup.js +3 -3
  91. package/dist/{Range-7LrESv4K.js → Range-NCdfDkeD.js} +1 -1
  92. package/dist/Range.d.ts +1 -1
  93. package/dist/Range.js +2 -2
  94. package/dist/{ScrollTop-CJJsfniA.js → ScrollTop-DwcNIKmN.js} +3 -3
  95. package/dist/ScrollTop.d.ts +3 -3
  96. package/dist/ScrollTop.js +5 -5
  97. package/dist/{Select-CxEDXIBn.js → Select-Bpicra9q.js} +7 -8
  98. package/dist/Select.d.ts +9 -9
  99. package/dist/Select.js +9 -9
  100. package/dist/{Spinner-VhKfzI3Q.js → Spinner-BBiVZxFH.js} +1 -1
  101. package/dist/{Spinner-CrM1enM0.d.ts → Spinner-DHYaX6-Y.d.ts} +1 -1
  102. package/dist/Spinner.d.ts +1 -1
  103. package/dist/Spinner.js +2 -2
  104. package/dist/Tab-CN97q0nj.d.ts +30 -0
  105. package/dist/Tab-Ce9nrDok.js +117 -0
  106. package/dist/Tab.d.ts +2 -0
  107. package/dist/Tab.js +3 -0
  108. package/dist/TabGroup-C-cd4Wcx.js +248 -0
  109. package/dist/TabGroup.d.ts +64 -0
  110. package/dist/TabGroup.js +5 -0
  111. package/dist/TabPanel-BW1ydVBT.js +65 -0
  112. package/dist/TabPanel-DQgWP7LO.d.ts +26 -0
  113. package/dist/TabPanel.d.ts +2 -0
  114. package/dist/TabPanel.js +3 -0
  115. package/dist/{Table-rg_JCtsA.js → Table-DiYqIzBu.js} +3 -3
  116. package/dist/Table.d.ts +3 -3
  117. package/dist/Table.js +7 -7
  118. package/dist/{Tag-BROUaDAZ.js → Tag-Ct8Hhv7W.js} +1 -1
  119. package/dist/Tag.d.ts +1 -1
  120. package/dist/Tag.js +2 -2
  121. package/dist/{VisuallyHidden-OeQvhxYn.d.ts → VisuallyHidden-CB7aRJzF.d.ts} +1 -1
  122. package/dist/{VisuallyHidden-Co_txzxB.js → VisuallyHidden-CpYXyuC7.js} +1 -1
  123. package/dist/VisuallyHidden.d.ts +1 -1
  124. package/dist/VisuallyHidden.js +2 -2
  125. package/dist/index.d.ts +14 -14
  126. package/dist/index.js +30 -30
  127. package/dist/leu-accordion.js +2 -2
  128. package/dist/leu-button-group.js +5 -5
  129. package/dist/leu-button.d.ts +1 -1
  130. package/dist/leu-button.js +4 -4
  131. package/dist/leu-chart-wrapper.js +3 -3
  132. package/dist/leu-checkbox-group.js +4 -4
  133. package/dist/leu-checkbox.js +3 -3
  134. package/dist/leu-chip-group.d.ts +1 -1
  135. package/dist/leu-chip-group.js +3 -3
  136. package/dist/leu-chip-link.d.ts +1 -1
  137. package/dist/leu-chip-link.js +2 -2
  138. package/dist/leu-chip-removable.d.ts +1 -1
  139. package/dist/leu-chip-removable.js +3 -3
  140. package/dist/leu-chip-selectable.d.ts +1 -1
  141. package/dist/leu-chip-selectable.js +2 -2
  142. package/dist/leu-dialog.js +3 -3
  143. package/dist/leu-dropdown.js +8 -8
  144. package/dist/leu-file-input.js +6 -6
  145. package/dist/leu-icon.d.ts +1 -1
  146. package/dist/leu-icon.js +2 -2
  147. package/dist/leu-input.d.ts +1 -1
  148. package/dist/leu-input.js +3 -3
  149. package/dist/leu-menu-item.d.ts +1 -1
  150. package/dist/leu-menu-item.js +3 -3
  151. package/dist/leu-menu.d.ts +1 -1
  152. package/dist/leu-menu.js +4 -4
  153. package/dist/leu-message.js +3 -3
  154. package/dist/leu-pagination.d.ts +1 -1
  155. package/dist/leu-pagination.js +6 -6
  156. package/dist/leu-placeholder.js +2 -2
  157. package/dist/leu-popup.d.ts +1 -1
  158. package/dist/leu-popup.js +2 -2
  159. package/dist/leu-progress-bar.js +2 -2
  160. package/dist/leu-radio-group.js +3 -3
  161. package/dist/leu-radio.js +2 -2
  162. package/dist/leu-range.js +2 -2
  163. package/dist/leu-scroll-top.js +5 -5
  164. package/dist/leu-select.js +9 -9
  165. package/dist/leu-spinner.d.ts +1 -1
  166. package/dist/leu-spinner.js +2 -2
  167. package/dist/leu-tab-group.d.ts +10 -0
  168. package/dist/leu-tab-group.js +8 -0
  169. package/dist/leu-tab-panel.d.ts +10 -0
  170. package/dist/leu-tab-panel.js +6 -0
  171. package/dist/leu-tab.d.ts +10 -0
  172. package/dist/leu-tab.js +6 -0
  173. package/dist/leu-table.js +7 -7
  174. package/dist/leu-tag.js +2 -2
  175. package/dist/leu-visually-hidden.d.ts +1 -1
  176. package/dist/leu-visually-hidden.js +2 -2
  177. package/dist/vscode.html-custom-data.json +76 -8
  178. package/dist/vue/index.d.ts +73 -5
  179. package/dist/web-types.json +142 -17
  180. package/package.json +1 -2
  181. package/src/components/button/Button.ts +45 -30
  182. package/src/components/button/button.css +55 -54
  183. package/src/components/button/stories/button.stories.ts +17 -20
  184. package/src/components/button/test/button.test.ts +46 -0
  185. package/src/components/select/Select.ts +0 -1
  186. package/src/components/tab/Tab.ts +72 -0
  187. package/src/components/tab/TabGroup.ts +267 -0
  188. package/src/components/tab/TabPanel.ts +59 -0
  189. package/src/components/tab/leu-tab-group.ts +11 -0
  190. package/src/components/tab/leu-tab-panel.ts +11 -0
  191. package/src/components/tab/leu-tab.ts +11 -0
  192. package/src/components/tab/stories/tab.stories.ts +97 -0
  193. package/src/components/tab/tab-group.css +63 -0
  194. package/src/components/tab/tab-panel.css +10 -0
  195. package/src/components/tab/tab.css +54 -0
  196. package/src/components/tab/test/tab-group.test.ts +426 -0
  197. package/src/components/tab/test/tab-panel.test.ts +102 -0
  198. package/src/components/tab/test/tab.test.ts +139 -0
  199. package/tsconfig.json +1 -0
  200. /package/dist/{FormAssociatedMixin-Cc74LjbC.d.ts → FormAssociatedMixin-Cw7LsSUE.d.ts} +0 -0
  201. /package/dist/{LeuElement-pJFU18Xm.d.ts → LeuElement-DK1jntuu.d.ts} +0 -0
  202. /package/dist/{hasSlotController-DWPyZ52b.d.ts → hasSlotController-BjKyhJm-.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Icon-CbZXpyHU.js";
3
- import { t as LeuMenuItem } from "./MenuItem-Cs3KFhJm.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Icon-D83qesg5.js";
3
+ import { t as LeuMenuItem } from "./MenuItem-DCttylRO.js";
4
4
  //#region src/components/menu/leu-menu-item.ts
5
5
  LeuMenuItem.define("leu-menu-item");
6
6
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as LeuMenu } from "./Menu-CQdx1ef3.js";
1
+ import { t as LeuMenu } from "./Menu-Z2b7dsB5.js";
2
2
 
3
3
  //#region src/components/menu/leu-menu.d.ts
4
4
  declare global {
package/dist/leu-menu.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Icon-CbZXpyHU.js";
3
- import "./MenuItem-Cs3KFhJm.js";
4
- import { t as LeuMenu } from "./Menu-Cu8eIF1T.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Icon-D83qesg5.js";
3
+ import "./MenuItem-DCttylRO.js";
4
+ import { t as LeuMenu } from "./Menu-DRU1LiMM.js";
5
5
  //#region src/components/menu/leu-menu.ts
6
6
  LeuMenu.define("leu-menu");
7
7
  //#endregion
@@ -1,6 +1,6 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Icon-CbZXpyHU.js";
3
- import { t as LeuMessage } from "./Message-C6Zlk_2p.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Icon-D83qesg5.js";
3
+ import { t as LeuMessage } from "./Message-0NxnKEqw.js";
4
4
  //#region src/components/message/leu-message.ts
5
5
  LeuMessage.define("leu-message");
6
6
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as LeuPagination } from "./Pagination-CqkHh-Vd.js";
1
+ import { t as LeuPagination } from "./Pagination-9eZ8WMvR.js";
2
2
 
3
3
  //#region src/components/pagination/leu-pagination.d.ts
4
4
  declare global {
@@ -1,10 +1,10 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Icon-CbZXpyHU.js";
3
- import "./Spinner-VhKfzI3Q.js";
4
- import "./Button-BSyDL_cV.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Icon-D83qesg5.js";
3
+ import "./Spinner-BBiVZxFH.js";
4
+ import "./Button-DyNVOHCd.js";
5
5
  import "./FormAssociatedMixin-DLPvFtbT.js";
6
- import "./VisuallyHidden-Co_txzxB.js";
7
- import { t as LeuPagination } from "./Pagination-CB2eVlXk.js";
6
+ import "./VisuallyHidden-CpYXyuC7.js";
7
+ import { t as LeuPagination } from "./Pagination-CIy7YvWE.js";
8
8
  //#region src/components/pagination/leu-pagination.ts
9
9
  LeuPagination.define("leu-pagination");
10
10
  //#endregion
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuPlaceholder } from "./Placeholder-DHMexMhK.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuPlaceholder } from "./Placeholder-Dol_X5Hp.js";
3
3
  //#region src/components/placeholder/leu-placeholder.ts
4
4
  LeuPlaceholder.define("leu-placeholder");
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as LeuPopup } from "./Popup-Btgm2a3D.js";
1
+ import { t as LeuPopup } from "./Popup-B5iDSLIO.js";
2
2
 
3
3
  //#region src/components/popup/leu-popup.d.ts
4
4
  declare global {
package/dist/leu-popup.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuPopup } from "./Popup-8jhVy8gB.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuPopup } from "./Popup-nJrJHGSy.js";
3
3
  //#region src/components/popup/leu-popup.ts
4
4
  LeuPopup.define("leu-popup");
5
5
  //#endregion
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuProgressBar } from "./ProgressBar-CG0_lHfS.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuProgressBar } from "./ProgressBar-Dmq9veqU.js";
3
3
  //#region src/components/progress-bar/leu-progress-bar.ts
4
4
  LeuProgressBar.define("leu-progress-bar");
5
5
  //#endregion
@@ -1,6 +1,6 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Radio-DG3xqP3s.js";
3
- import { t as LeuRadioGroup } from "./RadioGroup-BKCp9ICX.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Radio-W5ck_IJI.js";
3
+ import { t as LeuRadioGroup } from "./RadioGroup-De5x2YCO.js";
4
4
  //#region src/components/radio/leu-radio-group.ts
5
5
  LeuRadioGroup.define("leu-radio-group");
6
6
  //#endregion
package/dist/leu-radio.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuRadio } from "./Radio-DG3xqP3s.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuRadio } from "./Radio-W5ck_IJI.js";
3
3
  //#region src/components/radio/leu-radio.ts
4
4
  LeuRadio.define("leu-radio");
5
5
  //#endregion
package/dist/leu-range.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuRange } from "./Range-7LrESv4K.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuRange } from "./Range-NCdfDkeD.js";
3
3
  //#region src/components/range/leu-range.ts
4
4
  LeuRange.define("leu-range");
5
5
  //#endregion
@@ -1,9 +1,9 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Icon-CbZXpyHU.js";
3
- import "./Spinner-VhKfzI3Q.js";
4
- import "./Button-BSyDL_cV.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Icon-D83qesg5.js";
3
+ import "./Spinner-BBiVZxFH.js";
4
+ import "./Button-DyNVOHCd.js";
5
5
  import "./FormAssociatedMixin-DLPvFtbT.js";
6
- import { t as LeuScrollTop } from "./ScrollTop-CJJsfniA.js";
6
+ import { t as LeuScrollTop } from "./ScrollTop-DwcNIKmN.js";
7
7
  //#region src/components/scroll-top/leu-scroll-top.ts
8
8
  LeuScrollTop.define("leu-scroll-top");
9
9
  //#endregion
@@ -1,13 +1,13 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Icon-CbZXpyHU.js";
3
- import "./Spinner-VhKfzI3Q.js";
4
- import "./Button-BSyDL_cV.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Icon-D83qesg5.js";
3
+ import "./Spinner-BBiVZxFH.js";
4
+ import "./Button-DyNVOHCd.js";
5
5
  import "./FormAssociatedMixin-DLPvFtbT.js";
6
- import "./MenuItem-Cs3KFhJm.js";
7
- import "./Menu-Cu8eIF1T.js";
8
- import "./Popup-8jhVy8gB.js";
9
- import "./Input-DBXX7ev8.js";
10
- import { t as LeuSelect } from "./Select-CxEDXIBn.js";
6
+ import "./MenuItem-DCttylRO.js";
7
+ import "./Menu-DRU1LiMM.js";
8
+ import "./Popup-nJrJHGSy.js";
9
+ import "./Input-D7zS50oz.js";
10
+ import { t as LeuSelect } from "./Select-Bpicra9q.js";
11
11
  //#region src/components/select/leu-select.ts
12
12
  LeuSelect.define("leu-select");
13
13
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as LeuSpinner } from "./Spinner-CrM1enM0.js";
1
+ import { t as LeuSpinner } from "./Spinner-DHYaX6-Y.js";
2
2
 
3
3
  //#region src/components/spinner/leu-spinner.d.ts
4
4
  declare global {
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuSpinner } from "./Spinner-VhKfzI3Q.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuSpinner } from "./Spinner-BBiVZxFH.js";
3
3
  //#region src/components/spinner/leu-spinner.ts
4
4
  LeuSpinner.define("leu-spinner");
5
5
  //#endregion
@@ -0,0 +1,10 @@
1
+ import { LeuTabGroup } from "./TabGroup.js";
2
+
3
+ //#region src/components/tab/leu-tab-group.d.ts
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ "leu-tab-group": LeuTabGroup;
7
+ }
8
+ }
9
+ //#endregion
10
+ export { LeuTabGroup };
@@ -0,0 +1,8 @@
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Tab-Ce9nrDok.js";
3
+ import "./TabPanel-BW1ydVBT.js";
4
+ import { t as LeuTabGroup } from "./TabGroup-C-cd4Wcx.js";
5
+ //#region src/components/tab/leu-tab-group.ts
6
+ LeuTabGroup.define("leu-tab-group");
7
+ //#endregion
8
+ export { LeuTabGroup };
@@ -0,0 +1,10 @@
1
+ import { t as LeuTabPanel } from "./TabPanel-DQgWP7LO.js";
2
+
3
+ //#region src/components/tab/leu-tab-panel.d.ts
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ "leu-tab-panel": LeuTabPanel;
7
+ }
8
+ }
9
+ //#endregion
10
+ export { LeuTabPanel };
@@ -0,0 +1,6 @@
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuTabPanel } from "./TabPanel-BW1ydVBT.js";
3
+ //#region src/components/tab/leu-tab-panel.ts
4
+ LeuTabPanel.define("leu-tab-panel");
5
+ //#endregion
6
+ export { LeuTabPanel };
@@ -0,0 +1,10 @@
1
+ import { t as LeuTab } from "./Tab-CN97q0nj.js";
2
+
3
+ //#region src/components/tab/leu-tab.d.ts
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ "leu-tab": LeuTab;
7
+ }
8
+ }
9
+ //#endregion
10
+ export { LeuTab };
@@ -0,0 +1,6 @@
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuTab } from "./Tab-Ce9nrDok.js";
3
+ //#region src/components/tab/leu-tab.ts
4
+ LeuTab.define("leu-tab");
5
+ //#endregion
6
+ export { LeuTab };
package/dist/leu-table.js CHANGED
@@ -1,11 +1,11 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import "./Icon-CbZXpyHU.js";
3
- import "./Spinner-VhKfzI3Q.js";
4
- import "./Button-BSyDL_cV.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import "./Icon-D83qesg5.js";
3
+ import "./Spinner-BBiVZxFH.js";
4
+ import "./Button-DyNVOHCd.js";
5
5
  import "./FormAssociatedMixin-DLPvFtbT.js";
6
- import "./VisuallyHidden-Co_txzxB.js";
7
- import "./Pagination-CB2eVlXk.js";
8
- import { t as LeuTable } from "./Table-rg_JCtsA.js";
6
+ import "./VisuallyHidden-CpYXyuC7.js";
7
+ import "./Pagination-CIy7YvWE.js";
8
+ import { t as LeuTable } from "./Table-DiYqIzBu.js";
9
9
  //#region src/components/table/leu-table.ts
10
10
  LeuTable.define("leu-table");
11
11
  //#endregion
package/dist/leu-tag.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuTag } from "./Tag-BROUaDAZ.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuTag } from "./Tag-Ct8Hhv7W.js";
3
3
  //#region src/components/tag/leu-tag.ts
4
4
  LeuTag.define("leu-tag");
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as LeuVisuallyHidden } from "./VisuallyHidden-OeQvhxYn.js";
1
+ import { t as LeuVisuallyHidden } from "./VisuallyHidden-CB7aRJzF.js";
2
2
 
3
3
  //#region src/components/visually-hidden/leu-visually-hidden.d.ts
4
4
  declare global {
@@ -1,5 +1,5 @@
1
- import "./LeuElement-k4RjIeoG.js";
2
- import { t as LeuVisuallyHidden } from "./VisuallyHidden-Co_txzxB.js";
1
+ import "./LeuElement-DQI8cqZV.js";
2
+ import { t as LeuVisuallyHidden } from "./VisuallyHidden-CpYXyuC7.js";
3
3
  //#region src/components/visually-hidden/leu-visually-hidden.ts
4
4
  LeuVisuallyHidden.define("leu-visually-hidden");
5
5
  //#endregion
@@ -59,7 +59,7 @@
59
59
  },
60
60
  {
61
61
  "name": "type",
62
- "description": "The `type` of the underlying button element.",
62
+ "description": "The `type` of the underlying button element. Ignored when `href` is set.",
63
63
  "values": [
64
64
  { "name": "button" },
65
65
  { "name": "submit" },
@@ -68,12 +68,27 @@
68
68
  },
69
69
  {
70
70
  "name": "componentRole",
71
- "description": "The `role` of the underlying button element.",
71
+ "description": "The `role` of the underlying button element. Ignored when `href` is set.",
72
72
  "values": []
73
73
  },
74
+ {
75
+ "name": "href",
76
+ "description": "If set, renders the button as an <a> element instead of a <button> with the provided href.",
77
+ "values": []
78
+ },
79
+ {
80
+ "name": "target",
81
+ "description": "Tells the browser where to display the linked URL. Only used when `href` is set.",
82
+ "values": [
83
+ { "name": "_blank" },
84
+ { "name": "_parent" },
85
+ { "name": "_self" },
86
+ { "name": "_top" }
87
+ ]
88
+ },
74
89
  {
75
90
  "name": "disabled",
76
- "description": "Whether the button is disabled or not.",
91
+ "description": "Whether the button is disabled or not. Ignored when `href` is set.",
77
92
  "values": []
78
93
  },
79
94
  {
@@ -96,11 +111,6 @@
96
111
  "description": "Whether the button is expanded or not.\nOnly has an effect on the variant `ghost` to show an expanding icon.\nIf the property is not set, the icon will not be shown.\nIf it is set, the icon will either show an expanded or collapsed state.",
97
112
  "values": [{ "name": "true" }, { "name": "false" }]
98
113
  },
99
- {
100
- "name": "fluid",
101
- "description": "Alters the shape of the button to be full width of its parent container",
102
- "values": []
103
- },
104
114
  {
105
115
  "name": "loading",
106
116
  "description": "Replaces the content with a spinner",
@@ -859,6 +869,64 @@
859
869
  }
860
870
  ]
861
871
  },
872
+ {
873
+ "name": "leu-tab",
874
+ "description": "Tab Button.\n---\n\n\n### **Events:**\n - **leu:tab-select**",
875
+ "attributes": [
876
+ {
877
+ "name": "name",
878
+ "description": "Name to link Button and Panel together",
879
+ "values": []
880
+ },
881
+ { "name": "active", "description": "Is active", "values": [] }
882
+ ],
883
+ "references": [
884
+ {
885
+ "name": "Documentation",
886
+ "url": "https://statistikzh.github.io/leu/?path=/story/tab"
887
+ }
888
+ ]
889
+ },
890
+ {
891
+ "name": "leu-tab-group",
892
+ "description": "Tab Group\n---\n\n\n### **Methods:**\n \n\n### **Slots:**\n - **tabs** - Slot for the leu-tab elements\n- **panels** - Slot for the leu-tab-panel elements",
893
+ "attributes": [
894
+ {
895
+ "name": "label",
896
+ "description": "Label for the tab list, used for accessibility.\nContent will not be visible on the page, but should be provided for screen readers.",
897
+ "values": []
898
+ },
899
+ {
900
+ "name": "active",
901
+ "description": "Name of the active/selected tab and panel. Has to match the name property of a leu-tab and leu-tab-panel.",
902
+ "values": []
903
+ }
904
+ ],
905
+ "references": [
906
+ {
907
+ "name": "Documentation",
908
+ "url": "https://statistikzh.github.io/leu/?path=/story/tab-group"
909
+ }
910
+ ]
911
+ },
912
+ {
913
+ "name": "leu-tab-panel",
914
+ "description": "Tab Panel\n---\n\n\n### **Events:**\n - **leu:show-tab-panel** - Fired when a tab panel is shown",
915
+ "attributes": [
916
+ {
917
+ "name": "name",
918
+ "description": "Name of the tab. Apply the same name to the corresponding tab button to link them together.\nHas to be unique within the tab component.",
919
+ "values": []
920
+ },
921
+ { "name": "active", "values": [] }
922
+ ],
923
+ "references": [
924
+ {
925
+ "name": "Documentation",
926
+ "url": "https://statistikzh.github.io/leu/?path=/story/tab-panel"
927
+ }
928
+ ]
929
+ },
862
930
  {
863
931
  "name": "leu-table",
864
932
  "description": "\n---\n",
@@ -28,6 +28,9 @@ import type { LeuRange, CustomEvent } from "../Range.js";
28
28
  import type { LeuScrollTop } from "../ScrollTop.js";
29
29
  import type { LeuSelect } from "../Select.js";
30
30
  import type { LeuSpinner } from "../Spinner.js";
31
+ import type { LeuTab, CustomEvent } from "../Tab.js";
32
+ import type { LeuTabGroup } from "../TabGroup.js";
33
+ import type { LeuTabPanel, CustomEvent } from "../TabPanel.js";
31
34
  import type { LeuTable } from "../Table.js";
32
35
  import type { LeuTag } from "../Tag.js";
33
36
  import type { LeuVisuallyHidden } from "../VisuallyHidden.js";
@@ -51,11 +54,15 @@ Use it to provide a label when only an icon is visible. */
51
54
  size?: LeuButton["size"];
52
55
  /** The visual variant of the button. */
53
56
  variant?: LeuButton["variant"];
54
- /** The `type` of the underlying button element. */
57
+ /** The `type` of the underlying button element. Ignored when `href` is set. */
55
58
  type?: LeuButton["type"];
56
- /** The `role` of the underlying button element. */
59
+ /** The `role` of the underlying button element. Ignored when `href` is set. */
57
60
  componentRole?: LeuButton["componentRole"];
58
- /** Whether the button is disabled or not. */
61
+ /** If set, renders the button as an <a> element instead of a <button> with the provided href. */
62
+ href?: LeuButton["href"];
63
+ /** Tells the browser where to display the linked URL. Only used when `href` is set. */
64
+ target?: LeuButton["target"];
65
+ /** Whether the button is disabled or not. Ignored when `href` is set. */
59
66
  disabled?: LeuButton["disabled"];
60
67
  /** Whether the button should be round.
61
68
  Can only be applied when the button contains an icon without a visible label. */
@@ -70,8 +77,6 @@ Only has an effect on the variant `ghost` to show an expanding icon.
70
77
  If the property is not set, the icon will not be shown.
71
78
  If it is set, the icon will either show an expanded or collapsed state. */
72
79
  expanded?: LeuButton["expanded"];
73
- /** Alters the shape of the button to be full width of its parent container */
74
- fluid?: LeuButton["fluid"];
75
80
  /** Replaces the content with a spinner */
76
81
  loading?: LeuButton["loading"];
77
82
  };
@@ -450,6 +455,35 @@ finds all the options that match the given values and selects them. */
450
455
 
451
456
  type LeuSpinnerProps = {};
452
457
 
458
+ type LeuTabProps = {
459
+ /** Name to link Button and Panel together */
460
+ name?: LeuTab["name"];
461
+ /** Is active */
462
+ active?: LeuTab["active"];
463
+
464
+ /** */
465
+ "onleu:tab-select"?: (e: CustomEvent<CustomEvent>) => void;
466
+ };
467
+
468
+ type LeuTabGroupProps = {
469
+ /** Label for the tab list, used for accessibility.
470
+ Content will not be visible on the page, but should be provided for screen readers. */
471
+ label?: LeuTabGroup["label"];
472
+ /** Name of the active/selected tab and panel. Has to match the name property of a leu-tab and leu-tab-panel. */
473
+ active?: LeuTabGroup["active"];
474
+ };
475
+
476
+ type LeuTabPanelProps = {
477
+ /** Name of the tab. Apply the same name to the corresponding tab button to link them together.
478
+ Has to be unique within the tab component. */
479
+ name?: LeuTabPanel["name"];
480
+ /** */
481
+ active?: LeuTabPanel["active"];
482
+
483
+ /** Fired when a tab panel is shown */
484
+ "onleu:show-tab-panel"?: (e: CustomEvent<CustomEvent>) => void;
485
+ };
486
+
453
487
  type LeuTableProps = {
454
488
  /** */
455
489
  columns?: LeuTable["columns"];
@@ -813,6 +847,40 @@ export type CustomElements = {
813
847
  */
814
848
  "leu-spinner": DefineComponent<LeuSpinnerProps>;
815
849
 
850
+ /**
851
+ * Tab Button.
852
+ * ---
853
+ *
854
+ *
855
+ * ### **Events:**
856
+ * - **leu:tab-select**
857
+ */
858
+ "leu-tab": DefineComponent<LeuTabProps>;
859
+
860
+ /**
861
+ * Tab Group
862
+ * ---
863
+ *
864
+ *
865
+ * ### **Methods:**
866
+ *
867
+ *
868
+ * ### **Slots:**
869
+ * - **tabs** - Slot for the leu-tab elements
870
+ * - **panels** - Slot for the leu-tab-panel elements
871
+ */
872
+ "leu-tab-group": DefineComponent<LeuTabGroupProps>;
873
+
874
+ /**
875
+ * Tab Panel
876
+ * ---
877
+ *
878
+ *
879
+ * ### **Events:**
880
+ * - **leu:show-tab-panel** - Fired when a tab panel is shown
881
+ */
882
+ "leu-tab-panel": DefineComponent<LeuTabPanelProps>;
883
+
816
884
  /**
817
885
  *
818
886
  * ---