@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 CHANGED
@@ -11,7 +11,7 @@
11
11
  "resizeMode": "contain",
12
12
  "backgroundColor": "#ffffff"
13
13
  },
14
- "newArchEnabled": true,
14
+ "newArchEnabled": false,
15
15
  "updates": {
16
16
  "fallbackToCacheTimeout": 0
17
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -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={true}
101
+ error={false}
102
+ isOutside={true}
102
103
  />
103
104
  </SwipeableContainer>
104
105
  );