@trafilea/afrodita-components 6.3.0 → 6.4.1

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
@@ -1219,7 +1219,7 @@ declare type Theme = {
1219
1219
  };
1220
1220
  declare type ThemeBreakpoints = {
1221
1221
  mobile: number;
1222
- tablet?: number;
1222
+ tablet: number;
1223
1223
  desktop: number;
1224
1224
  };
1225
1225
  declare type ThemeBasicPallete = {
@@ -1756,9 +1756,13 @@ declare type ThemeComponent = {
1756
1756
  borderRadius?: string;
1757
1757
  maxWidth?: string;
1758
1758
  onMobile: {
1759
+ position?: string;
1759
1760
  maxWidth?: string;
1760
1761
  padding?: string;
1761
1762
  backgroundColor?: string;
1763
+ titleHeight?: string;
1764
+ boxShadow?: string;
1765
+ borderRadius?: string;
1762
1766
  };
1763
1767
  };
1764
1768
  expressCheckout: {
@@ -1943,7 +1947,14 @@ declare type ThemeAssets = {
1943
1947
  };
1944
1948
  };
1945
1949
  [key: string]: any;
1946
- };
1950
+ };
1951
+ declare const Viewports: {
1952
+ readonly mobile: "mobile";
1953
+ readonly tablet: "tablet";
1954
+ readonly desktop: "desktop";
1955
+ readonly desktopLarge: "desktopLarge";
1956
+ };
1957
+ declare type Viewport = typeof Viewports[keyof typeof Viewports];
1947
1958
 
1948
1959
  declare type ThemeProviderProps = {
1949
1960
  isSameOriginIcons?: boolean;
@@ -2963,18 +2974,21 @@ interface SizeFitGuideProps {
2963
2974
  fitPercentage?: number;
2964
2975
  onClick: () => void;
2965
2976
  onClickFitPercentage?: () => void;
2977
+ hideIcon?: boolean;
2966
2978
  }
2967
- declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, }: SizeFitGuideProps) => JSX.Element;
2979
+ declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, hideIcon, }: SizeFitGuideProps) => JSX.Element;
2968
2980
 
2969
2981
  interface SizeSelectorProps {
2970
2982
  label: string;
2971
2983
  sizes: SizeOption[];
2972
2984
  selectedValue: SizeOption;
2973
2985
  onChange: (size: SizeOption) => void;
2986
+ onClickSizeTip?: () => void;
2974
2987
  inline?: boolean;
2975
2988
  width?: string;
2989
+ hasSizeGuide?: boolean;
2976
2990
  }
2977
- declare const SizeSelector: ({ label, sizes, selectedValue, onChange, inline, width, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
2991
+ declare const SizeSelector: ({ label, sizes, selectedValue, onChange, onClickSizeTip, inline, width, hasSizeGuide, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
2978
2992
 
2979
2993
  interface SliderNavigationProps {
2980
2994
  children: JSX.Element | JSX.Element[] | StyledComponent<any>;
@@ -3243,6 +3257,7 @@ interface TooltipProps {
3243
3257
  };
3244
3258
  backgroundColor?: string;
3245
3259
  maxWidth?: string;
3260
+ showCloseIcon?: boolean;
3246
3261
  header?: {
3247
3262
  title: string;
3248
3263
  titleColor?: string;
@@ -3250,8 +3265,9 @@ interface TooltipProps {
3250
3265
  iconFill?: string;
3251
3266
  };
3252
3267
  onClick?: () => void;
3268
+ withArrow?: boolean;
3253
3269
  }
3254
- declare const Tooltip: ({ children, position, content, backgroundColor, align, maxWidth, onClick, header, }: TooltipProps) => JSX.Element;
3270
+ declare const Tooltip: ({ children, position, content, backgroundColor, showCloseIcon, align, maxWidth, onClick, header, withArrow, }: TooltipProps) => JSX.Element;
3255
3271
 
3256
3272
  declare type SubtotalOption = {
3257
3273
  label: string;
@@ -3338,8 +3354,9 @@ declare const Spinner: React.FC<SpinnerProps>;
3338
3354
 
3339
3355
  declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
3340
3356
 
3341
- declare type Viewport = 'mobile' | 'tablet' | 'desktop';
3342
- declare type UseWindowDimensions = (breakpoints: ThemeBreakpoints, shouldListenChanges?: boolean) => {
3357
+ declare type UseWindowDimensions = (breakpoints?: ThemeBreakpoints, options?: {
3358
+ shouldListenChanges?: boolean;
3359
+ }) => {
3343
3360
  viewport: Viewport;
3344
3361
  isMobile: boolean;
3345
3362
  isTablet: boolean;