@tmorrow/cre8-wc 1.0.26 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/cre8-wc.esm.js +9082 -15604
- package/cdn/cre8-wc.esm.js.map +1 -1
- package/cdn/cre8-wc.min.js +1231 -8308
- package/cdn/cre8-wc.min.js.map +1 -1
- package/lib/cdn-entry.d.ts +20 -2
- package/lib/cdn-entry.d.ts.map +1 -1
- package/lib/components/accordion/accordion.js +18 -64
- package/lib/components/accordion/accordion.styles.d.ts.map +1 -1
- package/lib/components/accordion-item/accordion-item.js +35 -238
- package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -1
- package/lib/components/alert/alert.js +56 -221
- package/lib/components/alert/alert.styles.d.ts.map +1 -1
- package/lib/components/badge/badge.js +33 -164
- package/lib/components/badge/badge.styles.d.ts.map +1 -1
- package/lib/components/band/band.js +11 -261
- package/lib/components/band/band.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.js +14 -33
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +10 -45
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -1
- package/lib/components/button/button.js +14 -14
- package/lib/components/button-group/button-group.js +10 -261
- package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
- package/lib/components/card/card.js +17 -130
- package/lib/components/card/card.styles.d.ts.map +1 -1
- package/lib/components/chart/chart.js +137 -223
- package/lib/components/chart/chart.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field/checkbox-field.js +26 -59
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/lib/components/checkbox-field-item/checkbox-field-item.js +38 -205
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
- package/lib/components/danger-button/danger-button.js +53 -582
- package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -1
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -1
- package/lib/components/date-picker/date-picker.js +262 -499
- package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -1
- package/lib/components/divider/divider.js +20 -61
- package/lib/components/divider/divider.styles.d.ts.map +1 -1
- package/lib/components/dropdown/dropdown.js +34 -107
- package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -1
- package/lib/components/dropdown-item/dropdown-item.js +18 -49
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -1
- package/lib/components/feature/feature.js +19 -81
- package/lib/components/feature/feature.styles.d.ts.map +1 -1
- package/lib/components/field/field.js +12 -146
- package/lib/components/field/field.styles.d.ts.map +1 -1
- package/lib/components/field-note/field-note.js +22 -66
- package/lib/components/field-note/field-note.styles.d.ts.map +1 -1
- package/lib/components/footer/footer.js +10 -29
- package/lib/components/footer/footer.styles.d.ts.map +1 -1
- package/lib/components/global-nav/global-nav.js +20 -43
- package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -1
- package/lib/components/global-nav-item/global-nav-item.js +26 -105
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -1
- package/lib/components/grid/grid.js +15 -337
- package/lib/components/grid/grid.styles.d.ts.map +1 -1
- package/lib/components/grid-item/grid-item.js +7 -15
- package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -1
- package/lib/components/header/header.js +17 -80
- package/lib/components/header/header.styles.d.ts.map +1 -1
- package/lib/components/heading/heading.js +16 -153
- package/lib/components/heading/heading.styles.d.ts.map +1 -1
- package/lib/components/hero/hero.js +17 -149
- package/lib/components/hero/hero.styles.d.ts.map +1 -1
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon.styles.d.ts.map +1 -1
- package/lib/components/inline-alert/inline-alert.js +53 -214
- package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
- package/lib/components/layout/layout.js +20 -53
- package/lib/components/layout/layout.styles.d.ts.map +1 -1
- package/lib/components/layout-container/layout-container.js +20 -43
- package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -1
- package/lib/components/layout-section/layout-section.js +20 -29
- package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -1
- package/lib/components/linelength-container/linelength-container.js +7 -15
- package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -1
- package/lib/components/link/link.js +33 -228
- package/lib/components/link/link.styles.d.ts.map +1 -1
- package/lib/components/link-list/link-list.js +23 -129
- package/lib/components/link-list/link-list.styles.d.ts.map +1 -1
- package/lib/components/link-list-item/link-list-item.js +19 -80
- package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -1
- package/lib/components/list/list.js +17 -67
- package/lib/components/list/list.styles.d.ts.map +1 -1
- package/lib/components/list-item/list-item.js +11 -16
- package/lib/components/list-item/list-item.styles.d.ts.map +1 -1
- package/lib/components/loading-spinner/loading-spinner.js +13 -157
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -1
- package/lib/components/logo/logo.js +20 -30
- package/lib/components/logo/logo.styles.d.ts.map +1 -1
- package/lib/components/main/main.js +18 -42
- package/lib/components/main/main.styles.d.ts.map +1 -1
- package/lib/components/modal/modal.d.ts +1 -0
- package/lib/components/modal/modal.d.ts.map +1 -1
- package/lib/components/modal/modal.js +52 -217
- package/lib/components/modal/modal.styles.d.ts.map +1 -1
- package/lib/components/multi-select/multi-select.js +71 -532
- package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
- package/lib/components/nav-container/nav-container.js +5 -40
- package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
- package/lib/components/page-header/page-header.js +19 -54
- package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
- package/lib/components/pagination/pagination.js +102 -183
- package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
- package/lib/components/percent-bar/percent-bar.js +22 -50
- package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
- package/lib/components/popover/popover.js +51 -220
- package/lib/components/popover/popover.styles.d.ts.map +1 -1
- package/lib/components/primary-nav/primary-nav.js +17 -51
- package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
- package/lib/components/primary-nav-item/primary-nav-item.js +24 -191
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/progress-meter/progress-meter.js +23 -127
- package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
- package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
- package/lib/components/progress-steps-item/progress-steps-item.js +27 -118
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
- package/lib/components/radio-field/radio-field.js +28 -64
- package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
- package/lib/components/radio-field-item/radio-field-item.js +54 -189
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
- package/lib/components/remove-tag/remove-tag.js +36 -129
- package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
- package/lib/components/section/section.js +19 -50
- package/lib/components/section/section.styles.d.ts.map +1 -1
- package/lib/components/select/select.js +43 -416
- package/lib/components/select/select.styles.d.ts.map +1 -1
- package/lib/components/select-tile/select-tile.js +18 -442
- package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
- package/lib/components/select-tile-list/select-tile-list.js +24 -62
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
- package/lib/components/skeleton-loader/skeleton-loader.js +19 -73
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
- package/lib/components/split-button/split-button.js +21 -37
- package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
- package/lib/components/submenu/submenu.js +8 -18
- package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
- package/lib/components/submenu-item/submenu-item.js +21 -42
- package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
- package/lib/components/tab/tab.js +17 -100
- package/lib/components/tab/tab.styles.d.ts.map +1 -1
- package/lib/components/tab-panel/tab-panel.js +18 -52
- package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
- package/lib/components/table/table.js +21 -73
- package/lib/components/table/table.styles.d.ts.map +1 -1
- package/lib/components/table-body/table-body.js +12 -24
- package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
- package/lib/components/table-cell/table-cell.js +29 -69
- package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
- package/lib/components/table-header/table-header.js +8 -39
- package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
- package/lib/components/table-header-cell/table-header-cell.js +18 -37
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
- package/lib/components/table-object/table-object.js +13 -32
- package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
- package/lib/components/table-row/table-row.js +33 -139
- package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
- package/lib/components/tabs/tabs.js +24 -339
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
- package/lib/components/tag/tag.js +44 -159
- package/lib/components/tag/tag.styles.d.ts.map +1 -1
- package/lib/components/tag-list/tag-list.js +20 -51
- package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav/tertiary-nav.js +21 -54
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +18 -68
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
- package/lib/components/text-link/text-link.js +20 -85
- package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
- package/lib/components/text-passage/text-passage.js +17 -189
- package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
- package/lib/components/tooltip/tooltip.js +57 -248
- package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/lib/components/utility-nav/utility-nav.js +23 -56
- package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
- package/lib/components/utility-nav-item/utility-nav-item.js +28 -83
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -1
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +2 -2
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -1
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -1
- package/lib/design-tokens/core/scss/theming/component.scss +5 -5
- package/lib/design-tokens/core/scss/theming/functions.scss +4 -0
- package/lib/design-tokens/core/scss/theming/spacing.scss +60 -60
- package/lib/design-tokens/core/scss/theming/variables.scss +11 -11
- package/lib/design-tokens/mixins/typography-usage.scss +277 -277
- package/lib/design-tokens/tokens_netflix.theme.d.ts.map +1 -1
- package/lib/{icon-DImqxDiW.js → icon-D22g8aWB.js} +35 -138
- package/lib/index.js +1 -1
- package/package.json +14 -8
|
@@ -1,122 +1,16 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { css as
|
|
3
|
-
import { property as
|
|
4
|
-
import { Cre8Element as
|
|
1
|
+
import { a as s } from "../../icon-D22g8aWB.js";
|
|
2
|
+
import { css as c, html as n } from "lit";
|
|
3
|
+
import { property as r } from "lit/decorators.js";
|
|
4
|
+
import { Cre8Element as g } from "../cre8-element.js";
|
|
5
5
|
import "../button/button.js";
|
|
6
6
|
import "../table-cell/table-cell.js";
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
\*------------------------------------*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Set the host to display the contents within the table header or table body wrapper
|
|
16
|
-
*/
|
|
17
|
-
:host {
|
|
18
|
-
display: contents;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 1) Row of the cre8 table
|
|
23
|
-
*/
|
|
24
|
-
.cre8-c-table__row {
|
|
25
|
-
display: var(--cre8-table-row-display, table-row);
|
|
26
|
-
border-bottom: var(--cre8-table-row-border-bottom);
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Table row hover state
|
|
30
|
-
* 1) Set the row hover background via custom property to allow
|
|
31
|
-
* the table variant to control the color
|
|
32
|
-
*/
|
|
33
|
-
&:hover {
|
|
34
|
-
background: var(--cre8-table-row-hover-background);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Table row within odd cre8-table-row wrappers
|
|
39
|
-
* 1) Set the odd row and odd row hover background via
|
|
40
|
-
* custom property to allow the table variant to control the color
|
|
41
|
-
*/
|
|
42
|
-
:host(:nth-child(odd)) & {
|
|
43
|
-
background: var(--cre8-table-row-odd-background, none);
|
|
44
|
-
|
|
45
|
-
&:hover {
|
|
46
|
-
background: var(--cre8-table-row-odd-hover-background, inherit);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@media all and (min-width:$cre8-breakpoint-md) {
|
|
51
|
-
border-bottom: inherit;
|
|
52
|
-
display: table-row;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Bare variant to remove border
|
|
58
|
-
*/
|
|
59
|
-
.cre8-c-table__row--bare {
|
|
60
|
-
--cre8-table-cell-border-bottom-color: transparent;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Slotted table row in expanded content following expandable table row
|
|
65
|
-
* 1) Don't show the collapsed table row by default
|
|
66
|
-
*/
|
|
67
|
-
.cre8-c-table__row--expandable + ::slotted(cre8-table-row) {
|
|
68
|
-
display: none; /* 1 */
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.cre8-c-table__row--expandable.cre8-is-expanded {
|
|
72
|
-
--cre8-table-cell-border-bottom-color: transparent;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Slotted table row in expanded content following expanded table row class
|
|
77
|
-
* 1) Display contents to get the proper table-row display for the row
|
|
78
|
-
*/
|
|
79
|
-
.cre8-c-table__row--expandable.cre8-is-expanded + ::slotted(cre8-table-row) {
|
|
80
|
-
display: contents; /* 1 */
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Button that expands the next table row
|
|
85
|
-
*/
|
|
86
|
-
.cre8-c-table__expand-button {
|
|
87
|
-
background-color: var(--cre8-color-bg-transparent);
|
|
88
|
-
border-width: var(--cre8-border-width-none);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Text within the button that expands the next table row
|
|
93
|
-
*/
|
|
94
|
-
.cre8-c-table__expand-button-text {
|
|
95
|
-
@include visuallyHidden;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Icon within the button that expands the next table row
|
|
100
|
-
*/
|
|
101
|
-
.cre8-c-table__expand-button-icon {
|
|
102
|
-
display: block;
|
|
103
|
-
transition: transform 0.2s ease;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Icon within the button that expands the next table row when the table row is expanded
|
|
107
|
-
* 1) Rotate the icon to show that it's open
|
|
108
|
-
*/
|
|
109
|
-
.cre8-is-expanded & {
|
|
110
|
-
transform: rotate(90deg); /* 1 */
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
`;
|
|
114
|
-
var w = Object.defineProperty, a = (d, r, c, u) => {
|
|
115
|
-
for (var t = void 0, l = d.length - 1, i; l >= 0; l--)
|
|
116
|
-
(i = d[l]) && (t = i(r, c, t) || t);
|
|
117
|
-
return t && w(r, c, t), t;
|
|
7
|
+
const h = c`.cre8-u-content-knockout-brand{color:var(----cre8-color-content-knockout-brand)}.cre8-u-is-hidden{display:none !important;visibility:hidden !important}.cre8-u-is-vishidden{position:absolute !important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px, 1px, 1px, 1px)}@media all and (min-width: 23.4375rem){.cre8-u-hide-sm{display:none !important}}@media all and (min-width: 35rem){.cre8-u-hide-sm-2{display:none !important}}@media all and (min-width: 48rem){.cre8-u-hide-md{display:none !important}}@media all and (min-width: 60rem){.cre8-u-hide-lg{display:none !important}}@media all and (min-width: 75rem){.cre8-u-hide-xl{display:none !important}}@media all and (max-width: 23.4375rem){.cre8-u-show-sm{display:none !important}}@media all and (max-width: 35rem){.cre8-u-show-sm-2{display:none !important}}@media all and (max-width: 48rem){.cre8-u-show-md{display:none !important}}@media all and (max-width: 60rem){.cre8-u-show-lg{display:none !important}}@media all and (max-width: 75rem){.cre8-u-show-xl{display:none !important}}.cre8-u-margin-none{margin:0 !important}.cre8-u-margin-sm{margin:size(1) !important}.cre8-u-margin-md{margin:size(2) !important}.cre8-u-margin-lg{margin:size(3) !important}.cre8-u-margin-xl{margin:size(4) !important}.cre8-u-margin-xxl{margin:size(8) !important}.cre8-u-margin-top-none{margin-top:0 !important}.cre8-u-margin-top-sm{margin-top:size(1) !important}.cre8-u-margin-top-md{margin-top:size(2) !important}.cre8-u-margin-top-lg{margin-top:size(3) !important}.cre8-u-margin-top-xl{margin-top:size(4) !important}.cre8-u-margin-top-xxl{margin-top:size(8) !important}.cre8-u-margin-right-none{margin-right:0 !important}.cre8-u-margin-right-sm{margin-right:size(1) !important}.cre8-u-margin-right-md{margin-right:size(2) !important}.cre8-u-margin-right-lg{margin-right:size(3) !important}.cre8-u-margin-right-xl{margin-right:size(4) !important}.cre8-u-margin-right-xxl{margin-right:size(8) !important}.cre8-u-margin-bottom-none{margin-bottom:0 !important}.cre8-u-margin-bottom-sm{margin-bottom:size(1) !important}.cre8-u-margin-bottom-md{margin-bottom:size(2) !important}.cre8-u-margin-bottom-lg{margin-bottom:size(3) !important}.cre8-u-margin-bottom-xl{margin-bottom:size(4) !important}.cre8-u-margin-bottom-xxl{margin-bottom:size(8) !important}.cre8-u-margin-bottom-xl-xxl{margin-bottom:size(4) !important}@media all and (min-width: 768px){.cre8-u-margin-bottom-xl-xxl{margin-bottom:size(8) !important}}.cre8-u-margin-left-none{margin-left:0 !important}.cre8-u-margin-left-sm{margin-left:size(1) !important}.cre8-u-margin-left-md{margin-left:size(2) !important}.cre8-u-margin-left-lg{margin-left:size(3) !important}.cre8-u-margin-left-xl{margin-left:size(4) !important}.cre8-u-margin-left-xxl{margin-left:size(8) !important}.cre8-u-padding-none{padding:0 !important}.cre8-u-padding-sm{padding:size(1) !important}.cre8-u-padding-md{padding:size(2) !important}.cre8-u-padding-lg{padding:size(3) !important}.cre8-u-padding-xl{padding:size(4) !important}.cre8-u-padding-xxl{padding:size(8) !important}.cre8-u-padding-top-none{padding-top:0 !important}.cre8-u-padding-top-sm{padding-top:size(1) !important}.cre8-u-padding-top-md{padding-top:size(2) !important}.cre8-u-padding-top-lg{padding-top:size(3) !important}.cre8-u-padding-top-xl{padding-top:size(4) !important}.cre8-u-padding-top-xxl{padding-top:size(8) !important}.cre8-u-padding-right-none{padding-right:0 !important}.cre8-u-padding-right-sm{padding-right:size(1) !important}.cre8-u-padding-right-md{padding-right:size(2) !important}.cre8-u-padding-right-lg{padding-right:size(3) !important}.cre8-u-padding-right-xl{padding-right:size(4) !important}.cre8-u-padding-right-xxl{padding-right:size(8) !important}.cre8-u-padding-bottom-none{padding-bottom:0 !important}.cre8-u-padding-bottom-sm{padding-bottom:size(1) !important}.cre8-u-padding-bottom-md{padding-bottom:size(2) !important}.cre8-u-padding-bottom-lg{padding-bottom:size(3) !important}.cre8-u-padding-bottom-xl{padding-bottom:size(4) !important}.cre8-u-padding-bottom-xxl{padding-bottom:size(8) !important}.cre8-u-padding-left-none{padding-left:0 !important}.cre8-u-padding-left-sm{padding-left:size(1) !important}.cre8-u-padding-left-md{padding-left:size(2) !important}.cre8-u-padding-left-lg{padding-left:size(3) !important}.cre8-u-padding-left-xl{padding-left:size(4) !important}.cre8-u-padding-left-xxl{padding-left:size(8) !important}.cre8-u-display-flex{display:flex !important}.cre8-u-display-block{display:block !important}body{font-family:var(--cre8-typography-body-default-font-family);font-size:var(--cre8-typography-body-default-font-size);font-weight:var(--cre8-typography-body-default-font-weight);line-height:var(--cre8-typography-body-default-line-height);text-decoration:var(--cre8-typography-body-default-text-decoration);text-transform:var(--cre8-typography-body-default-text-transform);display:flex;flex-direction:column;padding:0;margin:0;color:var(--cre8-color-content-default);background:var(--background-default)}@media all and (min-width: 60rem){.page-container{background:linear-gradient(90deg, #fff 0, #fff 66.66%, #f8f8f9 0, #f8f8f9 0)}}.band__inner{margin-left:2rem;margin-right:2rem}@media all and (min-width: 60rem){.band__inner{margin-right:0}}img{max-width:100%;height:auto}*,::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-table__row{display:var(--cre8-table-row-display, table-row);border-bottom:var(--cre8-table-row-border-bottom)}.cre8-c-table__row:hover{background:var(--cre8-table-row-hover-background)}:host(:nth-child(odd)) .cre8-c-table__row{background:var(--cre8-table-row-odd-background, none)}:host(:nth-child(odd)) .cre8-c-table__row:hover{background:var(--cre8-table-row-odd-hover-background, inherit)}@media all and (min-width: 768px){.cre8-c-table__row{border-bottom:inherit;display:table-row}}.cre8-c-table__row--bare{--cre8-table-cell-border-bottom-color: transparent}.cre8-c-table__row--expandable+::slotted(cre8-table-row){display:none}.cre8-c-table__row--expandable.cre8-is-expanded{--cre8-table-cell-border-bottom-color: transparent}.cre8-c-table__row--expandable.cre8-is-expanded+::slotted(cre8-table-row){display:contents}.cre8-c-table__expand-button{background-color:var(--cre8-color-bg-transparent);border-width:var(--cre8-border-width-none)}.cre8-c-table__expand-button-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.cre8-c-table__expand-button-icon{display:block;transition:transform .2s ease}.cre8-is-expanded .cre8-c-table__expand-button-icon{transform:rotate(90deg)}`;
|
|
8
|
+
var x = Object.defineProperty, i = (p, a, m, u) => {
|
|
9
|
+
for (var e = void 0, o = p.length - 1, l; o >= 0; o--)
|
|
10
|
+
(l = p[o]) && (e = l(a, m, e) || e);
|
|
11
|
+
return e && x(a, m, e), e;
|
|
118
12
|
};
|
|
119
|
-
const
|
|
13
|
+
const d = class d extends g {
|
|
120
14
|
constructor() {
|
|
121
15
|
super(...arguments), this.expandedButtonText = "Collapse Table Row", this.collapsedButtonText = "Expand Table Row";
|
|
122
16
|
}
|
|
@@ -124,13 +18,13 @@ const s = class s extends h {
|
|
|
124
18
|
this.isExpanded = !this.isExpanded, this.classList.contains("cre8-is-expanded") ? this.classList.remove("cre8-is-expanded") : this.classList.add("cre8-is-expanded");
|
|
125
19
|
}
|
|
126
20
|
render() {
|
|
127
|
-
const
|
|
21
|
+
const a = this.componentClassNames("cre8-c-table__row", {
|
|
128
22
|
"cre8-c-table__row--expandable": this.isExpandable,
|
|
129
23
|
"cre8-c-table__row--bare": this.variant === "bare",
|
|
130
24
|
"cre8-is-expanded": this.isExpanded
|
|
131
25
|
});
|
|
132
26
|
return n`
|
|
133
|
-
<tr role="row" class="${
|
|
27
|
+
<tr role="row" class="${a}">
|
|
134
28
|
${this.isExpandable ? n`<cre8-table-cell>
|
|
135
29
|
<button
|
|
136
30
|
class="cre8-c-table__expand-button"
|
|
@@ -140,7 +34,7 @@ const s = class s extends h {
|
|
|
140
34
|
<span class="cre8-c-table__expand-button-text">
|
|
141
35
|
${this.isExpanded ? this.expandedButtonText : this.collapsedButtonText}
|
|
142
36
|
</span>
|
|
143
|
-
<cre8-icon svg='${
|
|
37
|
+
<cre8-icon svg='${s}' rotate="90" class="cre8-c-table__expand-button-icon"></cre8-icon>
|
|
144
38
|
</button>
|
|
145
39
|
</cre8-table-cell>` : ""}
|
|
146
40
|
${n`<slot></slot>`}
|
|
@@ -149,25 +43,25 @@ const s = class s extends h {
|
|
|
149
43
|
`;
|
|
150
44
|
}
|
|
151
45
|
};
|
|
152
|
-
|
|
153
|
-
let
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
],
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
],
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
],
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
],
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
],
|
|
169
|
-
customElements.get("cre8-table-row") === void 0 && customElements.define("cre8-table-row",
|
|
46
|
+
d.styles = [h];
|
|
47
|
+
let t = d;
|
|
48
|
+
i([
|
|
49
|
+
r({ type: Boolean, reflect: !0 })
|
|
50
|
+
], t.prototype, "isExpanded");
|
|
51
|
+
i([
|
|
52
|
+
r({ type: Boolean, reflect: !0 })
|
|
53
|
+
], t.prototype, "isExpandable");
|
|
54
|
+
i([
|
|
55
|
+
r()
|
|
56
|
+
], t.prototype, "variant");
|
|
57
|
+
i([
|
|
58
|
+
r()
|
|
59
|
+
], t.prototype, "expandedButtonText");
|
|
60
|
+
i([
|
|
61
|
+
r()
|
|
62
|
+
], t.prototype, "collapsedButtonText");
|
|
63
|
+
customElements.get("cre8-table-row") === void 0 && customElements.define("cre8-table-row", t);
|
|
170
64
|
export {
|
|
171
|
-
|
|
172
|
-
|
|
65
|
+
t as Cre8TableRow,
|
|
66
|
+
t as default
|
|
173
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-row.styles.d.ts","sourceRoot":"","sources":["../../../components/table-row/table-row.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"table-row.styles.d.ts","sourceRoot":"","sources":["../../../components/table-row/table-row.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAAgqQ,CAAC;AAC7qQ,eAAe,MAAM,CAAC"}
|
|
@@ -1,330 +1,15 @@
|
|
|
1
|
-
import { css as p, html as
|
|
2
|
-
import { property as
|
|
3
|
-
import { nanoid as
|
|
4
|
-
import { Cre8Element as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*:before,
|
|
11
|
-
*:after {
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:root {
|
|
16
|
-
--size-base-unit: 0.5rem;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* RTL support for values logical properties can't automatically adjust for
|
|
21
|
-
* 1) Percentage based horizontal translate values need to be flipped
|
|
22
|
-
* 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
|
|
23
|
-
* 3) Inverse items that have 45degs
|
|
24
|
-
*/
|
|
25
|
-
[dir=rtl] {
|
|
26
|
-
--rtlTranslateX: 50%;
|
|
27
|
-
/* 1 */
|
|
28
|
-
--rtlGradientToRight: 270deg;
|
|
29
|
-
/* 2 */
|
|
30
|
-
--rtlRotate45Inverse: -45deg;
|
|
31
|
-
/* 3 */
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Visible focus outline for elements on a light background
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* Visible focus outline for elements with an error status
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* Visible focus outline for elements on a dark background
|
|
42
|
-
*/
|
|
43
|
-
/**
|
|
44
|
-
* Focus state for themes that need a dashed outline for focus
|
|
45
|
-
* state
|
|
46
|
-
**/
|
|
47
|
-
/**
|
|
48
|
-
* Invisible focus outline for elements that need a more visible
|
|
49
|
-
* focus state for high-contrast mode
|
|
50
|
-
*/
|
|
51
|
-
/**
|
|
52
|
-
* Visually hidden from display
|
|
53
|
-
*/
|
|
54
|
-
/*
|
|
55
|
-
=======
|
|
56
|
-
Animations
|
|
57
|
-
=======
|
|
58
|
-
*/
|
|
59
|
-
:host {
|
|
60
|
-
--cre8-z-index-1: 1;
|
|
61
|
-
--cre8-z-index-50: 50;
|
|
62
|
-
--cre8-z-index-100: 100;
|
|
63
|
-
--cre8-z-index-200: 200;
|
|
64
|
-
--cre8-z-index-1030: 1030;
|
|
65
|
-
--cre8-anim-fade-quick: 0.35s;
|
|
66
|
-
--cre8-anim-ease: ease;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@keyframes fadeIn {
|
|
70
|
-
100% {
|
|
71
|
-
opacity: 1;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
@keyframes slideIn {
|
|
75
|
-
100% {
|
|
76
|
-
transform: translateX(0);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
@keyframes slideInFwd {
|
|
80
|
-
100% {
|
|
81
|
-
width: 272px;
|
|
82
|
-
height: 272px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
@keyframes slideOutRight {
|
|
86
|
-
100% {
|
|
87
|
-
width: 272px;
|
|
88
|
-
height: 272px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
@keyframes slideUp {
|
|
92
|
-
100% {
|
|
93
|
-
transform: translateY(0);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
@media (width >= 481px) {
|
|
97
|
-
@keyframes slideInFwd {
|
|
98
|
-
100% {
|
|
99
|
-
width: 417px;
|
|
100
|
-
height: 417px;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
@keyframes slideOutRight {
|
|
104
|
-
100% {
|
|
105
|
-
width: 417px;
|
|
106
|
-
height: 417px;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
@media (width >= 48rem) {
|
|
111
|
-
@keyframes slideInFwd {
|
|
112
|
-
100% {
|
|
113
|
-
width: 330px;
|
|
114
|
-
height: 330px;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
@keyframes slideOutRight {
|
|
118
|
-
100% {
|
|
119
|
-
width: 330px;
|
|
120
|
-
height: 330px;
|
|
121
|
-
transform: translateX(calc(100vw - 45px));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
@media (width >= 60rem) {
|
|
126
|
-
@keyframes slideInFwd {
|
|
127
|
-
100% {
|
|
128
|
-
width: 460px;
|
|
129
|
-
height: 460px;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
@keyframes slideOutRight {
|
|
133
|
-
100% {
|
|
134
|
-
width: 460px;
|
|
135
|
-
height: 460px;
|
|
136
|
-
transform: translateX(calc(100vw - 45px));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
@media (width >= 75rem) {
|
|
141
|
-
@keyframes slideInFwd {
|
|
142
|
-
100% {
|
|
143
|
-
width: 592px;
|
|
144
|
-
height: 591px;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
@keyframes slideOutRight {
|
|
148
|
-
100% {
|
|
149
|
-
width: 592px;
|
|
150
|
-
height: 591px;
|
|
151
|
-
transform: translateX(calc(100vw - 45px));
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
@media (width >= 87.5rem) {
|
|
156
|
-
@keyframes slideOutRight {
|
|
157
|
-
100% {
|
|
158
|
-
width: 592px;
|
|
159
|
-
height: 591px;
|
|
160
|
-
transform: translateX(calc(100vw - 120px));
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
@media (width >= 2200px) {
|
|
165
|
-
@keyframes slideOutRight {
|
|
166
|
-
100% {
|
|
167
|
-
width: 592px;
|
|
168
|
-
height: 591px;
|
|
169
|
-
transform: translateX(calc(100vw - 592px));
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
span.ripple {
|
|
174
|
-
position: absolute;
|
|
175
|
-
border-radius: 50%;
|
|
176
|
-
transform: scale(0);
|
|
177
|
-
animation: ripple 600ms linear;
|
|
178
|
-
background-color: var(--ripple-bg-color);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
@keyframes ripple {
|
|
182
|
-
to {
|
|
183
|
-
transform: scale(4);
|
|
184
|
-
opacity: 1;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
:root {
|
|
188
|
-
--size-base-unit: 0.5rem;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* RTL support for values logical properties can't automatically adjust for
|
|
193
|
-
* 1) Percentage based horizontal translate values need to be flipped
|
|
194
|
-
* 2) Background gradients using "to-right" or "to-left" need to be switched to using deg values.
|
|
195
|
-
* 3) Inverse items that have 45degs
|
|
196
|
-
*/
|
|
197
|
-
[dir=rtl] {
|
|
198
|
-
--rtlTranslateX: 50%;
|
|
199
|
-
/* 1 */
|
|
200
|
-
--rtlGradientToRight: 270deg;
|
|
201
|
-
/* 2 */
|
|
202
|
-
--rtlRotate45Inverse: -45deg;
|
|
203
|
-
/* 3 */
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Visible focus outline for elements on a light background
|
|
208
|
-
*/
|
|
209
|
-
/**
|
|
210
|
-
* Visible focus outline for elements with an error status
|
|
211
|
-
*/
|
|
212
|
-
/**
|
|
213
|
-
* Visible focus outline for elements on a dark background
|
|
214
|
-
*/
|
|
215
|
-
/**
|
|
216
|
-
* Focus state for themes that need a dashed outline for focus
|
|
217
|
-
* state
|
|
218
|
-
**/
|
|
219
|
-
/**
|
|
220
|
-
* Invisible focus outline for elements that need a more visible
|
|
221
|
-
* focus state for high-contrast mode
|
|
222
|
-
*/
|
|
223
|
-
/**
|
|
224
|
-
* Visually hidden from display
|
|
225
|
-
*/
|
|
226
|
-
/*------------------------------------*\
|
|
227
|
-
#TABS
|
|
228
|
-
\*------------------------------------*/
|
|
229
|
-
:host {
|
|
230
|
-
display: block;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Tabs header
|
|
235
|
-
*/
|
|
236
|
-
.cre8-c-tabs__header {
|
|
237
|
-
position: relative;
|
|
238
|
-
display: flex;
|
|
239
|
-
flex-direction: column;
|
|
240
|
-
align-items: baseline;
|
|
241
|
-
overflow: hidden;
|
|
242
|
-
/**
|
|
243
|
-
* Tabs inner where the beginning of the tabs list isn't fully in the viewport
|
|
244
|
-
*/
|
|
245
|
-
/**
|
|
246
|
-
* Tabs inner where the end of the tabs list isn't fully in the viewport
|
|
247
|
-
*/
|
|
248
|
-
}
|
|
249
|
-
.cre8-c-tabs:not(.cre8-is-start) .cre8-c-tabs__header {
|
|
250
|
-
/**
|
|
251
|
-
* Left overflow gradient for the tabs list
|
|
252
|
-
*/
|
|
253
|
-
}
|
|
254
|
-
.cre8-c-tabs:not(.cre8-is-start) .cre8-c-tabs__header::before {
|
|
255
|
-
content: "";
|
|
256
|
-
display: block;
|
|
257
|
-
position: absolute;
|
|
258
|
-
pointer-events: none;
|
|
259
|
-
background: linear-gradient(var(--rtlGradientToRight, 90deg), var(--cre8-color-bg-default), rgba(255, 255, 255, 0.001) 30%);
|
|
260
|
-
height: 100%;
|
|
261
|
-
inset-block-start: 0;
|
|
262
|
-
inset-inline-start: 0;
|
|
263
|
-
width: 48px;
|
|
264
|
-
z-index: 1;
|
|
265
|
-
}
|
|
266
|
-
.cre8-c-tabs:not(.cre8-is-end) .cre8-c-tabs__header {
|
|
267
|
-
/**
|
|
268
|
-
* Right overflow gradient for the tabs list
|
|
269
|
-
*/
|
|
270
|
-
}
|
|
271
|
-
.cre8-c-tabs:not(.cre8-is-end) .cre8-c-tabs__header::after {
|
|
272
|
-
content: "";
|
|
273
|
-
display: block !important;
|
|
274
|
-
position: absolute;
|
|
275
|
-
pointer-events: none;
|
|
276
|
-
background: linear-gradient(var(--rtlGradientToRight, 90deg), rgba(255, 255, 255, 0.001) 30%, var(--cre8-color-bg-default));
|
|
277
|
-
height: 100%;
|
|
278
|
-
inset-block-start: 0;
|
|
279
|
-
inset-inline-end: 0;
|
|
280
|
-
width: 48px;
|
|
281
|
-
z-index: 1;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Tabs list
|
|
286
|
-
* 1) The div that contains the cre8-tab's
|
|
287
|
-
*/
|
|
288
|
-
.cre8-c-tabs__list {
|
|
289
|
-
display: flex;
|
|
290
|
-
overflow: auto;
|
|
291
|
-
width: 100%;
|
|
292
|
-
margin: 0;
|
|
293
|
-
position: relative;
|
|
294
|
-
padding: var(--cre8-border-width-focus);
|
|
295
|
-
/**
|
|
296
|
-
* Visually hides the scrollbar
|
|
297
|
-
*/
|
|
298
|
-
scrollbar-width: none;
|
|
299
|
-
-ms-overflow-style: none;
|
|
300
|
-
}
|
|
301
|
-
.cre8-c-tabs__list::-webkit-scrollbar {
|
|
302
|
-
display: none;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Tabs body
|
|
307
|
-
* 1) The div that contains the tab panel content
|
|
308
|
-
*/
|
|
309
|
-
.cre8-c-tabs__body {
|
|
310
|
-
padding-block-start: 16px;
|
|
311
|
-
/**
|
|
312
|
-
* Full Width Variant - border default bar across tabs
|
|
313
|
-
*/
|
|
314
|
-
}
|
|
315
|
-
.cre8-c-tabs--full-width .cre8-c-tabs__body {
|
|
316
|
-
border-top: var(--cre8-border-width-tab-selected) var(--cre8-border-style-default) var(--cre8-color-border-default);
|
|
317
|
-
margin-top: calc(var(--cre8-border-width-tab-selected) * -2);
|
|
318
|
-
}
|
|
319
|
-
/* sourceMappingURL=tabs.module.css.map */
|
|
320
|
-
`;
|
|
321
|
-
var x = Object.defineProperty, r = (c, e, t, i) => {
|
|
322
|
-
for (var s = void 0, n = c.length - 1, h; n >= 0; n--)
|
|
323
|
-
(h = c[n]) && (s = h(e, t, s) || s);
|
|
324
|
-
return s && x(e, t, s), s;
|
|
1
|
+
import { css as p, html as f } from "lit";
|
|
2
|
+
import { property as d, state as c, queryAssignedElements as v, query as m } from "lit/decorators.js";
|
|
3
|
+
import { nanoid as u } from "nanoid";
|
|
4
|
+
import { Cre8Element as T } from "../cre8-element.js";
|
|
5
|
+
const x = p`*,::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-tabs__header{position:relative;display:flex;flex-direction:column;align-items:baseline;overflow:hidden}.cre8-c-tabs:not(.cre8-is-start) .cre8-c-tabs__header::before{content:"";display:block;position:absolute;pointer-events:none;background:linear-gradient(var(--rtlGradientToRight, 90deg), var(--cre8-color-bg-default), rgba(255, 255, 255, 0.001) 30%);height:100%;inset-block-start:0;inset-inline-start:0;width:3rem;z-index:1}.cre8-c-tabs:not(.cre8-is-end) .cre8-c-tabs__header::after{content:"";display:block !important;position:absolute;pointer-events:none;background:linear-gradient(var(--rtlGradientToRight, 90deg), rgba(255, 255, 255, 0.001) 30%, var(--cre8-color-bg-default));height:100%;inset-block-start:0;inset-inline-end:0;width:3rem;z-index:1}.cre8-c-tabs__list{display:flex;overflow:auto;width:100%;margin:0;position:relative;padding:var(--cre8-border-width-focus);scrollbar-width:none;-ms-overflow-style:none}.cre8-c-tabs__list::-webkit-scrollbar{display:none}.cre8-c-tabs__body{padding-block-start:1rem}.cre8-c-tabs--full-width .cre8-c-tabs__body{border-top:var(--cre8-border-width-tab-selected) var(--cre8-border-style-default) var(--cre8-color-border-default);margin-top:calc(var(--cre8-border-width-tab-selected)*-2)}`;
|
|
6
|
+
var g = Object.defineProperty, r = (l, e, t, i) => {
|
|
7
|
+
for (var s = void 0, n = l.length - 1, h; n >= 0; n--)
|
|
8
|
+
(h = l[n]) && (s = h(e, t, s) || s);
|
|
9
|
+
return s && g(e, t, s), s;
|
|
325
10
|
};
|
|
326
11
|
let b = 1;
|
|
327
|
-
const
|
|
12
|
+
const o = class o extends T {
|
|
328
13
|
/**
|
|
329
14
|
* Initialize Functions
|
|
330
15
|
*/
|
|
@@ -438,7 +123,7 @@ const d = class d extends g {
|
|
|
438
123
|
setTabAttributes() {
|
|
439
124
|
this._Cre8TabItems.forEach((e, t) => {
|
|
440
125
|
e.index = t;
|
|
441
|
-
const s = e.ariaLabelledBy ||
|
|
126
|
+
const s = e.ariaLabelledBy || u();
|
|
442
127
|
e.ariaLabelledBy = s;
|
|
443
128
|
const n = this._Cre8TabPanels[t];
|
|
444
129
|
n.index = t;
|
|
@@ -582,7 +267,7 @@ const d = class d extends g {
|
|
|
582
267
|
"cre8-is-end": this.isEnd === !0,
|
|
583
268
|
"cre8-c-tabs--full-width": this.fullWidth
|
|
584
269
|
});
|
|
585
|
-
return
|
|
270
|
+
return f`
|
|
586
271
|
<div class="${e}">
|
|
587
272
|
<div class="cre8-c-tabs__header">
|
|
588
273
|
<div
|
|
@@ -603,37 +288,37 @@ const d = class d extends g {
|
|
|
603
288
|
`;
|
|
604
289
|
}
|
|
605
290
|
};
|
|
606
|
-
|
|
607
|
-
let a =
|
|
291
|
+
o.styles = [x];
|
|
292
|
+
let a = o;
|
|
608
293
|
r([
|
|
609
|
-
|
|
294
|
+
d()
|
|
610
295
|
], a.prototype, "size");
|
|
611
296
|
r([
|
|
612
|
-
|
|
297
|
+
d({ type: Boolean, reflect: !0 })
|
|
613
298
|
], a.prototype, "fullWidth");
|
|
614
299
|
r([
|
|
615
|
-
|
|
300
|
+
d({ type: Number })
|
|
616
301
|
], a.prototype, "activeIndex");
|
|
617
302
|
r([
|
|
618
|
-
|
|
303
|
+
c()
|
|
619
304
|
], a.prototype, "activeTab");
|
|
620
305
|
r([
|
|
621
|
-
|
|
306
|
+
c()
|
|
622
307
|
], a.prototype, "isStart");
|
|
623
308
|
r([
|
|
624
|
-
|
|
309
|
+
c()
|
|
625
310
|
], a.prototype, "isEnd");
|
|
626
311
|
r([
|
|
627
|
-
|
|
312
|
+
v()
|
|
628
313
|
], a.prototype, "_Cre8TabItems");
|
|
629
314
|
r([
|
|
630
|
-
|
|
315
|
+
v({ slot: "panel" })
|
|
631
316
|
], a.prototype, "_Cre8TabPanels");
|
|
632
317
|
r([
|
|
633
|
-
|
|
318
|
+
m(".cre8-c-tabs__header")
|
|
634
319
|
], a.prototype, "_Cre8TabsHeader");
|
|
635
320
|
r([
|
|
636
|
-
|
|
321
|
+
m(".cre8-c-tabs__list")
|
|
637
322
|
], a.prototype, "_Cre8TabsHeaderList");
|
|
638
323
|
customElements.get("cre8-tabs") === void 0 && customElements.define("cre8-tabs", a);
|
|
639
324
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.styles.d.ts","sourceRoot":"","sources":["../../../components/tabs/tabs.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"tabs.styles.d.ts","sourceRoot":"","sources":["../../../components/tabs/tabs.styles.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,yBAA6/F,CAAC;AAC1gG,eAAe,MAAM,CAAC"}
|