@trafilea/afrodita-components 4.0.0-beta.0 → 4.0.2-beta.0

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.
@@ -0,0 +1,7 @@
1
+ import { Story } from '@storybook/react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: null;
5
+ };
6
+ export default _default;
7
+ export declare const Demo: Story<{}>;
@@ -1,16 +1,16 @@
1
1
  import { Theme } from 'src/core/theme/Theme';
2
2
  export declare const AccordionStyles: {
3
- baseStyles: import("@emotion/react").SerializedStyles;
4
- simple: (theme: Theme, disabled: boolean) => import("@emotion/react").SerializedStyles;
5
- box: (theme: Theme, disabled: boolean) => import("@emotion/react").SerializedStyles;
3
+ baseStyles: import("@emotion/utils").SerializedStyles;
4
+ simple: (theme: Theme, disabled: boolean) => import("@emotion/utils").SerializedStyles;
5
+ box: (theme: Theme, disabled: boolean) => import("@emotion/utils").SerializedStyles;
6
6
  };
7
7
  export declare const AccordionSummaryStyles: {
8
- baseStyles: import("@emotion/react").SerializedStyles;
9
- simple: (theme: Theme, disabled: boolean) => import("@emotion/react").SerializedStyles;
10
- box: (theme: Theme, disabled: boolean) => import("@emotion/react").SerializedStyles;
8
+ baseStyles: import("@emotion/utils").SerializedStyles;
9
+ simple: (theme: Theme, disabled: boolean) => import("@emotion/utils").SerializedStyles;
10
+ box: (theme: Theme, disabled: boolean) => import("@emotion/utils").SerializedStyles;
11
11
  };
12
12
  export declare const AccordionDetailsStyles: {
13
- baseStyles: import("@emotion/react").SerializedStyles;
14
- simple: (theme: Theme) => import("@emotion/react").SerializedStyles;
15
- box: (theme: Theme) => import("@emotion/react").SerializedStyles;
13
+ baseStyles: import("@emotion/utils").SerializedStyles;
14
+ simple: (theme: Theme) => import("@emotion/utils").SerializedStyles;
15
+ box: (theme: Theme) => import("@emotion/utils").SerializedStyles;
16
16
  };
@@ -1,9 +1,9 @@
1
1
  import { Theme } from 'src/core/theme/Theme';
2
2
  export declare const CustomCheckboxStyles: {
3
- baseStyles: import("@emotion/react").SerializedStyles;
4
- small: (theme: Theme) => import("@emotion/react").SerializedStyles;
5
- medium: (theme: Theme) => import("@emotion/react").SerializedStyles;
6
- large: (theme: Theme) => import("@emotion/react").SerializedStyles;
7
- primary: (theme: Theme, isChecked: boolean, disabled: boolean) => import("@emotion/react").SerializedStyles;
8
- secondary: (theme: Theme, isChecked: boolean, disabled: boolean) => import("@emotion/react").SerializedStyles;
3
+ baseStyles: import("@emotion/utils").SerializedStyles;
4
+ small: (theme: Theme) => import("@emotion/utils").SerializedStyles;
5
+ medium: (theme: Theme) => import("@emotion/utils").SerializedStyles;
6
+ large: (theme: Theme) => import("@emotion/utils").SerializedStyles;
7
+ primary: (theme: Theme, isChecked: boolean, disabled: boolean) => import("@emotion/utils").SerializedStyles;
8
+ secondary: (theme: Theme, isChecked: boolean, disabled: boolean) => import("@emotion/utils").SerializedStyles;
9
9
  };
@@ -12,8 +12,9 @@ interface ColorPickerProps {
12
12
  value?: ColorPickerOption | Set<ColorPickerOption>;
13
13
  onChange: (selectedOption: ColorPickerOption) => void;
14
14
  children: ReactNode;
15
+ className?: string;
15
16
  }
16
- declare const _default: (({ value, onChange, children }: ColorPickerProps) => JSX.Element) & {
17
+ declare const _default: (({ value, onChange, children, className }: ColorPickerProps) => JSX.Element) & {
17
18
  Label: ({ label, values }: LabelProps) => JSX.Element;
18
19
  Option: ({ value, children }: OptionProps) => JSX.Element;
19
20
  OptionsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerOption } from '../../types/types';
3
2
  export interface ColorPickerProps {
4
3
  options: ColorPickerOption[];
5
4
  selectedValue?: ColorPickerOption;
6
5
  label: string;
7
6
  onChange: (color: ColorPickerOption) => void;
7
+ inline?: boolean;
8
8
  }
9
- declare const SingleColorPicker: ({ options, selectedValue, label, onChange }: ColorPickerProps) => JSX.Element;
9
+ declare const SingleColorPicker: ({ options, selectedValue, label, onChange, inline, }: ColorPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
10
  export default SingleColorPicker;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ options, selectedValue, label, onChange }: import("./SingleColorPicker").ColorPickerProps) => JSX.Element;
