react-native-paper-dates 0.5.0 → 0.8.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.
- package/README.md +13 -4
- package/lib/commonjs/Date/AnimatedCrossView.js +7 -6
- package/lib/commonjs/Date/AnimatedCrossView.js.map +1 -1
- package/lib/commonjs/Date/AutoSizer.js +4 -3
- package/lib/commonjs/Date/AutoSizer.js.map +1 -1
- package/lib/commonjs/Date/Calendar.js +37 -31
- package/lib/commonjs/Date/Calendar.js.map +1 -1
- package/lib/commonjs/Date/CalendarEdit.js +18 -14
- package/lib/commonjs/Date/CalendarEdit.js.map +1 -1
- package/lib/commonjs/Date/CalendarHeader.js +21 -10
- package/lib/commonjs/Date/CalendarHeader.js.map +1 -1
- package/lib/commonjs/Date/DatePickerInput.js +29 -23
- package/lib/commonjs/Date/DatePickerInput.js.map +1 -1
- package/lib/commonjs/Date/DatePickerModalContent.js +4 -0
- package/lib/commonjs/Date/DatePickerModalContent.js.map +1 -1
- package/lib/commonjs/Date/DatePickerModalContentHeader.js +34 -26
- package/lib/commonjs/Date/DatePickerModalContentHeader.js.map +1 -1
- package/lib/commonjs/Date/DatePickerModalHeader.js +8 -1
- package/lib/commonjs/Date/DatePickerModalHeader.js.map +1 -1
- package/lib/commonjs/Date/DatePickerModalHeaderBackground.js +4 -3
- package/lib/commonjs/Date/DatePickerModalHeaderBackground.js.map +1 -1
- package/lib/commonjs/Date/DateRangeInput.js +13 -8
- package/lib/commonjs/Date/DateRangeInput.js.map +1 -1
- package/lib/commonjs/Date/Day.js +5 -1
- package/lib/commonjs/Date/Day.js.map +1 -1
- package/lib/commonjs/Date/DayName.js +4 -3
- package/lib/commonjs/Date/DayName.js.map +1 -1
- package/lib/commonjs/Date/DayNames.js +5 -4
- package/lib/commonjs/Date/DayNames.js.map +1 -1
- package/lib/commonjs/Date/DayRange.js +7 -6
- package/lib/commonjs/Date/DayRange.js.map +1 -1
- package/lib/commonjs/Date/Month.js +47 -34
- package/lib/commonjs/Date/Month.js.map +1 -1
- package/lib/commonjs/Date/Swiper.js +33 -27
- package/lib/commonjs/Date/Swiper.js.map +1 -1
- package/lib/commonjs/Date/Swiper.native.js +27 -21
- package/lib/commonjs/Date/Swiper.native.js.map +1 -1
- package/lib/commonjs/Date/SwiperUtils.js +5 -4
- package/lib/commonjs/Date/SwiperUtils.js.map +1 -1
- package/lib/commonjs/Date/YearPicker.js +28 -18
- package/lib/commonjs/Date/YearPicker.js.map +1 -1
- package/lib/commonjs/Date/dateUtils.js +49 -37
- package/lib/commonjs/Date/dateUtils.js.map +1 -1
- package/lib/commonjs/Date/inputUtils.js +8 -7
- package/lib/commonjs/Date/inputUtils.js.map +1 -1
- package/lib/commonjs/TextInputMask.js +7 -6
- package/lib/commonjs/TextInputMask.js.map +1 -1
- package/lib/commonjs/Time/AmPmSwitcher.js +12 -10
- package/lib/commonjs/Time/AmPmSwitcher.js.map +1 -1
- package/lib/commonjs/Time/AnalogClock.js +12 -7
- package/lib/commonjs/Time/AnalogClock.js.map +1 -1
- package/lib/commonjs/Time/AnalogClockHours.js +5 -4
- package/lib/commonjs/Time/AnalogClockHours.js.map +1 -1
- package/lib/commonjs/Time/AnalogClockMinutes.js +5 -4
- package/lib/commonjs/Time/AnalogClockMinutes.js.map +1 -1
- package/lib/commonjs/Time/AnimatedClockSwitcher.js +6 -5
- package/lib/commonjs/Time/AnimatedClockSwitcher.js.map +1 -1
- package/lib/commonjs/Time/TimeInput.js +14 -10
- package/lib/commonjs/Time/TimeInput.js.map +1 -1
- package/lib/commonjs/Time/TimeInputs.js +10 -9
- package/lib/commonjs/Time/TimeInputs.js.map +1 -1
- package/lib/commonjs/Time/TimePicker.js +10 -9
- package/lib/commonjs/Time/TimePicker.js.map +1 -1
- package/lib/commonjs/Time/TimePickerModal.js +23 -16
- package/lib/commonjs/Time/TimePickerModal.js.map +1 -1
- package/lib/commonjs/Time/timeUtils.js +7 -6
- package/lib/commonjs/Time/timeUtils.js.map +1 -1
- package/lib/commonjs/index.js +29 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/translations/en.js +6 -1
- package/lib/commonjs/translations/en.js.map +1 -1
- package/lib/commonjs/translations/enGB.js +25 -0
- package/lib/commonjs/translations/enGB.js.map +1 -0
- package/lib/commonjs/translations/nl.js +6 -1
- package/lib/commonjs/translations/nl.js.map +1 -1
- package/lib/commonjs/translations/pl.js +25 -0
- package/lib/commonjs/translations/pl.js.map +1 -0
- package/lib/commonjs/translations/utils.js.map +1 -1
- package/lib/commonjs/utils.js +4 -4
- package/lib/module/Date/AnimatedCrossView.js +7 -6
- package/lib/module/Date/AnimatedCrossView.js.map +1 -1
- package/lib/module/Date/AutoSizer.js +4 -3
- package/lib/module/Date/AutoSizer.js.map +1 -1
- package/lib/module/Date/Calendar.js +37 -31
- package/lib/module/Date/Calendar.js.map +1 -1
- package/lib/module/Date/CalendarEdit.js +18 -14
- package/lib/module/Date/CalendarEdit.js.map +1 -1
- package/lib/module/Date/CalendarHeader.js +19 -9
- package/lib/module/Date/CalendarHeader.js.map +1 -1
- package/lib/module/Date/DatePickerInput.js +29 -23
- package/lib/module/Date/DatePickerInput.js.map +1 -1
- package/lib/module/Date/DatePickerModalContent.js +4 -0
- package/lib/module/Date/DatePickerModalContent.js.map +1 -1
- package/lib/module/Date/DatePickerModalContentHeader.js +32 -24
- package/lib/module/Date/DatePickerModalContentHeader.js.map +1 -1
- package/lib/module/Date/DatePickerModalHeader.js +8 -1
- package/lib/module/Date/DatePickerModalHeader.js.map +1 -1
- package/lib/module/Date/DatePickerModalHeaderBackground.js +4 -3
- package/lib/module/Date/DatePickerModalHeaderBackground.js.map +1 -1
- package/lib/module/Date/DateRangeInput.js +13 -8
- package/lib/module/Date/DateRangeInput.js.map +1 -1
- package/lib/module/Date/Day.js +5 -1
- package/lib/module/Date/Day.js.map +1 -1
- package/lib/module/Date/DayName.js +4 -3
- package/lib/module/Date/DayName.js.map +1 -1
- package/lib/module/Date/DayNames.js +5 -4
- package/lib/module/Date/DayNames.js.map +1 -1
- package/lib/module/Date/DayRange.js +7 -6
- package/lib/module/Date/DayRange.js.map +1 -1
- package/lib/module/Date/Month.js +43 -31
- package/lib/module/Date/Month.js.map +1 -1
- package/lib/module/Date/Swiper.js +32 -26
- package/lib/module/Date/Swiper.js.map +1 -1
- package/lib/module/Date/Swiper.native.js +27 -21
- package/lib/module/Date/Swiper.native.js.map +1 -1
- package/lib/module/Date/SwiperUtils.js +5 -4
- package/lib/module/Date/SwiperUtils.js.map +1 -1
- package/lib/module/Date/YearPicker.js +28 -18
- package/lib/module/Date/YearPicker.js.map +1 -1
- package/lib/module/Date/dateUtils.js +33 -25
- package/lib/module/Date/dateUtils.js.map +1 -1
- package/lib/module/Date/inputUtils.js +8 -7
- package/lib/module/Date/inputUtils.js.map +1 -1
- package/lib/module/TextInputMask.js +7 -6
- package/lib/module/TextInputMask.js.map +1 -1
- package/lib/module/Time/AmPmSwitcher.js +12 -10
- package/lib/module/Time/AmPmSwitcher.js.map +1 -1
- package/lib/module/Time/AnalogClock.js +12 -7
- package/lib/module/Time/AnalogClock.js.map +1 -1
- package/lib/module/Time/AnalogClockHours.js +5 -4
- package/lib/module/Time/AnalogClockHours.js.map +1 -1
- package/lib/module/Time/AnalogClockMinutes.js +5 -4
- package/lib/module/Time/AnalogClockMinutes.js.map +1 -1
- package/lib/module/Time/AnimatedClockSwitcher.js +6 -5
- package/lib/module/Time/AnimatedClockSwitcher.js.map +1 -1
- package/lib/module/Time/TimeInput.js +14 -10
- package/lib/module/Time/TimeInput.js.map +1 -1
- package/lib/module/Time/TimeInputs.js +10 -9
- package/lib/module/Time/TimeInputs.js.map +1 -1
- package/lib/module/Time/TimePicker.js +10 -9
- package/lib/module/Time/TimePicker.js.map +1 -1
- package/lib/module/Time/TimePickerModal.js +23 -16
- package/lib/module/Time/TimePickerModal.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/translations/en.js +6 -1
- package/lib/module/translations/en.js.map +1 -1
- package/lib/module/translations/enGB.js +18 -0
- package/lib/module/translations/enGB.js.map +1 -0
- package/lib/module/translations/nl.js +6 -1
- package/lib/module/translations/nl.js.map +1 -1
- package/lib/module/translations/pl.js +18 -0
- package/lib/module/translations/pl.js.map +1 -0
- package/lib/module/translations/utils.js.map +1 -1
- package/lib/typescript/Date/DatePickerInput.d.ts +9 -9
- package/lib/typescript/Date/DatePickerModalContentHeader.d.ts +1 -0
- package/lib/typescript/Date/DatePickerModalHeader.d.ts +1 -0
- package/lib/typescript/TextInputMask.d.ts +3 -3
- package/lib/typescript/Time/AmPmSwitcher.d.ts +1 -1
- package/lib/typescript/Time/AnalogClock.d.ts +1 -1
- package/lib/typescript/Time/TimeInputs.d.ts +1 -1
- package/lib/typescript/Time/TimePickerModal.d.ts +3 -2
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/translations/enGB.d.ts +3 -0
- package/lib/typescript/translations/pl.d.ts +3 -0
- package/lib/typescript/translations/utils.d.ts +5 -0
- package/package.json +19 -24
- package/src/Date/CalendarEdit.tsx +3 -0
- package/src/Date/CalendarHeader.tsx +17 -2
- package/src/Date/DatePickerInput.tsx +8 -3
- package/src/Date/DatePickerModalContent.tsx +2 -0
- package/src/Date/DatePickerModalContentHeader.tsx +13 -3
- package/src/Date/DatePickerModalHeader.tsx +6 -0
- package/src/Date/DateRangeInput.tsx +7 -1
- package/src/Date/Day.tsx +4 -0
- package/src/Date/Month.tsx +8 -0
- package/src/Date/Swiper.tsx +1 -0
- package/src/Date/YearPicker.tsx +6 -1
- package/src/Time/AmPmSwitcher.tsx +1 -1
- package/src/Time/AnalogClock.tsx +5 -5
- package/src/Time/AnalogClockMinutes.tsx +4 -1
- package/src/Time/TimeInput.tsx +3 -0
- package/src/Time/TimeInputs.tsx +1 -5
- package/src/Time/TimePickerModal.tsx +11 -3
- package/src/index.tsx +2 -0
- package/src/translations/en.ts +5 -0
- package/src/translations/enGB.ts +20 -0
- package/src/translations/nl.ts +5 -0
- package/src/translations/pl.ts +21 -0
- package/src/translations/utils.ts +5 -0
- package/src/.DS_Store +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { ValidRangeType } from './Calendar';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<
|
|
4
|
-
|
|
5
|
-
}) | (Pick<import("react-native-paper/lib/typescript/components/TextInput/TextInput").TextInputProps, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "autoCompleteType" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "underlineColor" | "outlineColor" | "dense"> & {
|
|
6
|
-
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
7
|
-
} & {
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}), "onChange" | "value"> & {
|
|
10
|
-
inputMode: "start" | "end";
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
4
|
+
inputMode: "end" | "start";
|
|
11
5
|
locale: string;
|
|
12
6
|
onChange: (date: Date | undefined) => void;
|
|
13
7
|
value: Date | undefined;
|
|
14
8
|
validRange?: ValidRangeType | undefined;
|
|
15
9
|
withModal?: boolean | undefined;
|
|
16
10
|
withDateFormatInLabel?: boolean | undefined;
|
|
17
|
-
}, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "
|
|
11
|
+
} & Omit<(Pick<import("react-native-paper/lib/typescript/components/TextInput/TextInput").TextInputProps, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onPressIn" | "onPressOut" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "autoCompleteType" | "underlineColor" | "activeUnderlineColor" | "outlineColor" | "activeOutlineColor" | "dense"> & {
|
|
12
|
+
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
13
|
+
}) | (Pick<import("react-native-paper/lib/typescript/components/TextInput/TextInput").TextInputProps, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onPressIn" | "onPressOut" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "autoCompleteType" | "underlineColor" | "activeUnderlineColor" | "outlineColor" | "activeOutlineColor" | "dense"> & {
|
|
14
|
+
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}), "onChange" | "onChangeText" | "value">, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onContentSizeChange" | "onEndEditing" | "onPressIn" | "onPressOut" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "autoCompleteType" | "underlineColor" | "activeUnderlineColor" | "outlineColor" | "activeOutlineColor" | "dense" | "theme" | "locale" | "validRange" | "inputMode" | "withModal" | "withDateFormatInLabel"> & React.RefAttributes<unknown>>;
|
|
18
18
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<((Pick<import("react-native-paper/lib/typescript/components/TextInput/TextInput").TextInputProps, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<((Pick<import("react-native-paper/lib/typescript/components/TextInput/TextInput").TextInputProps, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onPressIn" | "onPressOut" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "autoCompleteType" | "underlineColor" | "activeUnderlineColor" | "outlineColor" | "activeOutlineColor" | "dense"> & {
|
|
3
3
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
4
|
-
}) | (Pick<import("react-native-paper/lib/typescript/components/TextInput/TextInput").TextInputProps, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "
|
|
4
|
+
}) | (Pick<import("react-native-paper/lib/typescript/components/TextInput/TextInput").TextInputProps, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onPressIn" | "onPressOut" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "ref" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "autoCompleteType" | "underlineColor" | "activeUnderlineColor" | "outlineColor" | "activeOutlineColor" | "dense"> & {
|
|
5
5
|
theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
})) & {
|
|
9
9
|
mask: string;
|
|
10
|
-
}, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "
|
|
10
|
+
}, "allowFontScaling" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onBlur" | "onChange" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onPressIn" | "onPressOut" | "onFocus" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onScroll" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "selectionColor" | "style" | "textAlign" | "testID" | "inputAccessoryViewID" | "value" | "maxFontSizeMultiplier" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "scrollEnabled" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "numberOfLines" | "returnKeyLabel" | "textBreakStrategy" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "label" | "key" | "render" | "left" | "right" | "disabled" | "mode" | "error" | "autoCompleteType" | "underlineColor" | "activeUnderlineColor" | "outlineColor" | "activeOutlineColor" | "dense" | "mask" | "theme"> & React.RefAttributes<unknown>>;
|
|
11
11
|
export default _default;
|
|
@@ -5,7 +5,7 @@ declare function AnalogClock({ hours, minutes, focused, is24Hour, onChange, }: {
|
|
|
5
5
|
minutes: number;
|
|
6
6
|
focused: PossibleClockTypes;
|
|
7
7
|
is24Hour: boolean;
|
|
8
|
-
onChange: (
|
|
8
|
+
onChange: (hoursMinutesAndFocused: {
|
|
9
9
|
hours: number;
|
|
10
10
|
minutes: number;
|
|
11
11
|
focused?: undefined | PossibleClockTypes;
|
|
@@ -6,7 +6,7 @@ declare function TimeInputs({ hours, minutes, onFocusInput, focused, inputType,
|
|
|
6
6
|
hours: number;
|
|
7
7
|
minutes: number;
|
|
8
8
|
onFocusInput: (type: PossibleClockTypes) => any;
|
|
9
|
-
onChange: (
|
|
9
|
+
onChange: (hoursMinutesAndFocused: {
|
|
10
10
|
hours: number;
|
|
11
11
|
minutes: number;
|
|
12
12
|
focused?: undefined | PossibleClockTypes;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare function TimePickerModal({ visible, onDismiss, onConfirm, hours, minutes, label, cancelLabel, confirmLabel, animationType, locale, }: {
|
|
2
|
+
export declare function TimePickerModal({ visible, onDismiss, onConfirm, hours, minutes, label, uppercase, cancelLabel, confirmLabel, animationType, locale, }: {
|
|
3
3
|
locale?: undefined | string;
|
|
4
4
|
label?: string;
|
|
5
|
+
uppercase?: boolean;
|
|
5
6
|
cancelLabel?: string;
|
|
6
7
|
confirmLabel?: string;
|
|
7
8
|
hours?: number | undefined;
|
|
8
9
|
minutes?: number | undefined;
|
|
9
10
|
visible: boolean | undefined;
|
|
10
11
|
onDismiss: () => any;
|
|
11
|
-
onConfirm: (
|
|
12
|
+
onConfirm: (hoursAndMinutes: {
|
|
12
13
|
hours: number;
|
|
13
14
|
minutes: number;
|
|
14
15
|
}) => any;
|
|
@@ -9,3 +9,5 @@ export type { TranslationsType } from './translations/utils';
|
|
|
9
9
|
export { registerTranslation, getTranslation } from './translations/utils';
|
|
10
10
|
export { default as nl } from './translations/nl';
|
|
11
11
|
export { default as en } from './translations/en';
|
|
12
|
+
export { default as pl } from './translations/pl';
|
|
13
|
+
export { default as enGB } from './translations/enGB';
|
|
@@ -8,6 +8,11 @@ export declare type TranslationsType = {
|
|
|
8
8
|
mustBeLowerThan: string;
|
|
9
9
|
mustBeBetween: string;
|
|
10
10
|
dateIsDisabled: string;
|
|
11
|
+
previous: string;
|
|
12
|
+
next: string;
|
|
13
|
+
typeInDate: string;
|
|
14
|
+
pickDateFromCalendar: string;
|
|
15
|
+
close: string;
|
|
11
16
|
};
|
|
12
17
|
export declare function getTranslation(locale: string | undefined, key: keyof TranslationsType, fallback?: any): any;
|
|
13
18
|
export declare function registerTranslation(locale: string, translations: TranslationsType): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-paper-dates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Performant Date Picker for React Native Paper",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -48,26 +48,26 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@commitlint/config-conventional": "^11.0.0",
|
|
51
|
-
"@react-native-community/eslint-config": "^
|
|
51
|
+
"@react-native-community/eslint-config": "^3.0.1",
|
|
52
52
|
"@release-it/conventional-changelog": "^2.0.0",
|
|
53
|
-
"@types/color": "^3.0.
|
|
54
|
-
"@types/jest": "^26.0.
|
|
55
|
-
"@types/react": "^16.
|
|
56
|
-
"@types/react-native": "^0.
|
|
53
|
+
"@types/color": "^3.0.2",
|
|
54
|
+
"@types/jest": "^26.0.24",
|
|
55
|
+
"@types/react": "^16.14.20",
|
|
56
|
+
"@types/react-native": "^0.66.1",
|
|
57
57
|
"commitlint": "^11.0.0",
|
|
58
|
-
"eslint": "^7.
|
|
59
|
-
"eslint-config-prettier": "^
|
|
60
|
-
"eslint-plugin-prettier": "^
|
|
58
|
+
"eslint": "^7.32.0",
|
|
59
|
+
"eslint-config-prettier": "^8.3.0",
|
|
60
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
61
61
|
"husky": "^4.2.5",
|
|
62
62
|
"jest": "^26.0.1",
|
|
63
|
-
"pod-install": "^0.1.
|
|
64
|
-
"prettier": "^2.
|
|
63
|
+
"pod-install": "^0.1.28",
|
|
64
|
+
"prettier": "^2.4.1",
|
|
65
65
|
"react": "16.13.1",
|
|
66
66
|
"react-native": "^0.64.2",
|
|
67
|
-
"react-native-builder-bob": "
|
|
68
|
-
"react-native-paper": "^4.
|
|
69
|
-
"release-it": "^14.
|
|
70
|
-
"typescript": "^4.
|
|
67
|
+
"react-native-builder-bob": "latest",
|
|
68
|
+
"react-native-paper": "^4.10.0",
|
|
69
|
+
"release-it": "^14.11.6",
|
|
70
|
+
"typescript": "^4.4.4"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "*",
|
|
@@ -75,13 +75,6 @@
|
|
|
75
75
|
"react-native-paper": "*",
|
|
76
76
|
"react-native-vector-icons": "*"
|
|
77
77
|
},
|
|
78
|
-
"jest": {
|
|
79
|
-
"preset": "react-native",
|
|
80
|
-
"modulePathIgnorePatterns": [
|
|
81
|
-
"<rootDir>/example/node_modules",
|
|
82
|
-
"<rootDir>/lib/"
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
78
|
"husky": {
|
|
86
79
|
"hooks": {
|
|
87
80
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
@@ -132,7 +125,9 @@
|
|
|
132
125
|
},
|
|
133
126
|
"eslintIgnore": [
|
|
134
127
|
"node_modules/",
|
|
135
|
-
"lib/"
|
|
128
|
+
"lib/",
|
|
129
|
+
"example/node_modules",
|
|
130
|
+
"example/web-build"
|
|
136
131
|
],
|
|
137
132
|
"prettier": {
|
|
138
133
|
"quoteProps": "consistent",
|
|
@@ -157,6 +152,6 @@
|
|
|
157
152
|
]
|
|
158
153
|
},
|
|
159
154
|
"dependencies": {
|
|
160
|
-
"color": "^3.1
|
|
155
|
+
"color": "^3.2.1"
|
|
161
156
|
}
|
|
162
157
|
}
|
|
@@ -88,6 +88,7 @@ function CalendarEdit({
|
|
|
88
88
|
validRange={validRange}
|
|
89
89
|
locale={locale}
|
|
90
90
|
withModal={false}
|
|
91
|
+
autoCompleteType={'off'}
|
|
91
92
|
/>
|
|
92
93
|
) : null}
|
|
93
94
|
{mode === 'range' ? (
|
|
@@ -103,6 +104,7 @@ function CalendarEdit({
|
|
|
103
104
|
validRange={validRange}
|
|
104
105
|
locale={locale}
|
|
105
106
|
withModal={false}
|
|
107
|
+
autoCompleteType={'off'}
|
|
106
108
|
/>
|
|
107
109
|
<View style={styles.separator} />
|
|
108
110
|
<DatePickerInput
|
|
@@ -115,6 +117,7 @@ function CalendarEdit({
|
|
|
115
117
|
validRange={validRange}
|
|
116
118
|
locale={locale}
|
|
117
119
|
withModal={false}
|
|
120
|
+
autoCompleteType={'off'}
|
|
118
121
|
/>
|
|
119
122
|
</>
|
|
120
123
|
) : null}
|
|
@@ -3,6 +3,7 @@ import { StyleSheet, View } from 'react-native'
|
|
|
3
3
|
import { IconButton, useTheme } from 'react-native-paper'
|
|
4
4
|
import DayNames, { dayNamesHeight } from './DayNames'
|
|
5
5
|
import type { DisableWeekDaysType } from './dateUtils'
|
|
6
|
+
import { getTranslation } from '../translations/utils'
|
|
6
7
|
|
|
7
8
|
const buttonContainerHeight = 56
|
|
8
9
|
const buttonContainerMarginTop = 4
|
|
@@ -46,7 +47,14 @@ function CalendarHeader({
|
|
|
46
47
|
{ backgroundColor: theme.colors.surface },
|
|
47
48
|
]}
|
|
48
49
|
>
|
|
49
|
-
<IconButton
|
|
50
|
+
<IconButton
|
|
51
|
+
icon="chevron-left"
|
|
52
|
+
accessibilityLabel={getTranslation(locale, 'previous')}
|
|
53
|
+
onPress={onPrev}
|
|
54
|
+
// RN types bug
|
|
55
|
+
hasTVPreferredFocus={undefined}
|
|
56
|
+
tvParallaxProperties={undefined}
|
|
57
|
+
/>
|
|
50
58
|
</View>
|
|
51
59
|
|
|
52
60
|
<View
|
|
@@ -55,7 +63,14 @@ function CalendarHeader({
|
|
|
55
63
|
{ backgroundColor: theme.colors.surface },
|
|
56
64
|
]}
|
|
57
65
|
>
|
|
58
|
-
<IconButton
|
|
66
|
+
<IconButton
|
|
67
|
+
icon="chevron-right"
|
|
68
|
+
accessibilityLabel={getTranslation(locale, 'next')}
|
|
69
|
+
onPress={onNext}
|
|
70
|
+
// RN types bug
|
|
71
|
+
hasTVPreferredFocus={undefined}
|
|
72
|
+
tvParallaxProperties={undefined}
|
|
73
|
+
/>
|
|
59
74
|
</View>
|
|
60
75
|
</View>
|
|
61
76
|
) : null}
|
|
@@ -20,7 +20,7 @@ function DatePickerInput(
|
|
|
20
20
|
withModal = true,
|
|
21
21
|
withDateFormatInLabel = true,
|
|
22
22
|
...rest
|
|
23
|
-
}:
|
|
23
|
+
}: {
|
|
24
24
|
inputMode: 'start' | 'end'
|
|
25
25
|
locale: string
|
|
26
26
|
onChange: (date: Date | undefined) => void
|
|
@@ -28,7 +28,10 @@ function DatePickerInput(
|
|
|
28
28
|
validRange?: ValidRangeType | undefined
|
|
29
29
|
withModal?: boolean
|
|
30
30
|
withDateFormatInLabel?: boolean
|
|
31
|
-
}
|
|
31
|
+
} & Omit<
|
|
32
|
+
React.ComponentProps<typeof TextInput>,
|
|
33
|
+
'value' | 'onChange' | 'onChangeText'
|
|
34
|
+
>,
|
|
32
35
|
ref: any
|
|
33
36
|
) {
|
|
34
37
|
const theme = useTheme()
|
|
@@ -75,6 +78,9 @@ function DatePickerInput(
|
|
|
75
78
|
style={styles.calendarButton}
|
|
76
79
|
icon="calendar"
|
|
77
80
|
onPress={() => setVisible(true)}
|
|
81
|
+
// RN types bug
|
|
82
|
+
hasTVPreferredFocus={undefined}
|
|
83
|
+
tvParallaxProperties={undefined}
|
|
78
84
|
/>
|
|
79
85
|
) : null}
|
|
80
86
|
</View>
|
|
@@ -119,7 +125,6 @@ const styles = StyleSheet.create({
|
|
|
119
125
|
position: 'relative',
|
|
120
126
|
alignItems: 'center',
|
|
121
127
|
flexGrow: 1,
|
|
122
|
-
alignSelf: 'flex-start',
|
|
123
128
|
},
|
|
124
129
|
input: {
|
|
125
130
|
flexGrow: 1,
|
|
@@ -142,6 +142,7 @@ export function DatePickerModalContent(
|
|
|
142
142
|
onSave={onInnerConfirm}
|
|
143
143
|
onDismiss={onDismiss}
|
|
144
144
|
saveLabel={props.saveLabel}
|
|
145
|
+
uppercase={props.uppercase ?? true}
|
|
145
146
|
disableSafeTop={disableSafeTop}
|
|
146
147
|
/>
|
|
147
148
|
<DatePickerModalContentHeader
|
|
@@ -155,6 +156,7 @@ export function DatePickerModalContent(
|
|
|
155
156
|
moreLabel={props.moreLabel}
|
|
156
157
|
startLabel={props.startLabel}
|
|
157
158
|
endLabel={props.endLabel}
|
|
159
|
+
uppercase={props.uppercase ?? true}
|
|
158
160
|
locale={locale}
|
|
159
161
|
/>
|
|
160
162
|
</DatePickerModalHeaderBackground>
|
|
@@ -12,6 +12,7 @@ export interface HeaderPickProps {
|
|
|
12
12
|
label?: string
|
|
13
13
|
emptyLabel?: string
|
|
14
14
|
saveLabel?: string
|
|
15
|
+
uppercase?: boolean
|
|
15
16
|
headerSeparator?: string
|
|
16
17
|
startLabel?: string
|
|
17
18
|
endLabel?: string
|
|
@@ -48,7 +49,7 @@ function getLabel(
|
|
|
48
49
|
export default function DatePickerModalContentHeader(
|
|
49
50
|
props: HeaderContentProps
|
|
50
51
|
) {
|
|
51
|
-
const { onToggle, collapsed, mode, moreLabel } = props
|
|
52
|
+
const { onToggle, collapsed, mode, moreLabel, uppercase } = props
|
|
52
53
|
|
|
53
54
|
const label = getLabel(props.locale, props.mode, props.label)
|
|
54
55
|
|
|
@@ -57,8 +58,9 @@ export default function DatePickerModalContentHeader(
|
|
|
57
58
|
return (
|
|
58
59
|
<View style={[styles.header]}>
|
|
59
60
|
<View>
|
|
60
|
-
<Text style={[styles.label, { color }]}>
|
|
61
|
-
|
|
61
|
+
<Text style={[styles.label, { color }]}>
|
|
62
|
+
{uppercase ? label.toUpperCase() : label}
|
|
63
|
+
</Text>
|
|
62
64
|
<View style={styles.headerContentContainer}>
|
|
63
65
|
{mode === 'range' ? (
|
|
64
66
|
<HeaderContentRange {...props} color={color} />
|
|
@@ -79,8 +81,16 @@ export default function DatePickerModalContentHeader(
|
|
|
79
81
|
{allowEditing ? (
|
|
80
82
|
<IconButton
|
|
81
83
|
icon={collapsed ? 'pencil' : 'calendar'}
|
|
84
|
+
accessibilityLabel={
|
|
85
|
+
collapsed
|
|
86
|
+
? getTranslation(props.locale, 'typeInDate')
|
|
87
|
+
: getTranslation(props.locale, 'pickDateFromCalendar')
|
|
88
|
+
}
|
|
82
89
|
color={color}
|
|
83
90
|
onPress={onToggle}
|
|
91
|
+
// RN types bug
|
|
92
|
+
hasTVPreferredFocus={undefined}
|
|
93
|
+
tvParallaxProperties={undefined}
|
|
84
94
|
/>
|
|
85
95
|
) : null}
|
|
86
96
|
</View>
|
|
@@ -8,6 +8,7 @@ import { getTranslation } from '../translations/utils'
|
|
|
8
8
|
export interface DatePickerModalHeaderProps {
|
|
9
9
|
disableSafeTop?: boolean
|
|
10
10
|
saveLabel?: string
|
|
11
|
+
uppercase?: boolean
|
|
11
12
|
onDismiss: () => void
|
|
12
13
|
onSave: () => void
|
|
13
14
|
locale: string | undefined
|
|
@@ -31,14 +32,19 @@ export default function DatePickerModalHeader(
|
|
|
31
32
|
<Appbar style={styles.appbarHeader}>
|
|
32
33
|
<Appbar.Action
|
|
33
34
|
icon="close"
|
|
35
|
+
accessibilityLabel={getTranslation(locale, 'close')}
|
|
34
36
|
onPress={props.onDismiss}
|
|
35
37
|
color={color}
|
|
36
38
|
testID="react-native-paper-dates-close"
|
|
39
|
+
// RN types bug
|
|
40
|
+
hasTVPreferredFocus={undefined}
|
|
41
|
+
tvParallaxProperties={undefined}
|
|
37
42
|
/>
|
|
38
43
|
<Appbar.Content title={''} />
|
|
39
44
|
<Button
|
|
40
45
|
color={color}
|
|
41
46
|
onPress={props.onSave}
|
|
47
|
+
uppercase={props.uppercase ?? true}
|
|
42
48
|
testID="react-native-paper-dates-save"
|
|
43
49
|
>
|
|
44
50
|
{saveLabel}
|
|
@@ -50,7 +50,13 @@ export default function DateRangeInput({ locale }: { locale: string }) {
|
|
|
50
50
|
<Text>Tot</Text>
|
|
51
51
|
</View>
|
|
52
52
|
<View>
|
|
53
|
-
<IconButton
|
|
53
|
+
<IconButton
|
|
54
|
+
icon="calendar"
|
|
55
|
+
onPress={() => setVisible(true)}
|
|
56
|
+
// RN types bug
|
|
57
|
+
hasTVPreferredFocus={undefined}
|
|
58
|
+
tvParallaxProperties={undefined}
|
|
59
|
+
/>
|
|
54
60
|
<Text style={{ opacity: 0 }} accessible={false}>
|
|
55
61
|
tot
|
|
56
62
|
</Text>
|
package/src/Date/Day.tsx
CHANGED
package/src/Date/Month.tsx
CHANGED
|
@@ -260,12 +260,17 @@ function Month(props: MonthSingleProps | MonthRangeProps | MonthMultiProps) {
|
|
|
260
260
|
<TouchableRipple
|
|
261
261
|
disabled={!isHorizontal}
|
|
262
262
|
onPress={isHorizontal ? () => onPressYear(year) : undefined}
|
|
263
|
+
accessibilityRole="button"
|
|
264
|
+
accessibilityLabel={`${monthName} ${year}`}
|
|
263
265
|
style={[
|
|
264
266
|
styles.yearButton,
|
|
265
267
|
{
|
|
266
268
|
borderRadius: roundness,
|
|
267
269
|
},
|
|
268
270
|
]}
|
|
271
|
+
// RN types bug
|
|
272
|
+
hasTVPreferredFocus={undefined}
|
|
273
|
+
tvParallaxProperties={undefined}
|
|
269
274
|
>
|
|
270
275
|
<View
|
|
271
276
|
style={[
|
|
@@ -285,6 +290,9 @@ function Month(props: MonthSingleProps | MonthRangeProps | MonthMultiProps) {
|
|
|
285
290
|
<IconButton
|
|
286
291
|
onPress={isHorizontal ? () => onPressYear(year) : undefined}
|
|
287
292
|
icon={selectingYear ? 'chevron-up' : 'chevron-down'}
|
|
293
|
+
// RN types bug
|
|
294
|
+
hasTVPreferredFocus={undefined}
|
|
295
|
+
tvParallaxProperties={undefined}
|
|
288
296
|
/>
|
|
289
297
|
</View>
|
|
290
298
|
</View>
|
package/src/Date/Swiper.tsx
CHANGED
|
@@ -94,6 +94,7 @@ function VerticalScroller({
|
|
|
94
94
|
const [visibleIndexes, setVisibleIndexes] = React.useState<number[]>(
|
|
95
95
|
visibleArray(initialIndex)
|
|
96
96
|
)
|
|
97
|
+
// eslint-disable-next-line no-undef
|
|
97
98
|
const parentRef = React.useRef<HTMLDivElement | null>(null)
|
|
98
99
|
|
|
99
100
|
useIsomorphicLayoutEffect(() => {
|
package/src/Date/YearPicker.tsx
CHANGED
|
@@ -67,14 +67,19 @@ function YearPure({
|
|
|
67
67
|
}: {
|
|
68
68
|
year: number
|
|
69
69
|
selected: boolean
|
|
70
|
-
onPressYear: (
|
|
70
|
+
onPressYear: (newYear: number) => any
|
|
71
71
|
}) {
|
|
72
72
|
const theme = useTheme()
|
|
73
73
|
return (
|
|
74
74
|
<View style={styles.year}>
|
|
75
75
|
<TouchableRipple
|
|
76
76
|
onPress={() => onPressYear(year)}
|
|
77
|
+
accessibilityRole="button"
|
|
78
|
+
accessibilityLabel={String(year)}
|
|
77
79
|
style={styles.yearButton}
|
|
80
|
+
// RN types bug
|
|
81
|
+
hasTVPreferredFocus={undefined}
|
|
82
|
+
tvParallaxProperties={undefined}
|
|
78
83
|
>
|
|
79
84
|
<View
|
|
80
85
|
style={[
|
package/src/Time/AnalogClock.tsx
CHANGED
|
@@ -35,11 +35,7 @@ function AnalogClock({
|
|
|
35
35
|
minutes: number
|
|
36
36
|
focused: PossibleClockTypes
|
|
37
37
|
is24Hour: boolean
|
|
38
|
-
onChange: ({
|
|
39
|
-
hours,
|
|
40
|
-
minutes,
|
|
41
|
-
focused,
|
|
42
|
-
}: {
|
|
38
|
+
onChange: (hoursMinutesAndFocused: {
|
|
43
39
|
hours: number
|
|
44
40
|
minutes: number
|
|
45
41
|
focused?: undefined | PossibleClockTypes
|
|
@@ -74,11 +70,15 @@ function AnalogClock({
|
|
|
74
70
|
let pickedHours = getHours(angle, previousHourType)
|
|
75
71
|
|
|
76
72
|
let hours12AndPm = !hours24 && modeRef.current === 'PM'
|
|
73
|
+
|
|
77
74
|
// Avoiding the "24h"
|
|
78
75
|
// Should be 12h for 12 hours and PM mode
|
|
79
76
|
if ((hours12AndPm || hours24) && pickedHours + 12 < 24) {
|
|
80
77
|
pickedHours += 12
|
|
81
78
|
}
|
|
79
|
+
if (modeRef.current === 'AM' && pickedHours === 12) {
|
|
80
|
+
pickedHours = 0
|
|
81
|
+
}
|
|
82
82
|
|
|
83
83
|
if (pickedHours === 24) {
|
|
84
84
|
pickedHours = 0
|