@infonomic/uikit 6.9.1 → 7.0.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 +168 -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.d.ts +9 -0
- package/dist/components/accordion/accordion.module.d.css.ts +9 -0
- 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 +3 -11
- 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 +7 -4
- 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 +52 -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.d.ts +15 -0
- package/dist/components/dropdown/dropdown.module.d.css.ts +15 -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 +83 -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 +3 -10
- 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 +3 -9
- 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 +30 -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.d.ts +11 -0
- package/dist/components/tabs/tabs.module.d.css.ts +11 -0
- 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 +55 -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 +216 -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 +113 -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/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/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 +12 -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.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 +3 -11
- 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 +2 -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.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 +73 -0
- package/src/components/inputs/checkbox.module.css +3 -10
- package/src/components/inputs/checkbox.tsx +13 -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 +29 -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/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/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
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@infonomic/uikit",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "Infonomic UI kit is a collection of reusable UI components and utilities for React and Astro.",
|
|
8
8
|
"keywords": [
|
|
@@ -56,6 +56,15 @@
|
|
|
56
56
|
"import": "./dist/styles/components-vanilla.css",
|
|
57
57
|
"default": "./dist/styles/components-vanilla.css"
|
|
58
58
|
},
|
|
59
|
+
"./classes/*": {
|
|
60
|
+
"types": "./dist/classes/*.d.ts",
|
|
61
|
+
"import": "./dist/classes/*.js",
|
|
62
|
+
"default": "./dist/classes/*.js"
|
|
63
|
+
},
|
|
64
|
+
"./css/*.css": {
|
|
65
|
+
"import": "./dist/css/*.css",
|
|
66
|
+
"default": "./dist/css/*.css"
|
|
67
|
+
},
|
|
59
68
|
"./css-layers": {
|
|
60
69
|
"types": "./dist/css-layers.d.ts",
|
|
61
70
|
"import": "./dist/css-layers.js",
|
|
@@ -72,7 +81,6 @@
|
|
|
72
81
|
"clsx": "^2.1.1",
|
|
73
82
|
"date-fns": "^4.4.0",
|
|
74
83
|
"motion": "^14.14.0",
|
|
75
|
-
"npm-run-all": "^4.1.5",
|
|
76
84
|
"prism-react-renderer": "^2.4.1",
|
|
77
85
|
"react-day-picker": "^10.0.2",
|
|
78
86
|
"zod": "^4.6.7",
|
|
@@ -99,6 +107,7 @@
|
|
|
99
107
|
"eslint-plugin-storybook": "^10.6.7",
|
|
100
108
|
"lightningcss": "^1.33.0",
|
|
101
109
|
"lightningcss-cli": "^1.33.0",
|
|
110
|
+
"npm-run-all": "^4.1.5",
|
|
102
111
|
"postcss": "^8.5.33",
|
|
103
112
|
"react": "^19.3.1",
|
|
104
113
|
"react-dom": "^19.3.1",
|
|
@@ -130,6 +139,7 @@
|
|
|
130
139
|
"build": "run-s build:*",
|
|
131
140
|
"build:clean": "rimraf dist build",
|
|
132
141
|
"build:code": "rslib build",
|
|
142
|
+
"build:core-exports": "node ./scripts/build-core-exports.js",
|
|
133
143
|
"build:astro": "node ./scripts/build-astro.js",
|
|
134
144
|
"build:css": "lightningcss --bundle ./src/styles/reset.css ./src/styles/styles.css ./src/styles/typography.css --output-dir ./dist/styles",
|
|
135
145
|
"build:minify": "lightningcss --minify ./dist/styles/reset.css ./dist/styles/styles.css ./dist/styles/typography.css --output-dir ./dist/styles",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The styling contract of one component: what an adapter for any framework has
|
|
3
|
+
* to render for the kit's stylesheet to apply. Covered by semver.
|
|
4
|
+
*
|
|
5
|
+
* Behaviour (focus, dismissal, keyboard) is not part of it. That belongs to the
|
|
6
|
+
* adapter's behaviour library, which reports state through the attributes and
|
|
7
|
+
* CSS variables listed here. The vocabulary is Base UI's.
|
|
8
|
+
*/
|
|
9
|
+
export interface ComponentContract {
|
|
10
|
+
/** Component name as exported from the React entry. */
|
|
11
|
+
name: string
|
|
12
|
+
/** The CSS module, relative to `src/`. */
|
|
13
|
+
module: string
|
|
14
|
+
parts: Record<string, PartContract>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PartContract {
|
|
18
|
+
/** What the part is, and the Base UI part it corresponds to where there is one. */
|
|
19
|
+
description?: string
|
|
20
|
+
/**
|
|
21
|
+
* The plain class every adapter puts on this part, beside the generated one.
|
|
22
|
+
* Hosts target it from `@layer overrides`, and hand-written markup uses it on
|
|
23
|
+
* its own.
|
|
24
|
+
*/
|
|
25
|
+
plainClass: string
|
|
26
|
+
/**
|
|
27
|
+
* The part's class in the CSS module (the key in the component's class map).
|
|
28
|
+
* Left out for a part the kit gives a hook but no styles of its own.
|
|
29
|
+
*/
|
|
30
|
+
moduleClass?: string
|
|
31
|
+
/**
|
|
32
|
+
* Parts of other components whose classes this part is always used with, as
|
|
33
|
+
* the kit's own component does. A text area carries the input's classes and
|
|
34
|
+
* its own: hand-written markup and adapters must do the same, and a host
|
|
35
|
+
* loading stylesheets one by one needs the other component's as well.
|
|
36
|
+
* Options with the same name (`variant`, `intent`) take the same value on both.
|
|
37
|
+
*/
|
|
38
|
+
composes?: readonly { component: string; part: string }[]
|
|
39
|
+
/**
|
|
40
|
+
* The author's choices on this part, by option (`intent`, `variant`, `size`,
|
|
41
|
+
* ...). Each option maps a module class key to its plain class.
|
|
42
|
+
*/
|
|
43
|
+
modifiers?: Record<string, Readonly<Record<string, string>>>
|
|
44
|
+
/**
|
|
45
|
+
* Data attributes the stylesheet reads on this part. The behaviour layer sets
|
|
46
|
+
* them; hand-written markup has to write them itself.
|
|
47
|
+
*/
|
|
48
|
+
states?: readonly string[]
|
|
49
|
+
/**
|
|
50
|
+
* Data attributes the stylesheet reads on an element inside this part, with
|
|
51
|
+
* `:has()`, and the part that carries each. A combo button's wrapper shows
|
|
52
|
+
* its ring while the trigger inside it has `data-popup-open`: the attribute
|
|
53
|
+
* goes on the trigger, and setting it on the wrapper has no effect.
|
|
54
|
+
*/
|
|
55
|
+
descendantStates?: readonly { state: string; part: string }[]
|
|
56
|
+
/** CSS variables the stylesheet reads on this part that the adapter must set. */
|
|
57
|
+
suppliedVariables?: readonly string[]
|
|
58
|
+
/**
|
|
59
|
+
* CSS variables the part's styles read that nothing in the kit sets: optional
|
|
60
|
+
* hooks a host may set to restyle it. Each is read with a fallback.
|
|
61
|
+
*/
|
|
62
|
+
themingVariables?: readonly string[]
|
|
63
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createPartClasses } from '../../core/part-classes.js'
|
|
2
|
+
import { accordionContract } from './accordion.contract.js'
|
|
3
|
+
import styles from './accordion.module.css'
|
|
4
|
+
|
|
5
|
+
export { accordionContract, styles as accordionStyles }
|
|
6
|
+
|
|
7
|
+
const part = createPartClasses(accordionContract, styles)
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The class attribute for each Accordion part, for any framework: the plain
|
|
11
|
+
* `infonomic-*` hook followed by the generated module class.
|
|
12
|
+
*
|
|
13
|
+
* Importing this module loads the Accordion stylesheet.
|
|
14
|
+
*/
|
|
15
|
+
export const accordionClasses = {
|
|
16
|
+
root: part('root'),
|
|
17
|
+
item: part('item'),
|
|
18
|
+
header: part('header'),
|
|
19
|
+
trigger: part('trigger'),
|
|
20
|
+
content: part('content'),
|
|
21
|
+
} as const
|
|
22
|
+
|
|
23
|
+
export type AccordionPart = keyof typeof accordionClasses
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ComponentContract } from '../@types/contract.js'
|
|
2
|
+
|
|
3
|
+
export const accordionContract = {
|
|
4
|
+
name: 'Accordion',
|
|
5
|
+
module: 'components/accordion/accordion.module.css',
|
|
6
|
+
parts: {
|
|
7
|
+
root: {
|
|
8
|
+
description: 'Groups the items. Base UI `Accordion.Root`. A hook only: no styles of its own.',
|
|
9
|
+
plainClass: 'infonomic-accordion-root',
|
|
10
|
+
},
|
|
11
|
+
item: {
|
|
12
|
+
description: 'One collapsible section. Base UI `Accordion.Item`.',
|
|
13
|
+
plainClass: 'infonomic-accordion-item',
|
|
14
|
+
moduleClass: 'item',
|
|
15
|
+
},
|
|
16
|
+
header: {
|
|
17
|
+
description: 'The heading that wraps the trigger. Base UI `Accordion.Header`.',
|
|
18
|
+
plainClass: 'infonomic-accordion-header',
|
|
19
|
+
moduleClass: 'header',
|
|
20
|
+
},
|
|
21
|
+
trigger: {
|
|
22
|
+
description: 'The button that opens and closes its item. Base UI `Accordion.Trigger`.',
|
|
23
|
+
plainClass: 'infonomic-accordion-trigger',
|
|
24
|
+
moduleClass: 'trigger',
|
|
25
|
+
},
|
|
26
|
+
content: {
|
|
27
|
+
description:
|
|
28
|
+
'The collapsible panel. Base UI `Accordion.Panel`. Animates its height open and closed, so the behaviour layer must publish the panel height.',
|
|
29
|
+
plainClass: 'infonomic-accordion-content',
|
|
30
|
+
moduleClass: 'content',
|
|
31
|
+
states: ['data-open', 'data-ending-style'],
|
|
32
|
+
suppliedVariables: ['--accordion-panel-height'],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
} as const satisfies ComponentContract
|
|
@@ -11,7 +11,7 @@ import type React from 'react'
|
|
|
11
11
|
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion'
|
|
12
12
|
import cx from 'clsx'
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import { accordionClasses } from './accordion.classes.js'
|
|
15
15
|
|
|
16
16
|
export type AccordionRootElement = React.ComponentRef<'div'>
|
|
17
17
|
|
|
@@ -26,11 +26,7 @@ const Root = ({
|
|
|
26
26
|
ref?: React.RefObject<AccordionRootElement>
|
|
27
27
|
} & React.ComponentProps<typeof AccordionPrimitive.Root>) => {
|
|
28
28
|
return (
|
|
29
|
-
<AccordionPrimitive.Root
|
|
30
|
-
ref={ref}
|
|
31
|
-
className={cx('infonomic-accordion-root', className)}
|
|
32
|
-
{...props}
|
|
33
|
-
>
|
|
29
|
+
<AccordionPrimitive.Root ref={ref} className={cx(accordionClasses.root, className)} {...props}>
|
|
34
30
|
{children}
|
|
35
31
|
</AccordionPrimitive.Root>
|
|
36
32
|
)
|
|
@@ -46,11 +42,7 @@ const Item = function AccordionItem({
|
|
|
46
42
|
ref?: React.RefObject<AccordionItemElement>
|
|
47
43
|
}) {
|
|
48
44
|
return (
|
|
49
|
-
<AccordionPrimitive.Item
|
|
50
|
-
className={cx('infonomic-accordion-item', className)}
|
|
51
|
-
{...props}
|
|
52
|
-
ref={ref}
|
|
53
|
-
>
|
|
45
|
+
<AccordionPrimitive.Item className={cx(accordionClasses.item, className)} {...props} ref={ref}>
|
|
54
46
|
{children}
|
|
55
47
|
</AccordionPrimitive.Item>
|
|
56
48
|
)
|
|
@@ -67,7 +59,7 @@ const Header = function AccordionHeader({
|
|
|
67
59
|
}) {
|
|
68
60
|
return (
|
|
69
61
|
<AccordionPrimitive.Header
|
|
70
|
-
className={cx(
|
|
62
|
+
className={cx(accordionClasses.header, className)}
|
|
71
63
|
{...props}
|
|
72
64
|
ref={ref}
|
|
73
65
|
>
|
|
@@ -88,7 +80,7 @@ const Trigger = function AccordionTrigger({
|
|
|
88
80
|
return (
|
|
89
81
|
<AccordionPrimitive.Trigger
|
|
90
82
|
ref={ref}
|
|
91
|
-
className={cx(
|
|
83
|
+
className={cx(accordionClasses.trigger, className)}
|
|
92
84
|
{...props}
|
|
93
85
|
>
|
|
94
86
|
{children}
|
|
@@ -107,7 +99,7 @@ const Panel = function AccordionPanel({
|
|
|
107
99
|
}) {
|
|
108
100
|
return (
|
|
109
101
|
<AccordionPrimitive.Panel
|
|
110
|
-
className={cx(
|
|
102
|
+
className={cx(accordionClasses.content, className)}
|
|
111
103
|
{...props}
|
|
112
104
|
ref={ref}
|
|
113
105
|
>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createPartClasses } from '../../core/part-classes.js'
|
|
2
|
+
import { avatarContract } from './avatar.contract.js'
|
|
3
|
+
import styles from './avatar.module.css'
|
|
4
|
+
|
|
5
|
+
export { avatarContract, styles as avatarStyles }
|
|
6
|
+
|
|
7
|
+
const part = createPartClasses(avatarContract, styles)
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The class attribute for each Avatar part, for any framework: the plain
|
|
11
|
+
* `infonomic-*` hook followed by the generated module class.
|
|
12
|
+
*
|
|
13
|
+
* Importing this module loads the Avatar stylesheet.
|
|
14
|
+
*/
|
|
15
|
+
export const avatarClasses = {
|
|
16
|
+
root: part('root'),
|
|
17
|
+
image: part('image'),
|
|
18
|
+
fallback: part('fallback'),
|
|
19
|
+
text: part('text'),
|
|
20
|
+
} as const
|
|
21
|
+
|
|
22
|
+
export type AvatarPart = keyof typeof avatarClasses
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ComponentContract } from '../@types/contract.js'
|
|
2
|
+
|
|
3
|
+
export const avatarContract = {
|
|
4
|
+
name: 'Avatar',
|
|
5
|
+
module: 'components/avatar/avatar.module.css',
|
|
6
|
+
parts: {
|
|
7
|
+
root: {
|
|
8
|
+
description: 'The circle that holds the image or the initials. Base UI `Avatar.Root`.',
|
|
9
|
+
plainClass: 'infonomic-avatar-root',
|
|
10
|
+
moduleClass: 'avatar-root',
|
|
11
|
+
},
|
|
12
|
+
image: {
|
|
13
|
+
description: 'The picture. Base UI `Avatar.Image`. Rendered only when there is a source.',
|
|
14
|
+
plainClass: 'infonomic-avatar-image',
|
|
15
|
+
moduleClass: 'avatar-image',
|
|
16
|
+
},
|
|
17
|
+
fallback: {
|
|
18
|
+
description:
|
|
19
|
+
'Shown when there is no image, or while it loads or if it fails. Base UI `Avatar.Fallback`.',
|
|
20
|
+
plainClass: 'infonomic-avatar-fallback',
|
|
21
|
+
moduleClass: 'avatar-fallback',
|
|
22
|
+
},
|
|
23
|
+
text: {
|
|
24
|
+
description: 'The initials inside the fallback.',
|
|
25
|
+
plainClass: 'infonomic-avatar-text',
|
|
26
|
+
moduleClass: 'avatar-text',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
} as const satisfies ComponentContract
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
import type React from 'react'
|
|
4
4
|
|
|
5
5
|
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar'
|
|
6
|
-
import cx from 'clsx'
|
|
7
6
|
|
|
8
|
-
import
|
|
7
|
+
import { avatarClasses } from './avatar.classes.js'
|
|
9
8
|
|
|
10
9
|
export interface AvatarProps {
|
|
11
10
|
/** Shown when there is no `src`, or while the image loads or if it fails. */
|
|
@@ -18,19 +17,10 @@ export interface AvatarProps {
|
|
|
18
17
|
|
|
19
18
|
export const Avatar = ({ initials, src, alt = initials }: AvatarProps): React.JSX.Element => {
|
|
20
19
|
return (
|
|
21
|
-
<AvatarPrimitive.Root className={
|
|
22
|
-
{src ?
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
alt={alt}
|
|
26
|
-
className={cx('infonomic-avatar-image', styles['avatar-image'])}
|
|
27
|
-
/>
|
|
28
|
-
) : null}
|
|
29
|
-
<AvatarPrimitive.Fallback
|
|
30
|
-
className={cx('infonomic-avatar-fallback', styles['avatar-fallback'])}
|
|
31
|
-
delay={src ? 600 : 0}
|
|
32
|
-
>
|
|
33
|
-
<span className={cx('infonomic-avatar-text', styles['avatar-text'])}>{initials}</span>
|
|
20
|
+
<AvatarPrimitive.Root className={avatarClasses.root}>
|
|
21
|
+
{src ? <AvatarPrimitive.Image src={src} alt={alt} className={avatarClasses.image} /> : null}
|
|
22
|
+
<AvatarPrimitive.Fallback className={avatarClasses.fallback} delay={src ? 600 : 0}>
|
|
23
|
+
<span className={avatarClasses.text}>{initials}</span>
|
|
34
24
|
</AvatarPrimitive.Fallback>
|
|
35
25
|
</AvatarPrimitive.Root>
|
|
36
26
|
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createPartClasses } from '../../core/part-classes.js'
|
|
2
|
+
import { badgeContract } from './badge.contract.js'
|
|
3
|
+
import styles from './badge.module.css'
|
|
4
|
+
import type { Intent } from '../@types/shared.js'
|
|
5
|
+
|
|
6
|
+
export { badgeContract, styles as badgeStyles }
|
|
7
|
+
|
|
8
|
+
export interface BadgeClassOptions {
|
|
9
|
+
/** @default 'primary' */
|
|
10
|
+
intent?: Intent | undefined
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const part = createPartClasses(badgeContract, styles)
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The class attribute for a Badge, for any framework: the plain
|
|
17
|
+
* `infonomic-badge*` hooks followed by the generated module classes.
|
|
18
|
+
*
|
|
19
|
+
* Importing this module loads the Badge stylesheet.
|
|
20
|
+
*/
|
|
21
|
+
export function badgeClasses({ intent = 'primary' }: BadgeClassOptions = {}): string {
|
|
22
|
+
return part('root', { intent })
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ComponentContract } from '../@types/contract.js'
|
|
2
|
+
|
|
3
|
+
export const badgeContract = {
|
|
4
|
+
name: 'Badge',
|
|
5
|
+
module: 'components/badge/badge.module.css',
|
|
6
|
+
parts: {
|
|
7
|
+
root: {
|
|
8
|
+
description: 'The badge itself: a short label or count. The intent sets its colour.',
|
|
9
|
+
plainClass: 'infonomic-badge',
|
|
10
|
+
moduleClass: 'badge',
|
|
11
|
+
modifiers: {
|
|
12
|
+
intent: {
|
|
13
|
+
primary: 'infonomic-badge-primary',
|
|
14
|
+
secondary: 'infonomic-badge-secondary',
|
|
15
|
+
noeffect: 'infonomic-badge-noeffect',
|
|
16
|
+
success: 'infonomic-badge-success',
|
|
17
|
+
info: 'infonomic-badge-info',
|
|
18
|
+
warning: 'infonomic-badge-warning',
|
|
19
|
+
danger: 'infonomic-badge-danger',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
} as const satisfies ComponentContract
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render'
|
|
2
2
|
import cx from 'clsx'
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import { badgeClasses } from './badge.classes.js'
|
|
5
5
|
import type { Intent } from '../@types/shared'
|
|
6
6
|
|
|
7
7
|
export type BadgeProps = useRender.ComponentProps<'div'> & {
|
|
@@ -25,13 +25,7 @@ export const Badge = ({
|
|
|
25
25
|
ref,
|
|
26
26
|
props: {
|
|
27
27
|
...rest,
|
|
28
|
-
className: cx(
|
|
29
|
-
'infonomic-badge',
|
|
30
|
-
`infonomic-badge-${intent}`,
|
|
31
|
-
styles.badge,
|
|
32
|
-
styles[intent],
|
|
33
|
-
className
|
|
34
|
-
),
|
|
28
|
+
className: cx(badgeClasses({ intent }), className),
|
|
35
29
|
children,
|
|
36
30
|
},
|
|
37
31
|
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createPartClasses } from '../../core/part-classes.js'
|
|
2
|
+
import { buttonGroupContract } from './button-group.contract.js'
|
|
3
|
+
import styles from './button-group.module.css'
|
|
4
|
+
|
|
5
|
+
export { buttonGroupContract, styles as buttonGroupStyles }
|
|
6
|
+
|
|
7
|
+
const part = createPartClasses(buttonGroupContract, styles)
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The class attribute for each ButtonGroup part, for any framework: the plain
|
|
11
|
+
* `infonomic-*` hook followed by the generated module class.
|
|
12
|
+
*
|
|
13
|
+
* Importing this module loads the ButtonGroup stylesheet.
|
|
14
|
+
*/
|
|
15
|
+
export const buttonGroupClasses = {
|
|
16
|
+
root: part('root'),
|
|
17
|
+
} as const
|
|
18
|
+
|
|
19
|
+
export type ButtonGroupPart = keyof typeof buttonGroupClasses
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentContract } from '../@types/contract.js'
|
|
2
|
+
|
|
3
|
+
export const buttonGroupContract = {
|
|
4
|
+
name: 'ButtonGroup',
|
|
5
|
+
module: 'components/button/button-group.module.css',
|
|
6
|
+
parts: {
|
|
7
|
+
root: {
|
|
8
|
+
description:
|
|
9
|
+
'Joins the buttons inside it into one run. Base UI `ToggleGroup`. The items are Buttons.',
|
|
10
|
+
plainClass: 'infonomic-button-group',
|
|
11
|
+
moduleClass: 'button-group',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
} as const satisfies ComponentContract
|
|
@@ -7,7 +7,7 @@ import { ToggleGroup } from '@base-ui/react/toggle-group'
|
|
|
7
7
|
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { Button } from './button'
|
|
10
|
-
import
|
|
10
|
+
import { buttonGroupClasses } from './button-group.classes.js'
|
|
11
11
|
import type { EnableRipple, Intent, Size, Variant } from './@types/button'
|
|
12
12
|
|
|
13
13
|
interface ButtonGroupContextType {
|
|
@@ -93,7 +93,7 @@ const ButtonGroup = ({
|
|
|
93
93
|
value={normalizedValue}
|
|
94
94
|
ref={ref}
|
|
95
95
|
onValueChange={handleValueChange}
|
|
96
|
-
className={cx(
|
|
96
|
+
className={cx(buttonGroupClasses.root, className)}
|
|
97
97
|
{...props}
|
|
98
98
|
>
|
|
99
99
|
<ButtonGroupContext value={{ variant, size, ripple, expandToFit, active, inactive, value }}>
|
|
@@ -15,7 +15,7 @@ interface Props extends HTMLAttributes<'button'>, Omit<HTMLAttributes<'a'>, 'typ
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// import Ripple from 'material-ripple-effects' // Commented out as this is React specific
|
|
18
|
-
import
|
|
18
|
+
import { buttonClasses } from './button.classes.js'
|
|
19
19
|
|
|
20
20
|
const {
|
|
21
21
|
variant = 'filled',
|
|
@@ -51,11 +51,7 @@ const componentType = href ? 'a' : as
|
|
|
51
51
|
variant,
|
|
52
52
|
size,
|
|
53
53
|
intent,
|
|
54
|
-
|
|
55
|
-
styles[variant],
|
|
56
|
-
styles[size],
|
|
57
|
-
styles[intent],
|
|
58
|
-
{ [styles.fullWidth]: fullWidth },
|
|
54
|
+
buttonClasses({ variant, size, intent, fullWidth }),
|
|
59
55
|
className
|
|
60
56
|
]}
|
|
61
57
|
{...rest}
|
|
@@ -71,11 +67,7 @@ const componentType = href ? 'a' : as
|
|
|
71
67
|
variant,
|
|
72
68
|
size,
|
|
73
69
|
intent,
|
|
74
|
-
|
|
75
|
-
styles[variant],
|
|
76
|
-
styles[size],
|
|
77
|
-
styles[intent],
|
|
78
|
-
{ [styles.fullWidth]: fullWidth },
|
|
70
|
+
buttonClasses({ variant, size, intent, fullWidth }),
|
|
79
71
|
className
|
|
80
72
|
]}
|
|
81
73
|
{...rest}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createPartClasses } from '../../core/part-classes.js'
|
|
2
|
+
import { buttonContract } from './button.contract.js'
|
|
3
|
+
import styles from './button.module.css'
|
|
4
|
+
import type { Intent, Size, Variant } from './@types/button.js'
|
|
5
|
+
|
|
6
|
+
export { buttonContract, styles as buttonStyles }
|
|
7
|
+
|
|
8
|
+
export interface ButtonClassOptions {
|
|
9
|
+
/** @default 'filled' */
|
|
10
|
+
variant?: Variant
|
|
11
|
+
/** @default 'md' */
|
|
12
|
+
size?: Size
|
|
13
|
+
/** @default 'primary' */
|
|
14
|
+
intent?: Intent
|
|
15
|
+
/** @default false */
|
|
16
|
+
fullWidth?: boolean
|
|
17
|
+
/** Equal width and height, for a button that holds only an icon. */
|
|
18
|
+
shape?: 'square' | 'round'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const part = createPartClasses(buttonContract, styles)
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The class attribute for a Button, for any framework: the plain
|
|
25
|
+
* `infonomic-button*` hooks followed by the generated module classes.
|
|
26
|
+
*
|
|
27
|
+
* Importing this module loads the Button stylesheet.
|
|
28
|
+
*/
|
|
29
|
+
export function buttonClasses({
|
|
30
|
+
variant = 'filled',
|
|
31
|
+
size = 'md',
|
|
32
|
+
intent = 'primary',
|
|
33
|
+
fullWidth = false,
|
|
34
|
+
shape,
|
|
35
|
+
}: ButtonClassOptions = {}): string {
|
|
36
|
+
return part('root', { intent, variant, size, fullWidth: fullWidth && 'fullWidth', shape })
|
|
37
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ComponentContract } from '../@types/contract.js'
|
|
2
|
+
|
|
3
|
+
export const buttonContract = {
|
|
4
|
+
name: 'Button',
|
|
5
|
+
module: 'components/button/button.module.css',
|
|
6
|
+
parts: {
|
|
7
|
+
root: {
|
|
8
|
+
description:
|
|
9
|
+
'The button itself: a native `<button>`, or an `<a>` styled as one. Disabled state is the native `disabled` attribute.',
|
|
10
|
+
plainClass: 'infonomic-button',
|
|
11
|
+
moduleClass: 'button',
|
|
12
|
+
// Disabled is the native attribute or, on an element that has none, `data-disabled`.
|
|
13
|
+
states: ['data-disabled'],
|
|
14
|
+
modifiers: {
|
|
15
|
+
intent: {
|
|
16
|
+
primary: 'infonomic-button-primary',
|
|
17
|
+
secondary: 'infonomic-button-secondary',
|
|
18
|
+
noeffect: 'infonomic-button-noeffect',
|
|
19
|
+
success: 'infonomic-button-success',
|
|
20
|
+
info: 'infonomic-button-info',
|
|
21
|
+
warning: 'infonomic-button-warning',
|
|
22
|
+
danger: 'infonomic-button-danger',
|
|
23
|
+
},
|
|
24
|
+
variant: {
|
|
25
|
+
filled: 'infonomic-button-filled',
|
|
26
|
+
'filled-weak': 'infonomic-button-filled-weak',
|
|
27
|
+
outlined: 'infonomic-button-outlined',
|
|
28
|
+
gradient: 'infonomic-button-gradient',
|
|
29
|
+
text: 'infonomic-button-text',
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
xs: 'infonomic-button-xs',
|
|
33
|
+
sm: 'infonomic-button-sm',
|
|
34
|
+
md: 'infonomic-button-md',
|
|
35
|
+
lg: 'infonomic-button-lg',
|
|
36
|
+
xl: 'infonomic-button-xl',
|
|
37
|
+
},
|
|
38
|
+
shape: {
|
|
39
|
+
square: 'infonomic-button-square',
|
|
40
|
+
round: 'infonomic-button-round',
|
|
41
|
+
},
|
|
42
|
+
fullWidth: {
|
|
43
|
+
fullWidth: 'infonomic-button-full-width',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
} as const satisfies ComponentContract
|
|
@@ -31,8 +31,10 @@
|
|
|
31
31
|
border-radius: var(--border-radius-sm);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
.button[data-disabled],
|
|
34
35
|
.button:disabled,
|
|
35
36
|
.button[disabled],
|
|
37
|
+
:global(.infonomic-button)[data-disabled],
|
|
36
38
|
:global(.infonomic-button):disabled,
|
|
37
39
|
:global(.infonomic-button)[disabled] {
|
|
38
40
|
pointer-events: none;
|
|
@@ -114,8 +116,10 @@
|
|
|
114
116
|
--ring-color: var(--button-ring-color);
|
|
115
117
|
}
|
|
116
118
|
|
|
119
|
+
.filled[data-disabled],
|
|
117
120
|
.filled:disabled,
|
|
118
121
|
.filled[disabled],
|
|
122
|
+
:global(.infonomic-button-filled)[data-disabled],
|
|
119
123
|
:global(.infonomic-button-filled):disabled,
|
|
120
124
|
:global(.infonomic-button-filled)[disabled] {
|
|
121
125
|
background-color: var(
|
|
@@ -149,8 +153,10 @@
|
|
|
149
153
|
--ring-color: var(--button-ring-color);
|
|
150
154
|
}
|
|
151
155
|
|
|
156
|
+
.filled-weak[data-disabled],
|
|
152
157
|
.filled-weak:disabled,
|
|
153
158
|
.filled-weak[disabled],
|
|
159
|
+
:global(.infonomic-button-filled-weak)[data-disabled],
|
|
154
160
|
:global(.infonomic-button-filled-weak):disabled,
|
|
155
161
|
:global(.infonomic-button-filled-weak)[disabled] {
|
|
156
162
|
background-color: var(
|
|
@@ -170,8 +176,10 @@
|
|
|
170
176
|
background-color: var(--button-variant-outlined);
|
|
171
177
|
}
|
|
172
178
|
|
|
179
|
+
.outlined[data-disabled],
|
|
173
180
|
.outlined:disabled,
|
|
174
181
|
.outlined[disabled],
|
|
182
|
+
:global(.infonomic-button-outlined)[data-disabled],
|
|
175
183
|
:global(.infonomic-button-outlined):disabled,
|
|
176
184
|
:global(.infonomic-button-outlined)[disabled] {
|
|
177
185
|
border-color: var(
|
|
@@ -206,8 +214,10 @@
|
|
|
206
214
|
);
|
|
207
215
|
}
|
|
208
216
|
|
|
217
|
+
.gradient[data-disabled],
|
|
209
218
|
.gradient:disabled,
|
|
210
219
|
.gradient[disabled],
|
|
220
|
+
:global(.infonomic-button-gradient)[data-disabled],
|
|
211
221
|
:global(.infonomic-button-gradient):disabled,
|
|
212
222
|
:global(.infonomic-button-gradient)[disabled] {
|
|
213
223
|
background: unset;
|
|
@@ -244,8 +254,10 @@
|
|
|
244
254
|
color: var(--button-variant-text-foreground);
|
|
245
255
|
}
|
|
246
256
|
|
|
257
|
+
.text[data-disabled],
|
|
247
258
|
.text:disabled,
|
|
248
259
|
.text[disabled],
|
|
260
|
+
:global(.infonomic-button-text)[data-disabled],
|
|
249
261
|
:global(.infonomic-button-text):disabled,
|
|
250
262
|
:global(.infonomic-button-text)[disabled] {
|
|
251
263
|
color: oklch(from var(--button-variant-text-foreground) calc(l * 1.5) calc(c * 0.5) h);
|
|
@@ -7,7 +7,7 @@ import { useRender } from '@base-ui/react/use-render'
|
|
|
7
7
|
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { Ripple } from '../../lib/ripple.js'
|
|
10
|
-
import
|
|
10
|
+
import { buttonClasses } from './button.classes.js'
|
|
11
11
|
import type { Intent, Size, Variant } from './@types/button.js'
|
|
12
12
|
|
|
13
13
|
export type ButtonProps = useRender.ComponentProps<'button'> & {
|
|
@@ -37,18 +37,7 @@ export const Button = ({
|
|
|
37
37
|
}: ButtonProps) => {
|
|
38
38
|
const defaultProps: Record<string, unknown> = {
|
|
39
39
|
type,
|
|
40
|
-
className: cx(
|
|
41
|
-
'infonomic-button',
|
|
42
|
-
`infonomic-button-${intent}`,
|
|
43
|
-
`infonomic-button-${variant}`,
|
|
44
|
-
`infonomic-button-${size}`,
|
|
45
|
-
styles.button,
|
|
46
|
-
styles[variant],
|
|
47
|
-
styles[size],
|
|
48
|
-
styles[intent],
|
|
49
|
-
{ [styles.fullWidth]: fullWidth === true },
|
|
50
|
-
className
|
|
51
|
-
),
|
|
40
|
+
className: cx(buttonClasses({ variant, size, intent, fullWidth }), className),
|
|
52
41
|
children,
|
|
53
42
|
}
|
|
54
43
|
|