@cupra/ui-kit 2.0.0-canary.236 → 2.0.0-canary.238
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-chips/styles/common.styles.cjs +2 -13
- package/dist/cjs/components/ds-chips/styles/cupra-diagonal.styles.cjs +0 -1
- package/dist/cjs/components/ds-chips/styles/seat.styles.cjs +0 -1
- package/dist/cjs/components/ds-date-picker/ds-date-picker.cjs +3 -5
- package/dist/cjs/components/ds-date-picker/styles/common.styles.cjs +200 -0
- package/dist/cjs/components/ds-list-item/ds-list-item.cjs +2 -2
- package/dist/cjs/components/ds-list-item/styles/common.styles.cjs +117 -0
- package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- 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/version.cjs +1 -1
- package/dist/esm/components/ds-chips/styles/common.styles.js +2 -13
- package/dist/esm/components/ds-chips/styles/cupra-diagonal.styles.js +0 -1
- package/dist/esm/components/ds-chips/styles/seat.styles.js +0 -1
- package/dist/esm/components/ds-date-picker/ds-date-picker.js +13 -21
- package/dist/esm/components/ds-date-picker/styles/common.styles.js +200 -0
- package/dist/esm/components/ds-list-item/ds-list-item.js +7 -13
- package/dist/esm/components/ds-list-item/styles/common.styles.js +117 -0
- package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- 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/version.js +1 -1
- package/dist-react/cjs/components/ds-chips/styles/common.styles.cjs +2 -13
- package/dist-react/cjs/components/ds-chips/styles/cupra-diagonal.styles.cjs +0 -1
- package/dist-react/cjs/components/ds-chips/styles/seat.styles.cjs +0 -1
- package/dist-react/cjs/components/ds-date-picker/ds-date-picker.cjs +3 -5
- package/dist-react/cjs/components/ds-date-picker/styles/common.styles.cjs +200 -0
- package/dist-react/cjs/components/ds-list-item/ds-list-item.cjs +2 -2
- package/dist-react/cjs/components/ds-list-item/styles/common.styles.cjs +117 -0
- package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- 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/version.cjs +1 -1
- package/dist-react/esm/components/ds-chips/styles/common.styles.js +2 -13
- package/dist-react/esm/components/ds-chips/styles/cupra-diagonal.styles.js +0 -1
- package/dist-react/esm/components/ds-chips/styles/seat.styles.js +0 -1
- package/dist-react/esm/components/ds-date-picker/ds-date-picker.js +13 -21
- package/dist-react/esm/components/ds-date-picker/styles/common.styles.js +200 -0
- package/dist-react/esm/components/ds-list-item/ds-list-item.js +7 -13
- package/dist-react/esm/components/ds-list-item/styles/common.styles.js +117 -0
- package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- 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/version.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/ds-date-picker/styles/cupra-diagonal.styles.cjs +0 -202
- package/dist/cjs/components/ds-date-picker/styles/seat.styles.cjs +0 -201
- package/dist/cjs/components/ds-list-item/styles/cupra-diagonal.styles.cjs +0 -118
- package/dist/cjs/components/ds-list-item/styles/seat.styles.cjs +0 -118
- package/dist/esm/components/ds-date-picker/styles/cupra-diagonal.styles.js +0 -207
- package/dist/esm/components/ds-date-picker/styles/seat.styles.js +0 -206
- package/dist/esm/components/ds-list-item/styles/cupra-diagonal.styles.js +0 -123
- package/dist/esm/components/ds-list-item/styles/seat.styles.js +0 -123
- package/dist/types/components/ds-date-picker/styles/cupra-diagonal.styles.d.ts +0 -1
- package/dist/types/components/ds-date-picker/styles/seat.styles.d.ts +0 -1
- package/dist/types/components/ds-list-item/styles/cupra-diagonal.styles.d.ts +0 -1
- package/dist/types/components/ds-list-item/styles/seat.styles.d.ts +0 -1
- package/dist-react/cjs/components/ds-date-picker/styles/cupra-diagonal.styles.cjs +0 -202
- package/dist-react/cjs/components/ds-date-picker/styles/seat.styles.cjs +0 -201
- package/dist-react/cjs/components/ds-list-item/styles/cupra-diagonal.styles.cjs +0 -118
- package/dist-react/cjs/components/ds-list-item/styles/seat.styles.cjs +0 -118
- package/dist-react/esm/components/ds-date-picker/styles/cupra-diagonal.styles.js +0 -207
- package/dist-react/esm/components/ds-date-picker/styles/seat.styles.js +0 -206
- package/dist-react/esm/components/ds-list-item/styles/cupra-diagonal.styles.js +0 -123
- package/dist-react/esm/components/ds-list-item/styles/seat.styles.js +0 -123
- package/dist-react/types/components/ds-date-picker/styles/cupra-diagonal.styles.d.ts +0 -1
- package/dist-react/types/components/ds-date-picker/styles/seat.styles.d.ts +0 -1
- package/dist-react/types/components/ds-list-item/styles/cupra-diagonal.styles.d.ts +0 -1
- package/dist-react/types/components/ds-list-item/styles/seat.styles.d.ts +0 -1
|
@@ -5,6 +5,206 @@ var t = e`
|
|
|
5
5
|
:host {
|
|
6
6
|
display: contents;
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
:host:has(.disabled),
|
|
10
|
+
:host:has(.readonly) {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host .container {
|
|
15
|
+
position: relative;
|
|
16
|
+
border-radius: var(--ds-border-radius-xxs, 4px);
|
|
17
|
+
display: flex;
|
|
18
|
+
width: 100%;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
gap: var(--ds-spacing-s-3);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host .container.focus-visible {
|
|
25
|
+
outline: 0.125rem solid var(--ds-color-border-focus-ring, #6b8494);
|
|
26
|
+
outline-offset: 0.125rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host ::slotted(label) {
|
|
30
|
+
color: var(--ds-field-text-color-label-default, #c3c3cb);
|
|
31
|
+
font-family: var(--ds-typography-family-primary);
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 350;
|
|
34
|
+
letter-spacing: var(--ds-typography-letter-spacing-m);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host .large ::slotted(label) {
|
|
38
|
+
font-size: var(--ds-typography-size-body-m);
|
|
39
|
+
line-height: var(--ds-typography-height-body-m);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host .medium ::slotted(label) {
|
|
43
|
+
font-size: var(--ds-typography-size-body-s);
|
|
44
|
+
line-height: var(--ds-typography-height-body-s);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host .disabled ::slotted(label) {
|
|
48
|
+
color: var(--ds-field-text-color-label-disabled, #5a5c67);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host .readonly ::slotted(label) {
|
|
52
|
+
color: var(--ds-field-text-color-label-default, #c3c3cb);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host ::slotted(input) {
|
|
56
|
+
width: 100%;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
flex: 1 0 0;
|
|
59
|
+
color: var(--ds-field-text-color-placeholder-disabled, #5a5c67);
|
|
60
|
+
font-family: var(--ds-typography-family-primary);
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
letter-spacing: var(--ds-typography-letter-spacing-m);
|
|
64
|
+
border: none;
|
|
65
|
+
outline: none;
|
|
66
|
+
background: transparent;
|
|
67
|
+
cursor: text;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host .focus:not(.filled) ::slotted(input) {
|
|
71
|
+
color: var(--ds-field-text-color-placeholder-disabled, #5a5c67);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host .filled ::slotted(input) {
|
|
75
|
+
color: var(--ds-field-text-color-input-default, #fafafa);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host ::slotted(input:disabled) {
|
|
79
|
+
color: var(--ds-field-text-color-placeholder-disabled, #5a5c67);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host .readonly ::slotted(input) {
|
|
83
|
+
color: var(--ds-field-text-color-placeholder-default, #c3c3cb);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host .large ::slotted(input) {
|
|
87
|
+
font-size: var(--ds-typography-size-body-l);
|
|
88
|
+
line-height: var(--ds-typography-height-body-l);
|
|
89
|
+
height: var(--ds-sizing-48, 48px);
|
|
90
|
+
padding: var(--ds-spacing-m-1) 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host .medium ::slotted(input) {
|
|
94
|
+
font-size: var(--ds-typography-size-body-m);
|
|
95
|
+
line-height: var(--ds-typography-height-body-m);
|
|
96
|
+
height: var(--ds-sizing-40, 40px);
|
|
97
|
+
padding: var(--ds-spacing-s-5) 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host .input-container {
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
align-items: flex-end;
|
|
105
|
+
width: 100%;
|
|
106
|
+
padding: var(--ds-spacing-s-5) var(--ds-spacing-s-5) 0 var(--ds-spacing-m-1);
|
|
107
|
+
background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
|
|
108
|
+
border-radius: var(--ds-border-radius-xxs) var(--ds-border-radius-xxs) var(--ds-border-radius-none)
|
|
109
|
+
var(--ds-border-radius-none);
|
|
110
|
+
border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-default, #aeaeb7);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:host .medium .input-container {
|
|
114
|
+
padding-left: var(--ds-spacing-s-5);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host .input-container > div {
|
|
118
|
+
flex: 1 1 auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host .input-container:hover,
|
|
122
|
+
:host .focus-visible .input-container {
|
|
123
|
+
background: var(--ds-field-bg-color-hover, rgba(195, 195, 203, 0.1));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host .focus:not(.focus-visible) .input-container {
|
|
127
|
+
background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
|
|
128
|
+
border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-selected, #b2764d);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host .filled .input-container {
|
|
132
|
+
border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-filled, #fafafa);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host .container.error .input-container,
|
|
136
|
+
:host .container.invalid .input-container {
|
|
137
|
+
border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-error, #ff403d);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
:host .disabled .input-container,
|
|
141
|
+
:host .disabled.error .input-container,
|
|
142
|
+
:host .disabled.invalid .input-container {
|
|
143
|
+
background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
|
|
144
|
+
border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-disabled, #5a5c67);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host .readonly .input-container {
|
|
148
|
+
background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
|
|
149
|
+
border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-default, #aeaeb7);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host .footer {
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: flex-start;
|
|
156
|
+
align-self: stretch;
|
|
157
|
+
gap: var(--ds-spacing-s-5, 8px);
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
color: var(--ds-field-text-color-caption-default, #c3c3cb);
|
|
160
|
+
text-overflow: ellipsis;
|
|
161
|
+
font-family: var(--ds-typography-family-primary);
|
|
162
|
+
font-style: normal;
|
|
163
|
+
font-weight: 350;
|
|
164
|
+
letter-spacing: var(--ds-typography-letter-spacing-m);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:host .large .footer {
|
|
168
|
+
font-size: var(--ds-typography-size-body-m);
|
|
169
|
+
line-height: var(--ds-typography-height-body-m);
|
|
170
|
+
padding: var(--ds-spacing-s-1, 0) var(--ds-spacing-s-5, 8px) var(--ds-spacing-s-1, 0)
|
|
171
|
+
var(--ds-spacing-m-1, 12px);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
:host .medium .footer {
|
|
175
|
+
font-size: var(--ds-typography-size-body-s);
|
|
176
|
+
line-height: var(--ds-typography-height-body-s);
|
|
177
|
+
padding: var(--ds-spacing-s-1, 0) var(--ds-spacing-s-5, 8px);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host .support-text {
|
|
181
|
+
flex: 1 1 auto;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:host .helper-text,
|
|
185
|
+
:host .readonly-text {
|
|
186
|
+
color: var(--ds-field-text-color-caption-default, #c3c3cb);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:host .error-text {
|
|
190
|
+
color: var(--ds-field-text-color-caption-error, #ff403d);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:host .disabled .support-text {
|
|
194
|
+
color: var(--ds-field-text-color-caption-disabled, #5a5c67);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host .readonly .support-text {
|
|
198
|
+
color: var(--ds-field-text-color-caption-default, #c3c3cb);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host .calendar-dropdown {
|
|
202
|
+
position: absolute;
|
|
203
|
+
top: 100%;
|
|
204
|
+
left: 0;
|
|
205
|
+
z-index: 10;
|
|
206
|
+
margin-top: var(--ds-spacing-s-3, 4px);
|
|
207
|
+
}
|
|
8
208
|
`;
|
|
9
209
|
//#endregion
|
|
10
210
|
export { t as commonStyles };
|
|
@@ -9,10 +9,8 @@ import { uiKitHtml as o } from "../../utils/uiKitHtml.js";
|
|
|
9
9
|
import { classMap as s } from "../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/class-map.js";
|
|
10
10
|
import "../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/directives/class-map.js";
|
|
11
11
|
import { commonStyles as c } from "./styles/common.styles.js";
|
|
12
|
-
import { cupraDiagonalStyles as l } from "./styles/cupra-diagonal.styles.js";
|
|
13
|
-
import { seatStyles as u } from "./styles/seat.styles.js";
|
|
14
12
|
//#region src/components/ds-list-item/ds-list-item.ts
|
|
15
|
-
var
|
|
13
|
+
var l = class extends i {
|
|
16
14
|
constructor(...e) {
|
|
17
15
|
super(...e), this.variant = "selection", this.selected = !1, this.disabled = !1, this.size = "large";
|
|
18
16
|
}
|
|
@@ -88,23 +86,19 @@ var d = class extends i {
|
|
|
88
86
|
${n ? o`<ds-divider orientation="horizontal" variant="primary" role="presentation"></ds-divider>` : t}
|
|
89
87
|
`;
|
|
90
88
|
}
|
|
91
|
-
},
|
|
92
|
-
c,
|
|
93
|
-
l,
|
|
94
|
-
u
|
|
95
|
-
], d);
|
|
89
|
+
}, u = (l.styles = [c], l);
|
|
96
90
|
r([n({
|
|
97
91
|
type: String,
|
|
98
92
|
reflect: !0
|
|
99
|
-
})],
|
|
93
|
+
})], u.prototype, "variant", void 0), r([n({
|
|
100
94
|
type: Boolean,
|
|
101
95
|
reflect: !0
|
|
102
|
-
})],
|
|
96
|
+
})], u.prototype, "selected", void 0), r([n({
|
|
103
97
|
type: Boolean,
|
|
104
98
|
reflect: !0
|
|
105
|
-
})],
|
|
99
|
+
})], u.prototype, "disabled", void 0), r([n({
|
|
106
100
|
type: String,
|
|
107
101
|
reflect: !0
|
|
108
|
-
})],
|
|
102
|
+
})], u.prototype, "size", void 0), u = r([a("ds-list-item")], u);
|
|
109
103
|
//#endregion
|
|
110
|
-
export {
|
|
104
|
+
export { u as DsListItem };
|
|
@@ -6,6 +6,123 @@ var t = e`
|
|
|
6
6
|
display: block;
|
|
7
7
|
width: fit-content;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
:host .content {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: var(--ds-sizing-08) 0;
|
|
14
|
+
font-family: var(--ds-typography-family-primary);
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
gap: var(--ds-sizing-08);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host .container {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: var(--ds-sizing-08);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host .container-text {
|
|
25
|
+
padding-right: var(--ds-sizing-24);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host .content.info-variant,
|
|
29
|
+
:host .content.action-variant {
|
|
30
|
+
padding: var(--ds-sizing-08);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host ::slotted([slot='input-left']),
|
|
34
|
+
:host ::slotted([slot='input-right']) {
|
|
35
|
+
width: unset;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host ::slotted([slot='primary-text']) {
|
|
39
|
+
color: var(--ds-color-text-default-subtlest);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host ::slotted([slot='primary-subtext']),
|
|
43
|
+
:host ::slotted([slot='secondary-text']),
|
|
44
|
+
:host ::slotted([slot='description-text']) {
|
|
45
|
+
color: var(--ds-color-text-default-subtle);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host ::slotted([slot='description-text']) {
|
|
49
|
+
padding-top: var(--ds-sizing-08);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([size='large']) ::slotted([slot='image-square']) {
|
|
53
|
+
width: var(--ds-sizing-48);
|
|
54
|
+
height: var(--ds-sizing-48);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([size='medium']) ::slotted([slot='image-square']) {
|
|
58
|
+
width: var(--ds-sizing-32);
|
|
59
|
+
height: var(--ds-sizing-32);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host ::slotted([slot='image-wide']) {
|
|
63
|
+
-o-object-fit: cover;
|
|
64
|
+
object-fit: cover;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([size='large']) ::slotted([slot='image-wide']) {
|
|
68
|
+
width: var(--ds-sizing-96);
|
|
69
|
+
height: var(--ds-sizing-48);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([size='medium']) ::slotted([slot='image-wide']) {
|
|
73
|
+
width: var(--ds-sizing-64);
|
|
74
|
+
height: var(--ds-sizing-32);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host([size='medium']) ::slotted([slot='primary-text']),
|
|
78
|
+
:host([size='medium']) ::slotted([slot='secondary-text']),
|
|
79
|
+
:host([size='medium']) ::slotted([slot='description-text']),
|
|
80
|
+
:host([size='medium']) ::slotted([slot='primary-subtext']),
|
|
81
|
+
:host([size='medium']) ::slotted([slot='aside']) {
|
|
82
|
+
font-size: var(--ds-typography-size-body-m);
|
|
83
|
+
line-height: var(--ds-typography-height-body-xs);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([size='large']) ::slotted([slot='primary-text']),
|
|
87
|
+
:host([size='large']) ::slotted([slot='secondary-text']),
|
|
88
|
+
:host([size='large']) ::slotted([slot='description-text']),
|
|
89
|
+
:host([size='large']) ::slotted([slot='primary-subtext']),
|
|
90
|
+
:host([size='large']) ::slotted([slot='aside']) {
|
|
91
|
+
font-size: var(--ds-typography-size-body-l);
|
|
92
|
+
line-height: var(--ds-typography-height-body-s);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([size='small']) ::slotted([slot='primary-text']),
|
|
96
|
+
:host([size='small']) ::slotted([slot='secondary-text']),
|
|
97
|
+
:host([size='small']) ::slotted([slot='description-text']),
|
|
98
|
+
:host([size='small']) ::slotted([slot='primary-subtext']),
|
|
99
|
+
:host([size='small']) ::slotted([slot='aside']) {
|
|
100
|
+
font-size: var(--ds-typography-size-body-s);
|
|
101
|
+
line-height: var(--ds-typography-height-body-xs);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host .content:hover {
|
|
105
|
+
background: var(--ds-color-control-bg-hover);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:host .content:active {
|
|
109
|
+
background: var(--ds-color-control-bg-pressed);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host .content:focus-visible {
|
|
113
|
+
outline: var(--ds-border-width-l) solid var(--ds-color-border-focus-ring);
|
|
114
|
+
background-color: var(--ds-color-control-bg-hover);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host .selected {
|
|
118
|
+
background: var(--ds-color-control-bg-default);
|
|
119
|
+
border-left: var(--ds-sizing-04) solid var(--ds-color-border-selected);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host .disabled {
|
|
123
|
+
opacity: 0.25;
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
}
|
|
9
126
|
`;
|
|
10
127
|
//#endregion
|
|
11
128
|
export { t as commonStyles };
|
|
@@ -53,7 +53,7 @@ var f = class extends a {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
loadThemeStyles() {
|
|
56
|
-
let e = "/2.0.0-canary.
|
|
56
|
+
let e = "/2.0.0-canary.238";
|
|
57
57
|
return this.loadUnusedStyles && this.applyUnusedStyles(e), this.loadStyles ? new Promise((t, n) => {
|
|
58
58
|
let r = `https://ds-assets.cupra.com${e}/styles/${this.theme}/theme.css`;
|
|
59
59
|
if (document.head.querySelector(`link[href="${r}"]`)) t();
|
|
@@ -8,7 +8,7 @@ function e(e) {
|
|
|
8
8
|
(n = globalThis) != null && (n = n.customElements) != null && n.get(a) || (r = globalThis) == null || (r = r.customElements) == null || (i = r.define) == null || i.call(r, a, class extends t {
|
|
9
9
|
connectedCallback() {
|
|
10
10
|
var n;
|
|
11
|
-
(n = t.prototype.connectedCallback) == null || n.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.
|
|
11
|
+
(n = t.prototype.connectedCallback) == null || n.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.238"), this.setAttribute("data-ui-kit-component-name", e);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
};
|
|
@@ -26,7 +26,7 @@ var n = class {
|
|
|
26
26
|
return console.error(`Failed to fetch icon "${e}":`, t), "";
|
|
27
27
|
}), t.subscribe("theme", this.handleChangeTheme);
|
|
28
28
|
}
|
|
29
|
-
}, r = Symbol.for("@cupra/ui-kit/icons-manager/2.0.0-canary.
|
|
29
|
+
}, r = Symbol.for("@cupra/ui-kit/icons-manager/2.0.0-canary.238"), i = globalThis, a = i[r];
|
|
30
30
|
a || (a = new n(), Object.defineProperty(i, r, {
|
|
31
31
|
value: a,
|
|
32
32
|
writable: !1,
|
package/dist/esm/utils/PubSub.js
CHANGED
|
@@ -18,7 +18,7 @@ var e = class {
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
}, t = Symbol.for("@cupra/ui-kit/pubsub/2.0.0-canary.
|
|
21
|
+
}, t = Symbol.for("@cupra/ui-kit/pubsub/2.0.0-canary.238"), n = globalThis, r = n[t];
|
|
22
22
|
r || (r = new e(), Object.defineProperty(n, t, {
|
|
23
23
|
value: r,
|
|
24
24
|
writable: !1,
|
|
@@ -10,23 +10,12 @@ const e=require("../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_mo
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
justify-content: flex-start;
|
|
13
|
-
overflow-
|
|
13
|
+
overflow-x: auto;
|
|
14
|
+
overflow-y: hidden;
|
|
14
15
|
scrollbar-width: none;
|
|
15
16
|
scroll-behavior: smooth;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
//.chips-container.scroll-left.scroll-right {
|
|
19
|
-
// mask-image: linear-gradient(
|
|
20
|
-
// to right,
|
|
21
|
-
// rgba(0, 0, 0, 0) 0px,
|
|
22
|
-
// rgba(0, 0, 0, 0) 32px,
|
|
23
|
-
// rgba(0, 0, 0, 1) 48px,
|
|
24
|
-
// rgba(0, 0, 0, 1) calc(100% - 48px),
|
|
25
|
-
// rgba(0, 0, 0, 0) calc(100% - 32px),
|
|
26
|
-
// rgba(0, 0, 0, 0) 100%
|
|
27
|
-
// );
|
|
28
|
-
//}
|
|
29
|
-
|
|
30
19
|
.chips-container::-webkit-scrollbar {
|
|
31
20
|
display: none;
|
|
32
21
|
}
|
|
@@ -6,6 +6,5 @@ const e=require("../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_mo
|
|
|
6
6
|
:host([data-ui-kit-theme='cupra-diagonal']) .chips-container {
|
|
7
7
|
gap: 0.5rem;
|
|
8
8
|
border-radius: var(--ds-border-radius-full, 100000px);
|
|
9
|
-
overflow: hidden;
|
|
10
9
|
}
|
|
11
10
|
`;exports.cupraDiagonalStyles=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/index.cjs");const t=require("../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.cjs"),n=require("../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/decorators.cjs");const r=require("../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.cjs"),i=require("../base/UiKitElement.cjs"),a=require("../../decorators/customUiKitElement.cjs"),o=require("../../utils/uiKitHtml.cjs"),s=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/class-map.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/directives/class-map.cjs");const c=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/if-defined.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/directives/if-defined.cjs"),require("../ds-icon-button/ds-icon-button.cjs");const l=require("../../mixins/inputStatesMixin.cjs"),u=require("./styles/common.styles.cjs")
|
|
1
|
+
const e=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/index.cjs");const t=require("../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.cjs"),n=require("../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/decorators.cjs");const r=require("../../_virtual/_@oxc-project_runtime@0.152.0/helpers/esm/decorate.cjs"),i=require("../base/UiKitElement.cjs"),a=require("../../decorators/customUiKitElement.cjs"),o=require("../../utils/uiKitHtml.cjs"),s=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/class-map.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/directives/class-map.cjs");const c=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/if-defined.cjs");require("../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/directives/if-defined.cjs"),require("../ds-icon-button/ds-icon-button.cjs");const l=require("../../mixins/inputStatesMixin.cjs"),u=require("./styles/common.styles.cjs");var d=class extends l.inputStatesMixin(i.UiKitElement){constructor(...e){super(...e),this.size=`large`,this.helperText=``,this.forcedError=``,this.invalidError=``,this.readonlyText=``,this.dataAriaLabelCalendarButton=``,this.isExpanded=!1,this.syncCalendarValue=()=>{let e=this.calendarElement;if(e){var t;e.value=((t=this.nativeInput)==null?void 0:t.value)||void 0}},this.handleCalendarButtonClick=()=>{this.inputStates.disabled||this.inputStates.readonly||(this.isExpanded=!this.isExpanded)},this.handleCalendarChange=e=>{e.stopPropagation();let t=e.detail.value;this.nativeInput&&(this.nativeInput.value=t,this.nativeInput.dispatchEvent(new Event(`input`,{bubbles:!0}))),this.isExpanded=!1},this.handleDocumentClick=e=>{this.isExpanded&&!this.contains(e.target)&&(this.isExpanded=!1)}}get calendarElement(){return this.querySelector(`[slot="calendar"]`)}onInputReady(e){this.syncCalendarValue(),e.addEventListener(`input`,this.syncCalendarValue)}connectedCallback(){super.connectedCallback(),this.classList.add(`ds-date-picker`),document.addEventListener(`click`,this.handleDocumentClick),this.addEventListener(`ds-calendar-change`,this.handleCalendarChange),f.injectNativeInputStyles()}static injectNativeInputStyles(){if(f.nativeStylesInjected)return;f.nativeStylesInjected=!0;let e=document.createElement(`style`);e.textContent=[`.ds-date-picker input[type="date"]::-webkit-calendar-picker-indicator { display: none !important; }`,`.ds-date-picker input[type="date"]::-webkit-inner-spin-button { display: none !important; }`].join(`
|
|
2
2
|
`),document.head.appendChild(e)}disconnectedCallback(){var e;super.disconnectedCallback(),document.removeEventListener(`click`,this.handleDocumentClick),this.removeEventListener(`ds-calendar-change`,this.handleCalendarChange),(e=this.nativeInput)==null||e.removeEventListener(`input`,this.syncCalendarValue)}get classes(){return{container:!0,error:!!this.forcedError,[this.size]:!!this.size,disabled:this.inputStates.disabled,readonly:this.inputStates.readonly,filled:this.inputStates.filled,invalid:this.inputStates.invalid,focus:this.inputStates.focus,"focus-visible":this.inputStates.focusVisible,expanded:this.isExpanded}}render(){return e.html`
|
|
3
3
|
<div class=${s.classMap(this.classes)}>
|
|
4
4
|
<div class="input-container">
|
|
@@ -7,9 +7,7 @@ const e=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/l
|
|
|
7
7
|
</div>
|
|
8
8
|
${this.calendarDropdownTemplate}
|
|
9
9
|
<div class="footer">
|
|
10
|
-
${this.readonlyTextTemplate}
|
|
11
|
-
${this.helperTextTemplate}
|
|
12
|
-
${this.forcedErrorTemplate}
|
|
10
|
+
${this.readonlyTextTemplate} ${this.helperTextTemplate} ${this.forcedErrorTemplate}
|
|
13
11
|
${this.invalidErrorTemplate}
|
|
14
12
|
</div>
|
|
15
13
|
</div>
|
|
@@ -25,4 +23,4 @@ const e=require("../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/l
|
|
|
25
23
|
variant="naked"
|
|
26
24
|
@click=${this.handleCalendarButtonClick}
|
|
27
25
|
data-aria-label=${this.dataAriaLabelCalendarButton||`open calendar`}
|
|
28
|
-
></ds-icon-button>`}get helperTextTemplate(){return this.inputStates.readonly||this.forcedError||this.inputStates.invalid&&this.invalidError?e.nothing:e.html`<span class="support-text helper-text">${this.helperText}</span>`}get forcedErrorTemplate(){return this.inputStates.readonly||!this.forcedError?e.nothing:e.html`<span class="support-text error-text forced-error">${this.forcedError}</span>`}get readonlyTextTemplate(){return!this.inputStates.readonly||!this.readonlyText?e.nothing:e.html`<span class="support-text readonly-text">${this.readonlyText}</span>`}get invalidErrorTemplate(){return this.inputStates.readonly||this.forcedError||!this.inputStates.invalid||!this.invalidError?e.nothing:e.html`<span class="support-text error-text invalid-error">${this.invalidError}</span>`}},
|
|
26
|
+
></ds-icon-button>`}get helperTextTemplate(){return this.inputStates.readonly||this.forcedError||this.inputStates.invalid&&this.invalidError?e.nothing:e.html`<span class="support-text helper-text">${this.helperText}</span>`}get forcedErrorTemplate(){return this.inputStates.readonly||!this.forcedError?e.nothing:e.html`<span class="support-text error-text forced-error">${this.forcedError}</span>`}get readonlyTextTemplate(){return!this.inputStates.readonly||!this.readonlyText?e.nothing:e.html`<span class="support-text readonly-text">${this.readonlyText}</span>`}get invalidErrorTemplate(){return this.inputStates.readonly||this.forcedError||!this.inputStates.invalid||!this.invalidError?e.nothing:e.html`<span class="support-text error-text invalid-error">${this.invalidError}</span>`}},f=d,p=(d.styles=[u.commonStyles],d.nativeStylesInjected=!1,d);r.default([t.property({type:String})],p.prototype,`size`,void 0),r.default([t.property({type:String,attribute:`helper-text`})],p.prototype,`helperText`,void 0),r.default([t.property({type:String,attribute:`forced-error`})],p.prototype,`forcedError`,void 0),r.default([t.property({type:String,attribute:`invalid-error`})],p.prototype,`invalidError`,void 0),r.default([t.property({type:String,attribute:`readonly-text`})],p.prototype,`readonlyText`,void 0),r.default([t.property({type:String,attribute:`data-aria-label-calendar-button`})],p.prototype,`dataAriaLabelCalendarButton`,void 0),r.default([n.state()],p.prototype,`isExpanded`,void 0),p=f=r.default([a.customUiKitElement(`ds-date-picker`)],p),Object.defineProperty(exports,"DsDatePicker",{enumerable:!0,get:function(){return p}});
|