@trafilea/afrodita-components 4.0.2-beta.12 → 4.0.2-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  import React, { ReactNode, FC, ElementType, CSSProperties, AriaAttributes, AnchorHTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
3
3
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
4
4
  import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
5
+ import * as _emotion_styled from '@emotion/styled';
6
+ import * as _emotion_react from '@emotion/react';
5
7
 
6
8
  declare enum CardSectionType {
7
9
  Header = 0,
@@ -25,7 +27,7 @@ declare enum InputValidationType {
25
27
  Empty = 2
26
28
  }
27
29
 
28
- interface IconProps$1 {
30
+ interface IconProps {
29
31
  width?: number;
30
32
  height?: number;
31
33
  fill?: string;
@@ -74,7 +76,7 @@ declare type ImageType = {
74
76
  imageUrl: string;
75
77
  alt: string;
76
78
  };
77
- interface IconWithOpacityProps extends IconProps$1 {
79
+ interface IconWithOpacityProps extends IconProps {
78
80
  opacity?: number;
79
81
  }
80
82
  interface WithTestId {
@@ -105,7 +107,7 @@ interface SearchBarOptionItem {
105
107
  title: string;
106
108
  }
107
109
 
108
- declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps$1) => JSX.Element;
110
+ declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps) => JSX.Element;
109
111
 
110
112
  declare const Custom_SixtyDaysGuarantee: typeof SixtyDaysGuarantee;
111
113
  declare namespace Custom {
@@ -114,22 +116,22 @@ declare namespace Custom {
114
116
  };
115
117
  }
116
118
 
117
- declare const Check: ({ height, width, fill }: IconProps$1) => JSX.Element;
119
+ declare const Check: ({ height, width, fill }: IconProps) => JSX.Element;
118
120
 
119
- declare const ClearLight: ({ height, width, fill }: IconProps$1) => JSX.Element;
121
+ declare const ClearLight: ({ height, width, fill }: IconProps) => JSX.Element;
120
122
 
121
- declare const LightExclamation: ({ height, width, fill }: IconProps$1) => JSX.Element;
123
+ declare const LightExclamation: ({ height, width, fill }: IconProps) => JSX.Element;
122
124
 
123
- interface LightCheckProps extends IconProps$1 {
125
+ interface LightCheckProps extends IconProps {
124
126
  strokeWidth?: number;
125
127
  }
126
128
  declare const LightCheck: ({ height, width, fill, strokeWidth }: LightCheckProps) => JSX.Element;
127
129
 
128
- declare const Question: ({ height, width, fill }: IconProps$1) => JSX.Element;
130
+ declare const Question: ({ height, width, fill }: IconProps) => JSX.Element;
129
131
 
130
- declare const Close: ({ height, width, fill }: IconProps$1) => JSX.Element;
132
+ declare const Close: ({ height, width, fill }: IconProps) => JSX.Element;
131
133
 
132
- declare const Trash: ({ height, width, fill }: IconProps$1) => JSX.Element;
134
+ declare const Trash: ({ height, width, fill }: IconProps) => JSX.Element;
133
135
 
134
136
  declare const Actions_Check: typeof Check;
135
137
  declare const Actions_ClearLight: typeof ClearLight;
@@ -152,16 +154,16 @@ declare namespace Actions {
152
154
  };
153
155
  }
154
156
 
155
- declare const FitPredictor$1: ({ height, width, fill }: IconProps$1) => JSX.Element;
157
+ declare const FitPredictor$1: ({ height, width, fill }: IconProps) => JSX.Element;
156
158
 
157
- interface LoadingProps extends IconProps$1 {
159
+ interface LoadingProps extends IconProps {
158
160
  backgroundColor: string;
159
161
  }
160
162
  declare const Loading: ({ height, width, fill, backgroundColor }: LoadingProps) => JSX.Element;
161
163
 
162
- declare const Shapermint: ({ height, width }: IconProps$1) => JSX.Element;
164
+ declare const Shapermint: ({ height, width }: IconProps) => JSX.Element;
163
165
 
164
- declare const McAfee: ({ height, width }: IconProps$1) => JSX.Element;
166
+ declare const McAfee: ({ height, width }: IconProps) => JSX.Element;
165
167
 
166
168
  type Other_LoadingProps = LoadingProps;
167
169
  declare const Other_Loading: typeof Loading;
@@ -177,19 +179,19 @@ declare namespace Other {
177
179
  };
178
180
  }
179
181
 
180
- declare const ChevronDown: ({ height, width, fill }: IconProps$1) => JSX.Element;
182
+ declare const ChevronDown: ({ height, width, fill }: IconProps) => JSX.Element;
181
183
 
182
184
  declare const ChevronLeft: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
183
185
 
184
186
  declare const ChevronRight: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
185
187
 
186
- declare const ChevronRightVariant: ({ height, width, fill }: IconProps$1) => JSX.Element;
188
+ declare const ChevronRightVariant: ({ height, width, fill }: IconProps) => JSX.Element;
187
189
 
188
- declare const ChevronUp: ({ height, width, fill }: IconProps$1) => JSX.Element;
190
+ declare const ChevronUp: ({ height, width, fill }: IconProps) => JSX.Element;
189
191
 
190
- declare const ChevronUpSolid: ({ height, width, fill }: IconProps$1) => JSX.Element;
192
+ declare const ChevronUpSolid: ({ height, width, fill }: IconProps) => JSX.Element;
191
193
 
192
- declare const CircleUp: ({ width, height, fill }: IconProps$1) => JSX.Element;
194
+ declare const CircleUp: ({ width, height, fill }: IconProps) => JSX.Element;
193
195
 
194
196
  declare const Arrows_ChevronDown: typeof ChevronDown;
195
197
  declare const Arrows_ChevronLeft: typeof ChevronLeft;
@@ -210,25 +212,25 @@ declare namespace Arrows {
210
212
  };
211
213
  }
212
214
 
213
- declare const Clock: ({ height, width, fill }: IconProps$1) => JSX.Element;
215
+ declare const Clock: ({ height, width, fill }: IconProps) => JSX.Element;
214
216
 
215
- declare const FlagUSA: ({ height, width, fill }: IconProps$1) => JSX.Element;
217
+ declare const FlagUSA: ({ height, width, fill }: IconProps) => JSX.Element;
216
218
 
217
- declare const Minus: ({ height, width, fill, title }: IconProps$1) => JSX.Element;
219
+ declare const Minus: ({ height, width, fill, title }: IconProps) => JSX.Element;
218
220
 
219
- declare const Plus: ({ height, width, fill, title }: IconProps$1) => JSX.Element;
221
+ declare const Plus: ({ height, width, fill, title }: IconProps) => JSX.Element;
220
222
 
221
- declare const Rule: ({ width, height, fill }: IconProps$1) => JSX.Element;
223
+ declare const Rule: ({ width, height, fill }: IconProps) => JSX.Element;
222
224
 
223
- declare const Star: ({ height, width, fill }: IconProps$1) => JSX.Element;
225
+ declare const Star: ({ height, width, fill }: IconProps) => JSX.Element;
224
226
 
225
- declare const StarEmpty: ({ height, width, fill }: IconProps$1) => JSX.Element;
227
+ declare const StarEmpty: ({ height, width, fill }: IconProps) => JSX.Element;
226
228
 
227
- declare const StarHalf: ({ height, width, fill }: IconProps$1) => JSX.Element;
229
+ declare const StarHalf: ({ height, width, fill }: IconProps) => JSX.Element;
228
230
 
229
- declare const Stopwatch: ({ height, width, fill, title }: IconProps$1) => JSX.Element;
231
+ declare const Stopwatch: ({ height, width, fill, title }: IconProps) => JSX.Element;
230
232
 
231
- declare const Shipping: ({ height, width, fill }: IconProps$1) => JSX.Element;
233
+ declare const Shipping: ({ height, width, fill }: IconProps) => JSX.Element;
232
234
 
233
235
  declare const PDP_Clock: typeof Clock;
234
236
  declare const PDP_FlagUSA: typeof FlagUSA;
@@ -255,19 +257,19 @@ declare namespace PDP {
255
257
  };
256
258
  }
257
259
 
258
- declare const Facebook: ({ height, width, fill }: IconProps$1) => JSX.Element;
260
+ declare const Facebook: ({ height, width, fill }: IconProps) => JSX.Element;
259
261
 
260
- declare const FacebookSolid: ({ height, width, fill }: IconProps$1) => JSX.Element;
262
+ declare const FacebookSolid: ({ height, width, fill }: IconProps) => JSX.Element;
261
263
 
262
- declare const Instagram: ({ height, width, fill }: IconProps$1) => JSX.Element;
264
+ declare const Instagram: ({ height, width, fill }: IconProps) => JSX.Element;
263
265
 
264
- declare const InstagramSolid: ({ height, width, fill }: IconProps$1) => JSX.Element;
266
+ declare const InstagramSolid: ({ height, width, fill }: IconProps) => JSX.Element;
265
267
 
266
- declare const Pinterest: ({ height, width, fill }: IconProps$1) => JSX.Element;
268
+ declare const Pinterest: ({ height, width, fill }: IconProps) => JSX.Element;
267
269
 
268
- declare const Twitter: ({ height, width, fill }: IconProps$1) => JSX.Element;
270
+ declare const Twitter: ({ height, width, fill }: IconProps) => JSX.Element;
269
271
 
270
- declare const Youtube: ({ height, width, fill }: IconProps$1) => JSX.Element;
272
+ declare const Youtube: ({ height, width, fill }: IconProps) => JSX.Element;
271
273
 
272
274
  declare const SocialMedia_Facebook: typeof Facebook;
273
275
  declare const SocialMedia_FacebookSolid: typeof FacebookSolid;
@@ -288,13 +290,13 @@ declare namespace SocialMedia {
288
290
  };
289
291
  }
290
292
 
291
- declare const Search: ({ height, width, fill }: IconProps$1) => JSX.Element;
293
+ declare const Search: ({ height, width, fill }: IconProps) => JSX.Element;
292
294
 
293
- declare const User: ({ height, width, fill }: IconProps$1) => JSX.Element;
295
+ declare const User: ({ height, width, fill }: IconProps) => JSX.Element;
294
296
 
295
- declare const ShoppingBag: ({ height, width, fill }: IconProps$1) => JSX.Element;
297
+ declare const ShoppingBag: ({ height, width, fill }: IconProps) => JSX.Element;
296
298
 
297
- declare const MapMarker: ({ height, width, fill }: IconProps$1) => JSX.Element;
299
+ declare const MapMarker: ({ height, width, fill }: IconProps) => JSX.Element;
298
300
 
299
301
  declare const Navigation_Search: typeof Search;
300
302
  declare const Navigation_User: typeof User;
@@ -309,19 +311,11 @@ declare namespace Navigation {
309
311
  };
310
312
  }
