@basis-theory/basis-theory-js 4.4.0 → 4.6.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreditCardType } from './cardTypes';
|
|
2
2
|
import { AutoCompleteValue, DataElementReference } from './shared';
|
|
3
|
-
import type { ElementStyle } from './styles';
|
|
3
|
+
import type { CopyIconStyles, ElementStyle } from './styles';
|
|
4
4
|
declare const ELEMENTS_TYPES: readonly ["card", "cardExpirationDate", "cardNumber", "cardVerificationCode", "data", "text"];
|
|
5
5
|
type ElementType = typeof ELEMENTS_TYPES[number];
|
|
6
6
|
interface ElementInternalOptions {
|
|
@@ -25,6 +25,7 @@ interface SanitizedElementOptions {
|
|
|
25
25
|
autoComplete?: string;
|
|
26
26
|
cardBrand?: string;
|
|
27
27
|
cardTypes?: CreditCardType[];
|
|
28
|
+
copyIconStyles?: CopyIconStyles;
|
|
28
29
|
disabled?: boolean;
|
|
29
30
|
enableCopy?: boolean;
|
|
30
31
|
iconPosition?: string;
|
|
@@ -16,5 +16,10 @@ type FontSources = FontSource[];
|
|
|
16
16
|
type Fonts = Record<CardElementStyleFontAttr, FontSources>;
|
|
17
17
|
type CardElementStyle = Partial<Record<CardElementStyleVariant, CardElementStyleVariantStyle> & Fonts>;
|
|
18
18
|
type ElementStyle = CardElementStyle;
|
|
19
|
+
type CopyIconStyles = {
|
|
20
|
+
size?: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
sucessColor?: string;
|
|
23
|
+
};
|
|
19
24
|
export { SAFE_CSS_PROPERTIES, SAFE_CSS_PROPERTIES_ALTERNATES, SAFE_CSS_PROPERTIES_WITH_ALTERNATES, CARD_ELEMENT_STYLE_VARIANT_SELECTORS, CARD_ELEMENT_STYLE_VARIANTS, CARD_ELEMENT_STYLE_FONTS_ATTR, };
|
|
20
|
-
export type {
|
|
25
|
+
export type { CardElementStyle, CardElementStyleVariant, CardElementStyleVariantSelector, CardElementStyleVariantStyle, CopyIconStyles, ElementStyle, Fonts, FontSources, SafeCSSProperty, SafeStyle, };
|