@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-nav-item.styles.d.ts","sourceRoot":"","sources":["../../../components/global-nav-item/global-nav-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"global-nav-item.styles.d.ts","sourceRoot":"","sources":["../../../components/global-nav-item/global-nav-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA8xG,CAAC;AAC3yG,eAAe,MAAM,CAAC"}
|
|
@@ -1,335 +1,13 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { property as
|
|
3
|
-
import { Cre8Element as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* 1) Grid layout for items like cards, etc.
|
|
10
|
-
*/
|
|
11
|
-
.cre8-c-grid {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
margin: calc(8px * -1.5);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Grid with no gap in between items
|
|
20
|
-
*/
|
|
21
|
-
.cre8-c-grid--gap-none {
|
|
22
|
-
margin: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Small gap grid
|
|
27
|
-
* 1) Spacing between grid items is smaller than default
|
|
28
|
-
*/
|
|
29
|
-
.cre8-c-grid--gap-sm {
|
|
30
|
-
margin: calc(8px * -0.5);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Large gap grid
|
|
35
|
-
* 1) Spacing between grid items is larger than default
|
|
36
|
-
*/
|
|
37
|
-
.cre8-c-grid--gap-lg {
|
|
38
|
-
margin: calc(8px * -2);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Side by Side Grid
|
|
43
|
-
* 1) Grid that stays 2 items per row on all screen sizes
|
|
44
|
-
*/
|
|
45
|
-
.cre8-c-grid--side-by-side {
|
|
46
|
-
flex-direction: row;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 2up grid
|
|
51
|
-
* 1) Stacked items on small screens to 2 items per row on medium/large screens
|
|
52
|
-
*/
|
|
53
|
-
.cre8-c-grid--2up {
|
|
54
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* 2up grid that breaks faster
|
|
60
|
-
* 1) Grid that breaks from 1 to 2up at a smaller viewport than the default
|
|
61
|
-
*/
|
|
62
|
-
&.cre8-c-grid--break-faster {
|
|
63
|
-
@media all and (min-width:$cre8-breakpoint-sm) {
|
|
64
|
-
flex-direction: row;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* 2up grid that breaks slower
|
|
70
|
-
* 1) Grid that breaks from 1 to 2up at a larger viewport than the default
|
|
71
|
-
*/
|
|
72
|
-
&.cre8-c-grid--break-slower {
|
|
73
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
}
|
|
76
|
-
@media all and (min-width:$cre8-breakpoint-xxl) {
|
|
77
|
-
flex-direction: row;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* 3up grid
|
|
84
|
-
* 1) Stacked items on small screens to 3 items per row on medium/large screens
|
|
85
|
-
*/
|
|
86
|
-
.cre8-c-grid--3up {
|
|
87
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* 1 to 3up grid
|
|
94
|
-
* 1) Stacked items on small screens to 3 items per row on medium/large screens
|
|
95
|
-
*/
|
|
96
|
-
.cre8-c-grid--1-3up {
|
|
97
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
98
|
-
flex-direction: row;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* 1 to 3 up grid that breaks faster
|
|
103
|
-
* 1) Grid that breaks from 1 to 3up at a smaller viewport than the default
|
|
104
|
-
*/
|
|
105
|
-
&.cre8-c-grid--break-faster {
|
|
106
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
107
|
-
flex-direction: row;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* 1 to 3up grid that breaks slower
|
|
113
|
-
* 1) Grid that breaks from 1 to 3up at a larger viewport than the default
|
|
114
|
-
*/
|
|
115
|
-
&.cre8-c-grid--break-slower {
|
|
116
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
117
|
-
flex-direction: column;
|
|
118
|
-
}
|
|
119
|
-
@media all and (min-width:$cre8-breakpoint-xl) {
|
|
120
|
-
flex-direction: row;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* 1 to 2 to 4up grid
|
|
127
|
-
* 1) Stacked items on small screens to 2 items per row on medium screens to 4 items per row on large screens
|
|
128
|
-
*/
|
|
129
|
-
.cre8-c-grid--1-2-4up {
|
|
130
|
-
@media all and (min-width:$cre8-breakpoint-sm) {
|
|
131
|
-
flex-direction: row;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* 1 to 4up grid
|
|
137
|
-
* 1) Stacked items on small screens to 4 items per row on medium/large screens
|
|
138
|
-
*/
|
|
139
|
-
.cre8-c-grid--1-4up {
|
|
140
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
141
|
-
flex-direction: row;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* 1 to 2 to 4up grid
|
|
147
|
-
* 1) Stacked items on small screens to 2 items per row on small/medium screens to
|
|
148
|
-
* 3 items per row on medium screens and 4 items per row on large screens
|
|
149
|
-
*/
|
|
150
|
-
.cre8-c-grid--4up {
|
|
151
|
-
@media all and (min-width:$cre8-breakpoint-sm) {
|
|
152
|
-
flex-direction: row;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Slotted grid item within 4up Grid
|
|
158
|
-
*/
|
|
159
|
-
.cre8-c-grid--2-4-6up {
|
|
160
|
-
flex-direction: row;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Slotted grid item
|
|
165
|
-
*/
|
|
166
|
-
::slotted(cre8-grid-item) {
|
|
167
|
-
display: block;
|
|
168
|
-
padding: calc(8px * 1.5);
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Slotted grid item within grid with no gap between items
|
|
172
|
-
*/
|
|
173
|
-
.cre8-c-grid--gap-none > & {
|
|
174
|
-
padding: 0;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Slotted grid item within grid with small gap between items
|
|
179
|
-
*/
|
|
180
|
-
.cre8-c-grid--gap-sm > & {
|
|
181
|
-
padding: calc(8px * 0.5);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Slotted grid item within grid with large gap between items
|
|
186
|
-
*/
|
|
187
|
-
.cre8-c-grid--gap-lg > & {
|
|
188
|
-
padding: calc(8px * 2);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Slotted grid item within side by side grid
|
|
193
|
-
* 1) Grid that stays 2 items per row on all screen sizes
|
|
194
|
-
*/
|
|
195
|
-
.cre8-c-grid--side-by-side > & {
|
|
196
|
-
width: 50%;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Slotted grid item within 2up Grid
|
|
201
|
-
*/
|
|
202
|
-
.cre8-c-grid--2up > & {
|
|
203
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
204
|
-
width: 50%;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Slotted grid item within 2up break faster (small to large screens) Grid
|
|
210
|
-
*/
|
|
211
|
-
.cre8-c-grid--2up.cre8-c-grid--break-faster > & {
|
|
212
|
-
@media all and (min-width:$cre8-breakpoint-sm) {
|
|
213
|
-
width: 50%;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Slotted grid item within 2up break slower (small to large screens) Grid
|
|
219
|
-
*/
|
|
220
|
-
.cre8-c-grid--2up.cre8-c-grid--break-slower > & {
|
|
221
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
222
|
-
width: 100%;
|
|
223
|
-
}
|
|
224
|
-
@media all and (min-width:$cre8-breakpoint-xxl) {
|
|
225
|
-
width: 50%;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Slotted grid item within 3up Grid
|
|
231
|
-
*/
|
|
232
|
-
.cre8-c-grid--3up > & {
|
|
233
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
234
|
-
width: 50%;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
238
|
-
width: 33.3333%;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Slotted grid item within 1-3up Grid
|
|
244
|
-
*/
|
|
245
|
-
.cre8-c-grid--1-3up > & {
|
|
246
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
247
|
-
width: 33.3333%;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Slotted grid item within 1 to 3up break faster (small to large screens) grid
|
|
253
|
-
*/
|
|
254
|
-
.cre8-c-grid--1-3up.cre8-c-grid--break-faster > & {
|
|
255
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
256
|
-
width: 33.33%;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Slotted grid item within 2up break slower (small to large screens) Grid
|
|
262
|
-
*/
|
|
263
|
-
.cre8-c-grid--1-3up.cre8-c-grid--break-slower > & {
|
|
264
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
265
|
-
width: 100%;
|
|
266
|
-
}
|
|
267
|
-
@media all and (min-width:$cre8-breakpoint-xl) {
|
|
268
|
-
width: 33.33%;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Slotted grid item within 1-2-4up Grid
|
|
274
|
-
*/
|
|
275
|
-
.cre8-c-grid--1-2-4up > & {
|
|
276
|
-
@media all and (min-width:$cre8-breakpoint-sm) {
|
|
277
|
-
width: 50%;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
281
|
-
width: 25%;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Slotted grid item within 1-2-4up Grid
|
|
287
|
-
*/
|
|
288
|
-
.cre8-c-grid--1-4up > & {
|
|
289
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
290
|
-
width: 25%;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Slotted grid item within 4up Grid
|
|
296
|
-
*/
|
|
297
|
-
.cre8-c-grid--4up > & {
|
|
298
|
-
@media all and (min-width:$cre8-breakpoint-sm) {
|
|
299
|
-
width: 50%;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
303
|
-
width: 33.3333%;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
307
|
-
width: 25%;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Slotted grid item within 4up Grid
|
|
313
|
-
*/
|
|
314
|
-
.cre8-c-grid--2-4-6up > & {
|
|
315
|
-
width: 50%;
|
|
316
|
-
|
|
317
|
-
@media all and (min-width:$cre8-breakpoint-lg) {
|
|
318
|
-
width: 25%;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
@media all and (min-width:$cre8-breakpoint-xl) {
|
|
322
|
-
width: 16.66%;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
`;
|
|
327
|
-
var w = Object.defineProperty, a = (l, r, c, h) => {
|
|
328
|
-
for (var e = void 0, t = l.length - 1, o; t >= 0; t--)
|
|
329
|
-
(o = l[t]) && (e = o(r, c, e) || e);
|
|
330
|
-
return e && w(r, c, e), e;
|
|
1
|
+
import { css as m, html as p } from "lit";
|
|
2
|
+
import { property as t } from "lit/decorators.js";
|
|
3
|
+
import { Cre8Element as g } from "../cre8-element.js";
|
|
4
|
+
const o = 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-grid{display:flex;flex-direction:column;flex-wrap:wrap;margin:-0.75rem}.cre8-c-grid--gap-none{margin:0}.cre8-c-grid--gap-sm{margin:-0.25rem}.cre8-c-grid--gap-lg{margin:-1rem}.cre8-c-grid--side-by-side{flex-direction:row}@media all and (min-width: 768px){.cre8-c-grid--2up{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--2up.cre8-c-grid--break-faster{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--2up.cre8-c-grid--break-slower{flex-direction:column}}@media all and (min-width: 1400px){.cre8-c-grid--2up.cre8-c-grid--break-slower{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--3up{flex-direction:row}}@media all and (min-width: 960px){.cre8-c-grid--1-3up{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--1-3up.cre8-c-grid--break-faster{flex-direction:row}}@media all and (min-width: 960px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower{flex-direction:column}}@media all and (min-width: 1200px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--1-2-4up{flex-direction:row}}@media all and (min-width: 768px){.cre8-c-grid--1-4up{flex-direction:row}}@media all and (min-width: 560px){.cre8-c-grid--4up{flex-direction:row}}.cre8-c-grid--2-4-6up{flex-direction:row}::slotted(cre8-grid-item){display:block;padding:0.75rem}.cre8-c-grid--gap-none>::slotted(cre8-grid-item){padding:0}.cre8-c-grid--gap-sm>::slotted(cre8-grid-item){padding:0.25rem}.cre8-c-grid--gap-lg>::slotted(cre8-grid-item){padding:1rem}.cre8-c-grid--side-by-side>::slotted(cre8-grid-item){width:50%}@media all and (min-width: 768px){.cre8-c-grid--2up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 560px){.cre8-c-grid--2up.cre8-c-grid--break-faster>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--2up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:100%}}@media all and (min-width: 1400px){.cre8-c-grid--2up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--3up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 960px){.cre8-c-grid--3up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 960px){.cre8-c-grid--1-3up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 768px){.cre8-c-grid--1-3up.cre8-c-grid--break-faster>::slotted(cre8-grid-item){width:33.33%}}@media all and (min-width: 960px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:100%}}@media all and (min-width: 1200px){.cre8-c-grid--1-3up.cre8-c-grid--break-slower>::slotted(cre8-grid-item){width:33.33%}}@media all and (min-width: 560px){.cre8-c-grid--1-2-4up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 960px){.cre8-c-grid--1-2-4up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 768px){.cre8-c-grid--1-4up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 560px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:50%}}@media all and (min-width: 768px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:33.3333%}}@media all and (min-width: 960px){.cre8-c-grid--4up>::slotted(cre8-grid-item){width:25%}}.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:50%}@media all and (min-width: 960px){.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:25%}}@media all and (min-width: 1200px){.cre8-c-grid--2-4-6up>::slotted(cre8-grid-item){width:16.66%}}`;
|
|
5
|
+
var h = Object.defineProperty, a = (l, r, n, w) => {
|
|
6
|
+
for (var e = void 0, d = l.length - 1, s; d >= 0; d--)
|
|
7
|
+
(s = l[d]) && (e = s(r, n, e) || e);
|
|
8
|
+
return e && h(r, n, e), e;
|
|
331
9
|
};
|
|
332
|
-
const
|
|
10
|
+
const c = class c extends g {
|
|
333
11
|
render() {
|
|
334
12
|
const r = this.componentClassNames("cre8-c-grid", {
|
|
335
13
|
"cre8-c-grid--side-by-side": this.variant === "side-by-side",
|
|
@@ -346,23 +24,23 @@ const n = class n extends p {
|
|
|
346
24
|
"cre8-c-grid--break-faster": this.break === "faster",
|
|
347
25
|
"cre8-c-grid--break-slower": this.break === "slower"
|
|
348
26
|
});
|
|
349
|
-
return
|
|
27
|
+
return p`
|
|
350
28
|
<div class="${r}">
|
|
351
29
|
<slot></slot>
|
|
352
30
|
</div>
|
|
353
31
|
`;
|
|
354
32
|
}
|
|
355
33
|
};
|
|
356
|
-
|
|
357
|
-
let i =
|
|
34
|
+
c.styles = [o];
|
|
35
|
+
let i = c;
|
|
358
36
|
a([
|
|
359
|
-
|
|
37
|
+
t()
|
|
360
38
|
], i.prototype, "variant");
|
|
361
39
|
a([
|
|
362
|
-
|
|
40
|
+
t()
|
|
363
41
|
], i.prototype, "gap");
|
|
364
42
|
a([
|
|
365
|
-
|
|
43
|
+
t()
|
|
366
44
|
], i.prototype, "break");
|
|
367
45
|
customElements.get("cre8-grid") === void 0 && customElements.define("cre8-grid", i);
|
|
368
46
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.styles.d.ts","sourceRoot":"","sources":["../../../components/grid/grid.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"grid.styles.d.ts","sourceRoot":"","sources":["../../../components/grid/grid.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA2qK,CAAC;AACxrK,eAAe,MAAM,CAAC"}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { Cre8Element as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 1) Item used for the various items within the grid
|
|
7
|
-
*/
|
|
8
|
-
.cre8-c-grid__item {
|
|
9
|
-
height: 100%;
|
|
10
|
-
}
|
|
11
|
-
`, t = class t extends m {
|
|
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-grid__item{height:100%}`, t = class t extends a {
|
|
12
4
|
render() {
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
<div class="${
|
|
5
|
+
const i = this.componentClassNames("cre8-c-grid__item", {});
|
|
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-grid-item") === void 0 && customElements.define("cre8-grid-item", e);
|
|
24
16
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-item.styles.d.ts","sourceRoot":"","sources":["../../../components/grid-item/grid-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"grid-item.styles.d.ts","sourceRoot":"","sources":["../../../components/grid-item/grid-item.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA+yD,CAAC;AAC5zD,eAAe,MAAM,CAAC"}
|
|
@@ -1,83 +1,20 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as n, html as i } from "lit";
|
|
2
2
|
import { state as l } from "lit/decorators.js";
|
|
3
3
|
import { Cre8Element as h } from "../cre8-element.js";
|
|
4
|
-
const m =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* 1) Global header where the navigation, logo, and other content lives across the entire site
|
|
10
|
-
*/
|
|
11
|
-
.cre8-c-header {
|
|
12
|
-
background: var(--cre8-header-background, var(--cre8-color-header-bg-default));
|
|
13
|
-
color: var(--cre8-color-content-default);
|
|
14
|
-
position: relative;
|
|
15
|
-
z-index: 3;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Header top section
|
|
20
|
-
* 1) Optional slot used for global navigation usually
|
|
21
|
-
*/
|
|
22
|
-
.cre8-c-header__top {
|
|
23
|
-
position: relative;
|
|
24
|
-
top: 0;
|
|
25
|
-
width: 100%;
|
|
26
|
-
z-index: 3;
|
|
27
|
-
background: var(--cre8-header-top-background);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Inner container of the header top section
|
|
32
|
-
* 1) Used to cap the width of the content within the header
|
|
33
|
-
*/
|
|
34
|
-
.cre8-c-header__top-inner {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
width: 100%;
|
|
38
|
-
overflow: auto;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Header middle section
|
|
43
|
-
* 1) Section of the site used for the logo and primary navigation
|
|
44
|
-
*/
|
|
45
|
-
.cre8-c-header__middle {
|
|
46
|
-
width: 100%;
|
|
47
|
-
box-shadow: var(--cre8-theme-box-shadow-md);
|
|
48
|
-
border-bottom: var(--cre8-header-middle-border-bottom-color);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Inner container of the header middle section
|
|
53
|
-
* 1) Used to cap the width of the content within the header
|
|
54
|
-
*/
|
|
55
|
-
.cre8-c-header__middle-inner {
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
width: 100%;
|
|
59
|
-
padding-top: calc(8px * 2);
|
|
60
|
-
padding-bottom: calc(8px * 2);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.cre8-c-header__bottom {
|
|
64
|
-
background: var(--cre8-header-bottom-background);
|
|
65
|
-
box-shadow: var(--cre8-header-bottom-box-shadow);
|
|
66
|
-
}
|
|
67
|
-
`;
|
|
68
|
-
var p = Object.defineProperty, v = (i, t, d, u) => {
|
|
69
|
-
for (var e = void 0, r = i.length - 1, n; r >= 0; r--)
|
|
70
|
-
(n = i[r]) && (e = n(t, d, e) || e);
|
|
71
|
-
return e && p(t, d, e), e;
|
|
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}.cre8-c-header{background:var(--cre8-header-background, var(--cre8-color-header-bg-default));color:var(--cre8-color-content-default);position:relative;z-index:3}.cre8-c-header__top{position:relative;top:0;width:100%;z-index:3;background:var(--cre8-header-top-background)}.cre8-c-header__top-inner{display:flex;align-items:center;width:100%;overflow:auto}.cre8-c-header__middle{width:100%;box-shadow:var(--cre8-theme-box-shadow-md);border-bottom:var(--cre8-header-middle-border-bottom-color)}.cre8-c-header__middle-inner{display:flex;align-items:center;width:100%;padding-top:1rem;padding-bottom:1rem}.cre8-c-header__bottom{background:var(--cre8-header-bottom-background);box-shadow:var(--cre8-header-bottom-box-shadow)}`;
|
|
5
|
+
var p = Object.defineProperty, x = (o, t, s, f) => {
|
|
6
|
+
for (var e = void 0, a = o.length - 1, c; a >= 0; a--)
|
|
7
|
+
(c = o[a]) && (e = c(t, s, e) || e);
|
|
8
|
+
return e && p(t, s, e), e;
|
|
72
9
|
};
|
|
73
|
-
const
|
|
10
|
+
const d = class d extends h {
|
|
74
11
|
render() {
|
|
75
12
|
const t = this.componentClassNames("cre8-c-header", {
|
|
76
13
|
"cre8-is-active": this.isActive === !0
|
|
77
14
|
});
|
|
78
|
-
return
|
|
15
|
+
return i`
|
|
79
16
|
<header class="${t}">
|
|
80
|
-
${this.slotNotEmpty("top") &&
|
|
17
|
+
${this.slotNotEmpty("top") && i`<div class="cre8-c-header__top">
|
|
81
18
|
<cre8-layout-container>
|
|
82
19
|
<div class="cre8-c-header__top-inner">
|
|
83
20
|
<slot name="top"></slot>
|
|
@@ -91,7 +28,7 @@ const c = class c extends h {
|
|
|
91
28
|
</div>
|
|
92
29
|
</cre8-layout-container>
|
|
93
30
|
</div>
|
|
94
|
-
${this.slotNotEmpty("bottom") &&
|
|
31
|
+
${this.slotNotEmpty("bottom") && i`<div class="cre8-c-header__bottom">
|
|
95
32
|
<cre8-layout-container>
|
|
96
33
|
<slot name="bottom"></slot>
|
|
97
34
|
</cre8-layout-container>
|
|
@@ -100,13 +37,13 @@ const c = class c extends h {
|
|
|
100
37
|
`;
|
|
101
38
|
}
|
|
102
39
|
};
|
|
103
|
-
|
|
104
|
-
let
|
|
105
|
-
|
|
40
|
+
d.styles = [m];
|
|
41
|
+
let r = d;
|
|
42
|
+
x([
|
|
106
43
|
l()
|
|
107
|
-
],
|
|
108
|
-
customElements.get("cre8-header") === void 0 && customElements.define("cre8-header",
|
|
44
|
+
], r.prototype, "isActive");
|
|
45
|
+
customElements.get("cre8-header") === void 0 && customElements.define("cre8-header", r);
|
|
109
46
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
47
|
+
r as Cre8Header,
|
|
48
|
+
r as default
|
|
112
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.styles.d.ts","sourceRoot":"","sources":["../../../components/header/header.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"header.styles.d.ts","sourceRoot":"","sources":["../../../components/header/header.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA+9E,CAAC;AAC5+E,eAAe,MAAM,CAAC"}
|