311
313
 
312
- declare const QuestionCircle: ({ height, width, fill }: IconProps$1) => JSX.Element;
313
-
314
- declare const Messenger: ({ height, width, fill }: IconProps$1) => JSX.Element;
314
+ declare const QuestionCircle: ({ height, width, fill }: IconProps) => JSX.Element;
315
315
 
316
- declare const Comment: ({ height, width, fill }: IconProps$1) => JSX.Element;
316
+ declare const Messenger: ({ height, width, fill }: IconProps) => JSX.Element;
317
317
 
318
- interface IconProps {
319
- width?: number;
320
- height?: number;
321
- fill?: string;
322
- title?: string;
323
- }
324
- declare const Message: ({ height, width, fill }: IconProps) => JSX.Element;
318
+ declare const Comment: ({ height, width, fill }: IconProps) => JSX.Element;
325
319
 
326
320
  interface IconWrapperProps {
327
321
  width?: number;
@@ -339,21 +333,19 @@ declare const Mail: ({ height, width }: IconWrapperProps) => JSX.Element;
339
333
  declare const Messaging_QuestionCircle: typeof QuestionCircle;
340
334
  declare const Messaging_Messenger: typeof Messenger;
341
335
  declare const Messaging_Comment: typeof Comment;
342
- declare const Messaging_Message: typeof Message;
343
336
  declare const Messaging_Mail: typeof Mail;
344
337
  declare namespace Messaging {
345
338
  export {
346
339
  Messaging_QuestionCircle as QuestionCircle,
347
340
  Messaging_Messenger as Messenger,
348
341
  Messaging_Comment as Comment,
349
- Messaging_Message as Message,
350
342
  Messaging_Mail as Mail,
351
343
  };
352
344
  }
353
345
 
354
- declare const AppleStore: ({ height, width }: IconProps$1) => JSX.Element;
346
+ declare const AppleStore: ({ height, width }: IconProps) => JSX.Element;
355
347
 
356
- declare const GooglePlay: ({ height, width }: IconProps$1) => JSX.Element;
348
+ declare const GooglePlay: ({ height, width }: IconProps) => JSX.Element;
357
349
 
358
350
  declare const Download_AppleStore: typeof AppleStore;
359
351
  declare const Download_GooglePlay: typeof GooglePlay;
@@ -364,23 +356,23 @@ declare namespace Download {
364
356
  };
365
357
  }
