@gataca/design-system 0.2.38 → 0.2.40
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/components/index.native.d.ts +2 -0
- package/dist/components/index.web.d.ts +2 -0
- package/dist/components/native/Avatars/AvatarGroup/avatarGroup.types.native.d.ts +1 -1
- package/dist/components/native/Cards/Credential/credential_styles.native.d.ts +1 -1
- package/dist/components/native/Headings/HeadingCredential/HeadingCredential_styles.native.d.ts +20 -1
- package/dist/components/native/Icons/icons/radioButton.d.ts +9 -0
- package/dist/components/native/Lists/ListItem/listItem_types.native.d.ts +13 -0
- package/dist/components/native/RadioButton/RadioButton/index.native.d.ts +2 -0
- package/dist/components/native/RadioButton/RadioButton/radioButton.native.d.ts +4 -0
- package/dist/components/native/RadioButton/RadioButton/radioButton_styles.native.d.ts +16 -0
- package/dist/components/native/RadioButton/RadioButton/radioButton_types.native.d.ts +12 -0
- package/dist/components/native/Switch/Switch/Switch.native.d.ts +4 -0
- package/dist/components/native/Switch/Switch/index.native.d.ts +2 -0
- package/dist/components/native/Switch/Switch/switch_styles.native.d.ts +19 -0
- package/dist/components/native/Switch/Switch/switch_types.native.d.ts +10 -0
- package/dist/components/web/Avatars/AvatarGroup/avatarGroup.types.web.d.ts +1 -1
- package/dist/components/web/Cards/Credential/credential_styles.web.d.ts +1 -1
- package/dist/components/web/Headings/HeadingCredential/HeadingCredential_styles.web.d.ts +4 -1
- package/dist/components/web/Icons/icons/radioButton.d.ts +9 -0
- package/dist/components/web/Lists/ListItem/listItem_types.web.d.ts +13 -0
- package/dist/components/web/RadioButton/RadioButton/index.web.d.ts +2 -0
- package/dist/components/web/RadioButton/RadioButton/radioButton.web.d.ts +4 -0
- package/dist/components/web/RadioButton/RadioButton/radioButton_styles.web.d.ts +5 -0
- package/dist/components/web/RadioButton/RadioButton/radioButton_types.web.d.ts +12 -0
- package/dist/components/web/Switch/Switch/Switch.web.d.ts +4 -0
- package/dist/components/web/Switch/Switch/index.web.d.ts +2 -0
- package/dist/components/web/Switch/Switch/switch_styles.web.d.ts +8 -0
- package/dist/components/web/Switch/Switch/switch_types.web.d.ts +10 -0
- package/dist/index.native.js +1 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +1 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,8 @@ export { default as TopAppBar } from './native/TopAppBar/TopAppBar/index.native'
|
|
|
17
17
|
export { default as ListMetaContainer } from './native/Lists/ListMetaContainer/index.native';
|
|
18
18
|
export { default as ListItem } from './native/Lists/ListItem/index.native';
|
|
19
19
|
export { default as Checkbox } from './native/Checkbox/Checkbox/index.native';
|
|
20
|
+
export { default as RadioButton } from './native/RadioButton/RadioButton/index.native';
|
|
21
|
+
export { default as Switch } from './native/Switch/Switch/index.native';
|
|
20
22
|
export { default as CheckIcon } from './native/Icons/icons/check';
|
|
21
23
|
export { default as InfoIcon } from './native/Icons/icons/info';
|
|
22
24
|
export { default as ChevronDownIcon } from './native/Icons/icons/chevronDown';
|
|
@@ -15,6 +15,8 @@ export { default as AvatarGroup } from './web/Avatars/AvatarGroup/index.web';
|
|
|
15
15
|
export { default as ListMetaContainer } from './web/Lists/ListMetaContainer/index.web';
|
|
16
16
|
export { default as ListItem } from './web/Lists/ListItem/index.web';
|
|
17
17
|
export { default as Checkbox } from './web/Checkbox/Checkbox/index.web';
|
|
18
|
+
export { default as RadioButton } from './web/RadioButton/RadioButton/index.web';
|
|
19
|
+
export { default as Switch } from './web/Switch/Switch/index.web';
|
|
18
20
|
export { default as CheckIcon } from './web/Icons/icons/check';
|
|
19
21
|
export { default as InfoIcon } from './web/Icons/icons/info';
|
|
20
22
|
export { default as ChevronDownIcon } from './web/Icons/icons/chevronDown';
|
|
@@ -2,7 +2,7 @@ import { HeadingContainerProps } from '../../Headings/HeadingContainer/HeadingCo
|
|
|
2
2
|
import { AvatarProps } from '../Avatar/Avatar.types.native';
|
|
3
3
|
export type AvatarGroupAlign = 'horizontal' | 'vertical';
|
|
4
4
|
export interface AvatarGroupProps {
|
|
5
|
-
avatar
|
|
5
|
+
avatar?: AvatarProps;
|
|
6
6
|
headingContainer: HeadingContainerProps;
|
|
7
7
|
align: AvatarGroupAlign;
|
|
8
8
|
containerStyle?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColorsType } from '../../../../styles/Colors';
|
|
2
2
|
import { StyleType } from '../../../../styles';
|
|
3
|
-
export declare const styles: (colors: ColorsType, fontStyles: StyleType, background_color?: string) => {
|
|
3
|
+
export declare const styles: (topDataHeight: number, colors: ColorsType, fontStyles: StyleType, background_color?: string) => {
|
|
4
4
|
credCardContainer: {
|
|
5
5
|
display: "flex";
|
|
6
6
|
flexDirection: "column";
|
package/dist/components/native/Headings/HeadingCredential/HeadingCredential_styles.native.d.ts
CHANGED
|
@@ -5,10 +5,29 @@ declare const _default: {
|
|
|
5
5
|
gap: number;
|
|
6
6
|
alignItems: "flex-end";
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
imageContainer: {
|
|
9
|
+
position: "relative";
|
|
9
10
|
width: number;
|
|
10
11
|
height: number;
|
|
12
|
+
overflow: "hidden";
|
|
11
13
|
borderRadius: number;
|
|
12
14
|
};
|
|
15
|
+
landscapeImage: {
|
|
16
|
+
minWidth: "100%";
|
|
17
|
+
minHeight: "100%";
|
|
18
|
+
maxHeight: "100%";
|
|
19
|
+
objectFit: "cover";
|
|
20
|
+
};
|
|
21
|
+
portraitImage: {
|
|
22
|
+
minWidth: "100%";
|
|
23
|
+
minHeight: "100%";
|
|
24
|
+
maxWidth: "100%";
|
|
25
|
+
objectFit: "cover";
|
|
26
|
+
};
|
|
27
|
+
squareImage: {
|
|
28
|
+
minWidth: "100%";
|
|
29
|
+
minHeight: "100%";
|
|
30
|
+
objectFit: "cover";
|
|
31
|
+
};
|
|
13
32
|
};
|
|
14
33
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColorsType } from '../../../../styles';
|
|
2
|
+
import { RadioButtonSize, RadioButtonState } from '../../RadioButton/RadioButton/radioButton_types.native';
|
|
3
|
+
type RadioButtonIconProps = {
|
|
4
|
+
size: RadioButtonSize;
|
|
5
|
+
colors: ColorsType;
|
|
6
|
+
state: RadioButtonState;
|
|
7
|
+
};
|
|
8
|
+
declare const RadioButtonIcon: (props: RadioButtonIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default RadioButtonIcon;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.native';
|
|
2
2
|
import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.native';
|
|
3
3
|
import { CheckboxProps } from '../../Checkbox/Checkbox/checkbox_types.native';
|
|
4
|
+
import { IconSize } from '../../Icons/icon_types';
|
|
5
|
+
import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.native';
|
|
6
|
+
import { SwitchProps } from '../../Switch/Switch/switch_types.native';
|
|
4
7
|
export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
|
|
5
8
|
export type ListItemSize = 'medium' | 'small';
|
|
6
9
|
export type ListItemColor = 'black' | 'gray';
|
|
@@ -18,6 +21,16 @@ export interface ListItemProps {
|
|
|
18
21
|
avatar?: AvatarProps;
|
|
19
22
|
credential?: MiniCredentialCardProps;
|
|
20
23
|
checkbox?: CheckboxProps;
|
|
24
|
+
switchOpt?: SwitchProps;
|
|
25
|
+
radioButton?: RadioButtonProps;
|
|
26
|
+
LeadingIcon?: React.FC<{
|
|
27
|
+
size: IconSize;
|
|
28
|
+
color: string;
|
|
29
|
+
}>;
|
|
30
|
+
TrailingIcon?: React.FC<{
|
|
31
|
+
size: IconSize;
|
|
32
|
+
color: string;
|
|
33
|
+
}>;
|
|
21
34
|
containerStyle?: any;
|
|
22
35
|
onPress?: (x: any) => void;
|
|
23
36
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
radioButtonContainer: {
|
|
3
|
+
display: "flex";
|
|
4
|
+
flexDirection: "row";
|
|
5
|
+
alignItems: "center";
|
|
6
|
+
gap: number;
|
|
7
|
+
alignSelf: "flex-start";
|
|
8
|
+
};
|
|
9
|
+
radioButtonTextContainer: {
|
|
10
|
+
display: "flex";
|
|
11
|
+
flexDirection: "row";
|
|
12
|
+
alignItems: "center";
|
|
13
|
+
gap: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type RadioButtonSize = 'medium' | 'small';
|
|
2
|
+
export type RadioButtonState = 'active' | 'default' | 'hover' | 'disable';
|
|
3
|
+
export type RadioButtonAlign = 'left' | 'right';
|
|
4
|
+
export interface RadioButtonProps {
|
|
5
|
+
state: RadioButtonState;
|
|
6
|
+
leadingText?: string;
|
|
7
|
+
size?: RadioButtonSize;
|
|
8
|
+
textAlign?: RadioButtonAlign;
|
|
9
|
+
showInfoIcon?: boolean;
|
|
10
|
+
containerStyle?: any;
|
|
11
|
+
onPress?: (x?: any) => void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
generalContainer: {
|
|
3
|
+
display: "flex";
|
|
4
|
+
justifyContent: "flex-start";
|
|
5
|
+
alignItems: "center";
|
|
6
|
+
flexDirection: "row";
|
|
7
|
+
gap: number;
|
|
8
|
+
};
|
|
9
|
+
container: {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
borderRadius: number;
|
|
13
|
+
display: "flex";
|
|
14
|
+
justifyContent: "center";
|
|
15
|
+
};
|
|
16
|
+
circle: {
|
|
17
|
+
borderRadius: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type SwitchSize = '32' | '24';
|
|
2
|
+
export type SwitchState = 'enable' | 'hover' | 'disable';
|
|
3
|
+
export interface SwitchProps {
|
|
4
|
+
state: SwitchState;
|
|
5
|
+
size: SwitchSize;
|
|
6
|
+
text?: string;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
containerStyle?: any;
|
|
9
|
+
onChange: (isActive?: boolean) => void;
|
|
10
|
+
}
|
|
@@ -2,7 +2,7 @@ import { HeadingContainerProps } from '../../Headings/HeadingContainer/HeadingCo
|
|
|
2
2
|
import { AvatarProps } from '../Avatar/Avatar.types.web';
|
|
3
3
|
export type AvatarGroupAlign = 'horizontal' | 'vertical';
|
|
4
4
|
export interface AvatarGroupProps {
|
|
5
|
-
avatar
|
|
5
|
+
avatar?: AvatarProps;
|
|
6
6
|
headingContainer: HeadingContainerProps;
|
|
7
7
|
align: AvatarGroupAlign;
|
|
8
8
|
containerStyle?: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ColorsType } from '../../../../styles/Colors';
|
|
3
3
|
import { StyleType } from '../../../../styles';
|
|
4
|
-
export declare const styles: (colors: ColorsType, fontStyles: StyleType, background_color?: string, verifiedIcon?: boolean, hasGradient?: boolean) => {
|
|
4
|
+
export declare const styles: (topDataHeight: number, colors: ColorsType, fontStyles: StyleType, background_color?: string, verifiedIcon?: boolean, hasGradient?: boolean) => {
|
|
5
5
|
credCardContainer: React.CSSProperties;
|
|
6
6
|
linearGradientOverlay: React.CSSProperties;
|
|
7
7
|
credCardMainContent: React.CSSProperties;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const styles: () => {
|
|
3
3
|
headingCredentialContainer: React.CSSProperties;
|
|
4
|
-
|
|
4
|
+
imageContainer: React.CSSProperties;
|
|
5
|
+
landscapeImage: React.CSSProperties;
|
|
6
|
+
portraitImage: React.CSSProperties;
|
|
7
|
+
squareImage: React.CSSProperties;
|
|
5
8
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColorsType } from '../../../../styles';
|
|
2
|
+
import { RadioButtonSize, RadioButtonState } from '../../RadioButton/RadioButton/radioButton_types.web';
|
|
3
|
+
type RadioButtonIconProps = {
|
|
4
|
+
size: RadioButtonSize;
|
|
5
|
+
colors: ColorsType;
|
|
6
|
+
state: RadioButtonState;
|
|
7
|
+
};
|
|
8
|
+
declare const RadioButtonIcon: (props: RadioButtonIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default RadioButtonIcon;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.web';
|
|
2
2
|
import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.web';
|
|
3
3
|
import { CheckboxProps } from '../../Checkbox/Checkbox/checkbox_types.web';
|
|
4
|
+
import { IconSize } from '../../Icons/icon_types';
|
|
5
|
+
import { RadioButtonProps } from '../../RadioButton/RadioButton/radioButton_types.web';
|
|
6
|
+
import { SwitchProps } from '../../Switch/Switch/switch_types.web';
|
|
4
7
|
export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
|
|
5
8
|
export type ListItemSize = 'medium' | 'small';
|
|
6
9
|
export type ListItemColor = 'black' | 'gray';
|
|
@@ -19,5 +22,15 @@ export interface ListItemProps {
|
|
|
19
22
|
credential?: MiniCredentialCardProps;
|
|
20
23
|
containerStyle?: any;
|
|
21
24
|
checkbox?: CheckboxProps;
|
|
25
|
+
switchOpt?: SwitchProps;
|
|
26
|
+
LeadingIcon?: React.FC<{
|
|
27
|
+
size: IconSize;
|
|
28
|
+
color: string;
|
|
29
|
+
}>;
|
|
30
|
+
TrailingIcon?: React.FC<{
|
|
31
|
+
size: IconSize;
|
|
32
|
+
color: string;
|
|
33
|
+
}>;
|
|
34
|
+
radioButton?: RadioButtonProps;
|
|
22
35
|
onPress?: (x: any) => void;
|
|
23
36
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type RadioButtonSize = 'medium' | 'small';
|
|
2
|
+
export type RadioButtonState = 'active' | 'default' | 'hover' | 'disable';
|
|
3
|
+
export type RadioButtonAlign = 'left' | 'right';
|
|
4
|
+
export interface RadioButtonProps {
|
|
5
|
+
state: RadioButtonState;
|
|
6
|
+
leadingText?: string;
|
|
7
|
+
size?: RadioButtonSize;
|
|
8
|
+
textAlign?: RadioButtonAlign;
|
|
9
|
+
showInfoIcon?: boolean;
|
|
10
|
+
containerStyle?: any;
|
|
11
|
+
onPress?: (x?: any) => void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColorsType, StyleType } from '../../../../styles';
|
|
2
|
+
import { SwitchSize, SwitchState } from './switch_types.web';
|
|
3
|
+
export declare const styles: (width: number, currentState: SwitchState, circleSize: number, borderWidth: number, active: boolean, colors: ColorsType, fontStyles: StyleType, size: SwitchSize) => {
|
|
4
|
+
switchContainer: React.CSSProperties;
|
|
5
|
+
switch: React.CSSProperties;
|
|
6
|
+
switchCircle: React.CSSProperties;
|
|
7
|
+
text: React.CSSProperties;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type SwitchSize = '32' | '24';
|
|
2
|
+
export type SwitchState = 'enable' | 'hover' | 'disable';
|
|
3
|
+
export interface SwitchProps {
|
|
4
|
+
state: SwitchState;
|
|
5
|
+
size: SwitchSize;
|
|
6
|
+
text?: string;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
containerStyle?: any;
|
|
9
|
+
onChange: (isActive?: boolean) => void;
|
|
10
|
+
}
|