@trafilea/afrodita-components 2.3.4 → 3.0.2-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 +507 -108
- package/build/index.esm.js +1383 -832
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1375 -819
- package/build/index.js.map +1 -1
- package/package.json +7 -6
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
|
|
|
@@ -59,15 +60,19 @@ declare const Loading: ({ height, width, fill, backgroundColor }: LoadingProps)
|
|
|
59
60
|
|
|
60
61
|
declare const Shapermint: ({ height, width }: IconProps) => JSX.Element;
|
|
61
62
|
|
|
63
|
+
declare const McAfee: ({ height, width }: IconProps) => JSX.Element;
|
|
64
|
+
|
|
62
65
|
type Other_LoadingProps = LoadingProps;
|
|
63
66
|
declare const Other_Loading: typeof Loading;
|
|
64
67
|
declare const Other_Shapermint: typeof Shapermint;
|
|
68
|
+
declare const Other_McAfee: typeof McAfee;
|
|
65
69
|
declare namespace Other {
|
|
66
70
|
export {
|
|
67
71
|
FitPredictor$1 as FitPredictor,
|
|
68
72
|
Other_LoadingProps as LoadingProps,
|
|
69
73
|
Other_Loading as Loading,
|
|
70
74
|
Other_Shapermint as Shapermint,
|
|
75
|
+
Other_McAfee as McAfee,
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
|
|
@@ -295,10 +300,10 @@ declare enum CardSectionType {
|
|
|
295
300
|
Footer = 1
|
|
296
301
|
}
|
|
297
302
|
declare enum ComponentSize {
|
|
298
|
-
Large =
|
|
299
|
-
Medium =
|
|
300
|
-
Small =
|
|
301
|
-
XSmall =
|
|
303
|
+
Large = "large",
|
|
304
|
+
Medium = "medium",
|
|
305
|
+
Small = "small",
|
|
306
|
+
XSmall = "xsmall"
|
|
302
307
|
}
|
|
303
308
|
declare enum ComponentPosition {
|
|
304
309
|
Top = 0,
|
|
@@ -312,46 +317,324 @@ declare enum InputValidationType {
|
|
|
312
317
|
Empty = 2
|
|
313
318
|
}
|
|
314
319
|
|
|
320
|
+
interface Breakpoints {
|
|
321
|
+
mobile: number;
|
|
322
|
+
desktop: number;
|
|
323
|
+
}
|
|
315
324
|
interface Theme {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
325
|
+
name: string;
|
|
326
|
+
fontSizes: number[];
|
|
327
|
+
fontWeights: number[];
|
|
328
|
+
lineHeights: number[];
|
|
329
|
+
mediaQueries: Breakpoints;
|
|
330
|
+
colors: {
|
|
331
|
+
primary: string;
|
|
332
|
+
secondary: string;
|
|
333
|
+
black: string;
|
|
334
|
+
white: string;
|
|
335
|
+
neutral10: string;
|
|
336
|
+
neutral50: string;
|
|
337
|
+
neutral100: string;
|
|
338
|
+
neutral150: string;
|
|
339
|
+
neutral200: string;
|
|
340
|
+
neutral250: string;
|
|
341
|
+
neutral300: string;
|
|
342
|
+
neutral350: string;
|
|
343
|
+
neutral400: string;
|
|
344
|
+
neutral450: string;
|
|
345
|
+
neutral500: string;
|
|
346
|
+
neutral550: string;
|
|
347
|
+
neutral600: string;
|
|
348
|
+
neutral650: string;
|
|
349
|
+
neutral700: string;
|
|
350
|
+
neutral750: string;
|
|
351
|
+
neutral800: string;
|
|
352
|
+
neutral850: string;
|
|
353
|
+
neutral900: string;
|
|
354
|
+
neutral950: string;
|
|
355
|
+
neutral990: string;
|
|
356
|
+
semantic: {
|
|
357
|
+
error: string;
|
|
358
|
+
success: string;
|
|
321
359
|
};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
360
|
+
border: {
|
|
361
|
+
disabled: string;
|
|
362
|
+
highlight: string;
|
|
363
|
+
};
|
|
364
|
+
background: {
|
|
365
|
+
disabled: string;
|
|
366
|
+
};
|
|
367
|
+
text: {
|
|
368
|
+
body: string;
|
|
369
|
+
disabled: string;
|
|
326
370
|
};
|
|
327
|
-
};
|
|
328
|
-
shades: {
|
|
329
|
-
white: string;
|
|
330
|
-
gray010: string;
|
|
331
|
-
gray050: string;
|
|
332
|
-
gray100: string;
|
|
333
|
-
gray150: string;
|
|
334
|
-
gray200: string;
|
|
335
|
-
gray250: string;
|
|
336
|
-
gray300: string;
|
|
337
|
-
gray350: string;
|
|
338
|
-
gray400: string;
|
|
339
|
-
gray450: string;
|
|
340
|
-
gray500: string;
|
|
341
|
-
gray550: string;
|
|
342
|
-
gray600: string;
|
|
343
|
-
gray650: string;
|
|
344
|
-
gray700: string;
|
|
345
|
-
gray750: string;
|
|
346
|
-
gray800: string;
|
|
347
|
-
gray850: string;
|
|
348
|
-
gray900: string;
|
|
349
|
-
gray950: string;
|
|
350
|
-
gray990: string;
|
|
351
371
|
};
|
|
352
372
|
text: {
|
|
353
373
|
weight: {
|
|
374
|
+
heavy: number;
|
|
354
375
|
bold: number;
|
|
376
|
+
demi: number;
|
|
377
|
+
medium: number;
|
|
378
|
+
regular: number;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
component: {
|
|
382
|
+
button: {
|
|
383
|
+
border: string;
|
|
384
|
+
borderRadius: string;
|
|
385
|
+
fontWeight: number;
|
|
386
|
+
size: {
|
|
387
|
+
small: {
|
|
388
|
+
fontSize: string;
|
|
389
|
+
padding: string;
|
|
390
|
+
};
|
|
391
|
+
medium: {
|
|
392
|
+
fontSize: string;
|
|
393
|
+
padding: string;
|
|
394
|
+
};
|
|
395
|
+
large: {
|
|
396
|
+
fontSize: string;
|
|
397
|
+
padding: string;
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
primary: {
|
|
401
|
+
active: {
|
|
402
|
+
backgroundColor: string;
|
|
403
|
+
color: string;
|
|
404
|
+
};
|
|
405
|
+
hover: {
|
|
406
|
+
backgroundColor: string;
|
|
407
|
+
color: string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
secondary: {
|
|
411
|
+
active: {
|
|
412
|
+
backgroundColor: string;
|
|
413
|
+
color: string;
|
|
414
|
+
};
|
|
415
|
+
hover: {
|
|
416
|
+
backgroundColor: string;
|
|
417
|
+
color: string;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
input: {
|
|
422
|
+
background: string;
|
|
423
|
+
color: string;
|
|
424
|
+
placeholderColor: string;
|
|
425
|
+
borderRadius: string;
|
|
426
|
+
fontSize: string;
|
|
427
|
+
fontWeight: number;
|
|
428
|
+
padding: string;
|
|
429
|
+
lineHeight: string;
|
|
430
|
+
border: string;
|
|
431
|
+
boxShadow: string;
|
|
432
|
+
};
|
|
433
|
+
inputCustom: {
|
|
434
|
+
button: {
|
|
435
|
+
borderRadius: string;
|
|
436
|
+
};
|
|
437
|
+
input: {
|
|
438
|
+
borderRadius: string;
|
|
439
|
+
};
|
|
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
|
+
};
|
|
355
638
|
};
|
|
356
639
|
};
|
|
357
640
|
}
|
|
@@ -422,13 +705,18 @@ declare type Filter = {
|
|
|
422
705
|
title: string;
|
|
423
706
|
columns: number;
|
|
424
707
|
isOpenByDefault?: boolean;
|
|
425
|
-
items:
|
|
708
|
+
items: string[];
|
|
426
709
|
};
|
|
427
710
|
declare type FilterChange = {
|
|
428
711
|
sectionIndex: number;
|
|
429
712
|
itemIndex: number;
|
|
430
713
|
checked?: boolean;
|
|
431
|
-
};
|
|
714
|
+
};
|
|
715
|
+
interface SearchBarOptionItem {
|
|
716
|
+
src: string;
|
|
717
|
+
price: string;
|
|
718
|
+
title: string;
|
|
719
|
+
}
|
|
432
720
|
|
|
433
721
|
interface ThemeProviderProps {
|
|
434
722
|
theme: Theme;
|
|
@@ -455,24 +743,25 @@ interface CardProps {
|
|
|
455
743
|
border?: borderProps;
|
|
456
744
|
flex?: boolean;
|
|
457
745
|
}
|
|
458
|
-
declare const _default
|
|
746
|
+
declare const _default: (({ children, backgroundColor, widthAuto, border, flex }: CardProps) => JSX.Element) & {
|
|
459
747
|
Header: ({ children }: CardSectionProps) => JSX.Element;
|
|
460
748
|
Footer: ({ children }: CardSectionProps) => JSX.Element;
|
|
461
749
|
Body: ({ children }: CardBodyProps) => JSX.Element;
|
|
462
750
|
};
|
|
463
751
|
|
|
464
|
-
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;
|
|
465
753
|
|
|
466
|
-
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;
|
|
467
755
|
|
|
468
756
|
declare const ButtonSecondaryOutline: ({ text, onClick, disabled, wide, size, className, }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
469
757
|
|
|
470
|
-
declare type CommonProps
|
|
758
|
+
declare type CommonProps<T> = {
|
|
471
759
|
options: DropdownOption<T>[];
|
|
472
760
|
disabled?: boolean;
|
|
473
761
|
wide?: boolean;
|
|
474
762
|
onChange: (option: DropdownOption<T>) => void;
|
|
475
763
|
label?: string;
|
|
764
|
+
sort?: boolean;
|
|
476
765
|
};
|
|
477
766
|
declare type ConditionalProps<T> = {
|
|
478
767
|
initialValue: DropdownOption<T>;
|
|
@@ -481,8 +770,8 @@ declare type ConditionalProps<T> = {
|
|
|
481
770
|
initialValue?: undefined;
|
|
482
771
|
placeHolder: string;
|
|
483
772
|
};
|
|
484
|
-
declare type SimpleDropdownProps<T> = CommonProps
|
|
485
|
-
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;
|
|
486
775
|
|
|
487
776
|
interface SizeSelectorProps {
|
|
488
777
|
sizes: SizeOption[];
|
|
@@ -510,14 +799,14 @@ interface BaseButtonProps {
|
|
|
510
799
|
}
|
|
511
800
|
|
|
512
801
|
declare type BaseProps = Pick<BaseButtonProps, 'disabled' | 'type' | 'onClick'>;
|
|
513
|
-
interface TextButtonProps extends BaseProps {
|
|
802
|
+
interface TextButtonProps$1 extends BaseProps {
|
|
514
803
|
text: string;
|
|
515
804
|
LeadingIcon?: IconType;
|
|
516
805
|
TrailingIcon?: IconType;
|
|
517
806
|
iconColor?: string;
|
|
518
807
|
size?: ComponentSize;
|
|
519
808
|
}
|
|
520
|
-
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;
|
|
521
810
|
|
|
522
811
|
interface DiscountTagProps {
|
|
523
812
|
discount: number;
|
|
@@ -571,7 +860,7 @@ interface RatingProps {
|
|
|
571
860
|
reviews: number;
|
|
572
861
|
reviewsText: string;
|
|
573
862
|
}
|
|
574
|
-
declare const Rating: ({ size, reviews, reviewsText, rating, }: RatingProps) =>
|
|
863
|
+
declare const Rating: ({ size, reviews, reviewsText, rating, }: RatingProps) => JSX.Element;
|
|
575
864
|
|
|
576
865
|
interface FitPredictorProps {
|
|
577
866
|
onClick: () => void;
|
|
@@ -607,65 +896,16 @@ interface TooltipProps {
|
|
|
607
896
|
}
|
|
608
897
|
declare const Tooltip: ({ children, position, text, align, onClick, header, }: TooltipProps) => JSX.Element;
|
|
609
898
|
|
|
610
|
-
interface
|
|
611
|
-
children: React.ReactNode;
|
|
612
|
-
}
|
|
613
|
-
declare type InternalProps = {
|
|
614
|
-
staticProp?: boolean;
|
|
615
|
-
unmount?: never;
|
|
616
|
-
} | {
|
|
617
|
-
staticProp?: never;
|
|
618
|
-
unmount?: boolean;
|
|
619
|
-
};
|
|
620
|
-
declare type StyleProps$1 = {
|
|
621
|
-
as: ElementType<any>;
|
|
622
|
-
className?: string;
|
|
623
|
-
} | {
|
|
624
|
-
as?: undefined;
|
|
625
|
-
className?: never;
|
|
626
|
-
};
|
|
627
|
-
declare type AccordionPanelProps = CommonProps$1 & InternalProps & StyleProps$1;
|
|
628
|
-
|
|
629
|
-
interface AccordionButtonProps {
|
|
630
|
-
disabled?: boolean;
|
|
631
|
-
as?: ElementType<any>;
|
|
632
|
-
className?: string;
|
|
633
|
-
children: ReactNode;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
interface CommonProps {
|
|
637
|
-
children: React.ReactNode;
|
|
638
|
-
defaultOpen?: boolean;
|
|
639
|
-
}
|
|
640
|
-
declare type StyleProps = {
|
|
641
|
-
as: ElementType<any>;
|
|
642
|
-
className?: string;
|
|
643
|
-
} | {
|
|
644
|
-
as?: undefined;
|
|
645
|
-
className?: never;
|
|
646
|
-
};
|
|
647
|
-
declare type AccordionProps = CommonProps & StyleProps;
|
|
648
|
-
declare const _default: (({ defaultOpen, as, className, children }: AccordionProps) => _emotion_react_jsx_runtime.JSX.Element) & {
|
|
649
|
-
Button: ({ disabled, as, className, children }: AccordionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
650
|
-
Panel: ({ as, staticProp, unmount, children, className }: AccordionPanelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
interface AccordionBoxProps {
|
|
654
|
-
title: string;
|
|
655
|
-
text: string;
|
|
656
|
-
defaultOpen?: boolean;
|
|
657
|
-
disabled?: boolean;
|
|
658
|
-
}
|
|
659
|
-
declare const AccordionBox: ({ title, text, defaultOpen, disabled }: AccordionBoxProps) => JSX.Element;
|
|
660
|
-
|
|
661
|
-
interface AccordionIconProps {
|
|
662
|
-
title: string;
|
|
663
|
-
text: string;
|
|
664
|
-
leadingIcon: React.ReactNode;
|
|
899
|
+
interface AccordionProps {
|
|
665
900
|
defaultOpen?: boolean;
|
|
901
|
+
variant: 'simple' | 'box';
|
|
902
|
+
header: ReactNode;
|
|
903
|
+
content: ReactNode;
|
|
666
904
|
disabled?: boolean;
|
|
905
|
+
openIcon: IconType;
|
|
906
|
+
closeIcon: IconType;
|
|
667
907
|
}
|
|
668
|
-
declare const
|
|
908
|
+
declare const Accordion: ({ header, content, defaultOpen, variant, disabled, openIcon, closeIcon, }: AccordionProps) => JSX.Element;
|
|
669
909
|
|
|
670
910
|
interface CheckboxProps {
|
|
671
911
|
disabled?: boolean;
|
|
@@ -674,8 +914,10 @@ interface CheckboxProps {
|
|
|
674
914
|
text: string;
|
|
675
915
|
checked?: boolean;
|
|
676
916
|
id: string;
|
|
917
|
+
backgroundColor?: string;
|
|
918
|
+
variant: 'primary' | 'secondary';
|
|
677
919
|
}
|
|
678
|
-
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;
|
|
679
921
|
|
|
680
922
|
interface RadioGroupInputProps {
|
|
681
923
|
name: string;
|
|
@@ -1015,6 +1257,163 @@ interface StarListProps {
|
|
|
1015
1257
|
starsNumber: number;
|
|
1016
1258
|
fill: string;
|
|
1017
1259
|
}
|
|
1018
|
-
declare const StarList: ({ rating, starsNumber, fill, size, }: StarListProps) =>
|
|
1260
|
+
declare const StarList: ({ rating, starsNumber, fill, size, }: StarListProps) => JSX.Element;
|
|
1261
|
+
|
|
1262
|
+
interface DrawerProps {
|
|
1263
|
+
children: React.ReactNode;
|
|
1264
|
+
isOpen: boolean;
|
|
1265
|
+
onClose?: () => void;
|
|
1266
|
+
onOpen?: () => void;
|
|
1267
|
+
onClickOutside?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1268
|
+
backgroundColor?: string;
|
|
1269
|
+
backdropColor?: string;
|
|
1270
|
+
position?: 'left' | 'right';
|
|
1271
|
+
width?: string;
|
|
1272
|
+
}
|
|
1273
|
+
declare const Drawer: ({ children, isOpen, onClose, onOpen, backgroundColor, backdropColor, position, width, onClickOutside, }: DrawerProps) => JSX.Element | null;
|
|
1274
|
+
|
|
1275
|
+
interface SpinnerProps {
|
|
1276
|
+
fill: string;
|
|
1277
|
+
background: string;
|
|
1278
|
+
animationDuration?: number;
|
|
1279
|
+
complete?: boolean;
|
|
1280
|
+
completeIconStroke?: number;
|
|
1281
|
+
size?: string;
|
|
1282
|
+
}
|
|
1283
|
+
declare const Spinner: ({ fill, background, animationDuration, complete, completeIconStroke, size, }: SpinnerProps) => JSX.Element;
|
|
1284
|
+
|
|
1285
|
+
interface TagsProps {
|
|
1286
|
+
color?: string;
|
|
1287
|
+
items: string[];
|
|
1288
|
+
onCloseClick: (index: number) => void;
|
|
1289
|
+
}
|
|
1290
|
+
declare const Tags: ({ color, items, onCloseClick }: TagsProps) => JSX.Element;
|
|
1291
|
+
|
|
1292
|
+
declare type FilteringDropdownProps<T> = {
|
|
1293
|
+
options: DropdownOption<T>[];
|
|
1294
|
+
disabled?: boolean;
|
|
1295
|
+
wide?: boolean;
|
|
1296
|
+
onChange: (options: DropdownOption<T>[]) => void;
|
|
1297
|
+
filter?: boolean;
|
|
1298
|
+
sliceAfter?: number;
|
|
1299
|
+
placeHolder: string;
|
|
1300
|
+
};
|
|
1301
|
+
declare function FilteringDropdown<T>({ options, disabled, placeHolder, wide, sliceAfter, filter, onChange, }: FilteringDropdownProps<T>): JSX.Element;
|
|
1302
|
+
|
|
1303
|
+
interface PaginationProps {
|
|
1304
|
+
from: number;
|
|
1305
|
+
to: number;
|
|
1306
|
+
onChange: (page: number) => void;
|
|
1307
|
+
currentPage?: number;
|
|
1308
|
+
underlineActive?: boolean;
|
|
1309
|
+
boldActive?: boolean;
|
|
1310
|
+
disabled?: boolean;
|
|
1311
|
+
}
|
|
1312
|
+
declare const Pagination: ({ from, to, currentPage, onChange, underlineActive, boldActive, disabled, }: PaginationProps) => JSX.Element;
|
|
1313
|
+
|
|
1314
|
+
declare const Text: FC<TextProps>;
|
|
1315
|
+
|
|
1316
|
+
declare type TextHeroProps = {
|
|
1317
|
+
variant: 'hero1' | 'hero2' | 'hero3';
|
|
1318
|
+
weight?: 'heavy' | 'bold' | 'demi';
|
|
1319
|
+
size?: 'regular';
|
|
1320
|
+
underline?: never;
|
|
1321
|
+
disabled?: never;
|
|
1322
|
+
wide?: never;
|
|
1323
|
+
original?: never;
|
|
1324
|
+
allCaps?: never;
|
|
1325
|
+
};
|
|
1326
|
+
declare type TextDisplayProps = {
|
|
1327
|
+
variant: 'display1' | 'display2';
|
|
1328
|
+
weight?: 'bold' | 'demi';
|
|
1329
|
+
size?: 'regular';
|
|
1330
|
+
underline?: never;
|
|
1331
|
+
disabled?: never;
|
|
1332
|
+
wide?: never;
|
|
1333
|
+
original?: never;
|
|
1334
|
+
allCaps?: never;
|
|
1335
|
+
};
|
|
1336
|
+
declare type TextHeadingProps = {
|
|
1337
|
+
variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
|
|
1338
|
+
weight: 'bold' | 'demi' | 'regular';
|
|
1339
|
+
size?: 'regular';
|
|
1340
|
+
underline?: never;
|
|
1341
|
+
disabled?: never;
|
|
1342
|
+
wide?: never;
|
|
1343
|
+
original?: never;
|
|
1344
|
+
allCaps?: never;
|
|
1345
|
+
};
|
|
1346
|
+
declare type TextBodyProps = {
|
|
1347
|
+
variant: 'body';
|
|
1348
|
+
size?: 'regular' | 'small';
|
|
1349
|
+
weight?: 'bold' | 'demi' | 'regular';
|
|
1350
|
+
underline?: never;
|
|
1351
|
+
disabled?: never;
|
|
1352
|
+
wide?: never;
|
|
1353
|
+
original?: never;
|
|
1354
|
+
allCaps?: never;
|
|
1355
|
+
};
|
|
1356
|
+
declare type TextButtonProps = {
|
|
1357
|
+
variant: 'button';
|
|
1358
|
+
size: 'large' | 'regular' | 'small';
|
|
1359
|
+
weight: 'bold' | 'demi';
|
|
1360
|
+
underline?: never;
|
|
1361
|
+
disabled?: never;
|
|
1362
|
+
wide?: boolean;
|
|
1363
|
+
original?: never;
|
|
1364
|
+
allCaps?: never;
|
|
1365
|
+
};
|
|
1366
|
+
declare type TextPricingProps = {
|
|
1367
|
+
variant: 'pricing';
|
|
1368
|
+
size: 'large' | 'medium' | 'regular' | 'small';
|
|
1369
|
+
weight?: never;
|
|
1370
|
+
underline?: never;
|
|
1371
|
+
disabled?: never;
|
|
1372
|
+
wide?: never;
|
|
1373
|
+
original?: boolean;
|
|
1374
|
+
allCaps?: never;
|
|
1375
|
+
};
|
|
1376
|
+
declare type TextLinkProps = {
|
|
1377
|
+
variant: 'link';
|
|
1378
|
+
weight?: 'demi' | 'regular';
|
|
1379
|
+
size?: 'regular' | 'small';
|
|
1380
|
+
underline?: boolean;
|
|
1381
|
+
disabled?: boolean;
|
|
1382
|
+
wide?: never;
|
|
1383
|
+
original?: never;
|
|
1384
|
+
allCaps?: never;
|
|
1385
|
+
} & AnchorHTMLAttributes<'a'>;
|
|
1386
|
+
declare type TextLabelProps = {
|
|
1387
|
+
variant: 'label';
|
|
1388
|
+
weight?: 'regular' | 'demi';
|
|
1389
|
+
size?: 'regular' | 'small';
|
|
1390
|
+
underline?: never;
|
|
1391
|
+
disabled?: boolean;
|
|
1392
|
+
wide?: never;
|
|
1393
|
+
original?: never;
|
|
1394
|
+
allCaps?: never;
|
|
1395
|
+
} & LabelHTMLAttributes<'label'>;
|
|
1396
|
+
declare type TextTagProps = {
|
|
1397
|
+
variant: 'tag';
|
|
1398
|
+
size: 'regular' | 'small' | 'x-small';
|
|
1399
|
+
weight?: 'regular' | 'demi' | 'bold';
|
|
1400
|
+
underline?: never;
|
|
1401
|
+
disabled?: boolean;
|
|
1402
|
+
wide?: never;
|
|
1403
|
+
original?: never;
|
|
1404
|
+
allCaps?: boolean;
|
|
1405
|
+
};
|
|
1406
|
+
declare type TextProps = AriaAttributes & {
|
|
1407
|
+
style?: CSSProperties;
|
|
1408
|
+
} & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
|
|
1409
|
+
|
|
1410
|
+
interface SearchBarProps {
|
|
1411
|
+
suggestions: SearchBarOptionItem$1[];
|
|
1412
|
+
resultOptions: SearchBarOptionItem$1[];
|
|
1413
|
+
onChange: (text: string) => void;
|
|
1414
|
+
onSearch: (term: string) => void;
|
|
1415
|
+
resultsPanelDataTestId?: string;
|
|
1416
|
+
}
|
|
1417
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, }: SearchBarProps) => JSX.Element;
|
|
1019
1418
|
|
|
1020
|
-
export {
|
|
1419
|
+
export { Accordion, AmazonPaypalButtons_d as AmazonAndPaypalButtons, 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, index_d$1 as Input, InputValidationType, MultiColorPicker, OfferBanner, OrderBar, Pagination, Pattern, PaymentMethod, 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 };
|