@tmorrow/cre8-wc 1.1.2 → 1.1.3
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/tokens_blue.module.js +737 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.js.map +1 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js +756 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js.map +1 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.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/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/tokens_cre8-legacy.module.js +737 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js +983 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js.map +1 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js +737 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js +736 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js.map +1 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js +737 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js.map +1 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js +771 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.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 copy/blue/css/tokens_blue.module.js +253 -0
- package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.js.map +1 -0
- package/lib/design-tokens/core/scss/theming/head.module.js +6 -0
- package/lib/design-tokens/core/scss/theming/head.module.js.map +1 -0
- package/lib/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
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Cre8Element
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { html, } from 'lit';
|
|
2
|
+
import { Cre8Element } from '../cre8-element';
|
|
3
|
+
import styles from './linelength-container.styles.js';
|
|
4
|
+
/**
|
|
5
|
+
* @slot - The component content
|
|
6
|
+
*/
|
|
7
|
+
export class Cre8LinelengthContainer extends Cre8Element {
|
|
8
|
+
render() {
|
|
9
|
+
const componentClassNames = this.componentClassNames('cre8-c-linelength-container', {});
|
|
10
|
+
return html `
|
|
11
|
+
<div class="${componentClassNames}">
|
|
8
12
|
<slot></slot>
|
|
9
13
|
</div>
|
|
10
14
|
`;
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
customElements.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
Cre8LinelengthContainer.styles = [styles];
|
|
18
|
+
if (customElements.get('cre8-linelength-container') === undefined) {
|
|
19
|
+
customElements.define('cre8-linelength-container', Cre8LinelengthContainer);
|
|
20
|
+
}
|
|
21
|
+
export default Cre8LinelengthContainer;
|
|
22
|
+
//# sourceMappingURL=linelength-container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linelength-container.js","sourceRoot":"","sources":["../../../components/linelength-container/linelength-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAEtD;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IAGpD,MAAM;QACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;QAExF,OAAO,IAAI,CAAA;oBACC,mBAAmB;;;KAGlC,CAAC;IACF,CAAC;;AAVM,8BAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAa7B,IAAI,cAAc,CAAC,GAAG,CAAC,2BAA2B,CAAC,KAAK,SAAS,EAAE,CAAC;IAChE,cAAc,CAAC,MAAM,CAAC,2BAA2B,EAAE,uBAAuB,CAAC,CAAC;AAChF,CAAC;AAQD,eAAe,uBAAuB,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './linelength-container.styles.js';\n\n/**\n * @slot - The component content\n */\nexport class Cre8LinelengthContainer extends Cre8Element {\n static styles = [styles];\n\n render() {\n const componentClassNames = this.componentClassNames('cre8-c-linelength-container', {});\n\n return html`\n <div class=\"${componentClassNames}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-linelength-container') === undefined) {\n customElements.define('cre8-linelength-container', Cre8LinelengthContainer);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-linelength-container': Cre8LinelengthContainer;\n }\n}\n\nexport default Cre8LinelengthContainer;\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}.cre8-c-linelength-container{max-width:var(--cre8-l-linelength-width)}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=linelength-container.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linelength-container.styles.js","sourceRoot":"","sources":["../../../components/linelength-container/linelength-container.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,g1DAAg1D,CAAC;AACn2D,eAAe,MAAM,CAAC","sourcesContent":["import { css } from 'lit';\nconst 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}.cre8-c-linelength-container{max-width:var(--cre8-l-linelength-width)}`;\nexport default styles;\n"]}
|
|
@@ -1,112 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<path d="M8 0C6.41775 0 4.87103 0.469192 3.55544 1.34824C2.23985 2.22729 1.21447 3.47672 0.608967 4.93853C0.00346628 6.40034 -0.15496 8.00887 0.153721 9.56072C0.462403 11.1126 1.22433 12.538 2.34315 13.6569C3.46197 14.7757 4.88743 15.5376 6.43928 15.8463C7.99113 16.155 9.59966 15.9965 11.0615 15.391C12.5233 14.7855 13.7727 13.7602 14.6518 12.4446C15.5308 11.129 16 9.58225 16 8C15.9978 5.87895 15.1542 3.84542 13.6544 2.34562C12.1546 0.845814 10.121 0.00223986 8 0ZM11.0769 8.61538H6.40846L7.82 10.0262C7.87718 10.0833 7.92253 10.1512 7.95347 10.2259C7.98442 10.3006 8.00034 10.3807 8.00034 10.4615C8.00034 10.5424 7.98442 10.6225 7.95347 10.6972C7.92253 10.7719 7.87718 10.8397 7.82 10.8969C7.76283 10.9541 7.69495 10.9994 7.62025 11.0304C7.54554 11.0613 7.46548 11.0773 7.38462 11.0773C7.30376 11.0773 7.22369 11.0613 7.14899 11.0304C7.07429 10.9994 7.00641 10.9541 6.94923 10.8969L4.48769 8.43538C4.43048 8.37823 4.38509 8.31036 4.35412 8.23565C4.32315 8.16095 4.30721 8.08087 4.30721 8C4.30721 7.91913 4.32315 7.83905 4.35412 7.76434C4.38509 7.68964 4.43048 7.62177 4.48769 7.56461L6.94923 5.10308C7.0647 4.9876 7.22132 4.92273 7.38462 4.92273C7.54792 4.92273 7.70453 4.9876 7.82 5.10308C7.93547 5.21855 8.00034 5.37516 8.00034 5.53846C8.00034 5.70176 7.93547 5.85837 7.82 5.97385L6.40846 7.38461H11.0769C11.2401 7.38461 11.3967 7.44945 11.5121 7.56486C11.6275 7.68026 11.6923 7.83679 11.6923 8C11.6923 8.16321 11.6275 8.31973 11.5121 8.43514C11.3967 8.55055 11.2401 8.61538 11.0769 8.61538Z"/>
|
|
7
|
-
</svg>
|
|
8
|
-
`, g = 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}.cre8-c-link{display:inline-flex;text-decoration:none;height:100%;color:var(--cre8-color-content-link)}.cre8-c-link:hover .cre8-c-link__text,.cre8-c-link:hover .cre8-c-link__text-area{color:var(--cre8-color-content-link-hover);border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent)}.cre8-c-link:focus{outline:none}.cre8-c-link:focus .cre8-c-link__text,.cre8-c-link:focus .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-active);color:var(--cre8-color-content-link-focus)}.cre8-c-link:focus .cre8-c-link__cta-wrapper{color:var(--cre8-color-content-link-focus);outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem;background-color:var(--cre8-color-button-primary-bg-hover);border:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--color-border-active-outline)}.cre8-c-link:active .cre8-c-link__text,.cre8-c-link:active .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent);color:var(--cre8-color-content-link-active)}.cre8-c-link__text-area{display:inline-flex;justify-content:center;text-align:center;align-items:center}.cre8-c-link__text{font-family:var(--cre8-typography-body-default-link-font-family);font-size:var(--cre8-typography-body-default-link-font-size);font-weight:var(--cre8-typography-body-default-link-font-weight);line-height:var(--cre8-typography-body-default-link-line-height);text-decoration:var(--cre8-typography-body-default-link-text-decoration);text-transform:var(--cre8-typography-body-default-link-text-transform);color:var(--cre8-color-content-link);display:inline-flex}.cre8-c-link--sm .cre8-c-link__text{font-family:var(--cre8-typography-body-small-link-font-family);font-size:var(--cre8-typography-body-small-link-font-size);font-weight:var(--cre8-typography-body-small-link-font-weight);line-height:var(--cre8-typography-body-small-link-line-height);text-decoration:var(--cre8-typography-body-small-link-text-decoration);text-transform:var(--cre8-typography-body-small-link-text-transform)}.cre8-c-link--lg .cre8-c-link__text{font-family:var(--cre8-typography-body-large-link-font-family);font-size:var(--cre8-typography-body-large-link-font-size);font-weight:var(--cre8-typography-body-large-link-font-weight);line-height:var(--cre8-typography-body-large-link-line-height);text-decoration:var(--cre8-typography-body-large-link-text-decoration);text-transform:var(--cre8-typography-body-large-link-text-transform)}.cre8-c-link__no-underline .cre8-c-link__text{text-decoration:none}.cre8-c-link__icon-wrapper{display:inline-flex}.cre8-c-link__icon{display:inline-flex;height:1.5rem;width:1.5rem}.cre8-c-link--sm .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-small);--cre8-icon-width: var(--cre8-icon-size-small);height:1.375rem;width:1.375rem}.cre8-c-link--lg .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-large);--cre8-icon-width: var(--cre8-icon-size-large);height:1.625rem;width:1.625rem}.cre8-c-link__variation{display:inline-flex;justify-content:center;align-items:center}.cre8-c-link__cta-wrapper{color:var(--cre8-color-button-primary-content);display:inline-flex;margin-left:0.5rem;padding:var(--cre8-spacing-4);background-color:var(--cre8-color-content-link);border-radius:var(--cre8-border-radius-round);border-width:var(--cre8-border-width-button-default)}.cre8-c-link__cta-wrapper svg{height:1rem;width:1rem}.cre8-c-link__icon.before{padding-right:0.5rem}.cre8-c-link__icon.after{padding-left:0.5rem}::slotted([slot=badge]){padding-left:0.5rem}.cre8-c-link--inverted .cre8-c-link__text{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__icon{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__cta-wrapper{--cre8-icon-fill: var(--cre8-color-content-brand);color:var(--cre8-color-content-brand);background-color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted:hover .cre8-c-link__text,.cre8-c-link--inverted:hover .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:hover .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:active .cre8-c-link__text,.cre8-c-link--inverted:active .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:active .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:focus{outline:none}.cre8-c-link--inverted:focus .cre8-c-link__icon{background-color:var(--cre8-color-bg-inverse-active);fill:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__text,.cre8-c-link--inverted:focus .cre8-c-link__text-area{background-color:var(--cre8-color-bg-inverse-active);color:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__cta-wrapper{background-color:var(--cre8-color-content-inverse-link);color:var(--cre8-color-content-inverse-link-focus);outline:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-content-inverse-link);outline-offset:0.125rem}cre8-icon{display:flex;align-items:center}`;
|
|
9
|
-
var y = Object.defineProperty, t = (d, o, p, m) => {
|
|
10
|
-
for (var i = void 0, a = d.length - 1, h; a >= 0; a--)
|
|
11
|
-
(h = d[a]) && (i = h(o, p, i) || i);
|
|
12
|
-
return i && y(o, p, i), i;
|
|
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
|
-
|
|
7
|
+
import svgArrowLeft from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Arrow_-_Left.svg?raw';
|
|
8
|
+
import { html, nothing, } from 'lit';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
11
|
+
import { Cre8Element } from '../cre8-element';
|
|
12
|
+
import styles from './link.styles.js';
|
|
13
|
+
/**
|
|
14
|
+
* Link Component are strictly used in the case where the component will take
|
|
15
|
+
* the user away from the current page to a new url.
|
|
16
|
+
* In this vein, this component should ONLY be used in situations an anchor tag would be used (an href is required)
|
|
17
|
+
* This goes for the variations as well such as the Call To Action Link
|
|
18
|
+
*
|
|
19
|
+
* **Note**
|
|
20
|
+
*
|
|
21
|
+
* For link with icon:
|
|
22
|
+
* - **iconRotateDegree** & **iconFlipDirection** props are optional.
|
|
23
|
+
* - They are used to set up the correct direction for icons, for example,
|
|
24
|
+
* arrows, caret up or caret down.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class Cre8Link extends Cre8Element {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
/**
|
|
31
|
+
* iconRotateDegree is used for <cre8-icon> to set the arrow in the correct direction
|
|
32
|
+
*/
|
|
33
|
+
this.iconRotateDegree = 0;
|
|
34
|
+
/**
|
|
35
|
+
* Icon position
|
|
36
|
+
* - **before** places the icon before the button text
|
|
37
|
+
* - **after** places the icon after the button text
|
|
38
|
+
*/
|
|
39
|
+
this.iconPosition = undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Call To Action Icon
|
|
42
|
+
*/
|
|
43
|
+
this.ctaIcon = 'arrow-forward';
|
|
44
|
+
}
|
|
45
|
+
generateIcon() {
|
|
46
|
+
if (this.iconName) {
|
|
47
|
+
return html `
|
|
20
48
|
<div class="cre8-c-link__icon-wrapper">
|
|
21
49
|
<cre8-icon-legacy
|
|
22
50
|
class="cre8-c-link__icon ${this.iconPosition}"
|
|
23
51
|
aria-hidden="true"
|
|
24
|
-
name="${
|
|
52
|
+
name="${ifDefined(this.iconName)}">
|
|
25
53
|
</cre8-icon-legacy>
|
|
26
|
-
</div
|
|
54
|
+
</div>`;
|
|
55
|
+
}
|
|
56
|
+
if (this.svg) {
|
|
57
|
+
return html `
|
|
27
58
|
<div class="cre8-c-link__icon-wrapper">
|
|
28
59
|
<cre8-icon
|
|
29
60
|
class="cre8-c-link__icon ${this.iconPosition}"
|
|
30
61
|
aria-hidden="true"
|
|
31
62
|
svg='${this.svg}' rotate="${Number(this.iconRotateDegree)}" flip="${this.iconFlipDirection}">
|
|
32
63
|
</cre8-icon>
|
|
33
|
-
</div
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
64
|
+
</div>`;
|
|
65
|
+
}
|
|
66
|
+
return nothing;
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
const componentClassNames = this.componentClassNames('cre8-c-link', {
|
|
70
|
+
'cre8-c-link--inverted': this.inverted,
|
|
71
|
+
'cre8-c-link--sm': this.size === 'sm',
|
|
72
|
+
'cre8-c-link--lg': this.size === 'lg',
|
|
73
|
+
'cre8-c-link__no-underline': this.noUnderline,
|
|
74
|
+
});
|
|
75
|
+
return html `
|
|
43
76
|
<a
|
|
44
|
-
class="${
|
|
45
|
-
href="${
|
|
46
|
-
rel="${
|
|
47
|
-
target="${
|
|
77
|
+
class="${componentClassNames}"
|
|
78
|
+
href="${ifDefined(this.href)}"
|
|
79
|
+
rel="${ifDefined(this.rel)}"
|
|
80
|
+
target="${ifDefined(this.target)}"
|
|
48
81
|
>
|
|
49
82
|
<div class="cre8-c-link__text-area">
|
|
50
|
-
${this.iconPosition ===
|
|
83
|
+
${this.iconPosition === 'before'
|
|
84
|
+
? html `${this.generateIcon()}`
|
|
85
|
+
: nothing}
|
|
51
86
|
<span class="cre8-c-link__text">
|
|
52
87
|
<slot></slot>
|
|
53
88
|
</span>
|
|
54
|
-
${this.iconPosition ===
|
|
89
|
+
${this.iconPosition === 'after'
|
|
90
|
+
? html `${this.generateIcon()}`
|
|
91
|
+
: nothing}
|
|
55
92
|
</div>
|
|
56
93
|
<div class="cre8-c-link__variation">
|
|
57
94
|
<slot name="badge"></slot>
|
|
58
|
-
${this.ctaLink
|
|
59
|
-
|
|
95
|
+
${this.ctaLink
|
|
96
|
+
? html `<div class="cre8-c-link__cta-wrapper">
|
|
97
|
+
<cre8-icon class="cre8-c-link__action" svg='${svgArrowLeft}'
|
|
60
98
|
rotate="180" aria-hidden="true"></cre8-icon>
|
|
61
|
-
</div>`
|
|
99
|
+
</div>`
|
|
100
|
+
: nothing}
|
|
62
101
|
</div>
|
|
63
102
|
</a>
|
|
64
103
|
`;
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
customElements.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
Cre8Link.styles = [styles];
|
|
107
|
+
__decorate([
|
|
108
|
+
property()
|
|
109
|
+
], Cre8Link.prototype, "href", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
property()
|
|
112
|
+
], Cre8Link.prototype, "rel", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
property()
|
|
115
|
+
], Cre8Link.prototype, "target", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
property()
|
|
118
|
+
], Cre8Link.prototype, "iconName", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
property()
|
|
121
|
+
], Cre8Link.prototype, "svg", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: Number })
|
|
124
|
+
], Cre8Link.prototype, "iconRotateDegree", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
property()
|
|
127
|
+
], Cre8Link.prototype, "iconFlipDirection", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
property()
|
|
130
|
+
], Cre8Link.prototype, "iconPosition", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
property()
|
|
133
|
+
], Cre8Link.prototype, "ctaIcon", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
property({ type: Boolean })
|
|
136
|
+
], Cre8Link.prototype, "ctaLink", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
property({ type: Boolean })
|
|
139
|
+
], Cre8Link.prototype, "noUnderline", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
property()
|
|
142
|
+
], Cre8Link.prototype, "size", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
property({ type: Boolean })
|
|
145
|
+
], Cre8Link.prototype, "inverted", void 0);
|
|
146
|
+
if (customElements.get('cre8-link') === undefined) {
|
|
147
|
+
customElements.define('cre8-link', Cre8Link);
|
|
148
|
+
}
|
|
149
|
+
export default Cre8Link;
|
|
150
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../../components/link/link.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,YAAY,MAAM,yGAAyG,CAAC;AACnI,OAAO,EACH,IAAI,EAAE,OAAO,GAChB,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC;;;;;;;;;;;;;EAaE;AAEF,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QA2CE;;WAEG;QAEC,qBAAgB,GAAY,CAAC,CAAC;QAQlC;;;;WAIG;QAEC,iBAAY,GAAwB,SAAS,CAAC;QAElD;;WAEG;QAEC,YAAO,GAAG,eAAe,CAAC;IA0FhC,CAAC;IA9DS,YAAY;QAChB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,OAAO,IAAI,CAAA;;;yCAGoB,IAAI,CAAC,YAAY;;sBAEpC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;;iBAE7B,CAAC;QACZ,CAAC;QAED,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,OAAO,IAAI,CAAA;;;yCAGoB,IAAI,CAAC,YAAY;;qBAErC,IAAI,CAAC,GAAG,aAAa,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,IAAI,CAAC,iBAAiB;;iBAEvF,CAAC;QACZ,CAAC;QAAC,OAAO,OAAO,CAAC;IACrB,CAAC;IAED,MAAM;QACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE;YAChE,uBAAuB,EAAE,IAAI,CAAC,QAAQ;YACtC,iBAAiB,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI;YACrC,iBAAiB,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI;YACrC,2BAA2B,EAAE,IAAI,CAAC,WAAW;SAChD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;;iBAEA,mBAAmB;gBACpB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;eACrB,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC;kBAChB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;;;YAG5B,IAAI,CAAC,YAAY,KAAK,QAAQ;YAClC,CAAC,CAAC,IAAI,CAAA,GAAG,IAAI,CAAC,YAAY,EAAE,EAAE;YAC9B,CAAC,CAAC,OAAO;;;;YAIL,IAAI,CAAC,YAAY,KAAK,OAAO;YACjC,CAAC,CAAC,IAAI,CAAA,GAAG,IAAI,CAAC,YAAY,EAAE,EAAE;YAC9B,CAAC,CAAC,OAAO;;;;YAIL,IAAI,CAAC,OAAO;YAChB,CAAC,CAAC,IAAI,CAAA;8DACgD,YAAY;;qBAErD;YACb,CAAC,CAAC,OAAO;;;KAGZ,CAAC;IACJ,CAAC;;AA3JQ,eAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAMvB;IADH,QAAQ,EAAE;sCACM;AAMb;IADH,QAAQ,EAAE;qCACM;AAab;IADH,QAAQ,EAAE;wCAC0C;AAOjD;IADH,QAAQ,EAAE;0CACW;AAQlB;IADH,QAAQ,EAAE;qCACM;AAMb;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDACO;AAM9B;IADH,QAAQ,EAAE;mDACoB;AAQ3B;IADH,QAAQ,EAAE;8CACuC;AAM9C;IADH,QAAQ,EAAE;yCACmB;AAM1B;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;yCACN;AAMlB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;6CACF;AAQtB;IADH,QAAQ,EAAE;sCACY;AAMnB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CACL;AAkEzB,IAAI,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE,CAAC;IAChD,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC;AAQD,eAAe,QAAQ,CAAC","sourcesContent":["import svgArrowLeft from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Filled/Arrow_-_Left.svg?raw';\nimport {\n html, nothing,\n} from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit-html/directives/if-defined.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './link.styles.js';\n\n/**\n * Link Component are strictly used in the case where the component will take\n * the user away from the current page to a new url.\n * In this vein, this component should ONLY be used in situations an anchor tag would be used (an href is required)\n * This goes for the variations as well such as the Call To Action Link\n *\n * **Note**\n *\n * For link with icon:\n * - **iconRotateDegree** & **iconFlipDirection** props are optional.\n * - They are used to set up the correct direction for icons, for example,\n * arrows, caret up or caret down.\n *\n*/\n\nexport class Cre8Link extends Cre8Element {\n static styles = [styles];\n\n /**\n * Href attribute of the anchor tag\n */\n @property()\n href: string;\n\n /**\n * Rel attribute of the anchor tag\n */\n @property()\n rel?: string;\n\n /**\n * Target attribute for a link (i.e. set to _blank to open in new tab)\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 * DEPRECATED: Icon name, use svg instead\n * @deprecated\n */\n @property()\n iconName?: string;\n\n /**\n * svg as a raw string\n * - For links with icon, the icon is defined by this prop.\n * - Pass in a raw svg as a String for using <cre8-icon>\n */\n @property()\n svg?: string;\n\n /**\n * iconRotateDegree 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 * iconFlipDirection is used for <cre8-icon> to set the icon in the correct direction\n */\n @property()\n iconFlipDirection?: string;\n\n /**\n * Icon position\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 * Call To Action Icon\n */\n @property()\n ctaIcon = 'arrow-forward';\n\n /**\n * Call To Action Link\n */\n @property({ type: Boolean })\n ctaLink?: boolean;\n\n /**\n * Link with no underline\n */\n @property({ type: Boolean })\n noUnderline?: boolean;\n\n /**\n * Size variant (default is medium)\n * - **sm** shrinks the link typography and overall size\n * - **lg** increases the link typography size and overall size\n */\n @property()\n size?: 'sm' | 'lg';\n\n /**\n * Inverted colors Link (onDark)\n */\n @property({ type: Boolean })\n inverted?: boolean;\n\n private generateIcon() {\n if (this.iconName) {\n return html`\n <div class=\"cre8-c-link__icon-wrapper\">\n <cre8-icon-legacy\n class=\"cre8-c-link__icon ${this.iconPosition}\"\n aria-hidden=\"true\"\n name=\"${ifDefined(this.iconName)}\">\n </cre8-icon-legacy>\n </div>`;\n }\n\n if (this.svg) {\n return html`\n <div class=\"cre8-c-link__icon-wrapper\">\n <cre8-icon\n class=\"cre8-c-link__icon ${this.iconPosition}\"\n aria-hidden=\"true\"\n svg='${this.svg}' rotate=\"${Number(this.iconRotateDegree)}\" flip=\"${this.iconFlipDirection}\">\n </cre8-icon>\n </div>`;\n } return nothing;\n }\n\n render() {\n const componentClassNames = this.componentClassNames('cre8-c-link', {\n 'cre8-c-link--inverted': this.inverted,\n 'cre8-c-link--sm': this.size === 'sm',\n 'cre8-c-link--lg': this.size === 'lg',\n 'cre8-c-link__no-underline': this.noUnderline,\n });\n\n return html`\n <a\n class=\"${componentClassNames}\"\n href=\"${ifDefined(this.href)}\"\n rel=\"${ifDefined(this.rel)}\"\n target=\"${ifDefined(this.target)}\"\n >\n <div class=\"cre8-c-link__text-area\">\n ${this.iconPosition === 'before'\n ? html`${this.generateIcon()}`\n : nothing}\n <span class=\"cre8-c-link__text\">\n <slot></slot>\n </span>\n ${this.iconPosition === 'after'\n ? html`${this.generateIcon()}`\n : nothing}\n </div>\n <div class=\"cre8-c-link__variation\">\n <slot name=\"badge\"></slot>\n ${this.ctaLink\n ? html`<div class=\"cre8-c-link__cta-wrapper\">\n <cre8-icon class=\"cre8-c-link__action\" svg='${svgArrowLeft}' \n rotate=\"180\" aria-hidden=\"true\"></cre8-icon>\n </div>`\n : nothing}\n </div>\n </a>\n `;\n }\n}\n\nif (customElements.get('cre8-link') === undefined) {\n customElements.define('cre8-link', Cre8Link);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-link': Cre8Link;\n }\n}\n\nexport default Cre8Link;\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}.cre8-c-link{display:inline-flex;text-decoration:none;height:100%;color:var(--cre8-color-content-link)}.cre8-c-link:hover .cre8-c-link__text,.cre8-c-link:hover .cre8-c-link__text-area{color:var(--cre8-color-content-link-hover);border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent)}.cre8-c-link:focus{outline:none}.cre8-c-link:focus .cre8-c-link__text,.cre8-c-link:focus .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-active);color:var(--cre8-color-content-link-focus)}.cre8-c-link:focus .cre8-c-link__cta-wrapper{color:var(--cre8-color-content-link-focus);outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem;background-color:var(--cre8-color-button-primary-bg-hover);border:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--color-border-active-outline)}.cre8-c-link:active .cre8-c-link__text,.cre8-c-link:active .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent);color:var(--cre8-color-content-link-active)}.cre8-c-link__text-area{display:inline-flex;justify-content:center;text-align:center;align-items:center}.cre8-c-link__text{font-family:var(--cre8-typography-body-default-link-font-family);font-size:var(--cre8-typography-body-default-link-font-size);font-weight:var(--cre8-typography-body-default-link-font-weight);line-height:var(--cre8-typography-body-default-link-line-height);text-decoration:var(--cre8-typography-body-default-link-text-decoration);text-transform:var(--cre8-typography-body-default-link-text-transform);color:var(--cre8-color-content-link);display:inline-flex}.cre8-c-link--sm .cre8-c-link__text{font-family:var(--cre8-typography-body-small-link-font-family);font-size:var(--cre8-typography-body-small-link-font-size);font-weight:var(--cre8-typography-body-small-link-font-weight);line-height:var(--cre8-typography-body-small-link-line-height);text-decoration:var(--cre8-typography-body-small-link-text-decoration);text-transform:var(--cre8-typography-body-small-link-text-transform)}.cre8-c-link--lg .cre8-c-link__text{font-family:var(--cre8-typography-body-large-link-font-family);font-size:var(--cre8-typography-body-large-link-font-size);font-weight:var(--cre8-typography-body-large-link-font-weight);line-height:var(--cre8-typography-body-large-link-line-height);text-decoration:var(--cre8-typography-body-large-link-text-decoration);text-transform:var(--cre8-typography-body-large-link-text-transform)}.cre8-c-link__no-underline .cre8-c-link__text{text-decoration:none}.cre8-c-link__icon-wrapper{display:inline-flex}.cre8-c-link__icon{display:inline-flex;height:1.5rem;width:1.5rem}.cre8-c-link--sm .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-small);--cre8-icon-width: var(--cre8-icon-size-small);height:1.375rem;width:1.375rem}.cre8-c-link--lg .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-large);--cre8-icon-width: var(--cre8-icon-size-large);height:1.625rem;width:1.625rem}.cre8-c-link__variation{display:inline-flex;justify-content:center;align-items:center}.cre8-c-link__cta-wrapper{color:var(--cre8-color-button-primary-content);display:inline-flex;margin-left:0.5rem;padding:var(--cre8-spacing-4);background-color:var(--cre8-color-content-link);border-radius:var(--cre8-border-radius-round);border-width:var(--cre8-border-width-button-default)}.cre8-c-link__cta-wrapper svg{height:1rem;width:1rem}.cre8-c-link__icon.before{padding-right:0.5rem}.cre8-c-link__icon.after{padding-left:0.5rem}::slotted([slot=badge]){padding-left:0.5rem}.cre8-c-link--inverted .cre8-c-link__text{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__icon{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__cta-wrapper{--cre8-icon-fill: var(--cre8-color-content-brand);color:var(--cre8-color-content-brand);background-color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted:hover .cre8-c-link__text,.cre8-c-link--inverted:hover .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:hover .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:active .cre8-c-link__text,.cre8-c-link--inverted:active .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:active .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:focus{outline:none}.cre8-c-link--inverted:focus .cre8-c-link__icon{background-color:var(--cre8-color-bg-inverse-active);fill:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__text,.cre8-c-link--inverted:focus .cre8-c-link__text-area{background-color:var(--cre8-color-bg-inverse-active);color:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__cta-wrapper{background-color:var(--cre8-color-content-inverse-link);color:var(--cre8-color-content-inverse-link-focus);outline:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-content-inverse-link);outline-offset:0.125rem}cre8-icon{display:flex;align-items:center}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=link.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.styles.js","sourceRoot":"","sources":["../../../components/link/link.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,48NAA48N,CAAC;AAC/9N,eAAe,MAAM,CAAC","sourcesContent":["import { css } from 'lit';\nconst 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}.cre8-c-link{display:inline-flex;text-decoration:none;height:100%;color:var(--cre8-color-content-link)}.cre8-c-link:hover .cre8-c-link__text,.cre8-c-link:hover .cre8-c-link__text-area{color:var(--cre8-color-content-link-hover);border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent)}.cre8-c-link:focus{outline:none}.cre8-c-link:focus .cre8-c-link__text,.cre8-c-link:focus .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-active);color:var(--cre8-color-content-link-focus)}.cre8-c-link:focus .cre8-c-link__cta-wrapper{color:var(--cre8-color-content-link-focus);outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem;background-color:var(--cre8-color-button-primary-bg-hover);border:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--color-border-active-outline)}.cre8-c-link:active .cre8-c-link__text,.cre8-c-link:active .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent);color:var(--cre8-color-content-link-active)}.cre8-c-link__text-area{display:inline-flex;justify-content:center;text-align:center;align-items:center}.cre8-c-link__text{font-family:var(--cre8-typography-body-default-link-font-family);font-size:var(--cre8-typography-body-default-link-font-size);font-weight:var(--cre8-typography-body-default-link-font-weight);line-height:var(--cre8-typography-body-default-link-line-height);text-decoration:var(--cre8-typography-body-default-link-text-decoration);text-transform:var(--cre8-typography-body-default-link-text-transform);color:var(--cre8-color-content-link);display:inline-flex}.cre8-c-link--sm .cre8-c-link__text{font-family:var(--cre8-typography-body-small-link-font-family);font-size:var(--cre8-typography-body-small-link-font-size);font-weight:var(--cre8-typography-body-small-link-font-weight);line-height:var(--cre8-typography-body-small-link-line-height);text-decoration:var(--cre8-typography-body-small-link-text-decoration);text-transform:var(--cre8-typography-body-small-link-text-transform)}.cre8-c-link--lg .cre8-c-link__text{font-family:var(--cre8-typography-body-large-link-font-family);font-size:var(--cre8-typography-body-large-link-font-size);font-weight:var(--cre8-typography-body-large-link-font-weight);line-height:var(--cre8-typography-body-large-link-line-height);text-decoration:var(--cre8-typography-body-large-link-text-decoration);text-transform:var(--cre8-typography-body-large-link-text-transform)}.cre8-c-link__no-underline .cre8-c-link__text{text-decoration:none}.cre8-c-link__icon-wrapper{display:inline-flex}.cre8-c-link__icon{display:inline-flex;height:1.5rem;width:1.5rem}.cre8-c-link--sm .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-small);--cre8-icon-width: var(--cre8-icon-size-small);height:1.375rem;width:1.375rem}.cre8-c-link--lg .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-large);--cre8-icon-width: var(--cre8-icon-size-large);height:1.625rem;width:1.625rem}.cre8-c-link__variation{display:inline-flex;justify-content:center;align-items:center}.cre8-c-link__cta-wrapper{color:var(--cre8-color-button-primary-content);display:inline-flex;margin-left:0.5rem;padding:var(--cre8-spacing-4);background-color:var(--cre8-color-content-link);border-radius:var(--cre8-border-radius-round);border-width:var(--cre8-border-width-button-default)}.cre8-c-link__cta-wrapper svg{height:1rem;width:1rem}.cre8-c-link__icon.before{padding-right:0.5rem}.cre8-c-link__icon.after{padding-left:0.5rem}::slotted([slot=badge]){padding-left:0.5rem}.cre8-c-link--inverted .cre8-c-link__text{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__icon{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__cta-wrapper{--cre8-icon-fill: var(--cre8-color-content-brand);color:var(--cre8-color-content-brand);background-color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted:hover .cre8-c-link__text,.cre8-c-link--inverted:hover .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:hover .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:active .cre8-c-link__text,.cre8-c-link--inverted:active .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:active .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:focus{outline:none}.cre8-c-link--inverted:focus .cre8-c-link__icon{background-color:var(--cre8-color-bg-inverse-active);fill:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__text,.cre8-c-link--inverted:focus .cre8-c-link__text-area{background-color:var(--cre8-color-bg-inverse-active);color:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__cta-wrapper{background-color:var(--cre8-color-content-inverse-link);color:var(--cre8-color-content-inverse-link-focus);outline:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-content-inverse-link);outline-offset:0.125rem}cre8-icon{display:flex;align-items:center}`;\nexport default styles;\n"]}
|
|
@@ -1,49 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var t = void 0, l = s.length - 1, c; l >= 0; l--)
|
|
7
|
-
(c = s[l]) && (t = c(a, n, t) || t);
|
|
8
|
-
return t && f(a, n, t), t;
|
|
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;
|
|
9
6
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
import { html, } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import { Cre8Element } from '../cre8-element';
|
|
10
|
+
import styles from './link-list.styles.js';
|
|
11
|
+
/**
|
|
12
|
+
* @slot - The link list items
|
|
13
|
+
*/
|
|
14
|
+
export class Cre8LinkList extends Cre8Element {
|
|
15
|
+
render() {
|
|
16
|
+
const componentClassName = this.componentClassNames('cre8-c-link-list', {
|
|
17
|
+
'cre8-c-link-list--secondary': this.variant === 'secondary',
|
|
18
|
+
'cre8-c-link-list--display': this.variant === 'display',
|
|
19
|
+
'cre8-c-link-list--inverted': this.inverted === true,
|
|
20
|
+
'cre8-c-link-list--responsive': this.behavior === 'responsive',
|
|
21
|
+
'cre8-c-link-list--horizontal': this.behavior === 'horizontal',
|
|
22
|
+
'cre8-c-link-list--condensed': this.spacing === 'condensed',
|
|
23
|
+
'cre8-c-link-list--sm': this.size === 'sm',
|
|
24
|
+
});
|
|
25
|
+
return html `
|
|
26
|
+
<ul class="${componentClassName}">
|
|
23
27
|
<slot></slot>
|
|
24
28
|
</ul>
|
|
25
29
|
`;
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
customElements.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
Cre8LinkList.styles = [styles];
|
|
33
|
+
__decorate([
|
|
34
|
+
property()
|
|
35
|
+
], Cre8LinkList.prototype, "behavior", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
property({ type: Boolean, reflect: true })
|
|
38
|
+
], Cre8LinkList.prototype, "inverted", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
property()
|
|
41
|
+
], Cre8LinkList.prototype, "size", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
property()
|
|
44
|
+
], Cre8LinkList.prototype, "spacing", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
property()
|
|
47
|
+
], Cre8LinkList.prototype, "variant", void 0);
|
|
48
|
+
if (customElements.get('cre8-link-list') === undefined) {
|
|
49
|
+
customElements.define('cre8-link-list', Cre8LinkList);
|
|
50
|
+
}
|
|
51
|
+
export default Cre8LinkList;
|
|
52
|
+
//# sourceMappingURL=link-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-list.js","sourceRoot":"","sources":["../../../components/link-list/link-list.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAwC3C,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,EAAE;YACpE,6BAA6B,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;YAC3D,2BAA2B,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;YACvD,4BAA4B,EAAE,IAAI,CAAC,QAAQ,KAAK,IAAI;YACpD,8BAA8B,EAAE,IAAI,CAAC,QAAQ,KAAK,YAAY;YAC9D,8BAA8B,EAAE,IAAI,CAAC,QAAQ,KAAK,YAAY;YAC9D,6BAA6B,EAAE,IAAI,CAAC,OAAO,KAAK,WAAW;YAC3D,sBAAsB,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI;SAC7C,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;mBACE,kBAAkB;;;KAGhC,CAAC;IACJ,CAAC;;AAvDQ,mBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAQvB;IADH,QAAQ,EAAE;8CACgC;AAOvC;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CACpB;AAOnB;IADH,QAAQ,EAAE;0CACK;AAOZ;IADH,QAAQ,EAAE;6CACe;AAQtB;IADH,QAAQ,EAAE;6CAC2B;AAqBxC,IAAI,cAAc,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,SAAS,EAAE,CAAC;IACrD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AAC1D,CAAC;AAQD,eAAe,YAAY,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './link-list.styles.js';\n\n/**\n * @slot - The link list items\n */\nexport class Cre8LinkList extends Cre8Element {\n static styles = [styles];\n\n /**\n * Behavioral variant\n * - **responsive** renders a horizontal wrapping link list that converts to a stacked link list on large screens\n * - **horizontal** renders a horizontal wrapping link list on all screens\n */\n @property()\n behavior?: 'responsive' | 'horizontal';\n\n /**\n * Inverted variant\n * 1. Used for dark backgrounds\n */\n @property({ type: Boolean, reflect: true })\n inverted?: boolean;\n\n /**\n * Size variants\n * - **sm** renders a link list with a smaller typography\n */\n @property()\n size?: 'sm';\n\n /**\n * Spacing between link list items\n * - **condensed** renders a link list with a more compact display\n */\n @property()\n spacing?: 'condensed';\n\n /**\n * Style variants\n * - **secondary** renders a link list with a more subtle visual treatment\n * - **display** renders a link list with a display treatment (e.g. article title)\n */\n @property()\n variant?: 'secondary' | 'display';\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-link-list', {\n 'cre8-c-link-list--secondary': this.variant === 'secondary',\n 'cre8-c-link-list--display': this.variant === 'display',\n 'cre8-c-link-list--inverted': this.inverted === true,\n 'cre8-c-link-list--responsive': this.behavior === 'responsive',\n 'cre8-c-link-list--horizontal': this.behavior === 'horizontal',\n 'cre8-c-link-list--condensed': this.spacing === 'condensed',\n 'cre8-c-link-list--sm': this.size === 'sm',\n });\n\n return html`\n <ul class=\"${componentClassName}\">\n <slot></slot>\n </ul>\n `;\n }\n}\n\nif (customElements.get('cre8-link-list') === undefined) {\n customElements.define('cre8-link-list', Cre8LinkList);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-link-list': Cre8LinkList;\n }\n}\n\nexport default Cre8LinkList;\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}.cre8-c-link-list{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);display:flex;flex-direction:column;padding:0;margin-top:-1rem;list-style:none}.cre8-c-link-list ::slotted(cre8-link-list-item){margin-top:1rem}.cre8-c-link-list--secondary{--cre8-link-list-item-active-text-color: var(--cre8-color-content-default);color:var(--cre8-color-content-subtle)}.cre8-c-link-list--inverted{--cre8-link-list-link-color: var(--cre8-color-content-knockout)}.cre8-c-link-list--display{color:var(--cre8-color-content-strong)}.cre8-c-link-list--condensed{margin-top:-0.625rem}.cre8-c-link-list--condensed ::slotted(cre8-link-list-item){margin-top:0.625rem}.cre8-c-link-list--sm{font-family:var(--cre8-typography-body-small-font-family);font-size:var(--cre8-typography-body-small-font-size);font-weight:var(--cre8-typography-body-small-font-weight);line-height:var(--cre8-typography-body-small-line-height);text-decoration:var(--cre8-typography-body-small-text-decoration);text-transform:var(--cre8-typography-body-small-text-transform)}.cre8-c-link-list--horizontal{flex-direction:row;flex-wrap:wrap;margin:-0.5rem 0 0 -1rem}.cre8-c-link-list--horizontal ::slotted(cre8-link-list-item){margin-top:0.5rem;margin-left:1rem}@media all and (max-width: 768px){.cre8-c-link-list--responsive{flex-direction:row;flex-wrap:wrap;margin:-0.5rem 0 0 -1rem}.cre8-c-link-list--responsive ::slotted(cre8-link-list-item){margin-top:0.5rem;margin-left:1rem}}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=link-list.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-list.styles.js","sourceRoot":"","sources":["../../../components/link-list/link-list.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,69GAA69G,CAAC;AACh/G,eAAe,MAAM,CAAC","sourcesContent":["import { css } from 'lit';\nconst 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}.cre8-c-link-list{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);display:flex;flex-direction:column;padding:0;margin-top:-1rem;list-style:none}.cre8-c-link-list ::slotted(cre8-link-list-item){margin-top:1rem}.cre8-c-link-list--secondary{--cre8-link-list-item-active-text-color: var(--cre8-color-content-default);color:var(--cre8-color-content-subtle)}.cre8-c-link-list--inverted{--cre8-link-list-link-color: var(--cre8-color-content-knockout)}.cre8-c-link-list--display{color:var(--cre8-color-content-strong)}.cre8-c-link-list--condensed{margin-top:-0.625rem}.cre8-c-link-list--condensed ::slotted(cre8-link-list-item){margin-top:0.625rem}.cre8-c-link-list--sm{font-family:var(--cre8-typography-body-small-font-family);font-size:var(--cre8-typography-body-small-font-size);font-weight:var(--cre8-typography-body-small-font-weight);line-height:var(--cre8-typography-body-small-line-height);text-decoration:var(--cre8-typography-body-small-text-decoration);text-transform:var(--cre8-typography-body-small-text-transform)}.cre8-c-link-list--horizontal{flex-direction:row;flex-wrap:wrap;margin:-0.5rem 0 0 -1rem}.cre8-c-link-list--horizontal ::slotted(cre8-link-list-item){margin-top:0.5rem;margin-left:1rem}@media all and (max-width: 768px){.cre8-c-link-list--responsive{flex-direction:row;flex-wrap:wrap;margin:-0.5rem 0 0 -1rem}.cre8-c-link-list--responsive ::slotted(cre8-link-list-item){margin-top:0.5rem;margin-left:1rem}}`;\nexport default styles;\n"]}
|