@ornikar/kitt-universal 9.30.2 → 9.32.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.
Files changed (92) hide show
  1. package/dist/definitions/KittBreakpoints.d.ts +2 -2
  2. package/dist/definitions/KittBreakpoints.d.ts.map +1 -1
  3. package/dist/definitions/NavigationModal/Body.d.ts +2 -1
  4. package/dist/definitions/NavigationModal/Body.d.ts.map +1 -1
  5. package/dist/definitions/NavigationModal/Header.d.ts +3 -1
  6. package/dist/definitions/NavigationModal/Header.d.ts.map +1 -1
  7. package/dist/definitions/NavigationModal/NavigationModalAnimation.d.ts.map +1 -1
  8. package/dist/definitions/NavigationModal/components/NativeSlideInAnimation.d.ts +1 -2
  9. package/dist/definitions/NavigationModal/components/NativeSlideInAnimation.d.ts.map +1 -1
  10. package/dist/definitions/forms/DatePicker/DatePicker.d.ts +36 -2
  11. package/dist/definitions/forms/DatePicker/DatePicker.d.ts.map +1 -1
  12. package/dist/definitions/forms/DatePicker/DatePicker.web.d.ts +2 -2
  13. package/dist/definitions/forms/DatePicker/DatePicker.web.d.ts.map +1 -1
  14. package/dist/definitions/forms/DatePicker/components/DatePickerInputs.d.ts +25 -0
  15. package/dist/definitions/forms/DatePicker/components/DatePickerInputs.d.ts.map +1 -0
  16. package/dist/definitions/forms/DatePicker/components/InputPart.d.ts +16 -0
  17. package/dist/definitions/forms/DatePicker/components/InputPart.d.ts.map +1 -0
  18. package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts +7 -0
  19. package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts.map +1 -0
  20. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DatePickerAndroid.d.ts +8 -0
  21. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DatePickerAndroid.d.ts.map +1 -0
  22. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DefaultNativeUIDatePicker.d.ts +4 -0
  23. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/DefaultNativeUIDatePicker.d.ts.map +1 -0
  24. package/dist/definitions/forms/DatePicker/{ModalPlatformDateTimePicker.d.ts → components/NativeUIDatePicker/ModalPlatformDateTimePicker.d.ts} +0 -0
  25. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/ModalPlatformDateTimePicker.d.ts.map +1 -0
  26. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/NativeUIDatePicker.d.ts +7 -0
  27. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/NativeUIDatePicker.d.ts.map +1 -0
  28. package/dist/definitions/forms/DatePicker/{PlatformDateTimePicker.d.ts → components/NativeUIDatePicker/PlatformDateTimePicker.d.ts} +0 -0
  29. package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/PlatformDateTimePicker.d.ts.map +1 -0
  30. package/dist/definitions/forms/DatePicker/components/PartContainer.d.ts +10 -0
  31. package/dist/definitions/forms/DatePicker/components/PartContainer.d.ts.map +1 -0
  32. package/dist/definitions/forms/DatePicker/reducers/keyboardDatePickerReducer.d.ts +41 -0
  33. package/dist/definitions/forms/DatePicker/reducers/keyboardDatePickerReducer.d.ts.map +1 -0
  34. package/dist/definitions/forms/DatePicker/utils/dateFormatter.d.ts +4 -0
  35. package/dist/definitions/forms/DatePicker/utils/dateFormatter.d.ts.map +1 -0
  36. package/dist/definitions/forms/DatePicker/utils/datePartInInterval.d.ts +4 -0
  37. package/dist/definitions/forms/DatePicker/utils/datePartInInterval.d.ts.map +1 -0
  38. package/dist/definitions/forms/DatePicker/utils/isNumber.d.ts +2 -0
  39. package/dist/definitions/forms/DatePicker/utils/isNumber.d.ts.map +1 -0
  40. package/dist/definitions/forms/DatePicker/utils/onDatePartChange.d.ts +11 -0
  41. package/dist/definitions/forms/DatePicker/utils/onDatePartChange.d.ts.map +1 -0
  42. package/dist/definitions/forms/DatePicker/utils/stringToNumber.d.ts +2 -0
  43. package/dist/definitions/forms/DatePicker/utils/stringToNumber.d.ts.map +1 -0
  44. package/dist/definitions/forms/InputText/InputText.d.ts +4 -1
  45. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  46. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +1 -1
  47. package/dist/definitions/forms/utils.d.ts +0 -8
  48. package/dist/definitions/forms/utils.d.ts.map +1 -1
  49. package/dist/definitions/index.d.ts +1 -1
  50. package/dist/definitions/index.d.ts.map +1 -1
  51. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +25 -0
  52. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  53. package/dist/definitions/themes/default.d.ts +1 -0
  54. package/dist/definitions/themes/default.d.ts.map +1 -1
  55. package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts +1 -0
  56. package/dist/definitions/themes/palettes/lateOceanColorPalette.d.ts.map +1 -1
  57. package/dist/index-browser-all.es.android.js +701 -319
  58. package/dist/index-browser-all.es.android.js.map +1 -1
  59. package/dist/index-browser-all.es.ios.js +701 -319
  60. package/dist/index-browser-all.es.ios.js.map +1 -1
  61. package/dist/index-browser-all.es.js +701 -319
  62. package/dist/index-browser-all.es.js.map +1 -1
  63. package/dist/index-browser-all.es.web.js +437 -203
  64. package/dist/index-browser-all.es.web.js.map +1 -1
  65. package/dist/index-node-14.17.cjs.js +616 -231
  66. package/dist/index-node-14.17.cjs.js.map +1 -1
  67. package/dist/index-node-14.17.cjs.web.js +416 -171
  68. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  69. package/dist/linaria-themes-browser-all.es.android.js +1 -0
  70. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  71. package/dist/linaria-themes-browser-all.es.ios.js +1 -0
  72. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  73. package/dist/linaria-themes-browser-all.es.js +1 -0
  74. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  75. package/dist/linaria-themes-browser-all.es.web.js +1 -0
  76. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  77. package/dist/linaria-themes-node-14.17.cjs.js +1 -0
  78. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  79. package/dist/linaria-themes-node-14.17.cjs.web.js +1 -0
  80. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  81. package/dist/tsbuildinfo +1 -1
  82. package/package.json +2 -2
  83. package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts +0 -12
  84. package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts.map +0 -1
  85. package/dist/definitions/forms/DatePicker/DatePickerInputPart.d.ts +0 -11
  86. package/dist/definitions/forms/DatePicker/DatePickerInputPart.d.ts.map +0 -1
  87. package/dist/definitions/forms/DatePicker/DatePickerInputs.d.ts +0 -9
  88. package/dist/definitions/forms/DatePicker/DatePickerInputs.d.ts.map +0 -1
  89. package/dist/definitions/forms/DatePicker/ModalPlatformDateTimePicker.d.ts.map +0 -1
  90. package/dist/definitions/forms/DatePicker/PlatformDateTimePicker.d.ts.map +0 -1
  91. package/dist/definitions/forms/DatePicker/types.d.ts +0 -35
  92. package/dist/definitions/forms/DatePicker/types.d.ts.map +0 -1
