@infonomic/uikit 6.9.1 → 7.1.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/README.md +186 -5
- package/dist/classes/accordion.d.ts +1 -0
- package/dist/classes/accordion.js +1 -0
- package/dist/classes/alert.d.ts +1 -0
- package/dist/classes/alert.js +1 -0
- package/dist/classes/autocomplete.d.ts +1 -0
- package/dist/classes/autocomplete.js +1 -0
- package/dist/classes/avatar.d.ts +1 -0
- package/dist/classes/avatar.js +1 -0
- package/dist/classes/badge.d.ts +1 -0
- package/dist/classes/badge.js +1 -0
- package/dist/classes/button-group.d.ts +1 -0
- package/dist/classes/button-group.js +1 -0
- package/dist/classes/button.d.ts +1 -0
- package/dist/classes/button.js +1 -0
- package/dist/classes/card.d.ts +1 -0
- package/dist/classes/card.js +1 -0
- package/dist/classes/checkbox-group.d.ts +1 -0
- package/dist/classes/checkbox-group.js +1 -0
- package/dist/classes/checkbox.d.ts +1 -0
- package/dist/classes/checkbox.js +1 -0
- package/dist/classes/chip.d.ts +1 -0
- package/dist/classes/chip.js +1 -0
- package/dist/classes/combo-button.d.ts +1 -0
- package/dist/classes/combo-button.js +1 -0
- package/dist/classes/container.d.ts +1 -0
- package/dist/classes/container.js +1 -0
- package/dist/classes/control-buttons.d.ts +1 -0
- package/dist/classes/control-buttons.js +1 -0
- package/dist/classes/copy-button.d.ts +1 -0
- package/dist/classes/copy-button.js +1 -0
- package/dist/classes/datepicker.d.ts +1 -0
- package/dist/classes/datepicker.js +1 -0
- package/dist/classes/drawer.d.ts +1 -0
- package/dist/classes/drawer.js +1 -0
- package/dist/classes/dropdown.d.ts +1 -0
- package/dist/classes/dropdown.js +1 -0
- package/dist/classes/ellipses.d.ts +1 -0
- package/dist/classes/ellipses.js +1 -0
- package/dist/classes/error-text.d.ts +1 -0
- package/dist/classes/error-text.js +1 -0
- package/dist/classes/hamburger.d.ts +1 -0
- package/dist/classes/hamburger.js +1 -0
- package/dist/classes/help-text.d.ts +1 -0
- package/dist/classes/help-text.js +1 -0
- package/dist/classes/input-adornment.d.ts +1 -0
- package/dist/classes/input-adornment.js +1 -0
- package/dist/classes/input-password.d.ts +1 -0
- package/dist/classes/input-password.js +1 -0
- package/dist/classes/input.d.ts +1 -0
- package/dist/classes/input.js +1 -0
- package/dist/classes/label.d.ts +1 -0
- package/dist/classes/label.js +1 -0
- package/dist/classes/modal.d.ts +1 -0
- package/dist/classes/modal.js +1 -0
- package/dist/classes/pagination.d.ts +1 -0
- package/dist/classes/pagination.js +1 -0
- package/dist/classes/radio-group.d.ts +1 -0
- package/dist/classes/radio-group.js +1 -0
- package/dist/classes/ring.d.ts +1 -0
- package/dist/classes/ring.js +1 -0
- package/dist/classes/scroll-area.d.ts +1 -0
- package/dist/classes/scroll-area.js +1 -0
- package/dist/classes/scroll-to-top.d.ts +1 -0
- package/dist/classes/scroll-to-top.js +1 -0
- package/dist/classes/section.d.ts +1 -0
- package/dist/classes/section.js +1 -0
- package/dist/classes/select.d.ts +1 -0
- package/dist/classes/select.js +1 -0
- package/dist/classes/shimmer.d.ts +1 -0
- package/dist/classes/shimmer.js +1 -0
- package/dist/classes/spinner.d.ts +1 -0
- package/dist/classes/spinner.js +1 -0
- package/dist/classes/table.d.ts +1 -0
- package/dist/classes/table.js +1 -0
- package/dist/classes/tabs.d.ts +1 -0
- package/dist/classes/tabs.js +1 -0
- package/dist/classes/text-area.d.ts +1 -0
- package/dist/classes/text-area.js +1 -0
- package/dist/classes/timeline.d.ts +1 -0
- package/dist/classes/timeline.js +1 -0
- package/dist/classes/toast.d.ts +1 -0
- package/dist/classes/toast.js +1 -0
- package/dist/classes/tooltip.d.ts +1 -0
- package/dist/classes/tooltip.js +1 -0
- package/dist/components/@types/contract.d.ts +69 -0
- package/dist/components/@types/contract.d.ts.map +1 -0
- package/dist/components/@types/contract.js +1 -0
- package/dist/components/accordion/accordion.classes.d.ts +18 -0
- package/dist/components/accordion/accordion.classes.d.ts.map +1 -0
- package/dist/components/accordion/accordion.classes.js +12 -0
- package/dist/components/accordion/accordion.contract.d.ts +33 -0
- package/dist/components/accordion/accordion.contract.d.ts.map +1 -0
- package/dist/components/accordion/accordion.contract.js +38 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +6 -6
- package/dist/components/accordion/accordion.module.css +16 -5
- package/dist/components/accordion/accordion.module.css.d.ts +9 -0
- package/dist/components/accordion/accordion.module.d.css.ts +9 -0
- package/dist/components/accordion/accordion_module.css +4 -6
- package/dist/components/avatar/avatar.classes.d.ts +17 -0
- package/dist/components/avatar/avatar.classes.d.ts.map +1 -0
- package/dist/components/avatar/avatar.classes.js +11 -0
- package/dist/components/avatar/avatar.contract.d.ts +27 -0
- package/dist/components/avatar/avatar.contract.d.ts.map +1 -0
- package/dist/components/avatar/avatar.contract.js +27 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +5 -6
- package/dist/components/avatar/avatar.module.css.d.ts +11 -0
- package/dist/components/avatar/avatar.module.d.css.ts +11 -0
- package/dist/components/badge/badge.classes.d.ts +16 -0
- package/dist/components/badge/badge.classes.d.ts.map +1 -0
- package/dist/components/badge/badge.classes.js +10 -0
- package/dist/components/badge/badge.contract.d.ts +23 -0
- package/dist/components/badge/badge.contract.d.ts.map +1 -0
- package/dist/components/badge/badge.contract.js +23 -0
- package/dist/components/badge/badge.js +4 -2
- package/dist/components/badge/badge.module.css.d.ts +11 -0
- package/dist/components/badge/badge.module.d.css.ts +11 -0
- package/dist/components/button/button-group.classes.d.ts +14 -0
- package/dist/components/button/button-group.classes.d.ts.map +1 -0
- package/dist/components/button/button-group.classes.js +8 -0
- package/dist/components/button/button-group.contract.d.ts +12 -0
- package/dist/components/button/button-group.contract.d.ts.map +1 -0
- package/dist/components/button/button-group.contract.js +12 -0
- package/dist/components/button/button-group.js +2 -2
- package/dist/components/button/button-group.module.css.d.ts +5 -0
- package/dist/components/button/button-group.module.d.css.ts +5 -0
- package/dist/components/button/button.astro +17 -19
- package/dist/components/button/button.classes.d.ts +24 -0
- package/dist/components/button/button.classes.d.ts.map +1 -0
- package/dist/components/button/button.classes.js +14 -0
- package/dist/components/button/button.contract.d.ts +45 -0
- package/dist/components/button/button.contract.d.ts.map +1 -0
- package/dist/components/button/button.contract.js +47 -0
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +9 -5
- package/dist/components/button/button.module.css +12 -0
- package/dist/components/button/button.module.css.d.ts +25 -0
- package/dist/components/button/button.module.d.css.ts +25 -0
- package/dist/components/button/button_module.css +6 -6
- package/dist/components/button/combo-button.classes.d.ts +30 -0
- package/dist/components/button/combo-button.classes.d.ts.map +1 -0
- package/dist/components/button/combo-button.classes.js +19 -0
- package/dist/components/button/combo-button.contract.d.ts +46 -0
- package/dist/components/button/combo-button.contract.d.ts.map +1 -0
- package/dist/components/button/combo-button.contract.js +48 -0
- package/dist/components/button/combo-button.d.ts.map +1 -1
- package/dist/components/button/combo-button.js +11 -11
- package/dist/components/button/combo-button.module.css +6 -2
- package/dist/components/button/combo-button.module.css.d.ts +17 -0
- package/dist/components/button/combo-button.module.d.css.ts +17 -0
- package/dist/components/button/combo-button_module.css +2 -2
- package/dist/components/button/control-buttons.classes.d.ts +26 -0
- package/dist/components/button/control-buttons.classes.d.ts.map +1 -0
- package/dist/components/button/control-buttons.classes.js +18 -0
- package/dist/components/button/control-buttons.contract.d.ts +60 -0
- package/dist/components/button/control-buttons.contract.d.ts.map +1 -0
- package/dist/components/button/control-buttons.contract.js +49 -0
- package/dist/components/button/control-buttons.d.ts.map +1 -1
- package/dist/components/button/control-buttons.js +14 -7
- package/dist/components/button/control-buttons.module.css +43 -17
- package/dist/components/button/control-buttons.module.css.d.ts +19 -0
- package/dist/components/button/control-buttons.module.d.css.ts +19 -0
- package/dist/components/button/control-buttons_module.css +17 -17
- package/dist/components/button/copy-button.classes.d.ts +20 -0
- package/dist/components/button/copy-button.classes.d.ts.map +1 -0
- package/dist/components/button/copy-button.classes.js +11 -0
- package/dist/components/button/copy-button.contract.d.ts +26 -0
- package/dist/components/button/copy-button.contract.d.ts.map +1 -0
- package/dist/components/button/copy-button.contract.js +26 -0
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +5 -3
- package/dist/components/button/copy-button.module.css.d.ts +12 -0
- package/dist/components/button/copy-button.module.d.css.ts +12 -0
- package/dist/components/button/icon-button.astro +3 -3
- package/dist/components/button/icon-button.js +5 -3
- package/dist/components/card/card-content.astro +2 -2
- package/dist/components/card/card-description.astro +2 -2
- package/dist/components/card/card-footer.astro +2 -2
- package/dist/components/card/card-header.astro +2 -2
- package/dist/components/card/card-title.astro +2 -2
- package/dist/components/card/card.astro +3 -3
- package/dist/components/card/card.classes.d.ts +23 -0
- package/dist/components/card/card.classes.d.ts.map +1 -0
- package/dist/components/card/card.classes.js +15 -0
- package/dist/components/card/card.contract.d.ts +42 -0
- package/dist/components/card/card.contract.d.ts.map +1 -0
- package/dist/components/card/card.contract.js +42 -0
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +9 -8
- package/dist/components/card/card.module.css.d.ts +16 -0
- package/dist/components/card/card.module.d.css.ts +16 -0
- package/dist/components/chips/chip.classes.d.ts +37 -0
- package/dist/components/chips/chip.classes.d.ts.map +1 -0
- package/dist/components/chips/chip.classes.js +16 -0
- package/dist/components/chips/chip.contract.d.ts +57 -0
- package/dist/components/chips/chip.contract.d.ts.map +1 -0
- package/dist/components/chips/chip.contract.js +59 -0
- package/dist/components/chips/chip.js +13 -9
- package/dist/components/chips/chip.module.css +45 -0
- package/dist/components/chips/chip.module.css.d.ts +26 -0
- package/dist/components/chips/chip.module.d.css.ts +26 -0
- package/dist/components/chips/chip_module.css +26 -5
- package/dist/components/container/container.astro +2 -2
- package/dist/components/container/container.classes.d.ts +14 -0
- package/dist/components/container/container.classes.d.ts.map +1 -0
- package/dist/components/container/container.classes.js +8 -0
- package/dist/components/container/container.contract.d.ts +12 -0
- package/dist/components/container/container.contract.d.ts.map +1 -0
- package/dist/components/container/container.contract.js +12 -0
- package/dist/components/container/container.js +2 -2
- package/dist/components/container/container.module.css.d.ts +4 -0
- package/dist/components/container/container.module.d.css.ts +4 -0
- package/dist/components/dropdown/dropdown.classes.d.ts +21 -0
- package/dist/components/dropdown/dropdown.classes.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.classes.js +15 -0
- package/dist/components/dropdown/dropdown.contract.d.ts +46 -0
- package/dist/components/dropdown/dropdown.contract.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.contract.js +53 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.js +9 -9
- package/dist/components/dropdown/dropdown.module.css +11 -0
- package/dist/components/dropdown/dropdown.module.css.d.ts +15 -0
- package/dist/components/dropdown/dropdown.module.d.css.ts +15 -0
- package/dist/components/dropdown/dropdown_module.css +5 -0
- package/dist/components/hamburger/hamburger.astro +4 -6
- package/dist/components/hamburger/hamburger.classes.d.ts +26 -0
- package/dist/components/hamburger/hamburger.classes.d.ts.map +1 -0
- package/dist/components/hamburger/hamburger.classes.js +13 -0
- package/dist/components/hamburger/hamburger.contract.d.ts +31 -0
- package/dist/components/hamburger/hamburger.contract.d.ts.map +1 -0
- package/dist/components/hamburger/hamburger.contract.js +31 -0
- package/dist/components/hamburger/hamburger.d.ts.map +1 -1
- package/dist/components/hamburger/hamburger.js +7 -8
- package/dist/components/hamburger/hamburger.module.css.d.ts +9 -0
- package/dist/components/hamburger/hamburger.module.d.css.ts +9 -0
- package/dist/components/inputs/@types/checkbox-options.d.ts +38 -0
- package/dist/components/inputs/@types/checkbox-options.d.ts.map +1 -0
- package/dist/components/inputs/@types/checkbox-options.js +10 -0
- package/dist/components/inputs/@types/checkbox.d.ts +2 -33
- package/dist/components/inputs/@types/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/@types/checkbox.js +1 -10
- package/dist/components/inputs/@types/input-options.d.ts +39 -0
- package/dist/components/inputs/@types/input-options.d.ts.map +1 -0
- package/dist/components/inputs/@types/input-options.js +11 -0
- package/dist/components/inputs/@types/input.d.ts +4 -34
- package/dist/components/inputs/@types/input.d.ts.map +1 -1
- package/dist/components/inputs/@types/input.js +1 -11
- package/dist/components/inputs/autocomplete.classes.d.ts +37 -0
- package/dist/components/inputs/autocomplete.classes.d.ts.map +1 -0
- package/dist/components/inputs/autocomplete.classes.js +23 -0
- package/dist/components/inputs/autocomplete.contract.d.ts +89 -0
- package/dist/components/inputs/autocomplete.contract.d.ts.map +1 -0
- package/dist/components/inputs/autocomplete.contract.js +104 -0
- package/dist/components/inputs/autocomplete.d.ts.map +1 -1
- package/dist/components/inputs/autocomplete.js +18 -12
- package/dist/components/inputs/autocomplete.module.css +15 -7
- package/dist/components/inputs/autocomplete.module.css.d.ts +35 -0
- package/dist/components/inputs/autocomplete.module.d.css.ts +35 -0
- package/dist/components/inputs/autocomplete_module.css +8 -8
- package/dist/components/inputs/checkbox-group.classes.d.ts +14 -0
- package/dist/components/inputs/checkbox-group.classes.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group.classes.js +8 -0
- package/dist/components/inputs/checkbox-group.contract.d.ts +12 -0
- package/dist/components/inputs/checkbox-group.contract.d.ts.map +1 -0
- package/dist/components/inputs/checkbox-group.contract.js +12 -0
- package/dist/components/inputs/checkbox-group.js +2 -2
- package/dist/components/inputs/checkbox-group.module.css.d.ts +5 -0
- package/dist/components/inputs/checkbox-group.module.d.css.ts +5 -0
- package/dist/components/inputs/checkbox.astro +39 -15
- package/dist/components/inputs/checkbox.classes.d.ts +36 -0
- package/dist/components/inputs/checkbox.classes.d.ts.map +1 -0
- package/dist/components/inputs/checkbox.classes.js +20 -0
- package/dist/components/inputs/checkbox.contract.d.ts +73 -0
- package/dist/components/inputs/checkbox.contract.d.ts.map +1 -0
- package/dist/components/inputs/checkbox.contract.js +85 -0
- package/dist/components/inputs/checkbox.d.ts +6 -0
- package/dist/components/inputs/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox.js +14 -9
- package/dist/components/inputs/checkbox.module.css +32 -13
- package/dist/components/inputs/checkbox.module.css.d.ts +23 -0
- package/dist/components/inputs/checkbox.module.d.css.ts +23 -0
- package/dist/components/inputs/checkbox.module.js +0 -1
- package/dist/components/inputs/checkbox_module.css +28 -12
- package/dist/components/inputs/error-text.astro +5 -3
- package/dist/components/inputs/error-text.classes.d.ts +16 -0
- package/dist/components/inputs/error-text.classes.d.ts.map +1 -0
- package/dist/components/inputs/error-text.classes.js +10 -0
- package/dist/components/inputs/error-text.contract.d.ts +19 -0
- package/dist/components/inputs/error-text.contract.d.ts.map +1 -0
- package/dist/components/inputs/error-text.contract.js +19 -0
- package/dist/components/inputs/error-text.js +4 -2
- package/dist/components/inputs/error-text.module.css.d.ts +7 -0
- package/dist/components/inputs/error-text.module.d.css.ts +7 -0
- package/dist/components/inputs/help-text.astro +5 -3
- package/dist/components/inputs/help-text.classes.d.ts +16 -0
- package/dist/components/inputs/help-text.classes.d.ts.map +1 -0
- package/dist/components/inputs/help-text.classes.js +10 -0
- package/dist/components/inputs/help-text.contract.d.ts +20 -0
- package/dist/components/inputs/help-text.contract.d.ts.map +1 -0
- package/dist/components/inputs/help-text.contract.js +22 -0
- package/dist/components/inputs/help-text.js +4 -2
- package/dist/components/inputs/help-text.module.css +1 -1
- package/dist/components/inputs/help-text.module.css.d.ts +7 -0
- package/dist/components/inputs/help-text.module.d.css.ts +7 -0
- package/dist/components/inputs/help-text_module.css +1 -1
- package/dist/components/inputs/input-adornment.astro +2 -4
- package/dist/components/inputs/input-adornment.classes.d.ts +15 -0
- package/dist/components/inputs/input-adornment.classes.d.ts.map +1 -0
- package/dist/components/inputs/input-adornment.classes.js +10 -0
- package/dist/components/inputs/input-adornment.contract.d.ts +18 -0
- package/dist/components/inputs/input-adornment.contract.d.ts.map +1 -0
- package/dist/components/inputs/input-adornment.contract.js +18 -0
- package/dist/components/inputs/input-adornment.d.ts.map +1 -1
- package/dist/components/inputs/input-adornment.js +4 -6
- package/dist/components/inputs/input-adornment.module.css.d.ts +6 -0
- package/dist/components/inputs/input-adornment.module.d.css.ts +6 -0
- package/dist/components/inputs/input-password.classes.d.ts +14 -0
- package/dist/components/inputs/input-password.classes.d.ts.map +1 -0
- package/dist/components/inputs/input-password.classes.js +8 -0
- package/dist/components/inputs/input-password.contract.d.ts +12 -0
- package/dist/components/inputs/input-password.contract.d.ts.map +1 -0
- package/dist/components/inputs/input-password.contract.js +12 -0
- package/dist/components/inputs/input-password.d.ts.map +1 -1
- package/dist/components/inputs/input-password.js +2 -3
- package/dist/components/inputs/input-password.module.css.d.ts +4 -0
- package/dist/components/inputs/input-password.module.d.css.ts +4 -0
- package/dist/components/inputs/input.astro +23 -15
- package/dist/components/inputs/input.classes.d.ts +43 -0
- package/dist/components/inputs/input.classes.d.ts.map +1 -0
- package/dist/components/inputs/input.classes.js +25 -0
- package/dist/components/inputs/input.contract.d.ts +100 -0
- package/dist/components/inputs/input.contract.d.ts.map +1 -0
- package/dist/components/inputs/input.contract.js +109 -0
- package/dist/components/inputs/input.d.ts.map +1 -1
- package/dist/components/inputs/input.js +20 -12
- package/dist/components/inputs/input.module.css +16 -14
- package/dist/components/inputs/input.module.css.d.ts +33 -0
- package/dist/components/inputs/input.module.d.css.ts +33 -0
- package/dist/components/inputs/input_module.css +13 -15
- package/dist/components/inputs/label.astro +5 -4
- package/dist/components/inputs/label.classes.d.ts +23 -0
- package/dist/components/inputs/label.classes.d.ts.map +1 -0
- package/dist/components/inputs/label.classes.js +11 -0
- package/dist/components/inputs/label.contract.d.ts +25 -0
- package/dist/components/inputs/label.contract.d.ts.map +1 -0
- package/dist/components/inputs/label.contract.js +27 -0
- package/dist/components/inputs/label.d.ts +3 -1
- package/dist/components/inputs/label.d.ts.map +1 -1
- package/dist/components/inputs/label.js +6 -4
- package/dist/components/inputs/label.module.css +21 -1
- package/dist/components/inputs/label.module.css.d.ts +8 -0
- package/dist/components/inputs/label.module.d.css.ts +8 -0
- package/dist/components/inputs/label.module.js +3 -0
- package/dist/components/inputs/label_module.css +9 -1
- package/dist/components/inputs/radio-group.classes.d.ts +27 -0
- package/dist/components/inputs/radio-group.classes.d.ts.map +1 -0
- package/dist/components/inputs/radio-group.classes.js +16 -0
- package/dist/components/inputs/radio-group.contract.d.ts +50 -0
- package/dist/components/inputs/radio-group.contract.d.ts.map +1 -0
- package/dist/components/inputs/radio-group.contract.js +55 -0
- package/dist/components/inputs/radio-group.js +10 -6
- package/dist/components/inputs/radio-group.module.css.d.ts +19 -0
- package/dist/components/inputs/radio-group.module.d.css.ts +19 -0
- package/dist/components/inputs/select.classes.d.ts +28 -0
- package/dist/components/inputs/select.classes.d.ts.map +1 -0
- package/dist/components/inputs/select.classes.js +16 -0
- package/dist/components/inputs/select.contract.d.ts +51 -0
- package/dist/components/inputs/select.contract.d.ts.map +1 -0
- package/dist/components/inputs/select.contract.js +54 -0
- package/dist/components/inputs/select.d.ts.map +1 -1
- package/dist/components/inputs/select.js +11 -9
- package/dist/components/inputs/select.module.css +26 -13
- package/dist/components/inputs/select.module.css.d.ts +22 -0
- package/dist/components/inputs/select.module.d.css.ts +22 -0
- package/dist/components/inputs/select_module.css +11 -11
- package/dist/components/inputs/text-area.astro +4 -9
- package/dist/components/inputs/text-area.classes.d.ts +22 -0
- package/dist/components/inputs/text-area.classes.d.ts.map +1 -0
- package/dist/components/inputs/text-area.classes.js +20 -0
- package/dist/components/inputs/text-area.contract.d.ts +23 -0
- package/dist/components/inputs/text-area.contract.d.ts.map +1 -0
- package/dist/components/inputs/text-area.contract.js +25 -0
- package/dist/components/inputs/text-area.d.ts.map +1 -1
- package/dist/components/inputs/text-area.js +8 -6
- package/dist/components/inputs/text-area.module.css +7 -5
- package/dist/components/inputs/text-area.module.css.d.ts +6 -0
- package/dist/components/inputs/text-area.module.d.css.ts +6 -0
- package/dist/components/inputs/text-area_module.css +2 -2
- package/dist/components/notifications/alert.classes.d.ts +27 -0
- package/dist/components/notifications/alert.classes.d.ts.map +1 -0
- package/dist/components/notifications/alert.classes.js +17 -0
- package/dist/components/notifications/alert.contract.d.ts +56 -0
- package/dist/components/notifications/alert.contract.d.ts.map +1 -0
- package/dist/components/notifications/alert.contract.js +56 -0
- package/dist/components/notifications/alert.d.ts.map +1 -1
- package/dist/components/notifications/alert.js +16 -15
- package/dist/components/notifications/alert.module.css.d.ts +19 -0
- package/dist/components/notifications/alert.module.d.css.ts +19 -0
- package/dist/components/notifications/toast.classes.d.ts +26 -0
- package/dist/components/notifications/toast.classes.d.ts.map +1 -0
- package/dist/components/notifications/toast.classes.js +17 -0
- package/dist/components/notifications/toast.contract.d.ts +57 -0
- package/dist/components/notifications/toast.contract.d.ts.map +1 -0
- package/dist/components/notifications/toast.contract.js +64 -0
- package/dist/components/notifications/toast.d.ts.map +1 -1
- package/dist/components/notifications/toast.js +10 -8
- package/dist/components/notifications/toast.module.css +16 -4
- package/dist/components/notifications/toast.module.css.d.ts +19 -0
- package/dist/components/notifications/toast.module.d.css.ts +19 -0
- package/dist/components/notifications/toast_module.css +8 -4
- package/dist/components/pager/ellipses.js +2 -2
- package/dist/components/pager/first-button.js +6 -3
- package/dist/components/pager/last-button.js +6 -3
- package/dist/components/pager/next-button.js +6 -7
- package/dist/components/pager/number-button.js +8 -10
- package/dist/components/pager/pagination.classes.d.ts +38 -0
- package/dist/components/pager/pagination.classes.d.ts.map +1 -0
- package/dist/components/pager/pagination.classes.js +26 -0
- package/dist/components/pager/pagination.contract.d.ts +132 -0
- package/dist/components/pager/pagination.contract.d.ts.map +1 -0
- package/dist/components/pager/pagination.contract.js +109 -0
- package/dist/components/pager/pagination.d.ts.map +1 -1
- package/dist/components/pager/pagination.js +5 -3
- package/dist/components/pager/pagination.module.css +121 -15
- package/dist/components/pager/pagination.module.css.d.ts +28 -0
- package/dist/components/pager/pagination.module.d.css.ts +28 -0
- package/dist/components/pager/pagination_module.css +117 -12
- package/dist/components/pager/previous-button.js +6 -5
- package/dist/components/scroll-area/scroll-area.classes.d.ts +18 -0
- package/dist/components/scroll-area/scroll-area.classes.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.classes.js +12 -0
- package/dist/components/scroll-area/scroll-area.contract.d.ts +33 -0
- package/dist/components/scroll-area/scroll-area.contract.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.contract.js +35 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +8 -8
- package/dist/components/scroll-area/scroll-area.module.css.d.ts +8 -0
- package/dist/components/scroll-area/scroll-area.module.d.css.ts +8 -0
- package/dist/components/scroll-to-top/scroll-to-top.astro +15 -7
- package/dist/components/scroll-to-top/scroll-to-top.classes.d.ts +16 -0
- package/dist/components/scroll-to-top/scroll-to-top.classes.d.ts.map +1 -0
- package/dist/components/scroll-to-top/scroll-to-top.classes.js +10 -0
- package/dist/components/scroll-to-top/scroll-to-top.contract.d.ts +17 -0
- package/dist/components/scroll-to-top/scroll-to-top.contract.d.ts.map +1 -0
- package/dist/components/scroll-to-top/scroll-to-top.contract.js +17 -0
- package/dist/components/scroll-to-top/scroll-to-top.d.ts.map +1 -1
- package/dist/components/scroll-to-top/scroll-to-top.js +4 -5
- package/dist/components/scroll-to-top/scroll-to-top.module.css.d.ts +7 -0
- package/dist/components/scroll-to-top/scroll-to-top.module.d.css.ts +7 -0
- package/dist/components/section/section.astro +2 -2
- package/dist/components/section/section.classes.d.ts +14 -0
- package/dist/components/section/section.classes.d.ts.map +1 -0
- package/dist/components/section/section.classes.js +8 -0
- package/dist/components/section/section.contract.d.ts +12 -0
- package/dist/components/section/section.contract.d.ts.map +1 -0
- package/dist/components/section/section.contract.js +12 -0
- package/dist/components/section/section.js +2 -2
- package/dist/components/section/section.module.css.d.ts +4 -0
- package/dist/components/section/section.module.d.css.ts +4 -0
- package/dist/components/shimmer/shimmer.classes.d.ts +23 -0
- package/dist/components/shimmer/shimmer.classes.d.ts.map +1 -0
- package/dist/components/shimmer/shimmer.classes.js +11 -0
- package/dist/components/shimmer/shimmer.contract.d.ts +24 -0
- package/dist/components/shimmer/shimmer.contract.d.ts.map +1 -0
- package/dist/components/shimmer/shimmer.contract.js +24 -0
- package/dist/components/shimmer/shimmer.d.ts.map +1 -1
- package/dist/components/shimmer/shimmer.js +8 -14
- package/dist/components/shimmer/shimmer.module.css.d.ts +8 -0
- package/dist/components/shimmer/shimmer.module.d.css.ts +8 -0
- package/dist/components/table/table.classes.d.ts +22 -0
- package/dist/components/table/table.classes.d.ts.map +1 -0
- package/dist/components/table/table.classes.js +16 -0
- package/dist/components/table/table.contract.d.ts +51 -0
- package/dist/components/table/table.contract.d.ts.map +1 -0
- package/dist/components/table/table.contract.js +51 -0
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +10 -10
- package/dist/components/table/table.module.css.d.ts +18 -0
- package/dist/components/table/table.module.d.css.ts +18 -0
- package/dist/components/tabs/tabs.classes.d.ts +17 -0
- package/dist/components/tabs/tabs.classes.d.ts.map +1 -0
- package/dist/components/tabs/tabs.classes.js +11 -0
- package/dist/components/tabs/tabs.contract.d.ts +28 -0
- package/dist/components/tabs/tabs.contract.d.ts.map +1 -0
- package/dist/components/tabs/tabs.contract.js +31 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.js +5 -5
- package/dist/components/tabs/tabs.module.css +9 -0
- package/dist/components/tabs/tabs.module.css.d.ts +11 -0
- package/dist/components/tabs/tabs.module.d.css.ts +11 -0
- package/dist/components/tabs/tabs_module.css +1 -1
- package/dist/components/tooltip/tooltip.classes.d.ts +18 -0
- package/dist/components/tooltip/tooltip.classes.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.classes.js +12 -0
- package/dist/components/tooltip/tooltip.contract.d.ts +34 -0
- package/dist/components/tooltip/tooltip.contract.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.contract.js +39 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +6 -7
- package/dist/components/tooltip/tooltip.module.css +27 -11
- package/dist/components/tooltip/tooltip.module.css.d.ts +12 -0
- package/dist/components/tooltip/tooltip.module.d.css.ts +12 -0
- package/dist/components/tooltip/tooltip_module.css +7 -7
- package/dist/core/part-classes.d.ts +38 -0
- package/dist/core/part-classes.d.ts.map +1 -0
- package/dist/core/part-classes.js +27 -0
- package/dist/css/accordion.css +53 -0
- package/dist/css/alert.css +130 -0
- package/dist/css/autocomplete.css +314 -0
- package/dist/css/avatar.css +38 -0
- package/dist/css/badge.css +53 -0
- package/dist/css/button-group.css +19 -0
- package/dist/css/button.css +384 -0
- package/dist/css/card.css +64 -0
- package/dist/css/checkbox-group.css +12 -0
- package/dist/css/checkbox.css +238 -0
- package/dist/css/chip.css +338 -0
- package/dist/css/combo-button.css +74 -0
- package/dist/css/container.css +31 -0
- package/dist/css/control-buttons.css +111 -0
- package/dist/css/copy-button.css +51 -0
- package/dist/css/datepicker.css +193 -0
- package/dist/css/drawer.css +167 -0
- package/dist/css/dropdown.css +118 -0
- package/dist/css/ellipses.css +75 -0
- package/dist/css/error-text.css +23 -0
- package/dist/css/hamburger.css +171 -0
- package/dist/css/help-text.css +23 -0
- package/dist/css/input-adornment.css +21 -0
- package/dist/css/input-password.css +25 -0
- package/dist/css/input.css +259 -0
- package/dist/css/label.css +24 -0
- package/dist/css/modal.css +120 -0
- package/dist/css/pagination.css +210 -0
- package/dist/css/radio-group.css +162 -0
- package/dist/css/ring.css +51 -0
- package/dist/css/scroll-area.css +65 -0
- package/dist/css/scroll-to-top.css +102 -0
- package/dist/css/section.css +11 -0
- package/dist/css/select.css +143 -0
- package/dist/css/shimmer.css +49 -0
- package/dist/css/spinner.css +101 -0
- package/dist/css/table.css +93 -0
- package/dist/css/tabs.css +54 -0
- package/dist/css/text-area.css +21 -0
- package/dist/css/timeline.css +85 -0
- package/dist/css/toast.css +218 -0
- package/dist/css/tooltip.css +75 -0
- package/dist/lib/ripple.d.ts +55 -6
- package/dist/lib/ripple.d.ts.map +1 -1
- package/dist/lib/ripple.js +61 -10
- package/dist/loaders/ellipses.classes.d.ts +26 -0
- package/dist/loaders/ellipses.classes.d.ts.map +1 -0
- package/dist/loaders/ellipses.classes.js +15 -0
- package/dist/loaders/ellipses.contract.d.ts +18 -0
- package/dist/loaders/ellipses.contract.d.ts.map +1 -0
- package/dist/loaders/ellipses.contract.js +21 -0
- package/dist/loaders/ellipses.d.ts.map +1 -1
- package/dist/loaders/ellipses.js +8 -6
- package/dist/loaders/ellipses.module.css +8 -4
- package/dist/loaders/ellipses.module.css.d.ts +13 -0
- package/dist/loaders/ellipses.module.d.css.ts +13 -0
- package/dist/loaders/ellipses_module.css +4 -4
- package/dist/loaders/ring.classes.d.ts +26 -0
- package/dist/loaders/ring.classes.d.ts.map +1 -0
- package/dist/loaders/ring.classes.js +15 -0
- package/dist/loaders/ring.contract.d.ts +18 -0
- package/dist/loaders/ring.contract.d.ts.map +1 -0
- package/dist/loaders/ring.contract.js +21 -0
- package/dist/loaders/ring.d.ts.map +1 -1
- package/dist/loaders/ring.js +8 -6
- package/dist/loaders/ring.module.css +6 -3
- package/dist/loaders/ring.module.css.d.ts +7 -0
- package/dist/loaders/ring.module.d.css.ts +7 -0
- package/dist/loaders/ring_module.css +3 -3
- package/dist/loaders/spinner.classes.d.ts +27 -0
- package/dist/loaders/spinner.classes.d.ts.map +1 -0
- package/dist/loaders/spinner.classes.js +16 -0
- package/dist/loaders/spinner.contract.d.ts +23 -0
- package/dist/loaders/spinner.contract.d.ts.map +1 -0
- package/dist/loaders/spinner.contract.js +26 -0
- package/dist/loaders/spinner.d.ts.map +1 -1
- package/dist/loaders/spinner.js +9 -7
- package/dist/loaders/spinner.module.css +24 -12
- package/dist/loaders/spinner.module.css.d.ts +9 -0
- package/dist/loaders/spinner.module.d.css.ts +9 -0
- package/dist/loaders/spinner_module.css +12 -12
- package/dist/styles/components-vanilla.css +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/widgets/datepicker/datepicker.classes.d.ts +35 -0
- package/dist/widgets/datepicker/datepicker.classes.d.ts.map +1 -0
- package/dist/widgets/datepicker/datepicker.classes.js +23 -0
- package/dist/widgets/datepicker/datepicker.contract.d.ts +90 -0
- package/dist/widgets/datepicker/datepicker.contract.d.ts.map +1 -0
- package/dist/widgets/datepicker/datepicker.contract.js +97 -0
- package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
- package/dist/widgets/datepicker/datepicker.js +17 -17
- package/dist/widgets/datepicker/datepicker.module.css +2 -1
- package/dist/widgets/datepicker/datepicker.module.css.d.ts +33 -0
- package/dist/widgets/datepicker/datepicker.module.d.css.ts +33 -0
- package/dist/widgets/datepicker/datepicker_module.css +1 -1
- package/dist/widgets/drawer/drawer-container.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-container.js +2 -2
- package/dist/widgets/drawer/drawer-content.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-content.js +2 -2
- package/dist/widgets/drawer/drawer-header.js +2 -2
- package/dist/widgets/drawer/drawer-top-actions.js +2 -2
- package/dist/widgets/drawer/drawer.classes.d.ts +30 -0
- package/dist/widgets/drawer/drawer.classes.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer.classes.js +21 -0
- package/dist/widgets/drawer/drawer.contract.d.ts +52 -0
- package/dist/widgets/drawer/drawer.contract.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer.contract.js +62 -0
- package/dist/widgets/drawer/drawer.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer.js +6 -4
- package/dist/widgets/drawer/drawer.module.css +25 -10
- package/dist/widgets/drawer/drawer.module.css.d.ts +26 -0
- package/dist/widgets/drawer/drawer.module.d.css.ts +26 -0
- package/dist/widgets/drawer/drawer_module.css +40 -4
- package/dist/widgets/modal/modal-actions.d.ts.map +1 -1
- package/dist/widgets/modal/modal-actions.js +2 -2
- package/dist/widgets/modal/modal-container.d.ts.map +1 -1
- package/dist/widgets/modal/modal-container.js +2 -2
- package/dist/widgets/modal/modal-content.d.ts.map +1 -1
- package/dist/widgets/modal/modal-content.js +2 -2
- package/dist/widgets/modal/modal-header.js +2 -2
- package/dist/widgets/modal/modal.classes.d.ts +19 -0
- package/dist/widgets/modal/modal.classes.d.ts.map +1 -0
- package/dist/widgets/modal/modal.classes.js +13 -0
- package/dist/widgets/modal/modal.contract.d.ts +39 -0
- package/dist/widgets/modal/modal.contract.d.ts.map +1 -0
- package/dist/widgets/modal/modal.contract.js +43 -0
- package/dist/widgets/modal/modal.d.ts.map +1 -1
- package/dist/widgets/modal/modal.js +3 -4
- package/dist/widgets/modal/modal.module.css +6 -2
- package/dist/widgets/modal/modal.module.css.d.ts +14 -0
- package/dist/widgets/modal/modal.module.d.css.ts +14 -0
- package/dist/widgets/modal/modal_module.css +2 -2
- package/dist/widgets/timeline/timeline.classes.d.ts +20 -0
- package/dist/widgets/timeline/timeline.classes.d.ts.map +1 -0
- package/dist/widgets/timeline/timeline.classes.js +14 -0
- package/dist/widgets/timeline/timeline.contract.d.ts +42 -0
- package/dist/widgets/timeline/timeline.contract.d.ts.map +1 -0
- package/dist/widgets/timeline/timeline.contract.js +42 -0
- package/dist/widgets/timeline/timeline.d.ts.map +1 -1
- package/dist/widgets/timeline/timeline.js +8 -8
- package/dist/widgets/timeline/timeline.module.css.d.ts +16 -0
- package/dist/widgets/timeline/timeline.module.d.css.ts +16 -0
- package/package.json +17 -2
- package/src/components/@types/contract.ts +63 -0
- package/src/components/accordion/accordion.classes.ts +23 -0
- package/src/components/accordion/accordion.contract.ts +35 -0
- package/src/components/accordion/accordion.module.css +16 -5
- package/src/components/accordion/accordion.tsx +6 -14
- package/src/components/avatar/avatar.classes.ts +22 -0
- package/src/components/avatar/avatar.contract.ts +29 -0
- package/src/components/avatar/avatar.tsx +5 -15
- package/src/components/badge/badge.classes.ts +23 -0
- package/src/components/badge/badge.contract.ts +24 -0
- package/src/components/badge/badge.tsx +2 -8
- package/src/components/button/button-group.classes.ts +19 -0
- package/src/components/button/button-group.contract.ts +14 -0
- package/src/components/button/button-group.tsx +2 -2
- package/src/components/button/button.astro +17 -19
- package/src/components/button/button.classes.ts +37 -0
- package/src/components/button/button.contract.ts +48 -0
- package/src/components/button/button.module.css +12 -0
- package/src/components/button/button.tsx +6 -13
- package/src/components/button/combo-button.classes.ts +41 -0
- package/src/components/button/combo-button.contract.ts +47 -0
- package/src/components/button/combo-button.module.css +6 -2
- package/src/components/button/combo-button.tsx +9 -11
- package/src/components/button/control-buttons.classes.ts +34 -0
- package/src/components/button/control-buttons.contract.ts +50 -0
- package/src/components/button/control-buttons.module.css +43 -17
- package/src/components/button/control-buttons.tsx +34 -9
- package/src/components/button/copy-button.classes.ts +26 -0
- package/src/components/button/copy-button.contract.ts +29 -0
- package/src/components/button/copy-button.tsx +6 -13
- package/src/components/button/icon-button.astro +3 -3
- package/src/components/button/icon-button.tsx +3 -3
- package/src/components/card/card-content.astro +2 -2
- package/src/components/card/card-description.astro +2 -2
- package/src/components/card/card-footer.astro +2 -2
- package/src/components/card/card-header.astro +2 -2
- package/src/components/card/card-title.astro +2 -2
- package/src/components/card/card.astro +3 -3
- package/src/components/card/card.classes.ts +30 -0
- package/src/components/card/card.contract.ts +44 -0
- package/src/components/card/card.tsx +7 -24
- package/src/components/chips/chip.classes.ts +48 -0
- package/src/components/chips/chip.contract.ts +60 -0
- package/src/components/chips/chip.module.css +45 -0
- package/src/components/chips/chip.tsx +13 -23
- package/src/components/container/container.astro +2 -2
- package/src/components/container/container.classes.ts +19 -0
- package/src/components/container/container.contract.ts +13 -0
- package/src/components/container/container.tsx +2 -2
- package/src/components/dropdown/dropdown.classes.ts +26 -0
- package/src/components/dropdown/dropdown.contract.ts +49 -0
- package/src/components/dropdown/dropdown.module.css +11 -0
- package/src/components/dropdown/dropdown.stories.tsx +6 -0
- package/src/components/dropdown/dropdown.tsx +9 -29
- package/src/components/hamburger/hamburger.astro +4 -6
- package/src/components/hamburger/hamburger.classes.ts +33 -0
- package/src/components/hamburger/hamburger.contract.ts +33 -0
- package/src/components/hamburger/hamburger.tsx +4 -13
- package/src/components/inputs/@types/checkbox-options.ts +44 -0
- package/src/components/inputs/@types/checkbox.ts +2 -36
- package/src/components/inputs/@types/input-options.ts +45 -0
- package/src/components/inputs/@types/input.ts +4 -41
- package/src/components/inputs/autocomplete.classes.ts +51 -0
- package/src/components/inputs/autocomplete.contract.ts +94 -0
- package/src/components/inputs/autocomplete.module.css +15 -7
- package/src/components/inputs/autocomplete.tsx +13 -35
- package/src/components/inputs/checkbox-group.classes.ts +19 -0
- package/src/components/inputs/checkbox-group.contract.ts +13 -0
- package/src/components/inputs/checkbox-group.tsx +2 -2
- package/src/components/inputs/checkbox.astro +39 -15
- package/src/components/inputs/checkbox.classes.ts +48 -0
- package/src/components/inputs/checkbox.contract.ts +75 -0
- package/src/components/inputs/checkbox.module.css +32 -13
- package/src/components/inputs/checkbox.stories.tsx +43 -0
- package/src/components/inputs/checkbox.tsx +19 -25
- package/src/components/inputs/error-text.astro +5 -3
- package/src/components/inputs/error-text.classes.ts +23 -0
- package/src/components/inputs/error-text.contract.ts +20 -0
- package/src/components/inputs/error-text.tsx +2 -2
- package/src/components/inputs/help-text.astro +5 -3
- package/src/components/inputs/help-text.classes.ts +23 -0
- package/src/components/inputs/help-text.contract.ts +21 -0
- package/src/components/inputs/help-text.module.css +1 -1
- package/src/components/inputs/help-text.tsx +2 -2
- package/src/components/inputs/input-adornment.astro +2 -4
- package/src/components/inputs/input-adornment.classes.ts +24 -0
- package/src/components/inputs/input-adornment.contract.ts +19 -0
- package/src/components/inputs/input-adornment.tsx +2 -12
- package/src/components/inputs/input-password.classes.ts +19 -0
- package/src/components/inputs/input-password.contract.ts +14 -0
- package/src/components/inputs/input-password.tsx +2 -4
- package/src/components/inputs/input.astro +23 -15
- package/src/components/inputs/input.classes.ts +67 -0
- package/src/components/inputs/input.contract.ts +93 -0
- package/src/components/inputs/input.module.css +16 -14
- package/src/components/inputs/input.tsx +31 -34
- package/src/components/inputs/label.astro +5 -4
- package/src/components/inputs/label.classes.ts +29 -0
- package/src/components/inputs/label.contract.ts +27 -0
- package/src/components/inputs/label.module.css +21 -1
- package/src/components/inputs/label.tsx +13 -4
- package/src/components/inputs/radio-group.classes.ts +36 -0
- package/src/components/inputs/radio-group.contract.ts +53 -0
- package/src/components/inputs/radio-group.tsx +6 -6
- package/src/components/inputs/select.classes.ts +35 -0
- package/src/components/inputs/select.contract.ts +55 -0
- package/src/components/inputs/select.module.css +26 -13
- package/src/components/inputs/select.tsx +9 -13
- package/src/components/inputs/text-area.astro +4 -9
- package/src/components/inputs/text-area.classes.ts +39 -0
- package/src/components/inputs/text-area.contract.ts +22 -0
- package/src/components/inputs/text-area.module.css +7 -5
- package/src/components/inputs/text-area.tsx +6 -11
- package/src/components/notifications/alert.classes.ts +34 -0
- package/src/components/notifications/alert.contract.ts +59 -0
- package/src/components/notifications/alert.tsx +14 -25
- package/src/components/notifications/toast.classes.ts +33 -0
- package/src/components/notifications/toast.contract.ts +61 -0
- package/src/components/notifications/toast.module.css +16 -4
- package/src/components/notifications/toast.tsx +8 -12
- package/src/components/pager/ellipses.tsx +2 -2
- package/src/components/pager/first-button.tsx +3 -5
- package/src/components/pager/last-button.tsx +3 -5
- package/src/components/pager/next-button.tsx +6 -5
- package/src/components/pager/number-button.tsx +12 -12
- package/src/components/pager/pagination.classes.ts +63 -0
- package/src/components/pager/pagination.contract.ts +91 -0
- package/src/components/pager/pagination.module.css +121 -15
- package/src/components/pager/pagination.tsx +3 -17
- package/src/components/pager/previous-button.tsx +6 -5
- package/src/components/scroll-area/scroll-area.classes.ts +23 -0
- package/src/components/scroll-area/scroll-area.contract.ts +35 -0
- package/src/components/scroll-area/scroll-area.tsx +8 -17
- package/src/components/scroll-to-top/scroll-to-top.astro +15 -7
- package/src/components/scroll-to-top/scroll-to-top.classes.ts +23 -0
- package/src/components/scroll-to-top/scroll-to-top.contract.ts +19 -0
- package/src/components/scroll-to-top/scroll-to-top.tsx +2 -10
- package/src/components/section/section.astro +2 -2
- package/src/components/section/section.classes.ts +19 -0
- package/src/components/section/section.contract.ts +14 -0
- package/src/components/section/section.tsx +2 -2
- package/src/components/shimmer/shimmer.classes.ts +30 -0
- package/src/components/shimmer/shimmer.contract.ts +26 -0
- package/src/components/shimmer/shimmer.tsx +4 -15
- package/src/components/table/table.classes.ts +27 -0
- package/src/components/table/table.contract.ts +52 -0
- package/src/components/table/table.tsx +10 -14
- package/src/components/tabs/tabs.classes.ts +22 -0
- package/src/components/tabs/tabs.contract.ts +30 -0
- package/src/components/tabs/tabs.module.css +9 -0
- package/src/components/tabs/tabs.tsx +5 -23
- package/src/components/tooltip/tooltip.classes.ts +23 -0
- package/src/components/tooltip/tooltip.contract.ts +36 -0
- package/src/components/tooltip/tooltip.module.css +27 -11
- package/src/components/tooltip/tooltip.tsx +6 -9
- package/src/core/part-classes.ts +66 -0
- package/src/lib/ripple.ts +136 -13
- package/src/loaders/ellipses.classes.ts +42 -0
- package/src/loaders/ellipses.contract.ts +19 -0
- package/src/loaders/ellipses.module.css +8 -4
- package/src/loaders/ellipses.tsx +5 -14
- package/src/loaders/ring.classes.ts +41 -0
- package/src/loaders/ring.contract.ts +19 -0
- package/src/loaders/ring.module.css +6 -3
- package/src/loaders/ring.tsx +4 -16
- package/src/loaders/spinner.classes.ts +43 -0
- package/src/loaders/spinner.contract.ts +24 -0
- package/src/loaders/spinner.module.css +24 -12
- package/src/loaders/spinner.tsx +5 -25
- package/src/styles/components/components.css +0 -2
- package/src/styles/theme/defaults.css +3 -2
- package/src/styles/utils/utility-classes.css +3 -2
- package/src/widgets/datepicker/datepicker.classes.ts +40 -0
- package/src/widgets/datepicker/datepicker.contract.ts +97 -0
- package/src/widgets/datepicker/datepicker.module.css +2 -1
- package/src/widgets/datepicker/datepicker.tsx +17 -49
- package/src/widgets/drawer/drawer-container.tsx +2 -6
- package/src/widgets/drawer/drawer-content.tsx +2 -6
- package/src/widgets/drawer/drawer-header.tsx +2 -2
- package/src/widgets/drawer/drawer-top-actions.tsx +2 -2
- package/src/widgets/drawer/drawer.classes.ts +39 -0
- package/src/widgets/drawer/drawer.contract.ts +55 -0
- package/src/widgets/drawer/drawer.module.css +25 -10
- package/src/widgets/drawer/drawer.tsx +3 -15
- package/src/widgets/modal/modal-actions.tsx +2 -6
- package/src/widgets/modal/modal-container.tsx +2 -6
- package/src/widgets/modal/modal-content.tsx +2 -6
- package/src/widgets/modal/modal-header.tsx +2 -2
- package/src/widgets/modal/modal.classes.ts +24 -0
- package/src/widgets/modal/modal.contract.ts +44 -0
- package/src/widgets/modal/modal.module.css +6 -2
- package/src/widgets/modal/modal.tsx +3 -4
- package/src/widgets/timeline/timeline.classes.ts +25 -0
- package/src/widgets/timeline/timeline.contract.ts +43 -0
- package/src/widgets/timeline/timeline.tsx +8 -12
- package/src/styles/components/loaders.css +0 -212
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
@layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
|
|
2
|
+
|
|
3
|
+
@layer infonomic-components {
|
|
4
|
+
:is(.viewport-x4CvHl, .infonomic-toast-viewport) {
|
|
5
|
+
--viewport-padding: 16px;
|
|
6
|
+
z-index: var(--z-index-toast);
|
|
7
|
+
outline: none;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 8px;
|
|
10
|
+
display: flex;
|
|
11
|
+
position: fixed;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:is(.top-left-dy_IMc, .infonomic-toast-top-left), :is(.top-right-OsKbVb, .infonomic-toast-top-right) {
|
|
15
|
+
top: 88px;
|
|
16
|
+
right: var(--viewport-padding);
|
|
17
|
+
left: var(--viewport-padding);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:is(.bottom-left-_RdEZn, .infonomic-toast-bottom-left), :is(.bottom-right-Nzuhur, .infonomic-toast-bottom-right) {
|
|
21
|
+
bottom: var(--viewport-padding);
|
|
22
|
+
right: var(--viewport-padding);
|
|
23
|
+
left: var(--viewport-padding);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (width >= 48rem) {
|
|
27
|
+
:is(.bottom-right-Nzuhur, .infonomic-toast-bottom-right) {
|
|
28
|
+
bottom: var(--viewport-padding);
|
|
29
|
+
right: var(--viewport-padding);
|
|
30
|
+
width: 100%;
|
|
31
|
+
max-width: 390px;
|
|
32
|
+
left: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:is(.bottom-left-_RdEZn, .infonomic-toast-bottom-left) {
|
|
36
|
+
bottom: var(--viewport-padding);
|
|
37
|
+
left: var(--viewport-padding);
|
|
38
|
+
width: 100%;
|
|
39
|
+
max-width: 390px;
|
|
40
|
+
right: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:is(.top-left-dy_IMc, .infonomic-toast-top-left) {
|
|
44
|
+
top: 88px;
|
|
45
|
+
left: var(--viewport-padding);
|
|
46
|
+
width: 100%;
|
|
47
|
+
max-width: 390px;
|
|
48
|
+
bottom: auto;
|
|
49
|
+
right: auto;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:is(.top-right-OsKbVb, .infonomic-toast-top-right) {
|
|
53
|
+
top: 88px;
|
|
54
|
+
right: var(--viewport-padding);
|
|
55
|
+
width: 100%;
|
|
56
|
+
max-width: 390px;
|
|
57
|
+
bottom: auto;
|
|
58
|
+
left: auto;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:is(.root-dWN7jD, .infonomic-toast-root) {
|
|
63
|
+
gap: var(--gap-1);
|
|
64
|
+
background: var(--surface-panel-elevated);
|
|
65
|
+
border-width: var(--border-width-thin);
|
|
66
|
+
border-color: var(--border-color);
|
|
67
|
+
border-style: var(--border-style-solid);
|
|
68
|
+
border-radius: var(--border-radius-md);
|
|
69
|
+
box-shadow: var(--shadow-sm);
|
|
70
|
+
transform: translateX(var(--toast-swipe-movement-x, 0))
|
|
71
|
+
translateY(var(--toast-swipe-movement-y, 0));
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
padding-top: 12px;
|
|
74
|
+
padding-bottom: 16px;
|
|
75
|
+
transition: transform .2s ease-out, opacity .15s ease-in;
|
|
76
|
+
display: flex;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.root-dWN7jD[data-starting-style] {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
transform: translateY(calc(100% + var(--viewport-padding)));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.infonomic-toast-root[data-starting-style] {
|
|
85
|
+
opacity: 0;
|
|
86
|
+
transform: translateY(calc(100% + var(--viewport-padding)));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (width >= 48rem) {
|
|
90
|
+
.viewport-x4CvHl.top-right-OsKbVb .root-dWN7jD[data-starting-style], .viewport-x4CvHl.bottom-right-Nzuhur .root-dWN7jD[data-starting-style] {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.infonomic-toast-viewport.infonomic-toast-top-right
|
|
96
|
+
.infonomic-toast-root[data-starting-style] {
|
|
97
|
+
opacity: 0;
|
|
98
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.infonomic-toast-viewport.infonomic-toast-bottom-right
|
|
102
|
+
.infonomic-toast-root[data-starting-style] {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.viewport-x4CvHl.top-left-dy_IMc .root-dWN7jD[data-starting-style], .viewport-x4CvHl.bottom-left-_RdEZn .root-dWN7jD[data-starting-style] {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.infonomic-toast-viewport.infonomic-toast-top-left
|
|
113
|
+
.infonomic-toast-root[data-starting-style] {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.infonomic-toast-viewport.infonomic-toast-bottom-left
|
|
119
|
+
.infonomic-toast-root[data-starting-style] {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.root-dWN7jD[data-ending-style] {
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.infonomic-toast-root[data-ending-style] {
|
|
130
|
+
opacity: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.root-dWN7jD[data-ending-style][data-swipe-direction="right"] {
|
|
134
|
+
transform: translateX(calc(var(--toast-swipe-movement-x, 0) + 100% + var(--viewport-padding)));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.infonomic-toast-root[data-ending-style][data-swipe-direction="right"] {
|
|
138
|
+
transform: translateX(calc(var(--toast-swipe-movement-x, 0) + 100% + var(--viewport-padding)));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.root-dWN7jD[data-ending-style][data-swipe-direction="left"] {
|
|
142
|
+
transform: translateX(calc(var(--toast-swipe-movement-x, 0) - 100% - var(--viewport-padding)));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.infonomic-toast-root[data-ending-style][data-swipe-direction="left"] {
|
|
146
|
+
transform: translateX(calc(var(--toast-swipe-movement-x, 0) - 100% - var(--viewport-padding)));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.root-dWN7jD[data-ending-style][data-swipe-direction="down"] {
|
|
150
|
+
transform: translateY(calc(var(--toast-swipe-movement-y, 0) + 150%));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.infonomic-toast-root[data-ending-style][data-swipe-direction="down"] {
|
|
154
|
+
transform: translateY(calc(var(--toast-swipe-movement-y, 0) + 150%));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:is(.content-o83ZAp, .infonomic-toast-content) {
|
|
158
|
+
gap: var(--gap-1);
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
display: flex;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:is(.header-ItoxDs, .infonomic-toast-header) {
|
|
164
|
+
align-items: start;
|
|
165
|
+
gap: var(--gap-2);
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
padding: 0 16px 0 12px;
|
|
168
|
+
display: flex;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:is(.close-HwTMjn, .infonomic-toast-close) {
|
|
172
|
+
border-radius: 100%;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
align-items: center;
|
|
175
|
+
width: 24px;
|
|
176
|
+
min-width: 24px;
|
|
177
|
+
height: 24px;
|
|
178
|
+
min-height: 24px;
|
|
179
|
+
margin-top: -2px;
|
|
180
|
+
margin-left: auto;
|
|
181
|
+
padding: 0;
|
|
182
|
+
display: flex;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.close-HwTMjn svg {
|
|
186
|
+
fill: #fff;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.infonomic-toast-close svg {
|
|
190
|
+
fill: #fff;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:is(.title-qfQE8M, .infonomic-toast-title) {
|
|
194
|
+
align-items: start;
|
|
195
|
+
gap: var(--gap-2);
|
|
196
|
+
margin-bottom: 5px;
|
|
197
|
+
padding: 0 12px 0 8px;
|
|
198
|
+
font-size: 15px;
|
|
199
|
+
font-weight: 500;
|
|
200
|
+
display: flex;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:is(.description-nQWtgX, .infonomic-toast-description) {
|
|
204
|
+
font-size: var(--font-size-sm);
|
|
205
|
+
margin: 0;
|
|
206
|
+
padding: 0 8px 0 12px;
|
|
207
|
+
line-height: 1.3;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:is(.action-PunqB2, .infonomic-toast-action) {
|
|
211
|
+
justify-content: end;
|
|
212
|
+
padding: 0 12px;
|
|
213
|
+
display: flex;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
218
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
|
|
2
|
+
|
|
3
|
+
@layer infonomic-components {
|
|
4
|
+
:is(.tooltip-Oc7lRI, .infonomic-tooltip) {
|
|
5
|
+
color: var(--surface-item-text);
|
|
6
|
+
-webkit-user-select: none;
|
|
7
|
+
user-select: none;
|
|
8
|
+
border-radius: var(--border-radius-sm);
|
|
9
|
+
border-width: var(--border-width-thin);
|
|
10
|
+
border-style: var(--border-style-solid);
|
|
11
|
+
background-color: var(--surface-panel-elevated);
|
|
12
|
+
border-color: var(--surface-panel-border);
|
|
13
|
+
box-shadow: var(--shadow-xs);
|
|
14
|
+
will-change: transform, opacity;
|
|
15
|
+
animation: var(--transition-normal);
|
|
16
|
+
padding: .625rem 1rem;
|
|
17
|
+
font-size: .75rem;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:is(.tooltip-Oc7lRI[data-open][data-side="top"], .infonomic-tooltip[data-open][data-side="top"]) {
|
|
22
|
+
animation-name: slideDownAndFade;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:is(.tooltip-Oc7lRI[data-open][data-side="right"], .infonomic-tooltip[data-open][data-side="right"]) {
|
|
26
|
+
animation-name: slideLeftAndFade;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:is(.tooltip-Oc7lRI[data-open][data-side="left"], .infonomic-tooltip[data-open][data-side="left"]) {
|
|
30
|
+
animation-name: slideRightAndFade;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:is(.tooltip-Oc7lRI[data-open][data-side="bottom"], .infonomic-tooltip[data-open][data-side="bottom"]) {
|
|
34
|
+
animation-name: slideUpAndFade;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:is(.tooltip-arrow-a77zEa, .infonomic-tooltip-arrow) {
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:is(.tooltip-arrow-a77zEa, .infonomic-tooltip-arrow)[data-side="top"] {
|
|
42
|
+
bottom: -6px;
|
|
43
|
+
rotate: 180deg;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:is(.tooltip-arrow-a77zEa, .infonomic-tooltip-arrow)[data-side="bottom"] {
|
|
47
|
+
top: -6px;
|
|
48
|
+
rotate: 0deg;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:is(.tooltip-arrow-a77zEa, .infonomic-tooltip-arrow)[data-side="left"] {
|
|
52
|
+
right: -10px;
|
|
53
|
+
rotate: 90deg;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:is(.tooltip-arrow-a77zEa, .infonomic-tooltip-arrow)[data-side="right"] {
|
|
57
|
+
left: -10px;
|
|
58
|
+
rotate: -90deg;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:is(.arrow-fill-y4rc3H, .infonomic-tooltip-arrow-fill) {
|
|
62
|
+
fill: var(--surface-panel-elevated);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:is(.arrow-outer-stroke-PAmoWE, .infonomic-tooltip-arrow-outer-stroke) {
|
|
66
|
+
fill: var(--surface-panel-border);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:is(.arrow-inner-stroke-VAze2C, .infonomic-tooltip-arrow-inner-stroke) {
|
|
70
|
+
fill: var(--surface-panel-elevated);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
75
|
+
|
package/dist/lib/ripple.d.ts
CHANGED
|
@@ -5,9 +5,34 @@
|
|
|
5
5
|
* Original work licensed under the MIT License.
|
|
6
6
|
* Copyright (c) 2021 Sajad Ahmad Nawabi
|
|
7
7
|
*
|
|
8
|
-
* Adapted for use as an
|
|
8
|
+
* Adapted for use as an ESM/TypeScript module with minor improvements. It uses
|
|
9
|
+
* the DOM only, so any framework can import it.
|
|
9
10
|
*/
|
|
10
11
|
export type RippleColor = 'light' | 'dark';
|
|
12
|
+
/** The part of a mouse or pointer event that a ripple needs. */
|
|
13
|
+
export interface RipplePress {
|
|
14
|
+
clientX: number;
|
|
15
|
+
clientY: number;
|
|
16
|
+
currentTarget: EventTarget | null;
|
|
17
|
+
/** The mouse button, where the event has one. Only the main button ripples. */
|
|
18
|
+
button?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Whether a press on `element` may draw a ripple. Every ripple goes through
|
|
22
|
+
* this, whichever listener asked for it, so the rules are the same for a React
|
|
23
|
+
* Button, an Astro Button and a button drawn by any other framework.
|
|
24
|
+
*
|
|
25
|
+
* No ripple for: any mouse button but the main one, a disabled element
|
|
26
|
+
* (`disabled`, `data-disabled` or `aria-disabled="true"`), an element with
|
|
27
|
+
* `data-ripple="false"` or inside one, and a user who has asked for reduced
|
|
28
|
+
* motion.
|
|
29
|
+
*
|
|
30
|
+
* It asks the element's own document and window, not the globals, so it works
|
|
31
|
+
* for an element inside an iframe.
|
|
32
|
+
*/
|
|
33
|
+
export declare function canRipple(event: {
|
|
34
|
+
button?: number;
|
|
35
|
+
}, element: Element): boolean;
|
|
11
36
|
export declare class Ripple {
|
|
12
37
|
private x;
|
|
13
38
|
private y;
|
|
@@ -15,11 +40,35 @@ export declare class Ripple {
|
|
|
15
40
|
private findFurthestPoint;
|
|
16
41
|
private applyStyles;
|
|
17
42
|
private applyAnimation;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Draws one ripple from the point of the press.
|
|
45
|
+
*
|
|
46
|
+
* The ripple is drawn in `target`, or in the event's `currentTarget` when no
|
|
47
|
+
* target is given. Pass the target when the listener is on an ancestor, where
|
|
48
|
+
* `currentTarget` is that ancestor and not the element pressed.
|
|
49
|
+
*
|
|
50
|
+
* Nothing is drawn when `canRipple` says no: see the rules there.
|
|
51
|
+
*/
|
|
52
|
+
create(event: RipplePress, color?: RippleColor, target?: HTMLElement): void;
|
|
23
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Gives every kit button inside `root` a ripple, with one listener on `root`.
|
|
56
|
+
*
|
|
57
|
+
* A press on an element with the `infonomic-button` class, or on anything
|
|
58
|
+
* inside one, draws a ripple in that button: light on a filled or gradient
|
|
59
|
+
* button, dark on the others. Buttons added later are covered too.
|
|
60
|
+
*
|
|
61
|
+
* No ripple is drawn where `canRipple` says no, or for a button that makes its
|
|
62
|
+
* own ripple (`data-ripple="self"`).
|
|
63
|
+
*
|
|
64
|
+
* Returns a function that removes the ripple from `root`. A press draws one
|
|
65
|
+
* ripple however many roots it passes through: attaching to the same root more
|
|
66
|
+
* than once, or to a container inside an attached document, changes nothing.
|
|
67
|
+
* Each attachment is removed on its own, and a root's listener stays until
|
|
68
|
+
* every caller for that root has detached.
|
|
69
|
+
*
|
|
70
|
+
* `root` may belong to another window, such as an iframe's document.
|
|
71
|
+
*/
|
|
72
|
+
export declare function attachRipple(root: Document | Element): () => void;
|
|
24
73
|
export default Ripple;
|
|
25
74
|
//# sourceMappingURL=ripple.d.ts.map
|
package/dist/lib/ripple.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ripple.d.ts","sourceRoot":"","sources":["../../src/lib/ripple.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ripple.d.ts","sourceRoot":"","sources":["../../src/lib/ripple.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAE1C,gEAAgE;AAChE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,WAAW,GAAG,IAAI,CAAA;IACjC,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAK/E;AAED,qBAAa,MAAM;IACjB,OAAO,CAAC,CAAC,CAAI;IACb,OAAO,CAAC,CAAC,CAAI;IACb,OAAO,CAAC,CAAC,CAAI;IAEb,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,cAAc;IAatB;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,GAAE,WAAqB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CA+BnF;CACF;AAuBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,IAAI,CAoCjE;eAEc,MAAM"}
|
package/dist/lib/ripple.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
const optOutSelector = '[data-ripple="false"]';
|
|
2
|
+
const disabledSelector = ':disabled, [data-disabled], [aria-disabled="true"]';
|
|
3
|
+
function canRipple(event, element) {
|
|
4
|
+
if (null != event.button && 0 !== event.button) return false;
|
|
5
|
+
if (element.matches(disabledSelector) || null != element.closest(optOutSelector)) return false;
|
|
6
|
+
const view = element.ownerDocument.defaultView;
|
|
7
|
+
return view?.matchMedia?.('(prefers-reduced-motion: reduce)').matches !== true;
|
|
8
|
+
}
|
|
1
9
|
class Ripple {
|
|
2
10
|
findFurthestPoint(clickPointX, elementWidth, offsetX, clickPointY, elementHeight, offsetY) {
|
|
3
11
|
this.x = clickPointX - offsetX > elementWidth / 2 ? 0 : elementWidth;
|
|
@@ -16,7 +24,7 @@ class Ripple {
|
|
|
16
24
|
element.style.width = element.style.height = `${2 * radius}px`;
|
|
17
25
|
}
|
|
18
26
|
applyAnimation(element) {
|
|
19
|
-
element.animate([
|
|
27
|
+
return element.animate([
|
|
20
28
|
{
|
|
21
29
|
transform: 'scale(0)',
|
|
22
30
|
opacity: 1
|
|
@@ -30,17 +38,20 @@ class Ripple {
|
|
|
30
38
|
easing: 'linear'
|
|
31
39
|
});
|
|
32
40
|
}
|
|
33
|
-
create(event, color = 'light') {
|
|
34
|
-
const element = event.currentTarget;
|
|
35
|
-
element
|
|
41
|
+
create(event, color = 'light', target) {
|
|
42
|
+
const element = target ?? event.currentTarget;
|
|
43
|
+
if (null == element || !canRipple(event, element)) return;
|
|
44
|
+
const view = element.ownerDocument.defaultView;
|
|
45
|
+
if (null == view) return;
|
|
46
|
+
if ('static' === view.getComputedStyle(element).position) element.style.position = 'relative';
|
|
36
47
|
element.style.overflow = 'hidden';
|
|
37
48
|
const rect = element.getBoundingClientRect();
|
|
38
49
|
const radius = this.findFurthestPoint(event.clientX, element.offsetWidth, rect.left, event.clientY, element.offsetHeight, rect.top);
|
|
39
|
-
const circle =
|
|
50
|
+
const circle = element.ownerDocument.createElement('span');
|
|
40
51
|
this.applyStyles(circle, color, rect, radius, event.clientX, event.clientY);
|
|
41
|
-
this.applyAnimation(circle);
|
|
42
52
|
element.appendChild(circle);
|
|
43
|
-
|
|
53
|
+
const remove = ()=>circle.remove();
|
|
54
|
+
this.applyAnimation(circle).finished.then(remove, remove);
|
|
44
55
|
}
|
|
45
56
|
constructor(){
|
|
46
57
|
this.x = 0;
|
|
@@ -48,6 +59,46 @@ class Ripple {
|
|
|
48
59
|
this.z = 0;
|
|
49
60
|
}
|
|
50
61
|
}
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
62
|
+
const buttonSelector = '.infonomic-button';
|
|
63
|
+
const lightSelector = '.infonomic-button-filled, .infonomic-button-gradient';
|
|
64
|
+
const ownRippleSelector = '[data-ripple="self"]';
|
|
65
|
+
const attachments = new WeakMap();
|
|
66
|
+
const answered = new WeakSet();
|
|
67
|
+
const isElement = (node)=>null != node && 1 === node.nodeType && 'function' == typeof node.closest;
|
|
68
|
+
function attachRipple(root) {
|
|
69
|
+
let attachment = attachments.get(root);
|
|
70
|
+
if (null == attachment) {
|
|
71
|
+
const ripple = new Ripple();
|
|
72
|
+
const onPointerDown = (event)=>{
|
|
73
|
+
const press = event;
|
|
74
|
+
if (answered.has(press) || !isElement(press.target)) return;
|
|
75
|
+
const button = press.target.closest(buttonSelector);
|
|
76
|
+
if (null == button || !root.contains(button)) return;
|
|
77
|
+
answered.add(press);
|
|
78
|
+
if (button.matches(ownRippleSelector)) return;
|
|
79
|
+
ripple.create(press, button.matches(lightSelector) ? 'light' : 'dark', button);
|
|
80
|
+
};
|
|
81
|
+
root.addEventListener('pointerdown', onPointerDown);
|
|
82
|
+
const created = {
|
|
83
|
+
count: 0,
|
|
84
|
+
detach: ()=>root.removeEventListener('pointerdown', onPointerDown)
|
|
85
|
+
};
|
|
86
|
+
attachments.set(root, created);
|
|
87
|
+
attachment = created;
|
|
88
|
+
}
|
|
89
|
+
const current = attachment;
|
|
90
|
+
current.count += 1;
|
|
91
|
+
let detached = false;
|
|
92
|
+
return ()=>{
|
|
93
|
+
if (detached) return;
|
|
94
|
+
detached = true;
|
|
95
|
+
current.count -= 1;
|
|
96
|
+
if (0 === current.count) {
|
|
97
|
+
current.detach();
|
|
98
|
+
attachments.delete(root);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const lib_ripple = Ripple;
|
|
103
|
+
export default lib_ripple;
|
|
104
|
+
export { Ripple, attachRipple, canRipple };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { loaderEllipsisContract } from './ellipses.contract.js';
|
|
2
|
+
import styles from './ellipses.module.css';
|
|
3
|
+
export { loaderEllipsisContract, styles as loaderEllipsisStyles };
|
|
4
|
+
/**
|
|
5
|
+
* The class attribute for each LoaderEllipsis part, for any framework: the plain
|
|
6
|
+
* `infonomic-*` hook followed by the generated module class.
|
|
7
|
+
*
|
|
8
|
+
* Importing this module loads the LoaderEllipsis stylesheet.
|
|
9
|
+
*/
|
|
10
|
+
export declare const loaderEllipsisClasses: {
|
|
11
|
+
readonly root: string;
|
|
12
|
+
readonly dot: string;
|
|
13
|
+
};
|
|
14
|
+
export type LoaderEllipsisPart = keyof typeof loaderEllipsisClasses;
|
|
15
|
+
export interface LoaderEllipsisVariableOptions {
|
|
16
|
+
/** A number is taken as pixels. Left out, the stylesheet's default applies. */
|
|
17
|
+
size?: number | string | undefined;
|
|
18
|
+
/** Any CSS colour. Left out, the stylesheet's default applies. */
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The CSS variables that size and colour the loader, to set as inline style
|
|
23
|
+
* on the root. Empty when neither option is given.
|
|
24
|
+
*/
|
|
25
|
+
export declare function loaderEllipsisVariables({ size, color, }?: LoaderEllipsisVariableOptions): Record<string, string>;
|
|
26
|
+
//# sourceMappingURL=ellipses.classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipses.classes.d.ts","sourceRoot":"","sources":["../../src/loaders/ellipses.classes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,MAAM,MAAM,uBAAuB,CAAA;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,IAAI,oBAAoB,EAAE,CAAA;AAIjE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;aAChC,IAAI;aACJ,GAAG;CACK,CAAA;AAEV,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAA;AAEnE,MAAM,WAAW,6BAA6B;IAC5C,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IAClC,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EACJ,KAAK,GACN,GAAE,6BAAkC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createPartClasses } from "../core/part-classes.js";
|
|
2
|
+
import { loaderEllipsisContract } from "./ellipses.contract.js";
|
|
3
|
+
import ellipses_module from "./ellipses.module.js";
|
|
4
|
+
const part = createPartClasses(loaderEllipsisContract, ellipses_module);
|
|
5
|
+
const loaderEllipsisClasses = {
|
|
6
|
+
root: part('root'),
|
|
7
|
+
dot: part('dot')
|
|
8
|
+
};
|
|
9
|
+
function loaderEllipsisVariables({ size, color } = {}) {
|
|
10
|
+
const variables = {};
|
|
11
|
+
if (null != size) variables['--loader-ellipsis-size'] = 'number' == typeof size ? `${size}px` : size;
|
|
12
|
+
if (color) variables['--loader-ellipsis-color'] = color;
|
|
13
|
+
return variables;
|
|
14
|
+
}
|
|
15
|
+
export { ellipses_module as loaderEllipsisStyles, loaderEllipsisClasses, loaderEllipsisContract, loaderEllipsisVariables };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const loaderEllipsisContract: {
|
|
2
|
+
readonly name: 'LoaderEllipsis';
|
|
3
|
+
readonly module: 'loaders/ellipses.module.css';
|
|
4
|
+
readonly parts: {
|
|
5
|
+
readonly root: {
|
|
6
|
+
readonly description: 'The loader. Size and colour come from two optional variables set inline.';
|
|
7
|
+
readonly plainClass: 'infonomic-loader-ellipsis';
|
|
8
|
+
readonly moduleClass: 'loader-ellipsis';
|
|
9
|
+
readonly themingVariables: readonly ["--loader-ellipsis-size", "--loader-ellipsis-color"];
|
|
10
|
+
};
|
|
11
|
+
readonly dot: {
|
|
12
|
+
readonly description: 'One of the four animated dots.';
|
|
13
|
+
readonly plainClass: 'infonomic-loader-ellipsis-dot';
|
|
14
|
+
readonly moduleClass: 'loader-ellipsis-dot';
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=ellipses.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipses.contract.d.ts","sourceRoot":"","sources":["../../src/loaders/ellipses.contract.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;mBAC3B,gBAAgB;qBACd,6BAA6B;;iBAEnC,IAAI;qBACF,WAAW,EAAE,0EAA0E;qBACvF,UAAU,EAAE,2BAA2B;qBACvC,WAAW,EAAE,iBAAiB;qBAC9B,gBAAgB;;iBAElB,GAAG;qBACD,WAAW,EAAE,gCAAgC;qBAC7C,UAAU,EAAE,+BAA+B;qBAC3C,WAAW,EAAE,qBAAqB;;;CAGF,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const loaderEllipsisContract = {
|
|
2
|
+
name: 'LoaderEllipsis',
|
|
3
|
+
module: 'loaders/ellipses.module.css',
|
|
4
|
+
parts: {
|
|
5
|
+
root: {
|
|
6
|
+
description: 'The loader. Size and colour come from two optional variables set inline.',
|
|
7
|
+
plainClass: 'infonomic-loader-ellipsis',
|
|
8
|
+
moduleClass: 'loader-ellipsis',
|
|
9
|
+
themingVariables: [
|
|
10
|
+
'--loader-ellipsis-size',
|
|
11
|
+
'--loader-ellipsis-color'
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
dot: {
|
|
15
|
+
description: 'One of the four animated dots.',
|
|
16
|
+
plainClass: 'infonomic-loader-ellipsis-dot',
|
|
17
|
+
moduleClass: 'loader-ellipsis-dot'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export { loaderEllipsisContract };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ellipses.d.ts","sourceRoot":"","sources":["../../src/loaders/ellipses.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"ellipses.d.ts","sourceRoot":"","sources":["../../src/loaders/ellipses.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACR,EAAE,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAmBjC"}
|
package/dist/loaders/ellipses.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import
|
|
3
|
+
import { loaderEllipsisClasses, loaderEllipsisVariables } from "./ellipses.classes.js";
|
|
4
4
|
function LoaderEllipsis({ color, size, className, style, ...rest }) {
|
|
5
5
|
const ellipsisStyle = {
|
|
6
|
-
...style
|
|
6
|
+
...style,
|
|
7
|
+
...loaderEllipsisVariables({
|
|
8
|
+
size,
|
|
9
|
+
color
|
|
10
|
+
})
|
|
7
11
|
};
|
|
8
|
-
if (null != size) ellipsisStyle['--loader-ellipsis-size'] = 'number' == typeof size ? `${size}px` : size;
|
|
9
|
-
if (color) ellipsisStyle['--loader-ellipsis-color'] = color;
|
|
10
12
|
const circles = [
|
|
11
13
|
...Array(4)
|
|
12
14
|
].map((_, index)=>/*#__PURE__*/ jsx("div", {
|
|
13
|
-
className:
|
|
15
|
+
className: loaderEllipsisClasses.dot
|
|
14
16
|
}, index));
|
|
15
17
|
return /*#__PURE__*/ jsx("div", {
|
|
16
|
-
className: clsx(
|
|
18
|
+
className: clsx(loaderEllipsisClasses.root, className),
|
|
17
19
|
style: ellipsisStyle,
|
|
18
20
|
...rest,
|
|
19
21
|
children: circles
|
|
@@ -32,22 +32,26 @@
|
|
|
32
32
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.loader-ellipsis-dot:nth-child(1)
|
|
35
|
+
.loader-ellipsis-dot:nth-child(1),
|
|
36
|
+
:global(.infonomic-loader-ellipsis-dot):nth-child(1) {
|
|
36
37
|
left: 10%;
|
|
37
38
|
animation: loader-ellipsis-grow 0.6s infinite;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
.loader-ellipsis-dot:nth-child(2)
|
|
41
|
+
.loader-ellipsis-dot:nth-child(2),
|
|
42
|
+
:global(.infonomic-loader-ellipsis-dot):nth-child(2) {
|
|
41
43
|
left: 10%;
|
|
42
44
|
animation: loader-ellipsis-slide 0.6s infinite;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
.loader-ellipsis-dot:nth-child(3)
|
|
47
|
+
.loader-ellipsis-dot:nth-child(3),
|
|
48
|
+
:global(.infonomic-loader-ellipsis-dot):nth-child(3) {
|
|
46
49
|
left: 40%;
|
|
47
50
|
animation: loader-ellipsis-slide 0.6s infinite;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
.loader-ellipsis-dot:nth-child(4)
|
|
53
|
+
.loader-ellipsis-dot:nth-child(4),
|
|
54
|
+
:global(.infonomic-loader-ellipsis-dot):nth-child(4) {
|
|
51
55
|
left: 70%;
|
|
52
56
|
animation: loader-ellipsis-shrink 0.6s infinite;
|
|
53
57
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "loader-ellipsis": string
|
|
3
|
+
readonly "loaderEllipsis": string
|
|
4
|
+
readonly "loader-ellipsis-dot": string
|
|
5
|
+
readonly "loaderEllipsisDot": string
|
|
6
|
+
readonly "loader-ellipsis-grow": string
|
|
7
|
+
readonly "loaderEllipsisGrow": string
|
|
8
|
+
readonly "loader-ellipsis-slide": string
|
|
9
|
+
readonly "loaderEllipsisSlide": string
|
|
10
|
+
readonly "loader-ellipsis-shrink": string
|
|
11
|
+
readonly "loaderEllipsisShrink": string
|
|
12
|
+
}
|
|
13
|
+
export default styles
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "loader-ellipsis": string
|
|
3
|
+
readonly "loaderEllipsis": string
|
|
4
|
+
readonly "loader-ellipsis-dot": string
|
|
5
|
+
readonly "loaderEllipsisDot": string
|
|
6
|
+
readonly "loader-ellipsis-grow": string
|
|
7
|
+
readonly "loaderEllipsisGrow": string
|
|
8
|
+
readonly "loader-ellipsis-slide": string
|
|
9
|
+
readonly "loaderEllipsisSlide": string
|
|
10
|
+
readonly "loader-ellipsis-shrink": string
|
|
11
|
+
readonly "loaderEllipsisShrink": string
|
|
12
|
+
}
|
|
13
|
+
export default styles
|