@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.
- package/build/dts/components/Demo.stories.d.ts +7 -0
- package/build/dts/components/accordion/styles.d.ts +9 -9
- package/build/dts/components/checkbox/styles.d.ts +6 -6
- package/build/dts/components/color/ColorRadioGroup.d.ts +2 -1
- package/build/dts/components/color/SingleColorPicker.d.ts +2 -2
- package/build/dts/components/color/SingleColorPicker.stories.d.ts +2 -2
- package/build/dts/components/radio/input/styles.d.ts +8 -8
- package/build/dts/components/rating/starList/styles.d.ts +5 -5
- package/build/dts/components/rating/styles.d.ts +5 -5
- package/build/dts/components/shared/label/styles.d.ts +6 -6
- package/build/dts/components/size/selector/SizeSelector.d.ts +3 -1
- package/build/dts/components/size/selector/SizeSelector.stories.d.ts +2 -1
- package/build/dts/components/text/Text.d.ts +1 -1
- package/build/dts/core/theme/Theme.d.ts +1 -1
- package/build/index.d.ts +7 -4
- package/build/index.esm.js +732 -948
- package/build/index.esm.js.map +1 -1
- package/build/index.js +789 -1005
- package/build/index.js.map +1 -1
- package/build/theme/truekind.theme.js +78 -35
- package/package.json +15 -11
- package/build/dts/test/test-utils.d.ts +0 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Theme } from 'src/core/theme/Theme';
|
|
2
2
|
export declare const AccordionStyles: {
|
|
3
|
-
baseStyles: import("@emotion/
|
|
4
|
-
simple: (theme: Theme, disabled: boolean) => import("@emotion/
|
|
5
|
-
box: (theme: Theme, disabled: boolean) => import("@emotion/
|
|
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/
|
|
9
|
-
simple: (theme: Theme, disabled: boolean) => import("@emotion/
|
|
10
|
-
box: (theme: Theme, disabled: boolean) => import("@emotion/
|
|
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/
|
|
14
|
-
simple: (theme: Theme) => import("@emotion/
|
|
15
|
-
box: (theme: Theme) => import("@emotion/
|
|
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/
|
|
4
|
-
small: (theme: Theme) => import("@emotion/
|
|
5
|
-
medium: (theme: Theme) => import("@emotion/
|
|
6
|
-
large: (theme: Theme) => import("@emotion/
|
|
7
|
-
primary: (theme: Theme, isChecked: boolean, disabled: boolean) => import("@emotion/
|
|
8
|
-
secondary: (theme: Theme, isChecked: boolean, disabled: boolean) => import("@emotion/
|
|
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) =>
|
|
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
|
|
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/
|
|
4
|
-
small: (theme: Theme, active: boolean) => import("@emotion/
|
|
5
|
-
medium: (theme: Theme, active: boolean) => import("@emotion/
|
|
6
|
-
large: (theme: Theme, active: boolean) => import("@emotion/
|
|
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/
|
|
10
|
-
small: (theme: Theme) => import("@emotion/
|
|
11
|
-
medium: (theme: Theme) => import("@emotion/
|
|
12
|
-
large: (theme: Theme) => import("@emotion/
|
|
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/
|
|
4
|
-
xsmall: () => import("@emotion/
|
|
5
|
-
small: () => import("@emotion/
|
|
6
|
-
medium: () => import("@emotion/
|
|
7
|
-
large: () => import("@emotion/
|
|
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/
|
|
5
|
-
xsmall: (theme: Theme) => import("@emotion/
|
|
6
|
-
small: (theme: Theme) => import("@emotion/
|
|
7
|
-
medium: (theme: Theme) => import("@emotion/
|
|
8
|
-
large: (theme: Theme) => import("@emotion/
|
|
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/
|
|
3
|
-
export declare const regular: (theme: Theme) => import("@emotion/
|
|
4
|
-
export declare const demi: (theme: Theme) => import("@emotion/
|
|
5
|
-
export declare const small: (theme: Theme) => import("@emotion/
|
|
6
|
-
export declare const medium: (theme: Theme) => import("@emotion/
|
|
7
|
-
export declare const large: (theme: Theme) => import("@emotion/
|
|
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
|
|
26
|
+
weight?: 'bold' | 'demi' | 'regular';
|
|
27
27
|
size?: 'regular';
|
|
28
28
|
underline?: never;
|
|
29
29
|
disabled?: never;
|
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
|
|
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:
|
|
1094
|
+
theme: Theme;
|
|
1092
1095
|
Container?: ElementType;
|
|
1093
1096
|
}>;
|
|
1094
1097
|
declare const AssetsProvider: FC<{
|