@tmorrow/cre8-wc 1.2.4 → 1.2.5
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/lib/cdn-entry.d.ts +126 -0
- package/lib/cdn-entry.d.ts.map +1 -0
- package/lib/cdn-entry.js +131 -0
- package/lib/cdn-entry.js.map +1 -0
- package/lib/components/accordion/accordion.d.ts +39 -0
- package/lib/components/accordion/accordion.d.ts.map +1 -0
- package/lib/components/accordion/accordion.js +58 -666
- package/lib/components/accordion/accordion.js.map +1 -0
- package/lib/components/accordion/accordion.styles.d.ts +3 -0
- package/lib/components/accordion/accordion.styles.d.ts.map +1 -0
- package/lib/components/accordion/accordion.styles.js +630 -0
- package/lib/components/accordion/accordion.styles.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.d.ts +141 -0
- package/lib/components/accordion-item/accordion-item.d.ts.map +1 -0
- package/lib/components/accordion-item/accordion-item.js +183 -904
- package/lib/components/accordion-item/accordion-item.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.styles.d.ts +3 -0
- package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -0
- package/lib/components/accordion-item/accordion-item.styles.js +811 -0
- package/lib/components/accordion-item/accordion-item.styles.js.map +1 -0
- package/lib/components/alert/alert.d.ts +60 -0
- package/lib/components/alert/alert.d.ts.map +1 -0
- package/lib/components/alert/alert.js +146 -866
- package/lib/components/alert/alert.js.map +1 -0
- package/lib/components/alert/alert.styles.d.ts +3 -0
- package/lib/components/alert/alert.styles.d.ts.map +1 -0
- package/lib/components/alert/alert.styles.js +749 -0
- package/lib/components/alert/alert.styles.js.map +1 -0
- package/lib/components/badge/badge.d.ts +62 -0
- package/lib/components/badge/badge.d.ts.map +1 -0
- package/lib/components/badge/badge.js +72 -764
- package/lib/components/badge/badge.js.map +1 -0
- package/lib/components/badge/badge.styles.d.ts +3 -0
- package/lib/components/badge/badge.styles.d.ts.map +1 -0
- package/lib/components/badge/badge.styles.js +719 -0
- package/lib/components/badge/badge.styles.js.map +1 -0
- package/lib/components/band/band.d.ts +29 -0
- package/lib/components/band/band.d.ts.map +1 -0
- package/lib/components/band/band.js +34 -641
- package/lib/components/band/band.js.map +1 -0
- package/lib/components/band/band.styles.d.ts +3 -0
- package/lib/components/band/band.styles.d.ts.map +1 -0
- package/lib/components/band/band.styles.js +614 -0
- package/lib/components/band/band.styles.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.d.ts +32 -0
- package/lib/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.js +52 -625
- package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts +3 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js +601 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts +17 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +28 -641
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts +3 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +616 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -0
- package/lib/components/button/button.d.ts +229 -0
- package/lib/components/button/button.d.ts.map +1 -0
- package/lib/components/button/button.js +290 -1040
- package/lib/components/button/button.js.map +1 -0
- package/lib/components/button/button.styles.d.ts +3 -0
- package/lib/components/button/button.styles.d.ts.map +1 -0
- package/lib/components/button/button.styles.js +885 -0
- package/lib/components/button/button.styles.js.map +1 -0
- package/lib/components/button-group/button-group.d.ts +19 -0
- package/lib/components/button-group/button-group.d.ts.map +1 -0
- package/lib/components/button-group/button-group.js +30 -638
- package/lib/components/button-group/button-group.js.map +1 -0
- package/lib/components/button-group/button-group.styles.d.ts +3 -0
- package/lib/components/button-group/button-group.styles.d.ts.map +1 -0
- package/lib/components/button-group/button-group.styles.js +615 -0
- package/lib/components/button-group/button-group.styles.js.map +1 -0
- package/lib/components/card/card.d.ts +45 -0
- package/lib/components/card/card.d.ts.map +1 -0
- package/lib/components/card/card.js +57 -734
- package/lib/components/card/card.js.map +1 -0
- package/lib/components/card/card.styles.d.ts +3 -0
- package/lib/components/card/card.styles.d.ts.map +1 -0
- package/lib/components/card/card.styles.js +703 -0
- package/lib/components/card/card.styles.js.map +1 -0
- package/lib/components/chart/chart.d.ts +224 -0
- package/lib/components/chart/chart.d.ts.map +1 -0
- package/lib/components/chart/chart.js +528 -714
- package/lib/components/chart/chart.js.map +1 -0
- package/lib/components/chart/chart.styles.d.ts +3 -0
- package/lib/components/chart/chart.styles.d.ts.map +1 -0
- package/lib/components/chart/chart.styles.js +364 -0
- package/lib/components/chart/chart.styles.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.d.ts +54 -0
- package/lib/components/checkbox-field/checkbox-field.d.ts.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.js +64 -669
- package/lib/components/checkbox-field/checkbox-field.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts +3 -0
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js +622 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts +172 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.js +241 -1038
- package/lib/components/checkbox-field-item/checkbox-field-item.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts +3 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +867 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -0
- package/lib/components/contexts/form-internals-context.d.ts +35 -0
- package/lib/components/contexts/form-internals-context.d.ts.map +1 -0
- package/lib/components/contexts/form-internals-context.js +9 -0
- package/lib/components/contexts/form-internals-context.js.map +1 -0
- package/lib/components/cre8-element.d.ts +54 -0
- package/lib/components/cre8-element.d.ts.map +1 -0
- package/lib/components/cre8-element.js +57 -56
- package/lib/components/cre8-element.js.map +1 -0
- package/lib/components/cre8-form-element.d.ts +137 -0
- package/lib/components/cre8-form-element.d.ts.map +1 -0
- package/lib/components/cre8-form-element.js +213 -6
- package/lib/components/cre8-form-element.js.map +1 -0
- package/lib/components/danger-button/danger-button.d.ts +208 -0
- package/lib/components/danger-button/danger-button.d.ts.map +1 -0
- package/lib/components/danger-button/danger-button.js +271 -1257
- package/lib/components/danger-button/danger-button.js.map +1 -0
- package/lib/components/danger-button/danger-button.styles.d.ts +3 -0
- package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -0
- package/lib/components/danger-button/danger-button.styles.js +1117 -0
- package/lib/components/danger-button/danger-button.styles.js.map +1 -0
- package/lib/components/date-picker/calendar/calendar.d.ts +115 -0
- package/lib/components/date-picker/calendar/calendar.d.ts.map +1 -0
- package/lib/components/date-picker/calendar/calendar.js +465 -0
- package/lib/components/date-picker/calendar/calendar.js.map +1 -0
- package/lib/components/date-picker/calendar/calendar.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar/calendar.styles.js +689 -0
- package/lib/components/date-picker/calendar/calendar.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts +22 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js +76 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js +610 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts +19 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.js +110 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.js.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js +598 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts +28 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js +116 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js +617 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -0
- package/lib/components/date-picker/date-picker.d.ts +43 -0
- package/lib/components/date-picker/date-picker.d.ts.map +1 -0
- package/lib/components/date-picker/date-picker.js +97 -3320
- package/lib/components/date-picker/date-picker.js.map +1 -0
- package/lib/components/date-picker/date-picker.styles.d.ts +3 -0
- package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -0
- package/lib/components/date-picker/date-picker.styles.js +4 -0
- package/lib/components/date-picker/date-picker.styles.js.map +1 -0
- package/lib/components/divider/divider.d.ts +29 -0
- package/lib/components/divider/divider.d.ts.map +1 -0
- package/lib/components/divider/divider.js +44 -653
- package/lib/components/divider/divider.js.map +1 -0
- package/lib/components/divider/divider.styles.d.ts +3 -0
- package/lib/components/divider/divider.styles.d.ts.map +1 -0
- package/lib/components/divider/divider.styles.js +623 -0
- package/lib/components/divider/divider.styles.js.map +1 -0
- package/lib/components/dropdown/dropdown.d.ts +35 -0
- package/lib/components/dropdown/dropdown.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.js +90 -713
- package/lib/components/dropdown/dropdown.js.map +1 -0
- package/lib/components/dropdown/dropdown.styles.d.ts +3 -0
- package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.styles.js +659 -0
- package/lib/components/dropdown/dropdown.styles.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.d.ts +19 -0
- package/lib/components/dropdown-item/dropdown-item.d.ts.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.js +37 -640
- package/lib/components/dropdown-item/dropdown-item.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts +3 -0
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js +614 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -0
- package/lib/components/feature/feature.d.ts +28 -0
- package/lib/components/feature/feature.d.ts.map +1 -0
- package/lib/components/feature/feature.js +40 -679
- package/lib/components/feature/feature.js.map +1 -0
- package/lib/components/feature/feature.styles.d.ts +3 -0
- package/lib/components/feature/feature.styles.d.ts.map +1 -0
- package/lib/components/feature/feature.styles.js +648 -0
- package/lib/components/feature/feature.styles.js.map +1 -0
- package/lib/components/field/field.d.ts +209 -0
- package/lib/components/field/field.d.ts.map +1 -0
- package/lib/components/field/field.js +213 -854
- package/lib/components/field/field.js.map +1 -0
- package/lib/components/field/field.styles.d.ts +3 -0
- package/lib/components/field/field.styles.d.ts.map +1 -0
- package/lib/components/field/field.styles.js +710 -0
- package/lib/components/field/field.styles.js.map +1 -0
- package/lib/components/field-note/field-note.d.ts +37 -0
- package/lib/components/field-note/field-note.d.ts.map +1 -0
- package/lib/components/field-note/field-note.js +58 -674
- package/lib/components/field-note/field-note.js.map +1 -0
- package/lib/components/field-note/field-note.styles.d.ts +3 -0
- package/lib/components/field-note/field-note.styles.d.ts.map +1 -0
- package/lib/components/field-note/field-note.styles.js +628 -0
- package/lib/components/field-note/field-note.styles.js.map +1 -0
- package/lib/components/footer/footer.d.ts +17 -0
- package/lib/components/footer/footer.d.ts.map +1 -0
- package/lib/components/footer/footer.js +25 -620
- package/lib/components/footer/footer.js.map +1 -0
- package/lib/components/footer/footer.styles.d.ts +3 -0
- package/lib/components/footer/footer.styles.d.ts.map +1 -0
- package/lib/components/footer/footer.styles.js +606 -0
- package/lib/components/footer/footer.styles.js.map +1 -0
- package/lib/components/global-nav/global-nav.d.ts +33 -0
- package/lib/components/global-nav/global-nav.d.ts.map +1 -0
- package/lib/components/global-nav/global-nav.js +44 -638
- package/lib/components/global-nav/global-nav.js.map +1 -0
- package/lib/components/global-nav/global-nav.styles.d.ts +3 -0
- package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -0
- package/lib/components/global-nav/global-nav.styles.js +605 -0
- package/lib/components/global-nav/global-nav.styles.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.d.ts +71 -0
- package/lib/components/global-nav-item/global-nav-item.d.ts.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.js +144 -768
- package/lib/components/global-nav-item/global-nav-item.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts +3 -0
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js +665 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -0
- package/lib/components/grid/grid.d.ts +49 -0
- package/lib/components/grid/grid.d.ts.map +1 -0
- package/lib/components/grid/grid.js +48 -976
- package/lib/components/grid/grid.js.map +1 -0
- package/lib/components/grid/grid.styles.d.ts +3 -0
- package/lib/components/grid/grid.styles.d.ts.map +1 -0
- package/lib/components/grid/grid.styles.js +935 -0
- package/lib/components/grid/grid.styles.js.map +1 -0
- package/lib/components/grid-item/grid-item.d.ts +15 -0
- package/lib/components/grid-item/grid-item.d.ts.map +1 -0
- package/lib/components/grid-item/grid-item.js +17 -602
- package/lib/components/grid-item/grid-item.js.map +1 -0
- package/lib/components/grid-item/grid-item.styles.d.ts +3 -0
- package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -0
- package/lib/components/grid-item/grid-item.styles.js +592 -0
- package/lib/components/grid-item/grid-item.styles.js.map +1 -0
- package/lib/components/header/header.d.ts +20 -0
- package/lib/components/header/header.d.ts.map +1 -0
- package/lib/components/header/header.js +34 -670
- package/lib/components/header/header.js.map +1 -0
- package/lib/components/header/header.styles.d.ts +3 -0
- package/lib/components/header/header.styles.d.ts.map +1 -0
- package/lib/components/header/header.styles.js +645 -0
- package/lib/components/header/header.styles.js.map +1 -0
- package/lib/components/heading/heading.d.ts +81 -0
- package/lib/components/heading/heading.d.ts.map +1 -0
- package/lib/components/heading/heading.js +111 -977
- package/lib/components/heading/heading.js.map +1 -0
- package/lib/components/heading/heading.styles.d.ts +3 -0
- package/lib/components/heading/heading.styles.d.ts.map +1 -0
- package/lib/components/heading/heading.styles.js +907 -0
- package/lib/components/heading/heading.styles.js.map +1 -0
- package/lib/components/hero/hero.d.ts +39 -0
- package/lib/components/hero/hero.d.ts.map +1 -0
- package/lib/components/hero/hero.js +43 -760
- package/lib/components/hero/hero.js.map +1 -0
- package/lib/components/hero/hero.styles.d.ts +3 -0
- package/lib/components/hero/hero.styles.d.ts.map +1 -0
- package/lib/components/hero/hero.styles.js +724 -0
- package/lib/components/hero/hero.styles.js.map +1 -0
- package/lib/components/icon/icon.d.ts +78 -0
- package/lib/components/icon/icon.d.ts.map +1 -0
- package/lib/components/icon/icon.js +228 -1246
- package/lib/components/icon/icon.js.map +1 -0
- package/lib/components/icon/icon.styles.d.ts +3 -0
- package/lib/components/icon/icon.styles.d.ts.map +1 -0
- package/lib/components/icon/icon.styles.js +660 -0
- package/lib/components/icon/icon.styles.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.d.ts +52 -0
- package/lib/components/inline-alert/inline-alert.d.ts.map +1 -0
- package/lib/components/inline-alert/inline-alert.js +114 -849
- package/lib/components/inline-alert/inline-alert.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.styles.d.ts +3 -0
- package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -0
- package/lib/components/inline-alert/inline-alert.styles.js +755 -0
- package/lib/components/inline-alert/inline-alert.styles.js.map +1 -0
- package/lib/components/layout/layout.d.ts +25 -0
- package/lib/components/layout/layout.d.ts.map +1 -0
- package/lib/components/layout/layout.js +30 -641
- package/lib/components/layout/layout.js.map +1 -0
- package/lib/components/layout/layout.styles.d.ts +3 -0
- package/lib/components/layout/layout.styles.d.ts.map +1 -0
- package/lib/components/layout/layout.styles.js +618 -0
- package/lib/components/layout/layout.styles.js.map +1 -0
- package/lib/components/layout-container/layout-container.d.ts +20 -0
- package/lib/components/layout-container/layout-container.d.ts.map +1 -0
- package/lib/components/layout-container/layout-container.js +30 -628
- package/lib/components/layout-container/layout-container.js.map +1 -0
- package/lib/components/layout-container/layout-container.styles.d.ts +3 -0
- package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -0
- package/lib/components/layout-container/layout-container.styles.js +605 -0
- package/lib/components/layout-container/layout-container.styles.js.map +1 -0
- package/lib/components/layout-section/layout-section.d.ts +26 -0
- package/lib/components/layout-section/layout-section.d.ts.map +1 -0
- package/lib/components/layout-section/layout-section.js +41 -622
- package/lib/components/layout-section/layout-section.js.map +1 -0
- package/lib/components/layout-section/layout-section.styles.d.ts +3 -0
- package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -0
- package/lib/components/layout-section/layout-section.styles.js +593 -0
- package/lib/components/layout-section/layout-section.styles.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.d.ts +15 -0
- package/lib/components/linelength-container/linelength-container.d.ts.map +1 -0
- package/lib/components/linelength-container/linelength-container.js +17 -602
- package/lib/components/linelength-container/linelength-container.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.styles.d.ts +3 -0
- package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -0
- package/lib/components/linelength-container/linelength-container.styles.js +592 -0
- package/lib/components/linelength-container/linelength-container.styles.js.map +1 -0
- package/lib/components/link/link.d.ts +93 -0
- package/lib/components/link/link.d.ts.map +1 -0
- package/lib/components/link/link.js +123 -846
- package/lib/components/link/link.js.map +1 -0
- package/lib/components/link/link.styles.d.ts +3 -0
- package/lib/components/link/link.styles.d.ts.map +1 -0
- package/lib/components/link/link.styles.js +765 -0
- package/lib/components/link/link.styles.js.map +1 -0
- package/lib/components/link-list/link-list.d.ts +42 -0
- package/lib/components/link-list/link-list.d.ts.map +1 -0
- package/lib/components/link-list/link-list.js +48 -739
- package/lib/components/link-list/link-list.js.map +1 -0
- package/lib/components/link-list/link-list.styles.d.ts +3 -0
- package/lib/components/link-list/link-list.styles.d.ts.map +1 -0
- package/lib/components/link-list/link-list.styles.js +698 -0
- package/lib/components/link-list/link-list.styles.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.d.ts +27 -0
- package/lib/components/link-list-item/link-list-item.d.ts.map +1 -0
- package/lib/components/link-list-item/link-list-item.js +40 -677
- package/lib/components/link-list-item/link-list-item.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.styles.d.ts +3 -0
- package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -0
- package/lib/components/link-list-item/link-list-item.styles.js +644 -0
- package/lib/components/link-list-item/link-list-item.styles.js.map +1 -0
- package/lib/components/list/list.d.ts +34 -0
- package/lib/components/list/list.d.ts.map +1 -0
- package/lib/components/list/list.js +35 -662
- package/lib/components/list/list.js.map +1 -0
- package/lib/components/list/list.styles.d.ts +3 -0
- package/lib/components/list/list.styles.d.ts.map +1 -0
- package/lib/components/list/list.styles.js +634 -0
- package/lib/components/list/list.styles.js.map +1 -0
- package/lib/components/list-item/list-item.d.ts +16 -0
- package/lib/components/list-item/list-item.d.ts.map +1 -0
- package/lib/components/list-item/list-item.js +25 -606
- package/lib/components/list-item/list-item.js.map +1 -0
- package/lib/components/list-item/list-item.styles.d.ts +3 -0
- package/lib/components/list-item/list-item.styles.d.ts.map +1 -0
- package/lib/components/list-item/list-item.styles.js +589 -0
- package/lib/components/list-item/list-item.styles.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.d.ts +90 -0
- package/lib/components/loading-spinner/loading-spinner.d.ts.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.js +124 -787
- package/lib/components/loading-spinner/loading-spinner.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts +3 -0
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js +722 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -0
- package/lib/components/logo/logo.d.ts +19 -0
- package/lib/components/logo/logo.d.ts.map +1 -0
- package/lib/components/logo/logo.js +28 -613
- package/lib/components/logo/logo.js.map +1 -0
- package/lib/components/logo/logo.styles.d.ts +3 -0
- package/lib/components/logo/logo.styles.d.ts.map +1 -0
- package/lib/components/logo/logo.styles.js +592 -0
- package/lib/components/logo/logo.styles.js.map +1 -0
- package/lib/components/main/main.d.ts +20 -0
- package/lib/components/main/main.d.ts.map +1 -0
- package/lib/components/main/main.js +29 -628
- package/lib/components/main/main.js.map +1 -0
- package/lib/components/main/main.styles.d.ts +3 -0
- package/lib/components/main/main.styles.d.ts.map +1 -0
- package/lib/components/main/main.styles.js +606 -0
- package/lib/components/main/main.styles.js.map +1 -0
- package/lib/components/modal/modal.d.ts +99 -0
- package/lib/components/modal/modal.d.ts.map +1 -0
- package/lib/components/modal/modal.js +170 -878
- package/lib/components/modal/modal.js.map +1 -0
- package/lib/components/modal/modal.styles.d.ts +3 -0
- package/lib/components/modal/modal.styles.d.ts.map +1 -0
- package/lib/components/modal/modal.styles.js +743 -0
- package/lib/components/modal/modal.styles.js.map +1 -0
- package/lib/components/multi-select/multi-select.d.ts +131 -0
- package/lib/components/multi-select/multi-select.d.ts.map +1 -0
- package/lib/components/multi-select/multi-select.js +294 -1030
- package/lib/components/multi-select/multi-select.js.map +1 -0
- package/lib/components/multi-select/multi-select.styles.d.ts +3 -0
- package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -0
- package/lib/components/multi-select/multi-select.styles.js +829 -0
- package/lib/components/multi-select/multi-select.styles.js.map +1 -0
- package/lib/components/nav-container/nav-container.d.ts +15 -0
- package/lib/components/nav-container/nav-container.d.ts.map +1 -0
- package/lib/components/nav-container/nav-container.js +17 -631
- package/lib/components/nav-container/nav-container.js.map +1 -0
- package/lib/components/nav-container/nav-container.styles.d.ts +3 -0
- package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -0
- package/lib/components/nav-container/nav-container.styles.js +621 -0
- package/lib/components/nav-container/nav-container.styles.js.map +1 -0
- package/lib/components/page-header/page-header.d.ts +19 -0
- package/lib/components/page-header/page-header.d.ts.map +1 -0
- package/lib/components/page-header/page-header.js +36 -664
- package/lib/components/page-header/page-header.js.map +1 -0
- package/lib/components/page-header/page-header.styles.d.ts +3 -0
- package/lib/components/page-header/page-header.styles.d.ts.map +1 -0
- package/lib/components/page-header/page-header.styles.js +639 -0
- package/lib/components/page-header/page-header.styles.js.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.d.ts +20 -0
- package/lib/components/pagination/page-counter/page-counter.d.ts.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.js +67 -0
- package/lib/components/pagination/page-counter/page-counter.js.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts +3 -0
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.styles.js +602 -0
- package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -0
- package/lib/components/pagination/pagination.d.ts +126 -0
- package/lib/components/pagination/pagination.d.ts.map +1 -0
- package/lib/components/pagination/pagination.js +272 -1475
- package/lib/components/pagination/pagination.js.map +1 -0
- package/lib/components/pagination/pagination.styles.d.ts +3 -0
- package/lib/components/pagination/pagination.styles.d.ts.map +1 -0
- package/lib/components/pagination/pagination.styles.js +648 -0
- package/lib/components/pagination/pagination.styles.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.d.ts +26 -0
- package/lib/components/percent-bar/percent-bar.d.ts.map +1 -0
- package/lib/components/percent-bar/percent-bar.js +53 -657
- package/lib/components/percent-bar/percent-bar.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.styles.d.ts +3 -0
- package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -0
- package/lib/components/percent-bar/percent-bar.styles.js +614 -0
- package/lib/components/percent-bar/percent-bar.styles.js.map +1 -0
- package/lib/components/popover/popover.d.ts +155 -0
- package/lib/components/popover/popover.d.ts.map +1 -0
- package/lib/components/popover/popover.js +293 -933
- package/lib/components/popover/popover.js.map +1 -0
- package/lib/components/popover/popover.styles.d.ts +3 -0
- package/lib/components/popover/popover.styles.d.ts.map +1 -0
- package/lib/components/popover/popover.styles.js +769 -0
- package/lib/components/popover/popover.styles.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.d.ts +33 -0
- package/lib/components/primary-nav/primary-nav.d.ts.map +1 -0
- package/lib/components/primary-nav/primary-nav.js +44 -649
- package/lib/components/primary-nav/primary-nav.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.styles.d.ts +3 -0
- package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -0
- package/lib/components/primary-nav/primary-nav.styles.js +616 -0
- package/lib/components/primary-nav/primary-nav.styles.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.d.ts +71 -0
- package/lib/components/primary-nav-item/primary-nav-item.d.ts.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.js +146 -874
- package/lib/components/primary-nav-item/primary-nav-item.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts +3 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js +770 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.d.ts +51 -0
- package/lib/components/progress-meter/progress-meter.d.ts.map +1 -0
- package/lib/components/progress-meter/progress-meter.js +72 -753
- package/lib/components/progress-meter/progress-meter.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.styles.d.ts +3 -0
- package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -0
- package/lib/components/progress-meter/progress-meter.styles.js +702 -0
- package/lib/components/progress-meter/progress-meter.styles.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.d.ts +34 -0
- package/lib/components/progress-steps/progress-steps.d.ts.map +1 -0
- package/lib/components/progress-steps/progress-steps.js +38 -617
- package/lib/components/progress-steps/progress-steps.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.styles.d.ts +3 -0
- package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -0
- package/lib/components/progress-steps/progress-steps.styles.js +604 -0
- package/lib/components/progress-steps/progress-steps.styles.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.d.ts +44 -0
- package/lib/components/progress-steps-item/progress-steps-item.d.ts.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.js +51 -749
- package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts +3 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js +714 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -0
- package/lib/components/radio-field/radio-field.d.ts +56 -0
- package/lib/components/radio-field/radio-field.d.ts.map +1 -0
- package/lib/components/radio-field/radio-field.js +59 -672
- package/lib/components/radio-field/radio-field.js.map +1 -0
- package/lib/components/radio-field/radio-field.styles.d.ts +3 -0
- package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -0
- package/lib/components/radio-field/radio-field.styles.js +627 -0
- package/lib/components/radio-field/radio-field.styles.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.d.ts +158 -0
- package/lib/components/radio-field-item/radio-field-item.d.ts.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.js +213 -890
- package/lib/components/radio-field-item/radio-field-item.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts +3 -0
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js +724 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.d.ts +53 -0
- package/lib/components/remove-tag/remove-tag.d.ts.map +1 -0
- package/lib/components/remove-tag/remove-tag.js +86 -742
- package/lib/components/remove-tag/remove-tag.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.styles.d.ts +3 -0
- package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -0
- package/lib/components/remove-tag/remove-tag.styles.js +684 -0
- package/lib/components/remove-tag/remove-tag.styles.js.map +1 -0
- package/lib/components/section/section.d.ts +33 -0
- package/lib/components/section/section.d.ts.map +1 -0
- package/lib/components/section/section.js +46 -634
- package/lib/components/section/section.js.map +1 -0
- package/lib/components/section/section.styles.d.ts +3 -0
- package/lib/components/section/section.styles.d.ts.map +1 -0
- package/lib/components/section/section.styles.js +611 -0
- package/lib/components/section/section.styles.js.map +1 -0
- package/lib/components/select/select.d.ts +169 -0
- package/lib/components/select/select.d.ts.map +1 -0
- package/lib/components/select/select.js +235 -890
- package/lib/components/select/select.js.map +1 -0
- package/lib/components/select/select.styles.d.ts +3 -0
- package/lib/components/select/select.styles.d.ts.map +1 -0
- package/lib/components/select/select.styles.js +742 -0
- package/lib/components/select/select.styles.js.map +1 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.d.ts +40 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.js +60 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.js.map +1 -0
- package/lib/components/select-tile/select-tile-radio-controller.d.ts +87 -0
- package/lib/components/select-tile/select-tile-radio-controller.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile-radio-controller.js +167 -0
- package/lib/components/select-tile/select-tile-radio-controller.js.map +1 -0
- package/lib/components/select-tile/select-tile.d.ts +159 -0
- package/lib/components/select-tile/select-tile.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile.js +228 -226
- package/lib/components/select-tile/select-tile.js.map +1 -0
- package/lib/components/select-tile/select-tile.styles.d.ts +3 -0
- package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile.styles.js +4 -0
- package/lib/components/select-tile/select-tile.styles.js.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.d.ts +52 -0
- package/lib/components/select-tile-list/select-tile-list.d.ts.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.js +73 -678
- package/lib/components/select-tile-list/select-tile-list.js.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts +3 -0
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js +623 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.d.ts +53 -0
- package/lib/components/skeleton-loader/skeleton-loader.d.ts.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.js +68 -672
- package/lib/components/skeleton-loader/skeleton-loader.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts +3 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js +637 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -0
- package/lib/components/split-button/split-button.d.ts +34 -0
- package/lib/components/split-button/split-button.d.ts.map +1 -0
- package/lib/components/split-button/split-button.js +49 -638
- package/lib/components/split-button/split-button.js.map +1 -0
- package/lib/components/split-button/split-button.styles.d.ts +3 -0
- package/lib/components/split-button/split-button.styles.d.ts.map +1 -0
- package/lib/components/split-button/split-button.styles.js +598 -0
- package/lib/components/split-button/split-button.styles.js.map +1 -0
- package/lib/components/submenu/submenu.d.ts +15 -0
- package/lib/components/submenu/submenu.d.ts.map +1 -0
- package/lib/components/submenu/submenu.js +17 -604
- package/lib/components/submenu/submenu.js.map +1 -0
- package/lib/components/submenu/submenu.styles.d.ts +3 -0
- package/lib/components/submenu/submenu.styles.d.ts.map +1 -0
- package/lib/components/submenu/submenu.styles.js +594 -0
- package/lib/components/submenu/submenu.styles.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.d.ts +19 -0
- package/lib/components/submenu-item/submenu-item.d.ts.map +1 -0
- package/lib/components/submenu-item/submenu-item.js +32 -624
- package/lib/components/submenu-item/submenu-item.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.styles.d.ts +3 -0
- package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -0
- package/lib/components/submenu-item/submenu-item.styles.js +602 -0
- package/lib/components/submenu-item/submenu-item.styles.js.map +1 -0
- package/lib/components/tab/tab.d.ts +58 -0
- package/lib/components/tab/tab.d.ts.map +1 -0
- package/lib/components/tab/tab.js +73 -741
- package/lib/components/tab/tab.js.map +1 -0
- package/lib/components/tab/tab.styles.d.ts +3 -0
- package/lib/components/tab/tab.styles.d.ts.map +1 -0
- package/lib/components/tab/tab.styles.js +683 -0
- package/lib/components/tab/tab.styles.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.d.ts +38 -0
- package/lib/components/tab-panel/tab-panel.d.ts.map +1 -0
- package/lib/components/tab-panel/tab-panel.js +49 -657
- package/lib/components/tab-panel/tab-panel.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.styles.d.ts +3 -0
- package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -0
- package/lib/components/tab-panel/tab-panel.styles.js +618 -0
- package/lib/components/tab-panel/tab-panel.styles.js.map +1 -0
- package/lib/components/table/table.d.ts +43 -0
- package/lib/components/table/table.d.ts.map +1 -0
- package/lib/components/table/table.js +46 -673
- package/lib/components/table/table.js.map +1 -0
- package/lib/components/table/table.styles.d.ts +3 -0
- package/lib/components/table/table.styles.d.ts.map +1 -0
- package/lib/components/table/table.styles.js +636 -0
- package/lib/components/table/table.styles.js.map +1 -0
- package/lib/components/table-body/table-body.d.ts +15 -0
- package/lib/components/table-body/table-body.d.ts.map +1 -0
- package/lib/components/table-body/table-body.js +19 -607
- package/lib/components/table-body/table-body.js.map +1 -0
- package/lib/components/table-body/table-body.styles.d.ts +3 -0
- package/lib/components/table-body/table-body.styles.d.ts.map +1 -0
- package/lib/components/table-body/table-body.styles.js +595 -0
- package/lib/components/table-body/table-body.styles.js.map +1 -0
- package/lib/components/table-cell/table-cell.d.ts +32 -0
- package/lib/components/table-cell/table-cell.d.ts.map +1 -0
- package/lib/components/table-cell/table-cell.js +39 -660
- package/lib/components/table-cell/table-cell.js.map +1 -0
- package/lib/components/table-cell/table-cell.styles.d.ts +3 -0
- package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -0
- package/lib/components/table-cell/table-cell.styles.js +628 -0
- package/lib/components/table-cell/table-cell.styles.js.map +1 -0
- package/lib/components/table-header/table-header.d.ts +15 -0
- package/lib/components/table-header/table-header.d.ts.map +1 -0
- package/lib/components/table-header/table-header.js +19 -627
- package/lib/components/table-header/table-header.js.map +1 -0
- package/lib/components/table-header/table-header.styles.d.ts +3 -0
- package/lib/components/table-header/table-header.styles.d.ts.map +1 -0
- package/lib/components/table-header/table-header.styles.js +615 -0
- package/lib/components/table-header/table-header.styles.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.d.ts +24 -0
- package/lib/components/table-header-cell/table-header-cell.d.ts.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.js +35 -635
- package/lib/components/table-header-cell/table-header-cell.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts +3 -0
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js +607 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -0
- package/lib/components/table-object/table-object.d.ts +15 -0
- package/lib/components/table-object/table-object.d.ts.map +1 -0
- package/lib/components/table-object/table-object.js +21 -616
- package/lib/components/table-object/table-object.js.map +1 -0
- package/lib/components/table-object/table-object.styles.d.ts +3 -0
- package/lib/components/table-object/table-object.styles.d.ts.map +1 -0
- package/lib/components/table-object/table-object.styles.js +602 -0
- package/lib/components/table-object/table-object.styles.js.map +1 -0
- package/lib/components/table-row/table-row.d.ts +43 -0
- package/lib/components/table-row/table-row.d.ts.map +1 -0
- package/lib/components/table-row/table-row.js +74 -745
- package/lib/components/table-row/table-row.js.map +1 -0
- package/lib/components/table-row/table-row.styles.d.ts +3 -0
- package/lib/components/table-row/table-row.styles.d.ts.map +1 -0
- package/lib/components/table-row/table-row.styles.js +694 -0
- package/lib/components/table-row/table-row.styles.js.map +1 -0
- package/lib/components/tabs/tabs.d.ts +238 -0
- package/lib/components/tabs/tabs.d.ts.map +1 -0
- package/lib/components/tabs/tabs.js +441 -969
- package/lib/components/tabs/tabs.js.map +1 -0
- package/lib/components/tabs/tabs.styles.d.ts +3 -0
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -0
- package/lib/components/tabs/tabs.styles.js +681 -0
- package/lib/components/tabs/tabs.styles.js.map +1 -0
- package/lib/components/tag/tag.d.ts +92 -0
- package/lib/components/tag/tag.d.ts.map +1 -0
- package/lib/components/tag/tag.js +222 -850
- package/lib/components/tag/tag.js.map +1 -0
- package/lib/components/tag/tag.styles.d.ts +3 -0
- package/lib/components/tag/tag.styles.d.ts.map +1 -0
- package/lib/components/tag/tag.styles.js +698 -0
- package/lib/components/tag/tag.styles.js.map +1 -0
- package/lib/components/tag-list/tag-list.d.ts +28 -0
- package/lib/components/tag-list/tag-list.d.ts.map +1 -0
- package/lib/components/tag-list/tag-list.js +40 -646
- package/lib/components/tag-list/tag-list.js.map +1 -0
- package/lib/components/tag-list/tag-list.styles.d.ts +3 -0
- package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -0
- package/lib/components/tag-list/tag-list.styles.js +615 -0
- package/lib/components/tag-list/tag-list.styles.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.d.ts +23 -0
- package/lib/components/tertiary-nav/tertiary-nav.d.ts.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.js +40 -645
- package/lib/components/tertiary-nav/tertiary-nav.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts +3 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js +616 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts +29 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +52 -677
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts +3 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +638 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -0
- package/lib/components/text-link/text-link.d.ts +43 -0
- package/lib/components/text-link/text-link.d.ts.map +1 -0
- package/lib/components/text-link/text-link.js +45 -692
- package/lib/components/text-link/text-link.js.map +1 -0
- package/lib/components/text-link/text-link.styles.d.ts +3 -0
- package/lib/components/text-link/text-link.styles.d.ts.map +1 -0
- package/lib/components/text-link/text-link.styles.js +655 -0
- package/lib/components/text-link/text-link.styles.js.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.d.ts +3 -0
- package/lib/components/text-passage/text-passage-light-dom.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.js +145 -0
- package/lib/components/text-passage/text-passage-light-dom.js.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts +3 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.js +843 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -0
- package/lib/components/text-passage/text-passage.d.ts +44 -0
- package/lib/components/text-passage/text-passage.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage.js +73 -1505
- package/lib/components/text-passage/text-passage.js.map +1 -0
- package/lib/components/text-passage/text-passage.styles.d.ts +3 -0
- package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage.styles.js +625 -0
- package/lib/components/text-passage/text-passage.styles.js.map +1 -0
- package/lib/components/tooltip/tooltip.d.ts +171 -0
- package/lib/components/tooltip/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip/tooltip.js +270 -945
- package/lib/components/tooltip/tooltip.js.map +1 -0
- package/lib/components/tooltip/tooltip.styles.d.ts +3 -0
- package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -0
- package/lib/components/tooltip/tooltip.styles.js +784 -0
- package/lib/components/tooltip/tooltip.styles.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.d.ts +24 -0
- package/lib/components/utility-nav/utility-nav.d.ts.map +1 -0
- package/lib/components/utility-nav/utility-nav.js +40 -645
- package/lib/components/utility-nav/utility-nav.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.styles.d.ts +3 -0
- package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -0
- package/lib/components/utility-nav/utility-nav.styles.js +616 -0
- package/lib/components/utility-nav/utility-nav.styles.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.d.ts +39 -0
- package/lib/components/utility-nav-item/utility-nav-item.d.ts.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.js +70 -691
- package/lib/components/utility-nav-item/utility-nav-item.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts +3 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js +646 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts +3 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.js +737 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.js.map +1 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts +3 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js +756 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js.map +1 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js +771 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js.map +1 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/fonts.css +4 -8
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js +776 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js +737 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts +3 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js +983 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js.map +1 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts +3 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js +737 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts +3 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js +736 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js.map +1 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +3 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js +737 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js.map +1 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.d.ts +3 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.js +91 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.js.map +1 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts +3 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js +771 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.d.ts +3 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.js +552 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.js.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts +3 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js +776 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js.map +1 -0
- package/lib/design-tokens/core/scss/theming/head.module.d.ts +3 -0
- package/lib/design-tokens/core/scss/theming/head.module.d.ts.map +1 -0
- package/lib/design-tokens/core/scss/theming/head.module.js +6 -0
- package/lib/design-tokens/core/scss/theming/head.module.js.map +1 -0
- package/lib/directives/if-truthy.d.ts +10 -0
- package/lib/directives/if-truthy.d.ts.map +1 -0
- package/lib/directives/if-truthy.js +24 -0
- package/lib/directives/if-truthy.js.map +1 -0
- package/lib/directives/spread.d.ts +10 -0
- package/lib/directives/spread.d.ts.map +1 -0
- package/lib/directives/spread.js +29 -0
- package/lib/directives/spread.js.map +1 -0
- package/lib/index.d.ts +88 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +86 -172
- package/lib/index.js.map +1 -0
- package/lib/scripts/convert-scss-to-ts.d.ts +2 -0
- package/lib/scripts/convert-scss-to-ts.d.ts.map +1 -0
- package/lib/scripts/convert-scss-to-ts.js +100 -0
- package/lib/scripts/convert-scss-to-ts.js.map +1 -0
- package/lib/scripts/generate-mcp-manifest.d.ts +8 -0
- package/lib/scripts/generate-mcp-manifest.d.ts.map +1 -0
- package/lib/scripts/generate-mcp-manifest.js +350 -0
- package/lib/scripts/generate-mcp-manifest.js.map +1 -0
- package/lib/scripts/generate-react-wrappers.d.ts +2 -0
- package/lib/scripts/generate-react-wrappers.d.ts.map +1 -0
- package/lib/scripts/generate-react-wrappers.js +292 -0
- package/lib/scripts/generate-react-wrappers.js.map +1 -0
- package/lib/toBeAccessible.d.ts +9 -0
- package/lib/toBeAccessible.d.ts.map +1 -0
- package/lib/toBeAccessible.js +18 -0
- package/lib/toBeAccessible.js.map +1 -0
- package/lib/utilities/is-mobile.d.ts +5 -0
- package/lib/utilities/is-mobile.d.ts.map +1 -0
- package/lib/utilities/is-mobile.js +10 -0
- package/lib/utilities/is-mobile.js.map +1 -0
- package/lib/utilities/story-helpers.d.ts +9 -0
- package/lib/utilities/story-helpers.d.ts.map +1 -0
- package/lib/utilities/story-helpers.js +14 -0
- package/lib/utilities/story-helpers.js.map +1 -0
- package/lib/vite.config.cdn.d.ts +18 -0
- package/lib/vite.config.cdn.d.ts.map +1 -0
- package/lib/vite.config.cdn.js +87 -0
- package/lib/vite.config.cdn.js.map +1 -0
- package/lib/vite.config.d.ts +3 -0
- package/lib/vite.config.d.ts.map +1 -0
- package/lib/vite.config.js +195 -0
- package/lib/vite.config.js.map +1 -0
- package/mcp-manifest.json +1 -1
- package/package.json +1 -1
|
@@ -1,984 +1,230 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
display: flex;
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 1) Button or link that has functionality to it
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Primary button
|
|
23
|
-
*/
|
|
24
|
-
.cre8-c-button {
|
|
25
|
-
@include cre8-typography-label-default();
|
|
26
|
-
width: var(--cre8-button-width, auto);
|
|
27
|
-
height: var(--cre8-button-height, auto);
|
|
28
|
-
min-width: var(--cre8-button-min-width, auto);
|
|
29
|
-
min-height: var(--cre8-button-min-height, auto);
|
|
30
|
-
justify-content: center;
|
|
31
|
-
text-align: center;
|
|
32
|
-
margin-top: var( --cre8-button-margin-top, 0);
|
|
33
|
-
margin-bottom: var( --cre8-button-margin-bottom, 0);
|
|
34
|
-
margin-left: var( --cre8-button-margin-left, 0);
|
|
35
|
-
margin-right: var( --cre8-button-margin-right, 0);
|
|
36
|
-
display: inline-flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
border-width: var(--cre8-border-width-button-default);
|
|
39
|
-
box-shadow: var(--cre8-shadow-button);
|
|
40
|
-
padding-top: var(--cre8-button-padding-vertical-medium);
|
|
41
|
-
padding-right: var(--cre8-button-padding-horizontal-medium);
|
|
42
|
-
padding-bottom: var(--cre8-button-padding-vertical-medium);
|
|
43
|
-
padding-left: var(--cre8-button-padding-horizontal-medium);
|
|
44
|
-
margin: 0;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
border-style: var(--cre8-border-style-default);
|
|
47
|
-
transition: revert;
|
|
48
|
-
transform: revert;
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
&:hover,
|
|
51
|
-
&:focus,
|
|
52
|
-
&:active,
|
|
53
|
-
&:focus-visible {
|
|
54
|
-
border-style: var(--cre8-border-style-default);
|
|
55
|
-
box-shadow: none;
|
|
56
|
-
transform: revert;
|
|
57
|
-
transition: revert;
|
|
58
|
-
}
|
|
59
|
-
&.cre8-c-button--primary {
|
|
60
|
-
background: var(--cre8-color-button-primary-bg);
|
|
61
|
-
border-width: var(--cre8-border-width-button-default);
|
|
62
|
-
border-color: var(--cre8-color-button-primary-border);
|
|
63
|
-
border-radius: var(--cre8-border-radius-button);
|
|
64
|
-
box-shadow: var(--cre8-shadow-button);
|
|
65
|
-
color: var(--cre8-color-button-primary-content);
|
|
66
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-content);
|
|
67
|
-
&:hover,
|
|
68
|
-
&:focus {
|
|
69
|
-
box-shadow: none;
|
|
70
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-content-hover);
|
|
71
|
-
color: var(--cre8-color-button-primary-content-hover);
|
|
72
|
-
border-color: var(--cre8-color-button-primary-border-hover);
|
|
73
|
-
background: var(--cre8-color-button-primary-bg-hover);
|
|
74
|
-
text-decoration: none;
|
|
75
|
-
&:focus {
|
|
76
|
-
@includefocus();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
&:focus-visible,
|
|
80
|
-
&:active,
|
|
81
|
-
&.cre8-c-button--loading {
|
|
82
|
-
box-shadow: none;
|
|
83
|
-
color: var(--cre8-color-button-primary-content-active);
|
|
84
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-content-active);
|
|
85
|
-
border-color: var(--cre8-color-button-primary-border-active);
|
|
86
|
-
background-color: var(--cre8-color-button-primary-bg-active);
|
|
87
|
-
}
|
|
88
|
-
&:focus-visible{
|
|
89
|
-
@includefocus();
|
|
90
|
-
}
|
|
91
|
-
&.cre8-c-button--loading{
|
|
92
|
-
cursor: not-allowed;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Disabled primary and secondary button
|
|
96
|
-
*/
|
|
97
|
-
&:disabled {
|
|
98
|
-
box-shadow: none;
|
|
99
|
-
background-color: var(--cre8-color-button-primary-bg-disabled);
|
|
100
|
-
border-color: var(--cre8-color-button-primary-border-disabled);
|
|
101
|
-
color: var(--cre8-color-button-primary-content-disabled);
|
|
102
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-content-disabled);
|
|
103
|
-
cursor: not-allowed;
|
|
104
|
-
outline: none;
|
|
105
|
-
&:hover,
|
|
106
|
-
&:focus,
|
|
107
|
-
&:active,
|
|
108
|
-
&:focus-visible {
|
|
109
|
-
outline: none;
|
|
110
|
-
background-color: var(--cre8-color-button-primary-bg-disabled);
|
|
111
|
-
border-color: var(--cre8-color-button-primary-border-disabled);
|
|
112
|
-
color: var(--cre8-color-button-primary-content-disabled);
|
|
113
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-content-disabled);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Primary button inverse
|
|
120
|
-
*/
|
|
121
|
-
&.cre8-c-button--primary.cre8-c-button--inverse {
|
|
122
|
-
background: var(--cre8-color-button-primary-inverse-bg);
|
|
123
|
-
border-width: var(--cre8-border-width-button-default);
|
|
124
|
-
border-color: var(--cre8-color-button-primary-inverse-border);
|
|
125
|
-
border-radius: var(--cre8-border-radius-button);
|
|
126
|
-
box-shadow: var(--cre8-shadow-button);
|
|
127
|
-
color: var(--cre8-color-button-primary-inverse-content);
|
|
128
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-inverse-content);
|
|
129
|
-
&:hover,
|
|
130
|
-
&:focus {
|
|
131
|
-
box-shadow: none;
|
|
132
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-hover);
|
|
133
|
-
color: var(--cre8-color-button-primary-inverse-content-hover);
|
|
134
|
-
border-color: var(--cre8-color-button-primary-inverse-border-hover);
|
|
135
|
-
background: var(--cre8-color-button-primary-inverse-bg-hover);
|
|
136
|
-
text-decoration: none;
|
|
137
|
-
&:focus {
|
|
138
|
-
@includefocus();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
&:focus-visible,
|
|
142
|
-
&:active,
|
|
143
|
-
&.cre8-c-button--loading {
|
|
144
|
-
box-shadow: none;
|
|
145
|
-
color: var(--cre8-color-button-primary-inverse-content-active);
|
|
146
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-active);
|
|
147
|
-
border-color: var(--cre8-color-button-primary-inverse-border-active);
|
|
148
|
-
background-color: var(--cre8-color-button-primary-inverse-bg-active);
|
|
149
|
-
}
|
|
150
|
-
&:focus-visible{
|
|
151
|
-
@includefocus();
|
|
152
|
-
}
|
|
153
|
-
&.cre8-c-button--loading{
|
|
154
|
-
cursor: not-allowed;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&:disabled {
|
|
158
|
-
box-shadow: none;
|
|
159
|
-
background-color: var(--cre8-color-button-primary-inverse-bg-disabled);
|
|
160
|
-
border-color: var(--cre8-color-button-primary-inverse-border-disabled);
|
|
161
|
-
color: var(--cre8-color-button-primary-inverse-content-disabled);
|
|
162
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-disabled);
|
|
163
|
-
cursor: not-allowed;
|
|
164
|
-
outline: none;
|
|
165
|
-
&:hover,
|
|
166
|
-
&:focus,
|
|
167
|
-
&:active,
|
|
168
|
-
&:focus-visible {
|
|
169
|
-
outline: none;
|
|
170
|
-
background-color: var(--cre8-color-button-primary-inverse-bg-disabled);
|
|
171
|
-
border-color: var(--cre8-color-button-primary-inverse-border-disabled);
|
|
172
|
-
color: var(--cre8-color-button-primary-inverse-content-disabled);
|
|
173
|
-
--cre8-icon-fill: var(--cre8-color-button-primary-inverse-content-disabled);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Secondary button
|
|
180
|
-
* The icon button shares the styles of the standard secondary button
|
|
181
|
-
*/
|
|
182
|
-
&.cre8-c-button--secondary {
|
|
183
|
-
background-color: var(--cre8-color-button-secondary-bg);
|
|
184
|
-
border-color: var(--cre8-color-button-secondary-border);
|
|
185
|
-
color: var(--cre8-color-button-secondary-content);
|
|
186
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content);
|
|
187
|
-
border-radius: var(--cre8-border-radius-button);
|
|
188
|
-
border-width: var(--cre8-border-width-button-default);
|
|
189
|
-
|
|
190
|
-
&:hover,
|
|
191
|
-
&:focus {
|
|
192
|
-
background-color: var(--cre8-color-button-secondary-bg-hover);
|
|
193
|
-
border-color: var(--cre8-color-button-secondary-border-hover);
|
|
194
|
-
color: var(--cre8-color-button-secondary-content-hover);
|
|
195
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content-hover);
|
|
196
|
-
&:focus {
|
|
197
|
-
@includefocus();
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
&:focus-visible,
|
|
201
|
-
&:active,
|
|
202
|
-
&.cre8-c-button--loading {
|
|
203
|
-
transition: none;
|
|
204
|
-
transform: none;
|
|
205
|
-
background-color: var(--cre8-color-button-secondary-bg-active);
|
|
206
|
-
border-color: var(--cre8-color-button-secondary-border-active);
|
|
207
|
-
color: var(--cre8-color-button-secondary-content-active);
|
|
208
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
|
|
209
|
-
}
|
|
210
|
-
&:focus-visible {
|
|
211
|
-
@includefocus();
|
|
212
|
-
}
|
|
213
|
-
&.cre8-c-button--loading {
|
|
214
|
-
cursor: not-allowed;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&:disabled {
|
|
218
|
-
box-shadow: none;
|
|
219
|
-
background-color: var(--cre8-color-button-secondary-bg-disabled);
|
|
220
|
-
border-color: var(--cre8-color-button-secondary-border-disabled);
|
|
221
|
-
color: var(--cre8-color-button-secondary-content-disabled);
|
|
222
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content-disabled);
|
|
223
|
-
outline: none;
|
|
224
|
-
border-radius: var(--cre8-border-radius-button);
|
|
225
|
-
border-width: var(--cre8-border-width-button-default);
|
|
226
|
-
cursor: not-allowed;
|
|
227
|
-
&:hover,
|
|
228
|
-
&:focus,
|
|
229
|
-
&:active,
|
|
230
|
-
&:focus-visible {
|
|
231
|
-
outline: none;
|
|
232
|
-
background-color: var(--cre8-color-button-secondary-bg-disabled);
|
|
233
|
-
border-color: var(--cre8-color-button-secondary-border-disabled);
|
|
234
|
-
color: var(--cre8-color-button-secondary-content-disabled);
|
|
235
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content-disabled);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Secondary button neutral
|
|
242
|
-
*/
|
|
243
|
-
&.cre8-c-button--secondary.cre8-c-button--neutral {
|
|
244
|
-
background-color: var(--cre8-color-button-secondary-neutral-bg);
|
|
245
|
-
border-color: var(--cre8-color-button-secondary-neutral-border);
|
|
246
|
-
color: var(--cre8-color-button-secondary-neutral-content);
|
|
247
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content);
|
|
248
|
-
border-radius: var(--cre8-border-radius-button);
|
|
249
|
-
border-width: var(--cre8-border-width-button-default);
|
|
250
|
-
|
|
251
|
-
&:hover,
|
|
252
|
-
&:focus {
|
|
253
|
-
background-color: var(--cre8-color-button-secondary-neutral-bg-hover);
|
|
254
|
-
border-color: var(--cre8-color-button-secondary-neutral-border-hover);
|
|
255
|
-
color: var(--cre8-color-button-secondary-neutral-content-hover);
|
|
256
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-hover);
|
|
257
|
-
&:focus {
|
|
258
|
-
@includefocus();
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
&:focus-visible,
|
|
262
|
-
&:active,
|
|
263
|
-
&.cre8-c-button--loading {
|
|
264
|
-
transition: none;
|
|
265
|
-
transform: none;
|
|
266
|
-
background-color: var(--cre8-color-button-secondary-neutral-bg-active);
|
|
267
|
-
border-color: var(--cre8-color-button-secondary-neutral-border-active);
|
|
268
|
-
color: var(--cre8-color-button-secondary-neutral-content-active);
|
|
269
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-active);
|
|
270
|
-
}
|
|
271
|
-
&:focus-visible {
|
|
272
|
-
@includefocus();
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
&:disabled {
|
|
276
|
-
box-shadow: none;
|
|
277
|
-
background-color: var(--cre8-color-button-secondary-neutral-bg-disabled);
|
|
278
|
-
border-color: var(--cre8-color-button-secondary-neutral-border-disabled);
|
|
279
|
-
color: var(--cre8-color-button-secondary-neutral-content-disabled);
|
|
280
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-disabled);
|
|
281
|
-
outline: none;
|
|
282
|
-
border-radius: var(--cre8-border-radius-button);
|
|
283
|
-
border-width: var(--cre8-border-width-button-default);
|
|
284
|
-
cursor: not-allowed;
|
|
285
|
-
&:hover,
|
|
286
|
-
&:focus,
|
|
287
|
-
&:active,
|
|
288
|
-
&:focus-visible {
|
|
289
|
-
outline: none;
|
|
290
|
-
background-color: var(--cre8-color-button-secondary-neutral-bg-disabled);
|
|
291
|
-
border-color: var(--cre8-color-button-secondary-neutral-border-disabled);
|
|
292
|
-
color: var(--cre8-color-button-secondary-neutral-content-disabled);
|
|
293
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-content-disabled);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* Secondary button inverse
|
|
300
|
-
*/
|
|
301
|
-
&.cre8-c-button--secondary.cre8-c-button--inverse {
|
|
302
|
-
background-color: var(--cre8-color-button-secondary-inverse-bg);
|
|
303
|
-
border-color: var(--cre8-color-button-secondary-inverse-border);
|
|
304
|
-
color: var(--cre8-color-button-secondary-inverse-content);
|
|
305
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content);
|
|
306
|
-
border-radius: var(--cre8-border-radius-button);
|
|
307
|
-
border-width: var(--cre8-border-width-button-default);
|
|
308
|
-
|
|
309
|
-
&:hover,
|
|
310
|
-
&:focus {
|
|
311
|
-
background-color: var(--cre8-color-button-secondary-inverse-bg-hover);
|
|
312
|
-
border-color: var(--cre8-color-button-secondary-inverse-border-hover);
|
|
313
|
-
color: var(--cre8-color-button-secondary-inverse-content-hover);
|
|
314
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-hover);
|
|
315
|
-
&:focus {
|
|
316
|
-
@includefocus();
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
&:focus-visible,
|
|
320
|
-
&:active,
|
|
321
|
-
&.cre8-c-button--loading {
|
|
322
|
-
transition: none;
|
|
323
|
-
transform: none;
|
|
324
|
-
background-color: var(--cre8-color-button-secondary-inverse-bg-active);
|
|
325
|
-
border-color: var(--cre8-color-button-secondary-inverse-border-active);
|
|
326
|
-
color: var(--cre8-color-button-secondary-inverse-content-active);
|
|
327
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-active);
|
|
328
|
-
}
|
|
329
|
-
&:focus-visible {
|
|
330
|
-
@includefocus();
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
&:disabled {
|
|
334
|
-
box-shadow: none;
|
|
335
|
-
background-color: var(--cre8-color-button-secondary-inverse-bg-disabled);
|
|
336
|
-
border-color: var(--cre8-color-button-secondary-inverse-border-disabled);
|
|
337
|
-
color: var(--cre8-color-button-secondary-inverse-content-disabled);
|
|
338
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-disabled);
|
|
339
|
-
outline: none;
|
|
340
|
-
border-radius: var(--cre8-border-radius-button);
|
|
341
|
-
border-width: var(--cre8-border-width-button-default);
|
|
342
|
-
cursor: not-allowed;
|
|
343
|
-
&:hover,
|
|
344
|
-
&:focus,
|
|
345
|
-
&:active,
|
|
346
|
-
&:focus-visible {
|
|
347
|
-
outline: none;
|
|
348
|
-
background-color: var(--cre8-color-button-secondary-inverse-bg-disabled);
|
|
349
|
-
border-color: var(--cre8-color-button-secondary-inverse-border-disabled);
|
|
350
|
-
color: var(--cre8-color-button-secondary-inverse-content-disabled);
|
|
351
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-inverse-content-disabled);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Secondary button neutral inverse
|
|
358
|
-
*/
|
|
359
|
-
&.cre8-c-button--secondary.cre8-c-button--neutral.cre8-c-button--inverse {
|
|
360
|
-
background-color: var(--cre8-color-button-secondary-neutral-inverse-bg);
|
|
361
|
-
border-color: var(--cre8-color-button-secondary-neutral-inverse-border);
|
|
362
|
-
color: var(--cre8-color-button-secondary-neutral-inverse-content);
|
|
363
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content);
|
|
364
|
-
border-radius: var(--cre8-border-radius-button);
|
|
365
|
-
border-width: var(--cre8-border-width-button-default);
|
|
366
|
-
|
|
367
|
-
&:hover,
|
|
368
|
-
&:focus {
|
|
369
|
-
@includefocus();
|
|
370
|
-
background-color: var(--cre8-color-button-secondary-neutral-bg-active);
|
|
371
|
-
border-color: var(--cre8-color-button-secondary-neutral-inverse-border-active);
|
|
372
|
-
outline-color: var(--cre8-color-button-secondary-neutral-inverse-outline);
|
|
373
|
-
color: var(--cre8-color-button-secondary-neutral-inverse-content-active);
|
|
374
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-active);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
&:focus-visible,
|
|
378
|
-
&:active,
|
|
379
|
-
&.cre8-c-button--loading {
|
|
380
|
-
transition: none;
|
|
381
|
-
transform: none;
|
|
382
|
-
background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-active);
|
|
383
|
-
border-color: var(--cre8-color-button-secondary-neutral-inverse-border-active);
|
|
384
|
-
color: var(--cre8-color-button-secondary-neutral-inverse-content-active);
|
|
385
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-active);
|
|
386
|
-
}
|
|
387
|
-
&:focus-visible {
|
|
388
|
-
@includefocus();
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
&:disabled {
|
|
392
|
-
box-shadow: none;
|
|
393
|
-
background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-disabled);
|
|
394
|
-
border-color: var(--cre8-color-button-secondary-neutral-inverse-border-disabled);
|
|
395
|
-
color: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
|
|
396
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
|
|
397
|
-
outline: none;
|
|
398
|
-
border-radius: var(--cre8-border-radius-button);
|
|
399
|
-
border-width: var(--cre8-border-width-button-default);
|
|
400
|
-
cursor: not-allowed;
|
|
401
|
-
&:hover,
|
|
402
|
-
&:focus,
|
|
403
|
-
&:active,
|
|
404
|
-
&:focus-visible {
|
|
405
|
-
outline: none;
|
|
406
|
-
background-color: var(--cre8-color-button-secondary-neutral-inverse-bg-disabled);
|
|
407
|
-
border-color: var(--cre8-color-button-secondary-neutral-inverse-border-disabled);
|
|
408
|
-
color: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
|
|
409
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-neutral-inverse-content-disabled);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Tertiary button
|
|
416
|
-
*/
|
|
417
|
-
&.cre8-c-button--tertiary {
|
|
418
|
-
border-radius: var(--cre8-border-radius-button);
|
|
419
|
-
background-color: var(--cre8-color-button-tertiary-bg);
|
|
420
|
-
border-width: var(--cre8-border-width-button-default);
|
|
421
|
-
border-color: var(--cre8-color-button-tertiary-border);
|
|
422
|
-
color: var(--cre8-color-button-tertiary-content);
|
|
423
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-content);
|
|
424
|
-
box-shadow: none;
|
|
425
|
-
&:hover,
|
|
426
|
-
&:focus {
|
|
427
|
-
border-radius: var(--cre8-border-radius-button);
|
|
428
|
-
background-color: var(--cre8-color-button-tertiary-bg-hover);
|
|
429
|
-
border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
|
|
430
|
-
border-color: var(--cre8-color-button-tertiary-border-hover);
|
|
431
|
-
color: var(--cre8-color-button-tertiary-content-hover);
|
|
432
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-content-hover);
|
|
433
|
-
&:focus {
|
|
434
|
-
@includefocusTertiary();
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
&:focus-visible,
|
|
439
|
-
&:active,
|
|
440
|
-
&.cre8-c-button--loading {
|
|
441
|
-
border-radius: var(--cre8-border-radius-button);
|
|
442
|
-
background-color: var(--cre8-color-button-tertiary-bg-active);
|
|
443
|
-
border-color: var(--cre8-color-button-tertiary-border-active);
|
|
444
|
-
border-width: var(--cre8-border-width-button-default);
|
|
445
|
-
color: var(--cre8-color-button-tertiary-content-active);
|
|
446
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-content-active);
|
|
447
|
-
}
|
|
448
|
-
&:focus-visible {
|
|
449
|
-
@includefocusTertiary();
|
|
450
|
-
}
|
|
451
|
-
&.cre8-c-button--loading {
|
|
452
|
-
cursor: not-allowed;
|
|
453
|
-
}
|
|
454
|
-
&:disabled {
|
|
455
|
-
background-color: var(--cre8-color-button-tertiary-bg-disabled);
|
|
456
|
-
border-color: transparent;
|
|
457
|
-
color: var(--cre8-color-button-tertiary-content-disabled);
|
|
458
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
|
|
459
|
-
outline: none;
|
|
460
|
-
box-shadow: none;
|
|
461
|
-
cursor: not-allowed;
|
|
462
|
-
|
|
463
|
-
&:hover,
|
|
464
|
-
&:focus {
|
|
465
|
-
outline: none;
|
|
466
|
-
box-shadow: none;
|
|
467
|
-
background-color: var(--cre8-color-button-tertiary-bg-disabled);
|
|
468
|
-
color: var(--cre8-color-button-tertiary-content-disabled);
|
|
469
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
|
|
470
|
-
}
|
|
471
|
-
&:active,
|
|
472
|
-
&:focus-visible {
|
|
473
|
-
outline: none;
|
|
474
|
-
box-shadow: none;
|
|
475
|
-
background-color: var(--cre8-color-button-tertiary-bg-disabled);
|
|
476
|
-
color: var(--cre8-color-button-tertiary-content-disabled);
|
|
477
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-content-disabled);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* Tertiary button neutral
|
|
484
|
-
*/
|
|
485
|
-
&.cre8-c-button--tertiary.cre8-c-button--neutral {
|
|
486
|
-
background-color: var(--cre8-color-button-tertiary-neutral-bg);
|
|
487
|
-
border-color: var(--cre8-color-button-tertiary-border);
|
|
488
|
-
color: var(--cre8-color-button-tertiary-neutral-content);
|
|
489
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content);
|
|
490
|
-
border-radius: var(--cre8-border-radius-button);
|
|
491
|
-
border-width: var(--cre8-border-width-button-default);
|
|
492
|
-
|
|
493
|
-
&:hover,
|
|
494
|
-
&:focus {
|
|
495
|
-
background-color: var(--cre8-color-button-tertiary-neutral-bg-hover);
|
|
496
|
-
border-color: var(--cre8-color-button-tertiary-neutral-border-hover);
|
|
497
|
-
color: var(--cre8-color-button-tertiary-neutral-content-hover);
|
|
498
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-hover);
|
|
499
|
-
outline-color: var(--cre8-color-button-tertiary-neutral-outline);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
&:focus-visible,
|
|
503
|
-
&:active,
|
|
504
|
-
&.cre8-c-button--loading {
|
|
505
|
-
transition: none;
|
|
506
|
-
transform: none;
|
|
507
|
-
background-color: var(--cre8-color-button-tertiary-neutral-bg-active);
|
|
508
|
-
border-color: var(--cre8-color-button-tertiary-neutral-border-active);
|
|
509
|
-
color: var(--cre8-color-button-tertiary-neutral-content-active);
|
|
510
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-active);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
&:focus-visible {
|
|
514
|
-
@includefocus();
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
&:disabled {
|
|
518
|
-
box-shadow: none;
|
|
519
|
-
background-color: var(--cre8-color-button-tertiary-neutral-bg-disabled);
|
|
520
|
-
border-color: var(--cre8-color-button-tertiary-neutral-border-disabled);
|
|
521
|
-
color: var(--cre8-color-button-tertiary-neutral-content-disabled);
|
|
522
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-content-disabled);
|
|
523
|
-
outline: none;
|
|
524
|
-
border-radius: var(--cre8-border-radius-button);
|
|
525
|
-
border-width: var(--cre8-border-width-button-default);
|
|
526
|
-
|
|
527
|
-
cursor: not-allowed;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, nothing, } from 'lit';
|
|
8
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
9
|
+
import { property, query } from 'lit/decorators.js';
|
|
10
|
+
import { Cre8FormElement } from '../cre8-form-element';
|
|
11
|
+
import '../icon/icon';
|
|
12
|
+
import '../loading-spinner/loading-spinner';
|
|
13
|
+
import styles from './button.styles.js';
|
|
531
14
|
/**
|
|
532
|
-
*
|
|
15
|
+
* The size and state of buttons on the screen serve as visual cues for the user
|
|
16
|
+
* about what they can do and what they should do next.
|
|
17
|
+
* They indicate the availability and priority of the action on the page.
|
|
18
|
+
*
|
|
19
|
+
* - Buttons are a single call-to-action where a single click performs that action
|
|
20
|
+
* - Use buttons when you are performing an action which is almost always on the same page
|
|
21
|
+
* - Use a link instead of a button when you're navigating to another place
|
|
22
|
+
*
|
|
23
|
+
* ## How to Use
|
|
24
|
+
*
|
|
25
|
+
* Buttons are distinguished by three key properties:
|
|
26
|
+
*
|
|
27
|
+
* - **Visual Priority**: Style and size: Primary, Secondary, or Tertiary styles;
|
|
28
|
+
* each with large and small variations
|
|
29
|
+
* - **State**: Interaction state: hover/click (press), focus, disabled,
|
|
30
|
+
* and submitting/loading (only for large buttons)
|
|
31
|
+
* - **Brand**: Styles determined by the site or component theme
|
|
32
|
+
*
|
|
33
|
+
* ### Usage Guidelines
|
|
34
|
+
*
|
|
35
|
+
* Primary, Secondary and Tertiary styles emphasize or de-emphasize an action. They also define
|
|
36
|
+
* background, font style, and border colors. Large and small sizing assists with visual priority by defining button
|
|
37
|
+
* heights, left and right internal padding, and font-size.
|
|
38
|
+
*
|
|
39
|
+
* #### System Feedback
|
|
40
|
+
* Each button has a default and hover/click (press) state that give the user feedback
|
|
41
|
+
* that they have successfully interacted with a button.
|
|
42
|
+
* Button presses should always be combined with other types of timely system feedback.
|
|
43
|
+
* Examples of system feedback may be a page refresh, exposing additional controls or content,
|
|
44
|
+
* dialogs, alerts and notifications.
|
|
45
|
+
* If there is perceived a delay in system response, generally due to technical constraints,
|
|
46
|
+
* provide a progress or loading indicator.
|
|
47
|
+
*
|
|
48
|
+
* #### Button Text
|
|
49
|
+
*
|
|
50
|
+
* - Button text should be as short and simple as possible, ideally a maximum of 3 words.
|
|
51
|
+
* - Use Title Case for readability.
|
|
52
|
+
* - They should not include punctuation (exception: "Loading...").
|
|
53
|
+
* - They should not be used as an indicator of what happens on the next page, or as a substitute
|
|
54
|
+
* for a progress meter.
|
|
55
|
+
*
|
|
56
|
+
* #### Button With Icon
|
|
57
|
+
*
|
|
58
|
+
* For button with icon:
|
|
59
|
+
* - **iconRotateDegree** & **iconFlipDirection** props are optional.
|
|
60
|
+
* - They are used to set up the correct direction for icons, for example,
|
|
61
|
+
* arrows, caret up or caret down.
|
|
62
|
+
*
|
|
63
|
+
* #### Button Styling
|
|
64
|
+
*
|
|
65
|
+
* - DO use only the styles of the brand you are working on.
|
|
66
|
+
* - DO NOT combine styles, even if the page is co-branded.
|
|
67
|
+
*
|
|
68
|
+
* #### Button Sizes
|
|
69
|
+
* - DO always pair like sizes together and maintain the hierarchy of Primary and Secondary/Tertiary.
|
|
70
|
+
* - DO NOT mix sizes of buttons when they are used together as a group.
|
|
71
|
+
*
|
|
72
|
+
* #### Input Pairing
|
|
73
|
+
*
|
|
74
|
+
* Primary and Secondary buttons may be paired with input fields.
|
|
75
|
+
* Only one Primary button may appear on each screen.
|
|
76
|
+
* Use the Secondary button when there are multiple in-context buttons
|
|
77
|
+
* and/or when there is an emphasized page level button.
|
|
78
|
+
* When used in a form context, the button's `type` needs to be `submit` to pass along form data.
|
|
79
|
+
*
|
|
80
|
+
* - DO use only large buttons with input fields.
|
|
81
|
+
* - DO NOT use small buttons with input fields.
|
|
82
|
+
*
|
|
533
83
|
*/
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
&:hover,
|
|
579
|
-
&:focus {
|
|
580
|
-
outline: none;
|
|
581
|
-
box-shadow: none;
|
|
582
|
-
background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
|
|
583
|
-
color: var(--cre8-color-button-tertiary-inverse-content-disabled);
|
|
584
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
|
|
585
|
-
}
|
|
586
|
-
&:active,
|
|
587
|
-
&:focus-visible {
|
|
588
|
-
outline: none;
|
|
589
|
-
box-shadow: none;
|
|
590
|
-
background-color: var(--cre8-color-button-tertiary-inverse-bg-disabled);
|
|
591
|
-
color: var(--cre8-color-button-tertiary-inverse-content-disabled);
|
|
592
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-inverse-content-disabled);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* Tertiary Neutral button inverse
|
|
599
|
-
*/
|
|
600
|
-
&.cre8-c-button--tertiary.cre8-c-button--neutral.cre8-c-button--inverse {
|
|
601
|
-
border-radius: var(--cre8-border-radius-button);
|
|
602
|
-
background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg);
|
|
603
|
-
border-width: var(--cre8-border-width-button-default);
|
|
604
|
-
color: var(--cre8-color-button-tertiary-neutral-inverse-content);
|
|
605
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content);
|
|
606
|
-
box-shadow: none;
|
|
607
|
-
|
|
608
|
-
&:hover,
|
|
609
|
-
&:focus {
|
|
610
|
-
border-radius: var(--cre8-border-radius-button);
|
|
611
|
-
background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-hover);
|
|
612
|
-
border-width: var(--cre8-border-width-button-default, --cre8-border-width-none);
|
|
613
|
-
border-color: var(--cre8-color-button-tertiary-neutral-inverse-border-hover);
|
|
614
|
-
color: var(--cre8-color-button-tertiary-neutral-inverse-content-hover);
|
|
615
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-hover);
|
|
616
|
-
outline-color: var(--cre8-color-button-tertiary-neutral-inverse-outline);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
&:focus-visible,
|
|
620
|
-
&:active,
|
|
621
|
-
&.cre8-c-button--loading {
|
|
622
|
-
border-radius: var(--cre8-border-radius-button);
|
|
623
|
-
background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-active);
|
|
624
|
-
border-color: var(--cre8-color-button-tertiary-neutral-inverse-border-active);
|
|
625
|
-
border-width: var(--cre8-border-width-button-default);
|
|
626
|
-
color: var(--cre8-color-button-tertiary-neutral-inverse-content-active);
|
|
627
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-active);
|
|
628
|
-
outline-color: var(--cre8-color-button-tertiary-neutral-inverse-outline);
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
&.cre8-c-button--loading {
|
|
632
|
-
cursor: not-allowed;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
&:disabled {
|
|
636
|
-
background-color: var(--cre8-color-button-tertiary-neutral-inverse-bg-disabled);
|
|
637
|
-
border-color: transparent;
|
|
638
|
-
color: var(--cre8-color-button-tertiary-neutral-inverse-content-disabled);
|
|
639
|
-
--cre8-icon-fill: var(--cre8-color-button-tertiary-neutral-inverse-content-disabled);
|
|
640
|
-
outline: none;
|
|
641
|
-
box-shadow: none;
|
|
642
|
-
cursor: not-allowed;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
&.cre8-c-button.cre8-c-button--secondary.cre8-c-button--split-button-text {
|
|
647
|
-
border-radius: var(--cre8-border-radius-button) var(--cre8-border-radius-none) var(--cre8-border-radius-none) var(--cre8-border-radius-button);
|
|
648
|
-
border-color: var(--cre8-color-button-secondary-border);
|
|
649
|
-
border-width: var(--cre8-border-width-button-default);
|
|
650
|
-
color: var(--cre8-color-button-secondary-content);
|
|
651
|
-
&:active,
|
|
652
|
-
&:focus-visible {
|
|
653
|
-
outline: none;
|
|
654
|
-
}
|
|
655
|
-
&.cre8-c-button--lg {
|
|
656
|
-
padding: var(--cre8-button-padding-vertical-large) var(--cre8-button-padding-horizontal-large);
|
|
84
|
+
export class Cre8Button extends Cre8FormElement {
|
|
85
|
+
constructor() {
|
|
86
|
+
super(...arguments);
|
|
87
|
+
/**
|
|
88
|
+
* Style variant
|
|
89
|
+
* - **primary** renders the button used for primary actions. Presents highest visual priority.
|
|
90
|
+
* When grouped with other buttons, only one primary is allowed
|
|
91
|
+
* - **secondary** renders a secondary button. Presents a lower visual priority
|
|
92
|
+
* - **tertiary** renders a tertiary button. Presents the lowest visual priority.
|
|
93
|
+
* Should be used in limited amounts - consider if a link (`<a>`) would be more appropriate
|
|
94
|
+
*/
|
|
95
|
+
this.variant = 'primary';
|
|
96
|
+
/**
|
|
97
|
+
* Type of button.
|
|
98
|
+
* - **button** (default) button has no default behavior and does nothing unless provided some sort
|
|
99
|
+
* of client-side trigger
|
|
100
|
+
* - **submit** button for submitting form data to a server
|
|
101
|
+
*/
|
|
102
|
+
this.type = 'button';
|
|
103
|
+
/**
|
|
104
|
+
* iconRotateDegree is used for <cre8-icon> to set the arrow in the correct direction
|
|
105
|
+
*/
|
|
106
|
+
this.iconRotateDegree = 0;
|
|
107
|
+
/**
|
|
108
|
+
* Icon position. Must include the name of the icon with `iconName`
|
|
109
|
+
*
|
|
110
|
+
* - **before** places the icon before the button text
|
|
111
|
+
* - **after** places the icon after the button text
|
|
112
|
+
*/
|
|
113
|
+
this.iconPosition = undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Size variants add another way to increase or decrease visual priority of a button.
|
|
116
|
+
* - **sm** Shrinks the button typography and overall size from the default. Use when vertical space is constrained.
|
|
117
|
+
* - **md** This is the default value for the size.
|
|
118
|
+
* - **lg** Increases the button typography and overall size from the default.
|
|
119
|
+
*/
|
|
120
|
+
this.size = 'md';
|
|
121
|
+
/**
|
|
122
|
+
* Controls whether your loading status update to voiceover users will occur
|
|
123
|
+
* immediately (used for more urgently needed updates) using `assertive` or at the next convenient
|
|
124
|
+
* pause in their navigation using `polite`.
|
|
125
|
+
*/
|
|
126
|
+
this.ariaLive = 'assertive';
|
|
657
127
|
}
|
|
658
|
-
|
|
659
|
-
|
|
128
|
+
formSubmit() {
|
|
129
|
+
const form = this._internals.form;
|
|
130
|
+
if (form) {
|
|
131
|
+
form.requestSubmit();
|
|
132
|
+
}
|
|
660
133
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
height: 100%;
|
|
667
|
-
border-left: none !important ;
|
|
668
|
-
border-collapse: collapse;
|
|
669
|
-
background: var(--cre8-color-button-secondary-bg);
|
|
670
|
-
border-color: var(--cre8-color-button-secondary-border);
|
|
671
|
-
border-width: var(--cre8-border-width-button-default);
|
|
672
|
-
color: var(--cre8-color-button-secondary-content);
|
|
673
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content);
|
|
674
|
-
|
|
675
|
-
&:hover,
|
|
676
|
-
&:focus {
|
|
677
|
-
background: var(--cre8-color-button-secondary-bg-hover);
|
|
678
|
-
border-color: var(--cre8-color-button-secondary-border-hover);
|
|
679
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content-hover);
|
|
680
|
-
outline: none;
|
|
681
|
-
border-left: none;
|
|
682
|
-
border-collapse: collapse;
|
|
134
|
+
formReset() {
|
|
135
|
+
const form = this._internals.form;
|
|
136
|
+
if (form) {
|
|
137
|
+
form.reset();
|
|
138
|
+
}
|
|
683
139
|
}
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
|
|
689
|
-
outline: none;
|
|
690
|
-
border-left: none;
|
|
691
|
-
border-collapse: collapse;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
.cre8-c-button--lg {
|
|
697
|
-
padding: var(--cre8-button-padding-vertical-large);
|
|
698
|
-
}
|
|
699
|
-
.cre8-c-button--sm {
|
|
700
|
-
padding: var(--cre8-button-padding-vertical-small);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
.cre8-c-button--icon-only {
|
|
704
|
-
padding: var(--cre8-button-padding-vertical-small);
|
|
705
|
-
color: var(--cre8-icon-fill, currentColor);
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* Full-width button
|
|
710
|
-
*/
|
|
711
|
-
.cre8-c-button--full-width {
|
|
712
|
-
width: 100%;
|
|
713
|
-
display: flex;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* Small button
|
|
718
|
-
*/
|
|
719
|
-
.cre8-c-button--sm {
|
|
720
|
-
@include cre8-typography-label-small();
|
|
721
|
-
padding-top: var(--cre8-button-padding-vertical-small);
|
|
722
|
-
padding-right: var(--cre8-button-padding-horizontal-small);
|
|
723
|
-
padding-bottom: var(--cre8-button-padding-vertical-small);
|
|
724
|
-
padding-left: var(--cre8-button-padding-horizontal-small);
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* Small button sized for icon only
|
|
729
|
-
*/
|
|
730
|
-
.cre8-c-button--sm.cre8-c-button--icon-only {
|
|
731
|
-
@include cre8-typography-label-small();
|
|
732
|
-
padding-top: var(--cre8-button-padding-vertical-small-icon-only);
|
|
733
|
-
padding-right: var(--cre8-button-padding-horizontal-small-icon-only);
|
|
734
|
-
padding-bottom: var(--cre8-button-padding-vertical-small-icon-only);
|
|
735
|
-
padding-left: var(--cre8-button-padding-horizontal-small-icon-only);
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Large button
|
|
740
|
-
*/
|
|
741
|
-
.cre8-c-button--lg {
|
|
742
|
-
@include cre8-typography-label-large();
|
|
743
|
-
padding-top: var(--cre8-button-padding-vertical-large);
|
|
744
|
-
padding-right: var(--cre8-button-padding-horizontal-large);
|
|
745
|
-
padding-bottom: var(--cre8-button-padding-vertical-large);
|
|
746
|
-
padding-left: var(--cre8-button-padding-horizontal-large);
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* Large button sized for icon only
|
|
751
|
-
*/
|
|
752
|
-
.cre8-c-button--lg.cre8-c-button--icon-only {
|
|
753
|
-
@include cre8-typography-label-large();
|
|
754
|
-
padding-top: var(--cre8-button-padding-vertical-large-icon-only);
|
|
755
|
-
padding-right: var(--cre8-button-padding-horizontal-large-icon-only);
|
|
756
|
-
padding-bottom: var(--cre8-button-padding-vertical-large-icon-only);
|
|
757
|
-
padding-left: var(--cre8-button-padding-horizontal-large-icon-only);
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* Icon within small button
|
|
762
|
-
*/
|
|
763
|
-
.cre8-c-button--sm cre8-icon-legacy {
|
|
764
|
-
--cre8-icon-height: var(--cre8-icon-size-small);
|
|
765
|
-
--cre8-icon-width: var(--cre8-icon-size-small);
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
.cre8-c-button--sm cre8-icon {
|
|
769
|
-
svg {
|
|
770
|
-
height: size(1.75);
|
|
771
|
-
width: size(1.75);
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* Icon within large button
|
|
777
|
-
*/
|
|
778
|
-
.cre8-c-button--lg cre8-icon-legacy {
|
|
779
|
-
--cre8-icon-height: var(--cre8-icon-size-large);
|
|
780
|
-
--cre8-icon-width: var(--cre8-icon-size-large);
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
.cre8-c-button--lg cre8-icon {
|
|
784
|
-
svg {
|
|
785
|
-
height: size(2.25);
|
|
786
|
-
width: size(2.25);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
::slotted(*) {
|
|
791
|
-
margin-right: 0;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* Button icon directly before button text
|
|
795
|
-
*/
|
|
796
|
-
|
|
797
|
-
cre8-icon-legacy + .cre8-c-button__text:not(.cre8-u-is-vishidden) {
|
|
798
|
-
margin-left: size(1);
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
cre8-icon + .cre8-c-button__text:not(.cre8-u-is-vishidden) {
|
|
802
|
-
margin-left: size(1);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* Button icon directly after button text
|
|
807
|
-
*/
|
|
808
|
-
.cre8-c-button__text:not(.cre8-u-is-vishidden) + cre8-icon-legacy {
|
|
809
|
-
margin-left: size(1);
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
.cre8-c-button__text:not(.cre8-u-is-vishidden) + cre8-icon {
|
|
813
|
-
margin-left: size(1);
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* Button icon only
|
|
817
|
-
*/
|
|
818
|
-
.cre8-c-button:has(.cre8-c-button__text.cre8-u-is-vishidden) + cre8-icon-legacy {
|
|
819
|
-
border-radius: var(--cre8-border-radius-button);
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
.cre8-c-button:has(.cre8-c-button__text.cre8-u-is-vishidden) + cre8-icon {
|
|
823
|
-
border-radius: var(--cre8-border-radius-button);
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
.cre8-c-button__text.cre8-u-is-vishidden + cre8-icon-legacy {
|
|
827
|
-
margin-left: 0px;
|
|
828
|
-
margin-right: 0px;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
.cre8-c-button__text.cre8-u-is-vishidden + cre8-icon {
|
|
832
|
-
margin-left: 0px;
|
|
833
|
-
margin-right: 0px;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
.cre8-c-button__text.cre8-u-is-vishidden {
|
|
837
|
-
@include visuallyHidden();
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
.cre8-c-button--primary.cre8-c-button--loading {
|
|
841
|
-
--cre8-icon-fill: var(--cre8-color-content-knockout);
|
|
842
|
-
}
|
|
843
|
-
.cre8-c-button--secondary.cre8-c-button--loading,
|
|
844
|
-
.cre8-c-button--tertiary.cre8-c-button--loading {
|
|
845
|
-
--cre8-icon-fill: var(--cre8-color-button-secondary-content-active);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* Aria live span
|
|
850
|
-
*/
|
|
851
|
-
.cre8-u-is-vishidden {
|
|
852
|
-
--cre8-icon-height: 0px;
|
|
853
|
-
--cre8-icon-width: 0px;
|
|
854
|
-
max-width: fit-content;
|
|
855
|
-
min-width: 0px;
|
|
856
|
-
width: auto;
|
|
857
|
-
height: auto;
|
|
858
|
-
max-height: fit-content;
|
|
859
|
-
min-width: 0px;
|
|
860
|
-
|
|
861
|
-
@include visuallyHidden();
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
cre8-icon-legacy.cre8-u-is-vishidden {
|
|
865
|
-
@include visuallyHidden();
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
span.cre8-c-button__icon {
|
|
869
|
-
margin-left: size(1);
|
|
870
|
-
max-width: fit-content;
|
|
871
|
-
min-width: 0px;
|
|
872
|
-
width: auto;
|
|
873
|
-
height: auto;
|
|
874
|
-
max-height: fit-content;
|
|
875
|
-
min-width: 0px;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
cre8-icon {
|
|
879
|
-
display: flex;
|
|
880
|
-
align-items: center;
|
|
881
|
-
justify-content: center;
|
|
882
|
-
|
|
883
|
-
svg {
|
|
884
|
-
height: size(2);
|
|
885
|
-
width: size(2);
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
`;
|
|
889
|
-
var f = Object.defineProperty, o = (b, t, u, p) => {
|
|
890
|
-
for (var a = void 0, l = b.length - 1, s; l >= 0; l--)
|
|
891
|
-
(s = b[l]) && (a = s(t, u, a) || a);
|
|
892
|
-
return a && f(t, u, a), a;
|
|
893
|
-
};
|
|
894
|
-
const d = class d extends h {
|
|
895
|
-
constructor() {
|
|
896
|
-
super(...arguments), this.variant = "primary", this.type = "button", this.iconRotateDegree = 0, this.iconPosition = void 0, this.size = "md", this.ariaLive = "assertive";
|
|
897
|
-
}
|
|
898
|
-
formSubmit() {
|
|
899
|
-
const t = this._internals.form;
|
|
900
|
-
t && t.requestSubmit();
|
|
901
|
-
}
|
|
902
|
-
formReset() {
|
|
903
|
-
const t = this._internals.form;
|
|
904
|
-
t && t.reset();
|
|
905
|
-
}
|
|
906
|
-
generateIconBefore() {
|
|
907
|
-
if (this.iconPosition === "before") {
|
|
908
|
-
if (this.iconName)
|
|
909
|
-
return n`<cre8-icon-legacy slot="before" aria-hidden="true" name="${c(this.iconName)}">
|
|
140
|
+
generateIconBefore() {
|
|
141
|
+
if (this.iconPosition === 'before') {
|
|
142
|
+
if (this.iconName) {
|
|
143
|
+
return html `<cre8-icon-legacy slot="before" aria-hidden="true" name="${ifDefined(this.iconName)}">
|
|
910
144
|
</cre8-icon-legacy>`;
|
|
911
|
-
|
|
912
|
-
|
|
145
|
+
}
|
|
146
|
+
if (this.svg) {
|
|
147
|
+
return html `<cre8-icon slot="before" aria-hidden="true"
|
|
913
148
|
svg='${this.svg}' rotate="${Number(this.iconRotateDegree)}" flip="${this.iconFlipDirection}">
|
|
914
149
|
</cre8-icon>`;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return nothing;
|
|
915
153
|
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
if (this.iconName)
|
|
921
|
-
return n`<cre8-icon-legacy slot="after" aria-hidden="true" name="${c(this.iconName)}">
|
|
154
|
+
generateIconAfter() {
|
|
155
|
+
if (this.iconPosition === 'after') {
|
|
156
|
+
if (this.iconName) {
|
|
157
|
+
return html `<cre8-icon-legacy slot="after" aria-hidden="true" name="${ifDefined(this.iconName)}">
|
|
922
158
|
</cre8-icon-legacy>`;
|
|
923
|
-
|
|
924
|
-
|
|
159
|
+
}
|
|
160
|
+
if (this.svg) {
|
|
161
|
+
return html `<cre8-icon slot="after" aria-hidden="true"
|
|
925
162
|
svg='${this.svg}' rotate="${Number(this.iconRotateDegree)}" flip="${this.iconFlipDirection}">
|
|
926
163
|
</cre8-icon>`;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return nothing;
|
|
927
167
|
}
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
168
|
+
// TODO: Temporarily keep eslint complexity as warning. Update during specific story for this rule.
|
|
169
|
+
/* eslint complexity: ["warn", 10] */
|
|
170
|
+
render() {
|
|
171
|
+
const componentClassName = this.componentClassNames('cre8-c-button', {
|
|
172
|
+
'cre8-c-button--primary': this.variant === 'primary',
|
|
173
|
+
'cre8-c-button--secondary': this.variant === 'secondary',
|
|
174
|
+
'cre8-c-button--tertiary': this.variant === 'tertiary',
|
|
175
|
+
'cre8-c-button--full-width': this.fullWidth === true,
|
|
176
|
+
'cre8-c-button--sm': this.size === 'sm',
|
|
177
|
+
'cre8-c-button--lg': this.size === 'lg',
|
|
178
|
+
'cre8-c-button--icon-only': this.hideText,
|
|
179
|
+
'cre8-c-button--split-button-text': this.splitButtonType === 'text',
|
|
180
|
+
'cre8-c-button--split-button-caret': this.splitButtonType === 'caret',
|
|
181
|
+
'cre8-c-button--neutral': this.neutral,
|
|
182
|
+
'cre8-c-button--inverse': this.inverse,
|
|
183
|
+
'cre8-c-button--loading': this.loading,
|
|
184
|
+
});
|
|
185
|
+
if (this.hideText) {
|
|
186
|
+
this.iconPosition = 'after';
|
|
187
|
+
}
|
|
188
|
+
if (this.href) {
|
|
189
|
+
return html `
|
|
948
190
|
<a
|
|
949
|
-
href="${
|
|
950
|
-
class="${
|
|
951
|
-
rel="${
|
|
952
|
-
target="${
|
|
191
|
+
href="${ifDefined(this.href)}"
|
|
192
|
+
class="${componentClassName}"
|
|
193
|
+
rel="${ifDefined(this.rel)}"
|
|
194
|
+
target="${ifDefined(this.target)}"
|
|
953
195
|
>
|
|
954
196
|
${this.generateIconBefore()}
|
|
955
197
|
<span
|
|
956
|
-
class="${this.hideText ?
|
|
198
|
+
class="${this.hideText ? 'cre8-u-is-vishidden cre8-c-button__text' : 'cre8-c-button__text'}"
|
|
957
199
|
>
|
|
958
200
|
${this.text}
|
|
959
201
|
</span>
|
|
960
202
|
${this.generateIconAfter()}
|
|
961
203
|
</a>
|
|
962
|
-
|
|
963
|
-
|
|
204
|
+
`;
|
|
205
|
+
}
|
|
206
|
+
return html ` <button
|
|
207
|
+
class="${componentClassName}"
|
|
964
208
|
part="button"
|
|
965
|
-
aria-disabled="${
|
|
209
|
+
aria-disabled="${ifDefined(this.loading)}"
|
|
966
210
|
?disabled=${this.disabled}
|
|
967
211
|
@click="${this._buttonClick}"
|
|
968
|
-
aria-expanded="${
|
|
212
|
+
aria-expanded="${ifDefined(this.buttonAriaExpanded)}"
|
|
969
213
|
>
|
|
970
214
|
<slot name="before"></slot>
|
|
971
215
|
${this.generateIconBefore()}
|
|
972
216
|
<span
|
|
973
|
-
class="${this.hideText ?
|
|
217
|
+
class="${this.hideText ? 'cre8-u-is-vishidden cre8-c-button__text' : 'cre8-c-button__text'}"
|
|
974
218
|
>
|
|
975
219
|
${this.text}
|
|
976
220
|
</span>
|
|
977
221
|
${this.generateIconAfter()}
|
|
978
222
|
<slot name="after"></slot>
|
|
979
|
-
${this.loading || this.loadingComplete
|
|
980
|
-
|
|
981
|
-
|
|
223
|
+
${this.loading || this.loadingComplete
|
|
224
|
+
? html `<span class="cre8-c-button__icon" aria-live="${this.ariaLive}" role="alert">
|
|
225
|
+
<span class="cre8-u-is-vishidden">${this.loadingComplete ? 'Loading Complete' : 'Loading'}</span>
|
|
226
|
+
${!this.loadingComplete
|
|
227
|
+
? html `
|
|
982
228
|
<cre8-loading-spinner
|
|
983
229
|
class="cre8-c-button__loading-icon"
|
|
984
230
|
size="small"
|
|
@@ -986,97 +232,101 @@ const d = class d extends h {
|
|
|
986
232
|
?inverse=${this.inverse}
|
|
987
233
|
buttonVariant=${this.variant}
|
|
988
234
|
aria-hidden="true"
|
|
989
|
-
></cre8-loading-spinner>`
|
|
990
|
-
|
|
235
|
+
></cre8-loading-spinner>`
|
|
236
|
+
: nothing}
|
|
237
|
+
</span>`
|
|
238
|
+
: nothing}
|
|
991
239
|
</button>`;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
240
|
+
}
|
|
241
|
+
_buttonClick(e) {
|
|
242
|
+
if (this.loading) {
|
|
243
|
+
e.stopPropagation();
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
switch (this.type) {
|
|
247
|
+
case 'submit':
|
|
248
|
+
this.formSubmit();
|
|
249
|
+
break;
|
|
250
|
+
case 'reset':
|
|
251
|
+
this.formReset();
|
|
252
|
+
break;
|
|
253
|
+
// no default
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
Cre8Button.styles = [styles];
|
|
259
|
+
__decorate([
|
|
260
|
+
property()
|
|
261
|
+
], Cre8Button.prototype, "text", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
property({ type: String })
|
|
264
|
+
], Cre8Button.prototype, "variant", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
property({ type: Boolean, reflect: true })
|
|
267
|
+
], Cre8Button.prototype, "disabled", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
property({ type: Boolean, reflect: true })
|
|
270
|
+
], Cre8Button.prototype, "neutral", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
property({ type: Boolean, reflect: true })
|
|
273
|
+
], Cre8Button.prototype, "inverse", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
property()
|
|
276
|
+
], Cre8Button.prototype, "href", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
property()
|
|
279
|
+
], Cre8Button.prototype, "target", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
property()
|
|
282
|
+
], Cre8Button.prototype, "type", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
property()
|
|
285
|
+
], Cre8Button.prototype, "rel", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
property()
|
|
288
|
+
], Cre8Button.prototype, "iconName", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
property()
|
|
291
|
+
], Cre8Button.prototype, "svg", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
property({ type: Number })
|
|
294
|
+
], Cre8Button.prototype, "iconRotateDegree", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
property()
|
|
297
|
+
], Cre8Button.prototype, "iconFlipDirection", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
property()
|
|
300
|
+
], Cre8Button.prototype, "iconPosition", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
property()
|
|
303
|
+
], Cre8Button.prototype, "size", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
property({ type: Boolean, reflect: true })
|
|
306
|
+
], Cre8Button.prototype, "hideText", void 0);
|
|
307
|
+
__decorate([
|
|
308
|
+
property({ type: Boolean, reflect: true })
|
|
309
|
+
], Cre8Button.prototype, "fullWidth", void 0);
|
|
310
|
+
__decorate([
|
|
311
|
+
property({ type: Boolean, reflect: true })
|
|
312
|
+
], Cre8Button.prototype, "loading", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
property({ type: Boolean, reflect: true })
|
|
315
|
+
], Cre8Button.prototype, "loadingComplete", void 0);
|
|
316
|
+
__decorate([
|
|
317
|
+
property()
|
|
318
|
+
], Cre8Button.prototype, "ariaLive", void 0);
|
|
319
|
+
__decorate([
|
|
320
|
+
property()
|
|
321
|
+
], Cre8Button.prototype, "splitButtonType", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
property({ type: Boolean, reflect: true })
|
|
324
|
+
], Cre8Button.prototype, "buttonAriaExpanded", void 0);
|
|
325
|
+
__decorate([
|
|
326
|
+
query('button')
|
|
327
|
+
], Cre8Button.prototype, "field", void 0);
|
|
328
|
+
if (customElements.get('cre8-button') === undefined) {
|
|
329
|
+
customElements.define('cre8-button', Cre8Button);
|
|
330
|
+
}
|
|
331
|
+
export default Cre8Button;
|
|
332
|
+
//# sourceMappingURL=button.js.map
|