@statistikzh/leu 0.24.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +1 -8
- package/.release-please-manifest.json +1 -1
- package/.storybook/main.ts +18 -53
- package/.storybook/manager.ts +1 -4
- package/.storybook/preview.ts +23 -16
- package/.storybook/theme.ts +1 -1
- package/CHANGELOG.md +21 -0
- package/dist/Accordion-CDNyrB8d.js +241 -0
- package/dist/Accordion.d.ts +44 -44
- package/dist/Accordion.js +2 -249
- package/dist/Button-DSGPIcjm.d.ts +93 -0
- package/dist/Button-EdS9xr2J.js +524 -0
- package/dist/Button.d.ts +2 -85
- package/dist/Button.js +4 -504
- package/dist/ButtonGroup-BQqf8o_d.js +88 -0
- package/dist/ButtonGroup.d.ts +19 -19
- package/dist/ButtonGroup.js +5 -101
- package/dist/ChartWrapper-LiNHTNRw.js +158 -0
- package/dist/ChartWrapper.d.ts +26 -26
- package/dist/ChartWrapper.js +3 -163
- package/dist/Checkbox-BtDWmPab.js +198 -0
- package/dist/Checkbox.d.ts +35 -27
- package/dist/Checkbox.js +4 -157
- package/dist/CheckboxGroup-C8MbwW9u.js +81 -0
- package/dist/CheckboxGroup.d.ts +18 -18
- package/dist/CheckboxGroup.js +5 -82
- package/dist/Chip-Ch09jjYi.js +171 -0
- package/dist/Chip-DLKM9P7v.d.ts +18 -0
- package/dist/Chip.d.ts +2 -18
- package/dist/Chip.js +2 -166
- package/dist/ChipGroup-PvqVW-tm.js +125 -0
- package/dist/ChipGroup-Ta8Ht4jc.d.ts +42 -0
- package/dist/ChipGroup.d.ts +2 -43
- package/dist/ChipGroup.js +3 -132
- package/dist/ChipLink-BAxyQO2M.d.ts +17 -0
- package/dist/ChipLink.d.ts +2 -18
- package/dist/ChipLink.js +28 -28
- package/dist/ChipRemovable-DBjwt0CH.d.ts +25 -0
- package/dist/ChipRemovable.d.ts +2 -26
- package/dist/ChipRemovable.js +42 -43
- package/dist/ChipSelectable-CMJNcE4U.d.ts +32 -0
- package/dist/ChipSelectable.d.ts +2 -33
- package/dist/ChipSelectable.js +63 -72
- package/dist/Dialog-CV1JTkCn.js +241 -0
- package/dist/Dialog.d.ts +28 -28
- package/dist/Dialog.js +3 -240
- package/dist/Dropdown-DpFdFbA1.js +155 -0
- package/dist/Dropdown.d.ts +39 -41
- package/dist/Dropdown.js +8 -157
- package/dist/FileInput-5apX17JT.js +344 -0
- package/dist/FileInput.d.ts +56 -57
- package/dist/FileInput.js +6 -383
- package/dist/FormAssociatedMixin-BbFlza53.js +58 -0
- package/dist/FormAssociatedMixin-Cc74LjbC.d.ts +22 -0
- package/dist/Icon-DhAvH0XM.js +186 -0
- package/dist/Icon-Op80LrrO.d.ts +151 -0
- package/dist/Icon.d.ts +2 -4
- package/dist/Icon.js +2 -188
- package/dist/Input-CnEz-2dK.js +610 -0
- package/dist/Input-D2THgo7c.d.ts +169 -0
- package/dist/Input.d.ts +2 -166
- package/dist/Input.js +4 -626
- package/dist/LeuElement-B7NJzWwP.js +46 -0
- package/dist/LeuElement-pJFU18Xm.d.ts +11 -0
- package/dist/Menu-CQdx1ef3.d.ts +43 -0
- package/dist/Menu-DpiheIPk.js +136 -0
- package/dist/Menu.d.ts +2 -44
- package/dist/Menu.js +4 -157
- package/dist/MenuItem-CZTqGg5R.js +219 -0
- package/dist/MenuItem-QcgnRk_7.d.ts +63 -0
- package/dist/MenuItem.d.ts +2 -64
- package/dist/MenuItem.js +3 -227
- package/dist/Message-J4Kj7yHE.js +252 -0
- package/dist/Message.d.ts +53 -53
- package/dist/Message.js +3 -267
- package/dist/Pagination-Be8TcBoC.d.ts +76 -0
- package/dist/Pagination-CWqgusWZ.js +226 -0
- package/dist/Pagination.d.ts +2 -76
- package/dist/Pagination.js +6 -240
- package/dist/Placeholder-DMN6sMbp.js +95 -0
- package/dist/Placeholder.d.ts +15 -15
- package/dist/Placeholder.js +2 -89
- package/dist/Popup-Btgm2a3D.d.ts +61 -0
- package/dist/Popup-JQjuj26v.js +195 -0
- package/dist/Popup.d.ts +2 -62
- package/dist/Popup.js +2 -233
- package/dist/ProgressBar-CzN3fqiH.js +167 -0
- package/dist/ProgressBar.d.ts +21 -21
- package/dist/ProgressBar.js +2 -165
- package/dist/Radio-CX8aCsff.js +160 -0
- package/dist/Radio.d.ts +22 -22
- package/dist/Radio.js +2 -151
- package/dist/RadioGroup-CgEWQnC4.js +171 -0
- package/dist/RadioGroup.d.ts +35 -35
- package/dist/RadioGroup.js +3 -182
- package/dist/Range-DoW_ZdKm.js +496 -0
- package/dist/Range.d.ts +112 -112
- package/dist/Range.js +2 -586
- package/dist/ScrollTop-DxChetWq.js +130 -0
- package/dist/ScrollTop.d.ts +21 -21
- package/dist/ScrollTop.js +5 -118
- package/dist/Select-BCx79gOH.js +618 -0
- package/dist/Select.d.ts +130 -132
- package/dist/Select.js +9 -675
- package/dist/Spinner-CMo_o6Fy.d.ts +14 -0
- package/dist/Spinner-DJR4gv3Y.js +56 -0
- package/dist/Spinner.d.ts +2 -14
- package/dist/Spinner.js +2 -52
- package/dist/Table-DZz1ic3j.js +392 -0
- package/dist/Table.d.ts +61 -63
- package/dist/Table.js +7 -427
- package/dist/Tag-DsZS_8pl.js +76 -0
- package/dist/Tag.d.ts +8 -8
- package/dist/Tag.js +2 -74
- package/dist/VisuallyHidden-BkllVjlz.js +29 -0
- package/dist/VisuallyHidden-OeQvhxYn.d.ts +13 -0
- package/dist/VisuallyHidden.d.ts +2 -13
- package/dist/VisuallyHidden.js +2 -25
- package/dist/decorate-DwpAc4D0.js +9 -0
- package/dist/hasSlotController-BLtZurRh.d.ts +19 -0
- package/dist/hasSlotController-DjdfnOQp.js +38 -0
- package/dist/index.d.ts +33 -30
- package/dist/index.js +35 -45
- package/dist/leu-accordion.d.ts +7 -10
- package/dist/leu-accordion.js +4 -8
- package/dist/leu-button-group.d.ts +7 -10
- package/dist/leu-button-group.js +7 -12
- package/dist/leu-button.d.ts +7 -11
- package/dist/leu-button.js +6 -11
- package/dist/leu-chart-wrapper.d.ts +7 -12
- package/dist/leu-chart-wrapper.js +5 -9
- package/dist/leu-checkbox-group.d.ts +7 -10
- package/dist/leu-checkbox-group.js +7 -10
- package/dist/leu-checkbox.d.ts +7 -11
- package/dist/leu-checkbox.js +6 -8
- package/dist/leu-chip-group.d.ts +7 -12
- package/dist/leu-chip-group.js +5 -10
- package/dist/leu-chip-link.d.ts +7 -11
- package/dist/leu-chip-link.js +5 -8
- package/dist/leu-chip-removable.d.ts +7 -12
- package/dist/leu-chip-removable.js +6 -9
- package/dist/leu-chip-selectable.d.ts +7 -11
- package/dist/leu-chip-selectable.js +5 -8
- package/dist/leu-dialog.d.ts +7 -13
- package/dist/leu-dialog.js +5 -11
- package/dist/leu-dropdown.d.ts +7 -18
- package/dist/leu-dropdown.js +10 -17
- package/dist/leu-file-input.d.ts +7 -13
- package/dist/leu-file-input.js +8 -13
- package/dist/leu-icon.d.ts +7 -10
- package/dist/leu-icon.js +4 -7
- package/dist/leu-input.d.ts +7 -12
- package/dist/leu-input.js +6 -12
- package/dist/leu-menu-item.d.ts +7 -11
- package/dist/leu-menu-item.js +5 -9
- package/dist/leu-menu.d.ts +7 -12
- package/dist/leu-menu.js +6 -10
- package/dist/leu-message.d.ts +7 -11
- package/dist/leu-message.js +5 -10
- package/dist/leu-pagination.d.ts +7 -13
- package/dist/leu-pagination.js +8 -14
- package/dist/leu-placeholder.d.ts +7 -10
- package/dist/leu-placeholder.js +4 -5
- package/dist/leu-popup.d.ts +7 -11
- package/dist/leu-popup.js +4 -8
- package/dist/leu-progress-bar.d.ts +7 -10
- package/dist/leu-progress-bar.js +4 -8
- package/dist/leu-radio-group.d.ts +7 -10
- package/dist/leu-radio-group.js +5 -9
- package/dist/leu-radio.d.ts +7 -10
- package/dist/leu-radio.js +4 -7
- package/dist/leu-range.d.ts +7 -10
- package/dist/leu-range.js +4 -9
- package/dist/leu-scroll-top.d.ts +7 -12
- package/dist/leu-scroll-top.js +7 -13
- package/dist/leu-select.d.ts +7 -19
- package/dist/leu-select.js +11 -19
- package/dist/leu-spinner.d.ts +7 -10
- package/dist/leu-spinner.js +4 -5
- package/dist/leu-table.d.ts +7 -14
- package/dist/leu-table.js +9 -17
- package/dist/leu-tag.d.ts +7 -10
- package/dist/leu-tag.js +4 -7
- package/dist/leu-visually-hidden.d.ts +7 -10
- package/dist/leu-visually-hidden.js +4 -5
- package/dist/theme.css +1 -0
- package/dist/utils-hfk5Nwy8.js +28 -0
- package/dist/vscode.html-custom-data.json +43 -49
- package/dist/vue/index.d.ts +54 -60
- package/dist/web-types.json +89 -105
- package/eslint.config.mjs +79 -0
- package/package.json +45 -62
- package/scripts/generate-component/templates/stories/[name].stories.ts +1 -1
- package/src/components/accordion/Accordion.ts +1 -1
- package/src/components/button/Button.ts +62 -3
- package/src/components/button/test/button.test.ts +185 -7
- package/src/components/button-group/ButtonGroup.ts +1 -6
- package/src/components/button-group/stories/button-group.stories.ts +1 -1
- package/src/components/chart-wrapper/ChartWrapper.ts +1 -1
- package/src/components/chart-wrapper/stories/chart-wrapper.stories.ts +1 -1
- package/src/components/checkbox/Checkbox.ts +76 -12
- package/src/components/checkbox/CheckboxGroup.ts +1 -1
- package/src/components/checkbox/checkbox.css +4 -0
- package/src/components/checkbox/stories/checkbox.stories.ts +26 -3
- package/src/components/checkbox/test/checkbox.test.ts +147 -3
- package/src/components/chip/Chip.ts +1 -1
- package/src/components/chip/ChipGroup.ts +2 -2
- package/src/components/chip/stories/chip-removable.stories.ts +1 -1
- package/src/components/chip/test/chip-removable.test.ts +2 -2
- package/src/components/dialog/Dialog.ts +1 -1
- package/src/components/dialog/stories/dialog.stories.ts +0 -2
- package/src/components/dropdown/Dropdown.ts +1 -1
- package/src/components/dropdown/stories/dropdown.stories.ts +1 -1
- package/src/components/file-input/FileInput.ts +18 -20
- package/src/components/file-input/stories/file-input.stories.ts +2 -2
- package/src/components/file-input/test/file-input.test.ts +14 -1
- package/src/components/icon/Icon.ts +1 -1
- package/src/components/input/Input.ts +18 -7
- package/src/components/input/stories/input.stories.ts +24 -21
- package/src/components/menu/Menu.ts +4 -4
- package/src/components/menu/MenuItem.ts +1 -1
- package/src/components/menu/stories/menu-item.stories.ts +0 -2
- package/src/components/message/Message.ts +1 -1
- package/src/components/message/stories/message.stories.ts +2 -2
- package/src/components/pagination/Pagination.ts +1 -1
- package/src/components/pagination/stories/pagination.stories.ts +3 -3
- package/src/components/pagination/test/pagination.test.ts +1 -1
- package/src/components/placeholder/Placeholder.ts +1 -1
- package/src/components/placeholder/stories/placeholder.stories.ts +1 -1
- package/src/components/popup/Popup.ts +1 -1
- package/src/components/progress-bar/ProgressBar.ts +1 -1
- package/src/components/progress-bar/stories/progress-bar.stories.ts +1 -1
- package/src/components/radio/Radio.ts +1 -1
- package/src/components/radio/RadioGroup.ts +5 -5
- package/src/components/range/Range.ts +1 -1
- package/src/components/range/stories/range.stories.ts +2 -2
- package/src/components/scroll-top/ScrollTop.ts +1 -1
- package/src/components/scroll-top/scroll-top.css +20 -4
- package/src/components/select/Select.ts +2 -5
- package/src/components/spinner/Spinner.ts +1 -1
- package/src/components/table/Table.ts +1 -1
- package/src/components/tag/Tag.ts +1 -1
- package/src/components/tag/stories/tag.stories.ts +1 -1
- package/src/components/visually-hidden/VisuallyHidden.ts +1 -1
- package/src/docs/contributing.mdx +1 -1
- package/src/docs/installation.mdx +1 -1
- package/src/docs/theme.mdx +1 -1
- package/src/docs/usage.mdx +1 -1
- package/src/global.d.ts +1 -1
- package/src/lib/LeuElement.ts +1 -1
- package/src/lib/mixins/FormAssociatedMixin.ts +115 -0
- package/src/lib/styleMap.ts +1 -1
- package/src/styles/theme.css +1 -0
- package/tsdown.config.ts +35 -0
- package/web-test-runner.config.mjs +20 -2
- package/.eslintrc.json +0 -57
- package/dist/Icon.d-itcQ94ym.d.ts +0 -151
- package/dist/LeuElement-jrR2M5pZ.js +0 -42
- package/dist/LeuElement.d-BevHqLUu.d.ts +0 -10
- package/dist/_tslib-CNEFicEt.js +0 -30
- package/dist/components/accordion/Accordion.d.ts +0 -49
- package/dist/components/accordion/Accordion.d.ts.map +0 -1
- package/dist/components/accordion/leu-accordion.d.ts +0 -8
- package/dist/components/accordion/leu-accordion.d.ts.map +0 -1
- package/dist/components/accordion/stories/accordion.stories.d.ts +0 -26
- package/dist/components/accordion/stories/accordion.stories.d.ts.map +0 -1
- package/dist/components/accordion/test/accordion.test.d.ts +0 -2
- package/dist/components/accordion/test/accordion.test.d.ts.map +0 -1
- package/dist/components/button/Button.d.ts +0 -81
- package/dist/components/button/Button.d.ts.map +0 -1
- package/dist/components/button/leu-button.d.ts +0 -8
- package/dist/components/button/leu-button.d.ts.map +0 -1
- package/dist/components/button/stories/button.stories.d.ts +0 -19
- package/dist/components/button/stories/button.stories.d.ts.map +0 -1
- package/dist/components/button/test/button.test.d.ts +0 -3
- package/dist/components/button/test/button.test.d.ts.map +0 -1
- package/dist/components/button-group/ButtonGroup.d.ts +0 -25
- package/dist/components/button-group/ButtonGroup.d.ts.map +0 -1
- package/dist/components/button-group/leu-button-group.d.ts +0 -8
- package/dist/components/button-group/leu-button-group.d.ts.map +0 -1
- package/dist/components/button-group/stories/button-group.stories.d.ts +0 -15
- package/dist/components/button-group/stories/button-group.stories.d.ts.map +0 -1
- package/dist/components/button-group/test/button-group.test.d.ts +0 -3
- package/dist/components/button-group/test/button-group.test.d.ts.map +0 -1
- package/dist/components/chart-wrapper/ChartWrapper.d.ts +0 -34
- package/dist/components/chart-wrapper/ChartWrapper.d.ts.map +0 -1
- package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts +0 -8
- package/dist/components/chart-wrapper/leu-chart-wrapper.d.ts.map +0 -1
- package/dist/components/chart-wrapper/stories/chart-wrapper.stories.d.ts +0 -47
- package/dist/components/chart-wrapper/stories/chart-wrapper.stories.d.ts.map +0 -1
- package/dist/components/chart-wrapper/test/chart-wrapper.test.d.ts +0 -2
- package/dist/components/chart-wrapper/test/chart-wrapper.test.d.ts.map +0 -1
- package/dist/components/checkbox/Checkbox.d.ts +0 -28
- package/dist/components/checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/CheckboxGroup.d.ts +0 -22
- package/dist/components/checkbox/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/checkbox/leu-checkbox-group.d.ts +0 -8
- package/dist/components/checkbox/leu-checkbox-group.d.ts.map +0 -1
- package/dist/components/checkbox/leu-checkbox.d.ts +0 -8
- package/dist/components/checkbox/leu-checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/stories/checkbox-group.stories.d.ts +0 -29
- package/dist/components/checkbox/stories/checkbox-group.stories.d.ts.map +0 -1
- package/dist/components/checkbox/stories/checkbox.stories.d.ts +0 -22
- package/dist/components/checkbox/stories/checkbox.stories.d.ts.map +0 -1
- package/dist/components/checkbox/test/checkbox-group.test.d.ts +0 -3
- package/dist/components/checkbox/test/checkbox-group.test.d.ts.map +0 -1
- package/dist/components/checkbox/test/checkbox.test.d.ts +0 -2
- package/dist/components/checkbox/test/checkbox.test.d.ts.map +0 -1
- package/dist/components/chip/Chip.d.ts +0 -15
- package/dist/components/chip/Chip.d.ts.map +0 -1
- package/dist/components/chip/ChipGroup.d.ts +0 -38
- package/dist/components/chip/ChipGroup.d.ts.map +0 -1
- package/dist/components/chip/ChipLink.d.ts +0 -13
- package/dist/components/chip/ChipLink.d.ts.map +0 -1
- package/dist/components/chip/ChipRemovable.d.ts +0 -21
- package/dist/components/chip/ChipRemovable.d.ts.map +0 -1
- package/dist/components/chip/ChipSelectable.d.ts +0 -28
- package/dist/components/chip/ChipSelectable.d.ts.map +0 -1
- package/dist/components/chip/exports.d.ts +0 -5
- package/dist/components/chip/exports.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-group.d.ts +0 -8
- package/dist/components/chip/leu-chip-group.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-link.d.ts +0 -8
- package/dist/components/chip/leu-chip-link.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-removable.d.ts +0 -8
- package/dist/components/chip/leu-chip-removable.d.ts.map +0 -1
- package/dist/components/chip/leu-chip-selectable.d.ts +0 -8
- package/dist/components/chip/leu-chip-selectable.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-group.stories.d.ts +0 -40
- package/dist/components/chip/stories/chip-group.stories.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-link.stories.d.ts +0 -27
- package/dist/components/chip/stories/chip-link.stories.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-removable.stories.d.ts +0 -21
- package/dist/components/chip/stories/chip-removable.stories.d.ts.map +0 -1
- package/dist/components/chip/stories/chip-selectable.stories.d.ts +0 -35
- package/dist/components/chip/stories/chip-selectable.stories.d.ts.map +0 -1
- package/dist/components/chip/test/chip-group.test.d.ts +0 -4
- package/dist/components/chip/test/chip-group.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip-link.test.d.ts +0 -2
- package/dist/components/chip/test/chip-link.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip-removable.test.d.ts +0 -2
- package/dist/components/chip/test/chip-removable.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip-selectable.test.d.ts +0 -2
- package/dist/components/chip/test/chip-selectable.test.d.ts.map +0 -1
- package/dist/components/chip/test/chip.test.d.ts +0 -2
- package/dist/components/chip/test/chip.test.d.ts.map +0 -1
- package/dist/components/dialog/Dialog.d.ts +0 -29
- package/dist/components/dialog/Dialog.d.ts.map +0 -1
- package/dist/components/dialog/leu-dialog.d.ts +0 -8
- package/dist/components/dialog/leu-dialog.d.ts.map +0 -1
- package/dist/components/dialog/stories/dialog.stories.d.ts +0 -19
- package/dist/components/dialog/stories/dialog.stories.d.ts.map +0 -1
- package/dist/components/dialog/test/dialog.test.d.ts +0 -2
- package/dist/components/dialog/test/dialog.test.d.ts.map +0 -1
- package/dist/components/dropdown/Dropdown.d.ts +0 -40
- package/dist/components/dropdown/Dropdown.d.ts.map +0 -1
- package/dist/components/dropdown/leu-dropdown.d.ts +0 -8
- package/dist/components/dropdown/leu-dropdown.d.ts.map +0 -1
- package/dist/components/dropdown/stories/dropdown.stories.d.ts +0 -25
- package/dist/components/dropdown/stories/dropdown.stories.d.ts.map +0 -1
- package/dist/components/dropdown/test/dropdown.test.d.ts +0 -2
- package/dist/components/dropdown/test/dropdown.test.d.ts.map +0 -1
- package/dist/components/file-input/FileInput.d.ts +0 -62
- package/dist/components/file-input/FileInput.d.ts.map +0 -1
- package/dist/components/file-input/leu-file-input.d.ts +0 -8
- package/dist/components/file-input/leu-file-input.d.ts.map +0 -1
- package/dist/components/file-input/stories/file-input.stories.d.ts +0 -34
- package/dist/components/file-input/stories/file-input.stories.d.ts.map +0 -1
- package/dist/components/file-input/test/file-input.test.d.ts +0 -2
- package/dist/components/file-input/test/file-input.test.d.ts.map +0 -1
- package/dist/components/icon/Icon.d.ts +0 -20
- package/dist/components/icon/Icon.d.ts.map +0 -1
- package/dist/components/icon/leu-icon.d.ts +0 -8
- package/dist/components/icon/leu-icon.d.ts.map +0 -1
- package/dist/components/icon/paths.d.ts +0 -127
- package/dist/components/icon/paths.d.ts.map +0 -1
- package/dist/components/icon/stories/icon.stories.d.ts +0 -32
- package/dist/components/icon/stories/icon.stories.d.ts.map +0 -1
- package/dist/components/icon/test/icon.test.d.ts +0 -2
- package/dist/components/icon/test/icon.test.d.ts.map +0 -1
- package/dist/components/input/Input.d.ts +0 -163
- package/dist/components/input/Input.d.ts.map +0 -1
- package/dist/components/input/leu-input.d.ts +0 -8
- package/dist/components/input/leu-input.d.ts.map +0 -1
- package/dist/components/input/stories/input.stories.d.ts +0 -35
- package/dist/components/input/stories/input.stories.d.ts.map +0 -1
- package/dist/components/input/test/input.test.d.ts +0 -2
- package/dist/components/input/test/input.test.d.ts.map +0 -1
- package/dist/components/menu/Menu.d.ts +0 -39
- package/dist/components/menu/Menu.d.ts.map +0 -1
- package/dist/components/menu/MenuItem.d.ts +0 -61
- package/dist/components/menu/MenuItem.d.ts.map +0 -1
- package/dist/components/menu/leu-menu-item.d.ts +0 -8
- package/dist/components/menu/leu-menu-item.d.ts.map +0 -1
- package/dist/components/menu/leu-menu.d.ts +0 -8
- package/dist/components/menu/leu-menu.d.ts.map +0 -1
- package/dist/components/menu/stories/menu-item.stories.d.ts +0 -24
- package/dist/components/menu/stories/menu-item.stories.d.ts.map +0 -1
- package/dist/components/menu/stories/menu.stories.d.ts +0 -26
- package/dist/components/menu/stories/menu.stories.d.ts.map +0 -1
- package/dist/components/menu/test/menu-item.test.d.ts +0 -3
- package/dist/components/menu/test/menu-item.test.d.ts.map +0 -1
- package/dist/components/menu/test/menu.test.d.ts +0 -4
- package/dist/components/menu/test/menu.test.d.ts.map +0 -1
- package/dist/components/message/Message.d.ts +0 -59
- package/dist/components/message/Message.d.ts.map +0 -1
- package/dist/components/message/leu-message.d.ts +0 -8
- package/dist/components/message/leu-message.d.ts.map +0 -1
- package/dist/components/message/stories/message.stories.d.ts +0 -179
- package/dist/components/message/stories/message.stories.d.ts.map +0 -1
- package/dist/components/message/test/message.test.d.ts +0 -2
- package/dist/components/message/test/message.test.d.ts.map +0 -1
- package/dist/components/pagination/Pagination.d.ts +0 -72
- package/dist/components/pagination/Pagination.d.ts.map +0 -1
- package/dist/components/pagination/leu-pagination.d.ts +0 -8
- package/dist/components/pagination/leu-pagination.d.ts.map +0 -1
- package/dist/components/pagination/stories/pagination.stories.d.ts +0 -25
- package/dist/components/pagination/stories/pagination.stories.d.ts.map +0 -1
- package/dist/components/pagination/test/pagination.test.d.ts +0 -2
- package/dist/components/pagination/test/pagination.test.d.ts.map +0 -1
- package/dist/components/placeholder/Placeholder.d.ts +0 -23
- package/dist/components/placeholder/Placeholder.d.ts.map +0 -1
- package/dist/components/placeholder/leu-placeholder.d.ts +0 -8
- package/dist/components/placeholder/leu-placeholder.d.ts.map +0 -1
- package/dist/components/placeholder/stories/placeholder.stories.d.ts +0 -27
- package/dist/components/placeholder/stories/placeholder.stories.d.ts.map +0 -1
- package/dist/components/placeholder/test/placeholder.test.d.ts +0 -2
- package/dist/components/placeholder/test/placeholder.test.d.ts.map +0 -1
- package/dist/components/popup/Popup.d.ts +0 -57
- package/dist/components/popup/Popup.d.ts.map +0 -1
- package/dist/components/popup/leu-popup.d.ts +0 -8
- package/dist/components/popup/leu-popup.d.ts.map +0 -1
- package/dist/components/popup/stories/popup.stories.d.ts +0 -28
- package/dist/components/popup/stories/popup.stories.d.ts.map +0 -1
- package/dist/components/popup/test/popup.test.d.ts +0 -2
- package/dist/components/popup/test/popup.test.d.ts.map +0 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +0 -25
- package/dist/components/progress-bar/ProgressBar.d.ts.map +0 -1
- package/dist/components/progress-bar/leu-progress-bar.d.ts +0 -8
- package/dist/components/progress-bar/leu-progress-bar.d.ts.map +0 -1
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts +0 -48
- package/dist/components/progress-bar/stories/progress-bar.stories.d.ts.map +0 -1
- package/dist/components/progress-bar/test/progress-bar.test.d.ts +0 -2
- package/dist/components/progress-bar/test/progress-bar.test.d.ts.map +0 -1
- package/dist/components/radio/Radio.d.ts +0 -24
- package/dist/components/radio/Radio.d.ts.map +0 -1
- package/dist/components/radio/RadioGroup.d.ts +0 -39
- package/dist/components/radio/RadioGroup.d.ts.map +0 -1
- package/dist/components/radio/leu-radio-group.d.ts +0 -8
- package/dist/components/radio/leu-radio-group.d.ts.map +0 -1
- package/dist/components/radio/leu-radio.d.ts +0 -8
- package/dist/components/radio/leu-radio.d.ts.map +0 -1
- package/dist/components/radio/stories/radio-group.stories.d.ts +0 -29
- package/dist/components/radio/stories/radio-group.stories.d.ts.map +0 -1
- package/dist/components/radio/stories/radio.stories.d.ts +0 -22
- package/dist/components/radio/stories/radio.stories.d.ts.map +0 -1
- package/dist/components/radio/test/radio-group.test.d.ts +0 -3
- package/dist/components/radio/test/radio-group.test.d.ts.map +0 -1
- package/dist/components/radio/test/radio.test.d.ts +0 -2
- package/dist/components/radio/test/radio.test.d.ts.map +0 -1
- package/dist/components/range/Range.d.ts +0 -116
- package/dist/components/range/Range.d.ts.map +0 -1
- package/dist/components/range/leu-range.d.ts +0 -8
- package/dist/components/range/leu-range.d.ts.map +0 -1
- package/dist/components/range/stories/range.stories.d.ts +0 -231
- package/dist/components/range/stories/range.stories.d.ts.map +0 -1
- package/dist/components/range/test/range.test.d.ts +0 -2
- package/dist/components/range/test/range.test.d.ts.map +0 -1
- package/dist/components/scroll-top/ScrollTop.d.ts +0 -23
- package/dist/components/scroll-top/ScrollTop.d.ts.map +0 -1
- package/dist/components/scroll-top/leu-scroll-top.d.ts +0 -8
- package/dist/components/scroll-top/leu-scroll-top.d.ts.map +0 -1
- package/dist/components/scroll-top/stories/scroll-top.stories.d.ts +0 -8
- package/dist/components/scroll-top/stories/scroll-top.stories.d.ts.map +0 -1
- package/dist/components/scroll-top/test/scroll-top.test.d.ts +0 -2
- package/dist/components/scroll-top/test/scroll-top.test.d.ts.map +0 -1
- package/dist/components/select/Select.d.ts +0 -145
- package/dist/components/select/Select.d.ts.map +0 -1
- package/dist/components/select/leu-select.d.ts +0 -8
- package/dist/components/select/leu-select.d.ts.map +0 -1
- package/dist/components/select/stories/select.stories.d.ts +0 -23
- package/dist/components/select/stories/select.stories.d.ts.map +0 -1
- package/dist/components/select/test/fixtures.d.ts +0 -2
- package/dist/components/select/test/fixtures.d.ts.map +0 -1
- package/dist/components/select/test/select.test.d.ts +0 -3
- package/dist/components/select/test/select.test.d.ts.map +0 -1
- package/dist/components/spinner/Spinner.d.ts +0 -10
- package/dist/components/spinner/Spinner.d.ts.map +0 -1
- package/dist/components/spinner/leu-spinner.d.ts +0 -8
- package/dist/components/spinner/leu-spinner.d.ts.map +0 -1
- package/dist/components/spinner/stories/spinner.stories.d.ts +0 -16
- package/dist/components/spinner/stories/spinner.stories.d.ts.map +0 -1
- package/dist/components/spinner/test/spinner.test.d.ts +0 -2
- package/dist/components/spinner/test/spinner.test.d.ts.map +0 -1
- package/dist/components/table/Table.d.ts +0 -65
- package/dist/components/table/Table.d.ts.map +0 -1
- package/dist/components/table/leu-table.d.ts +0 -8
- package/dist/components/table/leu-table.d.ts.map +0 -1
- package/dist/components/table/stories/table.stories.d.ts +0 -15
- package/dist/components/table/stories/table.stories.d.ts.map +0 -1
- package/dist/components/table/test/table.test.d.ts +0 -2
- package/dist/components/table/test/table.test.d.ts.map +0 -1
- package/dist/components/tag/Tag.d.ts +0 -13
- package/dist/components/tag/Tag.d.ts.map +0 -1
- package/dist/components/tag/leu-tag.d.ts +0 -8
- package/dist/components/tag/leu-tag.d.ts.map +0 -1
- package/dist/components/tag/stories/tag.stories.d.ts +0 -136
- package/dist/components/tag/stories/tag.stories.d.ts.map +0 -1
- package/dist/components/tag/test/tag.test.d.ts +0 -2
- package/dist/components/tag/test/tag.test.d.ts.map +0 -1
- package/dist/components/visually-hidden/VisuallyHidden.d.ts +0 -9
- package/dist/components/visually-hidden/VisuallyHidden.d.ts.map +0 -1
- package/dist/components/visually-hidden/leu-visually-hidden.d.ts +0 -8
- package/dist/components/visually-hidden/leu-visually-hidden.d.ts.map +0 -1
- package/dist/components/visually-hidden/stories/visually-hidden.stories.d.ts +0 -13
- package/dist/components/visually-hidden/stories/visually-hidden.stories.d.ts.map +0 -1
- package/dist/components/visually-hidden/test/visually-hidden.test.d.ts +0 -2
- package/dist/components/visually-hidden/test/visually-hidden.test.d.ts.map +0 -1
- package/dist/hasSlotController-Bm2tipvG.js +0 -53
- package/dist/hasSlotController.d-emXwVXWF.d.ts +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/LeuElement.d.ts +0 -8
- package/dist/lib/LeuElement.d.ts.map +0 -1
- package/dist/lib/a11y.d.ts +0 -11
- package/dist/lib/a11y.d.ts.map +0 -1
- package/dist/lib/hasSlotController.d.ts +0 -20
- package/dist/lib/hasSlotController.d.ts.map +0 -1
- package/dist/lib/styleMap.d.ts +0 -61
- package/dist/lib/styleMap.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -23
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/styles/style.stories.d.ts +0 -6
- package/dist/styles/style.stories.d.ts.map +0 -1
- package/dist/utils-DBGsNSJW.js +0 -33
- package/rollup.config.js +0 -94
- package/web-dev-server.config.mjs +0 -30
package/.eslintrc.json
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ignorePatterns": ["scripts/generate-component/templates/**/*"],
|
|
3
|
-
"extends": [
|
|
4
|
-
"@open-wc",
|
|
5
|
-
"prettier",
|
|
6
|
-
"plugin:storybook/recommended",
|
|
7
|
-
"plugin:@typescript-eslint/recommended"
|
|
8
|
-
],
|
|
9
|
-
"parser": "@typescript-eslint/parser",
|
|
10
|
-
"plugins": ["@typescript-eslint"],
|
|
11
|
-
"rules": {
|
|
12
|
-
"@typescript-eslint/no-unused-vars": [
|
|
13
|
-
"error",
|
|
14
|
-
{
|
|
15
|
-
"varsIgnorePattern": "^_",
|
|
16
|
-
"argsIgnorePattern": "^_"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"prefer-destructuring": [
|
|
20
|
-
"error",
|
|
21
|
-
{
|
|
22
|
-
"AssignmentExpression": {
|
|
23
|
-
"array": false
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"no-use-before-define": "off",
|
|
28
|
-
"@typescript-eslint/no-use-before-define": "error",
|
|
29
|
-
// TODO: Fix this with the upgrade to ESLint 9
|
|
30
|
-
"import/no-unresolved": "off"
|
|
31
|
-
},
|
|
32
|
-
"overrides": [
|
|
33
|
-
{
|
|
34
|
-
"files": ["**/scripts/**/*.js", "**/scripts/**/*.ts"],
|
|
35
|
-
"rules": {
|
|
36
|
-
"import/no-extraneous-dependencies": [
|
|
37
|
-
"error",
|
|
38
|
-
{
|
|
39
|
-
"devDependencies": true
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"no-console": "off"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"files": ["*.test.ts"],
|
|
47
|
-
// Chai assertions are possible without a function call
|
|
48
|
-
// e.g. expect(someTrueValue).to.be.true;
|
|
49
|
-
"rules": {
|
|
50
|
-
"@typescript-eslint/no-unused-expressions": "off"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"globals": {
|
|
55
|
-
"__LEU_VERSION__": "readonly"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import * as lit_html from 'lit-html';
|
|
2
|
-
import * as lit from 'lit';
|
|
3
|
-
import { L as LeuElement } from './LeuElement.d-BevHqLUu.js';
|
|
4
|
-
|
|
5
|
-
type IconPathName = keyof typeof paths;
|
|
6
|
-
declare const paths: {
|
|
7
|
-
addNew: string;
|
|
8
|
-
alert: string;
|
|
9
|
-
angleDropDown: string;
|
|
10
|
-
angleDropUp: string;
|
|
11
|
-
angleLeft: string;
|
|
12
|
-
angleRight: string;
|
|
13
|
-
arrowDown: string;
|
|
14
|
-
arrowLeft: string;
|
|
15
|
-
arrowRight: string;
|
|
16
|
-
arrowUp: string;
|
|
17
|
-
backward: string;
|
|
18
|
-
block: string;
|
|
19
|
-
calendar: string;
|
|
20
|
-
camera: string;
|
|
21
|
-
caution: string;
|
|
22
|
-
cc: string;
|
|
23
|
-
chart: string;
|
|
24
|
-
chatMessage: string;
|
|
25
|
-
check: string;
|
|
26
|
-
clear: string;
|
|
27
|
-
close: string;
|
|
28
|
-
comment: string;
|
|
29
|
-
conference: string;
|
|
30
|
-
confirm: string;
|
|
31
|
-
confirmPlain: string;
|
|
32
|
-
conversation: string;
|
|
33
|
-
copy: string;
|
|
34
|
-
delete: string;
|
|
35
|
-
download: string;
|
|
36
|
-
earth: string;
|
|
37
|
-
edit: string;
|
|
38
|
-
email: string;
|
|
39
|
-
file: string;
|
|
40
|
-
fileCsv: string;
|
|
41
|
-
fileOutline: string;
|
|
42
|
-
filePdf: string;
|
|
43
|
-
fileXml: string;
|
|
44
|
-
files: string;
|
|
45
|
-
filter: string;
|
|
46
|
-
floppy: string;
|
|
47
|
-
folder: string;
|
|
48
|
-
forward: string;
|
|
49
|
-
getInformation: string;
|
|
50
|
-
hide: string;
|
|
51
|
-
home: string;
|
|
52
|
-
image: string;
|
|
53
|
-
income: string;
|
|
54
|
-
launch: string;
|
|
55
|
-
levelUp: string;
|
|
56
|
-
like: string;
|
|
57
|
-
link: string;
|
|
58
|
-
list: string;
|
|
59
|
-
location: string;
|
|
60
|
-
lock: string;
|
|
61
|
-
login: string;
|
|
62
|
-
logout: string;
|
|
63
|
-
love: string;
|
|
64
|
-
emailOpen: string;
|
|
65
|
-
map: string;
|
|
66
|
-
mapLocateMe: string;
|
|
67
|
-
mapNavigation: string;
|
|
68
|
-
mapPin: string;
|
|
69
|
-
menu: string;
|
|
70
|
-
menuOverflow: string;
|
|
71
|
-
minus: string;
|
|
72
|
-
money: string;
|
|
73
|
-
moneyIncome: string;
|
|
74
|
-
organisation: string;
|
|
75
|
-
overflow: string;
|
|
76
|
-
paperplane: string;
|
|
77
|
-
paragraph: string;
|
|
78
|
-
passport: string;
|
|
79
|
-
phoneCall: string;
|
|
80
|
-
piechart: string;
|
|
81
|
-
pill: string;
|
|
82
|
-
pin: string;
|
|
83
|
-
plus: string;
|
|
84
|
-
print: string;
|
|
85
|
-
refresh: string;
|
|
86
|
-
remove: string;
|
|
87
|
-
repost: string;
|
|
88
|
-
resizeText: string;
|
|
89
|
-
ruler: string;
|
|
90
|
-
search: string;
|
|
91
|
-
securities: string;
|
|
92
|
-
setting: string;
|
|
93
|
-
share: string;
|
|
94
|
-
show: string;
|
|
95
|
-
smileyDevastated: string;
|
|
96
|
-
smileyIndifferent: string;
|
|
97
|
-
smileySad: string;
|
|
98
|
-
smileySmile: string;
|
|
99
|
-
smileyThrilled: string;
|
|
100
|
-
swissId: string;
|
|
101
|
-
time: string;
|
|
102
|
-
upload: string;
|
|
103
|
-
user: string;
|
|
104
|
-
userMultiple: string;
|
|
105
|
-
vote: string;
|
|
106
|
-
zoom: string;
|
|
107
|
-
zoomOut: string;
|
|
108
|
-
fastForward: string;
|
|
109
|
-
fastRewind: string;
|
|
110
|
-
fullScreen: string;
|
|
111
|
-
next: string;
|
|
112
|
-
pause: string;
|
|
113
|
-
play: string;
|
|
114
|
-
playButton: string;
|
|
115
|
-
previous: string;
|
|
116
|
-
skipNext: string;
|
|
117
|
-
skipPrevious: string;
|
|
118
|
-
stop: string;
|
|
119
|
-
facebook: string;
|
|
120
|
-
google: string;
|
|
121
|
-
instagram: string;
|
|
122
|
-
kununu: string;
|
|
123
|
-
linkedin: string;
|
|
124
|
-
snapchat: string;
|
|
125
|
-
tiktok: string;
|
|
126
|
-
twitter: string;
|
|
127
|
-
xing: string;
|
|
128
|
-
youtube: string;
|
|
129
|
-
youtubeLogo: string;
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* A component to render all defined zhWeb icons.
|
|
134
|
-
* The `fill` of the icon is set to `currentColor` and
|
|
135
|
-
* can be overriden by setting the css `color` property.
|
|
136
|
-
* If the icon name is not found, a placeholder will be displayed.
|
|
137
|
-
*
|
|
138
|
-
* @tagname leu-icon
|
|
139
|
-
* @cssprop --leu-icon-size - The size of the icon.
|
|
140
|
-
*/
|
|
141
|
-
declare class LeuIcon extends LeuElement {
|
|
142
|
-
static styles: lit.CSSResultGroup[];
|
|
143
|
-
/**
|
|
144
|
-
* The name of the icon to display.
|
|
145
|
-
*/
|
|
146
|
-
name: IconPathName | "";
|
|
147
|
-
render(): lit_html.TemplateResult<1>;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export { LeuIcon as L };
|
|
151
|
-
export type { IconPathName as I };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { css, LitElement } from 'lit';
|
|
2
|
-
|
|
3
|
-
var css_248z = css`:host,
|
|
4
|
-
:host * {
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
font-feature-settings: var(--leu-t-font-feature-settings);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* If a custom element sets the display property to any value
|
|
11
|
-
* it will not be hidden by the [hidden] attribute.
|
|
12
|
-
* That's why we need to specify this rule.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
:host([hidden]) {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
class LeuElement extends LitElement {
|
|
21
|
-
static define(name, constructor = this, options = {}) {
|
|
22
|
-
Object.entries(this.dependencies).forEach(([n, c]) => c.define(n));
|
|
23
|
-
const currentlyRegisteredConstructor = customElements.get(name);
|
|
24
|
-
if (currentlyRegisteredConstructor === undefined) {
|
|
25
|
-
customElements.define(name, constructor, options);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (currentlyRegisteredConstructor !== constructor) {
|
|
29
|
-
console.warn(`The custom element with the name <${name}> is already registered with a different constructor. This can happen when the same element has been loaded from different modules (e.g. multiple CDN requests or bundles).`);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if ("version" in currentlyRegisteredConstructor &&
|
|
33
|
-
currentlyRegisteredConstructor.version !== constructor.version) {
|
|
34
|
-
console.warn(`The custom element with the name <${name}> is already defined with the same constructor but a different version (${currentlyRegisteredConstructor.version}).`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
LeuElement.version = "0.24.1";
|
|
39
|
-
LeuElement.dependencies = {};
|
|
40
|
-
LeuElement.styles = css_248z;
|
|
41
|
-
|
|
42
|
-
export { LeuElement as L };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
|
-
|
|
3
|
-
declare class LeuElement extends LitElement {
|
|
4
|
-
static version: string;
|
|
5
|
-
static dependencies: Record<string, typeof LeuElement>;
|
|
6
|
-
static styles: CSSResultGroup;
|
|
7
|
-
static define(name: string, constructor?: typeof LeuElement, options?: ElementDefinitionOptions): void;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { LeuElement as L };
|
package/dist/_tslib-CNEFicEt.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function __decorate(decorators, target, key, desc) {
|
|
19
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
26
|
-
var e = new Error(message);
|
|
27
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export { __decorate as _ };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
2
|
-
/**
|
|
3
|
-
* @tagname leu-accordion
|
|
4
|
-
* @slot content - The content of the accordion. No styles will be applied to the content.
|
|
5
|
-
* @attr {number} heading-level - The heading level of the accordion title. Must be between 1 and 6.
|
|
6
|
-
* @attr {string} label-prefix - The prefix of the accordion label. e.g. "01"
|
|
7
|
-
*/
|
|
8
|
-
export declare class LeuAccordion extends LeuElement {
|
|
9
|
-
static styles: import("lit").CSSResultGroup[];
|
|
10
|
-
/** @internal */
|
|
11
|
-
static shadowRootOptions: {
|
|
12
|
-
delegatesFocus: boolean;
|
|
13
|
-
mode: ShadowRootMode;
|
|
14
|
-
serializable?: boolean;
|
|
15
|
-
slotAssignment?: SlotAssignmentMode;
|
|
16
|
-
customElements?: CustomElementRegistry;
|
|
17
|
-
registry?: CustomElementRegistry;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* The heading level of the accordion title. Must be between 1 and 6.
|
|
21
|
-
*/
|
|
22
|
-
headingLevel: number;
|
|
23
|
-
/**
|
|
24
|
-
* The expanded state of the accordion.
|
|
25
|
-
*/
|
|
26
|
-
open: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The label (title) of the accordion
|
|
29
|
-
*/
|
|
30
|
-
label: string;
|
|
31
|
-
/**
|
|
32
|
-
* The prefix of the accordion label. e.g. "01"
|
|
33
|
-
*/
|
|
34
|
-
labelPrefix: string;
|
|
35
|
-
/**
|
|
36
|
-
* Determines the heading tag of the accordion toggle.
|
|
37
|
-
* The headingLevel shouldn't be used directly to render the heading tag
|
|
38
|
-
* in order to avoid XSS issues.
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
private _getHeadingTag;
|
|
42
|
-
/**
|
|
43
|
-
* Toggles the accordion open state.
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
|
-
private _handleToggleClick;
|
|
47
|
-
render(): import("lit-html").TemplateResult;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/Accordion.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,iCAA8B;IAE3C,gBAAgB;IAChB,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED;;OAEG;IAEH,YAAY,SAAI;IAEhB;;OAEG;IAEH,IAAI,UAAQ;IAEZ;;OAEG;IAEH,KAAK,SAAK;IAEV;;OAEG;IAEH,WAAW,SAAK;IAEhB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAStB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAI1B,MAAM;CAqCP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/leu-accordion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,YAAY,EAAE,CAAA;AAIvB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAA;KAC9B;CACF"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import "../leu-accordion.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: string;
|
|
5
|
-
argTypes: {
|
|
6
|
-
"heading-level": {
|
|
7
|
-
control: string;
|
|
8
|
-
options: number[];
|
|
9
|
-
};
|
|
10
|
-
content: {
|
|
11
|
-
control: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
parameters: {
|
|
17
|
-
design: {
|
|
18
|
-
type: string;
|
|
19
|
-
url: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
24
|
-
export declare const Regular: any;
|
|
25
|
-
export declare const Prefix: any;
|
|
26
|
-
//# sourceMappingURL=accordion.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/stories/accordion.stories.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,CAAA;;;;;;;;;;;;;;;;;;;;;;AAE5B,wBAoBC;AAeD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAiBxC,eAAO,MAAM,MAAM,KAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.test.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/test/accordion.test.ts"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,CAAA"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { LeuIcon } from "../icon/Icon.js";
|
|
2
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
3
|
-
/**
|
|
4
|
-
* @tagname leu-button
|
|
5
|
-
* @slot before - The icon to display before the label
|
|
6
|
-
* @slot after - The icon to display after the label
|
|
7
|
-
* @slot - The label of the button or the icon if no label is set
|
|
8
|
-
* @see https://www.figma.com/file/d6Pv21UVUbnBs3AdcZijHmbN/KTZH-Design-System?type=design&node-id=4-1444&mode=design&t=xu5Vii8jXKKCKDez-0
|
|
9
|
-
*/
|
|
10
|
-
export declare class LeuButton extends LeuElement {
|
|
11
|
-
static dependencies: {
|
|
12
|
-
"leu-icon": typeof LeuIcon;
|
|
13
|
-
};
|
|
14
|
-
static styles: import("lit").CSSResultGroup[];
|
|
15
|
-
static shadowRootOptions: {
|
|
16
|
-
delegatesFocus: boolean;
|
|
17
|
-
mode: ShadowRootMode;
|
|
18
|
-
serializable?: boolean;
|
|
19
|
-
slotAssignment?: SlotAssignmentMode;
|
|
20
|
-
customElements?: CustomElementRegistry;
|
|
21
|
-
registry?: CustomElementRegistry;
|
|
22
|
-
};
|
|
23
|
-
private hasSlotController;
|
|
24
|
-
/**
|
|
25
|
-
* `aria-label` of the underlying button elements.
|
|
26
|
-
* Use it to provide a label when only an icon is visible.
|
|
27
|
-
*/
|
|
28
|
-
label: null | string;
|
|
29
|
-
/**
|
|
30
|
-
* The size of the button.
|
|
31
|
-
*/
|
|
32
|
-
size: "regular" | "small";
|
|
33
|
-
/**
|
|
34
|
-
* The visual variant of the button.
|
|
35
|
-
*/
|
|
36
|
-
variant: "primary" | "secondary" | "ghost";
|
|
37
|
-
/**
|
|
38
|
-
* The `type` of the underlying button element.
|
|
39
|
-
*/
|
|
40
|
-
type: "button" | "submit" | "reset";
|
|
41
|
-
/**
|
|
42
|
-
* The `role` of the underlying button element.
|
|
43
|
-
*/
|
|
44
|
-
componentRole?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Whether the button is disabled or not.
|
|
47
|
-
* @type {boolean}
|
|
48
|
-
*/
|
|
49
|
-
disabled: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Whether the button should be round.
|
|
52
|
-
* Can only be applied when the button contains an icon without a visible label.
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
*/
|
|
55
|
-
round: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Whether the button is active or not.
|
|
58
|
-
* Depending on the `componentRole`, it applies `aria-checked` or `aria-selected` to the underlying button element.
|
|
59
|
-
*/
|
|
60
|
-
active: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Wheter the colors should be inverted. For use on dark backgrounds.
|
|
63
|
-
*/
|
|
64
|
-
inverted: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Whether the button is expanded or not.
|
|
67
|
-
* Only has an effect on the variant `ghost` to show an expanding icon.
|
|
68
|
-
* If the property is not set, the icon will not be shown.
|
|
69
|
-
* If it is set, the icon will either show an expanded or collapsed state.
|
|
70
|
-
*/
|
|
71
|
-
expanded?: "true" | "false";
|
|
72
|
-
/**
|
|
73
|
-
* Alters the shape of the button to be full width of its parent container
|
|
74
|
-
*/
|
|
75
|
-
fluid: boolean;
|
|
76
|
-
private renderExpandingIcon;
|
|
77
|
-
private getAriaAttributes;
|
|
78
|
-
private hasTextContent;
|
|
79
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAMpD;;;;;;GAMG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC,MAAM,CAAC,YAAY;;MAElB;IAED,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,OAAO,CAAC,iBAAiB,CAIvB;IAEF;;;OAGG;IAEH,KAAK,EAAE,IAAI,GAAG,MAAM,CAAO;IAE3B;;OAEG;IAEH,IAAI,EAAE,SAAS,GAAG,OAAO,CAAY;IAErC;;OAEG;IAEH,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,CAAY;IAEtD;;OAEG;IAEH,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAW;IAE9C;;OAEG;IAEH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IAEH,QAAQ,EAAE,OAAO,CAAQ;IAEzB;;;;OAIG;IAEH,KAAK,EAAE,OAAO,CAAQ;IAEtB;;;OAGG;IAEH,MAAM,EAAE,OAAO,CAAQ;IAEvB;;OAEG;IAEH,QAAQ,EAAE,OAAO,CAAQ;IAEzB;;;;;OAKG;IAEH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAE3B;;OAEG;IAEH,KAAK,EAAE,OAAO,CAAQ;IAEtB,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,cAAc;IAOtB,MAAM;CAwCP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/leu-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAE,SAAS,EAAE,CAAA;AAIpB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "../leu-button.js";
|
|
2
|
-
import "../../icon/leu-icon.js";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
design: {
|
|
8
|
-
type: string;
|
|
9
|
-
url: string;
|
|
10
|
-
};
|
|
11
|
-
html: {
|
|
12
|
-
root: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
export declare const Regular: any;
|
|
18
|
-
export declare const Overview: any;
|
|
19
|
-
//# sourceMappingURL=button.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/button/stories/button.stories.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAA;AACzB,OAAO,wBAAwB,CAAA;;;;;;;;;;;;;;AAY/B,wBAYC;AA8CD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAmQxC,eAAO,MAAM,QAAQ,KAA4B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.test.d.ts","sourceRoot":"","sources":["../../../../src/components/button/test/button.test.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAA;AACzB,OAAO,wBAAwB,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
2
|
-
/**
|
|
3
|
-
* A radio input-like button group component.
|
|
4
|
-
* It allows only one button to be active at a time.
|
|
5
|
-
* @tagname leu-button-group
|
|
6
|
-
* @slot - Slot for the buttons
|
|
7
|
-
* @fires input - When the value of the group changes by clicking a button
|
|
8
|
-
*/
|
|
9
|
-
export declare class LeuButtonGroup extends LeuElement {
|
|
10
|
-
static styles: import("lit").CSSResultGroup[];
|
|
11
|
-
private _items;
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves the value or the text content of a given LeuButton element.
|
|
14
|
-
*/
|
|
15
|
-
private static getButtonValue;
|
|
16
|
-
/**
|
|
17
|
-
* The value of the currently selected (active) button
|
|
18
|
-
*/
|
|
19
|
-
get value(): string;
|
|
20
|
-
set value(newValue: string);
|
|
21
|
-
private _handleSlotChange;
|
|
22
|
-
private _handleButtonClick;
|
|
23
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=ButtonGroup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../../src/components/button-group/ButtonGroup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAKpD;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAC,MAAM,iCAA8B;IAE3C,OAAO,CAAC,MAAM,CAAkB;IAEhC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IAI7B;;OAEG;IACH,IAAI,KAAK,WAGR;IAED,IAAI,KAAK,CAAC,QAAQ,QAAA,EAMjB;IAED,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,kBAAkB,CAczB;IAED,MAAM;CAOP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-button-group.d.ts","sourceRoot":"","sources":["../../../src/components/button-group/leu-button-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,cAAc,EAAE,CAAA;AAIzB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAA;KACnC;CACF"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "../leu-button-group.js";
|
|
2
|
-
import "../../button/leu-button.js";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
design: {
|
|
8
|
-
type: string;
|
|
9
|
-
url: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
14
|
-
export declare const Regular: any;
|
|
15
|
-
//# sourceMappingURL=button-group.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/button-group/stories/button-group.stories.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,4BAA4B,CAAA;;;;;;;;;;;AAYnC,wBASC;AA0BD,eAAO,MAAM,OAAO,KAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.test.d.ts","sourceRoot":"","sources":["../../../../src/components/button-group/test/button-group.test.ts"],"names":[],"mappings":"AASA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,4BAA4B,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
2
|
-
import { HasSlotController } from "../../lib/hasSlotController.js";
|
|
3
|
-
import { LeuSpinner } from "../spinner/Spinner.js";
|
|
4
|
-
/**
|
|
5
|
-
* A wrapper element for charts.
|
|
6
|
-
* @tagname leu-chart-wrapper
|
|
7
|
-
* @slot title - The title of the chart. Use a heading tag (h2-4) depending on your context.
|
|
8
|
-
* @slot description - A description of the chart. Content is wrapped in a `<p>` tag by the component.
|
|
9
|
-
* @slot chart - The actual chart
|
|
10
|
-
* @slot caption - A caption for the chart, e.g. a source or explanation of the data.
|
|
11
|
-
* @slot download - A download button or dropdown to export the chart in different formats.
|
|
12
|
-
*/
|
|
13
|
-
export declare class LeuChartWrapper extends LeuElement {
|
|
14
|
-
static styles: import("lit").CSSResultGroup[];
|
|
15
|
-
static shadowRootOptions: {
|
|
16
|
-
delegatesFocus: boolean;
|
|
17
|
-
mode: ShadowRootMode;
|
|
18
|
-
serializable?: boolean;
|
|
19
|
-
slotAssignment?: SlotAssignmentMode;
|
|
20
|
-
customElements?: CustomElementRegistry;
|
|
21
|
-
registry?: CustomElementRegistry;
|
|
22
|
-
};
|
|
23
|
-
static dependencies: {
|
|
24
|
-
"leu-spinner": typeof LeuSpinner;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Whether the chart is currently loading or not.
|
|
28
|
-
* When set to `true`, a spinner will be shown in the chart container.
|
|
29
|
-
*/
|
|
30
|
-
pending: boolean;
|
|
31
|
-
hasSlotController: HasSlotController;
|
|
32
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=ChartWrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/chart-wrapper/ChartWrapper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAElD;;;;;;;;GAQG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,MAAM,CAAC,YAAY;;MAElB;IAED;;;OAGG;IAEH,OAAO,EAAE,OAAO,CAAQ;IAExB,iBAAiB,oBAIf;IAEF,MAAM;CAkCP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-chart-wrapper.d.ts","sourceRoot":"","sources":["../../../src/components/chart-wrapper/leu-chart-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,eAAe,EAAE,CAAA;AAI1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAA;KACrC;CACF"}
|