@trafilea/afrodita-components 5.0.0-beta.6 → 5.0.0-beta.62
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 +3 -1
- package/build/index.d.ts +284 -43
- package/build/index.esm.css +3 -1
- package/build/index.esm.js +5988 -3933
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5994 -3933
- package/build/index.js.map +1 -1
- package/build/theme/shapermint.theme.d.ts +10 -2
- package/build/theme/shapermint.theme.js +10 -2
- package/build/theme/truekind.theme.d.ts +10 -2
- package/build/theme/truekind.theme.js +10 -2
- package/package.json +4 -1
package/build/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { IconProps as IconProps$1 } from 'src/types/types';
|
|
3
3
|
import React, { FC, ReactNode, ElementType, CSSProperties, AriaAttributes, AnchorHTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
|
|
4
4
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
5
|
-
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
6
5
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
|
+
import { StyledComponent } from '@emotion/styled';
|
|
7
|
+
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
7
8
|
import * as _emotion_react from '@emotion/react';
|
|
8
9
|
|
|
9
10
|
declare enum CardSectionType {
|
|
@@ -33,6 +34,7 @@ interface IconProps {
|
|
|
33
34
|
height?: number;
|
|
34
35
|
fill?: string;
|
|
35
36
|
title?: string;
|
|
37
|
+
testId?: string;
|
|
36
38
|
}
|
|
37
39
|
declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
38
40
|
interface CTAProps {
|
|
@@ -57,11 +59,6 @@ declare type SizeOption = {
|
|
|
57
59
|
description: string;
|
|
58
60
|
disabled?: boolean;
|
|
59
61
|
};
|
|
60
|
-
declare type Color = {
|
|
61
|
-
primaryColor: string;
|
|
62
|
-
secondaryColor?: string;
|
|
63
|
-
tertiaryColor?: string;
|
|
64
|
-
};
|
|
65
62
|
declare type Pattern = {
|
|
66
63
|
url: string;
|
|
67
64
|
};
|
|
@@ -69,7 +66,7 @@ declare type ColorPickerOption = {
|
|
|
69
66
|
label: string;
|
|
70
67
|
description: string;
|
|
71
68
|
meta: {
|
|
72
|
-
color?:
|
|
69
|
+
color?: string[];
|
|
73
70
|
pattern?: Pattern;
|
|
74
71
|
};
|
|
75
72
|
};
|
|
@@ -100,7 +97,14 @@ declare type Filter = {
|
|
|
100
97
|
title: string;
|
|
101
98
|
columns: number;
|
|
102
99
|
isOpenByDefault?: boolean;
|
|
103
|
-
|
|
100
|
+
isLinkOption?: boolean;
|
|
101
|
+
link?: string;
|
|
102
|
+
color?: string;
|
|
103
|
+
isMultiselect: boolean;
|
|
104
|
+
items: Array<{
|
|
105
|
+
label: string;
|
|
106
|
+
checked?: boolean;
|
|
107
|
+
}>;
|
|
104
108
|
};
|
|
105
109
|
declare type FilterChange = {
|
|
106
110
|
sectionIndex: number;
|
|
@@ -111,18 +115,31 @@ interface SearchBarOptionItem {
|
|
|
111
115
|
src: string;
|
|
112
116
|
price: string;
|
|
113
117
|
title: string;
|
|
118
|
+
optionUrl: string;
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
117
122
|
|
|
118
123
|
declare const Frown: ({ height, width, fill, title }: IconProps$1) => JSX.Element;
|
|
119
124
|
|
|
125
|
+
declare const BulletOne: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
126
|
+
|
|
127
|
+
declare const BulletTwo: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
128
|
+
|
|
129
|
+
declare const BulletThree: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
130
|
+
|
|
120
131
|
declare const Custom_SixtyDaysGuarantee: typeof SixtyDaysGuarantee;
|
|
121
132
|
declare const Custom_Frown: typeof Frown;
|
|
133
|
+
declare const Custom_BulletOne: typeof BulletOne;
|
|
134
|
+
declare const Custom_BulletTwo: typeof BulletTwo;
|
|
135
|
+
declare const Custom_BulletThree: typeof BulletThree;
|
|
122
136
|
declare namespace Custom {
|
|
123
137
|
export {
|
|
124
138
|
Custom_SixtyDaysGuarantee as SixtyDaysGuarantee,
|
|
125
139
|
Custom_Frown as Frown,
|
|
140
|
+
Custom_BulletOne as BulletOne,
|
|
141
|
+
Custom_BulletTwo as BulletTwo,
|
|
142
|
+
Custom_BulletThree as BulletThree,
|
|
126
143
|
};
|
|
127
144
|
}
|
|
128
145
|
|
|
@@ -143,6 +160,19 @@ declare const Close: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
|
143
160
|
|
|
144
161
|
declare const Trash: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
145
162
|
|
|
163
|
+
declare const Warning: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
164
|
+
|
|
165
|
+
declare const Edit: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
166
|
+
|
|
167
|
+
declare const SignOut: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
168
|
+
|
|
169
|
+
declare const Add: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
170
|
+
|
|
171
|
+
interface CopyProps extends IconProps {
|
|
172
|
+
stroke?: string;
|
|
173
|
+
}
|
|
174
|
+
declare const Copy: ({ height, width, fill, stroke }: CopyProps) => JSX.Element;
|
|
175
|
+
|
|
146
176
|
declare const Actions_Check: typeof Check;
|
|
147
177
|
declare const Actions_ClearLight: typeof ClearLight;
|
|
148
178
|
declare const Actions_LightExclamation: typeof LightExclamation;
|
|
@@ -151,6 +181,12 @@ declare const Actions_LightCheck: typeof LightCheck;
|
|
|
151
181
|
declare const Actions_Question: typeof Question;
|
|
152
182
|
declare const Actions_Close: typeof Close;
|
|
153
183
|
declare const Actions_Trash: typeof Trash;
|
|
184
|
+
declare const Actions_Warning: typeof Warning;
|
|
185
|
+
declare const Actions_Edit: typeof Edit;
|
|
186
|
+
declare const Actions_SignOut: typeof SignOut;
|
|
187
|
+
declare const Actions_Add: typeof Add;
|
|
188
|
+
type Actions_CopyProps = CopyProps;
|
|
189
|
+
declare const Actions_Copy: typeof Copy;
|
|
154
190
|
declare namespace Actions {
|
|
155
191
|
export {
|
|
156
192
|
Actions_Check as Check,
|
|
@@ -161,6 +197,12 @@ declare namespace Actions {
|
|
|
161
197
|
Actions_Question as Question,
|
|
162
198
|
Actions_Close as Close,
|
|
163
199
|
Actions_Trash as Trash,
|
|
200
|
+
Actions_Warning as Warning,
|
|
201
|
+
Actions_Edit as Edit,
|
|
202
|
+
Actions_SignOut as SignOut,
|
|
203
|
+
Actions_Add as Add,
|
|
204
|
+
Actions_CopyProps as CopyProps,
|
|
205
|
+
Actions_Copy as Copy,
|
|
164
206
|
};
|
|
165
207
|
}
|
|
166
208
|
|
|
@@ -175,10 +217,31 @@ declare const Shapermint: ({ height, width }: IconProps) => JSX.Element;
|
|
|
175
217
|
|
|
176
218
|
declare const McAfee: ({ height, width }: IconProps) => JSX.Element;
|
|
177
219
|
|
|
220
|
+
declare const GetDiscount: ({ height, width }: IconProps) => JSX.Element;
|
|
221
|
+
|
|
222
|
+
declare const ShapermintLogo: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
223
|
+
|
|
224
|
+
declare const Chat: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
225
|
+
|
|
226
|
+
declare const Email: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
227
|
+
|
|
228
|
+
declare const CallUs: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
229
|
+
|
|
230
|
+
declare const SignForm: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
231
|
+
|
|
232
|
+
declare const QrCode: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
233
|
+
|
|
178
234
|
type Other_LoadingProps = LoadingProps;
|
|
179
235
|
declare const Other_Loading: typeof Loading;
|
|
180
236
|
declare const Other_Shapermint: typeof Shapermint;
|
|
181
237
|
declare const Other_McAfee: typeof McAfee;
|
|
238
|
+
declare const Other_GetDiscount: typeof GetDiscount;
|
|
239
|
+
declare const Other_ShapermintLogo: typeof ShapermintLogo;
|
|
240
|
+
declare const Other_Chat: typeof Chat;
|
|
241
|
+
declare const Other_Email: typeof Email;
|
|
242
|
+
declare const Other_CallUs: typeof CallUs;
|
|
243
|
+
declare const Other_SignForm: typeof SignForm;
|
|
244
|
+
declare const Other_QrCode: typeof QrCode;
|
|
182
245
|
declare namespace Other {
|
|
183
246
|
export {
|
|
184
247
|
FitPredictor$1 as FitPredictor,
|
|
@@ -186,14 +249,21 @@ declare namespace Other {
|
|
|
186
249
|
Other_Loading as Loading,
|
|
187
250
|
Other_Shapermint as Shapermint,
|
|
188
251
|
Other_McAfee as McAfee,
|
|
252
|
+
Other_GetDiscount as GetDiscount,
|
|
253
|
+
Other_ShapermintLogo as ShapermintLogo,
|
|
254
|
+
Other_Chat as Chat,
|
|
255
|
+
Other_Email as Email,
|
|
256
|
+
Other_CallUs as CallUs,
|
|
257
|
+
Other_SignForm as SignForm,
|
|
258
|
+
Other_QrCode as QrCode,
|
|
189
259
|
};
|
|
190
260
|
}
|
|
191
261
|
|
|
192
262
|
declare const ChevronDown: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
193
263
|
|
|
194
|
-
declare const ChevronLeft: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
|
|
264
|
+
declare const ChevronLeft: ({ height, width, fill, opacity, testId }: IconWithOpacityProps) => JSX.Element;
|
|
195
265
|
|
|
196
|
-
declare const ChevronRight: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
|
|
266
|
+
declare const ChevronRight: ({ height, width, fill, opacity, testId }: IconWithOpacityProps) => JSX.Element;
|
|
197
267
|
|
|
198
268
|
declare const ChevronRightVariant: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
199
269
|
|
|
@@ -242,6 +312,10 @@ declare const Stopwatch: ({ height, width, fill, title }: IconProps) => JSX.Elem
|
|
|
242
312
|
|
|
243
313
|
declare const Shipping: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
244
314
|
|
|
315
|
+
declare const LightBulb: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
316
|
+
|
|
317
|
+
declare const ErrorCross: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
318
|
+
|
|
245
319
|
declare const PDP_Clock: typeof Clock;
|
|
246
320
|
declare const PDP_FlagUSA: typeof FlagUSA;
|
|
247
321
|
declare const PDP_Minus: typeof Minus;
|
|
@@ -252,6 +326,8 @@ declare const PDP_StarEmpty: typeof StarEmpty;
|
|
|
252
326
|
declare const PDP_StarHalf: typeof StarHalf;
|
|
253
327
|
declare const PDP_Stopwatch: typeof Stopwatch;
|
|
254
328
|
declare const PDP_Shipping: typeof Shipping;
|
|
329
|
+
declare const PDP_LightBulb: typeof LightBulb;
|
|
330
|
+
declare const PDP_ErrorCross: typeof ErrorCross;
|
|
255
331
|
declare namespace PDP {
|
|
256
332
|
export {
|
|
257
333
|
PDP_Clock as Clock,
|
|
@@ -264,6 +340,8 @@ declare namespace PDP {
|
|
|
264
340
|
PDP_StarHalf as StarHalf,
|
|
265
341
|
PDP_Stopwatch as Stopwatch,
|
|
266
342
|
PDP_Shipping as Shipping,
|
|
343
|
+
PDP_LightBulb as LightBulb,
|
|
344
|
+
PDP_ErrorCross as ErrorCross,
|
|
267
345
|
};
|
|
268
346
|
}
|
|
269
347
|
|
|
@@ -281,6 +359,8 @@ declare const Twitter: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
|
281
359
|
|
|
282
360
|
declare const Youtube: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
283
361
|
|
|
362
|
+
declare const Interaction: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
363
|
+
|
|
284
364
|
declare const SocialMedia_Facebook: typeof Facebook;
|
|
285
365
|
declare const SocialMedia_FacebookSolid: typeof FacebookSolid;
|
|
286
366
|
declare const SocialMedia_Instagram: typeof Instagram;
|
|
@@ -288,6 +368,7 @@ declare const SocialMedia_InstagramSolid: typeof InstagramSolid;
|
|
|
288
368
|
declare const SocialMedia_Pinterest: typeof Pinterest;
|
|
289
369
|
declare const SocialMedia_Twitter: typeof Twitter;
|
|
290
370
|
declare const SocialMedia_Youtube: typeof Youtube;
|
|
371
|
+
declare const SocialMedia_Interaction: typeof Interaction;
|
|
291
372
|
declare namespace SocialMedia {
|
|
292
373
|
export {
|
|
293
374
|
SocialMedia_Facebook as Facebook,
|
|
@@ -297,14 +378,15 @@ declare namespace SocialMedia {
|
|
|
297
378
|
SocialMedia_Pinterest as Pinterest,
|
|
298
379
|
SocialMedia_Twitter as Twitter,
|
|
299
380
|
SocialMedia_Youtube as Youtube,
|
|
381
|
+
SocialMedia_Interaction as Interaction,
|
|
300
382
|
};
|
|
301
383
|
}
|
|
302
384
|
|
|
303
|
-
declare const Search: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
385
|
+
declare const Search: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
304
386
|
|
|
305
387
|
declare const User: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
306
388
|
|
|
307
|
-
declare const ShoppingBag: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
389
|
+
declare const ShoppingBag: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
308
390
|
|
|
309
391
|
declare const ShoppingCart: FC<IconProps>;
|
|
310
392
|
|
|
@@ -312,12 +394,21 @@ declare const MapMarker: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
|
312
394
|
|
|
313
395
|
declare const Hamburger: FC<IconProps>;
|
|
314
396
|
|
|
397
|
+
declare const AddressInformation: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
398
|
+
|
|
399
|
+
declare const ClubMembership: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
400
|
+
|
|
401
|
+
declare const Benefits: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
402
|
+
|
|
315
403
|
declare const Navigation_Search: typeof Search;
|
|
316
404
|
declare const Navigation_User: typeof User;
|
|
317
405
|
declare const Navigation_ShoppingBag: typeof ShoppingBag;
|
|
318
406
|
declare const Navigation_ShoppingCart: typeof ShoppingCart;
|
|
319
407
|
declare const Navigation_MapMarker: typeof MapMarker;
|
|
320
408
|
declare const Navigation_Hamburger: typeof Hamburger;
|
|
409
|
+
declare const Navigation_AddressInformation: typeof AddressInformation;
|
|
410
|
+
declare const Navigation_ClubMembership: typeof ClubMembership;
|
|
411
|
+
declare const Navigation_Benefits: typeof Benefits;
|
|
321
412
|
declare namespace Navigation {
|
|
322
413
|
export {
|
|
323
414
|
Navigation_Search as Search,
|
|
@@ -326,6 +417,9 @@ declare namespace Navigation {
|
|
|
326
417
|
Navigation_ShoppingCart as ShoppingCart,
|
|
327
418
|
Navigation_MapMarker as MapMarker,
|
|
328
419
|
Navigation_Hamburger as Hamburger,
|
|
420
|
+
Navigation_AddressInformation as AddressInformation,
|
|
421
|
+
Navigation_ClubMembership as ClubMembership,
|
|
422
|
+
Navigation_Benefits as Benefits,
|
|
329
423
|
};
|
|
330
424
|
}
|
|
331
425
|
|
|
@@ -342,11 +436,11 @@ interface IconWrapperProps {
|
|
|
342
436
|
viewBoxX: number;
|
|
343
437
|
viewBoxY: number;
|
|
344
438
|
children: React.ReactNode;
|
|
345
|
-
|
|
439
|
+
testId?: string;
|
|
346
440
|
fill?: string;
|
|
347
441
|
}
|
|
348
442
|
|
|
349
|
-
declare const Mail: ({ height, width }: IconWrapperProps) => JSX.Element;
|
|
443
|
+
declare const Mail: ({ height, width, }: Pick<IconWrapperProps, 'width' | 'height'>) => JSX.Element;
|
|
350
444
|
|
|
351
445
|
declare const Messaging_QuestionCircle: typeof QuestionCircle;
|
|
352
446
|
declare const Messaging_Messenger: typeof Messenger;
|
|
@@ -416,7 +510,53 @@ declare namespace SlideDots {
|
|
|
416
510
|
};
|
|
417
511
|
}
|
|
418
512
|
|
|
419
|
-
declare
|
|
513
|
+
declare const Thinking: ({ height, width }: IconProps$1) => JSX.Element;
|
|
514
|
+
|
|
515
|
+
declare const Emoji_Thinking: typeof Thinking;
|
|
516
|
+
declare namespace Emoji {
|
|
517
|
+
export {
|
|
518
|
+
Emoji_Thinking as Thinking,
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
declare const FreeShipping: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
523
|
+
|
|
524
|
+
declare const PersonalStylist: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
525
|
+
|
|
526
|
+
declare const Community: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
527
|
+
|
|
528
|
+
declare const VIP: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
529
|
+
|
|
530
|
+
declare const DealsOffers: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
531
|
+
|
|
532
|
+
declare const StyleFashionContent: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
533
|
+
|
|
534
|
+
declare const MembersOnlyDiscount: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
535
|
+
|
|
536
|
+
declare const Profile: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
537
|
+
|
|
538
|
+
declare const MyAccount_FreeShipping: typeof FreeShipping;
|
|
539
|
+
declare const MyAccount_PersonalStylist: typeof PersonalStylist;
|
|
540
|
+
declare const MyAccount_Community: typeof Community;
|
|
541
|
+
declare const MyAccount_VIP: typeof VIP;
|
|
542
|
+
declare const MyAccount_DealsOffers: typeof DealsOffers;
|
|
543
|
+
declare const MyAccount_StyleFashionContent: typeof StyleFashionContent;
|
|
544
|
+
declare const MyAccount_MembersOnlyDiscount: typeof MembersOnlyDiscount;
|
|
545
|
+
declare const MyAccount_Profile: typeof Profile;
|
|
546
|
+
declare namespace MyAccount {
|
|
547
|
+
export {
|
|
548
|
+
MyAccount_FreeShipping as FreeShipping,
|
|
549
|
+
MyAccount_PersonalStylist as PersonalStylist,
|
|
550
|
+
MyAccount_Community as Community,
|
|
551
|
+
MyAccount_VIP as VIP,
|
|
552
|
+
MyAccount_DealsOffers as DealsOffers,
|
|
553
|
+
MyAccount_StyleFashionContent as StyleFashionContent,
|
|
554
|
+
MyAccount_MembersOnlyDiscount as MembersOnlyDiscount,
|
|
555
|
+
MyAccount_Profile as Profile,
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
declare type IconType = ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
420
560
|
declare const Icon: {
|
|
421
561
|
Custom: typeof Custom;
|
|
422
562
|
Arrows: typeof Arrows;
|
|
@@ -429,6 +569,8 @@ declare const Icon: {
|
|
|
429
569
|
Download: typeof Download;
|
|
430
570
|
Payment: typeof Payment;
|
|
431
571
|
SlideDots: typeof SlideDots;
|
|
572
|
+
Emoji: typeof Emoji;
|
|
573
|
+
MyAccount: typeof MyAccount;
|
|
432
574
|
};
|
|
433
575
|
|
|
434
576
|
interface CardBodyProps {
|
|
@@ -499,8 +641,9 @@ interface SizeFitGuideProps {
|
|
|
499
641
|
title: string;
|
|
500
642
|
fitPercentage?: number;
|
|
501
643
|
onClick: () => void;
|
|
644
|
+
onClickFitPercentage?: () => void;
|
|
502
645
|
}
|
|
503
|
-
declare const SizeFitGuide: ({ title, fitPercentage, onClick }: SizeFitGuideProps) => JSX.Element;
|
|
646
|
+
declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, }: SizeFitGuideProps) => JSX.Element;
|
|
504
647
|
|
|
505
648
|
interface BaseButtonProps {
|
|
506
649
|
children: React.ReactNode;
|
|
@@ -511,6 +654,7 @@ interface BaseButtonProps {
|
|
|
511
654
|
onClick: () => void;
|
|
512
655
|
className?: string;
|
|
513
656
|
inline?: boolean;
|
|
657
|
+
uppercase?: boolean;
|
|
514
658
|
testId?: string;
|
|
515
659
|
}
|
|
516
660
|
|
|
@@ -521,8 +665,9 @@ interface TextButtonProps$1 extends BaseProps {
|
|
|
521
665
|
TrailingIcon?: IconType;
|
|
522
666
|
iconColor?: string;
|
|
523
667
|
size?: ComponentSize;
|
|
668
|
+
uppercase?: boolean;
|
|
524
669
|
}
|
|
525
|
-
declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, onClick, }: TextButtonProps$1) => _emotion_react_jsx_runtime.JSX.Element;
|
|
670
|
+
declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, uppercase, onClick, }: TextButtonProps$1) => _emotion_react_jsx_runtime.JSX.Element;
|
|
526
671
|
|
|
527
672
|
interface DiscountTagProps {
|
|
528
673
|
discount: number;
|
|
@@ -541,8 +686,10 @@ interface PriceLabelProps {
|
|
|
541
686
|
color?: string;
|
|
542
687
|
size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
543
688
|
discount?: DiscountTagProps;
|
|
689
|
+
finalPriceStyled?: boolean;
|
|
690
|
+
testId?: string;
|
|
544
691
|
}
|
|
545
|
-
declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, size, }: PriceLabelProps) => JSX.Element;
|
|
692
|
+
declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, testId, finalPriceStyled, size, }: PriceLabelProps) => JSX.Element;
|
|
546
693
|
|
|
547
694
|
interface ColorPickerProps {
|
|
548
695
|
options: ColorPickerOption[];
|
|
@@ -564,12 +711,13 @@ declare const MultiColorPicker: ({ options, label, selectedValue, onChange, }: M
|
|
|
564
711
|
interface ProductGalleryProps {
|
|
565
712
|
images: ImageType[];
|
|
566
713
|
selectedValue?: ImageType;
|
|
567
|
-
|
|
568
|
-
|
|
714
|
+
topTag?: JSX.Element;
|
|
715
|
+
bottomTag?: JSX.Element;
|
|
569
716
|
productImageDataTestId?: string;
|
|
570
717
|
previewListDataTestId?: string;
|
|
718
|
+
thumbnailPosition?: 'vertical' | 'horizontal';
|
|
571
719
|
}
|
|
572
|
-
declare const ProductGallery: ({ images, selectedValue,
|
|
720
|
+
declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, }: ProductGalleryProps) => JSX.Element;
|
|
573
721
|
|
|
574
722
|
interface RatingProps {
|
|
575
723
|
rating: number;
|
|
@@ -577,8 +725,10 @@ interface RatingProps {
|
|
|
577
725
|
reviews: number;
|
|
578
726
|
reviewsText: string;
|
|
579
727
|
wrapWithParenthesis?: boolean;
|
|
728
|
+
underline?: boolean;
|
|
729
|
+
reviewsContainerId?: string;
|
|
580
730
|
}
|
|
581
|
-
declare const Rating: ({ size, reviews, reviewsText, rating, wrapWithParenthesis, }: RatingProps) => JSX.Element;
|
|
731
|
+
declare const Rating: ({ size, reviews, reviewsText, rating, wrapWithParenthesis, underline, reviewsContainerId, }: RatingProps) => JSX.Element;
|
|
582
732
|
|
|
583
733
|
interface FitPredictorProps {
|
|
584
734
|
onClick: () => void;
|
|
@@ -776,6 +926,12 @@ declare type ThemeComponent = {
|
|
|
776
926
|
lineHeight: string;
|
|
777
927
|
border: string;
|
|
778
928
|
boxShadow: string;
|
|
929
|
+
errorBorder: string;
|
|
930
|
+
};
|
|
931
|
+
inputPlaceholder: {
|
|
932
|
+
fontSize: string;
|
|
933
|
+
padding: string;
|
|
934
|
+
focusBorder: string;
|
|
779
935
|
};
|
|
780
936
|
inputCustom: {
|
|
781
937
|
button: {
|
|
@@ -1014,8 +1170,10 @@ declare type ThemeComponent = {
|
|
|
1014
1170
|
packSelector: {
|
|
1015
1171
|
borderRadius: string;
|
|
1016
1172
|
borderColor: string;
|
|
1017
|
-
|
|
1018
|
-
|
|
1173
|
+
highlightColor: string;
|
|
1174
|
+
selectedColor: string;
|
|
1175
|
+
selectedContrast: string;
|
|
1176
|
+
tagColor: string;
|
|
1019
1177
|
};
|
|
1020
1178
|
};
|
|
1021
1179
|
declare type ThemeTypography = {
|
|
@@ -1090,10 +1248,11 @@ interface MinimalisticProps {
|
|
|
1090
1248
|
discount: number;
|
|
1091
1249
|
offText: string;
|
|
1092
1250
|
widthAuto?: boolean;
|
|
1251
|
+
testId?: string;
|
|
1093
1252
|
}
|
|
1094
1253
|
|
|
1095
1254
|
declare const Bundle: {
|
|
1096
|
-
Minimalistic: ({ backgroundColor, borderColor, originalPrice, price, savingPrice, getMorePayLessText, youAreSavingText, getQtyForText, discount, offText, widthAuto, }: MinimalisticProps) => JSX.Element;
|
|
1255
|
+
Minimalistic: ({ backgroundColor, borderColor, originalPrice, price, savingPrice, getMorePayLessText, youAreSavingText, getQtyForText, discount, offText, widthAuto, testId, }: MinimalisticProps) => JSX.Element;
|
|
1097
1256
|
Simple: ({ title, freeShippingText, price, anyQtyForText, backgroundColor, widthAuto, }: SimpleProps) => JSX.Element;
|
|
1098
1257
|
};
|
|
1099
1258
|
|
|
@@ -1133,6 +1292,10 @@ interface BaseInputCommmonProps {
|
|
|
1133
1292
|
required?: string;
|
|
1134
1293
|
children?: React.ReactNode;
|
|
1135
1294
|
size?: 'regular' | 'small';
|
|
1295
|
+
inlinePlaceholder?: boolean;
|
|
1296
|
+
hasError?: boolean;
|
|
1297
|
+
inputType?: 'text' | 'email' | 'password' | 'url';
|
|
1298
|
+
autoFocus?: boolean;
|
|
1136
1299
|
}
|
|
1137
1300
|
interface BaseInputControlled extends BaseInputCommmonProps {
|
|
1138
1301
|
value: string;
|
|
@@ -1166,6 +1329,7 @@ interface BaseCTAProps {
|
|
|
1166
1329
|
size?: ComponentSize;
|
|
1167
1330
|
text: string;
|
|
1168
1331
|
type?: ButtonType;
|
|
1332
|
+
inline?: boolean;
|
|
1169
1333
|
testId?: string;
|
|
1170
1334
|
}
|
|
1171
1335
|
|
|
@@ -1180,7 +1344,7 @@ declare type CustomProps = BaseInputProps & {
|
|
|
1180
1344
|
};
|
|
1181
1345
|
|
|
1182
1346
|
declare const Input: {
|
|
1183
|
-
Simple: ({ value, onChange, defaultValue, label, children, required, onValidation, size, ...rest }: BaseInputProps) => JSX.Element;
|
|
1347
|
+
Simple: ({ value, onChange, defaultValue, label, children, required, onValidation, size, placeholder, inlinePlaceholder, hasError, inputType, ...rest }: BaseInputProps) => JSX.Element;
|
|
1184
1348
|
Custom: ({ onClick, text, variant, ...rest }: CustomProps) => JSX.Element;
|
|
1185
1349
|
SimplePlusButton: ({ onClick, onClickEdit, text, success, editText, successText, ...rest }: BasePlusButtonProps) => JSX.Element;
|
|
1186
1350
|
SimplePlusIcon: ({ Icon, ...rest }: BasePlusIconProps) => JSX.Element;
|
|
@@ -1314,19 +1478,22 @@ interface ReviewProps {
|
|
|
1314
1478
|
declare const Review: ({ reviewerName, date, rating, stars, title, description, image }: ReviewProps) => JSX.Element;
|
|
1315
1479
|
|
|
1316
1480
|
interface SliderNavigationProps {
|
|
1317
|
-
children: JSX.Element[]
|
|
1481
|
+
children: JSX.Element | JSX.Element[] | StyledComponent<any>;
|
|
1318
1482
|
infinite: boolean;
|
|
1319
1483
|
adaptiveHeight: boolean;
|
|
1320
|
-
dotsSize
|
|
1321
|
-
dotListMarginTop
|
|
1484
|
+
dotsSize?: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1485
|
+
dotListMarginTop?: number;
|
|
1322
1486
|
initialSlide?: number;
|
|
1323
1487
|
arrows?: {
|
|
1324
1488
|
arrowWidth: number;
|
|
1325
1489
|
arrowHeight: number;
|
|
1326
1490
|
arrowPadding: number;
|
|
1327
1491
|
};
|
|
1492
|
+
dots?: boolean;
|
|
1493
|
+
slidesToShow?: number;
|
|
1494
|
+
speed?: number;
|
|
1328
1495
|
}
|
|
1329
|
-
declare const SliderNavigation: ({ children, infinite, arrows, adaptiveHeight, dotsSize, dotListMarginTop, initialSlide, }: SliderNavigationProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1496
|
+
declare const SliderNavigation: ({ children, infinite, arrows, adaptiveHeight, dotsSize, dotListMarginTop, initialSlide, dots, slidesToShow, speed, }: SliderNavigationProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1330
1497
|
|
|
1331
1498
|
interface DropdownListIconsProps {
|
|
1332
1499
|
items: DropdownListIconsItem[];
|
|
@@ -1380,8 +1547,8 @@ interface ProductItemProps {
|
|
|
1380
1547
|
price: Pick<PriceLabelProps, 'finalPrice' | 'originalPrice' | 'color'>;
|
|
1381
1548
|
rating: Pick<RatingProps, 'rating' | 'reviews'>;
|
|
1382
1549
|
tags?: {
|
|
1383
|
-
categoryTagText
|
|
1384
|
-
seasonOfferTagText
|
|
1550
|
+
categoryTagText?: string;
|
|
1551
|
+
seasonOfferTagText?: string;
|
|
1385
1552
|
};
|
|
1386
1553
|
alignName?: 'left' | 'center';
|
|
1387
1554
|
url?: string;
|
|
@@ -1390,6 +1557,9 @@ interface ProductItemProps {
|
|
|
1390
1557
|
|
|
1391
1558
|
interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
1392
1559
|
size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
|
|
1560
|
+
topTag?: JSX.Element;
|
|
1561
|
+
bottomTag?: JSX.Element;
|
|
1562
|
+
onClick?: () => void;
|
|
1393
1563
|
}
|
|
1394
1564
|
|
|
1395
1565
|
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React.FC<P>, data: ProductItemProps[]): {
|
|
@@ -1398,7 +1568,7 @@ declare function withProductGrid<P extends ProductItemProps>(ProductItemComponen
|
|
|
1398
1568
|
};
|
|
1399
1569
|
|
|
1400
1570
|
declare const Collection: {
|
|
1401
|
-
ProductItemMobile: ({ title, image, price, rating, size,
|
|
1571
|
+
ProductItemMobile: ({ title, image, price, rating, size, alignName, url, className, topTag, bottomTag, onClick, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1402
1572
|
withProductGrid: typeof withProductGrid;
|
|
1403
1573
|
};
|
|
1404
1574
|
|
|
@@ -1556,6 +1726,7 @@ declare type TextTagProps = {
|
|
|
1556
1726
|
declare type TextProps = AriaAttributes & {
|
|
1557
1727
|
style?: CSSProperties;
|
|
1558
1728
|
className?: string;
|
|
1729
|
+
testId?: string;
|
|
1559
1730
|
} & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
|
|
1560
1731
|
|
|
1561
1732
|
interface SearchBarProps {
|
|
@@ -1563,19 +1734,23 @@ interface SearchBarProps {
|
|
|
1563
1734
|
resultOptions: SearchBarOptionItem[];
|
|
1564
1735
|
onChange: (text: string) => void;
|
|
1565
1736
|
onSearch: (term: string) => void;
|
|
1737
|
+
onClose: () => void;
|
|
1566
1738
|
resultsPanelDataTestId?: string;
|
|
1739
|
+
allResults?: number;
|
|
1740
|
+
initialTerm?: string;
|
|
1741
|
+
shouldClear?: boolean;
|
|
1567
1742
|
}
|
|
1568
|
-
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, }: SearchBarProps) => JSX.Element;
|
|
1743
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, onClose, resultsPanelDataTestId, allResults, initialTerm, shouldClear, }: SearchBarProps) => JSX.Element;
|
|
1569
1744
|
|
|
1570
1745
|
interface ProductGalleryMobileProps {
|
|
1571
1746
|
images: ImageType[];
|
|
1572
1747
|
selectedValue?: ImageType;
|
|
1573
|
-
|
|
1574
|
-
|
|
1748
|
+
topTag?: JSX.Element;
|
|
1749
|
+
bottomTag?: JSX.Element;
|
|
1575
1750
|
productImageDataTestId?: string;
|
|
1576
1751
|
slideDotsDataTestId?: string;
|
|
1577
1752
|
}
|
|
1578
|
-
declare const ProductGalleryMobile: ({ images, selectedValue,
|
|
1753
|
+
declare const ProductGalleryMobile: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, slideDotsDataTestId, }: ProductGalleryMobileProps) => JSX.Element;
|
|
1579
1754
|
|
|
1580
1755
|
interface RadioProps {
|
|
1581
1756
|
name: string;
|
|
@@ -1592,22 +1767,32 @@ declare const RadioInput: ({ name, value, id, label, checked, disabled, onChange
|
|
|
1592
1767
|
declare type PortalProps = {
|
|
1593
1768
|
id: string;
|
|
1594
1769
|
className?: string;
|
|
1770
|
+
overflow?: boolean;
|
|
1771
|
+
style?: CSSProperties;
|
|
1595
1772
|
};
|
|
1596
1773
|
declare const Portal: FC<PortalProps>;
|
|
1597
1774
|
|
|
1598
1775
|
declare type ModalProps = {
|
|
1599
1776
|
id: string;
|
|
1600
1777
|
dismissable?: boolean;
|
|
1778
|
+
maxFullScreen?: boolean;
|
|
1601
1779
|
};
|
|
1780
|
+
interface ContainerProps {
|
|
1781
|
+
maxFullScreen: boolean;
|
|
1782
|
+
opened?: boolean;
|
|
1783
|
+
}
|
|
1602
1784
|
declare const Overlay: _emotion_styled.StyledComponent<{
|
|
1603
1785
|
theme?: _emotion_react.Theme | undefined;
|
|
1604
1786
|
as?: React.ElementType<any> | undefined;
|
|
1605
|
-
} & {
|
|
1606
|
-
opened?: boolean | undefined;
|
|
1607
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1787
|
+
} & Pick<ContainerProps, "opened">, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1608
1788
|
declare const Modal: FC<ModalProps>;
|
|
1609
1789
|
declare const modalEvent: (id: string, detail: Omit<Events['modal'], 'id'>) => void;
|
|
1610
|
-
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1790
|
+
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1791
|
+
declare const useModal: (id: string) => {
|
|
1792
|
+
opened: boolean;
|
|
1793
|
+
open: () => void;
|
|
1794
|
+
close: () => void;
|
|
1795
|
+
};
|
|
1611
1796
|
|
|
1612
1797
|
interface CloseButtonProps {
|
|
1613
1798
|
onClick: () => void;
|
|
@@ -1646,8 +1831,9 @@ declare type QuantityPickerPropsUncontrolled = {
|
|
|
1646
1831
|
declare type QuantityPickerProps = {
|
|
1647
1832
|
initialValue?: number;
|
|
1648
1833
|
maxValue?: number;
|
|
1834
|
+
testId?: string;
|
|
1649
1835
|
} & (QuantityPickerPropsControlled | QuantityPickerPropsUncontrolled);
|
|
1650
|
-
declare const QuantityPicker: ({ initialValue, maxValue, value, onChange, }: QuantityPickerProps) => JSX.Element;
|
|
1836
|
+
declare const QuantityPicker: ({ initialValue, maxValue, value, testId, onChange, }: QuantityPickerProps) => JSX.Element;
|
|
1651
1837
|
|
|
1652
1838
|
declare type SpacingProps = {
|
|
1653
1839
|
size: number;
|
|
@@ -1675,6 +1861,61 @@ interface PackSelectorProps {
|
|
|
1675
1861
|
}
|
|
1676
1862
|
declare const PackSelector: FC<PackSelectorProps>;
|
|
1677
1863
|
|
|
1864
|
+
interface FiltersProps {
|
|
1865
|
+
values: Filter[];
|
|
1866
|
+
onChange: (newValues: Filter[], filtersState?: FilterChange) => void;
|
|
1867
|
+
tagsColor?: string;
|
|
1868
|
+
filterByText: string;
|
|
1869
|
+
clearAllText: string;
|
|
1870
|
+
filtersSelectText: string;
|
|
1871
|
+
isMobile: boolean;
|
|
1872
|
+
applyText: string;
|
|
1873
|
+
mobileBackArrowClick: () => void;
|
|
1874
|
+
mobileApplyButtonClick: () => void;
|
|
1875
|
+
onResetValues: () => void;
|
|
1876
|
+
}
|
|
1877
|
+
declare const Filters: ({ values, onChange, tagsColor, filterByText, clearAllText, isMobile, filtersSelectText, applyText, mobileApplyButtonClick, mobileBackArrowClick, onResetValues, }: FiltersProps) => JSX.Element;
|
|
1878
|
+
|
|
1879
|
+
interface SearchNavigationProps {
|
|
1880
|
+
returnText?: string;
|
|
1881
|
+
returnUrl?: string;
|
|
1882
|
+
steps?: string[];
|
|
1883
|
+
returnAction?: () => void;
|
|
1884
|
+
}
|
|
1885
|
+
declare const SearchNavigation: ({ returnText, returnUrl, steps, returnAction, }: SearchNavigationProps) => JSX.Element;
|
|
1886
|
+
|
|
1887
|
+
interface TabProps$1 {
|
|
1888
|
+
title: string;
|
|
1889
|
+
content: ReactNode;
|
|
1890
|
+
}
|
|
1891
|
+
interface TabsProps {
|
|
1892
|
+
backgroundColor?: string;
|
|
1893
|
+
initialSelected?: string;
|
|
1894
|
+
tabsMaxWidth?: string;
|
|
1895
|
+
tabs: TabProps$1[];
|
|
1896
|
+
}
|
|
1897
|
+
declare const Tabs: ({ backgroundColor, tabs, initialSelected, tabsMaxWidth, }: TabsProps) => JSX.Element | null;
|
|
1898
|
+
|
|
1899
|
+
interface TabProps {
|
|
1900
|
+
title: string;
|
|
1901
|
+
titleSize?: string;
|
|
1902
|
+
selectedTitleWeight?: number;
|
|
1903
|
+
height?: string;
|
|
1904
|
+
selected?: boolean;
|
|
1905
|
+
color?: string;
|
|
1906
|
+
tabsMaxWidth?: string;
|
|
1907
|
+
onClick: (clickedTab: string) => void;
|
|
1908
|
+
}
|
|
1909
|
+
declare const Tab: ({ title, titleSize, height, selectedTitleWeight, selected, onClick, color, tabsMaxWidth, }: TabProps) => JSX.Element;
|
|
1910
|
+
|
|
1911
|
+
interface IconList {
|
|
1912
|
+
backgroundColor: string;
|
|
1913
|
+
iconColor: string;
|
|
1914
|
+
iconName: string;
|
|
1915
|
+
iconTitle: string;
|
|
1916
|
+
}
|
|
1917
|
+
declare const IconsWithTitle: ({ iconName, iconTitle, backgroundColor, iconColor }: IconList) => JSX.Element | null;
|
|
1918
|
+
|
|
1678
1919
|
declare global {
|
|
1679
1920
|
interface Events {
|
|
1680
1921
|
modal: {
|
|
@@ -1714,4 +1955,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
1714
1955
|
currency?: string | undefined;
|
|
1715
1956
|
}) => string;
|
|
1716
1957
|
|
|
1717
|
-
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection,
|
|
1958
|
+
export { Accordion, AmazonButton, AssetsProvider, 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, ImageType, Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SearchNavigation, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, Tab, Tabs, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, decimalFormat, formatPrice, isEmail, isEmpty, isNumber, isPhoneNumber, isValidDate, modalEvent, simulateMouseClick, sliceString, useModal, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|