@@ -4,7 +4,7 @@ import { Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Cen
4
4
  export { useBreakpointValue, useClipboard, useToken } from 'native-base';
5
5
  import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
6
6
  import _extends from '@babel/runtime/helpers/extends';
7
- import { useContext, createContext, cloneElement, forwardRef, useState, useRef, useEffect, useMemo, Children, Fragment as Fragment$1 } from 'react';
7
+ import { useContext, createContext, cloneElement, forwardRef, useState, useRef, useEffect, useMemo, Children, useReducer, Fragment as Fragment$1 } from 'react';
8
8
  import styled, { useTheme, css, withTheme as withTheme$1, ThemeProvider } from 'styled-components/native';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
@@ -207,14 +207,6 @@ var TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
207
207
  function useTypographyDefaultColor() {
208
208
  return useContext(TypographyDefaultColorContext);
209
209
  }
210
-
211
- /** @deprecated use native-base instead for SSR compatibility */
212
- var getTypographyTypeConfigKey = function (theme) {
213
- var isMediumOrAbove = theme.responsive.matchWindowSize({
214
- minWidth: KittBreakpoints.MEDIUM
215
- });
216
- return isMediumOrAbove ? 'mediumAndWide' : 'baseAndSmall';
217
- };
218
210
  function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
219
211
  return breakpointName === 'base' || breakpointName === 'small' ? 'baseAndSmall' : 'mediumAndWide';
220
212
  }
@@ -917,6 +909,7 @@ var lateOceanColorPalette = {
917
909
  englishVermillon: '#D44148',
918
910
  goldCrayola: '#F8C583',
919
911
  aero: '#89BDDD',
912
+ seaShell: '#FFF9F3',
920
913
  transparent: 'transparent',
921
914
  moonPurple: '#DBD6F9',
922
915
  moonPurpleLight1: '#EDEBFC'
@@ -2986,171 +2979,188 @@ function Checkbox(_ref6) {
2986
2979
  });
2987
2980
  }
2988
2981
 
