@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,179 +1,18 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { s as
|
|
3
|
-
import { css as
|
|
4
|
-
import { property as
|
|
5
|
-
import { Cre8Element as
|
|
6
|
-
const
|
|
1
|
+
import { d as h, f as u, b as g } from "../../icon-D22g8aWB.js";
|
|
2
|
+
import { s as f } from "../../Error-aYunUubM.js";
|
|
3
|
+
import { css as m, nothing as v, html as e } from "lit";
|
|
4
|
+
import { property as n } from "lit/decorators.js";
|
|
5
|
+
import { Cre8Element as b } from "../cre8-element.js";
|
|
6
|
+
const p = `<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
7
7
|
<path d="M8 0C6.41775 0 4.87103 0.469192 3.55544 1.34824C2.23985 2.22729 1.21447 3.47672 0.608967 4.93853C0.00346628 6.40034 -0.15496 8.00887 0.153721 9.56072C0.462403 11.1126 1.22433 12.538 2.34315 13.6569C3.46197 14.7757 4.88743 15.5376 6.43928 15.8463C7.99113 16.155 9.59966 15.9965 11.0615 15.391C12.5233 14.7855 13.7727 13.7602 14.6518 12.4446C15.5308 11.129 16 9.58225 16 8C15.9978 5.87895 15.1542 3.84542 13.6544 2.34562C12.1546 0.845814 10.121 0.00223986 8 0ZM8 12.9231C7.81743 12.9231 7.63897 12.8689 7.48717 12.7675C7.33537 12.6661 7.21706 12.5219 7.14719 12.3532C7.07732 12.1846 7.05904 11.999 7.09466 11.8199C7.13028 11.6409 7.21819 11.4764 7.34729 11.3473C7.47638 11.2182 7.64086 11.1303 7.81992 11.0947C7.99898 11.059 8.18458 11.0773 8.35325 11.1472C8.52192 11.2171 8.66608 11.3354 8.76751 11.4872C8.86894 11.639 8.92308 11.8174 8.92308 12C8.92308 12.2448 8.82583 12.4796 8.65271 12.6527C8.4796 12.8258 8.24482 12.9231 8 12.9231ZM8.61539 9.17538V9.23077C8.61539 9.39398 8.55055 9.5505 8.43514 9.66591C8.31974 9.78132 8.16321 9.84615 8 9.84615C7.83679 9.84615 7.68027 9.78132 7.56486 9.66591C7.44945 9.5505 7.38462 9.39398 7.38462 9.23077V8.61538C7.38462 8.45217 7.44945 8.29565 7.56486 8.18024C7.68027 8.06483 7.83679 8 8 8C9.01769 8 9.84616 7.30769 9.84616 6.46154C9.84616 5.61538 9.01769 4.92308 8 4.92308C6.98231 4.92308 6.15385 5.61538 6.15385 6.46154V6.76923C6.15385 6.93244 6.08901 7.08896 5.97361 7.20437C5.8582 7.31978 5.70167 7.38461 5.53846 7.38461C5.37525 7.38461 5.21873 7.31978 5.10332 7.20437C4.98791 7.08896 4.92308 6.93244 4.92308 6.76923V6.46154C4.92308 4.93461 6.30308 3.69231 8 3.69231C9.69692 3.69231 11.0769 4.93461 11.0769 6.46154C11.0769 7.79846 10.0185 8.91769 8.61539 9.17538Z"/>
|
|
8
8
|
</svg>
|
|
9
|
-
`,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
:host([fullWidth]) {
|
|
15
|
-
display: flex;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Inline alert
|
|
20
|
-
*/
|
|
21
|
-
.cre8-c-inline-alert {
|
|
22
|
-
@include cre8-typography-body-default();
|
|
23
|
-
font-weight: normal;
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
gap: calc(8px * 1);
|
|
27
|
-
padding: calc(8px * 2);
|
|
28
|
-
color: var(--cre8-color-content-default);
|
|
29
|
-
background-color: var(--cre8-color-bg-info);
|
|
30
|
-
border-color: var(--cre8-color-border-info);
|
|
31
|
-
border-width: var(--cre8-border-width-default);
|
|
32
|
-
border-style: var(--cre8-border-style-default);
|
|
33
|
-
border-radius: var(--cre8-border-radius-default);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Full-width inline alert
|
|
38
|
-
*/
|
|
39
|
-
.cre8-c-inline-alert--full-width {
|
|
40
|
-
width: 100%;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Inline alert with error variant
|
|
45
|
-
*/
|
|
46
|
-
.cre8-c-inline-alert--error {
|
|
47
|
-
background-color: var(--cre8-color-bg-error);
|
|
48
|
-
border-color: var(--cre8-color-border-error);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Inline alert with warning variant
|
|
53
|
-
*/
|
|
54
|
-
.cre8-c-inline-alert--warning {
|
|
55
|
-
background-color: var(--cre8-color-bg-warning);
|
|
56
|
-
border-color: var(--cre8-color-border-warning);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Inline alert with success variant
|
|
61
|
-
*/
|
|
62
|
-
.cre8-c-inline-alert--success {
|
|
63
|
-
background-color: var(--cre8-color-bg-success);
|
|
64
|
-
border-color: var(--cre8-color-border-success);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Inline alert with attention variant
|
|
69
|
-
*/
|
|
70
|
-
.cre8-c-inline-alert--attention {
|
|
71
|
-
background-color: var(--cre8-color-bg-attention);
|
|
72
|
-
border-color: var(--cre8-color-border-attention);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Inline alert with neutral variant
|
|
77
|
-
*/
|
|
78
|
-
.cre8-c-inline-alert--neutral {
|
|
79
|
-
background-color: var(--cre8-color-bg-subtle);
|
|
80
|
-
border-color: var(--cre8-color-border-strong);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Inline alert with variant - transparent
|
|
85
|
-
*/
|
|
86
|
-
.cre8-c-inline-alert--transparent {
|
|
87
|
-
padding: 0;
|
|
88
|
-
border: none;
|
|
89
|
-
background-color: transparent;
|
|
90
|
-
gap: calc(8px * 1);
|
|
91
|
-
border-radius: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Inline alert with variant - transparent and error
|
|
96
|
-
*/
|
|
97
|
-
.cre8-c-inline-alert--transparent.cre8-c-inline-alert--error {
|
|
98
|
-
color: var(--cre8-color-content-error);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Inline alert with variant - transparent and success
|
|
103
|
-
*/
|
|
104
|
-
.cre8-c-inline-alert--transparent.cre8-c-inline-alert--success {
|
|
105
|
-
color: var(--cre8-color-content-success);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Inline alert icon
|
|
110
|
-
*/
|
|
111
|
-
.cre8-c-inline-alert__icon {
|
|
112
|
-
position: relative;
|
|
113
|
-
color: var(--cre8-color-content-info-icon);
|
|
114
|
-
height: calc(8px * 3);
|
|
115
|
-
width: calc(8px * 3);
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Inline alert icon for error variant
|
|
119
|
-
*/
|
|
120
|
-
.cre8-c-inline-alert--error & {
|
|
121
|
-
color: var(--cre8-color-content-error-icon);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Inline alert icon for warning variant
|
|
126
|
-
*/
|
|
127
|
-
.cre8-c-inline-alert--warning & {
|
|
128
|
-
color: var(--cre8-color-content-warning-icon);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Inline alert icon for success variant
|
|
133
|
-
*/
|
|
134
|
-
.cre8-c-inline-alert--success & {
|
|
135
|
-
color: var(--cre8-color-content-success-icon);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Inline alert icon for help variant
|
|
140
|
-
* Inline alert icon for info variant
|
|
141
|
-
*/
|
|
142
|
-
.cre8-c-inline-alert--help,
|
|
143
|
-
.cre8-c-inline-alert--info
|
|
144
|
-
& {
|
|
145
|
-
color: var(--cre8-color-content-info-icon);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Inline alert icon for attention variant
|
|
150
|
-
*/
|
|
151
|
-
.cre8-c-inline-alert--attention & {
|
|
152
|
-
color: var(--cre8-color-content-attention-icon);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Inline alert icon for neutral variant
|
|
157
|
-
*/
|
|
158
|
-
.cre8-c-inline-alert--neutral & {
|
|
159
|
-
color: var(--cre8-color-content-default);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Inline alert icon
|
|
164
|
-
*/
|
|
165
|
-
.cre8-c-inline-alert--transparent & {
|
|
166
|
-
top: 0;
|
|
167
|
-
padding: calc(8px * 0.25);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
`;
|
|
171
|
-
var m = Object.defineProperty, c = (l, n, s, I) => {
|
|
172
|
-
for (var t = void 0, a = l.length - 1, d; a >= 0; a--)
|
|
173
|
-
(d = l[a]) && (t = d(n, s, t) || t);
|
|
174
|
-
return t && m(n, s, t), t;
|
|
9
|
+
`, y = m`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{display:inline-flex}:host([fullWidth]){display:flex}.cre8-c-inline-alert{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);font-weight:normal;display:inline-flex;align-items:flex-start;gap:0.5rem;padding:1rem;color:var(--cre8-color-content-default);background-color:var(--cre8-color-bg-info);border-color:var(--cre8-color-border-info);border-width:var(--cre8-border-width-default);border-style:var(--cre8-border-style-default);border-radius:var(--cre8-border-radius-default)}.cre8-c-inline-alert--full-width{width:100%}.cre8-c-inline-alert--error{background-color:var(--cre8-color-bg-error);border-color:var(--cre8-color-border-error)}.cre8-c-inline-alert--warning{background-color:var(--cre8-color-bg-warning);border-color:var(--cre8-color-border-warning)}.cre8-c-inline-alert--success{background-color:var(--cre8-color-bg-success);border-color:var(--cre8-color-border-success)}.cre8-c-inline-alert--attention{background-color:var(--cre8-color-bg-attention);border-color:var(--cre8-color-border-attention)}.cre8-c-inline-alert--neutral{background-color:var(--cre8-color-bg-subtle);border-color:var(--cre8-color-border-strong)}.cre8-c-inline-alert--transparent{padding:0;border:none;background-color:rgba(0,0,0,0);gap:0.5rem;border-radius:none}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--error{color:var(--cre8-color-content-error)}.cre8-c-inline-alert--transparent.cre8-c-inline-alert--success{color:var(--cre8-color-content-success)}.cre8-c-inline-alert__icon{position:relative;color:var(--cre8-color-content-info-icon);height:1.5rem;width:1.5rem}.cre8-c-inline-alert--error .cre8-c-inline-alert__icon{color:var(--cre8-color-content-error-icon)}.cre8-c-inline-alert--warning .cre8-c-inline-alert__icon{color:var(--cre8-color-content-warning-icon)}.cre8-c-inline-alert--success .cre8-c-inline-alert__icon{color:var(--cre8-color-content-success-icon)}.cre8-c-inline-alert__icon .cre8-c-inline-alert--help,.cre8-c-inline-alert--info .cre8-c-inline-alert__icon{color:var(--cre8-color-content-info-icon)}.cre8-c-inline-alert--attention .cre8-c-inline-alert__icon{color:var(--cre8-color-content-attention-icon)}.cre8-c-inline-alert--neutral .cre8-c-inline-alert__icon{color:var(--cre8-color-content-default)}.cre8-c-inline-alert--transparent .cre8-c-inline-alert__icon{top:0;padding:0.125rem}`;
|
|
10
|
+
var w = Object.defineProperty, a = (l, t, s, x) => {
|
|
11
|
+
for (var i = void 0, c = l.length - 1, d; c >= 0; c--)
|
|
12
|
+
(d = l[c]) && (i = d(t, s, i) || i);
|
|
13
|
+
return i && w(t, s, i), i;
|
|
175
14
|
};
|
|
176
|
-
const o = class o extends
|
|
15
|
+
const o = class o extends b {
|
|
177
16
|
constructor() {
|
|
178
17
|
super(...arguments), this.variant = "subtle", this.status = "info";
|
|
179
18
|
}
|
|
@@ -182,56 +21,56 @@ const o = class o extends C {
|
|
|
182
21
|
*#
|
|
183
22
|
* this provides the recommendated alt text of different statuses
|
|
184
23
|
*/
|
|
185
|
-
mapStatusToIconInlineAlert(
|
|
186
|
-
switch (
|
|
24
|
+
mapStatusToIconInlineAlert(t) {
|
|
25
|
+
switch (t) {
|
|
187
26
|
case "error":
|
|
188
|
-
return
|
|
189
|
-
svg='${
|
|
27
|
+
return e`<cre8-icon
|
|
28
|
+
svg='${f}'
|
|
190
29
|
aria-label="${this.iconTitle}"
|
|
191
30
|
aria-hidden="true"
|
|
192
31
|
class="cre8-c-inline-alert__icon"></cre8-icon>`;
|
|
193
32
|
case "success":
|
|
194
|
-
return
|
|
195
|
-
svg='${
|
|
33
|
+
return e`<cre8-icon
|
|
34
|
+
svg='${g}'
|
|
196
35
|
aria-label="${this.iconTitle}"
|
|
197
36
|
aria-hidden="true"
|
|
198
37
|
class="cre8-c-inline-alert__icon"></cre8-icon>`;
|
|
199
38
|
case "warning":
|
|
200
|
-
return
|
|
201
|
-
svg='${
|
|
39
|
+
return e`<cre8-icon
|
|
40
|
+
svg='${u}'
|
|
202
41
|
aria-label="${this.iconTitle}"
|
|
203
42
|
aria-hidden="true"
|
|
204
43
|
class="cre8-c-inline-alert__icon"></cre8-icon>`;
|
|
205
44
|
case "help":
|
|
206
|
-
return
|
|
207
|
-
svg='${
|
|
45
|
+
return e`<cre8-icon
|
|
46
|
+
svg='${p}'
|
|
208
47
|
aria-label="${this.iconTitle}"
|
|
209
48
|
aria-hidden="true"
|
|
210
49
|
class="cre8-c-inline-alert__icon"></cre8-icon>`;
|
|
211
50
|
case "info":
|
|
212
|
-
return
|
|
213
|
-
svg='${
|
|
51
|
+
return e`<cre8-icon
|
|
52
|
+
svg='${h}'
|
|
214
53
|
aria-label="${this.iconTitle}"
|
|
215
54
|
aria-hidden="true"
|
|
216
55
|
class="cre8-c-inline-alert__icon"></cre8-icon>`;
|
|
217
56
|
case "attention":
|
|
218
|
-
return
|
|
219
|
-
svg='${
|
|
57
|
+
return e`<cre8-icon
|
|
58
|
+
svg='${h}'
|
|
220
59
|
aria-label="${this.iconTitle}"
|
|
221
60
|
aria-hidden="true"
|
|
222
61
|
class="cre8-c-inline-alert__icon"></cre8-icon>`;
|
|
223
62
|
case "neutral":
|
|
224
|
-
return
|
|
225
|
-
svg='${
|
|
63
|
+
return e`<cre8-icon
|
|
64
|
+
svg='${p}'
|
|
226
65
|
aria-label="${this.iconTitle}"
|
|
227
66
|
aria-hidden="true"
|
|
228
67
|
class="cre8-c-inline-alert__icon"></cre8-icon>`;
|
|
229
68
|
default:
|
|
230
|
-
return
|
|
69
|
+
return v;
|
|
231
70
|
}
|
|
232
71
|
}
|
|
233
72
|
render() {
|
|
234
|
-
const
|
|
73
|
+
const t = this.componentClassNames("cre8-c-inline-alert", {
|
|
235
74
|
"cre8-c-inline-alert--transparent": this.variant === "transparent",
|
|
236
75
|
"cre8-c-inline-alert--error": this.status === "error",
|
|
237
76
|
"cre8-c-inline-alert--warning": this.status === "warning",
|
|
@@ -242,9 +81,9 @@ const o = class o extends C {
|
|
|
242
81
|
"cre8-c-inline-alert--info": this.status === "info",
|
|
243
82
|
"cre8-c-inline-alert--full-width": this.fullWidth
|
|
244
83
|
});
|
|
245
|
-
return
|
|
246
|
-
<div class="${
|
|
247
|
-
${this.iconName || this.status ?
|
|
84
|
+
return e`
|
|
85
|
+
<div class="${t}">
|
|
86
|
+
${this.iconName || this.status ? e` ${this.mapStatusToIconInlineAlert(this.status)}` : ""}
|
|
248
87
|
<div class="cre8-c-inline-alert__body">
|
|
249
88
|
<slot></slot>
|
|
250
89
|
</div>
|
|
@@ -252,25 +91,25 @@ const o = class o extends C {
|
|
|
252
91
|
`;
|
|
253
92
|
}
|
|
254
93
|
};
|
|
255
|
-
o.styles = [
|
|
256
|
-
let
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
],
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
],
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
],
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
],
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
],
|
|
272
|
-
customElements.get("cre8-inline-alert") === void 0 && customElements.define("cre8-inline-alert",
|
|
94
|
+
o.styles = [y];
|
|
95
|
+
let r = o;
|
|
96
|
+
a([
|
|
97
|
+
n()
|
|
98
|
+
], r.prototype, "iconName");
|
|
99
|
+
a([
|
|
100
|
+
n({ type: Boolean, reflect: !0 })
|
|
101
|
+
], r.prototype, "fullWidth");
|
|
102
|
+
a([
|
|
103
|
+
n()
|
|
104
|
+
], r.prototype, "iconTitle");
|
|
105
|
+
a([
|
|
106
|
+
n()
|
|
107
|
+
], r.prototype, "variant");
|
|
108
|
+
a([
|
|
109
|
+
n({ type: String })
|
|
110
|
+
], r.prototype, "status");
|
|
111
|
+
customElements.get("cre8-inline-alert") === void 0 && customElements.define("cre8-inline-alert", r);
|
|
273
112
|
export {
|
|
274
|
-
|
|
275
|
-
|
|
113
|
+
r as Cre8InlineAlert,
|
|
114
|
+
r as default
|
|
276
115
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-alert.styles.d.ts","sourceRoot":"","sources":["../../../components/inline-alert/inline-alert.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"inline-alert.styles.d.ts","sourceRoot":"","sources":["../../../components/inline-alert/inline-alert.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAi1I,CAAC;AAC91I,eAAe,MAAM,CAAC"}
|
|
@@ -1,64 +1,31 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* 1) Layout wrapper that houses layout section Components to create a layouts like
|
|
10
|
-
* sidebar layouts that are 1 row across and not a grid
|
|
11
|
-
*/
|
|
12
|
-
.cre8-c-layout {
|
|
13
|
-
display: grid;
|
|
14
|
-
flex: 1;
|
|
15
|
-
gap: calc(8px * 2);
|
|
16
|
-
grid-template-columns: minmax(0, 1fr);
|
|
17
|
-
|
|
18
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
19
|
-
gap: calc(8px * 4);
|
|
20
|
-
grid-template-columns: minmax(0, 1fr) calc(var(--cre8-sidebar-width, 40%) - (calc(8px * 1))); /* 2 */
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Left sidebar layout
|
|
26
|
-
* 1) Layout that is stacked on small screens and turns into a left sidebar with main
|
|
27
|
-
* content to the right
|
|
28
|
-
* 2) The main column stretches the full width minus the sidebar width and gap.
|
|
29
|
-
* The sidebar column has a minimum width value (enough to accommodate navigation
|
|
30
|
-
* and other sidebar content) but stretches to fit the content placed inside it.
|
|
31
|
-
*/
|
|
32
|
-
.cre8-c-layout--left-sidebar {
|
|
33
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
34
|
-
grid-template-columns: calc(var(--cre8-sidebar-width, 40%) - (calc(8px * 1))) minmax(0, 1fr); /* 2 */
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
38
|
-
var h = Object.defineProperty, u = (r, e, o, f) => {
|
|
39
|
-
for (var t = void 0, s = r.length - 1, n; s >= 0; s--)
|
|
40
|
-
(n = r[s]) && (t = n(e, o, t) || t);
|
|
41
|
-
return t && h(e, o, t), t;
|
|
1
|
+
import { css as m, html as n } from "lit";
|
|
2
|
+
import { property as o } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as p } from "../cre8-element.js";
|
|
4
|
+
const h = m`*,::slotted(*),*:before,*:after{box-sizing:border-box}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}:host{--cre8-z-index-1: 1;--cre8-z-index-50: 50;--cre8-z-index-100: 100;--cre8-z-index-200: 200;--cre8-z-index-1030: 1030;--cre8-anim-fade-quick: 0.35s;--cre8-anim-ease: ease}@keyframes fadeIn{100%{opacity:1}}@keyframes slideIn{100%{transform:translateX(0)}}@keyframes slideInFwd{100%{width:272px;height:272px}}@keyframes slideOutRight{100%{width:272px;height:272px}}@keyframes slideUp{100%{transform:translateY(0)}}@media(width >= 481px){@keyframes slideInFwd{100%{width:417px;height:417px}}@keyframes slideOutRight{100%{width:417px;height:417px}}}@media(width >= 48rem){@keyframes slideInFwd{100%{width:330px;height:330px}}@keyframes slideOutRight{100%{width:330px;height:330px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 60rem){@keyframes slideInFwd{100%{width:460px;height:460px}}@keyframes slideOutRight{100%{width:460px;height:460px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 75rem){@keyframes slideInFwd{100%{width:592px;height:591px}}@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 45px))}}}@media(width >= 87.5rem){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 120px))}}}@media(width >= 2200px){@keyframes slideOutRight{100%{width:592px;height:591px;transform:translateX(calc(100vw - 592px))}}}span.ripple{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 600ms linear;background-color:var(--ripple-bg-color)}@keyframes ripple{to{transform:scale(4);opacity:1}}:root{--size-base-unit: 0.5rem}[dir=rtl]{--rtlTranslateX: 50%;--rtlGradientToRight: 270deg;--rtlRotate45Inverse: -45deg}.cre8-c-layout{display:grid;flex:1;gap:1rem;grid-template-columns:minmax(0, 1fr)}@media all and (min-width: 960px){.cre8-c-layout{gap:2rem;grid-template-columns:minmax(0, 1fr) calc(var(--cre8-sidebar-width, 40%) - (0.5rem))}}@media all and (min-width: 960px){.cre8-c-layout--left-sidebar{grid-template-columns:calc(var(--cre8-sidebar-width, 40%) - (0.5rem)) minmax(0, 1fr)}}`;
|
|
5
|
+
var c = Object.defineProperty, f = (s, t, d, x) => {
|
|
6
|
+
for (var e = void 0, i = s.length - 1, l; i >= 0; i--)
|
|
7
|
+
(l = s[i]) && (e = l(t, d, e) || e);
|
|
8
|
+
return e && c(t, d, e), e;
|
|
42
9
|
};
|
|
43
|
-
const
|
|
10
|
+
const a = class a extends p {
|
|
44
11
|
render() {
|
|
45
|
-
const
|
|
12
|
+
const t = this.componentClassNames("cre8-c-layout", {
|
|
46
13
|
"cre8-c-layout--left-sidebar": this.variant === "left-sidebar"
|
|
47
14
|
});
|
|
48
|
-
return
|
|
49
|
-
<div class="${
|
|
15
|
+
return n`
|
|
16
|
+
<div class="${t}">
|
|
50
17
|
<slot></slot>
|
|
51
18
|
</div>
|
|
52
19
|
`;
|
|
53
20
|
}
|
|
54
21
|
};
|
|
55
|
-
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
],
|
|
60
|
-
customElements.get("cre8-layout") === void 0 && customElements.define("cre8-layout",
|
|
22
|
+
a.styles = [h];
|
|
23
|
+
let r = a;
|
|
24
|
+
f([
|
|
25
|
+
o()
|
|
26
|
+
], r.prototype, "variant");
|
|
27
|
+
customElements.get("cre8-layout") === void 0 && customElements.define("cre8-layout", r);
|
|
61
28
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
29
|
+
r as Cre8Layout,
|
|
30
|
+
r as default
|
|
64
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.styles.d.ts","sourceRoot":"","sources":["../../../components/layout/layout.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"layout.styles.d.ts","sourceRoot":"","sources":["../../../components/layout/layout.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAsoE,CAAC;AACnpE,eAAe,MAAM,CAAC"}
|
|
@@ -1,54 +1,31 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Layout Container
|
|
10
|
-
* 1) Caps the width of the content to the maximum width
|
|
11
|
-
* and centers the container
|
|
12
|
-
*/
|
|
13
|
-
.cre8-l-layout-container {
|
|
14
|
-
width: 100%;
|
|
15
|
-
max-width: var(--cre8-l-max-width);
|
|
16
|
-
padding-right: calc(8px * 2);
|
|
17
|
-
padding-left: calc(8px * 2);
|
|
18
|
-
margin: 0 auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.cre8-l-layout-container--full-height {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
flex: 1;
|
|
25
|
-
height: 100%;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
var f = Object.defineProperty, p = (r, e, i, u) => {
|
|
29
|
-
for (var t = void 0, l = r.length - 1, s; l >= 0; l--)
|
|
30
|
-
(s = r[l]) && (t = s(e, i, t) || t);
|
|
31
|
-
return t && f(e, i, t), t;
|
|
1
|
+
import { css as n, html as o } from "lit";
|
|
2
|
+
import { property as h } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as m } 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-l-layout-container{width:100%;max-width:var(--cre8-l-max-width);padding-right:1rem;padding-left:1rem;margin:0 auto}.cre8-l-layout-container--full-height{display:flex;flex-direction:column;flex:1;height:100%}`;
|
|
5
|
+
var c = Object.defineProperty, f = (s, t, l, x) => {
|
|
6
|
+
for (var e = void 0, i = s.length - 1, d; i >= 0; i--)
|
|
7
|
+
(d = s[i]) && (e = d(t, l, e) || e);
|
|
8
|
+
return e && c(t, l, e), e;
|
|
32
9
|
};
|
|
33
|
-
const
|
|
10
|
+
const a = class a extends m {
|
|
34
11
|
render() {
|
|
35
|
-
const
|
|
12
|
+
const t = this.componentClassNames("cre8-l-layout-container", {
|
|
36
13
|
"cre8-l-layout-container--full-height": this.fullHeight === !0
|
|
37
14
|
});
|
|
38
|
-
return
|
|
39
|
-
<div class="${
|
|
15
|
+
return o`
|
|
16
|
+
<div class="${t}">
|
|
40
17
|
<slot></slot>
|
|
41
18
|
</div>
|
|
42
19
|
`;
|
|
43
20
|
}
|
|
44
21
|
};
|
|
45
|
-
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
],
|
|
50
|
-
customElements.get("cre8-layout-container") === void 0 && customElements.define("cre8-layout-container",
|
|
22
|
+
a.styles = [p];
|
|
23
|
+
let r = a;
|
|
24
|
+
f([
|
|
25
|
+
h({ type: Boolean, reflect: !0 })
|
|
26
|
+
], r.prototype, "fullHeight");
|
|
27
|
+
customElements.get("cre8-layout-container") === void 0 && customElements.define("cre8-layout-container", r);
|
|
51
28
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
29
|
+
r as Cre8LayoutContainer,
|
|
30
|
+
r as default
|
|
54
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-container.styles.d.ts","sourceRoot":"","sources":["../../../components/layout-container/layout-container.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"layout-container.styles.d.ts","sourceRoot":"","sources":["../../../components/layout-container/layout-container.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAq+D,CAAC;AACl/D,eAAe,MAAM,CAAC"}
|
|
@@ -1,46 +1,37 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as h, html as p } from "lit";
|
|
2
2
|
import { property as l } from "lit/decorators.js";
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.cre8-c-layout-section {
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
var d = Object.defineProperty, m = (i, s, c, f) => {
|
|
15
|
-
for (var t = void 0, o = i.length - 1, n; o >= 0; o--)
|
|
16
|
-
(n = i[o]) && (t = n(s, c, t) || t);
|
|
17
|
-
return t && d(s, c, t), t;
|
|
3
|
+
import { Cre8Element as m } from "../cre8-element.js";
|
|
4
|
+
const c = h`*,::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-layout-section{width:100%;height:100%}`;
|
|
5
|
+
var f = Object.defineProperty, n = (a, r, d, x) => {
|
|
6
|
+
for (var e = void 0, i = a.length - 1, o; i >= 0; i--)
|
|
7
|
+
(o = a[i]) && (e = o(r, d, e) || e);
|
|
8
|
+
return e && f(r, d, e), e;
|
|
18
9
|
};
|
|
19
|
-
const
|
|
10
|
+
const s = class s extends m {
|
|
20
11
|
constructor() {
|
|
21
12
|
super(...arguments), this.top = "1rem";
|
|
22
13
|
}
|
|
23
14
|
render() {
|
|
24
|
-
const
|
|
15
|
+
const r = this.componentClassNames("cre8-c-layout-section", {
|
|
25
16
|
"cre8-c-layout-section--sticky": this.behavior === "sticky"
|
|
26
17
|
});
|
|
27
|
-
return
|
|
28
|
-
<div class="${
|
|
18
|
+
return p`
|
|
19
|
+
<div class="${r}" style=${`top: ${this.top}`}>
|
|
29
20
|
<slot></slot>
|
|
30
21
|
</div>
|
|
31
22
|
`;
|
|
32
23
|
}
|
|
33
24
|
};
|
|
34
|
-
|
|
35
|
-
let
|
|
36
|
-
|
|
25
|
+
s.styles = [c];
|
|
26
|
+
let t = s;
|
|
27
|
+
n([
|
|
37
28
|
l()
|
|
38
|
-
],
|
|
39
|
-
|
|
29
|
+
], t.prototype, "behavior");
|
|
30
|
+
n([
|
|
40
31
|
l()
|
|
41
|
-
],
|
|
42
|
-
customElements.get("cre8-layout-section") === void 0 && customElements.define("cre8-layout-section",
|
|
32
|
+
], t.prototype, "top");
|
|
33
|
+
customElements.get("cre8-layout-section") === void 0 && customElements.define("cre8-layout-section", t);
|
|
43
34
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
t as Cre8LayoutSection,
|
|
36
|
+
t as default
|
|
46
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-section.styles.d.ts","sourceRoot":"","sources":["../../../components/layout-section/layout-section.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"layout-section.styles.d.ts","sourceRoot":"","sources":["../../../components/layout-section/layout-section.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA8zD,CAAC;AAC30D,eAAe,MAAM,CAAC"}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { Cre8Element as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 1) Container used to cap the width of a passage of text to be readable
|
|
7
|
-
*/
|
|
8
|
-
.cre8-c-linelength-container {
|
|
9
|
-
max-width: var(--cre8-l-linelength-width);
|
|
10
|
-
}
|
|
11
|
-
`, t = class t extends c {
|
|
1
|
+
import { css as r, html as s } 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-linelength-container{max-width:var(--cre8-l-linelength-width)}`, t = class t extends a {
|
|
12
4
|
render() {
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
<div class="${
|
|
5
|
+
const i = this.componentClassNames("cre8-c-linelength-container", {});
|
|
6
|
+
return s`
|
|
7
|
+
<div class="${i}">
|
|
16
8
|
<slot></slot>
|
|
17
9
|
</div>
|
|
18
10
|
`;
|
|
19
11
|
}
|
|
20
12
|
};
|
|
21
|
-
t.styles = [
|
|
13
|
+
t.styles = [d];
|
|
22
14
|
let e = t;
|
|
23
15
|
customElements.get("cre8-linelength-container") === void 0 && customElements.define("cre8-linelength-container", e);
|
|
24
16
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linelength-container.styles.d.ts","sourceRoot":"","sources":["../../../components/linelength-container/linelength-container.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"linelength-container.styles.d.ts","sourceRoot":"","sources":["../../../components/linelength-container/linelength-container.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAs1D,CAAC;AACn2D,eAAe,MAAM,CAAC"}
|