@tactics/toddle-styleguide 5.1.0 → 5.2.1
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 +1 -1
- package/package.json +1 -1
- package/src/components/organisms/child-list-item/child-list-item.component.d.ts +2 -1
- package/src/components/organisms/child-list-item/child-list-item.component.tsx +3 -0
- package/src/components/organisms/child-list-item/child-list-item.preview.tsx +2 -1
package/app.json
CHANGED
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ type ChildListItemProps = {
|
|
|
18
18
|
tags?: string[];
|
|
19
19
|
error: boolean;
|
|
20
20
|
isBirthday?: boolean;
|
|
21
|
+
isOutside?: boolean;
|
|
21
22
|
};
|
|
22
|
-
declare const ChildListItem: React.MemoExoticComponent<({ id, name, department, selectable, isSelected, onPressArrow, onPressText, onLongPress, onSelect, sourceAvatar, textTimeTracker, visualStateTimeTracker, tags, error, isBirthday, }: ChildListItemProps) => React.JSX.Element>;
|
|
23
|
+
declare const ChildListItem: React.MemoExoticComponent<({ id, name, department, selectable, isSelected, onPressArrow, onPressText, onLongPress, onSelect, sourceAvatar, textTimeTracker, visualStateTimeTracker, tags, error, isBirthday, isOutside }: ChildListItemProps) => React.JSX.Element>;
|
|
23
24
|
export { ChildListItem as ChildListItem };
|
|
@@ -30,6 +30,7 @@ type ChildListItemProps = {
|
|
|
30
30
|
tags?: string[];
|
|
31
31
|
error: boolean;
|
|
32
32
|
isBirthday?: boolean;
|
|
33
|
+
isOutside?: boolean;
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
const ChildListItem = React.memo(
|
|
@@ -49,6 +50,7 @@ const ChildListItem = React.memo(
|
|
|
49
50
|
tags,
|
|
50
51
|
error,
|
|
51
52
|
isBirthday,
|
|
53
|
+
isOutside
|
|
52
54
|
}: ChildListItemProps) => {
|
|
53
55
|
const context = useContext(ThemeCtx);
|
|
54
56
|
const styles = Stylesheet(isSelected, context);
|
|
@@ -105,6 +107,7 @@ const ChildListItem = React.memo(
|
|
|
105
107
|
size={Size.MEDIUM}
|
|
106
108
|
isLoading={longPressExecuting}
|
|
107
109
|
isBirthday={isBirthday}
|
|
110
|
+
isBlocked={isOutside}
|
|
108
111
|
/>
|
|
109
112
|
<View style={styles.pressableText}>
|
|
110
113
|
<View style={styles.trackerContainer}>
|
|
@@ -98,7 +98,8 @@ export const ChildListItemPreview = ({}: {}) => {
|
|
|
98
98
|
// sourceAvatar={require('./../../../../assets/components/avatar/baby.png')}
|
|
99
99
|
sourceAvatar={Initials.for('Zeno', 'Driesen')}
|
|
100
100
|
tags={item.tags}
|
|
101
|
-
error={
|
|
101
|
+
error={false}
|
|
102
|
+
isOutside={true}
|
|
102
103
|
/>
|
|
103
104
|
</SwipeableContainer>
|
|
104
105
|
);
|