@trafilea/afrodita-components 5.0.0-beta.98 → 5.0.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.css +2 -1
- package/build/index.d.ts +351 -32
- package/build/index.esm.css +2 -1
- package/build/index.esm.js +2204 -1709
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2210 -1709
- package/build/index.js.map +1 -1
- package/build/theme/revel.theme.d.ts +183 -0
- package/build/theme/revel.theme.js +263 -51
- package/build/theme/shapermint.theme.d.ts +183 -0
- package/build/theme/shapermint.theme.js +203 -0
- package/build/theme/truekind.theme.d.ts +183 -0
- package/build/theme/truekind.theme.js +203 -0
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { StyledComponent } from '@emotion/styled';
|
|
|
7
7
|
export { default as styled } from '@emotion/styled';
|
|
8
8
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
9
9
|
import * as _emotion_react from '@emotion/react';
|
|
10
|
+
import { ComponentSize as ComponentSize$1 } from 'src/types/enums';
|
|
10
11
|
|
|
11
12
|
declare enum CardSectionType {
|
|
12
13
|
Header = 0,
|
|
@@ -59,6 +60,7 @@ declare type SizeOption = {
|
|
|
59
60
|
label: string;
|
|
60
61
|
description: string;
|
|
61
62
|
disabled?: boolean;
|
|
63
|
+
noStock?: boolean;
|
|
62
64
|
};
|
|
63
65
|
declare type Pattern = {
|
|
64
66
|
url: string;
|
|
@@ -66,6 +68,7 @@ declare type Pattern = {
|
|
|
66
68
|
declare type ColorPickerOption = {
|
|
67
69
|
label: string;
|
|
68
70
|
description: string;
|
|
71
|
+
noStock?: boolean;
|
|
69
72
|
meta: {
|
|
70
73
|
color?: string[];
|
|
71
74
|
pattern?: Pattern;
|
|
@@ -109,6 +112,7 @@ declare type Filter = {
|
|
|
109
112
|
link?: string;
|
|
110
113
|
blockUncheck?: boolean;
|
|
111
114
|
}>;
|
|
115
|
+
showInMobile: boolean;
|
|
112
116
|
};
|
|
113
117
|
declare type FilterChange = {
|
|
114
118
|
sectionIndex: number;
|
|
@@ -144,12 +148,18 @@ declare const BulletTwo: ({ height, width, fill, title }: IconProps) => JSX.Elem
|
|
|
144
148
|
|
|
145
149
|
declare const BulletThree: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
146
150
|
|
|
151
|
+
declare const ThumbsUp: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
152
|
+
|
|
153
|
+
declare const ThumbsDown: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
154
|
+
|
|
147
155
|
declare const Custom_SixtyDaysGuarantee: typeof SixtyDaysGuarantee;
|
|
148
156
|
declare const Custom_Frown: typeof Frown;
|
|
149
157
|
declare const Custom_Smiling: typeof Smiling;
|
|
150
158
|
declare const Custom_BulletOne: typeof BulletOne;
|
|
151
159
|
declare const Custom_BulletTwo: typeof BulletTwo;
|
|
152
160
|
declare const Custom_BulletThree: typeof BulletThree;
|
|
161
|
+
declare const Custom_ThumbsUp: typeof ThumbsUp;
|
|
162
|
+
declare const Custom_ThumbsDown: typeof ThumbsDown;
|
|
153
163
|
declare namespace Custom {
|
|
154
164
|
export {
|
|
155
165
|
Custom_SixtyDaysGuarantee as SixtyDaysGuarantee,
|
|
@@ -158,6 +168,8 @@ declare namespace Custom {
|
|
|
158
168
|
Custom_BulletOne as BulletOne,
|
|
159
169
|
Custom_BulletTwo as BulletTwo,
|
|
160
170
|
Custom_BulletThree as BulletThree,
|
|
171
|
+
Custom_ThumbsUp as ThumbsUp,
|
|
172
|
+
Custom_ThumbsDown as ThumbsDown,
|
|
161
173
|
};
|
|
162
174
|
}
|
|
163
175
|
|
|
@@ -241,6 +253,8 @@ declare const CircleSolidQuestion: ({ height, width, fill }: IconProps) => JSX.E
|
|
|
241
253
|
|
|
242
254
|
declare const CircleSolidWarning: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
243
255
|
|
|
256
|
+
declare const CircleSolidStyledCheck: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
257
|
+
|
|
244
258
|
declare const Actions_Check: typeof Check;
|
|
245
259
|
declare const Actions_ClearLight: typeof ClearLight;
|
|
246
260
|
declare const Actions_LightExclamation: typeof LightExclamation;
|
|
@@ -279,6 +293,7 @@ declare const Actions_CircleSolidMinus: typeof CircleSolidMinus;
|
|
|
279
293
|
declare const Actions_CircleSolidPlus: typeof CircleSolidPlus;
|
|
280
294
|
declare const Actions_CircleSolidQuestion: typeof CircleSolidQuestion;
|
|
281
295
|
declare const Actions_CircleSolidWarning: typeof CircleSolidWarning;
|
|
296
|
+
declare const Actions_CircleSolidStyledCheck: typeof CircleSolidStyledCheck;
|
|
282
297
|
declare namespace Actions {
|
|
283
298
|
export {
|
|
284
299
|
Actions_Check as Check,
|
|
@@ -320,6 +335,7 @@ declare namespace Actions {
|
|
|
320
335
|
Actions_CircleSolidPlus as CircleSolidPlus,
|
|
321
336
|
Actions_CircleSolidQuestion as CircleSolidQuestion,
|
|
322
337
|
Actions_CircleSolidWarning as CircleSolidWarning,
|
|
338
|
+
Actions_CircleSolidStyledCheck as CircleSolidStyledCheck,
|
|
323
339
|
};
|
|
324
340
|
}
|
|
325
341
|
|
|
@@ -911,7 +927,7 @@ interface borderProps {
|
|
|
911
927
|
}
|
|
912
928
|
interface CardProps {
|
|
913
929
|
children: ReactNode;
|
|
914
|
-
backgroundColor
|
|
930
|
+
backgroundColor?: string;
|
|
915
931
|
widthAuto?: boolean;
|
|
916
932
|
border?: borderProps;
|
|
917
933
|
flex?: boolean;
|
|
@@ -951,6 +967,21 @@ declare type UncontrolledProps<T> = {
|
|
|
951
967
|
declare type SimpleDropdownProps<T> = UncontrolledProps<T> | ControlledProps<T>;
|
|
952
968
|
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, testId, }: SimpleDropdownProps<T>): JSX.Element;
|
|
953
969
|
|
|
970
|
+
interface DialogPositionProps {
|
|
971
|
+
top: string;
|
|
972
|
+
right: string;
|
|
973
|
+
}
|
|
974
|
+
interface DialogDropdownProps {
|
|
975
|
+
options: {
|
|
976
|
+
label: string;
|
|
977
|
+
value: string;
|
|
978
|
+
}[];
|
|
979
|
+
position: DialogPositionProps;
|
|
980
|
+
style?: React.CSSProperties;
|
|
981
|
+
className?: string;
|
|
982
|
+
}
|
|
983
|
+
declare const DropdownDialog: ({ options, position: { top, right }, style, className, }: DialogDropdownProps) => JSX.Element;
|
|
984
|
+
|
|
954
985
|
interface SizeSelectorProps {
|
|
955
986
|
label: string;
|
|
956
987
|
sizes: SizeOption[];
|
|
@@ -1047,8 +1078,11 @@ interface ProductGalleryProps {
|
|
|
1047
1078
|
previewListDataTestId?: string;
|
|
1048
1079
|
thumbnailPosition?: 'vertical' | 'horizontal';
|
|
1049
1080
|
borderRadiusVariant?: boolean;
|
|
1081
|
+
previewImgBorderColor?: string;
|
|
1082
|
+
ctaText?: string;
|
|
1083
|
+
ctaAction?: () => void;
|
|
1050
1084
|
}
|
|
1051
|
-
declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, borderRadiusVariant, }: ProductGalleryProps) => JSX.Element;
|
|
1085
|
+
declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, borderRadiusVariant, previewImgBorderColor, ctaText, ctaAction, }: ProductGalleryProps) => JSX.Element;
|
|
1052
1086
|
|
|
1053
1087
|
interface RatingProps {
|
|
1054
1088
|
rating: number;
|
|
@@ -1086,14 +1120,21 @@ interface TooltipProps {
|
|
|
1086
1120
|
children: React.ReactNode;
|
|
1087
1121
|
position: ComponentPosition;
|
|
1088
1122
|
align?: 'start' | 'center' | 'end';
|
|
1089
|
-
|
|
1123
|
+
content?: {
|
|
1124
|
+
text: string;
|
|
1125
|
+
color?: string;
|
|
1126
|
+
};
|
|
1127
|
+
backgroundColor?: string;
|
|
1128
|
+
maxWidth?: string;
|
|
1090
1129
|
header?: {
|
|
1091
1130
|
title: string;
|
|
1092
|
-
|
|
1131
|
+
titleColor?: string;
|
|
1132
|
+
Icon?: IconType;
|
|
1133
|
+
iconFill?: string;
|
|
1093
1134
|
};
|
|
1094
1135
|
onClick?: () => void;
|
|
1095
1136
|
}
|
|
1096
|
-
declare const Tooltip: ({ children, position,
|
|
1137
|
+
declare const Tooltip: ({ children, position, content, backgroundColor, align, maxWidth, onClick, header, }: TooltipProps) => JSX.Element;
|
|
1097
1138
|
|
|
1098
1139
|
interface AccordionProps {
|
|
1099
1140
|
defaultOpen?: boolean;
|
|
@@ -1105,11 +1146,12 @@ interface AccordionProps {
|
|
|
1105
1146
|
headerOnOpen?: ReactNode;
|
|
1106
1147
|
content: ReactNode;
|
|
1107
1148
|
disabled?: boolean;
|
|
1149
|
+
innerHTML?: boolean;
|
|
1108
1150
|
openIcon: IconType;
|
|
1109
1151
|
closeIcon: IconType;
|
|
1110
1152
|
onClick?: (index: number) => void;
|
|
1111
1153
|
}
|
|
1112
|
-
declare const Accordion: ({ header, headerOnOpen, content, defaultOpen, forceOpenHandler, forceOpenValue, titleColor, variant, disabled, openIcon, closeIcon, onClick, }: AccordionProps) => JSX.Element;
|
|
1154
|
+
declare const Accordion: ({ header, headerOnOpen, content, defaultOpen, forceOpenHandler, forceOpenValue, titleColor, variant, disabled, innerHTML, openIcon, closeIcon, onClick, }: AccordionProps) => JSX.Element;
|
|
1113
1155
|
|
|
1114
1156
|
declare const ThemeProvider: FC<{
|
|
1115
1157
|
theme: Theme;
|
|
@@ -1217,6 +1259,10 @@ declare type ThemeComponent = {
|
|
|
1217
1259
|
border: string;
|
|
1218
1260
|
borderRadius: string;
|
|
1219
1261
|
fontWeight: number;
|
|
1262
|
+
lineHeight: string;
|
|
1263
|
+
letterSpacing: string;
|
|
1264
|
+
minWidth: string;
|
|
1265
|
+
minHeight: string;
|
|
1220
1266
|
size: {
|
|
1221
1267
|
small: {
|
|
1222
1268
|
fontSize: string;
|
|
@@ -1301,6 +1347,12 @@ declare type ThemeComponent = {
|
|
|
1301
1347
|
border: string;
|
|
1302
1348
|
color: string;
|
|
1303
1349
|
};
|
|
1350
|
+
noStock: {
|
|
1351
|
+
fontWeight: number;
|
|
1352
|
+
background: string;
|
|
1353
|
+
border: string;
|
|
1354
|
+
color: string;
|
|
1355
|
+
};
|
|
1304
1356
|
disabled: {
|
|
1305
1357
|
border: string;
|
|
1306
1358
|
};
|
|
@@ -1354,10 +1406,13 @@ declare type ThemeComponent = {
|
|
|
1354
1406
|
};
|
|
1355
1407
|
card: {
|
|
1356
1408
|
borderRadius: string;
|
|
1409
|
+
backgroundColor: string;
|
|
1357
1410
|
};
|
|
1358
1411
|
radio: {
|
|
1359
1412
|
borderColor: string;
|
|
1360
1413
|
background: string;
|
|
1414
|
+
textSize: string;
|
|
1415
|
+
lineHeight: string;
|
|
1361
1416
|
size: {
|
|
1362
1417
|
small: {
|
|
1363
1418
|
borderWidth: string;
|
|
@@ -1386,6 +1441,7 @@ declare type ThemeComponent = {
|
|
|
1386
1441
|
};
|
|
1387
1442
|
};
|
|
1388
1443
|
label: {
|
|
1444
|
+
color: string;
|
|
1389
1445
|
fontSize: {
|
|
1390
1446
|
small: string;
|
|
1391
1447
|
medium: string;
|
|
@@ -1499,6 +1555,7 @@ declare type ThemeComponent = {
|
|
|
1499
1555
|
options: {
|
|
1500
1556
|
borderColor: string;
|
|
1501
1557
|
color: string;
|
|
1558
|
+
borderRadius: string;
|
|
1502
1559
|
};
|
|
1503
1560
|
};
|
|
1504
1561
|
modal: {
|
|
@@ -1512,6 +1569,168 @@ declare type ThemeComponent = {
|
|
|
1512
1569
|
selectedContrast: string;
|
|
1513
1570
|
tagColor: string;
|
|
1514
1571
|
};
|
|
1572
|
+
slideNavigation: {
|
|
1573
|
+
slideDots: {
|
|
1574
|
+
unselectedDotColor: string;
|
|
1575
|
+
selectedDotColor: string;
|
|
1576
|
+
dotsOpacity: number;
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
beforeAfter: {
|
|
1580
|
+
size: {
|
|
1581
|
+
small: {
|
|
1582
|
+
image: {
|
|
1583
|
+
minHeight: string;
|
|
1584
|
+
minWidth: string;
|
|
1585
|
+
mobile: {
|
|
1586
|
+
minHeight: string;
|
|
1587
|
+
minWidth: string;
|
|
1588
|
+
};
|
|
1589
|
+
};
|
|
1590
|
+
imageContainer: {
|
|
1591
|
+
maxWidth: string;
|
|
1592
|
+
padding: string;
|
|
1593
|
+
mobile: {
|
|
1594
|
+
maxWidth: string;
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
userInfoText: {
|
|
1598
|
+
fontSize: string;
|
|
1599
|
+
mobile: {
|
|
1600
|
+
fontSize: string;
|
|
1601
|
+
};
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
medium: {
|
|
1605
|
+
image: {
|
|
1606
|
+
minHeight: string;
|
|
1607
|
+
minWidth: string;
|
|
1608
|
+
mobile: {
|
|
1609
|
+
minHeight: string;
|
|
1610
|
+
minWidth: string;
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
imageContainer: {
|
|
1614
|
+
maxWidth: string;
|
|
1615
|
+
padding: string;
|
|
1616
|
+
mobile: {
|
|
1617
|
+
maxWidth: string;
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
userInfoText: {
|
|
1621
|
+
fontSize: string;
|
|
1622
|
+
mobile: {
|
|
1623
|
+
fontSize: string;
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
};
|
|
1627
|
+
large: {
|
|
1628
|
+
image: {
|
|
1629
|
+
minHeight: string;
|
|
1630
|
+
minWidth: string;
|
|
1631
|
+
mobile: {
|
|
1632
|
+
minHeight: string;
|
|
1633
|
+
minWidth: string;
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
imageContainer: {
|
|
1637
|
+
maxWidth: string;
|
|
1638
|
+
padding: string;
|
|
1639
|
+
mobile: {
|
|
1640
|
+
maxWidth: string;
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
userInfoText: {
|
|
1644
|
+
fontSize: string;
|
|
1645
|
+
mobile: {
|
|
1646
|
+
fontSize: string;
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
total: {
|
|
1653
|
+
basicTotal: {
|
|
1654
|
+
amount: {
|
|
1655
|
+
color: string;
|
|
1656
|
+
fontSize: string;
|
|
1657
|
+
};
|
|
1658
|
+
currency: {
|
|
1659
|
+
color: string;
|
|
1660
|
+
fontSize: string;
|
|
1661
|
+
lineHeight: string;
|
|
1662
|
+
alignSelf?: string;
|
|
1663
|
+
};
|
|
1664
|
+
savings: {
|
|
1665
|
+
textFontSize: string;
|
|
1666
|
+
textLineHeight: string;
|
|
1667
|
+
amountFontSize: string;
|
|
1668
|
+
amountFontWeight: number;
|
|
1669
|
+
amountLineHeight: string;
|
|
1670
|
+
color?: string;
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
subTotal: {
|
|
1675
|
+
basicSubTotal: {
|
|
1676
|
+
family: string;
|
|
1677
|
+
size: string;
|
|
1678
|
+
weight: number;
|
|
1679
|
+
lineHeight: string;
|
|
1680
|
+
color: string;
|
|
1681
|
+
};
|
|
1682
|
+
};
|
|
1683
|
+
pricing: {
|
|
1684
|
+
priceLabel: {
|
|
1685
|
+
price: {
|
|
1686
|
+
size: ComponentSize$1.Small | ComponentSize$1.Medium | ComponentSize$1.Large;
|
|
1687
|
+
originalPriceColor: string;
|
|
1688
|
+
actualPriceColor: string;
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
orderSummary: {
|
|
1693
|
+
headingTextAlign: string;
|
|
1694
|
+
backgroundColor: string;
|
|
1695
|
+
maxWidth?: string;
|
|
1696
|
+
padding?: string;
|
|
1697
|
+
borderRadius?: string;
|
|
1698
|
+
onMobile: {
|
|
1699
|
+
maxWidth?: string;
|
|
1700
|
+
padding?: string;
|
|
1701
|
+
backgroundColor?: string;
|
|
1702
|
+
};
|
|
1703
|
+
};
|
|
1704
|
+
expressCheckout: {
|
|
1705
|
+
fontFamily: string;
|
|
1706
|
+
fontWeight: number;
|
|
1707
|
+
lineHeight: string;
|
|
1708
|
+
};
|
|
1709
|
+
copyrightText: {
|
|
1710
|
+
fontSize: string;
|
|
1711
|
+
fontWeight: number;
|
|
1712
|
+
lineHeight: string;
|
|
1713
|
+
color: string;
|
|
1714
|
+
};
|
|
1715
|
+
textButton: {
|
|
1716
|
+
fontWeight: number;
|
|
1717
|
+
lineHeight: string;
|
|
1718
|
+
};
|
|
1719
|
+
deliveryDetails: {
|
|
1720
|
+
note: {
|
|
1721
|
+
accentColor: string;
|
|
1722
|
+
color: string;
|
|
1723
|
+
backgroundColor: string;
|
|
1724
|
+
};
|
|
1725
|
+
SectionDetails?: {
|
|
1726
|
+
marginLeft: string;
|
|
1727
|
+
};
|
|
1728
|
+
};
|
|
1729
|
+
text: {
|
|
1730
|
+
orderHeader: {
|
|
1731
|
+
color: string;
|
|
1732
|
+
};
|
|
1733
|
+
};
|
|
1515
1734
|
};
|
|
1516
1735
|
declare type ThemeTypography = {
|
|
1517
1736
|
config: {
|
|
@@ -1538,6 +1757,11 @@ declare type ThemeAssets = {
|
|
|
1538
1757
|
images: {
|
|
1539
1758
|
favicon: string;
|
|
1540
1759
|
logo: string;
|
|
1760
|
+
logoSize?: {
|
|
1761
|
+
width: string;
|
|
1762
|
+
height: string;
|
|
1763
|
+
};
|
|
1764
|
+
logoMobile?: string;
|
|
1541
1765
|
};
|
|
1542
1766
|
[key: string]: any;
|
|
1543
1767
|
};
|
|
@@ -1744,7 +1968,7 @@ declare type detail = {
|
|
|
1744
1968
|
details: string;
|
|
1745
1969
|
};
|
|
1746
1970
|
interface orderUpdate extends detail {
|
|
1747
|
-
keepMeUpdated
|
|
1971
|
+
keepMeUpdated?: {
|
|
1748
1972
|
title: string;
|
|
1749
1973
|
onClick: () => void;
|
|
1750
1974
|
};
|
|
@@ -1757,9 +1981,9 @@ interface DeliveryDetailsProps {
|
|
|
1757
1981
|
note?: {
|
|
1758
1982
|
importantNoteText: string;
|
|
1759
1983
|
text: string;
|
|
1760
|
-
accentColor
|
|
1761
|
-
backgroundColor
|
|
1762
|
-
color
|
|
1984
|
+
accentColor?: string;
|
|
1985
|
+
backgroundColor?: string;
|
|
1986
|
+
color?: string;
|
|
1763
1987
|
};
|
|
1764
1988
|
}
|
|
1765
1989
|
declare const DeliveryDetails: ({ deliveryDetailsText, arrivingBy, shippingTo, instantOrderUpdate, note, }: DeliveryDetailsProps) => JSX.Element;
|
|
@@ -1767,19 +1991,28 @@ declare const DeliveryDetails: ({ deliveryDetailsText, arrivingBy, shippingTo, i
|
|
|
1767
1991
|
interface ScrollToTopProps {
|
|
1768
1992
|
scrollToTopText: string;
|
|
1769
1993
|
onClick: () => void;
|
|
1994
|
+
fill?: string;
|
|
1770
1995
|
}
|
|
1771
|
-
declare const ScrollToTop: ({ scrollToTopText, onClick }: ScrollToTopProps) => JSX.Element;
|
|
1996
|
+
declare const ScrollToTop: ({ scrollToTopText, onClick, fill }: ScrollToTopProps) => JSX.Element;
|
|
1772
1997
|
|
|
1773
1998
|
interface OrderBarProps {
|
|
1774
1999
|
message: string;
|
|
2000
|
+
color?: string;
|
|
1775
2001
|
}
|
|
1776
|
-
declare const OrderBar: ({ message }: OrderBarProps) => JSX.Element;
|
|
2002
|
+
declare const OrderBar: ({ message, color }: OrderBarProps) => JSX.Element;
|
|
2003
|
+
|
|
2004
|
+
interface TableProps$1 {
|
|
2005
|
+
headers: string[];
|
|
2006
|
+
data: string[][];
|
|
2007
|
+
}
|
|
2008
|
+
declare const SizeTable: ({ headers, data }: TableProps$1) => JSX.Element;
|
|
1777
2009
|
|
|
1778
2010
|
interface TableProps {
|
|
1779
2011
|
headers: string[];
|
|
1780
2012
|
data: string[][];
|
|
2013
|
+
newSizeTableCss?: boolean;
|
|
1781
2014
|
}
|
|
1782
|
-
declare const
|
|
2015
|
+
declare const SizeChartTable: ({ headers, data, newSizeTableCss }: TableProps) => JSX.Element;
|
|
1783
2016
|
|
|
1784
2017
|
interface Price extends Pick<PriceLabelProps, 'finalPrice' | 'originalPrice'> {
|
|
1785
2018
|
color?: string;
|
|
@@ -1787,6 +2020,7 @@ interface Price extends Pick<PriceLabelProps, 'finalPrice' | 'originalPrice'> {
|
|
|
1787
2020
|
interface ProductOrderItemProps {
|
|
1788
2021
|
title: string;
|
|
1789
2022
|
subtitle: string;
|
|
2023
|
+
className?: string;
|
|
1790
2024
|
image: {
|
|
1791
2025
|
src: string;
|
|
1792
2026
|
alt: string;
|
|
@@ -1799,9 +2033,10 @@ interface ProductOrderItemProps {
|
|
|
1799
2033
|
};
|
|
1800
2034
|
finalPriceStyle?: React.CSSProperties;
|
|
1801
2035
|
}
|
|
1802
|
-
declare const SimpleOrderItem: ({ title, subtitle, image, price, tag, quantity, finalPriceStyle, }: ProductOrderItemProps) => JSX.Element;
|
|
2036
|
+
declare const SimpleOrderItem: ({ title, className, subtitle, image, price, tag, quantity, finalPriceStyle, }: ProductOrderItemProps) => JSX.Element;
|
|
1803
2037
|
|
|
1804
|
-
interface ReviewProps {
|
|
2038
|
+
interface ReviewProps$1 {
|
|
2039
|
+
reviewId: string;
|
|
1805
2040
|
reviewerName: string;
|
|
1806
2041
|
date: Date;
|
|
1807
2042
|
rating: number;
|
|
@@ -1811,12 +2046,17 @@ interface ReviewProps {
|
|
|
1811
2046
|
};
|
|
1812
2047
|
title: string;
|
|
1813
2048
|
description: string;
|
|
1814
|
-
|
|
2049
|
+
images?: {
|
|
1815
2050
|
src: string;
|
|
1816
2051
|
alt: string;
|
|
1817
|
-
};
|
|
2052
|
+
}[];
|
|
2053
|
+
reviewVariant?: string;
|
|
2054
|
+
onClickImage?: (image: string) => void;
|
|
2055
|
+
helpfulActionText?: string;
|
|
2056
|
+
helpfulAction?: (id: string) => void;
|
|
2057
|
+
helpfulCount?: number;
|
|
1818
2058
|
}
|
|
1819
|
-
declare const Review: ({ reviewerName, date, rating, stars, title, description,
|
|
2059
|
+
declare const Review$1: ({ reviewId, reviewerName, date, rating, stars, title, description, images, reviewVariant, onClickImage, helpfulActionText, helpfulAction, helpfulCount, }: ReviewProps$1) => JSX.Element;
|
|
1820
2060
|
|
|
1821
2061
|
interface SliderNavigationProps {
|
|
1822
2062
|
children: JSX.Element | JSX.Element[] | StyledComponent<any>;
|
|
@@ -1903,6 +2143,13 @@ interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
|
1903
2143
|
bottomTag?: JSX.Element;
|
|
1904
2144
|
onClick?: () => void;
|
|
1905
2145
|
priceDisplayType?: 'default' | 'styled';
|
|
2146
|
+
priceAtBottom?: boolean;
|
|
2147
|
+
priceLoading?: boolean;
|
|
2148
|
+
colorPicker?: {
|
|
2149
|
+
display: boolean;
|
|
2150
|
+
position: string;
|
|
2151
|
+
component: JSX.Element | JSX.Element[] | undefined;
|
|
2152
|
+
};
|
|
1906
2153
|
}
|
|
1907
2154
|
|
|
1908
2155
|
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React.FC<P>, data: ProductItemProps[]): {
|
|
@@ -1911,7 +2158,7 @@ declare function withProductGrid<P extends ProductItemProps>(ProductItemComponen
|
|
|
1911
2158
|
};
|
|
1912
2159
|
|
|
1913
2160
|
declare const Collection: {
|
|
1914
|
-
ProductItemMobile: ({ title, image, imageHover, price, rating, size, alignName, url, className, topTag, bottomTag, onClick, priceDisplayType, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
2161
|
+
ProductItemMobile: ({ title, image, imageHover, price, rating, size, alignName, url, className, topTag, bottomTag, onClick, priceDisplayType, priceAtBottom, priceLoading, colorPicker, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1915
2162
|
withProductGrid: typeof withProductGrid;
|
|
1916
2163
|
};
|
|
1917
2164
|
|
|
@@ -1972,8 +2219,9 @@ interface PaginationProps {
|
|
|
1972
2219
|
underlineActive?: boolean;
|
|
1973
2220
|
boldActive?: boolean;
|
|
1974
2221
|
disabled?: boolean;
|
|
2222
|
+
showReducedPages?: boolean;
|
|
1975
2223
|
}
|
|
1976
|
-
declare const Pagination: ({ from, to, currentPage, onChange, underlineActive, boldActive, disabled, }: PaginationProps) => JSX.Element;
|
|
2224
|
+
declare const Pagination: ({ from, to, currentPage, onChange, underlineActive, boldActive, disabled, showReducedPages, }: PaginationProps) => JSX.Element;
|
|
1977
2225
|
|
|
1978
2226
|
declare const PaginatorBlog: ({ from, to, currentPage, onChange, }: Pick<PaginationProps, 'from' | 'to' | 'onChange' | 'currentPage'>) => JSX.Element;
|
|
1979
2227
|
|
|
@@ -2057,6 +2305,7 @@ declare type TextLinkProps = {
|
|
|
2057
2305
|
};
|
|
2058
2306
|
declare type TextLabelProps = {
|
|
2059
2307
|
variant: 'label';
|
|
2308
|
+
color?: string;
|
|
2060
2309
|
weight?: 'regular' | 'demi';
|
|
2061
2310
|
size?: 'regular' | 'small';
|
|
2062
2311
|
underline?: never;
|
|
@@ -2095,19 +2344,23 @@ interface SearchBarProps {
|
|
|
2095
2344
|
initialTerm?: string;
|
|
2096
2345
|
shouldClear?: boolean;
|
|
2097
2346
|
isBlogSearchBar?: boolean;
|
|
2347
|
+
ariaLabel?: string;
|
|
2348
|
+
placeholder?: string;
|
|
2349
|
+
id?: string;
|
|
2350
|
+
autoComplete?: string;
|
|
2098
2351
|
}
|
|
2099
|
-
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, onClose, resultsPanelDataTestId, allResults, initialTerm, shouldClear, isBlogSearchBar, }: SearchBarProps) => JSX.Element;
|
|
2352
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, onClose, resultsPanelDataTestId, allResults, initialTerm, shouldClear, isBlogSearchBar, ariaLabel, placeholder, id, autoComplete, }: SearchBarProps) => JSX.Element;
|
|
2100
2353
|
|
|
2101
|
-
interface ProductGalleryMobileProps {
|
|
2354
|
+
interface ProductGalleryMobileProps$1 {
|
|
2102
2355
|
images: ImageType[];
|
|
2103
|
-
|
|
2356
|
+
customClick?: boolean;
|
|
2104
2357
|
topTag?: JSX.Element;
|
|
2105
2358
|
bottomTag?: JSX.Element;
|
|
2106
2359
|
productImageDataTestId?: string;
|
|
2107
|
-
slideDotsDataTestId?: string;
|
|
2108
2360
|
borderRadiusVariant?: boolean;
|
|
2361
|
+
selectedValue?: ImageType;
|
|
2109
2362
|
}
|
|
2110
|
-
declare const ProductGalleryMobile: ({ images,
|
|
2363
|
+
declare const ProductGalleryMobile: ({ images, customClick, topTag, bottomTag, productImageDataTestId, borderRadiusVariant, selectedValue, }: ProductGalleryMobileProps$1) => JSX.Element;
|
|
2111
2364
|
|
|
2112
2365
|
interface RadioProps {
|
|
2113
2366
|
name: string;
|
|
@@ -2133,10 +2386,12 @@ declare type ModalProps = {
|
|
|
2133
2386
|
id: string;
|
|
2134
2387
|
dismissable?: boolean;
|
|
2135
2388
|
maxFullScreen?: boolean;
|
|
2389
|
+
padding?: string;
|
|
2136
2390
|
};
|
|
2137
2391
|
interface ContainerProps {
|
|
2138
2392
|
maxFullScreen: boolean;
|
|
2139
2393
|
opened?: boolean;
|
|
2394
|
+
padding?: string;
|
|
2140
2395
|
}
|
|
2141
2396
|
declare const Overlay: _emotion_styled.StyledComponent<{
|
|
2142
2397
|
theme?: _emotion_react.Theme | undefined;
|
|
@@ -2215,6 +2470,7 @@ interface PackSelectorProps {
|
|
|
2215
2470
|
packs: PackOption[];
|
|
2216
2471
|
selectedValue: PackOption;
|
|
2217
2472
|
onChange: (size: PackOption) => void;
|
|
2473
|
+
currencyCode?: string;
|
|
2218
2474
|
}
|
|
2219
2475
|
declare const PackSelector: FC<PackSelectorProps>;
|
|
2220
2476
|
|
|
@@ -2280,9 +2536,9 @@ interface IconList {
|
|
|
2280
2536
|
declare const IconsWithTitle: ({ iconName, iconTitle, backgroundColor, iconColor, iconSizeDesktop, iconSizeMobile, iconTitlePosition, iconTitleStyle, iconStyle, isTitleInnerHtml, }: IconList) => JSX.Element | null;
|
|
2281
2537
|
|
|
2282
2538
|
interface NoteProps {
|
|
2283
|
-
accentColor
|
|
2284
|
-
color
|
|
2285
|
-
backgroundColor
|
|
2539
|
+
accentColor?: string;
|
|
2540
|
+
color?: string;
|
|
2541
|
+
backgroundColor?: string;
|
|
2286
2542
|
importantNoteText: string;
|
|
2287
2543
|
text: string;
|
|
2288
2544
|
}
|
|
@@ -2290,7 +2546,8 @@ declare const Note: ({ accentColor, color, backgroundColor, importantNoteText, t
|
|
|
2290
2546
|
|
|
2291
2547
|
interface TextWithImageProps {
|
|
2292
2548
|
title: string;
|
|
2293
|
-
text
|
|
2549
|
+
text?: string;
|
|
2550
|
+
children?: ReactNode;
|
|
2294
2551
|
buttomText: string;
|
|
2295
2552
|
backgroundColor: string;
|
|
2296
2553
|
imageLeftSide?: boolean;
|
|
@@ -2305,7 +2562,7 @@ interface TextWithImageProps {
|
|
|
2305
2562
|
textStyle?: React.CSSProperties;
|
|
2306
2563
|
buttonWideOnMobile?: boolean;
|
|
2307
2564
|
}
|
|
2308
|
-
declare const TextWithImage: ({ title, text, buttomText, backgroundColor, imageLeftSide, titleStyle, textStyle, buttonWideOnMobile, ...props }: TextWithImageProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2565
|
+
declare const TextWithImage: ({ title, text, children, buttomText, backgroundColor, imageLeftSide, titleStyle, textStyle, buttonWideOnMobile, ...props }: TextWithImageProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2309
2566
|
|
|
2310
2567
|
interface AccordionOptionsProps {
|
|
2311
2568
|
titleColor: string;
|
|
@@ -2330,8 +2587,10 @@ interface BeforeAfterCardProps {
|
|
|
2330
2587
|
beforeImage: string;
|
|
2331
2588
|
afterImage: string;
|
|
2332
2589
|
alignCenter?: boolean;
|
|
2590
|
+
imageBorderRadius?: string;
|
|
2591
|
+
size?: ComponentSize;
|
|
2333
2592
|
}
|
|
2334
|
-
declare const BeforeAfterCard: ({ name, age, months, beforeImage, afterImage, alignCenter, }: BeforeAfterCardProps) => JSX.Element;
|
|
2593
|
+
declare const BeforeAfterCard: ({ name, age, months, beforeImage, afterImage, alignCenter, imageBorderRadius, size, }: BeforeAfterCardProps) => JSX.Element;
|
|
2335
2594
|
|
|
2336
2595
|
interface ImageCardWithDescriptionProps {
|
|
2337
2596
|
image: string;
|
|
@@ -2341,6 +2600,66 @@ interface ImageCardWithDescriptionProps {
|
|
|
2341
2600
|
}
|
|
2342
2601
|
declare const ImageCardWithDescription: ({ image, title, description, titlePosition, }: ImageCardWithDescriptionProps) => JSX.Element;
|
|
2343
2602
|
|
|
2603
|
+
interface Checkpoint {
|
|
2604
|
+
day: string;
|
|
2605
|
+
date: string;
|
|
2606
|
+
statusMessage: string;
|
|
2607
|
+
}
|
|
2608
|
+
interface TrackingProgressProps {
|
|
2609
|
+
checkPoints: Checkpoint[];
|
|
2610
|
+
amountOfCheckPoints: number;
|
|
2611
|
+
}
|
|
2612
|
+
declare const TrackingProgress: ({ checkPoints, amountOfCheckPoints }: TrackingProgressProps) => JSX.Element;
|
|
2613
|
+
|
|
2614
|
+
interface ReviewsHeaderProps {
|
|
2615
|
+
title?: string;
|
|
2616
|
+
rating: number;
|
|
2617
|
+
reviews: number;
|
|
2618
|
+
reviewsText: string;
|
|
2619
|
+
reviewsSummary: string[];
|
|
2620
|
+
onClickReview: (reveiw: string) => void;
|
|
2621
|
+
}
|
|
2622
|
+
declare const ReviewsHeader: ({ title, rating, reviews, reviewsText, reviewsSummary, onClickReview, }: ReviewsHeaderProps) => JSX.Element;
|
|
2623
|
+
|
|
2624
|
+
interface ReviewProps {
|
|
2625
|
+
reviewId: string;
|
|
2626
|
+
reviewerName: string;
|
|
2627
|
+
date: Date;
|
|
2628
|
+
rating: number;
|
|
2629
|
+
stars: {
|
|
2630
|
+
color: string;
|
|
2631
|
+
size: ComponentSize.Medium | ComponentSize.Small;
|
|
2632
|
+
};
|
|
2633
|
+
title: string;
|
|
2634
|
+
description: string;
|
|
2635
|
+
image?: {
|
|
2636
|
+
src: string;
|
|
2637
|
+
alt: string;
|
|
2638
|
+
};
|
|
2639
|
+
modalId: string;
|
|
2640
|
+
maxFullScreen?: boolean;
|
|
2641
|
+
verified?: boolean;
|
|
2642
|
+
productImage?: string;
|
|
2643
|
+
productTitle?: string;
|
|
2644
|
+
productLink?: string;
|
|
2645
|
+
helpfulCount?: number;
|
|
2646
|
+
helpfulAction?: (id: string) => void;
|
|
2647
|
+
notHelpfulCount?: number;
|
|
2648
|
+
notHelpfulAction?: (id: string) => void;
|
|
2649
|
+
}
|
|
2650
|
+
declare const Review: ({ reviewId, reviewerName, date, rating, stars, title, description, image, modalId, maxFullScreen, verified, productImage, productTitle, productLink, helpfulCount, helpfulAction, notHelpfulCount, notHelpfulAction, }: ReviewProps) => JSX.Element;
|
|
2651
|
+
|
|
2652
|
+
interface ProductGalleryMobileProps {
|
|
2653
|
+
images: ImageType[];
|
|
2654
|
+
selectedValue?: ImageType;
|
|
2655
|
+
topTag?: JSX.Element;
|
|
2656
|
+
bottomTag?: JSX.Element;
|
|
2657
|
+
productImageDataTestId?: string;
|
|
2658
|
+
slideDotsDataTestId?: string;
|
|
2659
|
+
borderRadiusVariant?: boolean;
|
|
2660
|
+
}
|
|
2661
|
+
declare const ProductGalleryMobileV2: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, slideDotsDataTestId, borderRadiusVariant, }: ProductGalleryMobileProps) => JSX.Element;
|
|
2662
|
+
|
|
2344
2663
|
declare global {
|
|
2345
2664
|
interface Events {
|
|
2346
2665
|
modal: {
|
|
@@ -2380,4 +2699,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
2380
2699
|
currency?: string | undefined;
|
|
2381
2700
|
}) => string;
|
|
2382
2701
|
|
|
2383
|
-
export { Accordion, AccordionOptions, AmazonButton, AssetsProvider, BeforeAfterCard, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageType, Input, InputValidationType, Modal, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, PaginatorBlog, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
2702
|
+
export { Accordion, AccordionOptions, AmazonButton, AssetsProvider, BeforeAfterCard, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownDialog, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, Filters, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, IconsWithTitle, Image, ImageCardWithDescription, ImageType, Input, InputValidationType, Modal, MultiColorPicker, Note, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, PaginatorBlog, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, PriceLabelV2, ProductGallery, ProductGalleryMobile, ProductGalleryMobileV2, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review$1 as Review, Review as ReviewDetail, ReviewsHeader, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, ShortBanner, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeChartTable, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Tab, Tabs, Text, TextButton, TextWithImage, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, TrackingProgress, WithTestId, decimalFormat, formatPrice, imageVideoProps, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|