@ornikar/kitt-universal 9.38.0 → 9.38.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.
@@ -1,4 +1,5 @@
1
- import type { ReactElement } from 'react';
1
+ /// <reference types="react" />
2
+ import type { TextInput as RNTextInput } from 'react-native';
2
3
  import type { DatePickerProps } from './DatePicker';
3
- export declare function DatePicker({ value, ...props }: DatePickerProps): ReactElement;
4
+ export declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<RNTextInput>>;
4
5
  //# sourceMappingURL=DatePicker.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.web.d.ts","sourceRoot":"","sources":["../../../../src/forms/DatePicker/DatePicker.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,GAAG,YAAY,CAK7E"}
1
+ {"version":3,"file":"DatePicker.web.d.ts","sourceRoot":"","sources":["../../../../src/forms/DatePicker/DatePicker.web.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,UAAU,yGAOtB,CAAC"}
@@ -3558,15 +3558,17 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3558
3558
  });
3559
3559
 
3560
3560
  var _excluded$h = ["value"];
3561
- function DatePicker(_ref) {
3561
+ var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
3562
3562
  var value = _ref.value,
3563
3563
  props = _objectWithoutProperties(_ref, _excluded$h);
3564
3564
  // in apps, final-form can give a string value that will break the component
3565
3565
  var currentValue = value || undefined;
3566
- return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({}, props), {}, {
3566
+ return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
3567
+ ref: ref
3568
+ }, props), {}, {
3567
3569
  value: currentValue
3568
3570
  }));
3569
- }
3571
+ });
3570
3572
 
3571
3573
  var InputEmail = /*#__PURE__*/forwardRef(function (props, ref) {
3572
3574
  return /*#__PURE__*/jsx(InputText, _objectSpread({