@tmorrow/cre8-wc 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/cre8-wc.esm.js +1 -1
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +1 -1
- package/cdn/cre8-wc.min.js.map +1 -1
- package/lib/cdn-entry.js +129 -0
- package/lib/cdn-entry.js.map +1 -0
- package/lib/components/accordion/accordion.js +58 -40
- package/lib/components/accordion/accordion.js.map +1 -0
- package/lib/components/accordion/accordion.styles.js +4 -0
- package/lib/components/accordion/accordion.styles.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.js +187 -98
- package/lib/components/accordion-item/accordion-item.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.styles.js +4 -0
- package/lib/components/accordion-item/accordion-item.styles.js.map +1 -0
- package/lib/components/alert/alert.js +146 -107
- package/lib/components/alert/alert.js.map +1 -0
- package/lib/components/alert/alert.styles.js +4 -0
- package/lib/components/alert/alert.styles.js.map +1 -0
- package/lib/components/badge/badge.js +73 -50
- package/lib/components/badge/badge.js.map +1 -0
- package/lib/components/badge/badge.styles.js +4 -0
- package/lib/components/badge/badge.styles.js.map +1 -0
- package/lib/components/band/band.js +34 -31
- package/lib/components/band/band.js.map +1 -0
- package/lib/components/band/band.styles.js +4 -0
- package/lib/components/band/band.styles.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.js +52 -28
- package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js +4 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +28 -27
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +4 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -0
- package/lib/components/button/button.js +297 -1040
- package/lib/components/button/button.js.map +1 -0
- package/lib/components/button/button.styles.js +885 -0
- package/lib/components/button/button.styles.js.map +1 -0
- package/lib/components/button-group/button-group.js +30 -27
- package/lib/components/button-group/button-group.js.map +1 -0
- package/lib/components/button-group/button-group.styles.js +4 -0
- package/lib/components/button-group/button-group.styles.js.map +1 -0
- package/lib/components/card/card.js +57 -35
- package/lib/components/card/card.js.map +1 -0
- package/lib/components/card/card.styles.js +4 -0
- package/lib/components/card/card.styles.js.map +1 -0
- package/lib/components/chart/chart.js +528 -354
- package/lib/components/chart/chart.js.map +1 -0
- package/lib/components/chart/chart.styles.js +4 -0
- package/lib/components/chart/chart.styles.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.js +66 -53
- package/lib/components/checkbox-field/checkbox-field.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js +4 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.js +252 -183
- package/lib/components/checkbox-field-item/checkbox-field-item.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +4 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -0
- package/lib/components/contexts/form-internals-context.js +9 -0
- package/lib/components/contexts/form-internals-context.js.map +1 -0
- package/lib/components/cre8-element.js +57 -56
- package/lib/components/cre8-element.js.map +1 -0
- package/lib/components/cre8-form-element.js +212 -244
- package/lib/components/cre8-form-element.js.map +1 -0
- package/lib/components/danger-button/danger-button.js +274 -147
- package/lib/components/danger-button/danger-button.js.map +1 -0
- package/lib/components/danger-button/danger-button.styles.js +4 -0
- package/lib/components/danger-button/danger-button.styles.js.map +1 -0
- package/lib/components/date-picker/calendar/calendar.js +465 -0
- package/lib/components/date-picker/calendar/calendar.js.map +1 -0
- package/lib/components/date-picker/calendar/calendar.styles.js +4 -0
- package/lib/components/date-picker/calendar/calendar.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js +76 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js +4 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.js +110 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.js.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js +4 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js +116 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js +4 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -0
- package/lib/components/date-picker/date-picker.js +91 -784
- package/lib/components/date-picker/date-picker.js.map +1 -0
- package/lib/components/date-picker/date-picker.styles.js +4 -0
- package/lib/components/date-picker/date-picker.styles.js.map +1 -0
- package/lib/components/divider/divider.js +45 -35
- package/lib/components/divider/divider.js.map +1 -0
- package/lib/components/divider/divider.styles.js +4 -0
- package/lib/components/divider/divider.styles.js.map +1 -0
- package/lib/components/dropdown/dropdown.js +97 -63
- package/lib/components/dropdown/dropdown.js.map +1 -0
- package/lib/components/dropdown/dropdown.styles.js +4 -0
- package/lib/components/dropdown/dropdown.styles.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.js +38 -31
- package/lib/components/dropdown-item/dropdown-item.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js +4 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -0
- package/lib/components/feature/feature.js +40 -35
- package/lib/components/feature/feature.js.map +1 -0
- package/lib/components/feature/feature.styles.js +4 -0
- package/lib/components/feature/feature.styles.js.map +1 -0
- package/lib/components/field/field.js +218 -153
- package/lib/components/field/field.js.map +1 -0
- package/lib/components/field/field.styles.js +4 -0
- package/lib/components/field/field.styles.js.map +1 -0
- package/lib/components/field-note/field-note.js +58 -45
- package/lib/components/field-note/field-note.js.map +1 -0
- package/lib/components/field-note/field-note.styles.js +4 -0
- package/lib/components/field-note/field-note.styles.js.map +1 -0
- package/lib/components/footer/footer.js +25 -18
- package/lib/components/footer/footer.js.map +1 -0
- package/lib/components/footer/footer.styles.js +4 -0
- package/lib/components/footer/footer.styles.js.map +1 -0
- package/lib/components/global-nav/global-nav.js +44 -37
- package/lib/components/global-nav/global-nav.js.map +1 -0
- package/lib/components/global-nav/global-nav.styles.js +4 -0
- package/lib/components/global-nav/global-nav.styles.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.js +149 -112
- package/lib/components/global-nav-item/global-nav-item.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js +4 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -0
- package/lib/components/grid/grid.js +48 -45
- package/lib/components/grid/grid.js.map +1 -0
- package/lib/components/grid/grid.styles.js +4 -0
- package/lib/components/grid/grid.styles.js.map +1 -0
- package/lib/components/grid-item/grid-item.js +19 -16
- package/lib/components/grid-item/grid-item.js.map +1 -0
- package/lib/components/grid-item/grid-item.styles.js +4 -0
- package/lib/components/grid-item/grid-item.styles.js.map +1 -0
- package/lib/components/header/header.js +34 -29
- package/lib/components/header/header.js.map +1 -0
- package/lib/components/header/header.styles.js +4 -0
- package/lib/components/header/header.styles.js.map +1 -0
- package/lib/components/heading/heading.js +113 -76
- package/lib/components/heading/heading.js.map +1 -0
- package/lib/components/heading/heading.styles.js +4 -0
- package/lib/components/heading/heading.styles.js.map +1 -0
- package/lib/components/hero/hero.js +43 -40
- package/lib/components/hero/hero.js.map +1 -0
- package/lib/components/hero/hero.styles.js +4 -0
- package/lib/components/hero/hero.styles.js.map +1 -0
- package/lib/components/icon/icon.js +232 -9
- package/lib/components/icon/icon.js.map +1 -0
- package/lib/components/icon/icon.styles.js +4 -0
- package/lib/components/icon/icon.styles.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.js +114 -87
- package/lib/components/inline-alert/inline-alert.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.styles.js +4 -0
- package/lib/components/inline-alert/inline-alert.styles.js.map +1 -0
- package/lib/components/layout/layout.js +30 -27
- package/lib/components/layout/layout.js.map +1 -0
- package/lib/components/layout/layout.styles.js +4 -0
- package/lib/components/layout/layout.styles.js.map +1 -0
- package/lib/components/layout-container/layout-container.js +30 -27
- package/lib/components/layout-container/layout-container.js.map +1 -0
- package/lib/components/layout-container/layout-container.styles.js +4 -0
- package/lib/components/layout-container/layout-container.styles.js.map +1 -0
- package/lib/components/layout-section/layout-section.js +41 -33
- package/lib/components/layout-section/layout-section.js.map +1 -0
- package/lib/components/layout-section/layout-section.styles.js +4 -0
- package/lib/components/layout-section/layout-section.styles.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.js +19 -16
- package/lib/components/linelength-container/linelength-container.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.styles.js +4 -0
- package/lib/components/linelength-container/linelength-container.styles.js.map +1 -0
- package/lib/components/link/link.js +125 -87
- package/lib/components/link/link.js.map +1 -0
- package/lib/components/link/link.styles.js +4 -0
- package/lib/components/link/link.styles.js.map +1 -0
- package/lib/components/link-list/link-list.js +48 -45
- package/lib/components/link-list/link-list.js.map +1 -0
- package/lib/components/link-list/link-list.styles.js +4 -0
- package/lib/components/link-list/link-list.styles.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.js +40 -37
- package/lib/components/link-list-item/link-list-item.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.styles.js +4 -0
- package/lib/components/link-list-item/link-list-item.styles.js.map +1 -0
- package/lib/components/list/list.js +35 -32
- package/lib/components/list/list.js.map +1 -0
- package/lib/components/list/list.styles.js +4 -0
- package/lib/components/list/list.styles.js.map +1 -0
- package/lib/components/list-item/list-item.js +25 -21
- package/lib/components/list-item/list-item.js.map +1 -0
- package/lib/components/list-item/list-item.styles.js +4 -0
- package/lib/components/list-item/list-item.styles.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.js +126 -71
- package/lib/components/loading-spinner/loading-spinner.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js +4 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -0
- package/lib/components/logo/logo.js +28 -25
- package/lib/components/logo/logo.js.map +1 -0
- package/lib/components/logo/logo.styles.js +4 -0
- package/lib/components/logo/logo.styles.js.map +1 -0
- package/lib/components/main/main.js +29 -26
- package/lib/components/main/main.js.map +1 -0
- package/lib/components/main/main.styles.js +4 -0
- package/lib/components/main/main.styles.js.map +1 -0
- package/lib/components/modal/modal.js +174 -125
- package/lib/components/modal/modal.js.map +1 -0
- package/lib/components/modal/modal.styles.js +4 -0
- package/lib/components/modal/modal.styles.js.map +1 -0
- package/lib/components/multi-select/multi-select.js +300 -211
- package/lib/components/multi-select/multi-select.js.map +1 -0
- package/lib/components/multi-select/multi-select.styles.js +4 -0
- package/lib/components/multi-select/multi-select.styles.js.map +1 -0
- package/lib/components/nav-container/nav-container.js +19 -16
- package/lib/components/nav-container/nav-container.js.map +1 -0
- package/lib/components/nav-container/nav-container.styles.js +4 -0
- package/lib/components/nav-container/nav-container.styles.js.map +1 -0
- package/lib/components/page-header/page-header.js +36 -29
- package/lib/components/page-header/page-header.js.map +1 -0
- package/lib/components/page-header/page-header.styles.js +4 -0
- package/lib/components/page-header/page-header.styles.js.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.js +67 -0
- package/lib/components/pagination/page-counter/page-counter.js.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.styles.js +4 -0
- package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -0
- package/lib/components/pagination/pagination.js +282 -237
- package/lib/components/pagination/pagination.js.map +1 -0
- package/lib/components/pagination/pagination.styles.js +4 -0
- package/lib/components/pagination/pagination.styles.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.js +56 -48
- package/lib/components/percent-bar/percent-bar.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.styles.js +4 -0
- package/lib/components/percent-bar/percent-bar.styles.js.map +1 -0
- package/lib/components/popover/popover.js +304 -179
- package/lib/components/popover/popover.js.map +1 -0
- package/lib/components/popover/popover.styles.js +4 -0
- package/lib/components/popover/popover.styles.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.js +44 -37
- package/lib/components/primary-nav/primary-nav.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.styles.js +4 -0
- package/lib/components/primary-nav/primary-nav.styles.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.js +151 -113
- package/lib/components/primary-nav-item/primary-nav-item.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js +4 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.js +74 -57
- package/lib/components/progress-meter/progress-meter.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.styles.js +4 -0
- package/lib/components/progress-meter/progress-meter.styles.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.js +19 -0
- package/lib/components/progress-steps/progress-steps.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.styles.js +4 -0
- package/lib/components/progress-steps/progress-steps.styles.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.js +52 -40
- package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js +4 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -0
- package/lib/components/radio-field/radio-field.js +59 -49
- package/lib/components/radio-field/radio-field.js.map +1 -0
- package/lib/components/radio-field/radio-field.styles.js +4 -0
- package/lib/components/radio-field/radio-field.styles.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.js +222 -179
- package/lib/components/radio-field-item/radio-field-item.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js +4 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.js +89 -60
- package/lib/components/remove-tag/remove-tag.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.styles.js +4 -0
- package/lib/components/remove-tag/remove-tag.styles.js.map +1 -0
- package/lib/components/section/section.js +46 -27
- package/lib/components/section/section.js.map +1 -0
- package/lib/components/section/section.styles.js +4 -0
- package/lib/components/section/section.styles.js.map +1 -0
- package/lib/components/select/select.js +243 -158
- package/lib/components/select/select.js.map +1 -0
- package/lib/components/select/select.styles.js +4 -0
- package/lib/components/select/select.styles.js.map +1 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.js +60 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.js.map +1 -0
- package/lib/components/select-tile/select-tile-radio-controller.js +167 -0
- package/lib/components/select-tile/select-tile-radio-controller.js.map +1 -0
- package/lib/components/select-tile/select-tile.js +228 -223
- package/lib/components/select-tile/select-tile.js.map +1 -0
- package/lib/components/select-tile/select-tile.styles.js +4 -0
- package/lib/components/select-tile/select-tile.styles.js.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.js +76 -62
- package/lib/components/select-tile-list/select-tile-list.js.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js +4 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.js +68 -39
- package/lib/components/skeleton-loader/skeleton-loader.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js +4 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -0
- package/lib/components/split-button/split-button.js +51 -46
- package/lib/components/split-button/split-button.js.map +1 -0
- package/lib/components/split-button/split-button.styles.js +4 -0
- package/lib/components/split-button/split-button.styles.js.map +1 -0
- package/lib/components/submenu/submenu.js +19 -16
- package/lib/components/submenu/submenu.js.map +1 -0
- package/lib/components/submenu/submenu.styles.js +4 -0
- package/lib/components/submenu/submenu.styles.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.js +32 -26
- package/lib/components/submenu-item/submenu-item.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.styles.js +4 -0
- package/lib/components/submenu-item/submenu-item.styles.js.map +1 -0
- package/lib/components/tab/tab.js +74 -63
- package/lib/components/tab/tab.js.map +1 -0
- package/lib/components/tab/tab.styles.js +4 -0
- package/lib/components/tab/tab.styles.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.js +49 -43
- package/lib/components/tab-panel/tab-panel.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.styles.js +4 -0
- package/lib/components/tab-panel/tab-panel.styles.js.map +1 -0
- package/lib/components/table/table.js +46 -41
- package/lib/components/table/table.js.map +1 -0
- package/lib/components/table/table.styles.js +4 -0
- package/lib/components/table/table.styles.js.map +1 -0
- package/lib/components/table-body/table-body.js +20 -17
- package/lib/components/table-body/table-body.js.map +1 -0
- package/lib/components/table-body/table-body.styles.js +4 -0
- package/lib/components/table-body/table-body.styles.js.map +1 -0
- package/lib/components/table-cell/table-cell.js +39 -36
- package/lib/components/table-cell/table-cell.js.map +1 -0
- package/lib/components/table-cell/table-cell.styles.js +4 -0
- package/lib/components/table-cell/table-cell.styles.js.map +1 -0
- package/lib/components/table-header/table-header.js +20 -17
- package/lib/components/table-header/table-header.js.map +1 -0
- package/lib/components/table-header/table-header.styles.js +4 -0
- package/lib/components/table-header/table-header.styles.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.js +35 -32
- package/lib/components/table-header-cell/table-header-cell.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js +4 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -0
- package/lib/components/table-object/table-object.js +21 -18
- package/lib/components/table-object/table-object.js.map +1 -0
- package/lib/components/table-object/table-object.styles.js +4 -0
- package/lib/components/table-object/table-object.styles.js.map +1 -0
- package/lib/components/table-row/table-row.js +76 -55
- package/lib/components/table-row/table-row.js.map +1 -0
- package/lib/components/table-row/table-row.styles.js +4 -0
- package/lib/components/table-row/table-row.styles.js.map +1 -0
- package/lib/components/tabs/tabs.js +452 -303
- package/lib/components/tabs/tabs.js.map +1 -0
- package/lib/components/tabs/tabs.styles.js +4 -0
- package/lib/components/tabs/tabs.styles.js.map +1 -0
- package/lib/components/tag/tag.js +236 -167
- package/lib/components/tag/tag.js.map +1 -0
- package/lib/components/tag/tag.styles.js +4 -0
- package/lib/components/tag/tag.styles.js.map +1 -0
- package/lib/components/tag-list/tag-list.js +40 -35
- package/lib/components/tag-list/tag-list.js.map +1 -0
- package/lib/components/tag-list/tag-list.styles.js +4 -0
- package/lib/components/tag-list/tag-list.styles.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.js +40 -33
- package/lib/components/tertiary-nav/tertiary-nav.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js +4 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +52 -43
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +4 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -0
- package/lib/components/text-link/text-link.js +45 -41
- package/lib/components/text-link/text-link.js.map +1 -0
- package/lib/components/text-link/text-link.styles.js +4 -0
- package/lib/components/text-link/text-link.styles.js.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.js +145 -0
- package/lib/components/text-passage/text-passage-light-dom.js.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.js +4 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -0
- package/lib/components/text-passage/text-passage.js +72 -44
- package/lib/components/text-passage/text-passage.js.map +1 -0
- package/lib/components/text-passage/text-passage.styles.js +4 -0
- package/lib/components/text-passage/text-passage.styles.js.map +1 -0
- package/lib/components/tooltip/tooltip.js +278 -173
- package/lib/components/tooltip/tooltip.js.map +1 -0
- package/lib/components/tooltip/tooltip.styles.js +4 -0
- package/lib/components/tooltip/tooltip.styles.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.js +40 -33
- package/lib/components/utility-nav/utility-nav.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.styles.js +4 -0
- package/lib/components/utility-nav/utility-nav.styles.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.js +70 -49
- package/lib/components/utility-nav-item/utility-nav-item.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js +4 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -0
- package/lib/design-tokens/brands/blue/css/fonts.css +31 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.css +248 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.js +737 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.js.map +1 -0
- package/lib/design-tokens/brands/blue/css/tokens_brand.css +492 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js +756 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js.map +1 -0
- package/lib/design-tokens/brands/cre8/css/fonts.css +35 -0
- package/lib/design-tokens/brands/cre8/css/tokens_brand.css +494 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.css +767 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js +771 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js.map +1 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/fonts.css +35 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_brand.css +494 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.css +248 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js +772 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/fonts.css +47 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_brand.css +464 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.css +0 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js +737 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/femmecubator/css/fonts.css +35 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js +983 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js.map +1 -0
- package/lib/design-tokens/brands/legacy/css/fonts.css +26 -0
- package/lib/design-tokens/brands/legacy/css/tokens_brand.css +491 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.css +250 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js +737 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/marketing/css/fonts.css +31 -0
- package/lib/design-tokens/brands/marketing/css/tokens_brand.css +502 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js +736 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js.map +1 -0
- package/lib/design-tokens/brands/minimalist/css/fonts.css +26 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_brand.css +492 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.css +736 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js +737 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js.map +1 -0
- package/lib/design-tokens/brands/prisma/figma-tokens.css +339 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js +771 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js.map +1 -0
- package/lib/design-tokens/brands/starbucks/fonts.css +26 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.js +552 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.js.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js +776 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js.map +1 -0
- package/lib/design-tokens/brands/tmorrow/css/tokens_brand.css +104 -0
- package/lib/design-tokens/brands/tmorrow/css/tokens_tmorrow-frost.css +222 -0
- package/lib/design-tokens/brands/tmorrow/css/tokens_tmorrow-neon.css +218 -0
- package/lib/design-tokens/capitalone/fonts.css +26 -0
- package/lib/design-tokens/capitalone/overrides.css +33 -0
- package/lib/design-tokens/capitalone/tokens.module.css +532 -0
- package/lib/design-tokens/core/scss/abstracts/functions.css +0 -0
- package/lib/design-tokens/core/scss/theming/animation.css +1 -0
- package/lib/design-tokens/core/scss/theming/body.css +1 -0
- package/lib/design-tokens/core/scss/theming/breakpoints.css +0 -0
- package/lib/design-tokens/core/scss/theming/component.css +1 -0
- package/lib/design-tokens/core/scss/theming/display.css +1 -0
- package/lib/design-tokens/core/scss/theming/head.css +1 -0
- package/lib/design-tokens/core/scss/theming/head.module.js +6 -0
- package/lib/design-tokens/core/scss/theming/head.module.js.map +1 -0
- package/lib/design-tokens/core/scss/theming/spacing.css +1 -0
- package/lib/design-tokens/core/scss/theming/typography-usage.css +0 -0
- package/lib/design-tokens/core/scss/theming/variables.css +1 -0
- package/lib/design-tokens/core/scss/theming/visibility.css +1 -0
- package/lib/design-tokens/core/scss/utilities/animation.css +1 -0
- package/lib/design-tokens/core/scss/utilities/colors.css +1 -0
- package/lib/design-tokens/core/scss/utilities/display.css +1 -0
- package/lib/design-tokens/femmecubator/equity.css +142 -0
- package/lib/design-tokens/femmecubator/fonts.css +35 -0
- package/lib/design-tokens/femmecubator/tokens_brand.css +146 -0
- package/lib/design-tokens/femmecubator/tokens_femmecubator.module.css +247 -0
- package/lib/design-tokens/figma-tokens.css +0 -0
- package/lib/design-tokens/mcdonalds/tokens.module.css +58 -0
- package/lib/design-tokens/target/fonts.css +26 -0
- package/lib/design-tokens/target/tokens.module.css +738 -0
- package/lib/design-tokens/tokens_netflix.theme.js +806 -0
- package/lib/design-tokens/tokens_netflix.theme.js.map +1 -0
- package/lib/directives/if-truthy.js +24 -0
- package/lib/directives/if-truthy.js.map +1 -0
- package/lib/directives/spread.js +29 -0
- package/lib/directives/spread.js.map +1 -0
- package/lib/index.js +84 -168
- package/lib/index.js.map +1 -0
- package/lib/scripts/convert-scss-to-ts.js +25 -0
- package/lib/scripts/convert-scss-to-ts.js.map +1 -0
- package/lib/scripts/extract-tokens.js +120 -0
- package/lib/scripts/extract-tokens.js.map +1 -0
- package/lib/scripts/generate-react-wrappers.js +229 -0
- package/lib/scripts/generate-react-wrappers.js.map +1 -0
- package/lib/scripts/generateWesparkleThemes.js +52 -0
- package/lib/scripts/generateWesparkleThemes.js.map +1 -0
- package/lib/toBeAccessible.js +18 -0
- package/lib/toBeAccessible.js.map +1 -0
- package/lib/utilities/is-mobile.js +10 -0
- package/lib/utilities/is-mobile.js.map +1 -0
- package/lib/utilities/story-helpers.js +14 -0
- package/lib/utilities/story-helpers.js.map +1 -0
- package/lib/vite.config.cdn.js +85 -0
- package/lib/vite.config.cdn.js.map +1 -0
- package/lib/vite.config.js +156 -0
- package/lib/vite.config.js.map +1 -0
- package/package.json +8 -9
- package/lib/design-tokens/brands copy/blue/_base.scss +0 -142
- package/lib/design-tokens/brands copy/blue/badge.scss +0 -5
- package/lib/design-tokens/brands copy/blue/bg.scss +0 -35
- package/lib/design-tokens/brands copy/blue/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/blue/border.scss +0 -21
- package/lib/design-tokens/brands copy/blue/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/blue/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/blue/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/blue/button.scss +0 -225
- package/lib/design-tokens/brands copy/blue/content.scss +0 -29
- package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.d.ts +0 -3
- package/lib/design-tokens/brands copy/blue/css/tokens_blue.module.d.ts.map +0 -1
- package/lib/design-tokens/brands copy/blue/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/blue/fontFamilies.scss +0 -5
- package/lib/design-tokens/brands copy/blue/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/blue/fontWeights.scss +0 -7
- package/lib/design-tokens/brands copy/blue/footer.scss +0 -9
- package/lib/design-tokens/brands copy/blue/header.scss +0 -81
- package/lib/design-tokens/brands copy/blue/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/blue/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/blue/lineHeights.scss +0 -15
- package/lib/design-tokens/brands copy/blue/link.scss +0 -4
- package/lib/design-tokens/brands copy/blue/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/blue/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/blue/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/blue/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/blue/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/blue/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/blue/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/blue/tokens-all-blue.scss +0 -628
- package/lib/design-tokens/brands copy/blue/tokens-brand.scss +0 -31
- package/lib/design-tokens/brands copy/blue-v1/_base.scss +0 -76
- package/lib/design-tokens/brands copy/blue-v1/badge.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/bg.scss +0 -34
- package/lib/design-tokens/brands copy/blue-v1/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/border.scss +0 -21
- package/lib/design-tokens/brands copy/blue-v1/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/blue-v1/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/blue-v1/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/button.scss +0 -199
- package/lib/design-tokens/brands copy/blue-v1/content.scss +0 -29
- package/lib/design-tokens/brands copy/blue-v1/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/fontFamilies.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/blue-v1/fontWeights.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/footer.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/header.scss +0 -79
- package/lib/design-tokens/brands copy/blue-v1/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/blue-v1/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/blue-v1/lineHeights.scss +0 -15
- package/lib/design-tokens/brands copy/blue-v1/link.scss +0 -4
- package/lib/design-tokens/brands copy/blue-v1/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/blue-v1/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/blue-v1/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/blue-v1/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/blue-v1/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/blue-v1/tokens-all-blue-v1.scss +0 -534
- package/lib/design-tokens/brands copy/blue-v1/tokens-brand.scss +0 -30
- package/lib/design-tokens/brands copy/cre8/_base.scss +0 -157
- package/lib/design-tokens/brands copy/cre8/badge.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/bg.scss +0 -34
- package/lib/design-tokens/brands copy/cre8/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/border.scss +0 -18
- package/lib/design-tokens/brands copy/cre8/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/cre8/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/cre8/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/cre8/button.scss +0 -211
- package/lib/design-tokens/brands copy/cre8/content.scss +0 -29
- package/lib/design-tokens/brands copy/cre8/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/cre8/fontWeights.scss +0 -7
- package/lib/design-tokens/brands copy/cre8/footer.scss +0 -8
- package/lib/design-tokens/brands copy/cre8/header.scss +0 -81
- package/lib/design-tokens/brands copy/cre8/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/cre8/letterSpacing.scss +0 -10
- package/lib/design-tokens/brands copy/cre8/lineHeights.scss +0 -22
- package/lib/design-tokens/brands copy/cre8/link.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/cre8/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/cre8/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/cre8/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/cre8/tokens-all-cre8.scss +0 -631
- package/lib/design-tokens/brands copy/cre8/tokens-brand.scss +0 -31
- package/lib/design-tokens/brands copy/femmecubator/base.scss +0 -64
- package/lib/design-tokens/brands copy/femmecubator/border.scss +0 -15
- package/lib/design-tokens/brands copy/femmecubator/color.scss +0 -56
- package/lib/design-tokens/brands copy/femmecubator/spacing.scss +0 -13
- package/lib/design-tokens/brands copy/femmecubator/tokens-all-femmecubator.scss +0 -139
- package/lib/design-tokens/brands copy/femmecubator/tokens-brand.scss +0 -8
- package/lib/design-tokens/brands copy/legacy/_base.scss +0 -103
- package/lib/design-tokens/brands copy/legacy/badge.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/bg.scss +0 -34
- package/lib/design-tokens/brands copy/legacy/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/border.scss +0 -17
- package/lib/design-tokens/brands copy/legacy/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/legacy/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/legacy/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/legacy/button.scss +0 -225
- package/lib/design-tokens/brands copy/legacy/content.scss +0 -29
- package/lib/design-tokens/brands copy/legacy/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/legacy/fontWeights.scss +0 -10
- package/lib/design-tokens/brands copy/legacy/footer.scss +0 -9
- package/lib/design-tokens/brands copy/legacy/header.scss +0 -81
- package/lib/design-tokens/brands copy/legacy/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/legacy/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/legacy/lineHeights.scss +0 -19
- package/lib/design-tokens/brands copy/legacy/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/legacy/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/legacy/spacing.scss +0 -20
- package/lib/design-tokens/brands copy/legacy/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/legacy/tokens-all-legacy.scss +0 -588
- package/lib/design-tokens/brands copy/legacy/tokens-brand.scss +0 -30
- package/lib/design-tokens/brands copy/marketing/_base.scss +0 -137
- package/lib/design-tokens/brands copy/marketing/asset.scss +0 -7
- package/lib/design-tokens/brands copy/marketing/badge.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/bg.scss +0 -35
- package/lib/design-tokens/brands copy/marketing/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/border.scss +0 -21
- package/lib/design-tokens/brands copy/marketing/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/marketing/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/marketing/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/marketing/button.scss +0 -225
- package/lib/design-tokens/brands copy/marketing/content.scss +0 -29
- package/lib/design-tokens/brands copy/marketing/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/marketing/fontWeights.scss +0 -7
- package/lib/design-tokens/brands copy/marketing/footer.scss +0 -9
- package/lib/design-tokens/brands copy/marketing/header.scss +0 -81
- package/lib/design-tokens/brands copy/marketing/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/marketing/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/marketing/lineHeights.scss +0 -22
- package/lib/design-tokens/brands copy/marketing/link.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/marketing/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/marketing/spacing.scss +0 -21
- package/lib/design-tokens/brands copy/marketing/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/marketing/tokens-all-marketing.scss +0 -633
- package/lib/design-tokens/brands copy/marketing/tokens-brand.scss +0 -32
- package/lib/design-tokens/brands copy/minimalist/_base.scss +0 -81
- package/lib/design-tokens/brands copy/minimalist/asset.scss +0 -6
- package/lib/design-tokens/brands copy/minimalist/badge.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/bg.scss +0 -34
- package/lib/design-tokens/brands copy/minimalist/border-style.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/border.scss +0 -17
- package/lib/design-tokens/brands copy/minimalist/borderRadius.scss +0 -15
- package/lib/design-tokens/brands copy/minimalist/borderWidth.scss +0 -11
- package/lib/design-tokens/brands copy/minimalist/breakpoint.scss +0 -9
- package/lib/design-tokens/brands copy/minimalist/button.scss +0 -225
- package/lib/design-tokens/brands copy/minimalist/content.scss +0 -29
- package/lib/design-tokens/brands copy/minimalist/desktop-menu.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/fontFamilies.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/fontFamily.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/fontSize.scss +0 -17
- package/lib/design-tokens/brands copy/minimalist/fontWeights.scss +0 -6
- package/lib/design-tokens/brands copy/minimalist/footer.scss +0 -9
- package/lib/design-tokens/brands copy/minimalist/header.scss +0 -81
- package/lib/design-tokens/brands copy/minimalist/icon-size.scss +0 -6
- package/lib/design-tokens/brands copy/minimalist/letterSpacing.scss +0 -9
- package/lib/design-tokens/brands copy/minimalist/lineHeights.scss +0 -20
- package/lib/design-tokens/brands copy/minimalist/paragraphIndent.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/paragraphSpacing.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/progress-meter.scss +0 -4
- package/lib/design-tokens/brands copy/minimalist/shadow.scss +0 -8
- package/lib/design-tokens/brands copy/minimalist/spacing.scss +0 -20
- package/lib/design-tokens/brands copy/minimalist/textCase.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/textDecoration.scss +0 -5
- package/lib/design-tokens/brands copy/minimalist/tokens-all-minimalist.scss +0 -567
- package/lib/design-tokens/brands copy/minimalist/tokens-brand.scss +0 -32
|
@@ -1,39 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import classnames from 'classnames';
|
|
8
|
+
import { html, } from 'lit';
|
|
9
|
+
import { property } from 'lit/decorators.js';
|
|
10
|
+
import svgClose from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Regular/Close.svg?raw';
|
|
11
|
+
import { Cre8Element } from '../cre8-element';
|
|
12
|
+
import '../icon/icon';
|
|
13
|
+
import styles from './remove-tag.styles.js';
|
|
14
|
+
export var Shape;
|
|
15
|
+
(function (Shape) {
|
|
16
|
+
Shape["Round"] = "round";
|
|
17
|
+
Shape["Square"] = "square";
|
|
18
|
+
})(Shape || (Shape = {}));
|
|
19
|
+
export var Color;
|
|
20
|
+
(function (Color) {
|
|
21
|
+
Color["Neutral"] = "neutral";
|
|
22
|
+
Color["Branded"] = "branded";
|
|
23
|
+
Color["NeutralHybrid"] = "neutral-hybrid";
|
|
24
|
+
})(Color || (Color = {}));
|
|
25
|
+
/**
|
|
26
|
+
* Clicking a Remove Tag causes it to disappear from the page or field (in the case of Multi-Select).
|
|
27
|
+
* These tags always display a "Close" icon.
|
|
28
|
+
*/
|
|
29
|
+
export class Cre8RemoveTag extends Cre8Element {
|
|
30
|
+
constructor() {
|
|
31
|
+
super(...arguments);
|
|
32
|
+
/**
|
|
33
|
+
* The tag color scheme
|
|
34
|
+
*
|
|
35
|
+
* - **neutral** should be used when doing non-link actions such as filters or multi-select, within forms, etc.
|
|
36
|
+
* - **neutral-hybrid** should be used for when tags are doing an action like a button or a link
|
|
37
|
+
* - **branded** should be used like Neutral, but for marketing / actionable items
|
|
38
|
+
*/
|
|
39
|
+
this.color = Color.Neutral;
|
|
40
|
+
/**
|
|
41
|
+
* The tag shape
|
|
42
|
+
*
|
|
43
|
+
* - **round** will give the tag a rounded border
|
|
44
|
+
* - **square** will give the tag a squared border
|
|
45
|
+
*/
|
|
46
|
+
this.shape = Shape.Round;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Dispatches an event when the tag is clicked
|
|
50
|
+
*/
|
|
51
|
+
_handleRemoveTagClicked() {
|
|
52
|
+
const customEvent = new CustomEvent('removeTagClicked', {
|
|
53
|
+
detail: { message: 'Remove Tag clicked.' },
|
|
54
|
+
bubbles: true,
|
|
55
|
+
composed: true,
|
|
56
|
+
});
|
|
57
|
+
this.dispatchEvent(customEvent);
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const componentClassName = classnames('cre8-c-remove-tag', {
|
|
61
|
+
'cre8-c-remove-tag--neutral': this.color === 'neutral',
|
|
62
|
+
'cre8-c-remove-tag--branded': this.color === 'branded',
|
|
63
|
+
'cre8-c-remove-tag--neutral-hybrid': this.color === 'neutral-hybrid',
|
|
64
|
+
'cre8-c-remove-tag--round': this.shape === 'round',
|
|
65
|
+
'cre8-c-remove-tag--square': this.shape === 'square',
|
|
66
|
+
});
|
|
67
|
+
return html ` <button
|
|
68
|
+
class="${componentClassName}"
|
|
37
69
|
@click="${this._handleRemoveTagClicked}"
|
|
38
70
|
?disabled=${this.disabled}
|
|
39
71
|
>
|
|
@@ -42,31 +74,28 @@ const d = class d extends p {
|
|
|
42
74
|
<cre8-icon
|
|
43
75
|
width="16"
|
|
44
76
|
height="16"
|
|
45
|
-
svg="${
|
|
77
|
+
svg="${svgClose}"
|
|
46
78
|
aria-label="remove"
|
|
47
79
|
></cre8-icon>
|
|
48
80
|
</div>
|
|
49
81
|
</button>`;
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
customElements.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
b as Shape,
|
|
71
|
-
r as default
|
|
72
|
-
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
Cre8RemoveTag.styles = [styles];
|
|
85
|
+
__decorate([
|
|
86
|
+
property({ type: String })
|
|
87
|
+
], Cre8RemoveTag.prototype, "text", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
property({ type: String })
|
|
90
|
+
], Cre8RemoveTag.prototype, "color", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
property({ type: String })
|
|
93
|
+
], Cre8RemoveTag.prototype, "shape", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
property({ type: Boolean })
|
|
96
|
+
], Cre8RemoveTag.prototype, "disabled", void 0);
|
|
97
|
+
if (customElements.get('cre8-remove-tag') === undefined) {
|
|
98
|
+
customElements.define('cre8-remove-tag', Cre8RemoveTag);
|
|
99
|
+
}
|
|
100
|
+
export default Cre8RemoveTag;
|
|
101
|
+
//# sourceMappingURL=remove-tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-tag.js","sourceRoot":"","sources":["../../../components/remove-tag/remove-tag.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,GAAI,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,QAAQ,MAAM,mGAAmG,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,cAAc,CAAC;AACtB,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,CAAN,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,wBAAe,CAAA;IACf,0BAAiB,CAAA;AACnB,CAAC,EAHW,KAAK,KAAL,KAAK,QAGhB;AAED,MAAM,CAAN,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,4BAAmB,CAAA;IACnB,yCAAgC,CAAA;AAClC,CAAC,EAJW,KAAK,KAAL,KAAK,QAIhB;AAED;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QASE;;;;;;WAMG;QAEC,UAAK,GAAwD,KAAK,CAAC,OAAO,CAAC;QAE/E;;;;;WAKG;QAEC,UAAK,GAA+B,KAAK,CAAC,KAAK,CAAC;IA6CtD,CAAC;IArCC;;OAEG;IACK,uBAAuB;QAC3B,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,kBAAkB,EAAE;YACpD,MAAM,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;YAC1C,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACjB,CAAC,CAAC;QACH,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IACpC,CAAC;IAED,MAAM;QACF,MAAM,kBAAkB,GAAG,UAAU,CAAC,mBAAmB,EAAE;YACvD,4BAA4B,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;YACtD,4BAA4B,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;YACtD,mCAAmC,EAAE,IAAI,CAAC,KAAK,KAAK,gBAAgB;YACpE,0BAA0B,EAAE,IAAI,CAAC,KAAK,KAAK,OAAO;YAClD,2BAA2B,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;SACvD,CAAC,CAAC;QAEH,OAAO,IAAI,CAAA;eACF,kBAAkB;gBACjB,IAAI,CAAC,uBAAuB;kBAC1B,IAAI,CAAC,QAAQ;;cAEjB,IAAI,CAAC,IAAI;;;;;iBAKN,QAAQ;;;;cAIX,CAAC;IACb,CAAC;;AArEQ,oBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAMvB;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACT;AAUd;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACoD;AAS3E;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACyB;AAMhD;IADH,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;+CACL;AAyCzB,IAAI,cAAc,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,SAAS,EAAE,CAAC;IACtD,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;AAC5D,CAAC;AAQD,eAAe,aAAa,CAAC","sourcesContent":["import classnames from 'classnames';\nimport { html, } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport svgClose from '/Users/tylersmbp/Projects/cre8-web-components/packages/cre8-wc/icons/System/Regular/Close.svg?raw';\nimport { Cre8Element } from '../cre8-element';\nimport '../icon/icon';\nimport styles from './remove-tag.styles.js';\n\nexport enum Shape {\n Round = 'round',\n Square = 'square',\n}\n\nexport enum Color {\n Neutral = 'neutral',\n Branded = 'branded',\n NeutralHybrid = 'neutral-hybrid',\n}\n\n/**\n * Clicking a Remove Tag causes it to disappear from the page or field (in the case of Multi-Select).\n * These tags always display a \"Close\" icon.\n */\nexport class Cre8RemoveTag extends Cre8Element {\n static styles = [styles];\n\n /**\n * The tag text\n */\n @property({ type: String })\n text?: string;\n\n /**\n * The tag color scheme\n *\n * - **neutral** should be used when doing non-link actions such as filters or multi-select, within forms, etc.\n * - **neutral-hybrid** should be used for when tags are doing an action like a button or a link\n * - **branded** should be used like Neutral, but for marketing / actionable items\n */\n @property({ type: String })\n color: Color.Neutral | Color.Branded | Color.NeutralHybrid = Color.Neutral;\n\n /**\n * The tag shape\n *\n * - **round** will give the tag a rounded border\n * - **square** will give the tag a squared border\n */\n @property({ type: String })\n shape: Shape.Round | Shape.Square = Shape.Round;\n\n /**\n * Disabled state for remove tag\n */\n @property({ type: Boolean })\n disabled?: boolean;\n\n /**\n * Dispatches an event when the tag is clicked\n */\n private _handleRemoveTagClicked() {\n const customEvent = new CustomEvent('removeTagClicked', {\n detail: { message: 'Remove Tag clicked.' },\n bubbles: true,\n composed: true,\n });\n this.dispatchEvent(customEvent);\n }\n\n render() {\n const componentClassName = classnames('cre8-c-remove-tag', {\n 'cre8-c-remove-tag--neutral': this.color === 'neutral',\n 'cre8-c-remove-tag--branded': this.color === 'branded',\n 'cre8-c-remove-tag--neutral-hybrid': this.color === 'neutral-hybrid',\n 'cre8-c-remove-tag--round': this.shape === 'round',\n 'cre8-c-remove-tag--square': this.shape === 'square',\n });\n\n return html` <button\n class=\"${componentClassName}\"\n @click=\"${this._handleRemoveTagClicked}\"\n ?disabled=${this.disabled}\n >\n <span>${this.text}</span>\n <div class=\"cre8-c-remove-tag-item__icon\">\n <cre8-icon\n width=\"16\"\n height=\"16\"\n svg=\"${svgClose}\"\n aria-label=\"remove\"\n ></cre8-icon>\n </div>\n </button>`;\n }\n}\n\nif (customElements.get('cre8-remove-tag') === undefined) {\n customElements.define('cre8-remove-tag', Cre8RemoveTag);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-remove-tag': Cre8RemoveTag;\n }\n}\n\nexport default Cre8RemoveTag;\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-remove-tag{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);display:flex;align-items:center;align-content:center;appearance:none;white-space:nowrap;padding-left:var(--cre8-spacing-16);padding-right:var(--cre8-spacing-16);padding-top:var(--cre8-spacing-4);padding-bottom:var(--cre8-spacing-4);gap:var(--cre8-spacing-8);border-width:var(--cre8-border-width-default);border-style:var(--cre8-border-style-default);cursor:pointer}.cre8-c-remove-tag:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-remove-tag.cre8-c-remove-tag--neutral{background-color:var(--cre8-color-bg-default);color:var(--cre8-color-content-default);border-color:var(--cre8-color-border-strong)}.cre8-c-remove-tag.cre8-c-remove-tag--neutral:hover,.cre8-c-remove-tag.cre8-c-remove-tag--neutral:focus{background-color:var(--cre8-color-bg-default-hover)}.cre8-c-remove-tag.cre8-c-remove-tag--branded{background-color:var(--cre8-color-bg-brand);color:var(--cre8-color-content-default);border-color:var(--cre8-color-border-transparent)}.cre8-c-remove-tag.cre8-c-remove-tag--branded:hover,.cre8-c-remove-tag.cre8-c-remove-tag--branded:focus{background-color:var(--cre8-color-bg-brand-hover)}.cre8-c-remove-tag.cre8-c-remove-tag--neutral-hybrid{background-color:var(--cre8-color-bg-default);color:var(--cre8-color-content-brand);border-color:var(--cre8-color-border-strong)}.cre8-c-remove-tag.cre8-c-remove-tag--neutral-hybrid:hover,.cre8-c-remove-tag.cre8-c-remove-tag--neutral-hybrid:focus{background-color:var(--cre8-color-bg-default-hover)}.cre8-c-remove-tag.cre8-c-remove-tag--round{border-radius:var(--cre8-border-radius-round)}.cre8-c-remove-tag.cre8-c-remove-tag--square{border-radius:var(--cre8-border-radius-small)}.cre8-c-remove-tag:disabled{background-color:var(--cre8-color-bg-disabled);color:var(--cre8-color-content-disabled);border-color:var(--cre8-color-border-disabled);cursor:not-allowed}.cre8-c-remove-tag:disabled:hover,.cre8-c-remove-tag:disabled:focus{background-color:var(--cre8-color-bg-disabled)}.cre8-c-remove-tag-item__icon{align-items:center;width:1rem;height:1rem}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=remove-tag.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-tag.styles.js","sourceRoot":"","sources":["../../../components/remove-tag/remove-tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,qqIAAqqI,CAAC;AACxrI,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-remove-tag{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);display:flex;align-items:center;align-content:center;appearance:none;white-space:nowrap;padding-left:var(--cre8-spacing-16);padding-right:var(--cre8-spacing-16);padding-top:var(--cre8-spacing-4);padding-bottom:var(--cre8-spacing-4);gap:var(--cre8-spacing-8);border-width:var(--cre8-border-width-default);border-style:var(--cre8-border-style-default);cursor:pointer}.cre8-c-remove-tag:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem}.cre8-c-remove-tag.cre8-c-remove-tag--neutral{background-color:var(--cre8-color-bg-default);color:var(--cre8-color-content-default);border-color:var(--cre8-color-border-strong)}.cre8-c-remove-tag.cre8-c-remove-tag--neutral:hover,.cre8-c-remove-tag.cre8-c-remove-tag--neutral:focus{background-color:var(--cre8-color-bg-default-hover)}.cre8-c-remove-tag.cre8-c-remove-tag--branded{background-color:var(--cre8-color-bg-brand);color:var(--cre8-color-content-default);border-color:var(--cre8-color-border-transparent)}.cre8-c-remove-tag.cre8-c-remove-tag--branded:hover,.cre8-c-remove-tag.cre8-c-remove-tag--branded:focus{background-color:var(--cre8-color-bg-brand-hover)}.cre8-c-remove-tag.cre8-c-remove-tag--neutral-hybrid{background-color:var(--cre8-color-bg-default);color:var(--cre8-color-content-brand);border-color:var(--cre8-color-border-strong)}.cre8-c-remove-tag.cre8-c-remove-tag--neutral-hybrid:hover,.cre8-c-remove-tag.cre8-c-remove-tag--neutral-hybrid:focus{background-color:var(--cre8-color-bg-default-hover)}.cre8-c-remove-tag.cre8-c-remove-tag--round{border-radius:var(--cre8-border-radius-round)}.cre8-c-remove-tag.cre8-c-remove-tag--square{border-radius:var(--cre8-border-radius-small)}.cre8-c-remove-tag:disabled{background-color:var(--cre8-color-bg-disabled);color:var(--cre8-color-content-disabled);border-color:var(--cre8-color-border-disabled);cursor:not-allowed}.cre8-c-remove-tag:disabled:hover,.cre8-c-remove-tag:disabled:focus{background-color:var(--cre8-color-bg-disabled)}.cre8-c-remove-tag-item__icon{align-items:center;width:1rem;height:1rem}`;\nexport default styles;\n"]}
|
|
@@ -1,21 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
for (var e = void 0, i = d.length - 1, o; i >= 0; i--)
|
|
7
|
-
(o = d[i]) && (e = o(t, n, e) || e);
|
|
8
|
-
return e && p(t, 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
|
-
|
|
7
|
+
import { html, } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import { Cre8Element } from '../cre8-element';
|
|
10
|
+
import styles from './section.styles.js';
|
|
11
|
+
/**
|
|
12
|
+
* The section component acts as a block level HTML element that takes a 'headline' property
|
|
13
|
+
* that renders the section's heading which wraps around any HTML template
|
|
14
|
+
* that is found under this heading in the page layout.
|
|
15
|
+
*
|
|
16
|
+
* # How to Use
|
|
17
|
+
* 1. Use the headline attribute to create the section header, or if you need a more custom header
|
|
18
|
+
* there is a slot="header" that you can target for inserting a custom template.
|
|
19
|
+
* 2. For the main body contents, any html template can be placed inside the cre8-section component
|
|
20
|
+
* and will automatically render below the header.
|
|
21
|
+
*
|
|
22
|
+
* Note: for a section with a dark background please control this with the internal Components' inverted attributes.
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* @slot The content of the section should go here.
|
|
26
|
+
* It could be a cre8-text-passage, a cre8-card or any other block level html.
|
|
27
|
+
*/
|
|
28
|
+
export class Cre8Section extends Cre8Element {
|
|
29
|
+
render() {
|
|
30
|
+
const componentClassName = this.componentClassNames('cre8-c-section', {});
|
|
31
|
+
return html `
|
|
32
|
+
<section class="${componentClassName}">
|
|
33
|
+
${this.headline
|
|
34
|
+
? html `<header class="cre8-c-section__header">
|
|
16
35
|
<cre8-heading tagVariant="h2">${this.headline}</cre8-heading>
|
|
17
36
|
<slot name="header"></slot>
|
|
18
|
-
</header>`
|
|
37
|
+
</header>`
|
|
38
|
+
: html `<header class="cre8-c-section__header">
|
|
19
39
|
<slot name="header"></slot>
|
|
20
40
|
</header>`}
|
|
21
41
|
<div class="cre8-c-section__body">
|
|
@@ -23,15 +43,14 @@ const a = class a extends c {
|
|
|
23
43
|
</div>
|
|
24
44
|
</section>
|
|
25
45
|
`;
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
customElements.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
Cre8Section.styles = [styles];
|
|
49
|
+
__decorate([
|
|
50
|
+
property()
|
|
51
|
+
], Cre8Section.prototype, "headline", void 0);
|
|
52
|
+
if (customElements.get('cre8-section') === undefined) {
|
|
53
|
+
customElements.define('cre8-section', Cre8Section);
|
|
54
|
+
}
|
|
55
|
+
export default Cre8Section;
|
|
56
|
+
//# sourceMappingURL=section.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.js","sourceRoot":"","sources":["../../../components/section/section.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;AACzC;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAU1C,MAAM;QACF,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAA;wBACO,kBAAkB;UAChC,IAAI,CAAC,QAAQ;YACf,CAAC,CAAC,IAAI,CAAA;8CACgC,IAAI,CAAC,QAAQ;;sBAErC;YACd,CAAC,CAAC,IAAI,CAAA;;sBAEQ;;;;;KAKjB,CAAC;IACJ,CAAC;;AA3BQ,kBAAM,GAAG,CAAC,MAAM,CAAC,CAAC;AAOvB;IADH,QAAQ,EAAE;6CACW;AAuBxB,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 './section.styles.js';\n/**\n * The section component acts as a block level HTML element that takes a 'headline' property\n * that renders the section's heading which wraps around any HTML template\n * that is found under this heading in the page layout.\n *\n * # How to Use\n * 1. Use the headline attribute to create the section header, or if you need a more custom header\n * there is a slot=\"header\" that you can target for inserting a custom template.\n * 2. For the main body contents, any html template can be placed inside the cre8-section component\n * and will automatically render below the header.\n *\n * Note: for a section with a dark background please control this with the internal Components' inverted attributes.\n *\n *\n * @slot The content of the section should go here.\n * It could be a cre8-text-passage, a cre8-card or any other block level html.\n */\n\nexport class Cre8Section extends Cre8Element {\n static styles = [styles];\n\n /**\n * The Headline will be rendered as the Section Headline with the correct brand styling applied\n */\n\n @property()\n headline?: string;\n\n render() {\n const componentClassName = this.componentClassNames('cre8-c-section', {});\n\n return html`\n <section class=\"${componentClassName}\">\n ${this.headline\n ? html`<header class=\"cre8-c-section__header\">\n <cre8-heading tagVariant=\"h2\">${this.headline}</cre8-heading>\n <slot name=\"header\"></slot>\n </header>`\n : html`<header class=\"cre8-c-section__header\">\n <slot name=\"header\"></slot>\n </header>`}\n <div class=\"cre8-c-section__body\">\n <slot></slot>\n </div>\n </section>\n `;\n }\n}\n\nif (customElements.get('cre8-section') === undefined) {\n customElements.define('cre8-section', Cre8Section);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cre8-section': Cre8Section;\n }\n}\n\nexport default Cre8Section;\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}#SECTION .cre8-c-section{margin-bottom:2rem;display:block}.cre8-c-section-header{display:flex;justify-content:space-between}.cre8-c-section__body{padding-top:1rem}@media all and (min-width: 960px){.cre8-c-section__body{padding-top:2rem}}`;
|
|
3
|
+
export default styles;
|
|
4
|
+
//# sourceMappingURL=section.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.styles.js","sourceRoot":"","sources":["../../../components/section/section.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,MAAM,MAAM,GAAG,GAAG,CAAA,u/DAAu/D,CAAC;AAC1gE,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}#SECTION .cre8-c-section{margin-bottom:2rem;display:block}.cre8-c-section-header{display:flex;justify-content:space-between}.cre8-c-section__body{padding-top:1rem}@media all and (min-width: 960px){.cre8-c-section__body{padding-top:2rem}}`;\nexport default styles;\n"]}
|