4
+ component: ({ options, selectedValue, label, onChange, inline, }: import("./SingleColorPicker").ColorPickerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
5
  };
6
6
  export default _default;
7
7
  export declare const Default: () => JSX.Element;
8
- export declare const DefaultSelectedValue: () => JSX.Element;
8
+ export declare const Inline: () => JSX.Element;
9
9
  export declare const OutOfStock: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- import { ThemeProvider, ThemeVariables, useTheme, useThemeAssets } from 'src/core/theme/Theme';
2
1
  import { Icon } from './icons';
3
2
  import { Card } from './shared/card';
4
3
  import { ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline } from './cta';
@@ -46,4 +45,4 @@ import { Pagination } from './pagination/Pagination';
46
45
  import Text from './text/Text';
47
46
  import { SearchBar } from './search-bar';
48
47
  import ProductGalleryMobile from './mobile/gallery/ProductGalleryMobile';
49
- export { ThemeProvider, ThemeVariables, useTheme, useThemeAssets, Icon, Card, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, SimpleDropdown, SizeSelector, SizeFitGuide, TextButton, DiscountTag, PriceLabel, SingleColorPicker, MultiColorPicker, ProductGallery, Rating, FitPredictor, ProgressBar, IconButton, Tooltip, Accordion, Checkbox, RadioGroupInput, Bundle, CategoryTag, SeasonOfferTag, Timer, Input, PaymentMethod, OfferBanner, Totals, DeliveryDetails, ScrollToTop, OrderBar, SizeTable, SimpleOrderItem, Review, SliderNavigation, DropdownListIcons, Image, AmazonButton, PaypalButton, CrossSell, Collection, StarList, Drawer, Spinner, FilteringTags, FilteringDropdown, Pagination, Text, SearchBar, ProductGalleryMobile, };
48
+ export { Icon, Card, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, SimpleDropdown, SizeSelector, SizeFitGuide, TextButton, DiscountTag, PriceLabel, SingleColorPicker, MultiColorPicker, ProductGallery, Rating, FitPredictor, ProgressBar, IconButton, Tooltip, Accordion, Checkbox, RadioGroupInput, Bundle, CategoryTag, SeasonOfferTag, Timer, Input, PaymentMethod, OfferBanner, Totals, DeliveryDetails, ScrollToTop, OrderBar, SizeTable, SimpleOrderItem, Review, SliderNavigation, DropdownListIcons, Image, AmazonButton, PaypalButton, CrossSell, Collection, StarList, Drawer, Spinner, FilteringTags, FilteringDropdown, Pagination, Text, SearchBar, ProductGalleryMobile, };
@@ -1,13 +1,13 @@
1
1
  import { Theme } from 'src/core/theme/Theme';
2
2
  export declare const CustomRadioStyles: {
3
- baseStyles: (theme: Theme, disabled: boolean) => import("@emotion/react").SerializedStyles;
4
- small: (theme: Theme, active: boolean) => import("@emotion/react").SerializedStyles;
5
- medium: (theme: Theme, active: boolean) => import("@emotion/react").SerializedStyles;
6
- large: (theme: Theme, active: boolean) => import("@emotion/react").SerializedStyles;
3
+ baseStyles: (theme: Theme, disabled: boolean) => import("@emotion/utils").SerializedStyles;
4
+ small: (theme: Theme, active: boolean) => import("@emotion/utils").SerializedStyles;
5
+ medium: (theme: Theme, active: boolean) => import("@emotion/utils").SerializedStyles;
6
+ large: (theme: Theme, active: boolean) => import("@emotion/utils").SerializedStyles;
7
7
  };
8
8
  export declare const ContainerStyles: {
9
- baseStyles: import("@emotion/react").SerializedStyles;
10
- small: (theme: Theme) => import("@emotion/react").SerializedStyles;
11
- medium: (theme: Theme) => import("@emotion/react").SerializedStyles;
12
- large: (theme: Theme) => import("@emotion/react").SerializedStyles;
9
+ baseStyles: import("@emotion/utils").SerializedStyles;
10
+ small: (theme: Theme) => import("@emotion/utils").SerializedStyles;
11
+ medium: (theme: Theme) => import("@emotion/utils").SerializedStyles;
12
+ large: (theme: Theme) => import("@emotion/utils").SerializedStyles;
13
13
  };
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StarStyles: {
3
- baseStyles: () => import("@emotion/react").SerializedStyles;
4
- xsmall: () => import("@emotion/react").SerializedStyles;
5
- small: () => import("@emotion/react").SerializedStyles;
6
- medium: () => import("@emotion/react").SerializedStyles;
7
- large: () => import("@emotion/react").SerializedStyles;
3
+ baseStyles: () => import("@emotion/utils").SerializedStyles;
4
+ xsmall: () => import("@emotion/utils").SerializedStyles;
5
+ small: () => import("@emotion/utils").SerializedStyles;
6
+ medium: () => import("@emotion/utils").SerializedStyles;
7
+ large: () => import("@emotion/utils").SerializedStyles;
8
8
  };
