@trafilea/afrodita-components 4.3.0 → 4.3.1-beta.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/build/index.d.ts +10 -6
- package/build/index.esm.js +100 -97
- package/build/index.esm.js.map +1 -1
- package/build/index.js +100 -97
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ interface CTAProps {
|
|
|
42
42
|
text: string;
|
|
43
43
|
type?: ButtonType;
|
|
44
44
|
className?: string;
|
|
45
|
+
testId?: string;
|
|
45
46
|
inline?: boolean;
|
|
46
47
|
}
|
|
47
48
|
declare type DropdownOption<T> = {
|
|
@@ -81,7 +82,7 @@ interface IconWithOpacityProps extends IconProps {
|
|
|
81
82
|
opacity?: number;
|
|
82
83
|
}
|
|
83
84
|
interface WithTestId {
|
|
84
|
-
|
|
85
|
+
testId?: string;
|
|
85
86
|
}
|
|
86
87
|
declare type DropdownListIconsItem = {
|
|
87
88
|
Icon: IconType;
|
|
@@ -398,7 +399,7 @@ declare namespace Payment {
|
|
|
398
399
|
};
|
|
399
400
|
}
|
|
400
401
|
|
|
401
|
-
declare const SlideDot: ({ height, width, fill, opacity,
|
|
402
|
+
declare const SlideDot: ({ height, width, fill, opacity, testId, }: IconWithOpacityProps & WithTestId) => JSX.Element;
|
|
402
403
|
|
|
403
404
|
declare const SlideDots_SlideDot: typeof SlideDot;
|
|
404
405
|
declare namespace SlideDots {
|
|
@@ -447,7 +448,7 @@ declare const _default: (({ children, backgroundColor, widthAuto, border, flex }
|
|
|
447
448
|
Body: ({ children }: CardBodyProps) => JSX.Element;
|
|
448
449
|
};
|
|
449
450
|
|
|
450
|
-
declare const ButtonPrimary: (props: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
451
|
+
declare const ButtonPrimary: ({ testId, ...props }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
451
452
|
|
|
452
453
|
declare const ButtonSecondary: (props: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
453
454
|
|
|
@@ -463,6 +464,7 @@ declare type CommonProps<T> = {
|
|
|
463
464
|
sort?: boolean;
|
|
464
465
|
initialValue?: Value<T>;
|
|
465
466
|
placeHolder: string;
|
|
467
|
+
testId?: string;
|
|
466
468
|
};
|
|
467
469
|
declare type ControlledProps<T> = {
|
|
468
470
|
value: Value<T>;
|
|
@@ -473,7 +475,7 @@ declare type UncontrolledProps<T> = {
|
|
|
473
475
|
onChange?: OnChange<T>;
|
|
474
476
|
} & CommonProps<T>;
|
|
475
477
|
declare type SimpleDropdownProps<T> = UncontrolledProps<T> | ControlledProps<T>;
|
|
476
|
-
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, }: SimpleDropdownProps<T>): JSX.Element;
|
|
478
|
+
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, }: SimpleDropdownProps<T>): JSX.Element;
|
|
477
479
|
|
|
478
480
|
interface SizeSelectorProps {
|
|
479
481
|
label: string;
|
|
@@ -501,6 +503,7 @@ interface BaseButtonProps {
|
|
|
501
503
|
onClick: () => void;
|
|
502
504
|
className?: string;
|
|
503
505
|
inline?: boolean;
|
|
506
|
+
testId?: string;
|
|
504
507
|
}
|
|
505
508
|
|
|
506
509
|
declare type BaseProps = Pick<BaseButtonProps, 'disabled' | 'type' | 'onClick'>;
|
|
@@ -1122,7 +1125,7 @@ interface BaseCTAProps {
|
|
|
1122
1125
|
size?: ComponentSize;
|
|
1123
1126
|
text: string;
|
|
1124
1127
|
type?: ButtonType;
|
|
1125
|
-
|
|
1128
|
+
testId?: string;
|
|
1126
1129
|
}
|
|
1127
1130
|
|
|
1128
1131
|
declare type ButtonProps = {
|
|
@@ -1340,6 +1343,7 @@ interface ProductItemProps {
|
|
|
1340
1343
|
seasonOfferTagText: string;
|
|
1341
1344
|
};
|
|
1342
1345
|
alignName?: 'left' | 'center';
|
|
1346
|
+
url?: string;
|
|
1343
1347
|
}
|
|
1344
1348
|
|
|
1345
1349
|
interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
@@ -1352,7 +1356,7 @@ declare function withProductGrid<P extends ProductItemProps>(ProductItemComponen
|
|
|
1352
1356
|
};
|
|
1353
1357
|
|
|
1354
1358
|
declare const Collection: {
|
|
1355
|
-
ProductItemMobile: ({ title, image, price, rating, size, tags, alignName, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1359
|
+
ProductItemMobile: ({ title, image, price, rating, size, tags, alignName, url, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1356
1360
|
withProductGrid: typeof withProductGrid;
|
|
1357
1361
|
};
|
|
1358
1362
|
|