New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-box-lite

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-box-lite - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

src/components/groups/CheckboxGroup.tsx

2

package.json
{
"name": "react-native-box-lite",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {

@@ -5,0 +5,0 @@ "lint": "eslint .",

@@ -10,3 +10,4 @@ import Text from './text';

import ProgressCircle from './progressCircle';
import SliderBox from './sliderBox';
import SwipeBox from './swipeBox';
export * from './groups';

@@ -23,3 +24,3 @@ export {

ProgressCircle,
SliderBox,
SwipeBox,
};
import {
ImageRequireSource,
ImageResizeMode,

@@ -13,5 +12,4 @@ ImageSourcePropType,

} from 'react-native';
import {ImageType, Varian, VarianCheckbox, VarianColor} from '.';
import {ImageModuleType, Varian, VarianCheckbox, VarianColor} from '.';
import {ReactNode} from 'react';
import {Source} from 'react-native-fast-image';

@@ -35,19 +33,22 @@ interface checkedType {

export interface CheckBoxProps<ItemT = any> {
interface CheckboxItemBaseProps {
className?: string;
classNameParent?: string;
classNameBox?: string;
classNameChildren?: string;
classNameLabel?: string;
classNameStatus?: checkedType;
size?: number;
enableDebounce?: boolean;
delayDebounce?: number;
resizeMode?: ImageResizeMode;
varian?: VarianCheckbox;
}
export interface CheckboxProps<ItemT = any> extends CheckboxItemBaseProps {
checked?: boolean;
value?: ItemT;
label?: string;
size?: number;
iconColor?: string;
iconChecked?: ImageSourcePropType;
iconSize?: number;
enableDebounce?: boolean;
delayDebounce?: number;
resizeMode?: ImageResizeMode;
varian?: VarianCheckbox;
renderIconChecked?: (checked?: boolean) => ReactNode;

@@ -57,7 +58,3 @@ onPress?: (value?: ItemT) => void;

export interface RadioButtonBox<ItemT = any> {
className?: string;
classNameParent?: string;
classNameChildren?: string;
classNameLabel?: string;
export interface RadioButtonProps<ItemT = any> extends CheckboxItemBaseProps {
classNameStatus?: checkedType & {

@@ -69,6 +66,3 @@ borderChecked?: string;

label?: string;
size?: number;
sizeChildren?: number;
enableDebounce?: boolean;
delayDebounce?: number;
varian?: VarianColor;

@@ -79,5 +73,5 @@ onPress?: (value?: ItemT) => void;

export interface ImageBoxProps {
source: ImageRequireSource | Source;
source: ImageSourcePropType;
className: string;
imageType?: ImageType;
imageModuleType?: ImageModuleType;
style?: StyleProp<ImageStyle>;

@@ -112,3 +106,3 @@ resizeMode?: ImageStyle['resizeMode'];

export interface SliderBoxProps<ItemT = any> extends ScrollViewProps {
export interface SwipeBoxProps<ItemT = any> extends ScrollViewProps {
classBox: string;

@@ -141,1 +135,27 @@ classSlider: string;

}
interface GroupPropsBase<ItemT = any> {
data: ItemT[];
classBox?: string;
pickKey?: keyof ItemT;
pickLabel?: keyof ItemT;
onPress?: (value?: ItemT) => void;
}
export interface RadioGroupProps extends GroupPropsBase {
value?: number | string;
radioItem?: CheckboxItemBaseProps & {
size?: number;
sizeChildren?: number;
varian?: VarianColor;
};
}
export interface CheckBoxGroupProps extends GroupPropsBase {
value?: (number | string)[];
checkBoxItem?: CheckboxItemBaseProps & {
iconColor?: string;
iconChecked?: ImageSourcePropType;
iconSize?: number;
};
}

@@ -14,5 +14,5 @@ export * from './classStyle';

export enum ImageType {
export enum ImageModuleType {
Image,
FastImage,
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc