@trafilea/afrodita-components 5.0.0-beta.4 → 5.0.0-beta.42
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 +112 -38
- package/build/index.esm.css +3 -1
- package/build/index.esm.js +4821 -3095
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4824 -3095
- package/build/index.js.map +1 -1
- package/build/theme/shapermint.theme.d.ts +4 -2
- package/build/theme/shapermint.theme.js +4 -2
- package/build/theme/truekind.theme.d.ts +4 -2
- package/build/theme/truekind.theme.js +4 -2
- package/package.json +4 -1
package/build/index.css
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:0.063rem;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;border:0.063rem solid transparent;}.slick-arrow.slick-hidden{display:none;}
|
|
2
|
-
.slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:1.25rem;height:1.25rem;padding:0;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);cursor:pointer;color:transparent;border:none;outline:none;background:transparent;}.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent;}.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1;}.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:0.25;}.slick-prev:before,.slick-next:before{font-family:'slick';font-size:1.25rem;line-height:1;opacity:0.75;color:white;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-prev{left:-1.5rem;}[dir='rtl'] .slick-prev{right:-1.5rem;left:auto;}.slick-prev:before{content:'←';}[dir='rtl'] .slick-prev:before{content:'→';}.slick-next{right:-1.5rem;}[dir='rtl'] .slick-next{right:auto;left:-1.5rem;}.slick-next:before{content:'→';}[dir='rtl'] .slick-next:before{content:'←';}.slick-dotted.slick-slider{margin-bottom:1.875rem;}.slick-dots{position:absolute;bottom:-1.5rem;display:block;width:100%;padding:0;margin:0;list-style:none;text-align:center;}.slick-dots li{position:relative;display:inline-block;width:1.25rem;height:1.25rem;margin:0 0.313rem;padding:0;cursor:pointer;}.slick-dots li button{font-size:0;line-height:0;display:block;width:1.25rem;height:1.25rem;padding:0.313rem;cursor:pointer;color:transparent;border:0;outline:none;background:transparent;}.slick-dots li button:hover,.slick-dots li button:focus{outline:none;}.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1;}.slick-dots li button:before{font-family:'slick';font-size:0.375rem;line-height:1.25rem;position:absolute;top:0;left:0;width:1.25rem;height:1.25rem;content:'•';text-align:center;opacity:0.25;color:black;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-dots li.slick-active button:before{opacity:0.75;color:black;}
|
|
2
|
+
.slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:1.25rem;height:1.25rem;padding:0;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);cursor:pointer;color:transparent;border:none;outline:none;background:transparent;}.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent;}.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1;}.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:0.25;}.slick-prev:before,.slick-next:before{font-family:'slick';font-size:1.25rem;line-height:1;opacity:0.75;color:white;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-prev{left:-1.5rem;}[dir='rtl'] .slick-prev{right:-1.5rem;left:auto;}.slick-prev:before{content:'←';}[dir='rtl'] .slick-prev:before{content:'→';}.slick-next{right:-1.5rem;}[dir='rtl'] .slick-next{right:auto;left:-1.5rem;}.slick-next:before{content:'→';}[dir='rtl'] .slick-next:before{content:'←';}.slick-dotted.slick-slider{margin-bottom:1.875rem;}.slick-dots{position:absolute;bottom:-1.5rem;display:block;width:100%;padding:0;margin:0;list-style:none;text-align:center;}.slick-dots li{position:relative;display:inline-block;width:1.25rem;height:1.25rem;margin:0 0.313rem;padding:0;cursor:pointer;}.slick-dots li button{font-size:0;line-height:0;display:block;width:1.25rem;height:1.25rem;padding:0.313rem;cursor:pointer;color:transparent;border:0;outline:none;background:transparent;}.slick-dots li button:hover,.slick-dots li button:focus{outline:none;}.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1;}.slick-dots li button:before{font-family:'slick';font-size:0.375rem;line-height:1.25rem;position:absolute;top:0;left:0;width:1.25rem;height:1.25rem;content:'•';text-align:center;opacity:0.25;color:black;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-dots li.slick-active button:before{opacity:0.75;color:black;}
|
|
3
|
+
.iiz{max-width:100%;margin:0;position:relative;overflow:hidden;display:inline-block;cursor:-webkit-zoom-in;cursor:zoom-in}.iiz--drag .iiz__zoom-img--visible{cursor:-webkit-grab;cursor:grab}.iiz__img{max-width:100%;height:auto;display:block;pointer-events:none;visibility:visible;opacity:1}.iiz__img--hidden{visibility:hidden;opacity:0}.iiz__img--abs{width:100%;height:100%;position:absolute;top:0;left:0;display:block}.iiz__zoom-img{width:auto!important;max-width:none!important;position:absolute;visibility:hidden;opacity:0;pointer-events:none;display:block}.iiz__zoom-img--visible{visibility:visible;opacity:1;pointer-events:auto;cursor:-webkit-zoom-out;cursor:zoom-out;-ms-touch-action:none;touch-action:none}.iiz__zoom-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000}.iiz__btn{background:rgba(255,255,255,.8);width:40px;height:40px;border:none;outline:0;padding:0;position:absolute;text-decoration:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-moz-appearance:none;-webkit-appearance:none;appearance:none}.iiz__btn:before{content:" ";background-position:center;background-repeat:no-repeat;display:block}.iiz__hint{bottom:10px;right:10px;pointer-events:none}.iiz__hint:before{content:" ";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.9 19.9'%3E%3Cpath d='M13.9 7.4C13.9 3.8 11 .9 7.4.9S.9 3.8.9 7.4s2.9 6.5 6.5 6.5 6.5-2.9 6.5-6.5zm5.3 12.5l-6.7-7.2c-1.4 1.3-3.2 2.1-5.1 2.1-4.1 0-7.4-3.3-7.4-7.4S3.3 0 7.4 0s7.4 3.3 7.4 7.4c0 1.7-.6 3.4-1.7 4.7l6.8 7.2-.7.6z' fill='%23000222'/%3E%3C/svg%3E");width:20px;height:20px}.iiz__close{top:10px;right:10px;visibility:hidden;opacity:0}.iiz__close--visible{visibility:visible;opacity:1;cursor:pointer}.iiz__close::before{content:" ";width:29px;height:29px;background-image:-webkit-gradient(linear,left top,left bottom,from(#222),to(#222)),-webkit-gradient(linear,left top,left bottom,from(#222),to(#222));background-image:linear-gradient(#222,#222),linear-gradient(#222,#222);background-size:100% 1px,1px 100%;-webkit-transform:rotate(45deg);transform:rotate(45deg)}
|
|
4
|
+
.iiz{max-width:100%;margin:0;position:relative;overflow:hidden;display:inline-block;cursor:-webkit-zoom-in;cursor:zoom-in;}.zoomWrapper.iiz{max-height:510px;}.iiz--drag .iiz__zoom-img--visible{cursor:-webkit-grab;cursor:grab;}.iiz__img{max-width:100%;height:auto;display:block;pointer-events:none;visibility:visible;opacity:1;}.iiz__img--hidden{visibility:hidden;opacity:0;}.iiz__img--abs{width:100%;height:100%;position:absolute;top:0;left:0;display:block;}.iiz__zoom-img{width:auto!important;max-width:none!important;position:absolute;visibility:hidden;opacity:0;pointer-events:none;display:block;}.iiz__zoom-img--visible{visibility:visible;opacity:1;pointer-events:auto;cursor:-webkit-zoom-out;cursor:zoom-out;-ms-touch-action:none;touch-action:none;zoom:1.2;}.iiz__zoom-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;}.iiz__btn{background:rgba(255,255,255,0.8);max-width:95px;min-width:fit-content;height:32px;border:none;outline:none;padding:0 8px;position:absolute;z-index:5;text-decoration:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-moz-appearance:none;-webkit-appearance:none;appearance:none;}.iiz__btn:before{content:' ';background-position:center;background-repeat:no-repeat;display:block;}.iiz__hint{bottom:10%;right:0;pointer-events:none;border-radius:150px 0 0 150px;}.iiz__hint:before{content:'+';background-image:none;width:17px;height:17px;font-size:19px;border-radius:500px;border:2px solid #292929;display:inline-block;position:relative;text-align:center;line-height:17px;font-weight:600;}.iiz__hint:after{content:'Zoom in';font-size:14px;font-weight:600;display:inline-block;margin-left:5px;}.iiz__close{border-radius:150px;top:auto;right:0;left:0;margin:auto;bottom:20px;visibility:hidden;opacity:0;color:#292929;}.iiz__close--visible{visibility:visible;opacity:1;cursor:pointer;}.iiz__close::before{content:' ';width:16px;height:16px;background-image:-webkit-gradient(linear,left top,left bottom,from(#222),to(#222)),-webkit-gradient(linear,left top,left bottom,from(#222),to(#222));background-image:linear-gradient(#222,#222),linear-gradient(#222,#222);background-size:65% 2px,2px 65%;transform:rotate(45deg);border-radius:500px;border:2px solid #292929;}.iiz__close::after{content:'Close';font-size:14px;font-weight:600;display:inline-block;margin-left:5px;}
|
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 {
|
|
@@ -100,7 +102,10 @@ declare type Filter = {
|
|
|
100
102
|
title: string;
|
|
101
103
|
columns: number;
|
|
102
104
|
isOpenByDefault?: boolean;
|
|
103
|
-
items:
|
|
105
|
+
items: Array<{
|
|
106
|
+
label: string;
|
|
107
|
+
checked?: boolean;
|
|
108
|
+
}>;
|
|
104
109
|
};
|
|
105
110
|
declare type FilterChange = {
|
|
106
111
|
sectionIndex: number;
|
|
@@ -111,6 +116,7 @@ interface SearchBarOptionItem {
|
|
|
111
116
|
src: string;
|
|
112
117
|
price: string;
|
|
113
118
|
title: string;
|
|
119
|
+
optionUrl: string;
|
|
114
120
|
}
|
|
115
121
|
|
|
116
122
|
declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
@@ -175,10 +181,13 @@ declare const Shapermint: ({ height, width }: IconProps) => JSX.Element;
|
|
|
175
181
|
|
|
176
182
|
declare const McAfee: ({ height, width }: IconProps) => JSX.Element;
|
|
177
183
|
|
|
184
|
+
declare const GetDiscount: ({ height, width }: IconProps) => JSX.Element;
|
|
185
|
+
|
|
178
186
|
type Other_LoadingProps = LoadingProps;
|
|
179
187
|
declare const Other_Loading: typeof Loading;
|
|
180
188
|
declare const Other_Shapermint: typeof Shapermint;
|
|
181
189
|
declare const Other_McAfee: typeof McAfee;
|
|
190
|
+
declare const Other_GetDiscount: typeof GetDiscount;
|
|
182
191
|
declare namespace Other {
|
|
183
192
|
export {
|
|
184
193
|
FitPredictor$1 as FitPredictor,
|
|
@@ -186,14 +195,15 @@ declare namespace Other {
|
|
|
186
195
|
Other_Loading as Loading,
|
|
187
196
|
Other_Shapermint as Shapermint,
|
|
188
197
|
Other_McAfee as McAfee,
|
|
198
|
+
Other_GetDiscount as GetDiscount,
|
|
189
199
|
};
|
|
190
200
|
}
|
|
191
201
|
|
|
192
202
|
declare const ChevronDown: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
193
203
|
|
|
194
|
-
declare const ChevronLeft: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
|
|
204
|
+
declare const ChevronLeft: ({ height, width, fill, opacity, testId }: IconWithOpacityProps) => JSX.Element;
|
|
195
205
|
|
|
196
|
-
declare const ChevronRight: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
|
|
206
|
+
declare const ChevronRight: ({ height, width, fill, opacity, testId }: IconWithOpacityProps) => JSX.Element;
|
|
197
207
|
|
|
198
208
|
declare const ChevronRightVariant: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
199
209
|
|
|
@@ -300,11 +310,11 @@ declare namespace SocialMedia {
|
|
|
300
310
|
};
|
|
301
311
|
}
|
|
302
312
|
|
|
303
|
-
declare const Search: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
313
|
+
declare const Search: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
304
314
|
|
|
305
315
|
declare const User: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
306
316
|
|
|
307
|
-
declare const ShoppingBag: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
317
|
+
declare const ShoppingBag: ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
308
318
|
|
|
309
319
|
declare const ShoppingCart: FC<IconProps>;
|
|
310
320
|
|
|
@@ -342,7 +352,7 @@ interface IconWrapperProps {
|
|
|
342
352
|
viewBoxX: number;
|
|
343
353
|
viewBoxY: number;
|
|
344
354
|
children: React.ReactNode;
|
|
345
|
-
|
|
355
|
+
testId?: string;
|
|
346
356
|
fill?: string;
|
|
347
357
|
}
|
|
348
358
|
|
|
@@ -416,7 +426,16 @@ declare namespace SlideDots {
|
|
|
416
426
|
};
|
|
417
427
|
}
|
|
418
428
|
|
|
419
|
-
declare
|
|
429
|
+
declare const Thinking: ({ height, width }: IconProps$1) => JSX.Element;
|
|
430
|
+
|
|
431
|
+
declare const Emoji_Thinking: typeof Thinking;
|
|
432
|
+
declare namespace Emoji {
|
|
433
|
+
export {
|
|
434
|
+
Emoji_Thinking as Thinking,
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
declare type IconType = ({ height, width, fill, testId }: IconProps) => JSX.Element;
|
|
420
439
|
declare const Icon: {
|
|
421
440
|
Custom: typeof Custom;
|
|
422
441
|
Arrows: typeof Arrows;
|
|
@@ -429,6 +448,7 @@ declare const Icon: {
|
|
|
429
448
|
Download: typeof Download;
|
|
430
449
|
Payment: typeof Payment;
|
|
431
450
|
SlideDots: typeof SlideDots;
|
|
451
|
+
Emoji: typeof Emoji;
|
|
432
452
|
};
|
|
433
453
|
|
|
434
454
|
interface CardBodyProps {
|
|
@@ -491,16 +511,17 @@ interface SizeSelectorProps {
|
|
|
491
511
|
selectedValue: SizeOption;
|
|
492
512
|
onChange: (size: SizeOption) => void;
|
|
493
513
|
inline?: boolean;
|
|
514
|
+
width?: string;
|
|
494
515
|
}
|
|
495
|
-
declare const SizeSelector: ({ label, sizes, selectedValue, onChange, inline, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
516
|
+
declare const SizeSelector: ({ label, sizes, selectedValue, onChange, inline, width, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
496
517
|
|
|
497
518
|
interface SizeFitGuideProps {
|
|
498
519
|
title: string;
|
|
499
|
-
|
|
500
|
-
fitPercentage: number;
|
|
520
|
+
fitPercentage?: number;
|
|
501
521
|
onClick: () => void;
|
|
522
|
+
onClickFitPercentage?: () => void;
|
|
502
523
|
}
|
|
503
|
-
declare const SizeFitGuide: ({ title,
|
|
524
|
+
declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, }: SizeFitGuideProps) => JSX.Element;
|
|
504
525
|
|
|
505
526
|
interface BaseButtonProps {
|
|
506
527
|
children: React.ReactNode;
|
|
@@ -511,6 +532,7 @@ interface BaseButtonProps {
|
|
|
511
532
|
onClick: () => void;
|
|
512
533
|
className?: string;
|
|
513
534
|
inline?: boolean;
|
|
535
|
+
uppercase?: boolean;
|
|
514
536
|
testId?: string;
|
|
515
537
|
}
|
|
516
538
|
|
|
@@ -521,8 +543,9 @@ interface TextButtonProps$1 extends BaseProps {
|
|
|
521
543
|
TrailingIcon?: IconType;
|
|
522
544
|
iconColor?: string;
|
|
523
545
|
size?: ComponentSize;
|
|
546
|
+
uppercase?: boolean;
|
|
524
547
|
}
|
|
525
|
-
declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, onClick, }: TextButtonProps$1) => _emotion_react_jsx_runtime.JSX.Element;
|
|
548
|
+
declare const TextButton: ({ text, LeadingIcon, TrailingIcon, iconColor, disabled, type, size, uppercase, onClick, }: TextButtonProps$1) => _emotion_react_jsx_runtime.JSX.Element;
|
|
526
549
|
|
|
527
550
|
interface DiscountTagProps {
|
|
528
551
|
discount: number;
|
|
@@ -541,8 +564,9 @@ interface PriceLabelProps {
|
|
|
541
564
|
color?: string;
|
|
542
565
|
size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
543
566
|
discount?: DiscountTagProps;
|
|
567
|
+
testId?: string;
|
|
544
568
|
}
|
|
545
|
-
declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, size, }: PriceLabelProps) => JSX.Element;
|
|
569
|
+
declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, testId, size, }: PriceLabelProps) => JSX.Element;
|
|
546
570
|
|
|
547
571
|
interface ColorPickerProps {
|
|
548
572
|
options: ColorPickerOption[];
|
|
@@ -564,12 +588,13 @@ declare const MultiColorPicker: ({ options, label, selectedValue, onChange, }: M
|
|
|
564
588
|
interface ProductGalleryProps {
|
|
565
589
|
images: ImageType[];
|
|
566
590
|
selectedValue?: ImageType;
|
|
567
|
-
|
|
568
|
-
|
|
591
|
+
topTag?: JSX.Element;
|
|
592
|
+
bottomTag?: JSX.Element;
|
|
569
593
|
productImageDataTestId?: string;
|
|
570
594
|
previewListDataTestId?: string;
|
|
595
|
+
thumbnailPosition?: 'vertical' | 'horizontal';
|
|
571
596
|
}
|
|
572
|
-
declare const ProductGallery: ({ images, selectedValue,
|
|
597
|
+
declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, }: ProductGalleryProps) => JSX.Element;
|
|
573
598
|
|
|
574
599
|
interface RatingProps {
|
|
575
600
|
rating: number;
|
|
@@ -577,8 +602,10 @@ interface RatingProps {
|
|
|
577
602
|
reviews: number;
|
|
578
603
|
reviewsText: string;
|
|
579
604
|
wrapWithParenthesis?: boolean;
|
|
605
|
+
underline?: boolean;
|
|
606
|
+
reviewsContainerId?: string;
|
|
580
607
|
}
|
|
581
|
-
declare const Rating: ({ size, reviews, reviewsText, rating, wrapWithParenthesis, }: RatingProps) => JSX.Element;
|
|
608
|
+
declare const Rating: ({ size, reviews, reviewsText, rating, wrapWithParenthesis, underline, reviewsContainerId, }: RatingProps) => JSX.Element;
|
|
582
609
|
|
|
583
610
|
interface FitPredictorProps {
|
|
584
611
|
onClick: () => void;
|
|
@@ -1014,8 +1041,10 @@ declare type ThemeComponent = {
|
|
|
1014
1041
|
packSelector: {
|
|
1015
1042
|
borderRadius: string;
|
|
1016
1043
|
borderColor: string;
|
|
1017
|
-
|
|
1018
|
-
|
|
1044
|
+
highlightColor: string;
|
|
1045
|
+
selectedColor: string;
|
|
1046
|
+
selectedContrast: string;
|
|
1047
|
+
tagColor: string;
|
|
1019
1048
|
};
|
|
1020
1049
|
};
|
|
1021
1050
|
declare type ThemeTypography = {
|
|
@@ -1090,10 +1119,11 @@ interface MinimalisticProps {
|
|
|
1090
1119
|
discount: number;
|
|
1091
1120
|
offText: string;
|
|
1092
1121
|
widthAuto?: boolean;
|
|
1122
|
+
testId?: string;
|
|
1093
1123
|
}
|
|
1094
1124
|
|
|
1095
1125
|
declare const Bundle: {
|
|
1096
|
-
Minimalistic: ({ backgroundColor, borderColor, originalPrice, price, savingPrice, getMorePayLessText, youAreSavingText, getQtyForText, discount, offText, widthAuto, }: MinimalisticProps) => JSX.Element;
|
|
1126
|
+
Minimalistic: ({ backgroundColor, borderColor, originalPrice, price, savingPrice, getMorePayLessText, youAreSavingText, getQtyForText, discount, offText, widthAuto, testId, }: MinimalisticProps) => JSX.Element;
|
|
1097
1127
|
Simple: ({ title, freeShippingText, price, anyQtyForText, backgroundColor, widthAuto, }: SimpleProps) => JSX.Element;
|
|
1098
1128
|
};
|
|
1099
1129
|
|
|
@@ -1166,6 +1196,7 @@ interface BaseCTAProps {
|
|
|
1166
1196
|
size?: ComponentSize;
|
|
1167
1197
|
text: string;
|
|
1168
1198
|
type?: ButtonType;
|
|
1199
|
+
inline?: boolean;
|
|
1169
1200
|
testId?: string;
|
|
1170
1201
|
}
|
|
1171
1202
|
|
|
@@ -1314,19 +1345,22 @@ interface ReviewProps {
|
|
|
1314
1345
|
declare const Review: ({ reviewerName, date, rating, stars, title, description, image }: ReviewProps) => JSX.Element;
|
|
1315
1346
|
|
|
1316
1347
|
interface SliderNavigationProps {
|
|
1317
|
-
children: JSX.Element[]
|
|
1348
|
+
children: JSX.Element | JSX.Element[] | StyledComponent<any>;
|
|
1318
1349
|
infinite: boolean;
|
|
1319
1350
|
adaptiveHeight: boolean;
|
|
1320
|
-
dotsSize
|
|
1321
|
-
dotListMarginTop
|
|
1351
|
+
dotsSize?: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1352
|
+
dotListMarginTop?: number;
|
|
1322
1353
|
initialSlide?: number;
|
|
1323
1354
|
arrows?: {
|
|
1324
1355
|
arrowWidth: number;
|
|
1325
1356
|
arrowHeight: number;
|
|
1326
1357
|
arrowPadding: number;
|
|
1327
1358
|
};
|
|
1359
|
+
dots?: boolean;
|
|
1360
|
+
slidesToShow?: number;
|
|
1361
|
+
speed?: number;
|
|
1328
1362
|
}
|
|
1329
|
-
declare const SliderNavigation: ({ children, infinite, arrows, adaptiveHeight, dotsSize, dotListMarginTop, initialSlide, }: SliderNavigationProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1363
|
+
declare const SliderNavigation: ({ children, infinite, arrows, adaptiveHeight, dotsSize, dotListMarginTop, initialSlide, dots, slidesToShow, speed, }: SliderNavigationProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1330
1364
|
|
|
1331
1365
|
interface DropdownListIconsProps {
|
|
1332
1366
|
items: DropdownListIconsItem[];
|
|
@@ -1380,8 +1414,8 @@ interface ProductItemProps {
|
|
|
1380
1414
|
price: Pick<PriceLabelProps, 'finalPrice' | 'originalPrice' | 'color'>;
|
|
1381
1415
|
rating: Pick<RatingProps, 'rating' | 'reviews'>;
|
|
1382
1416
|
tags?: {
|
|
1383
|
-
categoryTagText
|
|
1384
|
-
seasonOfferTagText
|
|
1417
|
+
categoryTagText?: string;
|
|
1418
|
+
seasonOfferTagText?: string;
|
|
1385
1419
|
};
|
|
1386
1420
|
alignName?: 'left' | 'center';
|
|
1387
1421
|
url?: string;
|
|
@@ -1390,6 +1424,9 @@ interface ProductItemProps {
|
|
|
1390
1424
|
|
|
1391
1425
|
interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
1392
1426
|
size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
|
|
1427
|
+
topTag?: JSX.Element;
|
|
1428
|
+
bottomTag?: JSX.Element;
|
|
1429
|
+
onClick?: () => void;
|
|
1393
1430
|
}
|
|
1394
1431
|
|
|
1395
1432
|
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React.FC<P>, data: ProductItemProps[]): {
|
|
@@ -1398,7 +1435,7 @@ declare function withProductGrid<P extends ProductItemProps>(ProductItemComponen
|
|
|
1398
1435
|
};
|
|
1399
1436
|
|
|
1400
1437
|
declare const Collection: {
|
|
1401
|
-
ProductItemMobile: ({ title, image, price, rating, size,
|
|
1438
|
+
ProductItemMobile: ({ title, image, price, rating, size, alignName, url, className, topTag, bottomTag, onClick, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1402
1439
|
withProductGrid: typeof withProductGrid;
|
|
1403
1440
|
};
|
|
1404
1441
|
|
|
@@ -1556,6 +1593,7 @@ declare type TextTagProps = {
|
|
|
1556
1593
|
declare type TextProps = AriaAttributes & {
|
|
1557
1594
|
style?: CSSProperties;
|
|
1558
1595
|
className?: string;
|
|
1596
|
+
testId?: string;
|
|
1559
1597
|
} & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
|
|
1560
1598
|
|
|
1561
1599
|
interface SearchBarProps {
|
|
@@ -1563,19 +1601,23 @@ interface SearchBarProps {
|
|
|
1563
1601
|
resultOptions: SearchBarOptionItem[];
|
|
1564
1602
|
onChange: (text: string) => void;
|
|
1565
1603
|
onSearch: (term: string) => void;
|
|
1604
|
+
onClose: () => void;
|
|
1566
1605
|
resultsPanelDataTestId?: string;
|
|
1606
|
+
allResults?: number;
|
|
1607
|
+
initialTerm?: string;
|
|
1608
|
+
shouldClear?: boolean;
|
|
1567
1609
|
}
|
|
1568
|
-
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, }: SearchBarProps) => JSX.Element;
|
|
1610
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, onClose, resultsPanelDataTestId, allResults, initialTerm, shouldClear, }: SearchBarProps) => JSX.Element;
|
|
1569
1611
|
|
|
1570
1612
|
interface ProductGalleryMobileProps {
|
|
1571
1613
|
images: ImageType[];
|
|
1572
1614
|
selectedValue?: ImageType;
|
|
1573
|
-
|
|
1574
|
-
|
|
1615
|
+
topTag?: JSX.Element;
|
|
1616
|
+
bottomTag?: JSX.Element;
|
|
1575
1617
|
productImageDataTestId?: string;
|
|
1576
1618
|
slideDotsDataTestId?: string;
|
|
1577
1619
|
}
|
|
1578
|
-
declare const ProductGalleryMobile: ({ images, selectedValue,
|
|
1620
|
+
declare const ProductGalleryMobile: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, slideDotsDataTestId, }: ProductGalleryMobileProps) => JSX.Element;
|
|
1579
1621
|
|
|
1580
1622
|
interface RadioProps {
|
|
1581
1623
|
name: string;
|
|
@@ -1598,16 +1640,24 @@ declare const Portal: FC<PortalProps>;
|
|
|
1598
1640
|
declare type ModalProps = {
|
|
1599
1641
|
id: string;
|
|
1600
1642
|
dismissable?: boolean;
|
|
1643
|
+
maxFullScreen?: boolean;
|
|
1601
1644
|
};
|
|
1645
|
+
interface ContainerProps {
|
|
1646
|
+
maxFullScreen: boolean;
|
|
1647
|
+
opened?: boolean;
|
|
1648
|
+
}
|
|
1602
1649
|
declare const Overlay: _emotion_styled.StyledComponent<{
|
|
1603
1650
|
theme?: _emotion_react.Theme | undefined;
|
|
1604
1651
|
as?: React.ElementType<any> | undefined;
|
|
1605
|
-
} & {
|
|
1606
|
-
opened?: boolean | undefined;
|
|
1607
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1652
|
+
} & Pick<ContainerProps, "opened">, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1608
1653
|
declare const Modal: FC<ModalProps>;
|
|
1609
1654
|
declare const modalEvent: (id: string, detail: Omit<Events['modal'], 'id'>) => void;
|
|
1610
|
-
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1655
|
+
declare const useModalEvent: (id: string, cb: (event: CustomEvent<Events['modal']>) => void) => void;
|
|
1656
|
+
declare const useModal: (id: string) => {
|
|
1657
|
+
opened: boolean;
|
|
1658
|
+
open: () => void;
|
|
1659
|
+
close: () => void;
|
|
1660
|
+
};
|
|
1611
1661
|
|
|
1612
1662
|
interface CloseButtonProps {
|
|
1613
1663
|
onClick: () => void;
|
|
@@ -1646,8 +1696,9 @@ declare type QuantityPickerPropsUncontrolled = {
|
|
|
1646
1696
|
declare type QuantityPickerProps = {
|
|
1647
1697
|
initialValue?: number;
|
|
1648
1698
|
maxValue?: number;
|
|
1699
|
+
testId?: string;
|
|
1649
1700
|
} & (QuantityPickerPropsControlled | QuantityPickerPropsUncontrolled);
|
|
1650
|
-
declare const QuantityPicker: ({ initialValue, maxValue, value, onChange, }: QuantityPickerProps) => JSX.Element;
|
|
1701
|
+
declare const QuantityPicker: ({ initialValue, maxValue, value, testId, onChange, }: QuantityPickerProps) => JSX.Element;
|
|
1651
1702
|
|
|
1652
1703
|
declare type SpacingProps = {
|
|
1653
1704
|
size: number;
|
|
@@ -1675,6 +1726,29 @@ interface PackSelectorProps {
|
|
|
1675
1726
|
}
|
|
1676
1727
|
declare const PackSelector: FC<PackSelectorProps>;
|
|
1677
1728
|
|
|
1729
|
+
interface FiltersProps {
|
|
1730
|
+
values: Filter[];
|
|
1731
|
+
onChange: (newValues: Filter[], filtersState?: FilterChange) => void;
|
|
1732
|
+
tagsColor?: string;
|
|
1733
|
+
filterByText: string;
|
|
1734
|
+
clearAllText: string;
|
|
1735
|
+
filtersSelectText: string;
|
|
1736
|
+
isMobile: boolean;
|
|
1737
|
+
applyText: string;
|
|
1738
|
+
mobileBackArrowClick: () => void;
|
|
1739
|
+
mobileApplyButtonClick: () => void;
|
|
1740
|
+
onResetValues: () => void;
|
|
1741
|
+
}
|
|
1742
|
+
declare const Filters: ({ values, onChange, tagsColor, filterByText, clearAllText, isMobile, filtersSelectText, applyText, mobileApplyButtonClick, mobileBackArrowClick, onResetValues, }: FiltersProps) => JSX.Element;
|
|
1743
|
+
|
|
1744
|
+
interface SearchNavigationProps {
|
|
1745
|
+
returnText?: string;
|
|
1746
|
+
returnUrl?: string;
|
|
1747
|
+
steps?: string[];
|
|
1748
|
+
returnAction?: () => void;
|
|
1749
|
+
}
|
|
1750
|
+
declare const SearchNavigation: ({ returnText, returnUrl, steps, returnAction, }: SearchNavigationProps) => JSX.Element;
|
|
1751
|
+
|
|
1678
1752
|
declare global {
|
|
1679
1753
|
interface Events {
|
|
1680
1754
|
modal: {
|
|
@@ -1714,4 +1788,4 @@ declare const formatPrice: (value: number, { locale, currency }?: {
|
|
|
1714
1788
|
currency?: string | undefined;
|
|
1715
1789
|
}) => string;
|
|
1716
1790
|
|
|
1717
|
-
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, PackSelector, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spacing, Spinner, StarList, 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, useModalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|
|
1791
|
+
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, Color, 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, 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, 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 };
|
package/build/index.esm.css
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
.slick-slider{position:relative;display:block;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent;}.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0;}.slick-list:focus{outline:none;}.slick-list.dragging{cursor:pointer;cursor:hand;}.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}.slick-track{position:relative;top:0;left:0;display:block;margin-left:auto;margin-right:auto;}.slick-track:before,.slick-track:after{display:table;content:'';}.slick-track:after{clear:both;}.slick-loading .slick-track{visibility:hidden;}.slick-slide{display:none;float:left;height:100%;min-height:0.063rem;}[dir='rtl'] .slick-slide{float:right;}.slick-slide img{display:block;}.slick-slide.slick-loading img{display:none;}.slick-slide.dragging img{pointer-events:none;}.slick-initialized .slick-slide{display:block;}.slick-loading .slick-slide{visibility:hidden;}.slick-vertical .slick-slide{display:block;height:auto;border:0.063rem solid transparent;}.slick-arrow.slick-hidden{display:none;}
|
|
2
|
-
.slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:1.25rem;height:1.25rem;padding:0;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);cursor:pointer;color:transparent;border:none;outline:none;background:transparent;}.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent;}.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1;}.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:0.25;}.slick-prev:before,.slick-next:before{font-family:'slick';font-size:1.25rem;line-height:1;opacity:0.75;color:white;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-prev{left:-1.5rem;}[dir='rtl'] .slick-prev{right:-1.5rem;left:auto;}.slick-prev:before{content:'←';}[dir='rtl'] .slick-prev:before{content:'→';}.slick-next{right:-1.5rem;}[dir='rtl'] .slick-next{right:auto;left:-1.5rem;}.slick-next:before{content:'→';}[dir='rtl'] .slick-next:before{content:'←';}.slick-dotted.slick-slider{margin-bottom:1.875rem;}.slick-dots{position:absolute;bottom:-1.5rem;display:block;width:100%;padding:0;margin:0;list-style:none;text-align:center;}.slick-dots li{position:relative;display:inline-block;width:1.25rem;height:1.25rem;margin:0 0.313rem;padding:0;cursor:pointer;}.slick-dots li button{font-size:0;line-height:0;display:block;width:1.25rem;height:1.25rem;padding:0.313rem;cursor:pointer;color:transparent;border:0;outline:none;background:transparent;}.slick-dots li button:hover,.slick-dots li button:focus{outline:none;}.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1;}.slick-dots li button:before{font-family:'slick';font-size:0.375rem;line-height:1.25rem;position:absolute;top:0;left:0;width:1.25rem;height:1.25rem;content:'•';text-align:center;opacity:0.25;color:black;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-dots li.slick-active button:before{opacity:0.75;color:black;}
|
|
2
|
+
.slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:1.25rem;height:1.25rem;padding:0;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%);cursor:pointer;color:transparent;border:none;outline:none;background:transparent;}.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent;}.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1;}.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:0.25;}.slick-prev:before,.slick-next:before{font-family:'slick';font-size:1.25rem;line-height:1;opacity:0.75;color:white;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-prev{left:-1.5rem;}[dir='rtl'] .slick-prev{right:-1.5rem;left:auto;}.slick-prev:before{content:'←';}[dir='rtl'] .slick-prev:before{content:'→';}.slick-next{right:-1.5rem;}[dir='rtl'] .slick-next{right:auto;left:-1.5rem;}.slick-next:before{content:'→';}[dir='rtl'] .slick-next:before{content:'←';}.slick-dotted.slick-slider{margin-bottom:1.875rem;}.slick-dots{position:absolute;bottom:-1.5rem;display:block;width:100%;padding:0;margin:0;list-style:none;text-align:center;}.slick-dots li{position:relative;display:inline-block;width:1.25rem;height:1.25rem;margin:0 0.313rem;padding:0;cursor:pointer;}.slick-dots li button{font-size:0;line-height:0;display:block;width:1.25rem;height:1.25rem;padding:0.313rem;cursor:pointer;color:transparent;border:0;outline:none;background:transparent;}.slick-dots li button:hover,.slick-dots li button:focus{outline:none;}.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1;}.slick-dots li button:before{font-family:'slick';font-size:0.375rem;line-height:1.25rem;position:absolute;top:0;left:0;width:1.25rem;height:1.25rem;content:'•';text-align:center;opacity:0.25;color:black;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}.slick-dots li.slick-active button:before{opacity:0.75;color:black;}
|
|
3
|
+
.iiz{max-width:100%;margin:0;position:relative;overflow:hidden;display:inline-block;cursor:-webkit-zoom-in;cursor:zoom-in}.iiz--drag .iiz__zoom-img--visible{cursor:-webkit-grab;cursor:grab}.iiz__img{max-width:100%;height:auto;display:block;pointer-events:none;visibility:visible;opacity:1}.iiz__img--hidden{visibility:hidden;opacity:0}.iiz__img--abs{width:100%;height:100%;position:absolute;top:0;left:0;display:block}.iiz__zoom-img{width:auto!important;max-width:none!important;position:absolute;visibility:hidden;opacity:0;pointer-events:none;display:block}.iiz__zoom-img--visible{visibility:visible;opacity:1;pointer-events:auto;cursor:-webkit-zoom-out;cursor:zoom-out;-ms-touch-action:none;touch-action:none}.iiz__zoom-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000}.iiz__btn{background:rgba(255,255,255,.8);width:40px;height:40px;border:none;outline:0;padding:0;position:absolute;text-decoration:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-moz-appearance:none;-webkit-appearance:none;appearance:none}.iiz__btn:before{content:" ";background-position:center;background-repeat:no-repeat;display:block}.iiz__hint{bottom:10px;right:10px;pointer-events:none}.iiz__hint:before{content:" ";background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.9 19.9'%3E%3Cpath d='M13.9 7.4C13.9 3.8 11 .9 7.4.9S.9 3.8.9 7.4s2.9 6.5 6.5 6.5 6.5-2.9 6.5-6.5zm5.3 12.5l-6.7-7.2c-1.4 1.3-3.2 2.1-5.1 2.1-4.1 0-7.4-3.3-7.4-7.4S3.3 0 7.4 0s7.4 3.3 7.4 7.4c0 1.7-.6 3.4-1.7 4.7l6.8 7.2-.7.6z' fill='%23000222'/%3E%3C/svg%3E");width:20px;height:20px}.iiz__close{top:10px;right:10px;visibility:hidden;opacity:0}.iiz__close--visible{visibility:visible;opacity:1;cursor:pointer}.iiz__close::before{content:" ";width:29px;height:29px;background-image:-webkit-gradient(linear,left top,left bottom,from(#222),to(#222)),-webkit-gradient(linear,left top,left bottom,from(#222),to(#222));background-image:linear-gradient(#222,#222),linear-gradient(#222,#222);background-size:100% 1px,1px 100%;-webkit-transform:rotate(45deg);transform:rotate(45deg)}
|
|
4
|
+
.iiz{max-width:100%;margin:0;position:relative;overflow:hidden;display:inline-block;cursor:-webkit-zoom-in;cursor:zoom-in;}.zoomWrapper.iiz{max-height:510px;}.iiz--drag .iiz__zoom-img--visible{cursor:-webkit-grab;cursor:grab;}.iiz__img{max-width:100%;height:auto;display:block;pointer-events:none;visibility:visible;opacity:1;}.iiz__img--hidden{visibility:hidden;opacity:0;}.iiz__img--abs{width:100%;height:100%;position:absolute;top:0;left:0;display:block;}.iiz__zoom-img{width:auto!important;max-width:none!important;position:absolute;visibility:hidden;opacity:0;pointer-events:none;display:block;}.iiz__zoom-img--visible{visibility:visible;opacity:1;pointer-events:auto;cursor:-webkit-zoom-out;cursor:zoom-out;-ms-touch-action:none;touch-action:none;zoom:1.2;}.iiz__zoom-portal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;}.iiz__btn{background:rgba(255,255,255,0.8);max-width:95px;min-width:fit-content;height:32px;border:none;outline:none;padding:0 8px;position:absolute;z-index:5;text-decoration:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-moz-appearance:none;-webkit-appearance:none;appearance:none;}.iiz__btn:before{content:' ';background-position:center;background-repeat:no-repeat;display:block;}.iiz__hint{bottom:10%;right:0;pointer-events:none;border-radius:150px 0 0 150px;}.iiz__hint:before{content:'+';background-image:none;width:17px;height:17px;font-size:19px;border-radius:500px;border:2px solid #292929;display:inline-block;position:relative;text-align:center;line-height:17px;font-weight:600;}.iiz__hint:after{content:'Zoom in';font-size:14px;font-weight:600;display:inline-block;margin-left:5px;}.iiz__close{border-radius:150px;top:auto;right:0;left:0;margin:auto;bottom:20px;visibility:hidden;opacity:0;color:#292929;}.iiz__close--visible{visibility:visible;opacity:1;cursor:pointer;}.iiz__close::before{content:' ';width:16px;height:16px;background-image:-webkit-gradient(linear,left top,left bottom,from(#222),to(#222)),-webkit-gradient(linear,left top,left bottom,from(#222),to(#222));background-image:linear-gradient(#222,#222),linear-gradient(#222,#222);background-size:65% 2px,2px 65%;transform:rotate(45deg);border-radius:500px;border:2px solid #292929;}.iiz__close::after{content:'Close';font-size:14px;font-weight:600;display:inline-block;margin-left:5px;}
|