2989
- /** @deprecated use native-base instead */
2990
- function getInputUIState(_ref) {
2991
- var isFocused = _ref.isFocused,
2992
- isDisabled = _ref.isDisabled,
2993
- formState = _ref.formState;
2994
- if (isDisabled) return 'disabled';
2995
- if (isFocused) return 'focus';
2996
- if (formState === 'invalid') return 'invalid';
2997
- return 'default';
2982
+ function prefixWithZero(value) {
2983
+ var maxLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
2984
+ return "".concat(value).padStart(maxLength, '0');
2998
2985
  }
2999
-
3000
- /** @deprecated this mixin is not SSR compatible */
3001
- var styledTextInputMixin = /*#__PURE__*/css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], function (_ref) {
3002
- var theme = _ref.theme,
3003
- $state = _ref.$state;
3004
- return $state === 'disabled' ? theme.kitt.forms.input.states.disabled.backgroundColor : theme.kitt.forms.input.states["default"].backgroundColor;
3005
- }, function (_ref2) {
3006
- var theme = _ref2.theme;
3007
- return theme.kitt.forms.input.borderWidth;
3008
- }, function (_ref3) {
3009
- var theme = _ref3.theme;
3010
- return theme.kitt.forms.input.borderRadius;
3011
- }, function (_ref4) {
3012
- var theme = _ref4.theme,
3013
- $state = _ref4.$state;
3014
- return theme.kitt.forms.input.states[$state].borderColor;
3015
- }, function (_ref5) {
3016
- var theme = _ref5.theme;
3017
- var typeConfigKey = getTypographyTypeConfigKey(theme);
3018
- return "".concat(theme.kitt.typography.types.bodies.configs.body[typeConfigKey].fontSize, "px");
3019
- }, function (_ref6) {
3020
- var theme = _ref6.theme,
3021
- $state = _ref6.$state;
3022
- return theme.kitt.forms.input.states[$state].color || theme.kitt.forms.input.states["default"].color;
3023
- }, function (_ref7) {
3024
- var theme = _ref7.theme;
3025
- return theme.kitt.typography.types.bodies.fontFamily.web.regular;
3026
- });
3027
-
3028
- var StyledTypographyText = /*#__PURE__*/styled(Typography.Text).withConfig({
3029
- displayName: "DatePickerInputPart__StyledTypographyText",
3030
- componentId: "kitt-universal__sc-11fmlmi-0"
3031
- })(["text-align:center;"]);
3032
- var ViewInput = /*#__PURE__*/styled(View$2).withConfig({
3033
- displayName: "DatePickerInputPart__ViewInput",
3034
- componentId: "kitt-universal__sc-11fmlmi-1"
3035
- })(["", " padding:", ";min-height:", "px;min-width:", ";"], styledTextInputMixin, function (_ref) {
3036
- var theme = _ref.theme;
3037
- return "".concat(theme.kitt.forms.input.padding.vertical, "px ").concat(theme.kitt.forms.input.padding.horizontal, "px");
3038
- }, function (_ref2) {
3039
- var theme = _ref2.theme;
3040
- return theme.kitt.forms.input.minHeight;
3041
- }, function (_ref3) {
3042
- var theme = _ref3.theme,
3043
- $partName = _ref3.$partName;
3044
- if (!$partName) {
3045
- return undefined;
3046
- }
3047
- return "".concat(theme.kitt.forms.datePicker[$partName].minWidth, "px");
3048
- });
3049
- function DatePickerInputPart(_ref4) {
3050
- var $state = _ref4.$state,
3051
- placeholder = _ref4.placeholder,
3052
- value = _ref4.value,
3053
- partName = _ref4.partName,
3054
- disabled = _ref4.disabled;
3055
- return /*#__PURE__*/jsx(ViewInput, {
3056
- $state: $state,
3057
- $partName: partName,
3058
- children: placeholder || value ? /*#__PURE__*/jsx(StyledTypographyText, {
3059
- color: !value || disabled ? 'black-light' : undefined,
3060
- children: value || placeholder
3061
- }) : null
3062
- });
2986
+ function dayFormatter(day) {
2987
+ return prefixWithZero(day);
2988
+ }
2989
+ function monthFormatter(month) {
2990
+ return prefixWithZero(month);
2991
+ }
2992
+ function yearFormatter(year) {
2993
+ return prefixWithZero(year, 4);
3063
2994
  }
3064
2995
 
3065
- function prefixWithZero(value) {
3066
- return "".concat(value).padStart(2, '0');
2996
+ function getDayInInterval(value, minDate, maxDate) {
2997
+ var minValue = minDate ? minDate.getDate() : 1;
2998
+ var maxValue = maxDate ? maxDate.getDate() : 31;
2999
+ return value !== undefined ? Math.max(minValue, Math.min(maxValue, value)) : value;
3067
3000
  }
3068
- var PartContainer = /*#__PURE__*/styled(View$2).withConfig({
3069
- displayName: "DatePickerInputs__PartContainer",
3070
- componentId: "kitt-universal__sc-j9hin5-0"
3071
- })(["margin-right:", ";", ";"], function (_ref) {
3072
- var theme = _ref.theme,
3073
- $isLast = _ref.$isLast;
3074
- return !$isLast ? "".concat(theme.kitt.spacing * 2, "px") : 0;
3075
- }, function (_ref2) {
3076
- var $isStretch = _ref2.$isStretch;
3077
- return $isStretch ? css(["flex:0.33;flex-grow:1;"]) : undefined;
3078
- });
3079
- var DatePickerPressable = /*#__PURE__*/styled(Pressable$2).withConfig({
3080
- displayName: "DatePickerInputs__DatePickerPressable",
3081
- componentId: "kitt-universal__sc-j9hin5-1"
3082
- })(["display:flex;flex-direction:row;", ";"], function (_ref3) {
3083
- var $isStretch = _ref3.$isStretch;
3084
- if ($isStretch) {
3085
- return css(["width:100%;"]);
3086
- }
3087
- return css(["align-self:baseline;"]);
3088
- });
3089
- function DatePickerInputs(_ref4) {
3090
- var state = _ref4.state,
3091
- internalForceState = _ref4.internalForceState,
3092
- isFocused = _ref4.isFocused,
3093
- disabled = _ref4.disabled,
3094
- stretch = _ref4.stretch,
3095
- id = _ref4.id,
3096
- testID = _ref4.testID,
3097
- handleModalOpen = _ref4.handleModalOpen,
3098
- currentValue = _ref4.currentValue,
3099
- placeholder = _ref4.placeholder;
3100
- var currentState = internalForceState || getInputUIState({
3101
- isFocused: isFocused,
3102
- isDisabled: Boolean(disabled),
3103
- formState: state
3104
- });
3105
- var sharedPartProps = {
3106
- disabled: disabled,
3107
- $state: currentState
3108
- };
3109
- return /*#__PURE__*/jsxs(DatePickerPressable, {
3110
- $isStretch: stretch,
3111
- nativeID: id,
3112
- disabled: disabled,
3113
- testID: testID,
3114
- onPress: handleModalOpen,
3115
- children: [/*#__PURE__*/jsx(PartContainer, {
3116
- $isStretch: stretch,
3117
- children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
3118
- partName: "day",
3119
- value: currentValue ? prefixWithZero(currentValue.getDate()) : undefined,
3120
- placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day
3121
- }))
3122
- }), /*#__PURE__*/jsx(PartContainer, {
3123
- $isStretch: stretch,
3124
- children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
3125
- partName: "month",
3126
- value: currentValue ? prefixWithZero(currentValue.getMonth() + 1) : undefined,
3127
- placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month
3128
- }))
3129
- }), /*#__PURE__*/jsx(PartContainer, {
3130
- $isLast: true,
3131
- $isStretch: stretch,
3132
- children: /*#__PURE__*/jsx(DatePickerInputPart, _objectSpread(_objectSpread({}, sharedPartProps), {}, {
3133
- partName: "year",
3134
- value: currentValue ? currentValue.getFullYear() : undefined,
3135
- placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year
3136
- }))
3137
- })]
3138
- });
3001
+ function getMonthInInterval(value, minDate, maxDate) {
3002
+ var minValue = minDate ? minDate.getMonth() + 1 : 1;
3003
+ var maxValue = maxDate ? maxDate.getMonth() + 1 : 12;
3004
+ return value !== undefined ? Math.max(minValue, Math.min(maxValue, value)) : value;
3005
+ }
3006
+ function getYearInInterval(value, minDate, maxDate) {
3007
+ var minValue = minDate ? minDate.getFullYear() : 1;
3008
+ var maxValue = maxDate ? maxDate.getFullYear() : 9999;
3009
+ return value !== undefined ? Math.max(minValue, Math.min(maxValue, value)) : value;
3139
3010
  }
