@tmorrow/cre8-wc 1.0.26 → 1.1.2
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 +9082 -15604
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +1231 -8308
- package/cdn/cre8-wc.min.js.map +1 -1
- package/lib/cdn-entry.d.ts +20 -2
- package/lib/cdn-entry.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +18 -64
- package/lib/components/accordion/accordion.styles.d.ts.map +1 -1
- package/lib/components/accordion-item/accordion-item.js +35 -238
- package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -1
- package/lib/components/alert/alert.js +56 -221
- package/lib/components/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/badge/badge.js +33 -164
- package/lib/components/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/band/band.js +11 -261
- package/lib/components/band/band.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +14 -33
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +10 -45
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -1
- package/lib/components/button/button.js +14 -14
- package/lib/components/button-group/button-group.js +10 -261
- package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/card/card.js +17 -130
- package/lib/components/card/card.styles.d.ts.map +1 -1
- package/lib/components/chart/chart.js +137 -223
- package/lib/components/chart/chart.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.js +26 -59
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.js +38 -205
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
- package/lib/components/danger-button/danger-button.js +53 -582
- package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/date-picker.js +262 -499
- package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/divider/divider.js +20 -61
- package/lib/components/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/dropdown/dropdown.js +34 -107
- package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.js +18 -49
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -1
- package/lib/components/feature/feature.js +19 -81
- package/lib/components/feature/feature.styles.d.ts.map +1 -1
- package/lib/components/field/field.js +12 -146
- package/lib/components/field/field.styles.d.ts.map +1 -1
- package/lib/components/field-note/field-note.js +22 -66
- package/lib/components/field-note/field-note.styles.d.ts.map +1 -1
- package/lib/components/footer/footer.js +10 -29
- package/lib/components/footer/footer.styles.d.ts.map +1 -1
- package/lib/components/global-nav/global-nav.js +20 -43
- package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -1
- package/lib/components/global-nav-item/global-nav-item.js +26 -105
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -1
- package/lib/components/grid/grid.js +15 -337
- package/lib/components/grid/grid.styles.d.ts.map +1 -1
- package/lib/components/grid-item/grid-item.js +7 -15
- package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -1
- package/lib/components/header/header.js +17 -80
- package/lib/components/header/header.styles.d.ts.map +1 -1
- package/lib/components/heading/heading.js +16 -153
- package/lib/components/heading/heading.styles.d.ts.map +1 -1
- package/lib/components/hero/hero.js +17 -149
- package/lib/components/hero/hero.styles.d.ts.map +1 -1
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon.styles.d.ts.map +1 -1
- package/lib/components/inline-alert/inline-alert.js +53 -214
- package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
- package/lib/components/layout/layout.js +20 -53
- package/lib/components/layout/layout.styles.d.ts.map +1 -1
- package/lib/components/layout-container/layout-container.js +20 -43
- package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -1
- package/lib/components/layout-section/layout-section.js +20 -29
- package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -1
- package/lib/components/linelength-container/linelength-container.js +7 -15
- package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -1
- package/lib/components/link/link.js +33 -228
- package/lib/components/link/link.styles.d.ts.map +1 -1
- package/lib/components/link-list/link-list.js +23 -129
- package/lib/components/link-list/link-list.styles.d.ts.map +1 -1
- package/lib/components/link-list-item/link-list-item.js +19 -80
- package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -1
- package/lib/components/list/list.js +17 -67
- package/lib/components/list/list.styles.d.ts.map +1 -1
- package/lib/components/list-item/list-item.js +11 -16
- package/lib/components/list-item/list-item.styles.d.ts.map +1 -1
- package/lib/components/loading-spinner/loading-spinner.js +13 -157
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -1
- package/lib/components/logo/logo.js +20 -30
- package/lib/components/logo/logo.styles.d.ts.map +1 -1
- package/lib/components/main/main.js +18 -42
- package/lib/components/main/main.styles.d.ts.map +1 -1
- package/lib/components/modal/modal.d.ts +1 -0
- package/lib/components/modal/modal.d.ts.map +1 -1
- package/lib/components/modal/modal.js +52 -217
- package/lib/components/modal/modal.styles.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select.js +71 -532
- package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
- package/lib/components/nav-container/nav-container.js +5 -40
- package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
- package/lib/components/page-header/page-header.js +19 -54
- package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
- package/lib/components/pagination/pagination.js +102 -183
- package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/percent-bar/percent-bar.js +22 -50
- package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
- package/lib/components/popover/popover.js +51 -220
- package/lib/components/popover/popover.styles.d.ts.map +1 -1
- package/lib/components/primary-nav/primary-nav.js +17 -51
- package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
- package/lib/components/primary-nav-item/primary-nav-item.js +24 -191
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/progress-meter/progress-meter.js +23 -127
- package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
- package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.js +27 -118
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
- package/lib/components/radio-field/radio-field.js +28 -64
- package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
- package/lib/components/radio-field-item/radio-field-item.js +54 -189
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
- package/lib/components/remove-tag/remove-tag.js +36 -129
- package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
- package/lib/components/section/section.js +19 -50
- package/lib/components/section/section.styles.d.ts.map +1 -1
- package/lib/components/select/select.js +43 -416
- package/lib/components/select/select.styles.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.js +18 -442
- package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
- package/lib/components/select-tile-list/select-tile-list.js +24 -62
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
- package/lib/components/skeleton-loader/skeleton-loader.js +19 -73
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
- package/lib/components/split-button/split-button.js +21 -37
- package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
- package/lib/components/submenu/submenu.js +8 -18
- package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
- package/lib/components/submenu-item/submenu-item.js +21 -42
- package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
- package/lib/components/tab/tab.js +17 -100
- package/lib/components/tab/tab.styles.d.ts.map +1 -1
- package/lib/components/tab-panel/tab-panel.js +18 -52
- package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
- package/lib/components/table/table.js +21 -73
- package/lib/components/table/table.styles.d.ts.map +1 -1
- package/lib/components/table-body/table-body.js +12 -24
- package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
- package/lib/components/table-cell/table-cell.js +29 -69
- package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
- package/lib/components/table-header/table-header.js +8 -39
- package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
- package/lib/components/table-header-cell/table-header-cell.js +18 -37
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
- package/lib/components/table-object/table-object.js +13 -32
- package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
- package/lib/components/table-row/table-row.js +33 -139
- package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +24 -339
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/tag/tag.js +44 -159
- package/lib/components/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/tag-list/tag-list.js +20 -51
- package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav/tertiary-nav.js +21 -54
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +18 -68
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/text-link/text-link.js +20 -85
- package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage.js +17 -189
- package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
- package/lib/components/tooltip/tooltip.js +57 -248
- package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/utility-nav/utility-nav.js +23 -56
- package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
- package/lib/components/utility-nav-item/utility-nav-item.js +28 -83
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -1
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +2 -2
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -1
- package/lib/design-tokens/core/scss/theming/component.scss +5 -5
- package/lib/design-tokens/core/scss/theming/functions.scss +4 -0
- package/lib/design-tokens/core/scss/theming/spacing.scss +60 -60
- package/lib/design-tokens/core/scss/theming/variables.scss +11 -11
- package/lib/design-tokens/mixins/typography-usage.scss +277 -277
- package/lib/design-tokens/tokens_netflix.theme.d.ts.map +1 -1
- package/lib/{icon-DImqxDiW.js → icon-D22g8aWB.js} +35 -138
- package/lib/index.js +1 -1
- package/package.json +14 -8
|
@@ -1,259 +1,64 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as v, html as c, nothing as n } from "lit";
|
|
2
2
|
import { property as r } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined as l } from "lit-html/directives/if-defined.js";
|
|
4
|
-
import { Cre8Element as
|
|
5
|
-
const
|
|
4
|
+
import { Cre8Element as k } from "../cre8-element.js";
|
|
5
|
+
const f = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
6
6
|
<path d="M8 0C6.41775 0 4.87103 0.469192 3.55544 1.34824C2.23985 2.22729 1.21447 3.47672 0.608967 4.93853C0.00346628 6.40034 -0.15496 8.00887 0.153721 9.56072C0.462403 11.1126 1.22433 12.538 2.34315 13.6569C3.46197 14.7757 4.88743 15.5376 6.43928 15.8463C7.99113 16.155 9.59966 15.9965 11.0615 15.391C12.5233 14.7855 13.7727 13.7602 14.6518 12.4446C15.5308 11.129 16 9.58225 16 8C15.9978 5.87895 15.1542 3.84542 13.6544 2.34562C12.1546 0.845814 10.121 0.00223986 8 0ZM11.0769 8.61538H6.40846L7.82 10.0262C7.87718 10.0833 7.92253 10.1512 7.95347 10.2259C7.98442 10.3006 8.00034 10.3807 8.00034 10.4615C8.00034 10.5424 7.98442 10.6225 7.95347 10.6972C7.92253 10.7719 7.87718 10.8397 7.82 10.8969C7.76283 10.9541 7.69495 10.9994 7.62025 11.0304C7.54554 11.0613 7.46548 11.0773 7.38462 11.0773C7.30376 11.0773 7.22369 11.0613 7.14899 11.0304C7.07429 10.9994 7.00641 10.9541 6.94923 10.8969L4.48769 8.43538C4.43048 8.37823 4.38509 8.31036 4.35412 8.23565C4.32315 8.16095 4.30721 8.08087 4.30721 8C4.30721 7.91913 4.32315 7.83905 4.35412 7.76434C4.38509 7.68964 4.43048 7.62177 4.48769 7.56461L6.94923 5.10308C7.0647 4.9876 7.22132 4.92273 7.38462 4.92273C7.54792 4.92273 7.70453 4.9876 7.82 5.10308C7.93547 5.21855 8.00034 5.37516 8.00034 5.53846C8.00034 5.70176 7.93547 5.85837 7.82 5.97385L6.40846 7.38461H11.0769C11.2401 7.38461 11.3967 7.44945 11.5121 7.56486C11.6275 7.68026 11.6923 7.83679 11.6923 8C11.6923 8.16321 11.6275 8.31973 11.5121 8.43514C11.3967 8.55055 11.2401 8.61538 11.0769 8.61538Z"/>
|
|
7
7
|
</svg>
|
|
8
|
-
`, g =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.cre8-c-link {
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
text-decoration: none;
|
|
17
|
-
height: 100%;
|
|
18
|
-
color: var(--cre8-color-content-link);
|
|
19
|
-
|
|
20
|
-
&:hover {
|
|
21
|
-
.cre8-c-link__text,
|
|
22
|
-
.cre8-c-link__text-area {
|
|
23
|
-
color: var(--cre8-color-content-link-hover);
|
|
24
|
-
border-color: var(--cre8-color-border-transparent);
|
|
25
|
-
background-color: var(--cre8-color-bg-opacity-transparent);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&:focus {
|
|
30
|
-
outline: none;
|
|
31
|
-
|
|
32
|
-
.cre8-c-link__text,
|
|
33
|
-
.cre8-c-link__text-area {
|
|
34
|
-
border-color: var(--cre8-color-border-transparent);
|
|
35
|
-
background-color: var(--cre8-color-bg-active);
|
|
36
|
-
color: var(--cre8-color-content-link-focus);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.cre8-c-link__cta-wrapper {
|
|
40
|
-
color: var(--cre8-color-content-link-focus);
|
|
41
|
-
@include focus;
|
|
42
|
-
background-color: var(--cre8-color-button-primary-bg-hover); // TODO: CTA background color token not exists
|
|
43
|
-
border: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--color-border-active-outline);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&:active {
|
|
48
|
-
.cre8-c-link__text,
|
|
49
|
-
.cre8-c-link__text-area {
|
|
50
|
-
border-color: var(--cre8-color-border-transparent);
|
|
51
|
-
background-color: var(--cre8-color-bg-opacity-transparent);
|
|
52
|
-
color: var(--cre8-color-content-link-active);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.cre8-c-link__text-area {
|
|
58
|
-
display: inline-flex;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
text-align: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.cre8-c-link__text {
|
|
65
|
-
@include cre8-typography-body-default-link();
|
|
66
|
-
color: var(--cre8-color-content-link);
|
|
67
|
-
display: inline-flex;
|
|
68
|
-
|
|
69
|
-
.cre8-c-link--sm & {
|
|
70
|
-
@include cre8-typography-body-small-link();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.cre8-c-link--lg & {
|
|
74
|
-
@include cre8-typography-body-large-link();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.cre8-c-link__text {
|
|
79
|
-
.cre8-c-link__no-underline & {
|
|
80
|
-
text-decoration: none;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.cre8-c-link__icon-wrapper {
|
|
85
|
-
display: inline-flex;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.cre8-c-link__icon {
|
|
89
|
-
display: inline-flex;
|
|
90
|
-
height: calc(8px * 3);
|
|
91
|
-
width: calc(8px * 3);
|
|
92
|
-
|
|
93
|
-
.cre8-c-link--sm & {
|
|
94
|
-
--cre8-icon-height: var(--cre8-icon-size-small);
|
|
95
|
-
--cre8-icon-width: var(--cre8-icon-size-small);
|
|
96
|
-
height: calc(8px * 2.75);
|
|
97
|
-
width: calc(8px * 2.75);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.cre8-c-link--lg & {
|
|
101
|
-
--cre8-icon-height: var(--cre8-icon-size-large);
|
|
102
|
-
--cre8-icon-width: var(--cre8-icon-size-large);
|
|
103
|
-
height: calc(8px * 3.25);
|
|
104
|
-
width: calc(8px * 3.25);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.cre8-c-link__variation {
|
|
109
|
-
display: inline-flex;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
align-items: center;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.cre8-c-link__cta-wrapper {
|
|
115
|
-
color: var(--cre8-color-button-primary-content); // TODO: token not defined
|
|
116
|
-
display: inline-flex;
|
|
117
|
-
margin-left: calc(8px * 1);
|
|
118
|
-
padding: var(--cre8-spacing-4);
|
|
119
|
-
background-color: var(--cre8-color-content-link);
|
|
120
|
-
border-radius: var(--cre8-border-radius-round);
|
|
121
|
-
border-width: var(--cre8-border-width-button-default);
|
|
122
|
-
|
|
123
|
-
svg {
|
|
124
|
-
height: calc(8px * 2);
|
|
125
|
-
width: calc(8px * 2);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.cre8-c-link__icon.before {
|
|
130
|
-
padding-right: calc(8px * 1);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.cre8-c-link__icon.after {
|
|
134
|
-
padding-left: calc(8px * 1);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
::slotted([slot='badge']) {
|
|
138
|
-
padding-left: calc(8px * 1);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.cre8-c-link--inverted {
|
|
142
|
-
.cre8-c-link__text {
|
|
143
|
-
color: var(--cre8-color-content-inverse-link);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.cre8-c-link__icon {
|
|
147
|
-
color: var(--cre8-color-content-inverse-link);;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.cre8-c-link__cta-wrapper {
|
|
151
|
-
--cre8-icon-fill: var(--cre8-color-content-brand);
|
|
152
|
-
color: var(--cre8-color-content-brand);
|
|
153
|
-
background-color: var(--cre8-color-content-inverse-link);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
&:hover {
|
|
157
|
-
.cre8-c-link__text,
|
|
158
|
-
.cre8-c-link__text-area {
|
|
159
|
-
color: var(--cre8-color-content-inverse-link-hover);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.cre8-c-link__icon {
|
|
163
|
-
fill: var(--cre8-color-content-inverse-link-hover);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&:active {
|
|
168
|
-
.cre8-c-link__text,
|
|
169
|
-
.cre8-c-link__text-area {
|
|
170
|
-
color: var(--cre8-color-content-inverse-link-active);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.cre8-c-link__icon {
|
|
174
|
-
fill: var(--cre8-color-content-inverse-link-active);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&:focus {
|
|
179
|
-
outline: none;
|
|
180
|
-
.cre8-c-link__icon {
|
|
181
|
-
background-color: var(--cre8-color-bg-inverse-active);
|
|
182
|
-
fill: var(--cre8-color-content-inverse-link-focus);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.cre8-c-link__text,
|
|
186
|
-
.cre8-c-link__text-area {
|
|
187
|
-
background-color: var(--cre8-color-bg-inverse-active);
|
|
188
|
-
color: var(--cre8-color-content-inverse-link-focus);
|
|
189
|
-
}
|
|
190
|
-
.cre8-c-link__cta-wrapper {
|
|
191
|
-
background-color: var(--cre8-color-content-inverse-link);
|
|
192
|
-
color: var(--cre8-color-content-inverse-link-focus);
|
|
193
|
-
outline: var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-content-inverse-link); //TODO: token not exists cre8-color-border-inverse-active-outline
|
|
194
|
-
outline-offset: calc(8px * 0.25);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
cre8-icon {
|
|
200
|
-
display: flex;
|
|
201
|
-
align-items: center;
|
|
202
|
-
}
|
|
203
|
-
`;
|
|
204
|
-
var f = Object.defineProperty, c = (d, t, p, u) => {
|
|
205
|
-
for (var o = void 0, a = d.length - 1, v; a >= 0; a--)
|
|
206
|
-
(v = d[a]) && (o = v(t, p, o) || o);
|
|
207
|
-
return o && f(t, p, o), o;
|
|
8
|
+
`, g = v`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:inline-flex}.cre8-c-link{display:inline-flex;text-decoration:none;height:100%;color:var(--cre8-color-content-link)}.cre8-c-link:hover .cre8-c-link__text,.cre8-c-link:hover .cre8-c-link__text-area{color:var(--cre8-color-content-link-hover);border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent)}.cre8-c-link:focus{outline:none}.cre8-c-link:focus .cre8-c-link__text,.cre8-c-link:focus .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-active);color:var(--cre8-color-content-link-focus)}.cre8-c-link:focus .cre8-c-link__cta-wrapper{color:var(--cre8-color-content-link-focus);outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem;background-color:var(--cre8-color-button-primary-bg-hover);border:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--color-border-active-outline)}.cre8-c-link:active .cre8-c-link__text,.cre8-c-link:active .cre8-c-link__text-area{border-color:var(--cre8-color-border-transparent);background-color:var(--cre8-color-bg-opacity-transparent);color:var(--cre8-color-content-link-active)}.cre8-c-link__text-area{display:inline-flex;justify-content:center;text-align:center;align-items:center}.cre8-c-link__text{font-family:var(--cre8-typography-body-default-link-font-family);font-size:var(--cre8-typography-body-default-link-font-size);font-weight:var(--cre8-typography-body-default-link-font-weight);line-height:var(--cre8-typography-body-default-link-line-height);text-decoration:var(--cre8-typography-body-default-link-text-decoration);text-transform:var(--cre8-typography-body-default-link-text-transform);color:var(--cre8-color-content-link);display:inline-flex}.cre8-c-link--sm .cre8-c-link__text{font-family:var(--cre8-typography-body-small-link-font-family);font-size:var(--cre8-typography-body-small-link-font-size);font-weight:var(--cre8-typography-body-small-link-font-weight);line-height:var(--cre8-typography-body-small-link-line-height);text-decoration:var(--cre8-typography-body-small-link-text-decoration);text-transform:var(--cre8-typography-body-small-link-text-transform)}.cre8-c-link--lg .cre8-c-link__text{font-family:var(--cre8-typography-body-large-link-font-family);font-size:var(--cre8-typography-body-large-link-font-size);font-weight:var(--cre8-typography-body-large-link-font-weight);line-height:var(--cre8-typography-body-large-link-line-height);text-decoration:var(--cre8-typography-body-large-link-text-decoration);text-transform:var(--cre8-typography-body-large-link-text-transform)}.cre8-c-link__no-underline .cre8-c-link__text{text-decoration:none}.cre8-c-link__icon-wrapper{display:inline-flex}.cre8-c-link__icon{display:inline-flex;height:1.5rem;width:1.5rem}.cre8-c-link--sm .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-small);--cre8-icon-width: var(--cre8-icon-size-small);height:1.375rem;width:1.375rem}.cre8-c-link--lg .cre8-c-link__icon{--cre8-icon-height: var(--cre8-icon-size-large);--cre8-icon-width: var(--cre8-icon-size-large);height:1.625rem;width:1.625rem}.cre8-c-link__variation{display:inline-flex;justify-content:center;align-items:center}.cre8-c-link__cta-wrapper{color:var(--cre8-color-button-primary-content);display:inline-flex;margin-left:0.5rem;padding:var(--cre8-spacing-4);background-color:var(--cre8-color-content-link);border-radius:var(--cre8-border-radius-round);border-width:var(--cre8-border-width-button-default)}.cre8-c-link__cta-wrapper svg{height:1rem;width:1rem}.cre8-c-link__icon.before{padding-right:0.5rem}.cre8-c-link__icon.after{padding-left:0.5rem}::slotted([slot=badge]){padding-left:0.5rem}.cre8-c-link--inverted .cre8-c-link__text{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__icon{color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted .cre8-c-link__cta-wrapper{--cre8-icon-fill: var(--cre8-color-content-brand);color:var(--cre8-color-content-brand);background-color:var(--cre8-color-content-inverse-link)}.cre8-c-link--inverted:hover .cre8-c-link__text,.cre8-c-link--inverted:hover .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:hover .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-hover)}.cre8-c-link--inverted:active .cre8-c-link__text,.cre8-c-link--inverted:active .cre8-c-link__text-area{color:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:active .cre8-c-link__icon{fill:var(--cre8-color-content-inverse-link-active)}.cre8-c-link--inverted:focus{outline:none}.cre8-c-link--inverted:focus .cre8-c-link__icon{background-color:var(--cre8-color-bg-inverse-active);fill:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__text,.cre8-c-link--inverted:focus .cre8-c-link__text-area{background-color:var(--cre8-color-bg-inverse-active);color:var(--cre8-color-content-inverse-link-focus)}.cre8-c-link--inverted:focus .cre8-c-link__cta-wrapper{background-color:var(--cre8-color-content-inverse-link);color:var(--cre8-color-content-inverse-link-focus);outline:var(--cre8-border-width-focus) var(--cre8-border-style-default) var(--cre8-color-content-inverse-link);outline-offset:0.125rem}cre8-icon{display:flex;align-items:center}`;
|
|
9
|
+
var y = Object.defineProperty, t = (d, o, p, m) => {
|
|
10
|
+
for (var i = void 0, a = d.length - 1, h; a >= 0; a--)
|
|
11
|
+
(h = d[a]) && (i = h(o, p, i) || i);
|
|
12
|
+
return i && y(o, p, i), i;
|
|
208
13
|
};
|
|
209
|
-
const s = class s extends
|
|
14
|
+
const s = class s extends k {
|
|
210
15
|
constructor() {
|
|
211
16
|
super(...arguments), this.iconRotateDegree = 0, this.iconPosition = void 0, this.ctaIcon = "arrow-forward";
|
|
212
17
|
}
|
|
213
18
|
generateIcon() {
|
|
214
|
-
return this.iconName ?
|
|
19
|
+
return this.iconName ? c`
|
|
215
20
|
<div class="cre8-c-link__icon-wrapper">
|
|
216
21
|
<cre8-icon-legacy
|
|
217
22
|
class="cre8-c-link__icon ${this.iconPosition}"
|
|
218
23
|
aria-hidden="true"
|
|
219
24
|
name="${l(this.iconName)}">
|
|
220
25
|
</cre8-icon-legacy>
|
|
221
|
-
</div>` : this.svg ?
|
|
26
|
+
</div>` : this.svg ? c`
|
|
222
27
|
<div class="cre8-c-link__icon-wrapper">
|
|
223
28
|
<cre8-icon
|
|
224
29
|
class="cre8-c-link__icon ${this.iconPosition}"
|
|
225
30
|
aria-hidden="true"
|
|
226
31
|
svg='${this.svg}' rotate="${Number(this.iconRotateDegree)}" flip="${this.iconFlipDirection}">
|
|
227
32
|
</cre8-icon>
|
|
228
|
-
</div>` :
|
|
33
|
+
</div>` : n;
|
|
229
34
|
}
|
|
230
35
|
render() {
|
|
231
|
-
const
|
|
36
|
+
const o = this.componentClassNames("cre8-c-link", {
|
|
232
37
|
"cre8-c-link--inverted": this.inverted,
|
|
233
38
|
"cre8-c-link--sm": this.size === "sm",
|
|
234
39
|
"cre8-c-link--lg": this.size === "lg",
|
|
235
40
|
"cre8-c-link__no-underline": this.noUnderline
|
|
236
41
|
});
|
|
237
|
-
return
|
|
42
|
+
return c`
|
|
238
43
|
<a
|
|
239
|
-
class="${
|
|
44
|
+
class="${o}"
|
|
240
45
|
href="${l(this.href)}"
|
|
241
46
|
rel="${l(this.rel)}"
|
|
242
47
|
target="${l(this.target)}"
|
|
243
48
|
>
|
|
244
49
|
<div class="cre8-c-link__text-area">
|
|
245
|
-
${this.iconPosition === "before" ?
|
|
50
|
+
${this.iconPosition === "before" ? c`${this.generateIcon()}` : n}
|
|
246
51
|
<span class="cre8-c-link__text">
|
|
247
52
|
<slot></slot>
|
|
248
53
|
</span>
|
|
249
|
-
${this.iconPosition === "after" ?
|
|
54
|
+
${this.iconPosition === "after" ? c`${this.generateIcon()}` : n}
|
|
250
55
|
</div>
|
|
251
56
|
<div class="cre8-c-link__variation">
|
|
252
57
|
<slot name="badge"></slot>
|
|
253
|
-
${this.ctaLink ?
|
|
254
|
-
<cre8-icon class="cre8-c-link__action" svg='${
|
|
58
|
+
${this.ctaLink ? c`<div class="cre8-c-link__cta-wrapper">
|
|
59
|
+
<cre8-icon class="cre8-c-link__action" svg='${f}'
|
|
255
60
|
rotate="180" aria-hidden="true"></cre8-icon>
|
|
256
|
-
</div>` :
|
|
61
|
+
</div>` : n}
|
|
257
62
|
</div>
|
|
258
63
|
</a>
|
|
259
64
|
`;
|
|
@@ -261,43 +66,43 @@ const s = class s extends _ {
|
|
|
261
66
|
};
|
|
262
67
|
s.styles = [g];
|
|
263
68
|
let e = s;
|
|
264
|
-
|
|
69
|
+
t([
|
|
265
70
|
r()
|
|
266
71
|
], e.prototype, "href");
|
|
267
|
-
|
|
72
|
+
t([
|
|
268
73
|
r()
|
|
269
74
|
], e.prototype, "rel");
|
|
270
|
-
|
|
75
|
+
t([
|
|
271
76
|
r()
|
|
272
77
|
], e.prototype, "target");
|
|
273
|
-
|
|
78
|
+
t([
|
|
274
79
|
r()
|
|
275
80
|
], e.prototype, "iconName");
|
|
276
|
-
|
|
81
|
+
t([
|
|
277
82
|
r()
|
|
278
83
|
], e.prototype, "svg");
|
|
279
|
-
|
|
84
|
+
t([
|
|
280
85
|
r({ type: Number })
|
|
281
86
|
], e.prototype, "iconRotateDegree");
|
|
282
|
-
|
|
87
|
+
t([
|
|
283
88
|
r()
|
|
284
89
|
], e.prototype, "iconFlipDirection");
|
|
285
|
-
|
|
90
|
+
t([
|
|
286
91
|
r()
|
|
287
92
|
], e.prototype, "iconPosition");
|
|
288
|
-
|
|
93
|
+
t([
|
|
289
94
|
r()
|
|
290
95
|
], e.prototype, "ctaIcon");
|
|
291
|
-
|
|
96
|
+
t([
|
|
292
97
|
r({ type: Boolean })
|
|
293
98
|
], e.prototype, "ctaLink");
|
|
294
|
-
|
|
99
|
+
t([
|
|
295
100
|
r({ type: Boolean })
|
|
296
101
|
], e.prototype, "noUnderline");
|
|
297
|
-
|
|
102
|
+
t([
|
|
298
103
|
r()
|
|
299
104
|
], e.prototype, "size");
|
|
300
|
-
|
|
105
|
+
t([
|
|
301
106
|
r({ type: Boolean })
|
|
302
107
|
], e.prototype, "inverted");
|
|
303
108
|
customElements.get("cre8-link") === void 0 && customElements.define("cre8-link", e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.styles.d.ts","sourceRoot":"","sources":["../../../components/link/link.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"link.styles.d.ts","sourceRoot":"","sources":["../../../components/link/link.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAk9N,CAAC;AAC/9N,eAAe,MAAM,CAAC"}
|
|
@@ -1,121 +1,15 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
1
|
+
import { css as d, html as p } from "lit";
|
|
2
|
+
import { property as r } from "lit/decorators.js";
|
|
3
3
|
import { Cre8Element as m } from "../cre8-element.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
.cre8-c-link-list {
|
|
11
|
-
@include cre8-typography-body-default;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
padding: 0;
|
|
15
|
-
margin-top: calc(8px * -2);
|
|
16
|
-
list-style: none;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Slotted link list item
|
|
20
|
-
*/
|
|
21
|
-
::slotted(cre8-link-list-item) {
|
|
22
|
-
margin-top: calc(8px * 2);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* A secondary link list
|
|
28
|
-
* 1) Uses a more subtle treatment than the default link list
|
|
29
|
-
* 2) TODO: Create a tier 2 token for secondary link colors
|
|
30
|
-
*/
|
|
31
|
-
.cre8-c-link-list--secondary {
|
|
32
|
-
--cre8-link-list-item-active-text-color: var(--cre8-color-content-default); /* 2 */
|
|
33
|
-
color: var(--cre8-color-content-subtle);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Inverted link list
|
|
38
|
-
* 1) Link list on a dark background
|
|
39
|
-
*/
|
|
40
|
-
.cre8-c-link-list--inverted {
|
|
41
|
-
--cre8-link-list-link-color: var(--cre8-color-content-knockout);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Display link list
|
|
46
|
-
*/
|
|
47
|
-
.cre8-c-link-list--display {
|
|
48
|
-
color: var(--cre8-color-content-strong);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Condensed link list
|
|
53
|
-
* 1) Removes spacing between link list items
|
|
54
|
-
*/
|
|
55
|
-
.cre8-c-link-list--condensed {
|
|
56
|
-
margin-top: calc(8px * -1.25);
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Slotted link list item within condensed link list
|
|
60
|
-
*/
|
|
61
|
-
::slotted(cre8-link-list-item) {
|
|
62
|
-
margin-top: calc(8px * 1.25);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Small link list
|
|
68
|
-
*/
|
|
69
|
-
.cre8-c-link-list--sm {
|
|
70
|
-
@include cre8-typography-body-small;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Horizontal behavior
|
|
75
|
-
* 1) Displays as a horizontal list
|
|
76
|
-
*/
|
|
77
|
-
.cre8-c-link-list--horizontal {
|
|
78
|
-
flex-direction: row;
|
|
79
|
-
flex-wrap: wrap;
|
|
80
|
-
margin: calc(8px * -1) 0 0 calc(8px * -2);
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Slotted link list item within horizontal link list
|
|
84
|
-
*/
|
|
85
|
-
::slotted(cre8-link-list-item) {
|
|
86
|
-
margin-top: calc(8px * 1);
|
|
87
|
-
margin-left: calc(8px * 2);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Responsive behavior
|
|
93
|
-
* 1) Displays as a horizontal list on small screens and moves to a vertical
|
|
94
|
-
*/
|
|
95
|
-
.cre8-c-link-list--responsive {
|
|
96
|
-
@media all and (max-width:$cre8-breakpoint-md) {
|
|
97
|
-
flex-direction: row;
|
|
98
|
-
flex-wrap: wrap;
|
|
99
|
-
margin: calc(8px * -1) 0 0 calc(8px * -2);
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Slotted link list item within responsive link list
|
|
103
|
-
*/
|
|
104
|
-
::slotted(cre8-link-list-item) {
|
|
105
|
-
margin-top: calc(8px * 1);
|
|
106
|
-
margin-left: calc(8px * 2);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
`;
|
|
111
|
-
var h = Object.defineProperty, l = (o, n, c, v) => {
|
|
112
|
-
for (var t = void 0, s = o.length - 1, a; s >= 0; s--)
|
|
113
|
-
(a = o[s]) && (t = a(n, c, t) || t);
|
|
114
|
-
return t && h(n, c, t), t;
|
|
4
|
+
const h = d`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-link-list{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);display:flex;flex-direction:column;padding:0;margin-top:-1rem;list-style:none}.cre8-c-link-list ::slotted(cre8-link-list-item){margin-top:1rem}.cre8-c-link-list--secondary{--cre8-link-list-item-active-text-color: var(--cre8-color-content-default);color:var(--cre8-color-content-subtle)}.cre8-c-link-list--inverted{--cre8-link-list-link-color: var(--cre8-color-content-knockout)}.cre8-c-link-list--display{color:var(--cre8-color-content-strong)}.cre8-c-link-list--condensed{margin-top:-0.625rem}.cre8-c-link-list--condensed ::slotted(cre8-link-list-item){margin-top:0.625rem}.cre8-c-link-list--sm{font-family:var(--cre8-typography-body-small-font-family);font-size:var(--cre8-typography-body-small-font-size);font-weight:var(--cre8-typography-body-small-font-weight);line-height:var(--cre8-typography-body-small-line-height);text-decoration:var(--cre8-typography-body-small-text-decoration);text-transform:var(--cre8-typography-body-small-text-transform)}.cre8-c-link-list--horizontal{flex-direction:row;flex-wrap:wrap;margin:-0.5rem 0 0 -1rem}.cre8-c-link-list--horizontal ::slotted(cre8-link-list-item){margin-top:0.5rem;margin-left:1rem}@media all and (max-width: 768px){.cre8-c-link-list--responsive{flex-direction:row;flex-wrap:wrap;margin:-0.5rem 0 0 -1rem}.cre8-c-link-list--responsive ::slotted(cre8-link-list-item){margin-top:0.5rem;margin-left:1rem}}`;
|
|
5
|
+
var f = Object.defineProperty, i = (s, a, n, y) => {
|
|
6
|
+
for (var t = void 0, l = s.length - 1, c; l >= 0; l--)
|
|
7
|
+
(c = s[l]) && (t = c(a, n, t) || t);
|
|
8
|
+
return t && f(a, n, t), t;
|
|
115
9
|
};
|
|
116
|
-
const
|
|
10
|
+
const o = class o extends m {
|
|
117
11
|
render() {
|
|
118
|
-
const
|
|
12
|
+
const a = this.componentClassNames("cre8-c-link-list", {
|
|
119
13
|
"cre8-c-link-list--secondary": this.variant === "secondary",
|
|
120
14
|
"cre8-c-link-list--display": this.variant === "display",
|
|
121
15
|
"cre8-c-link-list--inverted": this.inverted === !0,
|
|
@@ -124,29 +18,29 @@ const r = class r extends m {
|
|
|
124
18
|
"cre8-c-link-list--condensed": this.spacing === "condensed",
|
|
125
19
|
"cre8-c-link-list--sm": this.size === "sm"
|
|
126
20
|
});
|
|
127
|
-
return
|
|
128
|
-
<ul class="${
|
|
21
|
+
return p`
|
|
22
|
+
<ul class="${a}">
|
|
129
23
|
<slot></slot>
|
|
130
24
|
</ul>
|
|
131
25
|
`;
|
|
132
26
|
}
|
|
133
27
|
};
|
|
134
|
-
|
|
135
|
-
let e =
|
|
136
|
-
|
|
137
|
-
|
|
28
|
+
o.styles = [h];
|
|
29
|
+
let e = o;
|
|
30
|
+
i([
|
|
31
|
+
r()
|
|
138
32
|
], e.prototype, "behavior");
|
|
139
|
-
|
|
140
|
-
|
|
33
|
+
i([
|
|
34
|
+
r({ type: Boolean, reflect: !0 })
|
|
141
35
|
], e.prototype, "inverted");
|
|
142
|
-
|
|
143
|
-
|
|
36
|
+
i([
|
|
37
|
+
r()
|
|
144
38
|
], e.prototype, "size");
|
|
145
|
-
|
|
146
|
-
|
|
39
|
+
i([
|
|
40
|
+
r()
|
|
147
41
|
], e.prototype, "spacing");
|
|
148
|
-
|
|
149
|
-
|
|
42
|
+
i([
|
|
43
|
+
r()
|
|
150
44
|
], e.prototype, "variant");
|
|
151
45
|
customElements.get("cre8-link-list") === void 0 && customElements.define("cre8-link-list", e);
|
|
152
46
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-list.styles.d.ts","sourceRoot":"","sources":["../../../components/link-list/link-list.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"link-list.styles.d.ts","sourceRoot":"","sources":["../../../components/link-list/link-list.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAm+G,CAAC;AACh/G,eAAe,MAAM,CAAC"}
|
|
@@ -1,89 +1,28 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { ifDefined as
|
|
3
|
-
import { property as
|
|
1
|
+
import { css as m, html as l } from "lit";
|
|
2
|
+
import { ifDefined as h } from "lit-html/directives/if-defined.js";
|
|
3
|
+
import { property as s } from "lit/decorators.js";
|
|
4
4
|
import { Cre8Element as p } from "../cre8-element.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Link list link
|
|
13
|
-
* 1) Set to inherit color so that the link list link. Maybe a TODO
|
|
14
|
-
*/
|
|
15
|
-
.cre8-c-link-list__item {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Link list link
|
|
22
|
-
*/
|
|
23
|
-
.cre8-c-link-list__link {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
color: var(--cre8-link-list-link-color, var(--cre8-color-content-link));
|
|
27
|
-
text-decoration: underline;
|
|
28
|
-
|
|
29
|
-
&:hover,
|
|
30
|
-
&:focus {
|
|
31
|
-
color: var(--cre8-link-list-link-hover-color, var(--cre8-color-content-link-hover));
|
|
32
|
-
text-decoration: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Link list link within active link list item
|
|
37
|
-
* 1) This custom property cascade is set at the link list level
|
|
38
|
-
* 2) TODO: Discuss how we want to handle bold variants since mixins can't get passed down
|
|
39
|
-
*/
|
|
40
|
-
.cre8-c-link-list__item.cre8-is-active & {
|
|
41
|
-
color: var(--cre8-link-list-item-active-text-color);
|
|
42
|
-
font-weight: var(--cre8-font-weight-bold); /* 2 */
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Link list item after
|
|
48
|
-
* 1) Container to place things like badges after an item
|
|
49
|
-
*/
|
|
50
|
-
.cre8-c-link-list__item-before {
|
|
51
|
-
margin-right: calc(8px * 1);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Link list item after
|
|
56
|
-
* 1) Container to place things like badges after an item
|
|
57
|
-
*/
|
|
58
|
-
.cre8-c-link-list__item-after {
|
|
59
|
-
margin-left: calc(8px * 1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
::slotted(cre8-icon-legacy) {
|
|
63
|
-
--cre8-icon-height: #{calc(8px * 3)};
|
|
64
|
-
--cre8-icon-width: #{calc(8px * 3)};
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
67
|
-
var h = Object.defineProperty, r = (c, i, a, v) => {
|
|
68
|
-
for (var e = void 0, l = c.length - 1, m; l >= 0; l--)
|
|
69
|
-
(m = c[l]) && (e = m(i, a, e) || e);
|
|
70
|
-
return e && h(i, a, e), e;
|
|
5
|
+
const f = m`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-link-list__item{display:flex;align-items:center}.cre8-c-link-list__link{display:flex;align-items:center;color:var(--cre8-link-list-link-color, var(--cre8-color-content-link));text-decoration:underline}.cre8-c-link-list__link:hover,.cre8-c-link-list__link:focus{color:var(--cre8-link-list-link-hover-color, var(--cre8-color-content-link-hover));text-decoration:none}.cre8-c-link-list__item.cre8-is-active .cre8-c-link-list__link{color:var(--cre8-link-list-item-active-text-color);font-weight:var(--cre8-font-weight-bold)}.cre8-c-link-list__item-before{margin-right:0.5rem}.cre8-c-link-list__item-after{margin-left:0.5rem}::slotted(cre8-icon-legacy){--cre8-icon-height: 1.5rem;--cre8-icon-width: 1.5rem}`;
|
|
6
|
+
var x = Object.defineProperty, a = (n, i, c, k) => {
|
|
7
|
+
for (var e = void 0, r = n.length - 1, d; r >= 0; r--)
|
|
8
|
+
(d = n[r]) && (e = d(i, c, e) || e);
|
|
9
|
+
return e && x(i, c, e), e;
|
|
71
10
|
};
|
|
72
11
|
const o = class o extends p {
|
|
73
12
|
render() {
|
|
74
13
|
const i = this.componentClassNames("cre8-c-link-list__item", {
|
|
75
14
|
"cre8-is-active": this.isActive === !0
|
|
76
15
|
});
|
|
77
|
-
return
|
|
16
|
+
return l`
|
|
78
17
|
<li class="${i}">
|
|
79
|
-
<a class="cre8-c-link-list__link" href="${
|
|
80
|
-
${this.slotNotEmpty("itemBefore") &&
|
|
18
|
+
<a class="cre8-c-link-list__link" href="${h(this.href)}">
|
|
19
|
+
${this.slotNotEmpty("itemBefore") && l`
|
|
81
20
|
<div class="cre8-c-link-list__item-before">
|
|
82
21
|
<slot name="itemBefore"></slot>
|
|
83
22
|
</div>`}
|
|
84
23
|
<slot></slot>
|
|
85
24
|
</a>
|
|
86
|
-
${this.slotNotEmpty("itemAfter") &&
|
|
25
|
+
${this.slotNotEmpty("itemAfter") && l`
|
|
87
26
|
<div class="cre8-c-link-list__item-after">
|
|
88
27
|
<slot name="itemAfter"></slot>
|
|
89
28
|
</div>`}
|
|
@@ -91,16 +30,16 @@ const o = class o extends p {
|
|
|
91
30
|
`;
|
|
92
31
|
}
|
|
93
32
|
};
|
|
94
|
-
o.styles = [
|
|
33
|
+
o.styles = [f];
|
|
95
34
|
let t = o;
|
|
96
|
-
|
|
97
|
-
|
|
35
|
+
a([
|
|
36
|
+
s()
|
|
98
37
|
], t.prototype, "text");
|
|
99
|
-
|
|
100
|
-
|
|
38
|
+
a([
|
|
39
|
+
s({ type: Boolean, reflect: !0 })
|
|
101
40
|
], t.prototype, "isActive");
|
|
102
|
-
|
|
103
|
-
|
|
41
|
+
a([
|
|
42
|
+
s()
|
|
104
43
|
], t.prototype, "href");
|
|
105
44
|
customElements.get("cre8-link-list-item") === void 0 && customElements.define("cre8-link-list-item", t);
|
|
106
45
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-list-item.styles.d.ts","sourceRoot":"","sources":["../../../components/link-list-item/link-list-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"link-list-item.styles.d.ts","sourceRoot":"","sources":["../../../components/link-list-item/link-list-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAq9E,CAAC;AACl+E,eAAe,MAAM,CAAC"}
|