@ornikar/kitt-universal 7.0.0 → 7.0.3

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.
@@ -316,7 +316,7 @@ function AvatarContent(_ref5) {
316
316
 
317
317
  if (firstname && lastname) {
318
318
  return /*#__PURE__*/jsx(Typography.Text, {
319
- base: sizeVariant === 'large' ? 'body-large' : 'body',
319
+ base: sizeVariant === 'large' ? 'body-large' : 'body-small',
320
320
  variant: sizeVariant === 'large' ? 'bold' : 'regular',
321
321
  color: isLight ? 'black' : 'white',
322
322
  children: getInitials(firstname, lastname)
@@ -1781,12 +1781,10 @@ var OverlayPressable = /*#__PURE__*/styled(Pressable).withConfig({
1781
1781
  });
1782
1782
  });
1783
1783
  function Overlay(_ref2) {
1784
- var onPress = _ref2.onPress,
1785
- children = _ref2.children;
1784
+ var onPress = _ref2.onPress;
1786
1785
  return /*#__PURE__*/jsx(OverlayPressable, {
1787
1786
  accessibilityRole: "none",
1788
- onPress: onPress,
1789
- children: children
1787
+ onPress: onPress
1790
1788
  });
1791
1789
  }
1792
1790
 
@@ -3899,6 +3897,12 @@ function ModalDateTimePicker(_ref2) {
3899
3897
  }
3900
3898
 
3901
3899
  var timePickerPlaceholder = '--:--';
3900
+ var formatNumberToTimeString = function (time) {
3901
+ return "".concat(String(time).padStart(2, '0'));
3902
+ };
3903
+ var formatDateToTimeString = function (date) {
3904
+ return "".concat(formatNumberToTimeString(date.getHours()), ":").concat(formatNumberToTimeString(date.getMinutes()));
3905
+ };
3902
3906
  var useTimePicker = function (value, onChange, onBlur, disabled, defaultValue) {
3903
3907
  var _useState = useState(false),
3904
3908
  _useState2 = _slicedToArray(_useState, 2),
@@ -3911,10 +3915,7 @@ var useTimePicker = function (value, onChange, onBlur, disabled, defaultValue) {
3911
3915
  }, []);
3912
3916
  var defaultDate = defaultValue || todayAtNoon;
3913
3917
  var dateTimePickerValue = value || defaultDate;
3914
- var displayedValue = value === null ? timePickerPlaceholder : Intl.DateTimeFormat('fr-FR', {
3915
- minute: 'numeric',
3916
- hour: 'numeric'
3917
- }).format(dateTimePickerValue);
3918
+ var displayedValue = value === null ? timePickerPlaceholder : formatDateToTimeString(dateTimePickerValue);
3918
3919
  var timePickerState = isTimePickerModalVisible ? 'focus' : 'default';
3919
3920
  return {
3920
3921
  dateTimePickerValue: dateTimePickerValue,