3140
3011
 
3141
- var _excluded$h = ["value"];
3142
- // This is not yet implemented
3143
- // We still display the inputs for chromatic
3144
- function DatePicker(_ref) {
3145
- var value = _ref.value,
3146
- props = _objectWithoutProperties(_ref, _excluded$h);
3147
- return /*#__PURE__*/jsx(DatePickerInputs, _objectSpread({
3148
- handleModalOpen: function handleModalOpen() {},
3149
- currentValue: value,
3150
- isFocused: false
3151
- }, props));
3012
+ function isNumber(input) {
3013
+ // Number.isNaN and isNaN are not consistent
3014
+ // eslint-disable-next-line no-restricted-globals
3015
+ return !isNaN(input);
3152
3016
  }
3153
3017
 
3018
+ function onDatePartChange(_ref) {
3019
+ var day = _ref.day,
3020
+ month = _ref.month,
3021
+ year = _ref.year,
3022
+ onChange = _ref.onChange,
3023
+ onBlur = _ref.onBlur,
3024
+ onFocus = _ref.onFocus;
3025
+ var arrayParts = [day, month, year];
3026
+ var isEverythingUndefined = arrayParts.every(function (v) {
3027
+ return v === undefined;
3028
+ });
3029
+ var isEverythingDefined = arrayParts.every(Boolean);
3030
+
3031
+ // every parts are undefined
3032
+ if (isEverythingUndefined) {
3033
+ if (onFocus) onFocus();
3034
+ onChange(undefined);
3035
+ if (onBlur) onBlur();
3036
+ return;
3037
+ }
3038
+
3039
+ // Do nothing if some input parts are empty
3040
+ if (!isEverythingDefined) {
3041
+ return;
3042
+ }
3043
+ var nextValue = new Date();
3044
+ if (day) nextValue.setDate(day);
3045
+ if (month) nextValue.setMonth(month - 1);
3046
+ if (year) nextValue.setFullYear(year);
3047
+ nextValue.setMinutes(0);
3048
+ nextValue.setHours(0);
3049
+ nextValue.setSeconds(0);
3050
+ nextValue.setMilliseconds(0);
3051
+ if (onFocus) onFocus();
3052
+ onChange(nextValue);
3053
+ if (onBlur) onBlur();
3054
+ }
3055
+
3056
+ function stringToNumber(text) {
3057
+ if (text.length === 0) return undefined;
3058
+ return parseInt(text, 10);
3059
+ }
3060
+
3061
+ var keyboardDatePickerReducer = function (state, action) {
3062
+ var handleChange = function (dateParts) {
3063
+ var onFocus = state.onFocus,
3064
+ onBlur = state.onBlur,
3065
+ onChange = state.onChange;
3066
+ onDatePartChange(_objectSpread(_objectSpread({}, dateParts), {}, {
3067
+ onFocus: onFocus,
3068
+ onBlur: onBlur,
3069
+ onChange: onChange
3070
+ }));
3071
+ };
3072
+ switch (action.type) {
3073
+ case 'day-change':
3074
+ {
3075
+ var nextDay = stringToNumber(action.nextDay || '');
3076
+ if (nextDay === undefined || !isNumber(action.nextDay)) {
3077
+ return _objectSpread(_objectSpread({}, state), {}, {
3078
+ currentDay: undefined,
3079
+ displayedDay: ''
3080
+ });
3081
+ }
3082
+ handleChange({
3083
+ day: nextDay,
3084
+ month: state.currentMonth,
3085
+ year: state.currentYear
3086
+ });
3087
+ return _objectSpread(_objectSpread({}, state), {}, {
3088
+ currentDay: nextDay,
3089
+ displayedDay: nextDay.toString()
3090
+ });
3091
+ }
3092
+ case 'month-change':
3093
+ {
3094
+ var nextMonth = stringToNumber(action.nextMonth || '');
3095
+ if (nextMonth === undefined || !isNumber(action.nextMonth)) {
3096
+ return _objectSpread(_objectSpread({}, state), {}, {
3097
+ currentMonth: undefined,
3098
+ displayedMonth: ''
3099
+ });
3100
+ }
3101
+ handleChange({
3102
+ day: state.currentDay,
3103
+ month: nextMonth,
3104
+ year: state.currentYear
3105
+ });
3106
+ return _objectSpread(_objectSpread({}, state), {}, {
3107
+ currentMonth: nextMonth,
3108
+ displayedMonth: nextMonth.toString()
3109
+ });
3110
+ }
3111
+ case 'year-change':
3112
+ {
3113
+ var nextYear = stringToNumber(action.nextYear || '');
3114
+ if (nextYear === undefined || !isNumber(action.nextYear)) {
3115
+ return _objectSpread(_objectSpread({}, state), {}, {
3116
+ currentYear: undefined,
3117
+ displayedYear: ''
3118
+ });
3119
+ }
3120
+ handleChange({
3121
+ day: state.currentDay,
3122
+ month: state.currentMonth,
3123
+ year: nextYear
3124
+ });
3125
+ return _objectSpread(_objectSpread({}, state), {}, {
3126
+ currentYear: nextYear,
3127
+ displayedYear: nextYear.toString()
3128
+ });
3129
+ }
3130
+ case 'day-blur':
3131
+ {
3132
+ var minDate = state.minDate,
3133
+ maxDate = state.maxDate;
3134
+ var nextCurrentDay = getDayInInterval(state.currentDay, minDate, maxDate);
3135
+ return _objectSpread(_objectSpread({}, state), {}, {
3136
+ displayedDay: nextCurrentDay ? dayFormatter(nextCurrentDay) : state.displayedDay
3137
+ });
3138
+ }
3139
+ case 'month-blur':
3140
+ {
3141
+ var _minDate = state.minDate,
3142
+ _maxDate = state.maxDate;
3143
+ var nextCurrentMonth = getMonthInInterval(state.currentMonth, _minDate, _maxDate);
3144
+ return _objectSpread(_objectSpread({}, state), {}, {
3145
+ currentMonth: nextCurrentMonth,
3146
+ displayedMonth: nextCurrentMonth !== undefined ? monthFormatter(nextCurrentMonth) : state.displayedMonth
3147
+ });
3148
+ }
3149
+ case 'year-blur':
3150
+ {
3151
+ var _minDate2 = state.minDate,
3152
+ _maxDate2 = state.maxDate;
3153
+ var nextCurrentYear = getYearInInterval(state.currentYear, _minDate2, _maxDate2);
3154
+ return _objectSpread(_objectSpread({}, state), {}, {
3155
+ currentYear: nextCurrentYear,
3156
+ displayedYear: nextCurrentYear !== undefined ? yearFormatter(nextCurrentYear) : state.displayedYear
3157
+ });
3158
+ }
3159
+ default:
3160
+ return state;
3161
+ }
3162
+ };
3163
+
3154
3164
  var _exp$3 = /*#__PURE__*/function () {
3155
3165
  return function (_ref) {
3156
3166
  var theme = _ref.theme;
@@ -3169,7 +3179,7 @@ var InputTextContainer = withTheme( /*#__PURE__*/styled$1('div')({
3169
3179
  }
3170
3180
  }));
3171
3181
 
3172
- var _excluded$g = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
3182
+ var _excluded$h = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "keyboardType", "multiline", "onSubmitEditing"];
3173
3183
  var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3174
3184
  var id = _ref.id,
3175
3185
  right = _ref.right;
@@ -3189,7 +3199,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3189
3199
  keyboardType = _ref$keyboardType === void 0 ? 'default' : _ref$keyboardType,
3190
3200
  multiline = _ref.multiline,
3191
3201
  onSubmitEditing = _ref.onSubmitEditing,
3192
- props = _objectWithoutProperties(_ref, _excluded$g);
3202
+ props = _objectWithoutProperties(_ref, _excluded$h);
3193
3203
  var theme = /*#__PURE__*/useTheme();
3194
3204
  var fontSizeForNativeBase = createNativeBaseFontSize({
3195
3205
  base: 'body'
@@ -3232,6 +3242,185 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
3232
3242
  });
3233
3243
  });
