@tmorrow/cre8-wc 1.0.26 → 1.1.1
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.js +50 -215
- 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 +7 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.styles.d.ts","sourceRoot":"","sources":["../../../components/date-picker/date-picker.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"date-picker.styles.d.ts","sourceRoot":"","sources":["../../../components/date-picker/date-picker.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA00K,CAAC;AACv1K,eAAe,MAAM,CAAC"}
|
|
@@ -1,54 +1,13 @@
|
|
|
1
|
-
import { css as l, html as
|
|
2
|
-
import { property as
|
|
1
|
+
import { css as l, html as h } from "lit";
|
|
2
|
+
import { property as n } from "lit/decorators.js";
|
|
3
3
|
import { Cre8Element as m } from "../cre8-element.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
display: flex;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Divider Element
|
|
14
|
-
*/
|
|
15
|
-
.cre8-c-divider {
|
|
16
|
-
background-color: var(--cre8-color-border-default);
|
|
17
|
-
margin-top: calc(8px * 1);
|
|
18
|
-
margin-bottom: calc(8px * 1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.cre8-c-divider--horizontal {
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: var(--cre8-border-width-default);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.cre8-c-divider--vertical {
|
|
27
|
-
width: var(--cre8-border-width-default);
|
|
28
|
-
height: 100%;
|
|
29
|
-
margin-top: 0;
|
|
30
|
-
margin-bottom: 0;
|
|
31
|
-
margin-left: calc(8px * 1);
|
|
32
|
-
margin-right: calc(8px * 1);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Divider colors
|
|
37
|
-
*/
|
|
38
|
-
.cre8-c-divider--brand {
|
|
39
|
-
background-color: var(--cre8-color-border-brand);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.cre8-c-divider--knockout {
|
|
43
|
-
background-color: var(--cre8-color-border-knockout);
|
|
44
|
-
}
|
|
45
|
-
`;
|
|
46
|
-
var p = Object.defineProperty, n = (c, t, a, u) => {
|
|
47
|
-
for (var r = void 0, o = c.length - 1, d; o >= 0; o--)
|
|
48
|
-
(d = c[o]) && (r = d(t, a, r) || r);
|
|
49
|
-
return r && p(t, a, r), r;
|
|
4
|
+
const p = l`*,::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:flex}.cre8-c-divider{background-color:var(--cre8-color-border-default);margin-top:0.5rem;margin-bottom:0.5rem}.cre8-c-divider--horizontal{width:100%;height:var(--cre8-border-width-default)}.cre8-c-divider--vertical{width:var(--cre8-border-width-default);height:100%;margin-top:0;margin-bottom:0;margin-left:0.5rem;margin-right:0.5rem}.cre8-c-divider--brand{background-color:var(--cre8-color-border-brand)}.cre8-c-divider--knockout{background-color:var(--cre8-color-border-knockout)}`;
|
|
5
|
+
var f = Object.defineProperty, c = (d, t, s, g) => {
|
|
6
|
+
for (var e = void 0, i = d.length - 1, o; i >= 0; i--)
|
|
7
|
+
(o = d[i]) && (e = o(t, s, e) || e);
|
|
8
|
+
return e && f(t, s, e), e;
|
|
50
9
|
};
|
|
51
|
-
const
|
|
10
|
+
const a = class a extends m {
|
|
52
11
|
constructor() {
|
|
53
12
|
super(...arguments), this.variant = "horizontal";
|
|
54
13
|
}
|
|
@@ -59,19 +18,19 @@ const i = class i extends m {
|
|
|
59
18
|
"cre8-c-divider--brand": this.status === "brand",
|
|
60
19
|
"cre8-c-divider--knockout": this.status === "knockout"
|
|
61
20
|
});
|
|
62
|
-
return
|
|
21
|
+
return h` <div class="${t}"><wbr></div> `;
|
|
63
22
|
}
|
|
64
23
|
};
|
|
65
|
-
|
|
66
|
-
let
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
],
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
],
|
|
73
|
-
customElements.get("cre8-divider") === void 0 && customElements.define("cre8-divider",
|
|
24
|
+
a.styles = [p];
|
|
25
|
+
let r = a;
|
|
26
|
+
c([
|
|
27
|
+
n()
|
|
28
|
+
], r.prototype, "variant");
|
|
29
|
+
c([
|
|
30
|
+
n()
|
|
31
|
+
], r.prototype, "status");
|
|
32
|
+
customElements.get("cre8-divider") === void 0 && customElements.define("cre8-divider", r);
|
|
74
33
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
34
|
+
r as Cre8Divider,
|
|
35
|
+
r as default
|
|
77
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.styles.d.ts","sourceRoot":"","sources":["../../../components/divider/divider.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"divider.styles.d.ts","sourceRoot":"","sources":["../../../components/divider/divider.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAgwE,CAAC;AAC7wE,eAAe,MAAM,CAAC"}
|
|
@@ -1,87 +1,14 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { state as
|
|
3
|
-
import { s as
|
|
4
|
-
import { Cre8Element as
|
|
5
|
-
const f =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* 1) Dropdown
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
.cre8-c-dropdown-container {
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
.cre8-c-dropdown {
|
|
18
|
-
border: var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);
|
|
19
|
-
box-shadow: var(--cre8-shadow-default);
|
|
20
|
-
border-radius: var(--cre8-border-radius-default);
|
|
21
|
-
display: none;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
left: 0;
|
|
24
|
-
min-width: 100%;
|
|
25
|
-
padding: var(--cre8-spacing-8);
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 100%;
|
|
28
|
-
white-space: nowrap;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.cre8-c-dropdown--open {
|
|
32
|
-
display: flex;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.cre8-c-dropdown--icon-button {
|
|
36
|
-
color: var(--cre8-color-button-secondary-content);
|
|
37
|
-
margin-top: calc(8px * 1);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.cre8-c-dropdown--icon-link {
|
|
41
|
-
color: var(--cre8-color-content-link);
|
|
42
|
-
margin-top: calc(8px * 1);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.cre8-c-dropdown--toggle {
|
|
46
|
-
@include cre8-typography-label-default;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
display: flex;
|
|
50
|
-
gap: var(--cre8-spacing-8);
|
|
51
|
-
white-space: nowrap;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cre8-c-dropdown--button {
|
|
55
|
-
background-color: var(--cre8-color-button-secondary-bg);
|
|
56
|
-
border: var(--cre8-border-style-default) var(--cre8-border-width-default) var(--cre8-color-button-secondary-border);
|
|
57
|
-
border-radius: var(--cre8-border-radius-button);
|
|
58
|
-
color: var(--cre8-color-button-secondary-content);
|
|
59
|
-
padding: var(--cre8-spacing-8) var(--cre8-spacing-16);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.cre8-c-dropdown--link {
|
|
63
|
-
color: var(--cre8-color-content-link);
|
|
64
|
-
background-color: var(--cre8-color-bg-transparent);
|
|
65
|
-
text-decoration: underline;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
.cre8-c-dropdown--close {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
ul {
|
|
74
|
-
list-style-type: none;
|
|
75
|
-
padding: var(--cre8-spacing-0);
|
|
76
|
-
margin: 0;
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
var v = Object.defineProperty, n = (s, e, a, m) => {
|
|
80
|
-
for (var r = void 0, c = s.length - 1, p; c >= 0; c--)
|
|
81
|
-
(p = s[c]) && (r = p(e, a, r) || r);
|
|
82
|
-
return r && v(e, a, r), r;
|
|
1
|
+
import { css as f, nothing as p, html as o } from "lit";
|
|
2
|
+
import { state as u, property as a, query as w } from "lit/decorators.js";
|
|
3
|
+
import { s as h } from "../../Caret_Down-VI6aytYo.js";
|
|
4
|
+
import { Cre8Element as g } from "../cre8-element.js";
|
|
5
|
+
const m = f`*,::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-dropdown-container{display:inline-flex;position:relative}.cre8-c-dropdown{border:var(--cre8-border-width-default) var(--cre8-border-style-default) var(--cre8-color-border-strong);box-shadow:var(--cre8-shadow-default);border-radius:var(--cre8-border-radius-default);display:none;flex-direction:column;left:0;min-width:100%;padding:var(--cre8-spacing-8);position:absolute;top:100%;white-space:nowrap}.cre8-c-dropdown--open{display:flex}.cre8-c-dropdown--icon-button{color:var(--cre8-color-button-secondary-content);margin-top:0.5rem}.cre8-c-dropdown--icon-link{color:var(--cre8-color-content-link);margin-top:0.5rem}.cre8-c-dropdown--toggle{font-family:var(--cre8-typography-label-default-font-family);font-size:var(--cre8-typography-label-default-font-size);font-weight:var(--cre8-typography-label-default-font-weight);line-height:var(--cre8-typography-label-default-line-height);text-decoration:var(--cre8-typography-label-default-text-decoration);text-transform:var(--cre8-typography-label-default-text-transform);align-items:center;justify-content:space-between;display:flex;gap:var(--cre8-spacing-8);white-space:nowrap}.cre8-c-dropdown--button{background-color:var(--cre8-color-button-secondary-bg);border:var(--cre8-border-style-default) var(--cre8-border-width-default) var(--cre8-color-button-secondary-border);border-radius:var(--cre8-border-radius-button);color:var(--cre8-color-button-secondary-content);padding:var(--cre8-spacing-8) var(--cre8-spacing-16)}.cre8-c-dropdown--link{color:var(--cre8-color-content-link);background-color:var(--cre8-color-bg-transparent);text-decoration:underline}.cre8-c-dropdown--close{display:none}ul{list-style-type:none;padding:var(--cre8-spacing-0);margin:0}`;
|
|
6
|
+
var x = Object.defineProperty, n = (s, t, c, y) => {
|
|
7
|
+
for (var r = void 0, i = s.length - 1, l; i >= 0; i--)
|
|
8
|
+
(l = s[i]) && (r = l(t, c, r) || r);
|
|
9
|
+
return r && x(t, c, r), r;
|
|
83
10
|
};
|
|
84
|
-
const
|
|
11
|
+
const d = class d extends g {
|
|
85
12
|
constructor() {
|
|
86
13
|
super(), this.open = !1, this.buttonText = "", this.dropdownWithLink = !1, this._closeDropdown.bind(this);
|
|
87
14
|
}
|
|
@@ -91,8 +18,8 @@ const i = class i extends b {
|
|
|
91
18
|
disconnectedCallback() {
|
|
92
19
|
super.disconnectedCallback(), document.removeEventListener("click", this._closeDropdown);
|
|
93
20
|
}
|
|
94
|
-
_toggleDropdown(
|
|
95
|
-
|
|
21
|
+
_toggleDropdown(t) {
|
|
22
|
+
t.preventDefault(), t.stopPropagation(), this.open = !this.open, this.open && this._updateDropdownPosition();
|
|
96
23
|
}
|
|
97
24
|
_updateDropdownPosition() {
|
|
98
25
|
this.dropdownContent && this.open && (this.maxHeight && (this.dropdownContent.style.maxHeight = this.maxHeight, this.dropdownContent.style.overflowY = "auto"), this.dropdownWithLink && (this.dropdownContent.style.top = "85%"));
|
|
@@ -101,43 +28,43 @@ const i = class i extends b {
|
|
|
101
28
|
this.open = !1;
|
|
102
29
|
}
|
|
103
30
|
render() {
|
|
104
|
-
const
|
|
31
|
+
const t = this.componentClassNames("cre8-c-dropdown", {
|
|
105
32
|
"cre8-c-dropdown--close": !this.open,
|
|
106
33
|
"cre8-c-dropdown--open": this.open
|
|
107
34
|
});
|
|
108
|
-
return
|
|
35
|
+
return o`
|
|
109
36
|
<div class="cre8-c-dropdown-container">
|
|
110
|
-
${this.dropdownWithLink ?
|
|
111
|
-
${this.buttonText ?
|
|
112
|
-
</a>` :
|
|
113
|
-
${this.buttonText ?
|
|
37
|
+
${this.dropdownWithLink ? o`<a href="#" aria-haspopup="true" class="cre8-c-dropdown--toggle cre8-c-dropdown--link" aria-expanded="${this.open ? "true" : "false"}" @click="${this._toggleDropdown}">${this.buttonText}
|
|
38
|
+
${this.buttonText ? o`<cre8-icon svg='${h}' aria-hidden="true" class="cre8-c-dropdown--icon-link"></cre8-icon>` : p}
|
|
39
|
+
</a>` : o`<button aria-haspopup="true" class="cre8-c-dropdown--toggle cre8-c-dropdown--button" aria-expanded="${this.open ? "true" : "false"}" @click="${this._toggleDropdown}">${this.buttonText}
|
|
40
|
+
${this.buttonText ? o`<cre8-icon svg='${h}' aria-hidden="true" class="cre8-c-dropdown--icon-button"></cre8-icon>` : p}
|
|
114
41
|
</button>`}
|
|
115
|
-
<ul role="list" class="${
|
|
42
|
+
<ul role="list" class="${t}">
|
|
116
43
|
<slot></slot>
|
|
117
44
|
</ul>
|
|
118
45
|
</div>
|
|
119
46
|
`;
|
|
120
47
|
}
|
|
121
48
|
};
|
|
122
|
-
|
|
123
|
-
let
|
|
49
|
+
d.styles = [m];
|
|
50
|
+
let e = d;
|
|
124
51
|
n([
|
|
125
|
-
|
|
126
|
-
],
|
|
52
|
+
u()
|
|
53
|
+
], e.prototype, "open");
|
|
127
54
|
n([
|
|
128
|
-
|
|
129
|
-
],
|
|
55
|
+
a({ type: String })
|
|
56
|
+
], e.prototype, "buttonText");
|
|
130
57
|
n([
|
|
131
|
-
|
|
132
|
-
],
|
|
58
|
+
a()
|
|
59
|
+
], e.prototype, "maxHeight");
|
|
133
60
|
n([
|
|
134
|
-
|
|
135
|
-
],
|
|
61
|
+
w(".cre8-c-dropdown")
|
|
62
|
+
], e.prototype, "dropdownContent");
|
|
136
63
|
n([
|
|
137
|
-
|
|
138
|
-
],
|
|
139
|
-
customElements.get("cre8-dropdown") === void 0 && customElements.define("cre8-dropdown",
|
|
64
|
+
a()
|
|
65
|
+
], e.prototype, "dropdownWithLink");
|
|
66
|
+
customElements.get("cre8-dropdown") === void 0 && customElements.define("cre8-dropdown", e);
|
|
140
67
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
68
|
+
e as Cre8Dropdown,
|
|
69
|
+
e as default
|
|
143
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.styles.d.ts","sourceRoot":"","sources":["../../../components/dropdown/dropdown.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"dropdown.styles.d.ts","sourceRoot":"","sources":["../../../components/dropdown/dropdown.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA87G,CAAC;AAC38G,eAAe,MAAM,CAAC"}
|
|
@@ -1,44 +1,13 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
1
|
+
import { css as n, html as l } from "lit";
|
|
2
|
+
import { property as c } from "lit/decorators.js";
|
|
3
3
|
import { Cre8Element as p } from "../cre8-element.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.cre8-dropdown-item {
|
|
11
|
-
list-style-type: none;
|
|
12
|
-
> {
|
|
13
|
-
button {
|
|
14
|
-
@include cre8-typography-body-default;
|
|
15
|
-
background-color: var(--cre8-color-bg-default);
|
|
16
|
-
border: var(--cre8-border-width-none);
|
|
17
|
-
border-radius: var(--cre8-border-radius-default);
|
|
18
|
-
color: var(--cre8-color-content-default);
|
|
19
|
-
width: 100%;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
margin: var(--cre8-spacing-0);
|
|
22
|
-
padding: var(--cre8-spacing-8) var(--cre8-spacing-8);
|
|
23
|
-
text-align: left;
|
|
24
|
-
|
|
25
|
-
&:active,
|
|
26
|
-
&:hover,
|
|
27
|
-
&:focus {
|
|
28
|
-
background-color: var(--cre8-color-bg-brand-hover);
|
|
29
|
-
color: var(--cre8-color-content-default);
|
|
30
|
-
outline: var(--cre8-border-width-none);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
`;
|
|
36
|
-
var u = Object.defineProperty, v = (i, e, t, b) => {
|
|
37
|
-
for (var r = void 0, n = i.length - 1, s; n >= 0; n--)
|
|
38
|
-
(s = i[n]) && (r = s(e, t, r) || r);
|
|
39
|
-
return r && u(e, t, r), r;
|
|
4
|
+
const h = n`*,::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-dropdown-item{list-style-type:none}.cre8-dropdown-item>button{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);background-color:var(--cre8-color-bg-default);border:var(--cre8-border-width-none);border-radius:var(--cre8-border-radius-default);color:var(--cre8-color-content-default);width:100%;cursor:pointer;margin:var(--cre8-spacing-0);padding:var(--cre8-spacing-8) var(--cre8-spacing-8);text-align:left}.cre8-dropdown-item>button:active,.cre8-dropdown-item>button:hover,.cre8-dropdown-item>button:focus{background-color:var(--cre8-color-bg-brand-hover);color:var(--cre8-color-content-default);outline:var(--cre8-border-width-none)}`;
|
|
5
|
+
var m = Object.defineProperty, f = (d, e, r, g) => {
|
|
6
|
+
for (var t = void 0, i = d.length - 1, s; i >= 0; i--)
|
|
7
|
+
(s = d[i]) && (t = s(e, r, t) || t);
|
|
8
|
+
return t && m(e, r, t), t;
|
|
40
9
|
};
|
|
41
|
-
const
|
|
10
|
+
const o = class o extends p {
|
|
42
11
|
constructor() {
|
|
43
12
|
super(...arguments), this.ariaLabel = "";
|
|
44
13
|
}
|
|
@@ -46,19 +15,19 @@ const a = class a extends p {
|
|
|
46
15
|
this.dispatchEvent(new Event("dropdown-item-selected", e));
|
|
47
16
|
}
|
|
48
17
|
render() {
|
|
49
|
-
const e = this.componentClassNames("cre8-dropdown-item", {}),
|
|
18
|
+
const e = this.componentClassNames("cre8-dropdown-item", {}), r = this.ariaLabel || `Link to ${this.textContent}` || "Drop down Item";
|
|
50
19
|
return l`<li class="${e}" role="listitem">
|
|
51
|
-
<button aria-label="${
|
|
20
|
+
<button aria-label="${r}" @click=${this._handleClick}><slot></slot></button>
|
|
52
21
|
</li>`;
|
|
53
22
|
}
|
|
54
23
|
};
|
|
55
|
-
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
],
|
|
60
|
-
customElements.get("cre8-dropdown-item") === void 0 && customElements.define("cre8-dropdown-item",
|
|
24
|
+
o.styles = [h];
|
|
25
|
+
let a = o;
|
|
26
|
+
f([
|
|
27
|
+
c({ type: String })
|
|
28
|
+
], a.prototype, "ariaLabel");
|
|
29
|
+
customElements.get("cre8-dropdown-item") === void 0 && customElements.define("cre8-dropdown-item", a);
|
|
61
30
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
31
|
+
a as Cre8DropdownItem,
|
|
32
|
+
a as default
|
|
64
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-item.styles.d.ts","sourceRoot":"","sources":["../../../components/dropdown-item/dropdown-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"dropdown-item.styles.d.ts","sourceRoot":"","sources":["../../../components/dropdown-item/dropdown-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAgtF,CAAC;AAC7tF,eAAe,MAAM,CAAC"}
|
|
@@ -1,101 +1,39 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* 1) A Feature is a prominent marketing block that contains
|
|
10
|
-
* Side by side information and an image
|
|
11
|
-
*/
|
|
12
|
-
.cre8-c-feature {
|
|
13
|
-
display: flex; /* 2 */
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: stretch;
|
|
16
|
-
color: var(--cre8-feature-text-color, var(--cre8-theme-color-core-text, var(--cre8-color-neutral-black)));
|
|
17
|
-
border-radius: var(--cre8-feature-border-radius, var(--cre8-border-radius-default, 0));
|
|
18
|
-
|
|
19
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Inverted feature
|
|
26
|
-
*/
|
|
27
|
-
.cre8-c-feature--inverted {
|
|
28
|
-
color: var(--cre8-feature-inverted-text-color, var(--cre8-theme-color-inverted, var(--cre8-color-neutral-white)));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Feature body
|
|
33
|
-
* 1) Container within feature that usually contains an excerpt of text
|
|
34
|
-
* 2) Take up the remaining space on medr screens
|
|
35
|
-
*/
|
|
36
|
-
.cre8-c-feature__body {
|
|
37
|
-
margin-bottom: calc(8px * 4);
|
|
38
|
-
|
|
39
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
flex: 1;
|
|
43
|
-
padding-right: calc(8px * 4);
|
|
44
|
-
margin-bottom: 0;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Feature media container
|
|
50
|
-
*/
|
|
51
|
-
.cre8-c-feature__media {
|
|
52
|
-
width: 100%;
|
|
53
|
-
|
|
54
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
55
|
-
width: 45%;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Feature image
|
|
61
|
-
*/
|
|
62
|
-
.cre8-c-feature__image {
|
|
63
|
-
display: block;
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
`;
|
|
67
|
-
var p = Object.defineProperty, c = (n, t, d, v) => {
|
|
68
|
-
for (var e = void 0, a = n.length - 1, s; a >= 0; a--)
|
|
69
|
-
(s = n[a]) && (e = s(t, d, e) || e);
|
|
70
|
-
return e && p(t, d, e), e;
|
|
1
|
+
import { css as n, html as m } from "lit";
|
|
2
|
+
import { property as a } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as h } from "../cre8-element.js";
|
|
4
|
+
const p = n`*,::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-feature{display:flex;flex-direction:column;align-items:stretch;color:var(--cre8-feature-text-color, var(--cre8-theme-color-core-text, var(--cre8-color-neutral-black)));border-radius:var(--cre8-feature-border-radius, var(--cre8-border-radius-default, 0))}@media all and (min-width: 768px){.cre8-c-feature{flex-direction:row}}.cre8-c-feature--inverted{color:var(--cre8-feature-inverted-text-color, var(--cre8-theme-color-inverted, var(--cre8-color-neutral-white)))}.cre8-c-feature__body{margin-bottom:2rem}@media all and (min-width: 768px){.cre8-c-feature__body{display:flex;flex-direction:column;flex:1;padding-right:2rem;margin-bottom:0}}.cre8-c-feature__media{width:100%}@media all and (min-width: 768px){.cre8-c-feature__media{width:45%}}.cre8-c-feature__image{display:block;width:100%}`;
|
|
5
|
+
var f = Object.defineProperty, d = (l, t, o, x) => {
|
|
6
|
+
for (var e = void 0, i = l.length - 1, c; i >= 0; i--)
|
|
7
|
+
(c = l[i]) && (e = c(t, o, e) || e);
|
|
8
|
+
return e && f(t, o, e), e;
|
|
71
9
|
};
|
|
72
|
-
const
|
|
10
|
+
const s = class s extends h {
|
|
73
11
|
render() {
|
|
74
12
|
const t = this.componentClassNames("cre8-c-feature", {
|
|
75
13
|
"cre8-c-feature--inverted": this.inverted === !0
|
|
76
14
|
});
|
|
77
|
-
return
|
|
15
|
+
return m`
|
|
78
16
|
<div class="${t}" part="feature">
|
|
79
17
|
<div class="cre8-c-feature__body" part="body">
|
|
80
18
|
<slot></slot>
|
|
81
19
|
</div>
|
|
82
|
-
${this.imgAlt ?
|
|
20
|
+
${this.imgAlt ? m`<div class="cre8-c-feature__media">
|
|
83
21
|
<img class="cre8-c-feature__image" src=${this.imgSrc} alt=${this.imgAlt} part="image" />
|
|
84
22
|
</div>` : ""}
|
|
85
23
|
</div>
|
|
86
24
|
`;
|
|
87
25
|
}
|
|
88
26
|
};
|
|
89
|
-
|
|
90
|
-
let r =
|
|
91
|
-
|
|
92
|
-
|
|
27
|
+
s.styles = [p];
|
|
28
|
+
let r = s;
|
|
29
|
+
d([
|
|
30
|
+
a()
|
|
93
31
|
], r.prototype, "imgSrc");
|
|
94
|
-
|
|
95
|
-
|
|
32
|
+
d([
|
|
33
|
+
a()
|
|
96
34
|
], r.prototype, "imgAlt");
|
|
97
|
-
|
|
98
|
-
|
|
35
|
+
d([
|
|
36
|
+
a({ type: Boolean, reflect: !0 })
|
|
99
37
|
], r.prototype, "inverted");
|
|
100
38
|
customElements.get("cre8-feature") === void 0 && customElements.define("cre8-feature", r);
|
|
101
39
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature.styles.d.ts","sourceRoot":"","sources":["../../../components/feature/feature.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"feature.styles.d.ts","sourceRoot":"","sources":["../../../components/feature/feature.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA4iF,CAAC;AACzjF,eAAe,MAAM,CAAC"}
|