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