@trafilea/afrodita-components 4.0.1-beta.2 → 4.0.2-beta.3

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.
@@ -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,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;
@@ -83,7 +83,7 @@ declare type TextLabelProps = {
83
83
  } & LabelHTMLAttributes<'label'>;
84
84
  declare type TextTagProps = {
85
85
  variant: 'tag';
86
- size: 'regular' | 'small' | 'x-small';
86
+ size?: 'regular' | 'small' | 'x-small';
87
87
  weight?: 'regular' | 'demi' | 'bold';
88
88
  underline?: never;
89
89
  disabled?: boolean;
@@ -95,4 +95,5 @@ export declare type TextVariant = TextHeroProps['variant'] | TextDisplayProps['v
95
95
  export declare type TextWeight = 'heavy' | 'bold' | 'demi' | 'regular';
96
96
  export declare type TextProps = AriaAttributes & {
97
97
  style?: CSSProperties;
98
+ className?: string;
98
99
  } & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
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[];
@@ -1051,7 +1054,7 @@ declare type TextLabelProps = {
1051
1054
  } & LabelHTMLAttributes<'label'>;
1052
1055
  declare type TextTagProps = {
1053
1056
  variant: 'tag';
1054
- size: 'regular' | 'small' | 'x-small';
1057
+ size?: 'regular' | 'small' | 'x-small';
1055
1058
  weight?: 'regular' | 'demi' | 'bold';
1056
1059
  underline?: never;
1057
1060
  disabled?: boolean;
@@ -1061,6 +1064,7 @@ declare type TextTagProps = {
1061
1064
  };
1062
1065
  declare type TextProps = AriaAttributes & {
1063
1066
  style?: CSSProperties;
1067
+ className?: string;
1064
1068
  } & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
1065
1069
 
1066
1070
  interface SearchBarProps {