@zealicsolutions/web-ui 0.2.70 → 0.2.71
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/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Avatar/Avatar.d.ts +2 -2
- package/dist/cjs/src/atoms/Buttons/Button.d.ts +5 -2
- package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +3 -12
- package/dist/cjs/src/atoms/Icon/Icon.d.ts +18 -15
- package/dist/cjs/src/atoms/RegularImage/RegularImage.d.ts +1 -2
- package/dist/cjs/src/atoms/Tab/Tab.d.ts +3 -3
- package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Tab/styles.d.ts +3 -2
- package/dist/cjs/src/atoms/TextWrapper/TextWrapper.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/index.d.ts +0 -1
- package/dist/cjs/src/containers/Container.d.ts +4 -0
- package/dist/cjs/src/containers/Container.stories.d.ts +9 -0
- package/dist/cjs/src/containers/MoleculeItem.d.ts +3 -0
- package/dist/cjs/src/containers/OrganismItem.d.ts +5 -0
- package/dist/cjs/src/containers/helpers.d.ts +2 -0
- package/dist/cjs/src/containers/index.d.ts +5 -0
- package/dist/cjs/src/containers/styles.d.ts +8 -0
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +111 -0
- package/dist/cjs/src/containers/types/types.d.ts +30 -0
- package/dist/cjs/src/helpers/constants.d.ts +6 -3
- package/dist/cjs/src/icons/CaretDown.d.ts +1 -1
- package/dist/cjs/src/icons/Check.d.ts +1 -1
- package/dist/cjs/src/icons/Close.d.ts +1 -1
- package/dist/cjs/src/icons/Filter.d.ts +2 -2
- package/dist/cjs/src/icons/Hide.d.ts +1 -1
- package/dist/cjs/src/icons/Mail.d.ts +1 -1
- package/dist/cjs/src/icons/Minus.d.ts +2 -2
- package/dist/cjs/src/icons/Mobile.d.ts +2 -2
- package/dist/cjs/src/icons/Play.d.ts +1 -1
- package/dist/cjs/src/icons/Search.d.ts +1 -1
- package/dist/cjs/src/icons/View.d.ts +2 -2
- package/dist/cjs/src/icons/Warning.d.ts +1 -1
- package/dist/cjs/src/molecules/Columns/styles.d.ts +2 -11
- package/dist/cjs/src/molecules/Image/Image.d.ts +2 -3
- package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +10 -4
- package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +2 -1
- package/dist/cjs/src/molecules/TabGroup/styles.d.ts +9 -5
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.d.ts +3 -1
- package/dist/cjs/src/molecules/TextMolecule/TextMolecule.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/Video/Video.d.ts +14 -0
- package/dist/cjs/src/molecules/Video/Video.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/index.d.ts +3 -0
- package/dist/cjs/src/theme/types.d.ts +3 -2
- package/dist/cjs/src/typescript.d.ts +4 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Avatar/Avatar.d.ts +2 -2
- package/dist/esm/src/atoms/Buttons/Button.d.ts +5 -2
- package/dist/esm/src/atoms/Buttons/TextButton.d.ts +3 -12
- package/dist/esm/src/atoms/Icon/Icon.d.ts +18 -15
- package/dist/esm/src/atoms/RegularImage/RegularImage.d.ts +1 -2
- package/dist/esm/src/atoms/Tab/Tab.d.ts +3 -3
- package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Tab/styles.d.ts +3 -2
- package/dist/esm/src/atoms/TextWrapper/TextWrapper.stories.d.ts +1 -1
- package/dist/esm/src/atoms/index.d.ts +0 -1
- package/dist/esm/src/containers/Container.d.ts +4 -0
- package/dist/esm/src/containers/Container.stories.d.ts +9 -0
- package/dist/esm/src/containers/MoleculeItem.d.ts +3 -0
- package/dist/esm/src/containers/OrganismItem.d.ts +5 -0
- package/dist/esm/src/containers/helpers.d.ts +2 -0
- package/dist/esm/src/containers/index.d.ts +5 -0
- package/dist/esm/src/containers/styles.d.ts +8 -0
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +111 -0
- package/dist/esm/src/containers/types/types.d.ts +30 -0
- package/dist/esm/src/helpers/constants.d.ts +6 -3
- package/dist/esm/src/icons/CaretDown.d.ts +1 -1
- package/dist/esm/src/icons/Check.d.ts +1 -1
- package/dist/esm/src/icons/Close.d.ts +1 -1
- package/dist/esm/src/icons/Filter.d.ts +2 -2
- package/dist/esm/src/icons/Hide.d.ts +1 -1
- package/dist/esm/src/icons/Mail.d.ts +1 -1
- package/dist/esm/src/icons/Minus.d.ts +2 -2
- package/dist/esm/src/icons/Mobile.d.ts +2 -2
- package/dist/esm/src/icons/Play.d.ts +1 -1
- package/dist/esm/src/icons/Search.d.ts +1 -1
- package/dist/esm/src/icons/View.d.ts +2 -2
- package/dist/esm/src/icons/Warning.d.ts +1 -1
- package/dist/esm/src/molecules/Columns/styles.d.ts +2 -11
- package/dist/esm/src/molecules/Image/Image.d.ts +2 -3
- package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +10 -4
- package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +2 -1
- package/dist/esm/src/molecules/TabGroup/styles.d.ts +9 -5
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.d.ts +3 -1
- package/dist/esm/src/molecules/TextMolecule/TextMolecule.stories.d.ts +1 -1
- package/dist/esm/src/molecules/Video/Video.d.ts +14 -0
- package/dist/esm/src/molecules/Video/Video.stories.d.ts +9 -0
- package/dist/esm/src/molecules/index.d.ts +3 -0
- package/dist/esm/src/theme/types.d.ts +3 -2
- package/dist/esm/src/typescript.d.ts +4 -0
- package/dist/index.d.ts +82 -50
- package/package.json +1 -1
- package/dist/cjs/src/atoms/Video/Video.d.ts +0 -11
- package/dist/cjs/src/atoms/Video/Video.stories.d.ts +0 -9
- package/dist/esm/src/atoms/Video/Video.d.ts +0 -11
- package/dist/esm/src/atoms/Video/Video.stories.d.ts +0 -9
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { Callback } from 'typescript';
|
3
|
-
import { SizesTypes, ThemeColors } from 'theme';
|
3
|
+
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
|
4
4
|
import { IconNames } from '..';
|
5
5
|
export declare type AvatarProps = {
|
6
6
|
size?: SizesTypes | number;
|
@@ -9,7 +9,7 @@ export declare type AvatarProps = {
|
|
9
9
|
backgroundColor?: ThemeColors;
|
10
10
|
textConfig?: {
|
11
11
|
color?: ThemeColors;
|
12
|
-
font?:
|
12
|
+
font?: FontSizesTypes;
|
13
13
|
};
|
14
14
|
content: {
|
15
15
|
initials?: string;
|
@@ -3,7 +3,7 @@ import { CSSProperties } from 'styled-components';
|
|
3
3
|
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
|
4
4
|
import type { Callback } from 'typescript';
|
5
5
|
import { StylesType } from 'typescript';
|
6
|
-
export declare type ButtonVariant = 'primary' | 'secondary' | 'text';
|
6
|
+
export declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
|
7
7
|
export declare type BaseButtonProps = PropsWithChildren<{
|
8
8
|
onClick?: Callback;
|
9
9
|
variant?: ButtonVariant;
|
@@ -13,7 +13,8 @@ export declare type BaseButtonProps = PropsWithChildren<{
|
|
13
13
|
buttonFont?: FontSizesTypes;
|
14
14
|
textColor?: ThemeColors | string;
|
15
15
|
textSize?: number;
|
16
|
-
|
16
|
+
horizontalPadding?: SizesTypes;
|
17
|
+
verticalPadding?: SizesTypes;
|
17
18
|
buttonColor?: ThemeColors | string;
|
18
19
|
buttonStroke?: ThemeColors | string;
|
19
20
|
cornerRadius?: SizesTypes | number;
|
@@ -22,6 +23,8 @@ export declare type BaseButtonProps = PropsWithChildren<{
|
|
22
23
|
inactiveButtonColor?: ThemeColors | string;
|
23
24
|
inactiveStrokeColor?: ThemeColors | string;
|
24
25
|
styles?: StylesType;
|
26
|
+
colorTheme?: 'light' | 'dark';
|
27
|
+
href?: string;
|
25
28
|
}>;
|
26
29
|
export declare type ButtonProps = BaseButtonProps & {
|
27
30
|
fullWidth?: boolean;
|
@@ -1,18 +1,9 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { BaseButtonProps } from './Button';
|
3
|
-
export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | '
|
2
|
+
export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & {
|
4
3
|
buttonLink?: string;
|
5
4
|
elementId?: string;
|
6
5
|
};
|
7
|
-
export declare const TextButton: import("styled-components").StyledComponent<"
|
8
|
-
activeOpacity?: number | undefined;
|
9
|
-
withoutOpacityEffect?: boolean | undefined;
|
10
|
-
disabled?: boolean | undefined;
|
11
|
-
} & {
|
12
|
-
children?: import("react").ReactNode;
|
13
|
-
} & {
|
14
|
-
withoutOpacityEffect: boolean;
|
15
|
-
} & Pick<BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
|
6
|
+
export declare const TextButton: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
|
16
7
|
buttonLink?: string | undefined;
|
17
8
|
elementId?: string | undefined;
|
18
|
-
},
|
9
|
+
}, never>;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { CSSProperties } from 'styled-components';
|
2
3
|
import { ThemeColors } from 'theme';
|
3
4
|
export declare type IconProps = {
|
4
5
|
name: IconNames;
|
@@ -6,30 +7,32 @@ export declare type IconProps = {
|
|
6
7
|
color?: ThemeColors | string;
|
7
8
|
fill?: ThemeColors | string;
|
8
9
|
pointerEvents?: 'auto' | 'none';
|
9
|
-
style?:
|
10
|
+
style?: CSSProperties;
|
10
11
|
};
|
11
12
|
declare const availableIcons: {
|
12
|
-
|
13
|
-
|
13
|
+
ArrowRight: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
14
|
+
Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
15
|
+
Bookmark: ({ fill, color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
16
|
+
CaretDown: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
|
14
17
|
CaretLeft: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
15
18
|
CaretRight: ({ color, size, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
16
|
-
|
17
|
-
Check: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
18
|
-
|
19
|
-
|
19
|
+
CaretUp: ({ color, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
20
|
+
Check: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
21
|
+
Close: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
22
|
+
Edit: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
23
|
+
Filter: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
20
24
|
Hide: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
|
21
|
-
|
22
|
-
Play: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
23
|
-
Minus: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
25
|
+
Info: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
24
26
|
InfoBoxIcon: ({ color, size }: Omit<IconProps, "name">) => JSX.Element;
|
25
|
-
Warning: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
26
|
-
Bell: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
27
|
-
Mobile: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
28
27
|
Mail: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
29
28
|
Menu: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
29
|
+
Minus: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
30
|
+
Mobile: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
31
|
+
Play: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
32
|
+
Save: ({ size, color }: Omit<IconProps, "name">) => JSX.Element;
|
30
33
|
Search: ({ size, color, ...props }: Omit<IconProps, "name">) => JSX.Element;
|
31
|
-
|
32
|
-
|
34
|
+
View: ({ color, size, }: Omit<IconProps, "name">) => JSX.Element;
|
35
|
+
Warning: ({ size, color, }: Omit<IconProps, "name">) => JSX.Element;
|
33
36
|
};
|
34
37
|
export declare type IconNames = keyof typeof availableIcons;
|
35
38
|
export declare const Icon: ({ name, color, ...props }: IconProps) => JSX.Element;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { Callback
|
1
|
+
import { Callback } from 'typescript';
|
2
2
|
export declare type RegularImageProps = {
|
3
3
|
src: string;
|
4
4
|
alt?: string;
|
5
5
|
width?: number | string;
|
6
6
|
height?: number | string;
|
7
|
-
styles?: StylesType;
|
8
7
|
onClick?: Callback;
|
9
8
|
cornerRadius?: number;
|
10
9
|
};
|
@@ -25,12 +25,12 @@ export declare type TabProps<T = string, K = string> = {
|
|
25
25
|
tabFont: FontSizesTypes;
|
26
26
|
textSize: number;
|
27
27
|
tabPadding: SizesTypes | number;
|
28
|
-
|
28
|
+
defaultTabTextColor: ThemeColors | string;
|
29
29
|
selectedTabTextColor: ThemeColors | string;
|
30
30
|
selectedTabIndicatorColor: ThemeColors | string;
|
31
31
|
styles: StylesType;
|
32
32
|
}>;
|
33
|
-
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize,
|
33
|
+
declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, defaultTabTextColor, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
|
34
34
|
export declare const Tab: <T, K>(props: {
|
35
35
|
tabKey: T;
|
36
36
|
text: string;
|
@@ -46,7 +46,7 @@ export declare const Tab: <T, K>(props: {
|
|
46
46
|
tabFont: FontSizesTypes;
|
47
47
|
textSize: number;
|
48
48
|
tabPadding: SizesTypes | number;
|
49
|
-
|
49
|
+
defaultTabTextColor: ThemeColors | string;
|
50
50
|
selectedTabTextColor: ThemeColors | string;
|
51
51
|
selectedTabIndicatorColor: ThemeColors | string;
|
52
52
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
@@ -18,7 +18,7 @@ declare const _default: {
|
|
18
18
|
tabFont: import("theme").FontSizesTypes;
|
19
19
|
textSize: number;
|
20
20
|
tabPadding: number | import("theme").SizesTypes;
|
21
|
-
|
21
|
+
defaultTabTextColor: string;
|
22
22
|
selectedTabTextColor: string;
|
23
23
|
selectedTabIndicatorColor: string;
|
24
24
|
styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
|
@@ -1,6 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { TabProps } from 'atoms/Tab/Tab';
|
2
|
-
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme' | 'selectedTabTextColor' | 'styles' | '
|
3
|
-
declare type TabTextProps = Pick<TabProps, 'tabTheme' | 'textSize' | '
|
3
|
+
declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme' | 'selectedTabTextColor' | 'styles' | 'defaultTabTextColor'>;
|
4
|
+
declare type TabTextProps = Pick<TabProps, 'tabTheme' | 'textSize' | 'defaultTabTextColor' | 'tabPadding' | 'tabFont'>;
|
4
5
|
export declare const TabText: import("styled-components").StyledComponent<({ children, seoTag, ...textProps }: import("atoms").TextWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, TabTextProps, never>;
|
5
6
|
export declare const TabContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
6
7
|
export declare const CaretIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabContainerProps, never>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { TextWrapperProps } from '
|
3
|
+
import { TextWrapperProps } from 'atoms';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
6
|
component: ({ children, seoTag, ...textProps }: TextWrapperProps) => JSX.Element;
|
@@ -10,7 +10,6 @@ export * from './Spinner/Spinner';
|
|
10
10
|
export * from './RegularImage/RegularImage';
|
11
11
|
export * from './Buttons/TextButton';
|
12
12
|
export * from './ValidationTag/ValidationTag';
|
13
|
-
export * from './Video/Video';
|
14
13
|
export * from './Tooltip/Tooltip';
|
15
14
|
export * from './Toast/toast';
|
16
15
|
export * from './HorizontalButtons/HorizontalButtons';
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ContainerComponentProps, ContainerProps } from 'containers';
|
3
|
+
export declare const Container: ({ children, wide, compact, type, ...props }: ContainerProps) => JSX.Element;
|
4
|
+
export declare const ContainerComponent: ({ type, items, config }: ContainerComponentProps) => JSX.Element | null;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { StoryFn } from '@storybook/react';
|
3
|
+
import { ContainerComponentProps } from 'containers';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ type, items, config }: ContainerComponentProps) => JSX.Element | null;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Container: StoryFn<ContainerComponentProps>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ContainerProps } from 'containers/types/types';
|
2
|
+
export declare const ContainerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<ContainerProps, "type"> & {
|
3
|
+
containerProps?: Partial<{
|
4
|
+
position: import("containers/types/types").ContainerPositionType;
|
5
|
+
scrollBehaviour: import("containers/types/types").ContainerScrollBehaviourType;
|
6
|
+
cornerRadius: number;
|
7
|
+
}> | undefined;
|
8
|
+
}, never>;
|
@@ -0,0 +1,111 @@
|
|
1
|
+
import { ButtonProps } from 'atoms';
|
2
|
+
import { SelectOption } from 'atoms/Select/types';
|
3
|
+
import { ImageProps, TabGroupProps } from 'molecules';
|
4
|
+
import { CSSProperties } from 'styled-components';
|
5
|
+
import { FontSizesTypes, ThemeColors } from 'theme';
|
6
|
+
import { Nullable, StrictUnion } from 'typescript';
|
7
|
+
export declare type ImageAttributes = {
|
8
|
+
attribute_type: 'image';
|
9
|
+
imageSource: string;
|
10
|
+
};
|
11
|
+
export interface TextAttributes {
|
12
|
+
attribute_type: 'text';
|
13
|
+
text: string;
|
14
|
+
}
|
15
|
+
export interface VideoAttributes {
|
16
|
+
attribute_type: 'video';
|
17
|
+
videoSource: string;
|
18
|
+
}
|
19
|
+
export interface LinkAttributes {
|
20
|
+
attribute_type: 'link';
|
21
|
+
id: string;
|
22
|
+
type: 'internalLink' | 'externalLink';
|
23
|
+
internalLink: Nullable<string>;
|
24
|
+
externalLink: Nullable<string>;
|
25
|
+
name: string;
|
26
|
+
}
|
27
|
+
export interface SelectAttributes {
|
28
|
+
attribute_type: 'select';
|
29
|
+
value: string;
|
30
|
+
options: SelectOption[];
|
31
|
+
}
|
32
|
+
export interface BooleanAttributes {
|
33
|
+
attribute_type: 'boolean';
|
34
|
+
value: boolean;
|
35
|
+
}
|
36
|
+
export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header-tab-group';
|
37
|
+
export interface BaseMolecule {
|
38
|
+
id: string;
|
39
|
+
instance: 'molecule';
|
40
|
+
type: MoleculeTypes;
|
41
|
+
}
|
42
|
+
export interface ImageMolecule extends BaseMolecule {
|
43
|
+
type: 'image';
|
44
|
+
attributes: {
|
45
|
+
image: ImageAttributes;
|
46
|
+
altText: TextAttributes;
|
47
|
+
link: LinkAttributes;
|
48
|
+
};
|
49
|
+
config: {
|
50
|
+
props: Omit<ImageProps, 'src' | 'link' | 'altText'>;
|
51
|
+
};
|
52
|
+
}
|
53
|
+
export interface TextMolecule extends BaseMolecule {
|
54
|
+
type: 'text';
|
55
|
+
attributes: {
|
56
|
+
text: TextAttributes;
|
57
|
+
seoStyle: SelectAttributes;
|
58
|
+
};
|
59
|
+
config: {
|
60
|
+
props: {
|
61
|
+
fontVariant: FontSizesTypes;
|
62
|
+
textSize: number;
|
63
|
+
textColor: ThemeColors | string;
|
64
|
+
letterSpacing: number;
|
65
|
+
lineHeight: number;
|
66
|
+
isRichText: boolean;
|
67
|
+
styles: CSSProperties;
|
68
|
+
};
|
69
|
+
};
|
70
|
+
}
|
71
|
+
export interface ButtonMolecule extends BaseMolecule {
|
72
|
+
type: 'button';
|
73
|
+
attributes: {
|
74
|
+
title: TextAttributes;
|
75
|
+
buttonLink: LinkAttributes;
|
76
|
+
};
|
77
|
+
config: {
|
78
|
+
props: Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>;
|
79
|
+
};
|
80
|
+
}
|
81
|
+
export interface VideoMolecule extends BaseMolecule {
|
82
|
+
type: 'video';
|
83
|
+
attributes: {
|
84
|
+
video: VideoAttributes;
|
85
|
+
altText: TextAttributes;
|
86
|
+
autoPlayVideo: BooleanAttributes;
|
87
|
+
enableCoverImage: BooleanAttributes;
|
88
|
+
coverImage: ImageAttributes;
|
89
|
+
};
|
90
|
+
config: {
|
91
|
+
props: {
|
92
|
+
width: number;
|
93
|
+
styles: CSSProperties;
|
94
|
+
};
|
95
|
+
};
|
96
|
+
}
|
97
|
+
export interface TabGroupMolecule extends BaseMolecule {
|
98
|
+
type: 'header-tab-group';
|
99
|
+
config: {
|
100
|
+
props: TabGroupProps;
|
101
|
+
wide: {
|
102
|
+
containerStyle?: CSSProperties;
|
103
|
+
containerProps?: Record<string, unknown>;
|
104
|
+
};
|
105
|
+
compact: {
|
106
|
+
containerStyle?: CSSProperties;
|
107
|
+
containerProps?: Record<string, unknown>;
|
108
|
+
};
|
109
|
+
};
|
110
|
+
}
|
111
|
+
export declare type Molecule = StrictUnion<ImageMolecule | TextMolecule | ButtonMolecule | VideoMolecule | TabGroupMolecule>;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { CSSProperties } from 'styled-components';
|
3
|
+
import { Molecule } from './moleculeTypes';
|
4
|
+
export declare type ContainerType = 'row' | 'column' | 'slider';
|
5
|
+
export declare type ContainerPositionType = 'fixed' | 'sticky' | 'static';
|
6
|
+
export declare type ContainerScrollBehaviourType = 'vertical' | 'horizontal' | 'auto' | 'none';
|
7
|
+
export declare type ContainerPropsType = Partial<{
|
8
|
+
position: ContainerPositionType;
|
9
|
+
scrollBehaviour: ContainerScrollBehaviourType;
|
10
|
+
cornerRadius: number;
|
11
|
+
}>;
|
12
|
+
export declare type AdditionalContainerProps = Partial<{
|
13
|
+
containerStyle: CSSProperties;
|
14
|
+
containerProps: ContainerPropsType;
|
15
|
+
}>;
|
16
|
+
export declare type ContainerProps = PropsWithChildren<Partial<{
|
17
|
+
type: ContainerType;
|
18
|
+
wide: AdditionalContainerProps;
|
19
|
+
compact: AdditionalContainerProps;
|
20
|
+
}>>;
|
21
|
+
export declare type ContainerComponentProps = {
|
22
|
+
id: string;
|
23
|
+
instance: 'container';
|
24
|
+
type: ContainerType;
|
25
|
+
config: {
|
26
|
+
wide: AdditionalContainerProps;
|
27
|
+
compact: AdditionalContainerProps;
|
28
|
+
};
|
29
|
+
items: (ContainerComponentProps | Molecule)[];
|
30
|
+
};
|
@@ -1,3 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
export declare const
|
1
|
+
import { FontSizesTypes, FontWeight, SizesTypes } from 'theme';
|
2
|
+
import { SeoTags } from 'atoms';
|
3
|
+
export declare const sizings: (SizesTypes | 0)[];
|
4
|
+
export declare const fonts: FontSizesTypes[];
|
5
|
+
export declare const seoTags: SeoTags[];
|
6
|
+
export declare const fontWeight: FontWeight[];
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type { IconProps } from '
|
3
|
-
export declare const Filter: ({ size, color }: Omit<IconProps, 'name'>) => JSX.Element;
|
2
|
+
import type { IconProps } from 'atoms';
|
3
|
+
export declare const Filter: ({ size, color, }: Omit<IconProps, 'name'>) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { IconProps } from '
|
3
|
-
export declare const Minus: ({ size, color }: Omit<IconProps, 'name'>) => JSX.Element;
|
2
|
+
import { IconProps } from 'atoms';
|
3
|
+
export declare const Minus: ({ size, color, }: Omit<IconProps, 'name'>) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type { IconProps } from '
|
3
|
-
export declare const Mobile: ({ size, color }: Omit<IconProps, 'name'>) => JSX.Element;
|
2
|
+
import type { IconProps } from 'atoms';
|
3
|
+
export declare const Mobile: ({ size, color, }: Omit<IconProps, 'name'>) => JSX.Element;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type { IconProps } from '
|
3
|
-
export declare const View: ({ color, size }: Omit<IconProps, 'name'>) => JSX.Element;
|
2
|
+
import type { IconProps } from 'atoms';
|
3
|
+
export declare const View: ({ color, size, }: Omit<IconProps, 'name'>) => JSX.Element;
|
@@ -1,20 +1,11 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
export declare const ColumnWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
3
2
|
isMobile: boolean;
|
4
3
|
}, never>;
|
5
4
|
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
6
|
-
export declare const Link: import("styled-components").StyledComponent<"
|
7
|
-
activeOpacity?: number | undefined;
|
8
|
-
withoutOpacityEffect?: boolean | undefined;
|
9
|
-
disabled?: boolean | undefined;
|
10
|
-
} & {
|
11
|
-
children?: import("react").ReactNode;
|
12
|
-
} & {
|
13
|
-
withoutOpacityEffect: boolean;
|
14
|
-
} & Pick<import("atoms").BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
|
5
|
+
export declare const Link: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled" | "size" | "colorTheme"> & {
|
15
6
|
buttonLink?: string | undefined;
|
16
7
|
elementId?: string | undefined;
|
17
|
-
},
|
8
|
+
}, never>;
|
18
9
|
export declare const ColumnCardWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
19
10
|
isMobile: boolean;
|
20
11
|
}, never>;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
import { StylesType } from '../../typescript';
|
1
|
+
import { CSSProperties } from 'react';
|
3
2
|
export declare type ImageProps = {
|
4
3
|
src: string;
|
5
4
|
} & Partial<{
|
@@ -9,6 +8,6 @@ export declare type ImageProps = {
|
|
9
8
|
height: number;
|
10
9
|
cornerRadius: number;
|
11
10
|
behaveAs: 'background' | 'regular';
|
12
|
-
styles:
|
11
|
+
styles: CSSProperties;
|
13
12
|
}>;
|
14
13
|
export declare const Image: ({ src, link, altText, styles, width, height, behaveAs, cornerRadius, }: ImageProps) => JSX.Element;
|
@@ -1,8 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { TabProps, TabTheme } from 'atoms';
|
2
3
|
import { CSSProperties } from 'styled-components';
|
3
4
|
import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
|
4
5
|
import { StylesType } from 'typescript';
|
5
6
|
export declare type TabType<T = string, K = string> = Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>;
|
7
|
+
declare type AdditionalTabContainerProps = {
|
8
|
+
containerStyle?: CSSProperties;
|
9
|
+
containerProps?: Record<string, unknown>;
|
10
|
+
};
|
6
11
|
export declare type TabGroupProps<T = string, K = string> = {
|
7
12
|
tabs: TabType<T, K>[];
|
8
13
|
activeTabKey: T;
|
@@ -15,10 +20,11 @@ export declare type TabGroupProps<T = string, K = string> = {
|
|
15
20
|
textSize?: number;
|
16
21
|
tabPadding?: SizesTypes | number;
|
17
22
|
tabSpacing?: SizesTypes;
|
18
|
-
|
23
|
+
defaultTabTextColor?: ThemeColors | string;
|
19
24
|
selectedTabTextColor?: ThemeColors | string;
|
20
25
|
selectedTabIndicatorColor?: ThemeColors | string;
|
21
|
-
|
22
|
-
|
26
|
+
wide?: AdditionalTabContainerProps;
|
27
|
+
compact?: AdditionalTabContainerProps;
|
23
28
|
};
|
24
|
-
export declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme,
|
29
|
+
export declare const TabGroup: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
30
|
+
export {};
|
@@ -1,8 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import type { StoryFn } from '@storybook/react';
|
2
3
|
import { TabGroupProps } from './TabGroup';
|
3
4
|
declare const _default: {
|
4
5
|
title: string;
|
5
|
-
component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme,
|
6
|
+
component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, wide, compact, tabSpacing, ...props }: TabGroupProps<T, K>) => JSX.Element;
|
6
7
|
};
|
7
8
|
export default _default;
|
8
9
|
export declare const TabGroup: StoryFn<TabGroupProps>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { TabTheme } from 'atoms/Tab/Tab';
|
2
3
|
import { SizesTypes, ThemeColors } from 'theme/types';
|
3
4
|
export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
@@ -14,6 +15,13 @@ declare type TabSliderProps = {
|
|
14
15
|
selectedTabIndicatorColor?: ThemeColors | string;
|
15
16
|
};
|
16
17
|
export declare const TabSlider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TabSliderProps, never>;
|
18
|
+
declare type TabWrapperProps = {
|
19
|
+
disabled?: boolean;
|
20
|
+
tabTheme?: TabTheme;
|
21
|
+
selectedTabTextColor?: ThemeColors | string;
|
22
|
+
isActiveTab?: boolean;
|
23
|
+
selectedTabIndicatorColor?: ThemeColors | string;
|
24
|
+
};
|
17
25
|
export declare const TabWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
18
26
|
activeOpacity?: number | undefined;
|
19
27
|
withoutOpacityEffect?: boolean | undefined;
|
@@ -22,9 +30,5 @@ export declare const TabWrapper: import("styled-components").StyledComponent<"di
|
|
22
30
|
children?: import("react").ReactNode;
|
23
31
|
} & {
|
24
32
|
withoutOpacityEffect: boolean;
|
25
|
-
} &
|
26
|
-
disabled?: boolean | undefined;
|
27
|
-
tabTheme?: TabTheme | undefined;
|
28
|
-
selectedTabTextColor?: string | undefined;
|
29
|
-
}, "withoutOpacityEffect">;
|
33
|
+
} & TabWrapperProps, "withoutOpacityEffect">;
|
30
34
|
export {};
|
@@ -4,13 +4,15 @@ import { FontSizesTypes, ThemeColors } from 'theme';
|
|
4
4
|
import { StylesType } from 'typescript';
|
5
5
|
export declare type TextMoleculeProps = Partial<{
|
6
6
|
text: string;
|
7
|
+
variant: 'base' | 'custom';
|
7
8
|
fontVariant: FontSizesTypes;
|
8
9
|
textSize: number;
|
9
10
|
textColor: ThemeColors | string;
|
10
11
|
letterSpacing: number;
|
11
12
|
lineHeight: number;
|
13
|
+
fontWeight: number;
|
12
14
|
isRichText: boolean;
|
13
15
|
styles: StylesType;
|
14
16
|
textAlign: 'center' | 'right' | 'left';
|
15
17
|
}> & Pick<TextProps, 'seoTag'>;
|
16
|
-
export declare const TextMolecule: ({ isRichText, text, seoTag, fontVariant, textColor,
|
18
|
+
export declare const TextMolecule: ({ isRichText, variant, text, seoTag, fontVariant, textColor, textSize, fontWeight, lineHeight, letterSpacing, styles, textAlign, }: TextMoleculeProps) => JSX.Element;
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
|
|
3
3
|
import { TextMoleculeProps } from './TextMolecule';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ isRichText, text, seoTag, fontVariant, textColor,
|
6
|
+
component: ({ isRichText, variant, text, seoTag, fontVariant, textColor, textSize, fontWeight, lineHeight, letterSpacing, styles, textAlign, }: TextMoleculeProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const TextMolecule: StoryFn<TextMoleculeProps>;
|