@gataca/design-system 0.2.37 → 0.2.38

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.
@@ -16,6 +16,7 @@ export { default as AvatarGroup } from './native/Avatars/AvatarGroup/index.nativ
16
16
  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
+ export { default as Checkbox } from './native/Checkbox/Checkbox/index.native';
19
20
  export { default as CheckIcon } from './native/Icons/icons/check';
20
21
  export { default as InfoIcon } from './native/Icons/icons/info';
21
22
  export { default as ChevronDownIcon } from './native/Icons/icons/chevronDown';
@@ -14,6 +14,7 @@ export { default as Avatar } from './web/Avatars/Avatar/index.web';
14
14
  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
+ export { default as Checkbox } from './web/Checkbox/Checkbox/index.web';
17
18
  export { default as CheckIcon } from './web/Icons/icons/check';
18
19
  export { default as InfoIcon } from './web/Icons/icons/info';
19
20
  export { default as ChevronDownIcon } from './web/Icons/icons/chevronDown';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CheckboxProps } from './checkbox_types.native';
3
+ declare const Checkbox: (props: React.PropsWithChildren<CheckboxProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Checkbox;
@@ -0,0 +1,16 @@
1
+ declare const _default: {
2
+ checkboxContainer: {
3
+ display: "flex";
4
+ flexDirection: "row";
5
+ alignItems: "center";
6
+ gap: number;
7
+ alignSelf: "flex-start";
8
+ };
9
+ checkboxTextContainer: {
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 CheckboxSize = 'medium' | 'small';
2
+ export type CheckboxState = 'active' | 'default' | 'hover' | 'disable';
3
+ export type CheckboxAlign = 'left' | 'right';
4
+ export interface CheckboxProps {
5
+ state: CheckboxState;
6
+ leadingText?: string;
7
+ size?: CheckboxSize;
8
+ textAlign?: CheckboxAlign;
9
+ showInfoIcon?: boolean;
10
+ containerStyle?: any;
11
+ onPress?: (x?: any) => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ import Checkbox from './checkbox.native';
2
+ export default Checkbox;
@@ -0,0 +1,9 @@
1
+ import { ColorsType } from '../../../../styles';
2
+ import { CheckboxSize, CheckboxState } from '../../Checkbox/Checkbox/checkbox_types.native';
3
+ type ChekboxIconProps = {
4
+ size: CheckboxSize;
5
+ colors: ColorsType;
6
+ state: CheckboxState;
7
+ };
8
+ declare const ChekboxIcon: (props: ChekboxIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default ChekboxIcon;
@@ -1,5 +1,6 @@
1
1
  import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.native';
2
2
  import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.native';
3
+ import { CheckboxProps } from '../../Checkbox/Checkbox/checkbox_types.native';
3
4
  export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
4
5
  export type ListItemSize = 'medium' | 'small';
5
6
  export type ListItemColor = 'black' | 'gray';
@@ -16,6 +17,7 @@ export interface ListItemProps {
16
17
  helperText?: string;
17
18
  avatar?: AvatarProps;
18
19
  credential?: MiniCredentialCardProps;
20
+ checkbox?: CheckboxProps;
19
21
  containerStyle?: any;
20
22
  onPress?: (x: any) => void;
21
23
  }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CheckboxProps } from './checkbox_types.web';
3
+ declare const Checkbox: (props: React.PropsWithChildren<CheckboxProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export default Checkbox;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const styles: () => {
3
+ checkboxContainer: React.CSSProperties;
4
+ checkboxTextContainer: React.CSSProperties;
5
+ };
@@ -0,0 +1,12 @@
1
+ export type CheckboxSize = 'medium' | 'small';
2
+ export type CheckboxState = 'active' | 'default' | 'hover' | 'disable';
3
+ export type CheckboxAlign = 'left' | 'right';
4
+ export interface CheckboxProps {
5
+ state: CheckboxState;
6
+ leadingText?: string;
7
+ size?: CheckboxSize;
8
+ textAlign?: CheckboxAlign;
9
+ showInfoIcon?: boolean;
10
+ containerStyle?: any;
11
+ onPress?: (x?: any) => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ import Checkbox from './checkbox.web';
2
+ export default Checkbox;
@@ -0,0 +1,9 @@
1
+ import { ColorsType } from '../../../../styles';
2
+ import { CheckboxSize, CheckboxState } from '../../Checkbox/Checkbox/checkbox_types.web';
3
+ type ChekboxIconProps = {
4
+ size: CheckboxSize;
5
+ colors: ColorsType;
6
+ state: CheckboxState;
7
+ };
8
+ declare const ChekboxIcon: (props: ChekboxIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default ChekboxIcon;
@@ -1,5 +1,6 @@
1
1
  import { AvatarProps } from '../../Avatars/Avatar/Avatar.types.web';
2
2
  import { MiniCredentialCardProps } from '../../Cards/MiniCredential/miniCredential_types.web';
3
+ import { CheckboxProps } from '../../Checkbox/Checkbox/checkbox_types.web';
3
4
  export type ListItemCondition = 'all' | 'title' | 'titleExtraInfo';
4
5
  export type ListItemSize = 'medium' | 'small';
5
6
  export type ListItemColor = 'black' | 'gray';
@@ -17,5 +18,6 @@ export interface ListItemProps {
17
18
  avatar?: AvatarProps;
18
19
  credential?: MiniCredentialCardProps;
19
20
  containerStyle?: any;
21
+ checkbox?: CheckboxProps;
20
22
  onPress?: (x: any) => void;
21
23
  }