@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.
Files changed (73) hide show
  1. package/dist/cjs/components/ds-chips/styles/common.styles.cjs +2 -13
  2. package/dist/cjs/components/ds-chips/styles/cupra-diagonal.styles.cjs +0 -1
  3. package/dist/cjs/components/ds-chips/styles/seat.styles.cjs +0 -1
  4. package/dist/cjs/components/ds-date-picker/ds-date-picker.cjs +3 -5
  5. package/dist/cjs/components/ds-date-picker/styles/common.styles.cjs +200 -0
  6. package/dist/cjs/components/ds-list-item/ds-list-item.cjs +2 -2
  7. package/dist/cjs/components/ds-list-item/styles/common.styles.cjs +117 -0
  8. package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
  9. package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
  10. package/dist/cjs/utils/IconsManager.cjs +1 -1
  11. package/dist/cjs/utils/PubSub.cjs +1 -1
  12. package/dist/cjs/utils/version.cjs +1 -1
  13. package/dist/esm/components/ds-chips/styles/common.styles.js +2 -13
  14. package/dist/esm/components/ds-chips/styles/cupra-diagonal.styles.js +0 -1
  15. package/dist/esm/components/ds-chips/styles/seat.styles.js +0 -1
  16. package/dist/esm/components/ds-date-picker/ds-date-picker.js +13 -21
  17. package/dist/esm/components/ds-date-picker/styles/common.styles.js +200 -0
  18. package/dist/esm/components/ds-list-item/ds-list-item.js +7 -13
  19. package/dist/esm/components/ds-list-item/styles/common.styles.js +117 -0
  20. package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
  21. package/dist/esm/decorators/customUiKitElement.js +1 -1
  22. package/dist/esm/utils/IconsManager.js +1 -1
  23. package/dist/esm/utils/PubSub.js +1 -1
  24. package/dist/esm/utils/version.js +1 -1
  25. package/dist-react/cjs/components/ds-chips/styles/common.styles.cjs +2 -13
  26. package/dist-react/cjs/components/ds-chips/styles/cupra-diagonal.styles.cjs +0 -1
  27. package/dist-react/cjs/components/ds-chips/styles/seat.styles.cjs +0 -1
  28. package/dist-react/cjs/components/ds-date-picker/ds-date-picker.cjs +3 -5
  29. package/dist-react/cjs/components/ds-date-picker/styles/common.styles.cjs +200 -0
  30. package/dist-react/cjs/components/ds-list-item/ds-list-item.cjs +2 -2
  31. package/dist-react/cjs/components/ds-list-item/styles/common.styles.cjs +117 -0
  32. package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
  33. package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
  34. package/dist-react/cjs/utils/IconsManager.cjs +1 -1
  35. package/dist-react/cjs/utils/PubSub.cjs +1 -1
  36. package/dist-react/cjs/utils/version.cjs +1 -1
  37. package/dist-react/esm/components/ds-chips/styles/common.styles.js +2 -13
  38. package/dist-react/esm/components/ds-chips/styles/cupra-diagonal.styles.js +0 -1
  39. package/dist-react/esm/components/ds-chips/styles/seat.styles.js +0 -1
  40. package/dist-react/esm/components/ds-date-picker/ds-date-picker.js +13 -21
  41. package/dist-react/esm/components/ds-date-picker/styles/common.styles.js +200 -0
  42. package/dist-react/esm/components/ds-list-item/ds-list-item.js +7 -13
  43. package/dist-react/esm/components/ds-list-item/styles/common.styles.js +117 -0
  44. package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
  45. package/dist-react/esm/decorators/customUiKitElement.js +1 -1
  46. package/dist-react/esm/utils/IconsManager.js +1 -1
  47. package/dist-react/esm/utils/PubSub.js +1 -1
  48. package/dist-react/esm/utils/version.js +1 -1
  49. package/package.json +1 -1
  50. package/dist/cjs/components/ds-date-picker/styles/cupra-diagonal.styles.cjs +0 -202
  51. package/dist/cjs/components/ds-date-picker/styles/seat.styles.cjs +0 -201
  52. package/dist/cjs/components/ds-list-item/styles/cupra-diagonal.styles.cjs +0 -118
  53. package/dist/cjs/components/ds-list-item/styles/seat.styles.cjs +0 -118
  54. package/dist/esm/components/ds-date-picker/styles/cupra-diagonal.styles.js +0 -207
  55. package/dist/esm/components/ds-date-picker/styles/seat.styles.js +0 -206
  56. package/dist/esm/components/ds-list-item/styles/cupra-diagonal.styles.js +0 -123
  57. package/dist/esm/components/ds-list-item/styles/seat.styles.js +0 -123
  58. package/dist/types/components/ds-date-picker/styles/cupra-diagonal.styles.d.ts +0 -1
  59. package/dist/types/components/ds-date-picker/styles/seat.styles.d.ts +0 -1
  60. package/dist/types/components/ds-list-item/styles/cupra-diagonal.styles.d.ts +0 -1
  61. package/dist/types/components/ds-list-item/styles/seat.styles.d.ts +0 -1
  62. package/dist-react/cjs/components/ds-date-picker/styles/cupra-diagonal.styles.cjs +0 -202
  63. package/dist-react/cjs/components/ds-date-picker/styles/seat.styles.cjs +0 -201
  64. package/dist-react/cjs/components/ds-list-item/styles/cupra-diagonal.styles.cjs +0 -118
  65. package/dist-react/cjs/components/ds-list-item/styles/seat.styles.cjs +0 -118
  66. package/dist-react/esm/components/ds-date-picker/styles/cupra-diagonal.styles.js +0 -207
  67. package/dist-react/esm/components/ds-date-picker/styles/seat.styles.js +0 -206
  68. package/dist-react/esm/components/ds-list-item/styles/cupra-diagonal.styles.js +0 -123
  69. package/dist-react/esm/components/ds-list-item/styles/seat.styles.js +0 -123
  70. package/dist-react/types/components/ds-date-picker/styles/cupra-diagonal.styles.d.ts +0 -1
  71. package/dist-react/types/components/ds-date-picker/styles/seat.styles.d.ts +0 -1
  72. package/dist-react/types/components/ds-list-item/styles/cupra-diagonal.styles.d.ts +0 -1
  73. 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 d = class extends i {
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
- }, f = (d.styles = [
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
- })], f.prototype, "variant", void 0), r([n({
93
+ })], u.prototype, "variant", void 0), r([n({
100
94
  type: Boolean,
101
95
  reflect: !0
102
- })], f.prototype, "selected", void 0), r([n({
96
+ })], u.prototype, "selected", void 0), r([n({
103
97
  type: Boolean,
104
98
  reflect: !0
105
- })], f.prototype, "disabled", void 0), r([n({
99
+ })], u.prototype, "disabled", void 0), r([n({
106
100
  type: String,
107
101
  reflect: !0
108
- })], f.prototype, "size", void 0), f = r([a("ds-list-item")], f);
102
+ })], u.prototype, "size", void 0), u = r([a("ds-list-item")], u);
109
103
  //#endregion
110
- export { f as DsListItem };
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.236";
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 t(t) {
8
8
  (r = globalThis) != null && (r = r.customElements) != null && r.get(o) || (i = globalThis) == null || (i = i.customElements) == null || (a = i.define) == null || a.call(i, o, class extends n {
9
9
  connectedCallback() {
10
10
  var e;
11
- (e = n.prototype.connectedCallback) == null || e.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.236"), this.setAttribute("data-ui-kit-component-name", t);
11
+ (e = n.prototype.connectedCallback) == null || e.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.238"), this.setAttribute("data-ui-kit-component-name", t);
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.236"), i = globalThis, a = i[r];
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,
@@ -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.236"), n = globalThis, r = n[t];
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,
@@ -1,4 +1,4 @@
1
1
  //#region src/utils/version.ts
2
- var e = "2.0.0-canary.236", t = `--v${e.replaceAll(".", "-")}`;
2
+ var e = "2.0.0-canary.238", t = `--v${e.replaceAll(".", "-")}`;
3
3
  //#endregion
4
4
  export { e as VERSION, t as VERSION_TAG_SUFFIX };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cupra/ui-kit",
3
- "version": "2.0.0-canary.236",
3
+ "version": "2.0.0-canary.238",
4
4
  "description": "Web components library",
5
5
  "author": "SEAT S.A.",
6
6
  "license": "SEAT S.A. Library EULA 1.0",
@@ -1,202 +0,0 @@
1
- const e=require("../../../node_modules/.pnpm/@lit_reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.cjs");require("../../../node_modules/.pnpm/lit@3.3.3/node_modules/lit/index.cjs");var t=e.css`
2
- :host([data-ui-kit-theme='cupra-diagonal']):has(.disabled),
3
- :host([data-ui-kit-theme='cupra-diagonal']):has(.readonly) {
4
- pointer-events: none;
5
- }
6
-
7
- :host([data-ui-kit-theme='cupra-diagonal']) .container {
8
- position: relative;
9
- border-radius: var(--ds-border-radius-xxs, 4px);
10
- display: flex;
11
- width: 100%;
12
- flex-direction: column;
13
- align-items: flex-start;
14
- gap: var(--ds-spacing-s-3);
15
- }
16
-
17
- :host([data-ui-kit-theme='cupra-diagonal']) .container.focus-visible {
18
- outline: 0.125rem solid var(--ds-color-border-focus-ring, #6b8494);
19
- outline-offset: 0.125rem;
20
- }
21
-
22
- :host([data-ui-kit-theme='cupra-diagonal']) ::slotted(label) {
23
- color: var(--ds-field-text-color-label-default, #c3c3cb);
24
- font-family: var(--ds-typography-family-primary);
25
- font-style: normal;
26
- font-weight: 350;
27
- letter-spacing: var(--ds-typography-letter-spacing-m);
28
- }
29
-
30
- :host([data-ui-kit-theme='cupra-diagonal']) .large ::slotted(label) {
31
- font-size: var(--ds-typography-size-body-m);
32
- line-height: var(--ds-typography-height-body-m);
33
- }
34
-
35
- :host([data-ui-kit-theme='cupra-diagonal']) .medium ::slotted(label) {
36
- font-size: var(--ds-typography-size-body-s);
37
- line-height: var(--ds-typography-height-body-s);
38
- }
39
-
40
- :host([data-ui-kit-theme='cupra-diagonal']) .disabled ::slotted(label) {
41
- color: var(--ds-field-text-color-label-disabled, #5a5c67);
42
- }
43
-
44
- :host([data-ui-kit-theme='cupra-diagonal']) .readonly ::slotted(label) {
45
- color: var(--ds-field-text-color-label-default, #c3c3cb);
46
- }
47
-
48
- :host([data-ui-kit-theme='cupra-diagonal']) ::slotted(input) {
49
- width: 100%;
50
- box-sizing: border-box;
51
- flex: 1 0 0;
52
- color: var(--ds-field-text-color-placeholder-disabled, #5a5c67);
53
- color-scheme: dark;
54
- font-family: var(--ds-typography-family-primary);
55
- font-style: normal;
56
- font-weight: 400;
57
- letter-spacing: var(--ds-typography-letter-spacing-m);
58
- border: none;
59
- outline: none;
60
- background: transparent;
61
- cursor: text;
62
- }
63
-
64
- :host([data-ui-kit-theme='cupra-diagonal']) .focus:not(.filled) ::slotted(input) {
65
- color: var(--ds-field-text-color-placeholder-disabled, #5a5c67);
66
- }
67
-
68
- :host([data-ui-kit-theme='cupra-diagonal']) .filled ::slotted(input) {
69
- color: var(--ds-field-text-color-input-default, #fafafa);
70
- }
71
-
72
- :host([data-ui-kit-theme='cupra-diagonal']) ::slotted(input:disabled) {
73
- color: var(--ds-field-text-color-placeholder-disabled, #5a5c67);
74
- }
75
-
76
- :host([data-ui-kit-theme='cupra-diagonal']) .readonly ::slotted(input) {
77
- color: var(--ds-field-text-color-placeholder-default, #c3c3cb);
78
- }
79
-
80
- :host([data-ui-kit-theme='cupra-diagonal']) .large ::slotted(input) {
81
- font-size: var(--ds-typography-size-body-l);
82
- line-height: var(--ds-typography-height-body-l);
83
- height: var(--ds-sizing-48, 48px);
84
- padding: var(--ds-spacing-m-1) 0;
85
- }
86
-
87
- :host([data-ui-kit-theme='cupra-diagonal']) .medium ::slotted(input) {
88
- font-size: var(--ds-typography-size-body-m);
89
- line-height: var(--ds-typography-height-body-m);
90
- height: var(--ds-sizing-40, 40px);
91
- padding: var(--ds-spacing-s-5) 0;
92
- }
93
-
94
- :host([data-ui-kit-theme='cupra-diagonal']) .input-container {
95
- box-sizing: border-box;
96
- display: flex;
97
- justify-content: space-between;
98
- align-items: flex-end;
99
- width: 100%;
100
- padding: var(--ds-spacing-s-5) var(--ds-spacing-s-5) 0 var(--ds-spacing-m-1);
101
- background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
102
- border-radius: var(--ds-border-radius-xxs) var(--ds-border-radius-xxs) var(--ds-border-radius-none)
103
- var(--ds-border-radius-none);
104
- border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-default, #aeaeb7);
105
- }
106
-
107
- :host([data-ui-kit-theme='cupra-diagonal']) .medium .input-container {
108
- padding-left: var(--ds-spacing-s-5);
109
- }
110
-
111
- :host([data-ui-kit-theme='cupra-diagonal']) .input-container > div {
112
- flex: 1 1 auto;
113
- }
114
-
115
- :host([data-ui-kit-theme='cupra-diagonal']) .input-container:hover,
116
- :host([data-ui-kit-theme='cupra-diagonal']) .focus-visible .input-container {
117
- background: var(--ds-field-bg-color-hover, rgba(195, 195, 203, 0.1));
118
- }
119
-
120
- :host([data-ui-kit-theme='cupra-diagonal']) .focus:not(.focus-visible) .input-container {
121
- background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
122
- border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-selected, #b2764d);
123
- }
124
-
125
- :host([data-ui-kit-theme='cupra-diagonal']) .filled .input-container {
126
- border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-filled, #fafafa);
127
- }
128
-
129
- :host([data-ui-kit-theme='cupra-diagonal']) .container.error .input-container,
130
- :host([data-ui-kit-theme='cupra-diagonal']) .container.invalid .input-container {
131
- border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-error, #ff403d);
132
- }
133
-
134
- :host([data-ui-kit-theme='cupra-diagonal']) .disabled .input-container,
135
- :host([data-ui-kit-theme='cupra-diagonal']) .disabled.error .input-container,
136
- :host([data-ui-kit-theme='cupra-diagonal']) .disabled.invalid .input-container {
137
- background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
138
- border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-disabled, #5a5c67);
139
- }
140
-
141
- :host([data-ui-kit-theme='cupra-diagonal']) .readonly .input-container {
142
- background: var(--ds-field-bg-color-default, rgba(195, 195, 203, 0.05));
143
- border-bottom: var(--ds-border-width-m, 1px) solid var(--ds-field-border-color-default, #aeaeb7);
144
- }
145
-
146
- :host([data-ui-kit-theme='cupra-diagonal']) .footer {
147
- box-sizing: border-box;
148
- display: flex;
149
- align-items: flex-start;
150
- align-self: stretch;
151
- gap: var(--ds-spacing-s-5, 8px);
152
- overflow: hidden;
153
- color: var(--ds-field-text-color-caption-default, #c3c3cb);
154
- text-overflow: ellipsis;
155
- font-family: var(--ds-typography-family-primary);
156
- font-style: normal;
157
- font-weight: 350;
158
- letter-spacing: var(--ds-typography-letter-spacing-m);
159
- }
160
-
161
- :host([data-ui-kit-theme='cupra-diagonal']) .large .footer {
162
- font-size: var(--ds-typography-size-body-m);
163
- line-height: var(--ds-typography-height-body-m);
164
- padding: var(--ds-spacing-s-1, 0) var(--ds-spacing-s-5, 8px) var(--ds-spacing-s-1, 0)
165
- var(--ds-spacing-m-1, 12px);
166
- }
167
-
168
- :host([data-ui-kit-theme='cupra-diagonal']) .medium .footer {
169
- font-size: var(--ds-typography-size-body-s);
170
- line-height: var(--ds-typography-height-body-s);
171
- padding: var(--ds-spacing-s-1, 0) var(--ds-spacing-s-5, 8px);
172
- }
173
-
174
- :host([data-ui-kit-theme='cupra-diagonal']) .support-text {
175
- flex: 1 1 auto;
176
- }
177
-
178
- :host([data-ui-kit-theme='cupra-diagonal']) .helper-text,
179
- :host([data-ui-kit-theme='cupra-diagonal']) .readonly-text {
180
- color: var(--ds-field-text-color-caption-default, #c3c3cb);
181
- }
182
-
183
- :host([data-ui-kit-theme='cupra-diagonal']) .error-text {
184
- color: var(--ds-field-text-color-caption-error, #ff403d);
185
- }
186
-
187
- :host([data-ui-kit-theme='cupra-diagonal']) .disabled .support-text {
188
- color: var(--ds-field-text-color-caption-disabled, #5a5c67);
189
- }
190
-
191
- :host([data-ui-kit-theme='cupra-diagonal']) .readonly .support-text {
192
- color: var(--ds-field-text-color-caption-default, #c3c3cb);
193
- }
194
-
195
- :host([data-ui-kit-theme='cupra-diagonal']) .calendar-dropdown {
196
- position: absolute;
197
- top: 100%;
198
- left: 0;
199
- z-index: 10;
200
- margin-top: var(--ds-spacing-s-3, 4px);
201
- }
202
- `;exports.cupraDiagonalStyles=t;