@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,49 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var e = void 0, d = l.length - 1, s; d >= 0; d--)
|
|
7
|
-
(s = l[d]) && (e = s(r, n, e) || e);
|
|
8
|
-
return e && h(r, n, e), e;
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
import { html, } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import { Cre8Element } from '../cre8-element';
|
|
10
|
+
import styles from './grid.styles.js';
|
|
11
|
+
/**
|
|
12
|
+
* @slot - The grid items
|
|
13
|
+
*/
|
|
14
|
+
export class Cre8Grid extends Cre8Element {
|
|
15
|
+
render() {
|
|
16
|
+
const componentClassName = this.componentClassNames('cre8-c-grid', {
|
|
17
|
+
'cre8-c-grid--side-by-side': this.variant === 'side-by-side',
|
|
18
|
+
'cre8-c-grid--2up': this.variant === '2up',
|
|
19
|
+
'cre8-c-grid--3up': this.variant === '3up',
|
|
20
|
+
'cre8-c-grid--1-3up': this.variant === '1-3up',
|
|
21
|
+
'cre8-c-grid--4up': this.variant === '4up',
|
|
22
|
+
'cre8-c-grid--1-4up': this.variant === '1-4up',
|
|
23
|
+
'cre8-c-grid--1-2-4up': this.variant === '1-2-4up',
|
|
24
|
+
'cre8-c-grid--2-4-6up': this.variant === '2-4-6up',
|
|
25
|
+
'cre8-c-grid--gap-none': this.gap === 'none',
|
|
26
|
+
'cre8-c-grid--gap-sm': this.gap === 'sm',
|
|
27
|
+
'cre8-c-grid--gap-lg': this.gap === 'lg',
|
|
28
|
+
'cre8-c-grid--break-faster': this.break === 'faster',
|
|
29
|
+
'cre8-c-grid--break-slower': this.break === 'slower',
|
|
30
|
+
});
|
|
31
|
+
return html `
|
|
32
|
+
<div class="${componentClassName}">
|
|
29
33
|
<slot></slot>
|
|
30
34
|
</div>
|
|
31
35
|
`;
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
customElements.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
Cre8Grid.styles = [styles];
|
|
39
|
+
__decorate([
|
|
40
|
+
property()
|
|
41
|
+
], Cre8Grid.prototype, "variant", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
property()
|
|
44
|
+
], Cre8Grid.prototype, "gap", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
property()
|
|
47
|
+
], Cre8Grid.prototype, "break", void 0);
|
|
48
|
+
if (customElements.get('cre8-grid') === undefined) {
|
|
49
|
+
customElements.define('cre8-grid', Cre8Grid);
|
|
50
|
+
}
|
|
51
|
+
export default Cre8Grid;
|
|
52
|
+
//# sourceMappingURL=grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.js","sourceRoot":"","sources":["../../../components/grid/grid.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,kBAAkB,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IA2CvC,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,aAAa,EAAE;YAC/D,2BAA2B,EAAE,IAAI,CAAC,OAAO,KAAK,cAAc;YAC5D,kBAAkB,EAAE,IAAI,CAAC,OAAO,KAAK,KAAK;YAC1C,kBAAkB,EAAE,IAAI,CAAC,OAAO,KAAK,KAAK;YAC1C,oBAAoB,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;YAC9C,kBAAkB,EAAE,IAAI,CAAC,OAAO,KAAK,KAAK;YAC1C,oBAAoB,EAAE,IAAI,CAAC,OAAO,KAAK,OAAO;YAC9C,sBAAsB,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;YAClD,sBAAsB,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS;YAClD,uBAAuB,EAAE,IAAI,CAAC,GAAG,KAAK,MAAM;YAC5C,qBAAqB,EAAE,IAAI,CAAC,GAAG,KAAK,IAAI;YACxC,qBAAqB,EAAE,IAAI,CAAC,GAAG,KAAK,IAAI;YACxC,2BAA2B,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;YACpD,2BAA2B,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;SACvD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;oBACG,kBAAkB;;;KAGjC,CAAC;IACJ,CAAC;;AAhEQ,eAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAoBvB;IADH,QAAQ,EAAE;yCACsF;AAS7F;IADH,QAAQ,EAAE;qCACoB;AAW3B;IADH,QAAQ,EAAE;uCACqB;AA2BlC,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 { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './grid.styles.js';\n\n/**\n * @slot - The grid items\n */\nexport class Cre8Grid extends Cre8Element {\n static styles = [styles];\n\n /**\n * Style variant\n * - **side-by-side** yields a grid whose grid items display side-by-side (2 per row) on all screen sizes\n * - **2up** yields a grid whose grid items are stacked on small screens\n * but display side-by-side when enough screen real estate is available to do so\n * - **3up** yields a grid whose grid items are stacked on small screens,\n * transforms to a 2-across pattern and then transforms again to a 3-across pattern\n * - **1-3up** yields a grid whose grid items are stacked on small screens\n * and transforms to a 3-across pattern on larger screens\n * - **4up** yields a grid whose grid items are stacked on small screens,\n * transforms to a 2-across pattern, transforms again to a 3-across pattern,\n * and ultimately transforms to a 4-across pattern\n * - **1-2-4up** yields a grid whose grid items are stacked on small screens,\n * transforms to a 2-across pattern, and ultimately transforms to a 4-across pattern\n * - **1-4up** yields a grid whose grid items are stacked on small screens,\n * transforms to a 4-across pattern on medium/large screens\n */\n @property()\n variant?: 'side-by-side' | '2up' | '3up' | '1-3up' | '4up' | '1-4up' | '1-2-4up' | '2-4-6up';\n\n /**\n * Style variant\n * - **none** yields a grid whose grid items are spaced without any gutter in between\n * - **sm** yields a grid whose grid items are spaced with a gap smaller than the default\n * - **lg** yields a grid whose grid items are spaced with a gap larger than the default\n */\n @property()\n gap?: 'none' | 'sm' | 'lg';\n\n /**\n * Break variant\n * - **faster** breaks the grid at a smaller width than the default.\n * Example: 2up grid breaks to 2 per row at smaller width than default\n * - **slower** breaks the grid at a larger width than the default.\n * Example: 2up grid breaks to 2 per row at larger width than default\n * - **lg** yields a grid whose grid items are spaced with a gap larger than the default\n */\n @property()\n break?: 'faster' | 'slower';\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-grid', {\n 'cre8-c-grid--side-by-side': this.variant === 'side-by-side',\n 'cre8-c-grid--2up': this.variant === '2up',\n 'cre8-c-grid--3up': this.variant === '3up',\n 'cre8-c-grid--1-3up': this.variant === '1-3up',\n 'cre8-c-grid--4up': this.variant === '4up',\n 'cre8-c-grid--1-4up': this.variant === '1-4up',\n 'cre8-c-grid--1-2-4up': this.variant === '1-2-4up',\n 'cre8-c-grid--2-4-6up': this.variant === '2-4-6up',\n 'cre8-c-grid--gap-none': this.gap === 'none',\n 'cre8-c-grid--gap-sm': this.gap === 'sm',\n 'cre8-c-grid--gap-lg': this.gap === 'lg',\n 'cre8-c-grid--break-faster': this.break === 'faster',\n 'cre8-c-grid--break-slower': this.break === 'slower',\n });\n\n return html`\n <div class=\"${componentClassName}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-grid') === undefined) {\n customElements.define('cre8-grid', Cre8Grid);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-grid': Cre8Grid;\n }\n}\n\nexport default Cre8Grid;\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-grid{display:flex;flex-direction:column;flex-wrap:wrap;margin:-0.75rem}.cre8-c-grid--gap-none{margin:0}.cre8-c-grid--gap-sm{margin:-0.25rem}.cre8-c-grid--gap-lg{margin:-1rem}.cre8-c-grid--side-by-side{flex-direction:row}@media all and (min-width: 768px){.cre8-c-grid--2up{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--2up.cre8-c-grid--break-faster{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--2up.cre8-c-grid--break-slower{flex-direction:column}}@media all and (min-width: 1400px){.cre8-c-grid--2up.cre8-c-grid--break-slower{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--3up{flex-direction:row}}@media all and (min-width: 960px){.cre8-c-grid--1-3up{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--1-3up.cre8-c-grid--break-faster{flex-direction:row}}@media all and (min-width: 960px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower{flex-direction:column}}@media all and (min-width: 1200px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--1-2-4up{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--1-4up{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--4up{flex-direction:row}}.cre8-c-grid--2-4-6up{flex-direction:row}::slotted(cre8-grid-item){display:block;padding:0.75rem}.cre8-c-grid--gap-none>::slotted(cre8-grid-item){padding:0}.cre8-c-grid--gap-sm>::slotted(cre8-grid-item){padding:0.25rem}.cre8-c-grid--gap-lg>::slotted(cre8-grid-item){padding:1rem}.cre8-c-grid--side-by-side>::slotted(cre8-grid-item){width:50%}@media all and (min-width: 768px){.cre8-c-grid--2up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 560px){.cre8-c-grid--2up.cre8-c-grid--break-faster>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--2up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:100%}}@media all and (min-width: 1400px){.cre8-c-grid--2up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--3up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 960px){.cre8-c-grid--3up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 960px){.cre8-c-grid--1-3up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 768px){.cre8-c-grid--1-3up.cre8-c-grid--break-faster>::slotted(cre8-grid-item){width:33.33%}}@media all and (min-width: 960px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:100%}}@media all and (min-width: 1200px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:33.33%}}@media all and (min-width: 560px){.cre8-c-grid--1-2-4up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 960px){.cre8-c-grid--1-2-4up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 768px){.cre8-c-grid--1-4up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 560px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 960px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:25%}}.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:50%}@media all and (min-width: 960px){.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 1200px){.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:16.66%}}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=grid.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.styles.js","sourceRoot":"","sources":["../../../components/grid/grid.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,qqKAAqqK,CAAC;AACxrK,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-grid{display:flex;flex-direction:column;flex-wrap:wrap;margin:-0.75rem}.cre8-c-grid--gap-none{margin:0}.cre8-c-grid--gap-sm{margin:-0.25rem}.cre8-c-grid--gap-lg{margin:-1rem}.cre8-c-grid--side-by-side{flex-direction:row}@media all and (min-width: 768px){.cre8-c-grid--2up{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--2up.cre8-c-grid--break-faster{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--2up.cre8-c-grid--break-slower{flex-direction:column}}@media all and (min-width: 1400px){.cre8-c-grid--2up.cre8-c-grid--break-slower{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--3up{flex-direction:row}}@media all and (min-width: 960px){.cre8-c-grid--1-3up{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--1-3up.cre8-c-grid--break-faster{flex-direction:row}}@media all and (min-width: 960px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower{flex-direction:column}}@media all and (min-width: 1200px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--1-2-4up{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--1-4up{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--4up{flex-direction:row}}.cre8-c-grid--2-4-6up{flex-direction:row}::slotted(cre8-grid-item){display:block;padding:0.75rem}.cre8-c-grid--gap-none>::slotted(cre8-grid-item){padding:0}.cre8-c-grid--gap-sm>::slotted(cre8-grid-item){padding:0.25rem}.cre8-c-grid--gap-lg>::slotted(cre8-grid-item){padding:1rem}.cre8-c-grid--side-by-side>::slotted(cre8-grid-item){width:50%}@media all and (min-width: 768px){.cre8-c-grid--2up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 560px){.cre8-c-grid--2up.cre8-c-grid--break-faster>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--2up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:100%}}@media all and (min-width: 1400px){.cre8-c-grid--2up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--3up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 960px){.cre8-c-grid--3up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 960px){.cre8-c-grid--1-3up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 768px){.cre8-c-grid--1-3up.cre8-c-grid--break-faster>::slotted(cre8-grid-item){width:33.33%}}@media all and (min-width: 960px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:100%}}@media all and (min-width: 1200px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:33.33%}}@media all and (min-width: 560px){.cre8-c-grid--1-2-4up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 960px){.cre8-c-grid--1-2-4up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 768px){.cre8-c-grid--1-4up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 560px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 960px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:25%}}.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:50%}@media all and (min-width: 960px){.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 1200px){.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:16.66%}}`;\nexport default styles;\n"]}
|
|
@@ -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 './grid-item.styles.js';
|
|
4
|
+
/**
|
|
5
|
+
* @slot - The content of the grid item
|
|
6
|
+
*/
|
|
7
|
+
export class Cre8GridItem extends Cre8Element {
|
|
8
|
+
render() {
|
|
9
|
+
const componentClassName = this.componentClassNames('cre8-c-grid__item', {});
|
|
10
|
+
return html `
|
|
11
|
+
<div class="${componentClassName}">
|
|
8
12
|
<slot></slot>
|
|
9
13
|
</div>
|
|
10
14
|
`;
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
customElements.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
Cre8GridItem.styles = [styles];
|
|
18
|
+
if (customElements.get('cre8-grid-item') === undefined) {
|
|
19
|
+
customElements.define('cre8-grid-item', Cre8GridItem);
|
|
20
|
+
}
|
|
21
|
+
export default Cre8GridItem;
|
|
22
|
+
//# sourceMappingURL=grid-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-item.js","sourceRoot":"","sources":["../../../components/grid-item/grid-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAGzC,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;QAE7E,OAAO,IAAI,CAAA;oBACC,kBAAkB;;;KAGjC,CAAC;IACF,CAAC;;AAVM,mBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAa7B,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 { Cre8Element } from '../cre8-element';\nimport styles from './grid-item.styles.js';\n\n/**\n * @slot - The content of the grid item\n */\nexport class Cre8GridItem extends Cre8Element {\n static styles = [styles];\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-grid__item', {});\n\n return html`\n <div class=\"${componentClassName}\">\n <slot></slot>\n </div>\n `;\n }\n}\n\nif (customElements.get('cre8-grid-item') === undefined) {\n customElements.define('cre8-grid-item', Cre8GridItem);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-grid-item': Cre8GridItem;\n }\n}\n\nexport default Cre8GridItem;\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-grid__item{height:100%}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=grid-item.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-item.styles.js","sourceRoot":"","sources":["../../../components/grid-item/grid-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,yyDAAyyD,CAAC;AAC5zD,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-grid__item{height:100%}`;\nexport default styles;\n"]}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var e = void 0, a = o.length - 1, c; a >= 0; a--)
|
|
7
|
-
(c = o[a]) && (e = c(t, s, e) || e);
|
|
8
|
-
return e && p(t, s, e), e;
|
|
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
|
-
|
|
7
|
+
import { html, } from 'lit';
|
|
8
|
+
import { state } from 'lit/decorators.js';
|
|
9
|
+
import { Cre8Element } from '../cre8-element';
|
|
10
|
+
import styles from './header.styles.js';
|
|
11
|
+
/**
|
|
12
|
+
* @slot - The header content
|
|
13
|
+
*/
|
|
14
|
+
export class Cre8Header extends Cre8Element {
|
|
15
|
+
render() {
|
|
16
|
+
const componentClassName = this.componentClassNames('cre8-c-header', {
|
|
17
|
+
'cre8-is-active': this.isActive === true,
|
|
18
|
+
});
|
|
19
|
+
return html `
|
|
20
|
+
<header class="${componentClassName}">
|
|
21
|
+
${this.slotNotEmpty('top')
|
|
22
|
+
&& html `<div class="cre8-c-header__top">
|
|
18
23
|
<cre8-layout-container>
|
|
19
24
|
<div class="cre8-c-header__top-inner">
|
|
20
25
|
<slot name="top"></slot>
|
|
@@ -28,22 +33,22 @@ const d = class d extends h {
|
|
|
28
33
|
</div>
|
|
29
34
|
</cre8-layout-container>
|
|
30
35
|
</div>
|
|
31
|
-
${this.slotNotEmpty(
|
|
36
|
+
${this.slotNotEmpty('bottom')
|
|
37
|
+
&& html `<div class="cre8-c-header__bottom">
|
|
32
38
|
<cre8-layout-container>
|
|
33
39
|
<slot name="bottom"></slot>
|
|
34
40
|
</cre8-layout-container>
|
|
35
41
|
</div>`}
|
|
36
42
|
</header>
|
|
37
43
|
`;
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
customElements.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Cre8Header.styles = [styles];
|
|
47
|
+
__decorate([
|
|
48
|
+
state()
|
|
49
|
+
], Cre8Header.prototype, "isActive", void 0);
|
|
50
|
+
if (customElements.get('cre8-header') === undefined) {
|
|
51
|
+
customElements.define('cre8-header', Cre8Header);
|
|
52
|
+
}
|
|
53
|
+
export default Cre8Header;
|
|
54
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../components/header/header.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IAUzC,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE;YACjE,gBAAgB,EAAE,IAAI,CAAC,QAAQ,KAAK,IAAI;SAC3C,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;uBACM,kBAAkB;UAC/B,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;eACvB,IAAI,CAAA;;;;;;eAMA;;;;;;;;UAQL,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;eAC1B,IAAI,CAAA;;;;eAIA;;KAEV,CAAC;IACJ,CAAC;;AAvCQ,iBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAOvB;IADH,KAAK,EAAE;4CACe;AAmCzB,IAAI,cAAc,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,SAAS,EAAE,CAAC;IAClD,cAAc,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC;AAQD,eAAe,UAAU,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { state } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './header.styles.js';\n\n/**\n * @slot - The header content\n */\nexport class Cre8Header extends Cre8Element {\n static styles = [styles];\n\n /**\n * Is active state\n * 1) Set to true when small screen menu is open\n */\n @state()\n isActive?: boolean;\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-header', {\n 'cre8-is-active': this.isActive === true,\n });\n\n return html`\n <header class=\"${componentClassName}\">\n ${this.slotNotEmpty('top')\n && html`<div class=\"cre8-c-header__top\">\n <cre8-layout-container>\n <div class=\"cre8-c-header__top-inner\">\n <slot name=\"top\"></slot>\n </div>\n </cre8-layout-container>\n </div>`}\n <div class=\"cre8-c-header__middle\">\n <cre8-layout-container>\n <div class=\"cre8-c-header__middle-inner\">\n <slot></slot>\n </div>\n </cre8-layout-container>\n </div>\n ${this.slotNotEmpty('bottom')\n && html`<div class=\"cre8-c-header__bottom\">\n <cre8-layout-container>\n <slot name=\"bottom\"></slot>\n </cre8-layout-container>\n </div>`}\n </header>\n `;\n }\n}\n\nif (customElements.get('cre8-header') === undefined) {\n customElements.define('cre8-header', Cre8Header);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-header': Cre8Header;\n }\n}\n\nexport default Cre8Header;\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-header{background:var(--cre8-header-background, var(--cre8-color-header-bg-default));color:var(--cre8-color-content-default);position:relative;z-index:3}.cre8-c-header__top{position:relative;top:0;width:100%;z-index:3;background:var(--cre8-header-top-background)}.cre8-c-header__top-inner{display:flex;align-items:center;width:100%;overflow:auto}.cre8-c-header__middle{width:100%;box-shadow:var(--cre8-theme-box-shadow-md);border-bottom:var(--cre8-header-middle-border-bottom-color)}.cre8-c-header__middle-inner{display:flex;align-items:center;width:100%;padding-top:1rem;padding-bottom:1rem}.cre8-c-header__bottom{background:var(--cre8-header-bottom-background);box-shadow:var(--cre8-header-bottom-box-shadow)}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=header.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.styles.js","sourceRoot":"","sources":["../../../components/header/header.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,y9EAAy9E,CAAC;AAC5+E,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-header{background:var(--cre8-header-background, var(--cre8-color-header-bg-default));color:var(--cre8-color-content-default);position:relative;z-index:3}.cre8-c-header__top{position:relative;top:0;width:100%;z-index:3;background:var(--cre8-header-top-background)}.cre8-c-header__top-inner{display:flex;align-items:center;width:100%;overflow:auto}.cre8-c-header__middle{width:100%;box-shadow:var(--cre8-theme-box-shadow-md);border-bottom:var(--cre8-header-middle-border-bottom-color)}.cre8-c-header__middle-inner{display:flex;align-items:center;width:100%;padding-top:1rem;padding-bottom:1rem}.cre8-c-header__bottom{background:var(--cre8-header-bottom-background);box-shadow:var(--cre8-header-bottom-box-shadow)}`;\nexport default styles;\n"]}
|
|
@@ -1,78 +1,115 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const d = y`*,::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;text-align:left}.cre8-c-heading,.cre8-c-heading--title-large{font-family:var(--cre8-typography-title-large-mobile-font-family);font-size:var(--cre8-typography-title-large-mobile-font-size);font-weight:var(--cre8-typography-title-large-mobile-font-weight);line-height:var(--cre8-typography-title-large-mobile-line-height);text-decoration:var(--cre8-typography-title-large-mobile-text-decoration);text-transform:var(--cre8-typography-title-large-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading,.cre8-c-heading--title-large{font-family:var(--cre8-typography-title-large-font-family);font-size:var(--cre8-typography-title-large-font-size);font-weight:var(--cre8-typography-title-large-font-weight);line-height:var(--cre8-typography-title-large-line-height);text-decoration:var(--cre8-typography-title-large-text-decoration);text-transform:var(--cre8-typography-title-large-text-transform)}}.cre8-c-heading,.cre8-c-heading--title-large{margin:0;color:var(--cre8-color-content-default)}.cre8-c-heading--headline-large{font-family:var(--cre8-typography-headline-large-mobile-font-family);font-size:var(--cre8-typography-headline-large-mobile-font-size);font-weight:var(--cre8-typography-headline-large-mobile-font-weight);line-height:var(--cre8-typography-headline-large-mobile-line-height);text-decoration:var(--cre8-typography-headline-large-mobile-text-decoration);text-transform:var(--cre8-typography-headline-large-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--headline-large{font-family:var(--cre8-typography-headline-large-font-family);font-size:var(--cre8-typography-headline-large-font-size);font-weight:var(--cre8-typography-headline-large-font-weight);line-height:var(--cre8-typography-headline-large-line-height);text-decoration:var(--cre8-typography-headline-large-text-decoration);text-transform:var(--cre8-typography-headline-large-text-transform)}}.cre8-c-heading--headline-default{font-family:var(--cre8-typography-headline-default-mobile-font-family);font-size:var(--cre8-typography-headline-default-mobile-font-size);font-weight:var(--cre8-typography-headline-default-mobile-font-weight);line-height:var(--cre8-typography-headline-default-mobile-line-height);text-decoration:var(--cre8-typography-headline-default-mobile-text-decoration);text-transform:var(--cre8-typography-headline-default-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--headline-default{font-family:var(--cre8-typography-headline-default-font-family);font-size:var(--cre8-typography-headline-default-font-size);font-weight:var(--cre8-typography-headline-default-font-weight);line-height:var(--cre8-typography-headline-default-line-height);text-decoration:var(--cre8-typography-headline-default-text-decoration);text-transform:var(--cre8-typography-headline-default-text-transform)}}.cre8-c-heading--headline-small{font-family:var(--cre8-typography-headline-small-mobile-font-family);font-size:var(--cre8-typography-headline-small-mobile-font-size);font-weight:var(--cre8-typography-headline-small-mobile-font-weight);line-height:var(--cre8-typography-headline-small-mobile-line-height);text-decoration:var(--cre8-typography-headline-small-mobile-text-decoration);text-transform:var(--cre8-typography-headline-small-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--headline-small{font-family:var(--cre8-typography-headline-small-font-family);font-size:var(--cre8-typography-headline-small-font-size);font-weight:var(--cre8-typography-headline-small-font-weight);line-height:var(--cre8-typography-headline-small-line-height);text-decoration:var(--cre8-typography-headline-small-text-decoration);text-transform:var(--cre8-typography-headline-small-text-transform)}}.cre8-c-heading--title-xlarge{font-family:var(--cre8-typography-title-xlarge-mobile-font-family);font-size:var(--cre8-typography-title-xlarge-mobile-font-size);font-weight:var(--cre8-typography-title-xlarge-mobile-font-weight);line-height:var(--cre8-typography-title-xlarge-mobile-line-height);text-decoration:var(--cre8-typography-title-xlarge-mobile-text-decoration);text-transform:var(--cre8-typography-title-xlarge-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--title-xlarge{font-family:var(--cre8-typography-title-xlarge-font-family);font-size:var(--cre8-typography-title-xlarge-font-size);font-weight:var(--cre8-typography-title-xlarge-font-weight);line-height:var(--cre8-typography-title-xlarge-line-height);text-decoration:var(--cre8-typography-title-xlarge-text-decoration);text-transform:var(--cre8-typography-title-xlarge-text-transform)}}.cre8-c-heading--title-large{font-family:var(--cre8-typography-title-large-mobile-font-family);font-size:var(--cre8-typography-title-large-mobile-font-size);font-weight:var(--cre8-typography-title-large-mobile-font-weight);line-height:var(--cre8-typography-title-large-mobile-line-height);text-decoration:var(--cre8-typography-title-large-mobile-text-decoration);text-transform:var(--cre8-typography-title-large-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--title-large{font-family:var(--cre8-typography-title-large-font-family);font-size:var(--cre8-typography-title-large-font-size);font-weight:var(--cre8-typography-title-large-font-weight);line-height:var(--cre8-typography-title-large-line-height);text-decoration:var(--cre8-typography-title-large-text-decoration);text-transform:var(--cre8-typography-title-large-text-transform)}}.cre8-c-heading--title-default{font-family:var(--cre8-typography-title-default-mobile-font-family);font-size:var(--cre8-typography-title-default-mobile-font-size);font-weight:var(--cre8-typography-title-default-mobile-font-weight);line-height:var(--cre8-typography-title-default-mobile-line-height);text-decoration:var(--cre8-typography-title-default-mobile-text-decoration);text-transform:var(--cre8-typography-title-default-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--title-default{font-family:var(--cre8-typography-title-default-font-family);font-size:var(--cre8-typography-title-default-font-size);font-weight:var(--cre8-typography-title-default-font-weight);line-height:var(--cre8-typography-title-default-line-height);text-decoration:var(--cre8-typography-title-default-text-decoration);text-transform:var(--cre8-typography-title-default-text-transform)}}.cre8-c-heading--title-small{font-family:var(--cre8-typography-title-small-mobile-font-family);font-size:var(--cre8-typography-title-small-mobile-font-size);font-weight:var(--cre8-typography-title-small-mobile-font-weight);line-height:var(--cre8-typography-title-small-mobile-line-height);text-decoration:var(--cre8-typography-title-small-mobile-text-decoration);text-transform:var(--cre8-typography-title-small-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--title-small{font-family:var(--cre8-typography-title-small-font-family);font-size:var(--cre8-typography-title-small-font-size);font-weight:var(--cre8-typography-title-small-font-weight);line-height:var(--cre8-typography-title-small-line-height);text-decoration:var(--cre8-typography-title-small-text-decoration);text-transform:var(--cre8-typography-title-small-text-transform)}}.cre8-c-heading--display-small{font-family:var(--cre8-typography-display-small-mobile-font-family);font-size:var(--cre8-typography-display-small-mobile-font-size);font-weight:var(--cre8-typography-display-small-mobile-font-weight);line-height:var(--cre8-typography-display-small-mobile-line-height);text-decoration:var(--cre8-typography-display-small-mobile-text-decoration);text-transform:var(--cre8-typography-display-small-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--display-small{font-family:var(--cre8-typography-display-small-font-family);font-size:var(--cre8-typography-display-small-font-size);font-weight:var(--cre8-typography-display-small-font-weight);line-height:var(--cre8-typography-display-small-line-height);text-decoration:var(--cre8-typography-display-small-text-decoration);text-transform:var(--cre8-typography-display-small-text-transform)}}.cre8-c-heading--display-default{font-family:var(--cre8-typography-display-default-mobile-font-family);font-size:var(--cre8-typography-display-default-mobile-font-size);font-weight:var(--cre8-typography-display-default-mobile-font-weight);line-height:var(--cre8-typography-display-default-mobile-line-height);text-decoration:var(--cre8-typography-display-default-mobile-text-decoration);text-transform:var(--cre8-typography-display-default-mobile-text-transform)}@media all and (min-width: 768px){.cre8-c-heading--display-default{font-family:var(--cre8-typography-display-default-font-family);font-size:var(--cre8-typography-display-default-font-size);font-weight:var(--cre8-typography-display-default-font-weight);line-height:var(--cre8-typography-display-default-line-height);text-decoration:var(--cre8-typography-display-default-text-decoration);text-transform:var(--cre8-typography-display-default-text-transform)}}.cre8-c-heading--label-large{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)}.cre8-c-heading--label-default{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)}.cre8-c-heading--label-small{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)}.cre8-c-heading--meta-large{font-family:var(--cre8-typography-meta-large-font-family);font-size:var(--cre8-typography-meta-large-font-size);font-weight:var(--cre8-typography-meta-large-font-weight);line-height:var(--cre8-typography-meta-large-line-height);text-decoration:var(--cre8-typography-meta-large-text-decoration);text-transform:var(--cre8-typography-meta-large-text-transform);text-transform:uppercase}.cre8-c-heading--meta-default{font-family:var(--cre8-typography-meta-default-font-family);font-size:var(--cre8-typography-meta-default-font-size);font-weight:var(--cre8-typography-meta-default-font-weight);line-height:var(--cre8-typography-meta-default-line-height);text-decoration:var(--cre8-typography-meta-default-text-decoration);text-transform:var(--cre8-typography-meta-default-text-transform);text-transform:uppercase}.cre8-c-heading--meta-small{font-family:var(--cre8-typography-meta-small-font-family);font-size:var(--cre8-typography-meta-small-font-size);font-weight:var(--cre8-typography-meta-small-font-weight);line-height:var(--cre8-typography-meta-small-line-height);text-decoration:var(--cre8-typography-meta-small-text-decoration);text-transform:var(--cre8-typography-meta-small-text-transform);text-transform:uppercase}.cre8-c-heading--brand-color{color:var(--cre8-color-content-brand-strong)}.cre8-c-heading--brand-color.cre8-c-heading--inverted{color:var(--cre8-color-content-brand-knockout)}.cre8-c-heading--inverted{color:var(--cre8-color-content-knockout)}`;
|
|
5
|
-
|
|
6
|
-
for (var r = void 0, n = g.length - 1, p; n >= 0; n--)
|
|
7
|
-
(p = g[n]) && (r = p(l, e, r) || r);
|
|
8
|
-
return r && f(l, e, r), r;
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
case "h5":
|
|
52
|
-
return t` <h5 part="tag" class="${e}"><slot></slot></h5> `;
|
|
53
|
-
case "h6":
|
|
54
|
-
return t` <h6 part="tag" class="${e}"><slot></slot></h6> `;
|
|
55
|
-
default:
|
|
56
|
-
return t` <h4 part="tag" class="${e}"><slot></slot></h4> `;
|
|
7
|
+
import { html, } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import { Cre8Element } from '../cre8-element';
|
|
10
|
+
import styles from './heading.styles.js';
|
|
11
|
+
/**
|
|
12
|
+
* HTML headings are titles or subtitles that you want to display on a webpage. The H1 is the most important and H6
|
|
13
|
+
* is the least important in the content hierarchy.
|
|
14
|
+
*
|
|
15
|
+
* # How to Use
|
|
16
|
+
* 1. The cre8-heading tag wraps around one of the six native HTML "h" tags, depending on your chosen variation.
|
|
17
|
+
* 2. There are two main use cases for using this component:
|
|
18
|
+
* text passage headings and Components with a title (i.e. modal, card or alert)
|
|
19
|
+
* 3. There will be instances when the design requires the heading text to have the brand color applied
|
|
20
|
+
* in which case you should set the [brandColor](?path=/story/cre8-components-heading--brand-color)
|
|
21
|
+
* attribute to true on the cre8-heading tag.
|
|
22
|
+
* 4. For dark backgrounds, add the [inverted](?path=/story/cre8-components-heading--inverted)
|
|
23
|
+
* attribute to the tag for white text.
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* @slot - The heading text content
|
|
27
|
+
*/
|
|
28
|
+
export class Cre8Heading extends Cre8Element {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
/**
|
|
32
|
+
* Dynamic tag name for the component
|
|
33
|
+
* 1) This is needed to use proper semantic heading treatments depending on where the banner lives on the page
|
|
34
|
+
* <cre8-text-passage size="small">
|
|
35
|
+
* <ul>
|
|
36
|
+
* <li>**h1** renders an `h1` tag</li>
|
|
37
|
+
* <li>**h2** renders an `h2` tag. This is the default</li>
|
|
38
|
+
* <li>**h3** renders an `h3` tag</li>
|
|
39
|
+
* <li>**h4** renders an `h4` tag</li>
|
|
40
|
+
* <li>**h5** renders an `h5` tag</li>
|
|
41
|
+
* <li>**h6** renders an `h6` tag</li>
|
|
42
|
+
* </ul>
|
|
43
|
+
* </cre8-text-passage>
|
|
44
|
+
*
|
|
45
|
+
* @attr{string}
|
|
46
|
+
*/
|
|
47
|
+
this.tagVariant = 'h5';
|
|
57
48
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
49
|
+
render() {
|
|
50
|
+
const tagVariantClassNames = !this.type
|
|
51
|
+
? {
|
|
52
|
+
'cre8-c-heading--headline-large': this.tagVariant === 'h1',
|
|
53
|
+
'cre8-c-heading--headline-default': this.tagVariant === 'h2',
|
|
54
|
+
'cre8-c-heading--headline-small': this.tagVariant === 'h3',
|
|
55
|
+
'cre8-c-heading--title-large': this.tagVariant === 'h4',
|
|
56
|
+
'cre8-c-heading--title-default': this.tagVariant === 'h5',
|
|
57
|
+
'cre8-c-heading--title-small': this.tagVariant === 'h6',
|
|
58
|
+
}
|
|
59
|
+
: {};
|
|
60
|
+
const componentClassName = this.componentClassNames('cre8-c-heading', {
|
|
61
|
+
...tagVariantClassNames,
|
|
62
|
+
'cre8-c-heading--headline-large': this.type === 'headline-large',
|
|
63
|
+
'cre8-c-heading--headline-default': this.type === 'headline-default',
|
|
64
|
+
'cre8-c-heading--headline-small': this.type === 'headline-small',
|
|
65
|
+
'cre8-c-heading--title-large': this.type === 'title-large',
|
|
66
|
+
'cre8-c-heading--title-default': this.type === 'title-default',
|
|
67
|
+
'cre8-c-heading--title-small': this.type === 'title-small',
|
|
68
|
+
'cre8-c-heading--title-xlarge': this.type === 'title-xlarge',
|
|
69
|
+
'cre8-c-heading--display-default': this.type === 'display-default',
|
|
70
|
+
'cre8-c-heading--display-small': this.type === 'display-small',
|
|
71
|
+
'cre8-c-heading--label-large': this.type === 'label-large',
|
|
72
|
+
'cre8-c-heading--label-default': this.type === 'label-default',
|
|
73
|
+
'cre8-c-heading--label-small': this.type === 'label-small',
|
|
74
|
+
'cre8-c-heading--meta-large': this.type === 'meta-large',
|
|
75
|
+
'cre8-c-heading--meta-default': this.type === 'meta-default',
|
|
76
|
+
'cre8-c-heading--meta-small': this.type === 'meta-small',
|
|
77
|
+
'cre8-c-heading--brand-color': this.brandColor,
|
|
78
|
+
'cre8-c-heading--inverted': this.inverted,
|
|
79
|
+
});
|
|
80
|
+
switch (this.tagVariant) {
|
|
81
|
+
case 'h1':
|
|
82
|
+
return html ` <h1 part="tag" class="${componentClassName}"><slot></slot></h1> `;
|
|
83
|
+
case 'h2':
|
|
84
|
+
return html ` <h2 part="tag" class="${componentClassName}"><slot></slot></h2> `;
|
|
85
|
+
case 'h3':
|
|
86
|
+
return html ` <h3 part="tag" class="${componentClassName}"><slot></slot></h3> `;
|
|
87
|
+
case 'h4':
|
|
88
|
+
return html ` <h4 part="tag" class="${componentClassName}"><slot></slot></h4> `;
|
|
89
|
+
case 'h5':
|
|
90
|
+
return html ` <h5 part="tag" class="${componentClassName}"><slot></slot></h5> `;
|
|
91
|
+
case 'h6':
|
|
92
|
+
return html ` <h6 part="tag" class="${componentClassName}"><slot></slot></h6> `;
|
|
93
|
+
default:
|
|
94
|
+
return html ` <h4 part="tag" class="${componentClassName}"><slot></slot></h4> `;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
Cre8Heading.styles = [styles];
|
|
99
|
+
__decorate([
|
|
100
|
+
property()
|
|
101
|
+
], Cre8Heading.prototype, "type", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
property()
|
|
104
|
+
], Cre8Heading.prototype, "tagVariant", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
property({ type: Boolean, reflect: true })
|
|
107
|
+
], Cre8Heading.prototype, "inverted", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
property({ type: Boolean, reflect: true })
|
|
110
|
+
], Cre8Heading.prototype, "brandColor", void 0);
|
|
111
|
+
if (customElements.get('cre8-heading') === undefined) {
|
|
112
|
+
customElements.define('cre8-heading', Cre8Heading);
|
|
113
|
+
}
|
|
114
|
+
export default Cre8Heading;
|
|
115
|
+
//# sourceMappingURL=heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../components/heading/heading.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,qBAAqB,CAAC;AAErC;;;;;;;;;;;;;;;;GAgBG;AACP,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QA2CI;;;;;;;;;;;;;;;WAeG;QAEC,eAAU,GAA4C,IAAI,CAAC;IAoEnE,CAAC;IAlDG,MAAM;QACF,MAAM,oBAAoB,GAAG,CAAC,IAAI,CAAC,IAAI;YACnC,CAAC,CAAC;gBACE,gCAAgC,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI;gBAC1D,kCAAkC,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI;gBAC5D,gCAAgC,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI;gBAC1D,6BAA6B,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI;gBACvD,+BAA+B,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI;gBACzD,6BAA6B,EAAE,IAAI,CAAC,UAAU,KAAK,IAAI;aAC1D;YACD,CAAC,CAAC,EAAE,CAAC;QAET,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,EAAE;YAClE,GAAG,oBAAoB;YACvB,gCAAgC,EAAE,IAAI,CAAC,IAAI,KAAK,gBAAgB;YAChE,kCAAkC,EAAE,IAAI,CAAC,IAAI,KAAK,kBAAkB;YACpE,gCAAgC,EAAE,IAAI,CAAC,IAAI,KAAK,gBAAgB;YAChE,6BAA6B,EAAE,IAAI,CAAC,IAAI,KAAK,aAAa;YAC1D,+BAA+B,EAAE,IAAI,CAAC,IAAI,KAAK,eAAe;YAC9D,6BAA6B,EAAE,IAAI,CAAC,IAAI,KAAK,aAAa;YAC1D,8BAA8B,EAAE,IAAI,CAAC,IAAI,KAAK,cAAc;YAC5D,iCAAiC,EAAE,IAAI,CAAC,IAAI,KAAK,iBAAiB;YAClE,+BAA+B,EAAE,IAAI,CAAC,IAAI,KAAK,eAAe;YAC9D,6BAA6B,EAAE,IAAI,CAAC,IAAI,KAAK,aAAa;YAC1D,+BAA+B,EAAE,IAAI,CAAC,IAAI,KAAK,eAAe;YAC9D,6BAA6B,EAAE,IAAI,CAAC,IAAI,KAAK,aAAa;YAC1D,4BAA4B,EAAE,IAAI,CAAC,IAAI,KAAK,YAAY;YACxD,8BAA8B,EAAE,IAAI,CAAC,IAAI,KAAK,cAAc;YAC5D,4BAA4B,EAAE,IAAI,CAAC,IAAI,KAAK,YAAY;YACxD,6BAA6B,EAAE,IAAI,CAAC,UAAU;YAC9C,0BAA0B,EAAE,IAAI,CAAC,QAAQ;SAC5C,CAAC,CAAC;QAEH,QAAQ,IAAI,CAAC,UAAU,EAAE,CAAC;YACtB,KAAK,IAAI;gBACL,OAAO,IAAI,CAAA,0BAA0B,kBAAkB,uBAAuB,CAAC;YACnF,KAAK,IAAI;gBACL,OAAO,IAAI,CAAA,0BAA0B,kBAAkB,uBAAuB,CAAC;YACnF,KAAK,IAAI;gBACL,OAAO,IAAI,CAAA,0BAA0B,kBAAkB,uBAAuB,CAAC;YACnF,KAAK,IAAI;gBACL,OAAO,IAAI,CAAA,0BAA0B,kBAAkB,uBAAuB,CAAC;YACnF,KAAK,IAAI;gBACL,OAAO,IAAI,CAAA,0BAA0B,kBAAkB,uBAAuB,CAAC;YACnF,KAAK,IAAI;gBACL,OAAO,IAAI,CAAA,0BAA0B,kBAAkB,uBAAuB,CAAC;YACnF;gBACI,OAAO,IAAI,CAAA,0BAA0B,kBAAkB,uBAAuB,CAAC;QACvF,CAAC;IACL,CAAC;;AA9HM,kBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAyBrB;IADH,QAAQ,EAAE;yCAgBQ;AAmBf;IADH,QAAQ,EAAE;+CACoD;AAQ3D;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CACpB;AAQnB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAClB;AAuD7B,IAAI,cAAc,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,EAAE,CAAC;IACnD,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;AACvD,CAAC;AAQD,eAAe,WAAW,CAAC","sourcesContent":["import { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Cre8Element } from '../cre8-element';\nimport styles from './heading.styles.js';\n\n /**\n * HTML headings are titles or subtitles that you want to display on a webpage. The H1 is the most important and H6\n * is the least important in the content hierarchy.\n *\n * # How to Use\n * 1. The cre8-heading tag wraps around one of the six native HTML \"h\" tags, depending on your chosen variation.\n * 2. There are two main use cases for using this component:\n * text passage headings and Components with a title (i.e. modal, card or alert)\n * 3. There will be instances when the design requires the heading text to have the brand color applied\n * in which case you should set the [brandColor](?path=/story/cre8-components-heading--brand-color)\n * attribute to true on the cre8-heading tag.\n * 4. For dark backgrounds, add the [inverted](?path=/story/cre8-components-heading--inverted)\n * attribute to the tag for white text.\n *\n *\n * @slot - The heading text content\n */\nexport class Cre8Heading extends Cre8Element {\n static styles = [styles];\n\n /**\n * Heading type\n * <cre8-text-passage size=\"small\">\n * <ul>\n * <li>**display-default** renders a heading with the heading display-default preset treatment</li>\n * <li>**display-small** renders a heading with the heading display-small preset treatment</li>\n * <li>**headline-large** renders a heading with the heading headline-large preset treatment</li>\n * <li>**headline-default** renders a heading with the heading headline-default preset treatment</li>\n * <li>**headline-small** renders a heading with the heading headline-small preset treatment</li>\n * <li>**title-xlarge** renders a heading with the heading title-xlarge preset treatment</li>\n * <li>**title-large** renders a heading with the heading title-large preset treatment</li>\n * <li>**title-default** renders a heading with the heading title-default preset treatment</li>\n * <li>**title-small** renders a heading with the heading title-small preset treatment</li>\n * <li>**label-large** renders a heading with the label-large preset treatment</li>\n * <li>**label** renders a heading with the label preset treatment</li>\n * <li>**label-small** renders a heading with the label-small preset treatment</li>\n * <li>**meta-large** renders a heading with the meta-large preset treatment</li>\n * <li>**meta-default** renders a heading with the meta-default preset treatment</li>\n * <li>**meta-small** renders a heading with the meta-small preset treatment</li>\n * </ul>\n * </cre8-text-passage>\n */\n @property()\n type?:\n | 'display-default'\n | 'display-small'\n | 'headline-large'\n | 'headline-default'\n | 'headline-small'\n | 'title-xlarge'\n | 'title-large'\n | 'title-default'\n | 'title-small'\n | 'label-large'\n | 'label-default'\n | 'label-small'\n | 'meta-large'\n | 'meta-default'\n | 'meta-small';\n\n /**\n * Dynamic tag name for the component\n * 1) This is needed to use proper semantic heading treatments depending on where the banner lives on the page\n * <cre8-text-passage size=\"small\">\n * <ul>\n * <li>**h1** renders an `h1` tag</li>\n * <li>**h2** renders an `h2` tag. This is the default</li>\n * <li>**h3** renders an `h3` tag</li>\n * <li>**h4** renders an `h4` tag</li>\n * <li>**h5** renders an `h5` tag</li>\n * <li>**h6** renders an `h6` tag</li>\n * </ul>\n * </cre8-text-passage>\n *\n * @attr{string}\n */\n @property()\n tagVariant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' = 'h5';\n\n /**\n * Invert the color of the font from dark to light. An inverted `heading` should be used on a dark background.\n *\n * @attr{boolean}\n */\n @property({ type: Boolean, reflect: true })\n inverted?: boolean;\n\n /**\n * Apply the brand color to the heading text.\n *\n * @attr{boolean}\n */\n @property({ type: Boolean, reflect: true })\n brandColor?: boolean;\n\n render() {\n const tagVariantClassNames = !this.type\n ? {\n 'cre8-c-heading--headline-large': this.tagVariant === 'h1',\n 'cre8-c-heading--headline-default': this.tagVariant === 'h2',\n 'cre8-c-heading--headline-small': this.tagVariant === 'h3',\n 'cre8-c-heading--title-large': this.tagVariant === 'h4',\n 'cre8-c-heading--title-default': this.tagVariant === 'h5',\n 'cre8-c-heading--title-small': this.tagVariant === 'h6',\n }\n : {};\n\n const componentClassName = this.componentClassNames('cre8-c-heading', {\n ...tagVariantClassNames,\n 'cre8-c-heading--headline-large': this.type === 'headline-large',\n 'cre8-c-heading--headline-default': this.type === 'headline-default',\n 'cre8-c-heading--headline-small': this.type === 'headline-small',\n 'cre8-c-heading--title-large': this.type === 'title-large',\n 'cre8-c-heading--title-default': this.type === 'title-default',\n 'cre8-c-heading--title-small': this.type === 'title-small',\n 'cre8-c-heading--title-xlarge': this.type === 'title-xlarge',\n 'cre8-c-heading--display-default': this.type === 'display-default',\n 'cre8-c-heading--display-small': this.type === 'display-small',\n 'cre8-c-heading--label-large': this.type === 'label-large',\n 'cre8-c-heading--label-default': this.type === 'label-default',\n 'cre8-c-heading--label-small': this.type === 'label-small',\n 'cre8-c-heading--meta-large': this.type === 'meta-large',\n 'cre8-c-heading--meta-default': this.type === 'meta-default',\n 'cre8-c-heading--meta-small': this.type === 'meta-small',\n 'cre8-c-heading--brand-color': this.brandColor,\n 'cre8-c-heading--inverted': this.inverted,\n });\n\n switch (this.tagVariant) {\n case 'h1':\n return html` <h1 part=\"tag\" class=\"${componentClassName}\"><slot></slot></h1> `;\n case 'h2':\n return html` <h2 part=\"tag\" class=\"${componentClassName}\"><slot></slot></h2> `;\n case 'h3':\n return html` <h3 part=\"tag\" class=\"${componentClassName}\"><slot></slot></h3> `;\n case 'h4':\n return html` <h4 part=\"tag\" class=\"${componentClassName}\"><slot></slot></h4> `;\n case 'h5':\n return html` <h5 part=\"tag\" class=\"${componentClassName}\"><slot></slot></h5> `;\n case 'h6':\n return html` <h6 part=\"tag\" class=\"${componentClassName}\"><slot></slot></h6> `;\n default:\n return html` <h4 part=\"tag\" class=\"${componentClassName}\"><slot></slot></h4> `;\n }\n }\n}\n\n\nif (customElements.get('cre8-heading') === undefined) {\n customElements.define('cre8-heading', Cre8Heading);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-heading': Cre8Heading;\n }\n}\n\nexport default Cre8Heading;\n"]}
|