@ornikar/kitt-universal 29.2.0 → 29.3.1-canary.6b7ecf37244f3cc0cd184aea4070cfbc57961bfd.0

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.
@@ -6354,20 +6354,16 @@ function PlatformDateTimePicker({
6354
6354
  testID,
6355
6355
  onChange
6356
6356
  }) {
6357
- const theme = useTheme();
6358
6357
  const displayMode = getDatePickerDisplayMode();
6359
- const iosProps = Platform.OS === 'ios' ? {
6360
- textColor: theme.kitt.colors.primary
6361
- } : {};
6362
6358
  return /*#__PURE__*/jsx(DateTimePicker, {
6363
6359
  is24Hour: true,
6364
6360
  testID: testID,
6365
6361
  value: value || defaultDate,
6366
6362
  mode: "date",
6363
+ themeVariant: "light",
6367
6364
  maximumDate: maximumDate,
6368
6365
  minimumDate: minimuDate,
6369
6366
  display: displayMode,
6370
- ...iosProps,
6371
6367
  onChange: (_event, date) => onChange(date)
6372
6368
  });
6373
6369
  }
@@ -12192,7 +12188,6 @@ function SegmentedProgressBar({
12192
12188
  });
12193
12189
  }
12194
12190
 
12195
- const AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
12196
12191
  function SkeletonContent({
12197
12192
  isLoading,
12198
12193
  width
@@ -12213,24 +12208,27 @@ function SkeletonContent({
12213
12208
  translateX: interpolate(sharedX.value, [0, 1], [-width, width])
12214
12209
  }]
12215
12210
  };
12216
- });
12211
+ }, [sharedX, width]);
12217
12212
  return /*#__PURE__*/jsx(View, {
12218
12213
  height: "100%",
12219
12214
  width: "100%",
12220
12215
  backgroundColor: "kitt.skeleton.backgroundColor",
12221
12216
  borderColor: "kitt.skeleton.flareColor",
12222
- children: /*#__PURE__*/jsx(AnimatedLinearGradient, {
12223
- colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
12224
- locations: [0.1, 0.5, 0.9],
12225
- start: {
12226
- x: 0,
12227
- y: 0
12228
- },
12229
- end: {
12230
- x: 1,
12231
- y: 0
12232
- },
12233
- style: [StyleSheet.absoluteFill, linearGradientStyle]
12217
+ children: /*#__PURE__*/jsx(Animated.View, {
12218
+ style: [StyleSheet.absoluteFill, linearGradientStyle],
12219
+ children: /*#__PURE__*/jsx(LinearGradient, {
12220
+ colors: [theme.kitt.skeleton.backgroundColor, theme.kitt.skeleton.flareColor, theme.kitt.skeleton.backgroundColor],
12221
+ locations: [0.1, 0.5, 0.9],
12222
+ start: {
12223
+ x: 0,
12224
+ y: 0
12225
+ },
12226
+ end: {
12227
+ x: 1,
12228
+ y: 0
12229
+ },
12230
+ style: StyleSheet.absoluteFill
12231
+ })
12234
12232
  })
12235
12233
  });
12236
12234
  }
@@ -13170,6 +13168,7 @@ function ModalDateTimePicker({
13170
13168
  minuteInterval: minuteInterval,
13171
13169
  testID: pickerTestID,
13172
13170
  value: currentValue,
13171
+ themeVariant: "light",
13173
13172
  mode: "time",
13174
13173
  display: Platform.OS === 'ios' ? 'spinner' : 'default',
13175
13174
  onChange: (event, date) => handleChange(date)