@tmorrow/cre8-wc 1.1.2 → 1.1.4
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/cdn/cre8-wc.esm.js +1 -1
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +1 -1
- package/cdn/cre8-wc.min.js.map +1 -1
- package/lib/cdn-entry.js +129 -0
- package/lib/cdn-entry.js.map +1 -0
- package/lib/components/accordion/accordion.js +58 -40
- package/lib/components/accordion/accordion.js.map +1 -0
- package/lib/components/accordion/accordion.styles.js +4 -0
- package/lib/components/accordion/accordion.styles.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.js +187 -98
- package/lib/components/accordion-item/accordion-item.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.styles.js +4 -0
- package/lib/components/accordion-item/accordion-item.styles.js.map +1 -0
- package/lib/components/alert/alert.js +146 -107
- package/lib/components/alert/alert.js.map +1 -0
- package/lib/components/alert/alert.styles.js +4 -0
- package/lib/components/alert/alert.styles.js.map +1 -0
- package/lib/components/badge/badge.js +73 -50
- package/lib/components/badge/badge.js.map +1 -0
- package/lib/components/badge/badge.styles.js +4 -0
- package/lib/components/badge/badge.styles.js.map +1 -0
- package/lib/components/band/band.js +34 -31
- package/lib/components/band/band.js.map +1 -0
- package/lib/components/band/band.styles.js +4 -0
- package/lib/components/band/band.styles.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.js +52 -28
- package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js +4 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +28 -27
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +4 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -0
- package/lib/components/button/button.js +297 -1040
- package/lib/components/button/button.js.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.js +30 -27
- package/lib/components/button-group/button-group.js.map +1 -0
- package/lib/components/button-group/button-group.styles.js +4 -0
- package/lib/components/button-group/button-group.styles.js.map +1 -0
- package/lib/components/card/card.js +57 -35
- package/lib/components/card/card.js.map +1 -0
- package/lib/components/card/card.styles.js +4 -0
- package/lib/components/card/card.styles.js.map +1 -0
- package/lib/components/chart/chart.js +528 -354
- package/lib/components/chart/chart.js.map +1 -0
- package/lib/components/chart/chart.styles.js +4 -0
- package/lib/components/chart/chart.styles.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.js +66 -53
- package/lib/components/checkbox-field/checkbox-field.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js +4 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.js +252 -183
- package/lib/components/checkbox-field-item/checkbox-field-item.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +4 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.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.js +57 -56
- package/lib/components/cre8-element.js.map +1 -0
- package/lib/components/cre8-form-element.js +212 -244
- package/lib/components/cre8-form-element.js.map +1 -0
- package/lib/components/danger-button/danger-button.js +274 -147
- package/lib/components/danger-button/danger-button.js.map +1 -0
- package/lib/components/danger-button/danger-button.styles.js +4 -0
- package/lib/components/danger-button/danger-button.styles.js.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.js +4 -0
- package/lib/components/date-picker/calendar/calendar.styles.js.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.js +4 -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.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.js +4 -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.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.js +4 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -0
- package/lib/components/date-picker/date-picker.js +91 -784
- package/lib/components/date-picker/date-picker.js.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.js +45 -35
- package/lib/components/divider/divider.js.map +1 -0
- package/lib/components/divider/divider.styles.js +4 -0
- package/lib/components/divider/divider.styles.js.map +1 -0
- package/lib/components/dropdown/dropdown.js +97 -63
- package/lib/components/dropdown/dropdown.js.map +1 -0
- package/lib/components/dropdown/dropdown.styles.js +4 -0
- package/lib/components/dropdown/dropdown.styles.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.js +38 -31
- package/lib/components/dropdown-item/dropdown-item.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js +4 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -0
- package/lib/components/feature/feature.js +40 -35
- package/lib/components/feature/feature.js.map +1 -0
- package/lib/components/feature/feature.styles.js +4 -0
- package/lib/components/feature/feature.styles.js.map +1 -0
- package/lib/components/field/field.js +218 -153
- package/lib/components/field/field.js.map +1 -0
- package/lib/components/field/field.styles.js +4 -0
- package/lib/components/field/field.styles.js.map +1 -0
- package/lib/components/field-note/field-note.js +58 -45
- package/lib/components/field-note/field-note.js.map +1 -0
- package/lib/components/field-note/field-note.styles.js +4 -0
- package/lib/components/field-note/field-note.styles.js.map +1 -0
- package/lib/components/footer/footer.js +25 -18
- package/lib/components/footer/footer.js.map +1 -0
- package/lib/components/footer/footer.styles.js +4 -0
- package/lib/components/footer/footer.styles.js.map +1 -0
- package/lib/components/global-nav/global-nav.js +44 -37
- package/lib/components/global-nav/global-nav.js.map +1 -0
- package/lib/components/global-nav/global-nav.styles.js +4 -0
- package/lib/components/global-nav/global-nav.styles.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.js +149 -112
- package/lib/components/global-nav-item/global-nav-item.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js +4 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -0
- package/lib/components/grid/grid.js +48 -45
- package/lib/components/grid/grid.js.map +1 -0
- package/lib/components/grid/grid.styles.js +4 -0
- package/lib/components/grid/grid.styles.js.map +1 -0
- package/lib/components/grid-item/grid-item.js +19 -16
- package/lib/components/grid-item/grid-item.js.map +1 -0
- package/lib/components/grid-item/grid-item.styles.js +4 -0
- package/lib/components/grid-item/grid-item.styles.js.map +1 -0
- package/lib/components/header/header.js +34 -29
- package/lib/components/header/header.js.map +1 -0
- package/lib/components/header/header.styles.js +4 -0
- package/lib/components/header/header.styles.js.map +1 -0
- package/lib/components/heading/heading.js +113 -76
- package/lib/components/heading/heading.js.map +1 -0
- package/lib/components/heading/heading.styles.js +4 -0
- package/lib/components/heading/heading.styles.js.map +1 -0
- package/lib/components/hero/hero.js +43 -40
- package/lib/components/hero/hero.js.map +1 -0
- package/lib/components/hero/hero.styles.js +4 -0
- package/lib/components/hero/hero.styles.js.map +1 -0
- package/lib/components/icon/icon.js +232 -9
- package/lib/components/icon/icon.js.map +1 -0
- package/lib/components/icon/icon.styles.js +4 -0
- package/lib/components/icon/icon.styles.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.js +114 -87
- package/lib/components/inline-alert/inline-alert.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.styles.js +4 -0
- package/lib/components/inline-alert/inline-alert.styles.js.map +1 -0
- package/lib/components/layout/layout.js +30 -27
- package/lib/components/layout/layout.js.map +1 -0
- package/lib/components/layout/layout.styles.js +4 -0
- package/lib/components/layout/layout.styles.js.map +1 -0
- package/lib/components/layout-container/layout-container.js +30 -27
- package/lib/components/layout-container/layout-container.js.map +1 -0
- package/lib/components/layout-container/layout-container.styles.js +4 -0
- package/lib/components/layout-container/layout-container.styles.js.map +1 -0
- package/lib/components/layout-section/layout-section.js +41 -33
- package/lib/components/layout-section/layout-section.js.map +1 -0
- package/lib/components/layout-section/layout-section.styles.js +4 -0
- package/lib/components/layout-section/layout-section.styles.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.js +19 -16
- package/lib/components/linelength-container/linelength-container.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.styles.js +4 -0
- package/lib/components/linelength-container/linelength-container.styles.js.map +1 -0
- package/lib/components/link/link.js +125 -87
- package/lib/components/link/link.js.map +1 -0
- package/lib/components/link/link.styles.js +4 -0
- package/lib/components/link/link.styles.js.map +1 -0
- package/lib/components/link-list/link-list.js +48 -45
- package/lib/components/link-list/link-list.js.map +1 -0
- package/lib/components/link-list/link-list.styles.js +4 -0
- package/lib/components/link-list/link-list.styles.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.js +40 -37
- package/lib/components/link-list-item/link-list-item.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.styles.js +4 -0
- package/lib/components/link-list-item/link-list-item.styles.js.map +1 -0
- package/lib/components/list/list.js +35 -32
- package/lib/components/list/list.js.map +1 -0
- package/lib/components/list/list.styles.js +4 -0
- package/lib/components/list/list.styles.js.map +1 -0
- package/lib/components/list-item/list-item.js +25 -21
- package/lib/components/list-item/list-item.js.map +1 -0
- package/lib/components/list-item/list-item.styles.js +4 -0
- package/lib/components/list-item/list-item.styles.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.js +126 -71
- package/lib/components/loading-spinner/loading-spinner.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js +4 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -0
- package/lib/components/logo/logo.js +28 -25
- package/lib/components/logo/logo.js.map +1 -0
- package/lib/components/logo/logo.styles.js +4 -0
- package/lib/components/logo/logo.styles.js.map +1 -0
- package/lib/components/main/main.js +29 -26
- package/lib/components/main/main.js.map +1 -0
- package/lib/components/main/main.styles.js +4 -0
- package/lib/components/main/main.styles.js.map +1 -0
- package/lib/components/modal/modal.js +174 -125
- package/lib/components/modal/modal.js.map +1 -0
- package/lib/components/modal/modal.styles.js +4 -0
- package/lib/components/modal/modal.styles.js.map +1 -0
- package/lib/components/multi-select/multi-select.js +300 -211
- package/lib/components/multi-select/multi-select.js.map +1 -0
- package/lib/components/multi-select/multi-select.styles.js +4 -0
- package/lib/components/multi-select/multi-select.styles.js.map +1 -0
- package/lib/components/nav-container/nav-container.js +19 -16
- package/lib/components/nav-container/nav-container.js.map +1 -0
- package/lib/components/nav-container/nav-container.styles.js +4 -0
- package/lib/components/nav-container/nav-container.styles.js.map +1 -0
- package/lib/components/page-header/page-header.js +36 -29
- package/lib/components/page-header/page-header.js.map +1 -0
- package/lib/components/page-header/page-header.styles.js +4 -0
- package/lib/components/page-header/page-header.styles.js.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.js +4 -0
- package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -0
- package/lib/components/pagination/pagination.js +282 -237
- package/lib/components/pagination/pagination.js.map +1 -0
- package/lib/components/pagination/pagination.styles.js +4 -0
- package/lib/components/pagination/pagination.styles.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.js +56 -48
- package/lib/components/percent-bar/percent-bar.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.styles.js +4 -0
- package/lib/components/percent-bar/percent-bar.styles.js.map +1 -0
- package/lib/components/popover/popover.js +304 -179
- package/lib/components/popover/popover.js.map +1 -0
- package/lib/components/popover/popover.styles.js +4 -0
- package/lib/components/popover/popover.styles.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.js +44 -37
- package/lib/components/primary-nav/primary-nav.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.styles.js +4 -0
- package/lib/components/primary-nav/primary-nav.styles.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.js +151 -113
- package/lib/components/primary-nav-item/primary-nav-item.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js +4 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.js +74 -57
- package/lib/components/progress-meter/progress-meter.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.styles.js +4 -0
- package/lib/components/progress-meter/progress-meter.styles.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.js +19 -0
- package/lib/components/progress-steps/progress-steps.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.styles.js +4 -0
- package/lib/components/progress-steps/progress-steps.styles.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.js +52 -40
- package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js +4 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -0
- package/lib/components/radio-field/radio-field.js +59 -49
- package/lib/components/radio-field/radio-field.js.map +1 -0
- package/lib/components/radio-field/radio-field.styles.js +4 -0
- package/lib/components/radio-field/radio-field.styles.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.js +222 -179
- package/lib/components/radio-field-item/radio-field-item.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js +4 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.js +89 -60
- package/lib/components/remove-tag/remove-tag.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.styles.js +4 -0
- package/lib/components/remove-tag/remove-tag.styles.js.map +1 -0
- package/lib/components/section/section.js +46 -27
- package/lib/components/section/section.js.map +1 -0
- package/lib/components/section/section.styles.js +4 -0
- package/lib/components/section/section.styles.js.map +1 -0
- package/lib/components/select/select.js +243 -158
- package/lib/components/select/select.js.map +1 -0
- package/lib/components/select/select.styles.js +4 -0
- package/lib/components/select/select.styles.js.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.js +167 -0
- package/lib/components/select-tile/select-tile-radio-controller.js.map +1 -0
- package/lib/components/select-tile/select-tile.js +228 -223
- package/lib/components/select-tile/select-tile.js.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.js +76 -62
- package/lib/components/select-tile-list/select-tile-list.js.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js +4 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.js +68 -39
- package/lib/components/skeleton-loader/skeleton-loader.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js +4 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -0
- package/lib/components/split-button/split-button.js +51 -46
- package/lib/components/split-button/split-button.js.map +1 -0
- package/lib/components/split-button/split-button.styles.js +4 -0
- package/lib/components/split-button/split-button.styles.js.map +1 -0
- package/lib/components/submenu/submenu.js +19 -16
- package/lib/components/submenu/submenu.js.map +1 -0
- package/lib/components/submenu/submenu.styles.js +4 -0
- package/lib/components/submenu/submenu.styles.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.js +32 -26
- package/lib/components/submenu-item/submenu-item.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.styles.js +4 -0
- package/lib/components/submenu-item/submenu-item.styles.js.map +1 -0
- package/lib/components/tab/tab.js +74 -63
- package/lib/components/tab/tab.js.map +1 -0
- package/lib/components/tab/tab.styles.js +4 -0
- package/lib/components/tab/tab.styles.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.js +49 -43
- package/lib/components/tab-panel/tab-panel.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.styles.js +4 -0
- package/lib/components/tab-panel/tab-panel.styles.js.map +1 -0
- package/lib/components/table/table.js +46 -41
- package/lib/components/table/table.js.map +1 -0
- package/lib/components/table/table.styles.js +4 -0
- package/lib/components/table/table.styles.js.map +1 -0
- package/lib/components/table-body/table-body.js +20 -17
- package/lib/components/table-body/table-body.js.map +1 -0
- package/lib/components/table-body/table-body.styles.js +4 -0
- package/lib/components/table-body/table-body.styles.js.map +1 -0
- package/lib/components/table-cell/table-cell.js +39 -36
- package/lib/components/table-cell/table-cell.js.map +1 -0
- package/lib/components/table-cell/table-cell.styles.js +4 -0
- package/lib/components/table-cell/table-cell.styles.js.map +1 -0
- package/lib/components/table-header/table-header.js +20 -17
- package/lib/components/table-header/table-header.js.map +1 -0
- package/lib/components/table-header/table-header.styles.js +4 -0
- package/lib/components/table-header/table-header.styles.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.js +35 -32
- package/lib/components/table-header-cell/table-header-cell.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js +4 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -0
- package/lib/components/table-object/table-object.js +21 -18
- package/lib/components/table-object/table-object.js.map +1 -0
- package/lib/components/table-object/table-object.styles.js +4 -0
- package/lib/components/table-object/table-object.styles.js.map +1 -0
- package/lib/components/table-row/table-row.js +76 -55
- package/lib/components/table-row/table-row.js.map +1 -0
- package/lib/components/table-row/table-row.styles.js +4 -0
- package/lib/components/table-row/table-row.styles.js.map +1 -0
- package/lib/components/tabs/tabs.js +452 -303
- package/lib/components/tabs/tabs.js.map +1 -0
- package/lib/components/tabs/tabs.styles.js +4 -0
- package/lib/components/tabs/tabs.styles.js.map +1 -0
- package/lib/components/tag/tag.js +236 -167
- package/lib/components/tag/tag.js.map +1 -0
- package/lib/components/tag/tag.styles.js +4 -0
- package/lib/components/tag/tag.styles.js.map +1 -0
- package/lib/components/tag-list/tag-list.js +40 -35
- package/lib/components/tag-list/tag-list.js.map +1 -0
- package/lib/components/tag-list/tag-list.styles.js +4 -0
- package/lib/components/tag-list/tag-list.styles.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.js +40 -33
- package/lib/components/tertiary-nav/tertiary-nav.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js +4 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +52 -43
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +4 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -0
- package/lib/components/text-link/text-link.js +45 -41
- package/lib/components/text-link/text-link.js.map +1 -0
- package/lib/components/text-link/text-link.styles.js +4 -0
- package/lib/components/text-link/text-link.styles.js.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.js +4 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -0
- package/lib/components/text-passage/text-passage.js +72 -44
- package/lib/components/text-passage/text-passage.js.map +1 -0
- package/lib/components/text-passage/text-passage.styles.js +4 -0
- package/lib/components/text-passage/text-passage.styles.js.map +1 -0
- package/lib/components/tooltip/tooltip.js +278 -173
- package/lib/components/tooltip/tooltip.js.map +1 -0
- package/lib/components/tooltip/tooltip.styles.js +4 -0
- package/lib/components/tooltip/tooltip.styles.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.js +40 -33
- package/lib/components/utility-nav/utility-nav.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.styles.js +4 -0
- package/lib/components/utility-nav/utility-nav.styles.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.js +70 -49
- package/lib/components/utility-nav-item/utility-nav-item.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js +4 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -0
- package/lib/design-tokens/brands/blue/css/fonts.css +31 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.css +248 -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/blue/css/tokens_brand.css +492 -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/fonts.css +35 -0
- package/lib/design-tokens/brands/cre8/css/tokens_brand.css +494 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.css +767 -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 +35 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_brand.css +494 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.css +248 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js +772 -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/fonts.css +47 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_brand.css +464 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.css +0 -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/fonts.css +35 -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/fonts.css +26 -0
- package/lib/design-tokens/brands/legacy/css/tokens_brand.css +491 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.css +250 -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/fonts.css +31 -0
- package/lib/design-tokens/brands/marketing/css/tokens_brand.css +502 -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/fonts.css +26 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_brand.css +492 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.css +736 -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/prisma/figma-tokens.css +339 -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/fonts.css +26 -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.js +776 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js.map +1 -0
- package/lib/design-tokens/brands/tmorrow/css/tokens_brand.css +104 -0
- package/lib/design-tokens/brands/tmorrow/css/tokens_tmorrow-frost.css +222 -0
- package/lib/design-tokens/brands/tmorrow/css/tokens_tmorrow-neon.css +218 -0
- package/lib/design-tokens/capitalone/fonts.css +26 -0
- package/lib/design-tokens/capitalone/overrides.css +33 -0
- package/lib/design-tokens/capitalone/tokens.module.css +532 -0
- package/lib/design-tokens/core/scss/abstracts/functions.css +0 -0
- package/lib/design-tokens/core/scss/theming/animation.css +1 -0
- package/lib/design-tokens/core/scss/theming/body.css +1 -0
- package/lib/design-tokens/core/scss/theming/breakpoints.css +0 -0
- package/lib/design-tokens/core/scss/theming/component.css +1 -0
- package/lib/design-tokens/core/scss/theming/display.css +1 -0
- package/lib/design-tokens/core/scss/theming/head.css +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/design-tokens/core/scss/theming/spacing.css +1 -0
- package/lib/design-tokens/core/scss/theming/typography-usage.css +0 -0
- package/lib/design-tokens/core/scss/theming/variables.css +1 -0
- package/lib/design-tokens/core/scss/theming/visibility.css +1 -0
- package/lib/design-tokens/core/scss/utilities/animation.css +1 -0
- package/lib/design-tokens/core/scss/utilities/colors.css +1 -0
- package/lib/design-tokens/core/scss/utilities/display.css +1 -0
- package/lib/design-tokens/femmecubator/equity.css +142 -0
- package/lib/design-tokens/femmecubator/fonts.css +35 -0
- package/lib/design-tokens/femmecubator/tokens_brand.css +146 -0
- package/lib/design-tokens/femmecubator/tokens_femmecubator.module.css +247 -0
- package/lib/design-tokens/figma-tokens.css +0 -0
- package/lib/design-tokens/mcdonalds/tokens.module.css +58 -0
- package/lib/design-tokens/target/fonts.css +26 -0
- package/lib/design-tokens/target/tokens.module.css +738 -0
- package/lib/design-tokens/tokens_netflix.theme.js +806 -0
- package/lib/design-tokens/tokens_netflix.theme.js.map +1 -0
- package/lib/directives/if-truthy.js +24 -0
- package/lib/directives/if-truthy.js.map +1 -0
- package/lib/directives/spread.js +29 -0
- package/lib/directives/spread.js.map +1 -0
- package/lib/index.js +84 -168
- package/lib/index.js.map +1 -0
- package/lib/scripts/convert-scss-to-ts.js +25 -0
- package/lib/scripts/convert-scss-to-ts.js.map +1 -0
- package/lib/scripts/extract-tokens.js +120 -0
- package/lib/scripts/extract-tokens.js.map +1 -0
- package/lib/scripts/generate-react-wrappers.js +229 -0
- package/lib/scripts/generate-react-wrappers.js.map +1 -0
- package/lib/scripts/generateWesparkleThemes.js +52 -0
- package/lib/scripts/generateWesparkleThemes.js.map +1 -0
- package/lib/toBeAccessible.js +18 -0
- package/lib/toBeAccessible.js.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.js +14 -0
- package/lib/utilities/story-helpers.js.map +1 -0
- package/lib/vite.config.cdn.js +85 -0
- package/lib/vite.config.cdn.js.map +1 -0
- package/lib/vite.config.js +156 -0
- package/lib/vite.config.js.map +1 -0
- package/package.json +8 -9
- package/lib/design-tokens/brands copy/blue/_base.scss +0 -142
- package/lib/design-tokens/brands copy/blue/badge.scss +0 -5
- package/lib/design-tokens/brands copy/blue/bg.scss +0 -35
- package/lib/design-tokens/brands copy/blue/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/blue/border.scss +0 -21
- package/lib/design-tokens/brands copy/blue/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/blue/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/blue/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/blue/button.scss +0 -225
- package/lib/design-tokens/brands copy/blue/content.scss +0 -29
- package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.d.ts +0 -3
- package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.d.ts.map +0 -1
- package/lib/design-tokens/brands copy/blue/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/blue/fontFamilies.scss +0 -5
- package/lib/design-tokens/brands copy/blue/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/blue/fontWeights.scss +0 -7
- package/lib/design-tokens/brands copy/blue/footer.scss +0 -9
- package/lib/design-tokens/brands copy/blue/header.scss +0 -81
- package/lib/design-tokens/brands copy/blue/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/blue/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/blue/lineHeights.scss +0 -15
- package/lib/design-tokens/brands copy/blue/link.scss +0 -4
- package/lib/design-tokens/brands copy/blue/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/blue/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/blue/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/blue/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/blue/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/blue/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/blue/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/blue/tokens-all-blue.scss +0 -628
- package/lib/design-tokens/brands copy/blue/tokens-brand.scss +0 -31
- package/lib/design-tokens/brands copy/blue-v1/_base.scss +0 -76
- package/lib/design-tokens/brands copy/blue-v1/badge.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/bg.scss +0 -34
- package/lib/design-tokens/brands copy/blue-v1/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/border.scss +0 -21
- package/lib/design-tokens/brands copy/blue-v1/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/blue-v1/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/blue-v1/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/button.scss +0 -199
- package/lib/design-tokens/brands copy/blue-v1/content.scss +0 -29
- package/lib/design-tokens/brands copy/blue-v1/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/fontFamilies.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/blue-v1/fontWeights.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/footer.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/header.scss +0 -79
- package/lib/design-tokens/brands copy/blue-v1/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/blue-v1/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/lineHeights.scss +0 -15
- package/lib/design-tokens/brands copy/blue-v1/link.scss +0 -4
- package/lib/design-tokens/brands copy/blue-v1/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/blue-v1/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/blue-v1/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/blue-v1/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/blue-v1/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/tokens-all-blue-v1.scss +0 -534
- package/lib/design-tokens/brands copy/blue-v1/tokens-brand.scss +0 -30
- package/lib/design-tokens/brands copy/cre8/_base.scss +0 -157
- package/lib/design-tokens/brands copy/cre8/badge.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/bg.scss +0 -34
- package/lib/design-tokens/brands copy/cre8/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/border.scss +0 -18
- package/lib/design-tokens/brands copy/cre8/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/cre8/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/cre8/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/cre8/button.scss +0 -211
- package/lib/design-tokens/brands copy/cre8/content.scss +0 -29
- package/lib/design-tokens/brands copy/cre8/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/cre8/fontWeights.scss +0 -7
- package/lib/design-tokens/brands copy/cre8/footer.scss +0 -8
- package/lib/design-tokens/brands copy/cre8/header.scss +0 -81
- package/lib/design-tokens/brands copy/cre8/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/cre8/letterSpacing.scss +0 -10
- package/lib/design-tokens/brands copy/cre8/lineHeights.scss +0 -22
- package/lib/design-tokens/brands copy/cre8/link.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/cre8/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/cre8/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/tokens-all-cre8.scss +0 -631
- package/lib/design-tokens/brands copy/cre8/tokens-brand.scss +0 -31
- package/lib/design-tokens/brands copy/femmecubator/base.scss +0 -64
- package/lib/design-tokens/brands copy/femmecubator/border.scss +0 -15
- package/lib/design-tokens/brands copy/femmecubator/color.scss +0 -56
- package/lib/design-tokens/brands copy/femmecubator/spacing.scss +0 -13
- package/lib/design-tokens/brands copy/femmecubator/tokens-all-femmecubator.scss +0 -139
- package/lib/design-tokens/brands copy/femmecubator/tokens-brand.scss +0 -8
- package/lib/design-tokens/brands copy/legacy/_base.scss +0 -103
- package/lib/design-tokens/brands copy/legacy/badge.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/bg.scss +0 -34
- package/lib/design-tokens/brands copy/legacy/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/border.scss +0 -17
- package/lib/design-tokens/brands copy/legacy/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/legacy/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/legacy/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/legacy/button.scss +0 -225
- package/lib/design-tokens/brands copy/legacy/content.scss +0 -29
- package/lib/design-tokens/brands copy/legacy/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/legacy/fontWeights.scss +0 -10
- package/lib/design-tokens/brands copy/legacy/footer.scss +0 -9
- package/lib/design-tokens/brands copy/legacy/header.scss +0 -81
- package/lib/design-tokens/brands copy/legacy/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/legacy/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/legacy/lineHeights.scss +0 -19
- package/lib/design-tokens/brands copy/legacy/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/legacy/spacing.scss +0 -20
- package/lib/design-tokens/brands copy/legacy/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/tokens-all-legacy.scss +0 -588
- package/lib/design-tokens/brands copy/legacy/tokens-brand.scss +0 -30
- package/lib/design-tokens/brands copy/marketing/_base.scss +0 -137
- package/lib/design-tokens/brands copy/marketing/asset.scss +0 -7
- package/lib/design-tokens/brands copy/marketing/badge.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/bg.scss +0 -35
- package/lib/design-tokens/brands copy/marketing/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/border.scss +0 -21
- package/lib/design-tokens/brands copy/marketing/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/marketing/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/marketing/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/marketing/button.scss +0 -225
- package/lib/design-tokens/brands copy/marketing/content.scss +0 -29
- package/lib/design-tokens/brands copy/marketing/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/marketing/fontWeights.scss +0 -7
- package/lib/design-tokens/brands copy/marketing/footer.scss +0 -9
- package/lib/design-tokens/brands copy/marketing/header.scss +0 -81
- package/lib/design-tokens/brands copy/marketing/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/marketing/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/marketing/lineHeights.scss +0 -22
- package/lib/design-tokens/brands copy/marketing/link.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/marketing/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/marketing/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/tokens-all-marketing.scss +0 -633
- package/lib/design-tokens/brands copy/marketing/tokens-brand.scss +0 -32
- package/lib/design-tokens/brands copy/minimalist/_base.scss +0 -81
- package/lib/design-tokens/brands copy/minimalist/asset.scss +0 -6
- package/lib/design-tokens/brands copy/minimalist/badge.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/bg.scss +0 -34
- package/lib/design-tokens/brands copy/minimalist/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/border.scss +0 -17
- package/lib/design-tokens/brands copy/minimalist/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/minimalist/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/minimalist/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/minimalist/button.scss +0 -225
- package/lib/design-tokens/brands copy/minimalist/content.scss +0 -29
- package/lib/design-tokens/brands copy/minimalist/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/fontFamily.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/minimalist/fontWeights.scss +0 -6
- package/lib/design-tokens/brands copy/minimalist/footer.scss +0 -9
- package/lib/design-tokens/brands copy/minimalist/header.scss +0 -81
- package/lib/design-tokens/brands copy/minimalist/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/minimalist/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/minimalist/lineHeights.scss +0 -20
- package/lib/design-tokens/brands copy/minimalist/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/minimalist/spacing.scss +0 -20
- package/lib/design-tokens/brands copy/minimalist/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/tokens-all-minimalist.scss +0 -567
- package/lib/design-tokens/brands copy/minimalist/tokens-brand.scss +0 -32
|
@@ -1,175 +1,302 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { property as t, query as h } from "lit/decorators.js";
|
|
7
|
-
import { Cre8FormElement as p } from "../cre8-form-element.js";
|
|
8
|
-
const y = v`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:inline-flex}:host([fullWidth]){display:flex}.cre8-c-danger-button{font-family:var(--cre8-typography-label-default-font-family);font-size:var(--cre8-typography-label-default-font-size);font-weight:var(--cre8-typography-label-default-font-weight);line-height:var(--cre8-typography-label-default-line-height);text-decoration:var(--cre8-typography-label-default-text-decoration);text-transform:var(--cre8-typography-label-default-text-transform);width:var(--cre8-button-width, auto);height:var(--cre8-button-height, auto);min-width:var(--cre8-button-min-width, auto);min-height:var(--cre8-button-min-height, auto);justify-content:center;text-align:center;margin-top:var(--cre8-button-margin-top, 0);margin-bottom:var(--cre8-button-margin-bottom, 0);margin-left:var(--cre8-button-margin-left, 0);margin-right:var(--cre8-button-margin-right, 0);display:inline-flex;align-items:center;border-width:var(--cre8-border-width-button-default);box-shadow:var(--cre8-shadow-button);padding-top:var(--cre8-button-padding-vertical-medium);padding-right:var(--cre8-button-padding-horizontal-medium);padding-bottom:var(--cre8-button-padding-vertical-medium);padding-left:var(--cre8-button-padding-horizontal-medium);margin:0;cursor:pointer;border-style:var(--cre8-border-style-default);transition:revert;transform:revert;white-space:nowrap}.cre8-c-danger-button:hover,.cre8-c-danger-button:focus,.cre8-c-danger-button:active,.cre8-c-danger-button:focus-visible{border-style:var(--cre8-border-style-default);box-shadow:none;transform:revert;transition:revert}.cre8-c-danger-button.cre8-c-danger-button--primary{background:var(--cre8-color-button-primary-danger-bg);border-width:var(--cre8-border-width-button-default);border-color:var(--cre8-color-button-primary-danger-border);border-radius:var(--cre8-border-radius-button);box-shadow:var(--cre8-shadow-button);color:var(--cre8-color-button-primary-danger-content);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content)}.cre8-c-danger-button.cre8-c-danger-button--primary:hover,.cre8-c-danger-button.cre8-c-danger-button--primary:focus{box-shadow:none;--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-hover);color:var(--cre8-color-button-primary-danger-content-hover);border-color:var(--cre8-color-button-primary-danger-border-hover);background:var(--cre8-color-button-primary-danger-bg-hover);text-decoration:none}.cre8-c-danger-button.cre8-c-danger-button--primary:hover:focus,.cre8-c-danger-button.cre8-c-danger-button--primary:focus:focus{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--primary:active,.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--loading{box-shadow:none;color:var(--cre8-color-button-primary-danger-content-active);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-active);border-color:var(--cre8-color-button-primary-danger-border-active);background-color:var(--cre8-color-button-primary-danger-bg-active)}.cre8-c-danger-button.cre8-c-danger-button--primary:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--loading{cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--primary:disabled{box-shadow:none;background-color:var(--cre8-color-button-primary-danger-bg-disabled);border-color:var(--cre8-color-button-primary-danger-border-disabled);color:var(--cre8-color-button-primary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-disabled);cursor:not-allowed;outline:none}.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:hover,.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:focus,.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:active,.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:focus-visible{outline:none;background-color:var(--cre8-color-button-primary-danger-bg-disabled);border-color:var(--cre8-color-button-primary-danger-border-disabled);color:var(--cre8-color-button-primary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted{background-color:var(--cre8-color-button-primary-danger-inverse-bg);border-color:var(--cre8-color-button-primary-danger-inverse-border);color:var(--cre8-color-button-primary-danger-inverse-content)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:hover,.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:focus{background-color:var(--cre8-color-button-primary-danger-inverse-bg-hover);border-color:var(--cre8-color-button-primary-danger-inverse-border-hover);color:var(--cre8-color-button-primary-danger-inverse-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:focus{outline-color:var(--cre8-color-button-primary-danger-inverse-outline)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:active{background-color:var(--cre8-color-button-primary-danger-inverse-bg-active);border-color:var(--cre8-color-button-primary-danger-inverse-border-active);color:var(--cre8-color-button-primary-danger-inverse-content-active)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:active.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:disabled{outline:none;cursor:not-allowed;background-color:var(--cre8-color-button-primary-danger-inverse-bg-disabled);border-color:var(--cre8-color-button-primary-danger-inverse-border-disabled);color:var(--cre8-color-button-primary-danger-inverse-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--secondary{background-color:var(--cre8-color-button-secondary-danger-bg);border-color:var(--cre8-color-button-secondary-danger-border);color:var(--cre8-color-button-secondary-danger-content);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content);border-radius:var(--cre8-border-radius-button);border-width:var(--cre8-border-width-button-default)}.cre8-c-danger-button.cre8-c-danger-button--secondary:hover,.cre8-c-danger-button.cre8-c-danger-button--secondary:focus{background-color:var(--cre8-color-button-secondary-danger-bg-hover);border-color:var(--cre8-color-button-secondary-danger-border-hover);color:var(--cre8-color-button-secondary-danger-content-hover);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--secondary:hover:focus,.cre8-c-danger-button.cre8-c-danger-button--secondary:focus:focus{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--secondary:active,.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--loading{transition:none;transform:none;background-color:var(--cre8-color-button-secondary-danger-bg-active);border-color:var(--cre8-color-button-secondary-danger-border-active);color:var(--cre8-color-button-secondary-danger-content-active);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--secondary:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--loading{cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled{box-shadow:none;background-color:var(--cre8-color-button-secondary-danger-bg-disabled);border-color:var(--cre8-color-button-secondary-danger-border-disabled);color:var(--cre8-color-button-secondary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-disabled);outline:none;border-radius:var(--cre8-border-radius-button);border-width:var(--cre8-border-width-button-default);cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:hover,.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:focus,.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:active,.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:focus-visible{outline:none;background-color:var(--cre8-color-button-secondary-danger-bg-disabled);border-color:var(--cre8-color-button-secondary-danger-border-disabled);color:var(--cre8-color-button-secondary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted{background-color:var(--cre8-color-button-secondary-danger-inverse-bg);border-color:var(--cre8-color-button-secondary-danger-inverse-border);color:var(--cre8-color-button-secondary-danger-inverse-content)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:hover,.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:focus{background-color:var(--cre8-color-button-secondary-danger-inverse-bg-hover);border-color:var(--cre8-color-button-secondary-danger-inverse-border-hover);color:var(--cre8-color-button-secondary-danger-inverse-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:focus{outline-color:var(--cre8-color-button-secondary-danger-inverse-outline)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:active{background-color:var(--cre8-color-button-secondary-danger-inverse-bg-active);border-color:var(--cre8-color-button-secondary-danger-inverse-border-active);color:var(--cre8-color-button-secondary-danger-inverse-content-active)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:active.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:disabled{outline:none;cursor:not-allowed;background-color:var(--cre8-color-button-secondary-danger-inverse-bg-disabled);border-color:var(--cre8-color-button-secondary-danger-inverse-border-disabled);color:var(--cre8-color-button-secondary-danger-inverse-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--tertiary{border-radius:var(--cre8-border-radius-button);background-color:var(--cre8-color-button-tertiary-danger-bg);border-width:var(--cre8-border-width-button-default);border-color:var(--cre8-color-button-tertiary-danger-border);color:var(--cre8-color-button-tertiary-danger-content);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content);box-shadow:none}.cre8-c-danger-button.cre8-c-danger-button--tertiary:hover,.cre8-c-danger-button.cre8-c-danger-button--tertiary:focus{border-radius:var(--cre8-border-radius-button);background-color:var(--cre8-color-button-tertiary-danger-bg-hover);border-width:var(--cre8-border-width-button-default, --cre8-border-width-none);border-color:var(--cre8-color-button-tertiary-danger-border-hover);color:var(--cre8-color-button-tertiary-danger-content-hover);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--tertiary:hover:focus,.cre8-c-danger-button.cre8-c-danger-button--tertiary:focus:focus{outline:var(--cre8-border-width-focus) var(--cre8-border-style-button-tertiary-outline-focus) var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--tertiary:active,.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--loading{border-radius:var(--cre8-border-radius-button);background-color:var(--cre8-color-button-tertiary-danger-bg-active);border-color:var(--cre8-color-button-tertiary-danger-border-active);border-width:var(--cre8-border-width-button-default);color:var(--cre8-color-button-tertiary-danger-content-active);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--tertiary:focus-visible{outline:var(--cre8-border-width-focus) var(--cre8-border-style-button-tertiary-outline-focus) var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--loading{cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled{background-color:var(--cre8-color-button-tertiary-danger-bg-disabled);border-color:rgba(0,0,0,0);color:var(--cre8-color-button-tertiary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-disabled);outline:none;box-shadow:none;cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:hover,.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:focus{outline:none;box-shadow:none;background-color:var(--cre8-color-button-tertiary-danger-bg-disabled);color:var(--cre8-color-button-tertiary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:active,.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:focus-visible{outline:none;box-shadow:none;background-color:var(--cre8-color-button-tertiary-danger-bg-disabled);color:var(--cre8-color-button-tertiary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted{background-color:var(--cre8-color-button-tertiary-danger-inverse-bg);border-color:var(--cre8-color-button-tertiary-danger-inverse-border);color:var(--cre8-color-button-tertiary-danger-inverse-content)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:hover,.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:focus{background-color:var(--cre8-color-button-tertiary-danger-inverse-bg-hover);border-color:var(--cre8-color-button-tertiary-danger-inverse-border-hover);color:var(--cre8-color-button-tertiary-danger-inverse-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:focus{outline-color:var(--cre8-color-button-tertiary-danger-inverse-outline)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:active{background-color:var(--cre8-color-button-tertiary-danger-inverse-bg-active);border-color:var(--cre8-color-button-tertiary-danger-inverse-border-active);color:var(--cre8-color-button-tertiary-danger-inverse-content-active)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:active.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:disabled{outline:none;cursor:not-allowed;background-color:var(--cre8-color-button-tertiary-danger-inverse-bg-disabled);border-color:var(--cre8-color-button-tertiary-danger-inverse-border-disabled);color:var(--cre8-color-button-tertiary-danger-inverse-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text{border-radius:var(--cre8-border-radius-button) var(--cre8-border-radius-none) var(--cre8-border-radius-none) var(--cre8-border-radius-button);border-color:var(--cre8-color-button-secondary-danger-border);border-width:var(--cre8-border-width-button-default);color:var(--cre8-color-button-secondary-danger-content)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text:active,.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text:focus-visible{outline:none}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text.cre8-c-danger-button--lg{padding:var(--cre8-button-padding-vertical-large) var(--cre8-button-padding-horizontal-large)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text.cre8-c-danger-button--sm{padding:var(--cre8-button-padding-vertical-small) var(--cre8-button-padding-horizontal-small)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret{padding:var(--cre8-button-padding-vertical-medium);border-radius:var(--cre8-border-radius-none) var(--cre8-border-radius-button) var(--cre8-border-radius-button) var(--cre8-border-radius-none);height:100%;border-left:none !important;border-collapse:collapse;background:var(--cre8-color-button-secondary-danger-bg);border-color:var(--cre8-color-button-secondary-danger-border);border-width:var(--cre8-border-width-button-default);color:var(--cre8-color-button-secondary-danger-content);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:hover,.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:focus{background:var(--cre8-color-button-secondary-danger-bg-hover);border-color:var(--cre8-color-button-secondary-danger-border-hover);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-hover);outline:none;border-left:none;border-collapse:collapse}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:active,.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:focus-visible{background:var(--cre8-color-button-secondary-danger-bg-active);border-color:var(--cre8-color-button-secondary-danger-border-active);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active);outline:none;border-left:none;border-collapse:collapse}.cre8-c-danger-button--lg{padding:var(--cre8-button-padding-vertical-large)}.cre8-c-danger-button--sm{padding:var(--cre8-button-padding-vertical-small)}.cre8-c-danger-button--icon-only{padding:var(--cre8-button-padding-vertical-small);color:var(--cre8-icon-fill, currentColor)}.cre8-c-danger-button--full-width{width:100%;display:flex}.cre8-c-danger-button--sm{font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform);padding-top:var(--cre8-button-padding-vertical-small);padding-right:var(--cre8-button-padding-horizontal-small);padding-bottom:var(--cre8-button-padding-vertical-small);padding-left:var(--cre8-button-padding-horizontal-small)}.cre8-c-danger-button--lg{font-family:var(--cre8-typography-label-large-font-family);font-size:var(--cre8-typography-label-large-font-size);font-weight:var(--cre8-typography-label-large-font-weight);line-height:var(--cre8-typography-label-large-line-height);text-decoration:var(--cre8-typography-label-large-text-decoration);text-transform:var(--cre8-typography-label-large-text-transform);padding-top:var(--cre8-button-padding-vertical-large);padding-right:var(--cre8-button-padding-horizontal-large);padding-bottom:var(--cre8-button-padding-vertical-large);padding-left:var(--cre8-button-padding-horizontal-large)}.cre8-c-danger-button--sm cre8-icon{--cre8-icon-height: var(--cre8-icon-size-small);--cre8-icon-width: var(--cre8-icon-size-small)}.cre8-c-danger-button--lg cre8-icon{--cre8-icon-height: var(--cre8-icon-size-large);--cre8-icon-width: var(--cre8-icon-size-large)}::slotted(*){margin-right:0}cre8-icon+.cre8-c-danger-button__text:not(.cre8-u-is-vishidden){margin-left:0.5rem;display:inline-flex}.cre8-c-danger-button__text:not(.cre8-u-is-vishidden)+cre8-icon{margin-left:0.5rem;display:inline-flex}.cre8-c-danger-button:has(.cre8-c-danger-button__text.cre8-u-is-vishidden)+cre8-icon{border-radius:var(--cre8-border-radius-button)}.cre8-c-danger-button__text.cre8-u-is-vishidden+cre8-icon{margin-left:0px;margin-right:0px;display:flex}.cre8-c-danger-button__text.cre8-u-is-vishidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.cre8-c-danger-button--primary.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-content-knockout)}.cre8-c-danger-button--secondary.cre8-c-danger-button--loading,.cre8-c-danger-button--tertiary.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active)}.cre8-u-is-vishidden{--cre8-icon-height: 0px;--cre8-icon-width: 0px;max-width:fit-content;min-width:0px;width:auto;height:auto;max-height:fit-content;min-width:0px;border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}cre8-icon.cre8-u-is-vishidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}cre8-icon{display:flex;align-items:center;justify-content:center}span.cre8-c-danger-button__icon{margin-left:0.5rem;max-width:fit-content;min-width:0px;width:auto;height:auto;max-height:fit-content;min-width:0px}`;
|
|
9
|
-
var m = Object.defineProperty, e = (b, o, u, f) => {
|
|
10
|
-
for (var a = void 0, i = b.length - 1, g; i >= 0; i--)
|
|
11
|
-
(g = b[i]) && (a = g(o, u, a) || a);
|
|
12
|
-
return a && m(o, u, a), a;
|
|
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;
|
|
13
6
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
import classnames from 'classnames';
|
|
8
|
+
import { html, nothing } from 'lit';
|
|
9
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
10
|
+
import '../icon/icon';
|
|
11
|
+
import '../loading-spinner/loading-spinner';
|
|
12
|
+
import { property, query } from 'lit/decorators.js';
|
|
13
|
+
import styles from './danger-button.styles.js';
|
|
14
|
+
import { Cre8FormElement } from '../cre8-form-element';
|
|
15
|
+
/**
|
|
16
|
+
* The size and state of buttons on the screen serve as visual cues for the user
|
|
17
|
+
* about what they can do and what they should do next.
|
|
18
|
+
* They indicate the availability and priority of the action on the page.
|
|
19
|
+
*
|
|
20
|
+
* - Buttons are a single call-to-action where a single click performs that action
|
|
21
|
+
* - Use Danger Buttons when you are performing an action that is potentially dangerous,
|
|
22
|
+
* such as permanently deleting information
|
|
23
|
+
* - Use a link instead of a button when you're navigating to another place
|
|
24
|
+
*
|
|
25
|
+
* ## How to Use
|
|
26
|
+
*
|
|
27
|
+
* Danger Buttons are distinguished by three key properties:
|
|
28
|
+
*
|
|
29
|
+
* - **Visual Priority**: Style and size: Primary, Secondary, or Tertiary styles;
|
|
30
|
+
* each with large and small variations
|
|
31
|
+
* - **State**: Interaction state: hover/click (press), focus, disabled,
|
|
32
|
+
* and submitting/loading (only for large buttons)
|
|
33
|
+
* - **Brand**: Styles determined by the site or component theme
|
|
34
|
+
*
|
|
35
|
+
* ### Usage Guidelines
|
|
36
|
+
*
|
|
37
|
+
* Primary, Secondary and Tertiary styles emphasize or de-emphasize an action. They also define
|
|
38
|
+
* background, font style, and border colors. Large and small sizing assists with visual priority by defining button
|
|
39
|
+
* heights, left and right internal padding, and font-size.
|
|
40
|
+
*
|
|
41
|
+
* #### System Feedback
|
|
42
|
+
* Each button has a default and hover/click (press) state that give the user feedback
|
|
43
|
+
* that they have successfully interacted with a button.
|
|
44
|
+
* Button presses should always be combined with other types of timely system feedback.
|
|
45
|
+
* Examples of system feedback may be a page refresh, exposing additional controls or content,
|
|
46
|
+
* dialogs, alerts and notifications.
|
|
47
|
+
* If there is perceived a delay in system response, generally due to technical constraints,
|
|
48
|
+
* provide a progress or loading indicator.
|
|
49
|
+
*
|
|
50
|
+
* #### Button Text
|
|
51
|
+
*
|
|
52
|
+
* - Button text should be as short and simple as possible, ideally a maximum of 3 words.
|
|
53
|
+
* - Use Title Case for readability.
|
|
54
|
+
* - They should not include punctuation (exception: "Loading...").
|
|
55
|
+
* - They should not be used as an indicator of what happens on the next page, or as a substitute
|
|
56
|
+
* for a progress meter.
|
|
57
|
+
*
|
|
58
|
+
* #### Button Styling
|
|
59
|
+
*
|
|
60
|
+
* - DO use only the styles of the brand you are working on.
|
|
61
|
+
* - DO NOT combine styles, even if the page is co-branded.
|
|
62
|
+
*
|
|
63
|
+
* #### Button Sizes
|
|
64
|
+
* - DO always pair like sizes together and maintain the hierarchy of Primary and Secondary/Tertiary.
|
|
65
|
+
* - DO NOT mix sizes of buttons when they are used together as a group.
|
|
66
|
+
*
|
|
67
|
+
* #### Input Pairing
|
|
68
|
+
*
|
|
69
|
+
* Primary and Secondary buttons may be paired with input fields.
|
|
70
|
+
* Only one Primary button may appear on each screen.
|
|
71
|
+
* Use the Secondary button when there are multiple in-context buttons
|
|
72
|
+
* and/or when there is an emphasized page level button.
|
|
73
|
+
* When used in a form context, the button's `type` needs to be `submit` to pass along form data.
|
|
74
|
+
*
|
|
75
|
+
* - DO use only large buttons with input fields.
|
|
76
|
+
* - DO NOT use small buttons with input fields.
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
export class Cre8DangerButton extends Cre8FormElement {
|
|
80
|
+
constructor() {
|
|
81
|
+
super(...arguments);
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* The button text. Should be as short and simple as possible, ideally a maximum of 3 words.
|
|
85
|
+
* - Use Title Case for readability.
|
|
86
|
+
* - Should not include punctuation (exception: "Loading...").
|
|
87
|
+
* - Should not be used as an indicator of what happens on the next page, or as a substitute for a progress meter.
|
|
88
|
+
*/
|
|
89
|
+
this.text = 'Button';
|
|
90
|
+
/**
|
|
91
|
+
* Style variant
|
|
92
|
+
* - **primary** renders the button used for primary actions. Presents highest visual priority.
|
|
93
|
+
* When grouped with other buttons, only one primary is allowed
|
|
94
|
+
* - **secondary** renders a secondary button. Presents a lower visual priority
|
|
95
|
+
* - **tertiary** renders a tertiary button. Presents the lowest visual priority.
|
|
96
|
+
* Should be used in limited amounts - consider if a link (`<a>`) would be more appropriate
|
|
97
|
+
*/
|
|
98
|
+
this.variant = 'primary';
|
|
99
|
+
/**
|
|
100
|
+
* Type of button.
|
|
101
|
+
* - **button** (default) button has no default behavior and does nothing unless provided some sort
|
|
102
|
+
* of client-side trigger
|
|
103
|
+
* - **submit** button for submitting form data to a server
|
|
104
|
+
*/
|
|
105
|
+
this.type = 'button';
|
|
106
|
+
/**
|
|
107
|
+
* rotate is used for <cre8-icon> to set the arrow in the correct direction
|
|
108
|
+
*/
|
|
109
|
+
this.iconRotateDegree = 0;
|
|
110
|
+
/**
|
|
111
|
+
* Icon position. Must include the name of the icon with `iconName`
|
|
112
|
+
*
|
|
113
|
+
* - **before** places the icon before the button text
|
|
114
|
+
* - **after** places the icon after the button text
|
|
115
|
+
*/
|
|
116
|
+
this.iconPosition = undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Controls whether your loading status update to voiceover users will occur
|
|
119
|
+
* immediately (used for more urgently needed updates) using `assertive` or at the next convenient
|
|
120
|
+
* pause in their navigation using `polite`.
|
|
121
|
+
*/
|
|
122
|
+
this.ariaLive = 'assertive';
|
|
123
|
+
}
|
|
124
|
+
formSubmit() {
|
|
125
|
+
const form = this._internals.form;
|
|
126
|
+
if (form) {
|
|
127
|
+
form.requestSubmit();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
formReset() {
|
|
131
|
+
const form = this._internals.form;
|
|
132
|
+
if (form) {
|
|
133
|
+
form.reset();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
renderDangerButtonLink(componentClassName) {
|
|
137
|
+
return html `
|
|
28
138
|
<a
|
|
29
|
-
href="${
|
|
30
|
-
class="${
|
|
31
|
-
rel="${
|
|
32
|
-
target="${
|
|
139
|
+
href="${ifDefined(this.href)}"
|
|
140
|
+
class="${componentClassName}"
|
|
141
|
+
rel="${ifDefined(this.rel)}"
|
|
142
|
+
target="${ifDefined(this.target)}"
|
|
33
143
|
>
|
|
34
|
-
${this.iconPosition ===
|
|
35
|
-
|
|
144
|
+
${this.iconPosition === 'before'
|
|
145
|
+
? html `<cre8-icon width="16" height="16" aria-hidden="true" svg="${ifDefined(this.svg)}">
|
|
146
|
+
</cre8-icon>`
|
|
147
|
+
: nothing}
|
|
36
148
|
<span
|
|
37
|
-
class="${this.hideText ?
|
|
149
|
+
class="${this.hideText ? 'cre8-u-is-vishidden cre8-c-danger-button__text' : 'cre8-c-danger-button__text'}"
|
|
38
150
|
>
|
|
39
151
|
${this.text}
|
|
40
152
|
</span>
|
|
41
|
-
${this.iconPosition ===
|
|
42
|
-
|
|
153
|
+
${this.iconPosition === 'after'
|
|
154
|
+
? html `<cre8-icon width="16" height="16" aria-hidden="true" svg="${ifDefined(this.svg)}">
|
|
155
|
+
</cre8-icon> `
|
|
156
|
+
: nothing}
|
|
43
157
|
</a>
|
|
44
158
|
`;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
159
|
+
}
|
|
160
|
+
renderDangerButtonIconography() {
|
|
161
|
+
return html `
|
|
48
162
|
<cre8-icon width="16" height="16" aria-hidden="true" svg="${this.svg}"></cre8-icon>
|
|
49
163
|
`;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
164
|
+
}
|
|
165
|
+
renderDangerButtonLoading() {
|
|
166
|
+
return html `
|
|
53
167
|
<span class="cre8-c-danger-button__icon" aria-live="${this.ariaLive}" role="alert">
|
|
54
|
-
<span class="cre8-u-is-vishidden">${this.loadingComplete ?
|
|
55
|
-
${this.loadingComplete
|
|
168
|
+
<span class="cre8-u-is-vishidden">${this.loadingComplete ? 'Loading Complete' : 'Loading'}</span>
|
|
169
|
+
${!this.loadingComplete
|
|
170
|
+
? html `
|
|
56
171
|
<cre8-loading-spinner
|
|
57
172
|
class="cre8-c-danger-button__loading-icon"
|
|
58
173
|
inverted size="small"
|
|
59
174
|
aria-hidden="true"
|
|
60
|
-
></cre8-loading-spinner>`
|
|
175
|
+
></cre8-loading-spinner>`
|
|
176
|
+
: nothing}
|
|
61
177
|
</span>`;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
178
|
+
}
|
|
179
|
+
render() {
|
|
180
|
+
const componentClassName = classnames('cre8-c-danger-button', {
|
|
181
|
+
'cre8-c-danger-button--primary': this.variant === 'primary',
|
|
182
|
+
'cre8-c-danger-button--secondary': this.variant === 'secondary',
|
|
183
|
+
'cre8-c-danger-button--tertiary': this.variant === 'tertiary',
|
|
184
|
+
'cre8-c-danger-button--full-width': this.fullWidth === true,
|
|
185
|
+
'cre8-c-danger-button--sm': this.size === 'sm',
|
|
186
|
+
'cre8-c-danger-button--lg': this.size === 'lg',
|
|
187
|
+
'cre8-c-danger-button--icon-only': this.hideText,
|
|
188
|
+
'cre8-c-danger-button--loading': this.loading,
|
|
189
|
+
'cre8-c-danger-button--inverted': this.inverted,
|
|
190
|
+
});
|
|
191
|
+
if (this.hideText) {
|
|
192
|
+
this.iconPosition = 'after';
|
|
193
|
+
}
|
|
194
|
+
if (this.href) {
|
|
195
|
+
return html `${this.renderDangerButtonLink(componentClassName)}`;
|
|
196
|
+
}
|
|
197
|
+
return html `
|
|
76
198
|
<button
|
|
77
|
-
class="${
|
|
199
|
+
class="${componentClassName}"
|
|
78
200
|
part="button"
|
|
79
|
-
aria-disabled=${
|
|
201
|
+
aria-disabled=${ifDefined(this.loading)}
|
|
80
202
|
?disabled=${this.disabled}
|
|
81
203
|
@click="${this._buttonClick}"
|
|
82
|
-
aria-expanded=${
|
|
204
|
+
aria-expanded=${ifDefined(this.buttonAriaExpanded)}
|
|
83
205
|
type=${this.type}
|
|
84
206
|
>
|
|
85
|
-
${this.iconPosition ===
|
|
207
|
+
${this.iconPosition === 'before' && this.svg
|
|
208
|
+
? this.renderDangerButtonIconography() : nothing}
|
|
86
209
|
<span
|
|
87
|
-
class="${this.hideText ?
|
|
210
|
+
class="${this.hideText ? 'cre8-u-is-vishidden cre8-c-danger-button__text' : 'cre8-c-danger-button__text'}"
|
|
88
211
|
>
|
|
89
212
|
${this.text}
|
|
90
213
|
</span>
|
|
91
|
-
${this.iconPosition ===
|
|
92
|
-
|
|
214
|
+
${this.iconPosition === 'after' && this.svg
|
|
215
|
+
? this.renderDangerButtonIconography() : nothing}
|
|
216
|
+
${this.loading || this.loadingComplete
|
|
217
|
+
? this.renderDangerButtonLoading() : nothing}
|
|
93
218
|
</button>`;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
219
|
+
}
|
|
220
|
+
_buttonClick(e) {
|
|
221
|
+
if (this.loading) {
|
|
222
|
+
e.stopPropagation();
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
switch (this.type) {
|
|
226
|
+
case 'submit':
|
|
227
|
+
this.formSubmit();
|
|
228
|
+
break;
|
|
229
|
+
case 'reset':
|
|
230
|
+
this.formReset();
|
|
231
|
+
break;
|
|
232
|
+
// no default
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
Cre8DangerButton.styles = [styles];
|
|
238
|
+
__decorate([
|
|
239
|
+
property()
|
|
240
|
+
], Cre8DangerButton.prototype, "text", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
property({ type: String })
|
|
243
|
+
], Cre8DangerButton.prototype, "variant", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
property({ type: Boolean, reflect: true })
|
|
246
|
+
], Cre8DangerButton.prototype, "disabled", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
property()
|
|
249
|
+
], Cre8DangerButton.prototype, "href", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
property()
|
|
252
|
+
], Cre8DangerButton.prototype, "target", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
property()
|
|
255
|
+
], Cre8DangerButton.prototype, "type", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
property()
|
|
258
|
+
], Cre8DangerButton.prototype, "rel", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
property()
|
|
261
|
+
], Cre8DangerButton.prototype, "svg", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
property({ type: Number })
|
|
264
|
+
], Cre8DangerButton.prototype, "iconRotateDegree", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
property()
|
|
267
|
+
], Cre8DangerButton.prototype, "iconFlipDirection", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
property()
|
|
270
|
+
], Cre8DangerButton.prototype, "iconPosition", void 0);
|
|
271
|
+
__decorate([
|
|
272
|
+
property()
|
|
273
|
+
], Cre8DangerButton.prototype, "size", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
property({ type: Boolean, reflect: true })
|
|
276
|
+
], Cre8DangerButton.prototype, "hideText", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
property({ type: Boolean, reflect: true })
|
|
279
|
+
], Cre8DangerButton.prototype, "fullWidth", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
property({ type: Boolean, reflect: true })
|
|
282
|
+
], Cre8DangerButton.prototype, "loading", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
property({ type: Boolean, reflect: true })
|
|
285
|
+
], Cre8DangerButton.prototype, "loadingComplete", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
property({ type: Boolean })
|
|
288
|
+
], Cre8DangerButton.prototype, "inverted", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
property()
|
|
291
|
+
], Cre8DangerButton.prototype, "ariaLive", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
property({ type: Boolean, reflect: true })
|
|
294
|
+
], Cre8DangerButton.prototype, "buttonAriaExpanded", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
query('button')
|
|
297
|
+
], Cre8DangerButton.prototype, "field", void 0);
|
|
298
|
+
if (customElements.get('cre8-danger-button') === undefined) {
|
|
299
|
+
customElements.define('cre8-danger-button', Cre8DangerButton);
|
|
300
|
+
}
|
|
301
|
+
export default Cre8DangerButton;
|
|
302
|
+
//# sourceMappingURL=danger-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"danger-button.js","sourceRoot":"","sources":["../../../components/danger-button/danger-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,cAAc,CAAC;AACtB,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+DO;AAEP,MAAM,OAAO,gBAAiB,SAAQ,eAAe;IAArD;;QAGI;;;;;;WAMG;QAEC,SAAI,GAAI,QAAQ,CAAC;QAErB;;;;;;;WAOG;QAEC,YAAO,GAA0C,SAAS,CAAC;QAkC/D;;;;;WAKG;QAEC,SAAI,GAAkC,QAAQ,CAAC;QAenD;;WAEG;QAEC,qBAAgB,GAAY,CAAC,CAAC;QAQlC;;;;;WAKG;QAEC,iBAAY,GAAwB,SAAS,CAAC;QAqDlD;;;;WAIG;QAEC,aAAQ,GAA2B,WAAW,CAAC;IAsIvD,CAAC;IA3HG,UAAU;QACN,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAClC,IAAI,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,aAAa,EAAE,CAAC;QACzB,CAAC;IACL,CAAC;IAED,SAAS;QACL,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAClC,IAAI,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACL,CAAC;IAEO,sBAAsB,CAAC,kBAA0B;QACrD,OAAO,IAAI,CAAA;;sBAEG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;uBACnB,kBAAkB;qBACpB,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;wBAChB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;;cAEhC,IAAI,CAAC,YAAY,KAAK,QAAQ;YACpC,CAAC,CAAC,IAAI,CAAA,6DAA6D,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;qBACzE;YACb,CAAC,CAAC,OAAO;;mBAEE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,4BAA4B;;YAEtG,IAAI,CAAC,IAAI;;QAEb,IAAI,CAAC,YAAY,KAAK,OAAO;YAC7B,CAAC,CAAC,IAAI,CAAA,6DAA6D,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;sBACxE;YACd,CAAC,CAAC,OAAO;;SAER,CAAC;IACN,CAAC;IAEO,6BAA6B;QACjC,OAAO,IAAI,CAAA;oEACiD,IAAI,CAAC,GAAG;OACrE,CAAC;IACJ,CAAC;IAEO,yBAAyB;QAC7B,OAAO,IAAI,CAAA;gEAC6C,IAAI,CAAC,QAAQ;kDAC3B,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;gBACvF,CAAC,IAAI,CAAC,eAAe;YAC7B,CAAC,CAAC,IAAI,CAAA;;;;;mCAKqB;YAC3B,CAAC,CAAC,OAAO;sBACK,CAAC;IACnB,CAAC;IAED,MAAM;QACF,MAAM,kBAAkB,GAAG,UAAU,CAAC,sBAAsB,EAAE;YAC1D,+BAA+B,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;YAC3D,iCAAiC,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;YAC/D,gCAAgC,EAAE,IAAI,CAAC,OAAO,KAAK,UAAU;YAC7D,kCAAkC,EAAE,IAAI,CAAC,SAAS,KAAK,IAAI;YAC3D,0BAA0B,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI;YAC9C,0BAA0B,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI;YAC9C,iCAAiC,EAAE,IAAI,CAAC,QAAQ;YAChD,+BAA+B,EAAE,IAAI,CAAC,OAAO;YAC7C,gCAAgC,EAAE,IAAI,CAAC,QAAQ;SAClD,CAAC,CAAC;QAEH,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;QAChC,CAAC;QAED,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,OAAO,IAAI,CAAA,GAAG,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACpE,CAAC;QAED,OAAO,IAAI,CAAA;;qBAEE,kBAAkB;;4BAEX,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC;wBAC3B,IAAI,CAAC,QAAQ;sBACf,IAAI,CAAC,YAAY;4BACX,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC;mBAC3C,IAAI,CAAC,IAAI;;cAEd,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG;YAChD,CAAC,CAAC,IAAI,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC,OACjD;;uBAEuB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAC,4BAA4B;;kBAEpG,IAAI,CAAC,IAAI;;cAEb,IAAI,CAAC,YAAY,KAAK,OAAO,IAAI,IAAI,CAAC,GAAG;YAC/C,CAAC,CAAC,IAAI,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC,OACjD;cACc,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,eAAe;YAC1C,CAAC,CAAC,IAAI,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC,OAC7C;oBACoB,CAAC;IACjB,CAAC;IAEM,YAAY,CAAC,CAA6B;QAC7C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,CAAC,CAAC,eAAe,EAAE,CAAC;QACxB,CAAC;aAAM,CAAC;YACJ,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;gBAChB,KAAK,QAAQ;oBACT,IAAI,CAAC,UAAU,EAAE,CAAC;oBAClB,MAAM;gBACV,KAAK,OAAO;oBACR,IAAI,CAAC,SAAS,EAAE,CAAC;oBACjB,MAAM;gBACV,aAAa;YACjB,CAAC;QACL,CAAC;IACL,CAAC;;AAhSM,uBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAUrB;IADH,QAAQ,EAAE;8CACU;AAWjB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACoC;AAW3D;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACpB;AAQnB;IADH,QAAQ,EAAE;8CACO;AAad;IADH,QAAQ,EAAE;gDAC0C;AASjD;IADH,QAAQ,EAAE;8CACwC;AAM/C;IADH,QAAQ,EAAE;6CACM;AAOb;IADH,QAAQ,EAAE;6CACM;AAMb;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DACO;AAM9B;IADH,QAAQ,EAAE;2DACoB;AAS3B;IADH,QAAQ,EAAE;sDACuC;AAQ9C;IADH,QAAQ,EAAE;8CACY;AAOnB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACpB;AAQnB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDACnB;AAYpB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDACrB;AAUlB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDACb;AAM1B;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDACL;AAQnB;IADH,QAAQ,EAAE;kDACwC;AAM/C;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4DACV;AAG7B;IADH,KAAK,CAAC,QAAQ,CAAC;+CACc;AA+HlC,IAAI,cAAc,CAAC,GAAG,CAAC,oBAAoB,CAAC,KAAK,SAAS,EAAE,CAAC;IACzD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAClE,CAAC;AAID,eAAe,gBAAgB,CAAC","sourcesContent":["import classnames from 'classnames';\nimport { html, nothing } from 'lit';\nimport { ifDefined } from 'lit-html/directives/if-defined.js';\nimport '../icon/icon';\nimport '../loading-spinner/loading-spinner';\nimport { property, query } from 'lit/decorators.js';\nimport styles from './danger-button.styles.js';\nimport { Cre8FormElement } from '../cre8-form-element';\n\n/**\n * The size and state of buttons on the screen serve as visual cues for the user\n * about what they can do and what they should do next.\n * They indicate the availability and priority of the action on the page.\n *\n * - Buttons are a single call-to-action where a single click performs that action\n * - Use Danger Buttons when you are performing an action that is potentially dangerous,\n * such as permanently deleting information\n * - Use a link instead of a button when you're navigating to another place\n *\n * ## How to Use\n *\n * Danger Buttons are distinguished by three key properties:\n *\n * - **Visual Priority**: Style and size: Primary, Secondary, or Tertiary styles;\n * each with large and small variations\n * - **State**: Interaction state: hover/click (press), focus, disabled,\n * and submitting/loading (only for large buttons)\n * - **Brand**: Styles determined by the site or component theme\n *\n * ### Usage Guidelines\n *\n * Primary, Secondary and Tertiary styles emphasize or de-emphasize an action. They also define\n * background, font style, and border colors. Large and small sizing assists with visual priority by defining button\n * heights, left and right internal padding, and font-size.\n *\n * #### System Feedback\n * Each button has a default and hover/click (press) state that give the user feedback\n * that they have successfully interacted with a button.\n * Button presses should always be combined with other types of timely system feedback.\n * Examples of system feedback may be a page refresh, exposing additional controls or content,\n * dialogs, alerts and notifications.\n * If there is perceived a delay in system response, generally due to technical constraints,\n * provide a progress or loading indicator.\n *\n * #### Button Text\n *\n * - Button text should be as short and simple as possible, ideally a maximum of 3 words.\n * - Use Title Case for readability.\n * - They should not include punctuation (exception: \"Loading...\").\n * - They should not be used as an indicator of what happens on the next page, or as a substitute\n * for a progress meter.\n *\n * #### Button Styling\n *\n * - DO use only the styles of the brand you are working on.\n * - DO NOT combine styles, even if the page is co-branded.\n *\n * #### Button Sizes\n * - DO always pair like sizes together and maintain the hierarchy of Primary and Secondary/Tertiary.\n * - DO NOT mix sizes of buttons when they are used together as a group.\n *\n * #### Input Pairing\n *\n * Primary and Secondary buttons may be paired with input fields.\n * Only one Primary button may appear on each screen.\n * Use the Secondary button when there are multiple in-context buttons\n * and/or when there is an emphasized page level button.\n * When used in a form context, the button's `type` needs to be `submit` to pass along form data.\n *\n * - DO use only large buttons with input fields.\n * - DO NOT use small buttons with input fields.\n *\n */\n\nexport class Cre8DangerButton extends Cre8FormElement {\n static styles = [styles];\n\n /**\n *\n * The button text. Should be as short and simple as possible, ideally a maximum of 3 words.\n * - Use Title Case for readability.\n * - Should not include punctuation (exception: \"Loading...\").\n * - Should not be used as an indicator of what happens on the next page, or as a substitute for a progress meter.\n */\n @property()\n text? = 'Button';\n\n /**\n * Style variant\n * - **primary** renders the button used for primary actions. Presents highest visual priority.\n * When grouped with other buttons, only one primary is allowed\n * - **secondary** renders a secondary button. Presents a lower visual priority\n * - **tertiary** renders a tertiary button. Presents the lowest visual priority.\n * Should be used in limited amounts - consider if a link (`<a>`) would be more appropriate\n */\n @property({ type: String })\n variant?: 'primary' | 'secondary' | 'tertiary' = 'primary';\n\n /**\n * Disabled attribute\n * @attr {boolean}\n *\n * **NOTE**: Disabled states are used to indicate that an action is temporarily unavailable.\n * In general, using disabled states is NOT advised. It should be clear to the user what actions they must\n * take to activate the button. Real-time, field-level validation can help provide clarity.\n */\n @property({ type: Boolean, reflect: true })\n disabled?: boolean;\n\n /**\n *\n * Provide this property if you intend to use button styles for an anchor tag (`<a>`).\n * This changes the component markup from `<button>` usage to `<a>` instead.\n */\n @property()\n href?: string;\n\n /**\n * Target attribute for a link if providing `href` to style a link as a button\n * - **_blank** yields a link that opens in a new tab\n * - **_self** yields a link that loads the URL into the same browsing context as the current one.\n * This is the default behavior\n * - **_parent** yields a link that loads the URL into the parent browsing context of the current one.\n * If there is no parent, this behaves the same way as _self\n * - **_top** yields a link that loads the URL into the top-level browsing context.\n * If there is no parent, this behaves the same way as _self.\n */\n @property()\n target?: '_blank' | '_self' | '_parent' | '_top';\n\n /**\n * Type of button.\n * - **button** (default) button has no default behavior and does nothing unless provided some sort\n * of client-side trigger\n * - **submit** button for submitting form data to a server\n */\n @property()\n type: 'button' | 'submit' | 'reset' = 'button';\n\n /**\n * Rel if this is an <a> element - this swaps <button> for <a>\n */\n @property()\n rel?: string;\n\n /**\n * SVG raw string if including an icon within a button.\n * Must include the icon's position with `iconPostion`. This prop is used for <cre8-icon>\n */\n @property()\n svg?: string;\n\n /**\n * rotate is used for <cre8-icon> to set the arrow in the correct direction\n */\n @property({ type: Number })\n iconRotateDegree?: number = 0;\n\n /**\n * flip is used for <cre8-icon> to set the icon in the correct direction\n */\n @property()\n iconFlipDirection?: string;\n\n /**\n * Icon position. Must include the name of the icon with `iconName`\n *\n * - **before** places the icon before the button text\n * - **after** places the icon after the button text\n */\n @property()\n iconPosition?: 'before' | 'after' = undefined;\n\n /**\n * Size variants add another way to increase or decrease visual priority of a button.\n * - **sm** shrinks the button typography and overall size from the default. Use when vertical space is constrained.\n * - **lg** increases the button typography and overall size from the default.\n */\n @property()\n size?: 'sm' | 'lg';\n\n /**\n * Visually hide button text. Text is still accessible to assistive technology.\n * Use this for icon-only buttons for accessibility\n */\n @property({ type: Boolean, reflect: true })\n hideText?: boolean;\n\n /**\n * Full width button\n * @attr {boolean}\n *\n */\n @property({ type: Boolean, reflect: true })\n fullWidth?: boolean;\n\n /**\n * * Changes styling to an active state with a spinning icon.\n * * Adds accessibility treatment by:\n * * announcing via voiceover when the loading success/error state via a aria-live region\n * * setting `aria-disabled`\n * * Disables click events / form submitting while allowing focus (for accessibility)\n * @attr {boolean}\n *\n */\n @property({ type: Boolean, reflect: true })\n loading?: boolean;\n\n /**\n * * Variant of the loading button that:\n * * Removes loading spinner\n * * Informs the SR user that the loading status is now complete, with visually hidden text in the live area\n * @attr {boolean}\n *\n */\n @property({ type: Boolean, reflect: true })\n loadingComplete?: boolean;\n\n /**\n * Inverted colors Danger Button (onDark)\n */\n @property({ type: Boolean })\n inverted?: boolean;\n\n /**\n * Controls whether your loading status update to voiceover users will occur\n * immediately (used for more urgently needed updates) using `assertive` or at the next convenient\n * pause in their navigation using `polite`.\n */\n @property()\n ariaLive: 'polite' | 'assertive' = 'assertive';\n\n /**\n * Button aria expanded attribute\n */\n @property({ type: Boolean, reflect: true })\n buttonAriaExpanded?: boolean;\n\n @query('button')\n field!: HTMLButtonElement;\n\n formSubmit() {\n const form = this._internals.form;\n if (form) {\n form.requestSubmit();\n }\n }\n\n formReset() {\n const form = this._internals.form;\n if (form) {\n form.reset();\n }\n }\n\n private renderDangerButtonLink(componentClassName: string) {\n return html`\n <a\n href=\"${ifDefined(this.href)}\"\n class=\"${componentClassName}\"\n rel=\"${ifDefined(this.rel)}\"\n target=\"${ifDefined(this.target)}\"\n >\n ${this.iconPosition === 'before'\n ? html`<cre8-icon width=\"16\" height=\"16\" aria-hidden=\"true\" svg=\"${ifDefined(this.svg)}\">\n </cre8-icon>`\n : nothing}\n <span\n class=\"${this.hideText ? 'cre8-u-is-vishidden cre8-c-danger-button__text' : 'cre8-c-danger-button__text'}\"\n >\n ${this.text}\n </span>\n ${this.iconPosition === 'after'\n ? html`<cre8-icon width=\"16\" height=\"16\" aria-hidden=\"true\" svg=\"${ifDefined(this.svg)}\">\n </cre8-icon> `\n : nothing}\n </a>\n `;\n }\n\n private renderDangerButtonIconography() {\n return html`\n <cre8-icon width=\"16\" height=\"16\" aria-hidden=\"true\" svg=\"${this.svg}\"></cre8-icon>\n `;\n }\n\n private renderDangerButtonLoading() {\n return html`\n <span class=\"cre8-c-danger-button__icon\" aria-live=\"${this.ariaLive}\" role=\"alert\">\n <span class=\"cre8-u-is-vishidden\">${this.loadingComplete ? 'Loading Complete' : 'Loading'}</span>\n ${!this.loadingComplete\n ? html`\n <cre8-loading-spinner\n class=\"cre8-c-danger-button__loading-icon\"\n inverted size=\"small\"\n aria-hidden=\"true\"\n ></cre8-loading-spinner>`\n : nothing}\n </span>`;\n }\n\n render() {\n const componentClassName = classnames('cre8-c-danger-button', {\n 'cre8-c-danger-button--primary': this.variant === 'primary',\n 'cre8-c-danger-button--secondary': this.variant === 'secondary',\n 'cre8-c-danger-button--tertiary': this.variant === 'tertiary',\n 'cre8-c-danger-button--full-width': this.fullWidth === true,\n 'cre8-c-danger-button--sm': this.size === 'sm',\n 'cre8-c-danger-button--lg': this.size === 'lg',\n 'cre8-c-danger-button--icon-only': this.hideText,\n 'cre8-c-danger-button--loading': this.loading,\n 'cre8-c-danger-button--inverted': this.inverted,\n });\n\n if (this.hideText) {\n this.iconPosition = 'after';\n }\n\n if (this.href) {\n return html`${this.renderDangerButtonLink(componentClassName)}`;\n }\n\n return html`\n <button\n class=\"${componentClassName}\"\n part=\"button\"\n aria-disabled=${ifDefined(this.loading)}\n ?disabled=${this.disabled}\n @click=\"${this._buttonClick}\"\n aria-expanded=${ifDefined(this.buttonAriaExpanded)}\n type=${this.type}\n >\n ${this.iconPosition === 'before' && this.svg\n ? this.renderDangerButtonIconography() : nothing\n}\n <span\n class=\"${this.hideText ? 'cre8-u-is-vishidden cre8-c-danger-button__text' : 'cre8-c-danger-button__text'}\"\n >\n ${this.text}\n </span>\n ${this.iconPosition === 'after' && this.svg\n ? this.renderDangerButtonIconography() : nothing\n}\n ${this.loading || this.loadingComplete\n ? this.renderDangerButtonLoading() : nothing\n}\n </button>`;\n }\n\n public _buttonClick(e: MouseEvent | KeyboardEvent) {\n if (this.loading) {\n e.stopPropagation();\n } else {\n switch (this.type) {\n case 'submit':\n this.formSubmit();\n break;\n case 'reset':\n this.formReset();\n break;\n // no default\n }\n }\n }\n}\n\nif (customElements.get('cre8-danger-button') === undefined) {\n customElements.define('cre8-danger-button', Cre8DangerButton);\n}\n\ndeclare global { interface HTMLElementTagNameMap { 'cre8-danger-button': Cre8DangerButton; } }\n\nexport default Cre8DangerButton;\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
const styles = css `*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:inline-flex}:host([fullWidth]){display:flex}.cre8-c-danger-button{font-family:var(--cre8-typography-label-default-font-family);font-size:var(--cre8-typography-label-default-font-size);font-weight:var(--cre8-typography-label-default-font-weight);line-height:var(--cre8-typography-label-default-line-height);text-decoration:var(--cre8-typography-label-default-text-decoration);text-transform:var(--cre8-typography-label-default-text-transform);width:var(--cre8-button-width, auto);height:var(--cre8-button-height, auto);min-width:var(--cre8-button-min-width, auto);min-height:var(--cre8-button-min-height, auto);justify-content:center;text-align:center;margin-top:var(--cre8-button-margin-top, 0);margin-bottom:var(--cre8-button-margin-bottom, 0);margin-left:var(--cre8-button-margin-left, 0);margin-right:var(--cre8-button-margin-right, 0);display:inline-flex;align-items:center;border-width:var(--cre8-border-width-button-default);box-shadow:var(--cre8-shadow-button);padding-top:var(--cre8-button-padding-vertical-medium);padding-right:var(--cre8-button-padding-horizontal-medium);padding-bottom:var(--cre8-button-padding-vertical-medium);padding-left:var(--cre8-button-padding-horizontal-medium);margin:0;cursor:pointer;border-style:var(--cre8-border-style-default);transition:revert;transform:revert;white-space:nowrap}.cre8-c-danger-button:hover,.cre8-c-danger-button:focus,.cre8-c-danger-button:active,.cre8-c-danger-button:focus-visible{border-style:var(--cre8-border-style-default);box-shadow:none;transform:revert;transition:revert}.cre8-c-danger-button.cre8-c-danger-button--primary{background:var(--cre8-color-button-primary-danger-bg);border-width:var(--cre8-border-width-button-default);border-color:var(--cre8-color-button-primary-danger-border);border-radius:var(--cre8-border-radius-button);box-shadow:var(--cre8-shadow-button);color:var(--cre8-color-button-primary-danger-content);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content)}.cre8-c-danger-button.cre8-c-danger-button--primary:hover,.cre8-c-danger-button.cre8-c-danger-button--primary:focus{box-shadow:none;--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-hover);color:var(--cre8-color-button-primary-danger-content-hover);border-color:var(--cre8-color-button-primary-danger-border-hover);background:var(--cre8-color-button-primary-danger-bg-hover);text-decoration:none}.cre8-c-danger-button.cre8-c-danger-button--primary:hover:focus,.cre8-c-danger-button.cre8-c-danger-button--primary:focus:focus{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--primary:active,.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--loading{box-shadow:none;color:var(--cre8-color-button-primary-danger-content-active);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-active);border-color:var(--cre8-color-button-primary-danger-border-active);background-color:var(--cre8-color-button-primary-danger-bg-active)}.cre8-c-danger-button.cre8-c-danger-button--primary:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--loading{cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--primary:disabled{box-shadow:none;background-color:var(--cre8-color-button-primary-danger-bg-disabled);border-color:var(--cre8-color-button-primary-danger-border-disabled);color:var(--cre8-color-button-primary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-disabled);cursor:not-allowed;outline:none}.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:hover,.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:focus,.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:active,.cre8-c-danger-button.cre8-c-danger-button--primary:disabled:focus-visible{outline:none;background-color:var(--cre8-color-button-primary-danger-bg-disabled);border-color:var(--cre8-color-button-primary-danger-border-disabled);color:var(--cre8-color-button-primary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted{background-color:var(--cre8-color-button-primary-danger-inverse-bg);border-color:var(--cre8-color-button-primary-danger-inverse-border);color:var(--cre8-color-button-primary-danger-inverse-content)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:hover,.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:focus{background-color:var(--cre8-color-button-primary-danger-inverse-bg-hover);border-color:var(--cre8-color-button-primary-danger-inverse-border-hover);color:var(--cre8-color-button-primary-danger-inverse-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:focus{outline-color:var(--cre8-color-button-primary-danger-inverse-outline)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:active{background-color:var(--cre8-color-button-primary-danger-inverse-bg-active);border-color:var(--cre8-color-button-primary-danger-inverse-border-active);color:var(--cre8-color-button-primary-danger-inverse-content-active)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:active.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-primary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--primary.cre8-c-danger-button--inverted:disabled{outline:none;cursor:not-allowed;background-color:var(--cre8-color-button-primary-danger-inverse-bg-disabled);border-color:var(--cre8-color-button-primary-danger-inverse-border-disabled);color:var(--cre8-color-button-primary-danger-inverse-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--secondary{background-color:var(--cre8-color-button-secondary-danger-bg);border-color:var(--cre8-color-button-secondary-danger-border);color:var(--cre8-color-button-secondary-danger-content);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content);border-radius:var(--cre8-border-radius-button);border-width:var(--cre8-border-width-button-default)}.cre8-c-danger-button.cre8-c-danger-button--secondary:hover,.cre8-c-danger-button.cre8-c-danger-button--secondary:focus{background-color:var(--cre8-color-button-secondary-danger-bg-hover);border-color:var(--cre8-color-button-secondary-danger-border-hover);color:var(--cre8-color-button-secondary-danger-content-hover);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--secondary:hover:focus,.cre8-c-danger-button.cre8-c-danger-button--secondary:focus:focus{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--secondary:active,.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--loading{transition:none;transform:none;background-color:var(--cre8-color-button-secondary-danger-bg-active);border-color:var(--cre8-color-button-secondary-danger-border-active);color:var(--cre8-color-button-secondary-danger-content-active);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--secondary:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--loading{cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled{box-shadow:none;background-color:var(--cre8-color-button-secondary-danger-bg-disabled);border-color:var(--cre8-color-button-secondary-danger-border-disabled);color:var(--cre8-color-button-secondary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-disabled);outline:none;border-radius:var(--cre8-border-radius-button);border-width:var(--cre8-border-width-button-default);cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:hover,.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:focus,.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:active,.cre8-c-danger-button.cre8-c-danger-button--secondary:disabled:focus-visible{outline:none;background-color:var(--cre8-color-button-secondary-danger-bg-disabled);border-color:var(--cre8-color-button-secondary-danger-border-disabled);color:var(--cre8-color-button-secondary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted{background-color:var(--cre8-color-button-secondary-danger-inverse-bg);border-color:var(--cre8-color-button-secondary-danger-inverse-border);color:var(--cre8-color-button-secondary-danger-inverse-content)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:hover,.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:focus{background-color:var(--cre8-color-button-secondary-danger-inverse-bg-hover);border-color:var(--cre8-color-button-secondary-danger-inverse-border-hover);color:var(--cre8-color-button-secondary-danger-inverse-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:focus{outline-color:var(--cre8-color-button-secondary-danger-inverse-outline)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:active{background-color:var(--cre8-color-button-secondary-danger-inverse-bg-active);border-color:var(--cre8-color-button-secondary-danger-inverse-border-active);color:var(--cre8-color-button-secondary-danger-inverse-content-active)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:active.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--inverted:disabled{outline:none;cursor:not-allowed;background-color:var(--cre8-color-button-secondary-danger-inverse-bg-disabled);border-color:var(--cre8-color-button-secondary-danger-inverse-border-disabled);color:var(--cre8-color-button-secondary-danger-inverse-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--tertiary{border-radius:var(--cre8-border-radius-button);background-color:var(--cre8-color-button-tertiary-danger-bg);border-width:var(--cre8-border-width-button-default);border-color:var(--cre8-color-button-tertiary-danger-border);color:var(--cre8-color-button-tertiary-danger-content);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content);box-shadow:none}.cre8-c-danger-button.cre8-c-danger-button--tertiary:hover,.cre8-c-danger-button.cre8-c-danger-button--tertiary:focus{border-radius:var(--cre8-border-radius-button);background-color:var(--cre8-color-button-tertiary-danger-bg-hover);border-width:var(--cre8-border-width-button-default, --cre8-border-width-none);border-color:var(--cre8-color-button-tertiary-danger-border-hover);color:var(--cre8-color-button-tertiary-danger-content-hover);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--tertiary:hover:focus,.cre8-c-danger-button.cre8-c-danger-button--tertiary:focus:focus{outline:var(--cre8-border-width-focus) var(--cre8-border-style-button-tertiary-outline-focus) var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--tertiary:active,.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--loading{border-radius:var(--cre8-border-radius-button);background-color:var(--cre8-color-button-tertiary-danger-bg-active);border-color:var(--cre8-color-button-tertiary-danger-border-active);border-width:var(--cre8-border-width-button-default);color:var(--cre8-color-button-tertiary-danger-content-active);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--tertiary:focus-visible{outline:var(--cre8-border-width-focus) var(--cre8-border-style-button-tertiary-outline-focus) var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--loading{cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled{background-color:var(--cre8-color-button-tertiary-danger-bg-disabled);border-color:rgba(0,0,0,0);color:var(--cre8-color-button-tertiary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-disabled);outline:none;box-shadow:none;cursor:not-allowed}.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:hover,.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:focus{outline:none;box-shadow:none;background-color:var(--cre8-color-button-tertiary-danger-bg-disabled);color:var(--cre8-color-button-tertiary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:active,.cre8-c-danger-button.cre8-c-danger-button--tertiary:disabled:focus-visible{outline:none;box-shadow:none;background-color:var(--cre8-color-button-tertiary-danger-bg-disabled);color:var(--cre8-color-button-tertiary-danger-content-disabled);--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted{background-color:var(--cre8-color-button-tertiary-danger-inverse-bg);border-color:var(--cre8-color-button-tertiary-danger-inverse-border);color:var(--cre8-color-button-tertiary-danger-inverse-content)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:hover,.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:focus{background-color:var(--cre8-color-button-tertiary-danger-inverse-bg-hover);border-color:var(--cre8-color-button-tertiary-danger-inverse-border-hover);color:var(--cre8-color-button-tertiary-danger-inverse-content-hover)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:focus{outline-color:var(--cre8-color-button-tertiary-danger-inverse-outline)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:active{background-color:var(--cre8-color-button-tertiary-danger-inverse-bg-active);border-color:var(--cre8-color-button-tertiary-danger-inverse-border-active);color:var(--cre8-color-button-tertiary-danger-inverse-content-active)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:active.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-tertiary-danger-content-active)}.cre8-c-danger-button.cre8-c-danger-button--tertiary.cre8-c-danger-button--inverted:disabled{outline:none;cursor:not-allowed;background-color:var(--cre8-color-button-tertiary-danger-inverse-bg-disabled);border-color:var(--cre8-color-button-tertiary-danger-inverse-border-disabled);color:var(--cre8-color-button-tertiary-danger-inverse-content-disabled)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text{border-radius:var(--cre8-border-radius-button) var(--cre8-border-radius-none) var(--cre8-border-radius-none) var(--cre8-border-radius-button);border-color:var(--cre8-color-button-secondary-danger-border);border-width:var(--cre8-border-width-button-default);color:var(--cre8-color-button-secondary-danger-content)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text:active,.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text:focus-visible{outline:none}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text.cre8-c-danger-button--lg{padding:var(--cre8-button-padding-vertical-large) var(--cre8-button-padding-horizontal-large)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--secondary.cre8-c-danger-button--split-button-text.cre8-c-danger-button--sm{padding:var(--cre8-button-padding-vertical-small) var(--cre8-button-padding-horizontal-small)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret{padding:var(--cre8-button-padding-vertical-medium);border-radius:var(--cre8-border-radius-none) var(--cre8-border-radius-button) var(--cre8-border-radius-button) var(--cre8-border-radius-none);height:100%;border-left:none !important;border-collapse:collapse;background:var(--cre8-color-button-secondary-danger-bg);border-color:var(--cre8-color-button-secondary-danger-border);border-width:var(--cre8-border-width-button-default);color:var(--cre8-color-button-secondary-danger-content);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content)}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:hover,.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:focus{background:var(--cre8-color-button-secondary-danger-bg-hover);border-color:var(--cre8-color-button-secondary-danger-border-hover);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-hover);outline:none;border-left:none;border-collapse:collapse}.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:active,.cre8-c-danger-button.cre8-c-danger-button.cre8-c-danger-button--icon-only.cre8-c-danger-button--split-button-caret:focus-visible{background:var(--cre8-color-button-secondary-danger-bg-active);border-color:var(--cre8-color-button-secondary-danger-border-active);--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active);outline:none;border-left:none;border-collapse:collapse}.cre8-c-danger-button--lg{padding:var(--cre8-button-padding-vertical-large)}.cre8-c-danger-button--sm{padding:var(--cre8-button-padding-vertical-small)}.cre8-c-danger-button--icon-only{padding:var(--cre8-button-padding-vertical-small);color:var(--cre8-icon-fill, currentColor)}.cre8-c-danger-button--full-width{width:100%;display:flex}.cre8-c-danger-button--sm{font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform);padding-top:var(--cre8-button-padding-vertical-small);padding-right:var(--cre8-button-padding-horizontal-small);padding-bottom:var(--cre8-button-padding-vertical-small);padding-left:var(--cre8-button-padding-horizontal-small)}.cre8-c-danger-button--lg{font-family:var(--cre8-typography-label-large-font-family);font-size:var(--cre8-typography-label-large-font-size);font-weight:var(--cre8-typography-label-large-font-weight);line-height:var(--cre8-typography-label-large-line-height);text-decoration:var(--cre8-typography-label-large-text-decoration);text-transform:var(--cre8-typography-label-large-text-transform);padding-top:var(--cre8-button-padding-vertical-large);padding-right:var(--cre8-button-padding-horizontal-large);padding-bottom:var(--cre8-button-padding-vertical-large);padding-left:var(--cre8-button-padding-horizontal-large)}.cre8-c-danger-button--sm cre8-icon{--cre8-icon-height: var(--cre8-icon-size-small);--cre8-icon-width: var(--cre8-icon-size-small)}.cre8-c-danger-button--lg cre8-icon{--cre8-icon-height: var(--cre8-icon-size-large);--cre8-icon-width: var(--cre8-icon-size-large)}::slotted(*){margin-right:0}cre8-icon+.cre8-c-danger-button__text:not(.cre8-u-is-vishidden){margin-left:0.5rem;display:inline-flex}.cre8-c-danger-button__text:not(.cre8-u-is-vishidden)+cre8-icon{margin-left:0.5rem;display:inline-flex}.cre8-c-danger-button:has(.cre8-c-danger-button__text.cre8-u-is-vishidden)+cre8-icon{border-radius:var(--cre8-border-radius-button)}.cre8-c-danger-button__text.cre8-u-is-vishidden+cre8-icon{margin-left:0px;margin-right:0px;display:flex}.cre8-c-danger-button__text.cre8-u-is-vishidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.cre8-c-danger-button--primary.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-content-knockout)}.cre8-c-danger-button--secondary.cre8-c-danger-button--loading,.cre8-c-danger-button--tertiary.cre8-c-danger-button--loading{--cre8-icon-fill: var(--cre8-color-button-secondary-danger-content-active)}.cre8-u-is-vishidden{--cre8-icon-height: 0px;--cre8-icon-width: 0px;max-width:fit-content;min-width:0px;width:auto;height:auto;max-height:fit-content;min-width:0px;border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}cre8-icon.cre8-u-is-vishidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}cre8-icon{display:flex;align-items:center;justify-content:center}span.cre8-c-danger-button__icon{margin-left:0.5rem;max-width:fit-content;min-width:0px;width:auto;height:auto;max-height:fit-content;min-width:0px}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=danger-button.styles.js.map
|