@statistikzh/leu 0.24.2 → 0.26.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/.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/CONTRIBUTING.md +19 -8
- package/dist/Accordion-B04QkmHz.js +241 -0
- package/dist/Accordion.d.ts +44 -44
- package/dist/Accordion.js +2 -249
- package/dist/Button-BgNUxmo_.d.ts +99 -0
- package/dist/Button-BkhqVjug.js +564 -0
- package/dist/Button.d.ts +2 -85
- package/dist/Button.js +5 -504
- package/dist/ButtonGroup-B8U9fDvM.js +88 -0
- package/dist/ButtonGroup.d.ts +19 -19
- package/dist/ButtonGroup.js +6 -101
- package/dist/ChartWrapper-CSMFwz9e.js +158 -0
- package/dist/ChartWrapper.d.ts +26 -26
- package/dist/ChartWrapper.js +3 -163
- package/dist/Checkbox-Dd1QLpfn.js +198 -0
- package/dist/Checkbox.d.ts +35 -27
- package/dist/Checkbox.js +4 -157
- package/dist/CheckboxGroup-Bz2eWEFL.js +81 -0
- package/dist/CheckboxGroup.d.ts +18 -18
- package/dist/CheckboxGroup.js +5 -82
- package/dist/Chip-DLKM9P7v.d.ts +18 -0
- package/dist/Chip-XAQIIsXq.js +171 -0
- package/dist/Chip.d.ts +2 -18
- package/dist/Chip.js +2 -166
- package/dist/ChipGroup-DLqfK2kn.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-DHuXR_oo.js +241 -0
- package/dist/Dialog.d.ts +28 -28
- package/dist/Dialog.js +3 -240
- package/dist/Dropdown-DtFTePbc.js +155 -0
- package/dist/Dropdown.d.ts +39 -41
- package/dist/Dropdown.js +9 -157
- package/dist/FileInput-b8sbLDPI.js +344 -0
- package/dist/FileInput.d.ts +56 -57
- package/dist/FileInput.js +7 -383
- package/dist/FormAssociatedMixin-Cc74LjbC.d.ts +22 -0
- package/dist/FormAssociatedMixin-DLPvFtbT.js +58 -0
- package/dist/Icon-C_yYuynf.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-D2THgo7c.d.ts +169 -0
- package/dist/Input-DEOVocTa.js +610 -0
- package/dist/Input.d.ts +2 -166
- package/dist/Input.js +4 -626
- package/dist/LeuElement-BeFrgKes.js +46 -0
- package/dist/LeuElement-pJFU18Xm.d.ts +11 -0
- package/dist/Menu-BeqqtCw6.js +136 -0
- package/dist/Menu-CQdx1ef3.d.ts +43 -0
- package/dist/Menu.d.ts +2 -44
- package/dist/Menu.js +4 -157
- package/dist/MenuItem-DVg8-1Bq.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-BhknWvAF.js +252 -0
- package/dist/Message.d.ts +53 -53
- package/dist/Message.js +3 -267
- package/dist/Pagination-CqkHh-Vd.d.ts +76 -0
- package/dist/Pagination-DJI5MIi_.js +226 -0
- package/dist/Pagination.d.ts +2 -76
- package/dist/Pagination.js +7 -240
- package/dist/Placeholder-BJybFwSg.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-DNlm_9AA.js +195 -0
- package/dist/Popup.d.ts +2 -62
- package/dist/Popup.js +2 -233
- package/dist/ProgressBar-B0wYj1KF.js +167 -0
- package/dist/ProgressBar.d.ts +21 -21
- package/dist/ProgressBar.js +2 -165
- package/dist/Radio-DMCL8c4D.js +160 -0
- package/dist/Radio.d.ts +22 -22
- package/dist/Radio.js +2 -151
- package/dist/RadioGroup-CM6IyBlq.js +171 -0
- package/dist/RadioGroup.d.ts +35 -35
- package/dist/RadioGroup.js +3 -182
- package/dist/Range-B72rtfln.js +496 -0
- package/dist/Range.d.ts +112 -112
- package/dist/Range.js +2 -586
- package/dist/ScrollTop-BFAqBVDR.js +130 -0
- package/dist/ScrollTop.d.ts +21 -21
- package/dist/ScrollTop.js +6 -134
- package/dist/Select-vxl3BvD4.js +618 -0
- package/dist/Select.d.ts +130 -132
- package/dist/Select.js +10 -675
- package/dist/Spinner-CrM1enM0.d.ts +14 -0
- package/dist/Spinner-DDTqijTO.js +56 -0
- package/dist/Spinner.d.ts +2 -14
- package/dist/Spinner.js +2 -52
- package/dist/Table-BgCxfBcm.js +392 -0
- package/dist/Table.d.ts +61 -63
- package/dist/Table.js +8 -427
- package/dist/Tag-DK2KkPIQ.js +76 -0
- package/dist/Tag.d.ts +8 -8
- package/dist/Tag.js +2 -74
- package/dist/VisuallyHidden-OeQvhxYn.d.ts +13 -0
- package/dist/VisuallyHidden-pll3amXE.js +29 -0
- package/dist/VisuallyHidden.d.ts +2 -13
- package/dist/VisuallyHidden.js +2 -25
- package/dist/decorate-DwpAc4D0.js +9 -0
- package/dist/hasSlotController-DSBCVzPD.js +38 -0
- package/dist/hasSlotController-DWPyZ52b.d.ts +19 -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 +8 -12
- package/dist/leu-button.d.ts +7 -11
- package/dist/leu-button.js +7 -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 +11 -17
- package/dist/leu-file-input.d.ts +7 -13
- package/dist/leu-file-input.js +9 -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 +9 -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 +8 -13
- package/dist/leu-select.d.ts +7 -19
- package/dist/leu-select.js +12 -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 +10 -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/utils-hfk5Nwy8.js +28 -0
- package/dist/vscode.html-custom-data.json +7 -8
- package/dist/vue/index.d.ts +5 -9
- package/dist/web-types.json +18 -24
- package/eslint.config.mjs +79 -0
- package/package.json +44 -60
- 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 +76 -5
- package/src/components/button/button.css +37 -9
- package/src/components/button/stories/button.stories.ts +23 -0
- package/src/components/button/test/button.test.ts +214 -9
- 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/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/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-BfXSO7MN.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
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
2
|
-
import { LeuIcon } from "../icon/Icon.js";
|
|
3
|
-
import { LeuPagination } from "../pagination/Pagination.js";
|
|
4
|
-
/**
|
|
5
|
-
* @tagname leu-table
|
|
6
|
-
*/
|
|
7
|
-
export declare class LeuTable extends LeuElement {
|
|
8
|
-
static dependencies: {
|
|
9
|
-
"leu-icon": typeof LeuIcon;
|
|
10
|
-
"leu-pagination": typeof LeuPagination;
|
|
11
|
-
};
|
|
12
|
-
static styles: import("lit").CSSResultGroup[];
|
|
13
|
-
static properties: {
|
|
14
|
-
columns: {
|
|
15
|
-
type: ArrayConstructor;
|
|
16
|
-
};
|
|
17
|
-
data: {
|
|
18
|
-
type: ArrayConstructor;
|
|
19
|
-
};
|
|
20
|
-
firstColumnSticky: {
|
|
21
|
-
type: BooleanConstructor;
|
|
22
|
-
reflect: boolean;
|
|
23
|
-
};
|
|
24
|
-
itemsPerPage: {
|
|
25
|
-
type: NumberConstructor;
|
|
26
|
-
reflect: boolean;
|
|
27
|
-
};
|
|
28
|
-
sortIndex: {
|
|
29
|
-
type: NumberConstructor;
|
|
30
|
-
reflect: boolean;
|
|
31
|
-
};
|
|
32
|
-
sortOrderAsc: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
reflect: boolean;
|
|
35
|
-
};
|
|
36
|
-
width: {
|
|
37
|
-
type: NumberConstructor;
|
|
38
|
-
reflect: boolean;
|
|
39
|
-
};
|
|
40
|
-
_shadowLeft: {
|
|
41
|
-
state: boolean;
|
|
42
|
-
};
|
|
43
|
-
_shadowRight: {
|
|
44
|
-
state: boolean;
|
|
45
|
-
};
|
|
46
|
-
_page: {
|
|
47
|
-
state: boolean;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
constructor();
|
|
51
|
-
disconnectedCallback(): void;
|
|
52
|
-
attributeChangedCallback(name: any, oldVal: any, newVal: any): void;
|
|
53
|
-
firstUpdated(): void;
|
|
54
|
-
shadowToggle(target: any): void;
|
|
55
|
-
scrollEvent(event: any): void;
|
|
56
|
-
isOnePropNotValid(): "Der Parameter 'columns' ist erforderlich !" | "Der Parameter 'data' ist erforderlich !";
|
|
57
|
-
isSorted(col: any): boolean;
|
|
58
|
-
sortClick(col: any): void;
|
|
59
|
-
sortArrowIcon(): import("lit-html").TemplateResult<1>;
|
|
60
|
-
get _columns(): any;
|
|
61
|
-
get _sortedData(): any;
|
|
62
|
-
get _data(): any;
|
|
63
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/table/Table.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAI3D;;GAEG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,YAAY;;;MAGlB;IAED,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYhB;;IAkCD,oBAAoB;IAIpB,wBAAwB,CAAC,IAAI,KAAA,EAAE,MAAM,KAAA,EAAE,MAAM,KAAA;IAQ7C,YAAY;IAMZ,YAAY,CAAC,MAAM,KAAA;IAMnB,WAAW,CAAC,KAAK,KAAA;IAIjB,iBAAiB;IAUjB,QAAQ,CAAC,GAAG,KAAA;IAIZ,SAAS,CAAC,GAAG,KAAA;IAUb,aAAa;IAMb,IAAI,QAAQ,QAEX;IAED,IAAI,WAAW,QAMd;IAED,IAAI,KAAK,QAOR;IAED,MAAM;CAyGP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-table.d.ts","sourceRoot":"","sources":["../../../src/components/table/leu-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,QAAQ,EAAE,CAAA;AAInB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAA;KACtB;CACF"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "../leu-table.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: string;
|
|
5
|
-
parameters: {
|
|
6
|
-
design: {
|
|
7
|
-
type: string;
|
|
8
|
-
url: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
13
|
-
export declare const Regular: any;
|
|
14
|
-
export declare const Pagination: any;
|
|
15
|
-
//# sourceMappingURL=table.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/table/stories/table.stories.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,CAAA;;;;;;;;;;;AAExB,wBASC;AA8FD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAqBxC,eAAO,MAAM,UAAU,KAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.test.d.ts","sourceRoot":"","sources":["../../../../src/components/table/test/table.test.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
2
|
-
/**
|
|
3
|
-
* @tagname leu-tag
|
|
4
|
-
* @cssprop --leu-tag-accent-color - The color of the tag
|
|
5
|
-
* @slot default - The label of the tag
|
|
6
|
-
* @slot icon - An icon to display in the tag
|
|
7
|
-
*/
|
|
8
|
-
export declare class LeuTag extends LeuElement {
|
|
9
|
-
static styles: import("lit").CSSResultGroup[];
|
|
10
|
-
variant: "solid" | "outline" | "ghost";
|
|
11
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/tag/Tag.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD;;;;;GAKG;AACH,qBAAa,MAAO,SAAQ,UAAU;IACpC,MAAM,CAAC,MAAM,iCAA8B;IAG3C,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAU;IAEhD,MAAM;CAQP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-tag.d.ts","sourceRoot":"","sources":["../../../src/components/tag/leu-tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,OAAO,EAAE,MAAM,EAAE,CAAA;AAIjB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAA;KAClB;CACF"}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import "../leu-tag.js";
|
|
2
|
-
import "../../icon/leu-icon.js";
|
|
3
|
-
import { LeuTag } from "../Tag.js";
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: string;
|
|
7
|
-
parameters: {
|
|
8
|
-
design: {
|
|
9
|
-
type: string;
|
|
10
|
-
url: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
argTypes: {
|
|
14
|
-
variant: {
|
|
15
|
-
control: "select";
|
|
16
|
-
options: string[];
|
|
17
|
-
};
|
|
18
|
-
"--leu-tag-accent-color": {
|
|
19
|
-
control: {
|
|
20
|
-
type: string;
|
|
21
|
-
presetColors: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
icon: {
|
|
25
|
-
control: string;
|
|
26
|
-
options: string[];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
args: {
|
|
30
|
-
variant: "solid";
|
|
31
|
-
icon: string;
|
|
32
|
-
default: string;
|
|
33
|
-
"--leu-tag-accent-color": string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|
|
37
|
-
export declare const Solid: {
|
|
38
|
-
args: {
|
|
39
|
-
variant: string;
|
|
40
|
-
};
|
|
41
|
-
decorators?: import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
42
|
-
parameters?: import("@storybook/csf").Parameters;
|
|
43
|
-
argTypes?: Partial<import("@storybook/csf").ArgTypes<LeuTag>>;
|
|
44
|
-
loaders?: import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
45
|
-
beforeEach?: import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
46
|
-
experimental_afterEach?: import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
47
|
-
render?: import("@storybook/csf").ArgsStoryFn<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
48
|
-
tags?: import("@storybook/csf").Tag[];
|
|
49
|
-
mount?: (context: import("@storybook/csf").StoryContext<import("@storybook/web-components").WebComponentsRenderer, LeuTag>) => () => Promise<import("@storybook/csf").Canvas>;
|
|
50
|
-
name?: import("@storybook/csf").StoryName;
|
|
51
|
-
storyName?: import("@storybook/csf").StoryName;
|
|
52
|
-
play?: import("@storybook/csf").PlayFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
53
|
-
globals?: import("@storybook/csf").Globals;
|
|
54
|
-
story?: Omit<import("@storybook/csf").StoryAnnotations<import("@storybook/web-components").WebComponentsRenderer, LeuTag, Partial<LeuTag>>, "story">;
|
|
55
|
-
};
|
|
56
|
-
export declare const Outline: {
|
|
57
|
-
args: {
|
|
58
|
-
variant: string;
|
|
59
|
-
};
|
|
60
|
-
decorators?: import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
61
|
-
parameters?: import("@storybook/csf").Parameters;
|
|
62
|
-
argTypes?: Partial<import("@storybook/csf").ArgTypes<LeuTag>>;
|
|
63
|
-
loaders?: import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
64
|
-
beforeEach?: import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
65
|
-
experimental_afterEach?: import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
66
|
-
render?: import("@storybook/csf").ArgsStoryFn<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
67
|
-
tags?: import("@storybook/csf").Tag[];
|
|
68
|
-
mount?: (context: import("@storybook/csf").StoryContext<import("@storybook/web-components").WebComponentsRenderer, LeuTag>) => () => Promise<import("@storybook/csf").Canvas>;
|
|
69
|
-
name?: import("@storybook/csf").StoryName;
|
|
70
|
-
storyName?: import("@storybook/csf").StoryName;
|
|
71
|
-
play?: import("@storybook/csf").PlayFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
72
|
-
globals?: import("@storybook/csf").Globals;
|
|
73
|
-
story?: Omit<import("@storybook/csf").StoryAnnotations<import("@storybook/web-components").WebComponentsRenderer, LeuTag, Partial<LeuTag>>, "story">;
|
|
74
|
-
};
|
|
75
|
-
export declare const Ghost: {
|
|
76
|
-
args: {
|
|
77
|
-
variant: string;
|
|
78
|
-
};
|
|
79
|
-
decorators?: import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
80
|
-
parameters?: import("@storybook/csf").Parameters;
|
|
81
|
-
argTypes?: Partial<import("@storybook/csf").ArgTypes<LeuTag>>;
|
|
82
|
-
loaders?: import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
83
|
-
beforeEach?: import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
84
|
-
experimental_afterEach?: import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
85
|
-
render?: import("@storybook/csf").ArgsStoryFn<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
86
|
-
tags?: import("@storybook/csf").Tag[];
|
|
87
|
-
mount?: (context: import("@storybook/csf").StoryContext<import("@storybook/web-components").WebComponentsRenderer, LeuTag>) => () => Promise<import("@storybook/csf").Canvas>;
|
|
88
|
-
name?: import("@storybook/csf").StoryName;
|
|
89
|
-
storyName?: import("@storybook/csf").StoryName;
|
|
90
|
-
play?: import("@storybook/csf").PlayFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
91
|
-
globals?: import("@storybook/csf").Globals;
|
|
92
|
-
story?: Omit<import("@storybook/csf").StoryAnnotations<import("@storybook/web-components").WebComponentsRenderer, LeuTag, Partial<LeuTag>>, "story">;
|
|
93
|
-
};
|
|
94
|
-
export declare const Warning: {
|
|
95
|
-
args: {
|
|
96
|
-
variant: string;
|
|
97
|
-
"--leu-tag-accent-color": string;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
decorators?: import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
101
|
-
parameters?: import("@storybook/csf").Parameters;
|
|
102
|
-
argTypes?: Partial<import("@storybook/csf").ArgTypes<LeuTag>>;
|
|
103
|
-
loaders?: import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
104
|
-
beforeEach?: import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
105
|
-
experimental_afterEach?: import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
106
|
-
render?: import("@storybook/csf").ArgsStoryFn<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
107
|
-
tags?: import("@storybook/csf").Tag[];
|
|
108
|
-
mount?: (context: import("@storybook/csf").StoryContext<import("@storybook/web-components").WebComponentsRenderer, LeuTag>) => () => Promise<import("@storybook/csf").Canvas>;
|
|
109
|
-
name?: import("@storybook/csf").StoryName;
|
|
110
|
-
storyName?: import("@storybook/csf").StoryName;
|
|
111
|
-
play?: import("@storybook/csf").PlayFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
112
|
-
globals?: import("@storybook/csf").Globals;
|
|
113
|
-
story?: Omit<import("@storybook/csf").StoryAnnotations<import("@storybook/web-components").WebComponentsRenderer, LeuTag, Partial<LeuTag>>, "story">;
|
|
114
|
-
};
|
|
115
|
-
export declare const NoIcon: {
|
|
116
|
-
args: {
|
|
117
|
-
variant: string;
|
|
118
|
-
"--leu-tag-accent-color": string;
|
|
119
|
-
icon: any;
|
|
120
|
-
};
|
|
121
|
-
decorators?: import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").DecoratorFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
122
|
-
parameters?: import("@storybook/csf").Parameters;
|
|
123
|
-
argTypes?: Partial<import("@storybook/csf").ArgTypes<LeuTag>>;
|
|
124
|
-
loaders?: import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").LoaderFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
125
|
-
beforeEach?: import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").BeforeEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
126
|
-
experimental_afterEach?: import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag> | import("@storybook/csf").AfterEach<import("@storybook/web-components").WebComponentsRenderer, LeuTag>[];
|
|
127
|
-
render?: import("@storybook/csf").ArgsStoryFn<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
128
|
-
tags?: import("@storybook/csf").Tag[];
|
|
129
|
-
mount?: (context: import("@storybook/csf").StoryContext<import("@storybook/web-components").WebComponentsRenderer, LeuTag>) => () => Promise<import("@storybook/csf").Canvas>;
|
|
130
|
-
name?: import("@storybook/csf").StoryName;
|
|
131
|
-
storyName?: import("@storybook/csf").StoryName;
|
|
132
|
-
play?: import("@storybook/csf").PlayFunction<import("@storybook/web-components").WebComponentsRenderer, LeuTag>;
|
|
133
|
-
globals?: import("@storybook/csf").Globals;
|
|
134
|
-
story?: Omit<import("@storybook/csf").StoryAnnotations<import("@storybook/web-components").WebComponentsRenderer, LeuTag, Partial<LeuTag>>, "story">;
|
|
135
|
-
};
|
|
136
|
-
//# sourceMappingURL=tag.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tag.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/stories/tag.stories.ts"],"names":[],"mappings":"AAIA,OAAO,eAAe,CAAA;AACtB,OAAO,wBAAwB,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOlC,wBAwC2B;AAgB3B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAKnB,CAAA;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;CAKjB,CAAA;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;CAOnB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;CAOlB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tag.test.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/test/tag.test.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LeuElement } from "../../lib/LeuElement.js";
|
|
2
|
-
/**
|
|
3
|
-
* @tagname leu-visually-hidden
|
|
4
|
-
*/
|
|
5
|
-
export declare class LeuVisuallyHidden extends LeuElement {
|
|
6
|
-
static styles: import("lit").CSSResultGroup[];
|
|
7
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../../src/components/visually-hidden/VisuallyHidden.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM;CAGP"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"leu-visually-hidden.d.ts","sourceRoot":"","sources":["../../../src/components/visually-hidden/leu-visually-hidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAI5B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,iBAAiB,CAAA;KACzC;CACF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "../leu-visually-hidden.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: string;
|
|
5
|
-
argTypes: {
|
|
6
|
-
content: {
|
|
7
|
-
control: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const Regular: any;
|
|
13
|
-
//# sourceMappingURL=visually-hidden.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visually-hidden.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/visually-hidden/stories/visually-hidden.stories.ts"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAA;;;;;;;;;;AAElC,wBAQC;AAMD,eAAO,MAAM,OAAO,KAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visually-hidden.test.d.ts","sourceRoot":"","sources":["../../../../src/components/visually-hidden/test/visually-hidden.test.ts"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thanks Shoelace!
|
|
3
|
-
* Source: https://github.com/shoelace-style/shoelace/blob/next/src/internal/slot.ts
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* A reactive controller that determines when slots exist.
|
|
7
|
-
*/
|
|
8
|
-
class HasSlotController {
|
|
9
|
-
constructor(host, slotNames) {
|
|
10
|
-
this.handleSlotChange = (event) => {
|
|
11
|
-
const slot = event.target;
|
|
12
|
-
if (slot instanceof HTMLSlotElement &&
|
|
13
|
-
((this.slotNames.includes("[default]") && !slot.name) ||
|
|
14
|
-
(slot.name && this.slotNames.includes(slot.name)))) {
|
|
15
|
-
this.host.requestUpdate();
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
this.host = host;
|
|
19
|
-
host.addController(this);
|
|
20
|
-
this.slotNames = slotNames;
|
|
21
|
-
}
|
|
22
|
-
hasDefaultSlot() {
|
|
23
|
-
return [...this.host.childNodes].some((node) => {
|
|
24
|
-
if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== "") {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
if (node.nodeType === node.ELEMENT_NODE) {
|
|
28
|
-
const el = node;
|
|
29
|
-
// If it doesn't have a slot attribute, it's part of the default slot
|
|
30
|
-
if (!el.hasAttribute("slot")) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return false;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
hasNamedSlot(name) {
|
|
38
|
-
return this.host.querySelector(`:scope > [slot="${name}"]`) !== null;
|
|
39
|
-
}
|
|
40
|
-
test(slotName) {
|
|
41
|
-
return slotName === "[default]"
|
|
42
|
-
? this.hasDefaultSlot()
|
|
43
|
-
: this.hasNamedSlot(slotName);
|
|
44
|
-
}
|
|
45
|
-
hostConnected() {
|
|
46
|
-
this.host.shadowRoot.addEventListener("slotchange", this.handleSlotChange);
|
|
47
|
-
}
|
|
48
|
-
hostDisconnected() {
|
|
49
|
-
this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export { HasSlotController as H };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Thanks Shoelace!
|
|
5
|
-
* Source: https://github.com/shoelace-style/shoelace/blob/next/src/internal/slot.ts
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A reactive controller that determines when slots exist.
|
|
10
|
-
*/
|
|
11
|
-
declare class HasSlotController implements ReactiveController {
|
|
12
|
-
host: ReactiveControllerHost & Element;
|
|
13
|
-
slotNames: string[];
|
|
14
|
-
constructor(host: ReactiveControllerHost & Element, slotNames: string[]);
|
|
15
|
-
private hasDefaultSlot;
|
|
16
|
-
private hasNamedSlot;
|
|
17
|
-
test(slotName: string): boolean;
|
|
18
|
-
hostConnected(): void;
|
|
19
|
-
hostDisconnected(): void;
|
|
20
|
-
private handleSlotChange;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { HasSlotController as H };
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0CAA0C,CAAA;AACxD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,mCAAmC,CAAA;AACjD,cAAc,wCAAwC,CAAA;AACtD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA;AACjD,cAAc,sCAAsC,CAAA;AACpD,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,uCAAuC,CAAA;AACrD,cAAc,yCAAyC,CAAA;AACvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,0CAA0C,CAAA;AACxD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sCAAsC,CAAA;AACpD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,qBAAqB,CAAA"}
|
package/dist/lib/LeuElement.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
export declare class LeuElement extends LitElement {
|
|
3
|
-
static version: string;
|
|
4
|
-
static dependencies: Record<string, typeof LeuElement>;
|
|
5
|
-
static styles: CSSResultGroup;
|
|
6
|
-
static define(name: string, constructor?: typeof LeuElement, options?: ElementDefinitionOptions): void;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=LeuElement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LeuElement.d.ts","sourceRoot":"","sources":["../../src/lib/LeuElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAGhD,qBAAa,UAAW,SAAQ,UAAU;IACxC,MAAM,CAAC,OAAO,SAAkB;IAEhC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,UAAU,CAAC,CAAK;IAE3D,MAAM,CAAC,MAAM,EAAE,cAAc,CAAe;IAE5C,MAAM,CAAC,MAAM,CACX,IAAI,EAAE,MAAM,EACZ,WAAW,oBAAO,EAClB,OAAO,GAAE,wBAA6B;CA6BzC"}
|
package/dist/lib/a11y.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All roles that are associated with a aria-checked attribute
|
|
3
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-checked
|
|
4
|
-
*/
|
|
5
|
-
export declare const ARIA_CHECKED_ROLES: readonly ["checkbox", "menuitemcheckbox", "menuitemradio", "option", "radio", "switch"];
|
|
6
|
-
/**
|
|
7
|
-
* All roles that are associated with a aria-selected attribute
|
|
8
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected
|
|
9
|
-
*/
|
|
10
|
-
export declare const ARIA_SELECTED_ROLES: readonly ["gridcell", "option", "row", "tab", "columnheader", "rowheader", "treeitem"];
|
|
11
|
-
//# sourceMappingURL=a11y.d.ts.map
|
package/dist/lib/a11y.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../src/lib/a11y.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,yFAOrB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,mBAAmB,wFAQtB,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Thanks Shoelace!
|
|
3
|
-
* Source: https://github.com/shoelace-style/shoelace/blob/next/src/internal/slot.ts
|
|
4
|
-
*/
|
|
5
|
-
import { ReactiveController, ReactiveControllerHost } from "lit";
|
|
6
|
-
/**
|
|
7
|
-
* A reactive controller that determines when slots exist.
|
|
8
|
-
*/
|
|
9
|
-
export declare class HasSlotController implements ReactiveController {
|
|
10
|
-
host: ReactiveControllerHost & Element;
|
|
11
|
-
slotNames: string[];
|
|
12
|
-
constructor(host: ReactiveControllerHost & Element, slotNames: string[]);
|
|
13
|
-
private hasDefaultSlot;
|
|
14
|
-
private hasNamedSlot;
|
|
15
|
-
test(slotName: string): boolean;
|
|
16
|
-
hostConnected(): void;
|
|
17
|
-
hostDisconnected(): void;
|
|
18
|
-
private handleSlotChange;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=hasSlotController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hasSlotController.d.ts","sourceRoot":"","sources":["../../src/lib/hasSlotController.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAA;AAEhE;;GAEG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAA;IAEtC,SAAS,EAAE,MAAM,EAAE,CAAA;gBAEP,IAAI,EAAE,sBAAsB,GAAG,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE;IAOvE,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,YAAY;IAIpB,IAAI,CAAC,QAAQ,EAAE,MAAM;IAMrB,aAAa;IAIb,gBAAgB;IAOhB,OAAO,CAAC,gBAAgB,CAUvB;CACF"}
|
package/dist/lib/styleMap.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The original lit styleMap directive is not compatible with a strict style-src content security policy.
|
|
3
|
-
* There is an an open issue about this in the lit repository:
|
|
4
|
-
* https://github.com/lit/lit/issues/4719
|
|
5
|
-
*
|
|
6
|
-
* This file contains a custom implementation of the styleMap directive that bypasses
|
|
7
|
-
* the render method and directly updates the styles using the .style.setProperty and
|
|
8
|
-
* .style.removeProperty methods.
|
|
9
|
-
*
|
|
10
|
-
* In the original implementation, the render method returns a string that is set as the
|
|
11
|
-
* value of the style attribute. This approach is blocked by strict CSPs that disallow
|
|
12
|
-
* inline styles.
|
|
13
|
-
*
|
|
14
|
-
* As we don't support SSR in this library, we can safely skip the render method.
|
|
15
|
-
*/
|
|
16
|
-
import { AttributePart } from "lit";
|
|
17
|
-
import { Directive, DirectiveParameters, PartInfo } from "lit/directive.js";
|
|
18
|
-
/**
|
|
19
|
-
* A key-value set of CSS properties and values.
|
|
20
|
-
*
|
|
21
|
-
* The key should be either a valid CSS property name string, like
|
|
22
|
-
* `'background-color'`, or a valid JavaScript camel case property name
|
|
23
|
-
* for CSSStyleDeclaration like `backgroundColor`.
|
|
24
|
-
*/
|
|
25
|
-
export interface StyleInfo {
|
|
26
|
-
[name: string]: string | number | undefined | null;
|
|
27
|
-
}
|
|
28
|
-
declare class StyleMapDirective extends Directive {
|
|
29
|
-
private _previousStyleProperties?;
|
|
30
|
-
constructor(partInfo: PartInfo);
|
|
31
|
-
render(_styleInfo: Readonly<StyleInfo>): symbol;
|
|
32
|
-
update(part: AttributePart, [styleInfo]: DirectiveParameters<this>): symbol;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* !A custom implementation of lit's `styleMap` directive!
|
|
36
|
-
* A directive that applies CSS properties to an element.
|
|
37
|
-
*
|
|
38
|
-
* `styleMap` can only be used in the `style` attribute and must be the only
|
|
39
|
-
* expression in the attribute. It takes the property names in the
|
|
40
|
-
* {@link StyleInfo styleInfo} object and adds the properties to the inline
|
|
41
|
-
* style of the element.
|
|
42
|
-
*
|
|
43
|
-
* Property names with dashes (`-`) are assumed to be valid CSS
|
|
44
|
-
* property names and set on the element's style object using `setProperty()`.
|
|
45
|
-
* Names without dashes are assumed to be camelCased JavaScript property names
|
|
46
|
-
* and set on the element's style object using property assignment, allowing the
|
|
47
|
-
* style object to translate JavaScript-style names to CSS property names.
|
|
48
|
-
*
|
|
49
|
-
* For example `styleMap({backgroundColor: 'red', 'border-top': '5px', '--size':
|
|
50
|
-
* '0'})` sets the `background-color`, `border-top` and `--size` properties.
|
|
51
|
-
*
|
|
52
|
-
* @param styleInfo
|
|
53
|
-
* @see {@link https://lit.dev/docs/templates/directives/#stylemap styleMap code samples on Lit.dev}
|
|
54
|
-
*/
|
|
55
|
-
export declare const styleMap: (_styleInfo: Readonly<StyleInfo>) => import("lit-html/directive.js").DirectiveResult<typeof StyleMapDirective>;
|
|
56
|
-
/**
|
|
57
|
-
* The type of the class that powers this directive. Necessary for naming the
|
|
58
|
-
* directive's return type.
|
|
59
|
-
*/
|
|
60
|
-
export type { StyleMapDirective };
|
|
61
|
-
//# sourceMappingURL=styleMap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styleMap.d.ts","sourceRoot":"","sources":["../../src/lib/styleMap.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAqB,MAAM,KAAK,CAAA;AACtD,OAAO,EAEL,SAAS,EACT,mBAAmB,EACnB,QAAQ,EAET,MAAM,kBAAkB,CAAA;AAEzB;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CACnD;AAQD,cAAM,iBAAkB,SAAQ,SAAS;IACvC,OAAO,CAAC,wBAAwB,CAAC,CAAa;gBAElC,QAAQ,EAAE,QAAQ;IAc9B,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,SAAS,CAAC;IAI7B,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC;CA4C5E;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ,gHAA+B,CAAA;AAEpD;;;GAGG;AACH,YAAY,EAAE,iBAAiB,EAAE,CAAA"}
|
package/dist/lib/utils.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Return a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
|
|
3
|
-
* @param {Function} func - Your function
|
|
4
|
-
* @param {Number} timeout - Default is 500 ms
|
|
5
|
-
* @returns {Function} - Your function wrapped in a timeout function
|
|
6
|
-
*/
|
|
7
|
-
export declare const debounce: (func: any, timeout?: number) => (...args: any[]) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Return a throttled function that only invokes func at most once per every wait milliseconds.
|
|
10
|
-
* @param {Function} func - Your function
|
|
11
|
-
* @param {Number} timeout - Default is 500 ms
|
|
12
|
-
* @returns {Function} - Your function wrapped in a timeout function
|
|
13
|
-
*/
|
|
14
|
-
export declare const throttle: (func: any, timeout?: number) => (...args: any[]) => void;
|
|
15
|
-
/**
|
|
16
|
-
* Clamp a number between a minimum and maximum value.
|
|
17
|
-
*/
|
|
18
|
-
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
19
|
-
/**
|
|
20
|
-
* Check if a value is a finite number.
|
|
21
|
-
*/
|
|
22
|
-
export declare const isNumber: (value: unknown) => value is number;
|
|
23
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/dist/lib/utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,2DAQpB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,2DAUpB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,UAAW,MAAM,OAAO,MAAM,OAAO,MAAM,WACxB,CAAA;AAErC;;GAEG;AACH,eAAO,MAAM,QAAQ,UAAW,OAAO,KAAG,KAAK,IAAI,MACE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.stories.d.ts","sourceRoot":"","sources":["../../src/styles/style.stories.ts"],"names":[],"mappings":";;;AAEA,wBAEC;AA0DD,eAAO,MAAM,OAAO,KAAoB,CAAA"}
|
package/dist/utils-DBGsNSJW.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Return a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
|
|
3
|
-
* @param {Function} func - Your function
|
|
4
|
-
* @param {Number} timeout - Default is 500 ms
|
|
5
|
-
* @returns {Function} - Your function wrapped in a timeout function
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Return a throttled function that only invokes func at most once per every wait milliseconds.
|
|
9
|
-
* @param {Function} func - Your function
|
|
10
|
-
* @param {Number} timeout - Default is 500 ms
|
|
11
|
-
* @returns {Function} - Your function wrapped in a timeout function
|
|
12
|
-
*/
|
|
13
|
-
const throttle = function throttle(func, timeout = 500) {
|
|
14
|
-
let timer = null;
|
|
15
|
-
return (...args) => {
|
|
16
|
-
if (timer === null) {
|
|
17
|
-
func(...args);
|
|
18
|
-
timer = setTimeout(() => {
|
|
19
|
-
timer = null;
|
|
20
|
-
}, timeout);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Clamp a number between a minimum and maximum value.
|
|
26
|
-
*/
|
|
27
|
-
const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
28
|
-
/**
|
|
29
|
-
* Check if a value is a finite number.
|
|
30
|
-
*/
|
|
31
|
-
const isNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
32
|
-
|
|
33
|
-
export { clamp as c, isNumber as i, throttle as t };
|