@trafilea/afrodita-components 3.0.0 → 3.0.3-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 +380 -93
- package/build/index.esm.js +1205 -770
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1197 -758
- package/build/index.js.map +1 -1
- package/package.json +3 -2
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React, { ReactNode,
|
|
2
|
+
import React, { ReactNode, FC, AriaAttributes, CSSProperties, AnchorHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
3
3
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
4
4
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
5
|
+
import { SearchBarOptionItem as SearchBarOptionItem$1 } from 'src/types/types';
|
|
5
6
|
|
|
6
7
|
declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
7
8
|
|
|
@@ -299,10 +300,10 @@ declare enum CardSectionType {
|
|
|
299
300
|
Footer = 1
|
|
300
301
|
}
|
|
301
302
|
declare enum ComponentSize {
|
|
302
|
-
Large =
|
|
303
|
-
Medium =
|
|
304
|
-
Small =
|
|
305
|
-
XSmall =
|
|
303
|
+
Large = "large",
|
|
304
|
+
Medium = "medium",
|
|
305
|
+
Small = "small",
|
|
306
|
+
XSmall = "xsmall"
|
|
306
307
|
}
|
|
307
308
|
declare enum ComponentPosition {
|
|
308
309
|
Top = 0,
|
|
@@ -316,8 +317,16 @@ declare enum InputValidationType {
|
|
|
316
317
|
Empty = 2
|
|
317
318
|
}
|
|
318
319
|
|
|
320
|
+
interface Breakpoints {
|
|
321
|
+
mobile: number;
|
|
322
|
+
desktop: number;
|
|
323
|
+
}
|
|
319
324
|
interface Theme {
|
|
320
325
|
name: string;
|
|
326
|
+
fontSizes: number[];
|
|
327
|
+
fontWeights: number[];
|
|
328
|
+
lineHeights: number[];
|
|
329
|
+
mediaQueries: Breakpoints;
|
|
321
330
|
colors: {
|
|
322
331
|
primary: string;
|
|
323
332
|
secondary: string;
|
|
@@ -356,12 +365,17 @@ interface Theme {
|
|
|
356
365
|
disabled: string;
|
|
357
366
|
};
|
|
358
367
|
text: {
|
|
368
|
+
body: string;
|
|
359
369
|
disabled: string;
|
|
360
370
|
};
|
|
361
371
|
};
|
|
362
372
|
text: {
|
|
363
373
|
weight: {
|
|
374
|
+
heavy: number;
|
|
364
375
|
bold: number;
|
|
376
|
+
demi: number;
|
|
377
|
+
medium: number;
|
|
378
|
+
regular: number;
|
|
365
379
|
};
|
|
366
380
|
};
|
|
367
381
|
component: {
|
|
@@ -424,6 +438,204 @@ interface Theme {
|
|
|
424
438
|
borderRadius: string;
|
|
425
439
|
};
|
|
426
440
|
};
|
|
441
|
+
selector: {
|
|
442
|
+
size: {
|
|
443
|
+
small: {
|
|
444
|
+
padding: string;
|
|
445
|
+
borderRadius: string;
|
|
446
|
+
};
|
|
447
|
+
medium: {
|
|
448
|
+
padding: string;
|
|
449
|
+
borderRadius: string;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
default: {
|
|
453
|
+
fontWeight: number;
|
|
454
|
+
border: string;
|
|
455
|
+
background: string;
|
|
456
|
+
color: string;
|
|
457
|
+
};
|
|
458
|
+
hover: {
|
|
459
|
+
fontWeight: number;
|
|
460
|
+
background: string;
|
|
461
|
+
border: string;
|
|
462
|
+
color: string;
|
|
463
|
+
};
|
|
464
|
+
disabled: {
|
|
465
|
+
border: string;
|
|
466
|
+
};
|
|
467
|
+
fontSize: string;
|
|
468
|
+
};
|
|
469
|
+
rating: {
|
|
470
|
+
fontWeight: number;
|
|
471
|
+
size: {
|
|
472
|
+
xsmall: {
|
|
473
|
+
fontSize: string;
|
|
474
|
+
lineHeight: string;
|
|
475
|
+
};
|
|
476
|
+
small: {
|
|
477
|
+
fontSize: string;
|
|
478
|
+
lineHeight: string;
|
|
479
|
+
};
|
|
480
|
+
medium: {
|
|
481
|
+
fontSize: string;
|
|
482
|
+
lineHeight: string;
|
|
483
|
+
};
|
|
484
|
+
large: {
|
|
485
|
+
fontSize: string;
|
|
486
|
+
lineHeight: string;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
card: {
|
|
491
|
+
borderRadius: string;
|
|
492
|
+
};
|
|
493
|
+
radio: {
|
|
494
|
+
borderColor: string;
|
|
495
|
+
background: string;
|
|
496
|
+
size: {
|
|
497
|
+
small: {
|
|
498
|
+
borderWidth: string;
|
|
499
|
+
margin: string;
|
|
500
|
+
height: string;
|
|
501
|
+
active: {
|
|
502
|
+
borderWidth: string;
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
medium: {
|
|
506
|
+
borderWidth: string;
|
|
507
|
+
margin: string;
|
|
508
|
+
height: string;
|
|
509
|
+
active: {
|
|
510
|
+
borderWidth: string;
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
large: {
|
|
514
|
+
borderWidth: string;
|
|
515
|
+
margin: string;
|
|
516
|
+
height: string;
|
|
517
|
+
active: {
|
|
518
|
+
borderWidth: string;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
label: {
|
|
524
|
+
fontSize: {
|
|
525
|
+
small: string;
|
|
526
|
+
medium: string;
|
|
527
|
+
large: string;
|
|
528
|
+
};
|
|
529
|
+
lineHeight: {
|
|
530
|
+
small: string;
|
|
531
|
+
medium: string;
|
|
532
|
+
large: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
checkbox: {
|
|
536
|
+
background: string;
|
|
537
|
+
borderColor: string;
|
|
538
|
+
active: {
|
|
539
|
+
background: string;
|
|
540
|
+
};
|
|
541
|
+
size: {
|
|
542
|
+
large: {
|
|
543
|
+
width: string;
|
|
544
|
+
height: string;
|
|
545
|
+
borderRadius: string;
|
|
546
|
+
borderWidth: string;
|
|
547
|
+
margin: string;
|
|
548
|
+
icon: {
|
|
549
|
+
width: string;
|
|
550
|
+
height: string;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
medium: {
|
|
554
|
+
width: string;
|
|
555
|
+
height: string;
|
|
556
|
+
borderRadius: string;
|
|
557
|
+
borderWidth: string;
|
|
558
|
+
margin: string;
|
|
559
|
+
icon: {
|
|
560
|
+
width: string;
|
|
561
|
+
height: string;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
small: {
|
|
565
|
+
width: string;
|
|
566
|
+
height: string;
|
|
567
|
+
borderRadius: string;
|
|
568
|
+
borderWidth: string;
|
|
569
|
+
margin: string;
|
|
570
|
+
icon: {
|
|
571
|
+
width: string;
|
|
572
|
+
height: string;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
accordion: {
|
|
578
|
+
variant: {
|
|
579
|
+
box: {
|
|
580
|
+
container: {
|
|
581
|
+
border: string;
|
|
582
|
+
borderColor: string;
|
|
583
|
+
borderRadius: string;
|
|
584
|
+
padding: string;
|
|
585
|
+
};
|
|
586
|
+
summary: {
|
|
587
|
+
fontWeight: number;
|
|
588
|
+
fontSize: string;
|
|
589
|
+
lineHeight: string;
|
|
590
|
+
color: string;
|
|
591
|
+
};
|
|
592
|
+
details: {
|
|
593
|
+
margin: string;
|
|
594
|
+
};
|
|
595
|
+
icon: {
|
|
596
|
+
width: number;
|
|
597
|
+
height: number;
|
|
598
|
+
color: string;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
simple: {
|
|
602
|
+
container: {
|
|
603
|
+
borderTop: string;
|
|
604
|
+
borderBottom: string;
|
|
605
|
+
borderColor: string;
|
|
606
|
+
borderRadius: string;
|
|
607
|
+
padding: string;
|
|
608
|
+
};
|
|
609
|
+
summary: {
|
|
610
|
+
fontWeight: number;
|
|
611
|
+
fontSize: string;
|
|
612
|
+
lineHeight: string;
|
|
613
|
+
color: string;
|
|
614
|
+
};
|
|
615
|
+
details: {
|
|
616
|
+
margin: string;
|
|
617
|
+
};
|
|
618
|
+
icon: {
|
|
619
|
+
width: number;
|
|
620
|
+
height: number;
|
|
621
|
+
color: string;
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
dropdown: {
|
|
627
|
+
borderRadius: string;
|
|
628
|
+
fontSize: string;
|
|
629
|
+
fontWeight: number;
|
|
630
|
+
lineHeight: string;
|
|
631
|
+
padding: string;
|
|
632
|
+
color: string;
|
|
633
|
+
fill: string;
|
|
634
|
+
options: {
|
|
635
|
+
borderColor: string;
|
|
636
|
+
color: string;
|
|
637
|
+
};
|
|
638
|
+
};
|
|
427
639
|
};
|
|
428
640
|
}
|
|
429
641
|
interface IconProps {
|
|
@@ -493,13 +705,18 @@ declare type Filter = {
|
|
|
493
705
|
title: string;
|
|
494
706
|
columns: number;
|
|
495
707
|
isOpenByDefault?: boolean;
|
|
496
|
-
items:
|
|
708
|
+
items: string[];
|
|
497
709
|
};
|
|
498
710
|
declare type FilterChange = {
|
|
499
711
|
sectionIndex: number;
|
|
500
712
|
itemIndex: number;
|
|
501
713
|
checked?: boolean;
|
|
502
|
-
};
|
|
714
|
+
};
|
|
715
|
+
interface SearchBarOptionItem {
|
|
716
|
+
src: string;
|
|
717
|
+
price: string;
|
|
718
|
+
title: string;
|
|
719
|
+
}
|
|
503
720
|
|
|
504
721
|
interface ThemeProviderProps {
|
|
505
722
|
theme: Theme;
|
|
@@ -526,24 +743,25 @@ interface CardProps {
|
|
|
526
743
|
border?: borderProps;
|
|
527
744
|
flex?: boolean;
|
|
528
745
|
}
|
|
529
|
-
declare const _default
|
|
746
|
+
declare const _default: (({ children, backgroundColor, widthAuto, border, flex }: CardProps) => JSX.Element) & {
|
|
530
747
|
Header: ({ children }: CardSectionProps) => JSX.Element;
|
|
531
748
|
Footer: ({ children }: CardSectionProps) => JSX.Element;
|
|
532
749
|
Body: ({ children }: CardBodyProps) => JSX.Element;
|
|
533
750
|
};
|
|
534
751
|
|
|
535
|
-
declare const ButtonPrimary: ({ text, onClick, disabled, wide, size }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
752
|
+
declare const ButtonPrimary: ({ text, onClick, disabled, wide, size, type }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
536
753
|
|
|
537
|
-
declare const ButtonSecondary: ({ text, onClick, disabled, wide, size }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
754
|
+
declare const ButtonSecondary: ({ text, onClick, disabled, wide, size, className }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
538
755
|
|
|
539
756
|
declare const ButtonSecondaryOutline: ({ text, onClick, disabled, wide, size, className, }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
540
757
|
|
|
541
|
-
declare type CommonProps
|
|
758
|
+
declare type CommonProps<T> = {
|
|
542
759
|
options: DropdownOption<T>[];
|
|
543
760
|
disabled?: boolean;
|
|
544
761
|
wide?: boolean;
|
|
545
762
|
onChange: (option: DropdownOption<T>) => void;
|
|
546
763
|
label?: string;
|
|
764
|
+
sort?: boolean;
|
|
547
765
|
};
|
|
548
766
|
declare type ConditionalProps<T> = {
|
|
549
767
|
initialValue: DropdownOption<T>;
|
|
@@ -552,8 +770,8 @@ declare type ConditionalProps<T> = {
|
|
|
552
770
|
initialValue?: undefined;
|
|
553
771
|
placeHolder: string;
|
|
554
772
|
};
|
|
555
|
-
declare type SimpleDropdownProps<T> = CommonProps
|
|
556
|
-
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, onChange, }: SimpleDropdownProps<T>): JSX.Element;
|
|
773
|
+
declare type SimpleDropdownProps<T> = CommonProps<T> & ConditionalProps<T>;
|
|
774
|
+
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, }: SimpleDropdownProps<T>): JSX.Element;
|
|
557
775
|
|
|
558
776
|
interface SizeSelectorProps {
|
|
559
777
|
sizes: SizeOption[];
|
|
@@ -581,14 +799,14 @@ interface BaseButtonProps {
|
|
|
581
799
|
}
|
|
582
800
|
|
|
583
801
|
declare type BaseProps = Pick<BaseButtonProps, 'disabled' | 'type' | 'onClick'>;
|
|
584
|
-
interface TextButtonProps extends BaseProps {
|
|
802
|
+
interface TextButtonProps$1 extends BaseProps {
|
|
585
803
|
text: string;
|
|
586
804
|
LeadingIcon?: IconType;
|
|
587
805
|
TrailingIcon?: IconType;
|
|
588
806
|
iconColor?: string;
|
|
589
807
|
size?: ComponentSize;
|
|
590
808
|
}
|
|
591
|
-
declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, onClick, }: TextButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
809
|
+
declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, onClick, }: TextButtonProps$1) => _emotion_react_jsx_runtime.JSX.Element;
|
|
592
810
|
|
|
593
811
|
interface DiscountTagProps {
|
|
594
812
|
discount: number;
|
|
@@ -642,7 +860,7 @@ interface RatingProps {
|
|
|
642
860
|
reviews: number;
|
|
643
861
|
reviewsText: string;
|
|
644
862
|
}
|
|
645
|
-
declare const Rating: ({ size, reviews, reviewsText, rating, }: RatingProps) =>
|
|
863
|
+
declare const Rating: ({ size, reviews, reviewsText, rating, }: RatingProps) => JSX.Element;
|
|
646
864
|
|
|
647
865
|
interface FitPredictorProps {
|
|
648
866
|
onClick: () => void;
|
|
@@ -678,65 +896,16 @@ interface TooltipProps {
|
|
|
678
896
|
}
|
|
679
897
|
declare const Tooltip: ({ children, position, text, align, onClick, header, }: TooltipProps) => JSX.Element;
|
|
680
898
|
|
|
681
|
-
interface
|
|
682
|
-
children: React.ReactNode;
|
|
683
|
-
}
|
|
684
|
-
declare type InternalProps = {
|
|
685
|
-
staticProp?: boolean;
|
|
686
|
-
unmount?: never;
|
|
687
|
-
} | {
|
|
688
|
-
staticProp?: never;
|
|
689
|
-
unmount?: boolean;
|
|
690
|
-
};
|
|
691
|
-
declare type StyleProps$1 = {
|
|
692
|
-
as: ElementType<any>;
|
|
693
|
-
className?: string;
|
|
694
|
-
} | {
|
|
695
|
-
as?: undefined;
|
|
696
|
-
className?: never;
|
|
697
|
-
};
|
|
698
|
-
declare type AccordionPanelProps = CommonProps$1 & InternalProps & StyleProps$1;
|
|
699
|
-
|
|
700
|
-
interface AccordionButtonProps {
|
|
701
|
-
disabled?: boolean;
|
|
702
|
-
as?: ElementType<any>;
|
|
703
|
-
className?: string;
|
|
704
|
-
children: ReactNode;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
interface CommonProps {
|
|
708
|
-
children: React.ReactNode;
|
|
709
|
-
defaultOpen?: boolean;
|
|
710
|
-
}
|
|
711
|
-
declare type StyleProps = {
|
|
712
|
-
as: ElementType<any>;
|
|
713
|
-
className?: string;
|
|
714
|
-
} | {
|
|
715
|
-
as?: undefined;
|
|
716
|
-
className?: never;
|
|
717
|
-
};
|
|
718
|
-
declare type AccordionProps = CommonProps & StyleProps;
|
|
719
|
-
declare const _default: (({ defaultOpen, as, className, children }: AccordionProps) => _emotion_react_jsx_runtime.JSX.Element) & {
|
|
720
|
-
Button: ({ disabled, as, className, children }: AccordionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
721
|
-
Panel: ({ as, staticProp, unmount, children, className }: AccordionPanelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
722
|
-
};
|
|
723
|
-
|
|
724
|
-
interface AccordionBoxProps {
|
|
725
|
-
title: string;
|
|
726
|
-
text: string;
|
|
899
|
+
interface AccordionProps {
|
|
727
900
|
defaultOpen?: boolean;
|
|
901
|
+
variant: 'simple' | 'box';
|
|
902
|
+
header: ReactNode;
|
|
903
|
+
content: ReactNode;
|
|
728
904
|
disabled?: boolean;
|
|
905
|
+
openIcon: IconType;
|
|
906
|
+
closeIcon: IconType;
|
|
729
907
|
}
|
|
730
|
-
declare const
|
|
731
|
-
|
|
732
|
-
interface AccordionIconProps {
|
|
733
|
-
title: string;
|
|
734
|
-
text: string;
|
|
735
|
-
leadingIcon: React.ReactNode;
|
|
736
|
-
defaultOpen?: boolean;
|
|
737
|
-
disabled?: boolean;
|
|
738
|
-
}
|
|
739
|
-
declare const AccordionIcon: ({ title, text, leadingIcon, defaultOpen, disabled, }: AccordionIconProps) => JSX.Element;
|
|
908
|
+
declare const Accordion: ({ header, content, defaultOpen, variant, disabled, openIcon, closeIcon, }: AccordionProps) => JSX.Element;
|
|
740
909
|
|
|
741
910
|
interface CheckboxProps {
|
|
742
911
|
disabled?: boolean;
|
|
@@ -745,8 +914,10 @@ interface CheckboxProps {
|
|
|
745
914
|
text: string;
|
|
746
915
|
checked?: boolean;
|
|
747
916
|
id: string;
|
|
917
|
+
backgroundColor?: string;
|
|
918
|
+
variant: 'primary' | 'secondary';
|
|
748
919
|
}
|
|
749
|
-
declare const Checkbox: ({ disabled, onChange, size, text, checked, id, }: CheckboxProps) => JSX.Element;
|
|
920
|
+
declare const Checkbox: ({ disabled, onChange, size, text, checked, id, variant, }: CheckboxProps) => JSX.Element;
|
|
750
921
|
|
|
751
922
|
interface RadioGroupInputProps {
|
|
752
923
|
name: string;
|
|
@@ -850,13 +1021,6 @@ declare const Input: {
|
|
|
850
1021
|
SimplePlusIcon: ({ Icon, ...rest }: BasePlusIconProps) => JSX.Element;
|
|
851
1022
|
};
|
|
852
1023
|
|
|
853
|
-
declare const index_d$1_Input: typeof Input;
|
|
854
|
-
declare namespace index_d$1 {
|
|
855
|
-
export {
|
|
856
|
-
index_d$1_Input as Input,
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
|
|
860
1024
|
interface PaymentMethodsProps {
|
|
861
1025
|
Icon: IconType;
|
|
862
1026
|
width: string;
|
|
@@ -1022,17 +1186,6 @@ interface AmazonPaypalBtnProps {
|
|
|
1022
1186
|
declare const AmazonButton: ({ onClick }: AmazonPaypalBtnProps) => JSX.Element;
|
|
1023
1187
|
declare const PaypalButton: ({ onClick }: AmazonPaypalBtnProps) => JSX.Element;
|
|
1024
1188
|
|
|
1025
|
-
type AmazonPaypalButtons_d_AmazonPaypalBtnProps = AmazonPaypalBtnProps;
|
|
1026
|
-
declare const AmazonPaypalButtons_d_AmazonButton: typeof AmazonButton;
|
|
1027
|
-
declare const AmazonPaypalButtons_d_PaypalButton: typeof PaypalButton;
|
|
1028
|
-
declare namespace AmazonPaypalButtons_d {
|
|
1029
|
-
export {
|
|
1030
|
-
AmazonPaypalButtons_d_AmazonPaypalBtnProps as AmazonPaypalBtnProps,
|
|
1031
|
-
AmazonPaypalButtons_d_AmazonButton as AmazonButton,
|
|
1032
|
-
AmazonPaypalButtons_d_PaypalButton as PaypalButton,
|
|
1033
|
-
};
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
1189
|
interface CrossSellCheckboxProps extends rightToLeftProps {
|
|
1037
1190
|
imageURL: string;
|
|
1038
1191
|
title: string;
|
|
@@ -1086,7 +1239,7 @@ interface StarListProps {
|
|
|
1086
1239
|
starsNumber: number;
|
|
1087
1240
|
fill: string;
|
|
1088
1241
|
}
|
|
1089
|
-
declare const StarList: ({ rating, starsNumber, fill, size, }: StarListProps) =>
|
|
1242
|
+
declare const StarList: ({ rating, starsNumber, fill, size, }: StarListProps) => JSX.Element;
|
|
1090
1243
|
|
|
1091
1244
|
interface DrawerProps {
|
|
1092
1245
|
children: React.ReactNode;
|
|
@@ -1111,4 +1264,138 @@ interface SpinnerProps {
|
|
|
1111
1264
|
}
|
|
1112
1265
|
declare const Spinner: ({ fill, background, animationDuration, complete, completeIconStroke, size, }: SpinnerProps) => JSX.Element;
|
|
1113
1266
|
|
|
1114
|
-
|
|
1267
|
+
interface TagsProps {
|
|
1268
|
+
color?: string;
|
|
1269
|
+
items: string[];
|
|
1270
|
+
onCloseClick: (index: number) => void;
|
|
1271
|
+
}
|
|
1272
|
+
declare const Tags: ({ color, items, onCloseClick }: TagsProps) => JSX.Element;
|
|
1273
|
+
|
|
1274
|
+
declare type FilteringDropdownProps<T> = {
|
|
1275
|
+
options: DropdownOption<T>[];
|
|
1276
|
+
disabled?: boolean;
|
|
1277
|
+
wide?: boolean;
|
|
1278
|
+
onChange: (options: DropdownOption<T>[]) => void;
|
|
1279
|
+
filter?: boolean;
|
|
1280
|
+
sliceAfter?: number;
|
|
1281
|
+
placeHolder: string;
|
|
1282
|
+
};
|
|
1283
|
+
declare function FilteringDropdown<T>({ options, disabled, placeHolder, wide, sliceAfter, filter, onChange, }: FilteringDropdownProps<T>): JSX.Element;
|
|
1284
|
+
|
|
1285
|
+
interface PaginationProps {
|
|
1286
|
+
from: number;
|
|
1287
|
+
to: number;
|
|
1288
|
+
onChange: (page: number) => void;
|
|
1289
|
+
currentPage?: number;
|
|
1290
|
+
underlineActive?: boolean;
|
|
1291
|
+
boldActive?: boolean;
|
|
1292
|
+
disabled?: boolean;
|
|
1293
|
+
}
|
|
1294
|
+
declare const Pagination: ({ from, to, currentPage, onChange, underlineActive, boldActive, disabled, }: PaginationProps) => JSX.Element;
|
|
1295
|
+
|
|
1296
|
+
declare const Text: FC<TextProps>;
|
|
1297
|
+
|
|
1298
|
+
declare type TextHeroProps = {
|
|
1299
|
+
variant: 'hero1' | 'hero2' | 'hero3';
|
|
1300
|
+
weight?: 'heavy' | 'bold' | 'demi';
|
|
1301
|
+
size?: 'regular';
|
|
1302
|
+
underline?: never;
|
|
1303
|
+
disabled?: never;
|
|
1304
|
+
wide?: never;
|
|
1305
|
+
original?: never;
|
|
1306
|
+
allCaps?: never;
|
|
1307
|
+
};
|
|
1308
|
+
declare type TextDisplayProps = {
|
|
1309
|
+
variant: 'display1' | 'display2';
|
|
1310
|
+
weight?: 'bold' | 'demi';
|
|
1311
|
+
size?: 'regular';
|
|
1312
|
+
underline?: never;
|
|
1313
|
+
disabled?: never;
|
|
1314
|
+
wide?: never;
|
|
1315
|
+
original?: never;
|
|
1316
|
+
allCaps?: never;
|
|
1317
|
+
};
|
|
1318
|
+
declare type TextHeadingProps = {
|
|
1319
|
+
variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
|
|
1320
|
+
weight: 'bold' | 'demi' | 'regular';
|
|
1321
|
+
size?: 'regular';
|
|
1322
|
+
underline?: never;
|
|
1323
|
+
disabled?: never;
|
|
1324
|
+
wide?: never;
|
|
1325
|
+
original?: never;
|
|
1326
|
+
allCaps?: never;
|
|
1327
|
+
};
|
|
1328
|
+
declare type TextBodyProps = {
|
|
1329
|
+
variant: 'body';
|
|
1330
|
+
size?: 'regular' | 'small';
|
|
1331
|
+
weight?: 'bold' | 'demi' | 'regular';
|
|
1332
|
+
underline?: never;
|
|
1333
|
+
disabled?: never;
|
|
1334
|
+
wide?: never;
|
|
1335
|
+
original?: never;
|
|
1336
|
+
allCaps?: never;
|
|
1337
|
+
};
|
|
1338
|
+
declare type TextButtonProps = {
|
|
1339
|
+
variant: 'button';
|
|
1340
|
+
size: 'large' | 'regular' | 'small';
|
|
1341
|
+
weight: 'bold' | 'demi';
|
|
1342
|
+
underline?: never;
|
|
1343
|
+
disabled?: never;
|
|
1344
|
+
wide?: boolean;
|
|
1345
|
+
original?: never;
|
|
1346
|
+
allCaps?: never;
|
|
1347
|
+
};
|
|
1348
|
+
declare type TextPricingProps = {
|
|
1349
|
+
variant: 'pricing';
|
|
1350
|
+
size: 'large' | 'medium' | 'regular' | 'small';
|
|
1351
|
+
weight?: never;
|
|
1352
|
+
underline?: never;
|
|
1353
|
+
disabled?: never;
|
|
1354
|
+
wide?: never;
|
|
1355
|
+
original?: boolean;
|
|
1356
|
+
allCaps?: never;
|
|
1357
|
+
};
|
|
1358
|
+
declare type TextLinkProps = {
|
|
1359
|
+
variant: 'link';
|
|
1360
|
+
weight?: 'demi' | 'regular';
|
|
1361
|
+
size?: 'regular' | 'small';
|
|
1362
|
+
underline?: boolean;
|
|
1363
|
+
disabled?: boolean;
|
|
1364
|
+
wide?: never;
|
|
1365
|
+
original?: never;
|
|
1366
|
+
allCaps?: never;
|
|
1367
|
+
} & AnchorHTMLAttributes<'a'>;
|
|
1368
|
+
declare type TextLabelProps = {
|
|
1369
|
+
variant: 'label';
|
|
1370
|
+
weight?: 'regular' | 'demi';
|
|
1371
|
+
size?: 'regular' | 'small';
|
|
1372
|
+
underline?: never;
|
|
1373
|
+
disabled?: boolean;
|
|
1374
|
+
wide?: never;
|
|
1375
|
+
original?: never;
|
|
1376
|
+
allCaps?: never;
|
|
1377
|
+
} & LabelHTMLAttributes<'label'>;
|
|
1378
|
+
declare type TextTagProps = {
|
|
1379
|
+
variant: 'tag';
|
|
1380
|
+
size: 'regular' | 'small' | 'x-small';
|
|
1381
|
+
weight?: 'regular' | 'demi' | 'bold';
|
|
1382
|
+
underline?: never;
|
|
1383
|
+
disabled?: boolean;
|
|
1384
|
+
wide?: never;
|
|
1385
|
+
original?: never;
|
|
1386
|
+
allCaps?: boolean;
|
|
1387
|
+
};
|
|
1388
|
+
declare type TextProps = AriaAttributes & {
|
|
1389
|
+
style?: CSSProperties;
|
|
1390
|
+
} & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
|
|
1391
|
+
|
|
1392
|
+
interface SearchBarProps {
|
|
1393
|
+
suggestions: SearchBarOptionItem$1[];
|
|
1394
|
+
resultOptions: SearchBarOptionItem$1[];
|
|
1395
|
+
onChange: (text: string) => void;
|
|
1396
|
+
onSearch: (term: string) => void;
|
|
1397
|
+
resultsPanelDataTestId?: string;
|
|
1398
|
+
}
|
|
1399
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, }: SearchBarProps) => JSX.Element;
|
|
1400
|
+
|
|
1401
|
+
export { Accordion, AmazonButton, Breakpoints, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, MultiColorPicker, OfferBanner, OrderBar, Pagination, Pattern, PaymentMethod, PaypalButton, PriceLabel, ProductGallery, ProgressBar, RadioGroupInput, RadioGroupOption, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spinner, StarList, Text, TextButton, Theme, ThemeProvider, Timer, Tooltip, Totals, WithTestId };
|