@tmorrow/cre8-wc 1.0.25 → 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 +15 -46
- 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 +16 -16
- package/lib/components/button-group/button-group.js +19 -50
- 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.d.ts +0 -5
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.js +42 -212
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
- package/lib/components/contexts/form-internals-context.d.ts +30 -0
- package/lib/components/contexts/form-internals-context.d.ts.map +1 -0
- package/lib/components/cre8-form-element.d.ts +98 -24
- package/lib/components/cre8-form-element.d.ts.map +1 -1
- package/lib/components/cre8-form-element.js +221 -22
- 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 +57 -222
- 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.d.ts +0 -4
- package/lib/components/radio-field-item/radio-field-item.d.ts.map +1 -1
- package/lib/components/radio-field-item/radio-field-item.js +69 -207
- 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.d.ts +6 -10
- package/lib/components/select/select.d.ts.map +1 -1
- package/lib/components/select/select.js +67 -135
- package/lib/components/select/select.styles.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.d.ts +0 -4
- package/lib/components/select-tile/select-tile.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.js +21 -448
- 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.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +58 -159
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/tag/tag.js +46 -161
- 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 +6 -6
- 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 +12 -5
|
@@ -1,69 +1,31 @@
|
|
|
1
1
|
import { css as f, html as p } from "lit";
|
|
2
|
-
import { ifDefined as
|
|
2
|
+
import { ifDefined as a } from "lit-html/directives/if-defined.js";
|
|
3
3
|
import { property as t } from "lit/decorators.js";
|
|
4
|
-
import { nanoid as
|
|
5
|
-
import { Cre8Element as
|
|
4
|
+
import { nanoid as h } from "nanoid";
|
|
5
|
+
import { Cre8Element as m } from "../cre8-element.js";
|
|
6
6
|
import "../field-note/field-note.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
:host {
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 1) Fieldset used for checkbox items
|
|
19
|
-
*/
|
|
20
|
-
.cre8-c-select-tile-list {
|
|
21
|
-
border: var(--cre8-border-width-none);
|
|
22
|
-
padding: var(--cre8-spacing-0);
|
|
23
|
-
margin: var(--cre8-spacing-0);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Checkbox field legend
|
|
28
|
-
*/
|
|
29
|
-
.cre8-c-select-tile-list__legend {
|
|
30
|
-
@include cre8-typography-label-default;
|
|
31
|
-
margin-bottom: calc(8px * 1);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.cre8-c-select-tile-list__list {
|
|
35
|
-
gap: calc(8px * 3);
|
|
36
|
-
display: grid;
|
|
37
|
-
|
|
38
|
-
grid-template-columns: repeat(auto-fit, var(--cre8-select-tile-list-item-width, calc(8px * 26)));
|
|
39
|
-
|
|
40
|
-
.cre8-c-select-tile-list__rows & {
|
|
41
|
-
grid-template-columns: unset;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
`;
|
|
46
|
-
var y = Object.defineProperty, s = (a, r, d, b) => {
|
|
47
|
-
for (var i = void 0, l = a.length - 1, n; l >= 0; l--)
|
|
48
|
-
(n = a[l]) && (i = n(r, d, i) || i);
|
|
49
|
-
return i && y(r, d, i), i;
|
|
7
|
+
const y = 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}:host{display:block}.cre8-c-select-tile-list{border:var(--cre8-border-width-none);padding:var(--cre8-spacing-0);margin:var(--cre8-spacing-0)}.cre8-c-select-tile-list__legend{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);margin-bottom:0.5rem}.cre8-c-select-tile-list__list{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, var(--cre8-select-tile-list-item-width, 13rem))}.cre8-c-select-tile-list__rows .cre8-c-select-tile-list__list{grid-template-columns:unset}`;
|
|
8
|
+
var g = Object.defineProperty, r = (d, s, c, u) => {
|
|
9
|
+
for (var i = void 0, l = d.length - 1, n; l >= 0; l--)
|
|
10
|
+
(n = d[l]) && (i = n(s, c, i) || i);
|
|
11
|
+
return i && g(s, c, i), i;
|
|
50
12
|
};
|
|
51
|
-
const o = class o extends
|
|
13
|
+
const o = class o extends m {
|
|
52
14
|
constructor() {
|
|
53
15
|
super(...arguments), this.variant = "columns";
|
|
54
16
|
}
|
|
55
17
|
connectedCallback() {
|
|
56
|
-
super.connectedCallback(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy ||
|
|
18
|
+
super.connectedCallback(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || h());
|
|
57
19
|
}
|
|
58
20
|
render() {
|
|
59
|
-
const
|
|
21
|
+
const s = this.componentClassNames("cre8-c-select-tile-list", {
|
|
60
22
|
"cre8-c-select-tile-list__rows": this.variant === "rows"
|
|
61
23
|
});
|
|
62
24
|
return p`
|
|
63
|
-
<fieldset class="${
|
|
25
|
+
<fieldset class="${s}">
|
|
64
26
|
<legend
|
|
65
27
|
class="cre8-c-select-tile-list__legend"
|
|
66
|
-
aria-describedby="${
|
|
28
|
+
aria-describedby="${a(this.ariaDescribedBy)}"
|
|
67
29
|
>
|
|
68
30
|
${this.label}
|
|
69
31
|
</legend>
|
|
@@ -74,8 +36,8 @@ const o = class o extends u {
|
|
|
74
36
|
</div>
|
|
75
37
|
${this.fieldNote ? p`<cre8-field-note
|
|
76
38
|
?inverted=${this.fieldNoteKnockout}
|
|
77
|
-
id=${
|
|
78
|
-
iconName=${
|
|
39
|
+
id=${a(this.ariaDescribedBy)}
|
|
40
|
+
iconName=${a(this.fieldNoteIconName)}
|
|
79
41
|
?isSuccess=${this.fieldNoteIsSuccess}
|
|
80
42
|
?isError=${this.fieldNoteIsError}
|
|
81
43
|
>
|
|
@@ -85,30 +47,30 @@ const o = class o extends u {
|
|
|
85
47
|
`;
|
|
86
48
|
}
|
|
87
49
|
};
|
|
88
|
-
o.styles = [
|
|
50
|
+
o.styles = [y];
|
|
89
51
|
let e = o;
|
|
90
|
-
|
|
52
|
+
r([
|
|
91
53
|
t({ reflect: !0 })
|
|
92
54
|
], e.prototype, "variant");
|
|
93
|
-
|
|
55
|
+
r([
|
|
94
56
|
t({ reflect: !0 })
|
|
95
57
|
], e.prototype, "label");
|
|
96
|
-
|
|
58
|
+
r([
|
|
97
59
|
t({ reflect: !0 })
|
|
98
60
|
], e.prototype, "fieldNote");
|
|
99
|
-
|
|
61
|
+
r([
|
|
100
62
|
t()
|
|
101
63
|
], e.prototype, "ariaDescribedBy");
|
|
102
|
-
|
|
64
|
+
r([
|
|
103
65
|
t({ reflect: !0 })
|
|
104
66
|
], e.prototype, "fieldNoteIconName");
|
|
105
|
-
|
|
67
|
+
r([
|
|
106
68
|
t({ type: Boolean, reflect: !0 })
|
|
107
69
|
], e.prototype, "fieldNoteKnockout");
|
|
108
|
-
|
|
70
|
+
r([
|
|
109
71
|
t({ type: Boolean, reflect: !0 })
|
|
110
72
|
], e.prototype, "fieldNoteIsSuccess");
|
|
111
|
-
|
|
73
|
+
r([
|
|
112
74
|
t({ type: Boolean, reflect: !0 })
|
|
113
75
|
], e.prototype, "fieldNoteIsError");
|
|
114
76
|
customElements.get("cre8-select-tile-list") === void 0 && customElements.define("cre8-select-tile-list", e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-tile-list.styles.d.ts","sourceRoot":"","sources":["../../../components/select-tile-list/select-tile-list.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"select-tile-list.styles.d.ts","sourceRoot":"","sources":["../../../components/select-tile-list/select-tile-list.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAmjF,CAAC;AAChkF,eAAe,MAAM,CAAC"}
|
|
@@ -1,97 +1,43 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as c, html as h } from "lit";
|
|
2
2
|
import { property as a } from "lit/decorators.js";
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Skeleton Loader
|
|
12
|
-
* The hard coded value for color here is intentional and is uniform across all brands
|
|
13
|
-
*/
|
|
14
|
-
.cre8-c-skeleton-loader {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: auto;
|
|
17
|
-
border-radius: var(--cre8-border-radius-small);
|
|
18
|
-
aspect-ratio: 16 / 3;
|
|
19
|
-
background: linear-gradient(-90deg, #f6f6f6 0%, #ebebeb 50%, #f6f6f6 100%);
|
|
20
|
-
background-size: 400% 400%;
|
|
21
|
-
animation: pulse 1.25s linear infinite;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Skeleton Loader - Rectangle
|
|
26
|
-
*/
|
|
27
|
-
.cre8-c-skeleton-loader--rectangle {
|
|
28
|
-
aspect-ratio: 16 / 6;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Skeleton Loader - Square
|
|
33
|
-
*/
|
|
34
|
-
.cre8-c-skeleton-loader--square {
|
|
35
|
-
aspect-ratio: 1 / 1;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Skeleton Loader - Circle
|
|
40
|
-
*/
|
|
41
|
-
.cre8-c-skeleton-loader--circle {
|
|
42
|
-
aspect-ratio: 1 / 1;
|
|
43
|
-
border-radius: 50%;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Pulsing animation for loading look
|
|
48
|
-
*/
|
|
49
|
-
@keyframes pulse {
|
|
50
|
-
0% {
|
|
51
|
-
background-position: 0% 0%;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
100% {
|
|
55
|
-
background-position: -135% 0%;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
var m = Object.defineProperty, s = (n, t, l, f) => {
|
|
60
|
-
for (var e = void 0, o = n.length - 1, c; o >= 0; o--)
|
|
61
|
-
(c = n[o]) && (e = c(t, l, e) || e);
|
|
62
|
-
return e && m(t, l, e), e;
|
|
3
|
+
import { Cre8Element as p } from "../cre8-element.js";
|
|
4
|
+
const m = c`*,::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:block}.cre8-c-skeleton-loader{width:100%;height:auto;border-radius:var(--cre8-border-radius-small);aspect-ratio:16/3;background:linear-gradient(-90deg, #f6f6f6 0%, #ebebeb 50%, #f6f6f6 100%);background-size:400% 400%;animation:pulse 1.25s linear infinite}.cre8-c-skeleton-loader--rectangle{aspect-ratio:16/6}.cre8-c-skeleton-loader--square{aspect-ratio:1/1}.cre8-c-skeleton-loader--circle{aspect-ratio:1/1;border-radius:50%}@keyframes pulse{0%{background-position:0% 0%}100%{background-position:-135% 0%}}`;
|
|
5
|
+
var f = Object.defineProperty, s = (d, r, l, g) => {
|
|
6
|
+
for (var e = void 0, i = d.length - 1, n; i >= 0; i--)
|
|
7
|
+
(n = d[i]) && (e = n(r, l, e) || e);
|
|
8
|
+
return e && f(r, l, e), e;
|
|
63
9
|
};
|
|
64
|
-
const
|
|
10
|
+
const o = class o extends p {
|
|
65
11
|
constructor() {
|
|
66
12
|
super(...arguments), this.variant = "rectangle";
|
|
67
13
|
}
|
|
68
14
|
render() {
|
|
69
|
-
const
|
|
15
|
+
const r = this.componentClassNames("cre8-c-skeleton-loader", {
|
|
70
16
|
"cre8-c-skeleton-loader--rectangle": this.variant === "rectangle",
|
|
71
17
|
"cre8-c-skeleton-loader--square": this.variant === "square",
|
|
72
18
|
"cre8-c-skeleton-loader--circle": this.variant === "circle"
|
|
73
19
|
});
|
|
74
|
-
return
|
|
20
|
+
return h`
|
|
75
21
|
<div
|
|
76
|
-
class="${
|
|
22
|
+
class="${r}"
|
|
77
23
|
style="height: ${this.height ?? "auto"}; width: ${this.width ?? "auto"}"
|
|
78
24
|
></div>
|
|
79
25
|
`;
|
|
80
26
|
}
|
|
81
27
|
};
|
|
82
|
-
|
|
83
|
-
let
|
|
28
|
+
o.styles = [m];
|
|
29
|
+
let t = o;
|
|
84
30
|
s([
|
|
85
31
|
a()
|
|
86
|
-
],
|
|
32
|
+
], t.prototype, "variant");
|
|
87
33
|
s([
|
|
88
34
|
a()
|
|
89
|
-
],
|
|
35
|
+
], t.prototype, "height");
|
|
90
36
|
s([
|
|
91
37
|
a()
|
|
92
|
-
],
|
|
93
|
-
customElements.get("cre8-skeleton-loader") === void 0 && customElements.define("cre8-skeleton-loader",
|
|
38
|
+
], t.prototype, "width");
|
|
39
|
+
customElements.get("cre8-skeleton-loader") === void 0 && customElements.define("cre8-skeleton-loader", t);
|
|
94
40
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
41
|
+
t as Cre8SkeletonLoader,
|
|
42
|
+
t as default
|
|
97
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton-loader.styles.d.ts","sourceRoot":"","sources":["../../../components/skeleton-loader/skeleton-loader.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"skeleton-loader.styles.d.ts","sourceRoot":"","sources":["../../../components/skeleton-loader/skeleton-loader.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAuxE,CAAC;AACpyE,eAAe,MAAM,CAAC"}
|
|
@@ -1,36 +1,20 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { state as
|
|
3
|
-
import { Cre8Element as
|
|
1
|
+
import { css as c, html as p } from "lit";
|
|
2
|
+
import { state as h, property as a } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as m } from "../cre8-element.js";
|
|
4
4
|
import "../button/button.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* 1)
|
|
11
|
-
*/
|
|
12
|
-
.cre8-c-split-button {
|
|
13
|
-
width: fit-content;
|
|
14
|
-
display: block;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.cre8-c-split-button__button-container {
|
|
18
|
-
display: flex;
|
|
19
|
-
max-width: fit-content;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
var m = Object.defineProperty, o = (c, t, p, f) => {
|
|
23
|
-
for (var s = void 0, n = c.length - 1, d; n >= 0; n--)
|
|
24
|
-
(d = c[n]) && (s = d(t, p, s) || s);
|
|
25
|
-
return s && m(t, p, s), s;
|
|
5
|
+
const x = c`*,::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-split-button{width:fit-content;display:block}.cre8-c-split-button__button-container{display:flex;max-width:fit-content}`;
|
|
6
|
+
var f = Object.defineProperty, r = (o, t, d, u) => {
|
|
7
|
+
for (var i = void 0, s = o.length - 1, l; s >= 0; s--)
|
|
8
|
+
(l = o[s]) && (i = l(t, d, i) || i);
|
|
9
|
+
return i && f(t, d, i), i;
|
|
26
10
|
};
|
|
27
|
-
const
|
|
11
|
+
const n = class n extends m {
|
|
28
12
|
constructor() {
|
|
29
13
|
super(...arguments), this.dropdownOpen = !1;
|
|
30
14
|
}
|
|
31
15
|
render() {
|
|
32
16
|
const t = this.componentClassNames("cre8-c-split-button", {});
|
|
33
|
-
return
|
|
17
|
+
return p`
|
|
34
18
|
<div class="${t}">
|
|
35
19
|
<div class="cre8-c-split-button__button-container">
|
|
36
20
|
<cre8-button
|
|
@@ -55,7 +39,7 @@ const r = class r extends b {
|
|
|
55
39
|
>
|
|
56
40
|
</cre8-button>
|
|
57
41
|
</div>
|
|
58
|
-
${this.dropdownOpen ?
|
|
42
|
+
${this.dropdownOpen ? p`<slot></slot>` : ""}
|
|
59
43
|
</div>
|
|
60
44
|
`;
|
|
61
45
|
}
|
|
@@ -66,19 +50,19 @@ const r = class r extends b {
|
|
|
66
50
|
this.dropdownOpen = !this.dropdownOpen, this.dispatchEvent(new Event("dropdown-click", t));
|
|
67
51
|
}
|
|
68
52
|
};
|
|
69
|
-
|
|
70
|
-
let e =
|
|
71
|
-
|
|
72
|
-
|
|
53
|
+
n.styles = [x];
|
|
54
|
+
let e = n;
|
|
55
|
+
r([
|
|
56
|
+
h()
|
|
73
57
|
], e.prototype, "dropdownOpen");
|
|
74
|
-
|
|
75
|
-
|
|
58
|
+
r([
|
|
59
|
+
a({ type: Boolean, reflect: !0 })
|
|
76
60
|
], e.prototype, "disabled");
|
|
77
|
-
|
|
78
|
-
|
|
61
|
+
r([
|
|
62
|
+
a()
|
|
79
63
|
], e.prototype, "size");
|
|
80
|
-
|
|
81
|
-
|
|
64
|
+
r([
|
|
65
|
+
a()
|
|
82
66
|
], e.prototype, "buttonText");
|
|
83
67
|
customElements.get("cre8-split-button") === void 0 && customElements.define("cre8-split-button", e);
|
|
84
68
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.styles.d.ts","sourceRoot":"","sources":["../../../components/split-button/split-button.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"split-button.styles.d.ts","sourceRoot":"","sources":["../../../components/split-button/split-button.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA+4D,CAAC;AAC55D,eAAe,MAAM,CAAC"}
|
|
@@ -1,27 +1,17 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { Cre8Element as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 1) Menu inserted into the dropdown/megamenu of the navigation
|
|
7
|
-
*/
|
|
8
|
-
.cre8-c-submenu {
|
|
9
|
-
list-style: none;
|
|
10
|
-
padding: 0;
|
|
11
|
-
margin: 0;
|
|
12
|
-
}
|
|
13
|
-
`, s = class s extends m {
|
|
1
|
+
import { css as r, html as i } from "lit";
|
|
2
|
+
import { Cre8Element as a } from "../cre8-element.js";
|
|
3
|
+
const d = r`*,::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-submenu{list-style:none;padding:0;margin:0}`, t = class t extends a {
|
|
14
4
|
render() {
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
<ul role="list" class="${
|
|
5
|
+
const s = this.componentClassNames("cre8-c-submenu", {});
|
|
6
|
+
return i`
|
|
7
|
+
<ul role="list" class="${s}">
|
|
18
8
|
<slot></slot>
|
|
19
9
|
</ul>
|
|
20
10
|
`;
|
|
21
11
|
}
|
|
22
12
|
};
|
|
23
|
-
|
|
24
|
-
let e =
|
|
13
|
+
t.styles = [d];
|
|
14
|
+
let e = t;
|
|
25
15
|
customElements.get("cre8-submenu") === void 0 && customElements.define("cre8-submenu", e);
|
|
26
16
|
export {
|
|
27
17
|
e as Cre8Submenu,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submenu.styles.d.ts","sourceRoot":"","sources":["../../../components/submenu/submenu.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"submenu.styles.d.ts","sourceRoot":"","sources":["../../../components/submenu/submenu.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAm0D,CAAC;AACh1D,eAAe,MAAM,CAAC"}
|
|
@@ -1,56 +1,35 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const d =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.cre8-c-submenu-item__link {
|
|
10
|
-
color: var(--cre8-color-header-submenu-content-default);
|
|
11
|
-
background: var(--cre8-color-header-submenu-bg-default);
|
|
12
|
-
text-decoration: none;
|
|
13
|
-
|
|
14
|
-
&:hover,
|
|
15
|
-
&:focus {
|
|
16
|
-
color: var(--cre8-color-header-submenu-content-hover);
|
|
17
|
-
background: var(--cre8-color-header-submenu-bg-hover);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:active {
|
|
21
|
-
color: var(--cre8-color-header-submenu-content-pressed);
|
|
22
|
-
background: var(--cre8-color-header-submenu-bg-pressed);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
var h = Object.defineProperty, b = (n, r, c, f) => {
|
|
27
|
-
for (var e = void 0, s = n.length - 1, l; s >= 0; s--)
|
|
28
|
-
(l = n[s]) && (e = l(r, c, e) || e);
|
|
29
|
-
return e && h(r, c, e), e;
|
|
1
|
+
import { css as d, html as l } from "lit";
|
|
2
|
+
import { property as m } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as c } from "../cre8-element.js";
|
|
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-submenu-item__link{color:var(--cre8-color-header-submenu-content-default);background:var(--cre8-color-header-submenu-bg-default);text-decoration:none}.cre8-c-submenu-item__link:hover,.cre8-c-submenu-item__link:focus{color:var(--cre8-color-header-submenu-content-hover);background:var(--cre8-color-header-submenu-bg-hover)}.cre8-c-submenu-item__link:active{color:var(--cre8-color-header-submenu-content-pressed);background:var(--cre8-color-header-submenu-bg-pressed)}`;
|
|
5
|
+
var p = Object.defineProperty, u = (a, t, n, f) => {
|
|
6
|
+
for (var e = void 0, s = a.length - 1, o; s >= 0; s--)
|
|
7
|
+
(o = a[s]) && (e = o(t, n, e) || e);
|
|
8
|
+
return e && p(t, n, e), e;
|
|
30
9
|
};
|
|
31
|
-
const
|
|
10
|
+
const i = class i extends c {
|
|
32
11
|
render() {
|
|
33
|
-
const
|
|
34
|
-
return this.href ?
|
|
35
|
-
<li role="listitem" class="${
|
|
12
|
+
const t = this.componentClassNames("cre8-c-submenu-item", {});
|
|
13
|
+
return this.href ? l`
|
|
14
|
+
<li role="listitem" class="${t}">
|
|
36
15
|
<a href=${this.href} class="cre8-c-submenu-item__link">
|
|
37
16
|
<slot></slot>
|
|
38
17
|
</a>
|
|
39
18
|
</li>
|
|
40
|
-
` :
|
|
19
|
+
` : l`<li role="listitem" class="${t}">
|
|
41
20
|
<button class="cre8-c-submenu-item__link">
|
|
42
21
|
<slot></slot>
|
|
43
22
|
</button>
|
|
44
23
|
</li>`;
|
|
45
24
|
}
|
|
46
25
|
};
|
|
47
|
-
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
],
|
|
52
|
-
customElements.get("cre8-submenu-item") === void 0 && customElements.define("cre8-submenu-item",
|
|
26
|
+
i.styles = [h];
|
|
27
|
+
let r = i;
|
|
28
|
+
u([
|
|
29
|
+
m()
|
|
30
|
+
], r.prototype, "href");
|
|
31
|
+
customElements.get("cre8-submenu-item") === void 0 && customElements.define("cre8-submenu-item", r);
|
|
53
32
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
r as Cre8SubmenuItem,
|
|
34
|
+
r as default
|
|
56
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submenu-item.styles.d.ts","sourceRoot":"","sources":["../../../components/submenu-item/submenu-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"submenu-item.styles.d.ts","sourceRoot":"","sources":["../../../components/submenu-item/submenu-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA0uE,CAAC;AACvvE,eAAe,MAAM,CAAC"}
|
|
@@ -1,96 +1,13 @@
|
|
|
1
|
-
import { css as n, html as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Tab host
|
|
11
|
-
*/
|
|
12
|
-
:host {
|
|
13
|
-
display: contents;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Tab
|
|
18
|
-
* 1. Make border appear to be inside the tab
|
|
19
|
-
*/
|
|
20
|
-
.cre8-c-tab {
|
|
21
|
-
@include cre8-typography-label-default();
|
|
22
|
-
position: relative;
|
|
23
|
-
display: flex;
|
|
24
|
-
margin: 0;
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
padding: 0;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
gap: calc(8px * 1);
|
|
30
|
-
color: var(--cre8-color-content-default);
|
|
31
|
-
background-color: transparent;
|
|
32
|
-
border: 0;
|
|
33
|
-
border-block-end: var(--cre8-border-width-tab-selected) var(--cre8-border-style-default) var(--cre8-color-border-default);
|
|
34
|
-
padding-block-start: calc(8px * 1);
|
|
35
|
-
padding-inline-end: calc(8px * 3);
|
|
36
|
-
padding-block-end: calc(calc(8px * 1) - var(--cre8-border-width-tab-selected)); /* 1 */
|
|
37
|
-
padding-inline-start: calc(8px * 3);
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
transition: border-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease), background-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease);
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Tab hover state
|
|
44
|
-
*/
|
|
45
|
-
&:hover {
|
|
46
|
-
background-color: var(--cre8-color-bg-brand-hover);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Tab focus visible state
|
|
51
|
-
* 1. Make the focus appear inside the tab to prevent the bottom border from showing
|
|
52
|
-
*/
|
|
53
|
-
&:focus-visible {
|
|
54
|
-
@include focus;
|
|
55
|
-
outline-offset: calc(#{var(--cre8-border-width-focus)} * -1); /* 1 */
|
|
56
|
-
border-radius: var(--cre8-border-radius-small);
|
|
57
|
-
border-block-end-color: transparent;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Tab active state
|
|
63
|
-
*/
|
|
64
|
-
.cre8-c-tab.cre8-is-active:not(:focus-visible) {
|
|
65
|
-
color: var(--cre8-color-content-brand-strong);
|
|
66
|
-
background-color: transparent;
|
|
67
|
-
border-block-end: var(--cre8-border-width-tab-selected) var(--cre8-border-style-default) var(--cre8-color-border-brand-strong);
|
|
68
|
-
padding-block-end: calc(calc(8px * 1) - var(--cre8-border-width-tab-selected)); /* 1 */
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Tab small
|
|
73
|
-
*/
|
|
74
|
-
.cre8-c-tab.cre8-c-tab--small {
|
|
75
|
-
@include cre8-typography-label-small();
|
|
76
|
-
padding-block-start: calc(8px * 0.5);
|
|
77
|
-
padding-inline-end: calc(8px * 2);
|
|
78
|
-
padding-block-end: calc(calc(8px * 0.5) - var(--cre8-border-width-tab-selected)); /* 1 */
|
|
79
|
-
padding-inline-start: calc(8px * 2);
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Tab small active state
|
|
83
|
-
*/
|
|
84
|
-
&.cre8-is-active:not(:focus-visible) {
|
|
85
|
-
padding-block-end: calc(calc(8px * 0.5) - var(--cre8-border-width-tab-selected)); /* 1 */
|
|
86
|
-
}
|
|
87
|
-
}`;
|
|
88
|
-
var h = Object.defineProperty, a = (s, e, l, m) => {
|
|
89
|
-
for (var r = void 0, o = s.length - 1, d; o >= 0; o--)
|
|
90
|
-
(d = s[o]) && (r = d(e, l, r) || r);
|
|
91
|
-
return r && h(e, l, r), r;
|
|
1
|
+
import { css as n, html as p } from "lit";
|
|
2
|
+
import { property as i, query as h } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as b } from "../cre8-element.js";
|
|
4
|
+
const m = 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}:host{display:contents}.cre8-c-tab{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);position:relative;display:flex;margin:0;flex-shrink:0;padding:0;align-items:center;justify-content:center;gap:0.5rem;color:var(--cre8-color-content-default);background-color:rgba(0,0,0,0);border:0;border-block-end:var(--cre8-border-width-tab-selected) var(--cre8-border-style-default) var(--cre8-color-border-default);padding-block-start:0.5rem;padding-inline-end:1.5rem;padding-block-end:calc(0.5rem - var(--cre8-border-width-tab-selected));padding-inline-start:1.5rem;cursor:pointer;overflow:hidden;transition:border-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease),background-color var(--cre8-anim-fade-quick) var(--cre8-anim-ease)}.cre8-c-tab:hover{background-color:var(--cre8-color-bg-brand-hover)}.cre8-c-tab:focus-visible{outline:var(--cre8-border-width-focus) solid var(--cre8-color-border-active-outline);outline-offset:0.125rem;outline-offset:calc(var(--cre8-border-width-focus)*-1);border-radius:var(--cre8-border-radius-small);border-block-end-color:rgba(0,0,0,0)}.cre8-c-tab.cre8-is-active:not(:focus-visible){color:var(--cre8-color-content-brand-strong);background-color:rgba(0,0,0,0);border-block-end:var(--cre8-border-width-tab-selected) var(--cre8-border-style-default) var(--cre8-color-border-brand-strong);padding-block-end:calc(0.5rem - var(--cre8-border-width-tab-selected))}.cre8-c-tab.cre8-c-tab--small{font-family:var(--cre8-typography-label-small-font-family);font-size:var(--cre8-typography-label-small-font-size);font-weight:var(--cre8-typography-label-small-font-weight);line-height:var(--cre8-typography-label-small-line-height);text-decoration:var(--cre8-typography-label-small-text-decoration);text-transform:var(--cre8-typography-label-small-text-transform);padding-block-start:0.25rem;padding-inline-end:1rem;padding-block-end:calc(0.25rem - var(--cre8-border-width-tab-selected));padding-inline-start:1rem}.cre8-c-tab.cre8-c-tab--small.cre8-is-active:not(:focus-visible){padding-block-end:calc(0.25rem - var(--cre8-border-width-tab-selected))}`;
|
|
5
|
+
var f = Object.defineProperty, a = (s, e, d, g) => {
|
|
6
|
+
for (var r = void 0, o = s.length - 1, c; o >= 0; o--)
|
|
7
|
+
(c = s[o]) && (r = c(e, d, r) || r);
|
|
8
|
+
return r && f(e, d, r), r;
|
|
92
9
|
};
|
|
93
|
-
const
|
|
10
|
+
const l = class l extends b {
|
|
94
11
|
/**
|
|
95
12
|
* Updated
|
|
96
13
|
* 1. Called when the element's DOM has been updated and rendered.
|
|
@@ -119,7 +36,7 @@ const i = class i extends v {
|
|
|
119
36
|
"cre8-is-active": this.isActive,
|
|
120
37
|
"cre8-c-tab--small": this.size === "sm"
|
|
121
38
|
});
|
|
122
|
-
return
|
|
39
|
+
return p`
|
|
123
40
|
<button
|
|
124
41
|
role="tab"
|
|
125
42
|
tabindex="-1"
|
|
@@ -133,22 +50,22 @@ const i = class i extends v {
|
|
|
133
50
|
`;
|
|
134
51
|
}
|
|
135
52
|
};
|
|
136
|
-
|
|
137
|
-
let t =
|
|
53
|
+
l.styles = [m];
|
|
54
|
+
let t = l;
|
|
138
55
|
a([
|
|
139
|
-
|
|
56
|
+
i()
|
|
140
57
|
], t.prototype, "size");
|
|
141
58
|
a([
|
|
142
|
-
|
|
59
|
+
i({ type: Boolean, reflect: !0 })
|
|
143
60
|
], t.prototype, "isActive");
|
|
144
61
|
a([
|
|
145
|
-
|
|
62
|
+
i({ type: Number })
|
|
146
63
|
], t.prototype, "index");
|
|
147
64
|
a([
|
|
148
|
-
|
|
65
|
+
i()
|
|
149
66
|
], t.prototype, "ariaLabelledBy");
|
|
150
67
|
a([
|
|
151
|
-
|
|
68
|
+
h(".cre8-c-tab")
|
|
152
69
|
], t.prototype, "_Cre8Tab");
|
|
153
70
|
customElements.get("cre8-tab") === void 0 && customElements.define("cre8-tab", t);
|
|
154
71
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../components/tab/tab.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"tab.styles.d.ts","sourceRoot":"","sources":["../../../components/tab/tab.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA2mI,CAAC;AACxnI,eAAe,MAAM,CAAC"}
|