@cupra/ui-kit 2.0.0-canary.180 → 2.0.0-canary.181
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/dist/cjs/components/ds-avatar/styles/common.styles.cjs +117 -0
- package/dist/cjs/components/ds-badge/styles/common.styles.cjs +42 -0
- package/dist/cjs/components/ds-breadcrumbs/ds-breadcrumbs.cjs +2 -2
- package/dist/cjs/components/ds-breadcrumbs/styles/common.styles.cjs +107 -0
- package/dist/cjs/components/ds-breadcrumbs-item/ds-breadcrumbs-item.cjs +2 -2
- package/dist/cjs/components/ds-breadcrumbs-item/styles/common.styles.cjs +72 -0
- package/dist/cjs/components/ds-calendar/styles/common.styles.cjs +88 -0
- package/dist/cjs/components/ds-calendar-day/styles/common.styles.cjs +78 -0
- package/dist/cjs/components/ds-carousel-indicator/styles/common.styles.cjs +50 -0
- package/dist/cjs/components/ds-checkbox-group/styles/common.styles.cjs +87 -0
- package/dist/cjs/components/ds-icon-button-group/styles/common.styles.cjs +9 -0
- package/dist/cjs/components/ds-interactive-card/styles/common.styles.cjs +214 -0
- package/dist/cjs/components/ds-list/styles/common.styles.cjs +37 -0
- package/dist/cjs/components/ds-main-title/styles/common.styles.cjs +58 -0
- package/dist/cjs/components/ds-media-control/styles/common.styles.cjs +4 -0
- package/dist/cjs/components/ds-navigation-controls/styles/common.styles.cjs +23 -0
- package/dist/cjs/components/ds-password-input/ds-password-input.cjs +2 -2
- package/dist/cjs/components/ds-password-input/styles/common.styles.cjs +8 -0
- package/dist/cjs/components/ds-picker-item/styles/common.styles.cjs +175 -0
- package/dist/cjs/components/ds-radio-button/styles/common.styles.cjs +178 -0
- package/dist/cjs/components/ds-radio-button-group/styles/common.styles.cjs +87 -0
- package/dist/cjs/components/ds-rating/styles/common.styles.cjs +24 -0
- package/dist/cjs/components/ds-secondary-navigation/ds-secondary-navigation.cjs +3 -3
- package/dist/cjs/components/ds-secondary-navigation/styles/common.styles.cjs +290 -0
- package/dist/cjs/components/ds-skeleton/styles/common.styles.cjs +38 -0
- package/dist/cjs/components/ds-stepper/styles/common.styles.cjs +58 -0
- package/dist/cjs/components/ds-table/styles/common.styles.cjs +35 -0
- package/dist/cjs/components/ds-table-cell/styles/common.styles.cjs +39 -0
- package/dist/cjs/components/ds-table-row/styles/common.styles.cjs +8 -0
- package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist/cjs/components/ds-toast-message/styles/common.styles.cjs +136 -0
- package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist/cjs/utils/IconsManager.cjs +1 -1
- package/dist/cjs/utils/PubSub.cjs +1 -1
- package/dist/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist/cjs/utils/version.cjs +1 -1
- package/dist/esm/components/ds-avatar/styles/common.styles.js +117 -0
- package/dist/esm/components/ds-badge/styles/common.styles.js +42 -0
- package/dist/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +8 -7
- package/dist/esm/components/ds-breadcrumbs/styles/common.styles.js +112 -0
- package/dist/esm/components/ds-breadcrumbs-item/ds-breadcrumbs-item.js +6 -5
- package/dist/esm/components/ds-breadcrumbs-item/styles/common.styles.js +77 -0
- package/dist/esm/components/ds-calendar/styles/common.styles.js +88 -0
- package/dist/esm/components/ds-calendar-day/styles/common.styles.js +78 -0
- package/dist/esm/components/ds-carousel-indicator/styles/common.styles.js +50 -0
- package/dist/esm/components/ds-checkbox-group/styles/common.styles.js +87 -0
- package/dist/esm/components/ds-icon-button-group/styles/common.styles.js +9 -0
- package/dist/esm/components/ds-interactive-card/styles/common.styles.js +214 -0
- package/dist/esm/components/ds-list/styles/common.styles.js +37 -0
- package/dist/esm/components/ds-main-title/styles/common.styles.js +58 -0
- package/dist/esm/components/ds-media-control/styles/common.styles.js +4 -0
- package/dist/esm/components/ds-navigation-controls/styles/common.styles.js +23 -0
- package/dist/esm/components/ds-password-input/ds-password-input.js +5 -4
- package/dist/esm/components/ds-password-input/styles/common.styles.js +13 -0
- package/dist/esm/components/ds-picker-item/styles/common.styles.js +175 -0
- package/dist/esm/components/ds-radio-button/styles/common.styles.js +178 -0
- package/dist/esm/components/ds-radio-button-group/styles/common.styles.js +87 -0
- package/dist/esm/components/ds-rating/styles/common.styles.js +24 -0
- package/dist/esm/components/ds-secondary-navigation/ds-secondary-navigation.js +6 -6
- package/dist/esm/components/ds-secondary-navigation/styles/common.styles.js +290 -0
- package/dist/esm/components/ds-skeleton/styles/common.styles.js +38 -0
- package/dist/esm/components/ds-stepper/styles/common.styles.js +58 -0
- package/dist/esm/components/ds-table/styles/common.styles.js +35 -0
- package/dist/esm/components/ds-table-cell/styles/common.styles.js +39 -0
- package/dist/esm/components/ds-table-row/styles/common.styles.js +8 -0
- package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist/esm/components/ds-toast-message/styles/common.styles.js +136 -0
- package/dist/esm/decorators/customUiKitElement.js +1 -1
- package/dist/esm/utils/IconsManager.js +1 -1
- package/dist/esm/utils/PubSub.js +1 -1
- package/dist/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
- package/dist/esm/utils/version.js +1 -1
- package/dist/types/components/ds-breadcrumbs/ds-breadcrumbs.d.ts +1 -0
- package/dist/types/components/ds-breadcrumbs/styles/common.styles.d.ts +1 -0
- package/dist/types/components/ds-breadcrumbs-item/ds-breadcrumbs-item.d.ts +1 -0
- package/dist/types/components/ds-breadcrumbs-item/styles/common.styles.d.ts +1 -0
- package/dist/types/components/ds-password-input/ds-password-input.d.ts +1 -0
- package/dist/types/components/ds-password-input/styles/common.styles.d.ts +1 -0
- package/dist/types/components/ds-secondary-navigation/ds-secondary-navigation.d.ts +1 -0
- package/dist-react/cjs/components/ds-avatar/styles/common.styles.cjs +117 -0
- package/dist-react/cjs/components/ds-badge/styles/common.styles.cjs +42 -0
- package/dist-react/cjs/components/ds-breadcrumbs/ds-breadcrumbs.cjs +2 -2
- package/dist-react/cjs/components/ds-breadcrumbs/styles/common.styles.cjs +107 -0
- package/dist-react/cjs/components/ds-breadcrumbs-item/ds-breadcrumbs-item.cjs +2 -2
- package/dist-react/cjs/components/ds-breadcrumbs-item/styles/common.styles.cjs +72 -0
- package/dist-react/cjs/components/ds-calendar/styles/common.styles.cjs +88 -0
- package/dist-react/cjs/components/ds-calendar-day/styles/common.styles.cjs +78 -0
- package/dist-react/cjs/components/ds-carousel-indicator/styles/common.styles.cjs +50 -0
- package/dist-react/cjs/components/ds-checkbox-group/styles/common.styles.cjs +87 -0
- package/dist-react/cjs/components/ds-icon-button-group/styles/common.styles.cjs +9 -0
- package/dist-react/cjs/components/ds-interactive-card/styles/common.styles.cjs +214 -0
- package/dist-react/cjs/components/ds-list/styles/common.styles.cjs +37 -0
- package/dist-react/cjs/components/ds-main-title/styles/common.styles.cjs +58 -0
- package/dist-react/cjs/components/ds-media-control/styles/common.styles.cjs +4 -0
- package/dist-react/cjs/components/ds-navigation-controls/styles/common.styles.cjs +23 -0
- package/dist-react/cjs/components/ds-password-input/ds-password-input.cjs +2 -2
- package/dist-react/cjs/components/ds-password-input/styles/common.styles.cjs +8 -0
- package/dist-react/cjs/components/ds-picker-item/styles/common.styles.cjs +175 -0
- package/dist-react/cjs/components/ds-radio-button/styles/common.styles.cjs +178 -0
- package/dist-react/cjs/components/ds-radio-button-group/styles/common.styles.cjs +87 -0
- package/dist-react/cjs/components/ds-rating/styles/common.styles.cjs +24 -0
- package/dist-react/cjs/components/ds-secondary-navigation/ds-secondary-navigation.cjs +3 -3
- package/dist-react/cjs/components/ds-secondary-navigation/styles/common.styles.cjs +290 -0
- package/dist-react/cjs/components/ds-skeleton/styles/common.styles.cjs +38 -0
- package/dist-react/cjs/components/ds-stepper/styles/common.styles.cjs +58 -0
- package/dist-react/cjs/components/ds-table/styles/common.styles.cjs +35 -0
- package/dist-react/cjs/components/ds-table-cell/styles/common.styles.cjs +39 -0
- package/dist-react/cjs/components/ds-table-row/styles/common.styles.cjs +8 -0
- package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist-react/cjs/components/ds-toast-message/styles/common.styles.cjs +136 -0
- package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist-react/cjs/utils/IconsManager.cjs +1 -1
- package/dist-react/cjs/utils/PubSub.cjs +1 -1
- package/dist-react/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist-react/cjs/utils/version.cjs +1 -1
- package/dist-react/esm/components/ds-avatar/styles/common.styles.js +117 -0
- package/dist-react/esm/components/ds-badge/styles/common.styles.js +42 -0
- package/dist-react/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +8 -7
- package/dist-react/esm/components/ds-breadcrumbs/styles/common.styles.js +112 -0
- package/dist-react/esm/components/ds-breadcrumbs-item/ds-breadcrumbs-item.js +6 -5
- package/dist-react/esm/components/ds-breadcrumbs-item/styles/common.styles.js +77 -0
- package/dist-react/esm/components/ds-calendar/styles/common.styles.js +88 -0
- package/dist-react/esm/components/ds-calendar-day/styles/common.styles.js +78 -0
- package/dist-react/esm/components/ds-carousel-indicator/styles/common.styles.js +50 -0
- package/dist-react/esm/components/ds-checkbox-group/styles/common.styles.js +87 -0
- package/dist-react/esm/components/ds-icon-button-group/styles/common.styles.js +9 -0
- package/dist-react/esm/components/ds-interactive-card/styles/common.styles.js +214 -0
- package/dist-react/esm/components/ds-list/styles/common.styles.js +37 -0
- package/dist-react/esm/components/ds-main-title/styles/common.styles.js +58 -0
- package/dist-react/esm/components/ds-media-control/styles/common.styles.js +4 -0
- package/dist-react/esm/components/ds-navigation-controls/styles/common.styles.js +23 -0
- package/dist-react/esm/components/ds-password-input/ds-password-input.js +5 -4
- package/dist-react/esm/components/ds-password-input/styles/common.styles.js +13 -0
- package/dist-react/esm/components/ds-picker-item/styles/common.styles.js +175 -0
- package/dist-react/esm/components/ds-radio-button/styles/common.styles.js +178 -0
- package/dist-react/esm/components/ds-radio-button-group/styles/common.styles.js +87 -0
- package/dist-react/esm/components/ds-rating/styles/common.styles.js +24 -0
- package/dist-react/esm/components/ds-secondary-navigation/ds-secondary-navigation.js +6 -6
- package/dist-react/esm/components/ds-secondary-navigation/styles/common.styles.js +290 -0
- package/dist-react/esm/components/ds-skeleton/styles/common.styles.js +38 -0
- package/dist-react/esm/components/ds-stepper/styles/common.styles.js +58 -0
- package/dist-react/esm/components/ds-table/styles/common.styles.js +35 -0
- package/dist-react/esm/components/ds-table-cell/styles/common.styles.js +39 -0
- package/dist-react/esm/components/ds-table-row/styles/common.styles.js +8 -0
- package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist-react/esm/components/ds-toast-message/styles/common.styles.js +136 -0
- package/dist-react/esm/decorators/customUiKitElement.js +1 -1
- package/dist-react/esm/utils/IconsManager.js +1 -1
- package/dist-react/esm/utils/PubSub.js +1 -1
- package/dist-react/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
- package/dist-react/esm/utils/version.js +1 -1
- package/dist-react/types/components/ds-breadcrumbs/ds-breadcrumbs.d.ts +1 -0
- package/dist-react/types/components/ds-breadcrumbs/styles/common.styles.d.ts +1 -0
- package/dist-react/types/components/ds-breadcrumbs-item/ds-breadcrumbs-item.d.ts +1 -0
- package/dist-react/types/components/ds-breadcrumbs-item/styles/common.styles.d.ts +1 -0
- package/dist-react/types/components/ds-password-input/ds-password-input.d.ts +1 -0
- package/dist-react/types/components/ds-password-input/styles/common.styles.d.ts +1 -0
- package/dist-react/types/components/ds-secondary-navigation/ds-secondary-navigation.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,4 +2,62 @@ const e=require("../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_mo
|
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
.container {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
width: 100%;
|
|
10
|
+
gap: var(--ds-spacing-s-5);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.header {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
gap: var(--ds-spacing-s-5);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.section-name {
|
|
20
|
+
flex: 1 1 auto;
|
|
21
|
+
font-family: var(--ds-typography-family-primary);
|
|
22
|
+
font-size: var(--ds-typography-size-headline-xxs);
|
|
23
|
+
font-weight: var(--ds-typography-weight-headline-secondary);
|
|
24
|
+
line-height: var(--ds-typography-height-headline-xxs);
|
|
25
|
+
letter-spacing: var(--ds-typography-letter-spacing-base);
|
|
26
|
+
color: var(--ds-color-text-default);
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
display: -webkit-box;
|
|
29
|
+
-webkit-line-clamp: 2;
|
|
30
|
+
-webkit-box-orient: vertical;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.section-number {
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
font-family: var(--ds-typography-family-primary);
|
|
37
|
+
font-size: var(--ds-typography-size-body-m);
|
|
38
|
+
font-weight: var(--ds-typography-weight-body-secondary);
|
|
39
|
+
line-height: var(--ds-typography-height-body-m);
|
|
40
|
+
letter-spacing: var(--ds-typography-letter-spacing-base);
|
|
41
|
+
color: var(--ds-color-text-default-subtle);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.steps-row {
|
|
45
|
+
display: flex;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 24px;
|
|
48
|
+
padding: var(--ds-spacing-s-1);
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: var(--ds-spacing-s-5);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.step {
|
|
54
|
+
flex: 1 1 auto;
|
|
55
|
+
height: var(--ds-sizing-04);
|
|
56
|
+
border-radius: var(--ds-border-radius-full);
|
|
57
|
+
background: var(--ds-indicator-bg-color-default);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.step.active {
|
|
61
|
+
background: var(--ds-indicator-bg-color-active-primary);
|
|
62
|
+
}
|
|
5
63
|
`;exports.commonStyles=t;
|
|
@@ -2,4 +2,39 @@ const e=require("../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_mo
|
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
.table-wrapper {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: var(
|
|
9
|
+
--ui-kit-table-row-grid-template-columns,
|
|
10
|
+
var(--ui-kit-private-table-grid-template-columns-default)
|
|
11
|
+
);
|
|
12
|
+
grid-auto-flow: row;
|
|
13
|
+
grid-auto-columns: 1fr;
|
|
14
|
+
width: 100%;
|
|
15
|
+
border-radius: var(--ds-border-radius-s);
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
border: 1px solid var(--ds-color-border-default-subtle);
|
|
18
|
+
background-color: var(--ds-color-bg-default);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.header {
|
|
22
|
+
display: contents;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.body {
|
|
26
|
+
display: contents;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.empty-state {
|
|
30
|
+
grid-column: 1 / -1;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
padding: var(--ds-sizing-24);
|
|
35
|
+
font-family: var(--ds-typography-family-primary);
|
|
36
|
+
font-size: var(--ds-typography-size-body-l);
|
|
37
|
+
line-height: var(--ds-typography-height-body-s);
|
|
38
|
+
color: var(--ds-color-text-subtle);
|
|
39
|
+
}
|
|
5
40
|
`;exports.commonStyles=t;
|
|
@@ -3,4 +3,43 @@ const e=require("../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_mo
|
|
|
3
3
|
display: table-cell;
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
display: contents;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cell {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--ds-sizing-08);
|
|
15
|
+
padding: var(--ds-sizing-12);
|
|
16
|
+
font-family: var(--ds-typography-family-primary);
|
|
17
|
+
font-size: var(--ds-typography-size-body-l);
|
|
18
|
+
line-height: var(--ds-typography-height-body-l);
|
|
19
|
+
letter-spacing: var(--ds-typography-letter-spacing-base);
|
|
20
|
+
color: var(--ds-color-text-default);
|
|
21
|
+
border-top: 1px solid var(--ds-color-border-default-subtle);
|
|
22
|
+
border-left: 1px solid var(--ds-color-border-default-subtle);
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host(:first-child) .cell {
|
|
27
|
+
border-left: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host([variant='header']) .cell {
|
|
31
|
+
background-color: var(--ds-color-bg-default);
|
|
32
|
+
font-weight: var(--ds-typography-weight-body-primary);
|
|
33
|
+
border-top: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host([variant='default']) .cell {
|
|
37
|
+
background-color: var(--ds-color-surface-default-subtlest);
|
|
38
|
+
font-weight: var(--ds-typography-weight-body-tertiary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([variant='alternative']) .cell {
|
|
42
|
+
background-color: var(--ds-color-surface-default-subtle);
|
|
43
|
+
font-weight: var(--ds-typography-weight-body-tertiary);
|
|
44
|
+
}
|
|
6
45
|
`;exports.commonStyles=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const e=require("../../node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.cjs"),t=require("./themeContext.cjs");require("../../core/theme.constants.cjs");const n=require("../../utils/PubSub.cjs"),r=require("../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.cjs"),i=require("../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.cjs");require("../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.cjs");const a=require("../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.cjs"),o=require("../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.cjs");require("../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.cjs");const s=require("../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/decorate.cjs"),c=require("../../decorators/customUiKitElement.cjs"),l=require("../../utils/booleanConverter.cjs"),u=require("../../styles/source/shared/fonts-config.cjs");var d=class extends i.i{constructor(...e){super(...e),this.loadFonts=!0,this.loadStyles=!0,this.loadUnusedStyles=!0,this.cssLoaded=!1,this.loadedFonts=new Set}updated(e){if(super.updated(e),e.has(`theme`)){var t,r;n.pubSub.publish(`theme`,this.theme),(t=sessionStorage)==null||t.setItem(`@cupra/ui-kit/theme`,this.theme),typeof FontFace<`u`&&(r=document)!=null&&r.fonts&&this.loadThemeFonts(),this.loadThemeStyles().then(()=>{this.cssLoaded=!0,this.dispatchEvent(new CustomEvent(`ui-kit:ready`,{bubbles:!0,composed:!0}))})}}loadThemeFonts(){var e;(e=u.fontsConfig[this.theme])==null||e.fonts.forEach(e=>{this.loadThemeFont(e)})}async loadThemeFont({weight:e,name:t,file:n}){if(!this.loadFonts)return Promise.resolve();let r=`${t}-${e}`;if(this.loadedFonts.has(r))return;let i=new FontFace(t,`url('https://ds-assets.cupra.com/fonts/${this.theme}/${n}.woff2') format('woff2'),
|
|
2
2
|
url('https://ds-assets.cupra.com/fonts/${this.theme}/${n}.woff') format('woff'),
|
|
3
3
|
url('https://ds-assets.cupra.com/fonts/${this.theme}/${n}.ttf') format('truetype'),
|
|
4
|
-
url('https://ds-assets.cupra.com/fonts/${this.theme}/${n}.otf') format('opentype')`,{style:`normal`,weight:e,display:`optional`});try{await i.load(),document.fonts.add(i),this.loadedFonts.add(r)}catch(n){console.error(`Error loading "${t}" font with "${e}" weight:`,n)}}loadThemeStyles(){let e=`/2.0.0-canary.
|
|
4
|
+
url('https://ds-assets.cupra.com/fonts/${this.theme}/${n}.otf') format('opentype')`,{style:`normal`,weight:e,display:`optional`});try{await i.load(),document.fonts.add(i),this.loadedFonts.add(r)}catch(n){console.error(`Error loading "${t}" font with "${e}" weight:`,n)}}loadThemeStyles(){let e=`/2.0.0-canary.181`;return this.loadUnusedStyles&&this.applyUnusedStyles(e),this.loadStyles?new Promise((t,n)=>{let r=`https://ds-assets.cupra.com${e}/styles/${this.theme}/theme.css`;if(document.head.querySelector(`link[href="${r}"]`))t();else{let i=`ui-kit-theme-${e}`,a=document.getElementById(i),o=document.createElement(`link`);o.id=i,o.rel=`stylesheet`,o.href=r,o.onload=()=>t(),o.onerror=()=>n(Error(`Failed to load theme CSS: ${r}`)),document.head.appendChild(o),a==null||a.remove()}}):Promise.resolve()}applyUnusedStyles(e){let t=`https://ds-assets.cupra.com${e}/styles/${this.theme}/unused-styles.css`;if(document.head.querySelector(`link[href="${t}"]`))return;let n=`ui-kit-unused-styles-${e}`,r=document.getElementById(n),i=document.createElement(`link`);i.id=n,i.rel=`preload`,i.as=`style`,i.href=t,i.onload=()=>{i.rel=`stylesheet`},document.head.appendChild(i),r==null||r.remove()}render(){return this.cssLoaded?r.x`<slot></slot>`:r.E}};s.__decorate([a.n({type:Boolean,converter:l.booleanConverter,attribute:`load-fonts`})],d.prototype,`loadFonts`,void 0),s.__decorate([a.n({type:Boolean,converter:l.booleanConverter,attribute:`load-styles`})],d.prototype,`loadStyles`,void 0),s.__decorate([a.n({type:Boolean,converter:l.booleanConverter,attribute:`load-unused-styles`})],d.prototype,`loadUnusedStyles`,void 0),s.__decorate([e.e({context:t.themeContext}),a.n({type:String})],d.prototype,`theme`,void 0),s.__decorate([o.r()],d.prototype,`cssLoaded`,void 0),s.__decorate([o.r()],d.prototype,`loadedFonts`,void 0),d=s.__decorate([c.customUiKitElement(`ds-theme-provider`)],d);
|
|
@@ -2,4 +2,140 @@ const e=require("../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_mo
|
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
.container {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
width: auto;
|
|
11
|
+
min-width: 288px;
|
|
12
|
+
max-width: 317px;
|
|
13
|
+
padding: var(--ds-spacing-m-1);
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
gap: var(--ds-spacing-s-5);
|
|
16
|
+
border-radius: var(--ds-border-radius-m);
|
|
17
|
+
border-width: var(--ds-border-width-l);
|
|
18
|
+
border-style: solid;
|
|
19
|
+
border-color: var(--ds-color-border-selected);
|
|
20
|
+
background: var(--ds-card-bg-color-default);
|
|
21
|
+
box-shadow: 0px 4px 4px 0px var(--ds-opacity-black-20);
|
|
22
|
+
backdrop-filter: blur(60px);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.container.warning {
|
|
26
|
+
border-color: var(--ds-color-border-feedback-warning);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.container.info {
|
|
30
|
+
border-color: var(--ds-color-border-feedback-info);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.container.error {
|
|
34
|
+
border-color: var(--ds-color-border-feedback-error);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.container.success {
|
|
38
|
+
border-color: var(--ds-color-border-feedback-success);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.icon {
|
|
42
|
+
--ui-kit-icon-color: var(--ds-color-border-selected);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.container.warning .icon {
|
|
46
|
+
--ui-kit-icon-color: var(--ds-color-border-feedback-warning);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.container.info .icon {
|
|
50
|
+
--ui-kit-icon-color: var(--ds-color-border-feedback-info);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.container.error .icon {
|
|
54
|
+
--ui-kit-icon-color: var(--ds-color-border-feedback-error);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.container.success .icon {
|
|
58
|
+
--ui-kit-icon-color: var(--ds-color-border-feedback-success);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.content {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: 1 1 auto;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
align-items: flex-start;
|
|
66
|
+
gap: 8px;
|
|
67
|
+
align-self: stretch;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.header {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
align-items: flex-start;
|
|
74
|
+
gap: var(--ds-spacing-s-3);
|
|
75
|
+
align-self: stretch;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.title {
|
|
79
|
+
color: var(--ds-color-text-default);
|
|
80
|
+
font-family: var(--ds-typography-family-primary);
|
|
81
|
+
font-size: var(--ds-typography-size-headline-xs);
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
line-height: var(--ds-typography-height-headline-xs);
|
|
85
|
+
letter-spacing: var(--ds-typography-letter-spacing-m);
|
|
86
|
+
display: -webkit-box;
|
|
87
|
+
-webkit-box-orient: vertical;
|
|
88
|
+
-webkit-line-clamp: 2;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.message {
|
|
93
|
+
color: var(--ds-color-text-default);
|
|
94
|
+
font-family: var(--ds-typography-family-primary);
|
|
95
|
+
font-size: var(--ds-typography-size-body-m);
|
|
96
|
+
font-style: normal;
|
|
97
|
+
font-weight: 350;
|
|
98
|
+
line-height: var(--ds-typography-height-body-m);
|
|
99
|
+
letter-spacing: var(--ds-typography-letter-spacing-m);
|
|
100
|
+
display: -webkit-box;
|
|
101
|
+
-webkit-box-orient: vertical;
|
|
102
|
+
-webkit-line-clamp: 4;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
text-align: left;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (min-width: 480px) {
|
|
108
|
+
.container {
|
|
109
|
+
min-width: 318px;
|
|
110
|
+
max-width: 456px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (min-width: 768px) {
|
|
115
|
+
.container {
|
|
116
|
+
min-width: 457px;
|
|
117
|
+
max-width: 463px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@media (min-width: 1024px) {
|
|
122
|
+
.container {
|
|
123
|
+
min-width: 464px;
|
|
124
|
+
max-width: 547px;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (min-width: 1440px) {
|
|
129
|
+
.container {
|
|
130
|
+
min-width: 548px;
|
|
131
|
+
max-width: 575px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@media (min-width: 1920px) {
|
|
136
|
+
.container {
|
|
137
|
+
min-width: 576px;
|
|
138
|
+
max-width: 732px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
5
141
|
`;exports.toastMessageStyles=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../utils/version.cjs");function e(e,t){return function(n){var r,i,a,o;if(!(n!=null&&n.prototype))throw TypeError(`@customUiKitElement requires a class that extends HTMLElement.`);let s=e;if(!((r=globalThis)==null||(r=r.customElements)==null)&&r.get(s))return;let c=t!=null&&t.skipTagAsComponentName?[]:[e];Array.isArray(t==null?void 0:t.extendComponentNames)&&(c=[...t.extendComponentNames,...c]),(i=globalThis)==null||(i=i.customElements)==null||(a=i.define)==null||a.call(i,s,(o=class extends n{connectedCallback(){var e;(e=n.prototype.connectedCallback)==null||e.call(this),this.setAttribute(`data-ui-kit-version`,`2.0.0-canary.
|
|
1
|
+
require("../utils/version.cjs");function e(e,t){return function(n){var r,i,a,o;if(!(n!=null&&n.prototype))throw TypeError(`@customUiKitElement requires a class that extends HTMLElement.`);let s=e;if(!((r=globalThis)==null||(r=r.customElements)==null)&&r.get(s))return;let c=t!=null&&t.skipTagAsComponentName?[]:[e];Array.isArray(t==null?void 0:t.extendComponentNames)&&(c=[...t.extendComponentNames,...c]),(i=globalThis)==null||(i=i.customElements)==null||(a=i.define)==null||a.call(i,s,(o=class extends n{connectedCallback(){var e;(e=n.prototype.connectedCallback)==null||e.call(this),this.setAttribute(`data-ui-kit-version`,`2.0.0-canary.181`)}},o.componentName=c,o))}}exports.customUiKitElement=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../core/theme.constants.cjs"),t=require("./PubSub.cjs");var n=class{constructor(){this.icons={},this.handleChangeTheme=e=>{if(this.theme===e)return;this.theme=e;let t=Object.keys(this.icons);this.icons={},t.forEach(e=>this.fetchIcon(e))},this.fetchIcon=async(t,n={})=>{var r;let i=typeof sessionStorage<`u`?(r=sessionStorage)==null?void 0:r.getItem(e.THEME_STORAGE_KEY):null;!this.theme&&i&&(this.theme=i);let a=this.icons[t];if(a)return await a;let o=this.loadIcon(t,n).catch(e=>{throw delete this.icons[t],e});return this.icons[t]=o,o},this.loadIcon=(e,{cache:t=`force-cache`,...n})=>!this.theme||typeof fetch>`u`?Promise.resolve(`<svg class="ds-icon"></svg>`):fetch(`https://ds-assets.cupra.com/icons/${this.theme}/${e}.svg`,{cache:t,...n}).then(e=>e.text()).catch(t=>{if((t==null?void 0:t.name)===`AbortError`)throw t;return console.error(`Failed to fetch icon "${e}":`,t),``}),t.pubSub.subscribe(`theme`,this.handleChangeTheme)}},r=Symbol.for(`@cupra/ui-kit/icons-manager/2.0.0-canary.
|
|
1
|
+
const e=require("../core/theme.constants.cjs"),t=require("./PubSub.cjs");var n=class{constructor(){this.icons={},this.handleChangeTheme=e=>{if(this.theme===e)return;this.theme=e;let t=Object.keys(this.icons);this.icons={},t.forEach(e=>this.fetchIcon(e))},this.fetchIcon=async(t,n={})=>{var r;let i=typeof sessionStorage<`u`?(r=sessionStorage)==null?void 0:r.getItem(e.THEME_STORAGE_KEY):null;!this.theme&&i&&(this.theme=i);let a=this.icons[t];if(a)return await a;let o=this.loadIcon(t,n).catch(e=>{throw delete this.icons[t],e});return this.icons[t]=o,o},this.loadIcon=(e,{cache:t=`force-cache`,...n})=>!this.theme||typeof fetch>`u`?Promise.resolve(`<svg class="ds-icon"></svg>`):fetch(`https://ds-assets.cupra.com/icons/${this.theme}/${e}.svg`,{cache:t,...n}).then(e=>e.text()).catch(t=>{if((t==null?void 0:t.name)===`AbortError`)throw t;return console.error(`Failed to fetch icon "${e}":`,t),``}),t.pubSub.subscribe(`theme`,this.handleChangeTheme)}},r=Symbol.for(`@cupra/ui-kit/icons-manager/2.0.0-canary.181`),i=globalThis,a=i[r];a||(a=new n,Object.defineProperty(i,r,{value:a,writable:!1,configurable:!1,enumerable:!1}));var o=a;exports.iconsManager=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=class{constructor(){this.subscribers={},this.lastPublishedData={}}subscribe(e,t){return this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t),this.lastPublishedData[e]}unsubscribe(e,t){this.subscribers[e]&&(this.subscribers[e]=this.subscribers[e].filter(e=>e!==t))}publish(e,t){this.lastPublishedData[e]=t,this.subscribers[e]&&this.subscribers[e].forEach(n=>{try{n(t)}catch(t){console.error(`Error in subscriber for event "${e}":`,t)}})}},t=Symbol.for(`@cupra/ui-kit/pubsub/2.0.0-canary.
|
|
1
|
+
var e=class{constructor(){this.subscribers={},this.lastPublishedData={}}subscribe(e,t){return this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push(t),this.lastPublishedData[e]}unsubscribe(e,t){this.subscribers[e]&&(this.subscribers[e]=this.subscribers[e].filter(e=>e!==t))}publish(e,t){this.lastPublishedData[e]=t,this.subscribers[e]&&this.subscribers[e].forEach(n=>{try{n(t)}catch(t){console.error(`Error in subscriber for event "${e}":`,t)}})}},t=Symbol.for(`@cupra/ui-kit/pubsub/2.0.0-canary.181`),n=globalThis,r=n[t];r||(r=new e,Object.defineProperty(n,t,{value:r,writable:!1,configurable:!1,enumerable:!1}));var i=r;exports.pubSub=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=require("../concurrencyLimit.cjs").concurrencyLimit(20),t=class t{constructor(){this.stylePromises=new Map,this.getStyles=async({componentName:t,theme:n})=>{if(!n||!t)return;let r=`https://ds-assets.cupra.com/2.0.0-canary.
|
|
1
|
+
var e=require("../concurrencyLimit.cjs").concurrencyLimit(20),t=class t{constructor(){this.stylePromises=new Map,this.getStyles=async({componentName:t,theme:n})=>{if(!n||!t)return;let r=`https://ds-assets.cupra.com/2.0.0-canary.181/styles/${n}/components/${t}.css`,i=this.getCachedStyleSheetPromise({url:r});if(i)return i;let a=e(()=>this.fetchStyle({url:r})).then(e=>(e||this.stylePromises.delete(r),e));return this.stylePromises.set(r,a),this.stylePromises.get(r)}}async fetchStyle({url:e}){try{if(typeof fetch>`u`)return;let t=await fetch(e,{cache:`force-cache`});if(t.ok)return t.text()}catch(t){console.error(`Failed to fetch Style Sheet "${e}":`,t)}}getCachedStyleSheetPromise({url:e}){return this.stylePromises.get(e)}static getInstance(){return t.instance||(t.instance=new t),t.instance}}.getInstance();exports.stylesRegistry=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`2.0.0-canary.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`2.0.0-canary.181`,t=`--v${e.replaceAll(`.`,`-`)}`;exports.VERSION=e,exports.VERSION_TAG_SUFFIX=t;
|
|
@@ -5,6 +5,123 @@ var t = e`
|
|
|
5
5
|
:host {
|
|
6
6
|
display: contents;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
.container {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
border-radius: var(--ds-border-radius-full);
|
|
14
|
+
background: var(--ds-icon-button-bg-color-rounded-default);
|
|
15
|
+
user-select: none;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
|
|
19
|
+
flex: 0 0 auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.container:not(.disabled):hover {
|
|
23
|
+
background: var(--ds-icon-button-bg-color-rounded-hover);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.container:not(.disabled):active {
|
|
27
|
+
background: var(--ds-icon-button-bg-color-rounded-pressed);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.container:focus-visible {
|
|
31
|
+
outline: var(--ds-border-width-l) solid var(--ds-color-border-focus-ring);
|
|
32
|
+
outline-offset: 2px;
|
|
33
|
+
background: var(--ds-icon-button-bg-color-rounded-focus);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.container.disabled {
|
|
37
|
+
background: var(--ds-icon-button-bg-color-rounded-disabled);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.container.large {
|
|
41
|
+
width: var(--ds-sizing-48);
|
|
42
|
+
height: var(--ds-sizing-48);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.container.medium {
|
|
46
|
+
width: var(--ds-sizing-40);
|
|
47
|
+
height: var(--ds-sizing-40);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.container.small {
|
|
51
|
+
width: var(--ds-sizing-36);
|
|
52
|
+
height: var(--ds-sizing-36);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.container .icon {
|
|
56
|
+
--ui-kit-icon-color: var(--ds-icon-button-icon-color-quaternary-default);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.container.large .icon {
|
|
60
|
+
--ui-kit-icon-width: var(--ds-sizing-24);
|
|
61
|
+
--ui-kit-icon-height: var(--ds-sizing-24);
|
|
62
|
+
}
|
|
63
|
+
.container.medium .icon {
|
|
64
|
+
--ui-kit-icon-width: var(--ds-sizing-20);
|
|
65
|
+
--ui-kit-icon-height: var(--ds-sizing-20);
|
|
66
|
+
}
|
|
67
|
+
.container.small .icon {
|
|
68
|
+
--ui-kit-icon-width: var(--ds-sizing-16);
|
|
69
|
+
--ui-kit-icon-height: var(--ds-sizing-16);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.container.disabled .icon {
|
|
73
|
+
--ui-kit-icon-color: var(--ds-icon-button-icon-color-quaternary-disabled);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.container .initials {
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
color: var(--ds-color-text-default-static);
|
|
79
|
+
text-align: center;
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
font-family: var(--ds-typography-family-primary);
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: var(--ds-typography-weight-body-secondary);
|
|
84
|
+
letter-spacing: var(--ds-typography-letter-spacing-base);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.container.large .initials {
|
|
88
|
+
font-size: var(--ds-typography-size-body-l);
|
|
89
|
+
line-height: var(--ds-typography-height-body-l);
|
|
90
|
+
}
|
|
91
|
+
.container.medium .initials {
|
|
92
|
+
font-size: var(--ds-typography-size-body-m);
|
|
93
|
+
line-height: var(--ds-typography-height-body-m);
|
|
94
|
+
}
|
|
95
|
+
.container.small .initials {
|
|
96
|
+
font-size: var(--ds-typography-size-body-s);
|
|
97
|
+
line-height: var(--ds-typography-height-body-s);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.container.disabled .initials {
|
|
101
|
+
color: var(--ds-color-text-disabled);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
::slotted(img[slot='media']) {
|
|
105
|
+
width: 100%;
|
|
106
|
+
object-fit: cover;
|
|
107
|
+
display: block;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.mode-media.container {
|
|
111
|
+
filter: brightness(1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.mode-media.container:not(.disabled):hover {
|
|
115
|
+
filter: brightness(1.1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.mode-media.container:not(.disabled):active {
|
|
119
|
+
filter: brightness(1.25);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.mode-media.container.disabled {
|
|
123
|
+
filter: grayscale(1) brightness(0.5);
|
|
124
|
+
}
|
|
8
125
|
`;
|
|
9
126
|
//#endregion
|
|
10
127
|
export { t as commonStyles };
|
|
@@ -5,6 +5,48 @@ var t = e`
|
|
|
5
5
|
:host {
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
.container {
|
|
10
|
+
border-radius: var(--ds-border-radius-full);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.number {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
font-family: var(--ds-typography-family-primary);
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.number.size-large {
|
|
22
|
+
width: var(--ds-sizing-24);
|
|
23
|
+
height: var(--ds-sizing-24);
|
|
24
|
+
font-size: var(--ds-typography-size-body-s);
|
|
25
|
+
line-height: var(--ds-typography-height-body-s);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.number.size-medium {
|
|
29
|
+
width: var(--ds-sizing-16);
|
|
30
|
+
height: var(--ds-sizing-16);
|
|
31
|
+
font-size: var(--ds-typography-size-body-xs);
|
|
32
|
+
line-height: var(--ds-typography-height-body-xs);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.variant-base {
|
|
36
|
+
color: var(--ds-color-text-default);
|
|
37
|
+
background-color: var(--ds-color-bg-default);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.variant-inverted {
|
|
41
|
+
background-color: var(--ds-color-bg-default-inverted);
|
|
42
|
+
color: var(--ds-color-text-default-inverted);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.dot {
|
|
46
|
+
width: var(--ds-sizing-08);
|
|
47
|
+
height: var(--ds-sizing-08);
|
|
48
|
+
background-color: var(--ds-color-surface-feedback-error);
|
|
49
|
+
}
|
|
8
50
|
`;
|
|
9
51
|
//#endregion
|
|
10
52
|
export { t as commonStyles };
|
|
@@ -13,18 +13,19 @@ import "../ds-tooltip/ds-tooltip.js";
|
|
|
13
13
|
import { s, u as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/static.js";
|
|
14
14
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/static-html.js";
|
|
15
15
|
import "../ds-breadcrumbs-item/ds-breadcrumbs-item.js";
|
|
16
|
+
import { commonStyles as l } from "./styles/common.styles.js";
|
|
16
17
|
//#region src/components/ds-breadcrumbs/ds-breadcrumbs.ts
|
|
17
|
-
var
|
|
18
|
+
var u, d = [{
|
|
18
19
|
below: 768,
|
|
19
20
|
maxItems: 3
|
|
20
21
|
}, {
|
|
21
22
|
below: 1024,
|
|
22
23
|
maxItems: 4
|
|
23
|
-
}],
|
|
24
|
+
}], f = 5, p = (u = class extends r {
|
|
24
25
|
constructor(...e) {
|
|
25
|
-
super(...e), this.items = [], this.maxItems =
|
|
26
|
-
let e =
|
|
27
|
-
this.maxItems = (e == null ? void 0 : e.maxItems) ??
|
|
26
|
+
super(...e), this.items = [], this.maxItems = f, this.itemTag = "ds-breadcrumbs-item", this.onResize = () => {
|
|
27
|
+
let e = d.find(({ below: e }) => window.innerWidth < e);
|
|
28
|
+
this.maxItems = (e == null ? void 0 : e.maxItems) ?? f;
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
async firstUpdated(e) {
|
|
@@ -113,6 +114,6 @@ var l = [{
|
|
|
113
114
|
</nav>
|
|
114
115
|
`;
|
|
115
116
|
}
|
|
116
|
-
};
|
|
117
|
-
n([t()],
|
|
117
|
+
}, u.styles = [l], u);
|
|
118
|
+
n([t()], p.prototype, "items", void 0), n([t()], p.prototype, "maxItems", void 0), n([t()], p.prototype, "itemTag", void 0), p = n([i("ds-breadcrumbs")], p);
|
|
118
119
|
//#endregion
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { i as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
3
|
+
//#region src/components/ds-breadcrumbs/styles/common.styles.ts
|
|
4
|
+
var t = e`
|
|
5
|
+
.breadcrumb-list {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
list-style: none;
|
|
9
|
+
padding: 0;
|
|
10
|
+
margin: 0;
|
|
11
|
+
flex-wrap: nowrap;
|
|
12
|
+
gap: var(--ds-spacing-s-3);
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.breadcrumb-list-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--ds-spacing-s-3);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.separator-icon {
|
|
23
|
+
--ui-kit-icon-color: var(--ds-color-text-default-subtlest);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.breadcrumbs-tooltip::part(container) {
|
|
27
|
+
max-height: none;
|
|
28
|
+
max-width: none;
|
|
29
|
+
overflow: visible;
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.overflow-item-wrapper {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: var(--ds-spacing-s-3);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.overflow-trigger {
|
|
40
|
+
background: none;
|
|
41
|
+
border: none;
|
|
42
|
+
padding: 0;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
|
|
45
|
+
&:focus-visible {
|
|
46
|
+
outline-offset: var(--ds-border-radius-xxs);
|
|
47
|
+
border-radius: var(--ds-border-radius-xxs);
|
|
48
|
+
outline: var(--ds-border-width-l) solid var(--ds-color-border-focus-ring);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:disabled {
|
|
52
|
+
cursor: default;
|
|
53
|
+
|
|
54
|
+
.overflow-label {
|
|
55
|
+
color: var(--ds-color-text-disabled);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.overflow-label {
|
|
61
|
+
color: var(--ds-color-text-default-subtlest);
|
|
62
|
+
font-family: var(--ds-typography-family-primary);
|
|
63
|
+
font-size: var(--ds-typography-size-body-l);
|
|
64
|
+
line-height: var(--ds-typography-height-body-l);
|
|
65
|
+
font-weight: var(--ds-typography-weight-body-secondary);
|
|
66
|
+
letter-spacing: var(--ds-typography-letter-spacing-base);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.overflow-menu {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
padding: 0;
|
|
73
|
+
margin: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.overflow-menu-item {
|
|
77
|
+
display: flex;
|
|
78
|
+
min-height: 40px;
|
|
79
|
+
padding: var(--ds-spacing-s-5) var(--ds-spacing-m-1);
|
|
80
|
+
align-items: center;
|
|
81
|
+
gap: var(--ds-spacing-s-5);
|
|
82
|
+
align-self: stretch;
|
|
83
|
+
border-radius: var(--ds-border-radius-none);
|
|
84
|
+
border-bottom: 1px solid var(--ds-color-border-default-subtle);
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
background: var(--ds-color-control-bg-hover);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:focus,
|
|
93
|
+
&:focus-visible {
|
|
94
|
+
background: var(--ds-color-control-bg-hover);
|
|
95
|
+
outline: var(--ds-border-width-l) solid var(--ds-color-border-focus-ring);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.overflow-menu-link {
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
color: var(--ds-color-text-default);
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
font: var(--ds-typography-weight-body-secondary) var(--ds-typography-size-body-m) /
|
|
105
|
+
var(--ds-typography-height-body-m) var(--ds-typography-family-primary);
|
|
106
|
+
letter-spacing: var(--ds-typography-letter-spacing-base);
|
|
107
|
+
margin: 0;
|
|
108
|
+
text-decoration: none;
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
111
|
+
//#endregion
|
|
112
|
+
export { t as commonStyles };
|