@trafilea/afrodita-components 4.0.1-beta.0 → 4.0.2-beta.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.
@@ -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,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<{
package/build/index.d.ts CHANGED
@@ -448,11 +448,13 @@ declare type SimpleDropdownProps<T> = CommonProps<T> & ConditionalProps<T>;
448
448
  declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, }: SimpleDropdownProps<T>): JSX.Element;
449
449
 
450
450
  interface SizeSelectorProps {
451
+ label: string;
451
452
  sizes: SizeOption[];
452
453
  selectedValue: SizeOption;
453
454
  onChange: (size: SizeOption) => void;
455
+ inline?: boolean;
454
456
  }
455
- declare const SizeSelector: ({ sizes, selectedValue, onChange }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
457
+ declare const SizeSelector: ({ label, sizes, selectedValue, onChange, inline, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
456
458
 
457
459
  interface SizeFitGuideProps {
458
460
  title: string;
@@ -507,8 +509,9 @@ interface ColorPickerProps {
507
509
  selectedValue?: ColorPickerOption;
508
510
  label: string;
509
511
  onChange: (color: ColorPickerOption) => void;
512
+ inline?: boolean;
510
513
  }
511
- declare const SingleColorPicker: ({ options, selectedValue, label, onChange }: ColorPickerProps) => JSX.Element;
514
+ declare const SingleColorPicker: ({ options, selectedValue, label, onChange, inline, }: ColorPickerProps) => _emotion_react_jsx_runtime.JSX.Element;
512
515
 
513
516
  interface MultiColorPickerProps {
514
517
  options?: ColorPickerOption[];
@@ -991,7 +994,7 @@ declare type TextDisplayProps = {
991
994
  };
992
995
  declare type TextHeadingProps = {
993
996
  variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
994
- weight: 'bold' | 'demi' | 'regular';
997
+ weight?: 'bold' | 'demi' | 'regular';
995
998
  size?: 'regular';
996
999
  underline?: never;
997
1000
  disabled?: never;
@@ -1088,7 +1091,7 @@ declare const ThemeProvider: FC<{
1088
1091
  }>;
1089
1092
  declare const useTheme: () => Theme;
1090
1093
  declare const ThemeVariables: FC<{
1091
- theme: any;
1094
+ theme: Theme;
1092
1095
  Container?: ElementType;
1093
1096
  }>;
1094
1097
  declare const AssetsProvider: FC<{