@basis-theory/react-elements 2.10.0 → 2.11.1
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/main/index.js +2 -1
- package/module/module.js +2 -1
- package/package.json +2 -2
- package/types/index.d.ts +2 -1
package/main/index.js
CHANGED
|
@@ -216,7 +216,7 @@ const $75e7ef6fe5d73b5f$export$b6487193f4d880e0 = (eventType, element, listener)
|
|
|
216
216
|
]);
|
|
217
217
|
|
|
218
218
|
|
|
219
|
-
const $b68de9bc89cba8c8$var$CardElementC = ({ autoComplete: autoComplete, binLookup: binLookup, bt: bt, cardTypes: cardTypes, coBadgedSupport: coBadgedSupport, copyIconStyles: copyIconStyles, disabled: disabled, elementRef: elementRef, enableCopy: enableCopy, id: id, inputMode: inputMode, maxElapsedExpirationYear: maxElapsedExpirationYear, onBlur: onBlur, onChange: onChange, onCopy: onCopy, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, placeholder: placeholder, readOnly: readOnly, skipLuhnValidation: skipLuhnValidation, style: style, title: title, validateOnChange: validateOnChange, value: value })=>{
|
|
219
|
+
const $b68de9bc89cba8c8$var$CardElementC = ({ autoComplete: autoComplete, binLookup: binLookup, bt: bt, cardTypes: cardTypes, coBadgedSupport: coBadgedSupport, copyIconStyles: copyIconStyles, disabled: disabled, elementRef: elementRef, enableCopy: enableCopy, id: id, inputMode: inputMode, iconPosition: iconPosition, maxElapsedExpirationYear: maxElapsedExpirationYear, onBlur: onBlur, onChange: onChange, onCopy: onCopy, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, placeholder: placeholder, readOnly: readOnly, skipLuhnValidation: skipLuhnValidation, style: style, title: title, validateOnChange: validateOnChange, value: value })=>{
|
|
220
220
|
const wrapperRef = (0, $6ZdRe$react.useRef)(null);
|
|
221
221
|
const element = (0, $515e46363124517b$export$93e1bc7222cfbdc8)(id, 'card', wrapperRef, {
|
|
222
222
|
autoComplete: autoComplete,
|
|
@@ -227,6 +227,7 @@ const $b68de9bc89cba8c8$var$CardElementC = ({ autoComplete: autoComplete, binLoo
|
|
|
227
227
|
binLookup: binLookup,
|
|
228
228
|
coBadgedSupport: coBadgedSupport,
|
|
229
229
|
inputMode: inputMode,
|
|
230
|
+
iconPosition: iconPosition,
|
|
230
231
|
maxElapsedExpirationYear: maxElapsedExpirationYear,
|
|
231
232
|
placeholder: placeholder,
|
|
232
233
|
readOnly: readOnly,
|
package/module/module.js
CHANGED
|
@@ -181,7 +181,7 @@ const $1b6d06f13820d117$export$b6487193f4d880e0 = (eventType, element, listener)
|
|
|
181
181
|
]);
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
const $22a85849b67e3ab0$var$CardElementC = ({ autoComplete: autoComplete, binLookup: binLookup, bt: bt, cardTypes: cardTypes, coBadgedSupport: coBadgedSupport, copyIconStyles: copyIconStyles, disabled: disabled, elementRef: elementRef, enableCopy: enableCopy, id: id, inputMode: inputMode, maxElapsedExpirationYear: maxElapsedExpirationYear, onBlur: onBlur, onChange: onChange, onCopy: onCopy, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, placeholder: placeholder, readOnly: readOnly, skipLuhnValidation: skipLuhnValidation, style: style, title: title, validateOnChange: validateOnChange, value: value })=>{
|
|
184
|
+
const $22a85849b67e3ab0$var$CardElementC = ({ autoComplete: autoComplete, binLookup: binLookup, bt: bt, cardTypes: cardTypes, coBadgedSupport: coBadgedSupport, copyIconStyles: copyIconStyles, disabled: disabled, elementRef: elementRef, enableCopy: enableCopy, id: id, inputMode: inputMode, iconPosition: iconPosition, maxElapsedExpirationYear: maxElapsedExpirationYear, onBlur: onBlur, onChange: onChange, onCopy: onCopy, onFocus: onFocus, onKeyDown: onKeyDown, onReady: onReady, placeholder: placeholder, readOnly: readOnly, skipLuhnValidation: skipLuhnValidation, style: style, title: title, validateOnChange: validateOnChange, value: value })=>{
|
|
185
185
|
const wrapperRef = (0, $gb0K4$useRef)(null);
|
|
186
186
|
const element = (0, $001f9ef7a572da43$export$93e1bc7222cfbdc8)(id, 'card', wrapperRef, {
|
|
187
187
|
autoComplete: autoComplete,
|
|
@@ -192,6 +192,7 @@ const $22a85849b67e3ab0$var$CardElementC = ({ autoComplete: autoComplete, binLoo
|
|
|
192
192
|
binLookup: binLookup,
|
|
193
193
|
coBadgedSupport: coBadgedSupport,
|
|
194
194
|
inputMode: inputMode,
|
|
195
|
+
iconPosition: iconPosition,
|
|
195
196
|
maxElapsedExpirationYear: maxElapsedExpirationYear,
|
|
196
197
|
placeholder: placeholder,
|
|
197
198
|
readOnly: readOnly,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/react-elements",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/basis-theory/react-elements.git"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"tag": "latest"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@basis-theory/web-elements": "2.
|
|
36
|
+
"@basis-theory/web-elements": "2.11.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
package/types/index.d.ts
CHANGED
|
@@ -298,7 +298,7 @@ export interface CardElementAutoComplete {
|
|
|
298
298
|
expirationDate: AutoCompleteValue;
|
|
299
299
|
csc: AutoCompleteValue;
|
|
300
300
|
}
|
|
301
|
-
export type CreateCardElementOptions = CardCustomizableElementOptions & Pick<ElementOptions, 'binLookup' | 'cardTypes' | 'skipLuhnValidation' | 'title'> & {
|
|
301
|
+
export type CreateCardElementOptions = CardCustomizableElementOptions & Pick<ElementOptions, 'binLookup' | 'cardTypes' | 'skipLuhnValidation' | 'iconPosition' | 'title'> & {
|
|
302
302
|
coBadgedSupport?: CoBadgedSupport[];
|
|
303
303
|
placeholder?: CardElementPlaceholder;
|
|
304
304
|
value?: CardElementValue<'static'>;
|
|
@@ -753,6 +753,7 @@ export interface CardElementProps {
|
|
|
753
753
|
enableCopy?: boolean;
|
|
754
754
|
id: string;
|
|
755
755
|
inputMode?: `${InputMode}`;
|
|
756
|
+
iconPosition?: CardIconPosition;
|
|
756
757
|
maxElapsedExpirationYear?: number;
|
|
757
758
|
onBlur?: ElementEventListener<CardElementEvents, 'blur'>;
|
|
758
759
|
onChange?: ElementEventListener<CardElementEvents, 'change'>;
|