ikualo-ui-kit-mobile 1.8.1 → 1.8.2

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/app.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "ikualo-app-2.0",
4
4
  "slug": "ikualo-app-20",
5
5
  "owner": "ikualo",
6
- "version": "1.8.1",
6
+ "version": "1.8.2",
7
7
  "orientation": "portrait",
8
8
  "icon": "./assets/icon.png",
9
9
  "userInterfaceStyle": "automatic",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -6,7 +6,7 @@ import { getStyleInput } from '../../../assets/styles/elements/inputs';
6
6
  import useStore from '../../store';
7
7
 
8
8
  export const InputCheckbox = (props: ICheckboxComponent) => {
9
- const { checked, onChange, label } = props;
9
+ const { checked, onChange, label, onlyRead } = props;
10
10
  const theme = useStore().theme;
11
11
  const [check, setCheck] = useState(checked);
12
12
  const styleInputs = getStyleInput(theme);
@@ -18,6 +18,7 @@ export const InputCheckbox = (props: ICheckboxComponent) => {
18
18
  <View style={styleInputs['input-checkbox-container']}>
19
19
  <TouchableHighlight
20
20
  underlayColor={theme.colors.background_focus}
21
+ disabled={onlyRead}
21
22
  style={styleInputs['input-checkbox']}
22
23
  onPress={() => {
23
24
  setCheck(!check);
@@ -25,6 +26,7 @@ export const InputCheckbox = (props: ICheckboxComponent) => {
25
26
  >
26
27
  {check ? <CheckboxCheckedIcon /> : <CheckboxEmptyIcon />}
27
28
  </TouchableHighlight>
29
+
28
30
  {label && <Text style={styleInputs['input-checkbox-label']}>{label}</Text>}
29
31
  </View>
30
32
  );
@@ -113,6 +113,7 @@ export interface ICardList {
113
113
  }
114
114
  export interface ICheckboxComponent {
115
115
  checked: boolean;
116
+ onlyRead?: boolean;
116
117
  onChange: (value: boolean) => void;
117
118
  label?: string;
118
119
  }