@cupra/ui-kit 2.0.0-canary.215 → 2.0.0-canary.217
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-currency/ds-currency.cjs +2 -2
- package/dist/cjs/components/ds-favourite-action/ds-favourite-action.cjs +1 -1
- package/dist/cjs/components/ds-icon/iconNames.cjs +1 -1
- package/dist/cjs/components/ds-interactive-card/ds-interactive-card.cjs +4 -2
- package/dist/cjs/components/ds-interactive-card/styles/common.styles.cjs +8 -3
- 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/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist/cjs/utils/formatNumber/formatNumber.cjs +1 -1
- package/dist/cjs/utils/version.cjs +1 -1
- package/dist/esm/components/ds-currency/ds-currency.js +5 -1
- package/dist/esm/components/ds-favourite-action/ds-favourite-action.js +1 -1
- package/dist/esm/components/ds-icon/iconNames.js +1 -1
- package/dist/esm/components/ds-interactive-card/ds-interactive-card.js +15 -2
- package/dist/esm/components/ds-interactive-card/styles/common.styles.js +8 -3
- 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/StylesRegistry/StylesRegistry.js +1 -1
- package/dist/esm/utils/formatNumber/formatNumber.js +42 -25
- package/dist/esm/utils/version.js +1 -1
- package/dist/types/components/ds-currency/ds-currency.d.ts +1 -0
- package/dist/types/components/ds-currency/ds-currency.types.d.ts +2 -1
- package/dist/types/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist/types/components/ds-icon/iconNames.d.ts +1 -1
- package/dist/types/components/ds-interactive-card/ds-interactive-card.d.ts +6 -0
- package/dist/types/components/ds-link-button/ds-link-button.types.d.ts +1 -1
- package/dist/types/components/ds-tag/ds-tag.types.d.ts +1 -1
- package/dist/types/utils/formatNumber/formatNumber.d.ts +3 -1
- package/dist-react/cjs/components/ds-currency/ds-currency.cjs +2 -2
- package/dist-react/cjs/components/ds-favourite-action/ds-favourite-action.cjs +1 -1
- package/dist-react/cjs/components/ds-icon/iconNames.cjs +1 -1
- package/dist-react/cjs/components/ds-interactive-card/ds-interactive-card.cjs +4 -2
- package/dist-react/cjs/components/ds-interactive-card/styles/common.styles.cjs +8 -3
- 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/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist-react/cjs/utils/formatNumber/formatNumber.cjs +1 -1
- package/dist-react/cjs/utils/version.cjs +1 -1
- package/dist-react/esm/components/ds-currency/ds-currency.js +5 -1
- package/dist-react/esm/components/ds-favourite-action/ds-favourite-action.js +1 -1
- package/dist-react/esm/components/ds-icon/iconNames.js +1 -1
- package/dist-react/esm/components/ds-interactive-card/ds-interactive-card.js +15 -2
- package/dist-react/esm/components/ds-interactive-card/styles/common.styles.js +8 -3
- 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/StylesRegistry/StylesRegistry.js +1 -1
- package/dist-react/esm/utils/formatNumber/formatNumber.js +42 -25
- package/dist-react/esm/utils/version.js +1 -1
- package/dist-react/types/components/ds-currency/ds-currency.d.ts +1 -0
- package/dist-react/types/components/ds-currency/ds-currency.types.d.ts +2 -1
- package/dist-react/types/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist-react/types/components/ds-icon/iconNames.d.ts +1 -1
- package/dist-react/types/components/ds-interactive-card/ds-interactive-card.d.ts +6 -0
- package/dist-react/types/components/ds-link-button/ds-link-button.types.d.ts +1 -1
- package/dist-react/types/components/ds-tag/ds-tag.types.d.ts +1 -1
- package/dist-react/types/utils/formatNumber/formatNumber.d.ts +3 -1
- package/package.json +1 -1
|
@@ -20,6 +20,12 @@ export declare class DsInteractiveCard extends UiKitElement {
|
|
|
20
20
|
error: boolean;
|
|
21
21
|
selected: boolean;
|
|
22
22
|
};
|
|
23
|
+
private get hasCta();
|
|
24
|
+
protected get ctaClasses(): {
|
|
25
|
+
cta: boolean;
|
|
26
|
+
empty: boolean;
|
|
27
|
+
};
|
|
28
|
+
private handleCtaSlotChange;
|
|
23
29
|
protected get iconTemplate(): import("lit").HTMLTemplateResult;
|
|
24
30
|
protected get closeButtonTemplate(): typeof nothing | import("lit").HTMLTemplateResult;
|
|
25
31
|
private handleClick;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DsIconAttrs } from '../ds-icon/ds-icon.types.ts';
|
|
2
2
|
import { type Viewports } from '../../utils/breakpoints.ts';
|
|
3
3
|
import type { CommonAttrs } from '../../types/types';
|
|
4
|
-
type PresetSize = 'medium' | 'large';
|
|
4
|
+
type PresetSize = 'small' | 'medium' | 'large';
|
|
5
5
|
type Size = PresetSize | string;
|
|
6
6
|
type ResponsiveSize = Partial<Record<Viewports, Size>>;
|
|
7
7
|
type Link = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DsIconAttrs } from '../ds-icon/ds-icon.types';
|
|
2
2
|
import type { CommonAttrs } from '../../types/types';
|
|
3
3
|
export type DsTagColor = 'moonlate' | 'white' | 'copper' | 'rio-green' | 'electric' | 'yellow' | 'red' | 'green' | 'black' | (string & {});
|
|
4
|
-
export type DsTagVariant = 'default' | 'contrast' | 'accent-01' | 'accent-02' | 'accent-03' | 'warning' | 'error' | 'success' | 'disabled';
|
|
4
|
+
export type DsTagVariant = 'default' | 'contrast' | 'accent-01' | 'accent-02' | 'accent-03' | 'warning' | 'error' | 'success' | 'subtle' | 'disabled';
|
|
5
5
|
type DsTagBaseAttrs = CommonAttrs & {
|
|
6
6
|
show?: boolean;
|
|
7
7
|
'clickable-icon'?: boolean;
|
|
@@ -197,6 +197,7 @@ export type Integer1To21 = Integer1To20 | 21;
|
|
|
197
197
|
export type Locale = {
|
|
198
198
|
[K in keyof Locales]: Locales[K] extends '' ? K : `${K}-${Locales[K]}`;
|
|
199
199
|
}[keyof Locales];
|
|
200
|
+
export type SymbolOverrides = Record<string, string | Partial<Record<Locale, string>>>;
|
|
200
201
|
export type Currency = {
|
|
201
202
|
style: 'currency';
|
|
202
203
|
currency: string;
|
|
@@ -234,6 +235,7 @@ export type FormatNumberProps = UnitStyle & {
|
|
|
234
235
|
fractionSeparator?: string;
|
|
235
236
|
useGrouping?: 'auto' | 'always' | 'min2' | boolean;
|
|
236
237
|
currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';
|
|
238
|
+
symbolOverrides?: SymbolOverrides | string;
|
|
237
239
|
};
|
|
238
240
|
export type FormatedNumber = {
|
|
239
241
|
formattedNumber: string;
|
|
@@ -241,5 +243,5 @@ export type FormatedNumber = {
|
|
|
241
243
|
unitSymbol?: string;
|
|
242
244
|
unitSymbolPosition?: 'left' | 'right';
|
|
243
245
|
};
|
|
244
|
-
export declare function formatNumber({ value, locale, style, unit, currency, localeMatcher, minimumIntegerDigits, minimumFractionDigits, maximumFractionDigits, thousandSeparator, fractionSeparator, useGrouping, currencyDisplay, }: FormatNumberProps): FormatedNumber;
|
|
246
|
+
export declare function formatNumber({ value, locale, style, unit, currency, localeMatcher, minimumIntegerDigits, minimumFractionDigits, maximumFractionDigits, thousandSeparator, fractionSeparator, useGrouping, currencyDisplay, symbolOverrides, }: FormatNumberProps): FormatedNumber;
|
|
245
247
|
export {};
|