366
358
 
367
- declare const Visa: ({ height, width }: IconProps$1) => JSX.Element;
359
+ declare const Visa: ({ height, width }: IconProps) => JSX.Element;
368
360
 
369
- declare const MasterCard: ({ height, width }: IconProps$1) => JSX.Element;
361
+ declare const MasterCard: ({ height, width }: IconProps) => JSX.Element;
370
362
 
371
- declare const AMEX: ({ height, width }: IconProps$1) => JSX.Element;
363
+ declare const Amex: ({ height, width }: IconProps) => JSX.Element;
372
364
 
373
- declare const JCB: ({ height, width }: IconProps$1) => JSX.Element;
365
+ declare const JCB: ({ height, width }: IconProps) => JSX.Element;
374
366
 
375
- declare const Paypal: ({ height, width }: IconProps$1) => JSX.Element;
367
+ declare const Paypal: ({ height, width }: IconProps) => JSX.Element;
376
368
 
377
- declare const Klarna: ({ height, width }: IconProps$1) => JSX.Element;
369
+ declare const Klarna: ({ height, width }: IconProps) => JSX.Element;
378
370
 
379
- declare const Amazon: ({ height, width }: IconProps$1) => JSX.Element;
371
+ declare const Amazon: ({ height, width }: IconProps) => JSX.Element;
380
372
 