3234
3244
 
3245
+ function getCurrentInternalForcedState(_ref) {
3246
+ var isDisabled = _ref.isDisabled,
3247
+ isHoveredInternal = _ref.isHoveredInternal,
3248
+ isFocusedInternal = _ref.isFocusedInternal,
3249
+ isPressedInternal = _ref.isPressedInternal;
3250
+ if (isDisabled) return 'disabled';
3251
+ if (isHoveredInternal) return 'hover';
3252
+ if (isFocusedInternal) return 'focus';
3253
+ if (isPressedInternal) return 'hover';
3254
+ return 'default';
3255
+ }
3256
+ var InputPart = /*#__PURE__*/forwardRef(function (_ref2, ref) {
3257
+ var value = _ref2.value,
3258
+ placeholder = _ref2.placeholder,
3259
+ disabled = _ref2.disabled,
3260
+ isFocusedInternal = _ref2.isFocusedInternal,
3261
+ isHoveredInternal = _ref2.isHoveredInternal,
3262
+ isPressedInternal = _ref2.isPressedInternal,
3263
+ onChange = _ref2.onChange,
3264
+ onBlur = _ref2.onBlur;
3265
+ return /*#__PURE__*/jsx(InputText, {
3266
+ ref: ref,
3267
+ internalForceState: getCurrentInternalForcedState({
3268
+ isDisabled: disabled,
3269
+ isHoveredInternal: isHoveredInternal,
3270
+ isFocusedInternal: isFocusedInternal,
3271
+ isPressedInternal: isPressedInternal
3272
+ }),
3273
+ value: value,
3274
+ placeholder: placeholder,
3275
+ disabled: disabled,
3276
+ keyboardType: "numeric",
3277
+ textAlign: "center",
3278
+ onChange: onChange,
3279
+ onBlur: onBlur
3280
+ });
3281
+ });
3282
+
3283
+ function PartContainer(_ref) {
3284
+ var children = _ref.children,
3285
+ isStretch = _ref.isStretch,
3286
+ width = _ref.width;
3287
+ return /*#__PURE__*/jsx(View, {
3288
+ flex: createResponsiveStyleFromProp(isStretch, 0.33),
3289
+ flexGrow: createResponsiveStyleFromProp(isStretch, 1),
3290
+ width: isStretch ? undefined : width,
3291
+ children: children
3292
+ });
3293
+ }
3294
+
3295
+ var _excluded$g = ["value", "testID", "id", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onBlur", "onFocus"];
3296
+ function KeyboardDatePicker(_ref) {
3297
+ var value = _ref.value,
3298
+ testID = _ref.testID,
3299
+ id = _ref.id,
3300
+ stretch = _ref.stretch,
3301
+ placeholder = _ref.placeholder,
3302
+ minDate = _ref.minDate,
3303
+ maxDate = _ref.maxDate,
3304
+ disabled = _ref.disabled,
3305
+ isFocusedInternal = _ref.isFocusedInternal,
3306
+ isHoveredInternal = _ref.isHoveredInternal,
3307
+ isPressedInternal = _ref.isPressedInternal,
3308
+ onChange = _ref.onChange,
3309
+ onBlur = _ref.onBlur,
3310
+ onFocus = _ref.onFocus;
3311
+ _objectWithoutProperties(_ref, _excluded$g);
3312
+ var dayRef = useRef(null);
3313
+ var monthRef = useRef(null);
3314
+ var yearRef = useRef(null);
3315
+ var defaultValue = value;
3316
+ var defaultDay = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.getDate();
3317
+ var defaultMonth = defaultValue ? defaultValue.getMonth() + 1 : undefined;
3318
+ var defaultYear = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.getFullYear();
3319
+ var _useReducer = useReducer(keyboardDatePickerReducer, {
3320
+ currentValue: defaultValue,
3321
+ currentDay: defaultDay,
3322
+ currentMonth: defaultMonth,
3323
+ currentYear: defaultYear,
3324
+ displayedDay: defaultDay ? dayFormatter(defaultDay) : '',
3325
+ displayedMonth: defaultMonth ? monthFormatter(defaultMonth) : '',
3326
+ displayedYear: defaultYear ? yearFormatter(defaultYear) : '',
3327
+ minDate: minDate,
3328
+ maxDate: maxDate,
3329
+ onChange: onChange,
3330
+ onBlur: onBlur,
3331
+ onFocus: onFocus
3332
+ }),
3333
+ _useReducer2 = _slicedToArray(_useReducer, 2),
3334
+ state = _useReducer2[0],
3335
+ dispatch = _useReducer2[1];
3336
+ var sharedInputPartProps = {
3337
+ isFocusedInternal: isFocusedInternal,
3338
+ isHoveredInternal: isHoveredInternal,
3339
+ isPressedInternal: isPressedInternal,
3340
+ disabled: disabled
3341
+ };
3342
+ return /*#__PURE__*/jsx(View, {
3343
+ testID: testID,
3344
+ nativeID: id,
3345
+ children: /*#__PURE__*/jsxs(HStack, {
3346
+ space: "kitt.2",
3347
+ children: [/*#__PURE__*/jsx(PartContainer, {
3348
+ isStretch: stretch,
3349
+ width: "kitt.forms.datePicker.day.minWidth",
3350
+ children: /*#__PURE__*/jsx(InputPart, _objectSpread(_objectSpread({
3351
+ ref: dayRef
3352
+ }, sharedInputPartProps), {}, {
3353
+ placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.day,
3354
+ value: state.displayedDay,
3355
+ onChange: function (e) {
3356
+ var nextDay = e.nativeEvent.text;
3357
+ dispatch({
3358
+ type: 'day-change',
3359
+ nextDay: nextDay
3360
+ });
3361
+ if (nextDay.length === 2 && monthRef.current) {
3362
+ monthRef.current.focus();
3363
+ }
3364
+ },
3365
+ onBlur: function () {
3366
+ return dispatch({
3367
+ type: 'day-blur'
3368
+ });
3369
+ }
3370
+ }))
3371
+ }), /*#__PURE__*/jsx(PartContainer, {
3372
+ isStretch: stretch,
3373
+ width: "kitt.forms.datePicker.month.minWidth",
3374
+ children: /*#__PURE__*/jsx(InputPart, _objectSpread(_objectSpread({
3375
+ ref: monthRef
3376
+ }, sharedInputPartProps), {}, {
3377
+ placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.month,
3378
+ value: state.displayedMonth,
3379
+ onChange: function (e) {
3380
+ var nextMonth = e.nativeEvent.text;
3381
+ dispatch({
3382
+ type: 'month-change',
3383
+ nextMonth: e.nativeEvent.text
3384
+ });
3385
+ if (nextMonth.length === 2 && yearRef.current) {
3386
+ yearRef.current.focus();
3387
+ }
3388
+ },
3389
+ onBlur: function () {
3390
+ return dispatch({
3391
+ type: 'month-blur'
3392
+ });
3393
+ }
3394
+ }))
3395
+ }), /*#__PURE__*/jsx(PartContainer, {
3396
+ isStretch: stretch,
3397
+ width: "kitt.forms.datePicker.year.minWidth",
3398
+ children: /*#__PURE__*/jsx(InputPart, _objectSpread(_objectSpread({
3399
+ ref: yearRef
3400
+ }, sharedInputPartProps), {}, {
3401
+ placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder.year,
3402
+ value: state.displayedYear,
3403
+ onChange: function (e) {
3404
+ dispatch({
3405
+ type: 'year-change',
3406
+ nextYear: e.nativeEvent.text
3407
+ });
3408
+ },
3409
+ onBlur: function () {
3410
+ return dispatch({
3411
+ type: 'year-blur'
3412
+ });
3413
+ }
3414
+ }))
3415
+ })]
3416
+ })
3417
+ });
3418
+ }
3419
+
3420
+ function DatePicker(props) {
3421
+ return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread({}, props));
3422
+ }
3423
+
3235
3424
  function InputEmail(props) {
3236
3425
  return /*#__PURE__*/jsx(InputText, _objectSpread({
3237
3426
  autoComplete: "email",
@@ -4642,6 +4831,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4642
4831
  typography: theme.typography.colors,
4643
4832
  palettes: theme.palettes,
4644
4833
  forms: {
4834
+ input: {
4835
+ states: theme.forms.input.states
4836
+ },
4645
4837
  radioButtonGroup: {
4646
4838
  item: {
4647
4839
  borderColor: theme.forms.radioButtonGroup.item.borderColor,
@@ -4685,6 +4877,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4685
4877
  borderRadius: theme.dialogModal.borderRadius
4686
4878
  },
4687
4879
  forms: {
4880
+ input: {
4881
+ borderRadius: theme.forms.input.borderRadius
4882
+ },
4688
4883
  radioButtonGroup: {
4689
4884
  item: {
4690
4885
  borderRadius: theme.forms.radioButtonGroup.item.borderRadius
@@ -4716,6 +4911,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4716
4911
  borderWidth: theme.button.borderWidth
4717
4912
  },
4718
4913
  forms: {
4914
+ input: {
4915
+ borderWidth: theme.forms.input.borderWidth
4916
+ },
4719
4917
  radioButtonGroup: {
4720
4918
  item: {
4721
4919
  borderWidth: theme.forms.radioButtonGroup.item.borderWidth
@@ -4760,6 +4958,21 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4760
4958
  overlayPadding: theme.dialogModal.overlayPadding
4761
4959
  },
4762
4960
  forms: {
4961
+ datePicker: {
4962
+ minHeight: theme.forms.input.minHeight,
4963
+ day: {
4964
+ minWidth: theme.forms.datePicker.day.minWidth
4965
+ },
4966
+ month: {
4967
+ minWidth: theme.forms.datePicker.month.minWidth
4968
+ },
4969
+ year: {
4970
+ minWidth: theme.forms.datePicker.year.minWidth
4971
+ }
4972
+ },
4973
+ input: {
4974
+ minHeight: theme.forms.input.minHeight
4975
+ },
4763
4976
  radioButtonGroup: {
4764
4977
  item: {
4765
4978
  minHeight: theme.forms.radioButtonGroup.item.minHeight
@@ -4804,6 +5017,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
4804
5017
  overlayPadding: theme.dialogModal.overlayPadding
4805
5018
  },
4806
5019
  forms: {
5020
+ datePicker: {
5021
+ padding: theme.forms.input.padding
5022
+ },
5023
+ input: {
5024
+ padding: theme.forms.input.padding
5025
+ },
4807
5026
  radioButtonGroup: {
4808
5027
  item: {
4809
5028
  padding: theme.forms.radioButtonGroup.item.padding
@@ -5152,13 +5371,14 @@ function ContentPadding(_ref2) {
5152
5371
  }));
5153
5372
  }
5154
5373
 
5155
- var _excluded$7 = ["children", "shouldHandleBottomNotch", "style"];
5374
+ var _excluded$7 = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
5156
5375
  var StyledViewWithPadding = /*#__PURE__*/styled(ContentPadding).withConfig({
5157
5376
  displayName: "Body__StyledViewWithPadding",
5158
5377
  componentId: "kitt-universal__sc-oc39vn-0"
5159
5378
  })(["padding-top:", "px;padding-bottom:", "px;"], function (_ref) {
5160
- var theme = _ref.theme;
5161
- return theme.kitt.spacing * 6;
5379
+ var theme = _ref.theme,
5380
+ $insetTop = _ref.$insetTop;
5381
+ return Math.max(theme.kitt.spacing * 6, $insetTop);
5162
5382
  }, function (_ref2) {
5163
5383
  var theme = _ref2.theme,
5164
5384
  $insetBottom = _ref2.$insetBottom;
@@ -5168,12 +5388,16 @@ function Body(_ref3) {
5168
5388
  var children = _ref3.children,
5169
5389
  shouldHandleBottomNotch = _ref3.shouldHandleBottomNotch,
5170
5390
  style = _ref3.style,
5391
+ shouldHandleTopNotch = _ref3.shouldHandleTopNotch,
5171
5392
  props = _objectWithoutProperties(_ref3, _excluded$7);
5172
5393
  var _useSafeAreaInsets = useSafeAreaInsets(),
5173
- bottom = _useSafeAreaInsets.bottom;
5394
+ bottom = _useSafeAreaInsets.bottom,
5395
+ top = _useSafeAreaInsets.top;
5174
5396
  var insetBottom = shouldHandleBottomNotch ? bottom : 0;
5397
+ var insetTop = shouldHandleTopNotch ? top : 0;
5175
5398
  return /*#__PURE__*/jsx(StyledViewWithPadding, _objectSpread(_objectSpread({}, props), {}, {
5176
5399
  $insetBottom: insetBottom,
5400
+ $insetTop: insetTop,
5177
5401
  style: style,
5178
5402
  children: children
5179
5403
  }));
@@ -5218,9 +5442,10 @@ function Footer(_ref5) {
5218
5442
  var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
5219
5443
  displayName: "Header__HeaderContainer",
5220
5444
  componentId: "kitt-universal__sc-1g7sbq-0"
5221
- })(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;", ";"], function (_ref) {
5222
- var theme = _ref.theme;
5223
- return theme.kitt.navigationModal.height;
5445
+ })(["height:", "px;width:100%;justify-content:center;background-color:", ";padding-right:", "px;padding-left:", "px;padding-top:", "px;", ";"], function (_ref) {
5446
+ var theme = _ref.theme,
5447
+ $insetTop = _ref.$insetTop;
5448
+ return theme.kitt.navigationModal.height + $insetTop;
5224
5449
  }, function (_ref2) {
5225
5450
  var theme = _ref2.theme,
5226
5451
  $isTransparent = _ref2.$isTransparent;
@@ -5235,68 +5460,77 @@ var HeaderContainer = /*#__PURE__*/styled(ContentPadding).withConfig({
5235
5460
  $hasLeft = _ref4.$hasLeft;
5236
5461
  return $hasLeft ? theme.kitt.spacing * 2 : theme.kitt.navigationModal.padding;
5237
5462
  }, function (_ref5) {
5238
- var $hasSeparator = _ref5.$hasSeparator;
5463
+ var $insetTop = _ref5.$insetTop;
5464
+ return $insetTop;
5465
+ }, function (_ref6) {
5466
+ var $hasSeparator = _ref6.$hasSeparator;
5239
5467
  if (!$hasSeparator) return undefined;
5240
- return css(["border-bottom-width:1px;border-bottom-color:", ";"], function (_ref6) {
5241
- var theme = _ref6.theme;
5468
+ return css(["border-bottom-width:1px;border-bottom-color:", ";"], function (_ref7) {
5469
+ var theme = _ref7.theme;
5242
5470
  return theme.kitt.colors.separator;
5243
5471
  });
5244
5472
  });
5245
5473
  var Row = /*#__PURE__*/styled(View$2).withConfig({
5246
5474
  displayName: "Header__Row",
5247
5475
  componentId: "kitt-universal__sc-1g7sbq-1"
5248
- })(["flex-direction:row;justify-content:", ";align-items:center;"], function (_ref7) {
5249
- var $hasContent = _ref7.$hasContent,
5250
- $hasLeft = _ref7.$hasLeft;
5476
+ })(["flex-direction:row;justify-content:", ";align-items:center;"], function (_ref8) {
5477
+ var $hasContent = _ref8.$hasContent,
5478
+ $hasLeft = _ref8.$hasLeft;
5251
5479
  return !$hasContent && !$hasLeft ? 'flex-end' : 'space-between';
5252
5480
  });
5253
5481
  var ButtonContainer = /*#__PURE__*/styled(View$2).withConfig({
5254
5482
  displayName: "Header__ButtonContainer",
5255
5483
  componentId: "kitt-universal__sc-1g7sbq-2"
5256
- })(["width:", "px;"], function (_ref8) {
5257
- var theme = _ref8.theme;
5484
+ })(["width:", "px;"], function (_ref9) {
5485
+ var theme = _ref9.theme;
5258
5486
  return theme.kitt.iconButton.width;
5259
5487
  });
5260
5488
  var ChildrenComponent = /*#__PURE__*/styled(View$2).withConfig({
5261
5489
  displayName: "Header__ChildrenComponent",
5262
5490
  componentId: "kitt-universal__sc-1g7sbq-3"
5263
- })(["flex:1;align-items:center;", ";"], function (_ref9) {
5264
- var theme = _ref9.theme,
5265
- $hasLeft = _ref9.$hasLeft,
5266
- $hasRight = _ref9.$hasRight;
5491
+ })(["flex:1;align-items:center;", ";"], function (_ref10) {
5492
+ var theme = _ref10.theme,
5493
+ $hasLeft = _ref10.$hasLeft,
5494
+ $hasRight = _ref10.$hasRight;
5267
5495
  var paddingHorizontal = theme.kitt.spacing * 2;
5268
5496
  return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
5269
5497
  });
5270
5498
  var HeaderTitle = /*#__PURE__*/styled(Typography.Text).withConfig({
5271
5499
  displayName: "Header__HeaderTitle",
5272
5500
  componentId: "kitt-universal__sc-1g7sbq-4"
5273
- })(["flex:1;text-align:", ";", ";"], function (_ref10) {
5274
- var $hasLeft = _ref10.$hasLeft,
5275
- $hasRight = _ref10.$hasRight;
5501
+ })(["flex:1;text-align:", ";", ";"], function (_ref11) {
5502
+ var $hasLeft = _ref11.$hasLeft,
5503
+ $hasRight = _ref11.$hasRight;
5276
5504
  if (!$hasLeft && $hasRight) return 'left';
5277
5505
  return 'center';
5278
- }, function (_ref11) {
5279
- var theme = _ref11.theme,
5280
- $hasLeft = _ref11.$hasLeft,
5281
- $hasRight = _ref11.$hasRight;
5506
+ }, function (_ref12) {
5507
+ var theme = _ref12.theme,
5508
+ $hasLeft = _ref12.$hasLeft,
5509
+ $hasRight = _ref12.$hasRight;
5282
5510
  var paddingHorizontal = theme.kitt.spacing * 2;
5283
5511
  return css(["padding-right:", "px;padding-left:", "px;"], $hasRight ? paddingHorizontal : 0, $hasLeft ? paddingHorizontal : 0);
5284
5512
  });
5285
- function Header(_ref12) {
5286
- var _ref12$hasSeparator = _ref12.hasSeparator,
5287
- hasSeparator = _ref12$hasSeparator === void 0 ? true : _ref12$hasSeparator,
5288
- isTransparent = _ref12.isTransparent,
5289
- title = _ref12.title,
5290
- children = _ref12.children,
5291
- right = _ref12.right,
5292
- left = _ref12.left,
5293
- style = _ref12.style;
5513
+ function Header(_ref13) {
5514
+ var _ref13$hasSeparator = _ref13.hasSeparator,
5515
+ hasSeparator = _ref13$hasSeparator === void 0 ? true : _ref13$hasSeparator,
5516
+ isTransparent = _ref13.isTransparent,
5517
+ title = _ref13.title,
5518
+ children = _ref13.children,
5519
+ right = _ref13.right,
5520
+ left = _ref13.left,
5521
+ _ref13$shouldHandleTo = _ref13.shouldHandleTopNotch,
5522
+ shouldHandleTopNotch = _ref13$shouldHandleTo === void 0 ? true : _ref13$shouldHandleTo,
5523
+ style = _ref13.style;
5524
+ var _useSafeAreaInsets = useSafeAreaInsets(),
5525
+ top = _useSafeAreaInsets.top;
5526
+ var insetTop = shouldHandleTopNotch ? top : 0;
5294
5527
  var sharedProps = {
5295
5528
  $hasLeft: Boolean(left),
5296
5529
  $hasRight: Boolean(right)
5297
5530
  };
5298
5531
  return /*#__PURE__*/jsx(HeaderContainer, {
5299
5532
  $isTransparent: isTransparent,
5533
+ $insetTop: insetTop,
5300
5534
  $hasSeparator: hasSeparator,
5301
5535
  $hasLeft: Boolean(left),
5302
5536
  $hasRight: Boolean(right),