@trafilea/afrodita-components 4.0.2-beta.14 → 4.0.2-beta.18

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
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
- import React, { ReactNode, FC, ElementType, CSSProperties, AriaAttributes, AnchorHTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
2
+ import React, { FC, ReactNode, 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,
@@ -294,18 +296,26 @@ declare const User: ({ height, width, fill }: IconProps) => JSX.Element;
294
296
 
295
297
  declare const ShoppingBag: ({ height, width, fill }: IconProps) => JSX.Element;
296
298
 
299
+ declare const ShoppingCart: FC<IconProps>;
300
+
297
301
  declare const MapMarker: ({ height, width, fill }: IconProps) => JSX.Element;
298
302
 
303
+ declare const Hamburger: FC<IconProps>;
304
+
299
305
  declare const Navigation_Search: typeof Search;
300
306
  declare const Navigation_User: typeof User;
301
307
  declare const Navigation_ShoppingBag: typeof ShoppingBag;
308
+ declare const Navigation_ShoppingCart: typeof ShoppingCart;
302
309
  declare const Navigation_MapMarker: typeof MapMarker;
310
+ declare const Navigation_Hamburger: typeof Hamburger;
303
311
  declare namespace Navigation {
304
312
  export {
305
313
  Navigation_Search as Search,
306
314
  Navigation_User as User,
307
315
  Navigation_ShoppingBag as ShoppingBag,
316
+ Navigation_ShoppingCart as ShoppingCart,
308
317
  Navigation_MapMarker as MapMarker,
318
+ Navigation_Hamburger as Hamburger,
309
319
  };
310
320
  }
311
321
 
@@ -1231,13 +1241,14 @@ interface ProductOrderItemProps {
1231
1241
  src: string;
1232
1242
  alt: string;
1233
1243
  };
1244
+ quantity?: number;
1234
1245
  price: Price;
1235
1246
  tag?: {
1236
1247
  text: string;
1237
1248
  backgroundColor: string;
1238
1249
  };
1239
1250
  }
1240
- declare const SimpleOrderItem: ({ title, subtitle, image, price, tag }: ProductOrderItemProps) => JSX.Element;
1251
+ declare const SimpleOrderItem: ({ title, subtitle, image, price, tag, quantity, }: ProductOrderItemProps) => JSX.Element;
1241
1252
 
1242
1253
  interface ReviewProps {
1243
1254
  reviewerName: string;
@@ -1536,6 +1547,67 @@ declare type PortalProps = {
1536
1547
  };
1537
1548
  declare const Portal: FC<PortalProps>;
1538
1549
 
1550
+ declare type ModalProps = {
1551
+ id: string;
1552
+ dismissable?: boolean;
1553
+ };
1554
+ declare const Overlay: _emotion_styled.StyledComponent<{
1555
+ theme?: _emotion_react.Theme | undefined;
1556
+ as?: React.ElementType<any> | undefined;
1557
+ } & {
1558
+ opened?: boolean | undefined;
1559
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
1560
+ declare const Modal: FC<ModalProps>;
1561
+ declare type ModalEventDetail = {
1562
+ id: string;
1563
+ type: 'open' | 'close';
1564
+ };
1565
+ declare const modalEvent: (id: string, detail: Omit<ModalEventDetail, 'id'>) => void;
1566
+ declare global {
1567
+ interface WindowEventMap {
1568
+ modal: CustomEvent<ModalEventDetail>;
1569
+ }
1570
+ }
1571
+
1572
+ interface CloseButtonProps {
1573
+ onClick: () => void;
1574
+ }
1575
+
1576
+ interface DescriptionProps {
1577
+ text: string;
1578
+ }
1579
+
1580
+ interface PromoProps {
1581
+ text: string;
1582
+ }
1583
+
1584
+ interface TitleProps {
1585
+ title: string;
1586
+ }
1587
+
1588
+ declare const CartProductItem: {
1589
+ Title: ({ title }: TitleProps) => JSX.Element;
1590
+ Tag: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
1591
+ Promo: ({ text }: PromoProps) => JSX.Element;
1592
+ Description: ({ text }: DescriptionProps) => JSX.Element;
1593
+ CloseButton: ({ onClick }: CloseButtonProps) => JSX.Element;
1594
+ };
1595
+
1596
+ declare type QuantityPickerPropsOnChange = (value: number) => void;
1597
+ declare type QuantityPickerPropsControlled = {
1598
+ value: number;
1599
+ onChange: QuantityPickerPropsOnChange;
1600
+ };
1601
+ declare type QuantityPickerPropsUncontrolled = {
1602
+ value?: never;
1603
+ onChange?: QuantityPickerPropsOnChange;
1604
+ };
1605
+ declare type QuantityPickerProps = {
1606
+ initialValue?: number;
1607
+ maxValue?: number;
1608
+ } & (QuantityPickerPropsControlled | QuantityPickerPropsUncontrolled);
1609
+ declare const QuantityPicker: ({ initialValue, maxValue, value, onChange, }: QuantityPickerProps) => JSX.Element;
1610
+
1539
1611
  declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
1540
1612
 
1541
1613
  declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
@@ -1546,4 +1618,4 @@ declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
1546
1618
  };
1547
1619
  };
1548
1620
 
1549
- 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, 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 };
1621
+ 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, QuantityPicker, 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 };