9
9
  export declare const Container: import("@emotion/styled").StyledComponent<{
10
10
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { Theme } from 'src/core/theme/Theme';
3
3
  export declare const LabelStyles: {
4
- baseStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
5
- xsmall: (theme: Theme) => import("@emotion/react").SerializedStyles;
6
- small: (theme: Theme) => import("@emotion/react").SerializedStyles;
7
- medium: (theme: Theme) => import("@emotion/react").SerializedStyles;
8
- large: (theme: Theme) => import("@emotion/react").SerializedStyles;
4
+ baseStyles: (theme: Theme) => import("@emotion/utils").SerializedStyles;
5
+ xsmall: (theme: Theme) => import("@emotion/utils").SerializedStyles;
6
+ small: (theme: Theme) => import("@emotion/utils").SerializedStyles;
7
+ medium: (theme: Theme) => import("@emotion/utils").SerializedStyles;
8
+ large: (theme: Theme) => import("@emotion/utils").SerializedStyles;
9
9
  };
10
10
  export declare const Container: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,7 +1,7 @@
1
1
  import { Theme } from 'src/core/theme/Theme';
2
- export declare const baseStyles: import("@emotion/react").SerializedStyles;
3
- export declare const regular: (theme: Theme) => import("@emotion/react").SerializedStyles;
4
- export declare const demi: (theme: Theme) => import("@emotion/react").SerializedStyles;
5
- export declare const small: (theme: Theme) => import("@emotion/react").SerializedStyles;
6
- export declare const medium: (theme: Theme) => import("@emotion/react").SerializedStyles;
7
- export declare const large: (theme: Theme) => import("@emotion/react").SerializedStyles;
2
+ export declare const baseStyles: import("@emotion/utils").SerializedStyles;
3
+ export declare const regular: (theme: Theme) => import("@emotion/utils").SerializedStyles;
4
+ export declare const demi: (theme: Theme) => import("@emotion/utils").SerializedStyles;
5
+ export declare const small: (theme: Theme) => import("@emotion/utils").SerializedStyles;
6
+ export declare const medium: (theme: Theme) => import("@emotion/utils").SerializedStyles;
7
+ export declare const large: (theme: Theme) => import("@emotion/utils").SerializedStyles;
@@ -1,8 +1,10 @@
1
1
  import { SizeOption } from '../../../types/types';
2
2
  export interface SizeSelectorProps {
3
+ label: string;
3
4
  sizes: SizeOption[];
4
5
  selectedValue: SizeOption;
5
6
  onChange: (size: SizeOption) => void;
7
+ inline?: boolean;
6
8
  }
7
- declare const SizeSelector: ({ sizes, selectedValue, onChange }: SizeSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ declare const SizeSelector: ({ label, sizes, selectedValue, onChange, inline, }: SizeSelectorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
10
  export default SizeSelector;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ sizes, selectedValue, onChange }: import("./SizeSelector").SizeSelectorProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
+ component: ({ label, sizes, selectedValue, onChange, inline, }: import("./SizeSelector").SizeSelectorProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
5
  };
6
6
  export default _default;
7
7
  export declare const Default: () => JSX.Element;
8
+ export declare const Inline: () => JSX.Element;
@@ -23,7 +23,7 @@ declare type TextDisplayProps = {
23
23
  };
24
24
  declare type TextHeadingProps = {
25
25
  variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
26
- weight: 'bold' | 'demi' | 'regular';
26
+ weight?: 'bold' | 'demi' | 'regular';
27
27
  size?: 'regular';
28
28
  underline?: never;
29
29
  disabled?: never;
@@ -5,7 +5,7 @@ export declare const ThemeProvider: FC<{
5
5
  }>;
6
6
  export declare const useTheme: () => Theme;
7
7
  export declare const ThemeVariables: FC<{
8
- theme: any;
8
+ theme: Theme;
9
9
  Container?: ElementType;
10
10
  }>;
11
11
  export declare const AssetsProvider: FC<{
@@ -1,4 +1,5 @@
1
1
  export * from './components';
2
+ export * from './core/theme/Theme';
2
3
  export * from './types/enums';
3
4
  export * from './types/types';
4
5
  export * from './hooks';