381
373
  declare const Payment_Visa: typeof Visa;
382
374
  declare const Payment_MasterCard: typeof MasterCard;
383
- declare const Payment_AMEX: typeof AMEX;
375
+ declare const Payment_Amex: typeof Amex;
384
376
  declare const Payment_JCB: typeof JCB;
385
377
  declare const Payment_Paypal: typeof Paypal;
386
378
  declare const Payment_Klarna: typeof Klarna;
@@ -389,7 +381,7 @@ declare namespace Payment {
389
381
  export {
390
382
  Payment_Visa as Visa,
391
383
  Payment_MasterCard as MasterCard,
392
- Payment_AMEX as AMEX,
384
+ Payment_Amex as Amex,
393
385
  Payment_JCB as JCB,
394
386
  Payment_Paypal as Paypal,
395
387
  Payment_Klarna as Klarna,
@@ -406,7 +398,7 @@ declare namespace SlideDots {
406
398
  };
407
399
  }
408
400
 
409
- declare type IconType = ({ height, width, fill }: IconProps$1) => JSX.Element;
401
+ declare type IconType = ({ height, width, fill }: IconProps) => JSX.Element;
410
402
  declare const Icon: {
411
403
  Custom: typeof Custom;
412
404
  Arrows: typeof Arrows;
@@ -1546,6 +1538,52 @@ declare type PortalProps = {
1546
1538
  };
1547
1539
  declare const Portal: FC<PortalProps>;
1548
1540
 
1541
+ declare type ModalProps = {
1542
+ id: string;
1543
+ dismissable?: boolean;
1544
+ };
1545
+ declare const Overlay: _emotion_styled.StyledComponent<{
1546
+ theme?: _emotion_react.Theme | undefined;
1547
+ as?: React.ElementType<any> | undefined;
1548
+ } & {
1549
+ opened?: boolean | undefined;
1550
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1551
+ declare const Modal: FC<ModalProps>;
1552
+ declare type ModalEventDetail = {
1553
+ id: string;
1554
+ type: 'open' | 'close';
1555
+ };
1556
+ declare const modalEvent: (id: string, detail: Omit<ModalEventDetail, 'id'>) => void;
1557
+ declare global {
1558
+ interface WindowEventMap {
1559
+ modal: CustomEvent<ModalEventDetail>;
1560
+ }
1561
+ }
1562
+
1563
+ interface CloseButtonProps {
1564
+ onClick: () => void;
1565
+ }
1566
+
1567
+ interface DescriptionProps {
1568
+ text: string;
1569
+ }
1570
+
1571
+ interface PromoProps {
1572
+ text: string;
1573
+ }
1574
+
1575
+ interface TitleProps {
1576
+ title: string;
1577
+ }
1578
+
1579
+ declare const CartProductItem: {
1580
+ Title: ({ title }: TitleProps) => JSX.Element;
1581
+ Tag: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
1582
+ Promo: ({ text }: PromoProps) => JSX.Element;
1583
+ Description: ({ text }: DescriptionProps) => JSX.Element;
1584
+ CloseButton: ({ onClick }: CloseButtonProps) => JSX.Element;
1585
+ };
1586
+
1549
1587
  declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
1550
1588
 
1551
1589
  declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
@@ -1556,4 +1594,4 @@ declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
1556
1594
  };
1557
1595
  };
1558
1596
 
1559
- export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, FitPredictor, Icon, IconButton, IconProps$1 as IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, MultiColorPicker, OfferBanner, OrderBar, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
1597
+ 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, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, modalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };